1var AppsignalBundle=function(t){"use strict";var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},e(t,n)};var n=function(){return n=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)};function r(t,e,n,r){return new(n||(n=Promise))((function(o,i){function s(t){try{u(r.next(t))}catch(t){i(t)}}function a(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}u((r=r.apply(t,e||[])).next())}))}function o(t,e){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(u){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=e.call(t,s)}catch(t){a=[6,t],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}}function i(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}function s(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}function a(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?function(t){return t}:1===t.length?t[0]:t.reduce((function(t,e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return t(e.apply(void 0,s([],i(n),!1)))}}))}function u(t){if(t)return Object.keys(t).forEach((function(e){"string"!=typeof t[e]&&"boolean"!=typeof t[e]&&"number"!=typeof t[e]&&(t[e]=JSON.stringify(t[e]))})),t}function c(t){return"object"==typeof t&&void 0!==t.message}function f(t){if(void 0!==t.stacktrace||void 0!==t["opera#sourceloc"]){var e=t.stacktrace;return(void 0===e?"":e).split("\n").filter((function(t){return""!==t}))}if(t.stack){var n=t.stack;return(void 0===n?"":n).split("\n").filter((function(t){return""!==t}))}return["No stacktrace available"]}function p(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function l(){return p()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}}function h(t){if(t.__esModule)return t;var e=t.default;if("function"==typeof e){var n=function t(){return this instanceof t?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach((function(e){var r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(n,e,r.get?r:{enumerable:!0,get:function(){return t[e]}})})),n}"function"==typeof SuppressedError&&SuppressedError;var d=h(Object.freeze({__proto__:null,default:function(t,e){return e=e||{},new Promise((function(n,r){var o=new XMLHttpRequest,i=[],s=[],a={},u=function(){return{ok:2==(o.status/100|0),statusText:o.statusText,status:o.status,url:o.responseURL,text:function(){return Promise.resolve(o.responseText)},json:function(){return Promise.resolve(o.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([o.response]))},clone:u,headers:{keys:function(){return i},entries:function(){return s},get:function(t){return a[t.toLowerCase()]},has:function(t){return t.toLowerCase()in a}}}};for(var c in o.open(e.method||"get",t,!0),o.onload=function(){o.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(t,e,n){i.push(e=e.toLowerCase()),s.push([e,n]),a[e]=a[e]?a[e]+","+n:n})),n(u())},o.onerror=r,o.withCredentials="include"==e.credentials,e.headers)o.setRequestHeader(c,e.headers[c]);o.send(e.body||null)}))}}));self.fetch||(self.fetch=d.default||d);var y=function(){function t(t){this._data=t}return t.prototype.toJSON=function(){return JSON.stringify(this._data)},t.prototype.serialize=function(){return this._data},t}(),v=function(){function t(){}return t.serialize=function(){return{transport:this.transport(),origin:this.origin()}},t.origin=function(){var t=l();return t.location?t.location.origin||"".concat(t.location.protocol,"//").concat(t.location.hostname):""},t.transport=function(){var t=l();return p()&&"undefined"==typeof jest?"NodeHTTP":t.XDomainRequest?"XDomainRequest":t.XMLHttpRequest&&!t.fetch?"XMLHttpRequest":"fetch"},t.supportsPromises=function(){var t,e=l();return"Promise"in e&&"resolve"in e.Promise&&"reject"in e.Promise&&"all"in e.Promise&&"race"in e.Promise&&(new e.Promise((function(e){t=e})),"function"==typeof t)},t}(),m=function(){function t(t){this.url=t}return t.prototype.send=function(t){var e=this;
1return new Promise((function(n,r){var o,i=new XDomainRequest,s=new RegExp("^https?:");i.onload=function(){return n({})},i.open("POST",e.url.replace(s,null===(o=null===window||void 0===window?void 0:window.location)||void 0===o?void 0:o.protocol)),setTimeout((function(){try{i.send(t)}catch(t){r(t)}}),0)}))},t}(),g=function(){function t(t){this.url=t}return t.prototype.send=function(t){var e=this;return new Promise((function(n,r){try{var o=new XMLHttpRequest;o.onreadystatechange=function(){o.readyState===XMLHttpRequest.DONE&&n({})},o.open("POST",e.url),o.send(t)}catch(t){r(t)}}))},t}(),w=function(){function t(t,e){this.url=t}return t.prototype.send=function(t){return r(this,void 0,void 0,(function(){var e,n;return o(this,(function(r){switch(r.label){case 0:return[4,fetch(this.url,{method:"POST",body:t})];case 1:return e=r.sent(),n=e.statusText,[2,e.ok?Promise.resolve({}):Promise.reject({statusText:n})]}}))}))},t}(),b={},_=function(){function t(t){this.url=t}return t.prototype.send=function(t){var e=this,n={method:"POST",headers:{"Content-Type":"application/json","Content-Length":t.length}};return new Promise((function(r,o){var i=b.request(e.url,n,(function(){})).on("error",(function(t){return o(t)}));i.write(t),i.end(),r({})}))},t}(),P=function(){function t(t){this._uri=t.uri||"https://appsignal-endpoint.net/collect",this._apiKey=t.key,this._clientVersion=t.version,this._transport=this._createTransport(this._url())}return t.prototype.push=function(t){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,this._transport.send(t.toJSON())];case 1:return e.sent(),[2,t]}}))}))},t.prototype._createTransport=function(t){switch(v.transport()){case"XDomainRequest":return new m(t);case"XMLHttpRequest":return new g(t);case"NodeHTTP":return new _(t);default:return new w(t)}},t.prototype._url=function(){var t,e=this._authorization();return"".concat(this._uri,"?").concat((t=e,Object.keys(t).map((function(e){return"".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(t[e]))})).join("&")))},t.prototype._authorization=function(){return{api_key:this._apiKey,version:this._clientVersion}},t}(),E=function(t){function r(e){return t.call(this,n({timestamp:Math.round((new Date).getTime()/1e3),namespace:"frontend",error:{name:"NullError",message:"No error has been set",backtrace:[]}},e))||this}return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}(r,t),r.prototype.setAction=function(t){return t&&"string"==typeof t?(this._data.action=t,this):this},r.prototype.setNamespace=function(t){return t&&"string"==typeof t?(this._data.namespace=t,this):this},r.prototype.setError=function(t){return t&&c(t)?(this._data.error={name:t.name||"[unknown]",message:t.message,backtrace:f(t)},this):this},r.prototype.setTags=function(t){return this._data.tags=n(n({},this._data.tags),function(t){if(t)return Object.keys(t).forEach((function(e){"object"==typeof t[e]&&(t[e]=JSON.stringify(t[e])),t[e]=String(t[e])})),t}(t)),this},r.prototype.setParams=function(t){return this._data.params=n(n({},this._data.params),t),this},r.prototype.setBreadcrumbs=function(t){return this._data.breadcrumbs=t,this},r}(y),S=function(){function t(t){this._data=t||[]}return t.prototype.clear=function(){this._data=[]},t.prototype.values=function(){return this._data},t.prototype.push=function(t){var e;return Array.isArray(t)?(e=this._data).push.apply(e,s([],i(t),!1)):this._data.push(t)},t.prototype.drain=function(){return o(this,(function(t){switch(t.label){case 0:return this._data.length>0?[4,this._data.shift()]:[3,2];case 1:return t.sent(),[3,0];case 2:return[2]}}
1))},t}(),O=function(){function t(t,e,r){this._retries=0,this._timerID=0,this._duration=0,this._api=e,this._queue=t,this.options=n({limit:5,initialDuration:1e3},r),this.reset()}return t.prototype.schedule=function(t){var e=this;void 0===t&&(t=this._duration);var n=l();return n.setTimeout((function(){return r(e,void 0,void 0,(function(){var e,n,r,i,s,a,u;return o(this,(function(o){switch(o.label){case 0:o.trys.push([0,7,8,9]),e=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(this._queue.drain()),n=e.next(),o.label=1;case 1:if(n.done)return[3,6];if(!(r=n.value))return[2];o.label=2;case 2:return o.trys.push([2,4,,5]),[4,this._api.push(r)];case 3:return o.sent(),[3,5];case 4:return o.sent(),i=Math.floor(Math.pow(t,1.3)),this._retries=this._retries-1,0===this._retries?this.reset():(this._queue.push(r),this._timerID=this.schedule(i)),[2];case 5:return n=e.next(),[3,1];case 6:return[3,9];case 7:return s=o.sent(),a={error:s},[3,9];case 8:try{n&&!n.done&&(u=e.return)&&u.call(e)}finally{if(a)throw a.error}return[7];case 9:return this.reset(),[2]}}))}))}),t)},t.prototype.reset=function(){var t=this.options,e=t.limit,n=t.initialDuration;this._retries=e,this._duration=n},t}(),j=function(){function t(t){this.VERSION="1.3.25",this.ignored=[],this._breadcrumbs=[],this._hooks={decorators:Array(),overrides:Array()},this._env=v.serialize(),this._queue=new S([]);var e=t.key,n=void 0===e?"":e,r=t.uri,o=t.revision,i=t.ignoreErrors;o&&"string"!=typeof o&&(t.revision=String(o)),""===n&&console.info("[APPSIGNAL]: Started in development mode."),this._api=new P({key:n,uri:r,version:this.VERSION}),i&&Array.isArray(i)&&(this.ignored=i),this._dispatcher=new O(this._queue,this._api),this._options=t}return t.prototype.send=function(t,e,n){var r=this;if(t instanceof Error||t instanceof E){if(0!==this.ignored.length){if(t instanceof Error&&this.ignored.some((function(e){return e.test(t.message)})))return void console.warn("[APPSIGNAL]: Ignored an error: ".concat(t.message));if(t instanceof E){var o=t.serialize().error;if(o.message&&this.ignored.some((function(t){return t.test(o.message)})))return void console.warn("[APPSIGNAL]: Ignored a span: ".concat(o.message))}}var c=t instanceof E?t:this._createSpanFromError(t);if(this._hooks.decorators.length>0&&a.apply(void 0,s([],i(this._hooks.decorators),!1))(c),e)if("function"==typeof e){e(c)}else{console.warn("[APPSIGNAL]: DEPRECATED: Calling the `send`/`sendError` function with a tags object is deprecated. Use the callback argument instead.");var f=u(e)||{};c.setTags(f)}if(n&&(console.warn("[APPSIGNAL]: DEPRECATED: Calling the `send`/`sendError` function with a namespace is deprecated. Use the callback argument instead."),c.setNamespace(n)),this._breadcrumbs.length>0&&c.setBreadcrumbs(this._breadcrumbs),this._hooks.overrides.length>0&&a.apply(void 0,s([],i(this._hooks.overrides),!1))(c),v.supportsPromises()){if(this._breadcrumbs=[],this._options.key)return this._api.push(c).catch((function(){r._queue.push(c),setTimeout((function(){return r._dispatcher.schedule()}),0)}));if(console.warn("[APPSIGNAL]: Span not sent because we're in development mode:",c),t instanceof Error)throw t}else console.error("[APPSIGNAL]: Error not sent. A Promise polyfill is required.")}else console.error("[APPSIGNAL]: Can't send error, given error is not a valid type")},t.prototype.sendError=function(t,e,n){return this.send(t,e,n)},t.prototype.use=function(t){t.call(this)},t.prototype.createSpan=function(t){var e=this._options,n=e.revision,r=void 0===n?"":n,o=e.namespace,i=new E({environment:this._env,revision:r});return o&&i.setNamespace(o),t&&"function"==typeof t&&t(i),i},t.prototype.wrap=function(t,e,n){return r(this,void 0,void 0,(function(){var r;return o(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,4]),[4,t()];case 1:return[2,o.sent()];case 2:return r=o.sent(),[4,this.sendError(r,e,n)];case 3:return o.sent(),[2,Promise.reject(r)];case 4:return[2]}}
1))}))},t.prototype.addDecorator=function(t){this._hooks.decorators.push(t)},t.prototype.addOverride=function(t){this._hooks.overrides.push(t)},t.prototype.demo=function(){var t=this._createSpanFromError(new Error("Hello world! This is an error used for demonstration purposes."));t.setAction("TestAction").setParams({path:"/hello",method:"GET"}).setTags({demo_sample:"true"}),this.send(t)},t.prototype.addBreadcrumb=function(t){var e=n(n({timestamp:Math.round((new Date).getTime()/1e3)},t),{metadata:u(t.metadata)});e.category?e.action?(20===this._breadcrumbs.length&&this._breadcrumbs.pop(),this._breadcrumbs.unshift(e)):console.warn("[APPSIGNAL]: Breadcrumb not added. `action` is missing."):console.warn("[APPSIGNAL]: Breadcrumb not added. `category` is missing.")},t.prototype._createSpanFromError=function(t){var e=this.createSpan();return e.setError(t),e},t}(),A=window&&window.__assign||function(){return A=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},A.apply(this,arguments)};var k=function(t){var e=window,n=A({onerror:!0,onunhandledrejection:!0},t);return function(){var t=this,o={onError:e.onerror,unhandledRejection:e.onunhandledrejection};n.onerror&&(e.onerror=function(e,n,r,i,s){var a=t.createSpan();"string"==typeof e&&0===r&&/Script error\.?/.test(e)?console.warn("[APPSIGNAL]: Cross-domain or eval script error detected, error ignored"):(s?a.setError(s):a.setError({name:"Error",message:"string"==typeof e?e:'An HTML onerror="" handler failed to execute',stack:"at ".concat(n,":").concat(r).concat(i?":".concat(i):"")}),t.send(a)),"function"==typeof o.onError&&o.onError.apply(this,arguments)}),n.onunhandledrejection&&(e.onunhandledrejection=function(e){var n,i=t.createSpan();n=e&&e.reason&&c(e.reason)?e.reason:{name:"UnhandledPromiseRejectionError",message:r(e)},i.setError(n),t.send(i),"function"==typeof o.unhandledRejection&&o.unhandledRejection.apply(this,arguments)})};function r(t){return t&&t.reason?"string"==typeof t.reason?t.reason:JSON.stringify(t.reason,(e=[],n=[],function(t,r){if("object"==typeof r&&null!==r){var o=e.indexOf(r);if(-1!==o)return"[cyclic value: ".concat(n[o]||"root object","]");e.push(r),n.push(t)}return r})):"";var e,n}},R=["log","debug","info","warn","error"];var T=function(t){var e=R.filter((function(t){return"undefined"!=typeof console&&"function"==typeof console[t]}));return function(){var t=this;e.forEach((function(e){var n=console[e];console[e]=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var i={action:r.length>1?"Console logged some values":"Console logged a value",category:"console.".concat(e),metadata:{}};r.forEach((function(t,e){return i.metadata["argument".concat(e)]=function(t,e){switch(typeof t){case"string":return t;case"undefined":return"undefined";default:return JSON.stringify(t,(n=[],r=[],function(t,e){if("object"==typeof e&&null!==e){var o=n.indexOf(e);if(-1!==o)return"[cyclic value: ".concat(r[o]||"root object","]");n.push(e),r.push(t)}return e}))}var n,r}(t)})),t.addBreadcrumb(i),n.apply(console,r)}}))}},L=window&&window.__assign||function(){return L=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},L.apply(this,arguments)},N={xhrEnabled:!0,fetchEnabled:!0,ignoreUrls:[]};var q=function(t){var e=L(L({},N),t),n=e.xhrEnabled,r=e.fetchEnabled,o=e.ignoreUrls,i=!!n&&"XMLHttpRequest"in window,s=!!r&&"fetch"in window;return function(){var t,e,n=this;i&&(t=XMLHttpRequest.prototype.open,XMLHttpRequest.prototype.open=function(e,r){var i={method:e,url:r};this.addEventListener("load",(function(){o.some((function(t){return t.test(r)}))||n.addBreadcrumb({action:this.status>=400?"Request failed with code "+this.status:"Received a response with code "+this.status,category:"XMLHttpRequest",metadata:i})})),this.addEventListener("error",(function(){o.some((function(t){return t.test(r)}))||n.addBreadcrumb({action:"Request failed",category:"XMLHttpRequest",metadata:i})})),t.apply(this,arguments)}),s&&(e=window.fetch,window.fetch=function(t,r){var i="string"==typeof t?t:t.url,s={method:"string"!=typeof t&&t.method||r&&r.method||"GET",url:i};return o.some((function(t){return t.test(i)}))?e.apply(window,arguments):e.apply(window,arguments).then((function(t){var e=t.status;return n.addBreadcrumb({action:"Received a response with code "+e,category:"Fetch",metadata:s}),t})).catch((function(t){throw n.addBreadcrumb({action:"Request failed",category:"Fetch",metadata:s}),t}))})}};return t.Appsignal=j,t.consolePlugin=T,t.networkPlugin=q,t.windowPlugin=k,t}({});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.