ESP32_ChinaDieselHeater_Con.../Documentation/Detailed Control Menu · Wiki · Ray Jones _ BluetoothHeater · GitLab_files/raven.js
2019-07-11 18:55:31 +10:00

2 lines
No EOL
32 KiB
JavaScript

(this.webpackJsonp=this.webpackJsonp||[]).push([[25],{1047:function(t,e,r){(function(e){var n=r(1048),a=r(1049),i=r(1050),o=r(856),s=o.isError,l=o.isObject,c=o.isErrorEvent,u=o.isUndefined,h=o.isFunction,p=o.isString,f=o.isArray,d=o.isEmptyObject,g=o.each,_=o.objectMerge,v=o.truncate,m=o.objectFrozen,b=o.hasKey,y=o.joinRegExp,E=o.urlencode,x=o.uuid4,S=o.htmlTreeAsString,k=o.isSameException,w=o.isSameStacktrace,O=o.parseUrl,R=o.fill,C=o.supportsFetch,T=r(1051).wrapMethod,j="source protocol user pass host port path".split(" "),U=/^(?:(\w+):)?\/\/(?:(\w+)(:\w+)?@)?([\w\.-]+)(?::(\d+))?(\/.*)/;function I(){return+new Date}var D="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},F=D.document,N=D.navigator;function B(t,e){return h(e)?function(r){return e(r,t)}:e}function L(){for(var t in this._hasJSON=!("object"!=typeof JSON||!JSON.stringify),this._hasDocument=!u(F),this._hasNavigator=!u(N),this._lastCapturedException=null,this._lastData=null,this._lastEventId=null,this._globalServer=null,this._globalKey=null,this._globalProject=null,this._globalContext={},this._globalOptions={release:D.SENTRY_RELEASE&&D.SENTRY_RELEASE.id,logger:"javascript",ignoreErrors:[],ignoreUrls:[],whitelistUrls:[],includePaths:[],headers:null,collectWindowErrors:!0,maxMessageLength:0,maxUrlLength:250,stackTraceLimit:50,autoBreadcrumbs:!0,instrument:!0,sampleRate:1},this._fetchDefaults={method:"POST",keepalive:!0,referrerPolicy:"origin"},this._ignoreOnError=0,this._isRavenInstalled=!1,this._originalErrorStackTraceLimit=Error.stackTraceLimit,this._originalConsole=D.console||{},this._originalConsoleMethods={},this._plugins=[],this._startTime=I(),this._wrappedBuiltIns=[],this._breadcrumbs=[],this._lastCapturedEvent=null,this._keypressTimeout,this._location=D.location,this._lastHref=this._location&&this._location.href,this._resetBackoff(),this._originalConsole)this._originalConsoleMethods[t]=this._originalConsole[t]}L.prototype={VERSION:"3.22.1",debug:!1,TraceKit:n,config:function(t,e){var r=this;if(r._globalServer)return this._logDebug("error","Error: Raven has already been configured"),r;if(!t)return r;var a=r._globalOptions;e&&g(e,function(t,e){"tags"===t||"extra"===t||"user"===t?r._globalContext[t]=e:a[t]=e}),r.setDSN(t),a.ignoreErrors.push(/^Script error\.?$/),a.ignoreErrors.push(/^Javascript error: Script error\.? on line 0$/),a.ignoreErrors=y(a.ignoreErrors),a.ignoreUrls=!!a.ignoreUrls.length&&y(a.ignoreUrls),a.whitelistUrls=!!a.whitelistUrls.length&&y(a.whitelistUrls),a.includePaths=y(a.includePaths),a.maxBreadcrumbs=Math.max(0,Math.min(a.maxBreadcrumbs||100,100));var i={xhr:!0,console:!0,dom:!0,location:!0,sentry:!0},o=a.autoBreadcrumbs;"[object Object]"==={}.toString.call(o)?o=_(i,o):!1!==o&&(o=i),a.autoBreadcrumbs=o;var s={tryCatch:!0},l=a.instrument;return"[object Object]"==={}.toString.call(l)?l=_(s,l):!1!==l&&(l=s),a.instrument=l,n.collectWindowErrors=!!a.collectWindowErrors,r},install:function(){var t=this;return t.isSetup()&&!t._isRavenInstalled&&(n.report.subscribe(function(){t._handleOnErrorStackInfo.apply(t,arguments)}),t._patchFunctionToString(),t._globalOptions.instrument&&t._globalOptions.instrument.tryCatch&&t._instrumentTryCatch(),t._globalOptions.autoBreadcrumbs&&t._instrumentBreadcrumbs(),t._drainPlugins(),t._isRavenInstalled=!0),Error.stackTraceLimit=t._globalOptions.stackTraceLimit,this},setDSN:function(t){var e=this._parseDSN(t),r=e.path.lastIndexOf("/"),n=e.path.substr(1,r);this._dsn=t,this._globalKey=e.user,this._globalSecret=e.pass&&e.pass.substr(1),this._globalProject=e.path.substr(r+1),this._globalServer=this._getGlobalServer(e),this._globalEndpoint=this._globalServer+"/"+n+"api/"+this._globalProject+"/store/",this._resetBackoff()},context:function(t,e,r){return h(t)&&(r=e||[],e=t,t=void 0),this.wrap(t,e).apply(this,r)},wrap:function(t,e,r){var n=this;if(u(e)&&!h(t))return t;if(h(t)&&(e=t,t=void 0),!h(e))return e;try{if(e.__raven__)return e;if(e.__raven_wrapper__)return e.__raven_wrapper__}catch(t){return e}function a(){var a=[],i=arguments.length,o=!t||t&&!1!==t.deep;for(r&&h(r)&&r.apply(this,arguments);i--;)a[i]=o?n.wrap(t,arguments[i]):arguments[i];try{return e.apply(this,a)}catch(e){throw n._ignoreNextOnError(),n.captureException(e,t),e}}for(var i in e)b(e,i)&&(a[i]=e[i]);return a.prototype=e.prototype,e.__raven_wrapper__=a,a.__raven__=!0,a.__orig__=e,a},uninstall:function(){return n.report.uninstall(),this._unpatchFunctionToString(),this._restoreBuiltIns(),Error.stackTraceLimit=this._originalErrorStackTraceLimit,this._isRavenInstalled=!1,this},captureException:function(t,e){var r=!s(t),a=!c(t),i=c(t)&&!t.error;if(r&&a||i)return this.captureMessage(t,_({trimHeadFrames:1,stacktrace:!0},e));c(t)&&(t=t.error),this._lastCapturedException=t;try{var o=n.computeStackTrace(t);this._handleStackInfo(o,e)}catch(e){if(t!==e)throw e}return this},captureMessage:function(t,e){if(!this._globalOptions.ignoreErrors.test||!this._globalOptions.ignoreErrors.test(t)){var r,a=_({message:t+""},e=e||{});try{throw new Error(t)}catch(t){r=t}r.name=null;var i=n.computeStackTrace(r),o=f(i.stack)&&i.stack[1],s=o&&o.url||"";if((!this._globalOptions.ignoreUrls.test||!this._globalOptions.ignoreUrls.test(s))&&(!this._globalOptions.whitelistUrls.test||this._globalOptions.whitelistUrls.test(s))){if(this._globalOptions.stacktrace||e&&e.stacktrace){e=_({fingerprint:t,trimHeadFrames:(e.trimHeadFrames||0)+1},e);var l=this._prepareFrames(i,e);a.stacktrace={frames:l.reverse()}}return this._send(a),this}}},captureBreadcrumb:function(t){var e=_({timestamp:I()/1e3},t);if(h(this._globalOptions.breadcrumbCallback)){var r=this._globalOptions.breadcrumbCallback(e);if(l(r)&&!d(r))e=r;else if(!1===r)return this}return this._breadcrumbs.push(e),this._breadcrumbs.length>this._globalOptions.maxBreadcrumbs&&this._breadcrumbs.shift(),this},addPlugin:function(t){var e=[].slice.call(arguments,1);return this._plugins.push([t,e]),this._isRavenInstalled&&this._drainPlugins(),this},setUserContext:function(t){return this._globalContext.user=t,this},setExtraContext:function(t){return this._mergeContext("extra",t),this},setTagsContext:function(t){return this._mergeContext("tags",t),this},clearContext:function(){return this._globalContext={},this},getContext:function(){return JSON.parse(a(this._globalContext))},setEnvironment:function(t){return this._globalOptions.environment=t,this},setRelease:function(t){return this._globalOptions.release=t,this},setDataCallback:function(t){var e=this._globalOptions.dataCallback;return this._globalOptions.dataCallback=B(e,t),this},setBreadcrumbCallback:function(t){var e=this._globalOptions.breadcrumbCallback;return this._globalOptions.breadcrumbCallback=B(e,t),this},setShouldSendCallback:function(t){var e=this._globalOptions.shouldSendCallback;return this._globalOptions.shouldSendCallback=B(e,t),this},setTransport:function(t){return this._globalOptions.transport=t,this},lastException:function(){return this._lastCapturedException},lastEventId:function(){return this._lastEventId},isSetup:function(){return!!this._hasJSON&&(!!this._globalServer||(this.ravenNotConfiguredError||(this.ravenNotConfiguredError=!0,this._logDebug("error","Error: Raven has not been configured.")),!1))},afterLoad:function(){var t=D.RavenConfig;t&&this.config(t.dsn,t.config).install()},showReportDialog:function(t){if(F){var e=(t=t||{}).eventId||this.lastEventId();if(!e)throw new i("Missing eventId");var r=t.dsn||this._dsn;if(!r)throw new i("Missing DSN");var n=encodeURIComponent,a="";a+="?eventId="+n(e),a+="&dsn="+n(r);var o=t.user||this._globalContext.user;o&&(o.name&&(a+="&name="+n(o.name)),o.email&&(a+="&email="+n(o.email)));var s=this._getGlobalServer(this._parseDSN(r)),l=F.createElement("script");l.async=!0,l.src=s+"/api/embed/error-page/"+a,(F.head||F.body).appendChild(l)}},_ignoreNextOnError:function(){var t=this;this._ignoreOnError+=1,setTimeout(function(){t._ignoreOnError-=1})},_triggerEvent:function(t,e){var r,n;if(this._hasDocument){for(n in e=e||{},t="raven"+t.substr(0,1).toUpperCase()+t.substr(1),F.createEvent?(r=F.createEvent("HTMLEvents")).initEvent(t,!0,!0):(r=F.createEventObject()).eventType=t,e)b(e,n)&&(r[n]=e[n]);if(F.createEvent)F.dispatchEvent(r);else try{F.fireEvent("on"+r.eventType.toLowerCase(),r)}catch(t){}}},_breadcrumbEventHandler:function(t){var e=this;return function(r){if(e._keypressTimeout=null,e._lastCapturedEvent!==r){var n;e._lastCapturedEvent=r;try{n=S(r.target)}catch(t){n="<unknown>"}e.captureBreadcrumb({category:"ui."+t,message:n})}}},_keypressEventHandler:function(){var t=this;return function(e){var r;try{r=e.target}catch(t){return}var n=r&&r.tagName;if(n&&("INPUT"===n||"TEXTAREA"===n||r.isContentEditable)){var a=t._keypressTimeout;a||t._breadcrumbEventHandler("input")(e),clearTimeout(a),t._keypressTimeout=setTimeout(function(){t._keypressTimeout=null},1e3)}}},_captureUrlChange:function(t,e){var r=O(this._location.href),n=O(e),a=O(t);this._lastHref=e,r.protocol===n.protocol&&r.host===n.host&&(e=n.relative),r.protocol===a.protocol&&r.host===a.host&&(t=a.relative),this.captureBreadcrumb({category:"navigation",data:{to:e,from:t}})},_patchFunctionToString:function(){var t=this;t._originalFunctionToString=Function.prototype.toString,Function.prototype.toString=function(){return"function"==typeof this&&this.__raven__?t._originalFunctionToString.apply(this.__orig__,arguments):t._originalFunctionToString.apply(this,arguments)}},_unpatchFunctionToString:function(){this._originalFunctionToString&&(Function.prototype.toString=this._originalFunctionToString)},_instrumentTryCatch:function(){var t=this,e=t._wrappedBuiltIns;function r(e){return function(r,n){for(var a=new Array(arguments.length),i=0;i<a.length;++i)a[i]=arguments[i];var o=a[0];return h(o)&&(a[0]=t.wrap(o)),e.apply?e.apply(this,a):e(a[0],a[1])}}var n=this._globalOptions.autoBreadcrumbs;function a(r){var a=D[r]&&D[r].prototype;a&&a.hasOwnProperty&&a.hasOwnProperty("addEventListener")&&(R(a,"addEventListener",function(e){return function(a,i,o,s){try{i&&i.handleEvent&&(i.handleEvent=t.wrap(i.handleEvent))}catch(t){}var l,c,u;return n&&n.dom&&("EventTarget"===r||"Node"===r)&&(c=t._breadcrumbEventHandler("click"),u=t._keypressEventHandler(),l=function(t){if(t){var e;try{e=t.type}catch(t){return}return"click"===e?c(t):"keypress"===e?u(t):void 0}}),e.call(this,a,t.wrap(i,void 0,l),o,s)}},e),R(a,"removeEventListener",function(t){return function(e,r,n,a){try{r=r&&(r.__raven_wrapper__?r.__raven_wrapper__:r)}catch(t){}return t.call(this,e,r,n,a)}},e))}R(D,"setTimeout",r,e),R(D,"setInterval",r,e),D.requestAnimationFrame&&R(D,"requestAnimationFrame",function(e){return function(r){return e(t.wrap(r))}},e);for(var i=["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"],o=0;o<i.length;o++)a(i[o])},_instrumentBreadcrumbs:function(){var t=this,e=this._globalOptions.autoBreadcrumbs,r=t._wrappedBuiltIns;function n(e,r){e in r&&h(r[e])&&R(r,e,function(e){return t.wrap(e)})}if(e.xhr&&"XMLHttpRequest"in D){var a=XMLHttpRequest.prototype;R(a,"open",function(e){return function(r,n){return p(n)&&-1===n.indexOf(t._globalKey)&&(this.__raven_xhr={method:r,url:n,status_code:null}),e.apply(this,arguments)}},r),R(a,"send",function(e){return function(){var r=this;function a(){if(r.__raven_xhr&&4===r.readyState){try{r.__raven_xhr.status_code=r.status}catch(t){}t.captureBreadcrumb({type:"http",category:"xhr",data:r.__raven_xhr})}}for(var i=["onload","onerror","onprogress"],o=0;o<i.length;o++)n(i[o],r);return"onreadystatechange"in r&&h(r.onreadystatechange)?R(r,"onreadystatechange",function(e){return t.wrap(e,void 0,a)}):r.onreadystatechange=a,e.apply(this,arguments)}},r)}e.xhr&&C()&&R(D,"fetch",function(e){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;++n)r[n]=arguments[n];var a,i=r[0],o="GET";if("string"==typeof i?a=i:"Request"in D&&i instanceof D.Request?(a=i.url,i.method&&(o=i.method)):a=""+i,-1!==a.indexOf(t._globalKey))return e.apply(this,r);r[1]&&r[1].method&&(o=r[1].method);var s={method:o,url:a,status_code:null};return e.apply(this,r).then(function(e){return s.status_code=e.status,t.captureBreadcrumb({type:"http",category:"fetch",data:s}),e})}},r),e.dom&&this._hasDocument&&(F.addEventListener?(F.addEventListener("click",t._breadcrumbEventHandler("click"),!1),F.addEventListener("keypress",t._keypressEventHandler(),!1)):(F.attachEvent("onclick",t._breadcrumbEventHandler("click")),F.attachEvent("onkeypress",t._keypressEventHandler())));var i=D.chrome,o=!(i&&i.app&&i.app.runtime)&&D.history&&history.pushState&&history.replaceState;if(e.location&&o){var s=D.onpopstate;D.onpopstate=function(){var e=t._location.href;if(t._captureUrlChange(t._lastHref,e),s)return s.apply(this,arguments)};var l=function(e){return function(){var r=arguments.length>2?arguments[2]:void 0;return r&&t._captureUrlChange(t._lastHref,r+""),e.apply(this,arguments)}};R(history,"pushState",l,r),R(history,"replaceState",l,r)}if(e.console&&"console"in D&&console.log){var c=function(e,r){t.captureBreadcrumb({message:e,level:r.level,category:"console"})};g(["debug","info","warn","error","log"],function(t,e){T(console,e,c)})}},_restoreBuiltIns:function(){for(var t;this._wrappedBuiltIns.length;){var e=(t=this._wrappedBuiltIns.shift())[0],r=t[1],n=t[2];e[r]=n}},_drainPlugins:function(){var t=this;g(this._plugins,function(e,r){var n=r[0],a=r[1];n.apply(t,[t].concat(a))})},_parseDSN:function(t){var e=U.exec(t),r={},n=7;try{for(;n--;)r[j[n]]=e[n]||""}catch(e){throw new i("Invalid DSN: "+t)}if(r.pass&&!this._globalOptions.allowSecretKey)throw new i("Do not specify your secret key in the DSN. See: http://bit.ly/raven-secret-key");return r},_getGlobalServer:function(t){var e="//"+t.host+(t.port?":"+t.port:"");return t.protocol&&(e=t.protocol+":"+e),e},_handleOnErrorStackInfo:function(){this._ignoreOnError||this._handleStackInfo.apply(this,arguments)},_handleStackInfo:function(t,e){var r=this._prepareFrames(t,e);this._triggerEvent("handle",{stackInfo:t,options:e}),this._processException(t.name,t.message,t.url,t.lineno,r,e)},_prepareFrames:function(t,e){var r=this,n=[];if(t.stack&&t.stack.length&&(g(t.stack,function(e,a){var i=r._normalizeFrame(a,t.url);i&&n.push(i)}),e&&e.trimHeadFrames))for(var a=0;a<e.trimHeadFrames&&a<n.length;a++)n[a].in_app=!1;return n=n.slice(0,this._globalOptions.stackTraceLimit)},_normalizeFrame:function(t,e){var r={filename:t.url,lineno:t.line,colno:t.column,function:t.func||"?"};return t.url||(r.filename=e),r.in_app=!(this._globalOptions.includePaths.test&&!this._globalOptions.includePaths.test(r.filename)||/(Raven|TraceKit)\./.test(r.function)||/raven\.(min\.)?js$/.test(r.filename)),r},_processException:function(t,e,r,n,a,i){var o,s=(t?t+": ":"")+(e||"");if((!this._globalOptions.ignoreErrors.test||!this._globalOptions.ignoreErrors.test(e)&&!this._globalOptions.ignoreErrors.test(s))&&(a&&a.length?(r=a[0].filename||r,a.reverse(),o={frames:a}):r&&(o={frames:[{filename:r,lineno:n,in_app:!0}]}),(!this._globalOptions.ignoreUrls.test||!this._globalOptions.ignoreUrls.test(r))&&(!this._globalOptions.whitelistUrls.test||this._globalOptions.whitelistUrls.test(r)))){var l=_({exception:{values:[{type:t,value:e,stacktrace:o}]},culprit:r},i);this._send(l)}},_trimPacket:function(t){var e=this._globalOptions.maxMessageLength;if(t.message&&(t.message=v(t.message,e)),t.exception){var r=t.exception.values[0];r.value=v(r.value,e)}var n=t.request;return n&&(n.url&&(n.url=v(n.url,this._globalOptions.maxUrlLength)),n.Referer&&(n.Referer=v(n.Referer,this._globalOptions.maxUrlLength))),t.breadcrumbs&&t.breadcrumbs.values&&this._trimBreadcrumbs(t.breadcrumbs),t},_trimBreadcrumbs:function(t){for(var e,r,n,a=["to","from","url"],i=0;i<t.values.length;++i)if((r=t.values[i]).hasOwnProperty("data")&&l(r.data)&&!m(r.data)){n=_({},r.data);for(var o=0;o<a.length;++o)e=a[o],n.hasOwnProperty(e)&&n[e]&&(n[e]=v(n[e],this._globalOptions.maxUrlLength));t.values[i].data=n}},_getHttpData:function(){if(this._hasNavigator||this._hasDocument){var t={};return this._hasNavigator&&N.userAgent&&(t.headers={"User-Agent":navigator.userAgent}),D.location&&D.location.href&&(t.url=D.location.href),this._hasDocument&&F.referrer&&(t.headers||(t.headers={}),t.headers.Referer=F.referrer),t}},_resetBackoff:function(){this._backoffDuration=0,this._backoffStart=null},_shouldBackoff:function(){return this._backoffDuration&&I()-this._backoffStart<this._backoffDuration},_isRepeatData:function(t){var e=this._lastData;return!(!e||t.message!==e.message||t.culprit!==e.culprit)&&(t.stacktrace||e.stacktrace?w(t.stacktrace,e.stacktrace):!t.exception&&!e.exception||k(t.exception,e.exception))},_setBackoffState:function(t){if(!this._shouldBackoff()){var e=t.status;if(400===e||401===e||429===e){var r;try{r=C()?t.headers.get("Retry-After"):t.getResponseHeader("Retry-After"),r=1e3*parseInt(r,10)}catch(t){}this._backoffDuration=r||(2*this._backoffDuration||1e3),this._backoffStart=I()}}},_send:function(t){var e=this._globalOptions,r={project:this._globalProject,logger:e.logger,platform:"javascript"},n=this._getHttpData();n&&(r.request=n),t.trimHeadFrames&&delete t.trimHeadFrames,(t=_(r,t)).tags=_(_({},this._globalContext.tags),t.tags),t.extra=_(_({},this._globalContext.extra),t.extra),t.extra["session:duration"]=I()-this._startTime,this._breadcrumbs&&this._breadcrumbs.length>0&&(t.breadcrumbs={values:[].slice.call(this._breadcrumbs,0)}),this._globalContext.user&&(t.user=this._globalContext.user),e.environment&&(t.environment=e.environment),e.release&&(t.release=e.release),e.serverName&&(t.server_name=e.serverName),Object.keys(t).forEach(function(e){(null==t[e]||""===t[e]||d(t[e]))&&delete t[e]}),h(e.dataCallback)&&(t=e.dataCallback(t)||t),t&&!d(t)&&(h(e.shouldSendCallback)&&!e.shouldSendCallback(t)||(this._shouldBackoff()?this._logDebug("warn","Raven dropped error due to backoff: ",t):"number"==typeof e.sampleRate?Math.random()<e.sampleRate&&this._sendProcessedPayload(t):this._sendProcessedPayload(t)))},_getUuid:function(){return x()},_sendProcessedPayload:function(t,e){var r=this,n=this._globalOptions;if(this.isSetup())if(t=this._trimPacket(t),this._globalOptions.allowDuplicates||!this._isRepeatData(t)){this._lastEventId=t.event_id||(t.event_id=this._getUuid()),this._lastData=t,this._logDebug("debug","Raven about to send:",t);var a={sentry_version:"7",sentry_client:"raven-js/"+this.VERSION,sentry_key:this._globalKey};this._globalSecret&&(a.sentry_secret=this._globalSecret);var i=t.exception&&t.exception.values[0];this._globalOptions.autoBreadcrumbs&&this._globalOptions.autoBreadcrumbs.sentry&&this.captureBreadcrumb({category:"sentry",message:i?(i.type?i.type+": ":"")+i.value:t.message,event_id:t.event_id,level:t.level||"error"});var o=this._globalEndpoint;(n.transport||this._makeRequest).call(this,{url:o,auth:a,data:t,options:n,onSuccess:function(){r._resetBackoff(),r._triggerEvent("success",{data:t,src:o}),e&&e()},onError:function(n){r._logDebug("error","Raven transport failed to send: ",n),n.request&&r._setBackoffState(n.request),r._triggerEvent("failure",{data:t,src:o}),n=n||new Error("Raven send failed (no additional details provided)"),e&&e(n)}})}else this._logDebug("warn","Raven dropped repeat event: ",t)},_makeRequest:function(t){var e=t.url+"?"+E(t.auth),r=null,n={};if(t.options.headers&&(r=this._evaluateHash(t.options.headers)),t.options.fetchParameters&&(n=this._evaluateHash(t.options.fetchParameters)),C()){n.body=a(t.data);var i=_({},this._fetchDefaults),o=_(i,n);return r&&(o.headers=r),D.fetch(e,o).then(function(e){if(e.ok)t.onSuccess&&t.onSuccess();else{var r=new Error("Sentry error code: "+e.status);r.request=e,t.onError&&t.onError(r)}}).catch(function(){t.onError&&t.onError(new Error("Sentry error code: network unavailable"))})}var s=D.XMLHttpRequest&&new D.XMLHttpRequest;s&&(("withCredentials"in s||"undefined"!=typeof XDomainRequest)&&("withCredentials"in s?s.onreadystatechange=function(){if(4===s.readyState)if(200===s.status)t.onSuccess&&t.onSuccess();else if(t.onError){var e=new Error("Sentry error code: "+s.status);e.request=s,t.onError(e)}}:(s=new XDomainRequest,e=e.replace(/^https?:/,""),t.onSuccess&&(s.onload=t.onSuccess),t.onError&&(s.onerror=function(){var e=new Error("Sentry error code: XDomainRequest");e.request=s,t.onError(e)})),s.open("POST",e),r&&g(r,function(t,e){s.setRequestHeader(t,e)}),s.send(a(t.data))))},_evaluateHash:function(t){var e={};for(var r in t)if(t.hasOwnProperty(r)){var n=t[r];e[r]="function"==typeof n?n():n}return e},_logDebug:function(t){this._originalConsoleMethods[t]&&this.debug&&Function.prototype.apply.call(this._originalConsoleMethods[t],this._originalConsole,[].slice.call(arguments,1))},_mergeContext:function(t,e){u(e)?delete this._globalContext[t]:this._globalContext[t]=_(this._globalContext[t]||{},e)}},L.prototype.setUser=L.prototype.setUserContext,L.prototype.setReleaseContext=L.prototype.setRelease,t.exports=L}).call(this,r(166))},1048:function(t,e,r){(function(e){var n=r(856),a={collectWindowErrors:!0,debug:!1},i="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},o=[].slice,s="?",l=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/;function c(){return"undefined"==typeof document||null==document.location?"":document.location.href}a.report=function(){var t,e,r=[],u=null,h=null,p=null;function f(t,e){var n=null;if(!e||a.collectWindowErrors){for(var i in r)if(r.hasOwnProperty(i))try{r[i].apply(null,[t].concat(o.call(arguments,2)))}catch(t){n=t}if(n)throw n}}function d(e,r,i,o,u){var h=n.isErrorEvent(u)?u.error:u,d=n.isErrorEvent(e)?e.message:e;if(p)a.computeStackTrace.augmentStackTraceWithInitialElement(p,r,i,d),g();else if(h&&n.isError(h))f(a.computeStackTrace(h),!0);else{var _,v={url:r,line:i,column:o},m=void 0;if("[object String]"==={}.toString.call(d))(_=d.match(l))&&(m=_[1],d=_[2]);v.func=s,f({name:m,message:d,url:c(),stack:[v]},!0)}return!!t&&t.apply(this,arguments)}function g(){var t=p,e=u;u=null,p=null,h=null,f.apply(null,[t,!1].concat(e))}function _(t,e){var r=o.call(arguments,1);if(p){if(h===t)return;g()}var n=a.computeStackTrace(t);if(p=n,h=t,u=r,setTimeout(function(){h===t&&g()},n.incomplete?2e3:0),!1!==e)throw t}return _.subscribe=function(n){e||(t=i.onerror,i.onerror=d,e=!0),r.push(n)},_.unsubscribe=function(t){for(var e=r.length-1;e>=0;--e)r[e]===t&&r.splice(e,1)},_.uninstall=function(){e&&(i.onerror=t,e=!1,t=void 0),r=[]},_}(),a.computeStackTrace=function(){function t(t){if(void 0!==t.stack&&t.stack){for(var e,r,n,a=/^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|[a-z]:|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,i=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,o=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx(?:-web)|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,l=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,u=/\((\S*)(?::(\d+))(?::(\d+))\)/,h=t.stack.split("\n"),p=[],f=(/^(.*) is undefined$/.exec(t.message),0),d=h.length;f<d;++f){if(r=a.exec(h[f])){var g=r[2]&&0===r[2].indexOf("native");r[2]&&0===r[2].indexOf("eval")&&(e=u.exec(r[2]))&&(r[2]=e[1],r[3]=e[2],r[4]=e[3]),n={url:g?null:r[2],func:r[1]||s,args:g?[r[2]]:[],line:r[3]?+r[3]:null,column:r[4]?+r[4]:null}}else if(r=o.exec(h[f]))n={url:r[2],func:r[1]||s,args:[],line:+r[3],column:r[4]?+r[4]:null};else{if(!(r=i.exec(h[f])))continue;r[3]&&r[3].indexOf(" > eval")>-1&&(e=l.exec(r[3]))?(r[3]=e[1],r[4]=e[2],r[5]=null):0!==f||r[5]||void 0===t.columnNumber||(p[0].column=t.columnNumber+1),n={url:r[3],func:r[1]||s,args:r[2]?r[2].split(","):[],line:r[4]?+r[4]:null,column:r[5]?+r[5]:null}}!n.func&&n.line&&(n.func=s),p.push(n)}return p.length?{name:t.name,message:t.message,url:c(),stack:p}:null}}function e(t,e,r,n){var a={url:e,line:r};if(a.url&&a.line){if(t.incomplete=!1,a.func||(a.func=s),t.stack.length>0&&t.stack[0].url===a.url){if(t.stack[0].line===a.line)return!1;if(!t.stack[0].line&&t.stack[0].func===a.func)return t.stack[0].line=a.line,!1}return t.stack.unshift(a),t.partial=!0,!0}return t.incomplete=!0,!1}function r(t,i){for(var o,l,u=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,h=[],p={},f=!1,d=r.caller;d&&!f;d=d.caller)if(d!==n&&d!==a.report){if(l={url:null,func:s,line:null,column:null},d.name?l.func=d.name:(o=u.exec(d.toString()))&&(l.func=o[1]),void 0===l.func)try{l.func=o.input.substring(0,o.input.indexOf("{"))}catch(t){}p[""+d]?f=!0:p[""+d]=!0,h.push(l)}i&&h.splice(0,i);var g={name:t.name,message:t.message,url:c(),stack:h};return e(g,t.sourceURL||t.fileName,t.line||t.lineNumber,t.message||t.description),g}function n(e,n){var i=null;n=null==n?0:+n;try{if(i=t(e))return i}catch(t){if(a.debug)throw t}try{if(i=r(e,n+1))return i}catch(t){if(a.debug)throw t}return{name:e.name,message:e.message,url:c()}}return n.augmentStackTraceWithInitialElement=e,n.computeStackTraceFromStackProp=t,n}(),t.exports=a}).call(this,r(166))},1049:function(t,e){function r(t,e){for(var r=0;r<t.length;++r)if(t[r]===e)return r;return-1}function n(t,e){var n=[],a=[];return null==e&&(e=function(t,e){return n[0]===e?"[Circular ~]":"[Circular ~."+a.slice(0,r(n,e)).join(".")+"]"}),function(i,o){if(n.length>0){var s=r(n,this);~s?n.splice(s+1):n.push(this),~s?a.splice(s,1/0,i):a.push(i),~r(n,o)&&(o=e.call(this,i,o))}else n.push(o);return null==t?o instanceof Error?function(t){var e={stack:t.stack,message:t.message,name:t.name};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}(o):o:t.call(this,i,o)}}(t.exports=function(t,e,r,a){return JSON.stringify(t,n(e,a),r)}).getSerialize=n},1050:function(t,e){function r(t){this.name="RavenConfigError",this.message=t}r.prototype=new Error,r.prototype.constructor=r,t.exports=r},1051:function(t,e){t.exports={wrapMethod:function(t,e,r){var n=t[e],a=t;if(e in t){var i="warn"===e?"warning":e;t[e]=function(){var t=[].slice.call(arguments),o=""+t.join(" "),s={level:i,logger:"console",extra:{arguments:t}};"assert"===e?!1===t[0]&&(o="Assertion failed: "+(t.slice(1).join(" ")||"console.assert"),s.extra.arguments=t.slice(1),r&&r(o,s)):r&&r(o,s),n&&Function.prototype.apply.call(n,a,t)}}}}},1603:function(t,e,r){"use strict";r.r(e);var n=r(659),a=r.n(n),i=r(0),o=r.n(i),s={IGNORE_ERRORS:["top.GLOBALS","originalCreateNotification","canvas.contentDocument","MyApp_RemoveAllHighlights","http://tt.epicplay.com","Can't find variable: ZiteReader","jigsaw is not defined","ComboSearch is not defined","http://loading.retry.widdit.com/","atomicFindClose","fb_xd_fragment","bmi_SafeAddOnload","EBCallBackMessageReceived","conduitPage"],IGNORE_URLS:[/graph\.facebook\.com/i,/connect\.facebook\.net\/en_US\/all\.js/i,/eatdifferent\.com\.woopra-ns\.com/i,/static\.woopra\.com\/js\/woopra\.js/i,/extensions\//i,/^chrome:\/\//i,/127\.0\.0\.1:4001\/isrunning/i,/webappstoolbarba\.texthelp\.com\//i,/metrics\.itunes\.apple\.com\.edgesuite\.net\//i],SAMPLE_RATE:95,init:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.options=t,this.configure(),this.bindRavenErrors(),this.options.currentUserId&&this.setUser()},configure:function(){a.a.config(this.options.sentryDsn,{release:this.options.release,tags:this.options.tags,whitelistUrls:this.options.whitelistUrls,environment:this.options.isProduction?"production":"development",ignoreErrors:this.IGNORE_ERRORS,ignoreUrls:this.IGNORE_URLS,shouldSendCallback:this.shouldSendSample.bind(this)}).install()},setUser:function(){a.a.setUserContext({id:this.options.currentUserId})},bindRavenErrors:function(){o()(document).on("ajaxError.raven",this.handleRavenErrors)},handleRavenErrors:function(t,e,r,n){var i=n||e.statusText,o=e.responseText||"Unknown response text";a.a.captureMessage(i,{extra:{type:r.type,url:r.url,data:r.data,status:e.status,response:o,error:i,event:t}})},shouldSendSample:function(){return 100*Math.random()<=this.SAMPLE_RATE}},l=function(){return s.init({sentryDsn:gon.sentry_dsn,currentUserId:gon.current_user_id,whitelistUrls:[gon.gitlab_url],isProduction:"production",release:gon.revision,tags:{revision:gon.revision}}),s};l();e.default=l},659:function(t,e,r){(function(e){var n=r(1047),a="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},i=a.Raven,o=new n;o.noConflict=function(){return a.Raven=i,o},o.afterLoad(),t.exports=o}).call(this,r(166))},856:function(t,e,r){(function(e){var r="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};function n(t){return void 0===t}function a(t){return"[object Object]"===Object.prototype.toString.call(t)}function i(t){return"[object String]"===Object.prototype.toString.call(t)}function o(){try{return new ErrorEvent(""),!0}catch(t){return!1}}function s(t,e){var r,a;if(n(t.length))for(r in t)l(t,r)&&e.call(null,r,t[r]);else if(a=t.length)for(r=0;r<a;r++)e.call(null,r,t[r])}function l(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function c(t){var e,r,n,a,o,s=[];if(!t||!t.tagName)return"";if(s.push(t.tagName.toLowerCase()),t.id&&s.push("#"+t.id),(e=t.className)&&i(e))for(r=e.split(/\s+/),o=0;o<r.length;o++)s.push("."+r[o]);var l=["type","name","title","alt"];for(o=0;o<l.length;o++)n=l[o],(a=t.getAttribute(n))&&s.push("["+n+'="'+a+'"]');return s.join("")}function u(t,e){return!!(!!t^!!e)}function h(t,e){if(u(t,e))return!1;var r,n,a=t.frames,i=e.frames;if(a.length!==i.length)return!1;for(var o=0;o<a.length;o++)if(r=a[o],n=i[o],r.filename!==n.filename||r.lineno!==n.lineno||r.colno!==n.colno||r.function!==n.function)return!1;return!0}t.exports={isObject:function(t){return"object"==typeof t&&null!==t},isError:function(t){switch({}.toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return t instanceof Error}},isErrorEvent:function(t){return o()&&"[object ErrorEvent]"==={}.toString.call(t)},isUndefined:n,isFunction:function(t){return"function"==typeof t},isPlainObject:a,isString:i,isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},isEmptyObject:function(t){if(!a(t))return!1;for(var e in t)if(t.hasOwnProperty(e))return!1;return!0},supportsErrorEvent:o,supportsFetch:function(){if(!("fetch"in r))return!1;try{return new Headers,new Request(""),new Response,!0}catch(t){return!1}},wrappedCallback:function(t){return function(e,r){var n=t(e)||e;return r&&r(n)||n}},each:s,objectMerge:function(t,e){return e?(s(e,function(e,r){t[e]=r}),t):t},truncate:function(t,e){return!e||t.length<=e?t:t.substr(0,e)+"…"},objectFrozen:function(t){return!!Object.isFrozen&&Object.isFrozen(t)},hasKey:l,joinRegExp:function(t){for(var e,r=[],n=0,a=t.length;n<a;n++)i(e=t[n])?r.push(e.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1")):e&&e.source&&r.push(e.source);return new RegExp(r.join("|"),"i")},urlencode:function(t){var e=[];return s(t,function(t,r){e.push(encodeURIComponent(t)+"="+encodeURIComponent(r))}),e.join("&")},uuid4:function(){var t=r.crypto||r.msCrypto;if(!n(t)&&t.getRandomValues){var e=new Uint16Array(8);t.getRandomValues(e),e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;var a=function(t){for(var e=t.toString(16);e.length<4;)e="0"+e;return e};return a(e[0])+a(e[1])+a(e[2])+a(e[3])+a(e[4])+a(e[5])+a(e[6])+a(e[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)})},htmlTreeAsString:function(t){for(var e,r=[],n=0,a=0,i=" > ".length;t&&n++<5&&!("html"===(e=c(t))||n>1&&a+r.length*i+e.length>=80);)r.push(e),a+=e.length,t=t.parentNode;return r.reverse().join(" > ")},htmlElementAsString:c,isSameException:function(t,e){return!u(t,e)&&(t=t.values[0],e=e.values[0],t.type===e.type&&t.value===e.value&&(r=t.stacktrace,a=e.stacktrace,(!n(r)||!n(a))&&h(t.stacktrace,e.stacktrace)));var r,a},isSameStacktrace:h,parseUrl:function(t){if("string"!=typeof t)return{};var e=t.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/),r=e[6]||"",n=e[8]||"";return{protocol:e[2],host:e[4],path:e[5],relative:e[5]+r+n}},fill:function(t,e,r,n){var a=t[e];t[e]=r(a),t[e].__raven__=!0,t[e].__orig__=a,n&&n.push([t,e,a])}}}).call(this,r(166))}},[[1603,1,0]]]);
//# sourceMappingURL=raven.acec68fd.chunk.js.map