MCPcopy Create free account
hub / github.com/ORCID/orcid-angular / constructor

Method constructor

scripts/new-relic.runtime.js:3045–3364  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

3043 class Pe extends y {
3044 static featureName = Te.T
3045 constructor(e) {
3046 super(e, Te.T),
3047 (this.dt = new Ee(e)),
3048 (this.handler = (e, t, r, n) => (0, s.p)(e, t, r, n, this.ee))
3049 try {
3050 const e = {
3051 xmlhttprequest: 'xhr',
3052 fetch: 'fetch',
3053 beacon: 'beacon',
3054 }
3055 f.gm?.performance?.getEntriesByType('resource').forEach((r) => {
3056 if (r.initiatorType in e && 0 !== r.responseStatus) {
3057 const n = { status: r.responseStatus },
3058 i = {
3059 rxSize: r.transferSize,
3060 duration: Math.floor(r.duration),
3061 cbTime: 0,
3062 }
3063 ke(n, r.name),
3064 this.handler(
3065 'xhr',
3066 [n, i, r.startTime, r.responseEnd, e[r.initiatorType]],
3067 void 0,
3068 t.K7.ajax
3069 )
3070 }
3071 })
3072 } catch (e) {}
3073 be(this.ee),
3074 le(this.ee),
3075 (function (e, r, n, i) {
3076 function a(e) {
3077 var t = this
3078 ;(t.totalCbs = 0),
3079 (t.called = 0),
3080 (t.cbTime = 0),
3081 (t.end = T),
3082 (t.ended = !1),
3083 (t.xhrGuids = {}),
3084 (t.lastSize = null),
3085 (t.loadCaptureCalled = !1),
3086 (t.params = this.params || {}),
3087 (t.metrics = this.metrics || {}),
3088 (t.latestLongtaskEnd = 0),
3089 e.addEventListener(
3090 'load',
3091 function (r) {
3092 A(t, e)
3093 },
3094 (0, P.jT)(!1)
3095 ),
3096 f.lR ||
3097 e.addEventListener(
3098 'progress',
3099 function (e) {
3100 t.lastSize = e.loaded
3101 },
3102 (0, P.jT)(!1)

Callers

nothing calls this directly

Calls 4

keFunction · 0.85
beFunction · 0.85
leFunction · 0.85
importAggregatorMethod · 0.80

Tested by

no test coverage detected