/*! Raven.js 3.22.2 (1b6187b) | github.com/getsentry/raven-js */ !function(a,b){"object"==typeof exports&&"undefined"!=typeof module?module.exports=b():"function"==typeof define&&define.amd?define(b):a.Raven=b()}(this,function(){"use strict";function a(a,b){return b={exports:{}},a(b,b.exports),b.exports}function b(a){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a})(a)}function c(a){return"object"===b(a)&&null!==a}function d(a){switch({}.toString.call(a)){case"[object Error]":return!0;case"[object Exception]":return!0;case"[object DOMException]":return!0;default:return a instanceof Error}}function e(a){return l()&&"[object ErrorEvent]"==={}.toString.call(a)}function f(a){return void 0===a}function g(a){return"function"==typeof a}function h(a){return"[object Object]"===Object.prototype.toString.call(a)}function i(a){return"[object String]"===Object.prototype.toString.call(a)}function j(a){return"[object Array]"===Object.prototype.toString.call(a)}function k(a){if(!h(a))return!1;for(var b in a)if(a.hasOwnProperty(b))return!1;return!0}function l(){try{return new ErrorEvent(""),!0}catch(a){return!1}}function m(){if(!("fetch"in S))return!1;try{return new Headers,new Request(""),new Response,!0}catch(a){return!1}}function n(a){function b(b,c){var d=a(b)||b;return c?c(d)||d:d}return b}function o(a,b){var c,d;if(f(a.length))for(c in a)s(a,c)&&b.call(null,c,a[c]);else if(d=a.length)for(c=0;c ",i=h.length;a&&f++1&&g+e.length*i+b.length>=d));)e.push(b),g+=b.length,a=a.parentNode;return e.reverse().join(h)}function y(a){var b,c,d,e,f,g=[];if(!a||!a.tagName)return"";if(g.push(a.tagName.toLowerCase()),a.id&&g.push("#"+a.id),b=a.className,b&&i(b))for(c=b.split(/\s+/),f=0;f":"anonymous component")+(a._isVue&&a.$options.__file?" at "+a.$options.__file:"")}function P(a,b){if(b=b||window.Vue,b&&b.config){var c=b.config.errorHandler;b.config.errorHandler=function(b,d,e){var f={};"[object Object]"===Object.prototype.toString.call(d)&&(f.componentName=O(d),f.propsData=d.$options.propsData),"undefined"!=typeof e&&(f.lifecycleHook=e),a.captureException(b,{extra:f}),"function"==typeof c&&c.call(this,b,d,e)}}}var Q="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},R=Object.setPrototypeOf||function(a,b){return a.C=b,a},S=("object"==typeof Reflect&&Reflect.construct||function(a,b,c){var d,e=[null];return e.push.apply(e,b),d=a.bind.apply(a,e),R(new d,c.prototype)},"undefined"!=typeof window?window:"undefined"!=typeof Q?Q:"undefined"!=typeof self?self:{}),T={isObject:c,isError:d,isErrorEvent:e,isUndefined:f,isFunction:g,isPlainObject:h,isString:i,isArray:j,isEmptyObject:k,supportsErrorEvent:l,supportsFetch:m,wrappedCallback:n,each:o,objectMerge:p,truncate:r,objectFrozen:q,hasKey:s,joinRegExp:t,urlencode:u,uuid4:w,htmlTreeAsString:x,htmlElementAsString:y,isSameException:B,isSameStacktrace:C,parseUrl:v,fill:D,safeJoin:E},U={collectWindowErrors:!0,debug:!1},V="undefined"!=typeof window?window:"undefined"!=typeof Q?Q:"undefined"!=typeof self?self:{},W=[].slice,X="?",Y=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/;U.report=function(){function a(a){f(),l.push(a)}function b(a){for(var b=l.length-1;b>=0;--b)l[b]===a&&l.splice(b,1)}function c(){g(),l=[]}function d(a,b){var c=null;if(!b||U.collectWindowErrors){for(var d in l)if(l.hasOwnProperty(d))try{l[d].apply(null,[a].concat(W.call(arguments,2)))}catch(e){c=e}if(c)throw c}}function e(a,b,c,e,f){var g=null,i=T.isErrorEvent(f)?f.error:f,k=T.isErrorEvent(a)?a.message:a;if(o)U.computeStackTrace.augmentStackTraceWithInitialElement(o,b,c,k),h();else if(i&&T.isError(i))g=U.computeStackTrace(i),d(g,!0);else{var l,m={url:b,line:c,column:e},n=void 0;if("[object String]"==={}.toString.call(k)){var l=k.match(Y);l&&(n=l[1],k=l[2])}m.func=X,g={name:n,message:k,url:F(),stack:[m]},d(g,!0)}return!!j&&j.apply(this,arguments)}function f(){k||(j=V.onerror,V.onerror=e,k=!0)}function g(){k&&(V.onerror=j,k=!1,j=void 0)}function h(){var a=o,b=m;m=null,o=null,n=null,d.apply(null,[a,!1].concat(b))}function i(a,b){var c=W.call(arguments,1);if(o){if(n===a)return;h()}var d=U.computeStackTrace(a);if(o=d,n=a,m=c,setTimeout(function(){n===a&&h()},d.incomplete?2e3:0),b!==!1)throw a}var j,k,l=[],m=null,n=null,o=null;return i.subscribe=a,i.unsubscribe=b,i.uninstall=c,i}(),U.computeStackTrace=function(){function a(a){if("undefined"!=typeof a.stack&&a.stack){for(var b,c,d,e=/^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|webpack||[a-z]:|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,f=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,g=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx(?:-web)|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,h=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,i=/\((\S*)(?::(\d+))(?::(\d+))\)/,j=a.stack.split("\n"),k=[],l=(/^(.*) is undefined$/.exec(a.message),0),m=j.length;l eval")>-1;o&&(b=h.exec(c[3]))?(c[3]=b[1],c[4]=b[2],c[5]=null):0!==l||c[5]||"undefined"==typeof a.columnNumber||(k[0].column=a.columnNumber+1),d={url:c[3],func:c[1]||X,args:c[2]?c[2].split(","):[],line:c[4]?+c[4]:null,column:c[5]?+c[5]:null}}!d.func&&d.line&&(d.func=X),k.push(d)}return k.length?{name:a.name,message:a.message,url:F(),stack:k}:null}}function b(a,b,c,d){var e={url:b,line:c};if(e.url&&e.line){if(a.incomplete=!1,e.func||(e.func=X),a.stack.length>0&&a.stack[0].url===e.url){if(a.stack[0].line===e.line)return!1;if(!a.stack[0].line&&a.stack[0].func===e.func)return a.stack[0].line=e.line,!1}return a.stack.unshift(e),a.partial=!0,!0}return a.incomplete=!0,!1}function c(a,e){for(var f,g,h=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,i=[],j={},k=!1,l=c.caller;l&&!k;l=l.caller)if(l!==d&&l!==U.report){if(g={url:null,func:X,line:null,column:null},l.name?g.func=l.name:(f=h.exec(l.toString()))&&(g.func=f[1]),"undefined"==typeof g.func)try{g.func=f.input.substring(0,f.input.indexOf("{"))}catch(m){}j[""+l]?k=!0:j[""+l]=!0,i.push(g)}e&&i.splice(0,e);var n={name:a.name,message:a.message,url:F(),stack:i};return b(n,a.sourceURL||a.fileName,a.line||a.lineNumber,a.message||a.description),n}function d(b,d){var e=null;d=null==d?0:+d;try{if(e=a(b))return e}catch(f){if(U.debug)throw f}try{if(e=c(b,d+1))return e}catch(f){if(U.debug)throw f}return{name:b.name,message:b.message,url:F()}}return d.augmentStackTraceWithInitialElement=b,d.computeStackTraceFromStackProp=a,d}();var Z=U,$=a(function(a,b){function c(a,b){for(var c=0;c0){var i=c(d,this);~i?d.splice(i+1):d.push(this),~i?f.splice(i,1/0,g):f.push(g),~c(d,h)&&(h=b.call(this,g,h))}else d.push(h);return null==a?h instanceof Error?e(h):h:a.call(this,g,h)}}b=a.exports=d,b.getSerialize=f});G.prototype=new Error,G.prototype.constructor=G;var _=G,aa=function(a,b,c){var d=a[b],e=a;if(b in a){var f="warn"===b?"warning":b;a[b]=function(){var a=[].slice.call(arguments),g=T.safeJoin(a," "),h={level:f,logger:"console",extra:{arguments:a}};"assert"===b?a[0]===!1&&(g="Assertion failed: "+(T.safeJoin(a.slice(1)," ")||"console.assert"),h.extra.arguments=a.slice(1),c&&c(g,h)):c&&c(g,h),d&&Function.prototype.apply.call(d,e,a)}}},ba={wrapMethod:aa},ca=T.isError,da=T.isObject,ea=T.isErrorEvent,fa=T.isUndefined,ga=T.isFunction,ha=T.isString,ia=T.isArray,ja=T.isEmptyObject,ka=T.each,la=T.objectMerge,ma=T.truncate,na=T.objectFrozen,oa=T.hasKey,pa=T.joinRegExp,qa=T.urlencode,ra=T.uuid4,sa=T.htmlTreeAsString,ta=T.isSameException,ua=T.isSameStacktrace,va=T.parseUrl,wa=T.fill,xa=T.supportsFetch,ya=ba.wrapMethod,za="source protocol user pass host port path".split(" "),Aa=/^(?:(\w+):)?\/\/(?:(\w+)(:\w+)?@)?([\w\.-]+)(?::(\d+))?(\/.*)/,Ba="undefined"!=typeof window?window:"undefined"!=typeof Q?Q:"undefined"!=typeof self?self:{},Ca=Ba.document,Da=Ba.navigator;J.prototype={VERSION:"3.22.2",debug:!1,TraceKit:Z,config:function(a,b){var c=this;if(c.i)return this.D("error","Error: Raven has already been configured"),c;if(!a)return c;var d=c.m;b&&ka(b,function(a,b){"tags"===a||"extra"===a||"user"===a?c.l[a]=b:d[a]=b}),c.setDSN(a),d.ignoreErrors.push(/^Script error\.?$/),d.ignoreErrors.push(/^Javascript error: Script error\.? on line 0$/),d.ignoreErrors=pa(d.ignoreErrors),d.ignoreUrls=!!d.ignoreUrls.length&&pa(d.ignoreUrls),d.whitelistUrls=!!d.whitelistUrls.length&&pa(d.whitelistUrls),d.includePaths=pa(d.includePaths),d.maxBreadcrumbs=Math.max(0,Math.min(d.maxBreadcrumbs||100,100));var e={xhr:!0,console:!0,dom:!0,location:!0,sentry:!0},f=d.autoBreadcrumbs;"[object Object]"==={}.toString.call(f)?f=la(e,f):f!==!1&&(f=e),d.autoBreadcrumbs=f;var g={tryCatch:!0},h=d.instrument;return"[object Object]"==={}.toString.call(h)?h=la(g,h):h!==!1&&(h=g),d.instrument=h,Z.collectWindowErrors=!!d.collectWindowErrors,c},install:function(){var a=this;return a.isSetup()&&!a.p&&(Z.report.subscribe(function(){a.E.apply(a,arguments)}),a.F(),a.m.instrument&&a.m.instrument.tryCatch&&a.G(),a.m.autoBreadcrumbs&&a.H(),a.I(),a.p=!0),Error.stackTraceLimit=a.m.stackTraceLimit,this},setDSN:function(a){var b=this,c=b.J(a),d=c.path.lastIndexOf("/"),e=c.path.substr(1,d);b.K=a,b.j=c.user,b.L=c.pass&&c.pass.substr(1),b.k=c.path.substr(d+1),b.i=b.M(c),b.N=b.i+"/"+e+"api/"+b.k+"/store/",this.A()},context:function(a,b,c){return ga(a)&&(c=b||[],b=a,a=void 0),this.wrap(a,b).apply(this,c)},wrap:function(a,b,c){function d(){var d=[],f=arguments.length,g=!a||a&&a.deep!==!1;for(c&&ga(c)&&c.apply(this,arguments);f--;)d[f]=g?e.wrap(a,arguments[f]):arguments[f];try{return b.apply(this,d)}catch(h){throw e.O(),e.captureException(h,a),h}}var e=this;if(fa(b)&&!ga(a))return a;if(ga(a)&&(b=a,a=void 0),!ga(b))return b;try{if(b.a)return b;if(b.P)return b.P}catch(f){return b}for(var g in b)oa(b,g)&&(d[g]=b[g]);return d.prototype=b.prototype,b.P=d,d.a=!0,d.b=b,d},uninstall:function(){return Z.report.uninstall(),this.Q(),this.R(),this.S(),Error.stackTraceLimit=this.q,this.p=!1,this},captureException:function(a,b){b=la({trimHeadFrames:0},b?b:{});var c=!ca(a),d=!ea(a),e=ea(a)&&!a.error;if(c&&d||e)return this.captureMessage(a,la(b,{stacktrace:!0,trimHeadFrames:b.trimHeadFrames+1}));ea(a)&&(a=a.error),this.f=a;try{var f=Z.computeStackTrace(a);this.T(f,b)}catch(g){if(a!==g)throw g}return this},captureMessage:function(a,b){if(!this.m.ignoreErrors.test||!this.m.ignoreErrors.test(a)){b=b||{};var c,d=la({message:a+""},b);try{throw new Error(a)}catch(e){c=e}c.name=null;var f=Z.computeStackTrace(c),g=ia(f.stack)&&f.stack[1],h=g&&g.url||"";if((!this.m.ignoreUrls.test||!this.m.ignoreUrls.test(h))&&(!this.m.whitelistUrls.test||this.m.whitelistUrls.test(h))){if(this.m.stacktrace||b&&b.stacktrace){b=la({fingerprint:a,trimHeadFrames:(b.trimHeadFrames||0)+1},b);var i=this.U(f,b);d.stacktrace={frames:i.reverse()}}return this.V(d),this}}},captureBreadcrumb:function(a){var b=la({timestamp:H()/1e3},a);if(ga(this.m.breadcrumbCallback)){var c=this.m.breadcrumbCallback(b);if(da(c)&&!ja(c))b=c;else if(c===!1)return this}return this.w.push(b),this.w.length>this.m.maxBreadcrumbs&&this.w.shift(),this},addPlugin:function(a){var b=[].slice.call(arguments,1);return this.t.push([a,b]),this.p&&this.I(),this},setUserContext:function(a){return this.l.user=a,this},setExtraContext:function(a){return this.W("extra",a),this},setTagsContext:function(a){return this.W("tags",a),this},clearContext:function(){return this.l={},this},getContext:function(){return JSON.parse($(this.l))},setEnvironment:function(a){return this.m.environment=a,this},setRelease:function(a){return this.m.release=a,this},setDataCallback:function(a){var b=this.m.dataCallback;return this.m.dataCallback=I(b,a),this},setBreadcrumbCallback:function(a){var b=this.m.breadcrumbCallback;return this.m.breadcrumbCallback=I(b,a),this},setShouldSendCallback:function(a){var b=this.m.shouldSendCallback;return this.m.shouldSendCallback=I(b,a),this},setTransport:function(a){return this.m.transport=a,this},lastException:function(){return this.f},lastEventId:function(){return this.h},isSetup:function(){return!!this.c&&(!!this.i||(this.ravenNotConfiguredError||(this.ravenNotConfiguredError=!0,this.D("error","Error: Raven has not been configured.")),!1))},afterLoad:function(){var a=Ba.RavenConfig;a&&this.config(a.dsn,a.config).install()},showReportDialog:function(a){if(Ca){a=a||{};var b=a.eventId||this.lastEventId();if(!b)throw new _("Missing eventId");var c=a.dsn||this.K;if(!c)throw new _("Missing DSN");var d=encodeURIComponent,e="";e+="?eventId="+d(b),e+="&dsn="+d(c);var f=a.user||this.l.user;f&&(f.name&&(e+="&name="+d(f.name)),f.email&&(e+="&email="+d(f.email)));var g=this.M(this.J(c)),h=Ca.createElement("script");h.async=!0,h.src=g+"/api/embed/error-page/"+e,(Ca.head||Ca.body).appendChild(h)}},O:function(){var a=this;this.o+=1,setTimeout(function(){a.o-=1})},X:function(a,b){var c,d;if(this.d){b=b||{},a="raven"+a.substr(0,1).toUpperCase()+a.substr(1),Ca.createEvent?(c=Ca.createEvent("HTMLEvents"),c.initEvent(a,!0,!0)):(c=Ca.createEventObject(),c.eventType=a);for(d in b)oa(b,d)&&(c[d]=b[d]);if(Ca.createEvent)Ca.dispatchEvent(c);else try{Ca.fireEvent("on"+c.eventType.toLowerCase(),c)}catch(e){}}},Y:function(a){var b=this;return function(c){if(b.Z=null,b.x!==c){b.x=c;var d;try{d=sa(c.target)}catch(e){d=""}b.captureBreadcrumb({category:"ui."+a,message:d})}}},$:function(){var a=this,b=1e3;return function(c){var d;try{d=c.target}catch(e){return}var f=d&&d.tagName;if(f&&("INPUT"===f||"TEXTAREA"===f||d.isContentEditable)){var g=a.Z;g||a.Y("input")(c),clearTimeout(g),a.Z=setTimeout(function(){a.Z=null},b)}}},_:function(a,b){var c=va(this.y.href),d=va(b),e=va(a);this.z=b,c.protocol===d.protocol&&c.host===d.host&&(b=d.relative),c.protocol===e.protocol&&c.host===e.host&&(a=e.relative),this.captureBreadcrumb({category:"navigation",data:{to:b,from:a}})},F:function(){var a=this;a.aa=Function.prototype.toString,Function.prototype.toString=function(){return"function"==typeof this&&this.a?a.aa.apply(this.b,arguments):a.aa.apply(this,arguments)}},Q:function(){this.aa&&(Function.prototype.toString=this.aa)},G:function(){function a(a){return function(b,d){for(var e=new Array(arguments.length),f=0;f2?arguments[2]:void 0;return c&&b._(b.z,c+""),a.apply(this,arguments)}};wa(history,"pushState",j,d),wa(history,"replaceState",j,d)}if(c.console&&"console"in Ba&&console.log){var k=function(a,c){b.captureBreadcrumb({message:a,level:c.level,category:"console"})};ka(["debug","info","warn","error","log"],function(a,b){ya(console,b,k)})}},R:function(){for(var a;this.v.length;){a=this.v.shift();var b=a[0],c=a[1],d=a[2];b[c]=d}},S:function(){for(var a in this.s)this.r[a]=this.s[a]},I:function(){var a=this;ka(this.t,function(b,c){var d=c[0],e=c[1];d.apply(a,[a].concat(e))})},J:function(a){var b=Aa.exec(a),c={},d=7;try{for(;d--;)c[za[d]]=b[d]||""}catch(e){throw new _("Invalid DSN: "+a)}if(c.pass&&!this.m.allowSecretKey)throw new _("Do not specify your secret key in the DSN. See: http://bit.ly/raven-secret-key");return c},M:function(a){var b="//"+a.host+(a.port?":"+a.port:"");return a.protocol&&(b=a.protocol+":"+b),b},E:function(){this.o||this.T.apply(this,arguments)},T:function(a,b){var c=this.U(a,b);this.X("handle",{stackInfo:a,options:b}),this.ca(a.name,a.message,a.url,a.lineno,c,b)},U:function(a,b){var c=this,d=[];if(a.stack&&a.stack.length&&(ka(a.stack,function(b,e){var f=c.da(e,a.url);f&&d.push(f)}),b&&b.trimHeadFrames))for(var e=0;e0&&(a.breadcrumbs={values:[].slice.call(this.w,0)}),this.l.user&&(a.user=this.l.user),b.environment&&(a.environment=b.environment),b.release&&(a.release=b.release),b.serverName&&(a.server_name=b.serverName),Object.keys(a).forEach(function(b){(null==a[b]||""===a[b]||ja(a[b]))&&delete a[b]}),ga(b.dataCallback)&&(a=b.dataCallback(a)||a),a&&!ja(a)&&(!ga(b.shouldSendCallback)||b.shouldSendCallback(a)))return this.ja()?void this.D("warn","Raven dropped error due to backoff: ",a):void("number"==typeof b.sampleRate?Math.random()