@newrelic/browser-agent 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +187 -0
  3. package/dist/bundled/es5/index.js +2 -0
  4. package/dist/bundled/es5/index.js.map +1 -0
  5. package/dist/bundled/es6/index.js +2 -0
  6. package/dist/bundled/es6/index.js.map +1 -0
  7. package/dist/cjs/index.d.ts +19 -0
  8. package/dist/cjs/index.js +59 -0
  9. package/dist/cjs/index.js.map +1 -0
  10. package/dist/cjs/types.d.ts +94 -0
  11. package/dist/cjs/types.js +28 -0
  12. package/dist/cjs/types.js.map +1 -0
  13. package/dist/cjs/utils/api/api.d.ts +10 -0
  14. package/dist/cjs/utils/api/api.js +40 -0
  15. package/dist/cjs/utils/api/api.js.map +1 -0
  16. package/dist/cjs/utils/config/build-configs.d.ts +6 -0
  17. package/dist/cjs/utils/config/build-configs.js +68 -0
  18. package/dist/cjs/utils/config/build-configs.js.map +1 -0
  19. package/dist/cjs/utils/features/features.d.ts +5 -0
  20. package/dist/cjs/utils/features/features.js +14 -0
  21. package/dist/cjs/utils/features/features.js.map +1 -0
  22. package/dist/cjs/utils/features/initialize.d.ts +5 -0
  23. package/dist/cjs/utils/features/initialize.js +51 -0
  24. package/dist/cjs/utils/features/initialize.js.map +1 -0
  25. package/dist/es/index.d.ts +19 -0
  26. package/dist/es/index.js +55 -0
  27. package/dist/es/index.js.map +1 -0
  28. package/dist/es/types.d.ts +94 -0
  29. package/dist/es/types.js +24 -0
  30. package/dist/es/types.js.map +1 -0
  31. package/dist/es/utils/api/api.d.ts +10 -0
  32. package/dist/es/utils/api/api.js +36 -0
  33. package/dist/es/utils/api/api.js.map +1 -0
  34. package/dist/es/utils/config/build-configs.d.ts +6 -0
  35. package/dist/es/utils/config/build-configs.js +64 -0
  36. package/dist/es/utils/config/build-configs.js.map +1 -0
  37. package/dist/es/utils/features/features.d.ts +5 -0
  38. package/dist/es/utils/features/features.js +10 -0
  39. package/dist/es/utils/features/features.js.map +1 -0
  40. package/dist/es/utils/features/initialize.d.ts +5 -0
  41. package/dist/es/utils/features/initialize.js +24 -0
  42. package/dist/es/utils/features/initialize.js.map +1 -0
  43. package/dist/umd/index.d.ts +19 -0
  44. package/dist/umd/index.js +69 -0
  45. package/dist/umd/index.js.map +1 -0
  46. package/dist/umd/types.d.ts +94 -0
  47. package/dist/umd/types.js +38 -0
  48. package/dist/umd/types.js.map +1 -0
  49. package/dist/umd/utils/api/api.d.ts +10 -0
  50. package/dist/umd/utils/api/api.js +50 -0
  51. package/dist/umd/utils/api/api.js.map +1 -0
  52. package/dist/umd/utils/config/build-configs.d.ts +6 -0
  53. package/dist/umd/utils/config/build-configs.js +78 -0
  54. package/dist/umd/utils/config/build-configs.js.map +1 -0
  55. package/dist/umd/utils/features/features.d.ts +5 -0
  56. package/dist/umd/utils/features/features.js +24 -0
  57. package/dist/umd/utils/features/features.js.map +1 -0
  58. package/dist/umd/utils/features/initialize.d.ts +5 -0
  59. package/dist/umd/utils/features/initialize.js +63 -0
  60. package/dist/umd/utils/features/initialize.js.map +1 -0
  61. package/dist/webpack-analysis.html +38 -0
  62. package/package.json +77 -0
package/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
package/README.md ADDED
@@ -0,0 +1,187 @@
1
+ [![New Relic Experimental header](https://github.com/newrelic/opensource-website/raw/master/src/images/categories/Experimental.png)](https://opensource.newrelic.com/oss-category/#new-relic-experimental)
2
+
3
+ # New Relic Browser Agent
4
+
5
+ The New Relic Browser Agent instruments your website and provides observability into the performance and behavior of your application. This NPM Library is an ***in-progress*** implementation of the New Relic Browser Agent, accessible through `NPM`. Please see the [Differences](#differences) and [Features](#features) sections to compare how this library differs from the other offerings of the New Relic Browser Agent.
6
+
7
+ ## Installation
8
+
9
+ ### Using Package Managers
10
+
11
+ Using [npm](https://npmjs.org):
12
+
13
+ ```bash
14
+ npm install @newrelic/browser-agent
15
+ ```
16
+
17
+ or [yarn](https://yarnpkg.com/)
18
+
19
+ ```bash
20
+ yarn add @newrelic/browser-agent
21
+ ```
22
+
23
+ ### Directly in HTML/JS
24
+
25
+ Using [unpkg](https://unpkg.com/)
26
+
27
+ Default (defaults to ES6)
28
+
29
+ ```html
30
+ <script src="https://unpkg.com/@newrelic/browser-agent/bundled"></script>
31
+ ```
32
+
33
+ ES6 compatible (same resolve as default)
34
+
35
+ ```html
36
+ <script src="https://unpkg.com/@newrelic/browser-agent/bundled/es6/index.js"></script>
37
+ ```
38
+
39
+ ES5 compatible
40
+
41
+ ```html
42
+ <script src="https://unpkg.com/@newrelic/browser-agent/bundled/es5/index.js"></script>
43
+ ```
44
+
45
+
46
+ ## Usage Examples
47
+
48
+ ### Basic Setup
49
+
50
+ ```javascript
51
+ << App.js >>
52
+ // initialize the agent as close to
53
+ // the top level of the application as possible
54
+ import NR from '@newrelic/browser-agent'
55
+
56
+ const options = {
57
+ // See 'Configuring your application'
58
+ }
59
+ const nr = new NR()
60
+
61
+ nr.start(options).then(() => {
62
+ console.log("Browser Agent Initialized!")
63
+ })
64
+ ```
65
+
66
+ #### Using unpkg
67
+
68
+ ```html
69
+ <head>
70
+ <script src="https://unpkg.com/@newrelic/browser-agent/bundled"></script>
71
+ <script>
72
+ const { BrowserAgent } = NRBA;
73
+ const options = {
74
+ // See 'Configuring your application'
75
+ }
76
+ const agent = new BrowserAgent()
77
+ agent.start(options).then(() => {
78
+ console.log("Browser Agent Initialized!")
79
+ })
80
+ </script>
81
+ </head>
82
+ ```
83
+
84
+ ### Instrumenting a Micro Front End
85
+
86
+ The New Relic Browser Agent can maintain separate configuration scopes by creating new instances. Micro front end patterns can rely on separate NR instances and can thus each report their own scoped data to separate New Relic applications.
87
+
88
+ ```javascript
89
+ // <<< MICRO FRONT END APP 1 >>>
90
+ // ---- App.js ----
91
+ import { BrowserAgent } from '@newrelic/browser-agent'
92
+ const options = {
93
+ // see 'Configuring your application'
94
+ }
95
+ const nr = new BrowserAgent()
96
+ nr.features.JSERRORS.enabled = true
97
+ nr.start(options).then(() => {
98
+ console.log("Browser Agent Initialized!")
99
+ })
100
+
101
+ // ---- MyComponent.js ----
102
+ class MyComponent() {
103
+ try {
104
+ ...
105
+ } catch(err) {
106
+ nr.noticeError(err)
107
+ // reports to applicationID 1
108
+ }
109
+ }
110
+ ```
111
+
112
+ ## Configuring your application
113
+
114
+ The NR interface's `start` method accepts an `options` object to configure the agent:
115
+
116
+ ```js
117
+ const options = {
118
+ licenseKey: String
119
+ applicationID: String
120
+ beacon: String
121
+ }
122
+ nr.start(options)
123
+ ```
124
+
125
+ ### Get application ID, license key, beacon
126
+
127
+ You can find `licenseKey`, `applicationID` and `beacon` values in the New Relic UI's Browser Application **Settings** page ([one.newrelic.com](https://one.newrelic.com) > Browser > (select an app) > Settings > Application settings.)
128
+
129
+ ![configuration](https://user-images.githubusercontent.com/4779220/169617807-110f3938-8af9-4aa8-b651-7712589b0792.jpg)
130
+
131
+ ## Features
132
+
133
+ |Feature|Subfeature|Default|Description|
134
+ |-|-|-|-|
135
+ |JSERRORS|enabled |true|Enable's `noticeError` method|
136
+ |JSERRORS|auto |false|Reports all global errors |
137
+
138
+ > Features must be set before calling the .start() method.
139
+
140
+ ### JavaScript Errors
141
+
142
+ This NPM package can currently capture JavaScript Error reporting in two ways. These errors will be reported to the appId & licenseKey specified in your [configuration](#configuring-your-application).
143
+
144
+ ```js
145
+ import { BrowserAgent } from '@newrelic/browser-agent'
146
+ const browserAgent = new BrowserAgent()
147
+
148
+ // enable API scoped to applicationID
149
+ browserAgent.features.JSERRORS.enabled = true
150
+
151
+ // report global errors to applicationID
152
+ browserAgent.features.JSERRORS.auto = true
153
+
154
+ // enable features before starting the agent
155
+ browserAgent.start(options)
156
+ ```
157
+
158
+ ### Capture JavaScript errors via API
159
+
160
+ ```javascript
161
+ browserAgent.features.jserrors.enabled = true
162
+ browserAgent.noticeError(new Error())
163
+ ```
164
+
165
+ Set `browserAgent.jserrors.enabled` to `true` to report specific errors via the noticeError API.
166
+
167
+ ### Automatically capture global JavaScript errors
168
+
169
+ ```javascript
170
+ browserAgent.features.jserrors.auto = true
171
+ ```
172
+
173
+ Set `browserAgent.jserrors.auto` to `true` to report all errors on the page.
174
+
175
+ ## Contributing
176
+
177
+ We encourage your contributions to improve the Browser agent! Keep in mind that when you submit your pull request, you'll need to sign the CLA via the click-through using CLA-Assistant. You only have to sign the CLA one time per project.
178
+
179
+ If you have any questions, or to execute our corporate CLA (which is required if your contribution is on behalf of a company), drop us an email at opensource@newrelic.com.
180
+
181
+ For more details on how best to contribute, see [CONTRIBUTING.md](CONTRIBUTING.md)
182
+
183
+ ## License
184
+
185
+ The Browser agent is licensed under the [Apache 2.0](http://apache.org/licenses/LICENSE-2.0.txt) License.
186
+
187
+ The Browser agent also uses source code from third-party libraries. Full details on which libraries are used and the terms under which they are licensed can be found in the [third-party notices document](THIRD_PARTY_NOTICES.md).
@@ -0,0 +1,2 @@
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.NRBA=t():e.NRBA=t()}(self,(function(){return function(){var e={380:function(e,t,n){var r,i,o,a;function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v(e,t,n){return t&&h(e.prototype,t),n&&h(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function p(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&g(e,t)}function g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=w(e);if(t){var i=w(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return y(this,n)}}function y(e,t){if(t&&("object"===x(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return b(e)}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}function x(e){return x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},x(e)}e=n.nmd(e),self,a=function(){return function(){var e={4460:function(e,t,n){"use strict";n.r(t),n.d(t,{Aggregator:function(){return o}});var r=n(6469),i=n(1558),o=function(e){p(n,e);var t=m(n);function n(e){var r;return l(this,n),(r=t.call(this,e)).aggregatedData={},r}return v(n,[{key:"store",value:function(e,t,n,r,o){var s=this.getBucket(e,t,n,o);return s.metrics=function(e,t){return t||(t={count:0}),t.count+=1,(0,i.D)(e,(function(e,n){t[e]=a(n,t[e])})),t}(r,s.metrics),s}},{key:"merge",value:function(e,t,n,r,o){var u=this.getBucket(e,t,r,o);if(u.metrics){var c=u.metrics;c.count+=n.count,(0,i.D)(n,(function(e,t){if("count"!==e){var r=c[e],i=n[e];i&&!i.c?c[e]=a(i.t,r):c[e]=function(e,t){return t?(t.c||(t=s(t.t)),t.min=Math.min(e.min,t.min),t.max=Math.max(e.max,t.max),t.t+=e.t,t.sos+=e.sos,t.c+=e.c,t):e}(i,c[e])}}))}else u.metrics=n}},{key:"storeMetric",value:function(e,t,n,r){var i=this.getBucket(e,t,n);return i.stats=a(r,i.stats),i}},{key:"getBucket",value:function(e,t,n,r){this.aggregatedData[e]||(this.aggregatedData[e]={});var i=this.aggregatedData[e][t];return i||(i=this.aggregatedData[e][t]={params:n||{}},r&&(i.custom=r)),i}},{key:"get",value:function(e,t){return t?this.aggregatedData[e]&&this.aggregatedData[e][t]:this.aggregatedData[e]}},{key:"take",value:function(e){for(var t={},n="",r=!1,o=0;o<e.length;o++)t[n=e[o]]="object"!=x(a=this.aggregatedData[n])?[]:(0,i.D)(a,u),t[n].length&&(r=!0),delete this.aggregatedData[n];var a;return r?t:null}}]),n}(r.w);function a(e,t){return null==e?function(e){return e?e.c++:e={c:1},e}(t):t?(t.c||(t=s(t.t)),t.c+=1,t.t+=e,t.sos+=e*e,e>t.max&&(t.max=e),e<t.min&&(t.min=e),t):{t:e}}function s(e){return{t:e,min:e,max:e,sos:e*e,c:1}}function u(e,t){return t}},2572:function(e,t,n){"use strict";n.d(t,{I:function(){return r}});var r=0,i=navigator.userAgent.match(/Firefox[\/\s](\d+\.\d+)/);i&&(r=+i[1])},3821:function(e,t,n){"use strict";n.d(t,{H:function(){return i}});var r=document.createElement("div");r.innerHTML="\x3c!--[if lte IE 6]><div></div><![endif]--\x3e\x3c!--[if lte IE 7]><div></div><![endif]--\x3e\x3c!--[if lte IE 8]><div></div><![endif]--\x3e\x3c!--[if lte IE 9]><div></div><![endif]--\x3e";var i,o=r.getElementsByTagName("div").length;i=4===o?6:3===o?7:2===o?8:1===o?9:0},9230:function(e,t,n){"use strict";n.r(t),n.d(t,{getConfiguration:function(){return i.P_},getConfigurationValue:function(){return i.Mt},getInfo:function(){return r.C},getLoaderConfig:function(){return o.D},getRuntime:function(){return s.O},originals:function(){return a.Y},setConfiguration:function(){return i.Dg},setInfo:function(){return r.L},setLoaderConfig:function(){return o.G},setRuntime:function(){return s.s}});var r=n(9729),i=n(6061),o=n(5501),a=n(5307),s=n(2909)},9754:function(e,t,n){"use strict";n.d(t,{I:function(){return r}});var r=v((function e(t,n){var r=this;return l(this,e),t&&"object"==x(t)?n&&"object"==x(n)?(Object.assign(this,n),void Object.entries(t).forEach((function(e){var t=f(e,2),i=t[0],o=t[1];Object.keys(n).includes(i)&&(r[i]=o)}))):console.error("setting a Configurable requires a model to set its initial properties"):console.error("setting a Configurable requires an object as input")}))},9729:function(e,t,n){"use strict";n.d(t,{C:function(){return s},L:function(){return u}});var r=n(8240),i=n(9754),o={beacon:r.defaults.beacon,errorBeacon:r.defaults.errorBeacon,licenseKey:void 0,applicationID:void 0,sa:void 0,queueTime:void 0,applicationTime:void 0,ttGuid:void 0,user:void 0,account:void 0,product:void 0,extra:void 0,jsAttributes:{},userAttributes:void 0,atts:void 0,transactionName:void 0,tNamePlain:void 0},a={};function s(e){if(!e)throw new Error("All config objects require an agent identifier!");if(!a[e])throw new Error("Info for ".concat(e," was never set"));return a[e]}function u(e,t){if(!e)throw new Error("All config objects require an agent identifier!");a[e]=new i.I(t,o),(0,r.gosNREUMInitializedAgents)(e,a[e],"info")}},6061:function(e,t,n){"use strict";n.d(t,{Dg:function(){return u},Mt:function(){return c},P_:function(){return s}});var r=n(8240),i=n(9754),o={privacy:{cookies_enabled:void 0},ajax:{deny_list:void 0},distributed_tracing:{enabled:void 0,exclude_newrelic_header:void 0,cors_use_newrelic_header:void 0,cors_use_tracecontext_headers:void 0,allowed_origins:void 0},page_view_timing:{enabled:void 0},ssl:void 0,obfuscate:void 0},a={};function s(e){if(!e)throw new Error("All config objects require an agent identifier!");if(!a[e])throw new Error("Configuration for ".concat(e," was never set"));return a[e]}function u(e,t){if(!e)throw new Error("All config objects require an agent identifier!");a[e]=new i.I(t,o),(0,r.gosNREUMInitializedAgents)(e,a[e],"config")}function c(e,t){if(!e)throw new Error("All config objects require an agent identifier!");var n=s(e);if(n){for(var r=t.split("."),i=0;i<r.length-1;i++)if("object"!=x(n=n[r[i]]))return;n=n[r[r.length-1]]}return n}},5501:function(e,t,n){"use strict";n.d(t,{D:function(){return s},G:function(){return u}});var r=n(8240),i=n(9754),o={accountID:void 0,trustKey:void 0,agentID:void 0,licenseKey:void 0,applicationID:void 0,xpid:void 0},a={};function s(e){if(!e)throw new Error("All config objects require an agent identifier!");if(!a[e])throw new Error("LoaderConfig for ".concat(e," was never set"));return a[e]}function u(e,t){if(!e)throw new Error("All config objects require an agent identifier!");a[e]=new i.I(t,o),(0,r.gosNREUMInitializedAgents)(e,a[e],"loader_config")}},5307:function(e,t,n){"use strict";n.d(t,{Y:function(){return r}});var r=(0,n(8240).gosNREUMOriginals)().o},2909:function(e,t,n){"use strict";n.d(t,{O:function(){return m},s:function(){return y}});var r={};n.r(r),n.d(r,{agent:function(){return a},match:function(){return f},version:function(){return s}});var i=n(3821),o=n(2997),a=null,s=null;if(navigator.userAgent){var u=navigator.userAgent,c=u.match(/Version\/(\S+)\s+Safari/);c&&-1===u.indexOf("Chrome")&&-1===u.indexOf("Chromium")&&(a="Safari",s=c[1])}function f(e,t){if(!a)return!1;if(e!==a)return!1;if(!t)return!0;if(!s)return!1;for(var n=s.split("."),r=t.split("."),i=0;i<r.length;i++)if(r[i]!==n[i])return!1;return!0}var d=n(9754),l=n(8240),h=window.XMLHttpRequest,v=h&&h.prototype,p={origin:""+window.location,maxBytes:6===i.H?2e3:3e4,offset:(0,o.getLastTimestamp)(),features:{},customTransaction:void 0,onerror:void 0,releaseIds:void 0,xhrWrappable:h&&v&&v.addEventListener&&!/CriOS/.test(navigator.userAgent),disabled:void 0,ptid:void 0,userAgent:r},g={};function m(e){if(!e)throw new Error("All config objects require an agent identifier!");if(!g[e])throw new Error("Runtime for ".concat(e," was never set"));return g[e]}function y(e,t){if(!e)throw new Error("All config objects require an agent identifier!");g[e]=new d.I(t,p),(0,l.gosNREUMInitializedAgents)(e,g[e],"runtime")}},6469:function(e,t,n){"use strict";n.d(t,{w:function(){return i}});var r={agentIdentifier:""},i=v((function e(t){var n=this;if(l(this,e),"object"!=x(t))return console.error("shared context requires an object as input");this.sharedContext={},Object.assign(this.sharedContext,r),Object.entries(t).forEach((function(e){var t=f(e,2),i=t[0],o=t[1];Object.keys(r).includes(i)&&(n.sharedContext[i]=o)}))}))},2755:function(e,t,n){"use strict";n.d(t,{C:function(){return r},ee:function(){return u}});var r,i=n(8240),o=n(9381),a=n(1558),s=(0,i.gosNREUM)();s.ee?r=s.ee:(r=f(void 0,"globalEE"),s.ee=r);var u=f(void 0,"baseEE");function c(){}function f(e,t){var n={},r={},i={},s={on:v,addEventListener:v,removeEventListener:function(e,t){var r=n[e];if(r)for(var i=0;i<r.length;i++)r[i]===t&&r.splice(i,1)},emit:function(t,n,i,o,a){if(!1!==a&&(a=!0),!u.aborted||o){e&&a&&e.emit(t,n,i);for(var c=h(i),f=p(t),d=f.length,l=0;l<d;l++)f[l].apply(c,n);var v=g()[r[t]];return v&&v.push([s,t,n,c]),c}},get:function(e){return i[e]=i[e]||f(s,e)},listeners:p,context:h,buffer:function(e,t){var n=g();s.aborted||(0,a.D)(e,(function(e,i){t=t||"feature",r[i]=t,t in n||(n[t]=[])}))},abort:l,aborted:!1,isBuffering:function(e){return!!g()[r[e]]},debugId:t};return e||(s.backlog={}),s;function h(e){return e&&e instanceof c?e:e?(0,o.X)(e,"nr@context",d):d()}function v(e,t){n[e]=p(e).concat(t)}function p(e){return n[e]||[]}function g(){return e?e.backlog:s.backlog}}function d(){return new c}function l(){(u.backlog.api||u.backlog.feature)&&(u.aborted=!0,u.backlog={})}},2995:function(e,t,n){"use strict";n.d(t,{EM:function(){return i},l_:function(){return o},pr:function(){return a}});var r=n(2755),i=r.ee.get("handle"),o=r.C.get("handle");function a(e,t,n,r,o){o?(o.buffer([e],r),o.emit(e,t,n)):(i.buffer([e],r),i.emit(e,t,n))}},3406:function(e,t,n){"use strict";n.d(t,{XN:function(){return a},rP:function(){return a}});var r=n(2995);a.on=s;var i=a.handlers={},o=function(e,t,n){s(r.l_,o,e,t,n)}.handlers={};function a(e,t,n,o){s(o||r.EM,i,e,t,n)}function s(e,t,n,i,o){if(o||(o="feature"),e||(e=r.EM),e.isBuffering(n)){var a=t[o]=t[o]||{};(a[n]=a[n]||[]).push([e,i])}else e.on(n,i)}},4518:function(e,t,n){"use strict";n.d(t,{m:function(){return o}});var r=!1;try{var i=Object.defineProperty({},"passive",{get:function(){r=!0}});window.addEventListener("testPassive",null,i),window.removeEventListener("testPassive",null,i)}catch(e){}function o(e){return r?{passive:!0,capture:!!e}:!!e}},2848:function(e,t,n){"use strict";n.d(t,{o:function(){return f}});var r=n(870),i=n(6469),o=n(6943),a=n(9391),s=n(3233),u=n(3706),c=n(6061),f=function(e){p(n,e);var t=m(n);function n(e,r,i){var f;return l(this,n),(f=t.call(this,i)).endpoint=e,f.opts=r||{},f.started=!1,f.timeoutHandle=null,f.harvest=new o.Mu(f.sharedContext),(0,a.l)((function(){var e,t;f.opts.onUnload&&f.opts.onUnload(),f.harvest.sendFinal(),e=f.sharedContext.agentIdentifier,t=(0,c.Mt)(e,"privacy.cookies_enabled"),u.s&&t&&(document.cookie="NREUM=s="+Number(new Date)+"&r="+(0,s.u)(document.location.href)+"&p="+(0,s.u)(document.referrer)+"; path=/")})),f}return v(n,[{key:"startTimer",value:function(e,t){this.interval=e,this.started=!0,this.scheduleHarvest(null!=t?t:this.interval)}},{key:"stopTimer",value:function(){this.started=!1,this.timeoutHandle&&clearTimeout(this.timeoutHandle)}},{key:"scheduleHarvest",value:function(e,t){if(!this.timeoutHandle){var n=this;null==e&&(e=this.interval),this.timeoutHandle=setTimeout((function(){n.timeoutHandle=null,n.runHarvest(t)}),1e3*e)}}},{key:"runHarvest",value:function(e){var t=this;if(this.opts.getPayload){var n=this.harvest.getSubmitMethod(this.endpoint,e);if(!n)return!1;var i=n.method===r.T.xhr,o=this.opts.getPayload({retry:i});if(o){o="[object Array]"===Object.prototype.toString.call(o)?o:[o];for(var a=0;a<o.length;a++)this.harvest.send(this.endpoint,o[a],e,n,s,this.sharedContext.agentIdentifier)}}else this.harvest.sendX(this.endpoint,e,s,this.sharedContext.agentIdentifier);function s(n){t.onHarvestFinished(e,n)}this.started&&this.scheduleHarvest()}},{key:"onHarvestFinished",value:function(e,t){if(this.opts.onFinished&&this.opts.onFinished(t),t.sent&&t.retry){var n=t.delay||this.opts.retryDelay;this.started&&n?(clearTimeout(this.timeoutHandle),this.timeoutHandle=null,this.scheduleHarvest(n,e)):!this.started&&n&&this.scheduleHarvest(n,e)}}}]),n}(i.w)},6943:function(e,t,n){"use strict";n.d(t,{Mu:function(){return O},y0:function(){return S}});var r=n(1558),i=n(353),o=n(1240),a=n(870),s=n(8354),u=n(6061),c=n(9729),f=n(2909),d=n(5988),h=n(2997),g=n(4518),y=n(3821),b=n(2781),w=n(6469),E=!!navigator.sendBeacon,S=y.H>9||0===y.H,O=function(e){p(n,e);var t=m(n);function n(e){var r;return l(this,n),(r=t.call(this,e)).tooManyRequestsDelay=(0,u.Mt)(r.sharedContext.agentIdentifier,"harvest.tooManyRequestsDelay")||60,r.obfuscator=new b.R(r.sharedContext),r.getScheme=function(){return!1===(0,u.Mt)(r.sharedContext.agentIdentifier,"ssl")?"http":"https"},r._events={},r}return v(n,[{key:"sendFinal",value:function(){var e=this,t=(0,r.D)(this._events,(function(t){return e.sendX(t,{unload:!0})}));return(0,s.u)(t,k)}},{key:"sendX",value:function(e,t,n){var r=T(e,t);if(!r)return!1;var i={retry:r.method===a.T.xhr};return this.obfuscator.shouldObfuscate()?this.obfuscator.obfuscateAndSend(e,this.createPayload(e,i),t,r,n):this._send(e,this.createPayload(e,i),t,r,n)}},{key:"send",value:function(e,t,n,i,o){var a=_(),s=_();t.body&&(0,r.D)(t.body,a),t.qs&&(0,r.D)(t.qs,s);var u={body:a(),qs:s()};return(this.obfuscator.shouldObfuscate()?this.obfuscator.obfuscateAndSend:this._send)(e,u,n,i,o)}},{key:"obfuscateAndSend",value:function(e,t,n,r,i){var o=this;return function(e,t,n,r){return e&&"object"==x(e)?(n=n||"string",r=r||[],function e(r){for(var o in r)r.hasOwnProperty(o)&&("object"==x(r[o])?e(r[o]):x(r[o])!==n||i(o)||(r[o]=t(r[o])));return r}(e)):e;function i(e){for(var t=!1,n=0;n<r.length;n++)if(r[n]===e){t=!0;break}return t}}(t,(function(){var e;return(e=o.obfuscator).obfuscateString.apply(e,arguments)}),"string",["e"]),this._send(e,t,n,r,i)}},{key:"_send",value:function(e,t,n,r,s){var u=(0,c.C)(this.sharedContext.agentIdentifier);if(!u.errorBeacon)return!1;if(!t.body)return s&&s({sent:!1}),!1;n||(n={});var d=this.getScheme()+"://"+u.errorBeacon+"/"+e+"/1/"+u.licenseKey+this.baseQueryString();t.qs&&(d+=(0,i.j6)(t.qs,(0,f.O)(this.sharedContext.agentIdentifier).maxBytes)),r||(r=T(e,n));var l,h=r.method,v=r.useBody,p=d;v&&"events"===e?l=t.body.e:v?l=(0,o.P)(t.body):p=d+(0,i.j6)(t.body,(0,f.O)(this.sharedContext.agentIdentifier).maxBytes);var m=h(p,l);return s&&h===a.T.xhr&&m.addEventListener("load",(function(){var e={sent:!0};429===this.status?(e.retry=!0,e.delay=this.tooManyRequestsDelay):408!==this.status&&500!==this.status&&503!==this.status||(e.retry=!0),n.needResponse&&(e.responseText=this.responseText),s(e)}),(0,g.m)(!1)),m||h!==a.T.beacon||(m=(h=a.T.img)(d+(0,i.j6)(t.body,(0,f.O)(this.sharedContext.agentIdentifier).maxBytes))),m}},{key:"baseQueryString",value:function(){var e=!0,t=(0,u.P_)(this.sharedContext.agentIdentifier),n=(0,f.O)(this.sharedContext.agentIdentifier),r=(0,c.C)(this.sharedContext.agentIdentifier);"privacy"in t&&(e=t.privacy.cookies_enabled);var o=(0,d.f)(""+location),a=this.obfuscator.shouldObfuscate()?this.obfuscator.obfuscateString(o):o;return["?a="+r.applicationID,(0,i.wu)("sa",r.sa?""+r.sa:""),(0,i.wu)("v","0.0.6"),j(r),(0,i.wu)("ct",n.customTransaction),"&rst="+(0,h.now)(),"&ck="+(e?"1":"0"),(0,i.wu)("ref",a),(0,i.wu)("ptid",n.ptid?""+n.ptid:"")].join("")}},{key:"createPayload",value:function(e,t){for(var n=_(),i=_(),o=this._events[e]&&this._events[e]||[],a=0;a<o.length;a++){var s=o[a](t);s&&(s.body&&(0,r.D)(s.body,n),s.qs&&(0,r.D)(s.qs,i))}return{body:n(),qs:i()}}},{key:"on",value:function(e,t){(this._events[e]||(this._events[e]=[])).push(t)}},{key:"resetListeners",value:function(){(0,r.D)(this._events,(function(e){this._events[e]=[]}))}}]),n}(w.w);function k(e,t){return e||t}function T(e,t){var n,r;if((t=t||{}).needResponse){if(!S)return!1;r=!0,n=a.T.xhr}else if(t.unload)r=E,n=E?a.T.beacon:a.T.img;else if(S)r=!0,n=a.T.xhr;else{if("events"!==e&&"jserrors"!==e)return!1;n=a.T.img}return{method:n,useBody:r}}function j(e){return e.transactionName?(0,i.wu)("to",e.transactionName):(0,i.wu)("t",e.tNamePlain||"Unnamed Transaction")}function _(){var e={},t=!1;return function(n,r){if(r&&r.length&&(e[n]=r,t=!0),t)return e}}},8053:function(e,t,n){"use strict";function r(){var e=null,t=0,n=window.crypto||window.msCrypto;function r(){return e?15&e[t++]:16*Math.random()|0}n&&n.getRandomValues&&(e=n.getRandomValues(new Uint8Array(31)));for(var i,o="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",a="",s=0;s<o.length;s++)a+="x"===(i=o[s])?r().toString(16):"y"===i?(i=3&r()|8).toString(16):i;return a}function i(){return a(16)}function o(){return a(32)}function a(e){var t=null,n=0,r=window.crypto||window.msCrypto;r&&r.getRandomValues&&Uint8Array&&(t=r.getRandomValues(new Uint8Array(31)));for(var i=[],o=0;o<e;o++)i.push((t?15&t[n++]:16*Math.random()|0).toString(16));return i.join("")}n.r(t),n.d(t,{generateRandomHexString:function(){return a},generateSpanId:function(){return i},generateTraceId:function(){return o},generateUuid:function(){return r}})},4202:function(e,t,n){"use strict";n.d(t,{VB:function(){return i}});var r=n(2995);function i(e,t){var n=["sm",e,{name:e},t];return(0,r.pr)("storeMetric",n,null,"api"),n}},151:function(e,t,n){"use strict";n.d(t,{AG:function(){return s},FX:function(){return c},n1:function(){return f},uR:function(){return u}});var r=n(1558),i=n(1240),o=n(2781),a=Object.prototype.hasOwnProperty;function s(e,t,n){return e||0===e||""===e?t(e)+(n?",":""):"!"}function u(e,t){return t?Math.floor(e).toString(36):void 0===e||0===e?"":Math.floor(e).toString(36)}function c(e){var t=Object.hasOwnProperty("create")?Object.create(null):{},n=0;return function(r){if(void 0===r||""===r)return"";var i=new o.R({agentIdentifier:e});return r=String(r),i.shouldObfuscate()&&(r=i.obfuscateString(r)),a.call(t,r)?u(t[r],!0):(t[r]=n++,function(e){return"'"+e.replace(d,"\\$1")}(r))}}function f(e,t){var n=[];return(0,r.D)(e,(function(e,r){if(!(n.length>=64)){var o,a=5;switch(e=t(e),x(r)){case"object":r?o=t((0,i.P)(r)):a=9;break;case"number":a=6,o=r%1?r:r+".";break;case"boolean":a=r?7:8;break;case"undefined":a=9;break;default:o=t(r)}n.push([a,e+(o?","+o:"")])}})),n}var d=/([,\\;])/g},2997:function(e,t,n){"use strict";n.r(t),n.d(t,{getLastTimestamp:function(){return s},getOffset:function(){return c},now:function(){return a},setOffset:function(){return u}});var r=n(9335),i=(new Date).getTime(),o=i;function a(){return r.G&&performance.now?Math.round(performance.now()):(i=Math.max((new Date).getTime(),i))-o}function s(){return i}function u(e){o=e}function c(){return o}},9335:function(e,t,n){"use strict";n.d(t,{G:function(){return r}});var r=void 0!==window.performance&&window.performance.timing&&void 0!==window.performance.timing.navigationStart},3706:function(e,t,n){"use strict";n.d(t,{s:function(){return u},v:function(){return c}});var r=n(3233),i=n(232),o=n(2572),a=n(2997),s=n(9335),u=!0;function c(){var e=function(){if(!(o.I&&o.I<9))return s.G?(u=!1,window.performance.timing.navigationStart):void 0}()||function(){for(var e=document.cookie.split(" "),t=0;t<e.length;t++)if(0===e[t].indexOf("NREUM=")){for(var n,i,o,a,s=e[t].substring("NREUM=".length).split("&"),u=0;u<s.length;u++)0===s[u].indexOf("s=")?o=s[u].substring(2):0===s[u].indexOf("p=")?";"===(i=s[u].substring(2)).charAt(i.length-1)&&(i=i.substr(0,i.length-1)):0===s[u].indexOf("r=")&&";"===(n=s[u].substring(2)).charAt(n.length-1)&&(n=n.substr(0,n.length-1));if(n){var c=(0,r.u)(document.referrer);(a=c==n)||(a=(0,r.u)(document.location.href)==n&&c==i)}if(a&&o){if((new Date).getTime()-o>6e4)return;return o}}}();e&&((0,i.B)("starttime",e),(0,a.setOffset)(e))}c()},232:function(e,t,n){"use strict";n.d(t,{B:function(){return o},L:function(){return a}});var r=n(2997),i={};function o(e,t){void 0===t&&(t=(0,r.now)()+(0,r.getOffset)()),i[e]=t}function a(e,t,n,r){var o=i[n],a=i[r];void 0!==o&&void 0!==a&&e.store("measures",t,{value:a-o})}},9391:function(e,t,n){"use strict";n.d(t,{l:function(){return u}});var r=n(2572),i=n(7957),o=n.n(i),a=n(4518);function s(e,t){return"addEventListener"in window?window.addEventListener(e,t,(0,a.m)(!1)):"attachEvent"in window?window.attachEvent("on"+e,t):void 0}function u(e){var t,n,i,a=(t=e,i=!1,function(){return i?n:(i=!0,n=t.apply(this,o()(arguments)))});!r.I||navigator.sendBeacon?s("pagehide",a):s("beforeunload",a),s("unload",a)}},5988:function(e,t,n){"use strict";n.d(t,{f:function(){return o}});var r=/([^?#]*)[^#]*(#[^?]*|$).*/,i=/([^?#]*)().*/;function o(e,t){return e.replace(t?r:i,"$1$2")}},353:function(e,t,n){"use strict";n.d(t,{j6:function(){return d},nI:function(){return f},wu:function(){return l}});var r=n(1558),i=n(1240),o={"%2C":",","%3A":":","%2F":"/","%40":"@","%24":"$","%3B":";"},a=(0,r.D)(o,(function(e){return e})),s=new RegExp(a.join("|"),"g");function u(e){return o[e]}function c(e){return null==e?"null":encodeURIComponent(e).replace(s,u)}function f(e,t){for(var n=0,r=0;r<e.length;r++)if((n+=e[r].length)>t)return e.slice(0,r).join("");return e.join("")}function d(e,t){var n=0,o="";return(0,r.D)(e,(function(e,r){var a,s,u=[];if("string"==typeof r)a="&"+e+"="+c(r),n+=a.length,o+=a;else if(r.length){for(n+=9,s=0;s<r.length&&(a=c((0,i.P)(r[s])),n+=a.length,!(void 0!==t&&n>=t));s++)u.push(a);o+="&"+e+"=%5B"+u.join(",")+"%5D"}})),o}function l(e,t){return t&&"string"==typeof t?"&"+e+"="+c(t):""}},4017:function(e,t,n){"use strict";n.d(t,{e:function(){return i}});var r={};function i(e){if(e in r)return r[e];var t=document.createElement("a"),n=window.location,i={};t.href=e,i.port=t.port;var o=t.href.split("://");!i.port&&o[1]&&(i.port=o[1].split("/")[0].split("@").pop().split(":")[1]),i.port&&"0"!==i.port||(i.port="https"===o[0]?"443":"80"),i.hostname=t.hostname||n.hostname,i.pathname=t.pathname,i.protocol=o[0],"/"!==i.pathname.charAt(0)&&(i.pathname="/"+i.pathname);var a=!t.protocol||":"===t.protocol||t.protocol===n.protocol,s=t.hostname===document.domain&&t.port===n.port;return i.sameOrigin=a&&(!t.hostname||s),"/"===i.pathname&&(r[e]=i),i}},1839:function(e,t,n){"use strict";n.d(t,{W:function(){return i}});var r=n(2755),i=v((function e(t,n){l(this,e),this.agentIdentifier=t,this.aggregator=n,this.ee=r.ee.get(t)}))},9381:function(e,t,n){"use strict";n.d(t,{X:function(){return i}});var r=Object.prototype.hasOwnProperty;function i(e,t,n){if(r.call(e,t))return e[t];var i=n();if(Object.defineProperty&&Object.keys)try{return Object.defineProperty(e,t,{value:i,writable:!0,enumerable:!1}),i}catch(e){}return e[t]=i,i}},1558:function(e,t,n){"use strict";n.d(t,{D:function(){return i}});var r=Object.prototype.hasOwnProperty;function i(e,t){var n=[],i="",o=0;for(i in e)r.call(e,i)&&(n[o]=t(i,e[i]),o+=1);return n}},2781:function(e,t,n){"use strict";n.d(t,{R:function(){return d}});var r=n(6061),i=n(6469),o=n(4202),a=window,s={isFileProtocol:u,supportabilityMetricSent:!1};function u(){var e=a;return!(!e.location||!e.location.protocol||"file:"!==e.location.protocol)}u()&&((0,o.VB)("Generic/FileProtocol/Detected"),s.supportabilityMetricSent=!0);var c={regex:/^file:\/\/(.*)/,replacement:"file://OBFUSCATED"},f=!1,d=function(e){p(n,e);var t=m(n);function n(e){var r;return l(this,n),r=t.call(this,e),f||(r.shouldObfuscate()&&(0,o.VB)("Generic/Obfuscate/Detected"),r.shouldObfuscate()&&!r.validateRules(r.getRules())&&(0,o.VB)("Generic/Obfuscate/Invalid"),f=!0),r}return v(n,[{key:"shouldObfuscate",value:function(){return this.getRules().length>0}},{key:"getRules",value:function(){var e=[],t=(0,r.Mt)(this.sharedContext.agentIdentifier,"obfuscate")||[];return e=e.concat(t),s.isFileProtocol()&&e.push(c),e}},{key:"validateRules",value:function(e){for(var t=!1,n=!1,r=0;r<e.length;r++){"regex"in e[r]?"string"!=typeof e[r].regex&&e[r].regex.constructor!==RegExp&&(console&&console.warn&&console.warn('An obfuscation replacement rule contains a "regex" value with an invalid type (must be a string or RegExp)'),n=!0):(console&&console.warn&&console.warn('An obfuscation replacement rule was detected missing a "regex" value.'),n=!0);var i=e[r].replacement;i&&"string"!=typeof i&&(console&&console.warn&&console.warn('An obfuscation replacement rule contains a "replacement" value with an invalid type (must be a string)'),t=!0)}return!t&&!n}},{key:"obfuscateString",value:function(e,t){if(!e||"string"!=typeof e)return e;for(var n=this.getRules(t),r=e,i=0;i<n.length;i++){var o=n[i].regex,a=n[i].replacement||"*";r=r.replace(o,a)}return r}}]),n}(i.w)},8354:function(e,t,n){"use strict";function r(e,t,n){var r=0;for(void 0===n&&(n=e[0],r=1);r<e.length;r++)n=t(n,e[r]);return n}n.d(t,{u:function(){return r}})},3233:function(e,t,n){"use strict";function r(e){var t,n=0;for(t=0;t<e.length;t++)n+=(t+1)*e.charCodeAt(t);return Math.abs(n)}n.d(t,{u:function(){return r}})},1240:function(e,t,n){"use strict";n.d(t,{P:function(){return s}});var r=n(1558),i=n(2755),o=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,a={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function s(e){try{return c("",{"":e})}catch(e){try{i.ee.emit("internal-error",[e])}catch(e){}}}function u(e){return o.lastIndex=0,o.test(e)?'"'+e.replace(o,(function(e){var t=a[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+e+'"'}function c(e,t){var n=t[e];switch(x(n)){case"string":return u(n);case"number":return isFinite(n)?String(n):"null";case"boolean":return String(n);case"object":if(!n)return"null";var i=[];if(n instanceof window.Array||"[object Array]"===Object.prototype.toString.apply(n)){for(var o=n.length,a=0;a<o;a+=1)i[a]=c(a,n)||"null";return 0===i.length?"[]":"["+i.join(",")+"]"}return(0,r.D)(n,(function(e){var t=c(e,n);t&&i.push(u(e)+":"+t)})),0===i.length?"{}":"{"+i.join(",")+"}"}}},870:function(e,t,n){"use strict";n.d(t,{T:function(){return r}});var r={jsonp:function(e,t){var n=document.createElement("script");n.type="text/javascript",n.src=e+"&jsonp="+t;var r=document.getElementsByTagName("script")[0];return r.parentNode.insertBefore(n,r),n},xhr:function(e,t,n){var r=new XMLHttpRequest;r.open("POST",e,!n);try{"withCredentials"in r&&(r.withCredentials=!0)}catch(e){}return r.setRequestHeader("content-type","text/plain"),r.send(t),r},xhrSync:function(e,t){return r.xhr(e,t,!0)},img:function(e){var t=new Image;return t.src=e,t},beacon:function(e,t){return navigator.sendBeacon(e,t)}}},8240:function(e,t,n){"use strict";n.r(t),n.d(t,{NREUMinitialized:function(){return v},addToNREUM:function(){return h},defaults:function(){return i},gosCDN:function(){return p},gosNREUM:function(){return o},gosNREUMInfo:function(){return a},gosNREUMInit:function(){return f},gosNREUMInitializedAgents:function(){return l},gosNREUMLoaderConfig:function(){return s},gosNREUMOriginals:function(){return d}});var r=n(2997),i={beacon:"bam.nr-data.net",errorBeacon:"bam.nr-data.net"};function o(){return window.NREUM||(window.NREUM={}),void 0===window.newrelic&&(window.newrelic=window.NREUM),window.NREUM}function a(){var e=o(),t=e.info||{};return e.info=u({beacon:i.beacon,errorBeacon:i.errorBeacon},t),e}function s(){var e=o(),t=e.loader_config||{};return e.loader_config=u({},t),e}function f(){var e=o(),t=e.init||{};return e.init=u({},t),e}function d(){var e=o();if(!e.o){var t=window,n=t.XMLHttpRequest;e.o={ST:setTimeout,SI:t.setImmediate,CT:clearTimeout,XHR:n,REQ:t.Request,EV:t.Event,PR:t.Promise,MO:t.MutationObserver,FETCH:t.fetch}}return e}function l(e,t,n){var i=o(),a=i.initializedAgents||{},s=a[e]||{};return Object.keys(s).length||(s.initializedAt={ms:(0,r.now)(),date:new Date}),i.initializedAgents=u(u({},a),{},c({},e,u(u({},s),{},c({},n,t)))),i}function h(e,t){o()[e]=t}function v(){o().initialized=!0}function p(){return a(),f(),d(),s(),o()}},6219:function(e,t,n){"use strict";function r(){return"PerformanceObserver"in window&&"function"==typeof window.PerformanceObserver}n.d(t,{W:function(){return r}})},3097:function(e,t,n){"use strict";n.d(t,{em:function(){return m},u5:function(){return y},QU:function(){return b},gy:function(){return w},BV:function(){return E},Kf:function(){return S}});var r=n(2755),i=n(7957),o=n.n(i),a=n(5307),s=window,u=(s.Request,s.Response,"nr@context"),c="nr@original",f=Object.prototype.hasOwnProperty,d=!1;function l(e,t){return e||(e=r.ee),n.inPlace=function(e,t,r,i,o){r||(r="");var a,s,u,c="-"===r.charAt(0);for(u=0;u<t.length;u++)v(a=e[s=t[u]])||(e[s]=n(a,c?s+r:r,i,s,o))},n.flag=c,n;function n(t,n,r,a,s){return v(t)?t:(n||(n=""),u[c]=t,function(e,t,n){if(Object.defineProperty&&Object.keys)try{return Object.keys(e).forEach((function(n){Object.defineProperty(t,n,{get:function(){return e[n]},set:function(t){return e[n]=t,t}})})),t}catch(e){h([e],n)}for(var r in e)f.call(e,r)&&(t[r]=e[r])}(t,u,e),u);function u(){var u,c,f,d;try{c=this,u=o()(arguments),f="function"==typeof r?r(u,c):r||{}}catch(t){h([t,"",[u,c,a],f],e)}i(n+"start",[u,c,a],f,s);try{return d=t.apply(c,u)}catch(e){throw i(n+"err",[u,c,e],f,s),e}finally{i(n+"end",[u,c,d],f,s)}}}function i(n,r,i,o){if(!d||t){var a=d;d=!0;try{e.emit(n,r,i,t,o)}catch(t){h([t,n,r,i],e)}d=a}}}function h(e,t){t||(t=r.ee);try{t.emit("internal-error",e)}catch(e){}}function v(e){return!(e&&e instanceof Function&&e.apply&&!e[c])}var p=n(4518),g=n(9381);function m(e){return function(e){var t=function(e){return(e||r.ee).get("events")}(e),n=l(t,!0),i=XMLHttpRequest,o="addEventListener";function a(e){for(var t=e;t&&!t.hasOwnProperty(o);)t=Object.getPrototypeOf(t);t&&s(t)}function s(e){n.inPlace(e,[o,"removeEventListener"],"-",u)}function u(e,t){return e[1]}return"getPrototypeOf"in Object?(a(document),a(window),a(i.prototype)):i.prototype.hasOwnProperty(o)&&(s(window),s(i.prototype)),t.on("addEventListener-start",(function(e,t){var r=e[1];if(null!==r&&("function"==typeof r||"object"==x(r))){var i=(0,g.X)(r,"nr@wrapped",(function(){var e={object:function(){if("function"==typeof r.handleEvent)return r.handleEvent.apply(r,arguments)},function:r}[x(r)];return e?n(e,"fn-",null,e.name||"anonymous"):r}));this.wrapped=e[1]=i}})),t.on("removeEventListener-start",(function(e){e[1]=this.wrapped||e[1]})),t}(e)}function y(e){return function(e){var t=a.Y.FETCH,n=e||r.ee,i=function(e,t,n){return function(){var r,i=o()(arguments),a={};e.emit(n+"before-start",[i],a),a[u]&&a[u].dt&&(r=a[u].dt);var s=t.apply(this,i);return e.emit(n+"start",[i,r],s),s.then((function(t){return e.emit(n+"end",[null,t],s),t}),(function(t){throw e.emit(n+"end",[t],s),t}))}}(n,t,"fetch-");return n.on("fetch-end",(function(e,t){var r=this;if(t){var i=t.headers.get("content-length");null!==i&&(r.rxSize=i),n.emit("fetch-done",[null,t],r)}else n.emit("fetch-done",[e],r)})),i}(e)}function b(e){return function(e){var t=function(e){return(e||r.ee).get("history")}(e),n=l(t),i=window.history&&window.history.constructor&&window.history.constructor.prototype,o=window.history;return i&&i.pushState&&i.replaceState&&(o=i),n.inPlace(o,["pushState","replaceState"],"-"),t}(e)}function w(e){return function(e){var t=function(e){return(e||r.ee).get("raf")}(e),n=l(t);return n.inPlace(window,["requestAnimationFrame","mozRequestAnimationFrame","webkitRequestAnimationFrame","msRequestAnimationFrame"],"raf-"),t.on("raf-start",(function(e){e[0]=n(e[0],"fn-")})),t}(e)}function E(e){return function(e){var t=function(e){return(e||r.ee).get("timer")}(e),n=l(t),i="setTimeout",o="setInterval",a="-start";return n.inPlace(window,[i,"setImmediate"],"setTimeout-"),n.inPlace(window,[o],"setInterval-"),n.inPlace(window,["clearTimeout","clearImmediate"],"clearTimeout-"),t.on(o+a,(function(e,t,r){e[0]=n(e[0],"fn-",null,r)})),t.on(i+a,(function(e,t,r){this.method=r,this.timerDuration=isNaN(e[1])?0:+e[1],e[0]=n(e[0],"fn-",this,r)})),t}(e)}function S(e){return function(e){var t=e||r.ee,n=function(e){return(e||r.ee).get("events")}(t),i=l(n),o=a.Y.XHR,s=a.Y.MO,u=a.Y.PR,c=a.Y.SI,f="readystatechange",d=["onload","onerror","onabort","onloadstart","onloadend","onprogress","ontimeout"],h=[],v=window.XMLHttpRequest=function(e){var t=new o(e);try{n.emit("new-xhr",[t],t),t.addEventListener(f,m,(0,p.m)(!1))}catch(e){try{n.emit("internal-error",[e])}catch(e){}}return t};function g(e,t){i.inPlace(t,["onreadystatechange"],"fn-",E)}function m(){var e=this,t=n.context(e);e.readyState>3&&!t.resolved&&(t.resolved=!0,n.emit("xhr-resolved",[],e)),i.inPlace(e,d,"fn-",E)}if(function(e,t){for(var n in e)t[n]=e[n]}(o,v),v.prototype=o.prototype,i.inPlace(v.prototype,["open","send"],"-xhr-",E),n.on("send-xhr-start",(function(e,t){g(0,t),function(e){h.push(e),s&&(y?y.then(x):c?c(x):(b=-b,w.data=b))}(t)})),n.on("open-xhr-start",g),s){var y=u&&u.resolve();if(!c&&!u){var b=1,w=document.createTextNode(b);new s(x).observe(w,{characterData:!0})}}else t.on("fn-end",(function(e){e[0]&&e[0].type===f||x()}));function x(){for(var e=0;e<h.length;e++)g(0,h[e]);h.length&&(h=[])}function E(e,t){return t}return n}(e)}},74:function(e,t,n){"use strict";n.r(t),n.d(t,{Aggregate:function(){return y}});var r=n(3406),i=n(1240),o=n(151),a=n(2995),s=n(6061),u=n(9729),c=n(2848),f=n(9391),d=n(4202),h=[];function g(e,t){return 0===e.indexOf("/")&&(e=e.substring(1)),0===t.indexOf("/")&&(t=t.substring(1)),""===e||e===t}var y=function(e){p(n,e);var t=m(n);function n(e,i){var o;return l(this,n),(o=t.call(this,e,i)).ajaxEvents=[],o.spaAjaxEvents={},o.sentAjaxEvents=[],o.scheduler,o.harvestTimeSeconds=(0,s.Mt)(o.agentIdentifier,"ajax.harvestTimeSeconds")||10,o.MAX_PAYLOAD_SIZE=(0,s.Mt)(o.agentIdentifier,"ajax.maxPayloadSize")||1e6,o.ee.on("interactionSaved",(function(e){this.spaAjaxEvents[e.id]&&delete this.spaAjaxEvents[e.id]})),o.ee.on("interactionDiscarded",(function(e){this.spaAjaxEvents[e.id]&&this.allAjaxIsEnabled()&&(this.spaAjaxEvents[e.id].forEach((function(e){this.ajaxEvents.push(e)})),delete this.spaAjaxEvents[e.id])})),o.allAjaxIsEnabled()&&function(e){if(h=[],e&&e.length)for(var t=0;t<e.length;t++){var n=e[t];0===n.indexOf("http://")?n=n.substring(7):0===n.indexOf("https://")&&(n=n.substring(8));var r=n.indexOf("/");r>0?h.push({hostname:n.substring(0,r),pathname:n.substring(r)}):h.push({hostname:n,pathname:""})}}((0,s.Mt)(o.agentIdentifier,"ajax.deny_list")),(0,r.XN)("xhr",(function(){var e;return(e=o).storeXhr.apply(e,arguments)}),void 0,o.ee),o.allAjaxIsEnabled()&&(o.scheduler=new c.o("events",{onFinished:function(){var e;return(e=o).onEventsHarvestFinished.apply(e,arguments)},getPayload:function(){var e;return(e=o).prepareHarvest.apply(e,arguments)}}),o.scheduler.harvest.on("jserrors",(function(){return{body:this.aggregator.take(["xhr"])}})),o.scheduler.startTimer(o.harvestTimeSeconds),(0,f.l)((function(){var e;return(e=o).finalHarvest.apply(e,arguments)}))),o}return v(n,[{key:"getStoredEvents",value:function(){return{ajaxEvents:this.ajaxEvents,spaAjaxEvents:this.spaAjaxEvents}}},{key:"storeXhr",value:function(e,t,n,r,o){var s;if("localhost"!==e.hostname&&(t.time=n,s=e.cat?(0,i.P)([e.status,e.cat]):(0,i.P)([e.status,e.host,e.pathname]),(0,a.pr)("bstXhrAgg",["xhr",s,e,t],void 0,void 0,this.ee),this.aggregator.store("xhr",s,e,t),this.allAjaxIsEnabled()))if(function(e){if(0===h.length)return!0;for(var t=0;t<h.length;t++){var n=h[t];if("*"===n.hostname)return!1;if(r=n.hostname,i=e.hostname,!(r.length>i.length)&&i.indexOf(r)===i.length-r.length&&g(n.pathname,e.pathname))return!1}var r,i;return!0}(e)){var c=this,f={method:e.method,status:e.status,domain:e.host,path:e.pathname,requestSize:t.txSize,responseSize:t.rxSize,type:o,startTime:n,endTime:r,callbackDuration:t.cbTime};if(c.dt&&(f.spanId=c.dt.spanId,f.traceId=c.dt.traceId,f.spanTimestamp=c.dt.timestamp),this.spaNode){var l=this.spaNode.interaction.id;this.spaAjaxEvents[l]=this.spaAjaxEvents[l]||[],this.spaAjaxEvents[l].push(f)}else this.ajaxEvents.push(f)}else e.hostname===(0,u.C)(this.agentIdentifier).errorBeacon?(0,d.VB)("Ajax/Events/Excluded/Agent"):(0,d.VB)("Ajax/Events/Excluded/App")}},{key:"prepareHarvest",value:function(e){if(e=e||{},0===this.ajaxEvents.length)return null;for(var t=this.getPayload(this.ajaxEvents,e.maxPayloadSize||this.MAX_PAYLOAD_SIZE),n=[],r=0;r<t.length;r++)n.push({body:{e:t[r]}});return e.retry&&(this.sentAjaxEvents=this.ajaxEvents.slice()),this.ajaxEvents=[],n}},{key:"getPayload",value:function(e,t,n){n=n||1;for(var r=[],i=e.length/n,o=this.splitChunks(e,i),a=!1,s=0;s<o.length;s++){var u=o[s];if(u.tooBig(t)){if(1!==u.events.length){a=!0;break}}else r.push(u.payload)}return a?this.getPayload(e,t,++n):r}},{key:"onEventsHarvestFinished",value:function(e){e.retry&&this.sentAjaxEvents.length>0&&this.allAjaxIsEnabled()&&(this.ajaxEvents=this.ajaxEvents.concat(this.sentAjaxEvents),this.sentAjaxEvents=[])}},{key:"splitChunks",value:function(e,t){t=t||e.length;for(var n=[],r=0,i=e.length;r<i;r+=t)n.push(new this.Chunk(e.slice(r,r+t)));return n}},{key:"Chunk",value:function(e){this.addString=(0,o.FX)(),this.events=e,this.payload="bel.7;";for(var t=0;t<this.events.length;t++){var n=this.events[t],r=[(0,o.uR)(n.startTime),(0,o.uR)(n.endTime-n.startTime),(0,o.uR)(0),(0,o.uR)(0),this.addString(n.method),(0,o.uR)(n.status),this.addString(n.domain),this.addString(n.path),(0,o.uR)(n.requestSize),(0,o.uR)(n.responseSize),"fetch"===n.type?1:"",this.addString(0),(0,o.AG)(n.spanId,this.addString,!0)+(0,o.AG)(n.traceId,this.addString,!0)+(0,o.AG)(n.spanTimestamp,o.uR,!1)],i="2,",a=(0,o.n1)((0,u.C)(this.agentIdentifier).jsAttributes||{},this.addString);r.unshift((0,o.uR)(a.length)),i+=r.join(","),a&&a.length>0&&(i+=";"+a.join(";")),t+1<this.events.length&&(i+=";"),this.payload+=i}this.tooBig=function(e){return e=e||this.MAX_PAYLOAD_SIZE,2*this.payload.length>e}}},{key:"allAjaxIsEnabled",value:function(){return!1!==(0,s.Mt)(this.agentIdentifier,"ajax.enabled")}}]),n}(n(1839).W)},9770:function(e,t,n){"use strict";n.r(t),n.d(t,{Instrument:function(){return P},getWrappedFetch:function(){return A}});var r=n(5307),i=n(2909),o=n(5501),a=n(2995),s=n(2755),u=n(9381),c=1;function f(e){var t=x(e);return!e||"object"!==t&&"function"!==t?-1:e===window?0:(0,u.X)(e,"nr@id",(function(){return c++}))}var d=n(2572);function h(e){if("string"==typeof e&&e.length)return e.length;if("object"==x(e)){if("undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer&&e.byteLength)return e.byteLength;if("undefined"!=typeof Blob&&e instanceof Blob&&e.size)return e.size;if(!("undefined"!=typeof FormData&&e instanceof FormData))try{return JSON.stringify(e).length}catch(e){return}}}var g=n(4518),y=n(2997),b=n(3097),w=n(4017),E=n(6061),S=n(8053),O=function(){function e(t){l(this,e),this.agentIdentifier=t}return v(e,[{key:"generateTracePayload",value:function(e){if(!this.shouldGenerateTrace(e))return null;var t=(0,o.D)(this.agentIdentifier);if(!t)return null;var n=(t.accountID||"").toString()||null,r=(t.agentID||"").toString()||null,i=(t.trustKey||"").toString()||null;if(!n||!r)return null;var a=(0,S.generateSpanId)(),s=(0,S.generateTraceId)(),u=Date.now(),c={spanId:a,traceId:s,timestamp:u};return(e.sameOrigin||this.isAllowedOrigin(e)&&this.useTraceContextHeadersForCors())&&(c.traceContextParentHeader=this.generateTraceContextParentHeader(a,s),c.traceContextStateHeader=this.generateTraceContextStateHeader(a,u,n,r,i)),(e.sameOrigin&&!this.excludeNewrelicHeader()||!e.sameOrigin&&this.isAllowedOrigin(e)&&this.useNewrelicHeaderForCors())&&(c.newrelicHeader=this.generateTraceHeader(a,s,u,n,r,i)),c}},{key:"generateTraceContextParentHeader",value:function(e,t){return"00-"+t+"-"+e+"-01"}},{key:"generateTraceContextStateHeader",value:function(e,t,n,r,i){return i+"@nr=0-1-"+n+"-"+r+"-"+e+"----"+t}},{key:"generateTraceHeader",value:function(e,t,n,r,i,o){if(!("btoa"in window)||"function"!=typeof window.btoa)return null;var a={v:[0,1],d:{ty:"Browser",ac:r,ap:i,id:e,tr:t,ti:n}};return o&&r!==o&&(a.d.tk=o),btoa(JSON.stringify(a))}},{key:"shouldGenerateTrace",value:function(e){return this.isDtEnabled()&&this.isAllowedOrigin(e)}},{key:"isAllowedOrigin",value:function(e){var t=!1,n={};if((0,E.Mt)("distributed_tracing")&&(n=(0,E.P_)().distributed_tracing),e.sameOrigin)t=!0;else if(n.allowed_origins instanceof Array)for(var r=0;r<n.allowed_origins.length;r++){var i=(0,w.e)(n.allowed_origins[r]);if(e.hostname===i.hostname&&e.protocol===i.protocol&&e.port===i.port){t=!0;break}}return t}},{key:"isDtEnabled",value:function(){var e=(0,E.Mt)(this.agentIdentifier,"distributed_tracing");return!!e&&!!e.enabled}},{key:"excludeNewrelicHeader",value:function(){var e=(0,E.Mt)(this.agentIdentifier,"distributed_tracing");return!!e&&!!e.exclude_newrelic_header}},{key:"useNewrelicHeaderForCors",value:function(){var e=(0,E.Mt)(this.agentIdentifier,"distributed_tracing");return!!e&&!1!==e.cors_use_newrelic_header}},{key:"useTraceContextHeadersForCors",value:function(){var e=(0,E.Mt)(this.agentIdentifier,"distributed_tracing");return!!e&&!e.cors_use_tracecontext_headers}}]),e}(),k=n(1839),T=["load","error","abort","timeout"],j=T.length,_=r.Y.REQ,I=window.XMLHttpRequest,P=function(e){p(n,e);var t=m(n);function n(e){var r;return l(this,n),r=t.call(this,e),(0,i.O)(r.agentIdentifier).xhrWrappable&&!(0,i.O)(r.agentIdentifier).disabled&&(r.dt=new O(r.agentIdentifier)),r}return v(n)}(k.W);function A(){var e=(0,b.u5)(s.ee);return function(e,t){function n(e){var n=this.params,r=this.metrics;if(!this.ended){this.ended=!0;for(var o=0;o<j;o++)e.removeEventListener(T[o],this.listener,!1);n.aborted||(r.duration=(0,y.now)()-this.startTime,this.loadCaptureCalled||4!==e.readyState?null==n.status&&(n.status=0):i(this,e),r.cbTime=this.cbTime,t("xhr",[n,r,this.startTime,this.endTime,"xhr"],this))}}function r(e,t){var n=(0,w.e)(t),r=e.params;r.hostname=n.hostname,r.port=n.port,r.protocol=n.protocol,r.host=n.hostname+":"+n.port,r.pathname=n.pathname,e.parsedOrigin=n,e.sameOrigin=n.sameOrigin}function i(e,t){e.params.status=t.status;var n=function(e,t){var n=e.responseType;return"json"===n&&null!==t?t:"arraybuffer"===n||"blob"===n||"json"===n?h(e.response):"text"===n||""===n||void 0===n?h(e.responseText):void 0}(t,e.lastSize);if(n&&(e.metrics.rxSize=n),e.sameOrigin){var r=t.getResponseHeader("X-NewRelic-App-Data");r&&(e.params.cat=r.split(", ").pop())}e.loadCaptureCalled=!0}e.on("new-xhr",(function(e){var t=this;t.totalCbs=0,t.called=0,t.cbTime=0,t.end=n,t.ended=!1,t.xhrGuids={},t.lastSize=null,t.loadCaptureCalled=!1,t.params=this.params||{},t.metrics=this.metrics||{},e.addEventListener("load",(function(n){i(t,e)}),(0,g.m)(!1)),d.I&&(d.I>34||d.I<10)||e.addEventListener("progress",(function(e){t.lastSize=e.loaded}),(0,g.m)(!1))})),e.on("open-xhr-start",(function(e){this.params={method:e[0]},r(this,e[1]),this.metrics={}})),e.on("open-xhr-end",(function(e,t){var n=(0,o.D)();"xpid"in n&&this.sameOrigin&&t.setRequestHeader("X-NewRelic-ID",n.xpid);var r=this.dt.generateTracePayload(this.parsedOrigin);if(r){var i=!1;r.newrelicHeader&&(t.setRequestHeader("newrelic",r.newrelicHeader),i=!0),r.traceContextParentHeader&&(t.setRequestHeader("traceparent",r.traceContextParentHeader),r.traceContextStateHeader&&t.setRequestHeader("tracestate",r.traceContextStateHeader),i=!0),i&&(this.dt=r)}})),e.on("send-xhr-start",(function(t,n){var r=this.metrics,i=t[0],o=this;if(r&&i){var a=h(i);a&&(r.txSize=a)}this.startTime=(0,y.now)(),this.listener=function(t){try{"abort"!==t.type||o.loadCaptureCalled||(o.params.aborted=!0),("load"!==t.type||o.called===o.totalCbs&&(o.onloadCalled||"function"!=typeof n.onload))&&o.end(n)}catch(t){try{e.emit("internal-error",[t])}catch(e){}}};for(var s=0;s<j;s++)n.addEventListener(T[s],this.listener,(0,g.m)(!1))})),e.on("xhr-cb-time",(function(e,t,n){this.cbTime+=e,t?this.onloadCalled=!0:this.called+=1,this.called!==this.totalCbs||!this.onloadCalled&&"function"==typeof n.onload||this.end(n)})),e.on("xhr-load-added",(function(e,t){var n=""+f(e)+!!t;this.xhrGuids&&!this.xhrGuids[n]&&(this.xhrGuids[n]=!0,this.totalCbs+=1)})),e.on("xhr-load-removed",(function(e,t){var n=""+f(e)+!!t;this.xhrGuids&&this.xhrGuids[n]&&(delete this.xhrGuids[n],this.totalCbs-=1)})),e.on("xhr-resolved",(function(){this.endTime=(0,y.now)()})),e.on("addEventListener-end",(function(t,n){n instanceof I&&"load"===t[0]&&e.emit("xhr-load-added",[t[1],t[2]],n)})),e.on("removeEventListener-end",(function(t,n){n instanceof I&&"load"===t[0]&&e.emit("xhr-load-removed",[t[1],t[2]],n)})),e.on("fn-end",(function(t,n){this.xhrCbStart&&e.emit("xhr-cb-time",[(0,y.now)()-this.xhrCbStart,this.onload,n],n)})),e.on("fetch-before-start",(function(e){var t,n=e[1]||{};"string"==typeof e[0]?t=e[0]:e[0]&&e[0].url?t=e[0].url:window.URL&&e[0]&&e[0]instanceof URL&&(t=e[0].href),t&&(this.parsedOrigin=(0,w.e)(t),this.sameOrigin=this.parsedOrigin.sameOrigin);var r=this.dt.generateTracePayload(this.parsedOrigin);if(r&&(r.newrelicHeader||r.traceContextParentHeader))if("string"==typeof e[0]||window.URL&&e[0]&&e[0]instanceof URL){var i={};for(var o in n)i[o]=n[o];i.headers=new Headers(n.headers||{}),a(i.headers,r)&&(this.dt=r),e.length>1?e[1]=i:e.push(i)}else e[0]&&e[0].headers&&a(e[0].headers,r)&&(this.dt=r);function a(e,t){var n=!1;return t.newrelicHeader&&(e.set("newrelic",t.newrelicHeader),n=!0),t.traceContextParentHeader&&(e.set("traceparent",t.traceContextParentHeader),t.traceContextStateHeader&&e.set("tracestate",t.traceContextStateHeader),n=!0),n}})),e.on("fetch-start",(function(e,t){this.params={},this.metrics={},this.startTime=(0,y.now)(),this.dt=t,e.length>=1&&(this.target=e[0]),e.length>=2&&(this.opts=e[1]);var n,i=this.opts||{},o=this.target;"string"==typeof o?n=o:"object"==x(o)&&o instanceof _?n=o.url:window.URL&&"object"==x(o)&&o instanceof URL&&(n=o.href),r(this,n);var a=(""+(o&&o instanceof _&&o.method||i.method||"GET")).toUpperCase();this.params.method=a,this.txSize=h(i.body)||0})),e.on("fn-start",(function(e,t,n){t instanceof I&&("onload"===n&&(this.onload=!0),("load"===(e[0]&&e[0].type)||this.onload)&&(this.xhrCbStart=(0,y.now)()))})),e.on("fetch-done",(function(e,n){var r;this.endTime=(0,y.now)(),this.params||(this.params={}),this.params.status=n?n.status:0,"string"==typeof this.rxSize&&this.rxSize.length>0&&(r=+this.rxSize);var i={txSize:this.txSize,rxSize:r,duration:(0,y.now)()-this.startTime};t("xhr",[this.params,i,this.startTime,this.endTime,"fetch"],this)}))}(s.ee,a.pr),e}},7326:function(e,t,n){"use strict";n.r(t),n.d(t,{Aggregate:function(){return A}});var r=/([a-z0-9]+)$/i;function i(e){if(e){var t=e.match(r);return t?t[1]:void 0}}var o=n(8354),a=/^\n+|\n+$/g,s=/function (.+?)\s*\(/,u=/^\s*at (?:((?:\[object object\])?(?:[^(]*\([^)]*\))*[^()]*(?: \[as \S+\])?) )?\(?((?:file|http|https|chrome-extension):.*?)?:(\d+)(?::(\d+))?\)?\s*$/i,c=/^\s*(?:(\S*|global code)(?:\(.*?\))?@)?((?:file|http|https|chrome|safari-extension).*?):(\d+)(?::(\d+))?\s*$/i,f=/^\s*at .+ \(eval at \S+ \((?:(?:file|http|https):[^)]+)?\)(?:, [^:]*:\d+:\d+)?\)$/i,d=/^\s*at Function code \(Function code:\d+:\d+\)\s*/i;function h(e,t){var n,r=function(e){var t=e.match(c);return t||(t=e.match(u)),t?{url:t[2],func:"Anonymous function"!==t[1]&&"global code"!==t[1]&&t[1]||null,line:+t[3],column:t[4]?+t[4]:null}:e.match(f)||e.match(d)||"anonymous"===e?{func:"evaluated code"}:void 0}(t);return r?((n=r.func)&&n.indexOf("nrWrapper")>=0?e.wrapperSeen=!0:e.stackLines.push(t),e.wrapperSeen||e.frames.push(r),e):(e.stackLines.push(t),e)}function g(e){var t=s.exec(String(e.constructor));return t&&t.length>1?t[1]:"unknown"}function y(e){var t=0;if(!e||!e.length)return t;for(var n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return t}var w=n(3406),E=n(2848),S=n(1240),O=n(2995),k=n(1558),T=n(6061),j=n(2909),_=n(9729),I=n(2997),P=n(5988),A=function(e){p(n,e);var t=m(n);function n(e,r){var i;l(this,n),(i=t.call(this,e,r)).stackReported={},i.pageviewReported={},i.errorCache={},i.currentBody,i.errorOnPage=!1,i.ee.on("interactionSaved",(function(e){this.errorCache[e.id]&&(this.errorCache[e.id].forEach((function(t){var n={},r=t[4],i=t[5];(0,k.D)(r,s),(0,k.D)(e.root.attrs.custom,s),(0,k.D)(i,s);var o=t[2];o.browserInteractionId=e.root.attrs.id,delete o._interactionId,o._interactionNodeId&&(o.parentNodeId=o._interactionNodeId.toString(),delete o._interactionNodeId);var a=t[1]+e.root.attrs.id+":"+y((0,S.P)(n));function s(e,t){n[e]=t&&"object"==x(t)?(0,S.P)(t):t}this.aggregator.store(t[0],a,o,t[3],n)})),delete this.errorCache[e.id])})),i.ee.on("interactionDiscarded",(function(e){this.errorCache&&this.errorCache[e.id]&&(this.errorCache[e.id].forEach((function(t){var n={},r=t[4],i=t[5];(0,k.D)(r,s),(0,k.D)(e.root.attrs.custom,s),(0,k.D)(i,s);var o=t[2];delete o._interactionId,delete o._interactionNodeId;var a=t[1]+":"+y((0,S.P)(n));function s(e,t){n[e]=t&&"object"==x(t)?(0,S.P)(t):t}this.aggregator.store(t[0],a,t[2],t[3],n)})),delete this.errorCache[e.id])})),(0,w.XN)("err",(function(){var e;return(e=i).storeError.apply(e,arguments)}),void 0,i.ee),(0,w.XN)("ierr",(function(){var e;return(e=i).storeError.apply(e,arguments)}),void 0,i.ee);var o=(0,T.Mt)(i.agentIdentifier,"jserrors.harvestTimeSeconds")||10,a=new E.o("jserrors",{onFinished:function(){var e;return(e=i).onHarvestFinished.apply(e,arguments)}},b(i));return a.harvest.on("jserrors",(function(){var e;return(e=i).onHarvestStarted.apply(e,arguments)})),a.startTimer(o),i}return v(n,[{key:"onHarvestStarted",value:function(e){var t=this.aggregator.take(["err","ierr"]);e.retry&&(this.currentBody=t);var n={body:t,qs:{}},r=(0,S.P)((0,j.O)(this.agentIdentifier).releaseIds);return"{}"!==r&&(n.qs.ri=r),t&&t.err&&t.err.length&&!this.errorOnPage&&(n.qs.pve="1",this.errorOnPage=!0),n}},{key:"onHarvestFinished",value:function(e){e.retry&&this.currentBody&&((0,k.D)(this.currentBody,(function(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=this.getBucketName(r.params,r.custom);this.aggregator.merge(e,i,r.metrics,r.params,r.custom)}})),this.currentBody=null)}},{key:"nameHash",value:function(e){return y(e.exceptionClass)^e.stackHash}},{key:"getBucketName",value:function(e,t){return this.nameHash(e)+":"+y((0,S.P)(t))}},{key:"canonicalizeURL",value:function(e,t){if("string"!=typeof e)return"";var n=(0,P.f)(e);return n===t?"<inline>":n}},{key:"buildCanonicalStackString",value:function(e,t){for(var n="",r=0;r<e.frames.length;r++){var o=e.frames[r],a=i(o.func);n&&(n+="\n"),a&&(n+=a+"@"),"string"==typeof o.url&&(n+=o.url),o.line&&(n+=":"+o.line)}return n}},{key:"canonicalizeStackURLs",value:function(e){for(var t=(0,P.f)((0,j.O)(this.agentIdentifier).origin),n=0;n<e.frames.length;n++){var r=e.frames[n],i=r.url,o=this.canonicalizeURL(i,t);o&&o!==r.url&&(r.url=o,e.stackString=e.stackString.split(i).join(o))}return e}},{key:"storeError",value:function(e,t,n,r){if(t=t||(0,I.now)(),n||!(0,j.O)(this.agentIdentifier).onerror||!(0,j.O)(this.agentIdentifier).onerror(e)){var i,s=this.canonicalizeStackURLs(function(e){var t=null;try{if(t=function(e){if(!e.stack)return null;var t,n=(0,o.u)(e.stack.split("\n"),h,{frames:[],stackLines:[],wrapperSeen:!1});return n.frames.length?{mode:"stack",name:e.name||g(e),message:e.message,stackString:(t=n.stackLines,function(e){var t;if(e.length>100){var n=e.length-100;t=e.slice(0,50).join("\n"),t+="\n< ...truncated "+n+" lines... >\n",t+=e.slice(-50).join("\n")}else t=e.join("\n");return t}(t).replace(a,"")),frames:n.frames}:null}(e),t)return t}catch(e){}try{if(t=function(e){if(!("line"in e))return null;var t=e.name||g(e);if(!e.sourceURL)return{mode:"sourceline",name:t,message:e.message,stackString:g(e)+": "+e.message+"\n in evaluated code",frames:[{func:"evaluated code"}]};var n=t+": "+e.message+"\n at "+e.sourceURL;return e.line&&(n+=":"+e.line,e.column&&(n+=":"+e.column)),{mode:"sourceline",name:t,message:e.message,stackString:n,frames:[{url:e.sourceURL,line:e.line,column:e.column}]}}(e),t)return t}catch(e){}try{if(t=function(e){var t=e.name||g(e);return t?{mode:"nameonly",name:t,message:e.message,stackString:t+": "+e.message,frames:[]}:null}(e),t)return t}catch(e){}return{mode:"failed",stackString:"",frames:[]}}(e)),u={stackHash:y(this.buildCanonicalStackString(s)),exceptionClass:s.name,request_uri:window.location.pathname};s.message&&(u.message=""+s.message),this.stackReported[u.stackHash]?u.browser_stack_hash=y(s.stackString):(this.stackReported[u.stackHash]=!0,u.stack_trace=(i=s.stackString).length>65530?i.substr(0,65530):i),u.releaseIds=(0,S.P)((0,j.O)(this.agentIdentifier).releaseIds);var c=this.nameHash(u);this.pageviewReported[c]||(u.pageview=1,this.pageviewReported[c]=!0);var f=n?"ierr":"err",d={time:t};if((0,O.pr)("errorAgg",[f,c,u,d],void 0,void 0,this.ee),null!=u._interactionId)this.errorCache[u._interactionId]=this.errorCache[u._interactionId]||[],this.errorCache[u._interactionId].push([f,c,u,d,v,r]);else{var l={},v=(0,_.C)(this.agentIdentifier).jsAttributes;(0,k.D)(v,m),r&&(0,k.D)(r,m);var p=c+":"+y((0,S.P)(l));this.aggregator.store(f,p,u,d,l)}}function m(e,t){l[e]=t&&"object"==x(t)?(0,S.P)(t):t}}}]),n}(n(1839).W)},3825:function(e,t,n){"use strict";n.r(t),n.d(t,{Instrument:function(){return y}});var r=n(2995),i=n(2909),o=n(2997),a=n(9381),s=n(3097),u=n(7957),c=n.n(u),f=n(1839),d=window.onerror,h=!1,g="nr@seenError",y=function(e){p(n,e);var t=m(n);function n(e){var u;l(this,n),(u=t.call(this,e)).skipNext=0;var c=b(u);u.ee.on("fn-start",(function(e,t,n){h&&(this.skipNext=this.skipNext?this.skipNext+1:1)})),u.ee.on("fn-err",(function(e,t,n){h&&!n[g]&&((0,a.X)(n,g,(function(){return!0})),this.thrown=!0,x(n,void 0,c.ee))})),u.ee.on("fn-end",(function(){h&&!this.thrown&&this.skipNext>0&&(this.skipNext-=1)})),u.ee.on("internal-error",(function(e){(0,r.pr)("ierr",[e,(0,o.now)(),!0],void 0,void 0,u.ee)}));var f=window.onerror;window.onerror=function(){var e;return f&&f.apply(void 0,arguments),(e=u).onerrorHandler.apply(e,arguments),!1};try{window.addEventListener("unhandledrejection",(function(e){u.onerrorHandler(null,null,null,null,new Error(e.reason))}))}catch(e){}try{throw new Error}catch(e){"stack"in e&&((0,s.BV)(u.ee),(0,s.gy)(u.ee),"addEventListener"in window&&(0,s.em)(u.ee),(0,i.O)(u.agentIdentifier).xhrWrappable&&(0,s.Kf)(u.ee),h=!0)}return u}return v(n,[{key:"onerrorHandler",value:function(e,t,n,i,a){try{this.skipNext?this.skipNext-=1:x(a||new w(e,t,n),!0,this.ee)}catch(e){try{(0,r.pr)("ierr",[e,(0,o.now)(),!0],void 0,void 0,this.ee)}catch(e){}}return"function"==typeof d&&d.apply(this,c()(arguments))}}]),n}(f.W);function w(e,t,n){this.message=e||"Uncaught error with no additional information",this.sourceURL=t,this.line=n}function x(e,t,n){var i=t?null:(0,o.now)();(0,r.pr)("err",[e,i],void 0,void 0,n)}},9098:function(e,t,n){"use strict";n.r(t),n.d(t,{Aggregate:function(){return d}});var r=n(1558),i=n(1240),o=n(3406),a=n(2848),s=n(5988),u=n(6061),c=n(9729),f=n(2909),d=function(e){p(n,e);var t=m(n);function n(e,r){var i;return l(this,n),(i=t.call(this,e,r)).eventsPerMinute=240,i.harvestTimeSeconds=(0,u.Mt)("ins.harvestTimeSeconds")||30,i.eventsPerHarvest=i.eventsPerMinute*i.harvestTimeSeconds/60,i.referrerUrl,i.currentEvents,i.events=[],i.att={},(0,c.L)(i.agentIdentifier,{jsAttributes:i.att}),document.referrer&&(i.referrerUrl=(0,s.f)(document.referrer)),(0,o.XN)("api-setCustomAttribute",(function(){var e;return(e=i).setCustomAttribute.apply(e,arguments)}),"api",i.ee),i.ee.on("feat-ins",(function(){var e=this;(0,o.XN)("api-addPageAction",(function(){return e.addPageAction.apply(e,arguments)}),void 0,this.ee);var t=new a.o("ins",{onFinished:function(){return e.onHarvestFinished.apply(e,arguments)}},this);t.harvest.on("ins",(function(){return e.onHarvestStarted.apply(e,arguments)})),t.startTimer(this.harvestTimeSeconds,0)})),i}return v(n,[{key:"onHarvestStarted",value:function(e){var t=(0,c.C)(this.agentIdentifier),n={qs:{ua:t.userAttributes,at:t.atts},body:{ins:this.events}};return e.retry&&(this.currentEvents=this.events),this.events=[],n}},{key:"onHarvestFinished",value:function(e){e&&e.sent&&e.retry&&this.currentEvents&&(this.events=this.events.concat(this.currentEvents),this.currentEvents=null)}},{key:"addPageAction",value:function(e,t,n){if(!(this.events.length>=this.eventsPerHarvest)){var o,a,u={};"undefined"!=typeof window&&window.document&&window.document.documentElement&&(o=window.document.documentElement.clientWidth,a=window.document.documentElement.clientHeight);var c={timestamp:e+(0,f.O)(this.agentIdentifier).offset,timeSinceLoad:e/1e3,browserWidth:o,browserHeight:a,referrerUrl:this.referrerUrl,currentUrl:(0,s.f)(""+location),pageUrl:(0,s.f)((0,f.O)(this.agentIdentifier).origin),eventType:"PageAction"};(0,r.D)(c,d),(0,r.D)(this.att,d),n&&"object"==x(n)&&(0,r.D)(n,d),u.actionName=t||"",this.events.push(u)}function d(e,t){u[e]=t&&"object"==x(t)?(0,i.P)(t):t}}},{key:"setCustomAttribute",value:function(e,t,n){this.att[t]=n}}]),n}(n(1839).W)},2895:function(e,t,n){"use strict";n.r(t),n.d(t,{Instrument:function(){return i}});var r=n(2909),i=function(e){p(n,e);var t=m(n);function n(e){var i;return l(this,n),i=t.call(this,e),(0,r.O)(i.agentIdentifier).disabled||((0,r.O)(i.agentIdentifier).features.ins=!0),i}return v(n)}(n(1839).W)},3887:function(e,t,n){"use strict";n.r(t),n.d(t,{Aggregate:function(){return x}});var r=n(232),i=n(1558),o=n(353),a=[];function s(e,t){return u(e.type,0,t,"ty"),u(e.redirectCount,0,t,"rc"),t}function u(e,t,n,r){var i;"number"==typeof e&&e>0&&(i=Math.round(e-t),n[r]=i),a.push(i)}var c=n(1240),f={},d=n(870),h=n(6061),g=n(9729),y=n(2909),w=n(2848),x=function(e){p(n,e);var t=m(n);function n(e,a){var v;l(this,n),(v=t.call(this,e,a)).getScheme=function(){return!1===(0,h.Mt)(v.agentIdentifier,"ssl")?"http":"https"};var p=(0,g.C)(v.agentIdentifier);if(p.beacon){p.queueTime&&v.aggregator.store("measures","qt",{value:p.queueTime}),p.applicationTime&&v.aggregator.store("measures","ap",{value:p.applicationTime}),(0,r.L)(v.aggregator,"be","starttime","firstbyte"),(0,r.L)(v.aggregator,"fe","firstbyte","onload"),(0,r.L)(v.aggregator,"dc","firstbyte","domContent");var m,x,E,S=v.aggregator.get("measures"),O=(0,i.D)(S,(function(e,t){return"&"+e+"="+t.params.value})).join(""),k=[new w.o("page-view-event",{},b(v)).harvest.baseQueryString()];if(k.push(O),k.push((0,o.wu)("tt",p.ttGuid)),k.push((0,o.wu)("us",p.user)),k.push((0,o.wu)("ac",p.account)),k.push((0,o.wu)("pr",p.product)),k.push((0,o.wu)("af",(0,i.D)((0,y.O)(v.agentIdentifier).features,(function(e){return e})).join(","))),window.performance&&void 0!==window.performance.timing){var T={timing:(m=window.performance.timing,x={},E=m.navigationStart,x.of=E,u(E,E,x,"n"),u(m.unloadEventStart,E,x,"u"),u(m.redirectStart,E,x,"r"),u(m.unloadEventEnd,E,x,"ue"),u(m.redirectEnd,E,x,"re"),u(m.fetchStart,E,x,"f"),u(m.domainLookupStart,E,x,"dn"),u(m.domainLookupEnd,E,x,"dne"),u(m.connectStart,E,x,"c"),u(m.secureConnectionStart,E,x,"s"),u(m.connectEnd,E,x,"ce"),u(m.requestStart,E,x,"rq"),u(m.responseStart,E,x,"rp"),u(m.responseEnd,E,x,"rpe"),u(m.domLoading,E,x,"dl"),u(m.domInteractive,E,x,"di"),u(m.domContentLoadedEventStart,E,x,"ds"),u(m.domContentLoadedEventEnd,E,x,"de"),u(m.domComplete,E,x,"dc"),u(m.loadEventStart,E,x,"l"),u(m.loadEventEnd,E,x,"le"),x),navigation:s(window.performance.navigation,{})};k.push((0,o.wu)("perf",(0,c.P)(T)))}if(window.performance&&window.performance.getEntriesByType){var j=window.performance.getEntriesByType("paint");j&&j.length>0&&j.forEach((function(e){var t,n;!e.startTime||e.startTime<=0||("first-paint"===e.name?k.push((0,o.wu)("fp",String(Math.floor(e.startTime)))):"first-contentful-paint"===e.name&&k.push((0,o.wu)("fcp",String(Math.floor(e.startTime)))),t=e.name,n=Math.floor(e.startTime),f[t]=n)}))}k.push((0,o.wu)("xx",p.extra)),k.push((0,o.wu)("ua",p.userAttributes)),k.push((0,o.wu)("at",p.atts));var _=(0,c.P)(p.jsAttributes);k.push((0,o.wu)("ja","{}"===_?null:_));var I=(0,o.nI)(k,(0,y.O)(v.agentIdentifier).maxBytes);d.T.jsonp(v.getScheme()+"://"+p.beacon+"/1/"+p.licenseKey+I,"NREUM.setToken")}return v}return v(n)}(n(1839).W)},8161:function(e,t,n){"use strict";n.r(t),n.d(t,{Instrument:function(){return f}});var r=n(2995),i=n(2997),o=n(1839),a=n(4518),s=window,u=s.document;function c(e){"complete"===u.readyState&&e()}var f=function(e){p(n,e);var t=m(n);function n(e){var o,f;return l(this,n),o=t.call(this,e),(0,r.pr)("mark",["firstbyte",(0,i.getLastTimestamp)()],null,"api",o.ee),f=function(){return o.measureWindowLoaded()},u.addEventListener?s.addEventListener("load",f,(0,a.m)(!1)):s.attachEvent("onload",f),u.addEventListener?u.addEventListener("DOMContentLoaded",(function(){return o.measureDomContentLoaded()}),(0,a.m)(!1)):u.attachEvent("onreadystatechange",c),o}return v(n,[{key:"measureWindowLoaded",value:function(){var e=(0,i.now)();(0,r.pr)("mark",["onload",e+(0,i.getOffset)()],null,"api",this.ee),(0,r.pr)("timing",["load",e],void 0,void 0,this.ee)}},{key:"measureDomContentLoaded",value:function(){(0,r.pr)("mark",["domContent",(0,i.now)()+(0,i.getOffset)()],null,"api",this.ee)}}]),n}(o.W)},8617:function(e,t,n){"use strict";n.r(t),n.d(t,{Aggregate:function(){return d}});var r=n(151),i=n(2997),o=n(1558),a=n(2848),s=n(3406),u=n(5988),c=n(2995),f=n(9729),d=function(e){p(n,e);var t=m(n);function n(e,r){var i;l(this,n),(i=t.call(this,e,r)).timings=[],i.timingsSent=[],i.lcpRecorded=!1,i.lcp=null,i.clsSupported=!1,i.cls=0,i.clsSession={value:0,firstEntryTime:0,lastEntryTime:0},i.pageHideRecorded=!1,i.harvestTimeSeconds=30;try{clsSupported=PerformanceObserver.supportedEntryTypes.includes("layout-shift")}catch(e){}i.options||(i.options={});var o=i.options.maxLCPTimeSeconds||60,u=i.options.initialHarvestSeconds||10;return i.harvestTimeSeconds=i.options.harvestTimeSeconds||30,i.scheduler=new a.o("events",{onFinished:function(){var e;return(e=i).onHarvestFinished.apply(e,arguments)},getPayload:function(){var e;return(e=i).prepareHarvest.apply(e,arguments)},onUnload:function(){return i.finalHarvest()}},b(i)),(0,s.rP)("timing",(function(){var e;return(e=i).processTiming.apply(e,arguments)}),void 0,i.ee),(0,s.rP)("lcp",(function(){var e;return(e=i).updateLatestLcp.apply(e,arguments)}),void 0,i.ee),(0,s.rP)("cls",(function(){var e;return(e=i).updateClsScore.apply(e,arguments)}),void 0,i.ee),(0,s.rP)("pageHide",(function(){var e;return(e=i).updatePageHide.apply(e,arguments)}),void 0,i.ee),setTimeout((function(){i.recordLcp(),i.lcpRecorded=!0}),1e3*o),i.scheduler.startTimer(i.harvestTimeSeconds,u),i}return v(n,[{key:"recordLcp",value:function(){if(!this.lcpRecorded&&null!==this.lcp){var e=this.lcp[0],t=this.lcp[1],n=this.lcp[2],r={size:e.size,eid:e.id};n&&(n["net-type"]&&(r["net-type"]=n["net-type"]),n["net-etype"]&&(r["net-etype"]=n["net-etype"]),n["net-rtt"]&&(r["net-rtt"]=n["net-rtt"]),n["net-dlink"]&&(r["net-dlink"]=n["net-dlink"])),e.url&&(r.elUrl=(0,u.f)(e.url)),e.element&&e.element.tagName&&(r.elTag=e.element.tagName),(t>0||this.clsSupported)&&(r.cls=t),this.addTiming("lcp",Math.floor(e.startTime),r,!1),this.lcpRecorded=!0}}},{key:"updateLatestLcp",value:function(e,t){this.lcp&&this.lcp[0].size>=e.size||(this.lcp=[e,this.cls,t])}},{key:"updateClsScore",value:function(e){(e.startTime-this.clsSession.lastEntryTime>1e3||e.startTime-this.clsSession.firstEntryTime>5e3)&&(this.clsSession={value:0,firstEntryTime:e.startTime,lastEntryTime:e.startTime}),this.clsSession.value+=e.value,this.clsSession.lastEntryTime=Math.max(this.clsSession.lastEntryTime,e.startTime),this.cls<this.clsSession.value&&(this.cls=this.clsSession.value)}},{key:"updatePageHide",value:function(e){this.pageHideRecorded||(this.addTiming("pageHide",e,null,!0),this.pageHideRecorded=!0)}},{key:"recordUnload",value:function(){this.updatePageHide((0,i.now)()),this.addTiming("unload",(0,i.now)(),null,!0)}},{key:"addTiming",value:function(e,t,n,r){n=n||{},(this.cls>0||this.clsSupported)&&r&&(n.cls=this.cls),this.timings.push({name:e,value:t,attrs:n}),(0,c.pr)("pvtAdded",[e,t,n])}},{key:"processTiming",value:function(e,t,n){"fi"===e&&setTimeout(this.recordLcp,0),this.addTiming(e,t,n,!0)}},{key:"onHarvestFinished",value:function(e){if(e.retry&&this.timingsSent.length>0){for(var t=0;t<this.timingsSent.length;t++)this.timings.push(this.timingsSent[t]);this.timingsSent=[]}}},{key:"finalHarvest",value:function(){this.recordLcp(),this.recordUnload();var e=this.prepareHarvest({retry:!1});this.scheduler.harvest.send("events",e,{unload:!0})}},{key:"appendGlobalCustomAttributes",value:function(e){var t=e.attrs||{},n=(0,f.C)(this.agentIdentifier).jsAttributes||{},r=["size","eid","cls","type","fid","elTag","elUrl","net-type","net-etype","net-rtt","net-dlink"];(0,o.D)(n,(function(e,n){r.indexOf(e)<0&&(t[e]=n)}))}},{key:"prepareHarvest",value:function(e){if(0!==this.timings.length){var t=this.getPayload(this.timings);if(e.retry)for(var n=0;n<this.timings.length;n++)this.timingsSent.push(this.timings[n]);return this.timings=[],{body:{e:t}}}}},{key:"getPayload",value:function(e){for(var t=(0,r.FX)(),n="bel.6;",i=0;i<e.length;i++){var o=e[i];n+="e,",n+=t(o.name)+",",n+=(0,r.AG)(o.value,r.uR,!1)+",",this.appendGlobalCustomAttributes(o);var a=(0,r.n1)(o.attrs,t);a&&a.length>0&&(n+=(0,r.uR)(a.length)+";"+a.join(";")),i+1<e.length&&(n+=";")}return n}}]),n}(n(1839).W)},8396:function(e,t,n){"use strict";n.r(t),n.d(t,{Instrument:function(){return d}});var r,i,o,a=n(2995),s=n(4518);void 0!==document.hidden?(r="hidden",i="visibilitychange",o="visibilityState"):void 0!==document.msHidden?(r="msHidden",i="msvisibilitychange"):void 0!==document.webkitHidden&&(r="webkitHidden",i="webkitvisibilitychange",o="webkitVisibilityState");var u=n(8240),c=n(2997),f=n(6061),d=function(e){p(n,e);var t=m(n);function n(e){var a,u;if(l(this,n),(a=t.call(this,e)).pageHiddenTime,a.performanceObserver,a.lcpPerformanceObserver,a.clsPerformanceObserver,a.fiRecorded=!1,a.isEnabled()){if("PerformanceObserver"in window&&"function"==typeof window.PerformanceObserver){a.performanceObserver=new PerformanceObserver(perfObserver);try{a.performanceObserver.observe({entryTypes:["paint"]})}catch(e){}a.lcpPerformanceObserver=new PerformanceObserver(lcpObserver);try{a.lcpPerformanceObserver.observe({entryTypes:["largest-contentful-paint"]})}catch(e){}a.clsPerformanceObserver=new PerformanceObserver(clsObserver);try{a.clsPerformanceObserver.observe({type:"layout-shift",buffered:!0})}catch(e){}}"addEventListener"in document&&(a.fiRecorded=!1,["click","keydown","mousedown","pointerdown","touchstart"].forEach((function(e){document.addEventListener(e,(function(){var e;return(e=a).captureInteraction.apply(e,arguments)}),(0,s.m)(!1))}))),u=function(){var e;return(e=a).captureVisibilityChange.apply(e,arguments)},"addEventListener"in document&&i&&document.addEventListener(i,(function(){o&&document[o]?u(document[o]):document[r]?u("hidden"):u("visible")}),(0,s.m)(!1))}return y(a)}return v(n,[{key:"isEnabled",value:function(){return!1!==(0,f.Mt)(this.agentIdentifier,"page_view_timing.enabled")}},{key:"perfObserver",value:function(e,t){var n=this;e.getEntries().forEach((function(e){"first-paint"===e.name?(0,a.pr)("timing",["fp",Math.floor(e.startTime)],void 0,void 0,n.ee):"first-contentful-paint"===e.name&&(0,a.pr)("timing",["fcp",Math.floor(e.startTime)],void 0,void 0,n.ee)}))}},{key:"lcpObserver",value:function(e,t){var n=e.getEntries();if(n.length>0){var r=n[n.length-1];if(this.pageHiddenTime&&this.pageHiddenTime<r.startTime)return;var i=[r],o=this.addConnectionAttributes({});o&&i.push(o),(0,a.pr)("lcp",i,void 0,void 0,this.ee)}}},{key:"clsObserver",value:function(e){e.getEntries().forEach((function(e){e.hadRecentInput||(0,a.pr)("cls",[e],void 0,void 0,this.ee)}))}},{key:"addConnectionAttributes",value:function(e){var t=navigator.connection||navigator.mozConnection||navigator.webkitConnection;if(t)return t.type&&(e["net-type"]=t.type),t.effectiveType&&(e["net-etype"]=t.effectiveType),t.rtt&&(e["net-rtt"]=t.rtt),t.downlink&&(e["net-dlink"]=t.downlink),e}},{key:"captureInteraction",value:function(e){if(e instanceof(0,u.gosNREUM)().o.EV&&!this.fiRecorded){var t=Math.round(e.timeStamp),n={type:e.type};this.addConnectionAttributes(n),t<=(0,c.now)()?n.fid=(0,c.now)()-t:t>(0,c.getOffset)()&&t<=Date.now()?(t-=(0,c.getOffset)(),n.fid=(0,c.now)()-t):t=(0,c.now)(),this.fiRecorded=!0,(0,a.pr)("timing",["fi",t,n],void 0,void 0,this.ee)}}},{key:"captureVisibilityChange",value:function(e){"hidden"===e&&(this.pageHiddenTime=(0,c.now)(),(0,a.pr)("pageHide",[this.pageHiddenTime],void 0,void 0,this.ee))}}]),n}(n(1839).W)},842:function(e,t,n){"use strict";n.r(t),n.d(t,{Aggregate:function(){return S}});var r=n(3406),i=n(6943),o=n(2848),a=n(1558),s=n(8354),u=n(1240),c=n(4017),f=n(6219),d=n(7957),h=n.n(d),g=n(6061),b=n(2909),w=n(9729),x=n(3706),E=n(2997),S=function(e){p(n,e);var t=m(n);function n(e,s){var u;if(l(this,n),(u=t.call(this,e,s)).ptid="",u.ignoredEvents={global:{mouseup:!0,mousedown:!0},window:{load:!0,pagehide:!0}},u.toAggregate={typing:[1e3,2e3],scrolling:[100,1e3],mousing:[1e3,2e3],touching:[1e3,2e3]},u.rename={typing:{keydown:!0,keyup:!0,keypress:!0},mousing:{mousemove:!0,mouseenter:!0,mouseleave:!0,mouseover:!0,mouseout:!0},scrolling:{scroll:!0},touching:{touchstart:!0,touchmove:!0,touchend:!0,touchcancel:!0,touchenter:!0,touchleave:!0}},u.trace={},u.nodeCount=0,u.sentTrace=null,u.harvestTimeSeconds=(0,g.Mt)(u.agentIdentifier,"stn.harvestTimeSeconds")||10,u.maxNodesPerHarvest=(0,g.Mt)(u.agentIdentifier,"stn.maxNodesPerHarvest")||1e3,u.laststart=0,(0,x.v)(),i.y0&&(0,b.O)(u.agentIdentifier).features.stn){u.storeTiming(window.performance.timing);var c=new o.o("resources",{onFinished:function(){return function(e){e.sent&&e.responseText&&!this.ptid&&(this.ptid=e.responseText,(0,b.O)(this.agentIdentifier).ptid=this.ptid,c.startTimer(this.harvestTimeSeconds)),e.sent&&e.retry&&this.sentTrace&&((0,a.D)(this.sentTrace,(function(e,t){this.mergeSTNs(e,t)})),this.sentTrace=null)}.apply(void 0,arguments)},retryDelay:function(){var e;return(e=u).harvestTimeSeconds.apply(e,arguments)}});c.runHarvest({needResponse:!0}),c.harvest.on("resources",(function(){return function(e){return(0,E.now)()>9e5?(c.stopTimer(),void(this.trace={})):this.ptid&&this.nodeCount<=30?void 0:this.takeSTNs(e.retry)}.apply(void 0,arguments)})),(0,r.XN)("bst",(function(){var e;return(e=u).storeEvent.apply(e,arguments)}),void 0,u.ee),(0,r.XN)("bstTimer",(function(){var e;return(e=u).storeTimer.apply(e,arguments)}),void 0,u.ee),(0,r.XN)("bstResource",(function(){var e;return(e=u).storeResources.apply(e,arguments)}),void 0,u.ee),(0,r.XN)("bstHist",(function(){var e;return(e=u).storeHist.apply(e,arguments)}),void 0,u.ee),(0,r.XN)("bstXhrAgg",(function(){var e;return(e=u).storeXhrAgg.apply(e,arguments)}),void 0,u.ee),(0,r.XN)("bstApi",(function(){var e;return(e=u).storeSTN.apply(e,arguments)}),void 0,u.ee),(0,r.XN)("errorAgg",(function(){var e;return(e=u).storeErrorAgg.apply(e,arguments)}),void 0,u.ee),(0,r.XN)("pvtAdded",(function(){var e;return(e=u).processPVT.apply(e,arguments)}),void 0,u.ee)}return y(u)}return v(n,[{key:"processPVT",value:function(e,t,n){var r={};r[e]=t,this.storeTiming(r,!0),this.hasFID(e,n)&&this.storeEvent({type:"fid",target:"document"},"document",t,t+n.fid)}},{key:"storeTiming",value:function(e,t){var n,r,i,o=Date.now();for(n in e)"number"==typeof(r=e[n])&&r>0&&r<o&&(i=t?e[n]:e[n]-(0,b.O)(this.agentIdentifier).offset,this.storeSTN({n:n,s:i,e:i,o:"document",t:"timing"}))}},{key:"storeTimer",value:function(e,t,n,r){var i="timer";"requestAnimationFrame"===r&&(i=r);var o={n:r,s:t,e:n,o:"window",t:i};this.storeSTN(o)}},{key:"storeEvent",value:function(e,t,n,r){if(this.shouldIgnoreEvent(e,t))return!1;var i={n:this.evtName(e.type),s:n,e:r,t:"event"};try{i.o=this.evtOrigin(e.target,t)}catch(e){i.o=this.evtOrigin(null,t)}this.storeSTN(i)}},{key:"evtName",value:function(e){var t=e;return(0,a.D)(this.rename,(function(n,r){e in r&&(t=n)})),t}},{key:"evtOrigin",value:function(e,t){var n="unknown";if(e&&e instanceof XMLHttpRequest){var r=this.ee.context(e).params;n=r.status+" "+r.method+": "+r.host+r.pathname}else e&&"string"==typeof e.tagName&&(n=e.tagName.toLowerCase(),e.id&&(n+="#"+e.id),e.className&&(n+="."+h()(e.classList).join(".")));return"unknown"===n&&("string"==typeof t?n=t:t===document?n="document":t===window?n="window":t instanceof FileReader&&(n="FileReader")),n}},{key:"storeHist",value:function(e,t,n){var r={n:"history.pushState",s:n,e:n,o:e,t:t};this.storeSTN(r)}},{key:"storeResources",value:function(e){e&&0!==e.length&&(e.forEach((function(e){var t=(0,c.e)(e.name),n={n:e.initiatorType,s:0|e.fetchStart,e:0|e.responseEnd,o:t.protocol+"://"+t.hostname+":"+t.port+t.pathname,t:e.entryType};n.s<=this.laststart||this.storeSTN(n)})),this.laststart=0|e[e.length-1].fetchStart)}},{key:"storeErrorAgg",value:function(e,t,n,r){if("err"===e){var i={n:"error",s:r.time,e:r.time,o:n.message,t:n.stackHash};this.storeSTN(i)}}},{key:"storeXhrAgg",value:function(e,t,n,r){if("xhr"===e){var i={n:"Ajax",s:r.time,e:r.time+r.duration,o:n.status+" "+n.method+": "+n.host+n.pathname,t:"ajax"};this.storeSTN(i)}}},{key:"storeSTN",value:function(e){if(!(this.nodeCount>=this.maxNodesPerHarvest)){var t=this.trace[e.n];t||(t=this.trace[e.n]=[]),t.push(e),this.nodeCount++}}},{key:"mergeSTNs",value:function(e,t){if(!(this.nodeCount>=this.maxNodesPerHarvest)){var n=this.trace[e];n||(n=this.trace[e]=[]),this.trace[e]=t.concat(n),this.nodeCount+=t.length}}},{key:"takeSTNs",value:function(e){(0,f.W)()||this.storeResources(window.performance.getEntriesByType("resource"));var t=(0,s.u)((0,a.D)(this.trace,(function(e,t){return e in this.toAggregate?(0,s.u)((0,a.D)((0,s.u)(t.sort(this.byStart),this.smearEvtsByOrigin(e),{}),this.val),this.flatten,[]):t})),this.flatten,[]);if(0===t.length)return{};e&&(this.sentTrace=this.trace),this.trace={},this.nodeCount=0;var n={qs:{st:""+(0,b.O)(this.agentIdentifier).offset},body:{res:t}};if(!this.ptid){var r=(0,w.C)(this.agentIdentifier),i=r.userAttributes,o=r.atts,c=r.jsAttributes;n.qs.ua=i,n.qs.at=o;var d=(0,u.P)(c);n.qs.ja="{}"===d?null:d}return n}},{key:"byStart",value:function(e,t){return e.s-t.s}},{key:"smearEvtsByOrigin",value:function(e){var t=this.toAggregate[e][0],n=this.toAggregate[e][1],r={};return function(i,o){var a=i[o.o];a||(a=i[o.o]=[]);var s=r[o.o];return"scrolling"!==e||this.trivial(o)?s&&o.s-s.s<n&&s.e>o.s-t?s.e=o.e:(r[o.o]=o,a.push(o)):(r[o.o]=null,o.n="scroll",a.push(o)),i}}},{key:"val",value:function(e,t){return t}},{key:"flatten",value:function(e,t){return e.concat(t)}},{key:"hasFID",value:function(e,t){return"fi"===e&&!!t&&"number"==typeof t.fid}},{key:"trivial",value:function(e){return!!(e&&"number"==typeof e.e&&"number"==typeof e.s&&e.e-e.s<4)}},{key:"shouldIgnoreEvent",value:function(e,t){var n=this.evtOrigin(e.target,t);return e.type in this.ignoredEvents.global||!(!this.ignoredEvents[n]||!(e.type in this.ignoredEvents[n]))}}]),n}(n(1839).W)},5873:function(e,t,n){"use strict";n.r(t),n.d(t,{Instrument:function(){return x}});var r=n(2995),i=n(3097),o=n(6219),a=n(4518),s=n(5307),u=n(2909),c=n(2997),f=n(1839),d="resourcetimingbufferfull",h="bstResource",g="fn-start",y="fn-end",b="bstTimer",w=s.Y.EV,x=function(e){p(n,e);var t=m(n);function n(e){var s;return l(this,n),s=t.call(this,e),(0,u.O)(s.agentIdentifier).features.stn=!0,s.timerEE=(0,i.BV)(s.ee),s.rafEE=(0,i.gy)(s.ee),(0,i.QU)(s.ee),(0,i.em)(s.ee),window.performance&&window.performance.timing&&window.performance.getEntriesByType&&(s.ee.on(g,(function(e,t){e[0]instanceof w&&(this.bstStart=(0,c.now)())})),s.ee.on(y,(function(e,t){var n=e[0];n instanceof w&&(0,r.pr)("bst",[n,t,this.bstStart,(0,c.now)()])})),s.timerEE.on(g,(function(e,t,n){this.bstStart=(0,c.now)(),this.bstType=n})),s.timerEE.on(y,(function(e,t){(0,r.pr)(b,[t,this.bstStart,(0,c.now)(),this.bstType])})),s.rafEE.on(g,(function(){this.bstStart=(0,c.now)()})),s.rafEE.on(y,(function(e,t){(0,r.pr)(b,[t,this.bstStart,(0,c.now)(),"requestAnimationFrame"])})),s.ee.on("pushState-start",(function(e){this.time=(0,c.now)(),this.startPath=location.pathname+location.hash})),s.ee.on("pushState-end",(function(e){(0,r.pr)("bstHist",[location.pathname+location.hash,this.startPath,this.time])})),(0,o.W)()?((0,r.pr)(h,[window.performance.getEntriesByType("resource")]),s.observeResourceTimings()):"addEventListener"in window.performance&&(window.performance.clearResourceTimings?window.performance.addEventListener(d,s.onResourceTimingBufferFull,(0,a.m)(!1)):window.performance.addEventListener("webkitresourcetimingbufferfull",s.onResourceTimingBufferFull,(0,a.m)(!1))),document.addEventListener("scroll",s.noOp,(0,a.m)(!1)),document.addEventListener("keypress",s.noOp,(0,a.m)(!1)),document.addEventListener("click",s.noOp,(0,a.m)(!1))),s}return v(n,[{key:"observeResourceTimings",value:function(){var e=new PerformanceObserver((function(e,t){var n=e.getEntries();(0,r.pr)(h,[n])}));try{e.observe({entryTypes:["resource"]})}catch(e){}}},{key:"onResourceTimingBufferFull",value:function(e){if((0,r.pr)(h,[window.performance.getEntriesByType("resource")]),window.performance.clearResourceTimings)try{window.performance.removeEventListener(d,this.onResourceTimingBufferFull,!1)}catch(e){}else try{window.performance.removeEventListener("webkitresourcetimingbufferfull",this.onResourceTimingBufferFull,!1)}catch(e){}}},{key:"noOp",value:function(e){}}]),n}(f.W)},7957:function(e){e.exports=function(e,t,n){t||(t=0),void 0===n&&(n=e?e.length:0);for(var r=-1,i=n-t||0,o=Array(i<0?0:i);++r<i;)o[r]=e[t+r];return o}},3648:function(e,t,n){var r={"./ajax/aggregate":74,"./js-errors/aggregate":7326,"./page-action/aggregate":9098,"./page-view-event/aggregate":3887,"./page-view-timing/aggregate":8617,"./session-trace/aggregate":842};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=3648},8346:function(e,t,n){var r={"./ajax/instrument":9770,"./js-errors/instrument":3825,"./page-action/instrument":2895,"./page-view-event/instrument":8161,"./page-view-timing/instrument":8396,"./session-trace/instrument":5873};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=8346},3607:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.BrowserAgent=void 0;var o=n(9230),a=n(8149),s=n(3263),u=n(418),c=n(3831),f=n(8240),d=n(8053),l=n(4460),h=function(){function e(){var e=this;this._initialized=!1,this._id=(0,d.generateRandomHexString)(16),this._api=new a.Api(this),this._aggregator=new l.Aggregator({agentIdentifier:this._id}),this.features=new u.Features,this.start=function(t){return r(e,void 0,void 0,(function(){var e,n,r,a,u;return i(this,(function(i){switch(i.label){case 0:return this._initialized?[2,!1]:(this._initialized=!0,e=(0,s.buildConfigs)(t),n=e.info,r=e.config,a=e.loader_config,n&&(0,o.setInfo)(this._id,n),r&&(0,o.setConfiguration)(this._id,r),a&&(0,o.setLoaderConfig)(this._id,r),(0,o.setRuntime)(this._id,{maxBytes:3e4}),[4,(0,c.initializeFeatures)(this._id,this._api,this._aggregator,this.features)]);case 1:return u=i.sent(),(0,f.gosNREUMInitializedAgents)(this._id,u,"features"),[2,!0]}}))}))},this.noticeError=function(t,n){return e._api.noticeError(t,n)}}return Object.defineProperty(e.prototype,"config",{get:function(){return{info:(0,o.getInfo)(this._id),config:(0,o.getConfiguration)(this._id),loader_config:(0,o.getLoaderConfig)(this._id)}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"initialized",{get:function(){return this._initialized},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),e}();t.BrowserAgent=h,t.default=h},9699:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NrFeatures=t.NrFeature=void 0;var n=function(){function e(e){this.name=e,this._enabled=!0,this._auto=!0}return Object.defineProperty(e.prototype,"enabled",{get:function(){return this._enabled},set:function(e){this._enabled=Boolean(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"auto",{get:function(){return this._auto},set:function(e){this._auto=e},enumerable:!1,configurable:!0}),e}();t.NrFeature=n,(t.NrFeatures||(t.NrFeatures={})).JSERRORS="js-errors"},8149:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Api=void 0;var r=n(9699),i=n(2997),o=function(){function e(e){this.importedMethods={storeError:null},this._initialized=!1,this._initialized=!0,this._parent=e}return e.prototype.noticeError=function(e,t){if(this._initialized&&this.importedMethods.storeError){if("string"!=typeof e&&!(e instanceof Error))return o=e,void console.warn('"'.concat("noticeError",'" was called with an invalid argument: ').concat(o,". This method only accepts ").concat("Error | String"," types for that argument."));e="string"==typeof e?new Error(e):e;var n=(0,i.now)();return this.importedMethods.storeError(e,n,!1,t)}var o,a,s;return this._parent.initialized||this.importedMethods.storeError?this._parent.initialized&&!this.importedMethods.storeError?function(e,t,n){console.warn("The ".concat(t," Feature of agent ").concat(e,' Has Been Disabled. Method "').concat("noticeError",'" will not do anything!'))}(this._parent.id,r.NrFeatures.JSERRORS):void 0:(a=this._parent.id,s=r.NrFeatures.JSERRORS,void console.warn("Agent ".concat(a," is calling a ").concat(s," Feature API, but the Browser Agent has not been started... Please start the agent using .start({...opts})")))},e}();t.Api=o},3263:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildConfigs=void 0,t.buildConfigs=function(e){var t={beacon:"",errorBeacon:void 0,licenseKey:"",applicationID:"",sa:void 0,queueTime:void 0,applicationTime:void 0,ttGuid:void 0,user:void 0,account:void 0,product:void 0,extra:void 0,userAttributes:void 0,atts:void 0,transactionName:void 0,tNamePlain:void 0},n={privacy:{cookies_enabled:void 0},ajax:{deny_list:void 0},distributed_tracing:{enabled:void 0,exclude_newrelic_header:void 0,cors_use_newrelic_header:void 0,cors_use_tracecontext_headers:void 0,allowed_origins:void 0},page_view_timing:{enabled:void 0},ssl:void 0,obfuscate:void 0},r={accountID:void 0,trustKey:void 0,agentID:void 0,licenseKey:"",applicationID:"",xpid:void 0};return Object.keys(e).forEach((function(i){"beacon"===i&&(t.beacon=e[i],t.errorBeacon=e[i]),Object.keys(t).includes(i)&&(t[i]=e[i]),Object.keys(n).includes(i)&&(n[i]=e[i]),Object.keys(r).includes(i)&&(r[i]=e[i])})),function(e){return!(!e.applicationID||!e.licenseKey||!e.beacon)}(t)&&function(e){return!(!e.applicationID||!e.licenseKey)}(r)||console.warn("Missing required config data"),{info:t,config:n,loader_config:r}}},418:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Features=void 0;var r=n(9699),i=function(){function e(){this.errors=new r.NrFeature(r.NrFeatures.JSERRORS)}return e.prototype.getEnabledFeatures=function(){return Object.values(this).filter((function(e){return e.enabled}))},e}();t.Features=i},3831:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},a=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},s=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.initializeFeatures=void 0;var u=n(9699);t.initializeFeatures=function(e,t,r,i){var c=this;return Promise.all(i.getEnabledFeatures().map((function(i){return a(c,void 0,void 0,(function(){var a,c;return s(this,(function(s){switch(s.label){case 0:return i.auto?[4,Promise.resolve().then((function(){return o(n(8346)("./".concat(i.name,"/instrument")))}))]:[3,2];case 1:new(0,s.sent().Instrument)(e),s.label=2;case 2:return[4,Promise.resolve().then((function(){return o(n(3648)("./".concat(i.name,"/aggregate")))}))];case 3:return a=s.sent().Aggregate,c=new a(e,r),i.name===u.NrFeatures.JSERRORS&&(t.importedMethods.storeError=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return c.storeError.apply(c,e)}),[2,i.name]}}))}))})))}}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}return n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n(3607)}()},"object"==x(t)&&"object"==x(e)?e.exports=a():(i=[],void 0===(o="function"==typeof(r=a)?r.apply(t,i):r)||(e.exports=o))}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={id:r,loaded:!1,exports:{}};return e[r](o,o.exports,n),o.loaded=!0,o.exports}return n.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},n(380)}()}));
2
+ //# sourceMappingURL=index.js.map