environment-2bf92300.js 13 KB

123
  1. (function(){"use strict";var ee=Object.defineProperty,te=(t,e)=>ee(t,"name",{value:e,configurable:!0});function L(){return typeof Blob=="function"&&typeof PerformanceObserver=="function"&&typeof Intl!="undefined"&&typeof MutationObserver!="undefined"&&typeof URLSearchParams!="undefined"&&typeof WebSocket!="undefined"&&typeof IntersectionObserver!="undefined"&&typeof AbortController!="undefined"&&typeof queueMicrotask!="undefined"&&typeof TextEncoder!="undefined"&&typeof TextDecoder!="undefined"&&typeof customElements!="undefined"&&typeof HTMLDetailsElement!="undefined"&&"fromEntries"in Object&&"entries"in FormData.prototype&&"toggleAttribute"in Element.prototype&&"flatMap"in Array.prototype&&"replaceChildren"in Element.prototype}te(L,"capableBrowser");var re=Object.defineProperty,ne=(t,e)=>re(t,"name",{value:e,configurable:!0});function N(t){var e,r;const o=(r=(e=t.head)==null?void 0:e.querySelector('meta[name="expected-hostname"]'))==null?void 0:r.content;if(!o)return!1;const a=o.replace(/\.$/,"").split(".").slice(-2).join("."),m=t.location.hostname.replace(/\.$/,"").split(".").slice(-2).join(".");return a!==m}ne(N,"detectProxySite");let P;function R(){return`${Math.round(Math.random()*(Math.pow(2,31)-1))}.${Math.round(Date.now()/1e3)}`}function oe(t){const e=`GH1.1.${t}`,r=Date.now(),o=new Date(r+1*365*86400*1e3).toUTCString();let{domain:a}=document;a.endsWith(".github.com")&&(a="github.com"),document.cookie=`_octo=${e}; expires=${o}; path=/; domain=${a}; secure; samesite=lax`}function ae(){let t;const r=document.cookie.match(/_octo=([^;]+)/g);if(!r)return;let o=[0,0];for(const a of r){const[,m]=a.split("="),[,s,...c]=m.split("."),u=s.split("-").map(Number);u>o&&(o=u,t=c.join("."))}return t}function le(){try{const t=ae();if(t)return t;const e=R();return oe(e),e}catch(t){return P||(P=R()),P}}var b="<unknown>";function se(t){var e=t.split(`
  2. `);return e.reduce(function(r,o){var a=ue(o)||de(o)||ge(o)||be(o)||he(o);return a&&r.push(a),r},[])}var ie=/^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,ce=/\((\S*)(?::(\d+))(?::(\d+))\)/;function ue(t){var e=ie.exec(t);if(!e)return null;var r=e[2]&&e[2].indexOf("native")===0,o=e[2]&&e[2].indexOf("eval")===0,a=ce.exec(e[2]);return o&&a!=null&&(e[2]=a[1],e[3]=a[2],e[4]=a[3]),{file:r?null:e[2],methodName:e[1]||b,arguments:r?[e[2]]:[],lineNumber:e[3]?+e[3]:null,column:e[4]?+e[4]:null}}var fe=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;function de(t){var e=fe.exec(t);return e?{file:e[2],methodName:e[1]||b,arguments:[],lineNumber:+e[3],column:e[4]?+e[4]:null}:null}var me=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,pe=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function ge(t){var e=me.exec(t);if(!e)return null;var r=e[3]&&e[3].indexOf(" > eval")>-1,o=pe.exec(e[3]);return r&&o!=null&&(e[3]=o[1],e[4]=o[2],e[5]=null),{file:e[3],methodName:e[1]||b,arguments:e[2]?e[2].split(","):[],lineNumber:e[4]?+e[4]:null,column:e[5]?+e[5]:null}}var ve=/^\s*(?:([^@]*)(?:\((.*?)\))?@)?(\S.*?):(\d+)(?::(\d+))?\s*$/i;function he(t){var e=ve.exec(t);return e?{file:e[3],methodName:e[1]||b,arguments:[],lineNumber:+e[4],column:e[5]?+e[5]:null}:null}var ye=/^\s*at (?:((?:\[object object\])?[^\\/]+(?: \[as \S+\])?) )?\(?(.*?):(\d+)(?::(\d+))?\)?\s*$/i;function be(t){var e=ye.exec(t);return e?{file:e[2],methodName:e[1]||b,arguments:[],lineNumber:+e[3],column:e[4]?+e[4]:null}:null}var we=Object.defineProperty,E=(t,e)=>we(t,"name",{value:e,configurable:!0});function S(t){const e=document.querySelectorAll(t);if(e.length>0)return e[e.length-1]}E(S,"queryLast");function I(){const t=S("meta[name=analytics-location]");return t?t.content:window.location.pathname}E(I,"pagePathname");function B(){const t=S("meta[name=analytics-location-query-strip]");let e="";t||(e=window.location.search);const r=S("meta[name=analytics-location-params]");r&&(e+=(e?"&":"?")+r.content);for(const o of document.querySelectorAll("meta[name=analytics-param-rename]")){const a=o.content.split(":",2);e=e.replace(new RegExp(`(^|[?&])${a[0]}($|=)`,"g"),`$1${a[1]}$2`)}return e}E(B,"pageQuery");function M(){return`${window.location.protocol}//${window.location.host}${I()+B()}`}E(M,"requestUri");var Ee=Object.defineProperty,f=(t,e)=>Ee(t,"name",{value:e,configurable:!0});let X=!1,Y=0;const Se=Date.now();function q(t){t.error&&T(O(_(t.error)))}f(q,"reportEvent");async function D(t){if(!!t.promise)try{await t.promise}catch(e){e&&e.name!=="AbortError"&&!(e.response instanceof Response)&&T(O(_(e)))}}f(D,"reportPromiseRejectionEvent");function U(t,e={}){T(O(_(t),e))}f(U,"reportError");async function T(t){var e,r;if(!G())return;const o=(r=(e=document.head)==null?void 0:e.querySelector('meta[name="browser-errors-url"]'))==null?void 0:r.content;if(!!o){if(H(t.error.stacktrace)){X=!0;return}Y++;try{await fetch(o,{method:"post",body:JSON.stringify(t)})}catch(a){}}}f(T,"report");function _(t){return{type:t.name,value:t.message,stacktrace:A(t)}}f(_,"formatError");function O(t,e={}){return Object.assign({error:t,sanitizedUrl:M()||window.location.href,readyState:document.readyState,referrer:document.referrer,timeSinceLoad:Math.round(Date.now()-Se),user:F()||void 0},e)}f(O,"errorContext");function A(t){var e;const r=V(t),o=(e=t.framesToPop)!=null?e:0;return o===0?r:r.slice(o)}f(A,"stacktrace");function V(t){return se(t.stack||"").map(e=>({filename:e.file||"",function:String(e.methodName),lineno:(e.lineNumber||0).toString(),colno:(e.column||0).toString()}))}f(V,"parseStackTrace");const W=/(chrome|moz|safari)-extension:\/\//;function H(t){return t.some(e=>W.test(e.filename)||W.test(e.function))}f(H,"isExtensionError");function F(){var t,e;const r=(e=(t=document.head)==null?void 0:t.querySelector('meta[name="user-login"]'))==null?void 0:e.content;return r||`anonymous-${le()}`}f(F,"pageUser");let x=!1;window.addEventListener("pageshow",()=>x=!1),window.addEventListener("pagehide",()=>x=!0);function G(){return!x&&!X&&Y<10&&L()&&!N(document)}f(G,"reportable"),typeof BroadcastChannel=="function"&&new BroadcastChannel("shared-worker-error").addEventListener("message",e=>{U(e.data.error)}),window.addEventListener("error",q),window.addEventListener("unhandledrejection",D),window.location.hash==="#b00m"&&setTimeout(()=>{throw new Error("b00m")}),window.requestIdleCallback=window.requestIdleCallback||function(t){var e=Date.now();return setTimeout(function(){t({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-e))}})},1)},window.cancelIdleCallback=window.cancelIdleCallback||function(t){clearTimeout(t)};function Te(t,e){return e={exports:{}},t(e,e.exports),e.exports}var _e=Te(function(t,e){(function(){var r=window,o=document;function a(s){var c=["MSIE ","Trident/","Edge/"];return new RegExp(c.join("|")).test(s)}function m(){if("scrollBehavior"in o.documentElement.style&&r.__forceSmoothScrollPolyfill__!==!0)return;var s=r.HTMLElement||r.Element,c=468,u=a(r.navigator.userAgent)?1:0,d={scroll:r.scroll||r.scrollTo,scrollBy:r.scrollBy,elementScroll:s.prototype.scroll||g,scrollIntoView:s.prototype.scrollIntoView},$=r.performance&&r.performance.now?r.performance.now.bind(r.performance):Date.now;function g(n,l){this.scrollLeft=n,this.scrollTop=l}function y(n){return .5*(1-Math.cos(Math.PI*n))}function w(n){if(n===null||typeof n!="object"||n.behavior===void 0||n.behavior==="auto"||n.behavior==="instant")return!0;if(typeof n=="object"&&n.behavior==="smooth")return!1;throw new TypeError("behavior member of ScrollOptions "+n.behavior+" is not a valid value for enumeration ScrollBehavior.")}function Q(n,l){if(l==="Y")return n.clientHeight+u<n.scrollHeight;if(l==="X")return n.clientWidth+u<n.scrollWidth}function K(n,l){var i=r.getComputedStyle(n,null)["overflow"+l];return i==="auto"||i==="scroll"}function Ce(n){var l=Q(n,"Y")&&K(n,"Y"),i=Q(n,"X")&&K(n,"X");return l||i}function ke(n){var l;do n=n.parentNode,l=n===o.body;while(l===!1&&Ce(n)===!1);return l=null,n}function Z(n){var l=$(),i,v,h,p=(l-n.startTime)/c;p=p>1?1:p,i=y(p),v=n.startX+(n.x-n.startX)*i,h=n.startY+(n.y-n.startY)*i,n.method.call(n.scrollable,v,h),(v!==n.x||h!==n.y)&&r.requestAnimationFrame(Z.bind(r,n))}function j(n,l,i){var v,h,p,k,Le=$();n===o.body?(v=r,h=r.scrollX||r.pageXOffset,p=r.scrollY||r.pageYOffset,k=d.scroll):(v=n,h=n.scrollLeft,p=n.scrollTop,k=g),Z({scrollable:v,method:k,startTime:Le,startX:h,startY:p,x:l,y:i})}r.scroll=r.scrollTo=function(){if(arguments[0]!==void 0){if(w(arguments[0])===!0){d.scroll.call(r,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:r.scrollX||r.pageXOffset,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:r.scrollY||r.pageYOffset);return}j.call(r,o.body,arguments[0].left!==void 0?~~arguments[0].left:r.scrollX||r.pageXOffset,arguments[0].top!==void 0?~~arguments[0].top:r.scrollY||r.pageYOffset)}},r.scrollBy=function(){if(arguments[0]!==void 0){if(w(arguments[0])){d.scrollBy.call(r,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:0,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:0);return}j.call(r,o.body,~~arguments[0].left+(r.scrollX||r.pageXOffset),~~arguments[0].top+(r.scrollY||r.pageYOffset))}},s.prototype.scroll=s.prototype.scrollTo=function(){if(arguments[0]!==void 0){if(w(arguments[0])===!0){if(typeof arguments[0]=="number"&&arguments[1]===void 0)throw new SyntaxError("Value couldn't be converted");d.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left:typeof arguments[0]!="object"?~~arguments[0]:this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top:arguments[1]!==void 0?~~arguments[1]:this.scrollTop);return}var n=arguments[0].left,l=arguments[0].top;j.call(this,this,typeof n=="undefined"?this.scrollLeft:~~n,typeof l=="undefined"?this.scrollTop:~~l)}},s.prototype.scrollBy=function(){if(arguments[0]!==void 0){if(w(arguments[0])===!0){d.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop);return}this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior})}},s.prototype.scrollIntoView=function(){if(w(arguments[0])===!0){d.scrollIntoView.call(this,arguments[0]===void 0?!0:arguments[0]);return}var n=ke(this),l=n.getBoundingClientRect(),i=this.getBoundingClientRect();n!==o.body?(j.call(this,n,n.scrollLeft+i.left-l.left,n.scrollTop+i.top-l.top),r.getComputedStyle(n).position!=="fixed"&&r.scrollBy({left:l.left,top:l.top,behavior:"smooth"})):r.scrollBy({left:i.left,top:i.top,behavior:"smooth"})}}t.exports={polyfill:m}})()});_e.polyfill;function Oe(){const t=document.createElement("div");return t.style.cssText="-ms-user-select: element; user-select: contain;",t.style.getPropertyValue("-ms-user-select")==="element"||t.style.getPropertyValue("-ms-user-select")==="contain"||t.style.getPropertyValue("user-select")==="contain"}function $e(t){if(!(t.target instanceof Element))return;const e=t.target.closest(".user-select-contain");if(!e)return;const r=window.getSelection();if(!r.rangeCount)return;const o=r.getRangeAt(0).commonAncestorContainer;e.contains(o)||r.selectAllChildren(e)}window.getSelection&&!Oe()&&document.addEventListener("click",$e);var je=Object.defineProperty,z=(t,e)=>je(t,"name",{value:e,configurable:!0});self.System=self.System||(()=>{const t={},e={},r=z(a=>a.replace(/-[a-f0-9]{8,}\.js$/,".js"),"stripHash"),o={register(a,m){const s=r(`./${((document.currentScript||{}).src||"").split("?").shift().split("/").pop()}`),c={},d=m(z((g,y)=>y?c[g]=y:Object.assign(c,g),"collector"),o),$=a.map((g,y)=>o.import(r(g)).then(d.setters[y]));t[s]=Promise.all($).then(()=>(d.execute(),c)),e[s]&&(e[s](t[s]),delete e[s])},import(a){return t[a]||(t[a]=new Promise((m,s)=>{const c=setTimeout(()=>{s(new Error(`could not resolve ${a}, timeout after 10 seconds`))},1e4),u=document.querySelector(`script[data-src][data-module-id="${a}"]`);u&&(u.setAttribute("src",u.getAttribute("data-src")),u.removeAttribute("data-src"),u.addEventListener("error",()=>{clearTimeout(c),s(new Error(`could not resolve ${a}, error loading the module`))})),e[a]=d=>{clearTimeout(c),m(d)}}))}};return o})();var Pe=Object.defineProperty,xe=(t,e)=>Pe(t,"name",{value:e,configurable:!0});Object.hasOwn||Object.defineProperty(Object,"hasOwn",{value(t,e){if(t==null)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(t),e)},configurable:!0,enumerable:!1,writable:!0});let J=!1;function C(){}xe(C,"noop");try{const t=Object.create({},{signal:{get(){J=!0}}});window.addEventListener("test",C,t),window.removeEventListener("test",C,t)}catch(t){}if(!J){const t=EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener=function(e,r,o){if(typeof o=="object"&&"signal"in o&&o.signal instanceof AbortSignal){if(o.signal.aborted)return;t.call(o.signal,"abort",()=>{this.removeEventListener(e,r,o)})}return t.call(this,e,r,o)}}})();
  3. //# sourceMappingURL=environment-7299e0ab.js.map