mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-11-14 08:17:26 +01:00
.paper-table hid overflow to keep its rounded corners, which cut off row ⋯ menus on short lists (admin repositories, My work). Let the container overflow and put the corner radius on the head and last row. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
93 lines
704 KiB
JavaScript
93 lines
704 KiB
JavaScript
"use strict";(()=>{var Rd=Object.defineProperty;var Dd=(e,t)=>{for(var o in t)Rd(e,o,{get:t[o],enumerable:!0})};var pe=["abap","abc","actionscript","ada","alda","apache_conf","apex","applescript","aql","asciidoc","asl","assembly_x86","autohotkey","batchfile","c9search","c_cpp","cirru","clojure","cobol","coffee","coldfusion","crystal","csharp","csound_document","csound_orchestra","csound_score","csp","css","curly","d","dart","diff","django","dockerfile","dot","drools","edifact","eiffel","ejs","elixir","elm","erlang","forth","fortran","fsharp","fsl","ftl","gcode","gherkin","gitignore","glsl","gobstones","golang","graphqlschema","groovy","haml","handlebars","haskell","haskell_cabal","haxe","hjson","html","html_elixir","html_ruby","ini","io","jack","jade","java","javascript","json","json5","jsoniq","jsp","jssm","jsx","julia","kotlin","latex","less","liquid","lisp","livescript","logiql","logtalk","lsl","lua","luapage","lucene","makefile","markdown","mask","matlab","maze","mediawiki","mel","mixal","mushcode","mysql","nginx","nim","nix","nsis","nunjucks","objectivec","ocaml","pascal","perl","perl6","pgsql","php","php_laravel_blade","pig","plain_text","powershell","praat","prisma","prolog","properties","protobuf","puppet","python","qml","r","razor","rdoc","red","redshift","rhtml","rst","ruby","rust","sass","scad","scala","scheme","scss","sh","sjs","slim","smarty","snippets","soy_template","space","sparql","sql","sqlserver","stylus","svg","swift","tcl","terraform","tex","text","textile","toml","tsx","turtle","twig","typescript","vala","vbscript","velocity","verilog","vhdl","visualforce","wollok","xml","xquery","yaml","zeek"];var fe={markdown:"/script/markdown.6c8dfb7b1d.min.js",notebook:"/script/notebook.c3144c18ae.min.js",org:"/script/org.f61f262915.min.js",pdf:"/script/pdf.4d9cc6ff49.min.js",editor:"/script/editor.4f142d3adc.min.js"};function Si(e){let t=e.location.hash.slice(1);if(e.history.replaceState(null,"","/review-link"),t.length>2048)return null;let o=new URLSearchParams(t);if([...o.keys()].length!==3||[...o.keys()].some(a=>!["clientId","intentId","token"].includes(a)))return null;let i=o.get("clientId"),s=o.get("intentId"),r=o.get("token");return!/^[a-f0-9]{32}$/.test(i||"")||!/^[a-f0-9]{32}$/.test(s||"")||!/^[a-f0-9]{64}$/.test(r||"")?null:{contract:"4open.artifacts/1",clientId:i,intentId:s,token:r}}function Ni(e,t){let{http:o,promises:i,window:s}=t,r=t.takeReviewHandoff(),a=r?{clientId:r.clientId,intentId:r.intentId}:null,p,f,g,y,b,m=!0,E,P=i.defer(),k=()=>[...s.crypto.getRandomValues(new Uint8Array(16))].map(L=>L.toString(16).padStart(2,"0")).join("");Object.assign(e,{repositoryId:"",handoffEnabled:!1,busy:!1,preview:null,acceptAccess:!1,acceptRetention:!1,uncertain:!1,saved:!1,expired:!1,error:r?"":"Open a new artifact link from your submission. This link is missing or invalid."});let v=()=>m&&e.user?.username===b;function S(){m=!1,r=p=f=void 0,P.resolve(),s.clearTimeout(E)}e.on("dispose",S),e.on("routeLeave",S),e.watch(()=>e.user?.username,L=>{!b&&L?b=L:b&&L!==b&&(S(),e.preview=null,e.repositoryId="",e.busy=!1,e.saved=!1,e.handoffEnabled=!1,e.error="Your account changed. Open a new artifact link from your submission.")});let _=()=>({timeout:P.promise,headers:{"Content-Type":"application/json","X-Review-CSRF":f}}),M=L=>L?.status===404?"Artifact linking is not available on this server.":L?.status===401?"Sign in, then open a new artifact link from your submission.":L?.status===403?"This account cannot approve this repository or this link.":"The request could not be completed. You can retry from this page.";e.loadPreview=async()=>{if(!m||!r||e.busy||e.uncertain||e.saved||!e.user?.username)return;b=e.user.username;let L=e.repositoryId.trim();if(!/^[A-Za-z0-9_-]{3,128}$/.test(L)){e.error="Enter the anonymous repository ID from its URL.";return}e.busy=!0,e.error="",e.preview=null,p=void 0,e.acceptAccess=e.acceptRetention=!1,e.expired=!1,s.clearTimeout(E),y||(y=k());try{let q=(await o.get("/api/review-consent/csrf",{timeout:P.promise})).data;if(!v())return;if(f=q.csrf,e.handoffEnabled=q.handoffEnabled===!0,!/^[a-f0-9]{64}$/.test(f||""))throw new Error("invalid_csrf");let G=(await o.post("/api/review-consent/preview",{repositoryId:L,intent:{...r,requestId:y}},_())).data;if(!v())return;if(!G||typeof G.ticket!="string"||!G.ticket||G.ticket.length>8192||typeof G.repositoryName!="string"||!["restricted-review","anonymous-link"].includes(G.policy?.access)||!Number.isSafeInteger(G.policy.version)||!Number.isFinite(Date.parse(G.policy.retainUntil))||!Number.isFinite(Date.parse(G.expiresAt))||Date.parse(G.expiresAt)<=Date.now()||Date.parse(G.expiresAt)>Date.now()+6e5)throw new Error("invalid_preview");p=G.ticket,g=k(),e.preview={repositoryName:G.repositoryName,policy:{...G.policy},expiresAt:G.expiresAt},E=s.setTimeout(()=>{m&&(e.expired=!0)},Math.max(0,Date.parse(G.expiresAt)-Date.now()))}catch(q){v()&&(e.error=M(q))}finally{v()&&(e.busy=!1)}},e.confirmConsent=async()=>{if(!(!v()||e.busy||e.saved||!p||!e.acceptAccess||!e.acceptRetention)){if(Date.parse(e.preview.expiresAt)<=Date.now()){e.expired=!0;return}e.busy=!0,e.error="";try{let L=(await o.post("/api/review-consent/confirm",{ticket:p,requestId:g,acceptAccess:!0,acceptRetention:!0},_())).data;if(!v())return;if(L?.requestId!==g||!Number.isFinite(Date.parse(L.confirmedAt)))throw new Error("invalid_receipt");e.saved=!0,e.uncertain=!1,r=void 0,e.handoffEnabled||(p=void 0)}catch{v()&&(e.uncertain=!0,e.error="The confirmation was not verified. Retry with the same approval, or return to your submission to check its status.")}finally{v()&&(e.busy=!1)}}},e.continueReview=async()=>{if(!v()||e.busy||!e.saved||!e.handoffEnabled||!p||!a)return;e.busy=!0,e.error="";let L,q=()=>{L?.remove(),s.removeEventListener("securitypolicyviolation",G)},G=se=>{se.violatedDirective?.startsWith("form-action")&&(q(),v()&&(e.busy=!1,e.error="The return address was blocked. Return to your submission to check the artifact status."))};try{let se=(await o.post("/api/review-consent/handoff",{ticket:p},_())).data;if(!v())return;let ee=se?.completion,R=new URL(se?.callbackUrl);if(!ee||Object.keys(ee).sort().join(",")!=="clientId,code,contract,expiresAt,intentId"||ee.contract!=="4open.artifacts/1"||ee.clientId!==a.clientId||ee.intentId!==a.intentId||!/^[a-f0-9]{64}$/.test(ee.code||"")||!Number.isFinite(Date.parse(ee.expiresAt))||Date.parse(ee.expiresAt)<=Date.now()||Date.parse(ee.expiresAt)>Date.now()+3e5||R.protocol!=="https:"||R.href!==se.callbackUrl||R.username||R.password||se.callbackUrl.includes("?")||se.callbackUrl.includes("#"))throw new Error("invalid_handoff");L=s.document.createElement("form"),L.method="POST",L.action=R.href;let K=s.document.createElement("input");K.type="hidden",K.name="completion",K.value=JSON.stringify(ee),L.appendChild(K),s.document.body.appendChild(L),s.addEventListener("securitypolicyviolation",G),e.on("dispose",q),L.submit()}catch{q(),v()&&(e.busy=!1,e.error="The return to review could not be prepared. Retry from this page, or return to your submission to check its status.")}}}var wo=new Map,Ad=fe;function on(e){if(!wo.has(e)){let t=document.createElement("script");t.src=Ad[e];let o=new Promise((i,s)=>{t.onload=i,t.onerror=()=>{wo.delete(e),t.remove(),s(new Error(`Unable to load ${e}. Please retry.`))}});wo.set(e,o),document.head.appendChild(t)}return wo.get(e)}async function ko(){await on("editor"),ace.config.set("basePath","/script/external/ace/")}function yn(e){let t=Object.create(null);for(let o of e.split(","))t[o]=1;return o=>o in t}var Pe={},en=[],at=()=>{},hs=()=>!1,bn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),wn=e=>e.startsWith("onUpdate:"),je=Object.assign,Vn=(e,t)=>{let o=e.indexOf(t);o>-1&&e.splice(o,1)},Od=Object.prototype.hasOwnProperty,Te=(e,t)=>Od.call(e,t),ge=Array.isArray,jt=e=>qn(e)==="[object Map]",St=e=>qn(e)==="[object Set]",Ri=e=>qn(e)==="[object Date]";var ke=e=>typeof e=="function",$e=e=>typeof e=="string",ht=e=>typeof e=="symbol",Ae=e=>e!==null&&typeof e=="object",vs=e=>(Ae(e)||ke(e))&&ke(e.then)&&ke(e.catch),Ai=Object.prototype.toString,qn=e=>Ai.call(e),gs=e=>qn(e).slice(8,-1),Co=e=>qn(e)==="[object Object]",Eo=e=>$e(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,kn=yn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted");var So=e=>{let t=Object.create(null);return(o=>t[o]||(t[o]=e(o)))},Pd=/-\w/g,Je=So(e=>e.replace(Pd,t=>t.slice(1).toUpperCase())),Id=/\B([A-Z])/g,Pt=So(e=>e.replace(Id,"-$1").toLowerCase()),sn=So(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ln=So(e=>e?`on${sn(e)}`:""),bt=(e,t)=>!Object.is(e,t),Cn=(e,...t)=>{for(let o=0;o<e.length;o++)e[o](...t)},No=(e,t,o,i=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:i,value:o})},En=e=>{let t=parseFloat(e);return isNaN(t)?e:t};var Di,$n=()=>Di||(Di=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Re(e){if(ge(e)){let t={};for(let o=0;o<e.length;o++){let i=e[o],s=$e(i)?Ld(i):Re(i);if(s)for(let r in s)t[r]=s[r]}return t}else if($e(e)||Ae(e))return e}var Md=/;(?![^(]*\))/g,Vd=/:([^]+)/,qd=/"(?:[^"\\]|\\[^])*"|'(?:[^'\\]|\\[^])*'|\\[^]|\/\*[^]*?\*\//g;function Ld(e){let t={};return e.replace(qd,o=>o.startsWith("/*")?"":o).split(Md).forEach(o=>{if(o){let i=o.split(Vd);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function O(e){let t="";if($e(e))t=e;else if(ge(e))for(let o=0;o<e.length;o++){let i=O(e[o]);i&&(t+=i+" ")}else if(Ae(e))for(let o in e)e[o]&&(t+=o+" ");return t.trim()}var Oi="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,playsinline,readonly",Pi=yn(Oi),$d=yn(Oi+",async,autofocus,autoplay,controls,default,defer,disabled,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");function Ro(e){return!!e||e===""}function Ud(e,t,o){if(e.length!==t.length)return!1;let i=!0;for(let s=0;i&&s<e.length;s++)i=Nt(e[s],t[s],o);return i}function Ti(e,t,o){if(e.size!==t.size)return!1;let i=Array.from(t),s=new Uint8Array(i.length);for(let r of e){let a=-1;for(let p=0;p<i.length;p++)if(!s[p]&&Nt(r,i[p],o)){a=p;break}if(a<0)return!1;s[a]=1}return!0}function Fd(e,t,o){let i=jt(e),s=jt(t);if(i||s||(i=St(e),s=St(t),i||s))return i&&s?Ti(e,t,o):!1;let r=Object.keys(e).length,a=Object.keys(t).length;if(r!==a)return!1;for(let p in e){let f=e.hasOwnProperty(p),g=t.hasOwnProperty(p);if(f&&!g||!f&&g||!Nt(e[p],t[p],o))return!1}return String(e)===String(t)}function _i(e,t,o,i){o||(o=[new Map,new Map]);let[s,r]=o;if(s.has(e)||r.has(t))return s.get(e)===t&&r.get(t)===e;s.set(e,t),r.set(t,e);let a=i(e,t,o);return s.delete(e),r.delete(t),a}function Nt(e,t,o){if(e===t)return!0;let i=Ri(e),s=Ri(t);return i||s?i&&s?e.getTime()===t.getTime():!1:(i=ht(e),s=ht(t),i||s?e===t:(i=ge(e),s=ge(t),i||s?i&&s?_i(e,t,o,Ud):!1:(i=Ae(e),s=Ae(t),i||s?!i||!s?!1:_i(e,t,o,Fd):String(e)===String(t))))}function Do(e,t){return e.findIndex(o=>Nt(o,t))}var Ii=e=>!!(e&&e.__v_isRef===!0),u=e=>$e(e)?e:e==null?"":ge(e)||Ae(e)&&(e.toString===Ai||!ke(e.toString))?Ii(e)?u(e.value):JSON.stringify(e,Mi,2):String(e),Mi=(e,t)=>Ii(t)?Mi(e,t.value):jt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((o,[i,s],r)=>(o[ms(i,r)+" =>"]=s,o),{})}:St(t)?{[`Set(${t.size})`]:[...t.values()].map(o=>ms(o))}:ht(t)?ms(t):Ae(t)&&!ge(t)&&!Co(t)?String(t):t,ms=(e,t="")=>{var o;return ht(e)?`Symbol(${(o=e.description)!=null?o:t})`:e};function Bd(e,...t){console.warn(`[Vue warn] ${e}`,...t)}var Qe,zn=class{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&Qe&&(Qe.active?(this.parent=Qe,this.index=(Qe.scopes||(Qe.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,o;if(this.scopes){let i=this.scopes.slice();for(t=0,o=i.length;t<o;t++)i[t].pause()}for(t=0,o=this.effects.length;t<o;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,o;if(this.scopes){let s=this.scopes.slice();for(t=0,o=s.length;t<o;t++)s[t].resume()}let i=this.effects.slice();for(t=0,o=i.length;t<o;t++)i[t].resume()}}run(t){if(this._active){let o=Qe;try{return Qe=this,t()}finally{Qe=o}}}on(){++this._on===1&&(this.prevScope=Qe,Qe=this)}off(){if(this._on>0&&--this._on===0){if(Qe===this)Qe=this.prevScope;else{let t=Qe;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let o,i;for(o=0,i=this.effects.length;o<i;o++)this.effects[o].stop();for(this.effects.length=0,o=0,i=this.cleanups.length;o<i;o++)this.cleanups[o]();if(this.cleanups.length=0,this.scopes){let s=this.scopes.slice();for(o=0,i=s.length;o<i;o++)s[o].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){let s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}};function $i(){return Qe}function Wn(e,t=!1){Qe&&Qe.cleanups.push(e)}var qe;var ys=new WeakSet,Nn=class{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Qe&&(Qe.active?Qe.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,ys.has(this)&&(ys.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Fi(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Vi(this),Bi(this);let t=qe,o=Rt;qe=this,Rt=!0;try{return this.fn()}finally{zi(this),qe=t,Rt=o,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Os(t);this.deps=this.depsTail=void 0,Vi(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?ys.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){ks(this)&&this.run()}get dirty(){return ks(this)}},Ui=0,Fn,Bn;function Fi(e,t=!1){if(e.flags|=8,t){e.next=Bn,Bn=e;return}e.next=Fn,Fn=e}function _s(){Ui++}function As(){if(--Ui>0)return;if(Bn){let t=Bn;for(Bn=void 0;t;){let o=t.next;t.next=void 0,t.flags&=-9,t=o}}let e;for(;Fn;){let t=Fn;for(Fn=void 0;t;){let o=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(i){e||(e=i)}t=o}}if(e)throw e}function Bi(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function zi(e){let t,o=e.depsTail,i=o;for(;i;){let s=i.prevDep;i.version===-1?(i===o&&(o=s),Os(i),zd(i)):t=i,i.dep.activeLink=i.prevActiveLink,i.prevActiveLink=void 0,i=s}e.deps=t,e.depsTail=o}function ks(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Hi(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Hi(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Hn)||(e.globalVersion=Hn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!ks(e))))return;e.flags|=2;let t=e.dep,o=qe,i=Rt;qe=e,Rt=!0;try{Bi(e);let s=e.fn(e._value);(t.version===0||bt(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{qe=o,Rt=i,zi(e),e.flags&=-3}}function Os(e,t=!1){let{dep:o,prevSub:i,nextSub:s}=e;if(i&&(i.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=i,e.nextSub=void 0),o.subs===e&&(o.subs=i,!i&&o.computed)){o.computed.flags&=-5;for(let r=o.computed.deps;r;r=r.nextDep)Os(r,!0)}!t&&!--o.sc&&o.map&&o.map.delete(o.key)}function zd(e){let{prevDep:t,nextDep:o}=e;t&&(t.nextDep=o,e.prevDep=void 0),o&&(o.prevDep=t,e.nextDep=void 0)}var Rt=!0,ji=[];function Dt(){ji.push(Rt),Rt=!1}function Tt(){let e=ji.pop();Rt=e===void 0?!0:e}function Vi(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let o=qe;qe=void 0;try{t()}finally{qe=o}}}var Hn=0,Cs=class{constructor(t,o){this.sub=t,this.dep=o,this.version=o.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},jn=class{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!qe||!Rt||qe===this.computed)return;let o=this.activeLink;if(o===void 0||o.sub!==qe)o=this.activeLink=new Cs(qe,this),qe.deps?(o.prevDep=qe.depsTail,qe.depsTail.nextDep=o,qe.depsTail=o):qe.deps=qe.depsTail=o,Gi(o);else if(o.version===-1&&(o.version=this.version,o.nextDep)){let i=o.nextDep;i.prevDep=o.prevDep,o.prevDep&&(o.prevDep.nextDep=i),o.prevDep=qe.depsTail,o.nextDep=void 0,qe.depsTail.nextDep=o,qe.depsTail=o,qe.deps===o&&(qe.deps=i)}return o}trigger(t){this.version++,Hn++,this.notify(t)}notify(t){_s();try{for(let o=this.subs;o;o=o.prevSub)o.sub.notify()&&o.sub.dep.notify()}finally{As()}}};function Gi(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let i=t.deps;i;i=i.nextDep)Gi(i)}let o=e.dep.subs;o!==e&&(e.prevSub=o,o&&(o.nextSub=e)),e.dep.subs=e}}var Es=new WeakMap,an=Symbol(""),Ss=Symbol(""),Gn=Symbol("");function xe(e,t,o){if(Rt&&qe){let i=Es.get(e);i||Es.set(e,i=new Map);let s=i.get(o);s||(i.set(o,s=new jn),s.map=i,s.key=o),s.track()}}function Mt(e,t,o,i,s,r){let a=Es.get(e);if(!a){Hn++;return}let p=f=>{f&&f.trigger()};if(_s(),t==="clear")a.forEach(p);else{let f=ge(e),g=f&&Eo(o);if(f&&o==="length"){let y=Number(i);a.forEach((b,m)=>{(m==="length"||m===Gn||!ht(m)&&m>=y)&&p(b)})}else switch((o!==void 0||a.has(void 0))&&p(a.get(o)),g&&p(a.get(Gn)),t){case"add":f?g&&p(a.get("length")):(p(a.get(an)),jt(e)&&p(a.get(Ss)));break;case"delete":f||(p(a.get(an)),jt(e)&&p(a.get(Ss)));break;case"set":jt(e)&&p(a.get(an));break}}As()}function Sn(e){let t=_e(e);return t===e||(xe(t,"iterate",Gn),lt(e))?t:wt(e)?qt(e)?t.map(o=>Wt(vt(o))):t.map(Wt):t.map(vt)}function Kn(e){return xe(e=_e(e),"iterate",Gn),e}function It(e,t){return wt(e)?Wt(qt(e)?vt(t):t):vt(t)}var Hd={__proto__:null,[Symbol.iterator](){return bs(this,Symbol.iterator,e=>It(this,e))},concat(...e){return Sn(this).concat(...e.map(t=>ge(t)?Sn(t):t))},entries(){return bs(this,"entries",e=>(e[1]=It(this,e[1]),e))},every(e,t){return Gt(this,"every",e,t,void 0,arguments)},filter(e,t){return Gt(this,"filter",e,t,o=>o.map(i=>It(this,i)),arguments)},find(e,t){return Gt(this,"find",e,t,o=>It(this,o),arguments)},findIndex(e,t){return Gt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Gt(this,"findLast",e,t,o=>It(this,o),arguments)},findLastIndex(e,t){return Gt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Gt(this,"forEach",e,t,void 0,arguments)},includes(...e){return ws(this,"includes",e)},indexOf(...e){return ws(this,"indexOf",e)},join(e){return Sn(this).join(e)},lastIndexOf(...e){return ws(this,"lastIndexOf",e)},map(e,t){return Gt(this,"map",e,t,void 0,arguments)},pop(){return Un(this,"pop")},push(...e){return Un(this,"push",e)},reduce(e,...t){return Li(this,"reduce",e,t)},reduceRight(e,...t){return Li(this,"reduceRight",e,t)},shift(){return Un(this,"shift")},some(e,t){return Gt(this,"some",e,t,void 0,arguments)},splice(...e){return Un(this,"splice",e)},toReversed(){return Sn(this).toReversed()},toSorted(e){return Sn(this).toSorted(e)},toSpliced(...e){return Sn(this).toSpliced(...e)},unshift(...e){return Un(this,"unshift",e)},values(){return bs(this,"values",e=>It(this,e))}};function bs(e,t,o){let i=Kn(e),s=i[t],r=s.call(i);if(i!==e&&!lt(e)){if(r[Symbol.toStringTag]==="Array Iterator"){let a=Object.create(Object.getPrototypeOf(r));return a.next=()=>qi(r.next(),o),s!==Wi[t]&&Object.defineProperties(a,{return:{get(){let p=r.return;return typeof p=="function"?p.bind(r):p}},throw:{get(){let p=r.throw;return typeof p=="function"?p.bind(r):p}}}),a}r._next=r.next,r.next=()=>qi(r._next(),o)}return r}function qi(e,t){return e.done||(e.value=t(e.value)),e}var Wi=Array.prototype;function Gt(e,t,o,i,s,r){let a=Kn(e),p=a!==e&&!lt(e),f=a[t];if(f!==Wi[t]){let b=f.apply(e,r);return p?vt(b):b}let g=o;a!==e&&(p?g=function(b,m){return o.call(this,It(e,b),m,e)}:o.length>2&&(g=function(b,m){return o.call(this,b,m,e)}));let y=f.call(a,g,i);return p&&s?s(y):y}function Li(e,t,o,i){let s=Kn(e),r=s!==e&&!lt(e),a=o,p=!1;s!==e&&(r?(p=i.length===0,a=function(g,y,b){return p&&(p=!1,g=It(e,g)),o.call(this,g,It(e,y),b,e)}):o.length>3&&(a=function(g,y,b){return o.call(this,g,y,b,e)}));let f=s[t](a,...i);return p?It(e,f):f}function ws(e,t,o){let i=_e(e);xe(i,"iterate",Gn);let s=i[t](...o);return(s===-1||s===!1)&&Jn(o[0])?(o[0]=_e(o[0]),i[t](...o)):s}function Un(e,t,o=[]){Dt(),_s();let i=_e(e)[t].apply(e,o);return As(),Tt(),i}var jd=yn("__proto__,__v_isRef,__isVue"),Ki=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ht));function Gd(e){ht(e)||(e=String(e));let t=_e(this);return xe(t,"has",e),t.hasOwnProperty(e)}var Oo=class{constructor(t=!1,o=!1){this._isReadonly=t,this._isShallow=o}get(t,o,i){if(o==="__v_skip")return t.__v_skip;let s=this._isReadonly,r=this._isShallow;if(o==="__v_isReactive")return!s;if(o==="__v_isReadonly")return s;if(o==="__v_isShallow")return r;if(o==="__v_raw")return i===(s?r?eu:Qi:r?Ji:Yi).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(i)?t:void 0;let a=ge(t);if(!s){let f;if(a&&(f=Hd[o]))return f;if(o==="hasOwnProperty")return Gd}let p=Reflect.get(t,o,Ze(t)?t:i);if((ht(o)?Ki.has(o):jd(o))||(s||xe(t,"get",o),r))return p;if(Ze(p)){let f=a&&Eo(o)?p:p.value;return s&&Ae(f)?Io(f):f}return Ae(p)?s?Io(p):Ue(p):p}},Po=class extends Oo{constructor(t=!1){super(!1,t)}set(t,o,i,s){let r=t[o],a=ge(t)&&Eo(o);if(!this._isShallow){let g=wt(r);if(!lt(i)&&!wt(i)&&(r=_e(r),i=_e(i)),!a&&Ze(r)&&!Ze(i))return g||(r.value=i),!0}let p=a?Number(o)<t.length:Te(t,o),f=Reflect.set(t,o,i,Ze(t)?t:s);return t===_e(s)&&f&&(p?bt(i,r)&&Mt(t,"set",o,i,r):Mt(t,"add",o,i)),f}deleteProperty(t,o){let i=Te(t,o),s=t[o],r=Reflect.deleteProperty(t,o);return r&&i&&Mt(t,"delete",o,void 0,s),r}has(t,o){let i=Reflect.has(t,o);return(!ht(o)||!Ki.has(o))&&xe(t,"has",o),i}ownKeys(t){return xe(t,"iterate",ge(t)?"length":an),Reflect.ownKeys(t)}},Ns=class extends Oo{constructor(t=!1){super(!0,t)}set(t,o){return!0}deleteProperty(t,o){return!0}},Wd=new Po,Kd=new Ns,Yd=new Po(!0);var Rs=e=>e,To=e=>Reflect.getPrototypeOf(e);function Jd(e,t,o){return function(...i){let s=this.__v_raw,r=_e(s),a=jt(r),p=e==="entries"||e===Symbol.iterator&&a,f=e==="keys"&&a,g=s[e](...i),y=o?Rs:t?Wt:vt;return!t&&xe(r,"iterate",f?Ss:an),je(Object.create(g),{next(){let{value:b,done:m}=g.next();return m?{value:b,done:m}:{value:p?[y(b[0]),y(b[1])]:y(b),done:m}}})}}function _o(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Qd(e,t){let o={get(s){let r=this.__v_raw,a=_e(r),p=_e(s);e||(bt(s,p)&&xe(a,"get",s),xe(a,"get",p));let{has:f}=To(a),g=t?Rs:e?Wt:vt;if(f.call(a,s))return g(r.get(s));if(f.call(a,p))return g(r.get(p));r!==a&&r.get(s)},get size(){let s=this.__v_raw;return!e&&xe(_e(s),"iterate",an),s.size},has(s){let r=this.__v_raw,a=_e(r),p=_e(s);return e||(bt(s,p)&&xe(a,"has",s),xe(a,"has",p)),s===p?r.has(s):r.has(s)||r.has(p)},forEach(s,r){let a=this,p=a.__v_raw,f=_e(p),g=t?Rs:e?Wt:vt;return!e&&xe(f,"iterate",an),p.forEach((y,b)=>s.call(r,g(y),g(b),a))}};return je(o,e?{add:_o("add"),set:_o("set"),delete:_o("delete"),clear:_o("clear")}:{add(s){let r=_e(this),a=To(r),p=_e(s),f=!t&&!lt(s)&&!wt(s)?p:s;return a.has.call(r,f)||bt(s,f)&&a.has.call(r,s)||bt(p,f)&&a.has.call(r,p)||(r.add(f),Mt(r,"add",f,f)),this},set(s,r){!t&&!lt(r)&&!wt(r)&&(r=_e(r));let a=_e(this),{has:p,get:f}=To(a),g=p.call(a,s);g||(s=_e(s),g=p.call(a,s));let y=f.call(a,s);return a.set(s,r),g?bt(r,y)&&Mt(a,"set",s,r,y):Mt(a,"add",s,r),this},delete(s){let r=_e(this),{has:a,get:p}=To(r),f=a.call(r,s);f||(s=_e(s),f=a.call(r,s));let g=p?p.call(r,s):void 0,y=r.delete(s);return f&&Mt(r,"delete",s,void 0,g),y},clear(){let s=_e(this),r=s.size!==0,a=void 0,p=s.clear();return r&&Mt(s,"clear",void 0,void 0,a),p}}),["keys","values","entries",Symbol.iterator].forEach(s=>{o[s]=Jd(s,e,t)}),o}function Ps(e,t){let o=Qd(e,t);return(i,s,r)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_isShallow"?t:s==="__v_raw"?i:Reflect.get(Te(o,s)&&s in i?o:i,s,r)}var Xd={get:Ps(!1,!1)},Zd={get:Ps(!1,!0)},xd={get:Ps(!0,!1)};var Yi=new WeakMap,Ji=new WeakMap,Qi=new WeakMap,eu=new WeakMap;function tu(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ue(e){return wt(e)?e:Is(e,!1,Wd,Xd,Yi)}function Yn(e){return Is(e,!1,Yd,Zd,Ji)}function Io(e){return Is(e,!0,Kd,xd,Qi)}function Is(e,t,o,i,s){if(!Ae(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;let r=s.get(e);if(r)return r;let a=tu(gs(e));if(a===0)return e;let p=new Proxy(e,a===2?i:o);return s.set(e,p),p}function qt(e){return wt(e)?qt(e.__v_raw):!!(e&&e.__v_isReactive)}function wt(e){return!!(e&&e.__v_isReadonly)}function lt(e){return!!(e&&e.__v_isShallow)}function Jn(e){return e?!!e.__v_raw:!1}function _e(e){let t=e&&e.__v_raw;return t?_e(t):e}function Qn(e){return!Te(e,"__v_skip")&&Object.isExtensible(e)&&No(e,"__v_skip",!0),e}var vt=e=>Ae(e)?Ue(e):e,Wt=e=>Ae(e)?Io(e):e;function Ze(e){return e?e.__v_isRef===!0:!1}function et(e){return Xi(e,!1)}function Vo(e){return Xi(e,!0)}function Xi(e,t){return Ze(e)?e:new Ds(e,t)}var Ds=class{constructor(t,o){this.dep=new jn,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=o?t:_e(t),this._value=o?t:vt(t),this.__v_isShallow=o}get value(){return this.dep.track(),this._value}set value(t){let o=this._rawValue,i=this.__v_isShallow||lt(t)||wt(t);t=i?t:_e(t),bt(t,o)&&(this._rawValue=t,this._value=i?t:vt(t),this.dep.trigger())}};function Kt(e){return Ze(e)?e.value:e}var nu={get:(e,t,o)=>t==="__v_raw"?e:Kt(Reflect.get(e,t,o)),set:(e,t,o,i)=>{let s=e[t];return Ze(s)&&!Ze(o)?(s.value=o,!0):Reflect.set(e,t,o,i)}};function qo(e){return qt(e)?e:new Proxy(e,nu)}var Ts=class{constructor(t,o,i){this.fn=t,this.setter=o,this._value=void 0,this.dep=new jn(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Hn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!o,this.isSSR=i}notify(){if(this.flags|=16,!(this.flags&8)&&qe!==this)return Fi(this,!0),!0}get value(){let t=this.dep.track();return Hi(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}};function Zi(e,t,o=!1){let i,s;return ke(e)?i=e:(i=e.get,s=e.set),new Ts(i,s,o)}var Ao={},Mo=new WeakMap,rn;function xi(e,t=!1,o=rn){if(o){let i=Mo.get(o);i||Mo.set(o,i=[]),i.push(e)}}function er(e,t,o=Pe){let{immediate:i,deep:s,once:r,scheduler:a,augmentJob:p,call:f}=o,g=q=>{(o.onWarn||Bd)("Invalid watch source: ",q,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},y=q=>s?q:lt(q)||s===!1||s===0?Vt(q,1):Vt(q),b,m,E,P,k=!1,v=!1;if(Ze(e)?(m=()=>e.value,k=lt(e)):qt(e)?(m=()=>y(e),k=!0):ge(e)?(v=!0,k=e.some(q=>qt(q)||lt(q)),m=()=>e.map(q=>{if(Ze(q))return q.value;if(qt(q))return y(q);if(ke(q))return f?f(q,2):q()})):ke(e)?t?m=f?()=>f(e,2):e:m=()=>{if(E){Dt();try{E()}finally{Tt()}}let q=rn;rn=b;try{return f?f(e,3,[P]):e(P)}finally{rn=q}}:m=at,t&&s){let q=m,G=s===!0?1/0:s;m=()=>Vt(q(),G)}let S=$i(),_=()=>{b.stop(),S&&S.active&&Vn(S.effects,b)};if(r&&t){let q=t;t=(...G)=>{try{return q(...G)}finally{_()}}}let M=v?new Array(e.length).fill(Ao):Ao,L=q=>{if(!(!(b.flags&1)||!b.dirty&&!q))if(t){let G=b.run();if(q||s||k||(v?G.some((se,ee)=>bt(se,M[ee])):bt(G,M))){let se=rn;Dt();try{E&&E(),rn=b;let ee=[G,M===Ao?void 0:v&&M[0]===Ao?[]:M,P];M=G,f?f(t,3,ee):t(...ee)}finally{rn=se,Tt()}}}else b.run()};return p&&p(L),b=new Nn(m),b.scheduler=a?()=>a(L,!1):L,P=q=>xi(q,!1,b),E=b.onStop=()=>{let q=Mo.get(b);if(q){if(f)f(q,4);else for(let G of q)G();Mo.delete(b)}},t?i?L(!0):M=b.run():a?a(L.bind(null,!0),!0):b.run(),_.pause=b.pause.bind(b),_.resume=b.resume.bind(b),_.stop=_,_}function Vt(e,t=1/0,o){if(t<=0||!Ae(e)||e.__v_skip||(o=o||new Map,(o.get(e)||0)>=t))return e;if(o.set(e,t),t--,Ze(e))Vt(e.value,t,o);else if(ge(e))for(let i=0;i<e.length;i++)Vt(e[i],t,o);else if(St(e)||jt(e))e.forEach(i=>{Vt(i,t,o)});else if(Co(e)){for(let i in e)Vt(e[i],t,o);for(let i of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,i)&&Vt(e[i],t,o)}return e}function lo(e,t,o,i){try{return i?e(...i):e()}catch(s){uo(s,t,o)}}function kt(e,t,o,i){if(ke(e)){let s=lo(e,t,o,i);return s&&vs(s)&&s.catch(r=>{uo(r,t,o)}),s}if(ge(e)){let s=[];for(let r=0;r<e.length;r++)s.push(kt(e[r],t,o,i));return s}}function uo(e,t,o,i=!0){let s=t?t.vnode:null,{errorHandler:r,throwUnhandledErrorInProduction:a}=t&&t.appContext.config||Pe;if(t){let p=t.parent,f=t.proxy,g=`https://vuejs.org/error-reference/#runtime-${o}`;for(;p;){let y=p.ec;if(y){for(let b=0;b<y.length;b++)if(y[b](e,f,g)===!1)return}p=p.parent}if(r){Dt(),lo(r,null,10,[e,f,g]),Tt();return}}ru(e,o,s,i,a)}function ru(e,t,o,i=!0,s=!1){if(s)throw e;console.error(e)}var it=[],_t=-1,$t=[],tn=null,Rn=0,vr=Promise.resolve(),Uo=null;function Ge(e){let t=Uo||vr;return e?t.then(this?e.bind(this):e):t}function au(e){let t=_t+1,o=it.length;for(;t<o;){let i=t+o>>>1,s=it[i],r=oo(s);r<e||r===e&&s.flags&2?t=i+1:o=i}return t}function Gs(e){if(!(e.flags&1)){let t=oo(e),o=it[it.length-1];!o||!(e.flags&2)&&t>=oo(o)?it.push(e):it.splice(au(t),0,e),e.flags|=1,gr()}}function gr(){Uo||(Uo=vr.then(kr))}function yr(e){if(!ge(e))tn&&e.id===-1?tn.splice(Rn+1,0,e):e.flags&1||($t.push(e),e.flags|=1);else for(let t=0;t<e.length;t++)$t.push(e[t]);gr()}function br(e,t,o,i=_t+1){for(;i<it.length;i++){let s=it[i];if(s&&s.flags&2){if(e&&s.id!==e.uid||t!==void 0&&!(s.id>=t))continue;it.splice(i,1),i=e?i-1:_t,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function wr(e,t,o=0){if($t.length){let i=$t,s=0;if(t){i=[];for(let a=0;a<$t.length;a++){let p=$t[a];(p.i!==void 0?!p.i||p.i.uid<o:t.has(p))?$t[s++]=p:i.push(p)}}let r=[...new Set(i)].sort((a,p)=>oo(a)-oo(p));if($t.length=s,tn){for(let a=0;a<r.length;a++)tn.push(r[a]);return}for(tn=r,Rn=0;Rn<tn.length;Rn++){let a=tn[Rn];a.flags&4&&(a.flags&=-2),a.flags&8||a(),a.flags&=-2}tn=null,Rn=0}}var Ms=!1;function lu(e,t){if(Ms){e();return}let o=t===void 0?void 0:new Set($t);e(),Ms=!0;try{br(void 0,t),wr(void 0,o,t)}finally{Ms=!1}}var oo=e=>e.id==null?e.flags&2?-1:1/0:e.id;function kr(e){let t=at;try{for(_t=0;_t<it.length;_t++){let o=it[_t];o&&!(o.flags&8)&&(o.flags&4&&(o.flags&=-2),lo(o,o.i,o.i?15:14),o.flags&4||(o.flags&=-2))}}finally{for(;_t<it.length;_t++){let o=it[_t];o&&(o.flags&=-2)}_t=-1,it.length=0,wr(e),Uo=null,(it.length||$t.length)&&kr(e)}}var gt=null,Cr=null;function Fo(e){let t=gt;return gt=e,Cr=e&&e.type.__scopeId||null,t}function du(e,t=gt,o){if(!t||e._n)return e;let i=(...s)=>{i._d&&Ho(-1);let r=Fo(t),a=un.length,p;try{p=e(...s)}finally{for(let f=un.length;f>a;f--)Xr();Fo(r),i._d&&Ho(1)}return p};return i._n=!0,i._c=!0,i._d=!0,i}function T(e,t){if(gt===null)return e;let o=Xo(gt),i=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[r,a,p,f=Pe]=t[s];r&&(ke(r)&&(r={mounted:r,updated:r}),r.deep&&Vt(a),i.push({dir:r,instance:o,value:a,oldValue:void 0,arg:p,modifiers:f}))}return e}function ln(e,t,o,i){let s=e.dirs,r=t&&t.dirs;for(let a=0;a<s.length;a++){let p=s[a];r&&(p.oldValue=r[a].value);let f=p.dir[i];f&&(Dt(),kt(f,o,8,[e.el,p,e,t]),Tt())}}function cn(e,t){if(tt){let o=tt.provides,i=tt.parent&&tt.parent.provides;i===o&&(o=tt.provides=Object.create(i)),o[e]=t}}function ut(e,t,o=!1){let i=Qs();if(i||Dn){let s=Dn?Dn._context.provides:i?i.parent==null||i.ce?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return o&&ke(t)?t.call(i&&i.proxy):t}}var uu=Symbol.for("v-scx"),cu=()=>{{let e=ut(uu);return e}};function Fe(e,t,o){return Er(e,t,o)}function Er(e,t,o=Pe){let{immediate:i,deep:s,flush:r,once:a}=o,p=je({},o),f=t&&i||!t&&r!=="post",g;if(_n){if(r==="sync"){let E=cu();g=E.__watcherHandles||(E.__watcherHandles=[])}else if(!f){let E=()=>{};return E.stop=at,E.resume=at,E.pause=at,E}}let y=tt;p.call=(E,P,k)=>kt(E,y,P,k);let b=!1;r==="post"?p.scheduler=E=>{E.i=y,dt(E,y&&y.suspense)}:r!=="sync"&&(b=!0,p.scheduler=(E,P)=>{P?E():Gs(E)}),p.augmentJob=E=>{t&&(E.flags|=4),b&&(E.flags|=2,y&&(E.id=y.uid,E.i=y))};let m=er(e,t,p);return _n&&(g?g.push(m):f&&m()),m}function pu(e,t,o){let i=this.proxy,s=$e(e)?e.includes(".")?Sr(i,e):()=>i[e]:e.bind(i,i),r;ke(t)?r=t:(r=t.handler,o=t);let a=fo(this),p=Er(s,r.bind(i),o);return a(),p}function Sr(e,t){let o=t.split(".");return()=>{let i=e;for(let s=0;s<o.length&&i;s++)i=i[o[s]];return i}}var fu=Symbol("_vte"),Wo=e=>e.__isTeleport;var Vs=Symbol("_leaveCb");function mu(e){let t=e[0];if(e.length>1){let o=!1;for(let i of e)if(i.type!==At){t=i,o=!0;break}}return t}function Nr(e){if(!Ko(e))return Wo(e.type)&&e.children?mu(e.children):e;if(e.component)return e.component.subTree;let{shapeFlag:t,children:o}=e;if(o){if(t&16)return o[0];if(t&32&&ke(o.default))return o.default()}}function so(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;let o=e.component.subTree;so(Wo(o.type)&&Nr(o)||o,t)}else if(e.shapeFlag&128)e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback);else if(e.transition=t,e.type===W&&ge(e.children)){let o=Lr(e.children,!1);o&&so(o,t)}}function Us(e){if(e.component)return Us(e.component.subTree);if(e.type===W){let t=ge(e.children)&&Lr(e.children,!1);return t?Us(t):void 0}if(e.type!==At)return e}function co(e,t){return ke(e)?je({name:e.name},t,{setup:e}):e}function Ws(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function tr(e,t){let o;return!!((o=Object.getOwnPropertyDescriptor(e,t))&&!o.configurable)}var Bo=new WeakMap;function xn(e,t,o,i,s=!1){if(ge(e)){e.forEach((k,v)=>xn(k,t&&(ge(t)?t[v]:t),o,i,s));return}if(eo(i)&&!s){i.shapeFlag&512&&i.type.__asyncResolved&&i.component.subTree.component&&xn(e,t,o,i.component.subTree);return}let r=i.shapeFlag&4?Xo(i.component):i.el,a=s?null:r,{i:p,r:f}=e,g=t&&t.r,y=p.refs===Pe?p.refs={}:p.refs,b=p.setupState,m=_e(b),E=b===Pe?hs:k=>tr(y,k)?!1:Te(m,k),P=(k,v)=>!(v&&tr(y,v));if(g!=null&&g!==f){if(nr(t),$e(g))y[g]=null,E(g)&&(b[g]=null);else if(Ze(g)){let k=t;P(g,k.k)&&(g.value=null),k.k&&(y[k.k]=null)}}if(ke(f))lo(f,p,12,[a,y]);else{let k=$e(f),v=Ze(f);if(k||v){let S=()=>{if(e.f){let _=k?E(f)?b[f]:y[f]:P(f)||!e.k?f.value:y[e.k];if(s)ge(_)&&Vn(_,r);else if(ge(_))_.includes(r)||_.push(r);else if(k)y[f]=[r],E(f)&&(b[f]=y[f]);else{let M=[r];P(f,e.k)&&(f.value=M),e.k&&(y[e.k]=M)}}else k?(y[f]=a,E(f)&&(b[f]=a)):v&&(P(f,e.k)&&(f.value=a),e.k&&(y[e.k]=a))};if(a){let _=()=>{S(),Bo.delete(e)};_.id=-1,Bo.set(e,_),dt(_,o)}else nr(e),S()}}}function nr(e){let t=Bo.get(e);t&&(t.flags|=8,Bo.delete(e))}var or=e=>e.nodeType===8;var q7=$n().requestIdleCallback||(e=>setTimeout(e,1)),L7=$n().cancelIdleCallback||(e=>clearTimeout(e));function hu(e,t){if(or(e)&&e.data==="["){let o=1,i=e.nextSibling;for(;i;){if(i.nodeType===1){if(t(i)===!1)break}else if(or(i))if(i.data==="]"){if(--o===0)break}else i.data==="["&&o++;i=i.nextSibling}}else t(e)}var eo=e=>!!e.type.__asyncLoader;function Rr(e){ke(e)&&(e={loader:e});let{loader:t,loadingComponent:o,errorComponent:i,delay:s=200,hydrate:r,timeout:a,suspensible:p=!0,onError:f}=e,g=null,y,b=0,m=()=>(b++,g=null,E()),E=()=>{let P;return g||(P=g=t().catch(k=>{if(k=k instanceof Error?k:new Error(String(k)),f)return new Promise((v,S)=>{f(k,()=>v(m()),()=>S(k),b+1)});throw k}).then(k=>P!==g&&g?g:(k&&(k.__esModule||k[Symbol.toStringTag]==="Module")&&(k=k.default),y=k,k)))};return co({name:"AsyncComponentWrapper",__asyncLoader:E,__asyncHydrate(P,k,v){let S=P.isConnected,_=!1;(k.bu||(k.bu=[])).push(()=>_=!0);let M=()=>{_||!P.parentNode||S&&!P.isConnected||v()},L=r?()=>{let q=r(M,G=>hu(P,G));q&&(k.bum||(k.bum=[])).push(q)}:M;y?L():E().then(()=>!k.isUnmounted&&L())},get __asyncResolved(){return y},setup(){let P=tt;if(Ws(P),y)return()=>Lo(y,P);let k=q=>{g=null,uo(q,P,13,!i)};if(p&&P.suspense||_n)return E().then(q=>()=>Lo(q,P)).catch(q=>(k(q),()=>i?De(i,{error:q}):null));let v=et(!1),S=et(),_=et(!!s),M,L;return po(()=>{M!=null&&clearTimeout(M),L!=null&&clearTimeout(L)}),s&&(L=setTimeout(()=>{P.isUnmounted||(_.value=!1)},s)),a!=null&&(M=setTimeout(()=>{if(!P.isUnmounted&&!v.value&&!S.value){let q=new Error(`Async component timed out after ${a}ms.`);k(q),S.value=q}},a)),E().then(()=>{P.isUnmounted||(v.value=!0,P.parent&&Ko(P.parent.vnode)&&P.parent.update())}).catch(q=>{if(P.isUnmounted){g=null;return}k(q),S.value=q}),()=>{if(v.value&&y)return Lo(y,P);if(S.value&&i)return De(i,{error:S.value});if(o&&!_.value)return Lo(o,P)}}})}function Lo(e,t){let{ref:o,props:i,children:s,ce:r}=t.vnode,a=De(e,i,s);return a.ref=o,a.ce=r,delete t.vnode.ce,a}var Ko=e=>e.type.__isKeepAlive;function Dr(e,t){_r(e,"a",t)}function Tr(e,t){_r(e,"da",t)}function _r(e,t,o=tt){let i=e.__wdc||(e.__wdc=()=>{let s=o;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Yo(t,i,o),o){let s=o.parent;for(;s&&s.parent;)Ko(s.parent.vnode)&&vu(i,t,o,s),s=s.parent}}function vu(e,t,o,i){let s=Yo(t,e,i,!0);po(()=>{Vn(i[t],s)},o)}function Yo(e,t,o=tt,i=!1){if(o){let s=o[e]||(o[e]=[]),r=t.__weh||(t.__weh=(...a)=>{Dt();let p=fo(o),f=kt(t,o,e,a);return p(),Tt(),f});return i?s.unshift(r):s.push(r),r}}var Jt=e=>(t,o=tt)=>{(!_n||e==="sp")&&Yo(e,(...i)=>t(...i),o)},gu=Jt("bm"),Ft=Jt("m"),Ar=Jt("bu"),Or=Jt("u"),pn=Jt("bum"),po=Jt("um"),yu=Jt("sp"),bu=Jt("rtg"),wu=Jt("rtc");function ku(e,t=tt){Yo("ec",e,t)}var Pr="components",Cu="directives";function We(e,t){return Ir(Pr,e,!0,t)||e}var Eu=Symbol.for("v-ndc");function we(e){return Ir(Cu,e)}function Ir(e,t,o=!0,i=!1){let s=gt||tt;if(s){let r=s.type;if(e===Pr){let p=rc(r,!1);if(p&&(p===t||p===Je(t)||p===sn(Je(t))))return r}let a=sr(s[e]||r[e],t)||sr(s.appContext[e],t);return!a&&i?r:a}}function sr(e,t){return e&&(e[t]||e[Je(t)]||e[sn(Je(t))])}function oe(e,t,o,i){let s,r=o&&o[i],a=ge(e);if(a||$e(e)){let p=a&&qt(e),f=!1,g=!1;p&&(f=!lt(e),g=wt(e),e=Kn(e)),s=new Array(e.length);for(let y=0,b=e.length;y<b;y++)s[y]=t(f?g?Wt(vt(e[y])):vt(e[y]):e[y],y,void 0,r&&r[y])}else if(typeof e=="number")if(!Number.isInteger(e)||e<0)s=[];else{s=new Array(e);for(let p=0;p<e;p++)s[p]=t(p+1,p,void 0,r&&r[p])}else if(Ae(e))if(e[Symbol.iterator])s=Array.from(e,(p,f)=>t(p,f,void 0,r&&r[f]));else{let p=Object.keys(e);s=new Array(p.length);for(let f=0,g=p.length;f<g;f++){let y=p[f];s[f]=t(e[y],y,f,r&&r[f])}}else s=[];return o&&(o[i]=s),s}var Fs=e=>e?ta(e)?Xo(e):Fs(e.parent):null;var to=je(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Fs(e.parent),$root:e=>Fs(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Ks(e),$forceUpdate:e=>e.f||(e.f=()=>{Gs(e.update)}),$nextTick:e=>e.n||(e.n=Ge.bind(e.proxy)),$watch:e=>pu.bind(e)});var qs=(e,t)=>e!==Pe&&!e.__isScriptSetup&&Te(e,t),Su={get({_:e},t){if(t==="__v_skip")return!0;let{ctx:o,setupState:i,data:s,props:r,accessCache:a,type:p,appContext:f}=e;if(t[0]!=="$"){let m=a[t];if(m!==void 0)switch(m){case 1:return i[t];case 2:return s[t];case 4:return o[t];case 3:return r[t]}else{if(qs(i,t))return a[t]=1,i[t];if(s!==Pe&&Te(s,t))return a[t]=2,s[t];if(Te(r,t))return a[t]=3,r[t];if(o!==Pe&&Te(o,t))return a[t]=4,o[t];Bs&&(a[t]=0)}}let g=to[t],y,b;if(g)return t==="$attrs"&&xe(e.attrs,"get",""),g(e);if((y=p.__cssModules)&&(y=y[t]))return y;if(o!==Pe&&Te(o,t))return a[t]=4,o[t];if(b=f.config.globalProperties,Te(b,t))return b[t]},set({_:e},t,o){let{data:i,setupState:s,ctx:r}=e;return qs(s,t)?(s[t]=o,!0):i!==Pe&&Te(i,t)?(i[t]=o,!0):Te(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=o,!0)},has({_:{data:e,setupState:t,accessCache:o,ctx:i,appContext:s,props:r,type:a}},p){let f;return!!(o[p]||e!==Pe&&p[0]!=="$"&&Te(e,p)||qs(t,p)||Te(r,p)||Te(i,p)||Te(to,p)||Te(s.config.globalProperties,p)||(f=a.__cssModules)&&f[p])},defineProperty(e,t,o){return o.get!=null?e._.accessCache[t]=0:Te(o,"value")&&this.set(e,t,o.value,null),Reflect.defineProperty(e,t,o)}};function ir(e){return ge(e)?e.reduce((t,o)=>(t[o]=null,t),{}):e}var Bs=!0;function Nu(e){let t=Ks(e),o=e.proxy,i=e.ctx;Bs=!1,t.beforeCreate&&rr(t.beforeCreate,e,"bc");let{data:s,computed:r,methods:a,watch:p,provide:f,inject:g,created:y,beforeMount:b,mounted:m,beforeUpdate:E,updated:P,activated:k,deactivated:v,beforeDestroy:S,beforeUnmount:_,destroyed:M,unmounted:L,render:q,renderTracked:G,renderTriggered:se,errorCaptured:ee,serverPrefetch:R,expose:K,inheritAttrs:te,components:ve,directives:x,filters:ue}=t;if(g&&Ru(g,i,null),a)for(let ye in a){let be=a[ye];ke(be)&&(i[ye]=be.bind(o))}if(s){let ye=s.call(o,o);Ae(ye)&&(e.data=Ue(ye))}if(Bs=!0,r)for(let ye in r){let be=r[ye],Le=ke(be)?be.bind(o,o):ke(be.get)?be.get.bind(o,o):at,ze=!ke(be)&&ke(be.set)?be.set.bind(o):at,He=nt({get:Le,set:ze});Object.defineProperty(i,ye,{enumerable:!0,configurable:!0,get:()=>He.value,set:Me=>He.value=Me})}if(p)for(let ye in p)Mr(p[ye],i,o,ye);if(f){let ye=ke(f)?f.call(o):f;Reflect.ownKeys(ye).forEach(be=>{cn(be,ye[be])})}y&&rr(y,e,"c");function Ee(ye,be){ge(be)?be.forEach(Le=>ye(Le.bind(o))):be&&ye(be.bind(o))}if(Ee(gu,b),Ee(Ft,m),Ee(Ar,E),Ee(Or,P),Ee(Dr,k),Ee(Tr,v),Ee(ku,ee),Ee(wu,G),Ee(bu,se),Ee(pn,_),Ee(po,L),Ee(yu,R),ge(K))if(K.length){let ye=e.exposed||(e.exposed={});K.forEach(be=>{Object.defineProperty(ye,be,{get:()=>o[be],set:Le=>o[be]=Le,enumerable:!0})})}else e.exposed||(e.exposed={});q&&e.render===at&&(e.render=q),te!=null&&(e.inheritAttrs=te),ve&&(e.components=ve),x&&(e.directives=x),R&&Ws(e)}function Ru(e,t,o=at){ge(e)&&(e=zs(e));for(let i in e){let s=e[i],r;Ae(s)?"default"in s?r=ut(s.from||i,s.default,!0):r=ut(s.from||i):r=ut(s),Ze(r)?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>r.value,set:a=>r.value=a}):t[i]=r}}function rr(e,t,o){kt(ge(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,o)}function Mr(e,t,o,i){let s=i.includes(".")?Sr(o,i):()=>o[i];if($e(e)){let r=t[e];ke(r)&&Fe(s,r)}else if(ke(e))Fe(s,e.bind(o));else if(Ae(e))if(ge(e))e.forEach(r=>Mr(r,t,o,i));else{let r=ke(e.handler)?e.handler.bind(o):t[e.handler];ke(r)&&Fe(s,r,e)}}function Ks(e){let t=e.type,{mixins:o,extends:i}=t,{mixins:s,optionsCache:r,config:{optionMergeStrategies:a}}=e.appContext,p=r.get(t),f;return p?f=p:!s.length&&!o&&!i?f=t:(f={},s.length&&s.forEach(g=>zo(f,g,a,!0)),zo(f,t,a)),Ae(t)&&r.set(t,f),f}function zo(e,t,o,i=!1){let{mixins:s,extends:r}=t;r&&zo(e,r,o,!0),s&&s.forEach(a=>zo(e,a,o,!0));for(let a in t)if(!(i&&a==="expose")){let p=Du[a]||o&&o[a];e[a]=p?p(e[a],t[a]):t[a]}return e}var Du={data:ar,props:lr,emits:lr,methods:Zn,computed:Zn,beforeCreate:st,created:st,beforeMount:st,mounted:st,beforeUpdate:st,updated:st,beforeDestroy:st,beforeUnmount:st,destroyed:st,unmounted:st,activated:st,deactivated:st,errorCaptured:st,serverPrefetch:st,components:Zn,directives:Zn,watch:_u,provide:ar,inject:Tu};function ar(e,t){return t?e?function(){return je(ke(e)?e.call(this,this):e,ke(t)?t.call(this,this):t)}:t:e}function Tu(e,t){return Zn(zs(e),zs(t))}function zs(e){if(ge(e)){let t={};for(let o=0;o<e.length;o++)t[e[o]]=e[o];return t}return e}function st(e,t){return e?[...new Set([].concat(e,t))]:t}function Zn(e,t){return e?je(Object.create(null),e,t):t}function lr(e,t){return e?ge(e)&&ge(t)?[...new Set([...e,...t])]:je(Object.create(null),ir(e),ir(t??{})):t}function _u(e,t){if(!e)return t;if(!t)return e;let o=je(Object.create(null),e);for(let i in t)o[i]=st(e[i],t[i]);return o}function Vr(){return{app:null,config:{isNativeTag:hs,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}var Au=0;function Ou(e,t){return function(i,s=null){ke(i)||(i=je({},i)),s!=null&&!Ae(s)&&(s=null);let r=Vr(),a=new WeakSet,p=[],f=!1,g=r.app={_uid:Au++,_component:i,_props:s,_container:null,_context:r,_instance:null,version:lc,get config(){return r.config},set config(y){},use(y,...b){return a.has(y)||(y&&ke(y.install)?(a.add(y),y.install(g,...b)):ke(y)&&(a.add(y),y(g,...b))),g},mixin(y){return r.mixins.includes(y)||r.mixins.push(y),g},component(y,b){return b?(r.components[y]=b,g):r.components[y]},directive(y,b){return b?(r.directives[y]=b,g):r.directives[y]},mount(y,b,m){if(!f){let E=g._ceVNode||De(i,s);return E.appContext=r,m===!0?m="svg":m===!1&&(m=void 0),b&&t?t(E,y):e(E,y,m),f=!0,g._container=y,y.__vue_app__=g,Xo(E.component)}},onUnmount(y){p.push(y)},unmount(){f&&(kt(p,g._instance,16),e(null,g._container),delete g._container.__vue_app__)},provide(y,b){return r.provides[y]=b,g},runWithContext(y){let b=Dn;Dn=g;try{return y()}finally{Dn=b}}};return g}}var Dn=null;var Pu=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Je(t)}Modifiers`]||e[`${Pt(t)}Modifiers`];function Iu(e,t,...o){if(e.isUnmounted)return;let i=e.vnode.props||Pe,s=o,r=t.startsWith("update:"),a=r&&Pu(i,t.slice(7));a&&(a.trim&&(s=o.map(y=>$e(y)?y.trim():y)),a.number&&(s=s.map(En)));let p,f=i[p=Ln(t)]||i[p=Ln(Je(t))];!f&&r&&(f=i[p=Ln(Pt(t))]),f&&kt(f,e,6,s);let g=i[p+"Once"];if(g){if(!e.emitted)e.emitted={};else if(e.emitted[p])return;e.emitted[p]=!0,kt(g,e,6,s)}}var Mu=new WeakMap;function qr(e,t,o=!1){let i=o?Mu:t.emitsCache,s=i.get(e);if(s!==void 0)return s;let r=e.emits,a={},p=!1;if(!ke(e)){let f=g=>{let y=qr(g,t,!0);y&&(p=!0,je(a,y))};!o&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}return!r&&!p?(Ae(e)&&i.set(e,null),null):(ge(r)?r.forEach(f=>a[f]=null):je(a,r),Ae(e)&&i.set(e,a),a)}function Jo(e,t){return!e||!bn(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),Te(e,t[0].toLowerCase()+t.slice(1))||Te(e,Pt(t))||Te(e,t))}function Ls(e){let{type:t,vnode:o,proxy:i,withProxy:s,propsOptions:[r],slots:a,attrs:p,emit:f,render:g,renderCache:y,props:b,data:m,setupState:E,ctx:P,inheritAttrs:k}=e,v=Fo(e),S,_;try{if(o.shapeFlag&4){let q=s||i,G=q;S=Ut(g.call(G,q,y,b,E,m,P)),_=p}else{let q=t;S=Ut(q.length>1?q(b,{attrs:p,slots:a,emit:f}):q(b,null)),_=t.props?p:Vu(p)}}catch(q){un.length=0,uo(q,e,1),S=De(At)}let M=S,L;if(_&&k!==!1){let q=Object.keys(_),{shapeFlag:G}=M;q.length&&G&7&&(r&&q.some(wn)&&(_=qu(_,r)),M=Tn(M,_,!1,!0))}if(o.dirs&&(M=Tn(M,null,!1,!0),M.dirs=M.dirs?M.dirs.concat(o.dirs):o.dirs),o.transition){let q=Wo(M.type)&&Nr(M)||M;so(q,o.transition)}return S=M,Fo(v),S}function Lr(e,t=!0){let o;for(let i=0;i<e.length;i++){let s=e[i];if(ro(s)){if(s.type!==At||s.children==="v-if"){if(o)return;o=s}}else return}return o}var Vu=e=>{let t;for(let o in e)(o==="class"||o==="style"||bn(o))&&((t||(t={}))[o]=e[o]);return t},qu=(e,t)=>{let o={};for(let i in e)(!wn(i)||!(i.slice(9)in t))&&(o[i]=e[i]);return o};function Lu(e,t,o){let{props:i,children:s,component:r}=e,{props:a,children:p,patchFlag:f}=t,g=r.emitsOptions;if(t.dirs||t.transition)return!0;if(o&&f>=0){if(f&1024)return!0;if(f&16)return i?dr(i,a,g):!!a;if(f&8){let y=t.dynamicProps;for(let b=0;b<y.length;b++){let m=y[b];if($r(a,i,m)&&!Jo(g,m))return!0}}}else return(s||p)&&(!p||!p.$stable)?!0:i===a?!1:i?a?dr(i,a,g):!0:!!a;return!1}function dr(e,t,o){let i=Object.keys(t);if(i.length!==Object.keys(e).length)return!0;for(let s=0;s<i.length;s++){let r=i[s];if(!Te(e,r)||$r(t,e,r)&&!Jo(o,r))return!0}return!1}function $r(e,t,o){let i=e[o],s=t[o];return o==="style"&&Ae(i)&&Ae(s)?!Nt(i,s):i!==s}function $u({vnode:e,parent:t,suspense:o},i){for(;t;){let s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.suspense.vnode.el=s.el=i,e=s),s===e)(e=t.vnode).el=i,t=t.parent;else break}o&&o.activeBranch===e&&(o.vnode.el=i)}var Ur={},Fr=()=>Object.create(Ur),Br=e=>Object.getPrototypeOf(e)===Ur;function Uu(e,t,o,i=!1){let s={},r=Fr();e.propsDefaults=Object.create(null),zr(e,t,s,r);for(let a in e.propsOptions[0])a in s||(s[a]=void 0);o?e.props=i?s:Yn(s):e.type.props?e.props=s:e.props=r,e.attrs=r}function Fu(e,t,o,i){let{props:s,attrs:r,vnode:{patchFlag:a}}=e,p=_e(s),[f]=e.propsOptions,g=!1;if((i||a>0)&&!(a&16)){if(a&8){let y=e.vnode.dynamicProps;for(let b=0;b<y.length;b++){let m=y[b];if(Jo(e.emitsOptions,m))continue;let E=t[m];if(f)if(Te(r,m))E!==r[m]&&(r[m]=E,g=!0);else{let P=Je(m);s[P]=Hs(f,p,P,E,e,!1)}else E!==r[m]&&(r[m]=E,g=!0)}}}else{zr(e,t,s,r)&&(g=!0);let y;for(let b in p)(!t||!Te(t,b)&&((y=Pt(b))===b||!Te(t,y)))&&(f?o&&(o[b]!==void 0||o[y]!==void 0)&&(s[b]=Hs(f,p,b,void 0,e,!0)):delete s[b]);if(r!==p)for(let b in r)(!t||!Te(t,b))&&(delete r[b],g=!0)}g&&Mt(e.attrs,"set","")}function zr(e,t,o,i){let[s,r]=e.propsOptions,a=!1,p;if(t)for(let f in t){if(kn(f))continue;let g=t[f],y;s&&Te(s,y=Je(f))?!r||!r.includes(y)?o[y]=g:(p||(p={}))[y]=g:Jo(e.emitsOptions,f)||(!(f in i)||g!==i[f])&&(i[f]=g,a=!0)}if(r){let f=_e(o),g=p||Pe;for(let y=0;y<r.length;y++){let b=r[y];o[b]=Hs(s,f,b,g[b],e,!Te(g,b))}}return a}function Hs(e,t,o,i,s,r){let a=e[o];if(a!=null){let p=Te(a,"default");if(p&&i===void 0){let f=a.default;if(a.type!==Function&&!a.skipFactory&&ke(f)){let{propsDefaults:g}=s;if(o in g)i=g[o];else{let y=fo(s);i=g[o]=f.call(null,t),y()}}else i=f;s.ce&&s.ce._setProp(o,i)}a[0]&&(r&&!p?i=!1:a[1]&&(i===""||i===Pt(o))&&(i=!0))}return i}var Bu=new WeakMap;function Hr(e,t,o=!1){let i=o?Bu:t.propsCache,s=i.get(e);if(s)return s;let r=e.props,a={},p=[],f=!1;if(!ke(e)){let y=b=>{f=!0;let[m,E]=Hr(b,t,!0);je(a,m),E&&p.push(...E)};!o&&t.mixins.length&&t.mixins.forEach(y),e.extends&&y(e.extends),e.mixins&&e.mixins.forEach(y)}if(!r&&!f)return Ae(e)&&i.set(e,en),en;if(ge(r))for(let y=0;y<r.length;y++){let b=Je(r[y]);ur(b)&&(a[b]=Pe)}else if(r)for(let y in r){let b=Je(y);if(ur(b)){let m=r[y],E=a[b]=ge(m)||ke(m)?{type:m}:je({},m),P=E.type,k=!1,v=!0;if(ge(P))for(let S=0;S<P.length;++S){let _=P[S],M=ke(_)&&_.name;if(M==="Boolean"){k=!0;break}else M==="String"&&(v=!1)}else k=ke(P)&&P.name==="Boolean";E[0]=k,E[1]=v,(k||Te(E,"default"))&&p.push(b)}}let g=[a,p];return Ae(e)&&i.set(e,g),g}function ur(e){return e[0]!=="$"&&!kn(e)}var Ys=e=>e==="_"||e==="_ctx"||e==="$stable",Js=e=>ge(e)?e.map(Ut):[Ut(e)],zu=(e,t,o)=>{if(t._n)return t;let i=du((...s)=>Js(t(...s)),o);return i._c=!1,i},jr=(e,t,o)=>{let i=e._ctx;for(let s in e){if(Ys(s))continue;let r=e[s];if(ke(r))t[s]=zu(s,r,i);else if(r!=null){let a=Js(r);t[s]=()=>a}}},Gr=(e,t)=>{let o=Js(t);e.slots.default=()=>o},Wr=(e,t,o)=>{for(let i in t)(o||!Ys(i))&&(e[i]=t[i])},Hu=(e,t,o)=>{let i=e.slots=Fr();if(e.vnode.shapeFlag&32){let s=t._;s?(Wr(i,t,o),o&&No(i,"_",s,!0)):jr(t,i)}else t&&Gr(e,t)},ju=(e,t,o)=>{let{vnode:i,slots:s}=e,r=!0,a=Pe;if(i.shapeFlag&32){let p=t._;p?o&&p===1?r=!1:Wr(s,t,o):(r=!t.$stable,jr(t,s)),a=t}else t&&(Gr(e,t),a={default:1});if(r)for(let p in s)!Ys(p)&&a[p]==null&&delete s[p]};function Gu(){let e=[]}var dt=Ju;function Kr(e){return Wu(e)}function Wu(e,t){Gu();let o=$n();o.__VUE__=!0;let{insert:i,remove:s,patchProp:r,createElement:a,createText:p,createComment:f,setText:g,setElementText:y,parentNode:b,nextSibling:m,setScopeId:E=at,insertStaticContent:P}=e,k=(C,N,V,j=null,w=null,A=null,D=void 0,I=null,z=!!N.dynamicChildren)=>{if(C===N)return;C&&!Xn(C,N)&&(j=Q(C),F(C,w,A,!0),C=null),N.patchFlag===-2&&(z=!1,N.dynamicChildren=null),N.dynamicChildren&&C&&C.dynamicChildren&&C.dynamicChildren.hasOnce&&(N.dynamicChildren===en&&(N.dynamicChildren=[]),N.dynamicChildren.hasOnce=!0);let{type:B,ref:ie,shapeFlag:Z}=N;switch(B){case Qo:v(C,N,V,j);break;case At:S(C,N,V,j);break;case no:C==null&&_(N,V,j,D);break;case W:x(C,N,V,j,w,A,D,I,z);break;default:Z&1?G(C,N,V,j,w,A,D,I,z):Z&6?ue(C,N,V,j,w,A,D,I,z):(Z&64||Z&128)&&B.process(C,N,V,j,w,A,D,I,z,re)}ie!=null&&w?xn(ie,C&&C.ref,A,N||C,!N):ie==null&&C&&C.ref!=null&&xn(C.ref,null,A,C,!0)},v=(C,N,V,j)=>{if(C==null)i(N.el=p(N.children),V,j);else{let w=N.el=C.el;N.children!==C.children&&g(w,N.children)}},S=(C,N,V,j)=>{C==null?i(N.el=f(N.children||""),V,j):N.el=C.el},_=(C,N,V,j)=>{[C.el,C.anchor]=P(C.children,N,V,j,C.el,C.anchor)},M=(C,N,V,j)=>{if(N.children!==C.children){let w=m(C.anchor);q(C),[N.el,N.anchor]=P(N.children,V,w,j)}else N.el=C.el,N.anchor=C.anchor},L=({el:C,anchor:N},V,j)=>{let w;for(;C&&C!==N;)w=m(C),i(C,V,j),C=w;i(N,V,j)},q=({el:C,anchor:N})=>{let V;for(;C&&C!==N;)V=m(C),s(C),C=V;s(N)},G=(C,N,V,j,w,A,D,I,z)=>{if(N.type==="svg"?D="svg":N.type==="math"&&(D="mathml"),C==null)se(N,V,j,w,A,D,I,z);else{let B=C.el&&C.el._isVueCE?C.el:null;try{B&&B._beginPatch(),K(C,N,w,A,D,I,z)}finally{B&&B._endPatch()}}},se=(C,N,V,j,w,A,D,I)=>{let z,B,{props:ie,shapeFlag:Z,transition:le,dirs:ce}=C;if(z=C.el=a(C.type,A,ie&&ie.is,ie),Z&8?y(z,C.children):Z&16&&R(C.children,z,null,j,w,$s(C,A),D,I),ce&&ln(C,null,j,"created"),ee(z,C,C.scopeId,D,j),ie){for(let Ve in ie)Ve!=="value"&&!kn(Ve)&&r(z,Ve,null,ie[Ve],A,j);"value"in ie&&r(z,"value",null,ie.value,A),(B=ie.onVnodeBeforeMount)&&Lt(B,j,C)}ce&&ln(C,null,j,"beforeMount");let Ce=Ku(w,le);Ce&&le.beforeEnter(z),i(z,N,V),((B=ie&&ie.onVnodeMounted)||Ce||ce)&&dt(()=>{let Ie;B&&Lt(B,j,C),Ce&&le.enter(z),ce&&ln(C,null,j,"mounted")},w)},ee=(C,N,V,j,w)=>{if(V&&E(C,V),j)for(let A=0;A<j.length;A++)E(C,j[A]);if(w){let A=w.subTree;if(N===A||Qr(A.type)&&(A.ssContent===N||A.ssFallback===N)){let D=w.vnode;ee(C,D,D.scopeId,D.slotScopeIds,w.parent)}}},R=(C,N,V,j,w,A,D,I,z=0)=>{for(let B=z;B<C.length;B++){let ie=C[B]=I?Yt(C[B]):Ut(C[B]);k(null,ie,N,V,j,w,A,D,I)}},K=(C,N,V,j,w,A,D)=>{let I=N.el=C.el,{patchFlag:z,dynamicChildren:B,dirs:ie}=N;z|=C.patchFlag&16;let Z=C.props||Pe,le=N.props||Pe,ce;if(V&&dn(V,!1),(ce=le.onVnodeBeforeUpdate)&&Lt(ce,V,N,C),ie&&ln(N,C,V,"beforeUpdate"),V&&dn(V,!0),B&&(!C.dynamicChildren||C.dynamicChildren.length!==B.length)&&(z=0,D=!1,B=null),(Z.innerHTML&&le.innerHTML==null||Z.textContent&&le.textContent==null)&&y(I,""),B?te(C.dynamicChildren,B,I,V,j,$s(N,w),A):D||Le(C,N,I,null,V,j,$s(N,w),A,!1),z>0){if(z&16)ve(I,Z,le,V,w);else if(z&2&&Z.class!==le.class&&r(I,"class",null,le.class,w),z&4&&r(I,"style",Z.style,le.style,w),z&8){let Ce=N.dynamicProps;for(let Ve=0;Ve<Ce.length;Ve++){let Ie=Ce[Ve],Ke=Z[Ie],Ye=le[Ie];(Ye!==Ke||Ie==="value")&&r(I,Ie,Ke,Ye,w,V)}}z&1&&C.children!==N.children&&y(I,N.children)}else!D&&B==null&&ve(I,Z,le,V,w);((ce=le.onVnodeUpdated)||ie)&&dt(()=>{ce&&Lt(ce,V,N,C),ie&&ln(N,C,V,"updated")},j)},te=(C,N,V,j,w,A,D)=>{for(let I=0;I<N.length;I++){let z=C[I],B=N[I],ie=z.el||js(z),Z=ie&&(z.type===W||!Xn(z,B)||z.shapeFlag&198)?b(ie):V;k(z,B,Z,null,j,w,A,D,!0)}},ve=(C,N,V,j,w)=>{if(N!==V){if(N!==Pe)for(let A in N)!kn(A)&&!(A in V)&&r(C,A,N[A],null,w,j);for(let A in V){if(kn(A))continue;let D=V[A],I=N[A];D!==I&&A!=="value"&&r(C,A,I,D,w,j)}"value"in V&&r(C,"value",N.value,V.value,w)}},x=(C,N,V,j,w,A,D,I,z)=>{let B=N.el=C?C.el:p(""),ie=N.anchor=C?C.anchor:p(""),{patchFlag:Z,dynamicChildren:le,slotScopeIds:ce}=N;ce&&(I=I?I.concat(ce):ce),C==null?(i(B,V,j),i(ie,V,j),R(N.children||[],V,ie,w,A,D,I,z)):Z>0&&Z&64&&le&&C.dynamicChildren&&C.dynamicChildren.length===le.length?(te(C.dynamicChildren,le,V,w,A,D,I),(N.key!=null||w&&N===w.subTree)&&Yr(C,N,!0)):Le(C,N,V,ie,w,A,D,I,z)},ue=(C,N,V,j,w,A,D,I,z)=>{N.slotScopeIds=I,C==null?N.shapeFlag&512?w.ctx.activate(N,V,j,D,z):he(N,V,j,w,A,D,z):Ee(C,N,z)},he=(C,N,V,j,w,A,D)=>{let I=C.component=tc(C,j,w);if(Ko(C)&&(I.ctx.renderer=re),nc(I,!1,D),I.asyncDep){if(w&&w.registerDep(I,ye,D,A),!C.el){let z=I.subTree=De(At);S(null,z,N,V),C.placeholder=z.el}}else ye(I,C,N,V,w,A,D)},Ee=(C,N,V)=>{let j=N.component=C.component;if(Lu(C,N,V))if(j.asyncDep&&!j.asyncResolved){N.el=C.el,N.placeholder=C.placeholder,be(j,N,V);return}else j.next=N,j.update();else N.el=C.el,N.placeholder=C.placeholder,j.vnode=N},ye=(C,N,V,j,w,A,D)=>{let I=()=>{if(C.isMounted){let{next:Z,bu:le,u:ce,parent:Ce,vnode:Ve}=C;{let ft=Jr(C);if(ft){Z&&(Z.el=Ve.el,be(C,Z,D)),ft.asyncDep.then(()=>{dt(()=>{C.isUnmounted||B()},w)});return}}let Ie=Z,Ke;dn(C,!1),Z?(Z.el=Ve.el,be(C,Z,D)):Z=Ve,le&&Cn(le),(Ke=Z.props&&Z.props.onVnodeBeforeUpdate)&&Lt(Ke,Ce,Z,Ve),dn(C,!0);let Ye=Ls(C),Et=C.subTree;C.subTree=Ye,k(Et,Ye,b(Et.el),Q(Et),C,w,A),Z.el=Ye.el,Ie===null&&$u(C,Ye.el),ce&&dt(ce,w),(Ke=Z.props&&Z.props.onVnodeUpdated)&&dt(()=>Lt(Ke,Ce,Z,Ve),w)}else{let Z,{el:le,props:ce}=N,{bm:Ce,m:Ve,parent:Ie,root:Ke,type:Ye}=C,Et=eo(N);if(dn(C,!1),Ce&&Cn(Ce),!Et&&(Z=ce&&ce.onVnodeBeforeMount)&&Lt(Z,Ie,N),dn(C,!0),le&&Ne){let ft=()=>{C.subTree=Ls(C),Ne(le,C.subTree,C,w,null)};Et&&Ye.__asyncHydrate?Ye.__asyncHydrate(le,C,ft):ft()}else{Ke.ce&&Ke.ce._hasShadowRoot()&&Ke.ce._injectChildStyle(Ye,C.parent?C.parent.type:void 0);let ft=C.subTree=Ls(C);k(null,ft,V,j,C,w,A),N.el=ft.el}if(Ve&&dt(Ve,w),!Et&&(Z=ce&&ce.onVnodeMounted)){let ft=N;dt(()=>Lt(Z,Ie,ft),w)}(N.shapeFlag&256||Ie&&eo(Ie.vnode)&&Ie.vnode.shapeFlag&256)&&C.a&&dt(C.a,w),C.isMounted=!0,N=V=j=null}};C.scope.on();let z=C.effect=new Nn(I);C.scope.off();let B=C.update=z.run.bind(z),ie=C.job=z.runIfDirty.bind(z);ie.i=C,ie.id=C.uid,z.scheduler=()=>Gs(ie),dn(C,!0),B()},be=(C,N,V)=>{N.component=C;let j=C.vnode.props;C.vnode=N,C.next=null,Fu(C,N.props,j,V),ju(C,N.children,V),Dt(),br(C),Tt()},Le=(C,N,V,j,w,A,D,I,z=!1)=>{let B=C&&C.children,ie=C?C.shapeFlag:0,Z=N.children,{patchFlag:le,shapeFlag:ce}=N;if(le>0){if(le&128){He(B,Z,V,j,w,A,D,I,z);return}else if(le&256){ze(B,Z,V,j,w,A,D,I,z);return}}ce&8?(ie&16&&U(B,w,A),Z!==B&&y(V,Z)):ie&16?ce&16?He(B,Z,V,j,w,A,D,I,z):U(B,w,A,!0):(ie&8&&y(V,""),ce&16&&R(Z,V,j,w,A,D,I,z))},ze=(C,N,V,j,w,A,D,I,z)=>{C=C||en,N=N||en;let B=C.length,ie=N.length,Z=Math.min(B,ie),le;for(le=0;le<Z;le++){let ce=N[le]=z?Yt(N[le]):Ut(N[le]);k(C[le],ce,V,null,w,A,D,I,z)}B>ie?U(C,w,A,!0,!1,Z):R(N,V,j,w,A,D,I,z,Z)},He=(C,N,V,j,w,A,D,I,z)=>{let B=0,ie=N.length,Z=C.length-1,le=ie-1;for(;B<=Z&&B<=le;){let ce=C[B],Ce=N[B]=z?Yt(N[B]):Ut(N[B]);if(Xn(ce,Ce))k(ce,Ce,V,null,w,A,D,I,z);else break;B++}for(;B<=Z&&B<=le;){let ce=C[Z],Ce=N[le]=z?Yt(N[le]):Ut(N[le]);if(Xn(ce,Ce))k(ce,Ce,V,null,w,A,D,I,z);else break;Z--,le--}if(B>Z){if(B<=le){let ce=le+1,Ce=ce<ie?N[ce].el:j;for(;B<=le;)k(null,N[B]=z?Yt(N[B]):Ut(N[B]),V,Ce,w,A,D,I,z),B++}}else if(B>le)for(;B<=Z;)F(C[B],w,A,!0),B++;else{let ce=B,Ce=B,Ve=new Map;for(B=Ce;B<=le;B++){let mt=N[B]=z?Yt(N[B]):Ut(N[B]);mt.key!=null&&Ve.set(mt.key,B)}let Ie,Ke=0,Ye=le-Ce+1,Et=!1,ft=0,Mn=new Array(Ye);for(B=0;B<Ye;B++)Mn[B]=0;for(B=ce;B<=Z;B++){let mt=C[B];if(Ke>=Ye){F(mt,w,A,!0);continue}let Ot;if(mt.key!=null)Ot=Ve.get(mt.key);else for(Ie=Ce;Ie<=le;Ie++)if(Mn[Ie-Ce]===0&&Xn(mt,N[Ie])){Ot=Ie;break}Ot===void 0?F(mt,w,A,!0):(Mn[Ot-Ce]=B+1,Ot>=ft?ft=Ot:Et=!0,k(mt,N[Ot],V,null,w,A,D,I,z),Ke++)}let ki=Et?Yu(Mn):en;for(Ie=ki.length-1,B=Ye-1;B>=0;B--){let mt=Ce+B,Ot=N[mt],Ci=N[mt+1],Ei=mt+1<ie?Ci.el||js(Ci):j;Mn[B]===0?k(null,Ot,V,Ei,w,A,D,I,z):Et&&(Ie<0||B!==ki[Ie]?Me(Ot,V,Ei,2):Ie--)}}},Me=(C,N,V,j,w=null)=>{let{el:A,type:D,transition:I,children:z,shapeFlag:B}=C;if(B&6){Me(C.component.subTree,N,V,j);return}if(B&128){C.suspense.move(N,V,j);return}if(B&64){D.move(C,N,V,re);return}if(D===W){i(A,N,V);for(let Z=0;Z<z.length;Z++)Me(z[Z],N,V,j);i(C.anchor,N,V);return}if(D===no){L(C,N,V);return}if(j!==2&&B&1&&I)if(j===0)I.persisted&&!A[Vs]?i(A,N,V):(I.beforeEnter(A),i(A,N,V),dt(()=>I.enter(A),w));else{let{leave:Z,delayLeave:le,afterLeave:ce}=I,Ce=()=>{C.ctx.isUnmounted?s(A):i(A,N,V)},Ve=()=>{let Ie=A._isLeaving||!!A[Vs];A._isLeaving&&A[Vs](!0),I.persisted&&!Ie?Ce():Z(A,()=>{Ce(),ce&&ce()})};le?le(A,Ce,Ve):Ve()}else i(A,N,V)},F=(C,N,V,j=!1,w=!1)=>{let{type:A,props:D,ref:I,children:z,dynamicChildren:B,shapeFlag:ie,patchFlag:Z,dirs:le,cacheIndex:ce,memo:Ce}=C;if((Z===-2||B&&B.hasOnce)&&(w=!1),I!=null&&(Dt(),xn(I,null,V,C,!0),Tt()),ce!=null&&(!C.ctx||C.ctx===N)&&(N.renderCache[ce]=void 0),ie&256){N.ctx.deactivate(C);return}let Ve=ie&1&&le,Ie=!eo(C),Ke;if(Ie&&(Ke=D&&D.onVnodeBeforeUnmount)&&Lt(Ke,N,C),ie&6)ne(C.component,V,j);else{if(ie&128){C.suspense.unmount(V,j);return}Ve&&ln(C,null,N,"beforeUnmount"),ie&64?C.type.remove(C,N,V,re,j):B&&!B.hasOnce&&(A!==W||Z>0&&Z&64)?U(B,N,V,!1,!0):(A===W&&Z&384||!w&&ie&16)&&U(z,N,V),j&&X(C)}let Ye=Ce!=null&&ce==null;(Ie&&(Ke=D&&D.onVnodeUnmounted)||Ve||Ye)&&dt(()=>{Ke&&Lt(Ke,N,C),Ve&&ln(C,null,N,"unmounted"),Ye&&(C.el=null)},V)},X=C=>{let{type:N,el:V,anchor:j,transition:w}=C,A=N===W;if(A&&!w){J(V,j);return}if(N===no){q(C),w&&!w.persisted&&w.afterLeave&&w.afterLeave();return}let D=A?Us(C):C,I=()=>{A?b(V)&&J(V,j):s(V),w&&!w.persisted&&w.afterLeave&&w.afterLeave()};if(D&&D.shapeFlag&1&&w&&!w.persisted){let{leave:z,delayLeave:B}=w,ie=D.el,Z=()=>z(ie,I);B?B(ie,I,Z):Z()}else I()},J=(C,N)=>{let V;for(;C!==N;)V=m(C),s(C),C=V;s(N)},ne=(C,N,V)=>{let{bum:j,scope:w,job:A,subTree:D,um:I,m:z,a:B}=C;cr(z),cr(B),j&&Cn(j),w.stop(),A?(A.flags|=8,F(D,C,N,V)):C.vnode.el&&D&&(D.transition=C.vnode.transition,F(D,C,N,V)),I&&dt(I,N),dt(()=>{C.isUnmounted=!0},N)},U=(C,N,V,j=!1,w=!1,A=0)=>{for(let D=A;D<C.length;D++)F(C[D],N,V,j,w)},Q=C=>{if(C.shapeFlag&6)return Q(C.component.subTree);if(C.shapeFlag&128)return C.suspense.next();let N=m(C.anchor||C.el),V=N&&N[fu];return V?m(V):N},H=(C,N,V)=>{let j=C&&N._vnode?void 0:C&&C.component?C.component.uid:ec();lu(()=>{C==null?N._vnode&&F(N._vnode,null,null,!0):k(N._vnode||null,C,N,null,null,null,V),N._vnode=C},j)},re={p:k,um:F,m:Me,r:X,mt:he,mc:R,pc:Le,pbc:te,n:Q,o:e},de,Ne;return t&&([de,Ne]=t(re)),{render:H,hydrate:de,createApp:Ou(H,de)}}function $s({type:e,props:t},o){return o==="svg"&&e==="foreignObject"||o==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:o}function dn({effect:e,job:t},o){o?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Ku(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Yr(e,t,o=!1){let i=e.children,s=t.children;if(ge(i)&&ge(s))for(let r=0;r<i.length;r++){let a=i[r],p=s[r];p.shapeFlag&1&&!p.dynamicChildren&&((p.patchFlag<=0||p.patchFlag===32)&&(p=s[r]=Yt(s[r]),p.el=a.el),!o&&p.patchFlag!==-2&&Yr(a,p)),p.type===Qo&&(p.patchFlag===-1&&(p=s[r]=Yt(p)),p.el=a.el),p.type===At&&!p.el&&(p.el=a.el)}}function Yu(e){let t=e.slice(),o=[0],i,s,r,a,p,f=e.length;for(i=0;i<f;i++){let g=e[i];if(g!==0){if(s=o[o.length-1],e[s]<g){t[i]=s,o.push(i);continue}for(r=0,a=o.length-1;r<a;)p=r+a>>1,e[o[p]]<g?r=p+1:a=p;g<e[o[r]]&&(r>0&&(t[i]=o[r-1]),o[r]=i)}}for(r=o.length,a=o[r-1];r-- >0;)o[r]=a,a=t[a];return o}function Jr(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Jr(t)}function cr(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function js(e){if(e.placeholder)return e.placeholder;let t=e.component;return t?js(t.subTree):null}var Qr=e=>e.__isSuspense;function Ju(e,t){t&&t.pendingBranch?ge(e)?t.effects.push(...e):t.effects.push(e):yr(e)}var W=Symbol.for("v-fgt"),Qo=Symbol.for("v-txt"),At=Symbol.for("v-cmt"),no=Symbol.for("v-stc"),un=[],yt=null;function l(e=!1){un.push(yt=e?null:[])}function Xr(){un.pop(),yt=un[un.length-1]||null}var io=1;function Ho(e,t=!1){io+=e,e<0&&yt&&t&&(yt.hasOnce=!0)}function Zr(e){return e.dynamicChildren=io>0?yt||en:null,Xr(),io>0&&yt&&yt.push(e),e}function d(e,t,o,i,s,r){return Zr(n(e,t,o,i,s,r,!0))}function Bt(e,t,o,i,s){return Zr(De(e,t,o,i,s,!0))}function ro(e){return e?e.__v_isVNode===!0:!1}function Xn(e,t){return e.type===t.type&&e.key===t.key}var xr=({key:e})=>e??null,$o=({ref:e,ref_key:t,ref_for:o})=>(typeof e=="number"&&(e=""+e),e!=null?$e(e)||Ze(e)||ke(e)?{i:gt,r:e,k:t,f:!!o}:e:null);function n(e,t=null,o=null,i=0,s=null,r=e===W?0:1,a=!1,p=!1){let f={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&xr(t),ref:t&&$o(t),scopeId:Cr,slotScopeIds:null,children:o,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:i,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:gt};return p?(jo(f,o),r&128&&e.normalize(f)):o&&(f.shapeFlag|=$e(o)?8:16),io>0&&!a&&yt&&(f.patchFlag>0||r&6)&&f.patchFlag!==32&&yt.push(f),f}var De=Qu;function Qu(e,t=null,o=null,i=0,s=null,r=!1){if((!e||e===Eu)&&(e=At),ro(e)){let p=Tn(e,t,!0);return o&&jo(p,o),io>0&&!r&&yt&&(p.shapeFlag&6?yt[yt.indexOf(e)]=p:yt.push(p)),p.patchFlag=-2,p}if(ac(e)&&(e=e.__vccOpts),t){t=Xu(t);let{class:p,style:f}=t;p&&!$e(p)&&(t.class=O(p)),Ae(f)&&(Jn(f)&&!ge(f)&&(f=je({},f)),t.style=Re(f))}let a=$e(e)?1:Qr(e)?128:Wo(e)?64:Ae(e)?4:ke(e)?2:0;return n(e,t,o,i,s,a,r,!0)}function Xu(e){return e?Jn(e)||Br(e)?je({},e):e:null}function Tn(e,t,o=!1,i=!1){let{props:s,ref:r,patchFlag:a,children:p,transition:f}=e,g=t?Zu(s||{},t):s,y={__v_isVNode:!0,__v_skip:!0,type:e.type,props:g,key:g&&xr(g),ref:t&&t.ref?o&&r?ge(r)?r.concat($o(t)):[r,$o(t)]:$o(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:p,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==W?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:f,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Tn(e.ssContent),ssFallback:e.ssFallback&&Tn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce,cacheIndex:e.cacheIndex};return f&&i&&so(y,f.clone(y)),y}function h(e=" ",t=0){return De(Qo,null,e,t)}function me(e,t){let o=De(no,null,e);return o.staticCount=t,o}function c(e="",t=!1){return t?(l(),Bt(At,null,e)):De(At,null,e)}function Ut(e){return e==null||typeof e=="boolean"?De(At):ge(e)?De(W,null,e.slice()):ro(e)?Yt(e):De(Qo,null,String(e))}function Yt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Tn(e)}function jo(e,t){let o=0,{shapeFlag:i}=e;if(t==null)t=null;else if(ge(t))o=16;else if(typeof t=="object")if(i&65){let s=t.default;s&&(s._c&&(s._d=!1),jo(e,s()),s._c&&(s._d=!0));return}else{o=32;let s=t._;!s&&!Br(t)?t._ctx=gt:s===3&>&&(gt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(ke(t)){if(i&65){jo(e,{default:t});return}t={default:t,_ctx:gt},o=32}else t=String(t),i&64?(o=16,t=[h(t)]):o=8;e.children=t,e.shapeFlag|=o}function Zu(...e){let t={};for(let o=0;o<e.length;o++){let i=e[o];for(let s in i)if(s==="class")t.class!==i.class&&(t.class=O([t.class,i.class]));else if(s==="style")t.style=Re([t.style,i.style]);else if(bn(s)){let r=t[s],a=i[s];a&&r!==a&&!(ge(r)&&r.includes(a))?t[s]=r?[].concat(r,a):a:a==null&&r==null&&!wn(s)&&(t[s]=a)}else s!==""&&(t[s]=i[s])}return t}function Lt(e,t,o,i=null){kt(e,t,7,[o,i])}var xu=Vr(),ea=0;function ec(){return ea}function tc(e,t,o){let i=e.type,s=(t?t.appContext:e.appContext)||xu,r={uid:ea++,vnode:e,type:i,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new zn(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Hr(i,s),emitsOptions:qr(i,s),emit:null,emitted:null,propsDefaults:Pe,inheritAttrs:i.inheritAttrs,ctx:Pe,data:Pe,props:Pe,attrs:Pe,slots:Pe,refs:Pe,setupState:Pe,setupContext:null,suspense:o,suspenseId:o?o.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return r.ctx={_:r},r.root=t?t.root:r,r.emit=Iu.bind(null,r),e.ce&&e.ce(r),r}var tt=null,Qs=()=>tt||gt,Go,ao;{let e=$n(),t=(o,i)=>{let s;return(s=e[o])||(s=e[o]=[]),s.push(i),r=>{s.length>1?s.forEach(a=>a(r)):s[0](r)}};Go=t("__VUE_INSTANCE_SETTERS__",o=>tt=o),ao=t("__VUE_SSR_SETTERS__",o=>_n=o)}var fo=e=>{let t=tt;return Go(e),e.scope.on(),()=>{e.scope.off(),Go(t)}},pr=()=>{tt&&tt.scope.off(),Go(null)};function ta(e){return e.vnode.shapeFlag&4}var _n=!1;function nc(e,t=!1,o=!1){t&&ao(t);let{props:i,children:s}=e.vnode,r=ta(e);Uu(e,i,r,t),Hu(e,s,o||t);let a=r?oc(e,t):void 0;return t&&ao(!1),a}function oc(e,t){let o=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Su);let{setup:i}=o;if(i){Dt();let s=e.setupContext=i.length>1?ic(e):null,r=fo(e),a=lo(i,e,0,[e.props,s]),p=vs(a);if(Tt(),r(),(p||e.sp)&&!eo(e)&&Ws(e),p){if(a.then(pr,pr),t)return a.then(f=>{ao(!0);try{fr(e,f,t)}finally{ao(!1)}}).catch(f=>{uo(f,e,0)});e.asyncDep=a}else fr(e,a,t)}else na(e,t)}function fr(e,t,o){ke(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ae(t)&&(e.setupState=qo(t)),na(e,o)}var mr,hr;function na(e,t,o){let i=e.type;if(!e.render){if(!t&&mr&&!i.render){let s=i.template||Ks(e).template;if(s){let{isCustomElement:r,compilerOptions:a}=e.appContext.config,{delimiters:p,compilerOptions:f}=i,g=je(je({isCustomElement:r,delimiters:p},a),f);i.render=mr(s,g)}}e.render=i.render||at,hr&&hr(e)}{let s=fo(e);Dt();try{Nu(e)}finally{Tt(),s()}}}var sc={get(e,t){return xe(e,"get",""),e[t]}};function ic(e){let t=o=>{e.exposed=o||{}};return{attrs:new Proxy(e.attrs,sc),slots:e.slots,emit:e.emit,expose:t}}function Xo(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(qo(Qn(e.exposed)),{get(t,o){if(o in t)return t[o];if(o in to)return to[o](e)},has(t,o){return o in t||o in to}})):e.proxy}function rc(e,t=!0){return ke(e)?e.displayName||e.name:e.name||t&&e.__name}function ac(e){return ke(e)&&"__vccOpts"in e}var nt=(e,t)=>Zi(e,t,_n);function Se(e,t,o){try{Ho(-1);let i=arguments.length;return i===2?Ae(t)&&!ge(t)?ro(t)?De(e,null,[t]):De(e,t):De(e,null,t):(i>3?o=Array.prototype.slice.call(arguments,2):i===3&&ro(o)&&(o=[o]),De(e,t,o))}finally{Ho(1)}}var lc="3.5.44";var ei,oa=typeof window<"u"&&window.trustedTypes;if(oa)try{ei=oa.createPolicy("vue",{createHTML:e=>e})}catch{}var ha=ei?e=>ei.createHTML(e):e=>e,dc="http://www.w3.org/2000/svg",uc="http://www.w3.org/1998/Math/MathML",Qt=typeof document<"u"?document:null,sa=Qt&&Qt.createElement("template"),cc={insert:(e,t,o)=>{t.insertBefore(e,o||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,o,i)=>{let s=t==="svg"?Qt.createElementNS(dc,e):t==="mathml"?Qt.createElementNS(uc,e):o?Qt.createElement(e,{is:o}):Qt.createElement(e);return e==="select"&&i&&i.multiple!=null&&s.setAttribute("multiple",i.multiple),s},createText:e=>Qt.createTextNode(e),createComment:e=>Qt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Qt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,o,i,s,r){let a=o?o.previousSibling:t.lastChild;if(s&&(s===r||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),o),!(s===r||!(s=s.nextSibling)););else{sa.innerHTML=ha(i==="svg"?`<svg>${e}</svg>`:i==="mathml"?`<math>${e}</math>`:e);let p=sa.content;if(i==="svg"||i==="mathml"){let f=p.firstChild;for(;f.firstChild;)p.appendChild(f.firstChild);p.removeChild(f)}t.insertBefore(p,o)}return[a?a.nextSibling:t.firstChild,o?o.previousSibling:t.lastChild]}};var pc=Symbol("_vtc");function fc(e,t,o){let i=e[pc];i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):o?e.setAttribute("class",t):e.className=t}var es=Symbol("_vod"),va=Symbol("_vsh"),Y={name:"show",beforeMount(e,{value:t},{transition:o}){e[es]=e.style.display==="none"?"":e.style.display,o&&t?o.beforeEnter(e):mo(e,t)},mounted(e,{value:t},{transition:o}){o&&t&&o.enter(e)},updated(e,{value:t,oldValue:o},{transition:i}){!t!=!o&&(i?t?(i.beforeEnter(e),mo(e,!0),i.enter(e)):i.leave(e,()=>{mo(e,!1)}):mo(e,t))},beforeUnmount(e,{value:t}){mo(e,t)}};function mo(e,t){e.style.display=t?e[es]:"none",e[va]=!t}var mc=Symbol("");var hc=/(?:^|;)\s*display\s*:/;function vc(e,t,o){let i=e.style,s=$e(o),r=!1;if(o&&!s){if(t)if($e(t))for(let a of t.split(";")){let p=a.slice(0,a.indexOf(":")).trim();o[p]==null&&ho(i,p,"")}else for(let a in t)o[a]==null&&ho(i,a,"");for(let a in o){a==="display"&&(r=!0);let p=o[a];p!=null?yc(e,a,!$e(t)&&t?t[a]:void 0,p)||ho(i,a,p):ho(i,a,"")}}else if(s){if(t!==o){let a=i[mc];a&&(o+=";"+a),i.cssText=o,r=hc.test(o)}}else t&&e.removeAttribute("style");es in e&&((!s||t!==o)&&(e[es]=r?i.display:""),e[va]&&(i.display="none"))}var Zo=/\s*!important$/;function ho(e,t,o){if(ge(o))o.forEach(i=>ho(e,t,i));else if(o==null&&(o=""),t.startsWith("--"))Zo.test(o)?e.setProperty(t,o.replace(Zo,""),"important"):e.setProperty(t,o);else{let i=gc(e,t);Zo.test(o)?e.setProperty(Pt(i),o.replace(Zo,""),"important"):e[i]=o}}var ia=["Webkit","Moz","ms"],Xs={};function gc(e,t){let o=Xs[t];if(o)return o;let i=Je(t);if(i!=="filter"&&i in e)return Xs[t]=i;i=sn(i);for(let s=0;s<ia.length;s++){let r=ia[s]+i;if(r in e)return Xs[t]=r}return t}function yc(e,t,o,i){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&$e(i)&&o===i}var ra="http://www.w3.org/1999/xlink";function aa(e,t,o,i,s,r=Pi(t)){i&&t.startsWith("xlink:")?o==null?e.removeAttributeNS(ra,t.slice(6,t.length)):e.setAttributeNS(ra,t,o):o==null||r&&!Ro(o)?e.removeAttribute(t):e.setAttribute(t,r?"":ht(o)?String(o):o)}function la(e,t,o,i,s){if(t==="innerHTML"||t==="textContent"){o!=null&&(e[t]=t==="innerHTML"?ha(o):o);return}let r=e.tagName;if(t==="value"&&r!=="PROGRESS"&&!r.includes("-")){let p=r==="OPTION"?e.getAttribute("value")||"":e.value,f=o==null?e.type==="checkbox"?"on":"":String(o);(p!==f||!("_value"in e))&&(e.value=f),o==null&&e.removeAttribute(t),e._value=o;return}let a=!1;if(o===""||o==null){let p=typeof e[t];p==="boolean"?o=Ro(o):o==null&&p==="string"?(o="",a=!0):p==="number"&&(o=0,a=!0)}try{e[t]=o}catch{}a&&e.removeAttribute(s||t)}function nn(e,t,o,i){e.addEventListener(t,o,i)}function bc(e,t,o,i){e.removeEventListener(t,o,i)}var da=Symbol("_vei");function wc(e,t,o,i,s=null){let r=e[da]||(e[da]={}),a=r[t];if(i&&a)a.value=i;else{let[p,f]=Ec(t);if(i){let g=r[t]=Rc(i,s);nn(e,p,g,f)}else a&&(bc(e,p,a,f),r[t]=void 0)}}var kc=/(Once|Passive|Capture)$/,Cc=/^on:?(?:Once|Passive|Capture)$/;function Ec(e){let t,o;for(;(o=e.match(kc))&&!Cc.test(e);)t||(t={}),e=e.slice(0,e.length-o[1].length),t[o[1].toLowerCase()]=!0;return[e[2]===":"?e.slice(3):Pt(e.slice(2)),t]}var Zs=0,Sc=Promise.resolve(),Nc=()=>Zs||(Sc.then(()=>Zs=0),Zs=Date.now());function Rc(e,t){let o=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=o.attached)return;let s=o.value;if(ge(s)){let r=i.stopImmediatePropagation;i.stopImmediatePropagation=()=>{r.call(i),i._stopped=!0};let a=s.slice(),p=[i];for(let f=0;f<a.length&&!i._stopped;f++){let g=a[f];g&&kt(g,t,5,p)}}else kt(s,t,5,[i])};return o.value=e,o.attached=Nc(),o}var ua=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Dc=(e,t,o,i,s,r)=>{let a=s==="svg";t==="class"?fc(e,i,a):t==="style"?vc(e,o,i):bn(t)?wn(t)||wc(e,t,o,i,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Tc(e,t,i,a))?(la(e,t,i),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&aa(e,t,i,a,r,t!=="value")):e._isVueCE&&(_c(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!$e(i)))?la(e,Je(t),i,r,t):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),aa(e,t,i,a))};function Tc(e,t,o,i){if(i)return!!(t==="innerHTML"||t==="textContent"||t in e&&ua(t)&&ke(o));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){let s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return ua(t)&&$e(o)?!1:t in e}function _c(e,t){let o=e._def.props;if(!o)return!1;let i=Je(t);return Array.isArray(o)?o.some(s=>Je(s)===i):Object.keys(o).some(s=>Je(s)===i)}var An=e=>{let t=e.props["onUpdate:modelValue"]||!1;return ge(t)?o=>Cn(t,o):t};function Ac(e){e.target.composing=!0}function ca(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}var zt=Symbol("_assign"),xo=Symbol("_initialValue");function xs(e,t,o){return t&&(e=e.trim()),o&&(e=En(e)),e}var ot={created(e,{modifiers:{lazy:t,trim:o,number:i}},s){e.parentNode&&(e.type==="text"?e[xo]=e.defaultValue.replace(/[\r\n]/g,""):e.type==="textarea"&&(e[xo]=e.defaultValue.replace(/\r\n?/g,`
|
|
`))),e[zt]=An(s);let r=i||s.props&&s.props.type==="number";nn(e,t?"change":"input",a=>{a.target.composing||e[zt](xs(e.value,o,r))}),(o||r)&&nn(e,"change",()=>{e.value=xs(e.value,o,r)}),t||(nn(e,"compositionstart",Ac),nn(e,"compositionend",ca),nn(e,"change",ca))},mounted(e,{value:t,modifiers:{trim:o,number:i}}){let s=t??"",r=e[xo];delete e[xo],r!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==r?e[zt](xs(e.value,o,i)):e.value=s},beforeUpdate(e,{value:t,oldValue:o,modifiers:{lazy:i,trim:s,number:r}},a){if(e[zt]=An(a),e.composing)return;let p=(r||e.type==="number")&&!/^0\d/.test(e.value)?En(e.value):e.value,f=t??"";if(p===f)return;let g=e.getRootNode();(g instanceof Document||g instanceof ShadowRoot)&&g.activeElement===e&&e.type!=="range"&&(i&&t===o||s&&e.value.trim()===f)||(e.value=f)}},ti={deep:!0,created(e,t,o){e[zt]=An(o),nn(e,"change",()=>{let i=e._modelValue,s=vo(e),r=e.checked,a=e[zt];if(ge(i)){let p=Do(i,s),f=p!==-1;if(r&&!f)a(i.concat(s));else if(!r&&f){let g=[...i];g.splice(p,1),a(g)}}else if(St(i)){let p=new Set(i);r?p.add(s):p.delete(s),a(p)}else a(ga(e,r))})},mounted:pa,beforeUpdate(e,t,o){e[zt]=An(o),pa(e,t,o)}};function pa(e,{value:t,oldValue:o},i){e._modelValue=t;let s;if(ge(t))s=Do(t,i.props.value)>-1;else if(St(t))s=t.has(i.props.value);else{if(t===o)return;s=Nt(t,ga(e,!0))}e.checked!==s&&(e.checked=s)}var fn={deep:!0,created(e,{value:t,modifiers:{number:o}},i){e._modelValue=t,nn(e,"change",()=>{let s=Array.prototype.filter.call(e.options,f=>f.selected).map(f=>o?En(vo(f)):vo(f)),r=e.multiple,a=r?St(e._modelValue)?new Set(s):s:s[0],p=e._pendingValue=[r,r?ge(a)?s.slice():s:a];try{e[zt](a)}finally{Ge(()=>{e._pendingValue===p&&(e._pendingValue=void 0)})}}),e[zt]=An(i)},mounted(e,{value:t}){fa(e,t)},beforeUpdate(e,{value:t},o){e._modelValue=t,e[zt]=An(o)},updated(e,{value:t}){let o=e._pendingValue;e._pendingValue=void 0,(!o||o[0]!==e.multiple||!Oc(t,o[1],o[0]))&&fa(e,t)}};function Oc(e,t,o){if(!o)return Nt(e,t);if(ge(e))return Nt(e,t);if(St(e)){if(e.size!==t.length)return!1;for(let i of t)if(!e.has(i))return!1;return!0}return!1}function fa(e,t){let o=e.multiple,i=ge(t);if(!(o&&!i&&!St(t))){for(let s=0,r=e.options.length;s<r;s++){let a=e.options[s],p=vo(a);if(o)if(i){let f=typeof p;f==="string"||f==="number"?a.selected=t.some(g=>String(g)===String(p)):a.selected=Do(t,p)>-1}else a.selected=t.has(p);else if(Nt(vo(a),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!o&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function vo(e){return"_value"in e?e._value:e.value}function ga(e,t){let o=t?"_trueValue":"_falseValue";return o in e?e[o]:t}var Pc=["ctrl","shift","alt","meta"],Ic={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Pc.some(o=>e[`${o}Key`]&&!t.includes(o))},ae=(e,t)=>{if(!e)return e;let o=e._withMods||(e._withMods={}),i=t.join(".");return o[i]||(o[i]=((s,...r)=>{for(let a=0;a<t.length;a++){let p=Ic[t[a]];if(p&&p(s,t))return}return e(s,...r)}))},Mc={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},ct=(e,t)=>{let o=e._withKeys||(e._withKeys={}),i=t.join(".");return o[i]||(o[i]=(s=>{if(!("key"in s))return;let r=Pt(s.key);if(t.some(a=>a===r||Mc[a]===r))return e(s)}))},Vc=je({patchProp:Dc},cc),ma;function qc(){return ma||(ma=Kr(Vc))}var ya=((...e)=>{let t=qc().createApp(...e),{mount:o}=t;return t.mount=i=>{let s=$c(i);if(!s)return;let r=t._component;!ke(r)&&!r.render&&!r.template&&(r.template=s.innerHTML),s.nodeType===1&&(s.textContent="");let a=o(s,!1,Lc(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),a},t});function Lc(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function $c(e){return $e(e)?document.querySelector(e):e}var vn=typeof document<"u";function wa(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Uc(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&wa(e.default)}var Oe=Object.assign;function ts(e,t){let o={};for(let i in t){let s=t[i];o[i]=Ct(s)?s.map(e):e(s)}return o}var Pn=()=>{},Ct=Array.isArray;function si(e,t){let o={};for(let i in e)o[i]=i in t?t[i]:e[i];return o}var ka=/#/g,Fc=/&/g,Bc=/\//g,zc=/=/g,Hc=/\?/g,Ca=/\+/g,jc=/%5B/g,Gc=/%5D/g,Ea=/%5E/g,Wc=/%60/g,Sa=/%7B/g,Kc=/%7C/g,Na=/%7D/g,Yc=/%20/g;function ii(e){return e==null?"":encodeURI(""+e).replace(Kc,"|").replace(jc,"[").replace(Gc,"]")}function Ra(e){return ii(e).replace(Sa,"{").replace(Na,"}").replace(Ea,"^")}function ni(e){return ii(e).replace(Ca,"%2B").replace(Yc,"+").replace(ka,"%23").replace(Fc,"%26").replace(Wc,"`").replace(Sa,"{").replace(Na,"}").replace(Ea,"^")}function Jc(e){return ni(e).replace(zc,"%3D")}function Qc(e){return ii(e).replace(ka,"%23").replace(Hc,"%3F")}function Da(e){return Qc(e).replace(Bc,"%2F")}function On(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}var Xc=/\/$/,Zc=e=>e.replace(Xc,"");function ns(e,t,o="/"){let i,s={},r="",a="",p=t.indexOf("#"),f=t.indexOf("?");return f=p>=0&&f>p?-1:f,f>=0&&(i=t.slice(0,f),r=t.slice(f,p>0?p:t.length),s=e(r.slice(1))),p>=0&&(i=i||t.slice(0,p),a=t.slice(p,t.length)),i=ep(i??t,o),{fullPath:i+r+a,path:i,query:s,hash:On(a)}}function Ta(e,t){let o=t.query?e(t.query):"";return t.path+(o&&"?")+o+(t.hash||"")}function ri(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function _a(e,t,o){let i=t.matched.length-1,s=o.matched.length-1;return i>-1&&i===s&&mn(t.matched[i],o.matched[s])&&ai(t.params,o.params)&&e(t.query)===e(o.query)&&t.hash===o.hash}function mn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function ai(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var o in e)if(!xc(e[o],t[o]))return!1;return!0}function xc(e,t){return Ct(e)?ba(e,t):Ct(t)?ba(t,e):e?.valueOf()===t?.valueOf()}function ba(e,t){return Ct(t)?e.length===t.length&&e.every((o,i)=>o===t[i]):e.length===1&&e[0]===t}function ep(e,t){if(e.startsWith("/"))return e;if(!e)return t;let o=t.split("/"),i=e.split("/"),s=i[i.length-1];(s===".."||s===".")&&i.push("");let r=o.length-1,a,p;for(a=0;a<i.length;a++)if(p=i[a],p!==".")if(p==="..")r>1&&r--;else break;return o.slice(0,r).join("/")+"/"+i.slice(a).join("/")}var Zt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},os=(function(e){return e.pop="pop",e.push="push",e})({}),ss=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function Aa(e){if(!e)if(vn){let t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Zc(e)}var tp=/^[^#]+#/;function Oa(e,t){return e.replace(tp,"#")+t}function np(e,t){let o=document.documentElement.getBoundingClientRect(),i=e.getBoundingClientRect();return{behavior:t.behavior,left:i.left-o.left-(t.left||0),top:i.top-o.top-(t.top||0)}}var go=()=>({left:window.scrollX,top:window.scrollY});function Pa(e){let t;if("el"in e){let o=e.el,i=typeof o=="string"&&o.startsWith("#"),s=typeof o=="string"?i?document.getElementById(o.slice(1)):document.querySelector(o):o;if(!s)return;t=np(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function li(e,t){return(history.state?history.state.position-t:-1)+e}var oi=new Map;function Ia(e,t){oi.set(e,t)}function Ma(e){let t=oi.get(e);return oi.delete(e),t}function op(e){return typeof e=="string"||e&&typeof e=="object"}function di(e){return typeof e=="string"||typeof e=="symbol"}var Be=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({}),Va=Symbol("");var mB={[Be.MATCHER_NOT_FOUND]({location:e,currentLocation:t}){return`No match for
|
|
${JSON.stringify(e)}${t?`
|
|
while being at
|
|
`+JSON.stringify(t):""}`},[Be.NAVIGATION_GUARD_REDIRECT]({from:e,to:t}){return`Redirected from "${e.fullPath}" to "${ip(t)}" via a navigation guard.`},[Be.NAVIGATION_ABORTED]({from:e,to:t}){return`Navigation aborted from "${e.fullPath}" to "${t.fullPath}" via a navigation guard.`},[Be.NAVIGATION_CANCELLED]({from:e,to:t}){return`Navigation cancelled from "${e.fullPath}" to "${t.fullPath}" with a new navigation.`},[Be.NAVIGATION_DUPLICATED]({from:e,to:t}){return`Avoided redundant navigation to current location: "${e.fullPath}".`}};function hn(e,t){return Oe(new Error,{type:e,[Va]:!0},t)}function Ht(e,t){return e instanceof Error&&Va in e&&(t==null||!!(e.type&t))}var sp=["params","query","hash"];function ip(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;let t={};for(let o of sp)o in e&&(t[o]=e[o]);return JSON.stringify(t,null,2)}function qa(e){let t={};if(e===""||e==="?")return t;let o=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;i<o.length;++i){let s=o[i].replace(Ca," "),r=s.indexOf("="),a=On(r<0?s:s.slice(0,r)),p=r<0?null:On(s.slice(r+1));if(a in t){let f=t[a];Ct(f)||(f=t[a]=[f]),f.push(p)}else t[a]=p}return t}function ui(e){let t="";for(let o in e){let i=e[o];if(o=Jc(o),i==null){i!==void 0&&(t+=(t.length?"&":"")+o);continue}(Ct(i)?i.map(s=>s&&ni(s)):[i&&ni(i)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+o,s!=null&&(t+="="+s))})}return t}function La(e){let t={};for(let o in e){let i=e[o];i!==void 0&&(t[o]=Ct(i)?i.map(s=>s==null?null:""+s):i==null?i:""+i)}return t}var $a=Symbol(""),ci=Symbol(""),is=Symbol(""),rs=Symbol(""),as=Symbol("");function In(){let e=[];function t(i){return e.push(i),()=>{let s=e.indexOf(i);s>-1&&e.splice(s,1)}}function o(){e=[]}return{add:t,list:()=>e.slice(),reset:o}}function Xt(e,t,o,i,s,r=a=>a()){let a=i&&(i.enterCallbacks[s]=i.enterCallbacks[s]||[]);return()=>new Promise((p,f)=>{let g=m=>{m===!1?f(hn(Be.NAVIGATION_ABORTED,{from:o,to:t})):m instanceof Error?f(m):op(m)?f(hn(Be.NAVIGATION_GUARD_REDIRECT,{from:t,to:m})):(a&&i.enterCallbacks[s]===a&&typeof m=="function"&&a.push(m),p())},y=r(()=>e.call(i&&i.instances[s],t,o,g)),b=Promise.resolve(y);e.length<3&&(b=b.then(g)),b.catch(m=>f(m))})}function ls(e,t,o,i,s=r=>r()){let r=[];for(let a of e)for(let p in a.components){let f=a.components[p];if(!(t!=="beforeRouteEnter"&&!a.instances[p]))if(wa(f)){let g=(f.__vccOpts||f)[t];g&&r.push(Xt(g,o,i,a,p,s))}else{let g=f();r.push(()=>g.then(y=>{if(!y)throw new Error(`Couldn't resolve component "${p}" at "${a.path}"`);let b=Uc(y)?y.default:y;a.mods[p]=y,a.components[p]=b;let m=(b.__vccOpts||b)[t];return m&&Xt(m,o,i,a,p,s)()}))}}return r}function Ua(e,t){let o=[],i=[],s=[],r=Math.max(t.matched.length,e.matched.length);for(let a=0;a<r;a++){let p=t.matched[a];p&&(e.matched.find(g=>mn(g,p))?i.push(p):o.push(p));let f=e.matched[a];f&&(t.matched.find(g=>mn(g,f))||s.push(f))}return[o,i,s]}var rp=()=>location.protocol+"//"+location.host;function Qa(e,t){let{pathname:o,search:i,hash:s}=t,r=e.indexOf("#");if(r>-1){let a=s.includes(e.slice(r))?e.slice(r).length:1,p=s.slice(a);return p[0]!=="/"&&(p="/"+p),ri(p,"")}return ri(o,e)+i+s}function ap(e,t,o,i){let s=[],r=[],a=null,p=({state:m})=>{let E=Qa(e,location),P=o.value,k=t.value,v=0;if(m){if(o.value=E,t.value=m,a&&a===P){a=null;return}v=k?m.position-k.position:0}else i(E);s.forEach(S=>{S(o.value,P,{delta:v,type:os.pop,direction:v?v>0?ss.forward:ss.back:ss.unknown})})};function f(){a=o.value}function g(m){s.push(m);let E=()=>{let P=s.indexOf(m);P>-1&&s.splice(P,1)};return r.push(E),E}function y(){if(document.visibilityState==="hidden"){let{history:m}=window;if(!m.state)return;m.replaceState(Oe({},m.state,{scroll:go()}),"")}}function b(){for(let m of r)m();r=[],window.removeEventListener("popstate",p),window.removeEventListener("pagehide",y),document.removeEventListener("visibilitychange",y)}return window.addEventListener("popstate",p),window.addEventListener("pagehide",y),document.addEventListener("visibilitychange",y),{pauseListeners:f,listen:g,destroy:b}}function Fa(e,t,o,i=!1,s=!1){return{back:e,current:t,forward:o,replaced:i,position:window.history.length,scroll:s?go():null}}function lp(e){let{history:t,location:o}=window,i={value:Qa(e,o)},s={value:t.state};s.value||r(i.value,{back:null,current:i.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function r(f,g,y){let b=e.indexOf("#"),m=b>-1?(o.host&&document.querySelector("base")?e:e.slice(b))+f:rp()+e+f;try{t[y?"replaceState":"pushState"](g,"",m),s.value=g}catch(E){console.error(E),o[y?"replace":"assign"](m)}}function a(f,g){r(f,Oe({},t.state,Fa(s.value.back,f,s.value.forward,!0),g,{position:s.value.position}),!0),i.value=f}function p(f,g){let y=Oe({},s.value,t.state,{forward:f,scroll:go()});r(y.current,y,!0),r(f,Oe({},Fa(i.value,f,null),{position:y.position+1},g),!1),i.value=f}return{location:i,state:s,push:p,replace:a}}function Xa(e){e=Aa(e);let t=lp(e),o=ap(e,t.state,t.location,t.replace);function i(r,a=!0){a||o.pauseListeners(),history.go(r)}let s=Oe({location:"",base:e,go:i,createHref:Oa.bind(null,e)},t,o);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}var gn=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({}),Xe=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(Xe||{}),dp={type:gn.Static,value:""},up=/[a-zA-Z0-9_]/;function cp(e){if(!e)return[[]];if(e==="/")return[[dp]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(E){throw new Error(`ERR (${o})/"${g}": ${E}`)}let o=Xe.Static,i=o,s=[],r;function a(){r&&s.push(r),r=[]}let p=0,f,g="",y="";function b(){g&&(o===Xe.Static?r.push({type:gn.Static,value:g}):o===Xe.Param||o===Xe.ParamRegExp||o===Xe.ParamRegExpEnd?(r.length>1&&(f==="*"||f==="+")&&t(`A repeatable param (${g}) must be alone in its segment. eg: '/:ids+.`),r.push({type:gn.Param,value:g,regexp:y,repeatable:f==="*"||f==="+",optional:f==="*"||f==="?"})):t("Invalid state to consume buffer"),g="")}function m(){g+=f}for(;p<e.length;){if(f=e[p++],f==="\\"&&o!==Xe.ParamRegExp){i=o,o=Xe.EscapeNext;continue}switch(o){case Xe.Static:f==="/"?(g&&b(),a()):f===":"?(b(),o=Xe.Param):m();break;case Xe.EscapeNext:m(),o=i;break;case Xe.Param:f==="("?o=Xe.ParamRegExp:up.test(f)?m():(b(),o=Xe.Static,f!=="*"&&f!=="?"&&f!=="+"&&p--);break;case Xe.ParamRegExp:f===")"?y[y.length-1]=="\\"?y=y.slice(0,-1)+f:o=Xe.ParamRegExpEnd:y+=f;break;case Xe.ParamRegExpEnd:b(),o=Xe.Static,f!=="*"&&f!=="?"&&f!=="+"&&p--,y="";break;default:t("Unknown state");break}}return o===Xe.ParamRegExp&&t(`Unfinished custom RegExp for param "${g}"`),b(),a(),s}var Ba="[^/]+?",pp={sensitive:!1,strict:!1,start:!0,end:!0},rt=(function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e})(rt||{}),fp=/[.+*?^${}()[\]/\\]/g;function mp(e,t){let o=Oe({},pp,t),i=[],s=o.start?"^":"",r=[];for(let g of e){let y=g.length?[]:[rt.Root];o.strict&&!g.length&&(s+="/");for(let b=0;b<g.length;b++){let m=g[b],E=rt.Segment+(o.sensitive?rt.BonusCaseSensitive:0);if(m.type===gn.Static)b||(s+="/"),s+=m.value.replace(fp,"\\$&"),E+=rt.Static;else if(m.type===gn.Param){let{value:P,repeatable:k,optional:v,regexp:S}=m;r.push({name:P,repeatable:k,optional:v});let _=S||Ba;if(_!==Ba){E+=rt.BonusCustomRegExp;try{`${_}`}catch(L){throw new Error(`Invalid custom RegExp for param "${P}" (${_}): `+L.message)}}let M=k?`((?:${_})(?:/(?:${_}))*)`:`(${_})`;b||(M=v&&g.length<2?`(?:/${M})`:"/"+M),v&&(M+="?"),s+=M,E+=rt.Dynamic,v&&(E+=rt.BonusOptional),k&&(E+=rt.BonusRepeatable),_===".*"&&(E+=rt.BonusWildcard)}y.push(E)}i.push(y)}if(o.strict&&o.end){let g=i.length-1;i[g][i[g].length-1]+=rt.BonusStrict}o.strict||(s+="/?"),o.end?s+="$":o.strict&&!s.endsWith("/")&&(s+="(?:/|$)");let a=new RegExp(s,o.sensitive?"":"i");function p(g){let y=g.match(a),b={};if(!y)return null;for(let m=1;m<y.length;m++){let E=y[m]||"",P=r[m-1];b[P.name]=E&&P.repeatable?E.split("/"):E}return b}function f(g){let y="",b=!1;for(let m of e){(!b||!y.endsWith("/"))&&(y+="/"),b=!1;for(let E of m)if(E.type===gn.Static)y+=E.value;else if(E.type===gn.Param){let{value:P,repeatable:k,optional:v}=E,S=P in g?g[P]:"";if(Ct(S)&&!k)throw new Error(`Provided param "${P}" is an array but it is not repeatable (* or + modifiers)`);let _=Ct(S)?S.join("/"):S;if(!_)if(v)m.length<2&&(y.endsWith("/")?y=y.slice(0,-1):b=!0);else throw new Error(`Missing required param "${P}"`);y+=_}}return y||"/"}return{re:a,score:i,keys:r,parse:p,stringify:f}}function hp(e,t){let o=0;for(;o<e.length&&o<t.length;){let i=t[o]-e[o];if(i)return i;o++}return e.length<t.length?e.length===1&&e[0]===rt.Static+rt.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===rt.Static+rt.Segment?1:-1:0}function Za(e,t){let o=0,i=e.score,s=t.score;for(;o<i.length&&o<s.length;){let r=hp(i[o],s[o]);if(r)return r;o++}if(Math.abs(s.length-i.length)===1){if(za(i))return 1;if(za(s))return-1}return s.length-i.length}function za(e){let t=e[e.length-1];return e.length>0&&t[t.length-1]<0}var vp={strict:!1,end:!0,sensitive:!1};function gp(e,t,o){let i=mp(cp(e.path),o),s=Oe(i,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function yp(e,t){let o=[],i=new Map;t=si(vp,t);function s(b){return i.get(b)}function r(b,m,E){let P=!E,k=ja(b);k.aliasOf=E&&E.record;let v=si(t,b),S=[k];if("alias"in b){let L=typeof b.alias=="string"?[b.alias]:b.alias;for(let q of L)S.push(ja(Oe({},k,{components:E?E.record.components:k.components,path:q,aliasOf:E?E.record:k})))}let _,M;for(let L of S){let{path:q}=L;if(m&&q[0]!=="/"){let G=m.record.path,se=G[G.length-1]==="/"?"":"/";L.path=m.record.path+(q&&se+q)}if(_=gp(L,m,v),E?E.alias.push(_):(M=M||_,M!==_&&M.alias.push(_),P&&b.name&&!Ga(_)&&a(b.name)),xa(_)&&f(_),k.children){let G=k.children;for(let se=0;se<G.length;se++)r(G[se],_,E&&E.children[se])}E=E||_}return M?()=>{a(M)}:Pn}function a(b){if(di(b)){let m=i.get(b);m&&(i.delete(b),o.splice(o.indexOf(m),1),m.children.forEach(a),m.alias.forEach(a))}else{let m=o.indexOf(b);m>-1&&(o.splice(m,1),b.record.name&&i.delete(b.record.name),b.children.forEach(a),b.alias.forEach(a))}}function p(){return o}function f(b){let m=kp(b,o);o.splice(m,0,b),b.record.name&&!Ga(b)&&i.set(b.record.name,b)}function g(b,m){let E,P={},k,v;if("name"in b&&b.name){if(E=i.get(b.name),!E)throw hn(Be.MATCHER_NOT_FOUND,{location:b});v=E.record.name,P=Oe(Ha(m.params,E.keys.filter(M=>!M.optional).concat(E.parent?E.parent.keys.filter(M=>M.optional):[]).map(M=>M.name)),b.params&&Ha(b.params,E.keys.map(M=>M.name))),k=E.stringify(P)}else if(b.path!=null)k=b.path,E=o.find(M=>M.re.test(k)),E&&(P=E.parse(k),v=E.record.name);else{if(E=m.name?i.get(m.name):o.find(M=>M.re.test(m.path)),!E)throw hn(Be.MATCHER_NOT_FOUND,{location:b,currentLocation:m});v=E.record.name,P=Oe({},m.params,b.params),k=E.stringify(P)}let S=[],_=E;for(;_;)S.unshift(_.record),_=_.parent;return{name:v,path:k,params:P,matched:S,meta:wp(S)}}e.forEach(b=>r(b));function y(){o.length=0,i.clear()}return{addRoute:r,resolve:g,removeRoute:a,clearRoutes:y,getRoutes:p,getRecordMatcher:s}}function Ha(e,t){let o={};for(let i of t)i in e&&(o[i]=e[i]);return o}function ja(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:bp(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function bp(e){let t={},o=e.props||!1;if("component"in e)t.default=o;else for(let i in e.components)t[i]=typeof o=="object"?o[i]:o;return t}function Ga(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function wp(e){return e.reduce((t,o)=>Oe(t,o.meta),{})}function kp(e,t){let o=0,i=t.length;for(;o!==i;){let r=o+i>>1;Za(e,t[r])<0?i=r:o=r+1}let s=Cp(e);return s&&(i=t.lastIndexOf(s,i-1)),i}function Cp(e){let t=e;for(;t=t.parent;)if(xa(t)&&Za(e,t)===0)return t}function xa({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Wa(e){let t=ut(is),o=ut(rs),i=!1,s=null,r=nt(()=>{let y=Kt(e.to);return t.resolve(y)}),a=nt(()=>{let{matched:y}=r.value,{length:b}=y,m=y[b-1],E=o.matched;if(!m||!E.length)return-1;let P=E.findIndex(mn.bind(null,m));if(P>-1)return P;let k=Ka(y[b-2]);return b>1&&Ka(m)===k&&E[E.length-1].path!==k?E.findIndex(mn.bind(null,y[b-2])):P}),p=nt(()=>a.value>-1&&Dp(o.params,r.value.params)),f=nt(()=>a.value>-1&&a.value===o.matched.length-1&&ai(o.params,r.value.params));function g(y={}){if(Rp(y)){let b=t[Kt(e.replace)?"replace":"push"](Kt(e.to)).catch(Pn);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>b),b}return Promise.resolve()}return{route:r,href:nt(()=>r.value.href),isActive:p,isExactActive:f,navigate:g}}function Ep(e){return e.length===1?e[0]:e}var Sp=co({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:Wa,setup(e,{slots:t}){let o=Ue(Wa(e)),{options:i}=ut(is),s=nt(()=>({[Ya(e.activeClass,i.linkActiveClass,"router-link-active")]:o.isActive,[Ya(e.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:o.isExactActive}));return()=>{let r=t.default&&Ep(t.default(o));return e.custom?r:Se("a",{"aria-current":o.isExactActive?e.ariaCurrentValue:null,href:o.href,onClick:o.navigate,class:s.value},r)}}}),Np=Sp;function Rp(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){let t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Dp(e,t){for(let o in t){let i=t[o],s=e[o];if(typeof i=="string"){if(i!==s)return!1}else if(!Ct(s)||s.length!==i.length||i.some((r,a)=>r.valueOf()!==s[a].valueOf()))return!1}return!0}function Ka(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}var Ya=(e,t,o)=>e??t??o,Tp=co({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:o}){let i=ut(as),s=nt(()=>e.route||i.value),r=ut(ci,0),a=nt(()=>{let g=Kt(r),{matched:y}=s.value,b;for(;(b=y[g])&&!b.components;)g++;return g}),p=nt(()=>s.value.matched[a.value]);cn(ci,nt(()=>a.value+1)),cn($a,p),cn(as,s);let f=et();return Fe(()=>[f.value,p.value,e.name],([g,y,b],[m,E,P])=>{y&&(y.instances[b]=g,E&&E!==y&&g&&g===m&&(y.leaveGuards.size||(y.leaveGuards=E.leaveGuards),y.updateGuards.size||(y.updateGuards=E.updateGuards))),g&&y&&(!E||!mn(y,E)||!m)&&(y.enterCallbacks[b]||[]).forEach(k=>k(g))},{flush:"post"}),()=>{let g=s.value,y=e.name,b=p.value,m=b&&b.components[y];if(!m)return Ja(o.default,{Component:m,route:g});let E=b.props[y],P=E?E===!0?g.params:typeof E=="function"?E(g):E:null,v=Se(m,Oe({},P,t,{onVnodeUnmounted:S=>{S.component.isUnmounted&&(b.instances[y]=null)},ref:f}));return Ja(o.default,{Component:v,route:g})||v}}});function Ja(e,t){if(!e)return null;let o=e(t);return o.length===1?o[0]:o}var pi=Tp;function el(e){let t=yp(e.routes,e),o=e.parseQuery||qa,i=e.stringifyQuery||ui,s=e.history,r=In(),a=In(),p=In(),f=Vo(Zt),g=Zt;vn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");let y=ts.bind(null,U=>""+U),b=ts.bind(null,Da),m=ts.bind(null,On);function E(U,Q){let H,re;return di(U)?(H=t.getRecordMatcher(U),re=Q):re=U,t.addRoute(re,H)}function P(U){let Q=t.getRecordMatcher(U);Q&&t.removeRoute(Q)}function k(){return t.getRoutes().map(U=>U.record)}function v(U){return!!t.getRecordMatcher(U)}function S(U,Q){if(Q=Oe({},Q||f.value),typeof U=="string"){let N=ns(o,U,Q.path),V=t.resolve({path:N.path},Q),j=s.createHref(N.fullPath);return Oe(N,V,{params:m(V.params),hash:On(N.hash),redirectedFrom:void 0,href:j})}let H;if(U.path!=null)H=Oe({},U,{path:ns(o,U.path,Q.path).path});else{let N=Oe({},U.params);for(let V in N)N[V]==null&&delete N[V];H=Oe({},U,{params:b(N)}),Q.params=b(Q.params)}let re=t.resolve(H,Q),de=U.hash||"";re.params=y(m(re.params));let Ne=Ta(i,Oe({},U,{hash:Ra(de),path:re.path})),C=s.createHref(Ne);return Oe({fullPath:Ne,hash:de,query:i===ui?La(U.query):U.query||{}},re,{redirectedFrom:void 0,href:C})}function _(U){return typeof U=="string"?ns(o,U,f.value.path):Oe({},U)}function M(U,Q){if(g!==U)return hn(Be.NAVIGATION_CANCELLED,{from:Q,to:U})}function L(U){return se(U)}function q(U){return L(Oe(_(U),{replace:!0}))}function G(U,Q){let H=U.matched[U.matched.length-1];if(H&&H.redirect){let{redirect:re}=H,de=typeof re=="function"?re(U,Q):re;return typeof de=="string"&&(de=de.includes("?")||de.includes("#")?de=_(de):{path:de},de.params={}),Oe({query:U.query,hash:U.hash,params:de.path!=null?{}:U.params},de)}}function se(U,Q){let H=g=S(U),re=f.value,de=U.state,Ne=U.force,C=U.replace===!0,N=G(H,re);if(N)return se(Oe(_(N),{state:typeof N=="object"?Oe({},de,N.state):de,force:Ne,replace:C}),Q||H);let V=H;V.redirectedFrom=Q;let j;return!Ne&&_a(i,re,H)&&(j=hn(Be.NAVIGATION_DUPLICATED,{to:V,from:re}),He(re,re,!0,!1)),(j?Promise.resolve(j):K(V,re)).catch(w=>Ht(w)?Ht(w,Be.NAVIGATION_GUARD_REDIRECT)?w:ze(w):be(w,V,re)).then(w=>{if(w){if(Ht(w,Be.NAVIGATION_GUARD_REDIRECT))return se(Oe({replace:C},_(w.to),{state:typeof w.to=="object"?Oe({},de,w.to.state):de,force:Ne}),Q||V)}else w=ve(V,re,!0,C,de);return te(V,re,w),w})}function ee(U,Q){let H=M(U,Q);return H?Promise.reject(H):Promise.resolve()}function R(U){let Q=X.values().next().value;return Q&&typeof Q.runWithContext=="function"?Q.runWithContext(U):U()}function K(U,Q){let H,[re,de,Ne]=Ua(U,Q);H=ls(re.reverse(),"beforeRouteLeave",U,Q);for(let N of re)N.leaveGuards.forEach(V=>{H.push(Xt(V,U,Q))});let C=ee.bind(null,U,Q);return H.push(C),ne(H).then(()=>{H=[];for(let N of r.list())H.push(Xt(N,U,Q));return H.push(C),ne(H)}).then(()=>{H=ls(de,"beforeRouteUpdate",U,Q);for(let N of de)N.updateGuards.forEach(V=>{H.push(Xt(V,U,Q))});return H.push(C),ne(H)}).then(()=>{H=[];for(let N of Ne)if(N.beforeEnter)if(Ct(N.beforeEnter))for(let V of N.beforeEnter)H.push(Xt(V,U,Q));else H.push(Xt(N.beforeEnter,U,Q));return H.push(C),ne(H)}).then(()=>(U.matched.forEach(N=>N.enterCallbacks={}),H=ls(Ne,"beforeRouteEnter",U,Q,R),H.push(C),ne(H))).then(()=>{H=[];for(let N of a.list())H.push(Xt(N,U,Q));return H.push(C),ne(H)}).catch(N=>Ht(N,Be.NAVIGATION_CANCELLED)?N:Promise.reject(N))}function te(U,Q,H){p.list().forEach(re=>R(()=>re(U,Q,H)))}function ve(U,Q,H,re,de){let Ne=M(U,Q);if(Ne)return Ne;let C=Q===Zt,N=vn?history.state:{};H&&(re||C?s.replace(U.fullPath,Oe({scroll:C&&N&&N.scroll},de)):s.push(U.fullPath,de)),f.value=U,He(U,Q,H,C),ze()}let x;function ue(){x||(x=s.listen((U,Q,H)=>{if(!J.listening)return;let re=S(U),de=G(re,J.currentRoute.value);if(de){se(Oe(de,{replace:!0,force:!0}),re).catch(Pn);return}g=re;let Ne=f.value;vn&&Ia(li(Ne.fullPath,H.delta),go()),K(re,Ne).catch(C=>Ht(C,Be.NAVIGATION_ABORTED|Be.NAVIGATION_CANCELLED)?C:Ht(C,Be.NAVIGATION_GUARD_REDIRECT)?(se(Oe(_(C.to),{force:!0}),re).then(N=>{Ht(N,Be.NAVIGATION_ABORTED|Be.NAVIGATION_DUPLICATED)&&!H.delta&&H.type===os.pop&&s.go(-1,!1)}).catch(Pn),Promise.reject()):(H.delta&&s.go(-H.delta,!1),be(C,re,Ne))).then(C=>{C=C||ve(re,Ne,!1),C&&(H.delta&&!Ht(C,Be.NAVIGATION_CANCELLED)?s.go(-H.delta,!1):H.type===os.pop&&Ht(C,Be.NAVIGATION_ABORTED|Be.NAVIGATION_DUPLICATED)&&s.go(-1,!1)),te(re,Ne,C)}).catch(Pn)}))}let he=In(),Ee=In(),ye;function be(U,Q,H){ze(U);let re=Ee.list();return re.length?re.forEach(de=>de(U,Q,H)):console.error(U),Promise.reject(U)}function Le(){return ye&&f.value!==Zt?Promise.resolve():new Promise((U,Q)=>{he.add([U,Q])})}function ze(U){return ye||(ye=!U,ue(),he.list().forEach(([Q,H])=>U?H(U):Q()),he.reset()),U}function He(U,Q,H,re){let{scrollBehavior:de}=e;if(!vn||!de)return Promise.resolve();let Ne=!H&&Ma(li(U.fullPath,0))||(re||!H)&&history.state&&history.state.scroll||null;return Ge().then(()=>de(U,Q,Ne)).then(C=>C&&Pa(C)).catch(C=>be(C,U,Q))}let Me=U=>s.go(U),F,X=new Set,J={currentRoute:f,listening:!0,addRoute:E,removeRoute:P,clearRoutes:t.clearRoutes,hasRoute:v,getRoutes:k,resolve:S,options:e,push:L,replace:q,go:Me,back:()=>Me(-1),forward:()=>Me(1),beforeEach:r.add,beforeResolve:a.add,afterEach:p.add,onError:Ee.add,isReady:Le,install(U){U.component("RouterLink",Np),U.component("RouterView",pi),U.config.globalProperties.$router=J,Object.defineProperty(U.config.globalProperties,"$route",{enumerable:!0,get:()=>Kt(f)}),vn&&!F&&f.value===Zt&&(F=!0,L(s.location).catch(re=>{}));let Q={};for(let re in Zt)Object.defineProperty(Q,re,{get:()=>f.value[re],enumerable:!0});U.provide(is,J),U.provide(rs,Yn(Q)),U.provide(as,f);let H=U.unmount;X.add(U),U.unmount=function(){X.delete(U),X.size<1&&(g=Zt,x&&x(),x=null,f.value=Zt,F=!1,ye=!1),H()}}};function ne(U){return U.reduce((Q,H)=>Q.then(()=>R(H)),Promise.resolve())}return J}function tl(e){return ut(rs)}var ds=new WeakMap;function fi(e){if(!ds.has(e)){let t=e.get("/api/billing/").finally(()=>ds.delete(e));ds.set(e,t)}return ds.get(e)}function us(e,t,o=()=>{},i={}){let s=new URLSearchParams(window.location.search).get("billing");e.billing=null,e.billingLoading=!0,e.billingBusy=!1,e.billingError="",e.billingNotice="",e.billingPending=s==="success"||s==="portal",e.billingRepository="";let r={billing_invalid_draft:"This draft could not be saved. Your form is unchanged. Try again.",billing_draft_not_found:"This checkout draft is unavailable or expired. Your local form is unchanged.",billing_recovery_required:"Your earlier payment needs verification. Please contact support before paying again.",billing_checkout_disabled:"New purchases are temporarily unavailable. You can still manage existing billing.",billing_unavailable:"Payments are not available yet. Please try again later.",billing_subscription_exists:"You already have a subscription. Use Manage billing to change or cancel it.",billing_checkout_in_progress:"You have another checkout open. Complete it or wait for it to expire before choosing a different plan.",billing_busy:"Another billing request is processing. Please try again shortly.",billing_already_paid:"This repository or conference already has an active paid package.",billing_invalid_review_window:"Conference packages cover up to 180 days. Check the review dates.",billing_invalid_conference:"Only a conference owner can pay for a conference awaiting payment.",repo_not_found:"Enter the ID of an existing repository that you own."};e.billingPrice=f=>f.amount==null?"Price shown at checkout":new Intl.NumberFormat(void 0,{style:"currency",currency:f.currency}).format(f.amount/100)+(f.interval?` / ${f.intervalCount>1?f.intervalCount+" ":""}${f.interval}`:" once"),e.billingBytes=f=>{let g=Number(f)||0;if(g<1024)return`${g} B`;let y=Math.min(4,Math.floor(Math.log2(g)/10));return`${new Intl.NumberFormat(void 0,{maximumFractionDigits:1}).format(g/1024**y)} ${["B","KiB","MiB","GiB","TiB"][y]}`},e.billingDate=f=>f?new Date(f).toLocaleDateString():"",e.loadBilling=()=>(e.billingError="",e.billingLoading=!0,fi(t).then(f=>{e.billing=f.data,e.emit?.("billing:updated",f.data)}).catch(()=>{e.billingError="Billing could not be loaded. Try again."}).finally(()=>{e.billingLoading=!1}));async function a(f,g,y=!0){if(!(e.billingBusy||!e.billing?.csrf)){e.billingBusy=!0,e.billingError="";try{let b=await t.post(`/api/billing/${f}`,g,{headers:{"x-csrf-token":e.billing.csrf}});if(y)window.location.assign(b.data.url);else return await e.loadBilling(),await o(),e.billingPending=!!b.data.pending,e.emit?.("billing:pending",e.billingPending),e.billingNotice=b.data.pending?"Your payment is still pending. Please do not pay again.":i.confirmedMessage||"Billing status refreshed. Your confirmed access appears below.",b.data}catch(b){e.billingError=r[b.data?.error]||"The billing request failed. Please try again."}finally{e.billingBusy=!1}}}e.checkout=(f,g="",y={})=>a("checkout",{planId:f,target:g,...y}),e.billingPortal=()=>a("portal",{}),e.refreshBilling=()=>a("refresh",{},!1);async function p(){for(let f=0;f<5;f++){let g=await e.refreshBilling();if(!g||!g.pending)return;await new Promise(y=>window.setTimeout(y,3e3))}e.billingNotice="Confirmation is taking longer than usual. You can refresh payment status later. Please do not pay again."}e.loadBilling().then(()=>{s==="success"||s==="portal"?(e.billingNotice="Checking your payment. Paid access starts after confirmation.",p()):s==="cancelled"&&(e.billingNotice="Checkout was closed. No new paid access has been activated.")})}function nl(e,t){return t?.split(".").reduce((o,i)=>o?.[i],e)}function mi(e=null,t=new Map){let o=Ue({}),i=[],s=!1,r=new Proxy(o,{get(a,p){return typeof p=="string"&&p.startsWith("__v_")||Reflect.has(a,p)?Reflect.get(a,p):e?.[p]}});return Object.defineProperty(o,"parent",{value:e,configurable:!0}),Object.defineProperty(o,"viewState",{get:()=>r}),r.watch=(a,p,f=!1,g=!0)=>{let y=typeof a=="function"?()=>a(r):()=>nl(r,a),b=Fe(y,p,{deep:f,flush:"post"});return i.push(b),g&&Ge(()=>{s||p(y(),y())}),b},r.watchGroup=(a,p,f=!0)=>r.watch(()=>a.map(g=>nl(r,g)),p,!0,f),r.on=(a,p)=>{if(a==="dispose")return i.push(p),()=>{};t.has(a)||t.set(a,new Set),t.get(a).add(p);let f=()=>t.get(a)?.delete(p);return i.push(f),f},r.emit=(a,...p)=>{for(let f of[...t.get(a)||[]])f({},...p)},r.dispose=()=>{s=!0,i.splice(0).reverse().forEach(a=>a())},Wn(r.dispose),r}function pt(){let e=new Set,t=new Set,o=!1,i=(r,a=0)=>{if(o)return;let p=setTimeout(()=>{e.delete(p),r()},a);return e.add(p),p};i.cancel=r=>{clearTimeout(r),e.delete(r)};let s=(r,a)=>{if(o)return;let p=setInterval(r,a);return t.add(p),p};return s.cancel=r=>{clearInterval(r),t.delete(r)},Wn(()=>{o=!0,e.forEach(clearTimeout),t.forEach(clearInterval)}),{timeout:i,interval:s}}function xt(){let e=new Set;return Wn(()=>{e.forEach(t=>t()),e.clear()}),(t,o,i,s)=>{t.addEventListener(o,i,s);let r=()=>{t.removeEventListener(o,i,s),e.delete(r)};return e.add(r),r}}function hi(e,t,o){let i,s=!1,r="form-draft:"+o,a=()=>Object.fromEntries(t.map(m=>[m,e[m]])),p=()=>JSON.stringify(a()),f=m=>{for(let E of t)Object.prototype.hasOwnProperty.call(m,E)&&(e[E]=m[E]);e.options?.expirationDate&&(e.options.expirationDate=new Date(e.options.expirationDate))},g=()=>{try{window.sessionStorage.removeItem(r)}catch{}},y=(m=!1)=>{if(i!==void 0){if(m&&document.querySelectorAll("input, select, textarea").forEach(E=>{E._field?.binding.state===e&&E._field.timer&&E._field.commit()}),e.unsavedChanges=p()!==i,e.draftSaved=!1,!e.unsavedChanges){g();return}try{window.sessionStorage.setItem(r,JSON.stringify({account:e.user?.username||null,savedAt:Date.now(),values:a()})),e.draftSaved=!0}catch{}}},b=()=>y(!0);return e.on("routeLeave",b),window.addEventListener("beforeunload",b),e.on("dispose",()=>window.removeEventListener("beforeunload",b)),{restore(){i=p();let m;try{m=JSON.parse(window.sessionStorage.getItem(r)||"null")}catch{}let E=m&&m.account===(e.user?.username||null)&&Date.now()-m.savedAt<30*6e4&&m.values;return E&&(f(m.values),e.draftRestored=!0),s||(s=!0,e.watch(()=>a(),()=>y(),!0)),e.unsavedChanges=p()!==i,!!E},checkpoint(){return document.querySelectorAll("input, select, textarea").forEach(m=>{m._field?.binding.state===e&&m._field.timer&&m._field.commit()}),JSON.parse(p())},accept(m){i=JSON.stringify(m),e.draftRestored=!1,y()},discard(){document.querySelectorAll("input, select, textarea").forEach(m=>{m._field?.binding.state!==e||!m._field.timer||(clearTimeout(m._field.timer),m._field.timer=null,m.value=m._field.binding.value??"")}),i!==void 0&&f(JSON.parse(i)),e.draftRestored=!1,y()},clear(){i=p(),e.unsavedChanges=!1,e.draftRestored=!1,e.draftSaved=!1,g()}}}var yo={VIEWER_ERRORS:{title:"Content could not be loaded",access_title:"GitHub access needs attention",reader_help:"Reading this repository? You do not need to sign in. Try again after the owner restores access, or let them know this anonymous link is unavailable.",owner_help:"Own this repository? If your GitHub account was suspended or recently recovered, sign in to Anonymous GitHub again and check the GitHub connection and repository permissions in your dashboard. Then retry this page. Keep the existing anonymous URL; do not delete the repository to restore access.",retry:"Try again",dashboard:"Open owner dashboard"},ERRORS:{cache_busy:"Downloads are busy. Please try again shortly.",invalid_sort:"The selected sort order is invalid.",invalid_cursor:"This project page is no longer valid. Reload the list.",repository_changed:"The repository changed while processing. Please retry.",repository_job_cancelled:"The repository changed or was removed while processing.",storage_delete_failed:"Unable to remove cached files. Please try again later.",unknown_error:"We could not load this content. Try again. If it still fails, contact support with the anonymous URL and the time of the error.",unreachable:"The service could not complete this request. Wait a moment and try again.",request_error:"The connection was interrupted. Check your internet connection and try again.",not_found:"The requested resource could not be found.",not_connected:"You must be logged in to perform this action.",not_authorized:"You do not have permission to perform this action.",unable_to_connect_user:"Unable to connect your account. Please try again later.",user_not_found:"The requested user could not be found.",user_banned:"Your account has been banned. Contact the admin for more information.",repo_access_limited:"GitHub blocked access because the repository's organization restricts third-party OAuth apps. Ask an org owner to approve Anonymous GitHub under Settings \u2192 Third-party Access \u2192 OAuth app policy, or anonymize a personal fork instead.",repo_saml_enforcement:"The repository's organization enforces SAML single sign-on. Authorize your token for that organization (GitHub \u2192 Settings \u2192 Applications, or re-run the org's SSO sign-in), then retry. Alternatively, anonymize a personal fork.",repo_not_found:"Anonymous GitHub cannot access the source repository on GitHub. It may be private, unavailable, or require the owner to reconnect GitHub.",repo_empty:"The selected branch has no commits on GitHub. Push at least one commit, or pick a different branch, then retry.",repo_not_accessible:"Anonymous GitHub cannot access this repository. Verify the repository exists and that Anonymous GitHub has been authorized for the owning organization.",repository_archived:"This repository has been archived and its files are no longer available.",repository_expired:"The repository is expired.",invalid_status:"This action cannot be performed while the resource is in its current state.",repository_not_ready:"Anonymous GitHub is still processing the repository, it can take several minutes.",repository_not_accessible:"This repository is currently not accessible.",repo_is_updating:"Anonymous GitHub is still processing the repository, it can take several minutes.",invalid_repo:"The provided repository is not valid.",invalid_source_repository:"The repository source name is invalid; expected the form 'owner/name'.",repoId_not_defined:"A repository ID must be provided.",repoUrl_not_defined:"The repository URL needs to be defined.",source_not_provided:"A repository source must be provided.",github_rate_limit_exceeded:"GitHub temporarily blocked the request because we hit its API rate limit. Wait a few minutes and try again. If the problem persists and you contact GitHub Support, include the request ID and timestamp shown in GitHub's response (the 'X-GitHub-Request-Id' header).",rate_limited:"GitHub API rate limit reached. The repository will be available shortly \u2014 please wait a moment and refresh.",repoId_already_used:"The repository ID is already used.",invalid_repoId:"The format of the repository ID is invalid.",unsupported_source:"The repository source type is not supported.",branch_not_specified:"The branch is not specified.",branch_not_found:"The branch of the repository cannot be found.",commit_not_specified:"A commit must be specified.",commit_not_found:"The configured commit no longer exists in the source repository. It may have been force-pushed, rebased, or removed.",repo_renamed:"The source repository appears to have been renamed or moved on GitHub. Please refresh and try again \u2014 the cached name has been updated.",invalid_commit_format:"The commit hash format is invalid. It must be a hexadecimal string.",pull_request_not_found:"The requested pull request could not be found.",pull_request_expired:"This pull request has expired and is no longer available.",pull_request_not_ready:"This pull request is still being prepared. Please try again shortly.",pull_request_not_available:"This pull request is currently not available.",invalid_pullRequestId:"The pull request ID is invalid.",pullRequestId_already_used:"This pull request ID is already in use. Please choose a different one.",repository_not_specified:"A repository must be specified for this pull request.",pullRequestId_not_specified:"A pull request ID must be specified.",pullRequestId_is_not_a_number:"The source pull request ID must be a number.",options_not_provided:"Anonymization options are mandatory.",terms_not_specified:"Anonymization terms must be specified.",invalid_terms_format:"Terms are in an invalid format.",missing_content:"No content was provided to the anonymization preview.",unable_to_anonymize:"An error happened during the anonymization process. Please try later or report the issue.",non_supported_mode:"The selected anonymization mode is invalid, only download and stream are supported.",invalid_path:"The provided path is invalid or missing.",path_not_specified:"A file path must be specified.",path_not_defined:"The file path has not been resolved yet.",invalid_file_path:"The requested file path is not valid.",invalid_request:"The request is missing required fields or is malformed.",invalid_project_name:"Use a project name of up to 100 characters without line breaks or control characters.",no_file_selected:"Please select a file.",submodule_not_available:"This public submodule file is no longer available at its recorded commit.",file_not_found:"The requested file is not found.",file_not_accessible:"The requested file is not accessible.",file_not_supported:"The file type is not supported. Anonymous GitHub cannot handle it.",repository_tree_too_large:"The repository has too many pending folders to process safely. Share a smaller repository.",file_listing_too_large:"This folder has too many entries to list. Open a more specific folder or use file search.",file_too_big:"The file size exceeds the limit of Anonymous GitHub.",is_folder:"The path points to a folder.",folder_not_supported:"The path points to a folder. Please select a file.",unable_to_write_file:"Unable to write file on disk.",download_not_enabled:"Repository downloads are not enabled on this server.",unable_to_download:"The repository could not be downloaded. Please try again later.",s3_config_not_provided:"Object storage has not been configured on this server.",stats_unsupported:"Statistics are only supported in download mode.",branches_not_found:"The requested branch is not found.",readme_not_available:"No README for the repository is found.",page_not_supported_on_different_branch:"GitHub Pages is served from a different branch than the one selected. Pick the branch that GitHub Pages is configured to use.",page_not_activated:"GitHub Pages is not enabled on this repository. Enable it in the repository settings on GitHub before anonymizing.",is_removed:"This resource has been removed and is no longer available.",conf_name_missing:"A conference name is required.",conf_id_missing:"A conference ID is required.",conf_id_used:"This conference ID is already in use. Please choose a different one.",conf_start_date_missing:"A start date is required for the conference.",conf_end_date_missing:"An end date is required for the conference.",conf_start_date_invalid:"The start date must be before the end date.",conf_end_date_invalid:"The end date must be in the future.",invalid_plan:"The selected plan is not valid.",conference_not_found:"The requested conference could not be found.",conf_not_found:"The requested conference could not be found.",conf_not_activated:"The conference is not activated.",billing_missing:"Billing information is required for this plan.",billing_name_missing:"A billing name is required.",billing_email_missing:"A billing email is required.",billing_address_missing:"A billing address is required.",billing_city_missing:"A billing city is required.",billing_zip_missing:"A billing ZIP/postal code is required.",billing_country_missing:"A billing country is required.",queue_not_found:"The specified queue could not be found.",job_not_found:"The specified job could not be found in the queue.",error_retrying_job:"An error occurred while retrying the job.",gist_expired:"The gist is expired.",gist_not_ready:"Anonymous GitHub is still processing the gist, it can take several minutes.",gist_not_found:"The requested gist could not be found.",gist_not_available:"This gist is currently not available.",invalid_gistId:"The format of the gist ID is invalid.",gistId_not_specified:"A gist ID must be provided.",gistId_already_used:"The gist ID is already used.",missing_token:"An authentication token is required.",token_attempts_rate_limited:"Too many token authentication attempts. Wait before trying again.",refresh_rate_limited:"A refresh was already requested for this repository. Wait one minute before trying again.",session_required:"Sign in through your browser to manage maintenance tokens.",invalid_token_options:"Provide a token name, 1 to 20 repository IDs, and an expiration of 1 to 90 days.",token_limit_reached:"You have reached the limit of 50 API tokens. Revoke an unused token before creating another.",invalid_token_id:"The token ID is invalid.",invalid_settings:"Provide supported settings with boolean values, or a list of anonymization terms.",token_scope_forbidden:"This token does not allow this operation or repository.",authentication_unavailable:"Authentication is temporarily unavailable. Try again later.",invalid_token:"The provided authentication token is invalid.",login_failed:"Login failed. Please try again.",server_error:"An unexpected server error occurred. Please try again later.",username_not_defined:"A username must be provided.",github_user_not_found:"The specified GitHub user could not be found.",cannot_coauthor_self:"You cannot add yourself as a co-author.",storage_write_size_mismatch:"The downloaded file was smaller than expected. The upstream source may have returned an incomplete response \u2014 please try again.",storage_read_error:"An error occurred while reading the file from storage \u2014 please try again.",upstream_error:"A temporary error occurred while fetching from GitHub \u2014 please try again.",token_expired:"The repository owner needs to renew their GitHub connection before this content can be loaded.",job_is_active:"This job is currently running \u2014 wait for it to finish or remove it first.",github_app_access_required:"Allow this repository on GitHub using the read-only access button, then retry. Organization access may require administrator approval.",github_app_reconnect_required:"Reconnect your GitHub App account to restore read-only access.",github_app_disabled:"New GitHub App connections are currently unavailable.",github_oauth_required:"Connect legacy GitHub OAuth to use this feature.",github_identity_mismatch:"Use the same GitHub account that you are signed in with here.",github_app_permissions_invalid:"The GitHub App must be configured with read-only permissions.",github_unavailable:"GitHub is temporarily unavailable. Please retry.",connection_changed:"The repository connection changed. Reload and try again.",repository_busy:"Wait for the repository operation to finish before changing its connection.",invalid_connection:"Select a supported GitHub connection.",github_oauth_disabled:"Legacy OAuth sign-in is currently disabled.",invalid_auth_state:"The authorization session expired. Please start again from Anonymous GitHub.",invalid_webhook_signature:"The webhook signature is invalid.",webhook_processing_failed:"Webhook processing failed. Retry the delivery.",github_app_authorization_cancelled:"GitHub authorization was cancelled.",github_account_link_required:"Verify your existing account with your previous GitHub connection. Future sign-ins will use the GitHub App.",github_app_refresh_busy:"GitHub credentials are being renewed. Please retry shortly.",github_grant_revocation_failed:"Unable to revoke the GitHub grant. Please retry.",another_login_required:"Connect and verify another sign-in method before disconnecting OAuth.",oauth_resources_remaining:"Some resources still require OAuth. Migrate or remove them before disconnecting.",invalid_github_path:"The GitHub repository path is invalid.",repository_tree_incomplete:"The repository file tree is incomplete. Reduce its size and refresh before downloading.",billing_environment_mismatch:"The payment event does not match this billing environment.",billing_unavailable:"Payments are not available. Please try again later.",invalid_billing_signature:"The payment notification could not be verified.",billing_webhook_failed:"The payment notification could not be processed.",billing_customer_not_found:"No billing account was found.",subscription_required_for_never_expiration:"Never-expiring repositories require the owner\u2019s active monthly or annual author subscription. Choose a dated expiration or upgrade in Plans and billing.",invalid_billing_expiration:"Choose an expiration date within the next year, or select Never expire with an author subscription.",pending_payment:"Awaiting payment"},WARNINGS:{page_not_enabled_on_repo:"GitHub Pages is not enabled on this repository. Enable it in the repository's Settings \u2192 Pages on GitHub, then refresh.",page_branch_mismatch:"GitHub Pages on this repository is served from the '{{pageBranch}}' branch, but you selected '{{selectedBranch}}'. Switch the branch above to '{{pageBranch}}' to anonymize the Pages site.",folder_truncated:"This folder has more than 10,000 entries; only a partial listing is shown.",repo_truncated:"Some folders in this repository have too many files to be fully listed. Affected folders are marked with a warning icon.",submodules_not_included:"Some submodule contents could not be included. Only direct public GitHub submodules within the size limits are supported. Private, external, nested, or unavailable submodules appear as empty folders."},VIEWER_LOADING:{loading:"Loading file\u2026",receiving:"Receiving file\u2026",slow:"Still loading. You can select another file while you wait."}};typeof window<"u"&&window.document?.addEventListener&&window.document.addEventListener("error",e=>{let t=e.target;if(!t||t.tagName!=="IMG"||t.dataset.failed||!t.closest?.(".markdown-body, .anonymize-preview-body"))return;t.dataset.failed="1";let o=window.document.createElement("span");o.className="img-unavailable",o.textContent=t.alt?"Image unavailable: "+t.alt:"Image unavailable",t.replaceWith(o)},!0);function vi(e){let t=e?.data;if(typeof t=="string")try{t=JSON.parse(t)}catch{t=null}return typeof t?.error=="string"&&Object.prototype.hasOwnProperty.call(yo.ERRORS,t.error)?t.error:e?.status===-1||e?.status===0?"request_error":[502,503,504].includes(e?.status)?"unreachable":"unknown_error"}var cs="XXXX",Ap=e=>{cs=e||"XXXX"},Op=(e=cs)=>{if(!e)return null;let t=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return new RegExp(t+"(?:-\\d+)?","g")},ol=(e,t=cs)=>{let o=Op(t);if(!o||!e||!e.textContent.includes(t))return;let i=e.ownerDocument,s=i.createTreeWalker(e,NodeFilter.SHOW_TEXT),r=[];for(;s.nextNode();)r.push(s.currentNode);for(let a of r){let p=a.nodeValue,f=a.parentElement;if(!p.includes(t)||!f||f.closest("script, style, mark.redaction, .mermaid"))continue;let g=f.closest('code[class*="language-"]');if(g&&!g.contains(e))continue;let y=i.createDocumentFragment(),b=0;for(let m of p.matchAll(o)){y.append(p.slice(b,m.index));let E=i.createElement("mark");E.className="redaction",E.title="Redacted by Anonymous GitHub",E.textContent=m[0],y.append(E),b=m.index+m[0].length}y.append(p.slice(b)),a.replaceWith(y)}},bo=/\bXXXX-\d+\b/g,sl=function(e){if(!e||e.indexOf("XXXX-")===-1||typeof window.DOMParser!="function")return e;let t=new window.DOMParser().parseFromString("<div>"+e+"</div>","text/html"),o=t.createTreeWalker(t.body,4),i=[];for(;o.nextNode();)bo.lastIndex=0,!o.currentNode.parentElement?.closest("pre code")&&bo.test(o.currentNode.nodeValue)&&i.push(o.currentNode);for(let s of i){bo.lastIndex=0;let r=t.createDocumentFragment(),a=0,p,f=s.nodeValue;for(;p=bo.exec(f);){r.appendChild(t.createTextNode(f.slice(a,p.index)));let g=t.createElement("mark");g.className="redact-chip",g.setAttribute("title","Redacted term "+p[0].slice(5)+" \u2014 the same term everywhere in this snapshot");let y=p[0].slice(5);g.textContent="";let b=t.createElement("i");b.textContent=y,g.appendChild(b),g.dataset.term=p[0],g.setAttribute("aria-label","Redacted term "+y);let m=/^[.,;:!?)\]]+/.exec(f.slice(p.index+p[0].length));if(m){let E=t.createElement("span");E.className="redact-glue",E.appendChild(g),E.appendChild(t.createTextNode(m[0])),r.appendChild(E),a=p.index+p[0].length+m[0].length}else r.appendChild(g),a=p.index+p[0].length}r.appendChild(t.createTextNode(f.slice(a))),s.parentNode.replaceChild(r,s)}return t.body.firstChild.innerHTML},il=()=>{window.Prism?.hooks&&!window.Prism.redactionHook&&(window.Prism.hooks.add("complete",e=>{ol(e.element),e.element.querySelectorAll?.("mark.redaction").forEach(t=>{let o=/^XXXX-(\d+)$/.exec(t.textContent);if(!o)return;t.className="redact-chip",t.setAttribute("title","Redacted term "+o[1]+" \u2014 the same term everywhere in this snapshot"),t.setAttribute("aria-label","Redacted term "+o[1]),t.dataset.term=o[0],t.style.setProperty("--slot-ch",o[0].length+"ch"),t.textContent="";let i=t.ownerDocument.createElement("i");i.textContent=o[1],t.appendChild(i)})}),window.Prism.redactionHook=!0)},rl=(e,t=cs)=>{if(!e||!t||!e.includes(t))return e;let o=new DOMParser().parseFromString("<body>"+e+"</body>","text/html");return ol(o.body,t),o.body.innerHTML};async function al(e){if(window.navigator.clipboard?.writeText){await window.navigator.clipboard.writeText(e);return}let t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="fixed",t.style.opacity="0";let o=document.activeElement;document.body.appendChild(t);try{if(t.select(),!document.execCommand?.("copy"))throw Error("Copy unavailable")}finally{t.remove(),o?.focus()}}function Pp(e){if(!["ArrowLeft","ArrowRight","Home","End"].includes(e.key))return;let t=[...e.currentTarget.closest('[role="tablist"]').querySelectorAll('[role="tab"]')],o=t.indexOf(e.currentTarget),i=e.key==="Home"?0:e.key==="End"?t.length-1:(o+(e.key==="ArrowRight"?1:-1)+t.length)%t.length;e.preventDefault(),t[i]?.focus(),t[i]?.click()}var ll=function(e,t,o,i){e.previewTabKeydown=Pp,e.headerCanUpgrade=!1,e.headerShowSupport=!1,e.headerBillingPending=["success","portal"].includes(new URLSearchParams(window.location.search).get("billing"));let s=b=>{e.headerShowSupport=!(b?.grants||[]).some(E=>["active","paid","past_due"].includes(E.status)&&new Date(E.until).getTime()>Date.now());let m=(b?.grants||[]).some(E=>["author_monthly","author_annual"].includes(E.planId)&&["active","paid","past_due"].includes(E.status)&&new Date(E.until).getTime()>Date.now());e.headerCanUpgrade=!!b?.enabled&&b.checkoutEnabled!==!1&&!m&&(b.plans||[]).some(E=>["author_monthly","author_annual"].includes(E.id))};e.on("billing:updated",(b,m)=>s(m)),e.on("billing:pending",(b,m)=>{e.headerBillingPending=m}),e.openHeaderUpgrade=()=>{o.path()==="/profile"?e.emit("settings:upgrade"):o.url("/profile?upgrade=1")},e.title="Main",e.user={status:"connection"},e.site_options,e.toasts=[],e.removeToast=function(b){let m=e.toasts.indexOf(b);m!==-1&&e.toasts.splice(m,1)},e.addToast=function(b){return e.toasts.push(b),i(function(){e.removeToast(b)},8e3),b};let r=/^\/(r|repository|pr|gist)\//;e.path=o.url(),e.paths=o.path().substring(1).split("/"),e.isReviewerRoute=r.test(o.path()),e.darkMode=function(b){localStorage.setItem("darkMode",b),e.isDarkMode=b;let m="/css/prism-okaidia.css",E="/css/prism.css";if(b){$("body").addClass("dark-mode");let P=document.createElement("link");P.href=m,P.rel="stylesheet",document.head.append(P),$(`link[href='${E}']`).remove()}else{$("body").removeClass("dark-mode");let P=document.createElement("link");P.href=E,P.rel="stylesheet",document.head.append(P),$(`link[href='${m}']`).remove()}e.emit("dark-mode",b)},e.darkMode(localStorage.getItem("darkMode")=="true"),e.emailPromptOpen=!1,e.emailPromptAddress="",e.emailPromptBusy=!1,e.emailPromptError="";let a;e.respondToEmailPrompt=async b=>{if(!e.emailPromptBusy){e.emailPromptBusy=!0,e.emailPromptError="";try{let m=await t.post("/github/connections/email",{action:b,email:e.emailPromptAddress},{headers:{"X-CSRF-Token":e.user.emailPromptCSRF}});b==="save"&&(e.user.notificationEmail=m.data.notificationEmail),e.emailPromptOpen=!1,e.user.showEmailPrompt=!1,a?.focus()}catch(m){e.emailPromptError=m.data?.error||"Unable to save your preference. Please try again."}finally{e.emailPromptBusy=!1}}};function p(){t.get("/api/user").then(b=>{b&&(e.user=b.data),e.user?.username?fi(t).then(m=>s(m.data)).catch(()=>{}):e.headerShowSupport=!0,e.user?.emailNotificationsEnabled&&e.user.showEmailPrompt&&!e.user.notificationEmail&&(a=document.activeElement,e.emailPromptOpen=!0,i(()=>{let m=document.getElementById("email-prompt");m?.showModal?m.showModal():m?.setAttribute("open",""),document.getElementById("email-prompt-address")?.focus()},0))},()=>{e.user=null,e.headerShowSupport=!0})}p();function f(){t.get("/api/options").then(b=>{b&&(e.site_options=b.data),Ap(b?.data?.ANONYMIZATION_MASK),e.emit("site-options")},()=>{e.site_options=null})}f();function g(){t.get("/api/message").then(b=>{b&&(e.generalMessage=b.data)},()=>{e.generalMessage=null})}g();function y(b,m){m&&(e.title=m.title),e.path=o.url(),e.paths=o.path().substring(1).split("/"),e.isReviewerRoute=r.test(o.path())}e.on("routeChange",y),e.on("routeUpdate",y)},dl=function(e,t){let o=xt(),i=pt(),s=()=>{let r=window.location.hash.slice(1),a=document.getElementById(r);if(!a?.classList.contains("panel-collapse"))return;$(a).collapse("show");let p=document.getElementById(a.getAttribute("aria-labelledby"));p?.setAttribute("tabindex","-1"),p?.focus({preventScroll:!0}),p?.scrollIntoView?.({block:"start"})};e.on("routeUpdate",()=>i.timeout(s,0)),o(window,"hashchange",s),i.timeout(s,0)},ul=function(e,t,o,i,s){e.settingsTab=/(?:billing|upgrade)=/.test(window.location.search)?"billing":"defaults",e.confirmDeleteAccount=!1,e.deleteUsername="",e.profilePastSubscription=()=>!e.profileAuthorGrant()&&(e.billing?.grants||[]).some(g=>["author_monthly","author_annual"].includes(g.planId)),e.showAuthorPlans=new URLSearchParams(window.location.search).get("upgrade")==="1",e.showRepositoryPass=!1,e.profilePlan="author_monthly",e.openProfileUpgrade=()=>{e.settingsTab="billing",e.showAuthorPlans=!0,Ge(()=>document.getElementById("settings-plan-comparison")?.focus())},e.on("settings:upgrade",()=>e.openProfileUpgrade()),e.profileAuthorPlans=()=>(e.billing?.plans||[]).filter(g=>["author_monthly","author_annual"].includes(g.id)),e.profileSelectedPlan=()=>e.profileAuthorPlans().find(g=>g.id===e.profilePlan)||e.profileAuthorPlans()[0],e.profilePassPlan=()=>(e.billing?.plans||[]).find(g=>g.id==="author_pass"),e.profileAuthorGrant=()=>(e.billing?.grants||[]).find(g=>["author_monthly","author_annual"].includes(g.planId)&&["active","paid","past_due"].includes(g.status)&&new Date(g.until).getTime()>Date.now()),e.profileGrantName=g=>({author_monthly:"Author monthly",author_annual:"Author annual",author_pass:"Repository pass",conference:"Conference hosting"})[g.planId]||g.planId,us(e,t,()=>s.load().then(g=>{e.quota=g},console.error)),e.terms="",e.options={expirationMode:"remove",update:!1,image:!0,pdf:!0,notebook:!0,loc:!0,link:!0},e.saving=!1,e.message=null,e.error=null,e.accountEmail="",e.emailLoading=!0,e.emailCSRFReady=!1,e.emailSaving=!1,e.emailSaved=!1,e.emailError="";let r="";e.loadAccountEmail=async()=>{e.emailLoading=!0,e.emailError="";try{let g=await t.get("/github/connections/email");e.accountEmail=g.data.notificationEmail||"",r=g.data.csrf,e.emailCSRFReady=!!r}catch{e.emailError="Unable to load your email address. Please try again."}finally{e.emailLoading=!1}},e.saveAccountEmail=async()=>{if(!(e.emailSaving||e.emailLoading||!r)){e.emailSaving=!0,e.emailSaved=!1,e.emailError="";try{let g=await t.post("/github/connections/email",{email:e.accountEmail},{headers:{"X-CSRF-Token":r}});e.accountEmail=g.data.notificationEmail,e.user&&(e.user.notificationEmail=g.data.notificationEmail),e.emailSaved=!0}catch{e.emailError="Unable to save your email address. Check the address and try again."}finally{e.emailSaving=!1}}},e.loadAccountEmail(),s.load().then(g=>{e.quota=g},console.error);let a=hi(e,["terms","options"],"profile");e.discardDraft=()=>a.discard();function p(){t.get("/api/user/default").then(g=>{let y=g.data||{};y.terms&&(e.terms=y.terms.join(`
|
|
`)),e.options=Object.assign({},e.options,y.options),a.restore()})}p();let f=null;e.saveDefault=g=>{if(g&&g.preventDefault&&g.preventDefault(),e.saving)return;let y=a.checkpoint(),b={terms:e.terms.split(`
|
|
`).map(m=>m.trim()).filter(m=>m.length>0),options:e.options};e.saving=!0,e.error=null,t.post("/api/user/default",b).then(()=>{a.accept(y),e.saving=!1,e.message=e.unsavedChanges?null:"Saved",f&&i.cancel(f),f=i(()=>{e.message=null},2500)},m=>{e.saving=!1;let E=m&&m.data&&m.data.error,P="Unable to save your defaults. Please try again.";Promise.all([o("ERRORS."+E),o("ERRORS.unknown_error")]).then(([k,v])=>{e.error=E&&k!==v?k:P},()=>{e.error=P})})},e.deleteAccount=()=>{e.deletingAccount||!e.confirmDeleteAccount||e.deleteUsername!==e.user?.username||(e.deletingAccount=!0,t.delete("/api/user").then(()=>{window.location.href="/"},()=>{e.deletingAccount=!1,e.deleteError="Unable to delete the account. Please try again."}))}},cl=function(e,t,o){e.repoId=null,e.repoUrl=null,e.claim=()=>{t.post("/api/repo/claim",{repoId:e.repoId,repoUrl:e.repoUrl}).then(i=>{o.url("/dashboard")},i=>{e.error=i.data,e.claimForm.repoUrl.setValidity("not_found",!1),e.claimForm.repoId.setValidity("not_found",!1)})}},pl=function(e,t,o,i,s){e.user&&!e.user.status&&o.url("/dashboard"),e.watch("user.status",()=>{e.user&&!e.user.status&&o.url("/dashboard")}),e.features=[{key:"anonymize",num:"01",eyebrow:"Anonymize",title:"Double-anonymous,",accent:"your rules.",text:"Choose what reviewers may see: links, images, PDFs, notebooks, GitHub Pages. Add your own terms, with regex if you need it, and pick the expiration date.",cta:"Start an anonymization",href:"/anonymize",url:"anonymous.4open.science/anonymize",img:"/imgs/anonymize.png",alt:"The anonymize form: source repository, terms to redact, options and a live README preview"},{key:"review",num:"02",eyebrow:"Review",title:"Reviewers browse",accent:"the real thing.",text:"Highlighted source code, rendered PDFs, images, and notebooks, in a familiar file explorer. GitHub Pages is also supported.",cta:"Open the example",href:"https://anonymous.4open.science/r/840c8c57-3c32-451e-bf12-0e20be300389/",target:"_self",url:"anonymous.4open.science/r/840c8c57-\u2026",img:"/imgs/explorer.png",alt:"The repository explorer with a file tree and a rendered README"},{key:"manage",num:"03",eyebrow:"Manage",title:"One dashboard,",accent:"until the decision.",text:"Monitor views, edit configuration, remove or update your repository. Program chairs can group submissions under a conference with one shared expiry.",cta:"Open the dashboard",href:"/dashboard",needsUser:!0,url:"anonymous.4open.science/dashboard",img:"/imgs/dashboard.png",alt:"The dashboard listing anonymized repositories with status, views and expiry"}],e.feature=e.features[0].key,e.selectFeature=function(p){e.feature=p},e.featureHref=function(p){return p.needsUser&&!e.user?"/signin":p.href},e.featureTarget=function(p){return p.needsUser&&!e.user?"_self":p.target||void 0},e.featureKeydown=function(p,f){let g={ArrowDown:1,ArrowRight:1,ArrowUp:-1,ArrowLeft:-1,Home:"first",End:"last"}[p.key];if(g===void 0)return;p.preventDefault();let y=e.features.length,b=g==="first"?0:g==="last"?y-1:(f+g+y)%y;e.feature=e.features[b].key,s(()=>{let m=i.document.getElementById("feature-tab-"+e.feature);m&&m.focus()})},e.demoText=`# DeepLearnUtils
|
|
Developed by Jane Smith at MIT CSAIL.
|
|
See Smith et al., "Attention That Works," 2026.
|
|
Contact: jane.smith@mit.edu`,e.demoTerms="Jane Smith, Smith, MIT CSAIL, jane.smith@mit.edu",e.demoParts=function(){let p=(e.demoTerms||"").split(/[,\n]/).map(m=>m.trim()).filter(Boolean).sort((m,E)=>E.length-m.length),f=m=>m.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");if(!p.length)return[{text:e.demoText}];let g=new RegExp("("+p.map(f).join("|")+")","gi"),y={},b=0;return(e.demoText||"").split(g).filter(m=>m!=="").map(m=>{let E=p.find(P=>P.toLowerCase()===m.toLowerCase());return E?(y[E.toLowerCase()]||(y[E.toLowerCase()]=++b),{text:String(y[E.toLowerCase()]),redacted:!0,original:m}):{text:m}})},e.demoCount=()=>e.demoParts().filter(p=>p.redacted).length,e.cards=[{key:"repositories",total:0,label:"repositories anonymized"},{key:"users",total:0,label:"researchers"},{key:"pageViews",total:0,label:"page views"},{key:"pullRequests",total:0,label:"pull requests"}];function r(){t.get("/api/stat/").then(p=>{e.stat=p.data,e.cards[0].total=p.data.nbRepositories,e.cards[1].total=p.data.nbUsers,e.cards[2].total=p.data.nbPageViews,e.cards[3].total=p.data.nbPullRequests}).catch(()=>{})}r();function a(p){let f={series:p,bars:[],viewW:100,deltaToday:0,pctChange:0,pctAbs:0,isUp:!0};if(!p||p.length<2)return f;let g=new Array(p.length-1);for(let k=1;k<p.length;k++)g[k-1]=p[k]-p[k-1];let y=g.length,b=Math.max.apply(null,g),m=Math.min.apply(null,g),E=Math.min(0,m),P=b-E||1;f.viewW=y*2,f.bars=new Array(y);for(let k=0;k<y;k++){let v=(g[k]-E)/P,S=Math.max(1.5,v*34);f.bars[k]={x:(k*2+.25).toFixed(2),y:(36-S).toFixed(2),w:"1.5",h:S.toFixed(2)}}if(f.deltaToday=g[y-1],y>=2){let k=g[y-2];k&&(f.pctChange=(f.deltaToday-k)/k*100)}return f.pctAbs=Math.round(Math.abs(f.pctChange)),f.isUp=f.pctChange>=0,f}e.history={repositories:a([]),users:a([]),pageViews:a([]),pullRequests:a([])},t.get("/api/stat/history?days=60").then(p=>{let f=p.data||[];e.history={repositories:a(f.map(g=>g.nbRepositories||0)),users:a(f.map(g=>g.nbUsers||0)),pageViews:a(f.map(g=>g.nbPageViews||0)),pullRequests:a(f.map(g=>g.nbPullRequests||0))}}).catch(()=>{})},fl=function(e,t,o,i,s,r){let a=pt();e.on("routeLeave",function(){$('[data-toggle="tooltip"]').tooltip("dispose")}),e.watch("user.status",()=>{e.user==null&&o.url("/")}),e.user==null&&o.url("/"),a.timeout(()=>{$('[data-toggle="tooltip"]').tooltip()},250),e.quotaExpanded=!1,e.closeQuota=()=>{e.quotaExpanded=!1,Ge(()=>document.querySelector(".dashboard-quota > summary")?.focus())},xt()(document,"click",R=>{e.quotaExpanded&&!R.target.closest?.(".dashboard-quota")&&(e.quotaExpanded=!1)}),e.filtersExpanded=!1,e.projectView="all",e.selectedProject=null,e.projectName="",e.nameSaving=!1,e.nameError="",e.nameMessage="",e.needsAttention=R=>R.status==="error"||R._broken||f(R.status)==="progress"&&R._stale,e.attentionCount=()=>e.dashboardTotals?.attention??e.items.filter(e.needsAttention).length,e.hasProjects=()=>(e.dashboardTotals?.total??e.items.length)>0,e.setProjectView=R=>{e.projectView=R,R==="attention"&&(e.filters.status.error=!0,e.filters.status.progress=!0)},e.projectDetailsId=R=>"project-details-"+encodeURIComponent(R._type+":"+(R._id||R._source||"unknown")),e.showProjectDetails=async R=>{e.selectedProject=R,e.projectName=R.projectName||"",e.nameError="",e.nameMessage="",await Ge();let K=document.getElementById(e.projectDetailsId(R));K?.focus(),K?.scrollIntoView?.({block:"nearest"})},e.closeProjectDetails=R=>{e.selectedProject=null,Ge(()=>document.querySelector(`[data-project-actions="${encodeURIComponent(R._type+":"+R._id)}"]`)?.focus())},e.saveProjectName=async R=>{if(e.nameSaving||!R._id)return;let K=e.projectName.trim();if(K.length>100){e.nameError="Use 100 characters or fewer.";return}e.nameSaving=!0,e.nameError="",e.nameMessage="";try{let te=await t.post("/api/user/project-name",{type:R._type,id:R._id,name:K});R.projectName=te.data.name,R._label=R.projectName||R._fallbackLabel,e.selectedProject===R&&(e.nameMessage=K?"Project name saved.":"Default project name restored."),_||(e.dashboardCursor=null,await L(),e.selectedProject===R&&(e.selectedProject=e.items.find(ve=>ve._type===R._type&&ve._id===R._id)||null))}catch{e.selectedProject===R&&(e.nameError="The project name could not be saved. Try again.")}finally{e.nameSaving=!1}},e.copyingId=null,e.copyLink=async R=>{if(!R._viewUrl||e.copyingId)return;let K=new URL(R._viewUrl,s.location.origin).href;e.copyingId=R._type+":"+R._id;try{await al(K),e.addToast({title:"Link copied",body:"The anonymous link is ready to share."})}catch{e.addToast({title:"Copy this anonymous link",body:K})}finally{e.copyingId=null}},e.items=[],e.search="",e.loading=!0,e.statusKeyLabels={ready:"Ready",progress:"In progress",error:"Error",expired:"Expired",removed:"Removed"};let p=["queue","download","downloaded","preparing","anonymizing"];function f(R){return R==="ready"||R==="error"?R:R==="expired"||R==="expiring"?"expired":R==="removed"||R==="removing"?"removed":(p.indexOf(R)>-1,"progress")}let g=7200*1e3,y="dashboard.filterPrefs",b={typeFilter:"all",filters:{status:{ready:!0,progress:!0,error:!0,expired:!0,removed:!1}},orderBy:"-anonymizeDate"},m=loadFilterPrefs(y)||{};e.typeFilter=m.typeFilter||b.typeFilter,e.filters={status:Object.assign({},b.filters.status,m.filters&&m.filters.status||{})},e.orderBy=m.orderBy||b.orderBy;let E={_name:{label:"Anonymous ID",defaultDesc:!1},_label:{label:"Project",defaultDesc:!1},anonymizeDate:{label:"Anonymize date",defaultDesc:!0},status:{label:"Status",defaultDesc:!1},lastView:{label:"Last view",defaultDesc:!0},pageView:{label:"Views",defaultDesc:!0},"options.expirationDate":{label:"Expiration",defaultDesc:!1}};e.sortFields=E,e.sortField=()=>e.orderBy.replace(/^-/,""),e.sortDesc=()=>e.orderBy.charAt(0)==="-",e.sortLabel=()=>{let R=E[e.sortField()];return R?R.label:"Custom"},e.isSortedBy=R=>e.sortField()===R,e.setSort=(R,K)=>{typeof K!="boolean"&&(K=e.isSortedBy(R)?!e.sortDesc():!!(E[R]&&E[R].defaultDesc)),e.orderBy=(K?"-":"")+R},e.toggleSortDirection=()=>{e.setSort(e.sortField(),!e.sortDesc())},e.watchGroup(["typeFilter","orderBy"],()=>{saveFilterPrefs(y,{typeFilter:e.typeFilter,filters:e.filters,orderBy:e.orderBy})}),e.watch("filters",()=>{saveFilterPrefs(y,{typeFilter:e.typeFilter,filters:e.filters,orderBy:e.orderBy})},!0),r.load().then(R=>{e.quota=R},console.error);function P(R,K,te,ve,x,ue){R.pageView||(R.pageView=0),R.lastView||(R.lastView=""),R.options=R.options||{},R.options.terms=(R.options.terms||[]).filter(Ee=>Ee),R._id=K||"",R._source=ve,R._broken=!K,R._name=K||ve||"(unnamed)",R._fallbackLabel=R._type==="gist"?"Gist "+(K||ve||"without an ID"):ve||te||R._name,R._label=R.projectName||R._fallbackLabel,R._editUrl=K?x:null,R._viewUrl=K?ue:null,R._broken&&(R.status="error",R.statusMessage="incomplete_record"),R._statusKey=f(R.status);let he=R.anonymizeDate||R.lastView;return R._stale=R._statusKey==="progress"&&!!he&&Date.now()-new Date(he).getTime()>g,R.status==="expired"||R.status==="expiring"?R._expiry={kind:"expired",date:R.options.expirationDate}:R.status!=="ready"?R._expiry={kind:"none"}:R.options.expirationMode==="never"||!R.options.expirationDate?R._expiry={kind:"never"}:R._expiry={kind:"date",date:R.options.expirationDate},R}function k(R){return t.get(R).then(K=>K.data||[],K=>(console.error(K),[]))}function v(){return e.loading=!0,i.all([k("/api/user/anonymized_repositories"),k("/api/user/anonymized_pull_requests"),k("/api/user/anonymized_gists")]).then(R=>{let K=R[0],te=R[1],ve=R[2],x=[];K.forEach(ue=>{ue._type="repo";let he=ue.source||{};x.push(P(ue,ue.repoId,ue.repoId,he.fullName,"/anonymize/"+ue.repoId,"/r/"+ue.repoId+"/"))}),te.forEach(ue=>{ue._type="pr";let he=ue.source||{};x.push(P(ue,ue.pullRequestId,ue.pullRequestId,he.repositoryFullName?he.repositoryFullName+"#"+he.pullRequestId:void 0,"/pull-request-anonymize/"+ue.pullRequestId,"/pr/"+ue.pullRequestId+"/"))}),ve.forEach(ue=>{ue._type="gist";let he=ue.source||{};x.push(P(ue,ue.gistId,ue.gistId,he.gistId,"/gist-anonymize/"+ue.gistId,"/gist/"+ue.gistId+"/"))}),e.items=x,e.loading=!1})}let S=0,_=!1;e.dashboardCursor=null,e.dashboardError="";function M(R){let K=R.source||{};return R._type==="repo"?P(R,R.repoId,R.repoId,K.fullName,"/anonymize/"+R.repoId,"/r/"+R.repoId+"/"):R._type==="pr"?P(R,R.pullRequestId,R.pullRequestId,K.repositoryFullName?K.repositoryFullName+"#"+K.pullRequestId:void 0,"/pull-request-anonymize/"+R.pullRequestId,"/pr/"+R.pullRequestId+"/"):P(R,R.gistId,R.gistId,K.gistId,"/gist-anonymize/"+R.gistId,"/gist/"+R.gistId+"/")}function L(R=!1){if(_)return v();let K=++S;return e.loading=!R,e.loadingMore=R,e.dashboardError="",t.get("/api/user/dashboard",{params:{q:e.search,type:e.typeFilter,sort:e.orderBy,statuses:Object.keys(e.filters.status).filter(te=>e.filters.status[te]!==!1).join(",")||"none",attention:String(e.projectView==="attention"),cursor:R?e.dashboardCursor:void 0}}).then(te=>{if(K===S){if(!Array.isArray(te.data?.items))return _=!0,v();e.items=(R?e.items:[]).concat(te.data.items.map(M)),e.dashboardCursor=te.data.cursor,e.dashboardTotals=te.data}},te=>{if(K===S){if(te.status===404)return _=!0,v();e.dashboardError="Projects could not be loaded. Please try again."}}).finally(()=>{K===S&&(e.loading=!1,e.loadingMore=!1)})}e.loadMoreProjects=()=>L(!0);let q;e.watchGroup(["search","typeFilter","orderBy","projectView"],()=>{_||(q&&a.timeout.cancel(q),q=a.timeout(()=>L(),150))},!1),e.watch("filters",()=>{_||L()},!0,!1),e.on("dispose",()=>{S++}),L(),e.openItem=(R,K)=>{if(!R._viewUrl)return;let te=K&&K.target;te&&te.closest&&te.closest("a, button, .dropdown, input")||(s.location.href=R._viewUrl)},e.hiddenStatusCount=()=>Object.keys(e.filters.status).filter(R=>e.filters.status[R]===!1).length,e.hasHiddenStatus=()=>e.hiddenStatusCount()>0,e.hasActiveFilters=()=>e.projectView!=="all"||e.typeFilter!=="all"||e.search.trim().length>0||Object.keys(e.filters.status).some(R=>e.filters.status[R]===!1),e.showClearFilters=()=>e.search.trim().length>0||e.typeFilter!=="all"||e.hiddenStatusCount()>1,e.clearFilters=()=>{e.projectView="all",e.typeFilter="all",e.search="",Object.keys(e.filters.status).forEach(R=>{e.filters.status[R]=!0})};function G(R,K,te,ve){t.get("/api/repo/"+R).then(async x=>{let ue=ve!==void 0&&ve!==x.data.status;for(let he of e.items)if(he._type==="repo"&&he.repoId==R){ue=ue||he.status!==x.data.status;let Ee=e.needsAttention(he);he.status=x.data.status,he.statusMessage=x.data.statusMessage,he._statusKey=f(he.status),he._statusKey!=="progress"&&(he._stale=!1);let ye=e.needsAttention(he);e.dashboardTotals&&Ee!==ye&&(e.dashboardTotals.attention=Math.max(0,e.dashboardTotals.attention+(ye?1:-1)));break}if(ue&&!_){e.dashboardCursor=null;let he=e.selectedProject;await L(),he&&e.selectedProject===he&&(e.selectedProject=e.items.find(Ee=>Ee._type===he._type&&Ee._id===he._id)||null)}if(x.data.status=="ready"||x.data.status=="error"||x.data.status=="removed"||x.data.status=="expired"){K(x.data);return}a.timeout(()=>G(R,K,te,x.data.status),2500)},te)}let se=R=>R==="repo"?"repository":R==="gist"?"gist":"pull request",ee=R=>R==="repo"?"/api/repo":R==="gist"?"/api/gist":"/api/pr";e.removeItem=R=>{let K=se(R._type);if(confirm(`Are you sure that you want to remove the ${K} ${R._id}?`)){let te=Ue({title:`Removing ${R._id}...`,date:new Date,body:`The ${K} ${R._id} is going to be removed.`});e.addToast(te);let ve=`${ee(R._type)}/${R._id}`;t.delete(ve).then(()=>{R._type==="repo"?G(R._id,()=>{te.title=`${R._id} is removed.`,te.body=`The ${K} ${R._id} is removed.`},void 0,R.status):(te.title=`${R._id} is removed.`,te.body=`The ${K} ${R._id} is removed.`,L())},x=>{te.title=`Error during the removal of ${R._id}.`,te.body=x.body,L()})}},e.refreshItem=R=>{let K=se(R._type),te=Ue({title:`Refreshing ${R._id}...`,date:new Date,body:`The ${K} ${R._id} is going to be refreshed.`});e.addToast(te);let ve=ue=>{te.title=`Error during the refresh of ${R._id}.`,te.body=ue.data?.error||ue.body||"The refresh could not be completed. Please try again.",L()},x=`${ee(R._type)}/${R._id}/refresh`;t.post(x).then(()=>{R._type==="repo"?G(R._id,ue=>{if(ue.status!=="ready"){ve({body:ue.statusMessage||`The repository is ${ue.status}.`});return}te.title=`${R._id} is refreshed.`,te.body=`The ${K} ${R._id} is refreshed.`},ve,R.status):(te.title=`${R._id} is refreshed.`,te.body=`The ${K} ${R._id} is refreshed.`,L())},ve)},e.extendItem=R=>{let K=se(R._type),te=Ue({title:`Extending ${R._id}...`,date:new Date,body:`The expiration of ${K} ${R._id} is going to be extended by 6 months.`});e.addToast(te);let ve=`${ee(R._type)}/${R._id}/extend`;t.post(ve).then(()=>{R._type==="repo"?G(R._id,()=>{te.title=`${R._id} is extended.`,te.body=`The expiration of ${K} ${R._id} is extended by 6 months.`},void 0,R.status):(te.title=`${R._id} is extended.`,te.body=`The expiration of ${K} ${R._id} is extended by 6 months.`,L())},x=>{te.title=`Error during the extension of ${R._id}.`,te.body=x.data&&x.data.error||x.body,L()})},e.itemFilter=R=>{if(e.projectView==="attention"&&!e.needsAttention(R)||e.typeFilter!=="all"&&R._type!==e.typeFilter||e.filters.status[R._statusKey]===!1)return!1;let K=e.search.trim().toLowerCase();return!!(K.length==0||R._label&&String(R._label).toLowerCase().indexOf(K)>-1||R._source&&String(R._source).toLowerCase().indexOf(K)>-1||R._id&&String(R._id).toLowerCase().indexOf(K)>-1||R.conference&&String(R.conference).toLowerCase().indexOf(K)>-1)}};var ml=function(e,t,o){let i=pt();e.repoId=o.repoId,e.reviewUrl=window.location.origin+"/r/"+encodeURIComponent(o.repoId)+"/",e.repo=null,e.progress=0,e.rateLimitResetAt=0,e.rateLimitCountdown="",e.shareUrl=(window.location?.origin||"")+"/r/"+encodeURIComponent(e.repoId)+"/",e.copied=!1;let s=null;e.copyShareUrl=async()=>{try{await al(e.shareUrl),e.copied=!0,s&&i.timeout.cancel(s),s=i.timeout(()=>{e.copied=!1},2e3)}catch{e.addToast?.({title:"Copy this anonymous link",body:e.shareUrl})}};var r=null;let a=null,p=!1;function f(y){e.rateLimitResetAt=y,r&&i.interval.cancel(r);function b(){var m=Math.max(0,Math.ceil((y-Date.now())/1e3));if(m<=0)e.rateLimitCountdown="",e.rateLimitResetAt=0,i.interval.cancel(r),r=null;else{var E=Math.floor(m/60),P=m%60;e.rateLimitCountdown=E>0?E+"m "+P+"s":P+"s"}}b(),r=i.interval(b,1e3)}e.on("dispose",function(){p=!0,r&&i.interval.cancel(r),a&&i.timeout.cancel(a)});function g(y){if(!y)return y;var b=y.match(/^rate_limited:(\d+)$/);return b?(f(parseInt(b[1],10)),null):(e.rateLimitResetAt=0,y)}e.getStatus=()=>{p||t.get("/api/repo/"+e.repoId,{repoId:e.repoId,repoUrl:e.repoUrl}).then(y=>{if(!p){e.repo=y.data,y.data.rateLimitResetAt?f(y.data.rateLimitResetAt):e.repo.statusMessage=g(e.repo.statusMessage),e.repo.status=="ready"?e.progress=100:e.repo.status=="queue"?e.progress=10:e.repo.status=="downloaded"?e.progress=50:e.repo.status=="download"||e.repo.status=="preparing"?e.progress=25:e.repo.status=="anonymizing"&&(e.progress=75);var b=!["ready","removed","expired"].includes(e.repo.status);e.repo.status=="error"&&!e.rateLimitResetAt&&(b=!1),b&&(a=i.timeout(e.getStatus,2e3))}},y=>{e.error=y.data.error})},e.getStatus()},ps=function(e,t,o,i,s,r,a){il(),e.renderRedacted=sl,e.sourceUrl="",e.workspaceOpen=!1,e.sourceUrlError="",e.previewStatus="idle",e.sourceLoading=!1,e.mobilePane="settings";let p=window.matchMedia?.("(max-width: 767px)");e.mobileWorkspace=!!p?.matches,p?.addEventListener&&xt()(p,"change",w=>{e.mobileWorkspace=w.matches}),e.selectMobilePane=w=>{e.mobilePane=w};let f=0,g=!1,y=new Set,b=(w,A=!1)=>!g&&w.generation===f&&w.url===e.sourceUrl.trim()&&w.connection===e.githubConnection&&(!A||w.branch===e.source.branch),m=()=>{let w={generation:f,url:e.sourceUrl.trim(),connection:e.githubConnection,branch:e.source.branch};return y.add(w),e.sourceLoading=!0,w},E=w=>{y.delete(w),g||(e.sourceLoading=[...y].some(A=>b(A)))};e.on("dispose",()=>{g=!0,f++});let P=null,k=w=>w.gistId&&!w.repo?"gist:"+w.gistId.toLowerCase():(w.owner+"/"+w.repo).toLowerCase()+(w.pullRequestId?"/pull/"+w.pullRequestId:""),v=hi(e,["sourceUrl","terms","repoId","pullRequestId","gistId","source","options","conference","githubConnection"],"anonymize:"+(s.path?.()||"")),S=null,_=null,M=null;e.hostingReview=!1,e.previewExpanded=!1,e.taskValidationError="",e.editRepository=()=>{e.mobilePane="settings",e.previewExpanded=!1,Ge(()=>document.querySelector(".anonymize-fields .is-invalid")?.focus())},e.submitRepository=w=>{if(e.taskValidationError="",!(e.sourceLoading||e.billingBusy||e.hostingSaving||e.billingPending)){if(V()||e.anonymize?.invalid||e.sourceUrlError){e.taskValidationError="Check the highlighted fields before continuing.",e.editRepository();return}return e.hostingNeedsPayment()?e.checkoutRepository():e.anonymizeRepo(w)}},e.hostingPayment=!1,e.hostingAlternatives=!1,e.hostingPrice=w=>w.amount==null?"Price shown at checkout":new Intl.NumberFormat(void 0,{style:"currency",currency:w.currency,minimumFractionDigits:0,maximumFractionDigits:2}).format(w.amount/100)+(w.interval==="year"?" billed annually":" billed monthly"),e.hostingPlan="author_monthly",e.hostingSaving=!1,e.selectedHostingPlan=()=>e.authorPlans().find(w=>w.id===e.hostingPlan)||e.authorPlans()[0];let L=()=>t.get("/api/user/quota").then(w=>{e.hostingQuota=w.data});us(e,t,async()=>{await L(),e.hostingQuotaBlocked=!1},{confirmedMessage:"Hosting status refreshed. Your draft is ready to continue."}),L().catch(()=>{}),e.authorPlans=()=>(e.billing?.plans||[]).filter(w=>["author_monthly","author_annual"].includes(w.id)),e.hasAuthorHosting=()=>["author_monthly","author_annual"].includes(e.billing?.allowance?.plan),e.hostingNeedsPayment=()=>!e.billing?.enabled||e.detectedType!=="repo"||e.hasAuthorHosting()||e.isUpdate&&e.role!=="owner"?!1:!!(e.options?.expirationMode==="never"&&!e._existingNever||!e.conference&&e.hostingQuotaBlocked),e.checkoutRepository=async(w=!1)=>{if(!(e.hostingSaving||e.billingBusy||!e.billing?.csrf||e.sourceLoading)){e.hostingSaving=!0,e.billingError="";try{let A=v.checkpoint(),D=JSON.stringify(A);(!_||D!==M)&&(_=(await t.post("/api/billing/draft",{path:s.path(),values:A},{headers:{"x-csrf-token":e.billing.csrf}})).data.id,M=D);let I=e.authorPlans().find(z=>z.id===e.hostingPlan)||e.authorPlans()[0];if(!w&&!I)throw new Error("No author plan available");await e.checkout(w?"author_pass":I.id,w?e.repoId:"",{draftId:_})}catch{e.billingError="Your draft could not be saved for checkout. Your form is unchanged. Please try again."}finally{e.hostingSaving=!1}}},e.useDatedHosting=()=>{e.options.expirationMode="remove"},e.discardDraft=async()=>{v.discard(),e.workspaceOpen=!!e.sourceUrl,e.error=null,e.sourceUrl?await e.urlSelected(!0):(f++,e.sourceLoading=!1,e.detectedType=null,e.details=null,e.sourceUrlError="",Me.cancel(),U.cancel(),de.cancel(),e.previewStatus="idle")},e.githubConnection=void 0,e.githubConnections=null,e.gistOAuthRequired=!1,e.gistAppRequired=!1;let q=()=>{let w={};for(let A of["sourceUrl","terms","repoId","pullRequestId","gistId","source","options","conference","githubConnection"])w[A]=e[A];sessionStorage.setItem("github-access-draft",JSON.stringify({path:s.path(),savedAt:Date.now(),draft:w}))};e.connectGistApp=()=>{q(),window.location.href="/github/app/login?returnTo="+encodeURIComponent(s.path())},e.connectGistOAuth=()=>{q(),window.location.href="/github/login?returnTo="+encodeURIComponent(s.path())},e.grantGitHubAccess=()=>{q();let w=s.path(),A=ue(e.sourceUrl)||"",D=e.githubConnections?.appConnected?"/github/app/install":"/github/app/login";window.location.href=D+"?returnTo="+encodeURIComponent(w)+"&repository="+encodeURIComponent(A)+"&install=1"},e.chooseGitHubConnection=async w=>{e.githubConnection=w,e.readme="",e.sourceUrl&&await Ee()},e.detectedType=null,e.repoId="",e.pullRequestId="",e.gistId="",e.terms="",e.defaultTerms="",e.branches=[],e.source={branch:"",commit:""},e.options={expirationMode:"remove",expirationDate:new Date,update:!1,image:!0,pdf:!0,notebook:!0,link:!0,body:!0,title:!0,origin:!1,diff:!0,content:!0,comments:!0,username:!0,date:!0};function G(){let w=new Date;return w.setMonth(w.getMonth()+6),w}e.options.expirationDate=G();function se(w){let A=w.getFullYear(),D=String(w.getMonth()+1).padStart(2,"0"),I=String(w.getDate()).padStart(2,"0");return`${A}-${D}-${I}`}e.minExpirationDate=se(new Date);let ee=new Date;ee.setFullYear(ee.getFullYear()+1),e.maxExpirationDate=se(ee),e.anonymize_readme="",e.readme="",e.html_readme="",e.isUpdate=!1,e.previousConfigurations=[],e.previousConfigurationId="";let R,K=w=>String(w||"").replace(/\/$/,"").replace(/\.git$/i,"").toLowerCase();async function te(){if(e.isUpdate||i.repoId||i.pullRequestId||i.gistId)return;let w={generation:f,url:e.sourceUrl.trim(),connection:e.githubConnection};try{R||(R=t.get("/api/user/anonymized_repositories").then(I=>I.data));let A=await R;if(!b(w))return;let D=K(ue(w.url));e.previousConfigurations=A.filter(I=>I.repoId&&I.options&&K(I.source?.fullName)===D).sort((I,z)=>(Date.parse(z.anonymizeDate)||0)-(Date.parse(I.anonymizeDate)||0)),e.previousConfigurationId=e.previousConfigurations[0]?.repoId||""}catch{R=void 0}}e.existingConfigurationUrl=()=>{let w=e.previousConfigurations.find(A=>A.repoId===e.previousConfigurationId);return w?"/anonymize/"+encodeURIComponent(w.repoId):null};function ve(w){t.get("/api/user/default").then(A=>{let D=A.data;D.terms&&(e.defaultTerms=D.terms.join(`
|
|
`)),e.options=Object.assign({},e.options,D.options),e.options.expirationDate=D.options&&D.options.expirationDate?new Date(D.options.expirationDate):G(),!i.repoId&&!i.pullRequestId&&!i.gistId&&!e.anonymize?.terms?.dirty&&(e.terms=e.defaultTerms),w&&w()})}function x(w,A,D){e.anonymize&&e.anonymize[w]&&e.anonymize[w].setValidity(A,D)}function ue(w){try{let A=parseGithubUrl(w);if(A&&A.owner&&A.repo)return A.owner+"/"+A.repo}catch{}return null}e.accessRepairAllowed=!1,e.repairingGitHubAccess=!1,e.accessRepairMessage="",e.repairGitHubAccess=async()=>{if(!e.accessRepairAllowed||e.repairingGitHubAccess||!e.githubConnections?.appEnabled||!i.repoId||e.role!=="owner"||e.githubConnection!=="github-app"||ue(e.sourceUrl)!==e._originalFullName)return;e.repairingGitHubAccess=!0,e.accessRepairMessage="";let w=m();try{let A=await t.get("/github/connections");if(e.githubConnections=A.data,!A.data.appEnabled)return;let D=await t.post("/github/connections/migrate",{type:"repository",id:i.repoId,connection:"github-app"},{headers:{"X-CSRF-Token":A.data.csrf}});if(!b(w))return;e.error=null,D.data.fullName&&(e._originalFullName=D.data.fullName,e.source.fullName=D.data.fullName,e.sourceUrl="https://github.com/"+D.data.fullName),e.accessRepairMessage="GitHub access repaired. Your anonymous URL and published commit are unchanged.",await e.urlSelected(!0)}catch{b(w)&&(e.accessRepairMessage="Unable to repair GitHub access. Check the App's repository permissions in Manage access, then retry. Your published snapshot has not been replaced.")}finally{e.repairingGitHubAccess=!1,E(w)}},e.reconnectingSource=!1,e.reconnectRepositoryId=void 0,e.reconnectSource=async()=>{if(confirm("Reconnect to the repository currently at this GitHub URL? Review its branch and commit before saving. Saving will replace the published snapshot.")){e.reconnectingSource=!0,e.reconnectRepositoryId=void 0,e.source.commit="",e.source.branch="",e.readme="",e.branches=[];try{await be()}catch{}}};function he(){return e.reconnectingSource||!e.isUpdate||!e._originalRepositoryID?void 0:ue(e.sourceUrl)===e._originalFullName?e._originalRepositoryID:void 0}async function Ee(){e._preservingDraft=!0;try{await e.urlSelected(!0)}finally{e._preservingDraft=!1}}async function ye(){let w=new URLSearchParams(window.location.search).get("billingDraft");if(w){v.restore();try{let D=(await t.get("/api/billing/draft/"+encodeURIComponent(w))).data;if(D.path!==s.path())throw new Error("Wrong task");S=D.values.conference||null;for(let I of["sourceUrl","terms","repoId","source","options","conference","githubConnection"])Object.prototype.hasOwnProperty.call(D.values,I)&&(e[I]=D.values[I]);return e.options?.expirationDate&&(e.options.expirationDate=new Date(e.options.expirationDate)),_=D.id,M=JSON.stringify(v.checkpoint()),e.draftRestored=!0,e.hostingReview=!0,e.sourceUrl&&await Ee(),s.replace?.(s.path()),!0}catch{e.billingError="The checkout draft could not be restored. Retry by reloading this page; any local draft is still available."}}let A;try{A=JSON.parse(sessionStorage.getItem("github-access-draft")||"null")}catch{return!1}if(!A||A.path!==s.path()||Date.now()-A.savedAt>=30*6e4)return v.restore()?(e.sourceUrl&&await Ee(),!0):!1;v.restore();for(let D of["sourceUrl","terms","repoId","pullRequestId","gistId","source","options","conference","githubConnection"])Object.prototype.hasOwnProperty.call(A.draft,D)&&(e[D]=A.draft[D]);return e.options.expirationDate&&(e.options.expirationDate=new Date(e.options.expirationDate)),await Ee(),sessionStorage.removeItem("github-access-draft"),!0}ve(()=>{!i.repoId&&!i.pullRequestId&&!i.gistId&&a(ye,0),i.repoId&&i.repoId!=""&&(e.isUpdate=!0,e.detectedType="repo",e.repoId=i.repoId,t.get("/api/repo/"+e.repoId).then(async w=>{e.accessRepairAllowed=!["removed","archived","preparing","queue","download","removing","expiring"].includes(w.data.status),e.githubConnection=w.data.connection||"oauth",e.sourceUrl="https://github.com/"+w.data.source.fullName,e._originalFullName=w.data.source.fullName,e.terms=w.data.options.terms.filter(A=>A).join(`
|
|
`),e.source=w.data.source,e.role=w.data.role||"owner",e._existingNever=w.data.options.expirationMode==="never",e.coauthors=w.data.coauthors||[],e._originalBranch=w.data.source.branch,e.options=Object.assign({},e.options,w.data.options),e.conference=w.data.conference,e._originalConference=w.data.conference,e.repositoryID=w.data.source.repositoryID,e._originalRepositoryID=w.data.source.repositoryID,w.data.options.expirationDate&&(e.options.expirationDate=new Date(w.data.options.expirationDate)),P=k(parseGithubUrl(e.sourceUrl)),!await ye()&&(await Promise.all([be(),Le()]),F())},()=>{s.url("/404")})),i.pullRequestId&&i.pullRequestId!=""&&(e.isUpdate=!0,e.detectedType="pr",e.pullRequestId=i.pullRequestId,t.get("/api/pr/"+e.pullRequestId).then(async w=>{if(e.githubConnection=w.data.connection||"oauth",e.sourceUrl="https://github.com/"+w.data.source.repositoryFullName+"/pull/"+w.data.source.pullRequestId,e.terms=w.data.options.terms.filter(A=>A).join(`
|
|
`),e.source=w.data.source,e.options=Object.assign({},e.options,w.data.options),e.conference=w.data.conference,e._originalConference=w.data.conference,w.data.options.expirationDate&&(e.options.expirationDate=new Date(w.data.options.expirationDate)),P=k(parseGithubUrl(e.sourceUrl)),!await ye())try{await X()}catch{}},()=>{s.url("/404")})),i.gistId&&i.gistId!=""&&(e.isUpdate=!0,e.detectedType="gist",e.gistId=i.gistId,t.get("/api/gist/"+e.gistId).then(async w=>{e.sourceUrl="https://gist.github.com/"+w.data.source.gistId,e.terms=w.data.options.terms.filter(A=>A).join(`
|
|
`),e.source=w.data.source,e.options=Object.assign({},e.options,w.data.options),e.conference=w.data.conference,e._originalConference=w.data.conference,w.data.options.expirationDate&&(e.options.expirationDate=new Date(w.data.options.expirationDate)),P=k(parseGithubUrl(e.sourceUrl)),!await ye()&&await Q()},()=>{s.url("/404")}))}),t.get("/github/connections").then(w=>{e.githubConnections=w.data,!i.repoId&&!i.pullRequestId&&!i.gistId&&e.githubConnection===void 0&&w.data.appEnabled&&w.data.appConnected&&(e.githubConnection="github-app",e.sourceUrl&&e.workspaceOpen&&Ee())}).catch(()=>{}),e.urlSelected=async(w=!1)=>{let A=++f;e.previousConfigurations=[],e.previousConfigurationId="";let D;try{D=parseGithubUrl(e.sourceUrl.trim())}catch{e.sourceLoading=!1,Me.cancel(),U.cancel(),de.cancel(),e.previewStatus="idle",e.sourceUrlError=e.sourceUrl?"Please provide a valid GitHub URL.":"",x("sourceUrl","github",!1);return}let I=k(D),z=w||P===I;P=I,e.sourceUrlError="",x("sourceUrl","github",!0);let B=document.activeElement?.id==="sourceUrl-landing";e.workspaceOpen=!0,setTimeout(()=>{let ie=window.document.getElementById("sourceUrl");if(ie){try{ie.setSelectionRange(0,0)}catch{}ie.scrollLeft=0}},50),B&&a(()=>document.getElementById("sourceUrl")?.focus(),0),e.reconnectingSource=!1,e.reconnectRepositoryId=void 0,!z&&!e.isUpdate&&(e.repoId="",e.pullRequestId="",e.gistId=""),e.details=null,e.branches=[],z||(e.source={type:"GitHubStream",branch:"",commit:""}),Me.cancel(),U.cancel(),de.cancel(),J.clear(),H.clear(),e.previewStatus="idle",e.anonymize_readme="",e.readme="",e.html_readme="",e.detectedType=null,e.gistOAuthRequired=!1,e.gistAppRequired=!1,e._preservingDraft=z;try{D.gistId&&!D.repo?(e.detectedType="gist",e.source={gistId:D.gistId},await Q()):D.pullRequestId?(e.detectedType="pr",e.source={repositoryFullName:D.owner+"/"+D.repo,pullRequestId:D.pullRequestId},await X()):(e.detectedType="repo",te(),await Promise.all([be(),Le()]),F())}catch{}finally{A===f&&(e._preservingDraft=!1)}$('[data-toggle="tooltip"]').tooltip()},$('[data-toggle="tooltip"]').tooltip(),e.watch("source.branch",async()=>{if(e.detectedType!=="repo")return;let w=e.branches.filter(D=>D.name==e.source.branch)[0];if(!w)return;!(!e.reconnectingSource&&e.isUpdate&&e._originalBranch===e.source.branch&&e.source.commit)&&!(e._preservingDraft&&e.source.commit)&&(e.source.commit=w.commit),e.readme=w.readme,await Le(),F()}),e.getBranches=async w=>{let A=parseGithubUrl(e.sourceUrl),D=m();try{let I=await t.get(`/api/repo/${A.owner}/${A.repo}/branches`,{params:{reconnect:e.reconnectingSource?"1":void 0,anonymizedRepoId:e.isUpdate&&i.repoId&&ue(e.sourceUrl)===e._originalFullName?i.repoId:void 0,connection:e.githubConnection,force:w===!0||e.reconnectingSource?"1":"0",repositoryID:he()}});if(!b(D))return;e.branches=I.data,e.sourceUnreachable=!1,e.source.branch||(e.source.branch=e.details.defaultBranch);let z=e.branches.filter(B=>B.name==e.source.branch);z.length>0&&(!(!e.reconnectingSource&&!w&&e.isUpdate&&!e.options.update&&e._originalBranch===e.source.branch&&e.source.commit)&&!(e._preservingDraft&&e.source.commit)&&(e.source.commit=z[0].commit),e.readme=z[0].readme,await Le(w))}catch(I){if(!b(D))return;e.branches=[],e.sourceUnreachable=I&&(I.status===404||I.data&&I.data.error==="repo_not_found");let z=I&&I.data&&I.data.error||(I&&I.status===404?"repo_not_found":"unknown_error");r("ERRORS."+z).then(B=>{e.toasts=e.toasts||[],e.addToast({title:"Error",date:new Date,body:B}),e.error=B},console.error),typeof x=="function"&&x("sourceUrl","missing",!1)}finally{E(D)}};async function be(){let w=parseGithubUrl(e.sourceUrl),A=m();try{N();let D=await t.get(`/api/repo/${w.owner}/${w.repo}/`,{params:{reconnect:e.reconnectingSource?"1":void 0,anonymizedRepoId:e.isUpdate&&i.repoId&&ue(e.sourceUrl)===e._originalFullName?i.repoId:void 0,connection:e.githubConnection,repositoryID:he(),force:"1"}});if(!b(A))return;e.details=D.data,e.reconnectingSource&&(e.reconnectRepositoryId=e.details.externalId),e.details&&e.details.id&&(e.repositoryID=e.details.id),e.repoId||(e.repoId=e.details.repo+"-"+generateRandomId(4)),await e.getBranches(e.reconnectingSource)}catch(D){if(!b(A))return;throw D.data&&(r("ERRORS."+D.data.error).then(I=>{e.addToast({title:"Error",date:new Date,body:I}),e.error=I},console.error),j(D.data.error)),x("sourceUrl","missing",!1),D}finally{E(A)}}async function Le(w){if(e.readme&&!w)return e.readme;let A=parseGithubUrl(e.sourceUrl),D=m();try{let I=await t.get(`/api/repo/${A.owner}/${A.repo}/readme`,{params:{reconnect:e.reconnectingSource?"1":void 0,anonymizedRepoId:e.isUpdate&&i.repoId&&ue(e.sourceUrl)===e._originalFullName?i.repoId:void 0,connection:e.githubConnection,force:w===!0?"1":"0",branch:e.source.branch,repositoryID:he()}});b(D,!0)&&(e.readme=I.data)}catch{b(D,!0)&&(e.readme="")}finally{E(D)}}function ze(){let w={terms:e.terms?e.terms.split(`
|
|
`):[],image:!!e.options.image,link:!!e.options.link,repoId:e.repoId};e.source&&e.source.branch&&(w.branchName=e.source.branch);try{let A=parseGithubUrl(e.sourceUrl);w.repoName=`${A.owner}/${A.repo}`}catch{}return w}function He(w,A,D){let I=null,z=0,B=()=>{if(e.detectedType!==w)return;I&&a.cancel(I);let ie=++z;e.previewStatus="loading",I=a(()=>{I=null;let Z=A();if(!Z){e.previewStatus="idle";return}t.post("/api/anonymize-preview",Z).then(le=>{ie===z&&(D(le.data,Z),e.previewStatus="ready")}).catch(()=>{ie===z&&(e.previewStatus="error")})},200)};return B.cancel=()=>{z++,I&&a.cancel(I),I=null},e.on("dispose",B.cancel),B}e.retryPreview=()=>{e.detectedType==="repo"&&Me(),e.detectedType==="pr"&&U(),e.detectedType==="gist"&&de()};let Me=He("repo",()=>e.readme?{content:e.readme,options:ze()}:null,w=>{if(typeof w?.content!="string")throw Error("Invalid preview response");e.anonymize_readme=w.content;let A="";try{let I=parseGithubUrl(e.sourceUrl),z=e.source.branch||e.details&&e.details.defaultBranch||"main";A=`https://github.com/${I.owner}/${I.repo}/raw/${z}/`}catch{}let D=renderMD(e.anonymize_readme,A);e.html_readme=D,a(Prism.highlightAll,150)});function F(){!e.anonymize||!e.anonymize.terms||(e.termsRegexWarning=!!e.terms&&!!e.terms.match(/[-[\]{}()*+?.,\\^$|#]/g),Me())}async function X(){let w=parseGithubUrl(e.sourceUrl),A=m();try{N();let D=await t.get(`/api/pr/${w.owner}/${w.repo}/${w.pullRequestId}`,{params:{connection:e.githubConnection}});if(!b(A))return;e.details=D.data,e.pullRequestId||(e.pullRequestId=w.repo+"-PR"+w.pullRequestId+"-"+generateRandomId(4))}catch(D){if(!b(A))return;throw D.data&&(r("ERRORS."+D.data.error).then(I=>{e.addToast({title:"Error",date:new Date,body:I}),e.error=I},console.error),j(D.data.error)),x("sourceUrl","missing",!1),D}finally{E(A)}}let J=Ue(new Map);function ne(){let w=new Set,A=e.details&&e.details.pullRequest;if(!A)return w;typeof A.title=="string"&&w.add(A.title),typeof A.body=="string"&&w.add(A.body),typeof A.diff=="string"&&w.add(A.diff);let D=A.comments||[];for(let I of D)typeof I.author=="string"&&w.add(I.author),typeof I.body=="string"&&w.add(I.body);return w}let U=He("pr",()=>{let w=ne(),A=Array.from(w);return A.length===0?null:{contents:A,options:ze()}},(w,A)=>{if(!Array.isArray(w?.contents)||w.contents.length!==A.contents.length||w.contents.some(z=>typeof z!="string"))throw Error("Invalid preview response");let D=A.contents,I=new Map;for(let z=0;z<D.length&&z<w.contents.length;z++)I.set(D[z],w.contents[z]);J.clear(),I.forEach((z,B)=>J.set(B,z))});e.anonymizePrContent=function(w){return w&&(J.has(w)?J.get(w):"")};async function Q(){let w=parseGithubUrl(e.sourceUrl),A=m();try{N(),e.gistOAuthRequired=!1,e.gistAppRequired=!1;let D=await t.get(`/api/gist/source/${w.gistId}`);if(!b(A))return;e.details=D.data,e.gistId||(e.gistId="gist-"+w.gistId.substring(0,6)+"-"+generateRandomId(4))}catch(D){if(!b(A))return;if(D.data?.error==="github_app_reconnect_required"){e.gistAppRequired=!0,x("sourceUrl","missing",!1);return}if(D.data?.error==="github_oauth_required"){e.gistOAuthRequired=!0,x("sourceUrl","missing",!1);return}throw D.data&&(r("ERRORS."+D.data.error).then(I=>{e.addToast({title:"Error",date:new Date,body:I}),e.error=I},console.error),j(D.data.error)),x("sourceUrl","missing",!1),D}finally{E(A)}}let H=Ue(new Map);function re(){let w=new Set,A=e.details&&e.details.gist;if(!A)return w;typeof A.description=="string"&&w.add(A.description),typeof A.ownerLogin=="string"&&w.add(A.ownerLogin);let D=A.files||[];for(let z of D)typeof z.filename=="string"&&w.add(z.filename),typeof z.content=="string"&&w.add(z.content);let I=A.comments||[];for(let z of I)typeof z.author=="string"&&w.add(z.author),typeof z.body=="string"&&w.add(z.body);return w}let de=He("gist",()=>{let w=re(),A=Array.from(w);return A.length===0?null:{contents:A,options:ze()}},(w,A)=>{if(!Array.isArray(w?.contents)||w.contents.length!==A.contents.length||w.contents.some(z=>typeof z!="string"))throw Error("Invalid preview response");let D=A.contents,I=new Map;for(let z=0;z<D.length&&z<w.contents.length;z++)I.set(D[z],w.contents[z]);H.clear(),I.forEach((z,B)=>H.set(B,z)),Ne()});e.anonymizeGistContent=function(w){return w&&(H.has(w)?H.get(w):"")},e.previewGistFiles=[];function Ne(){let w=e.details&&e.details.gist&&e.details.gist.files||[];e.previewGistFiles=w.map(A=>({filename:e.anonymizeGistContent(A.filename),content:e.anonymizeGistContent(A.content),language:A.language}))}e.watch("details.gist.files",Ne,!0),e.watch("terms",Ne);function C(){let w=e.conference;if(e.conference_data=null,!w)return;let A=w===S||e.isUpdate&&w===e._originalConference;w!==S&&(S=null),t.get("/api/conferences/"+w).then(D=>{e.conference===w&&(e.conference_data=D.data,e.conference_data.startDate=new Date(e.conference_data.startDate),e.conference_data.endDate=new Date(e.conference_data.endDate),!A&&(e.options.expirationDate=new Date(e.conference_data.endDate),e.options.expirationMode="remove",e.options.update=e.conference_data.options.update,e.options.image=e.conference_data.options.image,e.options.pdf=e.conference_data.options.pdf,e.options.notebook=e.conference_data.options.notebook,e.options.link=e.conference_data.options.link))},()=>{e.conference===w&&(e.conference_data=null)})}function N(){x("repoId","used",!0),x("repoId","format",!0),x("pullRequestId","used",!0),x("pullRequestId","format",!0),x("gistId","used",!0),x("gistId","format",!0),x("sourceUrl","used",!0),x("sourceUrl","missing",!0),x("sourceUrl","access",!0),x("sourceUrl","github",!0),x("commit","exists",!0),x("conference","activated",!0),x("terms","format",!0),e.termsRegexWarning=!1}function V(){if(e.detectedType==="repo"&&e.options.expirationMode==="never")return!1;let w=e.anonymize&&e.anonymize.expirationDate;return!e.options.expirationDate||w&&w.invalid?(w&&w.setDirty&&w.setDirty(),e.error="Please choose a valid expiration date.",!0):!1}function j(w){let A=e.detectedType==="pr"?"pullRequestId":e.detectedType==="gist"?"gistId":"repoId";switch(w){case"repoId_already_used":x(A,"used",!1);break;case"invalid_repoId":x(A,"format",!1);break;case"options_not_provided":x(A,"format",!1);break;case"repo_already_anonymized":x("sourceUrl","used",!1);break;case"invalid_terms_format":x("terms","format",!1);break;case"repo_not_found":x("sourceUrl","missing",!1);break;case"repo_not_accessible":x("sourceUrl","access",!1);break;case"commit_not_found":x("commit","exists",!1);break;case"conf_not_activated":x("conference","activated",!1);break}}e.coauthors=e.coauthors||[],e.coauthorResults=[],e.coauthorError="",e.searchCoauthors=()=>{let w=(e.coauthorSearch||"").trim();if(e.coauthorError="",w.length<2){e.coauthorResults=[];return}t.get("/api/user/search/github-users",{params:{q:w}}).then(A=>{let D=new Set((e.coauthors||[]).map(I=>(I.username||"").toLowerCase()));e.coauthorResults=(A.data||[]).filter(I=>!D.has((I.username||"").toLowerCase()))},()=>{e.coauthorResults=[]})},e.addCoauthor=(w,A)=>{A&&A.preventDefault(),!(!w||!w.username)&&t.post("/api/repo/"+e.repoId+"/coauthors",{username:w.username}).then(D=>{e.coauthors=D.data||[],e.coauthorResults=[],e.coauthorSearch="",e.coauthorError=""},D=>{let I=D&&D.data&&D.data.error||"unknown_error";e.coauthorError=I})},e.removeCoauthor=w=>{!w||!w.username||confirm("Remove co-author "+w.username+"?")&&t.delete("/api/repo/"+e.repoId+"/coauthors/"+encodeURIComponent(w.username)).then(A=>{e.coauthors=A.data||[]},A=>{let D=A&&A.data&&A.data.error||"unknown_error";e.coauthorError=D})},e.anonymizeRepo=w=>{if(e.sourceLoading){e.error="Wait for the source to finish loading before saving.";return}if(e.reconnectingSource&&!e.reconnectRepositoryId)return;if(V()){e.editRepository();return}if(e.anonymize?.invalid||e.sourceUrlError){e.editRepository(),e.error="Please correct the highlighted fields before saving.";return}if(e.hostingNeedsPayment()&&e.options.expirationMode==="never"){e.hostingReview=!0,Ge(()=>document.getElementById("repository-hosting")?.scrollIntoView({block:"center"}));return}let A=w.currentTarget||w.target.closest?.("button")||w.target;A.disabled=!0;let D=parseGithubUrl(e.sourceUrl),I={repoId:e.repoId,terms:e.terms.trim().split(`
|
|
`).filter(B=>B),connection:e.githubConnection,fullName:`${D.owner}/${D.repo}`,repository:e.sourceUrl,reconnectRepositoryId:e.reconnectRepositoryId,options:e.options,source:e.source,conference:e.conference};e.details&&(I.options.pageSource=e.details.pageSource),N();let z=e.isUpdate?"/api/repo/"+e.repoId:"/api/repo/";t.post(z,I,{headers:{"Content-Type":"application/json"}}).then(()=>{v.clear(),window.location.href="/status/"+e.repoId},B=>{B.data&&(r("ERRORS."+B.data.error).then(ie=>{e.error=ie},console.error),j(B.data.error),["quota_exceeded","subscription_required_for_never_expiration"].includes(B.data.error)&&(B.data.error==="subscription_required_for_never_expiration"&&(e._existingNever=!1),e.hostingQuotaBlocked=!0,e.hostingReview=!0,Ge(()=>document.getElementById("repository-hosting")?.scrollIntoView({block:"center"}))))}).finally(()=>{A.disabled=!1})},e.anonymizeGist=w=>{if(e.sourceLoading){e.error="Wait for the source to finish loading before saving.";return}if(V())return;if(e.anonymize?.invalid||e.sourceUrlError){e.error="Please correct the highlighted fields before saving.";return}let A=w.currentTarget||w.target.closest?.("button")||w.target;A.disabled=!0;let D=parseGithubUrl(e.sourceUrl),I={gistId:e.gistId,terms:e.terms.trim().split(`
|
|
`).filter(B=>B),source:{gistId:D.gistId},options:e.options,conference:e.conference};N();let z=e.isUpdate?"/api/gist/"+e.gistId:"/api/gist/";t.post(z,I,{headers:{"Content-Type":"application/json"}}).then(()=>{v.clear(),window.location.href="/gist/"+e.gistId},B=>{B.data&&(r("ERRORS."+B.data.error).then(ie=>{e.error=ie},console.error),j(B.data.error))}).finally(()=>{A.disabled=!1})},e.anonymizePullRequest=w=>{if(e.sourceLoading){e.error="Wait for the source to finish loading before saving.";return}if(V())return;if(e.anonymize?.invalid||e.sourceUrlError){e.error="Please correct the highlighted fields before saving.";return}let A=w.currentTarget||w.target.closest?.("button")||w.target;A.disabled=!0;let D=parseGithubUrl(e.sourceUrl),I={pullRequestId:e.pullRequestId,connection:e.githubConnection,terms:e.terms.trim().split(`
|
|
`).filter(B=>B),source:{repositoryFullName:`${D.owner}/${D.repo}`,pullRequestId:D.pullRequestId},options:e.options,conference:e.conference};N();let z=e.isUpdate?"/api/pr/"+e.pullRequestId:"/api/pr/";t.post(z,I,{headers:{"Content-Type":"application/json"}}).then(()=>{v.clear(),window.location.href="/pr/"+e.pullRequestId},B=>{B.data&&(r("ERRORS."+B.data.error).then(ie=>{e.error=ie},console.error),j(B.data.error))}).finally(()=>{A.disabled=!1})},e.watch("conference",()=>{C()}),e.watch("terms",()=>{e.detectedType==="repo"&&F(),e.detectedType==="pr"&&U(),e.detectedType==="gist"&&de()}),e.watch("options.image",()=>{e.detectedType==="repo"&&F(),e.detectedType==="pr"&&U(),e.detectedType==="gist"&&de()}),e.watch("options.link",()=>{e.detectedType==="repo"&&F(),e.detectedType==="pr"&&U(),e.detectedType==="gist"&&de()}),e.watch("details",()=>{e.detectedType==="pr"&&U(),e.detectedType==="gist"&&de()},!0)},gi=function(e,t,o,i,s,r){let a=pt();il();let p=xt();e.on("dark-mode",(F,X)=>{e.aceOption&&(X?e.aceOption.theme="nord_dark":e.aceOption.theme="chrome")});let f=0,g=null,y=null;e.fileLoadingSlow=!1,e.fileReceivedBytes=0;function b(){g&&(g.resolve(),g=null),y&&(a.timeout.cancel(y),y=null)}let m=!1;e.on("dispose",()=>{m=!0,f++,b(),E&&E.resolve()}),e.files=[],e.isMac=/Mac|iPhone|iPad|iPod/.test(navigator.platform||navigator.userAgent),e.fileSearchQuery="",e.fileSearchResults=null,e.fileSearchLoading=!1,p(document,"click",F=>{e.symbolsOpen&&!F.target.closest?.(".symbols")&&(e.symbolsOpen=!1),e.moreOpen&&!F.target.closest?.(".tb-more")&&(e.moreOpen=!1),e.tocOpen&&!F.target.closest?.(".tb-toc-m")&&(e.tocOpen=!1),e.gotoOpen&&F.target.isConnected&&!F.target.closest?.(".goto-pop, .btn-goto, .tb-more")&&(e.gotoOpen=!1),e.accountOpen&&!F.target.closest?.(".acct")&&(e.accountOpen=!1),e.helpOpen&&!F.target.closest?.(".vb-help")&&(e.helpOpen=!1)}),p(document,"keydown",F=>{F.key==="Escape"&&(e.symbolsOpen=!1,e.moreOpen=!1,e.tocOpen=!1,e.gotoOpen=!1,e.accountOpen=!1,e.helpOpen=!1),(F.ctrlKey||F.metaKey)&&!F.altKey&&F.key&&F.key.toLowerCase()==="f"&&e.type==="html"&&window.document.querySelector(".reading-layout")&&(F.preventDefault(),e.toggleMdFind(!0))}),p(document,"keydown",function(F){if((F.metaKey||F.ctrlKey)&&F.key==="k"){F.preventDefault();var X=document.querySelector(".tree-search-input");X&&(X.focus(),X.select())}});var E=null;e.onFileSearchChange=function(){E&&(E.resolve(),E=null);let F=e.fileSearchQuery;if(!F||F.length<2){e.fileSearchResults=null,e.fileSearchLoading=!1;return}e.fileSearchLoading=!0;let X=r.defer();E=X,t.get(`/api/repo/${e.repoId}/files/search?q=${encodeURIComponent(F)}`,{timeout:X.promise}).then(function(J){if(!(m||E!==X)){E=null,e.fileSearchLoading=!1;var ne={};e.files.forEach(function(I){ne[(I.path||"")+"/"+I.name]=!0});for(var U=[],Q={},H=0;H<J.data.length;H++){var re=J.data[H];if(re.path)for(var de=re.path.split("/"),Ne="",C=0;C<de.length;C++){var N=Ne;Ne=Ne?Ne+"/"+de[C]:de[C];var V=N+"/"+de[C];!ne[V]&&!Q[V]&&(Q[V]=!0,U.push({name:de[C],path:N}))}}U.sort(function(I,z){return(I.path||"").split("/").length-(z.path||"").split("/").length}),U.length>0&&e.files.push.apply(e.files,U);for(var j=[],w=0;w<J.data.length;w++){var A=J.data[w],D=(A.path||"")+"/"+A.name;!ne[D]&&A.size!=null&&(j.push(A),ne[D]=!0)}j.length>0&&e.files.push.apply(e.files,j),e.fileSearchResults=J.data}},function(){!m&&E===X&&(E=null,e.fileSearchLoading=!1,e.fileSearchResults=[])})};let P={yml:"yaml",txt:"text",py:"python",js:"javascript",ts:"typescript"},k=["license","txt"],v=["png","jpg","jpeg","gif","svg","ico","bmp","tiff","tif","webp","avif","heif","heic"],S=["wav","mp3","ogg","wma","flac","aac","m4a"],_=["mp4","avi","webm","mov","mpg","mpeg","mkv","flv","wmv","3gp","3g2","m4v","f4v","f4p","f4a","f4b"];e.on("routeUpdate",function(F,X){if(e.repoId!=i.repoId)return Me();if((i.path||"")!=e.filePath){window.matchMedia?.("(max-width: 767px)").matches&&(e.sidebarCollapsed=!0),e.filePath=i.path||"",e.paths=e.filePath.split("/").filter(J=>J&&J.trim().length>0),He();for(let J=0;J<e.paths.length-1;J++){let ne=J>0?e.paths.slice(0,J).join("/"):"";e.files.some(Q=>Q.path===ne)||e.getFiles(ne)}}});function M(){if(e.paths[0]!="")return;let F=["readme.md","readme.txt","readme.org","readme.1st","readme"],X={};for(let ne of e.files)ne.name.toLowerCase().indexOf("readme")>-1&&(X[ne.name.toLowerCase()]=ne.name);let J=null;for(let ne of F)if(X[ne]){J=ne;break}if(!J&&Object.keys(X).length>0&&(J=Object.keys(X)[0]),J){let ne=o.url();ne[ne.length-1]!="/"&&(ne+="/"),o.url(ne+encodePathForUrl(X[J]))}}e.fileCounts=null;let L=0,q=new Set,G=!1;e.getFiles=function(F,X=!1){let J=e.repoId,ne=L;return t.get(`/api/repo/${e.repoId}/files/?path=${encodeURIComponent(F)}&v=${e.options.lastUpdateDate}`).then(function(U){if(m||J!==e.repoId||ne!==L)return[];let Q=F||"";return e.files=e.files.filter(H=>H.path!==Q),e.files.push(...U.data),se(Q,ne),U.data},function(U){if(m||J!==e.repoId||ne!==L)return[];X||(e.type="error",e.content=vi(U),e.files=[])})};function se(F,X){if(G||q.has(F))return;q.add(F);let J=e.repoId;t.get(`/api/repo/${e.repoId}/files/counts?path=${encodeURIComponent(F)}`).then(function(ne){m||J!==e.repoId||X!==L||(e.fileCounts={...e.fileCounts,...ne.data})},function(){m||J!==e.repoId||X!==L||(G=!0)})}function ee(){return e.files.filter(F=>F.name==e.paths[e.paths.length-1]&&F.path==e.paths.slice(0,e.paths.length-1).join("/"))[0]}var R=null;e.on("dispose",function(){R&&a.interval.cancel(R)});function K(F){if(m)return;let X=e.repoId;t.get(`/api/repo/${e.repoId}/options`).then(J=>{if(!(m||X!==e.repoId)){if(e.options=J.data,e.options.url){window.location=e.options.url;return}F&&F(J.data)}},J=>{if(!(m||X!==e.repoId)){var ne=J.data||{};if(ne.error==="rate_limited"&&ne.resetAt){let Q=function(){var H=Math.max(0,Math.ceil((e.rateLimitResetAt-Date.now())/1e3));if(H<=0)e.rateLimitCountdown="",e.rateLimitResetAt=0,R&&(a.interval.cancel(R),R=null),K(F);else{var re=Math.floor(H/60),de=H%60;e.rateLimitCountdown=re>0?re+"m "+de+"s":de+"s"}};var U=Q;e.type="rate_limited",e.rateLimitResetAt=ne.resetAt,R&&a.interval.cancel(R),Q(),R=a.interval(Q,1e3)}else ne.error==="repository_not_ready"?(e.type="loading",a.timeout(function(){K(F)},3e3)):(e.type="error",e.content=vi(J))}})}e.toggleSource=function(){e.showSource=!e.showSource},e.toggleAllowScripts=function(){e.allowScripts=!e.allowScripts};let te=(()=>{try{return window.localStorage?.getItem("wrapLines")}catch{return null}})();e.wrapLines=(te??(window.matchMedia?.("(max-width: 767px)").matches?"false":"true"))!=="false",e.toggleWrap=function(){e.wrapLines=!e.wrapLines;try{window.localStorage?.setItem("wrapLines",String(e.wrapLines))}catch{}e.codeEditor?.session.setUseWrapMode(e.wrapLines)};function ve(){return window.document.querySelector(".reading-layout .markdown-body")}function x(){let F=ve();F&&(F.querySelectorAll("mark.md-find").forEach(X=>{X.replaceWith(window.document.createTextNode(X.textContent))}),F.normalize())}e.runMdFind=function(){x(),e.mdFindTotal=0,e.mdFindIndex=0;let F=(e.mdFindQuery||"").trim(),X=ve();if(!F||!X)return;let J=!!e.mdFindCase,ne=J?F:F.toLowerCase(),U=window.document.createTreeWalker(X,4),Q=[];for(;U.nextNode();)(J?U.currentNode.nodeValue:U.currentNode.nodeValue.toLowerCase()).includes(ne)&&Q.push(U.currentNode);let H=0;for(let re of Q){let de=re.nodeValue,Ne=J?de:de.toLowerCase(),C=window.document.createDocumentFragment(),N=0,V;for(;(V=Ne.indexOf(ne,N))!==-1;){C.appendChild(window.document.createTextNode(de.slice(N,V)));let j=window.document.createElement("mark");j.className="md-find",j.textContent=de.slice(V,V+F.length),C.appendChild(j),H++,N=V+F.length}C.appendChild(window.document.createTextNode(de.slice(N))),re.parentNode.replaceChild(C,re)}e.mdFindTotal=H,H&&e.stepMdFind(0)},e.stepMdFind=function(F){let X=ve();if(!X||!e.mdFindTotal)return;let J=X.querySelectorAll("mark.md-find");e.mdFindIndex=(e.mdFindIndex+F+J.length)%J.length,J.forEach((ne,U)=>ne.classList.toggle("is-current",U===e.mdFindIndex)),J[e.mdFindIndex]?.scrollIntoView({block:"center",behavior:"smooth"})},e.toggleMdFind=function(F){if(e.mdFindOpen=F===void 0?!e.mdFindOpen:F,!e.mdFindOpen){x(),e.mdFindTotal=0;return}Ge(()=>window.document.querySelector(".md-find-input")?.focus())},e.findInFile=function(){let F=e.codeEditor;if(!F)return;F.focus(),F.execCommand("find");let X=()=>{let J=F.searchBox?.element;J&&(F.renderer.setScrollMargin(52,12,0,0),!J._dockObserver&&(J._dockObserver=new MutationObserver(()=>{F.renderer.setScrollMargin(J.style.display!=="none"?52:12,12,0,0)}),J._dockObserver.observe(J,{attributes:!0,attributeFilter:["style"]})))};X(),setTimeout(X,150)};let ue=[[/^\s*(?:export\s+)?(?:default\s+)?(?:abstract\s+)?class\s+([A-Za-z_$][\w$]*)/,"class"],[/^\s*(?:export\s+)?(?:default\s+)?(?:async\s+)?function\s*\*?\s*([A-Za-z_$][\w$]*)/,"function"],[/^\s*(?:export\s+)?(?:const|let|var)\s+([A-Za-z_$][\w$]*)\s*=\s*(?:async\s*)?(?:function|\([^)]*\)\s*=>|[A-Za-z_$][\w$]*\s*=>)/,"function"],[/^\s*(?:async\s+)?def\s+([A-Za-z_]\w*)/,"function"],[/^\s*class\s+([A-Za-z_]\w*)/,"class"],[/^\s*func\s+(?:\([^)]*\)\s*)?([A-Za-z_]\w*)/,"function"],[/^\s*(?:pub\s+)?fn\s+([A-Za-z_]\w*)/,"function"],[/^\s*(?:public|private|protected|static|\s)+[\w<>\[\],\s]+\s+([A-Za-z_]\w*)\s*\([^;]*\)\s*\{?\s*$/,"function"]],he={content:null,list:[]};e.symbolsOpen=!1,e.symbols=function(){if(typeof e.content!="string"||e.content.length>2e6)return[];if(he.content===e.content)return he.list;let F=[];return e.content.split(`
|
|
`).forEach((X,J)=>{for(let[ne,U]of ue){let Q=ne.exec(X);if(Q&&!/^(if|for|while|switch|return|catch)$/.test(Q[1])){F.push({name:Q[1],kind:U,line:J+1});break}}}),he={content:e.content,list:F.slice(0,300)},he.list},e.goToSymbol=function(F){e.symbolsOpen=!1;let X=e.codeEditor;X&&(X.scrollToLine(F-1,!0,!0,()=>{}),X.gotoLine(F,0,!0),window.history.replaceState(null,"",window.location.pathname+window.location.search+"#L"+F),window.dispatchEvent(new HashChangeEvent("hashchange")))},e.gotoLine=function(){e.codeEditor&&(e.moreOpen=!1,e.gotoError="",e.gotoValue=String(e.codeEditor.getCursorPosition().row+1),e.gotoOpen=!0,setTimeout(()=>{let F=window.document.getElementById("goto-input");F&&(F.focus(),F.select())},0))},e.closeGoto=function(){e.gotoOpen=!1,e.gotoError="",e.codeEditor?.focus()},e.submitGoto=function(){let F=e.codeEditor;if(!F)return;let X=/^\s*:?\s*(\d+)\s*(?:[:,]\s*(\d+))?\s*$/.exec(e.gotoValue||""),J=F.session.getLength();if(!X||+X[1]<1||+X[1]>J){e.gotoError="Enter a line from 1 to "+J;return}F.gotoLine(+X[1],X[2]?Math.max(0,+X[2]-1):0,!0),e.gotoOpen=!1,e.gotoError="",F.focus()},e.rootEntries=function(){return[...e.files||[]].sort((F,X)=>{let J=F.size==null,ne=X.size==null;return J!==ne?J?-1:1:F.name.localeCompare(X.name)})},e.formatSize=function(F){if(F==null)return"";if(F<1024)return F+" B";let X=F/1024;return X<1024?X.toFixed(1)+" KB":(X/1024).toFixed(1)+" MB"},e.fileSize=function(F){if(!F)return null;let X=F.replace(/^\/+/,""),J=(e.files||[]).find(ne=>(ne.path?ne.path+"/":"")+ne.name===X);return J&&J.size!=null?J.size:null},e.revealFolder=function(F){e.sidebarHidden=!1,e.sidebarCollapsed=!1,Ge(()=>{let X=window.document.querySelector('.files a[data-path="/'+(window.CSS?.escape?window.CSS.escape(F):F)+'"]');X&&(X.closest("li")?.classList.contains("open")||X.click(),X.scrollIntoView({block:"nearest"}),X.focus())})},e.redactionCount=function(){return typeof e.content!="string"?0:((e.type==="html"?e.content.replace(/<[^>]*>/g," "):e.content).match(bo)||[]).length},e.renderRedacted=sl;let Ee=F=>F.toLowerCase().trim().replace(/[^a-z0-9\s-]/g,"").replace(/\s+/g,"-").slice(0,60)||"section";e.renderReadme=function(F){let X=e.renderRedacted(F);if(!X||typeof window.DOMParser!="function")return X;let J=new window.DOMParser().parseFromString("<div>"+X+"</div>","text/html"),ne={};return J.querySelectorAll("h1, h2, h3").forEach(U=>{let Q=U.id||Ee(U.textContent);ne[Q]?Q+="-"+ ++ne[Q]:ne[Q]=1,U.id=Q}),J.body.firstChild.innerHTML};let ye={content:null,list:[]};e.readmeToc=function(){if(e.type!=="html"||typeof e.content!="string")return[];if(ye.content===e.content)return ye.list;let X=[...new window.DOMParser().parseFromString("<div>"+e.renderReadme(e.sanitize?e.sanitize(e.content):e.content)+"</div>","text/html").querySelectorAll("h2, h3")].map(J=>({id:J.id,text:J.textContent.trim(),level:J.tagName==="H3"?3:2})).slice(0,40);return ye={content:e.content,list:X},X},e.activeHeading=null,p(window,"scroll",()=>{let F=e.readmeToc?e.readmeToc():[];if(!F.length)return;let X=150,J="",ne="";for(let U of F){let Q=window.document.getElementById(U.id);if(!Q)continue;let H=Q.getBoundingClientRect().top;H<X?J=U.id:!ne&&H<window.innerHeight-80&&(ne=U.id)}ne&&(J=ne),e.activeHeading!==J&&(e.activeHeading=J)},{capture:!0,passive:!0}),e.scrollToHeading=function(F){if(!F){(window.document.querySelector(".explorer-content, .file-card-body, .main-pane")||window).scrollTo({top:0,behavior:"smooth"}),e.activeHeading="";return}let X=window.document.getElementById(F);X&&X.scrollIntoView({behavior:"smooth",block:"start"}),e.activeHeading=F},e.redactParts=function(F){let X=[],J=0,ne,U=/\bXXXX-(\d+)\b/g;for(F=String(F||"");ne=U.exec(F);)ne.index>J&&X.push({t:F.slice(J,ne.index)}),X.push({n:ne[1]}),J=ne.index+ne[0].length;return J<F.length&&X.push({t:F.slice(J)}),X},e.pathCopied=!1,e.copyPath=async function(){window.navigator.clipboard?.writeText&&(await window.navigator.clipboard.writeText(e.filePath||""),e.pathCopied=!0,setTimeout(()=>{e.pathCopied=!1},1600))},e.contentCopied=!1,e.copyContent=async function(){if(typeof e.content!="string"||!window.navigator.clipboard?.writeText)return;let F=e.content;if(e.type==="html"&&e.url)try{F=await(await window.fetch(e.url,{credentials:"same-origin"})).text()}catch{return}await window.navigator.clipboard.writeText(F),e.contentCopied=!0,setTimeout(()=>{e.contentCopied=!1},1600)};function be(F){return P[F]?P[F]:F}function Le(F){return F=="pdf"?"pdf":F=="html"||F=="htm"?"html-doc":F=="md"?"md":F=="org"?"org":F=="ipynb"?"IPython":k.indexOf(F)>-1?"text":v.indexOf(F)>-1?"image":_.indexOf(F)>-1?"media":S.indexOf(F)>-1?"audio":"code"}function ze(F,X){let J=f;if(!F){e.type="error",e.content="no_file_selected";return}let ne=e.type;(ne==="code"||ne==="text")&&ko().catch(()=>{}),e.type="loading",e.content="loading",e.fileLoadingSlow=!1,e.fileReceivedBytes=0;let U=r.defer();g=U,y=a.timeout(()=>{!m&&J===f&&e.type==="loading"&&(e.fileLoadingSlow=!0)},1500);let Q=X&&X.sha||"0";t.get(`/api/repo/${e.repoId}/file/${encodePathForUrl(F)}?v=`+Q,{timeout:U.promise,onDownloadProgress:H=>{!m&&J===f&&(e.fileReceivedBytes=H)},transformResponse:H=>H}).then(H=>{if(!(m||J!==f)){if(b(),e.type=ne,e.content=H.data,e.content==""&&(e.content=null),e.type=="md"&&(e.content=renderMD(H.data,o.url()+"/../"),e.type="html"),e.type=="org"){let de=contentAbs2Relative(H.data);var re=new Org.Parser().parse(de).convert(Org.ConverterHTML,{headerOffset:1,exportFromLineNumber:!1,suppressSubScriptHandling:!0,suppressAutoLink:!1});e.content=DOMPurify.sanitize(re.toString()),e.type="html"}e.type=="code"&&H.headers("content-type")=="application/octet-stream"&&(e.type="binary",e.content="binary"),a.timeout(()=>{Prism.highlightAll()},50)}},H=>{m||J!==f||(b(),e.type="error",e.content=vi(H))})}function He(){f++,b(),e.content="",e.file=ee();let F="0";e.file&&e.file.sha&&(F=e.file.sha),e.url=`/api/repo/${e.repoId}/file/${encodePathForUrl(e.filePath)}?v=${F}`;let X=e.filePath.substring(0,e.filePath.lastIndexOf("/")+1);e.fileBaseUrl=`/api/repo/${e.repoId}/file/${X?encodePathForUrl(X):""}`,e.showSource=!1,e.allowScripts=!1;let J=e.filePath.toLowerCase(),ne=J.lastIndexOf(".");ne>-1&&(J=J.substring(ne+1));let U={javascript:"JavaScript",typescript:"TypeScript",tsx:"TSX",jsx:"JSX",python:"Python",java:"Java",c_cpp:"C/C++",csharp:"C#",golang:"Go",rust:"Rust",ruby:"Ruby",php:"PHP",html:"HTML",css:"CSS",scss:"SCSS",json:"JSON",yaml:"YAML",markdown:"Markdown",sh:"Shell",dockerfile:"Dockerfile",xml:"XML",sql:"SQL",kotlin:"Kotlin",swift:"Swift",scala:"Scala",r:"R",julia:"Julia",latex:"LaTeX",toml:"TOML",text:""},Q=be(J);if(e.languageName=U[Q]??(Q?Q.charAt(0).toUpperCase()+Q.slice(1):""),e.aceOption={readOnly:!0,useWrapMode:!0,showGutter:!0,theme:"chrome",useSoftTab:!0,tabSize:2,fontSize:window.matchMedia?.("(max-width: 767px)").matches?12:13,keyBinding:"vscode",fullLineSelection:!0,highlightActiveLine:!1,highlightGutterLine:!1,cursor:"hide",showInvisibles:!1,showIndentGuides:!1,showPrintMargin:!1,highlightSelectedWord:!1,enableBehaviours:!0,fadeFoldWidgets:!1,mode:be(J),onLoad:function(H){e.codeEditor=Qn(H);{let D=H.session,I=D.getTokens.bind(D),z=/\bXXXX-\d+\b/g;if(D.getTokens=function(B){let ie=I(B);if(!ie.some(le=>le.value.indexOf("XXXX-")!==-1))return ie;let Z=[];for(let le of ie){if(le.value.indexOf("XXXX-")===-1){Z.push(le);continue}let ce=0;z.lastIndex=0;let Ce;for(;Ce=z.exec(le.value);)Ce.index>ce&&Z.push({type:le.type,value:le.value.slice(ce,Ce.index)}),Z.push({type:"redacted.n"+Ce[0].slice(5),value:Ce[0]}),ce=Ce.index+Ce[0].length;ce<le.value.length&&Z.push({type:le.type,value:le.value.slice(ce)})}return Z},!window.document.getElementById("redact-index-rules")){let B=window.document.createElement("style");B.id="redact-index-rules",B.textContent=Array.from({length:99},(ie,Z)=>`.ace_redacted.ace_n${Z+1}::after{content:"${Z+1}"}`).join(""),window.document.head.appendChild(B)}H.renderer.updateFull(!0)}H.session.setUseWrapMode(e.wrapLines!==!1);let re=H.container.closest?.(".file-card"),de=()=>{if(!re)return;let D=H.renderer,I=(D.layerConfig?.width||0)-(D.$size?.scrollerWidth||0);re.classList.toggle("at-right-edge",I<=2||D.getScrollLeft()>=I-2)};H.session.on("changeScrollLeft",de),H.renderer.on("afterRender",de),window.matchMedia?.("(max-width: 767px)").matches&&H.setOption("hScrollBarAlwaysVisible",!0);let Ne=ace.require("ace/range").Range,C=null;function N(D,I){C!==null&&(H.session.removeMarker(C),C=null),D!=null&&(C=H.session.addMarker(new Ne(D,0,I,1),"highlighted-line","fullLine"))}function V(D){let I=window.location.hash.match(/^#L(\d+)(?:-L(\d+))?/);if(!I){N(null);return}let z=parseInt(I[1])-1,B=I[2]?parseInt(I[2])-1:z;N(z,B),D&&a.timeout(()=>{H.scrollToLine(z,!0,!0,function(){})},100)}V(!0);let j=null;H.on("guttermousedown",function(D){let I=D.getDocumentPosition().row,z=D.domEvent&&D.domEvent.shiftKey,B=I,ie=I;z&&j!==null?(B=Math.min(j,I),ie=Math.max(j,I)):j=I;let Z=B===ie?`#L${B+1}`:`#L${B+1}-L${ie+1}`,le=window.location.pathname+window.location.search+Z;window.history.replaceState(null,"",le),N(B,ie),D.stop()});let w=p(window,"hashchange",()=>V(!1));H.setFontSize(e.aceOption.fontSize),H.setOptions({fontFamily:"'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace"}),H.container.style.lineHeight="20px",H.renderer.setPadding(16),H.renderer.setScrollMargin(12,12,0,0),H.renderer.updateFontSize(),H.setReadOnly(e.aceOption.readOnly),H.setKeyboardHandler(e.aceOption.keyBinding),H.setSelectionStyle(e.aceOption.fullLineSelection?"line":"text"),H.setOption("displayIndentGuides",!1),H.setHighlightActiveLine(e.aceOption.highlightActiveLine),e.aceOption.cursor=="hide"&&(H.renderer.$cursorLayer.element.style.display="none"),H.setHighlightGutterLine(e.aceOption.highlightGutterLine),H.setShowInvisibles(e.aceOption.showInvisibles),H.setDisplayIndentGuides(e.aceOption.showIndentGuides),H.renderer.setShowPrintMargin(e.aceOption.showPrintMargin),H.setHighlightSelectedWord(e.aceOption.highlightSelectedWord),H.session.setUseSoftTabs(e.aceOption.useSoftTab),H.session.setTabSize(e.aceOption.tabSize),H.setBehavioursEnabled(e.aceOption.enableBehaviours),H.setFadeFoldWidgets(e.aceOption.fadeFoldWidgets);let A=p(window,"keydown",D=>{if((D.ctrlKey||D.metaKey)&&!D.altKey&&D.key.toLowerCase()==="g"&&document.body.contains(H.container)){D.preventDefault(),e.gotoLine();return}if(D.altKey&&!D.ctrlKey&&!D.metaKey&&D.key.toLowerCase()==="z"&&document.body.contains(H.container)){D.preventDefault(),e.toggleWrap();return}(D.ctrlKey||D.metaKey)&&!D.altKey&&D.key.toLowerCase()==="f"&&document.body.contains(H.container)&&(D.preventDefault(),e.findInFile())});return()=>{w(),A()}}},e.isDarkMode&&(e.aceOption.theme="nord_dark"),e.type=Le(J),e.type=="pdf"){e.content="pdf";return}ze(e.filePath,e.file)}e.isSourceAccessError=()=>["repo_not_found","token_expired","github_app_access_required","github_app_reconnect_required","repo_saml_enforcement","repo_access_limited"].includes(e.content),e.retryContent=()=>Me();function Me(){f++,b(),e.files=[],e.content=null,e.fileCounts=null,L++,q=new Set,G=!1,e.fileSearchQuery="",e.onFileSearchChange(),e.repoId=i.repoId,e.type="loading",e.filePath=i.path||"",e.paths=e.filePath.split("/");let F=e.repoId;K(function(X){if(e.filePath){He();let ne=[...new Set(e.paths.map((U,Q)=>e.paths.slice(0,Q).join("/")))];r.all(ne.map(U=>e.getFiles(U,!0)));return}var J=r.resolve();for(let ne=0;ne<e.paths.length;ne++){let U=ne>0?e.paths.slice(0,ne).join("/"):"";J=J.then(function(){return e.getFiles(U)}).then(function(){if(e.type==="error")return r.reject("error")})}J.then(function(){m||F!==e.repoId||(e.files.length==1&&e.files[0].name==""?(e.files=[],e.type="empty"):(M(),He()))})})}Me()},hl=function(e,t,o,i,s){async function r(f){t.get(`/api/pr/${e.pullRequestId}/options`).then(g=>{if(e.options=g.data,e.options.url){window.location=e.options.url;return}f&&f(g.data)},g=>{e.type="error",e.content=g.data.error})}async function a(f){t.get(`/api/pr/${e.pullRequestId}/content`).then(g=>{e.details=g.data,e.tabState={active:g.data.diff?"diff":"comments"},f&&f(g.data)},g=>{e.type="error",e.content=g.data.error})}function p(){e.pullRequestId=i.pullRequestId,e.type="loading",r(f=>{a()})}p()},vl=function(e,t,o,i,s){async function r(f){t.get(`/api/gist/${e.gistId}/options`).then(g=>{if(e.options=g.data,e.options.url){window.location=e.options.url;return}f&&f(g.data)},g=>{e.type="error",e.content=g.data.error})}async function a(f){t.get(`/api/gist/${e.gistId}/content`).then(g=>{e.details=g.data;let y=g.data&&g.data.files&&g.data.files.length;e.tabState={active:y?"files":"comments"},f&&f(g.data)},g=>{e.type="error",e.content=g.data.error})}function p(){e.gistId=i.gistId,e.type="loading",r(()=>{a()})}p()},gl=function(e,t,o){e.watch("user.status",()=>{e.user==null&&o.url("/")}),e.user==null&&o.url("/"),e.conferences=[],e.loading=!0,e.error="",e.search="";let i="conferences.filterPrefs",s={filters:{status:{ready:!0,expired:!1,removed:!1}},orderBy:"name"},r=loadFilterPrefs(i)||{};e.filters={status:Object.assign({},s.filters.status,r.filters&&r.filters.status||{})},e.orderBy=r.orderBy||s.orderBy,e.watch("orderBy",()=>{saveFilterPrefs(i,{filters:e.filters,orderBy:e.orderBy})}),e.watch("filters",()=>{saveFilterPrefs(i,{filters:e.filters,orderBy:e.orderBy})},!0),e.removeConference=function(a){if(!a.removing&&confirm(`Are you sure that you want to remove the conference ${a.name}? All the repositories linked to this conference will expire.`)){a.removing=!0;let p=Ue({title:`Removing ${a.name}...`,date:new Date,body:`The conference ${a.name} is going to be removed.`});e.addToast(p),t.delete(`/api/conferences/${a.conferenceID}`).then(()=>{p.title=`${a.name} is removed.`,p.body=`The conference ${a.name} is removed.`,e.loadConferences()}).catch(()=>{p.title="Unable to remove conference",p.body="Please try again. The conference has not been removed."}).finally(()=>{a.removing=!1})}},e.loadConferences=()=>(e.loading=!0,e.error="",t.get("/api/conferences/").then(a=>{e.conferences=a.data||[]},a=>{e.error="Unable to load your conferences. Please try again."}).finally(()=>{e.loading=!1})),e.loadConferences(),e.conferenceFilter=a=>{if(e.filters.status[a.status]==!1)return!1;let p=e.search.trim().toLowerCase();return!!(!p||(a.name||"").toLowerCase().includes(p)||(a.conferenceID||"").toLowerCase().includes(p))}},yi=function(e,t,o,i){e.watch("user.status",()=>{e.user==null&&o.url("/")}),e.user==null&&o.url("/"),e.plans=[],e.editionMode=!1,e.saving=!1,e.error="";function s(){return t.get("/api/conferences/"+i.conferenceId).then(y=>{e.options={...e.options,...y.data,billing:y.data.billing||{}},e.options.startDate=new Date(e.options.startDate),e.options.endDate=new Date(e.options.endDate)})}i.conferenceId&&(e.editionMode=!0,s());function r(){t.get("/api/conferences/plans").then(y=>{e.plans=y.data,e.plan=e.plans.filter(b=>b.id==e.options.plan.planID)[0]})}r();let a=new Date;a.setDate(1),a.setMonth(a.getMonth()+1);let p=new Date(a);p.setTime(a.getTime()+179*864e5),e.options={billing:{},startDate:a,endDate:p,plan:{planID:"free_conference"},options:{link:!0,image:!0,pdf:!0,notebook:!0,update:!0,page:!0}},e.plan=null,e.watch("options.plan.planID",()=>{e.plan=e.plans.filter(y=>y.id==e.options.plan.planID)[0]});function f(){e.conference.name.setValidity("required",!0),e.conference.conferenceID.setValidity("pattern",!0),e.conference.conferenceID.setValidity("required",!0),e.conference.conferenceID.setValidity("used",!0),e.conference.startDate.setValidity("required",!0),e.conference.startDate.setValidity("invalid",!0),e.conference.endDate.setValidity("required",!0),e.conference.endDate.setValidity("invalid",!0),e.conference.setValidity("error",!0)}function g(y){switch(y){case"conf_name_missing":e.conference.name.setValidity("required",!1);break;case"conf_id_missing":e.conference.conferenceID.setValidity("required",!1);break;case"conf_id_format":e.conference.conferenceID.setValidity("pattern",!1);break;case"conf_id_used":e.conference.conferenceID.setValidity("used",!1);break;case"conf_start_date_missing":e.conference.startDate.setValidity("required",!1);break;case"conf_end_date_missing":e.conference.endDate.setValidity("required",!1);break;case"conf_start_date_invalid":e.conference.startDate.setValidity("invalid",!1);break;case"conf_end_date_invalid":e.conference.endDate.setValidity("invalid",!1);break;default:e.conference.setValidity("error",!1);break}}e.submit=function(){if(e.saving)return;e.saving=!0,e.error="";let y=JSON.parse(JSON.stringify(e.options)),b=Ue({title:`Creating ${y.name}...`,date:new Date,body:`The conference ${y.conferenceID} is in creation.`});e.editionMode&&(b.title=`Updating ${y.name}...`,b.body=`The conference '${y.conferenceID}' is updating.`),e.addToast(b),f(),t.post("/api/conferences/"+(e.editionMode?y.conferenceID:""),y).then(()=>{e.editionMode?(b.title=`${y.name} updated`,b.body=`The conference '${y.conferenceID}' is updated.`):(b.title=`${y.name} created`,b.body=`The conference '${y.conferenceID}' is created.`),o.url("/conference/"+y.conferenceID)},m=>{g(m.data?.error),e.error="Unable to save the conference. Please correct any highlighted fields and try again.",e.removeToast(b)}).finally(()=>{e.saving=!1})}},yl=function(e,t,o,i){us(e,t,()=>s(),{confirmedMessage:"Payment status checked. Your conference is ready for submissions once payment is confirmed."}),e.watch("user.status",()=>{e.user==null&&o.url("/")}),e.user==null&&o.url("/"),e.conference=null,e.search="",e.filters={status:{ready:!0,expired:!1,removed:!1}},e.orderBy="-anonymizeDate",e.repoFiler=r=>{if(e.filters.status[r.status]==!1)return!1;let a=e.search.trim().toLowerCase();return!!(!a||(r.source?.fullName||"").toLowerCase().includes(a)||(r.repoId||"").toLowerCase().includes(a))};function s(){t.get("/api/conferences/"+i.conferenceId).then(r=>{e.conference=r.data})}s()},bl=function(e,t){e.notificationEmail="",e.emailSaved=!1,e.saveNotificationEmail=async()=>{e.busy=!0,e.emailSaved=!1,e.connectionError="";try{let o=await t.post("/github/connections/email",{email:e.notificationEmail},{headers:{"X-CSRF-Token":e.connections.csrf}});e.notificationEmail=o.data.notificationEmail,e.user&&(e.user.notificationEmail=o.data.notificationEmail),e.emailSaved=!0}catch(o){e.connectionError=o.data?.error||"Unable to save email address."}finally{e.busy=!1}},e.connections=null,e.connectionError="",e.busy=!1,e.loadConnections=()=>t.get("/github/connections").then(o=>{e.connections=o.data,e.notificationEmail=o.data.notificationEmail||""}).catch(o=>{e.connectionError=o.data?.error||"Unable to load connections."}),e.changeConnection=async(o,i,s)=>{e.busy=!0,e.connectionError="";try{let r=await t.post("/github/connections/migrate",{type:o.type,id:o.id,connection:i,preview:s},{headers:{"X-CSRF-Token":e.connections.csrf}});s?o.eligible=r.data.eligible:await e.loadConnections()}catch(r){e.connectionError=r.data?.error||"Unable to change connection."}finally{e.busy=!1}},e.disconnectOAuth=async()=>{e.busy=!0;try{await t.post("/github/connections/disconnect-oauth",{},{headers:{"X-CSRF-Token":e.connections.csrf}}),await e.loadConnections()}catch(o){e.connectionError=o.data?.error||"Unable to disconnect OAuth."}finally{e.busy=!1}},e.loadConnections()},wl=function(e,t){e.accountRecovery=!1,t.get("/github/account-recovery").then(o=>{e.accountRecovery=o.data.required}).catch(()=>{})};var kl=function(e,t,o){let i=pt(),s=xt();e.Math=Math,e.watch("user.status",()=>{e.user==null&&o.url("/")}),e.user==null&&o.url("/"),e.repositories=[],e.total=-1,e.totalPage=0,e.statusCounts=[],e.totalSize=0,e.selected={},e.allSelected=!1;let r=k=>{if(k.key==="/"&&!["INPUT","TEXTAREA","SELECT"].includes(document.activeElement?.tagName)){k.preventDefault();let v=document.querySelector('.admin-filter-toolbar input[type="search"]');v&&v.focus()}};s(document,"keydown",r),e.on("dispose",()=>document.removeEventListener("keydown",r)),e.clearFilter=k=>{k==="dateRange"?(e.query.dateFrom="",e.query.dateTo=""):e.query[k]="",e.query.page=1},e.chips=[];let a=()=>{let k=[];e.query.owner&&k.push({key:"owner",label:"Owner",value:e.query.owner}),e.query.conference&&k.push({key:"conference",label:"Conference",value:e.query.conference}),e.chips=k};e.showStatusMessage=k=>{let v=k.statusMessage||"(no message)";window.prompt(`Status message for ${k.repoId} (${k.status}):`,v)},e.fetchGithubInfo=k=>{let v=window.open("","_blank");v&&v.document.write("<pre>Loading GitHub info for "+k.repoId+"...</pre>"),t.get("/api/admin/repos/"+k.repoId+"/github").then(S=>{v&&(v.document.open(),v.document.write('<pre style="font:13px monospace;padding:16px;white-space:pre-wrap">'+JSON.stringify(S.data,null,2).replace(/[<>]/g,_=>_==="<"?"<":">")+"</pre>"),v.document.close())},S=>{let _=S&&S.data?JSON.stringify(S.data,null,2):String(S);v&&(v.document.body.innerHTML='<pre style="color:#B42318;padding:16px">'+_+"</pre>")})},e.statusCountFor=k=>{let v=(e.statusCounts||[]).find(S=>S._id===k);return v?v.count:0},e.statusStorageFor=k=>{let v=(e.statusCounts||[]).find(S=>S._id===k);return v?v.storage:0},e.isErrorsOnly=()=>e.query&&e.query.error&&!e.query.ready&&!e.query.preparing&&!e.query.expired&&!e.query.removed,e.toggleErrorsOnly=()=>{e.isErrorsOnly()?Object.assign(e.query,{ready:!1,preparing:!0,expired:!1,removed:!1,error:!0}):Object.assign(e.query,{ready:!1,preparing:!1,expired:!1,removed:!1,error:!0}),e.query.page=1},e.toggleSortDirection=()=>{e.query.direction=e.query.direction==="asc"?"desc":"asc"},e.sortBy=k=>{e.query.sort===k?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=k,e.query.direction="desc"),e.query.page=1},e.sortIcon=k=>e.query.sort===k?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"";let p="admin.repos.filterPrefs",f={page:1,limit:25,sort:"lastView",direction:"desc",search:"",owner:"",conference:"",dateFrom:"",dateTo:"",ready:!0,expired:!0,removed:!1,error:!0,preparing:!0},g=loadFilterPrefs(p)||{};e.query=Object.assign({},f,g,{page:1,search:""});let y=o.search();y.owner&&(e.query.owner=y.owner),y.conference&&(e.query.conference=y.conference),y.search&&(e.query.search=y.search);let b="admin.repos.presets";e.presets=JSON.parse(localStorage.getItem(b)||"[]"),e.savePreset=()=>{let k=window.prompt("Preset name:");if(!k)return;let v=Object.assign({},e.query);delete v.page,e.presets=(e.presets||[]).filter(S=>S.name!==k),e.presets.push({name:k,query:v}),localStorage.setItem(b,JSON.stringify(e.presets))},e.applyPreset=k=>{Object.assign(e.query,k.query,{page:1})},e.deletePreset=k=>{e.presets=(e.presets||[]).filter(v=>v.name!==k.name),localStorage.setItem(b,JSON.stringify(e.presets))},e.selectAllOnPage=()=>{e.allSelected=!e.allSelected,e.repositories.forEach(k=>{e.selected[k.repoId]=e.allSelected})},e.selectedCount=()=>Object.values(e.selected||{}).filter(Boolean).length,e.selectedRepos=()=>e.repositories.filter(k=>e.selected[k.repoId]),e.bulkRefresh=()=>{let k=e.selectedRepos();k.length&&confirm(`Force refresh ${k.length} repositories?`)&&k.forEach(v=>e.updateRepository(v))},e.bulkRemoveCache=()=>{let k=e.selectedRepos();k.length&&confirm(`Purge cache for ${k.length} repositories?`)&&k.forEach(v=>e.removeCache(v))},e.clearSelection=()=>{e.selected={},e.allSelected=!1},e.exportCsv=()=>{let k=new URLSearchParams(Object.entries(e.query).filter(([,v])=>v!==""&&v!==!1&&v!=null));k.set("format","csv"),k.set("limit","10000"),window.open("/api/admin/repos?"+k.toString(),"_blank")},e.removeCache=k=>{confirm("Remove cached files for "+k.repoId+"?")&&t.delete("/api/admin/repos/"+k.repoId).then(()=>m(),v=>console.error(v))},e.removeRepository=k=>{confirm("Remove repository "+k.repoId+"?")&&t.delete("/api/repo/"+k.repoId+"/").then(()=>m(),v=>console.error(v))},e.updateRepository=k=>{let v=Ue({title:`Refreshing ${k.repoId}...`,date:new Date,body:`The repository ${k.repoId} is going to be refreshed.`});e.toasts.push(v),t.post(`/api/repo/${k.repoId}/refresh`).then(S=>{S.data.status=="ready"?v.title=`${k.repoId} is refreshed.`:v.title=`Refreshing of ${k.repoId}.`},S=>{v.title=`Error during the refresh of ${k.repoId}.`,v.body=S.body})},e.filtersOpen=!1,e.fetchError=null;function m(){e.fetchError=null,t.get("/api/admin/repos",{params:e.query}).then(k=>{e.total=k.data.total,e.totalPage=Math.ceil(k.data.total/e.query.limit),e.repositories=k.data.results,e.allSelected=!1},k=>{e.fetchError=k&&k.data&&k.data.error||"Failed to load repositories",console.error(k)})}function E(){let k=Object.assign({},e.query,{page:1,limit:1,ready:!0,expired:!0,removed:!0,error:!0,preparing:!0});t.get("/api/admin/repos",{params:k}).then(v=>{e.statusCounts=v.data.statusCounts||[],e.totalSize=v.data.totalSize||0},()=>{})}e.showAllStatuses=()=>Object.assign(e.query,{ready:!0,expired:!0,removed:!0,error:!0,preparing:!0,page:1}),m(),E();let P=null;e.watch("query",()=>{i.timeout.cancel(P),P=i.timeout(()=>{m(),E()},500);let{page:k,search:v,...S}=e.query;saveFilterPrefs(p,S),a()},!0),a()},Cl=function(e,t,o){let i=pt(),s=xt();e.Math=Math,e.watch("user.status",()=>{e.user==null&&o.url("/")}),e.user==null&&o.url("/"),e.users=[],e.total=-1,e.totalPage=0,e.statusCounts=[],e.selected={},e.allSelected=!1;let r=m=>{if(m.key==="/"&&!["INPUT","TEXTAREA","SELECT"].includes(document.activeElement?.tagName)){m.preventDefault();let E=document.querySelector('.admin-filter-toolbar input[type="search"]');E&&E.focus()}};s(document,"keydown",r),e.on("dispose",()=>document.removeEventListener("keydown",r)),e.clearFilter=m=>{m==="dateRange"?(e.query.dateFrom="",e.query.dateTo=""):e.query[m]="",e.query.page=1},e.chips=[];let a=()=>{let m=[];e.query.role&&m.push({key:"role",label:"Role",value:e.query.role}),e.chips=m};e.statusCountFor=m=>{let E=(e.statusCounts||[]).find(P=>P._id===m);return E?E.count:0},e.toggleSortDirection=()=>{e.query.direction=e.query.direction==="asc"?"desc":"asc"},e.sortBy=m=>{e.query.sort===m?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=m,e.query.direction="desc"),e.query.page=1},e.sortIcon=m=>e.query.sort===m?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"";let p="admin.users.filterPrefs",f={page:1,limit:25,sort:"username",direction:"asc",search:"",status:"",role:"",dateFrom:"",dateTo:""},g=loadFilterPrefs(p)||{};e.query=Object.assign({},f,g,{page:1,search:""}),e.selectAllOnPage=()=>{e.allSelected=!e.allSelected,e.users.forEach(m=>{e.selected[m.username]=e.allSelected})},e.selectedCount=()=>Object.values(e.selected||{}).filter(Boolean).length,e.selectedUsers=()=>e.users.filter(m=>e.selected[m.username]),e.banUser=m=>{confirm(`Ban user ${m.username}?`)&&t.post(`/api/admin/users/${m.username}/ban`).then(y,E=>console.error(E))},e.activateUser=m=>{t.post(`/api/admin/users/${m.username}/activate`).then(y,E=>console.error(E))},e.bulkBan=()=>{let m=e.selectedUsers();m.length&&confirm(`Ban ${m.length} users?`)&&m.forEach(E=>e.banUser(E))},e.exportCsv=()=>{let m=new URLSearchParams(Object.entries(e.query).filter(([,E])=>E!==""&&E!==!1&&E!=null));m.set("format","csv"),m.set("limit","10000"),window.open("/api/admin/users?"+m.toString(),"_blank")},e.fetchError=null;function y(){e.fetchError=null,t.get("/api/admin/users",{params:e.query}).then(m=>{e.total=m.data.total,e.totalPage=Math.ceil(m.data.total/e.query.limit),e.users=m.data.results,e.statusCounts=m.data.statusCounts||[],e.allSelected=!1},m=>{e.fetchError=m&&m.data&&m.data.error||"Failed to load users",console.error(m)})}y();let b=null;e.watch("query",()=>{i.timeout.cancel(b),b=i.timeout(y,500);let{page:m,search:E,...P}=e.query;saveFilterPrefs(p,P),a()},!0),a()},El=function(e,t,o,i){let s=pt();e.watch("user.status",()=>{e.user==null&&o.url("/")}),e.user==null&&o.url("/"),e.userInfo,e.repositories=[],e.search="",e.selected={},e.allSelected=!1;let r="admin.user.filterPrefs",a={filters:{status:{ready:!0,expired:!0,removed:!0,error:!0,preparing:!0}},sort:"anonymizeDate",direction:"desc"},p=loadFilterPrefs(r)||{};e.filters={status:Object.assign({},a.filters.status,p.filters&&p.filters.status||{})},e.query={sort:p.sort||a.sort,direction:p.direction||a.direction},e.orderBy=(e.query.direction==="asc"?"":"-")+e.query.sort,e.sortBy=m=>{e.query.sort===m?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=m,e.query.direction="desc"),e.orderBy=(e.query.direction==="asc"?"":"-")+e.query.sort},e.sortIcon=m=>e.query.sort===m?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"",e.watch("query",()=>{saveFilterPrefs(r,{filters:e.filters,sort:e.query.sort,direction:e.query.direction})},!0),e.watch("filters",()=>{saveFilterPrefs(r,{filters:e.filters,sort:e.query.sort,direction:e.query.direction})},!0),e.statusCountFor=m=>(e.repositories||[]).filter(E=>E.status===m).length,e.repoFiler=m=>e.filters.status[m.status]==!1?!1:!!(e.search.trim().length==0||m.source.fullName.indexOf(e.search)>-1||m.repoId.indexOf(e.search)>-1||m.statusMessage&&m.statusMessage.indexOf(e.search)>-1||m.conference&&m.conference.indexOf(e.search)>-1),e.selectAllOnPage=()=>{e.allSelected=!e.allSelected,(e.filteredRepositories||e.repositories).forEach(m=>{e.selected[m.repoId]=e.allSelected})},e.selectedCount=()=>Object.values(e.selected||{}).filter(Boolean).length,e.selectedRepos=()=>e.repositories.filter(m=>e.selected[m.repoId]),e.bulkRefresh=()=>{let m=e.selectedRepos();m.length&&confirm(`Force refresh ${m.length} repositories?`)&&m.forEach(E=>e.updateRepository(E))},e.bulkRemoveCache=()=>{let m=e.selectedRepos();m.length&&confirm(`Purge cache for ${m.length} repositories?`)&&m.forEach(E=>e.removeCache(E))},e.clearSelection=()=>{e.selected={},e.allSelected=!1},e.exportCsv=()=>{let m=e.filteredRepositories||e.repositories,P=["repoId","status","statusMessage","pageView","anonymizeDate","source.fullName","conference","size.storage"].join(","),k=m.map(_=>[_.repoId,_.status,_.statusMessage||"",_.pageView||0,_.anonymizeDate||"",_.source&&_.source.fullName||"",_.conference||"",_.size&&_.size.storage||0].map(M=>{let L=String(M??"");return/[",\n\r]/.test(L)?'"'+L.replace(/"/g,'""')+'"':L}).join(",")),v=new Blob([P+`
|
|
`+k.join(`
|
|
`)],{type:"text/csv"}),S=document.createElement("a");S.href=URL.createObjectURL(v),S.download=i.username+"-repositories.csv",S.click()},e.showStatusMessage=m=>{let E=m.statusMessage||"(no message)";window.prompt(`Status message for ${m.repoId} (${m.status}):`,E)},e.fetchGithubInfo=m=>{let E=window.open("","_blank");E&&E.document.write("<pre>Loading GitHub info for "+m.repoId+"...</pre>"),t.get("/api/admin/repos/"+m.repoId+"/github").then(P=>{E&&(E.document.open(),E.document.write('<pre style="font:13px monospace;padding:16px;white-space:pre-wrap">'+JSON.stringify(P.data,null,2).replace(/[<>]/g,k=>k==="<"?"<":">")+"</pre>"),E.document.close())},P=>{let k=P&&P.data?JSON.stringify(P.data,null,2):String(P);E&&(E.document.body.innerHTML='<pre style="color:#B42318;padding:16px">'+k+"</pre>")})};function f(m){t.get("/api/admin/users/"+m+"/repos",{}).then(E=>{e.repositories=E.data},E=>{console.error(E)})}function g(m){t.get("/api/admin/users/"+m,{}).then(E=>{e.userInfo=E.data},E=>{console.error(E)})}g(i.username),f(i.username),e.banUser=()=>{confirm(`Ban user ${i.username}?`)&&t.post(`/api/admin/users/${i.username}/ban`).then(()=>g(i.username),m=>console.error(m))},e.activateUser=()=>{t.post(`/api/admin/users/${i.username}/activate`).then(()=>g(i.username),m=>console.error(m))},e.promoteUser=()=>{confirm(`Promote ${i.username} to admin?`)&&t.post(`/api/admin/users/${i.username}/promote`).then(()=>g(i.username),m=>console.error(m))},e.demoteUser=()=>{confirm(`Remove admin privileges from ${i.username}?`)&&t.post(`/api/admin/users/${i.username}/demote`).then(()=>g(i.username),m=>console.error(m))},e.tokens=[],e.tokenForm={name:"",plaintext:null};function y(){t.get("/api/admin/tokens").then(m=>{e.tokens=m.data||[]},m=>{m.status!==401&&m.status!==403&&console.error(m)})}y(),e.createToken=()=>{e.tokenForm.name&&t.post("/api/admin/tokens",{name:e.tokenForm.name}).then(m=>{e.tokenForm.plaintext=m.data.token,e.tokenForm.name="",y()},m=>console.error(m))},e.revokeToken=m=>{confirm(`Revoke token "${m.name}"?`)&&t.delete("/api/admin/tokens/"+m.id).then(()=>y(),E=>console.error(E))},e.removeCache=m=>{confirm("Remove cached files for "+m.repoId+"?")&&t.delete("/api/admin/repos/"+m.repoId).then(()=>f(i.username),E=>console.error(E))},e.removeRepository=m=>{confirm("Remove repository "+m.repoId+"?")&&t.delete("/api/repo/"+m.repoId+"/").then(()=>f(i.username),E=>console.error(E))},e.updateRepository=m=>{let E=Ue({title:`Refreshing ${m.repoId}...`,date:new Date,body:`The repository ${m.repoId} is going to be refreshed.`});e.toasts.push(E),t.post(`/api/repo/${m.repoId}/refresh`).then(P=>{P.data.status=="ready"?E.title=`${m.repoId} is refreshed.`:E.title=`Refreshing of ${m.repoId}.`},P=>{E.title=`Error during the refresh of ${m.repoId}.`,E.body=P.body})},e.getGitHubRepositories=m=>{t.get(`/api/user/${e.userInfo.username}/all_repositories`,{params:{force:"1"}}).then(E=>{e.userInfo.repositories=E.data})};let b=null;e.watch("query",()=>{s.timeout.cancel(b),b=s.timeout(()=>{f(i.username)},500)},!0)},Sl=function(e,t,o){let i=pt(),s=xt();e.Math=Math,e.watch("user.status",()=>{e.user==null&&o.url("/")}),e.user==null&&o.url("/"),e.conferences=[],e.total=-1,e.totalPage=0,e.statusCounts=[];let r=P=>{if(P.key==="/"&&!["INPUT","TEXTAREA","SELECT"].includes(document.activeElement?.tagName)){P.preventDefault();let k=document.querySelector('.admin-filter-toolbar input[type="search"]');k&&k.focus()}};s(document,"keydown",r),e.on("dispose",()=>document.removeEventListener("keydown",r)),e.clearFilter=P=>{P==="dateRange"?(e.query.dateFrom="",e.query.dateTo=""):e.query[P]="",e.query.page=1},e.chips=[];let a=()=>{let P=[];(e.query.dateFrom||e.query.dateTo)&&P.push({key:"dateRange",label:"Date",value:(e.query.dateFrom||"\u2026")+" \u2013 "+(e.query.dateTo||"\u2026")}),e.chips=P};e.statusCountFor=P=>{let k=(e.statusCounts||[]).find(v=>v._id===P);return k?k.count:0},e.toggleSortDirection=()=>{e.query.direction=e.query.direction==="asc"?"desc":"asc"},e.sortBy=P=>{e.query.sort===P?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=P,e.query.direction="desc"),e.query.page=1},e.sortIcon=P=>e.query.sort===P?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"";let p="admin.conferences.filterPrefs",f={page:1,limit:25,sort:"name",direction:"asc",search:"",dateFrom:"",dateTo:"",ready:!0,expired:!0,removed:!1,error:!0,preparing:!0},g=loadFilterPrefs(p)||{};e.query=Object.assign({},f,g,{page:1,search:""});let y=o.search();y.search&&(e.query.search=y.search);let b="admin.conferences.presets";e.presets=JSON.parse(localStorage.getItem(b)||"[]"),e.savePreset=()=>{let P=window.prompt("Preset name:");if(!P)return;let k=Object.assign({},e.query);delete k.page,e.presets=(e.presets||[]).filter(v=>v.name!==P),e.presets.push({name:P,query:k}),localStorage.setItem(b,JSON.stringify(e.presets))},e.applyPreset=P=>{Object.assign(e.query,P.query,{page:1})},e.deletePreset=P=>{e.presets=(e.presets||[]).filter(k=>k.name!==P.name),localStorage.setItem(b,JSON.stringify(e.presets))},e.removeConference=P=>{confirm("Remove conference "+P.conferenceID+"?")&&t.delete("/api/admin/conferences/"+P.conferenceID).then(()=>m(),k=>console.error(k))},e.exportCsv=()=>{let P=new URLSearchParams(Object.entries(e.query).filter(([,k])=>k!==""&&k!==!1&&k!=null));P.set("format","csv"),P.set("limit","10000"),window.open("/api/admin/conferences?"+P.toString(),"_blank")},e.fetchError=null;function m(){e.fetchError=null,t.get("/api/admin/conferences",{params:e.query}).then(P=>{e.total=P.data.total,e.totalPage=Math.ceil(P.data.total/e.query.limit),e.conferences=P.data.results,e.statusCounts=P.data.statusCounts||[]},P=>{e.fetchError=P&&P.data&&P.data.error||"Failed to load conferences",console.error(P)})}m();let E=null;e.watch("query",()=>{i.timeout.cancel(E),E=i.timeout(m,500);let{page:P,search:k,...v}=e.query;saveFilterPrefs(p,v),a()},!0),a()},Nl=function(e,t,o,i,s){let r=pt();e.watch("user.status",()=>{e.user==null&&o.url("/")}),e.user==null&&o.url("/"),e.queueList=[],e.jobs=[],e.selectedQueue="download",e.selectedStats=null,e.range="1h",e.allStates=["active","waiting","delayed","failed","completed"],e.stateFilter={active:!0,waiting:!0,delayed:!0,failed:!0,completed:!0},e.query={search:"",autoRefresh:!0},e.filteredJobs=()=>(e.jobs||[]).filter(k=>e.stateFilter[k._state]),e.jobProgressPct=k=>k&&k.progress&&typeof k.progress=="object"&&typeof k.progress.percent=="number"?Math.max(0,Math.min(100,Math.round(k.progress.percent))):typeof k.progress=="number"?Math.max(0,Math.min(100,Math.round(k.progress))):null,e.jobDuration=k=>{if(!k.processedOn)return"-";let S=(k.finishedOn||Date.now())-k.processedOn;return S<1e3?S+"ms":(S/1e3).toFixed(1)+"s"},e.metricsPoints=[],e.selectQueue=k=>{e.selectedQueue=k,a(),p()},e.setRange=k=>{e.range=k,p()};function a(){let k={queue:e.selectedQueue,search:e.query.search};t.get("/api/admin/queues",{params:k}).then(v=>{e.queueList=v.data.queues||[],e.jobs=v.data.jobs||[],e.selectedStats=e.queueList.find(S=>S.key===e.selectedQueue)||e.queueList[0]||null},v=>console.error(v))}function p(){t.get("/api/admin/queues/metrics",{params:{queue:e.selectedQueue,range:e.range}}).then(k=>{e.metricsPoints=k.data.points||[],s(m,0)},k=>console.error(k))}a(),p();let f=i(()=>{e.query.autoRefresh&&(a(),p())},15e3);e.on("dispose",()=>i.cancel(f)),e.refreshNow=function(){a(),p()};function g(k){let v=k&&k.data&&(k.data.message||k.data.error)||"Request failed";e.actionError=v,s(()=>{e.actionError=null},5e3),console.error(k)}e.actionError=null,e.removeJob=k=>{t.delete(`/api/admin/queue/${e.selectedQueue}/${k.id}`).then(a,g)},e.retryJob=k=>{t.post(`/api/admin/queue/${e.selectedQueue}/${k.id}`).then(a,g)},e.retryFailed=()=>{confirm(`Retry all failed jobs in ${e.selectedQueue}?`)&&t.post(`/api/admin/queue/${e.selectedQueue}/retry-failed`).then(a,k=>console.error(k))},e.drainSelected=()=>{confirm(`Drain the ${e.selectedQueue} queue?`)&&t.post(`/api/admin/queue/${e.selectedQueue}/drain`).then(a,k=>console.error(k))},e.togglePause=()=>{let k=e.selectedStats&&e.selectedStats.paused?"resume":"pause";t.post(`/api/admin/queue/${e.selectedQueue}/${k}`).then(a,v=>console.error(v))},e.emptyQueue=()=>{confirm(`Empty the ${e.selectedQueue} queue? This removes ALL jobs.`)&&t.post(`/api/admin/queue/${e.selectedQueue}/empty`).then(a,k=>console.error(k))},e.pauseAll=()=>{confirm("Pause all queues?")&&t.post("/api/admin/queues/pause-all").then(a,k=>console.error(k))};let y=null;e.watch("query.search",()=>{r.timeout.cancel(y),y=r.timeout(a,350)}),e.expanded={},e.toggleJob=k=>{e.expanded[k.id]=!e.expanded[k.id]},e.humanTime=k=>{if(!k)return"";let v=new Date(k);return v.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})+" "+v.toLocaleDateString([],{month:"short",day:"numeric"})},e.delayCountdown=k=>{if(!k)return"";var v=Math.max(0,Math.ceil((k-Date.now())/1e3));if(v<=0)return"resuming soon";var S=Math.floor(v/60),_=v%60;return"in "+(S>0?S+"m "+_+"s":_+"s")};function b(k){if(k<=0)return{ticks:[0],niceMax:1};let v=Math.pow(10,Math.floor(Math.log10(k))),S=v;k/S<2?S=v/2:k/S>5&&(S=v*2);let _=Math.ceil(k/S)*S,M=[];for(let L=0;L<=_;L+=S)M.push(L);return{ticks:M,niceMax:_}}function m(){var k=document.getElementById("q-throughput-chart");if(!k)return;var v=k.getContext("2d"),S=window.devicePixelRatio||1,_=k.parentElement.getBoundingClientRect(),M=44,L=50,q=20,G=_.width-40,se=180,ee=G-M-L,R=se-q;k.width=G*S,k.height=se*S,k.style.width=G+"px",k.style.height=se+"px",v.setTransform(S,0,0,S,0,0);var K=document.body.classList.contains("dark-mode"),te="#8A857C",ve=K?"rgba(255,255,255,0.06)":"rgba(0,0,0,0.06)",x=K?"#6FBF8A":"#2F7D4F",ue=K?"rgba(111,191,138,0.12)":"rgba(47,125,79,0.08)",he=K?"#F08A82":"#B42318",Ee=K?"rgba(240,138,130,0.08)":"rgba(180,35,24,0.06)",ye=K?"#F5C842":"#B8860B",be=e.metricsPoints||[];if(be.length===0){v.fillStyle=te,v.font="13px Inter, system-ui, sans-serif",v.textAlign="center",v.fillText("No metrics data yet",G/2,se/2),E=null;return}var Le=be.map(function(D){return D.completed}),ze=be.map(function(D){return D.failed}),He=be.map(function(D){return D.avgMs});if(!Le.some(Boolean)&&!ze.some(Boolean)){v.strokeStyle=K?"rgba(255,255,255,0.14)":"rgba(0,0,0,0.12)",v.beginPath(),v.moveTo(0,se-18.5),v.lineTo(G,se-18.5),v.stroke(),v.fillStyle=K?"#CFC8BD":"#4F4A42",v.font="500 14px Inter, system-ui, sans-serif",v.textAlign="center",v.fillText("No jobs processed in this window",G/2,se/2-6),v.fillStyle=te,v.font="12.5px Inter, system-ui, sans-serif",v.fillText("Completed and failed jobs will chart here",G/2,se/2+16),E=null;return}var Me=be.length,F=ee/(Me-1||1),X=Math.max(1,Math.max.apply(null,Le),Math.max.apply(null,ze)),J=b(X),ne=Math.max.apply(null,He),U=ne>0?b(ne):{ticks:[0],niceMax:1},Q=function(D){return R-D/J.niceMax*(R-10)},H=function(D){return R-D/U.niceMax*(R-10)},re=function(D){return M+D*F};v.textAlign="right",v.textBaseline="middle",v.font="10px monospace",J.ticks.forEach(function(D){var I=Q(D);v.strokeStyle=ve,v.lineWidth=1,v.beginPath(),v.moveTo(M,I),v.lineTo(G-L,I),v.stroke(),v.fillStyle=te,v.fillText(D>=1e3?(D/1e3).toFixed(1)+"k":String(D),M-6,I)}),ne>0&&(v.textAlign="left",U.ticks.forEach(function(D){var I=H(D);v.fillStyle=ye,v.fillText(D>=1e3?(D/1e3).toFixed(1)+"s":D+"ms",G-L+6,I)}));var de=Date.now(),Ne=Math.min(6,Me);v.textAlign="center",v.textBaseline="top";for(var C=0;C<Ne;C++){var N=Math.round(C/(Ne-1)*(Me-1)),V=Math.round((de-be[N].ts)/6e4),j=re(N),w;V<=0?w="now":V<60?w=V+"m":V<1440?w=Math.round(V/60)+"h":w=Math.round(V/1440)+"d",v.fillStyle=te,v.fillText(w,j,R+4)}function A(D,I,z,B){D.length!==0&&(v.beginPath(),v.moveTo(re(0),R),D.forEach(function(ie,Z){var le=re(Z),ce=I(ie);if(Z===0)v.lineTo(le,ce);else{var Ce=(re(Z-1)+le)/2;v.bezierCurveTo(Ce,I(D[Z-1]),Ce,ce,le,ce)}}),v.lineTo(re(D.length-1),R),v.closePath(),v.fillStyle=z,v.fill(),v.beginPath(),D.forEach(function(ie,Z){var le=re(Z),ce=I(ie);if(Z===0)v.moveTo(le,ce);else{var Ce=(re(Z-1)+le)/2;v.bezierCurveTo(Ce,I(D[Z-1]),Ce,ce,le,ce)}}),v.strokeStyle=B,v.lineWidth=1.5,v.stroke())}A(Le,Q,ue,x),A(ze,Q,Ee,he),ne>0&&(v.beginPath(),He.forEach(function(D,I){var z=re(I),B=H(D);if(I===0)v.moveTo(z,B);else{var ie=(re(I-1)+z)/2;v.bezierCurveTo(ie,H(He[I-1]),ie,B,z,B)}}),v.strokeStyle=ye,v.lineWidth=1,v.setLineDash([4,3]),v.stroke(),v.setLineDash([])),E={pts:be,maxLen:Me,marginLeft:M,step:F,totalW:G,toX:re}}var E=null;function P(){var k=document.getElementById("q-throughput-chart");if(!(!k||k._tipBound)){k._tipBound=!0;var v=document.getElementById("q-chart-tooltip"),S=document.getElementById("q-chart-crosshair");k.addEventListener("mousemove",function(_){if(!(!E||!v||!S)){var M=E,L=k.getBoundingClientRect(),q=_.clientX-L.left,G=Math.round((q-M.marginLeft)/M.step);if(G<0||G>=M.maxLen){v.style.display="none",S.style.display="none";return}var se=M.pts[G],ee=Date.now(),R=Math.round((ee-se.ts)/6e4),K;if(R<=0)K="now";else if(R<60)K=R+"m ago";else if(R<1440){var te=Math.floor(R/60),ve=R%60;K=te+"h"+(ve?" "+ve+"m":"")+" ago"}else K=Math.round(R/1440)+"d ago";var x='<div class="q-tip-time">'+K+'</div><div class="q-tip-completed">● completed: '+se.completed+'/min</div><div class="q-tip-failed">● failed: '+se.failed+"/min</div>";if(se.avgMs>0){var ue=se.avgMs>=1e3?(se.avgMs/1e3).toFixed(1)+"s":se.avgMs+"ms";x+='<div class="q-tip-exec">● avg time: '+ue+"</div>"}v.innerHTML=x;var he=M.toX(G),Ee=v.offsetWidth,ye=he+10;ye+Ee>M.totalW&&(ye=he-Ee-10),v.style.display="block",v.style.left=ye+"px",v.style.top="8px",S.style.display="block",S.style.left=he+"px"}}),k.addEventListener("mouseleave",function(){v&&(v.style.display="none"),S&&(S.style.display="none")})}}e.watch("metricsPoints",function(){s(P,50)})},Rl=function(e,t,o,i){let s=pt();e.watch("user.status",()=>{e.user==null&&o.url("/")}),e.user==null&&o.url("/"),e.entries=[],e.visible=[],e.available=!0,e.cap=1e3,e.total=0,e.pageSize=250,e.expanded={},e.detailTab={},e.copyHint="",e.parsedFilterCount=0,e.stats={last24h:0,prev24h:0,delta:0,severity:{error:0,warn:0,info:0},unique:{error:0,warn:0,info:0},buckets:[],dropped:0},e.query={search:"",bucket:"",sort:"recent",group:"code",autoRefresh:!0},e.relTime=S=>{if(!S)return"";let _=new Date(S).getTime();if(isNaN(_))return S;let M=Math.max(0,Date.now()-_),L=Math.floor(M/1e3);if(L<5)return"just now";if(L<60)return`${L}s ago`;let q=Math.floor(L/60);if(q<60)return`${q}m ago`;let G=Math.floor(q/60);if(G<24)return`${G}h ago`;let se=Math.floor(G/24);return se<7?`${se}d ago`:new Date(S).toLocaleDateString()},e.absTime=S=>{if(!S)return"";let _=new Date(S);return isNaN(_.getTime())?S:_.toLocaleString()},e.absTimeShort=S=>{if(!S)return"";let _=new Date(S);return isNaN(_.getTime())?S:_.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})};let r=/^[a-zA-Z][a-zA-Z0-9]*(?:_[a-zA-Z0-9]+)+$/;function a(S,_){let M=S&&(S.httpStatus||S.status)||null;if(typeof M=="number"){if(M>=500)return"error";if(M===401||M===403||M===404)return"info";if(M>=400)return"warn"}return _==="error"?"error":_==="warn"?"warn":"info"}function p(S){let _=(S.raw||[]).find(G=>G&&typeof G=="object"&&!Array.isArray(G));if(_){_.message&&r.test(_.message)?(S.displayMessage=_.message,S.displayContext=S.message):_.code&&r.test(String(_.code))?(S.displayMessage=String(_.code),S.displayContext=S.message):_.name&&_.name!=="AnonymousError"&&_.name!=="Error"?(S.displayMessage=_.name,S.displayContext=_.message||S.message):S.displayMessage=S.message,S._status=_.httpStatus||_.status||null,S._url=_.url||null,S._method=_.method||null,S._repoId=_.repoId||_.detail||null,S._detail=_.detail&&_.detail!==S._repoId?_.detail:null;let G=typeof _.stack=="string"?_.stack:null;for(var M=[_.cause,_.err].filter(Boolean),L=0;!G&&L<M.length;L++)for(var q=M[L];!G&&q&&typeof q=="object";)typeof q.stack=="string"&&(G=q.stack),q=q.cause;S._stack=G}else S.displayMessage=S.message,S._status=null,S._url=null,S._stack=null;return S._bucket=a(_,S.level),S._detailJson=f(S,_),S}function f(S,_){let M=[],L=(ee,R)=>{R==null||R===""||M.push([ee,R])};L("name",_&&_.name),L("code",S.displayMessage||_&&_.message),S._bucket&&L("kind",S._bucket),L("httpStatus",_&&_.httpStatus),_&&_.status&&!_.httpStatus&&L("status",_.status),L("module",S.module);let q=_&&_.detail;if(typeof q=="string"){let ee=q.trim();if(ee[0]==="{"||ee[0]==="[")try{q=JSON.parse(q)}catch{}}if(L("detail",q),L("repoId",_&&_.repoId),L("filePath",_&&_.filePath),L("upstreamStatus",_&&_.upstreamStatus),L("upstreamBody",_&&_.upstreamBody),L("url",S._url),L("err",_&&_.err),L("cause",_&&!_.err&&_.cause),L("ts",S.ts),!M.length)return JSON.stringify(S,null,2);let G=M.reduce((ee,R)=>Math.max(ee,R[0].length),0),se=["{"];return M.forEach(([ee,R],K)=>{let ve=` ${`"${ee}":`.padEnd(G+3," ")} `,x=K<M.length-1?",":"",ue;if(R&&typeof R=="object"){let he=" ".repeat(ve.length);ue=JSON.stringify(R,null,2).split(`
|
|
`).map((Ee,ye)=>ye===0?Ee:he+Ee).join(`
|
|
`)}else typeof R=="number"||typeof R=="boolean"?ue=String(R):ue=JSON.stringify(R);se.push(`${ve}${ue}${x}`)}),se.push("}"),se.join(`
|
|
`)}function g(S){let _=[],M="",L=/(\w+):(>=|<=|!=|>|<|=)?([^\s]+)/g,q=0,G;for(;G=L.exec(S);)M+=S.slice(q,G.index),q=L.lastIndex,_.push({key:G[1],op:G[2]||"=",val:G[3]});return M+=S.slice(q),{filters:_,free:M.trim().toLowerCase()}}function y(S,_){for(let M of _.filters){let L=(G,se,ee)=>{let R=parseFloat(G),K=parseFloat(se);return ee==="="?String(G)===String(se):ee==="!="?String(G)!==String(se):ee===">="?R>=K:ee==="<="?R<=K:ee===">"?R>K:ee==="<"?R<K:!0},q;if(M.key==="code")q=S.displayMessage;else if(M.key==="module")q=S.module;else if(M.key==="status")q=S._status;else if(M.key==="url")q=S._url;else if(M.key==="repo")q=S._repoId;else if(M.key==="level")q=S.level;else continue;if(q==null||!L(q,M.val,M.op))return!1}return!(_.free&&((S.displayMessage||"")+" "+(S.module||"")+" "+(S._url||"")+" "+JSON.stringify(S.raw||[])).toLowerCase().indexOf(_.free)===-1)}function b(){let S=g(e.query.search||"");e.parsedFilterCount=S.filters.length;let _=e.query.bucket,M=e.entries.filter(ee=>_&&ee._bucket!==_?!1:y(ee,S)),L=e.query.group;if(L){let ee=te=>L==="module"?te.module:te.displayMessage||te.message||"_",R=new Map;for(let te of M){let ve=ee(te);if(R.has(ve)){let x=R.get(ve);x.count++,x._related.push(te),new Date(te.ts)>new Date(x.ts)&&(x.ts=te.ts,x._url=te._url,x._status=te._status),new Date(te.ts)<new Date(x._firstSeen)&&(x._firstSeen=te.ts)}else{let x=Object.assign({},te);x._key=`${L}:${ve}`,x._related=[te],x._firstSeen=te.ts,x._lastHourCount=0,x.count=1,R.set(ve,x)}}let K=Date.now()-3600*1e3;for(let te of R.values())te._lastHourCount=te._related.filter(ve=>new Date(ve.ts).getTime()>=K).length;M=Array.from(R.values())}else M=M.map((ee,R)=>(ee._key="row:"+R+":"+ee.ts,ee._related=[ee],ee._firstSeen=ee.ts,ee._lastHourCount=0,ee.count=1,ee));let q=ee=>({error:0,warn:1,info:2})[ee._bucket]??1;e.query.sort==="count"?M.sort((ee,R)=>q(ee)-q(R)||R.count-ee.count||new Date(R.ts)-new Date(ee.ts)):M.sort((ee,R)=>q(ee)-q(R)||new Date(R.ts)-new Date(ee.ts)),e.visible=M;let G=!!(e.query.bucket||(e.query.search||"").trim()),se=!G&&(e.stats?.severity?.error||0)>0&&!M.some(ee=>ee._bucket==="error")&&e.entries.length<1500;(G&&!M.length||se)&&e.canLoadMore?.()&&!e._autoLoading&&e.entries.length<2500&&(e._autoLoading=!0,m(!0))}function m(S){let _=S?e.entries.length:0,M=S?e.pageSize:Math.max(e.pageSize,e.entries.length||e.pageSize);t.get("/api/admin/errors",{params:{offset:_,limit:M}}).then(L=>{let q=(L.data.entries||[]).map(p);e.entries=S?e.entries.concat(q):q,e.available=!!L.data.available,e.cap=L.data.max||e.cap,e.total=L.data.total||e.entries.length,e._autoLoading=!1,b()},L=>{e._autoLoading=!1,console.error(L)})}e.loadMore=()=>m(!0),e.canLoadMore=()=>e.entries.length<e.total;function E(){t.get("/api/admin/errors/stats").then(S=>{let _=S.data||{},M=_.prev24h?Math.round((_.last24h-_.prev24h)/_.prev24h*100):0;e.stats={last24h:_.last24h||0,prev24h:_.prev24h||0,delta:M,severity:_.severity||{error:0,warn:0,info:0},unique:_.unique||{error:0,warn:0,info:0},buckets:_.buckets||[],dropped:_.dropped||0},b()},S=>console.error(S))}function P(){m(),E()}e.barPx=(S,_)=>{let M=e.stats.buckets||[],L=0,q=0;for(let R of M)L=Math.max(L,(R.error||0)+(R.warn||0)),q=Math.max(q,R.info||0);let G=S[_]||0;if(!G)return 0;if(_==="info")return q?Math.max(2,Math.round(G/q*(L?16:60))):0;let se=(S.error||0)+(S.warn||0),ee=Math.round(se/L*44);return Math.max(4,Math.round(G/se*ee))},e.bucketTitle=S=>`${new Date(S.hour).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})} \xB7 ${S.error||0} err \xB7 ${S.warn||0} warn \xB7 ${S.info||0} info`,e.toggle=S=>{e.expanded[S._key]=!e.expanded[S._key]},e.setBucket=S=>{e.query.bucket=S},e.refreshNow=P,e.clearAll=()=>{confirm("Clear all captured errors?")&&t.delete("/api/admin/errors").then(P,S=>console.error(S))},e.exportCsv=()=>{let S=["ts","level","module","displayMessage","_status","_url","_repoId"],_=[S.join(",")];for(let G of e.visible)_.push(S.map(se=>{let ee=G[se]==null?"":String(G[se]);return/[",\n]/.test(ee)?`"${ee.replace(/"/g,'""')}"`:ee}).join(","));let M=new Blob([_.join(`
|
|
`)],{type:"text/csv;charset=utf-8"}),L=URL.createObjectURL(M),q=document.createElement("a");q.href=L,q.download=`errors-${new Date().toISOString().slice(0,19)}.csv`,document.body.appendChild(q),q.click(),document.body.removeChild(q),URL.revokeObjectURL(L)};function k(S){e.copyHint=`${S} copied`,s.timeout(()=>{e.copyHint=""},1500)}e.copyJson=S=>{navigator.clipboard.writeText(S._detailJson).then(()=>k("JSON"))},e.copyCurl=S=>{if(!S._url)return;let M=`curl -X ${S._method||"GET"} '${window.location.origin}${S._url}'`;navigator.clipboard.writeText(M).then(()=>k("curl"))},P();let v=i(()=>{e.query.autoRefresh&&P()},15e3);e.on("dispose",()=>i.cancel(v)),e.watch("query.search",b),e.watch("query.bucket",b),e.watch("query.sort",b),e.watch("query.group",b)},Dl=function(e,t,o,i){if(e.Math=Math,e.watch("user.status",()=>{e.user==null&&o.url("/")}),e.user==null){o.url("/");return}e.data=null,e.loading=!0,e.error=null,e.performance=null,e.performanceMinutes=15,e.performanceTab="routes",e.cacheReport=null,e.cacheError=null,e.cacheMinutes=60,e.cacheTraffic="all",e.ovView=["performance","cache"].includes((window.location.hash||"").slice(1))?window.location.hash.slice(1):"summary",e.setOvView=function(v){e.ovView=v;try{window.history.replaceState(null,"",v==="summary"?window.location.pathname:"#"+v)}catch{}};var s=!1;e.loadCache=function(){if(!s){s=!0;var v=e.cacheMinutes;t.get("/api/admin/cache",{params:{minutes:v}}).then(function(S){v===e.cacheMinutes&&(e.cacheReport=S.data,e.cacheError=S.data.available?null:S.data.reason||"Cache monitoring is unavailable.")},function(){e.cacheError="Could not refresh cache monitoring. Displayed values may be stale."}).finally(function(){s=!1,v!==e.cacheMinutes&&e.loadCache()})}},e.cacheRows=function(){return(e.cacheReport?.rows||[]).filter(function(v){return e.cacheTraffic==="all"||v.traffic===e.cacheTraffic})},e.cacheRate=function(v,S){var _=e.cacheRows(),M=function(G){return _.filter(function(se){return se.name===G}).reduce(function(se,ee){return se+ee[S]},0)},L=M(v+"_hit"),q=M(v+"_miss");return L+q?(100*L/(L+q)).toFixed(1)+"%":"No samples"},e.cacheEventName=function(v){return v.replaceAll("_"," ")},e.cacheP95=function(v){var S=0,_=e.cacheReport?.latencyBucketsMs||[];if(!v.count)return"No samples";if(!v.ms)return"Not timed";for(var M=0;M<=_.length;M++)if(S+=v["b"+M]||0,S>=Math.ceil(v.count*.95))return M<_.length?"\u2264 "+_[M]+" ms":"> 10 s";return"No samples"},e.performanceError=null,e.formatMs=function(v){return v==null?"":v<1e3?v+" ms":+(v/1e3).toFixed(1)+" s"},e.latencyBound=function(v,S){return v.count?v[S]==null?"> 60 s":"\u2264 "+e.formatMs(v[S]):"No samples"},e.firstByteBound=function(v){return e.latencyBound({count:v.firstByteCount,p95UpperMs:v.firstByteP95UpperMs},"p95UpperMs")},e.sampleAge=function(v){return Math.max(0,Math.round((Date.now()-v.sampledAt)/1e3))},e.peakRss=function(v){return(e.performance.runtimeSeries||[]).filter(function(S){return S.instance===v.instance}).reduce(function(S,_){return Math.max(S,_.rss)},v.memory.rss)},e.performanceWarning=function(v){return e.sampleAge(v)>45||v.droppedBatches||v.droppedMetrics||v.sockets?.closeWait>0||v.eventLoop?.p95Ms>100||v.memoryLimitBytes&&v.memory.rss>v.memoryLimitBytes*.8};var r=!1;e.loadPerformance=function(){var v=e.performanceMinutes;e.performance?.windowMinutes&&e.performance.windowMinutes!==v&&(e.performance=null),!r&&(r=!0,t.get("/api/admin/performance",{params:{minutes:v}}).then(function(S){v===e.performanceMinutes&&(e.performance=S.data,e.performanceError=S.data.available?null:"Performance monitoring is unavailable. Request history may be incomplete.")},function(){v===e.performanceMinutes&&(e.performanceError="Could not refresh performance monitoring. Displayed samples may be stale.")}).finally(function(){r=!1,v!==e.performanceMinutes&&e.loadPerformance()}))};function a(v){if(v==null)return"\u2014";for(var S=["B","KB","MB","GB","TB"],_=0,M=v;M>=1024&&_<S.length-1;)M/=1024,_++;return M.toFixed(_>0?1:0)+" "+S[_]}e.humanBytes=a;function p(v){if(!v)return"\u2014";var S=Math.floor(v/86400),_=Math.floor(v%86400/3600),M=Math.floor(v%3600/60);return S>0?S+"d "+(_<10?"0":"")+_+"h":_>0?_+"h "+(M<10?"0":"")+M+"m":M+"m"}e.humanDuration=p;function f(v){return v==null?"\u2014":v>=1e6?(v/1e6).toFixed(1)+"M":v>=1e3?(v/1e3).toFixed(1)+"K":String(v)}e.humanNum=f,e.queueTotal=function(v){return v?(v.waiting||0)+(v.active||0)+(v.delayed||0)+(v.failed||0):0},e.statusCount=function(v){if(!e.data||!e.data.repos)return 0;for(var S=e.data.repos.statusBreakdown||[],_=0;_<S.length;_++)if(S[_]._id===v)return S[_].count;return 0},e.barPct=function(v){var S=e.data&&e.data.repos?e.data.repos.total:0;if(!S)return 0;var _=[v];v==="expired"&&_.push("expiring"),v==="removed"&&_.push("removing"),v==="preparing"&&_.push("download");var M=0;return _.forEach(function(L){M+=e.statusCount(L)}),Math.max(.4,M/S*100)},e.errPct=function(v){if(!e.data||!e.data.errors)return 0;var S=Math.max(e.data.errors.severity.error,e.data.errors.severity.warn,e.data.errors.severity.info,1);return e.data.errors.severity[v]/S*100};function g(v){var S=v||[];return S.map(function(_,M){var L=S[M-1]||{},q=Object.assign({},_);return q.dailyRepositories=M?Math.max(0,(_.nbRepositories||0)-(L.nbRepositories||0)):0,q.dailyUsers=M?Math.max(0,(_.nbUsers||0)-(L.nbUsers||0)):0,q.dailyPageViews=M?Math.max(0,(_.nbPageViews||0)-(L.nbPageViews||0)):0,q})}function y(v){var S=v&&v.length?v[v.length-1]:{};return{repositories:S.dailyRepositories||0,users:S.dailyUsers||0,pageViews:S.dailyPageViews||0}}function b(v,S){if(!v||!v.length)return v;var _=new Date(v[v.length-1].date);if(isNaN(_))return v;var M={};v.forEach(function(ee){M[new Date(ee.date).toISOString().slice(0,10)]=ee});for(var L=[],q=S-1;q>=0;q--){var G=new Date(_.getTime()-q*864e5),se=G.toISOString().slice(0,10);L.push(M[se]||{date:G.toISOString(),_empty:!0,dailyPageViews:0,dailyRepositories:0,dailyUsers:0,nbUsers:0})}return L}var m={};e.historyMax=function(v){return m[v]||0};var E={};e.historyBarH=function(v,S){return!v||!m[S]?0:Math.max(1,Math.round(v[S]/m[S]*140))},e.historyRangeH=function(v,S){if(!v||m[S]==null)return 0;var _=m[S]-E[S];return _?Math.round(8+(v[S]-E[S])/_*132):70},e.historyRange=function(v){return{min:E[v],max:m[v]}},e.historyLabel=function(v){if(!v||!v.date)return"";var S=new Date(v.date);return S.getUTCMonth()+1+"/"+S.getUTCDate()};function P(){e.loadPerformance(),e.loadCache(),t.get("/api/admin/overview").then(function(v){v.data.history=g(v.data.history),v.data.daily={today:y(v.data.history)},v.data.history=b(v.data.history,30),v.data.daily={today:y(v.data.history)},e.data=v.data,e.loading=!1,e.error=null,m={},E={},(v.data.history||[]).forEach(function(S){["dailyPageViews","dailyRepositories","dailyUsers","nbUsers"].forEach(function(_){(!m[_]||S[_]>m[_])&&(m[_]=S[_]),(E[_]==null||S[_]<E[_])&&(E[_]=S[_])})})},function(v){e.loading=!1,e.error=v.data&&v.data.error||"Failed to load overview"})}P();var k=i(P,3e4);e.on("dispose",function(){i.cancel(k)})};var Tl=[{path:"/review-link",template:"partials/reviewConsent.htm",title:"Artifact consent \u2013 Anonymous GitHub",setup:(e,t)=>Ni(e,t)},{path:"/connections",template:"partials/connections.htm",title:"GitHub connections \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>bl(e,t.http)},{path:"/signin",template:"partials/signin.htm",title:"Sign in \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>wl(e,t.http)},{path:"/",template:"partials/home.htm",title:"Anonymous GitHub \u2013 Share the code, not the author",preserveExplorer:!1,setup:(e,t)=>pl(e,t.http,t.location,t.window,t.timeout)},{path:"/dashboard",template:"partials/dashboard.htm",title:"Your anonymizations \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>fl(e,t.http,t.location,t.promises,t.window,t.quotaService)},{path:"/pr-dashboard",redirect:"/dashboard"},{path:"/anonymize/:repoId?",template:"partials/anonymize.htm",title:"New anonymization \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>ps(e,t.http,t.html,t.params,t.location,t.translate,t.timeout)},{path:"/pull-request-anonymize/:pullRequestId?",template:"partials/anonymize.htm",title:"Anonymize a pull request \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>ps(e,t.http,t.html,t.params,t.location,t.translate,t.timeout)},{path:"/gist-anonymize/:gistId?",template:"partials/anonymize.htm",title:"Anonymize a gist \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>ps(e,t.http,t.html,t.params,t.location,t.translate,t.timeout)},{path:"/status/:repoId",template:"partials/status.htm",title:"Repository status \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>ml(e,t.http,t.params)},{path:"/conferences",template:"partials/conferences.htm",title:"Your conferences \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>gl(e,t.http,t.location)},{path:"/conference/new",template:"partials/newConference.htm",title:"New conference \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>yi(e,t.http,t.location,t.params)},{path:"/conference/:conferenceId/edit",template:"partials/newConference.htm",title:"Edit conference \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>yi(e,t.http,t.location,t.params)},{path:"/conference/:conferenceId",template:"partials/conference.htm",title:"Conference \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>yl(e,t.http,t.location,t.params)},{path:"/faq",template:"partials/faq.htm",title:"FAQ \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>dl(e,t.http)},{path:"/profile",template:"partials/profile.htm",title:"Your settings \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>ul(e,t.http,t.translate,t.timeout,t.quotaService)},{path:"/claim",template:"partials/claim.htm",title:"Claim an anonymization \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>cl(e,t.http,t.location)},{path:"/pr/:pullRequestId/:path(.*)*",template:"partials/pullRequest.htm",title:"Anonymous pull request \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>hl(e,t.http,t.location,t.params,t.html)},{path:"/gist/:gistId/:path(.*)*",template:"partials/gist.htm",title:"Anonymous gist \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>vl(e,t.http,t.location,t.params,t.html)},{path:"/r/:repoId/:path(.*)*",template:"partials/explorer.htm",title:"Anonymous repository \u2013 Anonymous GitHub",preserveExplorer:!0,setup:(e,t)=>gi(e,t.http,t.location,t.params,t.html,t.promises)},{path:"/repository/:repoId/:path(.*)*",template:"partials/explorer.htm",title:"Anonymous repository \u2013 Anonymous GitHub",preserveExplorer:!0,setup:(e,t)=>gi(e,t.http,t.location,t.params,t.html,t.promises)},{path:"/admin/",template:"partials/admin/overview.htm",title:"Admin \xB7 Overview \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Dl(e,t.http,t.location,t.interval)},{path:"/admin/repositories",template:"partials/admin/repositories.htm",title:"Admin \xB7 Repositories \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>kl(e,t.http,t.location)},{path:"/admin/users",template:"partials/admin/users.htm",title:"Admin \xB7 Users \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Cl(e,t.http,t.location)},{path:"/admin/users/:username",template:"partials/admin/user.htm",title:"Admin \xB7 User details \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>El(e,t.http,t.location,t.params)},{path:"/admin/conferences",template:"partials/admin/conferences.htm",title:"Admin \xB7 Conferences \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Sl(e,t.http,t.location)},{path:"/admin/queues",template:"partials/admin/queues.htm",title:"Admin \xB7 Queues \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Nl(e,t.http,t.location,t.interval,t.timeout)},{path:"/admin/errors",template:"partials/admin/errors.htm",title:"Admin \xB7 Errors \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Rl(e,t.http,t.location,t.interval)},{path:"/404",template:"partials/404.htm",title:"Page not found \u2013 Anonymous GitHub",preserveExplorer:!1,setup:()=>{}},{path:"/:pathMatch(.*)*",template:"partials/404.htm",title:"Page not found \u2013 Anonymous GitHub",setup:()=>{}}];var Vp={class:"container py-4",style:{"max-width":"48rem","overflow-wrap":"anywhere"}},qp={key:0},Lp={key:1,role:"alert"},$p={key:2,role:"status"},Up={key:0},Fp={key:1},Bp=["disabled"],zp=["disabled"],Hp=["disabled"],jp={key:5,class:"mt-4","aria-labelledby":"review-policy-title"},Gp={id:"review-policy-title"},Wp={key:0,role:"alert"},Kp=["disabled"],Yp=["disabled"],Jp=["disabled"],Qp={key:6,role:"status"};function _l(e,t){return l(),d("section",Vp,[t[12]||(t[12]=n("a",{href:"/"},"Anonymous GitHub",-1)),t[13]||(t[13]=n("h1",{class:"mt-3"},"Approve artifact access",-1)),t[14]||(t[14]=n("p",null,"This records your approval as the repository owner or an authorized coauthor.",-1)),e.user?.username?c("v-if",!0):(l(),d("p",qp,[...t[6]||(t[6]=[h("Sign in first, then reopen the artifact link from your submission. ",-1),n("a",{href:"/signin"},"Sign in",-1)])])),e.error?(l(),d("p",Lp,u(e.error),1)):c("v-if",!0),e.saved?(l(),d("p",$p,[t[7]||(t[7]=h("Consent recorded. ",-1)),e.handoffEnabled?(l(),d("span",Up,"Continue to review to finish linking.")):(l(),d("span",Fp,"Artifact linking is not complete. Return to your submission to check its status."))])):c("v-if",!0),e.saved&&e.handoffEnabled?(l(),d("button",{key:3,class:"btn btn-primary",type:"button",onClick:t[0]||(t[0]=(...o)=>e.continueReview&&e.continueReview(...o)),disabled:e.busy},"Continue to review",8,Bp)):c("v-if",!0),e.user?.username&&!e.saved?(l(),d("form",{key:4,onSubmit:t[2]||(t[2]=ae((...o)=>e.loadPreview&&e.loadPreview(...o),["prevent"]))},[t[8]||(t[8]=n("label",{for:"review-repository"},"Anonymous repository ID",-1)),T(n("input",{id:"review-repository",class:"form-control","onUpdate:modelValue":t[1]||(t[1]=o=>e.repositoryId=o),maxlength:"128",autocomplete:"off",disabled:e.busy||e.uncertain,"aria-describedby":"review-repository-help"},null,8,zp),[[ot,e.repositoryId]]),t[9]||(t[9]=n("p",{id:"review-repository-help"},"Use the ID after /r/ in the anonymous repository URL.",-1)),n("button",{type:"submit",class:"btn btn-primary",disabled:e.busy||e.uncertain},"Preview access and retention",8,Hp)],32)):c("v-if",!0),e.preview&&!e.saved?(l(),d("section",jp,[n("h2",Gp,u(e.preview.repositoryName),1),n("p",null,"Access: "+u(e.preview.policy.access==="anonymous-link"?"Anyone with the anonymous link":"Restricted review access")+".",1),n("p",null,"Retain until "+u(e.preview.policy.retainUntil)+". Policy version "+u(e.preview.policy.version)+".",1),e.expired?(l(),d("p",Wp,"This preview expired. Open a new artifact link from your submission.")):c("v-if",!0),n("div",null,[n("label",null,[T(n("input",{type:"checkbox","onUpdate:modelValue":t[3]||(t[3]=o=>e.acceptAccess=o),disabled:e.busy||e.uncertain||e.expired},null,8,Kp),[[ti,e.acceptAccess]]),t[10]||(t[10]=h(" I approve the access policy above.",-1))])]),n("div",null,[n("label",null,[T(n("input",{type:"checkbox","onUpdate:modelValue":t[4]||(t[4]=o=>e.acceptRetention=o),disabled:e.busy||e.uncertain||e.expired},null,8,Yp),[[ti,e.acceptRetention]]),t[11]||(t[11]=h(" I approve retention until the date above.",-1))])]),n("button",{class:"btn btn-primary",type:"button",onClick:t[5]||(t[5]=(...o)=>e.confirmConsent&&e.confirmConsent(...o)),disabled:e.busy||e.expired||!e.acceptAccess||!e.acceptRetention},u(e.uncertain?"Retry confirmation":"Confirm consent"),9,Jp)])):c("v-if",!0),e.busy?(l(),d("p",Qp,"Waiting for the server\u2026")):c("v-if",!0)])}var Xp={class:"container paper-page connections-page"},Zp={key:0,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},xp={key:1,role:"status"},ef=["disabled"],tf={key:3},nf={key:0,class:"connection-resources"},of=["disabled"],sf=["disabled"],rf={key:0,role:"status"},af={class:"connections-grid"},lf={key:0},df={class:"connection-title"},uf={key:0,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},cf={class:"connection-actions"},pf={key:0,class:"btn btn-ink",target:"_self",href:"/github/app/install"},ff=["disabled"],mf={key:1,class:"connection-installations"},hf={key:0},vf=["href"],gf={class:"sr-only"},yf={class:"connection-title"},bf={key:0,target:"_self",href:"/github/login",class:"btn btn-outline-ink"},wf={key:1,class:"connection-revoke"},kf={key:0},Cf=["disabled"],Ef={class:"connection-resources"},Sf={class:"connection-title"},Nf={class:"connection-count"},Rf={key:0,class:"connection-empty"},Df={class:"connection-resource-name"},Tf={key:0,class:"connection-resource-actions"},_f=["disabled","onClick"],Af=["disabled","onClick"],Of={key:1,class:"connection-help",role:"status"},Pf=["disabled","onClick"];function Al(e,t){return l(),d("div",Xp,[t[27]||(t[27]=me('<div class="paper-crumbs"><a href="/dashboard">My work</a> \xA0/\xA0 <span class="here">GitHub connections</span></div><header class="connections-heading"><h1 class="paper-page-title">GitHub <em>connections</em></h1><p class="paper-page-lede">Manage how GitHub shares your code. Your anonymizations and URLs stay the same.</p></header>',2)),e.connectionError?(l(),d("p",Zp,u(e.connectionError),1)):c("v-if",!0),!e.connections&&!e.connectionError?(l(),d("p",xp,"Loading your connections\u2026")):c("v-if",!0),!e.connections&&e.connectionError?(l(),d("button",{key:2,class:"btn btn-outline-ink",disabled:e.busy,onClick:t[0]||(t[0]=o=>e.loadConnections())},"Try again",8,ef)):c("v-if",!0),e.connections?(l(),d("div",tf,[e.connections.emailNotificationsEnabled?(l(),d("section",nf,[t[6]||(t[6]=n("h2",null,"Email alerts",-1)),t[7]||(t[7]=n("p",null,"We will email you if your GitHub connection stops working or a repository becomes inaccessible. Your address is never shown on anonymous pages.",-1)),n("form",{onSubmit:t[2]||(t[2]=ae(o=>e.saveNotificationEmail(),["prevent"]))},[t[5]||(t[5]=n("label",{for:"notification-email"},"Email address",-1)),T(n("input",{id:"notification-email",class:"form-control",type:"email",autocomplete:"email",maxlength:"254",required:"","onUpdate:modelValue":t[1]||(t[1]=o=>e.notificationEmail=o),disabled:e.busy},null,8,of),[[ot,e.notificationEmail]]),n("button",{class:"btn btn-ink mt-2",type:"submit",disabled:e.busy},"Save email address",8,sf),e.emailSaved?(l(),d("p",rf,"Email address saved.")):c("v-if",!0)],32)])):c("v-if",!0),n("div",af,[e.connections.appEnabled?(l(),d("section",lf,[t[15]||(t[15]=n("div",{class:"connection-top"},[n("i",{class:"fab fa-github","aria-hidden":"true"}),n("span",{class:"connection-badge"},"Recommended")],-1)),n("div",df,[t[8]||(t[8]=n("h2",null,"GitHub App",-1)),n("span",{class:O(["connection-status",{"is-connected":e.connections.appConnected&&!e.connections.appError}])},u(e.connections.appError?"Needs attention":e.connections.appConnected?"Connected":"Not connected"),3)]),t[16]||(t[16]=n("p",null,"Read-only access to gists and the repositories you choose.",-1)),e.connections.appError?(l(),d("p",uf,u(e.connections.appError)+". Reconnect to restore access.",1)):c("v-if",!0),n("div",cf,[e.connections.appConnected&&!e.connections.appError?(l(),d("a",pf,[...t[9]||(t[9]=[h("Manage repository access ",-1),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-external-link"})],-1)])])):c("v-if",!0),n("a",{class:O(e.connections.appConnected&&!e.connections.appError?"connection-link":"btn btn-ink"),target:"_self",href:"/github/app/login"},u(e.connections.appConnected?"Reconnect account":"Connect GitHub account"),3),e.connections.appConnected?(l(),d("button",{key:1,class:"connection-link connection-refresh",title:"Refresh access",disabled:e.busy,onClick:t[3]||(t[3]=o=>e.loadConnections())},[...t[10]||(t[10]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1),n("span",{class:"sr-only"},"Refresh access",-1)])],8,ff)):c("v-if",!0)]),t[17]||(t[17]=n("p",{class:"connection-help"},"Choose repositories on GitHub. Organization access may need an administrator's approval.",-1)),e.connections.installations?.length?(l(),d("ul",mf,[(l(!0),d(W,null,oe(e.connections.installations,o=>(l(),d("li",{key:o.id},[n("div",null,[t[11]||(t[11]=n("span",{class:"connection-label"},"Installed on",-1)),t[12]||(t[12]=h()),n("strong",null,u(o.account),1),o.suspended?(l(),d("span",hf," \xB7 Suspended")):c("v-if",!0)]),e.connections.installations.length>1?(l(),d("a",{key:0,target:"_self",href:"/github/app/install?installationId="+o.id},[t[13]||(t[13]=h("Manage access ",-1)),n("span",gf,"for "+u(o.account),1),t[14]||(t[14]=h(" \u2192",-1))],8,vf)):c("v-if",!0)]))),128))])):c("v-if",!0)])):c("v-if",!0),n("section",null,[t[20]||(t[20]=n("div",{class:"connection-top"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-key"})]),n("span",{class:"connection-badge connection-badge-muted"},"Legacy")],-1)),n("div",yf,[t[18]||(t[18]=n("h2",null,"GitHub OAuth",-1)),n("span",{class:O(["connection-status",{"is-connected":e.connections.oauthConnected}])},u(e.connections.oauthConnected?"Connected":"Not connected"),3)]),t[21]||(t[21]=n("p",null,"For existing OAuth anonymizations.",-1)),t[22]||(t[22]=n("p",{class:"connection-help"},"This connection uses GitHub's broader repository permissions. Existing work keeps using it until you switch below.",-1)),e.connections.oauthEnabled?(l(),d("a",bf,u(e.connections.oauthConnected?"Reconnect OAuth":"Connect legacy OAuth"),1)):c("v-if",!0),e.connections.oauthConnected?(l(),d("div",wf,[e.connections.gistCount?(l(),d("p",kf,u(e.connections.gistCount)+" gist(s) use your GitHub App connection when available.",1)):c("v-if",!0),t[19]||(t[19]=n("p",null,"Switch all dependent repositories before revoking access. Gists can use your GitHub App connection.",-1)),e.connections.appConnected?(l(),d("button",{key:1,class:"btn btn-sm btn-outline-danger connection-danger",disabled:e.busy||e.connections.resources.some(o=>o.connection==="oauth"),onClick:t[4]||(t[4]=o=>e.disconnectOAuth())},"Revoke OAuth access",8,Cf)):c("v-if",!0)])):c("v-if",!0)])]),n("section",Ef,[n("div",Sf,[t[23]||(t[23]=n("h2",null,"Repository connections",-1)),n("span",Nf,u(e.connections.resources?.length||0)+" "+u((e.connections.resources?.length||0)===1?"resource":"resources"),1)]),t[25]||(t[25]=n("p",null,"Check access, then switch each resource to the GitHub App. After reinstalling the App, reconnect existing resources here to keep their anonymous URLs and published snapshots.",-1)),e.connections.resources?.length?c("v-if",!0):(l(),d("div",Rf,[...t[24]||(t[24]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-type-repo"})],-1),n("div",null,[n("h3",null,"No repository connections yet"),n("p",null,"Your repositories and pull requests will appear here once you anonymize them.")],-1),n("a",{class:"connection-link",href:"/anonymize"},"New anonymization \u2192",-1)])])),(l(!0),d(W,null,oe(e.connections.resources,o=>(l(),d("div",{class:"connection-resource",key:o.type+o.id},[n("div",Df,[n("strong",null,u(o.name||o.id),1),n("small",null,u(o.type)+" \xB7 "+u(o.id),1)]),n("span",{class:O(["connection-badge",{"connection-badge-muted":o.connection==="oauth"}])},u(o.connection==="github-app"?"Read-only App":"Legacy OAuth"),3),!["archived","removed","preparing","queue","removing","expiring"].includes(o.status)&&(o.status!=="download"||o.type==="pull-request"&&(!o.statusDate||new Date(o.statusDate).getTime()<=Date.now()-3e5))&&e.connections.appEnabled&&e.connections.appConnected?(l(),d("div",Tf,[n("button",{class:"btn btn-outline-ink",disabled:e.busy,onClick:i=>e.changeConnection(o,"github-app",!0)},"Check read-only access",8,_f),o.eligible?(l(),d("button",{key:0,class:"btn btn-ink",disabled:e.busy,onClick:i=>e.changeConnection(o,"github-app",!1)},u(o.connection==="github-app"?"Reconnect read-only access":"Switch to read-only access"),9,Af)):c("v-if",!0),o.eligible===!1?(l(),d("span",Of,"Access unavailable. Allow this repository on GitHub, then check again.")):c("v-if",!0)])):c("v-if",!0),!["archived","removed","preparing","queue","removing","expiring"].includes(o.status)&&(o.status!=="download"||o.type==="pull-request"&&(!o.statusDate||new Date(o.statusDate).getTime()<=Date.now()-3e5))&&o.connection==="github-app"&&e.connections.oauthConnected?(l(),d("button",{key:1,class:"connection-link",disabled:e.busy,onClick:i=>e.changeConnection(o,"oauth",!1)},"Use OAuth",8,Pf)):c("v-if",!0)]))),128)),t[26]||(t[26]=n("p",{class:"connection-footnote"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-info"})]),h(" Removing access stops new fetches from GitHub. Published content keeps its current expiration and removal settings.")],-1))])])):c("v-if",!0)])}var If={class:"container paper-page auth-page"},Mf={class:"auth-layout"},Vf={class:"auth-options"},qf={key:0},Lf={key:0,class:"btn btn-ink auth-continue",target:"_self",href:"/github/login?recover=1"},$f={key:1},Uf={key:1},Ff={key:2,class:"auth-legacy"},Bf={key:3,role:"status"};function Ol(e,t){return l(),d("div",If,[t[5]||(t[5]=n("a",{class:"auth-back",href:"/"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-arrow-left"})]),h(" Anonymous GitHub")],-1)),n("div",Mf,[t[4]||(t[4]=me('<header class="auth-intro"><div class="paper-eyebrow">Your research, ready for review</div><h1 class="paper-page-title"><span class="auth-title-desktop">Your code.<br>Your identity,<br><em>protected.</em></span><span class="auth-title-mobile">Sign in to <em>GitHub</em></span></h1><p class="paper-page-lede">Sign in to create and manage your anonymizations.</p></header>',1)),n("div",Vf,[e.accountRecovery?(l(),d("section",qf,[t[0]||(t[0]=n("h2",null,"Verify your existing account",-1)),t[1]||(t[1]=n("p",null,"We found an existing account. Verify it with your previous GitHub connection to keep your anonymizations. Future sign-ins will use the GitHub App.",-1)),e.site_options?.GITHUB_OAUTH_ENABLED?(l(),d("a",Lf,"Verify with previous GitHub connection")):(l(),d("p",$f,"Account verification is currently unavailable. Please try again later."))])):c("v-if",!0),e.site_options?.GITHUB_APP_ENABLED&&!e.accountRecovery?(l(),d("section",Uf,[...t[2]||(t[2]=[me('<div class="connection-top"><i class="fab fa-github" aria-hidden="true"></i><span class="connection-badge">Read-only access</span></div><h2>Continue with GitHub</h2><p>Connect through the GitHub App with read-only repository access.</p><ul class="auth-permissions"><li><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-check"></use></svg> You choose which repositories to share</li><li><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-check"></use></svg> No permission to write to your code</li></ul><a class="btn btn-ink auth-continue" target="_self" href="/github/app/login">Sign in with GitHub <svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-arrow-right"></use></svg></a><small>Your existing anonymizations and connections stay with your account.</small>',6)])])):c("v-if",!0),!e.site_options?.GITHUB_APP_ENABLED&&e.site_options?.GITHUB_OAUTH_ENABLED&&!e.accountRecovery?(l(),d("section",Ff,[...t[3]||(t[3]=[n("div",{class:"connection-title"},[n("h2",null,"Continue with GitHub")],-1),n("p",null,"Sign in to access your account. GitHub OAuth includes write access to private repositories.",-1),n("a",{class:"connection-link",target:"_self",href:"/github/login"},[h("Sign in with GitHub "),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-arrow-right"})])],-1)])])):c("v-if",!0),e.site_options&&!e.site_options.GITHUB_APP_ENABLED&&!e.site_options.GITHUB_OAUTH_ENABLED?(l(),d("p",Bf,"GitHub sign-in is currently unavailable. Please try again later.")):c("v-if",!0)])])])}var zf={class:"paper-empty"};function Pl(e,t){return l(),d("div",zf,[...t[0]||(t[0]=[me('<div class="paper-empty-inner"><div class="paper-eyebrow">Error \xB7 404</div><h1 class="paper-empty-title"> This link<br><em>isn\u2019t here.</em></h1><p class="paper-empty-lede"> The anonymous mirror you\u2019re looking for has expired, been removed by its owner, or never existed. If you received this URL from an author, ask them to re-issue it. </p><div class="paper-empty-cta"><a href="/" class="btn-hero">Back to home</a><a href="/faq" class="btn-hero-ghost">Read the FAQ</a></div></div>',1)])])}var Hf={class:"container paper-page admin-page"},jf={class:"summary-total"},Gf=["aria-pressed"],Wf={class:"count"},Kf=["aria-pressed"],Yf={class:"count"},Jf=["aria-pressed"],Qf={class:"count"},Xf=["aria-pressed"],Zf={class:"count"},xf=["aria-pressed"],em={class:"count"},tm={key:0,class:"alert alert-danger",style:{margin:"8px 0"}},nm={class:"w-100 admin-filter-toolbar","aria-label":"Conferences","accept-charset":"UTF-8"},om={class:"admin-filter-row"},sm={class:"search-wrap"},im={type:"search",class:"form-control",placeholder:"Search conferences\u2026",autocomplete:"off"},rm={key:0,class:"admin-search-hint"},am={key:1,class:"admin-filter-inline","aria-label":"Pagination"},lm=["disabled"],dm={style:{"font-family":"var(--font-mono)","font-size":"12px",color:"var(--ink-muted)"}},um=["disabled"],cm={key:0,class:"admin-filter-row"},pm={class:"admin-active-chips"},fm={class:"key"},mm=["onClick"],hm={class:"paper-table paper-table-conferences w-100",role:"table","aria-label":"Conferences"},vm={key:0,class:"paper-table-head",role:"row"},gm={role:"columnheader"},ym={role:"columnheader"},bm={role:"columnheader"},wm={class:"paper-table-row",role:"row"},km={class:"cell-anon",role:"cell"},Cm={class:"anon-text"},Em=["textContent","href"],Sm={class:"anon-sub"},Nm={class:"cell-status",role:"cell"},Rm=["textContent"],Dm={class:"cell-views num",role:"cell"},Tm=["textContent","href"],_m={class:"cell-expires",role:"cell"},Am={class:"cell-actions",role:"cell"},Om={class:"dropdown"},Pm={class:"dropdown-menu dropdown-menu-right"},Im=["href"],Mm=["href"],Vm=["href"],qm=["onClick"],Lm={key:1,class:"paper-table-empty"},$m={class:"admin-toolbar",style:{"justify-content":"space-between","border-bottom":"none"}},Um={style:{"font-size":"12px",color:"var(--ink-muted)"}},Fm={key:0,class:"pagination-compact"},Bm=["disabled"],zm=["max"],Hm=["disabled"],jm={class:"admin-filter-inline"},Gm={class:"form-control form-control-sm"};function Il(e,t){let o=we("field"),i=we("form");return l(),d("div",Hf,[t[48]||(t[48]=me('<div class="paper-crumbs">Admin \xA0/\xA0 <span class="here">Conferences</span></div><h1 class="paper-page-title">Conferences</h1><nav class="admin-nav"><a href="/admin/"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-chart"></use></svg> Overview</a><a href="/admin/repositories"><svg class="ui-icon" aria-hidden="true"><use href="#project-type-repo"></use></svg> Repositories</a><a href="/admin/users"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-users"></use></svg> Users</a><a href="/admin/conferences" class="active"><svg class="ui-icon" aria-hidden="true"><use href="#project-icon-conference"></use></svg> Conferences</a><a href="/admin/queues"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-list"></use></svg> Queues</a><a href="/admin/errors"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-bug"></use></svg> Errors</a></nav>',3)),n("div",{class:O(["admin-summary",{"is-empty":e.total===0}])},[n("span",jf,[h(u(e.total>=0?e.fmt.number(e.total):"\u2026")+" ",1),n("small",null,u(e.total===1?"conference":"conferences"),1)]),t[18]||(t[18]=n("span",{class:"summary-show-label"},"Show:",-1)),n("button",{type:"button",class:O(["summary-pill ok",{active:e.query?.ready}]),title:"Toggle ready filter",onClick:t[0]||(t[0]=s=>{e.query.ready=!e.query.ready,e.query.page=1}),"aria-pressed":!!e.query?.ready},[t[13]||(t[13]=h("Ready ",-1)),n("span",Wf,u(e.fmt?.number(e.statusCountFor("ready"))),1)],10,Gf),n("button",{type:"button",class:O(["summary-pill warn",{active:e.query?.preparing}]),title:"Toggle preparing filter",onClick:t[1]||(t[1]=s=>{e.query.preparing=!e.query.preparing,e.query.page=1}),"aria-pressed":!!e.query?.preparing},[t[14]||(t[14]=h("Preparing ",-1)),n("span",Yf,u(e.fmt?.number(e.statusCountFor("preparing"))),1)],10,Kf),n("button",{type:"button",class:O(["summary-pill error",{active:e.query?.error}]),title:"Toggle errored filter",onClick:t[2]||(t[2]=s=>{e.query.error=!e.query.error,e.query.page=1}),"aria-pressed":!!e.query?.error},[t[15]||(t[15]=h("Errored ",-1)),n("span",Qf,u(e.fmt?.number(e.statusCountFor("error"))),1)],10,Jf),n("button",{type:"button",class:O(["summary-pill",{active:e.query?.expired}]),title:"Toggle expired filter",onClick:t[3]||(t[3]=s=>{e.query.expired=!e.query.expired,e.query.page=1}),"aria-pressed":!!e.query?.expired},[t[16]||(t[16]=h("Expired ",-1)),n("span",Zf,u(e.fmt?.number(e.statusCountFor("expired"))),1)],10,Xf),n("button",{type:"button",class:O(["summary-pill",{active:e.query?.removed}]),title:"Toggle removed filter",onClick:t[4]||(t[4]=s=>{e.query.removed=!e.query.removed,e.query.page=1}),"aria-pressed":!!e.query?.removed},[t[17]||(t[17]=h("Removed ",-1)),n("span",em,u(e.fmt?.number(e.statusCountFor("removed"))),1)],10,xf)],2),e.fetchError?(l(),d("div",tm,[t[19]||(t[19]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),h(" "+u(e.fetchError),1)])):c("v-if",!0),T((l(),d("form",nm,[n("div",om,[n("div",sm,[T(n("input",im,null,512),[[o,{state:e.viewState,set:s=>{e.query.search=s},value:e.query?.search,form:null,options:{}}]]),e.query?.search?c("v-if",!0):(l(),d("span",rm,"/"))]),t[23]||(t[23]=n("span",{class:"admin-filter-spacer"},null,-1)),e.total>0?(l(),d("button",{key:0,class:"btn btn-sm",type:"button",onClick:t[5]||(t[5]=s=>e.exportCsv())},[...t[20]||(t[20]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-export"})],-1),h(" Export",-1)])])):c("v-if",!0),e.totalPage>1?(l(),d("span",am,[n("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[6]||(t[6]=s=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1,"aria-label":"Previous page"},[...t[21]||(t[21]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1)])],8,lm),n("span",dm,u(e.query?.page)+"/"+u(e.totalPage||1),1),n("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[7]||(t[7]=s=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage,"aria-label":"Next page"},[...t[22]||(t[22]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,um)])):c("v-if",!0)]),e.chips?.length?(l(),d("div",cm,[n("div",pm,[(l(!0),d(W,null,oe(e.chips,(s,r)=>(l(),d("span",{class:"admin-active-chip",key:s?.key},[n("span",fm,u(s?.label),1),n("span",null,u(s?.value),1),n("button",{type:"button",onClick:a=>e.clearFilter(s.key),"aria-label":"Clear filter"},[...t[24]||(t[24]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1)])],8,mm)]))),128))])])):c("v-if",!0)])),[[i,e.viewState]]),n("div",hm,[e.total!==0?(l(),d("div",vm,[n("div",gm,[n("button",{type:"button",class:O(["sortable",{active:e.query?.sort=="name"}]),onClick:t[8]||(t[8]=s=>e.sortBy("name"))},[t[26]||(t[26]=h("Conference ",-1)),e.sortIcon("name")?(l(),d("svg",{key:0,class:O(["ui-icon sort-direction",{ascending:e.sortIcon("name")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[25]||(t[25]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):c("v-if",!0)],2)]),n("div",ym,[n("button",{type:"button",class:O(["sortable",{active:e.query?.sort=="status"}]),onClick:t[9]||(t[9]=s=>e.sortBy("status"))},[t[28]||(t[28]=h("Status ",-1)),e.sortIcon("status")?(l(),d("svg",{key:0,class:O(["ui-icon sort-direction",{ascending:e.sortIcon("status")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[27]||(t[27]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):c("v-if",!0)],2)]),t[31]||(t[31]=n("div",{role:"columnheader",class:"num"},"Repos",-1)),n("div",bm,[n("button",{type:"button",class:O(["sortable",{active:e.query?.sort=="startDate"}]),onClick:t[10]||(t[10]=s=>e.sortBy("startDate"))},[t[30]||(t[30]=h("Window ",-1)),e.sortIcon("startDate")?(l(),d("svg",{key:0,class:O(["ui-icon sort-direction",{ascending:e.sortIcon("startDate")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[29]||(t[29]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):c("v-if",!0)],2)]),t[32]||(t[32]=n("div",{role:"columnheader","aria-label":"Actions"},null,-1))])):c("v-if",!0),(l(!0),d(W,null,oe(e.filteredConferences,(s,r)=>(l(),d("div",wm,[n("div",km,[t[34]||(t[34]=n("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Conference"},[n("use",{href:"#project-icon-conference"})],-1)),n("div",Cm,[n("a",{class:"repo-name",textContent:u(s?.name),href:e.safeUrl("/conference/"+s?.conferenceID)},null,8,Em),n("div",Sm,[n("span",null,u(s?.conferenceID),1),t[33]||(t[33]=h("\xA0\xB7\xA0",-1)),n("span",null,u(e.fmt?.number(s?.price||0))+" \u20AC",1)])])]),n("div",Nm,[n("span",{class:O(["status-dot",{"status-removed":s?.status=="removed"||s?.status=="expired","status-ready":s?.status=="ready","status-error":s?.status=="error","status-preparing":s?.status=="preparing"}])},null,2),n("span",{textContent:u(e.fmt?.title(s?.status))},null,8,Rm)]),n("div",Dm,[t[35]||(t[35]=n("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-type-repo"})],-1)),n("a",{title:"Show repositories in this conference",textContent:u(e.fmt?.number(s?.repositories?.length||0)),href:e.safeUrl("/admin/?conference="+s?.conferenceID)},null,8,Tm)]),n("div",_m,[t[36]||(t[36]=n("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),h(" "+u(e.fmt?.date(s?.startDate))+" \u2013 "+u(e.fmt?.date(s?.endDate)),1)]),n("div",Am,[n("div",Om,[t[42]||(t[42]=n("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-more"})])],-1)),n("div",Pm,[n("a",{class:"dropdown-item",href:e.safeUrl("/conference/"+s?.conferenceID+"/edit")},[...t[37]||(t[37]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),h(" Edit",-1)])],8,Im),n("a",{class:"dropdown-item",href:e.safeUrl("/conference/"+s?.conferenceID+"/")},[...t[38]||(t[38]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1),h(" View",-1)])],8,Mm),n("a",{class:"dropdown-item",href:e.safeUrl("/admin/?conference="+s?.conferenceID)},[...t[39]||(t[39]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-type-repo"})],-1),h(" View repositories",-1)])],8,Vm),t[41]||(t[41]=n("div",{class:"dropdown-divider"},null,-1)),T(n("a",{class:"dropdown-item text-danger",href:"#",onClick:ae(a=>e.removeConference(s),["prevent"])},[...t[40]||(t[40]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1),h(" Remove",-1)])],8,qm),[[Y,s?.status!="removed"]])])])])]))),256)),e.filteredConferences?.length==0?(l(),d("div",Lm,[t[43]||(t[43]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-inbox"})],-1)),n("span",null,u(e.total?"No conferences match the current filters.":"No conferences yet."),1)])):c("v-if",!0)]),n("div",$m,[n("span",Um,u(e.fmt?.number(e.total))+" results",1),e.totalPage>1?(l(),d("div",Fm,[n("button",{class:"btn btn-sm",onClick:t[11]||(t[11]=s=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1},[...t[44]||(t[44]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1),h(" Previous",-1)])],8,Bm),T(n("input",{type:"number",class:"form-control form-control-sm",min:"1",style:{width:"56px"},max:e.totalPage},null,8,zm),[[o,{state:e.viewState,set:s=>{e.query.page=s},value:e.query?.page,form:null,options:{}}]]),n("span",null,"of "+u(e.totalPage),1),n("button",{class:"btn btn-sm",onClick:t[12]||(t[12]=s=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage},[...t[45]||(t[45]=[h("Next ",-1),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,Hm)])):c("v-if",!0),n("span",jm,[t[47]||(t[47]=n("label",null,"Per page",-1)),T((l(),d("select",Gm,[...t[46]||(t[46]=[me('<option value="10">10</option><option value="25">25</option><option value="50">50</option><option value="100">100</option><option value="250">250</option>',5)])])),[[o,{state:e.viewState,set:s=>{e.query.limit=s},value:e.query?.limit,form:null,options:{}}]])])])])}var Wm={class:"container paper-page admin-page errors-page"},Km={class:"errors-header"},Ym={class:"errors-actions"},Jm={class:"kpi-grid"},Qm={class:"kpi-card"},Xm={class:"kpi-value"},Zm={key:0},xm={key:1},eh={key:2},th=["aria-pressed"],nh={class:"kpi-value"},oh={class:"kpi-sub"},sh=["aria-pressed"],ih={class:"kpi-value"},rh={class:"kpi-sub"},ah=["aria-pressed"],lh={class:"kpi-value"},dh={class:"kpi-sub"},uh={class:"kpi-value"},ch={class:"kpi-sub"},ph={key:0,class:"dropped-warn"},fh={class:"volume-chart"},mh={class:"volume-head"},hh={class:"volume-legend"},vh={key:0},gh={key:1},yh={key:2},bh={class:"volume-bars"},wh=["title"],kh={class:"errors-toolbar","aria-label":"Error filters"},Ch={class:"seg-tabs"},Eh={class:"search-wrap"},Sh={type:"search",class:"form-control",placeholder:"Search code, module, status\u2026",title:"Syntax: code:repo_not_found module:route status:>=400",autocomplete:"off"},Nh={key:0,class:"filter-count"},Rh={class:"select-wrap"},Dh={class:"form-control form-control-sm"},Th={class:"select-wrap"},_h={class:"form-control form-control-sm"},Ah={class:"autoref"},Oh={type:"checkbox"},Ph={key:0,class:"admin-empty"},Ih={key:1,class:"errors-pager"},Mh={key:2,class:"errors-list"},Vh=["onClick"],qh={class:"col-when"},Lh={class:"when-rel"},$h={class:"when-abs"},Uh={class:"col-sev"},Fh={class:"sev-label"},Bh={class:"col-mod"},zh={class:"pill pill-module"},Hh={class:"col-msg"},jh={class:"msg-code"},Gh={key:0,class:"msg-context"},Wh={key:1,class:"msg-detail"},Kh={key:2,class:"msg-url"},Yh={class:"col-count"},Jh={key:0,class:"count-pill"},Qh={key:1,class:"count-pill count-pill-muted"},Xh={class:"col-status"},Zh=["title"],xh={key:0,class:"errors-row-detail"},ev={class:"detail-tabs"},tv=["onClick"],nv=["onClick"],ov=["onClick"],sv={class:"detail-body"},iv={class:"detail-main"},rv={key:0},av={key:1,class:"stack-pre"},lv={key:2,class:"related-list"},dv={class:"when-abs"},uv={class:"msg-url"},cv={class:"detail-actions"},pv=["onClick"],fv=["onClick"],mv={key:0,class:"copy-hint"},hv={class:"detail-aside"},vv={class:"aside-block"},gv=["title"],yv={class:"aside-block"},bv=["title"],wv={class:"aside-block"},kv={class:"aside-value"},Cv={key:0,class:"aside-sub"},Ev={key:0,class:"aside-block"},Sv=["href"],Nv={key:1,class:"aside-block"},Rv={class:"aside-value mono"};function Ml(e,t){let o=we("field"),i=we("form");return l(),d("div",Wm,[t[42]||(t[42]=n("div",{class:"paper-crumbs"},[h("Admin \xA0/\xA0 "),n("span",{class:"here"},"Errors")],-1)),n("header",Km,[t[16]||(t[16]=n("h1",{class:"paper-page-title"},"Errors",-1)),n("div",Ym,[n("button",{class:"btn btn-sm",type:"button",onClick:t[0]||(t[0]=s=>e.exportCsv())},[...t[14]||(t[14]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-export"})],-1),h(" Export CSV",-1)])]),n("button",{class:"btn btn-sm btn-outline-danger",type:"button",onClick:t[1]||(t[1]=s=>e.clearAll())},[...t[15]||(t[15]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1),h(" Clear all",-1)])])])]),t[43]||(t[43]=me('<nav class="admin-nav"><a href="/admin/"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-chart"></use></svg> Overview</a><a href="/admin/repositories"><svg class="ui-icon" aria-hidden="true"><use href="#project-type-repo"></use></svg> Repositories</a><a href="/admin/users"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-users"></use></svg> Users</a><a href="/admin/conferences"><svg class="ui-icon" aria-hidden="true"><use href="#project-icon-conference"></use></svg> Conferences</a><a href="/admin/queues"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-list"></use></svg> Queues</a><a href="/admin/errors" class="active"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-bug"></use></svg> Errors</a></nav>',1)),n("section",Jm,[n("div",Qm,[t[17]||(t[17]=n("div",{class:"kpi-label"},"Occurrences \xB7 24h",-1)),n("div",Xm,u(e.fmt?.number(e.stats?.last24h??0)),1),n("div",{class:O(["kpi-sub",{up:e.stats?.delta>0,down:e.stats?.delta<0}])},[e.stats?.prev24h>=20?(l(),d("span",Zm,u((e.stats?.last24h??0)-(e.stats?.prev24h??0)>=0?"+":"")+u(Math.round(((e.stats?.last24h??0)-(e.stats?.prev24h??0))/e.stats.prev24h*100))+"% vs yesterday",1)):e.stats?.prev24h!==void 0?(l(),d("span",xm,u(e.fmt?.number(e.stats?.prev24h??0))+" in prior 24h",1)):c("v-if",!0),e.stats?.prev24h?c("v-if",!0):(l(),d("span",eh,"no prior baseline"))],2)]),n("div",{class:O(["kpi-card kpi-error kpi-filter",{"is-selected":e.query?.bucket==="error"}]),role:"button",tabindex:"0","aria-pressed":e.query?.bucket==="error",title:"Show only 5xx errors",onClick:t[2]||(t[2]=s=>e.setBucket(e.query?.bucket==="error"?"":"error")),onKeydown:t[3]||(t[3]=ct(ae(s=>e.setBucket(e.query?.bucket==="error"?"":"error"),["prevent"]),["enter"]))},[t[18]||(t[18]=n("div",{class:"kpi-label"},"Errors (5xx)",-1)),n("div",nh,u(e.fmt?.number(e.stats?.severity?.error??0)),1),n("div",oh,u(e.stats?.unique?.error)+" unique",1)],42,th),n("div",{class:O(["kpi-card kpi-warn kpi-filter",{"is-selected":e.query?.bucket==="warn"}]),role:"button",tabindex:"0","aria-pressed":e.query?.bucket==="warn",title:"Show only 4xx responses",onClick:t[4]||(t[4]=s=>e.setBucket(e.query?.bucket==="warn"?"":"warn")),onKeydown:t[5]||(t[5]=ct(ae(s=>e.setBucket(e.query?.bucket==="warn"?"":"warn"),["prevent"]),["enter"]))},[t[19]||(t[19]=n("div",{class:"kpi-label"},"4xx responses",-1)),n("div",ih,u(e.fmt?.number(e.stats?.severity?.warn??0)),1),n("div",rh,u(e.stats?.unique?.warn)+" unique",1)],42,sh),n("div",{class:O(["kpi-card kpi-info kpi-filter",{"is-selected":e.query?.bucket==="info"}]),role:"button",tabindex:"0","aria-pressed":e.query?.bucket==="info",title:"Show only info events",onClick:t[6]||(t[6]=s=>e.setBucket(e.query?.bucket==="info"?"":"info")),onKeydown:t[7]||(t[7]=ct(ae(s=>e.setBucket(e.query?.bucket==="info"?"":"info"),["prevent"]),["enter"]))},[t[20]||(t[20]=n("div",{class:"kpi-label"},"Info (auth, 404)",-1)),n("div",lh,u(e.fmt?.number(e.stats?.severity?.info??0)),1),n("div",dh,u(e.stats?.unique?.info)+" unique",1)],42,ah),n("div",{class:O(["kpi-card",{"kpi-error":e.stats?.dropped>0}])},[t[21]||(t[21]=n("div",{class:"kpi-label"},"Distinct errors stored",-1)),n("div",uh,u(e.fmt?.number(e.total)),1),n("div",ch,[h(" all time \xB7 cap "+u(e.fmt?.number(e.cap))+" \xB7 "+u(e.available?"live":"redis off")+" ",1),e.stats?.dropped>0?(l(),d("span",ph," \xB7 "+u(e.stats?.dropped)+" dropped",1)):c("v-if",!0)])],2)]),n("section",fh,[n("div",mh,[t[25]||(t[25]=n("span",{class:"volume-title"},"Volume \xB7 24h \xB7 1h buckets",-1)),n("span",hh,[e.stats?.severity?.error?(l(),d("span",vh,[...t[22]||(t[22]=[n("span",{class:"dot dot-error"},null,-1),h("error",-1)])])):c("v-if",!0),e.stats?.severity?.warn?(l(),d("span",gh,[...t[23]||(t[23]=[n("span",{class:"dot dot-warn"},null,-1),h("warn",-1)])])):c("v-if",!0),e.stats?.severity?.info?(l(),d("span",yh,[...t[24]||(t[24]=[n("span",{class:"dot dot-info"},null,-1),h("info",-1)])])):c("v-if",!0)])]),n("div",bh,[(l(!0),d(W,null,oe(e.stats?.buckets,(s,r)=>(l(),d("div",{class:"volume-bar",key:r,title:e.bucketTitle(s)},[n("span",{class:"seg seg-error",style:Re({height:e.barPx(s,"error")+"px"})},null,4),n("span",{class:"seg seg-warn",style:Re({height:e.barPx(s,"warn")+"px"})},null,4),n("span",{class:"seg seg-info",style:Re({height:e.barPx(s,"info")+"px"})},null,4)],8,wh))),128))]),t[26]||(t[26]=n("div",{class:"volume-axis","aria-hidden":"true"},[n("span",null,"24h ago"),n("span",null,"12h ago"),n("span",null,"now")],-1))]),T((l(),d("form",kh,[n("div",Ch,[n("button",{type:"button",class:O({active:e.query?.bucket===""}),onClick:t[8]||(t[8]=s=>e.setBucket(""))},"All",2),n("button",{type:"button",class:O({active:e.query?.bucket==="error"}),onClick:t[9]||(t[9]=s=>e.setBucket("error"))},"5xx",2),n("button",{type:"button",class:O({active:e.query?.bucket==="warn"}),onClick:t[10]||(t[10]=s=>e.setBucket("warn"))},"4xx",2),n("button",{type:"button",class:O({active:e.query?.bucket==="info"}),onClick:t[11]||(t[11]=s=>e.setBucket("info"))},"Info",2)]),n("div",Eh,[t[27]||(t[27]=n("svg",{class:"ui-icon search-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-search"})],-1)),T(n("input",Sh,null,512),[[o,{state:e.viewState,set:s=>{e.query.search=s},value:e.query?.search,form:null,options:{}}]]),e.parsedFilterCount?(l(),d("span",Nh,u(e.parsedFilterCount)+" filter"+u(e.parsedFilterCount>1?"s":""),1)):c("v-if",!0)]),n("div",Rh,[t[29]||(t[29]=n("label",null,"Sort",-1)),T((l(),d("select",Dh,[...t[28]||(t[28]=[n("option",{value:"recent"},"Most recent",-1),n("option",{value:"count"},"Most frequent",-1)])])),[[o,{state:e.viewState,set:s=>{e.query.sort=s},value:e.query?.sort,form:null,options:{}}]])]),n("div",Th,[t[31]||(t[31]=n("label",null,"Group",-1)),T((l(),d("select",_h,[...t[30]||(t[30]=[n("option",{value:""},"Off",-1),n("option",{value:"code"},"By code",-1),n("option",{value:"module"},"By module",-1)])])),[[o,{state:e.viewState,set:s=>{e.query.group=s},value:e.query?.group,form:null,options:{}}]])]),n("label",Ah,[T(n("input",Oh,null,512),[[o,{state:e.viewState,set:s=>{e.query.autoRefresh=s},value:e.query?.autoRefresh,form:null,options:{}}]]),t[32]||(t[32]=n("span",{class:"auto-refresh-label"},"Auto-refresh",-1))]),n("button",{class:"btn btn-sm btn-icon",type:"button",title:"Refresh now",onClick:t[12]||(t[12]=s=>e.refreshNow()),"aria-label":"Refresh"},[...t[33]||(t[33]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1)])])])),[[i,e.viewState]]),e.visible?.length?c("v-if",!0):(l(),d("div",Ph,"No errors captured.")),e.canLoadMore()&&e.visible?.length?(l(),d("div",Ih,[n("span",null,u(e.query?.group&&e.visible?.length!==e.entries?.length?e.fmt?.number(e.visible?.length)+(e.visible?.length===1?" group":" groups")+" from ":"")+u(e.fmt?.number(e.entries?.length))+" of "+u(e.fmt?.number(e.total))+" stored errors loaded",1),n("button",{class:"btn btn-sm",type:"button",onClick:t[13]||(t[13]=s=>e.loadMore())},"Load 250 older")])):c("v-if",!0),e.visible?.length?(l(),d("div",Mh,[t[41]||(t[41]=me('<div class="errors-list-head"><span class="col-when">When</span><span class="col-sev">Severity</span><span class="col-mod">Module</span><span class="col-msg">Message</span><span class="col-count" title="Total occurrences since first seen">Total</span><span class="col-status">Status</span></div>',1)),(l(!0),d(W,null,oe(e.visible,(s,r)=>(l(),d("div",{class:O(["errors-row",{open:e.expanded[s?._key]}]),key:s?._key},[n("div",{class:"errors-row-main",onClick:a=>e.toggle(s)},[n("div",qh,[n("div",Lh,u(e.relTime(s?.ts)),1),n("div",$h,u(e.absTimeShort(s?.ts)),1)]),n("div",Uh,[n("span",{class:O(["sev-dot","sev-"+s?._bucket])},null,2),n("span",Fh,u(e.fmt?.title(s?._bucket)),1)]),n("div",Bh,[n("span",zh,u(s?.module),1)]),n("div",Hh,[n("strong",jh,u(s?.displayMessage),1),s?.displayContext&&s?.displayContext!==s?.displayMessage?(l(),d("span",Gh,u(s?.displayContext),1)):c("v-if",!0),s?._detail?(l(),d("span",Wh,u(s?._detail),1)):c("v-if",!0),s?._url?(l(),d("div",Kh,u(s?._url),1)):c("v-if",!0)]),n("div",Yh,[s?.count>1?(l(),d("span",Jh,"\xD7"+u(s?.count),1)):c("v-if",!0),s?.count===1?(l(),d("span",Qh,"\xD71")):c("v-if",!0)]),n("div",Xh,[s?._status?(l(),d("span",{key:0,class:O(["status-pill",String(s?._status).match(/^[23]/)?"status-neutral":"status-"+s?._bucket]),title:String(s?._status).match(/^2/)&&s?._bucket==="warn"?"Client closed the connection":null},u(String(s?._status).match(/^2/)&&s?._bucket==="warn"?"\u2014":s?._status),11,Zh)):c("v-if",!0)])],8,Vh),e.expanded[s?._key]?(l(),d("div",xh,[n("div",ev,[n("button",{type:"button",class:O({active:e.detailTab[s?._key]==="raw"||!e.detailTab[s?._key]}),onClick:a=>e.detailTab[s._key]="raw"},"Raw",10,tv),s?._stack?(l(),d("button",{key:0,type:"button",class:O({active:e.detailTab[s?._key]==="stack"}),onClick:a=>e.detailTab[s._key]="stack"},"Stack",10,nv)):c("v-if",!0),s?.count>1?(l(),d("button",{key:1,type:"button",class:O({active:e.detailTab[s?._key]==="related"}),onClick:a=>e.detailTab[s._key]="related"},"Related ("+u(s?.count)+")",11,ov)):c("v-if",!0)]),n("div",sv,[n("div",iv,[(e.detailTab[s?._key]||"raw")==="raw"?(l(),d("pre",rv,u(s?._detailJson),1)):c("v-if",!0),e.detailTab[s?._key]==="stack"?(l(),d("pre",av,u(s?._stack),1)):c("v-if",!0),e.detailTab[s?._key]==="related"?(l(),d("div",lv,[(l(!0),d(W,null,oe(s?._related,(a,p)=>(l(),d("div",{class:"related-row",key:p},[n("span",dv,u(e.absTimeShort(a?.ts)),1),n("span",uv,u(a?._url),1),a?._status?(l(),d("span",{key:0,class:O(["status-pill","status-"+a?._bucket])},u(a?._status),3)):c("v-if",!0)]))),128))])):c("v-if",!0),n("div",cv,[n("button",{class:"btn btn-sm",type:"button",title:"Copy a curl that reproduces the request",onClick:a=>e.copyCurl(s)},[...t[34]||(t[34]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-code"})],-1),h(" Copy curl",-1)])],8,pv),n("button",{class:"btn btn-sm",type:"button",onClick:a=>e.copyJson(s)},[...t[35]||(t[35]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-clipboard"})],-1),h(" Copy JSON",-1)])],8,fv),e.copyHint?(l(),d("span",mv,u(e.copyHint),1)):c("v-if",!0)])]),n("aside",hv,[n("div",vv,[t[36]||(t[36]=n("div",{class:"aside-label"},"First seen",-1)),n("div",{class:"aside-value",title:e.absTime(s?._firstSeen)},u(e.relTime(s?._firstSeen)),9,gv)]),n("div",yv,[t[37]||(t[37]=n("div",{class:"aside-label"},"Last seen",-1)),n("div",{class:"aside-value",title:e.absTime(s?.ts)},u(e.relTime(s?.ts)),9,bv)]),n("div",wv,[t[38]||(t[38]=n("div",{class:"aside-label"},"Occurrences",-1)),n("div",kv,[h(u(s?.count),1),s?._lastHourCount?(l(),d("span",Cv," \xB7 "+u(s?._lastHourCount)+" this hour",1)):c("v-if",!0)])]),s?._repoId?(l(),d("div",Ev,[t[39]||(t[39]=n("div",{class:"aside-label"},"Repository",-1)),n("a",{class:"aside-value",href:e.safeUrl("/r/"+s?._repoId)},u(s?._repoId),9,Sv)])):c("v-if",!0),s?._url?(l(),d("div",Nv,[t[40]||(t[40]=n("div",{class:"aside-label"},"URL",-1)),n("div",Rv,u(s?._url),1)])):c("v-if",!0)])])])):c("v-if",!0)],2))),128))])):c("v-if",!0)])}var Dv={class:"container paper-page admin-page overview-page"},Tv={key:0,class:"admin-empty"},_v={key:1,class:"alert alert-danger",style:{margin:"12px 0"}},Av={class:"ov-views",role:"tablist","aria-label":"Overview sections"},Ov=["aria-selected","onClick"],Pv={key:2},Iv={key:0,class:"ov-health",role:"status"},Mv={class:"ov-kpi-row"},Vv={class:"ov-kpi-card"},qv={class:"ov-kpi-value"},Lv={class:"ov-kpi-sub"},$v={class:"ov-kpi-card"},Uv={class:"ov-kpi-sub"},Fv={class:"ov-kpi-card"},Bv={class:"ov-kpi-sub"},zv={class:"ov-kpi-card"},Hv={class:"ov-kpi-sub"},jv={class:"ov-kpi-card"},Gv={class:"ov-kpi-value"},Wv={class:"ov-kpi-sub"},Kv={class:"ov-daily-row"},Yv={class:"ov-daily-card"},Jv={class:"ov-daily-value"},Qv={class:"ov-daily-card"},Xv={class:"ov-daily-value"},Zv={class:"ov-daily-sub"},xv={class:"ov-daily-card"},eg={class:"ov-daily-value"},tg={class:"ov-chart-row"},ng={class:"ov-chart-card"},og={class:"ov-chart-head"},sg={class:"ov-chart-legend"},ig={key:0,class:"ov-spark-bars"},rg=["data-tip","aria-label"],ag={key:1,class:"ov-spark-x"},lg={class:"ov-chart-card"},dg={class:"ov-chart-head"},ug={class:"ov-chart-legend"},cg={key:0,class:"ov-spark-bars"},pg=["data-tip","aria-label"],fg={key:1,class:"ov-spark-x"},mg={class:"ov-chart-card"},hg={class:"ov-chart-head"},vg={class:"ov-chart-legend"},gg={key:0,class:"ov-spark-bars"},yg=["data-tip","aria-label"],bg={key:1,class:"ov-spark-x"},wg={class:"ov-chart-card"},kg={class:"ov-chart-head"},Cg={class:"ov-chart-legend"},Eg={key:0,class:"ov-spark-bars"},Sg=["data-tip","aria-label"],Ng={key:1,class:"ov-spark-x"},Rg={class:"ov-triple-row"},Dg={class:"ov-panel-card"},Tg={class:"ov-panel-head"},_g={class:"ov-panel-meta"},Ag={class:"ov-stacked-bar"},Og={class:"ov-bar-legend"},Pg={href:"/admin/repositories",class:"ov-legend-item"},Ig={class:"ov-legend-n"},Mg={href:"/admin/repositories",class:"ov-legend-item"},Vg={class:"ov-legend-n"},qg={href:"/admin/repositories",class:"ov-legend-item"},Lg={class:"ov-legend-n"},$g={href:"/admin/repositories",class:"ov-legend-item"},Ug={class:"ov-legend-n"},Fg={href:"/admin/repositories",class:"ov-legend-item"},Bg={class:"ov-legend-n"},zg={class:"ov-panel-card"},Hg={class:"ov-panel-head"},jg={class:"ov-panel-meta"},Gg={class:"ov-error-bars"},Wg={class:"ov-ebar-row"},Kg={class:"ov-ebar-track"},Yg={class:"ov-ebar-n"},Jg={class:"ov-ebar-row"},Qg={class:"ov-ebar-track"},Xg={class:"ov-ebar-n"},Zg={class:"ov-ebar-row"},xg={class:"ov-ebar-track"},ey={class:"ov-ebar-n"},ty={key:0,class:"ov-panel-foot"},ny={href:"/admin/errors"},oy={class:"ov-panel-card"},sy={class:"ov-routes-table"},iy={class:"ov-route-row",href:"/admin/queues"},ry={class:"ov-route-n"},ay={class:"ov-route-n"},ly={class:"ov-route-row",href:"/admin/queues"},dy={class:"ov-route-n"},uy={class:"ov-route-n"},cy={class:"ov-route-row",href:"/admin/queues"},py={class:"ov-route-n"},fy={class:"ov-route-n"},my={class:"ov-services-card"},hy={class:"ov-services-head"},vy={class:"ov-panel-meta"},gy={class:"ov-services-grid"},yy={class:"ov-svc"},by={class:"ov-svc-info"},wy={class:"ov-svc-meta"},ky={class:"ov-svc-detail"},Cy={class:"ov-svc"},Ey={class:"ov-svc-info"},Sy={key:0,class:"ov-svc-meta"},Ny={key:1,class:"ov-svc-meta"},Ry={class:"ov-svc"},Dy={class:"ov-svc-info"},Ty={key:0,class:"ov-svc-meta"},_y={key:1,class:"ov-svc-meta"},Ay={class:"ov-svc"},Oy={class:"ov-svc-info"},Py={key:0,class:"ov-svc-meta"},Iy={key:1,class:"ov-svc-meta"},My={class:"ov-svc"},Vy={class:"ov-svc-info"},qy={class:"ov-svc-meta"},Ly={class:"ov-panel-card ov-cache","aria-labelledby":"cache-heading"},$y={class:"ov-panel-head ov-performance-head"},Uy={class:"ov-performance-window"},Fy={key:0,class:"ov-performance-message ov-performance-warning",role:"alert"},By={key:1,class:"ov-performance-empty",role:"status"},zy={key:0,class:"ov-performance-note"},Hy={key:1,class:"ov-performance-note"},jy={key:2,class:"ov-performance-message ov-performance-warning",role:"status"},Gy={key:3,class:"ov-metrics-scroll",tabindex:"0",role:"region","aria-label":"Cache storage budgets"},Wy={class:"ov-metrics-table"},Ky={scope:"row"},Yy={key:4,class:"ov-performance-note"},Jy={key:5,class:"ov-metrics-scroll",tabindex:"0",role:"region","aria-label":"Cache events and processing durations"},Qy={class:"ov-metrics-table"},Xy={scope:"row"},Zy={key:6,class:"ov-performance-empty",role:"status"},xy={class:"ov-performance-note"},eb={class:"ov-panel-card ov-performance","aria-labelledby":"performance-heading"},tb={class:"ov-panel-head ov-performance-head"},ob={class:"ov-performance-window"},sb={key:0,class:"ov-performance-message ov-performance-warning",role:"alert"},ib={key:1,class:"ov-performance-empty",role:"status"},rb={key:2},ab={class:"paper-tabs ov-performance-tabs",role:"tablist","aria-label":"Performance metrics"},lb=["aria-selected","tabindex"],db=["aria-selected","tabindex"],ub=["aria-selected","tabindex"],cb={id:"performance-routes",role:"tabpanel","aria-labelledby":"performance-routes-tab"},pb={key:0,class:"ov-metrics-scroll",tabindex:"0",role:"region","aria-label":"Route latency metrics, scroll for more columns"},fb={class:"ov-metrics-table"},mb={scope:"row",class:"ov-metric-name"},hb={class:"num"},vb={class:"num"},gb={class:"num"},yb={class:"num"},bb={class:"num"},wb={key:1,class:"ov-performance-empty"},kb={id:"performance-processes",role:"tabpanel","aria-labelledby":"performance-processes-tab"},Cb={key:0,class:"ov-performance-message ov-performance-warning",role:"status"},Eb={key:1,class:"ov-metrics-scroll",tabindex:"0",role:"region","aria-label":"Process resource metrics, scroll for more columns"},Sb={class:"ov-metrics-table"},Nb={scope:"row",class:"ov-metric-name"},Rb={key:0,class:"ov-metric-warn"},Db={class:"num"},Tb={class:"num"},_b={class:"num"},Ab={class:"num"},Ob={class:"num"},Pb={class:"num"},Ib={class:"num"},Mb={class:"num"},Vb={id:"performance-stages",role:"tabpanel","aria-labelledby":"performance-stages-tab"},qb={key:0,class:"ov-metrics-scroll",tabindex:"0",role:"region","aria-label":"Work stage metrics, scroll for more columns"},Lb={class:"ov-metrics-table"},$b={scope:"row",class:"ov-metric-name"},Ub={class:"num"},Fb={class:"num"},Bb={class:"num"},zb={key:1,class:"ov-performance-empty"};function Vl(e,t){return l(),d("div",Dv,[t[83]||(t[83]=me('<div class="paper-crumbs"><a href="/admin/">Admin</a> \xA0/\xA0 <span class="here">Overview</span></div><div class="ov-header"><h1 class="paper-page-title">Overview</h1><span class="ov-live"><span class="ov-live-dot" aria-hidden="true"></span>Live<span class="ov-live-extra"> \xB7 refreshes every 30s</span></span></div><nav class="admin-nav"><a href="/admin/" class="active"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-chart"></use></svg> Overview</a><a href="/admin/repositories"><svg class="ui-icon" aria-hidden="true"><use href="#project-type-repo"></use></svg> Repositories</a><a href="/admin/users"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-users"></use></svg> Users</a><a href="/admin/conferences"><svg class="ui-icon" aria-hidden="true"><use href="#project-icon-conference"></use></svg> Conferences</a><a href="/admin/queues"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-list"></use></svg> Queues</a><a href="/admin/errors"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-bug"></use></svg> Errors</a></nav>',3)),e.loading?(l(),d("div",Tv,"Loading overview\u2026")):c("v-if",!0),e.error?(l(),d("div",_v,[t[13]||(t[13]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),h(" "+u(e.error),1)])):c("v-if",!0),n("div",Av,[(l(),d(W,null,oe([{id:"summary",label:"Summary"},{id:"performance",label:"Performance"},{id:"cache",label:"Cache"}],o=>n("button",{type:"button",role:"tab",key:o.id,"aria-selected":e.ovView===o.id?"true":"false",class:O({active:e.ovView===o.id}),onClick:i=>e.setOvView(o.id)},u(o.label),11,Ov)),64))]),e.data?T((l(),d("div",Pv,[e.data?.system?.memPercent>90||e.data?.system?.diskPercent>90?(l(),d("div",Iv,[...t[14]||(t[14]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1),n("span",null,[n("b",null,"Server needs attention."),h(" Memory or disk is running high (see the cards below). New anonymizations may fail until it drops.")],-1)])])):c("v-if",!0),c(" \u2500\u2500 Top KPI row \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),n("section",Mv,[n("div",Vv,[t[15]||(t[15]=n("div",{class:"ov-kpi-label"},"Live repositories",-1)),n("div",qv,u(e.humanNum((e.data?.repos?.statusBreakdown||[]).filter(o=>o._id!=="removed"&&o._id!=="expired").reduce((o,i)=>o+(i.count||0),0))),1),n("div",Lv,u(e.humanNum(((e.data?.repos?.statusBreakdown||[]).find(o=>o._id==="removed")||{}).count||0))+" removed \xB7 "+u(e.humanNum(e.data?.repos?.total))+" total",1)]),n("div",$v,[t[16]||(t[16]=n("div",{class:"ov-kpi-label"},"CPU",-1)),n("div",{class:O(["ov-kpi-value",{"ov-val-warn":e.data?.system?.cpuPercent>80}])},u(e.data?.system?.cpuPercent)+"%",3),n("div",{class:O(["ov-meter",{warn:e.data?.system?.cpuPercent>80,crit:e.data?.system?.cpuPercent>90}])},[n("span",{style:Re({width:Math.min(100,e.data?.system?.cpuPercent||0)+"%"})},null,4)],2),n("div",Uv,u(e.data?.system?.cpuCount)+" cores \xB7 load "+u(e.data?.system?.loadAvg?.[0]?.toFixed(1)),1)]),n("div",Fv,[t[17]||(t[17]=n("div",{class:"ov-kpi-label"},"Memory",-1)),n("div",{class:O(["ov-kpi-value",{"ov-val-warn":e.data?.system?.memPercent>85}])},u(e.data?.system?.memPercent)+"%",3),n("div",{class:O(["ov-meter",{warn:e.data?.system?.memPercent>85,crit:e.data?.system?.memPercent>90}])},[n("span",{style:Re({width:Math.min(100,e.data?.system?.memPercent||0)+"%"})},null,4)],2),n("div",Bv,[e.data?.system?.memPercent>85?(l(),d("b",{key:0,class:O(["ov-flag",{critical:e.data?.system?.memPercent>90}])},u(e.data?.system?.memPercent>90?"Critical":"High")+" \xB7 ",3)):c("v-if",!0),h(u(e.humanBytes(e.data?.system?.memUsed).replace(/\s*GB$/,""))+" / "+u(e.humanBytes(e.data?.system?.memTotal)),1)])]),n("div",zv,[t[18]||(t[18]=n("div",{class:"ov-kpi-label"},"Disk",-1)),n("div",{class:O(["ov-kpi-value",{"ov-val-warn":e.data?.system?.diskPercent>85}])},u(e.data?.system?.diskPercent)+"%",3),n("div",{class:O(["ov-meter",{warn:e.data?.system?.diskPercent>85,crit:e.data?.system?.diskPercent>90}])},[n("span",{style:Re({width:Math.min(100,e.data?.system?.diskPercent||0)+"%"})},null,4)],2),n("div",Hv,[e.data?.system?.diskPercent>85?(l(),d("b",{key:0,class:O(["ov-flag",{critical:e.data?.system?.diskPercent>90}])},u(e.data?.system?.diskPercent>90?"Critical":"High")+" \xB7 ",3)):c("v-if",!0),h(u(e.humanBytes(e.data?.system?.diskUsed).replace(/\s*GB$/,""))+" / "+u(e.humanBytes(e.data?.system?.diskTotal)),1),e.data?.system?.diskMount&&e.data.system.diskMount!=="/"?(l(),d(W,{key:1},[h(" \xB7 "+u(e.data?.system?.diskMount),1)],64)):c("v-if",!0)])]),n("div",jv,[t[19]||(t[19]=n("div",{class:"ov-kpi-label"},"Uptime",-1)),n("div",Gv,u(e.humanDuration(e.data?.system?.uptime)),1),n("div",Wv,u(e.data?.system?.nodeVersion)+" \xB7 "+u(e.data?.system?.platform),1)])]),c(" \u2500\u2500 Daily activity highlights \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),n("section",Kv,[n("div",Yv,[t[20]||(t[20]=n("div",{class:"ov-daily-label"},"New repos today",-1)),n("div",Jv,u(e.fmt?.number(e.data?.daily?.today?.repositories||0)),1),t[21]||(t[21]=n("div",{class:"ov-daily-sub"},"so far today",-1))]),n("div",Qv,[t[22]||(t[22]=n("div",{class:"ov-daily-label"},"New users today",-1)),n("div",Xv,u(e.fmt?.number(e.data?.daily?.today?.users||0)),1),n("div",Zv,u(e.fmt?.number(e.data?.users?.total))+" total users",1)]),n("div",xv,[t[23]||(t[23]=n("div",{class:"ov-daily-label"},"Page views today",-1)),n("div",eg,u(e.fmt?.number(e.data?.daily?.today?.pageViews||0)),1),t[24]||(t[24]=n("div",{class:"ov-daily-sub"},"so far today",-1))])]),c(" \u2500\u2500 Daily charts \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),n("section",tg,[n("div",ng,[n("div",og,[t[26]||(t[26]=n("span",{class:"ov-chart-title"},"Daily page views \xB7 30d",-1)),n("span",sg,[t[25]||(t[25]=n("span",{class:"ov-dot-legend ov-dot-accent"},null,-1)),h("views/day \xB7 peak "+u(e.fmt?.number(e.historyMax("dailyPageViews"))),1)])]),e.data?.history?.length?(l(),d("div",ig,[(l(!0),d(W,null,oe(e.data?.history,(o,i)=>(l(),d("div",{class:"ov-spark-col has-tip",key:i,"data-tip":e.historyLabel(o)+": +"+e.fmt?.number(o?.dailyPageViews)+" views","aria-label":e.historyLabel(o)+": +"+e.fmt?.number(o?.dailyPageViews)+" views"},[n("span",{class:"ov-spark-fill",style:Re({height:e.historyBarH(o,"dailyPageViews")+"px"})},null,4)],8,rg))),128))])):c("v-if",!0),e.data?.history?.length?(l(),d("div",ag,[n("span",null,u(e.historyLabel(e.data?.history[0])),1),n("span",null,u(e.historyLabel(e.data?.history[Math?.floor(e.data?.history?.length/2)])),1),n("span",null,u(e.historyLabel(e.data?.history[e.data?.history?.length-1])),1)])):c("v-if",!0)]),n("div",lg,[n("div",dg,[t[28]||(t[28]=n("span",{class:"ov-chart-title"},"New repos \xB7 30d",-1)),n("span",ug,[t[27]||(t[27]=n("span",{class:"ov-dot-legend ov-dot-ok-fill"},null,-1)),h("repos/day \xB7 peak "+u(e.fmt?.number(e.historyMax("dailyRepositories"))),1)])]),e.data?.history?.length?(l(),d("div",cg,[(l(!0),d(W,null,oe(e.data?.history,(o,i)=>(l(),d("div",{class:"ov-spark-col has-tip",key:i,"data-tip":e.historyLabel(o)+": +"+e.fmt?.number(o?.dailyRepositories)+" repos","aria-label":e.historyLabel(o)+": +"+e.fmt?.number(o?.dailyRepositories)+" repos"},[n("span",{class:"ov-spark-fill ov-spark-fill-alt",style:Re({height:e.historyBarH(o,"dailyRepositories")+"px"})},null,4)],8,pg))),128))])):c("v-if",!0),e.data?.history?.length?(l(),d("div",fg,[n("span",null,u(e.historyLabel(e.data?.history[0])),1),n("span",null,u(e.historyLabel(e.data?.history[Math?.floor(e.data?.history?.length/2)])),1),n("span",null,u(e.historyLabel(e.data?.history[e.data?.history?.length-1])),1)])):c("v-if",!0)]),n("div",mg,[n("div",hg,[t[30]||(t[30]=n("span",{class:"ov-chart-title"},"Users \xB7 30d",-1)),n("span",vg,[t[29]||(t[29]=n("span",{class:"ov-dot-legend ov-dot-user-fill"},null,-1)),h("total users \xB7 "+u(e.fmt?.number(e.historyRange("nbUsers").min))+"\u2013"+u(e.fmt?.number(e.historyRange("nbUsers").max)),1)])]),e.data?.history?.length?(l(),d("div",gg,[(l(!0),d(W,null,oe(e.data?.history,(o,i)=>(l(),d("div",{class:"ov-spark-col has-tip",key:i,"data-tip":e.historyLabel(o)+": "+e.fmt?.number(o?.nbUsers)+" users","aria-label":e.historyLabel(o)+": "+e.fmt?.number(o?.nbUsers)+" users"},[n("span",{class:"ov-spark-fill ov-spark-fill-user",style:Re({height:e.historyRangeH(o,"nbUsers")+"px"})},null,4)],8,yg))),128))])):c("v-if",!0),e.data?.history?.length?(l(),d("div",bg,[n("span",null,u(e.historyLabel(e.data?.history[0])),1),n("span",null,u(e.historyLabel(e.data?.history[Math?.floor(e.data?.history?.length/2)])),1),n("span",null,u(e.historyLabel(e.data?.history[e.data?.history?.length-1])),1)])):c("v-if",!0)]),n("div",wg,[n("div",kg,[t[32]||(t[32]=n("span",{class:"ov-chart-title"},"New users \xB7 30d",-1)),n("span",Cg,[t[31]||(t[31]=n("span",{class:"ov-dot-legend ov-dot-new-user-fill"},null,-1)),h("users/day \xB7 peak "+u(e.fmt?.number(e.historyMax("dailyUsers"))),1)])]),e.data?.history?.length?(l(),d("div",Eg,[(l(!0),d(W,null,oe(e.data?.history,(o,i)=>(l(),d("div",{class:"ov-spark-col has-tip",key:i,"data-tip":e.historyLabel(o)+": +"+e.fmt?.number(o?.dailyUsers)+" users","aria-label":e.historyLabel(o)+": +"+e.fmt?.number(o?.dailyUsers)+" users"},[n("span",{class:"ov-spark-fill ov-spark-fill-new-user",style:Re({height:e.historyBarH(o,"dailyUsers")+"px"})},null,4)],8,Sg))),128))])):c("v-if",!0),e.data?.history?.length?(l(),d("div",Ng,[n("span",null,u(e.historyLabel(e.data?.history[0])),1),n("span",null,u(e.historyLabel(e.data?.history[Math?.floor(e.data?.history?.length/2)])),1),n("span",null,u(e.historyLabel(e.data?.history[e.data?.history?.length-1])),1)])):c("v-if",!0)])]),c(" \u2500\u2500 Three-panel row: Status / Errors / Queues \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),n("section",Rg,[c(" Repo status breakdown "),n("div",Dg,[n("div",Tg,[t[33]||(t[33]=n("span",{class:"ov-panel-title"},"Repo status",-1)),n("span",_g,u(e.fmt?.number(e.data?.repos?.total))+" total",1)]),n("div",Ag,[n("span",{class:"ov-bar-seg ov-bar-ready",title:"Ready",style:Re({width:e.barPct("ready")+"%"})},null,4),n("span",{class:"ov-bar-seg ov-bar-preparing",title:"Preparing",style:Re({width:e.barPct("preparing")+"%"})},null,4),n("span",{class:"ov-bar-seg ov-bar-error",title:"Error",style:Re({width:e.barPct("error")+"%"})},null,4),n("span",{class:"ov-bar-seg ov-bar-expired",title:"Expired",style:Re({width:e.barPct("expired")+"%"})},null,4),n("span",{class:"ov-bar-seg ov-bar-removed",title:"Removed",style:Re({width:e.barPct("removed")+"%"})},null,4)]),n("div",Og,[n("a",Pg,[t[34]||(t[34]=n("span",{class:"ov-swatch ov-bar-ready"},null,-1)),t[35]||(t[35]=h(" ready ",-1)),n("span",Ig,u(e.fmt?.number(e.statusCount("ready"))),1)]),n("a",Mg,[t[36]||(t[36]=n("span",{class:"ov-swatch ov-bar-preparing"},null,-1)),t[37]||(t[37]=h(" preparing ",-1)),n("span",Vg,u(e.fmt?.number(e.statusCount("preparing")+e.statusCount("download"))),1)]),n("a",qg,[t[38]||(t[38]=n("span",{class:"ov-swatch ov-bar-error"},null,-1)),t[39]||(t[39]=h(" error ",-1)),n("span",Lg,u(e.fmt?.number(e.statusCount("error"))),1)]),n("a",$g,[t[40]||(t[40]=n("span",{class:"ov-swatch ov-bar-expired"},null,-1)),t[41]||(t[41]=h(" expired ",-1)),n("span",Ug,u(e.fmt?.number(e.statusCount("expired")+e.statusCount("expiring"))),1)]),n("a",Fg,[t[42]||(t[42]=n("span",{class:"ov-swatch ov-bar-removed"},null,-1)),t[43]||(t[43]=h(" removed ",-1)),n("span",Bg,u(e.fmt?.number(e.statusCount("removed")+e.statusCount("removing"))),1)])])]),c(" Error breakdown "),n("div",zg,[n("div",Hg,[t[44]||(t[44]=n("span",{class:"ov-panel-title"},"Errors \xB7 24h",-1)),n("span",jg,u(e.data?.errors?.last24h)+" total",1)]),n("div",Gg,[n("div",Wg,[t[45]||(t[45]=n("span",{class:"ov-ebar-label"},"5xx",-1)),n("span",Kg,[n("span",{class:"ov-ebar-fill ov-ebar-error",style:Re({width:e.errPct("error")+"%"})},null,4)]),n("span",Yg,u(e.data?.errors?.severity?.error),1)]),n("div",Jg,[t[46]||(t[46]=n("span",{class:"ov-ebar-label"},"4xx",-1)),n("span",Qg,[n("span",{class:"ov-ebar-fill ov-ebar-warn",style:Re({width:e.errPct("warn")+"%"})},null,4)]),n("span",Xg,u(e.data?.errors?.severity?.warn),1)]),n("div",Zg,[t[47]||(t[47]=n("span",{class:"ov-ebar-label"},"Info",-1)),n("span",xg,[n("span",{class:"ov-ebar-fill ov-ebar-info",style:Re({width:e.errPct("info")+"%"})},null,4)]),n("span",ey,u(e.data?.errors?.severity?.info),1)])]),e.data?.repos?.recentErrors24h?(l(),d("div",ty,[n("a",ny,u(e.data?.repos?.recentErrors24h)+" repos in error state \u2192",1)])):c("v-if",!0)]),c(" Top routes / queues "),n("div",oy,[t[52]||(t[52]=n("div",{class:"ov-panel-head"},[n("span",{class:"ov-panel-title"},"Queues"),n("span",{class:"ov-panel-meta"},"by state")],-1)),n("div",sy,[t[51]||(t[51]=me('<div class="ov-route-row ov-route-head"><span class="ov-route-name">Queue</span><span class="ov-route-n">Active</span><span class="ov-route-n">Wait</span><span class="ov-route-n ov-route-lat">Failed</span></div>',1)),n("a",iy,[t[48]||(t[48]=n("span",{class:"ov-route-name"},"download",-1)),n("span",ry,u(e.data?.queues?.download?.active),1),n("span",ay,u(e.data?.queues?.download?.waiting),1),n("span",{class:O(["ov-route-n ov-route-lat",{"ov-n-bad":e.data?.queues?.download?.failed>0}])},u(e.data?.queues?.download?.failed),3)]),n("a",ly,[t[49]||(t[49]=n("span",{class:"ov-route-name"},"remove",-1)),n("span",dy,u(e.data?.queues?.remove?.active),1),n("span",uy,u(e.data?.queues?.remove?.waiting),1),n("span",{class:O(["ov-route-n ov-route-lat",{"ov-n-bad":e.data?.queues?.remove?.failed>0}])},u(e.data?.queues?.remove?.failed),3)]),n("a",cy,[t[50]||(t[50]=n("span",{class:"ov-route-name"},"cache",-1)),n("span",py,u(e.data?.queues?.cache?.active),1),n("span",fy,u(e.data?.queues?.cache?.waiting),1),n("span",{class:O(["ov-route-n ov-route-lat",{"ov-n-bad":e.data?.queues?.cache?.failed>0}])},u(e.data?.queues?.cache?.failed),3)])])])]),c(" \u2500\u2500 Services bar \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),n("section",my,[n("div",hy,[t[53]||(t[53]=n("span",{class:"ov-panel-title"},"Services",-1)),n("span",vy,u(e.fmt?.number(e.data?.users?.total))+" users \xB7 "+u(e.data?.conferences?.total)+" conferences",1)]),n("div",gy,[n("div",yy,[t[55]||(t[55]=n("span",{class:"ov-svc-dot ov-dot-ok"},null,-1)),n("div",by,[t[54]||(t[54]=n("span",{class:"ov-svc-name"},"web",-1)),n("span",wy,u(e.data?.system?.nodeVersion),1)]),n("span",ky,"uptime "+u(e.humanDuration(e.data?.system?.uptime)),1)]),n("div",Cy,[n("span",{class:O(["ov-svc-dot",e.queueTotal(e.data?.queues?.download)>0?"ov-dot-ok":"ov-dot-idle"])},null,2),n("div",Ey,[t[56]||(t[56]=n("span",{class:"ov-svc-name"},"download",-1)),e.queueTotal(e.data?.queues?.download)?(l(),d("span",Sy,u(e.queueTotal(e.data?.queues?.download))+" jobs",1)):c("v-if",!0),e.queueTotal(e.data?.queues?.download)?c("v-if",!0):(l(),d("span",Ny,"idle"))])]),n("div",Ry,[n("span",{class:O(["ov-svc-dot",e.queueTotal(e.data?.queues?.cache)>0?"ov-dot-ok":"ov-dot-idle"])},null,2),n("div",Dy,[t[57]||(t[57]=n("span",{class:"ov-svc-name"},"cache",-1)),e.queueTotal(e.data?.queues?.cache)?(l(),d("span",Ty,u(e.queueTotal(e.data?.queues?.cache))+" jobs",1)):c("v-if",!0),e.queueTotal(e.data?.queues?.cache)?c("v-if",!0):(l(),d("span",_y,"idle"))])]),n("div",Ay,[n("span",{class:O(["ov-svc-dot",e.queueTotal(e.data?.queues?.remove)>0?"ov-dot-ok":"ov-dot-idle"])},null,2),n("div",Oy,[t[58]||(t[58]=n("span",{class:"ov-svc-name"},"remove",-1)),e.queueTotal(e.data?.queues?.remove)?(l(),d("span",Py,u(e.queueTotal(e.data?.queues?.remove))+" jobs",1)):c("v-if",!0),e.queueTotal(e.data?.queues?.remove)?c("v-if",!0):(l(),d("span",Iy,"idle"))])]),n("div",My,[n("span",{class:O(["ov-svc-dot",e.data?.repos?.recentErrors24h>10?"ov-dot-warn":"ov-dot-ok"])},null,2),n("div",Vy,[t[59]||(t[59]=n("span",{class:"ov-svc-name"},"errors",-1)),n("span",qy,u(e.data?.errors?.last24h)+" / 24h",1)])])])])],512)),[[Y,e.ovView==="summary"]]):c("v-if",!0),T(n("section",Ly,[n("div",$y,[t[64]||(t[64]=n("div",null,[n("h2",{class:"ov-panel-title",id:"cache-heading"},"Cache"),n("p",{class:"ov-performance-note"},"Shared storage, repeated reads and anonymization work \xB7 refreshes every 30 seconds")],-1)),n("div",Uy,[t[62]||(t[62]=n("label",{for:"cache-window"},"Time range",-1)),T(n("select",{id:"cache-window",class:"form-control form-control-sm","onUpdate:modelValue":t[0]||(t[0]=o=>e.cacheMinutes=o),onChange:t[1]||(t[1]=o=>e.loadCache())},[...t[60]||(t[60]=[n("option",{value:15},"Last 15 minutes",-1),n("option",{value:60},"Last hour",-1),n("option",{value:1440},"Last 24 hours",-1),n("option",{value:10080},"Last 7 days",-1)])],544),[[fn,e.cacheMinutes,void 0,{number:!0}]]),t[63]||(t[63]=n("label",{for:"cache-traffic"},"Traffic",-1)),T(n("select",{id:"cache-traffic",class:"form-control form-control-sm","onUpdate:modelValue":t[2]||(t[2]=o=>e.cacheTraffic=o)},[...t[61]||(t[61]=[me('<option value="all">All traffic</option><option value="file">File reads</option><option value="website">Website rendering</option><option value="zip">ZIP downloads</option><option value="monitor">Known monitors</option><option value="background">Background work</option>',6)])],512),[[fn,e.cacheTraffic]])])]),e.cacheError?(l(),d("div",Fy,[n("span",null,u(e.cacheError),1),n("button",{type:"button",class:"btn btn-sm",onClick:t[3]||(t[3]=o=>e.loadCache())},"Retry")])):c("v-if",!0),!e.cacheReport&&!e.cacheError?(l(),d("p",By,"Loading cache monitoring\u2026")):c("v-if",!0),e.cacheReport?.available?(l(),d(W,{key:2},[e.cacheReport.enabled?c("v-if",!0):(l(),d("p",zy,"Shared blob storage is disabled. Inspection and legacy-cache activity are still measured.")),e.cacheReport.filesystemSupported?c("v-if",!0):(l(),d("p",Hy,"Shared blobs require a local filesystem. The configured storage continues to use its existing cache.")),e.cacheReport.dropped?(l(),d("p",jy,u(e.cacheReport.dropped)+" telemetry events were dropped. Totals may be incomplete.",1)):c("v-if",!0),e.cacheReport.source?(l(),d("div",Gy,[n("table",Wy,[t[65]||(t[65]=n("caption",{class:"sr-only"},"Current shared-cache storage and byte budgets",-1)),t[66]||(t[66]=n("thead",null,[n("tr",null,[n("th",{scope:"col"},"Pool"),n("th",{scope:"col"},"Allocated / budget"),n("th",{scope:"col"},"Reserved for fills"),n("th",{scope:"col"},"Original bytes"),n("th",{scope:"col"},"Blobs"),n("th",{scope:"col"},"Active readers")])],-1)),n("tbody",null,[(l(!0),d(W,null,oe([{name:"Source blobs",data:e.cacheReport.source},{name:"Transformed output",data:e.cacheReport.results}],o=>T((l(),d("tr",{key:o.name},[n("th",Ky,u(o.name),1),n("td",null,u(e.humanBytes(o.data?.allocatedBytes))+" / "+u(e.humanBytes(o.data?.budgetBytes)),1),n("td",null,u(e.humanBytes(o.data?.reservedBytes)),1),n("td",null,u(e.humanBytes(o.data?.originalBytes)),1),n("td",null,u(o.data?.blobs),1),n("td",null,u(o.data?.activeReaders),1)])),[[Y,o.data]])),128))])])])):c("v-if",!0),e.cacheReport.source?(l(),d("p",Yy,"Source request hit rate: "+u(e.cacheRate("source","count"))+" \xB7 Source byte hit rate: "+u(e.cacheRate("source","bytes"))+" \xB7 Decision hit rate: "+u(e.cacheRate("decision","count")),1)):c("v-if",!0),t[69]||(t[69]=n("p",{class:"ov-performance-note"},"Reuse counts measure consecutive reads of the same blob within each interval. Codec timings are elapsed stream time, not CPU time; eviction times measure how long a blob was idle. Known monitors are identified by request metadata; other automation may remain in file reads.",-1)),e.cacheRows().length?(l(),d("div",Jy,[n("table",Qy,[t[67]||(t[67]=n("caption",{class:"sr-only"},"Cache events for the selected time range and traffic",-1)),t[68]||(t[68]=n("thead",null,[n("tr",null,[n("th",{scope:"col"},"Event"),n("th",{scope:"col"},"Traffic"),n("th",{scope:"col"},"Count"),n("th",{scope:"col"},"Bytes"),n("th",{scope:"col"},"Mean measured time"),n("th",{scope:"col"},"p95 bound")])],-1)),n("tbody",null,[(l(!0),d(W,null,oe(e.cacheRows(),o=>(l(),d("tr",{key:o.name+":"+o.traffic},[n("th",Xy,u(e.cacheEventName(o.name)),1),n("td",null,u(o.traffic),1),n("td",null,u(o.count),1),n("td",null,u(e.humanBytes(o.bytes)),1),n("td",null,u(o.ms?(o.ms/o.count).toFixed(2)+" ms":"Not timed"),1),n("td",null,u(e.cacheP95(o)),1)]))),128))])])])):(l(),d("p",Zy,"No cache events in this time range for the selected traffic.")),n("p",xy,"Updated "+u(e.sampleAge(e.cacheReport))+" seconds ago. Minute history is retained for 48 hours; hourly history for 30 days.",1)],64)):c("v-if",!0)],512),[[Y,e.ovView==="cache"]]),T(n("section",eb,[n("div",tb,[t[72]||(t[72]=n("div",null,[n("h2",{class:"ov-panel-title",id:"performance-heading"},"Request performance"),n("p",{class:"ov-performance-note"},"Request latency and process health \xB7 refreshes every 30 seconds")],-1)),n("div",ob,[t[71]||(t[71]=n("label",{for:"performance-window"},"Time range",-1)),T(n("select",{id:"performance-window",class:"form-control form-control-sm","onUpdate:modelValue":t[4]||(t[4]=o=>e.performanceMinutes=o),onChange:t[5]||(t[5]=o=>e.loadPerformance()),"aria-label":"Performance time range"},[...t[70]||(t[70]=[n("option",{value:15},"Last 15 minutes",-1),n("option",{value:60},"Last hour",-1)])],544),[[fn,e.performanceMinutes,void 0,{number:!0}]])])]),e.performanceError?(l(),d("div",sb,[t[73]||(t[73]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),n("span",null,u(e.performanceError),1),n("button",{type:"button",class:"btn btn-sm",onClick:t[6]||(t[6]=o=>e.loadPerformance())},"Retry")])):c("v-if",!0),!e.performance&&!e.performanceError?(l(),d("p",ib,"Loading performance monitoring\u2026")):c("v-if",!0),e.performance?.available?(l(),d("div",rb,[n("div",ab,[n("button",{id:"performance-routes-tab",type:"button",class:O(["paper-tab",{active:e.performanceTab==="routes"}]),role:"tab","aria-selected":e.performanceTab==="routes",tabindex:e.performanceTab==="routes"?0:-1,"aria-controls":"performance-routes",onClick:t[7]||(t[7]=o=>e.performanceTab="routes"),onKeydown:t[8]||(t[8]=o=>e.previewTabKeydown(o))},"Routes",42,lb),n("button",{id:"performance-processes-tab",type:"button",class:O(["paper-tab",{active:e.performanceTab==="processes"}]),role:"tab","aria-selected":e.performanceTab==="processes",tabindex:e.performanceTab==="processes"?0:-1,"aria-controls":"performance-processes",onClick:t[9]||(t[9]=o=>e.performanceTab="processes"),onKeydown:t[10]||(t[10]=o=>e.previewTabKeydown(o))},"Processes",42,db),n("button",{id:"performance-stages-tab",type:"button",class:O(["paper-tab",{active:e.performanceTab==="stages"}]),role:"tab","aria-selected":e.performanceTab==="stages",tabindex:e.performanceTab==="stages"?0:-1,"aria-controls":"performance-stages",onClick:t[11]||(t[11]=o=>e.performanceTab="stages"),onKeydown:t[12]||(t[12]=o=>e.previewTabKeydown(o))},"Work stages",42,ub)]),T(n("div",cb,[e.performance.routes?.length?(l(),d("div",pb,[n("table",fb,[t[74]||(t[74]=n("caption",{class:"sr-only"},"Route latency for the selected time range",-1)),t[75]||(t[75]=n("thead",null,[n("tr",null,[n("th",{scope:"col"},"Route"),n("th",{scope:"col",class:"num"},"Requests"),n("th",{scope:"col",class:"num"},"Average"),n("th",{scope:"col",class:"num"},"First byte p95"),n("th",{scope:"col",class:"num"},"p95"),n("th",{scope:"col",class:"num"},"p99"),n("th",{scope:"col",class:"num"},"Interrupted"),n("th",{scope:"col",class:"num"},"5xx"),n("th",{scope:"col",class:"num"},"Slow")])],-1)),n("tbody",null,[(l(!0),d(W,null,oe(e.performance.routes,o=>(l(),d("tr",{key:o.service+o.method+o.route},[n("th",mb,[n("span",null,u(o.route),1),n("small",null,u(o.service)+" \xB7 "+u(o.method),1)]),n("td",hb,u(e.fmt.number(o.count)),1),n("td",vb,u(e.formatMs(o.avgMs)),1),n("td",gb,u(e.firstByteBound(o)),1),n("td",yb,u(e.latencyBound(o,"p95UpperMs")),1),n("td",bb,u(e.latencyBound(o,"p99UpperMs")),1),n("td",{class:O(["num",{"ov-metric-warn":o.aborted>0}])},u(e.fmt.number(o.aborted)),3),n("td",{class:O(["num",{"ov-metric-warn":o.errors>0}])},u(e.fmt.number(o.errors)),3),n("td",{class:O(["num",{"ov-metric-warn":o.slow>0}])},u(e.fmt.number(o.slow)),3)]))),128))])])])):(l(),d("p",wb,"No recorded requests in this time range yet."))],512),[[Y,e.performanceTab==="routes"]]),T(n("div",kb,[t[79]||(t[79]=n("p",{class:"ov-performance-note"},"API and streamer processes \xB7 latest sample per instance",-1)),e.performance.instances?.length?(l(),d("div",Eb,[n("table",Sb,[t[77]||(t[77]=n("caption",{class:"sr-only"},"API and streamer process resource usage",-1)),t[78]||(t[78]=n("thead",null,[n("tr",null,[n("th",{scope:"col"},"Process"),n("th",{scope:"col",class:"num"},"RSS / limit"),n("th",{scope:"col",class:"num"},"CPU"),n("th",{scope:"col",class:"num"},"Event loop p95"),n("th",{scope:"col",class:"num"},"Active requests"),n("th",{scope:"col",class:"num"},"Sockets / CLOSE_WAIT"),n("th",{scope:"col",class:"num"},"Workers / waiting"),n("th",{scope:"col",class:"num"},"Sample age"),n("th",{scope:"col",class:"num"},"Dropped batches / metrics")])],-1)),n("tbody",null,[(l(!0),d(W,null,oe(e.performance.instances,o=>(l(),d("tr",{key:o.instance,class:O({"ov-metric-warning-row":e.performanceWarning(o)})},[n("th",Nb,[n("span",null,u(o.instance),1),e.performanceWarning(o)?(l(),d("small",Rb,[...t[76]||(t[76]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1),h(" Needs attention",-1)])])):c("v-if",!0)]),n("td",Db,[h(u(e.humanBytes(o.memory.rss))+" / "+u(e.humanBytes(o.memoryLimitBytes)),1),n("small",null,"Peak "+u(e.humanBytes(e.peakRss(o))),1)]),n("td",Tb,u(o.cpuPercent==null?"Unavailable":o.cpuPercent.toFixed(1)+"%"),1),n("td",_b,u(o.eventLoop?.p95Ms==null?"Not applicable":o.eventLoop.p95Ms.toFixed(1)+" ms"),1),n("td",Ab,u(o.activeRequests),1),n("td",Ob,u(o.sockets?.descriptors??"Unavailable")+" / "+u(o.sockets?.closeWait??"Unavailable"),1),n("td",Pb,u(o.workers?.running??0)+" / "+u(o.workers?.waiting??0),1),n("td",Ib,u(e.sampleAge(o))+" s",1),n("td",Mb,u(o.droppedBatches)+" / "+u(o.droppedMetrics),1)],2))),128))])])])):(l(),d("div",Cb,"No recent process samples. Monitoring coverage is incomplete."))],512),[[Y,e.performanceTab==="processes"]]),T(n("div",Vb,[e.performance.stages?.some(o=>o.metric!=="first_byte")?(l(),d("div",qb,[n("table",Lb,[t[80]||(t[80]=n("caption",{class:"sr-only"},"Work stages and cache results",-1)),t[81]||(t[81]=n("thead",null,[n("tr",null,[n("th",{scope:"col"},"Work stage"),n("th",{scope:"col",class:"num"},"Samples"),n("th",{scope:"col",class:"num"},"Average"),n("th",{scope:"col",class:"num"},"p95")])],-1)),n("tbody",null,[(l(!0),d(W,null,oe(e.performance.stages.filter(o=>o.metric!=="first_byte"),o=>(l(),d("tr",{key:o.service+o.metric},[n("th",$b,[n("span",null,u(o.metric),1),n("small",null,u(o.service),1)]),n("td",Ub,u(e.fmt.number(o.count)),1),n("td",Fb,u(e.formatMs(o.avgMs)),1),n("td",Bb,u(e.latencyBound(o,"p95UpperMs")),1)]))),128))])])])):(l(),d("p",zb,"No recorded work stages or cache results in this time range yet."))],512),[[Y,e.performanceTab==="stages"]]),t[82]||(t[82]=n("details",{class:"ov-performance-help"},[n("summary",null,"How to read these metrics"),n("p",null,"Latency includes upstream waits and response transfer. Percentiles show histogram bucket upper bounds, not exact timings. Process rows marked \u201CNeeds attention\u201D have stale samples, dropped monitoring data, CLOSE_WAIT sockets, high event loop delay, or high memory usage.")],-1))])):c("v-if",!0)],512),[[Y,e.ovView==="performance"]])])}var Hb={class:"container paper-page admin-page"},jb={class:"q-header"},Gb={class:"q-header-actions"},Wb={class:"q-cards"},Kb=["aria-pressed","onKeydown","onClick"],Yb={class:"q-card-head"},Jb=["textContent"],Qb=["textContent"],Xb={class:"q-card-sub"},Zb={key:0,class:"q-card-bar"},xb={key:0,class:"q-detail"},e1={class:"q-throughput"},t1={class:"q-range-btns"},n1={class:"q-section-label"},o1={key:0,class:"q-section-right"},s1={class:"q-chart-wrap"},i1={key:0,class:"q-chart-empty"},r1={class:"q-stats-panel"},a1={class:"q-section-label"},l1={class:"q-stats-grid"},d1={class:"q-stat"},u1=["textContent"],c1={class:"q-stat"},p1=["textContent"],f1={class:"q-stat"},m1=["textContent"],h1={class:"q-stat"},v1=["textContent"],g1={class:"q-stat"},y1=["textContent"],b1={class:"q-stat"},w1=["textContent"],k1={class:"q-stats-actions"},C1=["disabled"],E1={class:"q-danger-group"},S1={class:"q-jobs"},N1={class:"q-jobs-header"},R1={class:"q-section-label"},D1={class:"q-state-filters"},T1={class:"q-state-toggle"},_1={type:"checkbox"},A1={class:"q-search-row"},O1={type:"search",class:"form-control",placeholder:"Search by job/repo id\u2026",autocomplete:"off"},P1={class:"q-auto-refresh"},I1={type:"checkbox"},M1={key:0,class:"q-table"},V1=["onClick"],q1={class:"q-cell-state"},L1=["textContent"],$1=["textContent"],U1={class:"q-cell-id"},F1=["textContent","href"],B1={class:"q-cell-payload"},z1=["textContent"],H1={key:0,class:"q-payload-detail"},j1=["textContent"],G1=["textContent"],W1={class:"q-cell-progress"},K1={key:0,class:"q-progress-wrap"},Y1=["textContent"],J1={class:"q-cell-actions"},Q1=["onClick"],X1=["onClick"],Z1={key:0,class:"q-detail-row"},x1={colspan:"7"},ew={class:"q-job-detail"},tw={class:"q-job-detail-grid"},nw={class:"q-job-detail-item"},ow={class:"q-job-detail-value"},sw=["textContent","href"],iw={class:"q-job-detail-item"},rw={class:"q-job-detail-value"},aw=["textContent"],lw={key:0,class:"q-job-detail-item"},dw=["textContent"],uw={key:1,class:"q-job-detail-item"},cw=["textContent"],pw={key:2,class:"q-job-detail-item"},fw={class:"q-job-detail-value"},mw={key:3,class:"q-job-detail-item"},hw=["textContent"],vw={key:4,class:"q-job-detail-item"},gw=["textContent"],yw={key:5,class:"q-job-detail-item"},bw=["textContent"],ww={key:6,class:"q-job-detail-item"},kw=["textContent"],Cw={key:7,class:"q-job-detail-item"},Ew=["textContent"],Sw={key:0,class:"q-job-detail-error"},Nw=["textContent"],Rw={key:1},Dw=["textContent"],Tw={class:"q-job-detail-actions"},_w=["onClick"],Aw=["onClick"],Ow=["href"],Pw={key:1,class:"paper-table-empty",style:{border:"1px solid var(--border-color)","border-radius":"10px",background:"var(--paper-card)"}},Iw={key:0},Mw={key:1};function ql(e,t){let o=we("field");return l(),d("div",Hb,[t[51]||(t[51]=n("div",{class:"paper-crumbs"},[h("Admin \xA0/\xA0 "),n("span",{class:"here"},"Queues")],-1)),n("div",jb,[t[12]||(t[12]=n("h1",{class:"paper-page-title"},"Queues",-1)),n("div",Gb,[n("button",{class:"btn btn-sm",onClick:t[0]||(t[0]=i=>e.pauseAll())},"Pause all queues")])]),t[52]||(t[52]=me('<nav class="admin-nav"><a href="/admin/"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-chart"></use></svg> Overview</a><a href="/admin/repositories"><svg class="ui-icon" aria-hidden="true"><use href="#project-type-repo"></use></svg> Repositories</a><a href="/admin/users"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-users"></use></svg> Users</a><a href="/admin/conferences"><svg class="ui-icon" aria-hidden="true"><use href="#project-icon-conference"></use></svg> Conferences</a><a href="/admin/queues" class="active"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-list"></use></svg> Queues</a><a href="/admin/errors"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-bug"></use></svg> Errors</a></nav>',1)),c(" Queue overview cards "),n("div",Wb,[(l(!0),d(W,null,oe(e.queueList,(i,s)=>(l(),d("div",{class:O(["q-card",{selected:e.selectedQueue==i?.key,paused:i?.paused}]),role:"button",tabindex:"0","aria-pressed":e.selectedQueue===i.key,onKeydown:[ct(ae(r=>e.selectQueue(i.key),["prevent"]),["enter"]),ct(ae(r=>e.selectQueue(i.key),["prevent"]),["space"])],onClick:r=>e.selectQueue(i.key)},[n("div",Yb,[n("span",{class:O(["q-dot",{"q-dot-red":i?.paused||i?.counts?.failed>0,"q-dot-idle":!i?.counts?.active&&!i?.counts?.waiting}])},null,2),n("span",{class:"q-card-name",textContent:u(i?.label)},null,8,Jb)]),n("div",{class:"q-card-count",textContent:u((i?.counts?.waiting||0)+(i?.counts?.active||0)+(i?.counts?.delayed||0))},null,8,Qb),n("div",Xb,[n("span",null,"waiting \xB7 "+u(i?.counts?.active||0)+" active",1),i?.counts?.active?(l(),d("div",Zb,[n("div",{class:"q-card-bar-fill",style:Re({width:i?.counts?.active/((i?.counts?.waiting||0)+(i?.counts?.active||0)+(i?.counts?.delayed||0)||1)*100+"%"})},null,4)])):c("v-if",!0)])],42,Kb))),256))]),c(" Detail: throughput chart + stats panel "),e.selectedStats?(l(),d("div",xb,[n("div",e1,[n("div",t1,[n("button",{class:O(["btn btn-sm",{active:e.range=="1h"}]),onClick:t[1]||(t[1]=i=>e.setRange("1h"))},"1h",2),n("button",{class:O(["btn btn-sm",{active:e.range=="6h"}]),onClick:t[2]||(t[2]=i=>e.setRange("6h"))},"6h",2),n("button",{class:O(["btn btn-sm",{active:e.range=="24h"}]),onClick:t[3]||(t[3]=i=>e.setRange("24h"))},"24h",2),n("button",{class:O(["btn btn-sm",{active:e.range=="7d"}]),onClick:t[4]||(t[4]=i=>e.setRange("7d"))},"7d",2)]),n("div",n1,[h("Throughput \xB7 "+u(e.selectedQueue)+" ",1),(e.selectedStats?.completed24h||0)+(e.selectedStats?.failed24h||0)>0?(l(),d("span",o1,[t[14]||(t[14]=n("span",{class:"q-legend-completed"},"\u25CF",-1)),t[15]||(t[15]=h(" completed ",-1)),t[16]||(t[16]=n("span",{class:"q-legend-failed"},"\u25CF",-1)),t[17]||(t[17]=h(" failed ",-1)),(e.selectedStats?.completed24h||0)+(e.selectedStats?.failed24h||0)>0?(l(),d(W,{key:0},[t[13]||(t[13]=n("span",{class:"q-legend-exec","aria-hidden":"true"},null,-1)),h(" avg time \xB7 "+u(e.range),1)],64)):c("v-if",!0)])):c("v-if",!0)]),n("div",s1,[t[19]||(t[19]=n("canvas",{id:"q-throughput-chart",height:"180"},null,-1)),(e.selectedStats?.completed24h||0)+(e.selectedStats?.failed24h||0)===0?(l(),d("div",i1,[...t[18]||(t[18]=[n("strong",null,"No jobs processed in this window",-1),n("span",null,"Completed and failed jobs will chart here.",-1)])])):c("v-if",!0),t[20]||(t[20]=n("div",{id:"q-chart-tooltip",class:"q-chart-tooltip",style:{display:"none"}},null,-1)),t[21]||(t[21]=n("div",{id:"q-chart-crosshair",class:"q-chart-crosshair",style:{display:"none"}},null,-1))])]),n("div",r1,[n("div",a1,"Stats \xB7 "+u(e.selectedQueue),1),n("div",l1,[n("div",d1,[t[22]||(t[22]=n("div",{class:"q-stat-label"},"Waiting",-1)),n("div",{class:"q-stat-value",textContent:u(e.selectedStats?.counts?.waiting||0)},null,8,u1)]),n("div",c1,[t[23]||(t[23]=n("div",{class:"q-stat-label"},"Active",-1)),n("div",{class:"q-stat-value",textContent:u(e.selectedStats?.counts?.active||0)},null,8,p1)]),n("div",f1,[t[24]||(t[24]=n("div",{class:"q-stat-label"},"Completed (24h)",-1)),n("div",{class:"q-stat-value",textContent:u(e.fmt?.number(e.selectedStats?.completed24h))},null,8,m1)]),n("div",h1,[t[25]||(t[25]=n("div",{class:"q-stat-label"},"Failed (24h)",-1)),n("div",{class:"q-stat-value",textContent:u(e.selectedStats?.failed24h||0)},null,8,v1)]),n("div",g1,[t[26]||(t[26]=n("div",{class:"q-stat-label"},"Delayed",-1)),n("div",{class:"q-stat-value",textContent:u(e.selectedStats?.counts?.delayed||0)},null,8,y1)]),n("div",b1,[t[27]||(t[27]=n("div",{class:"q-stat-label"},"Workers",-1)),n("div",{class:"q-stat-value",textContent:u(e.selectedStats?.workers||0)},null,8,w1)])]),n("div",k1,[n("button",{class:"btn btn-sm",onClick:t[5]||(t[5]=i=>e.togglePause())},u(e.selectedStats?.paused?"Resume "+e.selectedQueue:"Pause "+e.selectedQueue),1),n("button",{class:"btn btn-sm",onClick:t[6]||(t[6]=i=>e.retryFailed()),disabled:!e.selectedStats?.counts?.failed},"Retry failed",8,C1),n("span",E1,[n("button",{class:"btn btn-sm btn-outline-danger",onClick:t[7]||(t[7]=i=>e.drainSelected())},"Drain"),n("button",{class:"btn btn-sm btn-outline-danger",onClick:t[8]||(t[8]=i=>e.emptyQueue())},"Empty")])])])])):c("v-if",!0),e.actionError?(l(),d("div",{key:1,class:"q-toast-error",onClick:t[9]||(t[9]=i=>e.actionError=null)},[t[28]||(t[28]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-info"})],-1)),h(" "+u(e.actionError),1)])):c("v-if",!0),c(" Jobs table "),n("div",S1,[n("div",N1,[n("div",R1,"All jobs \xB7 "+u(e.selectedQueue),1),n("div",D1,[(l(!0),d(W,null,oe(e.allStates,(i,s)=>(l(),d("label",T1,[T(n("input",_1,null,512),[[o,{state:e.viewState,set:r=>{e.stateFilter[i]=r},value:e.stateFilter[i],form:null,options:{}}]]),n("span",{class:O("q-state-chip q-state-"+i)},u(i),3)]))),256))])]),n("div",A1,[T(n("input",O1,null,512),[[o,{state:e.viewState,set:i=>{e.query.search=i},value:e.query?.search,form:null,options:{}}]]),n("label",P1,[T(n("input",I1,null,512),[[o,{state:e.viewState,set:i=>{e.query.autoRefresh=i},value:e.query?.autoRefresh,form:null,options:{}}]]),t[29]||(t[29]=n("span",{class:"auto-refresh-label"},"Auto-refresh",-1))]),n("button",{class:"btn btn-sm btn-icon",type:"button",title:"Refresh now",onClick:t[10]||(t[10]=i=>e.refreshNow()),"aria-label":"Refresh"},[...t[30]||(t[30]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1)])])]),e.filteredJobs().length>0?(l(),d("table",M1,[t[49]||(t[49]=n("thead",null,[n("tr",null,[n("th",null,"State"),n("th",null,"Job ID"),n("th",null,"Payload"),n("th",null,"Attempts"),n("th",null,"Duration"),n("th",null,"Progress"),n("th")])],-1)),(l(!0),d(W,null,oe(e.filteredJobs(),(i,s)=>(l(),d("tbody",null,[n("tr",{style:{cursor:"pointer"},class:O({"q-row-failed":i?._state=="failed","q-row-expanded":e.expanded[i?.id]}),onClick:r=>e.toggleJob(i)},[n("td",q1,[n("span",{textContent:u(i?._state),class:O("q-state-badge q-state-"+i?._state)},null,10,L1),i?._state=="delayed"&&i?.delayUntil?(l(),d("span",{key:0,class:"q-delay-hint",textContent:u(e.delayCountdown(i?.delayUntil))},null,8,$1)):c("v-if",!0)]),n("td",U1,[(l(),d("svg",{class:O(["ui-icon q-chevron",{"q-chevron-open":e.expanded[i?.id]}]),"aria-hidden":"true"},[...t[31]||(t[31]=[n("use",{href:"#ui-icon-chevron-right"},null,-1)])],2)),n("a",{target:"_blank",textContent:u("job:"+e.fmt.limitTo(i?.id,6)),onClick:t[11]||(t[11]=r=>r.stopPropagation()),href:e.safeUrl("/r/"+i?.id)},null,8,F1)]),n("td",B1,[n("span",{textContent:u(i?.name||"anonymize")},null,8,z1),i?.data?.repoId&&i?.data?.repoId!==i?.name?(l(),d("span",H1," \xB7 "+u(i?.data?.repoId),1)):c("v-if",!0)]),n("td",{class:"q-cell-num",textContent:u(i?.attemptsMade||1)},null,8,j1),n("td",{class:"q-cell-num",textContent:u(e.jobDuration(i))},null,8,G1),n("td",W1,[e.jobProgressPct(i)!==null?(l(),d("div",K1,[n("div",{class:"q-progress-bar",style:Re({"--pct":e.jobProgressPct(i)+"%"})},null,4),n("span",{class:"q-progress-label",textContent:u(e.jobProgressPct(i)+"%")},null,8,Y1)])):c("v-if",!0)]),n("td",J1,[i?._state=="failed"?(l(),d("button",{key:0,class:"btn btn-sm btn-icon",title:"Retry",onClick:r=>{e.retryJob(i),r.stopPropagation()},"aria-label":"Retry job"},[...t[32]||(t[32]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1)])],8,Q1)):c("v-if",!0),n("button",{class:"btn btn-sm btn-icon",title:"Remove","aria-label":"Remove job",onClick:r=>{e.removeJob(i),r.stopPropagation()}},[...t[33]||(t[33]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1)])],8,X1)])],10,V1),e.expanded[i?.id]?(l(),d("tr",Z1,[n("td",x1,[n("div",ew,[n("div",tw,[n("div",nw,[t[34]||(t[34]=n("span",{class:"q-job-detail-label"},"Job id",-1)),n("span",ow,[n("a",{target:"_blank",textContent:u(i?.id),href:e.safeUrl("/r/"+i?.id)},null,8,sw)])]),n("div",iw,[t[35]||(t[35]=n("span",{class:"q-job-detail-label"},"State",-1)),n("span",rw,[n("span",{textContent:u(i?._state),class:O("q-state-badge q-state-"+i?._state)},null,10,aw)])]),i?.data?.repoId?(l(),d("div",lw,[t[36]||(t[36]=n("span",{class:"q-job-detail-label"},"Repo ID",-1)),n("span",{class:"q-job-detail-value",textContent:u(i?.data?.repoId)},null,8,dw)])):c("v-if",!0),i?.timestamp?(l(),d("div",uw,[t[37]||(t[37]=n("span",{class:"q-job-detail-label"},"Created",-1)),n("span",{class:"q-job-detail-value",textContent:u(e.humanTime(i?.timestamp))},null,8,cw)])):c("v-if",!0),i?._state=="delayed"&&i?.delayUntil?(l(),d("div",pw,[t[38]||(t[38]=n("span",{class:"q-job-detail-label"},"Retry at",-1)),n("span",fw,u(e.humanTime(i?.delayUntil))+" ("+u(e.delayCountdown(i?.delayUntil))+")",1)])):c("v-if",!0),i?.processedOn?(l(),d("div",mw,[t[39]||(t[39]=n("span",{class:"q-job-detail-label"},"Processed",-1)),n("span",{class:"q-job-detail-value",textContent:u(e.humanTime(i?.processedOn))},null,8,hw)])):c("v-if",!0),i?.finishedOn?(l(),d("div",vw,[t[40]||(t[40]=n("span",{class:"q-job-detail-label"},"Finished",-1)),n("span",{class:"q-job-detail-value",textContent:u(e.humanTime(i?.finishedOn))},null,8,gw)])):c("v-if",!0),i?.attemptsMade?(l(),d("div",yw,[t[41]||(t[41]=n("span",{class:"q-job-detail-label"},"Attempts",-1)),n("span",{class:"q-job-detail-value",textContent:u(i?.attemptsMade)},null,8,bw)])):c("v-if",!0),i?.progress&&i?.progress?.status?(l(),d("div",ww,[t[42]||(t[42]=n("span",{class:"q-job-detail-label"},"Status",-1)),n("span",{class:"q-job-detail-value",textContent:u(i?.progress?.status)},null,8,kw)])):c("v-if",!0),e.jobProgressPct(i)!==null?(l(),d("div",Cw,[t[43]||(t[43]=n("span",{class:"q-job-detail-label"},"Progress",-1)),n("span",{class:"q-job-detail-value",textContent:u(e.jobProgressPct(i)+"%")},null,8,Ew)])):c("v-if",!0)]),i?.failedReason?(l(),d("div",Sw,[t[44]||(t[44]=n("span",{class:"q-job-detail-label"},"Error",-1)),n("div",{class:"q-error-reason",textContent:u(i?.failedReason)},null,8,Nw)])):c("v-if",!0),i?.stacktrace?.length?(l(),d("div",Rw,[t[45]||(t[45]=n("span",{class:"q-job-detail-label"},"Stacktrace",-1)),(l(!0),d(W,null,oe(i?.stacktrace,(r,a)=>(l(),d("pre",{class:"q-error-stack",key:a},[n("code",{textContent:u(r)},null,8,Dw)]))),128))])):c("v-if",!0),n("div",Tw,[i?._state=="failed"?(l(),d("button",{key:0,class:"btn btn-sm",onClick:r=>e.retryJob(i)},[...t[46]||(t[46]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1),h(" Retry",-1)])],8,_w)):c("v-if",!0),n("button",{class:"btn btn-sm",onClick:r=>e.removeJob(i)},[...t[47]||(t[47]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1),h(" Remove",-1)])],8,Aw),n("a",{class:"btn btn-sm",target:"_blank",href:e.safeUrl("/r/"+i?.id)},[...t[48]||(t[48]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-external-link"})],-1),h(" View repo",-1)])],8,Ow)])])])])):c("v-if",!0)]))),256))])):c("v-if",!0),e.filteredJobs().length==0?(l(),d("div",Pw,[t[50]||(t[50]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-check-circle"})],-1)),e.query?.search?c("v-if",!0):(l(),d("span",Iw,"No jobs in the "+u(e.selectedQueue)+" queue.",1)),e.query?.search?(l(),d("span",Mw,"No jobs match the current filters.")):c("v-if",!0)])):c("v-if",!0)])])}var Vw={class:"container paper-page admin-page"},qw={class:"admin-summary"},Lw={class:"summary-total"},$w={class:"summary-meta"},Uw=["aria-pressed"],Fw={class:"count"},Bw=["aria-pressed"],zw={class:"count"},Hw=["aria-pressed"],jw={class:"count"},Gw=["aria-pressed"],Ww={class:"count"},Kw=["title","aria-pressed"],Yw={class:"count"},Jw={key:0,class:"alert alert-danger",style:{margin:"8px 0"}},Qw={class:"w-100 admin-filter-toolbar","aria-label":"Repositories","accept-charset":"UTF-8"},Xw=["aria-expanded"],Zw={class:"search-wrap"},xw={type:"search",class:"form-control","aria-label":"Search repositories",placeholder:"Search repositories\u2026",autocomplete:"off"},ek={key:0,class:"admin-search-hint"},tk={class:"admin-filter-inline"},nk={type:"text",class:"form-control form-control-sm",placeholder:"username"},ok={class:"admin-filter-inline"},sk={type:"text",class:"form-control form-control-sm",placeholder:"ID"},ik={key:0,class:"admin-filter-inline","aria-label":"Pagination"},rk=["disabled"],ak={style:{"font-family":"var(--font-mono)","font-size":"12px",color:"var(--ink-muted)"}},lk=["disabled"],dk={key:0,class:"admin-filter-row"},uk={class:"admin-active-chips"},ck={class:"key"},pk=["onClick"],fk={key:1,class:"bulk-bar"},mk={class:"paper-table paper-table-repos has-bulk w-100",role:"table","aria-label":"Repositories"},hk={class:"paper-table-head",role:"row"},vk={role:"columnheader",style:{width:"28px"}},gk=["checked"],yk={role:"columnheader"},bk={role:"columnheader"},wk={role:"columnheader",class:"num"},kk={role:"columnheader"},Ck={role:"cell",style:{width:"28px"}},Ek={type:"checkbox","aria-label":"Select repository"},Sk={class:"cell-anon",role:"cell"},Nk={class:"anon-text"},Rk=["textContent","href"],Dk={class:"anon-sub"},Tk=["textContent","href"],_k={key:0,class:"meta-sep"},Ak=["textContent","href"],Ok={key:1,class:"meta-sep"},Pk=["textContent","href"],Ik={key:2,class:"meta-sep"},Mk={key:3,class:"meta-sep"},Vk={class:"cell-status",role:"cell"},qk={class:"status-line"},Lk=["textContent"],$k=["textContent","title"],Uk={class:"cell-views num",role:"cell"},Fk=["textContent"],Bk={class:"cell-expires",role:"cell"},zk=["textContent"],Hk={class:"cell-actions",role:"cell"},jk={class:"dropdown"},Gk={class:"dropdown-menu dropdown-menu-right"},Wk=["href"],Kk=["href"],Yk=["href"],Jk=["onClick"],Qk=["onClick"],Xk=["onClick"],Zk=["onClick"],xk=["onClick"],e0=["onClick"],t0={key:0,class:"paper-table-empty"},n0={class:"admin-toolbar",style:{"justify-content":"space-between","border-bottom":"none"}},o0={style:{"font-size":"12px",color:"var(--ink-muted)"}},s0={key:0,class:"pagination-compact"},i0=["disabled"],r0=["max"],a0=["disabled"],l0={class:"admin-filter-inline"},d0={class:"form-control form-control-sm"};function Ll(e,t){let o=we("field"),i=we("form");return l(),d("div",Vw,[t[70]||(t[70]=me('<div class="paper-crumbs">Admin \xA0/\xA0 <span class="here">Repositories</span></div><h1 class="paper-page-title">Repositories</h1><nav class="admin-nav"><a href="/admin/"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-chart"></use></svg> Overview</a><a href="/admin/repositories" class="active"><svg class="ui-icon" aria-hidden="true"><use href="#project-type-repo"></use></svg> Repositories</a><a href="/admin/users"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-users"></use></svg> Users</a><a href="/admin/conferences"><svg class="ui-icon" aria-hidden="true"><use href="#project-icon-conference"></use></svg> Conferences</a><a href="/admin/queues"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-list"></use></svg> Queues</a><a href="/admin/errors"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-bug"></use></svg> Errors</a></nav>',3)),n("div",qw,[n("span",Lw,[h(u(e.total>=0?e.fmt.number(e.total):"\u2026")+" ",1),n("small",null,u(e.total===1?"repository":"repositories"),1)]),n("span",$w,u(e.fmt?.humanFileSize(e.totalSize))+" on disk",1),t[25]||(t[25]=n("span",{class:"summary-show-label"},"Show:",-1)),n("button",{type:"button",class:O(["summary-pill ok",{active:e.query?.ready}]),title:"Toggle ready filter",onClick:t[0]||(t[0]=s=>{e.query.ready=!e.query.ready,e.query.page=1}),"aria-pressed":!!e.query?.ready},[t[20]||(t[20]=h("Ready ",-1)),n("span",Fw,u(e.fmt?.number(e.statusCountFor("ready"))),1)],10,Uw),n("button",{type:"button",class:O(["summary-pill warn",{active:e.query?.preparing}]),title:"Toggle preparing filter",onClick:t[1]||(t[1]=s=>{e.query.preparing=!e.query.preparing,e.query.page=1}),"aria-pressed":!!e.query?.preparing},[t[21]||(t[21]=h("Preparing ",-1)),n("span",zw,u(e.fmt?.number(e.statusCountFor("preparing")+e.statusCountFor("download"))),1)],10,Bw),n("button",{type:"button",class:O(["summary-pill error",{active:e.query?.error}]),title:"Toggle errored filter",onClick:t[2]||(t[2]=s=>{e.query.error=!e.query.error,e.query.page=1}),"aria-pressed":!!e.query?.error},[t[22]||(t[22]=h("Errored ",-1)),n("span",jw,u(e.fmt?.number(e.statusCountFor("error"))),1)],10,Hw),n("button",{type:"button",class:O(["summary-pill",{active:e.query?.expired}]),title:"Toggle expired filter",onClick:t[3]||(t[3]=s=>{e.query.expired=!e.query.expired,e.query.page=1}),"aria-pressed":!!e.query?.expired},[t[23]||(t[23]=h("Expired ",-1)),n("span",Ww,u(e.fmt?.number(e.statusCountFor("expired")+e.statusCountFor("expiring"))),1)],10,Gw),n("button",{type:"button",class:O(["summary-pill",{active:e.query?.removed}]),title:e.query?.removed?"Removed repositories are shown. Click to hide them.":"Removed repositories are hidden. Click to include them.",onClick:t[4]||(t[4]=s=>{e.query.removed=!e.query.removed,e.query.page=1}),"aria-pressed":!!e.query?.removed},[t[24]||(t[24]=h("Removed ",-1)),n("span",Yw,u(e.fmt?.number(e.statusCountFor("removed")+e.statusCountFor("removing"))),1)],10,Kw)]),e.fetchError?(l(),d("div",Jw,[t[26]||(t[26]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),h(" "+u(e.fetchError),1)])):c("v-if",!0),T((l(),d("form",Qw,[c(" Row 1: search + scoped inputs + headline actions "),n("button",{type:"button",class:"btn btn-sm admin-filters-toggle",onClick:t[5]||(t[5]=s=>e.filtersOpen=!e.filtersOpen),"aria-expanded":e.filtersOpen?"true":"false"},"Filters",8,Xw),n("div",{class:O(["admin-filter-row",{"is-open":e.filtersOpen}])},[n("div",Zw,[T(n("input",xw,null,512),[[o,{state:e.viewState,set:s=>{e.query.search=s},value:e.query?.search,form:null,options:{}}]]),e.query?.search?c("v-if",!0):(l(),d("span",ek,"/"))]),n("span",tk,[t[27]||(t[27]=n("label",null,"Owner",-1)),T(n("input",nk,null,512),[[o,{state:e.viewState,set:s=>{e.query.owner=s},value:e.query?.owner,form:null,options:{}}]])]),n("span",ok,[t[28]||(t[28]=n("label",null,"Conference",-1)),T(n("input",sk,null,512),[[o,{state:e.viewState,set:s=>{e.query.conference=s},value:e.query?.conference,form:null,options:{}}]])]),t[32]||(t[32]=n("span",{class:"admin-filter-spacer"},null,-1)),n("button",{class:"btn btn-sm",type:"button",title:"Export current view to CSV",onClick:t[6]||(t[6]=s=>e.exportCsv())},[...t[29]||(t[29]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-export"})],-1),h(" Export",-1)])]),e.totalPage>1?(l(),d("span",ik,[n("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[7]||(t[7]=s=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1,"aria-label":"Previous page"},[...t[30]||(t[30]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1)])],8,rk),n("span",ak,u(e.query?.page)+"/"+u(e.totalPage||1),1),n("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[8]||(t[8]=s=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage,"aria-label":"Next page"},[...t[31]||(t[31]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,lk)])):c("v-if",!0)],2),c(" Row 2: appears only when there are active filter chips "),e.chips?.length?(l(),d("div",dk,[n("div",uk,[(l(!0),d(W,null,oe(e.chips,(s,r)=>(l(),d("span",{class:"admin-active-chip",key:s?.key},[n("span",ck,u(s?.label),1),n("span",null,u(s?.value),1),n("button",{type:"button","aria-label":"Remove filter",onClick:a=>e.clearFilter(s.key)},[...t[33]||(t[33]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1)])],8,pk)]))),128))])])):c("v-if",!0)])),[[i,e.viewState]]),e.selectedCount()>0?(l(),d("div",fk,[n("span",null,[n("strong",null,u(e.selectedCount()),1),t[34]||(t[34]=h(" selected",-1))]),n("button",{class:"btn btn-sm",type:"button",onClick:t[9]||(t[9]=s=>e.bulkRefresh())},[...t[35]||(t[35]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1),h(" Force refresh",-1)])]),n("button",{class:"btn btn-sm text-danger",type:"button",onClick:t[10]||(t[10]=s=>e.bulkRemoveCache())},[...t[36]||(t[36]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-broom"})],-1),h(" Remove cache",-1)])]),n("button",{class:"btn btn-sm",type:"button",onClick:t[11]||(t[11]=s=>e.clearSelection())},"Clear")])):c("v-if",!0),n("div",mk,[n("div",hk,[n("div",vk,[n("input",{type:"checkbox","aria-label":"Select all on page",onClick:t[12]||(t[12]=s=>e.selectAllOnPage()),checked:e.allSelected},null,8,gk)]),n("div",yk,[n("button",{type:"button",class:O(["sortable",{active:e.query?.sort=="source.repositoryName"}]),onClick:t[13]||(t[13]=s=>e.sortBy("source.repositoryName"))},[t[38]||(t[38]=h("Repository ",-1)),e.sortIcon("source.repositoryName")?(l(),d("svg",{key:0,class:O(["ui-icon sort-direction",{ascending:e.sortIcon("source.repositoryName")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[37]||(t[37]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):c("v-if",!0)],2)]),n("div",bk,[n("button",{type:"button",class:O(["sortable",{active:e.query?.sort=="status"}]),onClick:t[14]||(t[14]=s=>e.sortBy("status"))},[t[40]||(t[40]=h("Status ",-1)),e.sortIcon("status")?(l(),d("svg",{key:0,class:O(["ui-icon sort-direction",{ascending:e.sortIcon("status")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[39]||(t[39]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):c("v-if",!0)],2)]),n("div",wk,[n("button",{type:"button",class:O(["sortable",{active:e.query?.sort=="pageView"}]),onClick:t[15]||(t[15]=s=>e.sortBy("pageView"))},[t[42]||(t[42]=h("Views ",-1)),e.sortIcon("pageView")?(l(),d("svg",{key:0,class:O(["ui-icon sort-direction",{ascending:e.sortIcon("pageView")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[41]||(t[41]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):c("v-if",!0)],2)]),n("div",kk,[n("button",{type:"button",class:O(["sortable",{active:e.query?.sort=="anonymizeDate"}]),onClick:t[16]||(t[16]=s=>e.sortBy("anonymizeDate"))},[t[44]||(t[44]=h("Anonymized ",-1)),e.sortIcon("anonymizeDate")?(l(),d("svg",{key:0,class:O(["ui-icon sort-direction",{ascending:e.sortIcon("anonymizeDate")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[43]||(t[43]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):c("v-if",!0)],2)]),t[45]||(t[45]=n("div",{role:"columnheader","aria-label":"Actions"},null,-1))]),(l(!0),d(W,null,oe(e.filteredRepositories,(s,r)=>(l(),d("div",{class:O(["paper-table-row",{"repo-inactive":s?.status=="expired"||s?.status=="removed","repo-error":s?.status=="error","row-selected":e.selected[s?.repoId]}]),role:"row"},[n("div",Ck,[T(n("input",Ek,null,512),[[o,{state:e.viewState,set:a=>{e.selected[s.repoId]=a},value:e.selected[s?.repoId],form:null,options:{}}]])]),n("div",Sk,[t[47]||(t[47]=n("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Repository"},[n("use",{href:"#project-type-repo"})],-1)),n("div",Nk,[n("a",{class:"repo-name",target:"_blank",textContent:u(s?.repoId),href:e.safeUrl("/r/"+s?.repoId)},null,8,Rk),n("div",Dk,[n("a",{textContent:u(s?.source?.repositoryName),href:e.safeUrl("https://github.com/"+s?.source?.repositoryName+"/")},null,8,Tk),s?.options?.update?(l(),d("span",_k,[n("a",{textContent:u(s?.source?.branch),href:e.safeUrl("https://github.com/"+s?.source?.fullName+"/tree/"+s?.source?.branch)},null,8,Ak)])):c("v-if",!0),s?.options?.update?c("v-if",!0):(l(),d("span",Ok,[n("a",{class:"mono-hash",textContent:u(s?.source?.commit?.substring(0,7)),href:e.safeUrl("https://github.com/"+s?.source?.fullName+"/tree/"+s?.source?.commit)},null,8,Pk)])),s?.conference?(l(),d("span",Ik,[t[46]||(t[46]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-conference"})],-1)),h(" "+u(s?.conference),1)])):c("v-if",!0),s?.size?.storage>0?(l(),d("span",Mk,u(e.fmt?.humanFileSize(s?.size?.storage)),1)):c("v-if",!0),n("span",null,u(e.fmt?.number(s?.options?.terms?.length))+" "+u(s?.options?.terms?.length===1?"term":"terms"),1)])])]),n("div",Vk,[n("span",qk,[n("span",{class:O(["status-dot",{"status-removed":s?.status=="removed"||s?.status=="expired","status-ready":s?.status=="ready","status-error":s?.status=="error","status-preparing":s?.status=="preparing"}])},null,2),n("span",{textContent:u(e.fmt?.title(s?.status))},null,8,Lk)]),s?.statusMessage?(l(),d("span",{key:0,class:"status-sub",textContent:u(e.fmt?.statusMsg(s?.statusMessage)),title:s?.statusMessage},null,8,$k)):c("v-if",!0)]),n("div",Uk,[t[48]||(t[48]=n("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1)),t[49]||(t[49]=h()),n("span",{textContent:u(e.fmt?.number(s?.pageView||0))},null,8,Fk)]),n("div",Bk,[t[50]||(t[50]=n("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),t[51]||(t[51]=h()),n("span",{textContent:u((e.fmt?.humanTime(s?.anonymizeDate)||"").replace(/^on /,""))},null,8,zk)]),n("div",Hk,[n("div",jk,[t[63]||(t[63]=n("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-more"})])],-1)),n("div",Gk,[n("a",{class:"dropdown-item",href:e.safeUrl("/anonymize/"+s?.repoId)},[...t[52]||(t[52]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),h(" Edit",-1)])],8,Wk),n("a",{class:"dropdown-item",href:e.safeUrl("/r/"+s?.repoId+"/")},[...t[53]||(t[53]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1),h(" View repo",-1)])],8,Kk),s?.options?.page&&s?.status=="ready"?(l(),d("a",{key:0,class:"dropdown-item",target:"_self",href:e.safeUrl("/w/"+s?.repoId+"/")},[...t[54]||(t[54]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-globe"})],-1),h(" View page",-1)])],8,Yk)):c("v-if",!0),n("a",{class:"dropdown-item",href:"#",onClick:ae(a=>e.fetchGithubInfo(s),["prevent"])},[...t[55]||(t[55]=[n("i",{class:"fab fa-github"},null,-1),h(" Live GitHub info",-1)])],8,Jk),t[61]||(t[61]=n("div",{class:"dropdown-divider"},null,-1)),T(n("a",{class:"dropdown-item",href:"#",onClick:ae(a=>e.updateRepository(s),["prevent"])},[...t[56]||(t[56]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1),h(" Force update",-1)])],8,Qk),[[Y,s?.status=="ready"||s?.status=="error"]]),T(n("a",{class:"dropdown-item",href:"#",onClick:ae(a=>e.updateRepository(s),["prevent"])},[...t[57]||(t[57]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-check-circle"})],-1),h(" Enable",-1)])],8,Xk),[[Y,s?.status=="removed"]]),T(n("a",{class:"dropdown-item",href:"#",onClick:ae(a=>e.showStatusMessage(s),["prevent"])},[...t[58]||(t[58]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1),h(" View status message",-1)])],8,Zk),[[Y,s?.statusMessage]]),t[62]||(t[62]=n("div",{class:"dropdown-divider"},null,-1)),n("a",{class:"dropdown-item",href:"#",onClick:ae(a=>e.removeCache(s),["prevent"])},[...t[59]||(t[59]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-broom"})],-1),h(" Remove cache",-1)])],8,xk),T(n("a",{class:"dropdown-item text-danger",href:"#",onClick:ae(a=>e.removeRepository(s),["prevent"])},[...t[60]||(t[60]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1),h(" Remove",-1)])],8,e0),[[Y,s?.status=="ready"]])])])])],2))),256)),e.filteredRepositories?.length==0?(l(),d("div",t0,[t[64]||(t[64]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-inbox"})],-1)),t[65]||(t[65]=n("span",null,"No repositories match the current filters.",-1)),e.query.ready&&e.query.expired&&e.query.removed&&e.query.error&&e.query.preparing?c("v-if",!0):(l(),d("button",{key:0,type:"button",class:"btn btn-sm btn-outline-ink",onClick:t[17]||(t[17]=s=>e.showAllStatuses())},"Show all statuses"))])):c("v-if",!0)]),n("div",n0,[n("span",o0,u(e.fmt?.number(e.total))+" results",1),e.totalPage>1?(l(),d("div",s0,[n("button",{class:"btn btn-sm",onClick:t[18]||(t[18]=s=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1},[...t[66]||(t[66]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1),h(" Previous ",-1)])],8,i0),T(n("input",{type:"number",class:"form-control form-control-sm",min:"1",style:{width:"56px"},"aria-label":"Page",max:e.totalPage},null,8,r0),[[o,{state:e.viewState,set:s=>{e.query.page=s},value:e.query?.page,form:null,options:{}}]]),n("span",null,"of "+u(e.totalPage),1),n("button",{class:"btn btn-sm",onClick:t[19]||(t[19]=s=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage},[...t[67]||(t[67]=[h(" Next ",-1),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,a0)])):c("v-if",!0),n("span",l0,[t[69]||(t[69]=n("label",null,"Per page",-1)),T((l(),d("select",d0,[...t[68]||(t[68]=[me('<option value="10">10</option><option value="25">25</option><option value="50">50</option><option value="100">100</option><option value="250">250</option>',5)])])),[[o,{state:e.viewState,set:s=>{e.query.limit=s},value:e.query?.limit,form:null,options:{}}]])])])])}var u0={class:"container paper-page admin-page"},c0={class:"paper-crumbs"},p0={class:"here"},f0={class:"paper-page-title"},m0={key:0,class:"user-detail-card"},h0={class:"user-header"},v0=["src"],g0={class:"status-dot-wrap"},y0=["textContent"],b0={key:0,class:"type-badge type-repo"},w0={class:"user-actions",style:{"margin-top":"4px"}},k0={class:"user-detail-grid"},C0={class:"detail-value mono-id"},E0={class:"detail-value"},S0=["href"],N0={class:"detail-value"},R0={class:"detail-value"},D0={key:0},T0={key:1,class:"text-muted"},_0={class:"detail-value"},A0={key:0,style:{"margin-top":"20px"}},O0={class:"paper-table w-100",style:{"margin-top":"10px"}},P0={class:"paper-table-row",style:{"grid-template-columns":"1fr 160px"}},I0={class:"cell-anon",role:"cell"},M0={class:"anon-text"},V0=["textContent"],q0={class:"cell-expires",role:"cell"},L0={key:1,class:"admin-section-header"},$0={class:"section-count"},U0={key:2,class:"user-detail-card"},F0={type:"text",class:"form-control",placeholder:"Token name (e.g. dev-laptop)",required:""},B0={key:0,class:"alert alert-warning",role:"alert"},z0={style:{"white-space":"pre-wrap","word-break":"break-all",margin:"8px 0 0","font-family":"var(--font-mono)","font-size":"0.85rem"}},H0={key:1,class:"paper-table w-100"},j0={class:"paper-table-row",role:"row",style:{"grid-template-columns":"1fr 200px 200px 80px"}},G0=["textContent"],W0=["textContent"],K0={role:"cell"},Y0={key:0},J0={key:1,class:"text-muted"},Q0={role:"cell"},X0=["onClick"],Z0={key:2,class:"paper-table-empty"},x0={class:"admin-section-header"},e2={class:"section-count"},t2={class:"admin-summary"},n2={class:"summary-total"},o2=["aria-pressed"],s2={class:"count"},i2=["aria-pressed"],r2={class:"count"},a2=["aria-pressed"],l2={class:"count"},d2=["aria-pressed"],u2={class:"count"},c2=["aria-pressed"],p2={class:"count"},f2={class:"w-100 admin-filter-toolbar","aria-label":"Repositories","accept-charset":"UTF-8"},m2={class:"admin-filter-row"},h2={class:"search-wrap"},v2={type:"search",class:"form-control","aria-label":"Search repositories",placeholder:"Search repoId, source repo, error message\u2026",autocomplete:"off"},g2={key:3,class:"bulk-bar"},y2={class:"paper-table paper-table-repos has-bulk w-100",role:"table","aria-label":"Repositories"},b2={class:"paper-table-head",role:"row"},w2={role:"columnheader",style:{width:"28px"}},k2=["checked"],C2={role:"columnheader"},E2={role:"columnheader"},S2={role:"columnheader",class:"num"},N2={role:"columnheader"},R2={role:"cell",style:{width:"28px"}},D2={type:"checkbox","aria-label":"Select repository"},T2={class:"cell-anon",role:"cell"},_2={class:"anon-text"},A2=["textContent","href"],O2={class:"anon-sub"},P2=["textContent","href"],I2={key:0},M2=["textContent","href"],V2={key:1},q2=["textContent","href"],L2={key:2},$2={class:"cell-status",role:"cell"},U2={class:"status-line"},F2=["textContent"],B2=["textContent","title"],z2=["textContent"],H2=["textContent"],j2={class:"cell-actions",role:"cell"},G2={class:"dropdown"},W2={class:"dropdown-menu dropdown-menu-right"},K2=["href"],Y2=["href"],J2=["href"],Q2=["onClick"],X2=["onClick"],Z2=["onClick"],x2=["onClick"],eC=["onClick"],tC=["onClick"],nC={key:0,class:"paper-table-empty"};function $l(e,t){let o=we("field"),i=we("form");return l(),d("div",u0,[n("div",c0,[t[22]||(t[22]=n("a",{href:"/admin/"},"Admin",-1)),t[23]||(t[23]=h(" \xA0/\xA0 ",-1)),t[24]||(t[24]=n("a",{href:"/admin/users"},"Users",-1)),t[25]||(t[25]=h(" \xA0/\xA0 ",-1)),n("span",p0,u(e.userInfo?.username||"Profile"),1)]),n("h1",f0,u(e.userInfo?.username||"User"),1),t[87]||(t[87]=me('<nav class="admin-nav"><a href="/admin/"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-chart"></use></svg> Overview</a><a href="/admin/repositories"><svg class="ui-icon" aria-hidden="true"><use href="#project-type-repo"></use></svg> Repositories</a><a href="/admin/users" class="active"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-users"></use></svg> Users</a><a href="/admin/conferences"><svg class="ui-icon" aria-hidden="true"><use href="#project-icon-conference"></use></svg> Conferences</a><a href="/admin/queues"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-list"></use></svg> Queues</a><a href="/admin/errors"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-bug"></use></svg> Errors</a></nav>',1)),e.userInfo?(l(),d("div",m0,[n("div",h0,[e.userInfo?.photo?(l(),d("img",{key:0,width:"56",height:"56",src:e.safeUrl(e.userInfo?.photo)},null,8,v0)):c("v-if",!0),n("div",null,[n("h2",null,[h(u(e.userInfo?.username)+" ",1),n("span",g0,[n("span",{class:O(["status-dot",{"status-ready":e.userInfo?.status=="active","status-removed":e.userInfo?.status!="active"}])},null,2),n("span",{textContent:u(e.fmt?.title(e.userInfo?.status))},null,8,y0)]),e.userInfo?.isAdmin?(l(),d("span",b0,"Admin")):c("v-if",!0)]),n("div",w0,[e.userInfo?.status!=="banned"&&e.userInfo?.username!==e.user?.username?(l(),d("button",{key:0,class:"btn btn-sm btn-outline-danger",onClick:t[0]||(t[0]=s=>e.banUser())},[...t[26]||(t[26]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-ban"})],-1),h(" Ban",-1)])])):c("v-if",!0),e.userInfo?.status==="banned"||e.userInfo?.status==="removed"?(l(),d("button",{key:1,class:"btn btn-sm",onClick:t[1]||(t[1]=s=>e.activateUser())},[...t[27]||(t[27]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-check-circle"})],-1),h(" Activate",-1)])])):c("v-if",!0),e.userInfo?.isAdmin?c("v-if",!0):(l(),d("button",{key:2,class:"btn btn-sm",onClick:t[2]||(t[2]=s=>e.promoteUser())},[...t[28]||(t[28]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-user-shield"})],-1),h(" Promote to admin",-1)])])),e.userInfo?.isAdmin&&e.userInfo?.username!==e.user?.username?(l(),d("button",{key:3,class:"btn btn-sm btn-outline-ink",onClick:t[3]||(t[3]=s=>e.demoteUser())},[...t[29]||(t[29]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-user-minus"})],-1),h(" Remove admin",-1)])])):c("v-if",!0)])])]),n("div",k0,[t[32]||(t[32]=n("div",{class:"detail-label"},"ID",-1)),n("div",C0,u(e.userInfo?._id),1),t[33]||(t[33]=n("div",{class:"detail-label"},"Email",-1)),n("div",{class:O(["detail-value",{"is-empty":!e.userInfo?.emails?.[0]?.email}])},u(e.userInfo?.emails?.[0]?.email||"Not shared"),3),t[34]||(t[34]=n("div",{class:"detail-label"},"Access token",-1)),n("div",{class:O(["detail-value",{"is-empty":!e.userInfo?.accessTokens?.github}]),style:{"font-family":"var(--font-mono)","font-size":"0.85rem"}},u(e.userInfo?.accessTokens?.github||"Not stored"),3),t[35]||(t[35]=n("div",{class:"detail-label"},"GitHub",-1)),n("div",E0,[n("a",{target:"_blank",href:e.safeUrl("https://github.com/"+e.userInfo?.username)},[t[30]||(t[30]=n("i",{class:"fab fa-github"},null,-1)),h(" "+u(e.userInfo?.username),1)],8,S0)]),t[36]||(t[36]=n("div",{class:"detail-label"},"Created",-1)),n("div",N0,u(e.fmt?.humanTime(e.userInfo?.dateOfEntry)),1),t[37]||(t[37]=n("div",{class:"detail-label"},"Last connection",-1)),n("div",R0,[e.userInfo?.accessTokenDates?.github?(l(),d("span",D0,u(e.fmt?.humanTime(e.userInfo?.accessTokenDates?.github)),1)):c("v-if",!0),e.userInfo?.accessTokenDates?.github?c("v-if",!0):(l(),d("span",T0,"Not recorded (GitHub App sign-in)"))]),t[38]||(t[38]=n("div",{class:"detail-label"},"GitHub repos",-1)),n("div",_0,[h(u(e.userInfo?.repositories?.length?e.userInfo.repositories.length+" repositories":"Not synced")+" ",1),e.userInfo?.repositories?.length?(l(),d("button",{key:0,class:"btn btn-sm ml-2",onClick:t[4]||(t[4]=s=>e.showRepos=!e.showRepos)},u(e.showRepos?"Hide repos":"Show repos"),1)):c("v-if",!0),n("button",{class:"btn btn-sm ml-1",onClick:t[5]||(t[5]=s=>e.getGitHubRepositories())},[...t[31]||(t[31]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1),h(" Refresh ",-1)])])])]),e.showRepos?(l(),d("div",A0,[t[41]||(t[41]=n("div",{class:"paper-section-eyebrow"},"GitHub repositories",-1)),n("div",O0,[(l(!0),d(W,null,oe(e.userInfo?.repositories,(s,r)=>(l(),d("div",P0,[n("div",I0,[t[39]||(t[39]=n("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Repository"},[n("use",{href:"#project-type-repo"})],-1)),n("div",M0,[n("span",{class:"repo-name",textContent:u(s?.name)},null,8,V0)])]),n("div",q0,[t[40]||(t[40]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-database"})],-1)),h(" "+u(e.fmt?.humanFileSize(s?.size)),1)])]))),256))])])):c("v-if",!0)])):c("v-if",!0),e.userInfo&&e.userInfo?.isAdmin&&e.user&&e.user?.username==e.userInfo?.username?(l(),d("div",L0,[t[42]||(t[42]=n("h2",null,[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-key"})]),h(" API tokens")],-1)),n("span",$0,u(e.tokens?.length),1)])):c("v-if",!0),e.userInfo&&e.userInfo?.isAdmin&&e.user&&e.user?.username==e.userInfo?.username?(l(),d("div",U0,[t[48]||(t[48]=n("p",{class:"paper-page-lede"},[h("Personal API tokens for this admin account. Send as "),n("code",null,"Authorization: Bearer <token>"),h(" to authenticate without GitHub OAuth (useful for development).")],-1)),T((l(),d("form",{class:"d-flex",style:{gap:"8px","margin-bottom":"12px"},onSubmit:t[6]||(t[6]=ae(s=>e.submitForm(s,()=>{e.createToken()}),["prevent"]))},[T(n("input",F0,null,512),[[o,{state:e.viewState,set:s=>{e.tokenForm.name=s},value:e.tokenForm?.name,form:null,options:{}}]]),t[43]||(t[43]=n("button",{type:"submit",class:"btn btn-ink"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-plus"})]),h(" Generate")],-1))],32)),[[i,e.viewState]]),e.tokenForm?.plaintext?(l(),d("div",B0,[t[44]||(t[44]=n("strong",null,"Copy this token now \u2014 it will not be shown again:",-1)),n("pre",z0,u(e.tokenForm?.plaintext),1),n("button",{class:"btn btn-sm",onClick:t[7]||(t[7]=s=>e.tokenForm.plaintext=null)},"Dismiss")])):c("v-if",!0),e.tokens?.length?(l(),d("div",H0,[t[46]||(t[46]=n("div",{class:"paper-table-head",role:"row",style:{"grid-template-columns":"1fr 200px 200px 80px"}},[n("div",{role:"columnheader"},"Name"),n("div",{role:"columnheader"},"Created"),n("div",{role:"columnheader"},"Last used"),n("div",{role:"columnheader","aria-label":"Actions"})],-1)),(l(!0),d(W,null,oe(e.tokens,(s,r)=>(l(),d("div",j0,[n("div",{role:"cell",textContent:u(s?.name)},null,8,G0),n("div",{role:"cell",textContent:u(e.fmt?.humanTime(s?.createdAt))},null,8,W0),n("div",K0,[s?.lastUsedAt?(l(),d("span",Y0,u(e.fmt?.humanTime(s?.lastUsedAt)),1)):c("v-if",!0),s?.lastUsedAt?c("v-if",!0):(l(),d("span",J0,"never"))]),n("div",Q0,[n("button",{class:"btn btn-sm text-danger btn-icon",title:"Revoke","aria-label":"Revoke token",onClick:a=>e.revokeToken(s)},[...t[45]||(t[45]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1)])],8,X0)])]))),256))])):c("v-if",!0),e.tokens?.length?c("v-if",!0):(l(),d("div",Z0,[...t[47]||(t[47]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-inbox"})],-1),n("span",null,"No tokens yet.",-1)])]))])):c("v-if",!0),n("div",x0,[t[49]||(t[49]=n("h2",null,[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-type-repo"})]),h(" Anonymized repositories")],-1)),n("span",e2,u(e.repositories?.length),1)]),n("div",t2,[n("span",n2,u(e.fmt?.number(e.repositories?.length)),1),n("button",{type:"button",class:O(["summary-pill ok",{active:e.filters?.status?.ready===!1}]),title:"Toggle ready filter",onClick:t[8]||(t[8]=s=>e.filters.status.ready=!e.filters.status.ready),"aria-pressed":e.filters?.status?.ready===!1},[t[50]||(t[50]=h("Ready ",-1)),n("span",s2,u(e.fmt?.number(e.statusCountFor("ready"))),1)],10,o2),n("button",{type:"button",class:O(["summary-pill warn",{active:e.filters?.status?.preparing===!1}]),title:"Toggle preparing filter",onClick:t[9]||(t[9]=s=>e.filters.status.preparing=!e.filters.status.preparing),"aria-pressed":e.filters?.status?.preparing===!1},[t[51]||(t[51]=h("Preparing ",-1)),n("span",r2,u(e.fmt?.number(e.statusCountFor("preparing"))),1)],10,i2),n("button",{type:"button",class:O(["summary-pill error",{active:e.filters?.status?.error===!1}]),title:"Toggle errored filter",onClick:t[10]||(t[10]=s=>e.filters.status.error=!e.filters.status.error),"aria-pressed":e.filters?.status?.error===!1},[t[52]||(t[52]=h("Errored ",-1)),n("span",l2,u(e.fmt?.number(e.statusCountFor("error"))),1)],10,a2),n("button",{type:"button",class:O(["summary-pill",{active:e.filters?.status?.expired===!1}]),title:"Toggle expired filter",onClick:t[11]||(t[11]=s=>e.filters.status.expired=!e.filters.status.expired),"aria-pressed":e.filters?.status?.expired===!1},[t[53]||(t[53]=h("Expired ",-1)),n("span",u2,u(e.fmt?.number(e.statusCountFor("expired"))),1)],10,d2),n("button",{type:"button",class:O(["summary-pill",{active:e.filters?.status?.removed===!1}]),title:"Toggle removed filter",onClick:t[12]||(t[12]=s=>e.filters.status.removed=!e.filters.status.removed),"aria-pressed":e.filters?.status?.removed===!1},[t[54]||(t[54]=h("Removed ",-1)),n("span",p2,u(e.fmt?.number(e.statusCountFor("removed"))),1)],10,c2)]),T((l(),d("form",f2,[n("div",m2,[n("div",h2,[T(n("input",v2,null,512),[[o,{state:e.viewState,set:s=>{e.search=s},value:e.search,form:null,options:{}}]])]),t[56]||(t[56]=n("span",{class:"admin-filter-spacer"},null,-1)),n("button",{class:"btn btn-sm",type:"button",title:"Export current view to CSV",onClick:t[13]||(t[13]=s=>e.exportCsv())},[...t[55]||(t[55]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-export"})],-1),h(" Export",-1)])])])])),[[i,e.viewState]]),e.selectedCount()>0?(l(),d("div",g2,[n("span",null,[n("strong",null,u(e.selectedCount()),1),t[57]||(t[57]=h(" selected",-1))]),n("button",{class:"btn btn-sm",type:"button",onClick:t[14]||(t[14]=s=>e.bulkRefresh())},[...t[58]||(t[58]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1),h(" Force refresh",-1)])]),n("button",{class:"btn btn-sm text-danger",type:"button",onClick:t[15]||(t[15]=s=>e.bulkRemoveCache())},[...t[59]||(t[59]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-broom"})],-1),h(" Remove cache",-1)])]),n("button",{class:"btn btn-sm",type:"button",onClick:t[16]||(t[16]=s=>e.clearSelection())},"Clear")])):c("v-if",!0),n("div",y2,[n("div",b2,[n("div",w2,[n("input",{type:"checkbox","aria-label":"Select all on page",onClick:t[17]||(t[17]=s=>e.selectAllOnPage()),checked:e.allSelected},null,8,k2)]),n("div",C2,[n("button",{type:"button",class:O(["sortable",{active:e.query?.sort=="source.repositoryName"}]),onClick:t[18]||(t[18]=s=>e.sortBy("source.repositoryName"))},[t[61]||(t[61]=h("Repository ",-1)),e.sortIcon("source.repositoryName")?(l(),d("svg",{key:0,class:O(["ui-icon sort-direction",{ascending:e.sortIcon("source.repositoryName")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[60]||(t[60]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):c("v-if",!0)],2)]),n("div",E2,[n("button",{type:"button",class:O(["sortable",{active:e.query?.sort=="status"}]),onClick:t[19]||(t[19]=s=>e.sortBy("status"))},[t[63]||(t[63]=h("Status ",-1)),e.sortIcon("status")?(l(),d("svg",{key:0,class:O(["ui-icon sort-direction",{ascending:e.sortIcon("status")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[62]||(t[62]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):c("v-if",!0)],2)]),n("div",S2,[n("button",{type:"button",class:O(["sortable",{active:e.query?.sort=="pageView"}]),onClick:t[20]||(t[20]=s=>e.sortBy("pageView"))},[t[65]||(t[65]=h("Views ",-1)),e.sortIcon("pageView")?(l(),d("svg",{key:0,class:O(["ui-icon sort-direction",{ascending:e.sortIcon("pageView")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[64]||(t[64]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):c("v-if",!0)],2)]),n("div",N2,[n("button",{type:"button",class:O(["sortable",{active:e.query?.sort=="anonymizeDate"}]),onClick:t[21]||(t[21]=s=>e.sortBy("anonymizeDate"))},[t[67]||(t[67]=h("Anonymized ",-1)),e.sortIcon("anonymizeDate")?(l(),d("svg",{key:0,class:O(["ui-icon sort-direction",{ascending:e.sortIcon("anonymizeDate")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[66]||(t[66]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):c("v-if",!0)],2)]),t[68]||(t[68]=n("div",{role:"columnheader","aria-label":"Actions"},null,-1))]),(l(!0),d(W,null,oe(e.filteredRepositories,(s,r)=>(l(),d("div",{class:O(["paper-table-row",{"repo-inactive":s?.status=="expired"||s?.status=="removed","repo-error":s?.status=="error","row-selected":e.selected[s?.repoId]}]),role:"row"},[n("div",R2,[T(n("input",D2,null,512),[[o,{state:e.viewState,set:a=>{e.selected[s.repoId]=a},value:e.selected[s?.repoId],form:null,options:{}}]])]),n("div",T2,[t[73]||(t[73]=n("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Repository"},[n("use",{href:"#project-type-repo"})],-1)),n("div",_2,[n("a",{class:"repo-name",target:"_blank",textContent:u(s?.repoId),href:e.safeUrl("/r/"+s?.repoId)},null,8,A2),n("div",O2,[n("a",{textContent:u(s?.source?.fullName),href:e.safeUrl("https://github.com/"+s?.source?.fullName+"/")},null,8,P2),s?.options?.update?(l(),d("span",I2,[t[69]||(t[69]=h("\xA0\xB7\xA0",-1)),n("a",{textContent:u(s?.source?.branch),href:e.safeUrl("https://github.com/"+s?.source?.fullName+"/tree/"+s?.source?.branch)},null,8,M2)])):c("v-if",!0),s?.options?.update?c("v-if",!0):(l(),d("span",V2,[t[70]||(t[70]=h("\xA0\xB7\xA0@",-1)),n("a",{textContent:u(s?.source?.commit?.substring(0,8)),href:e.safeUrl("https://github.com/"+s?.source?.fullName+"/tree/"+s?.source?.commit)},null,8,q2)])),s?.conference?(l(),d("span",L2,[t[71]||(t[71]=h("\xA0\xB7\xA0",-1)),t[72]||(t[72]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-conference"})],-1)),h(" "+u(s?.conference),1)])):c("v-if",!0),n("span",null,"\xA0\xB7\xA0"+u(e.fmt?.humanFileSize(s?.size?.storage)),1),n("span",null,"\xA0\xB7\xA0"+u(e.fmt?.number(s?.options?.terms?.length))+" "+u(s?.options?.terms?.length===1?"term":"terms"),1)])])]),n("div",$2,[n("span",U2,[n("span",{class:O(["status-dot",{"status-removed":s?.status=="removed"||s?.status=="expired","status-ready":s?.status=="ready","status-error":s?.status=="error","status-preparing":s?.status=="preparing"}])},null,2),n("span",{textContent:u(e.fmt?.title(s?.status))},null,8,F2)]),s?.statusMessage?(l(),d("span",{key:0,class:"status-sub",textContent:u(e.fmt?.statusMsg(s?.statusMessage)),title:s?.statusMessage},null,8,B2)):c("v-if",!0)]),n("div",{class:"cell-views num",role:"cell",textContent:u(e.fmt?.number(s?.pageView||0))},null,8,z2),n("div",{class:"cell-expires",role:"cell",textContent:u(e.fmt?.humanTime(s?.anonymizeDate))},null,8,H2),n("div",j2,[n("div",G2,[t[85]||(t[85]=n("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-more"})])],-1)),n("div",W2,[n("a",{class:"dropdown-item",href:e.safeUrl("/anonymize/"+s?.repoId)},[...t[74]||(t[74]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),h(" Edit",-1)])],8,K2),n("a",{class:"dropdown-item",href:e.safeUrl("/r/"+s?.repoId+"/")},[...t[75]||(t[75]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1),h(" View repo",-1)])],8,Y2),s?.options?.page&&s?.status=="ready"?(l(),d("a",{key:0,class:"dropdown-item",target:"_self",href:e.safeUrl("/w/"+s?.repoId+"/")},[...t[76]||(t[76]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-globe"})],-1),h(" View page",-1)])],8,J2)):c("v-if",!0),n("a",{class:"dropdown-item",href:"#",onClick:ae(a=>e.fetchGithubInfo(s),["prevent"])},[...t[77]||(t[77]=[n("i",{class:"fab fa-github"},null,-1),h(" Live GitHub info",-1)])],8,Q2),t[83]||(t[83]=n("div",{class:"dropdown-divider"},null,-1)),T(n("a",{class:"dropdown-item",href:"#",onClick:ae(a=>e.updateRepository(s),["prevent"])},[...t[78]||(t[78]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1),h(" Force update",-1)])],8,X2),[[Y,s?.status=="ready"||s?.status=="error"]]),T(n("a",{class:"dropdown-item",href:"#",onClick:ae(a=>e.updateRepository(s),["prevent"])},[...t[79]||(t[79]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-check-circle"})],-1),h(" Enable",-1)])],8,Z2),[[Y,s?.status=="removed"]]),T(n("a",{class:"dropdown-item",href:"#",onClick:ae(a=>e.showStatusMessage(s),["prevent"])},[...t[80]||(t[80]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1),h(" View status message",-1)])],8,x2),[[Y,s?.statusMessage]]),t[84]||(t[84]=n("div",{class:"dropdown-divider"},null,-1)),n("a",{class:"dropdown-item",href:"#",onClick:ae(a=>e.removeCache(s),["prevent"])},[...t[81]||(t[81]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-broom"})],-1),h(" Remove cache",-1)])],8,eC),T(n("a",{class:"dropdown-item text-danger",href:"#",onClick:ae(a=>e.removeRepository(s),["prevent"])},[...t[82]||(t[82]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1),h(" Remove",-1)])],8,tC),[[Y,s?.status=="ready"]])])])])],2))),256)),e.filteredRepositories?.length==0?(l(),d("div",nC,[...t[86]||(t[86]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-inbox"})],-1),n("span",null,"No repositories match the current filters.",-1)])])):c("v-if",!0)])])}var oC={class:"container paper-page admin-page"},sC={class:"admin-summary"},iC={class:"summary-total"},rC=["aria-pressed"],aC={class:"count"},lC=["aria-pressed"],dC={class:"count"},uC=["aria-pressed"],cC={class:"count"},pC=["aria-pressed"],fC={class:"count"},mC={key:0,class:"alert alert-danger",style:{margin:"8px 0"}},hC={class:"w-100 admin-filter-toolbar","aria-label":"Users","accept-charset":"UTF-8"},vC={class:"admin-filter-row"},gC={class:"search-wrap"},yC={type:"search",class:"form-control","aria-label":"Search users",placeholder:"Search username or email\u2026",autocomplete:"off"},bC={key:0,class:"admin-search-hint"},wC={class:"admin-filter-inline"},kC={class:"form-control form-control-sm"},CC={key:0,class:"admin-filter-inline","aria-label":"Pagination"},EC=["disabled"],SC={style:{"font-family":"var(--font-mono)","font-size":"12px",color:"var(--ink-muted)"}},NC=["disabled"],RC={key:0,class:"admin-filter-row"},DC={class:"admin-active-chips"},TC={class:"key"},_C=["onClick"],AC={key:1,class:"bulk-bar"},OC={class:"paper-table w-100",role:"table","aria-label":"Users",style:{"--cols":"28px minmax(280px, 2.4fr) 100px 140px 140px 52px"}},PC={class:"paper-table-head admin-users-row",role:"row"},IC={role:"columnheader",style:{width:"28px"}},MC=["checked"],VC={role:"columnheader"},qC={role:"columnheader"},LC={role:"cell",style:{width:"28px"}},$C={type:"checkbox","aria-label":"Select user"},UC={class:"cell-anon",role:"cell"},FC=["src"],BC={key:1,class:"avatar-fallback","aria-hidden":"true"},zC={class:"anon-text"},HC=["textContent","href"],jC={class:"anon-sub"},GC={key:0},WC=["href"],KC={key:1},YC={class:"cell-views num",role:"cell"},JC=["title","textContent","href"],QC={class:"cell-status",role:"cell"},XC=["textContent"],ZC={class:"cell-status",role:"cell"},xC={key:0,class:"role-pill"},eE={key:1,class:"empty-dash"},tE={class:"cell-actions",role:"cell"},nE={class:"dropdown"},oE={class:"dropdown-menu dropdown-menu-right"},sE=["href"],iE=["href"],rE=["onClick"],aE=["onClick"],lE={key:0,class:"paper-table-empty"},dE={class:"admin-toolbar",style:{"justify-content":"space-between","border-bottom":"none"}},uE={style:{"font-size":"12px",color:"var(--ink-muted)"}},cE={key:0,class:"pagination-compact"},pE=["disabled"],fE=["max"],mE=["disabled"],hE={class:"admin-filter-inline"},vE={class:"form-control form-control-sm"};function Ul(e,t){let o=we("field"),i=we("form");return l(),d("div",oC,[t[48]||(t[48]=me('<div class="paper-crumbs">Admin \xA0/\xA0 <span class="here">Users</span></div><h1 class="paper-page-title">Users</h1><nav class="admin-nav"><a href="/admin/"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-chart"></use></svg> Overview</a><a href="/admin/repositories"><svg class="ui-icon" aria-hidden="true"><use href="#project-type-repo"></use></svg> Repositories</a><a href="/admin/users" class="active"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-users"></use></svg> Users</a><a href="/admin/conferences"><svg class="ui-icon" aria-hidden="true"><use href="#project-icon-conference"></use></svg> Conferences</a><a href="/admin/queues"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-list"></use></svg> Queues</a><a href="/admin/errors"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-bug"></use></svg> Errors</a></nav>',3)),n("div",sC,[n("span",iC,[h(u(e.total>=0?e.fmt.number(e.total):"\u2026")+" ",1),n("small",null,u(e.total===1?"user":"users"),1)]),n("button",{type:"button",class:O(["summary-pill",{active:!e.query?.status}]),onClick:t[0]||(t[0]=s=>{e.query.status="",e.query.page=1}),"aria-pressed":!e.query?.status},[t[14]||(t[14]=h("All ",-1)),n("span",aC,u(e.fmt?.number(e.total)),1)],10,rC),n("button",{type:"button",class:O(["summary-pill ok",{active:e.query?.status=="active"}]),onClick:t[1]||(t[1]=s=>{e.query.status=e.query.status=="active"?"":"active",e.query.page=1}),"aria-pressed":e.query?.status=="active"},[t[15]||(t[15]=h("Active ",-1)),n("span",dC,u(e.fmt?.number(e.statusCountFor("active"))),1)],10,lC),n("button",{type:"button",class:O(["summary-pill error",{active:e.query?.status=="banned"}]),onClick:t[2]||(t[2]=s=>{e.query.status=e.query.status=="banned"?"":"banned",e.query.page=1}),"aria-pressed":e.query?.status=="banned"},[t[16]||(t[16]=h("Banned ",-1)),n("span",cC,u(e.fmt?.number(e.statusCountFor("banned"))),1)],10,uC),n("button",{type:"button",class:O(["summary-pill",{active:e.query?.status=="removed"}]),onClick:t[3]||(t[3]=s=>{e.query.status=e.query.status=="removed"?"":"removed",e.query.page=1}),"aria-pressed":e.query?.status=="removed"},[t[17]||(t[17]=h("Removed ",-1)),n("span",fC,u(e.fmt?.number(e.statusCountFor("removed"))),1)],10,pC)]),e.fetchError?(l(),d("div",mC,[t[18]||(t[18]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),h(" "+u(e.fetchError),1)])):c("v-if",!0),T((l(),d("form",hC,[n("div",vC,[n("div",gC,[T(n("input",yC,null,512),[[o,{state:e.viewState,set:s=>{e.query.search=s},value:e.query?.search,form:null,options:{}}]]),e.query?.search?c("v-if",!0):(l(),d("span",bC,"/"))]),n("span",wC,[t[20]||(t[20]=n("label",null,"Role",-1)),T((l(),d("select",kC,[...t[19]||(t[19]=[n("option",{value:""},"Any",-1),n("option",{value:"admin"},"Admin",-1)])])),[[o,{state:e.viewState,set:s=>{e.query.role=s},value:e.query?.role,form:null,options:{}}]])]),t[24]||(t[24]=n("span",{class:"admin-filter-spacer"},null,-1)),n("button",{class:"btn btn-sm",type:"button",onClick:t[4]||(t[4]=s=>e.exportCsv())},[...t[21]||(t[21]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-export"})],-1),h(" Export",-1)])]),e.totalPage>1?(l(),d("span",CC,[n("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[5]||(t[5]=s=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1,"aria-label":"Previous page"},[...t[22]||(t[22]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1)])],8,EC),n("span",SC,u(e.query?.page)+"/"+u(e.totalPage||1),1),n("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[6]||(t[6]=s=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage,"aria-label":"Next page"},[...t[23]||(t[23]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,NC)])):c("v-if",!0)]),e.chips?.length?(l(),d("div",RC,[n("div",DC,[(l(!0),d(W,null,oe(e.chips,(s,r)=>(l(),d("span",{class:"admin-active-chip",key:s?.key},[n("span",TC,u(s?.label),1),n("span",null,u(s?.value),1),n("button",{type:"button",onClick:a=>e.clearFilter(s.key),"aria-label":"Clear filter"},[...t[25]||(t[25]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1)])],8,_C)]))),128))])])):c("v-if",!0)])),[[i,e.viewState]]),e.selectedCount()>0?(l(),d("div",AC,[n("span",null,[n("strong",null,u(e.selectedCount()),1),t[26]||(t[26]=h(" selected",-1))]),n("button",{class:"btn btn-sm text-danger",type:"button",onClick:t[7]||(t[7]=s=>e.bulkBan())},[...t[27]||(t[27]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-ban"})],-1),h(" Ban",-1)])]),n("button",{class:"btn btn-sm",type:"button",onClick:t[8]||(t[8]=s=>{e.selected={},e.allSelected=!1})},"Clear")])):c("v-if",!0),n("div",OC,[n("div",PC,[n("div",IC,[n("input",{type:"checkbox","aria-label":"Select all on page",onClick:t[9]||(t[9]=s=>e.selectAllOnPage()),checked:e.allSelected},null,8,MC)]),n("div",VC,[n("button",{type:"button",class:O(["sortable",{active:e.query?.sort=="username"}]),onClick:t[10]||(t[10]=s=>e.sortBy("username"))},[t[29]||(t[29]=h("User ",-1)),e.sortIcon("username")?(l(),d("svg",{key:0,class:O(["ui-icon sort-direction",{ascending:e.sortIcon("username")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[28]||(t[28]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):c("v-if",!0)],2)]),t[32]||(t[32]=n("div",{role:"columnheader",class:"num",title:"Repositories discovered on the user's GitHub account"},"GitHub repos",-1)),n("div",qC,[n("button",{type:"button",class:O(["sortable",{active:e.query?.sort=="status"}]),onClick:t[11]||(t[11]=s=>e.sortBy("status"))},[t[31]||(t[31]=h("Status ",-1)),e.sortIcon("status")?(l(),d("svg",{key:0,class:O(["ui-icon sort-direction",{ascending:e.sortIcon("status")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[30]||(t[30]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):c("v-if",!0)],2)]),t[33]||(t[33]=n("div",{role:"columnheader"},"Role",-1)),t[34]||(t[34]=n("div",{role:"columnheader","aria-label":"Actions"},null,-1))]),(l(!0),d(W,null,oe(e.filteredUsers,(s,r)=>(l(),d("div",{class:O(["paper-table-row admin-users-row",{"row-selected":e.selected[s?.username]}]),role:"row"},[n("div",LC,[T(n("input",$C,null,512),[[o,{state:e.viewState,set:a=>{e.selected[s.username]=a},value:e.selected[s?.username],form:null,options:{}}]])]),n("div",UC,[s?.photo?(l(),d("img",{key:0,width:"28",height:"28",class:"rounded-circle",style:{"flex-shrink":"0"},src:e.safeUrl(s?.photo)},null,8,FC)):(l(),d("span",BC,u((s?.username||"?").charAt(0).toUpperCase()),1)),n("div",zC,[n("a",{class:"repo-name",textContent:u(s?.username),href:e.safeUrl("/admin/users/"+s?.username)},null,8,HC),n("div",jC,[s?.emails?.[0]?.email?(l(),d("span",GC,u(s?.emails?.[0]?.email)+" \xB7 ",1)):c("v-if",!0),n("a",{target:"_blank",href:e.safeUrl("https://github.com/"+s?.username)},[t[35]||(t[35]=n("i",{class:"fab fa-github"},null,-1)),h(" "+u(s?.username),1)],8,WC),s?.dateOfEntry?(l(),d("span",KC,"\xA0\xB7\xA0Joined "+u(e.fmt?.humanTime(s?.dateOfEntry)),1)):c("v-if",!0)])])]),n("div",YC,[t[36]||(t[36]=n("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-type-repo"})],-1)),n("a",{title:s?.repoCount?"Show this user\u2019s repositories":"Repositories not synced yet",textContent:u(s?.repoCount?e.fmt?.number(s.repoCount):"Not synced"),class:O({"is-unsynced":!s?.repoCount}),href:e.safeUrl("/admin/repositories?owner="+s?.username)},null,10,JC)]),n("div",QC,[n("span",{class:O(["status-dot",{"status-ready":s?.status=="active","status-removed":s?.status=="removed"||s?.status=="banned"}])},null,2),n("span",{textContent:u(e.fmt?.title(s?.status))},null,8,XC)]),n("div",ZC,[s?.isAdmin?(l(),d("span",xC,"Admin")):c("v-if",!0),s?.isAdmin?c("v-if",!0):(l(),d("span",eE,"\u2014"))]),n("div",tE,[n("div",nE,[t[42]||(t[42]=n("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-more"})])],-1)),n("div",oE,[n("a",{class:"dropdown-item",href:e.safeUrl("/admin/users/"+s?.username)},[...t[37]||(t[37]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1),h(" View details",-1)])],8,sE),n("a",{class:"dropdown-item",href:e.safeUrl("/admin/repositories?owner="+s?.username)},[...t[38]||(t[38]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-type-repo"})],-1),h(" View repositories",-1)])],8,iE),t[41]||(t[41]=n("div",{class:"dropdown-divider"},null,-1)),T(n("a",{class:"dropdown-item text-danger",href:"#",onClick:ae(a=>e.banUser(s),["prevent"])},[...t[39]||(t[39]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-ban"})],-1),h(" Ban",-1)])],8,rE),[[Y,s?.status=="active"]]),T(n("a",{class:"dropdown-item",href:"#",onClick:ae(a=>e.activateUser(s),["prevent"])},[...t[40]||(t[40]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-check-circle"})],-1),h(" Activate",-1)])],8,aE),[[Y,s?.status=="removed"||s?.status=="banned"]])])])])],2))),256)),e.filteredUsers?.length==0?(l(),d("div",lE,[...t[43]||(t[43]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-inbox"})],-1),n("span",null,"No users match the current filters.",-1)])])):c("v-if",!0)]),n("div",dE,[n("span",uE,u(e.fmt?.number(e.total))+" results",1),e.totalPage>1?(l(),d("div",cE,[n("button",{class:"btn btn-sm",onClick:t[12]||(t[12]=s=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1},[...t[44]||(t[44]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1),h(" Previous",-1)])],8,pE),T(n("input",{type:"number",class:"form-control form-control-sm",min:"1",style:{width:"56px"},max:e.totalPage},null,8,fE),[[o,{state:e.viewState,set:s=>{e.query.page=s},value:e.query?.page,form:null,options:{}}]]),n("span",null,"of "+u(e.totalPage),1),n("button",{class:"btn btn-sm",onClick:t[13]||(t[13]=s=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage},[...t[45]||(t[45]=[h("Next ",-1),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,mE)])):c("v-if",!0),n("span",hE,[t[47]||(t[47]=n("label",null,"Per page",-1)),T((l(),d("select",vE,[...t[46]||(t[46]=[n("option",{value:"10"},"10",-1),n("option",{value:"25"},"25",-1),n("option",{value:"50"},"50",-1),n("option",{value:"100"},"100",-1)])])),[[o,{state:e.viewState,set:s=>{e.query.limit=s},value:e.query?.limit,form:null,options:{}}]])])])])}var gE={class:"anonymize-landing"},yE={class:"anonymize-landing-inner"},bE={class:"form-group mt-4 mb-2"},wE={class:"source-url-label-row"},kE={key:0,class:"repo-access","aria-label":"GitHub access"},CE={key:0,class:"repo-access-switch",role:"group","aria-label":"Repository connection"},EE=["aria-pressed","disabled"],SE=["aria-pressed","disabled"],NE={key:1,class:"connection-badge"},RE={class:"landing-url-row"},DE={id:"sourceUrl-landing",onblur:"this.scrollLeft=0",type:"text",class:"form-control form-control-lg",placeholder:"https://github.com/owner/repository"},TE=["aria-disabled"],_E={key:0,class:"text-danger",role:"alert"},AE={key:1,class:"repo-access-details","aria-label":"GitHub access"},OE={class:"repo-access-main"},PE={class:"repo-access-controls"},IE={key:0,class:"access-q"},ME={key:2,class:"connection-link",href:"/connections"},VE={class:"repo-access-note"},qE={key:0},LE={class:"anonymize-workspace"},$E={class:"anonymize-topbar"},UE={class:"anonymize-topbar-inner"},FE={class:"anonymize-topbar-head"},BE={class:"paper-page-title anonymize-topbar-title"},zE={key:0},HE={key:1},jE={key:0,class:"alert alert-info",role:"status"},GE={key:1,class:"alert alert-info",role:"status"},WE={key:1},KE={class:"anonymize-mobile-tabs",role:"tablist","aria-label":"Anonymization workspace"},YE=["aria-selected","tabindex"],JE=["aria-selected","tabindex"],QE={key:2,class:"anonymize-preview-empty",id:"workspace-preview",role:"status"},XE={class:"anonymize-split"},ZE=["role","aria-labelledby"],xE={class:"form needs-validation paper-settings-main",name:"anonymize",novalidate:""},eS={class:"anonymize-fields"},tS={class:"paper-settings-section"},nS={class:"form-group"},oS={class:"source-url-label-row"},sS={key:0,class:"repo-access","aria-label":"GitHub access"},iS={key:0,class:"repo-access-switch",role:"group","aria-label":"Repository connection"},rS=["aria-pressed","disabled"],aS=["aria-pressed","disabled"],lS={key:1,class:"connection-badge"},dS=["disabled"],uS={class:"invalid-feedback"},cS={class:"invalid-feedback"},pS={class:"invalid-feedback"},fS={class:"invalid-feedback"},mS={key:0,class:"repo-access-details","aria-label":"Previous repository configuration"},hS={key:0,class:"form-group"},vS=["value"],gS={key:1},yS={class:"repo-access-controls"},bS=["href"],wS={key:1,class:"repo-access-details","aria-label":"GitHub access"},kS={class:"repo-access-main"},CS={class:"repo-access-controls"},ES={key:0,class:"access-q"},SS={key:2,class:"connection-link",href:"/connections"},NS={class:"repo-access-note"},RS={key:0},DS={key:1},TS={key:2,class:"repo-access-details"},_S=["disabled"],AS={key:0,role:"status"},OS={key:3,class:"repo-access-details"},PS={key:0,role:"status"},IS={key:4,class:"form-grid-2"},MS={class:"form-group"},VS={class:"input-group"},qS={class:"form-control",id:"branch",name:"branch"},LS=["textContent","value"],$S={class:"input-group-append"},US={class:"form-group"},FS=["disabled"],BS={class:"invalid-feedback"},zS={class:"invalid-feedback"},HS={class:"form-check"},jS={class:"form-check-input",type:"checkbox",id:"update",name:"update"},GS={class:"paper-settings-section"},WS={class:"form-group"},KS=["disabled"],YS={class:"form-text text-muted"},JS={class:"invalid-feedback"},QS={class:"form-group"},XS=["disabled"],ZS={class:"form-text text-muted"},xS={class:"invalid-feedback"},eN={class:"form-group"},tN=["disabled"],nN={class:"form-text text-muted"},oN={class:"invalid-feedback"},sN={class:"form-group"},iN={class:"redaction-syntax"},rN={class:"form-text text-muted"},aN={class:"warning-feedback"},lN={class:"invalid-feedback"},dN={class:"paper-settings-section"},uN={class:"form-check"},cN={class:"form-check-input",type:"checkbox",id:"link",name:"link"},pN={class:"form-check"},fN={class:"form-check-input",type:"checkbox",id:"image",name:"image"},mN={class:"form-check"},hN={class:"form-check-input",type:"checkbox",id:"pdf",name:"pdf"},vN={class:"form-check"},gN={class:"form-check-input",type:"checkbox",id:"notebook",name:"notebook"},yN={class:"form-check"},bN=["disabled"],wN={key:0,class:"form-text text-muted"},kN={key:1,class:"form-text text-muted"},CN={key:0,class:"form-text text-muted"},EN={class:"form-check"},SN={class:"form-check-input",type:"checkbox",id:"title-gist",name:"title-gist"},NN={class:"form-check"},RN={class:"form-check-input",type:"checkbox",id:"content-gist",name:"content-gist"},DN={class:"form-check"},TN={class:"form-check-input",type:"checkbox",id:"comments-gist",name:"comments-gist"},_N={class:"form-check"},AN={class:"form-check-input",type:"checkbox",id:"username-gist",name:"username-gist"},ON={class:"form-check"},PN={class:"form-check-input",type:"checkbox",id:"date-gist",name:"date-gist"},IN={class:"form-check"},MN={class:"form-check-input",type:"checkbox",id:"origin-gist",name:"origin-gist"},VN={class:"form-check"},qN={class:"form-check-input",type:"checkbox",id:"title",name:"title"},LN={class:"form-check"},$N={class:"form-check-input",type:"checkbox",id:"body",name:"body"},UN={class:"form-check"},FN={class:"form-check-input",type:"checkbox",id:"diff",name:"diff"},BN={class:"form-check"},zN={class:"form-check-input",type:"checkbox",id:"comments",name:"comments"},HN={class:"form-check"},jN={class:"form-check-input",type:"checkbox",id:"username",name:"username"},GN={class:"form-check"},WN={class:"form-check-input",type:"checkbox",id:"date",name:"date"},KN={class:"form-check"},YN={class:"form-check-input",type:"checkbox",id:"origin",name:"origin"},JN={class:"paper-settings-section hosting-settings",id:"repository-hosting","aria-labelledby":"hosting-heading"},QN={key:0,class:"hosting-usage"},XN={key:0},ZN={key:1},xN={key:2},eR={key:3},tR={class:"expiration-choices"},nR={class:"expiration-choice"},oR=["checked","disabled"],sR={key:0,class:"dated-options"},iR={key:0,class:"hosting-date"},rR=["min","max"],aR={class:"invalid-feedback"},lR={class:"invalid-feedback"},dR={class:"hosting-property"},uR={key:1,class:"expiration-choice"},cR=["checked","disabled"],pR={key:0},fR={key:1,class:"form-text text-muted"},mR={class:"form-group conference-field"},hR={class:"form-text text-muted"},vR=["href"],gR={class:"invalid-feedback"},yR={class:"form-text text-muted"},bR={key:2,class:"inline-hosting"},wR={key:0,role:"alert",class:"text-danger"},kR={key:1,role:"alert",class:"text-danger"},CR=["disabled"],ER={key:2,role:"status"},SR={key:3,role:"status",class:"form-text text-muted"},NR={key:0,class:"capacity-reason"},RR={key:1,class:"subscription-choice"},DR={class:"billing-cycle"},TR=["value","checked","onChange"],_R={class:"hosting-terms"},AR={key:2,role:"status"},OR={key:3,class:"capacity-options"},PR=["disabled"],IR={key:5,class:"hosting-terms"},MR={key:6,class:"repository-pass"},VR=["disabled"],qR={class:"paper-settings-section"},LR={class:"form-group"},$R={style:{position:"relative"}},UR={type:"text",id:"coauthorSearch",class:"form-control",placeholder:"Search GitHub username\u2026",autocomplete:"off"},FR={class:"dropdown-menu show",style:{display:"block","max-height":"220px","overflow-y":"auto",width:"100%"}},BR=["onClick"],zR=["src"],HR=["textContent"],jR=["textContent"],GR={class:"coauthor-list"},WR={class:"coauthor-row d-flex align-items-center",style:{padding:"6px 0",gap:"8px"}},KR=["src"],YR=["textContent","href"],JR=["onClick"],QR={class:"form-text text-muted"},XR=["textContent"],ZR={class:"anonymize-submit-bar"},xR=["disabled"],eD=["disabled"],tD={key:2,class:"checkout-return-note"},nD=["disabled"],oD=["disabled"],sD=["disabled"],iD=["disabled"],rD={key:5,class:"draft-status",role:"status"},aD={key:6,class:"draft-status"},lD=["role","aria-labelledby"],dD={class:"anonymize-preview-head"},uD={class:"anonymize-preview-sub"},cD={key:0,class:"anonymize-preview-status",role:"status"},pD={key:1,class:"anonymize-preview-status",role:"status"},fD={key:2,class:"anonymize-preview-status",role:"alert"},mD={key:3,class:"anonymize-preview-status"},hD=["innerHTML"],vD=["role","aria-labelledby"],gD={class:"anonymize-preview-head"},yD={key:0,class:"anonymize-preview-status",role:"status"},bD={key:1,class:"anonymize-preview-status",role:"status"},wD={key:2,class:"anonymize-preview-status",role:"alert"},kD={key:3,class:"anonymize-preview-body"},CD={class:"d-flex w-100 justify-content-between align-items-center flex-wrap"},ED={class:"pr-title mb-1"},SD={key:0},ND=["textContent"],RD={key:0},DD={key:1},TD={key:2},_D={class:"pr-comments mt-3"},AD={class:"pr-comment"},OD={class:"pr-comment-head"},PD=["textContent"],ID={key:0,class:"pr-comment-date"},MD={key:3},VD={class:"pr-comments"},qD={class:"pr-comment"},LD={class:"pr-comment-head"},$D={key:0,class:"pr-comment-author"},UD=["textContent"],FD=["textContent"],BD={key:0,class:"pr-comment-body"},zD=["role","aria-labelledby"],HD={class:"anonymize-preview-head"},jD={key:0,class:"anonymize-preview-status",role:"status"},GD={key:1,class:"anonymize-preview-status",role:"status"},WD={key:2,class:"anonymize-preview-status",role:"alert"},KD={key:3,class:"anonymize-preview-body"},YD={class:"d-flex w-100 justify-content-between align-items-center flex-wrap"},JD={class:"pr-title mb-1"},QD={key:0},XD=["textContent"],ZD={key:0},xD={key:1,class:"pr-body shadow-sm p-3 mb-4 rounded",style:{background:"var(--paper-bg-alt)"}},eT={key:2,class:"paper-tabs",role:"tablist"},tT=["aria-selected","tabindex"],nT=["aria-selected","tabindex"],oT=["textContent"],sT={key:3,class:"anonymize-preview-status"},iT={class:"paper-tab-content"},rT={key:0,role:"tabpanel",id:"preview-pr-diff-panel","aria-labelledby":"preview-pr-diff-tab"},aT=["innerHTML"],lT={key:1,role:"tabpanel",id:"preview-pr-comments-panel","aria-labelledby":"preview-pr-comments-tab"},dT={class:"pr-comments"},uT={class:"pr-comment"},cT={class:"pr-comment-head"},pT={key:0,class:"pr-comment-author"},fT=["textContent"],mT=["textContent"],hT={key:0,class:"pr-comment-body"};function Fl(e,t){let o=We("gist-file"),i=We("markdown"),s=we("field"),r=we("form");return l(),d("div",{class:O(["anonymize-page h-100",{"mobile-preview-active":e.mobilePane==="preview","preview-expanded":e.previewExpanded}])},[c(" ===== STATE 1: No URL \u2014 centered input ===== "),T(n("div",gE,[n("div",yE,[t[48]||(t[48]=n("div",{class:"paper-crumbs"},[h("My work \xA0/\xA0 "),n("span",{class:"here"},"New anonymization")],-1)),t[49]||(t[49]=n("h1",{class:"paper-page-title"},[h("New "),n("em",null,"anonymization")],-1)),t[50]||(t[50]=n("p",{class:"paper-page-lede"}," Paste a repository, pull request, or gist URL. You\u2019ll choose the terms to redact next. ",-1)),n("div",bE,[n("div",wE,[t[45]||(t[45]=n("label",{class:"paper-field-label",for:"sourceUrl-landing"},"Source URL",-1)),!e.sourceUrl&&e.githubConnections?.appEnabled&&e.githubConnections.appConnected&&e.githubConnections.oauthConnected?(l(),d("aside",kE,[!e.isUpdate&&e.detectedType!=="gist"?(l(),d("div",CE,[n("button",{type:"button","aria-pressed":e.githubConnection==="github-app",disabled:e.githubConnection==="github-app",onClick:t[0]||(t[0]=a=>e.chooseGitHubConnection("github-app"))},[...t[44]||(t[44]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})],-1),h(),n("span",{class:"sr-only"},"Read-only ",-1),h("GitHub App",-1)])],8,EE),n("button",{type:"button","aria-pressed":e.githubConnection==="oauth",disabled:e.githubConnection==="oauth",onClick:t[1]||(t[1]=a=>e.chooseGitHubConnection("oauth"))},"Legacy OAuth",8,SE)])):c("v-if",!0),e.isUpdate||e.detectedType==="gist"?(l(),d("span",NE,u((e.detectedType==="gist"?e.githubConnections?.gistConnection==="github-app":e.githubConnection==="github-app")?"Read-only GitHub App":"Legacy OAuth"),1)):c("v-if",!0)])):c("v-if",!0)]),n("div",RE,[T(n("input",DE,null,512),[[s,{state:e.viewState,set:a=>{e.sourceUrl=a},value:e.sourceUrl,form:null,options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"},change:()=>{e.urlSelected()}}]]),n("button",{type:"button",class:"btn btn-primary landing-continue","aria-disabled":e.sourceUrl?null:"true",onClick:t[2]||(t[2]=a=>e.sourceUrl&&e.urlSelected())},"Continue",8,TE)])]),e.sourceUrlError?(l(),d("p",_E,u(e.sourceUrlError),1)):c("v-if",!0),t[51]||(t[51]=n("small",{class:"form-text",style:{color:"var(--ink-muted)"}}," Repository, pull request (\u2026/pull/42) and gist (gist.github.com/\u2026) URLs are all accepted. ",-1)),!e.sourceUrl&&e.githubConnections?.appEnabled&&e.githubConnections.appConnected?(l(),d("aside",AE,[n("div",OE,[n("div",PE,[e.detectedType!=="gist"&&e.githubConnection!=="oauth"?(l(),d("span",IE,"Repository not listed?")):c("v-if",!0),e.detectedType!=="gist"&&e.githubConnection!=="oauth"?(l(),d("button",{key:1,type:"button",class:"btn btn-outline-ink",onClick:t[3]||(t[3]=a=>e.grantGitHubAccess())},[...t[46]||(t[46]=[h("Manage access ",-1),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-external-link"})],-1)])])):c("v-if",!0),e.isUpdate||e.detectedType==="gist"||e.githubConnection==="oauth"?(l(),d("a",ME,u(e.isUpdate?"Change connection":"Manage connections")+" \u2192",1)):c("v-if",!0)])]),n("div",VE,[e.error&&e.detectedType!=="gist"&&e.githubConnection==="github-app"?(l(),d("span",qE,"Signing in does not grant access to private repositories. Use Manage access to select this repository, then return here. Organization access may require administrator approval.")):c("v-if",!0),t[47]||(t[47]=n("span",null,[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-info"})]),h(" Anonymized content is public, even from private repositories.")],-1))])])):c("v-if",!0)])],512),[[Y,!e.workspaceOpen&&!e.isUpdate]]),c(" ===== STATE 2: URL provided \u2014 form (left) + preview (right) ===== "),T(n("div",LE,[n("header",$E,[n("div",UE,[n("div",FE,[n("h1",BE,[e.isUpdate?c("v-if",!0):(l(),d("span",zE,"New anonymization")),e.isUpdate?(l(),d("span",HE,"Edit anonymization")):c("v-if",!0)]),T(n("span",{class:O(["type-badge",{"type-repo":e.detectedType==="repo","type-pr":e.detectedType==="pr","type-gist":e.detectedType==="gist"}])},u(e.detectedType==="repo"?"Repository":e.detectedType==="pr"?"Pull request":"Gist"),3),[[Y,e.detectedType]])])])]),e.detectedType==="gist"&&e.gistAppRequired?(l(),d("aside",jE,[t[52]||(t[52]=n("p",null,"Reconnect your GitHub account to read this gist. Your draft will be restored when you return.",-1)),n("button",{type:"button",class:"btn btn-ink",onClick:t[4]||(t[4]=a=>e.connectGistApp())},"Connect GitHub App to access gists")])):c("v-if",!0),e.detectedType==="gist"&&e.gistOAuthRequired?(l(),d("aside",GE,[t[53]||(t[53]=n("p",null,"Connect GitHub OAuth to access gists. Your account and existing anonymizations stay the same, and your draft will be restored when you return.",-1)),t[54]||(t[54]=n("p",null,"GitHub's legacy OAuth connection includes write access to private repositories.",-1)),e.githubConnections?.oauthEnabled?(l(),d("button",{key:0,type:"button",class:"btn btn-ink",onClick:t[5]||(t[5]=a=>e.connectGistOAuth())},"Connect GitHub OAuth to access gists")):(l(),d("p",WE,"GitHub OAuth is currently unavailable. Please try again later."))])):c("v-if",!0),n("nav",KE,[n("button",{id:"workspace-settings-tab",role:"tab",type:"button","aria-selected":e.mobilePane==="settings","aria-controls":"workspace-settings",tabindex:e.mobilePane==="settings"?0:-1,onKeydown:t[6]||(t[6]=a=>e.previewTabKeydown(a)),onClick:t[7]||(t[7]=a=>e.selectMobilePane("settings"))},"Settings",40,YE),n("button",{id:"workspace-preview-tab",role:"tab",type:"button","aria-selected":e.mobilePane==="preview","aria-controls":"workspace-preview",tabindex:e.mobilePane==="preview"?0:-1,onKeydown:t[8]||(t[8]=a=>e.previewTabKeydown(a)),onClick:t[9]||(t[9]=a=>e.selectMobilePane("preview"))},"Reviewer preview",40,JE)]),e.detectedType!=="repo"&&!e.details?(l(),d("div",QE,u(e.sourceLoading?"Loading source\u2026":"Choose an accessible source to see its preview."),1)):c("v-if",!0),n("div",XE,[c(" Form column (left) "),n("div",{id:"workspace-settings",role:e.mobileWorkspace?"tabpanel":null,"aria-labelledby":e.mobileWorkspace?"workspace-settings-tab":null,class:"anonymize-form-col overflow-auto"},[T((l(),d("form",xE,[n("div",eS,[n("section",tS,[t[69]||(t[69]=n("h2",{class:"paper-section-eyebrow"},"Source & access",-1)),n("div",nS,[n("div",oS,[t[56]||(t[56]=n("label",{class:"paper-field-label",for:"sourceUrl"},"Source URL",-1)),e.sourceUrl&&e.githubConnections?.appEnabled&&e.githubConnections.appConnected&&e.githubConnections.oauthConnected?(l(),d("aside",sS,[!e.isUpdate&&e.detectedType!=="gist"?(l(),d("div",iS,[n("button",{type:"button","aria-pressed":e.githubConnection==="github-app",disabled:e.githubConnection==="github-app",onClick:t[10]||(t[10]=a=>e.chooseGitHubConnection("github-app"))},[...t[55]||(t[55]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})],-1),h(),n("span",{class:"sr-only"},"Read-only ",-1),h("GitHub App",-1)])],8,rS),n("button",{type:"button","aria-pressed":e.githubConnection==="oauth",disabled:e.githubConnection==="oauth",onClick:t[11]||(t[11]=a=>e.chooseGitHubConnection("oauth"))},"Legacy OAuth",8,aS)])):c("v-if",!0),e.isUpdate||e.detectedType==="gist"?(l(),d("span",lS,u((e.detectedType==="gist"?e.githubConnections?.gistConnection==="github-app":e.githubConnection==="github-app")?"Read-only GitHub App":"Legacy OAuth"),1)):c("v-if",!0)])):c("v-if",!0)]),T(n("input",{type:"text",class:O(["form-control",{"is-invalid":e.anonymize?.sourceUrl?.invalid}]),name:"sourceUrl",id:"sourceUrl",onblur:"this.scrollLeft=0",disabled:e.isUpdate&&e.detectedType!=="repo",placeholder:"Paste a GitHub repo or pull request URL"},null,10,dS),[[s,{state:e.viewState,set:a=>{e.sourceUrl=a},value:e.sourceUrl,form:"anonymize",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"},change:()=>{e.urlSelected()}}]]),T(n("div",uS," Please provide a valid GitHub URL. ",512),[[Y,e.anonymize?.sourceUrl?.errors?.github]]),T(n("div",cS," Not accessible. The organization may restrict access. ",512),[[Y,e.anonymize?.sourceUrl?.errors?.access]]),T(n("div",pS," Does not exist or is not accessible. ",512),[[Y,e.anonymize?.sourceUrl?.errors?.missing]]),T(n("div",fS," Already anonymized. ",512),[[Y,e.anonymize?.sourceUrl?.errors?.used]])]),!e.isUpdate&&e.previousConfigurations.length?(l(),d("aside",mS,[t[58]||(t[58]=n("p",{role:"status"},"You have already anonymized this repository. Use the existing configuration to keep its anonymous link and avoid creating another repository.",-1)),e.previousConfigurations.length>1?(l(),d("div",hS,[t[57]||(t[57]=n("label",{class:"paper-field-label",for:"previousConfiguration"},"Previous anonymization",-1)),T(n("select",{id:"previousConfiguration",class:"form-control","onUpdate:modelValue":t[12]||(t[12]=a=>e.previousConfigurationId=a)},[(l(!0),d(W,null,oe(e.previousConfigurations,a=>(l(),d("option",{key:a.repoId,value:a.repoId},u(a.repoId),9,vS))),128))],512),[[fn,e.previousConfigurationId]])])):(l(),d("p",gS,u(e.previousConfigurationId),1)),t[59]||(t[59]=n("p",null,"You can review and update its settings before saving.",-1)),n("div",yS,[n("a",{class:"btn btn-ink",href:e.existingConfigurationUrl()},"Use existing configuration",8,bS),n("button",{type:"button",class:"btn btn-link",onClick:t[13]||(t[13]=a=>e.previousConfigurations=[])},"Create a separate anonymization")])])):c("v-if",!0),e.sourceUrl&&e.githubConnections?.appEnabled&&e.githubConnections.appConnected?(l(),d("aside",wS,[n("div",kS,[n("div",CS,[e.detectedType!=="gist"&&e.githubConnection!=="oauth"&&!e.details?(l(),d("span",ES,"Repository not listed?")):c("v-if",!0),e.detectedType!=="gist"&&e.githubConnection!=="oauth"&&!e.details?(l(),d("button",{key:1,type:"button",class:"btn btn-outline-ink",onClick:t[14]||(t[14]=a=>e.grantGitHubAccess())},[...t[60]||(t[60]=[h("Manage access ",-1),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-external-link"})],-1)])])):c("v-if",!0),e.isUpdate||e.detectedType==="gist"||e.githubConnection==="oauth"?(l(),d("a",SS,u(e.isUpdate?"Change connection":"Manage connections")+" \u2192",1)):c("v-if",!0)])]),n("div",NS,[e.error&&e.detectedType!=="gist"&&e.githubConnection==="github-app"?(l(),d("span",RS,"Signing in does not grant access to private repositories. Use Manage access to select this repository, then return here. Organization access may require administrator approval.")):c("v-if",!0),e.detectedType!=="gist"&&e.githubConnection!=="oauth"&&!e.details?(l(),d("span",DS,"Select repositories on GitHub, then return here.")):c("v-if",!0),t[61]||(t[61]=n("span",null,[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-info"})]),h(" Selected content will be published, including content from private repositories.")],-1))])])):c("v-if",!0),e.isUpdate&&e.detectedType==="repo"&&e.role==="owner"&&e.accessRepairAllowed&&e.githubConnections?.appEnabled&&e.githubConnection==="github-app"&&e.sourceUrl==="https://github.com/"+e._originalFullName?(l(),d("aside",TS,[t[62]||(t[62]=n("p",null,"If this repository became private or its App installation changed, repair its access here. This keeps the same anonymous URL and published commit.",-1)),n("button",{type:"button",class:"btn btn-outline-ink",disabled:e.repairingGitHubAccess,onClick:t[15]||(t[15]=a=>e.repairGitHubAccess())},"Repair GitHub access",8,_S),n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[16]||(t[16]=a=>e.grantGitHubAccess())},"Manage access"),e.accessRepairMessage?(l(),d("p",AS,u(e.accessRepairMessage),1)):c("v-if",!0)])):c("v-if",!0),e.isUpdate&&e.detectedType==="repo"&&e.role==="owner"&&e.sourceUrl==="https://github.com/"+e._originalFullName?(l(),d("aside",OS,[t[63]||(t[63]=n("p",null,"If you deleted and recreated this repository, reconnect it before choosing a branch.",-1)),n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[17]||(t[17]=a=>e.reconnectSource())},"Reconnect source repository"),e.reconnectRepositoryId?(l(),d("p",PS,"Source reloaded. Review the branch, commit, and anonymization preview, then save to replace the published snapshot.")):c("v-if",!0)])):c("v-if",!0),e.detectedType==="repo"?(l(),d("div",IS,[n("div",MS,[t[65]||(t[65]=n("label",{class:"paper-field-label",for:"branch"},"Branch",-1)),n("div",VS,[T((l(),d("select",qS,[(l(!0),d(W,null,oe(e.branches,(a,p)=>(l(),d("option",{textContent:u(a?.name),value:a?.name},null,8,LS))),256))])),[[s,{state:e.viewState,set:a=>{e.source.branch=a},value:e.source?.branch,form:"anonymize",options:{}}]]),n("div",$S,[n("button",{class:"btn btn-icon refresh-branches",type:"button",title:"Refresh branches",onClick:t[18]||(t[18]=a=>e.getBranches(!0)),"aria-label":"Refresh branches"},[...t[64]||(t[64]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1)])])])])]),n("div",US,[t[66]||(t[66]=n("label",{class:"paper-field-label",for:"commit"},"Commit",-1)),T(n("input",{class:O(["form-control",{"is-invalid":e.anonymize?.commit?.invalid}]),id:"commit",disabled:e.options.update,name:"commit",pattern:"[a-fA-Z0-9]{6,}",required:""},null,10,FS),[[s,{state:e.viewState,set:a=>{e.source.commit=a},value:e.source?.commit,form:"anonymize",options:{}}]]),T(n("div",BS," The commit SHA is not valid. ",512),[[Y,e.anonymize?.commit?.errors?.pattern||e.anonymize?.commit?.errors?.required]]),T(n("div",zS," This commit no longer exists in the repository. Click refresh to get the latest. ",512),[[Y,e.anonymize?.commit?.errors?.exists]])])])):c("v-if",!0),T(n("div",HS,[T(n("input",jS,null,512),[[s,{state:e.viewState,set:a=>{e.options.update=a},value:e.options?.update,form:"anonymize",options:{}}]]),t[67]||(t[67]=n("label",{class:"form-check-label",for:"update"},"Auto-update from GitHub",-1)),t[68]||(t[68]=n("small",{class:"form-text text-muted"},"Follows the latest version, at most once an hour.",-1))],512),[[Y,e.detectedType]])]),T(n("section",GS,[t[87]||(t[87]=n("h2",{class:"paper-section-eyebrow"},"Anonymization",-1)),T(n("div",WS,[t[70]||(t[70]=n("label",{class:"paper-field-label",for:"repoId"},"Anonymized repository ID",-1)),T(n("input",{type:"text",class:O(["form-control",{"is-invalid":e.anonymize?.repoId?.invalid}]),name:"repoId",id:"repoId",disabled:e.isUpdate},null,10,KS),[[s,{state:e.viewState,set:a=>{e.repoId=a},value:e.repoId,form:"anonymize",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"}}]]),n("small",YS,"anonymous.4open.science/r/"+u(e.repoId),1),T(n("div",JS,"ID can only contain letters and numbers.",512),[[Y,e.anonymize?.repoId?.errors?.format]]),T(n("div",{class:"invalid-feedback"},u(e.repoId)+" is already used.",513),[[Y,e.anonymize?.repoId?.errors?.used]])],512),[[Y,e.detectedType==="repo"]]),T(n("div",QS,[t[73]||(t[73]=n("label",{class:"paper-field-label",for:"pullRequestId"},"Anonymized pull request ID",-1)),T(n("input",{type:"text",class:O(["form-control",{"is-invalid":e.anonymize?.pullRequestId?.invalid}]),name:"pullRequestId",id:"pullRequestId",disabled:e.isUpdate},null,10,XS),[[s,{state:e.viewState,set:a=>{e.pullRequestId=a},value:e.pullRequestId,form:"anonymize",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"}}]]),n("small",ZS,[t[71]||(t[71]=h("Your share link will be ",-1)),n("code",null,"anonymous.4open.science/pr/"+u(e.pullRequestId),1),t[72]||(t[72]=h(".",-1))]),T(n("div",xS,"ID can only contain letters and numbers.",512),[[Y,e.anonymize?.pullRequestId?.errors?.format]]),T(n("div",{class:"invalid-feedback"},u(e.pullRequestId)+" is already used.",513),[[Y,e.anonymize?.pullRequestId?.errors?.used]])],512),[[Y,e.detectedType==="pr"]]),T(n("div",eN,[t[76]||(t[76]=n("label",{class:"paper-field-label",for:"gistId"},"Anonymized gist ID",-1)),T(n("input",{type:"text",class:O(["form-control",{"is-invalid":e.anonymize?.gistId?.invalid}]),name:"gistId",id:"gistId",disabled:e.isUpdate},null,10,tN),[[s,{state:e.viewState,set:a=>{e.gistId=a},value:e.gistId,form:"anonymize",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"}}]]),n("small",nN,[t[74]||(t[74]=h("Your share link will be ",-1)),n("code",null,"anonymous.4open.science/gist/"+u(e.gistId),1),t[75]||(t[75]=h(".",-1))]),T(n("div",oN,"ID can only contain letters and numbers.",512),[[Y,e.anonymize?.gistId?.errors?.format]]),T(n("div",{class:"invalid-feedback"},u(e.gistId)+" is already used.",513),[[Y,e.anonymize?.gistId?.errors?.used]])],512),[[Y,e.detectedType==="gist"]]),n("div",sN,[t[85]||(t[85]=n("label",{class:"paper-field-label",for:"terms"},"Terms to redact",-1)),T(n("textarea",{class:O(["form-control",{"is-invalid":e.anonymize?.terms?.invalid}]),id:"terms",name:"terms",rows:"4",placeholder:`Jane Smith
|
|
MIT CSAIL
|
|
jane.smith@example.org`},null,2),[[s,{state:e.viewState,set:a=>{e.terms=a},value:e.terms,form:"anonymize",options:{debounce:250}}]]),t[86]||(t[86]=n("small",{class:"form-text text-muted"},"One term per line.",-1)),n("details",iN,[t[83]||(t[83]=n("summary",null,"Regex & replacement syntax",-1)),t[84]||(t[84]=h()),n("small",rN,[t[77]||(t[77]=h("Regex is supported. Replaced by ",-1)),n("code",null,u(e.site_options?.ANONYMIZATION_MASK)+"-[N]",1),t[78]||(t[78]=h(", or use ",-1)),t[79]||(t[79]=n("code",null,"term=>replacement",-1)),t[80]||(t[80]=h(" to pick your own (e.g. ",-1)),t[81]||(t[81]=n("code",null,"Anonymous=>ABC",-1)),t[82]||(t[82]=h(").",-1))])]),T(n("div",aN,"Regex characters detected. Escape them if unintentional.",512),[[Y,e.termsRegexWarning]]),T(n("div",lN,"Terms are in an invalid format.",512),[[Y,e.anonymize?.terms?.errors?.format]])])],512),[[Y,e.detectedType]]),T(n("section",dN,[t[107]||(t[107]=n("h2",{class:"paper-section-eyebrow"},"Display",-1)),T(n("div",null,[n("div",uN,[T(n("input",cN,null,512),[[s,{state:e.viewState,set:a=>{e.options.link=a},value:e.options?.link,form:"anonymize",options:{}}]]),t[88]||(t[88]=n("label",{class:"form-check-label",for:"link"},"Keep links",-1))]),n("div",pN,[T(n("input",fN,null,512),[[s,{state:e.viewState,set:a=>{e.options.image=a},value:e.options?.image,form:"anonymize",options:{}}]]),t[89]||(t[89]=n("label",{class:"form-check-label",for:"image"},"Display images",-1))]),n("div",mN,[T(n("input",hN,null,512),[[s,{state:e.viewState,set:a=>{e.options.pdf=a},value:e.options?.pdf,form:"anonymize",options:{}}]]),t[90]||(t[90]=n("label",{class:"form-check-label",for:"pdf"},"Display PDFs",-1))]),n("div",vN,[T(n("input",gN,null,512),[[s,{state:e.viewState,set:a=>{e.options.notebook=a},value:e.options?.notebook,form:"anonymize",options:{}}]]),t[91]||(t[91]=n("label",{class:"form-check-label",for:"notebook"},"Display Notebooks",-1))]),n("div",yN,[T(n("input",{class:"form-check-input",type:"checkbox",id:"page",name:"page",disabled:!e.details?.hasPage||e.details?.pageSource&&e.details?.pageSource?.branch!==e.source?.branch},null,8,bN),[[s,{state:e.viewState,set:a=>{e.options.page=a},value:e.options?.page,form:"anonymize",options:{}}]]),t[92]||(t[92]=n("label",{class:"form-check-label",for:"page"},"GitHub Pages",-1)),e.details?.hasPage?c("v-if",!0):(l(),d("small",wN,u(e.fmt?.translate("WARNINGS.page_not_enabled_on_repo")),1)),e.details?.hasPage&&e.details?.pageSource?.branch&&e.source?.branch&&e.details.pageSource.branch!==e.source.branch?(l(),d("small",kN,u(e.fmt?.translate("WARNINGS.page_branch_mismatch",{pageBranch:e.details?.pageSource?.branch,selectedBranch:e.source?.branch})),1)):c("v-if",!0)])],512),[[Y,e.detectedType==="repo"]]),e.detectedType==="repo"&&(e.options.image||e.options.pdf)?(l(),d("p",CN,[...t[93]||(t[93]=[h("Images and PDFs are served unchanged. Review their contents and metadata before sharing. ",-1),n("a",{href:"/faq#formats"},"Supported formats",-1)])])):c("v-if",!0),T(n("div",null,[n("div",EN,[T(n("input",SN,null,512),[[s,{state:e.viewState,set:a=>{e.options.title=a},value:e.options?.title,form:"anonymize",options:{}}]]),t[94]||(t[94]=n("label",{class:"form-check-label",for:"title-gist"},"Gist description",-1))]),n("div",NN,[T(n("input",RN,null,512),[[s,{state:e.viewState,set:a=>{e.options.content=a},value:e.options?.content,form:"anonymize",options:{}}]]),t[95]||(t[95]=n("label",{class:"form-check-label",for:"content-gist"},"File contents",-1))]),n("div",DN,[T(n("input",TN,null,512),[[s,{state:e.viewState,set:a=>{e.options.comments=a},value:e.options?.comments,form:"anonymize",options:{}}]]),t[96]||(t[96]=n("label",{class:"form-check-label",for:"comments-gist"},"Comments",-1))]),n("div",_N,[T(n("input",AN,null,512),[[s,{state:e.viewState,set:a=>{e.options.username=a},value:e.options?.username,form:"anonymize",options:{}}]]),t[97]||(t[97]=n("label",{class:"form-check-label",for:"username-gist"},"Usernames",-1))]),n("div",ON,[T(n("input",PN,null,512),[[s,{state:e.viewState,set:a=>{e.options.date=a},value:e.options?.date,form:"anonymize",options:{}}]]),t[98]||(t[98]=n("label",{class:"form-check-label",for:"date-gist"},"Dates",-1))]),n("div",IN,[T(n("input",MN,null,512),[[s,{state:e.viewState,set:a=>{e.options.origin=a},value:e.options?.origin,form:"anonymize",options:{}}]]),t[99]||(t[99]=n("label",{class:"form-check-label",for:"origin-gist"},"Source gist ID",-1))])],512),[[Y,e.detectedType==="gist"]]),T(n("div",null,[n("div",VN,[T(n("input",qN,null,512),[[s,{state:e.viewState,set:a=>{e.options.title=a},value:e.options?.title,form:"anonymize",options:{}}]]),t[100]||(t[100]=n("label",{class:"form-check-label",for:"title"},"PR title",-1))]),n("div",LN,[T(n("input",$N,null,512),[[s,{state:e.viewState,set:a=>{e.options.body=a},value:e.options?.body,form:"anonymize",options:{}}]]),t[101]||(t[101]=n("label",{class:"form-check-label",for:"body"},"PR body",-1))]),n("div",UN,[T(n("input",FN,null,512),[[s,{state:e.viewState,set:a=>{e.options.diff=a},value:e.options?.diff,form:"anonymize",options:{}}]]),t[102]||(t[102]=n("label",{class:"form-check-label",for:"diff"},"Diff",-1))]),n("div",BN,[T(n("input",zN,null,512),[[s,{state:e.viewState,set:a=>{e.options.comments=a},value:e.options?.comments,form:"anonymize",options:{}}]]),t[103]||(t[103]=n("label",{class:"form-check-label",for:"comments"},"Comments",-1))]),n("div",HN,[T(n("input",jN,null,512),[[s,{state:e.viewState,set:a=>{e.options.username=a},value:e.options?.username,form:"anonymize",options:{}}]]),t[104]||(t[104]=n("label",{class:"form-check-label",for:"username"},"Usernames",-1))]),n("div",GN,[T(n("input",WN,null,512),[[s,{state:e.viewState,set:a=>{e.options.date=a},value:e.options?.date,form:"anonymize",options:{}}]]),t[105]||(t[105]=n("label",{class:"form-check-label",for:"date"},"Dates",-1))]),n("div",KN,[T(n("input",YN,null,512),[[s,{state:e.viewState,set:a=>{e.options.origin=a},value:e.options?.origin,form:"anonymize",options:{}}]]),t[106]||(t[106]=n("label",{class:"form-check-label",for:"origin"},"Project name",-1))])],512),[[Y,e.detectedType==="pr"]])],512),[[Y,e.detectedType]]),T(n("section",JN,[t[123]||(t[123]=n("h2",{class:"paper-section-eyebrow",id:"hosting-heading"},"Hosting & expiration",-1)),e.detectedType==="repo"&&e.billing?.enabled?(l(),d("p",QN,[e.isUpdate&&e.role!=="owner"?(l(),d("span",XN,"Uses the owner's hosting")):e.hasAuthorHosting()?(l(),d("span",ZN,"Your author subscription is active.")):e.conference?(l(),d("span",xN,"Conference hosting is checked on submission.")):e.hostingQuota?.repository?(l(),d("span",eR,u(e.hostingQuota.repository.used)+" of "+u(e.hostingQuota.repository.total)+" active repositories \xB7 Free",1)):c("v-if",!0)])):c("v-if",!0),n("fieldset",tR,[t[113]||(t[113]=n("legend",{class:"sr-only"},"Expiration",-1)),n("label",nR,[n("input",{type:"radio",name:"expiration-choice",checked:e.options.expirationMode!=="never",onChange:t[19]||(t[19]=a=>e.useDatedHosting()),disabled:e.billingPending},null,40,oR),t[108]||(t[108]=n("span",null,"Expire on a date",-1))]),e.options.expirationMode!=="never"?(l(),d("div",sR,[e.options?.expirationMode!=="never"?(l(),d("div",iR,[t[109]||(t[109]=n("label",{class:"paper-field-label",for:"expirationDate"},"Expires",-1)),T(n("input",{class:O(["form-control",{"is-invalid":e.anonymize?.expirationDate?.invalid}]),type:"date",name:"expirationDate",id:"expirationDate",required:"",min:e.minExpirationDate,max:e.maxExpirationDate},null,10,rR),[[s,{state:e.viewState,set:a=>{e.options.expirationDate=a},value:e.options?.expirationDate,form:"anonymize",options:{}}]]),T(n("div",aR,"Pick a date in the future.",512),[[Y,e.anonymize?.expirationDate?.errors?.min]]),T(n("div",{class:"invalid-feedback"},"Pick a date on or before "+u(e.fmt?.date(e.maxExpirationDate))+".",513),[[Y,e.anonymize?.expirationDate?.errors?.max]]),T(n("div",lR,"Enter a valid expiration date.",512),[[Y,e.anonymize?.expirationDate?.errors?.required||e.anonymize?.expirationDate?.errors?.date]])])):c("v-if",!0),n("div",dR,[t[111]||(t[111]=n("label",{for:"expiration"},"Then",-1)),T(n("select",{id:"expiration",class:"form-control","onUpdate:modelValue":t[20]||(t[20]=a=>e.options.expirationMode=a)},[...t[110]||(t[110]=[n("option",{value:"remove"},"Remove content",-1),n("option",{value:"redirect"},"Redirect to GitHub",-1)])],512),[[fn,e.options.expirationMode]])])])):c("v-if",!0),e.detectedType==="repo"?(l(),d("label",uR,[n("input",{type:"radio",name:"expiration-choice",checked:e.options.expirationMode==="never",onChange:t[21]||(t[21]=a=>e.options.expirationMode="never"),disabled:e.billingPending},null,40,cR),n("span",null,[t[112]||(t[112]=h("Never expire",-1)),e.options.expirationMode!=="never"||e.hasAuthorHosting()?(l(),d("small",pR,u(e.hasAuthorHosting()?"Included in your subscription":"Author subscription"),1)):c("v-if",!0)])])):c("v-if",!0)]),e.options.expirationMode==="redirect"?(l(),d("p",fR,"Visitors will be redirected to the original GitHub source on this date, revealing its identity.")):c("v-if",!0),n("div",mR,[t[114]||(t[114]=n("label",{class:"paper-field-label",for:"conference"},[h("Conference code "),n("span",{class:"paper-optional"},"(optional)")],-1)),T(n("input",{class:O(["form-control",{"is-invalid":e.anonymize?.conference?.invalid}]),id:"conference",name:"conference"},null,2),[[s,{state:e.viewState,set:a=>{e.conference=a},value:e.conference,form:"anonymize",options:{debounce:{default:800,blur:0},updateOn:"default blur"}}]]),T(n("small",hR,[n("a",{target:"_blank",href:e.safeUrl(e.conference_data?.url)},u(e.conference_data?.name),9,vR),h(" expires "+u(e.fmt?.date(e.conference_data?.endDate))+". ",1)],512),[[Y,e.conference_data]]),T(n("div",gR,"The conference is not activated.",512),[[Y,e.anonymize?.conference?.errors?.activated]]),T(n("small",yR,"Link to a conference to apply its shared defaults.",512),[[Y,!e.conference_data]])]),e.detectedType==="repo"&&e.billing?.enabled?(l(),d("div",bR,[e.taskValidationError?(l(),d("p",wR,u(e.taskValidationError),1)):c("v-if",!0),e.billingError?(l(),d("p",kR,[h(u(e.billingError)+" ",1),n("button",{type:"button",class:"task-text-button",onClick:t[22]||(t[22]=a=>e.loadBilling()),disabled:e.billingBusy},"Reload billing",8,CR)])):c("v-if",!0),e.billingPending?(l(),d("div",ER,[...t[115]||(t[115]=[n("p",null,[n("strong",null,"Confirming your payment\u2026")],-1),n("p",{class:"form-text text-muted"},"Your draft is saved. Please do not pay again.",-1)])])):e.billingNotice?(l(),d("p",SR,u(e.billingNotice),1)):c("v-if",!0),e.hostingNeedsPayment()&&!e.billingPending?(l(),d(W,{key:4},[e.options.expirationMode!=="never"?(l(),d("p",NR,u(e.options.update&&!e.hostingQuotaBlocked&&e.hostingQuota?.repository?.used<e.hostingQuota?.repository?.total?"Automatic updates require Author hosting.":"Your free hosting allowance is full."),1)):c("v-if",!0),e.authorPlans().length&&e.billing.checkoutEnabled!==!1?(l(),d("div",RR,[t[117]||(t[117]=n("h3",null,"Author subscription",-1)),n("fieldset",DR,[t[116]||(t[116]=n("legend",{class:"sr-only"},"Billing frequency",-1)),(l(!0),d(W,null,oe(e.authorPlans(),a=>(l(),d("label",{class:O(["cycle-option",{selected:e.selectedHostingPlan()?.id===a.id}]),key:a.id},[n("input",{type:"radio",name:"hosting-plan",value:a.id,checked:e.selectedHostingPlan()?.id===a.id,onChange:p=>e.hostingPlan=a.id},null,40,TR),n("span",null,u(e.billingPrice(a)),1)],2))),128))]),n("p",null,u(e.selectedHostingPlan()?.repositories)+" repositories, "+u(e.billingBytes(e.selectedHostingPlan()?.storage))+". Coauthors included.",1),n("p",_R,"Renews "+u(e.selectedHostingPlan()?.interval==="year"?"annually":"monthly")+" until cancelled. Tax shown at checkout.",1),t[118]||(t[118]=n("p",{class:"hosting-terms"},"If paid access ends, never-expiring repositories expire after 90 days.",-1))])):(l(),d("p",AR,"New purchases are temporarily unavailable. Your draft is kept.")),e.options.expirationMode!=="never"?(l(),d("details",OR,[t[119]||(t[119]=n("summary",null,"Keep using free hosting",-1)),t[120]||(t[120]=n("p",null,"Remove a repository you no longer need, or use conference hosting. Removing a repository affects its review link.",-1)),t[121]||(t[121]=n("a",{href:"/dashboard"},"Review my repositories",-1)),n("button",{type:"button",class:"task-text-button",onClick:t[23]||(t[23]=a=>e.anonymizeRepo(a)),disabled:e.sourceLoading||e.billingBusy},"Recheck capacity and submit",8,PR)])):c("v-if",!0)],64)):e.options.expirationMode==="never"&&!e.billingPending?(l(),d("p",IR,"No scheduled expiration while subscribed. A 90-day grace period applies if paid access ends.")):c("v-if",!0),e.isUpdate&&e.role==="owner"&&!e.hasAuthorHosting()?(l(),d("details",MR,[t[122]||(t[122]=n("summary",null,"Hosting just this repository?",-1)),(l(!0),d(W,null,oe((e.billing?.plans||[]).filter(a=>a.id==="author_pass"),a=>(l(),d("div",{key:a.id},[n("p",null,u(e.billingPrice(a))+" \xB7 "+u(e.billingBytes(a.storage))+" for 180 days. No renewal. Does not include Never expire.",1),n("button",{type:"button",class:"btn btn-outline-ink",disabled:e.billingBusy||e.hostingSaving||e.sourceLoading||e.billing.checkoutEnabled===!1||e.billingPending,onClick:t[24]||(t[24]=p=>e.checkoutRepository(!0))},"Review repository pass",8,VR)]))),128))])):c("v-if",!0)])):c("v-if",!0)],512),[[Y,e.detectedType]]),T(n("section",qR,[t[127]||(t[127]=n("h2",{class:"paper-section-eyebrow"},"Coauthors",-1)),t[128]||(t[128]=n("p",{class:"form-text text-muted",style:{"margin-bottom":"8px"}}," Co-authors can view and edit these settings. They cannot delete the anonymization or manage co-authors. ",-1)),T(n("div",LR,[t[124]||(t[124]=n("label",{class:"paper-field-label",for:"coauthorSearch"},"Add a GitHub user",-1)),n("div",$R,[T(n("input",UR,null,512),[[s,{state:e.viewState,set:a=>{e.coauthorSearch=a},value:e.coauthorSearch,form:"anonymize",options:{debounce:300},change:()=>{e.searchCoauthors()}}]]),T(n("div",FR,[(l(!0),d(W,null,oe(e.coauthorResults,(a,p)=>(l(),d("a",{href:"#",class:"dropdown-item d-flex align-items-center",onClick:ae(f=>e.addCoauthor(a,f),["prevent"])},[n("img",{alt:"",style:{width:"22px",height:"22px","border-radius":"50%","margin-right":"8px"},src:e.safeUrl(a?.photo)},null,8,zR),n("span",{textContent:u(a?.username)},null,8,HR)],8,BR))),256))],512),[[Y,e.coauthorResults?.length>0]])]),T(n("small",{class:"form-text text-muted",textContent:u(e.coauthorError)},null,8,jR),[[Y,e.coauthorError]])],512),[[Y,e.role==="owner"||e.role==="admin"]]),n("div",GR,[(l(!0),d(W,null,oe(e.coauthors,(a,p)=>(l(),d("div",WR,[a?.photo?(l(),d("img",{key:0,alt:"",style:{width:"24px",height:"24px","border-radius":"50%"},src:e.safeUrl(a?.photo)},null,8,KR)):c("v-if",!0),n("a",{target:"_blank",textContent:u(a?.username),href:e.safeUrl("https://github.com/"+a?.username)},null,8,YR),t[126]||(t[126]=n("span",{class:"type-badge type-coauthor"},"Co-author",-1)),T(n("button",{type:"button",class:"btn btn-sm btn-icon",style:{"margin-left":"auto"},title:"Remove co-author",onClick:f=>e.removeCoauthor(a),"aria-label":"Remove co-author"},[...t[125]||(t[125]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1)])],8,JR),[[Y,e.role==="owner"||e.role==="admin"]])]))),256)),T(n("div",QR," No co-authors yet. ",512),[[Y,!e.coauthors||e.coauthors?.length===0]])])],512),[[Y,e.isUpdate&&e.detectedType==="repo"]]),e.error?(l(),d("div",{key:0,class:"alert alert-danger",role:"alert",textContent:u(e.error)},null,8,XR)):c("v-if",!0)]),n("button",{type:"button",class:"btn btn-outline-ink mobile-preview-jump",onClick:t[25]||(t[25]=a=>e.selectMobilePane("preview"))},[...t[129]||(t[129]=[h("Review preview ",-1),n("span",{"aria-hidden":"true"},"\u2192",-1)])]),T(n("div",ZR,[e.detectedType==="repo"?(l(),d(W,{key:0},[e.billingPending?(l(),d("button",{key:0,type:"button",class:"btn btn-ink",onClick:t[26]||(t[26]=a=>e.refreshBilling()),disabled:e.billingBusy},"Check payment status",8,xR)):(l(),d("button",{key:1,type:"submit",class:"btn btn-ink",disabled:e.sourceLoading||e.billingBusy||e.hostingSaving||e.billingLoading||e.hostingNeedsPayment()&&(!e.authorPlans().length||e.billing?.checkoutEnabled===!1),onClick:t[27]||(t[27]=ae(a=>e.submitForm(a,()=>{e.submitRepository(a)}),["prevent"]))},u(e.hostingSaving?"Saving draft\u2026":e.hostingNeedsPayment()?"Continue to checkout":e.isUpdate?"Save changes":"Create anonymous link"),9,eD)),e.hostingNeedsPayment()&&!e.billingPending?(l(),d("p",tD,"Review payment in Stripe, then return to finish.")):c("v-if",!0)],64)):c("v-if",!0),e.detectedType==="pr"&&!e.isUpdate?(l(),d("button",{key:1,type:"submit",disabled:e.sourceLoading,class:"btn btn-ink",onClick:t[28]||(t[28]=ae(a=>e.submitForm(a,()=>{e.anonymizePullRequest(a)}),["prevent"]))},[...t[130]||(t[130]=[n("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})],-1),h(" Anonymize Pull Request ",-1)])],8,nD)):c("v-if",!0),e.detectedType==="pr"&&e.isUpdate?(l(),d("button",{key:2,type:"submit",disabled:e.sourceLoading,class:"btn btn-ink",onClick:t[29]||(t[29]=ae(a=>e.submitForm(a,()=>{e.anonymizePullRequest(a)}),["prevent"]))},[...t[131]||(t[131]=[n("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-save"})],-1),h(" Update Pull Request ",-1)])],8,oD)):c("v-if",!0),e.detectedType==="gist"&&!e.isUpdate?(l(),d("button",{key:3,type:"submit",disabled:e.sourceLoading,class:"btn btn-ink",onClick:t[30]||(t[30]=ae(a=>e.submitForm(a,()=>{e.anonymizeGist(a)}),["prevent"]))},[...t[132]||(t[132]=[n("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})],-1),h(" Anonymize Gist ",-1)])],8,sD)):c("v-if",!0),e.detectedType==="gist"&&e.isUpdate?(l(),d("button",{key:4,type:"submit",disabled:e.sourceLoading,class:"btn btn-ink",onClick:t[31]||(t[31]=ae(a=>e.submitForm(a,()=>{e.anonymizeGist(a)}),["prevent"]))},[...t[133]||(t[133]=[n("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-save"})],-1),h(" Update Gist ",-1)])],8,iD)):c("v-if",!0),e.draftRestored?(l(),d("div",rD,[t[134]||(t[134]=h("Your unsaved draft was restored. ",-1)),n("button",{type:"button",class:"draft-discard",onClick:t[32]||(t[32]=a=>e.discardDraft())},"Discard draft")])):e.unsavedChanges?(l(),d("div",aD,[h(u(e.draftSaved?"Draft saved \xB7":"Unsaved changes \xB7")+" ",1),n("button",{type:"button",class:"draft-discard",onClick:t[33]||(t[33]=a=>e.discardDraft())},u(e.isUpdate?"Restore saved":"Discard"),1)])):c("v-if",!0)],512),[[Y,e.detectedType]])])),[[r,e.viewState]])],8,ZE),c(" Preview column (right) "),e.detectedType==="repo"?(l(),d("div",{key:0,id:"workspace-preview",role:e.mobileWorkspace?"tabpanel":null,"aria-labelledby":e.mobileWorkspace?"workspace-preview-tab":null,class:"anonymize-preview-col"},[n("div",dD,[t[135]||(t[135]=n("span",{class:"paper-eyebrow"},"Live preview",-1)),n("span",uD,u(e.previewStatus!=="ready"?"README preview":String(e.terms||"").trim()?"README with redactions applied":"No terms yet. Add some to see them redacted here."),1),n("button",{type:"button",class:"task-text-button preview-expand",onClick:t[34]||(t[34]=a=>e.previewExpanded=!e.previewExpanded)},u(e.previewExpanded?"Restore split view":"Expand preview"),1)]),e.sourceLoading&&e.previewStatus==="idle"?(l(),d("div",cD,"Loading source\u2026")):c("v-if",!0),e.previewStatus==="loading"?(l(),d("div",pD,"Updating the anonymized preview\u2026")):c("v-if",!0),e.previewStatus==="error"?(l(),d("div",fD,[t[136]||(t[136]=n("p",null,"Unable to generate the anonymized preview. The latest redactions have not been verified.",-1)),n("button",{class:"btn btn-outline-ink",type:"button",onClick:t[35]||(t[35]=a=>e.retryPreview())},"Retry preview")])):c("v-if",!0),!e.sourceLoading&&!e.readme&&e.previewStatus==="idle"?(l(),d("div",mD,"No README is available to preview. Review the published files before sharing.")):c("v-if",!0),e.previewStatus==="ready"?(l(),d("div",{key:4,class:"anonymize-preview-body markdown-body body",innerHTML:e.renderRedacted(e.sanitize(e.html_readme))},null,8,hD)):c("v-if",!0)],8,lD)):c("v-if",!0),e.detectedType==="gist"&&e.details?(l(),d("div",{key:1,id:"workspace-preview",role:e.mobileWorkspace?"tabpanel":null,"aria-labelledby":e.mobileWorkspace?"workspace-preview-tab":null,class:"anonymize-preview-col"},[n("div",gD,[t[137]||(t[137]=n("strong",null,"Gist preview",-1)),n("button",{type:"button",class:"task-text-button preview-expand",onClick:t[36]||(t[36]=a=>e.previewExpanded=!e.previewExpanded)},u(e.previewExpanded?"Restore split view":"Expand preview"),1)]),e.sourceLoading&&e.previewStatus==="idle"?(l(),d("div",yD,"Loading source\u2026")):c("v-if",!0),e.previewStatus==="loading"?(l(),d("div",bD,"Updating the anonymized preview\u2026")):c("v-if",!0),e.previewStatus==="error"?(l(),d("div",wD,[t[138]||(t[138]=n("p",null,"Unable to generate the anonymized preview. The latest redactions have not been verified.",-1)),n("button",{class:"btn btn-outline-ink",type:"button",onClick:t[37]||(t[37]=a=>e.retryPreview())},"Retry preview")])):c("v-if",!0),e.previewStatus==="ready"?(l(),d("div",kD,[n("div",CD,[n("h2",ED,[e.options?.title?(l(),d("span",SD,u(e.anonymizeGistContent(e.details?.gist?.description)||"Untitled gist"),1)):c("v-if",!0),n("span",{class:O(["badge",{"badge-success":e.details?.gist?.isPublic,"badge-secondary":!e.details?.gist?.isPublic}])},u(e.details?.gist?.isPublic?"public":"secret"),3)]),e.options?.date?(l(),d("small",{key:0,textContent:u(e.fmt?.date(e.details?.gist?.updatedDate))},null,8,ND)):c("v-if",!0)]),e.options?.origin?(l(),d("small",RD,"Gist ID: "+u(e.details?.source?.gistId),1)):c("v-if",!0),e.options?.username&&e.details?.gist?.ownerLogin?(l(),d("small",DD,"By @"+u(e.anonymizeGistContent(e.details?.gist?.ownerLogin)),1)):c("v-if",!0),e.options?.content&&e.previewGistFiles?.length?(l(),d("div",TD,[n("ul",_D,[(l(!0),d(W,null,oe(e.previewGistFiles,(a,p)=>(l(),d("li",AD,[n("div",OD,[n("strong",{textContent:u(a?.filename)},null,8,PD),a?.language?(l(),d("span",ID,u(a?.language),1)):c("v-if",!0)]),De(o,{file:a,terms:e.terms,options:e.options},null,8,["file","terms","options"])]))),256))])])):c("v-if",!0),e.options?.comments&&e.details?.gist?.comments&&e.details?.gist?.comments?.length?(l(),d("div",MD,[t[141]||(t[141]=n("h3",{class:"paper-section-eyebrow mt-3"},"Comments",-1)),n("ul",VD,[(l(!0),d(W,null,oe(e.details?.gist?.comments,(a,p)=>(l(),d("li",qD,[n("div",LD,[e.options?.username?(l(),d("span",$D,[t[139]||(t[139]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-user"})],-1)),t[140]||(t[140]=h(" @",-1)),n("span",{textContent:u(e.anonymizeGistContent(a?.author))},null,8,UD)])):c("v-if",!0),e.options?.date?(l(),d("span",{key:1,class:"pr-comment-date",textContent:u(e.fmt?.date(a?.updatedDate))},null,8,FD)):c("v-if",!0)]),e.options?.body?(l(),d("div",BD,[De(i,{content:e.anonymizeGistContent(a?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])])):c("v-if",!0)]))),256))])])):c("v-if",!0)])):c("v-if",!0)],8,vD)):c("v-if",!0),e.detectedType==="pr"&&e.details?(l(),d("div",{key:2,id:"workspace-preview",role:e.mobileWorkspace?"tabpanel":null,"aria-labelledby":e.mobileWorkspace?"workspace-preview-tab":null,class:"anonymize-preview-col"},[n("div",HD,[t[142]||(t[142]=n("strong",null,"Pull request preview",-1)),n("button",{type:"button",class:"task-text-button preview-expand",onClick:t[38]||(t[38]=a=>e.previewExpanded=!e.previewExpanded)},u(e.previewExpanded?"Restore split view":"Expand preview"),1)]),e.sourceLoading&&e.previewStatus==="idle"?(l(),d("div",jD,"Loading source\u2026")):c("v-if",!0),e.previewStatus==="loading"?(l(),d("div",GD,"Updating the anonymized preview\u2026")):c("v-if",!0),e.previewStatus==="error"?(l(),d("div",WD,[t[143]||(t[143]=n("p",null,"Unable to generate the anonymized preview. The latest redactions have not been verified.",-1)),n("button",{class:"btn btn-outline-ink",type:"button",onClick:t[39]||(t[39]=a=>e.retryPreview())},"Retry preview")])):c("v-if",!0),e.previewStatus==="ready"?(l(),d("div",KD,[n("div",YD,[n("h2",JD,[e.options?.title?(l(),d("span",QD,u(e.anonymizePrContent(e.details?.pullRequest?.title)),1)):c("v-if",!0),n("span",{class:O(["badge",{"badge-success":e.details?.pullRequest?.merged,"badge-warning":e.details?.pullRequest?.state=="open","badge-danger":e.details?.pullRequest?.state=="closed"&&!e.details?.pullRequest?.merged}])},u(e.fmt?.title(e.details?.pullRequest?.merged?"merged":e.details?.pullRequest?.state)),3)]),e.options?.date?(l(),d("small",{key:0,textContent:u(e.fmt?.date(e.details?.pullRequest?.updatedDate))},null,8,XD)):c("v-if",!0)]),e.options?.origin?(l(),d("small",ZD,"Pull Request on "+u(e.details?.pullRequest?.baseRepositoryFullName),1)):c("v-if",!0),e.options?.body?(l(),d("div",xD,[De(i,{content:e.anonymizePrContent(e.details?.pullRequest?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])])):c("v-if",!0),e.options?.diff||e.options?.comments?(l(),d("nav",eT,[e.options?.diff?(l(),d("button",{key:0,class:O(["paper-tab",{active:e.prTabState?.active=="diff"}]),type:"button",role:"tab",id:"preview-pr-diff-tab","aria-selected":e.prTabState?.active==="diff","aria-controls":"preview-pr-diff-panel",tabindex:e.prTabState?.active==="diff"?0:-1,onKeydown:t[40]||(t[40]=a=>e.previewTabKeydown(a)),onClick:t[41]||(t[41]=a=>e.prTabState.active="diff")},[...t[144]||(t[144]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-code"})],-1),h(" Diff ",-1)])],42,tT)):c("v-if",!0),e.options?.comments?(l(),d("button",{key:1,class:O(["paper-tab",{active:e.prTabState?.active=="comments"}]),type:"button",role:"tab",id:"preview-pr-comments-tab","aria-selected":e.prTabState?.active==="comments","aria-controls":"preview-pr-comments-panel",tabindex:e.prTabState?.active==="comments"?0:-1,onKeydown:t[42]||(t[42]=a=>e.previewTabKeydown(a)),onClick:t[43]||(t[43]=a=>e.prTabState.active="comments")},[t[145]||(t[145]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-comment"})],-1)),n("span",{textContent:u(e.fmt.plural(e.details?.pullRequest?.comments?.length,{0:"No comments",one:"1 comment",other:"{} comments"}))},null,8,oT)],42,nT)):c("v-if",!0)])):c("v-if",!0),!e.options?.diff&&!e.options?.comments?(l(),d("div",sT,"Diff and comments are hidden by your display settings.")):c("v-if",!0),n("div",iT,[e.options?.diff&&e.prTabState?.active=="diff"?(l(),d("div",rT,[n("div",{class:"pr-diff",innerHTML:e.sanitize(e.fmt?.diff(e.anonymizePrContent(e.details?.pullRequest?.diff)))},null,8,aT)])):c("v-if",!0),e.options?.comments&&e.prTabState?.active=="comments"?(l(),d("div",lT,[n("ul",dT,[(l(!0),d(W,null,oe(e.details?.pullRequest?.comments,(a,p)=>(l(),d("li",uT,[n("div",cT,[e.options?.username?(l(),d("span",pT,[t[146]||(t[146]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-user"})],-1)),t[147]||(t[147]=h(" @",-1)),n("span",{textContent:u(e.anonymizePrContent(a?.author))},null,8,fT)])):c("v-if",!0),e.options?.date?(l(),d("span",{key:1,class:"pr-comment-date",textContent:u(e.fmt?.date(a?.updatedDate))},null,8,mT)):c("v-if",!0)]),e.options?.body?(l(),d("div",hT,[De(i,{content:e.anonymizePrContent(a?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])])):c("v-if",!0)]))),256))])])):c("v-if",!0)])])):c("v-if",!0)],8,zD)):c("v-if",!0)])],512),[[Y,e.workspaceOpen||e.isUpdate]])],2)}var vT={class:"container-fluid h-100 anonymize-page"},gT={class:"row h-100 flex-column flex-md-row"},yT={class:"col-md sidePanel shadow overflow-auto anonymize-form-col"},bT={class:"form-group"},wT={class:"form-group"},kT={class:"form-check"},CT={class:"form-check-input",type:"checkbox",id:"update",name:"update"},ET={class:"form-group"},ST={class:"form-text text-muted"},NT=["href"],RT={class:"invalid-feedback"},DT={class:"form-text text-muted"},TT={class:"form-group"},_T={id:"idHelp",class:"form-text text-muted"},AT={class:"invalid-feedback"},OT={class:"form-group"},PT={class:"invalid-feedback"},IT={class:"form-group"},MT={class:"form-control",id:"expiration",name:"expiration"},VT={class:"form-group",id:"expiration-date-form"},qT={class:"form-control",type:"date",name:"expirationDate",id:"expirationDate"},LT={class:"accordion mb-3",id:"options"},$T={class:"card"},UT={id:"collapseOne",class:"collapse show","aria-labelledby":"headingOne","data-parent":"#options"},FT={class:"card-body"},BT={class:"form-group mb-0"},zT={class:"form-check"},HT={class:"form-check-input",type:"checkbox",id:"link",name:"link"},jT={class:"form-check"},GT={class:"form-check-input",type:"checkbox",id:"image",name:"image"},WT={class:"form-check"},KT={class:"form-check-input",type:"checkbox",id:"date",name:"date"},YT={class:"form-check"},JT={class:"form-check-input",type:"checkbox",id:"username",name:"username"},QT={class:"form-check"},XT={class:"form-check-input",type:"checkbox",id:"comments",name:"comments"},ZT={class:"form-check"},xT={class:"form-check-input",type:"checkbox",id:"diff",name:"diff"},e_={class:"form-check"},t_={class:"form-check-input",type:"checkbox",id:"origin",name:"origin"},n_={class:"form-check"},o_={class:"form-check-input",type:"checkbox",id:"title",name:"title"},s_={class:"form-check"},i_={class:"form-check-input",type:"checkbox",id:"body",name:"body"},r_=["textContent"],a_={class:"anonymize-submit-bar"},l_={key:0,class:"col-md-8 p-2 overflow-auto anonymize-preview-col"},d_={class:"d-flex w-100 justify-content-between align-items-center flex-wrap"},u_={class:"pr-title mb-1"},c_={key:0},p_=["textContent"],f_={key:0},m_={key:1,class:"pr-body shadow-sm p-3 mb-4 rounded",style:{background:"var(--sidebar-bg-color)"}},h_={class:"nav nav-tabs",id:"myTab",role:"tablist"},v_={key:0,class:"nav-item",role:"presentation"},g_={key:1,class:"nav-item",role:"presentation"},y_=["textContent"],b_={class:"tab-content",id:"pills-tabContent"},w_={class:"tab-pane show active",id:"pills-diff",role:"tabpanel","aria-labelledby":"pills-diff-tab"},k_={key:0,class:"pr-diff shadow-sm p-3 mb-4 rounded",style:{background:"var(--sidebar-bg-color)"}},C_={style:{"overflow-x":"auto"}},E_=["innerHTML"],S_={key:0,class:"pr-comments list-group"},N_={class:"pr-comment list-group-item"},R_={class:"d-flex w-100 justify-content-between flex-wrap"},D_={key:0,class:"mb-1"},T_=["textContent"],__={class:"mb-1"};function Bl(e,t){let o=We("markdown"),i=we("field"),s=we("form");return l(),d("div",vT,[n("div",gT,[n("div",yT,[n("div",{class:O(["p-0 py-2 m-auto",{card:!e.pullRequestUrl,container:e.pullRequestUrl}])},[T((l(),d("form",{class:O(["form needs-validation",{"card-body":!e.pullRequestUrl}]),name:"anonymizeForm",novalidate:""},[t[30]||(t[30]=me('<div class="paper-crumbs">Anonymize \xA0/\xA0 <span class="here">Pull request</span></div><h1 class="paper-page-title">Anonymize a <em>pull request</em></h1><p class="paper-page-lede"> Fill in the details \u2014 it only takes a minute. </p><div class="paper-section-eyebrow anonymize-section-title"><i class="fab fa-github"></i> Source </div>',4)),c(" pullRequestUrl "),n("div",bT,[t[2]||(t[2]=n("label",{for:"pullRequestUrl"},"URL of your pull request",-1)),T(n("input",{type:"text",class:O(["form-control",{"is-invalid":e.anonymize?.pullRequestUrl?.invalid}]),name:"pullRequestUrl",id:"pullRequestUrl",placeholder:"https://github.com/owner/repo/pull/123"},null,2),[[i,{state:e.viewState,set:r=>{e.pullRequestUrl=r},value:e.pullRequestUrl,form:"anonymizeForm",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"},change:()=>{e.pullRequestSelected()}}]]),T(n("div",{class:"invalid-feedback"},u(e.pullRequestUrl)+" is not accessible. Some organizations are restricting the access to the repositories. ",513),[[Y,e.anonymize?.pullRequestUrl?.errors?.access]]),T(n("div",{class:"invalid-feedback"},u(e.pullRequestUrl)+" does not exist or is not accessible ",513),[[Y,e.anonymize?.pullRequestUrl?.errors?.missing]]),T(n("div",{class:"invalid-feedback"},u(e.pullRequestUrl)+" is already anonymized ",513),[[Y,e.anonymize?.pullRequestUrl?.errors?.used]])]),T(n("div",null,[n("div",wT,[n("div",kT,[T(n("input",CT,null,512),[[i,{state:e.viewState,set:r=>{e.options.update=r},value:e.options?.update,form:"anonymizeForm",options:{}}]]),t[3]||(t[3]=n("label",{class:"form-check-label",for:"update"},"Auto update",-1)),t[4]||(t[4]=n("small",{id:"updateHelp",class:"form-text text-muted"},"Automatically update the anonymized pull request with the latest updates. The pull request is updated once per day maximum.",-1))])]),t[26]||(t[26]=n("div",{class:"paper-section-eyebrow anonymize-section-title"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-conference"})]),h(" Conference ID ")],-1)),c(" Conference "),n("div",ET,[t[5]||(t[5]=n("label",{for:"conference"},[h("Conference ID "),n("span",{class:"text-muted"},"(Optional)")],-1)),T(n("input",{class:O(["form-control",{"is-invalid":e.anonymize?.conference?.invalid}]),id:"conference",name:"conference"},null,2),[[i,{state:e.viewState,set:r=>{e.conference=r},value:e.conference,form:"anonymizeForm",options:{debounce:{default:800,blur:0},updateOn:"default blur"}}]]),T(n("small",ST,[n("a",{target:"_target",href:e.safeUrl(e.conference_data?.url)},u(e.conference_data?.name),9,NT),h(" will expire on "+u(e.fmt?.date(e.conference_data?.endDate))+".",1)],512),[[Y,e.conference_data]]),T(n("div",RT," The conference is not activated. ",512),[[Y,e.anonymize?.conference?.errors?.activated]]),T(n("small",DT," Use the Conference ID that your conference provided you. This will update automatically the anonymization options based on the conference preferences. ",512),[[Y,!e.conference_data]])]),t[27]||(t[27]=n("div",{class:"paper-section-eyebrow anonymize-section-title"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})]),h(" Anonymization Options ")],-1)),c(" Pull Request ID "),n("div",TT,[t[6]||(t[6]=n("label",{for:"pullRequestId"},"Anonymized pull request id",-1)),T(n("input",{type:"text",class:O(["form-control",{"is-invalid":e.anonymize?.pullRequestId?.invalid}]),name:"pullRequestId",id:"pullRequestId"},null,2),[[i,{state:e.viewState,set:r=>{e.pullRequestId=r},value:e.pullRequestId,form:"anonymizeForm",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"}}]]),n("small",_T,"Id used in the url: https://anonymous.4open.science/r/"+u(e.pullRequestId),1),T(n("div",AT," Repository id can only contain letters and numbers ",512),[[Y,e.anonymize?.pullRequestId?.errors?.format]]),T(n("div",{class:"invalid-feedback"},u(e.pullRequestId)+" is already used ",513),[[Y,e.anonymize?.pullRequestId?.errors?.used]])]),c(" Terms "),n("div",OT,[t[7]||(t[7]=n("label",{for:"terms"},"Terms to anonymize",-1)),T(n("textarea",{class:O(["form-control",{"is-invalid":e.anonymize?.terms?.invalid}]),id:"terms",name:"terms",rows:"3"},null,2),[[i,{state:e.viewState,set:r=>{e.terms=r},value:e.terms,form:"anonymizeForm",options:{debounce:250}}]]),t[8]||(t[8]=n("small",{id:"termsHelp",class:"form-text text-muted"},"One term per line. Each term will be replaced by XXX.",-1)),T(n("div",PT," Terms are in an invalid format ",512),[[Y,e.anonymize?.terms?.errors?.format]])]),n("div",IT,[t[10]||(t[10]=n("label",{for:"expiration"},"Expiration strategy",-1)),T((l(),d("select",MT,[...t[9]||(t[9]=[n("option",{value:"never",selected:""},"Never expire",-1),n("option",{value:"redirect"}," Redirect to GitHub when expired ",-1),n("option",{value:"remove"},"Remove when expired",-1)])])),[[i,{state:e.viewState,set:r=>{e.options.expirationMode=r},value:e.options?.expirationMode,form:"anonymizeForm",options:{}}]]),t[11]||(t[11]=n("small",{class:"form-text text-muted"},"Define the expiration strategy for the anonymized repository.",-1))]),T(n("div",VT,[t[12]||(t[12]=n("label",{for:"expirationDate"},"Expiration date of the anonymized repository",-1)),T(n("input",qT,null,512),[[i,{state:e.viewState,set:r=>{e.options.expirationDate=r},value:e.options?.expirationDate,form:"anonymizeForm",options:{}}]]),T(n("small",{class:"form-text text-muted"},"After "+u(e.fmt?.date(e.options?.expirationDate))+", the repository will be removed and the visitor will not be able to see the content of the repository.",513),[[Y,e.options?.expirationMode=="remove"]]),T(n("small",{class:"form-text text-muted"},"After "+u(e.fmt?.date(e.options?.expirationDate))+", the visitors of the anonymized repository will be redirected to "+u(e.pullRequestUrl)+".",513),[[Y,e.options?.expirationMode=="redirect"]])],512),[[Y,e.options?.expirationMode!="never"]]),n("div",LT,[n("div",$T,[t[25]||(t[25]=me('<div class="card-header" id="headingOne"><h2 class="mb-0"><button class="btn btn-block text-left" type="button" data-toggle="collapse" data-target="#collapseOne" aria-expanded="true" aria-controls="collapseOne"><svg class="ui-icon mr-1" aria-hidden="true"><use href="#project-icon-filter"></use></svg> Advanced options </button></h2></div>',1)),n("div",UT,[n("div",FT,[n("div",BT,[n("div",zT,[T(n("input",HT,null,512),[[i,{state:e.viewState,set:r=>{e.options.link=r},value:e.options?.link,form:"anonymizeForm",options:{}}]]),t[13]||(t[13]=n("label",{class:"form-check-label",for:"link"},"Keep links",-1)),t[14]||(t[14]=n("small",{class:"form-text text-muted"},"Keep or remove all the links.",-1))]),n("div",jT,[T(n("input",GT,null,512),[[i,{state:e.viewState,set:r=>{e.options.image=r},value:e.options?.image,form:"anonymizeForm",options:{}}]]),t[15]||(t[15]=n("label",{class:"form-check-label",for:"image"},"Display images",-1)),t[16]||(t[16]=n("small",{class:"form-text text-muted"},"Images are not anonymized",-1))]),n("div",WT,[T(n("input",KT,null,512),[[i,{state:e.viewState,set:r=>{e.options.date=r},value:e.options?.date,form:"anonymizeForm",options:{}}]]),t[17]||(t[17]=n("label",{class:"form-check-label",for:"date"},"Display dates",-1)),t[18]||(t[18]=n("small",{class:"form-text text-muted"},"Display the date of the Pull Request and the date of the comments.",-1))]),n("div",YT,[T(n("input",JT,null,512),[[i,{state:e.viewState,set:r=>{e.options.username=r},value:e.options?.username,form:"anonymizeForm",options:{}}]]),t[19]||(t[19]=n("label",{class:"form-check-label",for:"username"},"Display username",-1))]),n("div",QT,[T(n("input",XT,null,512),[[i,{state:e.viewState,set:r=>{e.options.comments=r},value:e.options?.comments,form:"anonymizeForm",options:{}}]]),t[20]||(t[20]=n("label",{class:"form-check-label",for:"comments"},"Display comments",-1))]),n("div",ZT,[T(n("input",xT,null,512),[[i,{state:e.viewState,set:r=>{e.options.diff=r},value:e.options?.diff,form:"anonymizeForm",options:{}}]]),t[21]||(t[21]=n("label",{class:"form-check-label",for:"diff"},"Display diff",-1))]),n("div",e_,[T(n("input",t_,null,512),[[i,{state:e.viewState,set:r=>{e.options.origin=r},value:e.options?.origin,form:"anonymizeForm",options:{}}]]),t[22]||(t[22]=n("label",{class:"form-check-label",for:"origin"},"Display the project name",-1))]),n("div",n_,[T(n("input",o_,null,512),[[i,{state:e.viewState,set:r=>{e.options.title=r},value:e.options?.title,form:"anonymizeForm",options:{}}]]),t[23]||(t[23]=n("label",{class:"form-check-label",for:"title"},"Display the PR title",-1))]),n("div",s_,[T(n("input",i_,null,512),[[i,{state:e.viewState,set:r=>{e.options.body=r},value:e.options?.body,form:"anonymizeForm",options:{}}]]),t[24]||(t[24]=n("label",{class:"form-check-label",for:"body"},"Display the PR body and comment bodies",-1))])])])])])])],512),[[Y,e.pullRequestUrl]]),e.error?(l(),d("div",{key:0,class:"alert alert-danger",role:"alert",textContent:u(e.error)},null,8,r_)):c("v-if",!0),T(n("div",a_,[e.isUpdate?c("v-if",!0):(l(),d("button",{key:0,id:"submit",type:"submit",class:"btn btn-ink btn-block",onClick:t[0]||(t[0]=ae(r=>e.submitForm(r,()=>{e.anonymizePullRequest(r)}),["prevent"]))},[...t[28]||(t[28]=[n("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})],-1),h(" Anonymize ",-1)])])),e.isUpdate?(l(),d("button",{key:1,id:"submit",type:"submit",class:"btn btn-ink btn-block",onClick:t[1]||(t[1]=ae(r=>e.submitForm(r,()=>{e.updatePullRequest(r)}),["prevent"]))},[...t[29]||(t[29]=[n("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-save"})],-1),h(" Update ",-1)])])):c("v-if",!0)],512),[[Y,e.pullRequestUrl]])],2)),[[s,e.viewState]])],2)]),e.details?(l(),d("div",l_,[n("div",d_,[n("h2",u_,[e.options?.title?(l(),d("span",c_,u(e.anonymize(e.details?.pullRequest?.title)),1)):c("v-if",!0),n("span",{class:O(["badge",{"badge-success":e.details?.pullRequest?.merged,"badge-warning":e.details?.pullRequest?.state=="open","badge-danger":e.details?.pullRequest?.state=="closed"&&!e.details?.pullRequest?.merged}])},u(e.fmt?.title(e.details?.pullRequest?.merged?"merged":e.details?.pullRequest?.state)),3)]),e.options?.date?(l(),d("small",{key:0,textContent:u(e.fmt?.date(e.details?.pullRequest?.updatedDate))},null,8,p_)):c("v-if",!0)]),e.options?.origin?(l(),d("small",f_,"Pull Request on "+u(e.details?.pullRequest?.baseRepositoryFullName),1)):c("v-if",!0),e.options?.body?(l(),d("div",m_,[De(o,{content:e.anonymize(e.details?.pullRequest?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])])):c("v-if",!0),n("ul",h_,[e.options?.diff?(l(),d("li",v_,[...t[31]||(t[31]=[n("button",{class:"nav-link active",id:"pills-diff-tab","data-toggle":"pill","data-target":"#pills-diff",type:"button",role:"tab","aria-controls":"pills-diff","aria-selected":"true"}," Diff ",-1)])])):c("v-if",!0),e.options?.comments?(l(),d("li",g_,[n("button",{class:O(["nav-link",{active:!e.options?.diff}]),id:"pills-comments-tab","data-toggle":"pill","data-target":"#pills-comments",type:"button",role:"tab","aria-controls":"pills-comments","aria-selected":"false"},[n("span",{textContent:u(e.fmt.plural(e.details?.pullRequest?.comments?.length,{0:"No comment",one:"One Comment",other:"{} Comments"}))},null,8,y_)],2)])):c("v-if",!0)]),n("div",b_,[n("div",w_,[e.options?.diff?(l(),d("div",k_,[n("pre",C_,[n("code",{innerHTML:e.sanitize(e.fmt?.diff(e.anonymize(e.details?.pullRequest?.diff)))},null,8,E_)])])):c("v-if",!0)]),n("div",{class:O(["tab-pane",{"show active":!e.options?.diff}]),id:"pills-comments",role:"tabpanel","aria-labelledby":"pills-comments-tab"},[e.options?.comments?(l(),d("ul",S_,[(l(!0),d(W,null,oe(e.details?.pullRequest?.comments,(r,a)=>(l(),d("li",N_,[n("div",R_,[e.options?.username?(l(),d("h5",D_," @"+u(e.anonymize(r?.author)),1)):c("v-if",!0),e.options?.date?(l(),d("small",{key:1,textContent:u(e.fmt?.date(r?.updatedDate))},null,8,T_)):c("v-if",!0)]),n("p",__,[e.options?.body?(l(),Bt(o,{key:0,class:"pr-comment-body",content:e.anonymize(r?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])):c("v-if",!0)])]))),256))])):c("v-if",!0)],2)])])):c("v-if",!0)])])}var A_={class:"container paper-page claim-page"},O_={class:"paper-settings-main claim-form"},P_={class:"form-group"},I_={class:"invalid-feedback"},M_={class:"form-group"};function zl(e,t){let o=we("field"),i=we("form");return l(),d("div",A_,[t[6]||(t[6]=me('<div class="paper-crumbs"><a href="/dashboard">My work</a> \xA0/\xA0 <span class="here">Claim</span></div><h1 class="paper-page-title">Claim an <em>anonymization</em></h1><p class="paper-page-lede"> Take ownership of an existing anonymized repository so it appears on your dashboard. </p>',3)),n("div",O_,[t[5]||(t[5]=n("p",{class:"paper-section-copy"},"Use this when an anonymization was created by a co-author or from another account. You must have access to the GitHub repository it was made from.",-1)),T((l(),d("form",{class:"form needs-validation",name:"claimForm",novalidate:"",onSubmit:t[0]||(t[0]=ae(s=>e.submitForm(s,()=>{e.claim()}),["prevent"]))},[n("div",P_,[t[1]||(t[1]=n("label",{class:"paper-field-label",for:"repoUrl"},"GitHub repository URL",-1)),T(n("input",{type:"text",class:O(["form-control",{"is-invalid":e.claimForm?.repoUrl?.invalid&&(e.claimForm?.repoUrl?.touched||e.claimForm?.submitted)}]),name:"repoUrl",id:"repoUrl",placeholder:"https://github.com/owner/repository",required:""},null,2),[[o,{state:e.viewState,set:s=>{e.repoUrl=s},value:e.repoUrl,form:"claimForm",options:{}}]]),T(n("div",I_," No anonymization matches this repository and ID. Check both values and that you can access the repository on GitHub. ",512),[[Y,e.claimForm?.repoUrl?.errors?.not_found]])]),n("div",M_,[t[2]||(t[2]=n("label",{class:"paper-field-label",for:"repoId"},"Anonymized repository ID",-1)),T(n("input",{type:"text",class:O(["form-control",{"is-invalid":e.claimForm?.repoId?.invalid&&(e.claimForm?.repoId?.touched||e.claimForm?.submitted)}]),name:"repoId",id:"repoId",placeholder:"e.g. my-paper-7F2A","aria-describedby":"idHelp",required:""},null,2),[[o,{state:e.viewState,set:s=>{e.repoId=s},value:e.repoId,form:"claimForm",options:{}}]]),t[3]||(t[3]=n("small",{id:"idHelp",class:"form-text text-muted"},[h("The ID is the last part of the anonymized URL: "),n("code",null,"anonymous.4open.science/r/<ID>"),h(".")],-1))]),t[4]||(t[4]=n("button",{id:"submit",type:"submit",class:"btn btn-ink"}," Claim anonymization ",-1))],32)),[[i,e.viewState]])])])}var V_={class:"container page paper-page conference-page"},q_={class:"paper-crumbs"},L_={class:"here"},$_={class:"d-flex align-items-end flex-wrap",style:{gap:"12px","justify-content":"space-between"}},U_=["textContent"],F_={key:0,class:"paper-page-lede"},B_=["textContent","href"],z_={class:"d-flex align-items-center flex-wrap",style:{gap:"10px"}},H_=["textContent"],j_=["href"],G_={class:"paper-meta-rule"},W_=["textContent"],K_=["textContent"],Y_={key:0},J_={key:0,class:"conference-payment-status",role:"status"},Q_=["disabled"],X_={key:1,role:"alert"},Z_={key:2,class:"paper-settings-section","aria-labelledby":"conference-payment-heading"},x_={key:0,role:"status"},e4={key:1,role:"alert"},t4=["disabled"],n4={class:"search-wrap"},o4={type:"search",id:"search",class:"form-control","aria-label":"Search repositories",placeholder:"Search by ID or source repository\u2026",autocomplete:"off"},s4={class:"dashboard-filter-controls"},i4={class:"dropdown"},r4={class:"btn dropdown-toggle",type:"button",id:"dropdownSort","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},a4={class:"filter-btn-value"},l4={class:"dropdown-menu","aria-labelledby":"dropdownSort"},d4={class:"form-check dropdown-item"},u4={class:"form-check-input",type:"radio",name:"sort",id:"anonymizeDate",value:"-anonymizeDate"},c4={class:"form-check dropdown-item"},p4={class:"form-check-input",type:"radio",name:"sort",id:"sortID",value:"repoId"},f4={class:"form-check dropdown-item"},m4={class:"form-check-input",type:"radio",name:"sort",id:"sortStatus",value:"-status"},h4={class:"form-check dropdown-item"},v4={class:"form-check-input",type:"radio",name:"sort",id:"sortViews",value:"-pageView"},g4={class:"dropdown"},y4={class:"btn dropdown-toggle",type:"button",id:"dropdownStatus","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},b4={key:0,class:"filter-btn-value"},w4={key:1,class:"filter-btn-value"},k4={class:"dropdown-menu","aria-labelledby":"dropdownStatus"},C4={class:"form-check dropdown-item"},E4=["id"],S4=["for"],N4={class:"dashboard-meta"},R4={class:"dashboard-count"},D4={key:0},T4={key:0},_4={key:1},A4={key:1},O4={key:0,class:"filter-chip"},P4=["onClick","aria-label"],I4={class:"paper-table paper-table-repos w-100",role:"table","aria-label":"Repositories"},M4={class:"cell-anon",role:"cell"},V4={class:"anon-text"},q4=["textContent","href"],L4={class:"anon-sub"},$4={class:"anon-source"},U4=["textContent","href"],F4={key:0},B4=["textContent","href"],z4={key:1},H4=["href"],j4={class:"cell-status",role:"cell"},G4={class:"status-line"},W4=["textContent"],K4={key:0,class:"status-sub"},Y4={class:"cell-views num",role:"cell"},J4=["textContent"],Q4={class:"cell-expires",role:"cell"},X4={key:0,class:"expires-never"},Z4=["textContent"],x4={key:2,class:"expires-past"},eA={key:0},tA={key:3,class:"empty-dash","aria-label":"Not applicable"},nA={class:"cell-actions",role:"cell"},oA={class:"dropdown"},sA=["aria-label"],iA={class:"dropdown-menu dropdown-menu-right"},rA=["href"],aA=["href"],lA={key:0,class:"paper-table-empty"},dA={key:0},uA={key:1},cA={key:2,class:"paper-table-empty-actions"};function Hl(e,t){let o=we("field"),i=we("form");return l(),d("div",V_,[n("div",null,[n("div",q_,[t[4]||(t[4]=n("a",{href:"/dashboard"},"My work",-1)),t[5]||(t[5]=h(" \xA0/\xA0 ",-1)),t[6]||(t[6]=n("a",{href:"/conferences"},"Conferences",-1)),t[7]||(t[7]=h(" \xA0/\xA0 ",-1)),n("span",L_,u(e.conference?.conferenceID),1)]),n("div",$_,[n("div",null,[n("h1",{class:"paper-page-title",textContent:u(e.conference?.name)},null,8,U_),e.conference?.url?(l(),d("p",F_,[n("a",{target:"_blank",rel:"noopener",textContent:u(e.conference?.url),href:e.safeUrl(e.conference?.url)},null,8,B_)])):c("v-if",!0)]),n("div",z_,[n("span",{class:O(["status-pill",{"status-pill-ready":e.conference?.status=="ready","status-pill-removed":e.conference?.status=="removed"||e.conference?.status=="expired"}])},[n("span",{class:O(["status-dot","status-"+e.conference?.status]),"aria-hidden":"true"},null,2),n("span",{textContent:u(e.fmt?.statusLabel(e.conference?.status))},null,8,H_)],2),n("a",{class:"btn btn-outline-ink",href:e.safeUrl("/conference/"+e.conference?.conferenceID+"/edit")},[...t[8]||(t[8]=[n("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),h(" Edit conference",-1)])],8,j_)])]),n("div",G_,[n("span",null,[t[9]||(t[9]=h("ID ",-1)),n("b",{class:"commit-hash",textContent:u(e.conference?.conferenceID)},null,8,W_)]),n("span",null,[t[10]||(t[10]=h("Review window ",-1)),n("b",null,u(e.fmt?.date(e.conference?.startDate,"mediumDate"))+" \u2013 "+u(e.fmt?.date(e.conference?.endDate,"mediumDate")),1)]),n("span",null,[t[11]||(t[11]=h("Repositories ",-1)),n("b",null,u(e.fmt?.number(e.conference?.repositories?.length)),1)]),n("span",null,[t[12]||(t[12]=h("Plan ",-1)),n("b",{textContent:u(e.conference?.plan?.name||e.conference?.plan?.planID||"Free")},null,8,K_)]),e.conference?.price?(l(),d("span",Y_,[t[13]||(t[13]=h("Cost so far ",-1)),n("b",null,u(e.fmt?.number(e.conference?.price,2))+" \u20AC",1)])):c("v-if",!0)]),e.billingNotice?(l(),d("div",J_,[n("p",null,u(e.billingNotice),1),n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[0]||(t[0]=s=>e.refreshBilling()),disabled:e.billingBusy},"Check payment status",8,Q_)])):c("v-if",!0),e.billingError&&e.conference?.status!=="pending_payment"?(l(),d("p",X_,u(e.billingError),1)):c("v-if",!0),e.conference?.status==="pending_payment"?(l(),d("section",Z_,[t[14]||(t[14]=n("h2",{id:"conference-payment-heading"},"Activate your review package",-1)),t[15]||(t[15]=n("p",null,"This conference is waiting for payment. Authors can join after payment is confirmed. Checkout returns to this conference. Authors within the package do not pay separately.",-1)),e.billingLoading?(l(),d("p",x_,"Loading payment options\u2026")):c("v-if",!0),e.billingError?(l(),d("p",e4,u(e.billingError),1)):c("v-if",!0),(l(!0),d(W,null,oe((e.billing?.plans||[]).filter(s=>s.id==="conference"),s=>(l(),d("div",{key:s.id},[n("p",null,u(e.billingPrice(s))+" for up to "+u(s.repositories)+" repositories and "+u(e.billingBytes(s.storage))+" of source files during the review window. Taxes, if applicable, appear at checkout.",1),n("button",{type:"button",class:"btn btn-primary",onClick:t[1]||(t[1]=r=>e.checkout("conference",e.conference.conferenceID)),disabled:e.billingBusy||e.billingPending||e.billing?.checkoutEnabled===!1},u(e.billingBusy?"Please wait\u2026":"Pay for review package"),9,t4)]))),128)),t[16]||(t[16]=n("p",null,[n("a",{href:"/profile#settings-billing"},"Manage invoices")],-1))])):c("v-if",!0),t[37]||(t[37]=n("div",{class:"paper-section-eyebrow"},"Repositories",-1)),T((l(),d("form",{class:"w-100 dashboard-filter-row","aria-label":"Filter repositories","accept-charset":"UTF-8",onSubmit:t[2]||(t[2]=ae(s=>e.submitForm(s,()=>{s.preventDefault()}),["prevent"]))},[n("div",n4,[T(n("input",o4,null,512),[[o,{state:e.viewState,set:s=>{e.search=s},value:e.search,form:null,options:{}}]])]),n("div",s4,[n("div",i4,[n("button",r4,[t[17]||(t[17]=n("span",{class:"filter-btn-label"},"Sort",-1)),n("span",a4,u({"-anonymizeDate":"Anonymize date",repoId:"ID","-status":"Status","-pageView":"Views"}[e.orderBy]||"Custom"),1)]),n("div",l4,[t[22]||(t[22]=n("h6",{class:"dropdown-header"},"Order by",-1)),n("div",d4,[T(n("input",u4,null,512),[[o,{state:e.viewState,set:s=>{e.orderBy=s},value:e.orderBy,form:null,options:{}}]]),t[18]||(t[18]=n("label",{class:"form-check-label",for:"anonymizeDate"},"Anonymize date",-1))]),n("div",c4,[T(n("input",p4,null,512),[[o,{state:e.viewState,set:s=>{e.orderBy=s},value:e.orderBy,form:null,options:{}}]]),t[19]||(t[19]=n("label",{class:"form-check-label",for:"sortID"},"ID",-1))]),n("div",f4,[T(n("input",m4,null,512),[[o,{state:e.viewState,set:s=>{e.orderBy=s},value:e.orderBy,form:null,options:{}}]]),t[20]||(t[20]=n("label",{class:"form-check-label",for:"sortStatus"},"Status",-1))]),n("div",h4,[T(n("input",v4,null,512),[[o,{state:e.viewState,set:s=>{e.orderBy=s},value:e.orderBy,form:null,options:{}}]]),t[21]||(t[21]=n("label",{class:"form-check-label",for:"sortViews"},"Views",-1))])])]),n("div",g4,[n("button",y4,[t[23]||(t[23]=n("span",{class:"filter-btn-label"},"Status",-1)),e.filters?.status?.ready&&e.filters?.status?.expired&&e.filters?.status?.removed?(l(),d("span",b4,"All")):c("v-if",!0),e.filters?.status?.ready&&e.filters?.status?.expired&&e.filters?.status?.removed?c("v-if",!0):(l(),d("span",w4,u((e.filters?.status?.ready?0:1)+(e.filters?.status?.expired?0:1)+(e.filters?.status?.removed?0:1))+" hidden ",1))]),n("div",k4,[t[24]||(t[24]=n("h6",{class:"dropdown-header"},"Show statuses",-1)),(l(!0),d(W,null,oe(e.statusLabels,(s,r,a)=>(l(),d("div",C4,[T(n("input",{class:"form-check-input",type:"checkbox",id:"status-"+r},null,8,E4),[[o,{state:e.viewState,set:p=>{e.filters.status[r]=p},value:e.filters?.status[r],form:null,options:{}}]]),n("label",{class:"form-check-label",for:"status-"+r},u(s),9,S4)]))),256))])])])],32)),[[i,e.viewState]]),n("div",N4,[n("span",R4,[e.filteredRepositories?.length===e.conference?.repositories?.length?(l(),d("span",D4,[h(u(e.fmt?.number(e.conference?.repositories?.length))+" repositor",1),e.conference?.repositories?.length===1?(l(),d("span",T4,"y")):c("v-if",!0),e.conference?.repositories?.length!==1?(l(),d("span",_4,"ies")):c("v-if",!0)])):c("v-if",!0),e.filteredRepositories?.length!==e.conference?.repositories?.length?(l(),d("span",A4,u(e.fmt?.number(e.filteredRepositories?.length))+" of "+u(e.fmt?.number(e.conference?.repositories?.length))+" shown",1)):c("v-if",!0)]),(l(!0),d(W,null,oe(e.filters?.status,(s,r,a)=>(l(),d(W,null,[s===!1?(l(),d("span",O4,[h(" Hiding "+u(e.statusLabels[r])+" ",1),n("button",{type:"button",class:"filter-chip-close",onClick:p=>{e.filters.status[r]=!0},"aria-label":"Show "+e.statusLabels[r]+" again"},"\xD7",8,P4)])):c("v-if",!0)],64))),256))]),n("div",I4,[t[36]||(t[36]=n("div",{class:"paper-table-head",role:"row"},[n("div",{role:"columnheader"},"Repository"),n("div",{role:"columnheader"},"Status"),n("div",{role:"columnheader",class:"num"},"Views"),n("div",{role:"columnheader"},"Expires"),n("div",{role:"columnheader"},[n("span",{class:"sr-only"},"Actions")])],-1)),(l(!0),d(W,null,oe(e.filteredRepositories,(s,r)=>(l(),d("div",{class:O(["paper-table-row",{"repo-inactive":s?.status=="expired"||s?.status=="removed","repo-error":s?.status=="error"}]),role:"row",key:s?.repoId},[n("div",M4,[t[27]||(t[27]=n("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Repository"},[n("use",{href:"#project-type-repo"})],-1)),n("div",V4,[n("a",{class:"repo-name",textContent:u(s?.repoId),href:e.safeUrl("/r/"+s?.repoId+"/")},null,8,q4),n("div",L4,[n("span",$4,[n("a",{target:"_blank",rel:"noopener",textContent:u(s?.source?.fullName),href:e.safeUrl("https://github.com/"+s?.source?.fullName+"/")},null,8,U4),s?.options?.update&&s?.source?.branch?(l(),d("span",F4,[t[25]||(t[25]=h(" \xB7 ",-1)),n("a",{target:"_blank",rel:"noopener",textContent:u(s?.source?.branch),href:e.safeUrl("https://github.com/"+s?.source?.fullName+"/tree/"+s?.source?.branch)},null,8,B4)])):c("v-if",!0),s?.source?.commit?(l(),d("span",z4,[t[26]||(t[26]=h(" \xB7 ",-1)),n("a",{class:"commit-hash",target:"_blank",rel:"noopener",href:e.safeUrl("https://github.com/"+s?.source?.fullName+"/tree/"+s?.source?.commit)},"@"+u(s?.source?.commit?.substring(0,8)),9,H4)])):c("v-if",!0)])])])]),n("div",j4,[n("div",G4,[n("span",{class:O(["status-dot","status-"+(s?.status=="error"?"error":s?.status=="ready"?"ready":s?.status=="expired"||s?.status=="removed"?s?.status:"progress")]),"aria-hidden":"true"},null,2),n("span",{class:"status-word",textContent:u(e.fmt?.statusLabel(s?.status))},null,8,W4)]),s?.anonymizeDate?(l(),d("div",K4,"anonymized "+u(e.fmt?.humanTime(s?.anonymizeDate)),1)):c("v-if",!0)]),n("div",Y4,[t[28]||(t[28]=n("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1)),t[29]||(t[29]=h()),n("span",{textContent:u(e.fmt?.number(s?.pageView))},null,8,J4)]),n("div",Q4,[t[31]||(t[31]=n("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),s?.status=="ready"&&(s?.options?.expirationMode==="never"||!s?.options?.expirationDate)?(l(),d("span",X4,"Never")):c("v-if",!0),s?.status=="ready"&&s?.options?.expirationMode!=="never"&&s?.options?.expirationDate?(l(),d("span",{key:1,textContent:u(e.fmt?.humanTime(s?.options?.expirationDate))},null,8,Z4)):c("v-if",!0),s?.status=="expired"?(l(),d("span",x4,[t[30]||(t[30]=h("Expired",-1)),s?.options?.expirationDate?(l(),d("span",eA,u(e.fmt?.humanTime(s?.options?.expirationDate)),1)):c("v-if",!0)])):c("v-if",!0),s?.status!="ready"&&s?.status!="expired"?(l(),d("span",tA,"\u2014")):c("v-if",!0)]),n("div",nA,[n("div",oA,[n("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions for "+s?.repoId},[...t[32]||(t[32]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-more"})],-1)])],8,sA),n("div",iA,[n("a",{class:"dropdown-item",href:e.safeUrl("/r/"+s?.repoId+"/")},[...t[33]||(t[33]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1),h(" View ",-1)])],8,rA),n("a",{class:"dropdown-item",href:e.safeUrl("/anonymize/"+s?.repoId)},[...t[34]||(t[34]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),h(" Edit ",-1)])],8,aA)])])])],2))),128)),e.filteredRepositories?.length==0?(l(),d("div",lA,[t[35]||(t[35]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-inbox"})],-1)),e.conference?.repositories?.length?c("v-if",!0):(l(),d("span",dA,"No repository has been submitted to this conference yet.")),e.conference?.repositories?.length?(l(),d("span",uA,"Nothing matches the current filters.")):c("v-if",!0),e.conference?.repositories?.length?(l(),d("div",cA,[n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[3]||(t[3]=s=>{e.search="",e.filters.status.ready=!0,e.filters.status.expired=!0,e.filters.status.removed=!0})},"Clear filters")])):c("v-if",!0)])):c("v-if",!0)])])])}var pA={class:"container page paper-page conferences-page"},fA={class:"row"},mA={class:"w-100"},hA={class:"search-wrap"},vA={type:"search",id:"search",class:"form-control","aria-label":"Search conferences",placeholder:"Search by name or ID\u2026",autocomplete:"off"},gA={class:"dashboard-filter-controls"},yA={class:"dropdown"},bA={class:"btn dropdown-toggle",type:"button",id:"dropdownSort","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},wA={class:"filter-btn-value"},kA={class:"dropdown-menu","aria-labelledby":"dropdownSort"},CA={class:"form-check dropdown-item"},EA={class:"form-check-input",type:"radio",name:"sort",id:"sortName",value:"name"},SA={class:"form-check dropdown-item"},NA={class:"form-check-input",type:"radio",name:"sort",id:"sortID",value:"conferenceID"},RA={class:"form-check dropdown-item"},DA={class:"form-check-input",type:"radio",name:"sort",id:"sortStatus",value:"-status"},TA={class:"dropdown"},_A={class:"btn dropdown-toggle",type:"button",id:"dropdownStatus","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},AA={key:0,class:"filter-btn-value"},OA={key:1,class:"filter-btn-value"},PA={class:"dropdown-menu","aria-labelledby":"dropdownStatus"},IA={class:"form-check dropdown-item"},MA=["id"],VA=["for"],qA={key:1,class:"dashboard-meta"},LA={class:"dashboard-count"},$A={key:0},UA={key:0},FA={key:1},BA={key:0,class:"filter-chip"},zA=["onClick","aria-label"],HA={key:0,class:"conference-feedback",role:"alert"},jA={key:1,class:"conference-feedback",role:"status"},GA={class:"paper-table paper-table-conferences w-100",role:"table","aria-label":"Conferences"},WA={class:"cell-anon",role:"cell"},KA={class:"anon-text"},YA=["textContent","href"],JA={class:"anon-sub"},QA={class:"anon-source"},XA=["textContent"],ZA={key:0},xA=["textContent","href"],e3={class:"cell-status",role:"cell"},t3={class:"status-line"},n3=["textContent"],o3={class:"cell-views num",role:"cell"},s3=["textContent"],i3={class:"cell-expires",role:"cell"},r3={key:0},a3={key:1,class:"empty-dash","aria-label":"No review window"},l3={class:"cell-actions",role:"cell"},d3={class:"dropdown"},u3=["disabled","aria-label"],c3={class:"dropdown-menu dropdown-menu-right"},p3=["href"],f3=["href"],m3={key:0},h3=["onClick"],v3={key:0,class:"paper-table-empty"},g3={key:1},y3={class:"paper-table-empty-actions"};function jl(e,t){let o=we("field"),i=we("form");return l(),d("div",pA,[n("div",fA,[n("div",mA,[t[10]||(t[10]=me('<div class="paper-crumbs"><a href="/dashboard">My work</a> \xA0/\xA0 <span class="here">Conferences</span></div><div class="d-flex align-items-start justify-content-between flex-wrap page-head-row" style="gap:12px;"><div><h1 class="paper-page-title">Your <em>conferences</em></h1><p class="paper-page-lede">Group anonymizations by venue, give chairs a shared dashboard, and set one expiry for every submission.</p></div><a href="/conference/new" class="btn btn-primary"><svg class="ui-icon mr-1" aria-hidden="true"><use href="#project-icon-plus"></use></svg> New conference </a></div>',2)),e.conferences?.length>0?T((l(),d("form",{key:0,class:"w-100 dashboard-filter-row","aria-label":"Filter conferences","accept-charset":"UTF-8",onSubmit:t[0]||(t[0]=ae(s=>e.submitForm(s,()=>{s.preventDefault()}),["prevent"]))},[n("div",hA,[T(n("input",vA,null,512),[[o,{state:e.viewState,set:s=>{e.search=s},value:e.search,form:null,options:{}}]])]),n("div",gA,[n("div",yA,[n("button",bA,[t[3]||(t[3]=n("span",{class:"filter-btn-label"},"Sort",-1)),n("span",wA,u({name:"Name",conferenceID:"ID","-status":"Status"}[e.orderBy]||"Custom"),1)]),n("div",kA,[t[7]||(t[7]=n("h6",{class:"dropdown-header"},"Order by",-1)),n("div",CA,[T(n("input",EA,null,512),[[o,{state:e.viewState,set:s=>{e.orderBy=s},value:e.orderBy,form:null,options:{}}]]),t[4]||(t[4]=n("label",{class:"form-check-label",for:"sortName"},"Name",-1))]),n("div",SA,[T(n("input",NA,null,512),[[o,{state:e.viewState,set:s=>{e.orderBy=s},value:e.orderBy,form:null,options:{}}]]),t[5]||(t[5]=n("label",{class:"form-check-label",for:"sortID"},"ID",-1))]),n("div",RA,[T(n("input",DA,null,512),[[o,{state:e.viewState,set:s=>{e.orderBy=s},value:e.orderBy,form:null,options:{}}]]),t[6]||(t[6]=n("label",{class:"form-check-label",for:"sortStatus"},"Status",-1))])])]),n("div",TA,[n("button",_A,[t[8]||(t[8]=n("span",{class:"filter-btn-label"},"Status",-1)),e.filters?.status?.ready&&e.filters?.status?.expired&&e.filters?.status?.removed?(l(),d("span",AA,"All")):c("v-if",!0),e.filters?.status?.ready&&e.filters?.status?.expired&&e.filters?.status?.removed?c("v-if",!0):(l(),d("span",OA,u((e.filters?.status?.ready?0:1)+(e.filters?.status?.expired?0:1)+(e.filters?.status?.removed?0:1))+" hidden ",1))]),n("div",PA,[t[9]||(t[9]=n("h6",{class:"dropdown-header"},"Show statuses",-1)),(l(!0),d(W,null,oe(e.statusLabels,(s,r,a)=>(l(),d("div",IA,[T(n("input",{class:"form-check-input",type:"checkbox",id:"status-"+r},null,8,MA),[[o,{state:e.viewState,set:p=>{e.filters.status[r]=p},value:e.filters?.status[r],form:null,options:{}}]]),n("label",{class:"form-check-label",for:"status-"+r},u(s),9,VA)]))),256))])])])],32)),[[i,e.viewState]]):c("v-if",!0),e.conferences?.length>0?(l(),d("div",qA,[n("span",LA,[e.filteredConferences?.length===e.conferences?.length?(l(),d("span",$A,[h(u(e.fmt?.number(e.conferences?.length))+" conference",1),e.conferences?.length!==1?(l(),d("span",UA,"s")):c("v-if",!0)])):c("v-if",!0),e.filteredConferences?.length!==e.conferences?.length?(l(),d("span",FA,u(e.fmt?.number(e.filteredConferences?.length))+" of "+u(e.fmt?.number(e.conferences?.length))+" shown",1)):c("v-if",!0)]),(l(!0),d(W,null,oe(e.filters?.status,(s,r,a)=>(l(),d(W,null,[s===!1?(l(),d("span",BA,[h(" Hiding "+u(e.statusLabels[r])+" ",1),n("button",{type:"button",class:"filter-chip-close",onClick:p=>{e.filters.status[r]=!0},"aria-label":"Show "+e.statusLabels[r]+" again"},"\xD7",8,zA)])):c("v-if",!0)],64))),256))])):c("v-if",!0)]),e.error?(l(),d("div",HA,[n("span",null,u(e.error),1),n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[1]||(t[1]=s=>e.loadConferences())},"Retry")])):c("v-if",!0),e.loading?(l(),d("div",jA,"Loading conferences\u2026")):c("v-if",!0),n("div",GA,[t[25]||(t[25]=n("div",{class:"paper-table-head",role:"row"},[n("div",{role:"columnheader"},"Conference"),n("div",{role:"columnheader"},"Status"),n("div",{role:"columnheader",class:"num"},"Repos"),n("div",{role:"columnheader"},"Review window"),n("div",{role:"columnheader"},[n("span",{class:"sr-only"},"Actions")])],-1)),(l(!0),d(W,null,oe(e.filteredConferences,(s,r)=>(l(),d("div",{class:O(["paper-table-row row-clickable",{"repo-inactive":s?.status=="expired"||s?.status=="removed"}]),role:"row",key:s?.conferenceID},[n("div",WA,[t[13]||(t[13]=n("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Conference"},[n("use",{href:"#project-icon-conference"})],-1)),n("div",KA,[n("a",{class:"repo-name",textContent:u(s?.name),href:e.safeUrl("/conference/"+s?.conferenceID)},null,8,YA),n("div",JA,[n("span",QA,[t[12]||(t[12]=h("ID ",-1)),n("span",{class:"commit-hash",textContent:u(s?.conferenceID)},null,8,XA),s?.url?(l(),d("span",ZA,[t[11]||(t[11]=h(" \xB7 ",-1)),n("a",{target:"_blank",rel:"noopener",textContent:u(e.fmt?.limitTo(s?.url,60)),href:e.safeUrl(s?.url)},null,8,xA)])):c("v-if",!0)])])])]),n("div",e3,[n("div",t3,[n("span",{class:O(["status-dot","status-"+s?.status]),"aria-hidden":"true"},null,2),n("span",{class:"status-word",textContent:u(e.fmt?.statusLabel(s?.status))},null,8,n3)])]),n("div",o3,[t[14]||(t[14]=n("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-type-repo"})],-1)),t[15]||(t[15]=h()),n("span",{textContent:u(e.fmt?.number(s?.nbRepositories||0))},null,8,s3)]),n("div",i3,[t[16]||(t[16]=n("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),s?.startDate?(l(),d("span",r3,u(e.fmt?.date(s?.startDate,"mediumDate"))+" \u2013 "+u(e.fmt?.date(s?.endDate,"mediumDate")),1)):c("v-if",!0),s?.startDate?c("v-if",!0):(l(),d("span",a3,"\u2014"))]),n("div",l3,[n("div",d3,[n("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false",disabled:s?.removing,"aria-label":"Actions for "+s?.name},[...t[17]||(t[17]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-more"})],-1)])],8,u3),n("div",c3,[n("a",{class:"dropdown-item",href:e.safeUrl("/conference/"+s?.conferenceID+"/")},[...t[18]||(t[18]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1),h(" View ",-1)])],8,p3),n("a",{class:"dropdown-item",href:e.safeUrl("/conference/"+s?.conferenceID+"/edit")},[...t[19]||(t[19]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),h(" Edit ",-1)])],8,f3),s?.status!="removed"?(l(),d("div",m3,[t[21]||(t[21]=n("div",{class:"dropdown-divider"},null,-1)),n("button",{type:"button",class:"dropdown-item dropdown-item-danger",onClick:a=>e.removeConference(s)},[...t[20]||(t[20]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1),h(" Remove ",-1)])],8,h3)])):c("v-if",!0)])])])],2))),128)),!e.loading&&!e.error&&e.filteredConferences?.length==0?(l(),d("div",v3,[t[24]||(t[24]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-inbox"})],-1)),e.conferences?.length==0?(l(),d(W,{key:0},[t[22]||(t[22]=n("strong",{class:"empty-title"},"No conferences yet",-1)),t[23]||(t[23]=n("span",null,"Create one to group submissions for a venue, share a dashboard with chairs, and set a single expiry date.",-1))],64)):c("v-if",!0),e.conferences?.length>0?(l(),d("span",g3,"Nothing matches the current filters.")):c("v-if",!0),n("div",y3,[c("v-if",!0),e.conferences?.length>0?(l(),d("button",{key:1,type:"button",class:"btn btn-outline-ink",onClick:t[2]||(t[2]=s=>{e.search="",e.filters.status.ready=!0,e.filters.status.expired=!0,e.filters.status.removed=!0})},"Clear filters")):c("v-if",!0)])])):c("v-if",!0)])])])}var b3={class:"container page dashboard-page paper-page"},w3={class:"row"},k3={class:"w-100"},C3={class:"dashboard-heading"},E3={class:"dashboard-heading-actions"},S3=["open"],N3=["aria-expanded"],R3=["stroke-dasharray"],D3={key:1,d:"M7 12c0-4 4-4 5 0s5 4 5 0-4-4-5 0-5 4-5 0",class:"quota-ring-unlimited"},T3={key:0,class:"quota-summary-value"},_3={key:0},A3={class:"quota-panel",id:"dashboard-usage"},O3={class:"quota-panel-heading"},P3={key:1,class:"quota-loading",role:"status"},I3={class:"search-wrap"},M3={type:"search",id:"search",class:"form-control","aria-label":"Search anonymizations",placeholder:"Search projects\u2026",autocomplete:"off"},V3=["aria-expanded"],q3={class:"btn-group",role:"group","aria-label":"Type"},L3=["aria-pressed"],$3=["aria-pressed"],U3=["aria-pressed"],F3=["aria-pressed"],B3={class:"dropdown"},z3={class:"btn dropdown-toggle",type:"button",id:"dropdownSort","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},H3={class:"filter-btn-value"},j3={class:"sr-only"},G3={class:"dropdown-menu","aria-labelledby":"dropdownSort"},W3={class:"form-check dropdown-item"},K3=["onClick","checked","id"],Y3=["for"],J3={class:"dropdown"},Q3={class:"btn dropdown-toggle",type:"button",id:"dropdownStatus","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},X3={key:0,class:"filter-btn-value"},Z3={key:1,class:"filter-btn-value"},x3={key:2,class:"filter-btn-value"},eO={class:"dropdown-menu","aria-labelledby":"dropdownStatus"},tO={class:"form-check dropdown-item"},nO=["id"],oO=["for"],sO={key:0,class:"dashboard-meta"},iO={key:0,class:"dashboard-view-tabs",role:"group","aria-label":"Project view"},rO=["aria-pressed"],aO=["aria-pressed","aria-label"],lO={class:"dashboard-count"},dO={key:0},uO={key:0},cO={key:1},pO={class:"dashboard-active-filters"},fO=["onClick","aria-label","title"],mO=["aria-busy"],hO={class:"paper-table-head",role:"row"},vO=["aria-sort"],gO=["aria-sort"],yO=["aria-sort"],bO=["aria-sort"],wO={key:0,class:"paper-table-row paper-table-skeleton",role:"row","aria-hidden":"true"},kO=["onClick"],CO={class:"cell-anon",role:"cell"},EO=["aria-label","title"],SO={class:"project-type-svg","aria-hidden":"true"},NO=["href"],RO={class:"anon-text"},DO={class:"anon-title"},TO=["title","textContent","href"],_O=["textContent"],AO={key:2,class:"type-badge type-coauthor",title:"You are a co-author on this anonymization"},OO={class:"anon-sub"},PO=["title"],IO=["title"],MO=["title"],VO=["textContent"],qO={class:"dashboard-row-meta",role:"presentation"},LO={class:"cell-status",role:"cell"},$O={key:1,class:"ui-icon status-ended-icon","aria-hidden":"true"},UO=["href"],FO=["textContent"],BO=["textContent","title"],zO=["title"],HO=["href"],jO=["onClick"],GO={key:4,class:"status-sub status-sub-date"},WO=["aria-label"],KO={class:"cell-expires",role:"cell"},YO={key:0,class:"expires-never"},JO=["textContent"],QO={key:2,class:"expires-past"},XO={key:3,class:"expires-past"},ZO={key:4,class:"empty-dash","aria-label":"Not applicable"},xO={class:"cell-actions",role:"cell"},eP={key:0,class:"ended-row"},tP=["onClick"],nP=["onClick"],oP=["onClick","disabled","title","aria-label"],sP={class:"sr-only","aria-live":"polite"},iP={class:"project-type-svg","aria-hidden":"true"},rP=["href"],aP=["onClick","data-project-actions","aria-controls","aria-expanded"],lP=["href","aria-label"],dP=["href","title","aria-label"],uP={key:5,class:"dropdown"},cP=["data-project-actions","aria-label"],pP={class:"dropdown-menu dropdown-menu-right"},fP=["onClick","aria-controls","aria-expanded"],mP=["href"],hP=["href"],vP=["onClick","disabled"],gP=["href"],yP=["onClick"],bP=["onClick"],wP=["onClick"],kP={key:5},CP=["onClick"],EP={key:1,class:"project-details-row",role:"row"},SP=["id","onKeydown"],NP={class:"project-details-heading"},RP=["onClick"],DP={class:"project-details-list"},TP={key:0},_P={key:1},AP={key:0},OP={key:2},PP={key:0,class:"project-progress-help"},IP=["href"],MP=["onSubmit"],VP=["for"],qP=["id"],LP={class:"project-name-controls"},$P=["id","aria-describedby","disabled"],UP=["disabled"],FP={key:0,class:"project-name-error",role:"alert"},BP={key:1,role:"status"},zP={key:0,class:"paper-table-empty"},HP={key:0},jP={key:1},GP={class:"paper-table-empty-actions"},WP={key:1,href:"/anonymize",class:"btn btn-ink"},KP={key:0,class:"dashboard-pagination"},YP={key:0,role:"alert"},JP=["disabled"];function Gl(e,t){let o=We("quota-usage"),i=we("field"),s=we("form");return l(),d("div",b3,[n("div",w3,[n("div",k3,[n("div",C3,[t[29]||(t[29]=n("div",null,[n("h1",{class:"paper-page-title"},"My work"),n("p",{class:"paper-page-lede"},"Manage your anonymous links.")],-1)),n("div",E3,[n("details",{class:"dashboard-quota",open:e.quotaExpanded,onToggle:t[1]||(t[1]=r=>e.quotaExpanded=r.target.open),onKeydown:t[2]||(t[2]=ct(ae(r=>e.closeQuota(),["prevent","stop"]),["esc"]))},[n("summary",{"aria-controls":"dashboard-usage","aria-expanded":e.quotaExpanded,style:Re(e.quota&&!e.quota.repository.unlimited?{"--quota-pct":e.quota.repository.percent+"%"}:null)},[(l(),d("svg",{class:O(["quota-summary-ring",e.quota?"quota-"+e.quota.repository.level:""]),viewBox:"0 0 24 24","aria-hidden":"true"},[t[22]||(t[22]=n("circle",{class:"quota-ring-track",cx:"12",cy:"12",r:"9"},null,-1)),e.quota&&!e.quota.repository.unlimited?(l(),d("circle",{key:0,class:"quota-ring-fill",cx:"12",cy:"12",r:"9",pathLength:"100","stroke-dasharray":e.quota.repository.percent+" 100"},null,8,R3)):c("v-if",!0),e.quota?.repository.unlimited?(l(),d("path",D3)):c("v-if",!0)],2)),t[24]||(t[24]=n("span",{class:"quota-summary-label"},"Usage",-1)),e.quota?(l(),d("span",T3,[h(u(e.fmt.number(e.quota.repository.used)),1),e.quota.repository.unlimited?c("v-if",!0):(l(),d("span",_3," / "+u(e.fmt.number(e.quota.repository.total)),1)),t[23]||(t[23]=h(" repos",-1))])):c("v-if",!0),t[25]||(t[25]=n("svg",{class:"project-type-svg quota-summary-chevron","aria-hidden":"true"},[n("use",{href:"#project-icon-chevron"})],-1))],12,N3),n("div",A3,[n("div",O3,[t[27]||(t[27]=n("h2",null,"Account usage",-1)),n("button",{type:"button",class:"project-close","aria-label":"Close usage",onClick:t[0]||(t[0]=r=>e.closeQuota())},[...t[26]||(t[26]=[n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1)])])]),e.quota?(l(),Bt(o,{key:0,quota:e.quota,fmt:e.fmt},null,8,["quota","fmt"])):(l(),d("p",P3,"Loading usage\u2026"))])],40,S3),t[28]||(t[28]=me('<a href="/anonymize" class="btn btn-ink" aria-label="New anonymization"><svg class="project-type-svg" aria-hidden="true"><use href="#project-icon-plus"></use></svg><span class="dashboard-new-label">New anonymization</span><span class="dashboard-new-mobile" aria-hidden="true">New</span></a>',1))])]),c(" Search + filters "),T((l(),d("form",{class:"w-100 dashboard-filter-row","aria-label":"Filter anonymizations","accept-charset":"UTF-8",onSubmit:t[9]||(t[9]=ae(r=>e.submitForm(r,()=>{r.preventDefault()}),["prevent"]))},[n("div",I3,[T(n("input",M3,null,512),[[i,{state:e.viewState,set:r=>{e.search=r},value:e.search,form:null,options:{}}]])]),n("button",{class:"btn dashboard-filters-toggle",type:"button","aria-expanded":e.filtersExpanded,"aria-controls":"dashboard-filter-controls",onClick:t[3]||(t[3]=r=>e.filtersExpanded=!e.filtersExpanded)},[...t[30]||(t[30]=[h("Filters",-1),n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-filter"})],-1)])],8,V3),n("div",{id:"dashboard-filter-controls",class:O(["dashboard-filter-controls",{expanded:e.filtersExpanded}])},[n("div",q3,[n("button",{type:"button",class:O(["btn",{"btn-primary":e.typeFilter==="all"}]),onClick:t[4]||(t[4]=r=>e.typeFilter="all"),"aria-pressed":e.typeFilter==="all"},"All",10,L3),n("button",{type:"button",class:O(["btn dashboard-type-filter",{"btn-primary":e.typeFilter==="repo"}]),title:"Repositories",onClick:t[5]||(t[5]=r=>e.typeFilter="repo"),"aria-pressed":e.typeFilter==="repo"},[...t[31]||(t[31]=[n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-type-repo"})],-1),n("span",{class:"type-filter-label"},"Repos",-1)])],10,$3),n("button",{type:"button",class:O(["btn dashboard-type-filter",{"btn-primary":e.typeFilter==="pr"}]),title:"Pull requests",onClick:t[6]||(t[6]=r=>e.typeFilter="pr"),"aria-pressed":e.typeFilter==="pr"},[...t[32]||(t[32]=[n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-type-pr"})],-1),n("span",{class:"type-filter-label"},"PRs",-1)])],10,U3),n("button",{type:"button",class:O(["btn dashboard-type-filter",{"btn-primary":e.typeFilter==="gist"}]),title:"Gists",onClick:t[7]||(t[7]=r=>e.typeFilter="gist"),"aria-pressed":e.typeFilter==="gist"},[...t[33]||(t[33]=[n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-type-gist"})],-1),n("span",{class:"type-filter-label"},"Gists",-1)])],10,F3)]),n("div",{id:"dashboard-extra-filters",class:O(["dashboard-extra-filters",{expanded:e.filtersExpanded}])},[n("div",B3,[n("button",z3,[t[35]||(t[35]=n("span",{class:"filter-btn-label"},"Sort",-1)),n("span",H3,u(e.sortLabel()),1),(l(),d("svg",{class:O(["project-type-svg sort-direction",{ascending:!e.sortDesc()}]),"aria-hidden":"true"},[...t[34]||(t[34]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)),n("span",j3,u(e.sortDesc()?"descending":"ascending"),1)]),n("div",G3,[t[36]||(t[36]=n("h6",{class:"dropdown-header"},"Order by",-1)),(l(!0),d(W,null,oe(e.sortFields,(r,a,p)=>(l(),d("div",W3,[n("input",{class:"form-check-input",type:"radio",name:"sort",onClick:f=>e.setSort(a,r.defaultDesc),checked:e.isSortedBy(a),id:"sort-"+p},null,8,K3),n("label",{class:"form-check-label",for:"sort-"+p},u(r?.label),9,Y3)]))),256)),t[37]||(t[37]=n("div",{class:"dropdown-divider"},null,-1)),n("button",{type:"button",class:"dropdown-item",onClick:t[8]||(t[8]=r=>e.toggleSortDirection())},u(e.sortDesc()?"Switch to ascending":"Switch to descending"),1)])]),n("div",J3,[n("button",Q3,[t[38]||(t[38]=n("span",{class:"filter-btn-label"},"Status",-1)),e.hasHiddenStatus()?c("v-if",!0):(l(),d("span",X3,"All")),e.hiddenStatusCount()===1&&e.filters?.status?.removed===!1?(l(),d("span",Z3,"Active")):c("v-if",!0),e.hasHiddenStatus()&&!(e.hiddenStatusCount()===1&&e.filters?.status?.removed===!1)?(l(),d("span",x3,u(e.hiddenStatusCount()===1?"Hiding "+(e.statusKeyLabels[Object.keys(e.filters?.status||{}).find(r=>e.filters.status[r]===!1)]||"").toLowerCase():e.hiddenStatusCount()+" hidden"),1)):c("v-if",!0)]),n("div",eO,[t[39]||(t[39]=n("h6",{class:"dropdown-header"},"Show statuses",-1)),(l(!0),d(W,null,oe(e.statusKeyLabels,(r,a,p)=>(l(),d("div",tO,[T(n("input",{class:"form-check-input",type:"checkbox",id:"status-"+a},null,8,nO),[[i,{state:e.viewState,set:f=>{e.filters.status[a]=f},value:e.filters?.status[a],form:null,options:{}}]]),n("label",{class:"form-check-label",for:"status-"+a},u(r),9,oO)]))),256))])])],2)],2)],32)),[[s,e.viewState]]),c(" Result count + active filter chips "),e.loading?c("v-if",!0):(l(),d("div",sO,[e.attentionCount()>0||e.projectView==="attention"?(l(),d("div",iO,[n("button",{type:"button","aria-pressed":e.projectView==="all",onClick:t[10]||(t[10]=r=>e.setProjectView("all")),"aria-label":"All projects"},[...t[40]||(t[40]=[n("span",{class:"dashboard-view-long"},"All projects",-1),n("span",{class:"dashboard-view-short","aria-hidden":"true"},"All",-1)])],8,rO),e.attentionCount()>0||e.projectView==="attention"?(l(),d("button",{key:0,type:"button","aria-pressed":e.projectView==="attention",onClick:t[11]||(t[11]=r=>e.setProjectView("attention")),"aria-label":"Needs attention "+e.attentionCount()},[t[41]||(t[41]=n("span",{class:"dashboard-attention-prefix"},"Needs ",-1)),t[42]||(t[42]=n("span",null,"attention",-1)),t[43]||(t[43]=h()),n("span",{class:O(["attention-count",{"has-attention":e.attentionCount()>0}])},u(e.attentionCount()),3)],8,aO)):c("v-if",!0)])):c("v-if",!0),n("span",lO,[(e.dashboardTotals?.filtered??e.filteredItems?.length)===(e.dashboardTotals?.total??e.items?.length)?(l(),d("span",dO,[h(u(e.fmt?.number(e.dashboardTotals?.total??e.items?.length))+" project",1),(e.dashboardTotals?.total??e.items?.length)!==1?(l(),d("span",uO,"s")):c("v-if",!0)])):(l(),d("span",cO,[h(u(e.fmt?.number(e.dashboardTotals?.filtered??e.filteredItems?.length))+" shown \xB7 ",1),n("button",{type:"button",class:"btn-link-inline hidden-toggle",onClick:t[12]||(t[12]=r=>e.clearFilters())},"Show "+u(e.fmt?.number((e.dashboardTotals?.total??e.items?.length)-(e.dashboardTotals?.filtered??e.filteredItems?.length)))+" removed",1)]))]),n("div",pO,[(l(!0),d(W,null,oe(e.filters?.status,(r,a,p)=>(l(),d(W,null,[r===!1&&!(a==="removed"&&e.hiddenStatusCount()===1)?(l(),d("button",{key:0,type:"button",class:"filter-chip",onClick:f=>e.filters.status[a]=!0,"aria-label":"Show "+e.statusKeyLabels[a]+" again",title:"Show "+e.statusKeyLabels[a]+" again"},[h("Hiding "+u((e.statusKeyLabels[a]||"").toLowerCase()),1),t[44]||(t[44]=n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1))],8,fO)):c("v-if",!0)],64))),256)),e.typeFilter!=="all"?(l(),d("button",{key:0,type:"button",class:"filter-chip",onClick:t[13]||(t[13]=r=>e.typeFilter="all"),"aria-label":"Show all project types"},[h(u(e.typeFilter==="repo"?"Repositories":e.typeFilter==="pr"?"Pull requests":"Gists"),1),t[45]||(t[45]=n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1))])):c("v-if",!0),e.showClearFilters()?(l(),d("button",{key:1,type:"button",class:"btn-link-inline",onClick:t[14]||(t[14]=r=>e.clearFilters())},"Clear filters")):c("v-if",!0)])]))]),c(" Table "),n("div",{class:"paper-table paper-table-dashboard",role:"table","aria-label":"Anonymizations","aria-busy":e.loading},[n("div",hO,[n("div",{role:"columnheader","aria-sort":e.isSortedBy("_label")?e.sortDesc()?"descending":"ascending":"none"},[n("button",{type:"button",class:O(["sortable",{active:e.isSortedBy("_label")}]),onClick:t[15]||(t[15]=r=>e.setSort("_label"))},[t[47]||(t[47]=h(" Project ",-1)),e.isSortedBy("_label")?(l(),d("svg",{key:0,class:O(["project-type-svg sort-direction",{ascending:!e.sortDesc()}]),"aria-hidden":"true"},[...t[46]||(t[46]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):c("v-if",!0)],2)],8,vO),n("div",{role:"columnheader","aria-sort":e.isSortedBy("status")?e.sortDesc()?"descending":"ascending":"none"},[n("button",{type:"button",class:O(["sortable",{active:e.isSortedBy("status")}]),onClick:t[16]||(t[16]=r=>e.setSort("status"))},[t[49]||(t[49]=h(" Status ",-1)),e.isSortedBy("status")?(l(),d("svg",{key:0,class:O(["project-type-svg sort-direction",{ascending:!e.sortDesc()}]),"aria-hidden":"true"},[...t[48]||(t[48]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):c("v-if",!0)],2)],8,gO),n("div",{role:"columnheader",class:"num","aria-sort":e.isSortedBy("pageView")?e.sortDesc()?"descending":"ascending":"none"},[n("button",{type:"button",class:O(["sortable",{active:e.isSortedBy("pageView")}]),onClick:t[17]||(t[17]=r=>e.setSort("pageView"))},[t[51]||(t[51]=h(" Views ",-1)),e.isSortedBy("pageView")?(l(),d("svg",{key:0,class:O(["project-type-svg sort-direction",{ascending:!e.sortDesc()}]),"aria-hidden":"true"},[...t[50]||(t[50]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):c("v-if",!0)],2)],8,yO),n("div",{role:"columnheader","aria-sort":e.isSortedBy("options.expirationDate")?e.sortDesc()?"descending":"ascending":"none"},[n("button",{type:"button",class:O(["sortable",{active:e.isSortedBy("options.expirationDate")}]),onClick:t[18]||(t[18]=r=>e.setSort("options.expirationDate"))},[t[53]||(t[53]=h(" Expires ",-1)),e.isSortedBy("options.expirationDate")?(l(),d("svg",{key:0,class:O(["project-type-svg sort-direction",{ascending:!e.sortDesc()}]),"aria-hidden":"true"},[...t[52]||(t[52]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):c("v-if",!0)],2)],8,bO),t[54]||(t[54]=n("div",{role:"columnheader",class:"col-link"},[n("span",{class:"sr-only"},"Actions")],-1))]),c(" Loading skeleton: keeps the layout stable while the three lists load "),(l(),d(W,null,oe([1,2,3,4],(r,a)=>(l(),d(W,null,[e.loading?(l(),d("div",wO,[...t[55]||(t[55]=[n("div",{class:"cell-anon",role:"cell"},[n("span",{class:"skeleton skeleton-badge"}),n("div",{class:"anon-text"},[n("span",{class:"skeleton skeleton-line",style:{width:"38%"}}),n("span",{class:"skeleton skeleton-line skeleton-line-sm",style:{width:"56%"}})])],-1),n("div",{class:"cell-status",role:"cell"},[n("span",{class:"skeleton skeleton-line",style:{width:"60%"}})],-1),n("div",{class:"cell-views num",role:"cell"},[n("span",{class:"skeleton skeleton-line",style:{width:"40%"}})],-1),n("div",{class:"cell-expires",role:"cell"},[n("span",{class:"skeleton skeleton-line",style:{width:"55%"}})],-1),n("div",{class:"cell-actions",role:"cell"},null,-1)])])):c("v-if",!0)],64))),64)),(l(!0),d(W,null,oe(e.filteredItems,(r,a)=>(l(),d(W,{key:r?._type+":"+(r?._id||a)},[e.loading?c("v-if",!0):(l(),d("div",{key:0,class:O(["paper-table-row",{"repo-inactive":r?._statusKey=="expired"||r?._statusKey=="removed","repo-error":r?.status=="error","row-clickable":!!r?._viewUrl}]),role:"row",onClick:p=>e.openItem(r,p)},[n("div",CO,[n("span",{class:"project-type-icon",role:"img","aria-label":r?._type==="repo"?"Repository":r?._type==="pr"?"Pull request":"Gist",title:r?._type==="repo"?"Repository":r?._type==="pr"?"Pull request":"Gist"},[(l(),d("svg",SO,[n("use",{href:"#project-type-"+r._type},null,8,NO)]))],8,EO),n("div",RO,[n("div",DO,[r?._viewUrl?(l(),d("a",{key:0,class:"repo-name",title:r._label,textContent:u(r?._label),href:e.safeUrl(r?._viewUrl)},null,8,TO)):c("v-if",!0),r?._viewUrl?c("v-if",!0):(l(),d("span",{key:1,class:"repo-name repo-name-static",textContent:u(r?._label)},null,8,_O)),r?.role==="coauthor"?(l(),d("span",AO,"Co-author")):c("v-if",!0)]),n("div",OO,[r?._id?(l(),d("code",{key:0,class:"anonymous-id",title:r._id},u(r._id),9,PO)):c("v-if",!0),r?._type==="repo"&&r?.source?.commit?(l(),d("span",{key:1,class:"commit-hash",title:r.source.commit},u(r.source.commit.substring(0,8)),9,IO)):c("v-if",!0),r?.conference?(l(),d("span",{key:2,class:"cell-conf conf-tag",title:r?.conference},[t[56]||(t[56]=n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-conference"})],-1)),t[57]||(t[57]=h()),n("span",{textContent:u(r?.conference)},null,8,VO)],8,MO)):c("v-if",!0)])])]),n("div",qO,[n("div",LO,[n("div",{class:O(["status-line",{"status-ended":r?._statusKey=="expired"||r?._statusKey=="removed",["status-ended-"+r?._statusKey]:r?._statusKey=="expired"||r?._statusKey=="removed"}])},[r?._statusKey=="expired"||r?._statusKey=="removed"?c("v-if",!0):(l(),d("span",{key:0,class:O(["status-dot","status-"+r?._statusKey]),"aria-hidden":"true"},null,2)),r?._statusKey=="expired"||r?._statusKey=="removed"?(l(),d("svg",$O,[n("use",{href:r?._statusKey=="removed"?"#ui-icon-trash":"#ui-icon-hourglass"},null,8,UO)])):c("v-if",!0),n("span",{class:"status-word",textContent:u(e.fmt?.statusLabel(r?.status))},null,8,FO)],2),r?.status=="error"&&r?.statusMessage?(l(),d("div",{key:0,class:"status-sub status-sub-error",textContent:u(e.fmt?.statusMsg(r?.statusMessage)),title:r?.statusMessage},null,8,BO)):c("v-if",!0),r?._stale?(l(),d("div",{key:1,class:"status-sub status-sub-warn",title:"Last activity "+e.fmt?.humanTime(r?.anonymizeDate||r?.lastView)}," Last activity "+u(e.fmt?.humanTime(r?.anonymizeDate||r?.lastView))+" \xB7 may be stuck ",9,zO)):c("v-if",!0),r.status==="error"&&r._editUrl?(l(),d("a",{key:2,class:"project-attention-action",href:e.safeUrl(r._editUrl)},"Fix source",8,HO)):c("v-if",!0),r._stale||r._broken?(l(),d("button",{key:3,type:"button",class:"project-attention-action",onClick:ae(p=>e.showProjectDetails(r),["stop"])},u(r._broken?"Review details":"Check progress"),9,jO)):c("v-if",!0),r?.status!="error"&&!r?._stale&&r?.anonymizeDate?(l(),d("div",GO," anonymized "+u(e.fmt?.humanTime(r?.anonymizeDate)),1)):c("v-if",!0)]),n("div",{class:"cell-views num",role:"cell","aria-label":e.fmt.number(r.pageView)+" views"},[t[58]||(t[58]=n("svg",{class:"project-type-svg mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1)),n("span",null,u(e.fmt.number(r.pageView)),1)],8,WO),n("div",KO,[t[59]||(t[59]=n("svg",{class:"project-type-svg mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),r?._expiry?.kind==="never"?(l(),d("span",YO,"Never")):c("v-if",!0),r?._expiry?.kind==="date"?(l(),d("span",{key:1,textContent:u((e.fmt?.humanTime(r?._expiry?.date)||"").replace(/^on /,""))},null,8,JO)):c("v-if",!0),r?._expiry?.kind==="expired"&&r?._expiry?.date?(l(),d("span",QO,"Expired "+u(e.fmt?.humanTime(r?._expiry?.date)),1)):c("v-if",!0),r?._expiry?.kind==="expired"&&!r?._expiry?.date?(l(),d("span",XO,"Expired")):c("v-if",!0),r?._expiry?.kind==="none"?(l(),d("span",ZO,"\u2014")):c("v-if",!0)])]),n("div",xO,[r?._statusKey=="expired"||r?._statusKey=="removed"?(l(),d("div",eP,[t[60]||(t[60]=n("span",{class:"ended-link",title:"Reviewers can no longer open this link"},"Link offline",-1)),r?.status=="removed"?(l(),d("button",{key:0,type:"button",class:"ended-action",onClick:ae(p=>e.refreshItem(r),["stop"])},"Enable",8,tP)):c("v-if",!0),r?.status=="expired"?(l(),d("button",{key:1,type:"button",class:"ended-action",onClick:ae(p=>e.extendItem(r),["stop"])},"Extend",8,nP)):c("v-if",!0)])):c("v-if",!0),r._viewUrl&&!(r?._statusKey=="expired"||r?._statusKey=="removed")?(l(),d("button",{key:1,type:"button",class:"copy-url",onClick:ae(p=>e.copyLink(r),["stop"]),disabled:!!e.copyingId,title:"Copy link: "+r._viewUrl,"aria-label":"Copy anonymous link for "+r._label},[n("span",sP,u(e.copyingId===r._type+":"+r._id?"Link copied":""),1),(l(),d("svg",iP,[n("use",{href:e.copyingId===r._type+":"+r._id?"#ui-icon-check":"#project-icon-copy"},null,8,rP)]))],8,oP)):c("v-if",!0),r._broken?(l(),d("button",{key:2,type:"button",class:"project-details-button",onClick:ae(p=>e.showProjectDetails(r),["stop"]),"data-project-actions":encodeURIComponent(r._type+":"+r._id),"aria-controls":e.projectDetailsId(r),"aria-expanded":e.selectedProject===r},"Details",8,aP)):c("v-if",!0),r._viewUrl&&!(r?._statusKey=="expired"||r?._statusKey=="removed")?(l(),d("a",{key:3,class:"row-edit row-open",href:e.safeUrl(r._viewUrl),target:"_blank",rel:"noopener",title:"Open what reviewers see","aria-label":"Open anonymous page for "+r._label},[...t[61]||(t[61]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-external-link"})],-1)])],8,lP)):c("v-if",!0),r?._editUrl&&!r?._broken?(l(),d("a",{key:4,class:"row-edit",href:e.safeUrl(r._editUrl),title:"Edit "+r._name,"aria-label":"Edit "+r._name},[...t[62]||(t[62]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1)])],8,dP)):c("v-if",!0),r?._broken?c("v-if",!0):(l(),d("div",uP,[n("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","data-project-actions":encodeURIComponent(r._type+":"+r._id),"aria-label":"Actions for "+r?._name},[...t[63]||(t[63]=[n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-more"})],-1)])],8,cP),n("div",pP,[n("button",{type:"button",class:"dropdown-item",onClick:p=>e.showProjectDetails(r),"aria-controls":e.projectDetailsId(r),"aria-expanded":e.selectedProject===r},"Project details & name",8,fP),n("a",{class:"dropdown-item",href:e.safeUrl(r?._viewUrl)}," View ",8,mP),r?._type==="repo"&&r?.options?.page&&r?.status=="ready"?(l(),d("a",{key:0,class:"dropdown-item",target:"_self",href:e.safeUrl("/w/"+r?.repoId+"/")}," View page ",8,hP)):c("v-if",!0),r?._viewUrl?(l(),d("button",{key:1,type:"button",class:"dropdown-item",onClick:p=>e.copyLink(r),disabled:!!e.copyingId}," Copy anonymous link ",8,vP)):c("v-if",!0),n("a",{class:"dropdown-item",href:e.safeUrl(r?._editUrl)}," Edit ",8,gP),r?.status=="ready"||r?.status=="error"?(l(),d("button",{key:2,type:"button",class:"dropdown-item",onClick:p=>e.refreshItem(r)}," Force update ",8,yP)):c("v-if",!0),r?.status=="removed"?(l(),d("button",{key:3,type:"button",class:"dropdown-item",onClick:p=>e.refreshItem(r)}," Enable ",8,bP)):c("v-if",!0),r?.status=="expired"?(l(),d("button",{key:4,type:"button",class:"dropdown-item",onClick:p=>e.extendItem(r)}," Extend 6 months ",8,wP)):c("v-if",!0),(r?.status=="ready"||r?.status=="expired"||r?.status=="error")&&r?.role!=="coauthor"?(l(),d("div",kP,[t[64]||(t[64]=n("div",{class:"dropdown-divider"},null,-1)),n("button",{type:"button",class:"dropdown-item dropdown-item-danger",onClick:p=>e.removeItem(r)}," Remove ",8,CP)])):c("v-if",!0)])]))])],10,kO)),!e.loading&&e.selectedProject===r?(l(),d("div",EP,[n("div",{class:"project-details",role:"cell","aria-colspan":"5",id:e.projectDetailsId(r),tabindex:"-1",onKeydown:ct(ae(p=>e.closeProjectDetails(r),["stop"]),["esc"])},[n("div",NP,[t[66]||(t[66]=n("h2",null,"Project details",-1)),n("button",{type:"button",class:"project-close",onClick:p=>e.closeProjectDetails(r),"aria-label":"Close project details"},[...t[65]||(t[65]=[n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1)])],8,RP)]),n("dl",DP,[n("div",null,[t[67]||(t[67]=n("dt",null,"Source",-1)),n("dd",null,u(r._source||"Not available"),1)]),n("div",null,[t[68]||(t[68]=n("dt",null,"Anonymous ID",-1)),n("dd",null,[n("code",null,u(r._id||"Missing identifier"),1)])]),r.source?.commit?(l(),d("div",TP,[t[69]||(t[69]=n("dt",null,"Commit",-1)),n("dd",null,[n("code",null,u(r.source.commit),1)])])):c("v-if",!0),r.conference?(l(),d("div",_P,[t[70]||(t[70]=n("dt",null,"Conference",-1)),n("dd",null,u(r.conference),1)])):c("v-if",!0),n("div",null,[t[71]||(t[71]=n("dt",null,"Status",-1)),n("dd",null,[h(u(e.fmt.statusLabel(r.status)),1),r.statusMessage?(l(),d("span",AP," \xB7 "+u(e.fmt.statusMsg(r.statusMessage)),1)):c("v-if",!0)])]),r.anonymizeDate?(l(),d("div",OP,[t[72]||(t[72]=n("dt",null,"Last anonymized",-1)),n("dd",null,u(e.fmt.humanTime(r.anonymizeDate)),1)])):c("v-if",!0)]),r._stale?(l(),d("p",PP,"This download has not progressed recently. Check the source access and selected branch before retrying.")):c("v-if",!0),r._editUrl?(l(),d("a",{key:1,class:"project-attention-action",href:e.safeUrl(r._editUrl)},u(e.needsAttention(r)?"Check source settings":"Edit anonymization settings"),9,IP)):c("v-if",!0),r._id?(l(),d("form",{key:2,class:"project-name-form",onSubmit:ae(p=>e.saveProjectName(r),["prevent"])},[n("label",{for:"project-name-"+r._type+"-"+r._id},"Project name",8,VP),n("p",{id:"project-name-help-"+r._type+"-"+r._id},"Only you see this name. Leave it blank to use the default.",8,qP),n("div",LP,[T(n("input",{class:"form-control",type:"text",id:"project-name-"+r._type+"-"+r._id,"aria-describedby":"project-name-help-"+r._type+"-"+r._id,maxlength:"100","onUpdate:modelValue":t[19]||(t[19]=p=>e.projectName=p),disabled:e.nameSaving},null,8,$P),[[ot,e.projectName]]),n("button",{class:"btn btn-ink",type:"submit",disabled:e.nameSaving},u(e.nameSaving?"Saving\u2026":"Save name"),9,UP)]),e.nameError?(l(),d("p",FP,u(e.nameError),1)):c("v-if",!0),e.nameMessage?(l(),d("p",BP,u(e.nameMessage),1)):c("v-if",!0)],40,MP)):c("v-if",!0)],40,SP)])):c("v-if",!0)],64))),128)),!e.loading&&e.filteredItems?.length==0?(l(),d("div",zP,[t[74]||(t[74]=n("svg",{class:"project-type-svg project-empty-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-inbox"})],-1)),e.hasProjects()?c("v-if",!0):(l(),d("span",HP,"You have no anonymizations yet.")),e.hasProjects()?(l(),d("span",jP,"Nothing matches the current filters.")):c("v-if",!0),n("div",GP,[e.hasActiveFilters()?(l(),d("button",{key:0,type:"button",class:"btn btn-outline-ink",onClick:t[20]||(t[20]=r=>e.clearFilters())},"Clear filters")):c("v-if",!0),e.hasProjects()?c("v-if",!0):(l(),d("a",WP,[...t[73]||(t[73]=[n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-plus"})],-1),h(" New anonymization",-1)])]))])])):c("v-if",!0)],8,mO)]),e.dashboardCursor||e.dashboardError?(l(),d("div",KP,[e.dashboardError?(l(),d("p",YP,u(e.dashboardError),1)):c("v-if",!0),e.dashboardCursor?(l(),d("button",{key:1,type:"button",class:"btn",onClick:t[21]||(t[21]=r=>e.loadMoreProjects()),disabled:e.loadingMore},u(e.loadingMore?"Loading\u2026":"Load more projects"),9,JP)):c("v-if",!0)])):c("v-if",!0)])}var QP={class:"viewer-bar"},XP={class:"vb-left"},ZP=["aria-label","title"],xP={class:"vb-right"},eI=["title"],tI={class:"vb-help"},nI=["aria-expanded"],oI={key:0,class:"acct-menu vb-help-menu",role:"menu"},sI=["aria-label","title"],iI={class:"ui-icon","aria-hidden":"true"},rI=["href"],aI={key:1,class:"acct"},lI=["aria-label","aria-expanded"],dI=["src"],uI={key:1,class:"acct-initial"},cI={key:0,class:"acct-menu",role:"menu"},pI={class:"acct-menu-head"},fI={key:2,class:"vb-signin",href:"/signin",target:"_self"},mI=["aria-label"],hI={class:"ui-icon","aria-hidden":"true"},vI=["href"],gI=["textContent"],yI={class:"leftCol-head"},bI={class:"leftCol-search"},wI={class:"tree-search-box"},kI=["href"],CI={type:"text",class:"tree-search-input",placeholder:"Search files","aria-label":"Search files"},EI=["title","href"],SI={class:"leftCol-body"},NI={key:0,class:"paper-inline-warning",role:"alert"},RI={key:1,class:"paper-inline-warning",role:"alert"},DI={class:"explorer-main"},TI={class:"breadcrumb paths","aria-label":"Path"},_I={class:"breadcrumb-item breadcrumb-root"},AI=["href","title","textContent"],OI=["aria-current","textContent"],PI=["aria-label","title"],II={class:"ui-icon","aria-hidden":"true"},MI=["href"],VI={class:"status-bar-actions"},qI=["href"],LI={class:"d-none d-md-inline"},$I={class:"ui-icon","aria-hidden":"true"},UI=["href"],FI={class:"d-none d-md-inline"},BI=["href"],zI={class:"explorer-content"};function Wl(e,t){let o=We("tree"),i=We("partial-view"),s=we("field");return l(),d("div",{class:O(["explorer-page",{"files-hidden":e.sidebarHidden}]),style:Re({"--sidebar-w":e.sidebarWidth+"px"})},[n("header",QP,[n("div",XP,[t[14]||(t[14]=n("a",{class:"vb-logo",href:"/"},[h("Anonymous "),n("em",null,"GitHub")],-1)),n("button",{type:"button",class:"vb-icon vb-sidebar","aria-label":e.sidebarHidden?"Show file tree":"Hide file tree",title:e.sidebarHidden?"Show file tree":"Hide file tree",onClick:t[0]||(t[0]=r=>e.sidebarHidden=!e.sidebarHidden)},[...t[13]||(t[13]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-sidebar"})],-1)])],8,ZP)]),n("div",xP,[e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate?(l(),d("span",{key:0,class:"vb-snapshot",title:(e.options?.expirationDate?"Available until "+e.fmt?.date(e.options.expirationDate)+". ":"")+(e.options?.anonymizedAt&&!e.options?.publishedAt?"Older repositories have no recorded publication date. The source commit date does not establish when files became available here.":(e.options?.sourceCommitDate?"Source commit ":e.options?.anonymizedAt?"Anonymized ":"Updated ")+e.fmt?.date(e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate)+(e.options?.publishedAt?" \xB7 snapshot ready "+e.fmt?.date(e.options.publishedAt):""))},[t[15]||(t[15]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),t[16]||(t[16]=n("span",null,"Snapshot",-1)),n("span",null,u(e.fmt?.date(e.options?.publishedAt||e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate)),1)],8,eI)):c("v-if",!0),t[24]||(t[24]=n("a",{class:"vb-support",href:"https://ko-fi.com/tdurieux",target:"_blank",rel:"noopener",title:"Support Anonymous GitHub \u2014 help keep it free for researchers"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-heart"})]),n("span",null,"Support")],-1)),n("div",tI,[n("button",{type:"button",class:"vb-help-btn","aria-haspopup":"true","aria-expanded":e.helpOpen?"true":"false",onClick:t[1]||(t[1]=ae(r=>e.helpOpen=!e.helpOpen,["stop"]))},[...t[17]||(t[17]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-help"})],-1),n("span",null,"Help",-1)])],8,nI),e.helpOpen?(l(),d("div",oI,[...t[18]||(t[18]=[n("a",{role:"menuitem",href:"/faq"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-help"})]),n("span",null,[h("FAQ"),n("small",null,"How anonymization works")])],-1),n("a",{role:"menuitem",href:"https://github.com/tdurieux/anonymous_github/issues/new?template=issue_report.yml",target:"_blank",rel:"noopener"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-bug"})]),n("span",null,[h("Report a bug"),n("small",null,"About this service, not the paper")])],-1)])])):c("v-if",!0)]),n("button",{type:"button",class:"vb-icon","aria-label":e.isDarkMode?"Switch to light mode":"Switch to dark mode",title:e.isDarkMode?"Light mode":"Dark mode",onClick:t[2]||(t[2]=r=>e.darkMode(!e.isDarkMode))},[(l(),d("svg",iI,[n("use",{href:e.isDarkMode?"#ui-icon-sun":"#ui-icon-moon"},null,8,rI)]))],8,sI),e.user?(l(),d("div",aI,[n("button",{type:"button",class:"acct-chip","aria-haspopup":"true","aria-label":"Account: "+e.user?.username,"aria-expanded":e.accountOpen?"true":"false",onClick:t[3]||(t[3]=ae(r=>e.accountOpen=!e.accountOpen,["stop"]))},[e.user?.photo?(l(),d("img",{key:0,src:e.safeUrl(e.user.photo),alt:"",width:"26",height:"26"},null,8,dI)):(l(),d("span",uI,u((e.user?.username||"?").charAt(0).toUpperCase()),1))],8,lI),e.accountOpen?(l(),d("div",cI,[n("div",pI,[t[19]||(t[19]=h("Signed in as ",-1)),n("b",null,"@"+u(e.user?.username),1)]),t[20]||(t[20]=n("a",{role:"menuitem",href:"/dashboard"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-grid"})]),h("My work")],-1)),t[21]||(t[21]=n("a",{role:"menuitem",href:"/profile"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-user"})]),h("Settings")],-1)),t[22]||(t[22]=n("a",{role:"menuitem",href:"/api/user/logout",target:"_self"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-logout"})]),h("Sign out")],-1))])):c("v-if",!0)])):(l(),d("a",fI,[...t[23]||(t[23]=[n("i",{class:"fab fa-github","aria-hidden":"true"},null,-1),h("Sign in",-1)])]))])]),T(n("button",{class:"sidebar-toggle",onClick:t[4]||(t[4]=r=>e.sidebarCollapsed=!e.sidebarCollapsed),"aria-label":e.sidebarCollapsed?"Show files":"Hide files"},[(l(),d("svg",hI,[n("use",{href:e.sidebarCollapsed?"#ui-icon-folder":"#project-icon-close"},null,8,vI)])),n("span",{textContent:u(e.sidebarCollapsed?"Files":"Close")},null,8,gI)],8,mI),[[Y,e.files?.length]]),T(n("div",{class:O(["leftCol",{collapsed:e.sidebarCollapsed}])},[n("div",yI,[t[26]||(t[26]=n("span",{class:"leftCol-eyebrow"},"Files",-1)),n("button",{class:"leftCol-close","aria-label":"Close files",onClick:t[5]||(t[5]=r=>e.sidebarCollapsed=!0)},[...t[25]||(t[25]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1)])])]),n("div",bI,[n("div",wI,[(l(),d("svg",{class:O(["ui-icon tree-search-icon",{"fa-spin":e.fileSearchLoading}]),"aria-hidden":"true"},[n("use",{href:e.fileSearchLoading?"#ui-icon-spinner":"#ui-icon-search"},null,8,kI)],2)),T(n("input",CI,null,512),[[s,{state:e.viewState,set:r=>{e.fileSearchQuery=r},value:e.fileSearchQuery,form:null,options:{debounce:300},change:()=>{e.onFileSearchChange()}}]]),T(n("kbd",{class:"tree-search-kbd"},u(e.isMac?"\u2318":"Ctrl+")+"K",513),[[Y,!e.fileSearchQuery]]),T(n("button",{class:"tree-search-clear","aria-label":"Clear search",onClick:t[6]||(t[6]=r=>{e.fileSearchQuery="",e.onFileSearchChange()})},"\xD7",512),[[Y,e.fileSearchQuery]])]),e.options?.download?(l(),d("a",{key:0,target:"_self",class:"search-zip","aria-label":"Download repository as ZIP",title:"Download the repository (snapshot "+e.fmt?.date(e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate)+") as ZIP",href:e.safeUrl("/api/repo/"+e.repoId+"/zip")},[...t[27]||(t[27]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-download"})],-1),n("span",{class:"search-zip-label","aria-hidden":"true"},"ZIP",-1)])],8,EI)):c("v-if",!0)]),n("div",SI,[e.options?.truncatedFolders?.length>0?(l(),d("div",NI,[t[28]||(t[28]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),h(" "+u(e.fmt?.translate("WARNINGS.repo_truncated")),1)])):c("v-if",!0),e.options?.hasSubmodules?(l(),d("div",RI,[t[29]||(t[29]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),h(" "+u(e.fmt?.translate("WARNINGS.submodules_not_included")),1)])):c("v-if",!0),De(o,{class:"files",file:e.files,"search-query":e.fileSearchQuery,"search-results":e.fileSearchResults,page:e.viewState},null,8,["file","search-query","search-results","page"])])],2),[[Y,e.files?.length]]),T(n("div",{class:"leftCol-resizer",role:"separator","aria-orientation":"vertical","aria-label":"Resize file tree",title:"Drag to resize",onPointerdown:t[7]||(t[7]=r=>e.startSidebarResize(r))},null,544),[[Y,e.files?.length&&!e.sidebarHidden]]),T(n("div",{class:"leftCol-backdrop",onClick:t[8]||(t[8]=r=>e.sidebarCollapsed=!0)},null,512),[[Y,e.files?.length&&!e.sidebarCollapsed]]),n("div",DI,[T(n("div",{class:O(["status-bar",{"is-redundant":["code","text","html"].includes(e.type)&&e.content!=null}])},[T(n("button",{type:"button",class:"btn btn-sm status-files-btn","aria-label":"Show files",title:"Show files",onClick:t[9]||(t[9]=r=>e.sidebarHidden?e.sidebarHidden=!1:e.sidebarCollapsed=!1)},[...t[30]||(t[30]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-folder"})],-1),n("span",null,"Files",-1)])],512),[[Y,e.files?.length]]),n("ol",TI,[n("li",_I,[n("a",{href:e.safeUrl("/r/"+e.repoId+"/"),title:e.repoId,textContent:u(/^[0-9a-f]{8}-[0-9a-f]{4}-/i.test(e.repoId||"")?"repository":e.repoId)},null,8,AI)]),(l(!0),d(W,null,oe(e.paths,(r,a)=>(l(),d("li",{class:"breadcrumb-item","aria-current":a===e.paths.length-1?"page":null,textContent:u(r)},null,8,OI))),256))]),T(n("button",{type:"button",class:"btn btn-sm btn-icon-only btn-ghost copy-path-btn","aria-label":e.pathCopied?"Path copied":"Copy path",title:e.pathCopied?"Path copied":"Copy path",onClick:t[10]||(t[10]=r=>e.copyPath())},[(l(),d("svg",II,[n("use",{href:e.pathCopied?"#ui-icon-check":"#project-icon-copy"},null,8,MI)]))],8,PI),[[Y,e.filePath]]),n("div",VI,[e.options?.isAdmin||e.options?.isOwner?(l(),d("a",{key:0,class:"btn btn-sm","aria-label":"Edit",href:e.safeUrl("/anonymize/"+e.repoId)},[...t[31]||(t[31]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),n("span",{class:"d-none d-md-inline"}," Edit",-1)])],8,qI)):c("v-if",!0),e.type=="html-doc"&&!e.showSource?(l(),d("button",{key:1,class:O(["btn btn-sm",{"btn-active":e.allowScripts}]),"aria-label":"Allow this document to run JavaScript",title:"Scripts in this file are blocked by default. Enable them only if you trust the repository \u2014 the document stays isolated from your session either way.",onClick:t[11]||(t[11]=r=>e.toggleAllowScripts())},[t[32]||(t[32]=n("i",{class:"fab fa-js"},null,-1)),n("span",LI,u(e.allowScripts?"JS on":"JS off"),1)],2)):c("v-if",!0),e.type=="html-doc"?(l(),d("button",{key:2,class:"btn btn-sm","aria-label":"Toggle between the rendered document and its source",title:"Toggle between the rendered document and its source",onClick:t[12]||(t[12]=r=>e.toggleSource())},[(l(),d("svg",$I,[n("use",{href:e.showSource?"#project-icon-eye":"#ui-icon-code"},null,8,UI)])),n("span",FI,u(e.showSource?"Rendered":"Source"),1)])):c("v-if",!0),e.options?.hasWebsite?(l(),d("a",{key:3,target:"_self",class:"btn btn-sm","aria-label":"Website",href:e.safeUrl("/w/"+e.repoId+"/")},[...t[33]||(t[33]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-globe"})],-1),n("span",{class:"d-none d-md-inline"}," Website",-1)])],8,BI)):c("v-if",!0)])],2),[[Y,e.type!="error"||e.files?.length]]),n("div",zI,[De(i,{name:"partials/pageView.htm",state:e.viewState},null,8,["state"])])])],6)}var HI={class:"paper-faq"},jI={class:"paper-faq-body"},GI={class:"paper-faq-toc"};function Kl(e,t){let o=we("paper-scrollspy");return l(),d("div",HI,[t[3]||(t[3]=n("div",{class:"paper-faq-hero"},[n("div",{class:"paper-faq-eyebrow"},"Help"),n("h1",{class:"paper-faq-title"},[h("Mirrors, redaction, and "),n("em",null,"what reviewers see.")]),n("p",{class:"paper-faq-lede"}," How to set up an anonymous mirror, what it hides, and how long it stays online. ")],-1)),n("div",jI,[T((l(),d("aside",GI,[...t[0]||(t[0]=[me('<div class="paper-faq-toc-head">Contents</div><nav><a href="#faq-general">General</a><a href="#faq-plans">Plans and billing</a><a href="#faq-features">Features</a><a href="#faq-limitations">Limitations</a><a href="#faq-privacy">Privacy & Security</a><a href="#faq-hosting">Self-Hosting</a></nav>',2)])])),[[o]]),t[1]||(t[1]=n("section",{class:"faq-section","aria-label":"FAQs"},[n("div",null,[c(" General "),n("h4",{class:"faq-cat"},[n("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[n("use",{href:"#ui-icon-info"})]),h("General ")]),n("div",{class:"panel-group",id:"faq-general",role:"tablist","aria-multiselectable":"true"},[n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingWhatIs"},[n("h3",{class:"panel-title"},[n("a",{role:"button","data-toggle":"collapse","data-parent":"#faq-general",href:"#whatIs","aria-expanded":"true","aria-controls":"whatIs"}," What is Anonymous GitHub? ")])]),n("div",{id:"whatIs",class:"panel-collapse collapse show",role:"tabpanel","aria-labelledby":"headingWhatIs"},[n("div",{class:"panel-body p-3"},[n("p",null," Anonymous GitHub is an open-source tool with free hosting and optional paid plans that anonymizes GitHub repositories and pull requests for double-anonymous (double-blind) peer review. It replaces identifying information, such as the repository owner, organization name, and custom terms, so that reviewers cannot determine the identity of the authors through the code repository. ")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingHowWork"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-general",href:"#howWork","aria-expanded":"false","aria-controls":"howWork"}," How does Anonymous GitHub work? ")])]),n("div",{id:"howWork",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingHowWork"},[n("div",{class:"panel-body p-3"},[n("p",null," Anonymous GitHub either downloads the complete repository and anonymizes the content, or proxies requests to GitHub on the fly. In both cases, the original and anonymized versions of files are cached on the server. The system automatically detects and replaces the repository owner, organization name, and repository name. You can also specify additional custom terms to anonymize using one-per-line regex patterns. ")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingScope"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-general",href:"#scope","aria-expanded":"false","aria-controls":"scope"}," What is the scope of anonymization? ")])]),n("div",{id:"scope",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingScope"},[n("div",{class:"panel-body p-3"},[n("p",null," In double-anonymous peer review, the boundary of anonymization is the paper plus its online appendix, not the entire internet. Searching for any part of the paper or the online appendix can be considered a deliberate attempt to break anonymity. Anonymous GitHub anonymizes the repository owner, organization, repository name, file and directory names, and file contents across all text-based file types. ")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingCost"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-general",href:"#cost","aria-expanded":"false","aria-controls":"cost"}," How much does it cost? ")])]),n("div",{id:"cost",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingCost"},[n("div",{class:"panel-body p-3"},[n("p",null," A free account includes 5 owned repositories and 2 GiB of source files. Optional paid plans offer more capacity, automatic refresh, and, with an author subscription, never-expiring repositories. Reviewers can read shared repositories without an account or payment. "),n("p",null,[h(" See "),n("a",{href:"/profile#settings-billing"},"Plans and billing"),h(" for available plans and current prices. Offers depend on whether payments are enabled on this instance; the checkout shows the amount before you pay. Subscriptions help fund hosting, storage, backups, and continued maintenance. ")]),n("p",null,[h(" You can also support development through "),n("a",{href:"https://github.com/sponsors/tdurieux/",target:"_blank",rel:"noopener"},"GitHub Sponsors"),h(" or "),n("a",{href:"https://ko-fi.com/tdurieux",target:"_blank",rel:"noopener"},"Ko-fi"),h(". Donations are separate from subscriptions and do not automatically unlock paid features. ")])])])])]),c(" Plans and billing "),n("h4",{class:"faq-cat",id:"faq-plans-title"},"Plans and billing"),n("div",{class:"panel-group",id:"faq-plans",role:"tablist","aria-label":"Plans and billing","aria-multiselectable":"true"},[n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingFreePlan"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-plans",href:"#freePlan","aria-expanded":"false","aria-controls":"freePlan"},"What is included in a free account?")])]),n("div",{id:"freePlan",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingFreePlan"},[n("div",{class:"panel-body p-3"},[n("p",null,"The default free allowance is 5 repositories you own and 2 GiB of source files in total. Core anonymization and reviewer access remain free. You can manually refresh a repository within your allowance and choose a dated expiration up to one year ahead."),n("p",null,"Repositories shared with you as a coauthor do not use your own slots. Gists and pull requests are not included in these repository quotas. The usage shown in your account is the allowance available on this instance.")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingAuthorPlans"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-plans",href:"#authorPlans","aria-expanded":"false","aria-controls":"authorPlans"},"What do monthly and annual author subscriptions include?")])]),n("div",{id:"authorPlans",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingAuthorPlans"},[n("div",{class:"panel-body p-3"},[n("p",null,[h("Both include 20 owned repositories and 10 GiB of source files in total. They also allow automatic refresh when enabled in repository settings and let the owner choose "),n("strong",null,"Never expire"),h(".")]),n("p",null,[h("Monthly and annual plans offer the same features with different billing periods. They renew automatically until you cancel renewal. Current prices are shown in "),n("a",{href:"/profile#settings-billing"},"Plans and billing"),h(".")]),n("p",null,"Paid plans do not change how anonymization works. File-size limits and other service safeguards still apply. Review your anonymized content before sharing it.")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingReviewPass"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-plans",href:"#reviewPass","aria-expanded":"false","aria-controls":"reviewPass"},"Can I pay for one repository without subscribing?")])]),n("div",{id:"reviewPass",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingReviewPass"},[n("div",{class:"panel-body p-3"},[n("p",null,"The author review pass covers one selected repository for 180 days, with a separate 2 GiB allowance and automatic refresh when enabled. It is a one-time purchase and does not renew automatically."),n("p",null,[h("Enter the anonymized ID of an existing repository you own in "),n("a",{href:"/profile#settings-billing"},"Plans and billing"),h(". A pass does not unlock Never expire and does not override the repository's chosen expiration date.")])])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingConferencePlans"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-plans",href:"#conferencePlans","aria-expanded":"false","aria-controls":"conferencePlans"},"Can a conference or lab pay for a group?")])]),n("div",{id:"conferencePlans",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingConferencePlans"},[n("div",{class:"panel-body p-3"},[n("p",null,"A conference review package provides a shared allowance of 100 repositories and 50 GiB for a review window of up to 180 days. The organizer pays once; the package does not renew automatically. A lab organizing a review can use this shared package too."),n("p",null,"The paid conference must be activated by payment before authors can submit under its Conference ID. Eligible repositories use the conference allowance before an author's personal allowance, so authors do not each need a subscription for that capacity."),n("p",null,"The package has a fixed review window. Never expire still requires the repository owner's monthly or annual author subscription. See the available offer when creating a conference.")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingPaidCoauthors"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-plans",href:"#paidCoauthors","aria-expanded":"false","aria-controls":"paidCoauthors"},"Does every coauthor need to pay?")])]),n("div",{id:"paidCoauthors",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingPaidCoauthors"},[n("div",{class:"panel-body p-3"},[n("p",null,"No. Coauthors can collaborate without buying a subscription. A shared repository uses its owner's allowance, unless a repository pass or paid conference covers it. It does not consume each coauthor's personal allowance."),n("p",null,"A coauthor's subscription does not increase the owner's allowance. If the owner's available capacity is exhausted, a coauthor's refresh or edit may also be blocked. Reviewers never need a paid account.")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingCapacity"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-plans",href:"#capacity","aria-expanded":"false","aria-controls":"capacity"},"What counts toward my allowance, and what happens at the limit?")])]),n("div",{id:"capacity",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingCapacity"},[n("div",{class:"panel-body p-3"},[n("p",null,"The repository limit counts work you own. Storage counts the source-file sizes reserved for those repositories, not just files a reviewer opens. Archived or failed repositories can still reserve capacity, and a refresh does not automatically reduce a previous storage reservation."),n("p",null,"At the repository limit you cannot add another repository to that allowance. An edit or refresh must also fit the available storage. Remove work you no longer need, choose a paid plan, or use an eligible conference allowance."),n("p",null,"Removing a repository releases its reservation when capacity is next checked. Expired repositories may continue to reserve capacity until cleanup. Reaching a limit does not itself delete existing review links.")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingNeverExpire"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-plans",href:"#neverExpire","aria-expanded":"false","aria-controls":"neverExpire"},"What happens to Never expire repositories if I stop subscribing?")])]),n("div",{id:"neverExpire",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingNeverExpire"},[n("div",{class:"panel-body p-3"},[n("p",null,[h("Never expire is available to monthly and annual author subscribers. If paid access ends, these repositories remain available for a "),n("strong",null,"90-day grace period"),h(", then expire and their hosted content is removed.")]),n("p",null,"Renewing during the grace period keeps them active. After expiration, you must renew and explicitly reactivate the repository; restoring content also requires access to its GitHub source. A repository does not become public on GitHub when it expires."),n("p",null,"Existing never-expiring repositories created before this billing policy retain their settings. Never expire is not a guarantee of perpetual service availability.")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingCancelPlan"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-plans",href:"#cancelPlan","aria-expanded":"false","aria-controls":"cancelPlan"},"How do I cancel, and what happens after paid access ends?")])]),n("div",{id:"cancelPlan",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingCancelPlan"},[n("div",{class:"panel-body p-3"},[n("p",null,[h("Open "),n("a",{href:"/profile#settings-billing"},"Plans and billing"),h(" and choose "),n("strong",null,"Manage billing and invoices"),h(" to manage renewal. Cancelling renewal keeps subscription benefits until the end of the paid period.")]),n("p",null,"After paid access ends, repositories fall back to another eligible allowance or the free allowance. Automatic refresh pauses on the free allowance; manual refresh remains available within its limits. Existing review links keep their configured expiration dates, except paid Never expire repositories, which follow the 90-day grace period described above."),n("p",null,"A repository pass or conference package ends after its paid window without automatic renewal.")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingPaymentHandling"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-plans",href:"#paymentHandling","aria-expanded":"false","aria-controls":"paymentHandling"},"How are payments handled?")])]),n("div",{id:"paymentHandling",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingPaymentHandling"},[n("div",{class:"panel-body p-3"},[n("p",null,[h("Stripe processes checkout and billing management. Anonymous GitHub does not store your card details. You can access billing management and invoices from "),n("a",{href:"/profile#settings-billing"},"Plans and billing"),h(".")]),n("p",null,[h("Paid access is activated after payment is confirmed. If checkout succeeds but your account has not updated, choose "),n("strong",null,"Refresh payment status"),h(" before trying another purchase. If paid plans are unavailable on this instance, no checkout is offered.")])])])])]),c(" Features "),n("h4",{class:"faq-cat"},[n("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[n("use",{href:"#project-icon-filter"})]),h("Features ")]),n("div",{class:"panel-group",id:"faq-features",role:"tablist","aria-multiselectable":"true"},[n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingFormats"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#formats","aria-expanded":"false","aria-controls":"formats"}," Which file formats are supported? ")])]),n("div",{id:"formats",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingFormats"},[n("div",{class:"panel-body p-3"},[n("p",null," Anonymous GitHub can display and render a wide variety of file types: "),n("ul",null,[n("li",null,[n("strong",null,"Text and source code"),h(": displayed with syntax highlighting")]),n("li",null,[n("strong",null,"Markdown"),h(": rendered as formatted HTML")]),n("li",null,[n("strong",null,"Images"),h(" (PNG, JPG, SVG, etc.): displayed inline")]),n("li",null,[n("strong",null,"PDFs"),h(": rendered directly in the browser")]),n("li",null,[n("strong",null,"Jupyter Notebooks"),h(": rendered with code cells and outputs")])]),n("p",null," Only text-based files are anonymized. Anonymous GitHub analyzes the content of each file to determine whether it is textual or binary. ")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingPR"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#pullRequests","aria-expanded":"false","aria-controls":"pullRequests"}," Can I anonymize pull requests? ")])]),n("div",{id:"pullRequests",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingPR"},[n("div",{class:"panel-body p-3"},[n("p",null," Yes. In addition to full repositories, Anonymous GitHub supports anonymizing individual pull requests. Simply paste the URL of a GitHub pull request when creating a new anonymized repository, and the system will automatically detect that it is a pull request and anonymize it accordingly. ")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingConference"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#conference","aria-expanded":"false","aria-controls":"conference"}," What is the Conference ID feature? ")])]),n("div",{id:"conference",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingConference"},[n("div",{class:"panel-body p-3"},[n("p",null," When creating an anonymized repository, you can associate it with a Conference ID. This allows conferences to define default anonymization settings (such as expiration dates) that are automatically applied to repositories submitted under that conference. If your conference provides a Conference ID, enter it during the anonymization setup. ")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingExpiration"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#expiration","aria-expanded":"false","aria-controls":"expiration"}," What happens when an anonymized repository expires? ")])]),n("div",{id:"expiration",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingExpiration"},[n("div",{class:"panel-body p-3"},[n("p",null," You can configure one of three expiration strategies when creating your anonymized repository: "),n("ul",null,[n("li",null,[n("strong",null,"Never expire"),h(": with a monthly or annual author subscription, no scheduled expiration while subscribed. A 90-day grace period applies after paid access ends. See "),n("a",{href:"#neverExpire"},"the subscription expiration policy"),h(".")]),n("li",null,[n("strong",null,"Redirect to GitHub"),h(": after expiration, visitors are redirected to the original GitHub repository.")]),n("li",null,[n("strong",null,"Remove content"),h(": after expiration, the anonymized content is deleted from the server.")])])])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingDownload"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#download","aria-expanded":"false","aria-controls":"download"}," Can I download an anonymized repository? ")])]),n("div",{id:"download",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingDownload"},[n("div",{class:"panel-body p-3"},[n("p",null," Yes. Anonymized repositories can be downloaded as a ZIP file. This is useful if reviewers want to build or test the code locally. The downloaded archive contains the fully anonymized version of the repository. ")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingUpdates"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#updates","aria-expanded":"false","aria-controls":"updates"}," Are updates to the original repository reflected in the anonymized version? ")])]),n("div",{id:"updates",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingUpdates"},[n("div",{class:"panel-body p-3"},[n("p",null," You can refresh the anonymized repository from GitHub without creating a new share link. Free accounts can request a manual refresh within their allowance. Automatic refresh requires an eligible paid allowance and must be enabled in repository settings. It pauses when the repository falls back to the free allowance. "),n("p",null," After changing files or contributor names, review your anonymization terms before sharing the updated content. If GitHub access is revoked or the source is deleted, the service cannot fetch updates. ")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingCLI"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#cli","aria-expanded":"false","aria-controls":"cli"}," Is there a command-line tool? ")])]),n("div",{id:"cli",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingCLI"},[n("div",{class:"panel-body p-3"},[n("p",null," Yes. Anonymous GitHub provides a CLI tool that lets you anonymize repositories locally, generating an anonymized ZIP file on your machine. Install it via npm: "),n("pre",{style:{"background-color":"var(--hover-bg-color)",padding:"12px","border-radius":"4px","margin-top":"8px",color:"var(--color)"}},[n("code",null,`npm install -g @tdurieux/anonymous_github
|
|
anonymous_github`)])])])])]),c(" Limitations "),n("h4",{class:"faq-cat"},[n("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})]),h("Limitations ")]),n("div",{class:"panel-group",id:"faq-limitations",role:"tablist","aria-multiselectable":"true"},[n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingLimitation"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-limitations",href:"#limitation","aria-expanded":"false","aria-controls":"limitation"}," What are the limitations of Anonymous GitHub? ")])]),n("div",{id:"limitation",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingLimitation"},[n("div",{class:"panel-body p-3"},[n("ul",null,[n("li",null," Anonymous GitHub only anonymizes text-based files. Binary files (compiled executables, archives, etc.) are served as-is without anonymization. "),n("li",null," Files larger than 8 MB are not supported. "),n("li",null," Static site generators (such as Jekyll) used with GitHub Pages are not fully supported, although Markdown files are converted to HTML. "),n("li",null," The anonymization of terms within source code may change the behavior of the program (e.g., if a replaced term appears in a string literal or identifier). ")])])])])]),c(" Privacy & Security "),n("h4",{class:"faq-cat"},[n("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})]),h("Privacy & Security ")]),n("div",{class:"panel-group",id:"faq-privacy",role:"tablist","aria-multiselectable":"true"},[n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingData"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-privacy",href:"#data","aria-expanded":"false","aria-controls":"data"}," How is my data handled? ")])]),n("div",{id:"data",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingData"},[n("div",{class:"panel-body p-3"},[n("p",null," Repository data is used to provide the anonymization service. If you purchase a plan, Stripe processes payment and billing information. When a repository is removed or expires, only its configuration is retained. This makes it easy to restore the repository if needed and ensures that no future repository reuses the same ID. ")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingPermissions"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-privacy",href:"#permissions","aria-expanded":"false","aria-controls":"permissions"}," Why does GitHub say Anonymous GitHub asks for write access? ")])]),n("div",{id:"permissions",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingPermissions"},[n("div",{class:"panel-body p-3"},[n("p",null,[h("The GitHub App has read-only access to the repositories you choose. You can change repository access on your "),n("a",{href:"/connections"},"GitHub connections"),h(" page.")]),n("p",null,"Legacy GitHub OAuth includes write access to private repositories because GitHub's OAuth scopes do not offer a read-only option for them. Existing OAuth anonymizations and gists can still use this connection."),n("p",null,"Anonymous GitHub reads repository content. It never pushes, modifies, or deletes files on GitHub.")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingViewer"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-privacy",href:"#viewer","aria-expanded":"false","aria-controls":"viewer"}," Can repository owners see who viewed their anonymized repository? ")])]),n("div",{id:"viewer",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingViewer"},[n("div",{class:"panel-body p-3"},[n("p",null," No. Only the total number of views is tracked as an incremental counter. It is not possible for the repository owner or for Anonymous GitHub to identify individual viewers. Reviewer anonymity is fully preserved. ")])])])]),c(" Self-Hosting "),n("h4",{class:"faq-cat"},[n("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[n("use",{href:"#project-icon-storage"})]),h("Self-Hosting ")]),n("div",{class:"panel-group",id:"faq-hosting",role:"tablist","aria-multiselectable":"true"},[n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingDeploy"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-hosting",href:"#deploy","aria-expanded":"false","aria-controls":"deploy"}," Can I deploy my own instance? ")])]),n("div",{id:"deploy",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingDeploy"},[n("div",{class:"panel-body p-3"},[n("p",null,[h(" Yes. Anonymous GitHub is fully open source (GPL-3.0) and supports Docker-based deployment. Billing is optional and disabled by default for self-hosted instances; paid hosted plans are not required to run your own server. You will need to configure a GitHub OAuth app and provide a GitHub token. Detailed setup instructions are available on the "),n("a",{href:"https://github.com/tdurieux/anonymous_github/",target:"_blank"},"GitHub repository"),h(". ")]),n("p",null," The basic steps are: "),n("ol",null,[n("li",null,"Clone the repository and install dependencies"),n("li",null,[h("Create a "),n("code",null,".env"),h(" file with your GitHub token, OAuth client ID, and client secret")]),n("li",null,[h("Run "),n("code",null,"docker-compose up -d")])])])])])]),n("div",{class:"text-center mt-5 mb-5 p-4",style:{"background-color":"var(--hover-bg-color)","border-radius":"8px"}},[n("p",{class:"mb-2",style:{"font-size":"1.1rem"}}," Still have questions? "),n("p",{class:"text-muted mb-0"},[h(" Open an issue on the "),n("a",{href:"https://github.com/tdurieux/anonymous_github/issues",target:"_blank"},"GitHub repository"),h(" and we'll be happy to help. ")])])])],-1)),t[2]||(t[2]=n("aside",{class:"paper-faq-help","aria-label":"More help"},[n("div",{class:"paper-faq-help-card"},[n("strong",null,"Still stuck?"),n("p",null,"Open an issue on GitHub about the service. For a paper's content, contact the conference instead."),n("a",{class:"btn btn-outline-ink btn-sm",target:"_blank",rel:"noopener",href:"https://github.com/tdurieux/anonymous_github/issues/new?template=issue_report.yml"},"Open an issue")])],-1))])])}var WI={class:"pr-page"},KI={class:"container paper-page pr-page-inner"},YI={class:"pr-header"},JI={class:"pr-title-row"},QI={class:"paper-page-title pr-title"},XI=["textContent"],ZI={key:1,class:"text-muted"},xI=["href"],e5={class:"pr-header-meta"},t5={key:0,class:"pr-meta-item"},n5=["textContent"],o5={key:1,class:"pr-meta-item"},s5=["textContent"],i5={key:2,class:"pr-meta-item"},r5=["textContent"],a5={key:0,class:"paper-tabs",role:"tablist"},l5=["aria-selected","tabindex"],d5=["textContent"],u5=["aria-selected","tabindex"],c5=["textContent"],p5={class:"paper-tab-content"},f5={key:0,role:"tabpanel",id:"gist-files-panel","aria-labelledby":"gist-files-tab"},m5={class:"pr-comments"},h5={class:"pr-comment"},v5={class:"pr-comment-head"},g5=["textContent"],y5={key:0,class:"pr-comment-date"},b5={key:0,class:"paper-table-empty"},w5={key:1,role:"tabpanel",id:"gist-comments-panel","aria-labelledby":"gist-comments-tab"},k5={class:"pr-comments"},C5={class:"pr-comment"},E5={class:"pr-comment-head"},S5={key:0,class:"pr-comment-author"},N5=["textContent"],R5=["textContent"],D5={key:0,class:"pr-comment-body"},T5={key:0,class:"paper-table-empty"};function Yl(e,t){let o=We("gist-file"),i=We("markdown");return l(),d("div",WI,[n("div",KI,[t[17]||(t[17]=n("div",{class:"paper-crumbs"},[n("a",{href:"/dashboard"},"Reviewer"),h(" \xA0/\xA0 "),n("span",{class:"here"},"Gist")],-1)),n("header",YI,[n("div",JI,[n("h1",QI,[e.details?.description?(l(),d("span",{key:0,textContent:u(e.details?.description)},null,8,XI)):c("v-if",!0),e.details?.description?c("v-if",!0):(l(),d("span",ZI,"Untitled gist"))]),e.options?.isAdmin||e.options?.isOwner?(l(),d("a",{key:0,class:"btn btn-sm","aria-label":"Edit",href:e.safeUrl("/gist-anonymize/"+e.gistId)},[...t[4]||(t[4]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),n("span",{class:"d-none d-md-inline"}," Edit",-1)])],8,xI)):c("v-if",!0)]),n("div",e5,[n("span",{class:O(["paper-pill",{good:e.details?.isPublic,warn:!e.details?.isPublic}])},u(e.details?.isPublic?"Public":"Secret"),3),e.details?.ownerLogin?(l(),d("span",t5,[t[5]||(t[5]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-user"})],-1)),t[6]||(t[6]=h(" @",-1)),n("span",{textContent:u(e.details?.ownerLogin)},null,8,n5)])):c("v-if",!0),e.details?.updatedDate?(l(),d("span",o5,[t[7]||(t[7]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),t[8]||(t[8]=h()),n("span",{textContent:u(e.fmt?.date(e.details?.updatedDate))},null,8,s5)])):c("v-if",!0),e.details?.anonymizeDate?(l(),d("span",i5,[t[9]||(t[9]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})],-1)),t[10]||(t[10]=h(" Anonymized ",-1)),n("span",{textContent:u(e.fmt?.date(e.details?.anonymizeDate))},null,8,r5)])):c("v-if",!0)])]),e.details?.files&&e.details?.files?.length||e.details?.comments&&e.details?.comments?.length?(l(),d("nav",a5,[e.details?.files?(l(),d("button",{key:0,class:O(["paper-tab",{active:e.tabState?.active=="files"}]),type:"button",role:"tab",id:"gist-files-tab","aria-selected":e.tabState?.active==="files","aria-controls":"gist-files-panel",tabindex:e.tabState?.active==="files"?0:-1,onKeydown:t[0]||(t[0]=s=>e.previewTabKeydown(s)),onClick:t[1]||(t[1]=s=>e.tabState.active="files")},[t[11]||(t[11]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-type-gist"})],-1)),n("span",{textContent:u(e.fmt.plural(e.details?.files?.length,{0:"No files",one:"1 file",other:"{} files"}))},null,8,d5)],42,l5)):c("v-if",!0),e.details?.comments?(l(),d("button",{key:1,class:O(["paper-tab",{active:e.tabState?.active=="comments"}]),type:"button",role:"tab",id:"gist-comments-tab","aria-selected":e.tabState?.active==="comments","aria-controls":"gist-comments-panel",tabindex:e.tabState?.active==="comments"?0:-1,onKeydown:t[2]||(t[2]=s=>e.previewTabKeydown(s)),onClick:t[3]||(t[3]=s=>e.tabState.active="comments")},[t[12]||(t[12]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-comment"})],-1)),n("span",{textContent:u(e.fmt.plural(e.details?.comments?.length,{0:"No comments",one:"1 comment",other:"{} comments"}))},null,8,c5)],42,u5)):c("v-if",!0)])):c("v-if",!0),n("div",p5,[e.details?.files&&e.tabState?.active=="files"?(l(),d("div",f5,[n("ul",m5,[(l(!0),d(W,null,oe(e.details?.files,(s,r)=>(l(),d("li",h5,[n("div",v5,[n("strong",{textContent:u(s?.filename)},null,8,g5),s?.language?(l(),d("span",y5,u(s?.language),1)):c("v-if",!0)]),De(o,{file:s},null,8,["file"])]))),256)),e.details?.files?.length?c("v-if",!0):(l(),d("li",b5,[...t[13]||(t[13]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-file"})],-1),n("span",null,"No files in this gist.",-1)])]))])])):c("v-if",!0),e.details?.comments&&e.tabState?.active=="comments"?(l(),d("div",w5,[n("ul",k5,[(l(!0),d(W,null,oe(e.details?.comments,(s,r)=>(l(),d("li",C5,[n("div",E5,[s?.author?(l(),d("span",S5,[t[14]||(t[14]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-user"})],-1)),t[15]||(t[15]=h(" @",-1)),n("span",{textContent:u(s?.author)},null,8,N5)])):c("v-if",!0),s?.updatedDate?(l(),d("span",{key:1,class:"pr-comment-date",textContent:u(e.fmt?.date(s?.updatedDate))},null,8,R5)):c("v-if",!0)]),s?.body?(l(),d("div",D5,[De(i,{content:s?.body},null,8,["content"])])):c("v-if",!0)]))),256)),e.details?.comments?.length?c("v-if",!0):(l(),d("li",T5,[...t[16]||(t[16]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-comment"})],-1),n("span",null,"No comments on this gist.",-1)])]))])])):c("v-if",!0)])])])}var _5={key:0,class:"nav-support",href:"https://ko-fi.com/tdurieux",target:"_blank",rel:"noopener",title:"Donate on Ko-fi to help cover hosting costs","aria-label":"Donate on Ko-fi to help cover hosting costs"},A5={key:1,class:"nav-heart-m",href:"https://ko-fi.com/tdurieux",target:"_blank",rel:"noopener","aria-label":"Support Anonymous GitHub",title:"Support Anonymous GitHub"},O5=["aria-label","title"],P5={class:"ui-icon","aria-hidden":"true"},I5=["href"],M5={key:3,class:"nav-signin-m",href:"/signin",target:"_self","aria-label":"Sign in with GitHub"},V5={class:"collapse navbar-collapse",id:"navbarSupportedContent"},q5={class:"navbar-nav mr-auto smooth-scroll"},L5={key:0,class:"nav-item nav-home-item"},$5={key:1,class:"nav-item"},U5={key:2,class:"nav-item"},F5={key:3,class:"nav-item"},B5={class:"nav-item"},z5={key:4,class:"nav-item"},H5={class:"navbar-nav"},j5={key:0,class:"nav-item d-lg-none"},G5={key:1,class:"nav-item"},W5={key:2,class:"nav-item"},K5={key:3,class:"nav-item nav-signin-item"},Y5={key:4,class:"nav-item"},J5={key:5,class:"nav-item dropdown user-chip-wrap"},Q5={class:"nav-link user-chip dropdown-toggle",href:"#",id:"navbarDropdownMenuLink",role:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},X5=["src"],Z5={class:"user-chip-name"},x5={class:"dropdown-menu dropdown-menu-right user-menu","aria-labelledby":"navbarDropdownMenuLink"},e8={class:"dropdown-header"},t8={key:0,class:"dropdown-item um-extra",href:"https://ko-fi.com/tdurieux",target:"_blank",rel:"noopener"},n8=["innerHTML"],o8=["disabled"],s8={key:0,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},i8={class:"email-prompt-actions"},r8=["disabled"],a8=["disabled"],l8=["disabled"];function Jl(e,t){return l(),d(W,null,[n("nav",{class:O(["navbar navbar-expand-lg",{"navbar-dark":e.isDarkMode}])},[t[27]||(t[27]=n("a",{class:"navbar-brand",href:"/"},[h("Anonymous "),n("em",null,"GitHub")],-1)),e.headerShowSupport?(l(),d("a",_5,[...t[9]||(t[9]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-heart"})],-1),n("span",{class:"nav-support-label"},"Support",-1)])])):c("v-if",!0),/^\/(r|w|pr|gist)\//.test(e.path||"")?c("v-if",!0):(l(),d("a",A5,[...t[10]||(t[10]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-heart"})],-1)])])),/^\/(r|w|pr|gist)\//.test(e.path||"")?c("v-if",!0):(l(),d("button",{key:2,type:"button",class:"nav-theme-m","aria-label":e.isDarkMode?"Switch to light mode":"Switch to dark mode",title:e.isDarkMode?"Switch to light mode":"Switch to dark mode",onClick:t[0]||(t[0]=o=>e.darkMode(!e.isDarkMode))},[(l(),d("svg",P5,[n("use",{href:e.isDarkMode?"#ui-icon-sun":"#ui-icon-moon"},null,8,I5)]))],8,O5)),!e.user&&!/^\/(r|w|pr|gist)\//.test(e.path||"")?(l(),d("a",M5,[...t[11]||(t[11]=[n("i",{class:"fab fa-github","aria-hidden":"true"},null,-1),h("Sign in",-1)])])):c("v-if",!0),t[28]||(t[28]=n("button",{class:"navbar-toggler",type:"button","data-toggle":"collapse","data-target":"#navbarSupportedContent","aria-controls":"navbarSupportedContent","aria-expanded":"false","aria-label":"Toggle navigation"},[n("span",{class:"navbar-toggler-icon"})],-1)),n("div",V5,[n("ul",q5,[e.user?c("v-if",!0):(l(),d("li",L5,[n("a",{class:O(["nav-link",{active:e.path=="/"}]),href:"/"},[...t[12]||(t[12]=[n("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-home"})],-1),h(" Home ",-1)])],2)])),e.user?(l(),d("li",$5,[n("a",{class:O(["nav-link",{active:e.path=="/dashboard"}]),href:"/dashboard"},[...t[13]||(t[13]=[n("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-grid"})],-1),h(" My work ",-1)])],2)])):c("v-if",!0),e.user?(l(),d("li",U5,[n("a",{class:O(["nav-link",{active:e.path=="/anonymize"||e.path=="/pull-request-anonymize"}]),href:"/anonymize"},[...t[14]||(t[14]=[n("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})],-1),h(" Anonymize ",-1)])],2)])):c("v-if",!0),e.user?(l(),d("li",F5,[n("a",{class:O(["nav-link",{active:e.path=="/conferences"||e.path?.startsWith("/conference/")}]),href:"/conferences"},[...t[15]||(t[15]=[n("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[n("use",{href:"#project-icon-conference"})],-1),h(" Conferences ",-1)])],2)])):c("v-if",!0),n("li",B5,[n("a",{class:O(["nav-link",{active:e.path=="/faq"}]),href:"/faq"},[...t[16]||(t[16]=[n("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-help"})],-1),h("FAQ",-1)])],2)]),e.user&&e.user?.isAdmin?(l(),d("li",z5,[n("a",{class:O(["nav-link",{active:e.path?.indexOf("/admin")===0}]),href:"/admin/"},[...t[17]||(t[17]=[n("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-user-shield"})],-1),h(" Admin ",-1)])],2)])):c("v-if",!0)]),n("ul",H5,[e.user||!e.isReviewerRoute?(l(),d("li",j5,[...t[18]||(t[18]=[n("a",{class:"nav-link nav-icon",target:"_blank",href:"https://github.com/tdurieux/anonymous_github/",title:"Anonymous GitHub source code","aria-label":"Anonymous GitHub source code on GitHub",rel:"noopener","data-offset":"30"},[n("i",{class:"fab fa-github","aria-hidden":"true"})],-1)])])):c("v-if",!0),c(` "Report a bug" is about this service. Reviewers who land on an
|
|
anonymized repository often think it is about the paper, so the
|
|
label names the service and the tooltip says who to contact. `),t[26]||(t[26]=me('<li class="nav-item d-none d-lg-block"><a class="nav-link" target="_blank" rel="noopener" href="https://github.com/tdurieux/anonymous_github/issues/new?template=issue_report.yml" title="Report a problem with the Anonymous GitHub service. Questions about an anonymized repository or paper go to its authors." data-offset="30"><svg class="ui-icon d-lg-none mr-1" aria-hidden="true"><use href="#ui-icon-bug"></use></svg>Report a bug </a></li><li class="nav-item nav-support-item d-none d-lg-block"><a class="nav-link nav-support-inline" href="https://ko-fi.com/tdurieux" target="_blank" rel="noopener" title="Donate on Ko-fi to help cover hosting costs"><svg class="ui-icon nav-heart" aria-hidden="true"><use href="#ui-icon-heart"></use></svg>Support </a></li>',2)),e.isDarkMode?c("v-if",!0):(l(),d("li",G5,[n("button",{type:"button",class:"nav-link nav-icon",title:"Switch to dark mode","aria-label":"Switch to dark mode",onClick:t[1]||(t[1]=o=>{e.darkMode(!0)})},[...t[19]||(t[19]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-moon"})],-1)])])])),e.isDarkMode?(l(),d("li",W5,[n("button",{type:"button",class:"nav-link nav-icon",title:"Switch to light mode","aria-label":"Switch to light mode",onClick:t[2]||(t[2]=o=>{e.darkMode(!1)})},[...t[20]||(t[20]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-sun"})],-1)])])])):c("v-if",!0),!e.user&&!e.isReviewerRoute?(l(),d("li",K5,[...t[21]||(t[21]=[n("a",{class:"nav-link btn-signin",target:"_self",href:"/signin","data-offset":"30"},[n("i",{class:"fab fa-github mr-1"}),h(" Sign in ")],-1)])])):c("v-if",!0),e.user?.username&&e.headerCanUpgrade&&!e.headerBillingPending?(l(),d("li",Y5,[n("a",{class:"nav-link nav-upgrade",href:"/profile?upgrade=1",onClick:t[3]||(t[3]=ae(o=>e.openHeaderUpgrade(),["prevent"]))},"Upgrade")])):c("v-if",!0),e.user?(l(),d("li",J5,[n("a",Q5,[e.user?.photo?(l(),d("img",{key:0,width:"22",height:"22",class:"rounded-circle",src:e.safeUrl(e.user?.photo)},null,8,X5)):c("v-if",!0),n("span",Z5,u(e.user?.username),1)]),n("div",x5,[n("h6",e8,"Signed in as @"+u(e.user?.username),1),t[23]||(t[23]=me('<a class="dropdown-item" href="/profile"><svg class="ui-icon" aria-hidden="true"><use href="#project-icon-filter"></use></svg><span>Settings<small>Defaults, quotas, account</small></span></a><a class="dropdown-item" href="/connections"><i class="fab fa-github" aria-hidden="true"></i><span>GitHub connections<small>Repository access and OAuth</small></span></a><a class="dropdown-item" href="/claim"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-link"></use></svg><span>Claim an anonymization<small>Attach an existing mirror to your account</small></span></a><div class="dropdown-divider"></div><a class="dropdown-item" href="https://github.com/tdurieux/anonymous_github/issues/new?template=issue_report.yml" target="_blank" rel="noopener"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-bug"></use></svg><span>Report a bug<small>About this service, not a paper</small></span></a><a class="dropdown-item um-extra" href="https://github.com/tdurieux/anonymous_github/" target="_blank" rel="noopener"><i class="fab fa-github" aria-hidden="true"></i><span>Source code</span></a>',6)),e.headerShowSupport?(l(),d("a",t8,[...t[22]||(t[22]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-heart"})],-1),n("span",null,"Support the project",-1)])])):c("v-if",!0),t[24]||(t[24]=n("div",{class:"dropdown-divider"},null,-1)),t[25]||(t[25]=n("a",{class:"dropdown-item",href:"/api/user/logout",target:"_self"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-logout"})]),n("span",null,"Sign out")],-1))])])):c("v-if",!0)])])],2),e.generalMessage?(l(),d("div",{key:0,class:"navbar shadow generalMessage",innerHTML:e.sanitize(e.generalMessage)},null,8,n8)):c("v-if",!0),e.emailPromptOpen?(l(),d("dialog",{key:1,id:"email-prompt",class:"email-prompt","aria-labelledby":"email-prompt-title","aria-describedby":"email-prompt-reason",onCancel:t[8]||(t[8]=ae(o=>e.respondToEmailPrompt("later"),["prevent"]))},[n("form",{onSubmit:t[7]||(t[7]=ae(o=>e.respondToEmailPrompt("save"),["prevent"]))},[t[29]||(t[29]=n("h2",{id:"email-prompt-title"},"Stay informed about access problems",-1)),t[30]||(t[30]=n("p",{id:"email-prompt-reason"},"Get email alerts when your GitHub token or repository access fails.",-1)),t[31]||(t[31]=n("label",{for:"email-prompt-address"},"Email address",-1)),T(n("input",{id:"email-prompt-address",class:"form-control",type:"email",autocomplete:"email",maxlength:"254",required:"","onUpdate:modelValue":t[4]||(t[4]=o=>e.emailPromptAddress=o),disabled:e.emailPromptBusy},null,8,o8),[[ot,e.emailPromptAddress]]),e.emailPromptError?(l(),d("p",s8,u(e.emailPromptError),1)):c("v-if",!0),n("div",i8,[n("button",{type:"button",class:"btn btn-outline-ink",disabled:e.emailPromptBusy,onClick:t[5]||(t[5]=o=>e.respondToEmailPrompt("later"))},"Remind me later",8,r8),n("button",{type:"button",class:"btn btn-outline-ink",disabled:e.emailPromptBusy,onClick:t[6]||(t[6]=o=>e.respondToEmailPrompt("never"))},"Never",8,a8),n("button",{type:"submit",class:"btn btn-ink",disabled:e.emailPromptBusy},u(e.emailPromptBusy?"Saving\u2026":"Save"),9,l8)])],32)],32)):c("v-if",!0)],64)}var d8={class:"paper-landing"},u8={class:"paper-hero"},c8={class:"paper-hero-copy"},p8={class:"paper-cta-row"},f8={key:0,href:"/signin",target:"_self",class:"btn-hero"},m8={key:1,href:"/anonymize",class:"btn-hero"},h8={class:"paper-stats paper-wrap",id:"metrics","aria-label":"Usage over the last 60 days"},v8={class:"paper-stats-grid"},g8={class:"paper-stat-label"},y8={key:0,class:"paper-stat-delta"},b8={class:"demo paper-wrap","aria-label":"Try redaction"},w8={class:"demo-terms"},k8={class:"demo-panes"},C8={class:"pane"},E8={class:"demo-input-wrap"},S8={class:"pane-body demo-backdrop","aria-hidden":"true"},N8={key:0,class:"demo-match"},R8={class:"pane pane-after"},D8={class:"pane-header"},T8={class:"pane-url"},_8={class:"meta-redact"},A8={class:"pane-body demo-output","aria-live":"polite"},O8=["title"],P8={class:"paper-features paper-wrap","aria-label":"Product features"},I8={class:"paper-features-list",role:"tablist","aria-label":"Features","aria-orientation":"vertical"},M8=["onClick","onKeydown","id","aria-controls","aria-selected","tabindex"],V8={class:"paper-eyebrow"},q8={class:"paper-feature-title"},L8={class:"paper-feature-more"},$8={class:"paper-feature-title paper-feature-title-m","aria-hidden":"true"},U8=["href","target"],F8={class:"paper-features-stage"},B8=["id","aria-labelledby"],z8={class:"paper-frame"},H8={class:"paper-frame-bar","aria-hidden":"true"},j8={class:"url"},G8=["aria-label"],W8={key:0,class:"fm-form"},K8={key:1,class:"fm-viewer"},Y8={key:2,class:"fm-dash"},J8={class:"paper-footer"},Q8={class:"paper-footer-inner"},X8={class:"paper-footer-col"},Z8={key:0,href:"/dashboard"},x8={key:1,href:"/conferences"},eM={class:"paper-footer-foot"};function Ql(e,t){return l(),d("div",d8,[c(" Hero: copy on the left, the product on the right "),n("section",u8,[n("div",c8,[t[4]||(t[4]=n("div",{class:"paper-eyebrow"},"For double-blind peer review",-1)),t[5]||(t[5]=n("h1",{class:"hero-title"},[h(" Share the code,"),n("br"),n("span",{class:"accent"},"not the author.")],-1)),t[6]||(t[6]=n("p",{class:"hero-subtitle"}," Anonymous GitHub makes a read-only mirror of your repository, pull request, or gist. It redacts the terms you choose in text files, so reviewers can browse your artifact through an anonymous link. ",-1)),n("div",p8,[e.user?c("v-if",!0):(l(),d("a",f8,[...t[2]||(t[2]=[n("i",{class:"fab fa-github mr-2","aria-hidden":"true"},null,-1),h("Sign in with GitHub ",-1)])])),e.user?(l(),d("a",m8," Anonymize a repository \u2192 ")):c("v-if",!0),t[3]||(t[3]=n("a",{class:"paper-link-arrow",target:"_self",href:"https://anonymous.4open.science/r/840c8c57-3c32-451e-bf12-0e20be300389/"},"See an anonymized repository \u2192",-1))]),t[7]||(t[7]=n("ul",{class:"paper-reassure"},[n("li",null,"Free, open source"),n("li",null,"Read-only access"),n("li",null,"Set an expiry date")],-1))]),t[8]||(t[8]=n("div",{class:"paper-hero-shot"},[n("div",{class:"paper-frame"},[n("div",{class:"paper-frame-bar","aria-hidden":"true"},[n("span",{class:"dots"},[n("i"),n("i"),n("i")]),n("span",{class:"url"},"anonymous.4open.science/r/paper-7f2a")]),n("div",{class:"hero-mock",role:"img","aria-label":"A reviewer browsing an anonymized repository: the author, affiliation, and email in the README are replaced by anonymous terms"},[n("div",{class:"hero-mock-tree","aria-hidden":"true"},[n("div",{class:"hero-mock-tree-title"},"Files"),n("div",{class:"hero-mock-row is-folder"},[n("svg",{viewBox:"0 0 16 16"},[n("path",{d:"M1.5 3.5h4l1.5 1.5h7.5v8h-13z"})]),h("data")]),n("div",{class:"hero-mock-row is-folder"},[n("svg",{viewBox:"0 0 16 16"},[n("path",{d:"M1.5 3.5h4l1.5 1.5h7.5v8h-13z"})]),h("experiments")]),n("div",{class:"hero-mock-row is-folder"},[n("svg",{viewBox:"0 0 16 16"},[n("path",{d:"M1.5 3.5h4l1.5 1.5h7.5v8h-13z"})]),h("src")]),n("div",{class:"hero-mock-row"},[n("svg",{viewBox:"0 0 16 16"},[n("path",{d:"M3.5 1.5h6l3 3v10h-9z"})]),h("LICENSE")]),n("div",{class:"hero-mock-row is-active"},[n("svg",{viewBox:"0 0 16 16"},[n("path",{d:"M3.5 1.5h6l3 3v10h-9z"})]),h("README.md")]),n("div",{class:"hero-mock-row"},[n("svg",{viewBox:"0 0 16 16"},[n("path",{d:"M3.5 1.5h6l3 3v10h-9z"})]),h("requirements.txt")])]),n("div",{class:"hero-mock-doc","aria-hidden":"true"},[n("div",{class:"hero-mock-doc-bar"},[n("strong",null,"README.md"),n("span",{class:"hero-mock-count"},"3 redacted")]),n("div",{class:"hero-mock-doc-body"},[n("div",{class:"hero-mock-h1"},"DeepLearnUtils"),n("p",null,[h("Developed by "),n("span",{class:"redact",role:"img","aria-label":"Redacted term 1"},[n("i",null,"1")]),h(" at "),n("span",{class:"redact",role:"img","aria-label":"Redacted term 2"},[n("i",null,"2")]),h(".")]),n("p",null,"Utilities for reproducing the paper\u2019s experiments."),n("div",{class:"hero-mock-h2"},"Quick start"),n("pre",null,`pip install -r requirements.txt
|
|
python experiments/run.py`),n("p",null,[h("Contact: "),n("span",{class:"redact",role:"img","aria-label":"Redacted term 3"},[n("i",null,"3")])])])])])])],-1))]),c(" Live stats "),n("section",h8,[t[9]||(t[9]=n("div",{class:"paper-stats-meta"},[n("div",{class:"paper-stats-meta-left"},[n("span",{class:"paper-stats-dot","aria-hidden":"true"}),h(" Live \xB7 last 60 days \xB7 updated daily")]),n("div",{class:"paper-stats-meta-right"},"Used by authors at ICSE \xB7 FSE \xB7 OOPSLA")],-1)),n("div",v8,[(l(!0),d(W,null,oe(e.cards,(o,i)=>(l(),d("div",{class:"paper-stat-card",key:o?.key},[n("div",{class:O(["paper-stat-value",{"is-pending":!e.stat}])},u(e.stat?e.fmt?.bigNum(o?.total):"\u2014"),3),n("div",g8,u(o?.label),1),e.history[o?.key].bars?.length>1?(l(),d("div",y8," +"+u(e.fmt?.number(e.history[o?.key].deltaToday))+" today ",1)):c("v-if",!0)]))),128))])]),c(" Before / after "),t[25]||(t[25]=n("section",{class:"paper-section-head paper-wrap"},[n("div",null,[n("div",{class:"paper-eyebrow"},"Try it"),n("h2",null,[h("The same repository, "),n("em",null,"minus you.")])]),n("p",null," Names, affiliations, emails, and any term you list are replaced across the README, source files, notebooks, and PDF links. Reviewers browse the real thing, not a zip. ")],-1)),n("div",b8,[n("div",w8,[t[10]||(t[10]=n("label",{for:"demo-terms"},[h("Terms to redact "),n("span",null,"comma-separated, try adding your own")],-1)),T(n("input",{id:"demo-terms",type:"text","onUpdate:modelValue":t[0]||(t[0]=o=>e.demoTerms=o),spellcheck:"false",autocomplete:"off"},null,512),[[ot,e.demoTerms]])]),n("div",k8,[n("div",C8,[t[12]||(t[12]=n("div",{class:"pane-header"},[n("span",{class:"pane-label"},[h("Your repository "),n("span",{class:"pane-edit-hint"},"\xB7 editable")]),n("span",{class:"pane-url"},"github.com/jane-smith/DeepLearnUtils")],-1)),n("div",E8,[n("div",S8,[(l(!0),d(W,null,oe(e.demoParts(),(o,i)=>(l(),d(W,{key:i},[o.redacted?(l(),d("mark",N8,u(o.original),1)):(l(),d(W,{key:1},[h(u(o.text),1)],64))],64))),128)),t[11]||(t[11]=h("\u200B",-1))]),T(n("textarea",{class:"pane-body demo-input","onUpdate:modelValue":t[1]||(t[1]=o=>e.demoText=o),spellcheck:"false","aria-label":"Sample README to anonymize"},null,512),[[ot,e.demoText]])])]),n("div",R8,[n("div",D8,[t[13]||(t[13]=n("span",{class:"pane-label"},"What reviewers see",-1)),n("span",T8,[n("span",_8,u(e.demoCount())+" redacted",1)])]),n("div",A8,[(l(!0),d(W,null,oe(e.demoParts(),(o,i)=>(l(),d(W,{key:i},[o.redacted?(l(),d("span",{key:0,class:"redact-chip",title:"Replaces \u201C"+o.original+"\u201D"},u(o.text),9,O8)):(l(),d(W,{key:1},[h(u(o.text),1)],64))],64))),128))])])])]),c(" What you get: one screenshot, three tabs "),t[26]||(t[26]=n("section",{class:"paper-section-head paper-wrap",id:"about"},[n("div",null,[n("div",{class:"paper-eyebrow"},"What you get"),n("h2",null,"Anonymize, review, manage.")]),n("p",null," Terms are redacted in text files. Enabled images and PDFs are served unchanged, so review them for identifying content before sharing. Monitor your mirror, update it, or remove it when the review is over. ")],-1)),n("section",P8,[n("div",I8,[(l(!0),d(W,null,oe(e.features,(o,i)=>(l(),d("div",{class:O(["paper-feature",{"is-on":e.feature===o?.key}]),key:o?.key},[n("button",{type:"button",class:"paper-feature-tab",role:"tab",onClick:s=>e.selectFeature(o.key),onKeydown:s=>e.featureKeydown(s,i),id:"feature-tab-"+o?.key,"aria-controls":"feature-panel-"+o?.key,"aria-selected":e.feature===o?.key,tabindex:e.feature===o?.key?0:-1},[n("span",V8,u(o?.num)+" \xB7 "+u(o?.eyebrow),1),n("span",q8,u(o?.title)+" "+u(o?.accent),1)],40,M8),n("div",L8,[n("span",$8,u(o?.title)+" "+u(o?.accent),1),n("p",null,u(o?.text),1),n("a",{class:"paper-link-arrow",href:e.safeUrl(e.featureHref(o)),target:e.featureTarget(o)},u(o?.cta)+" \u2192",9,U8)])],2))),128))]),n("div",F8,[(l(!0),d(W,null,oe(e.features,(o,i)=>T((l(),d("div",{class:"paper-feature-panel",role:"tabpanel",key:o?.key,id:"feature-panel-"+o?.key,"aria-labelledby":"feature-tab-"+o?.key},[n("div",z8,[n("div",H8,[t[14]||(t[14]=n("span",{class:"dots"},[n("i"),n("i"),n("i")],-1)),n("span",j8,u(o?.url),1)]),n("div",{class:O(["feat-mock","is-"+o?.key]),role:"img","aria-label":o?.alt},[o?.key==="anonymize"?(l(),d("div",W8,[...t[15]||(t[15]=[me('<div class="fm-label">GitHub repository</div><div class="fm-input">github.com/jane-smith/DeepLearnUtils</div><div class="fm-label">Terms to redact</div><div class="fm-chips"><span>Jane Smith</span><span>MIT CSAIL</span><span>jane.smith@mit.edu</span><span class="fm-chip-add">+ Add term</span></div><div class="fm-row"><div><div class="fm-label">Reviewers can see</div><div class="fm-toggles"><span class="is-on">Images</span><span class="is-on">PDFs</span><span>Links</span><span class="is-on">Notebooks</span></div></div><div><div class="fm-label">Expires</div><div class="fm-input fm-input-sm">Mar 31, 2027</div></div></div><div class="fm-actions"><span class="fm-share">anonymous.4open.science/r/paper-7f2a</span><span class="fm-btn">Anonymize repository</span></div>',6)])])):o?.key==="review"?(l(),d("div",K8,[...t[16]||(t[16]=[me(`<div class="fm-tree"><div class="is-folder">data</div><div class="is-folder">src</div><div class="is-file is-active">train.py</div><div class="is-file">README.md</div><div class="is-file">LICENSE</div></div><div class="fm-code"><div class="fm-code-bar"><span><b>train.py</b></span><span>48 lines \xB7 Python</span></div><pre><span class="ln">1</span><span class="c"># Training loop for DeepLearnUtils</span>
|
|
<span class="ln">2</span><span class="c"># Author: <span class="redact">XXXX-1</span>, <span class="redact">XXXX-2</span></span>
|
|
<span class="ln">3</span><span class="k">import</span> torch
|
|
<span class="ln">4</span><span class="k">from</span> utils <span class="k">import</span> load_config
|
|
<span class="ln">5</span>
|
|
<span class="ln">6</span><span class="k">def</span> <span class="f">train</span>(config):
|
|
<span class="ln">7</span> model = build_model(config)
|
|
<span class="ln">8</span> <span class="k">for</span> epoch <span class="k">in</span> range(config.epochs):
|
|
<span class="ln">9</span> loss = step(model)
|
|
<span class="ln">10</span> log(<span class="s">"epoch %d: %.3f"</span>, epoch, loss)</pre></div>`,2)])])):(l(),d("div",Y8,[...t[17]||(t[17]=[me('<div class="fm-dash-head"><span>Project</span><span>Status</span><span>Views</span><span>Expires</span></div><div class="fm-dash-row"><span><b>DeepLearnUtils</b><i>paper-7f2a \xB7 ICSE 2027</i></span><span class="st is-ready">Ready</span><span>41</span><span>Mar 31, 2027</span></div><div class="fm-dash-row"><span><b>vision-bench#212</b><i>pull request \xB7 FSE 2027</i></span><span class="st is-ready">Ready</span><span>12</span><span>Never</span></div><div class="fm-dash-row"><span><b>graph-repair</b><i>gr-91ab</i></span><span class="st is-progress">Updating</span><span>5</span><span>Jan 5, 2027</span></div><div class="fm-dash-row is-muted"><span><b>JarSift</b><i>OOPSLA 2025</i></span><span class="st is-expired">Expired</span><span>72</span><span>Sep 28, 2026</span></div>',5)])]))],10,G8)])],8,B8)),[[Y,e.feature===o?.key]])),128))])]),c(" FAQ teaser "),t[27]||(t[27]=me('<section class="paper-qa paper-wrap" aria-labelledby="qa-heading"><div><div class="paper-eyebrow">Before you sign in</div><h2 id="qa-heading">The questions that come up most.</h2><a class="paper-link-arrow" href="/faq">Read the full FAQ \u2192</a></div><div><div class="q"><a href="/faq#permissions">What access does GitHub sign-in require?</a><p> The GitHub App has read-only access to gists and the repositories you choose. Legacy OAuth uses broader permissions. Anonymous GitHub never writes to your repositories. </p></div><div class="q"><a href="/faq#formats">Which file formats are supported?</a><p> Source code with syntax highlighting, Markdown, Jupyter notebooks, PDFs, images, and GitHub Pages sites. Text files are anonymized; enabled images and PDFs are served unchanged. </p></div><div class="q"><a href="/faq#expiration">What happens when an anonymized repository expires?</a><p> You choose: the mirror is removed, or visitors are redirected to the original GitHub repository once the review is over. </p></div></div></section><section class="paper-cta paper-wrap" aria-labelledby="cta-heading"><div><h2 id="cta-heading">Ready for review?</h2><p>Create an anonymous mirror in a couple of minutes. Reviewers just open the link.</p></div><div class="paper-cta-actions"><a class="btn-hero" href="/signin" target="_self"><i class="fab fa-github" aria-hidden="true"></i> Sign in with GitHub</a><a class="paper-link-arrow" href="/faq">Read the FAQ \u2192</a></div></section>',2)),n("footer",J8,[n("div",Q8,[t[21]||(t[21]=n("div",{class:"paper-footer-brand"},[n("div",{class:"paper-footer-mark"},[h("Anonymous "),n("em",null,"GitHub")]),n("p",{class:"paper-footer-tag"}," A read-only, identity-stripped mirror of your repository, built for double-anonymous peer review. ")],-1)),n("div",X8,[t[18]||(t[18]=n("div",{class:"paper-footer-head"},"Product",-1)),t[19]||(t[19]=n("a",{href:"/anonymize"},"Anonymize",-1)),e.user?(l(),d("a",Z8,"My work")):c("v-if",!0),e.user?(l(),d("a",x8,"Conferences")):c("v-if",!0),t[20]||(t[20]=n("a",{href:"/faq"},"FAQ",-1))]),t[22]||(t[22]=me('<div class="paper-footer-col"><div class="paper-footer-head">Project</div><a href="https://github.com/tdurieux/anonymous_github/" target="_blank" rel="noopener">Source code</a><a href="https://github.com/tdurieux/anonymous_github/issues/new?template=issue_report.yml" target="_blank" rel="noopener">Report a bug</a><a href="https://github.com/sponsors/tdurieux/" target="_blank" rel="noopener">Support</a></div><div class="paper-footer-col"><div class="paper-footer-head">Contact</div><a href="mailto:tdurieux@anonymous.4open.science">Email maintainer</a><a href="https://github.com/tdurieux" target="_blank" rel="noopener">@tdurieux</a></div>',2))]),t[24]||(t[24]=n("div",{class:"paper-footer-rule"},null,-1)),n("div",eM,[n("span",null,"\xA9 "+u(e.year||2026)+" Anonymous GitHub \xB7 GPL-3.0 licensed",1),t[23]||(t[23]=n("span",{class:"paper-footer-meta"},"Built for reviewers, by researchers.",-1))])])])}var tM={class:"paper-empty"},nM={class:"paper-empty-inner"},oM={key:0,class:"paper-eyebrow"},sM={key:1,class:"paper-eyebrow"},iM={key:2,class:"paper-empty-title"},rM=["textContent"];function Xl(e,t){return l(),d("div",tM,[n("div",nM,[e.error?c("v-if",!0):(l(),d("div",oM,"Working")),e.error?(l(),d("div",sM,"Error")):c("v-if",!0),e.error?c("v-if",!0):(l(),d("h1",iM,[...t[0]||(t[0]=[h(" Loading",-1),n("span",{class:"dot-anim"},"\u2026",-1)])])),e.error?(l(),d("h1",{key:3,class:"paper-empty-title",textContent:u(e.fmt.translate(e.error))},null,8,rM)):c("v-if",!0)])])}var aM={class:"container paper-page paper-settings"},lM={class:"paper-crumbs"},dM={class:"here"},uM={class:"paper-page-title"},cM={class:"paper-settings-body"},pM={class:"paper-settings-toc"},fM={href:"#conf-billing"},mM={class:"form needs-validation paper-settings-main",name:"conference",novalidate:""},hM={id:"conf-basics",class:"paper-settings-section"},vM={class:"form-group"},gM={class:"invalid-feedback"},yM={class:"invalid-feedback"},bM={class:"form-group"},wM={class:"invalid-feedback"},kM={class:"form-group"},CM={class:"invalid-feedback"},EM={class:"invalid-feedback"},SM={id:"conf-window",class:"paper-settings-section"},NM={class:"form-grid-2"},RM={class:"form-group"},DM={class:"invalid-feedback"},TM={class:"invalid-feedback"},_M={class:"form-group"},AM={class:"invalid-feedback"},OM={class:"invalid-feedback"},PM={id:"conf-rendering",class:"paper-settings-section"},IM={class:"form-check"},MM={class:"form-check-input",type:"checkbox",id:"link",name:"link"},VM={class:"form-check"},qM={class:"form-check-input",type:"checkbox",id:"image",name:"image"},LM={class:"form-check"},$M={class:"form-check-input",type:"checkbox",id:"pdf",name:"pdf"},UM={class:"form-check"},FM={class:"form-check-input",type:"checkbox",id:"notebook",name:"notebook"},BM={id:"conf-features",class:"paper-settings-section"},zM={class:"form-check"},HM={class:"form-check-input",type:"checkbox",id:"update",name:"update"},jM={class:"form-check"},GM={class:"form-check-input",type:"checkbox",id:"page",name:"page"},WM={id:"conf-plan",class:"paper-settings-section"},KM={class:"paper-plan-grid"},YM=["disabled","value"],JM=["textContent"],QM={class:"paper-plan-price"},XM={class:"paper-plan-per"},ZM=["innerHTML"],xM={key:0,id:"conf-billing",class:"paper-settings-section"},eV={class:"form-group"},tV={class:"form-group"},nV={class:"form-group"},oV={class:"form-group"},sV={class:"form-grid-3"},iV={class:"form-group"},rV={class:"form-group"},aV={class:"form-group"},lV={class:"form-group"},dV={class:"paper-settings-footer"},uV=["textContent"],cV=["textContent"],pV=["disabled"];function Zl(e,t){let o=we("paper-scrollspy"),i=we("field"),s=we("form");return l(),d("div",aM,[n("div",lM,[t[1]||(t[1]=n("a",{href:"/dashboard"},"My work",-1)),t[2]||(t[2]=h(" \xA0/\xA0 ",-1)),t[3]||(t[3]=n("a",{href:"/conferences"},"Conferences",-1)),t[4]||(t[4]=h(" \xA0/\xA0 ",-1)),n("span",dM,u(e.editionMode?"Edit":"New"),1)]),n("h1",uM,[h(u(e.editionMode?"Edit":"Create a")+" ",1),t[5]||(t[5]=n("em",null,"conference",-1))]),t[42]||(t[42]=n("p",{class:"paper-page-lede"}," Give chairs access to every anonymization submitted to a venue, and lift author quotas during the review window. ",-1)),n("div",cM,[T((l(),d("aside",pM,[t[7]||(t[7]=n("div",{class:"paper-settings-toc-head"},"On this page",-1)),n("nav",null,[t[6]||(t[6]=me('<a href="#conf-basics">Basics</a><a href="#conf-window">Review window</a><a href="#conf-rendering">Rendering defaults</a><a href="#conf-features">Features</a><a href="#conf-plan">Plan</a>',5)),T(n("a",fM,"Billing",512),[[Y,e.plan?.pricePerRepo>0]])])])),[[o]]),T((l(),d("form",mM,[n("section",hM,[t[12]||(t[12]=n("div",{class:"paper-section-eyebrow"},"Basics",-1)),n("div",vM,[t[8]||(t[8]=n("label",{class:"paper-field-label",for:"name"},"Conference name",-1)),T(n("input",{type:"text",class:O(["form-control",{"is-invalid":e.conference?.name?.invalid&&(e.conference?.name?.touched||e.conference?.submitted)}]),name:"name",id:"name",required:"",placeholder:"e.g. International Conference on Software Engineering"},null,2),[[i,{state:e.viewState,set:r=>{e.options.name=r},value:e.options?.name,form:"conference",options:{}}]]),T(n("div",gM," The name of the conference is invalid. ",512),[[Y,e.conference?.name?.errors?.invalid]]),T(n("div",yM," The name of the conference is required. ",512),[[Y,e.conference?.name?.errors?.required]])]),n("div",bM,[t[9]||(t[9]=n("label",{class:"paper-field-label",for:"url"},"Website",-1)),T(n("input",{type:"url",class:O(["form-control",{"is-invalid":e.conference?.url?.invalid&&(e.conference?.url?.touched||e.conference?.submitted)}]),name:"url",id:"url",placeholder:"https://example.org"},null,2),[[i,{state:e.viewState,set:r=>{e.options.url=r},value:e.options?.url,form:"conference",options:{}}]]),T(n("div",wM," The url of the conference is invalid. ",512),[[Y,e.conference?.url?.errors?.url]])]),n("div",kM,[t[10]||(t[10]=n("label",{class:"paper-field-label",for:"conferenceID"},"Conference ID",-1)),T(n("input",{type:"text",class:O(["form-control",{"is-invalid":e.conference?.conferenceID?.invalid&&(e.conference?.conferenceID?.touched||e.conference?.submitted)}]),name:"conferenceID",id:"conferenceID",required:"",pattern:"[a-zA-Z0-9\\-_]{3,10}",placeholder:"ICSE26"},null,2),[[i,{state:e.viewState,set:r=>{e.options.conferenceID=r},value:e.options?.conferenceID,form:"conference",options:{}}]]),t[11]||(t[11]=n("small",{class:"form-text text-muted"},[h("3\u201310 characters, letters, numbers, "),n("code",null,"-"),h(" and "),n("code",null,"_"),h(". Authors reference this when they anonymize.")],-1)),T(n("div",{class:"invalid-feedback"}," The conference ID '"+u(e.options?.conferenceID)+"' is already used. ",513),[[Y,e.conference?.conferenceID?.errors?.used]]),T(n("div",CM," The conference ID is required. ",512),[[Y,e.conference?.conferenceID?.errors?.required]]),T(n("div",EM," The format of the conference ID is incorrect ([a-zA-Z0-9-_]{3,10}). ",512),[[Y,e.conference?.conferenceID?.errors?.pattern]])])]),n("section",SM,[t[17]||(t[17]=n("div",{class:"paper-section-eyebrow"},"Review window",-1)),n("div",NM,[n("div",RM,[t[13]||(t[13]=n("label",{class:"paper-field-label",for:"startDate"},"Start date",-1)),T(n("input",{type:"date",class:O(["form-control",{"is-invalid":e.conference?.startDate?.invalid&&(e.conference?.startDate?.touched||e.conference?.submitted)}]),name:"startDate",id:"startDate",required:""},null,2),[[i,{state:e.viewState,set:r=>{e.options.startDate=r},value:e.options?.startDate,form:"conference",options:{}}]]),t[14]||(t[14]=n("small",{class:"form-text text-muted"},"Beginning of the review process.",-1)),T(n("div",DM," Start date is required. ",512),[[Y,e.conference?.startDate?.errors?.required]]),T(n("div",TM," Start date must be before end date. ",512),[[Y,e.conference?.startDate?.errors?.invalid]])]),n("div",_M,[t[15]||(t[15]=n("label",{class:"paper-field-label",for:"endDate"},"End date",-1)),T(n("input",{type:"date",class:O(["form-control",{"is-invalid":e.conference?.endDate?.invalid&&(e.conference?.endDate?.touched||e.conference?.submitted)}]),name:"endDate",id:"endDate",required:""},null,2),[[i,{state:e.viewState,set:r=>{e.options.endDate=r},value:e.options?.endDate,form:"conference",options:{}}]]),t[16]||(t[16]=n("small",{class:"form-text text-muted"},"All repositories expire on this date.",-1)),T(n("div",AM," End date is required. ",512),[[Y,e.conference?.endDate?.errors?.required]]),T(n("div",OM," End date is invalid. ",512),[[Y,e.conference?.endDate?.errors?.invalid]])])])]),n("section",PM,[t[26]||(t[26]=n("div",{class:"paper-section-eyebrow"},"Rendering defaults",-1)),n("div",IM,[T(n("input",MM,null,512),[[i,{state:e.viewState,set:r=>{e.options.options.link=r},value:e.options?.options?.link,form:"conference",options:{}}]]),t[18]||(t[18]=n("label",{class:"form-check-label",for:"link"},"Keep links",-1)),t[19]||(t[19]=n("small",{class:"form-text text-muted"},"Keep or remove all links from text files.",-1))]),n("div",VM,[T(n("input",qM,null,512),[[i,{state:e.viewState,set:r=>{e.options.options.image=r},value:e.options?.options?.image,form:"conference",options:{}}]]),t[20]||(t[20]=n("label",{class:"form-check-label",for:"image"},"Display images",-1)),t[21]||(t[21]=n("small",{class:"form-text text-muted"},"Images are not anonymized.",-1))]),n("div",LM,[T(n("input",$M,null,512),[[i,{state:e.viewState,set:r=>{e.options.options.pdf=r},value:e.options?.options?.pdf,form:"conference",options:{}}]]),t[22]||(t[22]=n("label",{class:"form-check-label",for:"pdf"},"Display PDFs",-1)),t[23]||(t[23]=n("small",{class:"form-text text-muted"},"PDFs are not anonymized.",-1))]),n("div",UM,[T(n("input",FM,null,512),[[i,{state:e.viewState,set:r=>{e.options.options.notebook=r},value:e.options?.options?.notebook,form:"conference",options:{}}]]),t[24]||(t[24]=n("label",{class:"form-check-label",for:"notebook"},"Display notebooks",-1)),t[25]||(t[25]=n("small",{class:"form-text text-muted"},"Render Jupyter notebooks instead of raw JSON.",-1))])]),n("section",BM,[t[31]||(t[31]=n("div",{class:"paper-section-eyebrow"},"Features",-1)),n("div",zM,[T(n("input",HM,null,512),[[i,{state:e.viewState,set:r=>{e.options.options.update=r},value:e.options?.options?.update,form:"conference",options:{}}]]),t[27]||(t[27]=n("label",{class:"form-check-label",for:"update"},"Auto-update from GitHub",-1)),t[28]||(t[28]=n("small",{class:"form-text text-muted"},"Pull the latest commit automatically (hourly maximum).",-1))]),n("div",jM,[T(n("input",GM,null,512),[[i,{state:e.viewState,set:r=>{e.options.options.page=r},value:e.options?.options?.page,form:"conference",options:{}}]]),t[29]||(t[29]=n("label",{class:"form-check-label",for:"page"},"GitHub Pages",-1)),t[30]||(t[30]=n("small",{class:"form-text text-muted"},"Enable anonymized GitHub pages.",-1))])]),n("section",WM,[t[32]||(t[32]=n("div",{class:"paper-section-eyebrow"},"Plan",-1)),t[33]||(t[33]=n("p",{class:"paper-section-copy"},"The review package is prepaid and covers up to 180 days. Pay from the conference page after creating it. Plan and review dates cannot change after creation.",-1)),n("div",KM,[(l(!0),d(W,null,oe(e.plans,(r,a)=>(l(),d("label",{class:O(["paper-plan-card",{selected:e.options?.plan?.planID==r?.id}])},[T(n("input",{type:"radio",disabled:e.editionMode,name:"planPicker",value:r?.id},null,8,YM),[[i,{state:e.viewState,set:p=>{e.options.plan.planID=p},value:e.options?.plan?.planID,form:"conference",options:{}}]]),n("div",{class:"paper-plan-head",textContent:u(r?.name)},null,8,JM),n("div",QM,[h(u(r.id==="free_conference"?"Free":"Prepaid package")+" ",1),n("span",XM,u(r.id==="free_conference"?"":"Price on the conference page"),1)]),n("div",{class:"paper-plan-desc",innerHTML:e.sanitize(r?.description)},null,8,ZM)],2))),256))])]),e.plan?.pricePerRepo>0?(l(),d("section",xM,[t[41]||(t[41]=n("div",{class:"paper-section-eyebrow"},"Billing",-1)),n("div",eV,[t[34]||(t[34]=n("label",{class:"paper-field-label",for:"billing_name"},"Name",-1)),T(n("input",{type:"text",class:O(["form-control",{"is-invalid":e.conference?.billing_name?.invalid&&(e.conference?.billing_name?.touched||e.conference?.submitted)}]),name:"billing_name",id:"billing_name",required:"",placeholder:"First & last name"},null,2),[[i,{state:e.viewState,set:r=>{e.options.billing.name=r},value:e.options?.billing?.name,form:"conference",options:{}}]])]),n("div",tV,[t[35]||(t[35]=n("label",{class:"paper-field-label",for:"email"},"Email",-1)),T(n("input",{type:"email",class:O(["form-control",{"is-invalid":e.conference?.email?.invalid&&(e.conference?.email?.touched||e.conference?.submitted)}]),name:"email",id:"email",required:"",placeholder:"you@example.org"},null,2),[[i,{state:e.viewState,set:r=>{e.options.billing.email=r},value:e.options?.billing?.email,form:"conference",options:{}}]])]),n("div",nV,[t[36]||(t[36]=n("label",{class:"paper-field-label",for:"inputAddress"},"Address",-1)),T(n("input",{type:"text",class:O(["form-control",{"is-invalid":e.conference?.inputAddress?.invalid&&(e.conference?.inputAddress?.touched||e.conference?.submitted)}]),name:"inputAddress",id:"inputAddress",required:"",placeholder:"1234 Main St"},null,2),[[i,{state:e.viewState,set:r=>{e.options.billing.address=r},value:e.options?.billing?.address,form:"conference",options:{}}]])]),n("div",oV,[T(n("input",{type:"text",class:O(["form-control",{"is-invalid":e.conference?.inputAddress2?.invalid&&(e.conference?.inputAddress2?.touched||e.conference?.submitted)}]),name:"inputAddress2",id:"inputAddress2",placeholder:"Apartment, studio, or floor"},null,2),[[i,{state:e.viewState,set:r=>{e.options.billing.address2=r},value:e.options?.billing?.address2,form:"conference",options:{}}]])]),n("div",sV,[n("div",iV,[t[37]||(t[37]=n("label",{class:"paper-field-label",for:"city"},"City",-1)),T(n("input",{type:"text",class:O(["form-control",{"is-invalid":e.conference?.city?.invalid&&(e.conference?.city?.touched||e.conference?.submitted)}]),name:"city",id:"city",required:"",placeholder:"City"},null,2),[[i,{state:e.viewState,set:r=>{e.options.billing.city=r},value:e.options?.billing?.city,form:"conference",options:{}}]])]),n("div",rV,[t[38]||(t[38]=n("label",{class:"paper-field-label",for:"country"},"Country",-1)),T(n("input",{type:"text",class:O(["form-control",{"is-invalid":e.conference?.country?.invalid&&(e.conference?.country?.touched||e.conference?.submitted)}]),name:"country",id:"country",required:"",placeholder:"Country"},null,2),[[i,{state:e.viewState,set:r=>{e.options.billing.country=r},value:e.options?.billing?.country,form:"conference",options:{}}]])]),n("div",aV,[t[39]||(t[39]=n("label",{class:"paper-field-label",for:"zip"},"Zip",-1)),T(n("input",{type:"text",class:O(["form-control",{"is-invalid":e.conference?.zip?.invalid&&(e.conference?.zip?.touched||e.conference?.submitted)}]),name:"zip",id:"zip",required:"",placeholder:"Zip"},null,2),[[i,{state:e.viewState,set:r=>{e.options.billing.zip=r},value:e.options?.billing?.zip,form:"conference",options:{}}]])])]),n("div",lV,[t[40]||(t[40]=n("label",{class:"paper-field-label",for:"vat"},"VAT number",-1)),T(n("input",{type:"text",class:O(["form-control",{"is-invalid":e.conference?.vat?.invalid&&(e.conference?.vat?.touched||e.conference?.submitted)}]),name:"vat",id:"vat",placeholder:"VAT Number"},null,2),[[i,{state:e.viewState,set:r=>{e.options.billing.vat=r},value:e.options?.billing?.vat,form:"conference",options:{}}]])])])):c("v-if",!0),n("div",dV,[e.error?(l(),d("div",{key:0,class:"alert alert-danger",role:"alert",textContent:u(e.error)},null,8,uV)):c("v-if",!0),e.message?(l(),d("div",{key:1,class:"alert alert-success",role:"alert",textContent:u(e.message)},null,8,cV)):c("v-if",!0),n("button",{id:"send",disabled:e.saving,type:"submit",class:"btn btn-ink",onClick:t[0]||(t[0]=ae(r=>e.submitForm(r,()=>{e.submit(r)}),["prevent"]))},u(e.saving?e.editionMode?"Updating\u2026":"Creating\u2026":e.editionMode?"Update conference":"Create conference"),9,pV)])])),[[s,e.viewState]])])])}var fV={key:0,class:"dir-card","aria-label":"Repository files"},mV=["onClick"],hV={class:"dir-name"},vV=["href"],gV={class:"dir-name"},yV={class:"dir-meta"},bV={class:"file-card-head"},wV={class:"file-card-path"},kV={class:"breadcrumb paths","aria-label":"Path"},CV={class:"breadcrumb-item breadcrumb-root"},EV=["href","title","textContent"],SV=["aria-current"],NV=["aria-label"],RV={class:"mobile-sub"},DV={key:0},TV={key:1},_V={key:2},AV=["aria-label","title"],OV={class:"ui-icon","aria-hidden":"true"},PV=["href"],IV={key:0,class:"file-card-meta"},MV={class:"meta-extra"},VV={class:"meta-redact"},qV={key:1,class:"file-card-meta"},LV={class:"meta-redact"},$V={class:"file-card-actions"},UV={key:0,class:"symbols"},FV=["aria-expanded"],BV={key:0,class:"symbols-menu",role:"menu"},zV={class:"symbols-head"},HV=["onClick"],jV={class:"symbols-name"},GV={class:"symbols-line"},WV=["title"],KV=["title"],YV=["title"],JV=["aria-pressed"],QV={class:"tb-file",role:"group","aria-label":"File actions"},XV=["title","href"],ZV=["aria-label","title"],xV={class:"ui-icon","aria-hidden":"true"},e6=["href"],t6=["href"],n6=["aria-label"],o6={class:"ui-icon","aria-hidden":"true"},s6=["href"],i6={key:6,class:"tb-toc-m"},r6=["aria-expanded"],a6=["onClick"],l6={class:"tb-more"},d6=["aria-expanded"],u6={viewBox:"0 0 24 24",class:"ui-icon","aria-hidden":"true",style:{fill:"currentColor",stroke:"none"}},c6={key:0,class:"tb-menu-note"},p6={key:1,class:"tb-menu-note tb-menu-meta"},f6={key:2,class:"tb-menu-sep"},m6={key:4,class:"tb-menu-sep"},h6=["aria-checked"],v6={key:0,class:"tb-menu-check"},g6={key:8,class:"tb-menu-sep"},y6=["href"],b6=["href"],w6=["href"],k6=["href"],C6=["href"],E6=["href"],S6=["placeholder","aria-invalid"],N6={key:0,class:"file-card-body"},R6={key:1,class:"md-find-bar",role:"search"},D6=["value"],T6={class:"md-find-nav"},_6=["disabled"],A6=["disabled"],O6={class:"md-find-count","aria-live":"polite"},P6=["aria-pressed"],I6={key:2,class:"reading-layout"},M6=["innerHTML"],V6={key:0,class:"readme-toc","aria-label":"On this page"},q6={class:"toc-rail"},L6=["href","onClick"],$6=["src"],U6=["src"],F6={key:6},B6={controls:"controls"},z6=["src"],H6={key:7},j6={key:8,class:"file-error container d-flex h-100"},G6={class:"paper-ratelimit-card m-auto",style:{"max-width":"520px"}},W6={class:"paper-error-msg"},K6={key:9,class:"file-error container d-flex h-100"},Y6={class:"viewer-error paper-error-card file-error-card m-auto",role:"alert","aria-labelledby":"viewer-error-title"},J6={id:"viewer-error-title",class:"paper-empty-title"},Q6={class:"paper-error-actions"},X6={key:0,href:"/",class:"btn btn-sm"},Z6={key:1,href:"/faq",class:"btn btn-sm"},x6={key:2,class:"btn btn-outline-ink",href:"/dashboard"},eq={key:10,class:"viewer-loading","aria-busy":"true"},tq={class:"viewer-loading-status",role:"status","aria-live":"polite"},nq={class:"viewer-loading-name sr-only"},oq={key:0},sq={class:"viewer-loading-lines","aria-hidden":"true"},iq={key:11,class:"file-error container d-flex h-100"},rq={key:12,class:"file-error container d-flex h-100"},aq={key:13,class:"file-error container d-flex h-100"},lq={class:"paper-empty-title m-auto"},dq=["href"];function xl(e,t){let o=We("html-doc"),i=We("pdfviewer"),s=We("notebook"),r=we("code-editor");return l(),d(W,null,[e.sidebarHidden&&e.type=="html"&&e.content!=null&&e.paths?.length===1&&/^readme/i.test(e.paths[0]||"")&&e.files?.length?(l(),d("section",fV,[t[35]||(t[35]=n("header",{class:"dir-card-head"},[n("span",{class:"dir-card-title"},"Files"),n("span",{class:"dir-card-sub"},"Snapshot of the repository at review time")],-1)),n("ul",{class:O(["dir-list",{"is-expanded":e.dirExpanded}])},[(l(!0),d(W,null,oe(e.rootEntries(),a=>(l(),d("li",{key:a.name},[a.size==null?(l(),d("button",{key:0,type:"button",class:"dir-row",onClick:p=>e.revealFolder(a.name)},[t[32]||(t[32]=n("svg",{class:"dir-icon",viewBox:"0 0 16 16","aria-hidden":"true"},[n("path",{d:"M1.5 3.5h4l1.5 1.5h7.5v8h-13z"})],-1)),n("span",hV,u(a.name),1),t[33]||(t[33]=n("span",{class:"dir-meta"},"Folder",-1))],8,mV)):(l(),d("a",{key:1,class:O(["dir-row",{"is-current":a.name===e.paths[0]}]),href:e.safeUrl("/r/"+e.repoId+"/"+encodeURIComponent(a.name))},[t[34]||(t[34]=n("svg",{class:"dir-icon",viewBox:"0 0 16 16","aria-hidden":"true"},[n("path",{d:"M3.5 1.5h6l3 3v10h-9z"})],-1)),n("span",gV,u(a.name),1),n("span",yV,u(e.formatSize(a.size)),1)],10,vV))]))),128))],2),!e.dirExpanded&&e.files.length>8?(l(),d("button",{key:0,type:"button",class:"dir-more",onClick:t[0]||(t[0]=a=>e.dirExpanded=!0)},"Show all "+u(e.files.length)+" items",1)):c("v-if",!0)])):c("v-if",!0),(e.type=="text"||e.type=="code"||e.type=="html"||e.type=="html-doc"&&e.showSource)&&e.content!=null?(l(),d("section",{key:1,class:O(["file-card",{"is-code":e.type!="html","no-wrap":!e.wrapLines}])},[n("header",bV,[n("div",wV,[n("button",{type:"button",class:O(["btn btn-sm btn-icon-only btn-ghost card-files-btn",{"is-needed":e.sidebarHidden}]),"aria-label":"Show file tree",title:"Show file tree",onClick:t[1]||(t[1]=a=>e.sidebarHidden?e.sidebarHidden=!1:e.sidebarCollapsed=!1)},[...t[36]||(t[36]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-sidebar"})],-1)])],2),n("ol",kV,[n("li",CV,[n("a",{href:e.safeUrl("/r/"+e.repoId+"/"),title:e.repoId,textContent:u(/^[0-9a-f]{8}-[0-9a-f]{4}-/i.test(e.repoId||"")?"repository":e.repoId)},null,8,EV)]),(l(!0),d(W,null,oe(e.paths,(a,p)=>(l(),d("li",{class:"breadcrumb-item","aria-current":p===e.paths.length-1?"page":null},[(l(!0),d(W,null,oe(e.redactParts(a),(f,g)=>(l(),d(W,{key:g},[f.n?(l(),d("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+f.n},[n("i",null,u(f.n),1)],8,NV)):(l(),d(W,{key:1},[h(u(f.t),1)],64))],64))),128))],8,SV))),256))]),n("span",RV,[n("span",null,u(e.type=="html"?"Markdown":e.languageName||"Text"),1),e.type!="html"&&typeof e.content=="string"?(l(),d("span",DV,u(e.fmt?.number(e.content.split(`
|
|
`).length))+" lines",1)):c("v-if",!0),e.type=="html"&&e.fileSize(e.filePath)!=null?(l(),d("span",TV,u(e.formatSize(e.fileSize(e.filePath))),1)):c("v-if",!0),e.redactionCount()?(l(),d("b",_V,u(e.redactionCount())+" redacted",1)):c("v-if",!0)]),T(n("button",{type:"button",class:"btn btn-sm btn-icon-only btn-ghost copy-path-btn","aria-label":e.pathCopied?"Path copied":"Copy file path",title:e.pathCopied?"Path copied":"Copy file path",onClick:t[2]||(t[2]=a=>e.copyPath())},[(l(),d("svg",OV,[n("use",{href:e.pathCopied?"#ui-icon-check":"#ui-icon-link"},null,8,PV)]))],8,AV),[[Y,e.filePath]])]),e.type!="html"&&typeof e.content=="string"?(l(),d("span",IV,[e.languageName?(l(),d(W,{key:0},[h(u(e.languageName),1),t[37]||(t[37]=n("span",{class:"sep"},"\xB7",-1))],64)):c("v-if",!0),h(u(e.fmt?.number(e.content.split(`
|
|
`).length))+" lines",1),n("span",MV,[t[38]||(t[38]=n("span",{class:"sep"},"\xB7",-1)),h(u(e.content.length<1024?e.content.length+" B":(e.content.length/1024).toFixed(1)+" KB"),1)]),e.redactionCount()?(l(),d(W,{key:1},[t[39]||(t[39]=n("span",{class:"sep"},"\xB7",-1)),n("span",VV,u(e.redactionCount())+" redacted",1)],64)):c("v-if",!0)])):c("v-if",!0),e.type=="html"?(l(),d("span",qV,[t[42]||(t[42]=h("Markdown",-1)),e.fileSize(e.filePath)!=null?(l(),d(W,{key:0},[t[40]||(t[40]=n("span",{class:"sep"},"\xB7",-1)),h(u(e.formatSize(e.fileSize(e.filePath))),1)],64)):c("v-if",!0),e.redactionCount()?(l(),d(W,{key:1},[t[41]||(t[41]=n("span",{class:"sep"},"\xB7",-1)),n("span",LV,u(e.redactionCount())+" redacted",1)],64)):c("v-if",!0)])):c("v-if",!0),n("div",$V,[e.type!="html"&&e.symbols().length>1?(l(),d("div",UV,[n("button",{type:"button",class:O(["btn btn-sm btn-ghost btn-symbols",{"is-on":e.symbolsOpen}]),"aria-expanded":e.symbolsOpen?"true":"false","aria-haspopup":"true",title:"Symbols in this file",onClick:t[3]||(t[3]=a=>e.symbolsOpen=!e.symbolsOpen)},[...t[43]||(t[43]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-list"})],-1),n("span",{class:"btn-find-label"},"Symbols",-1)])],10,FV),e.symbolsOpen?(l(),d("div",BV,[n("div",zV,u(e.symbols().length)+" "+u(e.symbols().length===1?"symbol":"symbols"),1),(l(!0),d(W,null,oe(e.symbols(),a=>(l(),d("button",{type:"button",class:"symbols-item",role:"menuitem",key:a.line+a.name,onClick:p=>e.goToSymbol(a.line)},[n("span",{class:O(["symbols-kind","is-"+a.kind])},u(a.kind==="class"?"C":a.kind==="function"?"\u0192":"v"),3),n("span",jV,u(a.name),1),n("span",GV,u(a.line),1)],8,HV))),128))])):c("v-if",!0)])):c("v-if",!0),e.type=="html"?(l(),d("button",{key:1,type:"button",class:O(["btn btn-sm btn-ghost btn-icon-only btn-find btn-md-find",{"is-on":e.mdFindOpen}]),"aria-label":"Find on this page",title:"Find on this page ("+(e.isMac?"\u2318":"Ctrl+")+"F)",onClick:t[4]||(t[4]=a=>e.toggleMdFind())},[...t[44]||(t[44]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-search"})],-1)])],10,WV)):c("v-if",!0),e.type!="html"?(l(),d("button",{key:2,type:"button",class:"btn btn-sm btn-ghost btn-icon-only btn-find","aria-label":"Find in file",title:"Find in file ("+(e.isMac?"\u2318":"Ctrl+")+"F)",onClick:t[5]||(t[5]=a=>e.findInFile())},[...t[45]||(t[45]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-search"})],-1)])],8,KV)):c("v-if",!0),e.type!="html"?(l(),d("button",{key:3,type:"button",class:"btn btn-sm btn-ghost btn-icon-only btn-goto","aria-label":"Go to line",title:"Go to line ("+(e.isMac?"\u2318":"Ctrl+")+"G)",onClick:t[6]||(t[6]=a=>e.gotoLine())},[...t[46]||(t[46]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-goto"})],-1)])],8,YV)):c("v-if",!0),e.type!="html"?(l(),d("button",{key:4,type:"button",class:O(["btn btn-sm btn-icon-only btn-ghost btn-toggle",{"is-on":e.wrapLines}]),"aria-pressed":e.wrapLines?"true":"false","aria-label":"Wrap long lines",title:"Wrap long lines (Alt+Z)",onClick:t[7]||(t[7]=a=>e.toggleWrap())},[...t[47]||(t[47]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-wrap"})],-1)])],10,JV)):c("v-if",!0),n("div",QV,[n("a",{target:"_self",class:"tb-seg-btn",title:e.type=="html"?"Open the Markdown source":"Open the raw file",href:e.safeUrl(e.url)},"Raw",8,XV),typeof e.content=="string"?(l(),d("button",{key:0,type:"button",class:"tb-seg-btn tb-seg-icon","aria-label":e.contentCopied?"Copied":"Copy file contents",title:e.contentCopied?"Copied":"Copy file contents",onClick:t[8]||(t[8]=a=>e.copyContent())},[(l(),d("svg",xV,[n("use",{href:e.contentCopied?"#ui-icon-check":"#project-icon-copy"},null,8,e6)]))],8,ZV)):c("v-if",!0),n("a",{target:"_self",class:"tb-seg-btn tb-seg-icon","aria-label":"Download file",title:"Download file",href:e.safeUrl(e.url+"&download=true")},[...t[48]||(t[48]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-download"})],-1)])],8,t6)]),typeof e.content=="string"?(l(),d("button",{key:5,type:"button",class:"btn btn-sm btn-icon-only btn-ghost tb-copy-m","aria-label":e.contentCopied?"Copied":"Copy file contents",onClick:t[9]||(t[9]=a=>e.copyContent())},[(l(),d("svg",o6,[n("use",{href:e.contentCopied?"#ui-icon-check":"#project-icon-copy"},null,8,s6)]))],8,n6)):c("v-if",!0),e.type=="html"&&e.readmeToc().length>=3?(l(),d("div",i6,[n("button",{type:"button",class:O(["btn btn-sm btn-icon-only btn-ghost tb-toc-btn",{"is-on":e.tocOpen}]),"aria-label":"On this page",title:"On this page","aria-haspopup":"true","aria-expanded":e.tocOpen?"true":"false",onClick:t[10]||(t[10]=ae(a=>{e.tocOpen=!e.tocOpen,e.moreOpen=!1},["stop"]))},[...t[49]||(t[49]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-outline"})],-1)])],10,r6),e.tocOpen?(l(),d("div",{key:0,class:"tb-menu tb-toc-menu",role:"menu",onClick:t[12]||(t[12]=a=>e.tocOpen=!1)},[t[50]||(t[50]=n("div",{class:"tb-menu-label"},"On this page",-1)),n("button",{type:"button",role:"menuitem",class:O(["tb-menu-toc","lvl-2",{"is-active":!e.activeHeading}]),onClick:t[11]||(t[11]=a=>e.scrollToHeading(null))},"Introduction",2),(l(!0),d(W,null,oe(e.readmeToc(),a=>(l(),d("button",{type:"button",role:"menuitem",key:"m-"+a.id,class:O(["tb-menu-toc","lvl-"+a.level,{"is-active":e.activeHeading===a.id}]),onClick:p=>e.scrollToHeading(a.id)},u(a.text),11,a6))),128))])):c("v-if",!0)])):c("v-if",!0),n("div",l6,[n("button",{type:"button",class:O(["btn btn-sm btn-icon-only btn-ghost tb-more-btn",{"is-on":e.moreOpen}]),"aria-label":"More actions","aria-haspopup":"true","aria-expanded":e.moreOpen?"true":"false",onClick:t[13]||(t[13]=ae(a=>{e.tocOpen=!1,e.moreOpen=!e.moreOpen},["stop"]))},[(l(),d("svg",u6,[...t[51]||(t[51]=[n("circle",{cx:"5",cy:"12",r:"1.8"},null,-1),n("circle",{cx:"12",cy:"12",r:"1.8"},null,-1),n("circle",{cx:"19",cy:"12",r:"1.8"},null,-1)])]))],10,d6),e.moreOpen?(l(),d("div",{key:0,class:"tb-menu",role:"menu",onClick:t[19]||(t[19]=a=>e.moreOpen=!1)},[e.options?.publishedAt||e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate?(l(),d("div",c6,[t[52]||(t[52]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),h("Snapshot \xB7 "+u(e.fmt?.date(e.options?.publishedAt||e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate)),1)])):c("v-if",!0),typeof e.content=="string"?(l(),d("div",p6,[h(u(e.type=="html"?"Markdown":e.languageName||"Text"),1),e.type!="html"?(l(),d(W,{key:0},[h(" \xB7 "+u(e.fmt?.number(e.content.split(`
|
|
`).length))+" lines",1)],64)):c("v-if",!0),h(" \xB7 "+u(e.type=="html"&&e.fileSize(e.filePath)!=null?e.formatSize(e.fileSize(e.filePath)):e.content.length<1024?e.content.length+" B":(e.content.length/1024).toFixed(1)+" KB"),1)])):c("v-if",!0),e.options?.publishedAt||e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate?(l(),d("div",f6)):c("v-if",!0),e.type=="html"?(l(),d("button",{key:3,type:"button",role:"menuitem",onClick:t[14]||(t[14]=a=>e.toggleMdFind())},[...t[53]||(t[53]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-search"})],-1),h("Find in file",-1)])])):c("v-if",!0),e.type=="html"?(l(),d("div",m6)):c("v-if",!0),e.type!="html"?(l(),d("button",{key:5,type:"button",role:"menuitem",onClick:t[15]||(t[15]=a=>e.findInFile())},[...t[54]||(t[54]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-search"})],-1),h("Find in file",-1)])])):c("v-if",!0),e.type!="html"?(l(),d("button",{key:6,type:"button",role:"menuitem",onClick:t[16]||(t[16]=a=>e.gotoLine())},[...t[55]||(t[55]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-goto"})],-1),h("Go to line",-1)])])):c("v-if",!0),e.type!="html"?(l(),d("button",{key:7,type:"button",role:"menuitemcheckbox","aria-checked":e.wrapLines?"true":"false",onClick:t[17]||(t[17]=a=>e.toggleWrap())},[t[56]||(t[56]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-wrap"})],-1)),t[57]||(t[57]=h("Wrap lines",-1)),e.wrapLines?(l(),d("span",v6,"\u2713")):c("v-if",!0)],8,h6)):c("v-if",!0),e.type!="html"?(l(),d("div",g6)):c("v-if",!0),e.type=="html"?(l(),d("a",{key:9,role:"menuitem",target:"_self",href:e.safeUrl(e.url)},[...t[58]||(t[58]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-code"})],-1),h("View raw",-1)])],8,y6)):c("v-if",!0),e.type!="html"?(l(),d("a",{key:10,role:"menuitem",target:"_self",href:e.safeUrl(e.url)},[...t[59]||(t[59]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-code"})],-1),h("View raw",-1)])],8,b6)):c("v-if",!0),n("a",{role:"menuitem",target:"_self",href:e.safeUrl(e.url+"&download=true")},[...t[60]||(t[60]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-download"})],-1),h("Download file",-1)])],8,w6),e.options?.hasWebsite?(l(),d("a",{key:11,role:"menuitem",target:"_self",href:e.safeUrl("/w/"+e.repoId+"/")},[...t[61]||(t[61]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-globe"})],-1),h("Open website",-1)])],8,k6)):c("v-if",!0),e.options?.isAdmin||e.options?.isOwner?(l(),d("a",{key:12,role:"menuitem",href:e.safeUrl("/anonymize/"+e.repoId)},[...t[62]||(t[62]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),h("Edit anonymization",-1)])],8,C6)):c("v-if",!0),e.options?.download?(l(),d("a",{key:13,role:"menuitem",target:"_self",href:e.safeUrl("/api/repo/"+e.repoId+"/zip")},[...t[63]||(t[63]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-archive"})],-1),h("Download ZIP",-1)])],8,E6)):c("v-if",!0),n("button",{type:"button",role:"menuitem",onClick:t[18]||(t[18]=a=>e.copyPath())},[...t[64]||(t[64]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-link"})],-1),h("Copy file path",-1)])]),t[65]||(t[65]=n("div",{class:"tb-menu-sep"},null,-1)),t[66]||(t[66]=n("a",{role:"menuitem",href:"/faq"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-help"})]),h("FAQ")],-1)),t[67]||(t[67]=n("a",{role:"menuitem",href:"https://github.com/tdurieux/anonymous_github/issues/new?template=issue_report.yml",target:"_blank",rel:"noopener"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-bug"})]),h("Report a bug")],-1))])):c("v-if",!0)])]),e.gotoOpen&&e.type!="html"?(l(),d("form",{key:2,class:"goto-pop",role:"dialog","aria-label":"Go to line",onSubmit:t[22]||(t[22]=ae(a=>e.submitGoto(),["prevent"]))},[t[68]||(t[68]=n("label",{class:"goto-label",for:"goto-input"},"Go to line",-1)),T(n("input",{id:"goto-input",class:"goto-input",type:"text",inputmode:"numeric",autocomplete:"off",spellcheck:"false",placeholder:"1\u2013"+e.fmt?.number(typeof e.content=="string"?e.content.split(`
|
|
`).length:1),"aria-invalid":e.gotoError?"true":"false","onUpdate:modelValue":t[20]||(t[20]=a=>e.gotoValue=a),onKeydown:t[21]||(t[21]=ct(ae(a=>e.closeGoto(),["prevent","stop"]),["esc"]))},null,40,S6),[[ot,e.gotoValue]]),n("span",{class:O(["goto-hint",{"is-error":e.gotoError}])},u(e.gotoError||"Line, or line:column"),3)],32)):c("v-if",!0)]),e.type!="html"?T((l(),d("div",N6,null,512)),[[r,{content:e.content,options:e.aceOption}]]):c("v-if",!0),e.type=="html"&&e.mdFindOpen?(l(),d("div",R6,[n("input",{type:"search",class:"md-find-input",placeholder:"Find on this page","aria-label":"Find on this page",value:e.mdFindQuery,onInput:t[23]||(t[23]=a=>{e.mdFindQuery=a.target.value,e.runMdFind()}),onKeydown:[t[24]||(t[24]=ct(ae(a=>a.shiftKey?e.stepMdFind(-1):e.stepMdFind(1),["prevent"]),["enter"])),t[25]||(t[25]=ct(ae(a=>e.toggleMdFind(!1),["prevent"]),["esc"]))]},null,40,D6),n("span",T6,[n("button",{type:"button","aria-label":"Previous match",onClick:t[26]||(t[26]=a=>e.stepMdFind(-1)),disabled:!e.mdFindTotal},[...t[69]||(t[69]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1)])],8,_6),n("button",{type:"button","aria-label":"Next match",onClick:t[27]||(t[27]=a=>e.stepMdFind(1)),disabled:!e.mdFindTotal},[...t[70]||(t[70]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,A6)]),n("span",O6,u(e.mdFindQuery?e.mdFindTotal?e.mdFindIndex+1+" of "+e.mdFindTotal:"No results":""),1),n("button",{type:"button",class:O(["md-find-opt",{"is-on":e.mdFindCase}]),"aria-pressed":e.mdFindCase?"true":"false",title:"Match case","aria-label":"Match case",onClick:t[28]||(t[28]=a=>{e.mdFindCase=!e.mdFindCase,e.runMdFind()})},"Aa",10,P6),n("button",{type:"button",class:"md-find-close","aria-label":"Close find",onClick:t[29]||(t[29]=a=>e.toggleMdFind(!1))},"\xD7")])):c("v-if",!0),e.type=="html"?(l(),d("div",I6,[n("div",{class:"file-content markdown-body",innerHTML:e.renderReadme(e.sanitize(e.content))},null,8,M6),e.readmeToc().length>=3?(l(),d("aside",V6,[t[71]||(t[71]=n("div",{class:"readme-toc-head"},"On this page",-1)),n("nav",q6,[n("a",{href:"#",class:O(["lvl-2 toc-top",{"is-active":!e.activeHeading}]),onClick:t[30]||(t[30]=ae(a=>e.scrollToHeading(null),["prevent"]))},"Introduction",2),(l(!0),d(W,null,oe(e.readmeToc(),(a,p)=>(l(),d("a",{key:a.id,href:"#"+a.id,class:O(["lvl-"+a.level,{"is-active":e.activeHeading===a.id}]),onClick:ae(f=>e.scrollToHeading(a.id),["prevent"])},u(a.text),11,L6))),128))])])):c("v-if",!0)])):c("v-if",!0)],2)):c("v-if",!0),e.type=="html-doc"&&!e.showSource&&e.content!=null?(l(),Bt(o,{key:2,content:e.content,"base-url":e.fileBaseUrl,"allow-scripts":e.allowScripts},null,8,["content","base-url","allow-scripts"])):c("v-if",!0),e.type=="image"?(l(),d("img",{key:3,class:"image-content",src:e.safeUrl(e.url)},null,8,$6)):c("v-if",!0),e.type=="media"?(l(),d("iframe",{key:4,class:"h-100 overflow-auto w-100 b-0",src:e.safeUrl(e.url)},null,8,U6)):c("v-if",!0),e.type=="pdf"?(l(),Bt(i,{key:5,src:e.safeUrl(e.url)},null,8,["src"])):c("v-if",!0),e.type=="audio"?(l(),d("div",F6,[n("audio",B6,[n("source",{src:e.safeUrl(e.url)},null,8,z6)])])):c("v-if",!0),e.type=="IPython"?(l(),d("div",H6,[De(s,{file:e.url,content:e.content},null,8,["file","content"])])):c("v-if",!0),e.type=="rate_limited"?(l(),d("div",j6,[n("div",G6,[t[74]||(t[74]=me('<div class="paper-ratelimit-head"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-hourglass"></use></svg><div><div class="paper-error-eyebrow">Temporarily paused</div><div class="paper-error-title">GitHub API rate limit reached</div></div></div>',1)),n("p",W6,[t[72]||(t[72]=h("This repository will be available in ",-1)),n("strong",null,u(e.rateLimitCountdown),1),t[73]||(t[73]=h(". The page will reload automatically.",-1))])])])):c("v-if",!0),e.type=="error"?(l(),d("div",K6,[n("section",Y6,[n("h1",J6,u(e.fmt.translate(e.isSourceAccessError()?"VIEWER_ERRORS.access_title":"VIEWER_ERRORS.title")),1),n("p",null,u(e.fmt.translate("ERRORS."+e.content)),1),e.isSourceAccessError()?(l(),d(W,{key:0},[n("p",null,u(e.fmt.translate("VIEWER_ERRORS.reader_help")),1),n("p",null,u(e.fmt.translate("VIEWER_ERRORS.owner_help")),1)],64)):c("v-if",!0),n("div",Q6,[e.isSourceAccessError()?c("v-if",!0):(l(),d("a",X6,"Back to home")),e.isSourceAccessError()?c("v-if",!0):(l(),d("a",Z6,"Read the FAQ")),n("button",{type:"button",class:"btn btn-primary",onClick:t[31]||(t[31]=a=>e.retryContent())},u(e.fmt.translate("VIEWER_ERRORS.retry")),1),e.isSourceAccessError()?(l(),d("a",x6,u(e.fmt.translate("VIEWER_ERRORS.dashboard")),1)):c("v-if",!0)])])])):c("v-if",!0),e.type=="loading"&&!e.error?(l(),d("section",eq,[n("div",tq,[n("strong",null,u(e.fmt.translate(e.fileReceivedBytes?"VIEWER_LOADING.receiving":"VIEWER_LOADING.loading")),1),n("span",nq,u(e.filePath),1),e.fileLoadingSlow?(l(),d("p",oq,u(e.fmt.translate("VIEWER_LOADING.slow")),1)):c("v-if",!0)]),n("div",sq,[(l(),d(W,null,oe(10,a=>n("span",{key:a})),64))])])):c("v-if",!0),e.type=="empty"?(l(),d("div",iq,[...t[75]||(t[75]=[n("h1",{class:"paper-empty-title m-auto"},[h("Empty "),n("em",null,"repository"),h(".")],-1)])])):c("v-if",!0),e.content==null&&!["empty","loading","error","rate_limited"].includes(e.type)?(l(),d("div",rq,[...t[76]||(t[76]=[n("h1",{class:"paper-empty-title m-auto"},[h("Empty "),n("em",null,"file"),h(".")],-1)])])):c("v-if",!0),e.type=="binary"?(l(),d("div",aq,[n("h1",lq,[t[77]||(t[77]=h("Unsupported ",-1)),t[78]||(t[78]=n("em",null,"binary file",-1)),t[79]||(t[79]=h(". You can ",-1)),n("a",{target:"_blank",href:e.safeUrl(e.url+"&download=true")},"download it",8,dq),t[80]||(t[80]=h(".",-1))])])):c("v-if",!0)],64)}var uq={class:"container page dashboard-page paper-page"},cq={class:"row"},pq={class:"w-100"},fq={class:"w-100","aria-label":"Pull Requests","accept-charset":"UTF-8"},mq={class:"d-flex flex-column flex-md-row align-items-md-center",style:{gap:"8px"}},hq={class:"flex-grow-1"},vq={type:"search",id:"search",class:"form-control","aria-label":"Find a pull request...",placeholder:"Find a pull request...",autocomplete:"off"},gq={class:"d-flex flex-wrap",style:{gap:"6px"}},yq={class:"dropdown"},bq={class:"dropdown-menu","aria-labelledby":"dropdownSort"},wq={class:"form-check dropdown-item"},kq={class:"form-check-input",type:"radio",name:"sort",id:"sortFullName",value:"fullName"},Cq={class:"form-check dropdown-item"},Eq={class:"form-check-input",type:"radio",name:"sort",id:"sortAnonymizeDate",value:"-anonymizeDate"},Sq={class:"form-check dropdown-item"},Nq={class:"form-check-input",type:"radio",name:"sort",id:"sortStatus",value:"-status"},Rq={class:"form-check dropdown-item"},Dq={class:"form-check-input",type:"radio",name:"sort",id:"sortLastView",value:"-lastView"},Tq={class:"form-check dropdown-item"},_q={class:"form-check-input",type:"radio",name:"sort",id:"sortPageView",value:"-pageView"},Aq={class:"dropdown"},Oq={class:"dropdown-menu","aria-labelledby":"dropdownStatus"},Pq={class:"form-check dropdown-item"},Iq={class:"form-check-input",type:"checkbox",name:"sort",id:"statusReady",value:"ready"},Mq={class:"form-check dropdown-item"},Vq={class:"form-check-input",type:"checkbox",name:"sort",id:"statusExpired",value:"expired"},qq={class:"form-check dropdown-item"},Lq={class:"form-check-input",type:"checkbox",name:"sort",id:"statusRemoved",value:"removed"},$q={class:"d-flex flex-wrap mt-2",style:{gap:"6px"}},Uq={class:"filter-chip"},Fq=["onClick"],Bq={class:"repo-list w-100"},zq={class:"repo-list-item-content"},Hq={class:"repo-list-item-main"},jq={class:"repo-list-item-header"},Gq=["textContent","href"],Wq=["textContent"],Kq=["textContent"],Yq={class:"repo-source"},Jq=["href"],Qq={class:"repo-date"},Xq={class:"repo-meta"},Zq={key:0,title:"Conference"},xq=["title"],eL=["title"],tL=["title"],nL={key:1},oL={class:"repo-list-item-actions"},sL={class:"dropdown"},iL={class:"dropdown-menu dropdown-menu-right"},rL=["href"],aL=["onClick"],lL=["onClick"],dL=["onClick"],uL=["href"],cL={key:0,class:"repo-list-empty"};function ed(e,t){let o=we("field"),i=we("form");return l(),d("div",uq,[n("div",cq,[n("div",pq,[t[12]||(t[12]=me('<div class="paper-crumbs">My work \xA0/\xA0 <span class="here">Pull requests</span></div><div class="d-flex align-items-end justify-content-between flex-wrap" style="gap:12px;"><div><h1 class="paper-page-title">Anonymized <em>pull requests</em></h1><p class="paper-page-lede">Track PR mirrors you\u2019ve created and their reviewer traffic.</p></div><div class="d-flex flex-wrap" style="gap:6px;"><a href="/anonymize" class="btn btn-ink"><svg class="ui-icon mr-1" aria-hidden="true"><use href="#project-icon-plus"></use></svg> Anonymize Repo </a><a href="/pull-request-anonymize" class="btn btn-ink"><svg class="ui-icon mr-1" aria-hidden="true"><use href="#project-icon-plus"></use></svg> Anonymize PR </a><a title="Claim the ownership of an existing anonymized repository." data-toggle="tooltip" data-placement="bottom" href="/claim" class="btn"> Claim </a></div></div>',2)),c(" Search + filters row "),T((l(),d("form",fq,[n("div",mq,[n("div",hq,[T(n("input",vq,null,512),[[o,{state:e.viewState,set:s=>{e.search=s},value:e.search,form:null,options:{}}]])]),n("div",gq,[n("div",yq,[t[6]||(t[6]=n("button",{class:"btn btn-sm dropdown-toggle",type:"button",id:"dropdownSort","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}," Sort ",-1)),n("div",bq,[t[5]||(t[5]=n("h6",{class:"dropdown-header"},"Select order",-1)),n("div",wq,[T(n("input",kq,null,512),[[o,{state:e.viewState,set:s=>{e.orderBy=s},value:e.orderBy,form:null,options:{}}]]),t[0]||(t[0]=n("label",{class:"form-check-label",for:"sortFullName"},"Pull Request",-1))]),n("div",Cq,[T(n("input",Eq,null,512),[[o,{state:e.viewState,set:s=>{e.orderBy=s},value:e.orderBy,form:null,options:{}}]]),t[1]||(t[1]=n("label",{class:"form-check-label",for:"sortAnonymizeDate"},"Anonymize Date",-1))]),n("div",Sq,[T(n("input",Nq,null,512),[[o,{state:e.viewState,set:s=>{e.orderBy=s},value:e.orderBy,form:null,options:{}}]]),t[2]||(t[2]=n("label",{class:"form-check-label",for:"sortStatus"},"Status",-1))]),n("div",Rq,[T(n("input",Dq,null,512),[[o,{state:e.viewState,set:s=>{e.orderBy=s},value:e.orderBy,form:null,options:{}}]]),t[3]||(t[3]=n("label",{class:"form-check-label",for:"sortLastView"},"Last View",-1))]),n("div",Tq,[T(n("input",_q,null,512),[[o,{state:e.viewState,set:s=>{e.orderBy=s},value:e.orderBy,form:null,options:{}}]]),t[4]||(t[4]=n("label",{class:"form-check-label",for:"sortPageView"},"Page View",-1))])])]),n("div",Aq,[t[11]||(t[11]=n("button",{class:"btn btn-sm dropdown-toggle",type:"button",id:"dropdownStatus","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}," Status ",-1)),n("div",Oq,[t[10]||(t[10]=n("h6",{class:"dropdown-header"},"Select status",-1)),n("div",Pq,[T(n("input",Iq,null,512),[[o,{state:e.viewState,set:s=>{e.filters.status.ready=s},value:e.filters?.status?.ready,form:null,options:{}}]]),t[7]||(t[7]=n("label",{class:"form-check-label",for:"statusReady"},"Ready",-1))]),n("div",Mq,[T(n("input",Vq,null,512),[[o,{state:e.viewState,set:s=>{e.filters.status.expired=s},value:e.filters?.status?.expired,form:null,options:{}}]]),t[8]||(t[8]=n("label",{class:"form-check-label",for:"statusExpired"},"Expired",-1))]),n("div",qq,[T(n("input",Lq,null,512),[[o,{state:e.viewState,set:s=>{e.filters.status.removed=s},value:e.filters?.status?.removed,form:null,options:{}}]]),t[9]||(t[9]=n("label",{class:"form-check-label",for:"statusRemoved"},"Removed",-1))])])])])])])),[[i,e.viewState]]),c(" Active filter chips "),T(n("div",$q,[(l(!0),d(W,null,oe(e.filters?.status,(s,r,a)=>T((l(),d("span",Uq,[h(u(e.fmt?.title(r))+" ",1),n("button",{type:"button",class:"filter-chip-close","aria-label":"Remove filter",onClick:p=>{e.filters.status[r]=!0}}," \xD7 ",8,Fq)],512)),[[Y,!s]])),256))],512),[[Y,e.filters?.status?.ready===!1||e.filters?.status?.expired===!1||e.filters?.status?.removed===!1]])]),c(" Pull request list "),n("ul",Bq,[(l(!0),d(W,null,oe(e.filteredPullRequests,(s,r)=>(l(),d("li",{class:O(["repo-list-item",{"repo-inactive":s?.status=="expired"||s?.status=="removed"||s?.status=="error"}])},[n("div",zq,[n("div",Hq,[n("div",jq,[n("a",{class:"repo-name",textContent:u(s?.pullRequestId),href:e.safeUrl("/pr/"+s?.pullRequestId)},null,8,Gq),n("span",{class:O(["status-badge",{"status-removed":s?.status=="removed"||s?.status=="expired"||s?.status=="removing"||s?.status=="expiring","status-preparing":s?.status=="preparing"||s?.status=="download","status-ready":s?.status=="ready","status-error":s?.status=="error"}])},[n("span",{textContent:u(e.fmt?.title(s?.status))},null,8,Wq),s?.status=="error"?(l(),d("span",{key:0,textContent:u(": "+s?.statusMessage)},null,8,Kq)):c("v-if",!0)],2)]),n("div",Yq,[n("span",null,[t[13]||(t[13]=n("i",{class:"fab fa-github","aria-hidden":"true"},null,-1)),n("a",{href:e.safeUrl("https://github.com/"+s?.source?.repositoryFullName+"/pull/"+s?.source?.pullRequestId)},u(s?.source?.repositoryFullName)+"#"+u(s?.source?.pullRequestId),9,Jq)]),n("span",{class:O(["status-badge",{"status-ready":s?.merged,"status-removed":s?.state=="open","status-error":s?.state=="closed"&&!s?.merged}]),style:{"font-size":"10px"}},u(e.fmt?.title(s?.merged?"merged":s?.state)),3),n("span",Qq,"anonymized "+u(e.fmt?.humanTime(s?.anonymizeDate)),1)])]),n("div",Xq,[s?.conference?(l(),d("span",Zq,[t[14]||(t[14]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-conference"})],-1)),h(" "+u(s?.conference),1)])):c("v-if",!0),n("span",{"data-toggle":"tooltip","data-placement":"bottom",title:"Terms: "+s?.options?.terms?.join(", ")},[t[15]||(t[15]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})],-1)),h(" "+u(e.fmt?.number(s?.options?.terms?.length)),1)],8,xq),n("span",{"data-toggle":"tooltip","data-placement":"bottom",title:"Views: "+e.fmt?.number(s?.pageView)},[t[16]||(t[16]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1)),h(" "+u(e.fmt?.number(s?.pageView)),1)],8,eL),n("span",{"data-toggle":"tooltip","data-placement":"bottom",title:"Last view: "+e.fmt?.date(s?.lastView)},[t[17]||(t[17]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-calendar"})],-1)),h(" "+u(e.fmt?.humanTime(s?.lastView)),1)],8,tL),s?.options?.expirationMode!="never"&&s?.status=="ready"?(l(),d("span",nL,[t[18]||(t[18]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),h(" Expire: "+u(e.fmt?.humanTime(s?.options?.expirationDate)),1)])):c("v-if",!0)])]),n("div",oL,[n("div",sL,[t[24]||(t[24]=n("button",{class:"btn btn-sm dropdown-toggle",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}," Actions ",-1)),n("div",iL,[n("a",{class:"dropdown-item",href:e.safeUrl("/pull-request-anonymize/"+s?.pullRequestId)},[...t[19]||(t[19]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),h(" Edit ",-1)])],8,rL),T(n("a",{class:"dropdown-item",href:"#",onClick:ae(a=>e.updatePullRequest(s),["prevent"])},[...t[20]||(t[20]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1),h(" Force update ",-1)])],8,aL),[[Y,s?.status=="ready"||s?.status=="error"]]),T(n("a",{class:"dropdown-item",href:"#",onClick:ae(a=>e.updatePullRequest(s),["prevent"])},[...t[21]||(t[21]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-check-circle"})],-1),h(" Enable ",-1)])],8,lL),[[Y,s?.status=="removed"]]),T(n("a",{class:"dropdown-item",href:"#",onClick:ae(a=>e.removePullRequest(s),["prevent"])},[...t[22]||(t[22]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1),h(" Remove ",-1)])],8,dL),[[Y,s?.status=="ready"]]),n("a",{class:"dropdown-item",href:e.safeUrl("/pr/"+s?.pullRequestId+"/")},[...t[23]||(t[23]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1),h(" View PR ",-1)])],8,uL)])])])],2))),256)),e.filteredPullRequests?.length==0?(l(),d("li",cL,[...t[25]||(t[25]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-inbox"})],-1),n("span",null,"No pull requests to display.",-1)])])):c("v-if",!0)])])])}var pL={class:"container paper-page user-settings"},fL={class:"settings-title"},mL={class:"settings-header-actions"},hL={class:"settings-nav","aria-label":"Settings"},vL=["aria-current","onClick"],gL={class:"settings-row"},yL={class:"form-control",id:"terms",name:"terms",rows:"3",placeholder:`Jane Smith
|
|
MIT CSAIL
|
|
jane.smith@example.org`},bL={class:"settings-syntax"},wL={class:"invalid-feedback"},kL={class:"settings-row"},CL={class:"settings-checks"},EL={class:"settings-check"},SL={class:"form-check-input",type:"checkbox",id:"link",name:"link"},NL={class:"settings-check"},RL={class:"form-check-input",type:"checkbox",id:"notebook",name:"notebook"},DL={class:"settings-check"},TL={class:"form-check-input",type:"checkbox",id:"image",name:"image"},_L={class:"settings-check"},AL={class:"form-check-input",type:"checkbox",id:"pdf",name:"pdf"},OL={class:"settings-check"},PL={class:"form-check-input",type:"checkbox",id:"loc",name:"loc"},IL={class:"settings-check"},ML={class:"form-check-input",type:"checkbox",id:"page",name:"page"},VL={class:"settings-row"},qL={class:"settings-check"},LL={class:"form-check-input",type:"checkbox",id:"update",name:"update"},$L={class:"settings-row"},UL={class:"form-control",id:"expiration",name:"expiration"},FL={class:"settings-help"},BL={class:"settings-save"},zL={class:"settings-save-status draft-status",role:"status"},HL={key:0},jL={key:1},GL={key:2},WL=["disabled"],KL={key:1,class:"settings-save-error",role:"alert"},YL=["aria-busy"],JL={key:0,role:"status"},QL={key:1,class:"settings-notice",role:"alert"},XL=["disabled"],ZL={key:2,class:"settings-notice",role:"status"},xL={key:3,class:"settings-notice",role:"status"},e$=["disabled"],t$={class:"settings-row"},n$={class:"settings-inline"},o$={key:0,class:"settings-help"},s$={key:0,class:"settings-help"},i$={id:"settings-quota"},r$={key:1,role:"status"},a$={key:1,class:"settings-notice"},l$={key:2,class:"settings-notice"},d$={key:3,class:"settings-notice"},u$={key:4,class:"settings-help"},c$={key:5,class:"settings-plan billing-plan"},p$={class:"settings-comparison"},f$={class:"settings-cycles"},m$=["checked","onChange"],h$={class:"settings-help"},v$={class:"settings-actions"},g$=["disabled"],y$={key:6,class:"settings-help"},b$={class:"settings-row"},w$={key:0,class:"settings-inline"},k$=["disabled"],C$={key:1,class:"settings-help"},E$=["disabled"],S$={key:4,class:"settings-row"},N$={class:"settings-inline"},R$=["disabled"],D$={key:0,class:"settings-pass"},T$={class:"settings-help"},_$=["disabled"],A$={key:5,class:"settings-row"},O$={class:"settings-help"},P$={id:"settings-account",class:"settings-account-panel"},I$={class:"paper-account-card"},M$=["src"],V$={class:"paper-account-identity"},q$={class:"paper-account-name"},L$=["disabled"],$$={key:0,role:"status"},U$={key:1,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},F$=["disabled"],B$={key:3,role:"status"},z$={class:"paper-danger-zone"},H$={key:0,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},j$=["textContent"],G$=["disabled"],W$={key:1,class:"settings-delete-confirm"},K$={for:"delete-username"},Y$={class:"settings-actions"},J$=["disabled"],Q$=["disabled"];function td(e,t){let o=We("quota-usage"),i=we("field"),s=we("form");return l(),d("div",pL,[n("header",fL,[t[20]||(t[20]=n("h1",null,"Settings",-1)),n("div",mL,[n("span",null,"@"+u(e.user?.username),1)])]),n("nav",hL,[(l(),d(W,null,oe([{id:"defaults",label:"Anonymization defaults"},{id:"billing",label:"Hosting & billing"},{id:"account",label:"Account"}],r=>n("button",{type:"button","aria-current":e.settingsTab===r.id?"page":null,onClick:a=>e.settingsTab=r.id},u(r.label),9,vL)),64))]),T(n("div",null,[t[41]||(t[41]=n("p",{class:"settings-scope"},"For new anonymizations only. Existing repositories keep their settings.",-1)),T((l(),d("form",{class:"form needs-validation",name:"defaultsForm",novalidate:"",onSubmit:t[1]||(t[1]=ae(r=>e.submitForm(r,()=>{e.saveDefault(r)}),["prevent"]))},[n("section",gL,[t[26]||(t[26]=n("div",null,[n("label",{class:"settings-label",for:"terms"},"Terms to redact"),n("p",{class:"settings-help"},"One term per line.")],-1)),n("div",null,[T(n("textarea",yL,null,512),[[i,{state:e.viewState,set:r=>{e.terms=r},value:e.terms,form:"defaultsForm",options:{debounce:250}}]]),n("details",bL,[t[25]||(t[25]=n("summary",null,"Regex & replacement syntax",-1)),n("p",null,[t[21]||(t[21]=h("Matches become ",-1)),n("code",null,u(e.site_options?.ANONYMIZATION_MASK||"XXX")+"-[N]",1),t[22]||(t[22]=h(". Use ",-1)),t[23]||(t[23]=n("code",null,"term=>replacement",-1)),t[24]||(t[24]=h(" for a custom replacement. Regex is supported.",-1))])]),T(n("div",wL,"Terms are in an invalid format.",512),[[Y,e.defaultsForm?.terms?.errors?.format]])])]),n("section",kL,[t[35]||(t[35]=n("h2",null,"Reviewer display",-1)),n("div",null,[n("div",CL,[n("label",EL,[T(n("input",SL,null,512),[[i,{state:e.viewState,set:r=>{e.options.link=r},value:e.options?.link,form:"defaultsForm",options:{}}]]),t[27]||(t[27]=h("Keep links",-1))]),n("label",NL,[T(n("input",RL,null,512),[[i,{state:e.viewState,set:r=>{e.options.notebook=r},value:e.options?.notebook,form:"defaultsForm",options:{}}]]),t[28]||(t[28]=h("Render notebooks",-1))]),n("label",DL,[T(n("input",TL,null,512),[[i,{state:e.viewState,set:r=>{e.options.image=r},value:e.options?.image,form:"defaultsForm",options:{}}]]),t[29]||(t[29]=h("Show images",-1))]),n("label",_L,[T(n("input",AL,null,512),[[i,{state:e.viewState,set:r=>{e.options.pdf=r},value:e.options?.pdf,form:"defaultsForm",options:{}}]]),t[30]||(t[30]=h("Show PDFs",-1))]),n("label",OL,[T(n("input",PL,null,512),[[i,{state:e.viewState,set:r=>{e.options.loc=r},value:e.options?.loc,form:"defaultsForm",options:{}}]]),t[31]||(t[31]=h("Show line counts",-1))]),n("label",IL,[T(n("input",ML,null,512),[[i,{state:e.viewState,set:r=>{e.options.page=r},value:e.options?.page,form:"defaultsForm",options:{}}]]),t[32]||(t[32]=h("GitHub Pages",-1))])]),t[33]||(t[33]=n("p",{class:"settings-help"},"Images and PDFs are not anonymized.",-1)),t[34]||(t[34]=n("p",{class:"settings-help"},"GitHub Pages must use the anonymized branch.",-1))])]),n("section",VL,[t[38]||(t[38]=n("h2",null,"Source updates",-1)),n("div",null,[n("label",qL,[T(n("input",LL,null,512),[[i,{state:e.viewState,set:r=>{e.options.update=r},value:e.options?.update,form:"defaultsForm",options:{}}]]),t[36]||(t[36]=h("Auto-update from GitHub",-1))]),t[37]||(t[37]=n("p",{class:"settings-help"},"Latest commit, at most once an hour.",-1))])]),n("section",$L,[t[40]||(t[40]=n("label",{class:"settings-label",for:"expiration"},"On expiration",-1)),n("div",null,[T((l(),d("select",UL,[...t[39]||(t[39]=[n("option",{value:"redirect"},"Redirect visitors to the GitHub repository",-1),n("option",{value:"remove",selected:""},"Remove the anonymized repository",-1)])])),[[i,{state:e.viewState,set:r=>{e.options.expirationMode=r},value:e.options?.expirationMode,form:"defaultsForm",options:{}}]]),n("p",FL,u(e.options.expirationMode==="redirect"?"Redirecting reveals the original repository. Choose the date per anonymization.":"Set the expiration date for each repository."),1)])]),n("footer",BL,[n("div",zL,[e.draftRestored?(l(),d("span",HL,"Your unsaved draft was restored.")):e.unsavedChanges?(l(),d("span",jL,"Unsaved changes"+u(e.draftSaved?" \xB7 Draft saved in this tab":""),1)):(l(),d("span",GL,u(e.message?"Defaults saved":"All changes saved"),1))]),e.draftRestored||e.unsavedChanges?(l(),d("button",{key:0,type:"button",class:"draft-discard",onClick:t[0]||(t[0]=r=>e.discardDraft())},"Discard changes")):c("v-if",!0),n("button",{id:"save",type:"submit",class:"btn btn-ink",disabled:e.saving},u(e.saving?"Saving\u2026":"Save defaults"),9,WL),e.error?(l(),d("div",KL,u(e.error),1)):c("v-if",!0)])],32)),[[s,e.viewState]])],512),[[Y,e.settingsTab==="defaults"]]),T(n("section",{id:"settings-billing","aria-busy":e.billingLoading||e.billingBusy},[t[64]||(t[64]=n("p",{class:"settings-scope"},"Your plan and usage. Reviewer access is always free.",-1)),e.billingLoading?(l(),d("p",JL,"Loading billing\u2026")):c("v-if",!0),e.billingError?(l(),d("div",QL,[h(u(e.billingError)+" ",1),n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[2]||(t[2]=r=>e.loadBilling()),disabled:e.billingBusy},"Try again",8,XL)])):c("v-if",!0),e.billingNotice?(l(),d("p",ZL,u(e.billingNotice),1)):c("v-if",!0),e.billingPending?(l(),d("div",xL,[t[42]||(t[42]=n("strong",null,"Confirming your payment",-1)),t[43]||(t[43]=n("p",null,"Your allowance will update after confirmation. Please do not pay again.",-1)),n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[3]||(t[3]=r=>e.refreshBilling()),disabled:e.billingBusy},"Check payment status",8,e$)])):c("v-if",!0),n("section",t$,[t[57]||(t[57]=n("h2",null,"Current plan",-1)),n("div",null,[n("div",n$,[n("div",null,[n("strong",null,u(e.profileAuthorGrant()?"Author subscription":e.billing?.enabled?"Free":"Account allowance"),1),e.profileAuthorGrant()?(l(),d("p",o$,u(e.profileAuthorGrant().cancelAtPeriodEnd?"Renewal cancelled \xB7 Access until ":"Paid access through ")+u(e.billingDate(e.profileAuthorGrant().until)),1)):c("v-if",!0)]),e.billing?.enabled&&!e.profileAuthorGrant()&&!e.billingPending&&!e.showAuthorPlans&&e.profileAuthorPlans().length?(l(),d("button",{key:0,type:"button",class:"btn btn-outline-ink",onClick:t[4]||(t[4]=r=>e.openProfileUpgrade())},"View Author plan")):c("v-if",!0)]),e.billing?.allowance?(l(),d("p",s$,u(e.billing.allowance.repositories)+" repositories \xB7 "+u(e.billingBytes(e.billing.allowance.storage)),1)):c("v-if",!0),n("div",i$,[e.quota?(l(),Bt(o,{key:0,quota:e.quota,fmt:e.fmt},null,8,["quota","fmt"])):(l(),d("p",r$,"Loading usage\u2026"))]),t[56]||(t[56]=n("p",{class:"settings-help"},"Coauthored repositories use their owner's allowance. Conference hosting is separate.",-1)),e.quota?.repository&&!e.quota.repository.unlimited&&e.quota.repository.used>=e.quota.repository.total?(l(),d("p",a$,[...t[44]||(t[44]=[h("Your repository allowance is full. ",-1),n("a",{href:"/dashboard"},"Review your repositories",-1),h(" to remove work you no longer need.",-1)])])):c("v-if",!0),e.profilePastSubscription()?(l(),d("p",l$,[...t[45]||(t[45]=[h("Your previous subscription is no longer active. Never-expiring repositories receive a 90-day grace period after paid access ends. ",-1),n("a",{href:"/dashboard"},"Review repository expiration dates",-1),h(".",-1)])])):c("v-if",!0),e.profileAuthorGrant()?.status==="past_due"?(l(),d("p",d$,"A subscription payment is overdue. Use Manage billing to update your payment details.")):c("v-if",!0),e.profileAuthorGrant()?.cancelAtPeriodEnd?(l(),d("p",u$,"When paid access ends, never-expiring repositories enter a 90-day grace period. Dated repositories keep their expiration dates.")):c("v-if",!0),e.showAuthorPlans&&!e.profileAuthorGrant()&&!e.billingPending&&e.profileAuthorPlans().length?(l(),d("div",c$,[t[54]||(t[54]=n("h3",{id:"settings-plan-comparison",tabindex:"-1"},"Compare plans",-1)),n("table",p$,[t[51]||(t[51]=n("caption",{class:"sr-only"},"Free and Author hosting",-1)),t[52]||(t[52]=n("thead",null,[n("tr",null,[n("th",{scope:"col"},"Included"),n("th",{scope:"col"},"Free"),n("th",{scope:"col"},"Author")])],-1)),n("tbody",null,[n("tr",null,[t[46]||(t[46]=n("th",{scope:"row"},"Active repositories",-1)),n("td",null,u(e.billing.allowance?.repositories),1),n("td",null,u(e.profileSelectedPlan()?.repositories),1)]),n("tr",null,[t[47]||(t[47]=n("th",{scope:"row"},"Source storage",-1)),n("td",null,u(e.billingBytes(e.billing.allowance?.storage)),1),n("td",null,u(e.billingBytes(e.profileSelectedPlan()?.storage)),1)]),t[48]||(t[48]=n("tr",null,[n("th",{scope:"row"},"Expiration"),n("td",null,"Scheduled"),n("td",null,"Scheduled or never")],-1)),t[49]||(t[49]=n("tr",null,[n("th",{scope:"row"},"Coauthors"),n("td",null,"Included"),n("td",null,"Included")],-1)),t[50]||(t[50]=n("tr",null,[n("th",{scope:"row"},"Reviewer access"),n("td",null,"Free"),n("td",null,"Free")],-1))])]),n("fieldset",f$,[t[53]||(t[53]=n("legend",{class:"sr-only"},"Billing frequency",-1)),(l(!0),d(W,null,oe(e.profileAuthorPlans(),r=>(l(),d("label",{class:O({selected:e.profileSelectedPlan()?.id===r.id})},[n("input",{type:"radio",name:"profile-plan",checked:e.profileSelectedPlan()?.id===r.id,onChange:a=>e.profilePlan=r.id},null,40,m$),h(u(e.billingPrice(r)),1)],2))),256))]),n("p",h$,"Renews "+u(e.profileSelectedPlan()?.interval==="year"?"annually":"monthly")+" until cancelled. Tax shown at checkout.",1),t[55]||(t[55]=n("p",{class:"settings-help"},"If paid access ends, never-expiring repositories expire after a 90-day grace period.",-1)),n("div",v$,[n("button",{type:"button",class:"btn btn-ink",disabled:e.billingBusy||e.billing.checkoutEnabled===!1,onClick:t[5]||(t[5]=r=>e.checkout(e.profileSelectedPlan().id))},u(e.billingBusy?"Please wait\u2026":"Continue to checkout"),9,g$),n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[6]||(t[6]=r=>e.showAuthorPlans=!1)},"Keep current plan")])])):c("v-if",!0),e.billing&&(!e.billing.enabled||e.billing.checkoutEnabled===!1)?(l(),d("p",y$,"New purchases are not available. Existing billing can still be managed below.")):c("v-if",!0)])]),n("section",b$,[t[59]||(t[59]=n("h2",null,"Billing",-1)),n("div",null,[e.billing?.portal?(l(),d("div",w$,[t[58]||(t[58]=n("p",{class:"settings-help"},"Invoices, payment details, and renewal.",-1)),n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[7]||(t[7]=r=>e.billingPortal()),disabled:e.billingBusy},"Manage billing",8,k$)])):(l(),d("p",C$,"No billing account available.")),e.billing?.enabled&&!e.billingPending?(l(),d("button",{key:2,type:"button",class:"settings-text-button",onClick:t[8]||(t[8]=r=>e.refreshBilling()),disabled:e.billingBusy},"Refresh payment status",8,E$)):c("v-if",!0)])]),e.billing?.enabled?(l(),d("section",S$,[t[62]||(t[62]=n("h2",null,"Repository passes",-1)),n("div",null,[n("div",N$,[t[60]||(t[60]=n("p",{class:"settings-help"},[h("One repository for 180 days."),n("br"),h("No subscription or automatic renewal.")],-1)),e.profilePassPlan()?(l(),d("button",{key:0,type:"button",class:"btn btn-outline-ink",onClick:t[9]||(t[9]=r=>e.showRepositoryPass=!e.showRepositoryPass),disabled:e.billingPending},"Review a pass",8,R$)):c("v-if",!0)]),e.showRepositoryPass&&e.profilePassPlan()&&!e.billingPending?(l(),d("div",D$,[t[61]||(t[61]=n("label",{for:"billing-repository"},"Repository ID you own",-1)),T(n("input",{id:"billing-repository",class:"form-control","onUpdate:modelValue":t[10]||(t[10]=r=>e.billingRepository=r),placeholder:"Existing anonymized repository ID",autocomplete:"off"},null,512),[[ot,e.billingRepository]]),n("p",T$,u(e.billingPrice(e.profilePassPlan()))+" \xB7 "+u(e.billingBytes(e.profilePassPlan().storage))+" \xB7 Never expire is not included.",1),n("button",{type:"button",class:"btn btn-ink",disabled:e.billingBusy||!e.billingRepository.trim()||e.billing.checkoutEnabled===!1,onClick:t[11]||(t[11]=r=>e.checkout("author_pass",e.billingRepository.trim()))},"Continue to checkout",8,_$)])):c("v-if",!0)])])):c("v-if",!0),e.billing?.grants?.length?(l(),d("section",A$,[t[63]||(t[63]=n("h2",null,"Your purchases",-1)),n("div",null,[(l(!0),d(W,null,oe(e.billing.grants,r=>(l(),d("div",{class:"settings-purchase",key:r.scope+r.planId+r.until},[n("strong",null,u(e.profileGrantName(r)),1),n("span",null,u(r.scope),1),n("p",O$,[h(u(r.status),1),r.status!=="revoked"?(l(),d(W,{key:0},[h(" \xB7 Paid access through "+u(e.billingDate(r.until))+u(r.cancelAtPeriodEnd?" \xB7 Renewal cancelled":""),1)],64)):c("v-if",!0)])]))),128))])])):c("v-if",!0),t[65]||(t[65]=n("section",{class:"settings-row"},[n("h2",null,"Conference hosting"),n("div",{class:"settings-inline"},[n("p",{class:"settings-help"},"Shared hosting is managed per conference."),n("a",{href:"/conferences",class:"btn btn-outline-ink"},"My conferences")])],-1))],8,YL),[[Y,e.settingsTab==="billing"]]),T(n("section",P$,[t[75]||(t[75]=n("p",{class:"settings-scope"},"Your identity, repository access, and account.",-1)),n("div",I$,[e.user?.photo?(l(),d("img",{key:0,width:"40",height:"40",class:"rounded-circle",alt:"",src:e.safeUrl(e.user?.photo)},null,8,M$)):c("v-if",!0),n("div",V$,[n("div",q$,"@"+u(e.user?.username),1),t[66]||(t[66]=n("div",{class:"paper-account-meta"},"Signed in with GitHub. Anonymous GitHub only reads your repositories.",-1))]),t[67]||(t[67]=n("a",{class:"btn btn-outline-ink",href:"/api/user/logout",target:"_self"},"Sign out",-1))]),n("form",{class:"paper-account-email",onSubmit:t[15]||(t[15]=ae(r=>e.saveAccountEmail(),["prevent"]))},[t[68]||(t[68]=n("label",{class:"paper-field-label",for:"account-email"},"Email address",-1)),t[69]||(t[69]=n("p",{id:"account-email-help",class:"paper-section-copy"},"Used for account alerts. Your address is never shown on anonymous pages.",-1)),T(n("input",{id:"account-email",class:"form-control",type:"email",autocomplete:"email",maxlength:"254",required:"","onUpdate:modelValue":t[12]||(t[12]=r=>e.accountEmail=r),"aria-describedby":"account-email-help",disabled:e.emailLoading||e.emailSaving||!e.emailCSRFReady,onInput:t[13]||(t[13]=r=>e.emailSaved=!1)},null,40,L$),[[ot,e.accountEmail]]),e.emailLoading?(l(),d("p",$$,"Loading your email address\u2026")):c("v-if",!0),e.emailError?(l(),d("p",U$,u(e.emailError),1)):c("v-if",!0),!e.emailCSRFReady&&!e.emailLoading?(l(),d("button",{key:2,class:"btn btn-outline-ink mt-2",type:"button",onClick:t[14]||(t[14]=r=>e.loadAccountEmail())},"Try again")):c("v-if",!0),n("button",{class:"btn btn-ink mt-2",type:"submit",disabled:e.emailLoading||e.emailSaving||!e.emailCSRFReady},u(e.emailSaving?"Saving\u2026":"Save email address"),9,F$),e.emailSaved?(l(),d("p",B$,"Email address saved.")):c("v-if",!0)],32),t[76]||(t[76]=n("a",{class:"paper-settings-connection-link",href:"/connections"},[n("i",{class:"fab fa-github","aria-hidden":"true"}),n("span",null,[h("GitHub connections"),n("small",null,"Manage repository access and legacy OAuth.")]),n("span",{"aria-hidden":"true"},"\u2192")],-1)),n("div",z$,[t[73]||(t[73]=n("div",{class:"paper-danger-head"},"Delete account",-1)),t[74]||(t[74]=n("p",{class:"paper-danger-copy"}," Removes all your anonymized repositories, gists, and pull requests, revokes the application's access to your GitHub account, and erases your personal data (username, email, access tokens). This cannot be undone. ",-1)),e.deleteError?(l(),d("div",H$,[t[70]||(t[70]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-info"})],-1)),t[71]||(t[71]=h()),n("span",{textContent:u(e.deleteError)},null,8,j$)])):c("v-if",!0),n("button",{type:"button",class:"btn btn-outline-danger",onClick:t[16]||(t[16]=r=>e.confirmDeleteAccount=!0),disabled:e.deletingAccount},[t[72]||(t[72]=n("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1)),h(u(e.deletingAccount?"Deleting\u2026":"Delete my account"),1)],8,G$),e.confirmDeleteAccount?(l(),d("div",W$,[n("label",K$,"Type "+u(e.user?.username)+" to confirm",1),T(n("input",{id:"delete-username",class:"form-control","onUpdate:modelValue":t[17]||(t[17]=r=>e.deleteUsername=r),autocomplete:"off"},null,512),[[ot,e.deleteUsername]]),n("div",Y$,[n("button",{type:"button",class:"btn btn-outline-danger",onClick:t[18]||(t[18]=r=>e.deleteAccount()),disabled:e.deletingAccount||e.deleteUsername!==e.user?.username},u(e.deletingAccount?"Deleting\u2026":"Delete permanently"),9,J$),n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[19]||(t[19]=r=>{e.confirmDeleteAccount=!1,e.deleteUsername=""}),disabled:e.deletingAccount},"Cancel",8,Q$)])])):c("v-if",!0)])],512),[[Y,e.settingsTab==="account"]])])}var X$={class:"pr-page"},Z$={class:"container paper-page pr-page-inner"},x$={class:"pr-header"},eU={class:"pr-title-row"},tU={class:"paper-page-title pr-title"},nU=["textContent"],oU={key:1,class:"text-muted"},sU=["href"],iU={class:"pr-header-meta"},rU={key:0,class:"pr-meta-item"},aU=["textContent"],lU={key:1,class:"pr-meta-item"},dU=["textContent"],uU={key:2,class:"pr-meta-item"},cU=["textContent"],pU={key:0,class:"pr-body-card"},fU={key:1,class:"paper-tabs",role:"tablist"},mU=["aria-selected","tabindex"],hU=["aria-selected","tabindex"],vU=["textContent"],gU={class:"paper-tab-content"},yU={key:0,role:"tabpanel",id:"pr-diff-panel","aria-labelledby":"pr-diff-tab"},bU=["innerHTML"],wU={key:1,role:"tabpanel",id:"pr-comments-panel","aria-labelledby":"pr-comments-tab"},kU={class:"pr-comments"},CU={class:"pr-comment"},EU={class:"pr-comment-head"},SU={key:0,class:"pr-comment-author"},NU=["textContent"],RU=["textContent"],DU={key:0,class:"pr-comment-body"},TU={key:0,class:"paper-table-empty"};function nd(e,t){let o=We("markdown");return l(),d("div",X$,[n("div",Z$,[t[17]||(t[17]=n("div",{class:"paper-crumbs"},[n("a",{href:"/dashboard"},"Reviewer"),h(" \xA0/\xA0 "),n("span",{class:"here"},"Pull request")],-1)),n("header",x$,[n("div",eU,[n("h1",tU,[e.details?.title?(l(),d("span",{key:0,textContent:u(e.details?.title)},null,8,nU)):c("v-if",!0),e.details?.title?c("v-if",!0):(l(),d("span",oU,"Untitled pull request"))]),e.options?.isAdmin||e.options?.isOwner?(l(),d("a",{key:0,class:"btn btn-sm","aria-label":"Edit",href:e.safeUrl("/pull-request-anonymize/"+e.pullRequestId)},[...t[4]||(t[4]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),n("span",{class:"d-none d-md-inline"}," Edit",-1)])],8,sU)):c("v-if",!0)]),n("div",iU,[n("span",{class:O(["paper-pill",{good:e.details?.merged,warn:e.details?.state=="open",bad:e.details?.state=="closed"&&!e.details?.merged}])},[n("span",{class:O(["status-dot",{"status-ready":e.details?.merged,"status-error":e.details?.state=="closed"&&!e.details?.merged}])},null,2),h(" "+u(e.details?.merged?"Merged":e.fmt.title(e.details?.state)),1)],2),e.details?.baseRepositoryFullName?(l(),d("span",rU,[t[5]||(t[5]=n("i",{class:"fab fa-github"},null,-1)),t[6]||(t[6]=h()),n("span",{textContent:u(e.details?.baseRepositoryFullName)},null,8,aU)])):c("v-if",!0),e.details?.updatedDate?(l(),d("span",lU,[t[7]||(t[7]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),t[8]||(t[8]=h()),n("span",{textContent:u(e.fmt?.date(e.details?.updatedDate))},null,8,dU)])):c("v-if",!0),e.details?.anonymizeDate?(l(),d("span",uU,[t[9]||(t[9]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})],-1)),t[10]||(t[10]=h(" Anonymized ",-1)),n("span",{textContent:u(e.fmt?.date(e.details?.anonymizeDate))},null,8,cU)])):c("v-if",!0)])]),e.details?.body?(l(),d("section",pU,[t[11]||(t[11]=n("div",{class:"paper-section-eyebrow"},"Description",-1)),De(o,{content:e.details?.body},null,8,["content"])])):c("v-if",!0),e.details?.diff||e.details?.comments?(l(),d("nav",fU,[e.details?.diff?(l(),d("button",{key:0,class:O(["paper-tab",{active:e.tabState?.active=="diff"}]),type:"button",role:"tab",id:"pr-diff-tab","aria-selected":e.tabState?.active==="diff","aria-controls":"pr-diff-panel",tabindex:e.tabState?.active==="diff"?0:-1,onKeydown:t[0]||(t[0]=i=>e.previewTabKeydown(i)),onClick:t[1]||(t[1]=i=>e.tabState.active="diff")},[...t[12]||(t[12]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-code"})],-1),h(" Diff ",-1)])],42,mU)):c("v-if",!0),e.details?.comments?(l(),d("button",{key:1,class:O(["paper-tab",{active:e.tabState?.active=="comments"}]),type:"button",role:"tab",id:"pr-comments-tab","aria-selected":e.tabState?.active==="comments","aria-controls":"pr-comments-panel",tabindex:e.tabState?.active==="comments"?0:-1,onKeydown:t[2]||(t[2]=i=>e.previewTabKeydown(i)),onClick:t[3]||(t[3]=i=>e.tabState.active="comments")},[t[13]||(t[13]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-comment"})],-1)),n("span",{textContent:u(e.fmt.plural(e.details?.comments?.length,{0:"No comments",one:"1 comment",other:"{} comments"}))},null,8,vU)],42,hU)):c("v-if",!0)])):c("v-if",!0),n("div",gU,[e.details?.diff&&e.tabState?.active=="diff"?(l(),d("div",yU,[n("div",{class:"pr-diff",innerHTML:e.sanitize(e.fmt?.diff(e.details?.diff))},null,8,bU)])):c("v-if",!0),e.details?.comments&&e.tabState?.active=="comments"?(l(),d("div",wU,[n("ul",kU,[(l(!0),d(W,null,oe(e.details?.comments,(i,s)=>(l(),d("li",CU,[n("div",EU,[i?.author?(l(),d("span",SU,[t[14]||(t[14]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-user"})],-1)),t[15]||(t[15]=h(" @",-1)),n("span",{textContent:u(i?.author)},null,8,NU)])):c("v-if",!0),i?.updatedDate?(l(),d("span",{key:1,class:"pr-comment-date",textContent:u(e.fmt?.date(i?.updatedDate))},null,8,RU)):c("v-if",!0)]),i?.body?(l(),d("div",DU,[De(o,{content:i?.body},null,8,["content"])])):c("v-if",!0)]))),256)),e.details?.comments?.length?c("v-if",!0):(l(),d("li",TU,[...t[16]||(t[16]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-comment"})],-1),n("span",null,"No comments on this pull request.",-1)])]))])])):c("v-if",!0)])])])}var _U={class:"repository-task status-page"},AU={class:"task-lede"},OU={class:"task-columns"},PU={class:"task-preparation","aria-label":"Repository preparation"},IU={key:0,class:"task-ready",role:"status"},MU={key:1},VU={key:2,class:"text-danger",role:"alert"},qU={key:3,class:"paper-section-copy"},LU={key:4,class:"paper-ratelimit-card",role:"status"},$U={class:"paper-error-msg"},UU=["aria-valuenow"],FU={class:"paper-progress-label"},BU=["textContent"],zU={key:0},HU=["textContent"],jU={class:"paper-progress-pct"},GU={key:6,class:"paper-error-card",role:"alert"},WU={key:0,class:"paper-error-msg"},KU={key:1,class:"paper-error-msg"},YU={key:2},JU=["href"],QU={class:"paper-error-actions"},XU=["href"],ZU={key:7,class:"share-link"},xU={class:"share-link-row"},eF=["value"],tF={class:"ui-icon","aria-hidden":"true"},nF=["href"],oF=["textContent"],sF={class:"share-link-actions"},iF=["href"],rF=["href"],aF={class:"task-summary","aria-label":"Repository summary"},lF={class:"task-summary-foot"};function od(e,t){return l(),d("div",_U,[t[23]||(t[23]=n("div",{class:"paper-crumbs"},[n("a",{href:"/dashboard"},"My work"),h(" / Repository")],-1)),t[24]||(t[24]=n("h1",null,"Prepare your anonymous review link",-1)),n("p",AU,u(e.repo?.status==="ready"?"Your repository is ready to share.":"Your settings are saved. Track preparation before sharing the link."),1),t[25]||(t[25]=n("ol",{class:"task-trail","aria-label":"Repository progress"},[n("li",null,"1. Repository"),n("li",null,"2. Review and hosting"),n("li",{"aria-current":"step"},"3. Review link")],-1)),n("div",OU,[n("section",PU,[e.repo?.status==="ready"?(l(),d("div",IU,[...t[3]||(t[3]=[n("strong",null,"Your review link is ready",-1)])])):c("v-if",!0),n("h2",null,u(e.repoId),1),e.repo?.status==="ready"?(l(),d("p",MU,"Share the link with reviewers. They do not need to sign in.")):c("v-if",!0),e.error?(l(),d("p",VU,[t[4]||(t[4]=h("Unable to load repository status. ",-1)),n("button",{type:"button",class:"task-text-button",onClick:t[0]||(t[0]=o=>e.getStatus())},"Try again")])):c("v-if",!0),e.repo?.status!=="ready"?(l(),d("p",qU,[...t[5]||(t[5]=[h(" The repository will take a few minutes to get ready, depending on its size. Visit the ",-1),n("a",{href:"/faq"},"FAQ",-1),h(" for more information. ",-1)])])):c("v-if",!0),e.rateLimitResetAt?(l(),d("div",LU,[t[8]||(t[8]=me('<div class="paper-ratelimit-head"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-hourglass"></use></svg><div><div class="paper-error-eyebrow">Temporarily paused</div><div class="paper-error-title">GitHub API rate limit reached</div></div></div>',1)),n("p",$U,[t[6]||(t[6]=h("Anonymization will resume automatically in ",-1)),n("strong",null,u(e.rateLimitCountdown),1),t[7]||(t[7]=h(". No action needed \u2014 the job is queued and will continue where it left off.",-1))])])):c("v-if",!0),e.repo?.status!=="ready"&&e.repo?.status!="error"&&!e.rateLimitResetAt?(l(),d("div",{key:5,class:O(["paper-progress",{"paper-progress-ready":e.repo?.status=="ready"}]),role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.progress},[n("div",{class:"paper-progress-bar",style:Re("width: "+e.progress+"%;")},null,4),n("div",FU,[n("span",{textContent:u(e.fmt?.title(e.repo?.status))},null,8,BU),e.repo?.statusMessage?(l(),d("span",zU,[t[9]||(t[9]=h("\xA0\xB7\xA0",-1)),n("span",{textContent:u(e.repo?.statusMessage)},null,8,HU)])):c("v-if",!0),n("span",jU,u(e.progress||0)+"%",1)])],10,UU)):c("v-if",!0),e.repo?.status=="error"&&!e.rateLimitResetAt?(l(),d("div",GU,[t[13]||(t[13]=me('<div class="paper-error-head"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-warning"></use></svg><div><div class="paper-error-eyebrow">Anonymization failed</div><div class="paper-error-title">Something went wrong while preparing this repository.</div></div></div>',1)),e.repo?.statusMessage?(l(),d("p",WU,u(e.fmt?.translate("ERRORS."+e.repo?.statusMessage)),1)):c("v-if",!0),e.repo?.statusMessage?c("v-if",!0):(l(),d("p",KU,"No additional details were reported. The most common causes are private repositories, missing branches, and rate limits.")),e.repo?.statusMessage==="quota_exceeded"?(l(),d("p",YU,[n("a",{href:e.safeUrl("/anonymize/"+e.repoId)},"Review this repository\u2019s hosting",8,JU),t[10]||(t[10]=h(", then retry preparation.",-1))])):c("v-if",!0),t[14]||(t[14]=n("ul",{class:"paper-error-hints"},[n("li",null,"Make sure the source URL points to a repository or pull request you can access."),n("li",null,"Check that the chosen branch and commit still exist on GitHub."),n("li",null,"If you just signed in, the access token may need a moment to propagate \u2014 try again.")],-1)),n("div",QU,[n("a",{class:"btn btn-ink",href:e.safeUrl("/anonymize/"+e.repoId)},[...t[11]||(t[11]=[n("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),h(" Edit anonymization",-1)])],8,XU),t[12]||(t[12]=me('<a class="btn" href="/faq"><svg class="ui-icon mr-1" aria-hidden="true"><use href="#ui-icon-help"></use></svg> Read the FAQ</a><a class="btn" href="https://github.com/tdurieux/anonymous_github/issues/new?template=issue_report.yml" target="_blank" rel="noopener"><svg class="ui-icon mr-1" aria-hidden="true"><use href="#ui-icon-bug"></use></svg> Report a bug in Anonymous GitHub</a>',2))])])):c("v-if",!0),e.repo?.status=="ready"?(l(),d("div",ZU,[t[17]||(t[17]=n("p",{class:"paper-section-copy"},"Reviewers can browse the repository at this address without seeing who you are.",-1)),n("div",xU,[n("input",{id:"share-url",class:"form-control share-link-input",readonly:"","aria-label":"Anonymous link",value:e.shareUrl,onFocus:t[1]||(t[1]=o=>o.target.select())},null,40,eF),n("button",{type:"button",class:"btn btn-ink",onClick:t[2]||(t[2]=o=>e.copyShareUrl())},[(l(),d("svg",tF,[n("use",{href:e.copied?"#ui-icon-check":"#project-icon-copy"},null,8,nF)])),n("span",{"aria-live":"polite",textContent:u(e.copied?"Copied":"Copy link")},null,8,oF)])]),n("div",sF,[n("a",{class:"btn",target:"_self",href:e.safeUrl("/r/"+e.repoId+"/")},[...t[15]||(t[15]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1),h(" Open repository ",-1)])],8,iF),e.repo?.options?.page?(l(),d("a",{key:0,class:"btn",target:"_self",href:e.safeUrl("/w/"+e.repoId+"/")},[...t[16]||(t[16]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-globe"})],-1),h(" Open GitHub page ",-1)])],8,rF)):c("v-if",!0)])])):c("v-if",!0)]),n("aside",aF,[n("h3",null,u(e.repoId),1),n("dl",null,[t[18]||(t[18]=n("dt",null,"Source",-1)),n("dd",null,u(e.repo?.source?.fullName?"https://github.com/"+e.repo.source.fullName:"Loading\u2026"),1),t[19]||(t[19]=n("dt",null,"Lifetime",-1)),n("dd",null,u(e.repo?.options?.expirationMode==="never"?"Never expire while subscribed":e.repo?.options?.expirationDate?"Until "+e.fmt.date(e.repo.options.expirationDate):"Loading\u2026"),1),t[20]||(t[20]=n("dt",null,"Review access",-1)),t[21]||(t[21]=n("dd",null,"Anonymous and free",-1))]),n("div",lF,[n("strong",null,u(e.repo?.status==="ready"?"Ready to share":"Repository preparation"),1),t[22]||(t[22]=n("p",null,"Coauthors do not each need a subscription.",-1))])])])])}var fs={"partials/reviewConsent.htm":_l,"partials/connections.htm":Al,"partials/signin.htm":Ol,"partials/404.htm":Pl,"partials/admin/conferences.htm":Il,"partials/admin/errors.htm":Ml,"partials/admin/overview.htm":Vl,"partials/admin/queues.htm":ql,"partials/admin/repositories.htm":Ll,"partials/admin/user.htm":$l,"partials/admin/users.htm":Ul,"partials/anonymize.htm":Fl,"partials/anonymizePullRequest.htm":Bl,"partials/claim.htm":zl,"partials/conference.htm":Hl,"partials/conferences.htm":jl,"partials/dashboard.htm":Gl,"partials/explorer.htm":Wl,"partials/faq.htm":Kl,"partials/gist.htm":Yl,"partials/header.htm":Jl,"partials/home.htm":Ql,"partials/loading.htm":Xl,"partials/newConference.htm":Zl,"partials/pageView.htm":xl,"partials/pr-dashboard.htm":ed,"partials/profile.htm":td,"partials/pullRequest.htm":nd,"partials/status.htm":od};var dF={class:"ui-icon-definitions","aria-hidden":"true",focusable:"false"};function sd(e,t){return l(),d("svg",dF,[...t[0]||(t[0]=[me('<defs><symbol id="project-type-repo" viewBox="0 0 24 24"><path d="M6 3h13v18H6a3 3 0 0 1 0-6h13M3 18V6a3 3 0 0 1 3-3M8 7h6"></path></symbol><symbol id="project-type-pr" viewBox="0 0 24 24"><circle cx="6" cy="5" r="2.5"></circle><circle cx="6" cy="19" r="2.5"></circle><circle cx="18" cy="19" r="2.5"></circle><path d="M6 7.5v9M18 16.5V9a4 4 0 0 0-4-4h-3m3-3-3 3 3 3"></path></symbol><symbol id="project-type-gist" viewBox="0 0 24 24"><path d="M14 3H5v18h14V8l-5-5v5h5M9 12l-2 2 2 2m6-4 2 2-2 2"></path></symbol><symbol id="project-icon-copy" viewBox="0 0 24 24"><rect x="8" y="8" width="12" height="13" rx="2"></rect><path d="M15 8V3H3v13h5"></path></symbol><symbol id="project-icon-more" viewBox="0 0 24 24"><circle cx="5" cy="12" r="1"></circle><circle cx="12" cy="12" r="1"></circle><circle cx="19" cy="12" r="1"></circle></symbol><symbol id="project-icon-eye" viewBox="0 0 24 24"><path d="M2 12s4-7 10-7 10 7 10 7-4 7-10 7S2 12 2 12Z"></path><circle cx="12" cy="12" r="3"></circle></symbol><symbol id="project-icon-clock" viewBox="0 0 24 24"><circle cx="12" cy="12" r="9"></circle><path d="M12 7v5l3 2"></path></symbol><symbol id="project-icon-conference" viewBox="0 0 24 24"><path d="m3 8 9-5 9 5H3Zm2 3v7m5-7v7m4-7v7m5-7v7M3 21h18"></path></symbol><symbol id="project-icon-plus" viewBox="0 0 24 24"><path d="M12 5v14M5 12h14"></path></symbol><symbol id="project-icon-filter" viewBox="0 0 24 24"><path d="M3 6h18M3 12h18M3 18h18"></path><circle cx="8" cy="6" r="2"></circle><circle cx="16" cy="12" r="2"></circle><circle cx="9" cy="18" r="2"></circle></symbol><symbol id="project-icon-arrow" viewBox="0 0 24 24"><path d="M12 4v16m-5-5 5 5 5-5"></path></symbol><symbol id="project-icon-close" viewBox="0 0 24 24"><path d="m6 6 12 12M6 18 18 6"></path></symbol><symbol id="project-icon-chevron" viewBox="0 0 24 24"><path d="m6 9 6 6 6-6"></path></symbol><symbol id="project-icon-storage" viewBox="0 0 24 24"><rect x="3" y="4" width="18" height="7" rx="2"></rect><rect x="3" y="13" width="18" height="7" rx="2"></rect><path d="M7 7.5h.01M7 16.5h.01M11 7.5h6M11 16.5h6"></path></symbol><symbol id="project-icon-file" viewBox="0 0 24 24"><path d="M14 3H5v18h14V8l-5-5v5h5M9 12h6M9 16h6"></path></symbol><symbol id="project-icon-inbox" viewBox="0 0 24 24"><path d="m3 14 3-9h12l3 9v6H3v-6h5l2 3h4l2-3h5"></path></symbol><symbol id="ui-icon-arrow-left" viewBox="0 0 24 24"><path d="M20 12H4m6-6-6 6 6 6"></path></symbol><symbol id="ui-icon-arrow-right" viewBox="0 0 24 24"><path d="M4 12h16m-6-6 6 6-6 6"></path></symbol><symbol id="ui-icon-check" viewBox="0 0 24 24"><path d="m5 12 4 4L19 6"></path></symbol><symbol id="ui-icon-check-circle" viewBox="0 0 24 24"><circle cx="12" cy="12" r="9"></circle><path d="m7 12 3 3 7-7"></path></symbol><symbol id="ui-icon-edit" viewBox="0 0 24 24"><path d="m15 4 5 5M4 20l5-1L21 7l-5-5L4 14v6Z"></path></symbol><symbol id="ui-icon-external-link" viewBox="0 0 24 24"><path d="M14 3h7v7m0-7L10 14M10 3H3v18h18v-7"></path></symbol><symbol id="ui-icon-key" viewBox="0 0 24 24"><circle cx="8" cy="8" r="5"></circle><path d="m12 12 9 9m-6-6 3-3m0 6 3-3"></path></symbol><symbol id="ui-icon-refresh" viewBox="0 0 24 24"><path d="M20 8a8 8 0 0 0-14-3L3 8m0-5v5h5M4 16a8 8 0 0 0 14 3l3-3m0 5v-5h-5"></path></symbol><symbol id="ui-icon-info" viewBox="0 0 24 24"><circle cx="12" cy="12" r="9"></circle><path d="M12 11v6M12 7h.01"></path></symbol><symbol id="ui-icon-warning" viewBox="0 0 24 24"><path d="m12 3 10 18H2L12 3Zm0 6v5m0 3h.01"></path></symbol><symbol id="ui-icon-help" viewBox="0 0 24 24"><circle cx="12" cy="12" r="9"></circle><path d="M9 9a3 3 0 0 1 6 0c0 2-3 2-3 4m0 4h.01"></path></symbol><symbol id="ui-icon-user" viewBox="0 0 24 24"><circle cx="12" cy="7" r="4"></circle><path d="M4 21v-3a8 8 0 0 1 16 0v3"></path></symbol><symbol id="ui-icon-users" viewBox="0 0 24 24"><circle cx="9" cy="7" r="4"></circle><path d="M2 21v-3a7 7 0 0 1 14 0v3M16 3a4 4 0 0 1 0 8m3 3a6 6 0 0 1 3 5v2"></path></symbol><symbol id="ui-icon-shield" viewBox="0 0 24 24"><path d="m12 3 9 4v6c0 4-9 9-9 9S3 17 3 13V7l9-4Z"></path></symbol><symbol id="ui-icon-code" viewBox="0 0 24 24"><path d="m7 6-6 6 6 6m10-12 6 6-6 6m-4-14-2 16"></path></symbol><symbol id="ui-icon-comment" viewBox="0 0 24 24"><path d="M21 3H3v14h5l4 4v-4h9V3Z"></path><path d="M7 8h10M7 12h6"></path></symbol><symbol id="ui-icon-save" viewBox="0 0 24 24"><path d="M3 3h14l4 4v14H3V3Zm4 0v7h10V3M7 21v-7h10v7"></path></symbol><symbol id="ui-icon-heart" viewBox="0 0 24 24"><path d="M12 21 3 12C-2 6 7-1 12 6c5-7 14 0 9 6l-9 9Z"></path></symbol><symbol id="ui-icon-globe" viewBox="0 0 24 24"><circle cx="12" cy="12" r="9"></circle><ellipse cx="12" cy="12" rx="4" ry="9"></ellipse><path d="M3 12h18"></path></symbol><symbol id="ui-icon-hourglass" viewBox="0 0 24 24"><path d="M5 3h14M5 21h14M6 3v4l6 5 6-5V3M6 21v-4l6-5 6 5v4"></path></symbol><symbol id="ui-icon-moon" viewBox="0 0 24 24"><path d="M20 14A9 9 0 0 1 10 3a9 9 0 1 0 10 11Z"></path></symbol><symbol id="ui-icon-sun" viewBox="0 0 24 24"><circle cx="12" cy="12" r="4"></circle><path d="M12 1v2m0 18v2M1 12h2m18 0h2M4 4l2 2m12 12 2 2M4 20l2-2M18 6l2-2"></path></symbol><symbol id="ui-icon-home" viewBox="0 0 24 24"><path d="M3 11 12 3l9 8M5 9.5V21h5v-6h4v6h5V9.5"></path></symbol><symbol id="ui-icon-grid" viewBox="0 0 24 24"><rect x="3" y="3" width="7" height="7" rx="1"></rect><rect x="14" y="3" width="7" height="7" rx="1"></rect><rect x="3" y="14" width="7" height="7" rx="1"></rect><rect x="14" y="14" width="7" height="7" rx="1"></rect></symbol><symbol id="ui-icon-logout" viewBox="0 0 24 24"><path d="M9 3H3v18h6M9 12h12m-4-4 4 4-4 4"></path></symbol><symbol id="ui-icon-link" viewBox="0 0 24 24"><path d="m10 7 3-3a5 5 0 0 1 7 7l-3 3M7 10l-3 3a5 5 0 0 0 7 7l3-3M8 16l8-8"></path></symbol><symbol id="ui-icon-chart" viewBox="0 0 24 24"><path d="M3 3v18h18M7 16V9m5 7V5m5 11v-5"></path></symbol><symbol id="ui-icon-sidebar" viewBox="0 0 24 24"><path d="M4 5h16v14H4zM9.5 5v14M6 8.5h1.5M6 11h1.5"></path></symbol><symbol id="ui-icon-zip" viewBox="0 0 24 24"><path d="M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path><path d="M12 10v6m-2.5-2.5L12 16l2.5-2.5"></path></symbol><symbol id="ui-icon-goto" viewBox="0 0 24 24"><path d="M9 4 7 20M17 4l-2 16M4 9h16M3 15h16"></path></symbol><symbol id="ui-icon-wrap" viewBox="0 0 24 24"><path d="M3 6h18M3 12h14.5a3.5 3.5 0 0 1 0 7H13m2-2.5L12.5 19l2.5 2.5M3 18h6"></path></symbol><symbol id="ui-icon-outline" viewBox="0 0 24 24"><path d="M4 6h16M8 12h12M8 18h12M4 12h.01M4 18h.01"></path></symbol><symbol id="ui-icon-list" viewBox="0 0 24 24"><path d="M9 5h12M9 12h12M9 19h12m-18-14 1 1 2-2m-3 8 1 1 2-2m-3 8 1 1 2-2"></path></symbol><symbol id="ui-icon-bug" viewBox="0 0 24 24"><rect x="7" y="7" width="10" height="14" rx="5"></rect><path d="M9 7V5a3 3 0 0 1 6 0v2M12 7v14M3 8l4 2m-4 5h4m-4 7 4-4M21 8l-4 2m4 5h-4m4 7-4-4"></path></symbol><symbol id="ui-icon-chevron-left" viewBox="0 0 24 24"><path d="m15 5-7 7 7 7"></path></symbol><symbol id="ui-icon-chevron-right" viewBox="0 0 24 24"><path d="m9 5 7 7-7 7"></path></symbol><symbol id="ui-icon-download" viewBox="0 0 24 24"><path d="M12 3v12m-5-5 5 5 5-5M3 16v5h18v-5"></path></symbol><symbol id="ui-icon-export" viewBox="0 0 24 24"><path d="M13 3H3v18h14v-6M12 9h9m-4-4 4 4-4 4"></path></symbol><symbol id="ui-icon-clipboard" viewBox="0 0 24 24"><path d="M8 5H4v16h16V5h-4"></path><rect x="8" y="2" width="8" height="6" rx="2"></rect></symbol><symbol id="ui-icon-ban" viewBox="0 0 24 24"><circle cx="12" cy="12" r="9"></circle><path d="m6 6 12 12"></path></symbol><symbol id="ui-icon-trash" viewBox="0 0 24 24"><path d="M3 6h18M9 6V3h6v3M5 6l1 15h12l1-15M10 10v7m4-7v7"></path></symbol><symbol id="ui-icon-broom" viewBox="0 0 24 24"><path d="m16 3-5 8m-7 5 6-6 6 4-3 7H3l1-5Zm1 5 4-6"></path></symbol><symbol id="ui-icon-database" viewBox="0 0 24 24"><ellipse cx="12" cy="5" rx="9" ry="3"></ellipse><path d="M3 5v14c0 4 18 4 18 0V5M3 12c0 4 18 4 18 0"></path></symbol><symbol id="ui-icon-user-minus" viewBox="0 0 24 24"><circle cx="9" cy="7" r="4"></circle><path d="M2 21v-3a7 7 0 0 1 14 0v3m0-11h7"></path></symbol><symbol id="ui-icon-user-shield" viewBox="0 0 24 24"><circle cx="8" cy="6" r="4"></circle><path d="M1 21v-4a7 7 0 0 1 10-6m7 0 5 2v4c0 3-5 6-5 6s-5-3-5-6v-4l5-2Z"></path></symbol><symbol id="ui-icon-spinner" viewBox="0 0 24 24"><path d="M21 12a9 9 0 1 1-9-9"></path></symbol><symbol id="ui-icon-archive" viewBox="0 0 24 24"><path d="M3 3h18v5H3V3Zm2 5v13h14V8M10 3v3m4 3v3m-4 3v3m4 0v3"></path></symbol><symbol id="ui-icon-calendar" viewBox="0 0 24 24"><rect x="3" y="5" width="18" height="16" rx="2"></rect><path d="M7 2v6m10-6v6M3 11h18"></path></symbol><symbol id="ui-icon-search" viewBox="0 0 24 24"><circle cx="10" cy="10" r="7"></circle><path d="m15 15 7 7"></path></symbol><symbol id="ui-icon-folder" viewBox="0 0 24 24"><path d="M3 20V4h6l2 3h10v13H3Z"></path></symbol></defs>',1)])])}function id(e,t){e==="partials/explorer.htm"&&(t.sidebarCollapsed=window.matchMedia?.("(max-width: 767px)").matches||!1,t.sidebarHidden=!1,t.dirExpanded=!1,t.moreOpen=!1,t.tocOpen=!1,t.gotoOpen=!1,t.gotoValue="",t.gotoError="",t.mdFindOpen=!1,t.mdFindQuery="",t.mdFindTotal=0,t.mdFindIndex=0,t.mdFindCase=!1,t.accountOpen=!1,t.helpOpen=!1,t.sidebarWidth=Math.min(520,Math.max(220,Number(localStorage.getItem("sidebarWidth"))||280)),document.documentElement.style.setProperty("--sidebar-w",t.sidebarWidth+"px"),t.startSidebarResize=s=>{s.preventDefault();let r=s.clientX,a=t.sidebarWidth,p=g=>{t.sidebarWidth=Math.min(520,Math.max(220,a+g.clientX-r)),document.documentElement.style.setProperty("--sidebar-w",t.sidebarWidth+"px")},f=()=>{window.removeEventListener("pointermove",p),window.removeEventListener("pointerup",f),document.body.classList.remove("is-resizing"),localStorage.setItem("sidebarWidth",String(t.sidebarWidth))};document.body.classList.add("is-resizing"),window.addEventListener("pointermove",p),window.addEventListener("pointerup",f)}),e==="partials/anonymize.htm"&&(t.prTabState={active:t.options.diff?"diff":"comments"},t.watchGroup(["options.diff","options.comments"],()=>{t.options[t.prTabState.active]||(t.prTabState.active=t.options.diff?"diff":t.options.comments?"comments":null)})),e==="partials/gist.htm"&&(t.tabState={active:t.details?.files?"files":"comments"}),["partials/conferences.htm","partials/conference.htm"].includes(e)&&(t.statusLabels={ready:"Ready",expired:"Expired",removed:"Removed"});let i={"partials/dashboard.htm":["filteredItems",()=>t.items,"itemFilter"],"partials/conferences.htm":["filteredConferences",()=>t.conferences,"conferenceFilter"],"partials/conference.htm":["filteredRepositories",()=>t.conference?.repositories,"repoFiler"],"partials/admin/repositories.htm":["filteredRepositories",()=>t.repositories,"repoFiler"],"partials/admin/user.htm":["filteredRepositories",()=>t.repositories,"repoFiler"],"partials/admin/users.htm":["filteredUsers",()=>t.users,"userFiler"],"partials/admin/conferences.htm":["filteredConferences",()=>t.conferences]}[e];if(i){let s=nt(()=>t.fmt.orderBy(t.fmt.filter(i[1](),t[i[2]]),t.orderBy));Object.defineProperty(t,i[0],{configurable:!0,get:()=>s.value})}}function rd(e=(...t)=>fetch(...t)){async function t(i,s,r,a={}){let p=new URL(s,window.location.href);for(let[y,b]of Object.entries(a.params||{}))if(b!=null)for(let m of Array.isArray(b)?b:[b])p.searchParams.append(y,typeof m=="object"?JSON.stringify(m):m);let f=new AbortController,g;a.timeout?.then?a.timeout.then(()=>f.abort()):a.timeout&&(g=setTimeout(()=>f.abort(),a.timeout));try{let y={Accept:"application/json, text/plain, */*",...a.headers},b=document.cookie.match(/(?:^|;\s*)XSRF-TOKEN=([^;]*)/);b&&p.origin===window.location.origin&&(y["X-XSRF-TOKEN"]=decodeURIComponent(b[1]));let m;r!==void 0&&(r instanceof FormData?m=r:(y["Content-Type"]||(y["Content-Type"]="application/json;charset=utf-8"),m=JSON.stringify(r)));let E=await e(p.href,{method:i,headers:y,body:m,credentials:"same-origin",signal:f.signal}),P;if(a.onDownloadProgress&&E.ok&&E.body?.getReader&&typeof TextDecoder<"u"){let S=E.body.getReader(),_=new TextDecoder,M=[],L=0;try{for(;;){let{value:q,done:G}=await S.read();if(G)break;M.push(_.decode(q,{stream:!0})),L+=q.byteLength,a.onDownloadProgress(L)}M.push(_.decode()),P=M.join("")}finally{S.releaseLock()}}else P=await E.text();let k=P;if(a.transformResponse)k=a.transformResponse(P);else if(P&&(/json/i.test(E.headers.get("content-type")||"")||/^[\[{]/.test(P.trim())))try{k=JSON.parse(P)}catch{}let v={data:k,status:E.status,headers:S=>E.headers.get(S)};if(!E.ok)throw v;return v}catch(y){throw y.name==="AbortError"?{status:-1,data:null}:y}finally{clearTimeout(g)}}let o={};for(let i of["get","delete","head"])o[i]=(s,r)=>t(i.toUpperCase(),s,void 0,r);for(let i of["post","put","patch"])o[i]=(s,r,a)=>t(i.toUpperCase(),s,r,a);return o}var ad={resolve:e=>Promise.resolve(e),reject:e=>Promise.reject(e),all:e=>Promise.all(e),defer(){let e,t;return{promise:new Promise((i,s)=>{e=i,t=s}),resolve:e,reject:t}}};var ld=function(e){function t(o){return o=o||{used:0,total:0},o.unlimited=!o.total,o.percent=o.unlimited?0:Math.min(100,o.used*100/o.total),o.level=o.unlimited?"unlimited":o.percent>=95?"danger":o.percent>=80?"warn":"ok",o}return{decorate:t,load:function(){return e.get("/api/user/quota").then(o=>{let i=o.data||{};return i.storage=t(i.storage),i.file=t(i.file),i.repository=t(i.repository),i})}}};var bi={};Dd(bi,{bigNum:()=>cF,date:()=>CF,diff:()=>vF,filter:()=>wF,humanFileSize:()=>uF,humanTime:()=>pF,limitTo:()=>bF,number:()=>gF,orderBy:()=>kF,plural:()=>EF,statusLabel:()=>mF,statusMsg:()=>hF,title:()=>fF,uppercase:()=>yF});var uF=e=>window.humanFileSize(e),cF=(function(){return function(t){let o=Number(t)||0,i=Math.abs(o);return i<1e3?String(o):i<1e4?(o/1e3).toFixed(1).replace(/\.0$/,"")+"k":i<1e6?Math.round(o/1e3)+"k":i<1e7?(o/1e6).toFixed(1).replace(/\.0$/,"")+"M":Math.round(o/1e6)+"M"}})(),pF=(function(){return function(t){if(!t)return"never";var o=null;t instanceof Date&&(o=t,t=Math.round((Date.now()-t)/1e3)),(typeof t=="string"||typeof t=="number")&&(o=new Date(t),t=Math.round((Date.now()-o)/1e3));var i=t<0?"from now":"ago";if(Math.abs(t)>7200*24)return(o&&!isNaN(o)?o:new Date(Date.now()-t*1e3)).toLocaleDateString(void 0,{day:"numeric",month:"short",year:"numeric"});t=Math.abs(t);for(var s=[t/60/60/24/365,t/60/60/24/30,t/60/60/24/7,t/60/60/24,t/60/60,t/60,t],r=["year","month","week","day","hour","minute","second"],a=0;a<r.length;a++){var p=Math.floor(s[a]),f=r[a];if(p>1&&(f+="s"),p>=1)return p+" "+f+" "+i}return"0 seconds "+i}})(),fF=(function(){return function(e){if(!e)return e;e=e.toLowerCase();var t=e.split(" "),o=t.map(function(i){return i.charAt(0).toUpperCase()+i.substring(1,i.length)});return o.join(" ")}})(),mF=(function(){var e={ready:"Ready",error:"Error",expired:"Expired",expiring:"Expiring",removed:"Removed",removing:"Removing",queue:"Queued",download:"Downloading",downloaded:"Downloaded",preparing:"Preparing",anonymizing:"Anonymizing"};return function(t){if(!t)return"";if(e[t])return e[t];var o=String(t).replace(/[_-]+/g," ").toLowerCase();return o.charAt(0).toUpperCase()+o.slice(1)}})(),hF=(function(){var e={branch_not_found:"Branch not found on GitHub",repo_not_found:"Repository not found on GitHub",repository_not_found:"Repository not found on GitHub",repo_not_accessible:"Repository is not accessible with your token",pr_not_found:"Pull request not found on GitHub",gist_not_found:"Gist not found on GitHub",commit_not_found:"Commit not found on GitHub",repo_too_big:"Repository exceeds the size limit",quota_exceeded:"Storage quota exceeded",incomplete_record:"Incomplete record: missing identifier"};return function(t){if(!t)return t;var o=t.match(/^rate_limited:(\d+)$/);if(o){var i=Math.max(0,Math.ceil((parseInt(o[1],10)-Date.now())/1e3));if(i<=0)return"Rate limited \u2014 resuming soon";var s=Math.floor(i/60),r=i%60;return"Rate limited \u2014 retrying in "+(s>0?s+"m "+r+"s":r+"s")}if(e[t])return e[t];if(/^[a-z0-9]+(_[a-z0-9]+)+$/.test(t)){var a=t.replace(/_/g," ");return a.charAt(0).toUpperCase()+a.slice(1)}return t}})(),vF=(function(e){let t=i=>i.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">");function o(i,s){if(!s)return;let r=s.newPath&&s.newPath!=="/dev/null"?s.newPath:s.oldPath||"",a=s.oldPath==="/dev/null"?"added":s.newPath==="/dev/null"?"deleted":s.oldPath&&s.newPath&&s.oldPath!==s.newPath?"renamed":"modified";if(i.push('<div class="diff-file-block">'),i.push('<div class="diff-file-header"><span class="diff-file-icon"><i class="far fa-file-code"></i></span><span class="diff-file-name">'+t(r)+'</span><span class="diff-file-status diff-file-status-'+a+'">'+a+"</span></div>"),s.lines.length){i.push('<table class="diff-file-table"><tbody>');for(let p of s.lines)i.push('<tr class="diff-row diff-row-'+p.kind+'"><td class="diff-gutter diff-gutter-old">'+(p.oldNo||"")+'</td><td class="diff-gutter diff-gutter-new">'+(p.newNo||"")+'</td><td class="diff-sign">'+(p.kind==="add"?"+":p.kind==="remove"?"-":p.kind==="hunk"?"@":"")+'</td><td class="diff-code">'+t(p.text)+"</td></tr>");i.push("</tbody></table>")}i.push("</div>")}return function(i){if(!i)return i;let s=[],r=null,a=0,p=0,f=()=>(r||(r={oldPath:"",newPath:"",lines:[]}),r),g=()=>{r&&(r.lines.length||r.oldPath||r.newPath)&&(o(s,r),r=null)},y=i.split(`
|
|
`);for(let b=0;b<y.length;b++){let m=y[b];if(m.startsWith("diff --git")){g(),f();continue}if(m.startsWith("--- ")){r&&r.lines.length&&g(),f().oldPath=m.replace(/^--- (a\/)?/,"").trim();continue}if(m.startsWith("+++ ")){f().newPath=m.replace(/^\+\+\+ (b\/)?/,"").trim();continue}if(!(m.startsWith("index ")||m.startsWith("similarity index")||m.startsWith("rename ")||m.startsWith("new file mode")||m.startsWith("deleted file mode")||m.startsWith("Binary files"))){if(m.startsWith("@@")){let E=m.match(/@@\s+-(\d+)(?:,\d+)?\s+\+(\d+)(?:,\d+)?\s+@@/);E&&(a=parseInt(E[1],10),p=parseInt(E[2],10)),f().lines.push({kind:"hunk",oldNo:"",newNo:"",text:m});continue}r&&(m.startsWith("+")?(r.lines.push({kind:"add",oldNo:"",newNo:p,text:m.slice(1)}),p++):m.startsWith("-")?(r.lines.push({kind:"remove",oldNo:a,newNo:"",text:m.slice(1)}),a++):(r.lines.push({kind:"ctx",oldNo:a,newNo:p,text:m.startsWith(" ")?m.slice(1):m}),a++,p++))}}return o(s,r),s.join("")}})({trustAsHtml:e=>e});function gF(e,t){return e==null?"":Number(e).toLocaleString(void 0,t==null?{}:{minimumFractionDigits:t,maximumFractionDigits:t})}function yF(e){return String(e??"").toUpperCase()}function bF(e,t,o=0){return(e||[]).slice(o,o+t)}function wF(e,t){return Array.isArray(e)?typeof t=="function"?e.filter(t):e:[]}function kF(e,t){if(!t)return e||[];let o=Array.isArray(t)?t:[t];return[...e||[]].sort((i,s)=>{for(let r of o){let a=r[0]==="-"?-1:1;r=r.replace(/^[+-]/,"");let p=r.split(".").reduce((g,y)=>g?.[y],i),f=r.split(".").reduce((g,y)=>g?.[y],s);if(typeof p=="string"&&(p=p.toLowerCase()),typeof f=="string"&&(f=f.toLowerCase()),p!==f)return(p==null?-1:f==null?1:p<f?-1:1)*a}return 0})}function CF(e,t){if(!e)return"";let o=new Date(e);if(isNaN(o))return String(e);if(!t||t==="mediumDate")return o.toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"});let i={yyyy:o.getFullYear(),MMM:o.toLocaleDateString(void 0,{month:"short"}),MM:String(o.getMonth()+1).padStart(2,"0"),dd:String(o.getDate()).padStart(2,"0"),d:o.getDate(),HH:String(o.getHours()).padStart(2,"0"),mm:String(o.getMinutes()).padStart(2,"0"),ss:String(o.getSeconds()).padStart(2,"0")};return t.replace(/yyyy|MMM|MM|dd|HH|mm|ss|d/g,s=>i[s])}function EF(e,t){return(t?.[e]??t?.[e===1?"one":"other"]??"").replace(/\{\}/g,e??0)}var dd={name:"htmlDoc",props:["content","baseUrl","allowScripts"],setup(e){let t=et(null);return Ft(()=>{let i=[t.value][0];i.classList.add("html-doc");function s(){i.innerHTML="";let r=e.content;if(typeof r!="string")return;let a=document.createElement("iframe");a.className="html-doc-frame",a.setAttribute("title","Rendered HTML document");let p=["allow-popups","allow-popups-to-escape-sandbox"];e.allowScripts&&p.push("allow-scripts","allow-forms","allow-modals"),a.setAttribute("sandbox",p.join(" ")),a.setAttribute("referrerpolicy","no-referrer"),i.appendChild(a);let f="";e.baseUrl&&(f='<base href="'+e.baseUrl.replace(/&/g,"&").replace(/"/g,""")+'">'),a.srcdoc=f+r}Fe(()=>e.content,s,{immediate:!0}),Fe(()=>e.baseUrl,s,{immediate:!0}),Fe(()=>e.allowScripts,s,{immediate:!0})}),()=>Se("html-doc",{ref:t})}};var ud={name:"pdfviewer",props:["src"],setup(e){let t=et(null);return Ft(()=>{let o=[t.value],i=400,s=[.5,.75,1,1.25,1.5,2,3],r=1e3,a=o[0];a.classList.add("pdf-viewer");let p=null,f=[],g=!1,y=null,b=1,m=1,E=0,P=0,k=612/792,v=0,S=null,_=new Map,M=0;function L(C){let N=_.get(C);N&&(N.cancelled=!0,N.task?.cancel?.(),_.delete(C));let V=C.querySelector("canvas");V&&(V.width=0,V.height=0),C.innerHTML="",delete C.dataset.state}let q=document.createElement("div");q.className="pdf-toolbar";let G=document.createElement("div");G.className="pdf-pages",G.tabIndex=0,G.setAttribute("aria-label","PDF pages"),a.appendChild(q),a.appendChild(G);function se(C,N,V){let j=document.createElement("button");return j.type="button",j.className="pdf-toolbar-btn",j.title=N,j.setAttribute("aria-label",N),j.innerHTML='<i class="fas '+C+'"></i>',j.addEventListener("click",V),j}let ee=se("fa-chevron-up","Previous page",function(){ze(m-1)}),R=se("fa-chevron-down","Next page",function(){ze(m+1)}),K=document.createElement("input");K.type="text",K.className="pdf-toolbar-page",K.setAttribute("aria-label","Page number"),K.title="Page number \u2014 type a page and press Enter",K.addEventListener("keydown",function(C){C.key==="Enter"&&(ze(parseInt(K.value,10)),K.blur())}),K.addEventListener("blur",function(){K.value=String(m)});let te=document.createElement("span");te.className="pdf-toolbar-count";let ve=se("fa-search-minus","Zoom out",function(){re(s[Math.max(0,ye()-1)])}),x=se("fa-search-plus","Zoom in",function(){re(s[Math.min(s.length-1,ye()+1)])}),ue=document.createElement("button");ue.type="button",ue.className="pdf-toolbar-btn pdf-toolbar-zoom",ue.title="Reset zoom to fit the width",ue.setAttribute("aria-label","Reset zoom to fit the width"),ue.addEventListener("click",function(){re(1)}),q.appendChild(ee),q.appendChild(R);let he=document.createElement("span");he.className="pdf-toolbar-group",he.appendChild(K),he.appendChild(te),q.appendChild(he);let Ee=document.createElement("span");Ee.className="pdf-toolbar-group pdf-toolbar-right",Ee.appendChild(ve),Ee.appendChild(ue),Ee.appendChild(x),q.appendChild(Ee);function ye(){let C=0;for(let N=0;N<s.length;N++)Math.abs(s[N]-b)<Math.abs(s[C]-b)&&(C=N);return C}function be(){let C=p?p.numPages:0;q.style.display=C?"":"none",te.textContent="/ "+C,document.activeElement!==K&&(K.value=String(m)),ee.disabled=m<=1,R.disabled=m>=C,ue.textContent=Math.round(b*100)+"%",ve.disabled=ye()===0,x.disabled=ye()===s.length-1}function Le(C){let N=f[C-1];N&&(G.scrollTop+=N.getBoundingClientRect().top-G.getBoundingClientRect().top)}function ze(C){if(!p||isNaN(C))return;let N=Math.min(Math.max(1,C),p.numPages);f[N-1]&&(Le(N),m=N,E=N,P=Date.now()+800,be(),ne())}function He(){if(!f.length||Date.now()<P)return;let C=G.getBoundingClientRect(),N=C.top+C.height/2,V=1;for(let j=0;j<f.length&&f[j].getBoundingClientRect().top<=N;j++)V=j+1;V!==m&&(m=V,be())}function Me(){v++,f.forEach(L),S&&(Promise.resolve(S.destroy?.()).catch(()=>{}),S=null),y&&(clearTimeout(y),y=null),p&&(p.destroy(),p=null),f=[],m=1,G.innerHTML="",be()}function F(){G.innerHTML="";let C=document.createElement("div");C.className="pdf-viewer-error",C.textContent="This PDF could not be displayed.",G.appendChild(C)}function X(){let C=Math.max(120,G.clientWidth-24);return Math.round(Math.min(C,r)*b)}function J(C,N,V){let j=window.devicePixelRatio||1,w=C.getViewport({scale:1}),A=parseFloat(N.style.width);if(!A)return;let D=C.getViewport({scale:A/w.width*j}),I=document.createElement("canvas");return I.width=Math.floor(D.width),I.height=Math.floor(D.height),I.style.width=A+"px",I.style.height=Math.floor(D.height/j)+"px",N.innerHTML="",N.appendChild(I),N.style.height=I.style.height,V.task=C.render({canvasContext:I.getContext("2d"),viewport:D}),V.task.promise}function ne(){if(!p)return;let C=v,N=G.getBoundingClientRect(),V=N.top-i,j=N.top+G.clientHeight+i,w=f.map((D,I)=>({slot:D,i:I,rect:D.getBoundingClientRect()})).filter(D=>D.rect.top<=j&&D.rect.bottom>=V).sort((D,I)=>Math.abs(D.rect.top-N.top)-Math.abs(I.rect.top-N.top)).slice(0,6),A=new Set(w.map(D=>D.slot));for(let D of _.keys())A.has(D)||L(D);for(let{slot:D,i:I}of w){if(D.dataset.state||M>=2)continue;let z={cancelled:!1,task:null};_.set(D,z),M++,D.dataset.state="rendering";let B;p.getPage(I+1).then(ie=>{if(B=ie,!(z.cancelled||C!==v))return J(B,D,z)}).then(()=>{z.cancelled||C!==v||(D.dataset.state="done",E&&Date.now()<P&&Le(E))}).catch(()=>{!z.cancelled&&C===v&&(D.dataset.state="failed")}).finally(()=>{M--,B?.cleanup?.(),p&&ne()})}}function U(){g||(g=!0,window.requestAnimationFrame(function(){g=!1,He(),ne()}))}function Q(){let C=!1;function N(){C||(C=!0,ne())}window.requestAnimationFrame(N),window.setTimeout(N,50)}function H(){v++,f.forEach(L);let C=X();f.forEach(function(N){delete N.dataset.state,N.innerHTML="",N.style.width=C+"px",N.style.height=Math.round(C/k)+"px"}),ne()}function re(C){if(!p||!f.length||C===b)return;let N=m;b=C,be(),H(),ze(N)}function de(){p&&(y&&clearTimeout(y),y=setTimeout(function(){y=null,p&&f.length&&H()},250))}function Ne(C){if(Me(),!C)return;let N=v;S=pdfjsLib.getDocument({url:C,isEvalSupported:!1,standardFontDataUrl:"/script/external/pdf-standard-fonts/",cMapUrl:"/script/external/pdf-cmaps/",cMapPacked:!0}),S.promise.then(function(V){if(N!==v){V.destroy();return}return p=V,p.getPage(1).then(function(j){if(N!==v)return;let w=j.getViewport({scale:1});w.width&&w.height&&(k=w.width/w.height);let A=X();for(let D=1;D<=p.numPages;D++){let I=document.createElement("div");I.className="pdf-viewer-page",I.style.width=A+"px",I.style.height=Math.round(A/k)+"px",G.appendChild(I),f.push(I)}be(),Q()})}).catch(function(){N===v&&F()})}G.addEventListener("scroll",U,{passive:!0}),$(window).on("resize",de),be(),Fe(()=>e.src,Ne,{immediate:!0}),pn(function(){G.removeEventListener("scroll",U),$(window).off("resize",de),Me()})}),()=>Se("pdfviewer",{ref:t})}};var SF={key:0,class:"quota-row quota-usage"},NF={class:"quota-header"},RF={class:"quota-label"},DF={class:"project-type-svg","aria-hidden":"true"},TF=["href"],_F={key:0,class:"quota-percent"},AF={key:1,class:"quota-unlimited-tag"},OF={class:"quota-value"},PF={key:0},IF=["aria-label","aria-valuenow","aria-valuemax","aria-valuetext"],MF={key:1,class:"quota-remaining"},VF={key:2,class:"quota-remaining quota-limit"};function cd(e,t){return e.quota?(l(),d("div",SF,[(l(),d(W,null,oe([{key:"repository",label:"Repositories",kind:"count",icon:"project-type-repo"},{key:"storage",label:"Storage",kind:"bytes",icon:"project-icon-storage"},{key:"file",label:"Files",kind:"count",icon:"project-icon-file"}],o=>n("div",{class:O(["quota-item","quota-"+e.quota[o.key].level]),key:o.key},[n("div",NF,[n("span",RF,[(l(),d("svg",DF,[n("use",{href:"#"+o.icon},null,8,TF)])),h(u(o.label),1)]),e.quota[o.key].unlimited?c("v-if",!0):(l(),d("span",_F,u(e.quota[o.key].percent>0&&e.quota[o.key].percent<1?"<1":e.fmt.number(e.quota[o.key].percent,0))+"% used",1)),e.quota[o.key].unlimited?(l(),d("span",AF,"Unlimited")):c("v-if",!0)]),n("div",OF,[n("strong",null,u(e.formatAmount(e.quota[o.key].used,o.kind)),1),e.quota[o.key].unlimited?c("v-if",!0):(l(),d("span",PF," / "+u(e.formatAmount(e.quota[o.key].total,o.kind)),1))]),e.quota[o.key].unlimited?c("v-if",!0):(l(),d("div",{key:0,class:O(["quota-track","quota-"+e.quota[o.key].level]),role:"progressbar","aria-valuemin":"0","aria-label":o.label+" quota","aria-valuenow":Math.min(e.quota[o.key].used,e.quota[o.key].total),"aria-valuemax":e.quota[o.key].total,"aria-valuetext":e.fmt.number(e.quota[o.key].percent,0)+"% used"},[e.quota[o?.key].unlimited?c("v-if",!0):(l(),d("div",{key:0,class:"quota-fill",style:Re({width:e.quota[o.key].percent+"%"})},null,4))],10,IF)),!e.quota[o.key].unlimited&&e.quota[o.key].used<e.quota[o.key].total?(l(),d("p",MF,u(e.formatAmount(e.quota[o.key].total-e.quota[o.key].used,o.kind))+" "+u(o.key==="repository"?"repositories available":o.key==="file"?"files available":"available"),1)):c("v-if",!0),!e.quota[o.key].unlimited&&e.quota[o.key].used>=e.quota[o.key].total?(l(),d("p",VF,u(e.quota[o.key].used>e.quota[o.key].total?"Limit exceeded":"Limit reached"),1)):c("v-if",!0)],2)),64))])):c("v-if",!0)}var qF={props:["quota","fmt"],setup(e){return{formatAmount:(t,o)=>o==="bytes"?e.fmt.humanFileSize(e.quota?.storage?.unit==="bytes"?t*8:t).replace(/([a-zA-Z]+)$/," $1"):e.fmt.number(t)}},render:cd},LF=new Set(pe),fd={props:["content","terms","options"],setup(e){let t=et(null),o=()=>{t.value.innerHTML=renderMD(e.content||"",window.location.pathname+"/../")};return Ft(()=>{o(),Fe(()=>[e.content,e.terms,e.options],o,{deep:!0})}),()=>Se("markdown",{ref:t})}},$F={props:["file","terms","options"],setup(e){let t=et(null),o=()=>Ge(()=>t.value?.querySelectorAll("pre code").forEach(i=>window.Prism?.highlightElement(i)));return Ft(o),Fe(()=>[e.file?.content,e.terms,e.options],o,{deep:!0}),()=>{let i=e.file||{},s=(i.filename||"").split(".").pop().toLowerCase();if(["md","markdown"].includes(s)||i.language==="Markdown")return Se("gist-file",{ref:t},Se(fd,{content:i.content,terms:e.terms,options:e.options}));let r={js:"javascript",jsx:"javascript",ts:"javascript",typescript:"javascript",py:"python",html:"markup",xml:"markup",svg:"markup",sh:"bash"},a=(i.language||s||"none").toLowerCase();return Se("gist-file",{ref:t},Se("pre",{class:"line-numbers"},Se("code",{class:"language-"+(r[a]||a),key:i.content},i.content||"")))}}},UF={props:["file","content"],setup(e){let t=et(null),o=0,i,s=async()=>{let r=++o;i?.abort(),i=new AbortController;try{let a=e.content?JSON.parse(e.content):await fetch(e.file?.download_url||e.file,{signal:i.signal}).then(p=>{if(!p.ok)throw Error("Notebook request failed");return p.json()});if(await on("notebook"),r!==o)return;t.value.innerHTML=DOMPurify.sanitize(nb.parse(a).render()),t.value.querySelectorAll("pre code").forEach(p=>window.Prism?.highlightElement(p))}catch(a){r===o&&a.name!=="AbortError"&&(t.value.textContent="Unable to render the notebook.")}};return Ft(()=>{s(),Fe(()=>[e.file,e.content],s)}),pn(()=>{o++,i?.abort()}),()=>Se("notebook",{ref:t})}},FF={props:["stats"],setup(e){return()=>{let t=Object.entries(e.stats||{}).filter(([,i])=>i.code),o=t.reduce((i,[,s])=>i+s.code,0);return Se("loc",t.map(([i,s])=>Se("div",{class:"lang",title:`${i}: ${s.code.toLocaleString()} lines`,style:{width:s.code*100/o+"%",background:langColors[i]}})))}}},md={Markdown:fd,GistFile:$F,Notebook:UF,Loc:FF,HtmlDoc:dd,QuotaUsage:qF,Pdfviewer:Rr(async()=>(await on("pdf"),pdfjsLib.GlobalWorkerOptions.workerSrc="/script/external/pdf.worker.js",ud))},hd={async mounted(e,{value:t}){e._editorValue=t;try{if(await ko(),e._editorDisposed)return;let o=e._editorValue,i=ace.edit(e);e._editor=i,i.setValue(String(o.content??""),-1),pd(e,o.options),e._editorCleanup=o.options?.onLoad?.(i)}catch(o){e._editorDisposed||(e.textContent=o.message)}},updated(e,{value:t}){e._editorValue=t,e._editor&&(e._editor.getValue()!==String(t.content??"")&&e._editor.setValue(String(t.content??""),-1),pd(e,t.options))},beforeUnmount(e){e._editorDisposed=!0,e._editorCleanup?.(),e._editor?.destroy()}};function pd(e,t={}){let o=LF.has(t.mode)?t.mode:"text";e._editor.session.setMode("ace/mode/"+o),t.theme&&e._editor.setTheme("ace/theme/"+t.theme),e._editor.setReadOnly(t.readOnly!==!1)}var vd={mounted(e){if(!window.IntersectionObserver)return;let t=[...e.querySelectorAll('a[href^="#"]')],o=new Set,i=new IntersectionObserver(s=>{s.forEach(a=>a.isIntersecting?o.add(a.target.id):o.delete(a.target.id));let r=t.find(a=>o.has(a.hash.slice(1)));r&&t.forEach(a=>a.classList.toggle("active",a===r))},{rootMargin:"-20% 0px -60% 0px",threshold:0});Ge(()=>{t.forEach(s=>{let r=document.getElementById(s.hash.slice(1));r&&i.observe(r)}),t[0]&&!t.some(s=>s.classList.contains("active"))&&t[0].classList.add("active")}),e._observer=i},beforeUnmount(e){e._observer?.disconnect()}};function BF(e){let t=[],o=0,i=/\bXXXX-(\d+)\b/g,s;for(;s=i.exec(e);)s.index>o&&t.push(e.slice(o,s.index)),t.push(Se("span",{class:"redact-slot",role:"img","aria-label":"Redacted term "+s[1]},[Se("i",null,s[1])])),o=s.index+s[0].length;return t.length?(o<e.length&&t.push(e.slice(o)),t):e}function zF(e){if(e<1024)return`${e} B`;let t=["KB","MB","GB"],o=e/1024,i=0;for(;o>=1024&&i<t.length-1;)o/=1024,i++;return`${o.toFixed(1)} ${t[i]}`}function HF(e){let t={children:[]},o=new Map([["",t]]);function i(s){if(o.has(s))return o.get(s);let r=s.lastIndexOf("/"),a=i(r<0?"":s.slice(0,r)),p={name:s.slice(r+1),children:[]};return o.set(s,p),a.children.push(p),p}for(let s of e||[]){let r=s.path?`${s.path}/${s.name}`:s.name;s.size==null?i(r):i(s.path||"").children.push({...s})}return t.children}var gd={name:"FileTree",props:["file","parent","searchQuery","searchResults","page"],setup(e){let t=tl(),o=et(null),i=Ue(Object.create(null)),s=null,r=nt(()=>HF(e.file)),a=()=>"/"+(Array.isArray(t.params.path)?t.params.path.join("/"):t.params.path||"");Fe(()=>[t.params.repoId,t.params.path],()=>{let m="";a().split("/").filter(Boolean).forEach(E=>{m+="/"+E,i[m]=!0})},{immediate:!0});let p=nt(()=>{if(!e.searchQuery||!e.searchResults)return null;let m=new Set,E=new Set;return e.searchResults.forEach(P=>{m.add(P.path?`${P.path}/${P.name}`:P.name);let k="";(P.path||"").split("/").filter(Boolean).forEach(v=>{k=k?k+"/"+v:v,E.add(k)})}),{files:m,folders:E}}),f=()=>[...o.value.querySelectorAll("li > a")],g=m=>{o.value.querySelector(".tree-focused")?.classList.remove("tree-focused"),m&&(s=m.dataset.path,m.classList.add("tree-focused"),m.scrollIntoView?.({block:"nearest"}),o.value.focus())};function y(m){let E=f(),P=o.value.querySelector(".tree-focused")||E[0],k=E.indexOf(P);if(!["ArrowDown","ArrowUp","ArrowRight","ArrowLeft","Enter"].includes(m.key)||(m.preventDefault(),m.key==="ArrowDown"&&g(E[(k+1)%E.length]),m.key==="ArrowUp"&&g(E[(k-1+E.length)%E.length]),!P))return;let v=P.closest("li");m.key==="ArrowRight"&&v.classList.contains("folder")&&(v.classList.contains("open")?g(v.querySelector(":scope > ul > li > a")):P.click()),m.key==="ArrowLeft"&&(v.classList.contains("folder")&&v.classList.contains("open")?P.click():g(v.parentElement.closest("li.folder")?.querySelector(":scope > a"))),m.key==="Enter"&&P.click()}function b(m,E=""){let P=[...m].sort((k,v)=>+!!v.children-+!!k.children||k.name.localeCompare(v.name));return Se("ul",P.flatMap(k=>{let v=k,S=v.name,_=(E+"/"+S).slice(1);if(p.value&&!p.value.files.has(_)&&!p.value.folders.has(_))return[];for(;v.children?.length===1;)v=v.children[0],S+="/"+v.name;let M=E+"/"+S,L=!!v.children,q=p.value?i[M]!==!1:!!i[M],G=L&&e.page?.options?.truncatedFolders?.includes(M.slice(1)),se=Se("span",{class:L?"tree-icon-folder":"far fa-file tree-icon-file","aria-hidden":"true"},L?Se("svg",{viewBox:"0 0 14 12",focusable:"false"},Se("path",{d:"M1.5 10.5v-9h4l1.5 2h5.5v7z"})):null),ee=Se("span",{class:"tree-name",title:S.replace(/\bXXXX-(\d+)\b/g,"[redacted term $1]")},BF(S)),R=te=>{g(te.currentTarget),L&&(te.preventDefault(),i[M]=!q,i[M]&&!v.children.length&&e.page.getFiles(M.slice(1)),Ge(()=>g(f().find(ve=>ve.dataset.path===s))))},K=Se("a",{"data-path":M,href:L?void 0:`/r/${encodeURIComponent(t.params.repoId)}${encodePathForUrl(M)}`,class:{"tree-focused":s===M},onClick:R},[L?Se("span",{class:"tree-toggle"}):Se("span",{class:"tree-spacer"}),se,ee,G?Se("span",{class:"truncated-warning",title:e.page.fmt.translate("WARNINGS.folder_truncated")},Se("i",{class:"fas fa-exclamation-triangle"})):null]);return Se("li",{key:M,class:{file:!0,folder:L,open:q,active:a()===M,truncated:G},title:L?"":`Size: ${zF(v.size||0)}`},[K,L&&q?b(v.children,M):null])}))}return()=>Se("tree",{ref:o,tabindex:0,onKeydown:y},e.file?.length?p.value?.files.size===0?Se("div",{class:"tree-search-empty"},"No files found"):b(r.value):"Empty repository")}};function bd(){return Ue({errors:{},dirty:!1,touched:!1,submitted:!1,get invalid(){return Object.values(this.errors).some(Boolean)},setValidity(e,t){this.errors[e]=!t},setDirty(){this.dirty=!0}})}function wd(e,t){if(!e[t]){let o=bd();Object.defineProperty(o,"invalid",{get(){return Object.values(o.errors).some(Boolean)||Object.keys(o).some(i=>i!=="invalid"&&o[i]&&typeof o[i]=="object"&&o[i].invalid)}}),e[t]=o}return e[t]}var kd={beforeMount(e,{value:t}){e._formState=wd(t,e.name),e.addEventListener("submit",o=>o.preventDefault())}};function jF(e){return e instanceof Date?isNaN(e)?"":`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`:e||""}function yd(e){let t=e._field.binding.value;e.type==="checkbox"?e.checked=!!t:e.type==="radio"?e.checked=t==(e._value??e.value):e._field.timer||(e.value=e.type==="date"?jF(t):t??""),wi(e)}function wi(e){let t=e._field.validation;if(!t)return;let o=e.validity;for(let[i,s]of Object.entries({required:o.valueMissing,pattern:o.patternMismatch,min:o.rangeUnderflow,max:o.rangeOverflow,date:o.badInput,email:o.typeMismatch&&e.type==="email",url:o.typeMismatch&&e.type==="url"}))t.setValidity(i,e.disabled||!s)}var Cd={beforeMount(e,{value:t}){var a;let o=t.form&&wd(t.state,t.form),i=o&&e.name?o[a=e.name]||(o[a]=bd()):null;e._field={binding:t,validation:i,timer:null};let s=()=>{clearTimeout(e._field.timer),e._field.timer=null;let p=e._field.binding,f=e.type==="checkbox"?e.checked:e._value??e.value;if(!(e.type==="radio"&&!e.checked)){if((e.type==="number"||e.type==="range")&&(f=e.value===""?null:Number(e.value)),e.type==="date"&&(f=e.value?new Date(e.value+"T00:00:00"):null),i){i.setDirty();for(let g of Object.keys(i.errors))i.setValidity(g,!0)}p.set(f),wi(e),p.change?.()}};e._field.commit=s;let r=p=>{let f=e._field.binding.options?.debounce||0,g=typeof f=="number"?f:f[p.type]??f.default??0;clearTimeout(e._field.timer),g?e._field.timer=setTimeout(s,g):s()};e.addEventListener(e.tagName==="SELECT"||["checkbox","radio","date"].includes(e.type)?"change":"input",r),e.addEventListener("blur",()=>{i&&(i.touched=!0),e._field.timer&&s()})},mounted:yd,updated(e,{value:t}){e._field.binding=t,yd(e)},beforeUnmount(e){clearTimeout(e._field.timer);let{binding:t,validation:o}=e._field,i=t.form&&t.state[t.form];i&&i[e.name]===o&&delete i[e.name]}};function Ed(e,t){let o=e.target.closest("form");if(o?._formState&&(o._formState.submitted=!0),o?.querySelectorAll("input, select, textarea").forEach(i=>{i._field?.timer&&i._field.commit(),i._field&&wi(i)}),o&&!o.checkValidity()){let i=o.querySelector("input:invalid, select:invalid, textarea:invalid");i?.scrollIntoView?.({block:"center"}),i?.focus(),o.reportValidity();return}return t()}var Sd=Symbol("session"),GF=/^\/(w|api|github)(\/|$)/;function Nd(e,t={}){let o=e?.split(".").reduce((i,s)=>i?.[s],yo);return o==null&&e?.startsWith("ERRORS.")&&(o=yo.ERRORS.unknown_error),String(o??e??"").replace(/{{\s*([^}]+?)\s*}}/g,(i,s)=>t[s]??"")}var WF={...bi,translate:Nd};function KF(e){if(e==null||e==="")return e;try{let t=new URL(e,window.location.href);return["http:","https:","mailto:","tel:","blob:"].includes(t.protocol)?e:void 0}catch{return}}function YF(e="#app",t={}){let o=!!document.querySelector('meta[name="review-consent-page"][content="1"]'),i=o&&window.location.pathname==="/review-link"?Si(window):null,s=()=>{let m=i;return i=null,m};!t.history&&window.location.pathname==="/"&&/^#!\/r\/[^/?#]+/.test(window.location.hash)&&window.history.replaceState(window.history.state,"",window.location.hash.slice(2));let r=new Map,a=rd(t.fetch),p,f;function g(){let m=pt(),E={url(k){return k===void 0?f.currentRoute.value.fullPath:(f.push(k),E)},replace(k){return f.replace(k)},path(){return f.currentRoute.value.path},search(){return f.currentRoute.value.query}},P=new Proxy({},{get(k,v){let S=f.currentRoute.value.params[v];return Array.isArray(S)?S.join("/"):S}});return{takeReviewHandoff:s,http:a,...m,location:E,params:P,window,promises:ad,html:{trustAsHtml:k=>k},translate:(k,v)=>Promise.resolve(Nd(k,v)),quotaService:ld(a)}}function y(m){return{name:m.template,setup(){let E=mi(ut(Sd),r);m.setup(E,g()),id(m.template,E);let P=[];return()=>fs[m.template](E,P)}}}f=el({history:t.history||Xa(),routes:Tl.map(m=>m.redirect?m:{path:m.path,component:y(m),meta:{title:m.title,preserveExplorer:m.preserveExplorer}})});let b=ya({setup(){p=mi(null,r),p.fmt=WF,p.window=window,p.Math=Math,p.sanitize=k=>DOMPurify.sanitize(k??""),p.highlightRedactions=k=>(p.site_options,rl(k)),p.submitForm=Ed,p.safeUrl=KF;let m=g();ll(p,m.http,m.location,m.timeout),cn(Sd,p),Fe(()=>p.title,k=>{document.title=k||"Anonymous GitHub"});let E=[],P=k=>{let v=k.target.closest?.("a[href]");if(k.defaultPrevented||k.button!==0||k.metaKey||k.ctrlKey||k.shiftKey||k.altKey||!v||v.hasAttribute("download")||v.target&&v.target!=="_self"||v.dataset.toggle||v.getAttribute("href").startsWith("#"))return;let _=new URL(v.href,window.location.href);o||/^\/review-link\/?$/i.test(_.pathname)||_.origin!==window.location.origin||GF.test(_.pathname)||(k.preventDefault(),f.push(_.pathname+_.search+_.hash),$("#navbarSupportedContent.show").collapse("hide"))};return document.addEventListener("click",P),pn(()=>document.removeEventListener("click",P)),()=>[sd(p,[]),o||/^\/(r|repository)\//.test(p.path||"")?null:Se("header",{class:["app-header",{"is-contained":p.path==="/"||p.path==="/faq"}]},fs["partials/header.htm"](p,E)),Se("main",{class:"app-view align-items-stretch w-100"},Se(pi,null,{default:({Component:k,route:v})=>k?Se(k,{key:v.meta.preserveExplorer?v.matched[0]?.path:v.path}):null})),Se("div",{class:"position-fixed p-3",style:{zIndex:999999999,right:0,bottom:0}},p.toasts.map((k,v)=>Se("div",{class:"toast show",role:"alert","aria-live":"assertive","aria-atomic":"true",key:v},[Se("div",{class:"toast-header"},[Se("strong",{class:"mr-auto"},k.title),Se("button",{type:"button",class:"ml-2 mb-1 close","aria-label":"Close",onClick:()=>p.removeToast(k)},"\xD7")]),Se("div",{class:"toast-body"},k.body)])))]}});for(let[m,E]of Object.entries(md))b.component(m,E);return b.component("Tree",gd),b.component("PartialView",{props:["name","state"],setup(m){let E=[];return()=>fs[m.name](m.state,E)}}),b.directive("field",Cd),b.directive("form",kd),b.directive("code-editor",hd),b.directive("paper-scrollspy",vd),b.use(f),f.beforeEach(async m=>{if(m.path==="/review-link"&&!o||o&&m.path!=="/review-link")return window.location.assign(m.fullPath),!1;p?.emit("routeLeave"),/^\/(r|repository|anonymize|pull-request-anonymize|gist-anonymize|pr|gist)(\/|$)/.test(m.path)&&await on("markdown"),/^\/(r|repository)\//.test(m.path)&&await on("org")}),f.afterEach(m=>{if(!p)return;p.title=m.meta.title,p.emit("routeChange",{title:m.meta.title}),p.emit("routeUpdate",{title:m.meta.title});let E=document.querySelector(".app-view");!m.meta.preserveExplorer&&E&&(E.scrollTop=0)}),b.mount(e),{app:b,router:f,state:p}}document.querySelector("#app")&&(window.anonymousApp=YF());})();
|
|
/*! Bundled license information:
|
|
|
|
@vue/shared/dist/shared.esm-bundler.js:
|
|
(**
|
|
* @vue/shared v3.5.44
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
* @license MIT
|
|
**)
|
|
|
|
@vue/reactivity/dist/reactivity.esm-bundler.js:
|
|
(**
|
|
* @vue/reactivity v3.5.44
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
* @license MIT
|
|
**)
|
|
|
|
@vue/runtime-core/dist/runtime-core.esm-bundler.js:
|
|
(**
|
|
* @vue/runtime-core v3.5.44
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
* @license MIT
|
|
**)
|
|
|
|
@vue/runtime-dom/dist/runtime-dom.esm-bundler.js:
|
|
(**
|
|
* @vue/runtime-dom v3.5.44
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
* @license MIT
|
|
**)
|
|
|
|
vue/dist/vue.runtime.esm-bundler.js:
|
|
(**
|
|
* vue v3.5.44
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
* @license MIT
|
|
**)
|
|
|
|
vue-router/dist/devtools-EWN81iOl.mjs:
|
|
vue-router/dist/vue-router.mjs:
|
|
(*!
|
|
* vue-router v4.6.4
|
|
* (c) 2025 Eduardo San Martin Morote
|
|
* @license MIT
|
|
*)
|
|
*/
|