1import{g as e}from"./hobbii-intl-tel-input-BoEFiupD.min.js";var t,n,r,o={exports:{}};function a(){return t||(t=1,o.exports=function(){var e=["navigation","request","process","log","user","state","error","manual"],t=function(e,t,n){for(var r=n,o=0,a=e.length;o<a;o++)r=t(r,e[o],o,e);return r},n=function(e,n){return t(e,(function(e,t,r,o){return n(t,r,o)?e.concat(t):e}),[])},r=function(e,n){return t(e,(function(e,t,r,o){return!0===e||t===n}),!1)},o=function(e){return"[object Array]"===Object.prototype.toString.call(e)},a=!{toString:null}.propertyIsEnumerable("toString"),i=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],s=function(e){var t,n=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.push(t);if(!a)return n;for(var r=0,o=i.length;r<o;r++)Object.prototype.hasOwnProperty.call(e,i[r])&&n.push(i[r]);return n},u=function(e,t){return void 0===e&&(e=1),function(n){return"number"==typeof n&&parseInt(""+n,10)===n&&n>=e&&n<=t}},c=function(e){return"function"==typeof e||o(e)&&n(e,(function(e){return"function"==typeof e})).length===e.length},l=function(e){return"string"==typeof e&&!!e.length},d={},f=function(){return{unhandledExceptions:!0,unhandledRejections:!0}};d.schema={apiKey:{defaultValue:function(){return null},message:"is required",validate:l},appVersion:{defaultValue:function(){},message:"should be a string",validate:function(e){return void 0===e||l(e)}},appType:{defaultValue:function(){},message:"should be a string",validate:function(e){return void 0===e||l(e)}},autoDetectErrors:{defaultValue:function(){return!0},message:"should be true|false",validate:function(e){return!0===e||!1===e}},enabledErrorTypes:{defaultValue:function(){return f()},message:"should be an object containing the flags { unhandledExceptions:true|false, unhandledRejections:true|false }",allowPartialObject:!0,validate:function(e){if("object"!=typeof e||!e)return!1;var t=s(e),o=s(f());return!(n(t,(function(e){return r(o,e)})).length<t.length||n(s(e),(function(t){return"boolean"!=typeof e[t]})).length>0)}},onError:{defaultValue:function(){return[]},message:"should be a function or array of functions",validate:c},onSession:{defaultValue:function(){return[]},message:"should be a function or array of functions",validate:c},onBreadcrumb:{defaultValue:function(){return[]},message:"should be a function or array of functions",validate:c},endpoints:{defaultValue:function(e){return void 0===e?{notify:"https://notify.bugsnag.com",sessions:"https://sessions.bugsnag.com"}:{notify:null,sessions:null}},message:"should be an object containing endpoint URLs { notify, sessions }",validate:function(e){return e&&"object"==typeof e&&l(e.notify)&&l(e.sessions)&&0===n(s(e),(function(e){return!r(["notify","sessions"],e)})).length}},autoTrackSessions:{defaultValue:function(e){return!0},message:"should be true|false",validate:function(e){return!0===e||!1===e}},enabledReleaseStages:{defaultValue:function(){return null},message:"should be an array of strings",validate:function(e){return null===e||o(e)&&n(e,(function(e){return"string"==typeof e})).length===e.length}},releaseStage:{defaultValue:function(){return"production"},message:"should be a string",validate:function(e){return"string"==typeof e&&e.length}},maxBreadcrumbs:{defaultValue:function(){return 25},message:"should be a number â¤100",validate:function(e){return u(0,100)(e)}},enabledBreadcrumbTypes:{defaultValue:function(){return e},message:"should be null or a list of available breadcrumb types ("+e.join(",")+")",validate:function(n){return null===n||o(n)&&t(n,(function(t,n){return!1===t?t:r(e,n)}),!0)}},context:{defaultValue:function(){},message:"should be a string",validate:function(e){return void 0===e||"string"==typeof e}},user:{defaultValue:function(){return{}},message:"should be an object with { id, email, name } properties",validate:function(e){return null===e||e&&t(s(e),(function(e,t){return e&&r(["id","email","name"],t)}),!0)}},metadata:{defaultValue:function(){return{}},message:"should be an object",validate:function(e){return"object"==typeof e&&null!==e}},logger:{defaultValue:function(){},message:"should be null or an object with methods { debug, info, warn, error }",validate:function(e){return!e||e&&t(["debug","info","warn","error"],(function(t,n){return t&&"function"==typeof e[n]}),!0)}},redactedKeys:{defaultValue:function(){return["password"]}
1,message:"should be an array of strings|regexes",validate:function(e){return o(e)&&e.length===n(e,(function(e){return"string"==typeof e||e&&"function"==typeof e.test})).length}},plugins:{defaultValue:function(){return[]},message:"should be an array of plugin objects",validate:function(e){return o(e)&&e.length===n(e,(function(e){return e&&"object"==typeof e&&"function"==typeof e.load})).length}},featureFlags:{defaultValue:function(){return[]},message:'should be an array of objects that have a "name" property',validate:function(e){return o(e)&&e.length===n(e,(function(e){return e&&"object"==typeof e&&"string"==typeof e.name})).length}},reportUnhandledPromiseRejectionsAsHandled:{defaultValue:function(){return!1},message:"should be true|false",validate:function(e){return!0===e||!1===e}},sendPayloadChecksums:{defaultValue:function(){return!1},message:"should be true|false",validate:function(e){return!0===e||!1===e}}};var g=function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h=function(e,n){return t(e,(function(e,t,r,o){return e.concat(n(t,r,o))}),[])};function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p.apply(this,arguments)}var v,m,y=d.schema,_={releaseStage:g({},y.releaseStage,{defaultValue:function(){return/^localhost(:\d+)?$/.test(window.location.host)?"development":"production"}}),appType:p({},y.appType,{defaultValue:function(){return"browser"}}),logger:g({},y.logger,{defaultValue:function(){return"undefined"!=typeof console&&"function"==typeof console.debug?b():void 0}})},b=function(){var e={},t=console.log;return h(["debug","info","warn","error"],(function(n){var r=console[n];e[n]="function"==typeof r?r.bind(console,"[bugsnag]"):t.bind(console,"[bugsnag]")})),e},S=function(){function e(e,t,n,r){void 0===r&&(r=new Date),this.type=n,this.message=e,this.metadata=t,this.timestamp=r}return e.prototype.toJSON=function(){return{type:this.type,name:this.message,timestamp:this.timestamp,metaData:this.metadata}},e}(),w={};v=this,m=function(){function e(e){return!isNaN(parseFloat(e))&&isFinite(e)}function t(e){return e.charAt(0).toUpperCase()+e.substring(1)}function n(e){return function(){return this[e]}}var r=["isConstructor","isEval","isNative","isToplevel"],o=["columnNumber","lineNumber"],a=["fileName","functionName","source"],i=["args"],s=["evalOrigin"],u=r.concat(o,a,i,s);function c(e){if(e)for(var n=0;n<u.length;n++)void 0!==e[u[n]]&&this["set"+t(u[n])](e[u[n]])}c.prototype={getArgs:function(){return this.args},setArgs:function(e){if("[object Array]"!==Object.prototype.toString.call(e))throw new TypeError("Args must be an Array");this.args=e},getEvalOrigin:function(){return this.evalOrigin},setEvalOrigin:function(e){if(e instanceof c)this.evalOrigin=e;else{if(!(e instanceof Object))throw new TypeError("Eval Origin must be an Object or StackFrame");this.evalOrigin=new c(e)}},toString:function(){var e=this.getFileName()||"",t=this.getLineNumber()||"",n=this.getColumnNumber()||"",r=this.getFunctionName()||"";return this.getIsEval()?e?"[eval] ("+e+":"+t+":"+n+")":"[eval]:"+t+":"+n:r?r+" ("+e+":"+t+":"+n+")":e+":"+t+":"+n}},c.fromString=function(e){var t=e.indexOf("("),n=e.lastIndexOf(")"),r=e.substring(0,t),o=e.substring(t+1,n).split(","),a=e.substring(n+1);if(0===a.indexOf("@"))var i=/@(.+?)(?::(\d+))?(?::(\d+))?$/.exec(a,""),s=i[1],u=i[2],l=i[3];return new c({functionName:r,args:o||void 0,fileName:s,lineNumber:u||void 0,columnNumber:l||void 0})};for(var l=0;l<r.length;l++)c.prototype["get"+t(r[l])]=n(r[l]),c.prototype["set"+t(r[l])]=function(e){return function(t){this[e]=Boolean(t)}}(r[l]);for(var d=0;d<o.length;d++)c.prototype["get"+t(o[d])]=n(o[d]),c.prototype["set"+t(o[d])]=function(t){return function(n){if(!e(n))throw new TypeError(t+" must be a Number");this[t]=Number(n)}}(o[d]);for(var f=0;f<a.length;f++)c.prototype["get"+t(a[f])]=n(a[f]),c.prototype["set"+t(a[f])]=function(e){return function(t){this[e]=String(t)}}(a[f]);return c},"object"==typeof w?w=m():v.StackFrame=m();var E={};!function(e,t){"object"==typeof E?E=t(w):e.StackGenerator=t(e.StackFrame)}(this,(function(e){return{backtrace:function(t){var n=[],r=10;"object"==typeof t&&"number"==typeof t.maxStackSize&&(r=t.maxStackSize);for(var o=arguments.callee;o&&n.length<r&&o.arguments;){for(var a=new Array(o.arguments.length),i=0;i<a.length;++i)a[i]=o.arguments[i];/function(?:\s+([\w$]+))+\s*\(/.test(o.toString())?n.push(new e({functionName:RegExp.$1||void 0,args:a})):n.push(new e({args:a}));try{o=o.caller}catch(s){break}}return n}}}));var O={};!function(e,t){"object"==typeof O?O=t(w):e.ErrorStackParser=t(e.StackFrame)}
1(this,(function(e){var t=/(^|@)\S+:\d+/,n=/^\s*at .*(\S+:\d+|\(native\))/m,r=/^(eval@)?(\[native code])?$/;return{parse:function(e){if(void 0!==e.stacktrace||void 0!==e["opera#sourceloc"])return this.parseOpera(e);if(e.stack&&e.stack.match(n))return this.parseV8OrIE(e);if(e.stack)return this.parseFFOrSafari(e);throw new Error("Cannot parse given Error object")},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];var t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,""));return[t[1],t[2]||void 0,t[3]||void 0]},parseV8OrIE:function(t){return t.stack.split("\n").filter((function(e){return!!e.match(n)}),this).map((function(t){t.indexOf("(eval ")>-1&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var n=t.replace(/^\s+/,"").replace(/\(eval code/g,"("),r=n.match(/ (\((.+):(\d+):(\d+)\)$)/),o=(n=r?n.replace(r[0],""):n).split(/\s+/).slice(1),a=this.extractLocation(r?r[1]:o.pop()),i=o.join(" ")||void 0,s=["eval","<anonymous>"].indexOf(a[0])>-1?void 0:a[0];return new e({functionName:i,fileName:s,lineNumber:a[1],columnNumber:a[2],source:t})}),this)},parseFFOrSafari:function(t){return t.stack.split("\n").filter((function(e){return!e.match(r)}),this).map((function(t){if(t.indexOf(" > eval")>-1&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===t.indexOf("@")&&-1===t.indexOf(":"))return new e({functionName:t});var n=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=t.match(n),o=r&&r[1]?r[1]:void 0,a=this.extractLocation(t.replace(n,""));return new e({functionName:o,fileName:a[0],lineNumber:a[1],columnNumber:a[2],source:t})}),this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")>-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(t){for(var n=/Line (\d+).*script (?:in )?(\S+)/i,r=t.message.split("\n"),o=[],a=2,i=r.length;a<i;a+=2){var s=n.exec(r[a]);s&&o.push(new e({fileName:s[2],lineNumber:s[1],source:r[a]}))}return o},parseOpera10:function(t){for(var n=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,r=t.stacktrace.split("\n"),o=[],a=0,i=r.length;a<i;a+=2){var s=n.exec(r[a]);s&&o.push(new e({functionName:s[3]||void 0,fileName:s[2],lineNumber:s[1],source:r[a]}))}return o},parseOpera11:function(n){return n.stack.split("\n").filter((function(e){return!!e.match(t)&&!e.match(/^Error created at/)}),this).map((function(t){var n,r=t.split("@"),o=this.extractLocation(r.pop()),a=r.shift()||"",i=a.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;a.match(/\(([^)]*)\)/)&&(n=a.replace(/^[^(]+\(([^)]*)\)$/,"$1"));var s=void 0===n||"[arguments not available]"===n?void 0:n.split(",");return new e({functionName:i,args:s,fileName:o[0],lineNumber:o[1],columnNumber:o[2],source:t})}),this)}}}));var x=O,j=function(e,t,n,r){var o=r&&r.redactedKeys?r.redactedKeys:[],a=r&&r.redactedPaths?r.redactedPaths:[];return JSON.stringify(A(e,o,a),t,n)},N=20,k=25e3,R=8,L="...";function T(e){return e instanceof Error||/^\[object (Error|(Dom)?Exception)\]$/.test(Object.prototype.toString.call(e))}function B(e){return"[Throws: "+(e?e.message:"?")+"]"}function q(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return!0;return!1}function M(e,t){for(var n=0,r=e.length;n<r;n++)if(0===t.indexOf(e[n]))return!0;return!1}function C(e,t){for(var n=0,r=e.length;n<r;n++){if("string"==typeof e[n]&&e[n].toLowerCase()===t.toLowerCase())return!0;if(e[n]&&"function"==typeof e[n].test&&e[n].test(t))return!0}return!1}function I(e){return"[object Array]"===Object.prototype.toString.call(e)}function P(e,t){try{return e[t]}catch(n){return B(n)}}function A(e,t,n){var r=[],o=0;function a(e,i){function s(){return i.length>R&&o>k}if(o++,i.length>N)return L;if(s())return L;if(null===e||"object"!=typeof e)return e;if(q(r,e))return"[Circular]";if(r.push(e),"function"==typeof e.toJSON)try{o--;var u=a(e.toJSON(),i);return r.pop(),u}catch(p){return B(p)}if(T(e)){o--;var c=a({name:e.name,message:e.message},i);return r.pop(),c}if(I(e)){for(var l=[],d=0,f=e.length;d<f;d++){if(s()){l.push(L);break}l.push(a(e[d],i.concat("[]")))}return r.pop(),l}var g={};try{for(var h in e)if(Object.prototype.hasOwnProperty.call(e,h))if(M(n,i.join("."))&&C(t,h))g[h]="[REDACTED]";else{if(s()){g[h]=L;break}g[h]=a(P(e,h),i.concat(h))}}catch(v){}return r.pop(),g}return a(e,[])}function D(e,t,n,r){if("string"==typeof n){void 0===r?r=null:null!==r&&"string"!=typeof r&&(r=j(r));var o=t[n];"number"!=typeof o?(e.push({name:n,variant:r}),t[n]=e.length-1):e[o]={name:n,variant:r}}}
1function V(e,t,n){if(o(t)){for(var r=0;r<t.length;++r){var a=t[r];null!==a&&"object"==typeof a&&D(e,n,a.name,a.variant)}return e}}function F(e){return h(n(e,Boolean),(function(e){var t=e.name,n=e.variant,r={featureFlag:t};return"string"==typeof n&&(r.variant=n),r}))}function H(e,t,n){var r=t[n];"number"==typeof r&&(e[r]=null,delete t[n])}var $={add:D,clear:H,merge:V,toEventApi:F},K=function(e){return!(!e||!e.stack&&!e.stacktrace&&!e["opera#sourceloc"]||"string"!=typeof(e.stack||e.stacktrace||e["opera#sourceloc"])||e.stack===e.name+": "+e.message)};function U(e){switch(Object.prototype.toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return e instanceof Error}}var X=U,J=function(e,t,n,r){var o;if(t){var a;if(null===n)return W(e,t);"object"==typeof n&&(a=n),"string"==typeof n&&((o={})[n]=r,a=o),a&&"__proto__"!==t&&"constructor"!==t&&"prototype"!==t&&(e[t]||(e[t]={}),e[t]=g({},e[t],a))}},W=function(e,t,n){"string"==typeof t&&(n?"__proto__"!==t&&"constructor"!==t&&"prototype"!==t&&e[t]&&delete e[t][n]:delete e[t])},z={add:J,get:function(e,t,n){if("string"==typeof t)return n?e[t]?e[t][n]:void 0:e[t]},clear:W};function G(){return G=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},G.apply(this,arguments)}var Q=function(){function e(t,n,r,o,a){void 0===r&&(r=[]),void 0===o&&(o=ee()),this.apiKey=void 0,this.context=void 0,this.groupingHash=void 0,this.originalError=a,this._handledState=o,this.severity=this._handledState.severity,this.unhandled=this._handledState.unhandled,this.app={},this.device={},this.request={},this.breadcrumbs=[],this.threads=[],this._metadata={},this._features=[],this._featuresIndex={},this._user={},this._session=void 0,this._correlation=void 0,this.errors=[ne(t,n,e.__type,r)]}var t=e.prototype;return t.addMetadata=function(e,t,n){return z.add(this._metadata,e,t,n)},t.setTraceCorrelation=function(e,t){"string"==typeof e&&(this._correlation=G({traceId:e},"string"==typeof t?{spanId:t}:{}))},t.getMetadata=function(e,t){return z.get(this._metadata,e,t)},t.clearMetadata=function(e,t){return z.clear(this._metadata,e,t)},t.addFeatureFlag=function(e,t){void 0===t&&(t=null),$.add(this._features,this._featuresIndex,e,t)},t.addFeatureFlags=function(e){$.merge(this._features,e,this._featuresIndex)},t.getFeatureFlags=function(){return $.toEventApi(this._features)},t.clearFeatureFlag=function(e){$.clear(this._features,this._featuresIndex,e)},t.clearFeatureFlags=function(){this._features=[],this._featuresIndex={}},t.getUser=function(){return this._user},t.setUser=function(e,t,n){this._user={id:e,email:t,name:n}},t.toJSON=function(){return{payloadVersion:"4",exceptions:h(this.errors,(function(e){return g({},e,{message:e.errorMessage})})),severity:this.severity,unhandled:this._handledState.unhandled,severityReason:this._handledState.severityReason,app:this.app,device:this.device,request:this.request,breadcrumbs:this.breadcrumbs,context:this.context,groupingHash:this.groupingHash,metaData:this._metadata,user:this._user,session:this._session,featureFlags:this.getFeatureFlags(),correlation:this._correlation}},e}(),Y=function(e){var t={file:e.fileName,method:Z(e.functionName),lineNumber:e.lineNumber,columnNumber:e.columnNumber,code:void 0,inProject:void 0};return t.lineNumber>-1&&!t.file&&!t.method&&(t.file="global code"),t},Z=function(e){return/^global code$/i.test(e)?"global code":e},ee=function(){return{unhandled:!1,severity:"warning",severityReason:{type:"handledException"}}},te=function(e){return"string"==typeof e?e:""};function ne(e,n,r,o){return{errorClass:te(e),errorMessage:te(n),type:r,stacktrace:t(o,(function(e,t){var n=Y(t);try{return"{}"===JSON.stringify(n)?e:e.concat(n)}catch(r){return e}}),[])}}function re(e){return e.cause?[e].concat(re(e.cause)):[e]}Q.getStacktrace=function(e,t,r){if(K(e))return x.parse(e).slice(t);try{return n(E.backtrace(),(function(e){return-1===(e.functionName||"").indexOf("StackGenerator$$")})).slice(1+r)}catch(o){return[]}},Q.create=function(e,t,n,r,o,a){void 0===o&&(o=0);var i,s=ae(e,t,r,a),u=s[0],c=s[1];try{var l=Q.getStacktrace(u,c>0?1+c+o:0,1+o);i=new Q(u.name,u.message,l,n,e)}catch(p){i=new Q(u.name,u.message,[],n,e)}if("InvalidError"===u.name&&i.addMetadata(""+r,"non-error parameter",oe(e)),u.cause){var d,f=re(u).slice(1),g=h(f,(function(e){var t=X(e)&&K(e)?x.parse(e):[],n=ae(e,!0,"error cause")[0];return"InvalidError"===n.name&&i.addMetadata("error cause",oe(e)),ne(n.name,n.message,Q.__type,t)}));(d=i.errors).push.apply(d,g)}return i};var oe=function(e){return null===e?"null":void 0===e?"undefined":e},ae=function(e,t,n,r){var o,a=0,i=function(e){var t="error cause"===n?"was":"received";r&&r.warn(n+" "+t+' a non-error: "'+e+'"');var o=new Error(n+" "+t+' a non-error. See "'+n+'" tab for more detail.');return o.name="InvalidError",o};if(t)switch(typeof e){case"string":case"number":case"boolean":o=new Error(String(e)),a+=1;break;case"function":o=i("function"),a+=2;break;case"object":null!==e&&X(e)?o=e:null!==e&&ie(e)?((o=new Error(e.message||e.errorMessage)).name=e.name||e.errorClass,a+=1):(o=i(null===e?"null":"unsupported object"),a+=2);break;default:o=i("nothing"),a+=2}else X(e)?o=e:(o=i(typeof e),a+=2);if(!K(o))try{throw o}catch(s){K(s)&&(o=s,a=1)}return[o,a]};Q.__type="browserjs";var ie=function(e){return!("string"!=typeof e.name&&"string"!=typeof e.errorClass||"string"!=typeof e.message&&"string"!=typeof e.errorMessage)},se=Q,ue=function(e,t,n){var r=0,o=function(){if(r>=e.length)return n(null,!0);t(e[r],(function(e,t){return e?n(e):!1===t?n(null,!1):(r++,void o())}))};o()},ce=function(e,t,n,r){ue(e,(function(e,r){if("function"!=typeof e)return r(null);try{if(2!==e.length){var o=e(t);return o&&"function"==typeof o.then?o.then((function(e){return setTimeout((function(){return r(null,e)}))}),(function(e){setTimeout((function(){return n(e),r(null,!0)}))})):r(null,o)}e(t,(function(e,t){if(e)return n(e),r(null);r(null,t)}))}catch(a){n(a),r(null)}}),r)},le=function(e,t,n,r){for(var o=!1,a=e.slice();!o&&a.length;)try{o=!1===a.pop()(t)}catch(i){r.error("Error occurred in "+n+" callback, continuing anywayâ¦"),r.error(i)}return o},de=function(e,t){var n="000000000"+e;return n.substr(n.length-t)},fe="object"==typeof window?window:self,ge=0;for(var he in fe)Object.hasOwnProperty.call(fe,he)&&ge++;var pe=navigator.mimeTypes?navigator.mimeTypes.length:0,ve=de((pe+navigator.userAgent.length).toString(36)+ge.toString(36),4),me=function(){return ve},ye=function(e){return"string"==typeof e&&/^c[a-z0-9]{20,32}$/.test(e)},_e=0,be=4,Se=36,we=Math.pow(Se,be);function Ee(){return de((Math.random()*we|0).toString(Se),be)}function Oe(){return _e=_e<we?_e:0,++_e-1}function xe(){return"c"+(new Date).getTime().toString(Se)+de(Oe().toString(Se),be)+me()+(Ee()+Ee())}
1xe.fingerprint=me,xe.isCuid=ye;var je=xe,Ne=function(){function e(){this.id=je(),this.startedAt=new Date,this._handled=0,this._unhandled=0,this._user={},this.app={},this.device={}}var t=e.prototype;return t.getUser=function(){return this._user},t.setUser=function(e,t,n){this._user={id:e,email:t,name:n}},t.toJSON=function(){return{id:this.id,startedAt:this.startedAt,events:{handled:this._handled,unhandled:this._unhandled}}},t._track=function(e){this[e._handledState.unhandled?"_unhandled":"_handled"]+=1},e}(),ke=$.add,Re=$.clear,Le=$.merge,Te=function(){},Be=function(){function o(e,t,n,r){var a=this;void 0===t&&(t=d.schema),void 0===n&&(n=[]),this._notifier=r,this._config={},this._schema=t,this._delivery={sendSession:Te,sendEvent:Te},this._logger={debug:Te,info:Te,warn:Te,error:Te},this._plugins={},this._breadcrumbs=[],this._session=null,this._metadata={},this._featuresIndex={},this._features=[],this._context=void 0,this._user={},this._cbs={e:[],s:[],sp:[],b:[]},this.Client=o,this.Event=se,this.Breadcrumb=S,this.Session=Ne,this._config=this._configure(e,n),h(n.concat(this._config.plugins),(function(e){e&&a._loadPlugin(e)})),this._depth=1;var i=this,s=this.notify;this.notify=function(){return s.apply(i,arguments)}}var a=o.prototype;return a.addMetadata=function(e,t,n){return z.add(this._metadata,e,t,n)},a.getMetadata=function(e,t){return z.get(this._metadata,e,t)},a.clearMetadata=function(e,t){return z.clear(this._metadata,e,t)},a.addFeatureFlag=function(e,t){void 0===t&&(t=null),ke(this._features,this._featuresIndex,e,t)},a.addFeatureFlags=function(e){Le(this._features,e,this._featuresIndex)},a.clearFeatureFlag=function(e){Re(this._features,this._featuresIndex,e)},a.clearFeatureFlags=function(){this._features=[],this._featuresIndex={}},a.getContext=function(){return this._context},a.setContext=function(e){this._context=e},a._configure=function(e,n){var r=t(n,(function(e,t){return t&&t.configSchema?g({},e,t.configSchema):e}),this._schema);e.endpoints||(e.sendPayloadChecksums=!("sendPayloadChecksums"in e)||e.sendPayloadChecksums);var o=t(s(r),(function(t,n){var o=r[n].defaultValue(e[n]);return void 0!==e[n]?r[n].validate(e[n])?r[n].allowPartialObject?t.config[n]=g(o,e[n]):t.config[n]=e[n]:(t.errors[n]=r[n].message,t.config[n]=o):t.config[n]=o,t}),{errors:{},config:{}}),a=o.errors,i=o.config;if(r.apiKey){if(!i.apiKey)throw new Error("No Bugsnag API Key set");/^[0-9a-f]{32}$/i.test(i.apiKey)||(a.apiKey="should be a string of 32 hexadecimal characters")}return this._metadata=g({},i.metadata),Le(this._features,i.featureFlags,this._featuresIndex),this._user=g({},i.user),this._context=i.context,i.logger&&(this._logger=i.logger),i.onError&&(this._cbs.e=this._cbs.e.concat(i.onError)),i.onBreadcrumb&&(this._cbs.b=this._cbs.b.concat(i.onBreadcrumb)),i.onSession&&(this._cbs.s=this._cbs.s.concat(i.onSession)),s(a).length&&this._logger.warn(qe(a,e)),i},a.getUser=function(){return this._user},a.setUser=function(e,t,n){this._user={id:e,email:t,name:n}},a._loadPlugin=function(e){var t=e.load(this);e.name&&(this._plugins["~"+e.name+"~"]=t)},a.getPlugin=function(e){return this._plugins["~"+e+"~"]},a._setDelivery=function(e){this._delivery=e(this)},a.startSession=function(){var e=new Ne;return e.app.releaseStage=this._config.releaseStage,e.app.version=this._config.appVersion,e.app.type=this._config.appType,e._user=g({},this._user),le(this._cbs.s,e,"onSession",this._logger)?(this._logger.debug("Session not started due to onSession callback"),this):this._sessionDelegate.startSession(this,e)},a.addOnError=function(e,t){void 0===t&&(t=!1),this._cbs.e[t?"unshift":"push"](e)},a.removeOnError=function(e){this._cbs.e=n(this._cbs.e,(function(t){return t!==e}))},a._addOnSessionPayload=function(e){this._cbs.sp.push(e)},a.addOnSession=function(e){this._cbs.s.push(e)},a.removeOnSession=function(e){this._cbs.s=n(this._cbs.s,(function(t){return t!==e}))},a.addOnBreadcrumb=function(e,t){void 0===t&&(t=!1),this._cbs.b[t?"unshift":"push"](e)},a.removeOnBreadcrumb=function(e){this._cbs.b=n(this._cbs.b,(function(t){return t!==e}))},a.pauseSession=function(){return this._sessionDelegate.pauseSession(this)},a.resumeSession=function(){return this._sessionDelegate.resumeSession(this)},a.leaveBreadcrumb=function(t,n,o){if(t="string"==typeof t?t:"",o="str
1ing"==typeof o&&r(e,o)?o:"manual",n="object"==typeof n&&null!==n?n:{},t){var a=new S(t,n,o);le(this._cbs.b,a,"onBreadcrumb",this._logger)?this._logger.debug("Breadcrumb not attached due to onBreadcrumb callback"):(this._breadcrumbs.push(a),this._breadcrumbs.length>this._config.maxBreadcrumbs&&(this._breadcrumbs=this._breadcrumbs.slice(this._breadcrumbs.length-this._config.maxBreadcrumbs)))}},a._isBreadcrumbTypeEnabled=function(e){var t=this._config.enabledBreadcrumbTypes;return null===t||r(t,e)},a.notify=function(e,t,n){void 0===n&&(n=Te);var r=se.create(e,!0,void 0,"notify()",this._depth+1,this._logger);this._notify(r,t,n)},a._notify=function(e,t,n){var a=this;if(void 0===n&&(n=Te),e.app=g({},e.app,{releaseStage:this._config.releaseStage,version:this._config.appVersion,type:this._config.appType}),e.context=e.context||this._context,e._metadata=g({},e._metadata,this._metadata),e._user=g({},e._user,this._user),e.breadcrumbs=this._breadcrumbs.slice(),Le(e._features,this._features,e._featuresIndex),null!==this._config.enabledReleaseStages&&!r(this._config.enabledReleaseStages,this._config.releaseStage))return this._logger.warn("Event not sent due to releaseStage/enabledReleaseStages configuration"),n(null,e);var i=e.severity,s=function(e){a._logger.error("Error occurred in onError callback, continuing anywayâ¦"),a._logger.error(e)},u=[].concat(this._cbs.e).concat(t);ce(u,e,s,(function(t,r){if(t&&s(t),!r)return a._logger.debug("Event not sent due to onError callback"),n(null,e);a._isBreadcrumbTypeEnabled("error")&&o.prototype.leaveBreadcrumb.call(a,e.errors[0].errorClass,{errorClass:e.errors[0].errorClass,errorMessage:e.errors[0].errorMessage,severity:e.severity},"error"),i!==e.severity&&(e._handledState.severityReason={type:"userCallbackSetSeverity"}),e.unhandled!==e._handledState.unhandled&&(e._handledState.severityReason.unhandledOverridden=!0,e._handledState.unhandled=e.unhandled),a._session&&(a._session._track(e),e._session=a._session),a._delivery.sendEvent({apiKey:e.apiKey||a._config.apiKey,notifier:a._notifier,events:[e]},(function(t){return n(t,e)}))}))},o}(),qe=function(e,t){return new Error("Invalid configuration\n"+h(s(e),(function(n){return" - "+n+" "+e[n]+", got "+Me(t[n])})).join("\n\n"))},Me=function(e){switch(typeof e){case"string":case"number":case"object":return JSON.stringify(e);default:return String(e)}},Ce=Be,Ie={},Pe=["events.[].metaData","events.[].breadcrumbs.[].metaData","events.[].request"];Ie.event=function(e,t){var n=j(e,null,null,{redactedPaths:Pe,redactedKeys:t});return n.length>1e6&&(e.events[0]._metadata={notifier:"WARNING!\nSerialized payload was "+n.length/1e6+"MB (limit = 1MB)\nmetadata was removed"},n=j(e,null,null,{redactedPaths:Pe,redactedKeys:t})),n},Ie.session=function(e,t){return j(e,null,null)};var Ae={};Ae=function(e,t){return void 0===t&&(t=window),{sendEvent:function(n,r){if(void 0===r&&(r=function(){}),null===e._config.endpoints.notify){var o=new Error("Event not sent due to incomplete endpoint configuration");return r(o)}var a=De(e._config,"notify","4",t),i=Ie.event(n,e._config.redactedKeys),s=new t.XDomainRequest;s.onload=function(){r(null)},s.onerror=function(){var t=new Error("Event failed to send");e._logger.error("Event failed to sendâ¦",t),i.length>1e6&&e._logger.warn("Event oversized ("+(i.length/1e6).toFixed(2)+" MB)"),r(t)},s.open("POST",a),setTimeout((function(){try{s.send(i)}catch(t){e._logger.error(t),r(t)}}),0)},sendSession:function(n,r){if(void 0===r&&(r=function(){}),null===e._config.endpoints.sessions){var o=new Error("Session not sent due to incomplete endpoint configuration");return r(o)}var a=De(e._config,"sessions","1",t),i=new t.XDomainRequest;i.onload=function(){r(null)},i.open("POST",a),setTimeout((function(){try{i.send(Ie.session(n,e._config.redactedKeys))}catch(t){e._logger.error(t),r(t)}}),0)}}};var De=function(e,t,n,r){var o=JSON.parse(JSON.stringify(new Date));return Ve(e.endpoints[t],r.location.protocol)+"?apiKey="+encodeURIComponent(e.apiKey)+"&payloadVersion="+n+"&sentAt="+encodeURIComponent(o)},Ve=Ae._matchPageProtocol=function(e,t){return"http:"===t?e.replace(/^https:/,"http:"):e};function Fe(e,t){if(e.isSecureContext&&e.crypto&&e.crypto.subtle&&e.crypto.subtle.digest&&"function"==typeof TextEncoder){var n=(new TextEncoder).encode(t);return e.crypto.subtle.digest("SHA-1",n).then((function(e){return"sha1 "+Array.from(new Uint8Array(e)).map((function(e){return e.toString(16).padStart(2,"0")})).join("")}))}return Promise.resolve()}
1var He=function(e,t){return void 0===t&&(t=window),{sendEvent:function(n,r){void 0===r&&(r=function(){});try{var o=e._config.endpoints.notify;if(null===o){var a=new Error("Event not sent due to incomplete endpoint configuration");return r(a)}var i=new t.XMLHttpRequest,s=Ie.event(n,e._config.redactedKeys);i.onreadystatechange=function(){if(i.readyState===t.XMLHttpRequest.DONE){var n=i.status;if(0===n||n>=400){var o=new Error("Request failed with status "+n);e._logger.error("Event failed to sendâ¦",o),s.length>1e6&&e._logger.warn("Event oversized ("+(s.length/1e6).toFixed(2)+" MB)"),r(o)}else r(null)}},i.open("POST",o),i.setRequestHeader("Content-Type","application/json"),i.setRequestHeader("Bugsnag-Api-Key",n.apiKey||e._config.apiKey),i.setRequestHeader("Bugsnag-Payload-Version","4"),i.setRequestHeader("Bugsnag-Sent-At",(new Date).toISOString()),e._config.sendPayloadChecksums&&"undefined"!=typeof Promise&&-1!==Promise.toString().indexOf("[native code]")?Fe(t,s).then((function(e){e&&i.setRequestHeader("Bugsnag-Integrity",e),i.send(s)})).catch((function(t){e._logger.error(t),i.send(s)})):i.send(s)}catch(u){e._logger.error(u)}},sendSession:function(n,r){void 0===r&&(r=function(){});try{var o=e._config.endpoints.sessions;if(null===o){var a=new Error("Session not sent due to incomplete endpoint configuration");return r(a)}var i=new t.XMLHttpRequest,s=Ie.session(n,e._config.redactedKeys);i.onreadystatechange=function(){if(i.readyState===t.XMLHttpRequest.DONE){var n=i.status;if(0===n||n>=400){var o=new Error("Request failed with status "+n);e._logger.error("Session failed to sendâ¦",o),r(o)}else r(null)}},i.open("POST",o),i.setRequestHeader("Content-Type","application/json"),i.setRequestHeader("Bugsnag-Api-Key",e._config.apiKey),i.setRequestHeader("Bugsnag-Payload-Version","1"),i.setRequestHeader("Bugsnag-Sent-At",(new Date).toISOString()),e._config.sendPayloadChecksums&&"undefined"!=typeof Promise&&-1!==Promise.toString().indexOf("[native code]")?Fe(t,s).then((function(e){e&&i.setRequestHeader("Bugsnag-Integrity",e),i.send(s)})).catch((function(t){e._logger.error(t),i.send(s)})):i.send(s)}catch(u){e._logger.error(u)}}}},$e=new Date,Ke=function(){$e=new Date},Ue={name:"appDuration",load:function(e){return e.addOnError((function(e){var t=new Date;e.app.duration=t-$e}),!0),{reset:Ke}}},Xe=function(e){return void 0===e&&(e=window),{load:function(t){t.addOnError((function(t){void 0===t.context&&(t.context=e.location.pathname)}),!0)}}},Je="bugsnag-anonymous-id",We=function(e){try{var t=e.localStorage,n=t.getItem(Je);return n&&/^c[a-z0-9]{20,32}$/.test(n)||(n=je(),t.setItem(Je,n)),n}catch(r){}},ze=function(e,t){return void 0===e&&(e=navigator),void 0===t&&(t=window),{load:function(n){var r={locale:e.browserLanguage||e.systemLanguage||e.userLanguage||e.language,userAgent:e.userAgent};t&&t.screen&&t.screen.orientation&&t.screen.orientation.type?r.orientation=t.screen.orientation.type:t&&t.document&&(r.orientation=t.document.documentElement.clientWidth>t.document.documentElement.clientHeight?"landscape":"portrait"),n._config.generateAnonymousId&&(r.id=We(t)),n.addOnSession((function(e){e.device=g({},e.device,r),n._config.collectUserIp||Ge(e)})),n.addOnError((function(e){e.device=g({},e.device,r,{time:new Date}),n._config.collectUserIp||Ge(e)}),!0)},configSchema:{generateAnonymousId:{validate:function(e){return!0===e||!1===e},defaultValue:function(){return!0},message:"should be true|false"}}}},Ge=function(e){var t=e.getUser();t&&t.id||e.setUser(e.device.id)},Qe=function(e){return void 0===e&&(e=window),{load:function(t){t.addOnError((function(t){t.request&&t.request.url||(t.request=g({},t.request,{url:e.location.href}))}),!0)}}},Ye={load:function(e){e._sessionDelegate=Ze}},Ze={startSession:function(e,t){var n=e;return n._session=t,n._pausedSession=null,null===n._config.enabledReleaseStages||r(n._config.enabledReleaseStages,n._config.releaseStage)?(n._delivery.sendSession({notifier:n._notifier,device:t.device,app:t.app,sessions:[{id:t.id,startedAt:t.startedAt,user:t._user}]}),n):(n._logger.warn("Session not sent due to releaseStage/enabledReleaseStages configuration"),n)},resumeSession:function(e){return e._session?e:e._pausedSession?(e._session=e._pausedSession,e._pausedSession=null,e):e.startSession()},pauseSession:function(e){e._pausedSession=e._session,e._session=null}},et={load:function(e){e._config.collectUserIp||e.addOnError((function(e){e._user&&void 0===e._user.id&&delete e._user.id,e._user=g({i
1d:"[REDACTED]"},e._user),e.request=g({clientIp:"[REDACTED]"},e.request)}))},configSchema:{collectUserIp:{defaultValue:function(){return!0},message:"should be true|false",validate:function(e){return!0===e||!1===e}}}},tt={load:function(e){!/^(local-)?dev(elopment)?$/.test(e._config.releaseStage)&&e._isBreadcrumbTypeEnabled("log")&&h(nt,(function(n){var r=console[n];console[n]=function(){for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];e.leaveBreadcrumb("Console output",t(a,(function(e,t,n){var r="[Unknown value]";try{r=String(t)}catch(o){}if("[object Object]"===r)try{r=JSON.stringify(t)}catch(o){}return e["["+n+"]"]=r,e}),{severity:0===n.indexOf("group")?"log":n}),"log"),r.apply(console,a)},console[n]._restore=function(){console[n]=r}}))}},nt=n(["log","debug","info","warn","error"],(function(e){return"undefined"!=typeof console&&"function"==typeof console[e]})),rt=200,ot=5e5,at=function(e,r){return void 0===e&&(e=document),void 0===r&&(r=window),{load:function(o){if(o._config.trackInlineScripts){var a=r.location.href,i="",s=e.attachEvent?"complete"===e.readyState:"loading"!==e.readyState,u=function(){return e.documentElement.outerHTML};i=u();var c=e.onreadystatechange;e.onreadystatechange=function(){"interactive"===e.readyState&&(i=u(),s=!0);try{c.apply(this,arguments)}catch(t){}};var l=null,d=function(e){l=e},f=function(){var t=e.currentScript||l;if(!t&&!s){var n=e.scripts||e.getElementsByTagName("script");t=n[n.length-1]}return t},g=function(e){s&&i||(i=u());var n=["\x3c!-- DOC START --\x3e"].concat(i.split("\n")),r=e-1,o=Math.max(r-3,0),a=Math.min(r+3,n.length);return t(n.slice(o,a),(function(e,t,n){return e[o+1+n]=t.length<=rt?t:t.substr(0,rt),e}),{})};o.addOnError((function(e){e.errors[0].stacktrace=n(e.errors[0].stacktrace,(function(e){return!/__trace__$/.test(e.method)}));var t=e.errors[0].stacktrace[0],r=function(e){return e.replace(/#.*$/,"").replace(/\?.*$/,"")};if(!t||!t.file||r(t.file)===r(a)){var o=f();if(o){var i=o.innerHTML;e.addMetadata("script","content",i.length<=ot?i:i.substr(0,ot)),t&&t.lineNumber&&(t.code=g(t.lineNumber))}}}),!0);var p=h(["setTimeout","setInterval","setImmediate","requestAnimationFrame"],(function(e){return it(r,e,(function(e){return v(e,(function(e){return{get:function(){return e[0]},replace:function(t){e[0]=t}}}))}))}))[0];h(["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],(function(e){r[e]&&r[e].prototype&&Object.prototype.hasOwnProperty.call(r[e].prototype,"addEventListener")&&(it(r[e].prototype,"addEventListener",(function(e){return v(e,st)})),it(r[e].prototype,"removeEventListener",(function(e){return v(e,st,!0)})))}))}function v(e,t,n){return void 0===n&&(n=!1),function(){var r=[].slice.call(arguments);try{var o=t(r),a=o.get();if(n&&e.apply(this,r),"function"!=typeof a)return e.apply(this,r);if(a.__trace__)o.replace(a.__trace__);else{var i=f();a.__trace__=function(){d(i),p((function(){d(null)}),0);var e=a.apply(this,arguments);return d(null),e},a.__trace__.__trace__=a.__trace__,o.replace(a.__trace__)}}catch(s){}if(e.apply)return e.apply(this,r);switch(r.length){case 1:return e(r[0]);case 2:return e(r[0],r[1]);default:return e()}}}},configSchema:{trackInlineScripts:{validate:function(e){return!0===e||!1===e},defaultValue:function(){return!0},message:"should be true|false"}}}};function it(e,t,n){var r=e[t];if(!r)return r;var o=n(r);return e[t]=o,r}function st(e){var t=!!e[1]&&"function"==typeof e[1].handleEvent;return{get:function(){return t?e[1].handleEvent:e[1]},replace:function(n){t?e[1].handleEvent=n:e[1]=n}}}var ut=function(e){return void 0===e&&(e=window),{load:function(t){"addEventListener"in e&&t._isBreadcrumbTypeEnabled("user")&&e.addEventListener("click",(function(n){var r,o;try{r=lt(n.target),o=dt(n.target,e)}catch(a){r="[hidden]",o="[hidden]",t._logger.error("Cross domain error when tracking click event. See docs: https://tinyurl.com/yy3rn63z")}t.leaveBreadcrumb("UI click",{targetText:r,targetSelector:o},"user")}),!0)}}},ct=/^\s*([^\s][\s\S]{0,139}[^\s])?\s*/;function lt(e){var t=e.textContent||e.innerText||"";return t||"submit"!==e.type&&"button"!==e.type||(t=e.value),(t=t.replace(ct,"$1")).length>140?t.slice(0,135)+"(...)":t}function dt(e,t){var n=[e.tagName];if(e.id&&n.push("#"+e.id),e.className&&e.className.length&&n.push("."+e.className.split(" ").join(".")),!t.document.querySelectorAll||!Array.prototype.indexOf)return n.join("");try{if(1===t.document.querySelectorAll(n.join("")).length)return n.join("")}catch(o){return n.join("")}if(e.parentNode.childNodes.length>1){var r=Array.prototype.indexOf.call(e.parentNode.childNodes,e)+1;n.push(":nth-child("+r+")")}return 1===t.document.querySelectorAll(n.join("")).length?n.join(""):e.parentNode?dt(e.parentNode,t)+" > "+n.join(""):n.join("")}var ft={};ft=function(e){return void 0===e&&(e=window),{load:function(t){if("addEventListener"in e&&t._isBreadcrumbTypeEnabled("navigation")){var n=function(e){return function(){return t.leaveBreadcrumb(e,{},"navigation")}};e.addEventListener("pagehide",n("Page hidden"),!0),e.addEventListener("pageshow",n("Page shown"),!0),e.addEventListener("load",n("Page loaded"),!0),e.document.addEventListener("DOMContentLoaded",n("DOMContentLoaded"),!0),e.addEventListener("load",(function(){return e.addEventListener("popstate",n("Navigated back"),!0)})),e.addEventListener("hashchange",(function(n){var r=n.oldURL?{from:gt(n.oldURL,e),to:gt(n.newURL,e),state:vt(e)}:{to:gt(e.location.href,e)};t.leaveBreadcrumb("Hash changed",r,"navigation")}),!0),e.history.pushState&&pt(t,e.history,"pushState",e,!0),e.history.replaceState&&pt(t,e.history,"replaceState",e)}}}};var gt=function(e,t){var n=t.document.createElement("A");return n.href=e,""+n.pathname+n.search+n.hash},ht=function(e,t,n,r){var o=gt(e.location.href,e);return{title:n,state:t,prevState:vt(e),to:r||o,from:o}},pt=function(e,t,n,r,o){void 0===o&&(o=!1);var a=t[n];t[n]=function(i,s,u){e.leaveBreadcrumb("History "+n,ht(r,i,s,u),"navigation"),o&&"function"==typeof e.resetEventCount&&e.resetEventCount(),a.apply(t,[i,s].concat(void 0!==u?u:[]))}},vt=function(e){try{return e.history.state}catch(t){}},mt="request",yt=function(e,t){void 0===e&&(e=[]),void 0===t&&(t=window);var n={load:function(n){if(n._isBreadcrumbTypeEnabled("request")){var o=[n._config.endpoints.notify,n._config.endpoints.sessions].concat(e);s(),l();var a=function(e,t,r,o){var a={method:String(t),status:e.status,url:String(r),duration:o};e.status>=400?n.leaveBreadcrumb("fetch() failed",a,mt):n.leaveBreadcrumb("fetch() succeeded",a,mt)},i=function(e,t,r){n.leaveBreadcrumb("fetch() error",{method:String(e),url:String(t),duration:r},mt)}}function s(){if("addEventListener"in t.XMLHttpRequest.prototype&&"WeakMap"in t){var e=new WeakMap,n=new WeakMap,r=t.XMLHttpRequest.prototype.open;t.XMLHttpRequest.prototype.open=function(t,n){this&&e.set(this,{method:t,url:n}),r.apply(this,arguments)};var o=t.XMLHttpRequest.prototype.send;t.XMLHttpRequest.prototype.send=function(t){var r=this,a=e.get(this);if(a){var i=n.get(this);i&&(this.removeEventListener("load",i.load),this.removeEventListener("error",i.error));var s=new Date,l=function(){return c(a.method,a.url,_t(s))},d=function(){return u(a.method,a.url,r.status,_t(s))};this.addEventListener("load",d),this.addEventListener("error",l),this&&n.set(this,{load:d,error:l})}o.apply(this,arguments)}}}
1function u(e,t,a,i){if(void 0!==t){if("string"!=typeof t||!r(o,t.replace(/\?.*$/,""))){var s={status:a,method:String(e),url:String(t),duration:i};a>=400?n.leaveBreadcrumb("XMLHttpRequest failed",s,mt):n.leaveBreadcrumb("XMLHttpRequest succeeded",s,mt)}}else n._logger.warn("The request URL is no longer present on this XMLHttpRequest. A breadcrumb cannot be left for this request.")}function c(e,t,a){void 0!==t?"string"==typeof t&&r(o,t.replace(/\?.*$/,""))||n.leaveBreadcrumb("XMLHttpRequest error",{method:String(e),url:String(t),duration:a},mt):n._logger.warn("The request URL is no longer present on this XMLHttpRequest. A breadcrumb cannot be left for this request.")}function l(){if("fetch"in t&&!t.fetch.polyfill){var e=t.fetch;t.fetch=function(){var t,n=arguments,r=arguments[0],o=arguments[1],s=null;return r&&"object"==typeof r?(s=r.url,o&&"method"in o?t=o.method:r&&"method"in r&&(t=r.method)):(s=r,o&&"method"in o&&(t=o.method)),void 0===t&&(t="GET"),new Promise((function(r,o){var u=new Date;e.apply(void 0,n).then((function(e){a(e,t,s,_t(u)),r(e)})).catch((function(e){i(t,s,_t(u)),o(e)}))}))}}}}};return n},_t=function(e){return e&&new Date-e},bt={load:function(e){var t=0;e.addOnError((function(n){if(t>=e._config.maxEvents)return e._logger.warn("Cancelling event send due to maxEvents per session limit of "+e._config.maxEvents+" being reached"),!1;t++})),e.resetEventCount=function(){t=0}},configSchema:{maxEvents:{defaultValue:function(){return 10},message:"should be a positive integer â¤100",validate:function(e){return u(1,100)(e)}}}},St={},wt=(St={load:function(e){e.addOnError((function(e){var n=t(e.errors,(function(e,t){return e.concat(t.stacktrace)}),[]);h(n,(function(e){e.file=wt(e.file)}))}))}})._strip=function(e){return"string"==typeof e?e.replace(/\?.*$/,"").replace(/#.*$/,""):e},Et=function(e,t){return void 0===e&&(e=window),void 0===t&&(t="window onerror"),{load:function(n){if(n._config.autoDetectErrors&&n._config.enabledErrorTypes.unhandledExceptions){var r=e.onerror;e.onerror=o}function o(e,o,a,i,s){if(0===a&&/Script error\.?/.test(e))n._logger.warn("Ignoring cross-domain or eval script error. See docs: https://tinyurl.com/yy3rn63z");else{var u,c={severity:"error",unhandled:!0,severityReason:{type:"unhandledException"}};if(s)u=n.Event.create(s,!0,c,t,1),Ot(u.errors[0].stacktrace,o,a,i);else if("object"!=typeof e||null===e||o&&"string"==typeof o||a||i||s)u=n.Event.create(e,!0,c,t,1),Ot(u.errors[0].stacktrace,o,a,i);else{var l=e.type?"Event: "+e.type:"Error",d=e.message||e.detail||"";(u=n.Event.create({name:l,message:d},!0,c,t,1)).originalError=e,u.addMetadata(t,{event:e,extraParameters:o})}n._notify(u)}"function"==typeof r&&r.apply(this,arguments)}}}},Ot=function(e,t,n,r){e[0]||e.push({});var o=e[0];o.file||"string"!=typeof t||(o.file=t),!o.lineNumber&&xt(n)&&(o.lineNumber=n),o.columnNumber||(xt(r)?o.columnNumber=r:window.event&&xt(window.event.errorCharacter)&&(o.columnNumber=window.event.errorCharacter))},xt=function(e){return"number"==typeof e&&"NaN"!==String.call(e)},jt=function(e){return void 0===e&&(e=window),{load:function(t){if(t._config.autoDetectErrors&&t._config.enabledErrorTypes.unhandledRejections){var n=function(e){var n=e.reason,r=!1;try{e.detail&&e.detail.reason&&(n=e.detail.reason,r=!0)}catch(i){}var o=!t._config.reportUnhandledPromiseRejectionsAsHandled,a=t.Event.create(n,!1,{severity:"error",unhandled:o,severityReason:{type:"unhandledPromiseRejection"}},"unhandledrejection handler",1,t._logger);r&&h(a.errors[0].stacktrace,Nt(n)),t._notify(a,(function(e){var t;X(e.originalError)&&!e.originalError.stack&&e.addMetadata("unhandledRejection handler",((t={})[Object.prototype.toString.call(e.originalError)]={name:e.originalError.name,message:e.originalError.message,code:e.originalError.code},t))}))};"addEventListener"in e?e.addEventListener("unhandledrejection",n):e.onunhandledrejection=function(e,t){n({detail:{reason:e,promise:t}})}}}}},Nt=function(e){return function(t){t.file!==e.toString()&&t.method&&(t.method=t.method.replace(/^\s+/,""))}},kt={},Rt="Bugsnag JavaScript",Lt="8.2.0",Tt="https://github.com/bugsnag/bugsnag-js",Bt=g({},d.schema,_),qt={_client:null,createClient:function(e){"string"==typeof e&&(e={apiKey:e}),e||(e={});var t=[Ue,ze(),Xe(),Qe(),bt,Ye,et,St,Et(),jt(),ft(),ut(),yt(),tt,at()],n=new Ce(e,Bt,t,{name:Rt,version:Lt,url:Tt});return n._setDelivery(window.XDomainRequest?Ae:He),n._logger.debug("Loaded!"),n.leaveBreadcrumb("Bugsnag loaded",{},"state"),n._config.autoTrackSessions?n.startSession():n},start:function(e){return qt._client?(qt._client._logger.warn("Bugsnag.start() was called more than once. Ignoring."),qt._client):(qt._client=qt.createClient(e),qt._client)},isStarted:function(){return null!=qt._client}};return h(["resetEventCount"].concat(s(Ce.prototype)),(function(e){/^_/.test(e)||(qt[e]=function(){if(!qt._client)return console.log("Bugsnag."+e+"() was called before Bugsnag.start()");qt._client._depth+=1;var t=qt._client[e].apply(qt._client,arguments);return qt._client._depth-=1,t})})),(kt=qt).Client=Ce,kt.Event=se,kt.Session=Ne,kt.Breadcrumb=S,kt.default=qt,kt}()),o.exports}const i=e(r?n:(r=1,n=a()));export{i as B}; 2//# sourceMappingURL=hobbii-notifier-BLiA8JPX.min.js.map
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.