PageSourceSearch

https://www.knightfrank.com.sg/properties-resources/js/app-733e69da.bundle.js

js knightfrank.com.sg collected 2026-09-26 13:24:53 UTC 1,095,164 bytes, 2 lines download raw bytes

1/*! For license information please see app-733e69da.bundle.js.LICENSE */
2webpackJsonp([1],[,,,,,,function(e,t,n){"use strict";var r=n(718);n.d(t,"k",function(){return r.a});n(719);var o=n(305);n.d(t,"K",function(){return o.a});n(720),n(721);var i=n(722);n.d(t,"R",function(){return i.a});n(723);var a=n(292);n.d(t,"u",function(){return a.a});var s=n(92);n.d(t,"e",function(){return s.a}),n.d(t,"v",function(){return s.a});var c=n(119);n.d(t,"o",function(){return c.a});n(91);var u=n(306);n.d(t,"g",function(){return u.a});var l=n(201);n.d(t,"l",function(){return l.a});var d=n(729);n.d(t,"h",function(){return d.a});var p=n(203);n.d(t,"j",function(){return p.a});var h=n(204);n.d(t,"I",function(){return h.a});var f=n(294);n.d(t,"m",function(){return f.a});var m=n(301);n.d(t,"n",function(){return m.a});n(150);var g=n(303);n.d(t,"c",function(){return g.a});var y=n(202);n.d(t,"b",function(){return y.a});var v=n(298);n.d(t,"w",function(){return v.a});var b=n(299);n.d(t,"a",function(){return b.a});var S=n(300);n.d(t,"L",function(){return S.a});var E=n(308);n.d(t,"P",function(){return E.a});var C=n(307);n.d(t,"i",function(){return C.a});var T=n(730);n.d(t,"V",function(){return T.a});n(304);var w=n(731);n.d(t,"U",function(){return w.a});n(295);var _=n(296);n.d(t,"W",function(){return _.a});var I=n(59);n.d(t,"Y",function(){return I.a});var P=n(293);n.d(t,"t",function(){return P.a});var R=n(732);n.d(t,"z",function(){return R.a});var O=n(90);n.d(t,"N",function(){return O.a});n(734);var A=n(200);n.d(t,"A",function(){return A.a}),n.d(t,"B",function(){return A.b});var k=n(205);n.d(t,"x",function(){return k.a}),n.d(t,"y",function(){return k.b});var M=n(44);n.d(t,"d",function(){return M.a});var N=n(118);n.d(t,"O",function(){return N.a});var x=n(17);n.d(t,"p",function(){return x.a});var L=n(45);n.d(t,"q",function(){return L.a});var j=n(7);n.d(t,"f",function(){return j.e}),n.d(t,"r",function(){return j.m}),n.d(t,"s",function(){return j.n}),n.d(t,"C",function(){return j.s}),n.d(t,"F",function(){return j.v}),n.d(t,"H",function(){return j.w}),n.d(t,"M",function(){return j.A});var D=n(22);n.d(t,"S",function(){return D.a});var F=n(302);n.d(t,"J",function(){return F.a});var U=n(46);n.d(t,"X",function(){return U.a});var q=n(735);n.d(t,"Q",function(){return q.a});var B=n(60);n.d(t,"E",function(){return B.c});var H=n(309);n.d(t,"D",function(){return H.a});var z=n(736);n.d(t,"T",function(){return z.a});var K=n(151);n.d(t,"G",function(){return K.a});n(149)},function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return a}),n.d(t,"c",function(){return C}),n.d(t,"d",function(){return _}),n.d(t,"e",function(){return I}),n.d(t,"f",function(){return E}),n.d(t,"g",function(){return T}),n.d(t,"h",function(){return g}),n.d(t,"i",function(){return M}),n.d(t,"j",function(){return b}),n.d(t,"k",function(){return s}),n.d(t,"l",function(){return S}),n.d(t,"m",function(){return u}),n.d(t,"n",function(){return v}),n.d(t,"o",function(){return L}),n.d(t,"p",function(){return m}),n.d(t,"q",function(){return r}),n.d(t,"r",function(){return N}),n.d(t,"s",function(){return l}),n.d(t,"t",function(){return d}),n.d(t,"u",function(){return R}),n.d(t,"v",function(){return o}),n.d(t,"w",function(){return h}),n.d(t,"x",function(){return k}),n.d(t,"y",function(){return A}),n.d(t,"z",function(){return O}),n.d(t,"A",function(){return f}),n.d(t,"B",function(){return P}),n.d(t,"C",function(){return p}),n.d(t,"D",function(){return y}),n.d(t,"E",function(){return w}),n.d(t,"F",function(){return x});var r,o,i,a,s,c=n(12),u={LIBRARY_NAME:"MSAL.JS",SKU:"msal.js.common",CACHE_PREFIX:"msal",DEFAULT_AUTHORITY:"https://login.microsoftonline.com/common/",DEFAULT_AUTHORITY_HOST:"login.microsoftonline.com",DEFAULT_COMMON_TENANT:"common",ADFS:"adfs",DSTS:"dstsv2",AAD_INSTANCE_DISCOVERY_ENDPT:"https://login.microsoftonline.com/common/discovery/instance?api-version=1.1&authorization_endpoint=",CIAM_AUTH_URL:".ciamlogin.com",AAD_TENANT_DOMAIN_SUFFIX:".onmicrosoft.com",RESOURCE_DELIM:"|",NO_ACCOUNT:"NO_ACCOUNT",CLAIMS:"claims",CONSUMER_UTID:"9188040d-6c67-4c5b-b112-36a304b66dad",OPENID_SCOPE:"openid",PROFILE_SCOPE:"profile",OFFLINE_ACCESS_SCOPE:"offline_access",EMAIL_SCOPE:"email",CODE_RESPONSE_TYPE:"code",CODE_GRANT_TYPE:"authorization_code",RT_GRANT_TYPE:"refresh_token",FRAGMENT_RESPONSE_MODE:"fragment",S256_CODE_CHALLENGE_METHOD:"S256",URL_FORM_CONTENT_TYPE:"application/x-www-form-urlencoded;charset=utf-8",AUTHORIZATION_PENDING:"authorization_pending",NOT_DEFINED:"not_defined",EMPTY_STRING:"",NOT_APPLICABLE:"N/A",FORWARD_SLASH:"/",IMDS_ENDPOINT:"http://169.254.169.254/metadata/instance/compute/location",IMDS_VERSION:"2020-06-01",IMDS_TIMEOUT:2e3,AZURE_REGION_AUTO_DISCOVER_FLAG:"TryAutoDetect",REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX:"login.microsoft.com",REGIONAL_AUTH_NON_MSI_QUERY_STRING:"allowestsrnonmsi=true",KNOWN_PUBLIC_CLOUDS:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"],TOKEN_RESPONSE_TYPE:"token",ID_TOKEN_RESPONSE_TYPE:"id_token",SHR_NONCE_VALIDITY:240,INVALID_INSTANCE:"invalid_instance"},l=[u.OPENID_SCOPE,u.PROFILE_SCOPE,u.OFFLINE_ACCESS_SCOPE],d=Object(c.e)(l,[u.EMAIL_SCOPE]);!function(e){e.CONTENT_TYPE="Content-Type",e.RETRY_AFTER="Retry-After",e.CCS_HEADER="X-AnchorMailbox",e.WWWAuthenticate="WWW-Authenticate",e.AuthenticationInfo="Authentication-Info",e.X_MS_REQUEST_ID="x-ms-request-id",e.X_MS_HTTP_VERSION="x-ms-httpver"}(r||(r={})),function(e){e.ID_TOKEN="idtoken",e.CLIENT_INFO="client.info",e.ADAL_ID_TOKEN="adal.idtoken",e.ERROR="error",e.E
2RROR_DESC="error.description",e.ACTIVE_ACCOUNT="active-account",e.ACTIVE_ACCOUNT_FILTERS="active-account-filters"}(o||(o={})),function(e){e.COMMON="common",e.ORGANIZATIONS="organizations",e.CONSUMERS="consumers"}(i||(i={})),function(e){e.CLIENT_ID="client_id",e.REDIRECT_URI="redirect_uri",e.RESPONSE_TYPE="response_type",e.RESPONSE_MODE="response_mode",e.GRANT_TYPE="grant_type",e.CLAIMS="claims",e.SCOPE="scope",e.ERROR="error",e.ERROR_DESCRIPTION="error_description",e.ACCESS_TOKEN="access_token",e.ID_TOKEN="id_token",e.REFRESH_TOKEN="refresh_token",e.EXPIRES_IN="expires_in",e.STATE="state",e.NONCE="nonce",e.PROMPT="prompt",e.SESSION_STATE="session_state",e.CLIENT_INFO="client_info",e.CODE="code",e.CODE_CHALLENGE="code_challenge",e.CODE_CHALLENGE_METHOD="code_challenge_method",e.CODE_VERIFIER="code_verifier",e.CLIENT_REQUEST_ID="client-request-id",e.X_CLIENT_SKU="x-client-SKU",e.X_CLIENT_VER="x-client-VER",e.X_CLIENT_OS="x-client-OS",e.X_CLIENT_CPU="x-client-CPU",e.X_CLIENT_CURR_TELEM="x-client-current-telemetry",e.X_CLIENT_LAST_TELEM="x-client-last-telemetry",e.X_MS_LIB_CAPABILITY="x-ms-lib-capability",e.X_APP_NAME="x-app-name",e.X_APP_VER="x-app-ver",e.POST_LOGOUT_URI="post_logout_redirect_uri",e.ID_TOKEN_HINT="id_token_hint",e.DEVICE_CODE="device_code",e.CLIENT_SECRET="client_secret",e.CLIENT_ASSERTION="client_assertion",e.CLIENT_ASSERTION_TYPE="client_assertion_type",e.TOKEN_TYPE="token_type",e.REQ_CNF="req_cnf",e.OBO_ASSERTION="assertion",e.REQUESTED_TOKEN_USE="requested_token_use",e.ON_BEHALF_OF="on_behalf_of",e.FOCI="foci",e.CCS_HEADER="X-AnchorMailbox",e.RETURN_SPA_CODE="return_spa_code",e.NATIVE_BROKER="nativebroker",e.LOGOUT_HINT="logout_hint"}(a||(a={})),function(e){e.ACCESS_TOKEN="access_token",e.XMS_CC="xms_cc"}(s||(s={}));var p,h={LOGIN:"login",SELECT_ACCOUNT:"select_account",CONSENT:"consent",NONE:"none",CREATE:"create",NO_SESSION:"no_session"};!function(e){e.ACCOUNT="account",e.SID="sid",e.LOGIN_HINT="login_hint",e.ID_TOKEN="id_token",e.DOMAIN_HINT="domain_hint",e.ORGANIZATIONS="organizations",e.CONSUMERS="consumers",e.ACCOUNT_ID="accountIdentifier",e.HOMEACCOUNT_ID="homeAccountIdentifier"}(p||(p={}));var f,m,g,y,v,b,S={PLAIN:"plain",S256:"S256"};!function(e){e.QUERY="query",e.FRAGMENT="fragment",e.FORM_POST="form_post"}(f||(f={})),function(e){e.IMPLICIT_GRANT="implicit",e.AUTHORIZATION_CODE_GRANT="authorization_code",e.CLIENT_CREDENTIALS_GRANT="client_credentials",e.RESOURCE_OWNER_PASSWORD_GRANT="password",e.REFRESH_TOKEN_GRANT="refresh_token",e.DEVICE_CODE_GRANT="device_code",e.JWT_BEARER="urn:ietf:params:oauth:grant-type:jwt-bearer"}(m||(m={})),function(e){e.MSSTS_ACCOUNT_TYPE="MSSTS",e.ADFS_ACCOUNT_TYPE="ADFS",e.MSAV1_ACCOUNT_TYPE="MSA",e.GENERIC_ACCOUNT_TYPE="Generic"}(g||(g={})),function(e){e.CACHE_KEY_SEPARATOR="-",e.CLIENT_INFO_SEPARATOR="."}(y||(y={})),function(e){e.ID_TOKEN="IdToken",e.ACCESS_TOKEN="AccessToken",e.ACCESS_TOKEN_WITH_AUTH_SCHEME="AccessToken_With_AuthScheme",e.REFRESH_TOKEN="RefreshToken"}(v||(v={})),function(e){e[e.ADFS=1001]="ADFS",e[e.MSA=1002]="MSA",e[e.MSSTS=1003]="MSSTS",e[e.GENERIC=1004]="GENERIC",e[e.ACCESS_TOKEN=2001]="ACCESS_TOKEN",e[e.REFRESH_TOKEN=2002]="REFRESH_TOKEN",e[e.ID_TOKEN=2003]="ID_TOKEN",e[e.APP_METADATA=3001]="APP_METADATA",e[e.UNDEFINED=9999]="UNDEFINED"}(b||(b={}));var E,C="appmetadata",T="client_info",w="1",_={CACHE_KEY:"authority-metadata",REFRESH_TIME_SECONDS:86400};!function(e){e.CONFIG="config",e.CACHE="cache",e.NETWORK="network",e.HARDCODED_VALUES="hardcoded_values"}(E||(E={}));var I,P={SCHEMA_VERSION:5,MAX_CUR_HEADER_BYTES:80,MAX_LAST_HEADER_BYTES:330,MAX_CACHED_ERRORS:50,CACHE_KEY:"server-telemetry",CATEGORY_SEPARATOR:"|",VALUE_SEPARATOR:",",OVERFLOW_TRUE:"1",OVERFLOW_FALSE:"0",UNKNOWN_ERROR:"unknown_error"};!function(e){e.BEARER="Bearer",e.POP="pop",e.SSH="ssh-cert"}(I||(I={}));var R,O,A,k,M,N,x={DEFAULT_THROTTLE_TIME_SECONDS:60,DEFAULT_MAX_THROTTLE_TIME_SECONDS:3600,THROTTLING_PREFIX:"throttling",X_MS_LIB_CAPABILITY_VALUE:"retry-after, h429"},L={INVALID_GRANT_ERROR:"invalid_grant",CLIENT_MISMATCH_ERROR:"client_mismatch"};!function(e){e.username="username",e.password="password"}(R||(R={})),function(e){e[e.httpSuccess=200]="httpSuccess",e[e.httpBadRequest=400]="httpBadRequest"}(O||(O={})),function(e){e.FAILED_AUTO_DETECTION="1",e.INTERNAL_CACHE="2",e.ENVIRONMENT_VARIABLE="3",e.IMDS="4"}(A||(A={})),function(e){e.CONFIGURED_MATCHES_DETECTED="1",e.CONFIGURED_NO_AUTO_DETECTION="2",e.CONFIGURED_NOT_DETECTED="3",e.AUTO_DETECTION_REQUESTED_SUCCESSFUL="4",e.AUTO_DETECTION_REQUESTED_FAILED="5"}(k||(k={})),function(e){e.NO_CACHE_HIT="0",e.FORCE_REFRESH="1",e.NO_CACHED_ACCESS_TOKEN="2",e.CACHED_ACCESS_TOKEN_EXPIRED="3",e.REFRESH_CACHED_ACCESS_TOKEN="4",e.CLAIMS_REQUESTED_CACHE_SKIPPED="5"}(M||(M={})),function(e){e.Jwt="JWT",e.Jwk="JWK",e.Pop="pop"}(N||(N={}))},function(e,t,n){"use strict";var r=n(648);n.n(r);n.o(r,"AvailabilityApiEnum")&&n.d(t,"AvailabilityApiEnum",function(){return r.AvailabilityApiEnum}),n.o(r,"AvailabilityUrlEnum")&&n.d(t,"AvailabilityUrlEnum",function(){return r.AvailabilityUrlEnum}),n.o(r,"DevelopmentResourceTypeEnum")&&n.d(t,"DevelopmentResourceTypeEnum",function(){return r.DevelopmentResourceTypeEnum}),n.o(r,"DisplayTypeEnum")&&n.d(t,"DisplayTypeEnum",function(){return r.DisplayTypeEnum}),n.o(r,"DivisionEnum")&&n.d(t,"DivisionEnum",function(){return r.DivisionEnum}),n.o(r,"EventTypeEnum")&&n.d(t,"EventTypeEnum",function(){return r.EventTypeEnum}),n.o(r,"FixedEnum")&&n.d(t,"FixedEnum",function(){return r.FixedEnum}),n.o(r,"GeoBounds")&&n.d(t,"GeoBounds",function(){return r.GeoBounds}),n.o(r,"IDevelopment")&&n.d(t,"IDevelopment",function(){return r.IDevelopment}),n.o(r,"IMortgageCalculator")&&n.d(t,"IMortgageCalculator",function(){return r.IMortgageCalculator}),n.o(r,"IRelatedReport")&&n.d(t,"IRelatedReport",function(){return r.IRelatedReport}),n.o(r,"ITaxModel")&&n.d(t,"ITaxModel",function(){return r.ITaxModel}),n.o(r,"NspFloorArea")&&n.d(t,"NspFloorArea",function(){return r.
2NspFloorArea}),n.o(r,"NspLandArea")&&n.d(t,"NspLandArea",function(){return r.NspLandArea}),n.o(r,"NspLocation")&&n.d(t,"NspLocation",function(){return r.NspLocation}),n.o(r,"NspPrice")&&n.d(t,"NspPrice",function(){return r.NspPrice}),n.o(r,"NspProperty")&&n.d(t,"NspProperty",function(){return r.NspProperty}),n.o(r,"NspPropertyContact")&&n.d(t,"NspPropertyContact",function(){return r.NspPropertyContact}),n.o(r,"NspPropertyPreview")&&n.d(t,"NspPropertyPreview",function(){return r.NspPropertyPreview}),n.o(r,"NspPropertyResult")&&n.d(t,"NspPropertyResult",function(){return r.NspPropertyResult}),n.o(r,"PropertyListState")&&n.d(t,"PropertyListState",function(){return r.PropertyListState}),n.o(r,"PropertySearchRequestParams")&&n.d(t,"PropertySearchRequestParams",function(){return r.PropertySearchRequestParams}),n.o(r,"ResourceTypeEnum")&&n.d(t,"ResourceTypeEnum",function(){return r.ResourceTypeEnum}),n.o(r,"SelectedOptions")&&n.d(t,"SelectedOptions",function(){return r.SelectedOptions}),n.o(r,"StateObject")&&n.d(t,"StateObject",function(){return r.StateObject}),n.o(r,"TaxResultTypeEnum")&&n.d(t,"TaxResultTypeEnum",function(){return r.TaxResultTypeEnum}),n.o(r,"TaxTypeEnum")&&n.d(t,"TaxTypeEnum",function(){return r.TaxTypeEnum}),n.o(r,"TransactionEnum")&&n.d(t,"TransactionEnum",function(){return r.TransactionEnum}),n.o(r,"personTitle")&&n.d(t,"personTitle",function(){return r.personTitle});var o=n(649);n.n(o);n.o(o,"AvailabilityApiEnum")&&n.d(t,"AvailabilityApiEnum",function(){return o.AvailabilityApiEnum}),n.o(o,"AvailabilityUrlEnum")&&n.d(t,"AvailabilityUrlEnum",function(){return o.AvailabilityUrlEnum}),n.o(o,"DevelopmentResourceTypeEnum")&&n.d(t,"DevelopmentResourceTypeEnum",function(){return o.DevelopmentResourceTypeEnum}),n.o(o,"DisplayTypeEnum")&&n.d(t,"DisplayTypeEnum",function(){return o.DisplayTypeEnum}),n.o(o,"DivisionEnum")&&n.d(t,"DivisionEnum",function(){return o.DivisionEnum}),n.o(o,"EventTypeEnum")&&n.d(t,"EventTypeEnum",function(){return o.EventTypeEnum}),n.o(o,"FixedEnum")&&n.d(t,"FixedEnum",function(){return o.FixedEnum}),n.o(o,"GeoBounds")&&n.d(t,"GeoBounds",function(){return o.GeoBounds}),n.o(o,"IDevelopment")&&n.d(t,"IDevelopment",function(){return o.IDevelopment}),n.o(o,"IMortgageCalculator")&&n.d(t,"IMortgageCalculator",function(){return o.IMortgageCalculator}),n.o(o,"IRelatedReport")&&n.d(t,"IRelatedReport",function(){return o.IRelatedReport}),n.o(o,"ITaxModel")&&n.d(t,"ITaxModel",function(){return o.ITaxModel}),n.o(o,"NspFloorArea")&&n.d(t,"NspFloorArea",function(){return o.NspFloorArea}),n.o(o,"NspLandArea")&&n.d(t,"NspLandArea",function(){return o.NspLandArea}),n.o(o,"NspLocation")&&n.d(t,"NspLocation",function(){return o.NspLocation}),n.o(o,"NspPrice")&&n.d(t,"NspPrice",function(){return o.NspPrice}),n.o(o,"NspProperty")&&n.d(t,"NspProperty",function(){return o.NspProperty}),n.o(o,"NspPropertyContact")&&n.d(t,"NspPropertyContact",function(){return o.NspPropertyContact}),n.o(o,"NspPropertyPreview")&&n.d(t,"NspPropertyPreview",function(){return o.NspPropertyPreview}),n.o(o,"NspPropertyResult")&&n.d(t,"NspPropertyResult",function(){return o.NspPropertyResult}),n.o(o,"PropertyListState")&&n.d(t,"PropertyListState",function(){return o.PropertyListState}),n.o(o,"PropertySearchRequestParams")&&n.d(t,"PropertySearchRequestParams",function(){return o.PropertySearchRequestParams}),n.o(o,"ResourceTypeEnum")&&n.d(t,"ResourceTypeEnum",function(){return o.ResourceTypeEnum}),n.o(o,"SelectedOptions")&&n.d(t,"SelectedOptions",function(){return o.SelectedOptions}),n.o(o,"StateObject")&&n.d(t,"StateObject",function(){return o.StateObject}),n.o(o,"TaxResultTypeEnum")&&n.d(t,"TaxResultTypeEnum",function(){return o.TaxResultTypeEnum}),n.o(o,"TaxTypeEnum")&&n.d(t,"TaxTypeEnum",function(){return o.TaxTypeEnum}),n.o(o,"TransactionEnum")&&n.d(t,"TransactionEnum",function(){return o.TransactionEnum}),n.o(o,"personTitle")&&n.d(t,"personTitle",function(){return o.personTitle});var i=n(650);n.n(i);n.o(i,"AvailabilityApiEnum")&&n.d(t,"AvailabilityApiEnum",function(){return i.AvailabilityApiEnum}),n.o(i,"AvailabilityUrlEnum")&&n.d(t,"AvailabilityUrlEnum",function(){return i.AvailabilityUrlEnum}),n.o(i,"DevelopmentResourceTypeEnum")&&n.d(t,"DevelopmentResourceTypeEnum",function(){return i.DevelopmentResourceTypeEnum}),n.o(i,"DisplayTypeEnum")&&n.d(t,"DisplayTypeEnum",function(){return i.DisplayTypeEnum}),n.o(i,"DivisionEnum")&&n.d(t,"DivisionEnum",function(){return i.DivisionEnum}),n.o(i,"EventTypeEnum")&&n.d(t,"EventTypeEnum",function(){return i.EventTypeEnum}),n.o(i,"FixedEnum")&&n.d(t,"FixedEnum",function(){return i.FixedEnum}),n.o(i,"GeoBounds")&&n.d(t,"GeoBounds",function(){return i.GeoBounds}),n.o(i,"IDevelopment")&&n.d(t,"IDevelopment",function(){return i.IDevelopment}),n.o(i,"IMortgageCalculator")&&n.d(t,"IMortgageCalculator",function(){return i.IMortgageCalculator}),n.o(i,"IRelatedReport")&&n.d(t,"IRelatedReport",function(){return i.IRelatedReport}),n.o(i,"ITaxModel")&&n.d(t,"ITaxModel",function(){return i.ITaxModel}),n.o(i,"NspFloorArea")&&n.d(t,"NspFloorArea",function(){return i.NspFloorArea}),n.o(i,"NspLandArea")&&n.d(t,"NspLandArea",function(){return i.NspLandArea}),n.o(i,"NspLocation")&&n.d(t,"NspLocation",function(){return i.NspLocation}),n.o(i,"NspPrice")&&n.d(t,"NspPrice",function(){return i.NspPrice}),n.o(i,"NspProperty")&&n.d(t,"NspProperty",function(){return i.NspProperty}),n.o(i,"NspPropertyContact")&&n.d(t,"NspPropertyContact",function(){return i.NspPropertyContact}),n.o(i,"NspPropertyPreview")&&n.d(t,"NspPropertyPreview",function(){return i.NspPropertyPreview}),n.o(i,"NspPropertyResult")&&n.d(t,"NspPropertyResult",function(){return i.NspPropertyResult}),n.o(i,"PropertyListState")&&n.d(t,"PropertyListState",function(){return i.PropertyListState}
2),n.o(i,"PropertySearchRequestParams")&&n.d(t,"PropertySearchRequestParams",function(){return i.PropertySearchRequestParams}),n.o(i,"ResourceTypeEnum")&&n.d(t,"ResourceTypeEnum",function(){return i.ResourceTypeEnum}),n.o(i,"SelectedOptions")&&n.d(t,"SelectedOptions",function(){return i.SelectedOptions}),n.o(i,"StateObject")&&n.d(t,"StateObject",function(){return i.StateObject}),n.o(i,"TaxResultTypeEnum")&&n.d(t,"TaxResultTypeEnum",function(){return i.TaxResultTypeEnum}),n.o(i,"TaxTypeEnum")&&n.d(t,"TaxTypeEnum",function(){return i.TaxTypeEnum}),n.o(i,"TransactionEnum")&&n.d(t,"TransactionEnum",function(){return i.TransactionEnum}),n.o(i,"personTitle")&&n.d(t,"personTitle",function(){return i.personTitle});var a=n(651);n.n(a);n.o(a,"AvailabilityApiEnum")&&n.d(t,"AvailabilityApiEnum",function(){return a.AvailabilityApiEnum}),n.o(a,"AvailabilityUrlEnum")&&n.d(t,"AvailabilityUrlEnum",function(){return a.AvailabilityUrlEnum}),n.o(a,"DevelopmentResourceTypeEnum")&&n.d(t,"DevelopmentResourceTypeEnum",function(){return a.DevelopmentResourceTypeEnum}),n.o(a,"DisplayTypeEnum")&&n.d(t,"DisplayTypeEnum",function(){return a.DisplayTypeEnum}),n.o(a,"DivisionEnum")&&n.d(t,"DivisionEnum",function(){return a.DivisionEnum}),n.o(a,"EventTypeEnum")&&n.d(t,"EventTypeEnum",function(){return a.EventTypeEnum}),n.o(a,"FixedEnum")&&n.d(t,"FixedEnum",function(){return a.FixedEnum}),n.o(a,"GeoBounds")&&n.d(t,"GeoBounds",function(){return a.GeoBounds}),n.o(a,"IDevelopment")&&n.d(t,"IDevelopment",function(){return a.IDevelopment}),n.o(a,"IMortgageCalculator")&&n.d(t,"IMortgageCalculator",function(){return a.IMortgageCalculator}),n.o(a,"IRelatedReport")&&n.d(t,"IRelatedReport",function(){return a.IRelatedReport}),n.o(a,"ITaxModel")&&n.d(t,"ITaxModel",function(){return a.ITaxModel}),n.o(a,"NspFloorArea")&&n.d(t,"NspFloorArea",function(){return a.NspFloorArea}),n.o(a,"NspLandArea")&&n.d(t,"NspLandArea",function(){return a.NspLandArea}),n.o(a,"NspLocation")&&n.d(t,"NspLocation",function(){return a.NspLocation}),n.o(a,"NspPrice")&&n.d(t,"NspPrice",function(){return a.NspPrice}),n.o(a,"NspProperty")&&n.d(t,"NspProperty",function(){return a.NspProperty}),n.o(a,"NspPropertyContact")&&n.d(t,"NspPropertyContact",function(){return a.NspPropertyContact}),n.o(a,"NspPropertyPreview")&&n.d(t,"NspPropertyPreview",function(){return a.NspPropertyPreview}),n.o(a,"NspPropertyResult")&&n.d(t,"NspPropertyResult",function(){return a.NspPropertyResult}),n.o(a,"PropertyListState")&&n.d(t,"PropertyListState",function(){return a.PropertyListState}),n.o(a,"PropertySearchRequestParams")&&n.d(t,"PropertySearchRequestParams",function(){return a.PropertySearchRequestParams}),n.o(a,"ResourceTypeEnum")&&n.d(t,"ResourceTypeEnum",function(){return a.ResourceTypeEnum}),n.o(a,"SelectedOptions")&&n.d(t,"SelectedOptions",function(){return a.SelectedOptions}),n.o(a,"StateObject")&&n.d(t,"StateObject",function(){return a.StateObject}),n.o(a,"TaxResultTypeEnum")&&n.d(t,"TaxResultTypeEnum",function(){return a.TaxResultTypeEnum}),n.o(a,"TaxTypeEnum")&&n.d(t,"TaxTypeEnum",function(){return a.TaxTypeEnum}),n.o(a,"TransactionEnum")&&n.d(t,"TransactionEnum",function(){return a.TransactionEnum}),n.o(a,"personTitle")&&n.d(t,"personTitle",function(){return a.personTitle});var s=n(652);n.n(s);n.o(s,"AvailabilityApiEnum")&&n.d(t,"AvailabilityApiEnum",function(){return s.AvailabilityApiEnum}),n.o(s,"AvailabilityUrlEnum")&&n.d(t,"AvailabilityUrlEnum",function(){return s.AvailabilityUrlEnum}),n.o(s,"DevelopmentResourceTypeEnum")&&n.d(t,"DevelopmentResourceTypeEnum",function(){return s.DevelopmentResourceTypeEnum}),n.o(s,"DisplayTypeEnum")&&n.d(t,"DisplayTypeEnum",function(){return s.DisplayTypeEnum}),n.o(s,"DivisionEnum")&&n.d(t,"DivisionEnum",function(){return s.DivisionEnum}),n.o(s,"EventTypeEnum")&&n.d(t,"EventTypeEnum",function(){return s.EventTypeEnum}),n.o(s,"FixedEnum")&&n.d(t,"FixedEnum",function(){return s.FixedEnum}),n.o(s,"GeoBounds")&&n.d(t,"GeoBounds",function(){return s.GeoBounds}),n.o(s,"IDevelopment")&&n.d(t,"IDevelopment",function(){return s.IDevelopment}),n.o(s,"IMortgageCalculator")&&n.d(t,"IMortgageCalculator",function(){return s.IMortgageCalculator}),n.o(s,"IRelatedReport")&&n.d(t,"IRelatedReport",function(){return s.IRelatedReport}),n.o(s,"ITaxModel")&&n.d(t,"ITaxModel",function(){return s.ITaxModel}),n.o(s,"NspFloorArea")&&n.d(t,"NspFloorArea",function(){return s.NspFloorArea}),n.o(s,"NspLandArea")&&n.d(t,"NspLandArea",function(){return s.NspLandArea}),n.o(s,"NspLocation")&&n.d(t,"NspLocation",function(){return s.NspLocation}),n.o(s,"NspPrice")&&n.d(t,"NspPrice",function(){return s.NspPrice}),n.o(s,"NspProperty")&&n.d(t,"NspProperty",function(){return s.NspProperty}),n.o(s,"NspPropertyContact")&&n.d(t,"NspPropertyContact",function(){return s.NspPropertyContact}),n.o(s,"NspPropertyPreview")&&n.d(t,"NspPropertyPreview",function(){return s.NspPropertyPreview}),n.o(s,"NspPropertyResult")&&n.d(t,"NspPropertyResult",function(){return s.NspPropertyResult}),n.o(s,"PropertyListState")&&n.d(t,"PropertyListState",function(){return s.PropertyListState}
2),n.o(s,"PropertySearchRequestParams")&&n.d(t,"PropertySearchRequestParams",function(){return s.PropertySearchRequestParams}),n.o(s,"ResourceTypeEnum")&&n.d(t,"ResourceTypeEnum",function(){return s.ResourceTypeEnum}),n.o(s,"SelectedOptions")&&n.d(t,"SelectedOptions",function(){return s.SelectedOptions}),n.o(s,"StateObject")&&n.d(t,"StateObject",function(){return s.StateObject}),n.o(s,"TaxResultTypeEnum")&&n.d(t,"TaxResultTypeEnum",function(){return s.TaxResultTypeEnum}),n.o(s,"TaxTypeEnum")&&n.d(t,"TaxTypeEnum",function(){return s.TaxTypeEnum}),n.o(s,"TransactionEnum")&&n.d(t,"TransactionEnum",function(){return s.TransactionEnum}),n.o(s,"personTitle")&&n.d(t,"personTitle",function(){return s.personTitle});var c=n(653);n.n(c);n.o(c,"AvailabilityApiEnum")&&n.d(t,"AvailabilityApiEnum",function(){return c.AvailabilityApiEnum}),n.o(c,"AvailabilityUrlEnum")&&n.d(t,"AvailabilityUrlEnum",function(){return c.AvailabilityUrlEnum}),n.o(c,"DevelopmentResourceTypeEnum")&&n.d(t,"DevelopmentResourceTypeEnum",function(){return c.DevelopmentResourceTypeEnum}),n.o(c,"DisplayTypeEnum")&&n.d(t,"DisplayTypeEnum",function(){return c.DisplayTypeEnum}),n.o(c,"DivisionEnum")&&n.d(t,"DivisionEnum",function(){return c.DivisionEnum}),n.o(c,"EventTypeEnum")&&n.d(t,"EventTypeEnum",function(){return c.EventTypeEnum}),n.o(c,"FixedEnum")&&n.d(t,"FixedEnum",function(){return c.FixedEnum}),n.o(c,"GeoBounds")&&n.d(t,"GeoBounds",function(){return c.GeoBounds}),n.o(c,"IDevelopment")&&n.d(t,"IDevelopment",function(){return c.IDevelopment}),n.o(c,"IMortgageCalculator")&&n.d(t,"IMortgageCalculator",function(){return c.IMortgageCalculator}),n.o(c,"IRelatedReport")&&n.d(t,"IRelatedReport",function(){return c.IRelatedReport}),n.o(c,"ITaxModel")&&n.d(t,"ITaxModel",function(){return c.ITaxModel}),n.o(c,"NspFloorArea")&&n.d(t,"NspFloorArea",function(){return c.NspFloorArea}),n.o(c,"NspLandArea")&&n.d(t,"NspLandArea",function(){return c.NspLandArea}),n.o(c,"NspLocation")&&n.d(t,"NspLocation",function(){return c.NspLocation}),n.o(c,"NspPrice")&&n.d(t,"NspPrice",function(){return c.NspPrice}),n.o(c,"NspProperty")&&n.d(t,"NspProperty",function(){return c.NspProperty}),n.o(c,"NspPropertyContact")&&n.d(t,"NspPropertyContact",function(){return c.NspPropertyContact}),n.o(c,"NspPropertyPreview")&&n.d(t,"NspPropertyPreview",function(){return c.NspPropertyPreview}),n.o(c,"NspPropertyResult")&&n.d(t,"NspPropertyResult",function(){return c.NspPropertyResult}),n.o(c,"PropertyListState")&&n.d(t,"PropertyListState",function(){return c.PropertyListState}),n.o(c,"PropertySearchRequestParams")&&n.d(t,"PropertySearchRequestParams",function(){return c.PropertySearchRequestParams}),n.o(c,"ResourceTypeEnum")&&n.d(t,"ResourceTypeEnum",function(){return c.ResourceTypeEnum}),n.o(c,"SelectedOptions")&&n.d(t,"SelectedOptions",function(){return c.SelectedOptions}),n.o(c,"StateObject")&&n.d(t,"StateObject",function(){return c.StateObject}),n.o(c,"TaxResultTypeEnum")&&n.d(t,"TaxResultTypeEnum",function(){return c.TaxResultTypeEnum}),n.o(c,"TaxTypeEnum")&&n.d(t,"TaxTypeEnum",function(){return c.TaxTypeEnum}),n.o(c,"TransactionEnum")&&n.d(t,"TransactionEnum",function(){return c.TransactionEnum}),n.o(c,"personTitle")&&n.d(t,"personTitle",function(){return c.personTitle});var u=n(654);n.d(t,"TaxResultTypeEnum",function(){return u.a}),n.d(t,"TaxTypeEnum",function(){return u.b});var l=n(655);n.n(l);n.o(l,"AvailabilityApiEnum")&&n.d(t,"AvailabilityApiEnum",function(){return l.AvailabilityApiEnum}),n.o(l,"AvailabilityUrlEnum")&&n.d(t,"AvailabilityUrlEnum",function(){return l.AvailabilityUrlEnum}),n.o(l,"DevelopmentResourceTypeEnum")&&n.d(t,"DevelopmentResourceTypeEnum",function(){return l.DevelopmentResourceTypeEnum}
2),n.o(l,"DisplayTypeEnum")&&n.d(t,"DisplayTypeEnum",function(){return l.DisplayTypeEnum}),n.o(l,"DivisionEnum")&&n.d(t,"DivisionEnum",function(){return l.DivisionEnum}),n.o(l,"EventTypeEnum")&&n.d(t,"EventTypeEnum",function(){return l.EventTypeEnum}),n.o(l,"FixedEnum")&&n.d(t,"FixedEnum",function(){return l.FixedEnum}),n.o(l,"GeoBounds")&&n.d(t,"GeoBounds",function(){return l.GeoBounds}),n.o(l,"IDevelopment")&&n.d(t,"IDevelopment",function(){return l.IDevelopment}),n.o(l,"IMortgageCalculator")&&n.d(t,"IMortgageCalculator",function(){return l.IMortgageCalculator}),n.o(l,"IRelatedReport")&&n.d(t,"IRelatedReport",function(){return l.IRelatedReport}),n.o(l,"ITaxModel")&&n.d(t,"ITaxModel",function(){return l.ITaxModel}),n.o(l,"NspFloorArea")&&n.d(t,"NspFloorArea",function(){return l.NspFloorArea}),n.o(l,"NspLandArea")&&n.d(t,"NspLandArea",function(){return l.NspLandArea}),n.o(l,"NspLocation")&&n.d(t,"NspLocation",function(){return l.NspLocation}),n.o(l,"NspPrice")&&n.d(t,"NspPrice",function(){return l.NspPrice}),n.o(l,"NspProperty")&&n.d(t,"NspProperty",function(){return l.NspProperty}),n.o(l,"NspPropertyContact")&&n.d(t,"NspPropertyContact",function(){return l.NspPropertyContact}),n.o(l,"NspPropertyPreview")&&n.d(t,"NspPropertyPreview",function(){return l.NspPropertyPreview}),n.o(l,"NspPropertyResult")&&n.d(t,"NspPropertyResult",function(){return l.NspPropertyResult}),n.o(l,"PropertyListState")&&n.d(t,"PropertyListState",function(){return l.PropertyListState}),n.o(l,"PropertySearchRequestParams")&&n.d(t,"PropertySearchRequestParams",function(){return l.PropertySearchRequestParams}),n.o(l,"ResourceTypeEnum")&&n.d(t,"ResourceTypeEnum",function(){return l.ResourceTypeEnum}),n.o(l,"SelectedOptions")&&n.d(t,"SelectedOptions",function(){return l.SelectedOptions}),n.o(l,"StateObject")&&n.d(t,"StateObject",function(){return l.StateObject}),n.o(l,"TransactionEnum")&&n.d(t,"TransactionEnum",function(){return l.TransactionEnum}),n.o(l,"personTitle")&&n.d(t,"personTitle",function(){return l.personTitle});var d=n(334);n.n(d);n.o(d,"AvailabilityApiEnum")&&n.d(t,"AvailabilityApiEnum",function(){return d.AvailabilityApiEnum}),n.o(d,"AvailabilityUrlEnum")&&n.d(t,"AvailabilityUrlEnum",function(){return d.AvailabilityUrlEnum}),n.o(d,"DevelopmentResourceTypeEnum")&&n.d(t,"DevelopmentResourceTypeEnum",function(){return d.DevelopmentResourceTypeEnum}),n.o(d,"DisplayTypeEnum")&&n.d(t,"DisplayTypeEnum",function(){return d.DisplayTypeEnum}),n.o(d,"DivisionEnum")&&n.d(t,"DivisionEnum",function(){return d.DivisionEnum}),n.o(d,"EventTypeEnum")&&n.d(t,"EventTypeEnum",function(){return d.EventTypeEnum}),n.o(d,"FixedEnum")&&n.d(t,"FixedEnum",function(){return d.FixedEnum}),n.o(d,"GeoBounds")&&n.d(t,"GeoBounds",function(){return d.GeoBounds}),n.o(d,"IDevelopment")&&n.d(t,"IDevelopment",function(){return d.IDevelopment}),n.o(d,"IMortgageCalculator")&&n.d(t,"IMortgageCalculator",function(){return d.IMortgageCalculator}),n.o(d,"IRelatedReport")&&n.d(t,"IRelatedReport",function(){return d.IRelatedReport}),n.o(d,"ITaxModel")&&n.d(t,"ITaxModel",function(){return d.ITaxModel}),n.o(d,"NspFloorArea")&&n.d(t,"NspFloorArea",function(){return d.NspFloorArea}),n.o(d,"NspLandArea")&&n.d(t,"NspLandArea",function(){return d.NspLandArea}),n.o(d,"NspLocation")&&n.d(t,"NspLocation",function(){return d.NspLocation}),n.o(d,"NspPrice")&&n.d(t,"NspPrice",function(){return d.NspPrice}),n.o(d,"NspProperty")&&n.d(t,"NspProperty",function(){return d.NspProperty}),n.o(d,"NspPropertyContact")&&n.d(t,"NspPropertyContact",function(){return d.NspPropertyContact}),n.o(d,"NspPropertyPreview")&&n.d(t,"NspPropertyPreview",function(){return d.NspPropertyPreview}),n.o(d,"NspPropertyResult")&&n.d(t,"NspPropertyResult",function(){return d.NspPropertyResult}),n.o(d,"PropertyListState")&&n.d(t,"PropertyListState",function(){return d.PropertyListState}),n.o(d,"PropertySearchRequestParams")&&n.d(t,"PropertySearchRequestParams",function(){return d.PropertySearchRequestParams}),n.o(d,"ResourceTypeEnum")&&n.d(t,"ResourceTypeEnum",function(){return d.ResourceTypeEnum}),n.o(d,"SelectedOptions")&&n.d(t,"SelectedOptions",function(){return d.SelectedOptions}),n.o(d,"StateObject")&&n.d(t,"StateObject",function(){return d.StateObject}),n.o(d,"TransactionEnum")&&n.d(t,"TransactionEnum",function(){return d.TransactionEnum}),n.o(d,"personTitle")&&n.d(t,"personTitle",function(){return d.personTitle});var p=n(656);n.n(p);n.o(p,"AvailabilityApiEnum")&&n.d(t,"AvailabilityApiEnum",function(){return p.AvailabilityApiEnum}),n.o(p,"AvailabilityUrlEnum")&&n.d(t,"AvailabilityUrlEnum",function(){return p.AvailabilityUrlEnum}),n.o(p,"DevelopmentResourceTypeEnum")&&n.d(t,"DevelopmentResourceTypeEnum",function(){return p.DevelopmentResourceTypeEnum}),n.o(p,"DisplayTypeEnum")&&n.d(t,"DisplayTypeEnum",function(){return p.DisplayTypeEnum}),n.o(p,"DivisionEnum")&&n.d(t,"DivisionEnum",function(){return p.DivisionEnum}),n.o(p,"EventTypeEnum")&&n.d(t,"EventTypeEnum",function(){return p.EventTypeEnum}),n.o(p,"FixedEnum")&&n.d(t,"FixedEnum",function(){return p.FixedEnum}),n.o(p,"GeoBounds")&&n.d(t,"GeoBounds",function(){return p.GeoBounds}),n.o(p,"IDevelopment")&&n.d(t,"IDevelopment",function(){return p.IDevelopment}),n.o(p,"IMortgageCalculator")&&n.d(t,"IMortgageCalculator",function(){return p.IMortgageCalculator}),n.o(p,"IRelatedReport")&&n.d(t,"IRelatedReport",function(){return p.IRelatedReport}),n.o(p,"ITaxModel")&&n.d(t,"ITaxModel",function(){return p.ITaxModel}),n.o(p,"NspFloorArea")&&n.d(t,"NspFloorArea",function(){return p.NspFloorArea}),n.o(p,"NspLandArea")&&n.d(t,"NspLandArea",function(){return p.NspLandArea}),n.o(p,"NspLocation")&&n.d(t,"NspLocation",function(){return p.NspLocation}),n.o(p,"NspPrice")&&n.d(t,"NspPrice",function(){return p.NspPrice}),n.o(p,"NspProperty")&&n.d(t,"NspProperty",function(){return p.NspProperty}),n.o(p,"NspPropertyContact")&&n.d(t,"NspPropertyContact",function(){return p.NspPropertyContact}),n.o(p,"NspPropertyPreview")&&n.d(t,"NspPropertyPreview",function(){return p.NspPropertyPreview}),n.o(p,"NspPropertyResult")&&n.d(t,"NspPropertyResult",function(){return p.NspPropertyResult}),n.o(p,"PropertyListState")&&n.d(t,"PropertyListState",function(){return p.PropertyListState}
2),n.o(p,"PropertySearchRequestParams")&&n.d(t,"PropertySearchRequestParams",function(){return p.PropertySearchRequestParams}),n.o(p,"ResourceTypeEnum")&&n.d(t,"ResourceTypeEnum",function(){return p.ResourceTypeEnum}),n.o(p,"SelectedOptions")&&n.d(t,"SelectedOptions",function(){return p.SelectedOptions}),n.o(p,"StateObject")&&n.d(t,"StateObject",function(){return p.StateObject}),n.o(p,"TransactionEnum")&&n.d(t,"TransactionEnum",function(){return p.TransactionEnum}),n.o(p,"personTitle")&&n.d(t,"personTitle",function(){return p.personTitle});var h=n(657);n.n(h);n.o(h,"AvailabilityApiEnum")&&n.d(t,"AvailabilityApiEnum",function(){return h.AvailabilityApiEnum}),n.o(h,"AvailabilityUrlEnum")&&n.d(t,"AvailabilityUrlEnum",function(){return h.AvailabilityUrlEnum}),n.o(h,"DevelopmentResourceTypeEnum")&&n.d(t,"DevelopmentResourceTypeEnum",function(){return h.DevelopmentResourceTypeEnum}),n.o(h,"DisplayTypeEnum")&&n.d(t,"DisplayTypeEnum",function(){return h.DisplayTypeEnum}),n.o(h,"DivisionEnum")&&n.d(t,"DivisionEnum",function(){return h.DivisionEnum}),n.o(h,"EventTypeEnum")&&n.d(t,"EventTypeEnum",function(){return h.EventTypeEnum}),n.o(h,"FixedEnum")&&n.d(t,"FixedEnum",function(){return h.FixedEnum}),n.o(h,"GeoBounds")&&n.d(t,"GeoBounds",function(){return h.GeoBounds}),n.o(h,"IDevelopment")&&n.d(t,"IDevelopment",function(){return h.IDevelopment}),n.o(h,"IMortgageCalculator")&&n.d(t,"IMortgageCalculator",function(){return h.IMortgageCalculator}),n.o(h,"IRelatedReport")&&n.d(t,"IRelatedReport",function(){return h.IRelatedReport}),n.o(h,"ITaxModel")&&n.d(t,"ITaxModel",function(){return h.ITaxModel}),n.o(h,"NspFloorArea")&&n.d(t,"NspFloorArea",function(){return h.NspFloorArea}),n.o(h,"NspLandArea")&&n.d(t,"NspLandArea",function(){return h.NspLandArea}),n.o(h,"NspLocation")&&n.d(t,"NspLocation",function(){return h.NspLocation}),n.o(h,"NspPrice")&&n.d(t,"NspPrice",function(){return h.NspPrice}),n.o(h,"NspProperty")&&n.d(t,"NspProperty",function(){return h.NspProperty}),n.o(h,"NspPropertyContact")&&n.d(t,"NspPropertyContact",function(){return h.NspPropertyContact}),n.o(h,"NspPropertyPreview")&&n.d(t,"NspPropertyPreview",function(){return h.NspPropertyPreview}),n.o(h,"NspPropertyResult")&&n.d(t,"NspPropertyResult",function(){return h.NspPropertyResult}),n.o(h,"PropertyListState")&&n.d(t,"PropertyListState",function(){return h.PropertyListState}),n.o(h,"PropertySearchRequestParams")&&n.d(t,"PropertySearchRequestParams",function(){return h.PropertySearchRequestParams}),n.o(h,"ResourceTypeEnum")&&n.d(t,"ResourceTypeEnum",function(){return h.ResourceTypeEnum}),n.o(h,"SelectedOptions")&&n.d(t,"SelectedOptions",function(){return h.SelectedOptions}),n.o(h,"StateObject")&&n.d(t,"StateObject",function(){return h.StateObject}),n.o(h,"TransactionEnum")&&n.d(t,"TransactionEnum",function(){return h.TransactionEnum}),n.o(h,"personTitle")&&n.d(t,"personTitle",function(){return h.personTitle});var f=n(658);n.n(f);n.o(f,"AvailabilityApiEnum")&&n.d(t,"AvailabilityApiEnum",function(){return f.AvailabilityApiEnum}),n.o(f,"AvailabilityUrlEnum")&&n.d(t,"AvailabilityUrlEnum",function(){return f.AvailabilityUrlEnum}),n.o(f,"DevelopmentResourceTypeEnum")&&n.d(t,"DevelopmentResourceTypeEnum",function(){return f.DevelopmentResourceTypeEnum}),n.o(f,"DisplayTypeEnum")&&n.d(t,"DisplayTypeEnum",function(){return f.DisplayTypeEnum}),n.o(f,"DivisionEnum")&&n.d(t,"DivisionEnum",function(){return f.DivisionEnum}),n.o(f,"EventTypeEnum")&&n.d(t,"EventTypeEnum",function(){return f.EventTypeEnum}),n.o(f,"FixedEnum")&&n.d(t,"FixedEnum",function(){return f.FixedEnum}),n.o(f,"GeoBounds")&&n.d(t,"GeoBounds",function(){return f.GeoBounds}),n.o(f,"IDevelopment")&&n.d(t,"IDevelopment",function(){return f.IDevelopment}),n.o(f,"IMortgageCalculator")&&n.d(t,"IMortgageCalculator",function(){return f.IMortgageCalculator}),n.o(f,"IRelatedReport")&&n.d(t,"IRelatedReport",function(){return f.IRelatedReport}),n.o(f,"ITaxModel")&&n.d(t,"ITaxModel",function(){return f.ITaxModel}),n.o(f,"NspFloorArea")&&n.d(t,"NspFloorArea",function(){return f.NspFloorArea}),n.o(f,"NspLandArea")&&n.d(t,"NspLandArea",function(){return f.NspLandArea}),n.o(f,"NspLocation")&&n.d(t,"NspLocation",function(){return f.NspLocation}),n.o(f,"NspPrice")&&n.d(t,"NspPrice",function(){return f.NspPrice}),n.o(f,"NspProperty")&&n.d(t,"NspProperty",function(){return f.NspProperty}),n.o(f,"NspPropertyContact")&&n.d(t,"NspPropertyContact",function(){return f.NspPropertyContact}),n.o(f,"NspPropertyPreview")&&n.d(t,"NspPropertyPreview",function(){return f.NspPropertyPreview}),n.o(f,"NspPropertyResult")&&n.d(t,"NspPropertyResult",function(){return f.NspPropertyResult}),n.o(f,"PropertyListState")&&n.d(t,"PropertyListState",function(){return f.PropertyListState}
2),n.o(f,"PropertySearchRequestParams")&&n.d(t,"PropertySearchRequestParams",function(){return f.PropertySearchRequestParams}),n.o(f,"ResourceTypeEnum")&&n.d(t,"ResourceTypeEnum",function(){return f.ResourceTypeEnum}),n.o(f,"SelectedOptions")&&n.d(t,"SelectedOptions",function(){return f.SelectedOptions}),n.o(f,"StateObject")&&n.d(t,"StateObject",function(){return f.StateObject}),n.o(f,"TransactionEnum")&&n.d(t,"TransactionEnum",function(){return f.TransactionEnum}),n.o(f,"personTitle")&&n.d(t,"personTitle",function(){return f.personTitle});var m=n(659);n.d(t,"NspPropertyPreview",function(){return m.a});var g=n(660);n.n(g);n.o(g,"AvailabilityApiEnum")&&n.d(t,"AvailabilityApiEnum",function(){return g.AvailabilityApiEnum}),n.o(g,"AvailabilityUrlEnum")&&n.d(t,"AvailabilityUrlEnum",function(){return g.AvailabilityUrlEnum}),n.o(g,"DevelopmentResourceTypeEnum")&&n.d(t,"DevelopmentResourceTypeEnum",function(){return g.DevelopmentResourceTypeEnum}),n.o(g,"DisplayTypeEnum")&&n.d(t,"DisplayTypeEnum",function(){return g.DisplayTypeEnum}),n.o(g,"DivisionEnum")&&n.d(t,"DivisionEnum",function(){return g.DivisionEnum}),n.o(g,"EventTypeEnum")&&n.d(t,"EventTypeEnum",function(){return g.EventTypeEnum}),n.o(g,"FixedEnum")&&n.d(t,"FixedEnum",function(){return g.FixedEnum}),n.o(g,"GeoBounds")&&n.d(t,"GeoBounds",function(){return g.GeoBounds}),n.o(g,"IDevelopment")&&n.d(t,"IDevelopment",function(){return g.IDevelopment}),n.o(g,"IMortgageCalculator")&&n.d(t,"IMortgageCalculator",function(){return g.IMortgageCalculator}),n.o(g,"IRelatedReport")&&n.d(t,"IRelatedReport",function(){return g.IRelatedReport}),n.o(g,"ITaxModel")&&n.d(t,"ITaxModel",function(){return g.ITaxModel}),n.o(g,"NspFloorArea")&&n.d(t,"NspFloorArea",function(){return g.NspFloorArea}),n.o(g,"NspLandArea")&&n.d(t,"NspLandArea",function(){return g.NspLandArea}),n.o(g,"NspLocation")&&n.d(t,"NspLocation",function(){return g.NspLocation}),n.o(g,"NspPrice")&&n.d(t,"NspPrice",function(){return g.NspPrice}),n.o(g,"NspProperty")&&n.d(t,"NspProperty",function(){return g.NspProperty}),n.o(g,"NspPropertyContact")&&n.d(t,"NspPropertyContact",function(){return g.NspPropertyContact}),n.o(g,"NspPropertyResult")&&n.d(t,"NspPropertyResult",function(){return g.NspPropertyResult}),n.o(g,"PropertyListState")&&n.d(t,"PropertyListState",function(){return g.PropertyListState}),n.o(g,"PropertySearchRequestParams")&&n.d(t,"PropertySearchRequestParams",function(){return g.PropertySearchRequestParams}),n.o(g,"ResourceTypeEnum")&&n.d(t,"ResourceTypeEnum",function(){return g.ResourceTypeEnum}),n.o(g,"SelectedOptions")&&n.d(t,"SelectedOptions",function(){return g.SelectedOptions}),n.o(g,"StateObject")&&n.d(t,"StateObject",function(){return g.StateObject}),n.o(g,"TransactionEnum")&&n.d(t,"TransactionEnum",function(){return g.TransactionEnum}),n.o(g,"personTitle")&&n.d(t,"personTitle",function(){return g.personTitle});var y=n(661);n.n(y);n.o(y,"AvailabilityApiEnum")&&n.d(t,"AvailabilityApiEnum",function(){return y.AvailabilityApiEnum}),n.o(y,"AvailabilityUrlEnum")&&n.d(t,"AvailabilityUrlEnum",function(){return y.AvailabilityUrlEnum}),n.o(y,"DevelopmentResourceTypeEnum")&&n.d(t,"DevelopmentResourceTypeEnum",function(){return y.DevelopmentResourceTypeEnum}),n.o(y,"DisplayTypeEnum")&&n.d(t,"DisplayTypeEnum",function(){return y.DisplayTypeEnum}),n.o(y,"DivisionEnum")&&n.d(t,"DivisionEnum",function(){return y.DivisionEnum}),n.o(y,"EventTypeEnum")&&n.d(t,"EventTypeEnum",function(){return y.EventTypeEnum}),n.o(y,"FixedEnum")&&n.d(t,"FixedEnum",function(){return y.FixedEnum}),n.o(y,"GeoBounds")&&n.d(t,"GeoBounds",function(){return y.GeoBounds}),n.o(y,"IDevelopment")&&n.d(t,"IDevelopment",function(){return y.IDevelopment}),n.o(y,"IMortgageCalculator")&&n.d(t,"IMortgageCalculator",function(){return y.IMortgageCalculator}),n.o(y,"IRelatedReport")&&n.d(t,"IRelatedReport",function(){return y.IRelatedReport}),n.o(y,"ITaxModel")&&n.d(t,"ITaxModel",function(){return y.ITaxModel}),n.o(y,"NspFloorArea")&&n.d(t,"NspFloorArea",function(){return y.NspFloorArea}),n.o(y,"NspLandArea")&&n.d(t,"NspLandArea",function(){return y.NspLandArea}),n.o(y,"NspLocation")&&n.d(t,"NspLocation",function(){return y.NspLocation}),n.o(y,"NspPrice")&&n.d(t,"NspPrice",function(){return y.NspPrice}),n.o(y,"NspProperty")&&n.d(t,"NspProperty",function(){return y.NspProperty}),n.o(y,"NspPropertyContact")&&n.d(t,"NspPropertyContact",function(){return y.NspPropertyContact}),n.o(y,"NspPropertyResult")&&n.d(t,"NspPropertyResult",function(){return y.NspPropertyResult}),n.o(y,"PropertyListState")&&n.d(t,"PropertyListState",function(){return y.PropertyListState}
2),n.o(y,"PropertySearchRequestParams")&&n.d(t,"PropertySearchRequestParams",function(){return y.PropertySearchRequestParams}),n.o(y,"ResourceTypeEnum")&&n.d(t,"ResourceTypeEnum",function(){return y.ResourceTypeEnum}),n.o(y,"SelectedOptions")&&n.d(t,"SelectedOptions",function(){return y.SelectedOptions}),n.o(y,"StateObject")&&n.d(t,"StateObject",function(){return y.StateObject}),n.o(y,"TransactionEnum")&&n.d(t,"TransactionEnum",function(){return y.TransactionEnum}),n.o(y,"personTitle")&&n.d(t,"personTitle",function(){return y.personTitle});var v=n(662);n.n(v);n.o(v,"AvailabilityApiEnum")&&n.d(t,"AvailabilityApiEnum",function(){return v.AvailabilityApiEnum}),n.o(v,"AvailabilityUrlEnum")&&n.d(t,"AvailabilityUrlEnum",function(){return v.AvailabilityUrlEnum}),n.o(v,"DevelopmentResourceTypeEnum")&&n.d(t,"DevelopmentResourceTypeEnum",function(){return v.DevelopmentResourceTypeEnum}),n.o(v,"DisplayTypeEnum")&&n.d(t,"DisplayTypeEnum",function(){return v.DisplayTypeEnum}),n.o(v,"DivisionEnum")&&n.d(t,"DivisionEnum",function(){return v.DivisionEnum}),n.o(v,"EventTypeEnum")&&n.d(t,"EventTypeEnum",function(){return v.EventTypeEnum}),n.o(v,"FixedEnum")&&n.d(t,"FixedEnum",function(){return v.FixedEnum}),n.o(v,"GeoBounds")&&n.d(t,"GeoBounds",function(){return v.GeoBounds}),n.o(v,"IDevelopment")&&n.d(t,"IDevelopment",function(){return v.IDevelopment}),n.o(v,"IMortgageCalculator")&&n.d(t,"IMortgageCalculator",function(){return v.IMortgageCalculator}),n.o(v,"IRelatedReport")&&n.d(t,"IRelatedReport",function(){return v.IRelatedReport}),n.o(v,"ITaxModel")&&n.d(t,"ITaxModel",function(){return v.ITaxModel}),n.o(v,"NspFloorArea")&&n.d(t,"NspFloorArea",function(){return v.NspFloorArea}),n.o(v,"NspLandArea")&&n.d(t,"NspLandArea",function(){return v.NspLandArea}),n.o(v,"NspLocation")&&n.d(t,"NspLocation",function(){return v.NspLocation}),n.o(v,"NspPrice")&&n.d(t,"NspPrice",function(){return v.NspPrice}),n.o(v,"NspProperty")&&n.d(t,"NspProperty",function(){return v.NspProperty}),n.o(v,"NspPropertyContact")&&n.d(t,"NspPropertyContact",function(){return v.NspPropertyContact}),n.o(v,"NspPropertyResult")&&n.d(t,"NspPropertyResult",function(){return v.NspPropertyResult}),n.o(v,"PropertyListState")&&n.d(t,"PropertyListState",function(){return v.PropertyListState}),n.o(v,"PropertySearchRequestParams")&&n.d(t,"PropertySearchRequestParams",function(){return v.PropertySearchRequestParams}),n.o(v,"ResourceTypeEnum")&&n.d(t,"ResourceTypeEnum",function(){return v.ResourceTypeEnum}),n.o(v,"SelectedOptions")&&n.d(t,"SelectedOptions",function(){return v.SelectedOptions}),n.o(v,"StateObject")&&n.d(t,"StateObject",function(){return v.StateObject}),n.o(v,"TransactionEnum")&&n.d(t,"TransactionEnum",function(){return v.TransactionEnum}),n.o(v,"personTitle")&&n.d(t,"personTitle",function(){return v.personTitle});var b=n(663);n.n(b);n.o(b,"AvailabilityApiEnum")&&n.d(t,"AvailabilityApiEnum",function(){return b.AvailabilityApiEnum}),n.o(b,"AvailabilityUrlEnum")&&n.d(t,"AvailabilityUrlEnum",function(){return b.AvailabilityUrlEnum}),n.o(b,"DevelopmentResourceTypeEnum")&&n.d(t,"DevelopmentResourceTypeEnum",function(){return b.DevelopmentResourceTypeEnum}),n.o(b,"DisplayTypeEnum")&&n.d(t,"DisplayTypeEnum",function(){return b.DisplayTypeEnum}),n.o(b,"DivisionEnum")&&n.d(t,"DivisionEnum",function(){return b.DivisionEnum}),n.o(b,"EventTypeEnum")&&n.d(t,"EventTypeEnum",function(){return b.EventTypeEnum}),n.o(b,"FixedEnum")&&n.d(t,"FixedEnum",function(){return b.FixedEnum}),n.o(b,"GeoBounds")&&n.d(t,"GeoBounds",function(){return b.GeoBounds}),n.o(b,"IDevelopment")&&n.d(t,"IDevelopment",function(){return b.IDevelopment}),n.o(b,"IMortgageCalculator")&&n.d(t,"IMortgageCalculator",function(){return b.IMortgageCalculator}),n.o(b,"IRelatedReport")&&n.d(t,"IRelatedReport",function(){return b.IRelatedReport}),n.o(b,"ITaxModel")&&n.d(t,"ITaxModel",function(){return b.ITaxModel}),n.o(b,"NspFloorArea")&&n.d(t,"NspFloorArea",function(){return b.NspFloorArea}),n.o(b,"NspLandArea")&&n.d(t,"NspLandArea",function(){return b.NspLandArea}),n.o(b,"NspLocation")&&n.d(t,"NspLocation",function(){return b.NspLocation}),n.o(b,"NspPrice")&&n.d(t,"NspPrice",function(){return b.NspPrice}),n.o(b,"NspProperty")&&n.d(t,"NspProperty",function(){return b.NspProperty}),n.o(b,"NspPropertyContact")&&n.d(t,"NspPropertyContact",function(){return b.NspPropertyContact}),n.o(b,"NspPropertyResult")&&n.d(t,"NspPropertyResult",function(){return b.NspPropertyResult}),n.o(b,"PropertyListState")&&n.d(t,"PropertyListState",function(){return b.PropertyListState}
2),n.o(b,"PropertySearchRequestParams")&&n.d(t,"PropertySearchRequestParams",function(){return b.PropertySearchRequestParams}),n.o(b,"ResourceTypeEnum")&&n.d(t,"ResourceTypeEnum",function(){return b.ResourceTypeEnum}),n.o(b,"SelectedOptions")&&n.d(t,"SelectedOptions",function(){return b.SelectedOptions}),n.o(b,"StateObject")&&n.d(t,"StateObject",function(){return b.StateObject}),n.o(b,"TransactionEnum")&&n.d(t,"TransactionEnum",function(){return b.TransactionEnum}),n.o(b,"personTitle")&&n.d(t,"personTitle",function(){return b.personTitle});var S=n(336);n.n(S);n.o(S,"AvailabilityApiEnum")&&n.d(t,"AvailabilityApiEnum",function(){return S.AvailabilityApiEnum}),n.o(S,"AvailabilityUrlEnum")&&n.d(t,"AvailabilityUrlEnum",function(){return S.AvailabilityUrlEnum}),n.o(S,"DevelopmentResourceTypeEnum")&&n.d(t,"DevelopmentResourceTypeEnum",function(){return S.DevelopmentResourceTypeEnum}),n.o(S,"DisplayTypeEnum")&&n.d(t,"DisplayTypeEnum",function(){return S.DisplayTypeEnum}),n.o(S,"DivisionEnum")&&n.d(t,"DivisionEnum",function(){return S.DivisionEnum}),n.o(S,"EventTypeEnum")&&n.d(t,"EventTypeEnum",function(){return S.EventTypeEnum}),n.o(S,"FixedEnum")&&n.d(t,"FixedEnum",function(){return S.FixedEnum}),n.o(S,"GeoBounds")&&n.d(t,"GeoBounds",function(){return S.GeoBounds}),n.o(S,"IDevelopment")&&n.d(t,"IDevelopment",function(){return S.IDevelopment}),n.o(S,"IMortgageCalculator")&&n.d(t,"IMortgageCalculator",function(){return S.IMortgageCalculator}),n.o(S,"IRelatedReport")&&n.d(t,"IRelatedReport",function(){return S.IRelatedReport}),n.o(S,"ITaxModel")&&n.d(t,"ITaxModel",function(){return S.ITaxModel}),n.o(S,"NspFloorArea")&&n.d(t,"NspFloorArea",function(){return S.NspFloorArea}),n.o(S,"NspLandArea")&&n.d(t,"NspLandArea",function(){return S.NspLandArea}),n.o(S,"NspLocation")&&n.d(t,"NspLocation",function(){return S.NspLocation}),n.o(S,"NspPrice")&&n.d(t,"NspPrice",function(){return S.NspPrice}),n.o(S,"NspProperty")&&n.d(t,"NspProperty",function(){return S.NspProperty}),n.o(S,"NspPropertyContact")&&n.d(t,"NspPropertyContact",function(){return S.NspPropertyContact}),n.o(S,"NspPropertyResult")&&n.d(t,"NspPropertyResult",function(){return S.NspPropertyResult}),n.o(S,"PropertyListState")&&n.d(t,"PropertyListState",function(){return S.PropertyListState}),n.o(S,"PropertySearchRequestParams")&&n.d(t,"PropertySearchRequestParams",function(){return S.PropertySearchRequestParams}),n.o(S,"ResourceTypeEnum")&&n.d(t,"ResourceTypeEnum",function(){return S.ResourceTypeEnum}),n.o(S,"SelectedOptions")&&n.d(t,"SelectedOptions",function(){return S.SelectedOptions}),n.o(S,"StateObject")&&n.d(t,"StateObject",function(){return S.StateObject}),n.o(S,"TransactionEnum")&&n.d(t,"TransactionEnum",function(){return S.TransactionEnum}),n.o(S,"personTitle")&&n.d(t,"personTitle",function(){return S.personTitle});var E=n(664);n.d(t,"NspPropertyResult",function(){return E.a});var C=n(665);n.d(t,"NspPrice",function(){return C.a});var T=n(666);n.n(T);n.o(T,"AvailabilityApiEnum")&&n.d(t,"AvailabilityApiEnum",function(){return T.AvailabilityApiEnum}),n.o(T,"AvailabilityUrlEnum")&&n.d(t,"AvailabilityUrlEnum",function(){return T.AvailabilityUrlEnum}),n.o(T,"DevelopmentResourceTypeEnum")&&n.d(t,"DevelopmentResourceTypeEnum",function(){return T.DevelopmentResourceTypeEnum}),n.o(T,"DisplayTypeEnum")&&n.d(t,"DisplayTypeEnum",function(){return T.DisplayTypeEnum}),n.o(T,"DivisionEnum")&&n.d(t,"DivisionEnum",function(){return T.DivisionEnum}),n.o(T,"EventTypeEnum")&&n.d(t,"EventTypeEnum",function(){return T.EventTypeEnum}),n.o(T,"FixedEnum")&&n.d(t,"FixedEnum",function(){return T.FixedEnum}),n.o(T,"GeoBounds")&&n.d(t,"GeoBounds",function(){return T.GeoBounds}),n.o(T,"IDevelopment")&&n.d(t,"IDevelopment",function(){return T.IDevelopment}),n.o(T,"IMortgageCalculator")&&n.d(t,"IMortgageCalculator",function(){return T.IMortgageCalculator}),n.o(T,"IRelatedReport")&&n.d(t,"IRelatedReport",function(){return T.IRelatedReport}),n.o(T,"ITaxModel")&&n.d(t,"ITaxModel",function(){return T.ITaxModel}),n.o(T,"NspFloorArea")&&n.d(t,"NspFloorArea",function(){return T.NspFloorArea}),n.o(T,"NspLandArea")&&n.d(t,"NspLandArea",function(){return T.NspLandArea}),n.o(T,"NspLocation")&&n.d(t,"NspLocation",function(){return T.NspLocation}),n.o(T,"NspProperty")&&n.d(t,"NspProperty",function(){return T.NspProperty}),n.o(T,"NspPropertyContact")&&n.d(t,"NspPropertyContact",function(){return T.NspPropertyContact}),n.o(T,"PropertyListState")&&n.d(t,"PropertyListState",function(){return T.PropertyListState}
2),n.o(T,"PropertySearchRequestParams")&&n.d(t,"PropertySearchRequestParams",function(){return T.PropertySearchRequestParams}),n.o(T,"ResourceTypeEnum")&&n.d(t,"ResourceTypeEnum",function(){return T.ResourceTypeEnum}),n.o(T,"SelectedOptions")&&n.d(t,"SelectedOptions",function(){return T.SelectedOptions}),n.o(T,"StateObject")&&n.d(t,"StateObject",function(){return T.StateObject}),n.o(T,"TransactionEnum")&&n.d(t,"TransactionEnum",function(){return T.TransactionEnum}),n.o(T,"personTitle")&&n.d(t,"personTitle",function(){return T.personTitle});var w=n(667);n.n(w);n.o(w,"AvailabilityApiEnum")&&n.d(t,"AvailabilityApiEnum",function(){return w.AvailabilityApiEnum}),n.o(w,"AvailabilityUrlEnum")&&n.d(t,"AvailabilityUrlEnum",function(){return w.AvailabilityUrlEnum}),n.o(w,"DevelopmentResourceTypeEnum")&&n.d(t,"DevelopmentResourceTypeEnum",function(){return w.DevelopmentResourceTypeEnum}),n.o(w,"DisplayTypeEnum")&&n.d(t,"DisplayTypeEnum",function(){return w.DisplayTypeEnum}),n.o(w,"DivisionEnum")&&n.d(t,"DivisionEnum",function(){return w.DivisionEnum}),n.o(w,"EventTypeEnum")&&n.d(t,"EventTypeEnum",function(){return w.EventTypeEnum}),n.o(w,"FixedEnum")&&n.d(t,"FixedEnum",function(){return w.FixedEnum}),n.o(w,"GeoBounds")&&n.d(t,"GeoBounds",function(){return w.GeoBounds}),n.o(w,"IDevelopment")&&n.d(t,"IDevelopment",function(){return w.IDevelopment}),n.o(w,"IMortgageCalculator")&&n.d(t,"IMortgageCalculator",function(){return w.IMortgageCalculator}),n.o(w,"IRelatedReport")&&n.d(t,"IRelatedReport",function(){return w.IRelatedReport}),n.o(w,"ITaxModel")&&n.d(t,"ITaxModel",function(){return w.ITaxModel}),n.o(w,"NspFloorArea")&&n.d(t,"NspFloorArea",function(){return w.NspFloorArea}),n.o(w,"NspLandArea")&&n.d(t,"NspLandArea",function(){return w.NspLandArea}),n.o(w,"NspLocation")&&n.d(t,"NspLocation",function(){return w.NspLocation}),n.o(w,"NspProperty")&&n.d(t,"NspProperty",function(){return w.NspProperty}),n.o(w,"NspPropertyContact")&&n.d(t,"NspPropertyContact",function(){return w.NspPropertyContact}),n.o(w,"PropertyListState")&&n.d(t,"PropertyListState",function(){return w.PropertyListState}),n.o(w,"PropertySearchRequestParams")&&n.d(t,"PropertySearchRequestParams",function(){return w.PropertySearchRequestParams}),n.o(w,"ResourceTypeEnum")&&n.d(t,"ResourceTypeEnum",function(){return w.ResourceTypeEnum}),n.o(w,"SelectedOptions")&&n.d(t,"SelectedOptions",function(){return w.SelectedOptions}),n.o(w,"StateObject")&&n.d(t,"StateObject",function(){return w.StateObject}),n.o(w,"TransactionEnum")&&n.d(t,"TransactionEnum",function(){return w.TransactionEnum}),n.o(w,"personTitle")&&n.d(t,"personTitle",function(){return w.personTitle});var _=n(668);n.n(_);n.o(_,"AvailabilityApiEnum")&&n.d(t,"AvailabilityApiEnum",function(){return _.AvailabilityApiEnum}),n.o(_,"AvailabilityUrlEnum")&&n.d(t,"AvailabilityUrlEnum",function(){return _.AvailabilityUrlEnum}),n.o(_,"DevelopmentResourceTypeEnum")&&n.d(t,"DevelopmentResourceTypeEnum",function(){return _.DevelopmentResourceTypeEnum}),n.o(_,"DisplayTypeEnum")&&n.d(t,"DisplayTypeEnum",function(){return _.DisplayTypeEnum}),n.o(_,"DivisionEnum")&&n.d(t,"DivisionEnum",function(){return _.DivisionEnum}),n.o(_,"EventTypeEnum")&&n.d(t,"EventTypeEnum",function(){return _.EventTypeEnum}),n.o(_,"FixedEnum")&&n.d(t,"FixedEnum",function(){return _.FixedEnum}),n.o(_,"GeoBounds")&&n.d(t,"GeoBounds",function(){return _.GeoBounds}),n.o(_,"IDevelopment")&&n.d(t,"IDevelopment",function(){return _.IDevelopment}),n.o(_,"IMortgageCalculator")&&n.d(t,"IMortgageCalculator",function(){return _.IMortgageCalculator}),n.o(_,"IRelatedReport")&&n.d(t,"IRelatedReport",function(){return _.IRelatedReport}),n.o(_,"ITaxModel")&&n.d(t,"ITaxModel",function(){return _.ITaxModel}),n.o(_,"NspFloorArea")&&n.d(t,"NspFloorArea",function(){return _.NspFloorArea}),n.o(_,"NspLandArea")&&n.d(t,"NspLandArea",function(){return _.NspLandArea}),n.o(_,"NspLocation")&&n.d(t,"NspLocation",function(){return _.NspLocation}),n.o(_,"NspProperty")&&n.d(t,"NspProperty",function(){return _.NspProperty}),n.o(_,"NspPropertyContact")&&n.d(t,"NspPropertyContact",function(){return _.NspPropertyContact}),n.o(_,"PropertyListState")&&n.d(t,"PropertyListState",function(){return _.PropertyListState}
2),n.o(_,"PropertySearchRequestParams")&&n.d(t,"PropertySearchRequestParams",function(){return _.PropertySearchRequestParams}),n.o(_,"ResourceTypeEnum")&&n.d(t,"ResourceTypeEnum",function(){return _.ResourceTypeEnum}),n.o(_,"SelectedOptions")&&n.d(t,"SelectedOptions",function(){return _.SelectedOptions}),n.o(_,"StateObject")&&n.d(t,"StateObject",function(){return _.StateObject}),n.o(_,"TransactionEnum")&&n.d(t,"TransactionEnum",function(){return _.TransactionEnum}),n.o(_,"personTitle")&&n.d(t,"personTitle",function(){return _.personTitle});var I=n(669);n.n(I);n.o(I,"AvailabilityApiEnum")&&n.d(t,"AvailabilityApiEnum",function(){return I.AvailabilityApiEnum}),n.o(I,"AvailabilityUrlEnum")&&n.d(t,"AvailabilityUrlEnum",function(){return I.AvailabilityUrlEnum}),n.o(I,"DevelopmentResourceTypeEnum")&&n.d(t,"DevelopmentResourceTypeEnum",function(){return I.DevelopmentResourceTypeEnum}),n.o(I,"DisplayTypeEnum")&&n.d(t,"DisplayTypeEnum",function(){return I.DisplayTypeEnum}),n.o(I,"DivisionEnum")&&n.d(t,"DivisionEnum",function(){return I.DivisionEnum}),n.o(I,"EventTypeEnum")&&n.d(t,"EventTypeEnum",function(){return I.EventTypeEnum}),n.o(I,"FixedEnum")&&n.d(t,"FixedEnum",function(){return I.FixedEnum}),n.o(I,"GeoBounds")&&n.d(t,"GeoBounds",function(){return I.GeoBounds}),n.o(I,"IDevelopment")&&n.d(t,"IDevelopment",function(){return I.IDevelopment}),n.o(I,"IMortgageCalculator")&&n.d(t,"IMortgageCalculator",function(){return I.IMortgageCalculator}),n.o(I,"IRelatedReport")&&n.d(t,"IRelatedReport",function(){return I.IRelatedReport}),n.o(I,"ITaxModel")&&n.d(t,"ITaxModel",function(){return I.ITaxModel}),n.o(I,"NspFloorArea")&&n.d(t,"NspFloorArea",function(){return I.NspFloorArea}),n.o(I,"NspLandArea")&&n.d(t,"NspLandArea",function(){return I.NspLandArea}),n.o(I,"NspLocation")&&n.d(t,"NspLocation",function(){return I.NspLocation}),n.o(I,"NspProperty")&&n.d(t,"NspProperty",function(){return I.NspProperty}),n.o(I,"NspPropertyContact")&&n.d(t,"NspPropertyContact",function(){return I.NspPropertyContact}),n.o(I,"PropertyListState")&&n.d(t,"PropertyListState",function(){return I.PropertyListState}),n.o(I,"PropertySearchRequestParams")&&n.d(t,"PropertySearchRequestParams",function(){return I.PropertySearchRequestParams}),n.o(I,"ResourceTypeEnum")&&n.d(t,"ResourceTypeEnum",function(){return I.ResourceTypeEnum}),n.o(I,"SelectedOptions")&&n.d(t,"SelectedOptions",function(){return I.SelectedOptions}),n.o(I,"StateObject")&&n.d(t,"StateObject",function(){return I.StateObject}),n.o(I,"TransactionEnum")&&n.d(t,"TransactionEnum",function(){return I.TransactionEnum}),n.o(I,"personTitle")&&n.d(t,"personTitle",function(){return I.personTitle});var P=n(670);n.d(t,"NspFloorArea",function(){return P.a});var R=n(671);n.n(R);n.o(R,"AvailabilityApiEnum")&&n.d(t,"AvailabilityApiEnum",function(){return R.AvailabilityApiEnum}),n.o(R,"AvailabilityUrlEnum")&&n.d(t,"AvailabilityUrlEnum",function(){return R.AvailabilityUrlEnum}),n.o(R,"DevelopmentResourceTypeEnum")&&n.d(t,"DevelopmentResourceTypeEnum",function(){return R.DevelopmentResourceTypeEnum}),n.o(R,"DisplayTypeEnum")&&n.d(t,"DisplayTypeEnum",function(){return R.DisplayTypeEnum}),n.o(R,"DivisionEnum")&&n.d(t,"DivisionEnum",function(){return R.DivisionEnum}),n.o(R,"EventTypeEnum")&&n.d(t,"EventTypeEnum",function(){return R.EventTypeEnum}),n.o(R,"FixedEnum")&&n.d(t,"FixedEnum",function(){return R.FixedEnum}),n.o(R,"GeoBounds")&&n.d(t,"GeoBounds",function(){return R.GeoBounds}),n.o(R,"IDevelopment")&&n.d(t,"IDevelopment",function(){return R.IDevelopment}),n.o(R,"IMortgageCalculator")&&n.d(t,"IMortgageCalculator",function(){return R.IMortgageCalculator}),n.o(R,"IRelatedReport")&&n.d(t,"IRelatedReport",function(){return R.IRelatedReport}),n.o(R,"ITaxModel")&&n.d(t,"ITaxModel",function(){return R.ITaxModel}),n.o(R,"NspLandArea")&&n.d(t,"NspLandArea",function(){return R.NspLandArea}),n.o(R,"NspLocation")&&n.d(t,"NspLocation",function(){return R.NspLocation}),n.o(R,"NspProperty")&&n.d(t,"NspProperty",function(){return R.NspProperty}),n.o(R,"NspPropertyContact")&&n.d(t,"NspPropertyContact",function(){return R.NspPropertyContact}),n.o(R,"PropertyListState")&&n.d(t,"PropertyListState",function(){return R.PropertyListState}
2),n.o(R,"PropertySearchRequestParams")&&n.d(t,"PropertySearchRequestParams",function(){return R.PropertySearchRequestParams}),n.o(R,"ResourceTypeEnum")&&n.d(t,"ResourceTypeEnum",function(){return R.ResourceTypeEnum}),n.o(R,"SelectedOptions")&&n.d(t,"SelectedOptions",function(){return R.SelectedOptions}),n.o(R,"StateObject")&&n.d(t,"StateObject",function(){return R.StateObject}),n.o(R,"TransactionEnum")&&n.d(t,"TransactionEnum",function(){return R.TransactionEnum}),n.o(R,"personTitle")&&n.d(t,"personTitle",function(){return R.personTitle});var O=n(672);n.n(O);n.o(O,"AvailabilityApiEnum")&&n.d(t,"AvailabilityApiEnum",function(){return O.AvailabilityApiEnum}),n.o(O,"AvailabilityUrlEnum")&&n.d(t,"AvailabilityUrlEnum",function(){return O.AvailabilityUrlEnum}),n.o(O,"DevelopmentResourceTypeEnum")&&n.d(t,"DevelopmentResourceTypeEnum",function(){return O.DevelopmentResourceTypeEnum}),n.o(O,"DisplayTypeEnum")&&n.d(t,"DisplayTypeEnum",function(){return O.DisplayTypeEnum}),n.o(O,"DivisionEnum")&&n.d(t,"DivisionEnum",function(){return O.DivisionEnum}),n.o(O,"EventTypeEnum")&&n.d(t,"EventTypeEnum",function(){return O.EventTypeEnum}),n.o(O,"FixedEnum")&&n.d(t,"FixedEnum",function(){return O.FixedEnum}),n.o(O,"GeoBounds")&&n.d(t,"GeoBounds",function(){return O.GeoBounds}),n.o(O,"IDevelopment")&&n.d(t,"IDevelopment",function(){return O.IDevelopment}),n.o(O,"IMortgageCalculator")&&n.d(t,"IMortgageCalculator",function(){return O.IMortgageCalculator}),n.o(O,"IRelatedReport")&&n.d(t,"IRelatedReport",function(){return O.IRelatedReport}),n.o(O,"ITaxModel")&&n.d(t,"ITaxModel",function(){return O.ITaxModel}),n.o(O,"NspLandArea")&&n.d(t,"NspLandArea",function(){return O.NspLandArea}),n.o(O,"NspLocation")&&n.d(t,"NspLocation",function(){return O.NspLocation}),n.o(O,"NspProperty")&&n.d(t,"NspProperty",function(){return O.NspProperty}),n.o(O,"NspPropertyContact")&&n.d(t,"NspPropertyContact",function(){return O.NspPropertyContact}),n.o(O,"PropertyListState")&&n.d(t,"PropertyListState",function(){return O.PropertyListState}),n.o(O,"PropertySearchRequestParams")&&n.d(t,"PropertySearchRequestParams",function(){return O.PropertySearchRequestParams}),n.o(O,"ResourceTypeEnum")&&n.d(t,"ResourceTypeEnum",function(){return O.ResourceTypeEnum}),n.o(O,"SelectedOptions")&&n.d(t,"SelectedOptions",function(){return O.SelectedOptions}),n.o(O,"StateObject")&&n.d(t,"StateObject",function(){return O.StateObject}),n.o(O,"TransactionEnum")&&n.d(t,"TransactionEnum",function(){return O.TransactionEnum}),n.o(O,"personTitle")&&n.d(t,"personTitle",function(){return O.personTitle});var A=n(673);n.n(A);
2n.o(A,"AvailabilityApiEnum")&&n.d(t,"AvailabilityApiEnum",function(){return A.AvailabilityApiEnum}),n.o(A,"AvailabilityUrlEnum")&&n.d(t,"AvailabilityUrlEnum",function(){return A.AvailabilityUrlEnum}),n.o(A,"DevelopmentResourceTypeEnum")&&n.d(t,"DevelopmentResourceTypeEnum",function(){return A.DevelopmentResourceTypeEnum}),n.o(A,"DisplayTypeEnum")&&n.d(t,"DisplayTypeEnum",function(){return A.DisplayTypeEnum}),n.o(A,"DivisionEnum")&&n.d(t,"DivisionEnum",function(){return A.DivisionEnum}),n.o(A,"EventTypeEnum")&&n.d(t,"EventTypeEnum",function(){return A.EventTypeEnum}),n.o(A,"FixedEnum")&&n.d(t,"FixedEnum",function(){return A.FixedEnum}),n.o(A,"GeoBounds")&&n.d(t,"GeoBounds",function(){return A.GeoBounds}),n.o(A,"IDevelopment")&&n.d(t,"IDevelopment",function(){return A.IDevelopment}),n.o(A,"IMortgageCalculator")&&n.d(t,"IMortgageCalculator",function(){return A.IMortgageCalculator}),n.o(A,"IRelatedReport")&&n.d(t,"IRelatedReport",function(){return A.IRelatedReport}),n.o(A,"ITaxModel")&&n.d(t,"ITaxModel",function(){return A.ITaxModel}),n.o(A,"NspLandArea")&&n.d(t,"NspLandArea",function(){return A.NspLandArea}),n.o(A,"NspLocation")&&n.d(t,"NspLocation",function(){return A.NspLocation}),n.o(A,"NspProperty")&&n.d(t,"NspProperty",function(){return A.NspProperty}),n.o(A,"NspPropertyContact")&&n.d(t,"NspPropertyContact",function(){return A.NspPropertyContact}),n.o(A,"PropertyListState")&&n.d(t,"PropertyListState",function(){return A.PropertyListState}),n.o(A,"PropertySearchRequestParams")&&n.d(t,"PropertySearchRequestParams",function(){return A.PropertySearchRequestParams}),n.o(A,"ResourceTypeEnum")&&n.d(t,"ResourceTypeEnum",function(){return A.ResourceTypeEnum}),n.o(A,"SelectedOptions")&&n.d(t,"SelectedOptions",function(){return A.SelectedOptions}),n.o(A,"StateObject")&&n.d(t,"StateObject",function(){return A.StateObject}),n.o(A,"TransactionEnum")&&n.d(t,"TransactionEnum",function(){return A.TransactionEnum}),n.o(A,"personTitle")&&n.d(t,"personTitle",function(){return A.personTitle});var k=n(674);n.n(k);n.o(k,"AvailabilityApiEnum")&&n.d(t,"AvailabilityApiEnum",function(){return k.AvailabilityApiEnum}),n.o(k,"AvailabilityUrlEnum")&&n.d(t,"AvailabilityUrlEnum",function(){return k.AvailabilityUrlEnum}),n.o(k,"DevelopmentResourceTypeEnum")&&n.d(t,"DevelopmentResourceTypeEnum",function(){return k.DevelopmentResourceTypeEnum}),n.o(k,"DisplayTypeEnum")&&n.d(t,"DisplayTypeEnum",function(){return k.DisplayTypeEnum}),n.o(k,"DivisionEnum")&&n.d(t,"DivisionEnum",function(){return k.DivisionEnum}),n.o(k,"EventTypeEnum")&&n.d(t,"EventTypeEnum",function(){return k.EventTypeEnum}),n.o(k,"FixedEnum")&&n.d(t,"FixedEnum",function(){return k.FixedEnum}),n.o(k,"GeoBounds")&&n.d(t,"GeoBounds",function(){return k.GeoBounds}),n.o(k,"IDevelopment")&&n.d(t,"IDevelopment",function(){return k.IDevelopment}),n.o(k,"IMortgageCalculator")&&n.d(t,"IMortgageCalculator",function(){return k.IMortgageCalculator}),n.o(k,"IRelatedReport")&&n.d(t,"IRelatedReport",function(){return k.IRelatedReport}),n.o(k,"ITaxModel")&&n.d(t,"ITaxModel",function(){return k.ITaxModel}
2),n.o(k,"NspLandArea")&&n.d(t,"NspLandArea",function(){return k.NspLandArea}),n.o(k,"NspLocation")&&n.d(t,"NspLocation",function(){return k.NspLocation}),n.o(k,"NspProperty")&&n.d(t,"NspProperty",function(){return k.NspProperty}),n.o(k,"NspPropertyContact")&&n.d(t,"NspPropertyContact",function(){return k.NspPropertyContact}),n.o(k,"PropertyListState")&&n.d(t,"PropertyListState",function(){return k.PropertyListState}),n.o(k,"PropertySearchRequestParams")&&n.d(t,"PropertySearchRequestParams",function(){return k.PropertySearchRequestParams}),n.o(k,"ResourceTypeEnum")&&n.d(t,"ResourceTypeEnum",function(){return k.ResourceTypeEnum}),n.o(k,"SelectedOptions")&&n.d(t,"SelectedOptions",function(){return k.SelectedOptions}),n.o(k,"StateObject")&&n.d(t,"StateObject",function(){return k.StateObject}),n.o(k,"TransactionEnum")&&n.d(t,"TransactionEnum",function(){return k.TransactionEnum}),n.o(k,"personTitle")&&n.d(t,"personTitle",function(){return k.personTitle});var M=n(675);n.d(t,"NspLandArea",function(){return M.a});var N=n(676);n.d(t,"PropertySearchRequestParams",function(){return N.a});var x=n(677);n.n(x);n.o(x,"AvailabilityApiEnum")&&n.d(t,"AvailabilityApiEnum",function(){return x.AvailabilityApiEnum}),n.o(x,"AvailabilityUrlEnum")&&n.d(t,"AvailabilityUrlEnum",function(){return x.AvailabilityUrlEnum}),n.o(x,"DevelopmentResourceTypeEnum")&&n.d(t,"DevelopmentResourceTypeEnum",function(){return x.DevelopmentResourceTypeEnum}),n.o(x,"DisplayTypeEnum")&&n.d(t,"DisplayTypeEnum",function(){return x.DisplayTypeEnum}),n.o(x,"DivisionEnum")&&n.d(t,"DivisionEnum",function(){return x.DivisionEnum}),n.o(x,"EventTypeEnum")&&n.d(t,"EventTypeEnum",function(){return x.EventTypeEnum}),n.o(x,"FixedEnum")&&n.d(t,"FixedEnum",function(){return x.FixedEnum}),n.o(x,"GeoBounds")&&n.d(t,"GeoBounds",function(){return x.GeoBounds}),n.o(x,"IDevelopment")&&n.d(t,"IDevelopment",function(){return x.IDevelopment}),n.o(x,"IMortgageCalculator")&&n.d(t,"IMortgageCalculator",function(){return x.IMortgageCalculator}),n.o(x,"IRelatedReport")&&n.d(t,"IRelatedReport",function(){return x.IRelatedReport}),n.o(x,"ITaxModel")&&n.d(t,"ITaxModel",function(){return x.ITaxModel}),n.o(x,"NspLocation")&&n.d(t,"NspLocation",function(){return x.NspLocation}),n.o(x,"NspProperty")&&n.d(t,"NspProperty",function(){return x.NspProperty}),n.o(x,"NspPropertyContact")&&n.d(t,"NspPropertyContact",function(){return x.NspPropertyContact}),n.o(x,"PropertyListState")&&n.d(t,"PropertyListState",function(){return x.PropertyListState}),n.o(x,"ResourceTypeEnum")&&n.d(t,"ResourceTypeEnum",function(){return x.ResourceTypeEnum}),n.o(x,"SelectedOptions")&&n.d(t,"SelectedOptions",function(){return x.SelectedOptions}),n.o(x,"StateObject")&&n.d(t,"StateObject",function(){return x.StateObject}),n.o(x,"TransactionEnum")&&n.d(t,"TransactionEnum",function(){return x.TransactionEnum}),n.o(x,"personTitle")&&n.d(t,"personTitle",function(){return x.personTitle});var L=n(678);n.n(L);n.o(L,"AvailabilityApiEnum")&&n.d(t,"AvailabilityApiEnum",function(){return L.AvailabilityApiEnum}),n.o(L,"AvailabilityUrlEnum")&&n.d(t,"AvailabilityUrlEnum",function(){return L.AvailabilityUrlEnum}),n.o(L,"DevelopmentResourceTypeEnum")&&n.d(t,"DevelopmentResourceTypeEnum",function(){return L.DevelopmentResourceTypeEnum}),n.o(L,"DisplayTypeEnum")&&n.d(t,"DisplayTypeEnum",function(){return L.DisplayTypeEnum}),n.o(L,"DivisionEnum")&&n.d(t,"DivisionEnum",function(){return L.DivisionEnum}),n.o(L,"EventTypeEnum")&&n.d(t,"EventTypeEnum",function(){return L.EventTypeEnum}),n.o(L,"FixedEnum")&&n.d(t,"FixedEnum",function(){return L.FixedEnum}),n.o(L,"GeoBounds")&&n.d(t,"GeoBounds",function(){return L.GeoBounds}),n.o(L,"IDevelopment")&&n.d(t,"IDevelopment",function(){return L.IDevelopment}),n.o(L,"IMortgageCalculator")&&n.d(t,"IMortgageCalculator",function(){return L.IMortgageCalculator}),n.o(L,"IRelatedReport")&&n.d(t,"IRelatedReport",function(){return L.IRelatedReport}),n.o(L,"ITaxModel")&&n.d(t,"ITaxModel",function(){return L.ITaxModel}),n.o(L,"NspLocation")&&n.d(t,"NspLocation",function(){return L.NspLocation}),n.o(L,"NspProperty")&&n.d(t,"NspProperty",function(){return L.NspProperty}),n.o(L,"NspPropertyContact")&&n.d(t,"NspPropertyContact",function(){return L.NspPropertyContact}),n.o(L,"PropertyListState")&&n.d(t,"PropertyListState",function(){return L.PropertyListState}),n.o(L,"ResourceTypeEnum")&&n.d(t,"ResourceTypeEnum",function(){return L.ResourceTypeEnum}),n.o(L,"SelectedOptions")&&n.d(t,"SelectedOptions",function(){return L.SelectedOptions}),n.o(L,"StateObject")&&n.d(t,"StateObject",function(){return L.StateObject}),n.o(L,"TransactionEnum")&&n.d(t,"TransactionEnum",function(){return L.TransactionEnum}),n.o(L,"personTitle")&&n.d(t,"personTitle",function(){return L.personTitle});var j=n(679);
2n.n(j);n.o(j,"AvailabilityApiEnum")&&n.d(t,"AvailabilityApiEnum",function(){return j.AvailabilityApiEnum}),n.o(j,"AvailabilityUrlEnum")&&n.d(t,"AvailabilityUrlEnum",function(){return j.AvailabilityUrlEnum}),n.o(j,"DevelopmentResourceTypeEnum")&&n.d(t,"DevelopmentResourceTypeEnum",function(){return j.DevelopmentResourceTypeEnum}),n.o(j,"DisplayTypeEnum")&&n.d(t,"DisplayTypeEnum",function(){return j.DisplayTypeEnum}),n.o(j,"DivisionEnum")&&n.d(t,"DivisionEnum",function(){return j.DivisionEnum}),n.o(j,"EventTypeEnum")&&n.d(t,"EventTypeEnum",function(){return j.EventTypeEnum}),n.o(j,"FixedEnum")&&n.d(t,"FixedEnum",function(){return j.FixedEnum}),n.o(j,"GeoBounds")&&n.d(t,"GeoBounds",function(){return j.GeoBounds}),n.o(j,"IDevelopment")&&n.d(t,"IDevelopment",function(){return j.IDevelopment}),n.o(j,"IMortgageCalculator")&&n.d(t,"IMortgageCalculator",function(){return j.IMortgageCalculator}),n.o(j,"IRelatedReport")&&n.d(t,"IRelatedReport",function(){return j.IRelatedReport}),n.o(j,"ITaxModel")&&n.d(t,"ITaxModel",function(){return j.ITaxModel}),n.o(j,"NspLocation")&&n.d(t,"NspLocation",function(){return j.NspLocation}),n.o(j,"NspProperty")&&n.d(t,"NspProperty",function(){return j.NspProperty}),n.o(j,"NspPropertyContact")&&n.d(t,"NspPropertyContact",function(){return j.NspPropertyContact}),n.o(j,"PropertyListState")&&n.d(t,"PropertyListState",function(){return j.PropertyListState}),n.o(j,"ResourceTypeEnum")&&n.d(t,"ResourceTypeEnum",function(){return j.ResourceTypeEnum}),n.o(j,"SelectedOptions")&&n.d(t,"SelectedOptions",function(){return j.SelectedOptions}),n.o(j,"StateObject")&&n.d(t,"StateObject",function(){return j.StateObject}),n.o(j,"TransactionEnum")&&n.d(t,"TransactionEnum",function(){return j.TransactionEnum}),n.o(j,"personTitle")&&n.d(t,"personTitle",function(){return j.personTitle});var D=n(680);n.d(t,"GeoBounds",function(){return D.a});var F=n(681);n.d(t,"StateObject",function(){return F.a});var U=n(682);n.d(t,"SelectedOptions",function(){return U.a});var q=n(683);n.d(t,"PropertyListState",function(){return q.a});var B=n(684);n.n(B);n.o(B,"AvailabilityApiEnum")&&n.d(t,"AvailabilityApiEnum",function(){return B.AvailabilityApiEnum}),n.o(B,"AvailabilityUrlEnum")&&n.d(t,"AvailabilityUrlEnum",function(){return B.AvailabilityUrlEnum}),n.o(B,"DevelopmentResourceTypeEnum")&&n.d(t,"DevelopmentResourceTypeEnum",function(){return B.DevelopmentResourceTypeEnum}),n.o(B,"DisplayTypeEnum")&&n.d(t,"DisplayTypeEnum",function(){return B.DisplayTypeEnum}),n.o(B,"DivisionEnum")&&n.d(t,"DivisionEnum",function(){return B.DivisionEnum}),n.o(B,"EventTypeEnum")&&n.d(t,"EventTypeEnum",function(){return B.EventTypeEnum}),n.o(B,"FixedEnum")&&n.d(t,"FixedEnum",function(){return B.FixedEnum}),n.o(B,"IDevelopment")&&n.d(t,"IDevelopment",function(){return B.IDevelopment}),n.o(B,"IMortgageCalculator")&&n.d(t,"IMortgageCalculator",function(){return B.IMortgageCalculator}),n.o(B,"IRelatedReport")&&n.d(t,"IRelatedReport",function(){return B.IRelatedReport}),n.o(B,"ITaxModel")&&n.d(t,"ITaxModel",function(){return B.ITaxModel}),n.o(B,"NspLocation")&&n.d(t,"NspLocation",function(){return B.NspLocation}),n.o(B,"NspProperty")&&n.d(t,"NspProperty",function(){return B.NspProperty}),n.o(B,"NspPropertyContact")&&n.d(t,"NspPropertyContact",function(){return B.NspPropertyContact}),n.o(B,"ResourceTypeEnum")&&n.d(t,"ResourceTypeEnum",function(){return B.ResourceTypeEnum}),n.o(B,"TransactionEnum")&&n.d(t,"TransactionEnum",function(){return B.TransactionEnum}),n.o(B,"personTitle")&&n.d(t,"personTitle",function(){return B.personTitle});var H=n(685);n.n(H);n.o(H,"AvailabilityApiEnum")&&n.d(t,"AvailabilityApiEnum",function(){return H.AvailabilityApiEnum}),n.o(H,"AvailabilityUrlEnum")&&n.d(t,"AvailabilityUrlEnum",function(){return H.AvailabilityUrlEnum}),n.o(H,"DevelopmentResourceTypeEnum")&&n.d(t,"DevelopmentResourceTypeEnum",function(){return H.DevelopmentResourceTypeEnum}),n.o(H,"DisplayTypeEnum")&&n.d(t,"DisplayTypeEnum",function(){return H.DisplayTypeEnum}),n.o(H,"DivisionEnum")&&n.d(t,"DivisionEnum",function(){return H.DivisionEnum}),n.o(H,"EventTypeEnum")&&n.d(t,"EventTypeEnum",function(){return H.EventTypeEnum}),n.o(H,"FixedEnum")&&n.d(t,"FixedEnum",function(){return H.FixedEnum}),n.o(H,"IDevelopment")&&n.d(t,"IDevelopment",function(){return H.IDevelopment}),n.o(H,"IMortgageCalculator")&&n.d(t,"IMortgageCalculator",function(){return H.IMortgageCalculator}),n.o(H,"IRelatedReport")&&n.d(t,"IRelatedReport",function(){return H.IRelatedReport}),n.o(H,"ITaxModel")&&n.d(t,"ITaxModel",function(){return H.ITaxModel}),n.o(H,"NspLocation")&&n.d(t,"NspLocation",function(){return H.NspLocation}),n.o(H,"NspProperty")&&n.d(t,"NspProperty",function(){return H.NspProperty}),n.o(H,"NspPropertyContact")&&n.d(t,"NspPropertyContact",function(){return H.NspPropertyContact}),n.o(H,"ResourceTypeEnum")&&n.d(t,"ResourceTypeEnum",function(){return H.ResourceTypeEnum}),n.o(H,"TransactionEnum")&&n.d(t,"TransactionEnum",function(){return H.TransactionEnum}),n.o(H,"personTitle")&&n.d(t,"personTitle",function(){return H.personTitle});var z=n(686);n.n(z);n.o(z,"AvailabilityApiEnum")&&n.d(t,"AvailabilityApiEnum",function(){return z.AvailabilityApiEnum}),n.o(z,"AvailabilityUrlEnum")&&n.d(t,"AvailabilityUrlEnum",function(){return z.AvailabilityUrlEnum}),n.o(z,"DevelopmentResourceTypeEnum")&&n.d(t,"DevelopmentResourceTypeEnum",function(){return z.DevelopmentResourceTypeEnum}),n.o(z,"DisplayTypeEnum")&&n.d(t,"DisplayTypeEnum",function(){return z.DisplayTypeEnum}),n.o(z,"DivisionEnum")&&n.d(t,"DivisionEnum",function(){return z.DivisionEnum}),n.o(z,"EventTypeEnum")&&n.d(t,"EventTypeEnum",function(){return z.EventTypeEnum}),n.o(z,"FixedEnum")&&n.d(t,"FixedEnum",function(){return z.FixedEnum}),n.o(z,"IDevelopment")&&n.d(t,"IDevelopment",function(){return z.IDevelopment}),n.o(z,"IMortgageCalculator")&&n.d(t,"IMortgageCalculator",function(){return z.IMortgageCalculator}),n.o(z,"IRelatedReport")&&n.d(t,"IRelatedReport",function(){return z.IRelatedReport}),n.o(z,"ITaxModel")&&n.d(t,"ITaxModel",function(){return z.ITaxModel}),n.o(z,"NspLocation")&&n.d(t,"NspLocation",function(){return z.NspLocation}),n.o(z,"NspProperty")&&n.d(t,"NspProperty",function(){return z.NspProperty}),n.o(z,"NspPropertyContact")&&n.d(t,"NspPropertyContact",function(){return z.NspPropertyContact}),n.o(z,"ResourceTypeEnum")&&n.d(t,"ResourceTypeEnum",function(){return z.ResourceTypeEnum}),n.o(z,"TransactionEnum")&&n.d(t,"TransactionEnum",function(){return z.TransactionEnum}),n.o(z,"personTitle")&&n.d(t,"personTitle",function(){return z.personTitle});var K=n(687);n.n(K);n.o(K,"AvailabilityApiEnum")&&n.d(t,"AvailabilityApiEnum",function(){return K.AvailabilityApiEnum}),n.o(K,"AvailabilityUrlEnum")&&n.d(t,"AvailabilityUrlEnum",function(){return K.AvailabilityUrlEnum}),n.o(K,"DevelopmentResourceTypeEnum")&&n.d(t,"DevelopmentResourceTypeEnum",function(){return K.DevelopmentResourceTypeEnum}),n.o(K,"DisplayTypeEnum")&&n.d(t,"DisplayTypeEnum",function(){return K.DisplayTypeEnum}),n.o(K,"DivisionEnum")&&n.d(t,"DivisionEnum",function(){return K.DivisionEnum}),n.o(K,"EventTypeEnum")&&n.d(t,"EventTypeEnum",function(){return K.EventTypeEnum}),n.o(K,"FixedEnum")&&n.d(t,"FixedEnum",function(){return K.FixedEnum}),n.o(K,"IDevelopment")&&n.d(t,"IDevelopment",function(){return K.IDevelopment}),n.o(K,"IMortgageCalculator")&&n.d(t,"IMortgageCalculator",function(){return K.IMortgageCalculator}),n.o(K,"IRelatedReport")&&n.d(t,"IRelatedReport",function(){return K.IRelatedReport}),n.o(K,"ITaxModel")&&n.d(t,"ITaxModel",function(){return K.ITaxModel}),n.o(K,"NspLocation")&&n.d(t,"NspLocation",function(){return K.NspLocation}),n.o(K,"NspProperty")&&n.d(t,"NspProperty",function(){return K.NspProperty}),n.o(K,"NspPropertyContact")&&n.d(t,"NspPropertyContact",function(){return K.NspPropertyContact}),n.o(K,"ResourceTypeEnum")&&n.d(t,"ResourceTypeEnum",function(){return K.ResourceTypeEnum}),n.o(K,"TransactionEnum")&&n.d(t,"TransactionEnum",function(){return K.TransactionEnum}),n.o(K,"personTitle")&&n.d(t,"personTitle",function(){return K.personTitle});var G=n(688);n.n(G);n.o(G,"AvailabilityApiEnum")&&n.d(t,"AvailabilityApiEnum",function(){return G.AvailabilityApiEnum}),n.o(G,"AvailabilityUrlEnum")&&n.d(t,"AvailabilityUrlEnum",function(){return G.AvailabilityUrlEnum}),n.o(G,"DevelopmentResourceTypeEnum")&&n.d(t,"DevelopmentResourceTypeEnum",function(){return G.DevelopmentResourceTypeEnum}),n.o(G,"DisplayTypeEnum")&&n.d(t,"DisplayTypeEnum",function(){return G.DisplayTypeEnum}),n.o(G,"DivisionEnum")&&n.d(t,"DivisionEnum",function(){return G.DivisionEnum}),n.o(G,"EventTypeEnum")&&n.d(t,"EventTypeEnum",function(){return G.EventTypeEnum}),n.o(G,"FixedEnum")&&n.d(t,"FixedEnum",function(){return G.FixedEnum}),n.o(G,"IDevelopment")&&n.d(t,"IDevelopment",function(){return G.IDevelopment}),n.o(G,"IMortgageCalculator")&&n.d(t,"IMortgageCalculator",function(){return G.IMortgageCalculator}),n.o(G,"IRelatedReport")&&n.d(t,"IRelatedReport",function(){return G.IRelatedReport}),n.o(G,"ITaxModel")&&n.d(t,"ITaxModel",function(){return G.ITaxModel}),n.o(G,"NspLocation")&&n.d(t,"NspLocation",function(){return G.NspLocation}),n.o(G,"NspProperty")&&n.d(t,"NspProperty",function(){return G.NspProperty}),n.o(G,"NspPropertyContact")&&n.d(t,"NspPropertyContact",function(){return G.NspPropertyContact}),n.o(G,"ResourceTypeEnum")&&n.d(t,"ResourceTypeEnum",function(){return G.ResourceTypeEnum}),n.o(G,"TransactionEnum")&&n.d(t,"TransactionEnum",function(){return G.TransactionEnum}),n.o(G,"personTitle")&&n.d(t,"personTitle",function(){return G.personTitle});var V=n(689);n.n(V);n.o(V,"AvailabilityApiEnum")&&n.d(t,"AvailabilityApiEnum",function(){return V.AvailabilityApiEnum}),n.o(V,"AvailabilityUrlEnum")&&n.d(t,"AvailabilityUrlEnum",function(){return V.AvailabilityUrlEnum}),n.o(V,"DevelopmentResourceTypeEnum")&&n.d(t,"DevelopmentResourceTypeEnum",function(){return V.DevelopmentResourceTypeEnum}),n.o(V,"DisplayTypeEnum")&&n.d(t,"DisplayTypeEnum",function(){return V.DisplayTypeEnum}),n.o(V,"DivisionEnum")&&n.d(t,"DivisionEnum",function(){return V.DivisionEnum}),n.o(V,"EventTypeEnum")&&n.d(t,"EventTypeEnum",function(){return V.EventTypeEnum}),n.o(V,"FixedEnum")&&n.d(t,"FixedEnum",function(){return V.FixedEnum}),n.o(V,"IDevelopment")&&n.d(t,"IDevelopment",function(){return V.IDevelopment}),n.o(V,"IMortgageCalculator")&&n.d(t,"IMortgageCalculator",function(){return V.IMortgageCalculator}),n.o(V,"IRelatedReport")&&n.d(t,"IRelatedReport",function(){return V.IRelatedReport}),n.o(V,"ITaxModel")&&n.d(t,"ITaxModel",function(){return V.ITaxModel}),n.o(V,"NspLocation")&&n.d(t,"NspLocation",function(){return V.NspLocation}),n.o(V,"NspProperty")&&n.d(t,"NspProperty",function(){return V.NspProperty}),n.o(V,"NspPropertyContact")&&n.d(t,"NspPropertyContact",function(){return V.NspPropertyContact}),n.o(V,"ResourceTypeEnum")&&n.d(t,"ResourceTypeEnum",function(){return V.ResourceTypeEnum}),n.o(V,"TransactionEnum")&&n.d(t,"TransactionEnum",function(){return V.TransactionEnum}),n.o(V,"personTitle")&&n.d(t,"personTitle",function(){return V.personTitle});var W=n(690);n.n(W);n.o(W,"AvailabilityApiEnum")&&n.d(t,"AvailabilityApiEnum",function(){return W.AvailabilityApiEnum}),n.o(W,"AvailabilityUrlEnum")&&n.d(t,"AvailabilityUrlEnum",function(){return W.AvailabilityUrlEnum}),n.o(W,"DevelopmentResourceTypeEnum")&&n.d(t,"DevelopmentResourceTypeEnum",function(){return W.DevelopmentResourceTypeEnum}),n.o(W,"DisplayTypeEnum")&&n.d(t,"DisplayTypeEnum",function(){return W.DisplayTypeEnum}),n.o(W,"DivisionEnum")&&n.d(t,"DivisionEnum",function(){return W.DivisionEnum}),n.o(W,"EventTypeEnum")&&n.d(t,"EventTypeEnum",function(){return W.EventTypeEnum}),n.o(W,"FixedEnum")&&n.d(t,"FixedEnum",function(){return W.FixedEnum}),n.o(W,"IDevelopment")&&n.d(t,"IDevelopment",function(){return W.IDevelopment}),n.o(W,"IMortgageCalculator")&&n.d(t,"IMortgageCalculator",function(){return W.IMortgageCalculator}),n.o(W,"IRelatedReport")&&n.d(t,"IRelatedReport",function(){return W.IRelatedReport}),n.o(W,"ITaxModel")&&n.d(t,"ITaxModel",function(){return W.ITaxModel}),n.o(W,"NspLocation")&&n.d(t,"NspLocation",function(){return W.NspLocation}),n.o(W,"NspProperty")&&n.d(t,"NspProperty",function(){return W.NspProperty}),n.o(W,"NspPropertyContact")&&n.d(t,"NspPropertyContact",function(){return W.NspPropertyContact}),n.o(W,"ResourceTypeEnum")&&n.d(t,"ResourceTypeEnum",function(){return W.ResourceTypeEnum}),n.o(W,"TransactionEnum")&&n.d(t,"TransactionEnum",function(){return W.TransactionEnum}),n.o(W,"personTitle")&&n.d(t,"personTitle",function(){return W.personTitle});var Y=n(691);n.n(Y);n.o(Y,"AvailabilityApiEnum")&&n.d(t,"AvailabilityApiEnum",function(){return Y.AvailabilityApiEnum}),n.o(Y,"AvailabilityUrlEnum")&&n.d(t,"AvailabilityUrlEnum",function(){return Y.AvailabilityUrlEnum}),n.o(Y,"DevelopmentResourceTypeEnum")&&n.d(t,"DevelopmentResourceTypeEnum",function(){return Y.DevelopmentResourceTypeEnum}),n.o(Y,"DisplayTypeEnum")&&n.d(t,"DisplayTypeEnum",function(){return Y.DisplayTypeEnum}),n.o(Y,"DivisionEnum")&&n.d(t,"DivisionEnum",function(){return Y.DivisionEnum}),n.o(Y,"EventTypeEnum")&&n.d(t,"EventTypeEnum",function(){return Y.EventTypeEnum}),n.o(Y,"FixedEnum")&&n.d(t,"FixedEnum",function(){return Y.FixedEnum}),n.o(Y,"IDevelopment")&&n.d(t,"IDevelopment",function(){return Y.IDevelopment}),n.o(Y,"IMortgageCalculator")&&n.d(t,"IMortgageCalculator",function(){return Y.IMortgageCalculator}),n.o(Y,"IRelatedReport")&&n.d(t,"IRelatedReport",function(){return Y.IRelatedReport}),n.o(Y,"ITaxModel")&&n.d(t,"ITaxModel",function(){return Y.ITaxModel}),n.o(Y,"NspLocation")&&n.d(t,"NspLocation",function(){return Y.NspLocation}),n.o(Y,"NspProperty")&&n.d(t,"NspProperty",function(){return Y.NspProperty}),n.o(Y,"NspPropertyContact")&&n.d(t,"NspPropertyContact",function(){return Y.NspPropertyContact}),n.o(Y,"ResourceTypeEnum")&&n.d(t,"ResourceTypeEnum",function(){return Y.ResourceTypeEnum}),n.o(Y,"TransactionEnum")&&n.d(t,"TransactionEnum",function(){return Y.TransactionEnum}),n.o(Y,"personTitle")&&n.d(t,"personTitle",function(){return Y.personTitle});var $=n(692);n.n($);n.o($,"AvailabilityApiEnum")&&n.d(t,"AvailabilityApiEnum",function(){return $.AvailabilityApiEnum}),n.o($,"AvailabilityUrlEnum")&&n.d(t,"AvailabilityUrlEnum",function(){return $.AvailabilityUrlEnum}),n.o($,"DevelopmentResourceTypeEnum")&&n.d(t,"DevelopmentResourceTypeEnum",function(){return $.DevelopmentResourceTypeEnum}),n.o($,"DisplayTypeEnum")&&n.d(t,"DisplayTypeEnum",function(){return $.DisplayTypeEnum}),n.o($,"DivisionEnum")&&n.d(t,"DivisionEnum",function(){return $.DivisionEnum}),n.o($,"EventTypeEnum")&&n.d(t,"EventTypeEnum",function(){return $.EventTypeEnum}),n.o($,"FixedEnum")&&n.d(t,"FixedEnum",function(){return $.FixedEnum}),n.o($,"IDevelopment")&&n.d(t,"IDevelopment",function(){return $.IDevelopment}),n.o($,"IMortgageCalculator")&&n.d(t,"IMortgageCalculator",function(){return $.IMortgageCalculator}),n.o($,"IRelatedReport")&&n.d(t,"IRelatedReport",function(){return $.IRelatedReport}),n.o($,"ITaxModel")&&n.d(t,"ITaxModel",function(){return $.ITaxModel}),n.o($,"NspLocation")&&n.d(t,"NspLocation",function(){return $.NspLocation}),n.o($,"NspProperty")&&n.d(t,"NspProperty",function(){return $.NspProperty}),n.o($,"NspPropertyContact")&&n.d(t,"NspPropertyContact",function(){return $.NspPropertyContact}),n.o($,"ResourceTypeEnum")&&n.d(t,"ResourceTypeEnum",function(){return $.ResourceTypeEnum}),n.o($,"TransactionEnum")&&n.d(t,"TransactionEnum",function(){return $.TransactionEnum}),n.o($,"personTitle")&&n.d(t,"personTitle",function(){return $.personTitle});var Q=n(693);n.n(Q);
2n.o(Q,"AvailabilityApiEnum")&&n.d(t,"AvailabilityApiEnum",function(){return Q.AvailabilityApiEnum}),n.o(Q,"AvailabilityUrlEnum")&&n.d(t,"AvailabilityUrlEnum",function(){return Q.AvailabilityUrlEnum}),n.o(Q,"DevelopmentResourceTypeEnum")&&n.d(t,"DevelopmentResourceTypeEnum",function(){return Q.DevelopmentResourceTypeEnum}),n.o(Q,"DisplayTypeEnum")&&n.d(t,"DisplayTypeEnum",function(){return Q.DisplayTypeEnum}),n.o(Q,"DivisionEnum")&&n.d(t,"DivisionEnum",function(){return Q.DivisionEnum}),n.o(Q,"EventTypeEnum")&&n.d(t,"EventTypeEnum",function(){return Q.EventTypeEnum}),n.o(Q,"FixedEnum")&&n.d(t,"FixedEnum",function(){return Q.FixedEnum}),n.o(Q,"IDevelopment")&&n.d(t,"IDevelopment",function(){return Q.IDevelopment}),n.o(Q,"IMortgageCalculator")&&n.d(t,"IMortgageCalculator",function(){return Q.IMortgageCalculator}),n.o(Q,"IRelatedReport")&&n.d(t,"IRelatedReport",function(){return Q.IRelatedReport}),n.o(Q,"ITaxModel")&&n.d(t,"ITaxModel",function(){return Q.ITaxModel}),n.o(Q,"NspLocation")&&n.d(t,"NspLocation",function(){return Q.NspLocation}),n.o(Q,"NspProperty")&&n.d(t,"NspProperty",function(){return Q.NspProperty}),n.o(Q,"NspPropertyContact")&&n.d(t,"NspPropertyContact",function(){return Q.NspPropertyContact}),n.o(Q,"ResourceTypeEnum")&&n.d(t,"ResourceTypeEnum",function(){return Q.ResourceTypeEnum}),n.o(Q,"TransactionEnum")&&n.d(t,"TransactionEnum",function(){return Q.TransactionEnum}),n.o(Q,"personTitle")&&n.d(t,"personTitle",function(){return Q.personTitle});var J=n(694);n.n(J);n.o(J,"AvailabilityApiEnum")&&n.d(t,"AvailabilityApiEnum",function(){return J.AvailabilityApiEnum}),n.o(J,"AvailabilityUrlEnum")&&n.d(t,"AvailabilityUrlEnum",function(){return J.AvailabilityUrlEnum}),n.o(J,"DevelopmentResourceTypeEnum")&&n.d(t,"DevelopmentResourceTypeEnum",function(){return J.DevelopmentResourceTypeEnum}),n.o(J,"DisplayTypeEnum")&&n.d(t,"DisplayTypeEnum",function(){return J.DisplayTypeEnum}),n.o(J,"DivisionEnum")&&n.d(t,"DivisionEnum",function(){return J.DivisionEnum}),n.o(J,"EventTypeEnum")&&n.d(t,"EventTypeEnum",function(){return J.EventTypeEnum}),n.o(J,"FixedEnum")&&n.d(t,"FixedEnum",function(){return J.FixedEnum}),n.o(J,"IDevelopment")&&n.d(t,"IDevelopment",function(){return J.IDevelopment}),n.o(J,"IMortgageCalculator")&&n.d(t,"IMortgageCalculator",function(){return J.IMortgageCalculator}),n.o(J,"IRelatedReport")&&n.d(t,"IRelatedReport",function(){return J.IRelatedReport}),n.o(J,"ITaxModel")&&n.d(t,"ITaxModel",function(){return J.ITaxModel}),n.o(J,"NspLocation")&&n.d(t,"NspLocation",function(){return J.NspLocation}),n.o(J,"NspProperty")&&n.d(t,"NspProperty",function(){return J.NspProperty}),n.o(J,"NspPropertyContact")&&n.d(t,"NspPropertyContact",function(){return J.NspPropertyContact}),n.o(J,"ResourceTypeEnum")&&n.d(t,"ResourceTypeEnum",function(){return J.ResourceTypeEnum}),n.o(J,"TransactionEnum")&&n.d(t,"TransactionEnum",function(){return J.TransactionEnum}),n.o(J,"personTitle")&&n.d(t,"personTitle",function(){return J.personTitle});var X=n(695);n.d(t,"ResourceTypeEnum",function(){return X.a});var Z=n(696);n.d(t,"EventTypeEnum",function(){return Z.a});var ee=n(697);n.d(t,"FixedEnum",function(){return ee.a});var te=n(698);n.d(t,"AvailabilityUrlEnum",function(){return te.a});var ne=n(699);n.d(t,"AvailabilityApiEnum",function(){return ne.a});var re=n(700);n.d(t,"DisplayTypeEnum",function(){return re.a});var oe=n(286);n.d(t,"DivisionEnum",function(){return oe.a});var ie=n(701);n.d(t,"TransactionEnum",function(){return ie.a});var ae=n(702);n.d(t,"DevelopmentResourceTypeEnum",function(){return ae.a});var se=n(703);n.d(t,"personTitle",function(){return se.a});var ce=n(704);n.n(ce);n.o(ce,"IDevelopment")&&n.d(t,"IDevelopment",function(){return ce.IDevelopment}),n.o(ce,"IMortgageCalculator")&&n.d(t,"IMortgageCalculator",function(){return ce.IMortgageCalculator}),n.o(ce,"IRelatedReport")&&n.d(t,"IRelatedReport",function(){return ce.IRelatedReport}),n.o(ce,"ITaxModel")&&n.d(t,"ITaxModel",function(){return ce.ITaxModel}),n.o(ce,"NspLocation")&&n.d(t,"NspLocation",function(){return ce.NspLocation}),n.o(ce,"NspProperty")&&n.d(t,"NspProperty",function(){return ce.NspProperty}),n.o(ce,"NspPropertyContact")&&n.d(t,"NspPropertyContact",function(){return ce.NspPropertyContact});var ue=n(705);n.n(ue);n.o(ue,"IDevelopment")&&n.d(t,"IDevelopment",function(){return ue.IDevelopment}),n.o(ue,"IMortgageCalculator")&&n.d(t,"IMortgageCalculator",function(){return ue.IMortgageCalculator}),n.o(ue,"IRelatedReport")&&n.d(t,"IRelatedReport",function(){return ue.IRelatedReport}),n.o(ue,"ITaxModel")&&n.d(t,"ITaxModel",function(){return ue.ITaxModel}),n.o(ue,"NspLocation")&&n.d(t,"NspLocation",function(){return ue.NspLocation}),n.o(ue,"NspProperty")&&n.d(t,"NspProperty",function(){return ue.NspProperty}),n.o(ue,"NspPropertyContact")&&n.d(t,"NspPropertyContact",function(){return ue.NspPropertyContact});var le=n(706);n.n(le);n.o(le,"IDevelopment")&&n.d(t,"IDevelopment",function(){return le.IDevelopment}),n.o(le,"IMortgageCalculator")&&n.d(t,"IMortgageCalculator",function(){return le.IMortgageCalculator}),n.o(le,"IRelatedReport")&&n.d(t,"IRelatedReport",function(){return le.IRelatedReport}),n.o(le,"ITaxModel")&&n.d(t,"ITaxModel",function(){return le.ITaxModel}),n.o(le,"NspLocation")&&n.d(t,"NspLocation",function(){return le.NspLocation}),n.o(le,"NspProperty")&&n.d(t,"NspProperty",function(){return le.NspProperty}),n.o(le,"NspPropertyContact")&&n.d(t,"NspPropertyContact",function(){return le.NspPropertyContact});var de=n(707);n.n(de);n.o(de,"IDevelopment")&&n.d(t,"IDevelopment",function(){return de.IDevelopment}),n.o(de,"IMortgageCalculator")&&n.d(t,"IMortgageCalculator",function(){return de.IMortgageCalculator}),n.o(de,"IRelatedReport")&&n.d(t,"IRelatedReport",function(){return de.IRelatedReport}),n.o(de,"ITaxModel")&&n.d(t,"ITaxModel",function(){return de.ITaxModel}),n.o(de,"NspLocation")&&n.d(t,"NspLocation",function(){return de.NspLocation}),n.o(de,"NspProperty")&&n.d(t,"NspProperty",function(){return de.NspProperty}),n.o(de,"NspPropertyContact")&&n.d(t,"NspPropertyContact",function(){return de.NspPropertyContact});var pe=n(708);n.n(pe);n.o(pe,"IDevelopment")&&n.d(t,"IDevelopment",function(){return pe.IDevelopment}),n.o(pe,"IMortgageCalculator")&&n.d(t,"IMortgageCalculator",function(){return pe.IMortgageCalculator}),n.o(pe,"IRelatedReport")&&n.d(t,"IRelatedReport",function(){return pe.IRelatedReport}),n.o(pe,"ITaxModel")&&n.d(t,"ITaxModel",function(){return pe.ITaxModel}),n.o(pe,"NspLocation")&&n.d(t,"NspLocation",function(){return pe.NspLocation}),n.o(pe,"NspProperty")&&n.d(t,"NspProperty",function(){return pe.NspProperty}),n.o(pe,"NspPropertyContact")&&n.d(t,"NspPropertyContact",function(){return pe.NspPropertyContact})},function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return s}),n.d(t,"c",function(){return o}
2),n.d(t,"d",function(){return c}),n.d(t,"e",function(){return a}),n.d(t,"f",function(){return l});var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function o(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function s(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?o(e.value):function(e){return e instanceof n?e:new n(function(t){t(e)})}(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())})}function c(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function u(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function l(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(u(arguments[t]));return e}},,function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r=n(0),o=n(32),i=n(97),a=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){function e(e,t){this.cookieService=e,this.translateService=t;var n=e.getCookie("acph");this._autocompletePlaceholder=n||t.translate("LOCATION_PLACEHOLDER")}var t,n;return Object.defineProperty(e.prototype,"autocompletePlaceholder",{get:function(){return this._autocompletePlaceholder},enumerable:!1,configurable:!0}),e.prototype.apiBase=function(){return kfsearchconfig.ApiBase},e.prototype.apiSecureBase=function(){return kfsearchconfig.ApiSecureBase},e.prototype.apiBase3=function(){return kfsearchconfig.ApiBase3},e.prototype.azureb2c=function(){return kfsearchconfig.Azureb2c},e.prototype.cmsBase=function(){return kfsearchconfig.CmsBase},e.prototype.getLocale=function(){return kfsearchconfig.Locale},e.prototype.getCountry=function(){return kfsearchconfig.Country},e.prototype.getTranslations=function(){return kfsearchconfig.Translations},e.prototype.basePath=function(){return kfsearchconfig.BasePath},e.prototype.canonicalDomainList=function(){return Object.keys(kfsearchconfig.CanonicalDomainList).map(function(e){return{key:e,value:kfsearchconfig.CanonicalDomainList[e]}})},e.prototype.getExcludedCountriesRelatedReports=function(){return kfsearchconfig.ExcludedCountriesRelatedReports},e.prototype.languages=function(){return kfsearchconfig.Languages}
2,e.prototype.resourceHost=function(){return kfsearchconfig.ResourceHost},e.prototype.isDebug=function(){return kfsearchconfig.DebugOutput},e.prototype.translations=function(){return kfsearchconfig.Translations},e.prototype.floorAreaUnit=function(){return kfsearchconfig.FloorAreaUnit},e.prototype.landAreaUnit=function(){return kfsearchconfig.LandAreaUnit},e.prototype.order=function(){return kfsearchconfig.Order},e.prototype.radius=function(){return kfsearchconfig.Radius},e.prototype.currencies=function(){return kfsearchconfig.Currencies},e.prototype.currencySuffix=function(){return kfsearchconfig.CurrencySuffix},e.prototype.myKfBase=function(){return kfsearchconfig.MyKfBase},e.prototype.histograms=function(){return kfsearchconfig.Histograms},e.prototype.contactUrl=function(){return kfsearchconfig.ContactUrl},e.prototype.contactUs=function(){return kfsearchconfig.ContactUs},e.prototype.defaultIsoCode=function(){return kfsearchconfig.DefaultIsoCode},e.prototype.financeLink=function(){return kfsearchconfig.FinanceLink},e.prototype.googleMapsKey=function(){return kfsearchconfig.GoogleMapsKey},e.prototype.googleMapsMapId=function(){return kfsearchconfig.GoogleMapsMapId},e.prototype.reCaptchaPublicKey=function(){return kfsearchconfig.ReCaptchaPublicKey},e.prototype.reCaptchaPublicKeyV3=function(){return kfsearchconfig.ReCaptchaPublicKey},e.prototype.privacyRestricted=function(){return kfsearchconfig.PrivacyRestricted},e.prototype.enableSkyscraper=function(){return kfsearchconfig.EnableSkyscraper},e.prototype.showSingleSearch=function(){return kfsearchconfig.ShowSingleSearch},e.prototype.setSingleSearch=function(e){kfsearchconfig.ShowSingleSearch=e},e.prototype.fpnLink=function(){return kfsearchconfig.FairProcessingNoticeUrl},e.prototype.language=function(){var e=kfsearchconfig.Languages.Items.filter(function(e){return e.Value===kfsearchconfig.BasePath})[0];return null===e||void 0===e?void 0:e.Lang},e.prototype.isCrawlableLang=function(){var e=kfsearchconfig.Languages.Items.filter(function(e){return e.Value===kfsearchconfig.BasePath})[0];return void 0!==e&&null!==e&&(null!==e.Crawlable&&e.Crawlable)},e.prototype.isHongKongDomain=function(){return window.location.hostname.endsWith("knightfrank.com.hk")},e.prototype.countrySettings=function(){return kfsearchconfig.CountrySettings},e.prototype.isDefaultOrUkDomain=function(){var e=window.location.hostname;return"knightfrank.com"===(e=e.replace("beta.","").replace("www.",""))||"knightfrank.co.uk"===e},e.prototype.kfTrackingUrlTemplate=function(){return kfsearchconfig.KfTrackingUrlTemplate},e=a([Object(r.Injectable)(),s("design:paramtypes",["function"==typeof(t=void 0!==i.a&&i.a)?t:Object,"function"==typeof(n=void 0!==o.a&&o.a)?n:Object])],e)}()},function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return a}),n.d(t,"c",function(){return o}),n.d(t,"d",function(){return s}),n.d(t,"e",function(){return c});var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function o(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function a(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?o(e.value):function(e){return e instanceof n?e:new n(function(t){t(e)})}(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())})}function s(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function c(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r}},,function(e,t,n){"use strict";n.d(t,"a",function(){return u}),n.d(t,"b",function(){return o}
2),n.d(t,"c",function(){return h}),n.d(t,"d",function(){return v}),n.d(t,"e",function(){return b}),n.d(t,"f",function(){return E}),n.d(t,"g",function(){return S}),n.d(t,"h",function(){return g}),n.d(t,"i",function(){return i}),n.d(t,"j",function(){return c}),n.d(t,"k",function(){return d}),n.d(t,"l",function(){return l}),n.d(t,"m",function(){return y}),n.d(t,"n",function(){return f}),n.d(t,"o",function(){return r}),n.d(t,"p",function(){return s}),n.d(t,"q",function(){return a}),n.d(t,"r",function(){return m});var r,o,i,a,s,c,u,l,d,p=n(6),h={INTERACTION_IN_PROGRESS_VALUE:"interaction_in_progress",INVALID_GRANT_ERROR:"invalid_grant",POPUP_WIDTH:483,POPUP_HEIGHT:600,POPUP_NAME_PREFIX:"msal",DEFAULT_POLL_INTERVAL_MS:30,MSAL_SKU:"msal.js.browser"},f={CHANNEL_ID:"53ee284d-920a-4b59-9d30-a60315b26836",PREFERRED_EXTENSION_ID:"ppnbnpeolgkicgegkbkbjmhlideopiji",MATS_TELEMETRY:"MATS"};!function(e){e.HandshakeRequest="Handshake",e.HandshakeResponse="HandshakeResponse",e.GetToken="GetToken",e.Response="Response"}(r||(r={})),function(e){e.LocalStorage="localStorage",e.SessionStorage="sessionStorage",e.MemoryStorage="memoryStorage"}(o||(o={})),function(e){e.GET="GET",e.POST="POST"}(i||(i={})),function(e){e.AUTHORITY="authority",e.ACQUIRE_TOKEN_ACCOUNT="acquireToken.account",e.SESSION_STATE="session.state",e.REQUEST_STATE="request.state",e.NONCE_IDTOKEN="nonce.id_token",e.ORIGIN_URI="request.origin",e.RENEW_STATUS="token.renew.status",e.URL_HASH="urlHash",e.REQUEST_PARAMS="request.params",e.SCOPES="scopes",e.INTERACTION_STATUS_KEY="interaction.status",e.CCS_CREDENTIAL="ccs.credential",e.CORRELATION_ID="request.correlationId",e.NATIVE_REQUEST="request.native",e.REDIRECT_CONTEXT="request.redirect.context"}(a||(a={})),function(e){e.ACCOUNT_KEYS="msal.account.keys",e.TOKEN_KEYS="msal.token.keys"}(s||(s={})),function(e){e.WRAPPER_SKU="wrapper.sku",e.WRAPPER_VER="wrapper.version"}(c||(c={})),function(e){e[e.acquireTokenRedirect=861]="acquireTokenRedirect",e[e.acquireTokenPopup=862]="acquireTokenPopup",e[e.ssoSilent=863]="ssoSilent",e[e.acquireTokenSilent_authCode=864]="acquireTokenSilent_authCode",e[e.handleRedirectPromise=865]="handleRedirectPromise",e[e.acquireTokenByCode=866]="acquireTokenByCode",e[e.acquireTokenSilent_silentFlow=61]="acquireTokenSilent_silentFlow",e[e.logout=961]="logout",e[e.logoutPopup=962]="logoutPopup"}(u||(u={})),function(e){e.Redirect="redirect",e.Popup="popup",e.Silent="silent",e.None="none"}(l||(l={})),function(e){e.Startup="startup",e.Login="login",e.Logout="logout",e.AcquireToken="acquireToken",e.SsoSilent="ssoSilent",e.HandleRedirect="handleRedirect",e.None="none"}(d||(d={}));var m,g={scopes:p.C},y="jwk";!function(e){e.React="@azure/msal-react",e.Angular="@azure/msal-angular"}(m||(m={}));var v,b="msal.db",S=1,E=b+".keys";!function(e){e[e.Default=0]="Default",e[e.AccessToken=1]="AccessToken",e[e.AccessTokenAndRefreshToken=2]="AccessTokenAndRefreshToken",e[e.RefreshToken=3]="RefreshToken",e[e.RefreshTokenAndNetwork=4]="RefreshTokenAndNetwork",e[e.Skip=5]="Skip"}(v||(v={}))},function(e,t,n){"use strict";n.d(t,"a",function(){return a}),n.d(t,"b",function(){return i});var r=n(9),o=n(6),i={pkceNotGenerated:{code:"pkce_not_created",desc:"The PKCE code challenge and verifier could not be generated."},cryptoDoesNotExist:{code:"crypto_nonexistent",desc:"The crypto object or function is not available."},httpMethodNotImplementedError:{code:"http_method_not_implemented",desc:"The HTTP method given has not been implemented in this library."},emptyNavigateUriError:{code:"empty_navigate_uri",desc:"Navigation URI is empty. Please check stack trace for more info."},hashEmptyError:{code:"hash_empty_error",desc:"Hash value cannot be processed because it is empty. Please verify that your redirectUri is not clearing the hash. For more visit: aka.ms/msaljs/browser-errors."},hashDoesNotContainStateError:{code:"no_state_in_hash",desc:"Hash does not contain state. Please verify that the request originated from msal."},hashDoesNotContainKnownPropertiesError:{code:"hash_does_not_contain_known_properties",desc:"Hash does not contain known properites. Please verify that your redirectUri is not changing the hash. For more visit: aka.ms/msaljs/browser-errors."},unableToParseStateError:{code:"unable_to_parse_state",desc:"Unable to parse state. Please verify that the request originated from msal."},stateInteractionTypeMismatchError:{code:"state_interaction_type_mismatch",desc:"Hash contains state but the interaction type does not match the caller."},interactionInProgress:{code:"interaction_in_progress",desc:"Interaction is currently in progress. Please ensure that this interaction has been completed before calling an interactive API.  For more visit: aka.ms/msaljs/browser-errors."},popupWindowError:{code:"popup_window_error",desc:"Error opening popup window. This can happen if you are using IE or if popups are blocked in the browser."},emptyWindowError:{code:"empty_window_error",desc:"window.open returned null or undefined window object."},userCancelledError:{code:"user_cancelled",desc:"User cancelled the flow."},monitorPopupTimeoutError:{code:"monitor_window_timeout",desc:"Token acquisition in popup failed due to timeout. For more visit: aka.ms/msaljs/browser-errors."},monitorIframeTimeoutError:{code:"monitor_window_timeout",desc:"Token acquisition in iframe failed due to timeout. For more visit: aka.ms/msaljs/browser-errors."},redirectInIframeError:{code:"redirect_in_iframe",desc:"Redirects are not supported for iframed or brokered a
2pplications. Please ensure you are using MSAL.js in a top frame of the window if using the redirect APIs, or use the popup APIs."},blockTokenRequestsInHiddenIframeError:{code:"block_iframe_reload",desc:"Request was blocked inside an iframe because MSAL detected an authentication response. For more visit: aka.ms/msaljs/browser-errors"},blockAcquireTokenInPopupsError:{code:"block_nested_popups",desc:"Request was blocked inside a popup because MSAL detected it was running in a popup."},iframeClosedPrematurelyError:{code:"iframe_closed_prematurely",desc:"The iframe being monitored was closed prematurely."},silentLogoutUnsupportedError:{code:"silent_logout_unsupported",desc:"Silent logout not supported. Please call logoutRedirect or logoutPopup instead."},noAccountError:{code:"no_account_error",desc:"No account object provided to acquireTokenSilent and no active account has been set. Please call setActiveAccount or provide an account on the request."},silentPromptValueError:{code:"silent_prompt_value_error",desc:"The value given for the prompt value is not valid for silent requests - must be set to 'none' or 'no_session'."},noTokenRequestCacheError:{code:"no_token_request_cache_error",desc:"No token request found in cache."},unableToParseTokenRequestCacheError:{code:"unable_to_parse_token_request_cache_error",desc:"The cached token request could not be parsed."},noCachedAuthorityError:{code:"no_cached_authority_error",desc:"No cached authority found."},authRequestNotSet:{code:"auth_request_not_set_error",desc:"Auth Request not set. Please ensure initiateAuthRequest was called from the InteractionHandler"},invalidCacheType:{code:"invalid_cache_type",desc:"Invalid cache type"},notInBrowserEnvironment:{code:"non_browser_environment",desc:"Login and token requests are not supported in non-browser environments."},databaseNotOpen:{code:"database_not_open",desc:"Database is not open!"},noNetworkConnectivity:{code:"no_network_connectivity",desc:"No network connectivity. Check your internet connection."},postRequestFailed:{code:"post_request_failed",desc:"Network request failed: If the browser threw a CORS error, check that the redirectUri is registered in the Azure App Portal as type 'SPA'"},getRequestFailed:{code:"get_request_failed",desc:"Network request failed. Please check the network trace to determine root cause."},failedToParseNetworkResponse:{code:"failed_to_parse_response",desc:"Failed to parse network response. Check network trace."},unableToLoadTokenError:{code:"unable_to_load_token",desc:"Error loading token to cache."},signingKeyNotFoundInStorage:{code:"crypto_key_not_found",desc:"Cryptographic Key or Keypair not found in browser storage."},authCodeRequired:{code:"auth_code_required",desc:"An authorization code must be provided (as the `code` property on the request) to this flow."},authCodeOrNativeAccountRequired:{code:"auth_code_or_nativeAccountId_required",desc:"An authorization code or nativeAccountId must be provided to this flow."},spaCodeAndNativeAccountPresent:{code:"spa_code_and_nativeAccountId_present",desc:"Request cannot contain both spa code and native account id."},databaseUnavailable:{code:"database_unavailable",desc:"IndexedDB, which is required for persistent cryptographic key storage, is unavailable. This may be caused by browser privacy features which block persistent storage in third-party contexts."},unableToAcquireTokenFromNativePlatform:{code:"unable_to_acquire_token_from_native_platform",desc:"Unable to acquire token from native platform. For a list of possible reasons visit aka.ms/msaljs/browser-errors."},nativeHandshakeTimeout:{code:"native_handshake_timeout",desc:"Timed out while attempting to establish connection to browser extension"},nativeExtensionNotInstalled:{code:"native_extension_not_installed",desc:"Native extension is not installed. If you think this is a mistake call the initialize function."},nativeConnectionNotEstablished:{code:"native_connection_not_established",desc:"Connection to native platform has not been established. Please install a compatible browser extension and run initialize(). For more please visit aka.ms/msaljs/browser-errors."},nativeBrokerCalledBeforeInitialize:{code:"native_broker_called_before_initialize",desc:"You must call and await the initialize function before attempting to call any other MSAL API when native brokering is enabled. For more please visit aka.ms/msaljs/browser-errors."},nativePromptNotSupported:{code:"native_prompt_not_supported",desc:"The provided prompt is not supported by the native platform. This request should be routed to the web based flow."}},a=function(e){function t(n,r){var o=e.call(this,n,r)||this;return Object.setPrototypeOf(o,t.prototype),o.name="BrowserAuthError",o}return Object(r.c)(t,e),t.createPkceNotGeneratedError=function(e){return new t(i.pkceNotGenerated.code,i.pkceNotGenerated.desc+" Detail:"+e)},t.createCryptoNotAvailableError=function(e){return new t(i.cryptoDoesNotExist.code,i.cryptoDoesNotExist.desc+" Detail:"+e)},t.createHttpMethodNotImplementedError=function(e){return new t(i.httpMethodNotImplementedError.code,i.httpMethodNotImplementedError.desc+" Given Method: "+e)},t.createEmptyNavigationUriError=function(){return new t(i.emptyNavigateUriError.code,i.emptyNavigateUriError.desc)},t.createEmptyHashError=function(e){return new t(i.hashEmptyError.code,i.hashEmptyError.desc+" Given Url: "+e)},t.createHashDoesNotContainStateError=function(){return new t(i.hashDoesNotContainStateError.code,i.hashDoesNotContainStateError.desc)},t.createHashDoesNotContainKnownPropertiesError=function(){return new t(i.hashDoesNotContainKnownPropertiesError.code,i.hashDoesNotContainKnownPropertiesError.desc)},t.createUnableToParseStateError=function(){return new t(i.unableToParseStateError.code,i.unableToParseStateError.desc)},t.createStateInteractionTypeMismatchError=function(){return new t(i.stateInteractionTypeMismatchError.code,i.stateInteractionTypeMismatchError.desc)},t.createInteractionInProgressError=function(){return new t(i.interactionInProgress.code,i.interactionInProgress.desc)},t.createPopupWindowError=function(e){var n=i.popupWindowError.desc;
2return n=o.S.isEmpty(e)?n:n+" Details: "+e,new t(i.popupWindowError.code,n)},t.createEmptyWindowCreatedError=function(){return new t(i.emptyWindowError.code,i.emptyWindowError.desc)},t.createUserCancelledError=function(){return new t(i.userCancelledError.code,i.userCancelledError.desc)},t.createMonitorPopupTimeoutError=function(){return new t(i.monitorPopupTimeoutError.code,i.monitorPopupTimeoutError.desc)},t.createMonitorIframeTimeoutError=function(){return new t(i.monitorIframeTimeoutError.code,i.monitorIframeTimeoutError.desc)},t.createRedirectInIframeError=function(e){return new t(i.redirectInIframeError.code,i.redirectInIframeError.desc+" (window.parent !== window) => "+e)},t.createBlockReloadInHiddenIframeError=function(){return new t(i.blockTokenRequestsInHiddenIframeError.code,i.blockTokenRequestsInHiddenIframeError.desc)},t.createBlockAcquireTokenInPopupsError=function(){return new t(i.blockAcquireTokenInPopupsError.code,i.blockAcquireTokenInPopupsError.desc)},t.createIframeClosedPrematurelyError=function(){return new t(i.iframeClosedPrematurelyError.code,i.iframeClosedPrematurelyError.desc)},t.createSilentLogoutUnsupportedError=function(){return new t(i.silentLogoutUnsupportedError.code,i.silentLogoutUnsupportedError.desc)},t.createNoAccountError=function(){return new t(i.noAccountError.code,i.noAccountError.desc)},t.createSilentPromptValueError=function(e){return new t(i.silentPromptValueError.code,i.silentPromptValueError.desc+" Given value: "+e)},t.createUnableToParseTokenRequestCacheError=function(){return new t(i.unableToParseTokenRequestCacheError.code,i.unableToParseTokenRequestCacheError.desc)},t.createNoTokenRequestCacheError=function(){return new t(i.noTokenRequestCacheError.code,i.noTokenRequestCacheError.desc)},t.createAuthRequestNotSetError=function(){return new t(i.authRequestNotSet.code,i.authRequestNotSet.desc)},t.createNoCachedAuthorityError=function(){return new t(i.noCachedAuthorityError.code,i.noCachedAuthorityError.desc)},t.createInvalidCacheTypeError=function(){return new t(i.invalidCacheType.code,""+i.invalidCacheType.desc)},t.createNonBrowserEnvironmentError=function(){return new t(i.notInBrowserEnvironment.code,i.notInBrowserEnvironment.desc)},t.createDatabaseNotOpenError=function(){return new t(i.databaseNotOpen.code,i.databaseNotOpen.desc)},t.createNoNetworkConnectivityError=function(){return new t(i.noNetworkConnectivity.code,i.noNetworkConnectivity.desc)},t.createPostRequestFailedError=function(e,n){return new t(i.postRequestFailed.code,i.postRequestFailed.desc+" | Network client threw: "+e+" | Attempted to reach: "+n.split("?")[0])},t.createGetRequestFailedError=function(e,n){return new t(i.getRequestFailed.code,i.getRequestFailed.desc+" | Network client threw: "+e+" | Attempted to reach: "+n.split("?")[0])},t.createFailedToParseNetworkResponseError=function(e){return new t(i.failedToParseNetworkResponse.code,i.failedToParseNetworkResponse.desc+" | Attempted to reach: "+e.split("?")[0])},t.createUnableToLoadTokenError=function(e){return new t(i.unableToLoadTokenError.code,i.unableToLoadTokenError.desc+" | "+e)},t.createSigningKeyNotFoundInStorageError=function(e){return new t(i.signingKeyNotFoundInStorage.code,i.signingKeyNotFoundInStorage.desc+" | No match found for KeyId: "+e)},t.createAuthCodeRequiredError=function(){return new t(i.authCodeRequired.code,i.authCodeRequired.desc)},t.createAuthCodeOrNativeAccountIdRequiredError=function(){return new t(i.authCodeOrNativeAccountRequired.code,i.authCodeOrNativeAccountRequired.desc)},t.createSpaCodeAndNativeAccountIdPresentError=function(){return new t(i.spaCodeAndNativeAccountPresent.code,i.spaCodeAndNativeAccountPresent.desc)},t.createDatabaseUnavailableError=function(){return new t(i.databaseUnavailable.code,i.databaseUnavailable.desc)},t.createUnableToAcquireTokenFromNativePlatformError=function(){return new t(i.unableToAcquireTokenFromNativePlatform.code,i.unableToAcquireTokenFromNativePlatform.desc)},t.createNativeHandshakeTimeoutError=function(){return new t(i.nativeHandshakeTimeout.code,i.nativeHandshakeTimeout.desc)},t.createNativeExtensionNotInstalledError=function(){return new t(i.nativeExtensionNotInstalled.code,i.nativeExtensionNotInstalled.desc)},t.createNativeConnectionNotEstablishedError=function(){return new t(i.nativeConnectionNotEstablished.code,i.nativeConnectionNotEstablished.desc)},t.createNativeBrokerCalledBeforeInitialize=function(){return new t(i.nativeBrokerCalledBeforeInitialize.code,i.nativeBrokerCalledBeforeInitialize.desc)},t.createNativePromptParameterNotSupportedError=function(){return new t(i.nativePromptNotSupported.code,i.nativePromptNotSupported.desc)},t}(o.d)},,function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return o}
2);var r=n(12),o={clientInfoDecodingError:{code:"client_info_decoding_error",desc:"The client info could not be parsed/decoded correctly. Please review the trace to determine the root cause."},clientInfoEmptyError:{code:"client_info_empty_error",desc:"The client info was empty. Please review the trace to determine the root cause."},tokenParsingError:{code:"token_parsing_error",desc:"Token cannot be parsed. Please review stack trace to determine root cause."},nullOrEmptyToken:{code:"null_or_empty_token",desc:"The token is null or empty. Please review the trace to determine the root cause."},endpointResolutionError:{code:"endpoints_resolution_error",desc:"Error: could not resolve endpoints. Please check network and try again."},networkError:{code:"network_error",desc:"Network request failed. Please check network trace to determine root cause."},unableToGetOpenidConfigError:{code:"openid_config_error",desc:"Could not retrieve endpoints. Check your authority and verify the .well-known/openid-configuration endpoint returns the required endpoints."},hashNotDeserialized:{code:"hash_not_deserialized",desc:"The hash parameters could not be deserialized. Please review the trace to determine the root cause."},blankGuidGenerated:{code:"blank_guid_generated",desc:"The guid generated was blank. Please review the trace to determine the root cause."},invalidStateError:{code:"invalid_state",desc:"State was not the expected format. Please check the logs to determine whether the request was sent using ProtocolUtils.setRequestState()."},stateMismatchError:{code:"state_mismatch",desc:"State mismatch error. Please check your network. Continued requests may cause cache overflow."},stateNotFoundError:{code:"state_not_found",desc:"State not found"},nonceMismatchError:{code:"nonce_mismatch",desc:"Nonce mismatch error. This may be caused by a race condition in concurrent requests."},nonceNotFoundError:{code:"nonce_not_found",desc:"nonce not found"},authTimeNotFoundError:{code:"auth_time_not_found",desc:"Max Age was requested and the ID token is missing the auth_time variable. auth_time is an optional claim and is not enabled by default - it must be enabled. See https://aka.ms/msaljs/optional-claims for more information."},maxAgeTranspiredError:{code:"max_age_transpired",desc:"Max Age is set to 0, or too much time has elapsed since the last end-user authentication."},noTokensFoundError:{code:"no_tokens_found",desc:"No tokens were found for the given scopes, and no authorization code was passed to acquireToken. You must retrieve an authorization code before making a call to acquireToken()."},multipleMatchingTokens:{code:"multiple_matching_tokens",desc:"The cache contains multiple tokens satisfying the requirements. Call AcquireToken again providing more requirements such as authority or account."},multipleMatchingAccounts:{code:"multiple_matching_accounts",desc:"The cache contains multiple accounts satisfying the given parameters. Please pass more info to obtain the correct account"},multipleMatchingAppMetadata:{code:"multiple_matching_appMetadata",desc:"The cache contains multiple appMetadata satisfying the given parameters. Please pass more info to obtain the correct appMetadata"},tokenRequestCannotBeMade:{code:"request_cannot_be_made",desc:"Token request cannot be made without authorization code or refresh token."},appendEmptyScopeError:{code:"cannot_append_empty_scope",desc:"Cannot append null or empty scope to ScopeSet. Please check the stack trace for more info."},removeEmptyScopeError:{code:"cannot_remove_empty_scope",desc:"Cannot remove null or empty scope from ScopeSet. Please check the stack trace for more info."},appendScopeSetError:{code:"cannot_append_scopeset",desc:"Cannot append ScopeSet due to error."},emptyInputScopeSetError:{code:"empty_input_scopeset",desc:"Empty input ScopeSet cannot be processed."},DeviceCodePollingCancelled:{code:"device_code_polling_cancelled",desc:"Caller has cancelled token endpoint polling during device code flow by setting DeviceCodeRequest.cancel = true."},DeviceCodeExpired:{code:"device_code_expired",desc:"Device code is expired."},DeviceCodeUnknownError:{code:"device_code_unknown_error",desc:"Device code stopped polling for unknown reasons."},NoAccountInSilentRequest:{code:"no_account_in_silent_request",desc:"Please pass an account object, silent flow is not supported without account information"},invalidCacheRecord:{code:"invalid_cache_record",desc:"Cache record object was null or undefined."},invalidCacheEnvironment:{code:"invalid_cache_environment",desc:"Invalid environment when attempting to create cache entry"},noAccountFound:{code:"no_account_found",desc:"No account found in cache for given key."},CachePluginError:{code:"no cache plugin set on CacheManager",desc:"ICachePlugin needs to be set before using readFromStorage or writeFromStorage"},noCryptoObj:{code:"no_crypto_object",desc:"No crypto object detected. This is required for the following operation: "}
2,invalidCacheType:{code:"invalid_cache_type",desc:"Invalid cache type"},unexpectedAccountType:{code:"unexpected_account_type",desc:"Unexpected account type."},unexpectedCredentialType:{code:"unexpected_credential_type",desc:"Unexpected credential type."},invalidAssertion:{code:"invalid_assertion",desc:"Client assertion must meet requirements described in https://tools.ietf.org/html/rfc7515"},invalidClientCredential:{code:"invalid_client_credential",desc:"Client credential (secret, certificate, or assertion) must not be empty when creating a confidential client. An application should at most have one credential"},tokenRefreshRequired:{code:"token_refresh_required",desc:"Cannot return token from cache because it must be refreshed. This may be due to one of the following reasons: forceRefresh parameter is set to true, claims have been requested, there is no cached access token or it is expired."},userTimeoutReached:{code:"user_timeout_reached",desc:"User defined timeout for device code polling reached"},tokenClaimsRequired:{code:"token_claims_cnf_required_for_signedjwt",desc:"Cannot generate a POP jwt if the token_claims are not populated"},noAuthorizationCodeFromServer:{code:"authorization_code_missing_from_server_response",desc:"Server response does not contain an authorization code to proceed"},noAzureRegionDetected:{code:"no_azure_region_detected",desc:"No azure region was detected and no fallback was made available"},accessTokenEntityNullError:{code:"access_token_entity_null",desc:"Access token entity is null, please check logs and cache to ensure a valid access token is present."},bindingKeyNotRemovedError:{code:"binding_key_not_removed",desc:"Could not remove the credential's binding key from storage."},logoutNotSupported:{code:"end_session_endpoint_not_supported",desc:"Provided authority does not support logout."},keyIdMissing:{code:"key_id_missing",desc:"A keyId value is missing from the requested bound token's cache record and is required to match the token to it's stored binding key."},noNetworkConnectivity:{code:"no_network_connectivity",desc:"No network connectivity. Check your internet connection."},userCanceledError:{code:"user_canceled",desc:"User canceled the flow."}},i=function(e){function t(n,r){var o=e.call(this,n,r)||this;return o.name="ClientAuthError",Object.setPrototypeOf(o,t.prototype),o}return Object(r.c)(t,e),t.createClientInfoDecodingError=function(e){return new t(o.clientInfoDecodingError.code,o.clientInfoDecodingError.desc+" Failed with error: "+e)},t.createClientInfoEmptyError=function(){return new t(o.clientInfoEmptyError.code,""+o.clientInfoEmptyError.desc)},t.createTokenParsingError=function(e){return new t(o.tokenParsingError.code,o.tokenParsingError.desc+" Failed with error: "+e)},t.createTokenNullOrEmptyError=function(e){return new t(o.nullOrEmptyToken.code,o.nullOrEmptyToken.desc+" Raw Token Value: "+e)},t.createEndpointDiscoveryIncompleteError=function(e){return new t(o.endpointResolutionError.code,o.endpointResolutionError.desc+" Detail: "+e)},t.createNetworkError=function(e,n){return new t(o.networkError.code,o.networkError.desc+" | Fetch client threw: "+n+" | Attempted to reach: "+e.split("?")[0])},t.createUnableToGetOpenidConfigError=function(e){return new t(o.unableToGetOpenidConfigError.code,o.unableToGetOpenidConfigError.desc+" Attempted to retrieve endpoints from: "+e)},t.createHashNotDeserializedError=function(e){return new t(o.hashNotDeserialized.code,o.hashNotDeserialized.desc+" Given Object: "+e)},t.createInvalidStateError=function(e,n){return new t(o.invalidStateError.code,o.invalidStateError.desc+" Invalid State: "+e+", Root Err: "+n)},t.createStateMismatchError=function(){return new t(o.stateMismatchError.code,o.stateMismatchError.desc)},t.createStateNotFoundError=function(e){return new t(o.stateNotFoundError.code,o.stateNotFoundError.desc+":  "+e)},t.createNonceMismatchError=function(){return new t(o.nonceMismatchError.code,o.nonceMismatchError.desc)},t.createAuthTimeNotFoundError=function(){return new t(o.authTimeNotFoundError.code,o.authTimeNotFoundError.desc)},t.createMaxAgeTranspiredError=function(){return new t(o.maxAgeTranspiredError.code,o.maxAgeTranspiredError.desc)},t.createNonceNotFoundError=function(e){return new t(o.nonceNotFoundError.code,o.nonceNotFoundError.desc+":  "+e)},t.createMultipleMatchingTokensInCacheError=function(){return new t(o.multipleMatchingTokens.code,o.multipleMatchingTokens.desc+".")},t.createMultipleMatchingAccountsInCacheError=function(){return new t(o.multipleMatchingAccounts.code,o.multipleMatchingAccounts.desc)},t.createMultipleMatchingAppMetadataInCacheError=function(){return new t(o.multipleMatchingAppMetadata.code,o.multipleMatchingAppMetadata.desc)},t.createTokenRequestCannotBeMadeError=function(){return new t(o.tokenRequestCannotBeMade.code,o.tokenRequestCannotBeMade.desc)},t.createAppendEmptyScopeToSetError=function(e){return new t(o.appendEmptyScopeError.code,o.appendEmptyScopeError.desc+" Given Scope: "+e)},t.createRemoveEmptyScopeFromSetError=function(e){return new t(o.removeEmptyScopeError.code,o.removeEmptyScopeError.desc+" Given Scope: "+e)},t.createAppendScopeSetError=function(e){return new t(o.appendScopeSetError.code,o.appendScopeSetError.desc+" Detail Error: "+e)},t.createEmptyInputScopeSetError=function(){return new t(o.emptyInputScopeSetError.code,""+o.emptyInputScopeSetError.desc)},t.createDeviceCodeCancelledError=function(){return new t(o.DeviceCodePollingCancelled.code,""+o.DeviceCodePollingCancelled.desc)},t.createDeviceCodeExpiredError=function(){return new t(o.DeviceCodeExpired.code,""+o.DeviceCodeExpired.desc)},t.createDeviceCodeUnknownError=function(){return new t(o.DeviceCodeUnknownError.code,""+o.DeviceCodeUnknownError.desc)},t.createNoAccountInSilentRequestError=function(){return new t(o.NoAccountInSilentRequest.code,""+o.NoAccountInSilentRequest.desc)},t.createNullOrUndefinedCacheRecord=function(){return new t(o.invalidCacheRecord.code,o.invalidCacheRecord.desc)},t.createInvalidCacheEnvironmentError=function(){return new t(o.invalidCacheEnvironment.code,o.invalidCacheEnvironment.desc)},t.createNoAccountFoundError=function(){return new t(o.noAccountFound.code,o.noAccountFound.desc)},t.createCachePluginError=function(){return new t(o.CachePluginError.code,""+o.CachePluginError.desc)},t.createNoCryptoObjectError=function(e){return new t(o.noCryptoObj.code,""+o.noCryptoObj.desc+e)},t.createInvalidCacheTypeError=function(){return new t(o.invalidCacheType.code,""+o.invalidCacheType.desc)},t.createUnexpectedAccountTypeError=function(){return new t(o.unexpectedAccountType.code,""+o.unexpectedAccountType.desc)},t.createUnexpectedCredentialTypeError=function(){return new t(o.unexpectedCredentialType.code,""+o.unexpectedCredentialType.desc)},t.createInvalidAssertionError=function(){return new t(o.invalidAssertion.code,""+o.invalidAssertion.desc)},t.createInvalidCredentialError=function(){return new t(o.invalidClientCredential.code,""+o.invalidClientCredential.desc)},t.createRefreshRequiredError=function(){return new t(o.tokenRefreshRequired.code,o.tokenRefreshRequired.desc)},t.createUserTimeoutReachedError=function(){return new t(o.userTimeoutReached.code,o.userTimeoutReached.desc)},t.createTokenClaimsRequiredError=function(){return new t(o.tokenClaimsRequired.code,o.tokenClaimsRequired.desc)},t.createNoAuthCodeInServerResponseError=function(){return new t(o.noAuthorizationCodeFromServer.code,o.noAuthorizationCodeFromServer.desc)},t.createBindingKeyNotRemovedError=function(){return new t(o.bindingKeyNotRemovedError.code,o.bindingKeyNotRemovedError.desc)},t.createLogoutNotSupportedError=function(){return new t(o.logoutNotSupported.code,o.logoutNotSupported.desc)},t.createKeyIdMissingError=function(){return new t(o.keyIdMissing.code,o.keyIdMissing.desc)},t.createNoNetworkConnectivityError=function(){return new t(o.noNetworkConnectivity.code,o.noNetworkConnectivity.desc)},t.createUserCanceledError=function(){return new t(o.userCanceledError.code,o.userCanceledError.desc)},t}(n(44).a)},,,,,function(e,t,n){"use strict";n.d(t,"a",function(){return o}
2);var r=n(17),o=function(){function e(){}return e.decodeAuthToken=function(t){if(e.isEmpty(t))throw r.a.createTokenNullOrEmptyError(t);var n=/^([^\.\s]*)\.([^\.\s]+)\.([^\.\s]*)$/.exec(t);if(!n||n.length<4)throw r.a.createTokenParsingError("Given token is malformed: "+JSON.stringify(t));return{header:n[1],JWSPayload:n[2],JWSSig:n[3]}},e.isEmpty=function(e){return void 0===e||!e||0===e.length},e.isEmptyObj=function(t){if(t&&!e.isEmpty(t))try{var n=JSON.parse(t);return 0===Object.keys(n).length}catch(e){}return!0},e.startsWith=function(e,t){return 0===e.indexOf(t)},e.endsWith=function(e,t){return e.length>=t.length&&e.lastIndexOf(t)===e.length-t.length},e.queryStringToObject=function(e){var t={},n=function(e){return decodeURIComponent(e.replace(/\+/g," "))};return e.split("&").forEach(function(e){if(e.trim()){var r=e.split(/=(.+)/g,2),o=r[0],i=r[1];o&&i&&(t[n(o)]=n(i))}}),t},e.trimArrayEntries=function(e){return e.map(function(e){return e.trim()})},e.removeEmptyStringsFromArray=function(t){return t.filter(function(t){return!e.isEmpty(t)})},e.jsonParseHelper=function(e){try{return JSON.parse(e)}catch(e){return null}},e.matchPattern=function(e,t){return new RegExp(e.replace(/\\/g,"\\\\").replace(/\*/g,"[^ ]*").replace(/\?/g,"\\?")).test(t)},e}()},,,,,function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(0),o=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=function(){function e(){this.isDebug=window.location.hostname.endsWith("localhost")}return e.prototype.log=function(e,t){console.log(this.isDebug),this.isDebug&&(t?console.log(e,t):console.log(e))},e.prototype.warn=function(e){this.isDebug&&console.warn(e)},e.prototype.error=function(e,t){console.error(e,t)},e=o([Object(r.Injectable)(),i("design:paramtypes",[])],e)}()},,function(e,t,n){"use strict";n.d(t,"a",function(){return h});var r=n(0),o=n(23),i=n(11),a=n(32),s=n(67),c=n(54),u=n(8),l=this&&this.__assign||function(){return(l=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},d=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},p=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},h=function(){function e(e,t,n,r,o){this.router=e,this.translateService=t,this.storageService=n,this.configService=r,this.singleSearchService=o,this.defaults={sort:"desprice",view:u.DisplayTypeEnum.Grid,distance:"0",currency:"GBP",floorUnit:"sqm",baths:0,offset:0,beds:"0",availability:u.AvailabilityUrlEnum.AvailableOrSold},this.translations=t.getTranslations(),this.defaults.currency=r.currencies().Default,this.defaults.floorUnit=r.floorAreaUnit(),this.defaults.landUnit=r.landAreaUnit(),this.defaults.sort=r.order().Default}var t,n,h,f,m;return e.prototype.getFirstPdpEntry=function(){return this.storageService.getSessionStorageItem("firstPdpEntry")},e.prototype.determineBackButtonMode=function(e,t,n,r){if(!e)return r?"back":"similar";var o=e.origin,i=e.firstType;return"plp"===o&&"development"===i?t?"back":n?"viewDev":r?"back":"similar":"plp"===o&&"unit"===i?"back":"direct"===o&&"development"===i?t?"similar":n?"viewDev":r?"back":"similar":"direct"===o&&"unit"===i?"similar":r?"back":"similar"},e.prototype.getSearchUrlParams=function(e){var t,n={},r=e;if(n.view=e.view,n.locationSlug=e.location,n.division=this.getDivision(e.division),n.transaction=this.getTransaction(e.transaction),n.type=e.type,n.division===u.DivisionEnum.Residential){if((t=e.size)!==this.translations.ALL_BEDS){var o=t.replace("-"+this.translations.BEDS_SUFFIX,"");n.beds=o}}else r.beds&&r.beds!==this.defaults.beds&&(n.beds=r.beds);if(n.division===u.DivisionEnum.Residential)r.hasOwnProperty("floormin")&&(n.floorMin=r.floormin),r.hasOwnProperty("floormax")&&(n.floorMax=r.floormax),r.hasOwnProperty("floorunit")?n.floorUnit=r.floorunit:n.floorUnit=this.defaults.floorUnit;else if((t=e.size)!==this.translations.ALL_FLOOR){var i=t.split("-");3===i.length&&(n.floorMin=i[0],"max"!==i[1]&&(n.floorMax=i[1]),"KE"===this.configService.defaultIsoCode()?n.floorUnit="sqft":n.floorUnit=this.defaults.floorUnit)}else n.floorMin="0",n.floorMax="0";return r.landmin&&(n.landMin=r.landmin),r.landmax&&(n.landMax=r.landmax),r.landunit?n.landUnit=r.landunit:n.landUnit=this.defaults.landUnit,r.offset?n.offset=parseInt(r.offset):n.offset=0,r.hasOwnProperty("distance")?n.distance=r.distance:n.distance=this.defaults.distance,r.hasOwnProperty("baths")?n.baths=parseInt(r.baths):n.baths=this.defaults.baths,r.hasOwnProperty("pricemin")&&(n.priceMin=r.pricemin),r.hasOwnProperty("pricemax")&&(n.priceMax=r.pricemax),r.hasOwnProperty("currency")?n.currency=r.currency:n.currency=this.defaults.currency,r.hasOwnProperty("accessibility")&&(n.accessibility=r.accessibility),r.hasOwnProperty("feature")&&(n.feature=r.feature),r.hasOwnProperty("sort")?n.sort=r.sort:n.sort=this.defaults.sort,r.hasOwnProperty("officeid")&&(n.officeId=parseInt(r.officeid)),r.hasOwnProperty("map")&&(n.mapBounds=u.GeoBounds.fromUrl(r.map)),r.hasOwnProperty("furnished")&&(n.furnished="true"===r.furnished),r.hasOwnProperty("lettingType")&&(n.lettingType=r.lettingType),r.hasOwnProperty("availability")&&r.availability!==this.defaults.availability.toString()&&(n.availability=r.availability),n},e.prototype.renderSearchState=function(e){var t={},n={},r=e.division===u.DivisionEnum.Residential?u.AvailabilityUrlEnum.AvailableOrSold:u.AvailabilityUrlEnum.Available;return void 0==this.translations?[]:(t.division=this.divisionToSlug(e.division),t.transaction=this.transactionToSlug(e.transaction),null==e.locationSlug?t.location=this.translations.ALL_LOCATIONS:t.location=e.locationSlug,null==e.type||""===e.type?t.type=this.translations.ALL_TYPES:t.type=e.type,e.division===u.DivisionEnum.Residential?null==e.beds?t.size=this.translations.ALL_BEDS:t.size=e.beds+"-"+this.translations.BEDS_SUFFIX:e.beds&&(t.beds=e.beds),e.division===u.DivisionEnum.Residential?(e.floorMin&&(n.floormin=e.floorMin),e.floorMax&&(n.floormax=e.floorMax),e.floorUnit&&e.floorUnit!=this.defaults.floorUnit&&(n.floorunit=e.floorUnit)):(e.floorMin||e.floorMax)&&e.floorUnit?t.size=(e.floorMin?e.floorMin:0)+"-"+(e.floorMax?e.floorMax:"max")+"-"+e.floorUnit:t.size=this.translations.ALL_FLOOR,e.view&&(n.view=e.view
2),e.landMin&&(n.landmin=e.landMin),e.landMax&&(n.landmax=e.landMax),e.landUnit&&e.landUnit!==this.defaults.landUnit&&(n.landunit=e.landUnit),e.offset&&0!==e.offset&&(n.offset=e.offset),e.accessibility&&(n.accessibility=e.accessibility),e.feature&&(n.feature=e.feature),e.priceMin&&(n.pricemin=e.priceMin),e.priceMax&&(n.pricemax=e.priceMax),e.currency&&e.currency!==this.defaults.currency&&(n.currency=e.currency),e.officeId&&(n.officeid=e.officeId),e.hasOwnProperty("furnished")&&(n.furnished=e.furnished?"true":"false"),e.lettingType&&(n.lettingType=e.lettingType),void 0!==e.availability&&e.availability!==r&&(n.availability=e.availability.toString()),e.sort&&e.sort!==this.defaults.sort&&(n.sort=e.sort),e.baths&&e.baths!==this.defaults.baths&&(n.baths=e.baths),e.distance&&e.distance!==this.defaults.distance&&(n.distance=e.distance),e.mapBounds&&(n.map=e.mapBounds.toUrl()),["/"+t.division+"/"+t.transaction+"/"+t.location+"/"+t.type+"/"+t.size,n])},e.prototype.navigateToSearch=function(e){var t=this.renderSearchState(e);this.router.navigate(t,{queryParamsHandling:"merge"})},e.prototype.savelastSearch=function(e){var t=l({},e);this.storageService.setSessionStorageItem("lastsearch",t);try{this.storageService.setSessionStorageItem("firstPdpEntry",null)}catch(e){}},e.prototype.navigateToSimilarSearch=function(e){var t,n,r,o,i,a,s,c={},u="uk-greater-london-greater-london"===(null===(t=e.Locations[0])||void 0===t?void 0:t.Slug);u&&(null===(n=e.Locations)||void 0===n?void 0:n.length)>1?c.locationSlug=null===(r=e.Locations[e.Locations.length-1])||void 0===r?void 0:r.Slug:c.locationSlug=null===(o=e.Locations[0])||void 0===o?void 0:o.Slug,c.division=e.Division,c.transaction=e.TransactionType,0!==e.Latitude&&0!==e.Longitude&&(c.mapBounds=this.getSimilarPropertiesBounds(e.Latitude,e.Longitude,u)),81===(null===(i=e.PropertyTypes[0])||void 0===i?void 0:i.Id)&&(c.type=null===(s=null===(a=e.PropertyTypes[0])||void 0===a?void 0:a.Name)||void 0===s?void 0:s.toLowerCase()),e.Price.PriceMin>0&&(c.priceMin=String(Math.round(.8*e.Price.PriceMin)),c.priceMax=String(Math.round(1.2*e.Price.PriceMax))),this.navigateToSearch(c)},e.prototype.getSimilarPropertiesBounds=function(e,t,n){var r,o=this.configService.radius().Items.find(function(e){return"+ 10 km"===e.Label||"+ 10 miles"===e.Label}).Label.includes("km")?"km":"mile";r=n?1:"mile"===o?10:6.213712;var i=new google.maps.LatLngBounds(new google.maps.LatLng(e-.0144927536*r,t-.0144927536*r),new google.maps.LatLng(e+.0144927536*r,t+.0144927536*r));return u.GeoBounds.fromGoogle(i)},e.prototype.backToLastSearch=function(){var e=this.storageService.getSessionStorageItem("lastsearch");if(e){var t=this.renderSearchState(e);this.router.navigate(t,{queryParamsHandling:"merge"})}},e.prototype.detailsUrl=function(e){return void 0==this.translations?"":"/"+this.divisionToSlug(e.Division)+"/"+this.transactionToSlug(e.TransactionType)+"/"+e.Slug+"/"+e.Number.toLowerCase()},e.prototype.navigateToParentDevelopment=function(e,t){if(t&&t.Slug&&t.Number){var n=u.TransactionEnum.Sales,r="/"+this.divisionToSlug(e.Division)+"/"+this.transactionToSlug(n)+"/"+t.Slug+"/"+t.Number.toLowerCase();this.router.navigate([r],{queryParamsHandling:"merge"})}},e.prototype.getDivision=function(e){return e===this.translations.RESIDENTIAL_SLUG?u.DivisionEnum.Residential:u.DivisionEnum.Commercial},e.prototype.getTransaction=function(e){return e===this.translations.SALES_SLUG?u.TransactionEnum.Sales:u.TransactionEnum.Lettings},e.prototype.divisionToSlug=function(e){return e===u.DivisionEnum.Residential?this.translations.RESIDENTIAL_SLUG:this.translations.COMMERCIAL_SLUG},e.prototype.transactionToSlug=function(e){return e===u.TransactionEnum.Sales?this.translations.SALES_SLUG:this.translations.LETTINGS_SLUG},e.prototype.changeDefaultSort=function(e){this.defaults.sort=e},e.prototype.getAvailabilityEnumKey=function(e){var t=Object.entries(u.AvailabilityUrlEnum).map(function(e){return{label:e[0],value:e[1]}}).find(function(t){return t.value===e});if(t){var n=t.label;return u.AvailabilityUrlEnum[n]}},e=d([Object(r.Injectable)(),p("design:paramtypes",["function"==typeof(t=void 0!==o.g&&o.g)?t:Object,"function"==typeof(n=void 0!==a.a&&a.a)?n:Object,"function"==typeof(h=void 0!==s.a&&s.a)?h:Object,"function"==typeof(f=void 0!==i.a&&i.a)?f:Object,"function"==typeof(m=void 0!==c.a&&c.a)?m:Object])],e)}()},,,function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(0),o=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=function(){function e(){}return e.prototype.getTranslations=function(){return kfsearchconfig.Translations},e.prototype.translate=function(e,t){var n=e,r=this.getTranslations();if(r.hasOwnProperty(e)&&(n=r[e]),t)for(var o in t)n=n.replace("{"+o+"}",t[o]);return n},e=o([Object(r.Injectable)(),i("design:paramtypes",[])],e)}()},,,,,,,function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return u});var r=n(0),o=n(38),i=n(52),a=n(8),s=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},u=function(){function t(t){var n=this;this.zone=t,this.initialLoadComplete=!1,this.observable=o.d.create(function(e){n.observer=e}).pipe(Object(i.n)()),e(document).on("click",function(){n.zone.run(function(){n.broadcast(a.EventTypeEnum.DocumentClicked)})})}var n;return t.prototype.broadcast=function(t){var n,r;"object"==typeof t?null===(n=this.observer)||void 0===n||n.next(t):t===a.EventTypeEnum.InitialLoadComplete?(setTimeout(function(){e(window).trigger("resize"),e(".lead").on("DOMSubtreeModified",function(){})},10),this.onInitialLoadComplete()):null===(r=this.observer)||void 0===r||r.next({type:t,data:null})},t.prototype.subscribe=function(e,t,n){var r=this.observable.pipe(Object(i.f)(function(t){return t.type===e}));return n&&n>0&&(r=r.pipe(Object(i.d)(function(){return Object(o.l)(n)}))),r.subscribe(t)},t.prototype.onInitialLoadComplete=function(){this.initialLoadComplete||(this.initialLoadComplete=!0)},t=s([Object(r.Injectable)(),c("design:paramtypes",["function"==typeof(n=void 0!==r.NgZone&&r.NgZone)?n:Object])],t)}()}).call(t,n(5))},,,,,function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(12),o=n(7),i={code:"unexpected_error",desc:"Unexpected error in authentication."},a={code:"post_request_failed",desc:"Post request failed from the network, could be a 4xx/5xx or a network unavailability. Please check the exact error code for details."},s=function(e){function t(n,r,i){var a=this,s=r?n+": "+r:n;return a=e.call(this,s)||this,Object.setPrototypeOf(a,t.prototype),a.errorCode=n||o.m.EMPTY_STRING,a.errorMessage=r||o.m.EMPTY_STRING,a.subError=i||o.m.EMPTY_STRING,a.name="AuthError",a}return Object(r.c)(t,e),t.prototype.setCorrelationId=function(e){this.correlationId=e},t.createUnexpectedError=function(e){return new t(i.code,i.desc+": "+e)},t.createPostRequestFailed=function(e){return new t(a.code,a.desc+": "+e)},t}(Error)},function(e,t,n){"use strict";n.d(t,"a",function(){return P});var r=n(12),o={code:"redirect_uri_empty",desc:"A redirect URI is required for all calls, and none has been set."},i={code:"post_logout_uri_empty",desc:"A post logout redirect has not been set."},a={code:"claims_request_parsing_error",desc:"Could not parse the given claims request object."},s={code:"authority_uri_insecure",desc:"Authority URIs must use https.  Please see here for valid authority configuration options: https://docs.microsoft.com/en-us
2/azure/active-directory/develop/msal-js-initializing-client-applications#configuration-options"},c={code:"url_parse_error",desc:"URL could not be parsed into appropriate segments."},u={code:"empty_url_error",desc:"URL was empty or null."},l={code:"empty_input_scopes_error",desc:"Scopes cannot be passed as null, undefined or empty array because they are required to obtain an access token."},d={code:"clientid_input_scopes_error",desc:"Client ID can only be provided as a single scope."},p={code:"invalid_prompt_value",desc:"Supported prompt values are 'login', 'select_account', 'consent', 'create', 'none' and 'no_session'.  Please see here for valid configuration options: https://azuread.github.io/microsoft-authentication-library-for-js/ref/modules/_azure_msal_common.html#commonauthorizationurlrequest"},h={code:"invalid_claims",desc:"Given claims parameter must be a stringified JSON object."},f={code:"token_request_empty",desc:"Token request was empty and not found in cache."},m={code:"logout_request_empty",desc:"The logout request was null or undefined."},g={code:"invalid_code_challenge_method",desc:'code_challenge_method passed is invalid. Valid values are "plain" and "S256".'},y={code:"pkce_params_missing",desc:"Both params: code_challenge and code_challenge_method are to be passed if to be sent in the request"},v={code:"invalid_cloud_discovery_metadata",desc:"Invalid cloudDiscoveryMetadata provided. Must be a stringified JSON object containing tenant_discovery_endpoint and metadata fields"},b={code:"invalid_authority_metadata",desc:"Invalid authorityMetadata provided. Must by a stringified JSON object containing authorization_endpoint, token_endpoint, issuer fields."},S={code:"untrusted_authority",desc:"The provided authority is not a trusted authority. Please include this authority in the knownAuthorities config parameter."},E={code:"invalid_azure_cloud_instance",desc:"Invalid AzureCloudInstance provided. Please refer MSAL JS docs: aks.ms/msaljs/azure_cloud_instance for valid values"},C={code:"missing_ssh_jwk",desc:"Missing sshJwk in SSH certificate request. A stringified JSON Web Key is required when using the SSH authentication scheme."},T={code:"missing_ssh_kid",desc:"Missing sshKid in SSH certificate request. A string that uniquely identifies the public SSH key is required when using the SSH authentication scheme."},w={code:"missing_nonce_authentication_header",desc:"Unable to find an authentication header containing server nonce. Either the Authentication-Info or WWW-Authenticate headers must be present in order to obtain a server nonce."},_={code:"invalid_authentication_header",desc:"Invalid authentication header provided"},I={code:"authority_mismatch",desc:"Authority mismatch error. Authority provided in login request or PublicClientApplication config does not match the environment of the provided account. Please use a matching account or make an interactive request to login to this authority."},P=function(e){function t(n,r){var o=e.call(this,n,r)||this;return o.name="ClientConfigurationError",Object.setPrototypeOf(o,t.prototype),o}return Object(r.c)(t,e),t.createRedirectUriEmptyError=function(){return new t(o.code,o.desc)},t.createPostLogoutRedirectUriEmptyError=function(){return new t(i.code,i.desc)},t.createClaimsRequestParsingError=function(e){return new t(a.code,a.desc+" Given value: "+e)},t.createInsecureAuthorityUriError=function(e){return new t(s.code,s.desc+" Given URI: "+e)},t.createUrlParseError=function(e){return new t(c.code,c.desc+" Given Error: "+e)},t.createUrlEmptyError=function(){return new t(u.code,u.desc)},t.createEmptyScopesArrayError=function(){return new t(l.code,""+l.desc)},t.createClientIdSingleScopeError=function(e){return new t(d.code,d.desc+" Given Scopes: "+e)},t.createInvalidPromptError=function(e){return new t(p.code,p.desc+" Given value: "+e)},t.createInvalidClaimsRequestError=function(){return new t(h.code,h.desc)},t.createEmptyLogoutRequestError=function(){return new t(m.code,m.desc)},t.createEmptyTokenRequestError=function(){return new t(f.code,f.desc)},t.createInvalidCodeChallengeMethodError=function(){return new t(g.code,g.desc)},t.createInvalidCodeChallengeParamsError=function(){return new t(y.code,y.desc)},t.createInvalidCloudDiscoveryMetadataError=function(){return new t(v.code,v.de
2sc)},t.createInvalidAuthorityMetadataError=function(){return new t(b.code,b.desc)},t.createUntrustedAuthorityError=function(){return new t(S.code,S.desc)},t.createInvalidAzureCloudInstanceError=function(){return new t(E.code,E.desc)},t.createMissingSshJwkError=function(){return new t(C.code,C.desc)},t.createMissingSshKidError=function(){return new t(T.code,T.desc)},t.createMissingNonceAuthenticationHeadersError=function(){return new t(w.code,w.desc)},t.createInvalidAuthenticationHeaderError=function(e,n){return new t(_.code,_.desc+". Invalid header: "+e+". Details: "+n)},t.createAuthorityMismatchError=function(){return new t(I.code,I.desc)},t}(n(17).a)},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(){function e(){}return e.nowSeconds=function(){return Math.round((new Date).getTime()/1e3)},e.isTokenExpired=function(t,n){var r=Number(t)||0;return e.nowSeconds()+n>r},e.wasClockTurnedBack=function(t){return Number(t)>e.nowSeconds()},e.delay=function(e,t){return new Promise(function(n){return setTimeout(function(){return n(t)},e)})},e}()},,,,,,,,function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return c});var r=n(0),o=n(23),i=n(11),a=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){function t(e,t){this.router=e,this.configService=t}var n,c;return t.prototype.create=function(){var t=this;try{this.singleSearch=SingleSearch.getInstance({appendSearchIconTo:".hidden-sm-down .ss-menu",appendSearchInputTo:"section.head",appendSearchBoxTo:".fixed-nav",enableTrace:!0,endpoint:this.configService.apiBase3()+"/search?cachetoken="+this.configService.apiBase3()+"|en&term={searchTerm}&isoCode=GB",customBodyClass:"search-ss"}),this.singleSearch.onPhraseSelect.on(function(e){SingleSearch.getInstance().externalSelectionCount(t.configService.apiBase3(),e.suggestion.Id,e.suggestion.Type),e.event.preventDefault(),e.event.stopPropagation(),t.router.navigateByUrl(e.suggestion.UrlForSearch),SingleSearch.getInstance().close()})}catch(e){this.configService.setSingleSearch(!1)}e(".fixed-head").css("opacity","1"),e("nav section.navigation").css("opacity","1")},t.prototype.isEnabled=function(){return SingleSearch.isEnabled()},t.prototype.open=function(){this.singleSearch.open()},t=a([Object(r.Injectable)(),s("design:paramtypes",["function"==typeof(n=void 0!==o.g&&o.g)?n:Object,"function"==typeof(c=void 0!==i.a&&i.a)?c:Object])],t)}()}).call(t,n(5))},,,,,function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(45),o=n(17),i=n(22),a=n(7),s=function(){function e(t){if(this._urlString=t,i.a.isEmpty(this._urlString))throw r.a.createUrlEmptyError();i.a.isEmpty(this.getHash())&&(this._urlString=e.canonicalizeUri(t))}return Object.defineProperty(e.prototype,"urlString",{get:function(){return this._urlString},enumerable:!1,configurable:!0}),e.canonicalizeUri=function(e){if(e){var t=e.toLowerCase();return i.a.endsWith(t,"?")?t=t.slice(0,-1):i.a.endsWith(t,"?/")&&(t=t.
2slice(0,-2)),i.a.endsWith(t,"/")||(t+="/"),t}return e},e.prototype.validateAsUri=function(){var e;try{e=this.getUrlComponents()}catch(e){throw r.a.createUrlParseError(e)}if(!e.HostNameAndPort||!e.PathSegments)throw r.a.createUrlParseError("Given url string: "+this.urlString);if(!e.Protocol||"https:"!==e.Protocol.toLowerCase())throw r.a.createInsecureAuthorityUriError(this.urlString)},e.appendQueryString=function(e,t){return i.a.isEmpty(t)?e:e.indexOf("?")<0?e+"?"+t:e+"&"+t},e.removeHashFromUrl=function(t){return e.canonicalizeUri(t.split("#")[0])},e.prototype.replaceTenantPath=function(t){var n=this.getUrlComponents(),r=n.PathSegments;return!t||0===r.length||r[0]!==a.a.COMMON&&r[0]!==a.a.ORGANIZATIONS||(r[0]=t),e.constructAuthorityUriFromObject(n)},e.prototype.getHash=function(){return e.parseHash(this.urlString)},e.prototype.getUrlComponents=function(){var e=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?"),t=this.urlString.match(e);if(!t)throw r.a.createUrlParseError("Given url string: "+this.urlString);var n={Protocol:t[1],HostNameAndPort:t[4],AbsolutePath:t[5],QueryString:t[7]},o=n.AbsolutePath.split("/");return o=o.filter(function(e){return e&&e.length>0}),n.PathSegments=o,!i.a.isEmpty(n.QueryString)&&n.QueryString.endsWith("/")&&(n.QueryString=n.QueryString.substring(0,n.QueryString.length-1)),n},e.getDomainFromUrl=function(e){var t=RegExp("^([^:/?#]+://)?([^/?#]*)"),n=e.match(t);if(!n)throw r.a.createUrlParseError("Given url string: "+e);return n[2]},e.getAbsoluteUrl=function(t,n){if(t[0]===a.m.FORWARD_SLASH){var r=new e(n).getUrlComponents();return r.Protocol+"//"+r.HostNameAndPort+t}return t},e.parseHash=function(e){var t=e.indexOf("#"),n=e.indexOf("#/");return n>-1?e.substring(n+2):t>-1?e.substring(t+1):a.m.EMPTY_STRING},e.parseQueryString=function(e){var t=e.indexOf("?"),n=e.indexOf("/?");return n>-1?e.substring(n+2):t>-1?e.substring(t+1):a.m.EMPTY_STRING},e.constructAuthorityUriFromObject=function(t){return new e(t.Protocol+"//"+t.HostNameAndPort+"/"+t.PathSegments.join("/"))},e.getDeserializedHash=function(t){if(i.a.isEmpty(t))return{};var n=e.parseHash(t),r=i.a.queryStringToObject(i.a.isEmpty(n)?t:n);if(!r)throw o.a.createHashNotDeserializedError(JSON.stringify(r));return r},e.getDeserializedQueryString=function(t){if(i.a.isEmpty(t))return{};var n=e.parseQueryString(t),r=i.a.queryStringToObject(i.a.isEmpty(n)?t:n);if(!r)throw o.a.createHashNotDeserializedError(JSON.stringify(r));return r},e.hashContainsKnownProperties=function(t){if(i.a.isEmpty(t)||t.indexOf("=")<0)return!1;var n=e.getDeserializedHash(t);return!!(n.code||n.error_description||n.error||n.state)},e}()},function(e,t,n){"use strict";var r,o;n.d(t,"a",function(){return i}),n.d(t,"b",function(){return o}),n.d(t,"c",function(){return r}),function(e){e.AcquireTokenByCode="acquireTokenByCode",e.AcquireTokenByRefreshToken="acquireTokenByRefreshToken",e.AcquireTokenSilent="acquireTokenSilent",e.AcquireTokenSilentAsync="acquireTokenSilentAsync",e.AcquireTokenPopup="acquireTokenPopup",e.CryptoOptsGetPublicKeyThumbprint="cryptoOptsGetPublicKeyThumbprint",e.CryptoOptsSignJwt="cryptoOptsSignJwt",e.SilentCacheClientAcquireToken="silentCacheClientAcquireToken",e.SilentIframeClientAcquireToken="silentIframeClientAcquireToken",e.SilentRefreshClientAcquireToken="silentRefreshClientAcquireToken",e.SsoSilent="ssoSilent",e.StandardInteractionClientGetDiscoveredAuthority="standardInteractionClientGetDiscoveredAuthority",e.FetchAccountIdWithNativeBroker="fetchAccountIdWithNativeBroker",e.NativeInteractionClientAcquireToken="nativeInteractionClientAcquireToken",e.BaseClientCreateTokenRequestHeaders="baseClientCreateTokenRequestHeaders",e.BrokerHandhshake="brokerHandshake",e.AcquireTokenByRefreshTokenInBroker="acquireTokenByRefreshTokenInBroker",e.AcquireTokenByBroker="acquireTokenByBroker",e.RefreshTokenClientExecuteTokenRequest="refreshTokenClientExecuteTokenRequest",e.RefreshTokenClientAcquireToken="refreshTokenClientAcquireToken",e.RefreshTokenClientAcquireTokenWithCachedRefreshToken="refreshTokenClientAcquireTokenWithCachedRefreshToken",e.RefreshTokenClientAcquireTokenByRefreshToken="refreshTokenClientAcquireTokenByRefreshToken",e.RefreshTokenClientCreateTokenRequestBody="refreshTokenClientCreateTokenRequestBody",e.AcquireTokenFromCache="acquireTokenFromCache",e.AcquireTokenBySilentIframe="acquireTokenBySilentIframe",e.InitializeBaseRequest="initializeBaseRequest",e.InitializeSilentRequest="initializeSilentRequest",e.InitializeClientApplication="initializeClientApplication",e.SilentIframeClientTokenHelper="silentIframeClientTokenHelper",e.SilentHandlerInitiateAuthRequest="silentHandlerInitiateAuthRequest",e.SilentHandlerMonitorIframeForHash="silentHandlerMonitorIframeForHash",e.SilentHandlerLoadFrame="silentHandlerLoadFrame",e.StandardInteractionClientCreateAuthCodeClient="standardInteractionClientCreateAuthCodeClient",e.StandardInteractionClientGetClientConfiguration="standardInteractionClientGetClientConfiguration",e.StandardInteractionClientInitializeAuthorizationRequest="standardInteractionClientInitializeAuthorizationRequest",e.StandardInteractionClientInitializeAuthorizationCodeRequest="standardInteractionClientInitializeAuthorizationCodeRequest",e.GetAuthCodeUrl="getAuthCodeUrl",e.HandleCodeResponseFromServer="handleCodeResponseFromServer",e.HandleCodeResponseFromHash="handleCodeResponseFromHash",e.UpdateTokenEndpointAuthority="updateTokenEndpointAuthority",e.AuthClientAcquireToken="authClientAcquireToken",e.AuthClientExecuteTokenRequest="authClientExecuteTokenRequest",e.AuthClientCreateTokenRequestBody="authClientCreateTokenRequestBody",e.AuthClientCreateQueryString="authClientCreateQueryString",e.PopTokenGenerateCnf="popTokenGenerateCnf",e.PopTokenGenerateKid="popTokenGenerateKid",e.HandleServerTokenResponse="handleServerTokenResponse",e.AuthorityFactoryCreateDiscoveredInstance="authorityFactoryCreateDiscoveredInstance",e.AuthorityResolveEndpointsAsync="authorityResolveEndpointsAsync",e.AuthorityGetCloudDiscoveryMetadataFromNetwork="authorityGetCloudDiscoveryMetadataFromNetwork",e.AuthorityUpdateCloudDiscoveryMetadata="authorityUpdateCloudDiscoveryMetadata",e.AuthorityGetEndpointMetadataFromNetwork="authorityGetEndpointMetadataFromNetwork",e.AuthorityUpdateEndpointMetadata="authorityUpdateEndpointMetadata",e.AuthorityUpdateMetadataWithRegionalInformation="authorityUpdateMetadataWithRegionalInformation",e.RegionDiscoveryDetectRegion="regionDiscoveryDetectRegion",e.RegionDiscoveryGetRegionFromIMDS="regionDiscoveryGetRegionFromIMDS",e.RegionDiscoveryGetCurrentVersion="regionDiscoveryGetCurrentVersion",e.AcquireTokenByCodeAsync="acquireTokenByCodeAsync",e.GetEndpointMetadataFromNetwork="getEndpointMetadataFromNetwork",e.GetCloudDiscoveryMetadataFromNetworkMeasurement="getCloudDiscoveryMetadataFromNetworkMeasurement",e.HandleRedirectPromiseMeasurement="handleRedirectPromiseMeasurement",e.UpdateCloudDiscoveryMetadataMeasurement="updateCloudDiscoveryMetadataMeasurement",e.UsernamePasswordCl
2ientAcquireToken="usernamePasswordClientAcquireToken",e.NativeMessageHandlerHandshake="nativeMessageHandlerHandshake",e.ClearTokensAndKeysWithClaims="clearTokensAndKeysWithClaims"}(r||(r={})),function(e){e[e.NotStarted=0]="NotStarted",e[e.InProgress=1]="InProgress",e[e.Completed=2]="Completed"}(o||(o={}));var i=new Set(["accessTokenSize","durationMs","idTokenSize","matsSilentStatus","matsHttpStatus","refreshTokenSize","queuedTimeMs","startTimeMs","status"])},function(e,t,n){"use strict";n.d(t,"a",function(){return v}),n.d(t,"b",function(){return b}),n.d(t,"c",function(){return S});var r=n(0),o=n(23),i=n(87),a=n(11),s=n(27),c=n(288),u=n(39),l=n(97),d=n(67),p=n(8),h=n(29),f=n(197),m=this&&this.__assign||function(){return(m=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},g=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},y=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},v="ft-",b="pc-",S=function(){function e(e,t,n,r,o,i,a,s,c,u){this.route=e,this.eventService=t,this.cacheService=n,this.storageService=r,this.propertiesApiService=o,this.configService=i,this.cookieService=a,this.$logService=s,this.urlHelperService=c,this.utmAttributionService=u}var t,n,S,E,C,T,w,_,I,P;return e.prototype.getPropertyPagerCache=function(){if(!this.propertiesPagerMemCache){var e=this.storageService.getSessionStorageItem("property_pager");e?(this.propertiesPagerMemCache=e.properties,this.total=e.total,this.lastOptions=e.lastOptions):this.propertiesPagerMemCache=[]}return this.propertiesPagerMemCache}
2,e.prototype.addPropertiesToPagerCache=function(e,t,n){t&&(this.propertiesPagerMemCache=[]);for(var r=n||0,o=0;o<e.length;++o){var i=e[o];this.propertiesPagerMemCache[r+o]={Number:i.Number,Slug:i.Slug}}var a={properties:this.propertiesPagerMemCache,total:this.total,lastOptions:this.lastOptions};this.storageService.setSessionStorageItem("property_pager",a)},e.prototype.getProperties=function(e){return this.getPropertiesInternal(e,!0)},e.prototype.getPropertiesNoTracking=function(e){return this.getPropertiesInternal(e,!1)},e.prototype.getPropertiesInternal=function(e,t){var n=this;return new Promise(function(r,o){var i;if("object"==typeof initialResults){var a=initialResults;return t&&n.saveSearch(a,e),initialResults=void 0,n.eventService.broadcast(p.EventTypeEnum.InitialLoadComplete),void r(a)}var s=null,c=null,u=null,l=null;void 0!==e.location&&(e.location.startsWith(v)?s=e.location.substring(v.length):e.location.startsWith(b)?(u=(i=e.location.split("-"))[1],l=i[2]):c=e.location);var d=function(e){return e||void 0};n.propertiesApiService.propertiesGetProperties(d(s),d(e.email),void 0,void 0,d(u),d(l),d(e.officeIds),d(c),parseInt(e.distance),d(e.geoBoxMinLat),d(e.geoBoxMinLon),d(e.geoBoxMaxLat),d(e.geoBoxMaxLon),d(e.accessibilityFeatures),d(e.features),d(e.propertyTypes),d(e.minBed),d(e.maxBed),d(e.exactMatchBed),d(n.configService.currencies().Default),d(e.minPrice),d(e.maxPrice),d(e.minBath),d(e.maxBath),d(e.minFloor),d(e.maxFloor),d(e.minLand),d(e.maxLand),d(e.order),void 0,d(e.resultType),void 0,e.furnished,d(e.lettingType),d(n.getHistogramMax(n.configService.histograms().FloorMax,e.division,e.type)),d(n.getHistogramMax(n.configService.histograms().AcreageMax,e.division,e.type)),d(e.latitude),d(e.longitude),d(e.includeDescription?"Full":"NoDescription"),d(e.currency),function(e){return null==e?void 0:e}(e.availability),d(e.division),d(e.type),d(e.floorAreaMeasurementUnit),d(e.landAreaMeasurementUnit),d(e.limit),d(e.offset)).subscribe(function(o){t&&n.saveSearch(o,e),n.eventService.broadcast(p.EventTypeEnum.InitialLoadComplete),r(o)},function(){o()})})},e.prototype.getSimilarProperties=function(e,t){var n=this;return new Promise(function(r,o){n.propertiesApiService.propertiesGetSimilarProperties(e,t).subscribe(function(e){r(e)},function(){o(new Error)})})},e.prototype.saveSearch=function(e,t){this.lastOptions=t,"Full"===t.resultType?(this.total=e.Total,this.addPropertiesToPagerCac
2he(e.Properties,!0,t.offset)):this.addPropertiesToPagerCache(e.Properties,!1,t.offset)},e.prototype.clearPager=function(){this.propertiesPagerMemCache=[]},e.prototype.getPager=function(e){var t=this;return new Promise(function(n,r){for(var o=e.toLowerCase(),i={CurrentIndex:-1},a=t.getPropertyPagerCache(),s=0;s<a.length;++s){var c=a[s];if(c&&c.Number.toLowerCase()===o){i.CurrentIndex=s;break}}if(i.CurrentIndex>-1){var u=new Promise(function(e){t.getPagerEntryAt(i.CurrentIndex-1,!1).then(function(t){t&&(i.PrevId=t.Number,i.PrevSlug=t.Slug),e()})}),l=new Promise(function(e){t.getPagerEntryAt(i.CurrentIndex+1,!0).then(function(t){t&&(i.NextId=t.Number,i.NextSlug=t.Slug),e()})});Promise.all([u,l]).then(function(){i.CurrentIndex=i.CurrentIndex+1,i.Total=t.total,n(i)})}else r()})},e.prototype.getPagerEntryAt=function(e,t){var n=this;return new Promise(function(r){if(e<0)r(null);else if(e>=n.total)r(null);else if(n.getPropertyPagerCache()[e])r(n.getPropertyPagerCache()[e]);else{var o=m({},n.lastOptions);o.resultType="DetailsOnly",o.offset=t?e:e-18+1,o.limit=18,o.offset<0&&(o.offset=0),n.getProperties(o).then(function(t){n.saveSearch(t,o),r(n.getPropertyPagerCache()[e])})}})},e.prototype.getHistogramMax=function(e,t,n){return t===p.DivisionEnum.Residential.toString()?n===p.TransactionEnum.Sales.toString()?e.ResBuy:e.ResLet:n===p.TransactionEnum.Sales.toString()?e.ComBuy:e.ComLet},e.prototype.getDetails=function(e,t,n){var r,o=this.route.snapshot.queryParams.currency;o||(o=this.configService.currencies().Default),r="KE"===this.configService.defaultIsoCode()&&void 0!==n&&this.urlHelperService.getDivision(n)===p.DivisionEnum.Commercial?"sqft":this.configService.floorAreaUnit();var i=this.route.snapshot.queryParams.landAreaMeasurementUnit;return i||(i=this.configService.landAreaUnit()),this.getDetailsByCurrency(e,o,r,i,t)},e.prototype.getPreviewDocument=function(e){var t=this;return new Promise(function(n){t.propertiesApiService.getPreviewDocument(e).subscribe(function(e){n(e)},function(){n()})})},e.prototype.getDetailsByCurrency=function(e,t,n,r,o){var i=this;return new Promise(function(a,s){var c=i.cacheService.getProperty(e,t);c?(i.eventService.broadcast(p.EventTypeEnum.InitialLoadComplete),a(c)):i.propertiesApiService.propertiesGetDetails(e,void 0,t,"Any",o,void 0,void 0,void 0,n,r).subscribe(function(e){e&&(i.eventService.broadcast(p.EventTypeEnum.InitialLoadComplete),void 0===o&&i.cacheService.saveProperty(e,t),a(e))},function(){a(null)})})},e.prototype.getPriceDetails=function(e,t,n,r){var o=this;return new Promise(function(i,a){o.propertiesApiService.propertiesGetDetails(e,"NoDescription",t,void 0,r,n).subscribe(function(e){i(e.Price)},function(){a()})})},e.prototype.getDevelopmentDetails=function(e,t){var n=this;return new Promise(function(r){var o=n.cacheService.getDevelopment(e);if(o&&!t)n.eventService.broadcast(p.EventTypeEnum.InitialLoadComplete),r(o);else{var i=window.location.hostname;n.propertiesApiService.propertiesGetDevelopmentDetails(e,i,t).subscribe(function(e){n.eventService.broadcast(p.EventTypeEnum.InitialLoadComplete),e&&n.cacheService.saveDevelopment(e),r(e)})}})},e.prototype.getContactDetails=function(e){var t=this;return new Promise(function(n,r){var o=t.cookieService.getCookie("adclick"),i=t.cookieService.getCookie("referrer"),a=t.cookieService.getCookie("useraddress");t.propertiesApiService.propertiesGetContactDetails(e,o,i,a).subscribe(function(e){n(e)},function(){r()})})},e.prototype.postContact=function(e,t){var n=this;return new Promise(function(r,o){n.applyStoredUtmValues(t);var i=n.cookieService.getCookie("adclick");void 0!==i&&i.length>0&&(t.BannerId=i);var a=n.cookieService.getCookie("referrer");void 0!==a&&a.length>0&&(t.Referrer=a),n.propertiesApiService.propertiesPostContact(e,t).subscribe(function(e){r(e)},function(){o()})})},e.prototype.postRegisterInterest=function(e,t){var n=this;return new Promise(function(r,o){var i=window.location.hostname;n.propertiesApiService.propertiesPostRegisterInterest(e,i,t).subscribe(function(e){r(e)},function(){o()})})},e.prototype.postRequestACall=function(e,t){var n=this;return new Promise(function(r,o){var i=window.location.hostname;n.propertiesApiService.propertiesPostRequestACall(e,i,t).subscribe(function(e){r(e)},function(){o()})})},e.prototype.postSendAFriend=function(e,t){var n=this;return new Promise(function(r,o){n.propertiesApiService.propertiesPostSendAFriend(e,t).subscribe(function(e){r(e)},function(){o()})})},e.prototype.postBookViewing=function(e,t){var n=this;return new Promise(function(r,o){n.applyStoredUtmValues(t),n.propertiesApiService.propertiesPostBookViewing(e,t).subscribe(function(e){r(e)},function(){o()})})},e.prototype.applyStoredUtmValues=function(e){var t=this.utmAttributionService.getUtmValues(),n=this.utmAttributionService.getFirstTouchValues();e.Utm=Object.keys(t).length>0?t:void 0,e.FirstTouch=Object.keys(n).length>0?n:void 0},e.prototype.getDevelopmentAutocomplete=function(e,t,n,r){return void 0===t&&(t=3),void 0===n&&(n=null),void 0===r&&(r=null),this.propertiesApiService.propertiesGetDevelopmentAutocomplete(e,t,n,r)},e.prototype.getPropertiesByParentDevelopmentReference=function(e,t,n,r,o){return void 0===n&&(n=[]),void 0===r&&(r=12),void 0===o&&(o=0),this.propertiesApiService.propertiesGetPropertiesByParentDevelopmentReference(e,t,n,r,o)},e.prototype.getParentDevelopmentDetails=function(e){return this.propertiesApiService.propertiesGetParentDevelopmentDetails(e)},e=g([Object(r.Injectable)(),y("design:paramtypes",["function"==typeof(t=void 0!==o.a&&o.a)?t:Object,"function"==typeof(n=void 0!==u.a&&u.a)?n:Object,"function"==typeof(S=void 0!==c.a&&c.a)?S:Object,"function"==typeof(E=void 0!==d.a&&d.a)?E:Object,"function"==typeof(C=void 0!==i.c&&i.c)?C:Object,"function"==typeof(T=void 0!==a.a&&a.a)?T:Object,"function"==typeof(w=void 0!==l.a&&l.a)?w:Object,"function"==typeof(_=void 0!==s.a&&s.a)?_:Object,"function"==typeof(I=void 0!==h.a&&h.a)?I:Object,"function"==typeof(P=void 0!==f.a&&f.a)?P:Object])],e)}()},,,,,function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r=n(6),o=n(738),i=n(739),a=n(15),s=n(14),c=function(){function e(){}return e.clearHash=function(e){e.location.hash=r.r.EMPTY_STRING,"function"==typeof e.history.replaceState&&e.history.replaceState(null,r.r.EMPTY_STRING,""+e.location.origin+e.location.pathname+e.location.search)},e.replaceHash=function(e){var t=e.split("#");t.shift(),window.location.hash=t.length>0?t.join("#"):r.r.EMPTY_STRING},e.isInIframe=function(){return window.parent!==window},e.isInPopup=function(){return"undefined"!=typeof window&&!!window.opener&&window.opener!==window&&"string"==typeof window.name&&0===window.name.indexOf(s.c.POPUP_NAME_PREFIX+".")},e.getCurrentUri=function(){return window.location.href.split("?")[0].split("#")[0]},e.getHomepage=function(){var e=new r.Y(window.location.href).getUrlComponents();return e.Protocol+"//"+e.HostNameAndPort+"/"},e.getBrowserNetworkClient=function(){return window.fetch&&window.Headers?new o.a:new i.a},e.blockReloadInHiddenIframes=function(){if(r.Y.hashContainsKnownProperties(window.location.hash)&&e.isInIframe())throw a.a.createBlockReloadInHiddenIframeError()},e.blockRedirectInIframe=function(t,n){var r=e.isInIframe();if(t===s.l.Redirect&&r&&!n)throw a.a.createRedirectInIframeError(r)},e.blockAcquireTokenInPopups=function(){if(e.isInPopup())throw a.a.createBlockAcquireTokenInPopupsError()},e.blockNonBrowserEnvironment=function(e){if(!e)throw a.a.createNonBrowserEnvironmentError()},e.blockNativeBrokerCalledBeforeInitialized=function(e,t){if(e&&!t)throw a.a.createNativeBrokerCalledBeforeInitialize()},e.detectIEOrEdge=function(){var e=window.navigator.userAgent,t=e.indexOf("MSIE "),n=e.indexOf("Trident/"),r=e.indexOf("Edge/");return t>0||n>0||r>0},e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(0),o=n(27),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=function(){function e(e){this.$log=e,this.localCache={},this.sessionCache={}}var t;return e.prototype.toExpiringItem=function(e,t){var n=new Date;return n.setTime(n.getTime()+60*t*60*1e3),{expiry:n.valueOf(),data:e}},e.prototype.isExpired=function(e){return(new Date).valueOf()>e.expiry},e.prototype.setLocalStorageItem=function(e,t,n){var r=this.toExpiringItem(t,n);this.localCache[e]=r;try{localStorage.setItem(e,JSON.stringify(r))}catch(e){}},e.prototype.getLocalStorageItem=function(e){var t=null;if(this.localCache.hasOwnProperty(e)&&(t=this.localCache[e]),!t)try{t=JSON.parse(localStorage.getItem(e))}catch(t){this.$log.error("StorageService.getLocalStorageItem: ["+e+"] error retrieving from localStorage")}if(t&&this.isExpired(t)){try{delete this.localCache[e],localStorage.removeItem(e)}catch(e){}t=null}return t?t.data:null},e.prototype.setSessionStorageItem=function(e,t){this.sessionCache[e]=t;try{sessionStorage.setItem(e,JSON.stringify(t))}catch(e){}},e.prototype.getSessionStorageItem=function(e){if(this.sessionCache.hasOwnProperty(e))return this.sessionCache[e];try{return JSON.parse(sessionStorage.getItem(e))}catch(t){this.$log.error("StorageService.getSessionStorageItem: ["+e+"] error retrieving from localStorage")}return null},e=i([Object(r.Injectable)(),a("design:paramtypes",["function"==typeof(t=void 0!==o.a&&o.a)?t:Object])],e)}()},,,,,,,function(e,t,n){"use strict";n.d(t,"a",function(){return h});var r=n(12),o=n(292),i=n(295),a=n(200),s=n(7),c=n(149),u=n(17),l=n(119),d=n(91),p=n(75),h=function(){function e(e,t){this.config=Object(o.b)(e),this.logger=new a.b(this.config.loggerOptions,c.a,c.b),this.cryptoUtils=this.config.cryptoInterface,this.cacheManager=this.config.storageInterface,this.networkClient=this.config.networkInterface,this.networkManager=new i.a(this.networkClient,this.cacheManager),this.serverTelemetryManager=this.config.serverTelemetryManager,this.authority=this.config.authOptions.authority,this.performanceClient=t}return e.prototype.createTokenRequestHeaders=function(e){var t={};if(t[s.q.CONTENT_TYPE]=s.m.URL_FORM_CONTENT_TYPE,!this.config.systemOptions.preventCorsPreflight&&e)switch(e.type){case l.a.HOME_ACCOUNT_ID:try{var n=Object(d.b)(e.credential);t[s.q.CCS_HEADER]="Oid:"+n.uid+"@"+n.utid}catch(e){this.logger.verbose("Could not parse home account ID for CCS Header: "+e)}break;case l.a.UPN:t[s.q.CCS_HEADER]="UPN: "+e.credential}return t},e.prototype.executePostToTokenEndpoint=function(e,t,n,o){return Object(r.b)(this,void 0,void 0,function(){var i;return Object(r.d)(this,function(r){switch(r.label){case 0:return[4,this.networkManager.sendPostRequest(o,e,{body:t,headers:n})];case 1:return i=r.sent(),this.config.serverTelemetryManager&&i.status<500&&429!==i.status&&this.config.serverTelemetryManager.clearTelemetryCache(),[2,i]}})})},e.prototype.updateAuthority=function(e){if(!e.discoveryComplete())throw u.a.createEndpointDiscoveryIncompleteError("Updated authority has not completed endpoint discovery.");this.authority=e},e.prototype.createTokenQueryParameters=function(e){var t=new p.a;return e.tokenQueryParameters&&t.addExtraQueryParameters(e.tokenQueryParameters),t.createQueryString()},e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n(12),o=n(7),i=n(90),a=n(45),s=n(297),c=n(22),u=function(){function e(){this.parameters=new Map}return e.prototype.addResponseTypeCode=function(){this.parameters.set(o.b.RESPONSE_TYPE,encodeURIComponent(o.m.CODE_RESPONSE_TYPE))},e.prototype.addResponseTypeForTokenAndIdToken=function(){this.parameters.set(o.b.RESPONSE_TYPE,encodeURIComponent(o.m.TOKEN_RESPONSE_TYPE+" "+o.m.ID_TOKEN_RESPONSE_TYPE))},e.prototype.addResponseMode=function(e){this.parameters.set(o.b.RESPONSE_MODE,encodeURIComponent(e||o.A.QUERY))},e.prototype.addNativeBroker=function(){this.parameters.set(o.b.NATIVE_BROKER,encodeURIComponent("1"))},e.prototype.addScopes=function(e,t){void 0===t&&(t=!0);var n=t?Object(r.e)(e||[],o.s):e||[],a=new i.a(n);this.parameters.set(o.b.SCOPE,encodeURIComponent(a.printScopes()))},e.prototype.addClientId=function(e){this.parameters.set(o.b.CLIENT_ID,encodeURIComponent(e))},e.prototype.addRedirectUri=function(e){s.a.validateRedirectUri(e),this.parameters.set(o.b.REDIRECT_URI,encodeURIComponent(e))},e.prototype.addPostLogoutRedirectUri=function(e){s.a.validateRedirectUri(e),this.parameters.set(o.b.POST_LOGOUT_URI,encodeURIComponent(e))},e.prototype.addIdTokenHint=function(e){this.parameters.set(o.b.ID_TOKEN_HINT,encodeURIComponent(e))},e.prototype.addDomainHint=function(e){this.parameters.set(o.C.DOMAIN_HINT,encodeURIComponent(e))},e.prototype.addLoginHint=function(e){this.parameters.set(o.C.LOGIN_HINT,encodeURIComponent(e))},e.prototype.addCcsUpn=function(e){this.parameters.set(o.q.CCS_HEADER,encodeURIComponent("UPN:"+e))},e.prototype.addCcsOid=function(e){this.parameters.set(o.q.CCS_HEADER,encodeURIComponent("Oid:"+e.uid+"@"+e.utid))},e.prototype.addSid=function(e){this.parameters.set(o.C.SID,encodeURIComponent(e))},e.prototype.addClaims=function(e,t){var n=this.addClientCapabilitiesToClaims(e,t);s.a.validateClaims(n),this.parameters.set(o.b.CLAIMS,encodeURIComponent(n))},e.prototype.addCorrelationId=function(e){this.parameters.set(o.b.CLIENT_REQUEST_ID,encodeURIComponent(e))},e.prototype.addLibraryInfo=function(e){this.parameters.set(o.b.X_CLIENT_SKU,e.sku),this.parameters.set(o.b.X_CLIENT_VER,e.ver
2sion),e.os&&this.parameters.set(o.b.X_CLIENT_OS,e.os),e.cpu&&this.parameters.set(o.b.X_CLIENT_CPU,e.cpu)},e.prototype.addApplicationTelemetry=function(e){(null===e||void 0===e?void 0:e.appName)&&this.parameters.set(o.b.X_APP_NAME,e.appName),(null===e||void 0===e?void 0:e.appVersion)&&this.parameters.set(o.b.X_APP_VER,e.appVersion)},e.prototype.addPrompt=function(e){s.a.validatePrompt(e),this.parameters.set(""+o.b.PROMPT,encodeURIComponent(e))},e.prototype.addState=function(e){c.a.isEmpty(e)||this.parameters.set(o.b.STATE,encodeURIComponent(e))},e.prototype.addNonce=function(e){this.parameters.set(o.b.NONCE,encodeURIComponent(e))},e.prototype.addCodeChallengeParams=function(e,t){if(s.a.validateCodeChallengeParams(e,t),!e||!t)throw a.a.createInvalidCodeChallengeParamsError();this.parameters.set(o.b.CODE_CHALLENGE,encodeURIComponent(e)),this.parameters.set(o.b.CODE_CHALLENGE_METHOD,encodeURIComponent(t))},e.prototype.addAuthorizationCode=function(e){this.parameters.set(o.b.CODE,encodeURIComponent(e))},e.prototype.addDeviceCode=function(e){this.parameters.set(o.b.DEVICE_CODE,encodeURIComponent(e))},e.prototype.addRefreshToken=function(e){this.parameters.set(o.b.REFRESH_TOKEN,encodeURIComponent(e))},e.prototype.addCodeVerifier=function(e){this.parameters.set(o.b.CODE_VERIFIER,encodeURIComponent(e))},e.prototype.addClientSecret=function(e){this.parameters.set(o.b.CLIENT_SECRET,encodeURIComponent(e))},e.prototype.addClientAssertion=function(e){c.a.isEmpty(e)||this.parameters.set(o.b.CLIENT_ASSERTION,encodeURIComponent(e))},e.prototype.addClientAssertionType=function(e){c.a.isEmpty(e)||this.parameters.set(o.b.CLIENT_ASSERTION_TYPE,encodeURIComponent(e))},e.prototype.addOboAssertion=function(e){this.parameters.set(o.b.OBO_ASSERTION,encodeURIComponent(e))},e.prototype.addRequestTokenUse=function(e){this.parameters.set(o.b.REQUESTED_TOKEN_USE,encodeURIComponent(e))},e.prototype.addGrantType=function(e){this.parameters.set(o.b.GRANT_TYPE,encodeURIComponent(e))},e.prototype.addClientInfo=function(){this.parameters.set(o.g,"1")},e.prototype.addExtraQueryParameters=function(e){var t=this,n=s.a.sanitizeEQParams(e,this.parameters);Object.keys(n).forEach(function(n){t.parameters.set(n,e[n])})},e.prototype.addClientCapabilitiesToClaims=function(e,t){var n;if(e)try{n=JSON.parse(e)}catch(e){throw a.a.createInvalidClaimsRequestError()}else n={};return t&&t.length>0&&(n.hasOwnProperty(o.k.ACCESS_TOKEN)||(n[o.k.ACCESS_TOKEN]={}),n[o.k.ACCESS_TOKEN][o.k.XMS_CC]={values:t}),JSON.stringify(n)},e.prototype.addUsername=function(e){this.parameters.set(o.u.username,encodeURIComponent(e))},e.prototype.addPassword=function(e){this.parameters.set(o.u.password,encodeURIComponent(e))},e.prototype.addPopToken=function(e){c.a.isEmpty(e)||(this.parameters.set(o.b.TOKEN_TYPE,o.e.POP),this.parameters.set(o.b.REQ_CNF,encodeURIComponent(e)))},e.prototype.addSshJwk=function(e){c.a.isEmpty(e)||(this.parameters.set(o.b.TOKEN_TYPE,o.e.SSH),this.parameters.set(o.b.REQ_CNF,encodeURIComponent(e)))},e.prototype.addServerTelemetry=function(e){this.parameters.set(o.b.X_CLIENT_CURR_TELEM,e.generateCurrentRequestHeaderValue()),this.parameters.set(o.b.X_CLIENT_LAST_TELEM,e.generateLastRequestHeaderValue())},e.prototype.addThrottling=function(){this.parameters.set(o.b.X_MS_LIB_CAPABILITY,o.F.X_MS_LIB_CAPABILITY_VALUE)},e.prototype.addLogoutHint=function(e){this.parameters.set(o.b.LOGOUT_HINT,encodeURIComponent(e))},e.prototype.createQueryString=function(){var e=new Array;return this.parameters.forEach(function(t,n){e.push(n+"="+t)}),e.join("&")},e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return C});var r=n(12),o=n(91),i=n(17),a=n(22),s=n(118),c=n(92),u=n(90),l=n(202),d=n(298),p=n(299),h=n(300),f=n(205),m=n(301),g=n(302),y=n(7),v=n(151),b=n(303),S=n(304),E=n(60),C=function(){function e(e,t,n,r,o,i,a){this.clientId=e,this.cacheStorage=t,this.cryptoObj=n,this.logger=r,this.serializableCache=o,this.persistencePlugin=i,this.performanceClient=a}return e.prototype.validateServerAuthorizationCodeResponse=function(e,t,n){if(!e.state||!t)throw e.state?i.a.createStateNotFoundError("Cached State"):i.a.createStateNotFoundError("Server State");if(decodeURIComponent(e.state)!==decodeURIComponent(t))throw i.a.createStateMismatchError();if(e.error||e.error_description||e.suberror){if(f.a.isInteractionRequiredError(e.error,e.error_description,e.suberror))throw new f.a(e.error||y.m.EMPTY_STRING,e.error_description,e.suberror,e.timestamp||y.m.EMPTY_STRING,e.trace_id||y.m.EMPTY_STRING,e.correlation_id||y.m.EMPTY_STRING,e.claims||y.m.EMPTY_STRING);throw new s.a(e.error||y.m.EMPTY_STRING,e.error_description,e.suberror)}e.client_info&&Object(o.a)(e.client_info,n)},e.prototype.validateTokenResponse=function(e){if(e.error||e.error_description||e.suberror){if(f.a.isInteractionRequiredError(e.error,e.error_description,e.suberror))throw new f.a(e.error,e.error_description,e.suberror,e.timestamp||y.m.EMPTY_STRING,e.trace_id||y.m.EMPTY_STRING,e.correlation_id||y.m.EMPTY_STRING,e.claims||y.m.EMPTY_STRING);var t=e.error_codes+" - ["+e.timestamp+"]: "+e.error_description+" - Correlation ID: "+e.correlation_id+" - Trace ID: "+e.trace_id;throw new s.a(e.error,t,e.suberror)}},e.prototype.handleServerTokenResponse=function(t,n,o,s,u,d,p,h,f){var m;return Object(r.b)(this,void 0,void 0,function(){var v,b,C,T,w,_;return Object(r.d)(this,function(r){switch(r.label){case 0:if(null===(m=this.performanceClient)||void 0===m||m.addQueueMeasurement(E.c.HandleServerTokenResponse,t.correlation_id),t.id_token){if(v=new c.a(t.id_token||y.m.EMPTY_STRING,this.cryptoObj),u&&!a.a.isEmpty(u.nonce)&&v.claims.nonce!==u.nonce)throw i.a.createNonceMismatchError();if(s.maxAge||0===s.maxAge){if(!(b=v.claims.auth_time))throw i.a.createAuthTimeNotFoundError();c.a.checkMaxAge(b,s.maxAge)}}this.homeAccountIdentifier=l.a.generateHomeAccountId(t.client_info||y.m.EMPTY_STRING,n.authorityType,this.logger,this.cryptoObj,null===v||void 0===v?void 0:v.claims),u&&u.state&&(C=g.a.parseRequestState(this.cryptoObj,u.state)),t.key_id=t.key_id||s.sshKid||void 0,T=this.generateCacheRecord(t,n,o,s,v,d,u),r.label=1;case 1:return r.trys.push([1,,5,8]),this.persistencePlugin&&this.serializableCache?(this.logger.verbose("Persistence enabled, calling beforeCacheAccess"),w=new S.a(this.serializableCache,!0),[4,this.persistencePlugin.beforeCacheAccess(w)]):[3,3];case 2:r.sent(),r.label=3;case 3:return!p||h||!T.account||(_=T.account.generateAccountKey(),this.cacheStorage.getAccount(_))?[4,this.cacheStorage.saveCacheRecord(T)]:(this.logger.warning("Account used to refresh tokens not in persistence, refreshed tokens will not be stored in the cache"),[2,e.generateAuthenticationResult(this.cryptoObj,n,T,!1,s,v,C,void 0,f)]);case 4:return r.sent(),[3,8];case 5:return this.persistencePlugin&&this.serializableCache&&w?(this.logger.verbose("Persistence enabled, calling afterCacheAccess"),[4,this.persistencePlugin.afterCacheAccess(w)]):[3,7];case 6:r.sent(),r.label=7;
2case 7:return[7];case 8:return[2,e.generateAuthenticationResult(this.cryptoObj,n,T,!1,s,v,C,t,f)]}})})},e.prototype.generateCacheRecord=function(e,t,n,r,o,s,c){var f,g,v=t.getPreferredCache();if(a.a.isEmpty(v))throw i.a.createInvalidCacheEnvironmentError();!a.a.isEmpty(e.id_token)&&o&&(f=d.a.createIdTokenEntity(this.homeAccountIdentifier,v,e.id_token||y.m.EMPTY_STRING,this.clientId,o.claims.tid||y.m.EMPTY_STRING),g=l.a.createAccount({homeAccountId:this.homeAccountIdentifier,idTokenClaims:o.claims,clientInfo:e.client_info||y.m.EMPTY_STRING,cloudGraphHostName:null===c||void 0===c?void 0:c.cloud_graph_host_name,msGraphHost:null===c||void 0===c?void 0:c.msgraph_host},t));var S=null;if(!a.a.isEmpty(e.access_token)){var E=e.scope?u.a.fromString(e.scope):new u.a(r.scopes||[]),C=("string"==typeof e.expires_in?parseInt(e.expires_in,10):e.expires_in)||0,T=("string"==typeof e.ext_expires_in?parseInt(e.ext_expires_in,10):e.ext_expires_in)||0,w=("string"==typeof e.refresh_in?parseInt(e.refresh_in,10):e.refresh_in)||void 0,_=n+C,I=_+T,P=w&&w>0?n+w:void 0;S=p.a.createAccessTokenEntity(this.homeAccountIdentifier,v,e.access_token||y.m.EMPTY_STRING,this.clientId,o?o.claims.tid||y.m.EMPTY_STRING:t.tenant,E.printScopes(),_,I,this.cryptoObj,P,e.token_type,s,e.key_id,r.claims,r.requestedClaimsHash)}var R=null;a.a.isEmpty(e.refresh_token)||(R=h.a.createRefreshTokenEntity(this.homeAccountIdentifier,v,e.refresh_token||y.m.EMPTY_STRING,this.clientId,e.foci,s));var O=null;return a.a.isEmpty(e.foci)||(O=b.a.createAppMetadataEntity(this.clientId,v,e.foci)),new m.a(g,f,S,R,O)},e.generateAuthenticationResult=function(e,t,n,o,a,s,c,l,d){var p,h,f;return Object(r.b)(this,void 0,void 0,function(){var m,g,b,S,E,C,T,w,_,I,P;return Object(r.d)(this,function(r){switch(r.label){case 0:if(m=y.m.EMPTY_STRING,g=[],b=null,E=y.m.EMPTY_STRING,!n.accessToken)return[3,4];if(n.accessToken.tokenType!==y.e.POP)return[3,2];if(C=new v.a(e),T=n.accessToken,w=T.secret,!(_=T.keyId))throw i.a.createKeyIdMissingError();return[4,C.signPopToken(w,_,a)];case 1:return m=r.sent(),[3,3];case 2:m=n.accessToken.secret,r.label=3;case 3:g=u.a.fromString(n.accessToken.target).asArray(),b=new Date(1e3*Number(n.accessToken.expiresOn)),S=new Date(1e3*Number(n.accessToken.extendedExpiresOn)),r.label=4;case 4:return n.appMetadata&&(E=n.appMetadata.familyId===y.E?y.E:y.m.EMPTY_STRING),I=(null===s||void 0===s?void 0:s.claims.oid)||(null===s||void 0===s?void 0:s.claims.sub)||y.m.EMPTY_STRING,P=(null===s||void 0===s?void 0:s.claims.tid)||y.m.EMPTY_STRING,(null===l||void 0===l?void 0:l.spa_accountid)&&n.account&&(n.account.nativeAccountId=null===l||void 0===l?void 0:l.spa_accountid),[2,{authority:t.canonicalAuthority,uniqueId:I,tenantId:P,scopes:g,account:n.account?n.account.getAccountInfo():null,idToken:s?s.rawToken:y.m.EMPTY_STRING,idTokenClaims:s?s.claims:{},accessToken:m,fromCache:o,expiresOn:b,correlationId:a.correlationId,requestId:d||y.m.EMPTY_STRING,extExpiresOn:S,familyId:E,tokenType:(null===(p=n.accessToken)||void 0===p?void 0:p.tokenType)||y.m.EMPTY_STRING,state:c?c.userRequestState:y.m.EMPTY_STRING,cloudGraphHostName:(null===(h=n.account)||void 0===h?void 0:h.cloudGraphHostName)||y.m.EMPTY_STRING,msGraphHost:(null===(f=n.account)||void 0===f?void 0:f.msGraphHost)||y.m.EMPTY_STRING,code:null===l||void 0===l?void 0:l.spa_code,fromNativeBroker:!1}]}})})},e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return d});var r=n(9),o=n(6),i=n(312),a=n(14),s=n(121),c=n(15),u=n(311),l=n(66),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.initializeAuthorizationCodeRequest=function(e){return Object(r.b)(this,void 0,void 0,function(){var t,n;return Object(r.d)(this,function(i){switch(i.label){case 0:return this.performanceClient.addQueueMeasurement(o.E.StandardInteractionClientInitializeAuthorizationCodeRequest,e.correlationId),this.logger.verbose("initializeAuthorizationRequest called",e.correlationId),[4,this.browserCrypto.generatePkceCodes()];case 1:return t=i.sent(),n=Object(r.a)(Object(r.a)({},e),{redirectUri:e.redirectUri,code:o.r.EMPTY_STRING,codeVerifier:t.verifier}),e.codeChallenge=t.challenge,e.codeChallengeMethod=o.r.S256_CODE_CHALLENGE_METHOD,[2,n]}})})},t.prototype.initializeLogoutRequest=function(e){this.logger.verbose("initializeLogoutRequest called",null===e||void 0===e?void 0:e.correlationId);var t=Object(r.a)({correlationId:this.correlationId||this.browserCrypto.createNewGuid()},e);if(e)if(e.logoutHint)this.logger.verbose("logoutHint has already been set in logoutRequest");else if(e.account){var n=this.getLogoutHintFromIdTokenClaims(e.account);n&&(this.logger.verbose("Setting logoutHint to login_hint ID Token Claim value for the account provided"),t.logoutHint=n)}else this.logger.verbose("logoutHint was not set and account was not passed into logout request, logoutHint will not be set");else this.logger.verbose("logoutHint will not be set since no logout request was configured");return e&&null===e.postLogoutRedirectUri?this.logger.verbose("postLogoutRedirectUri passed as null, not setting post logout redirect uri",t.correlationId):e&&e.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to uri set on logout request",t.correlationId),t.postLogoutRedirectUri=o.Y.getAbsoluteUrl(e.postLogoutRedirectUri,l.a.getCurrentUri())
2):null===this.config.auth.postLogoutRedirectUri?this.logger.verbose("postLogoutRedirectUri configured as null and no uri set on request, not passing post logout redirect",t.correlationId):this.config.auth.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to configured uri",t.correlationId),t.postLogoutRedirectUri=o.Y.getAbsoluteUrl(this.config.auth.postLogoutRedirectUri,l.a.getCurrentUri())):(this.logger.verbose("Setting postLogoutRedirectUri to current page",t.correlationId),t.postLogoutRedirectUri=o.Y.getAbsoluteUrl(l.a.getCurrentUri(),l.a.getCurrentUri())),t},t.prototype.getLogoutHintFromIdTokenClaims=function(e){var t=e.idTokenClaims;if(t){if(t.login_hint)return t.login_hint;this.logger.verbose("The ID Token Claims tied to the provided account do not contain a login_hint claim, logoutHint will not be added to logout request")}else this.logger.verbose("The provided account does not contain ID Token Claims, logoutHint will not be added to logout request");return null},t.prototype.createAuthCodeClient=function(e,t,n){return Object(r.b)(this,void 0,void 0,function(){var i;return Object(r.d)(this,function(r){switch(r.label){case 0:return this.performanceClient.addQueueMeasurement(o.E.StandardInteractionClientCreateAuthCodeClient,this.correlationId),this.performanceClient.setPreQueueTime(o.E.StandardInteractionClientGetClientConfiguration,this.correlationId),[4,this.getClientConfiguration(e,t,n)];case 1:return i=r.sent(),[2,new o.k(i,this.performanceClient)]}})})},t.prototype.getClientConfiguration=function(e,t,n){return Object(r.b)(this,void 0,void 0,function(){var i,c;return Object(r.d)(this,function(r){switch(r.label){case 0:return this.performanceClient.addQueueMeasurement(o.E.StandardInteractionClientGetClientConfiguration,this.correlationId),this.logger.verbose("getClientConfiguration called",this.correlationId),this.performanceClient.setPreQueueTime(o.E.StandardInteractionClientGetDiscoveredAuthority,this.correlationId),[4,this.getDiscoveredAuthority(t,n)];case 1:return i=r.sent(),c=this.config.system.loggerOptions,[2,{authOptions:{clientId:this.config.auth.clientId,authority:i,clientCapabilities:this.config.auth.clientCapabilities},systemOptions:{tokenRenewalOffsetSeconds:this.config.system.tokenRenewalOffsetSeconds,preventCorsPreflight:!0},loggerOptions:{loggerCallback:c.loggerCallback,piiLoggingEnabled:c.piiLoggingEnabled,logLevel:c.logLevel,correlationId:this.correlationId},cacheOptions:{claimsBasedCachingEnabled:this.config.cache.claimsBasedCachingEnabled},cryptoInterface:this.browserCrypto,networkInterface:this.networkClient,storageInterface:this.browserStorage,serverTelemetryManager:e,libraryInfo:{sku:a.c.MSAL_SKU,version:s.b,cpu:o.r.EMPTY_STRING,os:o.r.EMPTY_STRING},telemetry:this.config.telemetry}]}})})},t.prototype.validateAndExtractStateFromHash=function(e,t,n){if(this.logger.verbose("validateAndExtractStateFromHash called",n),!e.state)throw c.a.createHashDoesNotContainStateError();var r=u.a.extractBrowserRequestState(this.browserCrypto,e.state);if(!r)throw c.a.createUnableToParseStateError();if(r.interactionType!==t)throw c.a.createStateInteractionTypeMismatchError();return this.logger.verbose("Returning state from hash",n),e.state},t.prototype.getDiscoveredAuthority=function(e,t){var n;return Object(r.b)(this,void 0,void 0,function(){var i,a,s,c;return Object(r.d)(this,function(r){switch(r.label){case 0:return this.performanceClient.addQueueMeasurement(o.E.StandardInteractionClientGetDiscoveredAuthority,this.correlationId),this.logger.verbose("getDiscoveredAuthority called",this.correlationId),i=null===(n=this.performanceClient)||void 0===n?void 0:n.startMeasurement(o.E.StandardInteractionClientGetDiscoveredAuthority,this.correlationId),a={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata,skipAuthorityMetadataCache:this.config.auth.skipAuthorityMetadataCache},s=e||this.config.auth.authority,c=o.g.generateAuthority(s,t||this.config.auth.azureCloudOptions),this.logger.verbose("Creating discovered authority with configured authority",this.correlationId),this.performanceClient.setPreQueueTime(o.E.AuthorityFactoryCreateDiscoveredInstance,this.correlationId),[4,o.h.createDiscoveredInstance(c,this.config.system.networkClient,this.browserStorage,a,this.logger,this.performanceClient,this.correlationId).then(function(e){return i.endMeasurement({success:!0}),e}).catch(function(e){throw i.endMeasurement({errorCode:e.errorCode,subErrorCode:e.subError,success:!1}),e})];case 1:return[2,r.sent()]}})})},t.prototype.initializeAuthorizationRequest=function(e,t){return Object(r.b)(this,void 0,void 0,function(){var n,i,a,s,c,u,l;return Object(r.d)(this,function(d){switch(d.label){case 0:return this.performanceClient.addQueueMeasurement(o.E.StandardInteractionClientInitializeAuthorizationRequest,this.correlationId),this.logger.verbose("initializeAuthorizationRequest called",this.correlationId),n=this.getRedirectUri(e.redirectUri),i={interactionType:t},a=o.J.setRequestState(this.browserCrypto,e&&e.state||o.r.EMPTY_STRING,i),this.performanceClient.setPreQueueTime(o.E.InitializeBaseRequest,this.correlationId),c=[{}
2],[4,this.initializeBaseRequest(e)];case 1:return s=r.a.apply(void 0,[r.a.apply(void 0,c.concat([d.sent()])),{redirectUri:n,state:a,nonce:e.nonce||this.browserCrypto.createNewGuid(),responseMode:o.M.FRAGMENT}]),(u=e.account||this.browserStorage.getActiveAccount())&&(this.logger.verbose("Setting validated request account",this.correlationId),this.logger.verbosePii("Setting validated request account: "+u.homeAccountId,this.correlationId),s.account=u),o.S.isEmpty(s.loginHint)&&!u&&(l=this.browserStorage.getLegacyLoginHint())&&(s.loginHint=l),[2,s]}})})},t}(i.a)},function(e,t,n){"use strict";var r;n.d(t,"a",function(){return r}),function(e){e.INITIALIZE_START="msal:initializeStart",e.INITIALIZE_END="msal:initializeEnd",e.ACCOUNT_ADDED="msal:accountAdded",e.ACCOUNT_REMOVED="msal:accountRemoved",e.LOGIN_START="msal:loginStart",e.LOGIN_SUCCESS="msal:loginSuccess",e.LOGIN_FAILURE="msal:loginFailure",e.ACQUIRE_TOKEN_START="msal:acquireTokenStart",e.ACQUIRE_TOKEN_SUCCESS="msal:acquireTokenSuccess",e.ACQUIRE_TOKEN_FAILURE="msal:acquireTokenFailure",e.ACQUIRE_TOKEN_NETWORK_START="msal:acquireTokenFromNetworkStart",e.SSO_SILENT_START="msal:ssoSilentStart",e.SSO_SILENT_SUCCESS="msal:ssoSilentSuccess",e.SSO_SILENT_FAILURE="msal:ssoSilentFailure",e.ACQUIRE_TOKEN_BY_CODE_START="msal:acquireTokenByCodeStart",e.ACQUIRE_TOKEN_BY_CODE_SUCCESS="msal:acquireTokenByCodeSuccess",e.ACQUIRE_TOKEN_BY_CODE_FAILURE="msal:acquireTokenByCodeFailure",e.HANDLE_REDIRECT_START="msal:handleRedirectStart",e.HANDLE_REDIRECT_END="msal:handleRedirectEnd",e.POPUP_OPENED="msal:popupOpened",e.LOGOUT_START="msal:logoutStart",e.LOGOUT_SUCCESS="msal:logoutSuccess",e.LOGOUT_FAILURE="msal:logoutFailure",e.LOGOUT_END="msal:logoutEnd",e.RESTORE_FROM_BFCACHE="msal:restoreFromBFCache"}(r||(r={}))},,,,,,,,,function(e,t,n){"use strict";var r=n(710);n.d(t,"a",function(){return r.a});var o=n(711);n.d(t,"b",function(){return o.a});var i=n(712);n.d(t,"c",function(){return i.a});var a=n(713);n.d(t,"d",function(){return a.a})},function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n(0),o=n(53),i=n(11),a=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c={headers:new o.d({"x-kf-appname":"KnightFrank.OneCms.Search",Accept:"application/json","Content-Type":"application/json"})},u=function(){function e(e){this.configService=e}var t;return e.prototype.defaultHeaders=function(){return c.headers=c.headers.set("x-kf-host",this.configService.getLocale()),c.headers=c.headers.set("Accept-Language",this.configService.getLocale()),c.headers},e.prototype.defaultSearchParams=function(){var e=this.configService.getCountry(),t=window.location.hostname+"|"+this.configService.getLocale();e&&(t+="|"+e);var n=(new o.e).set("cachetoken",t);return"true"===new URLSearchParams(window.location.search).get("skipCache")&&(n=n.set("skipCache","true")),n},e=a([Object(r.Injectable)(),s("design:paramtypes",["function"==typeof(t=void 0!==i.a&&i.a)?t:Object])],e)}()},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(0),o=n(11),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=function(){function e(e){this.configService=e}var t;return e.prototype.transform=function(e,t,n,r,o){var i={};i.minimumIntegerDigits=+r.split(".")[0],i.minimumFractionDigits=+r.split(".")[1].split("-")[0],i.maximumFractionDigits=+r.split(".")[1].split("-")[1],i.currency=t,i.style="currency",i.currencyDisplay=n&&"symbol-narrow"!==n?n:n&&"symbol-narrow"===n?"narrowSymbol":"symbol",i.notation=null!==o&&o?"compact":"standard";var a=this.configService.language(),s=new Intl.NumberFormat(a,i).format(e);if("en"===a||a.startsWith("en-"))switch(t){case"FJD":return s.replace("FJD","FJ$");case"NZD":return s.replace("NZD","NZ$");case"GBP":return s.replace("GBP","£").replace(/\u00a0/g,"")}return s},e.prototype.getLocaleByCurrencyCode=function(e){if(this.configService.isDefaultOrUkDomain())return"en-gb";switch(e){case"GBP":return"en-gb";case"EUR":return"es";case"USD":return"en-us";case"AUD":return"en-au";case"BHD":return"ar-bh";case"BMD":return"bm";case"BWP":return"en-bw";case"CAD":return"en-ca";case"CHF":return"fr-ch";case"CLP":return"es-cl";case"CNY":return"zh-Hans";case"CZK":return"cs";case"DKK":return"da";case"HKD":return"en-hk";case"HUF":return"hu";case"IDR":return"id";case"INR":return"en-in";case"JPY":return"ja";case"KES":return"en-ke";case"KHR":return"km";case"KRW":return"ko";case"KWD":return"kw";case"KYD":return"ky";case"MAD":return"fr-ma";
2case"MWK":return"en-mw";case"MYR":return"ms";case"NGN":return"en-ng";case"NOK":return"nb";case"NZD":return"en-nz";case"OMR":return"om";case"PHP":return"en-ph";case"PLN":return"pl";case"QAR":return"ar-qa";case"RUB":return"ru";case"RWF":return"rw";case"SAR":return"ar-sa";case"SGD":return"sg";case"THB":return"th";case"TRY":return"tr";case"TWD":return"zh-Hant";case"TZS":return"en-tz";case"UAH":return"uk";case"UGX":return"ug";case"VND":return"vi";case"ZAR":return"en-za";case"ZMW":return"en-zm";case"ZWD":return"en-zw";default:return"en"}},e=i([Object(r.Pipe)({name:"kfCustomCurrency"}),a("design:paramtypes",["function"==typeof(t=void 0!==o.a&&o.a)?t:Object])],e)}()},function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r=n(12),o=n(45),i=n(22),a=n(17),s=n(7),c=function(){function e(e){var t=this,n=e?i.a.trimArrayEntries(Object(r.e)(e)):[],o=n?i.a.removeEmptyStringsFromArray(n):[];this.validateInputScopes(o),this.scopes=new Set,o.forEach(function(e){return t.scopes.add(e)})}return e.fromString=function(t){return new e((t||s.m.EMPTY_STRING).split(" "))},e.createSearchScopes=function(t){var n=new e(t);return n.containsOnlyOIDCScopes()?n.removeScope(s.m.OFFLINE_ACCESS_SCOPE):n.removeOIDCScopes(),n},e.prototype.validateInputScopes=function(e){if(!e||e.length<1)throw o.a.createEmptyScopesArrayError()},e.prototype.containsScope=function(t){var n=new e(this.printScopesLowerCase().split(" "));return!i.a.isEmpty(t)&&n.scopes.has(t.toLowerCase())},e.prototype.containsScopeSet=function(e){var t=this;return!(!e||e.scopes.size<=0)&&(this.scopes.size>=e.scopes.size&&e.asArray().every(function(e){return t.containsScope(e)}))},e.prototype.containsOnlyOIDCScopes=function(){var e=this,t=0;return s.t.forEach(function(n){e.containsScope(n)&&(t+=1)}),this.scopes.size===t},e.prototype.appendScope=function(e){i.a.isEmpty(e)||this.scopes.add(e.trim())},e.prototype.appendScopes=function(e){var t=this;try{e.forEach(function(e){return t.appendScope(e)})}catch(e){throw a.a.createAppendScopeSetError(e)}},e.prototype.removeScope=function(e){if(i.a.isEmpty(e))throw a.a.createRemoveEmptyScopeFromSetError(e);this.scopes.delete(e.trim())},e.prototype.removeOIDCScopes=function(){var e=this;s.t.forEach(function(t){e.scopes.delete(t)})},e.prototype.unionScopeSets=function(e){if(!e)throw a.a.createEmptyInputScopeSetError();var t=new Set;return e.scopes.forEach(function(e){return t.add(e.toLowerCase())}),this.scopes.forEach(function(e){return t.add(e.toLowerCase())}),t},e.prototype.intersectingScopeSets=function(e){if(!e)throw a.a.createEmptyInputScopeSetError();e.containsOnlyOIDCScopes()||e.removeOIDCScopes();var t=this.unionScopeSets(e),n=e.getScopeCount(),r=this.getScopeCount();return t.size<r+n},e.prototype.getScopeCount=function(){return this.scopes.size},e.prototype.asArray=function(){var e=[];return this.scopes.forEach(function(t){return e.push(t)}),e},e.prototype.printScopes=function(){return this.scopes?this.asArray().join(" "):s.m.EMPTY_STRING},e.prototype.printScopesLowerCase=function(){return this.printScopes().toLowerCase()},e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return a}),n.d(t,"b",function(){return s});var r=n(17),o=n(22),i=n(7);function a(e,t){if(o.a.isEmpty(e))throw r.a.createClientInfoEmptyError();try{var n=t.base64Decode(e);return JSON.parse(n)}catch(e){throw r.a.createClientInfoDecodingError(e.message)}}function s(e){if(o.a.isEmpty(e))throw r.a.createClientInfoDecodingError("Home account ID was empty.");var t=e.split(i.D.CLIENT_INFO_SEPARATOR,2);return{uid:t[0],utid:t.length<2?i.m.EMPTY_STRING:t[1]}}},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(17),o=n(22),i=function(){function e(t,n){if(o.a.isEmpty(t))throw r.a.createTokenNullOrEmptyError(t);this.rawToken=t,this.claims=e.extractTokenClaims(t,n)}return e.extractTokenClaims=function(e,t){var n=o.a.decodeAuthToken(e);try{var i=n.JWSPayload,a=t.base64Decode(i);return JSON.parse(a)}catch(e){throw r.a.createTokenParsingError(e)}},e.checkMaxAge=function(e,t){if(0===t||Date.now()-3e5>e+t)throw r.a.createMaxAgeTranspiredError()},e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r=n(9),o=n(14),i=n(6),a=n(123),s=n(15),c=function(){function e(e,t,n,r){this.logger=e,this.handshakeTimeoutMs=t,this.extensionId=r,this.resolvers=new Map,this.handshakeResolvers=new Map,this.responseId=0,this.messageChannel=new MessageChannel,this.windowListener=this.onWindowMessage.bind(this),this.performanceClient=n,this.handshakeEvent=n.startMeasurement(i.E.NativeMessageHandlerHandshake)}return e.prototype.sendMessage=function(e){return Object(r.b)(this,void 0,void 0,function(){var t,n=this;return Object(r.d)(this,function(r){return this.logger.trace("NativeMessageHandler - sendMessage called."),t={channel:o.n.CHANNEL_ID,extensionId:this.extensionId,responseId:this.responseId++,body:e},this.logger.trace("NativeMessageHandler - Sending request to browser extension"),this.logger.tracePii("NativeMessageHandler - Sending request to browser extension: "+JSON.stringify(t)),this.messageChannel.port1.postMessage(t),[2,new Promise(function(e,r){n.resolvers.set(t.responseId,{resolve:e,reject:r})})]})})},e.createProvider=function(t,n,i){return Object(r.b)(this,void 0,void 0,function(){var a,s;return Object(r.d)(this,function(r){switch(r.label){case 0:t.trace("NativeMessageHandler - createProvider called."),r.label=1;case 1:return r.trys.push([1,3,,5]),[4,(a=new e(t,n,i,o.n.PREFERRED_EXTENSION_ID)).sendHandshakeRequest
2()];case 2:return r.sent(),[2,a];case 3:return r.sent(),[4,(s=new e(t,n,i)).sendHandshakeRequest()];case 4:return r.sent(),[2,s];case 5:return[2]}})})},e.prototype.sendHandshakeRequest=function(){return Object(r.b)(this,void 0,void 0,function(){var e,t=this;return Object(r.d)(this,function(n){return this.logger.trace("NativeMessageHandler - sendHandshakeRequest called."),window.addEventListener("message",this.windowListener,!1),e={channel:o.n.CHANNEL_ID,extensionId:this.extensionId,responseId:this.responseId++,body:{method:o.o.HandshakeRequest}},this.handshakeEvent.addStaticFields({extensionId:this.extensionId,extensionHandshakeTimeoutMs:this.handshakeTimeoutMs}),this.messageChannel.port1.onmessage=function(e){t.onChannelMessage(e)},window.postMessage(e,window.origin,[this.messageChannel.port2]),[2,new Promise(function(n,r){t.handshakeResolvers.set(e.responseId,{resolve:n,reject:r}),t.timeoutId=window.setTimeout(function(){window.removeEventListener("message",t.windowListener,!1),t.messageChannel.port1.close(),t.messageChannel.port2.close(),t.handshakeEvent.endMeasurement({extensionHandshakeTimedOut:!0,success:!1}),r(s.a.createNativeHandshakeTimeoutError()),t.handshakeResolvers.delete(e.responseId)},t.handshakeTimeoutMs)})]})})},e.prototype.onWindowMessage=function(e){if(this.logger.trace("NativeMessageHandler - onWindowMessage called"),e.source===window){var t=e.data;if(t.channel&&t.channel===o.n.CHANNEL_ID&&(!t.extensionId||t.extensionId===this.extensionId)&&t.body.method===o.o.HandshakeRequest){this.logger.verbose(t.extensionId?"Extension with id: "+t.extensionId+" not installed":"No extension installed"),clearTimeout(this.timeoutId),this.messageChannel.port1.close(),this.messageChannel.port2.close(),window.removeEventListener("message",this.windowListener,!1);var n=this.handshakeResolvers.get(t.responseId);n&&(this.handshakeEvent.endMeasurement({success:!1,extensionInstalled:!1}),n.reject(s.a.createNativeExtensionNotInstalledError()))}}},e.prototype.onChannelMessage=function(e){this.logger.trace("NativeMessageHandler - onChannelMessage called.");var t=e.data,n=this.resolvers.get(t.responseId),r=this.handshakeResolvers.get(t.responseId);try{var s=t.body.method;if(s===o.o.Response){if(!n)return;var c=t.body.response;if(this.logger.trace("NativeMessageHandler - Received response from browser extension"),this.logger.tracePii("NativeMessageHandler - Received response from browser extension: "+JSON.stringify(c)),"Success"!==c.status)n.reject(a.a.createError(c.code,c.description,c.ext));else{if(!c.result)throw i.d.createUnexpectedError("Event does not contain result.");c.result.code&&c.result.description?n.reject(a.a.createError(c.result.code,c.result.description,c.result.ext)):n.resolve(c.result)}this.resolvers.delete(t.responseId)}else if(s===o.o.HandshakeResponse){if(!r)return;clearTimeout(this.timeoutId),window.removeEventListener("message",this.windowListener,!1),this.extensionId=t.extensionId,this.extensionVersion=t.body.version,this.logger.verbose("NativeMessageHandler - Received HandshakeResponse from extension: "+this.extensionId),this.handshakeEvent.endMeasurement({extensionInstalled:!0,success:!0}),r.resolve(),this.handshakeResolvers.delete(t.responseId)}}catch(t){this.logger.error("Error parsing response from WAM Extension"),this.logger.errorPii("Error parsing response from WAM Extension: "+t.toString()),this.logger.errorPii("Unable to parse "+e),n?n.reject(t):r&&r.reject(t)}},e.prototype.getExtensionId=function(){return this.extensionId},e.prototype.getExtensionVersion=function(){return this.extensionVersion},e.isNativeAvailable=function(e,t,n,r){if(t.trace("isNativeAvailable called"),!e.system.allowNativeBroker)return t.trace("isNativeAvailable: allowNativeBroker is not enabled, returning false"),!1;if(!n)return t.trace("isNativeAvailable: WAM extension provider is not initialized, returning false"),!1;if(r)switch(r){case i.f.BEARER:case i.f.POP:return t.trace("isNativeAvailable: authenticationScheme is supported, returning true"),!0;default:return t.trace("isNativeAvailable: authenticationScheme is not supported, returning false"),!1}return!0},e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n(0),o=n(89),i=n(8),a=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){return function(){this.annualServiceCharge=void 0,this.groundRent=void 0,this.depositPayable=void 0}}(),u=function(){function e(e){this.kfCustomCurrencyPipe=e}var t;return e.prototype.getPrice=function(e,t){void 0===t&&(t="symbol-narrow");var n=e.PriceMin>0&&e.PricePrefixId===i.FixedEnum.PricesFrom,r=Number.isInteger(e.PriceMin),o=Number.isInteger(e.PriceMax),a=e.PriceMin?this.kfCustomCurrencyPipe.transform(e.PriceMin,e.CurrencyCode,t,r?"1.0-0":"1.2-2",!1):null,s=e.PriceMax?this.kfCustomCurrencyPipe.transform(e.PriceMax,e.CurrencyCode,t,o?"1.0-0":"1.2-2",!1):null;return e.IsRange?a+" - "+s:n?a:s},e.prototype.getConvPrice=function(e,t){if(void 0===t&&(t="symbol-narrow"),e.ConvCurrencyCode&&e.ConvCurrencyCode!==e.CurrencyCode){var n=e.PriceMin>0&&e.PricePrefixId===i.FixedEnum.PricesFrom,r=e.ConvPriceMin?this.kfCustomCurrencyPipe.transform(e.ConvPriceMin,e.ConvCurrencyCode,t,"1.2-2",!1):null,o=e.ConvPriceMax?this.kfCustomCurrencyPipe.transform(e.ConvPriceMax,e.ConvCurrencyCode,t,"1.2-2",!1):null;return e.IsRange?r+" - "+o:n?r:o}return null},e.prototype.getShortLetPrice=function(e,t){if(void 0===t&&(t="symbol-narrow"),e.ShortLetPriceMin&&e.ShortLetPriceMin>0){var n=e.ShortLetPriceMin>0,r=this.kfCustomCurrencyPipe.transform(e.ShortLetPriceMin,e.CurrencyCode,t,"1.0-0",!1),o=this.kfCustomCurrencyPipe.transform(e.ShortLetPriceMax,e.CurrencyCode,t,"1.0-0",!1);return e.IsShortLetPriceRange?r+" - "+o:n?r:o}return null},e.prototype.getConvShortLetPrice=function(e,t){if(void 0===t&&(t="symbol-narrow"),e.ShortLetPriceMin&&e.ShortLetPriceMin>0&&e.ConvCurrencyCode&&e.ConvCurrencyCode!==e.CurrencyCode){var n=e.ConvShortLetPriceMin>0,r=this.kfCustomCurrencyPipe.transform(e.ConvShortLetPriceMin,e.ConvCurrencyCode,t,"1.2-2",!1),o=this.kfCustomCurrencyPipe.transform(e.ConvShortLetPriceMax,e.ConvCurrencyCode,t,"1.2-2",!1);return e.IsShortLetPriceRange?r+" - "+o:n?r:o}return null},e.prototype.getSecondaryRentalPrice=function(e,t){void 0===t&&(t="symbol-narrow");var n=e.PriceMin>0&&e.PricePrefixId===i.FixedEnum.PricesFrom;if(e.SecondaryRentalPriceMin&&e.SecondaryRentalPriceMin>0){var r=this.kfCustomCurrencyPipe.transform(e.SecondaryRentalPriceMin,e.CurrencyCode,t,"1.0-0",!1),o=this.kfCustomCurrencyPipe.transform(e.SecondaryRentalPriceMax,e.CurrencyCode,t,"1.0-0",!1);return e.IsRange?r+" - "+o:n?r:o}return null},e.prototype.getSecondaryShortLetPrice=function(e,t){void 0===t&&(t="symbol-narrow");var n=e.ShortLetPriceMin>0;if(e.SecondaryShortLetPriceMin&&e.SecondaryShortLetPriceMin>0){var r=this.kfCustomCurrencyPipe.transform(e.SecondaryShortLetPriceMin,e.CurrencyCode,t,"1.0-0",!1),o=this.kfCustomCurrencyPipe.transform(e.SecondaryShortLetPriceMax,e.CurrencyCode,t,"1.0-0",!1);return e.IsShortLetPriceRange?r+" - "+o:n?r:o}return null},e.prototype.getSaleableAreaPrice=function(e,t){if(void 0===t&&(t="symbol-narrow"),e.SaleableAreaMinPrice||e.SaleableAreaMaxPrice){var n=this.kfCustomCurrencyPipe.transform(e.SaleableAreaMinPrice,e.SaleableAreaCurrency,t,"1.0-0",!1),r=this.kfCustomCurrencyPipe.transform(e.SaleableAreaMaxPrice,e.SaleableAreaCurrency,t,"1.0-0",!1);return e.IsSaleableAreaPriceRange?n+" - "+r:e.SaleableAreaMinPrice>0?n:r}return null},e.prototype.getConvSaleableAreaPrice=function(e,t){if(void 0===t&&(t="symbol-narrow"),e.SaleableAreaMinPrice||e.SaleableAreaMaxPrice){var n=this.kfCustomCurrencyPipe.transform(e.ConvSaleableAreaMinPrice,e.ConvCurrencyCode,t,"1.2-2",!1),r=this.kfCustomCurrencyPipe.transform(e.ConvSaleableAreaMaxPrice,e.ConvCurrencyCode,t,"1.2-2",!1);if(e.ConvCurrencyCode&&e.ConvCurrencyCode!==e.SaleableAreaCurrency)return e.IsSaleableAreaPriceRange?n+" - "+r:e.ConvSaleableAreaMinPrice>0?n:r}return null},e.prototype.getGrossAreaPrice=function(e){if(e.GrossAreaMinPrice||e.GrossAreaMaxPrice){var t=this.kfCustomCurrencyPipe.transform(e.GrossAreaMinPrice,e.GrossAreaCurrency,"symbol-narrow","1.0-0",!1),n=this.kfCustomCurrencyPipe.transform(e.GrossAreaMaxPrice,e.GrossAreaCurrency,"symbol-narrow","1.0-0",!1);return e.IsGrossAreaPriceRange?t+" - "+n:e.GrossAreaMinPrice>0?t:n}
2return null},e.prototype.getConvGrossAreaPrice=function(e){if(e.GrossAreaMinPrice||e.GrossAreaMaxPrice){var t=this.kfCustomCurrencyPipe.transform(e.ConvGrossAreaMinPrice,e.ConvCurrencyCode,"symbol-narrow","1.2-2",!1),n=this.kfCustomCurrencyPipe.transform(e.ConvGrossAreaMaxPrice,e.ConvCurrencyCode,"symbol-narrow","1.2-2",!1);if(e.ConvCurrencyCode&&e.ConvCurrencyCode!==e.GrossAreaCurrency)return e.IsGrossAreaPriceRange?t+" - "+n:e.ConvGrossAreaMinPrice>0?t:n}return null},e.prototype.getConvAmenityPrices=function(e){var t=new c;return e.AnnualServiceCharge>0&&(t.annualServiceCharge=null==e.ConvAnnualServiceChargeFormatted?e.AnnualServiceChargeFormatted:e.ConvAnnualServiceChargeFormatted),e.LeaseholdGroundRent>0&&(t.groundRent=null==e.ConvLeaseholdGroundRentFormatted?e.LeaseholdGroundRentFormatted:e.ConvLeaseholdGroundRentFormatted),e.DepositPayable>0&&(t.depositPayable=null==e.ConvDepositPayableFormatted?e.DepositPayableFormatted:e.ConvDepositPayableFormatted),t},e=a([Object(r.Injectable)(),s("design:paramtypes",["function"==typeof(t=void 0!==o.a&&o.a)?t:Object])],e)}()},,,function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(0),o=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},i=function(){function e(){}return e.prototype.getCookie=function(e){for(var t=e+"=",n=0,r=decodeURIComponent(document.cookie).split(";");n<r.length;n++){for(var o=r[n];" "===o.charAt(0);)o=o.substring(1);if(0===o.indexOf(t))return o.substring(t.length,o.length)}return""},e.prototype.setCookie=function(e,t,n){var r=e+"="+t+";";if(0!==n){var o=new Date;o.setTime(o.getTime()+24*n*60*60*1e3),r+="expires="+o.toUTCString()+";"}r+="path=/",document.cookie=r},e.prototype.existsCookie=function(e){for(var t=e+"=",n=0,r=decodeURIComponent(document.cookie).split(";");n<r.length;n++){for(var o=r[n];" "===o.charAt(0);)o=o.substring(1);if(0===o.indexOf(t))return!0}return!1},e.prototype.deleteCookie=function(e){var t=new Date;t.setTime(t.getTime()-864e5);var n="expires="+t.toUTCString();document.cookie=e+"=;"+n+";path=/"},e=o([Object(r.Injectable)()],e)}()},function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n(0),o=n(38),i=n(87),a=n(61),s=n(32),c=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},u=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(e,t){this.locationApi=e,this.translateService=t,this.allLocations=this.translateService.translate("ALL_LOCATIONS")}var t,n;return e.prototype.getLocation=function(e){return"string"==typeof e&&e?e.startsWith(a.a)?Object(o.n)({Name:this.translateService.translate("VIEW_PROPERTIES_CONTAINING",{term:e.substring(a.a.length)}),Slug:e,IsFreetextOrPostcode:!0}):e.startsWith(a.b)?Object(o.n)({IsFreetextOrPostcode:!0}):e===this.allLocations?Object(o.n)({}):this.locationApi.locationGetLocation(e):(console.warn("LocationService.getLocation called with invalid slug:",e),Object(o.n)({}))},e.prototype.getLocationByIsoCode=function(e){return this.locationApi.locationGetLocationByIsoCode(e)},e.prototype.getAutocomplete=function(e,t){return this.locationApi.locationGetAutocomplete(e,t,6)},e=c([Object(r.Injectable)(),u("design:paramtypes",["function"==typeof(t=void 0!==i.b&&i.b)?t:Object,"function"==typeof(n=void 0!==s.a&&s.a)?n:Object])],e)}()},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(0),o=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},i=function(){function e(){this.id=0}return e.prototype.getUid=function(){return this.id++},e=o([Object(r.Injectable)()],e)}()},,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"b",function(){return p}),n.d(t,"a",function(){return h});var r=n(0),o=n(11),i=n(32),a=n(125),s=n(89),c=n(8),u=this&&this.__assign||function(){return(u=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},l=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},d=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(){function e(){}return e.Managed="1004",e.Investment="1354",e}(),h=function(){function e(e,t,n,r){this.kfCustomCurrencyPipe=e,this.translateService=t,this.currenciesService=n,this.config=r,this.translations=this.translateService.getTranslations()}var t,n,h,f;return e.prototype.getDefaultFloorAreaUnit=function(){return this.config.floorAreaUnit()},e.prototype.getDefaultLandAreaUnit=function(){return this.config.landAreaUnit()},e.prototype.getOrderingOptions=function(e){var t=this;return new Promise(function(n){var r=u({},t.config.order()),o=-1;if(e){for(i=0;i<r.Items.length;++i)r.Items[i].Value.endsWith("relevance")&&(o=i);o>-1&&r.Items.splice(o,1),r.Default="rank"}else{for(var i=0;i<r.Items.length;++i)r.Items[i].Value.endsWith("rank")&&(o=i);o>-1&&r.Items.splice(o,1)}r.Items=t.translate(r.Items),n(r)})},e.prototype.getRadiusOptions=function(){var e=this;return new Promise(function(t){t({Default:e.config.radius().Default,Items:e.translate(e.config.radius().Items)})})},e.prototype.getFurnishingOptions=function(){var e=this;return new Promise(function(t){t({Default:null,Items:e.translate([{Value:null,Label:"Any"},{Value:"furnished",Label:"Furnished"},{Value:"unfurnished",Label:"Unfurnished"}])})})},e.prototype.getBedRoomsOptions=function(e){var t=this;return new Promise(function(n){n({Default:"0",Items:t.translate([{Value:"0",Label:e?"No Maximum":"No Minimum"},{Value:"studio",Label:"Studio"},{Value:"1",Label:"1"},{Value:"2",Label:"2"},{Value:"3",Label:"3"},{Value:"4",Label:"4"},{Value:"5",Label:"5"},{Value:"6",Label:"6"}])})})},e.prototype.getBedRoomsOptionsForSingleSearch=function(){var e=this;return new Promise(function(t){t({Default:"0",Items:e.translate([{Value:"0",Label:"Bedrooms"},{Value:"studio",Label:"Studio"},{Value:"1",Label:"1"},{Value:"2",Label:"2"},{Value:"3",Label:"3"},{Value:"4",Label:"4"},{Value:"5",Label:"5"},{Value:"6",Label:"6"}])})})},e.prototype.getLettingTypeOptions=function(){var e=this;return new Promise(function(t){t({Default:"0",Items:e.translate([{Value:"any",Label:e.translateService.translate("LBL_LettingType_ANY")},{Value:"short",Label:e.translateService.translate("LBL_LettingType_SHORT")},{Value:"long",Label:e.translateService.translate("LBL_LettingType_LONG")}])})})},e.prototype.getResLetAvailabilityOptions=function(){var e=this;return new Promise(function(t){t({Default:"",Items:e.translate([{Value:c.AvailabilityUrlEnum.AvailableOrSold,Label:e.translateService.translate("All properties")},{Value:c.AvailabilityUrlEnum.Available,Label:e.translateService.translate("Available")},{Value:c.AvailabilityUrlEnum.Sold,Label:e.translateService.translate("Let")}])})})},e.prototype.getResLetMoreOptions=function(){var e=this;return new Promise(function(t){t({Default:"",Items:e.translate([{Value:p.Managed,Label:e.translateService.translate("Managed")}])})})},e.prototype.getResSaleAvailabilityOptions=function(){var e=this;return new Promise(function(t){t({Default:"",Items:e.translate([{Value:c.AvailabilityUrlEnum.AvailableOrSold,Label:e.translateService.translate("All properties")},{Value:c.AvailabilityUrlEnum.Available,Label:e.translateService.translate("Available")},{Value:c.AvailabilityUrlEnum.Sold,Label:e.translateService.translate("Sold")}])})})},e.prototype.getComLetAvailabilityOptions=function(){var e=this;return new Promise(function(t){t({Default:"",Items:e.translate([{Value:c.AvailabilityUrlEnum.AvailableOrSold,Label:e.translateService.translate("All properties")},{Value:c.AvailabilityUrlEnum.Available,Label:e.translateService.translate("Available")},{Value:c.AvailabilityUrlEnum.Sold,Label:e.translateService.translate("Let")}])})})},e.prototype.getComSaleAvailabilityOptions=function(){var e=this;return new Promise(function(t){t({Default:"",Items:e.translate([{Value:c.AvailabilityUrlEnum.AvailableOrSold,Label:e.translateService.translate("All properties")},{Value:c.AvailabilityUrlEnum.Available,Label:e.translateService.translate("Available")},{Value:c.AvailabilityUrlEnum.Sold,Label:e.translateService.translate("Sold")}])})})},e.prototype.getComSaleMoreOptions=function(){var e=this;return new Promise(function(t){t({Default:"",Items:e.translate([{Value:p.Investment,Label:e.translateService.translate("Investment")}])})})},e.prototype.getBathRoomsOptions=function(){var e=this;return new Promise(function(t){t({Default:"0",Items:e.translate([{Value:"0",Label:"Any"},{Value:"1",Label:"1+"},{Value:"2",Label:"2+"},{Value:"3",Label:"3+"},{Value:"4",Label:"4+"},{Value:"5",Label:"5+"}])})})},e.prototype.getCurrencyOptions=function(){var e=this;return new Promise(function(t){var n={Default:e.config.currencies().Default,Items:[]};e.currenciesService.get().then(function(e){for(var r=0,o=e;r<o.length;r++){var i=o[r],a=""+i.Name;n.Items.push({Value:i.Code,Label:a})}t(n)})})},e.prototype.getDivisionOptions=function(){var e=this;return new Promise(function(t){t({Default:c.DivisionEnum.Residential.toString(),Items:[{Value:c.DivisionEnum.Residential.toString(),Label:e.translations.RESIDENTIAL},{Value:c.DivisionEnum.Commercial.toString(),Label:e.translations.COMMERCIAL}]})})},e.prototype.getPriceOptions=function(e,t,n,r,o,i,a){var s=this;return new Promise(function(u){var l=[],d={spain:"ES","hong-kong":"HK","united-arab-emirates":"AE"};var p=function(e){for(var t in d)if(e.startsWith(t))return d[t];return null}(r);if(p&&-1!==n.Items.findIndex(function(e){return e.Isocode===p})){var h=[],f=n.Items.find(function(e){return e.Isocode===p});
2if(e===c.TransactionEnum.Sales&&t===c.DivisionEnum.Residential?h=f.PriceFilterRanges.ResBuy:e===c.TransactionEnum.Lettings&&t===c.DivisionEnum.Residential?h=f.PriceFilterRanges.ResLet:e===c.TransactionEnum.Sales&&t===c.DivisionEnum.Commercial?h=f.PriceFilterRanges.ComBuy:e===c.TransactionEnum.Lettings&&t===c.DivisionEnum.Commercial&&(h=f.PriceFilterRanges.ComLet),null!==h&&0!==h.length){l.push({Value:"0",Label:a?"No Maximum":"No Minimum"});for(var m=0;m<h.length;m++)l.push({Value:h[m],Label:s.kfCustomCurrencyPipe.transform(h[m],o,"symbol-narrow","1.0-0",!1)})}}if(null===l||0===l.length){h=void 0;h=e===c.TransactionEnum.Sales?c.NspPrice.priceRangeSales:t===c.DivisionEnum.Residential?c.NspPrice.priceRangeResidentialLettings:c.NspPrice.priceRangeCommercialLettings;for(var g=[],y=0,v=0;v<h.length;v++)for(y=h[v].min;y<=h[v].max&&Math.max.apply(Math,l.map(function(e){return parseInt(e.Value)}))<=i;){var b=g.length>=1?g.reduce(function(e,t){return Math.max(e,t)}):0;g.push(0===y?0:h[v].value+b),0===h[v].value?l.push({Value:i.toString(),Label:s.kfCustomCurrencyPipe.transform(i,o,"symbol-narrow","1.0-0",!1)}):0===y?l.push({Value:"0",Label:a?"No Maximum":"No Minimum"}):l.push({Value:h[v].value+b,Label:s.kfCustomCurrencyPipe.transform(h[v].value+b,o,"symbol-narrow","1.0-0",!1)}),y++}}u({Default:"0",Items:s.translate(l)})})},e.prototype.getFloorAreaOptions=function(e,t){var n=this;return new Promise(function(r){for(var o=c.NspFloorArea.floorAreaRange,i=[],a=[],s=0,u=0;u<o.length;u++)for(s=o[u].min;s<=o[u].max&&Math.max.apply(Math,i.map(function(e){return parseInt(e.Value)}))<=e;){var l=a.length>=1?a.reduce(function(e,t){return Math.max(e,t)}):0;a.push(0===s?0:o[u].value+l),0===o[u].value?i.push({Value:e.toString(),Label:e.toString()}):0===s?i.push({Value:"0",Label:t?"No Maximum":"No Minimum"}):i.push({Value:o[u].value+l,Label:o[u].value+l}),s++}r({Default:"0",Items:n.translate(i)})})},e.prototype.getLandAreaOptions=function(e,t){var n=this;return new Promise(function(r){for(var o=c.NspLandArea.landAreaRange,i=[],a=[],s=0,u=0;u<o.length;u++)for(s=o[u].min;s<=o[u].max&&Math.max.apply(Math,i.map(function(e){return parseInt(e.Value)}))<=e;){var l=a.length>=1?a.reduce(function(e,t){return Math.max(e,t)}):0;a.push(0===s?0:o[u].value+l),0===o[u].value?i.push({Value:e.toString(),Label:e.toString()}):0===s?i.push({Value:"0",Label:t?"No Maximum":"No Minimum"}):i.push({Value:o[u].value+l,Label:o[u].value+l}),s++}r({Default:"0",Items:n.translate(i)})})},e.prototype.translate=function(e){for(var t in e)e[t].Label=this.translateService.translate(e[t].Label);return e},e=l([Object(r.Injectable)(),d("design:paramtypes",["function"==typeof(t=void 0!==s.a&&s.a)?t:Object,"function"==typeof(n=void 0!==i.a&&i.a)?n:Object,"function"==typeof(h=void 0!==a.a&&a.a)?h:Object,"function"==typeof(f=void 0!==o.a&&o.a)?f:Object])],e)}()},function(e,t,n){"use strict";n.d(t,"a",function(){return d}),n.d(t,"b",function(){return l}),n.d(t,"c",function(){return p}),n.d(t,"d",function(){return y}),n.d(t,"e",function(){return v}),n.d(t,"f",function(){return b}),n.d(t,"g",function(){return E}),n.d(t,"h",function(){return S}),n.d(t,"i",function(){return g});var r=n(0),o=n(24),i=n(199),a=n(38),s=n(23),c=n(52),u=n(337);const l=new r.InjectionToken("MSAL_INSTANCE"),d=new r.InjectionToken("MSAL_GUARD_CONFIG"),p=new r.InjectionToken("MSAL_INTERCEPTOR_CONFIG"),h=new r.InjectionToken("MSAL_BROADCAST_CONFIG"),f="@azure/msal-angular",m="2.5.13";class g{constructor(e,t){this.instance=e,this.location=t;const n=this.location.path(!0).split("#").pop();n&&(this.redirectHash=`#${n}`),this.instance.initializeWrapperLibrary(i.k.Angular,m)}initialize(){return Object(a.k)(this.instance.initialize())}acquireTokenPopup(e){return Object(a.k)(this.instance.acquireTokenPopup(e))}acquireTokenRedirect(e){return Object(a.k)(this.instance.acquireTokenRedirect(e))}acquireTokenSilent(e){return Object(a.k)(this.instance.acquireTokenSilent(e))}handleRedirectObservable(e){return Object(a.k)(this.instance.handleRedirectPromise(e||this.redirectHash))}loginPopup(e){return Object(a.k)(this.instance.loginPopup(e))}loginRedirect(e){return Object(a.k)(this.instance.loginRedirect(e))}logout(e){return Object(a.k)(this.instance.logout(e))}logoutRedirect(e){return Object(a.k)(this.instance.logoutRedirect(e))}logoutPopup(e){return Object(a.k)(this.instance.logoutPopup(e))}ssoSilent(e){return Object(a.k)(this.instance.ssoSilent(e))}getLogger(){return this.logger||(this.logger=this.instance.getLogger().clone(f,m)),this.logger}setLogger(e){this.logger=e.clone(f,m),this.instance.setLogger(e)}}g.decorators=[{type:r.Injectable}],g.ctorParameters=(()=>[{type:void 0,decorators:[{type:r.Inject,args:[l]}]},{type:o.Location}]);class y{constructor(e,t,n){this.msalInstance=e,this.authService=t,this.msalBroadcastConfig=n,this.msalBroadcastConfig&&this.msalBroadcastConfig.eventsToReplay>0?(this.authService.getLogger().verbose(`BroadcastService - replayPastEvents set on BroadcastConfig, replaying the last ${this.msalBroadcastConfig.eventsToReplay}
2 events`),this._msalSubject=new a.e(this.msalBroadcastConfig.eventsToReplay)):this._msalSubject=new a.f,this.msalSubject$=this._msalSubject.asObservable(),this._inProgress=new a.a(i.d.Startup),this.inProgress$=this._inProgress.asObservable(),this.msalInstance.addEventCallback(e=>{this._msalSubject.next(e);const t=i.c.getInteractionStatusFromEvent(e,this._inProgress.value);null!==t&&(this.authService.getLogger().verbose(`BroadcastService - ${e.eventType} results in setting inProgress from ${this._inProgress.value} to ${t}`),this._inProgress.next(t))})}}y.decorators=[{type:r.Injectable}],y.ctorParameters=(()=>[{type:void 0,decorators:[{type:r.Inject,args:[l]}]},{type:g},{type:void 0,decorators:[{type:r.Optional},{type:r.Inject,args:[h]}]}]);class v{constructor(e,t,n,r,o){this.msalGuardConfig=e,this.msalBroadcastService=t,this.authService=n,this.location=r,this.router=o,this.msalBroadcastService.inProgress$.subscribe()}parseUrl(e){return this.router.parseUrl(e)}getDestinationUrl(e){this.authService.getLogger().verbose("Guard - getting destination url");const t=document.getElementsByTagName("base"),n=this.location.normalize(t.length?t[0].href:window.location.origin),r=this.location.prepareExternalUrl(e);return r.startsWith("#")?(this.authService.getLogger().verbose("Guard - destination by hash routing"),`${n}/${r}`):`${n}${e}`}loginInteractively(e){const t="function"==typeof this.msalGuardConfig.authRequest?this.msalGuardConfig.authRequest(this.authService,e):Object.assign({},this.msalGuardConfig.authRequest);if(this.msalGuardConfig.interactionType===i.e.Popup)return this.authService.getLogger().verbose("Guard - logging in by popup"),this.authService.loginPopup(t).pipe(Object(c.j)(e=>(this.authService.getLogger().verbose("Guard - login by popup successful, can activate, setting active account"),this.authService.instance.setActiveAccount(e.account),!0)));this.authService.getLogger().verbose("Guard - logging in by redirect");const n=this.getDestinationUrl(e.url);return this.authService.loginRedirect(Object.assign({redirectStartPage:n},t)).pipe(Object(c.j)(()=>!1))}activateHelper(e){if(this.msalGuardConfig.interactionType!==i.e.Popup&&this.msalGuardConfig.interactionType!==i.e.Redirect)throw new i.a("invalid_interaction_type","Invalid interaction type provided to MSAL Guard. InteractionType.Popup or InteractionType.Redirect must be provided in the MsalGuardConfiguration");if(this.authService.getLogger().verbose("MSAL Guard activated"),"undefined"==typeof window)return this.authService.getLogger().info("Guard - window is undefined, MSAL does not support server-side token acquisition"),Object(a.n)(!0);if(i.j.hashContainsKnownProperties(window.location.hash)&&i.b.isInIframe()&&!this.authService.instance.getConfiguration().system.allowRedirectInIframe)return this.authService.getLogger().warning("Guard - redirectUri set to page with MSAL Guard. It is recommended to not set redirectUri to a page that requires authentication."),Object(a.n)(!1);this.msalGuardConfig.loginFailedRoute&&(this.loginFailedRoute=this.parseUrl(this.msalGuardConfig.loginFailedRoute));const t=this.location.path(!0);return this.authService.handleRedirectObservable().pipe(Object(c.c)(()=>{if(!this.authService.instance.getAllAccounts().length)return e?(this.authService.getLogger().verbose("Guard - no accounts retrieved, log in required to activate"),this.loginInteractively(e)):(this.authService.getLogger().verbose("Guard - no accounts retrieved, no state, cannot load"),Object(a.n)(!1));if(this.authService.getLogger().verbose("Guard - at least 1 account exists, can activate or load"),e){const n=this.includesCode(e.url),r=!!e.root&&!!e.root.fragment&&this.includesCode(`#${e.root.fragment}`),o=0===this.location.prepareExternalUrl(e.url).indexOf("#");if(n&&(r||o))return this.authService.getLogger().info("Guard - Hash contains known code response, stopping navigation."),t.indexOf("#")>-1?Object(a.n)(this.parseUrl(this.location.path())):Object(a.n)(this.parseUrl(""))}return Object(a.n)(!0)}),Object(c.a)(t=>(this.authService.getLogger().error("Guard - error while logging in, unable to activate"),this.authService.getLogger().errorPii(`Guard - error: ${t.message}`),this.loginFailedRoute&&parseInt(r.VERSION.major,10)>9&&e?(this.authService.getLogger().verbose("Guard - loginFailedRoute set, redirecting"),Object(a.n)(this.loginFailedRoute)):Object(a.n)(!1))))}includesCode(e){return e.lastIndexOf("/code")>-1&&e.lastIndexOf("/code")===e.length-"/code".length||e.indexOf("#code=")>-1||e.indexOf("&code=")>-1}canActivate(e,t){return this.authService.getLogger().verbose("Guard - canActivate"),this.activateHelper(t)}canActivateChild(e,t){return this.authService.getLogger().verbose("Guard - canActivateChild"),this.activateHelper(t)}canLoad(){return this.authService.getLogger().verbose("Guard - canLoad"),this.activateHelper()}}v.decorators=[{type:r.Injectable}],v.ctorParameters=(()=>[{type:void 0,decorators:[{type:r.Inject,args:[d]}]}
2,{type:y},{type:g},{type:o.Location},{type:s.g}]);class b{constructor(e,t,n,r,o){this.msalInterceptorConfig=e,this.authService=t,this.location=n,this.msalBroadcastService=r,this._document=o}intercept(e,t){if(this.msalInterceptorConfig.interactionType!==i.e.Popup&&this.msalInterceptorConfig.interactionType!==i.e.Redirect)throw new i.a("invalid_interaction_type","Invalid interaction type provided to MSAL Interceptor. InteractionType.Popup, InteractionType.Redirect must be provided in the msalInterceptorConfiguration");this.authService.getLogger().verbose("MSAL Interceptor activated");const n=this.getScopesForEndpoint(e.url,e.method);if(!n||0===n.length)return this.authService.getLogger().verbose("Interceptor - no scopes for endpoint"),t.handle(e);let r;this.authService.instance.getActiveAccount()?(this.authService.getLogger().verbose("Interceptor - active account selected"),r=this.authService.instance.getActiveAccount()):(this.authService.getLogger().verbose("Interceptor - no active account, fallback to first account"),r=this.authService.instance.getAllAccounts()[0]);const o="function"==typeof this.msalInterceptorConfig.authRequest?this.msalInterceptorConfig.authRequest(this.authService,e,{account:r}):Object.assign(Object.assign({},this.msalInterceptorConfig.authRequest),{account:r});return this.authService.getLogger().info(`Interceptor - ${n.length} scopes found for endpoint`),this.authService.getLogger().infoPii(`Interceptor - [${n}] scopes found for ${e.url}`),this.acquireToken(o,n,r).pipe(Object(c.p)(n=>{this.authService.getLogger().verbose("Interceptor - setting authorization headers");const r=e.headers.set("Authorization",`Bearer ${n.accessToken}`),o=e.clone({headers:r});return t.handle(o)}))}acquireToken(e,t,n){return this.authService.acquireTokenSilent(Object.assign(Object.assign({},e),{scopes:t,account:n})).pipe(Object(c.a)(()=>(this.authService.getLogger().error("Interceptor - acquireTokenSilent rejected with error. Invoking interaction to resolve."),this.msalBroadcastService.inProgress$.pipe(Object(c.q)(1),Object(c.p)(r=>r===i.d.None?this.acquireTokenInteractively(e,t):this.msalBroadcastService.inProgress$.pipe(Object(c.f)(e=>e===i.d.None),Object(c.q)(1),Object(c.p)(()=>this.acquireToken(e,t,n))))))),Object(c.p)(n=>n.accessToken?Object(a.n)(n):(this.authService.getLogger().error("Interceptor - acquireTokenSilent resolved with null access token. Known issue with B2C tenants, invoking interaction to resolve."),this.msalBroadcastService.inProgress$.pipe(Object(c.f)(e=>e===i.d.None),Object(c.q)(1),Object(c.p)(()=>this.acquireTokenInteractively(e,t))))))}acquireTokenInteractively(e,t){if(this.msalInterceptorConfig.interactionType===i.e.Popup)return this.authService.getLogger().verbose("Interceptor - error acquiring token silently, acquiring by popup"),this.authService.acquireTokenPopup(Object.assign(Object.assign({},e),{scopes:t}));this.authService.getLogger().verbose("Interceptor - error acquiring token silently, acquiring by redirect");const n=window.location.href;return this.authService.acquireTokenRedirect(Object.assign(Object.assign({},e),{scopes:t,redirectStartPage:n})),a.b}getScopesForEndpoint(e,t){this.authService.getLogger().verbose("Interceptor - getting scopes for endpoint");const n=this.location.normalize(e),r=Array.from(this.msalInterceptorConfig.protectedResourceMap.keys()),o=this.matchResourcesToEndpoint(r,n);return o.absoluteResources.length>0?this.matchScopesToEndpoint(this.msalInterceptorConfig.protectedResourceMap,o.absoluteResources,t):o.relativeResources.length>0?this.matchScopesToEndpoint(this.msalInterceptorConfig.protectedResourceMap,o.relativeResources,t):null}matchResourcesToEndpoint(e,t){const n={absoluteResources:[],relativeResources:[]};return e.forEach(e=>{const r=this.location.normalize(e);i.i.matchPattern(r,t)&&n.absoluteResources.push(e);const o=this.getAbsoluteUrl(e),a=new i.j(o).getUrlComponents(),s=this.getAbsoluteUrl(t),c=new i.j(s).getUrlComponents(),u=a.QueryString?`${a.AbsolutePath}?${a.QueryString}`:this.location.normalize(a.AbsolutePath);a.HostNameAndPort===c.HostNameAndPort&&i.i.matchPattern(u,s)&&""!==u&&"/*"!==u&&n.relativeResources.push(e)}),n}getAbsoluteUrl(e){const t=this._document.createElement("a");return t.href=e,t.href}matchScopesToEndpoint(e,t,n){const r=[];return t.forEach(t=>{const o=[],i=e.get(t);
2null!==i?(i.forEach(e=>{if("string"==typeof e)o.push(e);else{const t=n.toLowerCase();e.httpMethod.toLowerCase()===t&&(null===e.scopes?r.push(null):e.scopes.forEach(e=>{o.push(e)}))}}),o.length>0&&r.push(o)):r.push(null)}),r.length>0?(r.length>1&&this.authService.getLogger().warning("Interceptor - More than 1 matching scopes for endpoint found."),r[0]):null}}b.decorators=[{type:r.Injectable}],b.ctorParameters=(()=>[{type:void 0,decorators:[{type:r.Inject,args:[p]}]},{type:g},{type:o.Location},{type:y},{type:void 0,decorators:[{type:r.Inject,args:[o.DOCUMENT]}]}]);class S{constructor(e){this.authService=e}ngOnInit(){this.authService.getLogger().verbose("MsalRedirectComponent activated"),this.authService.initialize().pipe(Object(c.c)(()=>this.authService.handleRedirectObservable())).subscribe()}}S.decorators=[{type:r.Component,args:[{selector:"app-redirect",template:""}]}],S.ctorParameters=(()=>[{type:g}]);class E{static forRoot(e,t,n){return{ngModule:E,providers:[{provide:l,useValue:e},{provide:d,useValue:t},{provide:p,useValue:n},g]}}}E.decorators=[{type:r.NgModule,args:[{declarations:[S],imports:[o.CommonModule],providers:[v,y]}]}];class C extends i.g{constructor(e,t,n){super(),this.authService=e,this.router=t,this.location=n}navigateInternal(e,t){const n=Object.create(null,{navigateInternal:{get:()=>super.navigateInternal}});return Object(u.a)(this,void 0,void 0,function*(){if(this.authService.getLogger().trace("MsalCustomNavigationClient called"),this.authService.getLogger().verbose("MsalCustomNavigationClient - navigating"),this.authService.getLogger().verbosePii(`MsalCustomNavigationClient - navigating to url: ${e}`),t.noHistory)return n.navigateInternal.call(this,e,t);{const n=new i.j(e).getUrlComponents(),r=n.QueryString?`${n.AbsolutePath}?${n.QueryString}`:this.location.normalize(n.AbsolutePath);this.router.navigateByUrl(r,{replaceUrl:t.noHistory})}return Promise.resolve(t.noHistory)})}}C.decorators=[{type:r.Injectable}],C.ctorParameters=(()=>[{type:g},{type:s.g},{type:o.Location}])},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(12),o=function(e){function t(n,r,o){var i=e.call(this,n,r,o)||this;return i.name="ServerError",Object.setPrototypeOf(i,t.prototype),i}return Object(r.c)(t,e),t}(n(44).a)},function(e,t,n){"use strict";var r;n.d(t,"a",function(){return r}),function(e){e.HOME_ACCOUNT_ID="home_account_id",e.UPN="UPN"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",function(){return d});var r=n(9),o={code:"redirect_uri_empty",desc:"A redirect URI is required for all calls, and none has been set."},i={code:"post_logout_uri_empty",desc:"A post logout redirect has not been set."},a={code:"storage_not_supported",desc:"Given storage configuration option was not supported."},s={code:"no_redirect_callbacks",desc:"No redirect callbacks have been set. Please call setRedirectCallbacks() with the appropriate function arguments before continuing. More information is available here: https://github.com/AzureAD/microsoft-authentication-library-for-js/wiki/MSAL-basics."},c={code:"stubbed_public_client_application_called",desc:"Stub instance of Public Client Application was called. If using msal-react, please ensure context is not used without a provider. For more visit: aka.ms/msaljs/browser-errors"},u={code:"in_mem_redirect_unavailable",desc:"Redirect cannot be supported. In-memory storage was selected and storeAuthStateInCookie=false, which would cause the library to be unable to handle the incoming hash. If you would like to use the redirect API, please use session/localStorage or set storeAuthStateInCookie=true."},l={code:"entropy_not_provided",desc:"The available browser crypto interface requires entropy set via system.cryptoOptions.entropy configuration option."},d=function(e){function t(n,r){var o=e.call(this,n,r)||this;return o.name="BrowserConfigurationAuthError",Object.setPrototypeOf(o,t.prototype),o}return Object(r.c)(t,e),t.createRedirectUriEmptyError=function(){return new t(o.code,o.desc)},t.createPostLogoutRedirectUriEmptyError=function(){return new t(i.code,i.desc)},t.createStorageNotSupportedError=function(e){return new t(a.code,a.desc+" Given Location: "+e)},t.createRedirectCallbacksNotSetError=function(){return new t(s.code,s.desc)},t.createStubPcaInstanceCalledError=function(){return new t(c.code,c.desc)},t.createInMemoryRedirectUnavailableError=function(){return new t(u.code,u.desc)}
2,t.createEntropyNotProvided=function(){return new t(l.code,l.desc)},t}(n(6).d)},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o});var r="@azure/msal-browser",o="2.39.0"},function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n(9),o=n(6),i=n(312),a=n(14),s=n(123),c=n(15),u=n(207),l=function(e){function t(t,n,r,o,i,a,s,c,l,d,p,h){var f=e.call(this,t,n,r,o,i,a,c,l,h)||this;return f.apiId=s,f.accountId=d,f.nativeMessageHandler=l,f.nativeStorageManager=p,f.silentCacheClient=new u.a(t,f.nativeStorageManager,r,o,i,a,c,l,h),f}return Object(r.c)(t,e),t.prototype.acquireToken=function(e){return Object(r.b)(this,void 0,void 0,function(){var t,n,i,s,c,u,l;return Object(r.d)(this,function(r){switch(r.label){case 0:return this.logger.trace("NativeInteractionClient - acquireToken called."),t=this.performanceClient.startMeasurement(o.E.NativeInteractionClientAcquireToken,e.correlationId),n=o.X.nowSeconds(),[4,this.initializeNativeRequest(e)];case 1:i=r.sent(),r.label=2;case 2:return r.trys.push([2,4,,5]),[4,this.acquireTokensFromCache(this.accountId,i)];case 3:return s=r.sent(),t.endMeasurement({success:!0,isNativeBroker:!1,fromCache:!0}),[2,s];case 4:return r.sent(),this.logger.info("MSAL internal Cache does not contain tokens, proceed to make a native call"),[3,5];case 5:return c={method:a.o.GetToken,request:i},[4,this.nativeMessageHandler.sendMessage(c)];case 6:return u=r.sent(),l=this.validateNativeResponse(u),[2,this.handleNativeResponse(l,i,n).then(function(e){return t.endMeasurement({success:!0,isNativeBroker:!0,requestId:e.requestId}),e}).catch(function(e){throw t.endMeasurement({success:!1,errorCode:e.errorCode,subErrorCode:e.subError,isNativeBroker:!0}),e})]}})})},t.prototype.createSilentCacheRequest=function(e,t){return{authority:e.authority,correlationId:this.correlationId,scopes:o.N.fromString(e.scope).asArray(),account:t,forceRefresh:!1}},t.prototype.acquireTokensFromCache=function(e,t){return Object(r.b)(this,void 0,void 0,function(){var n,i,a,s;return Object(r.d)(this,function(c){switch(c.label){case 0:if(!e)throw this.logger.warning("NativeInteractionClient:acquireTokensFromCache - No nativeAccountId provided"),o.p.createNoAccountFoundError();if(!(n=this.browserStorage.getAccountInfoFilteredBy({nativeAccountId:e})))throw o.p.createNoAccountFoundError();c.label=1;case 1:return c.trys.push([1,3,,4]),i=this.createSilentCacheRequest(t,n),[4,this.silentCacheClient.acquireToken(i)];case 2:return a=c.sent(),s=Object(r.a)(Object(r.a)({},n),{idTokenClaims:a.idTokenClaims}),[2,Object(r.a)(Object(r.a)({},a),{account:s})];case 3:throw c.sent();case 4:return[2]}})})},t.prototype.acquireTokenRedirect=function(e){return Object(r.b)(this,void 0,void 0,function(){var t,n,o,i,c,u;return Object(r.d)(this,function(r){switch(r.label){case 0:return this.logger.trace("NativeInteractionClient - acquireTokenRedirect called."),[4,this.initializeNativeRequest(e)];case 1:t=r.sent(),n={method:a.o.GetToken,request:t},r.label=2;case 2:return r.trys.push([2,4,,5]),[4,this.nativeMessageHandler.sendMessage(n)];case 3:return o=r.sent(),this.validateNativeResponse(o),[3,5];case 4:if((i=r.sent())instanceof s.a&&i.isFatal())throw i;return[3,5];case 5:return this.browserStorage.setTemporaryCache(a.q.NATIVE_REQUEST,JSON.stringify(t),!0),c={apiId:a.a.acquireTokenRedirect,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},u=this.config.auth.navigateToLoginRequestUrl?window.location.href:this.getRedirectUri(e.redirectUri),[4,this.navigationClient.navigateExternal(u,c)];case 6:return r.sent(),[2]}})})},t.prototype.handleRedirectPromise=function(){return Object(r.b)(this,void 0,void 0,function(){var e,t,n,i,s,c,u,l;return Object(r.d)(this,function(d){switch(d.label){case 0:if(this.logger.trace("NativeInteractionClient - handleRedirectPromise called."),!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),[2,null];if(!(e=this.browserStorage.getCachedNativeRequest()))return this.logger.verbose("NativeInteractionClient - handleRedirectPromise called but there is no cached request, returning null."),[2,null];t=e.prompt,n=Object(r.e)(e,["prompt"]),t&&this.logger.verbose("NativeInteractionClient - handleRedirectPromise called and prompt was included in the original request, remov
2ing prompt from cached request to prevent second interaction with native broker window."),this.browserStorage.removeItem(this.browserStorage.generateCacheKey(a.q.NATIVE_REQUEST)),i={method:a.o.GetToken,request:n},s=o.X.nowSeconds(),d.label=1;case 1:return d.trys.push([1,3,,4]),this.logger.verbose("NativeInteractionClient - handleRedirectPromise sending message to native broker."),[4,this.nativeMessageHandler.sendMessage(i)];case 2:return c=d.sent(),this.validateNativeResponse(c),u=this.handleNativeResponse(c,n,s),this.browserStorage.setInteractionInProgress(!1),[2,u];case 3:throw l=d.sent(),this.browserStorage.setInteractionInProgress(!1),l;case 4:return[2]}})})},t.prototype.logout=function(){return this.logger.trace("NativeInteractionClient - logout called."),Promise.reject("Logout not implemented yet")},t.prototype.handleNativeResponse=function(e,t,n){return Object(r.b)(this,void 0,void 0,function(){var i,a,c,u,l;return Object(r.d)(this,function(r){switch(r.label){case 0:if(this.logger.trace("NativeInteractionClient - handleNativeResponse called."),e.account.id!==t.accountId)throw s.a.createUserSwitchError();return[4,this.getDiscoveredAuthority(t.authority)];case 1:return i=r.sent(),a=this.createIdTokenObj(e),c=this.createHomeAccountIdentifier(e,a),u=o.b.createAccount({homeAccountId:c,idTokenClaims:a.claims,clientInfo:e.client_info,nativeAccountId:e.account.id},i),[4,this.generateAuthenticationResult(e,t,a,u,i.canonicalAuthority,n)];case 2:return l=r.sent(),this.cacheAccount(u),this.cacheNativeTokens(e,t,c,a,l.accessToken,l.tenantId,n),[2,l]}})})},t.prototype.createIdTokenObj=function(e){return new o.e(e.id_token||o.r.EMPTY_STRING,this.browserCrypto)},t.prototype.createHomeAccountIdentifier=function(e,t){return o.b.generateHomeAccountId(e.client_info||o.r.EMPTY_STRING,o.j.Default,this.logger,this.browserCrypto,t.claims)},t.prototype.generateScopes=function(e,t){return e.scope?o.N.fromString(e.scope):o.N.fromString(t.scope)},t.prototype.generatePopAccessToken=function(e,t){return Object(r.b)(this,void 0,void 0,function(){var n,i;return Object(r.d)(this,function(r){switch(r.label){case 0:if(t.tokenType!==o.f.POP)return[3,2];if(e.shr)return this.logger.trace("handleNativeServerResponse: SHR is enabled in native layer"),[2,e.shr];if(n=new o.G(this.browserCrypto),i={resourceRequestMethod:t.resourceRequestMethod,resourceRequestUri:t.resourceRequestUri,shrClaims:t.shrClaims,shrNonce:t.shrNonce},!t.keyId)throw o.p.createKeyIdMissingError();return[4,n.signPopToken(e.access_token,t.keyId,i)];case 1:return[2,r.sent()];case 2:return[2,e.access_token]}})})},t.prototype.generateAuthenticationResult=function(e,t,n,i,a,s){return Object(r.b)(this,void 0,void 0,function(){var c,u,l,d,p,h,f;return Object(r.d)(this,function(r){switch(r.label){case 0:return c=this.addTelemetryFromNativeResponse(e),u=e.scope?o.N.fromString(e.scope):o.N.fromString(t.scope),l=e.account.properties||{},d=l.UID||n.claims.oid||n.claims.sub||o.r.EMPTY_STRING,p=l.TenantId||n.claims.tid||o.r.EMPTY_STRING,[4,this.generatePopAccessToken(e,t)];case 1:return h=r.sent(),f=t.tokenType===o.f.POP?o.f.POP:o.f.BEARER,[2,{authority:a,uniqueId:d,tenantId:p,scopes:u.asArray(),account:i.getAccountInfo(),idToken:e.id_token,idTokenClaims:n.claims,accessToken:h,fromCache:!!c&&this.isResponseFromCache(c),expiresOn:new Date(1e3*Number(s+e.expires_in)),tokenType:f,correlationId:this.correlationId,state:e.state,fromNativeBroker:!0}]}})})},t.prototype.cacheAccount=function(e){var t=this;this.browserStorage.setAccount(e),this.browserStorage.removeAccountContext(e).catch(function(e){t.logger.error("Error occurred while removing account context from browser storage. "+e)})},t.prototype.cacheNativeTokens=function(e,t,n,r,i,a,s){var c=o.w.createIdTokenEntity(n,t.authority,e.id_token||o.r.EMPTY_STRING,t.clientId,r.claims.tid||o.r.EMPTY_STRING),u=s+(t.tokenType===o.f.POP?o.r.SHR_NONCE_VALIDITY:("string"==typeof e.expires_in?parseInt(e.expires_in,10):e.expires_in)||0),l=this.generateScopes(e,t),d=o.a.createAccessTokenEntity(n,t.authority,i,t.clientId,r?r.claims.tid||o.r.EMPTY_STRING:a,l.printScopes(),u,0,this.browserCrypto),p=new o.n(void 0,c,d);this.nativeStorageManager.saveCacheRecord(p)},t.prototype.addTelemetryFromNativeResponse=function(e){var t=this.getMATSFromResponse(e);return t?(this.performanceClient.addStaticFields({extensionId:this.nativeMessageHandler.getExtensionId(),extensionVersion:this.nativeMessageHandler.getExtensionVersion(),matsBrokerVersion:t.broker_version,matsAccountJoinOnStart:t.account_join_on_
2start,matsAccountJoinOnEnd:t.account_join_on_end,matsDeviceJoin:t.device_join,matsPromptBehavior:t.prompt_behavior,matsApiErrorCode:t.api_error_code,matsUiVisible:t.ui_visible,matsSilentCode:t.silent_code,matsSilentBiSubCode:t.silent_bi_sub_code,matsSilentMessage:t.silent_message,matsSilentStatus:t.silent_status,matsHttpStatus:t.http_status,matsHttpEventCount:t.http_event_count},this.correlationId),t):null},t.prototype.validateNativeResponse=function(e){if(e.hasOwnProperty("access_token")&&e.hasOwnProperty("id_token")&&e.hasOwnProperty("client_info")&&e.hasOwnProperty("account")&&e.hasOwnProperty("scope")&&e.hasOwnProperty("expires_in"))return e;throw s.a.createUnexpectedError("Response missing expected properties.")},t.prototype.getMATSFromResponse=function(e){if(e.properties.MATS)try{return JSON.parse(e.properties.MATS)}catch(e){this.logger.error("NativeInteractionClient - Error parsing MATS telemetry, returning null instead")}return null},t.prototype.isResponseFromCache=function(e){return void 0===e.is_cached?(this.logger.verbose("NativeInteractionClient - MATS telemetry does not contain field indicating if response was served from cache. Returning false."),!1):!!e.is_cached},t.prototype.initializeNativeRequest=function(e){return Object(r.b)(this,void 0,void 0,function(){var t,n,i,s,u,l,d,p,h,f=this;return Object(r.d)(this,function(m){switch(m.label){case 0:return this.logger.trace("NativeInteractionClient - initializeNativeRequest called"),t=e.authority||this.config.auth.authority,e.account?[4,this.validateRequestAuthority(t,e.account)]:[3,2];case 1:m.sent(),m.label=2;case 2:return(n=new o.Y(t)).validateAsUri(),i=e.scopes,s=Object(r.e)(e,["scopes"]),(u=new o.N(i||[])).appendScopes(o.C),l=function(){switch(f.apiId){case a.a.ssoSilent:case a.a.acquireTokenSilent_silentFlow:return f.logger.trace("initializeNativeRequest: silent request sets prompt to none"),o.H.NONE}if(e.prompt)switch(e.prompt){case o.H.NONE:case o.H.CONSENT:case o.H.LOGIN:return f.logger.trace("initializeNativeRequest: prompt is compatible with native flow"),e.prompt;default:throw f.logger.trace("initializeNativeRequest: prompt = "+e.prompt+" is not compatible with native flow"),c.a.createNativePromptParameterNotSupportedError()}else f.logger.trace("initializeNativeRequest: prompt was not provided")},d=Object(r.a)(Object(r.a)({},s),{accountId:this.accountId,clientId:this.config.auth.clientId,authority:n.urlString,scope:u.printScopes(),redirectUri:this.getRedirectUri(e.redirectUri),prompt:l(),correlationId:this.correlationId,tokenType:e.authenticationScheme,windowTitleSubstring:document.title,extraParameters:Object(r.a)(Object(r.a)(Object(r.a)({},e.extraQueryParameters),e.tokenQueryParameters),{telemetry:a.n.MATS_TELEMETRY}),extendedExpiryToken:!1}),e.authenticationScheme!==o.f.POP?[3,4]:(p={resourceRequestUri:e.resourceRequestUri,resourceRequestMethod:e.resourceRequestMethod,shrClaims:e.shrClaims,shrNonce:e.shrNonce},[4,new o.G(this.browserCrypto).generateCnf(p)]);case 3:h=m.sent(),d.reqCnf=h.reqCnfString,d.keyId=h.kid,m.label=4;case 4:return[2,d]}})})},t}(i.a)},function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r,o=n(9),i=n(6),a=n(15);!function(e){e.USER_INTERACTION_REQUIRED="USER_INTERACTION_REQUIRED",e.USER_CANCEL="USER_CANCEL",e.NO_NETWORK="NO_NETWORK",e.TRANSIENT_ERROR="TRANSIENT_ERROR",e.PERSISTENT_ERROR="PERSISTENT_ERROR",e.DISABLED="DISABLED",e.ACCOUNT_UNAVAILABLE="ACCOUNT_UNAVAILABLE"}(r||(r={}));var s={code:"ContentError"},c={code:"user_switch",desc:"User attempted to switch accounts in the native broker, which is not allowed. All new accounts must sign-in through the standard web flow first, please try again."},u={code:"tokens_not_found_in_internal_memory_cache",desc:"Tokens not cached in MSAL JS internal memory, please make the WAM request"},l=function(e){function t(n,r,o){var i=e.call(this,n,r)||this;return Object.setPrototypeOf(i,t.prototype),i.name="NativeAuthError",i.ext=o,i}return Object(o.c)(t,e),t.prototype.isFatal=function(){if(this.ext&&this.ext.status&&(this.ext.status===r.PERSISTENT_ERROR||this.ext.status===r.DISABLED))return!0;switch(this.errorCode){case s.code:return!0;default:return!1}},t.createError=function(e,n,o){if(o&&o.status)switch(o.status){case r.ACCOUNT_UNAVAILABLE:return i.x.createNativeAccountUnavailableError();case r.USER_INTERACTION_REQUIRED:return new i.x(e,n);case r.USER_CANCEL:return a.a.createUserCancelledError();case r.NO_NETWORK:return a.a.createNoNetworkConnectivityError()}return new t(e,n,o)},t.createUserSwitchError=function(){return new t(c.code,c.desc)},t.createTokensNotFoundInCacheError=function(){return new t(u.code,u.desc)},t}(i.d)},function(e,t,n){"use strict";n.d(t,"a",function(){return o}
2);var r=n(6),o=function(){function e(){}return e.stringToUtf8Arr=function(e){for(var t,n=0,r=e.length,o=0;o<r;o++)n+=(t=e.charCodeAt(o))<128?1:t<2048?2:t<65536?3:t<2097152?4:t<67108864?5:6;for(var i=new Uint8Array(n),a=0,s=0;a<n;s++)(t=e.charCodeAt(s))<128?i[a++]=t:t<2048?(i[a++]=192+(t>>>6),i[a++]=128+(63&t)):t<65536?(i[a++]=224+(t>>>12),i[a++]=128+(t>>>6&63),i[a++]=128+(63&t)):t<2097152?(i[a++]=240+(t>>>18),i[a++]=128+(t>>>12&63),i[a++]=128+(t>>>6&63),i[a++]=128+(63&t)):t<67108864?(i[a++]=248+(t>>>24),i[a++]=128+(t>>>18&63),i[a++]=128+(t>>>12&63),i[a++]=128+(t>>>6&63),i[a++]=128+(63&t)):(i[a++]=252+(t>>>30),i[a++]=128+(t>>>24&63),i[a++]=128+(t>>>18&63),i[a++]=128+(t>>>12&63),i[a++]=128+(t>>>6&63),i[a++]=128+(63&t));return i},e.stringToArrayBuffer=function(e){for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),r=0;r<e.length;r++)n[r]=e.charCodeAt(r);return t},e.utf8ArrToString=function(e){for(var t=r.r.EMPTY_STRING,n=void 0,o=e.length,i=0;i<o;i++)n=e[i],t+=String.fromCharCode(n>251&&n<254&&i+5<o?1073741824*(n-252)+(e[++i]-128<<24)+(e[++i]-128<<18)+(e[++i]-128<<12)+(e[++i]-128<<6)+e[++i]-128:n>247&&n<252&&i+4<o?(n-248<<24)+(e[++i]-128<<18)+(e[++i]-128<<12)+(e[++i]-128<<6)+e[++i]-128:n>239&&n<248&&i+3<o?(n-240<<18)+(e[++i]-128<<12)+(e[++i]-128<<6)+e[++i]-128:n>223&&n<240&&i+2<o?(n-224<<12)+(e[++i]-128<<6)+e[++i]-128:n>191&&n<224&&i+1<o?(n-192<<6)+e[++i]-128:n);return t},e.getSortedObjectString=function(e){return JSON.stringify(e,Object.keys(e).sort())},e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n(0),o=n(87),i=n(67),a=n(11),s=n(198),c=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},u=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(e,t,n){this.currenciesApiClientService=e,this.storage=t,this.configService=n}var t,n,l;return e.prototype.get=function(){var e=this;return new Promise(function(t){e.currencies?t(e.currencies):e.currenciesApiClientService.getCurrencies().subscribe(function(n){e.currencies=n,t(n)})})},e.prototype.getCurrentPlpCurrency=function(){var e,t;return null!==(t=null!==(e=s.a.extract("currency",window.location.href))&&void 0!==e?e:this.storage.getSessionStorageItem("user-currency-plp"))&&void 0!==t?t:this.configService.currencies().Default},e.prototype.setCurrentPlpCurrency=function(e){this.storage.setSessionStorageItem("user-currency-plp",e)},e.prototype.getCurrentPdpCurrency=function(){var e,t;return null!==(t=null!==(e=s.a.extract("currency",window.location.href))&&void 0!==e?e:this.storage.getSessionStorageItem("user-currency-pdp"))&&void 0!==t?t:this.configService.currencies().Default},e.prototype.setCurrentPdpCurrency=function(e){this.storage.setSessionStorageItem("user-currency-pdp",e)},e=c([Object(r.Injectable)(),u("design:paramtypes",["function"==typeof(t=void 0!==o.a&&o.a)?t:Object,"function"==typeof(n=void 0!==i.a&&i.a)?n:Object,"function"==typeof(l=void 0!==a.a&&a.a)?l:Object])],e)}()},,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",function(){return d});var r=n(0),o=n(23),i=n(61),a=n(29),s=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},u=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?o(e.value):function(e){return e instanceof n?e:new n(function(t){t(e)})}(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())})},l=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},d=function(){function e(e,t,n){this.router=e,this.urlHelperService=t,this.propertyService=n}var t,n,d;return e.prototype.goToDetailsPage=function(e){return u(this,void 0,Promise,function(){var t,n;return l(this,function(r){switch(r.label){case 0:return t={},[4,this.propertyService.getDetails(e.reference)];case 1:return n=r.sent(),t.division=this.urlHelperService.divisionToSlug(n.Division),t.transaction=this.urlHelperService.transactionToSlug(n.TransactionType),t.address=n.Slug,t.reference=n.Number.toLowerCase(),this.redirect(t,e.preview,e.replaceUrl),[2]}})})},e.prototype.redirect=function(e,t,n){t?this.router.navigate([e.division+"/"+e.transaction+"/"+e.address+"/"+e.reference],{queryParams:{preview:t},replaceUrl:n}):this.router.navigate([e.division+"/"+e.transaction+"/"+e.address+"/"+e.reference],{replaceUrl:n})},e=s([Object(r.Injectable)(),c("design:paramtypes",["function"==typeof(t=void 0!==o.g&&o.g)?t:Object,"function"==typeof(n=void 0!==a.a&&a.a)?n:Object,"function"==typeof(d=void 0!==i.c&&i.c)?d:Object])],e)}()},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o}
2);var r="@azure/msal-common",o="13.3.3"},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(7),o=n(17),i=function(){function e(){}return e.prototype.generateAccountId=function(){return e.generateAccountIdForCacheKey(this.homeAccountId,this.environment)},e.prototype.generateCredentialId=function(){return e.generateCredentialIdForCacheKey(this.credentialType,this.clientId,this.realm,this.familyId)},e.prototype.generateTarget=function(){return e.generateTargetForCacheKey(this.target)},e.prototype.generateCredentialKey=function(){return e.generateCredentialCacheKey(this.homeAccountId,this.environment,this.credentialType,this.clientId,this.realm,this.target,this.familyId,this.tokenType,this.requestedClaimsHash)},e.prototype.generateType=function(){switch(this.credentialType){case r.n.ID_TOKEN:return r.j.ID_TOKEN;case r.n.ACCESS_TOKEN:case r.n.ACCESS_TOKEN_WITH_AUTH_SCHEME:return r.j.ACCESS_TOKEN;case r.n.REFRESH_TOKEN:return r.j.REFRESH_TOKEN;default:throw o.a.createUnexpectedCredentialTypeError()}},e.generateCredentialCacheKey=function(e,t,n,o,i,a,s,c,u){return[this.generateAccountIdForCacheKey(e,t),this.generateCredentialIdForCacheKey(n,o,i,s),this.generateTargetForCacheKey(a),this.generateClaimsHashForCacheKey(u),this.generateSchemeForCacheKey(c)].join(r.D.CACHE_KEY_SEPARATOR).toLowerCase()},e.generateAccountIdForCacheKey=function(e,t){return[e,t].join(r.D.CACHE_KEY_SEPARATOR).toLowerCase()},e.generateCredentialIdForCacheKey=function(e,t,n,o){return[e,e===r.n.REFRESH_TOKEN&&o||t,n||r.m.EMPTY_STRING].join(r.D.CACHE_KEY_SEPARATOR).toLowerCase()},e.generateTargetForCacheKey=function(e){return(e||r.m.EMPTY_STRING).toLowerCase()},e.generateClaimsHashForCacheKey=function(e){return(e||r.m.EMPTY_STRING).toLowerCase()},e.generateSchemeForCacheKey=function(e){return e&&e.toLowerCase()!==r.e.BEARER.toLowerCase()?e.toLowerCase():r.m.EMPTY_STRING},e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r,o=n(12),i=n(46),a=n(59),s=n(60);!function(e){e.SW="sw",e.UHW="uhw"}(r||(r={}));var c=function(){function e(e,t){this.cryptoUtils=e,this.performanceClient=t}return e.prototype.generateCnf=function(e){var t,n;return Object(o.b)(this,void 0,void 0,function(){var r,i,a;return Object(o.d)(this,function(o){switch(o.label){case 0:return null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(s.c.PopTokenGenerateCnf,e.correlationId),null===(n=this.performanceClient)||void 0===n||n.setPreQueueTime(s.c.PopTokenGenerateKid,e.correlationId),[4,this.generateKid(e)];case 1:return r=o.sent(),i=this.cryptoUtils.base64Encode(JSON.stringify(r)),a={kid:r.kid,reqCnfString:i},[4,this.cryptoUtils.hashString(i)];case 2:return[2,(a.reqCnfHash=o.sent(),a)]}})})},e.prototype.generateKid=function(e){var t;return Object(o.b)(this,void 0,void 0,function(){return Object(o.d)(this,function(n){switch(n.label){case 0:return null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(s.c.PopTokenGenerateKid,e.correlationId),[4,this.cryptoUtils.getPublicKeyThumbprint(e)];case 1:return[2,{kid:n.sent(),xms_ksl:r.SW}]}})})},e.prototype.signPopToken=function(e,t,n){return Object(o.b)(this,void 0,void 0,function(){return Object(o.d)(this,function(r){return[2,this.signPayload(e,t,n)]})})},e.prototype.signPayload=function(e,t,n,r){return Object(o.b)(this,void 0,void 0,function(){var s,c,u,l,d,p;return Object(o.d)(this,function(h){switch(h.label){case 0:return s=n.resourceRequestMethod,c=n.resourceRequestUri,u=n.shrClaims,l=n.shrNonce,d=c?new a.a(c):void 0,p=null===d||void 0===d?void 0:d.getUrlComponents(),[4,this.cryptoUtils.signJwt(Object(o.a)({at:e,ts:i.a.nowSeconds(),m:null===s||void 0===s?void 0:s.toUpperCase(),u:null===p||void 0===p?void 0:p.HostNameAndPort,nonce:l||this.cryptoUtils.createNewGuid(),p:null===p||void 0===p?void 0:p.AbsolutePath,q:(null===p||void 0===p?void 0:p.QueryString)?[[],p.QueryString]:void 0,client_claims:u||void 0},r),t,n.correlationId)];case 1:return[2,h.sent()]}})})},e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n(0),o=n(11),i=n(29),a=n(155),s=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},u=function(){function e(e,t,n){this.propertyFeatureService=e,this.urlHelperService=t,this.configService=n,this.tagCmdPropertyArray=[],this.tagCmdPropertySearchedArray=[],this.tagCmdEnvironment={},this.tagCmdPage={},this.tagCmdObject={}}var t,n,u;return e.prototype.prpTagCmd=function(e,t){this.clear(),this.tagCmdEnvironment=this.tagCmdEnvConverter("property_result"),this.tagCmdPage=this.tagCmdPageConverter();for(var n=0,r=e;n<r.length;n++){var o=r[n];this.tagCmdPropertyArray.push(this.tagCmdPropertyConverter(o))}this.tagCmdPropertySearchedArray.push(t),this.updateTagCmd()},e.prototype.pdpTagCmd=function(e){var t=JSON.parse(JSON.stringify(this.tagCmdPropertySearchedArray));t&&t.length||(t=null),this.clear();var n=e.Ipm?"property_ipm":"property_detail";this.tagCmdEnvironment=this.tagCmdEnvConverter(n),this.tagCmdPage=this.tagCmdPageConverter(),this.tagCmdPropertySearchedArray=JSON.parse(JSON.stringify(t)),this.tagCmdPropertyArray.push(this.tagCmdPropertyConverter(e)),this.updateTagCmd()},e.prototype.formTagCmd=function(e){this.tagCmdFormEvent={};var t="form."+e.form_action,n={form_button_text:e.form_button_text,lead_id:e.lead_id,form_name:e.form_name,form_action:t,form_agent:e.form_agent,form_office:e.form_office,form_property_ref:e.form_property_ref,form_additional_info:e.form_additional_info,el:e.htmlElement};this.tagCmdFormEvent=n,this.updateTagCmd(!0)},e.prototype.enquiryFormTagCmdOpenClose=function(e){window.tC&&window.tC.internalvars&&window.tC.event.pdp_make_an_enquiry_form({form_status:e,page_path:window.location.pathname,properties_searched:this.tagCmdPropertySearchedArray,property_details:this.tagCmdPropertyArray})},e.prototype.enquiryFormSubmissionTagCmd=function(e,t){window.tC&&window.tC.internalvars&&window.tC.event.pdp_make_an_enquiry_form({book_a_viewing:e,lead_id:t,form_status:"form.submit.success",page_path:window.location.pathname,properties_searched:this.tagCmdPropertySearchedArray,property_details:this.tagCmdPropertyArray})},e.prototype.campaignTagCmd=function(e){this.tagCmdCampaignEvent={};var t={campaign_name:e.name,campaign_format:e.format,campaign_property_ref:e.property_ref,el:e.htmlElement};this.tagCmdCampaignEvent=t,this.updateTagCmd(!0)},e.prototype.mortgageCalculatorEvent=function(e,t,n,r){window.tC&&window.tC.internalvars&&window.tC.event.generic_button_clicked(null,{button_clicked:t,env_template:e,enquiry_type:n,property_reference:r})},e.prototype.btlyCalculatorEvent=function(e,t,n,r){window.tC&&window.tC.internalvars&&window.tC.event.generic_button_clicked(null,{button_clicked:t,env_template:e,enquiry_type:n,property_reference:r})},e.prototype.stampDutyCalculatorEvent=function(e,t,n,r){window.tC&&window.tC.internalvars&&window.tC.event.generic_button_clicked(null,{button_clicked:t,env_template:e,enquiry_type:n,property_reference:r})},e.prototype.updateTagCmd=function(e){this.tagCmdObject.isProperty="YES",this.tagCmdObject.environment=this.tagCmdEnvironment,this.tagCmdObject.page=this.tagCmdPage,this.tagCmdObject.property_details=this.tagCmdPropertyArray,this.tagCmdObject.properties_searched=this.tagCmdPropertySearchedArray,window.tC&&window.tC.internalvars&&(e?(void 0!==this.tagCmdCampaignEvent&&window.tC.event.campaign_clicked(this.tagCmdCampaignEvent.el,{campaign_name:this.tagCmdCampaignEvent.campaign_name,campaign_format:this.tagCmdCampaignEvent.campaign_format,property_reference:this.tagCmdCampaignEvent.campaign_property_ref}),void 0!==this.tagCmdFormEvent&&window.tC.event.form_event_pdp(this.tagCmdFormEvent.el,{form_button_text:this.tagCmdFormEvent.form_button_text,lead_id:this.tagCmdFormEvent.lead_id,form_status:this.tagCmdFormEvent.form_action,form_name:this.tagCmdFormEvent.form_name,contact_agent:this.tagCmdFormEvent.form_agent,contact_office:this.tagCmdFormEvent.form_office,property_reference:this.tagCmdFormEvent.form_property_ref,additional_info:this.tagCmdFormEvent.form_additional_info})):window.tC.kf.ngPropertiesUpdate(this.tagCmdObject))},e.prototype.tagCmdPropertyConverter=function(e){var t,n,r;return{property_type:e.PropertyTypes.map(function(e){return e.Name}
2),property_reference:e.Number,property_postcode:e.Postcode,property_division:e.Division.toString(),property_transaction:e.TransactionType.toString(),property_continent:e.Continent,property_country:e.Country,property_city:e.City,property_county:e.County,property_state:e.State,property_suburb:e.Suburb,property_country_IsoCode:e.IsoCode,property_currency:e.Price.CurrencyCode,property_price_min:e.Price.PriceMin.toFixed(2).toString(),property_price_max:e.Price.PriceMax.toFixed(2).toString(),property_url:this.getPropertyUrl(e),property_bedrooms:e.BedroomsMaximum.toString(),property_bathrooms:e.BathroomsMaximum.toString(),property_amenities:this.featuresConverter(e),property_letting_type:this.lettingTypeConverter(e),property_fullLocation:this.getFullLocation(e),pdp_office_name:e.OfficeName,property_price_gross_area_min:null===(t=e.Price.GrossAreaMinPrice)||void 0===t?void 0:t.toFixed(2).toString(),property_price_gross_area_max:null===(n=e.Price.GrossAreaMaxPrice)||void 0===n?void 0:n.toFixed(2).toString(),property_gross_area_unit:null===(r=e.GrossAreaMeasurementUnit)||void 0===r?void 0:r.Name,property_price_term:e.Price.Term}},e.prototype.tagCmdPageConverter=function(){return{page_name:"properties",page_search_category:"properties"}},e.prototype.tagCmdEnvConverter=function(e){return{env_template:e,env_currency:this.configService.currencies().Default}},e.prototype.getPropertyUrl=function(e){return e.SoldRented?"":window.document.location.protocol+"//"+window.document.location.host+"/properties"+this.urlHelperService.detailsUrl(e)},e.prototype.featuresConverter=function(e){var t=this,n=e.Features.map(function(e){return t.propertyFeatureService.getFeatureLabel(e)});return e.BedroomsMaximum>0&&n.push("Bedrooms"),e.BathroomsMaximum>0&&n.push("Bathrooms"),e.ReceptionRoomsMaximum>0&&n.push("Reception Room"),n},e.prototype.lettingTypeConverter=function(e){return null===e.LettingType||void 0===e.LettingType?"Undefined":e.LettingType.Name},e.prototype.getFullLocation=function(e){var t=[];return e.City&&""!==e.City&&t.push(e.City),e.County&&""!==e.County&&t.push(e.County),e.State&&""!==e.State&&t.push(e.State),e.Suburb&&""!==e.Suburb&&t.push(e.Suburb),t},e.prototype.clear=function(){this.tagCmdPropertyArray=[],this.tagCmdPropertySearchedArray=[],this.tagCmdEnvironment={},this.tagCmdPage={},this.tagCmdObject={}},e=s([Object(r.Injectable)(),c("design:paramtypes",["function"==typeof(t=void 0!==a.a&&a.a)?t:Object,"function"==typeof(n=void 0!==i.a&&i.a)?n:Object,"function"==typeof(u=void 0!==o.a&&o.a)?u:Object])],e)}()},,function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r,o=n(0),i=n(53),a=n(27),s=n(11),c=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},u=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};!function(e){e[e.Result=6]="Result",e[e.Details=7]="Details",e[e.EmailSubmitted=12]="EmailSubmitted",e[e.EmailAgent=70]="EmailAgent",e[e.Brochure=72]="Brochure",e[e.BookViewing=13]="BookViewing"}(r||(r={}));var l=function(){function e(e,t,n){this.$log=e,this.httpClient=t,this.configService=n,this.kfTrackingUrlTemplate="",this.ensureAi(),this.kfTrackingUrlTemplate=this.configService.kfTrackingUrlTemplate()}var t,n,l;return e.prototype.pageView=function(){window.appInsights.trackPageView()},e.prototype.emailSubmited=function(e){this.kfTrackSingleProperty(e,r.EmailSubmitted)},e.prototype.bookViewing=function(e){this.kfTrackSingleProperty(e,r.BookViewing)},e.prototype.resultView=function(e){this.kfTrackMultiProperty(e,r.Result)},e.prototype.detailsView=function(e){this.kfTrackSingleProperty(e,r.Details)},e.prototype.brochureClick=function(e){this.kfTrackSingleProperty(e,r.Brochure)},e.prototype.emailAgent=function(e){this.kfTrackSingleProperty(e,r.EmailAgent)},e.prototype.kfTrackSingleProperty=function(e,t){var n=this.kfTrackingUrlTemplate.replace("{pidorpids}","pid="+e).replace("{ttid}",t.toString());try{this.httpClient.get(n).subscribe(function(e){})}catch(e){}},e.prototype.kfTrackMultiProperty=function(e,t){var n=e.join(","),r=this.kfTrackingUrlTemplate.replace("{pidorpids}","pids="+n).replace("{ttid}",t.toString());try{this.httpClient.get(r).subscribe(function(e){})}catch(e){}},e.prototype.ensureAi=function(){"object"!=typeof window.appInsights&&(window.appInsights={trackPageView:function(){}})}
2,e=c([Object(o.Injectable)(),u("design:paramtypes",["function"==typeof(t=void 0!==a.a&&a.a)?t:Object,"function"==typeof(n=void 0!==i.b&&i.b)?n:Object,"function"==typeof(l=void 0!==s.a&&s.a)?l:Object])],e)}()},function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n(0),o=n(24),i=n(8),a=n(32),s=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},u=function(){function e(e,t){this.titleCasePipe=e,this.translateService=t}var t,n;return e.prototype.setFeatures=function(e){for(var t=[],n=0,r=e;n<r.length;n++){var o=r[n];o.Id!==i.FixedEnum.SkyScraper&&(o.Id!==i.FixedEnum.BerRating&&t.push(o))}return t},e.prototype.getFeatureCounter=function(e){var t=e.Name.split(" ");if(e.KeepName)return"";if(this.isNumber(t[0]))return t[0].trim();if(t[0].includes("-")){var n=t[0].split("-");return this.isNumber(n[0])?t[0].trim():""}return""},e.prototype.getFeatureLabel=function(e){var t=e.Name.split(" ");if(e.KeepName)return e.Name;if(this.isNumber(t[0]))return e.Name.replace(t[0].trim(),"");if(t[0].includes("-")){var n=t[0].split("-");return this.isNumber(n[0])?e.Name.replace(t[0].trim(),""):e.Name}return e.Name},e.prototype.getAmenitiesLabel=function(e,t){return e!==t?e+"-"+t:String(t)},e.prototype.replaceAcresLabel=function(e,t){return this.titleCasePipe.transform(e.replace(t,"").trim())},e.prototype.isNumber=function(e){return!isNaN(Number(e.toString()))},e.prototype.renderLandAreaString=function(e,t,n){return 0===e&&0===t?"":e===t||0===t?e.toString()+" "+this.translateService.translate(n):e.toString()+" - "+t.toString()+" "+this.translateService.translate(n)},e.prototype.convertIntoHectare=function(e,t,n){return 0===e&&0===t?"":16733===n?e===t||0===t?Math.fround(e/2.471).toFixed(2)+" hectares":Math.fround(e/2.471).toFixed(2)+" - "+Math.fround(t/2.471).toFixed(2)+" hectares":38===n?e===t||0===t?Math.fround(e/107639).toFixed(2)+" hectares":Math.fround(e/107639).toFixed(2)+" - "+Math.fround(t/107639).toFixed(2)+" hectares":39===n?e===t||0===t?Math.fround(e/1e4).toFixed(2)+" hectares":Math.fround(e/1e4).toFixed(2)+" - "+Math.fround(t/1e4).toFixed(2)+" hectares":void 0},e=s([Object(r.Injectable)(),c("design:paramtypes",["function"==typeof(t=void 0!==o.TitleCasePipe&&o.TitleCasePipe)?t:Object,"function"==typeof(n=void 0!==a.a&&a.a)?n:Object])],e)}()},function(e,t,n){"use strict";n.d(t,"a",function(){return y});var r=n(0),o=n(53),i=n(117),a=n(11),s=n(27),c=n(98),u=n(8),l=n(88),d=n(52),p=n(38),h=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},f=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},m=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?o(e.value):function(e){return e instanceof n?e:new n(function(t){t(e)})}(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())})},g=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},y=function(){function e(e,t,n,r,o,i){this.$log=e,this.httpClient=t,this.locationService=n,this.configService=r,this.authService=o,this.httpDefaultOptions=i}var t,n,y,v,b,S;return e.prototype.canCreateSearchAlert=function(e){return new Promise(function(t){t(!!e)})},e.prototype.createSearchAlert=function(e){var t=this;e.locationSlug&&this.locationService.getLocation(e.locationSlug).pi
2pe(Object(d.f)(function(e){return!!e}),Object(d.p)(function(n){var r,o="",i="";e.division===u.DivisionEnum.Residential?e.transaction===u.TransactionEnum.Sales?(o="105",i="sales"):(o="106",i="rent"):(o="1361",i=e.transaction===u.TransactionEnum.Sales?"sales":"rent"),r="sqm"===e.floorUnit?"39":"38";var a={Id:"",ListingType:parseInt(o),PropertyTypeIds:"",MinPrice:parseInt(e.priceMin)||0,MaxPrice:parseInt(e.priceMax)||0,MinBeds:parseInt(e.beds)||0,MaxBeds:255,MinBaths:e.baths,MaxBaths:255,MinFloor:parseInt(e.floorMin)||0,MaxFloor:parseInt(e.floorMax)||0,MeasurementUnitId:parseInt(r),FeatureIds:e.feature,Slug:e.locationSlug,CurrencyCode:e.currency,SearchType:i,Radius:parseInt(e.distance)||null};return t.httpClient.get(t.configService.apiSecureBase()+"/account").pipe(Object(d.a)(function(e){return console.warn("User is not authenticated"),Object(p.n)(!1)}),Object(d.f)(function(e){return!!e}),Object(d.p)(function(){return t.httpClient.post(t.configService.apiSecureBase()+"/properties/savealerts",a,{headers:t.httpDefaultOptions.defaultHeaders()})}))})).subscribe({next:function(){window.open(t.configService.myKfBase()+"/property-alerts","_blank")},error:function(){},complete:function(){}})},e.prototype.isPropertySaved=function(e){return m(this,void 0,Promise,function(){var t=this;return g(this,function(n){switch(n.label){case 0:return[4,this.isLoggedIn()];case 1:return n.sent()?[2,new Promise(function(n){t.httpClient.get(t.configService.apiSecureBase()+"/properties/saved/"+e+"?no_login_prompt=true",{headers:t.httpDefaultOptions.defaultHeaders()}).subscribe(function(e){n(e)},function(){n(!1)},function(){n(!1)})})]:[2,!1]}})})},e.prototype.savePropertyOrRedirect=function(e){return m(this,void 0,Promise,function(){var t=this;return g(this,function(n){return[2,new Promise(function(n){t.httpClient.post(t.configService.apiSecureBase()+"/properties/createsaved",{number:e},{headers:t.httpDefaultOptions.defaultHeaders()}).subscribe(function(){n(!0)})})]})})},e.prototype.isLoggedIn=function(){return m(this,void 0,Promise,function(){var e,t;return g(this,function(n){switch(n.label){case 0:if(!(e=this.authService.instance.getActiveAccount()))return[2,!1];n.label=1;case 1:return n.trys.push([1,3,,4]),t={scopes:[this.configService.azureb2c().Scope],redirectUri:window.location.origin+this.configService.azureb2c().RedirectUri,account:e},[4,this.authService.acquireTokenSilent(t).toPromise()];case 2:return n.sent(),[2,!0];case 3:return n.sent(),[2,!1];case 4:return[2]}})})},e=h([Object(r.Injectable)(),f("design:paramtypes",["function"==typeof(t=void 0!==s.a&&s.a)?t:Object,"function"==typeof(n=void 0!==o.b&&o.b)?n:Object,"function"==typeof(y=void 0!==c.a&&c.a)?y:Object,"function"==typeof(v=void 0!==a.a&&a.a)?v:Object,"function"==typeof(b=void 0!==i.i&&i.i)?b:Object,"function"==typeof(S=void 0!==l.a&&l.a)?S:Object])],e)}()},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(0),o=n(97),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=function(){function e(e){this.cookieService=e,this.currentTouchCookieExpiryDays=90,this.firstTouchCookieExpiryDays=365,this.currentTouchCookieNames={UtmSource:"kf_utm_source",UtmMedium:"kf_utm_medium",UtmCampaign:"kf_utm_campaign",UtmContent:"kf_utm_content",UtmTerm:"kf_utm_term",Gclid:"kf_gclid",Fbclid:"kf_fbclid",Referrer:"kf_referrer"},this.firstTouchCookieName="kf_attribution_ft",this.sessionCookieName="kf_attribution_session",this.searchEngineDefinitions={google:{Source:"google",TermParam:"q"},"bing.com":{Source:"bing",TermParam:"q"},"yahoo.com":{Source:"yahoo",TermParam:"p"},"duckduckgo.com":{Source:"duckduckgo",TermParam:"q"},"baidu.com":{Source:"baidu",TermParam:"wd"},"yandex.com":{Source:"yandex",TermParam:"text"},"ask.com":{Source:"ask",TermParam:"q"},"aol.com":{Source:"aol",TermParam:"q"}
2,"naver.com":{Source:"naver",TermParam:"query"}},this.socialDomainSourceMap={"facebook.com":"facebook","instagram.com":"instagram","twitter.com":"twitter","x.com":"x","tiktok.com":"tiktok","linkedin.com":"linkedin","pinterest.com":"pinterest"}}var t;return e.prototype.captureFromCurrentUrl=function(){var e=new URLSearchParams(window.location.search),t=null;(t=this.hasCampaignSignal(e)?this.buildAttributionFromCampaignParams(e):this.buildAttributionFromReferrer())&&this.hasAnyAttributionValue(t)&&this.writeCurrentTouchCookies(t),this.cookieService.setCookie(this.sessionCookieName,"1",0),this.writeFirstTouchCookieIfMissing(this.readCurrentTouchCookies())},e.prototype.getUtmValues=function(){var e=this.readCurrentTouchCookies(),t={};return e.UtmSource&&(t.Source=e.UtmSource),e.UtmMedium&&(t.Medium=e.UtmMedium),e.UtmCampaign&&(t.Campaign=e.UtmCampaign),e.UtmContent&&(t.Content=e.UtmContent),e.UtmTerm&&(t.Term=e.UtmTerm),t},e.prototype.getFirstTouchValues=function(){var e,t=this.cookieService.getCookie(this.firstTouchCookieName);if(!t)return{};try{e=JSON.parse(t)}catch(e){return{}}var n={Source:this.normalizeText(e.utm_source),Medium:this.normalizeText(e.utm_medium),Campaign:this.normalizeText(e.utm_campaign),Content:this.normalizeText(e.utm_content),Term:this.normalizeText(e.utm_term),Gclid:this.normalizeText(e.gclid),Fbclid:this.normalizeText(e.fbclid),Referrer:this.normalizeText(e.referrer)};return this.hasAnyFirstTouchValue(n)?n:{}},e.prototype.hasCampaignSignal=function(e){return""!==this.readQueryValue(e,"utm_source")||""!==this.readQueryValue(e,"utm_medium")||""!==this.readQueryValue(e,"utm_campaign")||""!==this.readQueryValue(e,"utm_content")||""!==this.readQueryValue(e,"utm_term")||""!==this.readQueryValue(e,"gclid")||""!==this.readQueryValue(e,"fbclid")},e.prototype.buildAttributionFromCampaignParams=function(e){var t={UtmSource:this.readQueryValue(e,"utm_source"),UtmMedium:this.readQueryValue(e,"utm_medium"),UtmCampaign:this.readQueryValue(e,"utm_campaign"),UtmContent:this.readQueryValue(e,"utm_content"),UtmTerm:this.readQueryValue(e,"utm_term"),Gclid:this.readQueryValue(e,"gclid"),Fbclid:this.readQueryValue(e,"fbclid")};""!==t.Gclid&&(""===t.UtmSource&&(t.UtmSource="google"),""===t.UtmMedium&&(t.UtmMedium="paid_search")),""!==t.Fbclid&&(""===t.UtmSource&&(t.UtmSource="facebook"),""===t.UtmMedium&&(t.UtmMedium="paid_social"));var n=this.resolveReferrerAttribution();return n&&(t.Referrer=n.ReferrerHost),t},e.prototype.buildAttributionFromReferrer=function(){var e=this.resolveReferrerAttribution();return e?{UtmSource:e.Source,UtmMedium:e.Medium,UtmTerm:e.Term,Referrer:e.ReferrerHost}:{}},e.prototype.resolveReferrerAttribution=function(){if(!document.referrer)return null;var e;try{e=new URL(document.referrer)}catch(e){return null}var t=this.normalizeHost(e.hostname),n=this.normalizeHost(window.location.hostname);if(!t||this.isInternalReferrerHost(t,n))return null;var r=this.resolveSearchEngineMatch(t);if(r){var o=this.readReferrerTerm(e,r.TermParam);return{Source:r.Source,Medium:"organic",Term:o,ReferrerHost:t}}var i=this.resolveSocialSource(t);return i?{Source:i,Medium:"organic_social",ReferrerHost:t}:{Source:t,Medium:"referral",ReferrerHost:t}},e.prototype.readReferrerTerm=function(e,t){var n=(e.searchParams.get(t)||"").trim();return""!==n?n:"(not provided)"},e.prototype.resolveSearchEngineMatch=function(e){for(var t in this.searchEngineDefinitions){var n=this.searchEngineDefinitions[t];if("google"!==t){if(this.matchesDomain(e,t))return n}else if(-1!==e.indexOf("google"))return n}return null},e.prototype.resolveSocialSource=function(e){for(var t in this.socialDomainSourceMap){var n=this.socialDomainSourceMap[t];if(this.matchesDomain(e,t))return n}return""},e.prototype.matchesDomain=function(e,t){return e===t||e.endsWith("."+t)},e.prototype.isSameDomain=function(e,t){var n=this.toRootDomain(e),r=this.toRootDomain(t);return""!==n&&n===r},e.prototype.isInternalReferrerHost=function(e,t){return!!this.isSameDomain(e,t)||this.isKnightFrankHost(e)&&this.isKnightFrankHost(t)},e.prototype.isKnightFrankHost=function(e){return-1!==e.indexOf("knightfrank")},e.prototype.toRootDomain=function(e){var t=e.match(/[^.]*\.[^.]{2,3}(?:\.[^.]{2,3})?$/);return t?t[0]:e}
2,e.prototype.readCurrentTouchCookies=function(){return{UtmSource:this.readCookie(this.currentTouchCookieNames.UtmSource,"utm_source"),UtmMedium:this.readCookie(this.currentTouchCookieNames.UtmMedium,"utm_medium"),UtmCampaign:this.readCookie(this.currentTouchCookieNames.UtmCampaign,"utm_campaign"),UtmContent:this.readCookie(this.currentTouchCookieNames.UtmContent,"utm_content"),UtmTerm:this.readCookie(this.currentTouchCookieNames.UtmTerm,"utm_term"),Gclid:this.readCookie(this.currentTouchCookieNames.Gclid,"gclid"),Fbclid:this.readCookie(this.currentTouchCookieNames.Fbclid,"fbclid"),Referrer:this.readCookie(this.currentTouchCookieNames.Referrer,"referrer")}},e.prototype.writeCurrentTouchCookies=function(e){this.writeOrDeleteCookie(this.currentTouchCookieNames.UtmSource,e.UtmSource),this.writeOrDeleteCookie(this.currentTouchCookieNames.UtmMedium,e.UtmMedium),this.writeOrDeleteCookie(this.currentTouchCookieNames.UtmCampaign,e.UtmCampaign),this.writeOrDeleteCookie(this.currentTouchCookieNames.UtmContent,e.UtmContent),this.writeOrDeleteCookie(this.currentTouchCookieNames.UtmTerm,e.UtmTerm),this.writeOrDeleteCookie(this.currentTouchCookieNames.Gclid,e.Gclid),this.writeOrDeleteCookie(this.currentTouchCookieNames.Fbclid,e.Fbclid),this.writeOrDeleteCookie(this.currentTouchCookieNames.Referrer,e.Referrer)},e.prototype.writeFirstTouchCookieIfMissing=function(e){if(!this.cookieService.existsCookie(this.firstTouchCookieName)&&this.hasAnyAttributionValue(e)){var t={utm_source:e.UtmSource||void 0,utm_medium:e.UtmMedium||void 0,utm_campaign:e.UtmCampaign||void 0,utm_content:e.UtmContent||void 0,utm_term:e.UtmTerm||void 0,gclid:e.Gclid||void 0,fbclid:e.Fbclid||void 0,referrer:e.Referrer||void 0,landing_url:window.location.href,captured_at:(new Date).toISOString()};this.cookieService.setCookie(this.firstTouchCookieName,JSON.stringify(t),this.firstTouchCookieExpiryDays)}},e.prototype.hasAnyAttributionValue=function(e){return!!(e.UtmSource||e.UtmMedium||e.UtmCampaign||e.UtmContent||e.UtmTerm||e.Gclid||e.Fbclid||e.Referrer)},e.prototype.writeOrDeleteCookie=function(e,t){t&&""!==t.trim()?this.cookieService.setCookie(e,t,this.currentTouchCookieExpiryDays):this.cookieService.deleteCookie(e)},e.prototype.readCookie=function(e,t){var n=this.cookieService.getCookie(e);return n||(t&&this.cookieService.getCookie(t)||"")},e.prototype.hasAnyFirstTouchValue=function(e){return!!(e.Source||e.Medium||e.Campaign||e.Content||e.Term||e.Gclid||e.Fbclid||e.Referrer)},e.prototype.normalizeText=function(e){return(e||"").trim()},e.prototype.readQueryValue=function(e,t){return(e.get(t)||"").trim()},e.prototype.normalizeHost=function(e){return(e||"").toLowerCase().replace(/^www\./,"").trim()},e=i([Object(r.Injectable)(),a("design:paramtypes",["function"==typeof(t=void 0!==o.a&&o.a)?t:Object])],e)}()},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(){function e(){}return e.extract=function(e,t){var n=new RegExp(e+"=([^;?]*)").exec(t);return n?n[1]:null},e}()},function(e,t,n){"use strict";n(717);var r=n(749);n.d(t,"h",function(){return r.a});n(208);var o=n(14);n.d(t,"d",function(){return o.k}),n.d(t,"e",function(){return o.l}),n.d(t,"k",function(){return o.r});var i=n(66);n.d(t,"b",function(){return i.a});n(15);var a=n(120);n.d(t,"a",function(){return a.a});n(754);var s=n(318);n.d(t,"g",function(){return s.a});var c=n(755);n.d(t,"c",function(){return c.a});n(78),n(756);var u=n(6);n.d(t,"f",function(){return u.A}),n.d(t,"i",function(){return u.S}),n.d(t,"j",function(){return u.Y});n(121)},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return a});var r,o=n(22),i=n(7);!function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Info=2]="Info",e[e.Verbose=3]="Verbose",e[e.Trace=4]="Trace"}(r||(r={}));var a=function(){function e(t,n,o){this.level=r.Info;var a=t||e.createDefaultLoggerOptions();this.localCallback=a.loggerCallback||function(){},this.piiLoggingEnabled=a.piiLoggingEnabled||!1,this.level="number"==typeof a.logLevel?a.logLevel:r.Info,this.correlationId=a.correlationId||i.m.EMPTY_STRING,this.packageName=n||i.m.EMPTY_STRING,this.packageVersion=o||i.m.EMPTY_STRING}return e.createDefaultLoggerOptions=function(){return{loggerCallback:function(){},piiLoggingEnabled:!1,logLevel:r.Info}},e.prototype.clone=function(t,n,r){return new e({loggerCallback:this.localCallback,piiLoggingEnabled:this.piiLoggingEnabled,logLevel:this.level,correlationId:r||this.correlationId},t,n)},e.prototype.logMessage=function(e,t){if(!(t.logLevel>this.level||!this.piiLoggingEnabled&&t.containsPii)){var n=(new Date).toUTCString(),i=(o.a.isEmpty(t.correlationId)?o.a.isEmpty(this.correlationId)?"["+n+"]":"["+n+"] : ["+this.correlationId+"]":"["+n+"] : ["+t.correlationId+"]")+" : "+this.packageName+"@"+this.packageVersion+" : "+r[t.logLevel]+" - "+e;this.executeCallback(t.logLevel,i,t.containsPii||!1)}},e.prototype.executeCallback=function(e,t,n){this.localCallback&&this.localCallback(e,t,n)},e.prototype.error=function(e,t){this.logMessage(e,{logLevel:r.Error,containsPii:!1,correlationId:t||i.m.EMPTY_STRING})},e.prototype.errorPii=function(e,t){this.logMessage(e,{logLevel:r.Error,containsPii:!0,correlationId:t||i.m.EMPTY_STRING})},e.prototype.warning=function(e,t){this.logMessage(e,{logLevel:r.Warning,containsPii:!1,correlationId:t||i.m.EMPTY_STRING})},e.prototype.warningPii=function(e,t){this.logMessage(e,{logLevel:r.Warning,containsPii:!0,correlationId:t||i.m.EMPTY_STRING})},e.prototype.info=function(e,t){this.logMessage(e,{logLevel:r.Info,containsPii:!1,correlationId:t||i.m.EMPTY_STRING})},e.prototype.infoPii=function(e,t){this.logMessage(e,{logLevel:r.Info,containsPii:!0,correlationId:t||i.m.EMPTY_STRING})},e.prototype.verbose=function(e,t){this.logMessage(e,{logLevel:r.Verbose,containsPii:!1,correlationId:t||i.m.EMPTY_STRING})},e.prototype.verbosePii=function(e,t){this.logMessage(e,{logLevel:r.Verbose,containsPii:!0,correlationId:t||i.m.EMPTY_STRING})},e.prototype.trace=function(e,t){this.logMessage(e,{logLevel:r.Trace,containsPii:!1,correlationId:t||i.m.EMPTY_STRING})},e.prototype.tracePii=function(e,t){this.logMessage(e,{logLevel:r.Trace,containsPii:!0,correlationId:t||i.m.EMPTY_STRING})},e.prototype.isPiiLoggingEnabled=function(){return this.piiLoggingEnabled||!1},e}()},function(e,t,n){"use strict";var r;n.d(t,"a",function(){return r}),function(e){e[e.None=0]="None",e.AzurePublic="https://login.microsoftonline.com",e.AzurePpe="https://login.windows-ppe.net",e.AzureChina="https://login.chinacloudapi.cn",e.AzureGermany="https://login.microsoftonline.de",e.AzureUsGovernment="https://login.microsoftonline.us"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n(7),o=n(91),i=n(22),a=n(17),s=n(203),c=n(204),u=function(){function e(){}return e.prototype.generateAccountId=function(){return[this.homeAccountId,this.environment].join(r.D.CACHE_KEY_SEPARATOR).toLowerCase()},e.prototype.generateAccountKey=function(){return e.generateAccountCacheKey({homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId})},e.prototype.getAccountInfo=function(){return{homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId,name:this.name,idTokenClaims:this.idTokenClaims,nativeAccountId:this.nativeAccountId,authorityType:this.authorityType}},e.generateAccountCacheKey=function(e){return[e.homeAccountId,e.environment||r.m.EMPTY_STRING,e.tenantId||r.m.EMPTY_STRING].join(r.D.CACHE_KEY_SEPARATOR).toLowerCase()},e.createAccount=function(t,n){var o=new e;n.authorityType===s.a.Adfs?o.authorityType=r.h.ADFS_ACCOUNT_TYPE:n.protocolMode===c.a.AAD?o.authorityType=r.h.MSSTS_ACCOUNT_TYPE:o.authorityType=r.h.GENERIC_ACCOUNT_TYPE,o.clientInfo=t.clientInfo,o.homeAccountId=t.homeAccountId,o.nativeAccountId=t.nativeAccountId;var i=t.environment||n&&n.getPreferredCache();if(!i)throw a.a.createInvalidCacheEnvironmentError();if(o.environment=i,o.realm=t.idTokenClaims.tid||r.m.EMPTY_STRING,o.idTokenClaims=t.idTokenClaims,o.localAccountId=t.idTokenClaims.oid||t.idTokenClaims.sub||r.m.EMPTY_STRING,o.authorityType===r.h.MSSTS_ACCOUNT_TYPE){var u=t.idTokenClaims.preferred_username,l=t.idTokenClaims.emails?t.idTokenClaims.emails[0]:null;o.username=u||l||""}else o.username=t.idTokenClaims.upn||"";return o.name=t.idTokenClaims.name,o.cloudGraphHostName=t.cloudGraphHostName,o.msGraphHost=t.msGraphHost,o},e.createFromAccountInfo=function(t,n,o){var i=new e;return i.authorityType=t.authorityType||r.h.GENERIC_ACCOUNT_TYPE,i.homeAccountId=t.homeAccountId,i.localAccountId=t.localAccountId,i.nativeAccountId=t.nativeAccountId,i.realm=t.tenantId,i.environment=t.environment,i.username=t.username,i.name=t.name,i.idTokenClaims=t.idTokenClaims,i.cloudGraphHostName=n,i.msGraphHost=o,i},e.generateHomeAccountId=function(e,t,n,a,c){var u=(null===c||void 0===c?void 0:c.sub)?c.sub:r.m.EMPTY_STRING;if(t===s.a.Adfs||t===s.a.Dsts)return u;if(e)try{var l=Object(o.a)(e,a);if(!i.a.isEmpty(l.uid)&&!i.a.isEmpty(l.utid))return""+l.uid+r.D.CLIENT_INFO_SEPARATOR+l.utid}catch(e){}return n.verbose("No client info in response"),u},e.isAccountEntity=function(e){return!!e&&(e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("realm")&&e.hasOwnProperty("localAccountId")&&e.hasOwnProperty("username")&&e.hasOwnProperty("authorityType"))},e.accountInfoIsEqual=function(e,t,n){if(!e||!t)return!1;var r=!0;if(n){var o=e.idTokenClaims||{},i=t.idTokenClaims||{};r=o.iat===i.iat&&o.nonce===i.nonce}return e.homeAccountId===t.homeAccountId&&e.localAccountId===t.localAccountId&&e.username===t.username&&e.tenantId===t.tenantId&&e.environment===t.environment&&e.nativeAccountId===t.nativeAccountId&&r},e}()},function(e,t,n){"use strict";var r;n.d(t,"a",function(){return r}),function(e){e[e.Default=0]="Default",e[e.Adfs=1]="Adfs",e[e.Dsts=2]="Dsts",e[e.Ciam=3]="Ciam"}(r||(r={}))},function(e,t,n){"use strict";var r;n.d(t,"a",function(){return r}),function(e){e.AAD="AAD",e.OIDC="OIDC"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",function(){return c}),n.d(t,"b",function(){return s});var r=n(12),o=n(7),i=["interaction_required","consent_required","login_required"],a=["message_only","additional_action","basic_action","user_password_expired","consent_required"],s={noTokensFoundError:{code:"no_tokens_found",desc:"No refresh token found in the cache. Please sign-in."},native_account_unavailable:{code:"native_account_unavailable",desc:"The requested account is not available in the native broker. It may have been deleted or logged out. Please sign-in again using an interactive API."}}
2,c=function(e){function t(n,r,i,a,s,c,u){var l=e.call(this,n,r,i)||this;return Object.setPrototypeOf(l,t.prototype),l.timestamp=a||o.m.EMPTY_STRING,l.traceId=s||o.m.EMPTY_STRING,l.correlationId=c||o.m.EMPTY_STRING,l.claims=u||o.m.EMPTY_STRING,l.name="InteractionRequiredAuthError",l}return Object(r.c)(t,e),t.isInteractionRequiredError=function(e,t,n){var r=!!e&&i.indexOf(e)>-1,o=!!n&&a.indexOf(n)>-1,s=!!t&&i.some(function(e){return t.indexOf(e)>-1});return r||s||o},t.createNoTokensFoundError=function(){return new t(s.noTokensFoundError.code,s.noTokensFoundError.desc)},t.createNativeAccountUnavailableError=function(){return new t(s.native_account_unavailable.code,s.native_account_unavailable.desc)},t}(n(44).a)},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(9),o=n(6),i=n(15),a=n(14),s=function(){function e(e,t,n,r,o){this.authModule=e,this.browserStorage=t,this.authCodeRequest=n,this.logger=r,this.performanceClient=o}return e.prototype.handleCodeResponseFromHash=function(e,t,n,a){return Object(r.b)(this,void 0,void 0,function(){var s,c,u;return Object(r.d)(this,function(r){if(this.performanceClient.addQueueMeasurement(o.E.HandleCodeResponseFromHash,this.authCodeRequest.correlationId),this.logger.verbose("InteractionHandler.handleCodeResponse called"),o.S.isEmpty(e))throw i.a.createEmptyHashError(e);if(s=this.browserStorage.generateStateKey(t),!(c=this.browserStorage.getTemporaryCache(s)))throw o.p.createStateNotFoundError("Cached State");try{u=this.authModule.handleFragmentResponse(e,c)}catch(e){throw e instanceof o.O&&e.subError===i.b.userCancelledError.code?i.a.createUserCancelledError():e}return this.performanceClient.setPreQueueTime(o.E.HandleCodeResponseFromServer,this.authCodeRequest.correlationId),[2,this.handleCodeResponseFromServer(u,t,n,a)]})})},e.prototype.handleCodeResponseFromServer=function(e,t,n,i,a){return void 0===a&&(a=!0),Object(r.b)(this,void 0,void 0,function(){var s,c,u,l,d,p;return Object(r.d)(this,function(r){switch(r.label){case 0:if(this.performanceClient.addQueueMeasurement(o.E.HandleCodeResponseFromServer,this.authCodeRequest.correlationId),this.logger.trace("InteractionHandler.handleCodeResponseFromServer called"),s=this.browserStorage.generateStateKey(t),!(c=this.browserStorage.getTemporaryCache(s)))throw o.p.createStateNotFoundError("Cached State");return u=this.browserStorage.generateNonceKey(c),l=this.browserStorage.getTemporaryCache(u),this.authCodeRequest.code=e.code,e.cloud_instance_host_name?(this.performanceClient.setPreQueueTime(o.E.UpdateTokenEndpointAuthority,this.authCodeRequest.correlationId),[4,this.updateTokenEndpointAuthority(e.cloud_instance_host_name,n,i)]):[3,2];case 1:r.sent(),r.label=2;case 2:return a&&(e.nonce=l||void 0),e.state=c,e.client_info?this.authCodeRequest.clientInfo=e.client_info:(d=this.checkCcsCredentials())&&(this.authCodeRequest.ccsCredential=d),this.performanceClient.setPreQueueTime(o.E.AuthClientAcquireToken,this.authCodeRequest.correlationId),[4,this.authModule.acquireToken(this.authCodeRequest,e)];case 3:return p=r.sent(),this.browserStorage.cleanRequestByState(t),[2,p]}})})},e.prototype.updateTokenEndpointAuthority=function(e,t,n){return Object(r.b)(this,void 0,void 0,function(){var i,a;return Object(r.d)(this,function(r){switch(r.label){case 0:return this.performanceClient.addQueueMeasurement(o.E.UpdateTokenEndpointAuthority,this.authCodeRequest.correlationId),i="https://"+e+"/"+t.tenant+"/",[4,o.h.createDiscoveredInstance(i,n,this.browserStorage,t.options,this.logger,this.performanceClient,this.authCodeRequest.correlationId)];case 1:return a=r.sent(),this.authModule.updateAuthority(a),[2]}})})},e.prototype.checkCcsCredentials=function(){var e=this.browserStorage.getTemporaryCache(a.q.CCS_CREDENTIAL,!0);if(e)try{return JSON.parse(e)}catch(t){this.authModule.logger.error("Cache credential could not be parsed"),this.authModule.logger.errorPii("Cache credential could not be parsed: "+e)}return null},e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r=n(9),o=n(77),i=n(6),a=n(14),s=n(15),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.acquireToken=function(e){return Object(r.b)(this,void 0,void 0,function(){var t,n,o,c,u;return Object(r.d)(this,function(r){switch(r.label){case 0:return t=this.performanceClient.startMeasurement(i.E.SilentCacheClientAcquireToken,e.correlationId),n=this.initializeServerTelemetryManager(a.a.acquireTokenSilent_silentFlow),[4,this.createSilentFlowClient(n,e.authority,e.azureCloudOptions)];case 1:o=r.sent(),this.logger.verbose("Silent auth client created"),r.label=2;case 2:return r.trys.push([2,4,,5]),[4,o.acquireCachedToken(e)];case 3:return c=r.sent(),t.endMeasurement({success:!0,fromCache:!0}),[2,c];
2case 4:throw(u=r.sent())instanceof s.a&&u.errorCode===s.b.signingKeyNotFoundInStorage.code&&this.logger.verbose("Signing keypair for bound access token not found. Refreshing bound access token and generating a new crypto keypair."),t.endMeasurement({errorCode:u instanceof i.d&&u.errorCode||void 0,subErrorCode:u instanceof i.d&&u.subError||void 0,success:!1}),u;case 5:return[2]}})})},t.prototype.logout=function(){return Promise.reject(s.a.createSilentLogoutUnsupportedError())},t.prototype.createSilentFlowClient=function(e,t,n){return Object(r.b)(this,void 0,void 0,function(){var o;return Object(r.d)(this,function(r){switch(r.label){case 0:return this.performanceClient.setPreQueueTime(i.E.StandardInteractionClientGetClientConfiguration,this.correlationId),[4,this.getClientConfiguration(e,t,n)];case 1:return o=r.sent(),[2,new i.R(o,this.performanceClient)]}})})},t.prototype.initializeSilentRequest=function(e,t){return Object(r.b)(this,void 0,void 0,function(){var n;return Object(r.d)(this,function(o){switch(o.label){case 0:return this.performanceClient.addQueueMeasurement(i.E.InitializeSilentRequest,this.correlationId),this.performanceClient.setPreQueueTime(i.E.InitializeBaseRequest,this.correlationId),n=[Object(r.a)({},e)],[4,this.initializeBaseRequest(e,t)];case 1:return[2,r.a.apply(void 0,[r.a.apply(void 0,n.concat([o.sent()])),{account:t,forceRefresh:e.forceRefresh||!1}])]}})})},t}(o.a)},function(e,t,n){"use strict";n.d(t,"a",function(){return u}),n.d(t,"b",function(){return p});var r=n(9),o=n(6),i=n(66),a=n(14),s=n(318),c=6e4,u=6e3,l=3e4,d=2e3;function p(e,t){var n=e.auth,p=e.cache,h=e.system,f=e.telemetry,m={clientId:o.r.EMPTY_STRING,authority:""+o.r.DEFAULT_AUTHORITY,knownAuthorities:[],cloudDiscoveryMetadata:o.r.EMPTY_STRING,authorityMetadata:o.r.EMPTY_STRING,redirectUri:o.r.EMPTY_STRING,postLogoutRedirectUri:o.r.EMPTY_STRING,navigateToLoginRequestUrl:!0,clientCapabilities:[],protocolMode:o.I.AAD,azureCloudOptions:{azureCloudInstance:o.l.None,tenant:o.r.EMPTY_STRING},skipAuthorityMetadataCache:!1},g={cacheLocation:a.b.SessionStorage,temporaryCacheLocation:a.b.SessionStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!(!p||p.cacheLocation!==a.b.LocalStorage),claimsBasedCachingEnabled:!0},y={loggerCallback:function(){},logLevel:o.A.Info,piiLoggingEnabled:!1},v=Object(r.a)(Object(r.a)({},o.u),{loggerOptions:y,networkClient:t?i.a.getBrowserNetworkClient():o.U,navigationClient:new s.a,loadFrameTimeout:0,windowHashTimeout:(null===h||void 0===h?void 0:h.loadFrameTimeout)||c,iframeHashTimeout:(null===h||void 0===h?void 0:h.loadFrameTimeout)||u,navigateFrameWait:t&&i.a.detectIEOrEdge()?500:0,redirectNavigationTimeout:l,asyncPopups:!1,allowRedirectInIframe:!1,allowNativeBroker:!1,nativeBrokerHandshakeTimeout:(null===h||void 0===h?void 0:h.nativeBrokerHandshakeTimeout)||d,pollIntervalMilliseconds:a.c.DEFAULT_POLL_INTERVAL_MS,cryptoOptions:{useMsrCrypto:!1,entropy:void 0}}),b=Object(r.a)(Object(r.a)({},h),{loggerOptions:(null===h||void 0===h?void 0:h.loggerOptions)||y}),S={application:{appName:o.r.EMPTY_STRING,appVersion:o.r.EMPTY_STRING}};return{auth:Object(r.a)(Object(r.a)({},m),n),cache:Object(r.a)(Object(r.a)({},g),p),system:Object(r.a)(Object(r.a)({},v),b),telemetry:Object(r.a)(Object(r.a)({},S),f)}}},function(e,t,n){"use strict";n.d(t,"a",function(){return h});var r=n(9),o=n(6),i=n(321),a=n(322),s=n(741),c=n(742),u=n(323),l=n(124),d=n(15),p=n(746),h=function(){function e(e,t,n){this.logger=e,this.browserCrypto=new u.a(this.logger,n),this.b64Encode=new a.a,this.b64Decode=new s.a,this.guidGenerator=new i.a(this.browserCrypto),this.pkceGenerator=new c.a(this.browserCrypto),this.cache=new p.a(this.logger),this.performanceClient=t}return e.prototype.createNewGuid=function(){return this.guidGenerator.generateGuid()},e.prototype.base64Encode=function(e){return this.b64Encode.encode(e)},e.prototype.base64Decode=function(e){return this.b64Decode.decode(e)},e.prototype.generatePkceCodes=function(){return Object(r.b)(this,void 0,void 0,function(){return Object(r.d)(this,function(e){return[2,this.pkceGenerator.generateCodes()]})})},e.prototype.getPublicKeyThumbprint=function(t){var n;return Object(r.b)(this,void 0,void 0,function(){var i,a,s,c,u,d,p,h;return Object(r.d)(this,function(r){switch(r.label){case 0:return i=null===(n=this.performanceClient)||void 0===n?void 0:n.startMeasurement(o.E.CryptoOptsGetPublicKeyThumbprint,t.correlationId),[4,this.browserCrypto.generateKeyPair(e.EXTRACTABLE,e.POP_KEY_USAGES)];case 1:return a=r.sent(),[4,this.browserCrypto.exportJwk(a.publicKey)];case 2:return s=r.sent(),c={e:s.e,kty:s.kty,n:s.n},u=l.a.getSortedObjectString(c),[4,this.hashString(u)];case 3:return d=r.sent(),[4,this.browserCrypto.exportJwk(a.privateKey)];case 4:return p=r.sent(),[4,this.browserCrypto.importJwk(p,!1,["sign"])];case 5:return h=r.sent(),[4,this.cache.asymmetricKeys.setItem(d,{privateKey:h,publicKey:a.publicKey,requestMethod:t.resourceRequestMethod,requestUri:t.resourceRequestUri})];case 6:return r.sent(),i&&i.endMeasurement({success:!0}),[2,d]}})})},e.prototype.removeTokenBindingKey=function(e){return Object(r.b)(this,void 0,void 0,function(){return Object(r.d)(this,function(t){switch(t.label){case 0:return[4,this.cache.asymmetricKeys.removeItem(e)];case 1:return t.sent(),[4,this.cache.asymmetricKeys.containsKey(e)];case 2:return[2,!t.sent()]}})})},e.prototype.clearKeystore=function(){return Object(r.b)(this,void 0,void 0,function(){return Object(r.d)(this,function(e){switch(e.label){case 0:return[4,this.cache.clear()];case 1:return[2,e.sent()]}})})},e.prototype.signJwt=function(e,t,n){var i;return Object(r.b)(this,void 0,void 0,function(){var a,s,c,u,p,h,f,m,g,y,v,b,S;return Object(r.d)(this,function(r){switch(r.label){case 0:return a=null===(i=this.performanceClient)||void 0===i?void 0:i.startMeasurement(o.E.CryptoOptsSignJwt,n),[4,this.cache.asymmetricKeys.getItem(t)];case 1:if(!(s=r.sent()))throw d.a.createSigningKeyNotFoundInStorageError(t);return[4,this.browserCrypto.exportJwk(s.publicKey)];case 2:return c=r.sent(),u=l.a.getSortedObjectString(c),p=this.b64Encode.urlEncode(JSON.stringify({kid:t})),h=o.z.getShrHeaderString({kid:p,alg:c.alg}),f=this.b64Encode.urlEncode(h),e.cnf={jwk:JSON.parse(u)},m=this.b64Encode.urlEncode(JSON.stringify(e)),g=f+"."+m,y=l.a.stringToArrayBuffer(g),[4,this.browserCrypto.sign(s.privateKey,y)];case 3:return v=r.sent(),b=this.b64Encode.urlEncodeArr(new Uint8Array(v)),S=g+"."+b,a&&a.endMeasurement({success:!0}),[2,S]}})})},e.prototype.hashString=function(e){return Object(r.b)(this,void 0,void 0,function(){var t,n;return Object(r.d)(this,function(r){switch(r.label){case 0:return[4,this.browserCrypto.sha256Digest(e)];case 1:return t=r.sent(),n=new Uint8Array(t),[2,this.b64Encode.urlEncodeArr(n)]}})})},e.POP_KEY_USAGES=["sign","verify"],e.EXTRACTABLE=!0,e}()},function(e,t,n){var r,o;!function(i,a){void 0===(o="function"==typeof(r=a)?r.call(t,n,t,e):r)||(e.exports=o)}(window,function(){"use strict";function e(e){var t=parseFloat(e);return-1==e.indexOf("%")&&!isNaN(t)&&t}var t="undefined"==typeof console?function(){}:function(e){console.error(e)},n=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],r=n.length;function o(e){var n=getComputedStyle(e);return n||t("Style returned "+n+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),n}var i,a=!1;function s(t){if(function(){if(!a){a=!0;var t=document.createElement("div");t.style.width="200px",t.style.padding="1px 2px 3px 4px",t.style.borderStyle="solid",t.style.borderWidth="1px 2px 3px 4px",t.style.boxSizing="border-box";var n=document.body||document.documentElement;n.appendChild(t);var r=o(t);i=200==Math.round(e(r.width)),s.isBoxSizeOuter=i,n.removeChild(t)}}(),"string"==typeof t&&(t=document.querySelector(t)),t&&"object"==typeof t&&t.nodeType){var c=o(t);if("none"==c.display)return function(){for(var e={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},t=0;t<r;t++)e[n[t]]=0;return e}();var u={};u.width=t.offsetWidth,u.height=t.offsetHeight;for(var l=u.isBorderBox="border-box"==c.boxSizing,d=0;d<r;d++){var p=n[d],h=c[p],f=parseFloat(h);u[p]=isNaN(f)?0:f}var m=u.paddingLeft+u.paddingRight,g=u.paddingTop+u.paddingBottom,y=u.marginLeft+u.marginRight,v=u.marginTop+u.marginBottom,b=u.borderLeftWidth+u.borderRightWidth,S=u.borderTopWidth+u.borderBottomWidth,E=l&&i,C=e(c.width);!1!==C&&(u.width=C+(E?0:m+b));var T=e(c.height);return!1!==T&&(u.height=T+(E?0:g+S)),u.innerWidth=u.width-(m+b),u.innerHe
2ight=u.height-(g+S),u.outerWidth=u.width+y,u.outerHeight=u.height+v,u}}return s})},function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n(0),o=n(95),i=n(24),a=n(11),s=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},u=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}},l=function(){function e(e,t,n){this.document=e,this.titleService=t,this.configService=n,this.setUrl()}var t,n;return e.prototype.setNoIndexNoFollow=function(e){e?this.getOrCreateMetaTag("robots").setAttribute("content","noindex, nofollow"):this.getAndDeleteMetaTag("robots")},e.prototype.setTitle=function(e){var t=this.document.querySelector("main.content").getAttribute("data-host-country"),n=e+" | Knight Frank"+(t?" "+t:""),r=this.getOrCreateMetaTag("title");r.setAttribute("property","og:title"),r.setAttribute("content",n),this.titleService.setTitle(n)},e.prototype.setCanonical=function(e){var t=this.getOrCreateLinkTag("canonical");""!==e&&void 0!==e&&null!==e||(e=this.document.location.href.split("?")[0]),t.setAttribute("href",e)},e.prototype.setAlternate=function(){for(var e=this.document.querySelectorAll('link[rel="alternate"]'),t=0;t<e.length;++t)this.document.head.removeChild(e.item(t))},e.prototype.setMetaDescription=function(e){var t=this.getOrCreateMetaTag("description");t.setAttribute("property","og:description"),t.setAttribute("content",e)},e.prototype.setUrl=function(){var e=this.document.location.href,t=this.getOrCreateMetaTag("url");t.setAttribute("content","og:url"),t.setAttribute("content",e)},e.prototype.setImages=function(e){for(var t=this.document.querySelectorAll('meta[name="image"]'),n=0;n<t.length;++n)this.document.head.removeChild(t.item(n));for(var r=0,o=e;r<o.length;r++){var i=o[r],a=this.getOrCreateMetaTag("image");a.setAttribute("property","og:image"),a.setAttribute("content",i),this.document.head.appendChild(a)}},e.prototype.getOrCreateMetaTag=function(e){var t=this.document.querySelector('meta[name="'+e+'"]');return t||((t=this.document.createElement("meta")).setAttribute("name",e),this.document.head.appendChild(t)),t},e.prototype.getOrCreateLinkTag=function(e){var t=this.document.querySelector('link[rel="'+e+'"]');return t||((t=this.document.createElement("link")).setAttribute("rel",e),this.document.head.appendChild(t)),t},e.prototype.getAndDeleteMetaTag=function(e){var t=this.document.querySelector('meta[name="'+e+'"]');null!==t&&this.document.head.removeChild(t)},e=s([Object(r.Injectable)(),u(0,Object(r.Inject)(i.DOCUMENT)),c("design:paramtypes",[Object,"function"==typeof(t=void 0!==o.c&&o.c)?t:Object,"function"==typeof(n=void 0!==a.a&&a.a)?n:Object])],e)}()},function(e,t,n){"use strict";n.d(t,"a",function(){return d});var r=n(0),o=n(11),i=n(8),a=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c="{host}/property/{ref}/images/{resid}-{type}.jpg",u="{host}/property/{ref}/floorplans/en/{ref}-en-floorplan-{resid}-{type}.pdf",l="?cio=true&mark={watermarkResource}".replace(/{watermarkResource}/g,"/shared/watermark/kf-watermark-{type}.png"),d=function(){function e(e){this.configService=e}var t;return e.prototype.getLink=function(e,t,n,r){var o=this.configService.resourceHost(),a="";switch(n){case i.ResourceTypeEnum.Brochure:a="{host}/property/{ref}/brochures/en/{ref}-en-brochure-{resid}-{type}.pdf";break;case i.ResourceTypeEnum.FloorPlan:case i.ResourceTypeEnum.FloorPlan:a=u;break;case i.ResourceTypeEnum.FloorPlanImage:a="{host}/property/{ref}/floorplans/en/{resid}-{type}.png";break;case i.ResourceTypeEnum.EPCGraph:a="{host}/property/{ref}/epcgraphs/en/{resid}-{type}.png";break;case i.ResourceTypeEnum.EPCDocument:a="{host}/property/{ref}/epcgraphs/en/{ref}-en-epcgraph-{resid}-{type}.pdf";break;default:a=void 0!==r&&r?c+l:c}return a.replace(/{locale}/g,this.configService.getLocale()).replace(/{host}/g,o).replace(/{ref}/g,e.toLowerCase()).replace(/{resid}/g,t).replace(/{type}/g,n.toString())},e.prototype.requiresWatermark=function(e,t){return void 0!==e&&!1!==e&&"hk"===t.toLowerCase()},e=a([Object(r.Injectable)(),s("design:paramtypes",["function"==typeof(t=void 0!==o.a&&o.a)?t:Object])],e)}()},function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r=n(0),o=n(23),i=n(38),a=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){function e(e){var t=this;
2this.router=e,this.redirectedFromLoginSubject=new i.a(!1),this.redirectedFromLogin$=this.redirectedFromLoginSubject.asObservable(),this.routerSubscription=this.router.events.subscribe(function(e){e instanceof o.f&&t.setRedirectedStatus(!1)})}var t;return e.prototype.setRedirectedStatus=function(e){this.redirectedFromLoginSubject.next(e)},e.prototype.ngOnDestroy=function(){this.routerSubscription&&this.routerSubscription.unsubscribe()},e=a([Object(r.Injectable)({providedIn:"root"}),s("design:paramtypes",["function"==typeof(t=void 0!==o.g&&o.g)?t:Object])],e)}()},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r=n(0),o=n(39),i=n(8),a=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){function e(e){this.eventService=e}var t;return e.prototype.ngOnInit=function(){this.eventService.broadcast(i.EventTypeEnum.InitialLoadComplete)},e=a([Object(r.Component)({selector:"not-found",template:n(709)}),s("design:paramtypes",["function"==typeof(t=void 0!==o.a&&o.a)?t:Object])],e)}()},function(e,t,n){"use strict";var r;n.d(t,"a",function(){return r}),function(e){e[e.Residential="Residential"]="Residential",e[e.Commercial="Commercial"]="Commercial"}(r||(r={}))},function(e,t,n){"use strict";(function(e,r){n.d(t,"a",function(){return O});var o=n(0),i=n(23),a=n(282),s=(n.n(a),n(11)),c=n(61),u=n(29),l=n(152),d=n(154),p=n(32),h=n(211),f=n(116),m=n(148),g=n(98),y=n(96),v=n(8),b=n(289),S=n(290),E=n(125),C=n(39),T=n(198),w=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},_=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},I=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?o(e.value):function(e){return e instanceof n?e:new n(function(t){t(e)})}(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())})},P=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},R=48,O=function(){function t(e,t,n,r,o,i,a,s,c,u,l,d,p,h){var f=this;this.route=e,this.translateService=t,this.urlHelperService=n,this.filterOptionsService=r,this.pageService=o,this.propertyService=i,this.propertyDetailsLoaderService=a,this.configService=s,this.locationService=c,this.tagCmdService=u,this.tracking=l,this.currenciesService=d,this.router=p,this.eventService=h,this.state=new v.PropertyListState,this.loading=!0,this.filtersChanged=!1,this.noresults=!1,this.relaxedResults=!0,this.enableSingleSearch=!1,this.enableOccupierCrossSell=!1,this.showGetInTouchBanner=!1,this.isDistanceAllowed=!1,this.distanceOptions=[],this.pageSize=R,this.locationSlugHasNoLatLng=!1,this.hoverProperty=null,this.isLoadingPdp=!1,this.paramsChanged=!1,this.state.currency=s.currencies().Default,this.translations=t.getTranslations(),this.state.type.setDefault(this.translations.ALL_TYPES),this.router.events.subscribe(function(e){return f.navigationInterceptor(e)})}var a,O,A,k,M,N,x,L,j,D,F,U,q,B,H,z;return t.prototype.ngOnInit=function(){var t=this;this.scrollToAnimation(),this.route.params.subscribe(function(n){t.parseUrl(n),t.locationService.getLocation(n.location).subscribe(function(n){e.isEmptyObject(n)||(t.location=n,t.locationSlugHasNoLatLng=0===n.Latitude&&0===n.Longitude),t.pageSize=null!=t.location?t.getPageSize():R,t.loadResults(),t.state.copyStateToSnapshot()})}),this.state.onChange(function(e){t.filtersChanged=e})},t.prototype.addClassOnVisible=function(e,t,n){var r=document.querySelector(e),o=document.querySelector(t);r&&o&&new IntersectionObserver(function(e){e.forEach(function(e){e.isIntersecting?o.classList.add(n):o.classList.remove(n)})}).observe(r)},t.prototype.seoMetadata=function(e){this.pageService.setTitle(e.Title),this.pageService.setMetaDescription(e.MetaDescription),this.pageService.setCanonical(e.Canonical),this.pageService.setUrl()},t.prototype.getPageSize=function(){return R},t.prototype.getOptionsForService=function(){var e,t,n,r;switch("studio"===this.state.bedMin&&"studio"===this.state.bedMax?(e=0,t=1):"studio"===this.state.bedMin?(e=0,t=parseInt(this.state.bedMax)):"studio"===this.state.bedMax?(e=parseInt(this.state.bedMin),t=1):(e=parseInt(this.state.bedMin),t=parseInt(this.state.bedMax)),n=this.state.type.toString(),this.state.availability){case v.AvailabilityUrlEnum.Available:r=v.AvailabilityApiEnum.Available;break;case v.AvailabilityUrlEnum.Sold:r=v.AvailabilityApiEnum.Sold;break;default:case v.AvailabilityUrlEnum.AvailableOrSold:r=v.AvailabilityApiEnum.Any}var o={propertyTypes:n,minPrice:parseInt(this.state.priceMin),maxPrice:parseInt(this.state.priceMax),floorAreaMeasurementUnit:this.state.floorUnit,landAreaMeasurementUnit:this.state.acreageUnit,minFloor:parseInt(this.state.floorMin),maxFloor:parseInt(this.state.floorMax),minLand:this.getAcreage(parseInt(this.state.acreageMin),this.state.acreageUnit),maxLand:this.getAcreage(parseInt(this.state.acreageMax),this.state.acreageUnit),division:v.DivisionEnum[this.state.division],type:v.TransactionEnum[this.state.transaction],limit:this.pageSize,offset:this.state.offset,currency:this.state.currency,accessibilityFeatures:this.state.selectedAccessibility.toString(),features:this.state.selectedFeature.toString(),officeIds:null===this.state.officeId?null:this.state.officeId.toString(),order:this.state.order,distance:this.state.selectedDistance,resultType:"Full",minBath:parseInt(this.state.minBaths),lettingType:this.state.lettingType,availability:r,includeDescription:this.state.viewMode===v.DisplayTypeEnum.List};return o.minBed=e,o.maxBed=t,null!==this.state.furnished&&(o.furnished=this.state.furnished),this.state.mapB
2ounds&&(o.geoBoxMaxLat=this.state.mapBounds.northEastLat,o.geoBoxMaxLon=this.state.mapBounds.northEastLon,o.geoBoxMinLat=this.state.mapBounds.southWestLat,o.geoBoxMinLon=this.state.mapBounds.southWestLon),o.location=this.state.slug,o},t.prototype.parseUrl=function(e){var t=this.urlHelperService.getSearchUrlParams(e);if(this.urlHelperService.savelastSearch(t),this.state.slug=t.locationSlug,this.state.division=t.division,this.state.transaction=t.transaction,this.state.type.fromString(t.type),t.beds?this.state.beds=t.beds.toString():this.state.beds="0",this.state.beds.includes("-")&&null!==t.beds){var n=this.state.beds.split("-");this.state.bedMin=n[0].toString(),this.state.bedMax=n[1].toString()}else t.beds?this.state.beds=t.beds.toString():this.state.beds="0",this.state.bedMax="0";this.state.minBaths=t.baths.toString(),this.state.offset=t.offset,t.view&&(this.state.viewMode=t.view),t.priceMin?this.state.priceMin=t.priceMin.toString():this.state.priceMin="0",t.priceMax?this.state.priceMax=t.priceMax.toString():this.state.priceMax="0",this.state.currency=this.currenciesService.getCurrentPlpCurrency(),this.state.selectedAccessibility.fromString(t.accessibility),this.state.selectedFeature.fromString(t.feature),t.distance&&(this.state.selectedDistance=t.distance),t.officeId&&(this.state.officeId=t.officeId),this.state.selectedMoreOptions.clear(),t.feature&&this.state.selectedMoreOptions.fromString(t.feature),t.lettingType&&(this.state.lettingType=t.lettingType),t.availability?this.state.availability=t.availability:T.a.extract("availability",window.location.href)?this.state.availability=this.urlHelperService.getAvailabilityEnumKey(T.a.extract("availability",window.location.href)):this.state.division===v.DivisionEnum.Commercial?this.state.availability=v.AvailabilityUrlEnum.Available:this.state.availability=v.AvailabilityUrlEnum.AvailableOrSold,t.sort&&(this.state.order=t.sort),t.floorMin?this.state.floorMin=t.floorMin.toString():this.state.floorMin="0",t.floorMax?this.state.floorMax=t.floorMax.toString():this.state.floorMax="0","KE"===this.configService.defaultIsoCode()&&t.division===v.DivisionEnum.Commercial?this.state.floorUnit="sqft":this.state.floorUnit=this.filterOptionsService.getDefaultFloorAreaUnit(),t.landUnit?(this.state.acreageUnit=t.landUnit,t.landMin?this.state.acreageMin=t.landMin.toString():this.state.acreageMin="0",t.landMax?this.state.acreageMax=t.landMax.toString():this.state.acreageMax="0"):this.state.acreageUnit=this.filterOptionsService.getDefaultLandAreaUnit(),t.hasOwnProperty("furnished")&&(this.state.furnished=t.furnished),t.mapBounds?this.state.mapBounds=t.mapBounds:this.state.mapBounds=null;var r=this.state.division===v.DivisionEnum.Residential?v.AvailabilityUrlEnum.AvailableOrSold:v.AvailabilityUrlEnum.Available;this.paramsChanged="0"!==this.state.beds||"0"!==this.state.minBaths||"0"!==this.state.priceMax||"0"!==this.state.priceMin||this.state.availability!==r||"0"!==this.state.floorMin||"0"!==this.state.acreageMin||this.state.type.toString()!==this.translations.ALL_TYPES||null!==this.state.furnished||null!==this.state.lettingType&&"any"!=this.state.lettingType||this.state.currency!==this.configService.currencies().Default||void 0!==t.feature||void 0!==t.accessibility},t.prototype.loadResults=function(){var e=this;if(this.state.slug){var t=this.getOptionsForService();this.loading=!0,this.noresults=!1,this.propertyService.getProperties(t).then(function(n){e.propertyResult=n,e.enableOccupierCrossSell=n.IsOccupierCrossSell,e.state.total=n.Total,e.state.heading=n.Heading,e.state.title=n.Title,e.properties=n.Properties,e.noresults=n.InitialQueryFoundNoResults||0===n.Properties.length,e.relaxedResults=n.Relaxed!==v.NspPropertyResult.RelaxedEnum.None,e.isDistanceAllowed=n.IsDistanceAllowed,n.IsDistanceAllowed||(e.state.selectedDistance="0"),e.filterOptionsService.getRadiusOptions().then(function(t){e.distanceOptions=t.Items}),e.seoMetadata(n),e.redirectToDetailsWhenTotalOne(),e.loading=!1,e.kfTracking(n.Properties),e.tagCommanderCall(t,n.Properties),e.showGetInTouchBanner=n.InitialQueryFoundNoResults&&n.Properties.length>0&&e.canShowGetInTouchBanner(),e.showGetInTouchBanner&&e.showGetInTouchBannerInResults(),setTimeout(function(){e.addClassOnVisible("footer","#map","sticky")},0)}).catch(function(){e.loading=!1,e.noresults=!0,e.properties=[],e.isDistanceAllowed=!1})}},t.prototype.canShowGetInTouchBanner=function(){if(window.location.hostname.endsWith("knightfrank.co.uk")||window.location.hostname.endsWith("knightfrank.com")||window.location.hostname.endsWith("localhost")){if(this.location.Slug.includes("uk-greater-london"))return!1;if("GB"==this.location.ISOCode&&this.state.isSales&&this.state.isResidential)return!0}return!1},t.prototype.showGetInTouchBannerInResults=function(){setTimeout(function(){var e=r(".grid-view-switch-container .off-market"),t=r(".results .grid-view-switch-container .item-4");e.insertAfter(t)},500)},t.prototype.onTransactionSwitch=function(e,t){void 0===t&&(t=!1),this.state.transaction=v.TransactionEnum[e],this.state.selectedDistance="0",this.filtersBarComponent.refreshFilters(),t||this.onUpdateButton()},t.prototype.onLocationSearch=function(e){this.state.slug=e.slug,this.state.mapB
2ounds=null,this.state.officeId=null,this.onUpdateButton()},t.prototype.onClearSearch=function(){this.state.slug=this.location.Slug},t.prototype.onUpdateFilters=function(){var e=this;this.scrollToTop(function(){e.updatePath()})},t.prototype.updatePagination=function(){this.state.hasChanges()&&(this.state.copySnapshotToState(),this.filtersChanged=!1),this.updatePath()},t.prototype.updatePath=function(){var e={view:this.state.view,division:this.state.division,transaction:this.state.transaction,locationSlug:this.state.slug,distance:this.state.selectedDistance,type:this.state.type.toString(),officeId:this.state.officeId,currency:this.state.currency,accessibility:this.state.selectedAccessibility.toString(),feature:this.state.selectedFeature.toString(),sort:this.state.order,mapBounds:this.state.mapBounds,offset:this.state.offset,lettingType:this.state.lettingType,availability:this.state.availability,landUnit:this.state.acreageUnit};null!==this.state.furnished&&(e.furnished=this.state.furnished),"0"===this.state.floorMin&&"0"===this.state.floorMax||(e.floorUnit=this.state.floorUnit,"0"!==this.state.floorMin&&(e.floorMin=this.state.floorMin),"0"!==this.state.floorMax&&(e.floorMax=this.state.floorMax)),"0"===this.state.acreageMin&&"0"===this.state.acreageMax||(e.landUnit=this.state.acreageUnit,"0"!==this.state.acreageMin&&(e.landMin=this.state.acreageMin),"0"!==this.state.acreageMax&&(e.landMax=this.state.acreageMax)),"0"!==this.state.bedMin&&"0"!==this.state.bedMax?this.state.beds=this.state.bedMin+"-"+this.state.bedMax:"0"!==this.state.bedMin&&"0"===this.state.bedMax?this.state.beds=this.state.bedMin:"0"===this.state.bedMin&&"0"!==this.state.bedMax?this.state.beds=this.state.bedMin+"-"+this.state.bedMax:this.state.beds="0","0"!==this.state.beds&&(e.beds=this.state.beds),"0"!==this.state.minBaths&&(e.baths=+this.state.minBaths),"0"!==this.state.priceMin&&(e.priceMin=this.state.priceMin),"0"!==this.state.priceMax&&(e.priceMax=this.state.priceMax),this.urlHelperService.navigateToSearch(e)},t.prototype.goToFirstPage=function(){this.state.offset=0},t.prototype.onUpdateButton=function(){var e=this;this.goToFirstPage(),this.scrollToTop(function(){e.updatePath()})},t.prototype.onPage=function(e){var t=this;this.state.offset=e,this.scrollToTop(function(){t.updatePagination()})},t.prototype.trackPropertyBy=function(e,t){return t?t.Number+"-"+t.Price.ConvCurrencyCode:void 0},t.prototype.kfTracking=function(e){for(var t=[],n=0,r=e;n<r.length;n++){var o=r[n];t.push(o.Id)}this.tracking.resultView(t)},t.prototype.tagCommanderCall=function(e,t){var n,r,o;return I(this,void 0,Promise,function(){var i,a,s,c,u=this;return P(this,function(l){switch(l.label){case 0:return[4,this.filterOptionsService.getRadiusOptions()];case 1:return i=l.sent(),a=i.Items.filter(function(e){return e.Value===u.state.selectedDistance}).map(function(e){return e.Label}).toString(),s=null===(n=this.propertyResult.Features)||void 0===n?void 0:n.filter(function(e){return u.state.selectedFeature.contains(e.Id.toString())}).map(function(e){return e.Name}),(c={}).search_keywords=this.state.heading,c.search_division=e.division,c.search_transaction=e.type,c.search_availability=e.availability,c.search_order=e.order,c.search_currency=e.currency,c.search_distance=a,c.search_furnished=null!==this.state.furnished&&this.state.furnished,c.search_viewMode=this.state.viewMode,c.search_features=Array.isArray(s)&&s.length>=1?s.join(", "):"all-features",c.search_propertyTypes=this.state.type.toString(),c.search_priceMin=e.minPrice?e.minPrice.toFixed(2).toString():"0",c.search_priceMax=e.maxPrice?e.maxPrice.toFixed(2).toString():"maximum",c.search_floorAreaMin=e.minFloor?e.minFloor.toFixed(2).toString():"0",c.search_floorAreaMax=e.maxFloor?e.maxFloor.toFixed(2).toString():"maximum",c.search_acresMin=e.minLand?e.minLand.toFixed(2).toString():"0",c.search_acresMax=e.maxLand?e.maxLand.toFixed(2).toString():"maximum",c.search_bedroomsMin=e.minBed?e.minBed.toString():"",c.search_bedroomsMax=e.maxBed?e.maxBed.toString():"",c.search_bathroomsMin=e.minBath?e.minBath.toString():"",c.search_bathroomsMax=e.maxBath?e.maxBath.toString():"",c.search_total_properties=this.state.total.toString(),c.search_letting_type=null===this.state.lettingType?"Undefined":this.state.lettingType,c.search_location=null===(o=null===(r=this.location)||void 0===r?void 0:r.Name)||void 0===o?void 0:o.split(",")[0],c.search_page_number=""+(this.state.offset/R+1),this.tagCmdService.prpTagCmd(t,c),[2]}})})}
2,t.prototype.redirectToDetailsWhenTotalOne=function(){if(this.state.slug.startsWith(c.a)&&1===this.state.total){var e=this.state.slug.substring(c.a.length).toLowerCase(),t=this.properties[0].Number.toLowerCase();e===t&&(this.propertyDetailsLoaderService.goToDetailsPage({reference:t,replaceUrl:!0}),this.propertyService.clearPager())}},t.prototype.getAcreage=function(e,t){return e&&"ha"===t?2.47105*e:e},t.prototype.isMapVisible=function(){return"block"===r("#map").css("display")},t.prototype.scrollToTop=function(e){setTimeout(function(){r("html").animate({scrollTop:0},500,e)},200)},t.prototype.scrollToAnimation=function(){window.scrollTo(0,0)},t.prototype.onPropertyHover=function(e){this.hoverProperty=e},t.prototype.onPropertyUnhover=function(){this.hoverProperty=null},t.prototype.onMapBoundsChange=function(e){var t=this;this.state.mapBounds=v.GeoBounds.fromGoogle(e),this.goToFirstPage(),this.scrollToTop(function(){t.updatePath()})},t.prototype.onMapPropertySelected=function(e){this.state.selectedMapPropertyId=e,e&&setTimeout(function(){var e=document.querySelector(".filters-container").getBoundingClientRect().height,t={scrollTop:r("property.selected").offset().top-e};r("html,body").animate(t,500)},200)},t.prototype.removeFromMoreOptions=function(e){this.state.selectedMoreOptions.contains(e)&&(this.state.selectedMoreOptions.remove(e),this.state.selectedMoreOptions=this.state.selectedMoreOptions.clone())},t.prototype.onSelectDistance=function(e){this.state.selectedDistance=e,this.onUpdateButton()},t.prototype.onSelectDistanceMobile=function(e){this.state.selectedDistance=e},t.prototype.navigationInterceptor=function(e){e instanceof i.f&&(e.url.split("/").filter(function(e){return""!==e}).length<5&&this.onLoadingPdp())},t.prototype.onLoadingPdp=function(){this.isLoadingPdp=!0,this.scrollToAnimation()},w([Object(o.ViewChild)(b.a,{static:!1}),_("design:type","function"==typeof(a=void 0!==b.a&&b.a)?a:Object)],t.prototype,"locationAutocompleteComponent",void 0),w([Object(o.ViewChild)(S.a,{static:!1}),_("design:type","function"==typeof(O=void 0!==S.a&&S.a)?O:Object)],t.prototype,"filtersBarComponent",void 0),t=w([Object(o.Component)({template:n(716),animations:[Object(y.trigger)("cardsTransition",[Object(y.transition)("* <=> *",[Object(y.query)(":enter",[Object(y.style)({opacity:0}),Object(y.stagger)(500,[Object(y.animate)("500ms ease-in",Object(y.style)({opacity:1}))])],{optional:!0}),Object(y.query)(":leave",[Object(y.style)({opacity:1}),Object(y.stagger)(-500,[Object(y.animate)("500ms ease-in",Object(y.style)({opacity:0}))])],{optional:!0})])])]}),_("design:paramtypes",["function"==typeof(A=void 0!==i.a&&i.a)?A:Object,"function"==typeof(k=void 0!==p.a&&p.a)?k:Object,"function"==typeof(M=void 0!==u.a&&u.a)?M:Object,"function"==typeof(N=void 0!==f.a&&f.a)?N:Object,"function"==typeof(x=void 0!==h.a&&h.a)?x:Object,"function"==typeof(L=void 0!==c.c&&c.c)?L:Object,"function"==typeof(j=void 0!==m.a&&m.a)?j:Object,"function"==typeof(D=void 0!==s.a&&s.a)?D:Object,"function"==typeof(F=void 0!==g.a&&g.a)?F:Object,"function"==typeof(U=void 0!==l.a&&l.a)?U:Object,"function"==typeof(q=void 0!==d.a&&d.a)?q:Object,"function"==typeof(B=void 0!==E.a&&E.a)?B:Object,"function"==typeof(H=void 0!==i.g&&i.g)?H:Object,"function"==typeof(z=void 0!==C.a&&C.a)?z:Object])],t)}()}).call(t,n(5),n(5))},function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n(0),o=n(11),i=n(27),a=n(67),s=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},u=function(){function e(e,t,n){this.$log=e,this.storageService=t,this.configService=n}var t,n,u;return e.prototype.getProperty=function(e,t){var n="kfsearch-prop-"+e.toLowerCase()+"-"+t+"-"+this.configService.getLocale(),r=this.storageService.getLocalStorageItem(n);return r||null},e.prototype.saveProperty=function(e,t){var n="kfsearch-prop-"+e.Number.toLowerCase()+"-"+t+"-"+this.configService.getLocale(),r="kfsearch-propVisited-"+e.Number.toLowerCase();this.storageService.setLocalStorageItem(n,e,1),this.storageService.setLocalStorageItem(r,!0,1)},e.prototype.getDevelopment=function(e){var t="kfsearch-propdev-"+e.toLowerCase()+"-"+this.configService.getLocale(),n=this.storageService.getLocalStorageItem(t);return n||null},e.prototype.saveDevelopment=function(e){var t="kfsearch-propdev-"+e.Number.toLowerCase()+"-"+this.configService.getLocale();this.storageService.setLocalStorageItem(t,e,1)},e.prototype.isPropertyVisited=function(e){var t="kfsearch-propVisited-"+e.toLowerCase();return!!this.storageService.getLocalStorageItem(t)},e=s([Object(r.Injectable)(),c("design:paramtypes",["function"==typeof(t=void 0!==i.a&&i.a)?t:Object,"function"==typeof(n=void 0!==a.a&&a.a)?n:Object,"function"==typeof(u=void 0!==o.a&&o.a)?u:Object])],e)}()},function(e,t,n){"use strict";n.d(t,"a",function(){return g});var r=n(0),o=n(96),i=n(11),a=n(61),s=n(32),c=n(98),u=n(52),l=n(38),d=n(29),p=n(8),h=n(23),f=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},m=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},g=function(){function e(e,t,n,o,i,a){var s=this;this.locationService=e,this.translateService=t,this.config=n,this.propertyService=o,this.urlHelperService=i,this.route=a,this.onSelect=new r.EventEmitter,this.onKey=new r.EventEmitter,this.onPressEnter=new r.EventEmitter,this.onClearInput=new r.EventEmitter,this.label="",this.ignoreKeyUpdate=!1,this.slug="",this.shadowLabel="",this.searchResults={locations:null,developments:[]},this.freeTextString="",this.showResults=!1,this.shouldShowDevelopments=!1,this.totalResults=0,this.searchSubject=ne
2w l.f,this.selectedResultIdx=-1,this.selectedResult=null,this.selClass="selected-search-result",this.resiSlug="",this.salesSlug="",this.searchSubject.pipe(Object(u.e)(300)).subscribe(function(e){s.getAutocompleteResults(e)}),this.resiSlug=this.urlHelperService.divisionToSlug(p.DivisionEnum.Residential),this.salesSlug=this.urlHelperService.transactionToSlug(p.TransactionEnum.Sales)}var t,g,y,v,b,S,E,C,T,w,_,I,P;return e.prototype.clickOutside=function(e){this.showResults&&(this.autoComplete.nativeElement.contains(e.target)||this.clearResults())},e.prototype.ngOnChanges=function(e){var t,n=this;this.route.params.subscribe(function(e){var t=n.urlHelperService.getSearchUrlParams(e);t.division===p.DivisionEnum.Residential&&t.transaction===p.TransactionEnum.Sales&&(n.shouldShowDevelopments=!0)}),(null===(t=e.initialLocationName)||void 0===t?void 0:t.currentValue)&&(this.label=e.initialLocationName.currentValue)},e.prototype.ngOnInit=function(){var e;this.placeholder=this.config.autocompletePlaceholder,this.label=null!==(e=this.initialLocationName)&&void 0!==e?e:this.label},e.prototype.onSearchInput=function(e){var t=e.code;if("Escape"===t)return this.clearResults(),this.clearSelectedResult(),void(this.label="");if("Enter"===t)return this.selectedResult?(this.selectedResult.click(),this.clearResults(),void this.onPressEnter.emit()):(this.selectedResultIdx=0,this.setSelectedResult(),this.selectedResult.click(),void("development"!==this.selectedResult.getAttribute("data-result-type")&&this.onPressEnter.emit()));if("ArrowDown"===t){if(!this.showResults)return;return this.selectedResultIdx<this.totalResults?this.selectedResultIdx++:this.selectedResultIdx=0,void this.setSelectedResult()}if("ArrowUp"===t){if(!this.showResults)return;return this.selectedResultIdx<=0?this.selectedResultIdx=this.totalResults:this.selectedResultIdx--,void this.setSelectedResult()}this.searchSubject.next(this.searchInput.nativeElement.value)},e.prototype.getAutocompleteResults=function(e){this.totalResults=0,this.clearSelectedResult();var t=this;e.length?(this.locationService.getAutocomplete(e.trim(),this.config.defaultIsoCode()).subscribe(function(e){t.searchResults.locations=e,t.totalResults+=e.Items.length,e.Items.length&&(t.shadowLabel=e.Items[0].Label,t.slug=e.Items[0].Value,t.onKey.emit(t.slug))}),e.length>2&&this.shouldShowDevelopments&&this.propertyService.getDevelopmentAutocomplete(e,3,this.config.defaultIsoCode(),window.location.hostname).subscribe(function(e){t.searchResults.developments=e,t.totalResults+=e.length}),e.length<3&&this.searchResults.developments.length&&(this.searchResults.developments.length=0),this.freeTextString=this.translateService.translate("VIEW_PROPERTIES_CONTAINING",{term:'<strong>"'+e.trim()+'"</strong>'}),this.showResults=!0):this.clearResults()},e.prototype.onResultClick=function(e,t){"freetext"===e&&this.onSelect.emit({slug:""+a.a+this.searchInput.nativeElement.value,label:this.translateService.translate("VIEW_PROPERTIES_CONTAINING",{term:this.searchInput.nativeElement.value})}),"location"===e&&this.onSelect.emit({slug:this.searchResults.locations.Items[t].Value,label:this.searchResults.locations.Items[t].Label}),this.showResults=!1},e.prototype.onClearButtonClick=function(e){this.label="",this.shadowLabel="",this.clearResults(),this.onClearInput.emit(),this.searchInput.nativeElement.focus(),e.stopPropagation()},e.prototype.clearResults=function(){this.showResults=!1,this.searchResults.developments.length=0,this.searchResults.locations=null},e.prototype.setSelectedResult=function(){var e,t=this.resultsList.nativeElement.querySelector("[data-pos='"+this.selectedResultIdx+"']");null===(e=this.resultsList.nativeElement.querySelector("."+this.selClass))||void 0===e||e.classList.remove(this.selClass),t.classList.add(this.selClass),this.selectedResult=t},e.prototype.clearSelectedResult=function(){var e,t;this.selectedResult=null,this.selectedResultIdx=-1,null===(t=null===(e=this.resultsList)||void 0===e?void 0:e.nativeElement.querySelector("."+this.selClass))||void 0===t||t.classList.remove(this.selClass)},e.prototype.ngOnDestroy=function(){this.searchSubject.complete()},f([Object(r.Input)(),m("design:type",String)],e.prototype,"initialLocationName",void 0),f([Object(r.Output)(),m("design:type",Object)],e.prototype,"onSelect",void 0),f([Object(r.Output)(),m("design:type",Object)],e.prototype,"onKey",void 0),f([Object(r.Output)(),m("design:type",Object)],e.prototype,"onPressEnter",void 0),f([Object(r.Output)(),m("design:type",Object)],e.prototype,"onClearInput",void 0),f([Object(r.ViewChild)("searchInput",{static:!1}),m("design:type","function"==typeof(t=void 0!==r.ElementRef&&r.ElementRef)?t:Object)],e.prototype,"searchInput",void 0),f([Object(r.ViewChild)("autoComplete"),m("design:type","function"==typeof(g=void 0!==r.ElementRef&&r.ElementRef)?g:Object)],e.prototype,"autoComplete",void 0),f([Object(r.ViewChild)("resultsList"),m("design:type","function"==typeof(y=void 0!==r.ElementRef&&r.ElementRef)?y:Object)],e.prototype,"resultsList",void 0),f([Object(r.ViewChild)("locationList"),m("design:type","function"==typeof(v=void 0!==r.ElementRef&&r.ElementRef)?v:Object)],e.prototype,"locationList",void 0),f([Object(r.ViewChild)("developmentList"),m("design:type","function"==typeof(b=void 0!==r.ElementRef&&r.ElementRef)?b:Object)],e.prototype,"developmentList",void 0),f([Object(r.ViewChild)("freetextResult"),m("design:type","function"==typeof(S=void 0!==r.ElementRef&&r.ElementRef)?S:Object)],e.prototype,"freetextResult",void 0),f([Object(r.HostListener)("document:click",["$event"]),Object(r.HostListener)("document:touchstart",["$event"]),m("design:type",Function),m("design:paramtypes",["function"==typeof(E="undefined"!=typeof MouseEvent&&MouseEvent)?E:Object]),m("design:returntype",void 0)],e.prototype,"clickOutside",null),e=f([Object(r.Component)({selector:"location-autocomplete",template:n(714),animations:[Object(o.trigger)("onOff",[Object(o.transition)(":enter",[Object(o.style)({opacity:0}
2),Object(o.animate)("300ms ease",Object(o.style)({opacity:1}))]),Object(o.transition)(":leave",[Object(o.style)({opacity:1}),Object(o.animate)("300ms ease",Object(o.style)({opacity:0}))])])]}),m("design:paramtypes",["function"==typeof(C=void 0!==c.a&&c.a)?C:Object,"function"==typeof(T=void 0!==s.a&&s.a)?T:Object,"function"==typeof(w=void 0!==i.a&&i.a)?w:Object,"function"==typeof(_=void 0!==a.c&&a.c)?_:Object,"function"==typeof(I=void 0!==d.a&&d.a)?I:Object,"function"==typeof(P=void 0!==h.a&&h.a)?P:Object])],e)}()},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return y});var r=n(0),o=n(23),i=n(11),a=n(32),s=n(116),c=n(39),u=n(67),l=n(54),d=n(8),p=n(89),h=n(125),f=n(29),m=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},g=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},y=function(){function t(e,t,n,o,i,a,s,c,u,l){this.eventService=e,this.filterOptionsService=t,this.route=n,this.storageService=o,this.configService=i,this.singleSearchService=a,this.translateService=s,this.kfCustomCurrencyPipe=c,this.currenciesService=u,this.urlHelperService=l,this.onUpdateFilters=new r.EventEmitter,this.onMobileTransactionSwitch=new r.EventEmitter,this.enableSingleSearch=!1,this.enableCurrencySuffix=!1,this.priceMinOptions=[],this.priceMaxOptions=[],this.floorAreaMinOptions=[],this.floorAreaMaxOptions=[],this.landAreaMinOptions=[],this.landAreaMaxOptions=[],this.reset=1e17*Math.random(),this.divisionOptions=[],this.propertyTypeOptions=[],this.availabilityOptions=[],this.moreOptions=[],this.furnishingOptions=[],this.bedMinOptions=[],this.bedMaxOptions=[],this.lettingTypeOptions=[],this.bathOptions=[],this.accessibilityOptions=[],this.featuresOptions=[],this.distanceOptions=[],this.isDistanceAllowed=!1,this.ssShowApply=!1,this.translations=s.getTranslations(),this.allTypes=this.translations.ALL_TYPES,this.enableCurrencySuffix=this.configService.currencySuffix()}var y,v,b,S,E,C,T,w,_,I,P,R,O,A;return t.prototype.ngOnChanges=function(e){var t=this;void 0!==this.propertyResult&&void 0!==this.pageState&&(this.isDistanceAllowed=this.propertyResult.IsDistanceAllowed,this.propertyResult.IsDistanceAllowed||(this.pageState.selectedDistance="0"),this.bindDefaultFilterOptions(),this.setFiltersFromSearch(this.propertyResult),this.pageState.copyStateToSnapshot(),this.setShowApply(),setTimeout(function(){t.setPriceMinPlaceholder(),t.setPriceMaxPlaceholder()},500))},t.prototype.updateFilters=function(){this.pageState.showFilters=!1,this.onUpdateFilters.emit()},t.prototype.refreshFilters=function(){var e=this;this.pageState.priceMin="0",this.pageState.priceMax="0",this.pageState.selectedMoreOptions.getValues().forEac
2h(function(t){e.pageState.selectedFeature.remove(t)}),this.pageState.selectedMoreOptions.clear(),this.bindDefaultFilterOptions(),this.setFiltersFromSearch(this.propertyResult)},t.prototype.onToggleFilters=function(e){switch(e){case"mobile":this.ssShowApply=!1,this.pageState.showMobileOptions=!this.pageState.showMobileOptions,this.pageState.showMobileOptions&&(this.pageState.showFilters=!1);break;case"desktop":this.pageState.showFilters=!this.pageState.showFilters,this.pageState.showFilters&&(this.pageState.showMobileOptions=!1,this.eventService.broadcast(d.EventTypeEnum.RedrawHistograms)),this.setShowApply()}},t.prototype.onAvailabilityChange=function(e){var t=e.target;this.pageState.availability=this.urlHelperService.getAvailabilityEnumKey(t.id)},t.prototype.onSelectDistance=function(e){this.pageState.selectedDistance=e},t.prototype.onSelectBathrooms=function(e){this.pageState.minBaths=e},t.prototype.onSelectPropertyType=function(e){this.pageState.type=e},t.prototype.onSelectFurnishingType=function(e){this.pageState.furnished="furnished"===e||"unfurnished"!==e&&null},t.prototype.onCancel=function(){this.clearFilters(),this.updateFilters(),this.onToggleSubFilters()},t.prototype.onToggleSubFilters=function(t){(void 0===t||t instanceof MouseEvent)&&(e("body").toggleClass("ui-overflow-hidden"),e(".filter-container").toggleClass("opened")),setTimeout(function(){document.querySelector(".sub-filters").scrollTo(0,0);for(var e=document.querySelectorAll(".see-more-less"),t=0;t<e.length;t++){var n=e[t].parentElement.classList;n.contains("expanded")&&n.remove("expanded")}},500)},t.prototype.onApplyFilters=function(){this.pageState.offset=0,this.updateFilters(),this.onToggleSubFilters()},t.prototype.toggleDetails=function(e){if(e instanceof MouseEvent||e instanceof KeyboardEvent&&"Enter"===e.key){var t=e.target;t.classList.contains("see-more-less")&&t.parentElement.classList.toggle("expanded")}},t.prototype.onSelectAccessibility=function(e){this.pageState.selectedAccessibility=e},t.prototype.onSelectFeature=function(e){this.pageState.selectedFeature=e,e.contains(s.b.Investment)?this.pageState.selectedMoreOptions.add(s.b.Investment):this.pageState.selectedMoreOptions.remove(s.b.Investment),e.contains(s.b.Managed)?this.pageState.selectedMoreOptions.add(s.b.Managed):this.pageState.selectedMoreOptions.remove(s.b.Managed),this.pageState.selectedMoreOptions=this.pageState.selectedMoreOptions.clone()},t.prototype.onSelectMoreOptions=function(e){this.pageState.selectedMoreOptions=e,e.contains(s.b.Investment)?this.pageState.selectedFeature.add(s.b.Investment):this.pageState.selectedFeature.remove(s.b.Investment),e.contains(s.b.Managed)?this.pageState.selectedFeature.add(s.b.Managed):this.pageState.selectedFeature.remove(s.b.Managed),this.pageState.selectedFeature=this.pageState.selectedFeature.clone()},t.prototype.onSelectLettingType=function(e){this.pageState.lettingType="0"===e?null:e},t.prototype.onSelectPriceMin=function(e){var t=this;this.filterOptionsService.getPriceOptions(this.pageState.transaction,this.pageState.division,this.configService.countrySettings(),this.pageState.slug,this.pageState.currency,this.resultPriceMax,!0).then(function(n){parseInt(e)>parseInt(t.pageState.priceMax)&&"0"!==t.pageState.priceMax?(t.pageState.priceMin=t.pageState.priceMax,t.pageState.priceMax=e,t.setPriceMinPlaceholder()):(t.pageState.priceMin=e,t.setPriceMinPlaceholder()),t.priceMaxOptions=t.spliceUkCommercialPrices(n.Items).filter(function(e){return+e.Value>
2=+t.pageState.priceMin||0==+e.Value})}),this.setShowApply()},t.prototype.setPriceMinPlaceholder=function(){var e,t=null===(e=this.minPriceFilter)||void 0===e?void 0:e.nativeElement.querySelector(".simpleselect");if("0"!==this.pageState.priceMin){var n=this.kfCustomCurrencyPipe.transform(this.pageState.priceMin,this.pageState.currency,"symbol","1.0-0",!1);null===t||void 0===t||t.setAttribute("data-price-min",n)}else"0"===this.pageState.priceMin&&(null===t||void 0===t||t.removeAttribute("data-price-min"))},t.prototype.onSelectPriceMax=function(e){var t=this;this.pageState.priceMax=e,this.setPriceMaxPlaceholder(),this.filterOptionsService.getPriceOptions(this.pageState.transaction,this.pageState.division,this.configService.countrySettings(),this.pageState.slug,this.pageState.currency,this.resultPriceMax,!1).then(function(e){"0"===t.pageState.priceMax?t.priceMinOptions=e.Items:t.priceMinOptions=e.Items.filter(function(e){return+e.Value<=+t.pageState.priceMax})}),this.setShowApply()},t.prototype.setPriceMaxPlaceholder=function(){var e,t=null===(e=this.maxPriceFilter)||void 0===e?void 0:e.nativeElement.querySelector(".simpleselect");if("0"!==this.pageState.priceMax){var n=this.kfCustomCurrencyPipe.transform(this.pageState.priceMax,this.pageState.currency,"symbol","1.0-0",!1);null===t||void 0===t||t.setAttribute("data-price-max",n)}else"0"===this.pageState.priceMax&&(null===t||void 0===t||t.removeAttribute("data-price-max"))},t.prototype.onSelectBedMin=function(e){var t=this;this.filterOptionsService.getBedRoomsOptions(!0).then(function(n){t.pageState.bedMin=e,(parseInt(e)>parseInt(t.pageState.bedMax)||"studio"===t.pageState.bedMax)&&(t.pageState.bedMax="0"),t.bedMaxOptions="studio"===e?n.Items:n.Items.filter(function(e){return e.Value>=t.pageState.bedMin&&"studio"!==e.Value}),t.bedMaxOptions.find(function(e){return"0"===e.Value})||t.bedMaxOptions.unshift({Value:"0",Label:"Max"})})},t.prototype.onSelectBedMax=function(e){this.pageState.bedMax=e},t.prototype.onSelectFloorAreaMin=function(e){var t=this;this.filterOptionsService.getFloorAreaOptions(this.propertyResult.FloorAreas.Max,!0).then(function(n){parseInt(e)>parseInt(t.pageState.floorMax)&&"0"!==t.pageState.floorMax?(t.pageState.floorMin=t.pageState.floorMax,t.pageState.floorMax=e):t.pageState.floorMin=e,t.floorAreaMaxOptions=n.Items.filter(function(e){return e.Value>=t.pageState.floorMin}),t.floorAreaMaxOptions.find(function(e){return"0"===e.Value})||t.floorAreaMaxOptions.unshift({Value:"0",Label:"Max"})})},t.prototype.onSelectFloorAreaMax=function(e){this.pageState.floorMax=e},t.prototype.onSelectLandAreaMin=function(e){var t=this;this.filterOptionsService.getLandAreaOptions(this.propertyResult.LandAreas.Max,!0).then(function(n){parseInt(e)>parseInt(t.pageState.acreageMax)&&"0"!==t.pageState.acreageMax?(t.pageState.acreageMin=t.pageState.acreageMax,t.pageState.acreageMax=e):t.pageState.acreageMin=e,t.landAreaMaxOptions=n.Items.filter(function(e){return e.Value>=t.pageState.acreageMin}),t.landAreaMaxOptions.find(function(e){return"0"===e.Value})||t.landAreaMaxOptions.unshift({Value:"0",Label:"Max"})})},t.prototype.onSelectLandAreaMax=function(e){this.pageState.acreageMax=e},t.prototype.onSelectCurrency=function(e){var t=this;this.setCurrency(e),this.pageState.priceMin="0",this.pageState.priceMax="0",this.setPriceMinPlaceholder(),this.setPriceMaxPlaceholder(),this.filterOptionsService.getPriceOptions(this.pageState.transaction,this.pageState.division,this.configService.countrySettings(),this.pageState.slug,this.pageState.currency,this.propertyResult.Prices.Max,!1).then(function(e){t.priceMinOptions=e.Items}),this.filterOptionsService.getPriceOptions(this.pageState.transaction,this.pageState.division,this.configService.countrySettings(),this.pageState.slug,this.pageState.currency,this.propertyResult.Prices.Max,!0).then(function(e){t.priceMaxOptions=t.spliceUkCommercialPrices(e.Items)}),this.setShowApply()},t.prototype.mobileTransactionSwitch=function(e){this.onMobileTransactionSwitch.emit(e)},t.prototype.bindDefaultFilterOptions=function(){var e=this;this.filterOptionsService.getBedRoomsOptions(!1).then(function(t){e.bedMinOptions=t.Items}),this.filterOptionsService.getBedRoomsOptions(!0).then(function(t){e.bedMaxOptions=t.Items}),this.filterOptionsService.getRadiusOptions().then(function(t){e.distanceOptions=t.Items}),this.moreOptions=[],this.pageState.isResidential&&this.pageState.isLettings?(this.filterOptionsService.getLettingTypeOptions().then(function(t){e.lettingTypeOptions=t.Items}),this.filterOptionsService.getFurnishingOptions().then(function(t){e.furnishingOptions=t.Items})):(this.pageState.furnished=null,this.pageState.lettingType=null),this.filterOptionsService.getBathRoomsOptions().then(function(t){var n;e.pageState.minBaths=null!==(n=e.pageState.minBaths)&&void 0!==n?n:t.Default,e.bathOptions=t.Items}),this.pageState.isResidential&&this.pageState.isLettings?(this.filterOptionsService.getResLetAvailabilityOptions().then(function(t){e.availabilityOptions=t.Items}),this.filterOptionsService.getResLetMoreOptions().then(function(t){e.moreOptions=t.Items})):this.pageState.isResidential&&this.pageState.isSales?this.filterOptionsService.getResSaleAvailabilityOptions().then(function(t){e.availabilityOptions=t.Items}):this.pageState.isCommercial&&this.pageState.isLettings?this.filterOptionsService.getComLetAvailabilityOptions().then(function(t){e.availabilityOptions=t.Items}):this.pageState.isCommercial&&this.pageState.isSales&&(this.filterOptionsService.getComSaleAvailabilityOptions().then(function(t){e.availabilityOptions=t.Items}),this.filterOptionsService.getComSaleMoreOptions().then(function(t){e.moreOptions=t.Items}))},t.prototype.setFiltersFromSearch=function(e){var t=this;if(e.SearchParameters&&e.SearchParameters.ResultType!==d.PropertySearchRequestParam
2s.ResultTypeEnum.DetailsOnly){this.resultPriceMax=e.Prices.Max,this.filterOptionsService.getPriceOptions(this.pageState.transaction,this.pageState.division,this.configService.countrySettings(),this.pageState.slug,this.pageState.currency,e.Prices.Max,!1).then(function(e){t.priceMinOptions=e.Items}),this.filterOptionsService.getPriceOptions(this.pageState.transaction,this.pageState.division,this.configService.countrySettings(),this.pageState.slug,this.pageState.currency,e.Prices.Max,!0).then(function(e){t.priceMaxOptions=t.spliceUkCommercialPrices(e.Items)}),this.filterOptionsService.getFloorAreaOptions(e.FloorAreas.Max,!1).then(function(e){t.floorAreaMinOptions=e.Items}),this.filterOptionsService.getFloorAreaOptions(e.FloorAreas.Max,!0).then(function(e){t.floorAreaMaxOptions=e.Items}),this.filterOptionsService.getLandAreaOptions(e.LandAreas.Max,!1).then(function(e){t.landAreaMinOptions=e.Items}),this.filterOptionsService.getLandAreaOptions(e.LandAreas.Max,!0).then(function(e){t.landAreaMaxOptions=e.Items}),this.accessibilityOptions=[];for(var n=0,r=e.AccessibilityFeatures;n<r.length;n++){var o=r[n];this.accessibilityOptions.push({Value:o.Id.toString(),Label:o.Name})}this.featuresOptions=[];var i=e.Features;this.pageState.isResidential&&this.pageState.isLettings&&(i=e.Features.filter(function(e){return e.Id.toString()!==s.b.Managed})),this.pageState.isCommercial&&this.pageState.isSales&&(i=e.Features.filter(function(e){return e.Id.toString()!==s.b.Investment}));for(var a=0,c=i;a<c.length;a++){var u=c[a];this.featuresOptions.push({Value:u.Id.toString(),Label:u.Name})}this.propertyTypeOptions=[];for(var l=0,p=e.PropertyTypes;l<p.length;l++){var h=p[l];this.propertyTypeOptions.push({Value:h.Name.toLowerCase(),Label:h.Name})}window.location.hostname.endsWith("knightfrank.ru")&&(this.propertyTypeOptions=this.propertyTypeOptions.sort(this.dynamicSort("Label")))}},t.prototype.spliceUkCommercialPrices=function(e){return this.pageState.division===d.DivisionEnum.Commercial&&this.pageState.transaction===d.TransactionEnum.Lettings&&(window.location.hostname.includes("gb.cms")||window.location.hostname.includes(".co.uk")||"localhost"===window.location.hostname)&&(e.splice(1,0,{Value:String(10),Label:this.kfCustomCurrencyPipe.transform(10,this.pageState.currency,"symbol-narrow","1.0-0",!1)}),e.splice(2,0,{Value:String(50),Label:this.kfCustomCurrencyPipe.transform(50,this.pageState.currency,"symbol-narrow","1.0-0",!1)})),e},t.prototype.setShowApply=function(){!this.pageState.showFilters&&this.pageState.hasChangesByKeys()?this.ssShowApply=!0:this.ssShowApply=!1},t.prototype.dynamicSort=function(e){var t=1;return"-"===e[0]&&(t=-1,e=e.substr(1)),function(n,r){return(n[e]<r[e]?-1:n[e]>r[e]?1:0)*t}},t.prototype.clearFilters=function(){this.ssShowApply=!1,this.pageState.offset=0,this.pageState.type.clear(),this.pageState.selectedDistance="0",this.pageState.bedMin="0",this.pageState.bedMax="0",this.pageState.minBaths="0",this.pageState.mapBounds=null,this.pageState.priceMin="0",this.pageState.priceMax="0",this.pageState.floorMin="0",this.pageState.floorMax="0",this.pageState.acreageMin="0",this.pageState.acreageMax="0",this.pageState.selectedAccessibility.clear(),this.pageState.selectedFeature.clear(),this.pageState.furnished=null,this.pageState.selectedMoreOptions.clear(),this.pageState.lettingType=null,this.pageState.availability=this.pageState.division===d.DivisionEnum.Residential?d.AvailabilityUrlEnum.AvailableOrSold:d.AvailabilityUrlEnum.Available,this.setCurrency(this.configService.currencies().Default),this.onSelectMoreOptions(this.pageState.selectedMoreOptions),this.setPriceMinPlaceholder(),this.setPriceMaxPlaceholder()},t.prototype.setCurrency=function(e){this.pageState.currency=e,this.currenciesService.setCurrentPlpCurrency(e),this.currenciesService.setCurrentPdpCurrency(e)},m([Object(r.ViewChild)("minPriceFilter",{static:!1}),g("design:type","function"==typeof(y=void 0!==r.ElementRef&&r.ElementRef)?y:Object)],t.prototype,"minPriceFilter",void 0),m([Object(r.ViewChild)("maxPriceFilter",{static:!1}),g("design:type","function"==typeof(v=void 0!==r.ElementRef&&r.ElementRef)?v:Object)],t.prototype,"maxPriceFilter",void 0),m([Object(r.Input)(),g("design:type","function"==typeof(b=void 0!==d.NspPropertyResult&&d.NspPropertyResult.IPropertyResult)?b:Object)],t.prototype,"propertyResult",void 0),m([Object(r.Input)(),g("design:type","function"==typeof(S=void 0!==d.PropertyListState&&d.PropertyListState)?S:Object)],t.prototype,"pageState",void 0),m([Object(r.Output)(),g("design:type",Object)],t.prototype,"onUpdateFilters",void 0),m([Object(r.Output)(),g("design:type",Object)],t.prototype,"onMobileTransactionSwitch",void 0),t=m([Object(r.Component)({selector:"filters-results-bar",template:n(715)}),g("design:paramtypes",["function"==typeof(E=void 0!==c.a&&c.a)?E:Object,"function"==typeof(C=void 0!==s.a&&s.a)?C:Object,"function"==typeof(T=void 0!==o.a&&o.a)?T:Object,"function"==typeof(w=void 0!==u.a&&u.a)?w:Object,"function"==typeof(_=void 0!==i.a&&i.a)?_:Object,"function"==typeof(I=void 0!==l.a&&l.a)?I:Object,"function"==typeof(P=void 0!==a.a&&a.a)?P:Object,"function"==typeof(R=void 0!==p.a&&p.a)?R:Object,"function"==typeof(O=void 0!==h.a&&h.a)?O:Object,"function"==typeof(A=void 0!==f.a&&f.a)?A:Object])],t)}()}).call(t,n(5))},function(e,t,n){"use strict";n.d(t,"a",function(){return l}),n.d(t,"b",function(){return d});var r=n(9),o=n(6),i=n(15),a=n(14),s=n(737),c=n(310),u=n(311),l=function(e){function t(t,n,r,o){var i=e.call(this,t,r,o)||this;return i.COOKIE_LIFE_MULTIPLIER=864e5,i.cacheConfig=n,i.logger=o,i.internalStorage=new c.a,i.browserStorage=i.setupBrowserStorage(i.cacheConfig.cacheLocation),i.temporaryCacheStorage=i.setupTemporaryCacheStorage(i.cacheConfig.temporaryCacheLocation,i.cacheConfig.cacheLocation),n.cacheMigrationEnabled&&(i.migrateCacheEntries(),i.createKeyMaps()),i}return Object(r.c)(t,e),t.prototype.setupBrowserStorage=function(e){switch(e){case a.b.LocalStorage:case a.b.SessionStorage:try{return new s.a(e)}catch(e){this.logger.verbose(e);break}}return this.cacheConfig.cacheLocation=a.b.MemoryStorage,new c.a},t.prototype.setupTemporaryCacheStorage=function(e,t){switch(t){case a.b.LocalStorage:case a.b.SessionStorage:try{return new s.a(e||a.b.SessionStorage)}catch(e){return this.logger.verbose(e),this.internalStorage}case a.b.MemoryStorage:default:return this.internalStorage}},t.prototype.migrateCacheEntries=function(){var e=this,t=o.r.CACHE_PREFIX+"."+o.F.ID_TOKEN,n=o.r.CACHE_PREFIX+"."+o.F.CLIENT_INFO,r=o.r.CACHE_PREFIX+"."+o.F.ERROR,i=o.r.CACHE_PREFIX+"."+o.F.ERROR_DESC,a=[this.browserStorage.getItem(t),this.browserStorage.getItem(n),this.browserStorage.getItem(r),this.browserStorage.getItem(i)];
2[o.F.ID_TOKEN,o.F.CLIENT_INFO,o.F.ERROR,o.F.ERROR_DESC].forEach(function(t,n){return e.migrateCacheEntry(t,a[n])})},t.prototype.migrateCacheEntry=function(e,t){t&&this.setTemporaryCache(e,t,!0)},t.prototype.createKeyMaps=function(){var e=this;this.logger.trace("BrowserCacheManager - createKeyMaps called.");var t=this.getItem(a.p.ACCOUNT_KEYS),n=this.getItem(a.p.TOKEN_KEYS+"."+this.clientId);t&&n?this.logger.verbose("BrowserCacheManager:createKeyMaps - account and token key maps already exist, skipping migration."):this.browserStorage.getKeys().forEach(function(t){var n;if(e.isCredentialKey(t)&&(n=e.getItem(t))){var r=e.validateAndParseJson(n);if(r&&r.hasOwnProperty("credentialType"))switch(r.credentialType){case o.s.ID_TOKEN:if(o.w.isIdTokenEntity(r)){e.logger.trace("BrowserCacheManager:createKeyMaps - idToken found, saving key to token key map"),e.logger.tracePii("BrowserCacheManager:createKeyMaps - idToken with key: "+t+" found, saving key to token key map");var i=o.m.toObject(new o.w,r),a=e.updateCredentialCacheKey(t,i);return void e.addTokenKey(a,o.s.ID_TOKEN)}e.logger.trace("BrowserCacheManager:createKeyMaps - key found matching idToken schema with value containing idToken credentialType field but value failed IdTokenEntity validation, skipping."),e.logger.tracePii("BrowserCacheManager:createKeyMaps - failed idToken validation on key: "+t);break;case o.s.ACCESS_TOKEN:case o.s.ACCESS_TOKEN_WITH_AUTH_SCHEME:if(o.a.isAccessTokenEntity(r)){e.logger.trace("BrowserCacheManager:createKeyMaps - accessToken found, saving key to token key map"),e.logger.tracePii("BrowserCacheManager:createKeyMaps - accessToken with key: "+t+" found, saving key to token key map");var s=o.m.toObject(new o.a,r);a=e.updateCredentialCacheKey(t,s);return void e.addTokenKey(a,o.s.ACCESS_TOKEN)}e.logger.trace("BrowserCacheManager:createKeyMaps - key found matching accessToken schema with value containing accessToken credentialType field but value failed AccessTokenEntity validation, skipping."),e.logger.tracePii("BrowserCacheManager:createKeyMaps - failed accessToken validation on key: "+t);break;case o.s.REFRESH_TOKEN:if(o.L.isRefreshTokenEntity(r)){e.logger.trace("BrowserCacheManager:createKeyMaps - refreshToken found, saving key to token key map"),e.logger.tracePii("BrowserCacheManager:createKeyMaps - refreshToken with key: "+t+" found, saving key to token key map");var c=o.m.toObject(new o.L,r);a=e.updateCredentialCacheKey(t,c);return void e.addTokenKey(a,o.s.REFRESH_TOKEN)}e.logger.trace("BrowserCacheManager:createKeyMaps - key found matching refreshToken schema with value containing refreshToken credentialType field but value failed RefreshTokenEntity validation, skipping."),e.logger.tracePii("BrowserCacheManager:createKeyMaps - failed refreshToken validation on key: "+t)}}if(e.isAccountKey(t)&&(n=e.getItem(t))){var u=e.validateAndParseJson(n);u&&o.b.isAccountEntity(u)&&(e.logger.trace("BrowserCacheManager:createKeyMaps - account found, saving key to account key map"),e.logger.tracePii("BrowserCacheManager:createKeyMaps - account with key: "+t+" found, saving key to account key map"),e.addAccountKeyToMap(t))}})},t.prototype.validateAndParseJson=function(e){try{var t=JSON.parse(e);return t&&"object"==typeof t?t:null}catch(e){return null}},t.prototype.getItem=function(e){return this.browserStorage.getItem(e)},t.prototype.setItem=function(e,t){this.browserStorage.setItem(e,t)},t.prototype.getAccount=function(e){this.logger.trace("BrowserCacheManager.getAccount called");var t=this.getItem(e);if(!t)return this.removeAccountKeyFromMap(e),null;var n=this.validateAndParseJson(t);return n&&o.b.isAccountEntity(n)?o.m.toObject(new o.b,n):(this.removeAccountKeyFromMap(e),null)},t.prototype.setAccount=function(e){this.logger.trace("BrowserCacheManager.setAccount called");var t=e.generateAccountKey();this.setItem(t,JSON.stringify(e)),this.addAccountKeyToMap(t)},t.prototype.getAccountKeys=function(){this.logger.trace("BrowserCacheManager.getAccountKeys called");var e=this.getItem(a.p.ACCOUNT_KEYS);return e?JSON.parse(e):(this.logger.verbose("BrowserCacheManager.getAccountKeys - No account keys found"),[])},t.prototype.addAccountKeyToMap=function(e){this.logger.trace("BrowserCacheManager.addAccountKeyToMap called"),this.logger.tracePii("BrowserCacheManager.addAccountKeyToMap called with key: "+e);var t=this.getAccountKeys();-1===t.indexOf(e)?(t.push(e),this.setItem(a.p.ACCOUNT_KEYS,JSON.stringify(t)),this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key added")):this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key already exists in map")},t.prototype.removeAccountKeyFromMap=function(e){this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap called"),this.logger.tracePii("BrowserCacheManager.removeAccountKeyFromMap called with key: "+e);var t=this.getAccountKeys(),n=t.indexOf(e);n>-1?(t.splice(n,1),this.setItem(a.p.ACCOUNT_KEYS,JSON.stringify(t)),this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap account key removed")):this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap ke
2y not found in existing map")},t.prototype.removeAccount=function(t){return Object(r.b)(this,void 0,void 0,function(){return Object(r.d)(this,function(n){return e.prototype.removeAccount.call(this,t),this.removeAccountKeyFromMap(t),[2]})})},t.prototype.removeIdToken=function(t){e.prototype.removeIdToken.call(this,t),this.removeTokenKey(t,o.s.ID_TOKEN)},t.prototype.removeAccessToken=function(t){return Object(r.b)(this,void 0,void 0,function(){return Object(r.d)(this,function(n){return e.prototype.removeAccessToken.call(this,t),this.removeTokenKey(t,o.s.ACCESS_TOKEN),[2]})})},t.prototype.removeRefreshToken=function(t){e.prototype.removeRefreshToken.call(this,t),this.removeTokenKey(t,o.s.REFRESH_TOKEN)},t.prototype.getTokenKeys=function(){this.logger.trace("BrowserCacheManager.getTokenKeys called");var e=this.getItem(a.p.TOKEN_KEYS+"."+this.clientId);if(e){var t=this.validateAndParseJson(e);if(t&&t.hasOwnProperty("idToken")&&t.hasOwnProperty("accessToken")&&t.hasOwnProperty("refreshToken"))return t;this.logger.error("BrowserCacheManager.getTokenKeys - Token keys found but in an unknown format. Returning empty key map.")}else this.logger.verbose("BrowserCacheManager.getTokenKeys - No token keys found");return{idToken:[],accessToken:[],refreshToken:[]}},t.prototype.addTokenKey=function(e,t){this.logger.trace("BrowserCacheManager addTokenKey called");var n=this.getTokenKeys();switch(t){case o.s.ID_TOKEN:-1===n.idToken.indexOf(e)&&(this.logger.info("BrowserCacheManager: addTokenKey - idToken added to map"),n.idToken.push(e));break;case o.s.ACCESS_TOKEN:-1===n.accessToken.indexOf(e)&&(this.logger.info("BrowserCacheManager: addTokenKey - accessToken added to map"),n.accessToken.push(e));break;case o.s.REFRESH_TOKEN:-1===n.refreshToken.indexOf(e)&&(this.logger.info("BrowserCacheManager: addTokenKey - refreshToken added to map"),n.refreshToken.push(e));break;default:this.logger.error("BrowserCacheManager:addTokenKey - CredentialType provided invalid. CredentialType: "+t),o.p.createUnexpectedCredentialTypeError()}this.setItem(a.p.TOKEN_KEYS+"."+this.clientId,JSON.stringify(n))},t.prototype.removeTokenKey=function(e,t){this.logger.trace("BrowserCacheManager removeTokenKey called");var n=this.getTokenKeys();switch(t){case o.s.ID_TOKEN:this.logger.infoPii("BrowserCacheManager: removeTokenKey - attempting to remove idToken with key: "+e+" from map");var r=n.idToken.indexOf(e);r>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - idToken removed from map"),n.idToken.splice(r,1)):this.logger.info("BrowserCacheManager: removeTokenKey - idToken does not exist in map. Either it was previously removed or it was never added.");break;case o.s.ACCESS_TOKEN:this.logger.infoPii("BrowserCacheManager: removeTokenKey - attempting to remove accessToken with key: "+e+" from map");var i=n.accessToken.indexOf(e);i>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - accessToken removed from map"),n.accessToken.splice(i,1)):this.logger.info("BrowserCacheManager: removeTokenKey - accessToken does not exist in map. Either it was previously removed or it was never added.");break;case o.s.REFRESH_TOKEN:this.logger.infoPii("BrowserCacheManager: removeTokenKey - attempting to remove refreshToken with key: "+e+" from map");var s=n.refreshToken.indexOf(e);s>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken removed from map"),n.refreshToken.splice(s,1)):this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken does not exist in map. Either it was previously removed or it was never added.");break;default:this.logger.error("BrowserCacheManager:removeTokenKey - CredentialType provided invalid. CredentialType: "+t),o.p.createUnexpectedCredentialTypeError()}this.setItem(a.p.TOKEN_KEYS+"."+this.clientId,JSON.stringify(n))},t.prototype.getIdTokenCredential=function(e){var t=this.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),this.removeTokenKey(e,o.s.ID_TOKEN),null;var n=this.validateAndParseJson(t);return n&&o.w.isIdTokenEntity(n)?(this.logger.trace("BrowserCacheManager.getIdTokenCredential: cache hit"),o.m.toObject(new o.w,n)):(this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),this.removeTokenKey(e,o.s.ID_TOKEN),null)},t.prototype.setIdTokenCredential=function(e){this.logger.trace("BrowserCacheManager.setIdTokenCredential called");var t=e.generateCredentialKey();this.setItem(t,JSON.stringify(e)),this.addTokenKey(t,o.s.ID_TOKEN)},t.prototype.getAccessTokenCredential=function(e){var t=this.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),this.removeTokenKey(e,o.s.ACCESS_TOKEN),null;var n=this.validateAndParseJson(t);return n&&o.a.isAccessTokenEntity(n)?(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: cache hit"),o.m.toObject(new o.a,n)):(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),this.removeTokenKey(e,o.s.ACCESS_TOKEN),null)},t.prototype.setAccessTokenCredential=function(e){this.logger.trace("BrowserCacheManager.setAccessTokenCredential called");var t=e.generateCredentialKey();this.setItem(t,JSON.stringify(e)),this.addTokenKey(t,o.s.ACCESS_TOKEN)},t.prototype.getRefreshTokenCredential=function(e){var t=this.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),this.removeTokenKey(e,o.s.REFRESH_TOKEN),null;var n=this.validateAndParseJson(t);return n&&o.L.isRefreshTokenEntity(n)?(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: cache hit"),o.m.toObject(new o.L,n)):(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),this.removeTokenKey(e,o.s.REFRESH_TOKEN),null)},t.prototype.setRefreshTokenCredential=function(e){this.logger.trace("BrowserCacheManager.setRefreshTokenCredential called");var t=e.generateCredentialKey();this.setItem(t,JSON.stringify(e)),this.addTokenKey(t,o.s.REFRESH_TOKEN)},t.prototype.getAppMetadata=function(e){var t=this.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null;var n=this.validateAndParseJson(t);
2return n&&o.c.isAppMetadataEntity(e,n)?(this.logger.trace("BrowserCacheManager.getAppMetadata: cache hit"),o.m.toObject(new o.c,n)):(this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null)},t.prototype.setAppMetadata=function(e){this.logger.trace("BrowserCacheManager.setAppMetadata called");var t=e.generateAppMetadataKey();this.setItem(t,JSON.stringify(e))},t.prototype.getServerTelemetry=function(e){var t=this.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null;var n=this.validateAndParseJson(t);return n&&o.P.isServerTelemetryEntity(e,n)?(this.logger.trace("BrowserCacheManager.getServerTelemetry: cache hit"),o.m.toObject(new o.P,n)):(this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null)},t.prototype.setServerTelemetry=function(e,t){this.logger.trace("BrowserCacheManager.setServerTelemetry called"),this.setItem(e,JSON.stringify(t))},t.prototype.getAuthorityMetadata=function(e){var t=this.internalStorage.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getAuthorityMetadata: called, no cache hit"),null;var n=this.validateAndParseJson(t);return n&&o.i.isAuthorityMetadataEntity(e,n)?(this.logger.trace("BrowserCacheManager.getAuthorityMetadata: cache hit"),o.m.toObject(new o.i,n)):null},t.prototype.getAuthorityMetadataKeys=function(){var e=this;return this.internalStorage.getKeys().filter(function(t){return e.isAuthorityMetadata(t)})},t.prototype.setWrapperMetadata=function(e,t){this.internalStorage.setItem(a.j.WRAPPER_SKU,e),this.internalStorage.setItem(a.j.WRAPPER_VER,t)},t.prototype.getWrapperMetadata=function(){return[this.internalStorage.getItem(a.j.WRAPPER_SKU)||o.r.EMPTY_STRING,this.internalStorage.getItem(a.j.WRAPPER_VER)||o.r.EMPTY_STRING]},t.prototype.setAuthorityMetadata=function(e,t){this.logger.trace("BrowserCacheManager.setAuthorityMetadata called"),this.internalStorage.setItem(e,JSON.stringify(t))},t.prototype.getActiveAccount=function(){var e=this.generateCacheKey(o.F.ACTIVE_ACCOUNT_FILTERS),t=this.getItem(e);if(!t){this.logger.trace("BrowserCacheManager.getActiveAccount: No active account filters cache schema found, looking for legacy schema");var n=this.generateCacheKey(o.F.ACTIVE_ACCOUNT),r=this.getItem(n);if(!r)return this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null;var i=this.getAccountInfoByFilter({localAccountId:r})[0]||null;return i?(this.logger.trace("BrowserCacheManager.getActiveAccount: Legacy active account cache schema found"),this.logger.trace("BrowserCacheManager.getActiveAccount: Adding active account filters cache schema"),this.setActiveAccount(i),i):null}var a=this.validateAndParseJson(t);return a?(this.logger.trace("BrowserCacheManager.getActiveAccount: Active account filters schema found"),this.getAccountInfoByFilter({homeAccountId:a.homeAccountId,localAccountId:a.localAccountId})[0]||null):(this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null)},t.prototype.setActiveAccount=function(e){var t=this.generateCacheKey(o.F.ACTIVE_ACCOUNT_FILTERS),n=this.generateCacheKey(o.F.ACTIVE_ACCOUNT);if(e){this.logger.verbose("setActiveAccount: Active account set");var r={homeAccountId:e.homeAccountId,localAccountId:e.localAccountId};this.browserStorage.setItem(t,JSON.stringify(r)),this.browserStorage.setItem(n,e.localAccountId)}else this.logger.verbose("setActiveAccount: No account passed, active account not set"),this.browserStorage.removeItem(t),this.browserStorage.removeItem(n)},t.prototype.getAccountInfoByFilter=function(e){var t=this.getAllAccounts();return this.logger.trace("BrowserCacheManager.getAccountInfoByFilter: total "+t.length+" accounts found"),t.filter(function(t){return(!e.username||e.username.toLowerCase()===t.username.toLowerCase())&&((!e.homeAccountId||e.homeAccountId===t.homeAccountId)&&((!e.localAccountId||e.localAccountId===t.localAccountId)&&((!e.tenantId||e.tenantId===t.tenantId)&&(!e.environment||e.environment===t.environment))))})},t.prototype.getAccountInfoByHints=function(e,t){var n=this.getAllAccounts().filter(function(n){if(t){var r=n.idTokenClaims&&n.idTokenClaims.sid;return t===r}return!!e&&e===n.username});if(1===n.length)return n[0];if(n.length>1)throw o.p.createMultipleMatchingAccountsInCacheError();return null},t.prototype.getThrottlingCache=function(e){var t=this.getItem(e);if(!t)return this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null;var n=this.validateAndParseJson(t);
2return n&&o.V.isThrottlingEntity(e,n)?(this.logger.trace("BrowserCacheManager.getThrottlingCache: cache hit"),o.m.toObject(new o.V,n)):(this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null)},t.prototype.setThrottlingCache=function(e,t){this.logger.trace("BrowserCacheManager.setThrottlingCache called"),this.setItem(e,JSON.stringify(t))},t.prototype.getTemporaryCache=function(e,t){var n=t?this.generateCacheKey(e):e;if(this.cacheConfig.storeAuthStateInCookie){var r=this.getItemCookie(n);if(r)return this.logger.trace("BrowserCacheManager.getTemporaryCache: storeAuthStateInCookies set to true, retrieving from cookies"),r}var o=this.temporaryCacheStorage.getItem(n);if(!o){if(this.cacheConfig.cacheLocation===a.b.LocalStorage){var i=this.browserStorage.getItem(n);if(i)return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item found in local storage"),i}return this.logger.trace("BrowserCacheManager.getTemporaryCache: No cache item found in local storage"),null}return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item returned"),o},t.prototype.setTemporaryCache=function(e,t,n){var r=n?this.generateCacheKey(e):e;this.temporaryCacheStorage.setItem(r,t),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.setTemporaryCache: storeAuthStateInCookie set to true, setting item cookie"),this.setItemCookie(r,t))},t.prototype.removeItem=function(e){this.browserStorage.removeItem(e),this.temporaryCacheStorage.removeItem(e),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.removeItem: storeAuthStateInCookie is true, clearing item cookie"),this.clearItemCookie(e))},t.prototype.containsKey=function(e){return this.browserStorage.containsKey(e)||this.temporaryCacheStorage.containsKey(e)},t.prototype.getKeys=function(){return Object(r.f)(this.browserStorage.getKeys(),this.temporaryCacheStorage.getKeys())},t.prototype.clear=function(){return Object(r.b)(this,void 0,void 0,function(){var e=this;return Object(r.d)(this,function(t){switch(t.label){case 0:return[4,this.removeAllAccounts()];case 1:return t.sent(),this.removeAppMetadata(),this.getKeys().forEach(function(t){!e.browserStorage.containsKey(t)&&!e.temporaryCacheStorage.containsKey(t)||-1===t.indexOf(o.r.CACHE_PREFIX)&&-1===t.indexOf(e.clientId)||e.removeItem(t)}),this.internalStorage.clear(),[2]}})})},t.prototype.clearTokensAndKeysWithClaims=function(){return Object(r.b)(this,void 0,void 0,function(){var e,t,n=this;return Object(r.d)(this,function(r){switch(r.label){case 0:return this.logger.trace("BrowserCacheManager.clearTokensAndKeysWithClaims called"),e=this.getTokenKeys(),t=[],e.accessToken.forEach(function(e){var r=n.getAccessTokenCredential(e);(null===r||void 0===r?void 0:r.requestedClaimsHash)&&e.includes(r.requestedClaimsHash.toLowerCase())&&t.push(n.removeAccessToken(e))}),[4,Promise.all(t)];case 1:return r.sent(),t.length>0&&this.logger.warning(t.length+" access tokens with claims in the cache keys have been removed from the cache."),[2]}})})},t.prototype.setItemCookie=function(e,t,n){var r=encodeURIComponent(e)+"="+encodeURIComponent(t)+";path=/;SameSite=Lax;";n&&(r+="expires="+this.getCookieExpirationTime(n)+";");this.cacheConfig.secureCookies&&(r+="Secure;"),document.cookie=r},t.prototype.getItemCookie=function(e){for(var t=encodeURIComponent(e)+"=",n=document.cookie.split(";"),r=0;r<n.length;r++){for(var i=n[r];" "===i.charAt(0);)i=i.substring(1);if(0===i.indexOf(t))return decodeURIComponent(i.substring(t.length,i.length))}return o.r.EMPTY_STRING},t.prototype.clearMsalCookies=function(){var e=this,t=o.r.CACHE_PREFIX+"."+this.clientId;document.cookie.split(";").forEach(function(n){for(;" "===n.charAt(0);)n=n.substring(1);if(0===n.indexOf(t)){var r=n.split("=")[0];e.clearItemCookie(r)}})}
2,t.prototype.clearItemCookie=function(e){this.setItemCookie(e,o.r.EMPTY_STRING,-1)},t.prototype.getCookieExpirationTime=function(e){var t=new Date;return new Date(t.getTime()+e*this.COOKIE_LIFE_MULTIPLIER).toUTCString()},t.prototype.getCache=function(){return this.browserStorage},t.prototype.setCache=function(){},t.prototype.generateCacheKey=function(e){return this.validateAndParseJson(e)?JSON.stringify(e):o.S.startsWith(e,o.r.CACHE_PREFIX)||o.S.startsWith(e,o.F.ADAL_ID_TOKEN)?e:o.r.CACHE_PREFIX+"."+this.clientId+"."+e},t.prototype.generateAuthorityKey=function(e){var t=o.J.parseRequestState(this.cryptoImpl,e).libraryState.id;return this.generateCacheKey(a.q.AUTHORITY+"."+t)},t.prototype.generateNonceKey=function(e){var t=o.J.parseRequestState(this.cryptoImpl,e).libraryState.id;return this.generateCacheKey(a.q.NONCE_IDTOKEN+"."+t)},t.prototype.generateStateKey=function(e){var t=o.J.parseRequestState(this.cryptoImpl,e).libraryState.id;return this.generateCacheKey(a.q.REQUEST_STATE+"."+t)},t.prototype.getCachedAuthority=function(e){var t=this.generateStateKey(e),n=this.getTemporaryCache(t);if(!n)return null;var r=this.generateAuthorityKey(n);return this.getTemporaryCache(r)},t.prototype.updateCacheEntries=function(e,t,n,r,i){this.logger.trace("BrowserCacheManager.updateCacheEntries called");var s=this.generateStateKey(e);this.setTemporaryCache(s,e,!1);var c=this.generateNonceKey(e);this.setTemporaryCache(c,t,!1);var u=this.generateAuthorityKey(e);if(this.setTemporaryCache(u,n,!1),i){var l={credential:i.homeAccountId,type:o.o.HOME_ACCOUNT_ID};this.setTemporaryCache(a.q.CCS_CREDENTIAL,JSON.stringify(l),!0)}else if(!o.S.isEmpty(r)){l={credential:r,type:o.o.UPN};this.setTemporaryCache(a.q.CCS_CREDENTIAL,JSON.stringify(l),!0)}},t.prototype.resetRequestCache=function(e){var t=this;this.logger.trace("BrowserCacheManager.resetRequestCache called"),o.S.isEmpty(e)||this.getKeys().forEach(function(n){-1!==n.indexOf(e)&&t.removeItem(n)}),e&&(this.removeItem(this.generateStateKey(e)),this.removeItem(this.generateNonceKey(e)),this.removeItem(this.generateAuthorityKey(e))),this.removeItem(this.generateCacheKey(a.q.REQUEST_PARAMS)),this.removeItem(this.generateCacheKey(a.q.ORIGIN_URI)),this.removeItem(this.generateCacheKey(a.q.URL_HASH)),this.removeItem(this.generateCacheKey(a.q.CORRELATION_ID)),this.removeItem(this.generateCacheKey(a.q.CCS_CREDENTIAL)),this.removeItem(this.generateCacheKey(a.q.NATIVE_REQUEST)),this.setInteractionInProgress(!1)},t.prototype.cleanRequestByState=function(e){if(this.logger.trace("BrowserCacheManager.cleanRequestByState called"),e){var t=this.generateStateKey(e),n=this.temporaryCacheStorage.getItem(t);this.logger.infoPii("BrowserCacheManager.cleanRequestByState: Removing temporary cache items for state: "+n),this.resetRequestCache(n||o.r.EMPTY_STRING)}this.clearMsalCookies()},t.prototype.cleanRequestByInteractionType=function(e){var t=this;this.logger.trace("BrowserCacheManager.cleanRequestByInteractionType called"),this.getKeys().forEach(function(n){if(-1!==n.indexOf(a.q.REQUEST_STATE)){var r=t.temporaryCacheStorage.getItem(n);if(r){var o=u.a.extractBrowserRequestState(t.cryptoImpl,r);o&&o.interactionType===e&&(t.logger.infoPii("BrowserCacheManager.cleanRequestByInteractionType: Removing temporary cache items for state: "+r),t.resetRequestCache(r))}}}),this.clearMsalCookies(),this.setInteractionInProgress(!1)},t.prototype.cacheCodeRequest=function(e,t){this.logger.trace("BrowserCacheManager.cacheCodeRequest called");var n=t.base64Encode(JSON.stringify(e));this.setTemporaryCache(a.q.REQUEST_PARAMS,n,!0)},t.prototype.getCachedRequest=function(e,t){this.logger.trace("BrowserCacheManager.getCachedRequest called");var n=this.getTemporaryCache(a.q.REQUEST_PARAMS,!0);if(!n)throw i.a.createNoTokenRequestCacheError();var r=this.validateAndParseJson(t.base64Decode(n));if(!r)throw i.a.createUnableToParseTokenRequestCacheError();if(this.removeItem(this.generateCacheKey(a.q.REQUEST_PARAMS)),o.S.isEmpty(r.authority)){var s=this.generateAuthorityKey(e),c=this.getTemporaryCache(s);if(!c)throw i.a.createNoCachedAuthorityError();r.authority=c}return r},t.prototype.getCachedNativeRequest=function(){this.logger.trace("BrowserCacheManager.getCachedNativeRequest called");var e=this.getTemporaryCache(a.q.NATIVE_REQUEST,!0);if(!e)return this.logger.trace("BrowserCacheManager.getCachedNativeRequest: No cached native request found"),null;var t=this.validateAndParseJson(e);return t||(this.logger.error("BrowserCacheManager.getCachedNativeRequest: Unable to parse native request"),null)},t.prototype.isInteractionInProgress=function(e){var t=this.getInteractionInProgress();return e?t===this.clientId:!!t},t.prototype.getInteractionInProgress=function(){var e=o.r.CACHE_PREFIX+"."+a.q.INTERACTION_STATUS_KEY;return this.getTemporaryCache(e,!1)},t.prototype.setInteractionInProgress=function(e){var t=o.r.CACHE_PREFIX+"."+a.q.INTERACTION_STATUS_KEY;if(e){if(this.getInteractionInProgress())throw i.a.createInteractionInProgressError();this.setTemporaryCache(t,this.clientId,!1)}else e||this.getInteractionInProgress()!==this.clientId||this.removeItem(t)},t.prototype.getLegacyLoginHint=function(){var e=this.getTemporaryCache(o.F.ADAL_ID_TOKEN);e&&(this.browserStorage.removeItem(o.F.ADAL_ID_TOKEN),this.logger.verbose("Cached ADAL id token retrieved."));var t=this.getTemporaryCache(o.F.ID_TOKEN,!0);t&&(this.removeItem(this.generateCacheKey(o.F.ID_TOKEN)),this.logger.verbose("Cached MSAL.js v1 id token retrieved"));var n=t||e;if(n){var r=new o.v(n,this.cryptoImpl);if(r.claims&&r.claims.preferred_username)return this.logger.verbose("No SSO params used and ADAL
2/MSAL v1 token retrieved, setting ADAL/MSAL v1 preferred_username as loginHint"),r.claims.preferred_username;if(r.claims&&r.claims.upn)return this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 upn as loginHint"),r.claims.upn;this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, however, no account hint claim found. Enable preferred_username or upn id token claim to get SSO.")}return null},t.prototype.updateCredentialCacheKey=function(e,t){var n=t.generateCredentialKey();if(e!==n){var r=this.getItem(e);if(r)return this.removeItem(e),this.setItem(n,r),this.logger.verbose("Updated an outdated "+t.credentialType+" cache key"),n;this.logger.error("Attempted to update an outdated "+t.credentialType+" cache key but no item matching the outdated key was found in storage")}return e},t.prototype.getRedirectRequestContext=function(){return this.getTemporaryCache(a.q.REDIRECT_CONTEXT,!0)},t.prototype.setRedirectRequestContext=function(e){this.setTemporaryCache(a.q.REDIRECT_CONTEXT,e,!0)},t.prototype.hydrateCache=function(e,t){var n,i,a,s,c,u;return Object(r.b)(this,void 0,void 0,function(){var l,d,p,h;return Object(r.d)(this,function(r){switch(r.label){case 0:return l=o.w.createIdTokenEntity((null===(n=e.account)||void 0===n?void 0:n.homeAccountId)||"",(null===(i=e.account)||void 0===i?void 0:i.environment)||"",e.idToken,this.clientId,e.tenantId),t.claims?[4,this.cryptoImpl.hashString(t.claims)]:[3,2];case 1:d=r.sent(),r.label=2;case 2:return p=o.a.createAccessTokenEntity((null===(a=e.account)||void 0===a?void 0:a.homeAccountId)||"",(null===(s=e.account)||void 0===s?void 0:s.environment)||"",e.accessToken,this.clientId,e.tenantId,e.scopes.join(" "),(null===(c=e.expiresOn)||void 0===c?void 0:c.getTime())||0,(null===(u=e.extExpiresOn)||void 0===u?void 0:u.getTime())||0,this.cryptoImpl,void 0,e.tokenType,void 0,t.sshKid,t.claims,d),h=new o.n(void 0,l,p),[2,this.saveCacheRecord(h)]}})})},t}(o.m),d=function(e,t){var n={cacheLocation:a.b.MemoryStorage,temporaryCacheLocation:a.b.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1,claimsBasedCachingEnabled:!0};return new l(e,n,o.t,t)}},function(e,t,n){"use strict";n.d(t,"a",function(){return d}),n.d(t,"b",function(){return b});var r=n(12),o=n(293),i=n(44),a=n(200),s=n(7),c=n(149),u=n(201),l=n(294),d={tokenRenewalOffsetSeconds:300,preventCorsPreflight:!1},p={loggerCallback:function(){},piiLoggingEnabled:!1,logLevel:a.a.Info,correlationId:s.m.EMPTY_STRING},h={claimsBasedCachingEnabled:!0},f={sendGetRequestAsync:function(){return Object(r.b)(this,void 0,void 0,function(){var e;return Object(r.d)(this,function(t){throw e="Network interface - sendGetRequestAsync() has not been implemented",i.a.createUnexpectedError(e)})})},sendPostRequestAsync:function(){return Object(r.b)(this,void 0,void 0,function(){var e;return Object(r.d)(this,function(t){throw e="Network interface - sendPostRequestAsync() has not been implemented",i.a.createUnexpectedError(e)})})}},m={sku:s.m.SKU,version:c.b,cpu:s.m.EMPTY_STRING,os:s.m.EMPTY_STRING},g={clientSecret:s.m.EMPTY_STRING,clientAssertion:void 0},y={azureCloudInstance:u.a.None,tenant:""+s.m.DEFAULT_COMMON_TENANT},v={application:{appName:"",appVersion:""}};function b(e){var t=e.authOptions,n=e.systemOptions,i=e.loggerOptions,s=e.cacheOptions,c=e.storageInterface,u=e.networkInterface,b=e.cryptoInterface,S=e.clientCredentials,E=e.libraryInfo,C=e.telemetry,T=e.serverTelemetryManager,w=e.persistencePlugin,_=e.serializableCache,I=Object(r.a)(Object(r.a)({},p),i);return{authOptions:function(e){return Object(r.a)({clientCapabilities:[],azureCloudOptions:y,skipAuthorityMetadataCache:!1},e)}(t),systemOptions:Object(r.a)(Object(r.a)({},d),n),loggerOptions:I,cacheOptions:Object(r.a)(Object(r.a)({},h),s),storageInterface:c||new l.b(t.clientId,o.a,new a.b(I)),networkInterface:u||f,cryptoInterface:b||o.a,clientCredentials:S||g,libraryInfo:Object(r.a)(Object(r.a)({},m),E),telemetry:Object(r.a)(Object(r.a)({},v),C),serverTelemetryManager:T||null,persistencePlugin:w||null,serializableCache:_||null}}},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(12),o=n(44),i={createNewGuid:function(){throw o.a.createUnexpectedError("Crypto interface - createNewGuid() has not been implemented")},base64Decode:function(){throw o.a.createUnexpectedError("Crypto interface - base64Decode() has not been implemented")},base64Encode:function(){throw o.a.createUnexpectedError("Crypto interface - base64Encode() has not been implemented")},generatePkceCodes:function(){return Object(r.b)(this,void 0,void 0,function(){var e;return Object(r.d)(this,function(t){throw e="Crypto interface - generatePkceCodes() has not been implemented",o.a.createUnexpectedError(e)})})},getPublicKeyThumbprint:function(){return Object(r.b)(this,void 0,void 0,function(){var e;return Object(r.d)(this,function(t){throw e="Crypto interface - getPublicKeyThumbprint() has not been implemented",o.a.createUnexpectedError(e)})})},removeTokenBindingKey:function(){return Object(r.b)(this,void 0,void 0,function(){var e;return Object(r.d)(this,function(t){throw e="Crypto interface - removeTokenBindingKey() has not been implemented",o.a.createUnexpectedError(e)})})},clearKeystore:function(){return Object(r.b)(this,void 0,void 0,function(){var e;return Object(r.d)(this,function(t){throw e="Crypto interface - clearKeystore() has not been implemented",o.a.createUnexpectedError(e)})})},signJwt:function(){return Object(r.b)(this,void 0,void 0,function(){var e;return Object(r.d)(this,function(t){throw e="Crypto interface - signJwt() has not been implemented",o.a.createUnexpectedError(e)})})},hashString:function(){return Object(r.b)(this,void 0,void 0,function(){var e;return Object(r.d)(this,function(t){throw e="Crypto interface - hashString() has not been implemented",o.a.createUnexpectedError(e)})})}}},function(e,t,n){"use strict";n.d(t,"a",function(){return d}),n.d(t,"b",function(){return p});var r=n(12),o=n(7),i=n(90),a=n(202),s=n(44),c=n(17),u=n(92),l=n(149),d=function(){function e(e,t,n){this.clientId=e,this.cryptoImpl=t,this.commonLogger=n.clone(l.a,l.b)}return e.prototype.getAllAccounts=function(){var e=this,t=this.getAccountKeys();if(t.length<1)return[];var n=t.reduce(function(t,n){var r=e.getAccount(n);return r?(t.push(r),t):t},[]);return n.length<1?[]:n.map(function(t){return e.getAccountInfoFromEntity(t)})},e.prototype.getAccountInfoFilteredBy=function(e){var t=this.getAccountsFilteredBy(e);return t.length>0?this.getAccountInfoFromEntity(t[0]):null},e.prototype.getAccountInfoFromEntity=function(e){var t=e.getAccountInfo(),n=this.getIdToken(t);return n&&(t.idToken=n.secret,t.idTokenClaims=new u.a(n.secret,this.cryptoImpl).claims),t},e.prototype.saveCacheRecord=function(e){return Object(r.b)(this,void 0,void 0,function(){return Object(r.d)(this,function(t){switch(t.label){case 0:if(!e)throw c.a.createNullOrUndefinedCacheRecord();return e.account&&this.setAccount(e.account),e.idToken&&this.setIdTokenCredential(e.idToken),e.accessToken?[4,this.saveAcce
2ssToken(e.accessToken)]:[3,2];case 1:t.sent(),t.label=2;case 2:return e.refreshToken&&this.setRefreshTokenCredential(e.refreshToken),e.appMetadata&&this.setAppMetadata(e.appMetadata),[2]}})})},e.prototype.saveAccessToken=function(e){return Object(r.b)(this,void 0,void 0,function(){var t,n,o,a,s=this;return Object(r.d)(this,function(r){switch(r.label){case 0:return t={clientId:e.clientId,credentialType:e.credentialType,environment:e.environment,homeAccountId:e.homeAccountId,realm:e.realm,tokenType:e.tokenType,requestedClaimsHash:e.requestedClaimsHash},n=this.getTokenKeys(),o=i.a.fromString(e.target),a=[],n.accessToken.forEach(function(e){if(s.accessTokenKeyMatchesFilter(e,t,!1)){var n=s.getAccessTokenCredential(e);if(n&&s.credentialMatchesFilter(n,t))i.a.fromString(n.target).intersectingScopeSets(o)&&a.push(s.removeAccessToken(e))}}),[4,Promise.all(a)];case 1:return r.sent(),this.setAccessTokenCredential(e),[2]}})})},e.prototype.getAccountsFilteredBy=function(e){var t=this,n=[];return this.getAccountKeys().forEach(function(r){if(t.isAccountKey(r,e.homeAccountId,e.realm)){var o=t.getAccount(r);o&&(e.homeAccountId&&!t.matchHomeAccountId(o,e.homeAccountId)||e.localAccountId&&!t.matchLocalAccountId(o,e.localAccountId)||e.username&&!t.matchUsername(o,e.username)||e.environment&&!t.matchEnvironment(o,e.environment)||e.realm&&!t.matchRealm(o,e.realm)||e.nativeAccountId&&!t.matchNativeAccountId(o,e.nativeAccountId)||n.push(o))}}),n},e.prototype.isAccountKey=function(e,t,n){return!(e.split(o.D.CACHE_KEY_SEPARATOR).length<3)&&(!(t&&!e.toLowerCase().includes(t.toLowerCase()))&&!(n&&!e.toLowerCase().includes(n.toLowerCase())))},e.prototype.isCredentialKey=function(e){if(e.split(o.D.CACHE_KEY_SEPARATOR).length<6)return!1;var t=e.toLowerCase();if(-1===t.indexOf(o.n.ID_TOKEN.toLowerCase())&&-1===t.indexOf(o.n.ACCESS_TOKEN.toLowerCase())&&-1===t.indexOf(o.n.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())&&-1===t.indexOf(o.n.REFRESH_TOKEN.toLowerCase()))return!1;if(t.indexOf(o.n.REFRESH_TOKEN.toLowerCase())>-1){var n=""+o.n.REFRESH_TOKEN+o.D.CACHE_KEY_SEPARATOR+this.clientId+o.D.CACHE_KEY_SEPARATOR,r=""+o.n.REFRESH_TOKEN+o.D.CACHE_KEY_SEPARATOR+o.E+o.D.CACHE_KEY_SEPARATOR;if(-1===t.indexOf(n.toLowerCase())&&-1===t.indexOf(r.toLowerCase()))return!1}else if(-1===t.indexOf(this.clientId.toLowerCase()))return!1;return!0},e.prototype.credentialMatchesFilter=function(e,t){if(t.clientId&&!this.matchClientId(e,t.clientId))return!1;if(t.userAssertionHash&&!this.matchUserAssertionHash(e,t.userAssertionHash))return!1;if("string"==typeof t.homeAccountId&&!this.matchHomeAccountId(e,t.homeAccountId))return!1;if(t.environment&&!this.matchEnvironment(e,t.environment))return!1;if(t.realm&&!this.matchRealm(e,t.realm))return!1;if(t.credentialType&&!this.matchCredentialType(e,t.credentialType))return!1;if(t.familyId&&!this.matchFamilyId(e,t.familyId))return!1;if(t.target&&!this.matchTarget(e,t.target))return!1;if((t.requestedClaimsHash||e.requestedClaimsHash)&&e.requestedClaimsHash!==t.requestedClaimsHash)return!1;
2if(e.credentialType===o.n.ACCESS_TOKEN_WITH_AUTH_SCHEME){if(t.tokenType&&!this.matchTokenType(e,t.tokenType))return!1;if(t.tokenType===o.e.SSH&&t.keyId&&!this.matchKeyId(e,t.keyId))return!1}return!0},e.prototype.getAppMetadataFilteredBy=function(e){return this.getAppMetadataFilteredByInternal(e.environment,e.clientId)},e.prototype.getAppMetadataFilteredByInternal=function(e,t){var n=this,r={};return this.getKeys().forEach(function(o){if(n.isAppMetadata(o)){var i=n.getAppMetadata(o);i&&(e&&!n.matchEnvironment(i,e)||t&&!n.matchClientId(i,t)||(r[o]=i))}}),r},e.prototype.getAuthorityMetadataByAlias=function(e){var t=this,n=null;return this.getAuthorityMetadataKeys().forEach(function(r){if(t.isAuthorityMetadata(r)&&-1!==r.indexOf(t.clientId)){var o=t.getAuthorityMetadata(r);o&&-1!==o.aliases.indexOf(e)&&(n=o)}}),n},e.prototype.removeAllAccounts=function(){return Object(r.b)(this,void 0,void 0,function(){var e,t,n=this;return Object(r.d)(this,function(r){switch(r.label){case 0:return e=this.getAccountKeys(),t=[],e.forEach(function(e){t.push(n.removeAccount(e))}),[4,Promise.all(t)];case 1:return r.sent(),[2]}})})},e.prototype.removeAccount=function(e){return Object(r.b)(this,void 0,void 0,function(){var t;return Object(r.d)(this,function(n){switch(n.label){case 0:if(!(t=this.getAccount(e)))throw c.a.createNoAccountFoundError();return[4,this.removeAccountContext(t)];case 1:return n.sent(),this.removeItem(e),[2]}})})},e.prototype.removeAccountContext=function(e){return Object(r.b)(this,void 0,void 0,function(){var t,n,o,i=this;return Object(r.d)(this,function(r){switch(r.label){case 0:return t=this.getTokenKeys(),n=e.generateAccountId(),o=[],t.idToken.forEach(function(e){0===e.indexOf(n)&&i.removeIdToken(e)}),t.accessToken.forEach(function(e){0===e.indexOf(n)&&o.push(i.removeAccessToken(e))}),t.refreshToken.forEach(function(e){0===e.indexOf(n)&&i.removeRefreshToken(e)}),[4,Promise.all(o)];case 1:return r.sent(),[2]}})})},e.prototype.removeAccessToken=function(e){return Object(r.b)(this,void 0,void 0,function(){var t,n;return Object(r.d)(this,function(r){switch(r.label){case 0:if(!(t=this.getAccessTokenCredential(e)))return[2];if(t.credentialType.toLowerCase()!==o.n.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())return[3,4];if(t.tokenType!==o.e.POP)return[3,4];if(!(n=t.keyId))return[3,4];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.cryptoImpl.removeTokenBindingKey(n)];case 2:return r.sent(),[3,4];case 3:throw r.sent(),c.a.createBindingKeyNotRemovedError();case 4:return[2,this.removeItem(e)]}})})},e.prototype.removeAppMetadata=function(){var e=this;return this.getKeys().forEach(function(t){e.isAppMetadata(t)&&e.removeItem(t)}),!0},e.prototype.readCacheRecord=function(e,t,n){var r=this.getTokenKeys(),o=this.readAccountFromCache(e),i=this.getIdToken(e,r),a=this.getAccessToken(e,t,r),s=this.getRefreshToken(e,!1,r),c=this.readAppMetadataFromCache(n);return o&&i&&(o.idTokenClaims=new u.a(i.secret,this.cryptoImpl).claims),{account:o,idToken:i,accessToken:a,refreshToken:s,appMetadata:c}},e.prototype.readAccountFromCache=function(e){var t=a.a.generateAccountCacheKey(e);return this.getAccount(t)},e.prototype.getIdToken=function(e,t){var n=this;this.commonLogger.trace("CacheManager - getIdToken called");var r={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:o.n.ID_TOKEN,clientId:this.clientId,realm:e.tenantId},i=this.getIdTokensByFilter(r,t),a=i.length;return a<1?(this.commonLogger.info("CacheManager:getIdToken - No token found"),null):a>1?(this.commonLogger.info("CacheManager:getIdToken - Multiple id tokens found, clearing them"),i.forEach(function(e){n.removeIdToken(e.generateCredentialKey())}),null):(this.commonLogger.info("CacheManager:getIdToken - Returning id token"),i[0])},e.prototype.getIdTokensByFilter=function(e,t){var n=this,o=[];return(t&&t.idToken||this.getTokenKeys().idToken).forEach(function(t){if(n.idTokenKeyMatchesFilter(t,Object(r.a)({clientId:n.clientId},e))){var i=n.getIdTokenCredential(t);i&&n.credentialMatchesFilter(i,e)&&o.push(i)}}),o},e.prototype.idTokenKeyMatchesFilter=function(e,t){var n=e.toLowerCase();
2return(!t.clientId||-1!==n.indexOf(t.clientId.toLowerCase()))&&(!t.homeAccountId||-1!==n.indexOf(t.homeAccountId.toLowerCase()))},e.prototype.removeIdToken=function(e){this.removeItem(e)},e.prototype.removeRefreshToken=function(e){this.removeItem(e)},e.prototype.getAccessToken=function(e,t,n){var r=this;this.commonLogger.trace("CacheManager - getAccessToken called");var a=i.a.createSearchScopes(t.scopes),s=t.authenticationScheme||o.e.BEARER,c=s&&s.toLowerCase()!==o.e.BEARER.toLowerCase()?o.n.ACCESS_TOKEN_WITH_AUTH_SCHEME:o.n.ACCESS_TOKEN,u={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:c,clientId:this.clientId,realm:e.tenantId,target:a,tokenType:s,keyId:t.sshKid,requestedClaimsHash:t.requestedClaimsHash},l=[];(n&&n.accessToken||this.getTokenKeys().accessToken).forEach(function(e){if(r.accessTokenKeyMatchesFilter(e,u,!0)){var t=r.getAccessTokenCredential(e);t&&r.credentialMatchesFilter(t,u)&&l.push(t)}});var d=l.length;return d<1?(this.commonLogger.info("CacheManager:getAccessToken - No token found"),null):d>1?(this.commonLogger.info("CacheManager:getAccessToken - Multiple access tokens found, clearing them"),l.forEach(function(e){r.removeAccessToken(e.generateCredentialKey())}),null):(this.commonLogger.info("CacheManager:getAccessToken - Returning access token"),l[0])},e.prototype.accessTokenKeyMatchesFilter=function(e,t,n){var r=e.toLowerCase();if(t.clientId&&-1===r.indexOf(t.clientId.toLowerCase()))return!1;if(t.homeAccountId&&-1===r.indexOf(t.homeAccountId.toLowerCase()))return!1;if(t.realm&&-1===r.indexOf(t.realm.toLowerCase()))return!1;if(t.requestedClaimsHash&&-1===r.indexOf(t.requestedClaimsHash.toLowerCase()))return!1;if(t.target)for(var o=t.target.asArray(),i=0;i<o.length;i++){if(n&&!r.includes(o[i].toLowerCase()))return!1;if(!n&&r.includes(o[i].toLowerCase()))return!0}return!0},e.prototype.getAccessTokensByFilter=function(e){var t=this,n=[];return this.getTokenKeys().accessToken.forEach(function(r){if(t.accessTokenKeyMatchesFilter(r,e,!0)){var o=t.getAccessTokenCredential(r);o&&t.credentialMatchesFilter(o,e)&&n.push(o)}}),n},e.prototype.getRefreshToken=function(e,t,n){var r=this;this.commonLogger.trace("CacheManager - getRefreshToken called");var i=t?o.E:void 0,a={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:o.n.REFRESH_TOKEN,clientId:this.clientId,familyId:i},s=[];return(n&&n.refreshToken||this.getTokenKeys().refreshToken).forEach(function(e){if(r.refreshTokenKeyMatchesFilter(e,a)){var t=r.getRefreshTokenCredential(e);t&&r.credentialMatchesFilter(t,a)&&s.push(t)}}),s.length<1?(this.commonLogger.info("CacheManager:getRefreshToken - No refresh token found."),null):(this.commonLogger.info("CacheManager:getRefreshToken - returning refresh token"),s[0])},e.prototype.refreshTokenKeyMatchesFilter=function(e,t){var n=e.toLowerCase();return(!t.familyId||-1!==n.indexOf(t.familyId.toLowerCase()))&&(!(!t.familyId&&t.clientId&&-1===n.indexOf(t.clientId.toLowerCase()))&&(!t.homeAccountId||-1!==n.indexOf(t.homeAccountId.toLowerCase())))},e.prototype.readAppMetadataFromCache=function(e){var t={environment:e,clientId:this.clientId},n=this.getAppMetadataFilteredBy(t),r=Object.keys(n).map(function(e){return n[e]}),o=r.length;if(o<1)return null;if(o>1)throw c.a.createMultipleMatchingAppMetadataInCacheError();return r[0]},e.prototype.isAppMetadataFOCI=function(e){var t=this.readAppMetadataFromCache(e);return!(!t||t.familyId!==o.E)},e.prototype.matchHomeAccountId=function(e,t){return!("string"!=typeof e.homeAccountId||t!==e.homeAccountId)},e.prototype.matchLocalAccountId=function(e,t){return!("string"!=typeof e.localAccountId||t!==e.localAccountId)},e.prototype.matchUsername=function(e,t){return!("string"!=typeof e.username||t.toLowerCase()!==e.username.toLowerCase())},e.prototype.matchUserAssertionHash=function(e,t){return!(!e.userAssertionHash||t!==e.userAssertionHash)},e.prototype.matchEnvironment=function(e,t){var n=this.getAuthorityMetadataByAlias(t);return!!(n&&n.aliases.indexOf(e.environment)>-1)},e.prototype.matchCredentialType=function(e,t){return e.credentialType&&t.toLowerCase()===e.credentialType.toLowerCase()},e.prototype.matchClientId=function(e,t){return!(!e.clientId||t!==e.clientId)},e.prototype.matchFamilyId=function(e,t){return!(!e.familyId||t!==e.familyId)},e.prototype.matchRealm=function(e,t){return!(!e.realm||t!==e.realm)},e.prototype.matchNativeAccountId=function(e,t){return!(!e.nativeAccountId||t!==e.nativeAccountId)},e.prototype.matchTarget=function(e,t){return!(e.credentialType!==o.n.A
2CCESS_TOKEN&&e.credentialType!==o.n.ACCESS_TOKEN_WITH_AUTH_SCHEME||!e.target)&&i.a.fromString(e.target).containsScopeSet(t)},e.prototype.matchTokenType=function(e,t){return!(!e.tokenType||e.tokenType!==t)},e.prototype.matchKeyId=function(e,t){return!(!e.keyId||e.keyId!==t)},e.prototype.isAppMetadata=function(e){return-1!==e.indexOf(o.c)},e.prototype.isAuthorityMetadata=function(e){return-1!==e.indexOf(o.d.CACHE_KEY)},e.prototype.generateAuthorityMetadataCacheKey=function(e){return o.d.CACHE_KEY+"-"+this.clientId+"-"+e},e.toObject=function(e,t){for(var n in t)e[n]=t[n];return e},e}(),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.setAccount=function(){throw s.a.createUnexpectedError("Storage interface - setAccount() has not been implemented for the cacheStorage interface.")},t.prototype.getAccount=function(){throw s.a.createUnexpectedError("Storage interface - getAccount() has not been implemented for the cacheStorage interface.")},t.prototype.setIdTokenCredential=function(){throw s.a.createUnexpectedError("Storage interface - setIdTokenCredential() has not been implemented for the cacheStorage interface.")},t.prototype.getIdTokenCredential=function(){throw s.a.createUnexpectedError("Storage interface - getIdTokenCredential() has not been implemented for the cacheStorage interface.")},t.prototype.setAccessTokenCredential=function(){throw s.a.createUnexpectedError("Storage interface - setAccessTokenCredential() has not been implemented for the cacheStorage interface.")},t.prototype.getAccessTokenCredential=function(){throw s.a.createUnexpectedError("Storage interface - getAccessTokenCredential() has not been implemented for the cacheStorage interface.")},t.prototype.setRefreshTokenCredential=function(){throw s.a.createUnexpectedError("Storage interface - setRefreshTokenCredential() has not been implemented for the cacheStorage interface.")},t.prototype.getRefreshTokenCredential=function(){throw s.a.createUnexpectedError("Storage interface - getRefreshTokenCredential() has not been implemented for the cacheStorage interface.")},t.prototype.setAppMetadata=function(){throw s.a.createUnexpectedError("Storage interface - setAppMetadata() has not been implemented for the cacheStorage interface.")},t.prototype.getAppMetadata=function(){throw s.a.createUnexpectedError("Storage interface - getAppMetadata() has not been implemented for the cacheStorage interface.")},t.prototype.setServerTelemetry=function(){throw s.a.createUnexpectedError("Storage interface - setServerTelemetry() has not been implemented for the cacheStorage interface.")},t.prototype.getServerTelemetry=function(){throw s.a.createUnexpectedError("Storage interface - getServerTelemetry() has not been implemented for the cacheStorage interface.")},t.prototype.setAuthorityMetadata=function(){throw s.a.createUnexpectedError("Storage interface - setAuthorityMetadata() has not been implemented for the cacheStorage interface.")},t.prototype.getAuthorityMetadata=function(){throw s.a.createUnexpectedError("Storage interface - getAuthorityMetadata() has not been implemented for the cacheStorage interface.")},t.prototype.getAuthorityMetadataKeys=function(){throw s.a.createUnexpectedError("Storage interface - getAuthorityMetadataKeys() has not been implemented for the cacheStorage interface.")},t.prototype.setThrottlingCache=function(){throw s.a.createUnexpectedError("Storage interface - setThrottlingCache() has not been implemented for the cacheStorage interface.")},t.prototype.getThrottlingCache=function(){throw s.a.createUnexpectedError("Storage interface - getThrottlingCache() has not been implemented for the cacheStorage interface.")},t.prototype.removeItem=function(){throw s.a.createUnexpectedError("Storage interface - removeItem() has not been implemented for the cacheStorage interface.")},t.prototype.containsKey=function(){throw s.a.createUnexpectedError("Storage interface - containsKey() has not been implemented for the cacheStorage interface.")},t.prototype.getKeys=function(){throw s.a.createUnexpectedError("Storage interface - getKeys() has not been implemented for the cacheStorage interface.")},t.prototype.getAccountKeys=function(){throw s.a.createUnexpectedError("Storage interface - getAccountKeys() has not been implemented for the cacheStorage interface.")},t.prototype.getTokenKeys=function(){throw s.a.createUnexpectedError("Storage interface - getTokenKeys() has not been implemented for the cacheStorage interface.")},t.prototype.clear=function(){return Object(r.b)(this,void 0,void 0,function(){var e;return Object(r.d)(this,function(t){throw e="Storage interface - clear() has not been implemented for the cacheStorage interface.",s.a.createUnexpectedError(e)})})},t.prototype.updateCredentialCacheKey=function(){throw s.a.createUnexpectedError("Storage interface - updateCredentialCacheKey() has not been implemented for the cacheStorage interface.")},t}(d)},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(12),o=n(296),i=n(44),a=n(17),s=function(){function e(e,t){this.networkClient=e,this.cacheManager=t}return e.prototype.sendPostRequest=function(e,t,n){return Object(r.b)(this,void 0,void 0,function(){var s,c;return Object(r.d)(this,function(r){switch(r.label){case 0:o.a.preProcess(this.cacheManager,e),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.networkClient.sendPostRequestAsync(t,n)];case 2:return s=r.sent(),[3,4];case 3:throw(c=r.sent())instanceof i.a?c:a.a.createNetworkError(t,c);case 4:return o.a.postProcess(this.cacheManager,e,s),[2,s]}})})},e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(7),o=n(118),i=function(){function e(){}return e.generateThrottlingStorageKey=function(e){return r.F.THROTTL
2ING_PREFIX+"."+JSON.stringify(e)},e.preProcess=function(t,n){var i,a=e.generateThrottlingStorageKey(n),s=t.getThrottlingCache(a);if(s){if(s.throttleTime<Date.now())return void t.removeItem(a);throw new o.a((null===(i=s.errorCodes)||void 0===i?void 0:i.join(" "))||r.m.EMPTY_STRING,s.errorMessage,s.subError)}},e.postProcess=function(t,n,o){if(e.checkResponseStatus(o)||e.checkResponseForRetryAfter(o)){var i={throttleTime:e.calculateThrottleTime(parseInt(o.headers[r.q.RETRY_AFTER])),error:o.body.error,errorCodes:o.body.error_codes,errorMessage:o.body.error_description,subError:o.body.suberror};t.setThrottlingCache(e.generateThrottlingStorageKey(n),i)}},e.checkResponseStatus=function(e){return 429===e.status||e.status>=500&&e.status<600},e.checkResponseForRetryAfter=function(e){return!!e.headers&&(e.headers.hasOwnProperty(r.q.RETRY_AFTER)&&(e.status<200||e.status>=300))},e.calculateThrottleTime=function(e){var t=e<=0?0:e,n=Date.now()/1e3;return Math.floor(1e3*Math.min(n+(t||r.F.DEFAULT_THROTTLE_TIME_SECONDS),n+r.F.DEFAULT_MAX_THROTTLE_TIME_SECONDS))},e.removeThrottle=function(e,t,n,r){var o={clientId:t,authority:n.authority,scopes:n.scopes,homeAccountIdentifier:r,claims:n.claims,authenticationScheme:n.authenticationScheme,resourceRequestMethod:n.resourceRequestMethod,resourceRequestUri:n.resourceRequestUri,shrClaims:n.shrClaims,sshKid:n.sshKid},i=this.generateThrottlingStorageKey(o);e.removeItem(i)},e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(22),o=n(45),i=n(7),a=function(){function e(){}return e.validateRedirectUri=function(e){if(r.a.isEmpty(e))throw o.a.createRedirectUriEmptyError()},e.validatePrompt=function(e){var t=[];for(var n in i.w)t.push(i.w[n]);if(t.indexOf(e)<0)throw o.a.createInvalidPromptError(e)},e.validateClaims=function(e){try{JSON.parse(e)}catch(e){throw o.a.createInvalidClaimsRequestError()}},e.validateCodeChallengeParams=function(e,t){if(r.a.isEmpty(e)||r.a.isEmpty(t))throw o.a.createInvalidCodeChallengeParamsError();this.validateCodeChallengeMethod(t)},e.validateCodeChallengeMethod=function(e){if([i.l.PLAIN,i.l.S256].indexOf(e)<0)throw o.a.createInvalidCodeChallengeMethodError()},e.sanitizeEQParams=function(e,t){return e?(t.forEach(function(t,n){e[n]&&delete e[n]}),Object.fromEntries(Object.entries(e).filter(function(e){return""!==e[1]}))):{}},e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(12),o=n(150),i=n(7),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.createIdTokenEntity=function(e,n,r,o,a){var s=new t;return s.credentialType=i.n.ID_TOKEN,s.homeAccountId=e,s.environment=n,s.clientId=o,s.secret=r,s.realm=a,s},t.isIdTokenEntity=function(e){return!!e&&(e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("credentialType")&&e.hasOwnProperty("realm")&&e.hasOwnProperty("clientId")&&e.hasOwnProperty("secret")&&e.credentialType===i.n.ID_TOKEN)},t}(o.a)},function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n(12),o=n(150),i=n(7),a=n(46),s=n(22),c=n(92),u=n(17),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.createAccessTokenEntity=function(e,n,r,o,l,d,p,h,f,m,g,y,v,b,S){var E,C,T=new t;T.homeAccountId=e,T.credentialType=i.n.ACCESS_TOKEN,T.secret=r;var w=a.a.nowSeconds();if(T.cachedAt=w.toString(),T.expiresOn=p.toString(),T.extendedExpiresOn=h.toString(),m&&(T.refreshOn=m.toString()),T.environment=n,T.clientId=o,T.realm=l,T.target=d,T.userAssertionHash=y,T.tokenType=s.a.isEmpty(g)?i.e.BEARER:g,b&&(T.requestedClaims=b,T.requestedClaimsHash=S),(null===(E=T.tokenType)||void 0===E?void 0:E.toLowerCase())!==i.e.BEARER.toLowerCase())switch(T.credentialType=i.n.ACCESS_TOKEN_WITH_AUTH_SCHEME,T.tokenType){case i.e.POP:var _=c.a.extractTokenClaims(r,f);if(!(null===(C=null===_||void 0===_?void 0:_.cnf)||void 0===C?void 0:C.kid))throw u.a.createTokenClaimsRequiredError();T.keyId=_.cnf.kid;break;case i.e.SSH:T.keyId=v}return T},t.isAccessTokenEntity=function(e){return!!e&&(e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("credentialType")&&e.hasOwnProperty("realm")&&e.hasOwnProperty("clientId")&&e.hasOwnProperty("secret")&&e.hasOwnProperty("target")&&(e.credentialType===i.n.ACCESS_TOKEN||e.credentialType===i.n.ACCESS_TOKEN_WITH_AUTH_SCHEME))},t}(o.a)},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(12),o=n(150),i=n(7),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.createRefreshTokenEntity=function(e,n,r,o,a,s){var c=new t;return c.clientId=o,c.credentialType=i.n.REFRESH_TOKEN,c.environment=n,c.homeAccountId=e,c.secret=r,c.userAssertionHash=s,a&&(c.familyId=a),c},t.isRefreshTokenEntity=function(e){return!!e&&(e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("credentialType")&&e.hasOwnProperty("clientId")&&e.hasOwnProperty("secret")&&e.credentialType===i.n.REFRESH_TOKEN)},t}(o.a)},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(){return function(e,t,n,r,o){this.account=e||null,this.idToken=t||null,this.accessToken=n||null,this.refreshToken=r||null,this.appMetadata=o||null}}()},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(22),o=n(7),i=n(17),a=function(){function e(){}return e.setRequestState=function(t,n,i){var a=e.generateLibraryState(t,i);return r.a.isEmpty(n)?a:""+a+o.m.RESOURCE_DELIM+n},e.generateLibraryState=function(e,t){if(!e)throw i.a.createNoCryptoObjectError("generateLibraryState");var n={id:e.createNewGuid()};t&&(n.meta=t);var r=JSON.stringify(n);return e.base64Encode(r)},e.parseRequestState=function(e,t){if(!e)throw i.a.createNoCryptoObjectError("parseRequestState");if(r.a.isEmpty(t))throw i.a.createInvalidStateError(t,"Null, undefined or empty state");try{var n=t.split(o.m.RESOURCE_DELIM),a=n[0],s=n.length>1?n.slice(1).join(o.m.RESOURCE_DELIM):o.m.EMPTY_STRING,c=e.base64Decode(a),u=JSON.parse(c);return{userRequestState:r.a.isEmpty(s)?o.m.EMPTY_STRING:s,libraryState:u}}catch(e){throw i.a.createInvalidStateError(t,e)}},e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return o}
2);var r=n(7),o=function(){function e(){}return e.prototype.generateAppMetadataKey=function(){return e.generateAppMetadataCacheKey(this.environment,this.clientId)},e.generateAppMetadataCacheKey=function(e,t){return[r.c,e,t].join(r.D.CACHE_KEY_SEPARATOR).toLowerCase()},e.createAppMetadataEntity=function(t,n,r){var o=new e;return o.clientId=t,o.environment=n,r&&(o.familyId=r),o},e.isAppMetadataEntity=function(e,t){return!!t&&(0===e.indexOf(r.c)&&t.hasOwnProperty("clientId")&&t.hasOwnProperty("environment"))},e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(){function e(e,t){this.cache=e,this.hasChanged=t}return Object.defineProperty(e.prototype,"cacheHasChanged",{get:function(){return this.hasChanged},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tokenCache",{get:function(){return this.cache},enumerable:!1,configurable:!0}),e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return b});var r=n(12),o=n(74),i=n(75),a=n(7),s=n(76),c=n(151),u=n(22),l=n(45),d=n(17),p=n(118),h=n(46),f=n(59),m=n(119),g=n(91),y=n(205),v=n(60),b=function(e){function t(t,n){return e.call(this,t,n)||this}return Object(r.c)(t,e),t.prototype.acquireToken=function(e){var t,n,o,i,c,u,l;return Object(r.b)(this,void 0,void 0,function(){var d,p,f,m,g,y,b=this;return Object(r.d)(this,function(r){switch(r.label){case 0:return null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(v.c.RefreshTokenClientAcquireToken,e.correlationId),d=null===(n=this.performanceClient)||void 0===n?void 0:n.startMeasurement(v.c.RefreshTokenClientAcquireToken,e.correlationId),this.logger.verbose("RefreshTokenClientAcquireToken called",e.correlationId),p=h.a.nowSeconds(),null===(o=this.performanceClient)||void 0===o||o.setPreQueueTime(v.c.RefreshTokenClientExecuteTokenRequest,e.correlationId),[4,this.executeTokenRequest(e,this.authority)];case 1:return f=r.sent(),m=null===(i=f.headers)||void 0===i?void 0:i[a.q.X_MS_HTTP_VERSION],null===d||void 0===d||d.addStaticFields({refreshTokenSize:(null===(c=f.body.refresh_token)||void 0===c?void 0:c.length)||0}),m&&(null===d||void 0===d||d.addStaticFields({httpVerToken:m})),g=null===(u=f.headers)||void 0===u?void 0:u[a.q.X_MS_REQUEST_ID],(y=new s.a(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin)).validateTokenResponse(f.body),null===(l=this.performanceClient)||void 0===l||l.setPreQueueTime(v.c.HandleServerTokenResponse,e.correlationId),[2,y.handleServerTokenResponse(f.body,this.authority,p,e,void 0,void 0,!0,e.forceCache,g).then(function(e){return null===d||void 0===d||d.endMeasurement({success:!0}),e}).catch(function(t){throw b.logger.verbose("Error in fetching refresh token",e.correlationId),null===d||void 0===d||d.endMeasurement({errorCode:t.errorCode,subErrorCode:t.subError,success:!1}),t})]}})})},t.prototype.acquireTokenByRefreshToken=function(e){var t,n,o,i;return Object(r.b)(this,void 0,void 0,function(){var s,c;return Object(r.d)(this,function(r){if(!e)throw l.a.createEmptyTokenRequestError();if(null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(v.c.RefreshTokenClientAcquireTokenByRefreshToken,e.correlationId),!e.account)throw d.a.createNoAccountInSilentRequestError();if(this.cacheManager.isAppMetadataFOCI(e.account.environment))try{return null===(n=this.performanceClient)||void 0===n||n.setPreQueueTime(v.c.RefreshTokenClientAcquireTokenWithCachedRefreshToken,e.correlationId),[2,this.acquireTokenWithCachedRefreshToken(e,!0)]}catch(t){if(s=t instanceof y.a&&t.errorCode===y.b.noTokensFoundError.code,c=t instanceof p.a&&t.errorCode===a.o.INVALID_GRANT_ERROR&&t.subError===a.o.CLIENT_MISMATCH_ERROR,s||c)return null===(o=this.performanceClient)||void 0===o||o.setPreQueueTime(v.c.RefreshTokenClientAcquireTokenWithCachedRefreshToken,e.correlationId),[2,this.acquireTokenWithCachedRefreshToken(e,!1)];throw t}return null===(i=this.performanceClient)||void 0===i||i.setPreQueueTime(v.c.RefreshTokenClientAcquireTokenWithCachedRefreshToken,e.correlationId),[2,this.acquireTokenWithCachedRefreshToken(e,!1)]})})},t.prototype.acquireTokenWithCachedRefreshToken=function(e,t){var n,o,i;return Object(r.b)(this,void 0,void 0,function(){var s,c,u;return Object(r.d)(this,function(l){if(null===(n=this.performanceClient)||void 0===n||n.addQueueMeasurement(v.c.RefreshTokenClientAcquireTokenWithCachedRefreshToken,e.correlationId),s=null===(o=this.performanceClient)||void 0===o?void 0:o.startMeasurement(v.c.RefreshTokenClientAcquireTokenWithCachedRefreshToken,e.correlationId),this.logger.verbose("RefreshTokenClientAcquireTokenWithCachedRefreshToken called",e.correlationId),!(c=this.cacheManager.getRefreshToken(e.account,t)))throw null===s||void 0===s||s.discardMeasurement(),y.a.createNoTokensFoundError();return null===s||void 0===s||s.endMeasurement({success:!0}),u=Object(r.a)(Object(r.a)({},e),{refreshToken:c.secret,authenticationScheme:e.authenticationScheme||a.e.BEARER,ccsCredential:{credential:e.account.homeAccountId,type:m.a.HOME_ACCOUNT_ID}}),null===(i=this.performanceClient)||void 0===i||i.setPreQueueTime(v.c.RefreshTokenClientAcquireToken,e.correlationId),[2,this.acquireToken(u)]})})},t.prototype.executeTokenRequest=function(e,t){var n,o,i;return Object(r.b)(this,void 0,void 0,function(){var a,s,c,u,l,d;return Object(r.d)(this,function(r){switch(r.label){case 0:return null===(n=this.performanceClient)||void 0===n||n.addQueueMeasurement(v.c.RefreshTokenClientExecuteTokenRequest,e.correlationId),a=null===(o=this.performanceClient)||void 0===o?void 0:o.startMeasurement(v.c.RefreshTokenClientExecuteTokenRequest,e.correlationId),null===(i=this.performanceClient)||void 0===i||i.setPreQueueTime(v.c.RefreshTokenClientCreateTokenRequestBody,e.correlationId),s=this.createTokenQueryParameters(e),c=f.a.appendQueryString(t.tokenEndpoint,s),[4,this.createTokenRequestBody(e)];case 1:return u=r.sent(),l=this.createTokenRequestHeaders(e.ccsCredential),d={clientId:this.config.authOptions.clientId,authority:t.canonicalAuthority,scopes:e.scopes,claims:e.claims,authenticationScheme:e.authenticationScheme,resourceRequestMethod:e.resourceRequestMethod,resourceRequestUri:e.resourceRequestUri,shrClaims:e.shrClaims,sshKid:e.sshKid},[2,this.executePostToTokenEndpoint(c,u,l,d).then(function(e){return null===a||void 0===a||a.endMeasurement({success:!0}),e}).catch(function(e){throw null===a||void 0===a||a.endMeasurement({success:!1}),e})]}})})},t.prototype.createTokenRequestBody=function(e){var t,n,o;
2return Object(r.b)(this,void 0,void 0,function(){var s,d,p,h,f,y,b;return Object(r.d)(this,function(r){switch(r.label){case 0:return null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(v.c.RefreshTokenClientCreateTokenRequestBody,e.correlationId),s=e.correlationId,d=null===(n=this.performanceClient)||void 0===n?void 0:n.startMeasurement(v.c.BaseClientCreateTokenRequestHeaders,s),(p=new i.a).addClientId(this.config.authOptions.clientId),p.addScopes(e.scopes),p.addGrantType(a.p.REFRESH_TOKEN_GRANT),p.addClientInfo(),p.addLibraryInfo(this.config.libraryInfo),p.addApplicationTelemetry(this.config.telemetry.application),p.addThrottling(),this.serverTelemetryManager&&p.addServerTelemetry(this.serverTelemetryManager),p.addCorrelationId(s),p.addRefreshToken(e.refreshToken),this.config.clientCredentials.clientSecret&&p.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion&&(h=this.config.clientCredentials.clientAssertion,p.addClientAssertion(h.assertion),p.addClientAssertionType(h.assertionType)),e.authenticationScheme!==a.e.POP?[3,2]:(f=new c.a(this.cryptoUtils,this.performanceClient),null===(o=this.performanceClient)||void 0===o||o.setPreQueueTime(v.c.PopTokenGenerateCnf,e.correlationId),[4,f.generateCnf(e)]);case 1:return y=r.sent(),p.addPopToken(y.reqCnfString),[3,3];case 2:if(e.authenticationScheme===a.e.SSH){if(!e.sshJwk)throw null===d||void 0===d||d.endMeasurement({success:!1}),l.a.createMissingSshJwkError();p.addSshJwk(e.sshJwk)}r.label=3;case 3:if((!u.a.isEmptyObj(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&p.addClaims(e.claims,this.config.authOptions.clientCapabilities),this.config.systemOptions.preventCorsPreflight&&e.ccsCredential)switch(e.ccsCredential.type){case m.a.HOME_ACCOUNT_ID:try{b=Object(g.b)(e.ccsCredential.credential),p.addCcsOid(b)}catch(e){this.logger.verbose("Could not parse home account ID for CCS Header: "+e)}break;case m.a.UPN:p.addCcsUpn(e.ccsCredential.credential)}return null===d||void 0===d||d.endMeasurement({success:!0}),[2,p.createQueryString()]}})})},t}(o.a)},function(e,t,n){"use strict";n.d(t,"a",function(){return b});var r=n(12),o=n(203),i=n(724),a=n(59),s=n(17),c=n(7),u=n(725),l=n(45),d=n(204),p=n(307),h=n(201),f=n(726),m=n(727),g=n(728),y=n(44),v=n(60),b=function(){function e(e,t,n,r,o,i,a){this.canonicalAuthority=e,this._canonicalAuthority.validateAsUri(),this.networkInterface=t,this.cacheManager=n,this.authorityOptions=r,this.regionDiscoveryMetadata={region_used:void 0,region_source:void 0,region_outcome:void 0},this.logger=o,this.performanceClient=i,this.correlationId=a,this.regionDiscovery=new g.a(t,this.performanceClient,this.correlationId)}return e.prototype.getAuthorityType=function(e){if(e.HostNameAndPort.endsWith(c.m.CIAM_AUTH_URL))return o.a.Ciam;var t=e.PathSegments;if(t.length)switch(t[0].toLowerCase()){case c.m.ADFS:return o.a.Adfs;case c.m.DSTS:return o.a.Dsts}return o.a.Default},Object.defineProperty(e.prototype,"authorityType",{get:function(){return this.getAuthorityType(this.canonicalAuthorityUrlComponents)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"protocolMode",{get:function(){return this.authorityOptions.protocolMode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this.authorityOptions},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"canonicalAuthority",{get:function(){return this._canonicalAuthority.urlString},set:function(e){this._canonicalAuthority=new a.a(e),this._canonicalAuthority.validateAsUri(),this._canonicalAuthorityUrlComponents=null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"canonicalAuthorityUrlComponents",{get:function(){return this._canonicalAuthorityUrlComponents||(this._canonicalAuthorityUrlComponents=this._canonicalAuthority.getUrlComponents()),this._canonicalAuthorityUrlComponents},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hostnameAndPort",{get:function(){return this.canonicalAuthorityUrlComponents.HostNameAndPort.toLowerCase()}
2,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tenant",{get:function(){return this.canonicalAuthorityUrlComponents.PathSegments[0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"authorizationEndpoint",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.authorization_endpoint);throw s.a.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tokenEndpoint",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.token_endpoint);throw s.a.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"deviceCodeEndpoint",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.token_endpoint.replace("/token","/devicecode"));throw s.a.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"endSessionEndpoint",{get:function(){if(this.discoveryComplete()){if(!this.metadata.end_session_endpoint)throw s.a.createLogoutNotSupportedError();return this.replacePath(this.metadata.end_session_endpoint)}throw s.a.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selfSignedJwtAudience",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.issuer);throw s.a.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"jwksUri",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.jwks_uri);throw s.a.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),e.prototype.canReplaceTenant=function(t){return 1===t.PathSegments.length&&!e.reservedTenantDomains.has(t.PathSegments[0])&&this.getAuthorityType(t)===o.a.Default&&this.protocolMode===d.a.AAD},e.prototype.replaceTenant=function(e){return e.replace(/{tenant}|{tenantid}/g,this.tenant)},e.prototype.replacePath=function(e){var t=this,n=e,r=new a.a(this.metadata.canonical_authority).getUrlComponents(),o=r.PathSegments;return this.canonicalAuthorityUrlComponents.PathSegments.forEach(function(e,i){var s=o[i];if(0===i&&t.canReplaceTenant(r)){var c=new a.a(t.metadata.authorization_endpoint).getUrlComponents().PathSegments[0];s!==c&&(t.logger.verbose("Replacing tenant domain name "+s+" with id "+c),s=c)}e!==s&&(n=n.replace("/"+s+"/","/"+e+"/"))}),this.replaceTenant(n)},Object.defineProperty(e.prototype,"defaultOpenIdConfigurationEndpoint",{get:function(){return this.authorityType===o.a.Adfs||this.authorityType===o.a.Dsts||this.protocolMode===d.a.OIDC?this.canonicalAuthority+".well-known/openid-configuration":this.canonicalAuthority+"v2.0/.well-known/openid-configuration"},enumerable:!1,configurable:!0}),e.prototype.discoveryComplete=function(){return!!this.metadata},e.prototype.resolveEndpointsAsync=function(){var e,t,n;return Object(r.b)(this,void 0,void 0,function(){var o,i,a,s;return Object(r.d)(this,function(r){switch(r.label){case 0:return null===(e=this.performanceClient)||void 0===e||e.addQueueMeasurement(v.c.AuthorityResolveEndpointsAsync,this.correlationId),(o=this.cacheManager.getAuthorityMetadataByAlias(this.hostnameAndPort))||(o=new p.a).updateCanonicalAuthority(this.canonicalAuthority),null===(t=this.performanceClient)||void 0===t||t.setPreQueueTime(v.c.AuthorityUpdateCloudDiscoveryMetadata,this.correlationId),[4,this.updateCloudDiscoveryMetadata(o)];case 1:return i=r.sent(),this.canonicalAuthority=this.canonicalAuthority.replace(this.hostnameAndPort,o.preferred_network),null===(n=this.performanceClient)||void 0===n||n.setPreQueueTime(v.c.AuthorityUpdateEndpointMetadata,this.correlationId),[4,this.updateEndpointMetadata(o)];case 2:return a=r.sent(),i!==c.f.CACHE&&a!==c.f.CACHE&&(o.resetExpiresAt(),o.updateCanonicalAuthority(this.canonicalAuthority)),s=this.cacheManager.generateAuthorityMetadataCacheKey(o.preferred_cache),this.cacheManager.setAuthorityMetadata(s,o),this.metadata=o,[2]}})})},e.prototype.updateEndpointMetadata=function(e){var t,n,o,i,a,u;return Object(r.b)(this,void 0,void 0,function(){var l,d;return Object(r.d)(this,function(r){switch(r.label){case 0:return null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(v.c.AuthorityUpdateEndpointMetadata,this.correlationId),(l=this.getEndpointMetadataFromConfig())?(e.updateEndpointMetadata(l,!1),[2,c.f.CONFIG]):this.isAuthoritySameType(e)&&e.endpointsFromNetwork&&!e.isExpired()?[2,c.f.CACHE]:(null===(n=this.performanceClient)||void 0===n||n.setPreQueueTime(v.c.AuthorityGetEndpointMetadataFromNetwork,this.correlationId),[4,this.getEndpointMetadataFromNetwork()]);case 1:return(l=r.sent())?(null===(o=this.authorityOptions.azureRegionConfiguration)||void 0===o?void 0:o.azureRegion)?(null===(i=this.performanceClient)||void 0===i||i.setPreQueueTime(v.c.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId),[4,this.updateMetadataWithRegionalInformation(l)]):[3,3]:[3,4];case 2:l=r.sent(),r.label=3;case 3:return e.updateEndpointMetadata(l,!0),[2,c.f.NETWORK];case 4:return!(d=this.getEndpointMetadataFromHardcodedValues())||this.authorityOptions.skipAuthorityMetadataCache?[3,7]:(null===(a=this.authorityOptions.azureRegionConfiguration)||void 0===a?void 0:a.azureRegion)?(null===(u=this.performanceClient)||void 0===u||u.setPreQueueTime(v.c.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId),[4,this.updateMetadataWithRegionalInformation(d)]):[3,6];case 5:d=r.sent(),r.label=6;case 6:return e.updateEndpointMetadata(d,!1),[2,c.f.HARDCODED_VALUES];case 7:throw s.a.createUnableToGetOpenidConfigError(this.defaultOpenIdConfigurationEndpoint)}})})},e.prototype.isAuthoritySameType=function(e){return new a.a(e.canonical_authority).getUrlComponents().PathSegments.length===this.canonicalAuthorityUrlComponents.PathSegments.length},e.prototype.getEndpointMetadataFromConfig=function(){if(this.authorityOptions.authorityMetadata)try{return JSON.parse(this.authorityOptions.authorityMetadata)}catch(e){throw l.a.createInvalidAuthorityMetadataError()}return null},e.prototype.getEndpointMetadataFromNetwork=function(){var e;return Object(r.b)(this,void 0,void 0,function(){var t,n;return Object(r.d)(this,function(r){switch(r.label){case 0:null===(e=this.performanceClient)||void 0===e||e.addQueueMeasurement(v.c.AuthorityGetEndpointMetadataFromNetwork,this.correlationId),t={},r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(this.defaultOpenIdConfigurationEndpoint,t)];case 2:return n=r.sent(),[2,Object(i.a)(n.body)?n.body:null];case 3:return r.sent(),[2,null];case 4:return[2]}})})},e.prototype.getEndpointMetadataFromHardcodedValues=function(){return this.canonicalAuthority in u.a?u.a[this.canonicalAuthority]:null},e.prototype.updateMetadataWithRegionalInformation=function(t){var n,o,i,a;return Object(r.b)(this,void 0,void 0,function(){var s,u;return Object(r.d)(this,function(r){switch(r.label){case 0:return null===(n=this.performanceClient)||void 0===n||n.addQueueMeasurement(v.c.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId),(s=null===(o=this.authorityOptions.azureRegionConfiguration)||void 0===o?void 0:o.azureRegion)?s!==c.m.AZURE_REGION_AUTO_DISCOVER_FLAG?(this.regionDiscoveryMetadata.region_outcome=c.x.CONFIGURED_NO_AUTO_DETECTION,this.regionDiscoveryMetadata.region_used=s,[2,e.replaceWithRegionalInformation(t,s)]):(null===(i=this.performanceClient)||void 0===i||i.setPreQueueTime(v.c.RegionDiscoveryDetectRegion,this.correlationId),[4,this.regionDiscovery.detectRegion(null===(a=this.authorityOptions.azureRegionConfiguration)||void 0===a?void 0:a.environmentRegion,this.regionDiscoveryMetadata)]):[3,2];case 1:if(u=r.sent())return this.regionDiscoveryMetadata.region_outcome=c.x.AUTO_DETECTION_REQUESTED_SUCCESSFUL,this.regionDiscoveryMetadata.region_used=u,[2,e.replaceWithRegionalInformation(t,u)];this.regionDiscoveryMetadata.region_outcome=c.x.AUTO_DETECTION_REQUESTED_FAILED,r.label=2;case 2:return[2,t]}})})},e.prototype.updateCloudDiscoveryMetadata=function(e){var t,n;return Object(r.b)(this,void 0,void 0,function(){var o,i,a;return Object(r.d)(this,function(r){switch(r.label){case 0:return null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(v.c.AuthorityUpdateCloudDiscoveryMetadata,this.correlationId),this.logger.verbose("Attempting to get cloud discovery metadata in the config"),this.logger.verbosePii("Known Authorities: "+(this.authorityOptions.knownAuthorities||c.m.NOT_APPLICABLE)),this.logger.verbosePii("Authority Metadata: "+(this.authorityOptions.authorityMetadata||c.m.NOT_APPLICABLE)),this.logger.verbosePii("Canonical Authority: "+(e.canonical_authority||c.m.NOT_APPLICABLE)),(o=this.getCloudDiscoveryMetadataFromConfig())?(this.logger.verbose("Found cloud discovery metadata in the config."),e.updateCloudDiscoveryMetadata(o,!1),[2,c.f.CONFIG]):(this.logger.verbose("Did not find cloud discovery metadata in the config... Attempting to get cloud discovery metadata from the cache."),i=e.isExpired(),this.isAuthoritySameType(e)&&e.aliasesFromNetwork&&!i?(this.logger.verbose("Found metadata in the cache."),[2,c.f.CACHE]):(i&&this.logger.verbose("The metadata entity is expired."),this.logger.verbose("Did not find cloud discovery metadata in the cache... Attempting to get cloud discovery metadata from the network."),null===(n=this.performanceClient)||void 0===n||n.setPreQueueTime(v.c.AuthorityGetCloudDiscoveryMetadataFromNetwork,this.correlationId),[4,this.getCloudDiscoveryMetadataFromNetwork()]));case 1:if(o=r.sent())return this.logger.verbose("cloud discovery metadata was successfully returned from getCloudDiscoveryMetadataFromNetwork()"),e.updateCloudDiscoveryMetadata(o,!0),[2,c.f.NETWORK];if(this.logger.verbose("Did not find cloud discovery metadata from the network... Attempting to get cloud discovery metadata from hardcoded values."),(a=this.getCloudDiscoveryMetadataFromHarcodedValues())&&!this.options.skipAuthorityMetadataCache)return this.logger.verbose("Found cloud discovery metadata from hardcoded values."),e.updateCloudDiscoveryMetadata(a,!1),[2,c.f.HARDCODED_VALUES];
2throw this.logger.error("Did not find cloud discovery metadata from hardcoded values... Metadata could not be obtained from config, cache, network or hardcoded values. Throwing Untrusted Authority Error."),l.a.createUntrustedAuthorityError()}})})},e.prototype.getCloudDiscoveryMetadataFromConfig=function(){if(this.authorityType===o.a.Ciam)return this.logger.verbose("CIAM authorities do not support cloud discovery metadata, generate the aliases from authority host."),e.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort);if(this.authorityOptions.cloudDiscoveryMetadata){this.logger.verbose("The cloud discovery metadata has been provided as a network response, in the config.");try{this.logger.verbose("Attempting to parse the cloud discovery metadata.");var t=JSON.parse(this.authorityOptions.cloudDiscoveryMetadata),n=e.getCloudDiscoveryMetadataFromNetworkResponse(t.metadata,this.hostnameAndPort);if(this.logger.verbose("Parsed the cloud discovery metadata."),n)return this.logger.verbose("There is returnable metadata attached to the parsed cloud discovery metadata."),n;this.logger.verbose("There is no metadata attached to the parsed cloud discovery metadata.")}catch(e){throw this.logger.verbose("Unable to parse the cloud discovery metadata. Throwing Invalid Cloud Discovery Metadata Error."),l.a.createInvalidCloudDiscoveryMetadataError()}}return this.isInKnownAuthorities()?(this.logger.verbose("The host is included in knownAuthorities. Creating new cloud discovery metadata from the host."),e.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)):null},e.prototype.getCloudDiscoveryMetadataFromNetwork=function(){var t;return Object(r.b)(this,void 0,void 0,function(){var n,o,i,a,s,u,l,d;return Object(r.d)(this,function(r){switch(r.label){case 0:null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(v.c.AuthorityGetCloudDiscoveryMetadataFromNetwork,this.correlationId),n=""+c.m.AAD_INSTANCE_DISCOVERY_ENDPT+this.canonicalAuthority+"oauth2/v2.0/authorize",o={},i=null,r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(n,o)];case 2:if(a=r.sent(),s=void 0,u=void 0,Object(f.a)(a.body))s=a.body,u=s.metadata,this.logger.verbosePii("tenant_discovery_endpoint is: "+s.tenant_discovery_endpoint);else{if(!Object(m.a)(a.body))return this.logger.error("AAD did not return a CloudInstanceDiscoveryResponse or CloudInstanceDiscoveryErrorResponse"),[2,null];if(this.logger.warning("A CloudInstanceDiscoveryErrorResponse was returned. The cloud instance discovery network request's status code is: "+a.status),(s=a.body).error===c.m.INVALID_INSTANCE)return this.logger.error("The CloudInstanceDiscoveryErrorResponse error is invalid_instance."),[2,null];this.logger.warning("The CloudInstanceDiscoveryErrorResponse error is "+s.error),this.logger.warning("The CloudInstanceDiscoveryErrorResponse error description is "+s.error_description),this.logger.warning("Setting the value of the CloudInstanceDiscoveryMetadata (returned from the network) to []"),u=[]}return this.logger.verbose("Attempting to find a match between the developer's authority and the CloudInstanceDiscoveryMetadata returned from the network request."),i=e.getCloudDiscoveryMetadataFromNetworkResponse(u,this.hostnameAndPort),[3,4];case 3:return(l=r.sent())instanceof y.a?this.logger.error("There was a network error while attempting to get the cloud discovery instance metadata.\nError: "+l.errorCode+"\nError Description: "+l.errorMessage):(d=l,this.logger.error("A non-MSALJS error was thrown while attempting to get the cloud instance discovery metadata.\nError: "+d.name+"\nError Description: "+d.message)),[2,null];case 4:return i||(this.logger.warning("The developer's authority was not found within the CloudInstanceDiscoveryMetadata returned from the network request."),this.logger.verbose("Creating custom Authority for custom domain scenario."),i=e.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)),[2,i]}})})},e.prototype.getCloudDiscoveryMetadataFromHarcodedValues=function(){return this.canonicalAuthority in u.b?u.b[this.canonicalAuthority]:null},e.prototype.isInKnownAuthorities=function(){var e=this;return this.authorityOptions.knownAuthorities.filter(function(t){return a.a.getDomainFromUrl(t).toLowerCase()===e.hostnameAndPort}).length>0},e.generateAuthority=function(e,t){var n;if(t&&t.azureCloudInstance!==h.a.None){var r=t.tenant?t.tenant:c.m.DEFAULT_COMMON_TENANT;n=t.azureCloudInstance+"/"+r+"/"}return n||e},e.createCloudDiscoveryMetadataFromHost=function(e){return{preferred_network:e,preferred_cache:e,aliases:[e]}},e.getCloudDiscoveryMetadataFromNetworkResponse=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.aliases.indexOf(t)>-1)return r}return null},e.prototype.getPreferredCache=function(){if(this.discoveryComplete())return this.metadata.preferred_cache;throw s.a.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},e.prototype.isAlias=function(e){return this.metadata.aliases.indexOf(e)>-1},e.isPublicCloudAuthority=function(e){return c.m.KNOWN_PUBLIC_CLOUDS.indexOf(e)>=0},e.buildRegionalAuthorityString=function(e,t,n){var o=new a.a(e);o.validateAsUri();var i=o.getUrlComponents(),s=t+"."+i.HostNameAndPort;this.isPublicCloudAuthority(i.HostNameAndPort)&&(s=t+"."+c.m.REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX);var u=a.a.constructAuthorityUriFromObject(Object(r.a)(Object(r.a)({},o.getUrlComponents()),{HostNameAndPort:s})).urlString;return n?u+"?"+n:u},e.replaceWithRegionalInformation=function(t,n){return t.authorization_endpoint=e.buildRegionalAuthorityString(t.authorization_endpoint,n),t.token_endpoint=e.buildRegionalAuthorityString(t.token_endpoint,n,c.m.REGIONAL_AUTH_NON_MSI_QUERY_STRING),t.end_session_endpoint&&(t.end_session_endpoint=e.buildRegionalAuthorityString(t.end_session_endpoint,n)),t},e.transformCIAMAuthority=function(e){var t=e.endsWith(c.m.FORWARD_SLASH)?e:""+e+c.m.FORWARD_SLASH,n=new a.a(e).getUrlComponents();0===n.PathSegments.length&&n.HostNameAndPort.endsWith(c.m.CIAM_AUTH_URL)&&(t=""+t+n.HostNameAndPort.split(".")[0]+c.m.AAD_TENANT_DOMAIN_SUFFIX);return t},e.reservedTenantDomains=new Set(["{tenant}","{tenantid}",c.a.COMMON,c.a.CONSUMERS,c.a.ORGANIZATIONS]),e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(7),o=n(46),i=function(){function e(){this.expiresAt=o.a.nowSeconds()+r.d.REFRESH_TIME_SECONDS}return e.prototype.updateCloudDiscoveryMetadata=function(e,t){this.aliases=e.aliases,this.preferred_cache=e.preferred_cache,this.preferred_network=e.preferred_network,this.aliasesFromNetwork=t},e.prototype.updateEndpointMetadata=function(e,t){this.authorization_endpoint=e.authorization_endpoint,this.token_endpoint=e.token_endpoint,this.end_session_endpoint=e.end_session_endpoint,this.issuer=e.issuer,this.endpointsFromNetwork=t,this.jwks_uri=e.jwks_uri},e.prototype.updateCanonicalAuthority=function(e){this.canonical_authority=e},e.prototype.resetExpiresAt=function(){this.expiresAt=o.a.nowSeconds()+r.d.REFRESH_TIME_SECONDS},e.prototype.isExpired=function(){return this.expiresAt<=o.a.nowSeconds()},e.isAuthorityMetadataEntity=function(e,t){return!!t&&(0===e.indexOf(r.d.CACHE_KEY)&&t.hasOwnProperty("aliases")&&t.hasOwnProperty("preferred_cache")&&t.hasOwnProperty("preferred_network")&&t.hasOwnProperty("canonical_authority")&&t.hasOwnProperty("authorization_endpoint")&&t.hasOwnProperty("token_endpoint")&&t.hasOwnProperty("issuer")&&t.hasOwnProperty("aliasesFromNetwork")&&t.hasOwnProperty("endpointsFromNetwork")&&t.hasOwnProperty("expiresAt")&&t.hasOwnProperty("jwks_uri"))},e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return o}
2);var r=n(7),o=function(){function e(){this.failedRequests=[],this.errors=[],this.cacheHits=0}return e.isServerTelemetryEntity=function(e,t){var n=0===e.indexOf(r.B.CACHE_KEY),o=!0;return t&&(o=t.hasOwnProperty("failedRequests")&&t.hasOwnProperty("errors")&&t.hasOwnProperty("cacheHits")),n&&o},e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(12),o=n(60),i=function(){function e(e,t,n,r,o,i){this.authority=t,this.libraryName=r,this.libraryVersion=o,this.applicationTelemetry=i,this.clientId=e,this.logger=n,this.callbacks=new Map,this.eventsByCorrelationId=new Map,this.queueMeasurements=new Map,this.preQueueTimeByCorrelationId=new Map}return e.prototype.startPerformanceMeasurement=function(e,t){return{}},e.prototype.startPerformanceMeasuremeant=function(e,t){return{}},e.prototype.getIntFields=function(){return o.a},e.prototype.getPreQueueTime=function(e,t){var n=this.preQueueTimeByCorrelationId.get(t);if(n){if(n.name===e)return n.time;this.logger.trace("PerformanceClient.getPreQueueTime: no pre-queue time found for "+e+", unable to add queue measurement")}else this.logger.trace("PerformanceClient.getPreQueueTime: no pre-queue times found for correlationId: "+t+", unable to add queue measurement")},e.prototype.calculateQueuedTime=function(e,t){return e<1?(this.logger.trace("PerformanceClient: preQueueTime should be a positive integer and not "+e),0):t<1?(this.logger.trace("PerformanceClient: currentTime should be a positive integer and not "+t),0):t<e?(this.logger.trace("PerformanceClient: currentTime is less than preQueueTime, check how time is being retrieved"),0):t-e},e.prototype.addQueueMeasurement=function(e,t,n,r){if(t){if(0===n)this.logger.trace("PerformanceClient.addQueueMeasurement: queue time provided for "+e+" is "+n);else if(!n)return void this.logger.trace("PerformanceClient.addQueueMeasurement: no queue time provided for "+e);var o={eventName:e,queueTime:n,manuallyCompleted:r},i=this.queueMeasurements.get(t);if(i)i.push(o),this.queueMeasurements.set(t,i);else{this.logger.trace("PerformanceClient.addQueueMeasurement: adding correlationId "+t+" to queue measurements");var a=[o];this.queueMeasurements.set(t,a)}this.preQueueTimeByCorrelationId.delete(t)}else this.logger.trace("PerformanceClient.addQueueMeasurement: correlationId not provided for "+e+", cannot add queue measurement")},e.prototype.startMeasurement=function(e,t){var n,i,a=this,s=t||this.generateId();t||this.logger.info("PerformanceClient: No correlation id provided for "+e+", generating",s),this.logger.trace("PerformanceClient: Performance measurement started for "+e,s);var c=this.startPerformanceMeasuremeant(e,s);c.startMeasurement();var u={eventId:this.generateId(),status:o.b.InProgress,authority:this.authority,libraryName:this.libraryName,libraryVersion:this.libraryVersion,clientId:this.clientId,name:e,startTimeMs:Date.now(),correlationId:s,appName:null===(n=this.applicationTelemetry)||void 0===n?void 0:n.appName,appVersion:null===(i=this.applicationTelemetry)||void 0===i?void 0:i.appVersion};return this.cacheEventByCorrelationId(u),{endMeasurement:function(e){return a.endMeasurement(Object(r.a)(Object(r.a)({},u),e),c)},discardMeasurement:function(){return a.discardMeasurements(u.correlationId)},addStaticFields:function(e){return a.addStaticFields(e,u.correlationId)},increment:function(e){return a.increment(e,u.correlationId)},measurement:c,event:u}},e.prototype.endMeasurement=function(e,t){var n,i,a=this,s=this.eventsByCorrelationId.get(e.correlationId);if(!s)return this.logger.trace("PerformanceClient: Measurement not found for "+e.eventId,e.correlationId),null;var c=e.eventId===s.eventId,u={totalQueueTime:0,totalQueueCount:0,manuallyCompletedCount:0};c?(u=this.getQueueInfo(e.correlationId),this.discardCache(s.correlationId)):null===(n=s.incompleteSubMeasurements)||void 0===n||n.delete(e.eventId),null===t||void 0===t||t.endMeasurement();var l=null===t||void 0===t?void 0:t.flushMeasurement();if(!l)return this.logger.trace("PerformanceClient: Performance measurement not taken",s.correlationId),null;if(this.logger.trace("PerformanceClient: Performance measurement ended for "+e.name+": "+l+" ms",e.correlationId),!c)return s[e.name+"DurationMs"]=Math.floor(l),Object(r.a)({},s);var d=Object(r.a)(Object(r.a)({},s),e),p=0;return null===(i=d.incompleteSubMeasurements)||void 0===i||i.forEac
2h(function(t){a.logger.trace("PerformanceClient: Incomplete submeasurement "+t.name+" found for "+e.name,d.correlationId),p++}),d.incompleteSubMeasurements=void 0,d=Object(r.a)(Object(r.a)({},d),{durationMs:Math.round(l),queuedTimeMs:u.totalQueueTime,queuedCount:u.totalQueueCount,queuedManuallyCompletedCount:u.manuallyCompletedCount,status:o.b.Completed,incompleteSubsCount:p}),this.truncateIntegralFields(d,this.getIntFields()),this.emitEvents([d],e.correlationId),d},e.prototype.addStaticFields=function(e,t){this.logger.trace("PerformanceClient: Updating static fields");var n=this.eventsByCorrelationId.get(t);n?this.eventsByCorrelationId.set(t,Object(r.a)(Object(r.a)({},n),e)):this.logger.trace("PerformanceClient: Event not found for",t)},e.prototype.increment=function(e,t){this.logger.trace("PerformanceClient: Updating counters");var n=this.eventsByCorrelationId.get(t);if(n)for(var r in e)n.hasOwnProperty(r)||(n[r]=0),n[r]+=e[r];else this.logger.trace("PerformanceClient: Event not found for",t)},e.prototype.cacheEventByCorrelationId=function(e){var t=this.eventsByCorrelationId.get(e.correlationId);t?(this.logger.trace("PerformanceClient: Performance measurement for "+e.name+" added/updated",e.correlationId),t.incompleteSubMeasurements=t.incompleteSubMeasurements||new Map,t.incompleteSubMeasurements.set(e.eventId,{name:e.name,startTimeMs:e.startTimeMs})):(this.logger.trace("PerformanceClient: Performance measurement for "+e.name+" started",e.correlationId),this.eventsByCorrelationId.set(e.correlationId,Object(r.a)({},e)))},e.prototype.getQueueInfo=function(e){var t=this.queueMeasurements.get(e);t||this.logger.trace("PerformanceClient: no queue measurements found for for correlationId: "+e);var n=0,r=0,o=0;return null===t||void 0===t||t.forEach(function(e){n+=e.queueTime,r++,o+=e.manuallyCompleted?1:0}),{totalQueueTime:n,totalQueueCount:r,manuallyCompletedCount:o}},e.prototype.discardMeasurements=function(e){this.logger.trace("PerformanceClient: Performance measurements discarded",e),this.eventsByCorrelationId.delete(e)},e.prototype.discardCache=function(e){this.discardMeasurements(e),this.logger.trace("PerformanceClient: QueueMeasurements discarded",e),this.queueMeasurements.delete(e),this.logger.trace("PerformanceClient: Pre-queue times discarded",e),this.preQueueTimeByCorrelationId.delete(e)},e.prototype.addPerformanceCallback=function(e){var t=this.generateId();return this.callbacks.set(t,e),this.logger.verbose("PerformanceClient: Performance callback registered with id: "+t),t},e.prototype.removePerformanceCallback=function(e){var t=this.callbacks.delete(e);return t?this.logger.verbose("PerformanceClient: Performance callback "+e+" removed."):this.logger.verbose("PerformanceClient: Performance callback "+e+" not removed."),t},e.prototype.emitEvents=function(e,t){var n=this;this.logger.verbose("PerformanceClient: Emitting performance events",t),this.callbacks.forEach(function(r,o){n.logger.trace("PerformanceClient: Emitting event to callback "+o,t),r.apply(null,[e])})},e.prototype.truncateIntegralFields=function(e,t){t.forEach(function(t){t in e&&"number"==typeof e[t]&&(e[t]=Math.floor(e[t]))})},e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(){function e(){this.cache=new Map}return e.prototype.getItem=function(e){return this.cache.get(e)||null},e.prototype.setItem=function(e,t){this.cache.set(e,t)},e.prototype.removeItem=function(e){this.cache.delete(e)},e.prototype.getKeys=function(){var e=[];return this.cache.forEach(function(t,n){e.push(n)}),e},e.prototype.containsKey=function(e){return this.cache.has(e)},e.prototype.clear=function(){this.cache.clear()},e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(6),o=function(){function e(){}return e.extractBrowserRequestState=function(e,t){if(r.S.isEmpty(t))return null;try{return r.J.parseRequestState(e,t).libraryState.meta}catch(e){throw r.p.createInvalidStateError(t,e)}},e.parseServerResponseFromHash=function(e){if(!e)return{};var t=new r.Y(e);return r.Y.getDeserializedHash(t.getHash())},e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r=n(9),o=n(6),i=n(121),a=n(14),s=n(66),c=function(){function e(e,t,n,r,o,s,c,u,l){this.config=e,this.browserStorage=t,this.browserCrypto=n,this.networkClient=this.config.system.networkClient,this.eventHandler=o,this.navigationClient=s,this.nativeMessageHandler=u,this.correlationId=l||this.browserCrypto.createNewGuid(),this.logger=r.clone(a.c.MSAL_SKU,i.b,this.correlationId),this.performanceClient=c}return e.prototype.clearCacheOnLogout=function(e){return Object(r.b)(this,void 0,void 0,function(){return Object(r.d)(this,function(t){switch(t.label){case 0:if(!e)return[3,5];o.b.accountInfoIsEqual(e,this.browserStorage.getActiveAccount(),!1)&&(this.logger.verbose("Setting active account to null"),this.browserStorage.setActiveAccount(null)),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.browserStorage.removeAccount(o.b.generateAccountCacheKey(e))];case 2:return t.sent(),this.logger.verbose("Cleared cache items belonging to the account provided in the logout request."),[3,4];case 3:return t.sent(),this.logger.error("Account provided in logout request was not found. Local cache unchanged."),[3,4];case 4:return[3,9];case 5:return t.trys.push([5,8,,9]),this.logger.verbose("No account provided in logout request, clearing all cache items.",this.correlationId),[4,this.browserStorage.clear()];case 6:return t.sent(),[4,this.browserCrypto.clearKeystore()];case 7:return t.sent(),[3,9];case 8:return t.sent(),this.logger.error("Attempted to clear all MSAL cache items and failed. Local cache unchanged."),[3,9];case 9:return[2]}})})},e.prototype.initializeBaseRequest=function(e,t){return Object(r.b)(this,void 0,void 0,function(){var n,i,a,s;return Object(r.d)(this,function(c){switch(c.label){case 0:return this.performanceClient.addQueueMeasurement(o.E.InitializeBaseRequest,e.correlationId),this.logger.verbose("Initializing BaseAuthRequest"),n=e.authority||this.config.auth.authority,t?[4,this.validateRequestAuthority(n,t)]:[3,2];case 1:c.sent(),c.label=2;case 2:if(i=Object(r.f)(e&&e.scopes||[]),(a=Object(r.a)(Object(r.a)({},e),{correlationId:this.correlationId,authority:n,scopes:i})).authenticationScheme){if(a.authenticationScheme===o.f.SSH){if(!e.sshJwk)throw o.q.createMissingSshJwkError();if(!e.sshKid)throw o.q.createMissingSshKidError()}this.logger.verbose('Authentication Scheme set to "'+a.authenticationScheme+'" as configured in Auth request')}else a.authenticationScheme=o.f.BEARER,this.logger.verbose('Authentication Scheme wasn\'t explicitly set in request, defaulting to "Bearer" request');return this.config.cache.claimsBasedCachingEnabled&&e.claims&&!o.S.isEmptyObj(e.claims)?(s=a,[4,this.browserCrypto.hashString(e.claims)]):[3,4];case 3:s.requestedClaimsHash=c.sent(),c.label=4;case 4:return[2,a]}})})},e.prototype.getRedirectUri=function(e){this.logger.verbose("getRedirectUri called");var t=e||this.config.auth.redirectUri||s.a.getCurrentUri();return o.Y.getAbsoluteUrl(t,s.a.getCurrentUri())},e.prototype.validateRequestAuthority=function(e,t){return Object(r.b)(this,void 0,void 0,function(){return Object(r.d)(this,function(n){switch(n.label){case 0:return[4,this.getDiscoveredAuthority(e)];case 1:if(!n.sent().isAlias(t.environment))throw o.q.createAuthorityMismatchError();return[2]}})})},e.prototype.initializeServerTelemetryManager=function(e,t){this.logger.verbose("initializeServerTelemetryManager called");var n={clientId:this.config.auth.clientId,correlationId:this.correlationId,apiId:e,forceRefresh:t||!1,wrapperSKU:this.browserStorage.getWrapperMetadata()[0],wrapperVer:this.browserStorage.getWrapperMetadata()[1]};return new o.Q(n,this.browserStorage)},e.prototype.getDiscoveredAuthority=function(e){return Object(r.b)(this,void 0,void 0,function(){var t;return Object(r.d)(this,function(n){switch(n.label){case 0:return this.logger.verbose("getDiscoveredAuthority called"),t={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata},e?(this.logger.verbose("Creating discovered authority with request authority"),[4,o.h.createDiscoveredInstance(e,this.config.system.networkClient,this.browserStorage,t,this.logger)]):[3,2];case 1:return[2,n.sent()];case 2:return this.logger.verbose("Creating discovered authority with configured authority"),[4,o.h.createDiscoveredInstance(this.config.auth.authority,this.config.system.networkClient,this.browserStorage,t,this.logger)];case 3:return[2,n.sent()]}})})},e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return h});var r=n(9),o=n(6),i=n(77),a=n(14),s=n(314),c=n(66),u=n(78),l=n(15),d=n(122),p=n(93),h=function(e){function t(t,n,r,o,i,a,s,c,u,l){var d=e.call(this,t,n,r,o,i,a,s,u,l)||this;return d.nativeStorage=c,d}return Object(r.c)(t,e),t.prototype.acquireToken=function(e){return Object(r.b)(this,void 0,void 0,function(){var t,n,i,c,l,d,h,f,m,g=this;return Object(r.d)(this,function(y){switch(y.label){case 0:return this.performanceClient.setPreQueueTime(o.E.StandardInteractionClientInitializeAuthorizationRequest,e.correlationId),[4,this.initializeAuthorizationRequest(e,a.l.Redirect)];case 1:t=y.sent(),this.browserStorage.updateCacheEntries(t.state,t.nonce,t.authority,t.loginHint||o.r.EMPTY_STRING,t.account||null),n=this.initializeServerTelemetryManager(a.a.acquireTokenRedirect),i=function(e){e.persisted&&(g.logger.verbose("Page was restored from back/forward cache. Clearing temporary cache."),g.browserStorage.cleanRequestByState(t.state),g.eventHandler.emitEvent(u.a.RESTORE_FROM_BFCACHE,a.l.Redirect))},y.label=2;case 2:return y.trys.push([2,7,,8]),this.performanceClient.setPreQueueTime(o.E.StandardInteractionClientInitializeAuthorizationCodeRequest,e.correlationId),[4,this.initializeAuthorizationCodeRequest
2(t)];case 3:return c=y.sent(),this.performanceClient.setPreQueueTime(o.E.StandardInteractionClientCreateAuthCodeClient,e.correlationId),[4,this.createAuthCodeClient(n,t.authority,t.azureCloudOptions)];case 4:return l=y.sent(),this.logger.verbose("Auth code client created"),d=new s.a(l,this.browserStorage,c,this.logger,this.browserCrypto,this.performanceClient),[4,l.getAuthCodeUrl(Object(r.a)(Object(r.a)({},t),{nativeBroker:p.a.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,e.authenticationScheme)}))];case 5:return h=y.sent(),f=this.getRedirectStartPage(e.redirectStartPage),this.logger.verbosePii("Redirect start page: "+f),window.addEventListener("pageshow",i),[4,d.initiateAuthRequest(h,{navigationClient:this.navigationClient,redirectTimeout:this.config.system.redirectNavigationTimeout,redirectStartPage:f,onRedirectNavigate:e.onRedirectNavigate})];case 6:return[2,y.sent()];case 7:throw(m=y.sent())instanceof o.d&&m.setCorrelationId(this.correlationId),window.removeEventListener("pageshow",i),n.cacheFailedRequest(m),this.browserStorage.cleanRequestByState(t.state),m;case 8:return[2]}})})},t.prototype.handleRedirectPromise=function(e){return Object(r.b)(this,void 0,void 0,function(){var t,n,i,s,u,l,d,p,h,f,m,g;return Object(r.d)(this,function(r){switch(r.label){case 0:t=this.initializeServerTelemetryManager(a.a.handleRedirectPromise),r.label=1;case 1:if(r.trys.push([1,10,,11]),!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),[2,null];if(!(n=this.getRedirectResponseHash(e||window.location.hash)))return this.logger.info("handleRedirectPromise did not detect a response hash as a result of a redirect. Cleaning temporary cache."),this.browserStorage.cleanRequestByInteractionType(a.l.Redirect),[2,null];i=void 0;try{s=o.Y.getDeserializedHash(n),i=this.validateAndExtractStateFromHash(s,a.l.Redirect),this.logger.verbose("State extracted from hash")}catch(e){return this.logger.info("handleRedirectPromise was unable to extract state due to: "+e),this.browserStorage.cleanRequestByInteractionType(a.l.Redirect),[2,null]}return u=this.browserStorage.getTemporaryCache(a.q.ORIGIN_URI,!0)||o.r.EMPTY_STRING,l=o.Y.removeHashFromUrl(u),d=o.Y.removeHashFromUrl(window.location.href),l===d&&this.config.auth.navigateToLoginRequestUrl?(this.logger.verbose("Current page is loginRequestUrl, handling hash"),[4,this.handleHash(n,i,t)]):[3,3];case 2:return p=r.sent(),u.indexOf("#")>-1&&c.a.replaceHash(u),[2,p];case 3:return this.config.auth.navigateToLoginRequestUrl?[3,4]:(this.logger.verbose("NavigateToLoginRequestUrl set to false, handling hash"),[2,this.handleHash(n,i,t)]);case 4:return c.a.isInIframe()&&!this.config.system.allowRedirectInIframe?[3,9]:(this.browserStorage.setTemporaryCache(a.q.URL_HASH,n,!0),h={apiId:a.a.handleRedirectPromise,timeout:this.config.system.redirectNavigationTimeout,noHistory:!0},f=!0,u&&"null"!==u?[3,6]:(m=c.a.getHomepage(),this.browserStorage.setTemporaryCache(a.q.ORIGIN_URI,m,!0),this.logger.warning("Unable to get valid login request url from cache, redirecting to home page"),[4,this.navigationClient.navigateInternal(m,h)]));case 5:return f=r.sent(),[3,8];case 6:return this.logger.verbose("Navigating to loginRequestUrl: "+u),[4,this.navigationClient.navigateInternal(u,h)];case 7:f=r.sent(),r.label=8;case 8:if(!f)return[2,this.handleHash(n,i,t)];r.label=9;case 9:return[2,null];case 10:throw(g=r.sent())instanceof o.d&&g.setCorrelationId(this.correlationId),t.cacheFailedRequest(g),this.browserStorage.cleanRequestByInteractionType(a.l.Redirect),g;case 11:return[2]}})})},t.prototype.getRedirectResponseHash=function(e){if(this.logger.verbose("getRedirectResponseHash called"),o.Y.hashContainsKnownProperties(e))return c.a.clearHash(window),this.logger.verbose("Hash contains known properties, returning response hash"),e;var t=this.browserStorage.getTemporaryCache(a.q.URL_HASH,!0);return this.browserStorage.removeItem(this.browserStorage.generateCacheKey(a.q.URL_HASH)),this.logger.verbose("Hash does not contain known properties, returning c
2ached hash"),t},t.prototype.handleHash=function(e,t,n){return Object(r.b)(this,void 0,void 0,function(){var i,c,u,p,h,f,m=this;return Object(r.d)(this,function(g){switch(g.label){case 0:if(i=this.browserStorage.getCachedRequest(t,this.browserCrypto),this.logger.verbose("handleHash called, retrieved cached request"),(c=o.Y.getDeserializedHash(e)).accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw l.a.createNativeConnectionNotEstablishedError();return u=new d.a(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,a.a.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,c.accountId,this.nativeStorage,i.correlationId),p=o.J.parseRequestState(this.browserCrypto,t).userRequestState,[2,u.acquireToken(Object(r.a)(Object(r.a)({},i),{state:p,prompt:void 0})).finally(function(){m.browserStorage.cleanRequestByState(t)})]}if(!(h=this.browserStorage.getCachedAuthority(t)))throw l.a.createNoCachedAuthorityError();return this.performanceClient.setPreQueueTime(o.E.StandardInteractionClientCreateAuthCodeClient,i.correlationId),[4,this.createAuthCodeClient(n,h)];case 1:return f=g.sent(),this.logger.verbose("Auth code client created"),o.W.removeThrottle(this.browserStorage,this.config.auth.clientId,i),[4,new s.a(f,this.browserStorage,i,this.logger,this.browserCrypto,this.performanceClient).handleCodeResponseFromHash(e,t,f.authority,this.networkClient)];case 2:return[2,g.sent()]}})})},t.prototype.logout=function(e){return Object(r.b)(this,void 0,void 0,function(){var t,n,i,s,c,l;return Object(r.d)(this,function(r){switch(r.label){case 0:this.logger.verbose("logoutRedirect called"),t=this.initializeLogoutRequest(e),n=this.initializeServerTelemetryManager(a.a.logout),r.label=1;case 1:return r.trys.push([1,10,,11]),this.eventHandler.emitEvent(u.a.LOGOUT_START,a.l.Redirect,e),[4,this.clearCacheOnLogout(t.account)];case 2:return r.sent(),i={apiId:a.a.logout,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},this.performanceClient.setPreQueueTime(o.E.StandardInteractionClientCreateAuthCodeClient,t.correlationId),[4,this.createAuthCodeClient(n,e&&e.authority)];case 3:return s=r.sent(),this.logger.verbose("Auth code client created"),c=s.getLogoutUri(t),this.eventHandler.emitEvent(u.a.LOGOUT_SUCCESS,a.l.Redirect,t),e&&"function"==typeof e.onRedirectNavigate?!1===e.onRedirectNavigate(c)?[3,5]:(this.logger.verbose("Logout onRedirectNavigate did not return false, navigating"),this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),[4,this.navigationClient.navigateExternal(c,i)]):[3,7];case 4:return r.sent(),[2];case 5:this.browserStorage.setInteractionInProgress(!1),this.logger.verbose("Logout onRedirectNavigate returned false, stopping navigation"),r.label=6;case 6:return[3,9];case 7:return this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),[4,this.navigationClient.navigateExternal(c,i)];case 8:return r.sent(),[2];case 9:return[3,11];case 10:throw(l=r.sent())instanceof o.d&&l.setCorrelationId(this.correlationId),n.cacheFailedRequest(l),this.eventHandler.emitEvent(u.a.LOGOUT_FAILURE,a.l.Redirect,null,l),this.eventHandler.emitEvent(u.a.LOGOUT_END,a.l.Redirect),l;case 11:return this.eventHandler.emitEvent(u.a.LOGOUT_END,a.l.Redirect),[2]}})})},t.prototype.getRedirectStartPage=function(e){var t=e||window.location.href;return o.Y.getAbsoluteUrl(t,c.a.getCurrentUri())},t}(i.a)},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(9),o=n(6),i=n(15),a=n(14),s=function(e){function t(t,n,r,o,i,a){var s=e.call(this,t,n,r,o,a)||this;return s.browserCrypto=i,s}return Object(r.c)(t,e),t.prototype.initiateAuthRequest=function(e,t){return Object(r.b)(this,void 0,void 0,function(){var n;return Object(r.d)(this,function(r){switch(r.label){case 0:return this.logger.verbose("RedirectHandler.initiateAuthRequest called"),o.S.isEmpty(e)?[3,7]:(t.redirectStartPage&&(this.logger.verbose("RedirectHandler.initiateAuthRequest: redirectStartPage set, caching start page"),this.browserStorage.setTemporaryCache(a.q.ORIGIN_URI,t.redirectStartPage,!0)),this.browserStorage.setTemporaryCache(a.q.CORRELATION_ID,this.authCodeRequest.correlationId,!0),this.browserStorage.cacheCodeRequest
2(this.authCodeRequest,this.browserCrypto),this.logger.infoPii("RedirectHandler.initiateAuthRequest: Navigate to: "+e),n={apiId:a.a.acquireTokenRedirect,timeout:t.redirectTimeout,noHistory:!1},"function"!=typeof t.onRedirectNavigate?[3,4]:(this.logger.verbose("RedirectHandler.initiateAuthRequest: Invoking onRedirectNavigate callback"),!1===t.onRedirectNavigate(e)?[3,2]:(this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate did not return false, navigating"),[4,t.navigationClient.navigateExternal(e,n)])));case 1:return r.sent(),[2];case 2:return this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate returned false, stopping navigation"),[2];case 3:return[3,6];case 4:return this.logger.verbose("RedirectHandler.initiateAuthRequest: Navigating window to navigate url"),[4,t.navigationClient.navigateExternal(e,n)];case 5:return r.sent(),[2];case 6:return[3,8];case 7:throw this.logger.info("RedirectHandler.initiateAuthRequest: Navigate url is empty"),i.a.createEmptyNavigationUriError();case 8:return[2]}})})},t.prototype.handleCodeResponseFromHash=function(e,t,n,a){return Object(r.b)(this,void 0,void 0,function(){var s,c,u,l,d,p,h;return Object(r.d)(this,function(r){switch(r.label){case 0:if(this.logger.verbose("RedirectHandler.handleCodeResponse called"),o.S.isEmpty(e))throw i.a.createEmptyHashError(e);if(this.browserStorage.setInteractionInProgress(!1),s=this.browserStorage.generateStateKey(t),!(c=this.browserStorage.getTemporaryCache(s)))throw o.p.createStateNotFoundError("Cached State");try{u=this.authModule.handleFragmentResponse(e,c)}catch(e){throw e instanceof o.O&&e.subError===i.b.userCancelledError.code?i.a.createUserCancelledError():e}return l=this.browserStorage.generateNonceKey(c),d=this.browserStorage.getTemporaryCache(l),this.authCodeRequest.code=u.code,u.cloud_instance_host_name?[4,this.updateTokenEndpointAuthority(u.cloud_instance_host_name,n,a)]:[3,2];case 1:r.sent(),r.label=2;case 2:return u.nonce=d||void 0,u.state=c,u.client_info?this.authCodeRequest.clientInfo=u.client_info:(p=this.checkCcsCredentials())&&(this.authCodeRequest.ccsCredential=p),[4,this.authModule.acquireToken(this.authCodeRequest,u)];case 3:return h=r.sent(),this.browserStorage.cleanRequestByState(t),[2,h]}})})},t}(n(206).a)},function(e,t,n){"use strict";n.d(t,"a",function(){return h});var r=n(9),o=n(6),i=n(77),a=n(78),s=n(14),c=n(66),u=n(122),l=n(93),d=n(15),p=n(206),h=function(e){function t(t,n,r,o,i,a,s,c,u,l){var d=e.call(this,t,n,r,o,i,a,s,u,l)||this;return d.unloadWindow=d.unloadWindow.bind(d),d.nativeStorage=c,d}return Object(r.c)(t,e),t.prototype.acquireToken=function(e){try{var t=this.generatePopupName(e.scopes||o.C,e.authority||this.config.auth.authority),n=e.popupWindowAttributes||{};if(this.config.system.asyncPopups)return this.logger.verbose("asyncPopups set to true, acquiring token"),this.acquireTokenPopupAsync(e,t,n);this.logger.verbose("asyncPopup set to false, opening popup before acquiring token");var r=this.openSizedPopup("about:blank",t,n);return this.acquireTokenPopupAsync(e,t,n,r)}catch(e){return Promise.reject(e)}},t.prototype.logout=function(e){try{this.logger.verbose("logoutPopup called");var t=this.initializeLogoutRequest(e),n=this.generateLogoutPopupName(t),r=e&&e.authority,o=e&&e.mainWindowRedirectUri,i=(null===e||void 0===e?void 0:e.popupWindowAttributes)||{};if(this.config.system.asyncPopups)return this.logger.verbose("asyncPopups set to true"),this.logoutPopupAsync(t,n,i,r,void 0,o);this.logger.verbose("asyncPopup set to false, opening popup");var a=this.openSizedPopup("about:blank",n,i);return this.logoutPopupAsync(t,n,i,r,a,o)}catch(e){return Promise.reject(e)}},t.prototype.acquireTokenPopupAsync=function(e,t,n,i){return Object(r.b)(this,void 0,void 0,function(){var c,h,f,m,g,y,v,b,S,E,C,T,w,_,I,P,R=this;return Object(r.d)(this,function(O){switch(O.label){case 0:return this.logger.verbose("acquireTokenPopupAsync called"),c=this.initializeServerTelemetryManager(s.a.acquireTokenPopup),this.performanceClient.setPreQueueTime(o.E.StandardInteractionClientInitializeAuthorizationRequest,e.correlationId),[4,this.initializeAuthorizationRequest(e,s.l.Popup)];case 1:h=O.sent(),this.browserStorage.updateCacheEntries(h.state,h.nonce,h.authority,h.loginHint||o.r.EMPTY_STRING,h.account||null),O.label=2;case 2:return O.trys.push([2,8,,9]),this.performanceClient.setPreQueueTime(o.E.StandardInteractionClientInitializeAuthorizationCodeRequest,e.correlationId),[4,this.initializeAuthorizationCodeRequest
2(h)];case 3:return f=O.sent(),this.performanceClient.setPreQueueTime(o.E.StandardInteractionClientCreateAuthCodeClient,e.correlationId),[4,this.createAuthCodeClient(c,h.authority,h.azureCloudOptions)];case 4:return m=O.sent(),this.logger.verbose("Auth code client created"),g=l.a.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,e.authenticationScheme),y=void 0,g&&(y=this.performanceClient.startMeasurement(o.E.FetchAccountIdWithNativeBroker,e.correlationId)),[4,m.getAuthCodeUrl(Object(r.a)(Object(r.a)({},h),{nativeBroker:g}))];case 5:return v=O.sent(),b=new p.a(m,this.browserStorage,f,this.logger,this.performanceClient),S={popup:i,popupName:t,popupWindowAttributes:n},E=this.initiateAuthRequest(v,S),this.eventHandler.emitEvent(a.a.POPUP_OPENED,s.l.Popup,{popupWindow:E},null),[4,this.monitorPopupForHash(E)];case 6:if(C=O.sent(),T=o.Y.getDeserializedHash(C),w=this.validateAndExtractStateFromHash(T,s.l.Popup,h.correlationId),o.W.removeThrottle(this.browserStorage,this.config.auth.clientId,f),T.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),y&&y.endMeasurement({success:!0,isNativeBroker:!0}),!this.nativeMessageHandler)throw d.a.createNativeConnectionNotEstablishedError();return _=new u.a(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,s.a.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,T.accountId,this.nativeStorage,h.correlationId),I=o.J.parseRequestState(this.browserCrypto,w).userRequestState,[2,_.acquireToken(Object(r.a)(Object(r.a)({},h),{state:I,prompt:void 0})).finally(function(){R.browserStorage.cleanRequestByState(w)})]}return[4,b.handleCodeResponseFromHash(C,w,m.authority,this.networkClient)];case 7:return[2,O.sent()];case 8:throw P=O.sent(),i&&i.close(),P instanceof o.d&&P.setCorrelationId(this.correlationId),c.cacheFailedRequest(P),this.browserStorage.cleanRequestByState(h.state),P;case 9:return[2]}})})},t.prototype.logoutPopupAsync=function(e,t,n,i,u,l){return Object(r.b)(this,void 0,void 0,function(){var d,p,h,f,m,g,y;return Object(r.d)(this,function(r){switch(r.label){case 0:this.logger.verbose("logoutPopupAsync called"),this.eventHandler.emitEvent(a.a.LOGOUT_START,s.l.Popup,e),d=this.initializeServerTelemetryManager(s.a.logoutPopup),r.label=1;case 1:return r.trys.push([1,5,,6]),[4,this.clearCacheOnLogout(e.account)];case 2:return r.sent(),this.performanceClient.setPreQueueTime(o.E.StandardInteractionClientCreateAuthCodeClient,e.correlationId),[4,this.createAuthCodeClient(d,i)];case 3:return p=r.sent(),this.logger.verbose("Auth code client created"),h=p.getLogoutUri(e),this.eventHandler.emitEvent(a.a.LOGOUT_SUCCESS,s.l.Popup,e),f=this.openPopup(h,{popupName:t,popupWindowAttributes:n,popup:u}),this.eventHandler.emitEvent(a.a.POPUP_OPENED,s.l.Popup,{popupWindow:f},null),[4,this.waitForLogoutPopup(f)];case 4:return r.sent(),l?(m={apiId:s.a.logoutPopup,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},g=o.Y.getAbsoluteUrl(l,c.a.getCurrentUri()),this.logger.verbose("Redirecting main window to url specified in the request"),this.logger.verbosePii("Redirecting main window to: "+g),this.navigationClient.navigateInternal(g,m)):this.logger.verbose("No main window navigation requested"),[3,6];case 5:throw y=r.sent(),u&&u.close(),y instanceof o.d&&y.setCorrelationId(this.correlationId),this.browserStorage.setInteractionInProgress(!1),this.eventHandler.emitEvent(a.a.LOGOUT_FAILURE,s.l.Popup,null,y),this.eventHandler.emitEvent(a.a.LOGOUT_END,s.l.Popup),d.cacheFailedRequest(y),y;case 6:return this.eventHandler.emitEvent(a.a.LOGOUT_END,s.l.Popup),[2]}})})},t.prototype.initiateAuthRequest=function(e,t){if(o.S.isEmpty(e))throw this.logger.error("Navigate url is empty"),d.a.createEmptyNavigationUriError();return this.logger.infoPii("Navigate to: "+e),this.openPopup(e,t)},t.prototype.monitorPopupForHash=function(e){var t=this;return new Promise(function(n,r){var i=t.config.system.windowHashTimeout/t.config.system.pollIntervalMilliseconds,a=0;t.logger.verbose("PopupHandler.monitorPopupForHash - polling started");var s=setInterval(function(){if(e.closed)return t.logger.error("PopupHandler.monitorPopupForHash - window closed"),t.cleanPopup(),clearInterval(s),void r(d.a.createUserCancelledError());var c=o.r.EMPTY_STRING,u=o.r.EMPTY_STRING;try{c=e.location.href,u=e.location.hash}catch(e){}o.S.isEmpty(c)||"about:blank"===c||(t.logger.verbose("PopupHandler.monitorPopupForHash - popup window is on same origin as caller"),a++,u?(t.logger.verbose("PopupHandler.monitorPopupForHash - found hash in url"),clearInterval(s),t.cleanPopup(e),o.Y.hashContainsKnownProperties(u)?(t.logger.verbose("PopupHandler.monitorPopupForHash - hash contains known properties, returning."),n(u)):(t.logger.error("PopupHandler.monitorPopupForHash - found hash in url but it does not contain known properties. Check that your router is not changing the hash prematurely."),t.logger.errorPii("PopupHandler.monitorPopupForHash - hash found: "+u),r(d.a.createHashDoesNotContainKnownPropertiesError()))):a>i&&(t.logger.error("PopupHandler.monitorPopupForHash - unable to find hash in url, timing out"),clearInterval(s),r(d.a.createMonitorPopupTimeoutError())))},t.config.system.pollIntervalMilliseconds)})},t.prototype.waitForLogoutPopup=function(e){var t=this;return new Promise(function(n){t.logger.verbose("PopupHandler.waitForLogoutPopup - polling started");var r=setInterval(function(){e.closed&&(t.logger.error("PopupHandler.waitForLogoutPopup - window closed"),t.cleanPopup(),clearInterval(r),n());var i=o.r.EMPTY_STRING;try{i=e.location.href}catch(e){}o.S.isEmpty(i)||"about:blank"===i||(t.logger.verbose("PopupHandler.waitForLogoutPopup - popup window is on same origin as caller, closing."),clearInterval(r),t.cleanPopup(e),n())},t.config.system.pollIntervalMilliseconds)})},t.prototype.openPopup=function(e,t){try{var n=void 0;if(t.popup?(n=t.popup,this.logger.verbosePii("Navigating popup window to: "+e),n.location.assign(e)):void 0===t.popup&&(this.logger.verbosePii("Opening popup window to: "+e),n=this.openSizedPopup(e,t.popupName,t.popupWindowAttributes)),!n)throw d.a.createEmptyWindowCreatedError();return n.focus&&n.focus(),this.currentWindow=n,window.addEventListener("beforeunload",this.unloadWindow),n}catch(e){throw this.logger.error("error opening popup "+e.message),this.browserStorage.setInteractionInProgress(!1),d.a.createPopupWindowError(e.toString())}},t.prototype.openSizedPopup=function(e,t,n){var r,o,i,a,c=window.screenLeft?window.screenLeft:window.screenX,u=window.screenTop?window.screenTop:window.screenY,l=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,d=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,p=null===(r=n.popupSize)||void 0===r?void 0:r.width,h=null===(o=n.popupSize)||void 0===o?void 0:o.height,f=null===(i=n.popupPosition)||void 0===i?void 0:i.top,m=null===(a=n.popupPosition)||void 0===a?void 0:a.left;return(!p||p<0||p>l)&&(this.logger.verbose("Default popup window width used. Window width not configured or invalid."),p=s.c.POPUP_WIDTH),(!h||h<0||h>
2d)&&(this.logger.verbose("Default popup window height used. Window height not configured or invalid."),h=s.c.POPUP_HEIGHT),(!f||f<0||f>d)&&(this.logger.verbose("Default popup window top position used. Window top not configured or invalid."),f=Math.max(0,d/2-s.c.POPUP_HEIGHT/2+u)),(!m||m<0||m>l)&&(this.logger.verbose("Default popup window left position used. Window left not configured or invalid."),m=Math.max(0,l/2-s.c.POPUP_WIDTH/2+c)),window.open(e,t,"width="+p+", height="+h+", top="+f+", left="+m+", scrollbars=yes")},t.prototype.unloadWindow=function(e){this.browserStorage.cleanRequestByInteractionType(s.l.Popup),this.currentWindow&&this.currentWindow.close(),e.preventDefault()},t.prototype.cleanPopup=function(e){e&&e.close(),window.removeEventListener("beforeunload",this.unloadWindow),this.browserStorage.setInteractionInProgress(!1)},t.prototype.generatePopupName=function(e,t){return s.c.POPUP_NAME_PREFIX+"."+this.config.auth.clientId+"."+e.join("-")+"."+t+"."+this.correlationId},t.prototype.generateLogoutPopupName=function(e){var t=e.account&&e.account.homeAccountId;return s.c.POPUP_NAME_PREFIX+"."+this.config.auth.clientId+"."+t+"."+this.correlationId},t}(i.a)},function(e,t,n){"use strict";n.d(t,"a",function(){return d});var r=n(9),o=n(6),i=n(77),a=n(15),s=n(14),c=n(317),u=n(93),l=n(122),d=function(e){function t(t,n,r,o,i,a,s,c,u,l,d){var p=e.call(this,t,n,r,o,i,a,c,l,d)||this;return p.apiId=s,p.nativeStorage=u,p}return Object(r.c)(t,e),t.prototype.acquireToken=function(e){return Object(r.b)(this,void 0,void 0,function(){var t,n,i,c,u;return Object(r.d)(this,function(l){switch(l.label){case 0:if(this.performanceClient.addQueueMeasurement(o.E.SilentIframeClientAcquireToken,e.correlationId),this.logger.verbose("acquireTokenByIframe called"),t=this.performanceClient.startMeasurement(o.E.SilentIframeClientAcquireToken,e.correlationId),o.S.isEmpty(e.loginHint)&&o.S.isEmpty(e.sid)&&(!e.account||o.S.isEmpty(e.account.username))&&this.logger.warning("No user hint provided. The authorization server may need more information to complete this request."),e.prompt&&e.prompt!==o.H.NONE&&e.prompt!==o.H.NO_SESSION)throw t.endMeasurement({success:!1}),a.a.createSilentPromptValueError(e.prompt);return this.performanceClient.setPreQueueTime(o.E.StandardInteractionClientInitializeAuthorizationRequest,e.correlationId),[4,this.initializeAuthorizationRequest(Object(r.a)(Object(r.a)({},e),{prompt:e.prompt||o.H.NONE}),s.l.Silent)];case 1:n=l.sent(),this.browserStorage.updateCacheEntries(n.state,n.nonce,n.authority,n.loginHint||o.r.EMPTY_STRING,n.account||null),i=this.initializeServerTelemetryManager(this.apiId),l.label=2;case 2:return l.trys.push([2,5,,6]),this.performanceClient.setPreQueueTime(o.E.StandardInteractionClientCreateAuthCodeClient,e.correlationId),[4,this.createAuthCodeClient(i,n.authority,n.azureCloudOptions)];case 3:return c=l.sent(),this.logger.verbose("Auth code client created"),this.performanceClient.setPreQueueTime(o.E.SilentIframeClientTokenHelper,e.correlationId),[4,this.silentTokenHelper(c,n).then(function(e){return t.endMeasurement({success:!0,fromCache:!1,requestId:e.requestId}),e})];case 4:return[2,l.sent()];case 5:throw(u=l.sent())instanceof o.d&&u.setCorrelationId(this.correlationId),i.cacheFailedRequest(u),this.browserStorage.cleanRequestByState(n.state),t.endMeasurement({errorCode:u instanceof o.d&&u.errorCode||void 0,subErrorCode:u instanceof o.d&&u.subError||void 0,success:!1}),u;case 6:return[2]}})})},t.prototype.logout=function(){return Promise.reject(a.a.createSilentLogoutUnsupportedError())},t.prototype.silentTokenHelper=function(e,t){return Object(r.b)(this,void 0,void 0,function(){var n,i,d,p,h,f,m,g,y,v=this;return Object(r.d)(this,function(b){switch(b.label){case 0:return this.performanceClient.addQueueMeasurement(o.E.SilentIframeClientTokenHelper,t.correlationId),this.performanceClient.setPreQueueTime(o.E.StandardInteractionClientInitializeAuthorizationCodeRequest,t.correlationId),[4,this.initializeAuthorizationCodeRequest(t)];case 1:return n=b.sent(),this.performanceClient.setPreQueueTime(o.E.GetAuthCodeUrl,t.correlationId),[4,e.getAuthCodeUrl(Object(r.a)(Object(r.a)({},t),{nativeBroker:u.a.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,t.authenticationScheme)}))];case 2:return i=b.sent(),d=new c.a(e,this.browserStorage,n,this.logger,this.config.system,this.performanceClient),this.performanceClient.setPreQueueTime(o.E.SilentHandlerInitiateAuthRequest,t.correlationId),[4,d.initiateAuthRequest(i)];case 3:return p=b.sent(),this.performanceClient.setPreQueueTime(o.E.SilentHandlerMonitorIframeForHash,t.correlationId),[4,d.monitorIframeForHash(p,this.config.system.iframeHashTimeout)];case 4:if(h=b.sent(),f=o.Y.getDeserializedHash(h),m=this.validateAndExtractStateFromHash(f,s.l.Silent,n.correlationId),f.accountId){if
2(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw a.a.createNativeConnectionNotEstablishedError();return g=new l.a(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.apiId,this.performanceClient,this.nativeMessageHandler,f.accountId,this.browserStorage,this.correlationId),y=o.J.parseRequestState(this.browserCrypto,m).userRequestState,[2,g.acquireToken(Object(r.a)(Object(r.a)({},t),{state:y,prompt:t.prompt||o.H.NONE})).finally(function(){v.browserStorage.cleanRequestByState(m)})]}return this.performanceClient.setPreQueueTime(o.E.HandleCodeResponseFromHash,t.correlationId),[2,d.handleCodeResponseFromHash(h,m,e.authority,this.networkClient)]}})})},t}(i.a)},function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r=n(9),o=n(6),i=n(206),a=n(15),s=n(208),c=function(e){function t(t,n,r,o,i,a){var s=e.call(this,t,n,r,o,a)||this;return s.navigateFrameWait=i.navigateFrameWait,s.pollIntervalMilliseconds=i.pollIntervalMilliseconds,s}return Object(r.c)(t,e),t.prototype.initiateAuthRequest=function(e){return Object(r.b)(this,void 0,void 0,function(){return Object(r.d)(this,function(t){switch(t.label){case 0:if(this.performanceClient.addQueueMeasurement(o.E.SilentHandlerInitiateAuthRequest,this.authCodeRequest.correlationId),o.S.isEmpty(e))throw this.logger.info("Navigate url is empty"),a.a.createEmptyNavigationUriError();return this.navigateFrameWait?(this.performanceClient.setPreQueueTime(o.E.SilentHandlerLoadFrame,this.authCodeRequest.correlationId),[4,this.loadFrame(e)]):[3,2];case 1:return[2,t.sent()];case 2:return[2,this.loadFrameSync(e)]}})})},t.prototype.monitorIframeForHash=function(e,t){var n=this;return this.performanceClient.addQueueMeasurement(o.E.SilentHandlerMonitorIframeForHash,this.authCodeRequest.correlationId),new Promise(function(r,i){t<s.a&&n.logger.warning("system.loadFrameTimeout or system.iframeHashTimeout set to lower ("+t+"ms) than the default ("+s.a+"ms). This may result in timeouts.");var c=window.performance.now()+t,u=setInterval(function(){if(window.performance.now()>c)return n.removeHiddenIframe(e),clearInterval(u),void i(a.a.createMonitorIframeTimeoutError());var t=o.r.EMPTY_STRING,s=e.contentWindow;try{t=s?s.location.href:o.r.EMPTY_STRING}catch(e){}if(!o.S.isEmpty(t)){var l=s?s.location.hash:o.r.EMPTY_STRING;return o.Y.hashContainsKnownProperties(l)?(n.removeHiddenIframe(e),clearInterval(u),void r(l)):void 0}},n.pollIntervalMilliseconds)})},t.prototype.loadFrame=function(e){var t=this;return this.performanceClient.addQueueMeasurement(o.E.SilentHandlerLoadFrame,this.authCodeRequest.correlationId),new Promise(function(n,r){var o=t.createHiddenIframe();setTimeout(function(){o?(o.src=e,n(o)):r("Unable to load iframe")},t.navigateFrameWait)})},t.prototype.loadFrameSync=function(e){var t=this.createHiddenIframe();return t.src=e,t},t.prototype.createHiddenIframe=function(){var e=document.createElement("iframe");return e.className="msalSilentIframe",e.style.visibility="hidden",e.style.position="absolute",e.style.width=e.style.height="0",e.style.border="0",e.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms"),document.getElementsByTagName("body")[0].appendChild(e),e},t.prototype.removeHiddenIframe=function(e){document.body===e.parentNode&&document.body.removeChild(e)},t}(i.a)},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(){function e(){}return e.prototype.navigateInternal=function(t,n){return e.defaultNavigateWindow(t,n)},e.prototype.navigateExternal=function(t,n){return e.defaultNavigateWindow(t,n)},e.defaultNavigateWindow=function(e,t){return t.noHistory?window.location.replace(e):window.location.assign(e),new Promise(function(e){setTimeout(function(){e(!0)},t.timeout)})},e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r=n(9),o=n(77),i=n(6),a=n(14),s=n(15),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.acquireToken=function(e){return Object(r.b)(this,void 0,void 0,function(){var t,n,o,s,c,u=this;return Object(r.d)(this,function(l){switch(l.label){case 0:return this.performanceClient.addQueueMeasurement(i.E.SilentRefreshClientAcquireToken,e.correlationId),this.performanceClient.setPreQueueTime(i.E.InitializeBaseRequest,e.correlationId),n=[Object(r.a)({}
2,e)],[4,this.initializeBaseRequest(e,e.account)];case 1:return t=r.a.apply(void 0,n.concat([l.sent()])),o=this.performanceClient.startMeasurement(i.E.SilentRefreshClientAcquireToken,t.correlationId),s=this.initializeServerTelemetryManager(a.a.acquireTokenSilent_silentFlow),[4,this.createRefreshTokenClient(s,t.authority,t.azureCloudOptions)];case 2:return c=l.sent(),this.logger.verbose("Refresh token client created"),this.performanceClient.setPreQueueTime(i.E.RefreshTokenClientAcquireTokenByRefreshToken,e.correlationId),[2,c.acquireTokenByRefreshToken(t).then(function(e){return o.endMeasurement({success:!0,fromCache:e.fromCache,requestId:e.requestId}),e}).catch(function(e){throw e instanceof i.d&&e.setCorrelationId(u.correlationId),s.cacheFailedRequest(e),o.endMeasurement({errorCode:e.errorCode,subErrorCode:e.subError,success:!1}),e})]}})})},t.prototype.logout=function(){return Promise.reject(s.a.createSilentLogoutUnsupportedError())},t.prototype.createRefreshTokenClient=function(e,t,n){return Object(r.b)(this,void 0,void 0,function(){var o;return Object(r.d)(this,function(r){switch(r.label){case 0:return this.performanceClient.setPreQueueTime(i.E.StandardInteractionClientGetClientConfiguration,this.correlationId),[4,this.getClientConfiguration(e,t,n)];case 1:return o=r.sent(),[2,new i.K(o,this.performanceClient)]}})})},t}(o.a)},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(6),o=n(78),i=function(){function e(e,t){this.eventCallbacks=new Map,this.logger=e,this.browserCrypto=t,this.listeningToStorageEvents=!1,this.handleAccountCacheChange=this.handleAccountCacheChange.bind(this)}return e.prototype.addEventCallback=function(e){if("undefined"!=typeof window){var t=this.browserCrypto.createNewGuid();return this.eventCallbacks.set(t,e),this.logger.verbose("Event callback registered with id: "+t),t}return null},e.prototype.removeEventCallback=function(e){this.eventCallbacks.delete(e),this.logger.verbose("Event callback "+e+" removed.")},e.prototype.enableAccountStorageEvents=function(){"undefined"!=typeof window&&(this.listeningToStorageEvents?this.logger.verbose("Account storage listener already registered."):(this.logger.verbose("Adding account storage listener."),this.listeningToStorageEvents=!0,window.addEventListener("storage",this.handleAccountCacheChange)))},e.prototype.disableAccountStorageEvents=function(){"undefined"!=typeof window&&(this.listeningToStorageEvents?(this.logger.verbose("Removing account storage listener."),window.removeEventListener("storage",this.handleAccountCacheChange),this.listeningToStorageEvents=!1):this.logger.verbose("No account storage listener registered."))},e.prototype.emitEvent=function(e,t,n,r){var o=this;if("undefined"!=typeof window){var i={eventType:e,interactionType:t||null,payload:n||null,error:r||null,timestamp:Date.now()};this.logger.info("Emitting event: "+e),this.eventCallbacks.forEach(function(t,n){o.logger.verbose("Emitting event to callback "+n+": "+e),t.apply(null,[i])})}},e.prototype.handleAccountCacheChange=function(e){try{var t=e.newValue||e.oldValue;if(!t)return;var n=JSON.parse(t);if("object"!=typeof n||!r.b.isAccountEntity(n))return;var i=r.m.toObject(new r.b,n).getAccountInfo();!e.oldValue&&e.newValue?(this.logger.info("Account was added to cache in a different window"),this.emitEvent(o.a.ACCOUNT_ADDED,void 0,i)):!e.newValue&&e.oldValue&&(this.logger.info("Account was removed from cache in a different window"),this.emitEvent(o.a.ACCOUNT_REMOVED,void 0,i))}catch(e){return}},e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(6),o=n(740),i=function(){function e(e){this.cryptoObj=e}return e.prototype.generateGuid=function(){try{var e=new Uint8Array(16);return this.cryptoObj.getRandomValues(e),e[6]|=64,e[6]&=79,e[8]|=128,e[8]&=191,o.a.decimalToHex(e[0])+o.a.decimalToHex(e[1])+o.a.decimalToHex(e[2])+o.a.decimalToHex(e[3])+"-"+o.a.decimalToHex(e[4])+o.a.decimalToHex(e[5])+"-"+o.a.decimalToHex(e[6])+o.a.decimalToHex(e[7])+"-"+o.a.decimalToHex(e[8])+o.a.decimalToHex(e[9])+"-"+o.a.decimalToHex(e[10])+o.a.decimalToHex(e[11])+o.a.decimalToHex(e[12])+o.a.decimalToHex(e[13])+o.a.decimalToHex(e[14])+o.a.decimalToHex(e[15])}catch(e){for(var t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",n="0123456789abcdef",i=0,a=r.r.EMPTY_STRING,s=0;s<36;s++)"-"!==t[s]&&"4"!==t[s]&&(i=16*Math.random()|0),"x"===t[s]?a+=n[i]:"y"===t[s]?(i&=3,a+=n[i|=8]):a+=t[s];return a}},e.prototype.isGuid=function(e){return/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(e)},e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(6),o=n(124),i=function(){function e(){}return e.prototype.urlEncode=function(e){return encodeURIComponent(this.encode(e).replace(/=/g,r.r.EMPTY_STRING).replace(/\+/g,"-").replace(/\//g,"_"))},e.prototype.urlEncodeArr=function(e){return this.base64EncArr(e).replace(/=/g,r.r.EMPTY_STRING).replace(/\+/g,"-").replace(/\//g,"_")},e.prototype.encode=function(e){var t=o.a.stringToUtf8Arr(e);return this.base64EncArr(t)},e.prototype.base64EncArr=function(e){for(var t=(3-e.length%3)%3,n=r.r.EMPTY_STRING,o=void 0,i=e.length,a=0,s=0;s<i;s++)o=s%3,a|=e[s]<<(16>>>o&24),2!==o&&e.length-s!=1||(n+=String.fromCharCode(this.uint6ToB64(a>>>18&63),this.uint6ToB64(a>>>12&63),this.uint6ToB64(a>>>6&63),this.uint6ToB64(63&a)),a=0);return 0===t?n:n.substring(0,n.length-t)+(1===t?"=":"==")},e.prototype.uint6ToB64=function(e){return e<26?e+65:e<52?e+71:e<62?e-4:62===e?43:63===e?47:65},e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return f});var r=n(9),o=n(124),i=n(15),a=n(743),s=n(744),c=n(745),u=n(120),l="RSASSA-PKCS1-v1_5",d="SHA-256",p=2048,h=new Uint8Array([1,0,1]),f=function(){function e(e,t){var n,r;if(this.logger=e,this.cryptoOptions=t,this.hasBrowserCrypto())this.logger.verbose("BrowserCrypto: modern crypto interface available"),this.subtleCrypto=new a.a;else if(this.hasIECrypto())this.logger.verbose("BrowserCrypto: MS crypto interface available"),this.subtleCrypto=new c.a;else{if(!(this.hasMsrCrypto()&&(null===(n=this.cryptoOptions)||void 0===n?void 0:n.useMsrCrypto)))throw this.hasMsrCrypto()&&this.logger.info("BrowserCrypto: MSR Crypto interface available but system.cryptoOptions.useMsrCrypto not enabled"),this.logger.error("BrowserCrypto: No crypto interfaces available."),i.a.createCryptoNotAvailableError("Browser crypto, msCrypto, or msrCrypto interfaces not available.");this.logger.verbose("BrowserCrypto: MSR crypto interface available"),this.subtleCrypto=new s.a}if(this.subtleCrypto.initPrng){if(this.logger.verbose("BrowserCrypto: Interface requires entro
2py"),!(null===(r=this.cryptoOptions)||void 0===r?void 0:r.entropy))throw this.logger.error("BrowserCrypto: Interface requires entropy but none provided."),u.a.createEntropyNotProvided();this.logger.verbose("BrowserCrypto: Entropy provided"),this.subtleCrypto.initPrng(this.cryptoOptions.entropy)}this.keygenAlgorithmOptions={name:l,hash:d,modulusLength:p,publicExponent:h}}return e.prototype.hasIECrypto=function(){return"msCrypto"in window},e.prototype.hasBrowserCrypto=function(){return"crypto"in window},e.prototype.hasMsrCrypto=function(){return"msrCrypto"in window},e.prototype.sha256Digest=function(e){return Object(r.b)(this,void 0,void 0,function(){var t;return Object(r.d)(this,function(n){return t=o.a.stringToUtf8Arr(e),[2,this.subtleCrypto.digest({name:d},t)]})})},e.prototype.getRandomValues=function(e){return this.subtleCrypto.getRandomValues(e)},e.prototype.generateKeyPair=function(e,t){return Object(r.b)(this,void 0,void 0,function(){return Object(r.d)(this,function(n){return[2,this.subtleCrypto.generateKey(this.keygenAlgorithmOptions,e,t)]})})},e.prototype.exportJwk=function(e){return Object(r.b)(this,void 0,void 0,function(){return Object(r.d)(this,function(t){return[2,this.subtleCrypto.exportKey(e)]})})},e.prototype.importJwk=function(e,t,n){return Object(r.b)(this,void 0,void 0,function(){return Object(r.d)(this,function(r){return[2,this.subtleCrypto.importKey(e,this.keygenAlgorithmOptions,t,n)]})})},e.prototype.sign=function(e,t){return Object(r.b)(this,void 0,void 0,function(){return Object(r.d)(this,function(n){return[2,this.subtleCrypto.sign(this.keygenAlgorithmOptions,e,t)]})})},e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r=n(9),o=n(6),i=n(323),a=n(321),s=n(325),c=function(e){function t(t,n,r,o,s,c,u){var l=e.call(this,t,n,r,o,s,c)||this;return l.browserCrypto=new i.a(l.logger,u),l.guidGenerator=new a.a(l.browserCrypto),l}return Object(r.c)(t,e),t.prototype.startPerformanceMeasuremeant=function(e,t){return new s.a(e,t)},t.prototype.generateId=function(){return this.guidGenerator.generateGuid()},t.prototype.getPageVisibility=function(){var e;return(null===(e=document.visibilityState)||void 0===e?void 0:e.toString())||null},t.prototype.deleteIncompleteSubMeasurements=function(e){var t=this.eventsByCorrelationId.get(e.event.correlationId),n=[];t&&t.eventId===e.event.eventId&&(null===t||void 0===t?void 0:t.incompleteSubMeasurements)&&t.incompleteSubMeasurements.forEach(function(e){n.push(Object(r.a)({},e))}),n.length>0&&s.a.flushMeasurements(e.event.correlationId,n)},t.prototype.supportsBrowserPerformanceNow=function(){return"undefined"!=typeof window&&void 0!==window.performance&&"function"==typeof window.performance.now},t.prototype.startMeasurement=function(t,n){var o=this,i=this.getPageVisibility(),a=e.prototype.startMeasurement.call(this,t,n);return Object(r.a)(Object(r.a)({},a),{endMeasurement:function(e){var t=a.endMeasurement(Object(r.a)({startPageVisibility:i,endPageVisibility:o.getPageVisibility()},e));return o.deleteIncompleteSubMeasurements(a),t},discardMeasurement:function(){a.discardMeasurement(),o.deleteIncompleteSubMeasurements(a),a.measurement.flushMeasurement()}})},t.prototype.setPreQueueTime=function(e,t){if(this.supportsBrowserPerformanceNow())if(t){var n=this.preQueueTimeByCorrelationId.get(t);n&&(this.logger.trace("BrowserPerformanceClient: Incomplete pre-queue "+n.name+" found",t),this.addQueueMeasurement(n.name,t,void 0,!0)),this.preQueueTimeByCorrelationId.set(t,{name:e,time:window.performance.now()})}else this.logger.trace("BrowserPerformanceClient: correlationId for "+e+" not provided, unable to set telemetry queue time");else this.logger.trace("BrowserPerformanceClient: window performance API not available, unable to set telemetry queue time for "+e)},t.prototype.addQueueMeasurement=function(t,n,r,o){if(this.supportsBrowserPerformanceNow())if(n){var i=e.prototype.getPreQueueTime.call(this,t,n);if(i){var a=window.performance.now(),s=r||e.prototype.calculateQueuedTime.call(this,i,a);return e.prototype.addQueueMeasurement.call(this,t,n,s,o)}}else this.logger.trace("BrowserPerformanceClient: correlationId for "+t+" not provided, unable to add queue measurement");else this.logger.trace("BrowserPerformanceClient: window performance API not available, unable to add queue measurement for "+t)},t}(o.D)},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(){function e(t,n){this.correlationId=n,this.measureName=e.makeMeasureName(t,n),this.startMark=e.makeStartMark(t,n),this.endMark=e.makeEndMark(t,n)}return e.makeMeasureName=function(e,t){return"msal.measure."+e+"."+t},e.makeStartMark=function(e,t){return"msal.start."+e+"."+t},e.makeEndMark=function(e,t){return"msal.end."+e+"."+t},e.supportsBrowserPerformance=function(){return"undefined"!=typeof window&&void 0!==window.performance&&"function"==typeof window.performance.mark&&"function"==typeof window.performance.measure&&"function"==typeof window.performance.clearMarks&&"function"==typeof window.performance.clearMeasures&&"function"==typeof window.performance.getEntriesByName},e.flushMeasurements=function(t,n){if(e.supportsBrowserPerformance())try{n.forEac
2h(function(n){var r=e.makeMeasureName(n.name,t);window.performance.getEntriesByName(r,"measure").length>0&&(window.performance.clearMeasures(r),window.performance.clearMarks(e.makeStartMark(r,t)),window.performance.clearMarks(e.makeEndMark(r,t)))})}catch(e){}},e.prototype.startMeasurement=function(){if(e.supportsBrowserPerformance())try{window.performance.mark(this.startMark)}catch(e){}},e.prototype.endMeasurement=function(){if(e.supportsBrowserPerformance())try{window.performance.mark(this.endMark),window.performance.measure(this.measureName,this.startMark,this.endMark)}catch(e){}},e.prototype.flushMeasurement=function(){if(e.supportsBrowserPerformance())try{var t=window.performance.getEntriesByName(this.measureName,"measure");if(t.length>0){var n=t[0].duration;return window.performance.clearMeasures(this.measureName),window.performance.clearMarks(this.startMark),window.performance.clearMarks(this.endMark),n}}catch(e){}return null},e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(0),o=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=function(){function e(e){this.img=e,this.fullWidth=!0,this.maxPixelWidth=null,this.viewPortPc=null,this.lazy=!0,this.screenSizes=[480,768,900,1200,1440,1680,1920]}var t;return e.prototype.ngAfterViewInit=function(){this.setImgAttrs()},e.prototype.getSrcset=function(e){var t=new URL(e),n=new URLSearchParams(t.search);n.delete("w");for(var r=[],o=0,i=this.screenSizes;o<i.length;o++){var a=i[o];n.set("w",String(a)),n.set("f","webp");var s=t.href.replace(t.search,"?"+n.toString());r.push(s+" "+a+"w")}return r.join(",")},e.prototype.getSizes=function(){var e,t=this;if(this.fullWidth)return"100vw";if(this.viewPortPc)return this.viewPortPc+"vw";if(this.maxPixelWidth){var n=[],r=this.screenSizes.filter(function(e){return e>=t.maxPixelWidth})[0];if(this.viewPortPc)for(var o=function(t){var r=i.viewPortPc/100*i.screenSizes[t],o=null!==(e=i.screenSizes.find(function(e){return e>=r&&e<=r}))&&void 0!==e?e:i.screenSizes[0];n.push("(max-width: "+i.screenSizes[t]+"px) "+Math.floor(o)+"px")},i=this,a=0;a<this.screenSizes.length-1;a++)o(a);return n.push("(max-width: "+this.screenSizes[this.screenSizes.length-1]+"px) "+r+"px"),n.join(", ")}return"100vw"},e.prototype.getSrc=function(e){var t=new URL(e),n=new URLSearchParams(t.search);return n.delete("w"),n.set("f","webp"),t.href.replace(t.search,"?"+n.toString())},e.prototype.setImgAttrs=function(){if(!this.img.nativeElement.getAttribute("src")){var e=this.img.nativeElement.getAttribute("data-src");if(e){var t=this.getSrcset(e),n=this.getSizes(),r=this.getSrc(e);if(!this.lazy)return this.img.nativeElement.sizes=n,this.img.nativeElement.srcset=t,this.img.nativeElement.src=r,void this.img.nativeElement.removeAttribute("setresponsive");var o=new IntersectionObserver(function(e,o){e.forEach(function(e){if(e.isIntersecting){var i=e.target;i.sizes=n,i.srcset=t,i.src=r,o.unobserve(e.target)}})},{threshold:0,rootMargin:"64px 64px 64px 64px"});this.img.nativeElement&&(o.observe(this.img.nativeElement),this.img.nativeElement.removeAttribute("setresponsive"))}}},o([Object(r.Input)(),i("design:type",Boolean)],e.prototype,"fullWidth",void 0),o([Object(r.Input)(),i("design:type",Number)],e.prototype,"maxPixelWidth",void 0),o([Object(r.Input)(),i("design:type",Number)],e.prototype,"viewPortPc",void 0),o([Object(r.Input)(),i("design:type",Boolean)],e.prototype,"lazy",void 0),e=o([Object(r.Directive)({selector:"[setResponsive]"}),i("design:paramtypes",["function"==typeof(t=void 0!==r.ElementRef&&r.ElementRef)?t:Object])],e)}()},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return s});var r=n(0),o=n(32),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=function(){function t(e){this.translateService=e,this.translations=this.translateService.getTranslations()}var n;return t.prototype.initCountrySelector=function(){e("#js-country-selector-responsive").on("change",function(){var t=e("#js-country-selector-responsive"),n=t.find(":selected").attr("value");t.stop().fadeOut(200,function(){t.replaceWith('<div id="js-country-selector-responsive" style="display:none"><i class="fa fa-cog fa-spin"></i></div>'),e("#js-country-selector-responsive").stop().fadeIn(200,function(){window.location.href=n})})})},t.prototype.initLanguageSelector=function(){var t=this;e(".js-language-selector-option").on("click",function(n){n.preventDefault(),t.navigateTo(e(this).attr("href"))});var n=window.location.href.substring(window.location.href.lastIndexOf("/properties/")+12);e("#js-language-selector-responsive").off("change").on("change",function(){e("#js-language-selector-responsive option:selected").each(function(){var r=e(this).val();t.navigateTo(r+n)})})},t.prototype.navigateTo=function(e){var t=e.substring(0,e.lastIndexOf("/properties/")+12),n=e.substring(e.lastIndexOf("/properties/")+12).split("/");if(5===n.length){var r=decodeURI(n[0])===this.translations.RESIDENTIAL_SLUG?"residential":"commercial",o=decodeURI(n[1])===this.translations.SALES_SLUG?"sales":"lettings",i="residential"===r?"beds=all-beds":"floor=all-floor",a=n[4].split(";");t+="?division="+r+"&transaction="+o+"&location="+n[2]+"&types=all-types&"+i,a.splice(0,1),a.length>=1&&(t+="&"+a.join("&"))}else t+="?reference="+n[3];window.location.href=t},t.prototype.rebuildLanguageSelector=function(){var t=window.location.href.substring(window.location.href.lastIndexOf("/properties/")+12);e("#language-dropdown-list li a").each(function(){var n=e(this).attr("href"),r=""+n.substring(0,n.lastIndexOf("/properties/")+12)+t;e(this).attr("href",r.toString())})},t.prototype.onDocReady=function(){var t=this;e(".navmenu-nav").append(e("#mobileNav").html()),this.initCountrySelector(),this.initLanguageSelector(),e(".ui-slider").draggable(),this.selectStyle(),this.rebuildLanguageSelector(),e(window).on("resize orientationchange",function(){t.hideMobileMenuOnDesktop()})},t.prototype.selectStyle=function(){e(".navmenu-nav").find("#js-country-selector-responsive, #js-language-selector-responsive").each(function(){var t=e(this);t.parent(".selector-wrap").length||(t.wrap('<div class="selector-wrap"></div>'),t.parent(".selector-wrap").append('<i class="fa fa-caret-down" aria-hidden="true"></i>'))})},t.prototype.hideMobileMenuOnDesktop=function(){e(window).width()>990&&e(".canvas-slid").trigger("click")},t=i([Object(r.Injectable)(),a("design:paramtypes",["function"==typeof(n=void 0!==o.a&&o.a)?n:Object])],t)}()}).call(t,n(5))},function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n(0),o=n(39),i=n(8),a=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=n(832),u=function(){function e(e,t,n){this._element=e,this.eventService=t,this.zone=n,this._msnry=null,this.layoutComplete=new r.EventEmitter,this.removeComplete=new r.EventEmitter}var t,u,l,d,p;return e.prototype.ngOnInit=function(){var e=this;this.initMasonry(),this.subscription=this.eventService.subscribe(i.EventTypeEnum.ReLayoutMasonry,function(){e.zone.runOutsideAngular(function(){e.layout()})})},e.prototype.initMasonry=function(){var e=this;this.options||(this.options={}),this.options.itemSelector||(this.options.itemSelector="[masonry-brick], masonry-brick"),"MASONRY"===this._element.nativeElement.tagName&&(this._element.nativeElement.style.display="block"),this._msnry=new c(this._element.nativeElement,this.options),this._msnry.on("layoutComplete",function(t){e.layoutComplete.emit(t)}),this._msnry.on("removeComplete",function(t){e.removeComplete.emit(t)})},e.prototype.ngOnDestroy=function(){this._msnry&&(this._msnry.destroy(),this._msnry=null),this.subscription&&(this.subscription.unsubscribe(),this.subscription=null)},e.prototype.layout=function(){var e=this;setTimeout(function(){e._msnry&&e._msnry.layout()})},e.prototype.add=function(e){var t=!1;0===this._msnry.items.length&&(t=!0),this._msnry.appended(e),t&&this.layout()},e.prototype.remove=function(e){this._msnry.remove(e),this.layout()},a([Object(r.Input)(),s("design:type",Object)],e.prototype,"options",void 0),a([Object(r.Output)(),s("design:type","function"==typeof(t=void 0!==r.EventEmitter&&r.EventEmitter)?t:Object)],e.prototype,"layoutComplete",void 0),a([Object(r.Output)(),s("design:type","function"==typeof(u=void 0!==r.EventEmitter&&r.EventEmitter)?u:Object)],e.prototype,"removeComplete",void 0),e=a([Object(r.Component)({selector:"[masonry], masonry",template:n(837)}),s("design:paramtypes",["function"==typeof(l=void 0!==r.ElementRef&&r.ElementRef)?l:Object,"function"==typeof(d=void 0!==o.a&&o.a)?d:Object,"function"==typeof(p=void 0!==r.NgZone&&r.NgZone)?p:Object])],e)}()},function(e,t,n){var r,o;!function(i,a){void 0===(o="function"==typeof(r=a)?r.call(t,n,t,e):r)||(e.exports=o)}("undefined"!=typeof window&&window,function(){"use strict";function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var n=this._events=this._events||{},r=n[e]=n[e]||[];return-1==r.indexOf(t)&&r.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var n=this._onceEvents=this._onceEvents||{};return(n[e]=n[e]||{})[t]=!0,this}},t.off=function(e,t){var n=this._events&&this._events[e];if(n&&n.length){var r=n.indexOf(t);return-1!=r&&n.splice(r,1),this}},t.emitEvent=function(e,t){var n=this._events&&this._events[e];if(n&&n.length){n=n.slice(0),t=t||[];for(var r=this._onceEvents&&this._onceEvents[e],o=0;o<n.length;o++){var i=n[o];r&&r[i]&&(this.off(e,i),delete r[i]),i.apply(this,t)}return this}},t.allOff=function(){delete this._events,delete this._onceEvents},e})},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(0),o=n(23),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=function(){function e(e){this.router=e,this.isHubPreview=!1}var t;return e.prototype.setHubPreview=function(e){this.isHubPreview=e},e.prototype.isHubPreviewEnable=function(){return this.isHubPreview},e=i([Object(r.Injectable)(),a("design:paramtypes",["function"==typeof(t=void 0!==o.g&&o.g)?t:Object])],e)}()},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(0),o=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=function(){function e(){}return e.prototype.getSingleGroupByType=function(e,t){for(var n=0,r=e;n<r.length;n++){var o=r[n];if(o.Type===t)return o}return null},e.prototype.getImageUrl=function(e,t,n,r){var o=this.getSingleGroupByType(t,n);if(!o)return"";var i=this.getImageFromGroup(e,o);return i?(void 0!==r&&r&&("?cio=true&mark={watermarkResource}".replace(/"{watermarkResource}"/g,"/shared/watermark/kf-watermark-{type}.png"),i.Url=i.Url+"?cio=true&mark={watermarkResource}".replace(/"{type}"/g,i.ResourceType.toString())),i.Url):""},e.prototype.getImageFromGroup=function(e,t){for(var n=0,r=t.Images;n<r.length;n++){var o=r[n];if(o.Id===e)return o}return null},e.prototype.getSingleImageFromGroupByType=function(e,t){return this.get
2SingleImageFromListByType(e.Images,t)},e.prototype.getSingleImageFromListByType=function(e,t){for(var n=0,r=e;n<r.length;n++){var o=r[n];if(o.ResourceType===t)return o}return null},e=o([Object(r.Injectable)(),i("design:paramtypes",[])],e)}()},function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n(0),o=n(29),i=n(61),a=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?o(e.value):function(e){return e instanceof n?e:new n(function(t){t(e)})}(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())})},u=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},l=function(){function e(e,t){this.urlHelperService=e,this.propertyService=t}var t,n;return e.prototype.computeMode=function(e,t,n){return c(this,void 0,Promise,function(){var r,o,i,a;return u(this,function(s){switch(s.label){case 0:return r=this.urlHelperService.getFirstPdpEntry(),"boolean"!=typeof n?[3,1]:(o=n,[3,4]);case 1:return s.trys.push([1,3,,4]),[4,this.propertyService.getPager(e.Number)];case 2:return s.sent(),o=!0,[3,4];case 3:return s.sent(),o=!1,[3,4];case 4:return i=!!t,a=!!(null===e||void 0===e?void 0:e.ParentDevelopmentReference),[2,this.urlHelperService.determineBackButtonMode(r,i,a,o)]}})})},e.prototype.handleBack=function(e,t){var n=this;"back"!==t?"similar"!==t?"viewDev"!==t||this.propertyService.getParentDevelopmentDetails(e.Number).subscribe(function(t){t&&n.urlHelperService.navigateToParentDevelopment(e,t)}):this.urlHelperService.navigateToSimilarSearch(e):this.urlHelperService.backToLastSearch()},e=a([Object(r.Injectable)(),s("design:paramtypes",["function"==typeof(t=void 0!==o.a&&o.a)?t:Object,"function"==typeof(n=void 0!==i.c&&i.c)?n:Object])],e)}()},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(0),o=n(87),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=function(){function e(e){this.toolsApiClientService=e}var t;return e.prototype.calculateMortgage=function(e,t,n,r){var o=this;return new Promise(function(i,a){o.toolsApiClientService.toolsCalculateMortgage(e,t,n,r).subscribe(function(e){i(e)},function(){a()})})},e.prototype.calculateTaxModel=function(e,t){var n=this;return new Promise(function(r,o){n.toolsApiClientService.toolsCalculateTaxModel(e,t).subscribe(function(e){r(e)},function(){o()})})},e.prototype.getBlty=function(e){var t=this;return new Promise(function(n,r){t.toolsApiClientService.toolsGetBtly(e).subscribe(function(e){n(e)},function(){r()})})},e.prototype.calculateBlty=function(e){var t=this;return new Promise(function(n,r){t.toolsApiClientService.toolsCalculateBtly(e).subscribe(function(e){n(e)},function(){r()})})},e=i([Object(r.Injectable)(),a("design:paramtypes",["function"==typeof(t=void 0!==o.d&&o.d)?t:Object])],e)}()},function(e,t){},function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r=n(0),o=n(94),i=n(8),a=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){function e(e){this.propertyPriceService=e,this.pricePrefix=""}var t,c;return e.prototype.ngOnChanges=function(e){e.property&&(this.refresh(this.property),this.isResidential=this.property.Division===i.DivisionEnum.Residential,this.isSales=this.property.TransactionType===i.TransactionEnum.S
2ales)},e.prototype.refresh=function(e){this.renderPrice(e.Price)},e.prototype.renderPrice=function(e){this.pricePrefix=e.PricePrefix;var t=this.propertyPriceService.getPrice(e),n=this.propertyPriceService.getConvPrice(e);this.price=n||t;var r=this.propertyPriceService.getShortLetPrice(e),o=this.propertyPriceService.getConvShortLetPrice(e);this.shortLetPrice=o||r,this.price||(this.price=this.pricePrefix,this.pricePrefix="")},a([Object(r.Input)(),s("design:type","function"==typeof(t=void 0!==i.NspProperty&&i.NspProperty.IProperty)?t:Object)],e.prototype,"property",void 0),e=a([Object(r.Component)({selector:"property-price",template:n(769)}),s("design:paramtypes",["function"==typeof(c=void 0!==o.a&&o.a)?c:Object])],e)}()},function(e,t){},function(e,t,n){"use strict";t.b=r,t.c=o,t.a=i,t.d=a;function r(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function o(e,t){return function(n,r){t(n,r,e)}}function i(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?o(e.value):function(e){return e instanceof n?e:new n(function(t){t(e)})}(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())})}Object.create;function a(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}Object.create;"function"==typeof SuppressedError&&SuppressedError},function(e,t,n){"use strict";n.d(t,"a",function(){return U});var r=n(0),o=n(23),i=n(24),a=n(153),s=n(757),c=n(758),u=n(89),l=n(759),d=n(760),p=n(761),h=n(762),f=n(326),m=n(763),g=n(765),y=n(767),v=n(335),b=n(770),S=n(772),E=n(774),C=n(776),T=n(778),w=n(780),_=n(782),I=n(784),P=n(786),R=n(788),O=n(790),A=n(792),k=n(794),M=n(796),N=n(798),x=n(800),L=n(802),j=n(804),D=n(806),F=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},U=function(){function e(){}return e=F([Object(r.NgModule)({imports:[i.CommonModule,a.FormsModule,o.h],declarations:[E.a,C.a,T.a,w.a,_.a,I.a,g.a,y.a,v.a,b.a,S.a,s.a,l.a,d.a,p.a,c.a,u.a,h.a,m.a,P.a,R.a,O.a,A.a,k.a,M.a,N.a,x.a,L.a,j.a,D.a,f.a],exports:[i.CommonModule,o.h,a.FormsModule,s.a,l.a,d.a,p.a,m.a,E.a,c.a,u.a,C.a,T.a,w.a,_.a,I.a,g.a,y.a,v.a,b.a,S.a,h.a,P.a,R.a,O.a,A.a,k.a,M.a,N.a,x.a,L.a,j.a,D.a,f.a]})],e)}()},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(8),o=function(){function e(){}return e.isResidentialDevelopment=function(e){return e.PropertyTypes.length>0&&81===e.PropertyTypes[0].Id&&e.Division===r.DivisionEnum.Residential&&e.TransactionType===r.TransactionEnum.Sales&&!e.Ipm&&"GB"===e.IsoCode.toUpperCase()},e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(0),o=n(87),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=function(){function e(e){this.propertiesApiService=e}var t;return e.prototype.getRelatedReports=function(e,t,n,r){var o=this;return new Promise(function(i,a){o.propertiesApiService.propertiesGetRelatedReports(e,t,n,r).subscribe(function(e){i(e)},function(){a()})})},e=i([Object(r.Injectable)(),a("design:paramtypes",["function"==typeof(t=void 0!==o.c&&o.c)?t:Object])],e)}()},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0});var r=n(638),o=(n.n(r),n(639)),i=(n.n(o),n(640)),a=(n.n(i),n(641)),s=(n.n(a),n(0)),c=n(281),u=n(642),l=n(643);Object(s.enableProdMode)();var d=function(){document.querySelector(".kf-o-header")&&Object(u.a)(),Object(c.a)().bootstrapModule(l.a,{preserveWhitespaces:!0})};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",d):d()},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";t.a=function(){try{var e=new a;return e.init(),e}catch(e){return console.error("header init error",e),null}};var r=function(){function e(e){this.topBar=e,this.addEventToSiteButton()}return Object.defineProperty(e.prototype,"isTopBarAvailable",{get:function(){return"none"!==window.getComputedStyle(this.topBar).display},enumerable:!1,configurable:!0}),e.prototype.addEventToSiteButton=function(){var e=this.topBar.querySelector(".kf-o-top-bar__sites"),t=this.topBar.querySelector(".kf-o-top-bar__lang");this.addOpenSitePreferencesEvent(e),this.addOpenSitePreferencesEvent(t)},e.prototype.handleKeyEventToOpenSitePreferences=function(e){"Enter"===e.key&&this.onOpenSitePreferences()},e.prototype.addOpenSitePreferencesEvent=function(e){var t=this;e&&(e.addEventListener("click",function(e){e.preventDefault(),e.stopPropagation(),t.onOpenSitePreferences()}),e.addEventListener("keydown",function(e){t.handleKeyEventToOpenSitePreferences(e)}))},e.prototype.onOpenSitePreferences=function(){this.isTopBarAvailable&&window.dispatchEvent(new CustomEvent("open-site-preferences"))},e}(),o=function(){function e(e){this.dataCountryLanguage=[],this.currentStartPageUrl="",this.sitePreferences=e,this.closeIcon=this.sitePreferences.querySelector(".kf-o-site-preferences__close-icon"),this.header=document.querySelector(".kf-o-header"),this.submitButton=this.sitePreferences.querySelector(".kf-o-site-preferences__form-button")}return e.prototype.init=function(){this.addEventCloseElement(),this.addEventOpenElement(),this.initCountryLanguage(),this.getInitCurrentCountry(),this.getInitCurrentLanguage(),this.setupCountry(),this.handleOutsideClick(),this.initDropdowns()},e.prototype.initDropdowns=function(){var e=this;Array.from(this.sitePreferences.querySelectorAll(".kf-a-dropdown")).forEach(function(t){var n;if("true"!==t.dataset.kfLocalDropdownAttached){var r=t.querySelector(".kf-a-dropdown__label"),o=t.querySelector(".kf-a-dropdown__label-text"),i=t.querySelector(".kf-a-dropdown__arrow"),a=t.querySelector(".kf-a-dropdown__options"),s=Array.from(t.querySelectorAll(".kf-a-dropdown__option"));if(r&&o&&a){t.dataset.kfLocalDropdownAttached="true",t.dataset.eventAttached="true";var c=function(){a.classList.remove("open"),null===i||void 0===i||i.classList.remove("active"),t.setAttribute("aria-expanded","false")},u=function(e,n){var r,i;n.checked=!0,s.forEach(function(e){return e.setAttribute("aria-selected","false")}),e.setAttribute("aria-selected","true"),o.textContent=(null===(r=e.textContent)||void 0===r?void 0:r.trim())||"",o.dataset.filled="true",c(),t.dispatchEvent(new CustomEvent("dropdown-change",{detail:{value:n.value,text:(null===(i=e.textContent)||void 0===i?void 0:i.trim())||"",dataset:n.dataset}}))};t.addEventListener("reset",function(e){var t,n,r=e,i=null===(t=r.detail)||void 0===t?void 0:t.value;if(null===(n=r.detail)||void 0===n?void 0:n.noSelect)return s.forEach(function(e){var t=e.querySelector("input");t&&(t.checked=!1),e.setAttribute("aria-selected","false")}),o.textContent="",o.removeAttribute("data-filled"),void c();var a=s.find(function(e){var t;return(null===(t=e.querySelector("input"))||void 0===t?void 0:t.value)===i})||s.find(function(e){var t;return null===(t=e.querySelector("input"))||void 0===t?void 0:t.checked})||s[0],l=null===a||void 0===a?void 0:a.querySelector("input");a&&l&&u(a,l)}),r.addEventListener("click",function(n){null===n||void 0===n||n.preventDefault(),null===n||void 0===n||n.stopPropagation();var r=a.classList.contains("open");r||Array.from(e.sitePreferences.querySelectorAll(".kf-a-dropdown")).filter(function(e){return e!==t}
2).forEach(function(e){var t,n;null===(t=e.querySelector(".kf-a-dropdown__options"))||void 0===t||t.classList.remove("open"),null===(n=e.querySelector(".kf-a-dropdown__arrow"))||void 0===n||n.classList.remove("active"),e.setAttribute("aria-expanded","false")}),a.classList.toggle("open",!r),null===i||void 0===i||i.classList.toggle("active",!r),t.setAttribute("aria-expanded",String(!r))}),s.forEach(function(e){var t=e.querySelector("input"),n=e.querySelector("label");null===n||void 0===n||n.addEventListener("click",function(n){n.stopPropagation(),t&&u(e,t)})});var l=s.find(function(e){var t;return null===(t=e.querySelector("input"))||void 0===t?void 0:t.checked}),d=null===l||void 0===l?void 0:l.querySelector("input");l&&d&&(o.textContent=(null===(n=l.textContent)||void 0===n?void 0:n.trim())||"",o.dataset.filled="true",l.setAttribute("aria-selected","true")),document.addEventListener("click",function(e){t.contains(e.target)||c()})}}})},e.prototype.initCountryLanguage=function(){var e,t,n=this.sitePreferences.querySelector("[data-country-language]");this.currentStartPageUrl=null!==(t=null===(e=null===n||void 0===n?void 0:n.dataset.currentStartPageUrl)||void 0===e?void 0:e.trim())&&void 0!==t?t:"";try{this.dataCountryLanguage=n?JSON.parse(n.getAttribute("data-country-language")||"[]"):[]}catch(e){this.dataCountryLanguage=[]}},e.prototype.getInitCurrentCountry=function(){var e=this.sitePreferences.querySelectorAll('.kf-m-dropdown-field[data-name="country"] .kf-a-dropdown__options input');if(e&&0!==e.length){var t=Array.from(e).find(function(e){return e.defaultChecked});t&&(this.countryCode=t.value,this.initCountryCode=t.value)}},e.prototype.getInitCurrentLanguage=function(){var e=this.sitePreferences.querySelector('.kf-o-site-preferences__language input[name="language"]:checked');if(null!==e&&void 0!==e&&e.value)this.languageCode=e.value;else{var t=this.sitePreferences.querySelector('.kf-o-site-preferences__language .kf-a-dropdown__option[aria-selected="true"]'),n=null===t||void 0===t?void 0:t.querySelector("input");(null===n||void 0===n?void 0:n.value)&&(this.languageCode=n.value)}},e.prototype.handleOutsideClick=function(){var e,t,n=this,r=this.sitePreferences.querySelector(".kf-o-site-preferences__container");r&&(null===(t=(e=r).onOutsideClick)||void 0===t||t.call(e,function(){return n.handleCloseElement()}),document.addEventListener("click",function(e){if(!n.sitePreferences.classList.contains("hidden")){var t=e.target;(null===t||void 0===t?void 0:t.closest(".kf-o-top-bar__sites, .kf-o-top-bar__languages, .kf-o-top-bar__lang"))||n.sitePreferences.contains(e.target)||n.handleCloseElement()}}))},e.prototype.handleLanguagesByCountry=function(){var e,t=this,n=this.sitePreferences.querySelector(".kf-o-site-preferences__language");if(n){var r=null===(e=this.dataCountryLanguage)||void 0===e?void 0:e.find(function(e){return e.countryCode===t.countryCode});if(r&&r.languages&&0!==r.languages.length){var o=n.dataset.languageLabel||"Language",i=n.dataset.staticLanguageLabel||"Language",a=r.languages.find(function(e){return t.languageMatches(e.languageCode,t.languageCode)})||r.languages.find(function(e){return e.primaryLanguage})||r.languages[0];if(this.languageCode=null===a||void 0===a?void 0:a.languageCode,1===r.languages.length)return n.innerHTML='\n        <div class="kf-o-site-preferences__static-language">\n          <p class="kf-o-site-preferences__static-language-label">'+i+'</p>\n          <p class="kf-o-site-preferences__static-language-text">'+((null===a||void 0===a?void 0:a.languageName)||"")+'</p>\n          <input type="hidden" name="language" value="'+((null===a||void 0===a?void 0:a.languageCode)||"")+'" />\n        </div>\n      ',void this.handleChangeSitePreference();n.innerHTML='\n      <div class="kf-m-dropdown-field" data-name="language">\n        <span class="kf-m-dropdown-field__title">'+o+'</span>\n\n        <div class="kf-m-dropdown-field__dropdown">\n          <div aria-label="'+((null===a||void 0===a?void 0:a.languageName)||(null===a||void 0===a?void 0:a.languageCode)||"")+'"\n              class="kf-a-dropdown kf-a-dropdown--flat"\n              role="listbox"\n              tabindex="0"\n              style="--max-columns: '+Math.min(Math.max(r.languages.length-1,1),5)+';"\n              aria-expanded="false">
2\n\n            <button class="kf-a-dropdown__label" type="button">\n              <span class="kf-a-dropdown__label-text" data-filled="true">'+((null===a||void 0===a?void 0:a.languageName)||(null===a||void 0===a?void 0:a.languageCode)||"")+'</span>\n              <span class="kf-a-dropdown__arrow">\n                <svg class="kf-a-icon" aria-hidden="true" viewBox="0 0 24 24" width="24" height="24">\n                  <use xlink:href="/images/icons/icons.svg?v=_enZ-FQlst#kf-arrow-down-solid"></use>\n                </svg>\n              </span>\n            </button>\n\n            <div class="kf-a-dropdown__options">\n              '+r.languages.map(function(e,t){var n=e.languageCode||"",r=e.languageName||n,o="language"+t,i=n===(null===a||void 0===a?void 0:a.languageCode);return'\n                  <div class="kf-a-dropdown__option"\n                      role="option"\n                      tabindex="0"\n                      aria-selected="'+i+'">\n                    <input id="'+o+'"\n                          name="language"\n                          type="radio"\n                          value="'+n+'"\n                          '+(i?"checked":"")+' />\n\n                    <label for="'+o+'">\n                      <span class="checkmark"></span>\n                      <span class="kf-a-dropdown__text">'+r+"</span>\n                    </label>\n                  </div>\n                "}).join("")+'\n            </div>\n          </div>\n        </div>\n\n        <div class="kf-m-dropdown-field__error"></div>\n      </div>\n    ',this.initDropdowns(),this.bindLanguageDropdownChange(),this.handleChangeSitePreference()}}},e.prototype.setupCountry=function(){var e=this,t=this.sitePreferences.querySelector('.kf-m-dropdown-field[data-name="country"] .kf-a-dropdown');this.handleLanguagesByCountry(),null===t||void 0===t||t.addEventListener("dropdown-change",function(t){var n;e.countryCode=null===(n=null===t||void 0===t?void 0:t.detail)||void 0===n?void 0:n.value,e.languageCode=void 0,e.handleLanguagesByCountry()})},e.prototype.bindLanguageDropdownChange=function(){var e=this,t=this.sitePreferences.querySelector(".kf-o-site-preferences__language .kf-a-dropdown");null===t||void 0===t||t.addEventListener("dropdown-change",function(t){var n;e.languageCode=null===(n=t.detail)||void 0===n?void 0:n.value,e.handleChangeSitePreference()})},e.prototype.initCountry=function(){var e=this.sitePreferences.querySelector(".kf-o-site-preferences__language .kf-a-dropdown");null===e||void 0===e||e.dispatchEvent(new CustomEvent("reset")),this.handleLanguagesByCountry()},e.prototype.handleChangeSitePreference=function(){var e,t,n,r=this,o=null===(n=null===(t=null===(e=this.dataCountryLanguage)||void 0===e?void 0:e.find(function(e){var t,n;return(null===(t=e.countryCode)||void 0===t?void 0:t.toLowerCase())===(null===(n=r.countryCode)||void 0===n?void 0:n.toLowerCase())}))||void 0===t?void 0:t.languages)||void 0===n?void 0:n.find(function(e){return r.languageMatches(e.languageCode,r.languageCode)}),i=this.resolvePreferenceUrl(null===o||void 0===o?void 0:o.targetLink);this.submitButton&&i?(this.submitButton.href=i,this.submitButton.classList.remove("disabled"),this.submitButton.removeAttribute("aria-disabled")):this.submitButton&&(this.submitButton.classList.add("disabled"),this.submitButton.setAttribute("aria-disabled","true"),this.submitButton.removeAttribute("href"))},e.prototype.addEventOpenElement=function(){var e=this;window.addEventListener("open-site-preferences",function(){return e.handleOpenElement()})},e.prototype.handleOpenElement=function(){var e,t,n;this.sitePreferences.classList.remove("hidden"),this.initDropdowns(),null===(e=this.sitePreferences.querySelector(".kf-a-dropdown__label"))||void 0===e||e.dispatchEvent(new Event("focus")),null===(t=this.sitePreferences.querySelector('.kf-m-dropdown-field[data-name="country"] .kf-a-dropdown'))||void 0===t||t.dispatchEvent(new CustomEvent("reset",{detail:{value:this.initCountryCode}}));var r=window.innerWidth-document.documentElement.clientWidth;if(document.body.style.overflow="hidden",r>0&&(document.body.style.paddingRight=r+"px"),this.header&&this.header.computedStyleMap)try{var o=this.header.computedStyleMap().get("position");o&&"absolute"===o.value&&(this.header.style.paddingRight=r+"px")}catch(e){}null===(n=this.header)||void 0===n||n.classList.add("kf-o-header--site-preferences-opened")},e.prototype.handleCloseElement=function(){var e;if(this.sitePreferences.classList.add("hidden"),document.body.style.overflow="",document.body.style.paddingRight="",this.header&&this.header.computedStyleMap)try{var t=this.header.computedStyleMap().get("position");t&&"absolute"===t.value&&(this.header.style.paddingRight="")}catch(e){}null===(e=this.header)||void 0===e||e.classList.remove("kf-o-header--site-preferences-opened")},e.prototype.addEventCloseElement=function(){var e,t,n=this;null===(e=this.closeIcon)||void 0===e||e.addEventListener("click",function(){return n.handleCloseElement()}),null===(t=this.closeIcon)||void 0===t||t.addEventListener("keydown",function(e){"Enter"===e.key&&n.handleCloseElement()})},e.prototype.languageMatches=function(e,t){if(!e||!t)return!1;var n=e.toLowerCase(),r=t.toLowerCase();return n===r||n.split("-")[0]===r.split("-")[0]},e.prototype.resolvePreferenceUrl=function(e){var t=null===e||void 0===e?void 0:e.trim();if(!t)return null;try{var n=/^https?:\/\//i.test(t)?new URL(t):new URL(t,this.currentStartPageUrl);return"http:"!==n.protocol&&"https:"!==n.protocol?null:n.href}catch(e){return null}},e}();function i(e){e.stopPropagation();var t=e.currentTarget,n=t.closest(".kf-o-header__navigation__item"),r=e.propertyName,o=null===n||void 0===n?void 0:n.closest(".kf-o-header--open-sub-nav");
2n&&"height"===r&&!o&&(n.classList.remove("visible"),t.removeEventListener("transitionend",i))}var a=function(){function e(){var e,t,n,r,o,i,a;this.state="idle",this.header=document.querySelector(".kf-o-header"),this.burgerButton=(null===(e=this.header)||void 0===e?void 0:e.querySelector(".kf-o-header__mobile-burger"))||null,this.closeButton=(null===(t=this.header)||void 0===t?void 0:t.querySelector(".kf-o-header__mobile-close"))||null,this.container=(null===(n=this.header)||void 0===n?void 0:n.querySelector(".kf-o-header__container"))||null,this.navigation=(null===(r=this.header)||void 0===r?void 0:r.querySelector(".kf-o-header__navigation"))||null,this.topBarDesktop=(null===(o=this.header)||void 0===o?void 0:o.querySelector(".kf-o-header__top-bar-desktop .kf-o-top-bar"))||null,this.topBarMobile=(null===(i=this.header)||void 0===i?void 0:i.querySelector(".kf-o-header__top-bar-mobile .kf-o-top-bar"))||null,this.navigationItems=(null===(a=this.header)||void 0===a?void 0:a.querySelectorAll(".kf-o-header__navigation__item"))||null}return e.prototype.init=function(){this.initState(),this.initTopBar(),this.initHeaderDropdowns(),this.initSitePreferences(),this.addEventToMobileBurgerButton(),this.addEventToMobileCloseButton(),this.addEventToNavigation(),this.setCssVariable(),this.addCustomEvent(),this.handleWindowResize(),this.listenAnimationEndEvent()},e.prototype.initState=function(){this.header&&(this.header.dataset.state=this.state)},e.prototype.initTopBar=function(){var e,t;null===(t=null===(e=this.header)||void 0===e?void 0:e.querySelectorAll(".kf-o-top-bar"))||void 0===t||t.forEach(function(e){return new r(e)})},e.prototype.initSitePreferences=function(){var e,t=null===(e=this.header)||void 0===e?void 0:e.querySelector(".kf-o-site-preferences");t&&new o(t).init()},e.prototype.addCustomEvent=function(){var e,t,n,r=this;null===(e=this.header)||void 0===e||e.addEventListener("close-mobile-main-nav",function(){r.closeMobileMainNav()}),null===(t=this.header)||void 0===t||t.addEventListener("close-mobile-sub-nav",function(){r.closeMobileSubNav()}),null===(n=this.header)||void 0===n||n.addEventListener("mobile-sub-nav-opened",function(e){var t,n=null===(t=e.detail)||void 0===t?void 0:t.target;n&&r.setClassAnimationSubmenuMobile(n,!0,!1)})},e.prototype.setCssVariable=function(){this.setHeaderCssVariable(),this.setMobileNavItemNumberCssVariable(),this.setNavigationAnimationCssVariables()},e.prototype.setHeaderCssVariable=function(){var e;window.innerWidth<1200&&document.documentElement.style.setProperty("--header-initial-height",((null===(e=this.header)||void 0===e?void 0:e.offsetHeight)||0)+"px")},e.prototype.setMobileNavItemNumberCssVariable=function(){var e,t=this.navigationItems||document.querySelectorAll(".kf-o-header__navigation__item");Array.from(t).forEach(function(e,t){e.style.setProperty("--mobile-nav-item-number",""+(t+1))});var n=(null===(e=this.topBarMobile)||void 0===e?void 0:e.querySelectorAll(".kf-o-top-bar__dropdown, .kf-o-top-bar__links .kf-a-link, .kf-o-top-bar__my-kf-button"))||null;n&&Array.from(n).forEach(function(e,n){e.style.setProperty("--mobile-nav-item-number",""+(((null===t||void 0===t?void 0:t.length)||0)+n+1))})},e.prototype.addEventToMobileBurgerButton=function(){var e,t=this;null===(e=this.burgerButton)||void 0===e||e.addEventListener("click",function(){return t.onOpenMobileMenu()})},e.prototype.addEventToMobileCloseButton=function(){var e,t=this;null===(e=this.closeButton)||void 0===e||e.addEventListener("click",function(){return t.onCloseMobileMenu()})},e.prototype.onOpenMobileMenu=function(){var e,t,n,r=this;if(this.header){if(!this.isDesktop()){var o=(this.header.offsetHeight||0)+"px";this.header.style.setProperty("--header-start-height",o),document.documentElement.style.setProperty("--header-initial-height",o)}this.header.dataset.state="main-nav",this.header.classList.add("kf-o-header--mobile-opened"),null===(e=this.burgerButton)||void 0===e||e.classList.add("hidden"),null===(t=this.closeButton)||void 0===t||t.classList.remove("hidden"),requestAnimationFrame(function(){var e;null===(e=r.header)||void 0===e||e.classList.add("run-animation-mobile")}),null===(n=this.topBarMobile)||void 0===n||n.classList.add("kf-o-top-bar--mobile-opened"),document.body.style.overflowY="hidden"}},e.prototype.onCloseMobileMenu=function(){var e,t,n,r=this;this.header&&(this.header.dataset.state="idle",null===(e=this.navigation)||void 0===e||e.classList.remove("subnav-open"),this.removeVisibleClass(),this.header.classList.remove("run-animation-mobile"),this.header.classList.add("no-scroll"),null===(t=this.burgerButton)||void 0===t||t.classList.remove("hidden"),null===(n=this.closeButton)||void 0===n||n.classList.add("hidden"),window.setTimeout(function(){var e,t;r.header&&(r.header.classList.remove("kf-o-header--mobile-opened","no-scroll"),null===(e=r.to
2pBarMobile)||void 0===e||e.classList.remove("kf-o-top-bar--mobile-opened"),null===(t=r.navigation)||void 0===t||t.classList.remove("subnav-open"),r.removeVisibleClass(),document.body.style.overflowY="")},480))},e.prototype.closeMobileMainNav=function(e){this.onCloseMobileMenu()},e.prototype.closeMobileSubNav=function(){var e;this.isDesktop()||(this.header&&(this.header.dataset.state="main-nav"),this.removeVisibleClass(),null===(e=this.navigation)||void 0===e||e.classList.remove("subnav-open"))},e.prototype.removeVisibleClass=function(){var e=this.navigationItems||document.querySelectorAll(".kf-o-header__navigation__item");Array.from(e).forEach(function(e){return e.classList.remove("visible")})},e.prototype.addEventToNavigation=function(){var e,t=this,n=this.navigationItems||document.querySelectorAll(".kf-o-header__navigation__item");Array.from(n).forEach(function(e){var n=null;e.addEventListener("mouseenter",function(){n=setTimeout(function(){t.setNavItemHeight(e),t.pauseExtendAnimationDuplicate(e),t.closeSubNav(),t.openSubNav(e),t.toggleProcessEndAnimation()},200)}),e.addEventListener("mouseleave",function(){n&&(clearTimeout(n),n=null)}),e.addEventListener("click",function(){return t.openMobileSubNav(e)});var r=e.querySelector(".kf-o-header__sub-header");null===r||void 0===r||r.addEventListener("click",function(e){e.stopPropagation()});var o=e.querySelector(".kf-o-header__navigation__close");null===o||void 0===o||o.addEventListener("click",function(e){e.preventDefault(),e.stopPropagation(),t.onCloseMobileMenu(),t.closeMobileSubNav()});var i=e.querySelector(".kf-o-header__navigation__back");null===i||void 0===i||i.addEventListener("click",function(n){n.preventDefault(),n.stopPropagation(),t.setClassAnimationSubmenuMobile(e,!1,!1)})});var r=null===(e=this.header)||void 0===e?void 0:e.querySelector(".kf-o-header__container");null===r||void 0===r||r.addEventListener("mouseleave",function(){t.closeSubNav(),t.resetNavItemHeight(),t.resetExtendAnimationDuplicate()})},e.prototype.openSubNav=function(e){var t;this.container&&this.navigation&&this.isDesktop()&&e.querySelector(".kf-o-navigation-content")&&(null===(t=this.header)||void 0===t||t.classList.add("kf-o-header--open-sub-nav"),this.removeVisibleClass(),e.classList.add("visible"),e.classList.add("run-animation"))},e.prototype.closeSubNav=function(){var e,t;this.isDesktop()&&(null===(e=this.header)||void 0===e||e.classList.remove("kf-o-header--open-sub-nav"),Array.from(this.navigationItems||[]).forEach(function(e){e.classList.remove("run-animation")}),null===(t=this.navigation)||void 0===t||t.classList.remove("subnav-open"))},e.prototype.openMobileSubNav=function(e){var t,n,r;e.querySelector(".kf-o-navigation-content")&&(this.isDesktop()||e.classList.contains("visible")&&(null===(t=this.navigation)||void 0===t?void 0:t.classList.contains("subnav-open"))||(this.header&&(this.header.dataset.state="sub-nav"),e.classList.add("visible"),null===(n=this.navigation)||void 0===n||n.classList.add("subnav-open"),null===(r=this.header)||void 0===r||r.dispatchEvent(new CustomEvent("mobile-sub-nav-opened",{detail:{target:e}}))))},e.prototype.isDesktop=function(){return window.matchMedia("(min-width: 1200px)").matches},e.prototype.setNavItemHeight=function(e){var t,n=e.querySelector(".kf-o-header__sub-header__content");this.navigationItems&&this.isDesktop()&&(n?null===(t=this.header)||void 0===t||t.style.setProperty("--globalnav-submenu-height",n.offsetHeight+"px"):this.resetNavItemHeight())},e.prototype.resetNavItemHeight=function(){var e;null===(e=this.header)||void 0===e||e.style.setProperty("--globalnav-submenu-height","0px")},e.prototype.pauseExtendAnimationDuplicate=function(e){this.navigationItems&&this.isDesktop()&&(e.querySelector(".kf-o-header__sub-header")?Array.from(this.navigationItems).some(function(t){return t!==e&&t.classList.contains("visible")})&&Array.from(this.navigationItems).forEach(function(e){e.classList.add("disable-extend-animation")}):this.resetExtendAnimationDuplicate())},e.prototype.resetExtendAnimationDuplicate=function(){this.navigationItems&&this.isDesktop()&&Array.from(this.navigationItems).forEac
2h(function(e){e.classList.remove("disable-extend-animation")})},e.prototype.toggleProcessEndAnimation=function(){var e,t=null===(e=this.header)||void 0===e?void 0:e.querySelectorAll(".kf-o-header__navigation__item.visible");Array.from(t||[]).forEach(function(e){var t;null===(t=e.querySelector(".kf-o-header__sub-header"))||void 0===t||t.addEventListener("transitionend",i)})},e.prototype.handleWindowResize=function(){var e=this;window.addEventListener("resize",function(){if(e.header){var t=e.header.dataset.state,n="main-nav"===t||"sub-nav"===t;e.isDesktop()&&n&&(e.onCloseMobileMenu(),e.closeMobileSubNav(),e.closeSubNav(),e.resetNavItemHeight(),e.resetExtendAnimationDuplicate()),e.setCssVariable()}})},e.prototype.setNavigationAnimationCssVariables=function(){var e=this,t=this.navigationItems||document.querySelectorAll(".kf-o-header__navigation__item");Array.from(t).forEach(function(t){var n=t.querySelectorAll(".kf-o-navigation-content__text__title, .kf-o-navigation-content__text__sub-title");e.setNavItemNumberCssVariable(n);var r=0;t.querySelectorAll(".kf-o-navigation-content__links-list__item").forEach(function(t){var n=t.querySelectorAll(".kf-o-navigation-content__links-list__caption, .kf-o-navigation-content__links-list__link, .kf-a-button");e.setNavItemNumberCssVariable(n),n.length>r&&(r=n.length)}),t.style.setProperty("--total-list-item",""+r)})},e.prototype.setNavItemNumberCssVariable=function(e){Array.from(e).forEach(function(e,t){e.style.setProperty("--nav-item-number",""+(t+1))})},e.prototype.setClassAnimationSubmenuMobile=function(e,t,n){var r,o;if(!this.isDesktop()){var i=t?"submenu-opening-mobile":"submenu-closing-mobile",a=t?"slide-forward-next":"slide-back-previous";n?null===(o=this.header)||void 0===o||o.classList.remove(i):null===(r=this.header)||void 0===r||r.classList.add(i),this.setParentItemAnimationClassMobile(t,n),e.querySelectorAll(".kf-o-header__sub-header").forEach(function(e){n?e.classList.remove(a):e.classList.add(a)})}},e.prototype.setParentItemAnimationClassMobile=function(e,t){var n,r,o,i;if(!this.isDesktop()){var a=e?"slide-forward-previous":"slide-back-next",s=this.navigationItems||(null===(n=this.header)||void 0===n?void 0:n.querySelectorAll(".kf-o-header__navigation__item"));null===s||void 0===s||s.forEach(function(e){t?e.classList.remove(a):e.classList.add(a)});var c=null===(r=this.topBarMobile)||void 0===r?void 0:r.querySelectorAll(".kf-o-top-bar__dropdown, .kf-o-top-bar__links .kf-a-link, .kf-o-top-bar__my-kf-button");null===c||void 0===c||c.forEach(function(e){t?e.classList.remove(a):e.classList.add(a)});var u=null===(o=this.header)||void 0===o?void 0:o.querySelector(".kf-o-header__left-side"),l=null===(i=this.header)||void 0===i?void 0:i.querySelector(".kf-o-country-selector-prompt");t?(null===u||void 0===u||u.classList.remove(a),null===l||void 0===l||l.classList.remove(a)):(null===u||void 0===u||u.classList.add(a),null===l||void 0===l||l.classList.add(a))}},e.prototype.listenAnimationEndEvent=function(){var e,t=this;null===(e=this.header)||void 0===e||e.addEventListener("animationend",function(e){e.stopPropagation(),!t.isDesktop()&&t.header&&("globalnav-flyout-slide-forward-next"!==e.animationName?"globalnav-flyout-slide-back-previous"===e.animationName&&window.setTimeout(function(){t.header&&(t.setClassAnimationSubmenuMobile(t.header,!1,!0),t.header.dispatchEvent(new CustomEvent("close-mobile-sub-nav")))},100):window.setTimeout(function(){t.header&&t.setClassAnimationSubmenuMobile(t.header,!0,!0)},100))})},e.prototype.initHeaderDropdowns=function(){var e;Array.from((null===(e=this.header)||void 0===e?void 0:e.querySelectorAll(".kf-o-header__division-mobile .kf-a-dropdown"))||[]).forEach(function(e){if("true"!==e.dataset.kfHeaderDropdownAttached){var t=e.querySelector(".kf-a-dropdown__label"),n=e.querySelector(".kf-a-dropdown__arrow"),r=e.querySelector(".kf-a-dropdown__options");if(t&&r){e.dataset.kfHeaderDropdownAttached="true";var o=function(t){t.preventDefault(),t.stopPropagation();var o=r.classList.contains("open");r.classList.toggle("open",!o),null===n||void 0===n||n.classList.toggle("active",!o),e.setAttribute("aria-expanded",String(!o))};t.addEventListener("click",o),t.addEventListener("keydown",function(e){"Enter"!==e.key&&" "!==e.key||o(e)}),r.addEventListener("click",function(e){e.stopPropagation()}),document.addEventListener("click",function(t){e.contains(t.target)||(r.classList.remove("open"),null===n||void 0===n||n.classList.remove("active"),e.setAttribute("aria-expanded","fal
2se"))})}}})},e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return qe});var r=n(0),o=n(24),i=n(53),a=n(95),s=n(644),c=n(646),u=n(808),l=n(809),d=n(810),p=n(89),h=n(117),f=n(199),m=n(844),g=n(845),y=n(846),v=n.n(y),b=n(847),S=n.n(b),E=n(848),C=n.n(E),T=n(849),w=n.n(T),_=n(850),I=n.n(_),P=n(851),R=n.n(P),O=n(852),A=n.n(O),k=n(853),M=n.n(k),N=n(854),x=n.n(N),L=n(855),j=n.n(L),D=n(856),F=n.n(D),U=n(857),q=n.n(U),B=n(858),H=n.n(B),z=n(859),K=n.n(z),G=n(860),V=n.n(G),W=n(861),Y=n.n(W),$=n(862),Q=n.n($),J=n(863),X=n.n(J),Z=n(864),ee=n.n(Z),te=n(865),ne=n.n(te),re=n(866),oe=n.n(re),ie=n(867),ae=n.n(ie),se=n(868),ce=n.n(se),ue=n(869),le=n.n(ue),de=n(870),pe=n.n(de),he=n(871),fe=n.n(he),me=n(872),ge=n.n(me),ye=n(873),ve=n.n(ye),be=n(874),Se=n.n(be),Ee=n(875),Ce=n.n(Ee),Te=n(876),we=n.n(Te),_e=n(877),Ie=n.n(_e),Pe=n(878),Re=n.n(Pe),Oe=n(879),Ae=n.n(Oe),ke=n(880),Me=n.n(ke),Ne=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};Object(o.registerLocaleData)(v.a),Object(o.registerLocaleData)(S.a),Object(o.registerLocaleData)(C.a),Object(o.registerLocaleData)(w.a),Object(o.registerLocaleData)(I.a),Object(o.registerLocaleData)(R.a),Object(o.registerLocaleData)(A.a),Object(o.registerLocaleData)(M.a),Object(o.registerLocaleData)(x.a),Object(o.registerLocaleData)(j.a),Object(o.registerLocaleData)(F.a),Object(o.registerLocaleData)(q.a),Object(o.registerLocaleData)(H.a),Object(o.registerLocaleData)(K.a),Object(o.registerLocaleData)(V.a),Object(o.registerLocaleData)(Y.a),Object(o.registerLocaleData)(Q.a),Object(o.registerLocaleData)(X.a),Object(o.registerLocaleData)(ee.a),Object(o.registerLocaleData)(ne.a),Object(o.registerLocaleData)(oe.a),Object(o.registerLocaleData)(ae.a),Object(o.registerLocaleData)(ce.a),Object(o.registerLocaleData)(le.a),Object(o.registerLocaleData)(pe.a),Object(o.registerLocaleData)(fe.a),Object(o.registerLocaleData)(ge.a),Object(o.registerLocaleData)(ve.a),Object(o.registerLocaleData)(Se.a),Object(o.registerLocaleData)(Ce.a),Object(o.registerLocaleData)(we.a),Object(o.registerLocaleData)(Ie.a),Object(o.registerLocaleData)(Re.a),Object(o.registerLocaleData)(Ae.a),Object(o.registerLocaleData)(Me.a);var xe="zh-hant"===window.kfsearchconfig.Locale?"zh-Hant":"zh-hans"===window.kfsearchconfig.Locale?"zh-Hans":"nl-nl"===window.kfsearchconfig.Locale?"nl":"no"===window.kfsearchconfig.Locale?"nb":window.kfsearchconfig.Locale,Le=window.navigator.userAgent.indexOf("MSIE ")>-1||window.navigator.userAgent.indexOf("Trident/")>-1,je=window.location.hostname.endsWith("localhost");function De(){return new f.h({auth:{clientId:window.kfsearchconfig.Azureb2c.ClientId,authority:window.kfsearchconfig.Azureb2c.Authorities.SignInSignUp,knownAuthorities:[window.kfsearchconfig.Azureb2c.Authorities.KnownAuthorities],redirectUri:window.kfsearchconfig.Azureb2c.RedirectUri},cache:{cacheLocation:"localStorage",storeAuthStateInCookie:Le},system:{loggerOptions:je?{loggerCallback:function(e,t,n){if(!n)switch(e){case f.f.Error:console.error(t);break;case f.f.Info:console.info(t);break;case f.f.Verbose:console.debug(t);break;case f.f.Warning:console.warn(t)}},logLevel:f.f.Verbose,piiLoggingEnabled:!1}:void 0}})}function Fe(){return{interactionType:f.e.Redirect,authRequest:{scopes:[window.kfsearchconfig.Azureb2c.Scope]}}}function Ue(){var e=new Map;return e.set(window.kfsearchconfig.ApiSecureBase,[window.kfsearchconfig.Azureb2c.Scope]),{interactionType:f.e.Redirect,protectedResourceMap:e}}var qe=function(){function e(){}return e=Ne([Object(r.NgModule)({declarations:[u.a,g.a],imports:[a.a,i.c,l.a,s.a,d.a,c.a,h.g],providers:[o.DecimalPipe,o.CurrencyPipe,o.TitleCasePipe,p.a,{provide:r.LOCALE_ID,useValue:xe},{provide:i.a,useClass:m.a,multi:!0},{provide:i.a,useClass:h.f,multi:!0},{provide:h.b,useFactory:De},{provide:h.a,useFactory:Fe},{provide:h.c,useFactory:Ue},h.i,h.d,h.e],bootstrap:[u.a]})],e)}()},function(e,t,n){"use strict";n.d(t,"a",function(){return C});var r=n(0),o=n(95),i=n(96),a=n(645),s=n(24);class c extends i.AnimationBuilder{constructor(e,t){super(),this._nextAnimationId=0;const n={id:"0",encapsulation:r.ViewEncapsulation.None,styles:[],data:{animation:[]}};this._renderer=e.createRenderer(t.body,n)}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(e)?Object(i.sequence)(e):e;return d(this._renderer,null,t,"register",[n]),new u(t,this._renderer)}}c.decorators=[{type:r.Injectable}],c.ctorParameters=(()=>[{type:r.RendererFactory2},{type:void 0,decorators:[{type:r.Inject,args:[s.DOCUMENT]}
2]}]);class u extends i.AnimationFactory{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new l(this._id,e,t||{},this._renderer)}}class l{constructor(e,t,n,r){this.id=e,this.element=t,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(e,t){return this._renderer.listen(this.element,`@@${this.id}:${e}`,t)}_command(e,...t){return d(this._renderer,this.element,this.id,e,t)}onDone(e){this._listen("done",e)}onStart(e){this._listen("start",e)}onDestroy(e){this._listen("destroy",e)}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")}setPosition(e){this._command("setPosition",e)}getPosition(){return 0}}function d(e,t,n,r,o){return e.setProperty(t,`@@${n}:${r}`,o)}const p="@",h="@.disabled";class f{constructor(e,t,n){this.delegate=e,this.engine=t,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=((e,t)=>{t&&t.parentNode(e)&&t.removeChild(e.parentNode,e)})}createRenderer(e,t){const n=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let e=this._rendererCache.get(n);return e||(e=new m("",n,this.engine),this._rendererCache.set(n,e)),e}const r=t.id,o=t.id+"-"+this._currentId;this._currentId++,this.engine.register(o,e);const i=t=>{Array.isArray(t)?t.forEach(i):this.engine.registerTrigger(r,o,e,t.name,t)};return t.data.animation.forEach(i),new g(this,o,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,n){e>=0&&e<this._microtaskId?this._zone.run(()=>t(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(e=>{const[t,n]=e;t(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,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()}}f.decorators=[{type:r.Injectable}],f.ctorParameters=(()=>[{type:r.RendererFactory2},{type:a.b},{type:r.NgZone}]);class m{constructor(e,t,n){this.namespaceId=e,this.delegate=t,this.engine=n,this.destroyNode=this.delegate.destroyNode?e=>t.destroyNode(e):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,n){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,!0)}removeChild(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,n,r){this.delegate.setAttribute(e,t,n,r)}removeAttribute(e,t,n){this.delegate.removeAttribute(e,t,n)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,n,r){this.delegate.setStyle(e,t,n,r)}removeStyle(e,t,n){this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){t.charAt(0)==p&&t==h?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,n){return this.delegate.listen(e,t,n)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}}class g extends m{constructor(e,t,n,r){super(t,n,r),this.factory=e,this.namespaceId=t}setProperty(e,t,n){t.charAt(0)==p?"."==t.charAt(1)&&t==h?(n=void 0===n||!!n,this.disableAnimations(e,n)):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)}
2listen(e,t,n){if(t.charAt(0)==p){const r=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e);let o=t.substr(1),i="";return o.charAt(0)!=p&&([o,i]=function(e){const t=e.indexOf("."),n=e.substring(0,t),r=e.substr(t+1);return[n,r]}(o)),this.engine.listen(this.namespaceId,r,o,i,e=>{const t=e._data||-1;this.factory.scheduleListenerCallback(t,n,e)})}return this.delegate.listen(e,t,n)}}class y extends a.b{constructor(e,t,n){super(e.body,t,n)}}y.decorators=[{type:r.Injectable}],y.ctorParameters=(()=>[{type:void 0,decorators:[{type:r.Inject,args:[s.DOCUMENT]}]},{type:a.a},{type:a.c}]);const v=new r.InjectionToken("AnimationModuleType"),b=[{provide:i.AnimationBuilder,useClass:c},{provide:a.c,useFactory:function(){return new a.g}},{provide:a.b,useClass:y},{provide:r.RendererFactory2,useFactory:function(e,t,n){return new f(e,t,n)},deps:[o.d,a.b,r.NgZone]}],S=[{provide:a.a,useFactory:function(){return Object(a.h)()?new a.f:new a.d}},{provide:v,useValue:"BrowserAnimations"},...b],E=[{provide:a.a,useClass:a.e},{provide:v,useValue:"NoopAnimations"},...b];class C{}C.decorators=[{type:r.NgModule,args:[{exports:[o.a],providers:S}]}];(class{}).decorators=[{type:r.NgModule,args:[{exports:[o.a],providers:E}]}]},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return _}),n.d(t,"b",function(){return ut}),n.d(t,"c",function(){return Pe}),n.d(t,"d",function(){return kt}),n.d(t,"e",function(){return w}),n.d(t,"f",function(){return Nt}),n.d(t,"g",function(){return Re}),n.d(t,"h",function(){return xt});var r=n(96),o=n(0);function i(){return void 0!==e&&"[object process]"==={}.toString.call(e)}function a(e){switch(e.length){case 0:return new r.NoopAnimationPlayer;case 1:return e[0];default:return new r["ɵAnimationGroupPlayer"](e)}}function s(e,t,n,o,i={},a={}){const s=[],c=[];let u=-1,l=null;if(o.forEach(e=>{const n=e.offset,o=n==u,d=o&&l||{};Object.keys(e).forEach(n=>{let o=n,c=e[n];if("offset"!==n)switch(o=t.normalizePropertyName(o,s),c){case r["ɵPRE_STYLE"]:c=i[n];break;case r.AUTO_STYLE:c=a[n];break;default:c=t.normalizeStyleValue(n,o,c,s)}d[o]=c}),o||c.push(d),l=d,u=n}),s.length){const e="\n - ";throw new Error(`Unable to animate due to the following errors:${e}${s.join(e)}`)}return c}function c(e,t,n,r){switch(t){case"start":e.onStart(()=>r(n&&u(n,"start",e)));break;case"done":e.onDone(()=>r(n&&u(n,"done",e)));break;case"destroy":e.onDestroy(()=>r(n&&u(n,"destroy",e)))}}function u(e,t,n){const r=n.totalTime,o=!!n.disabled,i=l(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,void 0==r?e.totalTime:r,o),a=e._data;return null!=a&&(i._data=a),i}function l(e,t,n,r,o="",i=0,a){return{element:e,triggerName:t,fromState:n,toState:r,phaseName:o,totalTime:i,disabled:!!a}}function d(e,t,n){let r;return e instanceof Map?(r=e.get(t))||e.set(t,r=n):(r=e[t])||(r=e[t]=n),r}function p(e){const t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}let h=(e,t)=>!1;let f=(e,t)=>!1;let m=(e,t,n)=>[];const g=i();(g||"undefined"!=typeof Element)&&(h=((e,t)=>e.contains(t)),f=(()=>{if(g||Element.prototype.matches)return(e,t)=>e.matches(t);{const e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?(e,n)=>t.apply(e,[n]):f}})(),m=((e,t,n)=>{let r=[];if(n)r.push(...e.querySelectorAll(t));else{const n=e.querySelector(t);n&&r.push(n)}return r}));let y=null,v=!1;function b(e){y||(y=function(){if("undefined"!=typeof document)return document.body;return null}()||{},v=!!y.style&&"WebkitAppearance"in y.style);let t=!0;if(y.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&!(t=e in y.style)&&v){t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in y.style}return t}const S=f,E=h,C=m;function T(e){const t={};return Object.keys(e).forEach(n=>{const r=n.replace(/([a-z])([A-Z])/g,"$1-$2");t[r]=e[n]}),t}class w{validateStyleProperty(e){return b(e)}matchesElement(e,t){return S(e,t)}containsElement(e,t){return E(e,t)}query(e,t,n){return C(e,t,n)}computeStyle(e,t,n){return n||""}animate(e,t,n,o,i,a=[],s){return new r.NoopAnimationPlayer(n,o)}}w.decorators=[{type:o.Injectable}];class _{}_.NOOP=new w;const I=1e3,P="{{",R="ng-enter",O="ng-leave",A="ng-trigger",k=".ng-trigger",M="ng-animating",N=".ng-animating";function x(e){if("number"==typeof e)return e;const t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:L(parseFloat(t[1]),t[2])}function L(e,t){switch(t){case"s":return e*I;default:return e}}function j(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){const r=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;let o,i=0,a="";if("string"==typeof e){const n=e.match(r);if(null===n)return t.push(`The provided timing value "${e}
2" is invalid.`),{duration:0,delay:0,easing:""};o=L(parseFloat(n[1]),n[2]);const s=n[3];null!=s&&(i=L(parseFloat(s),n[4]));const c=n[5];c&&(a=c)}else o=e;if(!n){let n=!1,r=t.length;o<0&&(t.push("Duration values below 0 are not allowed for this animation step."),n=!0),i<0&&(t.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&t.splice(r,0,`The provided timing value "${e}" is invalid.`)}return{duration:o,delay:i,easing:a}}(e,t,n)}function D(e,t={}){return Object.keys(e).forEach(n=>{t[n]=e[n]}),t}function F(e,t,n={}){if(t)for(let t in e)n[t]=e[t];else D(e,n);return n}function U(e,t,n){return n?t+":"+n+";":""}function q(e){let t="";for(let n=0;n<e.style.length;n++){const r=e.style.item(n);t+=U(0,r,e.style.getPropertyValue(r))}for(const n in e.style){if(!e.style.hasOwnProperty(n)||n.startsWith("_"))continue;t+=U(0,Q(n),e.style[n])}e.setAttribute("style",t)}function B(e,t,n){e.style&&(Object.keys(t).forEach(r=>{const o=$(r);n&&!n.hasOwnProperty(r)&&(n[r]=e.style[o]),e.style[o]=t[r]}),i()&&q(e))}function H(e,t){e.style&&(Object.keys(t).forEach(t=>{const n=$(t);e.style[n]=""}),i()&&q(e))}function z(e){return Array.isArray(e)?1==e.length?e[0]:Object(r.sequence)(e):e}const K=new RegExp(`${P}\\s*(.+?)\\s*}}`,"g");function G(e){let t=[];if("string"==typeof e){let n;for(;n=K.exec(e);)t.push(n[1]);K.lastIndex=0}return t}function V(e,t,n){const r=e.toString(),o=r.replace(K,(e,r)=>{let o=t[r];return t.hasOwnProperty(r)||(n.push(`Please provide a value for the animation param ${r}`),o=""),o.toString()});return o==r?e:o}function W(e){const t=[];let n=e.next();for(;!n.done;)t.push(n.value),n=e.next();return t}const Y=/-+([a-z0-9])/g;function $(e){return e.replace(Y,(...e)=>e[1].toUpperCase())}function Q(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function J(e,t){return 0===e||0===t}function X(e,t,n){const r=Object.keys(n);if(r.length&&t.length){let i=t[0],a=[];if(r.forEach(e=>{i.hasOwnProperty(e)||a.push(e),i[e]=n[e]}),a.length)for(var o=1;o<t.length;o++){let n=t[o];a.forEach(function(t){n[t]=ee(e,t)})}}return t}function Z(e,t,n){switch(t.type){case 7:return e.visitTrigger(t,n);case 0:return e.visitState(t,n);case 1:return e.visitTransition(t,n);case 2:return e.visitSequence(t,n);case 3:return e.visitGroup(t,n);case 4:return e.visitAnimate(t,n);case 5:return e.visitKeyframes(t,n);case 6:return e.visitStyle(t,n);case 8:return e.visitReference(t,n);case 9:return e.visitAnimateChild(t,n);case 10:return e.visitAnimateRef(t,n);case 11:return e.visitQuery(t,n);case 12:return e.visitStagger(t,n);default:throw new Error(`Unable to resolve animation metadata node #${t.type}`)}}function ee(e,t){return window.getComputedStyle(e)[t]}const te="*";function ne(e,t){const n=[];return"string"==typeof e?e.split(/\s*,\s*/).forEach(e=>(function(e,t,n){if(":"==e[0]){const r=function(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t)<parseFloat(e);default:return t.push(`The transition alias value "${e}" is not supported`),"* => *"}}(e,n);if("function"==typeof r)return void t.push(r);e=r}const r=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push(`The provided transition expression "${e}" is not supported`),t;const o=r[1],i=r[2],a=r[3];t.push(ie(o,a));const s=o==te&&a==te;"<"!=i[0]||s||t.push(ie(a,o))})(e,n,t)):n.push(e),n}const re=new Set(["true","1"]),oe=new Set(["false","0"]);function ie(e,t){const n=re.has(e)||oe.has(e),r=re.has(t)||oe.has(t);return(o,i)=>{let a=e==te||e==o,s=t==te||t==i;return!a&&n&&"boolean"==typeof o&&(a=o?re.has(e):oe.has(e)),!s&&r&&"boolean"==typeof i&&(s=i?re.has(t):oe.has(t)),a&&s}}const ae=":self",se=new RegExp(`s*${ae}s*,?`,"g");function ce(e,t,n){return new le(e).build(t,n)}const ue="";class le{constructor(e){this._driver=e}build(e,t){const n=new de(t);return this._resetContextStyleTimingState(n),Z(this,z(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector=ue,e.collectedStyles={},e.collectedStyles[ue]={},e.currentTime=0}visitTrigger(e,t){let n=t.queryCount=0,r=t.depCount=0;const o=[],i=[];return"@"==e.name.charAt(0)&&t.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),e.definitions.forEach(e
2=>{if(this._resetContextStyleTimingState(t),0==e.type){const n=e,r=n.name;r.toString().split(/\s*,\s*/).forEach(e=>{n.name=e,o.push(this.visitState(n,t))}),n.name=r}else if(1==e.type){const o=this.visitTransition(e,t);n+=o.queryCount,r+=o.depCount,i.push(o)}else t.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:e.name,states:o,transitions:i,queryCount:n,depCount:r,options:null}}visitState(e,t){const n=this.visitStyle(e.styles,t),r=e.options&&e.options.params||null;if(n.containsDynamicStyles){const o=new Set,i=r||{};if(n.styles.forEach(e=>{if(pe(e)){const t=e;Object.keys(t).forEach(e=>{G(t[e]).forEach(e=>{i.hasOwnProperty(e)||o.add(e)})})}}),o.size){const n=W(o.values());t.errors.push(`state("${e.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:e.name,style:n,options:r?{params:r}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const n=Z(this,z(e.animation),t);return{type:1,matchers:ne(e.expr,t.errors),animation:n,queryCount:t.queryCount,depCount:t.depCount,options:he(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map(e=>Z(this,e,t)),options:he(e.options)}}visitGroup(e,t){const n=t.currentTime;let r=0;const o=e.steps.map(e=>{t.currentTime=n;const o=Z(this,e,t);return r=Math.max(r,t.currentTime),o});return t.currentTime=r,{type:3,steps:o,options:he(e.options)}}visitAnimate(e,t){const n=function(e,t){let n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e){const n=j(e,t).duration;return fe(n,0,"")}const r=e;if(r.split(/\s+/).some(e=>"{"==e.charAt(0)&&"{"==e.charAt(1))){const e=fe(0,0,"");return e.dynamic=!0,e.strValue=r,e}return fe((n=n||j(r,t)).duration,n.delay,n.easing)}(e.timings,t.errors);let o;t.currentAnimateTimings=n;let i=e.styles?e.styles:Object(r.style)({});if(5==i.type)o=this.visitKeyframes(i,t);else{let i=e.styles,a=!1;if(!i){a=!0;const e={};n.easing&&(e.easing=n.easing),i=Object(r.style)(e)}t.currentTime+=n.duration+n.delay;const s=this.visitStyle(i,t);s.isEmptyStep=a,o=s}return t.currentAnimateTimings=null,{type:4,timings:n,style:o,options:null}}visitStyle(e,t){const n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}_makeStyleAst(e,t){const n=[];Array.isArray(e.styles)?e.styles.forEach(e=>{"string"==typeof e?e==r.AUTO_STYLE?n.push(e):t.errors.push(`The provided style string value ${e} is not allowed.`):n.push(e)}):n.push(e.styles);let o=!1,i=null;return n.forEach(e=>{if(pe(e)){const t=e,n=t.easing;if(n&&(i=n,delete t.easing),!o)for(let e in t){if(t[e].toString().indexOf(P)>=0){o=!0;break}}}}),{type:6,styles:n,easing:i,offset:e.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(e,t){const n=t.currentAnimateTimings;let r=t.currentTime,o=t.currentTime;n&&o>0&&(o-=n.duration+n.delay),e.styles.forEach(e=>{"string"!=typeof e&&Object.keys(e).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void t.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const i=t.collectedStyles[t.currentQuerySelector],a=i[n];let s=!0;a&&(o!=r&&o>=a.startTime&&r<=a.endTime&&(t.errors.push(`The CSS property "${n}" that exists between the times of "${a.startTime}ms" and "${a.endTime}ms" is also being animated in a parallel animation between the times of "${o}ms" and "${r}ms"`),s=!1),o=a.startTime),s&&(i[n]={startTime:o,endTime:r}),t.options&&function(e,t,n){const r=t.params||{},o=G(e);o.length&&o.forEach(e=>{r.hasOwnProperty(e)||n.push(`Unable to resolve the local animation param ${e} in the given list of values`)})}(e[n],t.options,t.errors)})})}visitKeyframes(e,t){const n={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),n;let r=0;const o=[];let i=!1,a=!1,s=0;const c=e.steps.map(e=>{const n=this._makeStyleAst(e,t);let c=null!=n.offset?n.offset:function(e){if("string"==typeof e)return null;let t=null;if(Array.isArray(e))e.forEach(e=>{if(pe(e)&&e.hasOwnProperty("offset")){const n=e;t=parseFloat(n.offset),delete n.offset}});else if(pe(e)&&e.hasOwnProperty("offset")){const n=e;t=parseFloat(n.offset),delete n.offset}return t}(n.styles),u=0;return null!=c&&(r++,u=n.offset=c),a=a||u<0||u>1,i=i||u<s,s=u,o.push(u),n});a&&t.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),i&&t.errors.push("Please ensure that all keyframe offsets are in order");const u=e.steps.length;let l=0;r>0&&r<u?t.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==r&&(l=1/(u-1));const d=u-1,p=t.currentTime,h=t.currentAnimateTimings,f=h.duration;
2return c.forEach((e,r)=>{const i=l>0?r==d?1:l*r:o[r],a=i*f;t.currentTime=p+h.delay+a,h.duration=a,this._validateStyleAst(e,t),e.offset=i,n.styles.push(e)}),n}visitReference(e,t){return{type:8,animation:Z(this,z(e.animation),t),options:he(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:he(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:he(e.options)}}visitQuery(e,t){const n=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;const[o,i]=function(e){const t=!!e.split(/\s*,\s*/).find(e=>e==ae);t&&(e=e.replace(se,""));return[e=e.replace(/@\*/g,k).replace(/@\w+/g,e=>k+"-"+e.substr(1)).replace(/:animating/g,N),t]}(e.selector);t.currentQuerySelector=n.length?n+" "+o:o,d(t.collectedStyles,t.currentQuerySelector,{});const a=Z(this,z(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:i,animation:a,originalSelector:e.selector,options:he(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");const n="full"===e.timings?{duration:0,delay:0,easing:"full"}:j(e.timings,t.errors,!0);return{type:12,animation:Z(this,z(e.animation),t),timings:n,options:null}}}class de{constructor(e){this.errors=e,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 pe(e){return!Array.isArray(e)&&"object"==typeof e}function he(e){return e?(e=D(e)).params&&(e.params=function(e){return e?D(e):null}(e.params)):e={},e}function fe(e,t,n){return{duration:e,delay:t,easing:n}}function me(e,t,n,r,o,i,a=null,s=!1){return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:r,duration:o,delay:i,totalTime:o+i,easing:a,subTimeline:s}}class ge{constructor(){this._map=new Map}consume(e){let t=this._map.get(e);return t?this._map.delete(e):t=[],t}append(e,t){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const ye=1,ve=new RegExp(":enter","g"),be=new RegExp(":leave","g");function Se(e,t,n,r,o,i={},a={},s,c,u=[]){return(new Ee).buildKeyframes(e,t,n,r,o,i,a,s,c,u)}class Ee{buildKeyframes(e,t,n,r,o,i,a,s,c,u=[]){c=c||new ge;const l=new Te(e,t,c,r,o,u,[]);l.options=s,l.currentTimeline.setStyles([i],null,l.errors,s),Z(this,n,l);const d=l.timelines.filter(e=>e.containsAnimation());if(d.length&&Object.keys(a).length){const e=d[d.length-1];e.allowOnlyTimelineStyles()||e.setStyles([a],null,l.errors,s)}return d.length?d.map(e=>e.buildKeyframes()):[me(t,[],[],[],0,0,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const n=t.subInstructions.consume(t.element);if(n){const r=t.createSubContext(e.options),o=t.currentTimeline.currentTime,i=this._visitSubInstructions(n,r,r.options);o!=i&&t.transformIntoNewTimeline(i)}t.previousNode=e}visitAnimateRef(e,t){const n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}_visitSubInstructions(e,t,n){let r=t.currentTimeline.currentTime;const o=null!=n.duration?x(n.duration):null,i=null!=n.delay?x(n.delay):null;return 0!==o&&e.forEach(e=>{const n=t.appendInstructionToTimeline(e,o,i);r=Math.max(r,n.duration+n.delay)}),r}visitReference(e,t){t.updateOptions(e.options,!0),Z(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const n=t.subContextCount;let r=t;const o=e.options;if(o&&(o.params||o.delay)&&((r=t.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Ce);const e=x(o.delay);r.delayNextStep(e)}e.steps.length&&(e.steps.forEach(e=>Z(this,e,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>n&&r.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const n=[];let r=t.currentTimeline.currentTime;const o=e.options&&e.options.delay?x(e.options.delay):0;e.steps.forEach(i=>
2{const a=t.createSubContext(e.options);o&&a.delayNextStep(o),Z(this,i,a),r=Math.max(r,a.currentTimeline.currentTime),n.push(a.currentTimeline)}),n.forEach(e=>t.currentTimeline.mergeTimelineCollectedStyles(e)),t.transformIntoNewTimeline(r),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const n=e.strValue;return j(t.params?V(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const n=t.currentAnimateTimings=this._visitTiming(e.timings,t),r=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),r.snapshotCurrentStyles());const o=e.style;5==o.type?this.visitKeyframes(o,t):(t.incrementTime(n.duration),this.visitStyle(o,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const n=t.currentTimeline,r=t.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();const o=r&&r.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(o):n.setStyles(e.styles,o,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const n=t.currentAnimateTimings,r=t.currentTimeline.duration,o=n.duration,i=t.createSubContext().currentTimeline;i.easing=n.easing,e.styles.forEach(e=>{const n=e.offset||0;i.forwardTime(n*o),i.setStyles(e.styles,e.easing,t.errors,t.options),i.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(i),t.transformIntoNewTimeline(r+o),t.previousNode=e}visitQuery(e,t){const n=t.currentTimeline.currentTime,r=e.options||{},o=r.delay?x(r.delay):0;o&&(6===t.previousNode.type||0==n&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Ce);let i=n;const a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=a.length;let s=null;a.forEach((n,r)=>{t.currentQueryIndex=r;const a=t.createSubContext(e.options,n);o&&a.delayNextStep(o),n===t.element&&(s=a.currentTimeline),Z(this,e.animation,a),a.currentTimeline.applyStylesToKeyframe();const c=a.currentTimeline.currentTime;i=Math.max(i,c)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(i),s&&(t.currentTimeline.mergeTimelineCollectedStyles(s),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const n=t.parentContext,r=t.currentTimeline,o=e.timings,i=Math.abs(o.duration),a=i*(t.currentQueryTotal-1);let s=i*t.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":s=a-s;break;case"full":s=n.currentStaggerTime}const c=t.currentTimeline;s&&c.delayNextStep(s);const u=c.currentTime;Z(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=r.currentTime-u+(r.startTime-n.currentTimeline.startTime)}}const Ce={};class Te{constructor(e,t,n,r,o,i,a,s){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=o,this.errors=i,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Ce,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=s||new we(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const n=e;let r=this.options;null!=n.duration&&(r.duration=x(n.duration)),null!=n.delay&&(r.delay=x(n.delay));const o=n.params;if(o){let e=r.params;e||(e=this.options.params={}),Object.keys(o).forEach(n=>{t&&e.hasOwnProperty(n)||(e[n]=V(o[n],e,this.errors))})}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const n=e.params={};Object.keys(t).forEach(e=>{n[e]=t[e]})}}return e}createSubContext(e=null,t,n){const r=t||this.element,o=new Te(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,n||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(e){return this.previousNode=Ce,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,n){const r={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},o=new _e(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,n,r,o,i){let a=[];if(r&&a.push(this.element),e.length>0){e=(e=e.replace(ve,"."+this._enterClassName)).replace(be,"."+this._leaveClassName);const t=1!=n;let r=this._driver.query(this.element,e,t);0!==n&&(r=n<0?r.slice(r.length+n,r.length):r.slice(0,n)),a.push(...r)}return o||0!=a.length||i.push(`\`query("${t}")\` returned zero elements. (Use \`query("${t}", { optional: true })\` if you wish to allow this.)`),a}}class we{constructor(e,t,n,r){this._driver=e,this.element=t,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(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,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(e){const t=1==this._keyframes.size&&Object.keys(this._pe
2ndingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new we(this._driver,e,t||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+=ye,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||r.AUTO_STYLE,this._currentKeyframe[e]=r.AUTO_STYLE}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,n,o){t&&(this._previousKeyframe.easing=t);const i=o&&o.params||{},a=function(e,t){const n={};let o;return e.forEach(e=>{"*"===e?(o=o||Object.keys(t)).forEach(e=>{n[e]=r.AUTO_STYLE}):F(e,!1,n)}),n}(e,this._globalTimelineStyles);Object.keys(a).forEach(e=>{const t=V(a[e],i,n);this._pendingStyles[e]=t,this._localTimelineStyles.hasOwnProperty(e)||(this._backFill[e]=this._globalTimelineStyles.hasOwnProperty(e)?this._globalTimelineStyles[e]:r.AUTO_STYLE),this._updateStyle(e,t)})}
2applyStylesToKeyframe(){const e=this._pendingStyles,t=Object.keys(e);0!=t.length&&(this._pendingStyles={},t.forEach(t=>{const n=e[t];this._currentKeyframe[t]=n}),Object.keys(this._localTimelineStyles).forEach(e=>{this._currentKeyframe.hasOwnProperty(e)||(this._currentKeyframe[e]=this._localTimelineStyles[e])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(e=>{const t=this._localTimelineStyles[e];this._pendingStyles[e]=t,this._updateStyle(e,t)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){Object.keys(e._styleSummary).forEach(t=>{const n=this._styleSummary[t],r=e._styleSummary[t];(!n||r.time>n.time)&&this._updateStyle(t,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,n=1===this._keyframes.size&&0===this.duration;let o=[];this._keyframes.forEach((i,a)=>{const s=F(i,!0);Object.keys(s).forEach(n=>{const o=s[n];o==r["ɵPRE_STYLE"]?e.add(n):o==r.AUTO_STYLE&&t.add(n)}),n||(s.offset=a/this.duration),o.push(s)});const i=e.size?W(e.values()):[],a=t.size?W(t.values()):[];if(n){const e=o[0],t=D(e);e.offset=0,t.offset=1,o=[e,t]}return me(this.element,o,i,a,this.duration,this.startTime,this.easing,!1)}}class _e extends we{constructor(e,t,n,r,o,i,a=!1){super(e,t,i.delay),this.element=t,this.keyframes=n,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:i.duration,delay:i.delay,easing:i.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:n,easing:r}=this.timings;if(this._stretchStartingKeyframe&&t){const o=[],i=n+t,a=t/i,s=F(e[0],!1);s.offset=0,o.push(s);const c=F(e[0],!1);c.offset=Ie(a),o.push(c);const u=e.length-1;for(let r=1;r<=u;r++){let a=F(e[r],!1);const s=t+a.offset*n;a.offset=Ie(s/i),o.push(a)}n=i,t=0,r="",e=o}return me(this.element,e,this.preStyleProps,this.postStyleProps,n,t,r,!0)}}function Ie(e,t=3){const n=Math.pow(10,t-1);return Math.round(e*n)/n}class Pe{}class Re extends Pe{normalizePropertyName(e,t){return $(e)}normalizeStyleValue(e,t,n,r){let o="";const i=n.toString().trim();if(Oe[t]&&0!==n&&"0"!==n)if("number"==typeof n)o="px";else{const t=n.match(/^[+-]?[\d\.]+([a-z]*)$/);t&&0==t[1].length&&r.push(`Please provide a CSS unit value for ${e}:${n}`)}return i+o}}const Oe=function(e){const t={};return e.forEach(e=>t[e]=!0),t}("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 Ae(e,t,n,r,o,i,a,s,c,u,l,d,p){return{type:0,element:e,triggerName:t,isRemovalTransition:o,fromState:n,fromStyles:i,toState:r,toStyles:a,timelines:s,queriedElements:c,preStyleProps:u,postStyleProps:l,totalTime:d,errors:p}}const ke={};class Me{constructor(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}match(e,t,n,r){return function(e,t,n,r,o){return e.some(e=>e(t,n,r,o))}(this.ast.matchers,e,t,n,r)}buildStyles(e,t,n){const r=this._stateStyles["*"],o=this._stateStyles[e],i=r?r.buildStyles(t,n):{};return o?o.buildStyles(t,n):i}build(e,t,n,r,o,i,a,s,c,u){const l=[],p=this.ast.options&&this.ast.options.params||ke,h=a&&a.params||ke,f=this.buildStyles(n,h,l),m=s&&s.params||ke,g=this.buildStyles(r,m,l),y=new Set,v=new Map,b=new Map,S="void"===r,E={params:Object.assign(Object.assign({},p),m)},C=u?[]:Se(e,t,this.ast.animation,o,i,f,g,E,c,l);let T=0;if(C.forEach(e=>{T=Math.max(e.duration+e.delay,T)}),l.length)return Ae(t,this._triggerName,n,r,S,f,g,[],[],v,b,T,l);C.forEach(e=>{const n=e.element,r=d(v,n,{});e.preStyleProps.forEach(e=>r[e]=!0);const o=d(b,n,{});e.postStyleProps.forEach(e=>o[e]=!0),n!==t&&y.add(n)});const w=W(y.values());return Ae(t,this._triggerName,n,r,S,f,g,C,w,v,b,T)}}class Ne{constructor(e,t){this.styles=e,this.defaultParams=t}buildStyles(e,t){const n={},r=D(this.defaultParams);return Object.keys(e).forEach(t=>{const n=e[t];null!=n&&(r[t]=n)}
2),this.styles.styles.forEach(e=>{if("string"!=typeof e){const o=e;Object.keys(o).forEach(e=>{let i=o[e];i.length>1&&(i=V(i,r,t)),n[e]=i})}}),n}}class xe{constructor(e,t){this.name=e,this.ast=t,this.transitionFactories=[],this.states={},t.states.forEach(e=>{const t=e.options&&e.options.params||{};this.states[e.name]=new Ne(e.style,t)}),Le(this.states,"true","1"),Le(this.states,"false","0"),t.transitions.forEach(t=>{this.transitionFactories.push(new Me(e,t,this.states))}),this.fallbackTransition=function(e,t){return new Me(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[(e,t)=>!0],options:null,queryCount:0,depCount:0},t)}(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,n,r){return this.transitionFactories.find(o=>o.match(e,t,n,r))||null}matchStyles(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}}function Le(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}const je=new ge;class De{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(e,t){const n=[],r=ce(this._driver,t,n);if(n.length)throw new Error(`Unable to build the animation due to the following errors: ${n.join("\n")}`);this._animations[e]=r}_buildPlayer(e,t,n){const r=e.element,o=s(this._driver,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(r,o,e.duration,e.delay,e.easing,[],!0)}create(e,t,n={}){const o=[],i=this._animations[e];let s;const c=new Map;if(i?(s=Se(this._driver,t,i,R,O,{},{},n,je,o)).forEach(e=>{const t=d(c,e.element,{});e.postStyleProps.forEach(e=>t[e]=null)}):(o.push("The requested animation doesn't exist or has already been destroyed"),s=[]),o.length)throw new Error(`Unable to create the animation due to the following errors: ${o.join("\n")}`);c.forEach((e,t)=>{Object.keys(e).forEach(n=>{e[n]=this._driver.computeStyle(t,n,r.AUTO_STYLE)})});const u=a(s.map(e=>{const t=c.get(e.element);return this._buildPlayer(e,{},t)}));return this._playersById[e]=u,u.onDestroy(()=>this.destroy(e)),this.players.push(u),u}destroy(e){const t=this._getPlayer(e);t.destroy(),delete this._playersById[e];const n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}_getPlayer(e){const t=this._playersById[e];if(!t)throw new Error(`Unable to find the timeline player referenced by ${e}`);return t}listen(e,t,n,r){const o=l(t,"","","");return c(this._getPlayer(e),n,o,r),()=>{}}command(e,t,n,r){if("register"==n)return void this.register(e,r[0]);if("create"==n){const n=r[0]||{};return void this.create(e,t,n)}const o=this._getPlayer(e);switch(n){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e)}}}const Fe="ng-animate-queued",Ue=".ng-animate-queued",qe="ng-animate-disabled",Be=".ng-animate-disabled",He="ng-star-inserted",ze=".ng-star-inserted",Ke=[],Ge={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ve={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},We="__ng_removed";class Ye{constructor(e,t=""){this.namespaceId=t;const n=e&&e.hasOwnProperty("value"),r=n?e.value:e;if(this.value=function(e){return null!=e?e:null}(r),n){const t=D(e);delete t.value,this.options=t}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){const t=e.params;if(t){const e=this.options.params;Object.keys(t).forEach(n=>{null==e[n]&&(e[n]=t[n])})}}}const $e="void",Qe=new Ye($e);class Je{constructor(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"
2+e,it(t,this._hostClassName)}listen(e,t,n,r){if(!this._triggers.hasOwnProperty(t))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${t}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${t}" because the provided event is undefined!`);if(!function(e){return"start"==e||"done"==e}(n))throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${t}" is not supported!`);const o=d(this._elementListeners,e,[]),i={name:t,phase:n,callback:r};o.push(i);const a=d(this._engine.statesByElement,e,{});return a.hasOwnProperty(t)||(it(e,A),it(e,A+"-"+t),a[t]=Qe),()=>{this._engine.afterFlush(()=>{const e=o.indexOf(i);e>=0&&o.splice(e,1),this._triggers[t]||delete a[t]})}}register(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}_getTrigger(e){const t=this._triggers[e];if(!t)throw new Error(`The provided animation trigger "${e}" has not been registered!`);return t}trigger(e,t,n,r=!0){const o=this._getTrigger(t),i=new Ze(this.id,t,e);let a=this._engine.statesByElement.get(e);a||(it(e,A),it(e,A+"-"+t),this._engine.statesByElement.set(e,a={}));let s=a[t];const c=new Ye(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&s&&c.absorbOptions(s.options),a[t]=c,s||(s=Qe),!(c.value===$e)&&s.value===c.value){if(!function(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!=r.length)return!1;for(let r=0;r<n.length;r++){const o=n[r];if(!t.hasOwnProperty(o)||e[o]!==t[o])return!1}return!0}(s.params,c.params)){const t=[],n=o.matchStyles(s.value,s.params,t),r=o.matchStyles(c.value,c.params,t);t.length?this._engine.reportError(t):this._engine.afterFlush(()=>{H(e,n),B(e,r)})}return}const u=d(this._engine.playersByElement,e,[]);u.forEach(e=>{e.namespaceId==this.id&&e.triggerName==t&&e.queued&&e.destroy()});let l=o.matchTransition(s.value,c.value,e,c.params),p=!1;if(!l){if(!r)return;l=o.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:l,fromState:s,toState:c,player:i,isFallbackTransition:p}),p||(it(e,Fe),i.onStart(()=>{at(e,Fe)})),i.onDone(()=>{let t=this.players.indexOf(i);t>=0&&this.players.splice(t,1);const n=this._engine.playersByElement.get(e);if(n){let e=n.indexOf(i);e>=0&&n.splice(e,1)}}),this.players.push(i),u.push(i),i}deregister(e){delete this._triggers[e],this._engine.statesByElement.forEach((t,n)=>{delete t[e]}),this._elementListeners.forEach((t,n)=>{this._elementListeners.set(n,t.filter(t=>t.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach(e=>e.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){const n=this._engine.driver.query(e,k,!0);n.forEach(e=>{if(e[We])return;const n=this._engine.fetchNamespacesByElement(e);n.size?n.forEach(n=>n.triggerLeaveAnimation(e,t,!1,!0)):this.clearElementCache(e)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(e=>this.clearElementCache(e)))}triggerLeaveAnimation(e,t,n,r){const o=this._engine.statesByElement.get(e);if(o){const i=[];if(Object.keys(o).forEach(t=>{if(this._triggers[t]){const n=this.trigger(e,t,$e,r);n&&i.push(n)}}),i.length)return this._engine.markElementAsRemoved(this.id,e,!0,t),n&&a(i).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e);if(t){const n=new Set;t.forEach(t=>{const r=t.name;if(n.has(r))return;n.add(r);const o=this._triggers[r].fallbackTransition,i=this._engine.statesByElement.get(e)[r]||Qe,a=new Ye($e),s=new Ze(this.id,r,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:r,transition:o,fromState:i,toState:a,player:s,isFallbackTransition:!0})})}}removeNode(e,t){const n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let r=!1;if(n.totalAnimations){const t=n.players.length?n.playersByQueriedElement.get(e):[];if(t&&t.length)r=!0;else{let t=e;for(;t=t.parentNode;){if(n.statesByElement.get(t)){r=!0;break}}}}if(this.prepareLeaveAnimationListeners(e),r)n.markElementAsRemoved(this.id,e,!1,t);else{const r=e[We];r&&r!==Ge||(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,t))}}insertNode(e,t){it(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach(n=>{const r=n.player;if(r.destroyed)return;const o=n.element,i=this._elementListeners.get(o);
2i&&i.forEach(t=>{if(t.name==n.triggerName){const r=l(o,n.triggerName,n.fromState.value,n.toState.value);r._data=e,c(n.player,t.phase,r,t.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):t.push(n)}),this._queue=[],t.sort((e,t)=>{const n=e.transition.ast.depCount,r=t.transition.ast.depCount;return 0==n||0==r?n-r:this._engine.driver.containsElement(e.element,t.element)?1:-1})}destroy(e){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let t=!1;return this._elementListeners.has(e)&&(t=!0),t=!!this._queue.find(t=>t.element===e)||t}}class Xe{constructor(e,t,n){this.bodyNode=e,this.driver=t,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=((e,t)=>{})}_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}get queuedPlayers(){const e=[];return this._namespaceList.forEach(t=>{t.players.forEach(t=>{t.queued&&e.push(t)})}),e}createNamespace(e,t){const n=new Je(e,t,this);return t.parentNode?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,t){const n=this._namespaceList.length-1;if(n>=0){let r=!1;for(let o=n;o>=0;o--){const n=this._namespaceList[o];if(this.driver.containsElement(n.hostElement,t)){this._namespaceList.splice(o+1,0,e),r=!0;break}}r||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}register(e,t){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}registerTrigger(e,t,n){let r=this._namespaceLookup[e];r&&r.register(t,n)&&this.totalAnimations++}destroy(e,t){if(!e)return;const n=this._fetchNamespace(e);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[e];const t=this._namespaceList.indexOf(n);t>=0&&this._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(()=>n.destroy(t))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,n=this.statesByElement.get(e);if(n){const e=Object.keys(n);for(let r=0;r<e.length;r++){const o=n[e[r]].namespaceId;if(o){const e=this._fetchNamespace(o);e&&t.add(e)}}}return t}trigger(e,t,n,r){if(et(t)){const o=this._fetchNamespace(e);if(o)return o.trigger(t,n,r),!0}return!1}insertNode(e,t,n,r){if(!et(t))return;const o=t[We];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const e=this.collectedLeaveElements.indexOf(t);e>=0&&this.collectedLeaveElements.splice(e,1)}if(e){const r=this._fetchNamespace(e);r&&r.insertNode(t,n)}r&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),it(e,qe)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),at(e,qe))}removeNode(e,t,n,r){if(et(t)){const o=e?this._fetchNamespace(e):null;if(o?o.removeNode(t,r):this.markElementAsRemoved(e,t,!1,r),n){const n=this.namespacesByHostElement.get(t);n&&n.id!==e&&n.removeNode(t,r)}}else this._onRemovalComplete(t,r)}markElementAsRemoved(e,t,n,r){this.collectedLeaveElements.push(t),t[We]={namespaceId:e,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}}listen(e,t,n,r,o){return et(t)?this._fetchNamespace(e).listen(t,n,r,o):()=>{}}_buildInstruction(e,t,n,r,o){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,r,e.fromState.options,e.toState.options,t,o)}destroyInnerAnimations(e){let t=this.driver.query(e,k,!0);t.forEach(e=>this.destroyActiveAnimationsForElement(e)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,N,!0)).forEach(e=>this.finishActiveQueriedAnimationOnElement(e))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);
2t&&t.forEach(e=>{e.queued?e.markedForDestroy=!0:e.destroy()})}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach(e=>e.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return a(this.players).onDone(()=>e());e()})}processLeaveNode(e){const t=e[We];if(t&&t.setForRemoval){if(e[We]=Ge,t.namespaceId){this.destroyInnerAnimations(e);const n=this._fetchNamespace(t.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}this.driver.matchesElement(e,Be)&&this.markElementAsDisabled(e,!1),this.driver.query(e,Be,!0).forEach(e=>{this.markElementAsDisabled(e,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((e,t)=>this._balanceNamespaceList(e,t)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let e=0;e<this.collectedEnterElements.length;e++){it(this.collectedEnterElements[e],He)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const n=[];try{t=this._flushAnimations(n,e)}finally{for(let e=0;e<n.length;e++)n[e]()}}else for(let e=0;e<this.collectedLeaveElements.length;e++){const t=this.collectedLeaveElements[e];this.processLeaveNode(t)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(e=>e()),this._flushFns=[],this._whenQuietFns.length){const e=this._whenQuietFns;this._whenQuietFns=[],t.length?a(t).onDone(()=>{e.forEach(e=>e())}):e.forEach(e=>e())}}reportError(e){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${e.join("\n")}`)}_flushAnimations(e,t){const n=new ge,o=[],i=new Map,s=[],c=new Map,u=new Map,l=new Map,p=new Set;this.disabledNodes.forEach(e=>{p.add(e);const t=this.driver.query(e,Ue,!0);for(let e=0;e<t.length;e++)p.add(t[e])});const h=this.bodyNode,f=Array.from(this.statesByElement.keys()),m=rt(f,this.collectedEnterElements),g=new Map;let y=0;m.forEach((e,t)=>{const n=R+y++;g.set(t,n),e.forEach(e=>it(e,n))});const v=[],b=new Set,S=new Set;for(let e=0;e<this.collectedLeaveElements.length;e++){const t=this.collectedLeaveElements[e],n=t[We];n&&n.setForRemoval&&(v.push(t),b.add(t),n.hasAnimation?this.driver.query(t,ze,!0).forEach(e=>b.add(e)):S.add(t))}const E=new Map,C=rt(f,Array.from(b));C.forEach((e,t)=>{const n=O+y++;E.set(t,n),e.forEach(e=>it(e,n))}),e.push(()=>{m.forEach((e,t)=>{const n=g.get(t);e.forEach(e=>at(e,n))}),C.forEach((e,t)=>{const n=E.get(t);e.forEach(e=>at(e,n))}),v.forEach(e=>{this.processLeaveNode(e)})});const T=[],w=[];for(let e=this._namespaceList.length-1;e>=0;e--){this._namespaceList[e].drainQueuedTransitions(t).forEach(e=>{const t=e.player,r=e.element;if(T.push(t),this.collectedEnterElements.length){const e=r[We];if(e&&e.setForMove)return void t.destroy()}const i=!h||!this.driver.containsElement(h,r),a=E.get(r),p=g.get(r),f=this._buildInstruction(e,n,p,a,i);if(f.errors&&f.errors.length)return void w.push(f);if(i)return t.onStart(()=>H(r,f.fromStyles)),t.onDestroy(()=>B(r,f.toStyles)),void o.push(t);if(e.isFallbackTransition)return t.onStart(()=>H(r,f.fromStyles)),t.onDestroy(()=>B(r,f.toStyles)),void o.push(t);f.timelines.forEach(e=>e.stretchStartingKeyframe=!0),n.append(r,f.timelines);const m={instruction:f,player:t,element:r};s.push(m),f.queriedElements.forEach(e=>d(c,e,[]).push(t)),f.preStyleProps.forEach((e,t)=>{const n=Object.keys(e);if(n.length){let e=u.get(t);e||u.set(t,e=new Set),n.forEach(t=>e.add(t))}}),f.postStyleProps.forEach((e,t)=>{const n=Object.keys(e);let r=l.get(t);r||l.set(t,r=new Set),n.forEach(e=>r.add(e))})})}if(w.length){const e=[];w.forEach(t=>{e.push(`@${t.triggerName} has failed due to:\n`),t.errors.forEach(t=>e.push(`- ${t}\n`))}),T.forEach(e=>e.destroy()),this.reportError(e)}const _=new Map,I=new Map;s.forEach(e=>{const t=e.element;n.has(t)&&(I.set(t,t),this._beforeAnimationBuild(e.player.namespaceId,e.instruction,_))}),o.forEach(e=>{const t=e.element;this._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(e=>{d(_,t,[]).push(e),e.destroy()})});const P=v.filter(e=>ct(e,u,l)),A=new Map;
2nt(A,this.driver,S,l,r.AUTO_STYLE).forEach(e=>{ct(e,u,l)&&P.push(e)});const k=new Map;m.forEach((e,t)=>{nt(k,this.driver,new Set(e),u,r["ɵPRE_STYLE"])}),P.forEach(e=>{const t=A.get(e),n=k.get(e);A.set(e,Object.assign(Object.assign({},t),n))});const M=[],x=[],L={};s.forEach(e=>{const{element:t,player:r,instruction:s}=e;if(n.has(t)){if(p.has(t))return r.onDestroy(()=>B(t,s.toStyles)),r.disabled=!0,r.overrideTotalTime(s.totalTime),void o.push(r);let e=L;if(I.size>1){let n=t;const r=[];for(;n=n.parentNode;){const t=I.get(n);if(t){e=t;break}r.push(n)}r.forEach(t=>I.set(t,e))}const n=this._buildAnimation(r.namespaceId,s,_,i,k,A);if(r.setRealPlayer(n),e===L)M.push(r);else{const t=this.playersByElement.get(e);t&&t.length&&(r.parentPlayer=a(t)),o.push(r)}}else H(t,s.fromStyles),r.onDestroy(()=>B(t,s.toStyles)),x.push(r),p.has(t)&&o.push(r)}),x.forEach(e=>{const t=i.get(e.element);if(t&&t.length){const n=a(t);e.setRealPlayer(n)}}),o.forEach(e=>{e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(let e=0;e<v.length;e++){const t=v[e],n=t[We];if(at(t,O),n&&n.hasAnimation)continue;let r=[];if(c.size){let e=c.get(t);e&&e.length&&r.push(...e);let n=this.driver.query(t,N,!0);for(let e=0;e<n.length;e++){let t=c.get(n[e]);t&&t.length&&r.push(...t)}}const o=r.filter(e=>!e.destroyed);o.length?st(this,t,o):this.processLeaveNode(t)}return v.length=0,M.forEach(e=>{this.players.push(e),e.onDone(()=>{e.destroy();const t=this.players.indexOf(e);this.players.splice(t,1)}),e.play()}),M}elementContainsData(e,t){let n=!1;const r=t[We];return r&&r.setForRemoval&&(n=!0),this.playersByElement.has(t)&&(n=!0),this.playersByQueriedElement.has(t)&&(n=!0),this.statesByElement.has(t)&&(n=!0),this._fetchNamespace(e).elementContainsData(t)||n}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,n,r,o){let i=[];if(t){const t=this.playersByQueriedElement.get(e);t&&(i=t)}else{const t=this.playersByElement.get(e);if(t){const e=!o||o==$e;t.forEach(t=>{t.queued||(e||t.triggerName==r)&&i.push(t)})}}return(n||r)&&(i=i.filter(e=>(!n||n==e.namespaceId)&&(!r||r==e.triggerName))),i}_beforeAnimationBuild(e,t,n){const r=t.triggerName,o=t.element,i=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:r;for(const e of t.timelines){const r=e.element,s=r!==o,c=d(n,r,[]);this._getPreviousPlayers(r,s,i,a,t.toState).forEach(e=>{const t=e.getRealPlayer();t.beforeDestroy&&t.beforeDestroy(),e.destroy(),c.push(e)})}H(o,t.fromStyles)}_buildAnimation(e,t,n,o,i,c){const u=t.triggerName,l=t.element,p=[],h=new Set,f=new Set,m=t.timelines.map(t=>{const a=t.element;h.add(a);const d=a[We];if(d&&d.removedBeforeQueried)return new r.NoopAnimationPlayer(t.duration,t.delay);const m=a!==l,g=function(e){const t=[];return function e(t,n){for(let o=0;o<t.length;o++){const i=t[o];i instanceof r["ɵAnimationGroupPlayer"]?e(i.players,n):n.push(i)}}(e,t),t}((n.get(a)||Ke).map(e=>e.getRealPlayer())).filter(e=>{const t=e;return!!t.element&&t.element===a}),y=i.get(a),v=c.get(a),b=s(this.driver,this._normalizer,0,t.keyframes,y,v),S=this._buildPlayer(t,b,g);if(t.subTimeline&&o&&f.add(a),m){const t=new Ze(e,u,a);t.setRealPlayer(S),p.push(t)}return S});p.forEach(e=>{d(this.playersByQueriedElement,e.element,[]).push(e),e.onDone(()=>(function(e,t,n){let r;if(e instanceof Map){if(r=e.get(t)){if(r.length){const e=r.indexOf(n);r.splice(e,1)}0==r.length&&e.delete(t)}}else if(r=e[t]){if(r.length){const e=r.indexOf(n);r.splice(e,1)}0==r.length&&delete e[t]}return r})(this.playersByQueriedElement,e.element,e))}),h.forEach(e=>it(e,M));const g=a(m);return g.onDestroy(()=>{h.forEach(e=>at(e,M)),B(l,t.toStyles)}),f.forEach(e=>{d(o,e,[]).push(g)}),g}_buildPlayer(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new r.NoopAnimationPlayer(e.duration,e.delay)}}class Ze{constructor(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n,this._player=new r.NoopAnimationPlayer,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEac
2h(t=>{this._queuedCallbacks[t].forEach(n=>c(e,t,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){d(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}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(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){const t=this._player;t.triggerCallback&&t.triggerCallback(e)}}function et(e){return e&&1===e.nodeType}function tt(e,t){const n=e.style.display;return e.style.display=null!=t?t:"none",n}function nt(e,t,n,r,o){const i=[];n.forEach(e=>i.push(tt(e)));const a=[];r.forEach((n,r)=>{const i={};n.forEach(e=>{const n=i[e]=t.computeStyle(r,e,o);n&&0!=n.length||(r[We]=Ve,a.push(r))}),e.set(r,i)});let s=0;return n.forEach(e=>tt(e,i[s++])),a}function rt(e,t){const n=new Map;if(e.forEach(e=>n.set(e,[])),0==t.length)return n;const r=1,o=new Set(t),i=new Map;return t.forEach(e=>{const t=function e(t){if(!t)return r;let a=i.get(t);if(a)return a;const s=t.parentNode;return a=n.has(s)?s:o.has(s)?r:e(s),i.set(t,a),a}(e);t!==r&&n.get(t).push(e)}),n}const ot="$$classes";function it(e,t){if(e.classList)e.classList.add(t);else{let n=e[ot];n||(n=e[ot]={}),n[t]=!0}}function at(e,t){if(e.classList)e.classList.remove(t);else{let n=e[ot];n&&delete n[t]}}function st(e,t,n){a(n).onDone(()=>e.processLeaveNode(t))}function ct(e,t,n){const r=n.get(e);if(!r)return!1;let o=t.get(e);return o?r.forEach(e=>o.add(e)):t.set(e,r),n.delete(e),!0}class ut{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._triggerCache={},this.onRemovalComplete=((e,t)=>{}),this._transitionEngine=new Xe(e,t,n),this._timelineEngine=new De(e,t,n),this._transitionEngine.onRemovalComplete=((e,t)=>this.onRemovalComplete(e,t))}registerTrigger(e,t,n,r,o){const i=e+"-"+r;let a=this._triggerCache[i];if(!a){const e=[],t=ce(this._driver,o,e);if(e.length)throw new Error(`The animation trigger "${r}" has failed to build due to the following errors:\n - ${e.join("\n - ")}`);a=function(e,t){return new xe(e,t)}(r,t),this._triggerCache[i]=a}this._transitionEngine.registerTrigger(t,r,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,n,r){this._transitionEngine.insertNode(e,t,n,r)}onRemove(e,t,n,r){this._transitionEngine.removeNode(e,t,r||!1,n)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,n,r){if("@"==n.charAt(0)){const[e,o]=p(n),i=r;this._timelineEngine.command(e,t,o,i)}else this._transitionEngine.trigger(e,t,n,r)}listen(e,t,n,r,o){if("@"==n.charAt(0)){const[e,r]=p(n);return this._timelineEngine.listen(e,t,r,o)}return this._transitionEngine.listen(e,t,n,r,o)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function lt(e,t){let n=null,r=null;return Array.isArray(t)&&t.length?(n=pt(t[0]),t.length>1&&(r=pt(t[t.length-1]))):t&&(n=pt(t)),n||r?new dt(e,n,r):null}class dt{constructor(e,t,n){this._element=e,this._startStyles=t,this._endStyles=n,this._state=0;let r=dt.initialStylesByElement.get(e);r||dt.initialStylesByElement.set(e,r={}),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&B(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(B(this._element,this._initialStyles),this._endStyles&&(B(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(dt.initialStylesByElement.delete(this._element),this._startStyles&&(H(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(H(this._element,this._endStyles),this._endStyles=null),B(this._element,this._initialStyles),this._state=3)}}function pt(e){let t=null;const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=n[r];
2ht(o)&&((t=t||{})[o]=e[o])}return t}function ht(e){return"display"===e||"position"===e}dt.initialStylesByElement=new WeakMap;const ft=3,mt="animation",gt="animationend",yt=1e3;class vt{constructor(e,t,n,r,o,i,a){this._element=e,this._name=t,this._duration=n,this._delay=r,this._easing=o,this._fillMode=i,this._onDoneFn=a,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=(e=>this._handleCallback(e))}apply(){!function(e,t){const n=wt(e,"").trim();let r=0;n.length&&(r=function(e,t){let n=0;for(let r=0;r<e.length;r++){const o=e.charAt(r);o===t&&n++}return n}(n,",")+1,t=`${n}, ${t}`);Tt(e,"",t)}(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),Ct(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){bt(this._element,this._name,"paused")}resume(){bt(this._element,this._name,"running")}setPosition(e){const t=St(this._element,this._name);this._position=e*this._duration,Tt(this._element,"Delay",`-${this._position}ms`,t)}getPosition(){return this._position}_handleCallback(e){const t=e._ngTestManualTimestamp||Date.now(),n=parseFloat(e.elapsedTime.toFixed(ft))*yt;e.animationName==this._name&&Math.max(t-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Ct(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(e,t){const n=wt(e,"").split(","),r=Et(n,t);if(r>=0){n.splice(r,1);const t=n.join(",");Tt(e,"",t)}}(this._element,this._name))}}function bt(e,t,n){Tt(e,"PlayState",n,St(e,t))}function St(e,t){const n=wt(e,"");if(n.indexOf(",")>0){return Et(n.split(","),t)}return Et([n],t)}function Et(e,t){for(let n=0;n<e.length;n++)if(e[n].indexOf(t)>=0)return n;return-1}function Ct(e,t,n){n?e.removeEventListener(gt,t):e.addEventListener(gt,t)}function Tt(e,t,n,r){const o=mt+t;if(null!=r){const t=e.style[o];if(t.length){const e=t.split(",");e[r]=n,n=e.join(",")}}e.style[o]=n}function wt(e,t){return e.style[mt+t]}const _t="forwards",It="linear";class Pt{constructor(e,t,n,r,o,i,a,s){this.element=e,this.keyframes=t,this.animationName=n,this._duration=r,this._delay=o,this._finalStyles=a,this._specialStyles=s,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=i||It,this.totalTime=r+o,this._buildStyler()}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(e){this._styler.setPosition(e)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){if(this._state>=1)return;this._state=1;this.element;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._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new vt(this.element,this.animationName,this._duration,this._delay,this.easing,_t,()=>this.finish())}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}beforeDestroy(){this.init();const e={};if(this.hasStarted()){const t=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(e[n]=t?this._finalStyles[n]:ee(this.element,n))})}this.currentSnapshot=e}}class Rt extends r.NoopAnimationPlayer{constructor(e,t){super(),this.element=e,this._startingStyles={},this.__initialized=!1,this._styles=T(t)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEac
2h(e=>{this._startingStyles[e]=this.element.style[e]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(e=>this.element.style.setProperty(e,this._styles[e])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(e=>{const t=this._startingStyles[e];t?this.element.style.setProperty(e,t):this.element.style.removeProperty(e)}),this._startingStyles=null,super.destroy())}}const Ot="gen_css_kf_",At=" ";class kt{constructor(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}validateStyleProperty(e){return b(e)}matchesElement(e,t){return S(e,t)}containsElement(e,t){return E(e,t)}query(e,t,n){return C(e,t,n)}computeStyle(e,t,n){return window.getComputedStyle(e)[t]}buildKeyframeElement(e,t,n){let r=`@keyframes ${t} {\n`,o="";(n=n.map(e=>T(e))).forEach(e=>{o=At;const t=parseFloat(e.offset);r+=`${o}${100*t}% {\n`,o+=At,Object.keys(e).forEach(t=>{const n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(r+=`${o}animation-timing-function: ${n};\n`));default:return void(r+=`${o}${t}: ${n};\n`)}}),r+=`${o}}\n`}),r+="}\n";const i=document.createElement("style");return i.textContent=r,i}animate(e,t,n,r,o,i=[],a){a&&this._notifyFaultyScrubber();const s=i.filter(e=>e instanceof Pt),c={};J(n,r)&&s.forEach(e=>{let t=e.currentSnapshot;Object.keys(t).forEach(e=>c[e]=t[e])});const u=function(e){let t={};if(e){const n=Array.isArray(e)?e:[e];n.forEach(e=>{Object.keys(e).forEach(n=>{"offset"!=n&&"easing"!=n&&(t[n]=e[n])})})}return t}(t=X(e,t,c));if(0==n)return new Rt(e,u);const l=`${Ot}${this._count++}`,d=this.buildKeyframeElement(e,l,t);document.querySelector("head").appendChild(d);const p=lt(e,t),h=new Pt(e,t,l,n,r,o,u,p);return h.onDestroy(()=>(function(e){e.parentNode.removeChild(e)})(d)),h}_notifyFaultyScrubber(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n","  visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)}}class Mt{constructor(e,t,n,r){this.element=e,this.keyframes=t,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(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(e,t,n){return e.animate(t,n)}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),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(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(t=>{"offset"!=t&&(e[t]=this._finished?this._finalKeyframe[t]:ee(this.element,t))}),this.currentSnapshot=e}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;
2t.forEach(e=>e()),t.length=0}}class Nt{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Lt().toString()),this._cssKeyframesDriver=new kt}validateStyleProperty(e){return b(e)}matchesElement(e,t){return S(e,t)}containsElement(e,t){return E(e,t)}query(e,t,n){return C(e,t,n)}computeStyle(e,t,n){return window.getComputedStyle(e)[t]}overrideWebAnimationsSupport(e){this._isNativeImpl=e}animate(e,t,n,r,o,i=[],a){if(!a&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,r,o,i);const s={duration:n,delay:r,fill:0==r?"both":"forwards"};o&&(s.easing=o);const c={},u=i.filter(e=>e instanceof Mt);J(n,r)&&u.forEach(e=>{let t=e.currentSnapshot;Object.keys(t).forEach(e=>c[e]=t[e])});const l=lt(e,t=X(e,t=t.map(e=>F(e,!1)),c));return new Mt(e,t,s,l)}}function xt(){return"function"==typeof Lt()}function Lt(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}}).call(t,n(214))},function(e,t,n){"use strict";n.d(t,"a",function(){return d});var r=n(0),o=n(23),i=n(647),a=n(285),s=n(287),c=n(117),u=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},l=(window!==window.parent&&window.opener,[{path:":division/:transaction/:location/:type/:size",component:s.a},{path:":division/:transaction/:address/:reference",loadChildren:function(){return n.e(0).then(n.bind(null,881)).then(function(e){return e.PropertyDetailsModule})}},{path:"login-redirect",component:c.h},{path:"**",component:a.a}]),d=function(){function e(){}return e=u([Object(r.NgModule)({imports:[o.h.forRoot(l,{scrollPositionRestoration:"top",anchorScrolling:"disabled"})],providers:[{provide:o.i,useClass:i.a}],exports:[o.h]})],e)}()},function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r=n(0),o=n(23),i=n(27),a=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){function e(e){this.$logService=e,this.delegate=new o.b}var t;return e.prototype.parse=function(e){var t=e.replace(/\(/g,"XOpBrktX").replace(/\)/g,"XClBrktX"),n=this.delegate.parse(t);return this.unEscape(n.root),n},e.prototype.serialize=function(e){return this.delegate.serialize(e)},e.prototype.unEscape=function(e){for(var t=0,n=e.segments;t<n.length;t++){var r=n[t],o=r.path.replace(new RegExp("XOpBrktX","g"),"(").replace(new RegExp("XClBrktX","g"),")");o!==r.path&&(r.path=o)}for(var i=0,a=Object.keys(e.children);i<a.length;i++){var s=a[i];this.unEscape(e.children[s])}},e=a([Object(r.Injectable)(),s("design:paramtypes",["function"==typeof(t=void 0!==i.a&&i.a)?t:Object])],e)}()},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r,o;n.d(t,"b",function(){return r}),n.d(t,"a",function(){return o}),function(e){e[e.None=0]="None",e[e.ResidentialUk=1]="ResidentialUk",e[e.ResidentialScotland=2]="ResidentialScotland",e[e.CommercialUk=3]="CommercialUk",e[e.CommercialScotland=4]="CommercialScotland"}(r||(r={})),function(e){e[e.Default=0]="Default",e[e.FirstBuyer=1]="FirstBuyer",e[e.SecondHome=2]="SecondHome",e[e.Empty=3]="Empty",e[e.Overseas=6]="Overseas",e[e.OverseasFirstBuyer=7]="OverseasFirstBuyer",e[e.OverseasSecondHome=8]="OverseasSecondHome"}(o||(o={}))},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r;n.d(t,"a",function(){return r}),function(e){!function(e){e[e.Processing=0]="Processing",e[e.ReadySuccess=1]="ReadySuccess",e[e.ReadyErrors=2]="ReadyErrors",e[e.NotExists=3]="NotExists"}(e.PreviewStatusEnum||(e.PreviewStatusEnum={}))}(r||(r={}))},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r;n.d(t,"a",function(){return r}),function(e){!function(e){e[e.None="None"]="None",e[e.Distance="Distance"]="Distance",e[e.PropertyTypes="PropertyTypes"]="PropertyTypes"}(e.RelaxedEnum||(e.RelaxedEnum={}))}(r||(r={}))},function(e,t,n){"use strict";var r;n.d(t,"a",function(){return r}),function(e){e.priceRangeSales=[{min:0,max:24,value:25e4},{min:25,max:34,value:5e5},{min:35,max:44,value:75e4},{min:45,max:54,value:1e6}
2,{min:55,max:55,value:0}],e.priceRangeResidentialLettings=[{min:0,max:9,value:100},{min:10,max:10,value:100},{min:11,max:14,value:250},{min:15,max:20,value:500},{min:21,max:25,value:1e3},{min:26,max:31,value:2500},{min:32,max:36,value:5e3},{min:37,max:41,value:1e4}],e.priceRangeCommercialLettings=[{min:0,max:14,value:100},{min:15,max:24,value:250},{min:25,max:34,value:500},{min:35,max:44,value:1e3},{min:45,max:45,value:0}]}(r||(r={}))},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r;n.d(t,"a",function(){return r}),function(e){e.floorAreaRange=[{min:0,max:7,value:250},{min:8,max:14,value:500},{min:15,max:22,value:1e3},{min:26,max:26,value:0}]}(r||(r={}))},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r;n.d(t,"a",function(){return r}),function(e){e.landAreaRange=[{min:0,max:4,value:6.25},{min:5,max:9,value:12.5},{min:10,max:14,value:25},{min:17,max:17,value:0}]}(r||(r={}))},function(e,t,n){"use strict";var r;n.d(t,"a",function(){return r}),function(e){!function(e){e[e.Full="Full"]="Full",e[e.FiltersOnly="FiltersOnly"]="FiltersOnly",e[e.DetailsOnly="DetailsOnly"]="DetailsOnly"}(e.ResultTypeEnum||(e.ResultTypeEnum={})),function(e){e[e.Residential="Residential"]="Residential",e[e.Commercial="Commercial"]="Commercial"}(e.DivisionEnum||(e.DivisionEnum={})),function(e){e[e.Sales="Sales"]="Sales",e[e.Lettings="Lettings"]="Lettings"}(e.TypeEnum||(e.TypeEnum={})),function(e){e[e.Sqft="Sqft"]="Sqft",e[e.Sqm="Sqm"]="Sqm"}(e.FloorAreaMeasurementUnitEnum||(e.FloorAreaMeasurementUnitEnum={}))}(r||(r={}))},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(){function e(){}return Object.defineProperty(e.prototype,"northEastLat",{get:function(){return this.neLat},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"northEastLon",{get:function(){return this.neLon},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"southWestLat",{get:function(){return this.swLat},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"southWestLon",{get:function(){return this.swLon},enumerable:!1,configurable:!0}),e.prototype.toUrl=function(){return this.neLat.toPrecision(6)+","+this.neLon.toPrecision(6)+","+this.swLat.toPrecision(6)+","+this.swLon.toPrecision(6)},e.fromUrl=function(t){var n=new e,r=t.split(",");return 4===r.length&&(n.neLat=parseFloat(r[0]),n.neLon=parseFloat(r[1]),n.swLat=parseFloat(r[2]),n.swLon=parseFloat(r[3])),n},e.fromGoogle=function(t){var n=new e;return n.neLat=t.getNorthEast().lat(),n.neLon=t.getNorthEast().lng(),n.swLat=t.getSouthWest
2().lat(),n.swLon=t.getSouthWest().lng(),n},e.prototype.clone=function(){var t=new e;return t.neLat=this.neLat,t.neLon=this.neLon,t.swLat=this.swLat,t.swLon=this.swLon,t},e.prototype.equals=function(e){return!!e&&(this.neLat===e.neLat&&this.neLon===e.neLon&&this.swLat===e.swLat&&this.swLon===e.swLon)},e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(38),o=n(52),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=function(){function e(){var e=this;this.snapshot={},this.state={},this.excludedKeysFromChanges=["heading","total","offset","viewMode","officeId","order","acreageUnit","floorUnit","furnished","showFilters","showMobileOptions","selectedMapPropertyId","title"],this.ssChangesKeys=["priceMax","priceMin","selectedDistance"],this.observable=r.d.create(function(t){e.observer=t}).pipe(Object(o.n)())}return e.prototype.copyStateToSnapshot=function(){for(var e in this.snapshot={},this.state)this.hasMethod(this.state[e],"clone")?this.snapshot[e]=this.state[e].clone():this.snapshot[e]=this.state[e];this.observer&&this.observer.next(null)},e.prototype.copySnapshotToState=function(){for(var e in this.state)this.state[e]=this.snapshot[e]},e.prototype.hasChangesByKey=function(e){if(!this.snapshot.hasOwnProperty(e))return!0;if(this.hasMethod(this.state[e],"equals")){if(!this.state[e].equals(this.snapshot[e]))return!0}else if(this.snapshot[e]!==this.state[e])return!0;return!1},e.prototype.hasChanges=function(){var e=function(e){if(t.excludedKeysFromChanges.filter(function(t){return t===e}).length<=0&&t.hasChangesByKey(e))return{value:!0}},t=this;for(var n in this.state){var r=e(n);if("object"==typeof r)return r.value}return!1},e.prototype.onChange=function(e){var t=this;this.observable=this.observable.pipe(Object(o.d)(function(){return Object(r.l)(50)})),this.observable.subscribe(function(n){e(t.hasChanges())})},e.prototype.hasChangesByKeys=function(){var e=function(e){if(t.ssChangesKeys.filter(function(t){return t===e}).length>0&&t.hasChangesByKey(e))return{value:!0}},t=this;for(var n in this.state){var r=e(n);if("object"==typeof r)return r.value}return!1},e.prototype.setValue=function(e,t){var n=this;this.state[e]=t,this.hasMethod(this.state[e],"onChange")&&this.state[e].onChange(function(){n.observer&&n.observer.next(null)}),this.observer&&this.observer.next(null)},e.prototype.getValue=function(e,t){return this.state.hasOwnProperty(e)?this.state[e]:t},e.prototype.hasMethod=function(e,t){return!!(e&&"object"==typeof e&&t in e)},e.prototype.getCloneOfState=function(){return i({},this.state)},e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=function(){function e(){this.default="",this.values={},this.changeCallback=null}return e.prototype.setDefault=function(e){this.default=e},e.prototype.getValues=function(){return this.toString().split(",")},e.prototype.add=function(e){e!==this.default&&(this.values[e]=1),this.changeCallback&&this.changeCallback()},e.prototype.remove=function(e){this.contains(e)&&(delete this.values[e],this.changeCallback&&this.changeCallback())},e.prototype.contains=function(e){return this.values.hasOwnProperty(e)},e.prototype.clear=function(){this.values={},this.changeCallback&&this.changeCallback()},e.prototype.isEmpty=function(){for(var e in this.values)return!1;return!0},e.prototype.clone=function(){var t=new e;return t.default=this.default,t.values=r({},this.values),t},e.prototype.fromString=function(e){if(this.clear(),e)for(var t=0,n=e.split(",");t<n.length;t++){var r=n[t];this.add(r)}this.changeCallback&&this.changeCallback()},e.prototype.toString=function(){var e="";for(var t in this.values)e.length>0&&(e+=","),e+=t;return 0===e.length?this.default:e},e.prototype.equals=function(e){for(var t in this.values)if(!e.values.hasOwnProperty(t))return!1;for(var t in e.values)if(!this.values.hasOwnProperty(t))return!1;return!0},e.prototype.onChange=function(e){this.changeCallback=e},e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(8),o=n(24),i=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),a=function(e){function t(){var t=e.call(this)||this;return t.type=new r.SelectedOptions,t.selectedAccessibility=new r.SelectedOptions,t.selectedFeature=new r.SelectedOptions,t.selectedMoreOptions=new r.SelectedOptions,t}return i(t,e),t.prototype.needsFullData=function(){return this.hasChanges()},Object.defineProperty(t.prototype,"heading",{get:function(){return this.getValue("heading","Search results")},set:function(e){this.setValue("heading",e)}
2,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.getValue("title","No results")},set:function(e){this.setValue("title",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"total",{get:function(){return this.getValue("total",0)},set:function(e){this.setValue("total",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"slug",{get:function(){return this.getValue("slug","")},set:function(e){this.setValue("slug",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"division",{get:function(){return this.getValue("division",r.DivisionEnum.Residential)},set:function(e){this.setValue("division",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"transaction",{get:function(){return this.getValue("transaction",r.TransactionEnum.Sales)},set:function(e){this.setValue("transaction",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return this.getValue("type",new r.SelectedOptions)},set:function(e){this.setValue("type",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"beds",{get:function(){return this.getValue("beds","0")},set:function(e){this.setValue("beds",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bedMin",{get:function(){return this.getValue("bedMin","0")},set:function(e){this.setValue("bedMin",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bedMax",{get:function(){return this.getValue("bedMax","0")},set:function(e){this.setValue("bedMax",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lettingType",{get:function(){return this.getValue("lettingType",null)},set:function(e){this.setValue("lettingType",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minBaths",{get:function(){return this.getValue("minBaths","0")},set:function(e){this.setValue("minBaths",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"offset",{get:function(){return this.getValue("offset",0)},set:function(e){this.setValue("offset",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"viewMode",{get:function(){return this.getValue("viewMode",r.DisplayTypeEnum.Grid)},set:function(e){this.setValue("viewMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"view",{get:function(){return this.viewMode===r.DisplayTypeEnum.Skyscraper?this.viewMode:void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"priceMin",{get:function(){return this.getValue("priceMin","0")},set:function(e){this.setValue("priceMin",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"priceMax",{get:function(){return this.getValue("priceMax","0")},set:function(e){this.setValue("priceMax",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currency",{get:function(){return this.getValue("currency","GBP")},set:function(e){this.setValue("currency",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currencySymbol",{get:function(){return Object(o.getCurrencySymbol)(this.currency,"narrow")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedAccessibility",{get:function(){return this.getValue("selectedAccessibility",new r.SelectedOptions)},set:function(e){this.setValue("selectedAccessibility",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedFeature",{get:function(){return this.getValue("selectedFeature",new r.SelectedOptions)},set:function(e){this.setValue("selectedFeature",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedDistance",{get:function(){return this.getValue("selectedDistance","0")},set:function(e){this.setValue("selectedDistance",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"officeId",{get:function(){return this.getValue("officeId",null)},set:function(e){this.setValue("officeId",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"availability",{get:function(){return this.getValue("availability",r.AvailabilityUrlEnum.Available)},set:function(e){this.setValue("availability",e)}
2,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"order",{get:function(){return this.getValue("order","desprice")},set:function(e){this.setValue("order",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"acreageUnit",{get:function(){return this.getValue("acreageUnit","ac")},set:function(e){this.setValue("acreageUnit",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"acreageMin",{get:function(){return this.getValue("acreageMin",null)},set:function(e){this.setValue("acreageMin",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"acreageMax",{get:function(){return this.getValue("acreageMax",null)},set:function(e){this.setValue("acreageMax",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"floorUnit",{get:function(){return this.getValue("floorUnit",null)},set:function(e){this.setValue("floorUnit",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"floorMin",{get:function(){return this.getValue("floorMin",null)},set:function(e){this.setValue("floorMin",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"floorMax",{get:function(){return this.getValue("floorMax",null)},set:function(e){this.setValue("floorMax",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"furnished",{get:function(){return this.getValue("furnished",null)},set:function(e){this.setValue("furnished",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedMoreOptions",{get:function(){return this.getValue("selectedMoreOptions",new r.SelectedOptions)},set:function(e){this.setValue("selectedMoreOptions",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mapBounds",{get:function(){return this.getValue("mapBounds",null)},set:function(e){this.setValue("mapBounds",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedMapPropertyId",{get:function(){return this.getValue("selectedMapPropertyId",null)},set:function(e){this.setValue("selectedMapPropertyId",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isResidential",{get:function(){return this.division===r.DivisionEnum.Residential},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCommercial",{get:function(){return this.division===r.DivisionEnum.Commercial},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLettings",{get:function(){return this.transaction===r.TransactionEnum.Lettings},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSales",{get:function(){return this.transaction===r.TransactionEnum.Sales},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showFilters",{get:function(){return this.getValue("showFilters",!1)},set:function(e){this.setValue("showFilters",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showMobileOptions",{get:function(){return this.getValue("showMobileOptions",!1)},set:function(e){this.setValue("showMobileOptions",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showFiltersLabel",{get:function(){return this.showFilters?"Hide Filters":"Show Filters"},enumerable:!1,configurable:!0}),t}(r.StateObject)},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r;n.d(t,"a",function(){return r}),function(e){e[e.Original=0]="Original",e[e.Brochure=1]="Brochure",e[e.FloorPlan=2]="FloorPlan",e[e.EPCGraph=3]="EPCGraph",e[e.FeaturedImage=4]="FeaturedImage",e[e.EPCDocument=5]="EPCDocument",e[e.FloorPlanImage=7]="FloorPlanImage",e[e.Thumbnail=11]="Thumbnail",e[e.FullScreenImage=13]="FullScreenImage",e[e.CarouselImage=21]="CarouselImage",e[e.MainImage=60]="MainImage",e[e.ResultsImageLarge=70]="ResultsImageLarge",e[e.ResultsImageMedium=71]="ResultsImageMedium",e[e.ResultsImageSmall=72]="ResultsImageSmall",e[e.DetailsImageLarge=73]="DetailsImageLarge",e[e.DetailsImageMedium=74]="DetailsImageMedium",e[e.DetailsImageSmall=75]="DetailsImageSmall"}(r||(r={}))},function(e,t,n){"use strict";var r;n.d(t,"a",function(){return r}
2),function(e){e[e.InitialLoadComplete=0]="InitialLoadComplete",e[e.ContactPopupOpen=1]="ContactPopupOpen",e[e.SendAFriendPopupOpen=2]="SendAFriendPopupOpen",e[e.StampDutyPopupOpen=3]="StampDutyPopupOpen",e[e.ViewingPopupOpen=4]="ViewingPopupOpen",e[e.DocumentClicked=5]="DocumentClicked",e[e.ReadjustLocationInput=6]="ReadjustLocationInput",e[e.RedrawHistograms=7]="RedrawHistograms",e[e.GridItemLoadComplete=8]="GridItemLoadComplete",e[e.ReLayoutMasonry=9]="ReLayoutMasonry",e[e.BtlyCalculatorPopupOpen=10]="BtlyCalculatorPopupOpen"}(r||(r={}))},function(e,t,n){"use strict";var r;n.d(t,"a",function(){return r}),function(e){e[e.VirtualTour=6]="VirtualTour",e[e.SwimmingPool=371]="SwimmingPool",e[e.Tennis=372]="Tennis",e[e.Investment=1354]="Investment",e[e.PetFriendly=1643]="PetFriendly",e[e.MaidsRoom=1337]="MaidsRoom",e[e.NewHome=16915]="NewHome",e[e.AirCon=1320]="AirCon",e[e.PassengerLift=1474]="PassengerLift",e[e.RaisedAccessFlooring=1482]="RaisedAccessFlooring",e[e.Shower=1491]="Shower",e[e.Access24=1409]="Access24",e[e.Secure24=9]="Secure24",e[e.CarParking=1422]="CarParking",e[e.Garage=263]="Garage",e[e.PrivateParkingGarage=1687]="PrivateParkingGarage",e[e.Kitchen=277]="Kitchen",e[e.BerRating=1672]="BerRating",e[e.CCTV=16626]="CCTV",e[e.LoadingFacilities=1466]="LoadingFacilities",e[e.RollerShutterDoors=1487]="RollerShutterDoors",e[e.SkyScraper=16657]="SkyScraper",e[e.Spa=362]="Spa",e[e.SpaFacilities=1457]="SpaFacilities",e[e.Sauna=1764]="Sauna",e[e.DrySpa=16816]="DrySpa",e[e.WetSpa=16831]="WetSpa",e[e.Golf=267]="Golf",e[e.ConferenceCentre=234]="ConferenceCentre",e[e.ConferenceRoom=16685]="ConferenceRoom",e[e.PricesFrom=119]="PricesFrom"}(r||(r={}))},function(e,t,n){"use strict";var r;n.d(t,"a",function(){return r}),function(e){e.AvailableOrSold="available-or-sold",e.Available="available",e.Sold="sold"}(r||(r={}))},function(e,t,n){"use strict";var r;n.d(t,"a",function(){return r}),function(e){e.Any="any",e.Available="available",e.Sold="sold"}(r||(r={}))},function(e,t,n){"use strict";var r;n.d(t,"a",function(){return r}),function(e){e.Grid="grid",e.List="list",e.Skyscraper="skyscraper"}(r||(r={}))},function(e,t,n){"use strict";var r;n.d(t,"a",function(){return r}),function(e){e[e.Sales="Sales"]="Sales",e[e.Lettings="Lettings"]="Lettings"}(r||(r={}))},function(e,t,n){"use strict";var r;n.d(t,"a",function(){return r}),function(e){e[e.CarouselOriginal=0]="CarouselOriginal",e[e.CarouselSmall=1]="CarouselSmall",e[e.CarouselMedium=2]="CarouselMedium",e[e.CarouselLarge=3]="CarouselLarge",e[e.GalleryInteriorOriginal=4]="GalleryInteriorOriginal",e[e.GalleryInteriorSmall=5]="GalleryInteriorSmall",e[e.GalleryInteriorMedium=6]="GalleryInteriorMedium",e[e.GalleryInteriorLarge=7]="GalleryInteriorLarge",e[e.GalleryExteriorOriginal=8]="GalleryExteriorOriginal",e[e.GalleryExteriorSmall=9]="GalleryExteriorSmall",e[e.GalleryExteriorMedium=10]="GalleryExteriorMedium",e[e.GalleryExteriorLarge=11]="GalleryExteriorLarge",e[e.GalleryViewsOriginal=12]="GalleryViewsOriginal",e[e.GalleryViewsSmall=13]="GalleryViewsSmall",e[e.GalleryViewsMedium=14]="GalleryViewsMedium",e[e.GalleryViewsLarge=15]="GalleryViewsLarge",e[e.GalleryVideo=16]="GalleryVideo",e[e.GalleryVideoOriginal=17]="GalleryVideoOriginal",e[e.GalleryVideoSmall=18]="GalleryVideoSmall",e[e.GalleryVideoMedium=19]="GalleryVideoMedium",e[e.GalleryVideoLarge=20]="GalleryVideoLarge",e[e.PhaseOriginal=21]="PhaseOriginal",e[e.PhaseSmall=22]="PhaseSmall",e[e.PhaseMedium=23]="PhaseMedium",e[e.PhaseLarge=24]="PhaseLarge",e[e.PhaseFloorPlanOriginal=25]="PhaseFloorPlanOriginal",e[e.PhaseFloorPlanDocument=26]="PhaseFloorPlanDocument",e[e.DevelopmentDocument=27]="DevelopmentDocument",e[e.DevelopmentDocumentThumbnailOriginal=28]="DevelopmentDocumentThumbnailOriginal",e[e.PhaseDocument=29]="PhaseDocument",e[e.PhaseDocumentThumbnail=30]="PhaseDocumentThumbnail",e[e.SitePlanOriginal=31]="SitePlanOriginal",e[e.GalleryAmenitiesOriginal=32]="GalleryAmenitiesOriginal",e[e.GalleryAmenitiesSmall=33]="GalleryAmenitiesSmall",e[e.GalleryAmenitiesMedium=34]="GalleryAmenitiesMedium",e[e.GalleryAmenitiesLarge=35]="GalleryAmenitiesLarge"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=[{key:"none",value:"Select"},{key:"Mr",value:"Mr"},{key:"Mrs",value:"Mrs"},{key:"Miss",value:"Miss"}]},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){e.exports='<div class="oops">\r\n    <div class="overlay">\r\n        <div>\r\n            <h1>Oops! We can&rsquo;t find that page.</h1>\r\n            <div class="error-wrapper">\r\n                <p>Error code: 404</p>\r\n                <p>The page you were looking for may have been moved, updated or deleted.</p>\r\n            </div>\r\n        </div>\r\n        <a href="/" role="button">Back to Homepage</a>\r\n    </div>\r\n    <img src="/properties-resources/images/404.svg" width="1280" height="466" alt="City scape">\r\n</div>'},function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n(53),o=n(0),i=n(88),a=n(11),s=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},u=function(){function e(e,t,n){this.httpClient=e,this.config=t,this.httpDefaultOptions=n,this.basePath=t.apiBase(),this.defaultHeaders=n.defaultHeaders()}var t,n,u;return e.prototype.getCurrencies=function(){var e=this.basePath+"/currencies",t=this.httpDefaultOptions.defaultSearchParams(),n={headers:this.defaultHeaders,params:t};return this.httpClient.get(e,n)},e=s([Object(o.Injectable)(),c("design:paramtypes",["function"==typeof(t=void 0!==r.b&&r.b)?t:Object,"function"==typeof(n=void 0!==a.a&&a.a)?n:Object,"function"==typeof(u=void 0!==i.a&&i.a)?u:Object])],e)}()},function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n(53),o=n(0),i=n(88),a=n(11),s=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},u=function(){function e(e,t,n){this.httpClient=e,this.config=t,this.httpDefaultOptions=n,this.defaultHeaders=n.defaultHeaders(),this.basePath=t.apiBase()}var t,n,u;return e.prototype.locationGetAutocomplete=function(e,t,n,r){var o=this.basePath+"/locations/autocomplete",i=this.httpDefaultOptions.defaultSearchParams(),a=this.defaultHeaders;if(null===e||void 0===e)throw new Error("Required parameter term was null or undefined when calling locationGetAutocomplete.");if(null===t||void 0===t)throw new Error("Required parameter isoCode was null or undefined when calling locationGetAutocomplete.");void 0!==e&&(i=i.set("term",String(e))),void 0!==t&&(i=i.set("isoCode",String(t))),void 0!==n&&(i=i.set("limit",String(n))),void 0!==r&&(i=i.set("offset",String(r)));var s={headers:a,params:i};return this.httpClient.get(o,s).pipe()},e.prototype.locationGetLocation=function(e){var t=this.basePath+"/locations/"+String(e),n=this.httpDefaultOptions.defaultSearchParams(),r=this.defaultHeaders;if(null===e||void 0===e)throw new Error("Required parameter slug was null or undefined when calling locationGetLocation.");var o={headers:r,params:n};return this.httpClient.get(t,o)},e.prototype.locationGetLocationByIsoCode=function(e){var t=this.basePath+"/locations/country/"+String(e),n=this.httpDefaultOptions.defaultSearchParams(),r=this.defaultHeaders;if(null===e||void 0===e)throw new Error("Required parameter isoCode was null or undefined when calling locationGetLocationByIsoCode.");var o={headers:r,params:n};return this.httpClient.get(t,o)},e=s([Object(o.Injectable)(),c("design:paramtypes",["function"==typeof(t=void 0!==r.b&&r.b)?t:Object,"function"==typeof(n=void 0!==a.a&&a.a)?n:Object,"function"==typeof(u=void 0!==i.a&&i.a)?u:Object])],e)}()},function(e,t,n){"use strict";n.d(t,"a",function(){return p});var r=n(53),o=n(0),i=n(88),a=n(11),s=n(97),c=n(8),u=n(29),l=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},d=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(){function e(e,t,n,r,o){this.httpClient=e,this.configService=t,this.cookieService=n,this.httpDefaultOptions=r,this.urlHelperService=o,this.defaultHeaders=r.defaultHeaders(),this.basePath=t.apiBase()}var t,n,p,h,f;return e.prototype.propertiesGetContactDetails=function(e,t,n,r){var o=this.basePath+"/properties/"+String(e)+"/contact",i=this.httpDefaultOptions.defaultSearchParams(),a=this.defaultHeaders;if(a.set("x-kf-useraddress",r),null===e||void 0===e)throw new Error("Required parameter number was null or undefined when calling propertiesGetContactDetails.");void 0!==t&&(i=i.set("ehpx8ez3xm",String(t))),void 0!==n&&(i=i.set("r0dnnsj1ax",String(n))),i=i.set("token",(1e17*Math.random()).toString()),this.setUseraddressCookie();var s={headers:a,params:i};return this.httpClient.get(o,s)},e.prototype.propertiesGetDetails=function(e,t,n,r,o,i,a,s,c,u,l,d){var p=this.basePath+"/properties/"+String(e),h=this.httpDefaultOptions.defaultSearchParams(),f=this.defaultHeaders;if(null===e||void 0===e)throw new Error("Required parameter number was null or undefined when calling propertiesGetDetails.");var m=new URLSearchParams(location.search.replace("?",""));m.has("adclick")&&(this.setAdclickCookie(m),this.setRefererCookie(m)),void 0!==t&&(h=h.set("select",String(t))),void 0!==n&&(h=h.set("currency",String(n))),void 0!==r&&(h=h.set("availability",String(r))),void 0!==a&&(h=h.set("division",String(a))),void 0!==s&&(h=h.set("type",String(s))),void 0!==c&&(h=h.set("floorAreaMeasurementUnit",String(c))),void 0!==u&&(h=h.set("landAreaMeasurementUnit",String(u))),void 0!==o&&(h=h.set("hubPreview",String(o))),void 0!==i&&(h=h.set("soldRented",String(i))),void 0!==l&&(h=h.set("limit",String(l))),void 0!==d&&(h=h.set("offset",String(d)));var g={headers:f,params:h};return this.httpClient.get(p,g)},e.prototype.getPreviewDocument=function(e){var t=this.basePath+"/properties/"+String(e)+"/hubpreview",n=this.httpDefaultOptions.defaultSearchParams(),r=this.defaultHeaders;if(null===e||void 0===e)throw new Error("Required parameter number was null or undefined when calling getPreviewDetails.");var o={headers:r,params:n};return this.httpClient.get(t,o)},e.prototype.propertiesGetDevelopmentDetails=function(e,t,n){var r=this.basePath+"/properties/"+String(e)+"/development",o=this.httpDefaultOptions.defaultSearchParams(),i=this.defaultHeaders;if(null===e||void 0===e)throw new Error("Required parameter number was null or undefined when calling propertiesGetDevelopmentDetails.");if(null===t||void 0===t)throw new Error("Required parameter hostname was null or undefined when calling propertiesGetDevelopmentDetails.");var a=new URLSearchParams(location.search.replace("?",""));a.has("adclick")&&(this.setAdclickCookie(a),this.setRefererCookie(a)),void 0!==t&&(o=o.set("hostname",
2String(t))),void 0!==n&&(o=o.set("preview",String(n)));var s={headers:i,params:o};return this.httpClient.get(r,s)},e.prototype.propertiesGetProperties=function(e,t,n,r,o,i,a,s,c,u,l,d,p,h,f,m,g,y,v,b,S,E,C,T,w,_,I,P,R,O,A,k,M,N,x,L,j,D,F,U,q,B,H,z,K,G,V){var W=this.basePath+"/properties/search",Y=this.httpDefaultOptions.defaultSearchParams(),$=this.defaultHeaders;this.setUseraddressCookie();var Q=new URLSearchParams(location.search.replace("?",""));Q.has("adclick")&&(this.setAdclickCookie(Q),this.setRefererCookie(Q)),void 0!==e&&(Y=Y.set("freetext",String(e))),void 0!==t&&(Y=Y.set("email",String(t))),void 0!==n&&(Y=Y.set("locationIds",String(n))),void 0!==r&&(Y=Y.set("propertyNumbers",String(r))),void 0!==o&&(Y=Y.set("postcodeShortName",String(o))),void 0!==i&&(Y=Y.set("postcodeIsoCode",String(i))),void 0!==a&&(Y=Y.set("officeIds",String(a))),void 0!==s&&(Y=Y.set("slug",String(s))),void 0!==c&&(Y=Y.set("distance",String(c))),void 0!==u&&(Y=Y.set("geoBoxMinLat",String(u))),void 0!==l&&(Y=Y.set("geoBoxMinLon",String(l))),void 0!==d&&(Y=Y.set("geoBoxMaxLat",String(d))),void 0!==p&&(Y=Y.set("geoBoxMaxLon",String(p))),void 0!==h&&(Y=Y.set("accessibilityFeatures",String(h))),void 0!==f&&(Y=Y.set("features",String(f))),void 0!==m&&(Y=Y.set("propertyTypes",String(m))),void 0!==g&&(Y=Y.set("minBed",String(g))),void 0!==y&&(Y=Y.set("maxBed",String(y))),void 0!==v&&(Y=Y.set("exactMatchBed",String(v))),void 0!==b&&(Y=Y.set("filterCurrency",String(b))),void 0!==S&&(Y=Y.set("minPrice",String(S))),void 0!==E&&(Y=Y.set("maxPrice",String(E))),void 0!==C&&(Y=Y.set("minBath",String(C))),void 0!==T&&(Y=Y.set("maxBath",String(T))),void 0!==w&&(Y=Y.set("minFloor",String(w))),void 0!==_&&(Y=Y.set("maxFloor",String(_))),void 0!==I&&(Y=Y.set("minLand",String(I))),void 0!==P&&(Y=Y.set("maxLand",String(P))),void 0!==R&&(Y=Y.set("order",String(R))),void 0!==O&&(Y=Y.set("debugQueryParallel",String(O))),void 0!==A&&(Y=Y.set("resultType",String(A))),void 0!==k&&(Y=Y.set("isHotel",String(k))),void 0!==M&&(Y=Y.set("furnished",String(M))),void 0!==N&&(Y=Y.set("lettingType",String(N))),void 0!==x&&(Y=Y.set("floorDistributionMax",String(x))),void 0!==L&&(Y=Y.set("landAreaDistributionMax",String(L))),void 0!==j&&(Y=Y.set("latitude",String(j))),void 0!==D&&(Y=Y.set("longitude",String(D))),void 0!==F&&(Y=Y.set("select",String(F))),void 0!==U&&(Y=Y.set("currency",String(U))),void 0!==q&&(Y=Y.set("availability",String(q))),void 0!==B&&(Y=Y.set("division",String(B))),void 0!==H&&(Y=Y.set("type",String(H))),void 0!==z&&(Y=Y.set("floorAreaMeasurementUnit",String(z))),void 0!==K&&(Y=Y.set("landAreaMeasurementUnit",String(K))),void 0!==G&&(Y=Y.set("limit",String(G))),void 0!==V&&(Y=Y.set("offset",String(V)));var J={headers:$,params:Y};return this.httpClient.get(W,J)},e.prototype.propertiesGetSimilarProperties=function(e,t){var n,r,o,i,a=this.basePath+"/properties/search",s=this.httpDefaultOptions.defaultSearchParams(),u=this.defaultHeaders,l="uk-greater-london-greater-london"===(null===(n=e.Locations[0])||void 0===n?void 0:n.Slug),d=this.urlHelperService.getSimilarPropertiesBounds(e.Latitude,e.Longitude,l);s=l&&(null===(r=e.Locations)||void 0===r?void 0:r.length)>1?s.set("slug",null===(o=e.Locations[e.Locations.length-1])||void 0===o?void 0:o.Slug):s.set("slug",null===(i=e.Locations[0])||void 0===i?void 0:i.Slug),e.Price.PriceMin>0&&(s=(s=s.set("minPrice",String(Math.round(.8*e.Price.PriceMin)))).set("maxPrice",String(Math.round(1.2*e.Price.PriceMax)))),void 0!==t&&(s=s.set("convertToCurrency",String(t)));var p={headers:u,params:s=(s=(s=(s=(s=(s=(s=s.set("division",c.DivisionEnum[e.Division])).set("type",c.TransactionEnum[e.TransactionType])).set("limit","6")).set("geoBoxMinLat",String(d.southWestLat))).set("geoBoxMinLon",String(d.southWestLon))).set("geoBoxMaxLat",String(d.northEastLat))).set("geoBoxMaxLon",String(d.northEastLon))};return this.httpClient.get(a,p)},e.prototype.propertiesGetRelatedReports=function(e,t,n,r){var o=this.basePath+"/research/localised/"+String(e)+"/"+String(t)+"/"+String(n)+"/"+String(r),i=this.httpDefaultOptions.defaultSearchParams(),a=this.defaultHeaders;if(null===e||void 0===e)throw new Error("Required parameter language was null or undefined when calling propertiesGetRelatedReports.");if(null===t||void 0===t)throw new Error("Required parameter country was null or undefined when calling propertiesGetRelatedReports.");if(null===n||void 0===n)throw new Error("Required parameter divisionId was null or undefined when calling propertiesGetRelatedReports.");if(null===r||void 0===r)throw new Error("Required parameter officeId was null or undefined when calling propertiesGetRelatedReports.");var s={headers:a,params:i=i.set("token",(1e17*Math.random()).toString())};return this.httpClient.get(o,s)}
2,e.prototype.propertiesPostContact=function(e,t){var n=this.basePath+"/properties/"+String(e)+"/contact",r=this.httpDefaultOptions.defaultSearchParams(),o=this.defaultHeaders;if(null===e||void 0===e)throw new Error("Required parameter number was null or undefined when calling propertiesPostContact.");if(null===t||void 0===t)throw new Error("Required parameter model was null or undefined when calling propertiesPostContact.");var i={headers:o,params:r};return this.httpClient.post(n,JSON.stringify(t),i)},e.prototype.propertiesPostRegisterInterest=function(e,t,n){var r=this.basePath+"/properties/"+String(e)+"/contact/registerinterest",o=this.httpDefaultOptions.defaultSearchParams(),i=this.defaultHeaders;if(null===e||void 0===e)throw new Error("Required parameter number was null or undefined when calling propertiesPostRegisterInterest.");if(null===n||void 0===n)throw new Error("Required parameter model was null or undefined when calling propertiesPostRegisterInterest.");if(null===t||void 0===t)throw new Error("Required parameter hostname was null or undefined when calling propertiesPostRegisterInterest.");void 0!==t&&(o=o.append("hostname",String(t)));var a={headers:i,params:o};return this.httpClient.post(r,JSON.stringify(n),a)},e.prototype.propertiesPostRequestACall=function(e,t,n){var r=this.basePath+"/properties/"+String(e)+"/contact/requestacall",o=this.httpDefaultOptions.defaultSearchParams(),i=this.defaultHeaders;if(null===e||void 0===e)throw new Error("Required parameter number was null or undefined when calling propertiesPostRequestACall.");if(null===n||void 0===n)throw new Error("Required parameter model was null or undefined when calling propertiesPostRequestACall.");if(null===t||void 0===t)throw new Error("Required parameter hostname was null or undefined when calling propertiesPostRegisterInterest.");var a={headers:i,params:o};return this.httpClient.post(r,JSON.stringify(n),a)},e.prototype.propertiesPostSendAFriend=function(e,t){var n=this.basePath+"/properties/"+String(e)+"/contact/sendafriend",r=this.httpDefaultOptions.defaultSearchParams(),o=this.defaultHeaders;if(null===e||void 0===e)throw new Error("Required parameter number was null or undefined when calling propertiesPostSendAFriend.");if(null===t||void 0===t)throw new Error("Required parameter model was null or undefined when calling propertiesPostSendAFriend.");var i={headers:o,params:r};return this.httpClient.post(n,JSON.stringify(t),i)},e.prototype.propertiesPostBookViewing=function(e,t){var n=this.basePath+"/properties/"+String(e)+"/contact/bookviewing",r=this.httpDefaultOptions.defaultSearchParams(),o=this.defaultHeaders;if(null===e||void 0===e)throw new Error("Required parameter number was null or undefined when calling propertiesPostContact.");if(null===t||void 0===t)throw new Error("Required parameter model was null or undefined when calling propertiesPostContact.");var i={headers:o,params:r};return this.httpClient.post(n,JSON.stringify(t),i)},e.prototype.propertiesGetDevelopmentAutocomplete=function(e,t,n,r){void 0===t&&(t=3);var o=this.basePath+"/properties/developments/autocomplete",i=this.httpDefaultOptions.defaultSearchParams(),a=this.defaultHeaders;void 0!==e&&(i=i.set("term",e)),void 0!==t&&(i=i.set("take",String(t))),void 0!==n&&(i=i.set("isoCode",String(n))),void 0!==r&&(i=i.set("hostname",String(r)));var s={headers:a,params:i};return this.httpClient.get(o,s)},e.prototype.propertiesGetPropertiesByParentDevelopmentReference=function(e,t,n,r,o){var i=this.basePath+"/properties/byparentdevelopment",a=this.httpDefaultOptions.defaultSearchParams(),s=this.defaultHeaders;a=a.set("parentDevelopmentReference",e),void 0!==t&&(a=a.set("hostname",String(t))),n&&n.length>0&&(a=a.set("propertiesToExclude",n.join(","))),void 0!==r&&(a=a.set("limit",String(r))),void 0!==o&&(a=a.set("offset",String(o)));var c={headers:s,params:a};return this.httpClient.get(i,c)},e.prototype.propertiesGetParentDevelopmentDetails=function(e){var t=this.basePath+"/properties/"+e+"/parentdevelopment",n=this.httpDefaultOptions.defaultSearchParams(),r={headers:this.defaultHeaders,params:n};return this.httpClient.get(t,r)},e.prototype.setUseraddressCookie=function(){var e;(e=this.defaultHeaders.get("x-kf-useraddress")?this.defaultHeaders.get("x-kf-useraddress"):this.defaultHeaders.get("X-Forwarded-For"))&&this.cookieService.setCookie("useraddress",e,365)},e.prototype.setAdclickCookie=function(e){this.cookieService.setCookie("adclick",e.get("adclick"),0)},e.prototype.setRefererCookie=function(e){var t,n=RegExp("^((.*)?knightfrank.([a-zA-Z]{2}|co.[a-zA-Z]{2}|com(.[a-zA-Z]{2})?))|mountain-base.com$"),r=t=document.referrer&&!document.referrer.includes("statics.teams.cdn.office.net")?document.referrer:location.origin;if(e.has("referrer")&&t){var o=new URL(t);if(n.test(o.host)){var i=e.get("referrer"),a=decodeURIComponent(i);a.startsWith("http://")&&a.startsWith("https://")||(a="http://"+a),r=a}}if(r){var s=new URL(r);this.cookieService.setCookie("referrer",s.host,0)}else this.cookieService.setCookie("referrer","",0)},e=l([Object(o.Injectable)(),d("design:paramtypes",["function"==typeof(t=void 0!==r.b&&r.b)?t:Object,"function"==typeof(n=void 0!==a.a&&a.a)?n:Object,"function"==typeof(p=void 0!==s.a&&s.a)?p:Object,"function"==typeof(h=void 0!==i.a&&i.a)?h:Object,"function"==typeof(f=void 0!==u.a&&u.a)?f:Object])],e)}()},function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n(53),o=n(0),i=n(88),a=n(11),s=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},u=function(){function e(e,t,n){this.httpClient=e,this.configService=t,this.httpDefaultOptions=n,this.defaultHeaders=n.defaultHeaders(),this.basePath=t.apiBase()}var t,n,u;return e.prototype.toolsCalculateMortgage=function(e,t,n,r){var o=this.basePath+"/tools/mortgage",i=this.httpDefaultOptions.defaultSearchParams(),a=this.defaultHeaders;if(null===e||void 0===e)throw new Error("Required parameter price was null or undefined when calling CalculateMortgage.");if(null===t||void 0===t)throw new Error("Required parameter deposit was null or undefined when calling CalculateMortgage.");if(null===n||void 0===n)throw new Error("Required parameter interest was null or undefined when calling CalculateMortgage.");if(null===r||void 0===r)throw new Error("Required parameter term was null or undefined when calling CalculateMortgage.");void 0!==e&&(i=i.set("price",String(e))),void 0!==t&&(i=i.set("deposit",String(t))),void 0!==n&&(i=i.set("interest",String(n))),void 0!==r&&(i=i.set("term",String(r)));var s={headers:a,params:i};return this.httpClient.get(o,s)},e.prototype.toolsCalculateTaxModel=function(e,t){var n=this.basePath+"/tools/taxes",r=this.httpDefaultOptions.defaultSearchParams(),o=this.defaultHeaders;if(null===e||void 0===e)throw new Error("Required parameter price was null or undefined when calling GetTaxes.");if(null===t||void 0===t)throw new Error("Required parameter taxType was null or undefined when calling GetTaxes.");void 0!==e&&(r=r.set("price",String(e))),void 0!==t&&(r=r.set("taxType",String(t)));var i={headers:o,params:r};return this.httpClient.get(n,i)},e.prototype.toolsGetBtly=function(e){var t=this.basePath+"/tools/btly",n=this.httpDefaultOptions.defaultSearchParams(),r=this.defaultHeaders;if(null===e||void 0===e)throw new Error("Required parameter propertyPrice was null or undefined when calling GetBtly.");void 0!==e&&(n=n.set("propertyPrice",String(e)));var o={headers:r,params:n};return this.httpClient.get(t,o)},e.prototype.toolsCalculateBtly=function(e){var t=this.basePath+"/tools/btly",n=this.httpDefaultOptions.defaultSearchParams(),r=this.defaultHeaders;if(null===e||void 0===e)throw new Error("Required parameter model was null or undefined when calling CalculateBtly.");var o={headers:r,params:n};return this.httpClient.post(t,JSON.stringify(e),o)},e=s([Object(o.Injectable)(),c("design:paramtypes",["function"==typeof(t=void 0!==r.b&&r.b)?t:Object,"function"==typeof(n=void 0!==a.a&&a.a)?n:Object,"function"==typeof(u=void 0!==i.a&&i.a)?u:Object])],e)}()},function(e,t){e.exports='<div @onOff class="search-input" #autoComplete [ngClass]="{\'active\': showResults}">\r\n    <label for="property-search">
2\r\n        <span class="sr-only"> Location </span>\r\n        <input\r\n            #searchInput\r\n            id="property-search"\r\n            [placeholder]="placeholder"\r\n            [(ngModel)]="label"\r\n            type="text"\r\n            (keyup)="onSearchInput($event)"\r\n            role="combobox"\r\n            [attr.aria-expanded]="showResults"\r\n            autocomplete="off"\r\n        />\r\n    </label>\r\n    <button\r\n        type="button" \r\n        id="clear-search-input"\r\n        aria-label="Clear search"\r\n        *ngIf="label.length"\r\n        (click)="onClearButtonClick($event)"\r\n    >\r\n        <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\r\n            <rect width="24" height="24" fill="#F5F5F5" rx="12" class="circle" />\r\n            <path d="M8.22707 16.8365L7.16357 15.773L10.9366 12L7.16357 8.25198L8.22707 7.18848L12.0001 10.9615L15.7481 7.18848L16.8116 8.25198L13.0386 12L16.8116 15.773L15.7481 16.8365L12.0001 13.0635L8.22707 16.8365Z" fill="#A8A8A7" class="cross" />\r\n        </svg>\r\n    </button>\r\n    <div\r\n        #resultsList\r\n        class="search-results"\r\n        *ngIf="showResults"\r\n        aria-labelledby="property-search"\r\n    >\r\n        <div\r\n            class="search-results-section"\r\n            *ngIf="searchResults.locations && searchResults.locations.Total > 0"\r\n        >\r\n            <h4 class="search-results-title">{{ \'Location\' | translate }}</h4>\r\n            <ul #locationList role="listbox">\r\n                <li\r\n                    *ngFor="let location of searchResults.locations.Items; let i = index;"\r\n                    (click)="onResultClick(\'location\', i)"\r\n                    role="option"\r\n                >\r\n                    <button\r\n                        class="search-result"\r\n                        [attr.data-pos]="i"\r\n                        data-result-type="location"\r\n                    >\r\n                        <img\r\n                            src="/properties-resources/images/icons/results/autocomplete/location.svg"\r\n                            alt="Location pin icon"\r\n                            width="16"\r\n                            height="16"\r\n                        /><span>{{ location.Label }}</span>\r\n                    </button>\r\n                </li>\r\n            </ul>\r\n        </div>\r\n        <div\r\n            class="search-results-section"\r\n            *ngIf="searchResults.developments.length"\r\n        >\r\n            <h4 class="search-results-title">\r\n                {{ \'New Development\' | translate }}\r\n            </h4>\r\n            <ul #developmentList role="listbox">\r\n                <li\r\n                    *ngFor="let development of searchResults.developments; let i = index;"\r\n                    role="option"\r\n                >\r\n                    <a\r\n                        routerLink="/{{ resiSlug }}/{{ salesSlug }}/{{ development.Slug }}/{{ development.Number }}"\r\n                        class="development-link"\r\n                        [attr.data-pos]="searchResults.locations ? searchResults.locations.Total + i : i"\r\n                        data-result-type="development"\r\n                        ><img\r\n                            src="/properties-resources/images/icons/results/autocomplete/development.svg"\r\n                            alt="Development icon"\r\n                            width="16"\r\n                            height="16"\r\n                            aria-hidden="true"\r\n                        /><span>{{ development.Name + \', \' + (development.City ? development.City + \', \' : \'\') + development.Country }}</span>\r\n                    </a>\r\n                </li>\r\n            </ul>\r\n        </div>\r\n        <div class="search-results-section">\r\n            <h4 class="search-results-title">\r\n                {{ \'Keyword Search\' | translate }}\r\n            </h4>\r\n            <button\r\n                #freetextResult\r\n                class="search-result freetext-result"\r\n                (click)="onResultClick(\'freetext\')"\r\n                [attr.data-pos]="searchResults.locations ? searchResults.locations.Total + searchResults.developments.length : searchResults.developments.length"\r\n            >\r\n                <img\r\n                    src="/properties-resources/images/icons/results/autocomplete/freetext.svg"\r\n                    alt="Search icon"\r\n                    width="16"\r\n                    height="16"\r\n                /><span [innerHTML]="freeTextString"></span>\r\n            </button>\r\n        </div>\r\n    </div>\r\n</div>\r\n'},function(e,t){e.exports='<section class="filters">\r\n    <div class="filters-out" *ngIf="!enableSingleSearch">\r\n        <div class="dropdown col-sm-12 filter-container">\r\n            <button class="placeholder dropdown-toggle" type="button" id="dropdownMenuButton3" (click)="onToggleSubFilters($event)" (keyup)="onToggleSubFilters($event)">
2\r\n                <span>{{ "Filter properties" | translate }}</span>\r\n                <i class="fa fa-sliders" aria-hidden="true"></i>\r\n            </button>\r\n\r\n            <section class="sub-filters">\r\n                <div class="filter-content">\r\n                    <a role="button" tabindex="0" class="close-sub-filters" (click)="onToggleSubFilters($event)" (keyup)="onToggleSubFilters($event)" [attr.aria-label]="\'CTA_CLOSE\' | translate">\r\n                        <span class="pi pi-times" aria-hidden="true"></span>\r\n                    </a>\r\n                    <div class="filters-header">\r\n                        <h5>{{"Filters" | translate}}</h5>\r\n                    </div>\r\n\r\n                    <div class="top-row section hidden-sm-up">\r\n                        <div class="buy-rent">\r\n                            <transaction-type-switch-mobile [value]="pageState.transaction" (onSwitch)="mobileTransactionSwitch($event)"></transaction-type-switch-mobile>\r\n                        </div>\r\n                    </div>\r\n\r\n                    <div class="section">\r\n                        <h5 class="overline hidden-sm-up">Status</h5>\r\n                        <fieldset class="availability">\r\n                            <legend class="sr-only">\r\n                                Availability\r\n                            </legend>\r\n                            <label class="radio-button" *ngFor="let item of availabilityOptions" for="{{ item.Value }}">\r\n                                <input id="{{ item.Value }}" type="radio" name="availability" [value]="item.Value" [(ngModel)]="pageState.availability" (change)="onAvailabilityChange($event)">\r\n                                <span class="checkmark"></span>\r\n                                {{ item.Label }}\r\n                            </label>\r\n                        </fieldset>\r\n                        <div class="more-options" *ngIf="moreOptions.length > 0">\r\n                            <hr class="hidden-sm-up">\r\n                            <multi-select2 [value]="pageState.selectedMoreOptions" [options]="moreOptions" [nameId]="\'moreFilters\'" [showOptionAll]="false" (onSelect)="onSelectMoreOptions($event)" class="more-multi-select"></multi-select2>\r\n                        </div>\r\n                    </div>\r\n\r\n                    <div class="row buy-rent hidden-md-up section" *ngIf="isDistanceAllowed">\r\n                        <div class="col-xs-12">\r\n                            <div class="overline">{{ "Radius" | translate }}</div>\r\n                        </div>\r\n                        <div class="col-sm-6 distance-container">\r\n                            <search-select [enabled]="isDistanceAllowed" [value]="pageState.selectedDistance" [options]="distanceOptions" (onSelect)="onSelectDistance($event)"></search-select>\r\n                        </div>\r\n                    </div>\r\n\r\n                    <div class="price-container section">\r\n                        <div class="overline">{{ "Price" | translate }}</div>\r\n                        <div class="price-dropdown-container">\r\n                                <div class="dropdown" #minPriceFilter>\r\n                                    <span class="top-label">{{ "Minimum" | translate }}<ng-container *ngIf="pageState.isResidential && pageState.isLettings"> ({{ "Monthly" | translate }})</ng-container></span>\r\n                                    <search-select [value]="pageState.priceMin" [options]="priceMinOptions" (onSelect)="onSelectPriceMin($event)" [isPriceFilter]="true"></search-select>\r\n                                </div>\r\n                                <div class="dropdown" #maxPriceFilter>\r\n                                    <span class="top-label">{{ "Maximum" | translate }}<ng-container *ngIf="pageState.isResidential && pageState.isLettings"> ({{ "Monthly" | translate }})</ng-container></span>\r\n                                    <search-select [value]="pageState.priceMax" [options]="priceMaxOptions" (onSelect)="onSelectPriceMa
2x($event)" [isPriceFilter]="true"></search-select>\r\n                                </div>\r\n                                <div class="dropdown">\r\n                                    <span class="top-label">{{ "CURRENCY" | translate }}</span>\r\n                                    <currency-select class="currency-select multi-select" [value]="pageState.currency" (onSelect)="onSelectCurrency($event)"></currency-select>\r\n                                </div>\r\n                        </div>\r\n                    </div>\r\n\r\n                    <ng-container *ngIf="pageState.isResidential">\r\n                        <div class="section">\r\n                            <div class="overline">{{ "Bedrooms" | translate }}</div>\r\n                            <div class="bedroom-container">\r\n                                <div class="dropdown">\r\n                                    <search-select [value]="pageState.bedMin" [options]="bedMinOptions" (onSelect)="onSelectBedMin($event)"></search-select>\r\n                                </div>\r\n                                <div class="dropdown">\r\n                                    <search-select [value]="pageState.bedMax" [options]="bedMaxOptions" (onSelect)="onSelectBedMax($event)"></search-select>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                    </ng-container>\r\n\r\n                    <div class="lettings-dropdowns" [ngClass]="{ hide: !(pageState.isResidential && pageState.isLettings) }">\r\n                        <div class="dropdown section">\r\n                            <div class="overline">\r\n                                {{ "LBL_FurnishingType" | translate }}\r\n                            </div>\r\n                            <search-select [options]="furnishingOptions" (onSelect)="onSelectFurnishingType($event)"></search-select>\r\n                        </div>\r\n                        <div class="dropdown section">\r\n                            <div class="overline">{{ "LBL_LettingType" | translate }}</div>\r\n                            <search-select [value]="pageState.lettingType" [options]="lettingTypeOptions" (onSelect)="onSelectLettingType($event)"></search-select>\r\n                        </div>\r\n                    </div>\r\n\r\n                    <ng-container *ngIf="pageState.isResidential">\r\n                        <div class="section">\r\n                            <fieldset class="bathrooms radio-button-group" [class.single-search]="enableSingleSearch">\r\n                                <legend class="overline">\r\n                                    {{ "Bathrooms" | translate }}\r\n                                </legend>\r\n                                <ng-container *ngFor="let item of bathOptions; index as i">\r\n                                    <input [id]="\'minBaths\' + i" type="radio" name="bathrooms" [value]="item.Value" [(ngModel)]="pageState.minBaths" />\r\n                                    <label [for]="\'minBaths\' + i">{{ item.Label }}</label>\r\n                                </ng-container>\r\n                            </fieldset>\r\n                        </div>\r\n                    </ng-container>\r\n                    \r\n                    <div class="section" [class.single-search]="enableSingleSearch">\r\n                        <div class="overline">{{ "SIZE" | translate }}</div>\r\n                        <div class="size-container">\r\n                            <div class="dropdown floor-area-container">\r\n                                <div class="dropdown">\r\n                                    <label class="top-label">{{ "AMENITIES_LBL_FLOOR_AREA" | translate }} ({{ pageState.floorUnit | translate }})</label>\r\n                                    <search-select [value]="pageState.floorMin" [options]="floorAreaMinOptions" (onSelect)="onSelectFloorAreaMin($event)"></search-select>\r\n                                </div>\r\n                                <div class="dropdown-container hidden">\r\n                                    <label class="top-label">{{ "Maximum" | translate }}</label>\r\n                                    <search-select [value]="pageState.floorMax" [options]="floorAreaMaxOptions" (onSelect)="onSelectFloorAreaMax($event)"></search-select>\r\n                                </div>\r\n                            </div>\r\n                            <div class="dropdown land-area-container">\r\n                                <div class="land-area-dropdown-container">\r\n                                    <div class="dropdown">\r\n                                        <label class="top-label">{{ "Land Area" | translate }} ({{ pageState.acreageUnit | translate }})</label>\r\n                                        <search-select [value]="pageState.acreageMin" [options]="landAreaMinOptions" (onSelect)="onSelectLandAreaMin($event)"></search-select>\r\n                                    </div>\r\n                                    <div class="dropdown-container hidden">\r\n                                        <label class="top-label">{{ "Maximum" | translate }}</label>\r\n                                        <search-select [value]="pageState.acreageMax" [options]="landAreaMaxOptions" (onSelect)="onSelectLandAreaMax($event)"></search-select>\r\n                                    </div>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                    </div>
2\r\n\r\n                    <div class="row section">\r\n                        <div class="multi-select-containers">\r\n                            <div class="col-xs-12 property-type-multi-select-container">\r\n                                <div class="see-more-less" (click)="toggleDetails($event)" (keyup)="toggleDetails($event)">\r\n                                    <div class="overline">{{ "PROPERTY_TYPES" | translate }}</div>\r\n                                </div>\r\n                                <multi-select2 [value]="pageState.type" [options]="propertyTypeOptions" [nameId]="\'propertyType-mobile\'" (onSelect)="onSelectPropertyType($event)" class="property-multi-select"></multi-select2>\r\n                            </div>\r\n                            <div class="col-xs-12 accessibility-multi-select-container" *ngIf="pageState.isResidential">\r\n                                <div class="see-more-less" (click)="toggleDetails($event)" (keyup)="toggleDetails($event)">\r\n                                    <div class="overline">{{ "Accessibility" | translate }}</div>\r\n                                </div>\r\n                                <multi-select2 [value]="pageState.selectedAccessibility" [options]="accessibilityOptions" [nameId]="\'accessibility\'" (onSelect)="onSelectAccessibility($event)" class="accessibility-multi-select"></multi-select2>\r\n                            </div>\r\n                            <div class="col-xs-12 feature-multi-select-container">\r\n                                <div class="see-more-less" (click)="toggleDetails($event)" (keyup)="toggleDetails($event)">\r\n                                    <div class="overline">{{ "Features" | translate }}</div>\r\n                                </div>\r\n                                <multi-select2 [value]="pageState.selectedFeature" [options]="featuresOptions" [nameId]="\'features\'" (onSelect)="onSelectFeature($event)" class="feature-multi-select" [enableSearch]="true"></multi-select2>\r\n                            </div>\r\n                        </div>\r\n                        <div class="clearfix" *ngIf="pageState.isResidential && pageState.isLettings"></div>\r\n                    </div>\r\n\r\n                    <div class="hidden-md-down">\r\n                        <hr />\r\n                    </div>\r\n                </div>\r\n\r\n                <div class="search-buttons">\r\n                    <div class="update-container">\r\n                        <button class="apply-filters" *ngIf="!enableSingleSearch" type="submit" (click)="onApplyFilters()">\r\n                            {{ "Show Properties" | translate }}\r\n                        </button>\r\n                    </div>\r\n                    <div class="reset-container">\r\n                        <button type="reset" *ngIf="!enableSingleSearch" (click)="onCancel()">\r\n                            {{ "CLEAR" | translate }}\r\n                        </button>\r\n                    </div>\r\n                </div>\r\n            </section>\r\n            <div class="filter-layer" (click)="onToggleSubFilters($event)" (keyup)="onToggleSubFilters($event)"></div>\r\n        </div>\r\n    </div>\r\n</section>'},function(e,t){e.exports='<ng-container *ngIf="isLoadingPdp">\r\n    <skeleton-property-details></skeleton-property-details>\r\n</ng-container>\r\n\r\n<ng-container *ngIf="!isLoadingPdp">\r\n    <div class="container filters-container">\r\n        <div class="loading-bar" *ngIf="loading"></div>\r\n        \r\n        \x3c!-- Skeleton loader for top search controls --\x3e\r\n        <section class="search" *ngIf="loading">\r\n            <div class="search-top">\r\n                <div class="buy-rent">\r\n                    <transaction-type-switch class="skeleton-loader" aria-hidden="true"></transaction-type-switch>\r\n                </div>\r\n            </div>\r\n            <div class="filters-group">\r\n                <div class="search-box-container">\r\n                    <div class="search-box skeleton-loader">\r\n                    </div>\r\n                </div>\r\n            </div>\r\n            <section class="filters">\r\n                <div class="filters-out">\r\n                    <div class="dropdown col-sm-12 filter-container">\r\n                        <button class="placeholder dropdown-toggle skeleton-loader">
2\r\n                            <span aria-hidden="true">{{ "Filter Properties" | translate }}</span>\r\n                            <i class="fa fa-sliders" aria-hidden="true"></i>\r\n                        </button>\r\n                    </div>\r\n                </div>\r\n            </section>\r\n        </section>\r\n\r\n        \x3c!-- Top search controls once data has loaded --\x3e\r\n        <section class="search" *ngIf="!loading">\r\n            <div class="search-top">\r\n                <div class="buy-rent">\r\n                    <transaction-type-switch [value]="state.transaction" (onSwitch)="onTransactionSwitch($event)"></transaction-type-switch>\r\n                </div>\r\n            </div>\r\n            <div class="filters-group">\r\n                <div class="search-box-container">\r\n                    <div class="search-box">\r\n                        <div class="search-box-inner-container">\r\n                            <location-autocomplete\r\n                                (onKey)="state.slug = $event"\r\n                                (onSelect)="onLocationSearch($event)"\r\n                                (onPressEnter)="onUpdateButton()"\r\n                                [initialLocationName]="location?.Name"\r\n                                (onClearInput)="onClearSearch()"\r\n                            ></location-autocomplete>\r\n                            <div class="distance-container dropdown" *ngIf="isDistanceAllowed">\r\n                                <search-select\r\n                                    [enabled]="isDistanceAllowed"\r\n                                    [value]="state.selectedDistance"\r\n                                    [options]="distanceOptions"\r\n                                    (onSelect)="onSelectDistance($event)"\r\n                                ></search-select>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n            <filters-results-bar [ngClass]="{\'filtersApplied\': paramsChanged}" [propertyResult]="propertyResult" [pageState]="state" (onUpdateFilters)="onUpdateFilters($event)" (onMobileTransactionSwitch)="onTransactionSwitch($event, true)"></filters-results-bar>\r\n        </section>\r\n    \r\n        <global-loading *ngIf="loading && enableSingleSearch"></global-loading>\r\n    \r\n    </div>\r\n    \r\n    <div class="results-container">\r\n        <div id="results-top" *ngIf="!noresults">\r\n            <div class="results-top-left">\r\n                <div *ngIf="loading" class="skeleton-loader sub-header-container">\r\n                    <div class="lead skeleton-loader_results-bar"></div>\r\n                    <div class="email-alert skeleton-loader_results-bar"></div>\r\n                </div>\r\n                <header-results-bar\r\n                    *ngIf="!enableSingleSearch && !loading"\r\n                    [total]="state.total"\r\n                    [offset]="state.offset"\r\n                    [pageSize]="pageSize"\r\n                    [title]="state.heading"\r\n                    [noResultsTitle]="state.title"\r\n                    [noResults]="noresults"\r\n                    [loading]="loading"\r\n                    [relaxedResults]="relaxedResults"\r\n                    [location]="location"\r\n                ></header-results-bar>\r\n            </div>\r\n            <div class="results-top-right">\r\n                <view-options-results-bar [attr.data-hidden]="loading" [propertyResult]="propertyResult" [pageState]="state" (onUpdateFilters)="onUpdateFilters($event)"></view-options-results-bar>\r\n            </div>\r\n        </div>\r\n    \r\n        <div class="d-flex">\r\n            <div id="main">\r\n                <no-results\r\n                    [division]="state.division"\r\n                    [transaction]="state.transaction"\r\n                    [slug]="state.slug"\r\n                    [location]="location?.Name"\r\n                    [loading]="loading"\r\n                    [properties]="properties"\r\n                    *ngIf="noresults && !loading"\r\n                ></no-results>\r\n                <section class="results">\r\n                    <ng-container *ngIf="loading">\r\n                        <skeleton-card-container [numCards]="12" [gridClass]="\'grid-view-switch-container active\'"></skeleton-card-container>\r\n                    </ng-container>\r\n                    <h2 class="sr-only">Results</h2>\r\n                    <div class="grid-view-switch-container" [class.active]="state.viewMode == \'grid\'">\r\n                        <ng-container *ngIf="!loading">\r\n                            <div @cardsTransition *ngFor="let item of properties; trackBy: trackPropertyBy; let i=index;"\r\n                            ngClass="properties-item item-{{i+1}}">\r\n                                <property\r\n                                    [mode]="\'grid\'"\r\n                                    [item]="item"\r\n                                    [currency]="state.currency"\r\n                                    [isSingleSearch]="enableSingleSearch"\r\n                                    [class.selected]="state.selectedMapPropertyId == item.Id && state.viewMode == \'grid\'"\r\n                                    (mouseover)="onPropertyHover(item)"\r\n                                    (mouseleave)="onPropertyUnhover()"\r\n                                    (focus)="onPropertyHover(item)"\r\n                                    (focusout)="onPropertyUnhover()"\r\n                                    [loopIndex]="i"\r\n                                ></property>\r\n                            </div>\r\n                        </ng-container>\r\n                        <div class="properties-item off-market" *ngIf="showGetInTouchBanner">\r\n                            <h2>\r\n                                {{ "CAN\'T_FIND_WHAT_YOU_ARE_LOOKING_FOR_TITLE" | translate }}\r\n                            </h2>\r\n                            <p>\r\n                                {{ "CAN\'T_FIND_WHAT_YOU_ARE_LOOKING_FOR_DESCRIPTION" | translate }}\r\n                            </p>\r\n                            <a href="https://www.knightfrank.co.uk/residential/country"\r\n                                class="button primary"\r\n                                type="button">\r\n                                {{ "CTA_GET_IN_TOUCH" | translate }}\r\n                            </a>\r\n                            <a href="tel:+442078615027"\r\n                                class="button secondary"\r\n                                rel="noopener noreferrer"\r\n                                alt="Phone number"\r\n                                target="_self">\r\n                                <svg width="20" height="21" viewBox="0 0 20 21" fill="none" xmlns="http://www.w3.org/2000/svg" class="icon-phone">\r\n                                    <path d="M15.4711 17.0618C13.9563 16.9368 12.5001 16.537 11.1026 15.8623C9.70521 15.1875 8.44 14.2824 7.30695 13.1468C6.17403 12.0112 5.27715 10.7493 4.61632 9.36143
2C3.95549 7.97365 3.55563 6.52234 3.41674 5.00747C3.38896 4.71345 3.47431 4.45803 3.67278 4.24122C3.87111 4.02442 4.1191 3.91602 4.41674 3.91602H6.59299C6.84507 3.91602 7.06195 3.99164 7.24361 4.14289C7.42528 4.294 7.55188 4.49136 7.6234 4.73497L8.05945 6.47852C8.0925 6.66435 8.08208 6.84595 8.0282 7.02331C7.97417 7.20067 7.88625 7.3449 7.76445 7.45602L5.83986 9.32956C6.14958 9.91067 6.49306 10.4577 6.87028 10.9706C7.24736 11.4834 7.66063 11.963 8.11007 12.4093C8.55382 12.853 9.0332 13.2639 9.54819 13.6421C10.0632 14.0203 10.6193 14.3643 11.2165 14.6741L13.1907 12.7462C13.3072 12.6244 13.4408 12.5432 13.5915 12.5025C13.7421 12.4619 13.9103 12.4555 14.0963 12.4833L15.7644 12.8504C16.0165 12.9198 16.216 13.048 16.363 13.235C16.5099 13.4219 16.5834 13.6441 16.5834 13.9016V16.0618C16.5834 16.3595 16.4715 16.6075 16.2478 16.8058C16.024 17.0043 15.7651 17.0896 15.4711 17.0618ZM5.35257 8.27185L6.92319 6.76539C6.94986 6.744 6.96722 6.71463 6.97528 6.67727C6.98333 6.6399 6.98201 6.60518 6.97132 6.5731L6.6057 5.12747C6.595 5.08484 6.57632 5.05282 6.54965 5.03143C6.52299 5.01004 6.48826 4.99935 6.44549 4.99935H4.6459C4.61382 4.99935 4.58708 5.01004 4.56569 5.03143C4.54444 5.05282 4.53382 5.07956 4.53382 5.11164C4.57646 5.63942 4.66965 6.16581 4.8134 6.69081C4.95701 7.21595 5.13674 7.74296 5.35257 8.27185ZM12.3109 15.1821C12.8091 15.4012 13.33 15.5677 13.8736 15.6814C14.4174 15.795 14.9221 15.8786 15.3878 15.9321C15.4199 15.9321 15.4466 15.9214 15.468 15.9C15.4894 15.8786 15.5001 15.8518 15.5001 15.8198V14.025C15.5001 13.9822 15.4894 13.9475 15.468 13.9208C15.4466 13.8941 15.4146 13.8755 15.3719 13.8648L14.0178 13.5714C13.9857 13.5607 13.9576 13.5594 13.9336 13.5675C13.9096 13.5755 13.8842 13.5929 13.8574 13.6196L12.3109 15.1821Z" fill="#D0103A"/>\r\n                                </svg>\r\n                                020 7861 5027\r\n                            </a>\r\n                        </div>\r\n                    </div>\r\n                </section>\r\n                <section class="pagination-container" *ngIf="!noresults && !loading">\r\n                    <h2 class="sr-only">Pagination</h2>\r\n                    <pager [offset]="state.offset"\r\n                            [pageSize]="pageSize"\r\n                            [total]="state.total"\r\n                            (onPage)="onPage($event)"></pager>\r\n                    <pager-small [offset]="state.offset"\r\n                                [pageSize]="pageSize"\r\n                                [total]="state.total"\r\n                                (onPage)="onPage($event)"></pager-small>\r\n                </section>\r\n                <approximate-disclaimer *ngIf="!loading"></approximate-disclaimer>\r\n                <occupier-cross-sell-banner [isOccupierCrossSell]="enableOccupierCrossSell"></occupier-cross-sell-banner>\r\n                <go-to-top-button></go-to-top-button>\r\n            </div>\r\n            <div id="map">\r\n                <div *ngIf="loading" class="skeleton-loader skeleton-loader_map"></div>\r\n                <ng-container *ngIf="!loading">\r\n                    <h2 class="sr-only">Map</h2>\r\n                    <results-map\r\n                        [properties]="properties"\r\n                        [hoverProperty]="hoverProperty"\r\n                        [location]="location"\r\n                        (onBoundsChange)="onMapBoundsChange($event)"\r\n                        (onPropertySelected)="onMapPropertySelected($event)"\r\n                    ></results-map>\r\n                </ng-container>\r\n            </div>\r\n        </div>\r\n    </div>\r\n    \r\n    <cms-footer></cms-footer>\r\n</ng-container>\r\n'},function(e,t,n){"use strict";n(291),n(77),n(313),n(315),n(316),n(207),n(319),n(122),n(314),n(320),n(93),n(14),n(209),n(123),n(324),n(325)},function(e,t,n){"use strict";n.d(t,"a",function(){return v});var r=n(12),o=n(74),i=n(75),a=n(7),s=n(76),c=n(22),u=n(17),l=n(59),d=n(151),p=n(46),h=n(91),f=n(119),m=n(45),g=n(297),y=n(60),v=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.includeRedirectUri=!0,r}return Object(r.c)(t,e),t.prototype.getAuthCodeUrl=function(e){var t,n;return Object(r.b)(this,void 0,void 0,function(){var o;return Object(r.d)(this,function(r){switch(r.label){case 0:return null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(y.c.GetAuthCodeUrl,e.correlationId),null===(n=this.performanceClient)||void 0===n||n.setPreQueueTime(y.c.AuthClientCreateQueryString,e.correlationId),[4,this.createAuthCodeUrlQueryString(e)];case 1:return o=r.sent(),[2,l.a.appendQueryString(this.authority.authorizationEndpoint,o)]}})})},t.prototype.acquireToken=function(e,t){var n,o,i,c,l,d;return Object(r.b)(this,void 0,void 0,function(){var h,f,m,g,v,b,S=this;return Object(r.d)(this,function(r){switch(r.label){case 0:if(!e||!e.code)throw u.a.createTokenRequestCannotBeMadeError();return null===(n=this.performanceClient)||void 0===n||n.addQueueMeasurement(y.c.AuthClientAcquireToken,e.correlationId),h=null===(o=this.performanceClient)||void 0===o?void 0:o.startMeasurement("AuthCodeClientAcquireToken",e.correlationId),this.logger.info("in acquireToken call in auth-code client"),f=p.a.nowSeconds(),null===(i=this.performanceClient)||void 0===i||i.setPreQueueTime(y.c.AuthClientExecuteTokenRequest,e.correlationId),[4,this.executeTokenRequest(this.authority,e)];case 1:return m=r.sent(),g=null===(c=m.headers)||void 0===c?void 0:c[a.q.X_MS_REQUEST_ID],(v=null===(l=m.headers)||void 0===l?void 0:l[a.q.X_MS_HTTP_VERSION])&&(null===h||void 0===h||h.addStaticFields({httpVerAuthority:v}
2)),(b=new s.a(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin,this.performanceClient)).validateTokenResponse(m.body),null===(d=this.performanceClient)||void 0===d||d.setPreQueueTime(y.c.HandleServerTokenResponse,e.correlationId),[2,b.handleServerTokenResponse(m.body,this.authority,f,e,t,void 0,void 0,void 0,g).then(function(e){return null===h||void 0===h||h.endMeasurement({success:!0}),e}).catch(function(t){throw S.logger.verbose("Error in fetching token in ACC",e.correlationId),null===h||void 0===h||h.endMeasurement({errorCode:t.errorCode,subErrorCode:t.subError,success:!1}),t})]}})})},t.prototype.handleFragmentResponse=function(e,t){var n=new s.a(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,null,null),o=new l.a(e),i=l.a.getDeserializedHash(o.getHash());if(n.validateServerAuthorizationCodeResponse(i,t,this.cryptoUtils),!i.code)throw u.a.createNoAuthCodeInServerResponseError();return Object(r.a)(Object(r.a)({},i),{code:i.code})},t.prototype.getLogoutUri=function(e){if(!e)throw m.a.createEmptyLogoutRequestError();var t=this.createLogoutUrlQueryString(e);return l.a.appendQueryString(this.authority.endSessionEndpoint,t)},t.prototype.executeTokenRequest=function(e,t){var n,o;return Object(r.b)(this,void 0,void 0,function(){var i,s,c,u,d,p,m;return Object(r.d)(this,function(r){switch(r.label){case 0:return null===(n=this.performanceClient)||void 0===n||n.addQueueMeasurement(y.c.AuthClientExecuteTokenRequest,t.correlationId),null===(o=this.performanceClient)||void 0===o||o.setPreQueueTime(y.c.AuthClientCreateTokenRequestBody,t.correlationId),i=this.createTokenQueryParameters(t),s=l.a.appendQueryString(e.tokenEndpoint,i),[4,this.createTokenRequestBody(t)];case 1:if(c=r.sent(),u=void 0,t.clientInfo)try{d=Object(h.a)(t.clientInfo,this.cryptoUtils),u={credential:""+d.uid+a.D.CLIENT_INFO_SEPARATOR+d.utid,type:f.a.HOME_ACCOUNT_ID}}catch(e){this.logger.verbose("Could not parse client info for CCS Header: "+e)}return p=this.createTokenRequestHeaders(u||t.ccsCredential),m={clientId:this.config.authOptions.clientId,authority:e.canonicalAuthority,scopes:t.scopes,claims:t.claims,authenticationScheme:t.authenticationScheme,resourceRequestMethod:t.resourceRequestMethod,resourceRequestUri:t.resourceRequestUri,shrClaims:t.shrClaims,sshKid:t.sshKid},[2,this.executePostToTokenEndpoint(s,c,p,m)]}})})},t.prototype.createTokenRequestBody=function(e){var t,n;return Object(r.b)(this,void 0,void 0,function(){var o,s,u,l,p,v,b,S;return Object(r.d)(this,function(r){switch(r.label){case 0:return null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(y.c.AuthClientCreateTokenRequestBody,e.correlationId),(o=new i.a).addClientId(this.config.authOptions.clientId),this.includeRedirectUri?o.addRedirectUri(e.redirectUri):g.a.validateRedirectUri(e.redirectUri),o.addScopes(e.scopes),o.addAuthorizationCode(e.code),o.addLibraryInfo(this.config.libraryInfo),o.addApplicationTelemetry(this.config.telemetry.application),o.addThrottling(),this.serverTelemetryManager&&o.addServerTelemetry(this.serverTelemetryManager),e.codeVerifier&&o.addCodeVerifier(e.codeVerifier),this.config.clientCredentials.clientSecret&&o.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion&&(s=this.config.clientCredentials.clientAssertion,o.addClientAssertion(s.assertion),o.addClientAssertionType(s.assertionType)),o.addGrantType(a.p.AUTHORIZATION_CODE_GRANT),o.addClientInfo(),e.authenticationScheme!==a.e.POP?[3,2]:(u=new d.a(this.cryptoUtils,this.performanceClient),null===(n=this.performanceClient)||void 0===n||n.setPreQueueTime(y.c.PopTokenGenerateCnf,e.correlationId),[4,u.generateCnf(e)]);case 1:return l=r.sent(),o.addPopToken(l.reqCnfString),[3,3];case 2:if(e.authenticationScheme===a.e.SSH){if(!e.sshJwk)throw m.a.createMissingSshJwkError();o.addSshJwk(e.sshJwk)}r.label=3;case 3:if(p=e.correlationId||this.config.cryptoInterface.createNewGuid(),o.addCorrelationId(p),(!c.a.isEmptyObj(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&o.addClaims(e.claims,this.config.authOptions.clientCapabilities),v=void 0,e.clientInfo)try{b=Object(h.a)(e.clientInfo,this.cryptoUtils),v={credential:""+b.uid+a.D.CLIENT_INFO_SEPARATOR+b.utid,type:f.a.HOME_ACCOUNT_ID}}catch(e){this.logger.verbose("Could not parse client info for CCS Header: "+e)}else v=e.ccsCredential;if(this.config.systemOptions.preventCorsPreflight&&v)switch(v.type){case f.a.HOME_ACCOUNT_ID:try{b=Object(h.b)(v.credential),o.addCcsOid(b)}catch(e){this.logger.verbose("Could not parse home account ID for CCS Header: "+e)}break;case f.a.UPN:o.addCcsUpn(v.credential)}return e.tokenBodyParameters&&o.addExtraQueryParameters(e.tokenBodyParameters),!e.enableSpaAuthorizationCode||e.tokenBodyParameters&&e.tokenBodyParameters[a.b.RETURN_SPA_CODE]||o.addExtraQueryParameters(((S={})[a.b.RETURN_SPA_CODE]="1",S)),[2,o.createQueryString()]}})})},t.prototype.createAuthCodeUrlQueryString=function(e){var t;return Object(r.b)(this,void 0,void 0,function(){var n,o,s,u,l,p,f;return Object(r.d)(this,function(m){switch(m.label){case 0:if(null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(y.c.AuthClientCreateQueryString,e.correlationId),(n=new i.a).addClientId(this.config.authOptions.clientId),o=Object(r.e)(e.scopes||[],e.extraScopesToConsent||[]),n.addScopes(o),n.addRedirectUri(e.redirectUri),s=e.correlationId||this.config.cryptoInterface.createNewGuid(),n.addCorrelationId(s),n.addResponseMode(e.responseMode),n.addResponseTypeCode(),n.addLibraryInfo(this.config.libraryInfo),n.addApplicationTelemetry(this.config.telemetry.application),n.addClientInfo(),e.codeChallenge&&e.codeChallengeMethod&&n.addCodeChallengeParams(e.codeChallenge,e.codeChallengeMethod),e.prompt&&n.addPrompt(e.prompt),e.domainHint&&n.addDomainHint(e.domainHint),e.prompt!==a.w.SELECT_ACCOUNT)if(e.sid&&e.prompt===a.w.NONE)this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from request"),n.addSid(e.sid);else if(e.account){if(u=this.extractAccountSid(e.account),l=this.extractLoginHint(e.account)){this.logger.verbose("createAuthCodeUrlQueryString: login_hint claim present on account"),n.addLoginHint(l);try{p=Object(h.b)(e.account.homeAccountId),n.addCcsOid(p)}catch(e){this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(u&&e.prompt===a.w.NONE){this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from account"),n.addSid(u);try{p=Object(h.b)(e.account.homeAccountId),n.addCcsOid(p)}catch(e){this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(e.loginHint)this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from request"),n.addLoginHint(e.loginHint),n.addCcsUpn(e.loginHint);else if(e.account.username){this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from account"),n.addLoginHint(e.account.username);try{p=Object(h.b)(e.account.homeAccountId),n.addCcsOid(p)}catch(e){this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}}else e.loginHint&&(this.logger.verbose("createAuthCodeUrlQueryString: No account, adding login_hint from request"),n.addLoginHint(e.loginHint),n.addCcsUpn(e.loginHint));else this.logger.verbose("createAuthCodeUrlQueryString: Prompt is select_account, ignoring account hints");return e.nonce&&n.addNonce(e.nonce),e.state&&n.addState(e.state),(!c.a.isEmpty(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&n.addClaims(e.claims,this.config.authOptions.clientCapabilities),e.extraQueryParameters&&n.addExtraQueryParameters(e.extraQueryParameters),e.nativeBroker?(n.addNativeBroker(),e.authenticationScheme!==a.e.POP?[3,2]:[4,new d.a(this.cryptoUtils).generateCnf(e)]):[3,2];case 1:f=m.sent(),n.addPopToken(f.reqCnfString),m.label=2;case 2:return[2,n.createQueryString()]}})})},t.prototype.createLogoutUrlQueryString=function(e){var t=new i.a;return e.postLogoutRedirectUri&&t.addPostLogoutRedirectUri(e.postLogoutRedirectUri),e.correlationId&&t.addCorrelationId(e.correlationId),e.idTokenHint&&t.addIdTokenHint(e.idTokenHint),e.state&&t.addState(e.state),e.logoutHint&&t.addLogoutHint(e.logoutHint),e.extraQueryParameters&&t.addExtraQueryParameters(e.extraQueryParameters),t.createQueryString()},t.prototype.extractAccountSid=function(e){var t;return(null===(t=e.idTokenClaims)||void 0===t?void 0:t.sid)||null},t.prototype.extractLoginHint=function(e){var t;return(null===(t=e.idTokenClaims)||void 0===t?void 0:t.login_hint)||null},t}(o.a)},function(e,t,n){"use strict";var r=n(12),o=n(74),i=n(17),a=n(75),s=n(7),c=n(46),u=n(76),l=n(22),d=n(118),p=n(59);!function(e){function t(t){return e.call(this,t)||this}Object(r.c)(t,e),t.prototype.acquireToken=function(e){return Object(r.b)(this,void 0,void 0,function(){var t,n,o,i;return Object(r.d)(this,function(r){switch(r.label){case 0:return[4,this.getDeviceCode(e)];case 1:return t=r.sent(),e.deviceCodeCallback(t),n=c.a.nowSeconds(),[4,this.acquireTokenWithDeviceCode(e,t)];case 2:return o=r.sent(),(i=new u.a(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin)).validateTokenResponse(o),[4,i.handleServerTokenResponse(o,this.authority,n,e)];case 3:return[2,r.sent()]}})})},t.prototype.getDeviceCode=function(e){return Object(r.b)(this,void 0,void 0,function(){var t,n,o,i,a;return Object(r.d)(this,function(r){return t=this.createExtraQueryParameters(e),n=p.a.appendQueryString(this.authority.deviceCodeEndpoint,t),o=this.createQueryString(e),i=this.createTokenRequestHeaders(),a={clientId:this.config.authOptions.clientId,authority:e.authority,scopes:e.scopes,claims:e.claims,authenticationScheme:e.authenticationScheme,resourceRequestMethod:e.resourceRequestMethod,resourceRequestUri:e.resourceRequestUri,shrClaims:e.shrClaims,sshKid:e.sshKid},[2,this.executePostRequestToDeviceCodeEndpoint(n,o,i,a)]})})},t.prototype.createExtraQueryParameters=function(e){var t=new a.a;return e.extraQueryParameters&&t.addExtraQueryParameters(e.extraQueryParameters),t.createQueryString()},t.prototype.executePostRequestToDeviceCodeEndpoint=function(e,t,n,o){return Object(r.b)(this,void 0,void 0,function(){var i,a,s,c,u,l,d;return Object(r.d)(this,function(r){switch(r.label){case 0:return[4,this.networkManager.sendPostRequest(o,e,{body:t,headers:n})];case 1:return i=r.sent().body,a=i.user_code,s=i.device_code,c=i.verification_uri,u=i.expires_in,l=i.interval,d=i.message,[2,{userCode:a,deviceCode:s,verificationUri:c,expiresIn:u,interval:l,message:d}]}})})},t.prototype.createQueryString=function(e){var t=new a.a;return t.addScopes(e.scopes),t.addClientId(this.config.authOptions.clientId),e.extraQueryParameters&&t.addExtraQueryParameters(e.extraQueryParameters),(!l.a.isEmpty(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&t.addClaims(e.claims,this.config.authOptions.clientCapabilities),t.createQueryString()},t.prototype.continuePolling=function(e,t,n){if(n)throw this.logger.error("Token request cancelled by setting DeviceCodeRequest.cancel = true"),i.a.createDeviceCodeCancelledError();if(t&&t<e&&c.a.nowSeconds()>t)throw this.logger.error("User defined timeout for device code polling reached. The timeout was set for "+t),i.a.createUserTimeoutReachedError();if(c.a.nowSeconds()>e)throw t&&this.logger.verbose("User specified timeout ignored as the device code has expired before the timeout elapsed. The user specified timeout was set for "+t),this.logger.error("Device code expired. Expiration time of device code was "+e),i.a.createDeviceCodeExpiredError();return!0},t.prototype.acquireTokenWithDeviceCode=function(e,t){return Object(r.b)(this,void 0,void 0,function(){var n,o,a,u,l,h,f,m,g;return Object(r.d)(this,function(r){switch(r.label){case 0:n=this.createTokenQueryParameters(e),o=p.a.appendQueryString(this.authority.tokenEndpoint,n),a=this.createTokenRequestBody(e,t),u=this.createTokenRequestHeaders(),l=e.timeout?c.a.nowSeconds()+e.timeout:void 0,h=c.a.nowSeconds()+t.expires
2In,f=1e3*t.interval,r.label=1;case 1:return this.continuePolling(h,l,e.cancel)?(m={clientId:this.config.authOptions.clientId,authority:e.authority,scopes:e.scopes,claims:e.claims,authenticationScheme:e.authenticationScheme,resourceRequestMethod:e.resourceRequestMethod,resourceRequestUri:e.resourceRequestUri,shrClaims:e.shrClaims,sshKid:e.sshKid},[4,this.executePostToTokenEndpoint(o,a,u,m)]):[3,8];case 2:return(g=r.sent()).body&&g.body.error?g.body.error!==s.m.AUTHORIZATION_PENDING?[3,4]:(this.logger.info("Authorization pending. Continue polling."),[4,c.a.delay(f)]):[3,6];case 3:return r.sent(),[3,5];case 4:throw this.logger.info("Unexpected error in polling from the server"),d.a.createPostRequestFailed(g.body.error);case 5:return[3,7];case 6:return this.logger.verbose("Authorization completed successfully. Polling stopped."),[2,g.body];case 7:return[3,1];case 8:throw this.logger.error("Polling stopped for unknown reasons."),i.a.createDeviceCodeUnknownError()}})})},t.prototype.createTokenRequestBody=function(e,t){var n=new a.a;n.addScopes(e.scopes),n.addClientId(this.config.authOptions.clientId),n.addGrantType(s.p.DEVICE_CODE_GRANT),n.addDeviceCode(t.deviceCode);var r=e.correlationId||this.config.cryptoInterface.createNewGuid();return n.addCorrelationId(r),n.addClientInfo(),n.addLibraryInfo(this.config.libraryInfo),n.addApplicationTelemetry(this.config.telemetry.application),n.addThrottling(),this.serverTelemetryManager&&n.addServerTelemetry(this.serverTelemetryManager),(!l.a.isEmptyObj(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&n.addClaims(e.claims,this.config.authOptions.clientCapabilities),n.createQueryString()}}(o.a)},function(e,t,n){"use strict";var r=n(12),o=n(74),i=n(75),a=n(90),s=n(7),c=n(76),u=n(46),l=n(22),d=n(17),p=n(59);!function(e){function t(t,n){var r=e.call(this,t)||this;return r.appTokenProvider=n,r}Object(r.c)(t,e),t.prototype.acquireToken=function(e){return Object(r.b)(this,void 0,void 0,function(){var t;return Object(r.d)(this,function(n){switch(n.label){case 0:return this.scopeSet=new a.a(e.scopes||[]),e.skipCache?[4,this.executeTokenRequest(e,this.authority)]:[3,2];case 1:return[2,n.sent()];case 2:return[4,this.getCachedAuthenticationResult(e)];case 3:return(t=n.sent())?[2,t]:[3,4];case 4:return[4,this.executeTokenRequest(e,this.authority)];case 5:return[2,n.sent()]}})})},t.prototype.getCachedAuthenticationResult=function(e){var t,n;return Object(r.b)(this,void 0,void 0,function(){var o;return Object(r.d)(this,function(r){switch(r.label){case 0:return(o=this.readAccessTokenFromCache())?u.a.isTokenExpired(o.expiresOn,this.config.systemOptions.tokenRenewalOffsetSeconds)?(null===(n=this.serverTelemetryManager)||void 0===n||n.setCacheOutcome(s.i.CACHED_ACCESS_TOKEN_EXPIRED),[2,null]):[4,c.a.generateAuthenticationResult(this.cryptoUtils,this.authority,{account:null,idToken:null,accessToken:o,refreshToken:null,appMetadata:null},!0,e)]:(null===(t=this.serverTelemetryManager)||void 0===t||t.setCacheOutcome(s.i.NO_CACHED_ACCESS_TOKEN),[2,null]);case 1:return[2,r.sent()]}})})},t.prototype.readAccessTokenFromCache=function(){var e={homeAccountId:s.m.EMPTY_STRING,environment:this.authority.canonicalAuthorityUrlComponents.HostNameAndPort,credentialType:s.n.ACCESS_TOKEN,clientId:this.config.authOptions.clientId,realm:this.authority.tenant,target:a.a.createSearchScopes(this.scopeSet.asArray())},t=this.cacheManager.getAccessTokensByFilter(e);if(t.length<1)return null;if(t.length>1)throw d.a.createMultipleMatchingTokensInCacheError();return t[0]},t.prototype.executeTokenRequest=function(e,t){return Object(r.b)(this,void 0,void 0,function(){var n,o,i,a,l,d,h,f,m,g,y;return Object(r.d)(this,function(r){switch(r.label){case 0:return this.appTokenProvider?(this.logger.info("Using appTokenProvider extensibility."),i={correlationId:e.correlationId,tenantId:this.config.authOptions.authority.tenant,scopes:e.scopes,claims:e.claims},o=u.a.nowSeconds(),[4,this.appTokenProvider(i)]):[3,2];case 1:return a=r.sent(),n={access_token:a.accessToken,expires_in:a.expiresInSeconds,refresh_in:a.refreshInSeconds,token_type:s.e.BEARER},[3,4];case 2:return l=this.createTokenQueryParameters(e),d=p.a.appendQueryString(t.tokenEndpoint,l),h=this.createTokenRequestBody(e),f=this.createTokenRequestHeaders(),m={clientId:this.config.authOptions.clientId,authority:e.authority,scopes:e.scopes,claims:e.claims,authenticationScheme:e.authenticationScheme,resourceRequestMethod:e.resourceRequestMethod,resourceRequestUri:e.resourceRequestUri,shrClaims:e.shrClaims,sshKid:e.sshKid},o=u.a.nowSeconds(),[4,this.executePostToTokenEndpoint(d,h,f,m)];case 3:g=r.sent(),n=g.body,r.label=4;case 4:return(y=new c.a(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin)).validateTokenResponse(n),[4,y.handleServerTokenResponse(n,this.authority,o,e)];case 5:return[2,r.sent()]}})})},t.prototype.createTokenRequestBody=function(e){var t=new i.a;t.addClientId(this.config.authOptions.clientId),t.addScopes(e.scopes,!1),t.addGrantType(s.p.CLIENT_CREDENTIALS_GRANT),t.addLibraryInfo(this.config.libraryInfo),t.addApplicationTelemetry(this.config.telemetry.application),t.addThrottling(),this.serverTelemetryManager&&t.addServerTelemetry(this.serverTelemetryManager);var n=e.correlationId||this.config.cryptoInterface.createNewGuid();t.addCorrelationId(n),this.config.clientCredentials.clientSecret&&t.addClientSecret(this.config.clientCredentials.clientSecret);var r=e.clientAssertion||this.config.clientCredentials.clientAssertion;return r&&(t.addClientAssertion(r.assertion),t.addClientAssertionType(r.assertionType)),(!l.a.isEmptyObj(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&t.addClaims(e.claims,this.config.authOptions.clientCapabilities),t.createQueryString()}}(o.a)},function(e,t,n){"use strict";var r=n(12),o=n(74),i=n(75),a=n(90),s=n(7),c=n(76),u=n(46),l=n(92),d=n(17),p=n(59);!function(e){function t(t){return e.call(this,t)||this}Object(r.c)(t,e),t.prototype.acquireToken=function(e){return Object(r.b)(this,void 0,void 0,function(){var t;return Object(r.d)(this,function(n){switch(n.label){case 0:return this.scopeSet=new a.a(e.scopes||[]),t=this,[4,this.cryptoUtils.hashString(e.oboAssertion)];case 1:return t.userAssertionHash=n.sent(),e.skipCache?[4,this.executeTokenRequest(e,this.authority,this.userAssertionHash)]:[3,3];case 2:return[2,n.sent()];case 3:return n.trys.push([3,5,,7]),[4,this.getCachedAuthenticationResult(e)];case 4:return[2,n.sent()];case 5:return n.sent(),[4,this.executeTokenRequest(e,this.authority,this.userAssertionHash)];case 6:return[2,n.sent()];case 7:return[2]}})})},t.prototype.getCachedAuthenticationResult=function(e){var t,n;return Object(r.b)(this,void 0,void 0,function(){var o,i,a,p,h,f;return Object(r.d)(this,function(r){switch(r.label){case 0:if(!(o=this.readAccessTokenFromCacheForOBO(this.config.authOptions.clientId,e)))throw null===(t=this.serverTelemetryManager)||void 0===t||t.setCacheOutcome(s.i.NO_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - No access token found in cache for the given properties."),d.a.createRefreshRequiredError();if(u.a.isTokenExpired(o.expiresOn,this.config.systemOptions.tokenRenewalOffsetSeconds))throw null===(n=this.serverTelemetryManager)||void 0===n||n.setCacheOutcome(s.i.CACHED_ACCESS_TOKEN_EXPIRED),this.logger.info("OnbehalfofFlow:getCachedAuthenticationResult - Cached access token is expired or will expire within "+this.config.systemOptions.tokenRenewalOffsetSeconds+" seconds."),d.a.createRefreshRequiredError();return i=this.readIdTokenFromCacheForOBO(o.homeAccountId),p=null,i&&(a=new l.a(i.secret,this.config.cryptoInterface),h=a.claims.oid?a.claims.oid:a.claims.sub,f={homeAccountId:i.homeAccountId,environment:i.environment,tenantId:i.realm,username:s.m.EMPTY_STRING,localAccountId:h||s.m.EMPTY_STRING},p=this.cacheManager.readAccountFromCache(f)),this.config.serverTelemetryManager&&this.config.serverTelemetryManager.incrementCacheHits(),[4,c.a.generateAuthenticationResult(this.cryptoUtils,this.authority,{account:p,accessToken:o,idToken:i,refreshToken:null,appMetadata:null},!0,e,a)];case 1:return[2,r.sent()]}})})},t.prototype.readIdTokenFromCacheForOBO=function(e){var t={homeAccountId:e,environment:this.authority.canonicalAuthorityUrlComponents.HostNameAndPort,credentialType:s.n.ID_TOKEN,clientId:this.config.authOptions.clientId,realm:this.authority.tenant},n=this.cacheManager.getIdTokensByFilter(t);return n.length<1?null:n[0]},t.prototype.readAccessTokenFromCacheForOBO=function(e,t){var n=t.authenticationScheme||s.e.BEARER,r={credentialType:n&&n.toLowerCase()!==s.e.BEARER.toLowerCase()?s.n.ACCESS_TOKEN_WITH_AUTH_SCHEME:s.n.ACCESS_TOKEN,clientId:e,target:a.a.createSearchScopes(this.scopeSet.asArray()),tokenType:n,keyId:t.sshKid,requestedClaimsHash:t.requestedClaimsHash,userAssertionHash:this.userAssertionHash},o=this.cacheManager.getAccessTokensByFilter(r),i=o.length;if(i<1)return null;if(i>1)throw d.a.createMultipleMatchingTokensInCacheError();return o[0]},t.prototype.executeTokenRequest=function(e,t,n){return Object(r.b)(this,void 0,void 0,function(){var o,i,a,s,l,d,h,f;return Object(r.d)(this,function(r){switch(r.label){case 0:return o=this.createTokenQueryParameters(e),i=p.a.appendQueryString(t.tokenEndpoint,o),a=this.createTokenRequestBody(e),s=this.createTokenRequestHeaders(),l={clientId:this.config.authOptions.clientId,authority:e.authority,scopes:e.scopes,claims:e.claims,authenticationScheme:e.authenticationScheme,resourceRequestMethod:e.resourceRequestMethod,resourceRequestUri:e.resourceRequestUri,shrClaims:e.shrClaims,sshKid:e.sshKid},d=u.a.nowSeconds(),[4,this.executePostToTokenEndpoint(i,a,s,l)];
2case 1:return h=r.sent(),(f=new c.a(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin)).validateTokenResponse(h.body),[4,f.handleServerTokenResponse(h.body,this.authority,d,e,void 0,n)];case 2:return[2,r.sent()]}})})},t.prototype.createTokenRequestBody=function(e){var t=new i.a;t.addClientId(this.config.authOptions.clientId),t.addScopes(e.scopes),t.addGrantType(s.p.JWT_BEARER),t.addClientInfo(),t.addLibraryInfo(this.config.libraryInfo),t.addApplicationTelemetry(this.config.telemetry.application),t.addThrottling(),this.serverTelemetryManager&&t.addServerTelemetry(this.serverTelemetryManager);var n=e.correlationId||this.config.cryptoInterface.createNewGuid();if(t.addCorrelationId(n),t.addRequestTokenUse(s.b.ON_BEHALF_OF),t.addOboAssertion(e.oboAssertion),this.config.clientCredentials.clientSecret&&t.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion){var r=this.config.clientCredentials.clientAssertion;t.addClientAssertion(r.assertion),t.addClientAssertionType(r.assertionType)}return(e.claims||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&t.addClaims(e.claims,this.config.authOptions.clientCapabilities),t.createQueryString()}}(o.a)},function(e,t,n){"use strict";n.d(t,"a",function(){return h});var r=n(12),o=n(74),i=n(92),a=n(46),s=n(305),c=n(17),u=n(45),l=n(76),d=n(7),p=n(22),h=function(e){function t(t,n){return e.call(this,t,n)||this}return Object(r.c)(t,e),t.prototype.acquireToken=function(e){return Object(r.b)(this,void 0,void 0,function(){var t;return Object(r.d)(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.acquireCachedToken(e)];case 1:return[2,n.sent()];case 2:if((t=n.sent())instanceof c.a&&t.errorCode===c.b.tokenRefreshRequired.code)return[2,new s.a(this.config,this.performanceClient).acquireTokenByRefreshToken(e)];throw t;case 3:return[2]}})})},t.prototype.acquireCachedToken=function(e){var t,n,o,i,s;return Object(r.b)(this,void 0,void 0,function(){var l,h;return Object(r.d)(this,function(r){switch(r.label){case 0:if(!e)throw u.a.createEmptyTokenRequestError();if(e.forceRefresh)throw null===(t=this.serverTelemetryManager)||void 0===t||t.setCacheOutcome(d.i.FORCE_REFRESH),this.logger.info("SilentFlowClient:acquireCachedToken - Skipping cache because forceRefresh is true."),c.a.createRefreshRequiredError();if(!this.config.cacheOptions.claimsBasedCachingEnabled&&!p.a.isEmptyObj(e.claims))throw null===(n=this.serverTelemetryManager)||void 0===n||n.setCacheOutcome(d.i.CLAIMS_REQUESTED_CACHE_SKIPPED),this.logger.info("SilentFlowClient:acquireCachedToken - Skipping cache because claims-based caching is disabled and claims were requested."),c.a.createRefreshRequiredError();if(!e.account)throw c.a.createNoAccountInSilentRequestError();if(l=e.authority||this.authority.getPreferredCache(),!(h=this.cacheManager.readCacheRecord(e.account,e,l)).accessToken)throw null===(o=this.serverTelemetryManager)||void 0===o||o.setCacheOutcome(d.i.NO_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - No access token found in cache for the given properties."),c.a.createRefreshRequiredError();if(a.a.wasClockTurnedBack(h.accessToken.cachedAt)||a.a.isTokenExpired(h.accessToken.expiresOn,this.config.systemOptions.tokenRenewalOffsetSeconds))throw null===(i=this.serverTelemetryManager)||void 0===i||i.setCacheOutcome(d.i.CACHED_ACCESS_TOKEN_EXPIRED),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token is expired or will expire within "+this.config.systemOptions.tokenRenewalOffsetSeconds+" seconds."),c.a.createRefreshRequiredError();if(h.accessToken.refreshOn&&a.a.isTokenExpired(h.accessToken.refreshOn,0))throw null===(s=this.serverTelemetryManager)||void 0===s||s.setCacheOutcome(d.i.REFRESH_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token's refreshOn property has been exceeded'."),c.a.createRefreshRequiredError();return this.config.serverTelemetryManager&&this.config.serverTelemetryManager.incrementCacheHits(),[4,this.generateResultFromCacheRecord(h,e)];case 1:return[2,r.sent()]}})})},t.prototype.generateResultFromCacheRecord=function(e,t){return Object(r.b)(this,void 0,void 0,function(){var n,o;return Object(r.d)(this,function(r){switch(r.label){case 0:if(e.idToken&&(n=new i.a(e.idToken.secret,this.config.cryptoInterface)),t.maxAge||0===t.maxAge){if(!(o=null===n||void 0===n?void 0:n.claims.auth_time))throw c.a.createAuthTimeNotFoundError();i.a.checkMaxAge(o,t.maxAge)}return[4,l.a.generateAuthenticationResult(this.cryptoUtils,this.authority,e,!0,t,n)];case 1:return[2,r.sent()]}})})},t}(o.a)},function(e,t,n){"use strict";var r=n(12),o=n(74),i=n(76),a=n(75),s=n(7),c=n(22),u=n(46),l=n(119),d=n(59);!function(e){function t(t){return e.call(this,t)||this}Object(r.c)(t,e),t.prototype.acquireToken=function(e){var t,n;return Object(r.b)(this,void 0,void 0,function(){var o,a,c,l,d;return Object(r.d)(this,function(r){switch(r.label){case 0:return o=null===(t=this.performanceClient)||void 0===t?void 0:t.startMeasurement("UsernamePasswordCl
2ientAcquireToken",e.correlationId),this.logger.info("in acquireToken call in username-password client"),a=u.a.nowSeconds(),[4,this.executeTokenRequest(this.authority,e)];case 1:return c=r.sent(),l=null===(n=c.headers)||void 0===n?void 0:n[s.q.X_MS_HTTP_VERSION],null===o||void 0===o||o.addStaticFields({httpVerToken:l}),(d=new i.a(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin)).validateTokenResponse(c.body),[2,d.handleServerTokenResponse(c.body,this.authority,a,e)]}})})},t.prototype.executeTokenRequest=function(e,t){return Object(r.b)(this,void 0,void 0,function(){var n,o,i,a,s;return Object(r.d)(this,function(r){return n=this.createTokenQueryParameters(t),o=d.a.appendQueryString(e.tokenEndpoint,n),i=this.createTokenRequestBody(t),a=this.createTokenRequestHeaders({credential:t.username,type:l.a.UPN}),s={clientId:this.config.authOptions.clientId,authority:e.canonicalAuthority,scopes:t.scopes,claims:t.claims,authenticationScheme:t.authenticationScheme,resourceRequestMethod:t.resourceRequestMethod,resourceRequestUri:t.resourceRequestUri,shrClaims:t.shrClaims,sshKid:t.sshKid},[2,this.executePostToTokenEndpoint(o,i,a,s)]})})},t.prototype.createTokenRequestBody=function(e){var t=new a.a;t.addClientId(this.config.authOptions.clientId),t.addUsername(e.username),t.addPassword(e.password),t.addScopes(e.scopes),t.addResponseTypeForTokenAndIdToken(),t.addGrantType(s.p.RESOURCE_OWNER_PASSWORD_GRANT),t.addClientInfo(),t.addLibraryInfo(this.config.libraryInfo),t.addApplicationTelemetry(this.config.telemetry.application),t.addThrottling(),this.serverTelemetryManager&&t.addServerTelemetry(this.serverTelemetryManager);var n=e.correlationId||this.config.cryptoInterface.createNewGuid();if(t.addCorrelationId(n),this.config.clientCredentials.clientSecret&&t.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion){var r=this.config.clientCredentials.clientAssertion;t.addClientAssertion(r.assertion),t.addClientAssertionType(r.assertionType)}return(!c.a.isEmptyObj(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&t.addClaims(e.claims,this.config.authOptions.clientCapabilities),this.config.systemOptions.preventCorsPreflight&&e.username&&t.addCcsUpn(e.username),t.createQueryString()}}(o.a)},function(e,t,n){"use strict";function r(e){return e.hasOwnProperty("authorization_endpoint")&&e.hasOwnProperty("token_endpoint")&&e.hasOwnProperty("issuer")&&e.hasOwnProperty("jwks_uri")}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o});var r
vendor: 14,220 bytes, line 2
2={"https://login.microsoftonline.com/common/":{token_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.com/common/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.com/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.com/common/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.com/common/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.com",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pas.windows.net"},"https://login.chinacloudapi.cn/common/":{token_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.chinacloudapi.cn/common/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.partner.microsoftonline.cn/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",authorization_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.chinacloudapi.cn/common/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.chinacloudapi.cn/common/kerberos",tenant_region_scope:null,cloud_instance_name:"partner.microsoftonline.cn",cloud_graph_host_name:"graph.chinacloudapi.cn",msgraph_host:"microsoftgraph.chinacloudapi.cn",rbac_url:"https://pas.chinacloudapi.cn"},"https://login.microsoftonline.us/common/":{token_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.us/common/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.us/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.us/common/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.us/common/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.us",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pasff.usgovcloudapi.net"},"https://login.microsoftonline.com/consumers/":{token_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.com/consumers/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.com/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.com/consumers/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.com/consumers/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.com",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pas.windows.net"},"https://login.chinacloudapi.cn/consumers/":{token_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.chinacloudapi.cn/consumers/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.partner.microsoftonline.cn/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",authorization_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.chinacloudapi.cn/consumers/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.chinacloudapi.cn/consumers/kerberos",tenant_region_scope:null,cloud_instance_name:"partner.microsoftonline.cn",cloud_graph_host_name:"graph.chinacloudapi.cn",msgraph_host:"microsoftgraph.chinacloudapi.cn",rbac_url:"https://pas.chinacloudapi.cn"},"https://login.microsoftonline.us/consumers/":{token_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.us/consumers/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.us/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.us/consumers/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.us/consumers/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.us",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pasff.usgovcloudapi.net"},"https://login.microsoftonline.com/organizations/":{token_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.com/organizations/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.com/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.com/organizations/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.com/organizations/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.com",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pas.windows.net"},"https://login.chinacloudapi.cn/organizations/":{token_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.chinacloudapi.cn/organizations/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.partner.microsoftonline.cn/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",authorization_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.chinacloudapi.cn/organizations/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.chinacloudapi.cn/organizations/kerberos",tenant_region_scope:null,cloud_instance_name:"partner.microsoftonline.cn",cloud_graph_host_name:"graph.chinacloudapi.cn",msgraph_host:"microsoftgraph.chinacloudapi.cn",rbac_url:"https://pas.chinacloudapi.cn"},"https://login.microsoftonline.us/organizations/":{token_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/token",token_endpoint_auth_methods_supported:["client_secret_post","private_key_jwt","client_secret_basic"],jwks_uri:"https://login.microsoftonline.us/organizations/discovery/v2.0/keys",response_modes_supported:["query","fragment","form_post"],subject_types_supported:["pairwise"],id_token_signing_alg_values_supported:["RS256"],response_types_supported:["code","id_token","code id_token","id_token token"],scopes_supported:["openid","profile","email","offline_access"],issuer:"https://login.microsoftonline.us/{tenantid}/v2.0",request_uri_parameter_supported:!1,userinfo_endpoint:"https://graph.microsoft.com/oidc/userinfo",authorization_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/authorize",device_authorization_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/devicecode",http_logout_supported:!0,frontchannel_logout_supported:!0,end_session_endpoint:"https://login.microsoftonline.us/organizations/oauth2/v2.0/logout",claims_supported:["sub","iss","cloud_instance_name","cloud_instance_host_name","cloud_graph_host_name","msgraph_host","aud","exp","iat","auth_time","acr","nonce","preferred_username","name","tid","ver","at_hash","c_hash","email"],kerberos_endpoint:"https://login.microsoftonline.us/organizations/kerberos",tenant_region_scope:null,cloud_instance_name:"microsoftonline.us",cloud_graph_host_name:"graph.windows.net",msgraph_host:"graph.microsoft.com",rbac_url:"https://pasff.usgovcloudapi.net"}},
2o={"https://login.microsoftonline.com/common/":{tenant_discovery_endpoint:"https://login.microsoftonline.com/common/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.chinacloudapi.cn/common/":{tenant_discovery_endpoint:"https://login.chinacloudapi.cn/common/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.us/common/":{tenant_discovery_endpoint:"https://login.microsoftonline.us/common/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.com/consumers/":{tenant_discovery_endpoint:"https://login.microsoftonline.com/consumers/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.chinacloudapi.cn/consumers/":{tenant_discovery_endpoint:"https://login.chinacloudapi.cn/consumers/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.us/consumers/":{tenant_discovery_endpoint:"https://login.microsoftonline.us/consumers/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.com/organizations/":{tenant_discovery_endpoint:"https://login.microsoftonline.com/organizations/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.chinacloudapi.cn/organizations/":{tenant_discovery_endpoint:"https://login.chinacloudapi.cn/organizations/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]},"https://login.microsoftonline.us/organizations/":{tenant_discovery_endpoint:"https://login.microsoftonline.us/organizations/v2.0/.well-known/openid-configuration","api-version":"1.1",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]}}},function(e,t,n){"use strict";function r(e){return e.hasOwnProperty("tenant_discovery_endpoint")&&e.hasOwnProperty("metadata")}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";function r(e){return e.hasOwnProperty("error")&&e.hasOwnProperty("error_description")}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(12),o=n(7),i=n(60),a=function(){function e(e,t,n){this.networkInterface=e,this.performanceClient=t,this.correlationId=n}return e.prototype.detectRegion=function(t,n){var a,s,c,u;return Object(r.b)(this,void 0,void 0,function(){var l,d,p,h,f;return Object(r.d)(this,function(r){switch(r.label){case 0:if(null===(a=this.performanceClient)||void 0===a||a.addQueueMeasurement(i.c.RegionDiscoveryDetectRegion,this.correlationId),l=t)return[3,8];d=e.IMDS_OPTIONS,r.label=1;case 1:return r.trys.push([1,6,,7]),null===(s=this.performanceClient)||void 0===s||s.setPreQueueTime(i.c.RegionDiscoveryGetRegionFromIMDS,this.correlationId),[4,this.getRegionFromIMDS(o.m.IMDS_VERSION,d)];case 2:return(p=r.sent()).status===o.z.httpSuccess&&(l=p.body,n.region_source=o.y.IMDS),p.status!==o.z.httpBadRequest?[3,5]:(null===(c=this.performanceClient)||void 0===c||c.setPreQueueTime(i.c.RegionDiscoveryGetCurrentVersion,this.correlationId),[4,this.getCurrentVersion(d)]);case 3:return(h=r.sent())?(null===(u=this.performanceClient)||void 0===u||u.setPreQueueTime(i.c.RegionDiscoveryGetRegionFromIMDS,this.correlationId),[4,this.getRegionFromIMDS(h,d)]):(n.region_source=o.y.FAILED_AUTO_DETECTION,[2,null]);case 4:(f=r.sent()).status===o.z.httpSuccess&&(l=f.body,n.region_source=o.y.IMDS),r.label=5;case 5:return[3,7];case 6:return r.sent(),n.region_source=o.y.FAILED_AUTO_DETECTION,[2,null];case 7:return[3,9];case 8:n.region_source=o.y.ENVIRONMENT_VARIABLE,r.label=9;case 9:return l||(n.region_source=o.y.FAILED_AUTO_DETECTION),[2,l||null]}})})},e.prototype.getRegionFromIMDS=function(e,t){var n;return Object(r.b)(this,void 0,void 0,function(){return Object(r.d)(this,function(r){return null===(n=this.performanceClient)||void 0===n||n.addQueueMeasurement(i.c.RegionDiscoveryGetRegionFromIMDS,this.correlationId),[2,this.networkInterface.sendGetRequestAsync(o.m.IMDS_ENDPOINT+"?api-version="+e+"&format=text",t,o.m.IMDS_TIMEOUT)]})})},e.prototype.getCurrentVersion=function(e){var t;return Object(r.b)(this,void 0,void 0,function(){var n;return Object(r.d)(this,function(r){switch(r.label){case 0:null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(i.c.RegionDiscoveryGetCurrentVersion,this.correlationId),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(o.m.IMDS_ENDPOINT+"?format=json",e)];
2case 2:return(n=r.sent()).status===o.z.httpBadRequest&&n.body&&n.body["newest-versions"]&&n.body["newest-versions"].length>0?[2,n.body["newest-versions"][0]]:[2,null];case 3:return r.sent(),[2,null];case 4:return[2]}})})},e.IMDS_OPTIONS={headers:{Metadata:"true"}},e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n(12),o=n(306),i=n(45),a=n(22),s=n(17),c=n(60),u=function(){function e(){}return e.createDiscoveredInstance=function(t,n,i,a,u,l,d){return Object(r.b)(this,void 0,void 0,function(){var p,h,f;return Object(r.d)(this,function(r){switch(r.label){case 0:null===l||void 0===l||l.addQueueMeasurement(c.c.AuthorityFactoryCreateDiscoveredInstance,d),p=o.a.transformCIAMAuthority(t),h=e.createInstance(p,n,i,a,u,l,d),r.label=1;case 1:return r.trys.push([1,3,,4]),null===l||void 0===l||l.setPreQueueTime(c.c.AuthorityResolveEndpointsAsync,d),[4,h.resolveEndpointsAsync()];case 2:return r.sent(),[2,h];case 3:throw f=r.sent(),s.a.createEndpointDiscoveryIncompleteError(f);case 4:return[2]}})})},e.createInstance=function(e,t,n,r,s,c,u){if(a.a.isEmpty(e))throw i.a.createUrlEmptyError();return new o.a(e,t,n,r,s,c,u)},e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(7),o=function(){function e(){}return e.isThrottlingEntity=function(e,t){var n=!1;e&&(n=0===e.indexOf(r.F.THROTTLING_PREFIX));var o=!0;return t&&(o=t.hasOwnProperty("throttleTime")),n&&o},e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(44),o={sendGetRequestAsync:function(){return Promise.reject(r.a.createUnexpectedError("Network interface - sendGetRequestAsync() has not been implemented for the Network interface."))},sendPostRequestAsync:function(){return Promise.reject(r.a.createUnexpectedError("Network interface - sendPostRequestAsync() has not been implemented for the Network interface."))}}},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(733),o=n(7),i=function(){function e(e){this.typ=e.typ,this.alg=e.alg,this.kid=e.kid}return e.getShrHeaderString=function(t){if(!t.kid)throw r.a.createMissingKidError();if(!t.alg)throw r.a.createMissingAlgError();var n=new e({typ:t.typ||o.r.Pop,kid:t.kid,alg:t.alg});return JSON.stringify(n)},e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(12),o={code:"missing_kid_error",desc:"The JOSE Header for the requested JWT, JWS or JWK object requires a keyId to be configured as the 'kid' header claim. No 'kid' value was provided."},i={code:"missing_alg_error",desc:"The JOSE Header for the requested JWT, JWS or JWK object requires an algorithm to be specified as the 'alg' header claim. No 'alg' value was provided."},a=function(e){function t(n,r){var o=e.call(this,n,r)||this;return o.name="JoseHeaderError",Object.setPrototypeOf(o,t.prototype),o}return Object(r.c)(t,e),t.createMissingKidError=function(){return new t(o.code,o.desc)},t.createMissingAlgError=function(){return new t(i.code,i.desc)},t}(n(44).a)},function(e,t,n){"use strict";var r=n(45),o=n(7);!function(){function e(e){this.headers=e}e.prototype.getShrNonce=function(){var e=this.headers[o.q.AuthenticationInfo];if(e){var t=this.parseChallenges(e);if(t.nextnonce)return t.nextnonce;throw r.a.createInvalidAuthenticationHeaderError(o.q.AuthenticationInfo,"nextnonce challenge is missing.")}var n=this.headers[o.q.WWWAuthenticate];if(n){var i=this.parseChallenges(n);if(i.nonce)return i.nonce;throw r.a.createInvalidAuthenticationHeaderError(o.q.WWWAuthenticate,"nonce challenge is missing.")}throw r.a.createMissingNonceAuthenticationHeadersError()},e.prototype.parseChallenges=function(e){var t=e.indexOf(" "),n={};return e.substr(t+1).split(",").forEach(function(e){var t=e.split("="),r=t[0],i=t[1];n[r]=unescape(i.replace(/['"]+/g,o.m.EMPTY_STRING))}),n}}()},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(7),o=n(308),i=n(22),a=function(){function e(e,t){this.cacheOutcome=r.i.NO_CACHE_HIT,this.cacheManager=t,this.apiId=e.apiId,this.correlationId=e.correlationId,this.wrapperSKU=e.wrapperSKU||r.m.EMPTY_STRING,this.wrapperVer=e.wrapperVer||r.m.EMPTY_STRING,this.telemetryCacheKey=r.B.CACHE_KEY+r.D.CACHE_KEY_SEPARATOR+e.clientId}return e.prototype.generateCurrentRequestHeaderValue=function(){var e=""+this.apiId+r.B.VALUE_SEPARATOR+this.cacheOutcome,t=[this.wrapperSKU,this.wrapperVer].join(r.B.VALUE_SEPARATOR),n=[e,this.getRegionDiscoveryFields()].join(r.B.VALUE_SEPARATOR);return[r.B.SCHEMA_VERSION,n,t].join(r.B.CATEGORY_SEPARATOR)},e.prototype.generateLastRequestHeaderValue=function(){var t=this.getLastRequests(),n=e.maxErrorsToSend(t),o=t.failedRequests.slice(0,2*n).join(r.B.VALUE_SEPARATOR),i=t.errors.slice(0,n).join(r.B.VALUE_SEPARATOR),a=t.errors.length,s=[a,n<a?r.B.OVERFLOW_TRUE:r.B.OVERFLOW_FALSE].join(r.B.VALUE_SEPARATOR);
2return[r.B.SCHEMA_VERSION,t.cacheHits,o,i,s].join(r.B.CATEGORY_SEPARATOR)},e.prototype.cacheFailedRequest=function(e){var t=this.getLastRequests();t.errors.length>=r.B.MAX_CACHED_ERRORS&&(t.failedRequests.shift(),t.failedRequests.shift(),t.errors.shift()),t.failedRequests.push(this.apiId,this.correlationId),i.a.isEmpty(e.subError)?i.a.isEmpty(e.errorCode)?e&&e.toString()?t.errors.push(e.toString()):t.errors.push(r.B.UNKNOWN_ERROR):t.errors.push(e.errorCode):t.errors.push(e.subError),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,t)},e.prototype.incrementCacheHits=function(){var e=this.getLastRequests();return e.cacheHits+=1,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,e),e.cacheHits},e.prototype.getLastRequests=function(){var e=new o.a;return this.cacheManager.getServerTelemetry(this.telemetryCacheKey)||e},e.prototype.clearTelemetryCache=function(){var t=this.getLastRequests(),n=e.maxErrorsToSend(t);if(n===t.errors.length)this.cacheManager.removeItem(this.telemetryCacheKey);else{var r=new o.a;r.failedRequests=t.failedRequests.slice(2*n),r.errors=t.errors.slice(n),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,r)}},e.maxErrorsToSend=function(e){var t,n=0,o=0,i=e.errors.length;for(t=0;t<i;t++){var a=e.failedRequests[2*t]||r.m.EMPTY_STRING,s=e.failedRequests[2*t+1]||r.m.EMPTY_STRING,c=e.errors[t]||r.m.EMPTY_STRING;if(!((o+=a.toString().length+s.toString().length+c.length+3)<r.B.MAX_LAST_HEADER_BYTES))break;n+=1}return n},e.prototype.getRegionDiscoveryFields=function(){var e=[];return e.push(this.regionUsed||r.m.EMPTY_STRING),e.push(this.regionSource||r.m.EMPTY_STRING),e.push(this.regionOutcome||r.m.EMPTY_STRING),e.join(",")},e.prototype.updateRegionDiscoveryMetadata=function(e){this.regionUsed=e.region_used,this.regionSource=e.region_source,this.regionOutcome=e.region_outcome},e.prototype.setCacheOutcome=function(e){this.cacheOutcome=e},e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(12),o=n(309),i=function(){function e(){}return e.prototype.startMeasurement=function(){},e.prototype.endMeasurement=function(){},e.prototype.flushMeasurement=function(){return null},e}(),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.generateId=function(){return"callback-id"},t.prototype.startPerformanceMeasuremeant=function(){return new i},t.prototype.startPerformanceMeasurement=function(){return new i},t.prototype.calculateQueuedTime=function(e,t){return 0},t.prototype.addQueueMeasurement=function(e,t,n){},t.prototype.setPreQueueTime=function(e,t){},t}(o.a)},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(120),o=n(14),i=function(){function e(e){this.validateWindowStorage(e),this.windowStorage=window[e]}return e.prototype.validateWindowStorage=function(e){if(e!==o.b.LocalStorage&&e!==o.b.SessionStorage)throw r.a.createStorageNotSupportedError(e);if(!!!window[e])throw r.a.createStorageNotSupportedError(e)},e.prototype.getItem=function(e){return this.windowStorage.getItem(e)},e.prototype.setItem=function(e,t){this.windowStorage.setItem(e,t)},e.prototype.removeItem=function(e){this.windowStorage.removeItem(e)},e.prototype.getKeys=function(){return Object.keys(this.windowStorage)},e.prototype.containsKey=function(e){return this.windowStorage.hasOwnProperty(e)},e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(9),o=n(6),i=n(15),a=n(14),s=function(){function e(){}return e.prototype.sendGetRequestAsync=function(e,t){return Object(r.b)(this,void 0,void 0,function(){var n,o,s;return Object(r.d)(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,fetch(e,{method:a.i.GET,headers:this.getFetchHeaders(t)})];case 1:return n=r.sent(),[3,3];case 2:throw o=r.sent(),window.navigator.onLine?i.a.createGetRequestFailedError(o,e):i.a.createNoNetworkConnectivityError();case 3:return r.trys.push([3,5,,6]),s={headers:this.getHeaderDict(n.headers)},[4,n.json()];case 4:return[2,(s.body=r.sent(),s.status=n.status,s)];case 5:throw r.sent(),i.a.createFailedToParseNetworkResponseError(e);case 6:return[2]}})})},e.prototype.sendPostRequestAsync=function(e,t){return Object(r.b)(this,void 0,void 0,function(){var n,s,c,u;return Object(r.d)(this,function(r){switch(r.label){case 0:n=t&&t.body||o.r.EMPTY_STRING,r.label=1;case 1:return r.trys.push([1,3,,4]),[4,fetch(e,{method:a.i.POST,headers:this.getFetchHeaders(t),body:n})];case 2:return s=r.sent(),[3,4];case 3:throw c=r.sent(),window.navigator.onLine?i.a.createPostRequestFailedError(c,e):i.a.createNoNetworkConnectivityError();case 4:return r.trys.push([4,6,,7]),u={headers:this.getHeaderDict(s.headers)},[4,s.json()];case 5:return[2,(u.body=r.sent(),u.status=s.status,u)];case 6:throw r.sent(),i.a.createFailedToParseNetworkResponseError(e);case 7:return[2]}})})},e.prototype.getFetchHeaders=function(e){var t=new Headers;if(!e||!e.headers)return t;var n=e.headers;
2return Object.keys(n).forEach(function(e){t.append(e,n[e])}),t},e.prototype.getHeaderDict=function(e){var t={};return e.forEach(function(e,n){t[n]=e}),t},e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(9),o=n(15),i=n(14),a=function(){function e(){}return e.prototype.sendGetRequestAsync=function(e,t){return Object(r.b)(this,void 0,void 0,function(){return Object(r.d)(this,function(n){return[2,this.sendRequestAsync(e,i.i.GET,t)]})})},e.prototype.sendPostRequestAsync=function(e,t){return Object(r.b)(this,void 0,void 0,function(){return Object(r.d)(this,function(n){return[2,this.sendRequestAsync(e,i.i.POST,t)]})})},e.prototype.sendRequestAsync=function(e,t,n){var r=this;return new Promise(function(a,s){var c=new XMLHttpRequest;if(c.open(t,e,!0),r.setXhrHeaders(c,n),c.onload=function(){(c.status<200||c.status>=300)&&(t===i.i.POST?s(o.a.createPostRequestFailedError("Failed with status "+c.status,e)):s(o.a.createGetRequestFailedError("Failed with status "+c.status,e)));try{var n=JSON.parse(c.responseText),u={headers:r.getHeaderDict(c),body:n,status:c.status};a(u)}catch(t){s(o.a.createFailedToParseNetworkResponseError(e))}},c.onerror=function(){window.navigator.onLine?t===i.i.POST?s(o.a.createPostRequestFailedError("Failed with status "+c.status,e)):s(o.a.createGetRequestFailedError("Failed with status "+c.status,e)):s(o.a.createNoNetworkConnectivityError())},t===i.i.POST&&n&&n.body)c.send(n.body);else{if(t!==i.i.GET)throw o.a.createHttpMethodNotImplementedError(t);c.send()}})},e.prototype.setXhrHeaders=function(e,t){if(t&&t.headers){var n=t.headers;Object.keys(n).forEach(function(t){e.setRequestHeader(t,n[t])})}},e.prototype.getHeaderDict=function(e){var t={};return e.getAllResponseHeaders().trim().split(/[\r\n]+/).forEach(function(e){var n=e.split(": "),r=n.shift(),o=n.join(": ");r&&o&&(t[r]=o)}),t},e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(){function e(){}return e.decimalToHex=function(e){for(var t=e.toString(16);t.length<2;)t="0"+t;return t},e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(6),o=n(124),i=function(){function e(){}return e.prototype.decode=function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("Invalid base64 string")}var n=this.base64DecToArr(t);return o.a.utf8ArrToString(n)},e.prototype.base64DecToArr=function(e,t){for(var n=e.replace(/[^A-Za-z0-9\+\/]/g,r.r.EMPTY_STRING),o=n.length,i=t?Math.ceil((3*o+1>>>2)/t)*t:3*o+1>>>2,a=new Uint8Array(i),s=void 0,c=void 0,u=0,l=0,d=0;d<o;d++)if(c=3&d,u|=this.b64ToUint6(n.charCodeAt(d))<<18-6*c,3===c||o-d==1){for(s=0;s<3&&l<i;s++,l++)a[l]=u>>>(16>>>s&24)&255;u=0}return a},e.prototype.b64ToUint6=function(e){return e>64&&e<91?e-65:e>96&&e<123?e-71:e>47&&e<58?e+4:43===e?62:47===e?63:0},e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(9),o=n(15),i=n(322),a=function(){function e(e){this.base64Encode=new i.a,this.cryptoObj=e}return e.prototype.generateCodes=function(){return Object(r.b)(this,void 0,void 0,function(){var e,t;return Object(r.d)(this,function(n){switch(n.label){case 0:return e=this.generateCodeVerifier(),[4,this.generateCodeChallengeFromVerifier(e)];case 1:return t=n.sent(),[2,{verifier:e,challenge:t}]}})})},e.prototype.generateCodeVerifier=function(){try{var e=new Uint8Array(32);return this.cryptoObj.getRandomValues(e),this.base64Encode.urlEncodeArr(e)}catch(e){throw o.a.createPkceNotGeneratedError(e)}},e.prototype.generateCodeChallengeFromVerifier=function(e){return Object(r.b)(this,void 0,void 0,function(){var t,n;return Object(r.d)(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.cryptoObj.sha256Digest(e)];case 1:return t=r.sent(),[2,this.base64Encode.urlEncodeArr(new Uint8Array(t))];case 2:throw n=r.sent(),o.a.createPkceNotGeneratedError(n);case 3:return[2]}})})},e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(9),o=n(14),i=function(){function e(){}return e.prototype.getRandomValues=function(e){return window.crypto.getRandomValues(e)},e.prototype.generateKey=function(e,t,n){return Object(r.b)(this,void 0,void 0,function(){return Object(r.d)(this,function(r){return[2,window.crypto.subtle.generateKey(e,t,n)]})})}
2,e.prototype.exportKey=function(e){return Object(r.b)(this,void 0,void 0,function(){return Object(r.d)(this,function(t){return[2,window.crypto.subtle.exportKey(o.m,e)]})})},e.prototype.importKey=function(e,t,n,i){return Object(r.b)(this,void 0,void 0,function(){return Object(r.d)(this,function(r){return[2,window.crypto.subtle.importKey(o.m,e,t,n,i)]})})},e.prototype.sign=function(e,t,n){return Object(r.b)(this,void 0,void 0,function(){return Object(r.d)(this,function(r){return[2,window.crypto.subtle.sign(e,t,n)]})})},e.prototype.digest=function(e,t){return Object(r.b)(this,void 0,void 0,function(){return Object(r.d)(this,function(n){return[2,window.crypto.subtle.digest(e,t)]})})},e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(9),o=n(14),i=function(){function e(){}return e.prototype.initPrng=function(e){return window.msrCrypto.initPrng(Object(r.f)(e))},e.prototype.getRandomValues=function(e){return window.msrCrypto.getRandomValues(e)},e.prototype.generateKey=function(e,t,n){return Object(r.b)(this,void 0,void 0,function(){return Object(r.d)(this,function(r){return[2,window.msrCrypto.subtle.generateKey(e,t,n)]})})},e.prototype.exportKey=function(e){return Object(r.b)(this,void 0,void 0,function(){return Object(r.d)(this,function(t){return[2,window.msrCrypto.subtle.exportKey(o.m,e)]})})},e.prototype.importKey=function(e,t,n,i){return Object(r.b)(this,void 0,void 0,function(){return Object(r.d)(this,function(r){return[2,window.msrCrypto.subtle.importKey(o.m,e,t,n,i)]})})},e.prototype.sign=function(e,t,n){return Object(r.b)(this,void 0,void 0,function(){return Object(r.d)(this,function(r){return[2,window.msrCrypto.subtle.sign(e,t,n)]})})},e.prototype.digest=function(e,t){return Object(r.b)(this,void 0,void 0,function(){return Object(r.d)(this,function(n){return[2,window.msrCrypto.subtle.digest(e,t)]})})},e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(9),o=n(6),i=n(14),a=n(124),s=function(){function e(){}return e.prototype.getRandomValues=function(e){return window.msCrypto.getRandomValues(e)},e.prototype.generateKey=function(e,t,n){return Object(r.b)(this,void 0,void 0,function(){return Object(r.d)(this,function(r){return[2,new Promise(function(r,o){var i=window.msCrypto.subtle.generateKey(e,t,n);i.addEventListener("complete",function(e){r(e.target.result)}),i.addEventListener("error",function(e){o(e)})})]})})},e.prototype.exportKey=function(e){return Object(r.b)(this,void 0,void 0,function(){return Object(r.d)(this,function(t){return[2,new Promise(function(t,n){var r=window.msCrypto.subtle.exportKey(i.m,e);r.addEventListener("complete",function(e){var r=e.target.result,i=a.a.utf8ArrToString(new Uint8Array(r)).replace(/\r/g,o.r.EMPTY_STRING).replace(/\n/g,o.r.EMPTY_STRING).replace(/\t/g,o.r.EMPTY_STRING).split(" ").join(o.r.EMPTY_STRING).replace("\0",o.r.EMPTY_STRING);try{t(JSON.parse(i))}catch(e){n(e)}}),r.addEventListener("error",function(e){n(e)})})]})})},e.prototype.importKey=function(e,t,n,o){return Object(r.b)(this,void 0,void 0,function(){var s,c;return Object(r.d)(this,function(r){return s=a.a.getSortedObjectString(e),c=a.a.stringToArrayBuffer(s),[2,new Promise(function(e,r){var a=window.msCrypto.subtle.importKey(i.m,c,t,n,o);a.addEventListener("complete",function(t){e(t.target.result)}),a.addEventListener("error",function(e){r(e)})})]})})},e.prototype.sign=function(e,t,n){return Object(r.b)(this,void 0,void 0,function(){return Object(r.d)(this,function(r){return[2,new Promise(function(r,o){var i=window.msCrypto.subtle.sign(e,t,n);i.addEventListener("complete",function(e){r(e.target.result)}),i.addEventListener("error",function(e){o(e)})})]})})},e.prototype.digest=function(e,t){return Object(r.b)(this,void 0,void 0,function(){return Object(r.d)(this,function(n){return[2,new Promise(function(n,r){var o=window.msCrypto.subtle.digest(e,t.buffer);o.addEventListener("complete",function(e){n(e.target.result)}),o.addEventListener("error",function(e){r(e)})})]})})},e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r,o=n(9),i=n(747);!function(e){e.asymmetricKeys="asymmetricKeys",e.symmetricKeys="symmetricKeys"}(r||(r={}));var a=function(){function e(e){this.logger=e,this.asymmetricKeys=new i.a(this.logger,r.asymmetricKeys),this.symmetricKeys=new i.a(this.logger,r.symmetricKeys)}return e.prototype.clear=function(){return Object(o.b)(this,void 0,void 0,function(){var e;return Object(o.d)(this,function(t){switch(t.label){case 0:this.asymmetricKeys.clearInMemory(),this.symmetricKeys.clearInMemory(),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.asymmetricKeys.clearPersistent
2()];case 2:return t.sent(),[2,!0];case 3:return(e=t.sent())instanceof Error?this.logger.error("Clearing keystore failed with error: "+e.message):this.logger.error("Clearing keystore failed with unknown error"),[2,!1];case 4:return[2]}})})},e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(9),o=n(15),i=n(748),a=n(310),s=function(){function e(e,t){this.inMemoryCache=new a.a,this.indexedDBCache=new i.a,this.logger=e,this.storeName=t}return e.prototype.handleDatabaseAccessError=function(e){if(!(e instanceof o.a&&e.errorCode===o.b.databaseUnavailable.code))throw e;this.logger.error("Could not access persistent storage. This may be caused by browser privacy features which block persistent storage in third-party contexts.")},e.prototype.getItem=function(e){return Object(r.b)(this,void 0,void 0,function(){var t,n;return Object(r.d)(this,function(r){switch(r.label){case 0:if(t=this.inMemoryCache.getItem(e))return[3,4];r.label=1;case 1:return r.trys.push([1,3,,4]),this.logger.verbose("Queried item not found in in-memory cache, now querying persistent storage."),[4,this.indexedDBCache.getItem(e)];case 2:return[2,r.sent()];case 3:return n=r.sent(),this.handleDatabaseAccessError(n),[3,4];case 4:return[2,t]}})})},e.prototype.setItem=function(e,t){return Object(r.b)(this,void 0,void 0,function(){var n;return Object(r.d)(this,function(r){switch(r.label){case 0:this.inMemoryCache.setItem(e,t),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.indexedDBCache.setItem(e,t)];case 2:return r.sent(),[3,4];case 3:return n=r.sent(),this.handleDatabaseAccessError(n),[3,4];case 4:return[2]}})})},e.prototype.removeItem=function(e){return Object(r.b)(this,void 0,void 0,function(){var t;return Object(r.d)(this,function(n){switch(n.label){case 0:this.inMemoryCache.removeItem(e),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.indexedDBCache.removeItem(e)];case 2:return n.sent(),[3,4];case 3:return t=n.sent(),this.handleDatabaseAccessError(t),[3,4];case 4:return[2]}})})},e.prototype.getKeys=function(){return Object(r.b)(this,void 0,void 0,function(){var e,t;return Object(r.d)(this,function(n){switch(n.label){case 0:if(0!==(e=this.inMemoryCache.getKeys()).length)return[3,4];n.label=1;case 1:return n.trys.push([1,3,,4]),this.logger.verbose("In-memory cache is empty, now querying persistent storage."),[4,this.indexedDBCache.getKeys()];case 2:return[2,n.sent()];case 3:return t=n.sent(),this.handleDatabaseAccessError(t),[3,4];case 4:return[2,e]}})})},e.prototype.containsKey=function(e){return Object(r.b)(this,void 0,void 0,function(){var t,n;return Object(r.d)(this,function(r){switch(r.label){case 0:if(t=this.inMemoryCache.containsKey(e))return[3,4];r.label=1;case 1:return r.trys.push([1,3,,4]),this.logger.verbose("Key not found in in-memory cache, now querying persistent storage."),[4,this.indexedDBCache.containsKey(e)];case 2:return[2,r.sent()];case 3:return n=r.sent(),this.handleDatabaseAccessError(n),[3,4];case 4:return[2,t]}})})},e.prototype.clearInMemory=function(){this.logger.verbose("Deleting in-memory keystore "+this.storeName),this.inMemoryCache.clear(),this.logger.verbose("In-memory keystore "+this.storeName+" deleted")},e.prototype.clearPersistent=function(){return Object(r.b)(this,void 0,void 0,function(){var e,t;return Object(r.d)(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),this.logger.verbose("Deleting persistent keystore"),[4,this.indexedDBCache.deleteDatabase()];case 1:return(e=n.sent())&&this.logger.verbose("Persistent keystore deleted"),[2,e];case 2:return t=n.sent(),this.handleDatabaseAccessError(t),[2,!1];case 3:return[2]}})})},e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(9),o=n(15),i=n(14),a=function(){function e(){this.dbName=i.e,this.version=i.g,this.tableName=i.f,this.dbOpen=!1}return e.prototype.open=function(){return Object(r.b)(this,void 0,void 0,function(){var e=this;return Object(r.d)(this,function(t){return[2,new Promise(function(t,n){var r=window.indexedDB.open(e.dbName,e.version);r.addEventListener("upgradeneeded",function(t){t.target.result.createObjectStore(e.tableName)}),r.addEventListener("success",function(n){var r=n;e.db=r.target.result,e.dbOpen=!0,t()}),r.addEventListener("error",function(){return n(o.a.createDatabaseUnavailableError())})})]})})},e.prototype.closeConnection=function(){var e=this.db;e&&this.dbOpen&&(e.close(),this.dbOpen=!1)},e.prototype.validateDbIsOpen=function(){return Object(r.b)(this,void 0,void 0,function(){return Object(r.d)(this,function(e){switch(e.label){case 0:return this.dbOpen?[3,2]:[4,this.open()];case 1:return[2,e.sent()];case 2:return[2]}})})},e.prototype.getItem=function(e){return Object(r.b)(this,void 0,void 0,function(){var t=this;return Object(r.d)(this,function(n){switch(n.label){case 0:return[4,this.validateDbIsOpen()];case 1:return n.sent(),[2,new Promise(function(n,r){if(!t.db)return r(o.a.createDatabaseNotOpenError());var i=t.db.transaction([t.tableName],"readonly").objectStore(t.tableName).get(e);i.addEventListener("success",function(e){var r=e;t.closeConnection(),n(r.target.result)}),i.addEventListener("error",function(e){t.closeConnection(),r(e)})})]}})})},e.prototype.setItem=function(e,t){return Object(r.b)(this,void 0,void 0,function(){var n=this;return Object(r.d)(this,function(r){switch(r.label){case 0:return[4,this.validateDbIsOpen()];case 1:return r.sent(),[2,new Promise(function(r,i){if(!n.db)return i(o.a.createDatabaseNotOpenError());var a=n.db.transaction([n.tableName],"readwrite").objectStore(n.tableName).put(t,e);a.addEventListener("success",function(){n.closeConnection(),r()}),a.addEventListener("error",function(e){n.closeConnection(),i(e)})})]}})})},e.prototype.removeItem=function(e){return Object(r.b)(this,void 0,void 0,function(){var t=this;return Object(r.d)(this,function(n){switch(n.label){case 0:return[4,this.validateDbIsOpen()];case 1:return n.sent(),[2,new Promise(function(n,r){if(!t.db)return r(o.a.createDatabaseNotOpenError());var i=t.db.transaction([t.tableName],"readwrite").objectStore(t.tableName).delete(e);i.addEventListener("success",function(){t.closeConnection(),n()}),i.addEventListener("error",function(e){t.closeConnection(),r(e)})})]}})})},e.prototype.getKeys=function(){return Object(r.b)(this,void 0,void 0,function(){var e=this;return Object(r.d)(this,function(t){switch(t.label){case 0:return[4,this.validateDbIsOpen()];case 1:return t.sent(),[2,new Promise(function(t,n){if(!e.db)return n(o.a.createDatabaseNotOpenError());var r=e.db.transaction([e.tableName],"readonly").objectStore(e.tableName).getAllKeys();r.addEventListener("success",function(n){var r=n;e.closeConnection(),t(r.target.result)}),r.addEventListener("error",function(t){e.closeConnection(),n(t)})})]}})})},e.prototype.containsKey=function(e){return Object(r.b)(this,void 0,void 0,function(){var t=this;return Object(r.d)(this,function(n){switch(n.label){case 0:return[4,this.validateDbIsOpen()];case 1:return n.sent(),[2,new Promise(function(n,r){if(!t.db)return r(o.a.createDatabaseNotOpenError());var i=t.db.transaction([t.tableName],"readonly").objectStore(t.tableName).count(e);i.addEventListener("success",function(e){var r=e;t.closeConnection(),n(1===r.target.result)}),i.addEventListener("error",function(e){t.closeConnection(),r(e)})})]}})})},e.prototype.deleteDatabase=function(){return Object(r.b)(this,void 0,void 0,function(){return Object(r.d)(this,function(e){return this.db&&this.dbOpen&&this.closeConnection(),[2,new Promise(function(e,t){var n=window.indexedDB.deleteDatabase(i.e);n.addEventListener("success",function(){return e(!0)}),n.addEventListener("blocked",function(){return e(!0)}),n.addEventListener("error",function(){return t(!1)})})]})})},e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return p});var r=n(9),o=n(6),i=n(14),a=n(750),s=n(78),c=n(15),u=n(123),l=n(93),d=n(66),p=function(e){function t(t){var n=e.call(this,t)||this;return n.astsAsyncMeasurement=void 0,n.activeSilentTokenRequests=new Map,n.trackPageVisibility=n.trackPageVisibility.bind(n),n}return Object(r.c)(t,e),t.prototype.loginRedirect=function(e){return Object(r.b)(this,void 0,void 0,function(){var t;return Object(r.d)(this,function(n){return t=this.getRequestCorrelationId(e),this.logger.verbose("loginRedirect called",t),[2,this.acquireTokenRedirect(Object(r.a)({correlationId:t},e||i.h))]})})},t.prototype.loginPopup=function(e){var t=this.getRequestCorrelationId(e);return this.logger.verbose("loginPopup called",t),this.acquireTokenPopup(Object(r.a)({correlationId:t},e||i.h))},t.prototype.acquireTokenSilent=function(e){return Object(r.b)(this,void 0,void 0,function(){var t,n,a,s,u,l,d,p=this;return Object(r.d)(this,function(h){if(t=this.getRequestCorrelationId(e),(n=this.performanceClient.startMeasurement(o.E.AcquireTokenSilent,t)).addStaticFields({cacheLookupPolicy:e.cacheLookupPolicy}),this.preflightBrowserEnvironmentCheck(i.l.Silent),this.logger.verbose("acquireTokenSilent called",t),!(a=e.account||this.getActiveAccount()))throw c.a.createNoAccountError();return s={clientId:this.config.auth.clientId,authority:e.authority||o.r.EMPTY_STRING,scopes:e.scopes,homeAccountIdentifier:a.homeAccountId,claims:e.claims,authenticationScheme:e.authenticationScheme,resourceRequestMethod:e.resourceRequestMethod,resourceRequestUri:e.resourceRequestUri,shrClaims:e.shrClaims,sshKid:e.sshKid},u=JSON.stringify(s),void 0===(l=this.activeSilentTokenRequests.get(u))?(this.logger.verbose("acquireTokenSilent called for the first time, storing active request",t),this.performanceClient.setPreQueueTime(o.E.AcquireTokenSilentAsync,t),d=this.acquireTokenSilentAsync(Object(r.a)(Object(r.a)({},e),{correlationId:t}),a).then(function(t){return p.activeSilentTokenRequests.delete(u),n.addStaticFields({accessTokenSize:t.accessToken.length,idTokenSize:t.idToken.length}),n.endMeasurement({success:!0,fromCache:t.fromCache,isNativeBroker:t.fromNativeBroker,cacheLookupPolicy:e.cacheLookupPolicy,requestId:t.requestId}),t}).catch(function(e){throw p.activeSilentTokenRequests.delete(u),n.endMeasurement({errorCode:e.errorCode,subErrorCode:e.subError,success:!1}),e}),this.activeSilentTokenRequests.set(u,d),[2,d]):(this.logger.verbose("acquireTokenSilent has been called previously, returning the result from the first call",t),n.discardMeasurement(),[2,l])})})},t.prototype.trackPageVisibility=function(){this.astsAsyncMeasurement&&(this.logger.info("Perf: Visibility change detected"),this.astsAsyncMeasurement.increment({visibilityChangeCount:1}))},t.prototype.acquireTokenSilentAsync=function(e,t){var n;return Object(r.b)(this,void 0,void 0,function(){var a,c,p,h,f,m=this;return Object(r.d)(this,function(g){switch(g.label){case 0:return this.performanceClient.addQueueMeasurement(o.E.AcquireTokenSilentAsync,e.correlationId),this.eventHandler.emitEvent(s.a.ACQUIRE_TOKEN_START,i.l.Silent,e),this.astsAsyncMeasurement=this.performanceClient.startMeasurement(o.E.AcquireTokenSilentAsync,e.correlationId),null===(n=this.astsAsyncMeasurement)||void 0===n||n.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibility),l.a.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,e.authenticationScheme)&&t.nativeAccountId?(this.logger.verbose("acquireTokenSilent - attempting to acquire token from native platform"),c=Object(r.a)(Object(r.a)({},e),{account:t}),a=this.acquireTokenNative(c,i.a.acquireTokenSilent_silentFlow).catch(function(t){return Object(r.b)(m,void 0,void 0,function(){return Object(r.d)(this,function(n){if(t instanceof u.a&&t.isFatal())return this.logger.verbose("acquireTokenSilent - native platform unavailable, falling back to web flow"),this.nativeExtensionProvider=void 0,[2,this.createSilentIframeClient(e.correlationId).acquireToken(e)];throw t})})}),[3,3]):[3,1];case 1:return this.logger.verbose("acquireTokenSilent - attempting to acquire token from web flow"),p=this.createSilentCacheClient(e.correlationId),this.performanceClient.setPreQueueTime(o.E.InitializeSilentRequest,e.correlationId),[4,p.initializeSilentRequest(e,t)];case 2:h=g.sent(),f=Object(r.a)(Object(r.a)({},e),{cacheLookupPolicy:e.cacheLookupPolicy||i.d.Default}),this.performanceClient.setPreQueueTime(o.E.AcquireTokenFromCache,h.correlationId),a=this.acquireTokenFromCache(p,h,f).catch(function(t){if(f.cacheLookupPolicy===i.d.AccessToken)throw t;return d.a.blockReloadInHiddenIframes(),m.eventHandler.emitEvent(s.a.ACQUIRE_TOKEN_NETWORK_START,i.l.Silent,h),m.performanceClient.setPreQueueTime(o.E.AcquireTokenByRefreshToken,h.correlationId),m.acquireTokenByRefreshToken(h,f).catch(function(t){var n=t instanceof o.O,r=t instanceof o.x,a=t.errorCode===o.y.noTokensFoundError.code,s=t.errorCode===i.c.INVALID_GRANT_ERROR;if((!n||!s||r||f.cacheLookupPolicy===i.d.AccessTokenAndRefreshToken||f.cac
2heLookupPolicy===i.d.RefreshToken)&&f.cacheLookupPolicy!==i.d.Skip&&!a)throw t;return m.logger.verbose("Refresh token expired/invalid or CacheLookupPolicy is set to Skip, attempting acquire token by iframe.",e.correlationId),m.performanceClient.setPreQueueTime(o.E.AcquireTokenBySilentIframe,h.correlationId),m.acquireTokenBySilentIframe(h)})}),g.label=3;case 3:return[2,a.then(function(e){var t;return m.eventHandler.emitEvent(s.a.ACQUIRE_TOKEN_SUCCESS,i.l.Silent,e),null===(t=m.astsAsyncMeasurement)||void 0===t||t.endMeasurement({success:!0,fromCache:e.fromCache,isNativeBroker:e.fromNativeBroker,requestId:e.requestId}),e}).catch(function(e){var t;throw m.eventHandler.emitEvent(s.a.ACQUIRE_TOKEN_FAILURE,i.l.Silent,null,e),null===(t=m.astsAsyncMeasurement)||void 0===t||t.endMeasurement({errorCode:e.errorCode,subErrorCode:e.subError,success:!1}),e}).finally(function(){document.removeEventListener("visibilitychange",m.trackPageVisibility)})]}})})},t.prototype.hydrateCache=function(e,t){return Object(r.b)(this,void 0,void 0,function(){var n;return Object(r.d)(this,function(r){return this.logger.verbose("hydrateCache called"),e.account?(n=o.b.createFromAccountInfo(e.account,e.cloudGraphHostName,e.msGraphHost),this.browserStorage.setAccount(n),e.fromNativeBroker?(this.logger.verbose("Response was from native broker, storing in-memory"),[2,this.nativeInternalStorage.hydrateCache(e,t)]):[2,this.browserStorage.hydrateCache(e,t)]):[2]})})},t}(a.a)},function(e,t,n){"use strict";n.d(t,"a",function(){return I});var r=n(9),o=n(209),i=n(6),a=n(291),s=n(208),c=n(14),u=n(66),l=n(121
2),d=n(78),p=n(120),h=n(320),f=n(315),m=n(313),g=n(316),y=n(319),v=n(751),b=n(122),S=n(93),E=n(123),C=n(207),T=n(752),w=n(15),_=n(324),I=function(){function e(e){this.isBrowserEnvironment="undefined"!=typeof window,this.config=Object(s.b)(e,this.isBrowserEnvironment),this.initialized=!1,this.logger=new i.B(this.config.system.loggerOptions,l.a,l.b),this.networkClient=this.config.system.networkClient,this.navigationClient=this.config.system.navigationClient,this.redirectResponse=new Map,this.hybridAuthCodeResponses=new Map,this.performanceClient=this.isBrowserEnvironment?new _.a(this.config.auth.clientId,this.config.auth.authority,this.logger,l.a,l.b,this.config.telemetry.application,this.config.system.cryptoOptions):new i.T(this.config.auth.clientId,this.config.auth.authority,this.logger,l.a,l.b,this.config.telemetry.application),this.browserCrypto=this.isBrowserEnvironment?new o.a(this.logger,this.performanceClient,this.config.system.cryptoOptions):i.t,this.eventHandler=new h.a(this.logger,this.browserCrypto),this.browserStorage=this.isBrowserEnvironment?new a.a(this.config.auth.clientId,this.config.cache,this.browserCrypto,this.logger):Object(a.b)(this.config.auth.clientId,this.logger);var t={cacheLocation:c.b.MemoryStorage,temporaryCacheLocation:c.b.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1,claimsBasedCachingEnabled:!0};this.nativeInternalStorage=new a.a(this.config.auth.clientId,t,this.browserCrypto,this.logger),this.tokenCache=new v.a(this.config,this.browserStorage,this.logger,this.browserCrypto),this.trackPageVisibilityWithMeasurement=this.trackPageVisibilityWithMeasurement.bind(this)}return e.prototype.initialize=function(){return Object(r.b)(this,void 0,void 0,function(){var e,t,n,o,a;return Object(r.d)(this,function(r){switch(r.label){case 0:if(this.logger.trace("initialize called"),this.initialized)return this.logger.info("initialize has already been called, exiting early."),[2];if(e=this.config.system.allowNativeBroker,t=this.performanceClient.startMeasurement(i.E.InitializeClientApplication),this.eventHandler.emitEvent(d.a.INITIALIZE_START),!e)return[3,4];r.label=1;case 1:return r.trys.push([1,3,,4]),n=this,[4,S.a.createProvider(this.logger,this.config.system.nativeBrokerHandshakeTimeout,this.performanceClient)];case 2:return n.nativeExtensionProvider=r.sent(),[3,4];case 3:return o=r.sent(),this.logger.verbose(o),[3,4];case 4:return this.config.cache.claimsBasedCachingEnabled?[3,6]:(this.logger.verbose("Claims-based caching is disabled. Clearing the previous cache with claims"),a=this.performanceClient.startMeasurement(i.E.ClearTokensAndKeysWithClaims),[4,this.browserStorage.clearTokensAndKeysWithClaims()]);case 5:r.sent(),a.endMeasurement({success:!0}),r.label=6;case 6:return this.initialized=!0,this.eventHandler.emitEvent(d.a.INITIALIZE_END),t.endMeasurement({allowNativeBroker:e,success:!0}),[2]}})})},e.prototype.handleRedirectPromise=function(e){return Object(r.b)(this,void 0,void 0,function(){var t,n,o,a,s,l,p,h,f=this;return Object(r.d)(this,function(r){return this.logger.verbose("handleRedirectPromise called"),u.a.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),t=this.getAllAccounts(),this.isBrowserEnvironment?(n=e||i.r.EMPTY_STRING,void 0===(o=this.redirectResponse.get(n))?(this.eventHandler.emitEvent(d.a.HANDLE_REDIRECT_START,c.l.Redirect),this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise"),a=this.browserStorage.getCachedNativeRequest(),s=void 0,a&&S.a.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider)&&this.nativeExtensionProvider&&!e?(this.logger.trace("handleRedirectPromise - acquiring token from native platform"),l=new b.a(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,c.a.handleRedirectPromise,this.performanceClient,this.nativeExtensionProvider,a.accountId,this.nativeInternalStorage,a.correlationId),s=l.handleRedirectPromise()):(this.logger.trace("handleRedirectPromise - acquiring token from web flow"),p=this.browserStorage.getTemporaryCache(c.q.CORRELATION_ID,!0)||i.r.EMPTY_STRING,h=this.createRedirectClient(p),s=h.handleRedirectPromise(e)),o=s.then(function(e){e&&(t.length<f.getAllAccounts().length?(f.eventHandler.emitEvent(d.a.LOGIN_SUCCESS,c.l.Redirect,e),f.logger.verbose("handleRedirectResponse returned result, login success")):(f.eventHandler.emitEvent(d.a.ACQUIRE_TOKEN_SUCCESS,c.l.Redirect,e),f.logger.verbose("handleRedirectResponse returned result, acquire token success")));return f.eventHandler.emitEvent(d.a.HANDLE_REDIRECT_END,c.l.Redirect),e}).catch(function(e){throw t.length>0?f.eventHandler.emitEvent(d.a.ACQUIRE_TOKEN_FAILURE,c.l.Redirect,null,e):f.eventHandler.emitEvent(d.a.LOGIN_FAILURE,c.l.Redirect,null,e),f.eventHandler.emitEvent(d.a.HANDLE_REDIRECT_END,c.l.Redirect),e}),this.redirectResponse.set(n,o)):this.logger.verbose("handleRedirectPromise has been called previously, returning the result from the first call"),[2,o
2]):(this.logger.verbose("handleRedirectPromise returns null, not browser environment"),[2,null])})})},e.prototype.acquireTokenRedirect=function(e){return Object(r.b)(this,void 0,void 0,function(){var t,n,o,a,s,u=this;return Object(r.d)(this,function(r){return t=this.getRequestCorrelationId(e),this.logger.verbose("acquireTokenRedirect called",t),this.preflightBrowserEnvironmentCheck(c.l.Redirect),(n=this.getAllAccounts().length>0)?this.eventHandler.emitEvent(d.a.ACQUIRE_TOKEN_START,c.l.Redirect,e):this.eventHandler.emitEvent(d.a.LOGIN_START,c.l.Redirect,e),this.nativeExtensionProvider&&this.canUseNative(e)?(a=new b.a(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,c.a.acquireTokenRedirect,this.performanceClient,this.nativeExtensionProvider,this.getNativeAccountId(e),this.nativeInternalStorage,e.correlationId),o=a.acquireTokenRedirect(e).catch(function(t){if(t instanceof E.a&&t.isFatal())return u.nativeExtensionProvider=void 0,u.createRedirectClient(e.correlationId).acquireToken(e);if(t instanceof i.x)return u.logger.verbose("acquireTokenRedirect - Resolving interaction required error thrown by native broker by falling back to web flow"),u.createRedirectClient(e.correlationId).acquireToken(e);throw u.browserStorage.setInteractionInProgress(!1),t})):(s=this.createRedirectClient(e.correlationId),o=s.acquireToken(e)),[2,o.catch(function(e){throw n?u.eventHandler.emitEvent(d.a.ACQUIRE_TOKEN_FAILURE,c.l.Redirect,null,e):u.eventHandler.emitEvent(d.a.LOGIN_FAILURE,c.l.Redirect,null,e),e})]})})},e.prototype.acquireTokenPopup=function(e){var t=this,n=this.getRequestCorrelationId(e),r=this.performanceClient.startMeasurement(i.E.AcquireTokenPopup,n);try{this.logger.verbose("acquireTokenPopup called",n),this.preflightBrowserEnvironmentCheck(c.l.Popup)}catch(e){return Promise.reject(e)}var o,a=this.getAllAccounts();(a.length>0?this.eventHandler.emitEvent(d.a.ACQUIRE_TOKEN_START,c.l.Popup,e):this.eventHandler.emitEvent(d.a.LOGIN_START,c.l.Popup,e),this.canUseNative(e))?o=this.acquireTokenNative(e,c.a.acquireTokenPopup).then(function(e){return t.browserStorage.setInteractionInProgress(!1),r.endMeasurement({success:!0,isNativeBroker:!0,requestId:e.requestId}),e}).catch(function(n){if(n instanceof E.a&&n.isFatal())return t.nativeExtensionProvider=void 0,t.createPopupClient(e.correlationId).acquireToken(e);if(n instanceof i.x)return t.logger.verbose("acquireTokenPopup - Resolving interaction required error thrown by native broker by falling back to web flow"),t.createPopupClient(e.correlationId).acquireToken(e);throw t.browserStorage.setInteractionInProgress(!1),n}):o=this.createPopupClient(e.correlationId).acquireToken(e);return o.then(function(e){return a.length<t.getAllAccounts().length?t.eventHandler.emitEvent(d.a.LOGIN_SUCCESS,c.l.Popup,e):t.eventHandler.emitEvent(d.a.ACQUIRE_TOKEN_SUCCESS,c.l.Popup,e),r.addStaticFields({accessTokenSize:e.accessToken.length,idTokenSize:e.idToken.length}),r.endMeasurement({success:!0,requestId:e.requestId}),e}).catch(function(e){return a.length>0?t.eventHandler.emitEvent(d.a.ACQUIRE_TOKEN_FAILURE,c.l.Popup,null,e):t.eventHandler.emitEvent(d.a.LOGIN_FAILURE,c.l.Popup,null,e),r.endMeasurement({errorCode:e.errorCode,subErrorCode:e.subError,success:!1}),Promise.reject(e)})},e.prototype.trackPageVisibilityWithMeasurement=function(){var e=this.ssoSilentMeasurement||this.acquireTokenByCodeAsyncMeasurement;e&&(this.logger.info("Perf: Visibility change detected in ",e.event.name),e.increment({visibilityChangeCount:1}))},e.prototype.ssoSilent=function(e){var t;return Object(r.b)(this,void 0,void 0,function(){var n,o,a,s,u=this;return Object(r.d)(this,function(l){return n=this.getRequestCorrelationId(e),o=Object(r.a)(Object(r.a)({},e),{prompt:e.prompt,correlationId:n}),this.preflightBrowserEnvironmentCheck(c.l.Silent),this.ssoSilentMeasurement=this.performanceClient.startMeasurement(i.E.SsoSilent,n),null===(t=this.ssoSilentMeasurement)||void 0===t||t.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement),this.logger.verbose("ssoSilent called",n),this.eventHandler.emitEvent(d.a.SSO_SILENT_START,c.l.Silent,o),this.canUseNative(o)?a=this.acquireTokenNative(o,c.a.ssoSilent).catch(function(e){if(e instanceof E.a&&e.isFatal())return u.nativeExtensionProvider=void 0,u.createSilentIframeClient(o.correlationId).acquireToken(o);throw e}):(s=this.createSilentIframeClient(o.correlationId),a=s.acquireToken(o)),[2,a.then(function(e){var t,n;return u.eventHandler.emitEvent(d.a.SSO_SILENT_SUCCESS,c.l.Silent,e),null===(t=u.ssoSilentMeasurement)||void 0===t||t.addStaticFields({accessTokenSize:e.accessToken.length,idTokenSize:e.idToken.length}),null===(n=u.ssoSilentMeasurement)||void 0===n||n.endMeasurement({success:!0,isNativeBroker:e.fromNativeBroker,requestId:e.requestId}),e}).catch(function(e){var t;throw u.eventHandler.emitEvent(d.a.SSO_SILENT_FAILURE,c.l.Silent,null,e),null===(t=u.ssoSilentMeasurement)||void 0===t||t.endMeasurement({errorCode:e.errorCode,subErrorCode:e.subError,success:!1}),e}).finally(function(){document.removeEventListener("visibilitychange",u.trackPageVisibilityWithMeasurement)})]})})},e.prototype.acquireTokenByCode=function(e){return Object(r.b)(this,void 0,void 0,function(){var t,n,o,a,s=this;
2return Object(r.d)(this,function(u){t=this.getRequestCorrelationId(e),this.preflightBrowserEnvironmentCheck(c.l.Silent),this.logger.trace("acquireTokenByCode called",t),this.eventHandler.emitEvent(d.a.ACQUIRE_TOKEN_BY_CODE_START,c.l.Silent,e),n=this.performanceClient.startMeasurement(i.E.AcquireTokenByCode,e.correlationId);try{if(e.code&&e.nativeAccountId)throw w.a.createSpaCodeAndNativeAccountIdPresentError();if(e.code)return o=e.code,(a=this.hybridAuthCodeResponses.get(o))?(this.logger.verbose("Existing acquireTokenByCode request found",e.correlationId),n.discardMeasurement()):(this.logger.verbose("Initiating new acquireTokenByCode request",t),a=this.acquireTokenByCodeAsync(Object(r.a)(Object(r.a)({},e),{correlationId:t})).then(function(e){return s.eventHandler.emitEvent(d.a.ACQUIRE_TOKEN_BY_CODE_SUCCESS,c.l.Silent,e),s.hybridAuthCodeResponses.delete(o),n.addStaticFields({accessTokenSize:e.accessToken.length,idTokenSize:e.idToken.length}),n.endMeasurement({success:!0,isNativeBroker:e.fromNativeBroker,requestId:e.requestId}),e}).catch(function(e){throw s.hybridAuthCodeResponses.delete(o),s.eventHandler.emitEvent(d.a.ACQUIRE_TOKEN_BY_CODE_FAILURE,c.l.Silent,null,e),n.endMeasurement({errorCode:e.errorCode,subErrorCode:e.subError,success:!1}),e}),this.hybridAuthCodeResponses.set(o,a)),[2,a];if(e.nativeAccountId){if(this.canUseNative(e,e.nativeAccountId))return[2,this.acquireTokenNative(e,c.a.acquireTokenByCode,e.nativeAccountId).catch(function(e){throw e instanceof E.a&&e.isFatal()&&(s.nativeExtensionProvider=void 0),e})];throw w.a.createUnableToAcquireTokenFromNativePlatformError()}throw w.a.createAuthCodeOrNativeAccountIdRequiredError()}catch(e){throw this.eventHandler.emitEvent(d.a.ACQUIRE_TOKEN_BY_CODE_FAILURE,c.l.Silent,null,e),n.endMeasurement({errorCode:e instanceof i.d&&e.errorCode||void 0,subErrorCode:e instanceof i.d&&e.subError||void 0,success:!1}),e}return[2]})})},e.prototype.acquireTokenByCodeAsync=function(e){var t;return Object(r.b)(this,void 0,void 0,function(){var n=this;return Object(r.d)(this,function(r){switch(r.label){case 0:return this.logger.trace("acquireTokenByCodeAsync called",e.correlationId),this.acquireTokenByCodeAsyncMeasurement=this.performanceClient.startMeasurement(i.E.AcquireTokenByCodeAsync,e.correlationId),null===(t=this.acquireTokenByCodeAsyncMeasurement)||void 0===t||t.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement),[4,this.createSilentAuthCodeClient(e.correlationId).acquireToken(e).then(function(e){var t;return null===(t=n.acquireTokenByCodeAsyncMeasurement)||void 0===t||t.endMeasurement({success:!0,fromCache:e.fromCache,isNativeBroker:e.fromNativeBroker,requestId:e.requestId}),e}).catch(function(e){var t;throw null===(t=n.acquireTokenByCodeAsyncMeasurement)||void 0===t||t.endMeasurement({errorCode:e.errorCode,subErrorCode:e.subError,success:!1}),e}).finally(function(){document.removeEventListener("visibilitychange",n.trackPageVisibilityWithMeasurement)})];case 1:return[2,r.sent()]}})})},e.prototype.acquireTokenFromCache=function(e,t,n){return Object(r.b)(this,void 0,void 0,function(){return Object(r.d)(this,function(r){switch(this.performanceClient.addQueueMeasurement(i.E.AcquireTokenFromCache,t.correlationId),n.cacheLookupPolicy){case c.d.Default:case c.d.AccessToken:case c.d.AccessTokenAndRefreshToken:return[2,e.acquireToken(t)];default:throw i.p.createRefreshRequiredError()}return[2]})})},e.prototype.acquireTokenByRefreshToken=function(e,t){return Object(r.b)(this,void 0,void 0,function(){var n;return Object(r.d)(this,function(r){switch(this.performanceClient.addQueueMeasurement(i.E.AcquireTokenByRefreshToken,e.correlationId),t.cacheLookupPolicy){case c.d.Default:case c.d.AccessTokenAndRefreshToken:case c.d.RefreshToken:case c.d.RefreshTokenAndNetwork:return n=this.createSilentRefreshClient(e.correlationId),this.performanceClient.setPreQueueTime(i.E.SilentRefreshClientAcquireToken,e.correlationId),[2,n.acquireToken(e)];default:throw i.p.createRefreshRequiredError()}return[2]})})},e.prototype.acquireTokenBySilentIframe=function(e){return Object(r.b)(this,void 0,void 0,function(){var t;return Object(r.d)(this,function(n){return this.performanceClient.addQueueMeasurement(i.E.AcquireTokenBySilentIframe,e.correlationId),t=this.createSilentIframeClient(e.correlationId),this.performanceClient.setPreQueueTime(i.E.SilentIframeClientAcquireToken,e.correlationId),[2,t.acquireToken(e)]})})},e.prototype.logout=function(e){return Object(r.b)(this,void 0,void 0,function(){var t;return Object(r.d)(this,function(n){return t=this.getRequestCorrelationId(e),this.logger.warning("logout API is deprecated and will be removed in msal-browser v3.0.0. Use logoutRedirect instead.",t),[2,this.logoutRedirect(Object(r.a)({correlationId:t},e))]})})},e.prototype.logoutRedirect=function(e){return Object(r.b)(this,void 0,void 0,function(){var t;return Object(r.d)(this,function(n){return t=this.getRequestCorrelationId(e),this.preflightBrowserEnvironmentCheck(c.l.Redirect),[2,this.createRedirectClient(t).logout(e)]})})},e.prototype.logoutPopup=function(e){try{var t=this.getRequestCorrelationId(e);return this.preflightBrowserEnvironmentCheck(c.l.Popup),this.createPopupClient(t).logout(e)}catch(e){return Promise.reject(e)}},e.prototype.getAllAccounts=function(){return this.logger.verbose("getAllAccounts called"),this.isBrowserEnvironment?this.browserStorage.getAllAccounts():[]},e.prototype.getAccountByUsername=function(e){if(this.logger.trace("getAccountByUsername called"),!e)return this.logger.warning("getAccountByUsername: No username provided"),null;var t=this.browserStorage.getAccountInfoFilteredBy({username:e});return t?(this.logger.verbose("getAccountByUsername: Account matching username found, returning"),this.logger.verbosePii("getAccountByUsername: Returning signed-in accounts matching username: "+e),t):(this.logger.verbose("getAccountByUsername: No matching account found, returning null"),null)},e.prototype.getAccountByHomeId=function(e){if(this.logger.trace("getAccountByHomeId called"),!e)return this.logger.warning("getAccountByHomeId: No homeAccountId provided"),null;var t=this.browserStorage.getAccountInfoFilteredBy({homeAccountId:e});return t?(this.logger.verbose("getAccountByHomeId: Account matching homeAccountId found, returning"),this.logger.verbosePii("getAccountByHomeId: Returning signed-in accounts matching homeAccountId: "+e),t):(this.logger.verbose("getAccountByHomeId: No matching account found, returning null"),null)},e.prototype.getAccountByLocalId=function(e){if(this.logger.trace("getAccountByLocalId called"),!e)return this.logger.warning("getAccountByLocalId: No localAccountId provided"),null;var t=this.browserStorage.getAccountInfoFilteredBy({localAccountId:e});return t?(this.logger.verbose("getAccountByLocalId: Account matching localAccountId found, returning"),this.logger.verbosePii("getAccountByLocalId: Returning signed-in accounts matching localAccountId: "+e),t):(this.logger.verbose("getAccountByLocalId: No matching account found, returning null"),null)},e.prototype.setActiveAccount=function(e){this.browserStorage.setActiveAccount(e)},e.prototype.getActiveAccount=function(){return this.browserStorage.getActiveAccount()},e.prototype.preflightBrowserEnvironmentCheck=function(e,t){if(void 0===t&&(t=!0),this.logger.verbose("preflightBrowserEnvironmentCheck started"),u.a.blockNonBrowserEnvironment(this.isBrowserEnvironment),u.a.blockRedirectInIframe(e,this.config.system.allowRedirectInIframe),u.a.blockReloadInHiddenIframes(),u.a.blockAcquireTokenInPopups(),u.a.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),e===c.l.Redirect&&this.config.cache.cac
2heLocation===c.b.MemoryStorage&&!this.config.cache.storeAuthStateInCookie)throw p.a.createInMemoryRedirectUnavailableError();e!==c.l.Redirect&&e!==c.l.Popup||this.preflightInteractiveRequest(t)},e.prototype.preflightInteractiveRequest=function(e){this.logger.verbose("preflightInteractiveRequest called, validating app environment"),u.a.blockReloadInHiddenIframes(),e&&this.browserStorage.setInteractionInProgress(!0)},e.prototype.acquireTokenNative=function(e,t,n){return Object(r.b)(this,void 0,void 0,function(){return Object(r.d)(this,function(r){if(this.logger.trace("acquireTokenNative called"),!this.nativeExtensionProvider)throw w.a.createNativeConnectionNotEstablishedError();return[2,new b.a(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,t,this.performanceClient,this.nativeExtensionProvider,n||this.getNativeAccountId(e),this.nativeInternalStorage,e.correlationId).acquireToken(e)]})})},e.prototype.canUseNative=function(e,t){if(this.logger.trace("canUseNative called"),!S.a.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,e.authenticationScheme))return this.logger.trace("canUseNative: isNativeAvailable returned false, returning false"),!1;if(e.prompt)switch(e.prompt){case i.H.NONE:case i.H.CONSENT:case i.H.LOGIN:this.logger.trace("canUseNative: prompt is compatible with native flow");break;default:return this.logger.trace("canUseNative: prompt = "+e.prompt+" is not compatible with native flow, returning false"),!1}return!(!t&&!this.getNativeAccountId(e))||(this.logger.trace("canUseNative: nativeAccountId is not available, returning false"),!1)},e.prototype.getNativeAccountId=function(e){var t=e.account||this.browserStorage.getAccountInfoByHints(e.loginHint,e.sid)||this.getActiveAccount();return t&&t.nativeAccountId||""},e.prototype.createPopupClient=function(e){return new f.a(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)},e.prototype.createRedirectClient=function(e){return new m.a(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)},e.prototype.createSilentIframeClient=function(e){return new g.a(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,c.a.ssoSilent,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)},e.prototype.createSilentCacheClient=function(e){return new C.a(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)},e.prototype.createSilentRefreshClient=function(e){return new y.a(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)},e.prototype.createSilentAuthCodeClient=function(e){return new T.a(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,c.a.acquireTokenByCode,this.performanceClient,this.nativeExtensionProvider,e)},e.prototype.addEventCallback=function(e){return this.eventHandler.addEventCallback(e)},e.prototype.removeEventCallback=function(e){this.eventHandler.removeEventCallback(e)},e.prototype.addPerformanceCallback=function(e){return this.performanceClient.addPerformanceCallback(e)},e.prototype.removePerformanceCallback=function(e){return this.performanceClient.removePerformanceCallback(e)},e.prototype.enableAccountStorageEvents=function(){this.eventHandler.enableAccountStorageEvents()},e.prototype.disableAccountStorageEvents=function(){this.eventHandler.disableAccountStorageEvents()},e.prototype.getTokenCache=function(){return this.tokenCache},e.prototype.getLogger=function(){return this.logger},e.prototype.setLogger=function(e){this.logger=e},e.prototype.initializeWrapperLibrary=function(e,t){this.browserStorage.setWrapperMetadata(e,t)},e.prototype.setNavigationClient=function(e){this.navigationClient=e},e.prototype.getConfiguration=function(){return this.config},e.prototype.getRequestCorrelationId=function(e){return(null===e||void 0===e?void 0:e.correlationId)?e.correlationId:this.isBrowserEnvironment?this.browserCrypto.createNewGuid():i.r.EMPTY_STRING},e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(6),o=n(15),i=function(){function e(e,t,n,r){this.isBrowserEnvironment="undefined"!=typeof window,this.config=e,this.storage=t,this.logger=n,this.cryptoObj=r}return e.prototype.loadExternalTokens=function(e,t,n){if(this.logger.info("TokenCache - loadExternalTokens called"),!t.id_token)throw o.a.createUnableToLoadTokenError("Please ensure server response includes id token.");var i,a,s,c=new r.e(t.id_token,this.cryptoObj);if(e.account)s=r.b.createFromAccountInfo(e.account),i=new r.n(s,this.loadIdToken(c,s.homeAccountId,e.account.environment,e.account.tenantId),this.loadAccessToken(e,t,s.homeAccountId,e.account.environment,e.account.tenantId,n),this.loadRefreshToken(e,t,s.homeAccountId,e.account.environment));else{if(!e.authority)throw o.a.createUnableToLoadTokenError("Please provide a request with an account or a request with authority.");var u=r.g.generateAuthority(e.authority,e.azureCloudOptions),l={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata,skipAuthorityMetadataCache:this.config.auth.skipAuthorityMetadataCache};if(a=new r.g(u,this.config.system.networkClient,this.storage,l,this.logger),n.clientInfo)this.logger.trace("TokenCache - homeAccountId from options"),s=this.loadAccount(c,a,n.clientInfo),i=new r.n(s,this.loadIdToken(c,s.homeAccountId,a.hostnameAndPort,a.tenant),this.loadAccessToken(e,t,s.homeAccountId,a.hostnameAndPort,a.tenant,n),this.loadRefreshToken(e,t,s.homeAccountId,a.hostnameAndPort));else{if(!t.client_info)throw o.a.createUnableToLoadTokenError("Please provide clientInfo in the response or options.");this.logger.trace("TokenCache - homeAccountId from response"),s=this.loadAccount(c,a,t.client_info),i=new r.n(s,this.loadIdToken(c,s.homeAccountId,a.hostnameAndPort,a.tenant),this.loadAccessToken(e,t,s.homeAccountId,a.hostnameAndPort,a.tenant,n),this.loadRefreshToken(e,t,s.homeAccountId,a.hostnameAndPort))}}return this.generateAuthenticationResult(e,c,i,s,a)},e.prototype.loadAccount=function(e,t,n,i){var a;if(i?a=i:void 0!==t.authorityType&&n&&(a=r.b.generateHomeAccountId(n,t.authorityType,this.logger,this.cryptoObj,e.claims)),!a)throw o.a.createUnableToLoadTokenError("Unexpected missing homeAccountId");var s=r.b.createAccount({homeAccountId:a,idTokenClaims:e.claims,clientInfo:n,environment:t.hostnameAndPort},t);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading account"),this.storage.setAccount(s),s;throw o.a.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},e.prototype.loadIdToken=function(e,t,n,i){var a=r.w.createIdTokenEntity(t,n,e.rawToken,this.config.auth.clientId,i);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading id token"),this.storage.setIdTokenCredential(a),a;throw o.a.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")}
2,e.prototype.loadAccessToken=function(e,t,n,i,a,s){if(!t.access_token)return this.logger.verbose("TokenCache - No access token provided for caching"),null;if(!t.expires_in)throw o.a.createUnableToLoadTokenError("Please ensure server response includes expires_in value.");if(!s.extendedExpiresOn)throw o.a.createUnableToLoadTokenError("Please provide an extendedExpiresOn value in the options.");var c=new r.N(e.scopes).printScopes(),u=s.expiresOn||t.expires_in+(new Date).getTime()/1e3,l=s.extendedExpiresOn,d=r.a.createAccessTokenEntity(n,i,t.access_token,this.config.auth.clientId,a,c,u,l,this.cryptoObj);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading access token"),this.storage.setAccessTokenCredential(d),d;throw o.a.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},e.prototype.loadRefreshToken=function(e,t,n,i){if(!t.refresh_token)return this.logger.verbose("TokenCache - No refresh token provided for caching"),null;var a=r.L.createRefreshTokenEntity(n,i,t.refresh_token,this.config.auth.clientId);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading refresh token"),this.storage.setRefreshTokenCredential(a),a;throw o.a.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},e.prototype.generateAuthenticationResult=function(e,t,n,o,i){var a,s,c=r.r.EMPTY_STRING,u=[],l=null;n.accessToken&&(c=n.accessToken.secret,u=r.N.fromString(n.accessToken.target).asArray(),l=new Date(1e3*Number(n.accessToken.expiresOn)),s=new Date(1e3*Number(n.accessToken.extendedExpiresOn)));var d=(null===t||void 0===t?void 0:t.claims.oid)||(null===t||void 0===t?void 0:t.claims.sub)||r.r.EMPTY_STRING,p=(null===t||void 0===t?void 0:t.claims.tid)||r.r.EMPTY_STRING;return{authority:i?i.canonicalAuthority:r.r.EMPTY_STRING,uniqueId:d,tenantId:p,scopes:u,account:o?o.getAccountInfo():null,idToken:t?t.rawToken:r.r.EMPTY_STRING,idTokenClaims:t?t.claims:{},accessToken:c,fromCache:!0,expiresOn:l,correlationId:e.correlationId||r.r.EMPTY_STRING,requestId:r.r.EMPTY_STRING,extExpiresOn:s,familyId:r.r.EMPTY_STRING,tokenType:(null===(a=null===n||void 0===n?void 0:n.accessToken)||void 0===a?void 0:a.tokenType)||r.r.EMPTY_STRING,state:r.r.EMPTY_STRING,cloudGraphHostName:o.cloudGraphHostName||r.r.EMPTY_STRING,msGraphHost:o.msGraphHost||r.r.EMPTY_STRING,code:void 0,fromNativeBroker:!1}},e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n(9),o=n(6),i=n(77),a=n(15),s=n(14),c=n(317),u=n(753),l=function(e){function t(t,n,r,o,i,a,s,c,u,l){var d=e.call(this,t,n,r,o,i,a,c,u,l)||this;return d.apiId=s,d}return Object(r.c)(t,e),t.prototype.acquireToken=function(e){return Object(r.b)(this,void 0,void 0,function(){var t,n,i,l,d,p;return Object(r.d)(this,function(h){switch(h.label){case 0:if(this.logger.trace("SilentAuthCodeClient.acquireToken called"),!e.code)throw a.a.createAuthCodeRequiredError();return this.performanceClient.setPreQueueTime(o.E.StandardInteractionClientInitializeAuthorizationRequest,e.correlationId),[4,this.initializeAuthorizationRequest(e,s.l.Silent)];case 1:t=h.sent(),this.browserStorage.updateCacheEntries(t.state,t.nonce,t.authority,t.loginHint||o.r.EMPTY_STRING,t.account||null),n=this.initializeServerTelemetryManager(this.apiId),h.label=2;case 2:return h.trys.push([2,4,,5]),i=Object(r.a)(Object(r.a)({},t),{code:e.code}),this.performanceClient.setPreQueueTime(o.E.StandardInteractionClientGetClientConfiguration,e.correlationId),[4,this.getClientConfiguration(n,t.authority)];case 3:return l=h.sent(),d=new u.a(l),this.logger.verbose("Auth code client created"),[2,new c.a(d,this.browserStorage,i,this.logger,this.config.system,this.performanceClient).handleCodeResponseFromServer({code:e.code,msgraph_host:e.msGraphHost,cloud_graph_host_name:e.cloudGraphHostName,cloud_instance_host_name:e.cloudInstanceHostName},t.state,d.authority,this.networkClient,!1)];case 4:throw(p=h.sent())instanceof o.d&&p.setCorrelationId(this.correlationId),n.cacheFailedRequest(p),this.browserStorage.cleanRequestByState(t.state),p;case 5:return[2]}})})},t.prototype.logout=function(){return Promise.reject(a.a.createSilentLogoutUnsupportedError())},t}(i.a)},function(e,t,n){"use strict";n.d(t,"a",function(){return o}
2);var r=n(9),o=function(e){function t(t){var n=e.call(this,t)||this;return n.includeRedirectUri=!1,n}return Object(r.c)(t,e),t}(n(6).k)},function(e,t,n){"use strict";n(120)},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(78),o=n(14),i=function(){function e(){}return e.getInteractionStatusFromEvent=function(e,t){switch(e.eventType){case r.a.LOGIN_START:return o.k.Login;case r.a.SSO_SILENT_START:return o.k.SsoSilent;case r.a.ACQUIRE_TOKEN_START:if(e.interactionType===o.l.Redirect||e.interactionType===o.l.Popup)return o.k.AcquireToken;break;case r.a.HANDLE_REDIRECT_START:return o.k.HandleRedirect;case r.a.LOGOUT_START:return o.k.Logout;case r.a.SSO_SILENT_SUCCESS:case r.a.SSO_SILENT_FAILURE:if(t&&t!==o.k.SsoSilent)break;return o.k.None;case r.a.LOGOUT_END:if(t&&t!==o.k.Logout)break;return o.k.None;case r.a.HANDLE_REDIRECT_END:if(t&&t!==o.k.HandleRedirect)break;return o.k.None;case r.a.LOGIN_SUCCESS:case r.a.LOGIN_FAILURE:case r.a.ACQUIRE_TOKEN_SUCCESS:case r.a.ACQUIRE_TOKEN_FAILURE:case r.a.RESTORE_FROM_BFCACHE:if(e.interactionType===o.l.Redirect||e.interactionType===o.l.Popup){if(t&&t!==o.k.Login&&t!==o.k.AcquireToken)break;return o.k.None}}return null},e}()},function(e,t,n){"use strict";var r=n(9),o=n(209),i=n(6),a=n(121);!function(){function e(e,t){var n=t&&t.loggerOptions||{};this.logger=new i.B(n,a.a,a.b),this.cryptoOps=new o.a(this.logger),this.popTokenGenerator=new i.G(this.cryptoOps),this.shrParameters=e}e.prototype.generatePublicKeyThumbprint=function(){return Object(r.b)(this,void 0,void 0,function(){return Object(r.d)(this,function(e){switch(e.label){case 0:return[4,this.popTokenGenerator.generateKid(this.shrParameters)];case 1:return[2,e.sent().kid]}})})},e.prototype.signRequest=function(e,t,n){return Object(r.b)(this,void 0,void 0,function(){return Object(r.d)(this,function(r){return[2,this.popTokenGenerator.signPayload(e,t,this.shrParameters,n)]})})},e.prototype.removeKeys=function(e){return Object(r.b)(this,void 0,void 0,function(){return Object(r.d)(this,function(t){switch(t.label){case 0:return[4,this.cryptoOps.removeTokenBindingKey(e)];case 1:return[2,t.sent()]}})})}}()},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(0),o=n(32),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=function(){function e(e){this.translateService=e}var t;return e.prototype.transform=function(e,t){if(!(e.indexOf("|")>-1))return this.translateService.translate(e,t);if("number"==typeof t){var n=e.split("|");return 1===t?this.translateService.translate(n[0]):this.translateService.translate(n[1])}},e=i([Object(r.Pipe)({name:"translate"}),a("design:paramtypes",["function"==typeof(t=void 0!==o.a&&o.a)?t:Object])],e)}()},function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r=n(0),o=n(24),i=n(11),a=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){function e(e,t){this.config=e,this.decimalPipe=t}var t,n;return e.prototype.transform=function(e,t,n){var r=this.config.translations().ACREAGE;if((t||n)&&(r=t?this.config.translations().ACREAGE_Label:this.config.translations().ACREAGE_Sub_Label),!e)return"";var o=.404685642*e;return r=(r=r.replace("{acres}",this.decimalPipe.transform(e,"1.0-2"))).replace("{hectares}",this.decimalPipe.transform(o,"1.0-2"))},e=a([Object(r.Pipe)({name:"acreage"}),s("design:paramtypes",["function"==typeof(t=void 0!==i.a&&i.a)?t:Object,"function"==typeof(n=void 0!==o.DecimalPipe&&o.DecimalPipe)?n:Object])],e)}()},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(0),o=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=function(){function e(){}var t;return e.prototype.onClick=function(e){e.stopPropagation(),e.preventDefault()},o([Object(r.HostListener)("click",["$event"]),i("design:type",Function),i("design:paramtypes",["function"==typeof(t="undefined"!=typeof MouseEvent&&MouseEvent)?t:Object]),i("design:returntype",void 0)],e.prototype,"onClick",null),e=o([Object(r.Directive)({selector:"a[no-href-click]"})],e)}()},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(0),o=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=function(){function e(){}return e.prototype.updateUrl=function(){this.src=this.default},o([Object(r.Input)(),i("design:type",String)],e.prototype,"src",void 0),o([Object(r.Input)(),i("design:type",String)],e.prototype,"default",void 0),e=o([Object(r.Directive)({selector:"img[default]",host:{"(error)":"updateUrl()","[src]":"src"}})],e)}()},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(0),o=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=function(){function e(e){this.el=e,this.regex={number:new RegExp(/^\d+$/),decimal
2:new RegExp(/^[0-9]+(\.[0-9]*){0,1}$/g)},this.specialKeys={number:["Backspace","Tab","End","Home","ArrowLeft","ArrowRight","Delete"],decimal:["Backspace","Tab","End","Home","ArrowLeft","ArrowRight","Delete"]}}var t,n;return e.prototype.onKeyDown=function(e){if(-1===this.specialKeys[this.numericType].indexOf(e.key)){var t=this.el.nativeElement.value.concat(e.key);t&&!String(t).match(this.regex[this.numericType])&&e.preventDefault()}},o([Object(r.Input)("numericType"),i("design:type",String)],e.prototype,"numericType",void 0),o([Object(r.HostListener)("keydown",["$event"]),i("design:type",Function),i("design:paramtypes",["function"==typeof(t="undefined"!=typeof KeyboardEvent&&KeyboardEvent)?t:Object]),i("design:returntype",void 0)],e.prototype,"onKeyDown",null),e=o([Object(r.Directive)({selector:"[numeric]"}),i("design:paramtypes",["function"==typeof(n=void 0!==r.ElementRef&&r.ElementRef)?n:Object])],e)}()},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(0),o=n(153),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},a=function(){function e(){}var t;return t=e,e.prototype.validate=function(e){return/^(?!.*<[^>]+>).*/.test(e.value)?null:{noHtml:!0}},e=t=i([Object(r.Directive)({selector:"[noHtml][formControlName],[noHtml][formControl],[noHtml][ngModel]",providers:[{provide:o.NG_VALIDATORS,useExisting:Object(r.forwardRef)(function(){return t}),multi:!0}]})],e)}()},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(0),o=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},i=function(){function e(){}return e=o([Object(r.Component)({selector:"button-loading",template:n(764)})],e)}()},function(e,t){e.exports='<div class="triangle">\r\n\t<div class="blank"></div>\r\n\t<div class="triangle-topleft"></div>\r\n\t<div class="blank"></div>\r\n\t<div class="triangle-topright"></div>\r\n\t<div class="blank"></div>\r\n\t<div class="triangle-bottomleft"></div>\r\n\t<div class="blank"></div>\r\n\t<div class="triangle-bottomright"></div>\r\n\t<div class="blank"></div>\r\n</div>'},function(e,t,n){"use strict";n.d(t,"a",function(){return y});var r=n(0),o=n(24),i=n(89),a=n(94),s=n(11),c=n(29),u=n(212),l=n(39),d=n(54),p=n(148),h=n(8),f=n(339),m=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},g=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},y=function(){function e(e,t,n,r,o,i,a,s,c){this.propertyPriceService=e,this.kfCustomCurrencyPipe=t,this.decimalPipe=n,this.urlHelperService=r,this.azureService=o,this.eventService=i,this.singleSearchService=a,this.configService=s,this.propertyDetailsLoaderService=c,this.mode=h.DisplayTypeEnum.Grid,this.showConverted=!1,this.price="",this.floorArea="",this.pricePrefix="",this.priceTerm="",this.convertedPrice="",this.berclass="",this.skyScraper=!1,this.propertyType="",this.propertyAddress="",this.carouselLoadComplete=!1,this.detailsUrl="",this.isKill=!1,this.isResidential=!1,this.isNewHome=!1,this.isUkResidentialSalesDevelopment=!1,this.newHomeLabel=""}var t,y,v,b,S,E,C,T,w,_,I;return e.prototype.ngOnInit=function(){this.propertyAddress=this.item.Address,this.isResidential=this.item.Division===h.DivisionEnum.Residential,this.isUkResidentialSalesDevelopment=f.a.isResidentialDevelopment(this.item),this.item.LocalisedPropertyDetails&&this.item.LocalisedPropertyDetails.Address&&(this.propertyAddress=this.item.LocalisedPropertyDetails.Address),this.item.Ipm&&(this.propertyAddress=this.item.Name),this.renderPrice(),this.item.FloorAreaMax>0&&this.item.FloorAreaMin>0&&this.renderFloorString(),this.item.PropertyTypes.length>0&&(this.propertyType=this.item.PropertyTypes[0].Name),this.parseFeatures(),this.detailsUrl=this.urlHelperService.detailsUrl(this.item)},e.prototype.ngOnDestroy=function(){this.isKill=!0},e.prototype.ssIsEnabled=function(){return!1},e.prototype.onCarouselLoadComplete=function(){this.carouselLoadComplete=!0,this.eventService.broadcast({type:h.EventTypeEnum.GridItemLoadComplete,data:this.item.Id})},e.prototype.parseFeatures=function(){this.berclass="";for(var e=0,t=this.item.Features;e<t.length;e++){var n=t[e];n.Id===h.FixedEnum.BerRating?this.berclass=n.MinValue||n.MaxValue?("ber"+n.MinValue+n.MaxValue).toLowerCase():"berexempt":n.Id===h.FixedEnum.SkyScraper&&(this.skyScraper=!0),n.Id===h.FixedEnum.NewHome&&(this.isNewHome=!0,this.newHomeLabel=n.Name)}},e.prototype.hasInvestmentFeature=function(){for(var e=0,t=this.item.Features;e<t.length;e++){if(t[e].Id===h.FixedEnum.Investment)return!0}return!1},e.prototype.renderFloorString=function(){0===this.item.FloorAreaMin||this.item.FloorAreaMin===this.item.FloorAreaMax?this.floorArea=this.decimalPipe.transform(this.item.FloorAreaMax)+" "+this.item.MeasurementUnit.Name:this.floorArea=this.decimalPipe.transform(this.item.FloorAreaMin)+" - "+this.decimalPipe.transform(this.item.FloorAreaMax)+" "+this.item.MeasurementUnit.Name},e.prototype.formatPriceValueWithCommas=function(e){return null==e||e.includes(",")?null!=e&&e.includes(".")&&e.includes(",")&&e.lastIndexOf(",")>e.lastIndexOf(".")?e.split(",")[0].replace(/\./g,",")+"."+e.split(",")[1].trim():e:e.replace(/\./g,",").trim()},e.prototype.renderPrice=function(){var e=this.item.Price.PriceMin>0&&this.item.Price.PricePrefixId===h.FixedEnum.PricesFrom;this.priceNum=e?this.item.Price.PriceMin:this.item.Price.PriceMax,this.showConverted=this.currency!==this.item.Price.CurrencyCode,this.priceTerm=this.item.Price.Term,this.priceTerm||(this.priceTerm=this.item.Price.PriceSuffix,this.pricePrefix=this.item.Price.PricePrefix),this.price=this.propertyPriceService.getPrice(this.item.Price,"symbol"),this.convertedPrice=this.propertyPriceService.getConvPrice(this.item.Price,"symbol"),this.shortLetPrice=this.propertyPriceService.getShortLetPrice(this.item.Price,"symbol"),this.convertedShortLetPrice=this.propertyPriceService.getConvShortLetPrice(this.item.Price,"symbol"),this.secondaryRentalPrice=this.propertyPriceService.getSecondaryRentalPrice(this.item.Price,"symbol"),this.secondaryPriceTerm=this.secondaryRentalPrice?this.item.Price.SecondaryRentalPriceTerm:null,this.secondaryShortLetPrice=this.propertyPriceService.getSecondaryShortLetPrice(this.item.Price,"symbol"),this.price||(this.price=this.pricePrefix,this.pricePrefix="")},e.prototype.getDescription=function(){return void 0!=this.item.LocalisedPropertyDetails.ShortDescription?this.item.LocalisedPropertyDetails.ShortDescription:this.item.ShortDe
2scription},m([Object(r.Input)(),g("design:type","function"==typeof(t=void 0!==h.NspProperty&&h.NspProperty.IProperty)?t:Object)],e.prototype,"item",void 0),m([Object(r.Input)(),g("design:type","function"==typeof(y=void 0!==h.DisplayTypeEnum&&h.DisplayTypeEnum)?y:Object)],e.prototype,"mode",void 0),m([Object(r.Input)(),g("design:type",String)],e.prototype,"currency",void 0),m([Object(r.Input)(),g("design:type",Boolean)],e.prototype,"isSingleSearch",void 0),m([Object(r.Input)(),g("design:type",Number)],e.prototype,"loopIndex",void 0),e=m([Object(r.Component)({selector:"property",template:n(766)}),g("design:paramtypes",["function"==typeof(v=void 0!==a.a&&a.a)?v:Object,"function"==typeof(b=void 0!==i.a&&i.a)?b:Object,"function"==typeof(S=void 0!==o.DecimalPipe&&o.DecimalPipe)?S:Object,"function"==typeof(E=void 0!==c.a&&c.a)?E:Object,"function"==typeof(C=void 0!==u.a&&u.a)?C:Object,"function"==typeof(T=void 0!==l.a&&l.a)?T:Object,"function"==typeof(w=void 0!==d.a&&d.a)?w:Object,"function"==typeof(_=void 0!==s.a&&s.a)?_:Object,"function"==typeof(I=void 0!==p.a&&p.a)?I:Object])],e)}()},function(e,t){e.exports='<a [routerLink]="detailsUrl" queryParamsHandling="merge" *ngIf="mode == \'grid\'"\r\n   class="grid-view"\r\n   [class.ipm]="item.Ipm"\r\n   [class.resDev]="isUkResidentialSalesDevelopment">\r\n    <div class="carousel-container">\r\n        <ng-container *ngIf="item.SoldRented || item.ImgUrls.length === 1 || isUkResidentialSalesDevelopment">\r\n            <div class="img-container" [ngClass]="{\'sold\': item.SoldRented}">\r\n                 <img loading="lazy" class="container-item"\r\n                     [attr.alt]="item.ImgUrls && item.ImgUrls.length ? (1 + \' \' + (\'Of\' | translate) + \' \' + item.ImgUrls.length) : \'\'"\r\n                     [src]="item.ImgUrls[0]" default="/properties-resources/images/icons/results/logo.svg" />\r\n            </div>\r\n        </ng-container>\r\n        <ng-container *ngIf="!item.SoldRented && item.ImgUrls.length >= 2 && !isUkResidentialSalesDevelopment">\r\n            <kf-carousel [property]="item"\r\n                         [imgWidth]="730"\r\n                         [isPlp]="true"\r\n                         [showCount]="true"\r\n                         [loopIndex]="loopIndex"\r\n                         [showBanners]="false"></kf-carousel>\r\n        </ng-container>\r\n\r\n        <div class="selectedSvg">\r\n            <svg xmlns="http://www.w3.org/2000/svg" width="50" height="70" viewBox="0 0 50 70" fill="none">\r\n                <path fill-rule="evenodd" clip-rule="evenodd" d="M25.1313 44.5503L21.9012 41.8166C17.3911 37.9995 13.8028 34.2748 11.3249 30.6323C8.85722 27.0048 7.26172 23.1303 7.26172 19.12C7.26172 13.9342 8.99454 9.33201 12.7628 5.87538C16.2408 2.68507 20.4324 1 25.1313 1C29.8302 1 34.0218 2.68507 37.4998 5.87538C41.268 9.33201 43.0008 13.9342 43.0008 19.12C43.0008 23.1303 41.4053 27.0048 38.9377 30.6323C36.4598 34.2748 32.8715 37.9995 28.3614 41.8166L25.1313 44.5503ZM15.459 27.82C17.5905 30.9533 20.8146 34.3467 25.1313 38C29.4479 34.3467 32.672 30.9533 34.8036 27.82C36.9351 24.6867 38.0008 21.7867 38.0008 19.12C38.0008 15.12 36.7072 11.9333 34.1199 9.56C31.5326 7.18667 28.5364 6 25.1313 6C21.7262 6 18.73 7.18667 16.1427 9.56C13.5554 11.9333 12.2617 15.12 12.2617 19.12C12.2617 21.7867 13.3275 24.6867 15.459 27.82Z" fill="white" />\r\n                <path d="M25.1313 38C20.8146 34.3467 17.5905 30.9533 15.459 27.82C13.3275 24.6867 12.2617 21.7867 12.2617 19.12C12.2617 15.12 13.5554 11.9333 16.1427 9.56C18.73 7.18667 21.7262 6 25.1313 6C28.5364 6 31.5326 7.18667 34.1199 9.56C36.7072 11.9333 38.0008 15.12 38.0008 19.12C38.0008 21.7867 36.9351 24.6867 34.8036 27.82C32.672 30.9533 29.4479 34.3467 25.1313 38Z" fill="#D0103A" class="selectedSvgFill" />\r\n            </svg>\r\n        </div>\r\n\r\n        <div class="propertyTopBanner" *ngIf="isNewHome || item.Ipm || isUkResidentialSalesDevelopment || item.Banners.length">\r\n            <div class="primary-property-label" *ngIf="item.Ipm">\r\n                {{\'Prime Property\' | translate}}\r\n            </div>\r\n\r\n            <div class="primary-property-label" *ngIf="isUkResidentialSalesDevelopment">\r\n                {{\'New Development\' | translate}}\r\n            </div>\r\n\r\n            <banners [property]="item" *ngIf="isNewHome || item.Banners.length"></banners>\r\n        </div>\r\n\r\n        <ng-container *ngIf="item.SoldRented && !isUkResidentialSalesDevelopment">
2\r\n            <div class="propertyBottomBanner">\r\n                <div class="property-status">\r\n                    {{ item.SoldRentedLabel }}\r\n                </div>\r\n            </div>\r\n        </ng-container>\r\n    </div>\r\n    <div class="grid-details">\r\n        <ng-container *ngTemplateOutlet="gridDetails"></ng-container>\r\n    </div>\r\n    <ng-template #gridDetails>\r\n        <div class="details-container">\r\n            <div class="grid-address">\r\n                {{propertyAddress}}\r\n            </div>\r\n            <div class="grid-type-and-floor" *ngIf="!isUkResidentialSalesDevelopment">\r\n                <span *ngIf="propertyType" class="grid-type" [attr.data-hidden]="!propertyType">\r\n                    {{propertyType}}\r\n                </span>\r\n                <span class="grid-floor" [attr.data-hidden]="!floorArea">\r\n                    , {{floorArea}}\r\n                </span>\r\n                <img *ngIf="berclass" src="#" width="79" height="20" alt="BER" class="ber" [ngClass]="berclass" loading="lazy">\r\n            </div>\r\n            <div class="grid-yield"\r\n                *ngIf="item.NetYieldInitial">\r\n                {{\'NET_INITIAL_YIELD\'|translate:{\'yield\':item.NetYieldInitial} }}\r\n            </div>\r\n            <property-icons [property]="item"\r\n                            [maxItems]="3"></property-icons>\r\n            <div class="price-wrapper" [ngClass]="{\'hasConv\': showConverted}">\r\n                <div class="grid-prefix">\r\n                    {{pricePrefix}}\r\n                </div>\r\n                <div class="grid-price" [attr.data-price-numerical]="priceNum">\r\n                    <ng-container *ngIf="shortLetPrice">\r\n                        <span class="original-price"><span>{{price}}</span> <span>({{\'LBL_LettingType_SHORT\' | translate }}: {{shortLetPrice}})</span></span>\r\n                        <div class="grid-converted" [attr.data-hidden]="!showConverted"><span>{{convertedPrice}}</span> <span>({{\'LBL_LettingType_SHORT\' | translate }}: {{convertedShortLetPrice}})</span></div>\r\n                    </ng-container>\r\n                    <ng-container *ngIf="!shortLetPrice">\r\n                        <span>{{price}}</span>\r\n                        <div class="grid-converted" [attr.data-hidden]="!showConverted">{{convertedPrice}}</div>\r\n                    </ng-container>\r\n                </div>\r\n                <div class="price-after">\r\n                    <div class="price-term" [attr.data-hidden]="!priceTerm">\r\n                        {{priceTerm}}\r\n                    </div>\r\n                    <div class="price-suffix" [attr.data-hidden]="!priceSuffix">\r\n                        {{priceSuffix}}\r\n                    </div>\r\n                </div>\r\n            </div>\r\n        </div>\r\n            <ng-container *ngIf="item.SoldRented && isUkResidentialSalesDevelopment">\r\n                <div class="property-status">\r\n                    <div class="sold">\r\n                        {{ item.SoldRentedLabel }}\r\n                    </div>\r\n                </div>\r\n            </ng-container>\r\n    </ng-template>\r\n</a>'},function(e,t,n){"use strict";n.d(t,"a",function(){return d});var r=n(0),o=n(24),i=n(11),a=n(29),s=n(148),c=n(8),u=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},l=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},d=function(){function e(e,t,n,r){this.decimalPipe=e,this.urlHelperService=t,this.configService=n,this.propertyDetailsLoaderService=r,this.showConverted=!1,this.price="",this.floorArea="",this.pricePrefix="",this.priceTerm="",this.convertedPrice="",this.berclass="",this.skyScraper=!1,this.propertyType="",this.propertyAddress="",this.carouselLoadComplete=!1,this.detailsUrl="",this.isKill=!1,this.isResidential=!1}var t,d,p,h,f;return e.prototype.ngOnInit=function(){this.imageUrl=this.item.ImgUrls&&this.item.ImgUrls.length>0?this.item.ImgUrls[0]:"",this.propertyAddress=this.item.Address,this.isResidential=this.item.Division===c.DivisionEnum.Residential,this.item.LocalisedPropertyDetails&&this.item.LocalisedPropertyDetails.Address&&(this.propertyAddress=this.item.LocalisedPropertyDetails.Address),this.item.Ipm&&(this.propertyAddress=this.item.Name),this.renderPrice(),this.item.FloorAreaMax>0&&this.item.FloorAreaMin>0&&this.renderFloorString(),this.item.PropertyTypes.length>0&&(this.propertyType=this.item.PropertyTypes[0].Name),this.item.Features&&this.parseFeatures(),this.detailsUrl=this.urlHelperService.detailsUrl(this.item)},e.prototype.ngOnDestroy=function(){this.isKill=!0},e.prototype.ssIsEnabled=function(){return!1},e.prototype.parseFeatures=function(){this.berclass="";for(var e=0,t=this.item.Features;e<t.length;e++){var n=t[e];n.Id===c.FixedEnum.BerRating?this.berclass=n.MinValue||n.MaxValue?("ber"+n.MinValue+n.MaxValue).toLowerCase():"berexempt":n.Id===c.FixedEnum.SkyScraper&&(this.skyScraper=!0)}},e.prototype.renderFloorString=function(){0===this.item.FloorAreaMin||this.item.FloorAreaMin===this.item.FloorAreaMax?this.floorArea=this.decimalPipe.transform(this.item.FloorAreaMax)+" "+this.item.MeasurementUnit.Name:this.floorArea=this.decimalPipe.transform(this.item.FloorAreaMin)+" - "+this.decimalPipe.transform(this.item.FloorAreaMax)+" "+this.item.MeasurementUnit.Name},e.prototype.renderPrice=function(){var e=this.item.Price.PriceMin>0&&this.item.Price.PricePrefixId===c.FixedEnum.PricesFrom,t=this.item.Price.ShortLetPriceMin>0;this.item.Price.IsRange?this.price=this.item.Price.PriceMinFormatted+" - "+this.item.Price.PriceMaxFormatted:this.price=e?this.item.Price.PriceMinFormatted:this.item.Price.PriceMaxFormatted,this.priceTerm=this.item.Price.Term,this.priceTerm||(this.priceTerm=this.item.Price.PriceSuffix,this.pricePrefix=this.item.Price.PricePrefix),this.priceNum=e?this.item.Price.PriceMin:this.item.Price.PriceMax,this.showConverted=this.currency!==this.item.Price.CurrencyCode,this.item.Price.IsRange?this.convertedPrice=this.item.Price.ConvPriceMinFormatted+" - "+this.item.Price.ConvPriceMaxFormatted:e?this.showConverted&&this.item.Price.ConvPriceMinFormatted&&(this.convertedPrice=""+this.item.Price.ConvPriceMinFormatted):this.showConverted&&this.item.Price.ConvPriceMaxFormatted&&(this.convertedPrice=""+this.item.Price.ConvPriceMaxFormatted),this.item.Price.IsShortLetPriceRange?this.shortLetPrice=this.item.Price.ShortLetPriceMinFormatted+" - "+this.item.Price.ShortLetPriceMaxFormatted:this.shortLetPrice=t?this.item.Price.ShortLetPriceMinFormatted:this.item.Price.ShortLetPriceMaxFormatted,this.item.Price.IsShortLetPriceRange?this.convertedShortLetPrice=this.item.Price.ConvShortLetPriceMinFormatted+" - "+this.item.Price.ConvShortLetPriceMaxFormatted:t?this.showConverted&&this.item.Price.ConvShortLetPriceMinFormatted&&(this.convertedShortLetPrice=""+this.item.Price.ConvShortLetPriceMinFormatted):this.showConverted&&this.item.Price.ConvShortLetPriceMaxFormatted&&(this.convertedShortLetPrice=""+this.item.Price.ConvShortLetPriceMaxFormatted),this.price||(this.price=this.pricePrefix,this.pricePrefix="")},u([Object(r.Input)(),l("design:type","function"==typeof(t=void 0!==c.NspProperty&&c.NspProperty.IProperty)?t:Object)],e.prototype,"item",void 0),u([Object(r.Input)(),l("design:type",String)],e.prototype,"currency",void 0),u([Object(r.Input)(),l("design:type",Boolean)],e.prototype,"isSingleSearch",void 0),e=u([Object(r.Component)({selector:"related-property",template:n(768)}),l("design:paramtypes",["function"==typeof(d=void 0!==o.DecimalPipe&&o.DecimalPipe)?d:Object,"function"==typeof(p=void 0!==a.a&&a.a)?p:Object,"function"==typeof(h=void 0!==i.a&&i.a)?h:Object,"function"==typeof(f=void 0!==s.a&&s.a)?f:Object])],e)}()},function(e,t){e.exports='<div class="grid-view" [class.ipm]="item.Ipm">\r\n    <div class="outer-wrapper">\r\n        <div class="inner-wrapper">\r\n            <a [routerLink]="detailsUrl" queryParamsHandling="merge">\r\n                <div class="carousel-container">\r\n                    <div class="img-container">\r\n                        <img class="container-item" \r\n                             [src]="imageUrl"\r\n                             [alt]="propertyAddress || \'Property image\'" />\r\n                    </div>\r\n                    <div class="prime-property-label"><span>Prime Property</span></div>
2\r\n                    <span *ngIf="berclass" class="ber" [ngClass]="berclass"></span>\r\n                    <banners [property]="item"></banners>\r\n                </div>\r\n                <ng-container *ngTemplateOutlet="gridDetails"></ng-container>\r\n            </a>\r\n            <ng-template #gridDetails>\r\n                <div class="grid-details">\r\n                    <div class="grid-address">{{propertyAddress}}</div>\r\n                    <div class="price-wrapper" [ngClass]="{\'hasConv\': showConverted}">\r\n                        <div class="grid-prefix">\r\n                            {{pricePrefix}}\r\n                        </div>\r\n                        <div class="grid-price" [attr.data-price-numerical]="priceNum">\r\n                            <ng-container *ngIf="!shortLetPrice">\r\n                                <span>{{price}}</span>\r\n                                <div class="grid-converted" [attr.data-hidden]="!showConverted">{{convertedPrice}}</div>\r\n                            </ng-container>\r\n                        </div>\r\n                        <div class="price-after">\r\n                            <div class="price-term" [attr.data-hidden]="!priceTerm">\r\n                                {{priceTerm}}\r\n                            </div>\r\n                            <div class="price-suffix" [attr.data-hidden]="!priceSuffix">\r\n                                {{priceSuffix}}\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div *ngIf="propertyType" class="grid-type" [attr.data-hidden]="!propertyType">{{propertyType}}\r\n                    </div>\r\n                    <div class="grid-floor" [attr.data-hidden]="!floorArea">\r\n                        {{floorArea}}\r\n                    </div>\r\n                    <div class="grid-yield" *ngIf="item.NetYieldInitial">\r\n                        {{\'NET_INITIAL_YIELD\'|translate:{\'yield\':item.NetYieldInitial} }}\r\n                    </div>\r\n                    <property-icons [property]="item" [maxItems]="3"></property-icons>\r\n                </div>\r\n            </ng-template>\r\n\r\n        </div>\r\n    </div>\r\n</div>'},function(e,t){e.exports='<span class="price-conv-text" aria-hidden="true">{{ "Display price in" | translate }}:</span>\r\n<div data-selenium-id="priceComponent-text-price" class="price">\r\n    <ng-container *ngIf="shortLetPrice">\r\n        <span class="converted-price"><span>{{price}}</span> <span>({{\'LBL_LettingType_SHORT\' | translate }}: {{shortLetPrice}})</span></span>\r\n    </ng-container>\r\n    <ng-container *ngIf="!shortLetPrice">\r\n        <span class="converted-price">{{price}}</span>\r\n    </ng-container>\r\n</div>\r\n<div class="price-after">\r\n    <div class="price-term">\r\n        {{property.Price.Term}}\r\n    </div>\r\n    <div class="price-suffix">\r\n        {{property.Price.PriceSuffix}}\r\n    </div>\r\n</div>'},function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r=n(0),o=n(94),i=n(8),a=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){function e(e){this.propertyPriceService=e,this.pricePrefix=""}var t,c;return e.prototype.ngOnChanges=function(e){e.property&&(this.isResidential=this.property.Division===i.DivisionEnum.Residential,this.isSales=this.property.TransactionType===i.TransactionEnum.Sales,this.renderPrice(this.property.Price))},e.prototype.renderPrice=function(e){this.pricePrefix=e.PricePrefix,this.price=this.propertyPriceService.getPrice(e,"symbol"),this.shortLetPrice=this.propertyPriceService.getShortLetPrice(e,"symbol"),this.price||(this.price=this.pricePrefix,this.pricePrefix="")},a([Object(r.Input)(),s("design:type","function"==typeof(t=void 0!==i.NspProperty&&i.NspProperty.IProperty)?t:Object)],e.prototype,"property",void 0),e=a([Object(r.Component)({selector:"property-price-title",template:n(771)}),s("design:paramtypes",["function"==typeof(c=void 0!==o.a&&o.a)?c:Object])],e)}()},function(e,t){e.exports='<ng-container *ngIf="shortLetPrice">\r\n    <div class="price">
2\r\n        <span class="original-price">{{price}} {{property.Price.Term}} ({{\'LBL_LettingType_SHORT\' | translate }}:\r\n            {{shortLetPrice}})</span>\r\n    </div>\r\n</ng-container>\r\n<ng-container *ngIf="!shortLetPrice">\r\n    <div class="price">\r\n        <span class="original-price">{{price}} {{property.Price.Term}}</span>\r\n    </div>\r\n</ng-container>\r\n{{property.Price.PriceSuffix}}'},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(0),o=n(8),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=function(){function e(){this.berRatingFeatureId=1672}var t;return e.prototype.ngOnChanges=function(e){e.property&&this.refresh(this.property)},e.prototype.refresh=function(e){this.berclass="";for(var t=0,n=e.Features;t<n.length;t++){var r=n[t];r.Id===this.berRatingFeatureId&&(this.berclass=r.MinValue||r.MaxValue?("ber"+r.MinValue+r.MaxValue).toLowerCase():"berexempt")}},i([Object(r.Input)(),a("design:type","function"==typeof(t=void 0!==o.NspProperty&&o.NspProperty.IProperty)?t:Object)],e.prototype,"property",void 0),e=i([Object(r.Component)({selector:"property-ber-rating",template:n(773)})],e)}()},function(e,t){e.exports='<ng-container *ngIf="berclass">\r\n    <img src="#" width="107" height="28" alt="BER" class="ber" [ngClass]="berclass" loading="lazy">\r\n</ng-container>'},function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r=n(0),o=n(8),i=n(155),a=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){function e(e){this.propertyFeatureService=e,this.maxItems=null,this.bedString="",this.bathString="",this.receptionString="",this.landAreaString="",this.landAreaSecondaryString=""}var t,c;return e.prototype.ngOnChanges=function(e){var t=e.maxItems;t&&(this.maxItems=t.currentValue);var n=e.property;null!==n&&(this.property=n.currentValue,void 0!==this.property&&(this.refresh(),this.showIcons()))},e.prototype.refresh=function(){this.resetValues(),this.receptionString=this.minMaxString(this.property.ReceptionRoomsMinimum,this.property.ReceptionRoomsMaximum),this.bathString=this.minMaxString(this.property.BathroomsMinimum,this.property.BathroomsMaximum),this.bedString=this.minMaxString(this.property.BedroomsMinimum,this.property.BedroomsMaximum),this.carParkingSpaceString=this.minMaxString(this.property.CarParkingSpacesMinimum,this.property.CarParkingSpacesMaximum),this.carParkingSpaceString&&(this.hasCarParkingCounter=!0),this.renderLandArea(),this.property.NumberOfDesks&&(this.hasNumberOfDesks=!0);for(var e=0,t=this.property.Features;e<t.length;e++){var n=t[e];switch(n.Id){case o.FixedEnum.SwimmingPool:this.hasSwimmingPool=!0,this.swimmingPoolString=n.Name;break;case o.FixedEnum.Tennis:this.hasTennis=!0,this.tennisString=n.Name;break;case o.FixedEnum.PetFriendly:this.hasPets=!0,this.petsString=n.Name;break;case o.FixedEnum.AirCon:this.hasAirCon=!0,this.airConString=n.Name;break;case o.FixedEnum.PassengerLift:this.hasPassengerLift=!0,this.passengerLiftString=n.Name;break;case o.FixedEnum.RaisedAccessFlooring:this.hasRaisedAccess=!0,this.raisedAccessFlooringString=n.Name;break;case o.FixedEnum.Shower:this.hasShower=!0,this.showerString=n.Name;break;case o.FixedEnum.Access24:this.has24Access=!0,this.access24String=n.Name;break;case o.FixedEnum.Secure24:this.has24Secure=!0,this.secure24String=n.Name;break;case o.FixedEnum.CarParking:this.hasCarParkingCounter||(this.hasCarParking=!0,this.carParkingString=n.Name);break;case o.FixedEnum.Garage:this.hasGarage=!0,this.garageString=n.Name;break;case o.FixedEnum.PrivateParkingGarage:this.hasPrivateParkingGarage=!0,this.privateParkingGarageString=n.Name;break;case o.FixedEnum.Kitchen:this.hasKitchen=!0,this.kitchenString=n.Name;break;case o.FixedEnum.CCTV:this.hasCCTV=!0,this.cctvString=n.Name;break;case o.FixedEnum.LoadingFacilities:this.hasLoading=!0,this.loadingFacilitiesString=n.Name;break;case o.FixedEnum.RollerShutterDoors:this.hasShutter=!0,this.rollerShutterDoorsString=n.Name;break;case o.FixedEnum.Spa:case o.FixedEnum.SpaFacilities:case o.FixedEnum.Sauna:case o.FixedEnum.DrySpa:case o.FixedEnum.WetSpa:this.hasS
2pa=!0,this.spaString=n.Name;break;case o.FixedEnum.Golf:this.hasGolf=!0,this.golfString=n.Name;break;case o.FixedEnum.ConferenceCentre:case o.FixedEnum.ConferenceRoom:this.hasConference=!0,this.conferenceString=n.Name}}this.maxItems&&this.showLimitedIcons()},e.prototype.resetValues=function(){this.hasSwimmingPool=!1,this.hasTennis=!1,this.hasPets=!1,this.hasAirCon=!1,this.hasPassengerLift=!1,this.hasRaisedAccess=!1,this.hasShower=!1,this.has24Access=!1,this.has24Secure=!1,this.hasCarParking=!1,this.hasCarParkingCounter=!1,this.hasGarage=!1,this.hasPrivateParkingGarage=!1,this.hasKitchen=!1,this.hasCCTV=!1,this.hasLoading=!1,this.hasShutter=!1,this.hasNumberOfDesks=!1,this.hasSpa=!1,this.hasGolf=!1,this.hasConference=!1},e.prototype.showIcons=function(){return!(""===this.bedString&&""===this.bathString&&""===this.receptionString&&!1===this.hasTennis&&!1===this.hasPets&&!1===this.hasSwimmingPool&&""===this.landAreaString&&!1===this.hasAirCon&&!1===this.hasPassengerLift&&!1===this.hasRaisedAccess&&!1===this.hasShower&&!1===this.has24Access&&!1===this.has24Secure&&!1===this.hasCarParking&&!1===this.hasCarParkingCounter&&!1===this.hasGarage&&!1===this.hasPrivateParkingGarage&&!1===this.hasKitchen&&!1===this.hasCCTV&&!1===this.hasLoading&&!1===this.hasShutter&&!1===this.hasNumberOfDesks&&!1===this.hasSpa&&!1===this.hasGolf&&!1===this.hasConference)},e.prototype.showLimitedIcons=function(){var e=0;e<this.maxItems&&this.bedString?++e:this.bedString="",e<this.maxItems&&this.bathString?++e:this.bathString="",e<this.maxItems&&this.receptionString?++e:this.receptionString="",e<this.maxItems&&this.hasCarParkingCounter?++e:this.hasCarParkingCounter=!1,e<this.maxItems&&this.landAreaString?++e:this.landAreaString="",e<this.maxItems&&this.hasTennis?++e:this.hasTennis=!1,e<this.maxItems&&this.hasPets?++e:this.hasPets=!1,e<this.maxItems&&this.hasSwimmingPool?++e:this.hasSwimmingPool=!1,e<this.maxItems&&this.hasAirCon?++e:this.hasAirCon=!1,e<this.maxItems&&this.hasPassengerLift?++e:this.hasPassengerLift=!1,e<this.maxItems&&this.hasRaisedAccess?++e:this.hasRaisedAccess=!1,e<this.maxItems&&this.hasShower?++e:this.hasShower=!1,e<this.maxItems&&this.has24Access?++e:this.has24Access=!1,e<this.maxItems&&this.has24Secure?++e:this.has24Secure=!1,e<this.maxItems&&this.hasCarParking?++e:this.hasCarParking=!1,e<this.maxItems&&this.hasGarage?++e:this.hasGarage=!1,e<this.maxItems&&this.hasPrivateParkingGarage?++e:this.hasPrivateParkingGarage=!1,e<this.maxItems&&this.hasKitchen?++e:this.hasKitchen=!1,e<this.maxItems&&this.hasCCTV?++e:this.hasCCTV=!1,e<this.maxItems&&this.hasLoading?++e:this.hasLoading=!1,e<this.maxItems&&this.hasShutter?++e:this.hasShutter=!1,e<this.maxItems&&this.hasNumberOfDesks?++e:this.hasNumberOfDesks=!1,e<this.maxItems&&this.hasS
2pa?++e:this.hasSpa=!1,e<this.maxItems&&this.hasGolf?++e:this.hasGolf=!1,e<this.maxItems&&this.hasConference?++e:this.hasConference=!1},e.prototype.minMaxString=function(e,t){return 0===t?"":e===t?t.toString():e.toString()+"&ndash;"+t.toString()},e.prototype.renderLandArea=function(){this.property.PropertyMeasurements&&(this.property.PropertyMeasurements.OriginalLandAreaMinimum||this.property.PropertyMeasurements.OriginalLandAreaMaximum)&&(this.landAreaString=this.propertyFeatureService.renderLandAreaString(this.property.PropertyMeasurements.OriginalLandAreaMinimum,this.property.PropertyMeasurements.OriginalLandAreaMaximum,this.property.PropertyMeasurements.OriginalLandAreaMeasurementUnit.Name),this.landAreaSecondaryString=this.propertyFeatureService.renderLandAreaString(this.property.PropertyMeasurements.LandAreaMinimum,this.property.PropertyMeasurements.LandAreaMaximum,this.property.PropertyMeasurements.LandAreaMeasurementUnit.Name),[this.property.PropertyMeasurements.OriginalLandAreaMeasurementUnit.Id,this.property.PropertyMeasurements.LandAreaMeasurementUnit.Id].every(function(e){return 16733===e})&&(this.landAreaSecondaryString=this.propertyFeatureService.convertIntoHectare(this.property.PropertyMeasurements.OriginalLandAreaMinimum,this.property.PropertyMeasurements.OriginalLandAreaMaximum,this.property.PropertyMeasurements.OriginalLandAreaMeasurementUnit.Id)))},a([Object(r.Input)(),s("design:type","function"==typeof(t=void 0!==o.NspProperty&&o.NspProperty.IProperty)?t:Object)],e.prototype,"property",void 0),a([Object(r.Input)(),s("design:type",Number)],e.prototype,"maxItems",void 0),e=a([Object(r.Component)({selector:"property-icons",template:n(775)}),s("design:paramtypes",["function"==typeof(c=void 0!==i.a&&i.a)?c:Object])],e)}()},function(e,t){e.exports='<ul data-selenium-id="propertySections-iconList-display" class="property-features" [class.empty]="!showIcons()">\r\n    <li class="bed" *ngIf="bedString">\r\n        <div [innerHTML]="bedString"></div>\r\n        <div class="tooltip">\r\n            {{ \'Bedrooms\' | translate }}\r\n        </div>\r\n    </li>\r\n\r\n    <li class="bath" *ngIf="bathString">\r\n        <div [innerHTML]="bathString"></div>\r\n        <div class="tooltip">\r\n            {{ \'Bathrooms\' | translate }}\r\n        </div>\r\n    </li>\r\n\r\n    <li class="reception" *ngIf="receptionString">\r\n        <div [innerHTML]="receptionString"></div>\r\n        <div class="tooltip">\r\n            {{ \'RECEPTION_ROOMS\' | translate }}\r\n        </div>\r\n    </li>\r\n\r\n    <li class="parking" *ngIf="hasCarParkingCounter">\r\n        <div [innerHTML]="carParkingSpaceString"></div>\r\n        <div class="tooltip">\r\n            {{ \'Car Parking Spaces\' | translate }}\r\n        </div>\r\n    </li>\r\n\r\n    <li class="garage" *ngIf="hasGarage">\r\n        \x3c!--<div [innerHTML]="garageString"></div>--\x3e\r\n        <div class="tooltip">\r\n            {{ garageString }}\r\n        </div>\r\n    </li>\r\n\r\n    <li class="private-parking-garage" *ngIf="hasPrivateParkingGarage">\r\n        \x3c!--<div [innerHTML]="privateParkingGarageString"></div>--\x3e\r\n        <div class="tooltip">\r\n            {{ privateParkingGarageString }}\r\n        </div>\r\n    </li>\r\n\r\n    <li class="tennis" *ngIf="hasTennis">\r\n        <div class="tooltip">\r\n            {{ tennisString }}\r\n        </div>\r\n    </li>\r\n\r\n    <li class="paw" *ngIf="hasPets">\r\n        <div class="tooltip">\r\n            {{ petsString }}\r\n        </div>\r\n    </li>\r\n\r\n    <li class="swimming" *ngIf="hasSwimmingPool">\r\n        <div class="tooltip">\r\n            {{ swimmingPoolString }}\r\n        </div>\r\n    </li>\r\n\r\n    <li class="aircon" *ngIf="hasAirCon">\r\n        <div class="tooltip">\r\n            {{ airConString }}\r\n        </div>\r\n    </li>\r\n\r\n    <li class="lift" *ngIf="hasPassengerLift">\r\n        <div class="tooltip">\r\n            {{ passengerLiftString }}\r\n        </div>\r\n    </li>\r\n\r\n    <li class="desks" *ngIf="hasNumberOfDesks">\r\n        <div>{{property.NumberOfDesks}}</div>\r\n        <div class="tooltip">\r\n            {{ \'Desks\' | translate }}\r\n        </div>\r\n    </li>\r\n\r\n    <li class="raised-access" *ngIf="hasRaisedAccess">\r\n        <div class="tooltip">\r\n            {{ raisedAccessFlooringString }}\r\n        </div>\r\n    </li>\r\n\r\n    <li class="shower" *ngIf="hasShower">\r\n        <div class="tooltip">\r\n            {{ showerString }}\r\n        </div>\r\n    </li>\r\n\r\n    <li class="all-day" *ngIf="has24Access">\r\n        <div class="tooltip">\r\n            {{ access24String }}\r\n        </div>\r\n    </li>\r\n\r\n    <li class="all-day-security" *ngIf="has24Secure">\r\n        <div class="tooltip">\r\n            {{ secure24String }}\r\n        </div>\r\n    </li>\r\n\r\n    <li class="car-park" *ngIf="hasCarParking">\r\n        <div class="tooltip">\r\n            {{ carParkingString }}\r\n        </div>\r\n    </li>\r\n\r\n    <li class="kitchen" *ngIf="hasKitchen">\r\n        <div class="tooltip">\r\n            {{ kitchenString }}\r\n        </div>\r\n    </li>\r\n\r\n    <li class="cctv" *ngIf="hasCCTV">\r\n        <div class="tooltip">\r\n            {{ cctvString }}\r\n        </div>\r\n    </li>\r\n\r\n    <li class="loading-facilities" *ngIf="hasLoading">\r\n        <div class="tooltip">\r\n            {{ loadingFacilitiesString }}\r\n        </div>\r\n    </li>\r\n\r\n    <li class="shutter" *ngIf="hasShutter">\r\n        <div class="tooltip">\r\n            {{ rollerShutterDoorsString }}\r\n        </div>\r\n    </li>
2\r\n\r\n    <li class="spa" *ngIf="hasSpa">\r\n        <div class="tooltip">\r\n            {{ spaString }}\r\n        </div>\r\n    </li>\r\n\r\n    <li class="golf" *ngIf="hasGolf">\r\n        <div class="tooltip">\r\n            {{ golfString }}\r\n        </div>\r\n    </li>\r\n\r\n    <li class="conference" *ngIf="hasConference">\r\n        <i class="fa fa-users" aria-hidden="true"></i>\r\n        <div class="tooltip">\r\n            {{ conferenceString }}\r\n        </div>\r\n    </li>\r\n\r\n    <li class="area" *ngIf="landAreaString">\r\n        <div>   \r\n            <div class="land" [innerHTML]="landAreaString"></div>\r\n            <div *ngIf="landAreaString !== landAreaSecondaryString" class="land-secondary" [innerHTML]="landAreaSecondaryString"></div>\r\n        </div>\r\n    </li>\r\n</ul>\r\n'},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return a});var r=n(0),o=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=function(){function t(e){this.elementRef=e,this.hasCmsFooter=!1}var a;return t.prototype.ngOnInit=function(){this.hasCmsFooter="string"==typeof cmsFooterHtml&&cmsFooterHtml.trim().length>0},t.prototype.ngAfterViewInit=function(){this.hasCmsFooter&&e(this.elementRef.nativeElement).find(".footer-component").html(cmsFooterHtml)},t=o([Object(r.Component)({selector:"cms-footer",template:n(777)}),i("design:paramtypes",["function"==typeof(a=void 0!==r.ElementRef&&r.ElementRef)?a:Object])],t)}()}).call(t,n(5))},function(e,t){e.exports='<footer *ngIf="hasCmsFooter">\r\n    <div class="footer-component"></div>\r\n</footer>'},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(0),o=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=function(){function e(){this.windowScrolled=!1}return e.prototype.onWindowScroll=function(){window.scrollY>window.innerHeight?this.windowScrolled=!0:this.windowScrolled=!1},e.prototype.scrollToTop=function(){window.scrollTo({top:0,behavior:"smooth"})},o([Object(r.HostListener)("window:scroll",[]),i("design:type",Function),i("design:paramtypes",[]),i("design:returntype",void 0)],e.prototype,"onWindowScroll",null),e=o([Object(r.Component)({selector:"go-to-top-button",template:n(779)})],e)}()},function(e,t){e.exports='<button type="button" [ngClass]="{ show: windowScrolled }" (click)="scrollToTop()" class="go-to-top-button">\r\n    Back to top\r\n</button>'},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return c});var r=n(0),o=n(99),i=n(27),a=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){function t(e,t){this.$log=e,this.enabled=!0,this.onSelect=new r.EventEmitter,this.id=t.getUid().toString()}var c,u,l;return t.prototype.ngOnInit=function(){var t=this;setTimeout(function(){t.simpleSelect=e("#search_select_"+t.id).simpleselect({label:t.label}),t.simpleSelect.on("change",function(){t.value=e("#search_select_"+t.i
2d).val(),t.change()}),t.enabled||t.simpleSelect.simpleselect("disable")},100),setTimeout(function(){t.parentSearchSelect.nativeElement.style.opacity="1"},500)},t.prototype.ngOnChanges=function(e){var t=this,n=!1,r=e.value;null!=r&&(this.value=r.currentValue,void 0!=this.value&&void 0!=this.simpleSelect&&(n=!0));var o=e.options;null!=o&&(this.options=o.currentValue,void 0!=this.options&&void 0!=this.simpleSelect&&(n=!0));var i=e.enabled;null!=i&&void 0!=i.currentValue&&(this.enabled=i.currentValue,null!=this.simpleSelect&&(i.currentValue?this.simpleSelect.simpleselect("enable"):this.simpleSelect.simpleselect("disable"))),n&&setTimeout(function(){t.simpleSelect.simpleselect("refreshContents"),t.simpleSelect.simpleselect("refreshState")},100)},t.prototype.change=function(){this.onSelect.emit(this.value)},a([Object(r.Input)(),s("design:type",Array)],t.prototype,"options",void 0),a([Object(r.Input)(),s("design:type",String)],t.prototype,"value",void 0),a([Object(r.Input)(),s("design:type",Boolean)],t.prototype,"enabled",void 0),a([Object(r.Input)(),s("design:type",String)],t.prototype,"label",void 0),a([Object(r.Input)(),s("design:type",Boolean)],t.prototype,"isPriceFilter",void 0),a([Object(r.Output)(),s("design:type",Object)],t.prototype,"onSelect",void 0),a([Object(r.ViewChild)("parentSearchSelect",{static:!1}),s("design:type","function"==typeof(c=void 0!==r.ElementRef&&r.ElementRef)?c:Object)],t.prototype,"parentSearchSelect",void 0),t=a([Object(r.Component)({selector:"search-select",template:n(781)}),s("design:paramtypes",["function"==typeof(u=void 0!==i.a&&i.a)?u:Object,"function"==typeof(l=void 0!==o.a&&o.a)?l:Object])],t)}()}).call(t,n(5))},function(e,t){e.exports='<div #parentSearchSelect class="search-select-container" [class.price-filter]="isPriceFilter">\r\n    <select class="search-select" [id]="\'search_select_\' + id" [(ngModel)]="value">\r\n        <option *ngFor="let option of options" [value]="option.Value">{{option.Label}}</option>\r\n    </select>\r\n</div>\r\n'},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return c});var r=n(0),o=n(99),i=n(27),a=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){function t(e,t){this.$log=e,this.enabled=!0,this.onSelect=new r.EventEmitter,this.id=t.getUid().toString()}var c,u;return t.prototype.ngOnInit=function(){var t=this;setTimeout(function(){t.simpleSelect.on("change",function(){t.value=e("#search_select_"+t.id).val(),t.change()}),t.enabled||t.simpleSelect.simpleselect("disable")},100)},t.prototype.ngOnChanges=function(e){var t=this,n=!1,r=e.value;null!=r&&(this.value=r.currentValue,void 0!=this.value&&void 0!=this.simpleSelect&&(n=!0));var o=e.options;null!=o&&(this.options=o.currentValue,void 0!=this.options&&void 0!=this.simpleSelect&&(n=!0));var i=e.enabled;null!=i&&void 0!=i.currentValue&&(this.enabled=i.currentValue,null!=this.simpleSelect&&(i.currentValue?this.simpleSelect.simpleselect("enable"):this.simpleSelect.simpleselect("disable"))),n&&setTimeout(function(){t.simpleSelect.simpleselect("refreshContents"),t.simpleSelect.simpleselect("refreshState")},100)},t.prototype.change=function(){this.onSelect.emit(this.value)},a([Object(r.Input)(),s("design:type",Array)],t.prototype,"options",void 0),a([Object(r.Input)(),s("design:type",String)],t.prototype,"value",void 0),a([Object(r.Input)(),s("design:type",Boolean)],t.prototype,"enabled",void 0),a([Object(r.Output)(),s("design:type",Object)],t.prototype,"onSelect",void 0),t=a([Object(r.Component)({selector:"search-select2",template:n(783)}),s("design:paramtypes",["function"==typeof(c=void 0!==i.a&&i.a)?c:Object,"function"==typeof(u=void 0!==o.a&&o.a)?u:Object])],t)}()}).call(t,n(5))},function(e,t){e.exports='<div class="search-select-container">\r\n    <select class="search-select" [id]="\'search_select_\' + id" [(ngModel)]="value">\r\n        <option *ngFor="let option of options" [value]="option.Value">{{option.Label}}</option>\r\n    </select>\r\n</div>\r\n'},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return h});var r=n(0),o=n(11),i=n(27),a=n(116),s=n(39),c=n(8),u=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},l=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},d=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Prom
2ise))(function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?o(e.value):function(e){return e instanceof n?e:new n(function(t){t(e)})}(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())})},p=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},h=function(){function t(e,t,n,o){var i=this;this.$log=e,this.eventService=t,this.filterOptionsService=n,this.configService=o,this.shortLabel=!1,this.onSelect=new r.EventEmitter,this.status="",this.primaryOptionsVisible=!1,this.secondaryOptionsVisible=!1,this.selfClick=!1,this.ready=!1,this.subscription=t.subscribe(c.EventTypeEnum.DocumentClicked,function(){i.selfClick||i.closeDropdown(),i.selfClick=!1})}var h,f,m,g;return t.prototype.ngOnInit=function(){return d(this,void 0,Promise,function(){var e,t,n,r,o,i;return p(this,function(a){switch(a.label){case 0:return this.value||(this.value=this.configService.currencies().Default),this.primaryOptions=this.configService.currencies().Items,[4,this.filterOptionsService.getCurrencyOptions()];case 1:for(e=a.sent(),this.secondaryOptions=[],t=0,n=e.Items;t<n.length;t++){for(i in r=n[t],o=!1,this.primaryOptions)if(r.Value===this.primaryOptions[i].Value){this.primaryOptions[i].Label=r.Label,o=!0;break}o||this.secondaryOptions.push(r)}return this.updateStatus(),this.ready=!0,[2]}})})},t.prototype.ngOnChanges=function(e){this.updateStatus()},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.updateStatus=function(){if(this.primaryOptions)for(var e=0,t=this.primaryOptions;e<t.length;e++){(o=t[e]).Value===this.value&&(this.shortLabel?this.status=o.Value:this.status=o.Label)}if(this.secondaryOptions)for(var n=0,r=this.secondaryOptions;n<r.length;n++){var o;(o=r[n]).Value===this.value&&(this.shortLabel?this.status=o.Value:this.status=o.Label)}},t.prototype.onStatusClick=function(){this.selfClick=!0,this.primaryOptionsVisible=!this.primaryOptionsVisible,this.primaryOptionsVisible?e(".price-wrapper").addClass("expanded"):(this.secondaryOptionsVisible=!1,e(".price-wrapper").removeClass("expanded"))},t.prototype.onMoreCurrencies=function(){this.selfClick=!0,this.secondaryOptionsVisible=!this.secondaryOptionsVisible},t.prototype.onSelectClicked=function(e){this.value=e.Value,this.shortLabel?this.status=e.Value:this.status=e.Label,this.onSelect.emit(e.Value)},t.prototype.closeDropdown=function(){this.primaryOptionsVisible=!1,this.secondaryOptionsVisible=!1,e(".price-wrapper").removeClass("expanded")},u([Object(r.Input)(),l("design:type",String)],t.prototype,"value",void 0),u([Object(r.Input)(),l("design:type",Boolean)],t.prototype,"shortLabel",void 0),u([Object(r.Output)(),l("design:type",Object)],t.prototype,"onSelect",void 0),t=u([Object(r.Component)({selector:"currency-select",template:n(785)}),l("design:paramtypes",["function"==typeof(h=void 0!==i.a&&i.a)?h:Object,"function"==typeof(f=void 0!==s.a&&s.a)?f:Object,"function"==typeof(m=void 0!==a.a&&a.a)?m:Object,"function"==typeof(g=void 0!==o.a&&o.a)?g:Object])],t)}()}).call(t,n(5))},function(e,t){e.exports='<ng-container *ngIf="ready">\r\n    <div [class.expanded]="secondaryOptionsVisible" [class.active]="primaryOptionsVisible" class="currency-dropdown">\r\n        <div class="placeholder" data-selenium-id="propertyBar-currencyLabel-displayCurrency" (click)="onStatusClick()"><span>{{status}}</span></div>\r\n        <ul [attr.data-hidden]="!primaryOptionsVisible">\r\n            <ng-container *ngFor="let option of primaryOptions">\r\n                <li (click)="onSelectClicked(option)">
2\r\n                    <span>{{option.Label}}</span>\r\n                    <span>{{option.Value}}</span>\r\n                </li>\r\n            </ng-container>\r\n            <ng-container *ngIf="!secondaryOptionsVisible">\r\n                <li class="more-currencies" (click)="onMoreCurrencies()">{{\'More currencies\'|translate}}</li>\r\n            </ng-container>\r\n            <ng-container *ngFor="let option of secondaryOptions">\r\n                <li [attr.data-hidden]="!secondaryOptionsVisible" (click)="onSelectClicked(option)">\r\n                    <span>{{option.Label}}</span>\r\n                    <span>{{option.Value}}</span>\r\n                </li>\r\n            </ng-container>\r\n        </ul>\r\n    </div>\r\n</ng-container>\r\n'},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(0),o=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},i=function(){function e(){}return e=o([Object(r.Component)({selector:"global-loading",template:n(787)})],e)}()},function(e,t){e.exports='\r\n<div class="progress">\r\n\t<div class="indeterminate"></div>\r\n</div>'},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(0),o=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=function(){function e(){}return e.prototype.ngOnInit=function(){},e=o([Object(r.Component)({selector:"approximate-disclaimer",template:n(789)}),i("design:paramtypes",[])],e)}()},function(e,t){e.exports='<div class="approx-disclaimer">\r\n    <img src="/properties-resources/images/icons/results/Info_Knight-Frank-grey.svg" alt="Information icon" width="16" height="16">\r\n    <span>{{\'APPROXIMATE_DISCLAIMER\'|translate}}</span>\r\n</div>'},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return s});var r=n(0),o=n(152),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=function(){function t(e){this.tagCmdService=e}var s;return t.prototype.tagCmd=function(){this.tagCmdService.campaignTagCmd({name:"Occupier X sell",format:"banner",htmlElement:e("#occupier-banner"),property_ref:this.reference})},i([Object(r.Input)(),a("design:type",Boolean)],t.prototype,"isOccupierCrossSell",void 0),i([Object(r.Input)(),a("design:type",String)],t.prototype,"reference",void 0),t=i([Object(r.Component)({selector:"occupier-cross-sell-banner",template:n(791)}),a("design:paramtypes",["function"==typeof(s=void 0!==o.a&&o.a)?s:Object])],t)}()}).call(t,n(5))},function(e,t){e.exports='<div *ngIf="isOccupierCrossSell" class="occupier-banner-wrapper">\r\n\t<div class="occupier-banner">\r\n\t\t<a href="https://www.knightfrank.co.uk/office-space" rel="noindex, nofollow" target="_blank" (click)="tagCmd()">\r\n\t\t\t<div class="occupier-banner-content-wrapper">\r\n\t\t\t\t<div class="text">Looking for flexible, managed, serviced or coworking space?</div>\r\n\t\t\t\t<div class="sub-text">We can help, whether you\'re looking 1 or 500 desks.</div>\r\n\t\t\t\t<div class="link">View now</div>\r\n\t\t\t</div>\r\n\t\t</a>\r\n\t</div>\r\n</div>\r\n\r\n\r\n<div class="col-xs-12 pdp-cross-sell">\r\n\t<a href="https://www.knightfrank.co.uk/office-space" rel="noindex, nofollow" target="_blank" (click)="tagCmd()">\r\n\t\t\t<div class="pdp-kf-office-space-logo"></div>\r\n\t\t\t<div class="sub-text">
2Looking for flexible, managed, serviced or coworking space?</div>\r\n\t\t\t<div class="link">We can help</div>\r\n\t</a>\r\n</div>'},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(0),o=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=function(){function e(){}return o([Object(r.Input)(),i("design:type",String)],e.prototype,"title",void 0),o([Object(r.Input)(),i("design:type",String)],e.prototype,"country",void 0),e=o([Object(r.Component)({selector:"property-address-title",template:n(793)})],e)}()},function(e,t){e.exports='<div class="pdp-property-address">{{title}}</div>\r\n<div data-selenium-id="propertyBar-text-propertyCountry" class="country">{{country}}</div>'},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(0),o=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=function(){function e(){}return o([Object(r.Input)(),i("design:type",String)],e.prototype,"title",void 0),o([Object(r.Input)(),i("design:type",Boolean)],e.prototype,"reduced",void 0),e=o([Object(r.Component)({selector:"property-title",template:n(795)})],e)}()},function(e,t){e.exports='<ng-container [ngSwitch]="reduced">\r\n    <h1 *ngSwitchDefault>{{title}}</h1>\r\n    <div *ngSwitchCase="true" class="address">{{title}}</div>\r\n</ng-container>\r\n'},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(0),o=n(8),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=function(){function e(){this.isNewHome=!1,this.newHomeLabel=""}var t;return e.prototype.ngOnChanges=function(e){this.parseFeatures()},e.prototype.parseFeatures=function(){for(var e=0,t=this.property.Features;e<t.length;e++){var n=t[e];n.Id===o.FixedEnum.NewHome&&(this.isNewHome=!0,this.newHomeLabel="new homes"===n.Name.toLocaleLowerCase()?"New Home":n.Name)}},i([Object(r.Input)(),a("design:type","function"==typeof(t=void 0!==o.NspProperty&&o.NspProperty.IProperty)?t:Object)],e.prototype,"property",void 0),e=i([Object(r.Component)({selector:"banners",template:n(797)}),a("design:paramtypes",[])],e)}()},function(e,t){e.exports='<ng-container *ngIf="isNewHome ||property.Banners.length">\r\n    <div class="banners">\r\n        <div class="new-home-label" *ngIf="isNewHome">\r\n            <span>{{ newHomeLabel }}</span>\r\n        </div> \r\n        <div class="property-let-type">\r\n            <ng-container *ngFor="let banner of property.Banners; let last = last">\r\n                <span>{{last ? banner : banner}}</span>\r\n            </ng-container>\r\n        </div>\r\n    </div>\r\n</ng-container>\r\n'},function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r=n(0),o=n(94),i=n(8),a=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){function e(e){this.propertyPriceService=e}var t,c;return e.prototype.ngOnChanges=function(e){e.property&&(this.isResidential=this.property.Division===i.DivisionEnum.Residential,this.isSales=this.property.TransactionType===i.TransactionEnum.S
2ales,this.renderPrice(this.property.Price))},e.prototype.renderPrice=function(e){this.secondaryRentalPrice=this.propertyPriceService.getSecondaryRentalPrice(e),this.secondaryShortLetPrice=this.propertyPriceService.getSecondaryShortLetPrice(e)},a([Object(r.Input)(),s("design:type","function"==typeof(t=void 0!==i.NspProperty&&i.NspProperty.IProperty)?t:Object)],e.prototype,"property",void 0),e=a([Object(r.Component)({selector:"property-secondary-price-title",template:n(799)}),s("design:paramtypes",["function"==typeof(c=void 0!==o.a&&o.a)?c:Object])],e)}()},function(e,t){e.exports='<ng-container *ngIf="secondaryRentalPrice && secondaryShortLetPrice">\r\n    <div class="price">\r\n        <span>{{secondaryRentalPrice}} {{property.Price.SecondaryRentalPriceTerm}} ({{\'LBL_LettingType_SHORT\' |\r\n            translate }}: {{secondaryShortLetPrice}})</span>\r\n    </div>\r\n</ng-container>\r\n<ng-container *ngIf="secondaryRentalPrice && !secondaryShortLetPrice">\r\n    <div class="price">\r\n        <span>{{secondaryRentalPrice}} {{property.Price.SecondaryRentalPriceTerm}}</span>\r\n    </div>\r\n</ng-container>'},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(0),o=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=function(){function e(){this.numArr=[]}return e.prototype.ngOnChanges=function(){this.numArr=Array.from(Array(this.numCards).keys())},o([Object(r.Input)(),i("design:type",Number)],e.prototype,"numCards",void 0),o([Object(r.Input)(),i("design:type",String)],e.prototype,"title",void 0),o([Object(r.Input)(),i("design:type",String)],e.prototype,"sectionClass",void 0),o([Object(r.Input)(),i("design:type",String)],e.prototype,"gridClass",void 0),e=o([Object(r.Component)({selector:"skeleton-card-container",template:n(801)}),i("design:paramtypes",[])],e)}()},function(e,t){e.exports='<section [ngClass]="sectionClass">\r\n    <div *ngIf="title !== undefined" class="similar-properties-title-container">\r\n        <h3>{{title}}</h3>\r\n    </div>\r\n    <div [ngClass]="gridClass">\r\n        <skeleton-card *ngFor="let n of numArr"></skeleton-card>\r\n    </div>\r\n</section>'},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(0),o=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=function(){function e(){}return e=o([Object(r.Component)({selector:"skeleton-card",template:n(803)}),i("design:paramtypes",[])],e)}()},function(e,t){e.exports='<div class="skeleton-image"></div>\r\n<div class="skeleton-h1"></div>\r\n<div class="skeleton-h2"></div>\r\n<div class="skeleton-h3"></div>\r\n<div class="skeleton-features">\r\n    <div></div>\r\n    <div></div>\r\n    <div></div>\r\n</div>\r\n<div class="skeleton-price-label"></div>\r\n<div class="skeleton-price"></div>'},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(0),o=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=function(){function e(){}return e=o([Object(r.Component)({selector:"skeleton-property-details",template:n(805)}),i("design:paramtypes",[])],e)}()},function(e,t){e.exports='<div class="loading-bar"></div>\r\n\r\n<div class="pager-details">\r\n    <div class="container">\r\n        <div class="skeleton-loader" style="block-size: 22px;
2 inline-size: 132px;"></div>\r\n    </div>\r\n</div>\r\n\r\n<div class="container-fluid interactive-container property-details-container">\r\n    <div class="pdp-top-container">\r\n        <div class="row flex-nowrap">\r\n            <div class="col-xs-12 showcase four-images">\r\n                <div class="pdp-image-1 skeleton-loader"></div>\r\n                <div class="pdp-image-2 skeleton-loader"></div>\r\n                <div class="pdp-image-3 skeleton-loader"></div>\r\n                <div class="pdp-image-4 skeleton-loader"></div>\r\n            </div>\r\n            <div class="col-xs-12 info">\r\n                <div class="skeleton-property-info">\r\n                    <div class="skeleton-property-title-container">\r\n                        <div class="w-100 skeleton-loader skeleton-loader_property-title"></div>\r\n                        <div class="w-75 skeleton-loader skeleton-loader_property-title"></div>\r\n                    </div>\r\n                    <div class="w-100 skeleton-loader" style="block-size: 24px;"></div>\r\n                    <div class="skeleton-loader" style="block-size: 24px; inline-size: 80px;"></div>\r\n                    <div class="skeleton-property-title-container">\r\n                        <div class="w-100 skeleton-loader" style="block-size: 20px;"></div>\r\n                        <div class="w-100 skeleton-loader" style="block-size: 20px;"></div>\r\n                        <div class="skeleton-loader w-50" style="block-size: 20px;"></div>\r\n                    </div>\r\n                    <div style="display: flex; gap: 20px;">\r\n                        <div class="skeleton-loader" style="inline-size: 57px; block-size: 28px;"></div>\r\n                        <div class="skeleton-loader" style="inline-size: 57px; block-size: 28px;"></div>\r\n                    </div>\r\n                    <div class="skeleton-loader" style="inline-size: 248px; block-size: 28px;"></div>\r\n                    <div class="skeleton-loader" style="inline-size: 248px; block-size: 28px;"></div>\r\n                    <div class="skeleton-features">\r\n                        <div class="skeleton-loader"></div>\r\n                        <div class="skeleton-loader"></div>\r\n                        <div class="skeleton-loader"></div>\r\n                    </div>\r\n                    <div class="skeleton-property-title-container">\r\n                        <div class="skeleton-loader" style="inline-size: 248px; block-size: 12px;"></div>\r\n                        <div class="w-100 skeleton-loader" style="block-size: 68px;"></div>\r\n                    </div>\r\n                    <div class="skeleton-loader" style="block-size: 116px; margin-block-start: 20px;"></div>\r\n                    <div class="skeleton-loader" style="block-size: 116px;"></div>\r\n                    <div class="skeleton-loader" style="block-size: 116px;"></div>\r\n                    <div class="skeleton-loader" style="block-size: 60px;"></div>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</div>'},function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r=n(0),o=n(8),i=n(326),a=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){function e(){this.imgWidth=730,this.showCount=!1,this.showArrows=!0,this.showBanners=!0,this.isPlp=!1,this.limit=null,this.loopIndex=null,this.onClick=new r.EventEmitter,this.carouselIndex=0,this.isRtl=!1,this.imgUrls=[],this.allImagesLoaded=!1,this.partialLoadAhead=0,this.isNewHome=!1,this.isRtl="rtl"===document.dir}var t,c,u,l,d,p;return e.prototype.ngOnChanges=function(e){this.limit?this.imgUrls=this.property.ImgUrls.slice(0,this.limit):this.imgUrls=this.property.ImgUrls,this.parseFeatures()},e.prototype.onImgClick=function(){this.onClick.emit(this.carouselIndex)},e.prototype.onPrevClick=function(e){e.stopPropagation(),e.preventDefault(),this.carouselContainer.nativeElement.scrollBy({left:this.isRtl?this.carouselContainer.nativeElement.offsetWidth:-this.carouselContainer.nativeElement.offsetWidth})},e.prototype.onNextClick=function(e){e.stopPropagation(),e.preventDefault(),this.carouselContainer.nativeElement.scrollBy({left:this.isRtl?-this.carouselContainer.nativeElement.offsetWidth:this.carouselContainer.nativeElement.offsetWidth})},e.prototype.handleScroll=function(){var e=this.carouselContainer.nativeElement.scrollLeft/this.carouselContainer.nativeElement.offsetWidth;this.carouselIndex=Math.round(this.isRtl?-1*e:e)},e.prototype.onPaginationClick=function(e){e.stopPropagation(),e.preventDefault(),this.allImagesLoaded||this.loadAllImages();var t=+e.target.getAttribute("data-page");this.carouselImgs.find(function(e,n){return n===t}).nativeElement.scrollIntoView({inline:"start",block:"nearest"}),this.carouselIndex=t},e.prototype.setLazyLoading=function(e){return this.isPlp&&this.loopIndex&&this.loopIndex<9?0===e?"eager":"lazy":this.isPlp||
20!==e?"lazy":"eager"},e.prototype.loadAllImages=function(){var e=this;this.allImagesLoaded||(0===this.partialLoadAhead?(this.partialLoadAhead=2,setTimeout(function(){e.imageDirectives&&e.imageDirectives.length&&e.imageDirectives.forEach(function(e){return e.setImgAttrs()})},0)):(this.imageDirectives&&this.imageDirectives.length&&this.imageDirectives.forEach(function(e){return e.setImgAttrs()}),this.allImagesLoaded=!0))},e.prototype.parseFeatures=function(){for(var e=0,t=this.property.Features;e<t.length;e++){t[e].Id===o.FixedEnum.NewHome&&(this.isNewHome=!0)}},a([Object(r.Input)(),s("design:type","function"==typeof(t=void 0!==o.NspProperty&&o.NspProperty.IProperty)?t:Object)],e.prototype,"property",void 0),a([Object(r.Input)(),s("design:type",Number)],e.prototype,"imgWidth",void 0),a([Object(r.Input)(),s("design:type",Boolean)],e.prototype,"showCount",void 0),a([Object(r.Input)(),s("design:type",Boolean)],e.prototype,"showArrows",void 0),a([Object(r.Input)(),s("design:type",Boolean)],e.prototype,"showBanners",void 0),a([Object(r.Input)(),s("design:type",Boolean)],e.prototype,"isPlp",void 0),a([Object(r.Input)(),s("design:type",Number)],e.prototype,"limit",void 0),a([Object(r.Input)(),s("design:type",Number)],e.prototype,"loopIndex",void 0),a([Object(r.Output)(),s("design:type",Object)],e.prototype,"onClick",void 0),a([Object(r.ViewChild)("prevImg",{static:!1}),s("design:type","function"==typeof(c=void 0!==r.ElementRef&&r.ElementRef)?c:Object)],e.prototype,"prevImg",void 0),a([Object(r.ViewChild)("nextImg",{static:!1}),s("design:type","function"==typeof(u=void 0!==r.ElementRef&&r.ElementRef)?u:Object)],e.prototype,"nextImg",void 0),a([Object(r.ViewChild)("carouselContainer",{static:!1}),s("design:type","function"==typeof(l=void 0!==r.ElementRef&&r.ElementRef)?l:Object)],e.prototype,"carouselContainer",void 0),a([Object(r.ViewChildren)(i.a),s("design:type","function"==typeof(d=void 0!==r.QueryList&&r.QueryList)?d:Object)],e.prototype,"imageDirectives",void 0),a([Object(r.ViewChildren)("carouselImg"),s("design:type","function"==typeof(p=void 0!==r.QueryList&&r.QueryList)?p:Object)],e.prototype,"carouselImgs",void 0),e=a([Object(r.Component)({selector:"kf-carousel",template:n(807)}),s("design:paramtypes",[])],e)}()},function(e,t){e.exports='<div class="kf-carousel">\r\n    <div\r\n        class="propertyTopBanner"\r\n        *ngIf="showBanners && (property.Banners.length || isNewHome)"\r\n    >\r\n        <banners [property]="property"></banners>\r\n    </div>\r\n    <div\r\n        #carouselContainer\r\n        (scroll)="handleScroll()"\r\n        (touchstart)="loadAllImages()"\r\n        (mouseover)="loadAllImages()"\r\n        (focus)="loadAllImages()"\r\n        class="kf-carousel-container"\r\n        role="region"\r\n        aria-label="Image carousel"\r\n        tabindex="0"\r\n    >\r\n        <ol class="kf-carousel-media" role="list">\r\n            <li\r\n                #carouselImg\r\n                *ngFor="let imgUrl of imgUrls; index as i"\r\n                class="kf-carousel-item"\r\n                [attr.data-index]="i"\r\n            >\r\n                <img\r\n                    *ngIf="i === 0 || allImagesLoaded || i <= (carou
2selIndex + partialLoadAhead)"\r\n                    [attr.data-src]="imgUrl"\r\n                    [attr.alt]="imgUrl ? ((i + 1) + \' \' + (\'Of\' | translate) + \' \' + imgUrls.length) : \'\'"\r\n                    [width]="imgWidth"\r\n                    [height]="imgWidth / 1.5"\r\n                    [attr.loading]="setLazyLoading(i)"\r\n                    (click)="onImgClick()"\r\n                    setResponsive\r\n                    [fullWidth]="!isPlp"\r\n                    [maxPixelWidth]="isPlp ? 480 : null"\r\n                />\r\n            </li>\r\n        </ol>\r\n    </div>\r\n    <div\r\n        class="mobile-carousel-count"\r\n        *ngIf="property.ImgUrls.length > 1 && showCount"\r\n    >\r\n        {{ carouselIndex + 1 }}/{{ property.ImgUrls.length }}\r\n    </div>\r\n    <button\r\n        *ngIf="showArrows"\r\n        #prevImg\r\n        [attr.disabled]="carouselIndex === 0 ? true : null"\r\n        class="prev-img"\r\n        (click)="onPrevClick($event)"\r\n    >\r\n        <span class="sr-only">Previous</span>\r\n        <i class="arrow"></i>\r\n    </button>\r\n    <button\r\n        *ngIf="showArrows"\r\n        #nextImg\r\n        [attr.disabled]="carouselIndex === imgUrls.length - 1 ? true : null"\r\n        class="next-img"\r\n        (click)="onNextClick($event)"\r\n    >\r\n        <span class="sr-only">Next</span>\r\n        <i class="arrow"></i>\r\n    </button>\r\n    <ul class="kf-carousel-pagination" *ngIf="showIndicators && limit">\r\n        <li\r\n            *ngFor="let img of imgUrls | slice:0:limit; index as i"\r\n            [ngClass]="{active: i === carouselIndex}"\r\n        >\r\n            <button\r\n                type="button"\r\n                (click)="onPaginationClick($event)"\r\n                [attr.data-page]="i"\r\n            >\r\n                <span class="sr-only"> Image {{ i }} </span>\r\n            </button>\r\n        </li>\r\n    </ul>\r\n</div>\r\n'},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return f});var r=n(0),o=n(23),i=n(54),a=n(327),s=n(154),c=n(117),u=n(213),l=n(27),d=n(197),p=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},h=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},f=function(){function t(t,n,r,i,a,s,c,u,l){var d=this;this.router=t,this.tracking=n,this.singleSearchService=r,this.navigationService=i,this.msalBroadcastService=a,this.authService=s,this.authRedirectService=c,this.logger=u,this.utmAttributionService=l,e(document).ready(function(){d.navigationService.onDocReady()}),this.utmAttributionService.captureFromCurrentUrl(),this.singleSearchService.create(),this.router.events.subscribe(function(e){e instanceof o.d&&(d.utmAttributionService.captureFromCurrentUrl(),d.tracking.pageView(),d.navigationService.rebuildLanguageSelector(),d.showOptimizelyFooter())})}var n,f,m,g,y,v,b,S,E;return t.prototype.ngOnInit=function(){var e=this;this.authService.instance.handleRedirectPromise().then(function(t){t?(e.logger.log("[MSAL] Login successful:",t),e.authService.instance.setActiveAccount(t.account),e.authRedirectService.setRedirectedStatus(!0)):e.authRedirectService.setRedirectedStatus(!1)}),this.msalBroadcastService.inProgress$.subscribe(function(t){e.logger.log("[MSAL] Status:",t)})},t.prototype.showOptimizelyFooter=function(){document.body.classList.remove("is-loading-search-app")},t=p([Object(r.Component)({selector:"kf-search",template:"<router-outlet></router-outlet>"}),h("design:paramtypes",["function"==typeof(n=void 0!==o.g&&o.g)?n:Object,"function"==typeof(f=void 0!==s.a&&s.a)?f:Object,"function"==typeof(m=void 0!==i.a&&i.a)?m:Object,"function"==typeof(g=void 0!==a.a&&a.a)?g:Object,"function"==typeof(y=void 0!==c.d&&c.d)?y:Object,"function"==typeof(v=void 0!==c.i&&c.i)?v:Object,"function"==typeof(b=void 0!==u.a&&u.a)?b:Object,"function"==typeof(S=void 0!==l.a&&l.a)?S:Object,"function"==typeof(E=void 0!==d.a&&d.a)?E:Object])],t)}()}).call(t,n(5))},function(e,t,n){"use strict";n.d(t,"a",function(){return q});var r=n(0),o=n(24),i=n(88),a=n(87),s=n(11),c=n(97),u=n(330),l=n(152),d=n(333),p=n(32),h=n(212),f=n(288),m=n(27),g=n(156),y=n(125),v=n(331),b=n(39),S=n(116),E=n(340),C=n(98),T=n(327),w=n(211),_=n(61),I=n(148),P=n(155),R=n(67),O=n(99),A=n(154),k=n(29),M=n(54),N=n(94),x=n(332),L=n(197),j=n(285),D=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},F=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},U=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}},q=function(){function e(e){if(e)throw new Error("CoreServiceModule is already loaded. Import it in the AppModule only")}
2return e=D([Object(r.NgModule)({imports:[o.CommonModule],declarations:[j.a],exports:[o.CommonModule],providers:[i.a,a.c,a.b,a.a,a.d,c.a,s.a,u.a,l.a,d.a,p.a,h.a,f.a,m.a,g.a,y.a,v.a,b.a,S.a,C.a,E.a,T.a,w.a,_.c,I.a,P.a,R.a,O.a,A.a,k.a,M.a,N.a,x.a,L.a]}),U(0,Object(r.Optional)()),U(0,Object(r.SkipSelf)()),F("design:paramtypes",[e])],e)}()},function(e,t,n){"use strict";n.d(t,"a",function(){return T});var r=n(0),o=n(338),i=n(811),a=n(813),s=n(815),c=n(817),u=n(819),l=n(821),d=n(823),p=n(825),h=n(289),f=n(827),m=n(830),g=n(287),y=n(328),v=n(838),b=n(840),S=n(290),E=n(842),C=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},T=function(){function e(){}return e=C([Object(r.NgModule)({imports:[o.a],declarations:[i.a,a.a,s.a,c.a,u.a,l.a,d.a,b.a,S.a,E.a,p.a,h.a,f.a,m.a,y.a,v.a,g.a],exports:[g.a]})],e)}()},function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n(0),o=n(27),i=n(39),a=n(54),s=n(8),c=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},u=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(e,t,n){this.$log=e,this.eventService=t,this.singleSearchService=n,this.value=new s.SelectedOptions,this.options=[],this.onSelect=new r.EventEmitter,this.checkOptions=[],this.optionsVisible=!1,this.selfClick=!1,this.optionAll=!0}var t,l,d,p;return e.prototype.ngOnInit=function(){this.renderOptions()},e.prototype.ngOnChanges=function(e){e.options&&e.options.currentValue&&(this.options=e.options.currentValue,this.renderOptions()),this.parseValue()},e.prototype.getDefaultLabel=function(){return this.options&&this.options.length>0?this.options[0].Label:"..."},e.prototype.parseValue=function(){this.value=this.value||new s.SelectedOptions;for(var e=0,t=0,n=this.checkOptions;t<n.length;t++){var r=n[t];r.checked=!1,this.value.contains(r.Value)&&(r.checked=!0,++e)}e?(this.optionAll=!1,this.status=this.getDefaultLabel()+" ("+e+")"):this.status=this.getDefaultLabel()},e.prototype.renderOptions=function(){this.options=this.options||[],this.checkOptions=[];for(var e=0;e<this.options.length;++e){var t=this.options[e];0===e?this.status=t.Label:this.checkOptions.push({checked:!1,Label:t.Label,Value:t.Value})}},e.prototype.onStatusClick=function(){this.optionsVisible=!this.optionsVisible,this.selfClick=!0},e.prototype.onElementClick=function(){this.selfClick=!0},e.prototype.onToggleAll=function(){this.value=this.value||new s.SelectedOptions,this.value.clear();for(var e=0,t=this.checkOptions;e<t.length;e++){t[e].checked=!1}this.status=this.getDefaultLabel(),this.onSelect.emit(this.value)},e.prototype.onToggle=function(){this.update()},e.prototype.update=function(){this.value=this.value||new s.SelectedOptions,this.value.clear();for(var e=0,t=0,n=this.checkOptions;t<n.length;t++){var r=n[t];r.checked&&(this.value.add(r.Value),++e)}e?(this.optionAll=!1,this.status=this.getDefaultLabel()+" ("+e+")"):this.status=this.getDefaultLabel(),this.onSelect.emit(this.value)},c([Object(r.Input)(),u("design:type","function"==typeof(t=void 0!==s.SelectedOptions&&s.SelectedOptions)?t:Object)],e.prototype,"value",void 0),c([Object(r.Input)(),u("design:type",Array)],e.prototype,"options",void 0),c([Object(r.Input)(),u("design:type",String)],e.prototype,"nameId",void 0),c([Object(r.Output)(),u("design:type",Object)],e.prototype,"onSelect",void 0),e=c([Object(r.Component)({selector:"multi-select",template:n(812)}),u("design:paramtypes",["function"==typeof(l=void 0!==o.a&&o.a)?l:Object,"function"==typeof(d=void 0!==i.a&&i.a)?d:Object,"function"==typeof(p=void 0!==a.a&&a.a)?p:Object])],e)}()},function(e,t){e.exports='<div class="multi-select dropdown">\r\n    <div class="placeholder" (click)="onStatusClick()"><div>{{status}}</div></div>\r\n    <ul (click)="onElementClick()" class="dropdown-menu">\r\n        <li class="multi-select-options">\r\n            <div class="checkbox2">\r\n                <input type="checkbox" id="{{ nameId }}" [(ngModel)]="optionAll" [disabled]="optionAll" (ngModelChange)="onToggleAll()" />\r\n                <label for="{{ nameId }}">{{\'All\' | translate}}</label>\r\n            </div>\r\n        </li>\r\n        <li class="multi-select-options" *ngFor="let option of checkOptions; index as i">\r\n            <div class="checkbox2">\r\n                <input type="checkbox" id="{{ nameId + (1+i) }}
2" [(ngModel)]="option.checked" (ngModelChange)="onToggle()" />\r\n                <label for="{{ nameId + (1+i) }}">{{option.Label}}</label>\r\n            </div>\r\n        </li>\r\n    </ul>\r\n</div>'},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(0),o=n(8),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=function(){function e(){this.value=new o.SelectedOptions,this.options=[],this.enableSearch=!1,this.showOptionAll=!0,this.onSelect=new r.EventEmitter,this.checkOptions=[],this.optionsVisible=!1,this.selfClick=!1,this.optionAll=!1,this.searchText="",this.listMinHeight=0}var t,s;return e.prototype.ngOnInit=function(){this.showOptionAll&&(this.optionAll=!0),this.renderOptions(),this.parseValue()},e.prototype.ngOnChanges=function(e){e.options&&e.options.currentValue&&(this.options=e.options.currentValue,this.renderOptions()),this.parseValue()},e.prototype.displayedOptions=function(){if(this.searchText&&this.searchText.length>=1){var e=this.searchText.toLowerCase();return this.checkOptions.filter(function(t){return-1!==(t.Label||"").toLowerCase().indexOf(e)})}return this.checkOptions},e.prototype.selectedOptions=function(){return this.checkOptions.filter(function(e){return!!e.checked})},e.prototype.onSearchChange=function(e){var t=e||"";t&&!this.listMinHeight&&this.optionsListRef&&(this.listMinHeight=this.optionsListRef.nativeElement.offsetHeight),this.searchText=t,this.searchText||(this.listMinHeight=0)},e.prototype.clearSearch=function(){this.searchText="",this.onSearchChange("")},e.prototype.removeSelected=function(e){var t=this.checkOptions.find(function(t){return t.Value===e});t&&(t.checked=!1,this.update())},e.prototype.getDefaultLabel=function(){return this.options&&this.options.length>0?this.options[0].Label:"..."},e.prototype.parseValue=function(){this.value=this.value||new o.SelectedOptions;for(var e=0,t=0,n=this.checkOptions;t<n.length;t++){var r=n[t];r.checked=!1,this.value.contains(r.Value)&&(r.checked=!0,++e)}e?this.optionAll=!1:this.options.length>0&&!e&&(this.optionAll=!0)},e.prototype.renderOptions=function(){this.options=this.options||[],this.checkOptions=[];for(var e=0;e<this.options.length;++e){var t=this.options[e];this.checkOptions.push({checked:!1,Label:t.Label,Value:t.Value})}},e.prototype.onElementClick=function(){this.selfClick=!0},e.prototype.onToggleAll=function(){this.value=this.value||new o.SelectedOptions,this.value.clear();for(var e=0,t=this.checkOptions;e<t.length;e++){t[e].checked=!1}this.onSelect.emit(this.value)},e.prototype.onToggle=function(){this.update()},e.prototype.update=function(){this.value=this.value||new o.SelectedOptions,this.value.clear();for(var e=0,t=0,n=this.checkOptions;t<n.length;t++){var r=n[t];r.checked&&(this.value.add(r.Value),++e)}e&&(this.optionAll=!1),this.onSelect.emit(this.value)},i([Object(r.Input)(),a("design:type","function"==typeof(t=void 0!==o.SelectedOptions&&o.SelectedOptions)?t:Object)],e.prototype,"value",void 0),i([Object(r.Input)(),a("design:type",Array)],e.prototype,"options",void 0),i([Object(r.Input)(),a("design:type",String)],e.prototype,"nameId",void 0),i([Object(r.Input)(),a("design:type",Boolean)],e.prototype,"enableSearch",void 0),i([Object(r.Input)(),a("design:type",Boolean)],e.prototype,"showOptionAll",void 0),i([Object(r.Output)(),a("design:type",Object)],e.prototype,"onSelect",void 0),i([Object(r.ViewChild)("optionsList"),a("design:type","function"==typeof(s=void 0!==r.ElementRef&&r.ElementRef)?s:Object)],e.prototype,"optionsListRef",void 0),e=i([Object(r.Component)({selector:"multi-select2",template:n(814)})],e)}()},function(e,t){e.exports='\r\n<div class="multi-select2-root" (click)="onElementClick()">\r\n    <div *ngIf="enableSearch">\r\n        <div class="multi-select-search">\r\n            <div class="input-wrap">\r\n                <input type="text" class="form-control" placeholder="{{ \'SearchFeatures\' | translate }}" [(ngModel)]="searchText" (ngModelChange)="onSearchChange($event)" id="{{ nameId || \'multi-select2\' }}-search" name="{{ nameId || \'multi-select2\' }}-search" />\r\n                <button type="button" class="clear-input" aria-label="Clear search" *ngIf="searchText" (click)="clearSearch()">\r\n                    <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\r\n                        <rect width="24" height="24" fill="#F5F5F5" rx="12" class="circle" />\r\n                        <path d="M8.22707 16.8365L7.16357 15.773L10.9366 12L7.16357 8.25198L8.22707 7.18848L12.0001 10.9615L15.7481 7.18848L16.8116 8.25198L13.0386 12L16.8116 15.773L15.7481 16.8365L12.0001 13.0635L8.22707 16.8365Z" fill="#A8A8A7" class="cross" />\r\n                    </svg>\r\n                </button>\r\n            </div>\r\n            <div class="selected-pills" *ngIf="selectedOptions().length > 0">
2\r\n                <span class="pill" *ngFor="let opt of selectedOptions()">\r\n                    {{ opt.Label }}\r\n                    <a role="button" class="pill-remove" (click)="removeSelected(opt.Value)"><span class="pi pi-times" aria-hidden="true"></span></a>\r\n                </span>\r\n            </div>\r\n        </div>\r\n    </div>\r\n\r\n    <ul class="options-list" #optionsList [style.min-height.px]="listMinHeight">\r\n        <li *ngIf="showOptionAll">\r\n            <div class="checkbox2">\r\n                <input type="checkbox" id="{{ nameId }}" [(ngModel)]="optionAll" [disabled]="optionAll" (ngModelChange)="onToggleAll()" />\r\n                <label for="{{ nameId }}">{{\'Any\' | translate}}</label>\r\n            </div>\r\n        </li>\r\n        <li *ngFor="let option of displayedOptions(); index as j">\r\n            <div class="checkbox2">\r\n                <input type="checkbox" id="{{ nameId + (1+j) }}" [ngClass]="{\'checked\': option.checked}" [(ngModel)]="option.checked" (ngModelChange)="onToggle()" />\r\n                <label for="{{ nameId + (1+j) }}">{{option.Label}}</label>\r\n            </div>\r\n        </li>\r\n    </ul>\r\n</div>\r\n'},function(e,t,n){"use strict";n.d(t,"a",function(){return m});var r=n(0),o=n(23),i=n(11),a=n(61),s=n(32),c=n(27),u=n(54),l=n(8),d=n(29),p=n(156),h=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},f=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},m=function(){function e(e,t,n,r,o,i,a){this.myKfService=e,this.urlHelperService=t,this.route=n,this.$log=r,this.translateService=o,this.singleSearchService=i,this.configService=a,this.properties=[],this.enableSingleSearch=!1}var t,m,g,y,v,b,S,E,C,T;return e.prototype.ngOnChanges=function(e){this.refreshLabel()},e.prototype.ngAfterViewInit=function(){if(this.slug&&!this.slug.startsWith(a.a)){var e=null,t=document.createElement("div"),n=this;t.innerHTML=this.translateService.translate("NO_RESULTS_CREATE_ALERT"),(e=t.querySelector("a"))&&(e.setAttribute("href","#"),e.setAttribute("id","create-alert"),e.setAttribute("title","Create propery alert"),e.setAttribute("data-tc-clickEvent","'Create Email Alert-property_result'")),this.createAlertMsg.nativeElement.insertAdjacentHTML("beforeend",t.innerHTML),document.getElementById("create-alert").addEventListener("click",function(e){n.onCreateSearchAlert(),e.preventDefault()})}document.getElementById("create-alert").addEventListener("contextmenu",function(e){e.preventDefault()})},e.prototype.refreshLabel=function(){var e="NO_RESULTS_LOCATION";this.enableSingleSearch&&(e="SS_No_Results_Message"),this.propertiesMsg=this.translateService.translate(e,{location:this.location,contact:this.configService.contactUrl()})},e.prototype.onCreateSearchAlert=function(){this.myKfService.createSearchAlert(this.urlHelperService.getSearchUrlParams(this.route.snapshot.params))},h([Object(r.Input)(),f("design:type","function"==typeof(t=void 0!==l.DivisionEnum&&l.DivisionEnum)?t:Object)],e.prototype,"division",void 0),h([Object(r.Input)(),f("design:type","function"==typeof(m=void 0!==l.TransactionEnum&&l.TransactionEnum)?m:Object)],e.prototype,"transaction",void 0),h([Object(r.Input)(),f("design:type",String)],e.prototype,"location",void 0),h([Object(r.Input)(),f("design:type",String)],e.prototype,"slug",void 0),h([Object(r.Input)(),f("design:type",Boolean)],e.prototype,"loading",void 0),h([Object(r.Input)(),f("design:type",Array)],e.prototype,"properties",void 0),h([Object(r.ViewChild)("createAlertMsg",{static:!1}),f("design:type","function"==typeof(g=void 0!==r.ElementRef&&r.ElementRef)?g:Object)],e.prototype,"createAlertMsg",void 0),e=h([Object(r.Component)({selector:"no-results",template:n(816)}),f("design:paramtypes",["function"==typeof(y=void 0!==p.a&&p.a)?y:Object,"function"==typeof(v=void 0!==d.a&&d.a)?v:Object,"function"==typeof(b=void 0!==o.a&&o.a)?b:Object,"function"==typeof(S=void 0!==c.a&&c.a)?S:Object,"function"==typeof(E=void 0!==s.a&&s.a)?E:Object,"function"==typeof(C=void 0!==u.a&&u.a)?C:Object,"function"==typeof(T=void 0!==i.a&&i.a)?T:Object])],e)}()},function(e,t){e.exports='<div class="no-results container" data-selenium-id="propertySearch-message-noResults"\r\n    [class.centered]="properties?.length == 0">\r\n    <h1>{{\'NO_RESULTS_TITLE\' | translate }}</h1>\r\n    <p class="message">\r\n            {{\'NO_RESULTS_MSG\' | translate }}
2\r\n            <span class="suggested-properties" [innerHTML]="propertiesMsg"></span>\r\n    </p>\r\n    <p class="property-alert" #createAlertMsg></p>\r\n</div>\r\n'},function(e,t,n){"use strict";n.d(t,"a",function(){return d});var r=n(0),o=n(27),i=n(11),a=n(29),s=n(23),c=n(286),u=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},l=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},d=function(){function e(e,t,n,o){this.$log=e,this.configService=t,this.urlHelperService=n,this.route=o,this.onSwitch=new r.EventEmitter,this.isoCode=this.configService.defaultIsoCode()}var t,d,p,h;return e.prototype.ngOnChanges=function(e){var t=this;this.route.params.subscribe(function(e){var n=t.urlHelperService.getSearchUrlParams(e);t.isCommercial=c.a[n.division].toLowerCase()===t.urlHelperService.translations.COMMERCIAL_SLUG.toLowerCase()});var n=e.value;null!=n&&(this.value=n.currentValue)},e.prototype.onSwitchClick=function(e){this.value=e.target.value,this.onSwitch.emit(this.value)},u([Object(r.Input)(),l("design:type",String)],e.prototype,"value",void 0),u([Object(r.Output)(),l("design:type",Object)],e.prototype,"onSwitch",void 0),e=u([Object(r.Component)({selector:"transaction-type-switch",template:n(818)}),l("design:paramtypes",["function"==typeof(t=void 0!==o.a&&o.a)?t:Object,"function"==typeof(d=void 0!==i.a&&i.a)?d:Object,"function"==typeof(p=void 0!==a.a&&a.a)?p:Object,"function"==typeof(h=void 0!==s.a&&s.a)?h:Object])],e)}()},function(e,t){e.exports='<fieldset class="tran-type">\r\n    <legend class="sr-only">\r\n        Transaction Type\r\n    </legend>\r\n    <label for="buy">\r\n        <input id="buy"\r\n            type="radio"\r\n            value="Sales"\r\n            name="transactionType"\r\n            [(ngModel)]="value"\r\n            #transactionType="ngModel"\r\n            (change)="onSwitchClick($event)"\r\n            required\r\n        >\r\n        {{isoCode === "AU" && isCommercial ? "Sale" : \'SALES\' | translate}}\r\n    </label>\r\n    \r\n    <label for="rent">\r\n        <input id="rent"\r\n            type="radio"\r\n            value="Lettings"\r\n            name="transactionType"\r\n            [(ngModel)]="value"\r\n            #transactionType="ngModel"\r\n            (change)="onSwitchClick($event)"\r\n            required\r\n        >\r\n        {{isoCode === "AU" && isCommercial ? "Lease" : \'LETTINGS\' | translate}}\r\n    </label>\r\n</fieldset>\r\n'},function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r=n(0),o=n(32),i=n(27),a=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){function e(e,t){this.$log=e,this.translateService=t,this.onSwitch=new r.EventEmitter}var t,c;return e.prototype.ngOnChanges=function(e){var t=e.value;null!==t&&(this.value=t.currentValue)},e.prototype.onSwitchClick=function(e){this.value=e.target.value,this.onSwitch.emit(this.value)},a([Object(r.Input)(),s("design:type",String)],e.prototype,"value",void 0),a([Object(r.Output)(),s("design:type",Object)],e.prototype,"onSwitch",void 0),e=a([Object(r.Component)({selector:"transaction-type-switch-mobile",template:n(820)}),s("design:paramtypes",["function"==typeof(t=void 0!==i.a&&i.a)?t:Object,"function"==typeof(c=void 0!==o.a&&o.a)?c:Object])],e)}()},function(e,t){e.exports='<fieldset>\r\n    <legend class="sr-only">\r\n        Transaction Type - Mobile \r\n    </legend>\r\n    <label for="buy-mobile" class="radio-button">\r\n        <input id="buy-mobile"\r\n            type="radio"\r\n            value="Sales"\r\n            name="transactionTypeMobile"\r\n            [(ngModel)]="value"\r\n            #transactionTypeMobile="ngModel"\r\n            (change)="onSwitchClick($event)"\r\n            required>
2\r\n        <span class="checkmark"></span>\r\n        {{isoCode === "AU" && isCommercial ? "Sale" : \'SALES\' | translate}}\r\n    </label>\r\n\r\n    <label for="rent-mobile" class="radio-button">\r\n        <input id="rent-mobile"\r\n            type="radio"\r\n            value="Lettings"\r\n            name="transactionTypeMobile"\r\n            [(ngModel)]="value"\r\n            #transactionTypeMobile="ngModel"\r\n            (change)="onSwitchClick($event)"\r\n            required>\r\n        <span class="checkmark"></span>\r\n        {{isoCode === "AU" && isCommercial ? "Lease" : \'LETTINGS\' | translate}}\r\n    </label>\r\n</fieldset>\r\n'},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(0),o=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=function(){function e(){this.offset=0,this.pageSize=6,this.total=0,this.onPage=new r.EventEmitter,this.showFirstPage=!0,this.showFirstDots=!0,this.showLastPage=!0,this.showLastDots=!0,this.pages=[],this.activePage=1,this.totalPages=99,this.pagerVisible=!1}return e.prototype.ngOnChanges=function(e){var t=!1;void 0!==e.offset&&(this.offset=e.offset.currentValue,void 0==this.offset&&(this.offset=0),t=!0),void 0!==e.pageSize&&(this.pageSize=e.pageSize.currentValue,t=!0),void 0!==e.total&&(this.total=e.total.currentValue,t=!0),t&&(this.activePage=Math.ceil(this.offset/this.pageSize)+1,this.refreshPager())},e.prototype.setOffset=function(e){this.offset=e,this.activePage=this.offset/this.pageSize+1,this.refreshBeginEnd(),this.onPage.emit(this.offset)},e.prototype.refreshPager=function(){if(this.pagerVisible=!1,this.pages=[],this.totalPages=Math.ceil(this.total/this.pageSize),1!==this.totalPages){var e=this.activePage-1,t=this.activePage+1;e<1&&(e=1,t=3),t>this.totalPages&&(e=Math.max(1,this.totalPages-3),t=this.totalPages);for(var n=e;n<=t;++n)this.pages.push(n);this.refreshBeginEnd(),this.pagerVisible=!0}},e.prototype.refreshBeginEnd=function(){var e=this.totalPages-this.activePage;
2this.totalPages<4?(this.showFirstPage=!1,this.showFirstDots=!1,this.showLastPage=!1,this.showLastDots=!1):(this.showFirstPage=this.activePage>2,this.showFirstDots=this.activePage>3,this.showLastPage=e>1,this.showLastDots=e>2)},e.prototype.previousPage=function(){if(this.offset>0){var e=this.offset-this.pageSize;e<0&&(e=0),this.setOffset(e)}},e.prototype.goToPage=function(e){var t=(e-1)*this.pageSize;this.setOffset(t)},e.prototype.nextPage=function(){var e=this.offset+this.pageSize;e>=this.total||this.setOffset(e)},o([Object(r.Input)(),i("design:type",Number)],e.prototype,"offset",void 0),o([Object(r.Input)(),i("design:type",Number)],e.prototype,"pageSize",void 0),o([Object(r.Input)(),i("design:type",Number)],e.prototype,"total",void 0),o([Object(r.Output)(),i("design:type",Object)],e.prototype,"onPage",void 0),e=o([Object(r.Component)({selector:"pager",template:n(822)})],e)}()},function(e,t){e.exports='<ul class="pagination" *ngIf="pagerVisible">\r\n    <li class="arrow" >\r\n        <button data-selenium-id="propertySearch-pager-previousClick" (click)="previousPage()"  [attr.data-disabled]="offset == 0 ? true : false">\r\n            <span class="sr-only">Previous</span>\r\n            <i class="fa fa-angle-left" aria-hidden="true"></i>\r\n        </button>\r\n    </li>
2\r\n    <li *ngIf="showFirstPage">\r\n        <button data-selenium-id="propertySearch-pager-firstClick" (click)="goToPage(1)" [class.active]="activePage == 1">\r\n            1\r\n        </button>\r\n    </li>\r\n    <li *ngIf="showFirstDots" class="ellipsis">\r\n        <span>\r\n            ...\r\n        </span>\r\n    </li>\r\n    <li *ngFor="let page of pages">\r\n        <button (click)="goToPage(page)" [class.active]="activePage == page">\r\n            <span>\r\n                {{page}}\r\n            </span>\r\n        </button>\r\n    </li>\r\n    <li *ngIf="showLastDots" class="ellipsis">\r\n        <span>\r\n            ...\r\n        </span>\r\n    </li>\r\n    <li *ngIf="showLastPage">\r\n        <button data-selenium-id="propertySearch-pager-lastClick" (click)="goToPage(totalPages)" [class.active]="activePage == totalPages">\r\n            {{totalPages}}\r\n        </button>\r\n    </li>\r\n    <li class="arrow" >\r\n        <button data-selenium-id="propertySearch-pager-nextClick" (click)="nextPage()" [attr.data-disabled]="offset + pageSize >= total ? true : false">\r\n            <span class="sr-only">Next</span>\r\n            <i class="fa fa-angle-right" aria-hidden="true"></i>\r\n        </button>\r\n    </li>\r\n</ul>'},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(0),o=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=function(){function e(){this.offset=0,this.pageSize=6,this.total=0,this.onPage=new r.EventEmitter,this.pages=[],this.activePage=1,this.pagerVisible=!1}return e.prototype.ngOnChanges=function(e){var t=!1;void 0!==e.offset&&(this.offset=e.offset.currentValue,void 0==this.offset&&(this.offset=0),t=!0),void 0!==e.pageSize&&(this.pageSize=e.pageSize.currentValue,t=!0),void 0!==e.total&&(this.total=e.total.currentValue,t=!0),t&&(this.activePage=this.offset/this.pageSize+1,this.refreshPager())},e.prototype.setOffset=function(e){this.offset=e,this.activePage=this.offset/this.pageSize+1,this.onPage.emit(this.offset)},e.prototype.refreshPager=function(){this.pagerVisible=!1,this.pages=[];var e=Math.ceil(this.total/this.pageSize);if(1!==e){var t=this.activePage-2,n=this.activePage+2;t<1&&(t=1,n=3),n>e&&(t=Math.max(1,e-3),n=e);for(var r=t;r<=n;++r)this.pages.push(r);this.pagerVisible=!0}},e.prototype.previousPage=function(){if(this.offset>0){var e=this.offset-this.pageSize;e<0&&(e=0),this.setOffset(e)}},e.prototype.goToPage=function(e){var t=(e-1)*this.pageSize;this.setOffset(t)},e.prototype.nextPage=function(){var e=this.offset+this.pageSize;e>=this.total||this.setOffset(e)},o([Object(r.Input)(),i("design:type",Number)],e.prototype,"offset",void 0),o([Object(r.Input)(),i("design:type",Number)],e.prototype,"pageSize",void 0),o([Object(r.Input)(),i("design:type",Number)],e.prototype,"total",void 0),o([Object(r.Output)(),i("design:type",Object)],e.prototype,"onPage",void 0),e=o([Object(r.Component)({selector:"pager-small",template:n(824)})],e)}()},function(e,t){e.exports='<ul class="pagination mobile-pagination" *ngIf="pagerVisible">\r\n    <li class="arrow">\r\n        <button (click)="previousPage()" [attr.data-disabled]="offset == 0 ? true : false">\r\n            <i class="fa fa-angle-left" aria-hidden="true"></i>\r\n            <span class="sr-only">\r\n                Previous\r\n            </span>\r\n        </button>\r\n    </li>\r\n    <li *ngFor="let page of pages">\r\n        <button (click)="goToPage(page)" [class.active]="activePage == page">\r\n            <span>\r\n                {{page}}\r\n            </span>\r\n        </button>\r\n    </li>\r\n    <li class="arrow">\r\n        <button (click)="nextPage()" [attr.data-disabled]="offset + pageSize >= total ? true : false">
2\r\n            <span class="sr-only">\r\n                Next\r\n            </span>\r\n            <i class="fa fa-angle-right" aria-hidden="true"></i>\r\n        </button>\r\n    </li>\r\n</ul>'},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return s});var r=n(0),o=n(99),i=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=function(){function t(e){this.max=1e6,this.onSlide=new r.EventEmitter,this.onChange=new r.EventEmitter,this.suppressChange=!1,this.element=null,this.id=e.getUid()}var s;return t.prototype.ngOnInit=function(){var t=this;setTimeout(function(){t.element=e("#double_slider_"+t.id);var n=t.calcStep(),r=0,o=t.max+n;t.initValues&&(t.initValues.min&&(r=t.initValues.min),t.initValues.max&&(o=t.initValues.max)),t.element.slider({range:!0,min:0,max:t.max+n,step:n,values:[r,o],slide:function(e,n){if(n.values[0]+20>=n.values[1])return!1;t.reportSlide(n.values[0],n.values[1])},change:function(e,n){t.suppressChange||t.onChange.emit()}})},100)},t.prototype.ngOnChanges=function(e){var t=!1,n=e.max;n&&(t=!0,this.max=n.currentValue);var r=e.init;if(r&&(t=!0,this.initValues=r.currentValue),e.reset&&(t=!0),t&&null!=this.element){this.suppressChange=!0;var o=this.calcStep(),i=0,a=this.max+o;this.initValues&&(this.initValues.min&&(i=this.initValues.min),this.initValues.max&&(a=this.initValues.max)),this.element.slider("option","max",this.max+o),this.element.slider("option","values",[i,a]),this.element.slider("option","step",o),this.suppressChange=!1}},t.prototype.reportSlide=function(e,t){var n=t,r=e;n>this.max&&(n=null),0===r&&(r=null),r>this.max&&(r=this.max),this.onSlide.emit({min:r,max:n})},t.prototype.calcStep=function(){return this.max/40},i([Object(r.Input)(),a("design:type",Number)],t.prototype,"max",void 0),i([Object(r.Input)(),a("design:type",Object)],t.prototype,"init",void 0),i([Object(r.Input)(),a("design:type",Number)],t.prototype,"reset",void 0),i([Object(r.Output)(),a("design:type",Object)],t.prototype,"onSlide",void 0),i([Object(r.Output)(),a("design:type",Object)],t.prototype,"onChange",void 0),t=i([Object(r.Component)({selector:"double-slider",template:n(826)}),a("design:paramtypes",["function"==typeof(s=void 0!==o.a&&o.a)?s:Object])],t)}()}).call(t,n(5))},function(e,t){e.exports="<div [id]=\"'double_slider_'+id\"></div>"},function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n(0),o=n(99),i=n(39),a=n(8),s=n(828),c=(n.n(s),this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}),u=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(e,t){var n=this;this.data={series:[]},this.options={width:"100%",height:"29px",axisX:{showGrid:!1,showLabel:!1,offset:0},axisY:{showGrid:!1,showLabel:!1,offset:0},chartPadding:{top:0,right:0,bottom:0,left:0},low:0},this.id=e.getUid().toString(),this.subscription=t.subscribe(a.EventTypeEnum.RedrawHistograms,function(){setTimeout(function(){n.render()},150)})}var t,l;return e.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},e.prototype.ngOnChanges=function(e){var t=e.values;null!=t&&void 0!=t.currentValue&&(this.values=t.currentValue,this.render())},e.prototype.render=function(){for(var e=[],t=[],n=0,r=0,o=this.values;r<o.length;r++){var i=o[r];e.push(i.Count),t.push(i.Count),i.Count>n&&(n=i.Count)}for(var a in this.data.labels=t,e)e[a]={meta:this.values[a].Count,value:100*e[a]/n};this.data.series[0]=e,this.chart?this.chart.update(this.data):this.chart=new s.Bar("#chart_"+this.id,this.data,this.options)},c([Object(r.Input)(),u("design:type",Array)],e.prototype,"values",void 0),e=c([Ob
2ject(r.Component)({selector:"histogram",template:n(829)}),u("design:paramtypes",["function"==typeof(t=void 0!==o.a&&o.a)?t:Object,"function"==typeof(l=void 0!==i.a&&i.a)?l:Object])],e)}()},function(e,t,n){var r;!function(n,o){void 0===(r=function(){return n.Chartist=o()}.apply(t,[]))||(e.exports=r)}(this,function(){var e={version:"0.11.0"};return function(e,t,n){"use strict";n.namespaces={svg:"http://www.w3.org/2000/svg",xmlns:"http://www.w3.org/2000/xmlns/",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",ct:"http://gionkunz.github.com/chartist-js/ct"},n.noop=function(e){return e},n.alphaNumerate=function(e){return String.fromCharCode(97+e%26)},n.extend=function(e){var t,r,o;for(e=e||{},t=1;t<arguments.length;t++)for(var i in r=arguments[t])"object"!=typeof(o=r[i])||null===o||o instanceof Array?e[i]=o:e[i]=n.extend(e[i],o);return e},n.replaceAll=function(e,t,n){return e.replace(new RegExp(t,"g"),n)},n.ensureUnit=function(e,t){return"number"==typeof e&&(e+=t),e},n.quantity=function(e){if("string"==typeof e){var t=/^(\d+)\s*(.*)$/g.exec(e);return{value:+t[1],unit:t[2]||void 0}}return{value:e}},n.querySelector=function(e){return e instanceof Node?e:t.querySelector(e)},n.times=function(e){return Array.apply(null,new Array(e))},n.sum=function(e,t){return e+(t||0)},n.mapMultiply=function(e){return function(t){return t*e}},n.mapAdd=function(e){return function(t){return t+e}},n.serialMap=function(e,t){var r=[],o=Math.max.apply(null,e.map(function(e){return e.length}));return n.times(o).forEach(function(n,o){var i=e.map(function(e){return e[o]});r[o]=t.apply(null,i)}),r},n.roundWithPrecision=function(e,t){var r=Math.pow(10,t||n.precision);return Math.round(e*r)/r},n.precision=8,n.escapingMap={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#039;"},n.serialize=function(e){return null===e||void 0===e?e:("number"==typeof e?e=""+e:"object"==typeof e&&(e=JSON.stringify({data:e})),Object.keys(n.escapingMap).reduce(function(e,t){return n.replaceAll(e,t,n.escapingMap[t])},e))},n.deserialize=function(e){if("string"!=typeof e)return e;e=Object.keys(n.escapingMap).reduce(function(e,t){return n.replaceAll(e,n.escapingMap[t],t)},e);try{e=void 0!==(e=JSON.parse(e)).data?e.data:e}catch(e){}return e},n.createSvg=function(e,t,r,o){var i;return t=t||"100%",r=r||"100%",Array.prototype.slice.call(e.querySelectorAll("svg")).filter(function(e){return e.getAttributeNS(n.namespaces.xmlns,"ct")}).forEach(function(t){e.removeChild(t)}),(i=new n.Svg("svg").attr({width:t,height:r}).addClass(o))._node.style.width=t,i._node.style.height=r,e.appendChild(i._node),i},n.normalizeData=function(e,t,r){var o,i={raw:e,normalized:{}};return i.normalized.series=n.getDataArray({series:e.series||[]},t,r),o=i.normalized.series.every(function(e){return e instanceof Array})?Math.max.apply(null,i.normalized.series.map(function(e){return e.length})):i.normalized.series.length,i.normalized.labels=(e.labels||[]).slice(),Array.prototype.push.apply(i.normalized.labels,n.times(Math.max(0,o-i.normalized.labels.length)).map(function(){return""})),t&&n.reverseData(i.normalized),i},n.safeHasProperty=function(e,t){return null!==e&&"object"==typeof e&&e.hasOwnProperty(t)},n.isDataHoleValue=function(e){return null===e||void 0===e||"number"==typeof e&&isNaN(e)},n.reverseData=function(e){e.labels.reverse(),e.series.reverse();for(var t=0;t<e.series.length;t++)"object"==typeof e.series[t]&&void 0!==e.series[t].data?e.series[t].data.reverse():e.series[t]instanceof Array&&e.series[t].reverse()},n.getDataArray=function(e,t,r){return e.series.map(function e(t){if(n.safeHasProperty(t,"value"))return e(t.value);if(n.safeHasProperty(t,"data"))return e(t.data);if(t instanceof Array)return t.map(e);if(!n.isDataHoleValue(t)){if(r){var o={};return"string"==typeof r?o[r]=n.getNumberOrUndefined(t):o.y=n.getNumberOrUndefined(t),o.x=t.hasOwnProperty("x")?n.getNumberOrUndefined(t.x):o.x,o.y=t.hasOwnProperty("y")?n.getNumberOrUndefined(t.y):o.y,o}return n.getNumberOrUndefined(t)}})},n.normalizePadding=function(e,t){return t=t||0,"number"==typeof e?{top:e,right:e,bottom:e,left:e}:{top:"number"==typeof e.top?e.top:t,right:"number"==typeof e.right?e.right:t,bottom:"number"==typeof e.bottom?e.bottom:t,left:"number"==typeof e.left?e.left:t}},n.getMetaData=function(e,t){var n=e.data?e.data[t]:e[t];return n?n.meta:void 0},n.orderOfMagnitude=function(e){return Math.floor(Math.log(Math.abs(e))/Math.LN10)},n.projectLength=function(e,t,n){return t/n.range*e},n.getAvailableHeight=function(e,t){return Math.max((n.quantity(t.height).value||e.height())-(t.chartPadding.top+t.chartPadding.bottom)-t.axisX.offset,0)},n.getHighLow=function(e,t,r){var o={high:void 0===(t=n.extend({},t,r?t["axis"+r.toUpperCase()]:{})).high?-Number.MAX_VALUE:+t.high,low:void 0===t.low?Number.MAX_VALUE:+t.low},i=void 0===t.high,a=void 0===t.low;return(i||a)&&function e(t){if(void 0!==t)if(t instanceof Array)for(var n=0;n<t.length;n++)e(t[n]);else{var s=r?+t[r]:+t;i&&s>o.high&&(o.high=s),a&&s<o.low&&(o.low=s)}}(e),(t.referenceValue||0===t.referenceValue)&&(o.high=Math.max(t.referenceValue,o.high),o.low=Math.min(t.referenceValue,o.low)),o.high<=o.low&&(0===o.low?o.high=1:o.low<0?o.high=0:o.high>0?o.low=0:(o.high=1,o.low=0)),o},n.isNumeric=function(e){return null!==e&&isFinite(e)},n.isFalseyButZero=function(e){return!e&&0!==e},n.getNumberOrUndefined=function(e){return n.isNumeric(e)?+e:void 0},n.isMultiValue=function(e){return"object"==typeof e&&("x"in e||"y"in e)},n.getMultiValue=function(e,t){return n.isMultiValue(e)?n.getNumberOrUndefined(e[t||"y"]):n.getNumberOrUndefined(e)},n.rho=function(e){if(1===e)return e;function t(e,n){return e%n==0?n:t(n,e%n)}function n(e){return e*e+1}var r,o=2,i=2;if(e%2==0)return 2;do{o=n(o)%e,i=n(n(i))%e,r=t(Math.abs(o-i),e)}while(1===r);return r},n.getBounds=function(e,t,r,o){var i,a,s,c=0,u={high:t.high,low:t.low};u.valueRange=u.high-u.low,u.oom=n.orderOfMagnitude(u.valueRange),u.step=Math.pow(10,u.oom),u.min=Math.floor(u.low/u.step)*u.step,u.max=Math.ceil(u.high/u.step)*u.step,u.range=u.max-u.min,u.numberOfSteps=Math.round(u.range/u.step);
2var l=n.projectLength(e,u.step,u)<r,d=o?n.rho(u.range):0;if(o&&n.projectLength(e,1,u)>=r)u.step=1;else if(o&&d<u.step&&n.projectLength(e,d,u)>=r)u.step=d;else for(;;){if(l&&n.projectLength(e,u.step,u)<=r)u.step*=2;else{if(l||!(n.projectLength(e,u.step/2,u)>=r))break;if(u.step/=2,o&&u.step%1!=0){u.step*=2;break}}if(c++>1e3)throw new Error("Exceeded maximum number of iterations while optimizing scale step!")}var p=2.221e-16;function h(e,t){return e===(e+=t)&&(e*=1+(t>0?p:-p)),e}for(u.step=Math.max(u.step,p),a=u.min,s=u.max;a+u.step<=u.low;)a=h(a,u.step);for(;s-u.step>=u.high;)s=h(s,-u.step);u.min=a,u.max=s,u.range=u.max-u.min;var f=[];for(i=u.min;i<=u.max;i=h(i,u.step)){var m=n.roundWithPrecision(i);m!==f[f.length-1]&&f.push(m)}return u.values=f,u},n.polarToCartesian=function(e,t,n,r){var o=(r-90)*Math.PI/180;return{x:e+n*Math.cos(o),y:t+n*Math.sin(o)}},n.createChartRect=function(e,t,r){var o=!(!t.axisX&&!t.axisY),i=o?t.axisY.offset:0,a=o?t.axisX.offset:0,s=e.width()||n.quantity(t.width).value||0,c=e.height()||n.quantity(t.height).value||0,u=n.normalizePadding(t.chartPadding,r);s=Math.max(s,i+u.left+u.right),c=Math.max(c,a+u.top+u.bottom);var l={padding:u,width:function(){return this.x2-this.x1},height:function(){return this.y1-this.y2}};return o?("start"===t.axisX.position?(l.y2=u.top+a,l.y1=Math.max(c-u.bottom,l.y2+1)):(l.y2=u.top,l.y1=Math.max(c-u.bottom-a,l.y2+1)),"start"===t.axisY.position?(l.x1=u.left+i,l.x2=Math.max(s-u.right,l.x1+1)):(l.x1=u.left,l.x2=Math.max(s-u.right-i,l.x1+1))):(l.x1=u.left,l.x2=Math.max(s-u.right,l.x1+1),l.y2=u.top,l.y1=Math.max(c-u.bottom,l.y2+1)),l},n.createGrid=function(e,t,r,o,i,a,s,c){var u={};u[r.units.pos+"1"]=e,u[r.units.pos+"2"]=e,u[r.counterUnits.pos+"1"]=o,u[r.counterUnits.pos+"2"]=o+i;var l=a.elem("line",u,s.join(" "));c.emit("draw",n.extend({type:"grid",axis:r,index:t,group:a,element:l},u))},n.createGridBackground=function(e,t,n,r){var o=e.elem("rect",{x:t.x1,y:t.y2,width:t.width(),height:t.height()},n,!0);r.emit("draw",{type:"gridBackground",group:e,element:o})},n.createLabel=function(e,r,o,i,a,s,c,u,l,d,p){var h,f={};if(f[a.units.pos]=e+c[a.units.pos],f[a.counterUnits.pos]=c[a.counterUnits.pos],f[a.units.len]=r,f[a.counterUnits.len]=Math.max(0,s-10),d){var m=t.createElement("span");m.className=l.join(" "),m.setAttribute("xmlns",n.namespaces.xhtml),m.innerText=i[o],m.style[a.units.len]=Math.round(f[a.units.len])+"px",m.style[a.counterUnits.len]=Math.round(f[a.counterUnits.len])+"px",h=u.foreignObject(m,n.extend({style:"overflow: visible;"},f))}else h=u.elem("text",f,l.join(" ")).text(i[o]);p.emit("draw",n.extend({type:"label",axis:a,index:o,group:u,element:h,text:i[o]},f))},n.getSeriesOption=function(e,t,n){if(e.name&&t.series&&t.series[e.name]){var r=t.series[e.name];return r.hasOwnProperty(n)?r[n]:t[n]}return t[n]},n.optionsProvider=function(t,r,o){var i,a,s=n.extend({},t),c=[];function u(t){var c=i;if(i=n.extend({},s),r)for(a=0;a<r.length;a++){e.matchMedia(r[a][0]).matches&&(i=n.extend(i,r[a][1]))}o&&t&&o.emit("optionsChanged",{previousOptions:c,currentOptions:i})}
2if(!e.matchMedia)throw"window.matchMedia not found! Make sure you're using a polyfill.";if(r)for(a=0;a<r.length;a++){var l=e.matchMedia(r[a][0]);l.addListener(u),c.push(l)}return u(),{removeMediaQueryListeners:function(){c.forEach(function(e){e.removeListener(u)})},getCurrentOptions:function(){return n.extend({},i)}}},n.splitIntoSegments=function(e,t,r){r=n.extend({},{increasingX:!1,fillHoles:!1},r);for(var o=[],i=!0,a=0;a<e.length;a+=2)void 0===n.getMultiValue(t[a/2].value)?r.fillHoles||(i=!0):(r.increasingX&&a>=2&&e[a]<=e[a-2]&&(i=!0),i&&(o.push({pathCoordinates:[],valueData:[]}),i=!1),o[o.length-1].pathCoordinates.push(e[a],e[a+1]),o[o.length-1].valueData.push(t[a/2]));return o}}(window,document,e),function(e,t,n){"use strict";n.Interpolation={},n.Interpolation.none=function(e){return e=n.extend({},{fillHoles:!1},e),function(t,r){for(var o=new n.Svg.Path,i=!0,a=0;a<t.length;a+=2){var s=t[a],c=t[a+1],u=r[a/2];void 0!==n.getMultiValue(u.value)?(i?o.move(s,c,!1,u):o.line(s,c,!1,u),i=!1):e.fillHoles||(i=!0)}return o}},n.Interpolation.simple=function(e){e=n.extend({},{divisor:2,fillHoles:!1},e);var t=1/Math.max(1,e.divisor);return function(r,o){for(var i,a,s,c=new n.Svg.Path,u=0;u<r.length;u+=2){var l=r[u],d=r[u+1],p=(l-i)*t,h=o[u/2];void 0!==h.value?(void 0===s?c.move(l,d,!1,h):c.curve(i+p,a,l-p,d,l,d,!1,h),i=l,a=d,s=h):e.fillHoles||(i=l=s=void 0)}return c}},n.Interpolation.cardinal=function(e){e=n.extend({},{tension:1,fillHoles:!1},e);var t=Math.min(1,Math.max(0,e.tension)),r=1-t;return function o(i,a){var s=n.splitIntoSegments(i,a,{fillHoles:e.fillHoles});if(s.length){if(s.length>1){var c=[];return s.forEach(function(e){c.push(o(e.pathCoordinates,e.valueData))}),n.Svg.Path.join(c)}if(i=s[0].pathCoordinates,a=s[0].valueData,i.length<=4)return n.Interpolation.none()(i,a);for(var u=(new n.Svg.Path).move(i[0],i[1],!1,a[0]),l=0,d=i.length;d-2>l;l+=2){var p=[{x:+i[l-2],y:+i[l-1]},{x:+i[l],y:+i[l+1]},{x:+i[l+2],y:+i[l+3]},{x:+i[l+4],y:+i[l+5]}];d-4===l?p[3]=p[2]:l||(p[0]={x:+i[l],y:+i[l+1]}),u.curve(t*(-p[0].x+6*p[1].x+p[2].x)/6+r*p[2].x,t*(-p[0].y+6*p[1].y+p[2].y)/6+r*p[2].y,t*(p[1].x+6*p[2].x-p[3].x)/6+r*p[2].x,t*(p[1].y+6*p[2].y-p[3].y)/6+r*p[2].y,p[2].x,p[2].y,!1,a[(l+2)/2])}return u}return n.Interpolation.none()([])}},n.Interpolation.monotoneCubic=function(e){return e=n.extend({},{fillHoles:!1},e),function t(r,o){var i=n.splitIntoSegments(r,o,{fillHoles:e.fillHoles,increasingX:!0});if(i.length){if(i.length>1){var a=[];return i.forEach(function(e){a.push(t(e.pathCoordinates,e.valueData))}),n.Svg.Path.join(a)}if(r=i[0].pathCoordinates,o=i[0].valueData,r.length<=4)return n.Interpolation.none()(r,o);var s,c,u=[],l=[],d=r.length/2,p=[],h=[],f=[],m=[];for(s=0;s<d;s++)u[s]=r[2*s],l[s]=r[2*s+1];for(s=0;s<d-1;s++)f[s]=l[s+1]-l[s],m[s]=u[s+1]-u[s],h[s]=f[s]/m[s];for(p[0]=h[0],p[d-1]=h[d-2],s=1;s<d-1;s++)0===h[s]||0===h[s-1]||h[s-1]>0!=h[s]>0?p[s]=0:(p[s]=3*(m[s-1]+m[s])/((2*m[s]+m[s-1])/h[s-1]+(m[s]+2*m[s-1])/h[s]),isFinite(p[s])||(p[s]=0));for(c=(new n.Svg.Path).move(u[0],l[0],!1,o[0]),s=0;s<d-1;s++)c.curve(u[s]+m[s]/3,l[s]+p[s]*m[s]/3,u[s+1]-m[s]/3,l[s+1]-p[s+1]*m[s]/3,u[s+1],l[s+1],!1,o[s+1]);return c}return n.Interpolation.none()([])}},n.Interpolation.step=function(e){return e=n.extend({},{postpone:!0,fillHoles:!1},e),function(t,r){for(var o,i,a,s=new n.Svg.Path,c=0;c<t.length;c+=2){var u=t[c],l=t[c+1],d=r[c/2];void 0!==d.value?(void 0===a?s.move(u,l,!1,d):(e.postpone?s.line(u,i,!1,a):s.line(o,l,!1,d),s.line(u,l,!1,d)),o=u,i=l,a=d):e.fillHoles||(o=i=a=void 0)}return s}}}(window,document,e),function(e,t,n){"use strict";n.EventEmitter=function(){var e=[];return{addEventHandler:function(t,n){e[t]=e[t]||[],e[t].push(n)},removeEventHandler:function(t,n){e[t]&&(n?(e[t].splice(e[t].indexOf(n),1),0===e[t].length&&delete e[t]):delete e[t])},emit:function(t,n){e[t]&&e[t].forEach(function(e){e(n)}),e["*"]&&e["*"].forEach(function(e){e(t,n)})}}}}(window,document,e),function(e,t,n){"use strict";n.Class={extend:function(e,t){var r=t||this.prototype||n.Class,o=Object.create(r);n.Class.cloneDefinitions(o,e);var i=function(){var e,t=o.constructor||function(){};return e=this===n?Object.create(o):this,t.apply(e,Array.prototype.slice.call(arguments,0)),e};return i.prototype=o,i.super=r,i.extend=this.extend,i},cloneDefinitions:function(){var e=function(e){var t=[];if(e.length)for(var n=0;n<e.length;n++)t.push(e[n]);return t}(arguments),t=e[0];
2return e.splice(1,e.length-1).forEach(function(e){Object.getOwnPropertyNames(e).forEach(function(n){delete t[n],Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}),t}}}(window,document,e),function(e,t,n){"use strict";n.Base=n.Class.extend({constructor:function(t,r,o,i,a){this.container=n.querySelector(t),this.data=r||{},this.data.labels=this.data.labels||[],this.data.series=this.data.series||[],this.defaultOptions=o,this.options=i,this.responsiveOptions=a,this.eventEmitter=n.EventEmitter(),this.supportsForeignObject=n.Svg.isSupported("Extensibility"),this.supportsAnimations=n.Svg.isSupported("AnimationEventsAttribute"),this.resizeListener=function(){this.update()}.bind(this),this.container&&(this.container.__chartist__&&this.container.__chartist__.detach(),this.container.__chartist__=this),this.initializeTimeoutId=setTimeout(function(){e.addEventListener("resize",this.resizeListener),this.optionsProvider=n.optionsProvider(this.options,this.responsiveOptions,this.eventEmitter),this.eventEmitter.addEventHandler("optionsChanged",function(){this.update()}.bind(this)),this.options.plugins&&this.options.plugins.forEach(function(e){e instanceof Array?e[0](this,e[1]):e(this)}.bind(this)),this.eventEmitter.emit("data",{type:"initial",data:this.data}),this.createChart(this.optionsProvider.getCurrentOptions()),this.initializeTimeoutId=void 0}.bind(this),0)},optionsProvider:void 0,container:void 0,svg:void 0,eventEmitter:void 0,createChart:function(){throw new Error("Base chart type can't be instantiated!")},update:function(e,t,r){return e&&(this.data=e||{},this.data.labels=this.data.labels||[],this.data.series=this.data.series||[],this.eventEmitter.emit("data",{type:"update",data:this.data})),t&&(this.options=n.extend({},r?this.options:this.defaultOptions,t),this.initializeTimeoutId||(this.optionsProvider.removeMediaQueryListeners(),this.optionsProvider=n.optionsProvider(this.options,this.responsiveOptions,this.eventEmitter))),this.initializeTimeoutId||this.createChart(this.optionsProvider.getCurrentOptions()),this},detach:function(){return this.initializeTimeoutId?e.clearTimeout(this.initializeTimeoutId):(e.removeEventListener("resize",this.resizeListener),this.optionsProvider.removeMediaQueryListeners()),this},on:function(e,t){return this.eventEmitter.addEventHandler(e,t),this},off:function(e,t){return this.eventEmitter.removeEventHandler(e,t),this},version:n.version,supportsForeignObject:!1})}(window,document,e),function(e,t,n){"use strict";n.Svg=n.Class.extend({constructor:function(e,r,o,i,a){e instanceof Element?this._node=e:(this._node=t.createElementNS(n.namespaces.svg,e),"svg"===e&&this.attr({"xmlns:ct":n.namespaces.ct})),r&&this.attr(r),o&&this.addClass(o),i&&(a&&i._node.firstChild?i._node.insertBefore(this._node,i._node.firstChild):i._node.appendChild(this._node))},attr:function(e,t){return"string"==typeof e?t?this._node.getAttributeNS(t,e):this._node.getAttribute(e):(Object.keys(e).forEach(function(t){if(void 0!==e[t])if(-1!==t.indexOf(":")){var r=t.split(":");this._node.setAttributeNS(n.namespaces[r[0]],t,e[t])}else this._node.setAttribute(t,e[t])}.bind(this)),this)},elem:function(e,t,r,o){return new n.Svg(e,t,r,this,o)},parent:function(){return this._node.parentNode instanceof SVGElement?new n.Svg(this._node.parentNode):null},root:function(){for(var e=this._node;"svg"!==e.nodeName;)e=e.parentNode;return new n.Svg(e)},querySelector:function(e){var t=this._node.querySelector(e);return t?new n.Svg(t):null},querySelectorAll:function(e){var t=this._node.querySelectorAll(e);return t.length?new n.Svg.List(t):null},getNode:function(){return this._node},foreignObject:function(e,r,o,i){if("string"==typeof e){var a=t.createElement("div");a.innerHTML=e,e=a.firstChild}e.setAttribute("xmlns",n.namespaces.xmlns);var s=this.elem("foreignObject",r,o,i);return s._node.appendChild(e),s},text:function(e){return this._node.appendChild(t.createTextNode(e)),this},empty:function(){for(;this._node.firstChild;)this._node.removeChild(this._node.firstChild);return this},remove:function(){return this._node.parentNode.removeChild(this._node),this.parent()},replace:function(e){return this._node.parentNode.replaceChild(e._node,this._node),e},append:function(e,t){return t&&this._node.firstChild?this._node.insertBefore(e._node,this._node.firstChild):this._node.appendChild(e._node),this},classes:function(){return this._node.getAttribute("class")?this._node.getAttribute("class").trim().split(/\s+/):[]},addClass:function(e){return this._node.setAttribute("class",this.classes(this._node).concat(e.trim().split(/\s+/)).filter(function(e,t,n){return n.indexOf(e)===t}).join(" ")),this},removeClass:function(e){var t=e.trim().split(/\s+/);return this._node.setAttribute("class",this.classes(this._node).filter(function(e){return-1===t.indexOf(e)}).join(" ")),this},removeAllClasses:function(){return this._node.setAttribute("class",""),this},height:function(){return this._node.getBoundingClientRect().height},width:function(){return this._node.getBoundingClientRect().width},animate:function(e,t,r){return void 0===t&&(t=!0),Object.keys(e).forEach(function(o){function i(e,t){var i,a,s,c={};e.easing&&(s=e.easing instanceof Array?e.easing:n.Svg.Easing[e.easing],delete e.easing),e.begin=n.ensureUnit(e.begin,"ms"),e.dur=n.ensureUnit(e.dur,"ms"),s&&(e.calcMode="spline",e.keySplines=s.join(" "),e.keyTimes="0;1"),t&&(e.fill="freeze",c[o]=e.from,this.attr(c),a=n.quantity(e.begin||0).value,e.begin="indefinite"),i=this.elem("animate",n.extend({attributeName:o},e)),t&&setTimeout(function(){try{i._node.beginElement()}catch(t){c[o]=e.to,this.attr(c),i.remove()}}.bind(this),a),r&&i._node.addEventListener("beginEvent",function(){r.emit("animationBegin",{element:this,animate:i._node,params:e})}.bind(this)),i._node.addEventListener("endEvent",function(){r&&r.emit("animationEnd",{element:this,animate:i._node,params:e}),t&&(c[o]=e.to,this.attr(c),i.remove())}.bind(this))}
2e[o]instanceof Array?e[o].forEach(function(e){i.bind(this)(e,!1)}.bind(this)):i.bind(this)(e[o],t)}.bind(this)),this}}),n.Svg.isSupported=function(e){return t.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#"+e,"1.1")};n.Svg.Easing={easeInSine:[.47,0,.745,.715],easeOutSine:[.39,.575,.565,1],easeInOutSine:[.445,.05,.55,.95],easeInQuad:[.55,.085,.68,.53],easeOutQuad:[.25,.46,.45,.94],easeInOutQuad:[.455,.03,.515,.955],easeInCubic:[.55,.055,.675,.19],easeOutCubic:[.215,.61,.355,1],easeInOutCubic:[.645,.045,.355,1],easeInQuart:[.895,.03,.685,.22],easeOutQuart:[.165,.84,.44,1],easeInOutQuart:[.77,0,.175,1],easeInQuint:[.755,.05,.855,.06],easeOutQuint:[.23,1,.32,1],easeInOutQuint:[.86,0,.07,1],easeInExpo:[.95,.05,.795,.035],easeOutExpo:[.19,1,.22,1],easeInOutExpo:[1,0,0,1],easeInCirc:[.6,.04,.98,.335],easeOutCirc:[.075,.82,.165,1],easeInOutCirc:[.785,.135,.15,.86],easeInBack:[.6,-.28,.735,.045],easeOutBack:[.175,.885,.32,1.275],easeInOutBack:[.68,-.55,.265,1.55]},n.Svg.List=n.Class.extend({constructor:function(e){var t=this;this.svgElements=[];for(var r=0;r<e.length;r++)this.svgElements.push(new n.Svg(e[r]));Object.keys(n.Svg.prototype).filter(function(e){return-1===["constructor","parent","querySelector","querySelectorAll","replace","append","classes","height","width"].indexOf(e)}).forEach(function(e){t[e]=function(){var r=Array.prototype.slice.call(arguments,0);return t.svgElements.forEach(function(t){n.Svg.prototype[e].apply(t,r)}),t}})}})}(window,document,e),function(e,t,n){"use strict";var r={m:["x","y"],l:["x","y"],c:["x1","y1","x2","y2","x","y"],a:["rx","ry","xAr","lAf","sf","x","y"]},o={accuracy:3};function i(e,t,r,o,i,a){var s=n.extend({command:i?e.toLowerCase():e.toUpperCase()},t,a?{data:a}:{});r.splice(o,0,s)}function a(e,t){e.forEach(function(n,o){r[n.command.toLowerCase()].forEach(function(r,i){t(n,r,o,i,e)})})}n.Svg.Path=n.Class.extend({constructor:function(e,t){this.pathElements=[],this.pos=0,this.close=e,this.options=n.extend({},o,t)},position:function(e){return void 0!==e?(this.pos=Math.max(0,Math.min(this.pathElements.length,e)),this):this.pos},remove:function(e){return this.pathElements.splice(this.pos,e),this},move:function(e,t,n,r){return i("M",{x:+e,y:+t},this.pathElements,this.pos++,n,r),this},line:function(e,t,n,r){return i("L",{x:+e,y:+t},this.pathElements,this.pos++,n,r),this},curve:function(e,t,n,r,o,a,s,c){return i("C",{x1:+e,y1:+t,x2:+n,y2:+r,x:+o,y:+a},this.pathElements,this.pos++,s,c),this},arc:function(e,t,n,r,o,a,s,c,u){return i("A",{rx:+e,ry:+t,xAr:+n,lAf:+r,sf:+o,x:+a,y:+s},this.pathElements,this.pos++,c,u),this},scale:function(e,t){return a(this.pathElements,function(n,r){n[r]*="x"===r[0]?e:t}),this},translate:function(e,t){return a(this.pathElements,function(n,r){n[r]+="x"===r[0]?e:t}),this},transform:function(e){return a(this.pathElements,function(t,n,r,o,i){var a=e(t,n,r,o,i);(a||0===a)&&(t[n]=a)}),this},parse:function(e){var t=e.replace(/([A-Za-z])([0-9])/g,"$1 $2").replace(/([0-9])([A-Za-z])/g,"$1 $2").split(/[\s,]+/).reduce(function(e,t){return t.match(/[A-Za-z]/)&&e.push([]),e[e.length-1].push(t),e},[]);"Z"===t[t.length-1][0].toUpperCase()&&t.pop();var o=t.map(function(e){var t=e.shift(),o=r[t.toLowerCase()];return n.extend({command:t},o.reduce(function(t,n,r){return t[n]=+e[r],t},{}))}),i=[this.pos,0];return Array.prototype.push.apply(i,o),Array.prototype.splice.apply(this.pathElements,i),this.pos+=o.length,this},stringify:function(){var e=Math.pow(10,this.options.accuracy);return this.pathElements.reduce(function(t,n){var o=r[n.command.toLowerCase()].map(function(t){return this.options.accuracy?Math.round(n[t]*e)/e:n[t]}.bind(this));return t+n.command+o.join(",")}.bind(this),"")+(this.close?"Z":"")},clone:function(e){var t=new n.Svg.Path(e||this.close);return t.pos=this.pos,t.pathElements=this.pathElements.slice().map(function(e){return n.extend({},e)}),t.options=n.extend({},this.options),t},splitByCommand:function(e){var t=[new n.Svg.Path];return this.pathElements.forEach(function(r){r.command===e.toUpperCase()&&0!==t[t.length-1].pathElements.length&&t.push(new n.Svg.Path),t[t.length-1].pathElements.push(r)}),t}}),n.Svg.Path.elementDescriptions=r,n.Svg.Path.join=function(e,t,r){for(var o=new n.Svg.Path(t,r),i=0;i<e.length;i++)for(var a=e[i],s=0;s<a.pathElements.length;s++)o.pathElements.push(a.pathElements[s]);return o}}(window,document,e),function(e,t,n){"use strict";var r={x:{pos:"x",len:"width",dir:"horizontal",rectStart:"x1",rectEnd:"x2",rectOffset:"y2"},y:{pos:"y",len:"height",dir:"vertical",rectStart:"y2",rectEnd:"y1",re
2ctOffset:"x1"}};n.Axis=n.Class.extend({constructor:function(e,t,n,o){this.units=e,this.counterUnits=e===r.x?r.y:r.x,this.chartRect=t,this.axisLength=t[e.rectEnd]-t[e.rectStart],this.gridOffset=t[e.rectOffset],this.ticks=n,this.options=o},createGridAndLabels:function(e,t,r,o,i){var a=o["axis"+this.units.pos.toUpperCase()],s=this.ticks.map(this.projectValue.bind(this)),c=this.ticks.map(a.labelInterpolationFnc);s.forEach(function(u,l){var d,p={x:0,y:0};d=s[l+1]?s[l+1]-u:Math.max(this.axisLength-u,30),n.isFalseyButZero(c[l])&&""!==c[l]||("x"===this.units.pos?(u=this.chartRect.x1+u,p.x=o.axisX.labelOffset.x,"start"===o.axisX.position?p.y=this.chartRect.padding.top+o.axisX.labelOffset.y+(r?5:20):p.y=this.chartRect.y1+o.axisX.labelOffset.y+(r?5:20)):(u=this.chartRect.y1-u,p.y=o.axisY.labelOffset.y-(r?d:0),"start"===o.axisY.position?p.x=r?this.chartRect.padding.left+o.axisY.labelOffset.x:this.chartRect.x1-10:p.x=this.chartRect.x2+o.axisY.labelOffset.x+10),a.showGrid&&n.createGrid(u,l,this,this.gridOffset,this.chartRect[this.counterUnits.len](),e,[o.classNames.grid,o.classNames[this.units.dir]],i),a.showLabel&&n.createLabel(u,d,l,c,this,a.offset,p,t,[o.classNames.label,o.classNames[this.units.dir],"start"===a.position?o.classNames[a.position]:o.classNames.end],r,i))}.bind(this))},projectValue:function(e,t,n){throw new Error("Base axis can't be instantiated!")}}),n.Axis.units=r}(window,document,e),function(e,t,n){"use strict";n.AutoScaleAxis=n.Axis.extend({constructor:function(e,t,r,o){var i=o.highLow||n.getHighLow(t,o,e.pos);this.bounds=n.getBounds(r[e.rectEnd]-r[e.rectStart],i,o.scaleMinSpace||20,o.onlyInteger),this.range={min:this.bounds.min,max:this.bounds.max},n.AutoScaleAxis.super.constructor.call(this,e,r,this.bounds.values,o)},projectValue:function(e){return this.axisLength*(+n.getMultiValue(e,this.units.pos)-this.bounds.min)/this.bounds.range}})}(window,document,e),function(e,t,n){"use strict";n.FixedScaleAxis=n.Axis.extend({constructor:function(e,t,r,o){var i=o.highLow||n.getHighLow(t,o,e.pos);this.divisor=o.divisor||1,this.ticks=o.ticks||n.times(this.divisor).map(function(e,t){return i.low+(i.high-i.low)/this.divisor*t}.bind(this)),this.ticks.sort(function(e,t){return e-t}),this.range={min:i.low,max:i.high},n.FixedScaleAxis.super.constructor.call(this,e,r,this.ticks,o),this.stepLength=this.axisLength/this.divisor},projectValue:function(e){return this.axisLength*(+n.getMultiValue(e,this.units.pos)-this.range.min)/(this.range.max-this.range.min)}})}(window,document,e),function(e,t,n){"use strict";n.StepAxis=n.Axis.extend({constructor:function(e,t,r,o){n.StepAxis.super.constructor.call(this,e,r,o.ticks,o);var i=Math.max(1,o.ticks.length-(o.stretch?1:0));this.stepLength=this.axisLength/i}
2,projectValue:function(e,t){return this.stepLength*t}})}(window,document,e),function(e,t,n){"use strict";var r={axisX:{offset:30,position:"end",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:n.noop,type:void 0},axisY:{offset:40,position:"start",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:n.noop,type:void 0,scaleMinSpace:20,onlyInteger:!1},width:void 0,height:void 0,showLine:!0,showPoint:!0,showArea:!1,areaBase:0,lineSmooth:!0,showGridBackground:!1,low:void 0,high:void 0,chartPadding:{top:15,right:15,bottom:5,left:10},fullWidth:!1,reverseData:!1,classNames:{chart:"ct-chart-line",label:"ct-label",labelGroup:"ct-labels",series:"ct-series",line:"ct-line",point:"ct-point",area:"ct-area",grid:"ct-grid",gridGroup:"ct-grids",gridBackground:"ct-grid-background",vertical:"ct-vertical",horizontal:"ct-horizontal",start:"ct-start",end:"ct-end"}};n.Line=n.Base.extend({constructor:function(e,t,o,i){n.Line.super.constructor.call(this,e,t,r,n.extend({},r,o),i)},createChart:function(e){var t=n.normalizeData(this.data,e.reverseData,!0);this.svg=n.createSvg(this.container,e.width,e.height,e.classNames.chart);var o,i,a=this.svg.elem("g").addClass(e.classNames.gridGroup),s=this.svg.elem("g"),c=this.svg.elem("g").addClass(e.classNames.labelGroup),u=n.createChartRect(this.svg,e,r.padding);o=void 0===e.axisX.type?new n.StepAxis(n.Axis.units.x,t.normalized.series,u,n.extend({},e.axisX,{ticks:t.normalized.labels,stretch:e.fullWidth})):e.axisX.type.call(n,n.Axis.units.x,t.normalized.series,u,e.axisX),i=void 0===e.axisY.type?new n.AutoScaleAxis(n.Axis.units.y,t.normalized.series,u,n.extend({},e.axisY,{high:n.isNumeric(e.high)?e.high:e.axisY.high,low:n.isNumeric(e.low)?e.low:e.axisY.low})):e.axisY.type.call(n,n.Axis.units.y,t.normalized.series,u,e.axisY),o.createGridAndLabels(a,c,this.supportsForeignObject,e,this.eventEmitter),i.createGridAndLabels(a,c,this.supportsForeignObject,e,this.eventEmitter),e.showGridBackground&&n.createGridBackground(a,u,e.classNames.gridBackground,this.eventEmitter),t.raw.series.forEach(function(r,a){var c=s.elem("g");c.attr({"ct:series-name":r.name,"ct:meta":n.serialize(r.meta)}),c.addClass([e.classNames.series,r.className||e.classNames.series+"-"+n.alphaNumerate(a)].join(" "));var l=[],d=[];t.normalized.series[a].forEach(function(e,s){var c={x:u.x1+o.projectValue(e,s,t.normalized.series[a]),y:u.y1-i.projectValue(e,s,t.normalized.series[a])};l.push(c.x,c.y),d.push({value:e,valueIndex:s,meta:n.getMetaData(r,s)})}.bind(this));var p={lineSmooth:n.getSeriesOption(r,e,"lineSmooth"),showPoint:n.getSeriesOption(r,e,"showPoint"),showLine:n.getSeriesOption(r,e,"showLine"),showArea:n.getSeriesOption(r,e,"showArea"),areaBase:n.getSeriesOption(r,e,"areaBase")},h=("function"==typeof p.lineSmooth?p.lineSmooth:p.lineSmooth?n.Interpolation.monotoneCubic():n.Interpolation.none())(l,d);if(p.showPoint&&h.pathElements.forEach(function(t){var s=c.elem("line",{x1:t.x,y1:t.y,x2:t.x+.01,y2:t.y},e.classNames.point).attr({"ct:value":[t.data.value.x,t.data.value.y].filter(n.isNumeric).join(","),"ct:meta":n.serialize(t.data.meta)});this.eventEmitter.emit("draw",{type:"point",value:t.data.value,index:t.data.valueIndex,meta:t.data.meta,series:r,seriesIndex:a,axisX:o,axisY:i,group:c,element:s,x:t.x,y:t.y})}.bind(this)),p.showLine){var f=c.elem("path",{d:h.stringify()},e.classNames.line,!0);this.eventEmitter.emit("draw",{type:"line",values:t.normalized.series[a],path:h.clone(),chartRect:u,index:a,series:r,seriesIndex:a,seriesMeta:r.meta,axisX:o,axisY:i,group:c,element:f})}if(p.showArea&&i.range){var m=Math.max(Math.min(p.areaBase,i.range.max),i.range.min),g=u.y1-i.projectValue(m);h.splitByCommand("M").filter(function(e){return e.pathElements.length>1}).map(function(e){var t=e.pathElements[0],n=e.pathElements[e.pathElements.length-1];return e.clone(!0).position(0).remove(1).move(t.x,g).line(t.x,t.y).position(e.pathElements.length+1).line(n.x,g)}).forEach(function(n){var s=c.elem("path",{d:n.stringify()},e.classNames.area,!0);this.eventEmitter.emit("draw",{type:"area",values:t.normalized.series[a],path:n.clone(),series:r,seriesIndex:a,axisX:o,axisY:i,chartRect:u,index:a,group:c,element:s})}.bind(this))}}.bind(this)),this.eventEmitter.emit("created",{bounds:i.bounds,chartRect:u,axisX:o,axisY:i,svg:this.svg,options:e})}})}(window,document,e),function(e,t,n){"use strict";var r={axisX:{offset:30,position:"end",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:n.noop,scaleMinSpace:30,onlyInteger:!1},axisY:{offset:40,position:"start",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:n.noop,scaleMinSpace:20,onlyInteger:!1},width:void 0,height:void 0,high:void 0,low:void 0,referenceValue:0,chartPadding:{top:15,right:15,bottom:5,left:10},seriesBarDistance:15,stackBars:!1,stackMode:"accumulate",horizontalBars:!1,distributeSeries:!1,reverseData:!1,showGridBackgroun
2d:!1,classNames:{chart:"ct-chart-bar",horizontalBars:"ct-horizontal-bars",label:"ct-label",labelGroup:"ct-labels",series:"ct-series",bar:"ct-bar",grid:"ct-grid",gridGroup:"ct-grids",gridBackground:"ct-grid-background",vertical:"ct-vertical",horizontal:"ct-horizontal",start:"ct-start",end:"ct-end"}};n.Bar=n.Base.extend({constructor:function(e,t,o,i){n.Bar.super.constructor.call(this,e,t,r,n.extend({},r,o),i)},createChart:function(e){var t,o;e.distributeSeries?(t=n.normalizeData(this.data,e.reverseData,e.horizontalBars?"x":"y")).normalized.series=t.normalized.series.map(function(e){return[e]}):t=n.normalizeData(this.data,e.reverseData,e.horizontalBars?"x":"y"),this.svg=n.createSvg(this.container,e.width,e.height,e.classNames.chart+(e.horizontalBars?" "+e.classNames.horizontalBars:""));var i=this.svg.elem("g").addClass(e.classNames.gridGroup),a=this.svg.elem("g"),s=this.svg.elem("g").addClass(e.classNames.labelGroup);if(e.stackBars&&0!==t.normalized.series.length){var c=n.serialMap(t.normalized.series,function(){return Array.prototype.slice.call(arguments).map(function(e){return e}).reduce(function(e,t){return{x:e.x+(t&&t.x)||0,y:e.y+(t&&t.y)||0}},{x:0,y:0})});o=n.getHighLow([c],e,e.horizontalBars?"x":"y")}else o=n.getHighLow(t.normalized.series,e,e.horizontalBars?"x":"y");o.high=+e.high||(0===e.high?0:o.high),o.low=+e.low||(0===e.low?0:o.low);var u,l,d,p,h,f=n.createChartRect(this.svg,e,r.padding);l=e.distributeSeries&&e.stackBars?t.normalized.labels.slice(0,1):t.normalized.labels,e.horizontalBars?(u=p=void 0===e.axisX.type?new n.AutoScaleAxis(n.Axis.units.x,t.normalized.series,f,n.extend({},e.axisX,{highLow:o,referenceValue:0})):e.axisX.type.call(n,n.Axis.units.x,t.normalized.series,f,n.extend({},e.axisX,{highLow:o,referenceValue:0})),d=h=void 0===e.axisY.type?new n.StepAxis(n.Axis.units.y,t.normalized.series,f,{ticks:l}):e.axisY.type.call(n,n.Axis.units.y,t.normalized.series,f,e.axisY)):(d=p=void 0===e.axisX.type?new n.StepAxis(n.Axis.units.x,t.normalized.series,f,{ticks:l}):e.axisX.type.call(n,n.Axis.units.x,t.normalized.series,f,e.axisX),u=h=void 0===e.axisY.type?new n.AutoScaleAxis(n.Axis.units.y,t.normalized.series,f,n.extend({},e.axisY,{highLow:o,referenceValue:0})):e.axisY.type.call(n,n.Axis.units.y,t.normalized.series,f,n.extend({},e.axisY,{highLow:o,referenceValue:0})));var m=e.horizontalBars?f.x1+u.projectValue(0):f.y1-u.projectValue(0),g=[];d.createGridAndLabels(i,s,this.supportsForeignObject,e,this.eventEmitter),u.createGridAndLabels(i,s,this.supportsForeignObject,e,this.eventEmitter),e.showGridBackground&&n.createGridBackground(i,f,e.classNames.gridBackground,this.eventEmitter),t.raw.series.forEach(function(r,o){var i,s,c=o-(t.raw.series.length-1)/2;i=e.distributeSeries&&!e.stackBars?d.axisLength/t.normalized.series.length/2:e.distributeSeries&&e.stackBars?d.axisLength/2:d.axisLength/t.normalized.series[o].length/2,(s=a.elem("g")).attr({"ct:series-name":r.name,"ct:meta":n.serialize(r.meta)}),s.addClass([e.classNames.series,r.className||e.classNames.series+"-"+n.alphaNumerate(o)].join(" ")),t.normalized.series[o].forEach(function(a,l){var y,v,b,S;if(S=e.distributeSeries&&!e.stackBars?o:e.distributeSeries&&e.stackBars?0:l,y=e.horizontalBars?{x:f.x1+u.projectValue(a&&a.x?a.x:0,l,t.normalized.series[o]),y:f.y1-d.projectValue(a&&a.y?a.y:0,S,t.normalized.series[o])}:{x:f.x1+d.projectValue(a&&a.x?a.x:0,S,t.normalized.series[o]),y:f.y1-u.projectValue(a&&a.y?a.y:0,l,t.normalized.series[o])},d instanceof n.StepAxis&&(d.options.stretch||(y[d.units.pos]+=i*(e.horizontalBars?-1:1)),y[d.units.pos]+=e.stackBars||e.distributeSeries?0:c*e.seriesBarDistance*(e.horizontalBars?-1:1)),b=g[l]||m,g[l]=b-(m-y[d.counterUnits.pos]),void 0!==a){var E={};E[d.units.pos+"1"]=y[d.units.pos],E[d.units.pos+"2"]=y[d.units.pos],!e.stackBars||"accumulate"!==e.stackMode&&e.stackMode?(E[d.counterUnits.pos+"1"]=m,E[d.counterUnits.pos+"2"]=y[d.counterUnits.pos]):(E[d.counterUnits.pos+"1"]=b,E[d.counterUnits.pos+"2"]=g[l]),E.x1=Math.min(Math.max(E.x1,f.x1),f.x2),E.x2=Math.min(Math.max(E.x2,f.x1),f.x2),E.y1=Math.min(Math.max(E.y1,f.y2),f.y1),E.y2=Math.min(Math.max(E.y2,f.y2),f.y1);
2var C=n.getMetaData(r,l);v=s.elem("line",E,e.classNames.bar).attr({"ct:value":[a.x,a.y].filter(n.isNumeric).join(","),"ct:meta":n.serialize(C)}),this.eventEmitter.emit("draw",n.extend({type:"bar",value:a,index:l,meta:C,series:r,seriesIndex:o,axisX:p,axisY:h,chartRect:f,group:s,element:v},E))}}.bind(this))}.bind(this)),this.eventEmitter.emit("created",{bounds:u.bounds,chartRect:f,axisX:p,axisY:h,svg:this.svg,options:e})}})}(window,document,e),function(e,t,n){"use strict";var r={width:void 0,height:void 0,chartPadding:5,classNames:{chartPie:"ct-chart-pie",chartDonut:"ct-chart-donut",series:"ct-series",slicePie:"ct-slice-pie",sliceDonut:"ct-slice-donut",sliceDonutSolid:"ct-slice-donut-solid",label:"ct-label"},startAngle:0,total:void 0,donut:!1,donutSolid:!1,donutWidth:60,showLabel:!0,labelOffset:0,labelPosition:"inside",labelInterpolationFnc:n.noop,labelDirection:"neutral",reverseData:!1,ignoreEmptyValues:!1};function o(e,t,n){var r=t.x>e.x;return r&&"explode"===n||!r&&"implode"===n?"start":r&&"implode"===n||!r&&"explode"===n?"end":"middle"}n.Pie=n.Base.extend({constructor:function(e,t,o,i){n.Pie.super.constructor.call(this,e,t,r,n.extend({},r,o),i)},createChart:function(e){var t,i,a,s,c,u=n.normalizeData(this.data),l=[],d=e.startAngle;this.svg=n.createSvg(this.container,e.width,e.height,e.donut?e.classNames.chartDonut:e.classNames.chartPie),i=n.createChartRect(this.svg,e,r.padding),a=Math.min(i.width()/2,i.height()/2),c=e.total||u.normalized.series.reduce(function(e,t){return e+t},0);var p=n.quantity(e.donutWidth);"%"===p.unit&&(p.value*=a/100),a-=e.donut&&!e.donutSolid?p.value/2:0,s="outside"===e.labelPosition||e.donut&&!e.donutSolid?a:"center"===e.labelPosition?0:e.donutSolid?a-p.value/2:a/2,s+=e.labelOffset;var h={x:i.x1+i.width()/2,y:i.y2+i.height()/2},f=1===u.raw.series.filter(function(e){return e.hasOwnProperty("value")?0!==e.value:0!==e}).length;u.raw.series.forEach(function(e,t){l[t]=this.svg.elem("g",null,null)}.bind(this)),e.showLabel&&(t=this.svg.elem("g",null,null)),u.raw.series.forEach(function(r,i){if(0!==u.normalized.series[i]||!e.ignoreEmptyValues){l[i].attr({"ct:series-name":r.name}),l[i].addClass([e.classNames.series,r.className||e.classNames.series+"-"+n.alphaNumerate(i)].join(" "));var m=c>0?d+u.normalized.series[i]/c*360:0,g=Math.max(0,d-(0===i||f?0:.2));m-g>=359.99&&(m=g+359.99);var y,v,b,S=n.polarToCartesian(h.x,h.y,a,g),E=n.polarToCartesian(h.x,h.y,a,m),C=new n.Svg.Path(!e.donut||e.donutSolid).move(E.x,E.y).arc(a,a,0,m-d>180,0,S.x,S.y);e.donut?e.donutSolid&&(b=a-p.value,y=n.polarToCartesian(h.x,h.y,b,d-(0===i||f?0:.2)),v=n.polarToCartesian(h.x,h.y,b,m),C.line(y.x,y.y),C.arc(b,b,0,m-d>180,1,v.x,v.y)):C.line(h.x,h.y);var T=e.classNames.slicePie;e.donut&&(T=e.classNames.sliceDonut,e.donutSolid&&(T=e.classNames.sliceDonutSolid));var w=l[i].elem("path",{d:C.stringify()},T);if(w.attr({"ct:value":u.normalized.series[i],"ct:meta":n.serialize(r.meta)}),e.donut&&!e.donutSolid&&(w._node.style.strokeWidth=p.value+"px"),this.eventEmitter.emit("draw",{type:"slice",value:u.normalized.series[i],totalDataSum:c,index:i,meta:r.meta,series:r,group:l[i],element:w,path:C.clone(),center:h,radius:a,startAngle:d,endAngle:m}),e.showLabel){var _,I;_=1===u.raw.series.length?{x:h.x,y:h.y}:n.polarToCartesian(h.x,h.y,s,d+(m-d)/2),I=u.normalized.labels&&!n.isFalseyButZero(u.normalized.labels[i])?u.normalized.labels[i]:u.normalized.series[i];var P=e.labelInterpolationFnc(I,i);if(P||0===P){var R=t.elem("text",{dx:_.x,dy:_.y,"text-anchor":o(h,_,e.labelDirection)},e.classNames.label).text(""+P);this.eventEmitter.emit("draw",{type:"label",index:i,group:t,element:R,text:""+P,x:_.x,y:_.y})}}d=m}}.bind(this)),this.eventEmitter.emit("created",{chartRect:i,svg:this.svg,options:e})},determineAnchorPosition:o})}(window,document,e),e})},function(e,t){e.exports='<div class="ct-chart" [id]="\'chart_\' + id"></div>'},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return p});var r=n(0),o=n(98),i=n(8),a=n(198),s=n(11),c=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},u=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Prom
2ise))(function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?o(e.value):function(e){return e instanceof n?e:new n(function(t){t(e)})}(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())})},d=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},p=function(){function t(e,t,n){this.locationService=e,this.zone=t,this.configService=n,this.onBoundsChange=new r.EventEmitter,this.onPropertySelected=new r.EventEmitter,this.markers=[],this.eventListeners=[],this.canUpdate=!1,this.somePropertiesWithoutCoords=!1,this.mapTypeBtnClass="hybrid"}var p,h,f,m,g;return t.prototype.ngOnChanges=function(e){var t=e.hoverProperty;if(t&&this.map){var n=t.currentValue;n?this.setHoverPropertyId(n.Id):this.setHoverPropertyId(null)}else{var r=e.location;r&&r.currentValue&&(this.location=r.currentValue);var o=e.properties;o&&o.currentValue&&o.currentValue.length&&(this.properties=o.currentValue),this.map||void 0===this.properties||void 0===this.location&&!a.a.extract("officeid",window.location.href)||this.initMap(),this.map&&e.properties&&(this.setMarkers(),this.focusMapIfNeeded())}},t.prototype.initMap=function(){var t=this,n=new google.maps.LatLng(51.507351,-.127758);e.isEmptyObject(this.location)||void 0===this.location.Latitude&&void 0===this.location.Longitude||(n=new google.maps.LatLng(this.location.Latitude,this.location.Longitude)),this.map=new google.maps.Map(document.getElementById("results-map"),{center:n,mapTypeId:google.maps.MapTypeId.ROADMAP,mapId:this.configService.googleMapsMapId(),scrollwheel:!1,streetViewControl:!1,fullscreenControl:!1,mapTypeControl:!1,zoomControl:!1,zoom:16}),window.addEventListener("orientationchange",function(){return setTimeout(function(){return t.onRefreshMap()},500)})},t.prototype.enableUpdate=function(){var e=this;this.zone.run(function(){e.canUpdate=!0})},t.prototype.onUpdate=function(){this.canUpdate=!1,this.onBoundsChange.emit(this.extendBounds(this.map.getBounds(),-5))},t.prototype.removeListeners=function(){for(var e=0,t=this.eventListeners;e<t.length;e++){var n=t[e];google.maps.event.removeListener(n)}this.eventListeners=[]},t.prototype.addListeners=function(){var e=this;setTimeout(function(){e.eventListeners.push(google.maps.event.addListener(e.map,"dragstart",function(){e.enableUpdate()})),e.eventListeners.push(google.maps.event.addListener(e.map,"zoom_changed",function(){e.enableUpdate()}))},1e3)},t.prototype.getIcon=function(e,t){var n=location.protocol+"//"+location.host+"/properties-resources/images/icons/results/pin-default.svg",r=location.protocol+"//"+location.host+"/properties-resources/images/icons/results/pin-default-logo-selected.svg",o=location.protocol+"//"+location.host+"/properties-resources/images/icons/results/pin-default-logo.svg",i=location.protocol+"//"+location.host+"/properties-resources/images/icons/results/pin-default-outlined.svg",a=location.protocol+"//"+location.host+"/properties-resources/images/icons/results/pin-default-outlined-logo-selected.svg",s=location.protocol+"//"+location.host+"/properties-resources/images/icons/results/pin-default-outlined-logo.svg",c=e||t?{url:null,width:28.8,height:36,anchorY:38}:{url:null,width:20,height:24,anchorY:24};return this.map.getMapTypeId()===google.maps.MapTypeId.HYBRID?c.url=t?a:e?s:i:c.url=t?r:e?o:n,c},t.prototype.createMarkerContent=function(e,t){void 0===t&&(t=1);var n=document.createElement("div");n.style.width="28.8px",n.style.height="38px",n.style.position="relative",n.style.pointerEvents="auto",n.style.cursor="pointer";var r=document.createElement("img");return r.src=e.url,r.width=e.width,r.height=e.height,r.style.opacity=t.toString(),r.style.position="absolute",r.style.left="50%",r.style.bottom=e.anchorY-e.height+"px",r.style.transform="translateX(-50%)",r.style.pointerEvents="none",n.appendChild(r),n},t.prototype.updateMarkerContent=function(e,t,n){void 0===n&&(n=1);var r=e.querySelector("img");r.src=t.url,r.width=t.width,r.height=t.height,r.style.opacity=n.toString(),r.style.bottom=t.anchorY-t.height+"px"},t.prototype.getMarkerPosition=function(e){var t=e.position;return t instanceof google.maps.LatLng?t:new google.maps.LatLng(t.lat,t.lng)},t.prototype.setMarkers=function(){var e=this;this.clearMarkers();var t=!1;if(this.properties&&0!==this.properties.length)for(var n,r,o=function(o){if
2([o.Latitude,o.Longitude].every(function(e){return 0===e||void 0===e||null===e}))return t=!0,"continue";var a=new google.maps.LatLng(o.Latitude,o.Longitude),s=i.createMarkerContent(i.getIcon(!1,!1),1);n=new google.maps.marker.AdvancedMarkerElement({map:i.map,position:a,content:s,gmpClickable:!0}),r=[],n.addEventListener("gmp-click",function(){var t=o.Id;e.onMarkerClick(t),e.setselectedPropertyId(t)}),s.addEventListener("mouseenter",function(){var t=o.Id;e.setHoverPropertyId(t)}),s.addEventListener("mouseleave",function(){e.setHoverPropertyId(null)}),i.markers.push({propertyId:o.Id,propertyRef:o.Number,ipm:o.Ipm,selected:!1,IsoCode:o.IsoCode,marker:n,markerContent:s,markerListeners:r})},i=this,a=0,s=this.properties;a<s.length;a++){o(s[a])}this.somePropertiesWithoutCoords=t},t.prototype.clearMarkers=function(){for(var e=0,t=this.markers;e<t.length;e++){var n=t[e];n.marker.map=null;for(var r=0,o=n.markerListeners;r<o.length;r++){var i=o[r];google.maps.event.removeListener(i)}}this.markers=[]},t.prototype.focusMapIfNeeded=function(){var e=!1,t=this.map.getBounds(),n=new google.maps.LatLngBounds;if(t){for(var r=0,o=this.markers;r<o.length;r++){var i=o[r],a=this.getMarkerPosition(i.marker);if(n.extend(a),!t.contains(a)){e=!0;break}}e||0!==this.markers.length||(e=!0)}else e=!0;
2if(!e){var s=t.getNorthEast().lat()-t.getSouthWest().lat();s<0&&(s=-s);var c=t.getNorthEast().lng()-t.getSouthWest().lng();c<0&&(c=-c);var u=n.getNorthEast().lat()-n.getSouthWest().lat();u<0&&(u=-u);var l=n.getNorthEast().lng()-n.getSouthWest().lng();l<0&&(l=-l),l<c/2&&u<s/2&&(e=!0)}(e||this.map.getZoom()<8)&&this.focusMap()},t.prototype.getLocationByIsoCode=function(e){return l(this,void 0,Promise,function(){return d(this,function(t){switch(t.label){case 0:return[4,this.locationService.getLocationByIsoCode(e).toPromise()];case 1:return[2,t.sent()]}})})},t.prototype.focusMap=function(){return l(this,void 0,Promise,function(){var t,n,r,o,i,a,s,c,u,l,p,h,f=this;return d(this,function(d){switch(d.label){case 0:return this.removeListeners(),t=new google.maps.LatLngBounds,e.isEmptyObject(this.location)?(l=this.isoCodeDiscovery(this.properties),n=this,[4,this.getLocationByIsoCode(l)]):[3,2];case 1:n.location=d.sent(),d.label=2;case 2:if(r=function(){f.map.fitBounds(t),f.addListeners(),f.canUpdate=!1},this.markers.length>1){if(this.multipleMarkersInSameLocation())return[2];for(o=this.markers,this.location.IsFreetextOrPostcode&&(i=this.isoCodeDiscovery(this.markers),o=o.filter(function(e){return e.IsoCode===i})),a=0,s=o;a<s.length;a++)c=s[a],t.extend(this.getMarkerPosition(c.marker));return this.extendBounds(t,5),r(),[2]}return 1===this.markers.length?(h=new google.maps.Geocoder,u=this.getMarkerPosition(this.markers[0].marker),h.geocode({location:u},function(e,t){t===google.maps.GeocoderStatus.OK&&(f.map.setCenter(u),f.map.fitBounds(e[0].geometry.viewport),f.addListeners(),f.canUpdate=!1)}),[2]):this.location?this.location.IsFreetextOrPostcode&&this.properties.length>0?(l=this.isoCodeDiscovery(this.properties),[4,this.getLocationByIsoCode(l)]):[3,4]:(this.setEuropeBounds(t),r(),[2]);case 3:return p=d.sent(),this.setBounds(t,p.Latitude,p.Longitude),r(),[2];case 4:return"US"===this.location.ISOCode?(this.setUsaBounds(t),r(),[2]):void 0!==this.location.Latitude&&void 0!==this.location.Longitude?(this.setBounds(t,this.location.Latitude,this.location.Longitude),this.map.setCenter(new google.maps.LatLng(this.location.Latitude,this.location.Longitude)),this.map.setZoom(15),[2]):this.location.Slug?((h=new google.maps.Geocoder).geocode({address:this.location.Slug},function(e,t){t===google.maps.GeocoderStatus.OK&&(f.map.setCenter(e[0].geometry.location),f.map.fitBounds(e[0].geometry.viewport),f.addListeners(),f.canUpdate=!1)}),[2]):(this.setEuropeBounds(t),r(),[2])}})})},t.prototype.multipleMarkersInSameLocation=function(){for(var e=!0,t=this.getMarkerPosition(this.markers[0].marker),n=0,r=this.markers;n<r.length;n++){var o=r[n];if(!t.equals(this.getMarkerPosition(o.marker))){e=!1;break}}return e&&(this.map.setZoom(13),this.map.panTo(this.getMarkerPosition(this.markers[0].marker)),this.addListeners(),this.canUpdate=!1),e},t.prototype.isoCodeDiscovery=function(e){var t={};if(e.length>=1)for(var n=0,r=e;n<r.length;n++){var o=r[n];t.hasOwnProperty(o.IsoCode)?t[o.IsoCode]++:t[o.IsoCode]=1}return Object.keys(t).reverse().reduce(function(e,n){return t[e]>t[n]?e:n})},t.prototype.setBounds=function(e,t,n){e.extend(new google.maps.LatLng(t,n));var r=e.getCenter();e.extend(new google.maps.LatLng(r.lat()+3,r.lng()+3)),e.extend(new google.maps.LatLng(r.lat()-3,r.lng()-3))},t.prototype.setEuropeBounds=function(e){return e.extend(new google.maps.LatLng(59.566332,-13.535156)),e.extend(new google.maps.LatLng(35.081708,-11.689453)),e.extend(new google.maps.LatLng(59.964635,33.486328)),e.extend(new google.maps.LatLng(34.431833,38.144531)),e},t.prototype.setUsaBounds=function(e){return e.extend(new google.maps.LatLng(50.233151,-127.661132)),e.extend(new google.maps.LatLng(26.431228,-128.012695)),e.extend(new google.maps.LatLng(23.563987,-65.52246)),e.extend(new google.maps.LatLng(44.653024,-62.270507)),e}
2,t.prototype.extendBounds=function(e,t){var n=e.getSouthWest(),r=e.getNorthEast(),o=(r.lat()-n.lat())*(t/100),i=(r.lng()-n.lng())*(t/100),a=new google.maps.LatLngBounds,s=new google.maps.LatLng(n.lat()-o,n.lng()-i),c=new google.maps.LatLng(r.lat()+o,r.lng()+i);return a.extend(s),a.extend(c),a},t.prototype.setHoverPropertyId=function(e){for(var t=0,n=this.markers;t<n.length;t++){var r=n[t];r.selected||(e&&r.propertyId==e?(this.updateMarkerContent(r.markerContent,this.getIcon(!0,r.selected),1),r.marker.zIndex=1001):e&&r.propertyId!=e?(this.updateMarkerContent(r.markerContent,this.getIcon(!1,r.selected),.5),r.marker.zIndex=999):e||(this.updateMarkerContent(r.markerContent,this.getIcon(!1,r.selected),1),r.marker.zIndex=1e3))}},t.prototype.setselectedPropertyId=function(e){for(var t=0,n=this.markers;t<n.length;t++){var r=n[t];r.propertyId==e?(r.selected=!0,this.updateMarkerContent(r.markerContent,this.getIcon(!1,!0),1),r.marker.zIndex=1001):r.selected&&(r.selected=!1,this.updateMarkerContent(r.markerContent,this.getIcon(!1,!1),.5),r.marker.zIndex=1e3)}},t.prototype.onMarkerClick=function(e){this.onPropertySelected.emit(e)},t.prototype.onRefreshMap=function(){this.focusMap()},t.prototype.zoomMapIn=function(){var e=this.map.getZoom();this.map.setZoom(e+1)},t.prototype.zoomMapOut=function(){var e=this.map.getZoom();this.map.setZoom(e-1)},t.prototype.switchMapType=function(){this.map.getMapTypeId()===google.maps.MapTypeId.ROADMAP?(this.map.setMapTypeId(google.maps.MapTypeId.HYBRID),this.mapTypeBtnClass="roadmap"):(this.map.setMapTypeId(google.maps.MapTypeId.ROADMAP),this.mapTypeBtnClass="hybrid"),this.setMarkers()},c([Object(r.Input)(),u("design:type",Array)],t.prototype,"properties",void 0),c([Object(r.Input)(),u("design:type","function"==typeof(p=void 0!==i.NspProperty&&i.NspProperty.IProperty)?p:Object)],t.prototype,"hoverProperty",void 0),c([Object(r.Input)(),u("design:type","function"==typeof(h=void 0!==i.NspLocation&&i.NspLocation.ILocationFull)?h:Object)],t.prototype,"location",void 0),c([Object(r.Output)(),u("design:type",Object)],t.prototype,"onBoundsChange",void 0),c([Object(r.Output)(),u("design:type",Object)],t.prototype,"onPropertySelected",void 0),t=c([Object(r.Component)({selector:"results-map",template:n(831)}),u("design:paramtypes",["function"==typeof(f=void 0!==o.a&&o.a)?f:Object,"function"==typeof(m=void 0!==r.NgZone&&r.NgZone)?m:Object,"function"==typeof(g=void 0!==s.a&&s.a)?g:Object])],t)}()}).call(t,n(5))},function(e,t){e.exports='<div class="alert map-no-geo-code" [attr.data-hidden]="!somePropertiesWithoutCoords">\r\n    <i class="map-no-geo-code__info"></i>\r\n    <span class="map-no-geo-code__text">{{ \'NoMapCoords\' | translate }}</span>\r\n    <a class="map-no-geo-code__close" href="#" data-dismiss="alert" [attr.aria-label]="\'CTA_CLOSE\' | translate" [attr.title]="\'CTA_CLOSE\' | translate">\r\n        <span aria-hidden="true">×</span>\r\n    </a>\r\n</div>\r\n\r\n<div class="map-custom-controls zoom-group">\r\n    <div class="map-custom-controls__button">\r\n        <i class="zoom-in" (click)="zoomMapIn()"></i>\r\n    </div>\r\n    <div class="map-custom-controls__button">\r\n        <i class="zoom-out" (click)="zoomMapOut()"></i>\r\n    </div>\r\n</div>\r\n\r\n<div class="map-custom-controls map-type-group">\r\n    <div class="map-custom-controls__map-type-button" [ngClass]="mapTypeBtnClass" (click)="switchMapType()"></div>\r\n</div>\r\n\r\n<div id="results-map"></div>'},function(e,t,n){var r,o,i;!function(a,s){o=[n(833),n(210)],void 0===(i="function"==typeof(r=s)?r.apply(t,o):r)||(e.exports=i)}(window,function(e,t){"use strict";var n=e.create("masonry");n.compatOptions.fitWidth="isFitWidth";var r=n.prototype;return r._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var e=0;e<this.cols;e++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},r.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var e=this.items[0],n=e&&e.element;this.columnWidth=n&&t(n).outerWidth||this.containerWidth}var r=this.columnWidth+=this.gutter,o=this.containerWidth+this.gutter,i=o/r,a=r-o%r;i=Math[a&&a<1?"round":"floor"](i),this.cols=Math.max(i,1)},r.getContainerWidth=function(){var e=this._getOption("fitWidth")?this.element.parentNode:this.element,n=t(e);this.containerWidth=n&&n.innerWidth},r._getItemLayoutPosition=function(e){e.getSize();var t=e.size.outerWidth%this.columnWidth,n=Math[t&&t<1?"round":"ceil"](e.size.outerWidth/this.columnWidth);n=Math.min(n,this.cols);for(var r=this[this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition"](n,e),o={x:this.columnWidth*r.col,y:r.y},i=r.y+e.size.outerHeight,a=n+r.col,s=r.col;s<a;s++)this.colYs[s]=i;return o},r._getTopColPosition=function(e){var t=this._getTopColGroup(e),n=Math.min.apply(Math,t);return{col:t.indexOf(n),y:n}},r._getTopColGroup=function(e){if(e<2)return this.colYs;for(var t=[],n=this.cols+1-e,r=0;r<n;r++)t[r]=this._getColGroupY(r,e);return t},r._getColGroupY=function(e,t){if(t<2)return this.colYs[e];var n=this.colYs.slice(e,e+t);return Math.max.apply(Math,n)},r._getHorizontalColPosition=function(e,t){var n=this.horizontalColIndex%this.cols;n=e>1&&n+e>this.cols?0:n;var r=t.size.outerWidth&&t.size.outerHeight;return this.horizontalColIndex=r?n+e:this.horizontalColIndex,{col:n,y:this._getColGroupY(n,e)}},r._manageStamp=function(e){var n=t(e),r=this._getElementOffset(e),o=this._getOption("originLeft")?r.left:r.right,i=o+n.outerWidth,a=Math.floor(o/this.columnWidth);a=Math.max(0,a);var s=Math.floor(i/this.columnWidth);s-=i%this.columnWidth?0:1,s=Math.min(this.cols-1,s);for(var c=(this._getOption("originTop")?r.top:r.bottom)+n.outerHeight,u=a;u<=s;u++)this.colYs[u]=Math.max(c,this.colYs[u])},r._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var e={height:this.maxY};return this._getOption("fitWidth")&&(e.width=this._getContainerFitWidth()),e},r._getContainerFitWidth=function(){for(var e=0,t=this.cols;--t&&0===this.colYs[t];)e++;return(this.cols-e)*this.columnWidth-this.gutter},r.needsResizeLayout=function(){var e=this.containerWidth;return this.getContainerWidth(),e!=this.containerWidth},n})},function(e,t,n){var r,o;!function(i,a){"use strict";r=[n(329),n(210),n(834),n(836)],void 0===(o=function(e,t,n,r){return a(i,e,t,n,r)}.apply(t,r))||(e.exports=o)}(window,function(e,t,n,r,o){"use strict";var i=e.console,a=e.jQuery,s=function(){},c=0,u={};function l(e,t){var n=r.getQueryElement(e);
vendor: 4,367 bytes, line 2
2if(n){this.element=n,a&&(this.$element=a(this.element)),this.options=r.extend({},this.constructor.defaults),this.option(t);var o=++c;this.element.outlayerGUID=o,u[o]=this,this._create(),this._getOption("initLayout")&&this.layout()}else i&&i.error("Bad element for "+this.constructor.namespace+": "+(n||e))}l.namespace="outlayer",l.Item=o,l.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var d=l.prototype;function p(e){function t(){e.apply(this,arguments)}return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t}r.extend(d,t.prototype),d.option=function(e){r.extend(this.options,e)},d._getOption=function(e){var t=this.constructor.compatOptions[e];return t&&void 0!==this.options[t]?this.options[t]:this.options[e]},l.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},d._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),r.extend(this.element.style,this.options.containerStyle),this._getOption("resize")&&this.bindResize()},d.reloadItems=function(){this.items=this._itemize(this.element.children)},d._itemize=function(e){for(var t=this._filterFindItemElements(e),n=this.constructor.Item,r=[],o=0;o<t.length;o++){var i=new n(t[o],this);r.push(i)}return r},d._filterFindItemElements=function(e){return r.filterFindElements(e,this.options.itemSelector)},d.getItemElements=function(){return this.items.map(function(e){return e.element})},d.layout=function(){this._resetLayout(),this._manageStamps();var e=this._getOption("layoutInstant"),t=void 0!==e?e:!this._isLayoutInited;this.layoutItems(this.items,t),this._isLayoutInited=!0},d._init=d.layout,d._resetLayout=function(){this.getSize()},d.getSize=function(){this.size=n(this.element)},d._getMeasurement=function(e,t){var r,o=this.options[e];o?("string"==typeof o?r=this.element.querySelector(o):o instanceof HTMLElement&&(r=o),this[e]=r?n(r)[t]:o):this[e]=0},d.layoutItems=function(e,t){e=this._getItemsForLayout(e),this._layoutItems(e,t),this._postLayout()},d._getItemsForLayout=function(e){return e.filter(function(e){return!e.isIgnored})},d._layoutItems=function(e,t){if(this._emitCompleteOnItems("layout",e),e&&e.length){var n=[];e.forEach(function(e){var r=this._getItemLayoutPosition(e);r.item=e,r.isInstant=t||e.isLayoutInstant,n.push(r)},this),this._processLayoutQueue(n)}},d._getItemLayoutPosition=function(){return{x:0,y:0}},d._processLayoutQueue=function(e){this.updateStagger(),e.forEach(function(e,t){this._positionItem(e.item,e.x,e.y,e.isInstant,t)},this)},d.updateStagger=function(){var e=this.options.stagger;if(null!==e&&void 0!==e)return this.stagger=function(e){if("number"==typeof e)return e;var t=e.match(/(^\d*\.?\d*)(\w*)/),n=t&&t[1],r=t&&t[2];if(!n.length)return 0;n=parseFloat(n);var o=h[r]||1;return n*o}(e),this.stagger;this.stagger=0},d._positionItem=function(e,t,n,r,o){r?e.goTo(t,n):(e.stagger(o*this.stagger),e.moveTo(t,n))},d._postLayout=function(){this.resizeContainer()},d.resizeContainer=function(){if(this._getOption("resizeContainer")){var e=this._getContainerSize();e&&(this._setContainerMeasure(e.width,!0),this._setContainerMeasure(e.height,!1))}},d._getContainerSize=s,d._setContainerMeasure=function(e,t){if(void 0!==e){var n=this.size;n.isBorderBox&&(e+=t?n.paddingLeft+n.paddingRight+n.borderLeftWidth+n.borderRightWidth:n.paddingBottom+n.paddingTop+n.borderTopWidth+n.borderBottomWidth),e=Math.max(e,0),this.element.style[t?"width":"height"]=e+"px"}},d._emitCompleteOnItems=function(e,t){var n=this;function r(){n.dispatchEvent(e+"Complete",null,[t])}var o=t.length;if(t&&o){var i=0;t.forEach(function(t){t.once(e,a)})}else r();function a(){++i==o&&r()}},d.dispatchEvent=function(e,t,n){var r=t?[t].concat(n):n;if(this.emitEvent(e,r),a)if(this.$element=this.$element||a(this.element),t){var o=a.Event(t);o.type=e,this.$element.trigger(o,n)}else this.$element.trigger(e,n)},d.ignore=function(e){var t=this.getItem(e);t&&(t.isIgnored=!0)},d.unignore=function(e){var t=this.getItem(e);t&&delete t.isIgnored},d.stamp=function(e){(e=this._find(e))&&(this.stamps=this.stamps.
2concat(e),e.forEach(this.ignore,this))},d.unstamp=function(e){(e=this._find(e))&&e.forEach(function(e){r.removeFrom(this.stamps,e),this.unignore(e)},this)},d._find=function(e){if(e)return"string"==typeof e&&(e=this.element.querySelectorAll(e)),e=r.makeArray(e)},d._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},d._getBoundingRect=function(){var e=this.element.getBoundingClientRect(),t=this.size;this._boundingRect={left:e.left+t.paddingLeft+t.borderLeftWidth,top:e.top+t.paddingTop+t.borderTopWidth,right:e.right-(t.paddingRight+t.borderRightWidth),bottom:e.bottom-(t.paddingBottom+t.borderBottomWidth)}},d._manageStamp=s,d._getElementOffset=function(e){var t=e.getBoundingClientRect(),r=this._boundingRect,o=n(e);return{left:t.left-r.left-o.marginLeft,top:t.top-r.top-o.marginTop,right:r.right-t.right-o.marginRight,bottom:r.bottom-t.bottom-o.marginBottom}},d.handleEvent=r.handleEvent,d.bindResize=function(){e.addEventListener("resize",this),this.isResizeBound=!0},d.unbindResize=function(){e.removeEventListener("resize",this),this.isResizeBound=!1},d.onresize=function(){this.resize()},r.debounceMethod(l,"onresize",100),d.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},d.needsResizeLayout=function(){var e=n(this.element);return this.size&&e&&e.innerWidth!==this.size.innerWidth},d.addItems=function(e){var t=this._itemize(e);return t.length&&(this.items=this.items.concat(t)),t},d.appended=function(e){var t=this.addItems(e);t.length&&(this.layoutItems(t,!0),this.reveal(t))},d.prepended=function(e){var t=this._itemize(e);if(t.length){var n=this.items.slice(0);this.items=t.concat(n),this._resetLayout(),this._manageStamps(),this.layoutItems(t,!0),this.reveal(t),this.layoutItems(n)}},d.reveal=function(e){if(this._emitCompleteOnItems("reveal",e),e&&e.length){var t=this.updateStagger();e.forEach(function(e,n){e.stagger(n*t),e.reveal()})}},d.hide=function(e){if(this._emitCompleteOnItems("hide",e),e&&e.length){var t=this.updateStagger();e.forEach(function(e,n){e.stagger(n*t),e.hide()})}},d.revealItemElements=function(e){var t=this.getItems(e);this.reveal(t)},d.hideItemElements=function(e){var t=this.getItems(e);this.hide(t)},d.getItem=function(e){for(var t=0;t<this.items.length;t++){var n=this.items[t];if(n.element==e)return n}},d.getItems=function(e){var t=[];return(e=r.makeArray(e)).forEach(function(e){var n=this.getItem(e);n&&t.push(n)},this),t},d.remove=function(e){var t=this.getItems(e);this._emitCompleteOnItems("remove",t),t&&t.length&&t.forEach(function(e){e.remove(),r.removeFrom(this.items,e)},this)},d.destroy=function(){var e=this.element.style;e.height="",e.position="",e.width="",this.items.forEach(function(e){e.destroy()}),this.unbindResize();var t=this.element.outlayerGUID;delete u[t],delete this.element.outlayerGUID,a&&a.removeData(this.element,this.constructor.namespace)},l.data=function(e){var t=(e=r.getQueryElement(e))&&e.outlayerGUID;return t&&u[t]},l.create=function(e,t){var n=p(l);return n.defaults=r.extend({},l.defaults),r.extend(n.defaults,t),n.compatOptions=r.extend({},l.compatOptions),n.namespace=e,n.data=l.data,n.Item=p(o),r.htmlInit(n,e),a&&a.bridget&&a.bridget(e,n),n};var h={ms:1,s:1e3};return l.Item=o,l})},function(e,t,n){var r,o;!function(i,a){r=[n(835)],void 0===(o=function(e){return a(i,e)}.apply(t,r))||(e.exports=o)}(window,function(e,t){"use strict";var n={extend:function(e,t){for(var n in t)e[n]=t[n];return e},modulo:function(e,t){return(e%t+t)%t}},r=Array.prototype.slice;n.makeArray=function(e){return Array.isArray(e)?e:null===e||void 0===e?[]:"object"==typeof e&&"number"==typeof e.length?r.call(e):[e]},n.removeFrom=function(e,t){var n=e.indexOf(t);-1!=n&&e.splice(n,1)},n.getParent=function(e,n){for(;e.parentNode&&e!=document.body;)if(e=e.parentNode,t(e,n))return e},n.getQueryElement=function(e){return"string"==typeof e?document.querySelector(e):e},n.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},n.filterFindElements=function(e,r){var o=[];return(e=n.makeArray(e)).forEach(function(e){if(e instanceof HTMLElement)if(r){t(e,r)&&o.push(e);for(var n=e.querySelectorAll(r),i=0;i<n.length;i++)o.push(n[i])}else o.push(e)}),o},n.debounceMethod=function(e,t,n){n=n||100;var r=e.prototype[t],o=t+"Timeout";e.prototype[t]=function(){var e=this[o];clearTimeout(e);var t=arguments,i=this;this[o]=setTimeout(function(){r.apply(i,t),delete i[o]},n)}},n.docReady=function(e){var t=document.readyState;"complete"==t||"interactive"==t?setTimeout(e):document.addEventListener("DOMContentLoaded",e)},n.toDashed=function(e){return e.replace(/(.)([A-Z])/g,function(e,t,n){return t+"-"+n}).toLowerCase()};var o=e.console;return n.htmlInit=function(t,r){n.docReady(function(){var i=n.toDashed(r),a="data-"+i,s=document.querySelectorAll("["+a+"]"),c=document.querySelectorAll(".js-"+i),u=n.makeArray(s).concat(n.makeArray(c)),l=a+"-options",d=e.jQuery;u.forEach(function(e){var n,i=e.getAttribute(a)||e.getAttribute(l);try{n=i&&JSON.parse(i)}catch(t){return void(o&&o.error("Error parsing "+a+" on "+e.className+": "+t))}var s=new t(e,n);d&&d.data(e,r,s)})})},n})},function(e,t,n){var r,o;!function(i,a){"use strict";void 0===(o="function"==typeof(r=a)?r.call(t,n,t,e):r)||(e.exports=o)}(window,function(){"use strict";var e=function(){var e=window.Element.prototype;if(e.matches)return"matches";if(e.matchesSelector)return"matchesSelector";for(var t=["webkit","moz","ms","o"],n=0;n<t.length;n++){var r=t[n]+"MatchesSelector";if(e[r])return r}}();return function(t,n){return t[e](n)}})},function(e,t,n){var r,o,i;!function(a,s){o=[n(329),n(210)],void 0===(i="function"==typeof(r=s)?r.apply(t,o):r)||(e.exports=i)}(window,function(e,t){"use strict";var n=document.documentElement.style,r="string"==typeof n.transition?"transition":"WebkitTransition",o="string"==typeof n.transform?"transform":"WebkitTransform",i={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[r],a={transform:o,transition:r,transitionDuration:r+"Duration",transitionProperty:r+"Property",transitionDelay:r+"Delay"};function s(e,t){e&&(this.element=e,this.layout=t,this.position={x:0,y:0},this._create())}var c=s.prototype=Object.create(e.prototype);c.constructor=s,c._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},c.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},c.getSize=function(){this.size=t(this.element)},c.css=function(e){var t=this.element.style;for(var n in e){t[a[n]||n]=e[n]}},c.getPosition=function(){var e=getComputedStyle(this.element),t=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop"),r=e[t?"left"
2:"right"],o=e[n?"top":"bottom"],i=parseFloat(r),a=parseFloat(o),s=this.layout.size;-1!=r.indexOf("%")&&(i=i/100*s.width),-1!=o.indexOf("%")&&(a=a/100*s.height),i=isNaN(i)?0:i,a=isNaN(a)?0:a,i-=t?s.paddingLeft:s.paddingRight,a-=n?s.paddingTop:s.paddingBottom,this.position.x=i,this.position.y=a},c.layoutPosition=function(){var e=this.layout.size,t={},n=this.layout._getOption("originLeft"),r=this.layout._getOption("originTop"),o=n?"paddingLeft":"paddingRight",i=n?"left":"right",a=n?"right":"left",s=this.position.x+e[o];t[i]=this.getXValue(s),t[a]="";var c=r?"paddingTop":"paddingBottom",u=r?"top":"bottom",l=r?"bottom":"top",d=this.position.y+e[c];t[u]=this.getYValue(d),t[l]="",this.css(t),this.emitEvent("layout",[this])},c.getXValue=function(e){var t=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!t?e/this.layout.size.width*100+"%":e+"px"},c.getYValue=function(e){var t=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&t?e/this.layout.size.height*100+"%":e+"px"},c._transitionTo=function(e,t){this.getPosition();var n=this.position.x,r=this.position.y,o=e==this.position.x&&t==this.position.y;if(this.setPosition(e,t),!o||this.isTransitioning){var i=e-n,a=t-r,s={};s.transform=this.getTranslate(i,a),this.transition({to:s,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})}else this.layoutPosition()},c.getTranslate=function(e,t){var n=this.layout._getOption("originLeft"),r=this.layout._getOption("originTop");return"translate3d("+(e=n?e:-e)+"px, "+(t=r?t:-t)+"px, 0)"},c.goTo=function(e,t){this.setPosition(e,t),this.layoutPosition()},c.moveTo=c._transitionTo,c.setPosition=function(e,t){this.position.x=parseFloat(e),this.position.y=parseFloat(t)},c._nonTransition=function(e){for(var t in this.css(e.to),e.isCleaning&&this._removeStyles(e.to),e.onTransitionEnd)e.onTransitionEnd[t].call(this)},c.transition=function(e){if(parseFloat(this.layout.options.transitionDuration)){var t=this._transn;for(var n in e.onTransitionEnd)t.onEnd[n]=e.onTransitionEnd[n];for(n in e.to)t.ingProperties[n]=!0,e.isCleaning&&(t.clean[n]=!0);if(e.from){this.css(e.from);this.element.offsetHeight;null}this.enableTransition(e.to),this.css(e.to),this.isTransitioning=!0}else this._nonTransition(e)};var u="opacity,"+function(e){return e.replace(/([A-Z])/g,function(e){return"-"+e.toLowerCase()})}(o);c.enableTransition=function(){if(!this.isTransitioning){var e=this.layout.options.transitionDuration;e="number"==typeof e?e+"ms":e,this.css({transitionProperty:u,transitionDuration:e,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(i,this,!1)}},c.onwebkitTransitionEnd=function(e){this.ontransitionend(e)},c.onotransitionend=function(e){this.ontransitionend(e)};var l={"-webkit-transform":"transform"};c.ontransitionend=function(e){if(e.target===this.element){var t=this._transn,n=l[e.propertyName]||e.propertyName;if(delete t.ingProperties[n],function(e){for(var t in e)return!1;return!0}(t.ingProperties)&&this.disableTransition(),n in t.clean&&(this.element.style[e.propertyName]="",delete t.clean[n]),n in t.onEnd)t.onEnd[n].call(this),delete t.onEnd[n];this.emitEvent("transitionEnd",[this])}},c.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(i,this,!1),this.isTransitioning=!1},c._removeStyles=function(e){var t={};for(var n in e)t[n]="";this.css(t)};var d={transitionProperty:"",transitionDuration:"",transitionDelay:""};return c.removeTransitionStyles=function(){this.css(d)},c.stagger=function(e){e=isNaN(e)?0:e,this.staggerDelay=e+"ms"},c.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},c.remove=function(){r&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),this.hide()):this.removeElem()},c.reveal=function(){delete this.isHidden,this.css({display:""});var e=this.layout.options,t={};t[this.getHideRevealTransitionEndProperty("visibleStyle")]=this.onRevealTransitionEnd,this.transition({from:e.hiddenStyle,to:e.visibleStyle,isCleaning:!0,onTransitionEnd:t})},c.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},c.getHideRevealTransitionEndProperty=function(e){var t=this.layout.options[e];if(t.opacity)return"opacity";for(var n in t)return n},c.hide=function(){this.isHidden=!0,this.css({display:""});var e=this.layout.options,t={};t[this.getHideRevealTransitionEndProperty("hiddenStyle")]=this.onHideTransitionEnd,this.transition({from:e.visibleStyle,to:e.hiddenStyle,isCleaning:!0,onTransitionEnd:t})},c.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},c.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},s})},function(e,t){e.exports="<ng-content></ng-content>"},function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n(0),o=n(39),i=n(8),a=n(328),s=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},u=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}},l=function(){function e(e,t,n){this._element=e,this._parent=t,this.eventService=n}var t,l,d;return e.prototype.ngAfterViewInit=function(){var e=this;this.subscription=this.eventService.subscribe(i.EventTypeEnum.GridItemLoadComplete,function(t){t.data===e.brickId&&setTimeout(function(){e._element.nativeElement.style.display="block",e._parent.add(e._element.nativeElement)},100)})},e.prototype.ngOnDestroy=function(){this._parent.remove(this._element.nativeElement),this.subscription.unsubscribe()},e.prototype.watchForHtmlChanges=function(){if(MutationObserver=window.MutationObserver||window.WebKitMutationObserver,MutationObserver){var e=this;new MutationObserver(function(t,n){e._parent.layout()}).observe(this._element.nativeElement,{subtree:!0,childList:!0})}},s([Object(r.Input)(),c("design:type",String)],e.prototype,"brickId",void 0),e=s([Object(r.Component)({selector:"[masonry-brick], masonry-brick",template:n(839)}),u(1,Object(r.Inject)(Object(r.forwardRef)(function(){return a.a}))),c("design:paramtypes",["function"==typeof(t=void 0!==r.ElementRef&&r.ElementRef)?t:Object,"function"==typeof(l=void 0!==a.a&&a.a)?l:Object,"function"==typeof(d=void 0!==o.a&&o.a)?d:Object])],e)}()},function(e,t){e.exports="<ng-content></ng-content>"},function(e,t,n){"use strict";n.d(t,"a",function(){return f});var r=n(0),o=n(23),i=n(11),a=n(29),s=n(156),c=n(54),u=n(61),l=n(8),d=n(213),p=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},h=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},f=function(){function e(e,t,n,r,o,i){this.myKfService=e,this.urlHelperService=t,this.route=n,this.singleSearchService=r,this.configService=o,this.authRedirectService=i,this.offset=0,this.pageSize=6,this.total=0}var t,f,m,g,y,v,b;return e.prototype.ngOnInit=function(){var e=this;this.authRedirectService.redirectedFromLogin$.subscribe(function(t){t&&(e.authRedirectService.setRedirectedStatus(!1),e.onCreateSearchAlert())})},e.prototype.ngOnChanges=function(e){var t;e.title&&void 0!==e.title&&(e.title.currentValue!==this.heading&&(this.heading=this.title,(null===(t=this.heading)||void 0===t?void 0:t.includes("No Exact Match. "))&&(this.heading=this.heading.replace("No Exact Match. ",""))),this.noResults&&(this.isSearchAlertVisible=!1,this.noResultsHeading=this.noResultsTitle)),e.location&&void 0!==e.location&&this.localLocation!==e.location.currentValue&&(this.localLocation=e.location.currentValue,this.enableSearchAlert())},e.prototype.getPageMax=function(){return this.total?Math.min(this.offset+this.pageSize,this.total):null},e.prototype.openSearchBar=function(){},e.prototype.onCreateSearchAlert=function(){this.myKfService.createSearchAlert(this.urlHelperService.getSearchUrlParams(this.route.
2snapshot.params))},e.prototype.enableSearchAlert=function(){var e=this,t=this.urlHelperService.getSearchUrlParams(this.route.snapshot.params);t.locationSlug&&t.locationSlug.startsWith(u.a)?this.isSearchAlertVisible=!1:this.configService.privacyRestricted()||this.myKfService.canCreateSearchAlert(this.location).then(function(t){e.isSearchAlertVisible=t})},p([Object(r.Input)(),h("design:type",Number)],e.prototype,"offset",void 0),p([Object(r.Input)(),h("design:type",Number)],e.prototype,"pageSize",void 0),p([Object(r.Input)(),h("design:type",Number)],e.prototype,"total",void 0),p([Object(r.Input)(),h("design:type",String)],e.prototype,"noResultsTitle",void 0),p([Object(r.Input)(),h("design:type",String)],e.prototype,"title",void 0),p([Object(r.Input)(),h("design:type",Boolean)],e.prototype,"noResults",void 0),p([Object(r.Input)(),h("design:type",Boolean)],e.prototype,"loading",void 0),p([Object(r.Input)(),h("design:type",Boolean)],e.prototype,"relaxedResults",void 0),p([Object(r.Input)(),h("design:type","function"==typeof(t=void 0!==l.NspLocation&&l.NspLocation.ILocationFull)?t:Object)],e.prototype,"location",void 0),e=p([Object(r.Component)({selector:"header-results-bar",template:n(841)}),h("design:paramtypes",["function"==typeof(f=void 0!==s.a&&s.a)?f:Object,"function"==typeof(m=void 0!==a.a&&a.a)?m:Object,"function"==typeof(g=void 0!==o.a&&o.a)?g:Object,"function"==typeof(y=void 0!==c.a&&c.a)?y:Object,"function"==typeof(v=void 0!==i.a&&i.a)?v:Object,"function"==typeof(b=void 0!==d.a&&d.a)?b:Object])],e)}()},function(e,t){e.exports='<div class="sub-header-container" *ngIf="!noResults">\r\n\t<div class="lead">\r\n\t\t<span class="results-info-range" *ngIf="!relaxedResults">\r\n\t\t\t{{ offset + 1 | number:\'1.0-0\' }} - {{ offset + pageSize > total ? (total | number:\'1.0-0\') : ((offset + pageSize) | number:\'1.0-0\') }} of\r\n\t\t</span>\r\n\t\t<h1>\r\n\t\t\t<span class="results-info">{{ total | number:\'1.0-0\' }}</span> {{heading}}\r\n\t\t</h1>\r\n\t\t<span class="ss-change" *ngIf="enableSingleSearch" (click)="openSearchBar()">(change)</span>\r\n\t</div>\r\n\t<button type="button"\r\n\t\t\tclass="email-alert"\r\n\t\t\t(click)="onCreateSearchAlert()"\r\n\t\t\t[attr.data-tc-clickEvent]="\'Create Alert-property_result\'"\r\n\t\t\t[attr.data-hidden]="!isSearchAlertVisible">\r\n\t\t<img src="/properties-resources/images/icons/results/bell-red.svg" width="24" height="24" alt="Bell icon" class="icon-bell">\r\n\t\t{{enableSingleSearch ? ("Create alerts"|translate) : (\'EMAIL_ALERT\'|translate)}}\r\n\t</button>\r\n</div>\r\n\r\n<div class="sub-header-container" *ngIf="noResults && enableSingleSearch">\r\n\t<div class="lead">\r\n\t\t<span>{{total}} results for </span>\r\n\t\t<h1>{{noResultsHeading}}</h1>\r\n\t\t<span class="ss-change" (click)="openSearchBar()">(change)</span>\r\n\t</div>\r\n</div>\r\n'},function(e,t,n){"use strict";n.d(t,"a",function(){return m});var r=n(0),o=n(23),i=n(11),a=n(29),s=n(32),c=n(116),u=n(39),l=n(67),d=n(54),p=n(8),h=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},f=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},m=function(){function e(e,t,n,o,i,a,s,c){this.translateService=e,this.urlHelperService=t,this.route=n,this.configService=o,this.storageService=i,this.eventService=a,this.singleSearchService=s,this.filterOptionsService=c,this.onUpdateFilters=new r.EventEmitter,this.enableSkyscraper=!1,this.enableSingleSearch=!1,this.isOrderByAllowed=!0,this.orderOptions=[],this.enableSkyscraper=this.configService.enableSkyscraper()}var t,m,g,y,v,b,S,E,C,T;return e.prototype.ngOnChanges=function(e){if(e.propertyResult&&void 0!==e.propertyResult&&e.propertyResult.currentValue){var t=e.propertyResult.currentValue;this.resultRelaxed!==t.Relaxed&&(this.resultRelaxed=t.Relaxed,this.setNearest(this.resultRelaxed)),this.properties!==t.Properties&&(this.properties=t.Properties,this.setSkyscraper(this.properties))}}
2,e.prototype.ngOnInit=function(){this.getSortByOptions()},e.prototype.setSkyscraper=function(e){void 0!==this.pageState.view&&(e.map(function(e){return e.Features.map(function(e){return e.Id})}).filter(function(e){return(e=e.filter(function(e){return 16657===e})).length}).length>0?(this.enableSkyscraper=!0,this.onSelectViewMode(p.DisplayTypeEnum.Skyscraper)):(this.enableSkyscraper=this.configService.enableSkyscraper(),this.onSelectViewMode(p.DisplayTypeEnum.Grid)))},e.prototype.getSortByOptions=function(){var e=this;this.filterOptionsService.getOrderingOptions(!1).then(function(t){e.orderOptions=t.Items,e.pageState.order||(e.pageState.order=t.Default)})},e.prototype.setNearest=function(e){if(e===p.NspPropertyResult.RelaxedEnum.Distance)this.orderOptions.push({Value:"nearest",Label:this.translateService.translate("Nearest")}),this.pageState.order="nearest",this.urlHelperService.changeDefaultSort(this.pageState.order);else{var t=this.orderOptions.findIndex(function(e){return"nearest"===e.Value});-1!==t&&(this.pageState.order="desdate",this.orderOptions.splice(t,1),this.urlHelperService.changeDefaultSort(this.configService.order().Default))}},e.prototype.onSelectSortBy=function(e){this.pageState.order=e,this.pageState.offset=0,this.updateParentSate()},e.prototype.onSelectViewMode=function(e){switch(this.pageState.viewMode=e,this.pageState.selectedMapPropertyId=null,this.pageState.viewMode){case p.DisplayTypeEnum.Grid:this.eventService.broadcast(p.EventTypeEnum.ReLayoutMasonry);break;case p.DisplayTypeEnum.List:case p.DisplayTypeEnum.Skyscraper:}},e.prototype.updateParentSate=function(){this.onUpdateFilters.emit()},h([Object(r.Input)(),f("design:type","function"==typeof(t=void 0!==p.NspPropertyResult&&p.NspPropertyResult.IPropertyResult)?t:Object)],e.prototype,"propertyResult",void 0),h([Object(r.Input)(),f("design:type","function"==typeof(m=void 0!==p.PropertyListState&&p.PropertyListState)?m:Object)],e.prototype,"pageState",void 0),h([Object(r.Output)(),f("design:type",Object)],e.prototype,"onUpdateFilters",void 0),e=h([Object(r.Component)({selector:"view-options-results-bar",template:n(843)}),f("design:paramtypes",["function"==typeof(g=void 0!==s.a&&s.a)?g:Object,"function"==typeof(y=void 0!==a.a&&a.a)?y:Object,"function"==typeof(v=void 0!==o.a&&o.a)?v:Object,"function"==typeof(b=void 0!==i.a&&i.a)?b:Object,"function"==typeof(S=void 0!==l.a&&l.a)?S:Object,"function"==typeof(E=void 0!==u.a&&u.a)?E:Object,"function"==typeof(C=void 0!==d.a&&d.a)?C:Object,"function"==typeof(T=void 0!==c.a&&c.a)?T:Object])],e)}()},function(e,t){e.exports='<section class="view">\r\n    <div *ngIf="!enableSingleSearch">\r\n        <div class="sort-by">\r\n            <div class="sortByLabel">{{ "SORT_BY" | translate }}: </div>\r\n            <div class="sortByValue">\r\n                <search-select [enabled]="isOrderByAllowed"\r\n                               [value]="pageState.order"\r\n                               [options]="orderOptions"\r\n                               (onSelect)="onSelectSortBy($event)"></search-select>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</section>\r\n'},function(e,t,n){"use strict";n.d(t,"a",function(){return f});var r=n(0),o=n(117),i=n(38),a=n(199),s=n(11),c=n(52),u=n(27),l=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},d=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){e.done?o(e.value):function(e){return e instanceof n?e:new n(function(t){t(e)})}(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())})},h=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},f=function(){function e(e,t,n,r){this.configService=e,this.authService=t,this.msalBroadcastService=n,this.logger=r}var t,n,f,m;return e.prototype.intercept=function(e,t){var n=this;
2return e.url.startsWith(this.configService.apiSecureBase())?(this.logger.log("[AuthInterceptor] Protected API request detected. Waiting for MSAL interaction to finish...",e.url),this.msalBroadcastService.inProgress$.pipe(Object(c.f)(function(e){return e===a.d.None}),Object(c.h)(),Object(c.p)(function(){return Object(i.k)(n.handleWithToken(e,t))}))):t.handle(e)},e.prototype.handleWithToken=function(e,t){return p(this,void 0,Promise,function(){var n,r,o,a,s;return h(this,function(c){switch(c.label){case 0:if(n=this.authService.instance.getActiveAccount(),r={scopes:[this.configService.azureb2c().Scope],redirectUri:window.location.origin+this.configService.azureb2c().RedirectUri,account:n},!n)return e.urlWithParams.includes("no_login_prompt=true")?(this.logger.warn("[AuthInterceptor] No active user account. NOT redirecting to login."),[2,i.b.toPromise()]):(this.logger.warn("[AuthInterceptor] No active user account. Redirecting to login..."),this.authService.loginRedirect(r),[2,i.b.toPromise()]);c.label=1;case 1:return c.trys.push([1,3,,4]),this.logger.log("[AuthInterceptor] Attempting to acquire token silently..."),[4,this.authService.acquireTokenSilent(r).toPromise()];case 2:return o=c.sent(),this.logger.log("[AuthInterceptor] Token acquired."),a=e.clone({setHeaders:{Authorization:"Bearer "+o.accessToken,"x-kf-appname":"KnightFrank.OneCms.Search"}}),this.logger.log("[AuthInterceptor] Forwarding request with auth header."),[2,t.handle(a).toPromise()];case 3:return s=c.sent(),this.logger.error("[AuthInterceptor] Silent token acquisition failed. Redirecting to login...",s),this.authService.loginRedirect(r),[2,i.b.toPromise()];case 4:return[2]}})})},e=l([Object(r.Injectable)(),d("design:paramtypes",["function"==typeof(t=void 0!==s.a&&s.a)?t:Object,"function"==typeof(n=void 0!==o.i&&o.i)?n:Object,"function"==typeof(f=void 0!==o.d&&o.d)?f:Object,"function"==typeof(m=void 0!==u.a&&u.a)?m:Object])],e)}()},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(0),o=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},i=function(){function e(){}return e=o([Object(r.Component)({selector:"app-redirect-page",template:""})],e)}()},function(e,t,n){var r,o,i;!function(a){if("object"==typeof e&&"object"==typeof e.exports){var s=a(null,t);void 0!==s&&(e.exports=s)}else o=[n,t],void 0===(i="function"==typeof(r=a)?r.apply(t,o):r)||(e.exports=i)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=void 0;t.default=["en",[["a","p"],["AM","PM"],n],[["AM","PM"],n,n],[["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"]],n,[["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"]],n,[["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}",n,"{1} 'at' {0}",n],[".",",",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","¤#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}]})},function(e,t,n){var r,o,i;!function(a){if("object"==typeof e&&"object"==typeof e.exports){var s=a(null,t);void 0!==s&&(e.exports=s)}else o=[n,t],void 0===(i="function"==typeof(r=a)?r.apply(t,o):r)||(e.exports=i)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=void 0;t.default=["pt",[["AM","PM"],n,n],n,[["D","S","T","Q","Q","S","S"],["dom.","seg.","ter.","qua.","qui.","sex.","sáb."],["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"],["dom.","seg.","ter.","qua.","qui.","sex.","sáb."]],n,[["J","F","M","A","M","J","J","A","S","O","N","D"],["jan.","fev.","mar.","abr.","mai.","jun.","jul.","ago.","set.","out.","nov.","dez."],["janeiro","fevereiro","març
2o","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]],n,[["a.C.","d.C."],n,["antes de Cristo","depois de Cristo"]],0,[6,0],["dd/MM/y","d 'de' MMM 'de' y","d 'de' MMMM 'de' y","EEEE, d 'de' MMMM 'de' y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}",n,n,n],[",",".",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","¤ #,##0.00","#E0"],"BRL","R$","Real brasileiro",{AUD:["AU$","$"],JPY:["JP¥","¥"],PTE:["Esc."],RON:[n,"L"],SYP:[n,"S£"],THB:["฿"],TWD:["NT$"],USD:["US$","$"]},"ltr",function(e){var t=Math.floor(Math.abs(e));return t===Math.floor(t)&&t>=0&&t<=1?1:5}]})},function(e,t,n){var r,o,i;!function(a){if("object"==typeof e&&"object"==typeof e.exports){var s=a(null,t);void 0!==s&&(e.exports=s)}else o=[n,t],void 0===(i="function"==typeof(r=a)?r.apply(t,o):r)||(e.exports=i)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=void 0;t.default=["tr",[["öö","ös"],["ÖÖ","ÖS"],n],[["ÖÖ","ÖS"],n,n],[["P","P","S","Ç","P","C","C"],["Paz","Pzt","Sal","Çar","Per","Cum","Cmt"],["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"],["Pa","Pt","Sa","Ça","Pe","Cu","Ct"]],n,[["O","Ş","M","N","M","H","T","A","E","E","K","A"],["Oca","Şub","Mar","Nis","May","Haz","Tem","Ağu","Eyl","Eki","Kas","Ara"],["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"]],n,[["MÖ","MS"],n,["Milattan Önce","Milattan Sonra"]],1,[6,0],["d.MM.y","d MMM y","d MMMM y","d MMMM y EEEE"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}",n,n,n],[",",".",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","%#,##0","¤#,##0.00","#E0"],"TRY","₺","Türk Lirası",{AUD:["AU$","$"],RON:[n,"L"],THB:["฿"],TRY:["₺"],TWD:["NT$"]},"ltr",function(e){return 1===e?1:5}]})},function(e,t,n){var r,o,i;!function(a){if("object"==typeof e&&"object"==typeof e.exports){var s=a(null,t);void 0!==s&&(e.exports=s)}else o=[n,t],void 0===(i="function"==typeof(r=a)?r.apply(t,o):r)||(e.exports=i)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=void 0;t.default=["bm",[["AM","PM"],n,n],n,[["K","N","T","A","A","J","S"],["kar","ntɛ","tar","ara","ala","jum","sib"],["kari","ntɛnɛ","tarata","araba","alamisa","juma","sibiri"],["kar","ntɛ","tar","ara","ala","jum","sib"]],n,[["Z","F","M","A","M","Z","Z","U","S","Ɔ","N","D"],["zan","feb","mar","awi","mɛ","zuw","zul","uti","sɛt","ɔku","now","des"],["zanwuye","feburuye","marisi","awirili","mɛ","zuwɛn","zuluye","uti","sɛtanburu","ɔkutɔburu","nowanburu","desanburu"]],n,[["J.-C. ɲɛ","ni J.-C."],n,["jezu krisiti ɲɛ","jezu krisiti minkɛ"]],1,[6,0],["d/M/y","d MMM, y","d MMMM y","EEEE d MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}",n,n,n],[".",",",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","¤#,##0.00","#E0"],"XOF","CFA","sefa Fraŋ (BCEAO)",{JPY:["JP¥","¥"],USD:["US$","$"]},"ltr",function(e){return 5}]})},function(e,t,n){var r,o,i;!function(a){if("object"==typeof e&&"object"==typeof e.exports){var s=a(null,t);void 0!==s&&(e.exports=s)}else o=[n,t],void 0===(i="function"==typeof(r=a)?r.apply(t,o):r)||(e.exports=i)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=void 0;t.default=["es",[["a. m.","p. m."],n,n],n,[["D","L","M","X","J","V","S"],["dom.","lun.","mar.","mié.","jue.","vie.","sáb."],["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],["DO","LU","MA","MI","JU","VI","SA"]],n,[["E","F","M","A","M","J","J","A","S","O","N","D"],["ene.","feb.","mar.","abr.","may.","jun.","jul.","ago.","sept.","oct.","nov.","dic."],["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]],n,[["a. C.","d. C."],n,["antes de Cristo","después de Cristo"]],1,[6,0],["d/M/yy","d MMM y","d 'de' MMMM 'de' y","EEEE, d 'de' MMMM 'de' y"],["H:mm","H:mm:ss","H:mm:ss z","H:mm:ss (zzzz)"],["{1} {0}",n,"{1}, {0}",n],[",",".",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0 %","#,##0.00 ¤","#E0"],"EUR","€","euro",{AUD:[n,"$"],BRL:[n,"R$"],CNY:[n,"¥"],EGP:[],ESP:["₧"],GBP:[n,"£"],HKD:[n,"$"],ILS:[n,"₪"],INR:[n,"₹"],JPY:[n,"¥"],KRW:[n,"₩"],MXN:[n,"$"],NZD:[n,"$"],RON:[n,"L"],THB:["฿"],TWD:[n,"NT$"],USD:["US$","$"],XAF:[],XCD:[n,"$"],XOF:[]},"ltr",function(e){return 1===e?1:5}]})},function(e,t,n){var r,o,i;
2!function(a){if("object"==typeof e&&"object"==typeof e.exports){var s=a(null,t);void 0!==s&&(e.exports=s)}else o=[n,t],void 0===(i="function"==typeof(r=a)?r.apply(t,o):r)||(e.exports=i)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=void 0;t.default=["fr",[["AM","PM"],n,n],n,[["D","L","M","M","J","V","S"],["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],["di","lu","ma","me","je","ve","sa"]],n,[["J","F","M","A","M","J","J","A","S","O","N","D"],["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]],n,[["av. J.-C.","ap. J.-C."],n,["avant Jésus-Christ","après Jésus-Christ"]],1,[6,0],["dd/MM/y","d MMM y","d MMMM y","EEEE d MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}","{1} 'à' {0}",n,n],[","," ",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0 %","#,##0.00 ¤","#E0"],"EUR","€","euro",{ARS:["$AR","$"],AUD:["$AU","$"],BEF:["FB"],BMD:["$BM","$"],BND:["$BN","$"],BZD:["$BZ","$"],CAD:["$CA","$"],CLP:["$CL","$"],CNY:[n,"¥"],COP:["$CO","$"],CYP:["£CY"],EGP:[n,"£E"],FJD:["$FJ","$"],FKP:["£FK","£"],FRF:["F"],GBP:["£GB","£"],GIP:["£GI","£"],HKD:[n,"$"],IEP:["£IE"],ILP:["£IL"],ITL:["₤IT"],JPY:[n,"¥"],KMF:[n,"FC"],LBP:["£LB","£L"],MTP:["£MT"],MXN:["$MX","$"],NAD:["$NA","$"],NIO:[n,"$C"],NZD:["$NZ","$"],RHD:["$RH"],RON:[n,"L"],RWF:[n,"FR"],SBD:["$SB","$"],SGD:["$SG","$"],SRD:["$SR","$"],TOP:[n,"$T"],TTD:["$TT","$"],TWD:[n,"NT$"],USD:["$US","$"],UYU:["$UY","$"],WST:["$WS"],XCD:[n,"$"],XPF:["FCFP"],ZMW:[n,"Kw"]},"ltr",function(e){var t=Math.floor(Math.abs(e));return 0===t||1===t?1:5}]})},function(e,t,n){var r,o,i;!function(a){if("object"==typeof e&&"object"==typeof e.exports){var s=a(null,t);void 0!==s&&(e.exports=s)}else o=[n,t],void 0===(i="function"==typeof(r=a)?r.apply(t,o):r)||(e.exports=i)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=void 0;t.default=["fi",[["ap.","ip."],n,n],n,[["S","M","T","K","T","P","L"],["su","ma","ti","ke","to","pe","la"],["sunnuntaina","maanantaina","tiistaina","keskiviikkona","torstaina","perjantaina","lauantaina"],["su","ma","ti","ke","to","pe","la"]],[["S","M","T","K","T","P","L"],["su","ma","ti","ke","to","pe","la"],["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai"],["su","ma","ti","ke","to","pe","la"]],[["T","H","M","H","T","K","H","E","S","L","M","J"],["tammik.","helmik.","maalisk.","huhtik.","toukok.","kesäk.","heinäk.","elok.","syysk.","lokak.","marrask.","jouluk."],["tammikuuta","helmikuuta","maaliskuuta","huhtikuuta","toukokuuta","kesäkuuta","heinäkuuta","elokuuta","syyskuuta","lokakuuta","marraskuuta","joulukuuta"]],[["T","H","M","H","T","K","H","E","S","L","M","J"],["tammi","helmi","maalis","huhti","touko","kesä","heinä","elo","syys","loka","marras","joulu"],["tammikuu","helmikuu","maaliskuu","huhtikuu","toukokuu","kesäkuu","heinäkuu","elokuu","syyskuu","lokakuu","marraskuu","joulukuu"]],[["eKr","jKr"],["eKr.","jKr."],["ennen Kristuksen syntymää","jälkeen Kristuksen syntymän"]],1,[6,0],["d.M.y",n,"d. MMMM y","cccc d. MMMM y"],["H.mm","H.mm.ss","H.mm.ss z","H.mm.ss zzzz"],["{1} {0}","{1} 'klo' {0}",n,n],[","," ",";","%","+","−","E","×","‰","∞","epäluku","."],["#,##0.###","#,##0 %","#,##0.00 ¤","#E0"],"EUR","€","euro",{AOA:[],ARS:[],AUD:[],BAM:[],BBD:[],BDT:[],BMD:[],BND:[],BOB:[],BRL:[],BSD:[],BWP:[],BYN:[],BZD:[],CAD:[],CLP:[],CNY:[],COP:[],CRC:[],CUC:[],CUP:[],CZK:[],DKK:[],DOP:[],EGP:[],ESP:[],FIM:["mk"],FJD:[],FKP:[],GEL:[],GIP:[],GNF:[],GTQ:[],GYD:[],HKD:[],HNL:[],HRK:[],HUF:[],IDR:[],ILS:[],INR:[],ISK:[],JMD:[],KHR:[],KMF:[],KPW:[],KRW:[],KYD:[],KZT:[],LAK:[],LBP:[],LKR:[],LRD:[],LTL:[],LVL:[],MGA:[],MMK:[],MNT:[],MUR:[],MXN:[],MYR:[],NAD:[],NGN:[],NIO:[],NOK:[],NPR:[],NZD:[],PHP:[],PKR:[],PLN:[],PYG:[],RON:[],RUR:[],RWF:[],SBD:[],SEK:[],SGD:[],SHP:[],SRD:[],SSP:[],STN:[n,"STD"],SYP:[],THB:[],TOP:[],TRY:[],TTD:[],TWD:[],UAH:[],UYU:[],VEF:[],VND:[],XCD:[],XPF:[],XXX:[],ZAR:[],ZMW:[]},"ltr",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}]})},function(e,t,n){var r,o,i;
2!function(a){if("object"==typeof e&&"object"==typeof e.exports){var s=a(null,t);void 0!==s&&(e.exports=s)}else o=[n,t],void 0===(i="function"==typeof(r=a)?r.apply(t,o):r)||(e.exports=i)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=void 0;t.default=["zh-Hans",[["上午","下午"],n,n],n,[["日","一","二","三","四","五","六"],["周日","周一","周二","周三","周四","周五","周六"],["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],["周日","周一","周二","周三","周四","周五","周六"]],n,[["1","2","3","4","5","6","7","8","9","10","11","12"],["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]],n,[["公元前","公元"],n,n],0,[6,0],["y/M/d","y年M月d日",n,"y年M月d日EEEE"],["ah:mm","ah:mm:ss","z ah:mm:ss","zzzz ah:mm:ss"],["{1} {0}",n,n,n],[".",",",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","¤#,##0.00","#E0"],"CNY","¥","人民币",{AUD:["AU$","$"],CNY:["¥"],ILR:["ILS"],JPY:["JP¥","¥"],KRW:["₩","₩"],TWD:["NT$"],USD:["US$","$"],XXX:[]},"ltr",function(e){return 5}]})},function(e,t,n){var r,o,i;!function(a){if("object"==typeof e&&"object"==typeof e.exports){var s=a(null,t);void 0!==s&&(e.exports=s)}else o=[n,t],void 0===(i="function"==typeof(r=a)?r.apply(t,o):r)||(e.exports=i)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=void 0;t.default=["zh-Hant",[["上午","下午"],n,n],n,[["日","一","二","三","四","五","六"],["週日","週一","週二","週三","週四","週五","週六"],["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],["日","一","二","三","四","五","六"]],n,[["1","2","3","4","5","6","7","8","9","10","11","12"],["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],n],n,[["西元前","西元"],n,n],0,[6,0],["y/M/d","y年M月d日",n,"y年M月d日 EEEE"],["ah:mm","ah:mm:ss","ah:mm:ss [z]","ah:mm:ss [zzzz]"],["{1} {0}",n,n,n],[".",",",";","%","+","-","E","×","‰","∞","非數值",":"],["#,##0.###","#,##0%","¤#,##0.00","#E0"],"TWD","$","新台幣",{AUD:["AU$","$"],KRW:["₩","₩"],RON:[n,"L"],TWD:["$"],USD:["US$","$"],XXX:[]},"ltr",function(e){return 5}]})},function(e,t,n){var r,o,i;!function(a){if("object"==typeof e&&"object"==typeof e.exports){var s=a(null,t);void 0!==s&&(e.exports=s)}else o=[n,t],void 0===(i="function"==typeof(r=a)?r.apply(t,o):r)||(e.exports=i)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=void 0;t.default=["cs",[["dop.","odp."],n,n],n,[["N","P","Ú","S","Č","P","S"],["ne","po","út","st","čt","pá","so"],["neděle","pondělí","úterý","středa","čtvrtek","pátek","sobota"],["ne","po","út","st","čt","pá","so"]],n,[["1","2","3","4","5","6","7","8","9","10","11","12"],["led","úno","bře","dub","kvě","čvn","čvc","srp","zář","říj","lis","pro"],["ledna","února","března","dubna","května","června","července","srpna","září","října","listopadu","prosince"]],[["1","2","3","4","5","6","7","8","9","10","11","12"],["led","úno","bře","dub","kvě","čvn","čvc","srp","zář","říj","lis","pro"],["leden","únor","březen","duben","květen","červen","červenec","srpen","září","říjen","listopad","prosinec"]],[["př.n.l.","n.l."],["př. n. l.","n. l."],["před naším letopočtem","našeho letopočtu"]],1,[6,0],["dd.MM.yy","d. M. y","d. MMMM y","EEEE d. MMMM y"],["H:mm","H:mm:ss","H:mm:ss z","H:mm:ss zzzz"],["{1} {0}",n,n,n],[","," ",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0 %","#,##0.00 ¤","#E0"],"CZK","Kč","česká koruna",{AUD:["AU$","$"],CSK:["Kčs"],CZK:["Kč"],ILS:[n,"₪"],INR:[n,"₹"],JPY:["JP¥","¥"],RON:[n,"L"],TWD:["NT$"],USD:["US$","$"],VND:[n,"₫"],XEU:["ECU"],XXX:[]},"ltr",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:t===Math.floor(t)&&t>=2&&t<=4&&0===n?3:0!==n?4:5}]})},function(e,t,n){var r,o,i;
2!function(a){if("object"==typeof e&&"object"==typeof e.exports){var s=a(null,t);void 0!==s&&(e.exports=s)}else o=[n,t],void 0===(i="function"==typeof(r=a)?r.apply(t,o):r)||(e.exports=i)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=void 0;t.default=["da",[["a","p"],["AM","PM"],n],[["AM","PM"],n,n],[["S","M","T","O","T","F","L"],["søn.","man.","tir.","ons.","tor.","fre.","lør."],["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"],["sø","ma","ti","on","to","fr","lø"]],[["S","M","T","O","T","F","L"],["søn","man","tir","ons","tor","fre","lør"],["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"],["sø","ma","ti","on","to","fr","lø"]],[["J","F","M","A","M","J","J","A","S","O","N","D"],["jan.","feb.","mar.","apr.","maj","jun.","jul.","aug.","sep.","okt.","nov.","dec."],["januar","februar","marts","april","maj","juni","juli","august","september","oktober","november","december"]],n,[["fKr","eKr"],["f.Kr.","e.Kr."],n],1,[6,0],["dd.MM.y","d. MMM y","d. MMMM y","EEEE 'den' d. MMMM y"],["HH.mm","HH.mm.ss","HH.mm.ss z","HH.mm.ss zzzz"],["{1} {0}",n,"{1} 'kl'. {0}",n],[",",".",";","%","+","-","E","×","‰","∞","NaN","."],["#,##0.###","#,##0 %","#,##0.00 ¤","#E0"],"DKK","kr.","dansk krone",{AUD:["AU$","$"],DKK:["kr."],ISK:[n,"kr."],JPY:["JP¥","¥"],NOK:[n,"kr."],RON:[n,"L"],SEK:[n,"kr."],THB:["฿"],TWD:["NT$"],USD:["US$","$"]},"ltr",function(e){var t=Math.floor(Math.abs(e)),n=parseInt(e.toString().replace(/^[^.]*\.?|0+$/g,""),10)||0;return 1===e||0!==n&&(0===t||1===t)?1:5}]})},function(e,t,n){var r,o,i;!function(a){if("object"==typeof e&&"object"==typeof e.exports){var s=a(null,t);void 0!==s&&(e.exports=s)}else o=[n,t],void 0===(i="function"==typeof(r=a)?r.apply(t,o):r)||(e.exports=i)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=void 0;t.default=["hu",[["de.","du."],n,n],n,[["V","H","K","Sz","Cs","P","Sz"],["V","H","K","Sze","Cs","P","Szo"],["vasárnap","hétfő","kedd","szerda","csütörtök","péntek","szombat"],["V","H","K","Sze","Cs","P","Szo"]],n,[["J","F","M","Á","M","J","J","A","Sz","O","N","D"],["jan.","febr.","márc.","ápr.","máj.","jún.","júl.","aug.","szept.","okt.","nov.","dec."],["január","február","március","április","május","június","július","augusztus","szeptember","október","november","december"]],n,[["ie.","isz."],["i. e.","i. sz."],["Krisztus előtt","időszámításunk szerint"]],1,[6,0],["y. MM. dd.","y. MMM d.","y. MMMM d.","y. MMMM d., EEEE"],["H:mm","H:mm:ss","H:mm:ss z","H:mm:ss zzzz"],["{1} {0}",n,n,n],[","," ",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","#,##0.00 ¤","#E0"],"HUF","Ft","magyar forint",{AUD:[n,"$"],BRL:[n,"R$"],CAD:[n,"$"],CNY:[n,"¥"],EUR:[n,"€"],GBP:[n,"£"],HKD:[n,"$"],HUF:["Ft"],ILS:[n,"₪"],INR:[n,"₹"],KRW:[n,"₩"],MXN:[n,"$"],NZD:[n,"$"],TWD:[n,"NT$"],USD:[n,"$"],VND:[n,"₫"],XCD:[n,"$"]},"ltr",function(e){return 1===e?1:5}]})},function(e,t,n){var r,o,i;!function(a){if("object"==typeof e&&"object"==typeof e.exports){var s=a(null,t);void 0!==s&&(e.exports=s)}else o=[n,t],void 0===(i="function"==typeof(r=a)?r.apply(t,o):r)||(e.exports=i)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=void 0;t.default=["id",[["AM","PM"],n,n],n,[["M","S","S","R","K","J","S"],["Min","Sen","Sel","Rab","Kam","Jum","Sab"],["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"],["Min","Sen","Sel","Rab","Kam","Jum","Sab"]],n,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Agu","Sep","Okt","Nov","Des"],["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"]],n,[["SM","M"],n,["Sebelum Masehi","Masehi"]],0,[6,0],["dd/MM/yy","d MMM y","d MMMM y","EEEE, dd MMMM y"],["HH.mm","HH.mm.ss","HH.mm.ss z","HH.mm.ss zzzz"],["{1} {0}",n,n,n],[",",".",";","%","+","-","E","×","‰","∞","NaN","."],["#,##0.###","#,##0%","¤#,##0.00","#E0"],"IDR","Rp","Rupiah Indonesia",{AUD:["AU$","$"],IDR:["Rp"],INR:["Rs","₹"],JPY:["JP¥","¥"],THB:["฿"],TWD:["NT$"],USD:["US$","$"],XXX:[]},"ltr",function(e){return 5}]})},function(e,t,n){var r,o,i;
2!function(a){if("object"==typeof e&&"object"==typeof e.exports){var s=a(null,t);void 0!==s&&(e.exports=s)}else o=[n,t],void 0===(i="function"==typeof(r=a)?r.apply(t,o):r)||(e.exports=i)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=void 0;t.default=["km",[["a","p"],["AM","PM"],n],[["AM","PM"],n,n],[["អ","ច","អ","ព","ព","ស","ស"],["អាទិត្យ","ចន្ទ","អង្គារ","ពុធ","ព្រហ","សុក្រ","សៅរ៍"],["អាទិត្យ","ច័ន្ទ","អង្គារ","ពុធ","ព្រហស្បតិ៍","សុក្រ","សៅរ៍"],["អា","ច","អ","ពុ","ព្រ","សុ","ស"]],[["អ","ច","អ","ព","ព","ស","ស"],["អាទិត្យ","ចន្ទ","អង្គារ","ពុធ","ព្រហ","សុក្រ","សៅរ៍"],["អាទិត្យ","ចន្ទ","អង្គារ","ពុធ","ព្រហស្បតិ៍","សុក្រ","សៅរ៍"],["អា","ច","អ","ពុ","ព្រ","សុ","ស"]],[["ម","ក","ម","ម","ឧ","ម","ក","ស","ក","ត","វ","ធ"],["មករា","កុម្ភៈ","មីនា","មេសា","ឧសភា","មិថុនា","កក្កដា","សីហា","កញ្ញា","តុលា","វិច្ឆិកា","ធ្នូ"],n],n,[["មុន គ.ស.","គ.ស."],n,["មុន​គ្រិស្តសករាជ","គ្រិស្តសករាជ"]],0,[6,0],["d/M/yy","d MMM y","d MMMM y","EEEE d MMMM y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",n,"{1} នៅ​ម៉ោង {0}",n],[",",".",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","#,##0.00¤","#E0"],"KHR","៛","រៀល​កម្ពុជា",{JPY:["JP¥","¥"],KHR:["៛"],THB:["฿"],TWD:["NT$"]},"ltr",function(e){return 5}]})},function(e,t,n){var r,o,i;!function(a){if("object"==typeof e&&"object"==typeof e.exports){var s=a(null,t);void 0!==s&&(e.exports=s)}else o=[n,t],void 0===(i="function"==typeof(r=a)?r.apply(t,o):r)||(e.exports=i)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=void 0;t.default=["ko",[["AM","PM"],n,["오전","오후"]],n,[["일","월","화","수","목","금","토"],n,["일요일","월요일","화요일","수요일","목요일","금요일","토요일"],["일","월","화","수","목","금","토"]],n,[["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],n,n],n,[["BC","AD"],n,["기원전","서기"]],0,[6,0],["yy. M. d.","y. M. d.","y년 M월 d일","y년 M월 d일 EEEE"],["a h:mm","a h:mm:ss","a h시 m분 s초 z","a h시 m분 s초 zzzz"],["{1} {0}",n,n,n],[".",",",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","¤#,##0.00","#E0"],"KRW","₩","대한민국 원",{AUD:["AU$","$"],JPY:["JP¥","¥"],RON:[n,"L"],TWD:["NT$"],USD:["US$","$"]},"ltr",function(e){return 5}]})},function(e,t,n){var r,o,i;!function(a){if("object"==typeof e&&"object"==typeof e.exports){var s=a(null,t);void 0!==s&&(e.exports=s)}else o=[n,t],void 0===(i="function"==typeof(r=a)?r.apply(t,o):r)||(e.exports=i)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=void 0;t.default=["ja",[["午前","午後"],n,n],n,[["日","月","火","水","木","金","土"],n,["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"],["日","月","火","水","木","金","土"]],n,[["1","2","3","4","5","6","7","8","9","10","11","12"],["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],n],n,[["BC","AD"],["紀元前","西暦"],n],0,[6,0],["y/MM/dd",n,"y年M月d日","y年M月d日EEEE"],["H:mm","H:mm:ss","H:mm:ss z","H時mm分ss秒 zzzz"],["{1} {0}",n,n,n],[".",",",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","¤#,##0.00","#E0"],"JPY","¥","日本円",{CNY:["元","¥"],JPY:["¥"],RON:[n,"レイ"],XXX:[]},"ltr",function(e){return 5}]})},function(e,t,n){var r,o,i;!function(a){if("object"==typeof e&&"object"==typeof e.exports){var s=a(null,t);void 0!==s&&(e.exports=s)}else o=[n,t],void 0===(i="function"==typeof(r=a)?r.apply(t,o):r)||(e.exports=i)}(function(e,t){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0});var n=void 0;t.default=["kw",[["a.m.","p.m."],n,n],n,[["S","M","T","W","T","F","S"],["Sul","Lun","Mth","Mhr","Yow","Gwe","Sad"],["dy Sul","dy Lun","dy Meurth","dy Merher","dy Yow","dy Gwener","dy Sadorn"],["Sul","Lun","Mth","Mhr","Yow","Gwe","Sad"]],n,[["1","2","3","4","5","6","7","8","9","10","11","12"],["Gen","Hwe","Meu","Ebr","Me","Met","Gor","Est","Gwn","Hed","Du","Kev"],["mis Genver","mis Hwevrer","mis Meurth","mis Ebrel","mis Me","mis Metheven","mis Gortheren","mis Est","mis Gwynngala","mis Hedra","mis Du","mis Kevardhu"]],n,[["RC","AD"],n,n],1,[6,0],["y-MM-dd","y MMM d","y MMMM d","y MMMM d, EEEE"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}",n,n,n],[".",",",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","¤#,##0.00","#E0"],"GBP","£","GBP",{JPY:["JP¥","¥"],USD:["US$","$"]},"ltr",function(e){return 1===e?1:2===e?2:5}]})},function(e,t,n){var r,o,i;!function(a){if("object"==typeof e&&"object"==typeof e.exports){var s=a(null,t);void 0!==s&&(e.exports=s)}else o=[n,t],void 0===(i="function"==typeof(r=a)?r.apply(t,o):r)||(e.exports=i)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=void 0;t.default=["ky",[["тң","тк"],n,["таңкы","түштөн кийинки"]],n,[["Ж","Д","Ш","Ш","Б","Ж","И"],["жек.","дүй.","шейш.","шарш.","бейш.","жума","ишм."],["жекшемби","дүйшөмбү","шейшемби","шаршемби","бейшемби","жума","ишемби"],["жш.","дш.","шш.","шр.","бш.","жм.","иш."]],n,[["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],["янв.","фев.","мар.","апр.","май","июн.","июл.","авг.","сен.","окт.","ноя.","дек."],["январь","февраль","март","апрель","май","июнь","июль","август","сентябрь","октябрь","ноябрь","декабрь"]],[["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],["Янв","Фев","Мар","Апр","Май","Июн","Июл","Авг","Сен","Окт","Ноя","Дек"],["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"]],[["б.з.ч.","б.з."],n,["биздин заманга чейин","биздин заман"]],1,[6,0],["d/M/yy","y-'ж'., d-MMM","y-'ж'., d-MMMM","y-'ж'., d-MMMM, EEEE"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}",n,n,n],[","," ",";","%","+","-","E","×","‰","∞","сан эмес",":"],["#,##0.###","#,##0%","#,##0.00 ¤","#E0"],"KGS","сом","Кыргызстан сому",{AUD:[n,"$"],BMD:[n,"BD$"],BRL:[n,"R$"],BSD:[n,"B$"],BZD:[n,"BZ$"],CAD:[n,"C$"],DOP:[n,"RD$"],EGP:[n,"LE"],GBP:[n,"£"],HKD:[n,"HK$"],HRK:[n,"Kn"],ILS:[n,"₪"],INR:[n,"₹"],JMD:[n,"J$"],JPY:["JP¥","¥"],KGS:["сом"],KRW:[n,"₩"],MXN:[n,"$"],NZD:[n,"$"],THB:["฿"],TTD:[n,"TT$"],TWD:[n,"NT$"],USD:[n,"$"],XCD:[n,"$"]},"ltr",function(e){return 1===e?1:5}]})},function(e,t,n){var r,o,i;!function(a){if("object"==typeof e&&"object"==typeof e.exports){var s=a(null,t);void 0!==s&&(e.exports=s)}else o=[n,t],void 0===(i="function"==typeof(r=a)?r.apply(t,o):r)||(e.exports=i)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=void 0;t.default=["my",[["နံနက်","ညနေ"],n,n],n,[["တ","တ","အ","ဗ","က","သ","စ"],["တနင်္ဂနွေ","တနင်္လာ","အင်္ဂါ","ဗုဒ္ဓဟူး","ကြာသပတေး","သောကြာ","စနေ"],n,n],n,[["ဇ","ဖ","မ","ဧ","မ","ဇ","ဇ","ဩ","စ","အ","န","ဒ"],["ဇန်","ဖေ","မတ်","ဧ","မေ","ဇွန်","ဇူ","ဩ","စက်","အောက်","နို","ဒီ"],["ဇန်နဝါရီ","ဖေဖော်ဝါရီ","မတ်","ဧပြီ","မေ","ဇွန်","ဇူလိုင်","ဩဂုတ်","စက်တင်ဘာ","အောက်တိုဘာ","နိုဝင်ဘာ","ဒီဇင်ဘာ"]],n,[["ဘီစီ","အဒေီ"],n,["ခရစ်တော် မပေါ်မီနှစ်","ခရစ်နှစ်"]],0,[6,0],["dd-MM-yy","y၊ MMM d","y၊ d MMMM","y၊ MMMM d၊ EEEE"],["B H:mm","B HH:mm:ss","z HH:mm:ss","zzzz HH:mm:ss"],["{1} {0}",n,n,n],[".",",",";","%","+","-","E","×","‰","∞","ဂဏန်းမဟုတ်သော",":"],["#,##0.###","#,##0%","#,##0.00 ¤","#E0"],"MMK","K","မြန်မာ ကျပ်",{ANG:["NAf"],AWG:["Afl"],BBD:[n,"Bds$"],BSD:[n,"B$"],HTG:["G"],JPY:["JP¥","¥"],MMK:["K"],PAB:["B/."],THB:["฿"],TTD:["TT$","$"],USD:["US$","$"]},"ltr",function(e){return 5}]})},function(e,t,n){var r,o,i;
2!function(a){if("object"==typeof e&&"object"==typeof e.exports){var s=a(null,t);void 0!==s&&(e.exports=s)}else o=[n,t],void 0===(i="function"==typeof(r=a)?r.apply(t,o):r)||(e.exports=i)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=void 0;t.default=["nb",[["a","p"],["a.m.","p.m."],n],[["a.m.","p.m."],n,n],[["S","M","T","O","T","F","L"],["søn.","man.","tir.","ons.","tor.","fre.","lør."],["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"],["sø.","ma.","ti.","on.","to.","fr.","lø."]],n,[["J","F","M","A","M","J","J","A","S","O","N","D"],["jan.","feb.","mar.","apr.","mai","jun.","jul.","aug.","sep.","okt.","nov.","des."],["januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember"]],[["J","F","M","A","M","J","J","A","S","O","N","D"],["jan","feb","mar","apr","mai","jun","jul","aug","sep","okt","nov","des"],["januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember"]],[["f.Kr.","e.Kr."],n,["før Kristus","etter Kristus"]],1,[6,0],["dd.MM.y","d. MMM y","d. MMMM y","EEEE d. MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1}, {0}",n,"{1} 'kl'. {0}","{1} {0}"],[","," ",";","%","+","−","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0 %","¤ #,##0.00","#E0"],"NOK","kr","norske kroner",{AUD:[n,"$"],BRL:[n,"R$"],CAD:[n,"$"],CNY:[n,"¥"],HKD:[n,"$"],ILS:[n,"₪"],INR:[n,"₹"],JPY:[n,"¥"],KRW:[n,"₩"],MXN:[n,"$"],NOK:["kr"],NZD:[n,"$"],RON:[n,"L"],TWD:[n,"NT$"],USD:[n,"$"],VND:[n,"₫"],XAF:[],XCD:[n,"$"],XPF:[],XXX:[]},"ltr",function(e){return 1===e?1:5}]})},function(e,t,n){var r,o,i;!function(a){if("object"==typeof e&&"object"==typeof e.exports){var s=a(null,t);void 0!==s&&(e.exports=s)}else o=[n,t],void 0===(i="function"==typeof(r=a)?r.apply(t,o):r)||(e.exports=i)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=void 0;t.default=["om",[["WD","WB"],n,n],n,[["S","M","T","W","T","F","S"],["Dil","Wix","Qib","Rob","Kam","Jim","San"],["Dilbata","Wiixata","Qibxata","Roobii","Kamiisa","Jimaata","Sanbata"],["Dil","Wix","Qib","Rob","Kam","Jim","San"]],n,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Ama","Gur","Bit","Elb","Cam","Wax","Ado","Hag","Ful","Onk","Sad","Mud"],["Amajjii","Guraandhala","Bitooteessa","Elba","Caamsa","Waxabajjii","Adooleessa","Hagayya","Fuulbana","Onkololeessa","Sadaasa","Muddee"]],n,[["BCE","CE"],n,["Dheengadda Jeesu","CE"]],0,[6,0],["dd/MM/yy","dd-MMM-y","dd MMMM y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1} {0}",n,n,n],[".",",",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","¤#,##0.00","#E0"],"ETB","Br","Itoophiyaa Birrii",{ETB:["Br"],JPY:["JP¥","¥"],USD:["US$","$"]},"ltr",function(e){return 1===e?1:5}]})},function(e,t,n){var r,o,i;!function(a){if("object"==typeof e&&"object"==typeof e.exports){var s=a(null,t);void 0!==s&&(e.exports=s)}else o=[n,t],void 0===(i="function"==typeof(r=a)?r.apply(t,o):r)||(e.exports=i)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=void 0;t.default=["pl",[["a","p"],["AM","PM"],n],n,[["n","p","w","ś","c","p","s"],["niedz.","pon.","wt.","śr.","czw.","pt.","sob."],["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"],["nie","pon","wto","śro","czw","pią","sob"]],[["N","P","W","Ś","C","P","S"],["niedz.","pon.","wt.","śr.","czw.","pt.","sob."],["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"],["nie","pon","wto","śro","czw","pią","sob"]],[["s","l","m","k","m","c","l","s","w","p","l","g"],["sty","lut","mar","kwi","maj","cze","lip","sie","wrz","paź","lis","gru"],["stycznia","lutego","marca","kwietnia","maja","czerwca","lipca","sierpnia","września","października","listopada","grudnia"]],[["S","L","M","K","M","C","L","S","W","P","L","G"],["sty","lut","mar","kwi","maj","cze","lip","sie","wrz","paź","lis","gru"],["styczeń","luty","marzec","kwiecień","maj","czerwiec","lipiec","sierpień","wrzesień","październik","listopad","grudzień"]],[["p.n.e.","n.e."],n,["przed naszą erą","
2naszej ery"]],1,[6,0],["dd.MM.y","d MMM y","d MMMM y","EEEE, d MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1}, {0}",n,"{1} {0}",n],[","," ",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","#,##0.00 ¤","#E0"],"PLN","zł","złoty polski",{AUD:[n,"$"],CAD:[n,"$"],CNY:[n,"¥"],GBP:[n,"£"],HKD:[n,"$"],ILS:[n,"₪"],INR:[n,"₹"],JPY:[n,"¥"],KRW:[n,"₩"],MXN:[n,"$"],NZD:[n,"$"],PLN:["zł"],RON:[n,"lej"],TWD:[n,"NT$"],USD:[n,"$"],VND:[n,"₫"]},"ltr",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:0===n&&t%10===Math.floor(t%10)&&t%10>=2&&t%10<=4&&!(t%100>=12&&t%100<=14)?3:0===n&&1!==t&&t%10===Math.floor(t%10)&&t%10>=0&&t%10<=1||0===n&&t%10===Math.floor(t%10)&&t%10>=5&&t%10<=9||0===n&&t%100===Math.floor(t%100)&&t%100>=12&&t%100<=14?4:5}]})},function(e,t,n){var r,o,i;!function(a){if("object"==typeof e&&"object"==typeof e.exports){var s=a(null,t);void 0!==s&&(e.exports=s)}else o=[n,t],void 0===(i="function"==typeof(r=a)?r.apply(t,o):r)||(e.exports=i)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=void 0;t.default=["ar",[["ص","م"],n,n],[["ص","م"],n,["صباحًا","مساءً"]],[["ح","ن","ث","ر","خ","ج","س"],["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],n,["أحد","إثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"]],n,[["ي","ف","م","أ","و","ن","ل","غ","س","ك","ب","د"],["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],n],n,[["ق.م","م"],n,["قبل الميلاد","ميلادي"]],6,[5,6],["d‏/M‏/y","dd‏/MM‏/y","d MMMM y","EEEE، d MMMM y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1} {0}",n,n,n],[".",",",";","‎%‎","‎+","‎-","E","×","‰","∞","ليس رقمًا",":"],["#,##0.###","#,##0%","¤ #,##0.00","#E0"],"EGP","ج.م.‏","جنيه مصري",{AED:["د.إ.‏"],ARS:[n,"AR$"],AUD:["AU$"],BBD:[n,"BB$"],BHD:["د.ب.‏"],BMD:[n,"BM$"],BND:[n,"BN$"],BSD:[n,"BS$"],BZD:[n,"BZ$"],CAD:["CA$"],CLP:[n,"CL$"],CNY:["CN¥"],COP:[n,"CO$"],CUP:[n,"CU$"],DOP:[n,"DO$"],DZD:["د.ج.‏"],EGP:["ج.م.‏","E£"],FJD:[n,"FJ$"],GBP:["UK£"],GYD:[n,"GY$"],HKD:["HK$"],IQD:["د.ع.‏"],IRR:["ر.إ."],JMD:[n,"JM$"],JOD:["د.أ.‏"],JPY:["JP¥"],KWD:["د.ك.‏"],KYD:[n,"KY$"],LBP:["ل.ل.‏","L£"],LRD:[n,"$LR"],LYD:["د.ل.‏"],MAD:["د.م.‏"],MRU:["أ.م."],MXN:["MX$"],NZD:["NZ$"],OMR:["ر.ع.‏"],QAR:["ر.ق.‏"],SAR:["ر.س.‏"],SBD:[n,"SB$"],SDD:["د.س.‏"],SDG:["ج.س."],SRD:[n,"SR$"],SYP:["ل.س.‏","£"],THB:["฿"],TND:["د.ت.‏"],TTD:[n,"TT$"],TWD:["NT$"],USD:["US$"],UYU:[n,"UY$"],XXX:["***"],YER:["ر.ي.‏"]},"rtl",function(e){return 0===e?0:1===e?1:2===e?2:e%100===Math.floor(e%100)&&e%100>=3&&e%100<=10?3:e%100===Math.floor(e%100)&&e%100>=11&&e%100<=99?4:5}]})},function(e,t,n){var r,o,i;!function(a){if("object"==typeof e&&"object"==typeof e.exports){var s=a(null,t);void 0!==s&&(e.exports=s)}else o=[n,t],void 0===(i="function"==typeof(r=a)?r.apply(t,o):r)||(e.exports=i)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=void 0;t.default=["ru",[["AM","PM"],n,n],n,[["вс","пн","вт","ср","чт","пт","сб"],n,["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"],["вс","пн","вт","ср","чт","пт","сб"]],[["В","П","В","С","Ч","П","С"],["вс","пн","вт","ср","чт","пт","сб"],["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"],["вс","пн","вт","ср","чт","пт","сб"]],[["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],["янв.","февр.","мар.","апр.","мая","июн.","июл.","авг.","сент.","окт.","нояб.","дек."],["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"]],[["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],["янв.","февр.","март","апр.","май","июнь","июль","авг.","сент.","окт.","нояб.","дек."],["январь","февраль","март","апрель","май","июнь","июль","август","сентябрь","октябрь","ноябрь","декабрь"]],[["до н.э.","н.э."],["до н. э.","н. э."],["до Рождества Христова","от Рождества Христова"]],1,[6,0],["dd.MM.y","d MMM y 'г'.","d MMMM y 'г'.","EEEE, d MMMM y 'г'."],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1}
2, {0}",n,n,n],[","," ",";","%","+","-","E","×","‰","∞","не число",":"],["#,##0.###","#,##0 %","#,##0.00 ¤","#E0"],"RUB","₽","российский рубль",{GEL:[n,"ლ"],RON:[n,"L"],RUB:["₽"],RUR:["р."],THB:["฿"],TMT:["ТМТ"],TWD:["NT$"],UAH:["₴"],XXX:["XXXX"]},"ltr",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 0===n&&t%10==1&&t%100!=11?1:0===n&&t%10===Math.floor(t%10)&&t%10>=2&&t%10<=4&&!(t%100>=12&&t%100<=14)?3:0===n&&t%10==0||0===n&&t%10===Math.floor(t%10)&&t%10>=5&&t%10<=9||0===n&&t%100===Math.floor(t%100)&&t%100>=11&&t%100<=14?4:5}]})},function(e,t,n){var r,o,i;!function(a){if("object"==typeof e&&"object"==typeof e.exports){var s=a(null,t);void 0!==s&&(e.exports=s)}else o=[n,t],void 0===(i="function"==typeof(r=a)?r.apply(t,o):r)||(e.exports=i)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=void 0;t.default=["rw",[["AM","PM"],n,n],n,[["S","M","T","W","T","F","S"],["cyu.","mbe.","kab.","gtu.","kan.","gnu.","gnd."],["Ku cyumweru","Kuwa mbere","Kuwa kabiri","Kuwa gatatu","Kuwa kane","Kuwa gatanu","Kuwa gatandatu"],["cyu.","mbe.","kab.","gtu.","kan.","gnu.","gnd."]],n,[["1","2","3","4","5","6","7","8","9","10","11","12"],["mut.","gas.","wer.","mat.","gic.","kam.","nya.","kan.","nze.","ukw.","ugu.","uku."],["Mutarama","Gashyantare","Werurwe","Mata","Gicuransi","Kamena","Nyakanga","Kanama","Nzeli","Ukwakira","Ugushyingo","Ukuboza"]],n,[["BCE","CE"],n,n],1,[6,0],["y-MM-dd","y MMM d","y MMMM d","y MMMM d, EEEE"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}",n,n,n],[",",".",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","¤ #,##0.00","#E0"],"RWF","RF","RWF",{JPY:["JP¥","¥"],RWF:["RF"],USD:["US$","$"]},"ltr",function(e){return 5}]})},function(e,t,n){var r,o,i;!function(a){if("object"==typeof e&&"object"==typeof e.exports){var s=a(null,t);void 0!==s&&(e.exports=s)}else o=[n,t],void 0===(i="function"==typeof(r=a)?r.apply(t,o):r)||(e.exports=i)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=void 0;t.default=["sg",[["ND","LK"],n,n],n,[["K","S","T","S","K","P","Y"],["Bk1","Bk2","Bk3","Bk4","Bk5","Lâp","Lây"],["Bikua-ôko","Bïkua-ûse","Bïkua-ptâ","Bïkua-usïö","Bïkua-okü","Lâpôsö","Lâyenga"],["Bk1","Bk2","Bk3","Bk4","Bk5","Lâp","Lây"]],n,[["N","F","M","N","B","F","L","K","M","N","N","K"],["Nye","Ful","Mbä","Ngu","Bêl","Fön","Len","Kük","Mvu","Ngb","Nab","Kak"],["Nyenye","Fulundïgi","Mbängü","Ngubùe","Bêläwü","Föndo","Lengua","Kükürü","Mvuka","Ngberere","Nabändüru","Kakauka"]],n,[["KnK","NpK"],n,["Kôzo na Krîstu","Na pekô tî Krîstu"]],1,[6,0],["d/M/y","d MMM, y","d MMMM y","EEEE d MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}",n,n,n],[",",".",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","¤#,##0.00;¤-#,##0.00","#E0"],"XAF","FCFA","farânga CFA (BEAC)",{JPY:["JP¥","¥"],USD:["US$","$"]},"ltr",function(e){return 5}]})},function(e,t,n){var r,o,i;!function(a){if("object"==typeof e&&"object"==typeof e.exports){var s=a(null,t);void 0!==s&&(e.exports=s)}else o=[n,t],void 0===(i="function"==typeof(r=a)?r.apply(t,o):r)||(e.exports=i)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=void 0;t.default=["th",[["a","p"],["ก่อนเที่ยง","หลังเที่ยง"],n],[["ก่อนเที่ยง","หลังเที่ยง"],n,n],[["อา","จ","อ","พ","พฤ","ศ","ส"],["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."],["วันอาทิตย์","วันจันทร์","วันอังคาร","วันพุธ","วันพฤหัสบดี","วันศุกร์","วันเสาร์"],["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."]],n,[["ม.ค.","ก.พ.","มี.ค.","เม.ย.","พ.ค.","มิ.ย.","ก.ค.","ส.ค.","ก.ย.","ต.ค.","พ.ย.","ธ.ค."],n,["มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม"]],n,[["ก่อน ค.ศ.","ค.ศ."],n,["ปีก่อนคริสตกาล","คริสต์ศักราช"]],0,[6,0],["d/M/yy","d MMM y","d MMMM G y","EEEEที่ d MMMM G y"],["HH:mm","HH:mm:ss","H นาฬิกา mm นาที ss วินาที z","H นาฬิกา mm นาที ss วินาที zzzz"],["{1} {0}",n,n,n],[".",",",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","¤#,##0.00","#E0"],"THB","฿","บาท",{AUD:["AU$","$"],THB:["฿"],TWD:["NT$"],USD:["US$","$"],XXX:[]},"ltr",function(e){return 5}]})},function(e,t,n){var r,o,i;
2!function(a){if("object"==typeof e&&"object"==typeof e.exports){var s=a(null,t);void 0!==s&&(e.exports=s)}else o=[n,t],void 0===(i="function"==typeof(r=a)?r.apply(t,o):r)||(e.exports=i)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=void 0;t.default=["uk",[["дп","пп"],n,n],n,[["Н","П","В","С","Ч","П","С"],["нд","пн","вт","ср","чт","пт","сб"],["неділя","понеділок","вівторок","середа","четвер","пʼятниця","субота"],["нд","пн","вт","ср","чт","пт","сб"]],n,[["с","л","б","к","т","ч","л","с","в","ж","л","г"],["січ.","лют.","бер.","квіт.","трав.","черв.","лип.","серп.","вер.","жовт.","лист.","груд."],["січня","лютого","березня","квітня","травня","червня","липня","серпня","вересня","жовтня","листопада","грудня"]],[["С","Л","Б","К","Т","Ч","Л","С","В","Ж","Л","Г"],["січ","лют","бер","кві","тра","чер","лип","сер","вер","жов","лис","гру"],["січень","лютий","березень","квітень","травень","червень","липень","серпень","вересень","жовтень","листопад","грудень"]],[["до н.е.","н.е."],["до н. е.","н. е."],["до нашої ери","нашої ери"]],1,[6,0],["dd.MM.yy","d MMM y 'р'.","d MMMM y 'р'.","EEEE, d MMMM y 'р'."],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1}, {0}",n,"{1} 'о' {0}",n],[","," ",";","%","+","-","Е","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","#,##0.00 ¤","#E0"],"UAH","₴","українська гривня",{AUD:[n,"$"],BRL:[n,"R$"],CAD:[n,"$"],CNY:[n,"¥"],EUR:[n,"€"],GBP:[n,"£"],HKD:[n,"$"],ILS:[n,"₪"],INR:[n,"₹"],KRW:[n,"₩"],MXN:[n,"$"],NZD:[n,"$"],TWD:[n,"$"],UAH:["₴"],UAK:["крб."],USD:[n,"$"],VND:[n,"₫"],XCD:[n,"$"]},"ltr",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 0===n&&t%10==1&&t%100!=11?1:0===n&&t%10===Math.floor(t%10)&&t%10>=2&&t%10<=4&&!(t%100>=12&&t%100<=14)?3:0===n&&t%10==0||0===n&&t%10===Math.floor(t%10)&&t%10>=5&&t%10<=9||0===n&&t%100===Math.floor(t%100)&&t%100>=11&&t%100<=14?4:5}]})},function(e,t,n){var r,o,i;!function(a){if("object"==typeof e&&"object"==typeof e.exports){var s=a(null,t);void 0!==s&&(e.exports=s)}else o=[n,t],void 0===(i="function"==typeof(r=a)?r.apply(t,o):r)||(e.exports=i)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=void 0;t.default=["ug",[["ب","ك"],["چ.ب","چ.ك"],["چۈشتىن بۇرۇن","چۈشتىن كېيىن"]],[["چ.ب","چ.ك"],n,n],[["ي","د","س","چ","پ","ج","ش"],["يە","دۈ","سە","چا","پە","جۈ","شە"],["يەكشەنبە","دۈشەنبە","سەيشەنبە","چارشەنبە","پەيشەنبە","جۈمە","شەنبە"],["ي","د","س","چ","پ","ج","ش"]],n,[["1","2","3","4","5","6","7","8","9","10","11","12"],["يانۋار","فېۋرال","مارت","ئاپرېل","ماي","ئىيۇن","ئىيۇل","ئاۋغۇست","سېنتەبىر","ئۆكتەبىر","نويابىر","دېكابىر"],n],n,[["BCE","مىلادىيە"],n,["مىلادىيەدىن بۇرۇن","مىلادىيە"]],0,[6,0],["y-MM-dd","d-MMM، y","d-MMMM، y","y d-MMMM، EEEE"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}، {0}",n,"{1} {0}",n],[".",",",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","¤#,##0.00","#E0"],"CNY","¥","جۇڭگو يۈەنى",{CNY:["¥","¥"],JPY:["JP¥","¥"]},"rtl",function(e){return 1===e?1:5}]})},function(e,t,n){var r,o,i;!function(a){if("object"==typeof e&&"object"==typeof e.exports){var s=a(null,t);void 0!==s&&(e.exports=s)}else o=[n,t],void 0===(i="function"==typeof(r=a)?r.apply(t,o):r)||(e.exports=i)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=void 0;t.default=["vi",[["s","c"],["SA","CH"],n],[["SA","CH"],n,n],[["CN","T2","T3","T4","T5","T6","T7"],["CN","Th 2","Th 3","Th 4","Th 5","Th 6","Th 7"],["Chủ Nhật","Thứ Hai","Thứ Ba","Thứ Tư","Thứ Năm","Thứ Sáu","Thứ Bảy"],["CN","T2","T3","T4","T5","T6","T7"]],n,[["1","2","3","4","5","6","7","8","9","10","11","12"],["thg 1","thg 2","thg 3","thg 4","thg 5","thg 6","thg 7","thg 8","thg 9","thg 10","thg 11","thg 12"],["tháng 1","tháng 2","tháng 3","tháng 4","tháng 5","tháng 6","tháng 7","tháng 8","tháng 9","tháng 10","tháng 11","tháng 12"]],[["1","2","3","4","5","6","7","8","9","10","11","12"],["Thg 1","Thg 2","Thg 3","Thg 4","Thg 5","Thg 6","Thg 7","Thg 8","Thg 9","Thg 10","Thg 11","Thg 12"],["Tháng 1","Tháng 2","Tháng 3","Tháng 4","Tháng 5","Tháng 6","Tháng 7","Tháng 8","Tháng 9","Tháng 10","Tháng 11","Tháng 12"]],[["tr. CN","sau CN"],["Trước CN","sau CN"],n],1,[6,0],["dd/MM/y","d MMM, y","d MMMM, y","EEEE, d MMMM, y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{0}, {1}",n,"{0} {1}",n],[",",".",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","#,##0.00 ¤","#E0"],"VND","₫","Đồng Việt Nam",{AUD:["AU$","$"],JPY:["JP¥","¥"],THB:["฿"],TWD:["NT$"],USD:["US$","$"],XXX:[]},"ltr",function(e){return 5}]})},function(e,t,n){var r,o,i;
2!function(a){if("object"==typeof e&&"object"==typeof e.exports){var s=a(null,t);void 0!==s&&(e.exports=s)}else o=[n,t],void 0===(i="function"==typeof(r=a)?r.apply(t,o):r)||(e.exports=i)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=void 0;t.default=["de",[["AM","PM"],n,n],n,[["S","M","D","M","D","F","S"],["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."]],[["S","M","D","M","D","F","S"],["So","Mo","Di","Mi","Do","Fr","Sa"],["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."]],[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan.","Feb.","März","Apr.","Mai","Juni","Juli","Aug.","Sept.","Okt.","Nov.","Dez."],["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]],[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]],[["v. Chr.","n. Chr."],n,n],1,[6,0],["dd.MM.yy","dd.MM.y","d. MMMM y","EEEE, d. MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1}, {0}",n,"{1} 'um' {0}",n],[",",".",";","%","+","-","E","·","‰","∞","NaN",":"],["#,##0.###","#,##0 %","#,##0.00 ¤","#E0"],"EUR","€","Euro",{ATS:["öS"],AUD:["AU$","$"],BGM:["BGK"],BGO:["BGJ"],CUC:[n,"Cub$"],DEM:["DM"],FKP:[n,"Fl£"],GNF:[n,"F.G."],KMF:[n,"FC"],RON:[n,"L"],RWF:[n,"F.Rw"],SYP:[],THB:["฿"],TWD:["NT$"],XXX:[],ZMW:[n,"K"]},"ltr",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}]})},function(e,t,n){var r,o,i;!function(a){if("object"==typeof e&&"object"==typeof e.exports){var s=a(null,t);void 0!==s&&(e.exports=s)}else o=[n,t],void 0===(i="function"==typeof(r=a)?r.apply(t,o):r)||(e.exports=i)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=void 0;t.default=["el",[["πμ","μμ"],["π.μ.","μ.μ."],n],n,[["Κ","Δ","Τ","Τ","Π","Π","Σ"],["Κυρ","Δευ","Τρί","Τετ","Πέμ","Παρ","Σάβ"],["Κυριακή","Δευτέρα","Τρίτη","Τετάρτη","Πέμπτη","Παρασκευή","Σάββατο"],["Κυ","Δε","Τρ","Τε","Πέ","Πα","Σά"]],n,[["Ι","Φ","Μ","Α","Μ","Ι","Ι","Α","Σ","Ο","Ν","Δ"],["Ιαν","Φεβ","Μαρ","Απρ","Μαΐ","Ιουν","Ιουλ","Αυγ","Σεπ","Οκτ","Νοε","Δεκ"],["Ιανουαρίου","Φεβρουαρίου","Μαρτίου","Απριλίου","Μαΐου","Ιουνίου","Ιουλίου","Αυγούστου","Σεπτεμβρίου","Οκτωβρίου","Νοεμβρίου","Δεκεμβρίου"]],[["Ι","Φ","Μ","Α","Μ","Ι","Ι","Α","Σ","Ο","Ν","Δ"],["Ιαν","Φεβ","Μάρ","Απρ","Μάι","Ιούν","Ιούλ","Αύγ","Σεπ","Οκτ","Νοέ","Δεκ"],["Ιανουάριος","Φεβρουάριος","Μάρτιος","Απρίλιος","Μάιος","Ιούνιος","Ιούλιος","Αύγουστος","Σεπτέμβριος","Οκτώβριος","Νοέμβριος","Δεκέμβριος"]],[["π.Χ.","μ.Χ."],n,["προ Χριστού","μετά Χριστόν"]],1,[6,0],["d/M/yy","d MMM y","d MMMM y","EEEE, d MMMM y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",n,"{1} - {0}",n],[",",".",";","%","+","-","e","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","#,##0.00 ¤","#E0"],"EUR","€","Ευρώ",{GRD:["Δρχ"],JPY:["JP¥","¥"],THB:["฿"]},"ltr",function(e){return 1===e?1:5}]})},function(e,t,n){var r,o,i;!function(a){if("object"==typeof e&&"object"==typeof e.exports){var s=a(null,t);void 0!==s&&(e.exports=s)}else o=[n,t],void 0===(i="function"==typeof(r=a)?r.apply(t,o):r)||(e.exports=i)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=void 0;t.default=["it",[["m.","p."],["AM","PM"],n],n,[["D","L","M","M","G","V","S"],["dom","lun","mar","mer","gio","ven","sab"],["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"],["dom","lun","mar","mer","gio","ven","sab"]],n,[["G","F","M","A","M","G","L","A","S","O","N","D"],["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]],n,[["aC","dC"],["a.C.","d.C."],["avanti Cristo","dopo Cristo"]],1,[6,0],["dd/MM/yy","d MMM y","d MMMM y","EEEE d MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1}
2, {0}",n,"{1} {0}",n],[",",".",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","#,##0.00 ¤","#E0"],"EUR","€","euro",{BRL:[n,"R$"],BYN:[n,"Br"],EGP:[n,"£E"],HKD:[n,"$"],JPY:[n,"¥"],KRW:[n,"₩"],MXN:[n,"$"],NOK:[n,"NKr"],THB:["฿"],TWD:[n,"NT$"],USD:[n,"$"]},"ltr",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}]})},function(e,t,n){var r,o,i;!function(a){if("object"==typeof e&&"object"==typeof e.exports){var s=a(null,t);void 0!==s&&(e.exports=s)}else o=[n,t],void 0===(i="function"==typeof(r=a)?r.apply(t,o):r)||(e.exports=i)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=void 0;t.default=["nl",[["a.m.","p.m."],n,n],n,[["Z","M","D","W","D","V","Z"],["zo","ma","di","wo","do","vr","za"],["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"],["zo","ma","di","wo","do","vr","za"]],n,[["J","F","M","A","M","J","J","A","S","O","N","D"],["jan.","feb.","mrt.","apr.","mei","jun.","jul.","aug.","sep.","okt.","nov.","dec."],["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]],n,[["v.C.","n.C."],["v.Chr.","n.Chr."],["voor Christus","na Christus"]],1,[6,0],["dd-MM-y","d MMM y","d MMMM y","EEEE d MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}",n,"{1} 'om' {0}",n],[",",".",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","¤ #,##0.00;¤ -#,##0.00","#E0"],"EUR","€","Euro",{AUD:["AU$","$"],CAD:["C$","$"],FJD:["FJ$","$"],JPY:["JP¥","¥"],SBD:["SI$","$"],THB:["฿"],TWD:["NT$"],USD:["US$","$"],XPF:[],XXX:[]},"ltr",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}]})},function(e,t,n){var r,o,i;!function(a){if("object"==typeof e&&"object"==typeof e.exports){var s=a(null,t);void 0!==s&&(e.exports=s)}else o=[n,t],void 0===(i="function"==typeof(r=a)?r.apply(t,o):r)||(e.exports=i)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=void 0;t.default=["sv",[["fm","em"],n,n],[["fm","em"],["f.m.","e.m."],["förmiddag","eftermiddag"]],[["S","M","T","O","T","F","L"],["sön","mån","tis","ons","tors","fre","lör"],["söndag","måndag","tisdag","onsdag","torsdag","fredag","lördag"],["sö","må","ti","on","to","fr","lö"]],n,[["J","F","M","A","M","J","J","A","S","O","N","D"],["jan.","feb.","mars","apr.","maj","juni","juli","aug.","sep.","okt.","nov.","dec."],["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december"]],n,[["f.Kr.","e.Kr."],n,["före Kristus","efter Kristus"]],1,[6,0],["y-MM-dd","d MMM y","d MMMM y","EEEE d MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","'kl'. HH:mm:ss zzzz"],["{1} {0}",n,n,n],[","," ",";","%","+","−","×10^","×","‰","∞","NaN",":"],["#,##0.###","#,##0 %","#,##0.00 ¤","#E0"],"SEK","kr","svensk krona",{AUD:[n,"$"],BBD:["Bds$","$"],BMD:["BM$","$"],BRL:["BR$","R$"],BSD:["BS$","$"],BZD:["BZ$","$"],CNY:[n,"¥"],DKK:["Dkr","kr"],DOP:["RD$","$"],EEK:["Ekr"],EGP:["EG£","E£"],ESP:[],GBP:[n,"£"],HKD:[n,"$"],IEP:["IE£"],INR:[n,"₹"],ISK:["Ikr","kr"],JMD:["JM$","$"],JPY:[n,"¥"],KRW:[n,"₩"],NOK:["Nkr","kr"],NZD:[n,"$"],RON:[n,"L"],SEK:["kr"],TWD:[n,"NT$"],USD:["US$","$"],VND:[n,"₫"]},"ltr",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}]})}],[637]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.