self.System=self.System||(()=>{const t={},e={},n=t=>t.replace(/^.\/(\w+)-[a-f0-9]{8,}.js$/,"./$1.js"),o={register(r,i){const s=n(`./${((document.currentScript||{}).src||"").split("?").shift().split("/").pop()}`),a={},c=i((t,e)=>e?a[t]=e:Object.assign(a,t),o);t[s]=Promise.all(r.map((t,e)=>o.import(n(t)).then(c.setters[e]))).then(()=>(c.execute(),a)).catch(t=>{throw t.message=`evaluating module ${s}: ${t.message}`,t}),e[s]&&(e[s](t[s]),delete e[s])},import:n=>t[n]||(t[n]=new Promise((t,o)=>{const r=setTimeout(()=>{o(new Error(`could not resolve ${n}`))},1e4);e[n]=(e=>{clearTimeout(r),t(e)})}))};return o})(),System.register([],function(t,e){"use strict";return{execute:function(){function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function n(t,n){return!n||"object"!==e(n)&&"function"!=typeof n?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):n}function o(t){var e="function"==typeof Map?new Map:void 0;return(o=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,o)}function o(){return r(t,arguments,s(this).constructor)}return o.prototype=Object.create(t.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),i(o,t)})(t)}function r(t,e,n){return(r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(sn){return!1}}()?Reflect.construct:function(t,e,n){var o=[null];o.push.apply(o,e);var r=new(Function.bind.apply(t,o));return n&&i(r,n.prototype),r}).apply(null,arguments)}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}t({$:async function(t,e){const n=Et(t,e);n.headers.set("Accept","application/json");const o=await self.fetch(n),r=new wt(o);return yt(o,r),o.json()},A:function(){return bn()&&yn()||_n()},B:_n,C:function(t,e,n){return new Promise(function(o,r){window.u2f.register(t,e,n,function(t){"registrationData"in t&&t.registrationData?o(t):r(new An("Device registration failed",Sn(t)))})})},D:async function(t){const e=un(sn,pn,t),n=await navigator.credentials.create(e);return un(an,mn,n)},E:async function(t){const e=(n=t,"low"===n||"medium"===n||"high"===n||"two_factor"===n?n:null);var n;if(!e)throw new Error("invariant violation: level");return"true"===await xt(`/sessions/in_sudo?requested_access_level=${e}`,{headers:{accept:"application/json"}})||async function(){if(xn)return!1;xn=!0,kn=!1;const t=(await async function(){const t=document.body;if(!t)throw new Error("invariant violation: body");const e=l(document,"link[rel=sudo-modal]",HTMLLinkElement),n=document.querySelector(".js-sudo-prompt");if(n instanceof HTMLTemplateElement)return n;if(e){const n=await kt(document,function(t){const e=new URL(t,window.location.origin),n=new URLSearchParams(e.search.slice(1));return n.set("webauthn-support",En()),e.search=n.toString(),e.toString()}(e.href));return t.appendChild(n),l(document,".js-sudo-prompt",HTMLTemplateElement)}throw new Error("couldn't load sudo prompt")}()).content.cloneNode(!0);if(!(t instanceof DocumentFragment))throw new Error("invariant violation: content instanceof DocumentFragment");const e=await Fe({content:t});return await new Promise(t=>{e.addEventListener("dialog:remove",function(){xn=!1,t()},{once:!0})}),kn}()},F:function(t,e,n){var o=n||HTMLInputElement,r=t.elements.namedItem(e);if(r instanceof o)return r;throw new a("Element not found by name: <".concat(o.name,"> ").concat(e))},H:function(t,e){if("boolean"==typeof e){if(!(t instanceof HTMLInputElement))throw new TypeError("only checkboxes can be set to boolean value");t.checked=e}else{if("checkbox"===t.type)throw new TypeError("checkbox can't be set to string value");t.value=e}he(t,"change",!1)},I:function(t,e){return new Promise(function(n,o){!function r(i){function s(t){switch(t.status){case 200:n(t);break;case 202:setTimeout(()=>r(1.5*i),i);break;default:o(new wt(t))}}Tt(t,e).then(function s(r){switch(r.status){case 200:n(r);break;case 202:setTimeout(()=>(function r(i){function s(t){switch(t.status){case 200:n(t);break;case 202:setTimeout(()=>r(1.5*i),i);break;default:o(new wt(t))}}Tt(t,e).then(s,o)})(1.5*i),i);break;default:o(new wt(r))}},o)}(1e3)})},J:Dn,K:ne,L:ee,M:function(t,e){0===Object.keys(Do.children).length&&document.addEventListener("keydown",Ro);var n=function(t){return t.split(",").map(function(t){return t.split(" ")})}(e||t.getAttribute("data-hotkey")||"").map(function(e){return Do.insert(e).add(t)});Io.set(t,n)},N:function(t){var e=Io.get(t);if(e&&e.length){var n=!0,o=!1,r=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done);n=!0){var a=i.value;a&&a.delete(t)}}catch(c){o=!0,r=c}finally{try{n||null==s.return||s.return()}finally{if(o)throw r}}}0===Object.keys(Do.children).length&&document.removeEventListener("keydown",Ro)},P:function(t,e,n){function o(e){const{currentTarget:r}=e;r&&(r.removeEventListener(t,n),r.removeEventListener("blur",o))}ye(e,function(e){e.addEventListener(t,n),e.addEventListener("blur",o)})},Q:function(){return Promise.resolve()},R:function(t,e){return 1===t?e:e.endsWith("y")?`${e.substring(0,e.length-1)}ies`:`${e}s`},S:function(t,e){t.removeEventListener("keydown",nn),t.removeEventListener("keyup",on),t.removeEventListener("input",rn);const n=tn.get(t);n&&(null!=n.timer&&n.listener===e&&clearTimeout(n.timer),tn.delete(t))},T:ge,V:Wo,W:async function(t,e){const n=Zo.get(t);n&&n.abort();return tr(t,e)},X:$o,Z:function(t){Oe.push(t)},_:async function(){await async function(){const t=document.querySelector("link[rel=sso-session]"),e=document.querySelector("meta[name=sso-expires-around]");if(!(t instanceof HTMLLinkElement))return!0;if(!function(t){if(!(t instanceof HTMLMetaElement))return!0;const e=parseInt(t.content);return(new Date).getTime()/1e3>e}(e))return!0;const n=t.href,o=await Tt(n,{headers:{Accept:"application/json"}});return await o.json()}()||(or||(or=async function(){const t=l(document,"link[rel=sso-modal]",HTMLLinkElement),e=await Fe({content:kt(document,t.href),dialogClass:"sso-modal"});let n=null;const o=window.external;if(o.ssoComplete=function(t){t.error?nr(n=!1):(nr(n=!0),function(t){const e=document.querySelector("meta[name=sso-expires-around]");e&&e.setAttribute("content",t)}(t.expiresAround),window.focus()),o.ssoComplete=null},await function(t){return new Promise(e=>{t.addEventListener("dialog:remove",e,{once:!0})})}(e),!n)throw new Error("sso prompt canceled")}().then(rr).catch(rr)),await or)},a$:qo,a0:Bo,a1:function(t,e){const n=t.currentTarget;if(!(n instanceof HTMLAnchorElement))throw new Error("invariant: app/assets/modules/github/pjax.js:39");if(0!==t.button||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey)return;if(location.protocol!==n.protocol||location.hostname!==n.hostname)return;if(n.href.indexOf("#")>-1&&kr(n)===kr(location))return;if(t.defaultPrevented)return;const o={url:n.href,container:null,target:n};Object.assign(o,e),mr(n,"pjax:click",{options:o,relatedEvent:t})&&(vr(o),t.preventDefault(),mr(n,"pjax:clicked",{options:o}))},a2:function(t,e){const n=t.currentTarget;if(!(n instanceof HTMLFormElement))throw new Error("invariant: app/assets/modules/github/pjax.js:82");const o={type:(n.method||"GET").toUpperCase(),url:n.action,container:null,target:n};if(Object.assign(o,e),"GET"===o.type){if(n.querySelector("input[type=file]"))return;if("string"!=typeof o.url)throw new Error("invariant: app/assets/modules/github/pjax.js:97");const t=xr(o.url);t.search+=(t.search?"&":"")+ge(n),o.url=t.toString()}else o.data=new FormData(n);vr(o),t.preventDefault()},a3:gr,a5:Mo,a6:ar,a7:sr,a8:function(){return hr},a9:Pr,aA:me,aB:Xo,aC:Jo,aD:function(t,e){li(t),ci(t,e)},aF:function(t){const e=t.getAttribute("data-hydro-click-payload")||"",n=t.getAttribute("data-hydro-click-hmac")||"",o=t.getAttribute("data-hydro-client-context")||"";se({hydroEventPayload:e,hydroEventHmac:n,hydroClientContext:o},!0)},aG:function(t){const e=tn.get(t);e&&e.listener.call(null,t)},aH:async function(t,e){if(Zo.get(t))return;const n=new XMLHttpRequest,o=d(t,"data-url"),r=t.hasAttribute("data-retain-focus");n.open("GET",o),n.setRequestHeader("Accept","text/html"),n.setRequestHeader("X-Requested-With","XMLHttpRequest"),null!=e&&n.setRequestHeader("X-Request-Purpose",e);Zo.set(t,n);try{const e=await function(t,e){return new Promise((n,o)=>{t.onload=(()=>{200===t.status?n(t.responseText):o(new Error(`XMLHttpRequest ${t.statusText}`))}),t.onerror=o,t.send(e||null)})}(n);if(Xo(t,r))throw new Error("element had interactions");return tr(t,e,r)}catch(i){"XMLHttpRequest abort"!==i.message&&console.warn("Failed to update content",t,i)}finally{Zo.delete(t)}},aI:Xr,aJ:function(){const t=Ee[Ae()-1];if(t)return t.url},aK:function(){const t=Ee[Ae()+1];if(t)return t.url},aL:function(t,e){const n=t.closest("[data-pjax-container]");if(!n)throw new Error(`no pjax container for ${function(t){const e=[];let n=t;for(;n&&(e.push(cr(n)),!(n instanceof window.Window))&&9!==n.nodeType&&!n.id;){if(n.parentNode instanceof Document){e.push("#document");break}if(!(n.parentNode instanceof HTMLElement))break;n=n.parentNode}return e.reverse().join(" > ")}(t)}`);const o=Lr(n),r=xr(t.href);return r.search+=`${r.search?"&":""}_pjax=${encodeURIComponent(o)}`,Tt(r.href,{headers:Object.assign({Accept:"text/html","X-PJAX":"true","X-PJAX-Container":o},e&&e.headers)})},aM:function(t,e){lr.set(t,e),n=e,n.catch(()=>{});var n},aN:je,aO:function(t){return yi.get(t)},aP:function(t){const e=t.getAttribute("data-details-container")||".js-details-container",n=c(t,e).classList;return n.contains("Details--on")||n.contains("open")},aQ:En,aR:async function(){return window.PublicKeyCredential&&window.PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable&&await window.PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable()?"supported":"unsupported"},aS:function(){return bn()&&yn()||Tn()},aT:Tn,aU:function(t,e,n){return new Promise(function(o,r){window.u2f.sign(t,e,n,function(t){"keyHandle"in t&&t.keyHandle?o(t):r(new An("Signing request failed",Sn(t)))})})},aV:async function(t){const e=un(sn,gn,t),n=await navigator.credentials.get(e);return un(an,vn,n)},aW:function(t,e,n){let o=t.value.substring(0,t.selectionEnd||0),r=t.value.substring(t.selectionEnd||0);o=o.replace(e,n),r=r.replace(e,n),t.value=o+r,t.selectionStart=o.length,t.selectionEnd=o.length,t.dispatchEvent(new CustomEvent("change",{bubbles:!0,cancelable:!1}))},aX:ai,aY:de,aZ:fe,a_:function(t){Ne.push(t)},aa:Ho,ab:function(t){const e=t.split("‍");let n=0;for(const o of e){const t=Array.from(o.split(/[\ufe00-\ufe0f]/).join("")).length;n+=t}return n/e.length},ac:Qo,ad:qe,ae:function(t){return Tt(t.action,{method:t.method,body:new FormData(t)})},af:function(t,e){for(const n in e){const o=e[n],r=t.elements.namedItem(n);r instanceof HTMLInputElement?r.value=o:r instanceof HTMLTextAreaElement&&(r.value=o)}},ag:Rr,ah:ir,ai:ke,aj:function(t,e){window.ga("provide",t,e)},ak:function(t){window.ga("set",{location:t})},al:function(t){window.ga("set",{title:t})},am:function(t,e){window.ga("set",t,e)},an:function(t,e={page:""}){e.page=t||"",window.ga("send","pageview",e)},ao:function(t,e,n={}){window.ga("create",t,e,n),window.ga("set","transport","sendBeacon"in window.navigator?"beacon":"xhr")},ap:function(t,e={}){window.ga(()=>{window.ga("require",t,e)})},aq:function(t){void 0===t.interactive&&(t.interactive=!0);window.ga("send","event",t.category,t.action,t.label,t.value,{nonInteraction:!t.interactive})},as:Br,at:function(t){let e=t;"string"==typeof e&&(e=e.replace(/,/g,""));return parseFloat(e)},au:function(t){return`${t}`.replace(/(^|[^\w.])(\d{4,})/g,(t,e,n)=>e+n.replace(/\d(?=(?:\d\d\d)+(?!\d))/g,"$&,"))},av:function(t,e){const n=1===t?"data-singular-string":"data-plural-string",o=e.getAttribute(n);if(null==o)return;e.textContent=o},aw:function(t,e){const n=t.selectionEnd||0,o=t.value.substring(0,n),r=t.value.substring(n),i=""===t.value||o.match(/\n$/)?"":"\n";t.value=o+i+e+r,t.selectionStart=n+e.length,t.selectionEnd=n+e.length,t.dispatchEvent(new CustomEvent("change",{bubbles:!0,cancelable:!1})),t.focus()},ay:ci,az:si,b:l,b2:Gr,b3:jn,b5:Mn,b6:async function(t){return yi.get(t)||Ei(await(e=t,n="codeEditor:ready",new Promise(t=>{e.addEventListener(n,t,{once:!0})})));var e,n},b7:In,b8:function(t){const e=t.getBoundingClientRect();return{top:e.top+window.pageYOffset,left:e.left+window.pageXOffset}},b9:function(){return new Promise(window.requestAnimationFrame)},bb:_i,d:pt,e:te,f:c,g:mt,h:d,i:Tt,j:se,l:pe,m:function(t){const e=t.getAttribute("data-hydro-view")||"",n=t.getAttribute("data-hydro-view-hmac")||"",o=t.getAttribute("data-hydro-client-context")||"";se({hydroEventPayload:e,hydroEventHmac:n,hydroClientContext:o},!0)},n:kt,o:ye,p:function(t,e){function n(t){const{currentTarget:o}=t;o&&(o.removeEventListener("input",e),o.removeEventListener("blur",n))}ye(t,function(t){t.addEventListener("input",e),t.addEventListener("blur",n)})},q:Me,r:Re,s:xt,t:u,u:function(t,e=0,{start:n=!1,middle:o=!1,once:r=!1}={}){return qe(t,e,{start:n,middle:o,once:r})},v:function(t,e){const n=new URL(t,window.location.origin),o=e?Object.assign({},e):{},r=n.hash.match(/^#csrf-token=([A-Za-z0-9+\/=]+)$/);if(!r)throw new TypeError("Expected csrfRequest(url) to have an associated #csrf-token");n.hash="";const i=n.toString();o.mode="same-origin";const s=new Request(i,o);return s.headers.append("Scoped-CSRF-Token",r[1]),s},w:Fe,x:vt,z:function(t,e,n={wait:null}){tn.set(t,{keypressed:!1,inputed:!1,timer:void 0,listener:e,wait:null!=n.wait?n.wait:100}),t.addEventListener("keydown",nn),t.addEventListener("keyup",on),t.addEventListener("input",rn)}});var a=function(t){function e(t){var o;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(o=n(this,s(e).call(this,t))).name="QueryError",o.framesToPop=1,o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&i(t,e)}(e,o(Error)),e}();function c(t,e,n){var o=n||HTMLElement,r=t.closest(e);if(r instanceof o)return r;throw new a("Element not found: <".concat(o.name,"> ").concat(e))}function l(t,e,n){var o=n||HTMLElement,r=t.querySelector(e);if(r instanceof o)return r;throw new a("Element not found: <".concat(o.name,"> ").concat(e))}function u(t,e,n){var o=n||HTMLElement,r=[],i=!0,s=!1,a=void 0;try{for(var c,l=t.querySelectorAll(e)[Symbol.iterator]();!(i=(c=l.next()).done);i=!0){var u=c.value;u instanceof o&&r.push(u)}}catch(d){s=!0,a=d}finally{try{i||null==l.return||l.return()}finally{if(s)throw a}}return r}function d(t,e){var n=t.getAttribute(e);if(null!=n)return n;throw new a("Attribute not found on element: ".concat(e))}const f=new WeakMap,h=(t("b0",t=>(...e)=>{const n=t(...e);return f.set(n,!0),n}),t=>"function"==typeof t&&f.has(t)),p=void 0!==window.customElements&&void 0!==window.customElements.polyfillWrapFlushCallback,m=(t,e,n=null)=>{for(;e!==n;){const n=e.nextSibling;t.removeChild(e),e=n}},g={},v={},w=`{{lit-${String(Math.random()).slice(2)}}}`,b=`\x3c!--${w}--\x3e`,y=new RegExp(`${w}|${b}`),E="$lit$";class _{constructor(t,e){this.parts=[],this.element=e;const n=[],o=[],r=document.createTreeWalker(e.content,133,null,!1);let i=0,s=-1,a=0;const{strings:c,values:{length:l}}=t;for(;a0;){const e=c[a],n=L.exec(e)[2],o=n.toLowerCase()+E,r=t.getAttribute(o);t.removeAttribute(o);const i=r.split(y);this.parts.push({type:"attribute",index:s,name:n,strings:i}),a+=i.length-1}}"TEMPLATE"===t.tagName&&(o.push(t),r.currentNode=t.content)}else if(3===t.nodeType){const e=t.data;if(e.indexOf(w)>=0){const o=t.parentNode,r=e.split(y),i=r.length-1;for(let e=0;e{const n=t.length-e.length;return n>=0&&t.slice(n)===e},x=t=>-1!==t.index,k=()=>document.createComment(""),L=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=\/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;class A{constructor(t,e,n){this.__parts=[],this.template=t,this.processor=e,this.options=n}update(t){let e=0;for(const n of this.__parts)void 0!==n&&n.setValue(t[e]),e++;for(const n of this.__parts)void 0!==n&&n.commit()}_clone(){const t=p?this.template.element.content.cloneNode(!0):document.importNode(this.template.element.content,!0),e=[],n=this.template.parts,o=document.createTreeWalker(t,133,null,!1);let r,i=0,s=0,a=o.nextNode();for(;i-1||n)&&-1===t.indexOf("--\x3e",r+1);const i=L.exec(t);e+=null===i?t+(n?S:b):t.substr(0,i.index)+i[1]+i[2]+E+i[3]+w}return e+=this.strings[t]}getTemplateElement(){const t=document.createElement("template");return t.innerHTML=this.getHTML(),t}}const j=t("b1",t=>null===t||!("object"==typeof t||"function"==typeof t)),M=t=>Array.isArray(t)||!(!t||!t[Symbol.iterator]);class D{constructor(t,e,n){this.dirty=!0,this.element=t,this.name=e,this.strings=n,this.parts=[];for(let o=0;othis.handleEvent(t))}setValue(t){this.__pendingValue=t}commit(){for(;h(this.__pendingValue);){const t=this.__pendingValue;this.__pendingValue=g,t(this)}if(this.__pendingValue===g)return;const t=this.__pendingValue,e=this.value,n=null==t||null!=e&&(t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive),o=null!=t&&(null==e||n);n&&this.element.removeEventListener(this.eventName,this.__boundHandleEvent,this.__options),o&&(this.__options=F(t),this.element.addEventListener(this.eventName,this.__boundHandleEvent,this.__options)),this.value=t,this.__pendingValue=g}handleEvent(t){"function"==typeof this.value?this.value.call(this.eventContext||this.element,t):this.value.handleEvent(t)}}const F=t=>t&&(H?{capture:t.capture,passive:t.passive,once:t.once}:t.capture);const U=new class{handleAttributeExpressions(t,e,n,o){const r=e[0];return"."===r?new N(t,e.slice(1),n).parts:"@"===r?[new q(t,e.slice(1),o.eventContext)]:"?"===r?[new O(t,e.slice(1),n)]:new D(t,e,n).parts}handleTextExpression(t){return new P(t)}};function V(t){let e=W.get(t.type);void 0===e&&(e={stringsArray:new WeakMap,keyString:new Map},W.set(t.type,e));let n=e.stringsArray.get(t.strings);if(void 0!==n)return n;const o=t.strings.join(w);return void 0===(n=e.keyString.get(o))&&(n=new _(t,t.getTemplateElement()),e.keyString.set(o,n)),e.stringsArray.set(t.strings,n),n}const W=new Map,B=new WeakMap;t("c",(t,e,n)=>{let o=B.get(e);void 0===o&&(m(e,e.firstChild),B.set(e,o=new P(Object.assign({templateFactory:V},n))),o.appendInto(e)),o.setValue(t),o.commit()});(window.litHtmlVersions||(window.litHtmlVersions=[])).push("1.1.2");t("a",(t,...e)=>new C(t,e,"html",U));function X(){if(!(this instanceof X))return new X;this.size=0,this.uid=0,this.selectors=[],this.indexes=Object.create(this.indexes),this.activeIndexes=[]}var $=window.document.documentElement,G=$.matches||$.webkitMatchesSelector||$.mozMatchesSelector||$.oMatchesSelector||$.msMatchesSelector;X.prototype.matchesSelector=function(t,e){return G.call(t,e)},X.prototype.querySelectorAll=function(t,e){return e.querySelectorAll(t)},X.prototype.indexes=[];var K=/^#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;X.prototype.indexes.push({name:"ID",selector:function(t){var e;if(e=t.match(K))return e[0].slice(1)},element:function(t){if(t.id)return[t.id]}});var Y=/^\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;X.prototype.indexes.push({name:"CLASS",selector:function(t){var e;if(e=t.match(Y))return e[0].slice(1)},element:function(t){var e=t.className;if(e){if("string"==typeof e)return e.split(/\s/);if("object"==typeof e&&"baseVal"in e)return e.baseVal.split(/\s/)}}});var z,J=/^((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;X.prototype.indexes.push({name:"TAG",selector:function(t){var e;if(e=t.match(J))return e[0].toUpperCase()},element:function(t){return[t.nodeName.toUpperCase()]}}),X.prototype.indexes.default={name:"UNIVERSAL",selector:function(){return!0},element:function(){return[!0]}},z="function"==typeof window.Map?window.Map:function(){function t(){this.map={}}return t.prototype.get=function(t){return this.map[t+" "]},t.prototype.set=function(t,e){this.map[t+" "]=e},t}();var Q=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g;function Z(t,e){var n,o,r,i,s,a,c=(t=t.slice(0).concat(t.default)).length,l=e,u=[];do{if(Q.exec(""),(r=Q.exec(l))&&(l=r[3],r[2]||!l))for(n=0;n3&&void 0!==arguments[3]?arguments[3]:{}).capture,r=o?ot:nt,i=r[t];i||(i=new X,r[t]=i,document.addEventListener(t,ht,o)),i.add(e,n)}function mt(t,e,n){return t.dispatchEvent(new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n}))}class gt extends Error{constructor(t,e){super(`${t} for HTTP ${e.status}`),this.response=e}}function vt(t,e){const n=t.createElement("template");return n.innerHTML=e,t.importNode(n.content,!0)}class wt extends Error{constructor(t){super(),this.response=t,this.framesToPop=1}}const bt=window.AbortError||class extends Error{};function yt(t,e){if(t.status>=200&&t.status<300)return t;{const n=t.statusText?` ${t.statusText}`:"";throw e.message=`HTTP ${t.status}${n}`,e}}function Et(t,e){const n=e?Object.assign({},e):{};n.credentials||(n.credentials="same-origin");const o=new Request(t,n);if(o.headers.append("X-Requested-With","XMLHttpRequest"),/#csrf-token=/.test(o.url))throw new TypeError("URL with encoded CSRF token was passed to fetch() without using the csrfRequest(url) helper");return o}async function _t(t,e){const n=await self.fetch(t);if(e&&e.aborted)throw new bt("The operation was aborted");return n}async function Tt(t,e){const n=Et(t,e),o=await _t(n,e&&e.signal);return yt(o,new wt(o)),o}async function xt(t,e){const n=Et(t,e),o=await _t(n,e&&e.signal);return yt(o,new wt(o)),o.text()}async function kt(t,e,n){const o=Et(e,n),r=await _t(o,n&&n.signal);return yt(r,new wt(r)),function(t,e){const n=e.headers.get("content-type")||"";if(!n.startsWith("text/html"))throw new gt(`expected response with text/html, but was ${n}`,e);const o=e.headers.get("x-html-safe");if(!o)throw new gt("missing X-HTML-Safe nonce",e);if(o!==t)throw new gt("response X-HTML-Safe nonce did not match",e)}(function(t){const e=t.querySelector("meta[name=html-safe-nonce]");if(null==e||!(e instanceof HTMLMetaElement))throw new Error("could not find html-safe-nonce on document");const n=e.content;if(n)return n;throw new Error("could not find html-safe-nonce on document")}(t),r),vt(t,await r.text())}var Lt=null,At=null,St=[];function Ct(t,e){var n=[];function o(){var t=n;n=[],e(t)}return function(){for(var e=arguments.length,r=Array(e),i=0;i{document.addEventListener("DOMContentLoaded",()=>{t()})})),re=t("k","complete"===document.readyState?Promise.resolve():new Promise(t=>{window.addEventListener("load",t)}));let ie=[];function se(t,e=!1){void 0===t.timestamp&&(t.timestamp=(new Date).getTime()),ie.push(t),e?ce():async function(){await re,null==ae&&(ae=window.requestIdleCallback(ce))}()}let ae=null;function ce(){if(ae=null,ne(document))return;const t=ee(document,"browser-stats-url");if(!t)return;const e=JSON.stringify({stats:ie});navigator.sendBeacon&&navigator.sendBeacon(t,e),ie=[]}var le;le="function"==typeof FormData&&"entries"in FormData.prototype?function(t){return Array.from(new FormData(t).entries())}:function(t){for(var e=[],n=t.elements,o=0;o",r),e.push([a,""])):e.push([a,r.value])}}return e};var ue=t("ax",le);function de(t){const e=t.closest("form");if(!(e instanceof HTMLFormElement))return;let n=fe(e);if(t.name){const o=t.matches("input[type=submit]")?"Submit":"",r=t.value||o;n||((n=document.createElement("input")).type="hidden",n.classList.add("is-submit-button-value"),e.prepend(n)),n.name=t.name,n.value=r}else n&&n.remove()}function fe(t){const e=t.querySelector("input.is-submit-button-value");return e instanceof HTMLInputElement?e:null}function he(t,e,n){return t.dispatchEvent(new CustomEvent(e,{bubbles:!0,cancelable:n}))}function pe(t,e){e&&(!function(t,e){if(!(t instanceof HTMLFormElement))throw new TypeError("The specified element is not of type HTMLFormElement.");if(!(e instanceof HTMLElement))throw new TypeError("The specified element is not of type HTMLElement.");if("submit"!==e.type)throw new TypeError("The specified element is not a submit button.");if(!t||t!==e.form)throw new Error("The specified element is not owned by the form element.")}(t,e),de(e)),he(t,"submit",!0)&&t.submit()}function me(t){if(!(t instanceof HTMLElement))return!1;const e=t.nodeName.toLowerCase(),n=(t.getAttribute("type")||"").toLowerCase();return"select"===e||"textarea"===e||"input"===e&&"submit"!==n&&"reset"!==n||t.isContentEditable}function ge(t){const e=new URLSearchParams;for(const[n,o]of ue(t))e.append(n,o);return e.toString()}pt("click","[data-hydro-click]",function(t){const e=t.currentTarget;se({hydroEventPayload:e.getAttribute("data-hydro-click")||"",hydroEventHmac:e.getAttribute("data-hydro-click-hmac")||"",hydroClientContext:e.getAttribute("data-hydro-client-context")||""},!0)});let ve=!1;const we=new X;function be(t){const e=t.target;if(e instanceof HTMLElement&&e.nodeType!==Node.DOCUMENT_NODE)for(const n of we.matches(e))n.data.call(null,e)}function ye(t,e){ve||(ve=!0,document.addEventListener("focus",be,!0)),we.add(t,e),document.activeElement&&document.activeElement.matches(t)&&e(document.activeElement)}const Ee=[];let _e,Te,xe=0;function ke(){return _e}function Le(){try{return Math.min(Math.max(0,history.length)||0,9007199254740991)}catch(sn){return 0}}function Ae(){return Le()-1+xe}function Se(t){_e=t;const e=location.href;Ee[Ae()]={url:e,state:_e},Ee.length=Le(),window.dispatchEvent(new CustomEvent("statechange",{bubbles:!1,cancelable:!1}))}function Ce(){return(new Date).getTime()}function je(t,e,n){xe=0;const o=Object.assign({},{_id:Ce()},t);history.pushState(o,e,n),Se(o)}function Me(t,e,n){const o=Object.assign({},{_id:ke()._id},t);history.replaceState(o,e,n),Se(o)}function De(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],o=!0,r=!1,i=void 0;try{for(var s,a=t[Symbol.iterator]();!(o=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);o=!0);}catch(c){r=!0,i=c}finally{try{o||null==a.return||a.return()}finally{if(r)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}_e=function(){const t={_id:(new Date).getTime()};return Se(t),t}(),window.addEventListener("popstate",function(t){const e=t.state;e&&e._id&&(e._id<(ke()._id||NaN)?xe--:xe++,Se(e))},!0),window.addEventListener("hashchange",function(){if(Le()>Ee.length){const t={_id:Ce()};history.replaceState(t,"",location.href),Se(t)}},!0);class Ie extends Error{constructor(t,e){super(t),this.response=e}}function Pe(){let t,e;return[new Promise(function(n,o){t=n,e=o}),t,e]}const Oe=[],Ne=[];function Re(t,e){Te||(Te=new X,document.addEventListener("submit",He)),Te.add(t,e)}function He(t){if(!(t.target instanceof HTMLFormElement))return;const e=t.target,n=Te&&Te.matches(e);if(!n||0===n.length)return;const o=function(t){const e={method:t.method||"GET",url:t.action,headers:new Headers({"X-Requested-With":"XMLHttpRequest"}),body:null};if("GET"===e.method.toUpperCase()){const n=function(t){const e=new URLSearchParams;for(const o of ue(t)){var n=De(o,2);const t=n[0],r=n[1];e.append(t,r)}return e.toString()}(t);n&&(e.url+=(~e.url.indexOf("?")?"&":"?")+n)}else e.body=new FormData(t);return e}(e),r=De(Pe(),3),i=r[0],s=r[1],a=r[2];t.preventDefault(),async function(t,e,n,o){let r=!1;for(const i of t){const t=Pe(),s=De(t,2),a=s[0],c=s[1],l=()=>(r=!0,c(),o),u={text:l,json:()=>(n.headers.set("Accept","application/json"),l()),html:()=>(n.headers.set("Accept","text/html"),l())};await Promise.race([a,i.data.call(null,e,u,n)])}return r}(n,e,o,i).then(async t=>{if(t){for(const t of Ne)await t(e);(async function(t){const e=await window.fetch(t.url,{method:t.method,body:null!==t.body?t.body:void 0,headers:t.headers,credentials:"same-origin"}),n={url:e.url,status:e.status,statusText:e.statusText,headers:e.headers,text:"",get json(){const t=JSON.parse(this.text);return delete this.json,this.json=t,this.json},get html(){return delete this.html,this.html=function(t,e){const n=t.createElement("template");return n.innerHTML=e,t.importNode(n.content,!0)}(document,this.text),this.html}},o=await e.text();if(n.text=o,e.ok)return n;throw new Ie("request failed",n)})(o).then(s,a).catch(()=>{}).then(()=>{for(const t of Oe)t(e)})}else e.submit()},t=>{e.submit(),setTimeout(()=>{throw t})})}function qe(t,e=0,{start:n=!0,middle:o=!0,once:r=!1}={}){var i,s=0,a=!1,c=function c(...l){if(!a){var u=Date.now()-s;s=Date.now(),n?(n=!1,t(...l),r&&c.cancel()):(o&&u{n.hasAttribute("open")||(mt(o,"dialog:remove"),n.remove())}),o}class Ue extends CustomEvent{constructor(t,e){super(t,e),this.relatedTarget=e.relatedTarget}}const Ve=new WeakMap;function We(t,e){const n=new XMLHttpRequest;return n.open("GET",e,!0),n.setRequestHeader("Accept","text/html; fragment"),function(t,e){const n=Ve.get(t);n&&n.abort();Ve.set(t,e);const o=()=>Ve.delete(t),r=function(t){return new Promise((e,n)=>{t.onload=function(){t.status>=200&&t.status<300?e(t.responseText):n(new Error(t.responseText))},t.onerror=n,t.send()})}(e);return r.then(o,o),r}(t,n)}function Be(t,e){(function(t,e){const n=t.scrollTop,o=n+t.clientHeight,r=e.offsetTop,i=r+e.clientHeight;return r>=n&&i<=o})(t,e)||(t.scrollTop=e.offsetTop)}let Xe=!1;const $e=!!navigator.userAgent.match(/Macintosh/);function Ge(t){if(t.shiftKey||t.metaKey||t.altKey)return;const e=t.currentTarget;if(!(e instanceof HTMLTextAreaElement||e instanceof HTMLInputElement))return;if(Xe)return;const n=document.getElementById(e.getAttribute("aria-owns")||"");if(n)switch(t.key){case"Enter":case"Tab":(function(t,e){const n=e.querySelector('[aria-selected="true"]');return!(!n||"true"!==n.getAttribute("aria-disabled")&&(n.click(),0))})(0,n)&&t.preventDefault();break;case"Escape":ze(e,n);break;case"ArrowDown":Ye(e,n,1),t.preventDefault();break;case"ArrowUp":Ye(e,n,-1),t.preventDefault();break;case"n":$e&&t.ctrlKey&&(Ye(e,n,1),t.preventDefault());break;case"p":$e&&t.ctrlKey&&(Ye(e,n,-1),t.preventDefault())}}function Ke(t){if(!(t.target instanceof Element))return;const e=t.target.closest('[role="option"]');e&&"true"!==e.getAttribute("aria-disabled")&&function(t){t.dispatchEvent(new CustomEvent("combobox-commit",{bubbles:!0}))}(e)}function Ye(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const o=e.querySelector('[aria-selected="true"]'),r=Array.from(e.querySelectorAll('[role="option"]')),i=r.indexOf(o);let s=1===n?0:r.length-1;if(o&&i>=0){const t=i+n;t>=0&&t{clearTimeout(n),t(...r)},e)}}(this.onInputChange.bind(this),300),this.onResultsMouseDown=this.onResultsMouseDown.bind(this),this.onInputBlur=this.onInputBlur.bind(this),this.onInputFocus=this.onInputFocus.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onCommit=this.onCommit.bind(this),this.input.addEventListener("keydown",this.onKeydown),this.input.addEventListener("focus",this.onInputFocus),this.input.addEventListener("blur",this.onInputBlur),this.input.addEventListener("input",this.onInputChange),this.results.addEventListener("mousedown",this.onResultsMouseDown),this.results.addEventListener("combobox-commit",this.onCommit)}destroy(){this.input.removeEventListener("keydown",this.onKeydown),this.input.removeEventListener("focus",this.onInputFocus),this.input.removeEventListener("blur",this.onInputBlur),this.input.removeEventListener("input",this.onInputChange),this.results.removeEventListener("mousedown",this.onResultsMouseDown),this.results.removeEventListener("combobox-commit",this.onCommit)}sibling(t){const e=Array.from(this.results.querySelectorAll('[role="option"]')),n=this.results.querySelector('[aria-selected="true"]'),o=e.indexOf(n),r=t?e[o+1]:e[o-1],i=t?e[0]:e[e.length-1];return r||i}onKeydown(t){"Escape"===t.key&&this.container.open&&(this.container.open=!1,t.stopPropagation(),t.preventDefault())}onInputFocus(){this.fetchResults()}onInputBlur(){this.interactingWithList?this.interactingWithList=!1:this.container.open=!1}onCommit(t){let{target:e}=t;const n=e;if(!(n instanceof HTMLElement))return;if(this.container.open=!1,n instanceof HTMLAnchorElement)return;const o=n.getAttribute("data-autocomplete-value")||n.textContent;this.container.value=o}onResultsMouseDown(){this.interactingWithList=!0}onInputChange(){this.container.removeAttribute("value"),this.fetchResults()}identifyOptions(){let t=0;for(const e of this.results.querySelectorAll('[role="option"]:not([id])'))e.id="".concat(this.results.id,"-option-").concat(t++)}fetchResults(){const t=this.input.value.trim();if(!t)return void(this.container.open=!1);const e=this.container.src;if(!e)return;const n=new URL(e,window.location.href),o=new URLSearchParams(n.search.slice(1));o.append("q",t),n.search=o.toString(),this.container.dispatchEvent(new CustomEvent("loadstart")),We(this.input,n.toString()).then(t=>{this.results.innerHTML=t,this.identifyOptions();const e=!!this.results.querySelector('[role="option"]');this.container.open=e,this.container.dispatchEvent(new CustomEvent("load")),this.container.dispatchEvent(new CustomEvent("loadend"))}).catch(()=>{this.container.dispatchEvent(new CustomEvent("error")),this.container.dispatchEvent(new CustomEvent("loadend"))})}open(){var t,e;this.results.hidden&&(t=this.input,e=this.results,t.addEventListener("compositionstart",Je),t.addEventListener("compositionend",Je),t.addEventListener("keydown",Ge),e.addEventListener("click",Ke),this.results.hidden=!1,this.container.setAttribute("aria-expanded","true"))}close(){var t,e;this.results.hidden||(t=this.input,e=this.results,t.removeAttribute("aria-activedescendant"),t.removeEventListener("compositionstart",Je),t.removeEventListener("compositionend",Je),t.removeEventListener("keydown",Ge),e.removeEventListener("click",Ke),this.results.hidden=!0,this.input.removeAttribute("aria-activedescendant"),this.container.setAttribute("aria-expanded","false"))}}const Ze=new WeakMap;class AutocompleteElement extends HTMLElement{constructor(){super()}connectedCallback(){const t=this.getAttribute("aria-owns");if(!t)return;const e=this.querySelector("input"),n=document.getElementById(t);e instanceof HTMLInputElement&&n&&(e.setAttribute("aria-owns",t),Ze.set(this,new Qe(this,e,n)),this.setAttribute("role","combobox"),this.setAttribute("aria-haspopup","listbox"),this.setAttribute("aria-expanded","false"),e.setAttribute("aria-autocomplete","list"),e.setAttribute("aria-controls",t),n.setAttribute("role","listbox"))}disconnectedCallback(){const t=Ze.get(this);t&&(t.destroy(),Ze.delete(this))}get src(){return this.getAttribute("src")||""}set src(t){this.setAttribute("src",t)}get value(){return this.getAttribute("value")||""}set value(t){this.setAttribute("value",t)}get open(){return this.hasAttribute("open")}set open(t){t?this.setAttribute("open",""):this.removeAttribute("open")}static get observedAttributes(){return["open","value"]}attributeChangedCallback(t,e,n){if(e===n)return;const o=Ze.get(this);if(o)switch(t){case"open":null===n?o.close():o.open();break;case"value":null!==n&&(o.input.value=n),this.dispatchEvent(new Ue("auto-complete-change",{bubbles:!0,relatedTarget:o.input}))}}}window.customElements.get("auto-complete")||(window.AutocompleteElement=AutocompleteElement,window.customElements.define("auto-complete",AutocompleteElement)),t("y",AutocompleteElement);const tn=new WeakMap;function en(t){const e=tn.get(t);e&&(null!=e.timer&&clearTimeout(e.timer),e.timer=window.setTimeout(()=>{null!=e.timer&&(e.timer=null),e.inputed=!1,e.listener.call(null,t)},e.wait))}function nn(t){const{currentTarget:e}=t;if(!(e&&e instanceof Element))return;const n=tn.get(e);n&&(n.keypressed=!0,null!=n.timer&&clearTimeout(n.timer))}function on(t){const{currentTarget:e}=t;if(!e||!(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement))return;const n=tn.get(e);n&&(n.keypressed=!1,n.inputed&&en(e))}function rn(t){const{currentTarget:e}=t;if(!e||!(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement))return;const n=tn.get(e);n&&(n.inputed=!0,n.keypressed||en(e))}function sn(t){const e="==".slice(0,(4-t.length%4)%4),n=t.replace(/-/g,"+").replace(/_/g,"/")+e,o=atob(n),r=new ArrayBuffer(o.length),i=new Uint8Array(r);for(let s=0;sun(t,e[0],n));if(e instanceof Object){const o={};for(const[r,i]of Object.entries(e))if(r in n)null!=n[r]?o[r]=un(t,i.schema,n[r]):o[r]=null;else if(i.required)throw new Error(`Missing key: ${r}`);return o}}function dn(t){return{required:!0,schema:t}}function fn(t){return{required:!1,schema:t}}const hn={type:dn(cn),id:dn(ln),transports:fn(cn)},pn={publicKey:dn({rp:dn(cn),user:dn({id:dn(ln),name:dn(cn),displayName:dn(cn),icon:fn(cn)}),challenge:dn(ln),pubKeyCredParams:dn(cn),timeout:fn(cn),excludeCredentials:fn([hn]),authenticatorSelection:fn(cn),attestation:fn(cn),extensions:fn(cn)}),signal:fn(cn)},mn={type:dn(cn),id:dn(cn),rawId:dn(ln),response:dn({clientDataJSON:dn(ln),attestationObject:dn(ln)})},gn={mediation:fn(cn),publicKey:dn({challenge:dn(ln),timeout:fn(cn),rpId:fn(cn),allowCredentials:fn([hn]),userVerification:fn(cn),extensions:fn(cn)}),signal:fn(cn)},vn={type:dn(cn),id:dn(cn),rawId:dn(ln),response:dn({clientDataJSON:dn(ln),authenticatorData:dn(ln),signature:dn(ln),userHandle:dn(ln)})};function wn(){return!!(navigator.credentials&&navigator.credentials.create&&navigator.credentials.get&&window.PublicKeyCredential)}function bn(){return"true"===ee(document,"u2f-enabled")}function yn(){return!!window.u2f}function En(){return wn()?"supported":"unsupported"}function _n(){return"true"===ee(document,"webauthn-registration-enabled")&&wn()}function Tn(){return"true"===ee(document,"webauthn-auth-enabled")&&wn()}t("G",{report(t){}});let xn=!1;let kn=!1;Re(".js-sudo-form",async function(t,e){try{await e.text()}catch(n){if(!n.response)throw n;let e;switch(n.response.status){case 401:e="Incorrect password.";break;case 429:e="Too many password attempts. Please wait and try again later.";break;default:e="Failed to receive a response. Please try again later."}return l(t,".js-sudo-error").textContent=e,l(t,".js-sudo-error").hidden=!1,void(l(t,".js-sudo-password",HTMLInputElement).value="")}kn=!0,c(t,"details").removeAttribute("open")}),function(){var t="chrome"in window&&window.navigator.userAgent.indexOf("Edge")<0;if(!("u2f"in window)&&t){var e,n=window.u2f={};n.EXTENSION_ID="kmendfapggjehodndflmmgagdbamhnfd",n.MessageTypes={U2F_REGISTER_REQUEST:"u2f_register_request",U2F_REGISTER_RESPONSE:"u2f_register_response",U2F_SIGN_REQUEST:"u2f_sign_request",U2F_SIGN_RESPONSE:"u2f_sign_response",U2F_GET_API_VERSION_REQUEST:"u2f_get_api_version_request",U2F_GET_API_VERSION_RESPONSE:"u2f_get_api_version_response"},n.ErrorCodes={OK:0,OTHER_ERROR:1,BAD_REQUEST:2,CONFIGURATION_UNSUPPORTED:3,DEVICE_INELIGIBLE:4,TIMEOUT:5},n.getMessagePort=function(t){if("undefined"!=typeof chrome&&chrome.runtime){var e={type:n.MessageTypes.U2F_SIGN_REQUEST,signRequests:[]};chrome.runtime.sendMessage(n.EXTENSION_ID,e,function(){chrome.runtime.lastError?n.getIframePort_(t):n.getChromeRuntimePort_(t)})}else n.isAndroidChrome_()?n.getAuthenticatorPort_(t):n.isIosChrome_()?n.getIosPort_(t):n.getIframePort_(t)},n.isAndroidChrome_=function(){var t=navigator.userAgent;return-1!=t.indexOf("Chrome")&&-1!=t.indexOf("Android")},n.isIosChrome_=function(){return["iPhone","iPad","iPod"].indexOf(navigator.platform)>-1},n.getChromeRuntimePort_=function(t){var e=chrome.runtime.connect(n.EXTENSION_ID,{includeTlsChannelId:!0});setTimeout(function(){t(new n.WrappedChromeRuntimePort_(e))},0)},n.getAuthenticatorPort_=function(t){setTimeout(function(){t(new n.WrappedAuthenticatorPort_)},0)},n.getIosPort_=function(t){setTimeout(function(){t(new n.WrappedIosPort_)},0)},n.WrappedChromeRuntimePort_=function(t){this.port_=t},n.formatSignRequest_=function(t,o,r,i,s){if(void 0===e||e<1.1){for(var a=[],c=0;ct.matches(":focus"))[0];let i=0;if(r){const t=n.indexOf(r);if(-1!==t){const e=t+o;e>=0&&(i=e%n.length)}}n[i].focus()}(t))}function Hn(t){return t.tabIndex>=0&&!t.disabled&&!t.hidden&&(!t.type||"hidden"!==t.type)&&!t.closest("[hidden]")}function qn(t){const e=t.querySelector("details-dialog");return!(e instanceof DetailsDialogElement)||e.dispatchEvent(new CustomEvent("details-dialog-close",{bubbles:!0,cancelable:!0}))}function Fn(t){if(!(t.currentTarget instanceof Element))return;const e=t.currentTarget.closest("details[open]");e&&(qn(e)||(t.preventDefault(),t.stopPropagation()))}function Un(t){const e=t.currentTarget;if(!(e instanceof Element))return;const n=e.querySelector("details-dialog");if(n instanceof DetailsDialogElement)if(e.hasAttribute("open"))document.activeElement&&$n.set(n,{details:e,activeElement:document.activeElement}),Nn(n),e.addEventListener("keydown",Rn);else{for(const e of n.querySelectorAll("form"))e instanceof HTMLFormElement&&e.reset();const t=function(t,e){const n=$n.get(e);return n&&n.activeElement instanceof HTMLElement?n.activeElement:t.querySelector("summary")}(e,n);t&&t.focus(),e.removeEventListener("keydown",Rn)}}function Vn(t,e){e!==t.hasAttribute("open")&&(e?t.setAttribute("open",""):qn(t)&&t.removeAttribute("open"))}function Wn(t){const e=t.currentTarget;if(!(e instanceof Element))return;const n=e.querySelector("details-dialog");if(!(n instanceof DetailsDialogElement))return;const o=n.querySelector("include-fragment:not([src])");if(!o)return;const r=n.src;null!==r&&(o.addEventListener("loadend",()=>{e.hasAttribute("open")&&Nn(n)}),o.setAttribute("src",r))}function Bn(t,e,n){Xn(t),e&&t.addEventListener("toggle",Wn,{once:!0}),e&&n&&t.addEventListener("mouseover",Wn,{once:!0})}function Xn(t){t.removeEventListener("toggle",Wn),t.removeEventListener("mouseover",Wn)}const $n=new WeakMap;class DetailsDialogElement extends HTMLElement{static get CLOSE_ATTR(){return Pn}static get CLOSE_SELECTOR(){return On}constructor(){super(),$n.set(this,{details:null,activeElement:null}),this.addEventListener("click",function(t){let{target:e}=t;if(!(e instanceof Element))return;const n=e.closest("details");n&&e.closest(On)&&Vn(n,!1)})}get src(){return this.getAttribute("src")}set src(t){this.setAttribute("src",t)}get preload(){return this.hasAttribute("preload")}set preload(t){t?this.setAttribute("preload",""):this.removeAttribute("preload")}connectedCallback(){this.setAttribute("role","dialog"),this.setAttribute("aria-modal","true");const t=$n.get(this);if(!t)return;const e=this.parentElement;if(!e)return;const n=e.querySelector("summary");n&&(n.hasAttribute("role")||n.setAttribute("role","button"),n.addEventListener("click",Fn,{capture:!0})),e.addEventListener("toggle",Un),t.details=e,Bn(e,this.src,this.preload)}disconnectedCallback(){const t=$n.get(this);if(!t)return;const{details:e}=t;if(!e)return;e.removeEventListener("toggle",Un),Xn(e);const n=e.querySelector("summary");n&&n.removeEventListener("click",Fn,{capture:!0}),t.details=null}toggle(t){const e=$n.get(this);if(!e)return;const{details:n}=e;n&&Vn(n,t)}static get observedAttributes(){return["src","preload"]}attributeChangedCallback(){const t=$n.get(this);if(!t)return;const{details:e}=t;e&&Bn(e,this.src,this.preload)}}t("ba",DetailsDialogElement),window.customElements.get("details-dialog")||(window.DetailsDialogElement=DetailsDialogElement,window.customElements.define("details-dialog",DetailsDialogElement));const Gn=new WeakMap;function Kn(t,e){setTimeout(function(){e.dispatchEvent(new Event(t))},0)}function Yn(t){return zn(t).then(function(e){const n=t.parentNode;n&&(t.insertAdjacentHTML("afterend",e),n.removeChild(t))},function(){t.classList.add("is-error")})}function zn(t){const e=t.src;let n=Gn.get(t);return n&&n.src===e?n.data:(n=e?t.load():Promise.reject(new Error("missing src")),Gn.set(t,{src:e,data:n}),n)}class IncludeFragmentElement extends HTMLElement{constructor(){super()}static get observedAttributes(){return["src"]}get src(){const t=this.getAttribute("src");if(t){const e=this.ownerDocument.createElement("a");return e.href=t,e.href}return""}set src(t){t?this.setAttribute("src",t):this.removeAttribute("src")}get data(){return zn(this)}attributeChangedCallback(t){"src"===t&&this._attached&&Yn(this)}connectedCallback(){this._attached=!0,this.src&&Yn(this)}disconnectedCallback(){this._attached=!1}request(){const t=this.src;if(!t)throw new Error("missing src");return new Request(t,{method:"GET",credentials:"same-origin",headers:{Accept:"text/html"}})}load(){return Promise.resolve().then(()=>(Kn("loadstart",this),this.fetch(this.request()))).then(t=>{if(200!==t.status)throw new Error("Failed to load resource: the server responded with a status of ".concat(t.status));const e=t.headers.get("Content-Type");if(!e||!e.match(/^text\/html/))throw new Error("Failed to load resource: expected text/html but was ".concat(e));return t}).then(t=>t.text()).then(t=>(Kn("load",this),Kn("loadend",this),t),t=>{throw Kn("error",this),Kn("loadend",this),t})}fetch(t){return fetch(t)}}t("O",IncludeFragmentElement),window.customElements.get("include-fragment")||(window.IncludeFragmentElement=IncludeFragmentElement,window.customElements.define("include-fragment",IncludeFragmentElement));class RemoteInputElement extends HTMLElement{static get observedAttributes(){return["src"]}attributeChangedCallback(t,e){e&&"src"===t&&Jn(this,!1)}connectedCallback(){const t=this.input;t&&(t.setAttribute("autocomplete","off"),t.setAttribute("spellcheck","false"),this.debounceInputChange=function(t){let e;return function(){clearTimeout(e),e=setTimeout(()=>{clearTimeout(e),t()},300)}}(()=>Jn(this)),this.boundFetchResults=(()=>Jn(this)),t.addEventListener("focus",this.boundFetchResults),t.addEventListener("change",this.boundFetchResults),t.addEventListener("input",this.debounceInputChange))}disconnectedCallback(){const t=this.input;t&&(t.removeEventListener("focus",this.boundFetchResults),t.removeEventListener("change",this.boundFetchResults),t.removeEventListener("input",this.debounceInputChange))}get input(){const t=this.querySelector("input, textarea");return t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement?t:null}get src(){return this.getAttribute("src")||""}set src(t){this.setAttribute("src",t)}}async function Jn(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=t.input;if(!n)return;const o=n.value;if(e&&t.currentQuery===o)return;t.currentQuery=o;const r=t.src;if(!r)return;const i=document.getElementById(t.getAttribute("aria-owns")||"");if(!i)return;const s=new URL(r,window.location.href),a=new URLSearchParams(s.search);let c;a.append(t.getAttribute("param")||"q",o),s.search=a.toString(),t.dispatchEvent(new CustomEvent("loadstart")),t.setAttribute("loading","");let l=!1,u="";try{c=await fetch(s,{credentials:"same-origin",headers:{accept:"text/html; fragment"}}),u=await c.text(),t.dispatchEvent(new CustomEvent("load"))}catch(d){l=!0,t.dispatchEvent(new CustomEvent("error"))}t.removeAttribute("loading"),l||(c&&c.ok?(t.dispatchEvent(new CustomEvent("remote-input-success",{bubbles:!0})),i.innerHTML=u):t.dispatchEvent(new CustomEvent("remote-input-error",{bubbles:!0})),t.dispatchEvent(new CustomEvent("loadend")))}t("Y",RemoteInputElement),window.customElements.get("remote-input")||(window.RemoteInputElement=RemoteInputElement,window.customElements.define("remote-input",RemoteInputElement));const Qn=new WeakMap;let Zn=null;function to(t,e){return t.closest("task-lists")===e.closest("task-lists")}function eo(t){if(t.currentTarget!==t.target)return;const e=t.currentTarget;if(!(e instanceof Element))return;const n=e.closest(".contains-task-list");if(!n)return;if(e.classList.add("is-ghost"),t.dataTransfer&&t.dataTransfer.setData("text/plain",e.textContent.trim()),!e.parentElement)return;const o=Array.from(e.parentElement.children),r=o.indexOf(e),i=Qn.get(e);i&&i.sortStarted(n),Zn={didDrop:!1,dragging:e,dropzone:e,sourceList:n,sourceSibling:o[r+1]||null,sourceIndex:r}}function no(t){if(!Zn)return;const e=t.currentTarget;e instanceof Element&&(to(Zn.dragging,e)?(t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect="move"),Zn.dropzone!==e&&(Zn.dragging.classList.add("is-dragging"),Zn.dropzone=e,!function(t,e){if(t.parentNode===e.parentNode){let n=t;for(;n;){if(n===e)return!0;n=n.previousElementSibling}}return!1}(Zn.dragging,e)?e.after(Zn.dragging):e.before(Zn.dragging))):t.stopPropagation())}function oo(t){if(!Zn)return;t.preventDefault(),t.stopPropagation();const e=t.currentTarget;if(!(e instanceof Element))return;if(Zn.didDrop=!0,!Zn.dragging.parentElement)return;let n=Array.from(Zn.dragging.parentElement.children).indexOf(Zn.dragging);const o=e.closest(".contains-task-list");if(!o)return;if(Zn.sourceIndex===n&&Zn.sourceList===o)return;Zn.sourceList===o&&Zn.sourceIndex{const e=t.target;e instanceof HTMLInputElement&&e.classList.contains("task-list-item-checkbox")&&this.dispatchEvent(new CustomEvent("task-lists-check",{bubbles:!0,detail:{position:ho(e),checked:e.checked}}))}),so.set(this,new MutationObserver(go.bind(null,this)))}connectedCallback(){const t=so.get(this);t&&t.observe(this,{childList:!0,subtree:!0}),go(this)}disconnectedCallback(){const t=so.get(this);t&&t.disconnect()}get disabled(){return this.hasAttribute("disabled")}set disabled(t){t?this.setAttribute("disabled",""):this.removeAttribute("disabled")}get sortable(){return this.hasAttribute("sortable")}set sortable(t){t?this.setAttribute("sortable",""):this.removeAttribute("sortable")}static get observedAttributes(){return["disabled"]}attributeChangedCallback(t,e,n){if(e!==n)switch(t){case"disabled":vo(this)}}}const ao=document.createElement("template");ao.innerHTML='\n \n \n ';const co=new WeakMap;function lo(t){if(co.get(t))return;co.set(t,!0);const e=t.closest("task-lists");if(!(e instanceof TaskListsElement))return;if(e.querySelectorAll(".task-list-item").length<=1)return;const n=ao.content.cloneNode(!0),o=n.querySelector(".handle");if(t.prepend(n),!o)throw new Error("handle not found");o.addEventListener("mouseenter",_o),o.addEventListener("mouseleave",To),function(t,e,n){Qn.set(t,{sortStarted:e,sortFinished:n}),t.addEventListener("dragstart",eo),t.addEventListener("dragenter",no),t.addEventListener("dragend",ro),t.addEventListener("drop",oo),t.addEventListener("dragover",io)}(t,yo,Eo),t.addEventListener("mouseenter",uo),t.addEventListener("mouseleave",fo)}function uo(t){const e=t.currentTarget;if(!(e instanceof Element))return;const n=e.closest("task-lists");n instanceof TaskListsElement&&n.sortable&&!n.disabled&&e.classList.add("hovered")}function fo(t){const e=t.currentTarget;e instanceof Element&&e.classList.remove("hovered")}function ho(t){const e=po(t);if(!e)throw new Error(".contains-task-list not found");const n=Array.from(e.children).indexOf(t.closest(".task-list-item"));return[wo(e),n]}function po(t){const e=t.parentElement;return e?e.closest(".contains-task-list"):null}function mo(t){return po(t)===function t(e){const n=po(e);return n?t(n)||n:null}(t)}function go(t){const e=t.querySelectorAll(".contains-task-list > .task-list-item");for(const n of e)mo(n)&&lo(n);vo(t)}function vo(t){for(const e of t.querySelectorAll(".task-list-item"))e.classList.toggle("enabled",!t.disabled);for(const e of t.querySelectorAll(".task-list-item-checkbox"))e instanceof HTMLInputElement&&(e.disabled=t.disabled)}function wo(t){const e=t.closest("task-lists");if(!e)throw new Error("parent not found");return Array.from(e.querySelectorAll("ol, ul")).indexOf(t)}const bo=new WeakMap;function yo(t){const e=t.closest("task-lists");if(!e)throw new Error("parent not found");bo.set(e,Array.from(e.querySelectorAll("ol, ul")))}function Eo(t){let{src:e,dst:n}=t;const o=e.list.closest("task-lists");if(!o)return;const r=bo.get(o);r&&(bo.delete(o),o.dispatchEvent(new CustomEvent("task-lists-move",{bubbles:!0,detail:{src:[r.indexOf(e.list),e.index],dst:[r.indexOf(n.list),n.index]}})))}function _o(t){const e=t.currentTarget;if(!(e instanceof Element))return;const n=e.closest(".task-list-item");if(!n)return;const o=n.closest("task-lists");o instanceof TaskListsElement&&o.sortable&&!o.disabled&&n.setAttribute("draggable","true")}function To(t){if(Zn)return;const e=t.currentTarget;if(!(e instanceof Element))return;const n=e.closest(".task-list-item");n&&n.setAttribute("draggable","false")}function xo(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ko(t,e){for(var n=0;n{const o={resolve:e,reject:n};this.previousReceiver=o,t.then(function(...t){o.resolve(...t)},function(...t){o.reject(...t)})})}}t("U",Uo);class Vo{constructor(t){this.closed=!1,this.unsubscribe=(()=>{t(),this.closed=!0})}}function Wo(t,e,n,o=!1){return t.addEventListener(e,n,o),new Vo(()=>{t.removeEventListener(e,n,o)})}function Bo(...t){return new Vo(()=>{for(const e of t)e.unsubscribe()})}function Xo(t,e=!1){return $o(t)||function(t,e){const n=function(t){if(Ko instanceof Element)return Ko;if(t&&t.ownerDocument&&t.ownerDocument.activeElement)return t.ownerDocument.activeElement;return null}(t);return null!=n&&!(e&&n===t)&&(me(n)&&n===t||t.contains(n)&&!function(t){if(!(Yo instanceof Element))return!1;const e=t.closest(zo);if(!e)return!1;const n=Yo.closest(zo);return e===n}(n))}(t,e)||function(t){return t.matches(":active")}(t)||function(t){return!(!t.closest(".is-dirty")&&!t.querySelector(".is-dirty"))}(t)}function $o(t){for(const e of t.querySelectorAll("input, textarea"))if((e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)&&Go(e))return!0;return!1}function Go(t){if(t instanceof HTMLInputElement&&("checkbox"===t.type||"radio"===t.type)){if(t.checked!==t.defaultChecked)return!0}else if(t.value!==t.defaultValue)return!0;return!1}let Ko,Yo;document.addEventListener("mouseup",function(t){Yo=t.target});const zo="a[href], button, details:not([open]) summary";function Jo(t,e){return Qo(function(t){if(t.activeElement!==t.body)return t.activeElement;var e=t.querySelectorAll(":hover"),n=e.length;if(n)return e[n-1]}(t),e)}function Qo(t,e){var n=t;if(!n)return Promise.resolve(e());var o=n.ownerDocument.documentElement;var r=function(t){for(var e=[];t;){var n=t.getBoundingClientRect(),o=n.top,r=n.left;e.push({element:t,top:o,left:r}),t=t.parentElement}return e}(n);return Promise.resolve(e()).then(function(t){var e=function(t){for(var e=0;e{const o=vt(document,e.trim()),r=n&&t===t.ownerDocument.activeElement?o.querySelector("*"):null;for(const e of t.querySelectorAll(".js-updatable-content-preserve-scroll-position")){const t=d(e,"data-updatable-content-scroll-position-id");er.set(t,e.scrollTop)}t.replaceWith(o),r&&r.focus()})}const er=new Map;function nr(t){const e=document.querySelector(".sso-modal");e&&(e.classList.remove("success","error"),t?e.classList.add("success"):e.classList.add("error"))}te(".js-updatable-content-preserve-scroll-position",{constructor:HTMLElement,add(t){const e=t.getAttribute("data-updatable-content-scroll-position-id");if(!e)return;const n=er.get(e);null!=n&&(t.scrollTop=n)}}),te(".js-sso-modal-complete",function(t){if(window.opener&&window.opener.external.ssoComplete){const e=t.getAttribute("data-error"),n=t.getAttribute("data-expires-around");window.opener.external.ssoComplete({error:e,expiresAround:n}),window.close()}else{const e=t.getAttribute("data-fallback-url");e&&(window.location.href=e)}});let or=null;function rr(){or=null}function ir(t,e=location.hash){return sr(t,ar(e))}function sr(t,e){return""===e?null:t.getElementById(e)||t.getElementsByName(e)[0]}function ar(t){try{return decodeURIComponent(t.slice(1))}catch(e){return""}}function cr(t){if(t instanceof window.Window)return"window";if(t instanceof window.Document)return"#document";const e=[t.nodeName.toLowerCase()];if(!(t instanceof HTMLElement))throw new Error("invariant: target instanceof HTMLElement");const n=t.id;if(n&&e.push(`#${n}`),"function"==typeof t.getAttribute&&t.getAttribute("class")){const n=(t.getAttribute("class")||"").trim().split(/\s+/).join(".");n&&e.push(`.${n}`)}return e.join("")}const lr=new WeakMap;function ur(t,e){const n=function(t,e){const n=u(t,"link[rel=pjax-prefetch]",HTMLLinkElement);for(const o of n)if(o.href===e)return o}(t,e);if(n){const t=lr.get(n);return n.remove(),lr.delete(n),t}}const dr={container:null,push:!0,replace:!1,type:"GET",dataType:"html",scrollTo:0},fr=20;let hr;const pr=new Uo;function mr(t,e,n){return t.dispatchEvent(new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n}))}function gr(t){vr({url:t.url,container:t.container,replace:t.replace})}function vr(t){const e={url:"",container:null};if(Object.assign(e,dr,t),"string"!=typeof e.url)throw new Error("invariant: app/assets/modules/github/pjax.js:132");e.requestUrl=e.url;const n=xr(e.url),o=n.hash,r=e.container;if(!r)throw new Error("invariant: app/assets/modules/github/pjax.js:137");const i=Lr(r);if("GET"===e.type&&(n.search+=`${n.search?"&":""}_pjax=${encodeURIComponent(i)}`,e.url=n.toString()),hr||Me(hr={id:_r(),url:window.location.href,title:document.title,container:i,fragment:e.fragment},hr.title,hr.url),gr.options=e,"string"!=typeof e.requestUrl)throw new Error("invariant: app/assets/modules/github/pjax.js:273");let s=ur(r,e.requestUrl);if(!s){if(!e.url)throw new Error("invariant: app/assets/modules/github/pjax.js:277");s=Tt(e.url,{method:e.type,body:e.data,headers:{Accept:"text/html","X-PJAX":"true","X-PJAX-Container":i}})}if(!0===e.push&&!0!==e.replace){if(a=hr.id,c=Tr(r),jr[a]=c,Dr.push(a),Ir(Mr,0),Ir(Dr,fr),"string"!=typeof e.requestUrl)throw new Error("invariant: app/assets/modules/github/pjax.js:292");je(null,"",e.requestUrl)}var a,c;mr(r,"pjax:start",{url:e.url}),mr(r,"pjax:send"),pr.push(s).then(async function(t){const n=hr,s=function(){for(const t of document.getElementsByTagName("meta")){const e=t.getAttribute("http-equiv");if(e&&"X-PJAX-VERSION"===e.toUpperCase())return t.content}}(),a=t.headers.get("X-PJAX-Version"),c=function(t,e,n){if("string"!=typeof n.requestUrl)throw new Error("invariant: app/assets/modules/github/pjax.js:540");const o={url:Cr(e,n.requestUrl),title:""},r=/]*>([\s\S.]*)<\/head>/i),n=t.match(/]*>([\s\S.]*)<\/body>/i);i=e?Array.from(vt(document,e[0]).childNodes):[],s=n?Array.from(vt(document,n[0]).childNodes):[]}else i=s=Array.from(vt(document,t).childNodes);if(0===s.length)return o;const a=Ar(i,"title",HTMLTitleElement);let c;if(o.title=a.length>0?a[a.length-1].textContent:"",n.fragment){if("body"===n.fragment)c=s;else{const t=Ar(s,n.fragment,Element);c=t.length>0?[t[0]]:[]}if(c.length&&("body"===n.fragment?o.contents=c:o.contents=c.flatMap(t=>Array.from(t.childNodes)),!o.title)){const t=c[0];t instanceof Element&&(o.title=t.getAttribute("title")||t.getAttribute("data-title")||"")}}else r||(o.contents=s);if(o.contents){o.contents=o.contents.filter(function(t){return!(t instanceof Element&&t.matches("title"))});for(const e of o.contents)if(e instanceof Element)for(const t of e.querySelectorAll("title"))t.remove();const t=Ar(o.contents,"script[src]",HTMLScriptElement);for(const e of t)e.remove();if(o.scripts=t,!o.contents)throw new Error("invariant: app/assets/modules/github/pjax.js:632");o.contents=o.contents.filter(e=>-1===t.indexOf(e))}return o.title&&(o.title=o.title.trim()),o}(await t.text(),t,e),{contents:l}=c,d=xr(c.url);if(o&&(d.hash=o,c.url=d.href),s&&a&&s!==a)return void wr(c.url);if(!l)return void wr(c.url);hr={id:null!=e.id?e.id:_r(),url:c.url,title:c.title,container:i,fragment:e.fragment},!0!==e.push&&!0!==e.replace||Me(hr,c.title,c.url);const f=document.activeElement,h=null!=e.container&&e.container.contains(f);if(f&&h)try{f.blur()}catch(sn){}c.title&&(document.title=c.title),mr(r,"pjax:beforeReplace",{contents:l,state:hr,previousState:n}),Sr(r,l);const p=u(r,"input[autofocus], textarea[autofocus]").pop();p&&document.activeElement!==p&&p.focus(),function(t){if(!t)return;const e=u(document,"script[src]",HTMLScriptElement);for(const n of t){const{src:t}=n;if(e.some(e=>e.src===t))return;const o=document.createElement("script"),r=n.getAttribute("type");r&&(o.type=r),o.src=t,document.head&&document.head.appendChild(o)}}(c.scripts);let m=e.scrollTo;if(o){const t=ir(document,o);t&&(m=t.getBoundingClientRect().top+window.pageYOffset)}"number"==typeof m&&window.scrollTo(window.pageXOffset,m),mr(r,"pjax:success"),mr(r,"pjax:complete"),mr(r,"pjax:end")},function(t){let n=e.requestUrl;if("string"!=typeof n)throw new Error("invariant: app/assets/modules/github/pjax.js:150");t.response&&(n=Cr(t.response,n));const o=mr(r,"pjax:error");"GET"===e.type&&o&&wr(n),mr(r,"pjax:complete"),mr(r,"pjax:end")})}function wr(t){hr&&Me(null,"",hr.url),window.location.replace(t)}let br=!0;const yr=window.location.href,Er=window.history.state;function _r(){return(new Date).getTime()}function Tr(t){const e=t.cloneNode(!0);return[Lr(t),Array.from(e.childNodes),Date.now()]}function xr(t){const e=document.createElement("a");return e.href=t,e}function kr(t){return t.href.replace(/#.*/,"")}function Lr(t){if(t.id)return`#${t.id}`;throw new Error("pjax container has no id")}function Ar(t,e,n){let o=[];for(const r of t)r instanceof Element&&(r instanceof n&&r.matches(e)&&o.push(r),o=o.concat(u(r,e,n)));return o}function Sr(t,e){t.innerHTML="";for(const n of e)null!=n&&t.appendChild(n)}function Cr(t,e){const n=t.headers.get("X-PJAX-URL");return n?((o=xr(n)).search=o.search.replace(/([?&])(_pjax|_)=[^&]*/g,""),o.href.replace(/\?($|#)/,"$1")):e;var o}Er&&Er.container&&(hr=Er),"state"in window.history&&(br=!1);const jr={},Mr=[],Dr=[];function Ir(t,e){for(;t.length>e;)delete jr[t.shift()]}function Pr(t){return!function(t){return t.offsetWidth<=0&&t.offsetHeight<=0}(t)}window.addEventListener("popstate",function(t){br||pr.push(Promise.resolve(new Response));const e=hr,n=t.state;let o;if(n&&n.container){if(br&&yr===n.url)return;if(e){if(e.id===n.id)return;o=e.id{Or.length=Nr=0});let qr=window.location.href;window.addEventListener("popstate",function(){qr=window.location.href}),window.addEventListener("hashchange",function(t){const e=window.location.href;try{Hr(Or,t.oldURL||qr,e)}finally{qr=e}});let Fr=null;document.addEventListener("pjax:start",function(){Fr=window.location.href}),document.addEventListener("pjax:end",function(){Hr(Or,Fr,window.location.href)}),function(){var t=function(t){this.w=t||[]};t.prototype.set=function(t){this.w[t]=!0},t.prototype.encode=function(){for(var t=[],e=0;e<\/script>')):((n=T.createElement("script")).type="text/javascript",n.async=!0,n.src=t,o&&(n.onload=o),e&&(n.id=e),(t=T.getElementsByTagName("script")[0]).parentNode.insertBefore(n,t)))},v=function(){return"https:"==T.location.protocol},w=function(t,e){return(t=t.match("(?:&|#|\\?)"+h(e).replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1")+"=([^&#]*)"))&&2==t.length?t[1]:""},b=function(){var t=""+T.location.hostname;return 0==t.indexOf("www.")?t.substring(4):t},y=function(t,e){if(1==e.length&&null!=e[0]&&"object"==typeof e[0])return e[0];for(var n={},o=Math.min(t.length+1,e.length),r=0;r=e.length)P(t,e,n);else{if(!(8192>=e.length))throw R("len",e.length),new D(e.length);N(t,e,n)||O(t,e,n)||P(t,e,n)}},P=function(t,e,n){var o=d(t+"?"+e);o.onload=o.onerror=function(){o.onload=null,o.onerror=null,n()}},O=function(t,e,n){var o=_.XMLHttpRequest;if(!o)return!1;var r=new o;return"withCredentials"in r&&(r.open("POST",t,!0),r.withCredentials=!0,r.setRequestHeader("Content-Type","text/plain"),r.onreadystatechange=function(){4==r.readyState&&(n(),r=null)},r.send(e),!0)},N=function(t,e,n){return!!_.navigator.sendBeacon&&(!!_.navigator.sendBeacon(t,e)&&(n(),!0))},R=function(t,e,n){1<=100*Math.random()||k("?")||(t=["t=error","_e="+t,"_v=j48","sr=1"],e&&t.push("_f="+e),n&&t.push("_m="+h(n.substring(0,100))),t.push("aip=1"),t.push("z="+Y()),P(M()+"/collect",t.join("&"),f))},H=function(t){var e=_.gaData=_.gaData||{};return e[t]=e[t]||{}},q=function(){this.M=[]};function F(t){if(100!=t.get(Ne)&&to(et(t,Te))%1e4>=100*nt(t,Ne))throw"abort"}function U(t){if(k(et(t,Le)))throw"abort"}function V(){var t=T.location.protocol;if("http:"!=t&&"https:"!=t)throw"abort"}function W(t){try{_.navigator.sendBeacon?n(42):_.XMLHttpRequest&&"withCredentials"in new _.XMLHttpRequest&&n(40)}catch(hn){}t.set(ie,r(t),!0),t.set(yt,nt(t,yt)+1);var e=[];Z.map(function(n,o){o.F&&(null!=(n=t.get(n))&&n!=o.defaultValue&&("boolean"==typeof n&&(n*=1),e.push(o.F+"="+h(""+n))))}),e.push("z="+z()),t.set(vt,e.join("&"),!0)}function B(t){var e=et(t,qe)||M()+"/collect",n=et(t,bt);if(!n&&t.get(wt)&&(n="beacon"),n){var o=et(t,vt),r=(r=t.get(gt))||f;"image"==n?P(e,o,r):"xhr"==n&&O(e,o,r)||"beacon"==n&&N(e,o,r)||I(e,o,r)}else I(e,et(t,vt),t.get(gt));e=t.get(Le),n=(e=H(e)).hitcount,e.hitcount=n?n+1:1,e=t.get(Le),delete H(e).pending_experiments,t.set(gt,f,!0)}function X(t){var e;(_.gaData=_.gaData||{}).expId&&t.set(zt,(_.gaData=_.gaData||{}).expId),(_.gaData=_.gaData||{}).expVar&&t.set(Jt,(_.gaData=_.gaData||{}).expVar);var n=t.get(Le);if(n=H(n).pending_experiments){var o=[];for(e in n)n.hasOwnProperty(e)&&n[e]&&o.push(encodeURIComponent(e)+"."+encodeURIComponent(n[e]));e=o.join("!")}else e=void 0;e&&t.set(Qt,e,!0)}function $(){if(_.navigator&&"preview"==_.navigator.loadPurpose)throw"abort"}function G(t){var e=_.gaDevIds;a(e)&&0!=e.length&&t.set("&did",e.join(","),!0)}function K(t){if(!t.get(Le))throw"abort"}q.prototype.add=function(t){this.M.push(t)},q.prototype.D=function(t){try{for(var e=0;e=o)throw"abort";t.set(re,--o)}t.set(ne,++e)}var Q=function(){this.data=new E},Z=new E,tt=[];Q.prototype.get=function(t){var e=it(t),n=this.data.get(t);return e&&null==n&&(n=s(e.defaultValue)?e.defaultValue():e.defaultValue),e&&e.Z?e.Z(this,t,n):n};var et=function(t,e){return null==(t=t.get(e))?"":""+t},nt=function(t,e){return null==(t=t.get(e))||""===t?0:1*t};Q.prototype.set=function(t,e,n){if(t)if("object"==typeof t)for(var o in t)t.hasOwnProperty(o)&&ot(this,o,t[o],n);else ot(this,t,e,n)};var ot=function(t,e,n,o){if(null!=n)switch(e){case Le:Cn.test(n)}var r=it(e);r&&r.o?r.o(t,e,n,o):t.data.set(e,n,o)},rt=function(t,e,n,o,r){this.name=t,this.F=e,this.Z=o,this.o=r,this.defaultValue=n},it=function(t){var e=Z.get(t);if(!e)for(var n=0;nn)&&(t[e]=void 0)},Ke=function(t){return function(e){if("pageview"==e.get(mt)&&!t.I){t.I=!0;var n=function(t){var e=Math.min(nt(t,Re),100);return!(to(et(t,Te))%100>=e)}(e);e=0=t&&o.push({hash:s[0],R:r[i],O:s})}if(0!=o.length)return 1==o.length?o[0]:an(e,o)||an(n,o)||an(null,o)||o[0]}function an(t,e){var n;null==t?n=t=1:(n=to(t),t=to(l(t,".")?t.substring(1):"."+t));for(var o=0;or.length)){o=[];for(var i=0;i=a[0]||0>=a[1]?"":a.join("x"),t.set(St,o),t.set(jt,function(){var t,e,n;if((n=(n=_.navigator)?n.plugins:null)&&n.length)for(var o=0;oarguments.length||("string"==typeof arguments[0]?(e=arguments[0],o=[].slice.call(arguments,1)):(e=arguments[0]&&arguments[0][mt],o=arguments),e&&((o=y(In[e]||[],o))[mt]=e,this.b.set(o,void 0,!0),this.filters.D(this.b),this.b.data.m={},We(this.ra,this.b)&&function(t){var e=_.performance;if(e&&e.getEntriesByName){n(35);var o="https://www.google-analytics.com/analytics.js?wpid="+t;g(o,void 0,void 0,function(){try{var r=1,i=e.getEntriesByName("https://www.google-analytics.com/analytics.js");i&&0!=i.length||(i=e.getEntriesByName("http://www.google-analytics.com/analytics.js"),r=0);var s=e.getEntriesByName(o);if(i&&1==i.length&&s&&1==s.length){n(37);var a=i[0],c=s[0],l={tid:t,ad:Sn(a.duration),bd:Sn(c.duration),ar:Sn(a.responseEnd-a.requestStart),br:Sn(c.responseEnd-c.requestStart),an:Sn(a.domainLookupEnd-a.domainLookupStart),bn:Sn(c.domainLookupEnd-c.domainLookupStart),ac:Sn(a.connectEnd-a.connectStart),bc:Sn(c.connectEnd-c.connectStart),as:r};for(var u in(r=[]).push("_v=j48"),r.push("id=10"),l)l.hasOwnProperty(u)&&r.push(u+"="+h(l[u]));r.push("z="+Y()),P("https://www.google-analytics.com/u/d",r.join("&"),f)}}catch(d){}})}}(this.b.get(Le))))},jn.prototype.ma=function(t,e){var n=this;Wn(t,n,e)||(Xn(t,function(){Wn(t,n,e)}),Bn(String(n.get(_e)),t,void 0,e,!0))};var Pn,On,Nn,Rn,Hn=function(t){return"prerender"!=T.visibilityState&&(t(),!0)},qn=function(t){if(!Hn(t)){n(16);var e=!1,o=function(){if(!e&&Hn(t)){e=!0;var n=o,r=T;r.removeEventListener?r.removeEventListener("visibilitychange",n,!1):r.detachEvent&&r.detachEvent("onvisibilitychange",n)}};p(T,"visibilitychange",o)}},Fn=/^(?:(\w+)\.)?(?:(\w+):)?(\w+)$/,Un=function(t){if(s(t[0]))this.u=t[0];else{var e=Fn.exec(t[0]);if(null!=e&&4==e.length&&(this.c=e[1]||"t0",this.K=e[2]||"",this.C=e[3],this.a=[].slice.call(t,1),this.K||(this.A="create"==this.C,this.i="require"==this.C,this.g="provide"==this.C,this.ba="remove"==this.C),this.i&&(3<=this.a.length?(this.X=this.a[1],this.W=this.a[2]):this.a[1]&&(c(this.a[1])?this.X=this.a[1]:this.W=this.a[1]))),e=t[1],t=t[2],!this.C)throw"abort";if(this.i&&(!c(e)||""==e))throw"abort";if(this.g&&(!c(e)||""==e||!s(t)))throw"abort";if(Vn(this.c)||Vn(this.K))throw"abort";if(this.g&&"t0"!=this.c)throw"abort"}};function Vn(t){return 0<=t.indexOf(".")||0<=t.indexOf(":")}Pn=new E,Nn=new E,Rn=new E,On={ec:45,ecommerce:46,linkid:47};var Wn=function(t,e,n){e==zn||e.get(_e);var o=Pn.get(t);return!!s(o)&&(e.plugins_=e.plugins_||new E,!!e.plugins_.get(t)||(e.plugins_.set(t,new o(e,n||{})),!0))},Bn=function(t,e,o,r,i){if(!s(Pn.get(e))&&!Nn.get(e)){if(On.hasOwnProperty(e)&&n(On[e]),wn.test(e)){if(n(52),!(t=zn.j(t)))return!0;r={id:e,B:(o=r||{}).dataLayer||"dataLayer",ia:!!t.get("anonymizeIp"),na:i,G:!1},t.get(">m")==e&&(r.G=!0);var a=String(t.get("name"));"t0"!=a&&(r.target=a),k(String(t.get("trackingId")))||(r.ja=String(t.get(Te)),r.ka=Number(t.get(xe)),o=o.palindrome?yn:bn,o=(o=T.cookie.replace(/^|(; +)/g,";").match(o))?o.sort().join("").substring(1):void 0,r.la=o,r.qa=w(t.b.get(Et)||"","gclid")),t=r.B,o=(new Date).getTime(),_[t]=_[t]||[],o={"gtm.start":o},i||(o.event="gtm.js"),_[t].push(o),o=function(t){function e(t,e){e&&(n+="&"+t+"="+h(e))}var n="https://www.google-analytics.com/gtm/js?id="+h(t.id);return"dataLayer"!=t.B&&e("l",t.B),e("t",t.target),e("cid",t.ja),e("cidt",t.ka),e("gac",t.la),e("aip",t.ia),t.na&&e("m","sync"),e("cycle",t.G),t.qa&&e("gclid",t.qa),n}(r)}!o&&On.hasOwnProperty(e)?(n(39),o=e+".js"):n(43),o&&(o&&0<=o.indexOf("/")||(o=(dt||v()?"https:":"http:")+"//www.google-analytics.com/plugins/ua/"+o),t=(r=Kn(o)).protocol,o=T.location.protocol,("https:"==t||t==o||"http:"==t&&"http:"==o)&&Gn(r)&&(g(r.url,void 0,i),Nn.set(e,!0)))}},Xn=function(t,e){var n=Rn.get(t)||[];n.push(e),Rn.set(t,n)},$n=function(t,e){Pn.set(t,e),e=Rn.get(t)||[];for(var n=0;nt.split("/")[0].indexOf(":")&&(t=s+r[2].substring(0,r[2].lastIndexOf("/"))+"/"+t),n.href=t,o=e(n),{protocol:(n.protocol||"").toLowerCase(),host:o[0],port:o[1],path:o[2],query:n.search||"",url:t||""}},Yn={ga:function(){Yn.f=[]}};Yn.ga(),Yn.D=function(t){var e=Yn.J.apply(Yn,arguments);e=Yn.f.concat(e);for(Yn.f=[];0o;o++){var r=e[o].src;if(r&&0==r.indexOf("https://www.google-analytics.com/analytics")){n(33),e=!0;break t}}e=!1}e&&(dt=!0)}v()||dt||!We(new Ve(1e4))||(n(36),dt=!0),(_.gaplugins=_.gaplugins||{}).Linker=dn,e=dn.prototype,$n("linker",dn),Ue("decorate",e,e.ca,20),Ue("autoLink",e,e.S,25),$n("displayfeatures",Ln),$n("adfeatures",Ln),t=t&&t.q,a(t)?Yn.D.apply(zn,t):n(50)}},zn.da=function(){for(var t=zn.getAll(),e=0;e>21:o;return o}Zn&&Zn.r?Qn():qn(Qn),qn(function(){Yn.D(["provide","render",f])})}(window),function(){var t=window,e="push",n="length",o="prototype",r=function(t){if(t.get&&t.set){this.clear();var e=t.get("buildHitTask");t.set("buildHitTask",d(this,e)),t.set("_rlt",f(this,t.get("_rlt")))}},i={action:"pa",promoAction:"promoa",id:"ti",affiliation:"ta",revenue:"tr",tax:"tt",shipping:"ts",coupon:"tcc",step:"cos",label:"col",option:"col",options:"col",list:"pal",listSource:"pls"},s={id:"id",name:"nm",brand:"br",category:"ca",variant:"va",position:"ps",price:"pr",quantity:"qt",coupon:"cc","dimension(\\d+)":"cd","metric(\\d+)":"cm"},a={id:"id",name:"nm",creative:"cr",position:"ps"},c=function(t,e){this.name=t,this.source=e,this.e=[]},l="detail checkout checkout_option click add remove purchase refund".split(" ");r[o].clear=function(){this.b=void 0,this.f=[],this.a=[],this.g=[],this.d=void 0},r[o].h=function(t,e){var n=e||{};"promo_click"==t?n.promoAction="click":n.action=t,this.b=h(n)},r[o].j=function(t){(t=h(t))&&this.f[e](t)},r[o].i=function(t){var o=h(t);if(o){var r,i=t.list||"";t=t.listSource||"";for(var s=0;s{o.style.display="",o.style.visibility="",t&&Wr(o,function(){o.style.height=""})},{once:!0}),o.style.boxSizing="content-box",o.style.display="block",o.style.visibility="visible",t&&Wr(o,function(){o.style.height=getComputedStyle(o).height}),o.offsetHeight)}e();for(const o of n)if(o instanceof HTMLElement&&Vr(o)){const t=getComputedStyle(o).height;o.style.boxSizing="",o.style.height="0px"===t?`${o.scrollHeight}px`:"0px"}}(o,()=>{const n=null!=e?e:!o.classList.contains("open");o.classList.toggle("open",n),o.classList.toggle("Details--on",n),t.setAttribute("aria-expanded",n.toString()),Promise.resolve().then(()=>{!function(t){const e=t.querySelectorAll("input[autofocus], textarea[autofocus]"),n=e[e.length-1];n instanceof HTMLElement&&document.activeElement!==n&&n.focus()}(o),function(t){t.classList.contains("tooltipped")&&(t.classList.remove("tooltipped"),t.addEventListener("mouseleave",()=>{t.classList.add("tooltipped"),t instanceof HTMLElement&&t.blur()},{once:!0}))}(t),function(t){const e=t.closest(".js-edit-repository-meta");e instanceof HTMLFormElement&&e.reset()}(t);const e=new CustomEvent("details:toggled",{bubbles:!0,cancelable:!1,detail:{open:o.classList.contains("Details--on")}});o.dispatchEvent(e)})})}function Xr(t){let e=!1,n=t.parentElement;for(;n;)n.classList.contains("Details-content--shown")&&(e=!0),n.classList.contains("js-details-container")&&(n.classList.toggle("open",!e),n.classList.toggle("Details--on",!e),e=!1),n=n.parentElement}function $r(t){let e=t;const n=e.ownerDocument;if(!n)return;if(!e.offsetParent)return;const o=n.defaultView.HTMLElement;if(e!==n.body){for(;e!==n.body;){if(!(e.parentElement instanceof o))return;e=e.parentElement;const{position:t,overflowY:n,overflowX:r}=getComputedStyle(e);if("fixed"===t||"auto"===n||"auto"===r||"scroll"===n||"scroll"===r)break}return e instanceof Document?null:e}}function Gr(t,e){let n=e;const o=t.ownerDocument;if(!o)return;if(!o.body)return;const r=o.documentElement;if(!r)return;if(t===r)return;const i=Kr(t,n);if(!i)return;const s=(n=i._container)===o.documentElement?{top:o.defaultView.pageYOffset,left:o.defaultView.pageXOffset}:{top:n.scrollTop,left:n.scrollLeft},a=i.top-s.top,c=i.left-s.left,l=n.clientHeight,u=n.clientWidth;return{top:a,left:c,bottom:l-(a+t.offsetHeight),right:u-(c+t.offsetWidth),height:l,width:u}}function Kr(t,e){let n=t;const o=n.ownerDocument;if(!o)return;const r=o.documentElement;if(!r)return;const i=o.body;if(!i)return;const s=o.defaultView.HTMLElement;let a=0,c=0;const l=n.offsetHeight,u=n.offsetWidth;for(;n!==o.body&&n!==e;){if(a+=n.offsetTop||0,c+=n.offsetLeft||0,!(n.offsetParent instanceof s))return;n=n.offsetParent}let d,f,h;if(e&&e!==o&&e!==o.defaultView&&e!==o.documentElement&&e!==o.body){if(!(e instanceof s))return;h=e,d=e.scrollHeight,f=e.scrollWidth}else h=r,d=function(t,e){return Math.max(t.scrollHeight,e.scrollHeight,t.offsetHeight,e.offsetHeight,e.clientHeight)}(i,r),f=function(t,e){return Math.max(t.scrollWidth,e.scrollWidth,t.offsetWidth,e.offsetWidth,e.clientWidth)}(i,r);return{top:a,left:c,bottom:d-(a+l),right:f-(c+u),_container:h}}function Yr(t,e){let n=t;const o=t.ownerDocument;n!==o&&n!==o.defaultView&&n!==o.documentElement&&n!==o.body||(n=o);const r=o.defaultView.Document,i=o.defaultView.HTMLElement;if(n instanceof r){const t=null!=e.top?e.top:o.defaultView.pageYOffset,n=null!=e.left?e.left:o.defaultView.pageXOffset;o.defaultView.scrollTo(n,t)}else{if(!(n instanceof i))throw new Error("container is not HTMLElement");n.scrollTop=e.top,null!=e.left&&(n.scrollLeft=e.left)}}pt("click",".js-details-target",function(t){const{currentTarget:e}=t;e instanceof HTMLElement&&(Br(e),t.preventDefault())}),Rr(function({target:t}){t&&Xr(t)});const zr=navigator.userAgent.match(/Macintosh/),Jr=zr?"metaKey":"ctrlKey",Qr=zr?"Meta":"Control";let Zr=!1,ti={x:0,y:0};function ei(t){t instanceof MouseEvent&&(ti.x===t.clientX&&ti.y===t.clientY||(Zr=!1),ti={x:t.clientX,y:t.clientY})}function ni(t){if(Zr)return;const e=t.currentTarget,{target:n}=t;if(!(n instanceof Element&&e instanceof HTMLElement&&e.closest(".js-active-navigation-container")))return;const o=n.closest(".js-navigation-item");o&&hi(o,e)}te(".js-navigation-container:not(.js-navigation-container-no-mouse)",{subscribe:t=>Bo(Wo(t,"mouseover",ei),Wo(t,"mouseover",ni))});let oi=0;function ri(t){if(t.target!==document.body&&t.target instanceof HTMLElement&&!t.target.classList.contains("js-navigation-enable"))return;Zr=!0;const e=pi();let n=!1;if(e){n=mt(e.querySelector('.js-navigation-item[aria-selected="true"]')||e,"navigation:keydown",{hotkey:Mo(t),originalEvent:t,originalTarget:t.target})}n||t.preventDefault()}function ii(t){mt(t.currentTarget,"navigation:open",{modifierKey:t.modifierKey||t.altKey||t.ctrlKey||t.metaKey,shiftKey:t.shiftKey})||t.preventDefault()}function si(t){const e=pi();t!==e&&(e&&ai(e),t.classList.add("js-active-navigation-container"))}function ai(t){t.classList.remove("js-active-navigation-container")}function ci(t,e){e||(e=t);const n=mi(t)[0],o=e.closest(".js-navigation-item")||n;if(si(t),o instanceof HTMLElement){if(hi(o,t))return;const e=$r(o);if(!e)throw new Error("invariant: app/assets/modules/github/navigation.js:481");wi(e,o)}}function li(t){const e=t.querySelectorAll(".js-navigation-item[aria-selected]");for(const n of e)n.classList.remove("navigation-focus"),n.setAttribute("aria-selected","false")}function ui(t,e){const n=mi(e),o=n.indexOf(t),r=n[o-1];if(r){if(hi(r,e))return;const t=$r(r);if(!t)throw new Error("invariant: app/assets/modules/github/navigation.js:529");"page"===gi(e)?vi(t,r):wi(t,r)}}function di(t,e){const n=mi(e),o=n.indexOf(t),r=n[o+1];if(r){if(hi(r,e))return;const t=$r(r);if(!t)throw new Error("invariant: app/assets/modules/github/navigation.js:558");"page"===gi(e)?vi(t,r):wi(t,r)}}function fi(t,e=!1){mt(t,"navigation:keyopen",{modifierKey:e})}function hi(t,e){return!mt(t,"navigation:focus")||(li(e),t.classList.add("navigation-focus"),t.setAttribute("aria-selected","true"),!1)}function pi(){return document.querySelector(".js-active-navigation-container")}function mi(t){return Array.from(t.querySelectorAll(".js-navigation-item")).filter(Pr)}function gi(t){return t.getAttribute("data-navigation-scroll")||"item"}function vi(t,e,n="smooth"){const o=Gr(e,t);o&&(o.bottom<=0?e.scrollIntoView({behavior:n,block:"start"}):o.top<=0&&e.scrollIntoView({behavior:n,block:"end"}))}function wi(t,e){const n=Kr(e,t),o=Gr(e,t);if(null!=n&&null!=o)if(o.bottom<=0&&document.body){Yr(t,{top:(null!=t.offsetParent?t.scrollHeight:document.body.scrollHeight)-(n.bottom+o.height)})}else o.top<=0&&Yr(t,{top:n.top})}te(".js-active-navigation-container",{add(){1===++oi&&document.addEventListener("keydown",ri)},remove(){0===--oi&&document.removeEventListener("keydown",ri)}}),pt("navigation:keydown",".js-active-navigation-container",function(t){if(!(t instanceof CustomEvent))throw new Error("invariant: app/assets/modules/github/navigation.js:208");const e=t.currentTarget,n=t.detail.originalTarget.matches("input, textarea"),o=t.target;if(o.classList.contains("js-navigation-item"))if(n){if(zr)switch(Mo(t.detail.originalEvent)){case"Control+n":di(o,e);break;case"Control+p":ui(o,e)}switch(Mo(t.detail.originalEvent)){case"ArrowUp":ui(o,e);break;case"ArrowDown":di(o,e);break;case"Enter":case`${Qr}+Enter`:fi(o,t.detail.originalEvent[Jr])}}else{if(zr)switch(Mo(t.detail.originalEvent)){case"Control+n":di(o,e);break;case"Control+p":ui(o,e);break;case"Alt+v":!function(t,e){const n=mi(e);let o=n.indexOf(t);const r=$r(t);if(null==r)return;let i,s;for(;(i=n[o-1])&&(s=Gr(i,r))&&s.top>=0;)o--;if(i){const t=hi(i,e);if(t)return;vi(r,i)}}(o,e);break;case"Control+v":!function(t,e){const n=mi(e);let o=n.indexOf(t);const r=$r(t);if(null==r)return;let i,s;for(;(i=n[o+1])&&(s=Gr(i,r))&&s.bottom>=0;)o++;if(i){const t=hi(i,e);if(t)return;vi(r,i)}}(o,e)}switch(Mo(t.detail.originalEvent)){case"j":case"J":di(o,e);break;case"k":case"K":ui(o,e);break;case"o":case"Enter":case`${Qr}+Enter`:fi(o,t.detail[Jr])}}else{const o=mi(e)[0];if(o)if(n){if(zr)switch(Mo(t.detail.originalEvent)){case"Control+n":hi(o,e)}switch(Mo(t.detail.originalEvent)){case"ArrowDown":hi(o,e)}}else{if(zr)switch(Mo(t.detail.originalEvent)){case"Control+n":case"Control+v":hi(o,e)}switch(Mo(t.detail.originalEvent)){case"j":hi(o,e)}}}if(n){if(zr)switch(Mo(t.detail.originalEvent)){case"Control+n":case"Control+p":t.preventDefault()}switch(Mo(t.detail.originalEvent)){case"ArrowUp":case"ArrowDown":t.preventDefault();break;case"Enter":t.preventDefault()}}else{if(zr)switch(Mo(t.detail.originalEvent)){case"Control+n":case"Control+p":case"Control+v":case"Alt+v":t.preventDefault()}switch(Mo(t.detail.originalEvent)){case"j":case"k":t.preventDefault();break;case"o":case"Enter":case`${Jr}+Enter`:t.preventDefault()}}}),pt("click",".js-active-navigation-container .js-navigation-item",function(t){if(!(t instanceof MouseEvent))throw new Error("invariant: app/assets/modules/github/navigation.js:379");ii(t)}),pt("navigation:keyopen",".js-active-navigation-container .js-navigation-item",function(t){if(!(t instanceof CustomEvent))throw new Error("invariant: app/assets/modules/github/navigation.js:384");const e=t.currentTarget.classList.contains("js-navigation-open")?t.currentTarget:t.currentTarget.querySelector(".js-navigation-open");if(e){if(t.detail.modifierKey)window.open(e.href,"_blank"),window.focus();else{e.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0}))&&e.click()}t.preventDefault()}else ii(t)});var bi=Dn(function(t){var e;e=function(){if("undefined"==typeof window||!window.document)return function(){throw new Error("Sortable.js requires a window with a document")};var t,e,n,o,r,i,s,a,c,l,u,d,f,h,p,m,g,v,w,b,y,E,_={},T=/\s+/g,x=/left|right|inline/,k="Sortable"+(new Date).getTime(),L=window,A=L.document,S=L.parseInt,C=L.setTimeout,j=L.jQuery||L.Zepto,M=L.Polymer,D=!1,I="draggable"in A.createElement("div"),P=!navigator.userAgent.match(/(?:Trident.*rv[ :]?11\.|msie)/i)&&((E=A.createElement("x")).style.cssText="pointer-events:auto","auto"===E.style.pointerEvents),O=!1,N=Math.abs,R=Math.min,H=[],q=[],F=function(){return!1},U=it(function(t,e,n){if(n&&e.scroll){var o,r,i,s,a,d,f=n[k],h=e.scrollSensitivity,p=e.scrollSpeed,m=t.clientX,g=t.clientY,v=window.innerWidth,w=window.innerHeight;if(l!==n&&(c=e.scroll,l=n,u=e.scrollFn,!0===c)){c=n;do{if(c.offsetWidth-1:r==t)}:F}var n={},o=t.group;o&&"object"==typeof o||(o={name:o}),n.name=o.name,n.checkPull=e(o.pull,!0),n.checkPut=e(o.put),n.revertClone=o.revertClone,t.group=n};try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){D={capture:!1,passive:!1}}}))}catch(lt){}function W(t,e){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be HTMLElement, and not "+{}.toString.call(t);this.el=t,this.options=e=st({},e),t[k]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,scroll:!0,scrollSensitivity:30,scrollSpeed:10,draggable:/[uo]l/i.test(t.nodeName)?"li":">*",ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,setData:function(t,e){t.setData("Text",e.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==W.supportPointer};for(var o in n)!(o in e)&&(e[o]=n[o]);for(var r in V(e),this)"_"===r.charAt(0)&&"function"==typeof this[r]&&(this[r]=this[r].bind(this));this.nativeDraggable=!e.forceFallback&&I,G(t,"mousedown",this._onTapStart),G(t,"touchstart",this._onTapStart),e.supportPointer&&G(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(G(t,"dragover",this),G(t,"dragenter",this)),q.push(this._onDragOver),e.store&&this.sort(e.store.get(this))}function B(e,n){"clone"!==e.lastPullMode&&(n=!0),r&&r.state!==n&&(z(r,"display",n?"none":""),n||r.state&&(e.options.group.revertClone?(i.insertBefore(r,s),e._animate(t,r)):i.insertBefore(r,t)),r.state=n)}function X(t,e,n){if(t){n=n||A;do{if(">*"===e&&t.parentNode===n||rt(t,e))return t}while(t=$(t))}return null}function $(t){var e=t.host;return e&&e.nodeType?e:t.parentNode}function G(t,e,n){t.addEventListener(e,n,D)}function K(t,e,n){t.removeEventListener(e,n,D)}function Y(t,e,n){if(t)if(t.classList)t.classList[n?"add":"remove"](e);else{var o=(" "+t.className+" ").replace(T," ").replace(" "+e+" "," ");t.className=(o+(n?" "+e:"")).replace(T," ")}}function z(t,e,n){var o=t&&t.style;if(o){if(void 0===n)return A.defaultView&&A.defaultView.getComputedStyle?n=A.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),void 0===e?n:n[e];e in o||(e="-webkit-"+e),o[e]=n+("string"==typeof n?"":"px")}}function J(t,e,n){if(t){var o=t.getElementsByTagName(e),r=0,i=o.length;if(n)for(;r*"!==e&&!rt(t,e)||n++;return n}function rt(t,e){if(t){var n=(e=e.split(".")).shift().toUpperCase(),o=new RegExp("\\s("+e.join("|")+")(?=\\s)","g");return!(""!==n&&t.nodeName.toUpperCase()!=n||e.length&&((" "+t.className+" ").match(o)||[]).length!=e.length)}return!1}function it(t,e){var n,o;return function(){void 0===n&&(n=arguments,o=this,C(function(){1===n.length?t.call(o,n[0]):t.apply(o,n),n=void 0},e))}}function st(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function at(t){return C(t,0)}function ct(t){return clearTimeout(t)}return W.prototype={constructor:W,_onTapStart:function(e){var n,o=this,r=this.el,i=this.options,s=i.preventOnFilter,c=e.type,l=e.touches&&e.touches[0],u=(l||e).target,d=e.target.shadowRoot&&e.path&&e.path[0]||u,f=i.filter;if(function(t){H.length=0;var e=t.getElementsByTagName("input"),n=e.length;for(;n--;){var o=e[n];o.checked&&H.push(o)}}(r),!t&&!(/mousedown|pointerdown/.test(c)&&0!==e.button||i.disabled)&&!d.isContentEditable&&(u=X(u,i.draggable,r))&&a!==u){if(n=ot(u,i.draggable),"function"==typeof f){if(f.call(this,e,u,this))return Q(o,d,"filter",u,r,r,n),void(s&&e.preventDefault())}else if(f&&(f=f.split(",").some(function(t){if(t=X(d,t.trim(),r))return Q(o,t,"filter",u,r,r,n),!0})))return void(s&&e.preventDefault());i.handle&&!X(d,i.handle,r)||this._prepareDragStart(e,l,u,n)}},_prepareDragStart:function(o,r,c,l){var u,d=this,f=d.el,h=d.options,m=f.ownerDocument;c&&!t&&c.parentNode===f&&(w=o,i=f,t=c,h.handleReplacedDragElement&&(e=c.getAttribute("id")),n=t.parentNode,s=t.nextSibling,a=c,g=h.group,p=l,this._lastX=(r||o).clientX,this._lastY=(r||o).clientY,t.style["will-change"]="all",u=function(){d._disableDelayedDrag(),t.draggable=d.nativeDraggable,Y(t,h.chosenClass,!0),d._triggerDragStart(o,r),Q(d,i,"choose",t,i,i,p)},h.ignore.split(",").forEach(function(e){J(t,e.trim(),tt)}),G(m,"mouseup",d._onDrop),G(m,"touchend",d._onDrop),G(m,"touchcancel",d._onDrop),G(m,"selectstart",d),h.supportPointer&&G(m,"pointercancel",d._onDrop),h.delay?(G(m,"mouseup",d._disableDelayedDrag),G(m,"touchend",d._disableDelayedDrag),G(m,"touchcancel",d._disableDelayedDrag),G(m,"mousemove",d._disableDelayedDrag),G(m,"touchmove",d._disableDelayedDrag),h.supportPointer&&G(m,"pointermove",d._disableDelayedDrag),d._dragStartTimer=C(u,h.delay)):u())},_disableDelayedDrag:function(){var t=this.el.ownerDocument;clearTimeout(this._dragStartTimer),K(t,"mouseup",this._disableDelayedDrag),K(t,"touchend",this._disableDelayedDrag),K(t,"touchcancel",this._disableDelayedDrag),K(t,"mousemove",this._disableDelayedDrag),K(t,"touchmove",this._disableDelayedDrag),K(t,"pointermove",this._disableDelayedDrag)},_triggerDragStart:function(e,n){(n=n||("touch"==e.pointerType?e:null))?(w={target:t,clientX:n.clientX,clientY:n.clientY},this._onDragStart(w,"touch")):this.nativeDraggable?(G(t,"dragend",this),G(i,"dragstart",this._onDragStart)):this._onDragStart(w,!0);try{A.selection?at(function(){A.selection.empty()}):window.getSelection().removeAllRanges()}catch(lt){}},_dragStarted:function(){if(i&&t){var e=this.options;Y(t,e.ghostClass,!0),Y(t,e.dragClass,!1),W.active=this,Q(this,i,"start",t,i,i,p)}else this._nulling()},_emulateDragOver:function(){if(b){if(this._lastX===b.clientX&&this._lastY===b.clientY)return;this._lastX=b.clientX,this._lastY=b.clientY,P||z(o,"display","none");var t=A.elementFromPoint(b.clientX,b.clientY),e=t,n=q.length;if(t&&t.shadowRoot&&(e=t=t.shadowRoot.elementFromPoint(b.clientX,b.clientY)),e)do{if(e[k]){for(;n--;)q[n]({clientX:b.clientX,clientY:b.clientY,target:t,rootEl:e});break}t=e}while(e=e.parentNode);P||z(o,"display","")}},_onTouchMove:function(t){if(w){var e=this.options,n=e.fallbackTolerance,r=e.fallbackOffset,i=t.touches?t.touches[0]:t,s=i.clientX-w.clientX+r.x,a=i.clientY-w.clientY+r.y,c=t.touches?"translate3d("+s+"px,"+a+"px,0)":"translate("+s+"px,"+a+"px)";if(!W.active){if(n&&R(N(i.clientX-this._lastX),N(i.clientY-this._lastY))5||e.clientX-(n.left+n.width)>5}(m,a)){if(0!==m.children.length&&m.children[0]!==o&&m===a.target&&(c=m.lastElementChild),c){if(c.animated)return;u=c.getBoundingClientRect()}B(E,_),!1!==Z(i,m,t,l,c,u,a)&&(t.contains(m)||(m.appendChild(t),n=m),this._animate(l,t),c&&this._animate(u,c))}else if(c&&!c.animated&&c!==t&&void 0!==c.parentNode[k]){d!==c&&(d=c,f=z(c),h=z(c.parentNode));var S=(u=c.getBoundingClientRect()).right-u.left,j=u.bottom-u.top,M=x.test(f.cssFloat+f.display)||"flex"==h.display&&0===h["flex-direction"].indexOf("row"),D=c.offsetWidth>t.offsetWidth,I=c.offsetHeight>t.offsetHeight,P=(M?(a.clientX-u.left)/S:(a.clientY-u.top)/j)>.5,N=c.nextElementSibling,R=!1;if(M){var H=t.offsetTop,q=c.offsetTop;R=H===q?c.previousElementSibling===t&&!D||P&&D:c.previousElementSibling===t||t.previousElementSibling===c?(a.clientY-u.top)/j>.5:q>H}else T||(R=N!==t&&!I||P&&I);var F=Z(i,m,t,l,c,u,a,R);!1!==F&&(1!==F&&-1!==F||(R=1===F),O=!0,C(et,30),B(E,_),t.contains(m)||(R&&!N?m.appendChild(t):c.parentNode.insertBefore(t,R?N:c)),n=t.parentNode,this._animate(l,t),this._animate(u,c))}}},_animate:function(t,e){var n=this.options.animation;if(n){var o=e.getBoundingClientRect();1===t.nodeType&&(t=t.getBoundingClientRect()),z(e,"transition","none"),z(e,"transform","translate3d("+(t.left-o.left)+"px,"+(t.top-o.top)+"px,0)"),e.offsetWidth,z(e,"transition","all "+n+"ms"),z(e,"transform","translate3d(0,0,0)"),clearTimeout(e.animated),e.animated=C(function(){z(e,"transition",""),z(e,"transform",""),e.animated=!1},n)}},_offUpEvents:function(){var t=this.el.ownerDocument;K(A,"touchmove",this._onTouchMove),K(A,"pointermove",this._onTouchMove),K(t,"mouseup",this._onDrop),K(t,"touchend",this._onDrop),K(t,"pointerup",this._onDrop),K(t,"touchcancel",this._onDrop),K(t,"pointercancel",this._onDrop),K(t,"selectstart",this)},_onDrop:function(e){var a=this.el,c=this.options;clearInterval(this._loopId),clearInterval(_.pid),clearTimeout(this._dragStartTimer),ct(this._cloneId),ct(this._dragStartId),K(A,"mouseover",this),K(A,"mousemove",this._onTouchMove),this.nativeDraggable&&(K(A,"drop",this),K(a,"dragstart",this._onDragStart)),this._offUpEvents(),e&&(y&&(e.preventDefault(),!c.dropBubble&&e.stopPropagation()),o&&o.parentNode&&o.parentNode.removeChild(o),i!==n&&"clone"===W.active.lastPullMode||r&&r.parentNode&&r.parentNode.removeChild(r),t&&(this.nativeDraggable&&K(t,"dragend",this),tt(t),t.style["will-change"]="",Y(t,this.options.ghostClass,!1),Y(t,this.options.chosenClass,!1),Q(this,i,"unchoose",t,n,i,p),i!==n?(m=ot(t,c.draggable))>=0&&(Q(null,n,"add",t,n,i,p,m),Q(this,i,"remove",t,n,i,p,m),Q(null,n,"sort",t,n,i,p,m),Q(this,i,"sort",t,n,i,p,m)):t.nextSibling!==s&&(m=ot(t,c.draggable))>=0&&(Q(this,i,"update",t,n,i,p,m),Q(this,i,"sort",t,n,i,p,m)),W.active&&(null!=m&&-1!==m||(m=p),Q(this,i,"end",t,n,i,p,m),this.save()))),this._nulling()},_nulling:function(){i=t=n=o=s=r=a=c=l=w=b=y=m=d=f=v=g=W.active=null,H.forEach(function(t){t.checked=!0}),H.length=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragover":case"dragenter":t&&(this._onDragOver(e),function(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move");t.preventDefault()}(e));break;case"mouseover":this._onDrop(e);break;case"selectstart":e.preventDefault()}},toArray:function(){for(var t,e=[],n=this.el.children,o=0,r=n.length,i=this.options;o