source: trip-planner-front/node_modules/@angular/common/bundles/common-upgrade.umd.js.map

Last change on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 91.9 KB
RevLine 
[6a3a178]1{"version":3,"file":"common-upgrade.umd.js","sources":["../../../../../external/npm/node_modules/tslib/tslib.es6.js","../../../../../packages/common/upgrade/src/utils.ts","../../../../../packages/common/upgrade/src/location_shim.ts","../../../../../packages/common/upgrade/src/params.ts","../../../../../packages/common/upgrade/src/location_upgrade_module.ts","../../../../../packages/common/upgrade/src/index.ts","../../../../../packages/common/upgrade/public_api.ts","../../../../../packages/common/upgrade/index.ts","../../../../../packages/common/upgrade/upgrade.ts"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nexport function stripPrefix(val: string, prefix: string): string {\n return val.startsWith(prefix) ? val.substring(prefix.length) : val;\n}\n\nexport function deepEqual(a: any, b: any): boolean {\n if (a === b) {\n return true;\n } else if (!a || !b) {\n return false;\n } else {\n try {\n if ((a.prototype !== b.prototype) || (Array.isArray(a) && Array.isArray(b))) {\n return false;\n }\n return JSON.stringify(a) === JSON.stringify(b);\n } catch (e) {\n return false;\n }\n }\n}\n\nexport function isAnchor(el: (Node&ParentNode)|Element|null): el is HTMLAnchorElement {\n return (<HTMLAnchorElement>el).href !== undefined;\n}\n\nexport function isPromise<T = any>(obj: any): obj is Promise<T> {\n // allow any Promise/A+ compliant thenable.\n // It's up to the caller to ensure that obj.then conforms to the spec\n return !!obj && typeof obj.then === 'function';\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {Location, LocationStrategy, PlatformLocation} from '@angular/common';\nimport {UpgradeModule} from '@angular/upgrade/static';\nimport {ReplaySubject} from 'rxjs';\n\nimport {UrlCodec} from './params';\nimport {deepEqual, isAnchor, isPromise} from './utils';\n\nconst PATH_MATCH = /^([^?#]*)(\\?([^#]*))?(#(.*))?$/;\nconst DOUBLE_SLASH_REGEX = /^\\s*[\\\\/]{2,}/;\nconst IGNORE_URI_REGEXP = /^\\s*(javascript|mailto):/i;\nconst DEFAULT_PORTS: {[key: string]: number} = {\n 'http:': 80,\n 'https:': 443,\n 'ftp:': 21\n};\n\n/**\n * Location service that provides a drop-in replacement for the $location service\n * provided in AngularJS.\n *\n * @see [Using the Angular Unified Location Service](guide/upgrade#using-the-unified-angular-location-service)\n *\n * @publicApi\n */\nexport class $locationShim {\n private initalizing = true;\n private updateBrowser = false;\n private $$absUrl: string = '';\n private $$url: string = '';\n private $$protocol: string;\n private $$host: string = '';\n private $$port: number|null;\n private $$replace: boolean = false;\n private $$path: string = '';\n private $$search: any = '';\n private $$hash: string = '';\n private $$state: unknown;\n private $$changeListeners: [\n ((url: string, state: unknown, oldUrl: string, oldState: unknown, err?: (e: Error) => void) =>\n void),\n (e: Error) => void\n ][] = [];\n\n private cachedState: unknown = null;\n\n private urlChanges = new ReplaySubject<{newUrl: string, newState: unknown}>(1);\n\n constructor(\n $injector: any, private location: Location, private platformLocation: PlatformLocation,\n private urlCodec: UrlCodec, private locationStrategy: LocationStrategy) {\n const initialUrl = this.browserUrl();\n\n let parsedUrl = this.urlCodec.parse(initialUrl);\n\n if (typeof parsedUrl === 'string') {\n throw 'Invalid URL';\n }\n\n this.$$protocol = parsedUrl.protocol;\n this.$$host = parsedUrl.hostname;\n this.$$port = parseInt(parsedUrl.port) || DEFAULT_PORTS[parsedUrl.protocol] || null;\n\n this.$$parseLinkUrl(initialUrl, initialUrl);\n this.cacheState();\n this.$$state = this.browserState();\n\n this.location.onUrlChange((newUrl, newState) => {\n this.urlChanges.next({newUrl, newState});\n });\n\n if (isPromise($injector)) {\n $injector.then($i => this.initialize($i));\n } else {\n this.initialize($injector);\n }\n }\n\n private initialize($injector: any) {\n const $rootScope = $injector.get('$rootScope');\n const $rootElement = $injector.get('$rootElement');\n\n $rootElement.on('click', (event: any) => {\n if (event.ctrlKey || event.metaKey || event.shiftKey || event.which === 2 ||\n event.button === 2) {\n return;\n }\n\n let elm: (Node&ParentNode)|null = event.target;\n\n // traverse the DOM up to find first A tag\n while (elm && elm.nodeName.toLowerCase() !== 'a') {\n // ignore rewriting if no A tag (reached root element, or no parent - removed from document)\n if (elm === $rootElement[0] || !(elm = elm.parentNode)) {\n return;\n }\n }\n\n if (!isAnchor(elm)) {\n return;\n }\n\n const absHref = elm.href;\n const relHref = elm.getAttribute('href');\n\n // Ignore when url is started with javascript: or mailto:\n if (IGNORE_URI_REGEXP.test(absHref)) {\n return;\n }\n\n if (absHref && !elm.getAttribute('target') && !event.isDefaultPrevented()) {\n if (this.$$parseLinkUrl(absHref, relHref)) {\n // We do a preventDefault for all urls that are part of the AngularJS application,\n // in html5mode and also without, so that we are able to abort navigation without\n // getting double entries in the location history.\n event.preventDefault();\n // update location manually\n if (this.absUrl() !== this.browserUrl()) {\n $rootScope.$apply();\n }\n }\n }\n });\n\n this.urlChanges.subscribe(({newUrl, newState}) => {\n const oldUrl = this.absUrl();\n const oldState = this.$$state;\n this.$$parse(newUrl);\n newUrl = this.absUrl();\n this.$$state = newState;\n const defaultPrevented =\n $rootScope.$broadcast('$locationChangeStart', newUrl, oldUrl, newState, oldState)\n .defaultPrevented;\n\n // if the location was changed by a `$locationChangeStart` handler then stop\n // processing this location change\n if (this.absUrl() !== newUrl) return;\n\n // If default was prevented, set back to old state. This is the state that was locally\n // cached in the $location service.\n if (defaultPrevented) {\n this.$$parse(oldUrl);\n this.state(oldState);\n this.setBrowserUrlWithFallback(oldUrl, false, oldState);\n this.$$notifyChangeListeners(this.url(), this.$$state, oldUrl, oldState);\n } else {\n this.initalizing = false;\n $rootScope.$broadcast('$locationChangeSuccess', newUrl, oldUrl, newState, oldState);\n this.resetBrowserUpdate();\n }\n if (!$rootScope.$$phase) {\n $rootScope.$digest();\n }\n });\n\n // update browser\n $rootScope.$watch(() => {\n if (this.initalizing || this.updateBrowser) {\n this.updateBrowser = false;\n\n const oldUrl = this.browserUrl();\n const newUrl = this.absUrl();\n const oldState = this.browserState();\n let currentReplace = this.$$replace;\n\n const urlOrStateChanged =\n !this.urlCodec.areEqual(oldUrl, newUrl) || oldState !== this.$$state;\n\n // Fire location changes one time to on initialization. This must be done on the\n // next tick (thus inside $evalAsync()) in order for listeners to be registered\n // before the event fires. Mimicing behavior from $locationWatch:\n // https://github.com/angular/angular.js/blob/master/src/ng/location.js#L983\n if (this.initalizing || urlOrStateChanged) {\n this.initalizing = false;\n\n $rootScope.$evalAsync(() => {\n // Get the new URL again since it could have changed due to async update\n const newUrl = this.absUrl();\n const defaultPrevented =\n $rootScope\n .$broadcast('$locationChangeStart', newUrl, oldUrl, this.$$state, oldState)\n .defaultPrevented;\n\n // if the location was changed by a `$locationChangeStart` handler then stop\n // processing this location change\n if (this.absUrl() !== newUrl) return;\n\n if (defaultPrevented) {\n this.$$parse(oldUrl);\n this.$$state = oldState;\n } else {\n // This block doesn't run when initalizing because it's going to perform the update to\n // the URL which shouldn't be needed when initalizing.\n if (urlOrStateChanged) {\n this.setBrowserUrlWithFallback(\n newUrl, currentReplace, oldState === this.$$state ? null : this.$$state);\n this.$$replace = false;\n }\n $rootScope.$broadcast(\n '$locationChangeSuccess', newUrl, oldUrl, this.$$state, oldState);\n if (urlOrStateChanged) {\n this.$$notifyChangeListeners(this.url(), this.$$state, oldUrl, oldState);\n }\n }\n });\n }\n }\n this.$$replace = false;\n });\n }\n\n private resetBrowserUpdate() {\n this.$$replace = false;\n this.$$state = this.browserState();\n this.updateBrowser = false;\n this.lastBrowserUrl = this.browserUrl();\n }\n\n private lastHistoryState: unknown;\n private lastBrowserUrl: string = '';\n private browserUrl(): string;\n private browserUrl(url: string, replace?: boolean, state?: unknown): this;\n private browserUrl(url?: string, replace?: boolean, state?: unknown) {\n // In modern browsers `history.state` is `null` by default; treating it separately\n // from `undefined` would cause `$browser.url('/foo')` to change `history.state`\n // to undefined via `pushState`. Instead, let's change `undefined` to `null` here.\n if (typeof state === 'undefined') {\n state = null;\n }\n\n // setter\n if (url) {\n let sameState = this.lastHistoryState === state;\n\n // Normalize the inputted URL\n url = this.urlCodec.parse(url).href;\n\n // Don't change anything if previous and current URLs and states match.\n if (this.lastBrowserUrl === url && sameState) {\n return this;\n }\n this.lastBrowserUrl = url;\n this.lastHistoryState = state;\n\n // Remove server base from URL as the Angular APIs for updating URL require\n // it to be the path+.\n url = this.stripBaseUrl(this.getServerBase(), url) || url;\n\n // Set the URL\n if (replace) {\n this.locationStrategy.replaceState(state, '', url, '');\n } else {\n this.locationStrategy.pushState(state, '', url, '');\n }\n\n this.cacheState();\n\n return this;\n // getter\n } else {\n return this.platformLocation.href;\n }\n }\n\n // This variable should be used *only* inside the cacheState function.\n private lastCachedState: unknown = null;\n private cacheState() {\n // This should be the only place in $browser where `history.state` is read.\n this.cachedState = this.platformLocation.getState();\n if (typeof this.cachedState === 'undefined') {\n this.cachedState = null;\n }\n\n // Prevent callbacks fo fire twice if both hashchange & popstate were fired.\n if (deepEqual(this.cachedState, this.lastCachedState)) {\n this.cachedState = this.lastCachedState;\n }\n\n this.lastCachedState = this.cachedState;\n this.lastHistoryState = this.cachedState;\n }\n\n /**\n * This function emulates the $browser.state() function from AngularJS. It will cause\n * history.state to be cached unless changed with deep equality check.\n */\n private browserState(): unknown {\n return this.cachedState;\n }\n\n private stripBaseUrl(base: string, url: string) {\n if (url.startsWith(base)) {\n return url.substr(base.length);\n }\n return undefined;\n }\n\n private getServerBase() {\n const {protocol, hostname, port} = this.platformLocation;\n const baseHref = this.locationStrategy.getBaseHref();\n let url = `${protocol}//${hostname}${port ? ':' + port : ''}${baseHref || '/'}`;\n return url.endsWith('/') ? url : url + '/';\n }\n\n private parseAppUrl(url: string) {\n if (DOUBLE_SLASH_REGEX.test(url)) {\n throw new Error(`Bad Path - URL cannot start with double slashes: ${url}`);\n }\n\n let prefixed = (url.charAt(0) !== '/');\n if (prefixed) {\n url = '/' + url;\n }\n let match = this.urlCodec.parse(url, this.getServerBase());\n if (typeof match === 'string') {\n throw new Error(`Bad URL - Cannot parse URL: ${url}`);\n }\n let path =\n prefixed && match.pathname.charAt(0) === '/' ? match.pathname.substring(1) : match.pathname;\n this.$$path = this.urlCodec.decodePath(path);\n this.$$search = this.urlCodec.decodeSearch(match.search);\n this.$$hash = this.urlCodec.decodeHash(match.hash);\n\n // make sure path starts with '/';\n if (this.$$path && this.$$path.charAt(0) !== '/') {\n this.$$path = '/' + this.$$path;\n }\n }\n\n /**\n * Registers listeners for URL changes. This API is used to catch updates performed by the\n * AngularJS framework. These changes are a subset of the `$locationChangeStart` and\n * `$locationChangeSuccess` events which fire when AngularJS updates its internally-referenced\n * version of the browser URL.\n *\n * It's possible for `$locationChange` events to happen, but for the browser URL\n * (window.location) to remain unchanged. This `onChange` callback will fire only when AngularJS\n * actually updates the browser URL (window.location).\n *\n * @param fn The callback function that is triggered for the listener when the URL changes.\n * @param err The callback function that is triggered when an error occurs.\n */\n onChange(\n fn: (url: string, state: unknown, oldUrl: string, oldState: unknown) => void,\n err: (e: Error) => void = (e: Error) => {}) {\n this.$$changeListeners.push([fn, err]);\n }\n\n /** @internal */\n $$notifyChangeListeners(\n url: string = '', state: unknown, oldUrl: string = '', oldState: unknown) {\n this.$$changeListeners.forEach(([fn, err]) => {\n try {\n fn(url, state, oldUrl, oldState);\n } catch (e) {\n err(e);\n }\n });\n }\n\n /**\n * Parses the provided URL, and sets the current URL to the parsed result.\n *\n * @param url The URL string.\n */\n $$parse(url: string) {\n let pathUrl: string|undefined;\n if (url.startsWith('/')) {\n pathUrl = url;\n } else {\n // Remove protocol & hostname if URL starts with it\n pathUrl = this.stripBaseUrl(this.getServerBase(), url);\n }\n if (typeof pathUrl === 'undefined') {\n throw new Error(`Invalid url \"${url}\", missing path prefix \"${this.getServerBase()}\".`);\n }\n\n this.parseAppUrl(pathUrl);\n\n if (!this.$$path) {\n this.$$path = '/';\n }\n this.composeUrls();\n }\n\n /**\n * Parses the provided URL and its relative URL.\n *\n * @param url The full URL string.\n * @param relHref A URL string relative to the full URL string.\n */\n $$parseLinkUrl(url: string, relHref?: string|null): boolean {\n // When relHref is passed, it should be a hash and is handled separately\n if (relHref && relHref[0] === '#') {\n this.hash(relHref.slice(1));\n return true;\n }\n let rewrittenUrl;\n let appUrl = this.stripBaseUrl(this.getServerBase(), url);\n if (typeof appUrl !== 'undefined') {\n rewrittenUrl = this.getServerBase() + appUrl;\n } else if (this.getServerBase() === url + '/') {\n rewrittenUrl = this.getServerBase();\n }\n // Set the URL\n if (rewrittenUrl) {\n this.$$parse(rewrittenUrl);\n }\n return !!rewrittenUrl;\n }\n\n private setBrowserUrlWithFallback(url: string, replace: boolean, state: unknown) {\n const oldUrl = this.url();\n const oldState = this.$$state;\n try {\n this.browserUrl(url, replace, state);\n\n // Make sure $location.state() returns referentially identical (not just deeply equal)\n // state object; this makes possible quick checking if the state changed in the digest\n // loop. Checking deep equality would be too expensive.\n this.$$state = this.browserState();\n } catch (e) {\n // Restore old values if pushState fails\n this.url(oldUrl);\n this.$$state = oldState;\n\n throw e;\n }\n }\n\n private composeUrls() {\n this.$$url = this.urlCodec.normalize(this.$$path, this.$$search, this.$$hash);\n this.$$absUrl = this.getServerBase() + this.$$url.substr(1); // remove '/' from front of URL\n this.updateBrowser = true;\n }\n\n /**\n * Retrieves the full URL representation with all segments encoded according to\n * rules specified in\n * [RFC 3986](https://tools.ietf.org/html/rfc3986).\n *\n *\n * ```js\n * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo\n * let absUrl = $location.absUrl();\n * // => \"http://example.com/#/some/path?foo=bar&baz=xoxo\"\n * ```\n */\n absUrl(): string {\n return this.$$absUrl;\n }\n\n /**\n * Retrieves the current URL, or sets a new URL. When setting a URL,\n * changes the path, search, and hash, and returns a reference to its own instance.\n *\n * ```js\n * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo\n * let url = $location.url();\n * // => \"/some/path?foo=bar&baz=xoxo\"\n * ```\n */\n url(): string;\n url(url: string): this;\n url(url?: string): string|this {\n if (typeof url === 'string') {\n if (!url.length) {\n url = '/';\n }\n\n const match = PATH_MATCH.exec(url);\n if (!match) return this;\n if (match[1] || url === '') this.path(this.urlCodec.decodePath(match[1]));\n if (match[2] || match[1] || url === '') this.search(match[3] || '');\n this.hash(match[5] || '');\n\n // Chainable method\n return this;\n }\n\n return this.$$url;\n }\n\n /**\n * Retrieves the protocol of the current URL.\n *\n * ```js\n * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo\n * let protocol = $location.protocol();\n * // => \"http\"\n * ```\n */\n protocol(): string {\n return this.$$protocol;\n }\n\n /**\n * Retrieves the protocol of the current URL.\n *\n * In contrast to the non-AngularJS version `location.host` which returns `hostname:port`, this\n * returns the `hostname` portion only.\n *\n *\n * ```js\n * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo\n * let host = $location.host();\n * // => \"example.com\"\n *\n * // given URL http://user:password@example.com:8080/#/some/path?foo=bar&baz=xoxo\n * host = $location.host();\n * // => \"example.com\"\n * host = location.host;\n * // => \"example.com:8080\"\n * ```\n */\n host(): string {\n return this.$$host;\n }\n\n /**\n * Retrieves the port of the current URL.\n *\n * ```js\n * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo\n * let port = $location.port();\n * // => 80\n * ```\n */\n port(): number|null {\n return this.$$port;\n }\n\n /**\n * Retrieves the path of the current URL, or changes the path and returns a reference to its own\n * instance.\n *\n * Paths should always begin with forward slash (/). This method adds the forward slash\n * if it is missing.\n *\n * ```js\n * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo\n * let path = $location.path();\n * // => \"/some/path\"\n * ```\n */\n path(): string;\n path(path: string|number|null): this;\n path(path?: string|number|null): string|this {\n if (typeof path === 'undefined') {\n return this.$$path;\n }\n\n // null path converts to empty string. Prepend with \"/\" if needed.\n path = path !== null ? path.toString() : '';\n path = path.charAt(0) === '/' ? path : '/' + path;\n\n this.$$path = path;\n\n this.composeUrls();\n return this;\n }\n\n /**\n * Retrieves a map of the search parameters of the current URL, or changes a search\n * part and returns a reference to its own instance.\n *\n *\n * ```js\n * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo\n * let searchObject = $location.search();\n * // => {foo: 'bar', baz: 'xoxo'}\n *\n * // set foo to 'yipee'\n * $location.search('foo', 'yipee');\n * // $location.search() => {foo: 'yipee', baz: 'xoxo'}\n * ```\n *\n * @param {string|Object.<string>|Object.<Array.<string>>} search New search params - string or\n * hash object.\n *\n * When called with a single argument the method acts as a setter, setting the `search` component\n * of `$location` to the specified value.\n *\n * If the argument is a hash object containing an array of values, these values will be encoded\n * as duplicate search parameters in the URL.\n *\n * @param {(string|Number|Array<string>|boolean)=} paramValue If `search` is a string or number,\n * then `paramValue`\n * will override only a single search property.\n *\n * If `paramValue` is an array, it will override the property of the `search` component of\n * `$location` specified via the first argument.\n *\n * If `paramValue` is `null`, the property specified via the first argument will be deleted.\n *\n * If `paramValue` is `true`, the property specified via the first argument will be added with no\n * value nor trailing equal sign.\n *\n * @return {Object} The parsed `search` object of the current URL, or the changed `search` object.\n */\n search(): {[key: string]: unknown};\n search(search: string|number|{[key: string]: unknown}): this;\n search(\n search: string|number|{[key: string]: unknown},\n paramValue: null|undefined|string|number|boolean|string[]): this;\n search(\n search?: string|number|{[key: string]: unknown},\n paramValue?: null|undefined|string|number|boolean|string[]): {[key: string]: unknown}|this {\n switch (arguments.length) {\n case 0:\n return this.$$search;\n case 1:\n if (typeof search === 'string' || typeof search === 'number') {\n this.$$search = this.urlCodec.decodeSearch(search.toString());\n } else if (typeof search === 'object' && search !== null) {\n // Copy the object so it's never mutated\n search = {...search};\n // remove object undefined or null properties\n for (const key in search) {\n if (search[key] == null) delete search[key];\n }\n\n this.$$search = search;\n } else {\n throw new Error(\n 'LocationProvider.search(): First argument must be a string or an object.');\n }\n break;\n default:\n if (typeof search === 'string') {\n const currentSearch = this.search();\n if (typeof paramValue === 'undefined' || paramValue === null) {\n delete currentSearch[search];\n return this.search(currentSearch);\n } else {\n currentSearch[search] = paramValue;\n return this.search(currentSearch);\n }\n }\n }\n this.composeUrls();\n return this;\n }\n\n /**\n * Retrieves the current hash fragment, or changes the hash fragment and returns a reference to\n * its own instance.\n *\n * ```js\n * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo#hashValue\n * let hash = $location.hash();\n * // => \"hashValue\"\n * ```\n */\n hash(): string;\n hash(hash: string|number|null): this;\n hash(hash?: string|number|null): string|this {\n if (typeof hash === 'undefined') {\n return this.$$hash;\n }\n\n this.$$hash = hash !== null ? hash.toString() : '';\n\n this.composeUrls();\n return this;\n }\n\n /**\n * Changes to `$location` during the current `$digest` will replace the current\n * history record, instead of adding a new one.\n */\n replace(): this {\n this.$$replace = true;\n return this;\n }\n\n /**\n * Retrieves the history state object when called without any parameter.\n *\n * Change the history state object when called with one parameter and return `$location`.\n * The state object is later passed to `pushState` or `replaceState`.\n *\n * This method is supported only in HTML5 mode and only in browsers supporting\n * the HTML5 History API methods such as `pushState` and `replaceState`. If you need to support\n * older browsers (like Android < 4.0), don't use this method.\n *\n */\n state(): unknown;\n state(state: unknown): this;\n state(state?: unknown): unknown|this {\n if (typeof state === 'undefined') {\n return this.$$state;\n }\n\n this.$$state = state;\n return this;\n }\n}\n\n/**\n * The factory function used to create an instance of the `$locationShim` in Angular,\n * and provides an API-compatiable `$locationProvider` for AngularJS.\n *\n * @publicApi\n */\nexport class $locationShimProvider {\n constructor(\n private ngUpgrade: UpgradeModule, private location: Location,\n private platformLocation: PlatformLocation, private urlCodec: UrlCodec,\n private locationStrategy: LocationStrategy) {}\n\n /**\n * Factory method that returns an instance of the $locationShim\n */\n $get() {\n return new $locationShim(\n this.ngUpgrade.$injector, this.location, this.platformLocation, this.urlCodec,\n this.locationStrategy);\n }\n\n /**\n * Stub method used to keep API compatible with AngularJS. This setting is configured through\n * the LocationUpgradeModule's `config` method in your Angular app.\n */\n hashPrefix(prefix?: string) {\n throw new Error('Configure LocationUpgrade through LocationUpgradeModule.config method.');\n }\n\n /**\n * Stub method used to keep API compatible with AngularJS. This setting is configured through\n * the LocationUpgradeModule's `config` method in your Angular app.\n */\n html5Mode(mode?: any) {\n throw new Error('Configure LocationUpgrade through LocationUpgradeModule.config method.');\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * A codec for encoding and decoding URL parts.\n *\n * @publicApi\n **/\nexport abstract class UrlCodec {\n /**\n * Encodes the path from the provided string\n *\n * @param path The path string\n */\n abstract encodePath(path: string): string;\n\n /**\n * Decodes the path from the provided string\n *\n * @param path The path string\n */\n abstract decodePath(path: string): string;\n\n /**\n * Encodes the search string from the provided string or object\n *\n * @param path The path string or object\n */\n abstract encodeSearch(search: string|{[k: string]: unknown}): string;\n\n /**\n * Decodes the search objects from the provided string\n *\n * @param path The path string\n */\n abstract decodeSearch(search: string): {[k: string]: unknown};\n\n /**\n * Encodes the hash from the provided string\n *\n * @param path The hash string\n */\n abstract encodeHash(hash: string): string;\n\n /**\n * Decodes the hash from the provided string\n *\n * @param path The hash string\n */\n abstract decodeHash(hash: string): string;\n\n /**\n * Normalizes the URL from the provided string\n *\n * @param path The URL string\n */\n abstract normalize(href: string): string;\n\n\n /**\n * Normalizes the URL from the provided string, search, hash, and base URL parameters\n *\n * @param path The URL path\n * @param search The search object\n * @param hash The has string\n * @param baseUrl The base URL for the URL\n */\n abstract normalize(path: string, search: {[k: string]: unknown}, hash: string, baseUrl?: string):\n string;\n\n /**\n * Checks whether the two strings are equal\n * @param valA First string for comparison\n * @param valB Second string for comparison\n */\n abstract areEqual(valA: string, valB: string): boolean;\n\n /**\n * Parses the URL string based on the base URL\n *\n * @param url The full URL string\n * @param base The base for the URL\n */\n abstract parse(url: string, base?: string): {\n href: string,\n protocol: string,\n host: string,\n search: string,\n hash: string,\n hostname: string,\n port: string,\n pathname: string\n };\n}\n\n/**\n * A `UrlCodec` that uses logic from AngularJS to serialize and parse URLs\n * and URL parameters.\n *\n * @publicApi\n */\nexport class AngularJSUrlCodec implements UrlCodec {\n // https://github.com/angular/angular.js/blob/864c7f0/src/ng/location.js#L15\n encodePath(path: string): string {\n const segments = path.split('/');\n let i = segments.length;\n\n while (i--) {\n // decode forward slashes to prevent them from being double encoded\n segments[i] = encodeUriSegment(segments[i].replace(/%2F/g, '/'));\n }\n\n path = segments.join('/');\n return _stripIndexHtml((path && path[0] !== '/' && '/' || '') + path);\n }\n\n // https://github.com/angular/angular.js/blob/864c7f0/src/ng/location.js#L42\n encodeSearch(search: string|{[k: string]: unknown}): string {\n if (typeof search === 'string') {\n search = parseKeyValue(search);\n }\n\n search = toKeyValue(search);\n return search ? '?' + search : '';\n }\n\n // https://github.com/angular/angular.js/blob/864c7f0/src/ng/location.js#L44\n encodeHash(hash: string) {\n hash = encodeUriSegment(hash);\n return hash ? '#' + hash : '';\n }\n\n // https://github.com/angular/angular.js/blob/864c7f0/src/ng/location.js#L27\n decodePath(path: string, html5Mode = true): string {\n const segments = path.split('/');\n let i = segments.length;\n\n while (i--) {\n segments[i] = decodeURIComponent(segments[i]);\n if (html5Mode) {\n // encode forward slashes to prevent them from being mistaken for path separators\n segments[i] = segments[i].replace(/\\//g, '%2F');\n }\n }\n\n return segments.join('/');\n }\n\n // https://github.com/angular/angular.js/blob/864c7f0/src/ng/location.js#L72\n decodeSearch(search: string) {\n return parseKeyValue(search);\n }\n\n // https://github.com/angular/angular.js/blob/864c7f0/src/ng/location.js#L73\n decodeHash(hash: string) {\n hash = decodeURIComponent(hash);\n return hash[0] === '#' ? hash.substring(1) : hash;\n }\n\n // https://github.com/angular/angular.js/blob/864c7f0/src/ng/location.js#L149\n // https://github.com/angular/angular.js/blob/864c7f0/src/ng/location.js#L42\n normalize(href: string): string;\n normalize(path: string, search: {[k: string]: unknown}, hash: string, baseUrl?: string): string;\n normalize(pathOrHref: string, search?: {[k: string]: unknown}, hash?: string, baseUrl?: string):\n string {\n if (arguments.length === 1) {\n const parsed = this.parse(pathOrHref, baseUrl);\n\n if (typeof parsed === 'string') {\n return parsed;\n }\n\n const serverUrl =\n `${parsed.protocol}://${parsed.hostname}${parsed.port ? ':' + parsed.port : ''}`;\n\n return this.normalize(\n this.decodePath(parsed.pathname), this.decodeSearch(parsed.search),\n this.decodeHash(parsed.hash), serverUrl);\n } else {\n const encPath = this.encodePath(pathOrHref);\n const encSearch = search && this.encodeSearch(search) || '';\n const encHash = hash && this.encodeHash(hash) || '';\n\n let joinedPath = (baseUrl || '') + encPath;\n\n if (!joinedPath.length || joinedPath[0] !== '/') {\n joinedPath = '/' + joinedPath;\n }\n return joinedPath + encSearch + encHash;\n }\n }\n\n areEqual(valA: string, valB: string) {\n return this.normalize(valA) === this.normalize(valB);\n }\n\n // https://github.com/angular/angular.js/blob/864c7f0/src/ng/urlUtils.js#L60\n parse(url: string, base?: string) {\n try {\n // Safari 12 throws an error when the URL constructor is called with an undefined base.\n const parsed = !base ? new URL(url) : new URL(url, base);\n return {\n href: parsed.href,\n protocol: parsed.protocol ? parsed.protocol.replace(/:$/, '') : '',\n host: parsed.host,\n search: parsed.search ? parsed.search.replace(/^\\?/, '') : '',\n hash: parsed.hash ? parsed.hash.replace(/^#/, '') : '',\n hostname: parsed.hostname,\n port: parsed.port,\n pathname: (parsed.pathname.charAt(0) === '/') ? parsed.pathname : '/' + parsed.pathname\n };\n } catch (e) {\n throw new Error(`Invalid URL (${url}) with base (${base})`);\n }\n }\n}\n\nfunction _stripIndexHtml(url: string): string {\n return url.replace(/\\/index.html$/, '');\n}\n\n/**\n * Tries to decode the URI component without throwing an exception.\n *\n * @param str value potential URI component to check.\n * @returns the decoded URI if it can be decoded or else `undefined`.\n */\nfunction tryDecodeURIComponent(value: string): string|undefined {\n try {\n return decodeURIComponent(value);\n } catch (e) {\n // Ignore any invalid uri component.\n return undefined;\n }\n}\n\n\n/**\n * Parses an escaped url query string into key-value pairs. Logic taken from\n * https://github.com/angular/angular.js/blob/864c7f0/src/Angular.js#L1382\n */\nfunction parseKeyValue(keyValue: string): {[k: string]: unknown} {\n const obj: {[k: string]: unknown} = {};\n (keyValue || '').split('&').forEach((keyValue) => {\n let splitPoint, key, val;\n if (keyValue) {\n key = keyValue = keyValue.replace(/\\+/g, '%20');\n splitPoint = keyValue.indexOf('=');\n if (splitPoint !== -1) {\n key = keyValue.substring(0, splitPoint);\n val = keyValue.substring(splitPoint + 1);\n }\n key = tryDecodeURIComponent(key);\n if (typeof key !== 'undefined') {\n val = typeof val !== 'undefined' ? tryDecodeURIComponent(val) : true;\n if (!obj.hasOwnProperty(key)) {\n obj[key] = val;\n } else if (Array.isArray(obj[key])) {\n (obj[key] as unknown[]).push(val);\n } else {\n obj[key] = [obj[key], val];\n }\n }\n }\n });\n return obj;\n}\n\n/**\n * Serializes into key-value pairs. Logic taken from\n * https://github.com/angular/angular.js/blob/864c7f0/src/Angular.js#L1409\n */\nfunction toKeyValue(obj: {[k: string]: unknown}) {\n const parts: unknown[] = [];\n for (const key in obj) {\n let value = obj[key];\n if (Array.isArray(value)) {\n value.forEach((arrayValue) => {\n parts.push(\n encodeUriQuery(key, true) +\n (arrayValue === true ? '' : '=' + encodeUriQuery(arrayValue, true)));\n });\n } else {\n parts.push(\n encodeUriQuery(key, true) +\n (value === true ? '' : '=' + encodeUriQuery(value as any, true)));\n }\n }\n return parts.length ? parts.join('&') : '';\n}\n\n\n/**\n * We need our custom method because encodeURIComponent is too aggressive and doesn't follow\n * https://tools.ietf.org/html/rfc3986 with regards to the character set (pchar) allowed in path\n * segments:\n * segment = *pchar\n * pchar = unreserved / pct-encoded / sub-delims / \":\" / \"@\"\n * pct-encoded = \"%\" HEXDIG HEXDIG\n * unreserved = ALPHA / DIGIT / \"-\" / \".\" / \"_\" / \"~\"\n * sub-delims = \"!\" / \"$\" / \"&\" / \"'\" / \"(\" / \")\"\n * / \"*\" / \"+\" / \",\" / \";\" / \"=\"\n *\n * Logic from https://github.com/angular/angular.js/blob/864c7f0/src/Angular.js#L1437\n */\nfunction encodeUriSegment(val: string) {\n return encodeUriQuery(val, true).replace(/%26/g, '&').replace(/%3D/gi, '=').replace(/%2B/gi, '+');\n}\n\n\n/**\n * This method is intended for encoding *key* or *value* parts of query component. We need a custom\n * method because encodeURIComponent is too aggressive and encodes stuff that doesn't have to be\n * encoded per https://tools.ietf.org/html/rfc3986:\n * query = *( pchar / \"/\" / \"?\" )\n * pchar = unreserved / pct-encoded / sub-delims / \":\" / \"@\"\n * unreserved = ALPHA / DIGIT / \"-\" / \".\" / \"_\" / \"~\"\n * pct-encoded = \"%\" HEXDIG HEXDIG\n * sub-delims = \"!\" / \"$\" / \"&\" / \"'\" / \"(\" / \")\"\n * / \"*\" / \"+\" / \",\" / \";\" / \"=\"\n *\n * Logic from https://github.com/angular/angular.js/blob/864c7f0/src/Angular.js#L1456\n */\nfunction encodeUriQuery(val: string, pctEncodeSpaces: boolean = false) {\n return encodeURIComponent(val)\n .replace(/%40/g, '@')\n .replace(/%3A/gi, ':')\n .replace(/%24/g, '$')\n .replace(/%2C/gi, ',')\n .replace(/%3B/gi, ';')\n .replace(/%20/g, (pctEncodeSpaces ? '%20' : '+'));\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {APP_BASE_HREF, CommonModule, HashLocationStrategy, Location, LocationStrategy, PathLocationStrategy, PlatformLocation} from '@angular/common';\nimport {Inject, InjectionToken, ModuleWithProviders, NgModule, Optional} from '@angular/core';\nimport {UpgradeModule} from '@angular/upgrade/static';\n\nimport {$locationShim, $locationShimProvider} from './location_shim';\nimport {AngularJSUrlCodec, UrlCodec} from './params';\n\n\n/**\n * Configuration options for LocationUpgrade.\n *\n * @publicApi\n */\nexport interface LocationUpgradeConfig {\n /**\n * Configures whether the location upgrade module should use the `HashLocationStrategy`\n * or the `PathLocationStrategy`\n */\n useHash?: boolean;\n /**\n * Configures the hash prefix used in the URL when using the `HashLocationStrategy`\n */\n hashPrefix?: string;\n /**\n * Configures the URL codec for encoding and decoding URLs. Default is the `AngularJSCodec`\n */\n urlCodec?: typeof UrlCodec;\n /**\n * Configures the base href when used in server-side rendered applications\n */\n serverBaseHref?: string;\n /**\n * Configures the base href when used in client-side rendered applications\n */\n appBaseHref?: string;\n}\n\n/**\n * A provider token used to configure the location upgrade module.\n *\n * @publicApi\n */\nexport const LOCATION_UPGRADE_CONFIGURATION =\n new InjectionToken<LocationUpgradeConfig>('LOCATION_UPGRADE_CONFIGURATION');\n\nconst APP_BASE_HREF_RESOLVED = new InjectionToken<string>('APP_BASE_HREF_RESOLVED');\n\n/**\n * `NgModule` used for providing and configuring Angular's Unified Location Service for upgrading.\n *\n * @see [Using the Unified Angular Location Service](guide/upgrade#using-the-unified-angular-location-service)\n *\n * @publicApi\n */\n@NgModule({imports: [CommonModule]})\nexport class LocationUpgradeModule {\n static config(config?: LocationUpgradeConfig): ModuleWithProviders<LocationUpgradeModule> {\n return {\n ngModule: LocationUpgradeModule,\n providers: [\n Location,\n {\n provide: $locationShim,\n useFactory: provide$location,\n deps: [UpgradeModule, Location, PlatformLocation, UrlCodec, LocationStrategy]\n },\n {provide: LOCATION_UPGRADE_CONFIGURATION, useValue: config ? config : {}},\n {provide: UrlCodec, useFactory: provideUrlCodec, deps: [LOCATION_UPGRADE_CONFIGURATION]},\n {\n provide: APP_BASE_HREF_RESOLVED,\n useFactory: provideAppBaseHref,\n deps: [LOCATION_UPGRADE_CONFIGURATION, [new Inject(APP_BASE_HREF), new Optional()]]\n },\n {\n provide: LocationStrategy,\n useFactory: provideLocationStrategy,\n deps: [\n PlatformLocation,\n APP_BASE_HREF_RESOLVED,\n LOCATION_UPGRADE_CONFIGURATION,\n ]\n },\n ],\n };\n }\n}\n\nexport function provideAppBaseHref(config: LocationUpgradeConfig, appBaseHref?: string) {\n if (config && config.appBaseHref != null) {\n return config.appBaseHref;\n } else if (appBaseHref != null) {\n return appBaseHref;\n }\n return '';\n}\n\nexport function provideUrlCodec(config: LocationUpgradeConfig) {\n const codec = config && config.urlCodec || AngularJSUrlCodec;\n return new (codec as any)();\n}\n\nexport function provideLocationStrategy(\n platformLocation: PlatformLocation, baseHref: string, options: LocationUpgradeConfig = {}) {\n return options.useHash ? new HashLocationStrategy(platformLocation, baseHref) :\n new PathLocationStrategy(platformLocation, baseHref);\n}\n\nexport function provide$location(\n ngUpgrade: UpgradeModule, location: Location, platformLocation: PlatformLocation,\n urlCodec: UrlCodec, locationStrategy: LocationStrategy) {\n const $locationProvider =\n new $locationShimProvider(ngUpgrade, location, platformLocation, urlCodec, locationStrategy);\n\n return $locationProvider.$get();\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nexport {$locationShim, $locationShimProvider} from './location_shim';\nexport {LOCATION_UPGRADE_CONFIGURATION, LocationUpgradeConfig, LocationUpgradeModule} from './location_upgrade_module';\nexport {AngularJSUrlCodec, UrlCodec} from './params';\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of this package.\n */\nexport * from './src/index';\n\n// This file only reexports content of the `src` folder. Keep it that way.\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n// This file is not used to build this module. It is only used during editing\n// by the TypeScript language service and during build for verification. `ngc`\n// replaces this file with production index.ts when it rewrites private symbol\n// names.\n\nexport * from './public_api';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n\nexport {provide$location as ɵangular_packages_common_upgrade_upgrade_d,provideAppBaseHref as ɵangular_packages_common_upgrade_upgrade_a,provideLocationStrategy as ɵangular_packages_common_upgrade_upgrade_c,provideUrlCodec as ɵangular_packages_common_upgrade_upgrade_b} from './src/location_upgrade_module';"],"names":["ReplaySubject","InjectionToken","Location","UpgradeModule","PlatformLocation","LocationStrategy","Inject","APP_BASE_HREF","Optional","NgModule","CommonModule","HashLocationStrategy","PathLocationStrategy"],"mappings":";;;;;;;;;;;;IAAA;;;;;;;;;;;;;;IAcA;IAEA,IAAI,aAAa,GAAG,UAAS,CAAC,EAAE,CAAC;QAC7B,aAAa,GAAG,MAAM,CAAC,cAAc;aAChC,EAAE,SAAS,EAAE,EAAE,EAAE,YAAY,KAAK,IAAI,UAAU,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC,EAAE,CAAC;YAC5E,UAAU,CAAC,EAAE,CAAC,IAAI,KAAK,IAAI,CAAC,IAAI,CAAC;gBAAE,IAAI,MAA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