/*! For license information please see webapp.0733a6627b287de8a4ed.js.LICENSE.txt */ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.swh=t():(e.swh=e.swh||{},e.swh.webapp=t())}(self,(function(){return function(){var e,t,r,n,o,i,a={87757:function(e,t,r){e.exports=r(35666)},49680:function(e,t,r){"use strict";r.d(t,{R:function(){return g}});var n=r(44219),o=r(40105),i=r(95659),a=r(1984),s=r(62844),c=r(12343),u=r(47165),l=r(30292),p=r(58725),d=r(84773),f=r(86891),h=r(90564);class g extends n.W{constructor(e){e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:o.J}],version:o.J},super(e),e.sendClientReports&&f.m9.document&&f.m9.document.addEventListener("visibilitychange",(()=>{"hidden"===f.m9.document.visibilityState&&this._flushOutcomes()}))}eventFromException(e,t){return(0,d.dr)(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",r){return(0,d.aB)(this._options.stackParser,e,t,r,this._options.attachStacktrace)}sendEvent(e,t){const r=this.getIntegrationById(h.p);r&&r.options&&r.options.sentry&&(0,i.Gd)().addBreadcrumb({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:(0,s.jH)(e)},{event:e}),super.sendEvent(e,t)}_prepareEvent(e,t,r){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,r)}_flushOutcomes(){const e=this._clearOutcomes();if(0===e.length)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("No outcomes to send"));if(!this._dsn)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("No dsn provided, will not send outcomes"));("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("Sending outcomes:",e);const t=(0,a.U)(this._dsn,this._options),r=(0,u.y)(e,this._options.tunnel&&(0,l.RA)(this._dsn));try{const e="[object Navigator]"===Object.prototype.toString.call(f.m9&&f.m9.navigator);if(e&&"function"==typeof f.m9.navigator.sendBeacon&&!this._options.transportOptions){f.m9.navigator.sendBeacon.bind(f.m9.navigator)(t,(0,p.V$)(r))}else this._sendEnvelope(r)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.error(e)}}}},84773:function(e,t,r){"use strict";r.d(t,{GJ:function(){return u},ME:function(){return m},aB:function(){return g},dr:function(){return h}});var n=r(95659),o=r(67597),i=r(20535),a=r(90322),s=r(62844),c=r(96893);function u(e,t){const r=p(e,t),n={type:t&&t.name,value:f(t)};return r.length&&(n.stacktrace={frames:r}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function l(e,t){return{exception:{values:[u(e,t)]}}}function p(e,t){const r=t.stacktrace||t.stack||"",n=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(d.test(e.message))return 1}return 0}(t);try{return e(r,n)}catch(e){}return[]}const d=/Minified React error #\d+;/i;function f(e){const t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function h(e,t,r,n){const o=m(e,t,r&&r.syntheticException||void 0,n);return(0,s.EG)(o),o.level="error",r&&r.event_id&&(o.event_id=r.event_id),(0,c.WD)(o)}function g(e,t,r="info",n,o){const i=b(e,t,n&&n.syntheticException||void 0,o);return i.level=r,n&&n.event_id&&(i.event_id=n.event_id),(0,c.WD)(i)}function m(e,t,r,c,u){let d;if((0,o.VW)(t)&&t.error){return l(e,t.error)}if((0,o.TX)(t)||(0,o.fm)(t)){const n=t;if("stack"in t)d=l(e,t);else{const t=n.name||((0,o.TX)(n)?"DOMError":"DOMException"),i=n.message?`${t}: ${n.message}`:t;d=b(e,i,r,c),(0,s.Db)(d,i)}return"code"in n&&(d.tags={...d.tags,"DOMException.code":`${n.code}`}),d}if((0,o.VZ)(t))return l(e,t);if((0,o.PO)(t)||(0,o.cO)(t)){return d=function(e,t,r,s){const c=(0,n.Gd)().getClient(),u=c&&c.getOptions().normalizeDepth,l={exception:{values:[{type:(0,o.cO)(t)?t.constructor.name:s?"UnhandledRejection":"Error",value:`Non-Error ${s?"promise rejection":"exception"} captured with keys: ${(0,i.zf)(t)}`}]},extra:{__serialized__:(0,a.Qy)(t,u)}};if(r){const t=p(e,r);t.length&&(l.exception.values[0].stacktrace={frames:t})}return l}(e,t,r,u),(0,s.EG)(d,{synthetic:!0}),d}return d=b(e,t,r,c),(0,s.Db)(d,`${t}`,void 0),(0,s.EG)(d,{synthetic:!0}),d}function b(e,t,r,n){const o={message:t};if(n&&r){const n=p(e,r);n.length&&(o.exception={values:[{value:t,stacktrace:{frames:n}}]})}return o}},86891:function(e,t,r){"use strict";r.d(t,{Wz:function(){return u},m9:function(){return s},re:function(){return p}});var n=r(64487),o=r(71235),i=r(20535),a=r(62844);const s=o.n2;let c=0;function u(){return c>0}function l(){c+=1,setTimeout((()=>{c-=1}))}function p(e,t={},r){if("function"!=typeof e)return e;try{const t=e.__sentry_wrapped__;if(t)return t;if((0,i.HK)(e))return e}catch(t){return e}const o=function(){const o=Array.prototype.slice.call(arguments);try{r&&"function"==typeof r&&r.apply(this,arguments);const n=o.map((e=>p(e,t)));return e.apply(this,n)}catch(e){throw l(),(0,n.$e)((r=>{r.addEventProcessor((e=>(t.mechanism&&((0,a.Db)(e,void 0,void 0),(0,a.EG)(e,t.mechanism)),e.extra={...e.extra,arguments:o},e))),(0,n.Tb)(e)})),e}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(o[t]=e[t])}catch(e){}(0,i.$Q)(o,e),(0,i.xp)(e,"__sentry_wrapped__",o);try{Object.getOwnPropertyDescriptor(o,"name").configurable&&Object.defineProperty(o,"name",{get(){return e.name}})}catch(e){}return o}},90564:function(e,t,r){"use strict";r.d(t,{O:function(){return p},p:function(){return l}});var n=r(95659),o=r(9732),i=r(58464),a=r(16547),s=r(57321),c=r(26956),u=r(86891);const l="Breadcrumbs";class p{static __initStatic(){this.id=l}__init(){this.name=p.id}constructor(e){p.prototype.__init.call(this),this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e}}setupOnce(){this.options.console&&(0,o.o)("console",d),this.options.dom&&(0,o.o)("dom",function(e){function t(t){let r,o="object"==typeof e?e.serializeAttribute:void 0;"string"==typeof o&&(o=[o]);try{r=t.event.target?(0,i.Rt)(t.event.target,o):(0,i.Rt)(t.event,o)}catch(e){r=""}0!==r.length&&(0,n.Gd)().addBreadcrumb({category:`ui.${t.name}`,message:r},{event:t.event,name:t.name,global:t.global})}return t}(this.options.dom)),this.options.xhr&&(0,o.o)("xhr",f),this.options.fetch&&(0,o.o)("fetch",h),this.options.history&&(0,o.o)("history",g)}}function d(e){for(let t=0;t{const r=t().getIntegration(o);if(r){try{if(function(e,t){if(!t)return!1;if(function(e,t){const r=e.message,n=t.message;if(!r&&!n)return!1;if(r&&!n||!r&&n)return!1;if(r!==n)return!1;if(!a(e,t))return!1;if(!i(e,t))return!1;return!0}(e,t))return!0;if(function(e,t){const r=s(t),n=s(e);if(!r||!n)return!1;if(r.type!==n.type||r.value!==n.value)return!1;if(!a(e,t))return!1;if(!i(e,t))return!1;return!0}(e,t))return!0;return!1}(e,r._previousEvent))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&n.kg.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(t){return r._previousEvent=e}return r._previousEvent=e}return e};r.id=this.name,e(r)}}function i(e,t){let r=c(e),n=c(t);if(!r&&!n)return!0;if(r&&!n||!r&&n)return!1;if(n.length!==r.length)return!1;for(let e=0;e{const[t,r,n]=m();if(!t.getIntegration(p))return;const{msg:o,url:a,line:s,column:c,error:d}=e;if((0,l.Wz)()||d&&d.__sentry_own_request__)return;const f=void 0===d&&(0,i.HD)(o)?function(e,t,r,n){const o=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let a=(0,i.VW)(e)?e.message:e,s="Error";const c=a.match(o);c&&(s=c[1],a=c[2]);return h({exception:{values:[{type:s,value:a}]}},t,r,n)}(o,a,s,c):h((0,u.ME)(r,d||o,void 0,n,!1),a,s,c);f.level="error",g(t,d,f,"onerror")}))}function f(){(0,o.o)("unhandledrejection",(e=>{const[t,r,n]=m();if(!t.getIntegration(p))return;let o=e;try{"reason"in e?o=e.reason:"detail"in e&&"reason"in e.detail&&(o=e.detail.reason)}catch(e){}if((0,l.Wz)()||o&&o.__sentry_own_request__)return!0;const a=(0,i.pt)(o)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(o)}`}]}}:(0,u.ME)(r,o,void 0,n,!0);a.level="error",g(t,o,a,"onunhandledrejection")}))}function h(e,t,r,n){const o=e.exception=e.exception||{},s=o.values=o.values||[],c=s[0]=s[0]||{},u=c.stacktrace=c.stacktrace||{},l=u.frames=u.frames||[],p=isNaN(parseInt(n,10))?void 0:n,d=isNaN(parseInt(r,10))?void 0:r,f=(0,i.HD)(t)&&t.length>0?t:(0,a.l4)();return 0===l.length&&l.push({colno:p,filename:f,function:"?",in_app:!0,lineno:d}),e}function g(e,t,r,n){(0,c.EG)(r,{handled:!1,type:n}),e.captureEvent(r,{originalException:t})}function m(){const e=(0,n.Gd)(),t=e.getClient(),r=t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[e,r.stackParser,r.attachStacktrace]}p.__initStatic()},61945:function(e,t,r){"use strict";r.d(t,{q:function(){return a}});var n=r(10350),o=r(95659),i=r(86891);class a{constructor(){a.prototype.__init.call(this)}static __initStatic(){this.id="HttpContext"}__init(){this.name=a.id}setupOnce(){(0,n.c)((e=>{if((0,o.Gd)().getIntegration(a)){if(!i.m9.navigator&&!i.m9.location&&!i.m9.document)return e;const t=e.request&&e.request.url||i.m9.location&&i.m9.location.href,{referrer:r}=i.m9.document||{},{userAgent:n}=i.m9.navigator||{},o={...t&&{url:t},headers:{...e.request&&e.request.headers,...r&&{Referer:r},...n&&{"User-Agent":n}}};return{...e,request:o}}return e}))}}a.__initStatic()},61634:function(e,t,r){"use strict";r.d(t,{iP:function(){return s}});var n=r(95659),o=r(10350),i=r(67597),a=r(84773);class s{static __initStatic(){this.id="LinkedErrors"}__init(){this.name=s.id}constructor(e={}){s.prototype.__init.call(this),this._key=e.key||"cause",this._limit=e.limit||5}setupOnce(){const e=(0,n.Gd)().getClient();e&&(0,o.c)(((t,r)=>{const o=(0,n.Gd)().getIntegration(s);return o?function(e,t,r,n,o){if(!(n.exception&&n.exception.values&&o&&(0,i.V9)(o.originalException,Error)))return n;const a=c(e,r,o.originalException,t);return n.exception.values=[...a,...n.exception.values],n}(e.getOptions().stackParser,o._key,o._limit,t,r):t}))}}function c(e,t,r,n,o=[]){if(!(0,i.V9)(r[n],Error)||o.length+1>=t)return o;const s=(0,a.GJ)(e,r[n]);return c(e,t,r[n],n,[s,...o])}s.__initStatic()},53692:function(e,t,r){"use strict";r.d(t,{p:function(){return s}});var n=r(20535),o=r(30360),i=r(86891);const a=["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"];class s{static __initStatic(){this.id="TryCatch"}__init(){this.name=s.id}constructor(e){s.prototype.__init.call(this),this._options={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e}}setupOnce(){this._options.setTimeout&&(0,n.hl)(i.m9,"setTimeout",c),this._options.setInterval&&(0,n.hl)(i.m9,"setInterval",c),this._options.requestAnimationFrame&&(0,n.hl)(i.m9,"requestAnimationFrame",u),this._options.XMLHttpRequest&&"XMLHttpRequest"in i.m9&&(0,n.hl)(XMLHttpRequest.prototype,"send",l);const e=this._options.eventTarget;if(e){(Array.isArray(e)?e:a).forEach(p)}}}function c(e){return function(...t){const r=t[0];return t[0]=(0,i.re)(r,{mechanism:{data:{function:(0,o.$P)(e)},handled:!0,type:"instrument"}}),e.apply(this,t)}}function u(e){return function(t){return e.apply(this,[(0,i.re)(t,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,o.$P)(e)},handled:!0,type:"instrument"}})])}}function l(e){return function(...t){const r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in r&&"function"==typeof r[e]&&(0,n.hl)(r,e,(function(t){const r={mechanism:{data:{function:e,handler:(0,o.$P)(t)},handled:!0,type:"instrument"}},a=(0,n.HK)(t);return a&&(r.mechanism.data.handler=(0,o.$P)(a)),(0,i.re)(t,r)}))})),e.apply(this,t)}}function p(e){const t=i.m9,r=t[e]&&t[e].prototype;r&&r.hasOwnProperty&&r.hasOwnProperty("addEventListener")&&((0,n.hl)(r,"addEventListener",(function(t){return function(r,n,a){try{"function"==typeof n.handleEvent&&(n.handleEvent=(0,i.re)(n.handleEvent,{mechanism:{data:{function:"handleEvent",handler:(0,o.$P)(n),target:e},handled:!0,type:"instrument"}}))}catch(e){}return t.apply(this,[r,(0,i.re)(n,{mechanism:{data:{function:"addEventListener",handler:(0,o.$P)(n),target:e},handled:!0,type:"instrument"}}),a])}})),(0,n.hl)(r,"removeEventListener",(function(e){return function(t,r,n){const o=r;try{const r=o&&o.__sentry_wrapped__;r&&e.call(this,t,r,n)}catch(e){}return e.call(this,t,o,n)}})))}s.__initStatic()},19011:function(e,t,r){"use strict";r.d(t,{S1:function(){return S}});var n=r(42422),o=r(19116),i=r(22967),a=r(67966),s=r(95659),c=r(30360),u=r(8823),l=r(12343),p=r(9732),d=r(49680),f=r(86891),h=r(34469),g=r(53692),m=r(90564),b=r(52136),y=r(61634),v=r(69730),_=r(61945),w=r(68690),E=r(68131);const x=[new n.QD,new o.c,new g.p,new m.O,new b.d,new y.iP,new v.I,new _.q];function S(e={}){void 0===e.defaultIntegrations&&(e.defaultIntegrations=x),void 0===e.release&&f.m9.SENTRY_RELEASE&&f.m9.SENTRY_RELEASE.id&&(e.release=f.m9.SENTRY_RELEASE.id),void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0),void 0===e.sendClientReports&&(e.sendClientReports=!0);const t={...e,stackParser:(0,c.Sq)(e.stackParser||h.Dt),integrations:(0,i.m8)(e),transport:e.transport||((0,u.Ak)()?w.f:E.K)};(0,a.M)(d.R,t),e.autoSessionTracking&&function(){if(void 0===f.m9.document)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.warn("Session tracking in non-browser environment with @sentry/browser is not supported."));const e=(0,s.Gd)();if(!e.captureSession)return;k(e),(0,p.o)("history",(({from:e,to:t})=>{void 0!==e&&e!==t&&k((0,s.Gd)())}))}()}function k(e){e.startSession({ignoreDuration:!0}),e.captureSession()}},34469:function(e,t,r){"use strict";r.d(t,{Dt:function(){return d}});var n=r(30360);const o="?";function i(e,t,r,n){const o={filename:e,function:t,in_app:!0};return void 0!==r&&(o.lineno=r),void 0!==n&&(o.colno=n),o}const a=/^\s*at (?:(.*\).*?|.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack||[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,s=/\((\S*)(?::(\d+))(?::(\d+))\)/,c=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|safari-extension|safari-web-extension|capacitor)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,u=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,l=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,p=[[30,e=>{const t=a.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){const e=s.exec(t[2]);e&&(t[2]=e[1],t[3]=e[2],t[4]=e[3])}const[e,r]=f(t[1]||o,t[2]);return i(r,e,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],[50,e=>{const t=c.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=u.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],r=t[1]||o;return[r,e]=f(r,e),i(e,r,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],[40,e=>{const t=l.exec(e);return t?i(t[2],t[1]||o,+t[3],t[4]?+t[4]:void 0):void 0}]],d=(0,n.pE)(...p),f=(e,t)=>{const r=-1!==e.indexOf("safari-extension"),n=-1!==e.indexOf("safari-web-extension");return r||n?[-1!==e.indexOf("@")?e.split("@")[0]:o,r?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]}},68690:function(e,t,r){"use strict";r.d(t,{f:function(){return a}});var n=r(45431),o=r(96893),i=r(77050);function a(e,t=(0,i.x)()){return(0,n.q)(e,(function(r){const n={body:r.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:r.body.length<=65536,...e.fetchOptions};try{return t(e.url,n).then((e=>({statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}})))}catch(e){return(0,i.c)(),(0,o.$2)(e)}}))}},77050:function(e,t,r){"use strict";r.d(t,{c:function(){return c},x:function(){return s}});var n=r(8823),o=r(12343),i=r(86891);let a;function s(){if(a)return a;if((0,n.Du)(i.m9.fetch))return a=i.m9.fetch.bind(i.m9);const e=i.m9.document;let t=i.m9.fetch;if(e&&"function"==typeof e.createElement)try{const r=e.createElement("iframe");r.hidden=!0,e.head.appendChild(r);const n=r.contentWindow;n&&n.fetch&&(t=n.fetch),e.head.removeChild(r)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return a=t.bind(i.m9)}function c(){a=void 0}},68131:function(e,t,r){"use strict";r.d(t,{K:function(){return i}});var n=r(45431),o=r(96893);function i(e){return(0,n.q)(e,(function(t){return new o.cW(((r,n)=>{const o=new XMLHttpRequest;o.onerror=n,o.onreadystatechange=()=>{4===o.readyState&&r({statusCode:o.status,headers:{"x-sentry-rate-limits":o.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":o.getResponseHeader("Retry-After")}})},o.open("POST",e.url);for(const t in e.headers)Object.prototype.hasOwnProperty.call(e.headers,t)&&o.setRequestHeader(t,e.headers[t]);o.send(t.body)}))}))}},1984:function(e,t,r){"use strict";r.d(t,{U:function(){return i}});var n=r(20535);function o(e){const t=e.protocol?`${e.protocol}:`:"",r=e.port?`:${e.port}`:"";return`${t}//${e.host}${r}${e.path?`/${e.path}`:""}/api/`}function i(e,t={}){const r="string"==typeof t?t:t.tunnel,i="string"!=typeof t&&t._metadata?t._metadata.sdk:void 0;return r||`${function(e){return`${o(e)}${e.projectId}/envelope/`}(e)}?${function(e,t){return(0,n._j)({sentry_key:e.publicKey,sentry_version:"7",...t&&{sentry_client:`${t.name}/${t.version}`}})}(e,i)}`}},44219:function(e,t,r){"use strict";r.d(t,{W:function(){return v}});var n=r(30292),o=r(12343),i=r(62844),a=r(67597),s=r(96893),c=r(58725),u=r(21170),l=r(90322),p=r(57321),d=r(80409),f=r(1984),h=r(28656),g=r(22967),m=r(10350),b=r(9015);const y="Not capturing exception because it's already been captured.";class v{__init(){this._integrations={}}__init2(){this._integrationsInitialized=!1}__init3(){this._numProcessing=0}__init4(){this._outcomes={}}constructor(e){if(v.prototype.__init.call(this),v.prototype.__init2.call(this),v.prototype.__init3.call(this),v.prototype.__init4.call(this),this._options=e,e.dsn){this._dsn=(0,n.vK)(e.dsn);const t=(0,f.U)(this._dsn,e);this._transport=e.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("No DSN provided, client will not do anything.")}captureException(e,t,r){if((0,i.YO)(e))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log(y));let n=t&&t.event_id;return this._process(this.eventFromException(e,t).then((e=>this._captureEvent(e,t,r))).then((e=>{n=e}))),n}captureMessage(e,t,r,n){let o=r&&r.event_id;const i=(0,a.pt)(e)?this.eventFromMessage(String(e),t,r):this.eventFromException(e,r);return this._process(i.then((e=>this._captureEvent(e,r,n))).then((e=>{o=e}))),o}captureEvent(e,t,r){if(t&&t.originalException&&(0,i.YO)(t.originalException))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log(y));let n=t&&t.event_id;return this._process(this._captureEvent(e,t,r).then((e=>{n=e}))),n}captureSession(e){this._isEnabled()?"string"!=typeof e.release?("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),(0,b.CT)(e,{init:!1})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("SDK not enabled, will not capture session.")}getDsn(){return this._dsn}getOptions(){return this._options}getTransport(){return this._transport}flush(e){const t=this._transport;return t?this._isClientDoneProcessing(e).then((r=>t.flush(e).then((e=>r&&e)))):(0,s.WD)(!0)}close(e){return this.flush(e).then((e=>(this.getOptions().enabled=!1,e)))}setupIntegrations(){this._isEnabled()&&!this._integrationsInitialized&&(this._integrations=(0,g.q4)(this._options.integrations),this._integrationsInitialized=!0)}getIntegrationById(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}sendEvent(e,t={}){if(this._dsn){let r=(0,h.M)(e,this._dsn,this._options._metadata,this._options.tunnel);for(const e of t.attachments||[])r=(0,c.BO)(r,(0,c.zQ)(e,this._options.transportOptions&&this._options.transportOptions.textEncoder));this._sendEnvelope(r)}}sendSession(e){if(this._dsn){const t=(0,h.Q)(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}}recordDroppedEvent(e,t){if(this._options.sendClientReports){const r=`${e}:${t}`;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log(`Adding outcome: "${r}"`),this._outcomes[r]=this._outcomes[r]+1||1}}_updateSessionFromEvent(e,t){let r=!1,n=!1;const o=t.exception&&t.exception.values;if(o){n=!0;for(const e of o){const t=e.mechanism;if(t&&!1===t.handled){r=!0;break}}}const i="ok"===e.status;(i&&0===e.errors||i&&r)&&((0,b.CT)(e,{...r&&{status:"crashed"},errors:e.errors||Number(n||r)}),this.captureSession(e))}_isClientDoneProcessing(e){return new s.cW((t=>{let r=0;const n=setInterval((()=>{0==this._numProcessing?(clearInterval(n),t(!0)):(r+=1,e&&r>=e&&(clearInterval(n),t(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._dsn}_prepareEvent(e,t,r){const{normalizeDepth:n=3,normalizeMaxBreadth:o=1e3}=this.getOptions(),a={...e,event_id:e.event_id||t.event_id||(0,i.DM)(),timestamp:e.timestamp||(0,u.yW)()};this._applyClientOptions(a),this._applyIntegrationsMetadata(a);let c=r;t.captureContext&&(c=m.s.clone(c).update(t.captureContext));let l=(0,s.WD)(a);if(c){const e=[...t.attachments||[],...c.getAttachments()];e.length&&(t.attachments=e),l=c.applyToEvent(a,t)}return l.then((e=>"number"==typeof n&&n>0?this._normalizeEvent(e,n,o):e))}_normalizeEvent(e,t,r){if(!e)return null;const n={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:(0,l.Fv)(e.data,t,r)}})))},...e.user&&{user:(0,l.Fv)(e.user,t,r)},...e.contexts&&{contexts:(0,l.Fv)(e.contexts,t,r)},...e.extra&&{extra:(0,l.Fv)(e.extra,t,r)}};return e.contexts&&e.contexts.trace&&n.contexts&&(n.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(n.contexts.trace.data=(0,l.Fv)(e.contexts.trace.data,t,r))),e.spans&&(n.spans=e.spans.map((e=>(e.data&&(e.data=(0,l.Fv)(e.data,t,r)),e)))),n}_applyClientOptions(e){const t=this.getOptions(),{environment:r,release:n,dist:o,maxValueLength:i=250}=t;"environment"in e||(e.environment="environment"in t?r:"production"),void 0===e.release&&void 0!==n&&(e.release=n),void 0===e.dist&&void 0!==o&&(e.dist=o),e.message&&(e.message=(0,p.$G)(e.message,i));const a=e.exception&&e.exception.values&&e.exception.values[0];a&&a.value&&(a.value=(0,p.$G)(a.value,i));const s=e.request;s&&s.url&&(s.url=(0,p.$G)(s.url,i))}_applyIntegrationsMetadata(e){const t=Object.keys(this._integrations);t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}_captureEvent(e,t={},r){return this._processEvent(e,t,r).then((e=>e.event_id),(e=>{if("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__){const t=e;"log"===t.logLevel?o.kg.log(t.message):o.kg.warn(t)}}))}_processEvent(e,t,r){const n=this.getOptions(),{sampleRate:o}=n;if(!this._isEnabled())return(0,s.$2)(new d.b("SDK not enabled, will not capture event.","log"));const i="transaction"===e.type,c=i?"beforeSendTransaction":"beforeSend",u=n[c];return!i&&"number"==typeof o&&Math.random()>o?(this.recordDroppedEvent("sample_rate","error"),(0,s.$2)(new d.b(`Discarding event because it's not included in the random sample (sampling rate = ${o})`,"log"))):this._prepareEvent(e,t,r).then((r=>{if(null===r)throw this.recordDroppedEvent("event_processor",e.type||"error"),new d.b("An event processor returned `null`, will not send event.","log");if(t.data&&!0===t.data.__sentry__||!u)return r;return function(e,t){const r=`\`${t}\` must return \`null\` or a valid event.`;if((0,a.J8)(e))return e.then((e=>{if(!(0,a.PO)(e)&&null!==e)throw new d.b(r);return e}),(e=>{throw new d.b(`\`${t}\` rejected with ${e}`)}));if(!(0,a.PO)(e)&&null!==e)throw new d.b(r);return e}(u(r,t),c)})).then((n=>{if(null===n)throw this.recordDroppedEvent("before_send",e.type||"error"),new d.b(`\`${c}\` returned \`null\`, will not send event.`,"log");const o=r&&r.getSession();!i&&o&&this._updateSessionFromEvent(o,n);const a=n.transaction_info;if(i&&a&&n.transaction!==e.transaction){const e="custom";n.transaction_info={...a,source:e,changes:[...a.changes,{source:e,timestamp:n.timestamp,propagations:a.propagations}]}}return this.sendEvent(n,t),n})).then(null,(e=>{if(e instanceof d.b)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new d.b(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)}))}_process(e){this._numProcessing+=1,e.then((e=>(this._numProcessing-=1,e)),(e=>(this._numProcessing-=1,e)))}_sendEnvelope(e){this._transport&&this._dsn?this._transport.send(e).then(null,(e=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.error("Error while sending event:",e)})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.error("Transport disabled")}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.keys(e).map((t=>{const[r,n]=t.split(":");return{reason:r,category:n,quantity:e[t]}}))}}},28656:function(e,t,r){"use strict";r.d(t,{M:function(){return c},Q:function(){return s}});var n=r(30292),o=r(58725),i=r(20535);function a(e){if(!e||!e.sdk)return;const{name:t,version:r}=e.sdk;return{name:t,version:r}}function s(e,t,r,i){const s=a(r),c={sent_at:(new Date).toISOString(),...s&&{sdk:s},...!!i&&{dsn:(0,n.RA)(t)}},u="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e];return(0,o.Jd)(c,[u])}function c(e,t,r,s){const c=a(r),u=e.type||"event";!function(e,t){t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]])}(e,r&&r.sdk);const l=function(e,t,r,o){const a=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!r&&{dsn:(0,n.RA)(o)},..."transaction"===e.type&&a&&{trace:(0,i.Jr)({...a})}}}(e,c,s,t);delete e.sdkProcessingMetadata;const p=[{type:u},e];return(0,o.Jd)(l,[p])}},64487:function(e,t,r){"use strict";r.d(t,{$e:function(){return i},Tb:function(){return o}});var n=r(95659);function o(e,t){return(0,n.Gd)().captureException(e,{captureContext:t})}function i(e){(0,n.Gd)().withScope(e)}},95659:function(e,t,r){"use strict";r.d(t,{Gd:function(){return h}});var n=r(62844),o=r(21170),i=r(12343),a=r(71235),s=r(61422),c=r(10350),u=r(9015);const l=100;class p{__init(){this._stack=[{}]}constructor(e,t=new c.s,r=4){this._version=r,p.prototype.__init.call(this),this.getStackTop().scope=t,e&&this.bindClient(e)}isOlderThan(e){return this._version{n.captureException(e,{originalException:e,syntheticException:o,...t,event_id:r},i)})),r}captureMessage(e,t,r){const o=this._lastEventId=r&&r.event_id?r.event_id:(0,n.DM)(),i=new Error(e);return this._withClient(((n,a)=>{n.captureMessage(e,t,{originalException:e,syntheticException:i,...r,event_id:o},a)})),o}captureEvent(e,t){const r=t&&t.event_id?t.event_id:(0,n.DM)();return"transaction"!==e.type&&(this._lastEventId=r),this._withClient(((n,o)=>{n.captureEvent(e,{...t,event_id:r},o)})),r}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){const{scope:r,client:n}=this.getStackTop();if(!r||!n)return;const{beforeBreadcrumb:a=null,maxBreadcrumbs:s=l}=n.getOptions&&n.getOptions()||{};if(s<=0)return;const c={timestamp:(0,o.yW)(),...e},u=a?(0,i.Cf)((()=>a(c,t))):c;null!==u&&r.addBreadcrumb(u,s)}setUser(e){const t=this.getScope();t&&t.setUser(e)}setTags(e){const t=this.getScope();t&&t.setTags(e)}setExtras(e){const t=this.getScope();t&&t.setExtras(e)}setTag(e,t){const r=this.getScope();r&&r.setTag(e,t)}setExtra(e,t){const r=this.getScope();r&&r.setExtra(e,t)}setContext(e,t){const r=this.getScope();r&&r.setContext(e,t)}configureScope(e){const{scope:t,client:r}=this.getStackTop();t&&r&&e(t)}run(e){const t=f(this);try{e(this)}finally{f(t)}}getIntegration(e){const t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){return this._callExtensionMethod("startTransaction",e,t)}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){const e=this.getStackTop(),t=e&&e.scope,r=t&&t.getSession();r&&(0,u.RJ)(r),this._sendSessionUpdate(),t&&t.setSession()}startSession(e){const{scope:t,client:r}=this.getStackTop(),{release:n,environment:o}=r&&r.getOptions()||{},{userAgent:i}=a.n2.navigator||{},s=(0,u.Hv)({release:n,environment:o,...t&&{user:t.getUser()},...i&&{userAgent:i},...e});if(t){const e=t.getSession&&t.getSession();e&&"ok"===e.status&&(0,u.CT)(e,{status:"exited"}),this.endSession(),t.setSession(s)}return s}shouldSendDefaultPii(){const e=this.getClient(),t=e&&e.getOptions();return Boolean(t&&t.sendDefaultPii)}_sendSessionUpdate(){const{scope:e,client:t}=this.getStackTop();if(!e)return;const r=e.getSession();r&&t&&t.captureSession&&t.captureSession(r)}_withClient(e){const{scope:t,client:r}=this.getStackTop();r&&e(r,t)}_callExtensionMethod(e,...t){const r=d().__SENTRY__;if(r&&r.extensions&&"function"==typeof r.extensions[e])return r.extensions[e].apply(this,t);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function d(){return a.n2.__SENTRY__=a.n2.__SENTRY__||{extensions:{},hub:void 0},a.n2}function f(e){const t=d(),r=m(t);return b(t,e),r}function h(){const e=d();return g(e)&&!m(e).isOlderThan(4)||b(e,new p),(0,s.KV)()?function(e){try{const t=d().__SENTRY__,r=t&&t.extensions&&t.extensions.domain&&t.extensions.domain.active;if(!r)return m(e);if(!g(r)||m(r).isOlderThan(4)){const t=m(e).getStackTop();b(r,new p(t.client,c.s.clone(t.scope)))}return m(r)}catch(t){return m(e)}}(e):m(e)}function g(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function m(e){return(0,a.YO)("hub",(()=>new p),e)}function b(e,t){if(!e)return!1;return(e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0}},22967:function(e,t,r){"use strict";r.d(t,{m8:function(){return c},q4:function(){return u}});var n=r(62844),o=r(12343),i=r(95659),a=r(10350);const s=[];function c(e){const t=e.defaultIntegrations||[],r=e.integrations;let o;t.forEach((e=>{e.isDefaultInstance=!0})),o=Array.isArray(r)?[...t,...r]:"function"==typeof r?(0,n.lE)(r(t)):t;const i=function(e){const t={};return e.forEach((e=>{const{name:r}=e,n=t[r];n&&!n.isDefaultInstance&&e.isDefaultInstance||(t[r]=e)})),Object.values(t)}(o),a=i.findIndex((e=>"Debug"===e.name));if(-1!==a){const[e]=i.splice(a,1);i.push(e)}return i}function u(e){const t={};return e.forEach((e=>{t[e.name]=e,-1===s.indexOf(e.name)&&(e.setupOnce(a.c,i.Gd),s.push(e.name),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log(`Integration installed: ${e.name}`))})),t}},19116:function(e,t,r){"use strict";r.d(t,{c:function(){return i}});var n=r(20535);let o;class i{constructor(){i.prototype.__init.call(this)}static __initStatic(){this.id="FunctionToString"}__init(){this.name=i.id}setupOnce(){o=Function.prototype.toString,Function.prototype.toString=function(...e){const t=(0,n.HK)(this)||this;return o.apply(t,e)}}}i.__initStatic()},42422:function(e,t,r){"use strict";r.d(t,{QD:function(){return s}});var n=r(12343),o=r(62844),i=r(57321);const a=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/];class s{static __initStatic(){this.id="InboundFilters"}__init(){this.name=s.id}constructor(e={}){this._options=e,s.prototype.__init.call(this)}setupOnce(e,t){const r=e=>{const r=t();if(r){const t=r.getIntegration(s);if(t){const s=r.getClient(),u=s?s.getOptions():{},l=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...a],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(t._options,u);return function(e,t){if(t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&n.kg.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${(0,o.jH)(e)}`),!0;if(function(e,t){if(!t||!t.length)return!1;return function(e){if(e.message)return[e.message];if(e.exception)try{const{type:t="",value:r=""}=e.exception.values&&e.exception.values[0]||{};return[`${r}`,`${t}: ${r}`]}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&n.kg.error(`Cannot extract message for event ${(0,o.jH)(e)}`),[]}return[]}(e).some((e=>t.some((t=>(0,i.zC)(e,t)))))}(e,t.ignoreErrors))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&n.kg.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${(0,o.jH)(e)}`),!0;if(function(e,t){if(!t||!t.length)return!1;const r=c(e);return!!r&&t.some((e=>(0,i.zC)(r,e)))}(e,t.denyUrls))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&n.kg.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${(0,o.jH)(e)}.\nUrl: ${c(e)}`),!0;if(!function(e,t){if(!t||!t.length)return!0;const r=c(e);return!r||t.some((e=>(0,i.zC)(r,e)))}(e,t.allowUrls))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&n.kg.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${(0,o.jH)(e)}.\nUrl: ${c(e)}`),!0;return!1}(e,l)?null:e}}return e};r.id=this.name,e(r)}}function c(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(e=[]){for(let t=e.length-1;t>=0;t--){const r=e[t];if(r&&""!==r.filename&&"[native code]"!==r.filename)return r.filename||null}return null}(t):null}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&n.kg.error(`Cannot extract url for event ${(0,o.jH)(e)}`),null}}s.__initStatic()},10350:function(e,t,r){"use strict";r.d(t,{c:function(){return d},s:function(){return l}});var n=r(67597),o=r(21170),i=r(96893),a=r(12343),s=r(62844),c=r(71235),u=r(9015);class l{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}static clone(e){const t=new l;return e&&(t._breadcrumbs=[...e._breadcrumbs],t._tags={...e._tags},t._extra={...e._extra},t._contexts={...e._contexts},t._user=e._user,t._level=e._level,t._span=e._span,t._session=e._session,t._transactionName=e._transactionName,t._fingerprint=e._fingerprint,t._eventProcessors=[...e._eventProcessors],t._requestSession=e._requestSession,t._attachments=[...e._attachments]),t}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{},this._session&&(0,u.CT)(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const e=this.getSpan();return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;if("function"==typeof e){const t=e(this);return t instanceof l?t:this}return e instanceof l?(this._tags={...this._tags,...e._tags},this._extra={...this._extra,...e._extra},this._contexts={...this._contexts,...e._contexts},e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession)):(0,n.PO)(e)&&(this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this}addBreadcrumb(e,t){const r="number"==typeof t?t:100;if(r<=0)return this;const n={timestamp:(0,o.yW)(),...e};return this._breadcrumbs=[...this._breadcrumbs,n].slice(-r),this._notifyScopeListeners(),this}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(e,t={}){if(this._extra&&Object.keys(this._extra).length&&(e.extra={...this._extra,...e.extra}),this._tags&&Object.keys(this._tags).length&&(e.tags={...this._tags,...e.tags}),this._user&&Object.keys(this._user).length&&(e.user={...this._user,...e.user}),this._contexts&&Object.keys(this._contexts).length&&(e.contexts={...this._contexts,...e.contexts}),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts={trace:this._span.getTraceContext(),...e.contexts};const t=this._span.transaction&&this._span.transaction.name;t&&(e.tags={transaction:t,...e.tags})}return this._applyFingerprint(e),e.breadcrumbs=[...e.breadcrumbs||[],...this._breadcrumbs],e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...this._sdkProcessingMetadata},this._notifyEventProcessors([...p(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}_notifyEventProcessors(e,t,r,o=0){return new i.cW(((i,s)=>{const c=e[o];if(null===t||"function"!=typeof c)i(t);else{const u=c({...t},r);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.id&&null===u&&a.kg.log(`Event processor "${c.id}" dropped event`),(0,n.J8)(u)?u.then((t=>this._notifyEventProcessors(e,t,r,o+1).then(i))).then(null,s):this._notifyEventProcessors(e,u,r,o+1).then(i).then(null,s)}}))}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}_applyFingerprint(e){e.fingerprint=e.fingerprint?(0,s.lE)(e.fingerprint):[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}}function p(){return(0,c.YO)("globalEventProcessors",(()=>[]))}function d(e){p().push(e)}},67966:function(e,t,r){"use strict";r.d(t,{M:function(){return i}});var n=r(12343),o=r(95659);function i(e,t){!0===t.debug&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?n.kg.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));const r=(0,o.Gd)(),i=r.getScope();i&&i.update(t.initialScope);const a=new e(t);r.bindClient(a)}},9015:function(e,t,r){"use strict";r.d(t,{CT:function(){return s},Hv:function(){return a},RJ:function(){return c}});var n=r(21170),o=r(62844),i=r(20535);function a(e){const t=(0,n.ph)(),r={sid:(0,o.DM)(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return(0,i.Jr)({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(r)};return e&&s(r,e),r}function s(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,n.ph)(),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:(0,o.DM)()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function c(e,t){let r={};t?r={status:t}:"ok"===e.status&&(r={status:"exited"}),s(e,r)}},45431:function(e,t,r){"use strict";r.d(t,{q:function(){return u}});var n=r(81227),o=r(58725),i=r(80228),a=r(96893),s=r(12343),c=r(80409);function u(e,t,r=(0,n.x)(e.bufferSize||30)){let u={};return{send:function(n){const l=[];if((0,o.gv)(n,((t,r)=>{const n=(0,o.mL)(r);(0,i.Q)(u,n)?e.recordDroppedEvent("ratelimit_backoff",n):l.push(t)})),0===l.length)return(0,a.WD)();const p=(0,o.Jd)(n[0],l),d=t=>{(0,o.gv)(p,((r,n)=>{e.recordDroppedEvent(t,(0,o.mL)(n))}))};return r.add((()=>t({body:(0,o.V$)(p,e.textEncoder)}).then((e=>{void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),u=(0,i.WG)(u,e)}),(e=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.error("Failed while sending event:",e),d("network_error")})))).then((e=>e),(e=>{if(e instanceof c.b)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.error("Skipped sending event because buffer is full."),d("queue_overflow"),(0,a.WD)();throw e}))},flush:e=>r.drain(e)}}},40105:function(e,t,r){"use strict";r.d(t,{J:function(){return n}});const n="7.19.0"},58464:function(e,t,r){"use strict";r.d(t,{Rt:function(){return i},l4:function(){return s}});var n=r(67597);const o=(0,r(71235).Rf)();function i(e,t){try{let r=e;const n=5,o=80,i=[];let s=0,c=0;const u=" > ",l=u.length;let p;for(;r&&s++1&&c+i.length*l+p.length>=o));)i.push(p),c+=p.length,r=r.parentNode;return i.reverse().join(u)}catch(e){return""}}function a(e,t){const r=e,o=[];let i,a,s,c,u;if(!r||!r.tagName)return"";o.push(r.tagName.toLowerCase());const l=t&&t.length?t.filter((e=>r.getAttribute(e))).map((e=>[e,r.getAttribute(e)])):null;if(l&&l.length)l.forEach((e=>{o.push(`[${e[0]}="${e[1]}"]`)}));else if(r.id&&o.push(`#${r.id}`),i=r.className,i&&(0,n.HD)(i))for(a=i.split(/\s+/),u=0;u1&&(p=f.slice(0,-1).join("/"),d=f.pop()),d){const e=d.match(/^\d+/);e&&(d=e[0])}return a({host:c,pass:s,path:p,projectId:d,port:u,protocol:r,publicKey:i})}(e):a(e);return function(e){if("undefined"!=typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__)return;const{port:t,projectId:r,protocol:o}=e;if(["protocol","publicKey","host","projectId"].forEach((t=>{if(!e[t])throw new n.b(`Invalid Sentry Dsn: ${t} missing`)})),!r.match(/^\d+$/))throw new n.b(`Invalid Sentry Dsn: Invalid projectId ${r}`);if(!function(e){return"http"===e||"https"===e}(o))throw new n.b(`Invalid Sentry Dsn: Invalid protocol ${o}`);if(t&&isNaN(parseInt(t,10)))throw new n.b(`Invalid Sentry Dsn: Invalid port ${t}`)}(t),t}},68518:function(e,t,r){"use strict";function n(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}r.d(t,{n:function(){return n}})},58725:function(e,t,r){"use strict";r.d(t,{BO:function(){return a},Jd:function(){return i},V$:function(){return u},gv:function(){return s},mL:function(){return d},zQ:function(){return l}});var n=r(90322),o=r(20535);function i(e,t=[]){return[e,t]}function a(e,t){const[r,n]=e;return[r,[...n,t]]}function s(e,t){e[1].forEach((e=>{const r=e[0].type;t(e,r)}))}function c(e,t){return(t||new TextEncoder).encode(e)}function u(e,t){const[r,o]=e;let i=JSON.stringify(r);function a(e){"string"==typeof i?i="string"==typeof e?i+e:[c(i,t),e]:i.push("string"==typeof e?c(e,t):e)}for(const e of o){const[t,r]=e;if(a(`\n${JSON.stringify(t)}\n`),"string"==typeof r||r instanceof Uint8Array)a(r);else{let e;try{e=JSON.stringify(r)}catch(t){e=JSON.stringify((0,n.Fv)(r))}a(e)}}return"string"==typeof i?i:function(e){const t=e.reduce(((e,t)=>e+t.length),0),r=new Uint8Array(t);let n=0;for(const t of e)r.set(t,n),n+=t.length;return r}(i)}function l(e,t){const r="string"==typeof e.data?c(e.data,t):e.data;return[(0,o.Jr)({type:"attachment",length:r.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),r]}const p={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default"};function d(e){return p[e]}},80409:function(e,t,r){"use strict";r.d(t,{b:function(){return n}});class n extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}},9732:function(e,t,r){"use strict";r.d(t,{o:function(){return d}});var n=r(67597),o=r(12343),i=r(20535),a=r(30360),s=r(8823);const c=(0,r(71235).Rf)(),u={},l={};function p(e){if(!l[e])switch(l[e]=!0,e){case"console":!function(){if(!("console"in c))return;o.RU.forEach((function(e){e in c.console&&(0,i.hl)(c.console,e,(function(t){return function(...r){f("console",{args:r,level:e}),t&&t.apply(c.console,r)}}))}))}();break;case"dom":!function(){if(!("document"in c))return;const e=f.bind(null,"dom"),t=v(e,!0);c.document.addEventListener("click",t,!1),c.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{const r=c[t]&&c[t].prototype;r&&r.hasOwnProperty&&r.hasOwnProperty("addEventListener")&&((0,i.hl)(r,"addEventListener",(function(t){return function(r,n,o){if("click"===r||"keypress"==r)try{const n=this,i=n.__sentry_instrumentation_handlers__=n.__sentry_instrumentation_handlers__||{},a=i[r]=i[r]||{refCount:0};if(!a.handler){const n=v(e);a.handler=n,t.call(this,r,n,o)}a.refCount+=1}catch(e){}return t.call(this,r,n,o)}})),(0,i.hl)(r,"removeEventListener",(function(e){return function(t,r,n){if("click"===t||"keypress"==t)try{const r=this,o=r.__sentry_instrumentation_handlers__||{},i=o[t];i&&(i.refCount-=1,i.refCount<=0&&(e.call(this,t,i.handler,n),i.handler=void 0,delete o[t]),0===Object.keys(o).length&&delete r.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,r,n)}})))}))}();break;case"xhr":!function(){if(!("XMLHttpRequest"in c))return;const e=XMLHttpRequest.prototype;(0,i.hl)(e,"open",(function(e){return function(...t){const r=this,o=t[1],a=r.__sentry_xhr__={method:(0,n.HD)(t[0])?t[0].toUpperCase():t[0],url:t[1]};(0,n.HD)(o)&&"POST"===a.method&&o.match(/sentry_key/)&&(r.__sentry_own_request__=!0);const s=function(){if(4===r.readyState){try{a.status_code=r.status}catch(e){}f("xhr",{args:t,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:r})}};return"onreadystatechange"in r&&"function"==typeof r.onreadystatechange?(0,i.hl)(r,"onreadystatechange",(function(e){return function(...t){return s(),e.apply(r,t)}})):r.addEventListener("readystatechange",s),e.apply(r,t)}})),(0,i.hl)(e,"send",(function(e){return function(...t){return this.__sentry_xhr__&&void 0!==t[0]&&(this.__sentry_xhr__.body=t[0]),f("xhr",{args:t,startTimestamp:Date.now(),xhr:this}),e.apply(this,t)}}))}();break;case"fetch":!function(){if(!(0,s.t$)())return;(0,i.hl)(c,"fetch",(function(e){return function(...t){const r={args:t,fetchData:{method:h(t),url:g(t)},startTimestamp:Date.now()};return f("fetch",{...r}),e.apply(c,t).then((e=>(f("fetch",{...r,endTimestamp:Date.now(),response:e}),e)),(e=>{throw f("fetch",{...r,endTimestamp:Date.now(),error:e}),e}))}}))}();break;case"history":!function(){if(!(0,s.Bf)())return;const e=c.onpopstate;function t(e){return function(...t){const r=t.length>2?t[2]:void 0;if(r){const e=m,t=String(r);m=t,f("history",{from:e,to:t})}return e.apply(this,t)}}c.onpopstate=function(...t){const r=c.location.href,n=m;if(m=r,f("history",{from:n,to:r}),e)try{return e.apply(this,t)}catch(e){}},(0,i.hl)(c.history,"pushState",t),(0,i.hl)(c.history,"replaceState",t)}();break;case"error":_=c.onerror,c.onerror=function(e,t,r,n,o){return f("error",{column:n,error:o,line:r,msg:e,url:t}),!!_&&_.apply(this,arguments)};break;case"unhandledrejection":w=c.onunhandledrejection,c.onunhandledrejection=function(e){return f("unhandledrejection",e),!w||w.apply(this,arguments)};break;default:return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("unknown instrumentation type:",e))}}function d(e,t){u[e]=u[e]||[],u[e].push(t),p(e)}function f(e,t){if(e&&u[e])for(const r of u[e]||[])try{r(t)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${(0,a.$P)(r)}\nError:`,t)}}function h(e=[]){return"Request"in c&&(0,n.V9)(e[0],Request)&&e[0].method?String(e[0].method).toUpperCase():e[1]&&e[1].method?String(e[1].method).toUpperCase():"GET"}function g(e=[]){return"string"==typeof e[0]?e[0]:"Request"in c&&(0,n.V9)(e[0],Request)?e[0].url:String(e[0])}let m;let b,y;function v(e,t=!1){return r=>{if(!r||y===r)return;if(function(e){if("keypress"!==e.type)return!1;try{const t=e.target;if(!t||!t.tagName)return!0;if("INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable)return!1}catch(e){}return!0}(r))return;const n="keypress"===r.type?"input":r.type;(void 0===b||function(e,t){if(!e)return!0;if(e.type!==t.type)return!0;try{if(e.target!==t.target)return!0}catch(e){}return!1}(y,r))&&(e({event:r,name:n,global:t}),y=r),clearTimeout(b),b=c.setTimeout((()=>{b=void 0}),1e3)}}let _=null;let w=null},67597:function(e,t,r){"use strict";r.d(t,{Cy:function(){return m},HD:function(){return u},J8:function(){return g},Kj:function(){return h},PO:function(){return p},TX:function(){return s},V9:function(){return y},VW:function(){return a},VZ:function(){return o},cO:function(){return d},fm:function(){return c},i2:function(){return b},kK:function(){return f},pt:function(){return l}});const n=Object.prototype.toString;function o(e){switch(n.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return y(e,Error)}}function i(e,t){return n.call(e)===`[object ${t}]`}function a(e){return i(e,"ErrorEvent")}function s(e){return i(e,"DOMError")}function c(e){return i(e,"DOMException")}function u(e){return i(e,"String")}function l(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function p(e){return i(e,"Object")}function d(e){return"undefined"!=typeof Event&&y(e,Event)}function f(e){return"undefined"!=typeof Element&&y(e,Element)}function h(e){return i(e,"RegExp")}function g(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function m(e){return p(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function b(e){return"number"==typeof e&&e!=e}function y(e,t){try{return e instanceof t}catch(e){return!1}}},12343:function(e,t,r){"use strict";r.d(t,{Cf:function(){return i},RU:function(){return o},kg:function(){return s}});var n=r(71235);const o=["debug","info","warn","error","log","assert","trace"];function i(e){if(!("console"in n.n2))return e();const t=n.n2.console,r={};o.forEach((e=>{const n=t[e]&&t[e].__sentry_original__;e in t&&n&&(r[e]=t[e],t[e]=n)}));try{return e()}finally{Object.keys(r).forEach((e=>{t[e]=r[e]}))}}function a(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1}};return"undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?o.forEach((r=>{t[r]=(...t)=>{e&&i((()=>{n.n2.console[r](`Sentry Logger [${r}]:`,...t)}))}})):o.forEach((e=>{t[e]=()=>{}})),t}let s;s="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?(0,n.YO)("logger",a):a()},32004:function(e,t,r){"use strict";function n(){const e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(r){if(e)return!!t.has(r)||(t.add(r),!1);for(let e=0;et.getRandomValues(new Uint8Array(1))[0]:()=>16*Math.random();return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&r())>>e/4).toString(16)))}function a(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function s(e){const{message:t,event_id:r}=e;if(t)return t;const n=a(e);return n?n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||r||"":r||""}function c(e,t,r){const n=e.exception=e.exception||{},o=n.values=n.values||[],i=o[0]=o[0]||{};i.value||(i.value=t||""),i.type||(i.type=r||"Error")}function u(e,t){const r=a(e);if(!r)return;const n=r.mechanism;if(r.mechanism={type:"generic",handled:!0,...n,...t},t&&"data"in t){const e={...n&&n.data,...t.data};r.mechanism.data=e}}function l(e){if(e&&e.__sentry_captured__)return!0;try{(0,n.xp)(e,"__sentry_captured__",!0)}catch(e){}return!1}function p(e){return Array.isArray(e)?e:[e]}},61422:function(e,t,r){"use strict";r.d(t,{KV:function(){return o},l$:function(){return i}});var n=r(68518);function o(){return!(0,n.n)()&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function i(e,t){return e.require(t)}e=r.hmd(e)},90322:function(e,t,r){"use strict";r.d(t,{Fv:function(){return s},Qy:function(){return c}});var n=r(67597),o=r(32004),i=r(20535),a=r(30360);function s(e,t=1/0,r=1/0){try{return u("",e,t,r)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function c(e,t=3,r=102400){const n=s(e,t);return o=n,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(o))>r?c(e,t-1,r):n;var o}function u(e,t,s=1/0,c=1/0,l=(0,o.i)()){const[p,d]=l;if(null===t||["number","boolean","string"].includes(typeof t)&&!(0,n.i2)(t))return t;const f=function(e,t){try{return"domain"===e&&t&&"object"==typeof t&&t._events?"[Domain]":"domainEmitter"===e?"[DomainEmitter]":void 0!==r.g&&t===r.g?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":(0,n.Cy)(t)?"[SyntheticEvent]":"number"==typeof t&&t!=t?"[NaN]":void 0===t?"[undefined]":"function"==typeof t?`[Function: ${(0,a.$P)(t)}]`:"symbol"==typeof t?`[${String(t)}]`:"bigint"==typeof t?`[BigInt: ${String(t)}]`:`[object ${Object.getPrototypeOf(t).constructor.name}]`}catch(e){return`**non-serializable** (${e})`}}(e,t);if(!f.startsWith("[object "))return f;if(t.__sentry_skip_normalization__)return t;if(0===s)return f.replace("object ","");if(p(t))return"[Circular ~]";const h=t;if(h&&"function"==typeof h.toJSON)try{return u("",h.toJSON(),s-1,c,l)}catch(e){}const g=Array.isArray(t)?[]:{};let m=0;const b=(0,i.Sh)(t);for(const e in b){if(!Object.prototype.hasOwnProperty.call(b,e))continue;if(m>=c){g[e]="[MaxProperties ~]";break}const t=b[e];g[e]=u(e,t,s-1,c,l),m+=1}return d(t),g}},20535:function(e,t,r){"use strict";r.d(t,{$Q:function(){return c},HK:function(){return u},Jr:function(){return g},Sh:function(){return p},_j:function(){return l},hl:function(){return a},xp:function(){return s},zf:function(){return h}});var n=r(58464),o=r(67597),i=r(57321);function a(e,t,r){if(!(t in e))return;const n=e[t],o=r(n);if("function"==typeof o)try{c(o,n)}catch(e){}e[t]=o}function s(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0})}function c(e,t){const r=t.prototype||{};e.prototype=t.prototype=r,s(e,"__sentry_original__",t)}function u(e){return e.__sentry_original__}function l(e){return Object.keys(e).map((t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`)).join("&")}function p(e){if((0,o.VZ)(e))return{message:e.message,name:e.name,stack:e.stack,...f(e)};if((0,o.cO)(e)){const t={type:e.type,target:d(e.target),currentTarget:d(e.currentTarget),...f(e)};return"undefined"!=typeof CustomEvent&&(0,o.V9)(e,CustomEvent)&&(t.detail=e.detail),t}return e}function d(e){try{return(0,o.kK)(e)?(0,n.Rt)(e):Object.prototype.toString.call(e)}catch(e){return""}}function f(e){if("object"==typeof e&&null!==e){const t={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}return{}}function h(e,t=40){const r=Object.keys(p(e));if(r.sort(),!r.length)return"[object has no keys]";if(r[0].length>=t)return(0,i.$G)(r[0],t);for(let e=r.length;e>0;e--){const n=r.slice(0,e).join(", ");if(!(n.length>t))return e===r.length?n:(0,i.$G)(n,t)}return""}function g(e){return m(e,new Map)}function m(e,t){if((0,o.PO)(e)){const r=t.get(e);if(void 0!==r)return r;const n={};t.set(e,n);for(const r of Object.keys(e))void 0!==e[r]&&(n[r]=m(e[r],t));return n}if(Array.isArray(e)){const r=t.get(e);if(void 0!==r)return r;const n=[];return t.set(e,n),e.forEach((e=>{n.push(m(e,t))})),n}return e}},81227:function(e,t,r){"use strict";r.d(t,{x:function(){return i}});var n=r(80409),o=r(96893);function i(e){const t=[];function r(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(i){if(!(void 0===e||t.lengthr(a))).then(null,(()=>r(a).then(null,(()=>{})))),a},drain:function(e){return new o.cW(((r,n)=>{let i=t.length;if(!i)return r(!0);const a=setTimeout((()=>{e&&e>0&&r(!1)}),e);t.forEach((e=>{(0,o.WD)(e).then((()=>{--i||(clearTimeout(a),r(!0))}),n)}))}))}}}},80228:function(e,t,r){"use strict";r.d(t,{Q:function(){return n},WG:function(){return o}});function n(e,t,r=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>r}function o(e,{statusCode:t,headers:r},n=Date.now()){const o={...e},i=r&&r["x-sentry-rate-limits"],a=r&&r["retry-after"];if(i)for(const e of i.trim().split(",")){const[t,r]=e.split(":",2),i=parseInt(t,10),a=1e3*(isNaN(i)?60:i);if(r)for(const e of r.split(";"))o[e]=n+a;else o.all=n+a}else a?o.all=n+function(e,t=Date.now()){const r=parseInt(`${e}`,10);if(!isNaN(r))return 1e3*r;const n=Date.parse(`${e}`);return isNaN(n)?6e4:n-t}(a,n):429===t&&(o.all=n+6e4);return o}},16547:function(e,t,r){"use strict";r.d(t,{VT:function(){return o}});const n=["fatal","error","warning","log","info","debug"];function o(e){return"warn"===e?"warning":n.includes(e)?e:"log"}},30360:function(e,t,r){"use strict";r.d(t,{$P:function(){return a},Sq:function(){return o},pE:function(){return n}});function n(...e){const t=e.sort(((e,t)=>e[0]-t[0])).map((e=>e[1]));return(e,r=0)=>{const n=[];for(const o of e.split("\n").slice(r)){const e=o.replace(/\(error: (.*)\)/,"$1");for(const r of t){const t=r(e);if(t){n.push(t);break}}}return function(e){if(!e.length)return[];let t=e;const r=t[0].function||"",n=t[t.length-1].function||"";-1===r.indexOf("captureMessage")&&-1===r.indexOf("captureException")||(t=t.slice(1));-1!==n.indexOf("sentryWrapped")&&(t=t.slice(0,-1));return t.slice(0,50).map((e=>({...e,filename:e.filename||t[0].filename,function:e.function||"?"}))).reverse()}(n)}}function o(e){return Array.isArray(e)?n(...e):e}const i="";function a(e){try{return e&&"function"==typeof e&&e.name||i}catch(e){return i}}},57321:function(e,t,r){"use strict";r.d(t,{$G:function(){return o},nK:function(){return i},zC:function(){return a}});var n=r(67597);function o(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.substr(0,t)}...`}function i(e,t){if(!Array.isArray(e))return"";const r=[];for(let t=0;t{t(e)}))}function a(e){return new s(((t,r)=>{r(e)}))}!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(n||(n={}));class s{__init(){this._state=n.PENDING}__init2(){this._handlers=[]}constructor(e){s.prototype.__init.call(this),s.prototype.__init2.call(this),s.prototype.__init3.call(this),s.prototype.__init4.call(this),s.prototype.__init5.call(this),s.prototype.__init6.call(this);try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new s(((r,n)=>{this._handlers.push([!1,t=>{if(e)try{r(e(t))}catch(e){n(e)}else r(t)},e=>{if(t)try{r(t(e))}catch(e){n(e)}else n(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new s(((t,r)=>{let n,o;return this.then((t=>{o=!1,n=t,e&&e()}),(t=>{o=!0,n=t,e&&e()})).then((()=>{o?r(n):t(n)}))}))}__init3(){this._resolve=e=>{this._setResult(n.RESOLVED,e)}}__init4(){this._reject=e=>{this._setResult(n.REJECTED,e)}}__init5(){this._setResult=(e,t)=>{this._state===n.PENDING&&((0,o.J8)(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init6(){this._executeHandlers=()=>{if(this._state===n.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===n.RESOLVED&&e[1](this._value),this._state===n.REJECTED&&e[2](this._value),e[0]=!0)}))}}}},21170:function(e,t,r){"use strict";r.d(t,{ph:function(){return l},yW:function(){return u}});var n=r(61422),o=r(71235);e=r.hmd(e);const i=(0,o.Rf)(),a={nowSeconds:()=>Date.now()/1e3};const s=(0,n.KV)()?function(){try{return(0,n.l$)(e,"perf_hooks").performance}catch(e){return}}():function(){const{performance:e}=i;if(!e||!e.now)return;return{now:()=>e.now(),timeOrigin:Date.now()-e.now()}}(),c=void 0===s?a:{nowSeconds:()=>(s.timeOrigin+s.now())/1e3},u=a.nowSeconds.bind(a),l=c.nowSeconds.bind(c);let p;(()=>{const{performance:e}=i;if(!e||!e.now)return void(p="none");const t=36e5,r=e.now(),n=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+r-n):t,a=o"']/gm,(function(e){return"&"===e?"&":"<"===e?"<":">"===e?">":'"'===e?""":"'"===e?"'":void 0}))},e.prototype.append_buffer=function(e){var t=this._buffer+e;this._buffer=t},e.prototype.get_next_packet=function(){var e={kind:t.EOS,text:"",url:""},n=this._buffer.length;if(0==n)return e;var a=this._buffer.indexOf("");if(-1==a)return e.kind=t.Text,e.text=this._buffer,this._buffer="",e;if(a>0)return e.kind=t.Text,e.text=this._buffer.slice(0,a),this._buffer=this._buffer.slice(a),e;if(0==a){if(1==n)return e.kind=t.Incomplete,e;var s=this._buffer.charAt(1);if("["!=s&&"]"!=s)return e.kind=t.ESC,e.text=this._buffer.slice(0,1),this._buffer=this._buffer.slice(1),e;if("["==s){if(this._csi_regex||(this._csi_regex=o(r(["\n ^ # beginning of line\n #\n # First attempt\n (?: # legal sequence\n [ # CSI\n ([<-?]?) # private-mode char\n ([d;]*) # any digits or semicolons\n ([ -/]? # an intermediate modifier\n [@-~]) # the command\n )\n | # alternate (second attempt)\n (?: # illegal sequence\n [ # CSI\n [ -~]* # anything legal\n ([\0-:]) # anything illegal\n )\n "],["\n ^ # beginning of line\n #\n # First attempt\n (?: # legal sequence\n \\x1b\\[ # CSI\n ([\\x3c-\\x3f]?) # private-mode char\n ([\\d;]*) # any digits or semicolons\n ([\\x20-\\x2f]? # an intermediate modifier\n [\\x40-\\x7e]) # the command\n )\n | # alternate (second attempt)\n (?: # illegal sequence\n \\x1b\\[ # CSI\n [\\x20-\\x7e]* # anything legal\n ([\\x00-\\x1f:]) # anything illegal\n )\n "]))),null===(l=this._buffer.match(this._csi_regex)))return e.kind=t.Incomplete,e;if(l[4])return e.kind=t.ESC,e.text=this._buffer.slice(0,1),this._buffer=this._buffer.slice(1),e;""!=l[1]||"m"!=l[3]?e.kind=t.Unknown:e.kind=t.SGR,e.text=l[2];var c=l[0].length;return this._buffer=this._buffer.slice(c),e}if("]"==s){if(n<4)return e.kind=t.Incomplete,e;if("8"!=this._buffer.charAt(2)||";"!=this._buffer.charAt(3))return e.kind=t.ESC,e.text=this._buffer.slice(0,1),this._buffer=this._buffer.slice(1),e;this._osc_st||(this._osc_st=i(r(["\n (?: # legal sequence\n (\\) # ESC | # alternate\n () # BEL (what xterm did)\n )\n | # alternate (second attempt)\n ( # illegal sequence\n [\0-] # anything illegal\n | # alternate\n [\b-] # anything illegal\n | # alternate\n [-] # anything illegal\n )\n "],["\n (?: # legal sequence\n (\\x1b\\\\) # ESC \\\n | # alternate\n (\\x07) # BEL (what xterm did)\n )\n | # alternate (second attempt)\n ( # illegal sequence\n [\\x00-\\x06] # anything illegal\n | # alternate\n [\\x08-\\x1a] # anything illegal\n | # alternate\n [\\x1c-\\x1f] # anything illegal\n )\n "]))),this._osc_st.lastIndex=0;var u=this._osc_st.exec(this._buffer);if(null===u)return e.kind=t.Incomplete,e;if(u[3])return e.kind=t.ESC,e.text=this._buffer.slice(0,1),this._buffer=this._buffer.slice(1),e;var l,p=this._osc_st.exec(this._buffer);return null===p?(e.kind=t.Incomplete,e):p[3]?(e.kind=t.ESC,e.text=this._buffer.slice(0,1),this._buffer=this._buffer.slice(1),e):(this._osc_regex||(this._osc_regex=o(r(["\n ^ # beginning of line\n #\n ]8; # OSC Hyperlink\n [ -:<-~]* # params (excluding ;)\n ; # end of params\n ([!-~]{0,512}) # URL capture\n (?: # ST\n (?:\\) # ESC | # alternate\n (?:) # BEL (what xterm did)\n )\n ([ -~]+) # TEXT capture\n ]8;; # OSC Hyperlink End\n (?: # ST\n (?:\\) # ESC | # alternate\n (?:) # BEL (what xterm did)\n )\n "],["\n ^ # beginning of line\n #\n \\x1b\\]8; # OSC Hyperlink\n [\\x20-\\x3a\\x3c-\\x7e]* # params (excluding ;)\n ; # end of params\n ([\\x21-\\x7e]{0,512}) # URL capture\n (?: # ST\n (?:\\x1b\\\\) # ESC \\\n | # alternate\n (?:\\x07) # BEL (what xterm did)\n )\n ([\\x20-\\x7e]+) # TEXT capture\n \\x1b\\]8;; # OSC Hyperlink End\n (?: # ST\n (?:\\x1b\\\\) # ESC \\\n | # alternate\n (?:\\x07) # BEL (what xterm did)\n )\n "]))),null===(l=this._buffer.match(this._osc_regex))?(e.kind=t.ESC,e.text=this._buffer.slice(0,1),this._buffer=this._buffer.slice(1),e):(e.kind=t.OSCURL,e.url=l[1],e.text=l[2],c=l[0].length,this._buffer=this._buffer.slice(c),e))}}},e.prototype.ansi_to_html=function(e){this.append_buffer(e);for(var r=[];;){var n=this.get_next_packet();if(n.kind==t.EOS||n.kind==t.Incomplete)break;n.kind!=t.ESC&&n.kind!=t.Unknown&&(n.kind==t.Text?r.push(this.transform_to_html(this.with_state(n))):n.kind==t.SGR?this.process_ansi(n):n.kind==t.OSCURL&&r.push(this.process_hyperlink(n)))}return r.join("")},e.prototype.with_state=function(e){return{bold:this.bold,italic:this.italic,underline:this.underline,fg:this.fg,bg:this.bg,text:e.text}},e.prototype.process_ansi=function(e){for(var t=e.text.split(";");t.length>0;){var r=t.shift(),n=parseInt(r,10);if(isNaN(n)||0===n)this.fg=this.bg=null,this.bold=!1,this.italic=!1,this.underline=!1;else if(1===n)this.bold=!0;else if(3===n)this.italic=!0;else if(4===n)this.underline=!0;else if(22===n)this.bold=!1;else if(23===n)this.italic=!1;else if(24===n)this.underline=!1;else if(39===n)this.fg=null;else if(49===n)this.bg=null;else if(n>=30&&n<38)this.fg=this.ansi_colors[0][n-30];else if(n>=40&&n<48)this.bg=this.ansi_colors[0][n-40];else if(n>=90&&n<98)this.fg=this.ansi_colors[1][n-90];else if(n>=100&&n<108)this.bg=this.ansi_colors[1][n-100];else if((38===n||48===n)&&t.length>0){var o=38===n,i=t.shift();if("5"===i&&t.length>0){var a=parseInt(t.shift(),10);a>=0&&a<=255&&(o?this.fg=this.palette_256[a]:this.bg=this.palette_256[a])}if("2"===i&&t.length>2){var s=parseInt(t.shift(),10),c=parseInt(t.shift(),10),u=parseInt(t.shift(),10);if(s>=0&&s<=255&&c>=0&&c<=255&&u>=0&&u<=255){var l={rgb:[s,c,u],class_name:"truecolor"};o?this.fg=l:this.bg=l}}}}},e.prototype.transform_to_html=function(e){var t=e.text;if(0===t.length)return t;if(t=this.escape_txt_for_html(t),!e.bold&&!e.italic&&!e.underline&&null===e.fg&&null===e.bg)return t;var r=[],n=[],o=e.fg,i=e.bg;e.bold&&r.push("font-weight:bold"),e.italic&&r.push("font-style:italic"),e.underline&&r.push("text-decoration:underline"),this._use_classes?(o&&("truecolor"!==o.class_name?n.push(o.class_name+"-fg"):r.push("color:rgb("+o.rgb.join(",")+")")),i&&("truecolor"!==i.class_name?n.push(i.class_name+"-bg"):r.push("background-color:rgb("+i.rgb.join(",")+")"))):(o&&r.push("color:rgb("+o.rgb.join(",")+")"),i&&r.push("background-color:rgb("+i.rgb+")"));var a="",s="";return n.length&&(a=' class="'+n.join(" ")+'"'),r.length&&(s=' style="'+r.join(";")+'"'),""+t+""},e.prototype.process_hyperlink=function(e){var t=e.url.split(":");return t.length<1?"":this._url_whitelist[t[0]]?''+this.escape_txt_for_html(e.text)+"":""},e}();function o(e){for(var t=[],r=1;r\n \n \n
\n \n
<a href="'+s+'">\n    <img src="'+a+'">\n</a>
\n
\n
\n \n
[![SWH]('+a+")]("+s+')
\n
\n
\n \n
.. image:: '+a+"\n    :target: "+s+"
\n
";swh.webapp.showModalHtml("Software Heritage badge integration",c),swh.webapp.highlightCode(!1,".swh-badge-html"),swh.webapp.highlightCode(!1,".swh-badge-md")}r.d(t,{h:function(){return n}})},12988:function(e,t,r){"use strict";r.d(t,{IG:function(){return p},KC:function(){return c},RI:function(){return u},Xm:function(){return l},xw:function(){return d}});var n=r(15861),o=r(87757),i=r.n(o),a=r(59537),s=null;function c(e,t){void 0===t&&(t=!1);var r=$('.hljs-ln-line[data-line-number="'+e+'"]');return r.css("background-color","rgb(193, 255, 193)"),t&&(s=e),r}function u(e,t){if(e){t||(t=e);for(var r=e;r<=t;++r)c(r)}}function l(){s=null,$(".hljs-ln-line[data-line-number]").css("background-color","inherit")}function p(e,t){void 0===t&&(t=70),$(e).closest(".swh-content").length>0&&$("html, body").animate({scrollTop:$(e).offset().top-t},500)}function d(e,t,r){return f.apply(this,arguments)}function f(){return(f=(0,n.Z)(i().mark((function e(t,n,o){var d;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return d=function(){var e=[],t=new RegExp(/L(\d+)/g),r=t.exec(window.location.hash);if(null!==r){for(;r;)e.push(parseInt(r[1])),r=t.exec(window.location.hash);l(),1===e.length?(s=parseInt(e[0]),p(c(e[0]))):e[0]s){var r=s;l(),u(r,t),s=r,window.location.hash="#L"+r+"-L"+t}else l(),c(t),window.location.hash="#L"+t,p(e.target)}else $(e.target).closest(".hljs-ln").length&&(l(),(0,a.L3)())})),$(window).on("hashchange",(function(){return d()})),setTimeout((function(){d()})))}));case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},4556:function(e,t,r){"use strict";r.d(t,{q:function(){return a}});var n=r(15861),o=r(87757),i=r.n(o);function a(e,t){return s.apply(this,arguments)}function s(){return(s=(0,n.Z)(i().mark((function e(t,n){var o,a,s,c,u,l,p,d,f,h,g,m,b,y,v,_,w;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return w=function(e){var t=h.invert(o.pointer(e)[0]),r=v(n,t,1);if(!(r>=n.length)){var i=n[r-1],a=n[r],s=t-i[0]>a[0]-t?a:i;_.attr("transform","translate("+h(s[0])+", "+g(s[1])+")");var c=b(s[0])+" "+y(s[1]);l.html(c).style("left",e.pageX+15+"px").style("top",e.pageY+"px")}},e.next=3,r.e(891).then(r.bind(r,40847));case 3:(o=e.sent).select(t).select("svg").remove(),o.select(t+"-tooltip").remove(),a=400,s=300,c={top:20,right:50,bottom:70,left:30},u=o.select(t).attr("style","padding-bottom: "+Math.ceil(100*s/a)+"%").append("svg").attr("viewBox","0 0 "+a+" "+s),l=o.select("body").append("div").attr("class","d3-tooltip").attr("id",t+"-tooltip").style("opacity",0),a=a-c.left-c.right,s=s-c.top-c.bottom,n.sort((function(e,t){return e[0]-t[0]!=0?e[0]-t[0]:e[1]-t[1]})),p=n[0],d=n[n.length-1],f=u.append("g").attr("transform","translate("+c.left+", "+c.top+")"),h=o.scaleTime().rangeRound([0,a]).domain([p[0],d[0]]).nice(),g=o.scaleLinear().range([s,0]).domain([p[1],d[1]]).nice(),m=o.line().x((function(e){return h(e[0])})).y((function(e){return g(e[1])})),b=o.timeFormat("%d %b %Y"),y=function(e){return o.format(".3s")(e).replace(/G/,"B")},v=o.bisector((function(e){return e[0]})).left,f.append("g").attr("class","axis").attr("transform","translate(0, "+s+")").call(o.axisBottom(h).ticks(10).tickFormat(b)).selectAll("text").style("text-anchor","end").attr("dx","-.8em").attr("dy",".15em").attr("transform","rotate(-65)"),f.append("g").attr("class","axis").attr("transform","translate("+a+", 0)").call(o.axisRight(g).ticks(10).tickFormat(y)),f.append("path").datum(n).attr("class","swh-history-counter-line").attr("d",m),(_=f.append("g").attr("class","swh-history-counter-focus").style("display","none")).append("circle").attr("r",8),f.append("rect").attr("class","swh-history-counter-overlay").attr("width",a).attr("height",s).on("mouseover",(function(e){_.style("display",null),w(e),l.transition().duration(200).style("opacity",1)})).on("mouseout",(function(){_.style("display","none"),l.transition().duration(200).style("opacity",0)})).on("mousemove",(function(e){w(e)}));case 29:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},59244:function(e,t,r){"use strict";r.d(t,{d:function(){return s}});var n=r(15861),o=r(87757),i=r.n(o),a=r(59537);function s(){return c.apply(this,arguments)}function c(){return(c=(0,n.Z)(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return window.MathJax={chtml:{fontURL:(0,a.TT)("fonts/")},tex:{tags:"ams",useLabelIds:!0,inlineMath:[["$","$"],["\\(","\\)"]],displayMath:[["$$","$$"],["\\[","\\]"]],processEscapes:!0,processEnvironments:!0}},e.next=3,r.e(684).then(r.bind(r,7321));case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},56493:function(e,t,r){"use strict";r.d(t,{Q:function(){return p}});var n=r(15861),o=r(87757),i=r.n(o),a=(r(37755),r(34431)),s=new(r.n(a)());function c(e){return e=(e=e.replace(//g,">")}function u(e){return e=(e=e.replace(/</g,"<")).replace(/>/g,">")}function l(e){for(var t,r,n,o=/\$\$([\s\S]+?)\$\$|\\\\\[([\s\S]+?)\\\\\]/gm,i=/\$(.+?)\$|\\\\\((.+?)\\\\\)/g,a=/\\begin\{([a-z]*\*?)\}([\s\S]+?)\\end\{\1\}/gm,s=[];null!==(t=o.exec(e));)s.push(t[1]);for(;null!==(r=i.exec(e));)s.push(r[1]);for(;null!==(n=a.exec(e));)s.push(n[1]);for(var u=0,l=s;u=o.numPages||(s++,g(s))},m=function(){s<=1||(s--,g(s))},g=function(e){c?u=e:f(e)},h=function(){return(h=(0,n.Z)(i().mark((function e(t){var r,n,a,s,h;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c=!0,e.next=3,o.getPage(t);case 3:return r=e.sent,n=$(".swh-content").width(),a=Math.min(l,n/r.getViewport({scale:1}).width),s=r.getViewport({scale:a}),p.width=s.width,p.height=s.height,h={canvasContext:d,viewport:s},e.next=12,r.render(h);case 12:c=!1,null!==u&&(f(u),u=null),$("#pdf-page-num").text(t);case 15:case"end":return e.stop()}}),e)})))).apply(this,arguments)},f=function(e){return h.apply(this,arguments)},o=null,s=1,c=!1,u=null,l=1.5,p=$("#pdf-canvas")[0],d=p.getContext("2d"),e.next=14,r.e(509).then(r.t.bind(r,85719,23));case 14:(y=e.sent).GlobalWorkerOptions.workerSrc=(0,a.TT)("js/pdf.worker.min.js"),$(document).ready((0,n.Z)(i().mark((function e(){var r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return $("#pdf-prev").click(m),$("#pdf-next").click(b),e.prev=2,e.next=5,y.getDocument(t).promise;case 5:r=e.sent,o=r,$("#pdf-page-count").text(o.numPages),f(s),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(2),console.error(e.t0);case 14:$(window).on("resize",(function(){g(s)}));case 15:case"end":return e.stop()}}),e,null,[[2,11]])}))));case 17:case"end":return e.stop()}}),e)}))),c.apply(this,arguments)}},52560:function(e,t,r){"use strict";r.d(t,{BV:function(){return f},EK:function(){return d},Le:function(){return l},ap:function(){return c}});var n=r(15861),o=r(87757),i=r.n(o),a=r(59537),s=r(19215);function c(e,t){return u.apply(this,arguments)}function u(){return(u=(0,n.Z)(i().mark((function e(t,o){var c,u;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u=function(){return[{type:"output",filter:function(e,t,r){var n='class="';return c.helper.replaceRecursiveRegExp(e,(function(e,t,r,o){t=(0,s.decode)(t);var i=(r.match(/class="([^ "]+)/)||[])[1];if(r.includes(n)){var a=r.indexOf(n)+n.length;r=r.slice(0,a)+"hljs "+r.slice(a)}else r=r.slice(0,-1)+' class="hljs">';return i&&hljs.getLanguage(i)?r+hljs.highlight(t,{language:i}).value+o:r+t+o}),"
]*>","
","g")}}]},e.next=3,r.e(522).then(r.bind(r,83035));case 3:return c=e.sent,e.next=6,r.e(399).then(r.bind(r,68480));case 6:$(document).ready((0,n.Z)(i().mark((function e(){var r,n,s,l;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=new c.Converter({tables:!0,extensions:[u]}),(n=new URL(window.location.href)).searchParams.has("origin_url"))try{"github.com"===new URL(n.searchParams.get("origin_url")).hostname&&r.setFlavor("github")}catch(e){}return e.prev=3,e.next=6,fetch(o);case 6:return s=e.sent,(0,a.ry)(s),e.next=10,s.text();case 10:l=e.sent,$(t).addClass("swh-showdown"),$(t).html(swh.webapp.filterXSS(r.makeHtml(l))),e.next=18;break;case 15:e.prev=15,e.t0=e.catch(3),$(t).text("Readme bytes are not available");case 18:case"end":return e.stop()}}),e,null,[[3,15]])}))));case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function l(e,t){return p.apply(this,arguments)}function p(){return(p=(0,n.Z)(i().mark((function e(t,n){var o,a,s,c;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.e(46).then(r.bind(r,49429));case 2:o=e.sent,a=new o.Parser,s=a.parse(n,{toc:!1}),c=s.convert(o.ConverterHTML,{}),$(t).addClass("swh-org"),$(t).html(swh.webapp.filterXSS(c.toString())),$(".swh-org ul").first().remove(),$(".section-number").remove();case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function d(e,t){$(document).ready((0,n.Z)(i().mark((function r(){var n,o;return i().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,fetch(t);case 3:return n=r.sent,(0,a.ry)(n),r.next=7,n.text();case 7:o=r.sent,l(e,o),r.next=14;break;case 11:r.prev=11,r.t0=r.catch(0),$(e).text("Readme bytes are not available");case 14:case"end":return r.stop()}}),r,null,[[0,11]])}))))}function f(e,t){$(document).ready((0,n.Z)(i().mark((function r(){var n,o,s;return i().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,fetch(t);case 3:return n=r.sent,(0,a.ry)(n),r.next=7,n.text();case 7:o=r.sent,s="-*- mode: org -*-",-1!==o.indexOf(s)?l(e,o.replace(s,"")):($(e).addClass("swh-readme-txt"),$(e).html("").append($("
").text(o))),r.next=15;break;case 12:r.prev=12,r.t0=r.catch(0),$(e).text("Readme bytes are not available");case 15:case"end":return r.stop()}}),r,null,[[0,12]])}))))}},27341:function(e,t,r){"use strict";r.d(t,{D:function(){return i},p:function(){return a}});var n=r(19011),o=r(64487);function i(e){void 0!==e&&n.S1({dsn:e})}function a(e){o.Tb(e)}},92292:function(e,t,r){"use strict";r.d(t,{N:function(){return u}});var n=r(15861),o=r(87757),i=r.n(o);function a(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r',o=1;o<=r.pages;++o){var i="";o===r.page+1&&(i="selected"),n+='"}n+=" / "+r.pages+"",$(t.target).popover({title:"Jump to page",content:n,html:!0,placement:"top",sanitizeFn:swh.webapp.filterXSS}),$(t.target).popover("show"),$(".jump-to-page").on("change",(function(){$(".paginate_button.disabled").popover("hide");var t=parseInt($(this).val())-1;e.page(t).draw("page")}))}))})),e.on("preXhr.dt",(function(){$(".paginate_button.disabled").popover("hide")}))}function w(e){n=e}function E(e){return n[e]}$(document).on("collapsed.lte.pushmenu",(function(e){$("body").width()>=l.GI&&$(".swh-words-logo-swh").css("visibility","visible")})),$(document).on("shown.lte.pushmenu",(function(e){$(".swh-words-logo-swh").css("visibility","hidden")})),$(document).ready((function(){$(".swh-browse-link").click((function(e){var t=sessionStorage.getItem("last-browse-page");t&&(e.preventDefault(),window.location=t)}));var e=$(".main-sidebar");function t(){var r=$("body");r.hasClass("sidebar-collapse")&&!e.hasClass("swh-sidebar-collapsed")?(e.removeClass("swh-sidebar-expanded"),e.addClass("swh-sidebar-collapsed"),$(".swh-words-logo-swh").css("visibility","visible"),p.Z.set("sidebar-state","collapsed")):r.hasClass("sidebar-collapse")||e.hasClass("swh-sidebar-expanded")||(e.removeClass("swh-sidebar-collapsed"),e.addClass("swh-sidebar-expanded"),$(".swh-words-logo-swh").css("visibility","hidden"),p.Z.set("sidebar-state","expanded")),r.hasClass("hold-transition")&&setTimeout((function(){t()}))}e.on("transitionend",(function(e){t()})),t(),h(),$(window).resize((function(){h(),$("body").hasClass("sidebar-collapse")&&$("body").width()>=l.GI&&$(".swh-words-logo-swh").css("visibility","visible")})),c()(),$(".swh-browse-top-navigation").append($(".modal"));var r=null;function n(e){if(e.clientX&&e.clientY)for(var t,r=d(document.elementsFromPoint(e.clientX,e.clientY));!(t=r()).done;){var n=t.value;if("CODE"===n.nodeName||"PRE"===n.nodeName)return n}return null}function o(e,t){if(t){var r=$(t).find(".hljs-ln-code");r.length?(0,u.eO)(r[0],r[r.length-1]):(0,u.eO)(t.firstChild,t.lastChild),e.preventDefault()}}$(document).click((function(e){r=n(e)})),$(document).dblclick((function(e){(e.ctrlKey||e.metaKey)&&o(e,n(e))})),$(document).keydown((function(e){(e.ctrlKey||e.metaKey)&&"a"===e.key&&o(e,r)}));var i=0;i+=$(".swh-top-bar").height()||0,i+=$(".navbar").height()||0,$(window).scroll((function(){$(window).scrollTop()>i?$("#back-to-top").css("display","block"):$("#back-to-top").css("display","none")})),$("#swh-origins-search-top").submit((function(e){if(e.preventDefault(),e.target.checkValidity()){$(e.target).removeClass("was-validated");var t=$("#swh-origins-search-top-input").val().trim(),r=new URLSearchParams;r.append("q",t),r.append("with_visit",!0),r.append("with_content",!0),window.location=Urls.browse_search()+"?"+r.toString()}else $(e.target).addClass("was-validated")}))}));var x={};function S(e){x=e}function k(){return x}var D={};function T(e){D={};for(var t,r=d(e);!(t=r()).done;){var n=t.value;D[n.object_type]=n}}function A(){return D}function q(e){e?($("#swh-web-content").removeClass("container"),$("#swh-web-content").addClass("container-fluid")):($("#swh-web-content").removeClass("container-fluid"),$("#swh-web-content").addClass("container")),localStorage.setItem("swh-web-full-width",JSON.stringify(e)),$("#swh-full-width-switch").prop("checked",e)}function L(e){q($(e.target).prop("checked"))}function N(){var e=JSON.parse(localStorage.getItem("swh-web-full-width"));null!==e&&q(e)}function R(e){var t=e.indexOf(";"),r=e;return-1!==t&&(r=e.slice(0,t)),r.toLowerCase()===r}function C(e){return O.apply(this,arguments)}function O(){return(O=(0,o.Z)(a().mark((function e(t){var r,n,o,i,s,c,u;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.value.trim(),n="",!r.toLowerCase().startsWith("swh:")){e.next=16;break}if(!R(r)){e.next=14;break}return o=Urls.api_1_resolve_swhid(r),e.next=7,fetch(o);case 7:return i=e.sent,e.next=10,i.json();case 10:(s=e.sent).hasOwnProperty("exception")&&(n=s.reason),e.next=16;break;case 14:-1===(c=r.indexOf(";"))?(n="Invalid SWHID: all characters must be in lowercase. ",n+="Valid SWHID is "+r.toLowerCase()):(n="Invalid SWHID: the core part must be in lowercase. ",u=r.slice(0,c),n+="Valid SWHID is "+r.replace(u,u.toLowerCase()));case 16:t.setCustomValidity(n),$(t).siblings(".invalid-feedback").text(n);case 18:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function U(){return JSON.parse($("#swh_user_logged_in").text())}},44682:function(e,t,r){"use strict";r.d(t,{U:function(){return i}});var n=r(27856),o=r.n(n);function i(e){return o().sanitize(e)}o().addHook("uponSanitizeAttribute",(function(e,t){if("IMG"===e.nodeName&&"src"===t.attrName){if(t.attrValue.startsWith("data:image")||t.attrValue.startsWith("http:")||t.attrValue.startsWith("https:"))return;var r,n=swh.webapp.getBrowsedSwhObjectMetadata();if(!n.hasOwnProperty("directory"))return;r="directory"===n.object_type?n.object_id:n.directory;var o=Urls.browse_directory_resolve_content_path(r),i=t.attrValue,a=i;a.startsWith("/")||(a="/"+a);var s=new URL(window.location.origin+a);s.search&&(i=i.replace(s.search,"")),o+="?path="+encodeURIComponent(i),t.attrValue=o}}))},27856:function(e){e.exports=function(){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,r){return t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(e,r)}function r(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function n(e,o,i){return n=r()?Reflect.construct:function(e,r,n){var o=[null];o.push.apply(o,r);var i=new(Function.bind.apply(e,o));return n&&t(i,n.prototype),i},n.apply(null,arguments)}function o(e){return i(e)||a(e)||s(e)||u()}function i(e){if(Array.isArray(e))return c(e)}function a(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function s(e,t){if(e){if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1?r-1:0),o=1;o/gm),K=m(/\${[\w\W]*}/gm),Z=m(/^data-[\-\w.\u00B7-\uFFFF]/),X=m(/^aria-[\-\w]+$/),Q=m(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ee=m(/^(?:\w+script|data):/i),te=m(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),re=m(/^html$/i),ne=function(){return"undefined"==typeof window?null:window},oe=function(t,r){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var n=null,o="data-tt-policy-suffix";r.currentScript&&r.currentScript.hasAttribute(o)&&(n=r.currentScript.getAttribute(o));var i="dompurify"+(n?"#"+n:"");try{return t.createPolicy(i,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}};function ie(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ne(),r=function(e){return ie(e)};if(r.version="2.4.1",r.removed=[],!t||!t.document||9!==t.document.nodeType)return r.isSupported=!1,r;var n=t.document,i=t.document,a=t.DocumentFragment,s=t.HTMLTemplateElement,c=t.Node,u=t.Element,l=t.NodeFilter,p=t.NamedNodeMap,d=void 0===p?t.NamedNodeMap||t.MozNamedAttrMap:p,f=t.HTMLFormElement,h=t.DOMParser,m=t.trustedTypes,b=u.prototype,y=B(b,"cloneNode"),v=B(b,"nextSibling"),_=B(b,"childNodes"),R=B(b,"parentNode");if("function"==typeof s){var C=i.createElement("template");C.content&&C.content.ownerDocument&&(i=C.content.ownerDocument)}var ae=oe(m,n),se=ae?ae.createHTML(""):"",ce=i,ue=ce.implementation,le=ce.createNodeIterator,pe=ce.createDocumentFragment,de=ce.getElementsByTagName,fe=n.importNode,he={};try{he=U(i).documentMode?i.documentMode:{}}catch(e){}var ge={};r.isSupported="function"==typeof R&&ue&&void 0!==ue.createHTMLDocument&&9!==he;var me,be,ye=W,ve=J,_e=K,we=Z,Ee=X,xe=ee,Se=te,ke=Q,De=null,Te=O({},[].concat(o(j),o(I),o($),o(F),o(H))),Ae=null,qe=O({},[].concat(o(M),o(V),o(z),o(Y))),Le=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ne=null,Re=null,Ce=!0,Oe=!0,Ue=!1,Be=!1,je=!1,Ie=!1,$e=!1,Ge=!1,Fe=!1,Pe=!1,He=!0,Me=!1,Ve="user-content-",ze=!0,Ye=!1,We={},Je=null,Ke=O({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ze=null,Xe=O({},["audio","video","img","source","image","track"]),Qe=null,et=O({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),tt="http://www.w3.org/1998/Math/MathML",rt="http://www.w3.org/2000/svg",nt="http://www.w3.org/1999/xhtml",ot=nt,it=!1,at=null,st=O({},[tt,rt,nt],k),ct=["application/xhtml+xml","text/html"],ut="text/html",lt=null,pt=i.createElement("form"),dt=function(e){return e instanceof RegExp||e instanceof Function},ft=function(t){lt&<===t||(t&&"object"===e(t)||(t={}),t=U(t),me=me=-1===ct.indexOf(t.PARSER_MEDIA_TYPE)?ut:t.PARSER_MEDIA_TYPE,be="application/xhtml+xml"===me?k:S,De="ALLOWED_TAGS"in t?O({},t.ALLOWED_TAGS,be):Te,Ae="ALLOWED_ATTR"in t?O({},t.ALLOWED_ATTR,be):qe,at="ALLOWED_NAMESPACES"in t?O({},t.ALLOWED_NAMESPACES,k):st,Qe="ADD_URI_SAFE_ATTR"in t?O(U(et),t.ADD_URI_SAFE_ATTR,be):et,Ze="ADD_DATA_URI_TAGS"in t?O(U(Xe),t.ADD_DATA_URI_TAGS,be):Xe,Je="FORBID_CONTENTS"in t?O({},t.FORBID_CONTENTS,be):Ke,Ne="FORBID_TAGS"in t?O({},t.FORBID_TAGS,be):{},Re="FORBID_ATTR"in t?O({},t.FORBID_ATTR,be):{},We="USE_PROFILES"in t&&t.USE_PROFILES,Ce=!1!==t.ALLOW_ARIA_ATTR,Oe=!1!==t.ALLOW_DATA_ATTR,Ue=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Be=t.SAFE_FOR_TEMPLATES||!1,je=t.WHOLE_DOCUMENT||!1,Ge=t.RETURN_DOM||!1,Fe=t.RETURN_DOM_FRAGMENT||!1,Pe=t.RETURN_TRUSTED_TYPE||!1,$e=t.FORCE_BODY||!1,He=!1!==t.SANITIZE_DOM,Me=t.SANITIZE_NAMED_PROPS||!1,ze=!1!==t.KEEP_CONTENT,Ye=t.IN_PLACE||!1,ke=t.ALLOWED_URI_REGEXP||ke,ot=t.NAMESPACE||nt,t.CUSTOM_ELEMENT_HANDLING&&dt(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Le.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&dt(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Le.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Le.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Be&&(Oe=!1),Fe&&(Ge=!0),We&&(De=O({},o(H)),Ae=[],!0===We.html&&(O(De,j),O(Ae,M)),!0===We.svg&&(O(De,I),O(Ae,V),O(Ae,Y)),!0===We.svgFilters&&(O(De,$),O(Ae,V),O(Ae,Y)),!0===We.mathMl&&(O(De,F),O(Ae,z),O(Ae,Y))),t.ADD_TAGS&&(De===Te&&(De=U(De)),O(De,t.ADD_TAGS,be)),t.ADD_ATTR&&(Ae===qe&&(Ae=U(Ae)),O(Ae,t.ADD_ATTR,be)),t.ADD_URI_SAFE_ATTR&&O(Qe,t.ADD_URI_SAFE_ATTR,be),t.FORBID_CONTENTS&&(Je===Ke&&(Je=U(Je)),O(Je,t.FORBID_CONTENTS,be)),ze&&(De["#text"]=!0),je&&O(De,["html","head","body"]),De.table&&(O(De,["tbody"]),delete Ne.tbody),g&&g(t),lt=t)},ht=O({},["mi","mo","mn","ms","mtext"]),gt=O({},["foreignobject","desc","title","annotation-xml"]),mt=O({},["title","style","font","a","script"]),bt=O({},I);O(bt,$),O(bt,G);var yt=O({},F);O(yt,P);var vt=function(e){var t=R(e);t&&t.tagName||(t={namespaceURI:ot,tagName:"template"});var r=S(e.tagName),n=S(t.tagName);return!!at[e.namespaceURI]&&(e.namespaceURI===rt?t.namespaceURI===nt?"svg"===r:t.namespaceURI===tt?"svg"===r&&("annotation-xml"===n||ht[n]):Boolean(bt[r]):e.namespaceURI===tt?t.namespaceURI===nt?"math"===r:t.namespaceURI===rt?"math"===r&>[n]:Boolean(yt[r]):e.namespaceURI===nt?!(t.namespaceURI===rt&&!gt[n])&&!(t.namespaceURI===tt&&!ht[n])&&!yt[r]&&(mt[r]||!bt[r]):!("application/xhtml+xml"!==me||!at[e.namespaceURI]))},_t=function(e){x(r.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=se}catch(t){e.remove()}}},wt=function(e,t){try{x(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){x(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Ae[e])if(Ge||Fe)try{_t(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Et=function(e){var t,r;if($e)e=""+e;else{var n=D(e,/^[\r\n\t ]+/);r=n&&n[0]}"application/xhtml+xml"===me&&ot===nt&&(e=''+e+"");var o=ae?ae.createHTML(e):e;if(ot===nt)try{t=(new h).parseFromString(o,me)}catch(e){}if(!t||!t.documentElement){t=ue.createDocument(ot,"template",null);try{t.documentElement.innerHTML=it?"":o}catch(e){}}var a=t.body||t.documentElement;return e&&r&&a.insertBefore(i.createTextNode(r),a.childNodes[0]||null),ot===nt?de.call(t,je?"html":"body")[0]:je?t.documentElement:a},xt=function(e){return le.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},St=function(e){return e instanceof f&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},kt=function(t){return"object"===e(c)?t instanceof c:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},Dt=function(e,t,n){ge[e]&&w(ge[e],(function(e){e.call(r,t,n,lt)}))},Tt=function(e){var t;if(Dt("beforeSanitizeElements",e,null),St(e))return _t(e),!0;if(L(/[\u0080-\uFFFF]/,e.nodeName))return _t(e),!0;var n=be(e.nodeName);if(Dt("uponSanitizeElement",e,{tagName:n,allowedTags:De}),e.hasChildNodes()&&!kt(e.firstElementChild)&&(!kt(e.content)||!kt(e.content.firstElementChild))&&L(/<[/\w]/g,e.innerHTML)&&L(/<[/\w]/g,e.textContent))return _t(e),!0;if("select"===n&&L(/