{"version":3,"sources":["libs/conversation/core/src/lib/conversation.constants.ts","libs/conversation/core/src/lib/inbox-utils.ts","libs/conversation/core/src/lib/inbox.constants.ts","node_modules/google-libphonenumber/dist/libphonenumber.js","libs/conversation/core/src/lib/participant-utils.ts","libs/conversation/core/src/lib/participant.service.ts","libs/conversation/core/src/lib/inbox.service.ts","libs/conversation/core/src/lib/channels/conversation-channel.abstract.ts","libs/conversation/core/src/lib/channels/conversation-facebook.service.ts","libs/conversation/core/src/lib/channels/conversation-instagram.service.ts","node_modules/@vendasta/google-my-business/fesm2020/vendasta-google-my-business.mjs","libs/conversation/core/src/lib/channels/conversation-google.service.ts","libs/conversation/core/src/lib/conversation-utils.ts","libs/conversation/core/src/lib/firestore.service.ts","libs/conversation/core/src/lib/interface/conversation.interface.ts","libs/conversation/core/src/lib/message-utils.ts","libs/conversation/core/src/lib/interface/assistant.interface.ts","libs/conversation/core/src/lib/conversation.service.ts","libs/conversation/core/src/lib/view.service.ts","libs/conversation/core/src/lib/conversation-list.service.ts","libs/conversation/core/src/lib/firebase.config.ts","libs/conversation/core/src/lib/view-mode.service.ts","libs/conversation/core/src/lib/inbox-navigation.service.ts","libs/conversation/core/src/lib/inbox-notification.service.ts","libs/conversation/core/src/lib/inbox-terms-of-service.service.ts","libs/conversation/core/src/lib/interface/config.interface.ts","libs/conversation/core/src/lib/interface/host-app.interface.ts","libs/conversation/core/src/lib/interface/inbox.interface.ts","libs/conversation/core/src/lib/interface/routes.interface.ts","node_modules/@vendasta/customer-voice-service/fesm2020/vendasta-customer-voice-service.mjs","libs/conversation/core/src/lib/listing.service.ts","libs/conversation/core/src/lib/types.ts","libs/conversation/core/src/index.ts","libs/conversation/core/src/lib/channels/inbox-alert.service.ts","libs/conversation/core/src/lib/channels/conversation-platform.service.ts","libs/conversation/core/src/lib/channels/conversation-sms.service.ts","libs/conversation/core/src/lib/channels/conversation-webchat.service.ts","libs/conversation/core/src/lib/channels/conversation-whatsapp.service.ts","node_modules/@vendasta/facebook/fesm2020/vendasta-facebook.mjs","libs/conversation/core/src/lib/channels/whatsapp-templates.service.ts","libs/conversation/core/src/lib/channels/conversation-email.service.ts","libs/conversation/core/src/lib/conversation-core.module.ts"],"sourcesContent":["import { Timestamp } from 'firebase/firestore';\nimport { ConversationChannel } from '@vendasta/conversation';\n\nexport const PAGE_SIZE = 20;\nexport const FIRESTORE_MESSAGE_LIMIT = 20;\nexport const FIRESTORE_CONVERSATION_LIMIT = 20;\nexport const INBOX = 'Inbox';\n// The zero value of the any timestamp field in Firestore. Used, amongst other things, to denote that an object is not deleted.\nexport const FIRESTORE_ZERO_TIMESTAMP = new Timestamp(10800, 0);\n// List of United States territories that are excluded from SMS feature\n// [Armed Forces Americas, Armed Forces Europe, Armed Forces Pacific, American Samoa, Micronesia, Guam, Marshall Islands, Northern Mariana Islands, Puerto Rico, Palau, U.S. Virgin Islands]\nexport const MARKETING_SERVICES_PIDS = ['VMKS', 'VMKA', 'VMKW', 'VMKV'];\nexport const SUPPORT_PID = 'VMF';\n\nexport const MAX_FILES = 1;\nexport const MAX_RECORDING_TIME = 60000;\n\nexport const POSTHOG_CHANNEL_NAME = {\n [ConversationChannel.CONVERSATION_CHANNEL_UNDEFINED]: 'undefined',\n [ConversationChannel.CONVERSATION_CHANNEL_INTERNAL]: 'platform',\n [ConversationChannel.CONVERSATION_CHANNEL_SMS]: 'sms',\n [ConversationChannel.CONVERSATION_CHANNEL_FACEBOOK]: 'facebook',\n [ConversationChannel.CONVERSATION_CHANNEL_GOOGLE_MESSAGES]: 'google_messages',\n [ConversationChannel.CONVERSATION_CHANNEL_OPENAI]: 'openai',\n [ConversationChannel.CONVERSATION_CHANNEL_EMAIL]: 'email',\n [ConversationChannel.CONVERSATION_CHANNEL_GOOGLE_BUSINESS_COMMUNICATIONS]: 'google_business_communications',\n [ConversationChannel.CONVERSATION_CHANNEL_WEB_CHAT]: 'webchat',\n [ConversationChannel.CONVERSATION_CHANNEL_INSTAGRAM]: 'instagram',\n [ConversationChannel.CONVERSATION_CHANNEL_WHATSAPP]: 'whatsapp',\n} as const satisfies Record; // a type error here likely indicates we are missing a channel in the POSTHOG_CHANNEL_NAME object.\n\nexport const BOOKING_AVAILABILITY_KEY = 'bookingAvailability/v1';\nexport const BOOKING_PREFERRED_KEY = 'preferredScheduleId/v1';\n","/**\n * check if the window view port reach out the max width query\n * @return {boolean}\n */\nexport function isMobile(): boolean {\n return window.matchMedia('(max-width:600px)').matches;\n}\n\n/**\n * check if the window view port reach out the max width query\n * @return {boolean}\n */\nexport function isWideScreen(): boolean {\n return window.matchMedia('(max-width:1440px)').matches;\n}\n","import { Environment } from '@galaxy/core';\n\nexport const IAMUserPrefix = 'U-'; // Unified User ID\nexport const AccountGroupPrefix = 'AG-';\n\nexport const CustomerPrefix = 'CUSTOMER-';\nexport const ContactPrefix = 'CONTACT-';\n\nexport const PCLearnMoreUrl = 'https://support.vendasta.com/hc/en-us/articles/6926511028887/';\n\nexport const GOOGLE_SOURCE_ID = '10010';\nexport const FACEBOOK_SOURCE_ID = '10050';\n\nexport const LOCAL_STORAGE_ID = 'inbox-last-channel-id';\n\nexport const EXCLUDED_GEOGRAPHICAL_US_STATES = ['AA', 'AE', 'AP', 'AS', 'FM', 'GU', 'MH', 'MP', 'PR', 'PW', 'VI'];\n\nexport const DEFAULT_CV_ICON = 'https://vstatic-prod.apigateway.co/business-center-client.9223372035111590735.prod/assets/cv-logo.png';\nexport const DEFAULT_CV_NAME = 'Customer Voice';\nexport const CustomerVoiceAppIDs = {\n [Environment.LOCAL]: 'MP-fba21121b71148c9bb33e11fcd92d520',\n [Environment.TEST]: 'MP-fba21121b71148c9bb33e11fcd92d520',\n [Environment.DEMO]: 'MP-fba21121b71148c9bb33e11fcd92d520',\n [Environment.PROD]: 'MP-c4974d390a044c28aec31e421aa662b2',\n};\n\nexport const InboxProMarketplaceAppIDs = {\n [Environment.LOCAL]: 'MP-SN554CTLCKV2XLZ7XZ3N2WV8S38RZMQW',\n [Environment.TEST]: 'MP-SN554CTLCKV2XLZ7XZ3N2WV8S38RZMQW',\n [Environment.DEMO]: 'MP-SN554CTLCKV2XLZ7XZ3N2WV8S38RZMQW',\n [Environment.PROD]: 'MP-DKT6XHPM6NCCDNK2TPDPVD3PG3V7ZHWP',\n};\n\nexport const REPLACE_NAME_WITH_PHONE_PLACEHOLDER = '-';\n\nexport const INVALID_CONTACT_NAMES = [undefined, null, REPLACE_NAME_WITH_PHONE_PLACEHOLDER, '- -', ''];\n\n// Used as a placeholder / fallback name\nexport const DEFAULT_OPENAI_BOT_NAME = 'AI Assistant';\n\nexport const CONTACTS_PAGE_SIZE = 5;\nexport const TEMPLATES_PAGE_SIZE = 20;\nexport const EMAIL_MESSAGE_BODY_MAX_LENGTH = 300;\n\n// default view id for follow DefaultViewID\nexport const FOLLOWING_VIEW_ID = 'following';\nexport const ALL_VIEW_ID = 'all';\n\n// feature flag ids\nexport const SMB_MESSAGE_PARTNER_FEATURE = 'inbox_smb_message_partner';\nexport const INBOX_OPEN_DEFAULT = 'inbox_open_default';\nexport const INBOX_SMS_A2P = 'inbox_sms_a2p';\nexport const CONVERSATION_SUMMARY = 'conversation_summary';\nexport const INBOX_PREVIEW_CHANNEL_ICON = 'inbox_preview_channel';\nexport const PION_PARTNER_INBOX_SMS = 'pion_partner_inbox_sms';\nexport const INBOX_PLATFORM_CHAT = 'inbox_platform_chat';\nexport const INBOX_AI_RESPONSE = 'inbox_ai_responder';\nexport const ADDITIONAL_PROMPT_FEATURE = 'webchat_additional_prompt_instructions';\nexport const AI_ASSISTANTS = 'ai_assistant_feature';\n\nexport const INBOX_ONE_ON_ONE = 'inbox_one_on_one';\n\nexport const INBOX_SIDE_BAR = 'business_app_conversation_sidebar';\n\nexport const VOICE_AI = 'voice_ai';\n\n// TODO: Use CRM SDK provided constants when available (CRMAAS-355 + MEGA-221)\nexport const STANDARD_CRM_FIELD_EXTERNAL_IDS = {\n firstName: 'standard__first_name',\n lastName: 'standard__last_name',\n phoneNumber: 'standard__phone_number',\n email: 'standard__email',\n updated: 'system__contact_updated',\n created: 'system__contact_created',\n tags: 'standard__tags',\n source: 'standard__contact_source_name',\n};\n\nexport type AppOptionsKeys = 'is_multilocation';\n\nexport const INBOX_CRM_SOURCE_NAME = 'Inbox';\n","(function (f) {\n if (typeof exports === \"object\" && typeof module !== \"undefined\") {\n module.exports = f();\n } else if (typeof define === \"function\" && define.amd) {\n define([], f);\n } else {\n var g;\n if (typeof window !== \"undefined\") {\n g = window;\n } else if (typeof global !== \"undefined\") {\n g = global;\n } else if (typeof self !== \"undefined\") {\n g = self;\n } else {\n g = this;\n }\n g.libphonenumber = f();\n }\n})(function () {\n var define, module, exports;\n return function () {\n function r(e, n, t) {\n function o(i, f) {\n if (!n[i]) {\n if (!e[i]) {\n var c = \"function\" == typeof require && require;\n if (!f && c) return c(i, !0);\n if (u) return u(i, !0);\n var a = new Error(\"Cannot find module '\" + i + \"'\");\n throw a.code = \"MODULE_NOT_FOUND\", a;\n }\n var p = n[i] = {\n exports: {}\n };\n e[i][0].call(p.exports, function (r) {\n var n = e[i][1][r];\n return o(n || r);\n }, p, p.exports, r, e, n, t);\n }\n return n[i].exports;\n }\n for (var u = \"function\" == typeof require && require, i = 0; i < t.length; i++) o(t[i]);\n return o;\n }\n return r;\n }()({\n 1: [function (require, module, exports) {\n (function (global) {\n (function () {\n /*\n \n Copyright The Closure Library Authors.\n SPDX-License-Identifier: Apache-2.0\n */\n var $jscomp = $jscomp || {};\n $jscomp.scope = {};\n $jscomp.createTemplateTagFirstArg = function (a) {\n return a.raw = a;\n };\n $jscomp.createTemplateTagFirstArgWithRaw = function (a, b) {\n a.raw = b;\n return a;\n };\n $jscomp.arrayIteratorImpl = function (a) {\n var b = 0;\n return function () {\n return b < a.length ? {\n done: !1,\n value: a[b++]\n } : {\n done: !0\n };\n };\n };\n $jscomp.arrayIterator = function (a) {\n return {\n next: $jscomp.arrayIteratorImpl(a)\n };\n };\n $jscomp.makeIterator = function (a) {\n var b = \"undefined\" != typeof Symbol && Symbol.iterator && a[Symbol.iterator];\n return b ? b.call(a) : $jscomp.arrayIterator(a);\n };\n $jscomp.arrayFromIterator = function (a) {\n for (var b, c = []; !(b = a.next()).done;) c.push(b.value);\n return c;\n };\n $jscomp.arrayFromIterable = function (a) {\n return a instanceof Array ? a : $jscomp.arrayFromIterator($jscomp.makeIterator(a));\n };\n $jscomp.checkStringArgs = function (a, b, c) {\n if (null == a) throw new TypeError(\"The 'this' value for String.prototype.\" + c + \" must not be null or undefined\");\n if (b instanceof RegExp) throw new TypeError(\"First argument to String.prototype.\" + c + \" must not be a regular expression\");\n return a + \"\";\n };\n $jscomp.ASSUME_ES5 = !1;\n $jscomp.ASSUME_NO_NATIVE_MAP = !1;\n $jscomp.ASSUME_NO_NATIVE_SET = !1;\n $jscomp.SIMPLE_FROUND_POLYFILL = !1;\n $jscomp.ISOLATE_POLYFILLS = !1;\n $jscomp.FORCE_POLYFILL_PROMISE = !1;\n $jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION = !1;\n $jscomp.defineProperty = $jscomp.ASSUME_ES5 || \"function\" == typeof Object.defineProperties ? Object.defineProperty : function (a, b, c) {\n if (a == Array.prototype || a == Object.prototype) return a;\n a[b] = c.value;\n return a;\n };\n $jscomp.getGlobal = function (a) {\n a = [\"object\" == typeof globalThis && globalThis, a, \"object\" == typeof window && window, \"object\" == typeof self && self, \"object\" == typeof global && global];\n for (var b = 0; b < a.length; ++b) {\n var c = a[b];\n if (c && c.Math == Math) return c;\n }\n throw Error(\"Cannot find global object\");\n };\n $jscomp.global = $jscomp.getGlobal(this);\n $jscomp.IS_SYMBOL_NATIVE = \"function\" === typeof Symbol && \"symbol\" === typeof Symbol(\"x\");\n $jscomp.TRUST_ES6_POLYFILLS = !$jscomp.ISOLATE_POLYFILLS || $jscomp.IS_SYMBOL_NATIVE;\n $jscomp.polyfills = {};\n $jscomp.propertyToPolyfillSymbol = {};\n $jscomp.POLYFILL_PREFIX = \"$jscp$\";\n var $jscomp$lookupPolyfilledValue = function (a, b) {\n var c = $jscomp.propertyToPolyfillSymbol[b];\n if (null == c) return a[b];\n c = a[c];\n return void 0 !== c ? c : a[b];\n };\n $jscomp.polyfill = function (a, b, c, d) {\n b && ($jscomp.ISOLATE_POLYFILLS ? $jscomp.polyfillIsolated(a, b, c, d) : $jscomp.polyfillUnisolated(a, b, c, d));\n };\n $jscomp.polyfillUnisolated = function (a, b, c, d) {\n c = $jscomp.global;\n a = a.split(\".\");\n for (d = 0; d < a.length - 1; d++) {\n var e = a[d];\n if (!(e in c)) return;\n c = c[e];\n }\n a = a[a.length - 1];\n d = c[a];\n b = b(d);\n b != d && null != b && $jscomp.defineProperty(c, a, {\n configurable: !0,\n writable: !0,\n value: b\n });\n };\n $jscomp.polyfillIsolated = function (a, b, c, d) {\n var e = a.split(\".\");\n a = 1 === e.length;\n d = e[0];\n d = !a && d in $jscomp.polyfills ? $jscomp.polyfills : $jscomp.global;\n for (var f = 0; f < e.length - 1; f++) {\n var g = e[f];\n if (!(g in d)) return;\n d = d[g];\n }\n e = e[e.length - 1];\n c = $jscomp.IS_SYMBOL_NATIVE && \"es6\" === c ? d[e] : null;\n b = b(c);\n null != b && (a ? $jscomp.defineProperty($jscomp.polyfills, e, {\n configurable: !0,\n writable: !0,\n value: b\n }) : b !== c && ($jscomp.propertyToPolyfillSymbol[e] = $jscomp.IS_SYMBOL_NATIVE ? $jscomp.global.Symbol(e) : $jscomp.POLYFILL_PREFIX + e, e = $jscomp.propertyToPolyfillSymbol[e], $jscomp.defineProperty(d, e, {\n configurable: !0,\n writable: !0,\n value: b\n })));\n };\n $jscomp.polyfill(\"String.prototype.endsWith\", function (a) {\n return a ? a : function (b, c) {\n var d = $jscomp.checkStringArgs(this, b, \"endsWith\");\n b += \"\";\n void 0 === c && (c = d.length);\n c = Math.max(0, Math.min(c | 0, d.length));\n for (var e = b.length; 0 < e && 0 < c;) if (d[--c] != b[--e]) return !1;\n return 0 >= e;\n };\n }, \"es6\", \"es3\");\n $jscomp.findInternal = function (a, b, c) {\n a instanceof String && (a = String(a));\n for (var d = a.length, e = 0; e < d; e++) {\n var f = a[e];\n if (b.call(c, f, e, a)) return {\n i: e,\n v: f\n };\n }\n return {\n i: -1,\n v: void 0\n };\n };\n $jscomp.polyfill(\"Array.prototype.find\", function (a) {\n return a ? a : function (b, c) {\n return $jscomp.findInternal(this, b, c).v;\n };\n }, \"es6\", \"es3\");\n $jscomp.polyfill(\"String.prototype.startsWith\", function (a) {\n return a ? a : function (b, c) {\n var d = $jscomp.checkStringArgs(this, b, \"startsWith\");\n b += \"\";\n var e = d.length,\n f = b.length;\n c = Math.max(0, Math.min(c | 0, d.length));\n for (var g = 0; g < f && c < e;) if (d[c++] != b[g++]) return !1;\n return g >= f;\n };\n }, \"es6\", \"es3\");\n $jscomp.polyfill(\"String.prototype.repeat\", function (a) {\n return a ? a : function (b) {\n var c = $jscomp.checkStringArgs(this, null, \"repeat\");\n if (0 > b || 1342177279 < b) throw new RangeError(\"Invalid count value\");\n b |= 0;\n for (var d = \"\"; b;) if (b & 1 && (d += c), b >>>= 1) c += c;\n return d;\n };\n }, \"es6\", \"es3\");\n $jscomp.initSymbol = function () {};\n $jscomp.polyfill(\"Symbol\", function (a) {\n if (a) return a;\n var b = function (e, f) {\n this.$jscomp$symbol$id_ = e;\n $jscomp.defineProperty(this, \"description\", {\n configurable: !0,\n writable: !0,\n value: f\n });\n };\n b.prototype.toString = function () {\n return this.$jscomp$symbol$id_;\n };\n var c = 0,\n d = function (e) {\n if (this instanceof d) throw new TypeError(\"Symbol is not a constructor\");\n return new b(\"jscomp_symbol_\" + (e || \"\") + \"_\" + c++, e);\n };\n return d;\n }, \"es6\", \"es3\");\n $jscomp.polyfill(\"Symbol.iterator\", function (a) {\n if (a) return a;\n a = Symbol(\"Symbol.iterator\");\n for (var b = \"Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array\".split(\" \"), c = 0; c < b.length; c++) {\n var d = $jscomp.global[b[c]];\n \"function\" === typeof d && \"function\" != typeof d.prototype[a] && $jscomp.defineProperty(d.prototype, a, {\n configurable: !0,\n writable: !0,\n value: function () {\n return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this));\n }\n });\n }\n return a;\n }, \"es6\", \"es3\");\n $jscomp.iteratorPrototype = function (a) {\n a = {\n next: a\n };\n a[Symbol.iterator] = function () {\n return this;\n };\n return a;\n };\n $jscomp.iteratorFromArray = function (a, b) {\n a instanceof String && (a += \"\");\n var c = 0,\n d = !1,\n e = {\n next: function () {\n if (!d && c < a.length) {\n var f = c++;\n return {\n value: b(f, a[f]),\n done: !1\n };\n }\n d = !0;\n return {\n done: !0,\n value: void 0\n };\n }\n };\n e[Symbol.iterator] = function () {\n return e;\n };\n return e;\n };\n $jscomp.polyfill(\"Array.prototype.keys\", function (a) {\n return a ? a : function () {\n return $jscomp.iteratorFromArray(this, function (b) {\n return b;\n });\n };\n }, \"es6\", \"es3\");\n $jscomp.polyfill(\"Object.is\", function (a) {\n return a ? a : function (b, c) {\n return b === c ? 0 !== b || 1 / b === 1 / c : b !== b && c !== c;\n };\n }, \"es6\", \"es3\");\n $jscomp.polyfill(\"Array.prototype.includes\", function (a) {\n return a ? a : function (b, c) {\n var d = this;\n d instanceof String && (d = String(d));\n var e = d.length;\n c = c || 0;\n for (0 > c && (c = Math.max(c + e, 0)); c < e; c++) {\n var f = d[c];\n if (f === b || Object.is(f, b)) return !0;\n }\n return !1;\n };\n }, \"es7\", \"es3\");\n $jscomp.polyfill(\"String.prototype.includes\", function (a) {\n return a ? a : function (b, c) {\n return -1 !== $jscomp.checkStringArgs(this, b, \"includes\").indexOf(b, c || 0);\n };\n }, \"es6\", \"es3\");\n var COMPILED = !0,\n goog = goog || {};\n goog.global = this || self;\n goog.exportPath_ = function (a, b, c, d) {\n a = a.split(\".\");\n d = d || goog.global;\n a[0] in d || \"undefined\" == typeof d.execScript || d.execScript(\"var \" + a[0]);\n for (var e; a.length && (e = a.shift());) if (a.length || void 0 === b) d = d[e] && d[e] !== Object.prototype[e] ? d[e] : d[e] = {};else if (!c && goog.isObject(b) && goog.isObject(d[e])) for (var f in b) b.hasOwnProperty(f) && (d[e][f] = b[f]);else d[e] = b;\n };\n goog.define = function (a, b) {\n if (!COMPILED) {\n var c = goog.global.CLOSURE_UNCOMPILED_DEFINES,\n d = goog.global.CLOSURE_DEFINES;\n c && void 0 === c.nodeType && Object.prototype.hasOwnProperty.call(c, a) ? b = c[a] : d && void 0 === d.nodeType && Object.prototype.hasOwnProperty.call(d, a) && (b = d[a]);\n }\n return b;\n };\n goog.FEATURESET_YEAR = 2012;\n goog.DEBUG = !0;\n goog.LOCALE = \"en\";\n goog.TRUSTED_SITE = !0;\n goog.DISALLOW_TEST_ONLY_CODE = COMPILED && !goog.DEBUG;\n goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING = !1;\n goog.provide = function (a) {\n if (goog.isInModuleLoader_()) throw Error(\"goog.provide cannot be used within a module.\");\n if (!COMPILED && goog.isProvided_(a)) throw Error('Namespace \"' + a + '\" already declared.');\n goog.constructNamespace_(a);\n };\n goog.constructNamespace_ = function (a, b, c) {\n if (!COMPILED) {\n delete goog.implicitNamespaces_[a];\n for (var d = a; (d = d.substring(0, d.lastIndexOf(\".\"))) && !goog.getObjectByName(d);) goog.implicitNamespaces_[d] = !0;\n }\n goog.exportPath_(a, b, c);\n };\n goog.getScriptNonce = function (a) {\n if (a && a != goog.global) return goog.getScriptNonce_(a.document);\n null === goog.cspNonce_ && (goog.cspNonce_ = goog.getScriptNonce_(goog.global.document));\n return goog.cspNonce_;\n };\n goog.NONCE_PATTERN_ = /^[\\w+/_-]+[=]{0,2}$/;\n goog.cspNonce_ = null;\n goog.getScriptNonce_ = function (a) {\n return (a = a.querySelector && a.querySelector(\"script[nonce]\")) && (a = a.nonce || a.getAttribute(\"nonce\")) && goog.NONCE_PATTERN_.test(a) ? a : \"\";\n };\n goog.VALID_MODULE_RE_ = /^[a-zA-Z_$][a-zA-Z0-9._$]*$/;\n goog.module = function (a) {\n if (\"string\" !== typeof a || !a || -1 == a.search(goog.VALID_MODULE_RE_)) throw Error(\"Invalid module identifier\");\n if (!goog.isInGoogModuleLoader_()) throw Error(\"Module \" + a + \" has been loaded incorrectly. Note, modules cannot be loaded as normal scripts. They require some kind of pre-processing step. You're likely trying to load a module via a script tag or as a part of a concatenated bundle without rewriting the module. For more info see: https://github.com/google/closure-library/wiki/goog.module:-an-ES6-module-like-alternative-to-goog.provide.\");\n if (goog.moduleLoaderState_.moduleName) throw Error(\"goog.module may only be called once per module.\");\n goog.moduleLoaderState_.moduleName = a;\n if (!COMPILED) {\n if (goog.isProvided_(a)) throw Error('Namespace \"' + a + '\" already declared.');\n delete goog.implicitNamespaces_[a];\n }\n };\n goog.module.get = function (a) {\n return goog.module.getInternal_(a);\n };\n goog.module.getInternal_ = function (a) {\n if (!COMPILED) {\n if (a in goog.loadedModules_) return goog.loadedModules_[a].exports;\n if (!goog.implicitNamespaces_[a]) return a = goog.getObjectByName(a), null != a ? a : null;\n }\n return null;\n };\n goog.ModuleType = {\n ES6: \"es6\",\n GOOG: \"goog\"\n };\n goog.moduleLoaderState_ = null;\n goog.isInModuleLoader_ = function () {\n return goog.isInGoogModuleLoader_() || goog.isInEs6ModuleLoader_();\n };\n goog.isInGoogModuleLoader_ = function () {\n return !!goog.moduleLoaderState_ && goog.moduleLoaderState_.type == goog.ModuleType.GOOG;\n };\n goog.isInEs6ModuleLoader_ = function () {\n if (goog.moduleLoaderState_ && goog.moduleLoaderState_.type == goog.ModuleType.ES6) return !0;\n var a = goog.global.$jscomp;\n return a ? \"function\" != typeof a.getCurrentModulePath ? !1 : !!a.getCurrentModulePath() : !1;\n };\n goog.module.declareLegacyNamespace = function () {\n if (!COMPILED && !goog.isInGoogModuleLoader_()) throw Error(\"goog.module.declareLegacyNamespace must be called from within a goog.module\");\n if (!COMPILED && !goog.moduleLoaderState_.moduleName) throw Error(\"goog.module must be called prior to goog.module.declareLegacyNamespace.\");\n goog.moduleLoaderState_.declareLegacyNamespace = !0;\n };\n goog.declareModuleId = function (a) {\n if (!COMPILED) {\n if (!goog.isInEs6ModuleLoader_()) throw Error(\"goog.declareModuleId may only be called from within an ES6 module\");\n if (goog.moduleLoaderState_ && goog.moduleLoaderState_.moduleName) throw Error(\"goog.declareModuleId may only be called once per module.\");\n if (a in goog.loadedModules_) throw Error('Module with namespace \"' + a + '\" already exists.');\n }\n if (goog.moduleLoaderState_) goog.moduleLoaderState_.moduleName = a;else {\n var b = goog.global.$jscomp;\n if (!b || \"function\" != typeof b.getCurrentModulePath) throw Error('Module with namespace \"' + a + '\" has been loaded incorrectly.');\n b = b.require(b.getCurrentModulePath());\n goog.loadedModules_[a] = {\n exports: b,\n type: goog.ModuleType.ES6,\n moduleId: a\n };\n }\n };\n goog.setTestOnly = function (a) {\n if (goog.DISALLOW_TEST_ONLY_CODE) throw a = a || \"\", Error(\"Importing test-only code into non-debug environment\" + (a ? \": \" + a : \".\"));\n };\n goog.forwardDeclare = function (a) {};\n COMPILED || (goog.isProvided_ = function (a) {\n return a in goog.loadedModules_ || !goog.implicitNamespaces_[a] && null != goog.getObjectByName(a);\n }, goog.implicitNamespaces_ = {\n \"goog.module\": !0\n });\n goog.getObjectByName = function (a, b) {\n a = a.split(\".\");\n b = b || goog.global;\n for (var c = 0; c < a.length; c++) if (b = b[a[c]], null == b) return null;\n return b;\n };\n goog.addDependency = function (a, b, c, d) {\n !COMPILED && goog.DEPENDENCIES_ENABLED && goog.debugLoader_.addDependency(a, b, c, d);\n };\n goog.ENABLE_DEBUG_LOADER = !0;\n goog.logToConsole_ = function (a) {\n goog.global.console && goog.global.console.error(a);\n };\n goog.require = function (a) {\n if (!COMPILED) {\n goog.ENABLE_DEBUG_LOADER && goog.debugLoader_.requested(a);\n if (goog.isProvided_(a)) {\n if (goog.isInModuleLoader_()) return goog.module.getInternal_(a);\n } else if (goog.ENABLE_DEBUG_LOADER) {\n var b = goog.moduleLoaderState_;\n goog.moduleLoaderState_ = null;\n try {\n goog.debugLoader_.load_(a);\n } finally {\n goog.moduleLoaderState_ = b;\n }\n }\n return null;\n }\n };\n goog.requireType = function (a) {\n return {};\n };\n goog.basePath = \"\";\n goog.nullFunction = function () {};\n goog.abstractMethod = function () {\n throw Error(\"unimplemented abstract method\");\n };\n goog.addSingletonGetter = function (a) {\n a.instance_ = void 0;\n a.getInstance = function () {\n if (a.instance_) return a.instance_;\n goog.DEBUG && (goog.instantiatedSingletons_[goog.instantiatedSingletons_.length] = a);\n return a.instance_ = new a();\n };\n };\n goog.instantiatedSingletons_ = [];\n goog.LOAD_MODULE_USING_EVAL = !0;\n goog.SEAL_MODULE_EXPORTS = goog.DEBUG;\n goog.loadedModules_ = {};\n goog.DEPENDENCIES_ENABLED = !COMPILED && goog.ENABLE_DEBUG_LOADER;\n goog.TRANSPILE = \"detect\";\n goog.ASSUME_ES_MODULES_TRANSPILED = !1;\n goog.TRANSPILE_TO_LANGUAGE = \"\";\n goog.TRANSPILER = \"transpile.js\";\n goog.hasBadLetScoping = null;\n goog.useSafari10Workaround = function () {\n if (null == goog.hasBadLetScoping) {\n try {\n var a = !eval('\"use strict\";let x = 1; function f() { return typeof x; };f() == \"number\";');\n } catch (b) {\n a = !1;\n }\n goog.hasBadLetScoping = a;\n }\n return goog.hasBadLetScoping;\n };\n goog.workaroundSafari10EvalBug = function (a) {\n return \"(function(){\" + a + \"\\n;})();\\n\";\n };\n goog.loadModule = function (a) {\n var b = goog.moduleLoaderState_;\n try {\n goog.moduleLoaderState_ = {\n moduleName: \"\",\n declareLegacyNamespace: !1,\n type: goog.ModuleType.GOOG\n };\n var c = {},\n d = c;\n if (\"function\" === typeof a) d = a.call(void 0, d);else if (\"string\" === typeof a) goog.useSafari10Workaround() && (a = goog.workaroundSafari10EvalBug(a)), d = goog.loadModuleFromSource_.call(void 0, d, a);else throw Error(\"Invalid module definition\");\n var e = goog.moduleLoaderState_.moduleName;\n if (\"string\" === typeof e && e) goog.moduleLoaderState_.declareLegacyNamespace ? goog.constructNamespace_(e, d, c !== d) : goog.SEAL_MODULE_EXPORTS && Object.seal && \"object\" == typeof d && null != d && Object.seal(d), goog.loadedModules_[e] = {\n exports: d,\n type: goog.ModuleType.GOOG,\n moduleId: goog.moduleLoaderState_.moduleName\n };else throw Error('Invalid module name \"' + e + '\"');\n } finally {\n goog.moduleLoaderState_ = b;\n }\n };\n goog.loadModuleFromSource_ = function (a, b) {\n eval(b);\n return a;\n };\n goog.normalizePath_ = function (a) {\n a = a.split(\"/\");\n for (var b = 0; b < a.length;) \".\" == a[b] ? a.splice(b, 1) : b && \"..\" == a[b] && a[b - 1] && \"..\" != a[b - 1] ? a.splice(--b, 2) : b++;\n return a.join(\"/\");\n };\n goog.loadFileSync_ = function (a) {\n if (goog.global.CLOSURE_LOAD_FILE_SYNC) return goog.global.CLOSURE_LOAD_FILE_SYNC(a);\n try {\n var b = new goog.global.XMLHttpRequest();\n b.open(\"get\", a, !1);\n b.send();\n return 0 == b.status || 200 == b.status ? b.responseText : null;\n } catch (c) {\n return null;\n }\n };\n goog.transpile_ = function (a, b, c) {\n var d = goog.global.$jscomp;\n d || (goog.global.$jscomp = d = {});\n var e = d.transpile;\n if (!e) {\n var f = goog.basePath + goog.TRANSPILER,\n g = goog.loadFileSync_(f);\n if (g) {\n (function () {\n (0, eval)(g + \"\\n//# sourceURL=\" + f);\n }).call(goog.global);\n if (goog.global.$gwtExport && goog.global.$gwtExport.$jscomp && !goog.global.$gwtExport.$jscomp.transpile) throw Error('The transpiler did not properly export the \"transpile\" method. $gwtExport: ' + JSON.stringify(goog.global.$gwtExport));\n goog.global.$jscomp.transpile = goog.global.$gwtExport.$jscomp.transpile;\n d = goog.global.$jscomp;\n e = d.transpile;\n }\n }\n e || (e = d.transpile = function (h, k) {\n goog.logToConsole_(k + \" requires transpilation but no transpiler was found.\");\n return h;\n });\n return e(a, b, c);\n };\n goog.typeOf = function (a) {\n var b = typeof a;\n return \"object\" != b ? b : a ? Array.isArray(a) ? \"array\" : b : \"null\";\n };\n goog.isArrayLike = function (a) {\n var b = goog.typeOf(a);\n return \"array\" == b || \"object\" == b && \"number\" == typeof a.length;\n };\n goog.isDateLike = function (a) {\n return goog.isObject(a) && \"function\" == typeof a.getFullYear;\n };\n goog.isObject = function (a) {\n var b = typeof a;\n return \"object\" == b && null != a || \"function\" == b;\n };\n goog.getUid = function (a) {\n return Object.prototype.hasOwnProperty.call(a, goog.UID_PROPERTY_) && a[goog.UID_PROPERTY_] || (a[goog.UID_PROPERTY_] = ++goog.uidCounter_);\n };\n goog.hasUid = function (a) {\n return !!a[goog.UID_PROPERTY_];\n };\n goog.removeUid = function (a) {\n null !== a && \"removeAttribute\" in a && a.removeAttribute(goog.UID_PROPERTY_);\n try {\n delete a[goog.UID_PROPERTY_];\n } catch (b) {}\n };\n goog.UID_PROPERTY_ = \"closure_uid_\" + (1E9 * Math.random() >>> 0);\n goog.uidCounter_ = 0;\n goog.cloneObject = function (a) {\n var b = goog.typeOf(a);\n if (\"object\" == b || \"array\" == b) {\n if (\"function\" === typeof a.clone) return a.clone();\n b = \"array\" == b ? [] : {};\n for (var c in a) b[c] = goog.cloneObject(a[c]);\n return b;\n }\n return a;\n };\n goog.bindNative_ = function (a, b, c) {\n return a.call.apply(a.bind, arguments);\n };\n goog.bindJs_ = function (a, b, c) {\n if (!a) throw Error();\n if (2 < arguments.length) {\n var d = Array.prototype.slice.call(arguments, 2);\n return function () {\n var e = Array.prototype.slice.call(arguments);\n Array.prototype.unshift.apply(e, d);\n return a.apply(b, e);\n };\n }\n return function () {\n return a.apply(b, arguments);\n };\n };\n goog.bind = function (a, b, c) {\n Function.prototype.bind && -1 != Function.prototype.bind.toString().indexOf(\"native code\") ? goog.bind = goog.bindNative_ : goog.bind = goog.bindJs_;\n return goog.bind.apply(null, arguments);\n };\n goog.partial = function (a, b) {\n var c = Array.prototype.slice.call(arguments, 1);\n return function () {\n var d = c.slice();\n d.push.apply(d, arguments);\n return a.apply(this, d);\n };\n };\n goog.mixin = function (a, b) {\n for (var c in b) a[c] = b[c];\n };\n goog.now = function () {\n return Date.now();\n };\n goog.globalEval = function (a) {\n (0, eval)(a);\n };\n goog.getCssName = function (a, b) {\n if (\".\" == String(a).charAt(0)) throw Error('className passed in goog.getCssName must not start with \".\". You passed: ' + a);\n var c = function (e) {\n return goog.cssNameMapping_[e] || e;\n },\n d = function (e) {\n e = e.split(\"-\");\n for (var f = [], g = 0; g < e.length; g++) f.push(c(e[g]));\n return f.join(\"-\");\n };\n d = goog.cssNameMapping_ ? \"BY_WHOLE\" == goog.cssNameMappingStyle_ ? c : d : function (e) {\n return e;\n };\n a = b ? a + \"-\" + d(b) : d(a);\n return goog.global.CLOSURE_CSS_NAME_MAP_FN ? goog.global.CLOSURE_CSS_NAME_MAP_FN(a) : a;\n };\n goog.setCssNameMapping = function (a, b) {\n goog.cssNameMapping_ = a;\n goog.cssNameMappingStyle_ = b;\n };\n !COMPILED && goog.global.CLOSURE_CSS_NAME_MAPPING && (goog.cssNameMapping_ = goog.global.CLOSURE_CSS_NAME_MAPPING);\n goog.getMsg = function (a, b, c) {\n c && c.html && (a = a.replace(/\").replace(/'/g, \"'\").replace(/"/g, '\"').replace(/&/g, \"&\"));\n b && (a = a.replace(/\\{\\$([^}]+)}/g, function (d, e) {\n return null != b && e in b ? b[e] : d;\n }));\n return a;\n };\n goog.getMsgWithFallback = function (a, b) {\n return a;\n };\n goog.exportSymbol = function (a, b, c) {\n goog.exportPath_(a, b, !0, c);\n };\n goog.exportProperty = function (a, b, c) {\n a[b] = c;\n };\n goog.inherits = function (a, b) {\n function c() {}\n c.prototype = b.prototype;\n a.superClass_ = b.prototype;\n a.prototype = new c();\n a.prototype.constructor = a;\n a.base = function (d, e, f) {\n for (var g = Array(arguments.length - 2), h = 2; h < arguments.length; h++) g[h - 2] = arguments[h];\n return b.prototype[e].apply(d, g);\n };\n };\n goog.scope = function (a) {\n if (goog.isInModuleLoader_()) throw Error(\"goog.scope is not supported within a module.\");\n a.call(goog.global);\n };\n COMPILED || (goog.global.COMPILED = COMPILED);\n goog.defineClass = function (a, b) {\n var c = b.constructor,\n d = b.statics;\n c && c != Object.prototype.constructor || (c = function () {\n throw Error(\"cannot instantiate an interface (no constructor defined).\");\n });\n c = goog.defineClass.createSealingConstructor_(c, a);\n a && goog.inherits(c, a);\n delete b.constructor;\n delete b.statics;\n goog.defineClass.applyProperties_(c.prototype, b);\n null != d && (d instanceof Function ? d(c) : goog.defineClass.applyProperties_(c, d));\n return c;\n };\n goog.defineClass.SEAL_CLASS_INSTANCES = goog.DEBUG;\n goog.defineClass.createSealingConstructor_ = function (a, b) {\n return goog.defineClass.SEAL_CLASS_INSTANCES ? function () {\n var c = a.apply(this, arguments) || this;\n c[goog.UID_PROPERTY_] = c[goog.UID_PROPERTY_];\n return c;\n } : a;\n };\n goog.defineClass.OBJECT_PROTOTYPE_FIELDS_ = \"constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf\".split(\" \");\n goog.defineClass.applyProperties_ = function (a, b) {\n for (var c in b) Object.prototype.hasOwnProperty.call(b, c) && (a[c] = b[c]);\n for (var d = 0; d < goog.defineClass.OBJECT_PROTOTYPE_FIELDS_.length; d++) c = goog.defineClass.OBJECT_PROTOTYPE_FIELDS_[d], Object.prototype.hasOwnProperty.call(b, c) && (a[c] = b[c]);\n };\n !COMPILED && goog.DEPENDENCIES_ENABLED && (goog.inHtmlDocument_ = function () {\n var a = goog.global.document;\n return null != a && \"write\" in a;\n }, goog.isDocumentLoading_ = function () {\n var a = goog.global.document;\n return a.attachEvent ? \"complete\" != a.readyState : \"loading\" == a.readyState;\n }, goog.findBasePath_ = function () {\n if (void 0 != goog.global.CLOSURE_BASE_PATH && \"string\" === typeof goog.global.CLOSURE_BASE_PATH) goog.basePath = goog.global.CLOSURE_BASE_PATH;else if (goog.inHtmlDocument_()) {\n var a = goog.global.document,\n b = a.currentScript;\n a = b ? [b] : a.getElementsByTagName(\"SCRIPT\");\n for (b = a.length - 1; 0 <= b; --b) {\n var c = a[b].src,\n d = c.lastIndexOf(\"?\");\n d = -1 == d ? c.length : d;\n if (\"base.js\" == c.substr(d - 7, 7)) {\n goog.basePath = c.substr(0, d - 7);\n break;\n }\n }\n }\n }, goog.findBasePath_(), goog.Transpiler = function () {\n this.requiresTranspilation_ = null;\n this.transpilationTarget_ = goog.TRANSPILE_TO_LANGUAGE;\n }, goog.Transpiler.prototype.createRequiresTranspilation_ = function () {\n function a(g, h) {\n e ? d[g] = !0 : h() ? (c = g, d[g] = !1) : e = d[g] = !0;\n }\n function b(g) {\n try {\n return !!eval(g);\n } catch (h) {\n return !1;\n }\n }\n var c = \"es3\",\n d = {\n es3: !1\n },\n e = !1,\n f = goog.global.navigator && goog.global.navigator.userAgent ? goog.global.navigator.userAgent : \"\";\n a(\"es5\", function () {\n return b(\"[1,].length==1\");\n });\n a(\"es6\", function () {\n return f.match(/Edge\\/(\\d+)(\\.\\d)*/i) ? !1 : b('(()=>{\"use strict\";class X{constructor(){if(new.target!=String)throw 1;this.x=42}}let q=Reflect.construct(X,[],String);if(q.x!=42||!(q instanceof String))throw 1;for(const a of[2,3]){if(a==2)continue;function f(z={a}){let a=0;return z.a}{function f(){return 0;}}return f()==3}})()');\n });\n a(\"es7\", function () {\n return b(\"2 ** 2 == 4\");\n });\n a(\"es8\", function () {\n return b(\"async () => 1, true\");\n });\n a(\"es9\", function () {\n return b(\"({...rest} = {}), true\");\n });\n a(\"es_next\", function () {\n return !1;\n });\n return {\n target: c,\n map: d\n };\n }, goog.Transpiler.prototype.needsTranspile = function (a, b) {\n if (\"always\" == goog.TRANSPILE) return !0;\n if (\"never\" == goog.TRANSPILE) return !1;\n if (!this.requiresTranspilation_) {\n var c = this.createRequiresTranspilation_();\n this.requiresTranspilation_ = c.map;\n this.transpilationTarget_ = this.transpilationTarget_ || c.target;\n }\n if (a in this.requiresTranspilation_) return this.requiresTranspilation_[a] ? !0 : !goog.inHtmlDocument_() || \"es6\" != b || \"noModule\" in goog.global.document.createElement(\"script\") ? !1 : !0;\n throw Error(\"Unknown language mode: \" + a);\n }, goog.Transpiler.prototype.transpile = function (a, b) {\n return goog.transpile_(a, b, this.transpilationTarget_);\n }, goog.transpiler_ = new goog.Transpiler(), goog.protectScriptTag_ = function (a) {\n return a.replace(/<\\/(SCRIPT)/ig, \"\\\\x3c/$1\");\n }, goog.DebugLoader_ = function () {\n this.dependencies_ = {};\n this.idToPath_ = {};\n this.written_ = {};\n this.loadingDeps_ = [];\n this.depsToLoad_ = [];\n this.paused_ = !1;\n this.factory_ = new goog.DependencyFactory(goog.transpiler_);\n this.deferredCallbacks_ = {};\n this.deferredQueue_ = [];\n }, goog.DebugLoader_.prototype.bootstrap = function (a, b) {\n function c() {\n d && (goog.global.setTimeout(d, 0), d = null);\n }\n var d = b;\n if (a.length) {\n b = [];\n for (var e = 0; e < a.length; e++) {\n var f = this.getPathFromDeps_(a[e]);\n if (!f) throw Error(\"Unregonized namespace: \" + a[e]);\n b.push(this.dependencies_[f]);\n }\n f = goog.require;\n var g = 0;\n for (e = 0; e < a.length; e++) f(a[e]), b[e].onLoad(function () {\n ++g == a.length && c();\n });\n } else c();\n }, goog.DebugLoader_.prototype.loadClosureDeps = function () {\n this.depsToLoad_.push(this.factory_.createDependency(goog.normalizePath_(goog.basePath + \"deps.js\"), \"deps.js\", [], [], {}, !1));\n this.loadDeps_();\n }, goog.DebugLoader_.prototype.requested = function (a, b) {\n (a = this.getPathFromDeps_(a)) && (b || this.areDepsLoaded_(this.dependencies_[a].requires)) && (b = this.deferredCallbacks_[a]) && (delete this.deferredCallbacks_[a], b());\n }, goog.DebugLoader_.prototype.setDependencyFactory = function (a) {\n this.factory_ = a;\n }, goog.DebugLoader_.prototype.load_ = function (a) {\n if (this.getPathFromDeps_(a)) {\n var b = this,\n c = [],\n d = function (e) {\n var f = b.getPathFromDeps_(e);\n if (!f) throw Error(\"Bad dependency path or symbol: \" + e);\n if (!b.written_[f]) {\n b.written_[f] = !0;\n e = b.dependencies_[f];\n for (f = 0; f < e.requires.length; f++) goog.isProvided_(e.requires[f]) || d(e.requires[f]);\n c.push(e);\n }\n };\n d(a);\n a = !!this.depsToLoad_.length;\n this.depsToLoad_ = this.depsToLoad_.concat(c);\n this.paused_ || a || this.loadDeps_();\n } else throw a = \"goog.require could not find: \" + a, goog.logToConsole_(a), Error(a);\n }, goog.DebugLoader_.prototype.loadDeps_ = function () {\n for (var a = this, b = this.paused_; this.depsToLoad_.length && !b;) (function () {\n var c = !1,\n d = a.depsToLoad_.shift(),\n e = !1;\n a.loading_(d);\n var f = {\n pause: function () {\n if (c) throw Error(\"Cannot call pause after the call to load.\");\n b = !0;\n },\n resume: function () {\n c ? a.resume_() : b = !1;\n },\n loaded: function () {\n if (e) throw Error(\"Double call to loaded.\");\n e = !0;\n a.loaded_(d);\n },\n pending: function () {\n for (var g = [], h = 0; h < a.loadingDeps_.length; h++) g.push(a.loadingDeps_[h]);\n return g;\n },\n setModuleState: function (g) {\n goog.moduleLoaderState_ = {\n type: g,\n moduleName: \"\",\n declareLegacyNamespace: !1\n };\n },\n registerEs6ModuleExports: function (g, h, k) {\n k && (goog.loadedModules_[k] = {\n exports: h,\n type: goog.ModuleType.ES6,\n moduleId: k || \"\"\n });\n },\n registerGoogModuleExports: function (g, h) {\n goog.loadedModules_[g] = {\n exports: h,\n type: goog.ModuleType.GOOG,\n moduleId: g\n };\n },\n clearModuleState: function () {\n goog.moduleLoaderState_ = null;\n },\n defer: function (g) {\n if (c) throw Error(\"Cannot register with defer after the call to load.\");\n a.defer_(d, g);\n },\n areDepsLoaded: function () {\n return a.areDepsLoaded_(d.requires);\n }\n };\n try {\n d.load(f);\n } finally {\n c = !0;\n }\n })();\n b && this.pause_();\n }, goog.DebugLoader_.prototype.pause_ = function () {\n this.paused_ = !0;\n }, goog.DebugLoader_.prototype.resume_ = function () {\n this.paused_ && (this.paused_ = !1, this.loadDeps_());\n }, goog.DebugLoader_.prototype.loading_ = function (a) {\n this.loadingDeps_.push(a);\n }, goog.DebugLoader_.prototype.loaded_ = function (a) {\n for (var b = 0; b < this.loadingDeps_.length; b++) if (this.loadingDeps_[b] == a) {\n this.loadingDeps_.splice(b, 1);\n break;\n }\n for (b = 0; b < this.deferredQueue_.length; b++) if (this.deferredQueue_[b] == a.path) {\n this.deferredQueue_.splice(b, 1);\n break;\n }\n if (this.loadingDeps_.length == this.deferredQueue_.length && !this.depsToLoad_.length) for (; this.deferredQueue_.length;) this.requested(this.deferredQueue_.shift(), !0);\n a.loaded();\n }, goog.DebugLoader_.prototype.areDepsLoaded_ = function (a) {\n for (var b = 0; b < a.length; b++) {\n var c = this.getPathFromDeps_(a[b]);\n if (!c || !(c in this.deferredCallbacks_ || goog.isProvided_(a[b]))) return !1;\n }\n return !0;\n }, goog.DebugLoader_.prototype.getPathFromDeps_ = function (a) {\n return a in this.idToPath_ ? this.idToPath_[a] : a in this.dependencies_ ? a : null;\n }, goog.DebugLoader_.prototype.defer_ = function (a, b) {\n this.deferredCallbacks_[a.path] = b;\n this.deferredQueue_.push(a.path);\n }, goog.LoadController = function () {}, goog.LoadController.prototype.pause = function () {}, goog.LoadController.prototype.resume = function () {}, goog.LoadController.prototype.loaded = function () {}, goog.LoadController.prototype.pending = function () {}, goog.LoadController.prototype.registerEs6ModuleExports = function (a, b, c) {}, goog.LoadController.prototype.setModuleState = function (a) {}, goog.LoadController.prototype.clearModuleState = function () {}, goog.LoadController.prototype.defer = function (a) {}, goog.LoadController.prototype.areDepsLoaded = function () {}, goog.Dependency = function (a, b, c, d, e) {\n this.path = a;\n this.relativePath = b;\n this.provides = c;\n this.requires = d;\n this.loadFlags = e;\n this.loaded_ = !1;\n this.loadCallbacks_ = [];\n }, goog.Dependency.prototype.getPathName = function () {\n var a = this.path,\n b = a.indexOf(\"://\");\n 0 <= b && (a = a.substring(b + 3), b = a.indexOf(\"/\"), 0 <= b && (a = a.substring(b + 1)));\n return a;\n }, goog.Dependency.prototype.onLoad = function (a) {\n this.loaded_ ? a() : this.loadCallbacks_.push(a);\n }, goog.Dependency.prototype.loaded = function () {\n this.loaded_ = !0;\n var a = this.loadCallbacks_;\n this.loadCallbacks_ = [];\n for (var b = 0; b < a.length; b++) a[b]();\n }, goog.Dependency.defer_ = !1, goog.Dependency.callbackMap_ = {}, goog.Dependency.registerCallback_ = function (a) {\n var b = Math.random().toString(32);\n goog.Dependency.callbackMap_[b] = a;\n return b;\n }, goog.Dependency.unregisterCallback_ = function (a) {\n delete goog.Dependency.callbackMap_[a];\n }, goog.Dependency.callback_ = function (a, b) {\n if (a in goog.Dependency.callbackMap_) {\n for (var c = goog.Dependency.callbackMap_[a], d = [], e = 1; e < arguments.length; e++) d.push(arguments[e]);\n c.apply(void 0, d);\n } else throw Error(\"Callback key \" + a + \" does not exist (was base.js loaded more than once?).\");\n }, goog.Dependency.prototype.load = function (a) {\n if (goog.global.CLOSURE_IMPORT_SCRIPT) goog.global.CLOSURE_IMPORT_SCRIPT(this.path) ? a.loaded() : a.pause();else if (goog.inHtmlDocument_()) {\n var b = goog.global.document;\n if (\"complete\" == b.readyState && !goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING) {\n if (/\\bdeps.js$/.test(this.path)) {\n a.loaded();\n return;\n }\n throw Error('Cannot write \"' + this.path + '\" after document load');\n }\n var c = goog.getScriptNonce();\n if (!goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING && goog.isDocumentLoading_()) {\n var d = function (h) {\n h.readyState && \"complete\" != h.readyState ? h.onload = d : (goog.Dependency.unregisterCallback_(e), a.loaded());\n };\n var e = goog.Dependency.registerCallback_(d);\n c = c ? ' nonce=\"' + c + '\"' : \"\";\n var f = '