Files
anonymous_github/public/script/vendor.min.js
T
tdurieuxandClaude Opus 5.5 be2f979296 fix: keep redaction marks correct with custom masks, Prism and Mermaid
- The mask from /api/options is stored once loaded; code markers and
  rendered Markdown are refreshed when it arrives instead of keeping the
  XXXX default.
- Mermaid sources are left untouched so diagrams still parse.
- Fenced code blocks are marked from a Prism complete hook, after Prism
  has rewritten their HTML.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 14:46:13 +02:00

73 lines
581 KiB
JavaScript

"use strict";(()=>{var ld=Object.defineProperty;var dd=(e,t)=>{for(var s in t)ld(e,s,{get:t[s],enumerable:!0})};var he=["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 ve={editor:"/script/editor.e243722d87.min.js",markdown:"/script/markdown.ad7b1d71c3.min.js",notebook:"/script/notebook.8844e2735f.min.js",org:"/script/org.f4e2a3f59f.min.js",pdf:"/script/pdf.4d9cc6ff49.min.js"};var cs=new Map,pd=ve;function Xt(e){if(!cs.has(e)){let t=document.createElement("script");t.src=pd[e];let s=new Promise((r,n)=>{t.onload=r,t.onerror=()=>{cs.delete(e),t.remove(),n(new Error(`Unable to load ${e}. Please retry.`))}});cs.set(e,s),document.head.appendChild(t)}return cs.get(e)}async function pr(){await Xt("editor"),ace.config.set("basePath","/script/external/ace/")}function ho(e){let t=Object.create(null);for(let s of e.split(","))t[s]=1;return s=>s in t}var Ie={},Zt=[],at=()=>{},an=()=>!1,vo=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),go=e=>e.startsWith("onUpdate:"),Ge=Object.assign,Po=(e,t)=>{let s=e.indexOf(t);s>-1&&e.splice(s,1)},fd=Object.prototype.hasOwnProperty,Ne=(e,t)=>fd.call(e,t),ye=Array.isArray,Lt=e=>Vo(e)==="[object Map]",Ut=e=>Vo(e)==="[object Set]",fr=e=>Vo(e)==="[object Date]";var we=e=>typeof e=="function",Fe=e=>typeof e=="string",mt=e=>typeof e=="symbol",Te=e=>e!==null&&typeof e=="object",ln=e=>(Te(e)||we(e))&&we(e.then)&&we(e.catch),vr=Object.prototype.toString,Vo=e=>vr.call(e),dn=e=>Vo(e).slice(8,-1),ps=e=>Vo(e)==="[object Object]",fs=e=>Fe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,yo=ho(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted");var ms=e=>{let t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},md=/-\w/g,Je=ms(e=>e.replace(md,t=>t.slice(1).toUpperCase())),hd=/\B([A-Z])/g,St=ms(e=>e.replace(hd,"-$1").toLowerCase()),xt=ms(e=>e.charAt(0).toUpperCase()+e.slice(1)),qo=ms(e=>e?`on${xt(e)}`:""),gt=(e,t)=>!Object.is(e,t),bo=(e,...t)=>{for(let s=0;s<e.length;s++)e[s](...t)},hs=(e,t,s,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:s})},wo=e=>{let t=parseFloat(e);return isNaN(t)?e:t};var mr,Mo=()=>mr||(mr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function qe(e){if(ye(e)){let t={};for(let s=0;s<e.length;s++){let r=e[s],n=Fe(r)?bd(r):qe(r);if(n)for(let i in n)t[i]=n[i]}return t}else if(Fe(e)||Te(e))return e}var vd=/;(?![^(]*\))/g,gd=/:([^]+)/,yd=/\/\*[^]*?\*\//g;function bd(e){let t={};return e.replace(yd,"").split(vd).forEach(s=>{if(s){let r=s.split(gd);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function A(e){let t="";if(Fe(e))t=e;else if(ye(e))for(let s=0;s<e.length;s++){let r=A(e[s]);r&&(t+=r+" ")}else if(Te(e))for(let s in e)e[s]&&(t+=s+" ");return t.trim()}var gr="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",yr=ho(gr),wd=ho(gr+",async,autofocus,autoplay,controls,default,defer,disabled,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");function vs(e){return!!e||e===""}function kd(e,t){if(e.length!==t.length)return!1;let s=!0;for(let r=0;s&&r<e.length;r++)s=Nt(e[r],t[r]);return s}function hr(e,t){if(e.size!==t.size)return!1;let s=Array.from(t),r=new Uint8Array(s.length);for(let n of e){let i=-1;for(let a=0;a<s.length;a++)if(!r[a]&&Nt(n,s[a])){i=a;break}if(i<0)return!1;r[i]=1}return!0}function Nt(e,t){if(e===t)return!0;let s=fr(e),r=fr(t);if(s||r)return s&&r?e.getTime()===t.getTime():!1;if(s=mt(e),r=mt(t),s||r)return e===t;if(s=ye(e),r=ye(t),s||r)return s&&r?kd(e,t):!1;if(s=Te(e),r=Te(t),s||r){if(!s||!r)return!1;if(s=Lt(e),r=Lt(t),s||r||(s=Ut(e),r=Ut(t),s||r))return s&&r?hr(e,t):!1;let n=Object.keys(e).length,i=Object.keys(t).length;if(n!==i)return!1;for(let a in e){let u=e.hasOwnProperty(a),f=t.hasOwnProperty(a);if(u&&!f||!u&&f||!Nt(e[a],t[a]))return!1}}return String(e)===String(t)}function br(e,t){return e.findIndex(s=>Nt(s,t))}var wr=e=>!!(e&&e.__v_isRef===!0),c=e=>Fe(e)?e:e==null?"":ye(e)||Te(e)&&(e.toString===vr||!we(e.toString))?wr(e)?c(e.value):JSON.stringify(e,kr,2):String(e),kr=(e,t)=>wr(t)?kr(e,t.value):Lt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[r,n],i)=>(s[rn(r,i)+" =>"]=n,s),{})}:Ut(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>rn(s))}:mt(t)?rn(t):Te(t)&&!ye(t)&&!ps(t)?String(t):t,rn=(e,t="")=>{var s;return mt(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};function Ed(e,...t){console.warn(`[Vue warn] ${e}`,...t)}var Qe,Fo=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,s;if(this.scopes){let r=this.scopes.slice();for(t=0,s=r.length;t<s;t++)r[t].pause()}for(t=0,s=this.effects.length;t<s;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,s;if(this.scopes){let n=this.scopes.slice();for(t=0,s=n.length;t<s;t++)n[t].resume()}let r=this.effects.slice();for(t=0,s=r.length;t<s;t++)r[t].resume()}}run(t){if(this._active){let s=Qe;try{return Qe=this,t()}finally{Qe=s}}}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 s,r;for(s=0,r=this.effects.length;s<r;s++)this.effects[s].stop();for(this.effects.length=0,s=0,r=this.cleanups.length;s<r;s++)this.cleanups[s]();if(this.cleanups.length=0,this.scopes){let n=this.scopes.slice();for(s=0,r=n.length;s<r;s++)n[s].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){let n=this.parent.scopes.pop();n&&n!==this&&(this.parent.scopes[this.index]=n,n.index=this.index)}this.parent=void 0}}};function _r(){return Qe}function jo(e,t=!1){Qe&&Qe.cleanups.push(e)}var Le;var un=new WeakSet,Eo=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,un.has(this)&&(un.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Nr(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Er(this),Dr(this);let t=Le,s=Et;Le=this,Et=!0;try{return this.fn()}finally{Rr(this),Le=t,Et=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Cn(t);this.deps=this.depsTail=void 0,Er(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?un.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){fn(this)&&this.run()}get dirty(){return fn(this)}},Sr=0,Lo,Uo;function Nr(e,t=!1){if(e.flags|=8,t){e.next=Uo,Uo=e;return}e.next=Lo,Lo=e}function kn(){Sr++}function En(){if(--Sr>0)return;if(Uo){let t=Uo;for(Uo=void 0;t;){let s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;Lo;){let t=Lo;for(Lo=void 0;t;){let s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=s}}if(e)throw e}function Dr(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Rr(e){let t,s=e.depsTail,r=s;for(;r;){let n=r.prevDep;r.version===-1?(r===s&&(s=n),Cn(r),Cd(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=n}e.deps=t,e.depsTail=s}function fn(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Tr(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Tr(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===zo)||(e.globalVersion=zo,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!fn(e))))return;e.flags|=2;let t=e.dep,s=Le,r=Et;Le=e,Et=!0;try{Dr(e);let n=e.fn(e._value);(t.version===0||gt(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(n){throw t.version++,n}finally{Le=s,Et=r,Rr(e),e.flags&=-3}}function Cn(e,t=!1){let{dep:s,prevSub:r,nextSub:n}=e;if(r&&(r.nextSub=n,e.prevSub=void 0),n&&(n.prevSub=r,e.nextSub=void 0),s.subs===e&&(s.subs=r,!r&&s.computed)){s.computed.flags&=-5;for(let i=s.computed.deps;i;i=i.nextDep)Cn(i,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function Cd(e){let{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}var Et=!0,Ar=[];function At(){Ar.push(Et),Et=!1}function Ot(){let e=Ar.pop();Et=e===void 0?!0:e}function Er(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let s=Le;Le=void 0;try{t()}finally{Le=s}}}var zo=0,mn=class{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},Ho=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(!Le||!Et||Le===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==Le)s=this.activeLink=new mn(Le,this),Le.deps?(s.prevDep=Le.depsTail,Le.depsTail.nextDep=s,Le.depsTail=s):Le.deps=Le.depsTail=s,Or(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){let r=s.nextDep;r.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=r),s.prevDep=Le.depsTail,s.nextDep=void 0,Le.depsTail.nextDep=s,Le.depsTail=s,Le.deps===s&&(Le.deps=r)}return s}trigger(t){this.version++,zo++,this.notify(t)}notify(t){kn();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{En()}}};function Or(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)Or(r)}let s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}var hn=new WeakMap,to=Symbol(""),vn=Symbol(""),Bo=Symbol("");function xe(e,t,s){if(Et&&Le){let r=hn.get(e);r||hn.set(e,r=new Map);let n=r.get(s);n||(r.set(s,n=new Ho),n.map=r,n.key=s),n.track()}}function Rt(e,t,s,r,n,i){let a=hn.get(e);if(!a){zo++;return}let u=f=>{f&&f.trigger()};if(kn(),t==="clear")a.forEach(u);else{let f=ye(e),v=f&&fs(s);if(f&&s==="length"){let h=Number(r);a.forEach((k,m)=>{(m==="length"||m===Bo||!mt(m)&&m>=h)&&u(k)})}else switch((s!==void 0||a.has(void 0))&&u(a.get(s)),v&&u(a.get(Bo)),t){case"add":f?v&&u(a.get("length")):(u(a.get(to)),Lt(e)&&u(a.get(vn)));break;case"delete":f||(u(a.get(to)),Lt(e)&&u(a.get(vn)));break;case"set":Lt(e)&&u(a.get(to));break}}En()}function ko(e){let t=De(e);return t===e?t:(xe(t,"iterate",Bo),lt(e)?t:t.map(yt))}function Go(e){return xe(e=De(e),"iterate",Bo),e}function Dt(e,t){return Ct(e)?oo(zt(e)?yt(t):t):yt(t)}var _d={__proto__:null,[Symbol.iterator](){return cn(this,Symbol.iterator,e=>Dt(this,e))},concat(...e){return ko(this).concat(...e.map(t=>ye(t)?ko(t):t))},entries(){return cn(this,"entries",e=>(e[1]=Dt(this,e[1]),e))},every(e,t){return Ft(this,"every",e,t,void 0,arguments)},filter(e,t){return Ft(this,"filter",e,t,s=>s.map(r=>Dt(this,r)),arguments)},find(e,t){return Ft(this,"find",e,t,s=>Dt(this,s),arguments)},findIndex(e,t){return Ft(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Ft(this,"findLast",e,t,s=>Dt(this,s),arguments)},findLastIndex(e,t){return Ft(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Ft(this,"forEach",e,t,void 0,arguments)},includes(...e){return pn(this,"includes",e)},indexOf(...e){return pn(this,"indexOf",e)},join(e){return ko(this).join(e)},lastIndexOf(...e){return pn(this,"lastIndexOf",e)},map(e,t){return Ft(this,"map",e,t,void 0,arguments)},pop(){return $o(this,"pop")},push(...e){return $o(this,"push",e)},reduce(e,...t){return Cr(this,"reduce",e,t)},reduceRight(e,...t){return Cr(this,"reduceRight",e,t)},shift(){return $o(this,"shift")},some(e,t){return Ft(this,"some",e,t,void 0,arguments)},splice(...e){return $o(this,"splice",e)},toReversed(){return ko(this).toReversed()},toSorted(e){return ko(this).toSorted(e)},toSpliced(...e){return ko(this).toSpliced(...e)},unshift(...e){return $o(this,"unshift",e)},values(){return cn(this,"values",e=>Dt(this,e))}};function cn(e,t,s){let r=Go(e),n=r[t]();return r!==e&&!lt(e)&&(n._next=n.next,n.next=()=>{let i=n._next();return i.done||(i.value=s(i.value)),i}),n}var Sd=Array.prototype;function Ft(e,t,s,r,n,i){let a=Go(e),u=a!==e&&!lt(e),f=a[t];if(f!==Sd[t]){let k=f.apply(e,i);return u?yt(k):k}let v=s;a!==e&&(u?v=function(k,m){return s.call(this,Dt(e,k),m,e)}:s.length>2&&(v=function(k,m){return s.call(this,k,m,e)}));let h=f.call(a,v,r);return u&&n?n(h):h}function Cr(e,t,s,r){let n=Go(e),i=n!==e&&!lt(e),a=s,u=!1;n!==e&&(i?(u=r.length===0,a=function(v,h,k){return u&&(u=!1,v=Dt(e,v)),s.call(this,v,Dt(e,h),k,e)}):s.length>3&&(a=function(v,h,k){return s.call(this,v,h,k,e)}));let f=n[t](a,...r);return u?Dt(e,f):f}function pn(e,t,s){let r=De(e);xe(r,"iterate",Bo);let n=r[t](...s);return(n===-1||n===!1)&&Ko(s[0])?(s[0]=De(s[0]),r[t](...s)):n}function $o(e,t,s=[]){At(),kn();let r=De(e)[t].apply(e,s);return En(),Ot(),r}var Nd=ho("__proto__,__v_isRef,__isVue"),Ir=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(mt));function Dd(e){mt(e)||(e=String(e));let t=De(this);return xe(t,"has",e),t.hasOwnProperty(e)}var ws=class{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,r){if(s==="__v_skip")return t.__v_skip;let n=this._isReadonly,i=this._isShallow;if(s==="__v_isReactive")return!n;if(s==="__v_isReadonly")return n;if(s==="__v_isShallow")return i;if(s==="__v_raw")return r===(n?i?Md:qr:i?Vr:Pr).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;let a=ye(t);if(!n){let f;if(a&&(f=_d[s]))return f;if(s==="hasOwnProperty")return Dd}let u=Reflect.get(t,s,Ze(t)?t:r);if((mt(s)?Ir.has(s):Nd(s))||(n||xe(t,"get",s),i))return u;if(Ze(u)){let f=a&&fs(s)?u:u.value;return n&&Te(f)?Es(f):f}return Te(u)?n?Es(u):ze(u):u}},ks=class extends ws{constructor(t=!1){super(!1,t)}set(t,s,r,n){let i=t[s],a=ye(t)&&fs(s);if(!this._isShallow){let v=Ct(i);if(!lt(r)&&!Ct(r)&&(i=De(i),r=De(r)),!a&&Ze(i)&&!Ze(r))return v||(i.value=r),!0}let u=a?Number(s)<t.length:Ne(t,s),f=Reflect.set(t,s,r,Ze(t)?t:n);return t===De(n)&&f&&(u?gt(r,i)&&Rt(t,"set",s,r,i):Rt(t,"add",s,r)),f}deleteProperty(t,s){let r=Ne(t,s),n=t[s],i=Reflect.deleteProperty(t,s);return i&&r&&Rt(t,"delete",s,void 0,n),i}has(t,s){let r=Reflect.has(t,s);return(!mt(s)||!Ir.has(s))&&xe(t,"has",s),r}ownKeys(t){return xe(t,"iterate",ye(t)?"length":to),Reflect.ownKeys(t)}},gn=class extends ws{constructor(t=!1){super(!0,t)}set(t,s){return!0}deleteProperty(t,s){return!0}},Rd=new ks,Td=new gn,Ad=new ks(!0);var yn=e=>e,gs=e=>Reflect.getPrototypeOf(e);function Od(e,t,s){return function(...r){let n=this.__v_raw,i=De(n),a=Lt(i),u=e==="entries"||e===Symbol.iterator&&a,f=e==="keys"&&a,v=n[e](...r),h=s?yn:t?oo:yt;return!t&&xe(i,"iterate",f?vn:to),Ge(Object.create(v),{next(){let{value:k,done:m}=v.next();return m?{value:k,done:m}:{value:u?[h(k[0]),h(k[1])]:h(k),done:m}}})}}function ys(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Id(e,t){let s={get(n){let i=this.__v_raw,a=De(i),u=De(n);e||(gt(n,u)&&xe(a,"get",n),xe(a,"get",u));let{has:f}=gs(a),v=t?yn:e?oo:yt;if(f.call(a,n))return v(i.get(n));if(f.call(a,u))return v(i.get(u));i!==a&&i.get(n)},get size(){let n=this.__v_raw;return!e&&xe(De(n),"iterate",to),n.size},has(n){let i=this.__v_raw,a=De(i),u=De(n);return e||(gt(n,u)&&xe(a,"has",n),xe(a,"has",u)),n===u?i.has(n):i.has(n)||i.has(u)},forEach(n,i){let a=this,u=a.__v_raw,f=De(u),v=t?yn:e?oo:yt;return!e&&xe(f,"iterate",to),u.forEach((h,k)=>n.call(i,v(h),v(k),a))}};return Ge(s,e?{add:ys("add"),set:ys("set"),delete:ys("delete"),clear:ys("clear")}:{add(n){let i=De(this),a=gs(i),u=De(n),f=!t&&!lt(n)&&!Ct(n)?u:n;return a.has.call(i,f)||gt(n,f)&&a.has.call(i,n)||gt(u,f)&&a.has.call(i,u)||(i.add(f),Rt(i,"add",f,f)),this},set(n,i){!t&&!lt(i)&&!Ct(i)&&(i=De(i));let a=De(this),{has:u,get:f}=gs(a),v=u.call(a,n);v||(n=De(n),v=u.call(a,n));let h=f.call(a,n);return a.set(n,i),v?gt(i,h)&&Rt(a,"set",n,i,h):Rt(a,"add",n,i),this},delete(n){let i=De(this),{has:a,get:u}=gs(i),f=a.call(i,n);f||(n=De(n),f=a.call(i,n));let v=u?u.call(i,n):void 0,h=i.delete(n);return f&&Rt(i,"delete",n,void 0,v),h},clear(){let n=De(this),i=n.size!==0,a=void 0,u=n.clear();return i&&Rt(n,"clear",void 0,void 0,a),u}}),["keys","values","entries",Symbol.iterator].forEach(n=>{s[n]=Od(n,e,t)}),s}function _n(e,t){let s=Id(e,t);return(r,n,i)=>n==="__v_isReactive"?!e:n==="__v_isReadonly"?e:n==="__v_raw"?r:Reflect.get(Ne(s,n)&&n in r?s:r,n,i)}var Pd={get:_n(!1,!1)},Vd={get:_n(!1,!0)},qd={get:_n(!0,!1)};var Pr=new WeakMap,Vr=new WeakMap,qr=new WeakMap,Md=new WeakMap;function $d(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ze(e){return Ct(e)?e:Sn(e,!1,Rd,Pd,Pr)}function Wo(e){return Sn(e,!1,Ad,Vd,Vr)}function Es(e){return Sn(e,!0,Td,qd,qr)}function Sn(e,t,s,r,n){if(!Te(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;let i=n.get(e);if(i)return i;let a=$d(dn(e));if(a===0)return e;let u=new Proxy(e,a===2?r:s);return n.set(e,u),u}function zt(e){return Ct(e)?zt(e.__v_raw):!!(e&&e.__v_isReactive)}function Ct(e){return!!(e&&e.__v_isReadonly)}function lt(e){return!!(e&&e.__v_isShallow)}function Ko(e){return e?!!e.__v_raw:!1}function De(e){let t=e&&e.__v_raw;return t?De(t):e}function Nn(e){return!Ne(e,"__v_skip")&&Object.isExtensible(e)&&hs(e,"__v_skip",!0),e}var yt=e=>Te(e)?ze(e):e,oo=e=>Te(e)?Es(e):e;function Ze(e){return e?e.__v_isRef===!0:!1}function et(e){return Mr(e,!1)}function _s(e){return Mr(e,!0)}function Mr(e,t){return Ze(e)?e:new bn(e,t)}var bn=class{constructor(t,s){this.dep=new Ho,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:De(t),this._value=s?t:yt(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){let s=this._rawValue,r=this.__v_isShallow||lt(t)||Ct(t);t=r?t:De(t),gt(t,s)&&(this._rawValue=t,this._value=r?t:yt(t),this.dep.trigger())}};function Ht(e){return Ze(e)?e.value:e}var Ld={get:(e,t,s)=>t==="__v_raw"?e:Ht(Reflect.get(e,t,s)),set:(e,t,s,r)=>{let n=e[t];return Ze(n)&&!Ze(s)?(n.value=s,!0):Reflect.set(e,t,s,r)}};function Ss(e){return zt(e)?e:new Proxy(e,Ld)}var wn=class{constructor(t,s,r){this.fn=t,this.setter=s,this._value=void 0,this.dep=new Ho(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=zo-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&Le!==this)return Nr(this,!0),!0}get value(){let t=this.dep.track();return Tr(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}};function $r(e,t,s=!1){let r,n;return we(e)?r=e:(r=e.get,n=e.set),new wn(r,n,s)}var bs={},Cs=new WeakMap,eo;function Lr(e,t=!1,s=eo){if(s){let r=Cs.get(s);r||Cs.set(s,r=[]),r.push(e)}}function Ur(e,t,s=Ie){let{immediate:r,deep:n,once:i,scheduler:a,augmentJob:u,call:f}=s,v=q=>{(s.onWarn||Ed)("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.")},h=q=>n?q:lt(q)||n===!1||n===0?Tt(q,1):Tt(q),k,m,E,y,w=!1,D=!1;if(Ze(e)?(m=()=>e.value,w=lt(e)):zt(e)?(m=()=>h(e),w=!0):ye(e)?(D=!0,w=e.some(q=>zt(q)||lt(q)),m=()=>e.map(q=>{if(Ze(q))return q.value;if(zt(q))return h(q);if(we(q))return f?f(q,2):q()})):we(e)?t?m=f?()=>f(e,2):e:m=()=>{if(E){At();try{E()}finally{Ot()}}let q=eo;eo=k;try{return f?f(e,3,[y]):e(y)}finally{eo=q}}:m=at,t&&n){let q=m,U=n===!0?1/0:n;m=()=>Tt(q(),U)}let R=_r(),T=()=>{k.stop(),R&&R.active&&Po(R.effects,k)};if(i&&t){let q=t;t=(...U)=>{let ae=q(...U);return T(),ae}}let I=D?new Array(e.length).fill(bs):bs,H=q=>{if(!(!(k.flags&1)||!k.dirty&&!q))if(t){let U=k.run();if(q||n||w||(D?U.some((ae,ie)=>gt(ae,I[ie])):gt(U,I))){E&&E();let ae=eo;eo=k;try{let ie=[U,I===bs?void 0:D&&I[0]===bs?[]:I,y];I=U,f?f(t,3,ie):t(...ie)}finally{eo=ae}}}else k.run()};return u&&u(H),k=new Eo(m),k.scheduler=a?()=>a(H,!1):H,y=q=>Lr(q,!1,k),E=k.onStop=()=>{let q=Cs.get(k);if(q){if(f)f(q,4);else for(let U of q)U();Cs.delete(k)}},t?r?H(!0):I=k.run():a?a(H.bind(null,!0),!0):k.run(),T.pause=k.pause.bind(k),T.resume=k.resume.bind(k),T.stop=T,T}function Tt(e,t=1/0,s){if(t<=0||!Te(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,Ze(e))Tt(e.value,t,s);else if(ye(e))for(let r=0;r<e.length;r++)Tt(e[r],t,s);else if(Ut(e)||Lt(e))e.forEach(r=>{Tt(r,t,s)});else if(ps(e)){for(let r in e)Tt(e[r],t,s);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Tt(e[r],t,s)}return e}function ss(e,t,s,r){try{return r?e(...r):e()}catch(n){ns(n,t,s)}}function bt(e,t,s,r){if(we(e)){let n=ss(e,t,s,r);return n&&ln(n)&&n.catch(i=>{ns(i,t,s)}),n}if(ye(e)){let n=[];for(let i=0;i<e.length;i++)n.push(bt(e[i],t,s,r));return n}}function ns(e,t,s,r=!0){let n=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:a}=t&&t.appContext.config||Ie;if(t){let u=t.parent,f=t.proxy,v=`https://vuejs.org/error-reference/#runtime-${s}`;for(;u;){let h=u.ec;if(h){for(let k=0;k<h.length;k++)if(h[k](e,f,v)===!1)return}u=u.parent}if(i){At(),ss(i,null,10,[e,f,v]),Ot();return}}Hd(e,s,n,r,a)}function Hd(e,t,s,r=!0,n=!1){if(n)throw e;console.error(e)}var rt=[],Pt=-1,_o=[],Qt=null,Co=0,oi=Promise.resolve(),Rs=null;function st(e){let t=Rs||oi;return e?t.then(this?e.bind(this):e):t}function Bd(e){let t=Pt+1,s=rt.length;for(;t<s;){let r=t+s>>>1,n=rt[r],i=es(n);i<e||i===e&&n.flags&2?t=r+1:s=r}return t}function qn(e){if(!(e.flags&1)){let t=es(e),s=rt[rt.length-1];!s||!(e.flags&2)&&t>=es(s)?rt.push(e):rt.splice(Bd(t),0,e),e.flags|=1,si()}}function si(){Rs||(Rs=oi.then(ii))}function ni(e){if(!ye(e))Qt&&e.id===-1?Qt.splice(Co+1,0,e):e.flags&1||(_o.push(e),e.flags|=1);else for(let t=0;t<e.length;t++)_o.push(e[t]);si()}function Fr(e,t,s=Pt+1){for(;s<rt.length;s++){let r=rt[s];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;rt.splice(s,1),s--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function ri(e){if(_o.length){let t=[...new Set(_o)].sort((s,r)=>es(s)-es(r));if(_o.length=0,Qt){for(let s=0;s<t.length;s++)Qt.push(t[s]);return}for(Qt=t,Co=0;Co<Qt.length;Co++){let s=Qt[Co];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}Qt=null,Co=0}}var es=e=>e.id==null?e.flags&2?-1:1/0:e.id;function ii(e){let t=at;try{for(Pt=0;Pt<rt.length;Pt++){let s=rt[Pt];s&&!(s.flags&8)&&(s.flags&4&&(s.flags&=-2),ss(s,s.i,s.i?15:14),s.flags&4||(s.flags&=-2))}}finally{for(;Pt<rt.length;Pt++){let s=rt[Pt];s&&(s.flags&=-2)}Pt=-1,rt.length=0,ri(e),Rs=null,(rt.length||_o.length)&&ii(e)}}var ht=null,ai=null;function Ts(e){let t=ht;return ht=e,ai=e&&e.type.__scopeId||null,t}function jd(e,t=ht,s){if(!t||e._n)return e;let r=(...n)=>{r._d&&Is(-1);let i=Ts(t),a=ro.length,u;try{u=e(...n)}finally{for(let f=ro.length;f>a;f--)Mi();Ts(i),r._d&&Is(1)}return u};return r._n=!0,r._c=!0,r._d=!0,r}function N(e,t){if(ht===null)return e;let s=Hs(ht),r=e.dirs||(e.dirs=[]);for(let n=0;n<t.length;n++){let[i,a,u,f=Ie]=t[n];i&&(we(i)&&(i={mounted:i,updated:i}),i.deep&&Tt(a),r.push({dir:i,instance:s,value:a,oldValue:void 0,arg:u,modifiers:f}))}return e}function so(e,t,s,r){let n=e.dirs,i=t&&t.dirs;for(let a=0;a<n.length;a++){let u=n[a];i&&(u.oldValue=i[a].value);let f=u.dir[r];f&&(At(),bt(f,s,8,[e.el,u,e,t]),Ot())}}function io(e,t){if(tt){let s=tt.provides,r=tt.parent&&tt.parent.provides;r===s&&(s=tt.provides=Object.create(r)),s[e]=t}}function ut(e,t,s=!1){let r=Fn();if(r||So){let n=So?So._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(n&&e in n)return n[e];if(arguments.length>1)return s&&we(t)?t.call(r&&r.proxy):t}}var Gd=Symbol.for("v-scx"),Wd=()=>{{let e=ut(Gd);return e}};function Be(e,t,s){return li(e,t,s)}function li(e,t,s=Ie){let{immediate:r,deep:n,flush:i,once:a}=s,u=Ge({},s),f=t&&r||!t&&i!=="post",v;if(Do){if(i==="sync"){let E=Wd();v=E.__watcherHandles||(E.__watcherHandles=[])}else if(!f){let E=()=>{};return E.stop=at,E.resume=at,E.pause=at,E}}let h=tt;u.call=(E,y,w)=>bt(E,h,y,w);let k=!1;i==="post"?u.scheduler=E=>{dt(E,h&&h.suspense)}:i!=="sync"&&(k=!0,u.scheduler=(E,y)=>{y?E():qn(E)}),u.augmentJob=E=>{t&&(E.flags|=4),k&&(E.flags|=2,h&&(E.id=h.uid,E.i=h))};let m=Ur(e,t,u);return Do&&(v?v.push(m):f&&m()),m}function Kd(e,t,s){let r=this.proxy,n=Fe(e)?e.includes(".")?di(r,e):()=>r[e]:e.bind(r,r),i;we(t)?i=t:(i=t.handler,s=t);let a=as(this),u=li(n,i.bind(r),s);return a(),u}function di(e,t){let s=t.split(".");return()=>{let r=e;for(let n=0;n<s.length&&r;n++)r=r[s[n]];return r}}var Yd=Symbol("_vte"),Ms=e=>e.__isTeleport;var Dn=Symbol("_leaveCb");function Jd(e){let t=e[0];if(e.length>1){let s=!1;for(let r of e)if(r.type!==jt){t=r,s=!0;break}}return t}function ui(e){if(!Ls(e))return Ms(e.type)&&e.children?Jd(e.children):e;if(e.component)return e.component.subTree;let{shapeFlag:t,children:s}=e;if(s){if(t&16)return s[0];if(t&32&&we(s.default))return s.default()}}function $s(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;let s=e.component.subTree;$s(Ms(s.type)&&ui(s)||s,t)}else e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function rs(e,t){return we(e)?Ge({name:e.name},t,{setup:e}):e}function Mn(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function zr(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}var As=new WeakMap;function Qo(e,t,s,r,n=!1){if(ye(e)){e.forEach((w,D)=>Qo(w,t&&(ye(t)?t[D]:t),s,r,n));return}if(Xo(r)&&!n){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Qo(e,t,s,r.component.subTree);return}let i=r.shapeFlag&4?Hs(r.component):r.el,a=n?null:i,{i:u,r:f}=e,v=t&&t.r,h=u.refs===Ie?u.refs={}:u.refs,k=u.setupState,m=De(k),E=k===Ie?an:w=>zr(h,w)?!1:Ne(m,w),y=(w,D)=>!(D&&zr(h,D));if(v!=null&&v!==f){if(Hr(t),Fe(v))h[v]=null,E(v)&&(k[v]=null);else if(Ze(v)){let w=t;y(v,w.k)&&(v.value=null),w.k&&(h[w.k]=null)}}if(we(f))ss(f,u,12,[a,h]);else{let w=Fe(f),D=Ze(f);if(w||D){let R=()=>{if(e.f){let T=w?E(f)?k[f]:h[f]:y(f)||!e.k?f.value:h[e.k];if(n)ye(T)&&Po(T,i);else if(ye(T))T.includes(i)||T.push(i);else if(w)h[f]=[i],E(f)&&(k[f]=h[f]);else{let I=[i];y(f,e.k)&&(f.value=I),e.k&&(h[e.k]=I)}}else w?(h[f]=a,E(f)&&(k[f]=a)):D&&(y(f,e.k)&&(f.value=a),e.k&&(h[e.k]=a))};if(a){let T=()=>{R(),As.delete(e)};T.id=-1,As.set(e,T),dt(T,s)}else Hr(e),R()}}}function Hr(e){let t=As.get(e);t&&(t.flags|=8,As.delete(e))}var Br=e=>e.nodeType===8;var o6=Mo().requestIdleCallback||(e=>setTimeout(e,1)),s6=Mo().cancelIdleCallback||(e=>clearTimeout(e));function Qd(e,t){if(Br(e)&&e.data==="["){let s=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(Br(r))if(r.data==="]"){if(--s===0)break}else r.data==="["&&s++;r=r.nextSibling}}else t(e)}var Xo=e=>!!e.type.__asyncLoader;function ci(e){we(e)&&(e={loader:e});let{loader:t,loadingComponent:s,errorComponent:r,delay:n=200,hydrate:i,timeout:a,suspensible:u=!0,onError:f}=e,v=null,h,k=0,m=()=>(k++,v=null,E()),E=()=>{let y;return v||(y=v=t().catch(w=>{if(w=w instanceof Error?w:new Error(String(w)),f)return new Promise((D,R)=>{f(w,()=>D(m()),()=>R(w),k+1)});throw w}).then(w=>y!==v&&v?v:(w&&(w.__esModule||w[Symbol.toStringTag]==="Module")&&(w=w.default),h=w,w)))};return rs({name:"AsyncComponentWrapper",__asyncLoader:E,__asyncHydrate(y,w,D){let R=y.isConnected,T=!1;(w.bu||(w.bu=[])).push(()=>T=!0);let I=()=>{T||!y.parentNode||R&&!y.isConnected||D()},H=i?()=>{let q=i(I,U=>Qd(y,U));q&&(w.bum||(w.bum=[])).push(q)}:I;h?H():E().then(()=>!w.isUnmounted&&H())},get __asyncResolved(){return h},setup(){let y=tt;if(Mn(y),h)return()=>Ns(h,y);let w=q=>{v=null,ns(q,y,13,!r)};if(u&&y.suspense||Do)return E().then(q=>()=>Ns(q,y)).catch(q=>(w(q),()=>r?Ce(r,{error:q}):null));let D=et(!1),R=et(),T=et(!!n),I,H;return is(()=>{I!=null&&clearTimeout(I),H!=null&&clearTimeout(H)}),n&&(H=setTimeout(()=>{y.isUnmounted||(T.value=!1)},n)),a!=null&&(I=setTimeout(()=>{if(!y.isUnmounted&&!D.value&&!R.value){let q=new Error(`Async component timed out after ${a}ms.`);w(q),R.value=q}},a)),E().then(()=>{y.isUnmounted||(D.value=!0,y.parent&&Ls(y.parent.vnode)&&y.parent.update())}).catch(q=>{if(y.isUnmounted){v=null;return}w(q),R.value=q}),()=>{if(D.value&&h)return Ns(h,y);if(R.value&&r)return Ce(r,{error:R.value});if(s&&!T.value)return Ns(s,y)}}})}function Ns(e,t){let{ref:s,props:r,children:n,ce:i}=t.vnode,a=Ce(e,r,n);return a.ref=s,a.ce=i,delete t.vnode.ce,a}var Ls=e=>e.type.__isKeepAlive;function pi(e,t){mi(e,"a",t)}function fi(e,t){mi(e,"da",t)}function mi(e,t,s=tt){let r=e.__wdc||(e.__wdc=()=>{let n=s;for(;n;){if(n.isDeactivated)return;n=n.parent}return e()});if(Us(t,r,s),s){let n=s.parent;for(;n&&n.parent;)Ls(n.parent.vnode)&&Xd(r,t,s,n),n=n.parent}}function Xd(e,t,s,r){let n=Us(t,e,r,!0);is(()=>{Po(r[t],n)},s)}function Us(e,t,s=tt,r=!1){if(s){let n=s[e]||(s[e]=[]),i=t.__weh||(t.__weh=(...a)=>{At();let u=as(s),f=bt(t,s,e,a);return u(),Ot(),f});return r?n.unshift(i):n.push(i),i}}var Gt=e=>(t,s=tt)=>{(!Do||e==="sp")&&Us(e,(...r)=>t(...r),s)},Zd=Gt("bm"),qt=Gt("m"),hi=Gt("bu"),vi=Gt("u"),ao=Gt("bum"),is=Gt("um"),xd=Gt("sp"),eu=Gt("rtg"),tu=Gt("rtc");function ou(e,t=tt){Us("ec",e,t)}var gi="components",su="directives";function We(e,t){return yi(gi,e,!0,t)||e}var nu=Symbol.for("v-ndc");function be(e){return yi(su,e)}function yi(e,t,s=!0,r=!1){let n=ht||tt;if(n){let i=n.type;if(e===gi){let u=zu(i,!1);if(u&&(u===t||u===Je(t)||u===xt(Je(t))))return i}let a=jr(n[e]||i[e],t)||jr(n.appContext[e],t);return!a&&r?i:a}}function jr(e,t){return e&&(e[t]||e[Je(t)]||e[xt(Je(t))])}function re(e,t,s,r){let n,i=s&&s[r],a=ye(e);if(a||Fe(e)){let u=a&&zt(e),f=!1,v=!1;u&&(f=!lt(e),v=Ct(e),e=Go(e)),n=new Array(e.length);for(let h=0,k=e.length;h<k;h++)n[h]=t(f?v?oo(yt(e[h])):yt(e[h]):e[h],h,void 0,i&&i[h])}else if(typeof e=="number"){n=new Array(e);for(let u=0;u<e;u++)n[u]=t(u+1,u,void 0,i&&i[u])}else if(Te(e))if(e[Symbol.iterator])n=Array.from(e,(u,f)=>t(u,f,void 0,i&&i[f]));else{let u=Object.keys(e);n=new Array(u.length);for(let f=0,v=u.length;f<v;f++){let h=u[f];n[f]=t(e[h],h,f,i&&i[f])}}else n=[];return s&&(s[r]=n),n}var On=e=>e?Ui(e)?Hs(e):On(e.parent):null;var Zo=Ge(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=>On(e.parent),$root:e=>On(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>$n(e),$forceUpdate:e=>e.f||(e.f=()=>{qn(e.update)}),$nextTick:e=>e.n||(e.n=st.bind(e.proxy)),$watch:e=>Kd.bind(e)});var Rn=(e,t)=>e!==Ie&&!e.__isScriptSetup&&Ne(e,t),ru={get({_:e},t){if(t==="__v_skip")return!0;let{ctx:s,setupState:r,data:n,props:i,accessCache:a,type:u,appContext:f}=e;if(t[0]!=="$"){let m=a[t];if(m!==void 0)switch(m){case 1:return r[t];case 2:return n[t];case 4:return s[t];case 3:return i[t]}else{if(Rn(r,t))return a[t]=1,r[t];if(n!==Ie&&Ne(n,t))return a[t]=2,n[t];if(Ne(i,t))return a[t]=3,i[t];if(s!==Ie&&Ne(s,t))return a[t]=4,s[t];In&&(a[t]=0)}}let v=Zo[t],h,k;if(v)return t==="$attrs"&&xe(e.attrs,"get",""),v(e);if((h=u.__cssModules)&&(h=h[t]))return h;if(s!==Ie&&Ne(s,t))return a[t]=4,s[t];if(k=f.config.globalProperties,Ne(k,t))return k[t]},set({_:e},t,s){let{data:r,setupState:n,ctx:i}=e;return Rn(n,t)?(n[t]=s,!0):r!==Ie&&Ne(r,t)?(r[t]=s,!0):Ne(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:r,appContext:n,props:i,type:a}},u){let f;return!!(s[u]||e!==Ie&&u[0]!=="$"&&Ne(e,u)||Rn(t,u)||Ne(i,u)||Ne(r,u)||Ne(Zo,u)||Ne(n.config.globalProperties,u)||(f=a.__cssModules)&&f[u])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:Ne(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function Gr(e){return ye(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}var In=!0;function iu(e){let t=$n(e),s=e.proxy,r=e.ctx;In=!1,t.beforeCreate&&Wr(t.beforeCreate,e,"bc");let{data:n,computed:i,methods:a,watch:u,provide:f,inject:v,created:h,beforeMount:k,mounted:m,beforeUpdate:E,updated:y,activated:w,deactivated:D,beforeDestroy:R,beforeUnmount:T,destroyed:I,unmounted:H,render:q,renderTracked:U,renderTriggered:ae,errorCaptured:ie,serverPrefetch:_,expose:O,inheritAttrs:Y,components:Z,directives:te,filters:J}=t;if(v&&au(v,r,null),a)for(let pe in a){let le=a[pe];we(le)&&(r[pe]=le.bind(s))}if(n){let pe=n.call(s,s);Te(pe)&&(e.data=ze(pe))}if(In=!0,i)for(let pe in i){let le=i[pe],Oe=we(le)?le.bind(s,s):we(le.get)?le.get.bind(s,s):at,_e=!we(le)&&we(le.set)?le.set.bind(s):at,Ue=ot({get:Oe,set:_e});Object.defineProperty(r,pe,{enumerable:!0,configurable:!0,get:()=>Ue.value,set:Re=>Ue.value=Re})}if(u)for(let pe in u)bi(u[pe],r,s,pe);if(f){let pe=we(f)?f.call(s):f;Reflect.ownKeys(pe).forEach(le=>{io(le,pe[le])})}h&&Wr(h,e,"c");function ue(pe,le){ye(le)?le.forEach(Oe=>pe(Oe.bind(s))):le&&pe(le.bind(s))}if(ue(Zd,k),ue(qt,m),ue(hi,E),ue(vi,y),ue(pi,w),ue(fi,D),ue(ou,ie),ue(tu,U),ue(eu,ae),ue(ao,T),ue(is,H),ue(xd,_),ye(O))if(O.length){let pe=e.exposed||(e.exposed={});O.forEach(le=>{Object.defineProperty(pe,le,{get:()=>s[le],set:Oe=>s[le]=Oe,enumerable:!0})})}else e.exposed||(e.exposed={});q&&e.render===at&&(e.render=q),Y!=null&&(e.inheritAttrs=Y),Z&&(e.components=Z),te&&(e.directives=te),_&&Mn(e)}function au(e,t,s=at){ye(e)&&(e=Pn(e));for(let r in e){let n=e[r],i;Te(n)?"default"in n?i=ut(n.from||r,n.default,!0):i=ut(n.from||r):i=ut(n),Ze(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:a=>i.value=a}):t[r]=i}}function Wr(e,t,s){bt(ye(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,s)}function bi(e,t,s,r){let n=r.includes(".")?di(s,r):()=>s[r];if(Fe(e)){let i=t[e];we(i)&&Be(n,i)}else if(we(e))Be(n,e.bind(s));else if(Te(e))if(ye(e))e.forEach(i=>bi(i,t,s,r));else{let i=we(e.handler)?e.handler.bind(s):t[e.handler];we(i)&&Be(n,i,e)}}function $n(e){let t=e.type,{mixins:s,extends:r}=t,{mixins:n,optionsCache:i,config:{optionMergeStrategies:a}}=e.appContext,u=i.get(t),f;return u?f=u:!n.length&&!s&&!r?f=t:(f={},n.length&&n.forEach(v=>Os(f,v,a,!0)),Os(f,t,a)),Te(t)&&i.set(t,f),f}function Os(e,t,s,r=!1){let{mixins:n,extends:i}=t;i&&Os(e,i,s,!0),n&&n.forEach(a=>Os(e,a,s,!0));for(let a in t)if(!(r&&a==="expose")){let u=lu[a]||s&&s[a];e[a]=u?u(e[a],t[a]):t[a]}return e}var lu={data:Kr,props:Yr,emits:Yr,methods:Jo,computed:Jo,beforeCreate:nt,created:nt,beforeMount:nt,mounted:nt,beforeUpdate:nt,updated:nt,beforeDestroy:nt,beforeUnmount:nt,destroyed:nt,unmounted:nt,activated:nt,deactivated:nt,errorCaptured:nt,serverPrefetch:nt,components:Jo,directives:Jo,watch:uu,provide:Kr,inject:du};function Kr(e,t){return t?e?function(){return Ge(we(e)?e.call(this,this):e,we(t)?t.call(this,this):t)}:t:e}function du(e,t){return Jo(Pn(e),Pn(t))}function Pn(e){if(ye(e)){let t={};for(let s=0;s<e.length;s++)t[e[s]]=e[s];return t}return e}function nt(e,t){return e?[...new Set([].concat(e,t))]:t}function Jo(e,t){return e?Ge(Object.create(null),e,t):t}function Yr(e,t){return e?ye(e)&&ye(t)?[...new Set([...e,...t])]:Ge(Object.create(null),Gr(e),Gr(t??{})):t}function uu(e,t){if(!e)return t;if(!t)return e;let s=Ge(Object.create(null),e);for(let r in t)s[r]=nt(e[r],t[r]);return s}function wi(){return{app:null,config:{isNativeTag:an,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 cu=0;function pu(e,t){return function(r,n=null){we(r)||(r=Ge({},r)),n!=null&&!Te(n)&&(n=null);let i=wi(),a=new WeakSet,u=[],f=!1,v=i.app={_uid:cu++,_component:r,_props:n,_container:null,_context:i,_instance:null,version:Bu,get config(){return i.config},set config(h){},use(h,...k){return a.has(h)||(h&&we(h.install)?(a.add(h),h.install(v,...k)):we(h)&&(a.add(h),h(v,...k))),v},mixin(h){return i.mixins.includes(h)||i.mixins.push(h),v},component(h,k){return k?(i.components[h]=k,v):i.components[h]},directive(h,k){return k?(i.directives[h]=k,v):i.directives[h]},mount(h,k,m){if(!f){let E=v._ceVNode||Ce(r,n);return E.appContext=i,m===!0?m="svg":m===!1&&(m=void 0),k&&t?t(E,h):e(E,h,m),f=!0,v._container=h,h.__vue_app__=v,Hs(E.component)}},onUnmount(h){u.push(h)},unmount(){f&&(bt(u,v._instance,16),e(null,v._container),delete v._container.__vue_app__)},provide(h,k){return i.provides[h]=k,v},runWithContext(h){let k=So;So=v;try{return h()}finally{So=k}}};return v}}var So=null;var fu=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Je(t)}Modifiers`]||e[`${St(t)}Modifiers`];function mu(e,t,...s){if(e.isUnmounted)return;let r=e.vnode.props||Ie,n=s,i=t.startsWith("update:"),a=i&&fu(r,t.slice(7));a&&(a.trim&&(n=s.map(h=>Fe(h)?h.trim():h)),a.number&&(n=n.map(wo)));let u,f=r[u=qo(t)]||r[u=qo(Je(t))];!f&&i&&(f=r[u=qo(St(t))]),f&&bt(f,e,6,n);let v=r[u+"Once"];if(v){if(!e.emitted)e.emitted={};else if(e.emitted[u])return;e.emitted[u]=!0,bt(v,e,6,n)}}var hu=new WeakMap;function ki(e,t,s=!1){let r=s?hu:t.emitsCache,n=r.get(e);if(n!==void 0)return n;let i=e.emits,a={},u=!1;if(!we(e)){let f=v=>{let h=ki(v,t,!0);h&&(u=!0,Ge(a,h))};!s&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}return!i&&!u?(Te(e)&&r.set(e,null),null):(ye(i)?i.forEach(f=>a[f]=null):Ge(a,i),Te(e)&&r.set(e,a),a)}function Fs(e,t){return!e||!vo(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),Ne(e,t[0].toLowerCase()+t.slice(1))||Ne(e,St(t))||Ne(e,t))}function Tn(e){let{type:t,vnode:s,proxy:r,withProxy:n,propsOptions:[i],slots:a,attrs:u,emit:f,render:v,renderCache:h,props:k,data:m,setupState:E,ctx:y,inheritAttrs:w}=e,D=Ts(e),R,T;try{if(s.shapeFlag&4){let q=n||r,U=q;R=Vt(v.call(U,q,h,k,E,m,y)),T=u}else{let q=t;R=Vt(q.length>1?q(k,{attrs:u,slots:a,emit:f}):q(k,null)),T=t.props?u:vu(u)}}catch(q){ro.length=0,ns(q,e,1),R=Ce(jt)}let I=R,H;if(T&&w!==!1){let q=Object.keys(T),{shapeFlag:U}=I;q.length&&U&7&&(i&&q.some(go)&&(T=gu(T,i)),I=No(I,T,!1,!0))}if(s.dirs&&(I=No(I,null,!1,!0),I.dirs=I.dirs?I.dirs.concat(s.dirs):s.dirs),s.transition){let q=Ms(I.type)&&ui(I)||I;$s(q,s.transition)}return R=I,Ts(D),R}var vu=e=>{let t;for(let s in e)(s==="class"||s==="style"||vo(s))&&((t||(t={}))[s]=e[s]);return t},gu=(e,t)=>{let s={};for(let r in e)(!go(r)||!(r.slice(9)in t))&&(s[r]=e[r]);return s};function yu(e,t,s){let{props:r,children:n,component:i}=e,{props:a,children:u,patchFlag:f}=t,v=i.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&f>=0){if(f&1024)return!0;if(f&16)return r?Jr(r,a,v):!!a;if(f&8){let h=t.dynamicProps;for(let k=0;k<h.length;k++){let m=h[k];if(Ei(a,r,m)&&!Fs(v,m))return!0}}}else return(n||u)&&(!u||!u.$stable)?!0:r===a?!1:r?a?Jr(r,a,v):!0:!!a;return!1}function Jr(e,t,s){let r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let n=0;n<r.length;n++){let i=r[n];if(Ei(t,e,i)&&!Fs(s,i))return!0}return!1}function Ei(e,t,s){let r=e[s],n=t[s];return s==="style"&&Te(r)&&Te(n)?!Nt(r,n):r!==n}function bu({vnode:e,parent:t,suspense:s},r){for(;t;){let n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.suspense.vnode.el=n.el=r,e=n),n===e)(e=t.vnode).el=r,t=t.parent;else break}s&&s.activeBranch===e&&(s.vnode.el=r)}var Ci={},_i=()=>Object.create(Ci),Si=e=>Object.getPrototypeOf(e)===Ci;function wu(e,t,s,r=!1){let n={},i=_i();e.propsDefaults=Object.create(null),Ni(e,t,n,i);for(let a in e.propsOptions[0])a in n||(n[a]=void 0);s?e.props=r?n:Wo(n):e.type.props?e.props=n:e.props=i,e.attrs=i}function ku(e,t,s,r){let{props:n,attrs:i,vnode:{patchFlag:a}}=e,u=De(n),[f]=e.propsOptions,v=!1;if((r||a>0)&&!(a&16)){if(a&8){let h=e.vnode.dynamicProps;for(let k=0;k<h.length;k++){let m=h[k];if(Fs(e.emitsOptions,m))continue;let E=t[m];if(f)if(Ne(i,m))E!==i[m]&&(i[m]=E,v=!0);else{let y=Je(m);n[y]=Vn(f,u,y,E,e,!1)}else E!==i[m]&&(i[m]=E,v=!0)}}}else{Ni(e,t,n,i)&&(v=!0);let h;for(let k in u)(!t||!Ne(t,k)&&((h=St(k))===k||!Ne(t,h)))&&(f?s&&(s[k]!==void 0||s[h]!==void 0)&&(n[k]=Vn(f,u,k,void 0,e,!0)):delete n[k]);if(i!==u)for(let k in i)(!t||!Ne(t,k))&&(delete i[k],v=!0)}v&&Rt(e.attrs,"set","")}function Ni(e,t,s,r){let[n,i]=e.propsOptions,a=!1,u;if(t)for(let f in t){if(yo(f))continue;let v=t[f],h;n&&Ne(n,h=Je(f))?!i||!i.includes(h)?s[h]=v:(u||(u={}))[h]=v:Fs(e.emitsOptions,f)||(!(f in r)||v!==r[f])&&(r[f]=v,a=!0)}if(i){let f=De(s),v=u||Ie;for(let h=0;h<i.length;h++){let k=i[h];s[k]=Vn(n,f,k,v[k],e,!Ne(v,k))}}return a}function Vn(e,t,s,r,n,i){let a=e[s];if(a!=null){let u=Ne(a,"default");if(u&&r===void 0){let f=a.default;if(a.type!==Function&&!a.skipFactory&&we(f)){let{propsDefaults:v}=n;if(s in v)r=v[s];else{let h=as(n);r=v[s]=f.call(null,t),h()}}else r=f;n.ce&&n.ce._setProp(s,r)}a[0]&&(i&&!u?r=!1:a[1]&&(r===""||r===St(s))&&(r=!0))}return r}var Eu=new WeakMap;function Di(e,t,s=!1){let r=s?Eu:t.propsCache,n=r.get(e);if(n)return n;let i=e.props,a={},u=[],f=!1;if(!we(e)){let h=k=>{f=!0;let[m,E]=Di(k,t,!0);Ge(a,m),E&&u.push(...E)};!s&&t.mixins.length&&t.mixins.forEach(h),e.extends&&h(e.extends),e.mixins&&e.mixins.forEach(h)}if(!i&&!f)return Te(e)&&r.set(e,Zt),Zt;if(ye(i))for(let h=0;h<i.length;h++){let k=Je(i[h]);Qr(k)&&(a[k]=Ie)}else if(i)for(let h in i){let k=Je(h);if(Qr(k)){let m=i[h],E=a[k]=ye(m)||we(m)?{type:m}:Ge({},m),y=E.type,w=!1,D=!0;if(ye(y))for(let R=0;R<y.length;++R){let T=y[R],I=we(T)&&T.name;if(I==="Boolean"){w=!0;break}else I==="String"&&(D=!1)}else w=we(y)&&y.name==="Boolean";E[0]=w,E[1]=D,(w||Ne(E,"default"))&&u.push(k)}}let v=[a,u];return Te(e)&&r.set(e,v),v}function Qr(e){return e[0]!=="$"&&!yo(e)}var Ln=e=>e==="_"||e==="_ctx"||e==="$stable",Un=e=>ye(e)?e.map(Vt):[Vt(e)],Cu=(e,t,s)=>{if(t._n)return t;let r=jd((...n)=>Un(t(...n)),s);return r._c=!1,r},Ri=(e,t,s)=>{let r=e._ctx;for(let n in e){if(Ln(n))continue;let i=e[n];if(we(i))t[n]=Cu(n,i,r);else if(i!=null){let a=Un(i);t[n]=()=>a}}},Ti=(e,t)=>{let s=Un(t);e.slots.default=()=>s},Ai=(e,t,s)=>{for(let r in t)(s||!Ln(r))&&(e[r]=t[r])},_u=(e,t,s)=>{let r=e.slots=_i();if(e.vnode.shapeFlag&32){let n=t._;n?(Ai(r,t,s),s&&hs(r,"_",n,!0)):Ri(t,r)}else t&&Ti(e,t)},Su=(e,t,s)=>{let{vnode:r,slots:n}=e,i=!0,a=Ie;if(r.shapeFlag&32){let u=t._;u?s&&u===1?i=!1:Ai(n,t,s):(i=!t.$stable,Ri(t,n)),a=t}else t&&(Ti(e,t),a={default:1});if(i)for(let u in n)!Ln(u)&&a[u]==null&&delete n[u]};function Nu(){let e=[]}var dt=Au;function Oi(e){return Du(e)}function Du(e,t){Nu();let s=Mo();s.__VUE__=!0;let{insert:r,remove:n,patchProp:i,createElement:a,createText:u,createComment:f,setText:v,setElementText:h,parentNode:k,nextSibling:m,setScopeId:E=at,insertStaticContent:y}=e,w=(g,S,V,z=null,j=null,L=null,G=void 0,ee=null,x=!!S.dynamicChildren)=>{if(g===S)return;g&&!Yo(g,S)&&(z=oe(g),$e(g,j,L,!0),g=null),S.patchFlag===-2&&(x=!1,S.dynamicChildren=null);let{type:K,ref:fe,shapeFlag:ne}=S;switch(K){case zs:D(g,S,V,z);break;case jt:R(g,S,V,z);break;case xo:g==null&&T(S,V,z,G);break;case X:te(g,S,V,z,j,L,G,ee,x);break;default:ne&1?U(g,S,V,z,j,L,G,ee,x):ne&6?J(g,S,V,z,j,L,G,ee,x):(ne&64||ne&128)&&K.process(g,S,V,z,j,L,G,ee,x,P)}fe!=null&&j?Qo(fe,g&&g.ref,L,S||g,!S):fe==null&&g&&g.ref!=null&&Qo(g.ref,null,L,g,!0)},D=(g,S,V,z)=>{if(g==null)r(S.el=u(S.children),V,z);else{let j=S.el=g.el;S.children!==g.children&&v(j,S.children)}},R=(g,S,V,z)=>{g==null?r(S.el=f(S.children||""),V,z):S.el=g.el},T=(g,S,V,z)=>{[g.el,g.anchor]=y(g.children,S,V,z,g.el,g.anchor)},I=(g,S,V,z)=>{if(S.children!==g.children){let j=m(g.anchor);q(g),[S.el,S.anchor]=y(S.children,V,j,z)}else S.el=g.el,S.anchor=g.anchor},H=({el:g,anchor:S},V,z)=>{let j;for(;g&&g!==S;)j=m(g),r(g,V,z),g=j;r(S,V,z)},q=({el:g,anchor:S})=>{let V;for(;g&&g!==S;)V=m(g),n(g),g=V;n(S)},U=(g,S,V,z,j,L,G,ee,x)=>{if(S.type==="svg"?G="svg":S.type==="math"&&(G="mathml"),g==null)ae(S,V,z,j,L,G,ee,x);else{let K=g.el&&g.el._isVueCE?g.el:null;try{K&&K._beginPatch(),O(g,S,j,L,G,ee,x)}finally{K&&K._endPatch()}}},ae=(g,S,V,z,j,L,G,ee)=>{let x,K,{props:fe,shapeFlag:ne,transition:de,dirs:ge}=g;if(x=g.el=a(g.type,L,fe&&fe.is,fe),ne&8?h(x,g.children):ne&16&&_(g.children,x,null,z,j,An(g,L),G,ee),ge&&so(g,null,z,"created"),ie(x,g,g.scopeId,G,z),fe){for(let Me in fe)Me!=="value"&&!yo(Me)&&i(x,Me,null,fe[Me],L,z);"value"in fe&&i(x,"value",null,fe.value,L),(K=fe.onVnodeBeforeMount)&&It(K,z,g)}ge&&so(g,null,z,"beforeMount");let Se=Ru(j,de);Se&&de.beforeEnter(x),r(x,S,V),((K=fe&&fe.onVnodeMounted)||Se||ge)&&dt(()=>{let Ve;try{K&&It(K,z,g),Se&&de.enter(x),ge&&so(g,null,z,"mounted")}finally{}},j)},ie=(g,S,V,z,j)=>{if(V&&E(g,V),z)for(let L=0;L<z.length;L++)E(g,z[L]);if(j){let L=j.subTree;if(S===L||qi(L.type)&&(L.ssContent===S||L.ssFallback===S)){let G=j.vnode;ie(g,G,G.scopeId,G.slotScopeIds,j.parent)}}},_=(g,S,V,z,j,L,G,ee,x=0)=>{for(let K=x;K<g.length;K++){let fe=g[K]=ee?Bt(g[K]):Vt(g[K]);w(null,fe,S,V,z,j,L,G,ee)}},O=(g,S,V,z,j,L,G)=>{let ee=S.el=g.el,{patchFlag:x,dynamicChildren:K,dirs:fe}=S;x|=g.patchFlag&16;let ne=g.props||Ie,de=S.props||Ie,ge;if(V&&no(V,!1),(ge=de.onVnodeBeforeUpdate)&&It(ge,V,S,g),fe&&so(S,g,V,"beforeUpdate"),V&&no(V,!0),K&&(!g.dynamicChildren||g.dynamicChildren.length!==K.length)&&(x=0,G=!1,K=null),(ne.innerHTML&&de.innerHTML==null||ne.textContent&&de.textContent==null)&&h(ee,""),K?Y(g.dynamicChildren,K,ee,V,z,An(S,j),L):G||Oe(g,S,ee,null,V,z,An(S,j),L,!1),x>0){if(x&16)Z(ee,ne,de,V,j);else if(x&2&&ne.class!==de.class&&i(ee,"class",null,de.class,j),x&4&&i(ee,"style",ne.style,de.style,j),x&8){let Se=S.dynamicProps;for(let Me=0;Me<Se.length;Me++){let Ve=Se[Me],Ke=ne[Ve],Ye=de[Ve];(Ye!==Ke||Ve==="value")&&i(ee,Ve,Ke,Ye,j,V)}}x&1&&g.children!==S.children&&h(ee,S.children)}else!G&&K==null&&Z(ee,ne,de,V,j);((ge=de.onVnodeUpdated)||fe)&&dt(()=>{ge&&It(ge,V,S,g),fe&&so(S,g,V,"updated")},z)},Y=(g,S,V,z,j,L,G)=>{for(let ee=0;ee<S.length;ee++){let x=g[ee],K=S[ee],fe=x.el&&(x.type===X||!Yo(x,K)||x.shapeFlag&198)?k(x.el):V;w(x,K,fe,null,z,j,L,G,!0)}},Z=(g,S,V,z,j)=>{if(S!==V){if(S!==Ie)for(let L in S)!yo(L)&&!(L in V)&&i(g,L,S[L],null,j,z);for(let L in V){if(yo(L))continue;let G=V[L],ee=S[L];G!==ee&&L!=="value"&&i(g,L,ee,G,j,z)}"value"in V&&i(g,"value",S.value,V.value,j)}},te=(g,S,V,z,j,L,G,ee,x)=>{let K=S.el=g?g.el:u(""),fe=S.anchor=g?g.anchor:u(""),{patchFlag:ne,dynamicChildren:de,slotScopeIds:ge}=S;ge&&(ee=ee?ee.concat(ge):ge),g==null?(r(K,V,z),r(fe,V,z),_(S.children||[],V,fe,j,L,G,ee,x)):ne>0&&ne&64&&de&&g.dynamicChildren&&g.dynamicChildren.length===de.length?(Y(g.dynamicChildren,de,V,j,L,G,ee),(S.key!=null||j&&S===j.subTree)&&Ii(g,S,!0)):Oe(g,S,V,fe,j,L,G,ee,x)},J=(g,S,V,z,j,L,G,ee,x)=>{S.slotScopeIds=ee,g==null?S.shapeFlag&512?j.ctx.activate(S,V,z,G,x):se(S,V,z,j,L,G,x):ue(g,S,x)},se=(g,S,V,z,j,L,G)=>{let ee=g.component=Mu(g,z,j);if(Ls(g)&&(ee.ctx.renderer=P),$u(ee,!1,G),ee.asyncDep){if(j&&j.registerDep(ee,pe,G),!g.el){let x=ee.subTree=Ce(jt);R(null,x,S,V),g.placeholder=x.el}}else pe(ee,g,S,V,j,L,G)},ue=(g,S,V)=>{let z=S.component=g.component;if(yu(g,S,V))if(z.asyncDep&&!z.asyncResolved){le(z,S,V);return}else z.next=S,z.update();else S.el=g.el,z.vnode=S},pe=(g,S,V,z,j,L,G)=>{let ee=()=>{if(g.isMounted){let{next:ne,bu:de,u:ge,parent:Se,vnode:Me}=g;{let pt=Pi(g);if(pt){ne&&(ne.el=Me.el,le(g,ne,G)),pt.asyncDep.then(()=>{dt(()=>{g.isUnmounted||K()},j)});return}}let Ve=ne,Ke;no(g,!1),ne?(ne.el=Me.el,le(g,ne,G)):ne=Me,de&&bo(de),(Ke=ne.props&&ne.props.onVnodeBeforeUpdate)&&It(Ke,Se,ne,Me),no(g,!0);let Ye=Tn(g),kt=g.subTree;g.subTree=Ye,w(kt,Ye,k(kt.el),oe(kt),g,j,L),ne.el=Ye.el,Ve===null&&bu(g,Ye.el),ge&&dt(ge,j),(Ke=ne.props&&ne.props.onVnodeUpdated)&&dt(()=>It(Ke,Se,ne,Me),j)}else{let ne,{el:de,props:ge}=S,{bm:Se,m:Me,parent:Ve,root:Ke,type:Ye}=g,kt=Xo(S);if(no(g,!1),Se&&bo(Se),!kt&&(ne=ge&&ge.onVnodeBeforeMount)&&It(ne,Ve,S),no(g,!0),de&&M){let pt=()=>{g.subTree=Tn(g),M(de,g.subTree,g,j,null)};kt&&Ye.__asyncHydrate?Ye.__asyncHydrate(de,g,pt):pt()}else{Ke.ce&&Ke.ce._hasShadowRoot()&&Ke.ce._injectChildStyle(Ye,g.parent?g.parent.type:void 0);let pt=g.subTree=Tn(g);w(null,pt,V,z,g,j,L),S.el=pt.el}if(Me&&dt(Me,j),!kt&&(ne=ge&&ge.onVnodeMounted)){let pt=S;dt(()=>It(ne,Ve,pt),j)}(S.shapeFlag&256||Ve&&Xo(Ve.vnode)&&Ve.vnode.shapeFlag&256)&&g.a&&dt(g.a,j),g.isMounted=!0,S=V=z=null}};g.scope.on();let x=g.effect=new Eo(ee);g.scope.off();let K=g.update=x.run.bind(x),fe=g.job=x.runIfDirty.bind(x);fe.i=g,fe.id=g.uid,x.scheduler=()=>qn(fe),no(g,!0),K()},le=(g,S,V)=>{S.component=g;let z=g.vnode.props;g.vnode=S,g.next=null,ku(g,S.props,z,V),Su(g,S.children,V),At(),Fr(g),Ot()},Oe=(g,S,V,z,j,L,G,ee,x=!1)=>{let K=g&&g.children,fe=g?g.shapeFlag:0,ne=S.children,{patchFlag:de,shapeFlag:ge}=S;if(de>0){if(de&128){Ue(K,ne,V,z,j,L,G,ee,x);return}else if(de&256){_e(K,ne,V,z,j,L,G,ee,x);return}}ge&8?(fe&16&&F(K,j,L),ne!==K&&h(V,ne)):fe&16?ge&16?Ue(K,ne,V,z,j,L,G,ee,x):F(K,j,L,!0):(fe&8&&h(V,""),ge&16&&_(ne,V,z,j,L,G,ee,x))},_e=(g,S,V,z,j,L,G,ee,x)=>{g=g||Zt,S=S||Zt;let K=g.length,fe=S.length,ne=Math.min(K,fe),de;for(de=0;de<ne;de++){let ge=S[de]=x?Bt(S[de]):Vt(S[de]);w(g[de],ge,V,null,j,L,G,ee,x)}K>fe?F(g,j,L,!0,!1,ne):_(S,V,z,j,L,G,ee,x,ne)},Ue=(g,S,V,z,j,L,G,ee,x)=>{let K=0,fe=S.length,ne=g.length-1,de=fe-1;for(;K<=ne&&K<=de;){let ge=g[K],Se=S[K]=x?Bt(S[K]):Vt(S[K]);if(Yo(ge,Se))w(ge,Se,V,null,j,L,G,ee,x);else break;K++}for(;K<=ne&&K<=de;){let ge=g[ne],Se=S[de]=x?Bt(S[de]):Vt(S[de]);if(Yo(ge,Se))w(ge,Se,V,null,j,L,G,ee,x);else break;ne--,de--}if(K>ne){if(K<=de){let ge=de+1,Se=ge<fe?S[ge].el:z;for(;K<=de;)w(null,S[K]=x?Bt(S[K]):Vt(S[K]),V,Se,j,L,G,ee,x),K++}}else if(K>de)for(;K<=ne;)$e(g[K],j,L,!0),K++;else{let ge=K,Se=K,Me=new Map;for(K=Se;K<=de;K++){let ft=S[K]=x?Bt(S[K]):Vt(S[K]);ft.key!=null&&Me.set(ft.key,K)}let Ve,Ke=0,Ye=de-Se+1,kt=!1,pt=0,Io=new Array(Ye);for(K=0;K<Ye;K++)Io[K]=0;for(K=ge;K<=ne;K++){let ft=g[K];if(Ke>=Ye){$e(ft,j,L,!0);continue}let _t;if(ft.key!=null)_t=Me.get(ft.key);else for(Ve=Se;Ve<=de;Ve++)if(Io[Ve-Se]===0&&Yo(ft,S[Ve])){_t=Ve;break}_t===void 0?$e(ft,j,L,!0):(Io[_t-Se]=K+1,_t>=pt?pt=_t:kt=!0,w(ft,S[_t],V,null,j,L,G,ee,x),Ke++)}let dr=kt?Tu(Io):Zt;for(Ve=dr.length-1,K=Ye-1;K>=0;K--){let ft=Se+K,_t=S[ft],ur=S[ft+1],cr=ft+1<fe?ur.el||Vi(ur):z;Io[K]===0?w(null,_t,V,cr,j,L,G,ee,x):kt&&(Ve<0||K!==dr[Ve]?Re(_t,V,cr,2):Ve--)}}},Re=(g,S,V,z,j=null)=>{let{el:L,type:G,transition:ee,children:x,shapeFlag:K}=g;if(K&6){Re(g.component.subTree,S,V,z);return}if(K&128){g.suspense.move(S,V,z);return}if(K&64){G.move(g,S,V,P);return}if(G===X){r(L,S,V);for(let ne=0;ne<x.length;ne++)Re(x[ne],S,V,z);r(g.anchor,S,V);return}if(G===xo){H(g,S,V);return}if(z!==2&&K&1&&ee)if(z===0)ee.persisted&&!L[Dn]?r(L,S,V):(ee.beforeEnter(L),r(L,S,V),dt(()=>ee.enter(L),j));else{let{leave:ne,delayLeave:de,afterLeave:ge}=ee,Se=()=>{g.ctx.isUnmounted?n(L):r(L,S,V)},Me=()=>{let Ve=L._isLeaving||!!L[Dn];L._isLeaving&&L[Dn](!0),ee.persisted&&!Ve?Se():ne(L,()=>{Se(),ge&&ge()})};de?de(L,Se,Me):Me()}else r(L,S,V)},$e=(g,S,V,z=!1,j=!1)=>{let{type:L,props:G,ref:ee,children:x,dynamicChildren:K,shapeFlag:fe,patchFlag:ne,dirs:de,cacheIndex:ge,memo:Se}=g;if(ne===-2&&(j=!1),ee!=null&&(At(),Qo(ee,null,V,g,!0),Ot()),ge!=null&&(S.renderCache[ge]=void 0),fe&256){S.ctx.deactivate(g);return}let Me=fe&1&&de,Ve=!Xo(g),Ke;if(Ve&&(Ke=G&&G.onVnodeBeforeUnmount)&&It(Ke,S,g),fe&6)Ee(g.component,V,z);else{if(fe&128){g.suspense.unmount(V,z);return}Me&&so(g,null,S,"beforeUnmount"),fe&64?g.type.remove(g,S,V,P,z):K&&!K.hasOnce&&(L!==X||ne>0&&ne&64)?F(K,S,V,!1,!0):(L===X&&ne&384||!j&&fe&16)&&F(x,S,V),z&&Pe(g)}let Ye=Se!=null&&ge==null;(Ve&&(Ke=G&&G.onVnodeUnmounted)||Me||Ye)&&dt(()=>{Ke&&It(Ke,S,g),Me&&so(g,null,S,"unmounted"),Ye&&(g.el=null)},V)},Pe=g=>{let{type:S,el:V,anchor:z,transition:j}=g;if(S===X){He(V,z);return}if(S===xo){q(g);return}let L=()=>{n(V),j&&!j.persisted&&j.afterLeave&&j.afterLeave()};if(g.shapeFlag&1&&j&&!j.persisted){let{leave:G,delayLeave:ee}=j,x=()=>G(V,L);ee?ee(g.el,L,x):x()}else L()},He=(g,S)=>{let V;for(;g!==S;)V=m(g),n(g),g=V;n(S)},Ee=(g,S,V)=>{let{bum:z,scope:j,job:L,subTree:G,um:ee,m:x,a:K}=g;Xr(x),Xr(K),z&&bo(z),j.stop(),L&&(L.flags|=8,$e(G,g,S,V)),ee&&dt(ee,S),dt(()=>{g.isUnmounted=!0},S)},F=(g,S,V,z=!1,j=!1,L=0)=>{for(let G=L;G<g.length;G++)$e(g[G],S,V,z,j)},oe=g=>{if(g.shapeFlag&6)return oe(g.component.subTree);if(g.shapeFlag&128)return g.suspense.next();let S=m(g.anchor||g.el),V=S&&S[Yd];return V?m(V):S},Q=!1,C=(g,S,V)=>{let z;g==null?S._vnode&&($e(S._vnode,null,null,!0),z=S._vnode.component):w(S._vnode||null,g,S,null,null,null,V),S._vnode=g,Q||(Q=!0,Fr(z),ri(),Q=!1)},P={p:w,um:$e,m:Re,r:Pe,mt:se,mc:_,pc:Oe,pbc:Y,n:oe,o:e},B,M;return t&&([B,M]=t(P)),{render:C,hydrate:B,createApp:pu(C,B)}}function An({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function no({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Ru(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ii(e,t,s=!1){let r=e.children,n=t.children;if(ye(r)&&ye(n))for(let i=0;i<r.length;i++){let a=r[i],u=n[i];u.shapeFlag&1&&!u.dynamicChildren&&((u.patchFlag<=0||u.patchFlag===32)&&(u=n[i]=Bt(n[i]),u.el=a.el),!s&&u.patchFlag!==-2&&Ii(a,u)),u.type===zs&&(u.patchFlag===-1&&(u=n[i]=Bt(u)),u.el=a.el),u.type===jt&&!u.el&&(u.el=a.el)}}function Tu(e){let t=e.slice(),s=[0],r,n,i,a,u,f=e.length;for(r=0;r<f;r++){let v=e[r];if(v!==0){if(n=s[s.length-1],e[n]<v){t[r]=n,s.push(r);continue}for(i=0,a=s.length-1;i<a;)u=i+a>>1,e[s[u]]<v?i=u+1:a=u;v<e[s[i]]&&(i>0&&(t[r]=s[i-1]),s[i]=r)}}for(i=s.length,a=s[i-1];i-- >0;)s[i]=a,a=t[a];return s}function Pi(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Pi(t)}function Xr(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Vi(e){if(e.placeholder)return e.placeholder;let t=e.component;return t?Vi(t.subTree):null}var qi=e=>e.__isSuspense;function Au(e,t){t&&t.pendingBranch?ye(e)?t.effects.push(...e):t.effects.push(e):ni(e)}var X=Symbol.for("v-fgt"),zs=Symbol.for("v-txt"),jt=Symbol.for("v-cmt"),xo=Symbol.for("v-stc"),ro=[],vt=null;function l(e=!1){ro.push(vt=e?null:[])}function Mi(){ro.pop(),vt=ro[ro.length-1]||null}var ts=1;function Is(e,t=!1){ts+=e,e<0&&vt&&t&&(vt.hasOnce=!0)}function $i(e){return e.dynamicChildren=ts>0?vt||Zt:null,Mi(),ts>0&&vt&&vt.push(e),e}function d(e,t,s,r,n,i){return $i(o(e,t,s,r,n,i,!0))}function Mt(e,t,s,r,n){return $i(Ce(e,t,s,r,n,!0))}function Ps(e){return e?e.__v_isVNode===!0:!1}function Yo(e,t){return e.type===t.type&&e.key===t.key}var Li=({key:e})=>e??null,Ds=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?Fe(e)||Ze(e)||we(e)?{i:ht,r:e,k:t,f:!!s}:e:null);function o(e,t=null,s=null,r=0,n=null,i=e===X?0:1,a=!1,u=!1){let f={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Li(t),ref:t&&Ds(t),scopeId:ai,slotScopeIds:null,children:s,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:i,patchFlag:r,dynamicProps:n,dynamicChildren:null,appContext:null,ctx:ht};return u?(Vs(f,s),i&128&&e.normalize(f)):s&&(f.shapeFlag|=Fe(s)?8:16),ts>0&&!a&&vt&&(f.patchFlag>0||i&6)&&f.patchFlag!==32&&vt.push(f),f}var Ce=Ou;function Ou(e,t=null,s=null,r=0,n=null,i=!1){if((!e||e===nu)&&(e=jt),Ps(e)){let u=No(e,t,!0);return s&&Vs(u,s),ts>0&&!i&&vt&&(u.shapeFlag&6?vt[vt.indexOf(e)]=u:vt.push(u)),u.patchFlag=-2,u}if(Hu(e)&&(e=e.__vccOpts),t){t=Iu(t);let{class:u,style:f}=t;u&&!Fe(u)&&(t.class=A(u)),Te(f)&&(Ko(f)&&!ye(f)&&(f=Ge({},f)),t.style=qe(f))}let a=Fe(e)?1:qi(e)?128:Ms(e)?64:Te(e)?4:we(e)?2:0;return o(e,t,s,r,n,a,i,!0)}function Iu(e){return e?Ko(e)||Si(e)?Ge({},e):e:null}function No(e,t,s=!1,r=!1){let{props:n,ref:i,patchFlag:a,children:u,transition:f}=e,v=t?Pu(n||{},t):n,h={__v_isVNode:!0,__v_skip:!0,type:e.type,props:v,key:v&&Li(v),ref:t&&t.ref?s&&i?ye(i)?i.concat(Ds(t)):[i,Ds(t)]:Ds(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:u,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==X?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&&No(e.ssContent),ssFallback:e.ssFallback&&No(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return f&&r&&$s(h,f.clone(h)),h}function b(e=" ",t=0){return Ce(zs,null,e,t)}function ce(e,t){let s=Ce(xo,null,e);return s.staticCount=t,s}function p(e="",t=!1){return t?(l(),Mt(jt,null,e)):Ce(jt,null,e)}function Vt(e){return e==null||typeof e=="boolean"?Ce(jt):ye(e)?Ce(X,null,e.slice()):Ps(e)?Bt(e):Ce(zs,null,String(e))}function Bt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:No(e)}function Vs(e,t){let s=0,{shapeFlag:r}=e;if(t==null)t=null;else if(ye(t))s=16;else if(typeof t=="object")if(r&65){let n=t.default;n&&(n._c&&(n._d=!1),Vs(e,n()),n._c&&(n._d=!0));return}else{s=32;let n=t._;!n&&!Si(t)?t._ctx=ht:n===3&&ht&&(ht.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(we(t)){if(r&65){Vs(e,{default:t});return}t={default:t,_ctx:ht},s=32}else t=String(t),r&64?(s=16,t=[b(t)]):s=8;e.children=t,e.shapeFlag|=s}function Pu(...e){let t={};for(let s=0;s<e.length;s++){let r=e[s];for(let n in r)if(n==="class")t.class!==r.class&&(t.class=A([t.class,r.class]));else if(n==="style")t.style=qe([t.style,r.style]);else if(vo(n)){let i=t[n],a=r[n];a&&i!==a&&!(ye(i)&&i.includes(a))?t[n]=i?[].concat(i,a):a:a==null&&i==null&&!go(n)&&(t[n]=a)}else n!==""&&(t[n]=r[n])}return t}function It(e,t,s,r=null){bt(e,t,7,[s,r])}var Vu=wi(),qu=0;function Mu(e,t,s){let r=e.type,n=(t?t.appContext:e.appContext)||Vu,i={uid:qu++,vnode:e,type:r,parent:t,appContext:n,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Fo(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(n.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Di(r,n),emitsOptions:ki(r,n),emit:null,emitted:null,propsDefaults:Ie,inheritAttrs:r.inheritAttrs,ctx:Ie,data:Ie,props:Ie,attrs:Ie,slots:Ie,refs:Ie,setupState:Ie,setupContext:null,suspense:s,suspenseId:s?s.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 i.ctx={_:i},i.root=t?t.root:i,i.emit=mu.bind(null,i),e.ce&&e.ce(i),i}var tt=null,Fn=()=>tt||ht,qs,os;{let e=Mo(),t=(s,r)=>{let n;return(n=e[s])||(n=e[s]=[]),n.push(r),i=>{n.length>1?n.forEach(a=>a(i)):n[0](i)}};qs=t("__VUE_INSTANCE_SETTERS__",s=>tt=s),os=t("__VUE_SSR_SETTERS__",s=>Do=s)}var as=e=>{let t=tt;return qs(e),e.scope.on(),()=>{e.scope.off(),qs(t)}},Zr=()=>{tt&&tt.scope.off(),qs(null)};function Ui(e){return e.vnode.shapeFlag&4}var Do=!1;function $u(e,t=!1,s=!1){t&&os(t);let{props:r,children:n}=e.vnode,i=Ui(e);wu(e,r,i,t),_u(e,n,s||t);let a=i?Lu(e,t):void 0;return t&&os(!1),a}function Lu(e,t){let s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,ru);let{setup:r}=s;if(r){At();let n=e.setupContext=r.length>1?Fu(e):null,i=as(e),a=ss(r,e,0,[e.props,n]),u=ln(a);if(Ot(),i(),(u||e.sp)&&!Xo(e)&&Mn(e),u){if(a.then(Zr,Zr),t)return a.then(f=>{os(!0);try{xr(e,f,t)}finally{os(!1)}}).catch(f=>{ns(f,e,0)});e.asyncDep=a}else xr(e,a,t)}else Fi(e,t)}function xr(e,t,s){we(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Te(t)&&(e.setupState=Ss(t)),Fi(e,s)}var ei,ti;function Fi(e,t,s){let r=e.type;if(!e.render){if(!t&&ei&&!r.render){let n=r.template||$n(e).template;if(n){let{isCustomElement:i,compilerOptions:a}=e.appContext.config,{delimiters:u,compilerOptions:f}=r,v=Ge(Ge({isCustomElement:i,delimiters:u},a),f);r.render=ei(n,v)}}e.render=r.render||at,ti&&ti(e)}{let n=as(e);At();try{iu(e)}finally{Ot(),n()}}}var Uu={get(e,t){return xe(e,"get",""),e[t]}};function Fu(e){let t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,Uu),slots:e.slots,emit:e.emit,expose:t}}function Hs(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Ss(Nn(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in Zo)return Zo[s](e)},has(t,s){return s in t||s in Zo}})):e.proxy}function zu(e,t=!0){return we(e)?e.displayName||e.name:e.name||t&&e.__name}function Hu(e){return we(e)&&"__vccOpts"in e}var ot=(e,t)=>$r(e,t,Do);function ke(e,t,s){try{Is(-1);let r=arguments.length;return r===2?Te(t)&&!ye(t)?Ps(t)?Ce(e,null,[t]):Ce(e,t):Ce(e,null,t):(r>3?s=Array.prototype.slice.call(arguments,2):r===3&&Ps(s)&&(s=[s]),Ce(e,t,s))}finally{Is(1)}}var Bu="3.5.42";var jn,zi=typeof window<"u"&&window.trustedTypes;if(zi)try{jn=zi.createPolicy("vue",{createHTML:e=>e})}catch{}var Zi=jn?e=>jn.createHTML(e):e=>e,ju="http://www.w3.org/2000/svg",Gu="http://www.w3.org/1998/Math/MathML",Wt=typeof document<"u"?document:null,Hi=Wt&&Wt.createElement("template"),Wu={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,r)=>{let n=t==="svg"?Wt.createElementNS(ju,e):t==="mathml"?Wt.createElementNS(Gu,e):s?Wt.createElement(e,{is:s}):Wt.createElement(e);return e==="select"&&r&&r.multiple!=null&&n.setAttribute("multiple",r.multiple),n},createText:e=>Wt.createTextNode(e),createComment:e=>Wt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Wt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,r,n,i){let a=s?s.previousSibling:t.lastChild;if(n&&(n===i||n.nextSibling))for(;t.insertBefore(n.cloneNode(!0),s),!(n===i||!(n=n.nextSibling)););else{Hi.innerHTML=Zi(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);let u=Hi.content;if(r==="svg"||r==="mathml"){let f=u.firstChild;for(;f.firstChild;)u.appendChild(f.firstChild);u.removeChild(f)}t.insertBefore(u,s)}return[a?a.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}};var Ku=Symbol("_vtc");function Yu(e,t,s){let r=e[Ku];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}var Gs=Symbol("_vod"),xi=Symbol("_vsh"),W={name:"show",beforeMount(e,{value:t},{transition:s}){e[Gs]=e.style.display==="none"?"":e.style.display,s&&t?s.beforeEnter(e):ls(e,t)},mounted(e,{value:t},{transition:s}){s&&t&&s.enter(e)},updated(e,{value:t,oldValue:s},{transition:r}){!t!=!s&&(r?t?(r.beforeEnter(e),ls(e,!0),r.enter(e)):r.leave(e,()=>{ls(e,!1)}):ls(e,t))},beforeUnmount(e,{value:t}){ls(e,t)}};function ls(e,t){e.style.display=t?e[Gs]:"none",e[xi]=!t}var Ju=Symbol("");var Qu=/(?:^|;)\s*display\s*:/;function Xu(e,t,s){let r=e.style,n=Fe(s),i=!1;if(s&&!n){if(t)if(Fe(t))for(let a of t.split(";")){let u=a.slice(0,a.indexOf(":")).trim();s[u]==null&&ds(r,u,"")}else for(let a in t)s[a]==null&&ds(r,a,"");for(let a in s){a==="display"&&(i=!0);let u=s[a];u!=null?xu(e,a,!Fe(t)&&t?t[a]:void 0,u)||ds(r,a,u):ds(r,a,"")}}else if(n){if(t!==s){let a=r[Ju];a&&(s+=";"+a),r.cssText=s,i=Qu.test(s)}}else t&&e.removeAttribute("style");Gs in e&&(e[Gs]=i?r.display:"",e[xi]&&(r.display="none"))}var Bs=/\s*!important$/;function ds(e,t,s){if(ye(s))s.forEach(r=>ds(e,t,r));else if(s==null&&(s=""),t.startsWith("--"))Bs.test(s)?e.setProperty(t,s.replace(Bs,""),"important"):e.setProperty(t,s);else{let r=Zu(e,t);Bs.test(s)?e.setProperty(St(r),s.replace(Bs,""),"important"):e[r]=s}}var Bi=["Webkit","Moz","ms"],zn={};function Zu(e,t){let s=zn[t];if(s)return s;let r=Je(t);if(r!=="filter"&&r in e)return zn[t]=r;r=xt(r);for(let n=0;n<Bi.length;n++){let i=Bi[n]+r;if(i in e)return zn[t]=i}return t}function xu(e,t,s,r){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&Fe(r)&&s===r}var ji="http://www.w3.org/1999/xlink";function Gi(e,t,s,r,n,i=yr(t)){r&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(ji,t.slice(6,t.length)):e.setAttributeNS(ji,t,s):s==null||i&&!vs(s)?e.removeAttribute(t):e.setAttribute(t,i?"":mt(s)?String(s):s)}function Wi(e,t,s,r,n){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?Zi(s):s);return}let i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){let u=i==="OPTION"?e.getAttribute("value")||"":e.value,f=s==null?e.type==="checkbox"?"on":"":String(s);(u!==f||!("_value"in e))&&(e.value=f),s==null&&e.removeAttribute(t),e._value=s;return}let a=!1;if(s===""||s==null){let u=typeof e[t];u==="boolean"?s=vs(s):s==null&&u==="string"?(s="",a=!0):u==="number"&&(s=0,a=!0)}try{e[t]=s}catch{}a&&e.removeAttribute(n||t)}function lo(e,t,s,r){e.addEventListener(t,s,r)}function ec(e,t,s,r){e.removeEventListener(t,s,r)}var Ki=Symbol("_vei");function tc(e,t,s,r,n=null){let i=e[Ki]||(e[Ki]={}),a=i[t];if(r&&a)a.value=r;else{let[u,f]=nc(t);if(r){let v=i[t]=ac(r,n);lo(e,u,v,f)}else a&&(ec(e,u,a,f),i[t]=void 0)}}var oc=/(Once|Passive|Capture)$/,sc=/^on:?(?:Once|Passive|Capture)$/;function nc(e){let t,s;for(;(s=e.match(oc))&&!sc.test(e);)t||(t={}),e=e.slice(0,e.length-s[1].length),t[s[1].toLowerCase()]=!0;return[e[2]===":"?e.slice(3):St(e.slice(2)),t]}var Hn=0,rc=Promise.resolve(),ic=()=>Hn||(rc.then(()=>Hn=0),Hn=Date.now());function ac(e,t){let s=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=s.attached)return;let n=s.value;if(ye(n)){let i=r.stopImmediatePropagation;r.stopImmediatePropagation=()=>{i.call(r),r._stopped=!0};let a=n.slice(),u=[r];for(let f=0;f<a.length&&!r._stopped;f++){let v=a[f];v&&bt(v,t,5,u)}}else bt(n,t,5,[r])};return s.value=e,s.attached=ic(),s}var Yi=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,lc=(e,t,s,r,n,i)=>{let a=n==="svg";t==="class"?Yu(e,r,a):t==="style"?Xu(e,s,r):vo(t)?go(t)||tc(e,t,s,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):dc(e,t,r,a))?(Wi(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Gi(e,t,r,a,i,t!=="value")):e._isVueCE&&(uc(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!Fe(r)))?Wi(e,Je(t),r,i,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Gi(e,t,r,a))};function dc(e,t,s,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Yi(t)&&we(s));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 n=e.tagName;if(n==="IMG"||n==="VIDEO"||n==="CANVAS"||n==="SOURCE")return!1}return Yi(t)&&Fe(s)?!1:t in e}function uc(e,t){let s=e._def.props;if(!s)return!1;let r=Je(t);return Array.isArray(s)?s.some(n=>Je(n)===r):Object.keys(s).some(n=>Je(n)===r)}var Ws=e=>{let t=e.props["onUpdate:modelValue"]||!1;return ye(t)?s=>bo(t,s):t};function cc(e){e.target.composing=!0}function Ji(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}var uo=Symbol("_assign"),js=Symbol("_initialValue");function Bn(e,t,s){return t&&(e=e.trim()),s&&(e=wo(e)),e}var ea={created(e,{modifiers:{lazy:t,trim:s,number:r}},n){e.parentNode&&(e.type==="text"?e[js]=e.defaultValue.replace(/[\r\n]/g,""):e.type==="textarea"&&(e[js]=e.defaultValue.replace(/\r\n?/g,`
`))),e[uo]=Ws(n);let i=r||n.props&&n.props.type==="number";lo(e,t?"change":"input",a=>{a.target.composing||e[uo](Bn(e.value,s,i))}),(s||i)&&lo(e,"change",()=>{e.value=Bn(e.value,s,i)}),t||(lo(e,"compositionstart",cc),lo(e,"compositionend",Ji),lo(e,"change",Ji))},mounted(e,{value:t,modifiers:{trim:s,number:r}}){let n=t??"",i=e[js];delete e[js],i!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==i?e[uo](Bn(e.value,s,r)):e.value=n},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:r,trim:n,number:i}},a){if(e[uo]=Ws(a),e.composing)return;let u=(i||e.type==="number")&&!/^0\d/.test(e.value)?wo(e.value):e.value,f=t??"";if(u===f)return;let v=e.getRootNode();(v instanceof Document||v instanceof ShadowRoot)&&v.activeElement===e&&e.type!=="range"&&(r&&t===s||n&&e.value.trim()===f)||(e.value=f)}};var ta={deep:!0,created(e,{value:t,modifiers:{number:s}},r){e._modelValue=t,lo(e,"change",()=>{let n=Array.prototype.filter.call(e.options,f=>f.selected).map(f=>s?wo(Ks(f)):Ks(f)),i=e.multiple,a=i?Ut(e._modelValue)?new Set(n):n:n[0],u=e._pendingValue=[i,i?ye(a)?n.slice():n:a];try{e[uo](a)}finally{st(()=>{e._pendingValue===u&&(e._pendingValue=void 0)})}}),e[uo]=Ws(r)},mounted(e,{value:t}){Qi(e,t)},beforeUpdate(e,{value:t},s){e._modelValue=t,e[uo]=Ws(s)},updated(e,{value:t}){let s=e._pendingValue;e._pendingValue=void 0,(!s||s[0]!==e.multiple||!pc(t,s[1],s[0]))&&Qi(e,t)}};function pc(e,t,s){if(!s)return Nt(e,t);if(ye(e))return Nt(e,t);if(Ut(e)){if(e.size!==t.length)return!1;for(let r of t)if(!e.has(r))return!1;return!0}return!1}function Qi(e,t){let s=e.multiple,r=ye(t);if(!(s&&!r&&!Ut(t))){for(let n=0,i=e.options.length;n<i;n++){let a=e.options[n],u=Ks(a);if(s)if(r){let f=typeof u;f==="string"||f==="number"?a.selected=t.some(v=>String(v)===String(u)):a.selected=br(t,u)>-1}else a.selected=t.has(u);else if(Nt(Ks(a),t)){e.selectedIndex!==n&&(e.selectedIndex=n);return}}!s&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Ks(e){return"_value"in e?e._value:e.value}var fc=["ctrl","shift","alt","meta"],mc={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)=>fc.some(s=>e[`${s}Key`]&&!t.includes(s))},me=(e,t)=>{if(!e)return e;let s=e._withMods||(e._withMods={}),r=t.join(".");return s[r]||(s[r]=((n,...i)=>{for(let a=0;a<t.length;a++){let u=mc[t[a]];if(u&&u(n,t))return}return e(n,...i)}))},hc={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Ro=(e,t)=>{let s=e._withKeys||(e._withKeys={}),r=t.join(".");return s[r]||(s[r]=(n=>{if(!("key"in n))return;let i=St(n.key);if(t.some(a=>a===i||hc[a]===i))return e(n)}))},vc=Ge({patchProp:lc},Wu),Xi;function gc(){return Xi||(Xi=Oi(vc))}var oa=((...e)=>{let t=gc().createApp(...e),{mount:s}=t;return t.mount=r=>{let n=bc(r);if(!n)return;let i=t._component;!we(i)&&!i.render&&!i.template&&(i.template=n.innerHTML),n.nodeType===1&&(n.textContent="");let a=s(n,!1,yc(n));return n instanceof Element&&(n.removeAttribute("v-cloak"),n.setAttribute("data-v-app","")),a},t});function yc(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function bc(e){return Fe(e)?document.querySelector(e):e}var fo=typeof document<"u";function na(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function wc(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&na(e.default)}var Ae=Object.assign;function Ys(e,t){let s={};for(let r in t){let n=t[r];s[r]=wt(n)?n.map(e):e(n)}return s}var Ao=()=>{},wt=Array.isArray;function Kn(e,t){let s={};for(let r in e)s[r]=r in t?t[r]:e[r];return s}var ra=/#/g,kc=/&/g,Ec=/\//g,Cc=/=/g,_c=/\?/g,ia=/\+/g,Sc=/%5B/g,Nc=/%5D/g,aa=/%5E/g,Dc=/%60/g,la=/%7B/g,Rc=/%7C/g,da=/%7D/g,Tc=/%20/g;function Yn(e){return e==null?"":encodeURI(""+e).replace(Rc,"|").replace(Sc,"[").replace(Nc,"]")}function ua(e){return Yn(e).replace(la,"{").replace(da,"}").replace(aa,"^")}function Gn(e){return Yn(e).replace(ia,"%2B").replace(Tc,"+").replace(ra,"%23").replace(kc,"%26").replace(Dc,"`").replace(la,"{").replace(da,"}").replace(aa,"^")}function Ac(e){return Gn(e).replace(Cc,"%3D")}function Oc(e){return Yn(e).replace(ra,"%23").replace(_c,"%3F")}function ca(e){return Oc(e).replace(Ec,"%2F")}function To(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}var Ic=/\/$/,Pc=e=>e.replace(Ic,"");function Js(e,t,s="/"){let r,n={},i="",a="",u=t.indexOf("#"),f=t.indexOf("?");return f=u>=0&&f>u?-1:f,f>=0&&(r=t.slice(0,f),i=t.slice(f,u>0?u:t.length),n=e(i.slice(1))),u>=0&&(r=r||t.slice(0,u),a=t.slice(u,t.length)),r=qc(r??t,s),{fullPath:r+i+a,path:r,query:n,hash:To(a)}}function pa(e,t){let s=t.query?e(t.query):"";return t.path+(s&&"?")+s+(t.hash||"")}function Jn(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function fa(e,t,s){let r=t.matched.length-1,n=s.matched.length-1;return r>-1&&r===n&&co(t.matched[r],s.matched[n])&&Qn(t.params,s.params)&&e(t.query)===e(s.query)&&t.hash===s.hash}function co(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Qn(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var s in e)if(!Vc(e[s],t[s]))return!1;return!0}function Vc(e,t){return wt(e)?sa(e,t):wt(t)?sa(t,e):e?.valueOf()===t?.valueOf()}function sa(e,t){return wt(t)?e.length===t.length&&e.every((s,r)=>s===t[r]):e.length===1&&e[0]===t}function qc(e,t){if(e.startsWith("/"))return e;if(!e)return t;let s=t.split("/"),r=e.split("/"),n=r[r.length-1];(n===".."||n===".")&&r.push("");let i=s.length-1,a,u;for(a=0;a<r.length;a++)if(u=r[a],u!==".")if(u==="..")i>1&&i--;else break;return s.slice(0,i).join("/")+"/"+r.slice(a).join("/")}var Yt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Qs=(function(e){return e.pop="pop",e.push="push",e})({}),Xs=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function ma(e){if(!e)if(fo){let t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Pc(e)}var Mc=/^[^#]+#/;function ha(e,t){return e.replace(Mc,"#")+t}function $c(e,t){let s=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-s.left-(t.left||0),top:r.top-s.top-(t.top||0)}}var us=()=>({left:window.scrollX,top:window.scrollY});function va(e){let t;if("el"in e){let s=e.el,r=typeof s=="string"&&s.startsWith("#"),n=typeof s=="string"?r?document.getElementById(s.slice(1)):document.querySelector(s):s;if(!n)return;t=$c(n,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 Xn(e,t){return(history.state?history.state.position-t:-1)+e}var Wn=new Map;function ga(e,t){Wn.set(e,t)}function ya(e){let t=Wn.get(e);return Wn.delete(e),t}function Lc(e){return typeof e=="string"||e&&typeof e=="object"}function Zn(e){return typeof e=="string"||typeof e=="symbol"}var je=(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})({}),ba=Symbol("");var V6={[je.MATCHER_NOT_FOUND]({location:e,currentLocation:t}){return`No match for
${JSON.stringify(e)}${t?`
while being at
`+JSON.stringify(t):""}`},[je.NAVIGATION_GUARD_REDIRECT]({from:e,to:t}){return`Redirected from "${e.fullPath}" to "${Fc(t)}" via a navigation guard.`},[je.NAVIGATION_ABORTED]({from:e,to:t}){return`Navigation aborted from "${e.fullPath}" to "${t.fullPath}" via a navigation guard.`},[je.NAVIGATION_CANCELLED]({from:e,to:t}){return`Navigation cancelled from "${e.fullPath}" to "${t.fullPath}" with a new navigation.`},[je.NAVIGATION_DUPLICATED]({from:e,to:t}){return`Avoided redundant navigation to current location: "${e.fullPath}".`}};function po(e,t){return Ae(new Error,{type:e,[ba]:!0},t)}function $t(e,t){return e instanceof Error&&ba in e&&(t==null||!!(e.type&t))}var Uc=["params","query","hash"];function Fc(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;let t={};for(let s of Uc)s in e&&(t[s]=e[s]);return JSON.stringify(t,null,2)}function wa(e){let t={};if(e===""||e==="?")return t;let s=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;r<s.length;++r){let n=s[r].replace(ia," "),i=n.indexOf("="),a=To(i<0?n:n.slice(0,i)),u=i<0?null:To(n.slice(i+1));if(a in t){let f=t[a];wt(f)||(f=t[a]=[f]),f.push(u)}else t[a]=u}return t}function xn(e){let t="";for(let s in e){let r=e[s];if(s=Ac(s),r==null){r!==void 0&&(t+=(t.length?"&":"")+s);continue}(wt(r)?r.map(n=>n&&Gn(n)):[r&&Gn(r)]).forEach(n=>{n!==void 0&&(t+=(t.length?"&":"")+s,n!=null&&(t+="="+n))})}return t}function ka(e){let t={};for(let s in e){let r=e[s];r!==void 0&&(t[s]=wt(r)?r.map(n=>n==null?null:""+n):r==null?r:""+r)}return t}var Ea=Symbol(""),er=Symbol(""),Zs=Symbol(""),xs=Symbol(""),en=Symbol("");function Oo(){let e=[];function t(r){return e.push(r),()=>{let n=e.indexOf(r);n>-1&&e.splice(n,1)}}function s(){e=[]}return{add:t,list:()=>e.slice(),reset:s}}function Kt(e,t,s,r,n,i=a=>a()){let a=r&&(r.enterCallbacks[n]=r.enterCallbacks[n]||[]);return()=>new Promise((u,f)=>{let v=m=>{m===!1?f(po(je.NAVIGATION_ABORTED,{from:s,to:t})):m instanceof Error?f(m):Lc(m)?f(po(je.NAVIGATION_GUARD_REDIRECT,{from:t,to:m})):(a&&r.enterCallbacks[n]===a&&typeof m=="function"&&a.push(m),u())},h=i(()=>e.call(r&&r.instances[n],t,s,v)),k=Promise.resolve(h);e.length<3&&(k=k.then(v)),k.catch(m=>f(m))})}function tn(e,t,s,r,n=i=>i()){let i=[];for(let a of e)for(let u in a.components){let f=a.components[u];if(!(t!=="beforeRouteEnter"&&!a.instances[u]))if(na(f)){let v=(f.__vccOpts||f)[t];v&&i.push(Kt(v,s,r,a,u,n))}else{let v=f();i.push(()=>v.then(h=>{if(!h)throw new Error(`Couldn't resolve component "${u}" at "${a.path}"`);let k=wc(h)?h.default:h;a.mods[u]=h,a.components[u]=k;let m=(k.__vccOpts||k)[t];return m&&Kt(m,s,r,a,u,n)()}))}}return i}function Ca(e,t){let s=[],r=[],n=[],i=Math.max(t.matched.length,e.matched.length);for(let a=0;a<i;a++){let u=t.matched[a];u&&(e.matched.find(v=>co(v,u))?r.push(u):s.push(u));let f=e.matched[a];f&&(t.matched.find(v=>co(v,f))||n.push(f))}return[s,r,n]}var zc=()=>location.protocol+"//"+location.host;function Va(e,t){let{pathname:s,search:r,hash:n}=t,i=e.indexOf("#");if(i>-1){let a=n.includes(e.slice(i))?e.slice(i).length:1,u=n.slice(a);return u[0]!=="/"&&(u="/"+u),Jn(u,"")}return Jn(s,e)+r+n}function Hc(e,t,s,r){let n=[],i=[],a=null,u=({state:m})=>{let E=Va(e,location),y=s.value,w=t.value,D=0;if(m){if(s.value=E,t.value=m,a&&a===y){a=null;return}D=w?m.position-w.position:0}else r(E);n.forEach(R=>{R(s.value,y,{delta:D,type:Qs.pop,direction:D?D>0?Xs.forward:Xs.back:Xs.unknown})})};function f(){a=s.value}function v(m){n.push(m);let E=()=>{let y=n.indexOf(m);y>-1&&n.splice(y,1)};return i.push(E),E}function h(){if(document.visibilityState==="hidden"){let{history:m}=window;if(!m.state)return;m.replaceState(Ae({},m.state,{scroll:us()}),"")}}function k(){for(let m of i)m();i=[],window.removeEventListener("popstate",u),window.removeEventListener("pagehide",h),document.removeEventListener("visibilitychange",h)}return window.addEventListener("popstate",u),window.addEventListener("pagehide",h),document.addEventListener("visibilitychange",h),{pauseListeners:f,listen:v,destroy:k}}function _a(e,t,s,r=!1,n=!1){return{back:e,current:t,forward:s,replaced:r,position:window.history.length,scroll:n?us():null}}function Bc(e){let{history:t,location:s}=window,r={value:Va(e,s)},n={value:t.state};n.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(f,v,h){let k=e.indexOf("#"),m=k>-1?(s.host&&document.querySelector("base")?e:e.slice(k))+f:zc()+e+f;try{t[h?"replaceState":"pushState"](v,"",m),n.value=v}catch(E){console.error(E),s[h?"replace":"assign"](m)}}function a(f,v){i(f,Ae({},t.state,_a(n.value.back,f,n.value.forward,!0),v,{position:n.value.position}),!0),r.value=f}function u(f,v){let h=Ae({},n.value,t.state,{forward:f,scroll:us()});i(h.current,h,!0),i(f,Ae({},_a(r.value,f,null),{position:h.position+1},v),!1),r.value=f}return{location:r,state:n,push:u,replace:a}}function qa(e){e=ma(e);let t=Bc(e),s=Hc(e,t.state,t.location,t.replace);function r(i,a=!0){a||s.pauseListeners(),history.go(i)}let n=Ae({location:"",base:e,go:r,createHref:ha.bind(null,e)},t,s);return Object.defineProperty(n,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(n,"state",{enumerable:!0,get:()=>t.state.value}),n}var mo=(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||{}),jc={type:mo.Static,value:""},Gc=/[a-zA-Z0-9_]/;function Wc(e){if(!e)return[[]];if(e==="/")return[[jc]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(E){throw new Error(`ERR (${s})/"${v}": ${E}`)}let s=Xe.Static,r=s,n=[],i;function a(){i&&n.push(i),i=[]}let u=0,f,v="",h="";function k(){v&&(s===Xe.Static?i.push({type:mo.Static,value:v}):s===Xe.Param||s===Xe.ParamRegExp||s===Xe.ParamRegExpEnd?(i.length>1&&(f==="*"||f==="+")&&t(`A repeatable param (${v}) must be alone in its segment. eg: '/:ids+.`),i.push({type:mo.Param,value:v,regexp:h,repeatable:f==="*"||f==="+",optional:f==="*"||f==="?"})):t("Invalid state to consume buffer"),v="")}function m(){v+=f}for(;u<e.length;){if(f=e[u++],f==="\\"&&s!==Xe.ParamRegExp){r=s,s=Xe.EscapeNext;continue}switch(s){case Xe.Static:f==="/"?(v&&k(),a()):f===":"?(k(),s=Xe.Param):m();break;case Xe.EscapeNext:m(),s=r;break;case Xe.Param:f==="("?s=Xe.ParamRegExp:Gc.test(f)?m():(k(),s=Xe.Static,f!=="*"&&f!=="?"&&f!=="+"&&u--);break;case Xe.ParamRegExp:f===")"?h[h.length-1]=="\\"?h=h.slice(0,-1)+f:s=Xe.ParamRegExpEnd:h+=f;break;case Xe.ParamRegExpEnd:k(),s=Xe.Static,f!=="*"&&f!=="?"&&f!=="+"&&u--,h="";break;default:t("Unknown state");break}}return s===Xe.ParamRegExp&&t(`Unfinished custom RegExp for param "${v}"`),k(),a(),n}var Sa="[^/]+?",Kc={sensitive:!1,strict:!1,start:!0,end:!0},it=(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})(it||{}),Yc=/[.+*?^${}()[\]/\\]/g;function Jc(e,t){let s=Ae({},Kc,t),r=[],n=s.start?"^":"",i=[];for(let v of e){let h=v.length?[]:[it.Root];s.strict&&!v.length&&(n+="/");for(let k=0;k<v.length;k++){let m=v[k],E=it.Segment+(s.sensitive?it.BonusCaseSensitive:0);if(m.type===mo.Static)k||(n+="/"),n+=m.value.replace(Yc,"\\$&"),E+=it.Static;else if(m.type===mo.Param){let{value:y,repeatable:w,optional:D,regexp:R}=m;i.push({name:y,repeatable:w,optional:D});let T=R||Sa;if(T!==Sa){E+=it.BonusCustomRegExp;try{`${T}`}catch(H){throw new Error(`Invalid custom RegExp for param "${y}" (${T}): `+H.message)}}let I=w?`((?:${T})(?:/(?:${T}))*)`:`(${T})`;k||(I=D&&v.length<2?`(?:/${I})`:"/"+I),D&&(I+="?"),n+=I,E+=it.Dynamic,D&&(E+=it.BonusOptional),w&&(E+=it.BonusRepeatable),T===".*"&&(E+=it.BonusWildcard)}h.push(E)}r.push(h)}if(s.strict&&s.end){let v=r.length-1;r[v][r[v].length-1]+=it.BonusStrict}s.strict||(n+="/?"),s.end?n+="$":s.strict&&!n.endsWith("/")&&(n+="(?:/|$)");let a=new RegExp(n,s.sensitive?"":"i");function u(v){let h=v.match(a),k={};if(!h)return null;for(let m=1;m<h.length;m++){let E=h[m]||"",y=i[m-1];k[y.name]=E&&y.repeatable?E.split("/"):E}return k}function f(v){let h="",k=!1;for(let m of e){(!k||!h.endsWith("/"))&&(h+="/"),k=!1;for(let E of m)if(E.type===mo.Static)h+=E.value;else if(E.type===mo.Param){let{value:y,repeatable:w,optional:D}=E,R=y in v?v[y]:"";if(wt(R)&&!w)throw new Error(`Provided param "${y}" is an array but it is not repeatable (* or + modifiers)`);let T=wt(R)?R.join("/"):R;if(!T)if(D)m.length<2&&(h.endsWith("/")?h=h.slice(0,-1):k=!0);else throw new Error(`Missing required param "${y}"`);h+=T}}return h||"/"}return{re:a,score:r,keys:i,parse:u,stringify:f}}function Qc(e,t){let s=0;for(;s<e.length&&s<t.length;){let r=t[s]-e[s];if(r)return r;s++}return e.length<t.length?e.length===1&&e[0]===it.Static+it.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===it.Static+it.Segment?1:-1:0}function Ma(e,t){let s=0,r=e.score,n=t.score;for(;s<r.length&&s<n.length;){let i=Qc(r[s],n[s]);if(i)return i;s++}if(Math.abs(n.length-r.length)===1){if(Na(r))return 1;if(Na(n))return-1}return n.length-r.length}function Na(e){let t=e[e.length-1];return e.length>0&&t[t.length-1]<0}var Xc={strict:!1,end:!0,sensitive:!1};function Zc(e,t,s){let r=Jc(Wc(e.path),s),n=Ae(r,{record:e,parent:t,children:[],alias:[]});return t&&!n.record.aliasOf==!t.record.aliasOf&&t.children.push(n),n}function xc(e,t){let s=[],r=new Map;t=Kn(Xc,t);function n(k){return r.get(k)}function i(k,m,E){let y=!E,w=Ra(k);w.aliasOf=E&&E.record;let D=Kn(t,k),R=[w];if("alias"in k){let H=typeof k.alias=="string"?[k.alias]:k.alias;for(let q of H)R.push(Ra(Ae({},w,{components:E?E.record.components:w.components,path:q,aliasOf:E?E.record:w})))}let T,I;for(let H of R){let{path:q}=H;if(m&&q[0]!=="/"){let U=m.record.path,ae=U[U.length-1]==="/"?"":"/";H.path=m.record.path+(q&&ae+q)}if(T=Zc(H,m,D),E?E.alias.push(T):(I=I||T,I!==T&&I.alias.push(T),y&&k.name&&!Ta(T)&&a(k.name)),$a(T)&&f(T),w.children){let U=w.children;for(let ae=0;ae<U.length;ae++)i(U[ae],T,E&&E.children[ae])}E=E||T}return I?()=>{a(I)}:Ao}function a(k){if(Zn(k)){let m=r.get(k);m&&(r.delete(k),s.splice(s.indexOf(m),1),m.children.forEach(a),m.alias.forEach(a))}else{let m=s.indexOf(k);m>-1&&(s.splice(m,1),k.record.name&&r.delete(k.record.name),k.children.forEach(a),k.alias.forEach(a))}}function u(){return s}function f(k){let m=op(k,s);s.splice(m,0,k),k.record.name&&!Ta(k)&&r.set(k.record.name,k)}function v(k,m){let E,y={},w,D;if("name"in k&&k.name){if(E=r.get(k.name),!E)throw po(je.MATCHER_NOT_FOUND,{location:k});D=E.record.name,y=Ae(Da(m.params,E.keys.filter(I=>!I.optional).concat(E.parent?E.parent.keys.filter(I=>I.optional):[]).map(I=>I.name)),k.params&&Da(k.params,E.keys.map(I=>I.name))),w=E.stringify(y)}else if(k.path!=null)w=k.path,E=s.find(I=>I.re.test(w)),E&&(y=E.parse(w),D=E.record.name);else{if(E=m.name?r.get(m.name):s.find(I=>I.re.test(m.path)),!E)throw po(je.MATCHER_NOT_FOUND,{location:k,currentLocation:m});D=E.record.name,y=Ae({},m.params,k.params),w=E.stringify(y)}let R=[],T=E;for(;T;)R.unshift(T.record),T=T.parent;return{name:D,path:w,params:y,matched:R,meta:tp(R)}}e.forEach(k=>i(k));function h(){s.length=0,r.clear()}return{addRoute:i,resolve:v,removeRoute:a,clearRoutes:h,getRoutes:u,getRecordMatcher:n}}function Da(e,t){let s={};for(let r of t)r in e&&(s[r]=e[r]);return s}function Ra(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:ep(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 ep(e){let t={},s=e.props||!1;if("component"in e)t.default=s;else for(let r in e.components)t[r]=typeof s=="object"?s[r]:s;return t}function Ta(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function tp(e){return e.reduce((t,s)=>Ae(t,s.meta),{})}function op(e,t){let s=0,r=t.length;for(;s!==r;){let i=s+r>>1;Ma(e,t[i])<0?r=i:s=i+1}let n=sp(e);return n&&(r=t.lastIndexOf(n,r-1)),r}function sp(e){let t=e;for(;t=t.parent;)if($a(t)&&Ma(e,t)===0)return t}function $a({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Aa(e){let t=ut(Zs),s=ut(xs),r=!1,n=null,i=ot(()=>{let h=Ht(e.to);return t.resolve(h)}),a=ot(()=>{let{matched:h}=i.value,{length:k}=h,m=h[k-1],E=s.matched;if(!m||!E.length)return-1;let y=E.findIndex(co.bind(null,m));if(y>-1)return y;let w=Oa(h[k-2]);return k>1&&Oa(m)===w&&E[E.length-1].path!==w?E.findIndex(co.bind(null,h[k-2])):y}),u=ot(()=>a.value>-1&&lp(s.params,i.value.params)),f=ot(()=>a.value>-1&&a.value===s.matched.length-1&&Qn(s.params,i.value.params));function v(h={}){if(ap(h)){let k=t[Ht(e.replace)?"replace":"push"](Ht(e.to)).catch(Ao);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>k),k}return Promise.resolve()}return{route:i,href:ot(()=>i.value.href),isActive:u,isExactActive:f,navigate:v}}function np(e){return e.length===1?e[0]:e}var rp=rs({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:Aa,setup(e,{slots:t}){let s=ze(Aa(e)),{options:r}=ut(Zs),n=ot(()=>({[Ia(e.activeClass,r.linkActiveClass,"router-link-active")]:s.isActive,[Ia(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:s.isExactActive}));return()=>{let i=t.default&&np(t.default(s));return e.custom?i:ke("a",{"aria-current":s.isExactActive?e.ariaCurrentValue:null,href:s.href,onClick:s.navigate,class:n.value},i)}}}),ip=rp;function ap(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 lp(e,t){for(let s in t){let r=t[s],n=e[s];if(typeof r=="string"){if(r!==n)return!1}else if(!wt(n)||n.length!==r.length||r.some((i,a)=>i.valueOf()!==n[a].valueOf()))return!1}return!0}function Oa(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}var Ia=(e,t,s)=>e??t??s,dp=rs({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:s}){let r=ut(en),n=ot(()=>e.route||r.value),i=ut(er,0),a=ot(()=>{let v=Ht(i),{matched:h}=n.value,k;for(;(k=h[v])&&!k.components;)v++;return v}),u=ot(()=>n.value.matched[a.value]);io(er,ot(()=>a.value+1)),io(Ea,u),io(en,n);let f=et();return Be(()=>[f.value,u.value,e.name],([v,h,k],[m,E,y])=>{h&&(h.instances[k]=v,E&&E!==h&&v&&v===m&&(h.leaveGuards.size||(h.leaveGuards=E.leaveGuards),h.updateGuards.size||(h.updateGuards=E.updateGuards))),v&&h&&(!E||!co(h,E)||!m)&&(h.enterCallbacks[k]||[]).forEach(w=>w(v))},{flush:"post"}),()=>{let v=n.value,h=e.name,k=u.value,m=k&&k.components[h];if(!m)return Pa(s.default,{Component:m,route:v});let E=k.props[h],y=E?E===!0?v.params:typeof E=="function"?E(v):E:null,D=ke(m,Ae({},y,t,{onVnodeUnmounted:R=>{R.component.isUnmounted&&(k.instances[h]=null)},ref:f}));return Pa(s.default,{Component:D,route:v})||D}}});function Pa(e,t){if(!e)return null;let s=e(t);return s.length===1?s[0]:s}var tr=dp;function La(e){let t=xc(e.routes,e),s=e.parseQuery||wa,r=e.stringifyQuery||xn,n=e.history,i=Oo(),a=Oo(),u=Oo(),f=_s(Yt),v=Yt;fo&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");let h=Ys.bind(null,F=>""+F),k=Ys.bind(null,ca),m=Ys.bind(null,To);function E(F,oe){let Q,C;return Zn(F)?(Q=t.getRecordMatcher(F),C=oe):C=F,t.addRoute(C,Q)}function y(F){let oe=t.getRecordMatcher(F);oe&&t.removeRoute(oe)}function w(){return t.getRoutes().map(F=>F.record)}function D(F){return!!t.getRecordMatcher(F)}function R(F,oe){if(oe=Ae({},oe||f.value),typeof F=="string"){let g=Js(s,F,oe.path),S=t.resolve({path:g.path},oe),V=n.createHref(g.fullPath);return Ae(g,S,{params:m(S.params),hash:To(g.hash),redirectedFrom:void 0,href:V})}let Q;if(F.path!=null)Q=Ae({},F,{path:Js(s,F.path,oe.path).path});else{let g=Ae({},F.params);for(let S in g)g[S]==null&&delete g[S];Q=Ae({},F,{params:k(g)}),oe.params=k(oe.params)}let C=t.resolve(Q,oe),P=F.hash||"";C.params=h(m(C.params));let B=pa(r,Ae({},F,{hash:ua(P),path:C.path})),M=n.createHref(B);return Ae({fullPath:B,hash:P,query:r===xn?ka(F.query):F.query||{}},C,{redirectedFrom:void 0,href:M})}function T(F){return typeof F=="string"?Js(s,F,f.value.path):Ae({},F)}function I(F,oe){if(v!==F)return po(je.NAVIGATION_CANCELLED,{from:oe,to:F})}function H(F){return ae(F)}function q(F){return H(Ae(T(F),{replace:!0}))}function U(F,oe){let Q=F.matched[F.matched.length-1];if(Q&&Q.redirect){let{redirect:C}=Q,P=typeof C=="function"?C(F,oe):C;return typeof P=="string"&&(P=P.includes("?")||P.includes("#")?P=T(P):{path:P},P.params={}),Ae({query:F.query,hash:F.hash,params:P.path!=null?{}:F.params},P)}}function ae(F,oe){let Q=v=R(F),C=f.value,P=F.state,B=F.force,M=F.replace===!0,g=U(Q,C);if(g)return ae(Ae(T(g),{state:typeof g=="object"?Ae({},P,g.state):P,force:B,replace:M}),oe||Q);let S=Q;S.redirectedFrom=oe;let V;return!B&&fa(r,C,Q)&&(V=po(je.NAVIGATION_DUPLICATED,{to:S,from:C}),Ue(C,C,!0,!1)),(V?Promise.resolve(V):O(S,C)).catch(z=>$t(z)?$t(z,je.NAVIGATION_GUARD_REDIRECT)?z:_e(z):le(z,S,C)).then(z=>{if(z){if($t(z,je.NAVIGATION_GUARD_REDIRECT))return ae(Ae({replace:M},T(z.to),{state:typeof z.to=="object"?Ae({},P,z.to.state):P,force:B}),oe||S)}else z=Z(S,C,!0,M,P);return Y(S,C,z),z})}function ie(F,oe){let Q=I(F,oe);return Q?Promise.reject(Q):Promise.resolve()}function _(F){let oe=Pe.values().next().value;return oe&&typeof oe.runWithContext=="function"?oe.runWithContext(F):F()}function O(F,oe){let Q,[C,P,B]=Ca(F,oe);Q=tn(C.reverse(),"beforeRouteLeave",F,oe);for(let g of C)g.leaveGuards.forEach(S=>{Q.push(Kt(S,F,oe))});let M=ie.bind(null,F,oe);return Q.push(M),Ee(Q).then(()=>{Q=[];for(let g of i.list())Q.push(Kt(g,F,oe));return Q.push(M),Ee(Q)}).then(()=>{Q=tn(P,"beforeRouteUpdate",F,oe);for(let g of P)g.updateGuards.forEach(S=>{Q.push(Kt(S,F,oe))});return Q.push(M),Ee(Q)}).then(()=>{Q=[];for(let g of B)if(g.beforeEnter)if(wt(g.beforeEnter))for(let S of g.beforeEnter)Q.push(Kt(S,F,oe));else Q.push(Kt(g.beforeEnter,F,oe));return Q.push(M),Ee(Q)}).then(()=>(F.matched.forEach(g=>g.enterCallbacks={}),Q=tn(B,"beforeRouteEnter",F,oe,_),Q.push(M),Ee(Q))).then(()=>{Q=[];for(let g of a.list())Q.push(Kt(g,F,oe));return Q.push(M),Ee(Q)}).catch(g=>$t(g,je.NAVIGATION_CANCELLED)?g:Promise.reject(g))}function Y(F,oe,Q){u.list().forEach(C=>_(()=>C(F,oe,Q)))}function Z(F,oe,Q,C,P){let B=I(F,oe);if(B)return B;let M=oe===Yt,g=fo?history.state:{};Q&&(C||M?n.replace(F.fullPath,Ae({scroll:M&&g&&g.scroll},P)):n.push(F.fullPath,P)),f.value=F,Ue(F,oe,Q,M),_e()}let te;function J(){te||(te=n.listen((F,oe,Q)=>{if(!He.listening)return;let C=R(F),P=U(C,He.currentRoute.value);if(P){ae(Ae(P,{replace:!0,force:!0}),C).catch(Ao);return}v=C;let B=f.value;fo&&ga(Xn(B.fullPath,Q.delta),us()),O(C,B).catch(M=>$t(M,je.NAVIGATION_ABORTED|je.NAVIGATION_CANCELLED)?M:$t(M,je.NAVIGATION_GUARD_REDIRECT)?(ae(Ae(T(M.to),{force:!0}),C).then(g=>{$t(g,je.NAVIGATION_ABORTED|je.NAVIGATION_DUPLICATED)&&!Q.delta&&Q.type===Qs.pop&&n.go(-1,!1)}).catch(Ao),Promise.reject()):(Q.delta&&n.go(-Q.delta,!1),le(M,C,B))).then(M=>{M=M||Z(C,B,!1),M&&(Q.delta&&!$t(M,je.NAVIGATION_CANCELLED)?n.go(-Q.delta,!1):Q.type===Qs.pop&&$t(M,je.NAVIGATION_ABORTED|je.NAVIGATION_DUPLICATED)&&n.go(-1,!1)),Y(C,B,M)}).catch(Ao)}))}let se=Oo(),ue=Oo(),pe;function le(F,oe,Q){_e(F);let C=ue.list();return C.length?C.forEach(P=>P(F,oe,Q)):console.error(F),Promise.reject(F)}function Oe(){return pe&&f.value!==Yt?Promise.resolve():new Promise((F,oe)=>{se.add([F,oe])})}function _e(F){return pe||(pe=!F,J(),se.list().forEach(([oe,Q])=>F?Q(F):oe()),se.reset()),F}function Ue(F,oe,Q,C){let{scrollBehavior:P}=e;if(!fo||!P)return Promise.resolve();let B=!Q&&ya(Xn(F.fullPath,0))||(C||!Q)&&history.state&&history.state.scroll||null;return st().then(()=>P(F,oe,B)).then(M=>M&&va(M)).catch(M=>le(M,F,oe))}let Re=F=>n.go(F),$e,Pe=new Set,He={currentRoute:f,listening:!0,addRoute:E,removeRoute:y,clearRoutes:t.clearRoutes,hasRoute:D,getRoutes:w,resolve:R,options:e,push:H,replace:q,go:Re,back:()=>Re(-1),forward:()=>Re(1),beforeEach:i.add,beforeResolve:a.add,afterEach:u.add,onError:ue.add,isReady:Oe,install(F){F.component("RouterLink",ip),F.component("RouterView",tr),F.config.globalProperties.$router=He,Object.defineProperty(F.config.globalProperties,"$route",{enumerable:!0,get:()=>Ht(f)}),fo&&!$e&&f.value===Yt&&($e=!0,H(n.location).catch(C=>{}));let oe={};for(let C in Yt)Object.defineProperty(oe,C,{get:()=>f.value[C],enumerable:!0});F.provide(Zs,He),F.provide(xs,Wo(oe)),F.provide(en,f);let Q=F.unmount;Pe.add(F),F.unmount=function(){Pe.delete(F),Pe.size<1&&(v=Yt,te&&te(),te=null,f.value=Yt,$e=!1,pe=!1),Q()}}};function Ee(F){return F.reduce((oe,Q)=>oe.then(()=>_(Q)),Promise.resolve())}return He}function Ua(e){return ut(xs)}function Fa(e,t){return t?.split(".").reduce((s,r)=>s?.[r],e)}function or(e=null,t=new Map){let s=ze({}),r=[],n=!1,i=new Proxy(s,{get(a,u){return typeof u=="string"&&u.startsWith("__v_")||Reflect.has(a,u)?Reflect.get(a,u):e?.[u]}});return Object.defineProperty(s,"parent",{value:e,configurable:!0}),Object.defineProperty(s,"viewState",{get:()=>i}),i.watch=(a,u,f=!1,v=!0)=>{let h=typeof a=="function"?()=>a(i):()=>Fa(i,a),k=Be(h,u,{deep:f,flush:"post"});return r.push(k),v&&st(()=>{n||u(h(),h())}),k},i.watchGroup=(a,u,f=!0)=>i.watch(()=>a.map(v=>Fa(i,v)),u,!0,f),i.on=(a,u)=>{if(a==="dispose")return r.push(u),()=>{};t.has(a)||t.set(a,new Set),t.get(a).add(u);let f=()=>t.get(a)?.delete(u);return r.push(f),f},i.emit=(a,...u)=>{for(let f of[...t.get(a)||[]])f({},...u)},i.dispose=()=>{n=!0,r.splice(0).reverse().forEach(a=>a())},jo(i.dispose),i}function ct(){let e=new Set,t=new Set,s=!1,r=(i,a=0)=>{if(s)return;let u=setTimeout(()=>{e.delete(u),i()},a);return e.add(u),u};r.cancel=i=>{clearTimeout(i),e.delete(i)};let n=(i,a)=>{if(s)return;let u=setInterval(i,a);return t.add(u),u};return n.cancel=i=>{clearInterval(i),t.delete(i)},jo(()=>{s=!0,e.forEach(clearTimeout),t.forEach(clearInterval)}),{timeout:r,interval:n}}function Jt(){let e=new Set;return jo(()=>{e.forEach(t=>t()),e.clear()}),(t,s,r,n)=>{t.addEventListener(s,r,n);let i=()=>{t.removeEventListener(s,r,n),e.delete(i)};return e.add(i),i}}function sr(e,t,s){let r,n=!1,i="form-draft:"+s,a=()=>Object.fromEntries(t.map(m=>[m,e[m]])),u=()=>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))},v=()=>{try{window.sessionStorage.removeItem(i)}catch{}},h=(m=!1)=>{if(r!==void 0){if(m&&document.querySelectorAll("input, select, textarea").forEach(E=>{E._field?.binding.state===e&&E._field.timer&&E._field.commit()}),e.unsavedChanges=u()!==r,e.draftSaved=!1,!e.unsavedChanges){v();return}try{window.sessionStorage.setItem(i,JSON.stringify({account:e.user?.username||null,savedAt:Date.now(),values:a()})),e.draftSaved=!0}catch{}}},k=()=>h(!0);return e.on("routeLeave",k),window.addEventListener("beforeunload",k),e.on("dispose",()=>window.removeEventListener("beforeunload",k)),{restore(){r=u();let m;try{m=JSON.parse(window.sessionStorage.getItem(i)||"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),n||(n=!0,e.watch(()=>a(),()=>h(),!0)),e.unsavedChanges=u()!==r,!!E},checkpoint(){return JSON.parse(u())},accept(m){r=JSON.stringify(m),e.draftRestored=!1,h()},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??"")}),r!==void 0&&f(JSON.parse(r)),e.draftRestored=!1,h()},clear(){r=u(),e.unsavedChanges=!1,e.draftRestored=!1,e.draftSaved=!1,v()}}}var on="XXXX",up=e=>{on=e||"XXXX"},za=(e=on)=>{if(!e)return null;let t=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return new RegExp(t+"(?:-\\d+)?","g")},Ha=(e,t=on)=>{let s=za(t);if(!s||!e||!e.textContent.includes(t))return;let r=e.ownerDocument,n=r.createTreeWalker(e,NodeFilter.SHOW_TEXT),i=[];for(;n.nextNode();)i.push(n.currentNode);for(let a of i){let u=a.nodeValue,f=a.parentElement;if(!u.includes(t)||!f||f.closest("script, style, mark.redaction, .mermaid"))continue;let v=f.closest('code[class*="language-"]');if(v&&!v.contains(e))continue;let h=r.createDocumentFragment(),k=0;for(let m of u.matchAll(s)){h.append(u.slice(k,m.index));let E=r.createElement("mark");E.className="redaction",E.title="Redacted by Anonymous GitHub",E.textContent=m[0],h.append(E),k=m.index+m[0].length}h.append(u.slice(k)),a.replaceWith(h)}},Ba=(e,t=on)=>{if(!e||!t||!e.includes(t))return e;let s=new DOMParser().parseFromString("<body>"+e+"</body>","text/html");return Ha(s.body,t),s.body.innerHTML};async function ja(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 s=document.activeElement;document.body.appendChild(t);try{if(t.select(),!document.execCommand?.("copy"))throw Error("Copy unavailable")}finally{t.remove(),s?.focus()}}function cp(e){if(!["ArrowLeft","ArrowRight","Home","End"].includes(e.key))return;let t=[...e.currentTarget.closest('[role="tablist"]').querySelectorAll('[role="tab"]')],s=t.indexOf(e.currentTarget),r=e.key==="Home"?0:e.key==="End"?t.length-1:(s+(e.key==="ArrowRight"?1:-1)+t.length)%t.length;e.preventDefault(),t[r]?.focus(),t[r]?.click()}var Ga=function(e,t,s,r){e.previewTabKeydown=cp,e.title="Main",e.user={status:"connection"},e.site_options,e.toasts=[],e.removeToast=function(v){let h=e.toasts.indexOf(v);h!==-1&&e.toasts.splice(h,1)},e.addToast=function(v){return e.toasts.push(v),r(function(){e.removeToast(v)},8e3),v};let n=/^\/(r|repository|pr|gist)\//;e.path=s.url(),e.paths=s.path().substring(1).split("/"),e.isReviewerRoute=n.test(s.path()),e.darkMode=function(v){localStorage.setItem("darkMode",v),e.isDarkMode=v;let h="/css/prism-okaidia.css",k="/css/prism.css";if(v){$("body").addClass("dark-mode");let E=document.createElement("link");E.href=h,E.rel="stylesheet",document.head.append(E),$(`link[href='${k}']`).remove()}else{$("body").removeClass("dark-mode");let E=document.createElement("link");E.href=k,E.rel="stylesheet",document.head.append(E),$(`link[href='${h}']`).remove()}let m=document.querySelector("[class*='floatingchat-container-wrap'] [class*='floating-chat-kofi-text-container-wrap']");m&&(m.style.backgroundColor=v?"#34312C":"#1A1815",m.style.color="#FAF9F6"),e.emit("dark-mode",v)},e.darkMode(localStorage.getItem("darkMode")=="true");function i(){t.get("/api/user").then(v=>{v&&(e.user=v.data)},()=>{e.user=null})}i();function a(){t.get("/api/options").then(v=>{v&&(e.site_options=v.data),up(v?.data?.ANONYMIZATION_MASK),e.emit("site-options")},()=>{e.site_options=null})}a();function u(){t.get("/api/message").then(v=>{v&&(e.generalMessage=v.data)},()=>{e.generalMessage=null})}u();function f(v,h){h&&(e.title=h.title),e.path=s.url(),e.paths=s.path().substring(1).split("/"),e.isReviewerRoute=n.test(s.path())}e.on("routeChange",f),e.on("routeUpdate",f)},Wa=function(e,t){let s=Jt(),r=ct(),n=()=>{let i=window.location.hash.slice(1),a=document.getElementById(i);if(!a?.classList.contains("panel-collapse"))return;$(a).collapse("show");let u=document.getElementById(a.getAttribute("aria-labelledby"));u?.setAttribute("tabindex","-1"),u?.focus({preventScroll:!0}),u?.scrollIntoView?.({block:"start"})};e.on("routeUpdate",()=>r.timeout(n,0)),s(window,"hashchange",n),r.timeout(n,0)},Ka=function(e,t,s,r,n){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,n.load().then(f=>{e.quota=f},console.error);let i=sr(e,["terms","options"],"profile");e.discardDraft=()=>i.discard();function a(){t.get("/api/user/default").then(f=>{let v=f.data||{};v.terms&&(e.terms=v.terms.join(`
`)),e.options=Object.assign({},e.options,v.options),i.restore()})}a();let u=null;e.saveDefault=f=>{if(f&&f.preventDefault&&f.preventDefault(),e.saving)return;let v=i.checkpoint(),h={terms:e.terms.split(`
`).map(k=>k.trim()).filter(k=>k.length>0),options:e.options};e.saving=!0,e.error=null,t.post("/api/user/default",h).then(()=>{i.accept(v),e.saving=!1,e.message=e.unsavedChanges?null:"Saved",u&&r.cancel(u),u=r(()=>{e.message=null},2500)},k=>{e.saving=!1;let m=k&&k.data&&k.data.error,E="Unable to save your defaults. Please try again.";Promise.all([s("ERRORS."+m),s("ERRORS.unknown_error")]).then(([y,w])=>{e.error=m&&y!==w?y:E},()=>{e.error=E})})},e.deleteAccount=()=>{confirm("Delete your account? All your anonymized repositories, gists, and pull requests will be removed, and your personal data will be erased. This cannot be undone.")&&(e.deletingAccount=!0,t.delete("/api/user").then(()=>{window.location.href="/"},()=>{e.deletingAccount=!1,e.deleteError="Unable to delete the account. Please try again."}))}},Ya=function(e,t,s){e.repoId=null,e.repoUrl=null,e.claim=()=>{t.post("/api/repo/claim",{repoId:e.repoId,repoUrl:e.repoUrl}).then(r=>{s.url("/dashboard")},r=>{e.error=r.data,e.claimForm.repoUrl.setValidity("not_found",!1),e.claimForm.repoId.setValidity("not_found",!1)})}},Ja=function(e,t,s,r,n){e.user&&!e.user.status&&s.url("/dashboard"),e.watch("user.status",()=>{e.user&&!e.user.status&&s.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(u){e.feature=u},e.featureHref=function(u){return u.needsUser&&!e.user?"/signin":u.href},e.featureTarget=function(u){return u.needsUser&&!e.user?"_self":u.target||void 0},e.featureKeydown=function(u,f){let v={ArrowDown:1,ArrowRight:1,ArrowUp:-1,ArrowLeft:-1,Home:"first",End:"last"}[u.key];if(v===void 0)return;u.preventDefault();let h=e.features.length,k=v==="first"?0:v==="last"?h-1:(f+v+h)%h;e.feature=e.features[k].key,n(()=>{let m=r.document.getElementById("feature-tab-"+e.feature);m&&m.focus()})},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 i(){t.get("/api/stat/").then(u=>{e.stat=u.data,e.cards[0].total=u.data.nbRepositories,e.cards[1].total=u.data.nbUsers,e.cards[2].total=u.data.nbPageViews,e.cards[3].total=u.data.nbPullRequests})}i();function a(u){let f={series:u,bars:[],viewW:100,deltaToday:0,pctChange:0,pctAbs:0,isUp:!0};if(!u||u.length<2)return f;let v=new Array(u.length-1);for(let w=1;w<u.length;w++)v[w-1]=u[w]-u[w-1];let h=v.length,k=Math.max.apply(null,v),m=Math.min.apply(null,v),E=Math.min(0,m),y=k-E||1;f.viewW=h*2,f.bars=new Array(h);for(let w=0;w<h;w++){let D=(v[w]-E)/y,R=Math.max(1.5,D*34);f.bars[w]={x:(w*2+.25).toFixed(2),y:(36-R).toFixed(2),w:"1.5",h:R.toFixed(2)}}if(f.deltaToday=v[h-1],h>=2){let w=v[h-2];w&&(f.pctChange=(f.deltaToday-w)/w*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(u=>{let f=u.data||[];e.history={repositories:a(f.map(v=>v.nbRepositories||0)),users:a(f.map(v=>v.nbUsers||0)),pageViews:a(f.map(v=>v.nbPageViews||0)),pullRequests:a(f.map(v=>v.nbPullRequests||0))}})},Qa=function(e,t,s,r,n,i){let a=ct();e.on("routeLeave",function(){$('[data-toggle="tooltip"]').tooltip("dispose")}),e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),a.timeout(()=>{$('[data-toggle="tooltip"]').tooltip()},250),e.quotaExpanded=!1,e.closeQuota=()=>{e.quotaExpanded=!1,st(()=>document.querySelector(".dashboard-quota > summary")?.focus())},Jt()(document,"click",_=>{e.quotaExpanded&&!_.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=_=>_.status==="error"||_._broken||f(_.status)==="progress"&&_._stale,e.attentionCount=()=>e.dashboardTotals?.attention??e.items.filter(e.needsAttention).length,e.hasProjects=()=>(e.dashboardTotals?.total??e.items.length)>0,e.setProjectView=_=>{e.projectView=_,_==="attention"&&(e.filters.status.error=!0,e.filters.status.progress=!0)},e.projectDetailsId=_=>"project-details-"+encodeURIComponent(_._type+":"+(_._id||_._source||"unknown")),e.showProjectDetails=async _=>{e.selectedProject=_,e.projectName=_.projectName||"",e.nameError="",e.nameMessage="",await st();let O=document.getElementById(e.projectDetailsId(_));O?.focus(),O?.scrollIntoView?.({block:"nearest"})},e.closeProjectDetails=_=>{e.selectedProject=null,st(()=>document.querySelector(`[data-project-actions="${encodeURIComponent(_._type+":"+_._id)}"]`)?.focus())},e.saveProjectName=async _=>{if(e.nameSaving||!_._id)return;let O=e.projectName.trim();if(O.length>100){e.nameError="Use 100 characters or fewer.";return}e.nameSaving=!0,e.nameError="",e.nameMessage="";try{let Y=await t.post("/api/user/project-name",{type:_._type,id:_._id,name:O});_.projectName=Y.data.name,_._label=_.projectName||_._fallbackLabel,e.selectedProject===_&&(e.nameMessage=O?"Project name saved.":"Default project name restored."),T||(e.dashboardCursor=null,await H(),e.selectedProject===_&&(e.selectedProject=e.items.find(Z=>Z._type===_._type&&Z._id===_._id)||null))}catch{e.selectedProject===_&&(e.nameError="The project name could not be saved. Try again.")}finally{e.nameSaving=!1}},e.copyingId=null,e.copyLink=async _=>{if(!_._viewUrl||e.copyingId)return;let O=new URL(_._viewUrl,n.location.origin).href;e.copyingId=_._type+":"+_._id;try{await ja(O),e.addToast({title:"Link copied",body:"The anonymous link is ready to share."})}catch{e.addToast({title:"Copy this anonymous link",body:O})}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 u=["queue","download","downloaded","preparing","anonymizing"];function f(_){return _==="ready"||_==="error"?_:_==="expired"||_==="expiring"?"expired":_==="removed"||_==="removing"?"removed":(u.indexOf(_)>-1,"progress")}let v=7200*1e3,h="dashboard.filterPrefs",k={typeFilter:"all",filters:{status:{ready:!0,progress:!0,error:!0,expired:!0,removed:!1}},orderBy:"-anonymizeDate"},m=loadFilterPrefs(h)||{};e.typeFilter=m.typeFilter||k.typeFilter,e.filters={status:Object.assign({},k.filters.status,m.filters&&m.filters.status||{})},e.orderBy=m.orderBy||k.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 _=E[e.sortField()];return _?_.label:"Custom"},e.isSortedBy=_=>e.sortField()===_,e.setSort=(_,O)=>{typeof O!="boolean"&&(O=e.isSortedBy(_)?!e.sortDesc():!!(E[_]&&E[_].defaultDesc)),e.orderBy=(O?"-":"")+_},e.toggleSortDirection=()=>{e.setSort(e.sortField(),!e.sortDesc())},e.watchGroup(["typeFilter","orderBy"],()=>{saveFilterPrefs(h,{typeFilter:e.typeFilter,filters:e.filters,orderBy:e.orderBy})}),e.watch("filters",()=>{saveFilterPrefs(h,{typeFilter:e.typeFilter,filters:e.filters,orderBy:e.orderBy})},!0),i.load().then(_=>{e.quota=_},console.error);function y(_,O,Y,Z,te,J){_.pageView||(_.pageView=0),_.lastView||(_.lastView=""),_.options=_.options||{},_.options.terms=(_.options.terms||[]).filter(ue=>ue),_._id=O||"",_._source=Z,_._broken=!O,_._name=O||Z||"(unnamed)",_._fallbackLabel=_._type==="gist"?"Gist "+(O||Z||"without an ID"):Z||Y||_._name,_._label=_.projectName||_._fallbackLabel,_._editUrl=O?te:null,_._viewUrl=O?J:null,_._broken&&(_.status="error",_.statusMessage="incomplete_record"),_._statusKey=f(_.status);let se=_.anonymizeDate||_.lastView;return _._stale=_._statusKey==="progress"&&!!se&&Date.now()-new Date(se).getTime()>v,_.status==="expired"||_.status==="expiring"?_._expiry={kind:"expired",date:_.options.expirationDate}:_.status!=="ready"?_._expiry={kind:"none"}:_.options.expirationMode==="never"||!_.options.expirationDate?_._expiry={kind:"never"}:_._expiry={kind:"date",date:_.options.expirationDate},_}function w(_){return t.get(_).then(O=>O.data||[],O=>(console.error(O),[]))}function D(){return e.loading=!0,r.all([w("/api/user/anonymized_repositories"),w("/api/user/anonymized_pull_requests"),w("/api/user/anonymized_gists")]).then(_=>{let O=_[0],Y=_[1],Z=_[2],te=[];O.forEach(J=>{J._type="repo";let se=J.source||{};te.push(y(J,J.repoId,J.repoId,se.fullName,"/anonymize/"+J.repoId,"/r/"+J.repoId+"/"))}),Y.forEach(J=>{J._type="pr";let se=J.source||{};te.push(y(J,J.pullRequestId,J.pullRequestId,se.repositoryFullName?se.repositoryFullName+"#"+se.pullRequestId:void 0,"/pull-request-anonymize/"+J.pullRequestId,"/pr/"+J.pullRequestId+"/"))}),Z.forEach(J=>{J._type="gist";let se=J.source||{};te.push(y(J,J.gistId,J.gistId,se.gistId,"/gist-anonymize/"+J.gistId,"/gist/"+J.gistId+"/"))}),e.items=te,e.loading=!1})}let R=0,T=!1;e.dashboardCursor=null,e.dashboardError="";function I(_){let O=_.source||{};return _._type==="repo"?y(_,_.repoId,_.repoId,O.fullName,"/anonymize/"+_.repoId,"/r/"+_.repoId+"/"):_._type==="pr"?y(_,_.pullRequestId,_.pullRequestId,O.repositoryFullName?O.repositoryFullName+"#"+O.pullRequestId:void 0,"/pull-request-anonymize/"+_.pullRequestId,"/pr/"+_.pullRequestId+"/"):y(_,_.gistId,_.gistId,O.gistId,"/gist-anonymize/"+_.gistId,"/gist/"+_.gistId+"/")}function H(_=!1){if(T)return D();let O=++R;return e.loading=!_,e.loadingMore=_,e.dashboardError="",t.get("/api/user/dashboard",{params:{q:e.search,type:e.typeFilter,sort:e.orderBy,statuses:Object.keys(e.filters.status).filter(Y=>e.filters.status[Y]!==!1).join(",")||"none",attention:String(e.projectView==="attention"),cursor:_?e.dashboardCursor:void 0}}).then(Y=>{if(O===R){if(!Array.isArray(Y.data?.items))return T=!0,D();e.items=(_?e.items:[]).concat(Y.data.items.map(I)),e.dashboardCursor=Y.data.cursor,e.dashboardTotals=Y.data}},Y=>{if(O===R){if(Y.status===404)return T=!0,D();e.dashboardError="Projects could not be loaded. Please try again."}}).finally(()=>{O===R&&(e.loading=!1,e.loadingMore=!1)})}e.loadMoreProjects=()=>H(!0);let q;e.watchGroup(["search","typeFilter","orderBy","projectView"],()=>{T||(q&&a.timeout.cancel(q),q=a.timeout(()=>H(),150))},!1),e.watch("filters",()=>{T||H()},!0,!1),e.on("dispose",()=>{R++}),H(),e.openItem=(_,O)=>{if(!_._viewUrl)return;let Y=O&&O.target;Y&&Y.closest&&Y.closest("a, button, .dropdown, input")||(n.location.href=_._viewUrl)},e.hiddenStatusCount=()=>Object.keys(e.filters.status).filter(_=>e.filters.status[_]===!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(_=>e.filters.status[_]===!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(_=>{e.filters.status[_]=!0})};function U(_,O,Y,Z){t.get("/api/repo/"+_).then(async te=>{let J=Z!==void 0&&Z!==te.data.status;for(let se of e.items)if(se._type==="repo"&&se.repoId==_){J=J||se.status!==te.data.status;let ue=e.needsAttention(se);se.status=te.data.status,se.statusMessage=te.data.statusMessage,se._statusKey=f(se.status),se._statusKey!=="progress"&&(se._stale=!1);let pe=e.needsAttention(se);e.dashboardTotals&&ue!==pe&&(e.dashboardTotals.attention=Math.max(0,e.dashboardTotals.attention+(pe?1:-1)));break}if(J&&!T){e.dashboardCursor=null;let se=e.selectedProject;await H(),se&&e.selectedProject===se&&(e.selectedProject=e.items.find(ue=>ue._type===se._type&&ue._id===se._id)||null)}if(te.data.status=="ready"||te.data.status=="error"||te.data.status=="removed"||te.data.status=="expired"){O(te.data);return}a.timeout(()=>U(_,O,Y,te.data.status),2500)},Y)}let ae=_=>_==="repo"?"repository":_==="gist"?"gist":"pull request",ie=_=>_==="repo"?"/api/repo":_==="gist"?"/api/gist":"/api/pr";e.removeItem=_=>{let O=ae(_._type);if(confirm(`Are you sure that you want to remove the ${O} ${_._id}?`)){let Y=ze({title:`Removing ${_._id}...`,date:new Date,body:`The ${O} ${_._id} is going to be removed.`});e.addToast(Y);let Z=`${ie(_._type)}/${_._id}`;t.delete(Z).then(()=>{_._type==="repo"?U(_._id,()=>{Y.title=`${_._id} is removed.`,Y.body=`The ${O} ${_._id} is removed.`},void 0,_.status):(Y.title=`${_._id} is removed.`,Y.body=`The ${O} ${_._id} is removed.`,H())},te=>{Y.title=`Error during the removal of ${_._id}.`,Y.body=te.body,H()})}},e.refreshItem=_=>{let O=ae(_._type),Y=ze({title:`Refreshing ${_._id}...`,date:new Date,body:`The ${O} ${_._id} is going to be refreshed.`});e.addToast(Y);let Z=J=>{Y.title=`Error during the refresh of ${_._id}.`,Y.body=J.data?.error||J.body||"The refresh could not be completed. Please try again.",H()},te=`${ie(_._type)}/${_._id}/refresh`;t.post(te).then(()=>{_._type==="repo"?U(_._id,J=>{if(J.status!=="ready"){Z({body:J.statusMessage||`The repository is ${J.status}.`});return}Y.title=`${_._id} is refreshed.`,Y.body=`The ${O} ${_._id} is refreshed.`},Z,_.status):(Y.title=`${_._id} is refreshed.`,Y.body=`The ${O} ${_._id} is refreshed.`,H())},Z)},e.extendItem=_=>{let O=ae(_._type),Y=ze({title:`Extending ${_._id}...`,date:new Date,body:`The expiration of ${O} ${_._id} is going to be extended by 6 months.`});e.addToast(Y);let Z=`${ie(_._type)}/${_._id}/extend`;t.post(Z).then(()=>{_._type==="repo"?U(_._id,()=>{Y.title=`${_._id} is extended.`,Y.body=`The expiration of ${O} ${_._id} is extended by 6 months.`},void 0,_.status):(Y.title=`${_._id} is extended.`,Y.body=`The expiration of ${O} ${_._id} is extended by 6 months.`,H())},te=>{Y.title=`Error during the extension of ${_._id}.`,Y.body=te.data&&te.data.error||te.body,H()})},e.itemFilter=_=>{if(e.projectView==="attention"&&!e.needsAttention(_)||e.typeFilter!=="all"&&_._type!==e.typeFilter||e.filters.status[_._statusKey]===!1)return!1;let O=e.search.trim().toLowerCase();return!!(O.length==0||_._label&&String(_._label).toLowerCase().indexOf(O)>-1||_._source&&String(_._source).toLowerCase().indexOf(O)>-1||_._id&&String(_._id).toLowerCase().indexOf(O)>-1||_.conference&&String(_.conference).toLowerCase().indexOf(O)>-1)}};var Xa=function(e,t,s){let r=ct();e.repoId=s.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 n=null;e.copyShareUrl=async()=>{try{await ja(e.shareUrl),e.copied=!0,n&&r.timeout.cancel(n),n=r.timeout(()=>{e.copied=!1},2e3)}catch{e.addToast?.({title:"Copy this anonymous link",body:e.shareUrl})}};var i=null;let a=null,u=!1;function f(h){e.rateLimitResetAt=h,i&&r.interval.cancel(i);function k(){var m=Math.max(0,Math.ceil((h-Date.now())/1e3));if(m<=0)e.rateLimitCountdown="",e.rateLimitResetAt=0,r.interval.cancel(i),i=null;else{var E=Math.floor(m/60),y=m%60;e.rateLimitCountdown=E>0?E+"m "+y+"s":y+"s"}}k(),i=r.interval(k,1e3)}e.on("dispose",function(){u=!0,i&&r.interval.cancel(i),a&&r.timeout.cancel(a)});function v(h){if(!h)return h;var k=h.match(/^rate_limited:(\d+)$/);return k?(f(parseInt(k[1],10)),null):(e.rateLimitResetAt=0,h)}e.getStatus=()=>{u||t.get("/api/repo/"+e.repoId,{repoId:e.repoId,repoUrl:e.repoUrl}).then(h=>{if(!u){e.repo=h.data,h.data.rateLimitResetAt?f(h.data.rateLimitResetAt):e.repo.statusMessage=v(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 k=!["ready","removed","expired"].includes(e.repo.status);e.repo.status=="error"&&!e.rateLimitResetAt&&(k=!1),k&&(a=r.timeout(e.getStatus,2e3))}},h=>{e.error=h.data.error})},e.getStatus()},sn=function(e,t,s,r,n,i,a){e.sourceUrl="",e.workspaceOpen=!1,e.sourceUrlError="",e.previewStatus="idle",e.sourceLoading=!1,e.mobilePane="settings";let u=window.matchMedia?.("(max-width: 767px)");e.mobileWorkspace=!!u?.matches,u?.addEventListener&&Jt()(u,"change",C=>{e.mobileWorkspace=C.matches}),e.selectMobilePane=C=>{e.mobilePane=C};let f=0,v=!1,h=new Set,k=(C,P=!1)=>!v&&C.generation===f&&C.url===e.sourceUrl.trim()&&C.connection===e.githubConnection&&(!P||C.branch===e.source.branch),m=()=>{let C={generation:f,url:e.sourceUrl.trim(),connection:e.githubConnection,branch:e.source.branch};return h.add(C),e.sourceLoading=!0,C},E=C=>{h.delete(C),v||(e.sourceLoading=[...h].some(P=>k(P)))};e.on("dispose",()=>{v=!0,f++});let y=null,w=C=>C.gistId&&!C.repo?"gist:"+C.gistId.toLowerCase():(C.owner+"/"+C.repo).toLowerCase()+(C.pullRequestId?"/pull/"+C.pullRequestId:""),D=sr(e,["sourceUrl","terms","repoId","pullRequestId","gistId","source","options","conference","githubConnection"],"anonymize:"+(n.path?.()||""));e.discardDraft=async()=>{D.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="",se.cancel(),_e.cancel(),Pe.cancel(),e.previewStatus="idle")},e.githubConnection=void 0,e.githubConnections=null,e.gistOAuthRequired=!1,e.gistAppRequired=!1;let R=()=>{let C={};for(let P of["sourceUrl","terms","repoId","pullRequestId","gistId","source","options","conference","githubConnection"])C[P]=e[P];sessionStorage.setItem("github-access-draft",JSON.stringify({path:n.path(),savedAt:Date.now(),draft:C}))};e.connectGistApp=()=>{R(),window.location.href="/github/app/login?returnTo="+encodeURIComponent(n.path())},e.connectGistOAuth=()=>{R(),window.location.href="/github/login?returnTo="+encodeURIComponent(n.path())},e.grantGitHubAccess=()=>{R();let C=n.path(),P=ae(e.sourceUrl)||"",B=e.githubConnections?.appConnected?"/github/app/install":"/github/app/login";window.location.href=B+"?returnTo="+encodeURIComponent(C)+"&repository="+encodeURIComponent(P)+"&install=1"},e.chooseGitHubConnection=async C=>{e.githubConnection=C,e.readme="",e.sourceUrl&&await _()},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 T(){let C=new Date;return C.setMonth(C.getMonth()+6),C}e.options.expirationDate=T();function I(C){let P=C.getFullYear(),B=String(C.getMonth()+1).padStart(2,"0"),M=String(C.getDate()).padStart(2,"0");return`${P}-${B}-${M}`}e.minExpirationDate=I(new Date);let H=new Date;H.setFullYear(H.getFullYear()+1),e.maxExpirationDate=I(H),e.anonymize_readme="",e.readme="",e.html_readme="",e.isUpdate=!1;function q(C){t.get("/api/user/default").then(P=>{let B=P.data;B.terms&&(e.defaultTerms=B.terms.join(`
`)),e.options=Object.assign({},e.options,B.options),e.options.expirationDate=B.options&&B.options.expirationDate?new Date(B.options.expirationDate):T(),!r.repoId&&!r.pullRequestId&&!r.gistId&&!e.anonymize?.terms?.dirty&&(e.terms=e.defaultTerms),C&&C()})}function U(C,P,B){e.anonymize&&e.anonymize[C]&&e.anonymize[C].setValidity(P,B)}function ae(C){try{let P=parseGithubUrl(C);if(P&&P.owner&&P.repo)return P.owner+"/"+P.repo}catch{}return null}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 Y()}catch{}}};function ie(){return e.reconnectingSource||!e.isUpdate||!e._originalRepositoryID?void 0:ae(e.sourceUrl)===e._originalFullName?e._originalRepositoryID:void 0}async function _(){e._preservingDraft=!0;try{await e.urlSelected(!0)}finally{e._preservingDraft=!1}}async function O(){let C;try{C=JSON.parse(sessionStorage.getItem("github-access-draft")||"null")}catch{return!1}if(!C||C.path!==n.path()||Date.now()-C.savedAt>=30*6e4)return D.restore()?(e.sourceUrl&&await _(),!0):!1;D.restore();for(let P of["sourceUrl","terms","repoId","pullRequestId","gistId","source","options","conference","githubConnection"])Object.prototype.hasOwnProperty.call(C.draft,P)&&(e[P]=C.draft[P]);return e.options.expirationDate&&(e.options.expirationDate=new Date(e.options.expirationDate)),await _(),sessionStorage.removeItem("github-access-draft"),!0}q(()=>{!r.repoId&&!r.pullRequestId&&!r.gistId&&a(O,0),r.repoId&&r.repoId!=""&&(e.isUpdate=!0,e.detectedType="repo",e.repoId=r.repoId,t.get("/api/repo/"+e.repoId).then(async C=>{e.githubConnection=C.data.connection||"oauth",e.sourceUrl="https://github.com/"+C.data.source.fullName,e._originalFullName=C.data.source.fullName,e.terms=C.data.options.terms.filter(P=>P).join(`
`),e.source=C.data.source,e.role=C.data.role||"owner",e.coauthors=C.data.coauthors||[],e._originalBranch=C.data.source.branch,e.options=Object.assign({},e.options,C.data.options),e.conference=C.data.conference,e._originalConference=C.data.conference,e.repositoryID=C.data.source.repositoryID,e._originalRepositoryID=C.data.source.repositoryID,C.data.options.expirationDate&&(e.options.expirationDate=new Date(C.data.options.expirationDate)),y=w(parseGithubUrl(e.sourceUrl)),!await O()&&(await Promise.all([Y(),Z()]),ue())},()=>{n.url("/404")})),r.pullRequestId&&r.pullRequestId!=""&&(e.isUpdate=!0,e.detectedType="pr",e.pullRequestId=r.pullRequestId,t.get("/api/pr/"+e.pullRequestId).then(async C=>{if(e.githubConnection=C.data.connection||"oauth",e.sourceUrl="https://github.com/"+C.data.source.repositoryFullName+"/pull/"+C.data.source.pullRequestId,e.terms=C.data.options.terms.filter(P=>P).join(`
`),e.source=C.data.source,e.options=Object.assign({},e.options,C.data.options),e.conference=C.data.conference,e._originalConference=C.data.conference,C.data.options.expirationDate&&(e.options.expirationDate=new Date(C.data.options.expirationDate)),y=w(parseGithubUrl(e.sourceUrl)),!await O())try{await pe()}catch{}},()=>{n.url("/404")})),r.gistId&&r.gistId!=""&&(e.isUpdate=!0,e.detectedType="gist",e.gistId=r.gistId,t.get("/api/gist/"+e.gistId).then(async C=>{e.sourceUrl="https://gist.github.com/"+C.data.source.gistId,e.terms=C.data.options.terms.filter(P=>P).join(`
`),e.source=C.data.source,e.options=Object.assign({},e.options,C.data.options),e.conference=C.data.conference,e._originalConference=C.data.conference,C.data.options.expirationDate&&(e.options.expirationDate=new Date(C.data.options.expirationDate)),y=w(parseGithubUrl(e.sourceUrl)),!await O()&&await Ue()},()=>{n.url("/404")}))}),t.get("/github/connections").then(C=>{e.githubConnections=C.data,!r.repoId&&!r.pullRequestId&&!r.gistId&&e.githubConnection===void 0&&C.data.appEnabled&&C.data.appConnected&&(e.githubConnection="github-app",e.sourceUrl&&e.workspaceOpen&&_())}).catch(()=>{}),e.urlSelected=async(C=!1)=>{let P=++f,B;try{B=parseGithubUrl(e.sourceUrl.trim())}catch{e.sourceLoading=!1,se.cancel(),_e.cancel(),Pe.cancel(),e.previewStatus="idle",e.sourceUrlError=e.sourceUrl?"Please provide a valid GitHub URL.":"",U("sourceUrl","github",!1);return}let M=w(B),g=C||y===M;y=M,e.sourceUrlError="",U("sourceUrl","github",!0);let S=document.activeElement?.id==="sourceUrl-landing";e.workspaceOpen=!0,S&&a(()=>document.getElementById("sourceUrl")?.focus(),0),e.reconnectingSource=!1,e.reconnectRepositoryId=void 0,!g&&!e.isUpdate&&(e.repoId="",e.pullRequestId="",e.gistId=""),e.details=null,e.branches=[],g||(e.source={type:"GitHubStream",branch:"",commit:""}),se.cancel(),_e.cancel(),Pe.cancel(),le.clear(),Re.clear(),e.previewStatus="idle",e.anonymize_readme="",e.readme="",e.html_readme="",e.detectedType=null,e.gistOAuthRequired=!1,e.gistAppRequired=!1,e._preservingDraft=g;try{B.gistId&&!B.repo?(e.detectedType="gist",e.source={gistId:B.gistId},await Ue()):B.pullRequestId?(e.detectedType="pr",e.source={repositoryFullName:B.owner+"/"+B.repo,pullRequestId:B.pullRequestId},await pe()):(e.detectedType="repo",await Promise.all([Y(),Z()]),ue())}catch{}finally{P===f&&(e._preservingDraft=!1)}$('[data-toggle="tooltip"]').tooltip()},$('[data-toggle="tooltip"]').tooltip(),e.watch("source.branch",async()=>{if(e.detectedType!=="repo")return;let C=e.branches.filter(B=>B.name==e.source.branch)[0];if(!C)return;!(!e.reconnectingSource&&e.isUpdate&&e._originalBranch===e.source.branch&&!!e.source.commit)&&!(e._preservingDraft&&e.source.commit)&&(e.source.commit=C.commit),e.readme=C.readme,await Z(),ue()}),e.getBranches=async C=>{let P=parseGithubUrl(e.sourceUrl),B=m();try{let M=await t.get(`/api/repo/${P.owner}/${P.repo}/branches`,{params:{reconnect:e.reconnectingSource?"1":void 0,anonymizedRepoId:e.isUpdate&&r.repoId&&ae(e.sourceUrl)===e._originalFullName?r.repoId:void 0,connection:e.githubConnection,force:C===!0||e.reconnectingSource?"1":"0",repositoryID:ie()}});if(!k(B))return;e.branches=M.data,e.sourceUnreachable=!1,e.source.branch||(e.source.branch=e.details.defaultBranch);let g=e.branches.filter(S=>S.name==e.source.branch);g.length>0&&(!(!e.reconnectingSource&&!C&&e.isUpdate&&!e.options.update&&e._originalBranch===e.source.branch&&e.source.commit)&&!(e._preservingDraft&&e.source.commit)&&(e.source.commit=g[0].commit),e.readme=g[0].readme,await Z(C))}catch(M){if(!k(B))return;e.branches=[],e.sourceUnreachable=M&&(M.status===404||M.data&&M.data.error==="repo_not_found");let g=M&&M.data&&M.data.error||(M&&M.status===404?"repo_not_found":"unknown_error");i("ERRORS."+g).then(S=>{e.toasts=e.toasts||[],e.addToast({title:"Error",date:new Date,body:S}),e.error=S},console.error),typeof U=="function"&&U("sourceUrl","missing",!1)}finally{E(B)}};async function Y(){let C=parseGithubUrl(e.sourceUrl),P=m();try{F();let B=await t.get(`/api/repo/${C.owner}/${C.repo}/`,{params:{reconnect:e.reconnectingSource?"1":void 0,anonymizedRepoId:e.isUpdate&&r.repoId&&ae(e.sourceUrl)===e._originalFullName?r.repoId:void 0,connection:e.githubConnection,repositoryID:ie(),force:"1"}});if(!k(P))return;e.details=B.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(B){if(!k(P))return;throw B.data&&(i("ERRORS."+B.data.error).then(M=>{e.addToast({title:"Error",date:new Date,body:M}),e.error=M},console.error),Q(B.data.error)),U("sourceUrl","missing",!1),B}finally{E(P)}}async function Z(C){if(e.readme&&!C)return e.readme;let P=parseGithubUrl(e.sourceUrl),B=m();try{let M=await t.get(`/api/repo/${P.owner}/${P.repo}/readme`,{params:{reconnect:e.reconnectingSource?"1":void 0,anonymizedRepoId:e.isUpdate&&r.repoId&&ae(e.sourceUrl)===e._originalFullName?r.repoId:void 0,connection:e.githubConnection,force:C===!0?"1":"0",branch:e.source.branch,repositoryID:ie()}});k(B,!0)&&(e.readme=M.data)}catch{k(B,!0)&&(e.readme="")}finally{E(B)}}function te(){let C={terms:e.terms?e.terms.split(`
`):[],image:!!e.options.image,link:!!e.options.link,repoId:e.repoId};e.source&&e.source.branch&&(C.branchName=e.source.branch);try{let P=parseGithubUrl(e.sourceUrl);C.repoName=`${P.owner}/${P.repo}`}catch{}return C}function J(C,P,B){let M=null,g=0,S=()=>{if(e.detectedType!==C)return;M&&a.cancel(M);let V=++g;e.previewStatus="loading",M=a(()=>{M=null;let z=P();if(!z){e.previewStatus="idle";return}t.post("/api/anonymize-preview",z).then(j=>{V===g&&(B(j.data,z),e.previewStatus="ready")}).catch(()=>{V===g&&(e.previewStatus="error")})},200)};return S.cancel=()=>{g++,M&&a.cancel(M),M=null},e.on("dispose",S.cancel),S}e.retryPreview=()=>{e.detectedType==="repo"&&se(),e.detectedType==="pr"&&_e(),e.detectedType==="gist"&&Pe()};let se=J("repo",()=>e.readme?{content:e.readme,options:te()}:null,C=>{if(typeof C?.content!="string")throw Error("Invalid preview response");e.anonymize_readme=C.content;let P="";try{let M=parseGithubUrl(e.sourceUrl),g=e.source.branch||e.details&&e.details.defaultBranch||"main";P=`https://github.com/${M.owner}/${M.repo}/raw/${g}/`}catch{}let B=renderMD(e.anonymize_readme,P);e.html_readme=B,a(Prism.highlightAll,150)});function ue(){!e.anonymize||!e.anonymize.terms||(e.termsRegexWarning=!!e.terms&&!!e.terms.match(/[-[\]{}()*+?.,\\^$|#]/g),se())}async function pe(){let C=parseGithubUrl(e.sourceUrl),P=m();try{F();let B=await t.get(`/api/pr/${C.owner}/${C.repo}/${C.pullRequestId}`,{params:{connection:e.githubConnection}});if(!k(P))return;e.details=B.data,e.pullRequestId||(e.pullRequestId=C.repo+"-PR"+C.pullRequestId+"-"+generateRandomId(4))}catch(B){if(!k(P))return;throw B.data&&(i("ERRORS."+B.data.error).then(M=>{e.addToast({title:"Error",date:new Date,body:M}),e.error=M},console.error),Q(B.data.error)),U("sourceUrl","missing",!1),B}finally{E(P)}}let le=ze(new Map);function Oe(){let C=new Set,P=e.details&&e.details.pullRequest;if(!P)return C;typeof P.title=="string"&&C.add(P.title),typeof P.body=="string"&&C.add(P.body),typeof P.diff=="string"&&C.add(P.diff);let B=P.comments||[];for(let M of B)typeof M.author=="string"&&C.add(M.author),typeof M.body=="string"&&C.add(M.body);return C}let _e=J("pr",()=>{let C=Oe(),P=Array.from(C);return P.length===0?null:{contents:P,options:te()}},(C,P)=>{if(!Array.isArray(C?.contents)||C.contents.length!==P.contents.length||C.contents.some(g=>typeof g!="string"))throw Error("Invalid preview response");let B=P.contents,M=new Map;for(let g=0;g<B.length&&g<C.contents.length;g++)M.set(B[g],C.contents[g]);le.clear(),M.forEach((g,S)=>le.set(S,g))});e.anonymizePrContent=function(C){return C&&(le.has(C)?le.get(C):"")};async function Ue(){let C=parseGithubUrl(e.sourceUrl),P=m();try{F(),e.gistOAuthRequired=!1,e.gistAppRequired=!1;let B=await t.get(`/api/gist/source/${C.gistId}`);if(!k(P))return;e.details=B.data,e.gistId||(e.gistId="gist-"+C.gistId.substring(0,6)+"-"+generateRandomId(4))}catch(B){if(!k(P))return;if(B.data?.error==="github_app_reconnect_required"){e.gistAppRequired=!0,U("sourceUrl","missing",!1);return}if(B.data?.error==="github_oauth_required"){e.gistOAuthRequired=!0,U("sourceUrl","missing",!1);return}throw B.data&&(i("ERRORS."+B.data.error).then(M=>{e.addToast({title:"Error",date:new Date,body:M}),e.error=M},console.error),Q(B.data.error)),U("sourceUrl","missing",!1),B}finally{E(P)}}let Re=ze(new Map);function $e(){let C=new Set,P=e.details&&e.details.gist;if(!P)return C;typeof P.description=="string"&&C.add(P.description),typeof P.ownerLogin=="string"&&C.add(P.ownerLogin);let B=P.files||[];for(let g of B)typeof g.filename=="string"&&C.add(g.filename),typeof g.content=="string"&&C.add(g.content);let M=P.comments||[];for(let g of M)typeof g.author=="string"&&C.add(g.author),typeof g.body=="string"&&C.add(g.body);return C}let Pe=J("gist",()=>{let C=$e(),P=Array.from(C);return P.length===0?null:{contents:P,options:te()}},(C,P)=>{if(!Array.isArray(C?.contents)||C.contents.length!==P.contents.length||C.contents.some(g=>typeof g!="string"))throw Error("Invalid preview response");let B=P.contents,M=new Map;for(let g=0;g<B.length&&g<C.contents.length;g++)M.set(B[g],C.contents[g]);Re.clear(),M.forEach((g,S)=>Re.set(S,g)),He()});e.anonymizeGistContent=function(C){return C&&(Re.has(C)?Re.get(C):"")},e.previewGistFiles=[];function He(){let C=e.details&&e.details.gist&&e.details.gist.files||[];e.previewGistFiles=C.map(P=>({filename:e.anonymizeGistContent(P.filename),content:e.anonymizeGistContent(P.content),language:P.language}))}e.watch("details.gist.files",He,!0),e.watch("terms",He);function Ee(){let C=e.conference;if(e.conference_data=null,!C)return;let P=e.isUpdate&&C===e._originalConference;t.get("/api/conferences/"+C).then(B=>{e.conference===C&&(e.conference_data=B.data,e.conference_data.startDate=new Date(e.conference_data.startDate),e.conference_data.endDate=new Date(e.conference_data.endDate),!P&&(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===C&&(e.conference_data=null)})}function F(){U("repoId","used",!0),U("repoId","format",!0),U("pullRequestId","used",!0),U("pullRequestId","format",!0),U("gistId","used",!0),U("gistId","format",!0),U("sourceUrl","used",!0),U("sourceUrl","missing",!0),U("sourceUrl","access",!0),U("sourceUrl","github",!0),U("commit","exists",!0),U("conference","activated",!0),U("terms","format",!0),e.termsRegexWarning=!1}function oe(){let C=e.anonymize&&e.anonymize.expirationDate;return!e.options.expirationDate||C&&C.invalid?(C&&C.setDirty&&C.setDirty(),e.error="Please choose a valid expiration date.",!0):!1}function Q(C){let P=e.detectedType==="pr"?"pullRequestId":e.detectedType==="gist"?"gistId":"repoId";switch(C){case"repoId_already_used":U(P,"used",!1);break;case"invalid_repoId":U(P,"format",!1);break;case"options_not_provided":U(P,"format",!1);break;case"repo_already_anonymized":U("sourceUrl","used",!1);break;case"invalid_terms_format":U("terms","format",!1);break;case"repo_not_found":U("sourceUrl","missing",!1);break;case"repo_not_accessible":U("sourceUrl","access",!1);break;case"commit_not_found":U("commit","exists",!1);break;case"conf_not_activated":U("conference","activated",!1);break}}e.coauthors=e.coauthors||[],e.coauthorResults=[],e.coauthorError="",e.searchCoauthors=()=>{let C=(e.coauthorSearch||"").trim();if(e.coauthorError="",C.length<2){e.coauthorResults=[];return}t.get("/api/user/search/github-users",{params:{q:C}}).then(P=>{let B=new Set((e.coauthors||[]).map(M=>(M.username||"").toLowerCase()));e.coauthorResults=(P.data||[]).filter(M=>!B.has((M.username||"").toLowerCase()))},()=>{e.coauthorResults=[]})},e.addCoauthor=(C,P)=>{P&&P.preventDefault(),!(!C||!C.username)&&t.post("/api/repo/"+e.repoId+"/coauthors",{username:C.username}).then(B=>{e.coauthors=B.data||[],e.coauthorResults=[],e.coauthorSearch="",e.coauthorError=""},B=>{let M=B&&B.data&&B.data.error||"unknown_error";e.coauthorError=M})},e.removeCoauthor=C=>{!C||!C.username||confirm("Remove co-author "+C.username+"?")&&t.delete("/api/repo/"+e.repoId+"/coauthors/"+encodeURIComponent(C.username)).then(P=>{e.coauthors=P.data||[]},P=>{let B=P&&P.data&&P.data.error||"unknown_error";e.coauthorError=B})},e.anonymizeRepo=C=>{if(e.sourceLoading){e.error="Wait for the source to finish loading before saving.";return}if(e.reconnectingSource&&!e.reconnectRepositoryId||oe())return;if(e.anonymize?.invalid||e.sourceUrlError){e.error="Please correct the highlighted fields before saving.";return}let P=C.currentTarget||C.target.closest?.("button")||C.target;P.disabled=!0;let B=parseGithubUrl(e.sourceUrl),M={repoId:e.repoId,terms:e.terms.trim().split(`
`).filter(S=>S),connection:e.githubConnection,fullName:`${B.owner}/${B.repo}`,repository:e.sourceUrl,reconnectRepositoryId:e.reconnectRepositoryId,options:e.options,source:e.source,conference:e.conference};e.details&&(M.options.pageSource=e.details.pageSource),F();let g=e.isUpdate?"/api/repo/"+e.repoId:"/api/repo/";t.post(g,M,{headers:{"Content-Type":"application/json"}}).then(()=>{D.clear(),window.location.href="/status/"+e.repoId},S=>{S.data&&(i("ERRORS."+S.data.error).then(V=>{e.error=V},console.error),Q(S.data.error))}).finally(()=>{P.disabled=!1})},e.anonymizeGist=C=>{if(e.sourceLoading){e.error="Wait for the source to finish loading before saving.";return}if(oe())return;if(e.anonymize?.invalid||e.sourceUrlError){e.error="Please correct the highlighted fields before saving.";return}let P=C.currentTarget||C.target.closest?.("button")||C.target;P.disabled=!0;let B=parseGithubUrl(e.sourceUrl),M={gistId:e.gistId,terms:e.terms.trim().split(`
`).filter(S=>S),source:{gistId:B.gistId},options:e.options,conference:e.conference};F();let g=e.isUpdate?"/api/gist/"+e.gistId:"/api/gist/";t.post(g,M,{headers:{"Content-Type":"application/json"}}).then(()=>{D.clear(),window.location.href="/gist/"+e.gistId},S=>{S.data&&(i("ERRORS."+S.data.error).then(V=>{e.error=V},console.error),Q(S.data.error))}).finally(()=>{P.disabled=!1})},e.anonymizePullRequest=C=>{if(e.sourceLoading){e.error="Wait for the source to finish loading before saving.";return}if(oe())return;if(e.anonymize?.invalid||e.sourceUrlError){e.error="Please correct the highlighted fields before saving.";return}let P=C.currentTarget||C.target.closest?.("button")||C.target;P.disabled=!0;let B=parseGithubUrl(e.sourceUrl),M={pullRequestId:e.pullRequestId,connection:e.githubConnection,terms:e.terms.trim().split(`
`).filter(S=>S),source:{repositoryFullName:`${B.owner}/${B.repo}`,pullRequestId:B.pullRequestId},options:e.options,conference:e.conference};F();let g=e.isUpdate?"/api/pr/"+e.pullRequestId:"/api/pr/";t.post(g,M,{headers:{"Content-Type":"application/json"}}).then(()=>{D.clear(),window.location.href="/pr/"+e.pullRequestId},S=>{S.data&&(i("ERRORS."+S.data.error).then(V=>{e.error=V},console.error),Q(S.data.error))}).finally(()=>{P.disabled=!1})},e.watch("conference",()=>{Ee()}),e.watch("terms",()=>{e.detectedType==="repo"&&ue(),e.detectedType==="pr"&&_e(),e.detectedType==="gist"&&Pe()}),e.watch("options.image",()=>{e.detectedType==="repo"&&ue(),e.detectedType==="pr"&&_e(),e.detectedType==="gist"&&Pe()}),e.watch("options.link",()=>{e.detectedType==="repo"&&ue(),e.detectedType==="pr"&&_e(),e.detectedType==="gist"&&Pe()}),e.watch("details",()=>{e.detectedType==="pr"&&_e(),e.detectedType==="gist"&&Pe()},!0)},nr=function(e,t,s,r,n,i){let a=ct();window.Prism?.hooks&&!window.Prism.redactionHook&&(window.Prism.hooks.add("complete",O=>Ha(O.element)),window.Prism.redactionHook=!0);let u=Jt();e.on("dark-mode",(O,Y)=>{e.aceOption&&(Y?e.aceOption.theme="nord_dark":e.aceOption.theme="chrome")});let f=0,v=!1;e.on("dispose",()=>{v=!0,f++,h&&h.resolve()}),e.files=[],e.isMac=/Mac|iPhone|iPad|iPod/.test(navigator.platform||navigator.userAgent),e.fileSearchQuery="",e.fileSearchResults=null,e.fileSearchLoading=!1,u(document,"keydown",function(O){if((O.metaKey||O.ctrlKey)&&O.key==="k"){O.preventDefault();var Y=document.querySelector(".tree-search-input");Y&&(Y.focus(),Y.select())}});var h=null;e.onFileSearchChange=function(){h&&(h.resolve(),h=null);let O=e.fileSearchQuery;if(!O||O.length<2){e.fileSearchResults=null,e.fileSearchLoading=!1;return}e.fileSearchLoading=!0;let Y=i.defer();h=Y,t.get(`/api/repo/${e.repoId}/files/search?q=${encodeURIComponent(O)}`,{timeout:Y.promise}).then(function(Z){if(!(v||h!==Y)){h=null,e.fileSearchLoading=!1;var te={};e.files.forEach(function(F){te[(F.path||"")+"/"+F.name]=!0});for(var J=[],se={},ue=0;ue<Z.data.length;ue++){var pe=Z.data[ue];if(pe.path)for(var le=pe.path.split("/"),Oe="",_e=0;_e<le.length;_e++){var Ue=Oe;Oe=Oe?Oe+"/"+le[_e]:le[_e];var Re=Ue+"/"+le[_e];!te[Re]&&!se[Re]&&(se[Re]=!0,J.push({name:le[_e],path:Ue}))}}J.sort(function(F,oe){return(F.path||"").split("/").length-(oe.path||"").split("/").length}),J.length>0&&e.files.push.apply(e.files,J);for(var $e=[],Pe=0;Pe<Z.data.length;Pe++){var He=Z.data[Pe],Ee=(He.path||"")+"/"+He.name;!te[Ee]&&He.size!=null&&($e.push(He),te[Ee]=!0)}$e.length>0&&e.files.push.apply(e.files,$e),e.fileSearchResults=Z.data}},function(){!v&&h===Y&&(h=null,e.fileSearchLoading=!1,e.fileSearchResults=[])})};let k={yml:"yaml",txt:"text",py:"python",js:"javascript",ts:"typescript"},m=["license","txt"],E=["png","jpg","jpeg","gif","svg","ico","bmp","tiff","tif","webp","avif","heif","heic"],y=["wav","mp3","ogg","wma","flac","aac","m4a"],w=["mp4","avi","webm","mov","mpg","mpeg","mkv","flv","wmv","3gp","3g2","m4v","f4v","f4p","f4a","f4b"];e.on("routeUpdate",function(O,Y){if(e.repoId!=r.repoId)return _();if((r.path||"")!=e.filePath){e.filePath=r.path||"",e.paths=e.filePath.split("/").filter(Z=>Z&&Z.trim().length>0),ie();for(let Z=0;Z<e.paths.length-1;Z++){let te=Z>0?e.paths.slice(0,Z).join("/"):"";e.files.some(se=>se.path===te)||e.getFiles(te)}}});function D(){if(e.paths[0]!="")return;let O=["readme.md","readme.txt","readme.org","readme.1st","readme"],Y={};for(let te of e.files)te.name.toLowerCase().indexOf("readme")>-1&&(Y[te.name.toLowerCase()]=te.name);let Z=null;for(let te of O)if(Y[te]){Z=te;break}if(!Z&&Object.keys(Y).length>0&&(Z=Object.keys(Y)[0]),Z){let te=s.url();te[te.length-1]!="/"&&(te+="/"),s.url(te+encodePathForUrl(Y[Z]))}}e.fileCounts=null,e.getFiles=function(O){let Y=e.repoId;return t.get(`/api/repo/${e.repoId}/files/?path=${encodeURIComponent(O)}&v=${e.options.lastUpdateDate}`).then(function(Z){if(v||Y!==e.repoId)return[];let te=O||"";return e.files=e.files.filter(J=>J.path!==te),e.files.push(...Z.data),Z.data},function(Z){if(v||Y!==e.repoId)return[];e.type="error",e.content=Z&&Z.data&&Z.data.error||"unknown_error",e.files=[]})};function R(){let O=e.repoId;t.get(`/api/repo/${e.repoId}/files/counts`).then(function(Y){v||O!==e.repoId||(e.fileCounts=Y.data)},function(){e.fileCounts={}})}function T(){return e.files.filter(O=>O.name==e.paths[e.paths.length-1]&&O.path==e.paths.slice(0,e.paths.length-1).join("/"))[0]}var I=null;e.on("dispose",function(){I&&a.interval.cancel(I)});function H(O){if(v)return;let Y=e.repoId;t.get(`/api/repo/${e.repoId}/options`).then(Z=>{if(!(v||Y!==e.repoId)){if(e.options=Z.data,e.options.url){window.location=e.options.url;return}O&&O(Z.data)}},Z=>{if(!(v||Y!==e.repoId)){var te=Z.data||{};if(te.error==="rate_limited"&&te.resetAt){let se=function(){var ue=Math.max(0,Math.ceil((e.rateLimitResetAt-Date.now())/1e3));if(ue<=0)e.rateLimitCountdown="",e.rateLimitResetAt=0,I&&(a.interval.cancel(I),I=null),H(O);else{var pe=Math.floor(ue/60),le=ue%60;e.rateLimitCountdown=pe>0?pe+"m "+le+"s":le+"s"}};var J=se;e.type="rate_limited",e.rateLimitResetAt=te.resetAt,I&&a.interval.cancel(I),se(),I=a.interval(se,1e3)}else te.error==="repository_not_ready"?(e.type="loading",a.timeout(function(){H(O)},3e3)):(e.type="error",e.content=te.error)}})}e.toggleSource=function(){e.showSource=!e.showSource},e.toggleAllowScripts=function(){e.allowScripts=!e.allowScripts};function q(O){return k[O]?k[O]:O}function U(O){return O=="pdf"?"pdf":O=="html"||O=="htm"?"html-doc":O=="md"?"md":O=="org"?"org":O=="ipynb"?"IPython":m.indexOf(O)>-1?"text":E.indexOf(O)>-1?"image":w.indexOf(O)>-1?"media":y.indexOf(O)>-1?"audio":"code"}function ae(O,Y){let Z=f;if(!O){e.type="error",e.content="no_file_selected";return}let te=e.type;e.type="loading",e.content="loading";let J=Y&&Y.sha||"0";t.get(`/api/repo/${e.repoId}/file/${encodePathForUrl(O)}?v=`+J,{transformResponse:se=>se}).then(se=>{if(!(v||Z!==f)){if(e.type=te,e.content=se.data,e.content==""&&(e.content=null),e.type=="md"&&(e.content=renderMD(se.data,s.url()+"/../"),e.type="html"),e.type=="org"){let pe=contentAbs2Relative(se.data);var ue=new Org.Parser().parse(pe).convert(Org.ConverterHTML,{headerOffset:1,exportFromLineNumber:!1,suppressSubScriptHandling:!0,suppressAutoLink:!1});e.content=DOMPurify.sanitize(ue.toString()),e.type="html"}e.type=="code"&&se.headers("content-type")=="application/octet-stream"&&(e.type="binary",e.content="binary"),a.timeout(()=>{Prism.highlightAll()},50)}},se=>{if(!(v||Z!==f)){e.type="error",e.content="unknown_error";try{se.data=JSON.parse(se.data),se.data.error?e.content=se.data.error:e.content=se.data}catch{console.log(se),se.status==-1?e.content="request_error":se.status==502&&(e.content="unreachable")}}})}function ie(){f++,e.content="",e.file=T();let O="0";e.file&&e.file.sha&&(O=e.file.sha),e.url=`/api/repo/${e.repoId}/file/${encodePathForUrl(e.filePath)}?v=${O}`;let Y=e.filePath.substring(0,e.filePath.lastIndexOf("/")+1);e.fileBaseUrl=`/api/repo/${e.repoId}/file/${Y?encodePathForUrl(Y):""}`,e.showSource=!1,e.allowScripts=!1;let Z=e.filePath.toLowerCase(),te=Z.lastIndexOf(".");if(te>-1&&(Z=Z.substring(te+1)),e.aceOption={readOnly:!0,useWrapMode:!0,showGutter:!0,theme:"chrome",useSoftTab:!0,tabSize:2,fontSize:13,keyBinding:"vscode",fullLineSelection:!0,highlightActiveLine:!1,highlightGutterLine:!1,cursor:"hide",showInvisibles:!1,showIndentGuides:!0,showPrintMargin:!1,highlightSelectedWord:!1,enableBehaviours:!0,fadeFoldWidgets:!1,mode:q(Z),onLoad:function(J){let se=ace.require("ace/range").Range,ue=null;function pe(Ee,F){ue!==null&&(J.session.removeMarker(ue),ue=null),Ee!=null&&(ue=J.session.addMarker(new se(Ee,0,F,1),"highlighted-line","fullLine"))}function le(Ee){let F=window.location.hash.match(/^#L(\d+)(?:-L(\d+))?/);if(!F){pe(null);return}let oe=parseInt(F[1])-1,Q=F[2]?parseInt(F[2])-1:oe;pe(oe,Q),Ee&&a.timeout(()=>{J.scrollToLine(oe,!0,!0,function(){})},100)}le(!0);let Oe=null;J.on("guttermousedown",function(Ee){let F=Ee.getDocumentPosition().row,oe=Ee.domEvent&&Ee.domEvent.shiftKey,Q=F,C=F;oe&&Oe!==null?(Q=Math.min(Oe,F),C=Math.max(Oe,F)):Oe=F;let P=Q===C?`#L${Q+1}`:`#L${Q+1}-L${C+1}`,B=window.location.pathname+window.location.search+P;window.history.replaceState(null,"",B),pe(Q,C),Ee.stop()});let _e=u(window,"hashchange",()=>le(!1));J.setFontSize(e.aceOption.fontSize),J.setReadOnly(e.aceOption.readOnly),J.setKeyboardHandler(e.aceOption.keyBinding),J.setSelectionStyle(e.aceOption.fullLineSelection?"line":"text"),J.setOption("displayIndentGuides",!0),J.setHighlightActiveLine(e.aceOption.highlightActiveLine),e.aceOption.cursor=="hide"&&(J.renderer.$cursorLayer.element.style.display="none"),J.setHighlightGutterLine(e.aceOption.highlightGutterLine),J.setShowInvisibles(e.aceOption.showInvisibles),J.setDisplayIndentGuides(e.aceOption.showIndentGuides),J.renderer.setShowPrintMargin(e.aceOption.showPrintMargin),J.setHighlightSelectedWord(e.aceOption.highlightSelectedWord),J.session.setUseSoftTabs(e.aceOption.useSoftTab),J.session.setTabSize(e.aceOption.tabSize);let Ue=window.matchMedia("(max-width: 991px)"),Re=()=>J.session.setUseWrapMode(e.aceOption.useWrapMode&&Ue.matches);Re(),Ue.addEventListener?.("change",Re),J.setBehavioursEnabled(e.aceOption.enableBehaviours),J.setFadeFoldWidgets(e.aceOption.fadeFoldWidgets);let $e=[],Pe=()=>{$e.forEach(oe=>J.session.removeMarker(oe)),$e=[];let Ee=za();if(!Ee)return;J.session.getDocument().getAllLines().forEach((oe,Q)=>{for(let C of oe.matchAll(Ee))$e.push(J.session.addMarker(new se(Q,C.index,Q,C.index+C[0].length),"ace_redaction","text"))})};Pe(),J.session.on("change",()=>a.timeout(Pe,0));let He=e.on("site-options",Pe);return()=>{_e(),He(),Ue.removeEventListener?.("change",Re)}}},e.isDarkMode&&(e.aceOption.theme="nord_dark"),e.type=U(Z),e.type=="pdf"){e.content="pdf";return}ae(e.filePath,e.file)}function _(){f++,e.files=[],e.content=null,e.fileCounts=null,e.fileSearchQuery="",e.onFileSearchChange(),e.repoId=r.repoId,e.type="loading",e.filePath=r.path||"",e.paths=e.filePath.split("/");let O=e.repoId;H(function(Y){R();var Z=i.resolve();for(let te=0;te<e.paths.length;te++){let J=te>0?e.paths.slice(0,te).join("/"):"";Z=Z.then(function(){return e.getFiles(J)}).then(function(){if(e.type==="error")return i.reject("error")})}Z.then(function(){v||O!==e.repoId||(e.files.length==1&&e.files[0].name==""?(e.files=[],e.type="empty"):(D(),ie()))})})}_()},Za=function(e,t,s,r,n){async function i(f){t.get(`/api/pr/${e.pullRequestId}/options`).then(v=>{if(e.options=v.data,e.options.url){window.location=e.options.url;return}f&&f(v.data)},v=>{e.type="error",e.content=v.data.error})}async function a(f){t.get(`/api/pr/${e.pullRequestId}/content`).then(v=>{e.details=v.data,e.tabState={active:v.data.diff?"diff":"comments"},f&&f(v.data)},v=>{e.type="error",e.content=v.data.error})}function u(){e.pullRequestId=r.pullRequestId,e.type="loading",i(f=>{a()})}u()},xa=function(e,t,s,r,n){async function i(f){t.get(`/api/gist/${e.gistId}/options`).then(v=>{if(e.options=v.data,e.options.url){window.location=e.options.url;return}f&&f(v.data)},v=>{e.type="error",e.content=v.data.error})}async function a(f){t.get(`/api/gist/${e.gistId}/content`).then(v=>{e.details=v.data;let h=v.data&&v.data.files&&v.data.files.length;e.tabState={active:h?"files":"comments"},f&&f(v.data)},v=>{e.type="error",e.content=v.data.error})}function u(){e.gistId=r.gistId,e.type="loading",i(()=>{a()})}u()},el=function(e,t,s){e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.conferences=[],e.loading=!0,e.error="",e.search="";let r="conferences.filterPrefs",n={filters:{status:{ready:!0,expired:!1,removed:!1}},orderBy:"name"},i=loadFilterPrefs(r)||{};e.filters={status:Object.assign({},n.filters.status,i.filters&&i.filters.status||{})},e.orderBy=i.orderBy||n.orderBy,e.watch("orderBy",()=>{saveFilterPrefs(r,{filters:e.filters,orderBy:e.orderBy})}),e.watch("filters",()=>{saveFilterPrefs(r,{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 u=ze({title:`Removing ${a.name}...`,date:new Date,body:`The conference ${a.name} is going to be removed.`});e.addToast(u),t.delete(`/api/conferences/${a.conferenceID}`).then(()=>{u.title=`${a.name} is removed.`,u.body=`The conference ${a.name} is removed.`,e.loadConferences()}).catch(()=>{u.title="Unable to remove conference",u.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 u=e.search.trim().toLowerCase();return!!(!u||(a.name||"").toLowerCase().includes(u)||(a.conferenceID||"").toLowerCase().includes(u))}},rr=function(e,t,s,r){e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.plans=[],e.editionMode=!1,e.saving=!1,e.error="";function n(){t.get("/api/conferences/"+r.conferenceId).then(h=>{e.options={...e.options,...h.data,billing:h.data.billing||{}},e.options.startDate=new Date(e.options.startDate),e.options.endDate=new Date(e.options.endDate)})}r.conferenceId&&(e.editionMode=!0,n());function i(){t.get("/api/conferences/plans").then(h=>{e.plans=h.data,e.plan=e.plans.filter(k=>k.id==e.options.plan.planID)[0]})}i();let a=new Date;a.setDate(1),a.setMonth(a.getMonth()+1);let u=new Date(a);u.setMonth(a.getMonth()+7,0),e.options={billing:{},startDate:a,endDate:u,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(h=>h.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 v(h){switch(h){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 h=JSON.parse(JSON.stringify(e.options)),k=ze({title:`Creating ${h.name}...`,date:new Date,body:`The conference ${h.conferenceID} is in creation.`});e.editionMode&&(k.title=`Updating ${h.name}...`,k.body=`The conference '${h.conferenceID}' is updating.`),e.addToast(k),f(),t.post("/api/conferences/"+(e.editionMode?h.conferenceID:""),h).then(()=>{e.editionMode?(k.title=`${h.name} updated`,k.body=`The conference '${h.conferenceID}' is updated.`):(k.title=`${h.name} created`,k.body=`The conference '${h.conferenceID}' is created.`),s.url("/conference/"+h.conferenceID)},m=>{v(m.data?.error),e.error="Unable to save the conference. Please correct any highlighted fields and try again.",e.removeToast(k)}).finally(()=>{e.saving=!1})}},tl=function(e,t,s,r){e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.conference=null,e.search="",e.filters={status:{ready:!0,expired:!1,removed:!1}},e.orderBy="-anonymizeDate",e.repoFiler=i=>{if(e.filters.status[i.status]==!1)return!1;let a=e.search.trim().toLowerCase();return!!(!a||(i.source?.fullName||"").toLowerCase().includes(a)||(i.repoId||"").toLowerCase().includes(a))};function n(){t.get("/api/conferences/"+r.conferenceId).then(i=>{e.conference=i.data})}n()},ol=function(e,t){e.connections=null,e.connectionError="",e.busy=!1,e.loadConnections=()=>t.get("/github/connections").then(s=>{e.connections=s.data}).catch(s=>{e.connectionError=s.data?.error||"Unable to load connections."}),e.changeConnection=async(s,r,n)=>{e.busy=!0,e.connectionError="";try{let i=await t.post("/github/connections/migrate",{type:s.type,id:s.id,connection:r,preview:n},{headers:{"X-CSRF-Token":e.connections.csrf}});n?s.eligible=i.data.eligible:await e.loadConnections()}catch(i){e.connectionError=i.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(s){e.connectionError=s.data?.error||"Unable to disconnect OAuth."}finally{e.busy=!1}},e.loadConnections()},sl=function(e,t){e.accountRecovery=!1,t.get("/github/account-recovery").then(s=>{e.accountRecovery=s.data.required}).catch(()=>{})};var nl=function(e,t,s){let r=ct(),n=Jt();e.Math=Math,e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.repositories=[],e.total=-1,e.totalPage=0,e.statusCounts=[],e.totalSize=0,e.selected={},e.allSelected=!1;let i=y=>{if(y.key==="/"&&!["INPUT","TEXTAREA","SELECT"].includes(document.activeElement?.tagName)){y.preventDefault();let w=document.querySelector('.admin-filter-toolbar input[type="search"]');w&&w.focus()}};n(document,"keydown",i),e.on("dispose",()=>document.removeEventListener("keydown",i)),e.clearFilter=y=>{y==="dateRange"?(e.query.dateFrom="",e.query.dateTo=""):e.query[y]="",e.query.page=1},e.chips=[];let a=()=>{let y=[];e.query.owner&&y.push({key:"owner",label:"Owner",value:e.query.owner}),e.query.conference&&y.push({key:"conference",label:"Conference",value:e.query.conference}),e.chips=y};e.showStatusMessage=y=>{let w=y.statusMessage||"(no message)";window.prompt(`Status message for ${y.repoId} (${y.status}):`,w)},e.fetchGithubInfo=y=>{let w=window.open("","_blank");w&&w.document.write("<pre>Loading GitHub info for "+y.repoId+"...</pre>"),t.get("/api/admin/repos/"+y.repoId+"/github").then(D=>{w&&(w.document.open(),w.document.write('<pre style="font:13px monospace;padding:16px;white-space:pre-wrap">'+JSON.stringify(D.data,null,2).replace(/[<>]/g,R=>R==="<"?"&lt;":"&gt;")+"</pre>"),w.document.close())},D=>{let R=D&&D.data?JSON.stringify(D.data,null,2):String(D);w&&(w.document.body.innerHTML='<pre style="color:#B42318;padding:16px">'+R+"</pre>")})},e.statusCountFor=y=>{let w=(e.statusCounts||[]).find(D=>D._id===y);return w?w.count:0},e.statusStorageFor=y=>{let w=(e.statusCounts||[]).find(D=>D._id===y);return w?w.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=y=>{e.query.sort===y?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=y,e.query.direction="desc"),e.query.page=1},e.sortIcon=y=>e.query.sort===y?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"";let u="admin.repos.filterPrefs",f={page:1,limit:25,sort:"lastView",direction:"desc",search:"",owner:"",conference:"",dateFrom:"",dateTo:"",ready:!1,expired:!1,removed:!1,error:!0,preparing:!0},v=loadFilterPrefs(u)||{};e.query=Object.assign({},f,v,{page:1,search:""});let h=s.search();h.owner&&(e.query.owner=h.owner),h.conference&&(e.query.conference=h.conference),h.search&&(e.query.search=h.search);let k="admin.repos.presets";e.presets=JSON.parse(localStorage.getItem(k)||"[]"),e.savePreset=()=>{let y=window.prompt("Preset name:");if(!y)return;let w=Object.assign({},e.query);delete w.page,e.presets=(e.presets||[]).filter(D=>D.name!==y),e.presets.push({name:y,query:w}),localStorage.setItem(k,JSON.stringify(e.presets))},e.applyPreset=y=>{Object.assign(e.query,y.query,{page:1})},e.deletePreset=y=>{e.presets=(e.presets||[]).filter(w=>w.name!==y.name),localStorage.setItem(k,JSON.stringify(e.presets))},e.selectAllOnPage=()=>{e.allSelected=!e.allSelected,e.repositories.forEach(y=>{e.selected[y.repoId]=e.allSelected})},e.selectedCount=()=>Object.values(e.selected||{}).filter(Boolean).length,e.selectedRepos=()=>e.repositories.filter(y=>e.selected[y.repoId]),e.bulkRefresh=()=>{let y=e.selectedRepos();y.length&&confirm(`Force refresh ${y.length} repositories?`)&&y.forEach(w=>e.updateRepository(w))},e.bulkRemoveCache=()=>{let y=e.selectedRepos();y.length&&confirm(`Purge cache for ${y.length} repositories?`)&&y.forEach(w=>e.removeCache(w))},e.clearSelection=()=>{e.selected={},e.allSelected=!1},e.exportCsv=()=>{let y=new URLSearchParams(Object.entries(e.query).filter(([,w])=>w!==""&&w!==!1&&w!=null));y.set("format","csv"),y.set("limit","10000"),window.open("/api/admin/repos?"+y.toString(),"_blank")},e.removeCache=y=>{confirm("Remove cached files for "+y.repoId+"?")&&t.delete("/api/admin/repos/"+y.repoId).then(()=>m(),w=>console.error(w))},e.removeRepository=y=>{confirm("Remove repository "+y.repoId+"?")&&t.delete("/api/repo/"+y.repoId+"/").then(()=>m(),w=>console.error(w))},e.updateRepository=y=>{let w=ze({title:`Refreshing ${y.repoId}...`,date:new Date,body:`The repository ${y.repoId} is going to be refreshed.`});e.toasts.push(w),t.post(`/api/repo/${y.repoId}/refresh`).then(D=>{D.data.status=="ready"?w.title=`${y.repoId} is refreshed.`:w.title=`Refreshing of ${y.repoId}.`},D=>{w.title=`Error during the refresh of ${y.repoId}.`,w.body=D.body})},e.fetchError=null;function m(){e.fetchError=null,t.get("/api/admin/repos",{params:e.query}).then(y=>{e.total=y.data.total,e.totalPage=Math.ceil(y.data.total/e.query.limit),e.repositories=y.data.results,e.statusCounts=y.data.statusCounts||[],e.totalSize=y.data.totalSize||0,e.allSelected=!1},y=>{e.fetchError=y&&y.data&&y.data.error||"Failed to load repositories",console.error(y)})}m();let E=null;e.watch("query",()=>{r.timeout.cancel(E),E=r.timeout(m,500);let{page:y,search:w,...D}=e.query;saveFilterPrefs(u,D),a()},!0),a()},rl=function(e,t,s){let r=ct(),n=Jt();e.Math=Math,e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.users=[],e.total=-1,e.totalPage=0,e.statusCounts=[],e.selected={},e.allSelected=!1;let i=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()}};n(document,"keydown",i),e.on("dispose",()=>document.removeEventListener("keydown",i)),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(y=>y._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 u="admin.users.filterPrefs",f={page:1,limit:25,sort:"username",direction:"asc",search:"",status:"",role:"",dateFrom:"",dateTo:""},v=loadFilterPrefs(u)||{};e.query=Object.assign({},f,v,{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(h,E=>console.error(E))},e.activateUser=m=>{t.post(`/api/admin/users/${m.username}/activate`).then(h,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 h(){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)})}h();let k=null;e.watch("query",()=>{r.timeout.cancel(k),k=r.timeout(h,500);let{page:m,search:E,...y}=e.query;saveFilterPrefs(u,y),a()},!0),a()},il=function(e,t,s,r){let n=ct();e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.userInfo,e.repositories=[],e.search="",e.selected={},e.allSelected=!1;let i="admin.user.filterPrefs",a={filters:{status:{ready:!0,expired:!0,removed:!0,error:!0,preparing:!0}},sort:"anonymizeDate",direction:"desc"},u=loadFilterPrefs(i)||{};e.filters={status:Object.assign({},a.filters.status,u.filters&&u.filters.status||{})},e.query={sort:u.sort||a.sort,direction:u.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(i,{filters:e.filters,sort:e.query.sort,direction:e.query.direction})},!0),e.watch("filters",()=>{saveFilterPrefs(i,{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,y=["repoId","status","statusMessage","pageView","anonymizeDate","source.fullName","conference","size.storage"].join(","),w=m.map(T=>[T.repoId,T.status,T.statusMessage||"",T.pageView||0,T.anonymizeDate||"",T.source&&T.source.fullName||"",T.conference||"",T.size&&T.size.storage||0].map(I=>{let H=String(I??"");return/[",\n\r]/.test(H)?'"'+H.replace(/"/g,'""')+'"':H}).join(",")),D=new Blob([y+`
`+w.join(`
`)],{type:"text/csv"}),R=document.createElement("a");R.href=URL.createObjectURL(D),R.download=r.username+"-repositories.csv",R.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(y=>{E&&(E.document.open(),E.document.write('<pre style="font:13px monospace;padding:16px;white-space:pre-wrap">'+JSON.stringify(y.data,null,2).replace(/[<>]/g,w=>w==="<"?"&lt;":"&gt;")+"</pre>"),E.document.close())},y=>{let w=y&&y.data?JSON.stringify(y.data,null,2):String(y);E&&(E.document.body.innerHTML='<pre style="color:#B42318;padding:16px">'+w+"</pre>")})};function f(m){t.get("/api/admin/users/"+m+"/repos",{}).then(E=>{e.repositories=E.data},E=>{console.error(E)})}function v(m){t.get("/api/admin/users/"+m,{}).then(E=>{e.userInfo=E.data},E=>{console.error(E)})}v(r.username),f(r.username),e.banUser=()=>{confirm(`Ban user ${r.username}?`)&&t.post(`/api/admin/users/${r.username}/ban`).then(()=>v(r.username),m=>console.error(m))},e.activateUser=()=>{t.post(`/api/admin/users/${r.username}/activate`).then(()=>v(r.username),m=>console.error(m))},e.promoteUser=()=>{confirm(`Promote ${r.username} to admin?`)&&t.post(`/api/admin/users/${r.username}/promote`).then(()=>v(r.username),m=>console.error(m))},e.demoteUser=()=>{confirm(`Remove admin privileges from ${r.username}?`)&&t.post(`/api/admin/users/${r.username}/demote`).then(()=>v(r.username),m=>console.error(m))},e.tokens=[],e.tokenForm={name:"",plaintext:null};function h(){t.get("/api/admin/tokens").then(m=>{e.tokens=m.data||[]},m=>{m.status!==401&&m.status!==403&&console.error(m)})}h(),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="",h()},m=>console.error(m))},e.revokeToken=m=>{confirm(`Revoke token "${m.name}"?`)&&t.delete("/api/admin/tokens/"+m.id).then(()=>h(),E=>console.error(E))},e.removeCache=m=>{confirm("Remove cached files for "+m.repoId+"?")&&t.delete("/api/admin/repos/"+m.repoId).then(()=>f(r.username),E=>console.error(E))},e.removeRepository=m=>{confirm("Remove repository "+m.repoId+"?")&&t.delete("/api/repo/"+m.repoId+"/").then(()=>f(r.username),E=>console.error(E))},e.updateRepository=m=>{let E=ze({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(y=>{y.data.status=="ready"?E.title=`${m.repoId} is refreshed.`:E.title=`Refreshing of ${m.repoId}.`},y=>{E.title=`Error during the refresh of ${m.repoId}.`,E.body=y.body})},e.getGitHubRepositories=m=>{t.get(`/api/user/${e.userInfo.username}/all_repositories`,{params:{force:"1"}}).then(E=>{e.userInfo.repositories=E.data})};let k=null;e.watch("query",()=>{n.timeout.cancel(k),k=n.timeout(()=>{f(r.username)},500)},!0)},al=function(e,t,s){let r=ct(),n=Jt();e.Math=Math,e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.conferences=[],e.total=-1,e.totalPage=0,e.statusCounts=[];let i=y=>{if(y.key==="/"&&!["INPUT","TEXTAREA","SELECT"].includes(document.activeElement?.tagName)){y.preventDefault();let w=document.querySelector('.admin-filter-toolbar input[type="search"]');w&&w.focus()}};n(document,"keydown",i),e.on("dispose",()=>document.removeEventListener("keydown",i)),e.clearFilter=y=>{y==="dateRange"?(e.query.dateFrom="",e.query.dateTo=""):e.query[y]="",e.query.page=1},e.chips=[];let a=()=>{let y=[];(e.query.dateFrom||e.query.dateTo)&&y.push({key:"dateRange",label:"Date",value:(e.query.dateFrom||"\u2026")+" \u2013 "+(e.query.dateTo||"\u2026")}),e.chips=y};e.statusCountFor=y=>{let w=(e.statusCounts||[]).find(D=>D._id===y);return w?w.count:0},e.toggleSortDirection=()=>{e.query.direction=e.query.direction==="asc"?"desc":"asc"},e.sortBy=y=>{e.query.sort===y?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=y,e.query.direction="desc"),e.query.page=1},e.sortIcon=y=>e.query.sort===y?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"";let u="admin.conferences.filterPrefs",f={page:1,limit:25,sort:"name",direction:"asc",search:"",dateFrom:"",dateTo:"",ready:!1,expired:!1,removed:!1,error:!0,preparing:!0},v=loadFilterPrefs(u)||{};e.query=Object.assign({},f,v,{page:1,search:""});let h=s.search();h.search&&(e.query.search=h.search);let k="admin.conferences.presets";e.presets=JSON.parse(localStorage.getItem(k)||"[]"),e.savePreset=()=>{let y=window.prompt("Preset name:");if(!y)return;let w=Object.assign({},e.query);delete w.page,e.presets=(e.presets||[]).filter(D=>D.name!==y),e.presets.push({name:y,query:w}),localStorage.setItem(k,JSON.stringify(e.presets))},e.applyPreset=y=>{Object.assign(e.query,y.query,{page:1})},e.deletePreset=y=>{e.presets=(e.presets||[]).filter(w=>w.name!==y.name),localStorage.setItem(k,JSON.stringify(e.presets))},e.removeConference=y=>{confirm("Remove conference "+y.conferenceID+"?")&&t.delete("/api/admin/conferences/"+y.conferenceID).then(()=>m(),w=>console.error(w))},e.exportCsv=()=>{let y=new URLSearchParams(Object.entries(e.query).filter(([,w])=>w!==""&&w!==!1&&w!=null));y.set("format","csv"),y.set("limit","10000"),window.open("/api/admin/conferences?"+y.toString(),"_blank")},e.fetchError=null;function m(){e.fetchError=null,t.get("/api/admin/conferences",{params:e.query}).then(y=>{e.total=y.data.total,e.totalPage=Math.ceil(y.data.total/e.query.limit),e.conferences=y.data.results,e.statusCounts=y.data.statusCounts||[]},y=>{e.fetchError=y&&y.data&&y.data.error||"Failed to load conferences",console.error(y)})}m();let E=null;e.watch("query",()=>{r.timeout.cancel(E),E=r.timeout(m,500);let{page:y,search:w,...D}=e.query;saveFilterPrefs(u,D),a()},!0),a()},ll=function(e,t,s,r,n){let i=ct();e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.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(w=>e.stateFilter[w._state]),e.jobProgressPct=w=>w&&w.progress&&typeof w.progress=="object"&&typeof w.progress.percent=="number"?Math.max(0,Math.min(100,Math.round(w.progress.percent))):typeof w.progress=="number"?Math.max(0,Math.min(100,Math.round(w.progress))):null,e.jobDuration=w=>{if(!w.processedOn)return"-";let R=(w.finishedOn||Date.now())-w.processedOn;return R<1e3?R+"ms":(R/1e3).toFixed(1)+"s"},e.metricsPoints=[],e.selectQueue=w=>{e.selectedQueue=w,a(),u()},e.setRange=w=>{e.range=w,u()};function a(){let w={queue:e.selectedQueue,search:e.query.search};t.get("/api/admin/queues",{params:w}).then(D=>{e.queueList=D.data.queues||[],e.jobs=D.data.jobs||[],e.selectedStats=e.queueList.find(R=>R.key===e.selectedQueue)||e.queueList[0]||null},D=>console.error(D))}function u(){t.get("/api/admin/queues/metrics",{params:{queue:e.selectedQueue,range:e.range}}).then(w=>{e.metricsPoints=w.data.points||[],n(m,0)},w=>console.error(w))}a(),u();let f=r(()=>{e.query.autoRefresh&&(a(),u())},15e3);e.on("dispose",()=>r.cancel(f)),e.refreshNow=function(){a(),u()};function v(w){let D=w&&w.data&&(w.data.message||w.data.error)||"Request failed";e.actionError=D,n(()=>{e.actionError=null},5e3),console.error(w)}e.actionError=null,e.removeJob=w=>{t.delete(`/api/admin/queue/${e.selectedQueue}/${w.id}`).then(a,v)},e.retryJob=w=>{t.post(`/api/admin/queue/${e.selectedQueue}/${w.id}`).then(a,v)},e.retryFailed=()=>{confirm(`Retry all failed jobs in ${e.selectedQueue}?`)&&t.post(`/api/admin/queue/${e.selectedQueue}/retry-failed`).then(a,w=>console.error(w))},e.drainSelected=()=>{confirm(`Drain the ${e.selectedQueue} queue?`)&&t.post(`/api/admin/queue/${e.selectedQueue}/drain`).then(a,w=>console.error(w))},e.togglePause=()=>{let w=e.selectedStats&&e.selectedStats.paused?"resume":"pause";t.post(`/api/admin/queue/${e.selectedQueue}/${w}`).then(a,D=>console.error(D))},e.emptyQueue=()=>{confirm(`Empty the ${e.selectedQueue} queue? This removes ALL jobs.`)&&t.post(`/api/admin/queue/${e.selectedQueue}/empty`).then(a,w=>console.error(w))},e.pauseAll=()=>{confirm("Pause all queues?")&&t.post("/api/admin/queues/pause-all").then(a,w=>console.error(w))};let h=null;e.watch("query.search",()=>{i.timeout.cancel(h),h=i.timeout(a,350)}),e.expanded={},e.toggleJob=w=>{e.expanded[w.id]=!e.expanded[w.id]},e.humanTime=w=>{if(!w)return"";let D=new Date(w);return D.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})+" "+D.toLocaleDateString([],{month:"short",day:"numeric"})},e.delayCountdown=w=>{if(!w)return"";var D=Math.max(0,Math.ceil((w-Date.now())/1e3));if(D<=0)return"resuming soon";var R=Math.floor(D/60),T=D%60;return"in "+(R>0?R+"m "+T+"s":T+"s")};function k(w){if(w<=0)return{ticks:[0],niceMax:1};let D=Math.pow(10,Math.floor(Math.log10(w))),R=D;w/R<2?R=D/2:w/R>5&&(R=D*2);let T=Math.ceil(w/R)*R,I=[];for(let H=0;H<=T;H+=R)I.push(H);return{ticks:I,niceMax:T}}function m(){var w=document.getElementById("q-throughput-chart");if(!w)return;var D=w.getContext("2d"),R=window.devicePixelRatio||1,T=w.parentElement.getBoundingClientRect(),I=44,H=50,q=20,U=T.width-40,ae=180,ie=U-I-H,_=ae-q;w.width=U*R,w.height=ae*R,w.style.width=U+"px",w.style.height=ae+"px",D.setTransform(R,0,0,R,0,0);var O=document.body.classList.contains("dark-mode"),Y="#8A857C",Z=O?"rgba(255,255,255,0.06)":"rgba(0,0,0,0.06)",te=O?"#A7B2FF":"#3B4AD6",J=O?"rgba(167,178,255,0.12)":"rgba(59,74,214,0.08)",se=O?"#F08A82":"#B42318",ue=O?"rgba(240,138,130,0.08)":"rgba(180,35,24,0.06)",pe=O?"#F5C842":"#B8860B",le=e.metricsPoints||[];if(le.length===0){D.fillStyle=Y,D.font="12px monospace",D.textAlign="center",D.fillText("No metrics data yet",U/2,ae/2),E=null;return}var Oe=le.map(function(L){return L.completed}),_e=le.map(function(L){return L.failed}),Ue=le.map(function(L){return L.avgMs}),Re=le.length,$e=ie/(Re-1||1),Pe=Math.max(1,Math.max.apply(null,Oe),Math.max.apply(null,_e)),He=k(Pe),Ee=Math.max.apply(null,Ue),F=Ee>0?k(Ee):{ticks:[0],niceMax:1},oe=function(L){return _-L/He.niceMax*(_-10)},Q=function(L){return _-L/F.niceMax*(_-10)},C=function(L){return I+L*$e};D.textAlign="right",D.textBaseline="middle",D.font="10px monospace",He.ticks.forEach(function(L){var G=oe(L);D.strokeStyle=Z,D.lineWidth=1,D.beginPath(),D.moveTo(I,G),D.lineTo(U-H,G),D.stroke(),D.fillStyle=Y,D.fillText(L>=1e3?(L/1e3).toFixed(1)+"k":String(L),I-6,G)}),Ee>0&&(D.textAlign="left",F.ticks.forEach(function(L){var G=Q(L);D.fillStyle=pe,D.fillText(L>=1e3?(L/1e3).toFixed(1)+"s":L+"ms",U-H+6,G)}));var P=Date.now(),B=Math.min(6,Re);D.textAlign="center",D.textBaseline="top";for(var M=0;M<B;M++){var g=Math.round(M/(B-1)*(Re-1)),S=Math.round((P-le[g].ts)/6e4),V=C(g),z;S<=0?z="now":S<60?z=S+"m":S<1440?z=Math.round(S/60)+"h":z=Math.round(S/1440)+"d",D.fillStyle=Y,D.fillText(z,V,_+4)}function j(L,G,ee,x){L.length!==0&&(D.beginPath(),D.moveTo(C(0),_),L.forEach(function(K,fe){var ne=C(fe),de=G(K);if(fe===0)D.lineTo(ne,de);else{var ge=(C(fe-1)+ne)/2;D.bezierCurveTo(ge,G(L[fe-1]),ge,de,ne,de)}}),D.lineTo(C(L.length-1),_),D.closePath(),D.fillStyle=ee,D.fill(),D.beginPath(),L.forEach(function(K,fe){var ne=C(fe),de=G(K);if(fe===0)D.moveTo(ne,de);else{var ge=(C(fe-1)+ne)/2;D.bezierCurveTo(ge,G(L[fe-1]),ge,de,ne,de)}}),D.strokeStyle=x,D.lineWidth=1.5,D.stroke())}j(Oe,oe,J,te),j(_e,oe,ue,se),Ee>0&&(D.beginPath(),Ue.forEach(function(L,G){var ee=C(G),x=Q(L);if(G===0)D.moveTo(ee,x);else{var K=(C(G-1)+ee)/2;D.bezierCurveTo(K,Q(Ue[G-1]),K,x,ee,x)}}),D.strokeStyle=pe,D.lineWidth=1,D.setLineDash([4,3]),D.stroke(),D.setLineDash([])),E={pts:le,maxLen:Re,marginLeft:I,step:$e,totalW:U,toX:C}}var E=null;function y(){var w=document.getElementById("q-throughput-chart");if(!(!w||w._tipBound)){w._tipBound=!0;var D=document.getElementById("q-chart-tooltip"),R=document.getElementById("q-chart-crosshair");w.addEventListener("mousemove",function(T){if(!(!E||!D||!R)){var I=E,H=w.getBoundingClientRect(),q=T.clientX-H.left,U=Math.round((q-I.marginLeft)/I.step);if(U<0||U>=I.maxLen){D.style.display="none",R.style.display="none";return}var ae=I.pts[U],ie=Date.now(),_=Math.round((ie-ae.ts)/6e4),O;if(_<=0)O="now";else if(_<60)O=_+"m ago";else if(_<1440){var Y=Math.floor(_/60),Z=_%60;O=Y+"h"+(Z?" "+Z+"m":"")+" ago"}else O=Math.round(_/1440)+"d ago";var te='<div class="q-tip-time">'+O+'</div><div class="q-tip-completed">&#9679; completed: '+ae.completed+'/min</div><div class="q-tip-failed">&#9679; failed: '+ae.failed+"/min</div>";if(ae.avgMs>0){var J=ae.avgMs>=1e3?(ae.avgMs/1e3).toFixed(1)+"s":ae.avgMs+"ms";te+='<div class="q-tip-exec">&#9679; avg time: '+J+"</div>"}D.innerHTML=te;var se=I.toX(U),ue=D.offsetWidth,pe=se+10;pe+ue>I.totalW&&(pe=se-ue-10),D.style.display="block",D.style.left=pe+"px",D.style.top="8px",R.style.display="block",R.style.left=se+"px"}}),w.addEventListener("mouseleave",function(){D&&(D.style.display="none"),R&&(R.style.display="none")})}}e.watch("metricsPoints",function(){n(y,50)})},dl=function(e,t,s,r){let n=ct();e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.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=R=>{if(!R)return"";let T=new Date(R).getTime();if(isNaN(T))return R;let I=Math.max(0,Date.now()-T),H=Math.floor(I/1e3);if(H<5)return"just now";if(H<60)return`${H}s ago`;let q=Math.floor(H/60);if(q<60)return`${q}m ago`;let U=Math.floor(q/60);if(U<24)return`${U}h ago`;let ae=Math.floor(U/24);return ae<7?`${ae}d ago`:new Date(R).toLocaleDateString()},e.absTime=R=>{if(!R)return"";let T=new Date(R);return isNaN(T.getTime())?R:T.toLocaleString()},e.absTimeShort=R=>{if(!R)return"";let T=new Date(R);return isNaN(T.getTime())?R:T.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})};let i=/^[a-zA-Z][a-zA-Z0-9]*(?:_[a-zA-Z0-9]+)+$/;function a(R,T){let I=R&&(R.httpStatus||R.status)||null;if(typeof I=="number"){if(I>=500)return"error";if(I===401||I===403||I===404)return"info";if(I>=400)return"warn"}return T==="error"?"error":T==="warn"?"warn":"info"}function u(R){let T=(R.raw||[]).find(U=>U&&typeof U=="object"&&!Array.isArray(U));if(T){T.message&&i.test(T.message)?(R.displayMessage=T.message,R.displayContext=R.message):T.code&&i.test(String(T.code))?(R.displayMessage=String(T.code),R.displayContext=R.message):T.name&&T.name!=="AnonymousError"&&T.name!=="Error"?(R.displayMessage=T.name,R.displayContext=T.message||R.message):R.displayMessage=R.message,R._status=T.httpStatus||T.status||null,R._url=T.url||null,R._method=T.method||null,R._repoId=T.repoId||T.detail||null,R._detail=T.detail&&T.detail!==R._repoId?T.detail:null;let U=typeof T.stack=="string"?T.stack:null;for(var I=[T.cause,T.err].filter(Boolean),H=0;!U&&H<I.length;H++)for(var q=I[H];!U&&q&&typeof q=="object";)typeof q.stack=="string"&&(U=q.stack),q=q.cause;R._stack=U}else R.displayMessage=R.message,R._status=null,R._url=null,R._stack=null;return R._bucket=a(T,R.level),R._detailJson=f(R,T),R}function f(R,T){let I=[],H=(ie,_)=>{_==null||_===""||I.push([ie,_])};H("name",T&&T.name),H("code",R.displayMessage||T&&T.message),R._bucket&&H("kind",R._bucket),H("httpStatus",T&&T.httpStatus),T&&T.status&&!T.httpStatus&&H("status",T.status),H("module",R.module);let q=T&&T.detail;if(typeof q=="string"){let ie=q.trim();if(ie[0]==="{"||ie[0]==="[")try{q=JSON.parse(q)}catch{}}if(H("detail",q),H("repoId",T&&T.repoId),H("filePath",T&&T.filePath),H("upstreamStatus",T&&T.upstreamStatus),H("upstreamBody",T&&T.upstreamBody),H("url",R._url),H("err",T&&T.err),H("cause",T&&!T.err&&T.cause),H("ts",R.ts),!I.length)return JSON.stringify(R,null,2);let U=I.reduce((ie,_)=>Math.max(ie,_[0].length),0),ae=["{"];return I.forEach(([ie,_],O)=>{let Z=` ${`"${ie}":`.padEnd(U+3," ")} `,te=O<I.length-1?",":"",J;if(_&&typeof _=="object"){let se=" ".repeat(Z.length);J=JSON.stringify(_,null,2).split(`
`).map((ue,pe)=>pe===0?ue:se+ue).join(`
`)}else typeof _=="number"||typeof _=="boolean"?J=String(_):J=JSON.stringify(_);ae.push(`${Z}${J}${te}`)}),ae.push("}"),ae.join(`
`)}function v(R){let T=[],I="",H=/(\w+):(>=|<=|!=|>|<|=)?([^\s]+)/g,q=0,U;for(;U=H.exec(R);)I+=R.slice(q,U.index),q=H.lastIndex,T.push({key:U[1],op:U[2]||"=",val:U[3]});return I+=R.slice(q),{filters:T,free:I.trim().toLowerCase()}}function h(R,T){for(let I of T.filters){let H=(U,ae,ie)=>{let _=parseFloat(U),O=parseFloat(ae);return ie==="="?String(U)===String(ae):ie==="!="?String(U)!==String(ae):ie===">="?_>=O:ie==="<="?_<=O:ie===">"?_>O:ie==="<"?_<O:!0},q;if(I.key==="code")q=R.displayMessage;else if(I.key==="module")q=R.module;else if(I.key==="status")q=R._status;else if(I.key==="url")q=R._url;else if(I.key==="repo")q=R._repoId;else if(I.key==="level")q=R.level;else continue;if(q==null||!H(q,I.val,I.op))return!1}return!(T.free&&((R.displayMessage||"")+" "+(R.module||"")+" "+(R._url||"")+" "+JSON.stringify(R.raw||[])).toLowerCase().indexOf(T.free)===-1)}function k(){let R=v(e.query.search||"");e.parsedFilterCount=R.filters.length;let T=e.query.bucket,I=e.entries.filter(q=>T&&q._bucket!==T?!1:h(q,R)),H=e.query.group;if(H){let q=ie=>H==="module"?ie.module:ie.displayMessage||ie.message||"_",U=new Map;for(let ie of I){let _=q(ie);if(U.has(_)){let O=U.get(_);O.count++,O._related.push(ie),new Date(ie.ts)>new Date(O.ts)&&(O.ts=ie.ts,O._url=ie._url,O._status=ie._status),new Date(ie.ts)<new Date(O._firstSeen)&&(O._firstSeen=ie.ts)}else{let O=Object.assign({},ie);O._key=`${H}:${_}`,O._related=[ie],O._firstSeen=ie.ts,O._lastHourCount=0,O.count=1,U.set(_,O)}}let ae=Date.now()-3600*1e3;for(let ie of U.values())ie._lastHourCount=ie._related.filter(_=>new Date(_.ts).getTime()>=ae).length;I=Array.from(U.values())}else I=I.map((q,U)=>(q._key="row:"+U+":"+q.ts,q._related=[q],q._firstSeen=q.ts,q._lastHourCount=0,q.count=1,q));e.query.sort==="count"?I.sort((q,U)=>U.count-q.count||new Date(U.ts)-new Date(q.ts)):I.sort((q,U)=>new Date(U.ts)-new Date(q.ts)),e.visible=I}function m(R){let T=R?e.entries.length:0,I=R?e.pageSize:Math.max(e.pageSize,e.entries.length||e.pageSize);t.get("/api/admin/errors",{params:{offset:T,limit:I}}).then(H=>{let q=(H.data.entries||[]).map(u);e.entries=R?e.entries.concat(q):q,e.available=!!H.data.available,e.cap=H.data.max||e.cap,e.total=H.data.total||e.entries.length,k()},H=>console.error(H))}e.loadMore=()=>m(!0),e.canLoadMore=()=>e.entries.length<e.total;function E(){t.get("/api/admin/errors/stats").then(R=>{let T=R.data||{},I=T.prev24h?Math.round((T.last24h-T.prev24h)/T.prev24h*100):0;e.stats={last24h:T.last24h||0,prev24h:T.prev24h||0,delta:I,severity:T.severity||{error:0,warn:0,info:0},unique:T.unique||{error:0,warn:0,info:0},buckets:T.buckets||[],dropped:T.dropped||0}},R=>console.error(R))}function y(){m(),E()}e.barPx=(R,T)=>{let I=e.stats.buckets||[],H=0;for(let ie of I)H=Math.max(H,(ie.error||0)+(ie.warn||0)+(ie.info||0));if(!H)return 0;let q=(R.error||0)+(R.warn||0)+(R.info||0);if(!q)return 0;let U=Math.round(q/H*60),ae=R[T]||0;return Math.round(ae/q*U)},e.bucketTitle=R=>`${new Date(R.hour).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})} \xB7 ${R.error||0} err \xB7 ${R.warn||0} warn \xB7 ${R.info||0} info`,e.toggle=R=>{e.expanded[R._key]=!e.expanded[R._key]},e.setBucket=R=>{e.query.bucket=R},e.refreshNow=y,e.clearAll=()=>{confirm("Clear all captured errors?")&&t.delete("/api/admin/errors").then(y,R=>console.error(R))},e.exportCsv=()=>{let R=["ts","level","module","displayMessage","_status","_url","_repoId"],T=[R.join(",")];for(let U of e.visible)T.push(R.map(ae=>{let ie=U[ae]==null?"":String(U[ae]);return/[",\n]/.test(ie)?`"${ie.replace(/"/g,'""')}"`:ie}).join(","));let I=new Blob([T.join(`
`)],{type:"text/csv;charset=utf-8"}),H=URL.createObjectURL(I),q=document.createElement("a");q.href=H,q.download=`errors-${new Date().toISOString().slice(0,19)}.csv`,document.body.appendChild(q),q.click(),document.body.removeChild(q),URL.revokeObjectURL(H)};function w(R){e.copyHint=`${R} copied`,n.timeout(()=>{e.copyHint=""},1500)}e.copyJson=R=>{navigator.clipboard.writeText(R._detailJson).then(()=>w("JSON"))},e.copyCurl=R=>{if(!R._url)return;let I=`curl -X ${R._method||"GET"} '${window.location.origin}${R._url}'`;navigator.clipboard.writeText(I).then(()=>w("curl"))},y();let D=r(()=>{e.query.autoRefresh&&y()},15e3);e.on("dispose",()=>r.cancel(D)),e.watch("query.search",k),e.watch("query.bucket",k),e.watch("query.sort",k),e.watch("query.group",k)},ul=function(e,t,s,r){if(e.Math=Math,e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null){s.url("/");return}e.data=null,e.loading=!0,e.error=null,e.performance=null,e.performanceMinutes=15,e.performanceTab="routes",e.performanceError=null,e.formatMs=function(y){return y==null?"":y<1e3?y+" ms":+(y/1e3).toFixed(1)+" s"},e.latencyBound=function(y,w){return y.count?y[w]==null?"> 60 s":"\u2264 "+e.formatMs(y[w]):"No samples"},e.firstByteBound=function(y){return e.latencyBound({count:y.firstByteCount,p95UpperMs:y.firstByteP95UpperMs},"p95UpperMs")},e.sampleAge=function(y){return Math.max(0,Math.round((Date.now()-y.sampledAt)/1e3))},e.peakRss=function(y){return(e.performance.runtimeSeries||[]).filter(function(w){return w.instance===y.instance}).reduce(function(w,D){return Math.max(w,D.rss)},y.memory.rss)},e.performanceWarning=function(y){return e.sampleAge(y)>45||y.droppedBatches||y.droppedMetrics||y.sockets?.closeWait>0||y.eventLoop.p95Ms>100||y.memoryLimitBytes&&y.memory.rss>y.memoryLimitBytes*.8};var n=!1;e.loadPerformance=function(){var y=e.performanceMinutes;e.performance?.windowMinutes&&e.performance.windowMinutes!==y&&(e.performance=null),!n&&(n=!0,t.get("/api/admin/performance",{params:{minutes:y}}).then(function(w){y===e.performanceMinutes&&(e.performance=w.data,e.performanceError=w.data.available?null:"Performance monitoring is unavailable. Request history may be incomplete.")},function(){y===e.performanceMinutes&&(e.performanceError="Could not refresh performance monitoring. Displayed samples may be stale.")}).finally(function(){n=!1,y!==e.performanceMinutes&&e.loadPerformance()}))};function i(y){if(y==null)return"\u2014";for(var w=["B","KB","MB","GB","TB"],D=0,R=y;R>=1024&&D<w.length-1;)R/=1024,D++;return R.toFixed(D>0?1:0)+" "+w[D]}e.humanBytes=i;function a(y){if(!y)return"\u2014";var w=Math.floor(y/86400),D=Math.floor(y%86400/3600),R=Math.floor(y%3600/60);return w>0?w+"d "+(D<10?"0":"")+D+"h":D>0?D+"h "+(R<10?"0":"")+R+"m":R+"m"}e.humanDuration=a;function u(y){return y==null?"\u2014":y>=1e6?(y/1e6).toFixed(1)+"M":y>=1e3?(y/1e3).toFixed(1)+"K":String(y)}e.humanNum=u,e.queueTotal=function(y){return y?(y.waiting||0)+(y.active||0)+(y.delayed||0)+(y.failed||0):0},e.statusCount=function(y){if(!e.data||!e.data.repos)return 0;for(var w=e.data.repos.statusBreakdown||[],D=0;D<w.length;D++)if(w[D]._id===y)return w[D].count;return 0},e.barPct=function(y){var w=e.data&&e.data.repos?e.data.repos.total:0;if(!w)return 0;var D=[y];y==="expired"&&D.push("expiring"),y==="removed"&&D.push("removing"),y==="preparing"&&D.push("download");var R=0;return D.forEach(function(T){R+=e.statusCount(T)}),Math.max(.4,R/w*100)},e.errPct=function(y){if(!e.data||!e.data.errors)return 0;var w=Math.max(e.data.errors.severity.error,e.data.errors.severity.warn,e.data.errors.severity.info,1);return e.data.errors.severity[y]/w*100};function f(y){var w=y||[];return w.map(function(D,R){var T=w[R-1]||{},I=Object.assign({},D);return I.dailyRepositories=R?Math.max(0,(D.nbRepositories||0)-(T.nbRepositories||0)):0,I.dailyUsers=R?Math.max(0,(D.nbUsers||0)-(T.nbUsers||0)):0,I.dailyPageViews=R?Math.max(0,(D.nbPageViews||0)-(T.nbPageViews||0)):0,I})}function v(y){var w=y&&y.length?y[y.length-1]:{};return{repositories:w.dailyRepositories||0,users:w.dailyUsers||0,pageViews:w.dailyPageViews||0}}var h={},k={};e.historyBarH=function(y,w){return!y||!h[w]?0:Math.max(1,Math.round(y[w]/h[w]*140))},e.historyRangeH=function(y,w){if(!y||h[w]==null)return 0;var D=h[w]-k[w];return D?Math.round(8+(y[w]-k[w])/D*132):70},e.historyRange=function(y){return{min:k[y],max:h[y]}},e.historyLabel=function(y){if(!y||!y.date)return"";var w=new Date(y.date);return w.getUTCMonth()+1+"/"+w.getUTCDate()};function m(){e.loadPerformance(),t.get("/api/admin/overview").then(function(y){y.data.history=f(y.data.history),y.data.daily={today:v(y.data.history)},e.data=y.data,e.loading=!1,e.error=null,h={},k={},(y.data.history||[]).forEach(function(w){["dailyPageViews","dailyRepositories","dailyUsers","nbUsers"].forEach(function(D){(!h[D]||w[D]>h[D])&&(h[D]=w[D]),(k[D]==null||w[D]<k[D])&&(k[D]=w[D])})})},function(y){e.loading=!1,e.error=y.data&&y.data.error||"Failed to load overview"})}m();var E=r(m,3e4);e.on("dispose",function(){r.cancel(E)})};var cl=[{path:"/connections",template:"partials/connections.htm",title:"GitHub connections \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>ol(e,t.http)},{path:"/signin",template:"partials/signin.htm",title:"Sign in \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>sl(e,t.http)},{path:"/",template:"partials/home.htm",title:"Anonymous GitHub \u2013 Share the code, not the author",preserveExplorer:!1,setup:(e,t)=>Ja(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)=>Qa(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)=>sn(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)=>sn(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)=>sn(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)=>Xa(e,t.http,t.params)},{path:"/conferences",template:"partials/conferences.htm",title:"Your conferences \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>el(e,t.http,t.location)},{path:"/conference/new",template:"partials/newConference.htm",title:"New conference \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>rr(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)=>rr(e,t.http,t.location,t.params)},{path:"/conference/:conferenceId",template:"partials/conference.htm",title:"Conference \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>tl(e,t.http,t.location,t.params)},{path:"/faq",template:"partials/faq.htm",title:"FAQ \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Wa(e,t.http)},{path:"/profile",template:"partials/profile.htm",title:"Your settings \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Ka(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)=>Ya(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)=>Za(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)=>xa(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)=>nr(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)=>nr(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)=>ul(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)=>nl(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)=>rl(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)=>il(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)=>al(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)=>ll(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)=>dl(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 mp={class:"container paper-page connections-page"},hp={key:0,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},vp={key:1,role:"status"},gp=["disabled"],yp={key:3},bp={class:"connections-grid"},wp={key:0},kp={class:"connection-title"},Ep={key:0,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},Cp={class:"connection-actions"},_p={key:0,class:"btn btn-ink",target:"_self",href:"/github/app/install"},Sp={key:1,class:"connection-installations"},Np={key:0},Dp=["href"],Rp={class:"sr-only"},Tp=["disabled"],Ap={class:"connection-title"},Op={key:0,target:"_self",href:"/github/login",class:"btn btn-outline-ink"},Ip={key:1,class:"connection-revoke"},Pp={key:0},Vp=["disabled"],qp={class:"connection-resources"},Mp={class:"connection-title"},$p={class:"connection-count"},Lp={key:0,class:"connection-empty"},Up={class:"connection-resource-name"},Fp={key:0,class:"connection-resource-actions"},zp=["disabled","onClick"],Hp=["disabled","onClick"],Bp={key:1,class:"connection-help",role:"status"},jp=["disabled","onClick"];function pl(e,t){return l(),d("div",mp,[t[20]||(t[20]=ce('<div class="paper-crumbs"><a href="/dashboard">My work</a> / <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",hp,c(e.connectionError),1)):p("v-if",!0),!e.connections&&!e.connectionError?(l(),d("p",vp,"Loading your connections\u2026")):p("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]=s=>e.loadConnections())},"Try again",8,gp)):p("v-if",!0),e.connections?(l(),d("div",yp,[o("div",bp,[e.connections.appEnabled?(l(),d("section",wp,[t[8]||(t[8]=o("div",{class:"connection-top"},[o("i",{class:"fab fa-github","aria-hidden":"true"}),o("span",{class:"connection-badge"},"Recommended")],-1)),o("div",kp,[t[3]||(t[3]=o("h2",null,"GitHub App",-1)),o("span",{class:A(["connection-status",{"is-connected":e.connections.appConnected&&!e.connections.appError}])},c(e.connections.appError?"Needs attention":e.connections.appConnected?"Connected":"Not connected"),3)]),t[9]||(t[9]=o("p",null,"Read-only access to gists and the repositories you choose.",-1)),e.connections.appError?(l(),d("p",Ep,c(e.connections.appError)+". Reconnect to restore access.",1)):p("v-if",!0),o("div",Cp,[e.connections.appConnected&&!e.connections.appError?(l(),d("a",_p,[...t[4]||(t[4]=[b("Manage repository access ",-1),o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-external-link"})],-1)])])):p("v-if",!0),o("a",{class:A(e.connections.appConnected&&!e.connections.appError?"connection-link":"btn btn-ink"),target:"_self",href:"/github/app/login"},c(e.connections.appConnected?"Reconnect account":"Connect GitHub account"),3)]),t[10]||(t[10]=o("p",{class:"connection-help"},"Choose repositories on GitHub. Organization access may need an administrator's approval.",-1)),e.connections.installations?.length?(l(),d("ul",Sp,[(l(!0),d(X,null,re(e.connections.installations,s=>(l(),d("li",{key:s.id},[o("div",null,[o("strong",null,c(s.account),1),s.suspended?(l(),d("span",Np," \xB7 Suspended")):p("v-if",!0)]),o("a",{target:"_self",href:"/github/app/install?installationId="+s.id},[t[5]||(t[5]=b("Manage access ",-1)),o("span",Rp,"for "+c(s.account),1),t[6]||(t[6]=b(" \u2192",-1))],8,Dp)]))),128))])):p("v-if",!0),o("button",{class:"connection-link",disabled:e.busy,onClick:t[1]||(t[1]=s=>e.loadConnections())},[...t[7]||(t[7]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1),b(" Refresh access",-1)])],8,Tp)])):p("v-if",!0),o("section",null,[t[13]||(t[13]=o("div",{class:"connection-top"},[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-key"})]),o("span",{class:"connection-badge connection-badge-muted"},"Legacy")],-1)),o("div",Ap,[t[11]||(t[11]=o("h2",null,"GitHub OAuth",-1)),o("span",{class:A(["connection-status",{"is-connected":e.connections.oauthConnected}])},c(e.connections.oauthConnected?"Connected":"Not connected"),3)]),t[14]||(t[14]=o("p",null,"For existing OAuth anonymizations.",-1)),t[15]||(t[15]=o("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",Op,c(e.connections.oauthConnected?"Reconnect OAuth":"Connect legacy OAuth"),1)):p("v-if",!0),e.connections.oauthConnected?(l(),d("div",Ip,[e.connections.gistCount?(l(),d("p",Pp,c(e.connections.gistCount)+" gist(s) use your GitHub App connection when available.",1)):p("v-if",!0),t[12]||(t[12]=o("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:"connection-link connection-danger",disabled:e.busy||e.connections.resources.some(s=>s.connection==="oauth"),onClick:t[2]||(t[2]=s=>e.disconnectOAuth())},"Revoke OAuth access",8,Vp)):p("v-if",!0)])):p("v-if",!0)])]),o("section",qp,[o("div",Mp,[t[16]||(t[16]=o("h2",null,"Repository connections",-1)),o("span",$p,c(e.connections.resources?.length||0)+" resources",1)]),t[18]||(t[18]=o("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?p("v-if",!0):(l(),d("div",Lp,[...t[17]||(t[17]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-type-repo"})],-1),o("div",null,[o("h3",null,"No repository connections yet"),o("p",null,"Your repositories and pull requests will appear here once you anonymize them.")],-1),o("a",{class:"connection-link",href:"/anonymize"},"New anonymization \u2192",-1)])])),(l(!0),d(X,null,re(e.connections.resources,s=>(l(),d("div",{class:"connection-resource",key:s.type+s.id},[o("div",Up,[o("strong",null,c(s.name||s.id),1),o("small",null,c(s.type)+" \xB7 "+c(s.id),1)]),o("span",{class:A(["connection-badge",{"connection-badge-muted":s.connection==="oauth"}])},c(s.connection==="github-app"?"Read-only App":"Legacy OAuth"),3),!["archived","removed","preparing","queue","removing","expiring"].includes(s.status)&&(s.status!=="download"||s.type==="pull-request"&&(!s.statusDate||new Date(s.statusDate).getTime()<=Date.now()-3e5))&&e.connections.appEnabled&&e.connections.appConnected?(l(),d("div",Fp,[o("button",{class:"btn btn-outline-ink",disabled:e.busy,onClick:r=>e.changeConnection(s,"github-app",!0)},"Check read-only access",8,zp),s.eligible?(l(),d("button",{key:0,class:"btn btn-ink",disabled:e.busy,onClick:r=>e.changeConnection(s,"github-app",!1)},c(s.connection==="github-app"?"Reconnect read-only access":"Switch to read-only access"),9,Hp)):p("v-if",!0),s.eligible===!1?(l(),d("span",Bp,"Access unavailable. Allow this repository on GitHub, then check again.")):p("v-if",!0)])):p("v-if",!0),!["archived","removed","preparing","queue","removing","expiring"].includes(s.status)&&(s.status!=="download"||s.type==="pull-request"&&(!s.statusDate||new Date(s.statusDate).getTime()<=Date.now()-3e5))&&s.connection==="github-app"&&e.connections.oauthConnected?(l(),d("button",{key:1,class:"connection-link",disabled:e.busy,onClick:r=>e.changeConnection(s,"oauth",!1)},"Use OAuth",8,jp)):p("v-if",!0)]))),128)),t[19]||(t[19]=o("p",{class:"connection-footnote"},[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-info"})]),b(" Removing access stops new fetches from GitHub. Published content keeps its current expiration and removal settings.")],-1))])])):p("v-if",!0)])}var Gp={class:"container paper-page auth-page"},Wp={class:"auth-layout"},Kp={class:"auth-options"},Yp={key:0},Jp={key:0,class:"btn btn-ink auth-continue",target:"_self",href:"/github/login?recover=1"},Qp={key:1},Xp={key:1},Zp={key:2,class:"auth-legacy"},xp={key:3,role:"status"};function fl(e,t){return l(),d("div",Gp,[t[5]||(t[5]=o("a",{class:"auth-back",href:"/"},[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-arrow-left"})]),b(" Anonymous GitHub")],-1)),o("div",Wp,[t[4]||(t[4]=ce('<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)),o("div",Kp,[e.accountRecovery?(l(),d("section",Yp,[t[0]||(t[0]=o("h2",null,"Verify your existing account",-1)),t[1]||(t[1]=o("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",Jp,"Verify with previous GitHub connection")):(l(),d("p",Qp,"Account verification is currently unavailable. Please try again later."))])):p("v-if",!0),e.site_options?.GITHUB_APP_ENABLED&&!e.accountRecovery?(l(),d("section",Xp,[...t[2]||(t[2]=[ce('<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)])])):p("v-if",!0),!e.site_options?.GITHUB_APP_ENABLED&&e.site_options?.GITHUB_OAUTH_ENABLED&&!e.accountRecovery?(l(),d("section",Zp,[...t[3]||(t[3]=[o("div",{class:"connection-title"},[o("h2",null,"Continue with GitHub")],-1),o("p",null,"Sign in to access your account. GitHub OAuth includes write access to private repositories.",-1),o("a",{class:"connection-link",target:"_self",href:"/github/login"},[b("Sign in with GitHub "),o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-arrow-right"})])],-1)])])):p("v-if",!0),e.site_options&&!e.site_options.GITHUB_APP_ENABLED&&!e.site_options.GITHUB_OAUTH_ENABLED?(l(),d("p",xp,"GitHub sign-in is currently unavailable. Please try again later.")):p("v-if",!0)])])])}var ef={class:"paper-empty"};function ml(e,t){return l(),d("div",ef,[...t[0]||(t[0]=[ce('<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 tf={class:"container paper-page admin-page"},of={class:"admin-summary"},sf={class:"summary-total"},nf=["aria-pressed"],rf={class:"count"},af=["aria-pressed"],lf={class:"count"},df=["aria-pressed"],uf={class:"count"},cf=["aria-pressed"],pf={class:"count"},ff=["aria-pressed"],mf={class:"count"},hf={key:0,class:"alert alert-danger",style:{margin:"8px 0"}},vf={class:"w-100 admin-filter-toolbar","aria-label":"Conferences","accept-charset":"UTF-8"},gf={class:"admin-filter-row"},yf={class:"search-wrap"},bf={type:"search",class:"form-control",placeholder:"Search conferences\u2026",autocomplete:"off"},wf={key:0,class:"admin-search-hint"},kf={class:"admin-filter-inline","aria-label":"Pagination"},Ef=["disabled"],Cf={style:{"font-family":"var(--font-mono)","font-size":"12px",color:"var(--ink-muted)"}},_f=["disabled"],Sf={key:0,class:"admin-filter-row"},Nf={class:"admin-active-chips"},Df={class:"key"},Rf=["onClick"],Tf={class:"paper-table paper-table-conferences w-100",role:"table","aria-label":"Conferences"},Af={class:"paper-table-head",role:"row"},Of={role:"columnheader"},If={role:"columnheader"},Pf={role:"columnheader"},Vf={class:"paper-table-row",role:"row"},qf={class:"cell-anon",role:"cell"},Mf={class:"anon-text"},$f=["textContent","href"],Lf={class:"anon-sub"},Uf={class:"cell-status",role:"cell"},Ff=["textContent"],zf={class:"cell-views num",role:"cell"},Hf=["textContent","href"],Bf={class:"cell-expires",role:"cell"},jf={class:"cell-actions",role:"cell"},Gf={class:"dropdown"},Wf={class:"dropdown-menu dropdown-menu-right"},Kf=["href"],Yf=["href"],Jf=["href"],Qf=["onClick"],Xf={key:0,class:"paper-table-empty"},Zf={class:"admin-toolbar",style:{"justify-content":"space-between","border-bottom":"none"}},xf={style:{"font-size":"12px",color:"var(--ink-muted)"}},em={key:0,class:"pagination-compact"},tm=["disabled"],om=["max"],sm=["disabled"],nm={class:"admin-filter-inline"},rm={class:"form-control form-control-sm"};function hl(e,t){let s=be("field"),r=be("form");return l(),d("div",tf,[t[47]||(t[47]=ce('<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)),o("div",of,[o("span",sf,c(e.total>=0?e.fmt.number(e.total):"\u2026"),1),o("button",{type:"button",class:A(["summary-pill ok",{active:e.query?.ready}]),title:"Toggle ready filter",onClick:t[0]||(t[0]=n=>{e.query.ready=!e.query.ready,e.query.page=1}),"aria-pressed":!!e.query?.ready},[t[13]||(t[13]=b("Ready ",-1)),o("span",rf,c(e.fmt?.number(e.statusCountFor("ready"))),1)],10,nf),o("button",{type:"button",class:A(["summary-pill warn",{active:e.query?.preparing}]),title:"Toggle preparing filter",onClick:t[1]||(t[1]=n=>{e.query.preparing=!e.query.preparing,e.query.page=1}),"aria-pressed":!!e.query?.preparing},[t[14]||(t[14]=b("Preparing ",-1)),o("span",lf,c(e.fmt?.number(e.statusCountFor("preparing"))),1)],10,af),o("button",{type:"button",class:A(["summary-pill error",{active:e.query?.error}]),title:"Toggle errored filter",onClick:t[2]||(t[2]=n=>{e.query.error=!e.query.error,e.query.page=1}),"aria-pressed":!!e.query?.error},[t[15]||(t[15]=b("Errored ",-1)),o("span",uf,c(e.fmt?.number(e.statusCountFor("error"))),1)],10,df),o("button",{type:"button",class:A(["summary-pill",{active:e.query?.expired}]),title:"Toggle expired filter",onClick:t[3]||(t[3]=n=>{e.query.expired=!e.query.expired,e.query.page=1}),"aria-pressed":!!e.query?.expired},[t[16]||(t[16]=b("Expired ",-1)),o("span",pf,c(e.fmt?.number(e.statusCountFor("expired"))),1)],10,cf),o("button",{type:"button",class:A(["summary-pill",{active:e.query?.removed}]),title:"Toggle removed filter",onClick:t[4]||(t[4]=n=>{e.query.removed=!e.query.removed,e.query.page=1}),"aria-pressed":!!e.query?.removed},[t[17]||(t[17]=b("Removed ",-1)),o("span",mf,c(e.fmt?.number(e.statusCountFor("removed"))),1)],10,ff)]),e.fetchError?(l(),d("div",hf,[t[18]||(t[18]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-warning"})],-1)),b(" "+c(e.fetchError),1)])):p("v-if",!0),N((l(),d("form",vf,[o("div",gf,[o("div",yf,[N(o("input",bf,null,512),[[s,{state:e.viewState,set:n=>{e.query.search=n},value:e.query?.search,form:null,options:{}}]]),e.query?.search?p("v-if",!0):(l(),d("span",wf,"/"))]),t[22]||(t[22]=o("span",{class:"admin-filter-spacer"},null,-1)),o("button",{class:"btn btn-sm",type:"button",onClick:t[5]||(t[5]=n=>e.exportCsv())},[...t[19]||(t[19]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-export"})],-1),b(" Export",-1)])]),o("span",kf,[o("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[6]||(t[6]=n=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1,"aria-label":"Previous page"},[...t[20]||(t[20]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-chevron-left"})],-1)])],8,Ef),o("span",Cf,c(e.query?.page)+"/"+c(e.totalPage||1),1),o("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[7]||(t[7]=n=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage,"aria-label":"Next page"},[...t[21]||(t[21]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-chevron-right"})],-1)])],8,_f)])]),e.chips?.length?(l(),d("div",Sf,[o("div",Nf,[(l(!0),d(X,null,re(e.chips,(n,i)=>(l(),d("span",{class:"admin-active-chip",key:n?.key},[o("span",Df,c(n?.label),1),o("span",null,c(n?.value),1),o("button",{type:"button",onClick:a=>e.clearFilter(n.key),"aria-label":"Clear filter"},[...t[23]||(t[23]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-close"})],-1)])],8,Rf)]))),128))])])):p("v-if",!0)])),[[r,e.viewState]]),o("div",Tf,[o("div",Af,[o("div",Of,[o("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="name"}]),onClick:t[8]||(t[8]=n=>e.sortBy("name"))},[t[25]||(t[25]=b("Conference ",-1)),e.sortIcon("name")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("name")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[24]||(t[24]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):p("v-if",!0)],2)]),o("div",If,[o("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="status"}]),onClick:t[9]||(t[9]=n=>e.sortBy("status"))},[t[27]||(t[27]=b("Status ",-1)),e.sortIcon("status")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("status")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[26]||(t[26]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):p("v-if",!0)],2)]),t[30]||(t[30]=o("div",{role:"columnheader",class:"num"},"Repos",-1)),o("div",Pf,[o("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="startDate"}]),onClick:t[10]||(t[10]=n=>e.sortBy("startDate"))},[t[29]||(t[29]=b("Window ",-1)),e.sortIcon("startDate")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("startDate")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[28]||(t[28]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):p("v-if",!0)],2)]),t[31]||(t[31]=o("div",{role:"columnheader","aria-label":"Actions"},null,-1))]),(l(!0),d(X,null,re(e.filteredConferences,(n,i)=>(l(),d("div",Vf,[o("div",qf,[t[33]||(t[33]=o("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Conference"},[o("use",{href:"#project-icon-conference"})],-1)),o("div",Mf,[o("a",{class:"repo-name",textContent:c(n?.name),href:e.safeUrl("/conference/"+n?.conferenceID)},null,8,$f),o("div",Lf,[o("span",null,c(n?.conferenceID),1),t[32]||(t[32]=b("\xA0\xB7\xA0",-1)),o("span",null,c(e.fmt?.number(n?.price||0))+" \u20AC",1)])])]),o("div",Uf,[o("span",{class:A(["status-dot",{"status-removed":n?.status=="removed"||n?.status=="expired","status-ready":n?.status=="ready","status-error":n?.status=="error","status-preparing":n?.status=="preparing"}])},null,2),o("span",{textContent:c(e.fmt?.title(n?.status))},null,8,Ff)]),o("div",zf,[t[34]||(t[34]=o("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[o("use",{href:"#project-type-repo"})],-1)),o("a",{title:"Show repositories in this conference",textContent:c(e.fmt?.number(n?.repositories?.length||0)),href:e.safeUrl("/admin/?conference="+n?.conferenceID)},null,8,Hf)]),o("div",Bf,[t[35]||(t[35]=o("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-clock"})],-1)),b(" "+c(e.fmt?.date(n?.startDate))+" \u2013 "+c(e.fmt?.date(n?.endDate)),1)]),o("div",jf,[o("div",Gf,[t[41]||(t[41]=o("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions"},[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-more"})])],-1)),o("div",Wf,[o("a",{class:"dropdown-item",href:e.safeUrl("/conference/"+n?.conferenceID+"/edit")},[...t[36]||(t[36]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-edit"})],-1),b(" Edit",-1)])],8,Kf),o("a",{class:"dropdown-item",href:e.safeUrl("/conference/"+n?.conferenceID+"/")},[...t[37]||(t[37]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-eye"})],-1),b(" View",-1)])],8,Yf),o("a",{class:"dropdown-item",href:e.safeUrl("/admin/?conference="+n?.conferenceID)},[...t[38]||(t[38]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-type-repo"})],-1),b(" View repositories",-1)])],8,Jf),t[40]||(t[40]=o("div",{class:"dropdown-divider"},null,-1)),N(o("a",{class:"dropdown-item text-danger",href:"#",onClick:me(a=>e.removeConference(n),["prevent"])},[...t[39]||(t[39]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-trash"})],-1),b(" Remove",-1)])],8,Qf),[[W,n?.status!="removed"]])])])])]))),256)),e.filteredConferences?.length==0?(l(),d("div",Xf,[...t[42]||(t[42]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-inbox"})],-1),o("span",null,"No conferences match the current filters.",-1)])])):p("v-if",!0)]),o("div",Zf,[o("span",xf,c(e.fmt?.number(e.total))+" results",1),e.totalPage>1?(l(),d("div",em,[o("button",{class:"btn btn-sm",onClick:t[11]||(t[11]=n=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1},[...t[43]||(t[43]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-chevron-left"})],-1),b(" Previous",-1)])],8,tm),N(o("input",{type:"number",class:"form-control form-control-sm",min:"1",style:{width:"56px"},max:e.totalPage},null,8,om),[[s,{state:e.viewState,set:n=>{e.query.page=n},value:e.query?.page,form:null,options:{}}]]),o("span",null,"of "+c(e.totalPage),1),o("button",{class:"btn btn-sm",onClick:t[12]||(t[12]=n=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage},[...t[44]||(t[44]=[b("Next ",-1),o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-chevron-right"})],-1)])],8,sm)])):p("v-if",!0),o("span",nm,[t[46]||(t[46]=o("label",null,"Per page",-1)),N((l(),d("select",rm,[...t[45]||(t[45]=[ce('<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)])])),[[s,{state:e.viewState,set:n=>{e.query.limit=n},value:e.query?.limit,form:null,options:{}}]])])])])}var im={class:"container paper-page admin-page errors-page"},am={class:"errors-header"},lm={class:"errors-actions"},dm={class:"kpi-grid"},um={class:"kpi-card"},cm={class:"kpi-value"},pm={key:0},fm={key:1},mm={class:"kpi-card kpi-error"},hm={class:"kpi-value"},vm={class:"kpi-sub"},gm={class:"kpi-card kpi-warn"},ym={class:"kpi-value"},bm={class:"kpi-sub"},wm={class:"kpi-card kpi-info"},km={class:"kpi-value"},Em={class:"kpi-sub"},Cm={class:"kpi-value"},_m={class:"kpi-sub"},Sm={key:0,class:"dropped-warn"},Nm={class:"volume-chart"},Dm={class:"volume-bars"},Rm=["title"],Tm={class:"errors-toolbar","aria-label":"Error filters"},Am={class:"seg-tabs"},Om={class:"search-wrap"},Im={type:"search",class:"form-control",placeholder:"code:repo_not_found module:route status:>=400",autocomplete:"off"},Pm={key:0,class:"filter-count"},Vm={class:"select-wrap"},qm={class:"form-control form-control-sm"},Mm={class:"select-wrap"},$m={class:"form-control form-control-sm"},Lm={class:"autoref"},Um={type:"checkbox"},Fm={key:0,class:"admin-empty"},zm={key:1,class:"errors-pager"},Hm={key:2,class:"errors-list"},Bm=["onClick"],jm={class:"col-when"},Gm={class:"when-rel"},Wm={class:"when-abs"},Km={class:"col-sev"},Ym={class:"sev-label"},Jm={class:"col-mod"},Qm={class:"pill pill-module"},Xm={class:"col-msg"},Zm={class:"msg-code"},xm={key:0,class:"msg-context"},eh={key:1,class:"msg-detail"},th={key:2,class:"msg-url"},oh={class:"col-count"},sh={key:0,class:"count-pill"},nh={key:1,class:"count-pill count-pill-muted"},rh={class:"col-status"},ih={key:0,class:"errors-row-detail"},ah={class:"detail-tabs"},lh=["onClick"],dh=["onClick"],uh=["onClick"],ch={class:"detail-body"},ph={class:"detail-main"},fh={key:0},mh={key:1,class:"stack-pre"},hh={key:2,class:"related-list"},vh={class:"when-abs"},gh={class:"msg-url"},yh={class:"detail-actions"},bh=["onClick"],wh=["onClick"],kh={key:0,class:"copy-hint"},Eh={class:"detail-aside"},Ch={class:"aside-block"},_h=["title"],Sh={class:"aside-block"},Nh=["title"],Dh={class:"aside-block"},Rh={class:"aside-value"},Th={key:0,class:"aside-sub"},Ah={key:0,class:"aside-block"},Oh=["href"],Ih={key:1,class:"aside-block"},Ph={class:"aside-value mono"};function vl(e,t){let s=be("field"),r=be("form");return l(),d("div",im,[t[32]||(t[32]=o("div",{class:"paper-crumbs"},[b("Admin \xA0/\xA0 "),o("span",{class:"here"},"Errors")],-1)),o("header",am,[t[10]||(t[10]=o("h1",{class:"paper-page-title"},"Errors",-1)),o("div",lm,[o("button",{class:"btn btn-sm",type:"button",onClick:t[0]||(t[0]=n=>e.exportCsv())},[...t[8]||(t[8]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-export"})],-1),b(" Export CSV",-1)])]),o("button",{class:"btn btn-sm btn-danger-soft",type:"button",onClick:t[1]||(t[1]=n=>e.clearAll())},[...t[9]||(t[9]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-trash"})],-1),b(" Clear all",-1)])])])]),t[33]||(t[33]=ce('<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)),o("section",dm,[o("div",um,[t[11]||(t[11]=o("div",{class:"kpi-label"},"Last 24h",-1)),o("div",cm,c(e.stats?.last24h),1),o("div",{class:A(["kpi-sub",{up:e.stats?.delta>0,down:e.stats?.delta<0}])},[e.stats?.prev24h?(l(),d("span",pm,c(e.stats?.delta>0?"+":"")+c(e.stats?.delta)+"% vs yesterday",1)):p("v-if",!0),e.stats?.prev24h?p("v-if",!0):(l(),d("span",fm,"no prior baseline"))],2)]),o("div",mm,[t[12]||(t[12]=o("div",{class:"kpi-label"},"Errors (5xx)",-1)),o("div",hm,c(e.stats?.severity?.error),1),o("div",vm,c(e.stats?.unique?.error)+" unique",1)]),o("div",gm,[t[13]||(t[13]=o("div",{class:"kpi-label"},"Warnings (4xx)",-1)),o("div",ym,c(e.stats?.severity?.warn),1),o("div",bm,c(e.stats?.unique?.warn)+" unique",1)]),o("div",wm,[t[14]||(t[14]=o("div",{class:"kpi-label"},"Info (auth, 404)",-1)),o("div",km,c(e.stats?.severity?.info),1),o("div",Em,c(e.stats?.unique?.info)+" unique",1)]),o("div",{class:A(["kpi-card",{"kpi-error":e.stats?.dropped>0}])},[t[15]||(t[15]=o("div",{class:"kpi-label"},"Captured",-1)),o("div",Cm,c(e.total),1),o("div",_m,[b(" cap "+c(e.cap)+" \xB7 "+c(e.available?"live":"redis off")+" ",1),e.stats?.dropped>0?(l(),d("span",Sm," \xB7 "+c(e.stats?.dropped)+" dropped",1)):p("v-if",!0)])],2)]),o("section",Nm,[t[16]||(t[16]=ce('<div class="volume-head"><span class="volume-title">Volume \xB7 24h \xB7 1h buckets</span><span class="volume-legend"><span class="dot dot-error"></span>error <span class="dot dot-warn"></span>warn <span class="dot dot-info"></span>info </span></div>',1)),o("div",Dm,[(l(!0),d(X,null,re(e.stats?.buckets,(n,i)=>(l(),d("div",{class:"volume-bar",key:i,title:e.bucketTitle(n)},[o("span",{class:"seg seg-error",style:qe({height:e.barPx(n,"error")+"px"})},null,4),o("span",{class:"seg seg-warn",style:qe({height:e.barPx(n,"warn")+"px"})},null,4),o("span",{class:"seg seg-info",style:qe({height:e.barPx(n,"info")+"px"})},null,4)],8,Rm))),128))])]),N((l(),d("form",Tm,[o("div",Am,[o("button",{type:"button",class:A({active:e.query?.bucket===""}),onClick:t[2]||(t[2]=n=>e.setBucket(""))},"All",2),o("button",{type:"button",class:A({active:e.query?.bucket==="error"}),onClick:t[3]||(t[3]=n=>e.setBucket("error"))},"5xx",2),o("button",{type:"button",class:A({active:e.query?.bucket==="warn"}),onClick:t[4]||(t[4]=n=>e.setBucket("warn"))},"4xx",2),o("button",{type:"button",class:A({active:e.query?.bucket==="info"}),onClick:t[5]||(t[5]=n=>e.setBucket("info"))},"Info",2)]),o("div",Om,[t[17]||(t[17]=o("svg",{class:"ui-icon search-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-search"})],-1)),N(o("input",Im,null,512),[[s,{state:e.viewState,set:n=>{e.query.search=n},value:e.query?.search,form:null,options:{}}]]),e.parsedFilterCount?(l(),d("span",Pm,c(e.parsedFilterCount)+" filter"+c(e.parsedFilterCount>1?"s":""),1)):p("v-if",!0)]),o("div",Vm,[t[19]||(t[19]=o("label",null,"Sort",-1)),N((l(),d("select",qm,[...t[18]||(t[18]=[o("option",{value:"recent"},"Most recent",-1),o("option",{value:"count"},"Most frequent",-1)])])),[[s,{state:e.viewState,set:n=>{e.query.sort=n},value:e.query?.sort,form:null,options:{}}]])]),o("div",Mm,[t[21]||(t[21]=o("label",null,"Group",-1)),N((l(),d("select",$m,[...t[20]||(t[20]=[o("option",{value:""},"Off",-1),o("option",{value:"code"},"By code",-1),o("option",{value:"module"},"By module",-1)])])),[[s,{state:e.viewState,set:n=>{e.query.group=n},value:e.query?.group,form:null,options:{}}]])]),o("label",Lm,[N(o("input",Um,null,512),[[s,{state:e.viewState,set:n=>{e.query.autoRefresh=n},value:e.query?.autoRefresh,form:null,options:{}}]]),t[22]||(t[22]=b(" Auto-refresh ",-1))]),o("button",{class:"btn btn-sm btn-icon",type:"button",title:"Refresh now",onClick:t[6]||(t[6]=n=>e.refreshNow()),"aria-label":"Refresh"},[...t[23]||(t[23]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1)])])])),[[r,e.viewState]]),e.visible?.length?p("v-if",!0):(l(),d("div",Fm,"No errors captured.")),e.canLoadMore()&&e.visible?.length?(l(),d("div",zm,[o("span",null,"Showing "+c(e.entries?.length)+" of "+c(e.total)+" captured",1),o("button",{class:"btn btn-sm",type:"button",onClick:t[7]||(t[7]=n=>e.loadMore())},"Load older")])):p("v-if",!0),e.visible?.length?(l(),d("div",Hm,[t[31]||(t[31]=ce('<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">Count</span><span class="col-status">Status</span></div>',1)),(l(!0),d(X,null,re(e.visible,(n,i)=>(l(),d("div",{class:A(["errors-row",{open:e.expanded[n?._key]}]),key:n?._key},[o("div",{class:"errors-row-main",onClick:a=>e.toggle(n)},[o("div",jm,[o("div",Gm,c(e.relTime(n?.ts)),1),o("div",Wm,c(e.absTimeShort(n?.ts)),1)]),o("div",Km,[o("span",{class:A(["sev-dot","sev-"+n?._bucket])},null,2),o("span",Ym,c(e.fmt?.title(n?._bucket)),1)]),o("div",Jm,[o("span",Qm,c(n?.module),1)]),o("div",Xm,[o("strong",Zm,c(n?.displayMessage),1),n?.displayContext&&n?.displayContext!==n?.displayMessage?(l(),d("span",xm,c(n?.displayContext),1)):p("v-if",!0),n?._detail?(l(),d("span",eh,c(n?._detail),1)):p("v-if",!0),n?._url?(l(),d("div",th,c(n?._url),1)):p("v-if",!0)]),o("div",oh,[n?.count>1?(l(),d("span",sh,"\xD7"+c(n?.count),1)):p("v-if",!0),n?.count===1?(l(),d("span",nh,"\xD71")):p("v-if",!0)]),o("div",rh,[n?._status?(l(),d("span",{key:0,class:A(["status-pill","status-"+n?._bucket])},c(n?._status),3)):p("v-if",!0)])],8,Bm),e.expanded[n?._key]?(l(),d("div",ih,[o("div",ah,[o("button",{type:"button",class:A({active:e.detailTab[n?._key]==="raw"||!e.detailTab[n?._key]}),onClick:a=>e.detailTab[n._key]="raw"},"Raw",10,lh),n?._stack?(l(),d("button",{key:0,type:"button",class:A({active:e.detailTab[n?._key]==="stack"}),onClick:a=>e.detailTab[n._key]="stack"},"Stack",10,dh)):p("v-if",!0),n?.count>1?(l(),d("button",{key:1,type:"button",class:A({active:e.detailTab[n?._key]==="related"}),onClick:a=>e.detailTab[n._key]="related"},"Related ("+c(n?.count)+")",11,uh)):p("v-if",!0)]),o("div",ch,[o("div",ph,[(e.detailTab[n?._key]||"raw")==="raw"?(l(),d("pre",fh,c(n?._detailJson),1)):p("v-if",!0),e.detailTab[n?._key]==="stack"?(l(),d("pre",mh,c(n?._stack),1)):p("v-if",!0),e.detailTab[n?._key]==="related"?(l(),d("div",hh,[(l(!0),d(X,null,re(n?._related,(a,u)=>(l(),d("div",{class:"related-row",key:u},[o("span",vh,c(e.absTimeShort(a?.ts)),1),o("span",gh,c(a?._url),1),a?._status?(l(),d("span",{key:0,class:A(["status-pill","status-"+a?._bucket])},c(a?._status),3)):p("v-if",!0)]))),128))])):p("v-if",!0),o("div",yh,[o("button",{class:"btn btn-sm",type:"button",title:"Copy a curl that reproduces the request",onClick:a=>e.copyCurl(n)},[...t[24]||(t[24]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-code"})],-1),b(" Copy curl",-1)])],8,bh),o("button",{class:"btn btn-sm",type:"button",onClick:a=>e.copyJson(n)},[...t[25]||(t[25]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-clipboard"})],-1),b(" Copy JSON",-1)])],8,wh),e.copyHint?(l(),d("span",kh,c(e.copyHint),1)):p("v-if",!0)])]),o("aside",Eh,[o("div",Ch,[t[26]||(t[26]=o("div",{class:"aside-label"},"First seen",-1)),o("div",{class:"aside-value",title:e.absTime(n?._firstSeen)},c(e.relTime(n?._firstSeen)),9,_h)]),o("div",Sh,[t[27]||(t[27]=o("div",{class:"aside-label"},"Last seen",-1)),o("div",{class:"aside-value",title:e.absTime(n?.ts)},c(e.relTime(n?.ts)),9,Nh)]),o("div",Dh,[t[28]||(t[28]=o("div",{class:"aside-label"},"Occurrences",-1)),o("div",Rh,[b(c(n?.count),1),n?._lastHourCount?(l(),d("span",Th," \xB7 "+c(n?._lastHourCount)+" this hour",1)):p("v-if",!0)])]),n?._repoId?(l(),d("div",Ah,[t[29]||(t[29]=o("div",{class:"aside-label"},"Repository",-1)),o("a",{class:"aside-value",href:e.safeUrl("/r/"+n?._repoId)},c(n?._repoId),9,Oh)])):p("v-if",!0),n?._url?(l(),d("div",Ih,[t[30]||(t[30]=o("div",{class:"aside-label"},"URL",-1)),o("div",Ph,c(n?._url),1)])):p("v-if",!0)])])])):p("v-if",!0)],2))),128))])):p("v-if",!0)])}var Vh={class:"container paper-page admin-page overview-page"},qh={key:0,class:"admin-empty"},Mh={key:1,class:"alert alert-danger",style:{margin:"12px 0"}},$h={key:2},Lh={class:"ov-kpi-row"},Uh={class:"ov-kpi-card"},Fh={class:"ov-kpi-value"},zh={class:"ov-kpi-sub"},Hh={class:"ov-kpi-card"},Bh={class:"ov-kpi-sub"},jh={class:"ov-kpi-card"},Gh={class:"ov-kpi-sub"},Wh={class:"ov-kpi-card"},Kh={class:"ov-kpi-sub"},Yh={class:"ov-kpi-card"},Jh={class:"ov-kpi-value"},Qh={class:"ov-kpi-sub"},Xh={class:"ov-daily-row"},Zh={class:"ov-daily-card"},xh={class:"ov-daily-value"},ev={class:"ov-daily-card"},tv={class:"ov-daily-value"},ov={class:"ov-daily-sub"},sv={class:"ov-daily-card"},nv={class:"ov-daily-value"},rv={class:"ov-chart-row"},iv={class:"ov-chart-card"},av={key:0,class:"ov-spark-bars"},lv=["data-tip","aria-label"],dv={key:1,class:"ov-spark-x"},uv={class:"ov-chart-card"},cv={key:0,class:"ov-spark-bars"},pv=["data-tip","aria-label"],fv={key:1,class:"ov-spark-x"},mv={class:"ov-chart-card"},hv={class:"ov-chart-head"},vv={class:"ov-chart-legend"},gv={key:0,class:"ov-spark-bars"},yv=["data-tip","aria-label"],bv={key:1,class:"ov-spark-x"},wv={class:"ov-chart-card"},kv={key:0,class:"ov-spark-bars"},Ev=["data-tip","aria-label"],Cv={key:1,class:"ov-spark-x"},_v={class:"ov-triple-row"},Sv={class:"ov-panel-card"},Nv={class:"ov-panel-head"},Dv={class:"ov-panel-meta"},Rv={class:"ov-stacked-bar"},Tv={class:"ov-bar-legend"},Av={href:"/admin/repositories",class:"ov-legend-item"},Ov={class:"ov-legend-n"},Iv={href:"/admin/repositories",class:"ov-legend-item"},Pv={class:"ov-legend-n"},Vv={href:"/admin/repositories",class:"ov-legend-item"},qv={class:"ov-legend-n"},Mv={href:"/admin/repositories",class:"ov-legend-item"},$v={class:"ov-legend-n"},Lv={href:"/admin/repositories",class:"ov-legend-item"},Uv={class:"ov-legend-n"},Fv={class:"ov-panel-card"},zv={class:"ov-panel-head"},Hv={class:"ov-panel-meta"},Bv={class:"ov-error-bars"},jv={class:"ov-ebar-row"},Gv={class:"ov-ebar-track"},Wv={class:"ov-ebar-n"},Kv={class:"ov-ebar-row"},Yv={class:"ov-ebar-track"},Jv={class:"ov-ebar-n"},Qv={class:"ov-ebar-row"},Xv={class:"ov-ebar-track"},Zv={class:"ov-ebar-n"},xv={key:0,class:"ov-panel-foot"},eg={href:"/admin/errors"},tg={class:"ov-panel-card"},og={class:"ov-routes-table"},sg={class:"ov-route-row",href:"/admin/queues"},ng={class:"ov-route-n"},rg={class:"ov-route-n"},ig={class:"ov-route-row",href:"/admin/queues"},ag={class:"ov-route-n"},lg={class:"ov-route-n"},dg={class:"ov-route-row",href:"/admin/queues"},ug={class:"ov-route-n"},cg={class:"ov-route-n"},pg={class:"ov-services-card"},fg={class:"ov-services-head"},mg={class:"ov-panel-meta"},hg={class:"ov-services-grid"},vg={class:"ov-svc"},gg={class:"ov-svc-info"},yg={class:"ov-svc-meta"},bg={class:"ov-svc-detail"},wg={class:"ov-svc"},kg={class:"ov-svc-info"},Eg={key:0,class:"ov-svc-meta"},Cg={key:1,class:"ov-svc-meta"},_g={class:"ov-svc"},Sg={class:"ov-svc-info"},Ng={key:0,class:"ov-svc-meta"},Dg={key:1,class:"ov-svc-meta"},Rg={class:"ov-svc"},Tg={class:"ov-svc-info"},Ag={key:0,class:"ov-svc-meta"},Og={key:1,class:"ov-svc-meta"},Ig={class:"ov-svc"},Pg={class:"ov-svc-info"},Vg={class:"ov-svc-meta"},qg={class:"ov-panel-card ov-performance","aria-labelledby":"performance-heading"},Mg={class:"ov-panel-head ov-performance-head"},$g={class:"ov-performance-window"},Lg={key:0,class:"ov-performance-message ov-performance-warning",role:"alert"},Ug={key:1,class:"ov-performance-empty",role:"status"},Fg={key:2},zg={class:"paper-tabs ov-performance-tabs",role:"tablist","aria-label":"Performance metrics"},Hg=["aria-selected","tabindex"],Bg=["aria-selected","tabindex"],jg=["aria-selected","tabindex"],Gg={id:"performance-routes",role:"tabpanel","aria-labelledby":"performance-routes-tab"},Wg={key:0,class:"ov-metrics-scroll",tabindex:"0",role:"region","aria-label":"Route latency metrics, scroll for more columns"},Kg={class:"ov-metrics-table"},Yg={scope:"row",class:"ov-metric-name"},Jg={class:"num"},Qg={class:"num"},Xg={class:"num"},Zg={class:"num"},xg={class:"num"},ey={key:1,class:"ov-performance-empty"},ty={id:"performance-processes",role:"tabpanel","aria-labelledby":"performance-processes-tab"},oy={key:0,class:"ov-performance-message ov-performance-warning",role:"status"},sy={key:1,class:"ov-metrics-scroll",tabindex:"0",role:"region","aria-label":"Process resource metrics, scroll for more columns"},ny={class:"ov-metrics-table"},ry={scope:"row",class:"ov-metric-name"},iy={key:0,class:"ov-metric-warn"},ay={class:"num"},ly={class:"num"},dy={class:"num"},uy={class:"num"},cy={class:"num"},py={class:"num"},fy={class:"num"},my={class:"num"},hy={id:"performance-stages",role:"tabpanel","aria-labelledby":"performance-stages-tab"},vy={key:0,class:"ov-metrics-scroll",tabindex:"0",role:"region","aria-label":"Work stage metrics, scroll for more columns"},gy={class:"ov-metrics-table"},yy={scope:"row",class:"ov-metric-name"},by={class:"num"},wy={class:"num"},ky={class:"num"},Ey={key:1,class:"ov-performance-empty"};function gl(e,t){return l(),d("div",Vh,[t[65]||(t[65]=ce('<div class="paper-crumbs">Admin \xA0/\xA0 <span class="here">Overview</span></div><div class="ov-header"><h1 class="paper-page-title">Overview</h1></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",qh,"Loading overview\u2026")):p("v-if",!0),e.error?(l(),d("div",Mh,[t[9]||(t[9]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-warning"})],-1)),b(" "+c(e.error),1)])):p("v-if",!0),e.data?(l(),d("div",$h,[p(" \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 "),o("section",Lh,[o("div",Uh,[t[10]||(t[10]=o("div",{class:"ov-kpi-label"},[b("Repositories "),o("span",{class:"ov-dot ov-dot-ok"})],-1)),o("div",Fh,c(e.humanNum(e.data?.repos?.total)),1),o("div",zh,"+"+c(e.data?.repos?.newRepos24h)+" \xB7 last 24h",1)]),o("div",Hh,[t[11]||(t[11]=o("div",{class:"ov-kpi-label"},"CPU",-1)),o("div",{class:A(["ov-kpi-value",{"ov-val-warn":e.data?.system?.cpuPercent>80}])},c(e.data?.system?.cpuPercent)+"%",3),o("div",Bh,c(e.data?.system?.cpuCount)+" cores \xB7 load "+c(e.data?.system?.loadAvg?.[0]?.toFixed(1)),1)]),o("div",jh,[t[12]||(t[12]=o("div",{class:"ov-kpi-label"},"Memory",-1)),o("div",{class:A(["ov-kpi-value",{"ov-val-warn":e.data?.system?.memPercent>85}])},c(e.data?.system?.memPercent)+"%",3),o("div",Gh,c(e.humanBytes(e.data?.system?.memUsed))+" / "+c(e.humanBytes(e.data?.system?.memTotal)),1)]),o("div",Wh,[t[13]||(t[13]=o("div",{class:"ov-kpi-label"},"Disk",-1)),o("div",{class:A(["ov-kpi-value",{"ov-val-warn":e.data?.system?.diskPercent>85}])},c(e.data?.system?.diskPercent)+"%",3),o("div",Kh,c(e.humanBytes(e.data?.system?.diskUsed))+" / "+c(e.humanBytes(e.data?.system?.diskTotal))+" \xB7 "+c(e.data?.system?.diskMount),1)]),o("div",Yh,[t[14]||(t[14]=o("div",{class:"ov-kpi-label"},"Uptime",-1)),o("div",Jh,c(e.humanDuration(e.data?.system?.uptime)),1),o("div",Qh,c(e.data?.system?.nodeVersion)+" \xB7 "+c(e.data?.system?.platform),1)])]),p(" \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 "),o("section",Xh,[o("div",Zh,[t[15]||(t[15]=o("div",{class:"ov-daily-label"},"New repos today",-1)),o("div",xh,"+"+c(e.fmt?.number(e.data?.daily?.today?.repositories)),1),t[16]||(t[16]=o("div",{class:"ov-daily-sub"},"since yesterday",-1))]),o("div",ev,[t[17]||(t[17]=o("div",{class:"ov-daily-label"},"New users today",-1)),o("div",tv,"+"+c(e.fmt?.number(e.data?.daily?.today?.users)),1),o("div",ov,c(e.fmt?.number(e.data?.users?.total))+" total users",1)]),o("div",sv,[t[18]||(t[18]=o("div",{class:"ov-daily-label"},"Page views today",-1)),o("div",nv,"+"+c(e.fmt?.number(e.data?.daily?.today?.pageViews)),1),t[19]||(t[19]=o("div",{class:"ov-daily-sub"},"since yesterday",-1))])]),p(" \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 "),o("section",rv,[o("div",iv,[t[20]||(t[20]=o("div",{class:"ov-chart-head"},[o("span",{class:"ov-chart-title"},"Daily page views \xB7 30d"),o("span",{class:"ov-chart-legend"},[o("span",{class:"ov-dot-legend ov-dot-accent"}),b("views/day")])],-1)),e.data?.history?.length?(l(),d("div",av,[(l(!0),d(X,null,re(e.data?.history,(s,r)=>(l(),d("div",{class:"ov-spark-col has-tip",key:r,"data-tip":e.historyLabel(s)+": +"+e.fmt?.number(s?.dailyPageViews)+" views","aria-label":e.historyLabel(s)+": +"+e.fmt?.number(s?.dailyPageViews)+" views"},[o("span",{class:"ov-spark-fill",style:qe({height:e.historyBarH(s,"dailyPageViews")+"px"})},null,4)],8,lv))),128))])):p("v-if",!0),e.data?.history?.length?(l(),d("div",dv,[o("span",null,c(e.historyLabel(e.data?.history[0])),1),o("span",null,c(e.historyLabel(e.data?.history[Math?.floor(e.data?.history?.length/2)])),1),o("span",null,c(e.historyLabel(e.data?.history[e.data?.history?.length-1])),1)])):p("v-if",!0)]),o("div",uv,[t[21]||(t[21]=o("div",{class:"ov-chart-head"},[o("span",{class:"ov-chart-title"},"New repos \xB7 30d"),o("span",{class:"ov-chart-legend"},[o("span",{class:"ov-dot-legend ov-dot-ok-fill"}),b("repos/day")])],-1)),e.data?.history?.length?(l(),d("div",cv,[(l(!0),d(X,null,re(e.data?.history,(s,r)=>(l(),d("div",{class:"ov-spark-col has-tip",key:r,"data-tip":e.historyLabel(s)+": +"+e.fmt?.number(s?.dailyRepositories)+" repos","aria-label":e.historyLabel(s)+": +"+e.fmt?.number(s?.dailyRepositories)+" repos"},[o("span",{class:"ov-spark-fill ov-spark-fill-alt",style:qe({height:e.historyBarH(s,"dailyRepositories")+"px"})},null,4)],8,pv))),128))])):p("v-if",!0),e.data?.history?.length?(l(),d("div",fv,[o("span",null,c(e.historyLabel(e.data?.history[0])),1),o("span",null,c(e.historyLabel(e.data?.history[Math?.floor(e.data?.history?.length/2)])),1),o("span",null,c(e.historyLabel(e.data?.history[e.data?.history?.length-1])),1)])):p("v-if",!0)]),o("div",mv,[o("div",hv,[t[23]||(t[23]=o("span",{class:"ov-chart-title"},"Users \xB7 30d",-1)),o("span",vv,[t[22]||(t[22]=o("span",{class:"ov-dot-legend ov-dot-user-fill"},null,-1)),b("total users \xB7 "+c(e.fmt?.number(e.historyRange("nbUsers").min))+"\u2013"+c(e.fmt?.number(e.historyRange("nbUsers").max)),1)])]),e.data?.history?.length?(l(),d("div",gv,[(l(!0),d(X,null,re(e.data?.history,(s,r)=>(l(),d("div",{class:"ov-spark-col has-tip",key:r,"data-tip":e.historyLabel(s)+": "+e.fmt?.number(s?.nbUsers)+" users","aria-label":e.historyLabel(s)+": "+e.fmt?.number(s?.nbUsers)+" users"},[o("span",{class:"ov-spark-fill ov-spark-fill-user",style:qe({height:e.historyRangeH(s,"nbUsers")+"px"})},null,4)],8,yv))),128))])):p("v-if",!0),e.data?.history?.length?(l(),d("div",bv,[o("span",null,c(e.historyLabel(e.data?.history[0])),1),o("span",null,c(e.historyLabel(e.data?.history[Math?.floor(e.data?.history?.length/2)])),1),o("span",null,c(e.historyLabel(e.data?.history[e.data?.history?.length-1])),1)])):p("v-if",!0)]),o("div",wv,[t[24]||(t[24]=o("div",{class:"ov-chart-head"},[o("span",{class:"ov-chart-title"},"New users \xB7 30d"),o("span",{class:"ov-chart-legend"},[o("span",{class:"ov-dot-legend ov-dot-new-user-fill"}),b("users/day")])],-1)),e.data?.history?.length?(l(),d("div",kv,[(l(!0),d(X,null,re(e.data?.history,(s,r)=>(l(),d("div",{class:"ov-spark-col has-tip",key:r,"data-tip":e.historyLabel(s)+": +"+e.fmt?.number(s?.dailyUsers)+" users","aria-label":e.historyLabel(s)+": +"+e.fmt?.number(s?.dailyUsers)+" users"},[o("span",{class:"ov-spark-fill ov-spark-fill-new-user",style:qe({height:e.historyBarH(s,"dailyUsers")+"px"})},null,4)],8,Ev))),128))])):p("v-if",!0),e.data?.history?.length?(l(),d("div",Cv,[o("span",null,c(e.historyLabel(e.data?.history[0])),1),o("span",null,c(e.historyLabel(e.data?.history[Math?.floor(e.data?.history?.length/2)])),1),o("span",null,c(e.historyLabel(e.data?.history[e.data?.history?.length-1])),1)])):p("v-if",!0)])]),p(" \u2500\u2500 Three-panel row: Status / Errors / Queues \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),o("section",_v,[p(" Repo status breakdown "),o("div",Sv,[o("div",Nv,[t[25]||(t[25]=o("span",{class:"ov-panel-title"},"Repo status",-1)),o("span",Dv,c(e.fmt?.number(e.data?.repos?.total))+" total",1)]),o("div",Rv,[o("span",{class:"ov-bar-seg ov-bar-ready",title:"Ready",style:qe({width:e.barPct("ready")+"%"})},null,4),o("span",{class:"ov-bar-seg ov-bar-preparing",title:"Preparing",style:qe({width:e.barPct("preparing")+"%"})},null,4),o("span",{class:"ov-bar-seg ov-bar-error",title:"Error",style:qe({width:e.barPct("error")+"%"})},null,4),o("span",{class:"ov-bar-seg ov-bar-expired",title:"Expired",style:qe({width:e.barPct("expired")+"%"})},null,4),o("span",{class:"ov-bar-seg ov-bar-removed",title:"Removed",style:qe({width:e.barPct("removed")+"%"})},null,4)]),o("div",Tv,[o("a",Av,[t[26]||(t[26]=o("span",{class:"ov-swatch ov-bar-ready"},null,-1)),t[27]||(t[27]=b(" ready ",-1)),o("span",Ov,c(e.fmt?.number(e.statusCount("ready"))),1)]),o("a",Iv,[t[28]||(t[28]=o("span",{class:"ov-swatch ov-bar-preparing"},null,-1)),t[29]||(t[29]=b(" preparing ",-1)),o("span",Pv,c(e.fmt?.number(e.statusCount("preparing")+e.statusCount("download"))),1)]),o("a",Vv,[t[30]||(t[30]=o("span",{class:"ov-swatch ov-bar-error"},null,-1)),t[31]||(t[31]=b(" error ",-1)),o("span",qv,c(e.fmt?.number(e.statusCount("error"))),1)]),o("a",Mv,[t[32]||(t[32]=o("span",{class:"ov-swatch ov-bar-expired"},null,-1)),t[33]||(t[33]=b(" expired ",-1)),o("span",$v,c(e.fmt?.number(e.statusCount("expired")+e.statusCount("expiring"))),1)]),o("a",Lv,[t[34]||(t[34]=o("span",{class:"ov-swatch ov-bar-removed"},null,-1)),t[35]||(t[35]=b(" removed ",-1)),o("span",Uv,c(e.fmt?.number(e.statusCount("removed")+e.statusCount("removing"))),1)])])]),p(" Error breakdown "),o("div",Fv,[o("div",zv,[t[36]||(t[36]=o("span",{class:"ov-panel-title"},"Errors \xB7 24h",-1)),o("span",Hv,c(e.data?.errors?.last24h)+" total",1)]),o("div",Bv,[o("div",jv,[t[37]||(t[37]=o("span",{class:"ov-ebar-label"},"5xx",-1)),o("span",Gv,[o("span",{class:"ov-ebar-fill ov-ebar-error",style:qe({width:e.errPct("error")+"%"})},null,4)]),o("span",Wv,c(e.data?.errors?.severity?.error),1)]),o("div",Kv,[t[38]||(t[38]=o("span",{class:"ov-ebar-label"},"4xx",-1)),o("span",Yv,[o("span",{class:"ov-ebar-fill ov-ebar-warn",style:qe({width:e.errPct("warn")+"%"})},null,4)]),o("span",Jv,c(e.data?.errors?.severity?.warn),1)]),o("div",Qv,[t[39]||(t[39]=o("span",{class:"ov-ebar-label"},"Info",-1)),o("span",Xv,[o("span",{class:"ov-ebar-fill ov-ebar-info",style:qe({width:e.errPct("info")+"%"})},null,4)]),o("span",Zv,c(e.data?.errors?.severity?.info),1)])]),e.data?.repos?.recentErrors24h?(l(),d("div",xv,[o("a",eg,c(e.data?.repos?.recentErrors24h)+" repos in error state \u2192",1)])):p("v-if",!0)]),p(" Top routes / queues "),o("div",tg,[t[44]||(t[44]=o("div",{class:"ov-panel-head"},[o("span",{class:"ov-panel-title"},"Queues"),o("span",{class:"ov-panel-meta"},"by state")],-1)),o("div",og,[t[43]||(t[43]=ce('<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)),o("a",sg,[t[40]||(t[40]=o("span",{class:"ov-route-name"},"download",-1)),o("span",ng,c(e.data?.queues?.download?.active),1),o("span",rg,c(e.data?.queues?.download?.waiting),1),o("span",{class:A(["ov-route-n ov-route-lat",{"ov-n-bad":e.data?.queues?.download?.failed>0}])},c(e.data?.queues?.download?.failed),3)]),o("a",ig,[t[41]||(t[41]=o("span",{class:"ov-route-name"},"remove",-1)),o("span",ag,c(e.data?.queues?.remove?.active),1),o("span",lg,c(e.data?.queues?.remove?.waiting),1),o("span",{class:A(["ov-route-n ov-route-lat",{"ov-n-bad":e.data?.queues?.remove?.failed>0}])},c(e.data?.queues?.remove?.failed),3)]),o("a",dg,[t[42]||(t[42]=o("span",{class:"ov-route-name"},"cache",-1)),o("span",ug,c(e.data?.queues?.cache?.active),1),o("span",cg,c(e.data?.queues?.cache?.waiting),1),o("span",{class:A(["ov-route-n ov-route-lat",{"ov-n-bad":e.data?.queues?.cache?.failed>0}])},c(e.data?.queues?.cache?.failed),3)])])])]),p(" \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 "),o("section",pg,[o("div",fg,[t[45]||(t[45]=o("span",{class:"ov-panel-title"},"Services",-1)),o("span",mg,c(e.fmt?.number(e.data?.users?.total))+" users \xB7 "+c(e.data?.conferences?.total)+" conferences",1)]),o("div",hg,[o("div",vg,[t[47]||(t[47]=o("span",{class:"ov-svc-dot ov-dot-ok"},null,-1)),o("div",gg,[t[46]||(t[46]=o("span",{class:"ov-svc-name"},"web",-1)),o("span",yg,c(e.data?.system?.nodeVersion),1)]),o("span",bg,"uptime "+c(e.humanDuration(e.data?.system?.uptime)),1)]),o("div",wg,[o("span",{class:A(["ov-svc-dot",e.queueTotal(e.data?.queues?.download)>0?"ov-dot-ok":"ov-dot-idle"])},null,2),o("div",kg,[t[48]||(t[48]=o("span",{class:"ov-svc-name"},"download",-1)),e.queueTotal(e.data?.queues?.download)?(l(),d("span",Eg,c(e.queueTotal(e.data?.queues?.download))+" jobs",1)):p("v-if",!0),e.queueTotal(e.data?.queues?.download)?p("v-if",!0):(l(),d("span",Cg,"idle"))])]),o("div",_g,[o("span",{class:A(["ov-svc-dot",e.queueTotal(e.data?.queues?.cache)>0?"ov-dot-ok":"ov-dot-idle"])},null,2),o("div",Sg,[t[49]||(t[49]=o("span",{class:"ov-svc-name"},"cache",-1)),e.queueTotal(e.data?.queues?.cache)?(l(),d("span",Ng,c(e.queueTotal(e.data?.queues?.cache))+" jobs",1)):p("v-if",!0),e.queueTotal(e.data?.queues?.cache)?p("v-if",!0):(l(),d("span",Dg,"idle"))])]),o("div",Rg,[o("span",{class:A(["ov-svc-dot",e.queueTotal(e.data?.queues?.remove)>0?"ov-dot-ok":"ov-dot-idle"])},null,2),o("div",Tg,[t[50]||(t[50]=o("span",{class:"ov-svc-name"},"remove",-1)),e.queueTotal(e.data?.queues?.remove)?(l(),d("span",Ag,c(e.queueTotal(e.data?.queues?.remove))+" jobs",1)):p("v-if",!0),e.queueTotal(e.data?.queues?.remove)?p("v-if",!0):(l(),d("span",Og,"idle"))])]),o("div",Ig,[o("span",{class:A(["ov-svc-dot",e.data?.repos?.recentErrors24h>10?"ov-dot-warn":"ov-dot-ok"])},null,2),o("div",Pg,[t[51]||(t[51]=o("span",{class:"ov-svc-name"},"errors",-1)),o("span",Vg,c(e.data?.errors?.last24h)+" / 24h",1)])])])])])):p("v-if",!0),o("section",qg,[o("div",Mg,[t[54]||(t[54]=o("div",null,[o("h2",{class:"ov-panel-title",id:"performance-heading"},"Request performance"),o("p",{class:"ov-performance-note"},"Request latency and process health \xB7 refreshes every 30 seconds")],-1)),o("div",$g,[t[53]||(t[53]=o("label",{for:"performance-window"},"Time range",-1)),N(o("select",{id:"performance-window",class:"form-control form-control-sm","onUpdate:modelValue":t[0]||(t[0]=s=>e.performanceMinutes=s),onChange:t[1]||(t[1]=s=>e.loadPerformance()),"aria-label":"Performance time range"},[...t[52]||(t[52]=[o("option",{value:15},"Last 15 minutes",-1),o("option",{value:60},"Last hour",-1)])],544),[[ta,e.performanceMinutes,void 0,{number:!0}]])])]),e.performanceError?(l(),d("div",Lg,[t[55]||(t[55]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-warning"})],-1)),o("span",null,c(e.performanceError),1),o("button",{type:"button",class:"btn btn-sm",onClick:t[2]||(t[2]=s=>e.loadPerformance())},"Retry")])):p("v-if",!0),!e.performance&&!e.performanceError?(l(),d("p",Ug,"Loading performance monitoring\u2026")):p("v-if",!0),e.performance?.available?(l(),d("div",Fg,[o("div",zg,[o("button",{id:"performance-routes-tab",type:"button",class:A(["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[3]||(t[3]=s=>e.performanceTab="routes"),onKeydown:t[4]||(t[4]=s=>e.previewTabKeydown(s))},"Routes",42,Hg),o("button",{id:"performance-processes-tab",type:"button",class:A(["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[5]||(t[5]=s=>e.performanceTab="processes"),onKeydown:t[6]||(t[6]=s=>e.previewTabKeydown(s))},"Processes",42,Bg),o("button",{id:"performance-stages-tab",type:"button",class:A(["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[7]||(t[7]=s=>e.performanceTab="stages"),onKeydown:t[8]||(t[8]=s=>e.previewTabKeydown(s))},"Work stages",42,jg)]),N(o("div",Gg,[e.performance.routes?.length?(l(),d("div",Wg,[o("table",Kg,[t[56]||(t[56]=o("caption",{class:"sr-only"},"Route latency for the selected time range",-1)),t[57]||(t[57]=o("thead",null,[o("tr",null,[o("th",{scope:"col"},"Route"),o("th",{scope:"col",class:"num"},"Requests"),o("th",{scope:"col",class:"num"},"Average"),o("th",{scope:"col",class:"num"},"First byte p95"),o("th",{scope:"col",class:"num"},"p95"),o("th",{scope:"col",class:"num"},"p99"),o("th",{scope:"col",class:"num"},"Interrupted"),o("th",{scope:"col",class:"num"},"5xx"),o("th",{scope:"col",class:"num"},"Slow")])],-1)),o("tbody",null,[(l(!0),d(X,null,re(e.performance.routes,s=>(l(),d("tr",{key:s.service+s.method+s.route},[o("th",Yg,[o("span",null,c(s.route),1),o("small",null,c(s.service)+" \xB7 "+c(s.method),1)]),o("td",Jg,c(e.fmt.number(s.count)),1),o("td",Qg,c(e.formatMs(s.avgMs)),1),o("td",Xg,c(e.firstByteBound(s)),1),o("td",Zg,c(e.latencyBound(s,"p95UpperMs")),1),o("td",xg,c(e.latencyBound(s,"p99UpperMs")),1),o("td",{class:A(["num",{"ov-metric-warn":s.aborted>0}])},c(e.fmt.number(s.aborted)),3),o("td",{class:A(["num",{"ov-metric-warn":s.errors>0}])},c(e.fmt.number(s.errors)),3),o("td",{class:A(["num",{"ov-metric-warn":s.slow>0}])},c(e.fmt.number(s.slow)),3)]))),128))])])])):(l(),d("p",ey,"No recorded requests in this time range yet."))],512),[[W,e.performanceTab==="routes"]]),N(o("div",ty,[t[61]||(t[61]=o("p",{class:"ov-performance-note"},"API and streamer processes \xB7 latest sample per instance",-1)),e.performance.instances?.length?(l(),d("div",sy,[o("table",ny,[t[59]||(t[59]=o("caption",{class:"sr-only"},"API and streamer process resource usage",-1)),t[60]||(t[60]=o("thead",null,[o("tr",null,[o("th",{scope:"col"},"Process"),o("th",{scope:"col",class:"num"},"RSS / limit"),o("th",{scope:"col",class:"num"},"CPU"),o("th",{scope:"col",class:"num"},"Event loop p95"),o("th",{scope:"col",class:"num"},"Active requests"),o("th",{scope:"col",class:"num"},"Sockets / CLOSE_WAIT"),o("th",{scope:"col",class:"num"},"Workers / waiting"),o("th",{scope:"col",class:"num"},"Sample age"),o("th",{scope:"col",class:"num"},"Dropped batches / metrics")])],-1)),o("tbody",null,[(l(!0),d(X,null,re(e.performance.instances,s=>(l(),d("tr",{key:s.instance,class:A({"ov-metric-warning-row":e.performanceWarning(s)})},[o("th",ry,[o("span",null,c(s.instance),1),e.performanceWarning(s)?(l(),d("small",iy,[...t[58]||(t[58]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-warning"})],-1),b(" Needs attention",-1)])])):p("v-if",!0)]),o("td",ay,[b(c(e.humanBytes(s.memory.rss))+" / "+c(e.humanBytes(s.memoryLimitBytes)),1),o("small",null,"Peak "+c(e.humanBytes(e.peakRss(s))),1)]),o("td",ly,c(s.cpuPercent.toFixed(1))+"%",1),o("td",dy,c(s.eventLoop.p95Ms.toFixed(1))+" ms",1),o("td",uy,c(s.activeRequests),1),o("td",cy,c(s.sockets?.descriptors??"Unavailable")+" / "+c(s.sockets?.closeWait??"Unavailable"),1),o("td",py,c(s.workers?.running??0)+" / "+c(s.workers?.waiting??0),1),o("td",fy,c(e.sampleAge(s))+" s",1),o("td",my,c(s.droppedBatches)+" / "+c(s.droppedMetrics),1)],2))),128))])])])):(l(),d("div",oy,"No recent process samples. Monitoring coverage is incomplete."))],512),[[W,e.performanceTab==="processes"]]),N(o("div",hy,[e.performance.stages?.some(s=>s.metric!=="first_byte")?(l(),d("div",vy,[o("table",gy,[t[62]||(t[62]=o("caption",{class:"sr-only"},"Work stages and cache results",-1)),t[63]||(t[63]=o("thead",null,[o("tr",null,[o("th",{scope:"col"},"Work stage"),o("th",{scope:"col",class:"num"},"Samples"),o("th",{scope:"col",class:"num"},"Average"),o("th",{scope:"col",class:"num"},"p95")])],-1)),o("tbody",null,[(l(!0),d(X,null,re(e.performance.stages.filter(s=>s.metric!=="first_byte"),s=>(l(),d("tr",{key:s.service+s.metric},[o("th",yy,[o("span",null,c(s.metric),1),o("small",null,c(s.service),1)]),o("td",by,c(e.fmt.number(s.count)),1),o("td",wy,c(e.formatMs(s.avgMs)),1),o("td",ky,c(e.latencyBound(s,"p95UpperMs")),1)]))),128))])])])):(l(),d("p",Ey,"No recorded work stages or cache results in this time range yet."))],512),[[W,e.performanceTab==="stages"]]),t[64]||(t[64]=o("details",{class:"ov-performance-help"},[o("summary",null,"How to read these metrics"),o("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))])):p("v-if",!0)])])}var Cy={class:"container paper-page admin-page"},_y={class:"q-header"},Sy={class:"q-header-actions"},Ny={class:"q-range-btns"},Dy={class:"q-cards"},Ry=["aria-pressed","onKeydown","onClick"],Ty={class:"q-card-head"},Ay=["textContent"],Oy=["textContent"],Iy={class:"q-card-sub"},Py={key:0,class:"q-card-bar"},Vy={key:0,class:"q-detail"},qy={class:"q-throughput"},My={class:"q-section-label"},$y={class:"q-section-right"},Ly={class:"q-stats-panel"},Uy={class:"q-section-label"},Fy={class:"q-stats-grid"},zy={class:"q-stat"},Hy=["textContent"],By={class:"q-stat"},jy=["textContent"],Gy={class:"q-stat"},Wy=["textContent"],Ky={class:"q-stat"},Yy=["textContent"],Jy={class:"q-stat"},Qy=["textContent"],Xy={class:"q-stat"},Zy=["textContent"],xy={class:"q-stats-actions"},eb=["disabled"],tb={class:"q-jobs"},ob={class:"q-jobs-header"},sb={class:"q-section-label"},rb={class:"q-state-filters"},ib={class:"q-state-toggle"},ab={type:"checkbox"},lb={class:"q-search-row"},db={type:"search",class:"form-control",placeholder:"Search by job/repo id\u2026",autocomplete:"off"},ub={class:"q-auto-refresh"},cb={type:"checkbox"},pb={key:0,class:"q-table"},fb=["onClick"],mb={class:"q-cell-state"},hb=["textContent"],vb=["textContent"],gb={class:"q-cell-id"},yb=["textContent","href"],bb={class:"q-cell-payload"},wb=["textContent"],kb={key:0,class:"q-payload-detail"},Eb=["textContent"],Cb=["textContent"],_b={class:"q-cell-progress"},Sb={key:0,class:"q-progress-wrap"},Nb=["textContent"],Db={class:"q-cell-actions"},Rb=["onClick"],Tb=["onClick"],Ab={key:0,class:"q-detail-row"},Ob={colspan:"7"},Ib={class:"q-job-detail"},Pb={class:"q-job-detail-grid"},Vb={class:"q-job-detail-item"},qb={class:"q-job-detail-value"},Mb=["textContent","href"],$b={class:"q-job-detail-item"},Lb={class:"q-job-detail-value"},Ub=["textContent"],Fb={key:0,class:"q-job-detail-item"},zb=["textContent"],Hb={key:1,class:"q-job-detail-item"},Bb=["textContent"],jb={key:2,class:"q-job-detail-item"},Gb={class:"q-job-detail-value"},Wb={key:3,class:"q-job-detail-item"},Kb=["textContent"],Yb={key:4,class:"q-job-detail-item"},Jb=["textContent"],Qb={key:5,class:"q-job-detail-item"},Xb=["textContent"],Zb={key:6,class:"q-job-detail-item"},xb=["textContent"],e1={key:7,class:"q-job-detail-item"},t1=["textContent"],o1={key:0,class:"q-job-detail-error"},s1=["textContent"],n1={key:1},r1=["textContent"],i1={class:"q-job-detail-actions"},a1=["onClick"],l1=["onClick"],d1=["href"],u1={key:1,class:"paper-table-empty",style:{border:"1px solid var(--border-color)","border-radius":"10px",background:"var(--paper-card)"}},c1={key:0},p1={key:1};function yl(e,t){let s=be("field");return l(),d("div",Cy,[t[48]||(t[48]=o("div",{class:"paper-crumbs"},[b("Admin \xA0/\xA0 "),o("span",{class:"here"},"Queues")],-1)),o("div",_y,[t[12]||(t[12]=o("h1",{class:"paper-page-title"},"Queues",-1)),o("div",Sy,[o("div",Ny,[o("button",{class:A(["btn btn-sm",{active:e.range=="1h"}]),onClick:t[0]||(t[0]=r=>e.setRange("1h"))},"1h",2),o("button",{class:A(["btn btn-sm",{active:e.range=="6h"}]),onClick:t[1]||(t[1]=r=>e.setRange("6h"))},"6h",2),o("button",{class:A(["btn btn-sm",{active:e.range=="24h"}]),onClick:t[2]||(t[2]=r=>e.setRange("24h"))},"24h",2),o("button",{class:A(["btn btn-sm",{active:e.range=="7d"}]),onClick:t[3]||(t[3]=r=>e.setRange("7d"))},"7d",2)]),o("button",{class:"btn btn-sm",onClick:t[4]||(t[4]=r=>e.pauseAll())},"Pause all"),o("button",{class:"btn btn-sm btn-danger-soft",onClick:t[5]||(t[5]=r=>e.drainSelected())},"Drain "+c(e.selectedQueue),1)])]),t[49]||(t[49]=ce('<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)),p(" Queue overview cards "),o("div",Dy,[(l(!0),d(X,null,re(e.queueList,(r,n)=>(l(),d("div",{class:A(["q-card",{selected:e.selectedQueue==r?.key,paused:r?.paused}]),role:"button",tabindex:"0","aria-pressed":e.selectedQueue===r.key,onKeydown:[Ro(me(i=>e.selectQueue(r.key),["prevent"]),["enter"]),Ro(me(i=>e.selectQueue(r.key),["prevent"]),["space"])],onClick:i=>e.selectQueue(r.key)},[o("div",Ty,[o("span",{class:A(["q-dot",{"q-dot-red":r?.paused||r?.counts?.failed>0}])},null,2),o("span",{class:"q-card-name",textContent:c(r?.label)},null,8,Ay)]),o("div",{class:"q-card-count",textContent:c((r?.counts?.waiting||0)+(r?.counts?.active||0)+(r?.counts?.delayed||0))},null,8,Oy),o("div",Iy,[o("span",null,"waiting \xB7 "+c(r?.counts?.active||0)+" active",1),r?.counts?.active?(l(),d("div",Py,[o("div",{class:"q-card-bar-fill",style:qe({width:r?.counts?.active/((r?.counts?.waiting||0)+(r?.counts?.active||0)+(r?.counts?.delayed||0)||1)*100+"%"})},null,4)])):p("v-if",!0)])],42,Ry))),256))]),p(" Detail: throughput chart + stats panel "),e.selectedStats?(l(),d("div",Vy,[o("div",qy,[o("div",My,[b(c(e.selectedQueue)+" \xB7 throughput ",1),o("span",$y,[t[13]||(t[13]=o("span",{class:"q-legend-completed"},"\u25CF",-1)),t[14]||(t[14]=b(" completed ",-1)),t[15]||(t[15]=o("span",{class:"q-legend-failed"},"\u25CF",-1)),t[16]||(t[16]=b(" failed ",-1)),t[17]||(t[17]=o("span",{class:"q-legend-exec"},"- -",-1)),b(" avg time \xB7 "+c(e.range),1)])]),t[18]||(t[18]=o("div",{class:"q-chart-wrap"},[o("canvas",{id:"q-throughput-chart",height:"180"}),o("div",{id:"q-chart-tooltip",class:"q-chart-tooltip",style:{display:"none"}}),o("div",{id:"q-chart-crosshair",class:"q-chart-crosshair",style:{display:"none"}})],-1))]),o("div",Ly,[o("div",Uy,c(e.selectedQueue)+" \xB7 stats",1),o("div",Fy,[o("div",zy,[t[19]||(t[19]=o("div",{class:"q-stat-label"},"Waiting",-1)),o("div",{class:"q-stat-value",textContent:c(e.selectedStats?.counts?.waiting||0)},null,8,Hy)]),o("div",By,[t[20]||(t[20]=o("div",{class:"q-stat-label"},"Active",-1)),o("div",{class:"q-stat-value",textContent:c(e.selectedStats?.counts?.active||0)},null,8,jy)]),o("div",Gy,[t[21]||(t[21]=o("div",{class:"q-stat-label"},"Completed (24h)",-1)),o("div",{class:"q-stat-value",textContent:c(e.fmt?.number(e.selectedStats?.completed24h))},null,8,Wy)]),o("div",Ky,[t[22]||(t[22]=o("div",{class:"q-stat-label"},"Failed (24h)",-1)),o("div",{class:"q-stat-value",textContent:c(e.selectedStats?.failed24h||0)},null,8,Yy)]),o("div",Jy,[t[23]||(t[23]=o("div",{class:"q-stat-label"},"Delayed",-1)),o("div",{class:"q-stat-value",textContent:c(e.selectedStats?.counts?.delayed||0)},null,8,Qy)]),o("div",Xy,[t[24]||(t[24]=o("div",{class:"q-stat-label"},"Workers",-1)),o("div",{class:"q-stat-value",textContent:c(e.selectedStats?.workers||0)},null,8,Zy)])]),o("div",xy,[o("button",{class:"btn btn-sm",onClick:t[6]||(t[6]=r=>e.togglePause())},c(e.selectedStats?.paused?"Resume":"Pause"),1),o("button",{class:"btn btn-sm",onClick:t[7]||(t[7]=r=>e.retryFailed()),disabled:!e.selectedStats?.counts?.failed},"Retry failed",8,eb),o("button",{class:"btn btn-sm",onClick:t[8]||(t[8]=r=>e.emptyQueue())},"Empty")])])])):p("v-if",!0),e.actionError?(l(),d("div",{key:1,class:"q-toast-error",onClick:t[9]||(t[9]=r=>e.actionError=null)},[t[25]||(t[25]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-info"})],-1)),b(" "+c(e.actionError),1)])):p("v-if",!0),p(" Jobs table "),o("div",tb,[o("div",ob,[o("div",sb,"All jobs \xB7 "+c(e.selectedQueue),1),o("div",rb,[(l(!0),d(X,null,re(e.allStates,(r,n)=>(l(),d("label",ib,[N(o("input",ab,null,512),[[s,{state:e.viewState,set:i=>{e.stateFilter[r]=i},value:e.stateFilter[r],form:null,options:{}}]]),o("span",{class:A("q-state-chip q-state-"+r)},c(r),3)]))),256))])]),o("div",lb,[N(o("input",db,null,512),[[s,{state:e.viewState,set:r=>{e.query.search=r},value:e.query?.search,form:null,options:{}}]]),o("label",ub,[N(o("input",cb,null,512),[[s,{state:e.viewState,set:r=>{e.query.autoRefresh=r},value:e.query?.autoRefresh,form:null,options:{}}]]),t[26]||(t[26]=b(" Auto-refresh ",-1))]),o("button",{class:"btn btn-sm btn-icon",type:"button",title:"Refresh now",onClick:t[10]||(t[10]=r=>e.refreshNow()),"aria-label":"Refresh"},[...t[27]||(t[27]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1)])])]),e.filteredJobs().length>0?(l(),d("table",pb,[t[46]||(t[46]=o("thead",null,[o("tr",null,[o("th",null,"State"),o("th",null,"Job id"),o("th",null,"Payload"),o("th",null,"Attempts"),o("th",null,"Duration"),o("th",null,"Progress"),o("th")])],-1)),(l(!0),d(X,null,re(e.filteredJobs(),(r,n)=>(l(),d("tbody",null,[o("tr",{style:{cursor:"pointer"},class:A({"q-row-failed":r?._state=="failed","q-row-expanded":e.expanded[r?.id]}),onClick:i=>e.toggleJob(r)},[o("td",mb,[o("span",{textContent:c(r?._state),class:A("q-state-badge q-state-"+r?._state)},null,10,hb),r?._state=="delayed"&&r?.delayUntil?(l(),d("span",{key:0,class:"q-delay-hint",textContent:c(e.delayCountdown(r?.delayUntil))},null,8,vb)):p("v-if",!0)]),o("td",gb,[(l(),d("svg",{class:A(["ui-icon q-chevron",{"q-chevron-open":e.expanded[r?.id]}]),"aria-hidden":"true"},[...t[28]||(t[28]=[o("use",{href:"#ui-icon-chevron-right"},null,-1)])],2)),o("a",{target:"_blank",textContent:c("job:"+e.fmt.limitTo(r?.id,6)),onClick:t[11]||(t[11]=i=>i.stopPropagation()),href:e.safeUrl("/r/"+r?.id)},null,8,yb)]),o("td",bb,[o("span",{textContent:c(r?.name||"anonymize")},null,8,wb),r?.data?.repoId&&r?.data?.repoId!==r?.name?(l(),d("span",kb," \xB7 "+c(r?.data?.repoId),1)):p("v-if",!0)]),o("td",{class:"q-cell-num",textContent:c(r?.attemptsMade||1)},null,8,Eb),o("td",{class:"q-cell-num",textContent:c(e.jobDuration(r))},null,8,Cb),o("td",_b,[e.jobProgressPct(r)!==null?(l(),d("div",Sb,[o("div",{class:"q-progress-bar",style:qe({"--pct":e.jobProgressPct(r)+"%"})},null,4),o("span",{class:"q-progress-label",textContent:c(e.jobProgressPct(r)+"%")},null,8,Nb)])):p("v-if",!0)]),o("td",Db,[r?._state=="failed"?(l(),d("button",{key:0,class:"btn btn-sm btn-icon",title:"Retry",onClick:i=>{e.retryJob(r),i.stopPropagation()},"aria-label":"Retry job"},[...t[29]||(t[29]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1)])],8,Rb)):p("v-if",!0),o("button",{class:"btn btn-sm btn-icon",title:"Remove","aria-label":"Remove job",onClick:i=>{e.removeJob(r),i.stopPropagation()}},[...t[30]||(t[30]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-trash"})],-1)])],8,Tb)])],10,fb),e.expanded[r?.id]?(l(),d("tr",Ab,[o("td",Ob,[o("div",Ib,[o("div",Pb,[o("div",Vb,[t[31]||(t[31]=o("span",{class:"q-job-detail-label"},"Job id",-1)),o("span",qb,[o("a",{target:"_blank",textContent:c(r?.id),href:e.safeUrl("/r/"+r?.id)},null,8,Mb)])]),o("div",$b,[t[32]||(t[32]=o("span",{class:"q-job-detail-label"},"State",-1)),o("span",Lb,[o("span",{textContent:c(r?._state),class:A("q-state-badge q-state-"+r?._state)},null,10,Ub)])]),r?.data?.repoId?(l(),d("div",Fb,[t[33]||(t[33]=o("span",{class:"q-job-detail-label"},"Repo ID",-1)),o("span",{class:"q-job-detail-value",textContent:c(r?.data?.repoId)},null,8,zb)])):p("v-if",!0),r?.timestamp?(l(),d("div",Hb,[t[34]||(t[34]=o("span",{class:"q-job-detail-label"},"Created",-1)),o("span",{class:"q-job-detail-value",textContent:c(e.humanTime(r?.timestamp))},null,8,Bb)])):p("v-if",!0),r?._state=="delayed"&&r?.delayUntil?(l(),d("div",jb,[t[35]||(t[35]=o("span",{class:"q-job-detail-label"},"Retry at",-1)),o("span",Gb,c(e.humanTime(r?.delayUntil))+" ("+c(e.delayCountdown(r?.delayUntil))+")",1)])):p("v-if",!0),r?.processedOn?(l(),d("div",Wb,[t[36]||(t[36]=o("span",{class:"q-job-detail-label"},"Processed",-1)),o("span",{class:"q-job-detail-value",textContent:c(e.humanTime(r?.processedOn))},null,8,Kb)])):p("v-if",!0),r?.finishedOn?(l(),d("div",Yb,[t[37]||(t[37]=o("span",{class:"q-job-detail-label"},"Finished",-1)),o("span",{class:"q-job-detail-value",textContent:c(e.humanTime(r?.finishedOn))},null,8,Jb)])):p("v-if",!0),r?.attemptsMade?(l(),d("div",Qb,[t[38]||(t[38]=o("span",{class:"q-job-detail-label"},"Attempts",-1)),o("span",{class:"q-job-detail-value",textContent:c(r?.attemptsMade)},null,8,Xb)])):p("v-if",!0),r?.progress&&r?.progress?.status?(l(),d("div",Zb,[t[39]||(t[39]=o("span",{class:"q-job-detail-label"},"Status",-1)),o("span",{class:"q-job-detail-value",textContent:c(r?.progress?.status)},null,8,xb)])):p("v-if",!0),e.jobProgressPct(r)!==null?(l(),d("div",e1,[t[40]||(t[40]=o("span",{class:"q-job-detail-label"},"Progress",-1)),o("span",{class:"q-job-detail-value",textContent:c(e.jobProgressPct(r)+"%")},null,8,t1)])):p("v-if",!0)]),r?.failedReason?(l(),d("div",o1,[t[41]||(t[41]=o("span",{class:"q-job-detail-label"},"Error",-1)),o("div",{class:"q-error-reason",textContent:c(r?.failedReason)},null,8,s1)])):p("v-if",!0),r?.stacktrace?.length?(l(),d("div",n1,[t[42]||(t[42]=o("span",{class:"q-job-detail-label"},"Stacktrace",-1)),(l(!0),d(X,null,re(r?.stacktrace,(i,a)=>(l(),d("pre",{class:"q-error-stack",key:a},[o("code",{textContent:c(i)},null,8,r1)]))),128))])):p("v-if",!0),o("div",i1,[r?._state=="failed"?(l(),d("button",{key:0,class:"btn btn-sm",onClick:i=>e.retryJob(r)},[...t[43]||(t[43]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1),b(" Retry",-1)])],8,a1)):p("v-if",!0),o("button",{class:"btn btn-sm",onClick:i=>e.removeJob(r)},[...t[44]||(t[44]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-trash"})],-1),b(" Remove",-1)])],8,l1),o("a",{class:"btn btn-sm",target:"_blank",href:e.safeUrl("/r/"+r?.id)},[...t[45]||(t[45]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-external-link"})],-1),b(" View repo",-1)])],8,d1)])])])])):p("v-if",!0)]))),256))])):p("v-if",!0),e.filteredJobs().length==0?(l(),d("div",u1,[t[47]||(t[47]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-check-circle"})],-1)),e.query?.search?p("v-if",!0):(l(),d("span",c1,"No jobs in the "+c(e.selectedQueue)+" queue.",1)),e.query?.search?(l(),d("span",p1,"No jobs match the current filters.")):p("v-if",!0)])):p("v-if",!0)])])}var f1={class:"container paper-page admin-page"},m1={class:"admin-summary"},h1={class:"summary-total"},v1={class:"summary-meta"},g1=["aria-pressed"],y1={class:"count"},b1=["aria-pressed"],w1={class:"count"},k1=["aria-pressed"],E1={class:"count"},C1=["aria-pressed"],_1={class:"count"},S1=["aria-pressed"],N1={class:"count"},D1={key:0,class:"alert alert-danger",style:{margin:"8px 0"}},R1={class:"w-100 admin-filter-toolbar","aria-label":"Repositories","accept-charset":"UTF-8"},T1={class:"admin-filter-row"},A1={class:"search-wrap"},O1={type:"search",class:"form-control","aria-label":"Search repositories",placeholder:"Search repoId, source repo, error message\u2026",autocomplete:"off"},I1={key:0,class:"admin-search-hint"},P1={class:"admin-filter-inline"},V1={type:"text",class:"form-control form-control-sm",placeholder:"username"},q1={class:"admin-filter-inline"},M1={type:"text",class:"form-control form-control-sm",placeholder:"ID"},$1={class:"admin-filter-inline","aria-label":"Pagination"},L1=["disabled"],U1={style:{"font-family":"var(--font-mono)","font-size":"12px",color:"var(--ink-muted)"}},F1=["disabled"],z1={key:0,class:"admin-filter-row"},H1={class:"admin-active-chips"},B1={class:"key"},j1=["onClick"],G1={key:1,class:"bulk-bar"},W1={class:"paper-table paper-table-repos has-bulk w-100",role:"table","aria-label":"Repositories"},K1={class:"paper-table-head",role:"row"},Y1={role:"columnheader",style:{width:"28px"}},J1=["checked"],Q1={role:"columnheader"},X1={role:"columnheader"},Z1={role:"columnheader",class:"num"},x1={role:"columnheader"},ew={role:"cell",style:{width:"28px"}},tw={type:"checkbox","aria-label":"Select repository"},ow={class:"cell-anon",role:"cell"},sw={class:"anon-text"},nw=["textContent","href"],rw={class:"anon-sub"},iw=["textContent","href"],aw={key:0},lw=["textContent","href"],dw={key:1},uw=["textContent","href"],cw={key:2},pw={class:"cell-status",role:"cell"},fw={class:"status-line"},mw=["textContent"],hw=["textContent","title"],vw={class:"cell-views num",role:"cell"},gw=["textContent"],yw={class:"cell-expires",role:"cell"},bw=["textContent"],ww={class:"cell-actions",role:"cell"},kw={class:"dropdown"},Ew={class:"dropdown-menu dropdown-menu-right"},Cw=["href"],_w=["href"],Sw=["href"],Nw=["onClick"],Dw=["onClick"],Rw=["onClick"],Tw=["onClick"],Aw=["onClick"],Ow=["onClick"],Iw={key:0,class:"paper-table-empty"},Pw={class:"admin-toolbar",style:{"justify-content":"space-between","border-bottom":"none"}},Vw={style:{"font-size":"12px",color:"var(--ink-muted)"}},qw={key:0,class:"pagination-compact"},Mw=["disabled"],$w=["max"],Lw=["disabled"],Uw={class:"admin-filter-inline"},Fw={class:"form-control form-control-sm"};function bl(e,t){let s=be("field"),r=be("form");return l(),d("div",f1,[t[69]||(t[69]=ce('<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)),o("div",m1,[o("span",h1,c(e.total>=0?e.fmt.number(e.total):"\u2026"),1),o("span",v1,c(e.fmt?.humanFileSize(e.totalSize))+" on disk",1),o("button",{type:"button",class:A(["summary-pill ok",{active:e.query?.ready}]),title:"Toggle ready filter",onClick:t[0]||(t[0]=n=>{e.query.ready=!e.query.ready,e.query.page=1}),"aria-pressed":!!e.query?.ready},[t[18]||(t[18]=b("Ready ",-1)),o("span",y1,c(e.fmt?.number(e.statusCountFor("ready"))),1)],10,g1),o("button",{type:"button",class:A(["summary-pill warn",{active:e.query?.preparing}]),title:"Toggle preparing filter",onClick:t[1]||(t[1]=n=>{e.query.preparing=!e.query.preparing,e.query.page=1}),"aria-pressed":!!e.query?.preparing},[t[19]||(t[19]=b("Preparing ",-1)),o("span",w1,c(e.fmt?.number(e.statusCountFor("preparing")+e.statusCountFor("download"))),1)],10,b1),o("button",{type:"button",class:A(["summary-pill error",{active:e.query?.error}]),title:"Toggle errored filter",onClick:t[2]||(t[2]=n=>{e.query.error=!e.query.error,e.query.page=1}),"aria-pressed":!!e.query?.error},[t[20]||(t[20]=b("Errored ",-1)),o("span",E1,c(e.fmt?.number(e.statusCountFor("error"))),1)],10,k1),o("button",{type:"button",class:A(["summary-pill",{active:e.query?.expired}]),title:"Toggle expired filter",onClick:t[3]||(t[3]=n=>{e.query.expired=!e.query.expired,e.query.page=1}),"aria-pressed":!!e.query?.expired},[t[21]||(t[21]=b("Expired ",-1)),o("span",_1,c(e.fmt?.number(e.statusCountFor("expired")+e.statusCountFor("expiring"))),1)],10,C1),o("button",{type:"button",class:A(["summary-pill",{active:e.query?.removed}]),title:"Toggle removed filter",onClick:t[4]||(t[4]=n=>{e.query.removed=!e.query.removed,e.query.page=1}),"aria-pressed":!!e.query?.removed},[t[22]||(t[22]=b("Removed ",-1)),o("span",N1,c(e.fmt?.number(e.statusCountFor("removed")+e.statusCountFor("removing"))),1)],10,S1)]),e.fetchError?(l(),d("div",D1,[t[23]||(t[23]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-warning"})],-1)),b(" "+c(e.fetchError),1)])):p("v-if",!0),N((l(),d("form",R1,[p(" Row 1: search + scoped inputs + headline actions "),o("div",T1,[o("div",A1,[N(o("input",O1,null,512),[[s,{state:e.viewState,set:n=>{e.query.search=n},value:e.query?.search,form:null,options:{}}]]),e.query?.search?p("v-if",!0):(l(),d("span",I1,"/"))]),o("span",P1,[t[24]||(t[24]=o("label",null,"Owner",-1)),N(o("input",V1,null,512),[[s,{state:e.viewState,set:n=>{e.query.owner=n},value:e.query?.owner,form:null,options:{}}]])]),o("span",q1,[t[25]||(t[25]=o("label",null,"Conference",-1)),N(o("input",M1,null,512),[[s,{state:e.viewState,set:n=>{e.query.conference=n},value:e.query?.conference,form:null,options:{}}]])]),t[29]||(t[29]=o("span",{class:"admin-filter-spacer"},null,-1)),o("button",{class:"btn btn-sm",type:"button",title:"Export current view to CSV",onClick:t[5]||(t[5]=n=>e.exportCsv())},[...t[26]||(t[26]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-export"})],-1),b(" Export",-1)])]),o("span",$1,[o("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[6]||(t[6]=n=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1,"aria-label":"Previous page"},[...t[27]||(t[27]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-chevron-left"})],-1)])],8,L1),o("span",U1,c(e.query?.page)+"/"+c(e.totalPage||1),1),o("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[7]||(t[7]=n=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage,"aria-label":"Next page"},[...t[28]||(t[28]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-chevron-right"})],-1)])],8,F1)])]),p(" Row 2: appears only when there are active filter chips "),e.chips?.length?(l(),d("div",z1,[o("div",H1,[(l(!0),d(X,null,re(e.chips,(n,i)=>(l(),d("span",{class:"admin-active-chip",key:n?.key},[o("span",B1,c(n?.label),1),o("span",null,c(n?.value),1),o("button",{type:"button","aria-label":"Remove filter",onClick:a=>e.clearFilter(n.key)},[...t[30]||(t[30]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-close"})],-1)])],8,j1)]))),128))])])):p("v-if",!0)])),[[r,e.viewState]]),e.selectedCount()>0?(l(),d("div",G1,[o("span",null,[o("strong",null,c(e.selectedCount()),1),t[31]||(t[31]=b(" selected",-1))]),o("button",{class:"btn btn-sm",type:"button",onClick:t[8]||(t[8]=n=>e.bulkRefresh())},[...t[32]||(t[32]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1),b(" Force refresh",-1)])]),o("button",{class:"btn btn-sm text-danger",type:"button",onClick:t[9]||(t[9]=n=>e.bulkRemoveCache())},[...t[33]||(t[33]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-broom"})],-1),b(" Remove cache",-1)])]),o("button",{class:"btn btn-sm",type:"button",onClick:t[10]||(t[10]=n=>e.clearSelection())},"Clear")])):p("v-if",!0),o("div",W1,[o("div",K1,[o("div",Y1,[o("input",{type:"checkbox","aria-label":"Select all on page",onClick:t[11]||(t[11]=n=>e.selectAllOnPage()),checked:e.allSelected},null,8,J1)]),o("div",Q1,[o("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="source.repositoryName"}]),onClick:t[12]||(t[12]=n=>e.sortBy("source.repositoryName"))},[t[35]||(t[35]=b("Repository ",-1)),e.sortIcon("source.repositoryName")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("source.repositoryName")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[34]||(t[34]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):p("v-if",!0)],2)]),o("div",X1,[o("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="status"}]),onClick:t[13]||(t[13]=n=>e.sortBy("status"))},[t[37]||(t[37]=b("Status ",-1)),e.sortIcon("status")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("status")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[36]||(t[36]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):p("v-if",!0)],2)]),o("div",Z1,[o("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="pageView"}]),onClick:t[14]||(t[14]=n=>e.sortBy("pageView"))},[t[39]||(t[39]=b("Views ",-1)),e.sortIcon("pageView")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("pageView")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[38]||(t[38]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):p("v-if",!0)],2)]),o("div",x1,[o("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="anonymizeDate"}]),onClick:t[15]||(t[15]=n=>e.sortBy("anonymizeDate"))},[t[41]||(t[41]=b("Anonymized ",-1)),e.sortIcon("anonymizeDate")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("anonymizeDate")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[40]||(t[40]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):p("v-if",!0)],2)]),t[42]||(t[42]=o("div",{role:"columnheader","aria-label":"Actions"},null,-1))]),(l(!0),d(X,null,re(e.filteredRepositories,(n,i)=>(l(),d("div",{class:A(["paper-table-row",{"repo-inactive":n?.status=="expired"||n?.status=="removed","repo-error":n?.status=="error","row-selected":e.selected[n?.repoId]}]),role:"row"},[o("div",ew,[N(o("input",tw,null,512),[[s,{state:e.viewState,set:a=>{e.selected[n.repoId]=a},value:e.selected[n?.repoId],form:null,options:{}}]])]),o("div",ow,[t[47]||(t[47]=o("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Repository"},[o("use",{href:"#project-type-repo"})],-1)),o("div",sw,[o("a",{class:"repo-name",target:"_blank",textContent:c(n?.repoId),href:e.safeUrl("/r/"+n?.repoId)},null,8,nw),o("div",rw,[o("a",{textContent:c(n?.source?.repositoryName),href:e.safeUrl("https://github.com/"+n?.source?.repositoryName+"/")},null,8,iw),n?.options?.update?(l(),d("span",aw,[t[43]||(t[43]=b("\xA0\xB7\xA0",-1)),o("a",{textContent:c(n?.source?.branch),href:e.safeUrl("https://github.com/"+n?.source?.fullName+"/tree/"+n?.source?.branch)},null,8,lw)])):p("v-if",!0),n?.options?.update?p("v-if",!0):(l(),d("span",dw,[t[44]||(t[44]=b("\xA0\xB7\xA0@",-1)),o("a",{textContent:c(n?.source?.commit?.substring(0,8)),href:e.safeUrl("https://github.com/"+n?.source?.fullName+"/tree/"+n?.source?.commit)},null,8,uw)])),n?.conference?(l(),d("span",cw,[t[45]||(t[45]=b("\xA0\xB7\xA0",-1)),t[46]||(t[46]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-conference"})],-1)),b(" "+c(n?.conference),1)])):p("v-if",!0),o("span",null,"\xA0\xB7\xA0"+c(e.fmt?.humanFileSize(n?.size?.storage)),1),o("span",null,"\xA0\xB7\xA0"+c(e.fmt?.number(n?.options?.terms?.length))+" "+c(n?.options?.terms?.length===1?"term":"terms"),1)])])]),o("div",pw,[o("span",fw,[o("span",{class:A(["status-dot",{"status-removed":n?.status=="removed"||n?.status=="expired","status-ready":n?.status=="ready","status-error":n?.status=="error","status-preparing":n?.status=="preparing"}])},null,2),o("span",{textContent:c(e.fmt?.title(n?.status))},null,8,mw)]),n?.statusMessage?(l(),d("span",{key:0,class:"status-sub",textContent:c(e.fmt?.statusMsg(n?.statusMessage)),title:n?.statusMessage},null,8,hw)):p("v-if",!0)]),o("div",vw,[t[48]||(t[48]=o("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-eye"})],-1)),t[49]||(t[49]=b()),o("span",{textContent:c(e.fmt?.number(n?.pageView||0))},null,8,gw)]),o("div",yw,[t[50]||(t[50]=o("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-clock"})],-1)),t[51]||(t[51]=b()),o("span",{textContent:c(e.fmt?.humanTime(n?.anonymizeDate))},null,8,bw)]),o("div",ww,[o("div",kw,[t[63]||(t[63]=o("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions"},[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-more"})])],-1)),o("div",Ew,[o("a",{class:"dropdown-item",href:e.safeUrl("/anonymize/"+n?.repoId)},[...t[52]||(t[52]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-edit"})],-1),b(" Edit",-1)])],8,Cw),o("a",{class:"dropdown-item",href:e.safeUrl("/r/"+n?.repoId+"/")},[...t[53]||(t[53]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-eye"})],-1),b(" View repo",-1)])],8,_w),n?.options?.page&&n?.status=="ready"?(l(),d("a",{key:0,class:"dropdown-item",target:"_self",href:e.safeUrl("/w/"+n?.repoId+"/")},[...t[54]||(t[54]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-globe"})],-1),b(" View page",-1)])],8,Sw)):p("v-if",!0),o("a",{class:"dropdown-item",href:"#",onClick:me(a=>e.fetchGithubInfo(n),["prevent"])},[...t[55]||(t[55]=[o("i",{class:"fab fa-github"},null,-1),b(" Live GitHub info",-1)])],8,Nw),t[61]||(t[61]=o("div",{class:"dropdown-divider"},null,-1)),N(o("a",{class:"dropdown-item",href:"#",onClick:me(a=>e.updateRepository(n),["prevent"])},[...t[56]||(t[56]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1),b(" Force update",-1)])],8,Dw),[[W,n?.status=="ready"||n?.status=="error"]]),N(o("a",{class:"dropdown-item",href:"#",onClick:me(a=>e.updateRepository(n),["prevent"])},[...t[57]||(t[57]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-check-circle"})],-1),b(" Enable",-1)])],8,Rw),[[W,n?.status=="removed"]]),N(o("a",{class:"dropdown-item",href:"#",onClick:me(a=>e.showStatusMessage(n),["prevent"])},[...t[58]||(t[58]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-warning"})],-1),b(" View status message",-1)])],8,Tw),[[W,n?.statusMessage]]),t[62]||(t[62]=o("div",{class:"dropdown-divider"},null,-1)),o("a",{class:"dropdown-item",href:"#",onClick:me(a=>e.removeCache(n),["prevent"])},[...t[59]||(t[59]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-broom"})],-1),b(" Remove cache",-1)])],8,Aw),N(o("a",{class:"dropdown-item text-danger",href:"#",onClick:me(a=>e.removeRepository(n),["prevent"])},[...t[60]||(t[60]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-trash"})],-1),b(" Remove",-1)])],8,Ow),[[W,n?.status=="ready"]])])])])],2))),256)),e.filteredRepositories?.length==0?(l(),d("div",Iw,[...t[64]||(t[64]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-inbox"})],-1),o("span",null,"No repositories match the current filters.",-1)])])):p("v-if",!0)]),o("div",Pw,[o("span",Vw,c(e.fmt?.number(e.total))+" results",1),e.totalPage>1?(l(),d("div",qw,[o("button",{class:"btn btn-sm",onClick:t[16]||(t[16]=n=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1},[...t[65]||(t[65]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-chevron-left"})],-1),b(" Previous ",-1)])],8,Mw),N(o("input",{type:"number",class:"form-control form-control-sm",min:"1",style:{width:"56px"},"aria-label":"Page",max:e.totalPage},null,8,$w),[[s,{state:e.viewState,set:n=>{e.query.page=n},value:e.query?.page,form:null,options:{}}]]),o("span",null,"of "+c(e.totalPage),1),o("button",{class:"btn btn-sm",onClick:t[17]||(t[17]=n=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage},[...t[66]||(t[66]=[b(" Next ",-1),o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-chevron-right"})],-1)])],8,Lw)])):p("v-if",!0),o("span",Uw,[t[68]||(t[68]=o("label",null,"Per page",-1)),N((l(),d("select",Fw,[...t[67]||(t[67]=[ce('<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)])])),[[s,{state:e.viewState,set:n=>{e.query.limit=n},value:e.query?.limit,form:null,options:{}}]])])])])}var zw={class:"container paper-page admin-page"},Hw={class:"paper-crumbs"},Bw={class:"here"},jw={class:"paper-page-title"},Gw={key:0,class:"user-detail-card"},Ww={class:"user-header"},Kw=["src"],Yw={class:"status-dot-wrap"},Jw=["textContent"],Qw={key:0,class:"type-badge type-repo"},Xw={class:"user-actions",style:{"margin-top":"4px"}},Zw={class:"user-detail-grid"},xw={class:"detail-value"},ek={class:"detail-value"},tk={key:0,class:"detail-value",style:{"font-family":"var(--font-mono)","font-size":"0.85rem"}},ok={key:1,class:"detail-value text-muted"},sk={class:"detail-value"},nk=["href"],rk={class:"detail-value"},ik={class:"detail-value"},ak={key:0},lk={key:1,class:"text-muted"},dk={class:"detail-value"},uk={key:0,style:{"margin-top":"20px"}},ck={class:"paper-table w-100",style:{"margin-top":"10px"}},pk={class:"paper-table-row",style:{"grid-template-columns":"1fr 160px"}},fk={class:"cell-anon",role:"cell"},mk={class:"anon-text"},hk=["textContent"],vk={class:"cell-expires",role:"cell"},gk={key:1,class:"admin-section-header"},yk={class:"section-count"},bk={key:2,class:"user-detail-card"},wk={type:"text",class:"form-control",placeholder:"Token name (e.g. dev-laptop)",required:""},kk={key:0,class:"alert alert-warning",role:"alert"},Ek={style:{"white-space":"pre-wrap","word-break":"break-all",margin:"8px 0 0","font-family":"var(--font-mono)","font-size":"0.85rem"}},Ck={key:1,class:"paper-table w-100"},_k={class:"paper-table-row",role:"row",style:{"grid-template-columns":"1fr 200px 200px 80px"}},Sk=["textContent"],Nk=["textContent"],Dk={role:"cell"},Rk={key:0},Tk={key:1,class:"text-muted"},Ak={role:"cell"},Ok=["onClick"],Ik={key:2,class:"paper-table-empty"},Pk={class:"admin-section-header"},Vk={class:"section-count"},qk={class:"admin-summary"},Mk={class:"summary-total"},$k=["aria-pressed"],Lk={class:"count"},Uk=["aria-pressed"],Fk={class:"count"},zk=["aria-pressed"],Hk={class:"count"},Bk=["aria-pressed"],jk={class:"count"},Gk=["aria-pressed"],Wk={class:"count"},Kk={class:"w-100 admin-filter-toolbar","aria-label":"Repositories","accept-charset":"UTF-8"},Yk={class:"admin-filter-row"},Jk={class:"search-wrap"},Qk={type:"search",class:"form-control","aria-label":"Search repositories",placeholder:"Search repoId, source repo, error message\u2026",autocomplete:"off"},Xk={key:3,class:"bulk-bar"},Zk={class:"paper-table paper-table-repos has-bulk w-100",role:"table","aria-label":"Repositories"},xk={class:"paper-table-head",role:"row"},e0={role:"columnheader",style:{width:"28px"}},t0=["checked"],o0={role:"columnheader"},s0={role:"columnheader"},n0={role:"columnheader",class:"num"},r0={role:"columnheader"},i0={role:"cell",style:{width:"28px"}},a0={type:"checkbox","aria-label":"Select repository"},l0={class:"cell-anon",role:"cell"},d0={class:"anon-text"},u0=["textContent","href"],c0={class:"anon-sub"},p0=["textContent","href"],f0={key:0},m0=["textContent","href"],h0={key:1},v0=["textContent","href"],g0={key:2},y0={class:"cell-status",role:"cell"},b0={class:"status-line"},w0=["textContent"],k0=["textContent","title"],E0=["textContent"],C0=["textContent"],_0={class:"cell-actions",role:"cell"},S0={class:"dropdown"},N0={class:"dropdown-menu dropdown-menu-right"},D0=["href"],R0=["href"],T0=["href"],A0=["onClick"],O0=["onClick"],I0=["onClick"],P0=["onClick"],V0=["onClick"],q0=["onClick"],M0={key:0,class:"paper-table-empty"};function wl(e,t){let s=be("field"),r=be("form");return l(),d("div",zw,[o("div",Hw,[t[22]||(t[22]=o("a",{href:"/admin/"},"Admin",-1)),t[23]||(t[23]=b(" \xA0/\xA0 ",-1)),t[24]||(t[24]=o("a",{href:"/admin/users"},"Users",-1)),t[25]||(t[25]=b(" \xA0/\xA0 ",-1)),o("span",Bw,c(e.userInfo?.username||"Profile"),1)]),o("h1",jw,c(e.userInfo?.username||"User"),1),t[87]||(t[87]=ce('<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",Gw,[o("div",Ww,[e.userInfo?.photo?(l(),d("img",{key:0,width:"56",height:"56",src:e.safeUrl(e.userInfo?.photo)},null,8,Kw)):p("v-if",!0),o("div",null,[o("h2",null,[b(c(e.userInfo?.username)+" ",1),o("span",Yw,[o("span",{class:A(["status-dot",{"status-ready":e.userInfo?.status=="active","status-removed":e.userInfo?.status!="active"}])},null,2),o("span",{textContent:c(e.fmt?.title(e.userInfo?.status))},null,8,Jw)]),e.userInfo?.isAdmin?(l(),d("span",Qw,"Admin")):p("v-if",!0)]),o("div",Xw,[e.userInfo?.status!=="banned"?(l(),d("button",{key:0,class:"btn btn-sm text-danger",onClick:t[0]||(t[0]=n=>e.banUser())},[...t[26]||(t[26]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-ban"})],-1),b(" Ban",-1)])])):p("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]=n=>e.activateUser())},[...t[27]||(t[27]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-check-circle"})],-1),b(" Activate",-1)])])):p("v-if",!0),e.userInfo?.isAdmin?p("v-if",!0):(l(),d("button",{key:2,class:"btn btn-sm",onClick:t[2]||(t[2]=n=>e.promoteUser())},[...t[28]||(t[28]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-user-shield"})],-1),b(" Promote to admin",-1)])])),e.userInfo?.isAdmin?(l(),d("button",{key:3,class:"btn btn-sm text-danger",onClick:t[3]||(t[3]=n=>e.demoteUser())},[...t[29]||(t[29]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-user-minus"})],-1),b(" Remove admin",-1)])])):p("v-if",!0)])])]),o("div",Zw,[t[32]||(t[32]=o("div",{class:"detail-label"},"ID",-1)),o("div",xw,c(e.userInfo?._id),1),t[33]||(t[33]=o("div",{class:"detail-label"},"Email",-1)),o("div",ek,c(e.userInfo?.emails?.[0]?.email),1),t[34]||(t[34]=o("div",{class:"detail-label"},"Access token",-1)),e.userInfo?.accessTokens?.github?(l(),d("div",tk,c(e.userInfo?.accessTokens?.github),1)):p("v-if",!0),e.userInfo?.accessTokens?.github?p("v-if",!0):(l(),d("div",ok,"None stored")),t[35]||(t[35]=o("div",{class:"detail-label"},"GitHub",-1)),o("div",sk,[o("a",{target:"_blank",href:e.safeUrl("https://github.com/"+e.userInfo?.username)},[t[30]||(t[30]=o("i",{class:"fab fa-github"},null,-1)),b(" "+c(e.userInfo?.username),1)],8,nk)]),t[36]||(t[36]=o("div",{class:"detail-label"},"Created",-1)),o("div",rk,c(e.fmt?.humanTime(e.userInfo?.dateOfEntry)),1),t[37]||(t[37]=o("div",{class:"detail-label"},"Last connection",-1)),o("div",ik,[e.userInfo?.accessTokenDates?.github?(l(),d("span",ak,c(e.fmt?.humanTime(e.userInfo?.accessTokenDates?.github)),1)):p("v-if",!0),e.userInfo?.accessTokenDates?.github?p("v-if",!0):(l(),d("span",lk,"never"))]),t[38]||(t[38]=o("div",{class:"detail-label"},"GitHub repos",-1)),o("div",dk,[b(c(e.userInfo?.repositories?.length)+" repositories ",1),o("button",{class:"btn btn-sm ml-2",onClick:t[4]||(t[4]=n=>e.showRepos=!e.showRepos)},c(e.showRepos?"Hide":"Show"),1),o("button",{class:"btn btn-sm ml-1",onClick:t[5]||(t[5]=n=>e.getGitHubRepositories())},[...t[31]||(t[31]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1),b(" Refresh ",-1)])])])]),e.showRepos?(l(),d("div",uk,[t[41]||(t[41]=o("div",{class:"paper-section-eyebrow"},"GitHub repositories",-1)),o("div",ck,[(l(!0),d(X,null,re(e.userInfo?.repositories,(n,i)=>(l(),d("div",pk,[o("div",fk,[t[39]||(t[39]=o("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Repository"},[o("use",{href:"#project-type-repo"})],-1)),o("div",mk,[o("span",{class:"repo-name",textContent:c(n?.name)},null,8,hk)])]),o("div",vk,[t[40]||(t[40]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-database"})],-1)),b(" "+c(e.fmt?.humanFileSize(n?.size)),1)])]))),256))])])):p("v-if",!0)])):p("v-if",!0),e.userInfo&&e.userInfo?.isAdmin&&e.user&&e.user?.username==e.userInfo?.username?(l(),d("div",gk,[t[42]||(t[42]=o("h2",null,[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-key"})]),b(" API tokens")],-1)),o("span",yk,c(e.tokens?.length),1)])):p("v-if",!0),e.userInfo&&e.userInfo?.isAdmin&&e.user&&e.user?.username==e.userInfo?.username?(l(),d("div",bk,[t[48]||(t[48]=o("p",{class:"paper-page-lede"},[b("Personal API tokens for this admin account. Send as "),o("code",null,"Authorization: Bearer <token>"),b(" to authenticate without GitHub OAuth (useful for development).")],-1)),N((l(),d("form",{class:"d-flex",style:{gap:"8px","margin-bottom":"12px"},onSubmit:t[6]||(t[6]=me(n=>e.submitForm(n,()=>{e.createToken()}),["prevent"]))},[N(o("input",wk,null,512),[[s,{state:e.viewState,set:n=>{e.tokenForm.name=n},value:e.tokenForm?.name,form:null,options:{}}]]),t[43]||(t[43]=o("button",{type:"submit",class:"btn btn-ink"},[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-plus"})]),b(" Generate")],-1))],32)),[[r,e.viewState]]),e.tokenForm?.plaintext?(l(),d("div",kk,[t[44]||(t[44]=o("strong",null,"Copy this token now \u2014 it will not be shown again:",-1)),o("pre",Ek,c(e.tokenForm?.plaintext),1),o("button",{class:"btn btn-sm",onClick:t[7]||(t[7]=n=>e.tokenForm.plaintext=null)},"Dismiss")])):p("v-if",!0),e.tokens?.length?(l(),d("div",Ck,[t[46]||(t[46]=o("div",{class:"paper-table-head",role:"row",style:{"grid-template-columns":"1fr 200px 200px 80px"}},[o("div",{role:"columnheader"},"Name"),o("div",{role:"columnheader"},"Created"),o("div",{role:"columnheader"},"Last used"),o("div",{role:"columnheader","aria-label":"Actions"})],-1)),(l(!0),d(X,null,re(e.tokens,(n,i)=>(l(),d("div",_k,[o("div",{role:"cell",textContent:c(n?.name)},null,8,Sk),o("div",{role:"cell",textContent:c(e.fmt?.humanTime(n?.createdAt))},null,8,Nk),o("div",Dk,[n?.lastUsedAt?(l(),d("span",Rk,c(e.fmt?.humanTime(n?.lastUsedAt)),1)):p("v-if",!0),n?.lastUsedAt?p("v-if",!0):(l(),d("span",Tk,"never"))]),o("div",Ak,[o("button",{class:"btn btn-sm text-danger btn-icon",title:"Revoke","aria-label":"Revoke token",onClick:a=>e.revokeToken(n)},[...t[45]||(t[45]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-trash"})],-1)])],8,Ok)])]))),256))])):p("v-if",!0),e.tokens?.length?p("v-if",!0):(l(),d("div",Ik,[...t[47]||(t[47]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-inbox"})],-1),o("span",null,"No tokens yet.",-1)])]))])):p("v-if",!0),o("div",Pk,[t[49]||(t[49]=o("h2",null,[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-type-repo"})]),b(" Anonymized repositories")],-1)),o("span",Vk,c(e.repositories?.length),1)]),o("div",qk,[o("span",Mk,c(e.fmt?.number(e.repositories?.length)),1),o("button",{type:"button",class:A(["summary-pill ok",{active:e.filters?.status?.ready===!1}]),title:"Toggle ready filter",onClick:t[8]||(t[8]=n=>e.filters.status.ready=!e.filters.status.ready),"aria-pressed":e.filters?.status?.ready===!1},[t[50]||(t[50]=b("Ready ",-1)),o("span",Lk,c(e.fmt?.number(e.statusCountFor("ready"))),1)],10,$k),o("button",{type:"button",class:A(["summary-pill warn",{active:e.filters?.status?.preparing===!1}]),title:"Toggle preparing filter",onClick:t[9]||(t[9]=n=>e.filters.status.preparing=!e.filters.status.preparing),"aria-pressed":e.filters?.status?.preparing===!1},[t[51]||(t[51]=b("Preparing ",-1)),o("span",Fk,c(e.fmt?.number(e.statusCountFor("preparing"))),1)],10,Uk),o("button",{type:"button",class:A(["summary-pill error",{active:e.filters?.status?.error===!1}]),title:"Toggle errored filter",onClick:t[10]||(t[10]=n=>e.filters.status.error=!e.filters.status.error),"aria-pressed":e.filters?.status?.error===!1},[t[52]||(t[52]=b("Errored ",-1)),o("span",Hk,c(e.fmt?.number(e.statusCountFor("error"))),1)],10,zk),o("button",{type:"button",class:A(["summary-pill",{active:e.filters?.status?.expired===!1}]),title:"Toggle expired filter",onClick:t[11]||(t[11]=n=>e.filters.status.expired=!e.filters.status.expired),"aria-pressed":e.filters?.status?.expired===!1},[t[53]||(t[53]=b("Expired ",-1)),o("span",jk,c(e.fmt?.number(e.statusCountFor("expired"))),1)],10,Bk),o("button",{type:"button",class:A(["summary-pill",{active:e.filters?.status?.removed===!1}]),title:"Toggle removed filter",onClick:t[12]||(t[12]=n=>e.filters.status.removed=!e.filters.status.removed),"aria-pressed":e.filters?.status?.removed===!1},[t[54]||(t[54]=b("Removed ",-1)),o("span",Wk,c(e.fmt?.number(e.statusCountFor("removed"))),1)],10,Gk)]),N((l(),d("form",Kk,[o("div",Yk,[o("div",Jk,[N(o("input",Qk,null,512),[[s,{state:e.viewState,set:n=>{e.search=n},value:e.search,form:null,options:{}}]])]),t[56]||(t[56]=o("span",{class:"admin-filter-spacer"},null,-1)),o("button",{class:"btn btn-sm",type:"button",title:"Export current view to CSV",onClick:t[13]||(t[13]=n=>e.exportCsv())},[...t[55]||(t[55]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-export"})],-1),b(" Export",-1)])])])])),[[r,e.viewState]]),e.selectedCount()>0?(l(),d("div",Xk,[o("span",null,[o("strong",null,c(e.selectedCount()),1),t[57]||(t[57]=b(" selected",-1))]),o("button",{class:"btn btn-sm",type:"button",onClick:t[14]||(t[14]=n=>e.bulkRefresh())},[...t[58]||(t[58]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1),b(" Force refresh",-1)])]),o("button",{class:"btn btn-sm text-danger",type:"button",onClick:t[15]||(t[15]=n=>e.bulkRemoveCache())},[...t[59]||(t[59]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-broom"})],-1),b(" Remove cache",-1)])]),o("button",{class:"btn btn-sm",type:"button",onClick:t[16]||(t[16]=n=>e.clearSelection())},"Clear")])):p("v-if",!0),o("div",Zk,[o("div",xk,[o("div",e0,[o("input",{type:"checkbox","aria-label":"Select all on page",onClick:t[17]||(t[17]=n=>e.selectAllOnPage()),checked:e.allSelected},null,8,t0)]),o("div",o0,[o("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="source.repositoryName"}]),onClick:t[18]||(t[18]=n=>e.sortBy("source.repositoryName"))},[t[61]||(t[61]=b("Repository ",-1)),e.sortIcon("source.repositoryName")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("source.repositoryName")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[60]||(t[60]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):p("v-if",!0)],2)]),o("div",s0,[o("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="status"}]),onClick:t[19]||(t[19]=n=>e.sortBy("status"))},[t[63]||(t[63]=b("Status ",-1)),e.sortIcon("status")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("status")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[62]||(t[62]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):p("v-if",!0)],2)]),o("div",n0,[o("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="pageView"}]),onClick:t[20]||(t[20]=n=>e.sortBy("pageView"))},[t[65]||(t[65]=b("Views ",-1)),e.sortIcon("pageView")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("pageView")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[64]||(t[64]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):p("v-if",!0)],2)]),o("div",r0,[o("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="anonymizeDate"}]),onClick:t[21]||(t[21]=n=>e.sortBy("anonymizeDate"))},[t[67]||(t[67]=b("Anonymized ",-1)),e.sortIcon("anonymizeDate")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("anonymizeDate")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[66]||(t[66]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):p("v-if",!0)],2)]),t[68]||(t[68]=o("div",{role:"columnheader","aria-label":"Actions"},null,-1))]),(l(!0),d(X,null,re(e.filteredRepositories,(n,i)=>(l(),d("div",{class:A(["paper-table-row",{"repo-inactive":n?.status=="expired"||n?.status=="removed","repo-error":n?.status=="error","row-selected":e.selected[n?.repoId]}]),role:"row"},[o("div",i0,[N(o("input",a0,null,512),[[s,{state:e.viewState,set:a=>{e.selected[n.repoId]=a},value:e.selected[n?.repoId],form:null,options:{}}]])]),o("div",l0,[t[73]||(t[73]=o("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Repository"},[o("use",{href:"#project-type-repo"})],-1)),o("div",d0,[o("a",{class:"repo-name",target:"_blank",textContent:c(n?.repoId),href:e.safeUrl("/r/"+n?.repoId)},null,8,u0),o("div",c0,[o("a",{textContent:c(n?.source?.fullName),href:e.safeUrl("https://github.com/"+n?.source?.fullName+"/")},null,8,p0),n?.options?.update?(l(),d("span",f0,[t[69]||(t[69]=b("\xA0\xB7\xA0",-1)),o("a",{textContent:c(n?.source?.branch),href:e.safeUrl("https://github.com/"+n?.source?.fullName+"/tree/"+n?.source?.branch)},null,8,m0)])):p("v-if",!0),n?.options?.update?p("v-if",!0):(l(),d("span",h0,[t[70]||(t[70]=b("\xA0\xB7\xA0@",-1)),o("a",{textContent:c(n?.source?.commit?.substring(0,8)),href:e.safeUrl("https://github.com/"+n?.source?.fullName+"/tree/"+n?.source?.commit)},null,8,v0)])),n?.conference?(l(),d("span",g0,[t[71]||(t[71]=b("\xA0\xB7\xA0",-1)),t[72]||(t[72]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-conference"})],-1)),b(" "+c(n?.conference),1)])):p("v-if",!0),o("span",null,"\xA0\xB7\xA0"+c(e.fmt?.humanFileSize(n?.size?.storage)),1),o("span",null,"\xA0\xB7\xA0"+c(e.fmt?.number(n?.options?.terms?.length))+" "+c(n?.options?.terms?.length===1?"term":"terms"),1)])])]),o("div",y0,[o("span",b0,[o("span",{class:A(["status-dot",{"status-removed":n?.status=="removed"||n?.status=="expired","status-ready":n?.status=="ready","status-error":n?.status=="error","status-preparing":n?.status=="preparing"}])},null,2),o("span",{textContent:c(e.fmt?.title(n?.status))},null,8,w0)]),n?.statusMessage?(l(),d("span",{key:0,class:"status-sub",textContent:c(e.fmt?.statusMsg(n?.statusMessage)),title:n?.statusMessage},null,8,k0)):p("v-if",!0)]),o("div",{class:"cell-views num",role:"cell",textContent:c(e.fmt?.number(n?.pageView||0))},null,8,E0),o("div",{class:"cell-expires",role:"cell",textContent:c(e.fmt?.humanTime(n?.anonymizeDate))},null,8,C0),o("div",_0,[o("div",S0,[t[85]||(t[85]=o("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions"},[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-more"})])],-1)),o("div",N0,[o("a",{class:"dropdown-item",href:e.safeUrl("/anonymize/"+n?.repoId)},[...t[74]||(t[74]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-edit"})],-1),b(" Edit",-1)])],8,D0),o("a",{class:"dropdown-item",href:e.safeUrl("/r/"+n?.repoId+"/")},[...t[75]||(t[75]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-eye"})],-1),b(" View repo",-1)])],8,R0),n?.options?.page&&n?.status=="ready"?(l(),d("a",{key:0,class:"dropdown-item",target:"_self",href:e.safeUrl("/w/"+n?.repoId+"/")},[...t[76]||(t[76]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-globe"})],-1),b(" View page",-1)])],8,T0)):p("v-if",!0),o("a",{class:"dropdown-item",href:"#",onClick:me(a=>e.fetchGithubInfo(n),["prevent"])},[...t[77]||(t[77]=[o("i",{class:"fab fa-github"},null,-1),b(" Live GitHub info",-1)])],8,A0),t[83]||(t[83]=o("div",{class:"dropdown-divider"},null,-1)),N(o("a",{class:"dropdown-item",href:"#",onClick:me(a=>e.updateRepository(n),["prevent"])},[...t[78]||(t[78]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1),b(" Force update",-1)])],8,O0),[[W,n?.status=="ready"||n?.status=="error"]]),N(o("a",{class:"dropdown-item",href:"#",onClick:me(a=>e.updateRepository(n),["prevent"])},[...t[79]||(t[79]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-check-circle"})],-1),b(" Enable",-1)])],8,I0),[[W,n?.status=="removed"]]),N(o("a",{class:"dropdown-item",href:"#",onClick:me(a=>e.showStatusMessage(n),["prevent"])},[...t[80]||(t[80]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-warning"})],-1),b(" View status message",-1)])],8,P0),[[W,n?.statusMessage]]),t[84]||(t[84]=o("div",{class:"dropdown-divider"},null,-1)),o("a",{class:"dropdown-item",href:"#",onClick:me(a=>e.removeCache(n),["prevent"])},[...t[81]||(t[81]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-broom"})],-1),b(" Remove cache",-1)])],8,V0),N(o("a",{class:"dropdown-item text-danger",href:"#",onClick:me(a=>e.removeRepository(n),["prevent"])},[...t[82]||(t[82]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-trash"})],-1),b(" Remove",-1)])],8,q0),[[W,n?.status=="ready"]])])])])],2))),256)),e.filteredRepositories?.length==0?(l(),d("div",M0,[...t[86]||(t[86]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-inbox"})],-1),o("span",null,"No repositories match the current filters.",-1)])])):p("v-if",!0)])])}var $0={class:"container paper-page admin-page"},L0={class:"admin-summary"},U0={class:"summary-total"},F0=["aria-pressed"],z0={class:"count"},H0=["aria-pressed"],B0={class:"count"},j0=["aria-pressed"],G0={class:"count"},W0={key:0,class:"alert alert-danger",style:{margin:"8px 0"}},K0={class:"w-100 admin-filter-toolbar","aria-label":"Users","accept-charset":"UTF-8"},Y0={class:"admin-filter-row"},J0={class:"search-wrap"},Q0={type:"search",class:"form-control","aria-label":"Search users",placeholder:"Search username or email\u2026",autocomplete:"off"},X0={key:0,class:"admin-search-hint"},Z0={class:"admin-filter-inline"},x0={class:"form-control form-control-sm"},eE={class:"admin-filter-inline","aria-label":"Pagination"},tE=["disabled"],oE={style:{"font-family":"var(--font-mono)","font-size":"12px",color:"var(--ink-muted)"}},sE=["disabled"],nE={key:0,class:"admin-filter-row"},rE={class:"admin-active-chips"},iE={class:"key"},aE=["onClick"],lE={key:1,class:"bulk-bar"},dE={class:"paper-table w-100",role:"table","aria-label":"Users",style:{"--cols":"28px minmax(280px, 2.4fr) 100px 140px 140px 52px"}},uE={class:"paper-table-head admin-users-row",role:"row"},cE={role:"columnheader",style:{width:"28px"}},pE=["checked"],fE={role:"columnheader"},mE={role:"columnheader"},hE={role:"cell",style:{width:"28px"}},vE={type:"checkbox","aria-label":"Select user"},gE={class:"cell-anon",role:"cell"},yE=["src"],bE={class:"anon-text"},wE=["textContent","href"],kE={class:"anon-sub"},EE={key:0},CE=["href"],_E={key:1},SE={class:"cell-views num",role:"cell"},NE=["textContent","href"],DE={class:"cell-status",role:"cell"},RE=["textContent"],TE={class:"cell-status",role:"cell"},AE={key:0,class:"type-badge type-repo"},OE={key:1,class:"empty-dash"},IE={class:"cell-actions",role:"cell"},PE={class:"dropdown"},VE={class:"dropdown-menu dropdown-menu-right"},qE=["href"],ME=["href"],$E=["onClick"],LE=["onClick"],UE={key:0,class:"paper-table-empty"},FE={class:"admin-toolbar",style:{"justify-content":"space-between","border-bottom":"none"}},zE={style:{"font-size":"12px",color:"var(--ink-muted)"}},HE={key:0,class:"pagination-compact"},BE=["disabled"],jE=["max"],GE=["disabled"],WE={class:"admin-filter-inline"},KE={class:"form-control form-control-sm"};function kl(e,t){let s=be("field"),r=be("form");return l(),d("div",$0,[t[46]||(t[46]=ce('<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)),o("div",L0,[o("span",U0,c(e.total>=0?e.fmt.number(e.total):"\u2026"),1),o("button",{type:"button",class:A(["summary-pill ok",{active:e.query?.status=="active"}]),onClick:t[0]||(t[0]=n=>{e.query.status=e.query.status=="active"?"":"active",e.query.page=1}),"aria-pressed":e.query?.status=="active"},[t[13]||(t[13]=b("Active ",-1)),o("span",z0,c(e.fmt?.number(e.statusCountFor("active"))),1)],10,F0),o("button",{type:"button",class:A(["summary-pill error",{active:e.query?.status=="banned"}]),onClick:t[1]||(t[1]=n=>{e.query.status=e.query.status=="banned"?"":"banned",e.query.page=1}),"aria-pressed":e.query?.status=="banned"},[t[14]||(t[14]=b("Banned ",-1)),o("span",B0,c(e.fmt?.number(e.statusCountFor("banned"))),1)],10,H0),o("button",{type:"button",class:A(["summary-pill",{active:e.query?.status=="removed"}]),onClick:t[2]||(t[2]=n=>{e.query.status=e.query.status=="removed"?"":"removed",e.query.page=1}),"aria-pressed":e.query?.status=="removed"},[t[15]||(t[15]=b("Removed ",-1)),o("span",G0,c(e.fmt?.number(e.statusCountFor("removed"))),1)],10,j0)]),e.fetchError?(l(),d("div",W0,[t[16]||(t[16]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-warning"})],-1)),b(" "+c(e.fetchError),1)])):p("v-if",!0),N((l(),d("form",K0,[o("div",Y0,[o("div",J0,[N(o("input",Q0,null,512),[[s,{state:e.viewState,set:n=>{e.query.search=n},value:e.query?.search,form:null,options:{}}]]),e.query?.search?p("v-if",!0):(l(),d("span",X0,"/"))]),o("span",Z0,[t[18]||(t[18]=o("label",null,"Role",-1)),N((l(),d("select",x0,[...t[17]||(t[17]=[o("option",{value:""},"Any",-1),o("option",{value:"admin"},"Admin",-1)])])),[[s,{state:e.viewState,set:n=>{e.query.role=n},value:e.query?.role,form:null,options:{}}]])]),t[22]||(t[22]=o("span",{class:"admin-filter-spacer"},null,-1)),o("button",{class:"btn btn-sm",type:"button",onClick:t[3]||(t[3]=n=>e.exportCsv())},[...t[19]||(t[19]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-export"})],-1),b(" Export",-1)])]),o("span",eE,[o("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[4]||(t[4]=n=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1,"aria-label":"Previous page"},[...t[20]||(t[20]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-chevron-left"})],-1)])],8,tE),o("span",oE,c(e.query?.page)+"/"+c(e.totalPage||1),1),o("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[5]||(t[5]=n=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage,"aria-label":"Next page"},[...t[21]||(t[21]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-chevron-right"})],-1)])],8,sE)])]),e.chips?.length?(l(),d("div",nE,[o("div",rE,[(l(!0),d(X,null,re(e.chips,(n,i)=>(l(),d("span",{class:"admin-active-chip",key:n?.key},[o("span",iE,c(n?.label),1),o("span",null,c(n?.value),1),o("button",{type:"button",onClick:a=>e.clearFilter(n.key),"aria-label":"Clear filter"},[...t[23]||(t[23]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-close"})],-1)])],8,aE)]))),128))])])):p("v-if",!0)])),[[r,e.viewState]]),e.selectedCount()>0?(l(),d("div",lE,[o("span",null,[o("strong",null,c(e.selectedCount()),1),t[24]||(t[24]=b(" selected",-1))]),o("button",{class:"btn btn-sm text-danger",type:"button",onClick:t[6]||(t[6]=n=>e.bulkBan())},[...t[25]||(t[25]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-ban"})],-1),b(" Ban",-1)])]),o("button",{class:"btn btn-sm",type:"button",onClick:t[7]||(t[7]=n=>{e.selected={},e.allSelected=!1})},"Clear")])):p("v-if",!0),o("div",dE,[o("div",uE,[o("div",cE,[o("input",{type:"checkbox","aria-label":"Select all on page",onClick:t[8]||(t[8]=n=>e.selectAllOnPage()),checked:e.allSelected},null,8,pE)]),o("div",fE,[o("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="username"}]),onClick:t[9]||(t[9]=n=>e.sortBy("username"))},[t[27]||(t[27]=b("User ",-1)),e.sortIcon("username")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("username")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[26]||(t[26]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):p("v-if",!0)],2)]),t[30]||(t[30]=o("div",{role:"columnheader",class:"num"},"Repos",-1)),o("div",mE,[o("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="status"}]),onClick:t[10]||(t[10]=n=>e.sortBy("status"))},[t[29]||(t[29]=b("Status ",-1)),e.sortIcon("status")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("status")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[28]||(t[28]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):p("v-if",!0)],2)]),t[31]||(t[31]=o("div",{role:"columnheader"},"Role",-1)),t[32]||(t[32]=o("div",{role:"columnheader","aria-label":"Actions"},null,-1))]),(l(!0),d(X,null,re(e.filteredUsers,(n,i)=>(l(),d("div",{class:A(["paper-table-row admin-users-row",{"row-selected":e.selected[n?.username]}]),role:"row"},[o("div",hE,[N(o("input",vE,null,512),[[s,{state:e.viewState,set:a=>{e.selected[n.username]=a},value:e.selected[n?.username],form:null,options:{}}]])]),o("div",gE,[n?.photo?(l(),d("img",{key:0,width:"28",height:"28",class:"rounded-circle",style:{"flex-shrink":"0"},src:e.safeUrl(n?.photo)},null,8,yE)):p("v-if",!0),o("div",bE,[o("a",{class:"repo-name",textContent:c(n?.username),href:e.safeUrl("/admin/users/"+n?.username)},null,8,wE),o("div",kE,[n?.emails?.[0]?.email?(l(),d("span",EE,c(n?.emails?.[0]?.email)+" \xB7 ",1)):p("v-if",!0),o("a",{target:"_blank",href:e.safeUrl("https://github.com/"+n?.username)},[t[33]||(t[33]=o("i",{class:"fab fa-github"},null,-1)),b(" "+c(n?.username),1)],8,CE),n?.dateOfEntry?(l(),d("span",_E,"\xA0\xB7\xA0Joined "+c(e.fmt?.humanTime(n?.dateOfEntry)),1)):p("v-if",!0)])])]),o("div",SE,[t[34]||(t[34]=o("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[o("use",{href:"#project-type-repo"})],-1)),o("a",{title:"Show this user's repositories",textContent:c(e.fmt?.number(n?.repoCount||0)),href:e.safeUrl("/admin/repositories?owner="+n?.username)},null,8,NE)]),o("div",DE,[o("span",{class:A(["status-dot",{"status-ready":n?.status=="active","status-removed":n?.status=="removed"||n?.status=="banned"}])},null,2),o("span",{textContent:c(e.fmt?.title(n?.status))},null,8,RE)]),o("div",TE,[n?.isAdmin?(l(),d("span",AE,"Admin")):p("v-if",!0),n?.isAdmin?p("v-if",!0):(l(),d("span",OE,"\u2014"))]),o("div",IE,[o("div",PE,[t[40]||(t[40]=o("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions"},[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-more"})])],-1)),o("div",VE,[o("a",{class:"dropdown-item",href:e.safeUrl("/admin/users/"+n?.username)},[...t[35]||(t[35]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-eye"})],-1),b(" View details",-1)])],8,qE),o("a",{class:"dropdown-item",href:e.safeUrl("/admin/repositories?owner="+n?.username)},[...t[36]||(t[36]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-type-repo"})],-1),b(" View repositories",-1)])],8,ME),t[39]||(t[39]=o("div",{class:"dropdown-divider"},null,-1)),N(o("a",{class:"dropdown-item text-danger",href:"#",onClick:me(a=>e.banUser(n),["prevent"])},[...t[37]||(t[37]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-ban"})],-1),b(" Ban",-1)])],8,$E),[[W,n?.status=="active"]]),N(o("a",{class:"dropdown-item",href:"#",onClick:me(a=>e.activateUser(n),["prevent"])},[...t[38]||(t[38]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-check-circle"})],-1),b(" Activate",-1)])],8,LE),[[W,n?.status=="removed"||n?.status=="banned"]])])])])],2))),256)),e.filteredUsers?.length==0?(l(),d("div",UE,[...t[41]||(t[41]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-inbox"})],-1),o("span",null,"No users match the current filters.",-1)])])):p("v-if",!0)]),o("div",FE,[o("span",zE,c(e.fmt?.number(e.total))+" results",1),e.totalPage>1?(l(),d("div",HE,[o("button",{class:"btn btn-sm",onClick:t[11]||(t[11]=n=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1},[...t[42]||(t[42]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-chevron-left"})],-1),b(" Previous",-1)])],8,BE),N(o("input",{type:"number",class:"form-control form-control-sm",min:"1",style:{width:"56px"},max:e.totalPage},null,8,jE),[[s,{state:e.viewState,set:n=>{e.query.page=n},value:e.query?.page,form:null,options:{}}]]),o("span",null,"of "+c(e.totalPage),1),o("button",{class:"btn btn-sm",onClick:t[12]||(t[12]=n=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage},[...t[43]||(t[43]=[b("Next ",-1),o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-chevron-right"})],-1)])],8,GE)])):p("v-if",!0),o("span",WE,[t[45]||(t[45]=o("label",null,"Per page",-1)),N((l(),d("select",KE,[...t[44]||(t[44]=[o("option",{value:"10"},"10",-1),o("option",{value:"25"},"25",-1),o("option",{value:"50"},"50",-1),o("option",{value:"100"},"100",-1)])])),[[s,{state:e.viewState,set:n=>{e.query.limit=n},value:e.query?.limit,form:null,options:{}}]])])])])}var YE={class:"anonymize-landing"},JE={class:"anonymize-landing-inner"},QE={class:"form-group mt-4 mb-2"},XE={class:"source-url-label-row"},ZE={key:0,class:"repo-access","aria-label":"GitHub access"},xE={key:0,class:"repo-access-switch",role:"group","aria-label":"Repository connection"},eC=["aria-pressed","disabled"],tC=["aria-pressed","disabled"],oC={key:1,class:"connection-badge"},sC={id:"sourceUrl-landing",type:"text",class:"form-control form-control-lg",placeholder:"https://github.com/owner/repository"},nC={key:0,class:"draft-status",role:"status"},rC={key:1,class:"text-danger",role:"alert"},iC={key:2,class:"repo-access-details","aria-label":"GitHub access"},aC={class:"repo-access-main"},lC={class:"repo-access-controls"},dC={key:1,class:"connection-link",href:"/connections"},uC={class:"repo-access-note"},cC={key:0},pC={class:"anonymize-workspace"},fC={class:"anonymize-topbar"},mC={class:"anonymize-topbar-inner"},hC={class:"paper-crumbs"},vC={class:"here"},gC={class:"anonymize-topbar-head"},yC={class:"paper-page-title anonymize-topbar-title"},bC={key:0},wC={key:1},kC={key:0,class:"alert alert-info",role:"status"},EC={key:1,class:"alert alert-info",role:"status"},CC={key:1},_C={class:"anonymize-mobile-tabs",role:"tablist","aria-label":"Anonymization workspace"},SC=["aria-selected","tabindex"],NC=["aria-selected","tabindex"],DC={key:2,class:"anonymize-preview-empty",id:"workspace-preview",role:"status"},RC={class:"anonymize-split"},TC=["role","aria-labelledby"],AC={class:"form needs-validation paper-settings-main",name:"anonymize",novalidate:""},OC={class:"paper-settings-section"},IC={class:"form-group"},PC={class:"source-url-label-row"},VC={key:0,class:"repo-access","aria-label":"GitHub access"},qC={key:0,class:"repo-access-switch",role:"group","aria-label":"Repository connection"},MC=["aria-pressed","disabled"],$C=["aria-pressed","disabled"],LC={key:1,class:"connection-badge"},UC=["disabled"],FC={class:"invalid-feedback"},zC={class:"invalid-feedback"},HC={class:"invalid-feedback"},BC={class:"invalid-feedback"},jC={key:0,class:"repo-access-details","aria-label":"GitHub access"},GC={class:"repo-access-main"},WC={class:"repo-access-controls"},KC={key:1,class:"connection-link",href:"/connections"},YC={class:"repo-access-note"},JC={key:0},QC={key:1,class:"repo-access-details"},XC={key:0,role:"status"},ZC={key:2,class:"form-grid-2"},xC={class:"form-group"},e_={class:"input-group"},t_={class:"form-control",id:"branch",name:"branch"},o_=["textContent","value"],s_={class:"input-group-append"},n_={class:"form-group"},r_=["disabled"],i_={class:"invalid-feedback"},a_={class:"invalid-feedback"},l_={class:"form-check"},d_={class:"form-check-input",type:"checkbox",id:"update",name:"update"},u_={class:"paper-settings-section"},c_={class:"form-group"},p_=["disabled"],f_={class:"form-text text-muted"},m_={class:"invalid-feedback"},h_={class:"form-group"},v_=["disabled"],g_={class:"form-text text-muted"},y_={class:"invalid-feedback"},b_={class:"form-group"},w_=["disabled"],k_={class:"form-text text-muted"},E_={class:"invalid-feedback"},C_={class:"form-group"},__={class:"form-text text-muted"},S_=["href"],N_={class:"invalid-feedback"},D_={class:"form-text text-muted"},R_={class:"paper-settings-section"},T_={class:"form-group"},A_={class:"form-text text-muted"},O_={class:"warning-feedback"},I_={class:"invalid-feedback"},P_={class:"paper-settings-section"},V_={class:"form-check"},q_={class:"form-check-input",type:"checkbox",id:"link",name:"link"},M_={class:"form-check"},$_={class:"form-check-input",type:"checkbox",id:"image",name:"image"},L_={class:"form-check"},U_={class:"form-check-input",type:"checkbox",id:"pdf",name:"pdf"},F_={class:"form-check"},z_={class:"form-check-input",type:"checkbox",id:"notebook",name:"notebook"},H_={class:"form-check"},B_=["disabled"],j_={key:0,class:"form-text text-muted"},G_={key:1,class:"form-text text-muted"},W_={class:"form-check"},K_={class:"form-check-input",type:"checkbox",id:"title-gist",name:"title-gist"},Y_={class:"form-check"},J_={class:"form-check-input",type:"checkbox",id:"content-gist",name:"content-gist"},Q_={class:"form-check"},X_={class:"form-check-input",type:"checkbox",id:"comments-gist",name:"comments-gist"},Z_={class:"form-check"},x_={class:"form-check-input",type:"checkbox",id:"username-gist",name:"username-gist"},e2={class:"form-check"},t2={class:"form-check-input",type:"checkbox",id:"date-gist",name:"date-gist"},o2={class:"form-check"},s2={class:"form-check-input",type:"checkbox",id:"origin-gist",name:"origin-gist"},n2={class:"form-check"},r2={class:"form-check-input",type:"checkbox",id:"title",name:"title"},i2={class:"form-check"},a2={class:"form-check-input",type:"checkbox",id:"body",name:"body"},l2={class:"form-check"},d2={class:"form-check-input",type:"checkbox",id:"diff",name:"diff"},u2={class:"form-check"},c2={class:"form-check-input",type:"checkbox",id:"comments",name:"comments"},p2={class:"form-check"},f2={class:"form-check-input",type:"checkbox",id:"username",name:"username"},m2={class:"form-check"},h2={class:"form-check-input",type:"checkbox",id:"date",name:"date"},v2={class:"form-check"},g2={class:"form-check-input",type:"checkbox",id:"origin",name:"origin"},y2={class:"paper-settings-section"},b2={class:"form-grid-2"},w2={class:"form-group"},k2={class:"form-control",id:"expiration",name:"expiration"},E2={class:"form-group"},C2=["min","max"],_2={class:"invalid-feedback"},S2={class:"invalid-feedback"},N2={class:"paper-settings-section"},D2={class:"form-group"},R2={style:{position:"relative"}},T2={type:"text",id:"coauthorSearch",class:"form-control",placeholder:"Search GitHub username\u2026",autocomplete:"off"},A2={class:"dropdown-menu show",style:{display:"block","max-height":"220px","overflow-y":"auto",width:"100%"}},O2=["onClick"],I2=["src"],P2=["textContent"],V2=["textContent"],q2={class:"coauthor-list"},M2={class:"coauthor-row d-flex align-items-center",style:{padding:"6px 0",gap:"8px"}},$2=["src"],L2=["textContent","href"],U2=["onClick"],F2={class:"form-text text-muted"},z2=["textContent"],H2={key:1,class:"draft-status",role:"status"},B2={key:2,class:"draft-status"},j2={key:3,class:"anonymize-review-note"},G2={class:"anonymize-submit-bar"},W2=["disabled"],K2=["disabled"],Y2=["disabled"],J2=["disabled"],Q2=["disabled"],X2=["disabled"],Z2=["role","aria-labelledby"],x2={class:"anonymize-preview-head"},eS={class:"anonymize-preview-sub"},tS={key:0,class:"anonymize-preview-status",role:"status"},oS={key:1,class:"anonymize-preview-status",role:"status"},sS={key:2,class:"anonymize-preview-status",role:"alert"},nS={key:3,class:"anonymize-preview-status"},rS=["innerHTML"],iS=["role","aria-labelledby"],aS={class:"anonymize-preview-head"},lS={class:"anonymize-preview-sub"},dS={key:0,class:"anonymize-preview-status",role:"status"},uS={key:1,class:"anonymize-preview-status",role:"status"},cS={key:2,class:"anonymize-preview-status",role:"alert"},pS={key:3,class:"anonymize-preview-body"},fS={class:"d-flex w-100 justify-content-between align-items-center flex-wrap"},mS={class:"pr-title mb-1"},hS={key:0},vS=["textContent"],gS={key:0},yS={key:1},bS={key:2},wS={class:"pr-comments mt-3"},kS={class:"pr-comment"},ES={class:"pr-comment-head"},CS=["textContent"],_S={key:0,class:"pr-comment-date"},SS={key:3},NS={class:"pr-comments"},DS={class:"pr-comment"},RS={class:"pr-comment-head"},TS={key:0,class:"pr-comment-author"},AS=["textContent"],OS=["textContent"],IS={key:0,class:"pr-comment-body"},PS=["role","aria-labelledby"],VS={class:"anonymize-preview-head"},qS={class:"anonymize-preview-sub"},MS={key:0,class:"anonymize-preview-status",role:"status"},$S={key:1,class:"anonymize-preview-status",role:"status"},LS={key:2,class:"anonymize-preview-status",role:"alert"},US={key:3,class:"anonymize-preview-body"},FS={class:"d-flex w-100 justify-content-between align-items-center flex-wrap"},zS={class:"pr-title mb-1"},HS={key:0},BS=["textContent"],jS={key:0},GS={key:1,class:"pr-body shadow-sm p-3 mb-4 rounded",style:{background:"var(--paper-bg-alt)"}},WS={key:2,class:"paper-tabs",role:"tablist"},KS=["aria-selected","tabindex"],YS=["aria-selected","tabindex"],JS=["textContent"],QS={key:3,class:"anonymize-preview-status"},XS={class:"paper-tab-content"},ZS={key:0,role:"tabpanel",id:"preview-pr-diff-panel","aria-labelledby":"preview-pr-diff-tab"},xS=["innerHTML"],eN={key:1,role:"tabpanel",id:"preview-pr-comments-panel","aria-labelledby":"preview-pr-comments-tab"},tN={class:"pr-comments"},oN={class:"pr-comment"},sN={class:"pr-comment-head"},nN={key:0,class:"pr-comment-author"},rN=["textContent"],iN=["textContent"],aN={key:0,class:"pr-comment-body"};function El(e,t){let s=We("gist-file"),r=We("markdown"),n=be("field"),i=be("form");return l(),d("div",{class:A(["anonymize-page h-100",{"mobile-preview-active":e.mobilePane==="preview"}])},[p(" ===== STATE 1: No URL \u2014 centered input ===== "),N(o("div",YE,[o("div",JE,[t[36]||(t[36]=o("div",{class:"paper-crumbs"},[b("My work \xA0/\xA0 "),o("span",{class:"here"},"New anonymization")],-1)),t[37]||(t[37]=o("h1",{class:"paper-page-title"},[b("New "),o("em",null,"anonymization")],-1)),t[38]||(t[38]=o("p",{class:"paper-page-lede"}," Paste a GitHub repository, pull-request, or gist URL. We\u2019ll fetch it, redact the terms you choose in text files, and give you a share link. Images and PDFs are served unchanged when enabled. Review them before sharing. ",-1)),o("div",QE,[o("div",XE,[t[32]||(t[32]=o("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",ZE,[!e.isUpdate&&e.detectedType!=="gist"?(l(),d("div",xE,[o("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[31]||(t[31]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})],-1),b(),o("span",{class:"sr-only"},"Read-only ",-1),b("GitHub App",-1)])],8,eC),o("button",{type:"button","aria-pressed":e.githubConnection==="oauth",disabled:e.githubConnection==="oauth",onClick:t[1]||(t[1]=a=>e.chooseGitHubConnection("oauth"))},"Legacy OAuth",8,tC)])):p("v-if",!0),e.isUpdate||e.detectedType==="gist"?(l(),d("span",oC,c((e.detectedType==="gist"?e.githubConnections?.gistConnection==="github-app":e.githubConnection==="github-app")?"Read-only GitHub App":"Legacy OAuth"),1)):p("v-if",!0)])):p("v-if",!0)]),N(o("input",sC,null,512),[[n,{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()}}]])]),e.draftRestored?(l(),d("div",nC,[t[33]||(t[33]=b("Your unsaved draft was restored. ",-1)),o("button",{type:"button",class:"draft-discard",onClick:t[2]||(t[2]=a=>e.discardDraft())},"Discard draft")])):p("v-if",!0),e.sourceUrlError?(l(),d("p",rC,c(e.sourceUrlError),1)):p("v-if",!0),t[39]||(t[39]=o("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&&e.githubConnections.oauthConnected?(l(),d("aside",iC,[o("div",aC,[o("div",lC,[e.detectedType!=="gist"&&e.githubConnection!=="oauth"?(l(),d("button",{key:0,type:"button",class:"btn btn-outline-ink",onClick:t[3]||(t[3]=a=>e.grantGitHubAccess())},[...t[34]||(t[34]=[b("Manage access ",-1),o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-external-link"})],-1)])])):p("v-if",!0),e.isUpdate||e.detectedType==="gist"||e.githubConnection==="oauth"?(l(),d("a",dC,c(e.isUpdate?"Change connection":"Manage connections")+" \u2192",1)):p("v-if",!0)])]),o("div",uC,[e.detectedType!=="gist"&&e.githubConnection!=="oauth"?(l(),d("span",cC,"Select repositories on GitHub, then return here.")):p("v-if",!0),t[35]||(t[35]=o("span",null,[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-info"})]),b(" Selected content will be published, including content from private repositories.")],-1))])])):p("v-if",!0)])],512),[[W,!e.workspaceOpen&&!e.isUpdate]]),p(" ===== STATE 2: URL provided \u2014 form (left) + preview (right) ===== "),N(o("div",pC,[o("header",fC,[o("div",mC,[o("div",hC,[t[40]||(t[40]=o("a",{href:"/dashboard"},"My work",-1)),t[41]||(t[41]=b(" \xA0/\xA0 ",-1)),o("span",vC,c(e.isUpdate?"Edit anonymization":"New anonymization"),1)]),o("div",gC,[o("h1",yC,[e.isUpdate?p("v-if",!0):(l(),d("span",bC,[...t[42]||(t[42]=[b("New ",-1),o("em",null,"anonymization",-1)])])),e.isUpdate?(l(),d("span",wC,[...t[43]||(t[43]=[b("Edit ",-1),o("em",null,"anonymization",-1)])])):p("v-if",!0)]),N(o("span",{class:A(["type-badge",{"type-repo":e.detectedType==="repo","type-pr":e.detectedType==="pr","type-gist":e.detectedType==="gist"}])},c(e.detectedType==="repo"?"Repo":e.detectedType==="pr"?"PR":"Gist"),3),[[W,e.detectedType]])])])]),e.detectedType==="gist"&&e.gistAppRequired?(l(),d("aside",kC,[t[44]||(t[44]=o("p",null,"Reconnect your GitHub account to read this gist. Your draft will be restored when you return.",-1)),o("button",{type:"button",class:"btn btn-ink",onClick:t[4]||(t[4]=a=>e.connectGistApp())},"Connect GitHub App to access gists")])):p("v-if",!0),e.detectedType==="gist"&&e.gistOAuthRequired?(l(),d("aside",EC,[t[45]||(t[45]=o("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[46]||(t[46]=o("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",CC,"GitHub OAuth is currently unavailable. Please try again later."))])):p("v-if",!0),o("nav",_C,[o("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,SC),o("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,NC)]),e.detectedType!=="repo"&&!e.details?(l(),d("div",DC,c(e.sourceLoading?"Loading source\u2026":"Choose an accessible source to see its preview."),1)):p("v-if",!0),o("div",RC,[p(" Form column (left) "),o("div",{id:"workspace-settings",role:e.mobileWorkspace?"tabpanel":null,"aria-labelledby":e.mobileWorkspace?"workspace-settings-tab":null,class:"anonymize-form-col overflow-auto"},[N((l(),d("form",AC,[o("section",OC,[t[57]||(t[57]=o("div",{class:"paper-section-eyebrow"},"Source",-1)),o("div",IC,[o("div",PC,[t[48]||(t[48]=o("label",{class:"paper-field-label",for:"sourceUrl"},"GitHub URL",-1)),e.sourceUrl&&e.githubConnections?.appEnabled&&e.githubConnections.appConnected&&e.githubConnections.oauthConnected?(l(),d("aside",VC,[!e.isUpdate&&e.detectedType!=="gist"?(l(),d("div",qC,[o("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[47]||(t[47]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})],-1),b(),o("span",{class:"sr-only"},"Read-only ",-1),b("GitHub App",-1)])],8,MC),o("button",{type:"button","aria-pressed":e.githubConnection==="oauth",disabled:e.githubConnection==="oauth",onClick:t[11]||(t[11]=a=>e.chooseGitHubConnection("oauth"))},"Legacy OAuth",8,$C)])):p("v-if",!0),e.isUpdate||e.detectedType==="gist"?(l(),d("span",LC,c((e.detectedType==="gist"?e.githubConnections?.gistConnection==="github-app":e.githubConnection==="github-app")?"Read-only GitHub App":"Legacy OAuth"),1)):p("v-if",!0)])):p("v-if",!0)]),N(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.anonymize?.sourceUrl?.invalid}]),name:"sourceUrl",id:"sourceUrl",disabled:e.isUpdate&&e.detectedType!=="repo",placeholder:"Paste a GitHub repo or pull request URL"},null,10,UC),[[n,{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()}}]]),N(o("div",FC," Please provide a valid GitHub URL. ",512),[[W,e.anonymize?.sourceUrl?.errors?.github]]),N(o("div",zC," Not accessible. The organization may restrict access. ",512),[[W,e.anonymize?.sourceUrl?.errors?.access]]),N(o("div",HC," Does not exist or is not accessible. ",512),[[W,e.anonymize?.sourceUrl?.errors?.missing]]),N(o("div",BC," Already anonymized. ",512),[[W,e.anonymize?.sourceUrl?.errors?.used]])]),e.sourceUrl&&e.githubConnections?.appEnabled&&e.githubConnections.appConnected&&e.githubConnections.oauthConnected?(l(),d("aside",jC,[o("div",GC,[o("div",WC,[e.detectedType!=="gist"&&e.githubConnection!=="oauth"?(l(),d("button",{key:0,type:"button",class:"btn btn-outline-ink",onClick:t[12]||(t[12]=a=>e.grantGitHubAccess())},[...t[49]||(t[49]=[b("Manage access ",-1),o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-external-link"})],-1)])])):p("v-if",!0),e.isUpdate||e.detectedType==="gist"||e.githubConnection==="oauth"?(l(),d("a",KC,c(e.isUpdate?"Change connection":"Manage connections")+" \u2192",1)):p("v-if",!0)])]),o("div",YC,[e.detectedType!=="gist"&&e.githubConnection!=="oauth"?(l(),d("span",JC,"Select repositories on GitHub, then return here.")):p("v-if",!0),t[50]||(t[50]=o("span",null,[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-info"})]),b(" Selected content will be published, including content from private repositories.")],-1))])])):p("v-if",!0),e.isUpdate&&e.detectedType==="repo"&&e.role==="owner"&&e.sourceUrl==="https://github.com/"+e._originalFullName?(l(),d("aside",QC,[t[51]||(t[51]=o("p",null,"If you deleted and recreated this repository, reconnect it before choosing a branch.",-1)),o("button",{type:"button",class:"btn btn-outline-ink",onClick:t[13]||(t[13]=a=>e.reconnectSource())},"Reconnect source repository"),e.reconnectRepositoryId?(l(),d("p",XC,"Source reloaded. Review the branch, commit, and anonymization preview, then save to replace the published snapshot.")):p("v-if",!0)])):p("v-if",!0),e.detectedType==="repo"?(l(),d("div",ZC,[o("div",xC,[t[53]||(t[53]=o("label",{class:"paper-field-label",for:"branch"},"Branch",-1)),o("div",e_,[N((l(),d("select",t_,[(l(!0),d(X,null,re(e.branches,(a,u)=>(l(),d("option",{textContent:c(a?.name),value:a?.name},null,8,o_))),256))])),[[n,{state:e.viewState,set:a=>{e.source.branch=a},value:e.source?.branch,form:"anonymize",options:{}}]]),o("div",s_,[o("button",{class:"btn btn-icon",type:"button",title:"Refresh","data-toggle":"tooltip","data-placement":"bottom",onClick:t[14]||(t[14]=a=>e.getBranches(!0)),"aria-label":"Refresh"},[...t[52]||(t[52]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1)])])])])]),o("div",n_,[t[54]||(t[54]=o("label",{class:"paper-field-label",for:"commit"},"Commit",-1)),N(o("input",{class:A(["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,r_),[[n,{state:e.viewState,set:a=>{e.source.commit=a},value:e.source?.commit,form:"anonymize",options:{}}]]),N(o("div",i_," The commit SHA is not valid. ",512),[[W,e.anonymize?.commit?.errors?.pattern||e.anonymize?.commit?.errors?.required]]),N(o("div",a_," This commit no longer exists in the repository. Click refresh to get the latest. ",512),[[W,e.anonymize?.commit?.errors?.exists]])])])):p("v-if",!0),N(o("div",l_,[N(o("input",d_,null,512),[[n,{state:e.viewState,set:a=>{e.options.update=a},value:e.options?.update,form:"anonymize",options:{}}]]),t[55]||(t[55]=o("label",{class:"form-check-label",for:"update"},"Auto-update from GitHub",-1)),t[56]||(t[56]=o("small",{class:"form-text text-muted"},"Follow the branch and pull the latest commit automatically, at most once an hour.",-1))],512),[[W,e.detectedType]])]),N(o("section",u_,[t[68]||(t[68]=o("div",{class:"paper-section-eyebrow"},"Identity",-1)),N(o("div",c_,[t[60]||(t[60]=o("label",{class:"paper-field-label",for:"repoId"},"Anonymized repository ID",-1)),N(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.anonymize?.repoId?.invalid}]),name:"repoId",id:"repoId",disabled:e.isUpdate},null,10,p_),[[n,{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"}}]]),o("small",f_,[t[58]||(t[58]=b("Your share link will be ",-1)),o("code",null,"anonymous.4open.science/r/"+c(e.repoId),1),t[59]||(t[59]=b(".",-1))]),N(o("div",m_,"ID can only contain letters and numbers.",512),[[W,e.anonymize?.repoId?.errors?.format]]),N(o("div",{class:"invalid-feedback"},c(e.repoId)+" is already used.",513),[[W,e.anonymize?.repoId?.errors?.used]])],512),[[W,e.detectedType==="repo"]]),N(o("div",h_,[t[63]||(t[63]=o("label",{class:"paper-field-label",for:"pullRequestId"},"Anonymized pull request ID",-1)),N(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.anonymize?.pullRequestId?.invalid}]),name:"pullRequestId",id:"pullRequestId",disabled:e.isUpdate},null,10,v_),[[n,{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"}}]]),o("small",g_,[t[61]||(t[61]=b("Your share link will be ",-1)),o("code",null,"anonymous.4open.science/pr/"+c(e.pullRequestId),1),t[62]||(t[62]=b(".",-1))]),N(o("div",y_,"ID can only contain letters and numbers.",512),[[W,e.anonymize?.pullRequestId?.errors?.format]]),N(o("div",{class:"invalid-feedback"},c(e.pullRequestId)+" is already used.",513),[[W,e.anonymize?.pullRequestId?.errors?.used]])],512),[[W,e.detectedType==="pr"]]),N(o("div",b_,[t[66]||(t[66]=o("label",{class:"paper-field-label",for:"gistId"},"Anonymized gist ID",-1)),N(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.anonymize?.gistId?.invalid}]),name:"gistId",id:"gistId",disabled:e.isUpdate},null,10,w_),[[n,{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"}}]]),o("small",k_,[t[64]||(t[64]=b("Your share link will be ",-1)),o("code",null,"anonymous.4open.science/gist/"+c(e.gistId),1),t[65]||(t[65]=b(".",-1))]),N(o("div",E_,"ID can only contain letters and numbers.",512),[[W,e.anonymize?.gistId?.errors?.format]]),N(o("div",{class:"invalid-feedback"},c(e.gistId)+" is already used.",513),[[W,e.anonymize?.gistId?.errors?.used]])],512),[[W,e.detectedType==="gist"]]),o("div",C_,[t[67]||(t[67]=o("label",{class:"paper-field-label",for:"conference"},[b("Conference "),o("span",{class:"paper-optional"},"(optional)")],-1)),N(o("input",{class:A(["form-control",{"is-invalid":e.anonymize?.conference?.invalid}]),id:"conference",name:"conference"},null,2),[[n,{state:e.viewState,set:a=>{e.conference=a},value:e.conference,form:"anonymize",options:{debounce:{default:800,blur:0},updateOn:"default blur"}}]]),N(o("small",__,[o("a",{target:"_blank",href:e.safeUrl(e.conference_data?.url)},c(e.conference_data?.name),9,S_),b(" expires "+c(e.fmt?.date(e.conference_data?.endDate))+". ",1)],512),[[W,e.conference_data]]),N(o("div",N_,"The conference is not activated.",512),[[W,e.anonymize?.conference?.errors?.activated]]),N(o("small",D_,"Link to a conference to apply its shared defaults.",512),[[W,!e.conference_data]])])],512),[[W,e.detectedType]]),N(o("section",R_,[t[76]||(t[76]=o("div",{class:"paper-section-eyebrow"},"Anonymization",-1)),o("div",T_,[t[75]||(t[75]=o("label",{class:"paper-field-label",for:"terms"},"Terms to redact",-1)),N(o("textarea",{class:A(["form-control",{"is-invalid":e.anonymize?.terms?.invalid}]),id:"terms",name:"terms",rows:"4"},null,2),[[n,{state:e.viewState,set:a=>{e.terms=a},value:e.terms,form:"anonymize",options:{debounce:250}}]]),o("small",A_,[t[69]||(t[69]=b("One term per line (regex allowed). Replaced by ",-1)),o("code",null,c(e.site_options?.ANONYMIZATION_MASK)+"-[N]",1),t[70]||(t[70]=b(", or use ",-1)),t[71]||(t[71]=o("code",null,"term=>replacement",-1)),t[72]||(t[72]=b(" to pick your own (e.g. ",-1)),t[73]||(t[73]=o("code",null,"Anonymous=>ABC",-1)),t[74]||(t[74]=b(").",-1))]),N(o("div",O_,"Regex characters detected. Escape them if unintentional.",512),[[W,e.termsRegexWarning]]),N(o("div",I_,"Terms are in an invalid format.",512),[[W,e.anonymize?.terms?.errors?.format]])])],512),[[W,e.detectedType]]),N(o("section",P_,[t[97]||(t[97]=o("div",{class:"paper-section-eyebrow"},"Display",-1)),N(o("div",null,[o("div",V_,[N(o("input",q_,null,512),[[n,{state:e.viewState,set:a=>{e.options.link=a},value:e.options?.link,form:"anonymize",options:{}}]]),t[77]||(t[77]=o("label",{class:"form-check-label",for:"link"},"Keep links",-1))]),o("div",M_,[N(o("input",$_,null,512),[[n,{state:e.viewState,set:a=>{e.options.image=a},value:e.options?.image,form:"anonymize",options:{}}]]),t[78]||(t[78]=o("label",{class:"form-check-label",for:"image"},"Display images",-1)),t[79]||(t[79]=o("small",{class:"form-text text-muted"},"Images are served unchanged and may contain names or affiliations.",-1))]),o("div",L_,[N(o("input",U_,null,512),[[n,{state:e.viewState,set:a=>{e.options.pdf=a},value:e.options?.pdf,form:"anonymize",options:{}}]]),t[80]||(t[80]=o("label",{class:"form-check-label",for:"pdf"},"Display PDFs",-1)),t[81]||(t[81]=o("small",{class:"form-text text-muted"},[b("PDF contents and metadata are served unchanged. "),o("a",{href:"/faq#formats"},"About supported formats")],-1))]),o("div",F_,[N(o("input",z_,null,512),[[n,{state:e.viewState,set:a=>{e.options.notebook=a},value:e.options?.notebook,form:"anonymize",options:{}}]]),t[82]||(t[82]=o("label",{class:"form-check-label",for:"notebook"},"Display Notebooks",-1))]),o("div",H_,[N(o("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,B_),[[n,{state:e.viewState,set:a=>{e.options.page=a},value:e.options?.page,form:"anonymize",options:{}}]]),t[83]||(t[83]=o("label",{class:"form-check-label",for:"page"},"GitHub Pages",-1)),e.details?.hasPage?p("v-if",!0):(l(),d("small",j_,c(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",G_,c(e.fmt?.translate("WARNINGS.page_branch_mismatch",{pageBranch:e.details?.pageSource?.branch,selectedBranch:e.source?.branch})),1)):p("v-if",!0)])],512),[[W,e.detectedType==="repo"]]),N(o("div",null,[o("div",W_,[N(o("input",K_,null,512),[[n,{state:e.viewState,set:a=>{e.options.title=a},value:e.options?.title,form:"anonymize",options:{}}]]),t[84]||(t[84]=o("label",{class:"form-check-label",for:"title-gist"},"Gist description",-1))]),o("div",Y_,[N(o("input",J_,null,512),[[n,{state:e.viewState,set:a=>{e.options.content=a},value:e.options?.content,form:"anonymize",options:{}}]]),t[85]||(t[85]=o("label",{class:"form-check-label",for:"content-gist"},"File contents",-1))]),o("div",Q_,[N(o("input",X_,null,512),[[n,{state:e.viewState,set:a=>{e.options.comments=a},value:e.options?.comments,form:"anonymize",options:{}}]]),t[86]||(t[86]=o("label",{class:"form-check-label",for:"comments-gist"},"Comments",-1))]),o("div",Z_,[N(o("input",x_,null,512),[[n,{state:e.viewState,set:a=>{e.options.username=a},value:e.options?.username,form:"anonymize",options:{}}]]),t[87]||(t[87]=o("label",{class:"form-check-label",for:"username-gist"},"Usernames",-1))]),o("div",e2,[N(o("input",t2,null,512),[[n,{state:e.viewState,set:a=>{e.options.date=a},value:e.options?.date,form:"anonymize",options:{}}]]),t[88]||(t[88]=o("label",{class:"form-check-label",for:"date-gist"},"Dates",-1))]),o("div",o2,[N(o("input",s2,null,512),[[n,{state:e.viewState,set:a=>{e.options.origin=a},value:e.options?.origin,form:"anonymize",options:{}}]]),t[89]||(t[89]=o("label",{class:"form-check-label",for:"origin-gist"},"Source gist ID",-1))])],512),[[W,e.detectedType==="gist"]]),N(o("div",null,[o("div",n2,[N(o("input",r2,null,512),[[n,{state:e.viewState,set:a=>{e.options.title=a},value:e.options?.title,form:"anonymize",options:{}}]]),t[90]||(t[90]=o("label",{class:"form-check-label",for:"title"},"PR title",-1))]),o("div",i2,[N(o("input",a2,null,512),[[n,{state:e.viewState,set:a=>{e.options.body=a},value:e.options?.body,form:"anonymize",options:{}}]]),t[91]||(t[91]=o("label",{class:"form-check-label",for:"body"},"PR body",-1))]),o("div",l2,[N(o("input",d2,null,512),[[n,{state:e.viewState,set:a=>{e.options.diff=a},value:e.options?.diff,form:"anonymize",options:{}}]]),t[92]||(t[92]=o("label",{class:"form-check-label",for:"diff"},"Diff",-1))]),o("div",u2,[N(o("input",c2,null,512),[[n,{state:e.viewState,set:a=>{e.options.comments=a},value:e.options?.comments,form:"anonymize",options:{}}]]),t[93]||(t[93]=o("label",{class:"form-check-label",for:"comments"},"Comments",-1))]),o("div",p2,[N(o("input",f2,null,512),[[n,{state:e.viewState,set:a=>{e.options.username=a},value:e.options?.username,form:"anonymize",options:{}}]]),t[94]||(t[94]=o("label",{class:"form-check-label",for:"username"},"Usernames",-1))]),o("div",m2,[N(o("input",h2,null,512),[[n,{state:e.viewState,set:a=>{e.options.date=a},value:e.options?.date,form:"anonymize",options:{}}]]),t[95]||(t[95]=o("label",{class:"form-check-label",for:"date"},"Dates",-1))]),o("div",v2,[N(o("input",g2,null,512),[[n,{state:e.viewState,set:a=>{e.options.origin=a},value:e.options?.origin,form:"anonymize",options:{}}]]),t[96]||(t[96]=o("label",{class:"form-check-label",for:"origin"},"Project name",-1))])],512),[[W,e.detectedType==="pr"]])],512),[[W,e.detectedType]]),N(o("section",y2,[t[101]||(t[101]=o("div",{class:"paper-section-eyebrow"},"Expiration",-1)),o("div",b2,[o("div",w2,[t[99]||(t[99]=o("label",{class:"paper-field-label",for:"expiration"},"Strategy",-1)),N((l(),d("select",k2,[...t[98]||(t[98]=[o("option",{value:"redirect"},"Redirect to GitHub when expired",-1),o("option",{value:"remove",selected:""},"Remove when expired",-1)])])),[[n,{state:e.viewState,set:a=>{e.options.expirationMode=a},value:e.options?.expirationMode,form:"anonymize",options:{}}]])]),o("div",E2,[t[100]||(t[100]=o("label",{class:"paper-field-label",for:"expirationDate"},"Expiration date",-1)),N(o("input",{class:A(["form-control",{"is-invalid":e.anonymize?.expirationDate?.invalid}]),type:"date",name:"expirationDate",id:"expirationDate",required:"",min:e.minExpirationDate,max:e.maxExpirationDate},null,10,C2),[[n,{state:e.viewState,set:a=>{e.options.expirationDate=a},value:e.options?.expirationDate,form:"anonymize",options:{}}]]),N(o("div",_2,"Pick a date in the future.",512),[[W,e.anonymize?.expirationDate?.errors?.min]]),N(o("div",{class:"invalid-feedback"},"Pick a date on or before "+c(e.fmt?.date(e.maxExpirationDate))+".",513),[[W,e.anonymize?.expirationDate?.errors?.max]]),N(o("div",S2,"Enter a valid expiration date.",512),[[W,e.anonymize?.expirationDate?.errors?.required||e.anonymize?.expirationDate?.errors?.date]])])]),N(o("small",{class:"form-text text-muted"},"After "+c(e.fmt?.date(e.options?.expirationDate))+", the content will be removed.",513),[[W,e.options?.expirationMode=="remove"&&e.options?.expirationDate]]),N(o("small",{class:"form-text text-muted"},"After "+c(e.fmt?.date(e.options?.expirationDate))+", visitors will be redirected to GitHub.",513),[[W,e.options?.expirationMode=="redirect"&&e.options?.expirationDate]])],512),[[W,e.detectedType]]),N(o("section",N2,[t[105]||(t[105]=o("div",{class:"paper-section-eyebrow"},"Co-authors",-1)),t[106]||(t[106]=o("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)),N(o("div",D2,[t[102]||(t[102]=o("label",{class:"paper-field-label",for:"coauthorSearch"},"Add a GitHub user",-1)),o("div",R2,[N(o("input",T2,null,512),[[n,{state:e.viewState,set:a=>{e.coauthorSearch=a},value:e.coauthorSearch,form:"anonymize",options:{debounce:300},change:()=>{e.searchCoauthors()}}]]),N(o("div",A2,[(l(!0),d(X,null,re(e.coauthorResults,(a,u)=>(l(),d("a",{href:"#",class:"dropdown-item d-flex align-items-center",onClick:me(f=>e.addCoauthor(a,f),["prevent"])},[o("img",{alt:"",style:{width:"22px",height:"22px","border-radius":"50%","margin-right":"8px"},src:e.safeUrl(a?.photo)},null,8,I2),o("span",{textContent:c(a?.username)},null,8,P2)],8,O2))),256))],512),[[W,e.coauthorResults?.length>0]])]),N(o("small",{class:"form-text text-muted",textContent:c(e.coauthorError)},null,8,V2),[[W,e.coauthorError]])],512),[[W,e.role==="owner"||e.role==="admin"]]),o("div",q2,[(l(!0),d(X,null,re(e.coauthors,(a,u)=>(l(),d("div",M2,[a?.photo?(l(),d("img",{key:0,alt:"",style:{width:"24px",height:"24px","border-radius":"50%"},src:e.safeUrl(a?.photo)},null,8,$2)):p("v-if",!0),o("a",{target:"_blank",textContent:c(a?.username),href:e.safeUrl("https://github.com/"+a?.username)},null,8,L2),t[104]||(t[104]=o("span",{class:"type-badge type-coauthor"},"Co-author",-1)),N(o("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[103]||(t[103]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-close"})],-1)])],8,U2),[[W,e.role==="owner"||e.role==="admin"]])]))),256)),N(o("div",F2," No co-authors yet. ",512),[[W,!e.coauthors||e.coauthors?.length===0]])])],512),[[W,e.isUpdate&&e.detectedType==="repo"]]),e.error?(l(),d("div",{key:0,class:"alert alert-danger",role:"alert",textContent:c(e.error)},null,8,z2)):p("v-if",!0),e.draftRestored?(l(),d("div",H2,[t[107]||(t[107]=b("Your unsaved draft was restored. ",-1)),o("button",{type:"button",class:"draft-discard",onClick:t[15]||(t[15]=a=>e.discardDraft())},"Discard draft")])):e.unsavedChanges?(l(),d("div",B2,[b(c(e.draftSaved?"Draft saved in this tab for 30 minutes.":"Unsaved changes. Keep this tab open until you save.")+" ",1),o("button",{type:"button",class:"draft-discard",onClick:t[16]||(t[16]=a=>e.discardDraft())},c(e.isUpdate?"Restore saved settings":"Discard changes"),1)])):p("v-if",!0),e.detectedType==="repo"&&(e.options.image||e.options.pdf)?(l(),d("p",j2,"Review enabled images and PDFs before sharing. Their contents are not anonymized.")):p("v-if",!0),o("button",{type:"button",class:"btn btn-outline-ink mobile-preview-jump",onClick:t[17]||(t[17]=a=>e.selectMobilePane("preview"))},[...t[108]||(t[108]=[b("Review preview ",-1),o("span",{"aria-hidden":"true"},"\u2192",-1)])]),N(o("div",G2,[e.detectedType==="repo"&&!e.isUpdate?(l(),d("button",{key:0,type:"submit",disabled:e.sourceLoading,class:"btn btn-ink",onClick:t[18]||(t[18]=me(a=>e.submitForm(a,()=>{e.anonymizeRepo(a)}),["prevent"]))},[...t[109]||(t[109]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})],-1),b(" Anonymize Repository ",-1)])],8,W2)):p("v-if",!0),e.detectedType==="repo"&&e.isUpdate?(l(),d("button",{key:1,type:"submit",disabled:e.sourceLoading,class:"btn btn-ink",onClick:t[19]||(t[19]=me(a=>e.submitForm(a,()=>{e.anonymizeRepo(a)}),["prevent"]))},[...t[110]||(t[110]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-save"})],-1),b(" Update Repository ",-1)])],8,K2)):p("v-if",!0),e.detectedType==="pr"&&!e.isUpdate?(l(),d("button",{key:2,type:"submit",disabled:e.sourceLoading,class:"btn btn-ink",onClick:t[20]||(t[20]=me(a=>e.submitForm(a,()=>{e.anonymizePullRequest(a)}),["prevent"]))},[...t[111]||(t[111]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})],-1),b(" Anonymize Pull Request ",-1)])],8,Y2)):p("v-if",!0),e.detectedType==="pr"&&e.isUpdate?(l(),d("button",{key:3,type:"submit",disabled:e.sourceLoading,class:"btn btn-ink",onClick:t[21]||(t[21]=me(a=>e.submitForm(a,()=>{e.anonymizePullRequest(a)}),["prevent"]))},[...t[112]||(t[112]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-save"})],-1),b(" Update Pull Request ",-1)])],8,J2)):p("v-if",!0),e.detectedType==="gist"&&!e.isUpdate?(l(),d("button",{key:4,type:"submit",disabled:e.sourceLoading,class:"btn btn-ink",onClick:t[22]||(t[22]=me(a=>e.submitForm(a,()=>{e.anonymizeGist(a)}),["prevent"]))},[...t[113]||(t[113]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})],-1),b(" Anonymize Gist ",-1)])],8,Q2)):p("v-if",!0),e.detectedType==="gist"&&e.isUpdate?(l(),d("button",{key:5,type:"submit",disabled:e.sourceLoading,class:"btn btn-ink",onClick:t[23]||(t[23]=me(a=>e.submitForm(a,()=>{e.anonymizeGist(a)}),["prevent"]))},[...t[114]||(t[114]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-save"})],-1),b(" Update Gist ",-1)])],8,X2)):p("v-if",!0)],512),[[W,e.detectedType]])])),[[i,e.viewState]])],8,TC),p(" 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"},[o("div",x2,[t[115]||(t[115]=o("span",{class:"paper-eyebrow"},"Live preview",-1)),o("span",eS,c(e.previewStatus==="ready"?"README with redactions applied":"README preview"),1)]),e.sourceLoading&&e.previewStatus==="idle"?(l(),d("div",tS,"Loading source\u2026")):p("v-if",!0),e.previewStatus==="loading"?(l(),d("div",oS,"Updating the anonymized preview\u2026")):p("v-if",!0),e.previewStatus==="error"?(l(),d("div",sS,[t[116]||(t[116]=o("p",null,"Unable to generate the anonymized preview. The latest redactions have not been verified.",-1)),o("button",{class:"btn btn-outline-ink",type:"button",onClick:t[24]||(t[24]=a=>e.retryPreview())},"Retry preview")])):p("v-if",!0),!e.sourceLoading&&!e.readme&&e.previewStatus==="idle"?(l(),d("div",nS,"No README is available to preview. Review the published files before sharing.")):p("v-if",!0),e.previewStatus==="ready"?(l(),d("div",{key:4,class:"anonymize-preview-body markdown-body body",innerHTML:e.sanitize(e.html_readme)},null,8,rS)):p("v-if",!0)],8,Z2)):p("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"},[o("div",aS,[t[117]||(t[117]=o("span",{class:"paper-eyebrow"},"Live preview",-1)),o("span",lS,c(e.previewStatus==="ready"?"Gist with redactions applied":"Gist preview"),1)]),e.sourceLoading&&e.previewStatus==="idle"?(l(),d("div",dS,"Loading source\u2026")):p("v-if",!0),e.previewStatus==="loading"?(l(),d("div",uS,"Updating the anonymized preview\u2026")):p("v-if",!0),e.previewStatus==="error"?(l(),d("div",cS,[t[118]||(t[118]=o("p",null,"Unable to generate the anonymized preview. The latest redactions have not been verified.",-1)),o("button",{class:"btn btn-outline-ink",type:"button",onClick:t[25]||(t[25]=a=>e.retryPreview())},"Retry preview")])):p("v-if",!0),e.previewStatus==="ready"?(l(),d("div",pS,[o("div",fS,[o("h2",mS,[e.options?.title?(l(),d("span",hS,c(e.anonymizeGistContent(e.details?.gist?.description)||"Untitled gist"),1)):p("v-if",!0),o("span",{class:A(["badge",{"badge-success":e.details?.gist?.isPublic,"badge-secondary":!e.details?.gist?.isPublic}])},c(e.details?.gist?.isPublic?"public":"secret"),3)]),e.options?.date?(l(),d("small",{key:0,textContent:c(e.fmt?.date(e.details?.gist?.updatedDate))},null,8,vS)):p("v-if",!0)]),e.options?.origin?(l(),d("small",gS,"Gist ID: "+c(e.details?.source?.gistId),1)):p("v-if",!0),e.options?.username&&e.details?.gist?.ownerLogin?(l(),d("small",yS,"By @"+c(e.anonymizeGistContent(e.details?.gist?.ownerLogin)),1)):p("v-if",!0),e.options?.content&&e.previewGistFiles?.length?(l(),d("div",bS,[o("ul",wS,[(l(!0),d(X,null,re(e.previewGistFiles,(a,u)=>(l(),d("li",kS,[o("div",ES,[o("strong",{textContent:c(a?.filename)},null,8,CS),a?.language?(l(),d("span",_S,c(a?.language),1)):p("v-if",!0)]),Ce(s,{file:a,terms:e.terms,options:e.options},null,8,["file","terms","options"])]))),256))])])):p("v-if",!0),e.options?.comments&&e.details?.gist?.comments&&e.details?.gist?.comments?.length?(l(),d("div",SS,[t[121]||(t[121]=o("h3",{class:"paper-section-eyebrow mt-3"},"Comments",-1)),o("ul",NS,[(l(!0),d(X,null,re(e.details?.gist?.comments,(a,u)=>(l(),d("li",DS,[o("div",RS,[e.options?.username?(l(),d("span",TS,[t[119]||(t[119]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-user"})],-1)),t[120]||(t[120]=b(" @",-1)),o("span",{textContent:c(e.anonymizeGistContent(a?.author))},null,8,AS)])):p("v-if",!0),e.options?.date?(l(),d("span",{key:1,class:"pr-comment-date",textContent:c(e.fmt?.date(a?.updatedDate))},null,8,OS)):p("v-if",!0)]),e.options?.body?(l(),d("div",IS,[Ce(r,{content:e.anonymizeGistContent(a?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])])):p("v-if",!0)]))),256))])])):p("v-if",!0)])):p("v-if",!0)],8,iS)):p("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"},[o("div",VS,[t[122]||(t[122]=o("span",{class:"paper-eyebrow"},"Live preview",-1)),o("span",qS,c(e.previewStatus==="ready"?"Pull request with redactions applied":"Pull request preview"),1)]),e.sourceLoading&&e.previewStatus==="idle"?(l(),d("div",MS,"Loading source\u2026")):p("v-if",!0),e.previewStatus==="loading"?(l(),d("div",$S,"Updating the anonymized preview\u2026")):p("v-if",!0),e.previewStatus==="error"?(l(),d("div",LS,[t[123]||(t[123]=o("p",null,"Unable to generate the anonymized preview. The latest redactions have not been verified.",-1)),o("button",{class:"btn btn-outline-ink",type:"button",onClick:t[26]||(t[26]=a=>e.retryPreview())},"Retry preview")])):p("v-if",!0),e.previewStatus==="ready"?(l(),d("div",US,[o("div",FS,[o("h2",zS,[e.options?.title?(l(),d("span",HS,c(e.anonymizePrContent(e.details?.pullRequest?.title)),1)):p("v-if",!0),o("span",{class:A(["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}])},c(e.fmt?.title(e.details?.pullRequest?.merged?"merged":e.details?.pullRequest?.state)),3)]),e.options?.date?(l(),d("small",{key:0,textContent:c(e.fmt?.date(e.details?.pullRequest?.updatedDate))},null,8,BS)):p("v-if",!0)]),e.options?.origin?(l(),d("small",jS,"Pull Request on "+c(e.details?.pullRequest?.baseRepositoryFullName),1)):p("v-if",!0),e.options?.body?(l(),d("div",GS,[Ce(r,{content:e.anonymizePrContent(e.details?.pullRequest?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])])):p("v-if",!0),e.options?.diff||e.options?.comments?(l(),d("nav",WS,[e.options?.diff?(l(),d("button",{key:0,class:A(["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[27]||(t[27]=a=>e.previewTabKeydown(a)),onClick:t[28]||(t[28]=a=>e.prTabState.active="diff")},[...t[124]||(t[124]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-code"})],-1),b(" Diff ",-1)])],42,KS)):p("v-if",!0),e.options?.comments?(l(),d("button",{key:1,class:A(["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[29]||(t[29]=a=>e.previewTabKeydown(a)),onClick:t[30]||(t[30]=a=>e.prTabState.active="comments")},[t[125]||(t[125]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-comment"})],-1)),o("span",{textContent:c(e.fmt.plural(e.details?.pullRequest?.comments?.length,{0:"No comments",one:"1 comment",other:"{} comments"}))},null,8,JS)],42,YS)):p("v-if",!0)])):p("v-if",!0),!e.options?.diff&&!e.options?.comments?(l(),d("div",QS,"Diff and comments are hidden by your display settings.")):p("v-if",!0),o("div",XS,[e.options?.diff&&e.prTabState?.active=="diff"?(l(),d("div",ZS,[o("div",{class:"pr-diff",innerHTML:e.sanitize(e.fmt?.diff(e.anonymizePrContent(e.details?.pullRequest?.diff)))},null,8,xS)])):p("v-if",!0),e.options?.comments&&e.prTabState?.active=="comments"?(l(),d("div",eN,[o("ul",tN,[(l(!0),d(X,null,re(e.details?.pullRequest?.comments,(a,u)=>(l(),d("li",oN,[o("div",sN,[e.options?.username?(l(),d("span",nN,[t[126]||(t[126]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-user"})],-1)),t[127]||(t[127]=b(" @",-1)),o("span",{textContent:c(e.anonymizePrContent(a?.author))},null,8,rN)])):p("v-if",!0),e.options?.date?(l(),d("span",{key:1,class:"pr-comment-date",textContent:c(e.fmt?.date(a?.updatedDate))},null,8,iN)):p("v-if",!0)]),e.options?.body?(l(),d("div",aN,[Ce(r,{content:e.anonymizePrContent(a?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])])):p("v-if",!0)]))),256))])])):p("v-if",!0)])])):p("v-if",!0)],8,PS)):p("v-if",!0)])],512),[[W,e.workspaceOpen||e.isUpdate]])],2)}var lN={class:"container-fluid h-100 anonymize-page"},dN={class:"row h-100 flex-column flex-md-row"},uN={class:"col-md sidePanel shadow overflow-auto anonymize-form-col"},cN={class:"form-group"},pN={class:"form-group"},fN={class:"form-check"},mN={class:"form-check-input",type:"checkbox",id:"update",name:"update"},hN={class:"form-group"},vN={class:"form-text text-muted"},gN=["href"],yN={class:"invalid-feedback"},bN={class:"form-text text-muted"},wN={class:"form-group"},kN={id:"idHelp",class:"form-text text-muted"},EN={class:"invalid-feedback"},CN={class:"form-group"},_N={class:"invalid-feedback"},SN={class:"form-group"},NN={class:"form-control",id:"expiration",name:"expiration"},DN={class:"form-group",id:"expiration-date-form"},RN={class:"form-control",type:"date",name:"expirationDate",id:"expirationDate"},TN={class:"accordion mb-3",id:"options"},AN={class:"card"},ON={id:"collapseOne",class:"collapse show","aria-labelledby":"headingOne","data-parent":"#options"},IN={class:"card-body"},PN={class:"form-group mb-0"},VN={class:"form-check"},qN={class:"form-check-input",type:"checkbox",id:"link",name:"link"},MN={class:"form-check"},$N={class:"form-check-input",type:"checkbox",id:"image",name:"image"},LN={class:"form-check"},UN={class:"form-check-input",type:"checkbox",id:"date",name:"date"},FN={class:"form-check"},zN={class:"form-check-input",type:"checkbox",id:"username",name:"username"},HN={class:"form-check"},BN={class:"form-check-input",type:"checkbox",id:"comments",name:"comments"},jN={class:"form-check"},GN={class:"form-check-input",type:"checkbox",id:"diff",name:"diff"},WN={class:"form-check"},KN={class:"form-check-input",type:"checkbox",id:"origin",name:"origin"},YN={class:"form-check"},JN={class:"form-check-input",type:"checkbox",id:"title",name:"title"},QN={class:"form-check"},XN={class:"form-check-input",type:"checkbox",id:"body",name:"body"},ZN=["textContent"],xN={class:"anonymize-submit-bar"},eD={key:0,class:"col-md-8 p-2 overflow-auto anonymize-preview-col"},tD={class:"d-flex w-100 justify-content-between align-items-center flex-wrap"},oD={class:"pr-title mb-1"},sD={key:0},nD=["textContent"],rD={key:0},iD={key:1,class:"pr-body shadow-sm p-3 mb-4 rounded",style:{background:"var(--sidebar-bg-color)"}},aD={class:"nav nav-tabs",id:"myTab",role:"tablist"},lD={key:0,class:"nav-item",role:"presentation"},dD={key:1,class:"nav-item",role:"presentation"},uD=["textContent"],cD={class:"tab-content",id:"pills-tabContent"},pD={class:"tab-pane show active",id:"pills-diff",role:"tabpanel","aria-labelledby":"pills-diff-tab"},fD={key:0,class:"pr-diff shadow-sm p-3 mb-4 rounded",style:{background:"var(--sidebar-bg-color)"}},mD={style:{"overflow-x":"auto"}},hD=["innerHTML"],vD={key:0,class:"pr-comments list-group"},gD={class:"pr-comment list-group-item"},yD={class:"d-flex w-100 justify-content-between flex-wrap"},bD={key:0,class:"mb-1"},wD=["textContent"],kD={class:"mb-1"};function Cl(e,t){let s=We("markdown"),r=be("field"),n=be("form");return l(),d("div",lN,[o("div",dN,[o("div",uN,[o("div",{class:A(["p-0 py-2 m-auto",{card:!e.pullRequestUrl,container:e.pullRequestUrl}])},[N((l(),d("form",{class:A(["form needs-validation",{"card-body":!e.pullRequestUrl}]),name:"anonymizeForm",novalidate:""},[t[30]||(t[30]=ce('<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)),p(" pullRequestUrl "),o("div",cN,[t[2]||(t[2]=o("label",{for:"pullRequestUrl"},"URL of your pull request",-1)),N(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.anonymize?.pullRequestUrl?.invalid}]),name:"pullRequestUrl",id:"pullRequestUrl",placeholder:"https://github.com/owner/repo/pull/123"},null,2),[[r,{state:e.viewState,set:i=>{e.pullRequestUrl=i},value:e.pullRequestUrl,form:"anonymizeForm",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"},change:()=>{e.pullRequestSelected()}}]]),N(o("div",{class:"invalid-feedback"},c(e.pullRequestUrl)+" is not accessible. Some organizations are restricting the access to the repositories. ",513),[[W,e.anonymize?.pullRequestUrl?.errors?.access]]),N(o("div",{class:"invalid-feedback"},c(e.pullRequestUrl)+" does not exist or is not accessible ",513),[[W,e.anonymize?.pullRequestUrl?.errors?.missing]]),N(o("div",{class:"invalid-feedback"},c(e.pullRequestUrl)+" is already anonymized ",513),[[W,e.anonymize?.pullRequestUrl?.errors?.used]])]),N(o("div",null,[o("div",pN,[o("div",fN,[N(o("input",mN,null,512),[[r,{state:e.viewState,set:i=>{e.options.update=i},value:e.options?.update,form:"anonymizeForm",options:{}}]]),t[3]||(t[3]=o("label",{class:"form-check-label",for:"update"},"Auto update",-1)),t[4]||(t[4]=o("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]=o("div",{class:"paper-section-eyebrow anonymize-section-title"},[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-conference"})]),b(" Conference ID ")],-1)),p(" Conference "),o("div",hN,[t[5]||(t[5]=o("label",{for:"conference"},[b("Conference ID "),o("span",{class:"text-muted"},"(Optional)")],-1)),N(o("input",{class:A(["form-control",{"is-invalid":e.anonymize?.conference?.invalid}]),id:"conference",name:"conference"},null,2),[[r,{state:e.viewState,set:i=>{e.conference=i},value:e.conference,form:"anonymizeForm",options:{debounce:{default:800,blur:0},updateOn:"default blur"}}]]),N(o("small",vN,[o("a",{target:"_target",href:e.safeUrl(e.conference_data?.url)},c(e.conference_data?.name),9,gN),b(" will expire on "+c(e.fmt?.date(e.conference_data?.endDate))+".",1)],512),[[W,e.conference_data]]),N(o("div",yN," The conference is not activated. ",512),[[W,e.anonymize?.conference?.errors?.activated]]),N(o("small",bN," Use the Conference ID that your conference provided you. This will update automatically the anonymization options based on the conference preferences. ",512),[[W,!e.conference_data]])]),t[27]||(t[27]=o("div",{class:"paper-section-eyebrow anonymize-section-title"},[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})]),b(" Anonymization Options ")],-1)),p(" Pull Request ID "),o("div",wN,[t[6]||(t[6]=o("label",{for:"pullRequestId"},"Anonymized pull request id",-1)),N(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.anonymize?.pullRequestId?.invalid}]),name:"pullRequestId",id:"pullRequestId"},null,2),[[r,{state:e.viewState,set:i=>{e.pullRequestId=i},value:e.pullRequestId,form:"anonymizeForm",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"}}]]),o("small",kN,"Id used in the url: https://anonymous.4open.science/r/"+c(e.pullRequestId),1),N(o("div",EN," Repository id can only contain letters and numbers ",512),[[W,e.anonymize?.pullRequestId?.errors?.format]]),N(o("div",{class:"invalid-feedback"},c(e.pullRequestId)+" is already used ",513),[[W,e.anonymize?.pullRequestId?.errors?.used]])]),p(" Terms "),o("div",CN,[t[7]||(t[7]=o("label",{for:"terms"},"Terms to anonymize",-1)),N(o("textarea",{class:A(["form-control",{"is-invalid":e.anonymize?.terms?.invalid}]),id:"terms",name:"terms",rows:"3"},null,2),[[r,{state:e.viewState,set:i=>{e.terms=i},value:e.terms,form:"anonymizeForm",options:{debounce:250}}]]),t[8]||(t[8]=o("small",{id:"termsHelp",class:"form-text text-muted"},"One term per line. Each term will be replaced by XXX.",-1)),N(o("div",_N," Terms are in an invalid format ",512),[[W,e.anonymize?.terms?.errors?.format]])]),o("div",SN,[t[10]||(t[10]=o("label",{for:"expiration"},"Expiration strategy",-1)),N((l(),d("select",NN,[...t[9]||(t[9]=[o("option",{value:"never",selected:""},"Never expire",-1),o("option",{value:"redirect"}," Redirect to GitHub when expired ",-1),o("option",{value:"remove"},"Remove when expired",-1)])])),[[r,{state:e.viewState,set:i=>{e.options.expirationMode=i},value:e.options?.expirationMode,form:"anonymizeForm",options:{}}]]),t[11]||(t[11]=o("small",{class:"form-text text-muted"},"Define the expiration strategy for the anonymized repository.",-1))]),N(o("div",DN,[t[12]||(t[12]=o("label",{for:"expirationDate"},"Expiration date of the anonymized repository",-1)),N(o("input",RN,null,512),[[r,{state:e.viewState,set:i=>{e.options.expirationDate=i},value:e.options?.expirationDate,form:"anonymizeForm",options:{}}]]),N(o("small",{class:"form-text text-muted"},"After "+c(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),[[W,e.options?.expirationMode=="remove"]]),N(o("small",{class:"form-text text-muted"},"After "+c(e.fmt?.date(e.options?.expirationDate))+", the visitors of the anonymized repository will be redirected to "+c(e.pullRequestUrl)+".",513),[[W,e.options?.expirationMode=="redirect"]])],512),[[W,e.options?.expirationMode!="never"]]),o("div",TN,[o("div",AN,[t[25]||(t[25]=ce('<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)),o("div",ON,[o("div",IN,[o("div",PN,[o("div",VN,[N(o("input",qN,null,512),[[r,{state:e.viewState,set:i=>{e.options.link=i},value:e.options?.link,form:"anonymizeForm",options:{}}]]),t[13]||(t[13]=o("label",{class:"form-check-label",for:"link"},"Keep links",-1)),t[14]||(t[14]=o("small",{class:"form-text text-muted"},"Keep or remove all the links.",-1))]),o("div",MN,[N(o("input",$N,null,512),[[r,{state:e.viewState,set:i=>{e.options.image=i},value:e.options?.image,form:"anonymizeForm",options:{}}]]),t[15]||(t[15]=o("label",{class:"form-check-label",for:"image"},"Display images",-1)),t[16]||(t[16]=o("small",{class:"form-text text-muted"},"Images are not anonymized",-1))]),o("div",LN,[N(o("input",UN,null,512),[[r,{state:e.viewState,set:i=>{e.options.date=i},value:e.options?.date,form:"anonymizeForm",options:{}}]]),t[17]||(t[17]=o("label",{class:"form-check-label",for:"date"},"Display dates",-1)),t[18]||(t[18]=o("small",{class:"form-text text-muted"},"Display the date of the Pull Request and the date of the comments.",-1))]),o("div",FN,[N(o("input",zN,null,512),[[r,{state:e.viewState,set:i=>{e.options.username=i},value:e.options?.username,form:"anonymizeForm",options:{}}]]),t[19]||(t[19]=o("label",{class:"form-check-label",for:"username"},"Display username",-1))]),o("div",HN,[N(o("input",BN,null,512),[[r,{state:e.viewState,set:i=>{e.options.comments=i},value:e.options?.comments,form:"anonymizeForm",options:{}}]]),t[20]||(t[20]=o("label",{class:"form-check-label",for:"comments"},"Display comments",-1))]),o("div",jN,[N(o("input",GN,null,512),[[r,{state:e.viewState,set:i=>{e.options.diff=i},value:e.options?.diff,form:"anonymizeForm",options:{}}]]),t[21]||(t[21]=o("label",{class:"form-check-label",for:"diff"},"Display diff",-1))]),o("div",WN,[N(o("input",KN,null,512),[[r,{state:e.viewState,set:i=>{e.options.origin=i},value:e.options?.origin,form:"anonymizeForm",options:{}}]]),t[22]||(t[22]=o("label",{class:"form-check-label",for:"origin"},"Display the project name",-1))]),o("div",YN,[N(o("input",JN,null,512),[[r,{state:e.viewState,set:i=>{e.options.title=i},value:e.options?.title,form:"anonymizeForm",options:{}}]]),t[23]||(t[23]=o("label",{class:"form-check-label",for:"title"},"Display the PR title",-1))]),o("div",QN,[N(o("input",XN,null,512),[[r,{state:e.viewState,set:i=>{e.options.body=i},value:e.options?.body,form:"anonymizeForm",options:{}}]]),t[24]||(t[24]=o("label",{class:"form-check-label",for:"body"},"Display the PR body and comment bodies",-1))])])])])])])],512),[[W,e.pullRequestUrl]]),e.error?(l(),d("div",{key:0,class:"alert alert-danger",role:"alert",textContent:c(e.error)},null,8,ZN)):p("v-if",!0),N(o("div",xN,[e.isUpdate?p("v-if",!0):(l(),d("button",{key:0,id:"submit",type:"submit",class:"btn btn-ink btn-block",onClick:t[0]||(t[0]=me(i=>e.submitForm(i,()=>{e.anonymizePullRequest(i)}),["prevent"]))},[...t[28]||(t[28]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})],-1),b(" Anonymize ",-1)])])),e.isUpdate?(l(),d("button",{key:1,id:"submit",type:"submit",class:"btn btn-ink btn-block",onClick:t[1]||(t[1]=me(i=>e.submitForm(i,()=>{e.updatePullRequest(i)}),["prevent"]))},[...t[29]||(t[29]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-save"})],-1),b(" Update ",-1)])])):p("v-if",!0)],512),[[W,e.pullRequestUrl]])],2)),[[n,e.viewState]])],2)]),e.details?(l(),d("div",eD,[o("div",tD,[o("h2",oD,[e.options?.title?(l(),d("span",sD,c(e.anonymize(e.details?.pullRequest?.title)),1)):p("v-if",!0),o("span",{class:A(["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}])},c(e.fmt?.title(e.details?.pullRequest?.merged?"merged":e.details?.pullRequest?.state)),3)]),e.options?.date?(l(),d("small",{key:0,textContent:c(e.fmt?.date(e.details?.pullRequest?.updatedDate))},null,8,nD)):p("v-if",!0)]),e.options?.origin?(l(),d("small",rD,"Pull Request on "+c(e.details?.pullRequest?.baseRepositoryFullName),1)):p("v-if",!0),e.options?.body?(l(),d("div",iD,[Ce(s,{content:e.anonymize(e.details?.pullRequest?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])])):p("v-if",!0),o("ul",aD,[e.options?.diff?(l(),d("li",lD,[...t[31]||(t[31]=[o("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)])])):p("v-if",!0),e.options?.comments?(l(),d("li",dD,[o("button",{class:A(["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"},[o("span",{textContent:c(e.fmt.plural(e.details?.pullRequest?.comments?.length,{0:"No comment",one:"One Comment",other:"{} Comments"}))},null,8,uD)],2)])):p("v-if",!0)]),o("div",cD,[o("div",pD,[e.options?.diff?(l(),d("div",fD,[o("pre",mD,[o("code",{innerHTML:e.sanitize(e.fmt?.diff(e.anonymize(e.details?.pullRequest?.diff)))},null,8,hD)])])):p("v-if",!0)]),o("div",{class:A(["tab-pane",{"show active":!e.options?.diff}]),id:"pills-comments",role:"tabpanel","aria-labelledby":"pills-comments-tab"},[e.options?.comments?(l(),d("ul",vD,[(l(!0),d(X,null,re(e.details?.pullRequest?.comments,(i,a)=>(l(),d("li",gD,[o("div",yD,[e.options?.username?(l(),d("h5",bD," @"+c(e.anonymize(i?.author)),1)):p("v-if",!0),e.options?.date?(l(),d("small",{key:1,textContent:c(e.fmt?.date(i?.updatedDate))},null,8,wD)):p("v-if",!0)]),o("p",kD,[e.options?.body?(l(),Mt(s,{key:0,class:"pr-comment-body",content:e.anonymize(i?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])):p("v-if",!0)])]))),256))])):p("v-if",!0)],2)])])):p("v-if",!0)])])}var ED={class:"container paper-page claim-page"},CD={class:"paper-settings-main claim-form"},_D={class:"form-group"},SD={class:"invalid-feedback"},ND={class:"form-group"};function _l(e,t){let s=be("field"),r=be("form");return l(),d("div",ED,[t[6]||(t[6]=ce('<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)),o("div",CD,[t[5]||(t[5]=o("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)),N((l(),d("form",{class:"form needs-validation",name:"claimForm",novalidate:"",onSubmit:t[0]||(t[0]=me(n=>e.submitForm(n,()=>{e.claim()}),["prevent"]))},[o("div",_D,[t[1]||(t[1]=o("label",{class:"paper-field-label",for:"repoUrl"},"GitHub repository URL",-1)),N(o("input",{type:"text",class:A(["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),[[s,{state:e.viewState,set:n=>{e.repoUrl=n},value:e.repoUrl,form:"claimForm",options:{}}]]),N(o("div",SD," No anonymization matches this repository and ID. Check both values and that you can access the repository on GitHub. ",512),[[W,e.claimForm?.repoUrl?.errors?.not_found]])]),o("div",ND,[t[2]||(t[2]=o("label",{class:"paper-field-label",for:"repoId"},"Anonymized repository ID",-1)),N(o("input",{type:"text",class:A(["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),[[s,{state:e.viewState,set:n=>{e.repoId=n},value:e.repoId,form:"claimForm",options:{}}]]),t[3]||(t[3]=o("small",{id:"idHelp",class:"form-text text-muted"},[b("The ID is the last part of the anonymized URL: "),o("code",null,"anonymous.4open.science/r/<ID>"),b(".")],-1))]),t[4]||(t[4]=o("button",{id:"submit",type:"submit",class:"btn btn-ink"}," Claim anonymization ",-1))],32)),[[r,e.viewState]])])])}var DD={class:"container page paper-page conference-page"},RD={class:"paper-crumbs"},TD={class:"here"},AD={class:"d-flex align-items-end flex-wrap",style:{gap:"12px","justify-content":"space-between"}},OD=["textContent"],ID={key:0,class:"paper-page-lede"},PD=["textContent","href"],VD={class:"d-flex align-items-center flex-wrap",style:{gap:"10px"}},qD=["textContent"],MD=["href"],$D={class:"paper-meta-rule"},LD=["textContent"],UD=["textContent"],FD={key:0},zD={class:"search-wrap"},HD={type:"search",id:"search",class:"form-control","aria-label":"Search repositories",placeholder:"Search by ID or source repository\u2026",autocomplete:"off"},BD={class:"dashboard-filter-controls"},jD={class:"dropdown"},GD={class:"btn dropdown-toggle",type:"button",id:"dropdownSort","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},WD={class:"filter-btn-value"},KD={class:"dropdown-menu","aria-labelledby":"dropdownSort"},YD={class:"form-check dropdown-item"},JD={class:"form-check-input",type:"radio",name:"sort",id:"anonymizeDate",value:"-anonymizeDate"},QD={class:"form-check dropdown-item"},XD={class:"form-check-input",type:"radio",name:"sort",id:"sortID",value:"repoId"},ZD={class:"form-check dropdown-item"},xD={class:"form-check-input",type:"radio",name:"sort",id:"sortStatus",value:"-status"},eR={class:"form-check dropdown-item"},tR={class:"form-check-input",type:"radio",name:"sort",id:"sortViews",value:"-pageView"},oR={class:"dropdown"},sR={class:"btn dropdown-toggle",type:"button",id:"dropdownStatus","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},nR={key:0,class:"filter-btn-value"},rR={key:1,class:"filter-btn-value"},iR={class:"dropdown-menu","aria-labelledby":"dropdownStatus"},aR={class:"form-check dropdown-item"},lR=["id"],dR=["for"],uR={class:"dashboard-meta"},cR={class:"dashboard-count"},pR={key:0},fR={key:0},mR={key:1},hR={key:1},vR={key:0,class:"filter-chip"},gR=["onClick","aria-label"],yR={class:"paper-table paper-table-repos w-100",role:"table","aria-label":"Repositories"},bR={class:"cell-anon",role:"cell"},wR={class:"anon-text"},kR=["textContent","href"],ER={class:"anon-sub"},CR={class:"anon-source"},_R=["textContent","href"],SR={key:0},NR=["textContent","href"],DR={key:1},RR=["href"],TR={class:"cell-status",role:"cell"},AR={class:"status-line"},OR=["textContent"],IR={key:0,class:"status-sub"},PR={class:"cell-views num",role:"cell"},VR=["textContent"],qR={class:"cell-expires",role:"cell"},MR={key:0,class:"expires-never"},$R=["textContent"],LR={key:2,class:"expires-past"},UR={key:0},FR={key:3,class:"empty-dash","aria-label":"Not applicable"},zR={class:"cell-actions",role:"cell"},HR={class:"dropdown"},BR=["aria-label"],jR={class:"dropdown-menu dropdown-menu-right"},GR=["href"],WR=["href"],KR={key:0,class:"paper-table-empty"},YR={key:0},JR={key:1},QR={key:2,class:"paper-table-empty-actions"};function Sl(e,t){let s=be("field"),r=be("form");return l(),d("div",DD,[o("div",null,[o("div",RD,[t[2]||(t[2]=o("a",{href:"/dashboard"},"My work",-1)),t[3]||(t[3]=b(" \xA0/\xA0 ",-1)),t[4]||(t[4]=o("a",{href:"/conferences"},"Conferences",-1)),t[5]||(t[5]=b(" \xA0/\xA0 ",-1)),o("span",TD,c(e.conference?.conferenceID),1)]),o("div",AD,[o("div",null,[o("h1",{class:"paper-page-title",textContent:c(e.conference?.name)},null,8,OD),e.conference?.url?(l(),d("p",ID,[o("a",{target:"_blank",rel:"noopener",textContent:c(e.conference?.url),href:e.safeUrl(e.conference?.url)},null,8,PD)])):p("v-if",!0)]),o("div",VD,[o("span",{class:A(["status-pill",{"status-pill-ready":e.conference?.status=="ready","status-pill-removed":e.conference?.status=="removed"||e.conference?.status=="expired"}])},[o("span",{class:A(["status-dot","status-"+e.conference?.status]),"aria-hidden":"true"},null,2),o("span",{textContent:c(e.fmt?.statusLabel(e.conference?.status))},null,8,qD)],2),o("a",{class:"btn btn-outline-ink",href:e.safeUrl("/conference/"+e.conference?.conferenceID+"/edit")},[...t[6]||(t[6]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-edit"})],-1),b(" Edit conference",-1)])],8,MD)])]),o("div",$D,[o("span",null,[t[7]||(t[7]=b("ID ",-1)),o("b",{class:"commit-hash",textContent:c(e.conference?.conferenceID)},null,8,LD)]),o("span",null,[t[8]||(t[8]=b("Review window ",-1)),o("b",null,c(e.fmt?.date(e.conference?.startDate,"mediumDate"))+" \u2013 "+c(e.fmt?.date(e.conference?.endDate,"mediumDate")),1)]),o("span",null,[t[9]||(t[9]=b("Repositories ",-1)),o("b",null,c(e.fmt?.number(e.conference?.repositories?.length)),1)]),o("span",null,[t[10]||(t[10]=b("Plan ",-1)),o("b",{textContent:c(e.conference?.plan?.name||e.conference?.plan?.planID||"Free")},null,8,UD)]),e.conference?.price?(l(),d("span",FD,[t[11]||(t[11]=b("Cost so far ",-1)),o("b",null,c(e.fmt?.number(e.conference?.price,2))+" \u20AC",1)])):p("v-if",!0)]),t[32]||(t[32]=o("div",{class:"paper-section-eyebrow"},"Repositories",-1)),N((l(),d("form",{class:"w-100 dashboard-filter-row","aria-label":"Filter repositories","accept-charset":"UTF-8",onSubmit:t[0]||(t[0]=me(n=>e.submitForm(n,()=>{n.preventDefault()}),["prevent"]))},[o("div",zD,[N(o("input",HD,null,512),[[s,{state:e.viewState,set:n=>{e.search=n},value:e.search,form:null,options:{}}]])]),o("div",BD,[o("div",jD,[o("button",GD,[t[12]||(t[12]=o("span",{class:"filter-btn-label"},"Sort",-1)),o("span",WD,c({"-anonymizeDate":"Anonymize date",repoId:"ID","-status":"Status","-pageView":"Views"}[e.orderBy]||"Custom"),1)]),o("div",KD,[t[17]||(t[17]=o("h6",{class:"dropdown-header"},"Order by",-1)),o("div",YD,[N(o("input",JD,null,512),[[s,{state:e.viewState,set:n=>{e.orderBy=n},value:e.orderBy,form:null,options:{}}]]),t[13]||(t[13]=o("label",{class:"form-check-label",for:"anonymizeDate"},"Anonymize date",-1))]),o("div",QD,[N(o("input",XD,null,512),[[s,{state:e.viewState,set:n=>{e.orderBy=n},value:e.orderBy,form:null,options:{}}]]),t[14]||(t[14]=o("label",{class:"form-check-label",for:"sortID"},"ID",-1))]),o("div",ZD,[N(o("input",xD,null,512),[[s,{state:e.viewState,set:n=>{e.orderBy=n},value:e.orderBy,form:null,options:{}}]]),t[15]||(t[15]=o("label",{class:"form-check-label",for:"sortStatus"},"Status",-1))]),o("div",eR,[N(o("input",tR,null,512),[[s,{state:e.viewState,set:n=>{e.orderBy=n},value:e.orderBy,form:null,options:{}}]]),t[16]||(t[16]=o("label",{class:"form-check-label",for:"sortViews"},"Views",-1))])])]),o("div",oR,[o("button",sR,[t[18]||(t[18]=o("span",{class:"filter-btn-label"},"Status",-1)),e.filters?.status?.ready&&e.filters?.status?.expired&&e.filters?.status?.removed?(l(),d("span",nR,"All")):p("v-if",!0),e.filters?.status?.ready&&e.filters?.status?.expired&&e.filters?.status?.removed?p("v-if",!0):(l(),d("span",rR,c((e.filters?.status?.ready?0:1)+(e.filters?.status?.expired?0:1)+(e.filters?.status?.removed?0:1))+" hidden ",1))]),o("div",iR,[t[19]||(t[19]=o("h6",{class:"dropdown-header"},"Show statuses",-1)),(l(!0),d(X,null,re(e.statusLabels,(n,i,a)=>(l(),d("div",aR,[N(o("input",{class:"form-check-input",type:"checkbox",id:"status-"+i},null,8,lR),[[s,{state:e.viewState,set:u=>{e.filters.status[i]=u},value:e.filters?.status[i],form:null,options:{}}]]),o("label",{class:"form-check-label",for:"status-"+i},c(n),9,dR)]))),256))])])])],32)),[[r,e.viewState]]),o("div",uR,[o("span",cR,[e.filteredRepositories?.length===e.conference?.repositories?.length?(l(),d("span",pR,[b(c(e.fmt?.number(e.conference?.repositories?.length))+" repositor",1),e.conference?.repositories?.length===1?(l(),d("span",fR,"y")):p("v-if",!0),e.conference?.repositories?.length!==1?(l(),d("span",mR,"ies")):p("v-if",!0)])):p("v-if",!0),e.filteredRepositories?.length!==e.conference?.repositories?.length?(l(),d("span",hR,c(e.fmt?.number(e.filteredRepositories?.length))+" of "+c(e.fmt?.number(e.conference?.repositories?.length))+" shown",1)):p("v-if",!0)]),(l(!0),d(X,null,re(e.filters?.status,(n,i,a)=>(l(),d(X,null,[n===!1?(l(),d("span",vR,[b(" Hiding "+c(e.statusLabels[i])+" ",1),o("button",{type:"button",class:"filter-chip-close",onClick:u=>{e.filters.status[i]=!0},"aria-label":"Show "+e.statusLabels[i]+" again"},"\xD7",8,gR)])):p("v-if",!0)],64))),256))]),o("div",yR,[t[31]||(t[31]=o("div",{class:"paper-table-head",role:"row"},[o("div",{role:"columnheader"},"Repository"),o("div",{role:"columnheader"},"Status"),o("div",{role:"columnheader",class:"num"},"Views"),o("div",{role:"columnheader"},"Expires"),o("div",{role:"columnheader"},[o("span",{class:"sr-only"},"Actions")])],-1)),(l(!0),d(X,null,re(e.filteredRepositories,(n,i)=>(l(),d("div",{class:A(["paper-table-row",{"repo-inactive":n?.status=="expired"||n?.status=="removed","repo-error":n?.status=="error"}]),role:"row",key:n?.repoId},[o("div",bR,[t[22]||(t[22]=o("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Repository"},[o("use",{href:"#project-type-repo"})],-1)),o("div",wR,[o("a",{class:"repo-name",textContent:c(n?.repoId),href:e.safeUrl("/r/"+n?.repoId+"/")},null,8,kR),o("div",ER,[o("span",CR,[o("a",{target:"_blank",rel:"noopener",textContent:c(n?.source?.fullName),href:e.safeUrl("https://github.com/"+n?.source?.fullName+"/")},null,8,_R),n?.options?.update&&n?.source?.branch?(l(),d("span",SR,[t[20]||(t[20]=b(" \xB7 ",-1)),o("a",{target:"_blank",rel:"noopener",textContent:c(n?.source?.branch),href:e.safeUrl("https://github.com/"+n?.source?.fullName+"/tree/"+n?.source?.branch)},null,8,NR)])):p("v-if",!0),n?.source?.commit?(l(),d("span",DR,[t[21]||(t[21]=b(" \xB7 ",-1)),o("a",{class:"commit-hash",target:"_blank",rel:"noopener",href:e.safeUrl("https://github.com/"+n?.source?.fullName+"/tree/"+n?.source?.commit)},"@"+c(n?.source?.commit?.substring(0,8)),9,RR)])):p("v-if",!0)])])])]),o("div",TR,[o("div",AR,[o("span",{class:A(["status-dot","status-"+(n?.status=="error"?"error":n?.status=="ready"?"ready":n?.status=="expired"||n?.status=="removed"?n?.status:"progress")]),"aria-hidden":"true"},null,2),o("span",{class:"status-word",textContent:c(e.fmt?.statusLabel(n?.status))},null,8,OR)]),n?.anonymizeDate?(l(),d("div",IR,"anonymized "+c(e.fmt?.humanTime(n?.anonymizeDate)),1)):p("v-if",!0)]),o("div",PR,[t[23]||(t[23]=o("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-eye"})],-1)),t[24]||(t[24]=b()),o("span",{textContent:c(e.fmt?.number(n?.pageView))},null,8,VR)]),o("div",qR,[t[26]||(t[26]=o("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-clock"})],-1)),n?.status=="ready"&&(n?.options?.expirationMode==="never"||!n?.options?.expirationDate)?(l(),d("span",MR,"Never")):p("v-if",!0),n?.status=="ready"&&n?.options?.expirationMode!=="never"&&n?.options?.expirationDate?(l(),d("span",{key:1,textContent:c(e.fmt?.humanTime(n?.options?.expirationDate))},null,8,$R)):p("v-if",!0),n?.status=="expired"?(l(),d("span",LR,[t[25]||(t[25]=b("Expired",-1)),n?.options?.expirationDate?(l(),d("span",UR,c(e.fmt?.humanTime(n?.options?.expirationDate)),1)):p("v-if",!0)])):p("v-if",!0),n?.status!="ready"&&n?.status!="expired"?(l(),d("span",FR,"\u2014")):p("v-if",!0)]),o("div",zR,[o("div",HR,[o("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions for "+n?.repoId},[...t[27]||(t[27]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-more"})],-1)])],8,BR),o("div",jR,[o("a",{class:"dropdown-item",href:e.safeUrl("/r/"+n?.repoId+"/")},[...t[28]||(t[28]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-eye"})],-1),b(" View ",-1)])],8,GR),o("a",{class:"dropdown-item",href:e.safeUrl("/anonymize/"+n?.repoId)},[...t[29]||(t[29]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-edit"})],-1),b(" Edit ",-1)])],8,WR)])])])],2))),128)),e.filteredRepositories?.length==0?(l(),d("div",KR,[t[30]||(t[30]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-inbox"})],-1)),e.conference?.repositories?.length?p("v-if",!0):(l(),d("span",YR,"No repository has been submitted to this conference yet.")),e.conference?.repositories?.length?(l(),d("span",JR,"Nothing matches the current filters.")):p("v-if",!0),e.conference?.repositories?.length?(l(),d("div",QR,[o("button",{type:"button",class:"btn btn-outline-ink",onClick:t[1]||(t[1]=n=>{e.search="",e.filters.status.ready=!0,e.filters.status.expired=!0,e.filters.status.removed=!0})},"Clear filters")])):p("v-if",!0)])):p("v-if",!0)])])])}var XR={class:"container page paper-page conferences-page"},ZR={class:"row"},xR={class:"w-100"},eT={class:"search-wrap"},tT={type:"search",id:"search",class:"form-control","aria-label":"Search conferences",placeholder:"Search by name or ID\u2026",autocomplete:"off"},oT={class:"dashboard-filter-controls"},sT={class:"dropdown"},nT={class:"btn dropdown-toggle",type:"button",id:"dropdownSort","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},rT={class:"filter-btn-value"},iT={class:"dropdown-menu","aria-labelledby":"dropdownSort"},aT={class:"form-check dropdown-item"},lT={class:"form-check-input",type:"radio",name:"sort",id:"sortName",value:"name"},dT={class:"form-check dropdown-item"},uT={class:"form-check-input",type:"radio",name:"sort",id:"sortID",value:"conferenceID"},cT={class:"form-check dropdown-item"},pT={class:"form-check-input",type:"radio",name:"sort",id:"sortStatus",value:"-status"},fT={class:"dropdown"},mT={class:"btn dropdown-toggle",type:"button",id:"dropdownStatus","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},hT={key:0,class:"filter-btn-value"},vT={key:1,class:"filter-btn-value"},gT={class:"dropdown-menu","aria-labelledby":"dropdownStatus"},yT={class:"form-check dropdown-item"},bT=["id"],wT=["for"],kT={class:"dashboard-meta"},ET={class:"dashboard-count"},CT={key:0},_T={key:0},ST={key:1},NT={key:0,class:"filter-chip"},DT=["onClick","aria-label"],RT={key:0,class:"conference-feedback",role:"alert"},TT={key:1,class:"conference-feedback",role:"status"},AT={class:"paper-table paper-table-conferences w-100",role:"table","aria-label":"Conferences"},OT={class:"cell-anon",role:"cell"},IT={class:"anon-text"},PT=["textContent","href"],VT={class:"anon-sub"},qT={class:"anon-source"},MT=["textContent"],$T={key:0},LT=["textContent","href"],UT={class:"cell-status",role:"cell"},FT={class:"status-line"},zT=["textContent"],HT={class:"cell-views num",role:"cell"},BT=["textContent"],jT={class:"cell-expires",role:"cell"},GT={key:0},WT={key:1,class:"empty-dash","aria-label":"No review window"},KT={class:"cell-actions",role:"cell"},YT={class:"dropdown"},JT=["disabled","aria-label"],QT={class:"dropdown-menu dropdown-menu-right"},XT=["href"],ZT=["href"],xT={key:0},eA=["onClick"],tA={key:0,class:"paper-table-empty"},oA={key:0},sA={key:1},nA={class:"paper-table-empty-actions"},rA={key:1,href:"/conference/new",class:"btn btn-ink"};function Nl(e,t){let s=be("field"),r=be("form");return l(),d("div",XR,[o("div",ZR,[o("div",xR,[t[10]||(t[10]=ce('<div class="paper-crumbs"><a href="/dashboard">My work</a> \xA0/\xA0 <span class="here">Conferences</span></div><div class="d-flex align-items-end justify-content-between flex-wrap" 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-ink"><svg class="ui-icon mr-1" aria-hidden="true"><use href="#project-icon-plus"></use></svg> New conference </a></div>',2)),N((l(),d("form",{class:"w-100 dashboard-filter-row","aria-label":"Filter conferences","accept-charset":"UTF-8",onSubmit:t[0]||(t[0]=me(n=>e.submitForm(n,()=>{n.preventDefault()}),["prevent"]))},[o("div",eT,[N(o("input",tT,null,512),[[s,{state:e.viewState,set:n=>{e.search=n},value:e.search,form:null,options:{}}]])]),o("div",oT,[o("div",sT,[o("button",nT,[t[3]||(t[3]=o("span",{class:"filter-btn-label"},"Sort",-1)),o("span",rT,c({name:"Name",conferenceID:"ID","-status":"Status"}[e.orderBy]||"Custom"),1)]),o("div",iT,[t[7]||(t[7]=o("h6",{class:"dropdown-header"},"Order by",-1)),o("div",aT,[N(o("input",lT,null,512),[[s,{state:e.viewState,set:n=>{e.orderBy=n},value:e.orderBy,form:null,options:{}}]]),t[4]||(t[4]=o("label",{class:"form-check-label",for:"sortName"},"Name",-1))]),o("div",dT,[N(o("input",uT,null,512),[[s,{state:e.viewState,set:n=>{e.orderBy=n},value:e.orderBy,form:null,options:{}}]]),t[5]||(t[5]=o("label",{class:"form-check-label",for:"sortID"},"ID",-1))]),o("div",cT,[N(o("input",pT,null,512),[[s,{state:e.viewState,set:n=>{e.orderBy=n},value:e.orderBy,form:null,options:{}}]]),t[6]||(t[6]=o("label",{class:"form-check-label",for:"sortStatus"},"Status",-1))])])]),o("div",fT,[o("button",mT,[t[8]||(t[8]=o("span",{class:"filter-btn-label"},"Status",-1)),e.filters?.status?.ready&&e.filters?.status?.expired&&e.filters?.status?.removed?(l(),d("span",hT,"All")):p("v-if",!0),e.filters?.status?.ready&&e.filters?.status?.expired&&e.filters?.status?.removed?p("v-if",!0):(l(),d("span",vT,c((e.filters?.status?.ready?0:1)+(e.filters?.status?.expired?0:1)+(e.filters?.status?.removed?0:1))+" hidden ",1))]),o("div",gT,[t[9]||(t[9]=o("h6",{class:"dropdown-header"},"Show statuses",-1)),(l(!0),d(X,null,re(e.statusLabels,(n,i,a)=>(l(),d("div",yT,[N(o("input",{class:"form-check-input",type:"checkbox",id:"status-"+i},null,8,bT),[[s,{state:e.viewState,set:u=>{e.filters.status[i]=u},value:e.filters?.status[i],form:null,options:{}}]]),o("label",{class:"form-check-label",for:"status-"+i},c(n),9,wT)]))),256))])])])],32)),[[r,e.viewState]]),o("div",kT,[o("span",ET,[e.filteredConferences?.length===e.conferences?.length?(l(),d("span",CT,[b(c(e.fmt?.number(e.conferences?.length))+" conference",1),e.conferences?.length!==1?(l(),d("span",_T,"s")):p("v-if",!0)])):p("v-if",!0),e.filteredConferences?.length!==e.conferences?.length?(l(),d("span",ST,c(e.fmt?.number(e.filteredConferences?.length))+" of "+c(e.fmt?.number(e.conferences?.length))+" shown",1)):p("v-if",!0)]),(l(!0),d(X,null,re(e.filters?.status,(n,i,a)=>(l(),d(X,null,[n===!1?(l(),d("span",NT,[b(" Hiding "+c(e.statusLabels[i])+" ",1),o("button",{type:"button",class:"filter-chip-close",onClick:u=>{e.filters.status[i]=!0},"aria-label":"Show "+e.statusLabels[i]+" again"},"\xD7",8,DT)])):p("v-if",!0)],64))),256))])]),e.error?(l(),d("div",RT,[o("span",null,c(e.error),1),o("button",{type:"button",class:"btn btn-outline-ink",onClick:t[1]||(t[1]=n=>e.loadConferences())},"Retry")])):p("v-if",!0),e.loading?(l(),d("div",TT,"Loading conferences\u2026")):p("v-if",!0),o("div",AT,[t[24]||(t[24]=o("div",{class:"paper-table-head",role:"row"},[o("div",{role:"columnheader"},"Conference"),o("div",{role:"columnheader"},"Status"),o("div",{role:"columnheader",class:"num"},"Repos"),o("div",{role:"columnheader"},"Review window"),o("div",{role:"columnheader"},[o("span",{class:"sr-only"},"Actions")])],-1)),(l(!0),d(X,null,re(e.filteredConferences,(n,i)=>(l(),d("div",{class:A(["paper-table-row row-clickable",{"repo-inactive":n?.status=="expired"||n?.status=="removed"}]),role:"row",key:n?.conferenceID},[o("div",OT,[t[13]||(t[13]=o("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Conference"},[o("use",{href:"#project-icon-conference"})],-1)),o("div",IT,[o("a",{class:"repo-name",textContent:c(n?.name),href:e.safeUrl("/conference/"+n?.conferenceID)},null,8,PT),o("div",VT,[o("span",qT,[t[12]||(t[12]=b("ID ",-1)),o("span",{class:"commit-hash",textContent:c(n?.conferenceID)},null,8,MT),n?.url?(l(),d("span",$T,[t[11]||(t[11]=b(" \xB7 ",-1)),o("a",{target:"_blank",rel:"noopener",textContent:c(e.fmt?.limitTo(n?.url,60)),href:e.safeUrl(n?.url)},null,8,LT)])):p("v-if",!0)])])])]),o("div",UT,[o("div",FT,[o("span",{class:A(["status-dot","status-"+n?.status]),"aria-hidden":"true"},null,2),o("span",{class:"status-word",textContent:c(e.fmt?.statusLabel(n?.status))},null,8,zT)])]),o("div",HT,[t[14]||(t[14]=o("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[o("use",{href:"#project-type-repo"})],-1)),t[15]||(t[15]=b()),o("span",{textContent:c(e.fmt?.number(n?.nbRepositories||0))},null,8,BT)]),o("div",jT,[t[16]||(t[16]=o("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-clock"})],-1)),n?.startDate?(l(),d("span",GT,c(e.fmt?.date(n?.startDate,"mediumDate"))+" \u2013 "+c(e.fmt?.date(n?.endDate,"mediumDate")),1)):p("v-if",!0),n?.startDate?p("v-if",!0):(l(),d("span",WT,"\u2014"))]),o("div",KT,[o("div",YT,[o("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false",disabled:n?.removing,"aria-label":"Actions for "+n?.name},[...t[17]||(t[17]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-more"})],-1)])],8,JT),o("div",QT,[o("a",{class:"dropdown-item",href:e.safeUrl("/conference/"+n?.conferenceID+"/")},[...t[18]||(t[18]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-eye"})],-1),b(" View ",-1)])],8,XT),o("a",{class:"dropdown-item",href:e.safeUrl("/conference/"+n?.conferenceID+"/edit")},[...t[19]||(t[19]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-edit"})],-1),b(" Edit ",-1)])],8,ZT),n?.status!="removed"?(l(),d("div",xT,[t[21]||(t[21]=o("div",{class:"dropdown-divider"},null,-1)),o("button",{type:"button",class:"dropdown-item dropdown-item-danger",onClick:a=>e.removeConference(n)},[...t[20]||(t[20]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-trash"})],-1),b(" Remove ",-1)])],8,eA)])):p("v-if",!0)])])])],2))),128)),!e.loading&&!e.error&&e.filteredConferences?.length==0?(l(),d("div",tA,[t[23]||(t[23]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-inbox"})],-1)),e.conferences?.length==0?(l(),d("span",oA,"You have not created a conference yet.")):p("v-if",!0),e.conferences?.length>0?(l(),d("span",sA,"Nothing matches the current filters.")):p("v-if",!0),o("div",nA,[e.conferences?.length>0?(l(),d("button",{key:0,type:"button",class:"btn btn-outline-ink",onClick:t[2]||(t[2]=n=>{e.search="",e.filters.status.ready=!0,e.filters.status.expired=!0,e.filters.status.removed=!0})},"Clear filters")):p("v-if",!0),e.conferences?.length==0?(l(),d("a",rA,[...t[22]||(t[22]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#project-icon-plus"})],-1),b(" New conference",-1)])])):p("v-if",!0)])])):p("v-if",!0)])])])}var iA={class:"container page dashboard-page paper-page"},aA={class:"row"},lA={class:"w-100"},dA={class:"dashboard-heading"},uA=["open"],cA=["aria-expanded"],pA=["stroke-dasharray"],fA={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"},mA={key:0,class:"quota-summary-value"},hA={key:0},vA={class:"quota-panel",id:"dashboard-usage"},gA={class:"quota-panel-heading"},yA={key:1,class:"quota-loading",role:"status"},bA={class:"search-wrap"},wA={type:"search",id:"search",class:"form-control","aria-label":"Search anonymizations",placeholder:"Search projects, IDs, or conferences\u2026",autocomplete:"off"},kA=["aria-expanded"],EA={class:"btn-group",role:"group","aria-label":"Type"},CA=["aria-pressed"],_A=["aria-pressed"],SA=["aria-pressed"],NA=["aria-pressed"],DA={class:"dropdown"},RA={class:"btn dropdown-toggle",type:"button",id:"dropdownSort","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},TA={class:"filter-btn-value"},AA={class:"sr-only"},OA={class:"dropdown-menu","aria-labelledby":"dropdownSort"},IA={class:"form-check dropdown-item"},PA=["onClick","checked","id"],VA=["for"],qA={class:"dropdown"},MA={class:"btn dropdown-toggle",type:"button",id:"dropdownStatus","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},$A={key:0,class:"filter-btn-value"},LA={key:1,class:"filter-btn-value"},UA={class:"dropdown-menu","aria-labelledby":"dropdownStatus"},FA={class:"form-check dropdown-item"},zA=["id"],HA=["for"],BA={key:0,class:"dashboard-meta"},jA={class:"dashboard-view-tabs",role:"group","aria-label":"Project view"},GA=["aria-pressed"],WA=["aria-pressed","aria-label"],KA={class:"dashboard-count"},YA={key:0},JA={key:0},QA={key:1},XA={class:"dashboard-active-filters"},ZA=["onClick","aria-label","title"],xA=["aria-busy"],eO={class:"paper-table-head",role:"row"},tO=["aria-sort"],oO=["aria-sort"],sO=["aria-sort"],nO=["aria-sort"],rO={key:0,class:"paper-table-row paper-table-skeleton",role:"row","aria-hidden":"true"},iO=["onClick"],aO={class:"cell-anon",role:"cell"},lO=["aria-label","title"],dO={class:"project-type-svg","aria-hidden":"true"},uO=["href"],cO={class:"anon-text"},pO={class:"anon-title"},fO=["title","textContent","href"],mO=["textContent"],hO={key:2,class:"type-badge type-coauthor",title:"You are a co-author on this anonymization"},vO={class:"anon-sub"},gO=["title"],yO=["title"],bO=["title"],wO=["textContent"],kO={class:"dashboard-row-meta",role:"presentation"},EO={class:"cell-status",role:"cell"},CO={class:"status-line"},_O=["textContent"],SO=["textContent","title"],NO=["title"],DO=["href"],RO=["onClick"],TO={key:4,class:"status-sub status-sub-date"},AO=["aria-label"],OO={class:"cell-expires",role:"cell"},IO={key:0,class:"expires-never"},PO=["textContent"],VO={key:2,class:"expires-past"},qO={key:3,class:"expires-past"},MO={key:4,class:"empty-dash","aria-label":"Not applicable"},$O={class:"cell-actions",role:"cell"},LO=["onClick","disabled","title","aria-label"],UO=["onClick","data-project-actions","aria-controls","aria-expanded"],FO={key:2,class:"dropdown"},zO=["data-project-actions","aria-label"],HO={class:"dropdown-menu dropdown-menu-right"},BO=["onClick","aria-controls","aria-expanded"],jO=["href"],GO=["href"],WO=["onClick","disabled"],KO=["href"],YO=["onClick"],JO=["onClick"],QO=["onClick"],XO={key:5},ZO=["onClick"],xO={key:1,class:"project-details-row",role:"row"},e4=["id","onKeydown"],t4={class:"project-details-heading"},o4=["onClick"],s4={class:"project-details-list"},n4={key:0},r4={key:1},i4={key:0},a4={key:2},l4={key:0,class:"project-progress-help"},d4=["href"],u4=["onSubmit"],c4=["for"],p4=["id"],f4={class:"project-name-controls"},m4=["id","aria-describedby","disabled"],h4=["disabled"],v4={key:0,class:"project-name-error",role:"alert"},g4={key:1,role:"status"},y4={key:0,class:"paper-table-empty"},b4={key:0},w4={key:1},k4={class:"paper-table-empty-actions"},E4={key:1,href:"/anonymize",class:"btn btn-ink"},C4={key:0,class:"dashboard-pagination"},_4={key:0,role:"alert"},S4=["disabled"];function Dl(e,t){let s=We("quota-usage"),r=be("field"),n=be("form");return l(),d("div",iA,[o("div",aA,[o("div",lA,[o("div",dA,[o("div",null,[t[27]||(t[27]=o("h1",{class:"paper-page-title"},"Projects",-1)),t[28]||(t[28]=o("p",{class:"paper-page-lede"},"Manage your anonymous links.",-1)),o("details",{class:"dashboard-quota",open:e.quotaExpanded,onToggle:t[1]||(t[1]=i=>e.quotaExpanded=i.target.open),onKeydown:t[2]||(t[2]=Ro(me(i=>e.closeQuota(),["prevent","stop"]),["esc"]))},[o("summary",{"aria-controls":"dashboard-usage","aria-expanded":e.quotaExpanded},[(l(),d("svg",{class:A(["quota-summary-ring",e.quota?"quota-"+e.quota.repository.level:""]),viewBox:"0 0 24 24","aria-hidden":"true"},[t[21]||(t[21]=o("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,pA)):p("v-if",!0),e.quota?.repository.unlimited?(l(),d("path",fA)):p("v-if",!0)],2)),t[23]||(t[23]=o("span",{class:"quota-summary-label"},"Usage",-1)),e.quota?(l(),d("span",mA,[b(c(e.fmt.number(e.quota.repository.used)),1),e.quota.repository.unlimited?p("v-if",!0):(l(),d("span",hA," / "+c(e.fmt.number(e.quota.repository.total)),1)),t[22]||(t[22]=b(" repos",-1))])):p("v-if",!0),t[24]||(t[24]=o("svg",{class:"project-type-svg quota-summary-chevron","aria-hidden":"true"},[o("use",{href:"#project-icon-chevron"})],-1))],8,cA),o("div",vA,[o("div",gA,[t[26]||(t[26]=o("h2",null,"Account usage",-1)),o("button",{type:"button",class:"project-close","aria-label":"Close usage",onClick:t[0]||(t[0]=i=>e.closeQuota())},[...t[25]||(t[25]=[o("svg",{class:"project-type-svg","aria-hidden":"true"},[o("use",{href:"#project-icon-close"})],-1)])])]),e.quota?(l(),Mt(s,{key:0,quota:e.quota,fmt:e.fmt},null,8,["quota","fmt"])):(l(),d("p",yA,"Loading usage\u2026"))])],40,uA)]),t[29]||(t[29]=ce('<div class="dashboard-heading-actions"><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 link</span><span class="dashboard-new-mobile" aria-hidden="true">New</span></a></div>',1))]),p(" Search + filters "),N((l(),d("form",{class:"w-100 dashboard-filter-row","aria-label":"Filter anonymizations","accept-charset":"UTF-8",onSubmit:t[9]||(t[9]=me(i=>e.submitForm(i,()=>{i.preventDefault()}),["prevent"]))},[o("div",bA,[N(o("input",wA,null,512),[[r,{state:e.viewState,set:i=>{e.search=i},value:e.search,form:null,options:{}}]])]),o("button",{class:"btn dashboard-filters-toggle",type:"button","aria-expanded":e.filtersExpanded,"aria-controls":"dashboard-filter-controls",onClick:t[3]||(t[3]=i=>e.filtersExpanded=!e.filtersExpanded)},[...t[30]||(t[30]=[b("Filters",-1),o("svg",{class:"project-type-svg","aria-hidden":"true"},[o("use",{href:"#project-icon-filter"})],-1)])],8,kA),o("div",{id:"dashboard-filter-controls",class:A(["dashboard-filter-controls",{expanded:e.filtersExpanded}])},[o("div",EA,[o("button",{type:"button",class:A(["btn",{"btn-primary":e.typeFilter==="all"}]),onClick:t[4]||(t[4]=i=>e.typeFilter="all"),"aria-pressed":e.typeFilter==="all"},"All",10,CA),o("button",{type:"button",class:A(["btn dashboard-type-filter",{"btn-primary":e.typeFilter==="repo"}]),title:"Repositories",onClick:t[5]||(t[5]=i=>e.typeFilter="repo"),"aria-pressed":e.typeFilter==="repo"},[...t[31]||(t[31]=[o("svg",{class:"project-type-svg","aria-hidden":"true"},[o("use",{href:"#project-type-repo"})],-1),o("span",{class:"type-filter-label"},"Repos",-1)])],10,_A),o("button",{type:"button",class:A(["btn dashboard-type-filter",{"btn-primary":e.typeFilter==="pr"}]),title:"Pull requests",onClick:t[6]||(t[6]=i=>e.typeFilter="pr"),"aria-pressed":e.typeFilter==="pr"},[...t[32]||(t[32]=[o("svg",{class:"project-type-svg","aria-hidden":"true"},[o("use",{href:"#project-type-pr"})],-1),o("span",{class:"type-filter-label"},"PRs",-1)])],10,SA),o("button",{type:"button",class:A(["btn dashboard-type-filter",{"btn-primary":e.typeFilter==="gist"}]),title:"Gists",onClick:t[7]||(t[7]=i=>e.typeFilter="gist"),"aria-pressed":e.typeFilter==="gist"},[...t[33]||(t[33]=[o("svg",{class:"project-type-svg","aria-hidden":"true"},[o("use",{href:"#project-type-gist"})],-1),o("span",{class:"type-filter-label"},"Gists",-1)])],10,NA)]),o("div",{id:"dashboard-extra-filters",class:A(["dashboard-extra-filters",{expanded:e.filtersExpanded}])},[o("div",DA,[o("button",RA,[t[35]||(t[35]=o("span",{class:"filter-btn-label"},"Sort",-1)),o("span",TA,c(e.sortLabel()),1),(l(),d("svg",{class:A(["project-type-svg sort-direction",{ascending:!e.sortDesc()}]),"aria-hidden":"true"},[...t[34]||(t[34]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)),o("span",AA,c(e.sortDesc()?"descending":"ascending"),1)]),o("div",OA,[t[36]||(t[36]=o("h6",{class:"dropdown-header"},"Order by",-1)),(l(!0),d(X,null,re(e.sortFields,(i,a,u)=>(l(),d("div",IA,[o("input",{class:"form-check-input",type:"radio",name:"sort",onClick:f=>e.setSort(a,i.defaultDesc),checked:e.isSortedBy(a),id:"sort-"+u},null,8,PA),o("label",{class:"form-check-label",for:"sort-"+u},c(i?.label),9,VA)]))),256)),t[37]||(t[37]=o("div",{class:"dropdown-divider"},null,-1)),o("button",{type:"button",class:"dropdown-item",onClick:t[8]||(t[8]=i=>e.toggleSortDirection())},c(e.sortDesc()?"Switch to ascending":"Switch to descending"),1)])]),o("div",qA,[o("button",MA,[t[38]||(t[38]=o("span",{class:"filter-btn-label"},"Status",-1)),e.hasHiddenStatus()?p("v-if",!0):(l(),d("span",$A,"All")),e.hasHiddenStatus()?(l(),d("span",LA,c(e.hiddenStatusCount())+" hidden",1)):p("v-if",!0)]),o("div",UA,[t[39]||(t[39]=o("h6",{class:"dropdown-header"},"Show statuses",-1)),(l(!0),d(X,null,re(e.statusKeyLabels,(i,a,u)=>(l(),d("div",FA,[N(o("input",{class:"form-check-input",type:"checkbox",id:"status-"+a},null,8,zA),[[r,{state:e.viewState,set:f=>{e.filters.status[a]=f},value:e.filters?.status[a],form:null,options:{}}]]),o("label",{class:"form-check-label",for:"status-"+a},c(i),9,HA)]))),256))])])],2)],2)],32)),[[n,e.viewState]]),p(" Result count + active filter chips "),e.loading?p("v-if",!0):(l(),d("div",BA,[o("div",jA,[o("button",{type:"button","aria-pressed":e.projectView==="all",onClick:t[10]||(t[10]=i=>e.setProjectView("all")),"aria-label":"All projects"},[...t[40]||(t[40]=[o("span",{class:"dashboard-view-long"},"All projects",-1),o("span",{class:"dashboard-view-short","aria-hidden":"true"},"All",-1)])],8,GA),o("button",{type:"button","aria-pressed":e.projectView==="attention",onClick:t[11]||(t[11]=i=>e.setProjectView("attention")),"aria-label":"Needs attention "+e.attentionCount()},[t[41]||(t[41]=o("span",{class:"dashboard-attention-prefix"},"Needs ",-1)),t[42]||(t[42]=o("span",null,"attention",-1)),t[43]||(t[43]=b()),o("span",{class:A(["attention-count",{"has-attention":e.attentionCount()>0}])},c(e.attentionCount()),3)],8,WA)]),o("span",KA,[(e.dashboardTotals?.filtered??e.filteredItems?.length)===(e.dashboardTotals?.total??e.items?.length)?(l(),d("span",YA,[b(c(e.fmt?.number(e.dashboardTotals?.total??e.items?.length))+" project",1),(e.dashboardTotals?.total??e.items?.length)!==1?(l(),d("span",JA,"s")):p("v-if",!0)])):(l(),d("span",QA,c(e.fmt?.number(e.dashboardTotals?.filtered??e.filteredItems?.length))+" of "+c(e.fmt?.number(e.dashboardTotals?.total??e.items?.length))+" shown",1))]),o("div",XA,[(l(!0),d(X,null,re(e.filters?.status,(i,a,u)=>(l(),d(X,null,[i===!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"},[b(c(e.statusKeyLabels[a])+" hidden",1),t[44]||(t[44]=o("svg",{class:"project-type-svg","aria-hidden":"true"},[o("use",{href:"#project-icon-close"})],-1))],8,ZA)):p("v-if",!0)],64))),256)),e.typeFilter!=="all"?(l(),d("button",{key:0,type:"button",class:"filter-chip",onClick:t[12]||(t[12]=i=>e.typeFilter="all"),"aria-label":"Show all project types"},[b(c(e.typeFilter==="repo"?"Repositories":e.typeFilter==="pr"?"Pull requests":"Gists"),1),t[45]||(t[45]=o("svg",{class:"project-type-svg","aria-hidden":"true"},[o("use",{href:"#project-icon-close"})],-1))])):p("v-if",!0),e.showClearFilters()?(l(),d("button",{key:1,type:"button",class:"btn-link-inline",onClick:t[13]||(t[13]=i=>e.clearFilters())},"Clear filters")):p("v-if",!0)])]))]),p(" Table "),o("div",{class:"paper-table paper-table-dashboard",role:"table","aria-label":"Anonymizations","aria-busy":e.loading},[o("div",eO,[o("div",{role:"columnheader","aria-sort":e.isSortedBy("_label")?e.sortDesc()?"descending":"ascending":"none"},[o("button",{type:"button",class:A(["sortable",{active:e.isSortedBy("_label")}]),onClick:t[14]||(t[14]=i=>e.setSort("_label"))},[t[47]||(t[47]=b(" Project ",-1)),e.isSortedBy("_label")?(l(),d("svg",{key:0,class:A(["project-type-svg sort-direction",{ascending:!e.sortDesc()}]),"aria-hidden":"true"},[...t[46]||(t[46]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):p("v-if",!0)],2)],8,tO),o("div",{role:"columnheader","aria-sort":e.isSortedBy("status")?e.sortDesc()?"descending":"ascending":"none"},[o("button",{type:"button",class:A(["sortable",{active:e.isSortedBy("status")}]),onClick:t[15]||(t[15]=i=>e.setSort("status"))},[t[49]||(t[49]=b(" Status ",-1)),e.isSortedBy("status")?(l(),d("svg",{key:0,class:A(["project-type-svg sort-direction",{ascending:!e.sortDesc()}]),"aria-hidden":"true"},[...t[48]||(t[48]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):p("v-if",!0)],2)],8,oO),o("div",{role:"columnheader",class:"num","aria-sort":e.isSortedBy("pageView")?e.sortDesc()?"descending":"ascending":"none"},[o("button",{type:"button",class:A(["sortable",{active:e.isSortedBy("pageView")}]),onClick:t[16]||(t[16]=i=>e.setSort("pageView"))},[t[51]||(t[51]=b(" Views ",-1)),e.isSortedBy("pageView")?(l(),d("svg",{key:0,class:A(["project-type-svg sort-direction",{ascending:!e.sortDesc()}]),"aria-hidden":"true"},[...t[50]||(t[50]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):p("v-if",!0)],2)],8,sO),o("div",{role:"columnheader","aria-sort":e.isSortedBy("options.expirationDate")?e.sortDesc()?"descending":"ascending":"none"},[o("button",{type:"button",class:A(["sortable",{active:e.isSortedBy("options.expirationDate")}]),onClick:t[17]||(t[17]=i=>e.setSort("options.expirationDate"))},[t[53]||(t[53]=b(" Expires ",-1)),e.isSortedBy("options.expirationDate")?(l(),d("svg",{key:0,class:A(["project-type-svg sort-direction",{ascending:!e.sortDesc()}]),"aria-hidden":"true"},[...t[52]||(t[52]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):p("v-if",!0)],2)],8,nO),t[54]||(t[54]=o("div",{role:"columnheader"},[o("span",{class:"sr-only"},"Actions")],-1))]),p(" Loading skeleton: keeps the layout stable while the three lists load "),(l(),d(X,null,re([1,2,3,4],(i,a)=>(l(),d(X,null,[e.loading?(l(),d("div",rO,[...t[55]||(t[55]=[o("div",{class:"cell-anon",role:"cell"},[o("span",{class:"skeleton skeleton-badge"}),o("div",{class:"anon-text"},[o("span",{class:"skeleton skeleton-line",style:{width:"38%"}}),o("span",{class:"skeleton skeleton-line skeleton-line-sm",style:{width:"56%"}})])],-1),o("div",{class:"cell-status",role:"cell"},[o("span",{class:"skeleton skeleton-line",style:{width:"60%"}})],-1),o("div",{class:"cell-views num",role:"cell"},[o("span",{class:"skeleton skeleton-line",style:{width:"40%"}})],-1),o("div",{class:"cell-expires",role:"cell"},[o("span",{class:"skeleton skeleton-line",style:{width:"55%"}})],-1),o("div",{class:"cell-actions",role:"cell"},null,-1)])])):p("v-if",!0)],64))),64)),(l(!0),d(X,null,re(e.filteredItems,(i,a)=>(l(),d(X,{key:i?._type+":"+(i?._id||a)},[e.loading?p("v-if",!0):(l(),d("div",{key:0,class:A(["paper-table-row",{"repo-inactive":i?._statusKey=="expired"||i?._statusKey=="removed","repo-error":i?.status=="error","row-clickable":!!i?._viewUrl}]),role:"row",onClick:u=>e.openItem(i,u)},[o("div",aO,[o("span",{class:"project-type-icon",role:"img","aria-label":i?._type==="repo"?"Repository":i?._type==="pr"?"Pull request":"Gist",title:i?._type==="repo"?"Repository":i?._type==="pr"?"Pull request":"Gist"},[(l(),d("svg",dO,[o("use",{href:"#project-type-"+i._type},null,8,uO)]))],8,lO),o("div",cO,[o("div",pO,[i?._viewUrl?(l(),d("a",{key:0,class:"repo-name",title:i._label,textContent:c(i?._label),href:e.safeUrl(i?._viewUrl)},null,8,fO)):p("v-if",!0),i?._viewUrl?p("v-if",!0):(l(),d("span",{key:1,class:"repo-name repo-name-static",textContent:c(i?._label)},null,8,mO)),i?.role==="coauthor"?(l(),d("span",hO,"Co-author")):p("v-if",!0)]),o("div",vO,[i?._id?(l(),d("code",{key:0,class:"anonymous-id",title:i._id},c(i._id),9,gO)):p("v-if",!0),i?._type==="repo"&&i?.source?.commit?(l(),d("span",{key:1,class:"commit-hash",title:i.source.commit},c(i.source.commit.substring(0,8)),9,yO)):p("v-if",!0),i?.conference?(l(),d("span",{key:2,class:"cell-conf conf-tag",title:i?.conference},[t[56]||(t[56]=o("svg",{class:"project-type-svg","aria-hidden":"true"},[o("use",{href:"#project-icon-conference"})],-1)),t[57]||(t[57]=b()),o("span",{textContent:c(i?.conference)},null,8,wO)],8,bO)):p("v-if",!0)])])]),o("div",kO,[o("div",EO,[o("div",CO,[o("span",{class:A(["status-dot","status-"+i?._statusKey]),"aria-hidden":"true"},null,2),o("span",{class:"status-word",textContent:c(e.fmt?.statusLabel(i?.status))},null,8,_O)]),i?.status=="error"&&i?.statusMessage?(l(),d("div",{key:0,class:"status-sub status-sub-error",textContent:c(e.fmt?.statusMsg(i?.statusMessage)),title:i?.statusMessage},null,8,SO)):p("v-if",!0),i?._stale?(l(),d("div",{key:1,class:"status-sub status-sub-warn",title:"Last activity "+e.fmt?.humanTime(i?.anonymizeDate||i?.lastView)}," Last activity "+c(e.fmt?.humanTime(i?.anonymizeDate||i?.lastView))+" \xB7 may be stuck ",9,NO)):p("v-if",!0),i.status==="error"&&i._editUrl?(l(),d("a",{key:2,class:"project-attention-action",href:e.safeUrl(i._editUrl)},"Fix source",8,DO)):p("v-if",!0),i._stale||i._broken?(l(),d("button",{key:3,type:"button",class:"project-attention-action",onClick:me(u=>e.showProjectDetails(i),["stop"])},c(i._broken?"Review details":"Check progress"),9,RO)):p("v-if",!0),i?.status!="error"&&!i?._stale&&i?.anonymizeDate?(l(),d("div",TO," anonymized "+c(e.fmt?.humanTime(i?.anonymizeDate)),1)):p("v-if",!0)]),o("div",{class:"cell-views num",role:"cell","aria-label":e.fmt.number(i.pageView)+" views"},[t[58]||(t[58]=o("svg",{class:"project-type-svg mobile-meta-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-eye"})],-1)),o("span",null,c(e.fmt.number(i.pageView)),1)],8,AO),o("div",OO,[t[59]||(t[59]=o("svg",{class:"project-type-svg mobile-meta-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-clock"})],-1)),i?._expiry?.kind==="never"?(l(),d("span",IO,"Never")):p("v-if",!0),i?._expiry?.kind==="date"?(l(),d("span",{key:1,textContent:c(e.fmt?.humanTime(i?._expiry?.date))},null,8,PO)):p("v-if",!0),i?._expiry?.kind==="expired"&&i?._expiry?.date?(l(),d("span",VO,"Expired "+c(e.fmt?.humanTime(i?._expiry?.date)),1)):p("v-if",!0),i?._expiry?.kind==="expired"&&!i?._expiry?.date?(l(),d("span",qO,"Expired")):p("v-if",!0),i?._expiry?.kind==="none"?(l(),d("span",MO,"\u2014")):p("v-if",!0)])]),o("div",$O,[i._viewUrl?(l(),d("button",{key:0,type:"button",class:"copy-link-inline",onClick:me(u=>e.copyLink(i),["stop"]),disabled:!!e.copyingId,title:"Copy anonymous link for "+i._label,"aria-label":"Copy anonymous link for "+i._label},[...t[60]||(t[60]=[o("svg",{class:"project-type-svg","aria-hidden":"true"},[o("use",{href:"#project-icon-copy"})],-1)])],8,LO)):p("v-if",!0),i._broken?(l(),d("button",{key:1,type:"button",class:"project-details-button",onClick:me(u=>e.showProjectDetails(i),["stop"]),"data-project-actions":encodeURIComponent(i._type+":"+i._id),"aria-controls":e.projectDetailsId(i),"aria-expanded":e.selectedProject===i},"Details",8,UO)):p("v-if",!0),i?._broken?p("v-if",!0):(l(),d("div",FO,[o("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","data-project-actions":encodeURIComponent(i._type+":"+i._id),"aria-label":"Actions for "+i?._name},[...t[61]||(t[61]=[o("svg",{class:"project-type-svg","aria-hidden":"true"},[o("use",{href:"#project-icon-more"})],-1)])],8,zO),o("div",HO,[o("button",{type:"button",class:"dropdown-item",onClick:u=>e.showProjectDetails(i),"aria-controls":e.projectDetailsId(i),"aria-expanded":e.selectedProject===i},"Project details & name",8,BO),o("a",{class:"dropdown-item",href:e.safeUrl(i?._viewUrl)}," View ",8,jO),i?._type==="repo"&&i?.options?.page&&i?.status=="ready"?(l(),d("a",{key:0,class:"dropdown-item",target:"_self",href:e.safeUrl("/w/"+i?.repoId+"/")}," View page ",8,GO)):p("v-if",!0),i?._viewUrl?(l(),d("button",{key:1,type:"button",class:"dropdown-item",onClick:u=>e.copyLink(i),disabled:!!e.copyingId}," Copy anonymous link ",8,WO)):p("v-if",!0),o("a",{class:"dropdown-item",href:e.safeUrl(i?._editUrl)}," Edit ",8,KO),i?.status=="ready"||i?.status=="error"?(l(),d("button",{key:2,type:"button",class:"dropdown-item",onClick:u=>e.refreshItem(i)}," Force update ",8,YO)):p("v-if",!0),i?.status=="removed"?(l(),d("button",{key:3,type:"button",class:"dropdown-item",onClick:u=>e.refreshItem(i)}," Enable ",8,JO)):p("v-if",!0),i?.status=="expired"?(l(),d("button",{key:4,type:"button",class:"dropdown-item",onClick:u=>e.extendItem(i)}," Extend 6 months ",8,QO)):p("v-if",!0),(i?.status=="ready"||i?.status=="expired"||i?.status=="error")&&i?.role!=="coauthor"?(l(),d("div",XO,[t[62]||(t[62]=o("div",{class:"dropdown-divider"},null,-1)),o("button",{type:"button",class:"dropdown-item dropdown-item-danger",onClick:u=>e.removeItem(i)}," Remove ",8,ZO)])):p("v-if",!0)])]))])],10,iO)),!e.loading&&e.selectedProject===i?(l(),d("div",xO,[o("div",{class:"project-details",role:"cell","aria-colspan":"5",id:e.projectDetailsId(i),tabindex:"-1",onKeydown:Ro(me(u=>e.closeProjectDetails(i),["stop"]),["esc"])},[o("div",t4,[t[64]||(t[64]=o("h2",null,"Project details",-1)),o("button",{type:"button",class:"project-close",onClick:u=>e.closeProjectDetails(i),"aria-label":"Close project details"},[...t[63]||(t[63]=[o("svg",{class:"project-type-svg","aria-hidden":"true"},[o("use",{href:"#project-icon-close"})],-1)])],8,o4)]),o("dl",s4,[o("div",null,[t[65]||(t[65]=o("dt",null,"Source",-1)),o("dd",null,c(i._source||"Not available"),1)]),o("div",null,[t[66]||(t[66]=o("dt",null,"Anonymous ID",-1)),o("dd",null,[o("code",null,c(i._id||"Missing identifier"),1)])]),i.source?.commit?(l(),d("div",n4,[t[67]||(t[67]=o("dt",null,"Commit",-1)),o("dd",null,[o("code",null,c(i.source.commit),1)])])):p("v-if",!0),i.conference?(l(),d("div",r4,[t[68]||(t[68]=o("dt",null,"Conference",-1)),o("dd",null,c(i.conference),1)])):p("v-if",!0),o("div",null,[t[69]||(t[69]=o("dt",null,"Status",-1)),o("dd",null,[b(c(e.fmt.statusLabel(i.status)),1),i.statusMessage?(l(),d("span",i4," \xB7 "+c(e.fmt.statusMsg(i.statusMessage)),1)):p("v-if",!0)])]),i.anonymizeDate?(l(),d("div",a4,[t[70]||(t[70]=o("dt",null,"Last anonymized",-1)),o("dd",null,c(e.fmt.humanTime(i.anonymizeDate)),1)])):p("v-if",!0)]),i._stale?(l(),d("p",l4,"This download has not progressed recently. Check the source access and selected branch before retrying.")):p("v-if",!0),i._editUrl?(l(),d("a",{key:1,class:"project-attention-action",href:e.safeUrl(i._editUrl)},c(e.needsAttention(i)?"Check source settings":"Edit anonymization settings"),9,d4)):p("v-if",!0),i._id?(l(),d("form",{key:2,class:"project-name-form",onSubmit:me(u=>e.saveProjectName(i),["prevent"])},[o("label",{for:"project-name-"+i._type+"-"+i._id},"Project name",8,c4),o("p",{id:"project-name-help-"+i._type+"-"+i._id},"Only you see this name. Leave it blank to use the default.",8,p4),o("div",f4,[N(o("input",{class:"form-control",type:"text",id:"project-name-"+i._type+"-"+i._id,"aria-describedby":"project-name-help-"+i._type+"-"+i._id,maxlength:"100","onUpdate:modelValue":t[18]||(t[18]=u=>e.projectName=u),disabled:e.nameSaving},null,8,m4),[[ea,e.projectName]]),o("button",{class:"btn btn-ink",type:"submit",disabled:e.nameSaving},c(e.nameSaving?"Saving\u2026":"Save name"),9,h4)]),e.nameError?(l(),d("p",v4,c(e.nameError),1)):p("v-if",!0),e.nameMessage?(l(),d("p",g4,c(e.nameMessage),1)):p("v-if",!0)],40,u4)):p("v-if",!0)],40,e4)])):p("v-if",!0)],64))),128)),!e.loading&&e.filteredItems?.length==0?(l(),d("div",y4,[t[72]||(t[72]=o("svg",{class:"project-type-svg project-empty-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-inbox"})],-1)),e.hasProjects()?p("v-if",!0):(l(),d("span",b4,"You have no anonymizations yet.")),e.hasProjects()?(l(),d("span",w4,"Nothing matches the current filters.")):p("v-if",!0),o("div",k4,[e.hasActiveFilters()?(l(),d("button",{key:0,type:"button",class:"btn btn-outline-ink",onClick:t[19]||(t[19]=i=>e.clearFilters())},"Clear filters")):p("v-if",!0),e.hasProjects()?p("v-if",!0):(l(),d("a",E4,[...t[71]||(t[71]=[o("svg",{class:"project-type-svg","aria-hidden":"true"},[o("use",{href:"#project-icon-plus"})],-1),b(" New anonymization",-1)])]))])])):p("v-if",!0)],8,xA)]),e.dashboardCursor||e.dashboardError?(l(),d("div",C4,[e.dashboardError?(l(),d("p",_4,c(e.dashboardError),1)):p("v-if",!0),e.dashboardCursor?(l(),d("button",{key:1,type:"button",class:"btn",onClick:t[20]||(t[20]=i=>e.loadMoreProjects()),disabled:e.loadingMore},c(e.loadingMore?"Loading\u2026":"Load more projects"),9,S4)):p("v-if",!0)])):p("v-if",!0)])}var N4={class:"explorer-page"},D4=["aria-label"],R4={class:"ui-icon","aria-hidden":"true"},T4=["href"],A4=["textContent"],O4={class:"leftCol-head"},I4={class:"leftCol-search"},P4={class:"tree-search-box"},V4=["href"],q4={type:"text",class:"tree-search-input",placeholder:"Search files","aria-label":"Search files"},M4={class:"leftCol-project-header"},$4=["textContent","title"],L4={class:"project-file-count"},U4=["title"],F4={class:"leftCol-body"},z4={key:0,class:"paper-inline-warning",role:"alert"},H4={key:1,class:"paper-inline-warning",role:"alert"},B4={class:"leftCol-foot"},j4=["title"],G4=["title"],W4=["title"],K4={key:2,class:"last-update",title:"Older repositories have no recorded publication date. The source commit date does not establish when files became available here."},Y4={class:"explorer-main"},J4={class:"status-bar"},Q4={class:"breadcrumb paths","aria-label":"Path"},X4=["textContent"],Z4={class:"status-bar-actions"},x4=["href"],eI={class:"d-none d-md-inline"},tI={class:"ui-icon","aria-hidden":"true"},oI=["href"],sI={class:"d-none d-md-inline"},nI=["href"],rI=["href"],iI=["href"],aI=["href"],lI={class:"explorer-content"};function Rl(e,t){let s=We("tree"),r=We("partial-view"),n=be("field");return l(),d("div",N4,[N(o("button",{class:"sidebar-toggle",onClick:t[0]||(t[0]=i=>e.sidebarCollapsed=!e.sidebarCollapsed),"aria-label":e.sidebarCollapsed?"Show files":"Hide files"},[(l(),d("svg",R4,[o("use",{href:e.sidebarCollapsed?"#ui-icon-folder":"#project-icon-close"},null,8,T4)])),o("span",{textContent:c(e.sidebarCollapsed?"Files":"Close")},null,8,A4)],8,D4),[[W,e.files?.length]]),N(o("div",{class:A(["leftCol",{collapsed:e.sidebarCollapsed}])},[o("div",O4,[t[7]||(t[7]=o("span",{class:"leftCol-eyebrow"},"Files",-1)),o("button",{class:"leftCol-close","aria-label":"Close files",onClick:t[1]||(t[1]=i=>e.sidebarCollapsed=!0)},[...t[6]||(t[6]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-close"})],-1)])])]),o("div",I4,[o("div",P4,[(l(),d("svg",{class:A(["ui-icon tree-search-icon",{"fa-spin":e.fileSearchLoading}]),"aria-hidden":"true"},[o("use",{href:e.fileSearchLoading?"#ui-icon-spinner":"#ui-icon-search"},null,8,V4)],2)),N(o("input",q4,null,512),[[n,{state:e.viewState,set:i=>{e.fileSearchQuery=i},value:e.fileSearchQuery,form:null,options:{debounce:300},change:()=>{e.onFileSearchChange()}}]]),N(o("kbd",{class:"tree-search-kbd"},c(e.isMac?"\u2318":"Ctrl+")+"K",513),[[W,!e.fileSearchQuery]]),N(o("button",{class:"tree-search-clear","aria-label":"Clear search",onClick:t[2]||(t[2]=i=>{e.fileSearchQuery="",e.onFileSearchChange()})},"\xD7",512),[[W,e.fileSearchQuery]])])]),o("div",M4,[o("span",{class:"project-name",textContent:c(e.repoId),title:e.repoId},null,8,$4),o("span",L4,c(e.fileCounts?.[""]||e.files?.length)+" files",1),e.options?.expirationDate?(l(),d("span",{key:0,class:"project-expiry",title:e.options.expirationDate},[t[8]||(t[8]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-clock"})],-1)),b(" Available until "+c(e.fmt?.date(e.options.expirationDate)),1)],8,U4)):p("v-if",!0)]),o("div",F4,[e.options?.truncatedFolders?.length>0?(l(),d("div",z4,[t[9]||(t[9]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-warning"})],-1)),b(" "+c(e.fmt?.translate("WARNINGS.repo_truncated")),1)])):p("v-if",!0),e.options?.hasSubmodules?(l(),d("div",H4,[t[10]||(t[10]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-warning"})],-1)),b(" "+c(e.fmt?.translate("WARNINGS.submodules_not_included")),1)])):p("v-if",!0),Ce(s,{class:"files",file:e.files,"search-query":e.fileSearchQuery,"search-results":e.fileSearchResults,page:e.viewState},null,8,["file","search-query","search-results","page"])]),o("div",B4,[o("span",{class:"last-update",title:e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate},c(e.options?.sourceCommitDate?"Source commit":e.options?.anonymizedAt?"Anonymized":"Updated")+" "+c(e.fmt?.date(e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate)),9,j4),e.options?.settingsSavedAt?(l(),d("span",{key:0,class:"last-update",title:e.options.settingsSavedAt}," Settings saved "+c(e.fmt?.date(e.options.settingsSavedAt)),9,G4)):p("v-if",!0),e.options?.publishedAt?(l(),d("span",{key:1,class:"last-update",title:e.options.publishedAt}," Snapshot ready "+c(e.fmt?.date(e.options.publishedAt)),9,W4)):p("v-if",!0),e.options?.anonymizedAt&&!e.options?.publishedAt?(l(),d("span",K4," Snapshot ready date not recorded ")):p("v-if",!0)])],2),[[W,e.files?.length]]),N(o("div",{class:"leftCol-backdrop",onClick:t[3]||(t[3]=i=>e.sidebarCollapsed=!0)},null,512),[[W,e.files?.length&&!e.sidebarCollapsed]]),o("div",Y4,[N(o("div",J4,[o("ol",Q4,[(l(!0),d(X,null,re(e.paths,(i,a)=>(l(),d("li",{class:"breadcrumb-item",textContent:c(i)},null,8,X4))),256))]),o("div",Z4,[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[11]||(t[11]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-edit"})],-1),o("span",{class:"d-none d-md-inline"}," Edit",-1)])],8,x4)):p("v-if",!0),e.type=="html-doc"&&!e.showSource?(l(),d("button",{key:1,class:A(["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[4]||(t[4]=i=>e.toggleAllowScripts())},[t[12]||(t[12]=o("i",{class:"fab fa-js"},null,-1)),o("span",eI,c(e.allowScripts?"JS on":"JS off"),1)],2)):p("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[5]||(t[5]=i=>e.toggleSource())},[(l(),d("svg",tI,[o("use",{href:e.showSource?"#project-icon-eye":"#ui-icon-code"},null,8,oI)])),o("span",sI,c(e.showSource?"Rendered":"Source"),1)])):p("v-if",!0),N(o("a",{target:"_self",class:"btn btn-sm btn-icon-only","aria-label":"View raw current file",title:"View raw file",href:e.safeUrl(e.url)},[...t[13]||(t[13]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-file"})],-1)])],8,nI),[[W,e.content!=null&&e.type!="error"&&e.type!="rate_limited"]]),N(o("a",{target:"_self",class:"btn btn-sm btn-icon-only","aria-label":"Download current file",title:"Download this file",href:e.safeUrl(e.url+"&download=true")},[...t[14]||(t[14]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-download"})],-1)])],8,rI),[[W,e.content!=null&&e.type!="error"&&e.type!="rate_limited"]]),e.options?.download?(l(),d("a",{key:3,target:"_self",class:"btn btn-sm btn-ink","aria-label":"Download repository as ZIP",title:"Download the whole repository as a ZIP archive",href:e.safeUrl("/api/repo/"+e.repoId+"/zip")},[...t[15]||(t[15]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-archive"})],-1),o("span",{class:"d-none d-md-inline"}," Download repository",-1)])],8,iI)):p("v-if",!0),e.options?.hasWebsite?(l(),d("a",{key:4,target:"_self",class:"btn btn-sm","aria-label":"Website",href:e.safeUrl("/w/"+e.repoId+"/")},[...t[16]||(t[16]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-globe"})],-1),o("span",{class:"d-none d-md-inline"}," Website",-1)])],8,aI)):p("v-if",!0)])],512),[[W,e.type!="error"||e.files?.length]]),o("div",lI,[Ce(r,{name:"partials/pageView.htm",state:e.viewState},null,8,["state"])])])])}var dI={class:"paper-faq"};function Tl(e,t){return l(),d("div",dI,[...t[0]||(t[0]=[ce('<div class="paper-faq-hero"><div class="paper-faq-eyebrow">Help</div><h1 class="paper-faq-title">Answers to the <em>questions</em> that come up most.</h1><p class="paper-faq-lede"> If something&#39;s missing, write to us \u2014 <a href="https://github.com/tdurieux/anonymous_github/issues/new?template=issue_report.yml" target="_blank" rel="noopener">report a bug on GitHub</a>. </p></div>',1),o("div",{class:"paper-faq-body"},[o("aside",{class:"paper-faq-toc"},[o("div",{class:"paper-faq-toc-head"},"Contents"),o("nav",null,[o("a",{href:"#faq-general"},"General"),o("a",{href:"#faq-features"},"Features"),o("a",{href:"#faq-limitations"},"Limitations"),o("a",{href:"#faq-privacy"},"Privacy & Security"),o("a",{href:"#faq-hosting"},"Self-Hosting")])]),o("section",{class:"faq-section","aria-label":"FAQs"},[o("div",null,[p(" General "),o("h4",{class:"faq-cat"},[o("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[o("use",{href:"#ui-icon-info"})]),b("General ")]),o("div",{class:"panel-group",id:"faq-general",role:"tablist","aria-multiselectable":"true"},[o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingWhatIs"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-general",href:"#whatIs","aria-expanded":"false","aria-controls":"whatIs"}," What is Anonymous GitHub? ")])]),o("div",{id:"whatIs",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingWhatIs"},[o("div",{class:"panel-body p-3"},[o("p",null," Anonymous GitHub is a free, open-source tool that anonymizes GitHub repositories and pull requests for double-anonymous (double-blind) peer review. It replaces identifying information \u2014 such as the repository owner, organization name, and custom terms \u2014 so that reviewers cannot determine the identity of the authors through the code repository. ")])])]),o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingHowWork"},[o("h3",{class:"panel-title"},[o("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? ")])]),o("div",{id:"howWork",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingHowWork"},[o("div",{class:"panel-body p-3"},[o("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. ")])])]),o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingScope"},[o("h3",{class:"panel-title"},[o("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? ")])]),o("div",{id:"scope",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingScope"},[o("div",{class:"panel-body p-3"},[o("p",null," In double-anonymous peer review, the boundary of anonymization is the paper plus its online appendix \u2014 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. ")])])]),o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingCost"},[o("h3",{class:"panel-title"},[o("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? ")])]),o("div",{id:"cost",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingCost"},[o("div",{class:"panel-body p-3"},[o("p",null,[b(" Anonymous GitHub is completely free to use. However, the server costs hundreds of dollars per year to maintain. If you find the service useful, a small donation would be greatly appreciated. You can support the project by "),o("a",{href:"https://github.com/sponsors/tdurieux/",target:"_blank"},"sponsoring on GitHub"),b(", donating through "),o("a",{href:"https://ko-fi.com/tdurieux",target:"_blank"},"Ko-fi"),b(', or by clicking the "Support me" button on the site. ')])])])])]),p(" Features "),o("h4",{class:"faq-cat"},[o("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[o("use",{href:"#project-icon-filter"})]),b("Features ")]),o("div",{class:"panel-group",id:"faq-features",role:"tablist","aria-multiselectable":"true"},[o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingFormats"},[o("h3",{class:"panel-title"},[o("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? ")])]),o("div",{id:"formats",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingFormats"},[o("div",{class:"panel-body p-3"},[o("p",null," Anonymous GitHub can display and render a wide variety of file types: "),o("ul",null,[o("li",null,[o("strong",null,"Text and source code"),b(" \u2014 displayed with syntax highlighting")]),o("li",null,[o("strong",null,"Markdown"),b(" \u2014 rendered as formatted HTML")]),o("li",null,[o("strong",null,"Images"),b(" (PNG, JPG, SVG, etc.) \u2014 displayed inline")]),o("li",null,[o("strong",null,"PDFs"),b(" \u2014 rendered directly in the browser")]),o("li",null,[o("strong",null,"Jupyter Notebooks"),b(" \u2014 rendered with code cells and outputs")])]),o("p",null," Only text-based files are anonymized. Anonymous GitHub analyzes the content of each file to determine whether it is textual or binary. ")])])]),o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingPR"},[o("h3",{class:"panel-title"},[o("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? ")])]),o("div",{id:"pullRequests",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingPR"},[o("div",{class:"panel-body p-3"},[o("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. ")])])]),o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingConference"},[o("h3",{class:"panel-title"},[o("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? ")])]),o("div",{id:"conference",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingConference"},[o("div",{class:"panel-body p-3"},[o("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. ")])])]),o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingExpiration"},[o("h3",{class:"panel-title"},[o("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? ")])]),o("div",{id:"expiration",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingExpiration"},[o("div",{class:"panel-body p-3"},[o("p",null," You can configure one of three expiration strategies when creating your anonymized repository: "),o("ul",null,[o("li",null,[o("strong",null,"Never expire"),b(" \u2014 the anonymized repository remains accessible indefinitely.")]),o("li",null,[o("strong",null,"Redirect to GitHub"),b(" \u2014 after expiration, visitors are redirected to the original GitHub repository.")]),o("li",null,[o("strong",null,"Remove content"),b(" \u2014 after expiration, the anonymized content is deleted from the server.")])])])])]),o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingDownload"},[o("h3",{class:"panel-title"},[o("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? ")])]),o("div",{id:"download",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingDownload"},[o("div",{class:"panel-body p-3"},[o("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. ")])])]),o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingUpdates"},[o("h3",{class:"panel-title"},[o("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? ")])]),o("div",{id:"updates",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingUpdates"},[o("div",{class:"panel-body p-3"},[o("p",null," Yes. The anonymized repository tracks the source on GitHub: when you push new commits to the original repository, the anonymized view picks up those changes (cached files are refreshed against GitHub). This means you can keep iterating on the code while reviewers have the link, and you do not need to recreate the anonymized repository every time you update the source. "),o("p",null," A few practical implications worth keeping in mind: "),o("ul",null,[o("li",null," You can safely create the anonymized repository early in the writing process \u2014 later commits will be visible to reviewers without any additional action. "),o("li",null," If you rename files, add new identifiers, or introduce new contributor names after creation, revisit the anonymization options (custom terms, file filters) to make sure the new content is still properly anonymized. "),o("li",null," If the original repository is made private or deleted, the anonymized repository will no longer be able to fetch updated content. ")])])])]),o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingCLI"},[o("h3",{class:"panel-title"},[o("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? ")])]),o("div",{id:"cli",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingCLI"},[o("div",{class:"panel-body p-3"},[o("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: "),o("pre",{style:{"background-color":"var(--hover-bg-color)",padding:"12px","border-radius":"4px","margin-top":"8px",color:"var(--color)"}},[o("code",null,`npm install -g @tdurieux/anonymous_github
anonymous_github`)])])])])]),p(" Limitations "),o("h4",{class:"faq-cat"},[o("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[o("use",{href:"#ui-icon-warning"})]),b("Limitations ")]),o("div",{class:"panel-group",id:"faq-limitations",role:"tablist","aria-multiselectable":"true"},[o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingLimitation"},[o("h3",{class:"panel-title"},[o("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? ")])]),o("div",{id:"limitation",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingLimitation"},[o("div",{class:"panel-body p-3"},[o("ul",null,[o("li",null," Anonymous GitHub only anonymizes text-based files. Binary files (compiled executables, archives, etc.) are served as-is without anonymization. "),o("li",null," Files larger than 8 MB are not supported. "),o("li",null," Static site generators (such as Jekyll) used with GitHub Pages are not fully supported, although Markdown files are converted to HTML. "),o("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). ")])])])])]),p(" Privacy & Security "),o("h4",{class:"faq-cat"},[o("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})]),b("Privacy & Security ")]),o("div",{class:"panel-group",id:"faq-privacy",role:"tablist","aria-multiselectable":"true"},[o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingData"},[o("h3",{class:"panel-title"},[o("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? ")])]),o("div",{id:"data",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingData"},[o("div",{class:"panel-body p-3"},[o("p",null," Data stored on Anonymous GitHub is never shared or used for any purpose beyond providing the anonymization service. When a repository is removed or expires, only its configuration is retained \u2014 this makes it easy to restore the repository if needed and ensures that no future repository reuses the same ID. ")])])]),o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingPermissions"},[o("h3",{class:"panel-title"},[o("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? ")])]),o("div",{id:"permissions",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingPermissions"},[o("div",{class:"panel-body p-3"},[o("p",null,[b("The GitHub App has read-only access to the repositories you choose. You can change repository access on your "),o("a",{href:"/connections"},"GitHub connections"),b(" page.")]),o("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."),o("p",null,"Anonymous GitHub reads repository content. It never pushes, modifies, or deletes files on GitHub.")])])]),o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingViewer"},[o("h3",{class:"panel-title"},[o("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? ")])]),o("div",{id:"viewer",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingViewer"},[o("div",{class:"panel-body p-3"},[o("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. ")])])])]),p(" Self-Hosting "),o("h4",{class:"faq-cat"},[o("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[o("use",{href:"#project-icon-storage"})]),b("Self-Hosting ")]),o("div",{class:"panel-group",id:"faq-hosting",role:"tablist","aria-multiselectable":"true"},[o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingDeploy"},[o("h3",{class:"panel-title"},[o("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? ")])]),o("div",{id:"deploy",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingDeploy"},[o("div",{class:"panel-body p-3"},[o("p",null,[b(" Yes. Anonymous GitHub is fully open source (GPL-3.0) and supports Docker-based deployment. You will need to configure a GitHub OAuth app and provide a GitHub token. Detailed setup instructions are available on the "),o("a",{href:"https://github.com/tdurieux/anonymous_github/",target:"_blank"},"GitHub repository"),b(". ")]),o("p",null," The basic steps are: "),o("ol",null,[o("li",null,"Clone the repository and install dependencies"),o("li",null,[b("Create a "),o("code",null,".env"),b(" file with your GitHub token, OAuth client ID, and client secret")]),o("li",null,[b("Run "),o("code",null,"docker-compose up -d")])])])])])]),o("div",{class:"text-center mt-5 mb-5 p-4",style:{"background-color":"var(--hover-bg-color)","border-radius":"8px"}},[o("p",{class:"mb-2",style:{"font-size":"1.1rem"}}," Still have questions? "),o("p",{class:"text-muted mb-0"},[b(" Open an issue on the "),o("a",{href:"https://github.com/tdurieux/anonymous_github/issues",target:"_blank"},"GitHub repository"),b(" and we'll be happy to help. ")])])])])],-1)])])}var uI={class:"pr-page"},cI={class:"container paper-page pr-page-inner"},pI={class:"pr-header"},fI={class:"pr-title-row"},mI={class:"paper-page-title pr-title"},hI=["textContent"],vI={key:1,class:"text-muted"},gI=["href"],yI={class:"pr-header-meta"},bI={key:0,class:"pr-meta-item"},wI=["textContent"],kI={key:1,class:"pr-meta-item"},EI=["textContent"],CI={key:2,class:"pr-meta-item"},_I=["textContent"],SI={key:0,class:"paper-tabs",role:"tablist"},NI=["aria-selected","tabindex"],DI=["textContent"],RI=["aria-selected","tabindex"],TI=["textContent"],AI={class:"paper-tab-content"},OI={key:0,role:"tabpanel",id:"gist-files-panel","aria-labelledby":"gist-files-tab"},II={class:"pr-comments"},PI={class:"pr-comment"},VI={class:"pr-comment-head"},qI=["textContent"],MI={key:0,class:"pr-comment-date"},$I={key:0,class:"paper-table-empty"},LI={key:1,role:"tabpanel",id:"gist-comments-panel","aria-labelledby":"gist-comments-tab"},UI={class:"pr-comments"},FI={class:"pr-comment"},zI={class:"pr-comment-head"},HI={key:0,class:"pr-comment-author"},BI=["textContent"],jI=["textContent"],GI={key:0,class:"pr-comment-body"},WI={key:0,class:"paper-table-empty"};function Al(e,t){let s=We("gist-file"),r=We("markdown");return l(),d("div",uI,[o("div",cI,[t[17]||(t[17]=o("div",{class:"paper-crumbs"},[o("a",{href:"/dashboard"},"Reviewer"),b(" \xA0/\xA0 "),o("span",{class:"here"},"Gist")],-1)),o("header",pI,[o("div",fI,[o("h1",mI,[e.details?.description?(l(),d("span",{key:0,textContent:c(e.details?.description)},null,8,hI)):p("v-if",!0),e.details?.description?p("v-if",!0):(l(),d("span",vI,"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]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-edit"})],-1),o("span",{class:"d-none d-md-inline"}," Edit",-1)])],8,gI)):p("v-if",!0)]),o("div",yI,[o("span",{class:A(["paper-pill",{good:e.details?.isPublic,warn:!e.details?.isPublic}])},c(e.details?.isPublic?"Public":"Secret"),3),e.details?.ownerLogin?(l(),d("span",bI,[t[5]||(t[5]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-user"})],-1)),t[6]||(t[6]=b(" @",-1)),o("span",{textContent:c(e.details?.ownerLogin)},null,8,wI)])):p("v-if",!0),e.details?.updatedDate?(l(),d("span",kI,[t[7]||(t[7]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-clock"})],-1)),t[8]||(t[8]=b()),o("span",{textContent:c(e.fmt?.date(e.details?.updatedDate))},null,8,EI)])):p("v-if",!0),e.details?.anonymizeDate?(l(),d("span",CI,[t[9]||(t[9]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})],-1)),t[10]||(t[10]=b(" Anonymized ",-1)),o("span",{textContent:c(e.fmt?.date(e.details?.anonymizeDate))},null,8,_I)])):p("v-if",!0)])]),e.details?.files&&e.details?.files?.length||e.details?.comments&&e.details?.comments?.length?(l(),d("nav",SI,[e.details?.files?(l(),d("button",{key:0,class:A(["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]=n=>e.previewTabKeydown(n)),onClick:t[1]||(t[1]=n=>e.tabState.active="files")},[t[11]||(t[11]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-type-gist"})],-1)),o("span",{textContent:c(e.fmt.plural(e.details?.files?.length,{0:"No files",one:"1 file",other:"{} files"}))},null,8,DI)],42,NI)):p("v-if",!0),e.details?.comments?(l(),d("button",{key:1,class:A(["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]=n=>e.previewTabKeydown(n)),onClick:t[3]||(t[3]=n=>e.tabState.active="comments")},[t[12]||(t[12]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-comment"})],-1)),o("span",{textContent:c(e.fmt.plural(e.details?.comments?.length,{0:"No comments",one:"1 comment",other:"{} comments"}))},null,8,TI)],42,RI)):p("v-if",!0)])):p("v-if",!0),o("div",AI,[e.details?.files&&e.tabState?.active=="files"?(l(),d("div",OI,[o("ul",II,[(l(!0),d(X,null,re(e.details?.files,(n,i)=>(l(),d("li",PI,[o("div",VI,[o("strong",{textContent:c(n?.filename)},null,8,qI),n?.language?(l(),d("span",MI,c(n?.language),1)):p("v-if",!0)]),Ce(s,{file:n},null,8,["file"])]))),256)),e.details?.files?.length?p("v-if",!0):(l(),d("li",$I,[...t[13]||(t[13]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-file"})],-1),o("span",null,"No files in this gist.",-1)])]))])])):p("v-if",!0),e.details?.comments&&e.tabState?.active=="comments"?(l(),d("div",LI,[o("ul",UI,[(l(!0),d(X,null,re(e.details?.comments,(n,i)=>(l(),d("li",FI,[o("div",zI,[n?.author?(l(),d("span",HI,[t[14]||(t[14]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-user"})],-1)),t[15]||(t[15]=b(" @",-1)),o("span",{textContent:c(n?.author)},null,8,BI)])):p("v-if",!0),n?.updatedDate?(l(),d("span",{key:1,class:"pr-comment-date",textContent:c(e.fmt?.date(n?.updatedDate))},null,8,jI)):p("v-if",!0)]),n?.body?(l(),d("div",GI,[Ce(r,{content:n?.body},null,8,["content"])])):p("v-if",!0)]))),256)),e.details?.comments?.length?p("v-if",!0):(l(),d("li",WI,[...t[16]||(t[16]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-comment"})],-1),o("span",null,"No comments on this gist.",-1)])]))])])):p("v-if",!0)])])])}var KI={class:"collapse navbar-collapse",id:"navbarSupportedContent"},YI={class:"navbar-nav mr-auto smooth-scroll"},JI={key:0,class:"nav-item"},QI={key:1,class:"nav-item"},XI={key:2,class:"nav-item"},ZI={key:3,class:"nav-item"},xI={class:"nav-item"},e3={key:4,class:"nav-item"},t3={class:"navbar-nav"},o3={key:0,class:"nav-item"},s3={key:1,class:"nav-item"},n3={key:2,class:"nav-item"},r3={key:3,class:"nav-item"},i3={key:4,class:"nav-item dropdown user-chip-wrap"},a3={class:"nav-link user-chip dropdown-toggle",href:"#",id:"navbarDropdownMenuLink",role:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},l3=["src"],d3={class:"user-chip-name"},u3={class:"dropdown-menu dropdown-menu-right user-menu","aria-labelledby":"navbarDropdownMenuLink"},c3={class:"dropdown-header"},p3=["innerHTML"];function Ol(e,t){return l(),d(X,null,[o("nav",{class:A(["navbar navbar-expand-lg",{"navbar-dark":e.isDarkMode}])},[t[13]||(t[13]=ce('<a class="navbar-brand" href="/">Anonymous <em>GitHub</em></a><a 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"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-heart"></use></svg><span class="nav-support-label">Support</span></a><button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"><span class="navbar-toggler-icon"></span></button>',3)),o("div",KI,[o("ul",YI,[e.user?p("v-if",!0):(l(),d("li",JI,[o("a",{class:A(["nav-link",{active:e.path=="/"}]),href:"/"}," Home ",2)])),e.user?(l(),d("li",QI,[o("a",{class:A(["nav-link",{active:e.path=="/dashboard"}]),href:"/dashboard"},[...t[2]||(t[2]=[o("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-grid"})],-1),b(" My work ",-1)])],2)])):p("v-if",!0),e.user?(l(),d("li",XI,[o("a",{class:A(["nav-link",{active:e.path=="/anonymize"||e.path=="/pull-request-anonymize"}]),href:"/anonymize"},[...t[3]||(t[3]=[o("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})],-1),b(" Anonymize ",-1)])],2)])):p("v-if",!0),e.user?(l(),d("li",ZI,[o("a",{class:A(["nav-link",{active:e.path=="/conferences"}]),href:"/conferences"},[...t[4]||(t[4]=[o("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[o("use",{href:"#project-icon-conference"})],-1),b(" Conferences ",-1)])],2)])):p("v-if",!0),o("li",xI,[o("a",{class:A(["nav-link",{active:e.path=="/faq"}]),href:"/faq"},[...t[5]||(t[5]=[o("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-help"})],-1),b("FAQ",-1)])],2)]),e.user&&e.user?.isAdmin?(l(),d("li",e3,[o("a",{class:A(["nav-link",{active:e.path?.indexOf("/admin")===0}]),href:"/admin/"},[...t[6]||(t[6]=[o("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[o("use",{href:"#project-icon-filter"})],-1),b(" Admin ",-1)])],2)])):p("v-if",!0)]),o("ul",t3,[e.user||!e.isReviewerRoute?(l(),d("li",o3,[...t[7]||(t[7]=[o("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"},[o("i",{class:"fab fa-github","aria-hidden":"true"})],-1)])])):p("v-if",!0),p(` "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[12]||(t[12]=o("li",{class:"nav-item d-none d-lg-block"},[o("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"},[o("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-bug"})]),b("Report a bug ")])],-1)),e.isDarkMode?p("v-if",!0):(l(),d("li",s3,[o("a",{class:"nav-link nav-icon",href:"#",title:"Switch to dark mode","aria-label":"Switch to dark mode",role:"button",onClick:t[0]||(t[0]=me(s=>{e.darkMode(!0)},["prevent"]))},[...t[8]||(t[8]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-moon"})],-1)])])])),e.isDarkMode?(l(),d("li",n3,[o("a",{class:"nav-link nav-icon",href:"#",title:"Switch to light mode","aria-label":"Switch to light mode",role:"button",onClick:t[1]||(t[1]=me(s=>{e.darkMode(!1)},["prevent"]))},[...t[9]||(t[9]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-sun"})],-1)])])])):p("v-if",!0),!e.user&&!e.isReviewerRoute?(l(),d("li",r3,[...t[10]||(t[10]=[o("a",{class:"nav-link btn-signin",target:"_self",href:"/signin","data-offset":"30"},[o("i",{class:"fab fa-github mr-1"}),b(" Sign in ")],-1)])])):p("v-if",!0),e.user?(l(),d("li",i3,[o("a",a3,[e.user?.photo?(l(),d("img",{key:0,width:"22",height:"22",class:"rounded-circle",src:e.safeUrl(e.user?.photo)},null,8,l3)):p("v-if",!0),o("span",d3,c(e.user?.username),1)]),o("div",u3,[o("h6",c3,"Signed in as @"+c(e.user?.username),1),t[11]||(t[11]=ce('<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" 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><a class="dropdown-item" href="https://ko-fi.com/tdurieux" target="_blank" rel="noopener"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-heart"></use></svg><span>Support the project</span></a><div class="dropdown-divider"></div><a class="dropdown-item" href="/api/user/logout" target="_self"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-logout"></use></svg><span>Sign out</span></a>',9))])])):p("v-if",!0)])])],2),e.generalMessage?(l(),d("div",{key:0,class:"navbar shadow generalMessage",innerHTML:e.sanitize(e.generalMessage)},null,8,p3)):p("v-if",!0)],64)}var f3={class:"paper-landing"},m3={class:"paper-hero"},h3={class:"paper-hero-copy"},v3={class:"paper-cta-row"},g3={key:0,href:"/signin",target:"_self",class:"btn-hero"},y3={key:1,href:"/anonymize",class:"btn-hero"},b3={class:"paper-stats paper-wrap",id:"metrics","aria-label":"Usage over the last 60 days"},w3={class:"paper-stats-grid"},k3={class:"paper-stat-value"},E3={class:"paper-stat-label"},C3=["viewBox"],_3=["x","y","width","height"],S3={key:1,class:"paper-stat-delta"},N3={class:"paper-features paper-wrap","aria-label":"Product features"},D3={class:"paper-features-list",role:"tablist","aria-label":"Features","aria-orientation":"vertical"},R3=["onClick","onKeydown","id","aria-controls","aria-selected","tabindex"],T3={class:"paper-eyebrow"},A3={class:"paper-feature-title"},O3={class:"paper-feature-more"},I3={class:"paper-feature-title paper-feature-title-m","aria-hidden":"true"},P3=["href","target"],V3={class:"paper-features-stage"},q3=["id","aria-labelledby"],M3={class:"paper-frame"},$3={class:"paper-frame-bar","aria-hidden":"true"},L3={class:"url"},U3=["src","alt"],F3={class:"paper-footer"},z3={class:"paper-footer-inner"},H3={class:"paper-footer-col"},B3={key:0,href:"/dashboard"},j3={key:1,href:"/conferences"},G3={class:"paper-footer-foot"};function Il(e,t){return l(),d("div",f3,[p(" Hero: copy on the left, the product on the right "),o("section",m3,[o("div",h3,[t[2]||(t[2]=o("div",{class:"paper-eyebrow"},"For double-blind peer review",-1)),t[3]||(t[3]=o("h1",{class:"hero-title"},[b(" Share the code,"),o("br"),o("span",{class:"accent"},"not the author.")],-1)),t[4]||(t[4]=o("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)),o("div",v3,[e.user?p("v-if",!0):(l(),d("a",g3,[...t[0]||(t[0]=[o("i",{class:"fab fa-github mr-2","aria-hidden":"true"},null,-1),b("Sign in with GitHub ",-1)])])),e.user?(l(),d("a",y3," Anonymize a repository \u2192 ")):p("v-if",!0),t[1]||(t[1]=o("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[5]||(t[5]=o("ul",{class:"paper-reassure"},[o("li",null,"Free and open source"),o("li",null,"Read-only: never writes to your repos"),o("li",null,"Expires on the date you set")],-1))]),t[6]||(t[6]=ce('<div class="paper-hero-shot"><div class="paper-frame"><div class="paper-frame-bar" aria-hidden="true"><span class="dots"><i></i><i></i><i></i></span><span class="url">anonymous.4open.science/anonymize</span></div><img src="/imgs/redaction-preview.png" width="1360" height="960" alt="A reviewer preview with the author, affiliation, and email replaced by anonymous terms"></div></div>',1))]),p(" Proof "),t[16]||(t[16]=ce('<section class="paper-proof paper-wrap" aria-label="Venues"><div class="paper-eyebrow">Trusted by authors at</div><div class="paper-proof-venues"><span>ICSE</span><i aria-hidden="true">\xB7</i><span>FSE</span><i aria-hidden="true">\xB7</i><span>OOPSLA</span></div></section>',1)),p(" Live stats "),o("section",b3,[t[7]||(t[7]=o("div",{class:"paper-stats-meta"},[o("div",{class:"paper-stats-meta-left"},"Live \xB7 last 60 days"),o("div",{class:"paper-stats-meta-right"},[o("span",{class:"paper-stats-dot","aria-hidden":"true"}),b(" updated daily ")])],-1)),o("div",w3,[(l(!0),d(X,null,re(e.cards,(s,r)=>(l(),d("div",{class:"paper-stat-card",key:s?.key},[o("div",k3,c(e.fmt?.bigNum(s?.total)),1),o("div",E3,c(s?.label),1),e.history[s?.key].bars?.length>1?(l(),d("svg",{key:0,class:"paper-stat-bars",preserveAspectRatio:"none","aria-hidden":"true",viewBox:"0 0 "+e.history[s?.key].viewW+" 36"},[(l(!0),d(X,null,re(e.history[s?.key].bars,(n,i)=>(l(),d("rect",{key:i,class:A({"is-latest":i===e.history[s.key].bars.length-1}),x:n?.x,y:n?.y,width:n?.w,height:n?.h},null,10,_3))),128))],8,C3)):p("v-if",!0),e.history[s?.key].bars?.length>1?(l(),d("div",S3," +"+c(e.fmt?.number(e.history[s?.key].deltaToday))+" today ",1)):p("v-if",!0)]))),128))])]),p(" Before / after "),t[17]||(t[17]=o("section",{class:"paper-section-head paper-wrap"},[o("div",null,[o("div",{class:"paper-eyebrow"},"Before \xB7 after"),o("h2",null,[b("The same repository, "),o("em",null,"minus you.")])]),o("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)),t[18]||(t[18]=o("div",{class:"paper-preview paper-wrap","aria-label":"Before and after example"},[o("div",{class:"pane"},[o("div",{class:"pane-header"},[o("span",{class:"pane-label"},"Before \xB7 your repo"),o("span",{class:"pane-url"},"github.com/jane-smith/DeepLearnUtils")]),o("div",{class:"pane-body"},[o("div",null,[o("span",{class:"tok"},"#"),b(),o("strong",null,"DeepLearnUtils")]),o("div",null,"Developed by Jane Smith at MIT CSAIL."),o("div",null,"See Smith et\xA0al., \u201CAttention That Works,\u201D 2026."),o("div",null,"Contact: jane.smith@mit.edu")])]),o("div",{class:"pane"},[o("div",{class:"pane-header"},[o("span",{class:"pane-label"},"After \xB7 anonymous mirror"),o("span",{class:"pane-url"},"anonymous.4open.science/r/paper-7f2a")]),o("div",{class:"pane-body"},[o("div",null,[o("span",{class:"tok"},"#"),b(),o("strong",null,"DeepLearnUtils")]),o("div",null,[b("Developed by "),o("span",{class:"redact",role:"img","aria-label":"redacted author name"},"XXXX-1"),b(" at "),o("span",{class:"redact",role:"img","aria-label":"redacted affiliation"},"XXXX-2"),b(".")]),o("div",null,[b("See "),o("span",{class:"redact",role:"img","aria-label":"redacted author name"},"XXXX-1"),b(" et\xA0al., \u201CAttention That Works,\u201D 2026.")]),o("div",null,[b("Contact: "),o("span",{class:"redact",role:"img","aria-label":"redacted email address"},"XXXX-3")])])])],-1)),p(" What you get: one screenshot, three tabs "),t[19]||(t[19]=o("section",{class:"paper-section-head paper-wrap",id:"about"},[o("div",null,[o("div",{class:"paper-eyebrow"},"What you get"),o("h2",null,[b("Anonymize, review, "),o("em",null,"manage.")])]),o("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)),o("section",N3,[o("div",D3,[(l(!0),d(X,null,re(e.features,(s,r)=>(l(),d("div",{class:A(["paper-feature",{"is-on":e.feature===s?.key}]),key:s?.key},[o("button",{type:"button",class:"paper-feature-tab",role:"tab",onClick:n=>e.selectFeature(s.key),onKeydown:n=>e.featureKeydown(n,r),id:"feature-tab-"+s?.key,"aria-controls":"feature-panel-"+s?.key,"aria-selected":e.feature===s?.key,tabindex:e.feature===s?.key?0:-1},[o("span",T3,c(s?.num)+" \xB7 "+c(s?.eyebrow),1),o("span",A3,[b(c(s?.title)+" ",1),o("em",null,c(s?.accent),1)])],40,R3),o("div",O3,[o("span",I3,[b(c(s?.title)+" ",1),o("em",null,c(s?.accent),1)]),o("p",null,c(s?.text),1),o("a",{class:"paper-link-arrow",href:e.safeUrl(e.featureHref(s)),target:e.featureTarget(s)},c(s?.cta)+" \u2192",9,P3)])],2))),128))]),o("div",V3,[(l(!0),d(X,null,re(e.features,(s,r)=>N((l(),d("div",{class:"paper-feature-panel",role:"tabpanel",key:s?.key,id:"feature-panel-"+s?.key,"aria-labelledby":"feature-tab-"+s?.key},[o("div",M3,[o("div",$3,[t[8]||(t[8]=o("span",{class:"dots"},[o("i"),o("i"),o("i")],-1)),o("span",L3,c(s?.url),1)]),o("div",{class:A("paper-crop paper-crop-"+s?.key)},[o("img",{loading:"lazy",width:"2880",height:"1800",src:e.safeUrl(s?.img),alt:s?.alt},null,8,U3)],2)])],8,q3)),[[W,e.feature===s?.key]])),128))])]),p(" FAQ teaser "),t[20]||(t[20]=ce('<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 <em>come up most.</em></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>',1)),o("footer",F3,[o("div",z3,[t[12]||(t[12]=o("div",{class:"paper-footer-brand"},[o("div",{class:"paper-footer-mark"},[b("Anonymous "),o("em",null,"GitHub")]),o("p",{class:"paper-footer-tag"}," A read-only, identity-stripped mirror of your repository, built for double-anonymous peer review. ")],-1)),o("div",H3,[t[9]||(t[9]=o("div",{class:"paper-footer-head"},"Product",-1)),t[10]||(t[10]=o("a",{href:"/anonymize"},"Anonymize",-1)),e.user?(l(),d("a",B3,"My work")):p("v-if",!0),e.user?(l(),d("a",j3,"Conferences")):p("v-if",!0),t[11]||(t[11]=o("a",{href:"/faq"},"FAQ",-1))]),t[13]||(t[13]=ce('<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">Sponsor</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[15]||(t[15]=o("div",{class:"paper-footer-rule"},null,-1)),o("div",G3,[o("span",null,"\xA9 "+c(e.year||2026)+" Anonymous GitHub \xB7 GPL-3.0 licensed",1),t[14]||(t[14]=o("span",{class:"paper-footer-meta"},"Built for reviewers, by researchers.",-1))])])])}var W3={class:"paper-empty"},K3={class:"paper-empty-inner"},Y3={key:0,class:"paper-eyebrow"},J3={key:1,class:"paper-eyebrow"},Q3={key:2,class:"paper-empty-title"},X3=["textContent"];function Pl(e,t){return l(),d("div",W3,[o("div",K3,[e.error?p("v-if",!0):(l(),d("div",Y3,"Working")),e.error?(l(),d("div",J3,"Error")):p("v-if",!0),e.error?p("v-if",!0):(l(),d("h1",Q3,[...t[0]||(t[0]=[b(" Loading",-1),o("span",{class:"dot-anim"},"\u2026",-1)])])),e.error?(l(),d("h1",{key:3,class:"paper-empty-title",textContent:c(e.fmt.translate(e.error))},null,8,X3)):p("v-if",!0)])])}var Z3={class:"container paper-page paper-settings"},x3={class:"paper-crumbs"},eP={class:"here"},tP={class:"paper-page-title"},oP={class:"paper-settings-body"},sP={class:"paper-settings-toc"},nP={href:"#conf-billing"},rP={class:"form needs-validation paper-settings-main",name:"conference",novalidate:""},iP={id:"conf-basics",class:"paper-settings-section"},aP={class:"form-group"},lP={class:"invalid-feedback"},dP={class:"invalid-feedback"},uP={class:"form-group"},cP={class:"invalid-feedback"},pP={class:"form-group"},fP={class:"invalid-feedback"},mP={class:"invalid-feedback"},hP={id:"conf-window",class:"paper-settings-section"},vP={class:"form-grid-2"},gP={class:"form-group"},yP={class:"invalid-feedback"},bP={class:"invalid-feedback"},wP={class:"form-group"},kP={class:"invalid-feedback"},EP={class:"invalid-feedback"},CP={id:"conf-rendering",class:"paper-settings-section"},_P={class:"form-check"},SP={class:"form-check-input",type:"checkbox",id:"link",name:"link"},NP={class:"form-check"},DP={class:"form-check-input",type:"checkbox",id:"image",name:"image"},RP={class:"form-check"},TP={class:"form-check-input",type:"checkbox",id:"pdf",name:"pdf"},AP={class:"form-check"},OP={class:"form-check-input",type:"checkbox",id:"notebook",name:"notebook"},IP={id:"conf-features",class:"paper-settings-section"},PP={class:"form-check"},VP={class:"form-check-input",type:"checkbox",id:"update",name:"update"},qP={class:"form-check"},MP={class:"form-check-input",type:"checkbox",id:"page",name:"page"},$P={id:"conf-plan",class:"paper-settings-section"},LP={class:"paper-plan-grid"},UP=["value"],FP=["textContent"],zP={class:"paper-plan-price"},HP=["innerHTML"],BP={key:0,id:"conf-billing",class:"paper-settings-section"},jP={class:"form-group"},GP={class:"form-group"},WP={class:"form-group"},KP={class:"form-group"},YP={class:"form-grid-3"},JP={class:"form-group"},QP={class:"form-group"},XP={class:"form-group"},ZP={class:"form-group"},xP={class:"paper-settings-footer"},eV=["textContent"],tV=["textContent"],oV=["disabled"];function Vl(e,t){let s=be("paper-scrollspy"),r=be("field"),n=be("form");return l(),d("div",Z3,[o("div",x3,[t[1]||(t[1]=o("a",{href:"/dashboard"},"My work",-1)),t[2]||(t[2]=b(" \xA0/\xA0 ",-1)),t[3]||(t[3]=o("a",{href:"/conferences"},"Conferences",-1)),t[4]||(t[4]=b(" \xA0/\xA0 ",-1)),o("span",eP,c(e.editionMode?"Edit":"New"),1)]),o("h1",tP,[b(c(e.editionMode?"Edit":"Create a")+" ",1),t[5]||(t[5]=o("em",null,"conference",-1))]),t[43]||(t[43]=o("p",{class:"paper-page-lede"}," Give chairs access to every anonymization submitted to a venue, and lift author quotas during the review window. ",-1)),o("div",oP,[N((l(),d("aside",sP,[t[7]||(t[7]=o("div",{class:"paper-settings-toc-head"},"On this page",-1)),o("nav",null,[t[6]||(t[6]=ce('<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)),N(o("a",nP,"Billing",512),[[W,e.plan?.pricePerRepo>0]])])])),[[s]]),N((l(),d("form",rP,[o("section",iP,[t[12]||(t[12]=o("div",{class:"paper-section-eyebrow"},"Basics",-1)),o("div",aP,[t[8]||(t[8]=o("label",{class:"paper-field-label",for:"name"},"Conference name",-1)),N(o("input",{type:"text",class:A(["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),[[r,{state:e.viewState,set:i=>{e.options.name=i},value:e.options?.name,form:"conference",options:{}}]]),N(o("div",lP," The name of the conference is invalid. ",512),[[W,e.conference?.name?.errors?.invalid]]),N(o("div",dP," The name of the conference is required. ",512),[[W,e.conference?.name?.errors?.required]])]),o("div",uP,[t[9]||(t[9]=o("label",{class:"paper-field-label",for:"url"},"Website",-1)),N(o("input",{type:"url",class:A(["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),[[r,{state:e.viewState,set:i=>{e.options.url=i},value:e.options?.url,form:"conference",options:{}}]]),N(o("div",cP," The url of the conference is invalid. ",512),[[W,e.conference?.url?.errors?.url]])]),o("div",pP,[t[10]||(t[10]=o("label",{class:"paper-field-label",for:"conferenceID"},"Conference ID",-1)),N(o("input",{type:"text",class:A(["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),[[r,{state:e.viewState,set:i=>{e.options.conferenceID=i},value:e.options?.conferenceID,form:"conference",options:{}}]]),t[11]||(t[11]=o("small",{class:"form-text text-muted"},[b("3\u201310 characters, letters, numbers, "),o("code",null,"-"),b(" and "),o("code",null,"_"),b(". Authors reference this when they anonymize.")],-1)),N(o("div",{class:"invalid-feedback"}," The conference ID '"+c(e.options?.conferenceID)+"' is already used. ",513),[[W,e.conference?.conferenceID?.errors?.used]]),N(o("div",fP," The conference ID is required. ",512),[[W,e.conference?.conferenceID?.errors?.required]]),N(o("div",mP," The format of the conference ID is incorrect ([a-zA-Z0-9-_]{3,10}). ",512),[[W,e.conference?.conferenceID?.errors?.pattern]])])]),o("section",hP,[t[17]||(t[17]=o("div",{class:"paper-section-eyebrow"},"Review window",-1)),o("div",vP,[o("div",gP,[t[13]||(t[13]=o("label",{class:"paper-field-label",for:"startDate"},"Start date",-1)),N(o("input",{type:"date",class:A(["form-control",{"is-invalid":e.conference?.startDate?.invalid&&(e.conference?.startDate?.touched||e.conference?.submitted)}]),name:"startDate",id:"startDate",required:""},null,2),[[r,{state:e.viewState,set:i=>{e.options.startDate=i},value:e.options?.startDate,form:"conference",options:{}}]]),t[14]||(t[14]=o("small",{class:"form-text text-muted"},"Beginning of the review process.",-1)),N(o("div",yP," Start date is required. ",512),[[W,e.conference?.startDate?.errors?.required]]),N(o("div",bP," Start date must be before end date. ",512),[[W,e.conference?.startDate?.errors?.invalid]])]),o("div",wP,[t[15]||(t[15]=o("label",{class:"paper-field-label",for:"endDate"},"End date",-1)),N(o("input",{type:"date",class:A(["form-control",{"is-invalid":e.conference?.endDate?.invalid&&(e.conference?.endDate?.touched||e.conference?.submitted)}]),name:"endDate",id:"endDate",required:""},null,2),[[r,{state:e.viewState,set:i=>{e.options.endDate=i},value:e.options?.endDate,form:"conference",options:{}}]]),t[16]||(t[16]=o("small",{class:"form-text text-muted"},"All repositories expire on this date.",-1)),N(o("div",kP," End date is required. ",512),[[W,e.conference?.endDate?.errors?.required]]),N(o("div",EP," End date is invalid. ",512),[[W,e.conference?.endDate?.errors?.invalid]])])])]),o("section",CP,[t[26]||(t[26]=o("div",{class:"paper-section-eyebrow"},"Rendering defaults",-1)),o("div",_P,[N(o("input",SP,null,512),[[r,{state:e.viewState,set:i=>{e.options.options.link=i},value:e.options?.options?.link,form:"conference",options:{}}]]),t[18]||(t[18]=o("label",{class:"form-check-label",for:"link"},"Keep links",-1)),t[19]||(t[19]=o("small",{class:"form-text text-muted"},"Keep or remove all links from text files.",-1))]),o("div",NP,[N(o("input",DP,null,512),[[r,{state:e.viewState,set:i=>{e.options.options.image=i},value:e.options?.options?.image,form:"conference",options:{}}]]),t[20]||(t[20]=o("label",{class:"form-check-label",for:"image"},"Display images",-1)),t[21]||(t[21]=o("small",{class:"form-text text-muted"},"Images are not anonymized.",-1))]),o("div",RP,[N(o("input",TP,null,512),[[r,{state:e.viewState,set:i=>{e.options.options.pdf=i},value:e.options?.options?.pdf,form:"conference",options:{}}]]),t[22]||(t[22]=o("label",{class:"form-check-label",for:"pdf"},"Display PDFs",-1)),t[23]||(t[23]=o("small",{class:"form-text text-muted"},"PDFs are not anonymized.",-1))]),o("div",AP,[N(o("input",OP,null,512),[[r,{state:e.viewState,set:i=>{e.options.options.notebook=i},value:e.options?.options?.notebook,form:"conference",options:{}}]]),t[24]||(t[24]=o("label",{class:"form-check-label",for:"notebook"},"Display notebooks",-1)),t[25]||(t[25]=o("small",{class:"form-text text-muted"},"Render Jupyter notebooks instead of raw JSON.",-1))])]),o("section",IP,[t[31]||(t[31]=o("div",{class:"paper-section-eyebrow"},"Features",-1)),o("div",PP,[N(o("input",VP,null,512),[[r,{state:e.viewState,set:i=>{e.options.options.update=i},value:e.options?.options?.update,form:"conference",options:{}}]]),t[27]||(t[27]=o("label",{class:"form-check-label",for:"update"},"Auto-update from GitHub",-1)),t[28]||(t[28]=o("small",{class:"form-text text-muted"},"Pull the latest commit automatically (hourly maximum).",-1))]),o("div",qP,[N(o("input",MP,null,512),[[r,{state:e.viewState,set:i=>{e.options.options.page=i},value:e.options?.options?.page,form:"conference",options:{}}]]),t[29]||(t[29]=o("label",{class:"form-check-label",for:"page"},"GitHub Pages",-1)),t[30]||(t[30]=o("small",{class:"form-text text-muted"},"Enable anonymized GitHub pages.",-1))])]),o("section",$P,[t[33]||(t[33]=o("div",{class:"paper-section-eyebrow"},"Plan",-1)),t[34]||(t[34]=o("p",{class:"paper-section-copy"},"Billed per repository per month, prorated by the day for as long as a repository stays in the conference.",-1)),o("div",LP,[(l(!0),d(X,null,re(e.plans,(i,a)=>(l(),d("label",{class:A(["paper-plan-card",{selected:e.options?.plan?.planID==i?.id}])},[N(o("input",{type:"radio",name:"planPicker",value:i?.id},null,8,UP),[[r,{state:e.viewState,set:u=>{e.options.plan.planID=u},value:e.options?.plan?.planID,form:"conference",options:{}}]]),o("div",{class:"paper-plan-head",textContent:c(i?.name)},null,8,FP),o("div",zP,[b(c(e.fmt?.number(i?.pricePerRepo))+"\u20AC ",1),t[32]||(t[32]=o("span",{class:"paper-plan-per"},"/ repo / month",-1))]),o("div",{class:"paper-plan-desc",innerHTML:e.sanitize(i?.description)},null,8,HP)],2))),256))])]),e.plan?.pricePerRepo>0?(l(),d("section",BP,[t[42]||(t[42]=o("div",{class:"paper-section-eyebrow"},"Billing",-1)),o("div",jP,[t[35]||(t[35]=o("label",{class:"paper-field-label",for:"billing_name"},"Name",-1)),N(o("input",{type:"text",class:A(["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),[[r,{state:e.viewState,set:i=>{e.options.billing.name=i},value:e.options?.billing?.name,form:"conference",options:{}}]])]),o("div",GP,[t[36]||(t[36]=o("label",{class:"paper-field-label",for:"email"},"Email",-1)),N(o("input",{type:"email",class:A(["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),[[r,{state:e.viewState,set:i=>{e.options.billing.email=i},value:e.options?.billing?.email,form:"conference",options:{}}]])]),o("div",WP,[t[37]||(t[37]=o("label",{class:"paper-field-label",for:"inputAddress"},"Address",-1)),N(o("input",{type:"text",class:A(["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),[[r,{state:e.viewState,set:i=>{e.options.billing.address=i},value:e.options?.billing?.address,form:"conference",options:{}}]])]),o("div",KP,[N(o("input",{type:"text",class:A(["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),[[r,{state:e.viewState,set:i=>{e.options.billing.address2=i},value:e.options?.billing?.address2,form:"conference",options:{}}]])]),o("div",YP,[o("div",JP,[t[38]||(t[38]=o("label",{class:"paper-field-label",for:"city"},"City",-1)),N(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.conference?.city?.invalid&&(e.conference?.city?.touched||e.conference?.submitted)}]),name:"city",id:"city",required:"",placeholder:"City"},null,2),[[r,{state:e.viewState,set:i=>{e.options.billing.city=i},value:e.options?.billing?.city,form:"conference",options:{}}]])]),o("div",QP,[t[39]||(t[39]=o("label",{class:"paper-field-label",for:"country"},"Country",-1)),N(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.conference?.country?.invalid&&(e.conference?.country?.touched||e.conference?.submitted)}]),name:"country",id:"country",required:"",placeholder:"Country"},null,2),[[r,{state:e.viewState,set:i=>{e.options.billing.country=i},value:e.options?.billing?.country,form:"conference",options:{}}]])]),o("div",XP,[t[40]||(t[40]=o("label",{class:"paper-field-label",for:"zip"},"Zip",-1)),N(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.conference?.zip?.invalid&&(e.conference?.zip?.touched||e.conference?.submitted)}]),name:"zip",id:"zip",required:"",placeholder:"Zip"},null,2),[[r,{state:e.viewState,set:i=>{e.options.billing.zip=i},value:e.options?.billing?.zip,form:"conference",options:{}}]])])]),o("div",ZP,[t[41]||(t[41]=o("label",{class:"paper-field-label",for:"vat"},"VAT number",-1)),N(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.conference?.vat?.invalid&&(e.conference?.vat?.touched||e.conference?.submitted)}]),name:"vat",id:"vat",placeholder:"VAT Number"},null,2),[[r,{state:e.viewState,set:i=>{e.options.billing.vat=i},value:e.options?.billing?.vat,form:"conference",options:{}}]])])])):p("v-if",!0),o("div",xP,[e.error?(l(),d("div",{key:0,class:"alert alert-danger",role:"alert",textContent:c(e.error)},null,8,eV)):p("v-if",!0),e.message?(l(),d("div",{key:1,class:"alert alert-success",role:"alert",textContent:c(e.message)},null,8,tV)):p("v-if",!0),o("button",{id:"send",disabled:e.saving,type:"submit",class:"btn btn-ink",onClick:t[0]||(t[0]=me(i=>e.submitForm(i,()=>{e.submit(i)}),["prevent"]))},c(e.saving?e.editionMode?"Updating\u2026":"Creating\u2026":e.editionMode?"Update conference":"Create conference"),9,oV)])])),[[n,e.viewState]])])])}var sV={key:0},nV=["innerHTML"],rV={key:3},iV=["src"],aV=["src"],lV={key:7},dV={controls:"controls"},uV=["src"],cV={key:8},pV={key:9,class:"file-error container d-flex h-100"},fV={class:"paper-ratelimit-card m-auto",style:{"max-width":"520px"}},mV={class:"paper-error-msg"},hV={key:10,class:"file-error container d-flex h-100"},vV={class:"paper-error-card file-error-card m-auto",role:"alert"},gV=["textContent"],yV={key:11,class:"file-error container d-flex h-100"},bV={key:12,class:"file-error container d-flex h-100"},wV={key:13,class:"file-error container d-flex h-100"},kV={key:14,class:"file-error container d-flex h-100"},EV={class:"paper-empty-title m-auto"},CV=["href"];function ql(e,t){let s=We("html-doc"),r=We("pdfviewer"),n=We("notebook"),i=be("code-editor");return l(),d(X,null,[e.type=="text"?N((l(),d("div",sV,null,512)),[[i,{content:e.content,options:e.aceOption}]]):p("v-if",!0),e.type=="html"?(l(),d("div",{key:1,class:"file-content markdown-body",innerHTML:e.highlightRedactions(e.sanitize(e.content))},null,8,nV)):p("v-if",!0),e.type=="html-doc"&&!e.showSource&&e.content!=null?(l(),Mt(s,{key:2,content:e.content,"base-url":e.fileBaseUrl,"allow-scripts":e.allowScripts},null,8,["content","base-url","allow-scripts"])):p("v-if",!0),(e.type=="code"||e.type=="html-doc"&&e.showSource)&&e.content!=null?N((l(),d("div",rV,null,512)),[[i,{content:e.content,options:e.aceOption}]]):p("v-if",!0),e.type=="image"?(l(),d("img",{key:4,class:"image-content",src:e.safeUrl(e.url)},null,8,iV)):p("v-if",!0),e.type=="media"?(l(),d("iframe",{key:5,class:"h-100 overflow-auto w-100 b-0",src:e.safeUrl(e.url)},null,8,aV)):p("v-if",!0),e.type=="pdf"?(l(),Mt(r,{key:6,src:e.safeUrl(e.url)},null,8,["src"])):p("v-if",!0),e.type=="audio"?(l(),d("div",lV,[o("audio",dV,[o("source",{src:e.safeUrl(e.url)},null,8,uV)])])):p("v-if",!0),e.type=="IPython"?(l(),d("div",cV,[Ce(n,{file:e.url,content:e.content},null,8,["file","content"])])):p("v-if",!0),e.type=="rate_limited"?(l(),d("div",pV,[o("div",fV,[t[2]||(t[2]=ce('<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)),o("p",mV,[t[0]||(t[0]=b("This repository will be available in ",-1)),o("strong",null,c(e.rateLimitCountdown),1),t[1]||(t[1]=b(". The page will reload automatically.",-1))])])])):p("v-if",!0),e.type=="error"?(l(),d("div",hV,[o("div",vV,[t[3]||(t[3]=o("div",{class:"paper-error-eyebrow"},"Unavailable",-1)),t[4]||(t[4]=o("div",{class:"paper-error-title"},"This content can\u2019t be shown",-1)),o("p",{class:"file-error-msg",textContent:c(e.fmt.translate("ERRORS."+e.content))},null,8,gV),t[5]||(t[5]=o("div",{class:"file-error-actions"},[o("a",{href:"/",class:"btn btn-sm"},"Back to home"),o("a",{href:"/faq",class:"btn btn-sm"},"Read the FAQ")],-1))])])):p("v-if",!0),e.type=="loading"&&!e.error?(l(),d("div",yV,[...t[6]||(t[6]=[o("h1",{class:"paper-empty-title m-auto"},"Loading\u2026",-1)])])):p("v-if",!0),e.type=="empty"?(l(),d("div",bV,[...t[7]||(t[7]=[o("h1",{class:"paper-empty-title m-auto"},[b("Empty "),o("em",null,"repository"),b(".")],-1)])])):p("v-if",!0),e.content==null&&e.type!="empty"?(l(),d("div",wV,[...t[8]||(t[8]=[o("h1",{class:"paper-empty-title m-auto"},[b("Empty "),o("em",null,"file"),b(".")],-1)])])):p("v-if",!0),e.type=="binary"?(l(),d("div",kV,[o("h1",EV,[t[9]||(t[9]=b("Unsupported ",-1)),t[10]||(t[10]=o("em",null,"binary file",-1)),t[11]||(t[11]=b(". You can ",-1)),o("a",{target:"_blank",href:e.safeUrl(e.url+"&download=true")},"download it",8,CV),t[12]||(t[12]=b(".",-1))])])):p("v-if",!0)],64)}var _V={class:"container page dashboard-page paper-page"},SV={class:"row"},NV={class:"w-100"},DV={class:"w-100","aria-label":"Pull Requests","accept-charset":"UTF-8"},RV={class:"d-flex flex-column flex-md-row align-items-md-center",style:{gap:"8px"}},TV={class:"flex-grow-1"},AV={type:"search",id:"search",class:"form-control","aria-label":"Find a pull request...",placeholder:"Find a pull request...",autocomplete:"off"},OV={class:"d-flex flex-wrap",style:{gap:"6px"}},IV={class:"dropdown"},PV={class:"dropdown-menu","aria-labelledby":"dropdownSort"},VV={class:"form-check dropdown-item"},qV={class:"form-check-input",type:"radio",name:"sort",id:"sortFullName",value:"fullName"},MV={class:"form-check dropdown-item"},$V={class:"form-check-input",type:"radio",name:"sort",id:"sortAnonymizeDate",value:"-anonymizeDate"},LV={class:"form-check dropdown-item"},UV={class:"form-check-input",type:"radio",name:"sort",id:"sortStatus",value:"-status"},FV={class:"form-check dropdown-item"},zV={class:"form-check-input",type:"radio",name:"sort",id:"sortLastView",value:"-lastView"},HV={class:"form-check dropdown-item"},BV={class:"form-check-input",type:"radio",name:"sort",id:"sortPageView",value:"-pageView"},jV={class:"dropdown"},GV={class:"dropdown-menu","aria-labelledby":"dropdownStatus"},WV={class:"form-check dropdown-item"},KV={class:"form-check-input",type:"checkbox",name:"sort",id:"statusReady",value:"ready"},YV={class:"form-check dropdown-item"},JV={class:"form-check-input",type:"checkbox",name:"sort",id:"statusExpired",value:"expired"},QV={class:"form-check dropdown-item"},XV={class:"form-check-input",type:"checkbox",name:"sort",id:"statusRemoved",value:"removed"},ZV={class:"d-flex flex-wrap mt-2",style:{gap:"6px"}},xV={class:"filter-chip"},e5=["onClick"],t5={class:"repo-list w-100"},o5={class:"repo-list-item-content"},s5={class:"repo-list-item-main"},n5={class:"repo-list-item-header"},r5=["textContent","href"],i5=["textContent"],a5=["textContent"],l5={class:"repo-source"},d5=["href"],u5={class:"repo-date"},c5={class:"repo-meta"},p5={key:0,title:"Conference"},f5=["title"],m5=["title"],h5=["title"],v5={key:1},g5={class:"repo-list-item-actions"},y5={class:"dropdown"},b5={class:"dropdown-menu dropdown-menu-right"},w5=["href"],k5=["onClick"],E5=["onClick"],C5=["onClick"],_5=["href"],S5={key:0,class:"repo-list-empty"};function Ml(e,t){let s=be("field"),r=be("form");return l(),d("div",_V,[o("div",SV,[o("div",NV,[t[12]||(t[12]=ce('<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)),p(" Search + filters row "),N((l(),d("form",DV,[o("div",RV,[o("div",TV,[N(o("input",AV,null,512),[[s,{state:e.viewState,set:n=>{e.search=n},value:e.search,form:null,options:{}}]])]),o("div",OV,[o("div",IV,[t[6]||(t[6]=o("button",{class:"btn btn-sm dropdown-toggle",type:"button",id:"dropdownSort","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}," Sort ",-1)),o("div",PV,[t[5]||(t[5]=o("h6",{class:"dropdown-header"},"Select order",-1)),o("div",VV,[N(o("input",qV,null,512),[[s,{state:e.viewState,set:n=>{e.orderBy=n},value:e.orderBy,form:null,options:{}}]]),t[0]||(t[0]=o("label",{class:"form-check-label",for:"sortFullName"},"Pull Request",-1))]),o("div",MV,[N(o("input",$V,null,512),[[s,{state:e.viewState,set:n=>{e.orderBy=n},value:e.orderBy,form:null,options:{}}]]),t[1]||(t[1]=o("label",{class:"form-check-label",for:"sortAnonymizeDate"},"Anonymize Date",-1))]),o("div",LV,[N(o("input",UV,null,512),[[s,{state:e.viewState,set:n=>{e.orderBy=n},value:e.orderBy,form:null,options:{}}]]),t[2]||(t[2]=o("label",{class:"form-check-label",for:"sortStatus"},"Status",-1))]),o("div",FV,[N(o("input",zV,null,512),[[s,{state:e.viewState,set:n=>{e.orderBy=n},value:e.orderBy,form:null,options:{}}]]),t[3]||(t[3]=o("label",{class:"form-check-label",for:"sortLastView"},"Last View",-1))]),o("div",HV,[N(o("input",BV,null,512),[[s,{state:e.viewState,set:n=>{e.orderBy=n},value:e.orderBy,form:null,options:{}}]]),t[4]||(t[4]=o("label",{class:"form-check-label",for:"sortPageView"},"Page View",-1))])])]),o("div",jV,[t[11]||(t[11]=o("button",{class:"btn btn-sm dropdown-toggle",type:"button",id:"dropdownStatus","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}," Status ",-1)),o("div",GV,[t[10]||(t[10]=o("h6",{class:"dropdown-header"},"Select status",-1)),o("div",WV,[N(o("input",KV,null,512),[[s,{state:e.viewState,set:n=>{e.filters.status.ready=n},value:e.filters?.status?.ready,form:null,options:{}}]]),t[7]||(t[7]=o("label",{class:"form-check-label",for:"statusReady"},"Ready",-1))]),o("div",YV,[N(o("input",JV,null,512),[[s,{state:e.viewState,set:n=>{e.filters.status.expired=n},value:e.filters?.status?.expired,form:null,options:{}}]]),t[8]||(t[8]=o("label",{class:"form-check-label",for:"statusExpired"},"Expired",-1))]),o("div",QV,[N(o("input",XV,null,512),[[s,{state:e.viewState,set:n=>{e.filters.status.removed=n},value:e.filters?.status?.removed,form:null,options:{}}]]),t[9]||(t[9]=o("label",{class:"form-check-label",for:"statusRemoved"},"Removed",-1))])])])])])])),[[r,e.viewState]]),p(" Active filter chips "),N(o("div",ZV,[(l(!0),d(X,null,re(e.filters?.status,(n,i,a)=>N((l(),d("span",xV,[b(c(e.fmt?.title(i))+" ",1),o("button",{type:"button",class:"filter-chip-close","aria-label":"Remove filter",onClick:u=>{e.filters.status[i]=!0}}," \xD7 ",8,e5)],512)),[[W,!n]])),256))],512),[[W,e.filters?.status?.ready===!1||e.filters?.status?.expired===!1||e.filters?.status?.removed===!1]])]),p(" Pull request list "),o("ul",t5,[(l(!0),d(X,null,re(e.filteredPullRequests,(n,i)=>(l(),d("li",{class:A(["repo-list-item",{"repo-inactive":n?.status=="expired"||n?.status=="removed"||n?.status=="error"}])},[o("div",o5,[o("div",s5,[o("div",n5,[o("a",{class:"repo-name",textContent:c(n?.pullRequestId),href:e.safeUrl("/pr/"+n?.pullRequestId)},null,8,r5),o("span",{class:A(["status-badge",{"status-removed":n?.status=="removed"||n?.status=="expired"||n?.status=="removing"||n?.status=="expiring","status-preparing":n?.status=="preparing"||n?.status=="download","status-ready":n?.status=="ready","status-error":n?.status=="error"}])},[o("span",{textContent:c(e.fmt?.title(n?.status))},null,8,i5),n?.status=="error"?(l(),d("span",{key:0,textContent:c(": "+n?.statusMessage)},null,8,a5)):p("v-if",!0)],2)]),o("div",l5,[o("span",null,[t[13]||(t[13]=o("i",{class:"fab fa-github","aria-hidden":"true"},null,-1)),o("a",{href:e.safeUrl("https://github.com/"+n?.source?.repositoryFullName+"/pull/"+n?.source?.pullRequestId)},c(n?.source?.repositoryFullName)+"#"+c(n?.source?.pullRequestId),9,d5)]),o("span",{class:A(["status-badge",{"status-ready":n?.merged,"status-removed":n?.state=="open","status-error":n?.state=="closed"&&!n?.merged}]),style:{"font-size":"10px"}},c(e.fmt?.title(n?.merged?"merged":n?.state)),3),o("span",u5,"anonymized "+c(e.fmt?.humanTime(n?.anonymizeDate)),1)])]),o("div",c5,[n?.conference?(l(),d("span",p5,[t[14]||(t[14]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-conference"})],-1)),b(" "+c(n?.conference),1)])):p("v-if",!0),o("span",{"data-toggle":"tooltip","data-placement":"bottom",title:"Terms: "+n?.options?.terms?.join(", ")},[t[15]||(t[15]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})],-1)),b(" "+c(e.fmt?.number(n?.options?.terms?.length)),1)],8,f5),o("span",{"data-toggle":"tooltip","data-placement":"bottom",title:"Views: "+e.fmt?.number(n?.pageView)},[t[16]||(t[16]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-eye"})],-1)),b(" "+c(e.fmt?.number(n?.pageView)),1)],8,m5),o("span",{"data-toggle":"tooltip","data-placement":"bottom",title:"Last view: "+e.fmt?.date(n?.lastView)},[t[17]||(t[17]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-calendar"})],-1)),b(" "+c(e.fmt?.humanTime(n?.lastView)),1)],8,h5),n?.options?.expirationMode!="never"&&n?.status=="ready"?(l(),d("span",v5,[t[18]||(t[18]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-clock"})],-1)),b(" Expire: "+c(e.fmt?.humanTime(n?.options?.expirationDate)),1)])):p("v-if",!0)])]),o("div",g5,[o("div",y5,[t[24]||(t[24]=o("button",{class:"btn btn-sm dropdown-toggle",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}," Actions ",-1)),o("div",b5,[o("a",{class:"dropdown-item",href:e.safeUrl("/pull-request-anonymize/"+n?.pullRequestId)},[...t[19]||(t[19]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-edit"})],-1),b(" Edit ",-1)])],8,w5),N(o("a",{class:"dropdown-item",href:"#",onClick:me(a=>e.updatePullRequest(n),["prevent"])},[...t[20]||(t[20]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1),b(" Force update ",-1)])],8,k5),[[W,n?.status=="ready"||n?.status=="error"]]),N(o("a",{class:"dropdown-item",href:"#",onClick:me(a=>e.updatePullRequest(n),["prevent"])},[...t[21]||(t[21]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-check-circle"})],-1),b(" Enable ",-1)])],8,E5),[[W,n?.status=="removed"]]),N(o("a",{class:"dropdown-item",href:"#",onClick:me(a=>e.removePullRequest(n),["prevent"])},[...t[22]||(t[22]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-trash"})],-1),b(" Remove ",-1)])],8,C5),[[W,n?.status=="ready"]]),o("a",{class:"dropdown-item",href:e.safeUrl("/pr/"+n?.pullRequestId+"/")},[...t[23]||(t[23]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-eye"})],-1),b(" View PR ",-1)])],8,_5)])])])],2))),256)),e.filteredPullRequests?.length==0?(l(),d("li",S5,[...t[25]||(t[25]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-inbox"})],-1),o("span",null,"No pull requests to display.",-1)])])):p("v-if",!0)])])])}var N5={class:"container paper-page paper-settings"},D5={class:"paper-settings-body"},R5={class:"paper-settings-toc"},T5={class:"paper-settings-main"},A5={id:"settings-quota",class:"paper-settings-section"},O5={key:1,class:"quota-row","aria-hidden":"true"},I5={class:"quota-item"},P5={id:"settings-terms",class:"paper-settings-section"},V5={class:"form-group"},q5={class:"form-control",id:"terms",name:"terms",rows:"4",placeholder:`Jane Smith
MIT CSAIL
jane.smith@example.org`},M5={id:"termsHelp",class:"form-text text-muted"},$5={class:"invalid-feedback"},L5={id:"settings-display",class:"paper-settings-section"},U5={class:"form-group paper-check-list"},F5={class:"form-check"},z5={class:"form-check-input",type:"checkbox",id:"link",name:"link"},H5={class:"form-check"},B5={class:"form-check-input",type:"checkbox",id:"image",name:"image"},j5={class:"form-check"},G5={class:"form-check-input",type:"checkbox",id:"pdf",name:"pdf"},W5={class:"form-check"},K5={class:"form-check-input",type:"checkbox",id:"notebook",name:"notebook"},Y5={id:"settings-features",class:"paper-settings-section"},J5={class:"form-group paper-check-list"},Q5={class:"form-check"},X5={class:"form-check-input",type:"checkbox",id:"page",name:"page"},Z5={class:"form-check"},x5={class:"form-check-input",type:"checkbox",id:"loc",name:"loc"},eq={class:"form-check"},tq={class:"form-check-input",type:"checkbox",id:"update",name:"update"},oq={class:"form-group"},sq={class:"form-control",id:"mode",name:"mode"},nq={class:"form-text text-muted"},rq={id:"settings-expiration",class:"paper-settings-section"},iq={class:"form-group"},aq={class:"form-control",id:"expiration",name:"expiration"},lq={key:0,class:"draft-status",role:"status"},dq={key:1,class:"draft-status"},uq={class:"paper-settings-footer"},cq={key:0,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},pq=["textContent"],fq={class:"paper-settings-actions"},mq=["disabled"],hq={key:0,class:"ui-icon mr-1","aria-hidden":"true"},vq={id:"settings-account",class:"paper-settings-section"},gq={class:"paper-account-card"},yq=["src"],bq={class:"paper-account-identity"},wq={class:"paper-account-name"},kq={class:"paper-danger-zone"},Eq={key:0,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},Cq=["textContent"],_q=["disabled"];function $l(e,t){let s=We("quota-usage"),r=be("paper-scrollspy"),n=be("field"),i=be("form");return l(),d("div",N5,[t[52]||(t[52]=ce('<div class="paper-crumbs"><a href="/dashboard">My work</a> \xA0/\xA0 <span class="here">Settings</span></div><h1 class="paper-page-title">Your <em>settings</em></h1><p class="paper-page-lede">Defaults applied to every new anonymization, your quotas, and your account.</p>',3)),o("div",D5,[N((l(),d("aside",R5,[...t[4]||(t[4]=[ce('<div class="paper-settings-toc-head">On this page</div><nav><a href="#settings-quota">Quota</a><a href="#settings-terms">Terms to redact</a><a href="#settings-display">Display</a><a href="#settings-features">Features</a><a href="#settings-expiration">Expiration</a><a href="#settings-account">Account</a></nav>',2)])])),[[r]]),o("div",T5,[p(" Account usage shares the dashboard component. "),o("section",A5,[t[6]||(t[6]=o("div",{class:"paper-section-eyebrow"},"Quota",-1)),t[7]||(t[7]=o("p",{class:"paper-section-copy"},"What you are using across all your anonymizations. Conferences can lift these limits during a review window.",-1)),e.quota?(l(),Mt(s,{key:0,quota:e.quota,fmt:e.fmt},null,8,["quota","fmt"])):p("v-if",!0),e.quota?p("v-if",!0):(l(),d("div",O5,[(l(),d(X,null,re([1,2,3],(a,u)=>o("div",I5,[...t[5]||(t[5]=[o("div",{class:"quota-header"},[o("span",{class:"skeleton skeleton-line",style:{width:"40%"}}),o("span",{class:"skeleton skeleton-line",style:{width:"25%"}})],-1),o("div",{class:"quota-track"},null,-1)])])),64))]))]),N((l(),d("form",{class:"form needs-validation",name:"defaultsForm",novalidate:"",onSubmit:t[2]||(t[2]=me(a=>e.submitForm(a,()=>{e.saveDefault(a)}),["prevent"]))},[o("section",P5,[t[13]||(t[13]=o("div",{class:"paper-section-eyebrow"},"Terms to redact",-1)),t[14]||(t[14]=o("p",{class:"paper-section-copy"},"Pre-filled in every new anonymization. You can still edit the list per anonymization.",-1)),o("div",V5,[t[12]||(t[12]=o("label",{class:"paper-field-label",for:"terms"},"Default terms",-1)),N(o("textarea",q5,null,512),[[n,{state:e.viewState,set:a=>{e.terms=a},value:e.terms,form:"defaultsForm",options:{debounce:250}}]]),o("small",M5,[t[8]||(t[8]=b(" One term per line (regex allowed). Each match is replaced by ",-1)),o("code",null,c(e.site_options?.ANONYMIZATION_MASK||"XXX")+"-[N]",1),t[9]||(t[9]=b(", or use ",-1)),t[10]||(t[10]=o("code",null,"term=>replacement",-1)),t[11]||(t[11]=b(" to pick your own. ",-1))]),N(o("div",$5," Terms are in an invalid format ",512),[[W,e.defaultsForm?.terms?.errors?.format]])])]),o("section",L5,[t[23]||(t[23]=o("div",{class:"paper-section-eyebrow"},"Display",-1)),t[24]||(t[24]=o("p",{class:"paper-section-copy"},"What reviewers can see inside an anonymized repository.",-1)),o("div",U5,[o("div",F5,[N(o("input",z5,null,512),[[n,{state:e.viewState,set:a=>{e.options.link=a},value:e.options?.link,form:"defaultsForm",options:{}}]]),t[15]||(t[15]=o("label",{class:"form-check-label",for:"link"},"Keep links",-1)),t[16]||(t[16]=o("small",{class:"form-text text-muted"},"Unchecked, every link in text files is removed.",-1))]),o("div",H5,[N(o("input",B5,null,512),[[n,{state:e.viewState,set:a=>{e.options.image=a},value:e.options?.image,form:"defaultsForm",options:{}}]]),t[17]||(t[17]=o("label",{class:"form-check-label",for:"image"},"Display images",-1)),t[18]||(t[18]=o("small",{class:"form-text text-muted"},"Images are shown as is. They are not anonymized.",-1))]),o("div",j5,[N(o("input",G5,null,512),[[n,{state:e.viewState,set:a=>{e.options.pdf=a},value:e.options?.pdf,form:"defaultsForm",options:{}}]]),t[19]||(t[19]=o("label",{class:"form-check-label",for:"pdf"},"Display PDFs",-1)),t[20]||(t[20]=o("small",{class:"form-text text-muted"},"PDFs are shown as is. They are not anonymized.",-1))]),o("div",W5,[N(o("input",K5,null,512),[[n,{state:e.viewState,set:a=>{e.options.notebook=a},value:e.options?.notebook,form:"defaultsForm",options:{}}]]),t[21]||(t[21]=o("label",{class:"form-check-label",for:"notebook"},"Display notebooks",-1)),t[22]||(t[22]=o("small",{class:"form-text text-muted"},"Render Jupyter notebooks instead of raw JSON.",-1))])])]),o("section",Y5,[t[33]||(t[33]=o("div",{class:"paper-section-eyebrow"},"Features",-1)),o("div",J5,[o("div",Q5,[N(o("input",X5,null,512),[[n,{state:e.viewState,set:a=>{e.options.page=a},value:e.options?.page,form:"defaultsForm",options:{}}]]),t[25]||(t[25]=o("label",{class:"form-check-label",for:"page"},"GitHub Pages",-1)),t[26]||(t[26]=o("small",{class:"form-text text-muted"},"Serve an anonymized copy of the repository's GitHub Pages site. Only pages built from the anonymized branch are supported.",-1))]),o("div",Z5,[N(o("input",x5,null,512),[[n,{state:e.viewState,set:a=>{e.options.loc=a},value:e.options?.loc,form:"defaultsForm",options:{}}]]),t[27]||(t[27]=o("label",{class:"form-check-label",for:"loc"},"Lines of code",-1)),t[28]||(t[28]=o("small",{class:"form-text text-muted"},"Show the line count of the repository in the explorer.",-1))]),o("div",eq,[N(o("input",tq,null,512),[[n,{state:e.viewState,set:a=>{e.options.update=a},value:e.options?.update,form:"defaultsForm",options:{}}]]),t[29]||(t[29]=o("label",{class:"form-check-label",for:"update"},"Auto-update from GitHub",-1)),t[30]||(t[30]=o("small",{class:"form-text text-muted"},"Follow the branch and pull the latest commit automatically, at most once an hour.",-1))])]),o("div",oq,[t[32]||(t[32]=o("label",{class:"paper-field-label",for:"mode"},"Fetch mode",-1)),N((l(),d("select",sq,[...t[31]||(t[31]=[o("option",{value:"GitHubStream",selected:""},"Stream from GitHub on demand",-1),o("option",{value:"GitHubDownload"},"Download to Anonymous GitHub",-1)])])),[[n,{state:e.viewState,set:a=>{e.options.mode=a},value:e.options?.mode,form:"defaultsForm",options:{}}]]),o("small",nq," Download is faster for reviewers and enables every feature. Streaming is the only option above "+c(e.fmt?.humanFileSize(e.site_options?.MAX_REPO_SIZE*1024))+". ",1)])]),o("section",rq,[t[37]||(t[37]=o("div",{class:"paper-section-eyebrow"},"Expiration",-1)),o("div",iq,[t[35]||(t[35]=o("label",{class:"paper-field-label",for:"expiration"},"When an anonymization expires",-1)),N((l(),d("select",aq,[...t[34]||(t[34]=[o("option",{value:"redirect"},"Redirect visitors to the GitHub repository",-1),o("option",{value:"remove",selected:""},"Remove the anonymized repository",-1)])])),[[n,{state:e.viewState,set:a=>{e.options.expirationMode=a},value:e.options?.expirationMode,form:"defaultsForm",options:{}}]]),t[36]||(t[36]=o("small",{class:"form-text text-muted"}," The expiration date itself is chosen per anonymization. Redirecting reveals the source repository, so pick it only once the review is over. ",-1))])]),e.draftRestored?(l(),d("div",lq,[t[38]||(t[38]=b("Your unsaved draft was restored. ",-1)),o("button",{type:"button",class:"draft-discard",onClick:t[0]||(t[0]=a=>e.discardDraft())},"Discard draft")])):e.unsavedChanges?(l(),d("div",dq,[b(c(e.draftSaved?"Draft saved in this tab for 30 minutes.":"Unsaved changes. Keep this tab open until you save.")+" ",1),o("button",{type:"button",class:"draft-discard",onClick:t[1]||(t[1]=a=>e.discardDraft())},c(e.isUpdate?"Restore saved settings":"Discard changes"),1)])):p("v-if",!0),o("div",uq,[e.error?(l(),d("div",cq,[t[39]||(t[39]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-info"})],-1)),t[40]||(t[40]=b()),o("span",{textContent:c(e.error)},null,8,pq)])):p("v-if",!0),o("div",fq,[o("button",{id:"save",type:"submit",class:"btn btn-ink",disabled:e.saving},[e.message?(l(),d("svg",hq,[...t[41]||(t[41]=[o("use",{href:"#ui-icon-check"},null,-1)])])):p("v-if",!0),b(c(e.saving?"Saving\u2026":e.message?"Saved":"Save defaults"),1)],8,mq),t[42]||(t[42]=o("span",{class:"paper-settings-hint"},"Applies to new anonymizations only. Existing ones keep their settings.",-1))])])],32)),[[i,e.viewState]]),o("section",vq,[t[50]||(t[50]=o("div",{class:"paper-section-eyebrow"},"Account",-1)),o("div",gq,[e.user?.photo?(l(),d("img",{key:0,width:"40",height:"40",class:"rounded-circle",alt:"",src:e.safeUrl(e.user?.photo)},null,8,yq)):p("v-if",!0),o("div",bq,[o("div",wq,"@"+c(e.user?.username),1),t[43]||(t[43]=o("div",{class:"paper-account-meta"},"Signed in with GitHub. Anonymous GitHub only reads your repositories.",-1))]),t[44]||(t[44]=o("a",{class:"btn btn-outline-ink",href:"/api/user/logout",target:"_self"},"Sign out",-1))]),t[51]||(t[51]=o("a",{class:"paper-settings-connection-link",href:"/connections"},[o("i",{class:"fab fa-github","aria-hidden":"true"}),o("span",null,[b("GitHub connections"),o("small",null,"Manage repository access and legacy OAuth.")]),o("span",{"aria-hidden":"true"},"\u2192")],-1)),o("div",kq,[t[48]||(t[48]=o("div",{class:"paper-danger-head"},"Delete account",-1)),t[49]||(t[49]=o("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",Eq,[t[45]||(t[45]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-info"})],-1)),t[46]||(t[46]=b()),o("span",{textContent:c(e.deleteError)},null,8,Cq)])):p("v-if",!0),o("button",{type:"button",class:"btn btn-outline-danger",onClick:t[3]||(t[3]=a=>e.deleteAccount()),disabled:e.deletingAccount},[t[47]||(t[47]=o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-trash"})],-1)),b(c(e.deletingAccount?"Deleting\u2026":"Delete my account"),1)],8,_q)])])])])])}var Sq={class:"pr-page"},Nq={class:"container paper-page pr-page-inner"},Dq={class:"pr-header"},Rq={class:"pr-title-row"},Tq={class:"paper-page-title pr-title"},Aq=["textContent"],Oq={key:1,class:"text-muted"},Iq=["href"],Pq={class:"pr-header-meta"},Vq={key:0,class:"pr-meta-item"},qq=["textContent"],Mq={key:1,class:"pr-meta-item"},$q=["textContent"],Lq={key:2,class:"pr-meta-item"},Uq=["textContent"],Fq={key:0,class:"pr-body-card"},zq={key:1,class:"paper-tabs",role:"tablist"},Hq=["aria-selected","tabindex"],Bq=["aria-selected","tabindex"],jq=["textContent"],Gq={class:"paper-tab-content"},Wq={key:0,role:"tabpanel",id:"pr-diff-panel","aria-labelledby":"pr-diff-tab"},Kq=["innerHTML"],Yq={key:1,role:"tabpanel",id:"pr-comments-panel","aria-labelledby":"pr-comments-tab"},Jq={class:"pr-comments"},Qq={class:"pr-comment"},Xq={class:"pr-comment-head"},Zq={key:0,class:"pr-comment-author"},xq=["textContent"],eM=["textContent"],tM={key:0,class:"pr-comment-body"},oM={key:0,class:"paper-table-empty"};function Ll(e,t){let s=We("markdown");return l(),d("div",Sq,[o("div",Nq,[t[17]||(t[17]=o("div",{class:"paper-crumbs"},[o("a",{href:"/dashboard"},"Reviewer"),b(" \xA0/\xA0 "),o("span",{class:"here"},"Pull request")],-1)),o("header",Dq,[o("div",Rq,[o("h1",Tq,[e.details?.title?(l(),d("span",{key:0,textContent:c(e.details?.title)},null,8,Aq)):p("v-if",!0),e.details?.title?p("v-if",!0):(l(),d("span",Oq,"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]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-edit"})],-1),o("span",{class:"d-none d-md-inline"}," Edit",-1)])],8,Iq)):p("v-if",!0)]),o("div",Pq,[o("span",{class:A(["paper-pill",{good:e.details?.merged,warn:e.details?.state=="open",bad:e.details?.state=="closed"&&!e.details?.merged}])},[o("span",{class:A(["status-dot",{"status-ready":e.details?.merged,"status-error":e.details?.state=="closed"&&!e.details?.merged}])},null,2),b(" "+c(e.details?.merged?"Merged":e.fmt.title(e.details?.state)),1)],2),e.details?.baseRepositoryFullName?(l(),d("span",Vq,[t[5]||(t[5]=o("i",{class:"fab fa-github"},null,-1)),t[6]||(t[6]=b()),o("span",{textContent:c(e.details?.baseRepositoryFullName)},null,8,qq)])):p("v-if",!0),e.details?.updatedDate?(l(),d("span",Mq,[t[7]||(t[7]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-clock"})],-1)),t[8]||(t[8]=b()),o("span",{textContent:c(e.fmt?.date(e.details?.updatedDate))},null,8,$q)])):p("v-if",!0),e.details?.anonymizeDate?(l(),d("span",Lq,[t[9]||(t[9]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})],-1)),t[10]||(t[10]=b(" Anonymized ",-1)),o("span",{textContent:c(e.fmt?.date(e.details?.anonymizeDate))},null,8,Uq)])):p("v-if",!0)])]),e.details?.body?(l(),d("section",Fq,[t[11]||(t[11]=o("div",{class:"paper-section-eyebrow"},"Description",-1)),Ce(s,{content:e.details?.body},null,8,["content"])])):p("v-if",!0),e.details?.diff||e.details?.comments?(l(),d("nav",zq,[e.details?.diff?(l(),d("button",{key:0,class:A(["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]=r=>e.previewTabKeydown(r)),onClick:t[1]||(t[1]=r=>e.tabState.active="diff")},[...t[12]||(t[12]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-code"})],-1),b(" Diff ",-1)])],42,Hq)):p("v-if",!0),e.details?.comments?(l(),d("button",{key:1,class:A(["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]=r=>e.previewTabKeydown(r)),onClick:t[3]||(t[3]=r=>e.tabState.active="comments")},[t[13]||(t[13]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-comment"})],-1)),o("span",{textContent:c(e.fmt.plural(e.details?.comments?.length,{0:"No comments",one:"1 comment",other:"{} comments"}))},null,8,jq)],42,Bq)):p("v-if",!0)])):p("v-if",!0),o("div",Gq,[e.details?.diff&&e.tabState?.active=="diff"?(l(),d("div",Wq,[o("div",{class:"pr-diff",innerHTML:e.sanitize(e.fmt?.diff(e.details?.diff))},null,8,Kq)])):p("v-if",!0),e.details?.comments&&e.tabState?.active=="comments"?(l(),d("div",Yq,[o("ul",Jq,[(l(!0),d(X,null,re(e.details?.comments,(r,n)=>(l(),d("li",Qq,[o("div",Xq,[r?.author?(l(),d("span",Zq,[t[14]||(t[14]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-user"})],-1)),t[15]||(t[15]=b(" @",-1)),o("span",{textContent:c(r?.author)},null,8,xq)])):p("v-if",!0),r?.updatedDate?(l(),d("span",{key:1,class:"pr-comment-date",textContent:c(e.fmt?.date(r?.updatedDate))},null,8,eM)):p("v-if",!0)]),r?.body?(l(),d("div",tM,[Ce(s,{content:r?.body},null,8,["content"])])):p("v-if",!0)]))),256)),e.details?.comments?.length?p("v-if",!0):(l(),d("li",oM,[...t[16]||(t[16]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-comment"})],-1),o("span",null,"No comments on this pull request.",-1)])]))])])):p("v-if",!0)])])])}var sM={class:"container paper-page status-page"},nM={class:"d-flex align-items-center justify-content-between flex-wrap",style:{gap:"12px"}},rM={class:"paper-page-title"},iM=["textContent"],aM={key:1},lM={class:"paper-settings-section"},dM=["textContent"],uM={key:0,class:"paper-section-copy"},cM={key:1,class:"paper-ratelimit-card",role:"status"},pM={class:"paper-error-msg"},fM=["aria-valuenow"],mM={class:"paper-progress-label"},hM=["textContent"],vM={key:0},gM=["textContent"],yM={class:"paper-progress-pct"},bM={key:3,class:"paper-error-card",role:"alert"},wM={key:0,class:"paper-error-msg"},kM={key:1,class:"paper-error-msg"},EM={class:"paper-error-actions"},CM=["href"],_M={key:4,class:"share-link"},SM={class:"share-link-row"},NM=["value"],DM={class:"ui-icon","aria-hidden":"true"},RM=["href"],TM=["textContent"],AM={class:"share-link-actions"},OM=["href"],IM=["href"];function Ul(e,t){return l(),d("div",sM,[t[16]||(t[16]=o("div",{class:"paper-crumbs"},[b("Anonymization \xA0/\xA0 "),o("span",{class:"here"},"Status")],-1)),o("div",nM,[o("div",null,[o("h1",rM,[t[2]||(t[2]=b("Status of ",-1)),o("em",null,c(e.repoId),1)]),t[3]||(t[3]=o("p",{class:"paper-page-lede"},"Track progress as your anonymization is prepared.",-1))]),o("span",{class:A(["status-pill",{"status-pill-ready":e.repo?.status=="ready","status-pill-error":e.repo?.status=="error","status-pill-removed":e.repo?.status=="removed"||e.repo?.status=="expired","status-pill-ratelimit":e.rateLimitResetAt}])},[o("span",{class:A(["status-dot",{"status-ready":e.repo?.status=="ready","status-error":e.repo?.status=="error","status-removed":e.repo?.status=="removed"||e.repo?.status=="expired","status-ratelimit":e.rateLimitResetAt}])},null,2),e.rateLimitResetAt?p("v-if",!0):(l(),d("span",{key:0,textContent:c(e.fmt?.title(e.repo?.status))},null,8,iM)),e.rateLimitResetAt?(l(),d("span",aM,"Rate limited")):p("v-if",!0)],2)]),o("section",lM,[o("div",{class:"paper-section-eyebrow",textContent:c(e.repo?.status=="ready"?"Your anonymous link":"Progress")},null,8,dM),e.repo?.status!="ready"?(l(),d("p",uM,[...t[4]||(t[4]=[b(" The repository will take a few minutes to get ready, depending on its size. Visit the ",-1),o("a",{href:"/faq"},"FAQ",-1),b(" for more information. ",-1)])])):p("v-if",!0),e.rateLimitResetAt?(l(),d("div",cM,[t[7]||(t[7]=ce('<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)),o("p",pM,[t[5]||(t[5]=b("Anonymization will resume automatically in ",-1)),o("strong",null,c(e.rateLimitCountdown),1),t[6]||(t[6]=b(". No action needed \u2014 the job is queued and will continue where it left off.",-1))])])):p("v-if",!0),e.repo?.status!="error"&&e.repo?.status!="ready"&&!e.rateLimitResetAt?(l(),d("div",{key:2,class:A(["paper-progress",{"paper-progress-ready":e.repo?.status=="ready"}]),role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.progress},[o("div",{class:"paper-progress-bar",style:qe("width: "+e.progress+"%;")},null,4),o("div",mM,[o("span",{textContent:c(e.fmt?.title(e.repo?.status))},null,8,hM),e.repo?.statusMessage?(l(),d("span",vM,[t[8]||(t[8]=b("\xA0\xB7\xA0",-1)),o("span",{textContent:c(e.repo?.statusMessage)},null,8,gM)])):p("v-if",!0),o("span",yM,c(e.progress||0)+"%",1)])],10,fM)):p("v-if",!0),e.repo?.status=="error"&&!e.rateLimitResetAt?(l(),d("div",bM,[t[11]||(t[11]=ce('<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",wM,c(e.fmt?.translate("ERRORS."+e.repo?.statusMessage)),1)):p("v-if",!0),e.repo?.statusMessage?p("v-if",!0):(l(),d("p",kM,"No additional details were reported. The most common causes are private repositories, missing branches, and rate limits.")),t[12]||(t[12]=o("ul",{class:"paper-error-hints"},[o("li",null,"Make sure the source URL points to a repository or pull request you can access."),o("li",null,"Check that the chosen branch and commit still exist on GitHub."),o("li",null,"If you just signed in, the access token may need a moment to propagate \u2014 try again.")],-1)),o("div",EM,[o("a",{class:"btn btn-ink",href:e.safeUrl("/anonymize/"+e.repoId)},[...t[9]||(t[9]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-edit"})],-1),b(" Edit anonymization",-1)])],8,CM),t[10]||(t[10]=ce('<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))])])):p("v-if",!0),e.repo?.status=="ready"?(l(),d("div",_M,[t[15]||(t[15]=o("p",{class:"paper-section-copy"},"Reviewers can browse the repository at this address without seeing who you are.",-1)),o("div",SM,[o("input",{id:"share-url",class:"form-control share-link-input",readonly:"","aria-label":"Anonymous link",value:e.shareUrl,onFocus:t[0]||(t[0]=s=>s.target.select())},null,40,NM),o("button",{type:"button",class:"btn btn-ink",onClick:t[1]||(t[1]=s=>e.copyShareUrl())},[(l(),d("svg",DM,[o("use",{href:e.copied?"#ui-icon-check":"#project-icon-copy"},null,8,RM)])),o("span",{"aria-live":"polite",textContent:c(e.copied?"Copied":"Copy link")},null,8,TM)])]),o("div",AM,[o("a",{class:"btn",target:"_self",href:e.safeUrl("/r/"+e.repoId+"/")},[...t[13]||(t[13]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-eye"})],-1),b(" Open repository ",-1)])],8,OM),e.repo?.options?.page?(l(),d("a",{key:0,class:"btn",target:"_self",href:e.safeUrl("/w/"+e.repoId+"/")},[...t[14]||(t[14]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-globe"})],-1),b(" Open GitHub page ",-1)])],8,IM)):p("v-if",!0)])])):p("v-if",!0)]),t[17]||(t[17]=ce('<section class="paper-settings-section"><div class="paper-section-eyebrow">Support Anonymous GitHub</div><p class="paper-section-copy"> A small team keeps this running. If it helps you, please consider contributing back \u2014 in code, ideas, or coffee. </p><div class="paper-support-grid"><a class="paper-support-card" href="https://github.com/tdurieux/anonymous_github/" target="_blank" rel="noopener"><div class="paper-support-eyebrow"><svg class="ui-icon" aria-hidden="true"><use href="#project-type-repo"></use></svg> Contribute</div><p>Collaborate by implementing new features and fixing bugs. Help with new file formats or deployment is welcome.</p><span class="paper-support-cta">Open on GitHub <svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-arrow-right"></use></svg></span></a><a class="paper-support-card" href="https://github.com/tdurieux/anonymous_github/issues/new?template=issue_report.yml" target="_blank" rel="noopener"><div class="paper-support-eyebrow"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-comment"></use></svg> Feedback</div><p>Tell us about bugs and missing features in Anonymous GitHub itself. Questions about an anonymized repository go to its authors.</p><span class="paper-support-cta">File an issue <svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-arrow-right"></use></svg></span></a><a class="paper-support-card" href="https://github.com/sponsors/tdurieux/" target="_blank" rel="noopener"><div class="paper-support-eyebrow"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-heart"></use></svg> Sponsor</div><p>Server costs hover around $25 a month. Any contribution helps keep the lights on.</p><span class="paper-support-cta">GitHub Sponsors <svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-arrow-right"></use></svg></span></a></div></section>',1))])}var nn={"partials/connections.htm":pl,"partials/signin.htm":fl,"partials/404.htm":ml,"partials/admin/conferences.htm":hl,"partials/admin/errors.htm":vl,"partials/admin/overview.htm":gl,"partials/admin/queues.htm":yl,"partials/admin/repositories.htm":bl,"partials/admin/user.htm":wl,"partials/admin/users.htm":kl,"partials/anonymize.htm":El,"partials/anonymizePullRequest.htm":Cl,"partials/claim.htm":_l,"partials/conference.htm":Sl,"partials/conferences.htm":Nl,"partials/dashboard.htm":Dl,"partials/explorer.htm":Rl,"partials/faq.htm":Tl,"partials/gist.htm":Al,"partials/header.htm":Ol,"partials/home.htm":Il,"partials/loading.htm":Pl,"partials/newConference.htm":Vl,"partials/pageView.htm":ql,"partials/pr-dashboard.htm":Ml,"partials/profile.htm":$l,"partials/pullRequest.htm":Ll,"partials/status.htm":Ul};var PM={class:"ui-icon-definitions","aria-hidden":"true",focusable:"false"};function Fl(e,t){return l(),d("svg",PM,[...t[0]||(t[0]=[ce('<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-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-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 zl(e,t){e==="partials/explorer.htm"&&(t.sidebarCollapsed=window.matchMedia?.("(max-width: 767px)").matches||!1),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 r={"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(r){let n=ot(()=>t.fmt.orderBy(t.fmt.filter(r[1](),t[r[2]]),t.orderBy));Object.defineProperty(t,r[0],{configurable:!0,get:()=>n.value})}}function Hl(e=(...t)=>fetch(...t)){async function t(r,n,i,a={}){let u=new URL(n,window.location.href);for(let[h,k]of Object.entries(a.params||{}))if(k!=null)for(let m of Array.isArray(k)?k:[k])u.searchParams.append(h,typeof m=="object"?JSON.stringify(m):m);let f=new AbortController,v;a.timeout?.then?a.timeout.then(()=>f.abort()):a.timeout&&(v=setTimeout(()=>f.abort(),a.timeout));try{let h={Accept:"application/json, text/plain, */*",...a.headers},k=document.cookie.match(/(?:^|;\s*)XSRF-TOKEN=([^;]*)/);k&&u.origin===window.location.origin&&(h["X-XSRF-TOKEN"]=decodeURIComponent(k[1]));let m;i!==void 0&&(i instanceof FormData?m=i:(h["Content-Type"]||(h["Content-Type"]="application/json;charset=utf-8"),m=JSON.stringify(i)));let E=await e(u.href,{method:r,headers:h,body:m,credentials:"same-origin",signal:f.signal}),y=await E.text(),w=y;if(a.transformResponse)w=a.transformResponse(y);else if(y&&(/json/i.test(E.headers.get("content-type")||"")||/^[\[{]/.test(y.trim())))try{w=JSON.parse(y)}catch{}let D={data:w,status:E.status,headers:R=>E.headers.get(R)};if(!E.ok)throw D;return D}catch(h){throw h.name==="AbortError"?{status:-1,data:null}:h}finally{clearTimeout(v)}}let s={};for(let r of["get","delete","head"])s[r]=(n,i)=>t(r.toUpperCase(),n,void 0,i);for(let r of["post","put","patch"])s[r]=(n,i,a)=>t(r.toUpperCase(),n,i,a);return s}var Bl={resolve:e=>Promise.resolve(e),reject:e=>Promise.reject(e),all:e=>Promise.all(e),defer(){let e,t;return{promise:new Promise((r,n)=>{e=r,t=n}),resolve:e,reject:t}}};var jl=function(e){function t(s){return s=s||{used:0,total:0},s.unlimited=!s.total,s.percent=s.unlimited?0:Math.min(100,s.used*100/s.total),s.level=s.unlimited?"unlimited":s.percent>=95?"danger":s.percent>=80?"warn":"ok",s}return{decorate:t,load:function(){return e.get("/api/user/quota").then(s=>{let r=s.data||{};return r.storage=t(r.storage),r.file=t(r.file),r.repository=t(r.repository),r})}}};var ir={};dd(ir,{bigNum:()=>qM,date:()=>WM,diff:()=>FM,filter:()=>jM,humanFileSize:()=>VM,humanTime:()=>MM,limitTo:()=>BM,number:()=>zM,orderBy:()=>GM,plural:()=>KM,statusLabel:()=>LM,statusMsg:()=>UM,title:()=>$M,uppercase:()=>HM});var VM=e=>window.humanFileSize(e),qM=(function(){return function(t){let s=Number(t)||0,r=Math.abs(s);return r<1e3?String(s):r<1e4?(s/1e3).toFixed(1).replace(/\.0$/,"")+"k":r<1e6?Math.round(s/1e3)+"k":r<1e7?(s/1e6).toFixed(1).replace(/\.0$/,"")+"M":Math.round(s/1e6)+"M"}})(),MM=(function(){return function(t){if(!t)return"never";t instanceof Date&&(t=Math.round((Date.now()-t)/1e3)),(typeof t=="string"||typeof t=="number")&&(t=Math.round((Date.now()-new Date(t))/1e3));var s=t<0?"from now":"ago";if(Math.abs(t)>7200*24){let f=new Date;return f.setSeconds(f.getSeconds()-t),"on "+f.toLocaleDateString(void 0,{day:"numeric",month:"short",year:"numeric"})}t=Math.abs(t);for(var r=[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],n=["year","month","week","day","hour","minute","second"],i=0;i<n.length;i++){var a=Math.floor(r[i]),u=n[i];if(a>1&&(u+="s"),a>=1)return a+" "+u+" "+s}return"0 seconds "+s}})(),$M=(function(){return function(e){if(!e)return e;e=e.toLowerCase();var t=e.split(" "),s=t.map(function(r){return r.charAt(0).toUpperCase()+r.substring(1,r.length)});return s.join(" ")}})(),LM=(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 s=String(t).replace(/[_-]+/g," ").toLowerCase();return s.charAt(0).toUpperCase()+s.slice(1)}})(),UM=(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 s=t.match(/^rate_limited:(\d+)$/);if(s){var r=Math.max(0,Math.ceil((parseInt(s[1],10)-Date.now())/1e3));if(r<=0)return"Rate limited \u2014 resuming soon";var n=Math.floor(r/60),i=r%60;return"Rate limited \u2014 retrying in "+(n>0?n+"m "+i+"s":i+"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}})(),FM=(function(e){let t=r=>r.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");function s(r,n){if(!n)return;let i=n.newPath&&n.newPath!=="/dev/null"?n.newPath:n.oldPath||"",a=n.oldPath==="/dev/null"?"added":n.newPath==="/dev/null"?"deleted":n.oldPath&&n.newPath&&n.oldPath!==n.newPath?"renamed":"modified";if(r.push('<div class="diff-file-block">'),r.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(i)+'</span><span class="diff-file-status diff-file-status-'+a+'">'+a+"</span></div>"),n.lines.length){r.push('<table class="diff-file-table"><tbody>');for(let u of n.lines)r.push('<tr class="diff-row diff-row-'+u.kind+'"><td class="diff-gutter diff-gutter-old">'+(u.oldNo||"")+'</td><td class="diff-gutter diff-gutter-new">'+(u.newNo||"")+'</td><td class="diff-sign">'+(u.kind==="add"?"+":u.kind==="remove"?"-":u.kind==="hunk"?"@":"")+'</td><td class="diff-code">'+t(u.text)+"</td></tr>");r.push("</tbody></table>")}r.push("</div>")}return function(r){if(!r)return r;let n=[],i=null,a=0,u=0,f=()=>(i||(i={oldPath:"",newPath:"",lines:[]}),i),v=()=>{i&&(i.lines.length||i.oldPath||i.newPath)&&(s(n,i),i=null)},h=r.split(`
`);for(let k=0;k<h.length;k++){let m=h[k];if(m.startsWith("diff --git")){v(),f();continue}if(m.startsWith("--- ")){i&&i.lines.length&&v(),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),u=parseInt(E[2],10)),f().lines.push({kind:"hunk",oldNo:"",newNo:"",text:m});continue}i&&(m.startsWith("+")?(i.lines.push({kind:"add",oldNo:"",newNo:u,text:m.slice(1)}),u++):m.startsWith("-")?(i.lines.push({kind:"remove",oldNo:a,newNo:"",text:m.slice(1)}),a++):(i.lines.push({kind:"ctx",oldNo:a,newNo:u,text:m.startsWith(" ")?m.slice(1):m}),a++,u++))}}return s(n,i),n.join("")}})({trustAsHtml:e=>e});function zM(e,t){return e==null?"":Number(e).toLocaleString(void 0,t==null?{}:{minimumFractionDigits:t,maximumFractionDigits:t})}function HM(e){return String(e??"").toUpperCase()}function BM(e,t,s=0){return(e||[]).slice(s,s+t)}function jM(e,t){return Array.isArray(e)?typeof t=="function"?e.filter(t):e:[]}function GM(e,t){if(!t)return e||[];let s=Array.isArray(t)?t:[t];return[...e||[]].sort((r,n)=>{for(let i of s){let a=i[0]==="-"?-1:1;i=i.replace(/^[+-]/,"");let u=i.split(".").reduce((v,h)=>v?.[h],r),f=i.split(".").reduce((v,h)=>v?.[h],n);if(typeof u=="string"&&(u=u.toLowerCase()),typeof f=="string"&&(f=f.toLowerCase()),u!==f)return(u==null?-1:f==null?1:u<f?-1:1)*a}return 0})}function WM(e,t){if(!e)return"";let s=new Date(e);if(isNaN(s))return String(e);if(!t||t==="mediumDate")return s.toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"});let r={yyyy:s.getFullYear(),MMM:s.toLocaleDateString(void 0,{month:"short"}),MM:String(s.getMonth()+1).padStart(2,"0"),dd:String(s.getDate()).padStart(2,"0"),d:s.getDate(),HH:String(s.getHours()).padStart(2,"0"),mm:String(s.getMinutes()).padStart(2,"0"),ss:String(s.getSeconds()).padStart(2,"0")};return t.replace(/yyyy|MMM|MM|dd|HH|mm|ss|d/g,n=>r[n])}function KM(e,t){return(t?.[e]??t?.[e===1?"one":"other"]??"").replace(/\{\}/g,e??0)}var ar={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:"Unknown error, contact the admin.",unreachable:"Anonymous GitHub is unreachable, contact the admin.",request_error:"Unable to download the file, check your connection or contact the admin.",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:"The repository was not found on GitHub. Check the URL and spelling, make sure you are signed in to the account that can see it, and confirm the repo isn't hidden under an org that restricts third-party app access.",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.",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.",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.",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:"Your GitHub access token has expired. Please log out and log in again to refresh it.",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."},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:"This repository uses git submodules. Submodule contents are not included in the anonymized repository and appear as empty folders."}};var Gl={name:"htmlDoc",props:["content","baseUrl","allowScripts"],setup(e){let t=et(null);return qt(()=>{let r=[t.value][0];r.classList.add("html-doc");function n(){r.innerHTML="";let i=e.content;if(typeof i!="string")return;let a=document.createElement("iframe");a.className="html-doc-frame",a.setAttribute("title","Rendered HTML document");let u=["allow-popups","allow-popups-to-escape-sandbox"];e.allowScripts&&u.push("allow-scripts","allow-forms","allow-modals"),a.setAttribute("sandbox",u.join(" ")),a.setAttribute("referrerpolicy","no-referrer"),r.appendChild(a);let f="";e.baseUrl&&(f='<base href="'+e.baseUrl.replace(/&/g,"&amp;").replace(/"/g,"&quot;")+'">'),a.srcdoc=f+i}Be(()=>e.content,n,{immediate:!0}),Be(()=>e.baseUrl,n,{immediate:!0}),Be(()=>e.allowScripts,n,{immediate:!0})}),()=>ke("html-doc",{ref:t})}};var Wl={name:"pdfviewer",props:["src"],setup(e){let t=et(null);return qt(()=>{let s=[t.value],r=400,n=[.5,.75,1,1.25,1.5,2,3],i=1e3,a=s[0];a.classList.add("pdf-viewer");let u=null,f=[],v=!1,h=null,k=1,m=1,E=0,y=0,w=612/792,D=0,R=null,T=new Map,I=0;function H(M){let g=T.get(M);g&&(g.cancelled=!0,g.task?.cancel?.(),T.delete(M));let S=M.querySelector("canvas");S&&(S.width=0,S.height=0),M.innerHTML="",delete M.dataset.state}let q=document.createElement("div");q.className="pdf-toolbar";let U=document.createElement("div");U.className="pdf-pages",U.tabIndex=0,U.setAttribute("aria-label","PDF pages"),a.appendChild(q),a.appendChild(U);function ae(M,g,S){let V=document.createElement("button");return V.type="button",V.className="pdf-toolbar-btn",V.title=g,V.setAttribute("aria-label",g),V.innerHTML='<i class="fas '+M+'"></i>',V.addEventListener("click",S),V}let ie=ae("fa-chevron-up","Previous page",function(){_e(m-1)}),_=ae("fa-chevron-down","Next page",function(){_e(m+1)}),O=document.createElement("input");O.type="text",O.className="pdf-toolbar-page",O.setAttribute("aria-label","Page number"),O.title="Page number \u2014 type a page and press Enter",O.addEventListener("keydown",function(M){M.key==="Enter"&&(_e(parseInt(O.value,10)),O.blur())}),O.addEventListener("blur",function(){O.value=String(m)});let Y=document.createElement("span");Y.className="pdf-toolbar-count";let Z=ae("fa-search-minus","Zoom out",function(){C(n[Math.max(0,pe()-1)])}),te=ae("fa-search-plus","Zoom in",function(){C(n[Math.min(n.length-1,pe()+1)])}),J=document.createElement("button");J.type="button",J.className="pdf-toolbar-btn pdf-toolbar-zoom",J.title="Reset zoom to fit the width",J.setAttribute("aria-label","Reset zoom to fit the width"),J.addEventListener("click",function(){C(1)}),q.appendChild(ie),q.appendChild(_);let se=document.createElement("span");se.className="pdf-toolbar-group",se.appendChild(O),se.appendChild(Y),q.appendChild(se);let ue=document.createElement("span");ue.className="pdf-toolbar-group pdf-toolbar-right",ue.appendChild(Z),ue.appendChild(J),ue.appendChild(te),q.appendChild(ue);function pe(){let M=0;for(let g=0;g<n.length;g++)Math.abs(n[g]-k)<Math.abs(n[M]-k)&&(M=g);return M}function le(){let M=u?u.numPages:0;q.style.display=M?"":"none",Y.textContent="/ "+M,document.activeElement!==O&&(O.value=String(m)),ie.disabled=m<=1,_.disabled=m>=M,J.textContent=Math.round(k*100)+"%",Z.disabled=pe()===0,te.disabled=pe()===n.length-1}function Oe(M){let g=f[M-1];g&&(U.scrollTop+=g.getBoundingClientRect().top-U.getBoundingClientRect().top)}function _e(M){if(!u||isNaN(M))return;let g=Math.min(Math.max(1,M),u.numPages);f[g-1]&&(Oe(g),m=g,E=g,y=Date.now()+800,le(),Ee())}function Ue(){if(!f.length||Date.now()<y)return;let M=U.getBoundingClientRect(),g=M.top+M.height/2,S=1;for(let V=0;V<f.length&&f[V].getBoundingClientRect().top<=g;V++)S=V+1;S!==m&&(m=S,le())}function Re(){D++,f.forEach(H),R&&(Promise.resolve(R.destroy?.()).catch(()=>{}),R=null),h&&(clearTimeout(h),h=null),u&&(u.destroy(),u=null),f=[],m=1,U.innerHTML="",le()}function $e(){U.innerHTML="";let M=document.createElement("div");M.className="pdf-viewer-error",M.textContent="This PDF could not be displayed.",U.appendChild(M)}function Pe(){let M=Math.max(120,U.clientWidth-24);return Math.round(Math.min(M,i)*k)}function He(M,g,S){let V=window.devicePixelRatio||1,z=M.getViewport({scale:1}),j=parseFloat(g.style.width);if(!j)return;let L=M.getViewport({scale:j/z.width*V}),G=document.createElement("canvas");return G.width=Math.floor(L.width),G.height=Math.floor(L.height),G.style.width=j+"px",G.style.height=Math.floor(L.height/V)+"px",g.innerHTML="",g.appendChild(G),g.style.height=G.style.height,S.task=M.render({canvasContext:G.getContext("2d"),viewport:L}),S.task.promise}function Ee(){if(!u)return;let M=D,g=U.getBoundingClientRect(),S=g.top-r,V=g.top+U.clientHeight+r,z=f.map((L,G)=>({slot:L,i:G,rect:L.getBoundingClientRect()})).filter(L=>L.rect.top<=V&&L.rect.bottom>=S).sort((L,G)=>Math.abs(L.rect.top-g.top)-Math.abs(G.rect.top-g.top)).slice(0,6),j=new Set(z.map(L=>L.slot));for(let L of T.keys())j.has(L)||H(L);for(let{slot:L,i:G}of z){if(L.dataset.state||I>=2)continue;let ee={cancelled:!1,task:null};T.set(L,ee),I++,L.dataset.state="rendering";let x;u.getPage(G+1).then(K=>{if(x=K,!(ee.cancelled||M!==D))return He(x,L,ee)}).then(()=>{ee.cancelled||M!==D||(L.dataset.state="done",E&&Date.now()<y&&Oe(E))}).catch(()=>{!ee.cancelled&&M===D&&(L.dataset.state="failed")}).finally(()=>{I--,x?.cleanup?.(),u&&Ee()})}}function F(){v||(v=!0,window.requestAnimationFrame(function(){v=!1,Ue(),Ee()}))}function oe(){let M=!1;function g(){M||(M=!0,Ee())}window.requestAnimationFrame(g),window.setTimeout(g,50)}function Q(){D++,f.forEach(H);let M=Pe();f.forEach(function(g){delete g.dataset.state,g.innerHTML="",g.style.width=M+"px",g.style.height=Math.round(M/w)+"px"}),Ee()}function C(M){if(!u||!f.length||M===k)return;let g=m;k=M,le(),Q(),_e(g)}function P(){u&&(h&&clearTimeout(h),h=setTimeout(function(){h=null,u&&f.length&&Q()},250))}function B(M){if(Re(),!M)return;let g=D;R=pdfjsLib.getDocument({url:M,isEvalSupported:!1,standardFontDataUrl:"/script/external/pdf-standard-fonts/",cMapUrl:"/script/external/pdf-cmaps/",cMapPacked:!0}),R.promise.then(function(S){if(g!==D){S.destroy();return}return u=S,u.getPage(1).then(function(V){if(g!==D)return;let z=V.getViewport({scale:1});z.width&&z.height&&(w=z.width/z.height);let j=Pe();for(let L=1;L<=u.numPages;L++){let G=document.createElement("div");G.className="pdf-viewer-page",G.style.width=j+"px",G.style.height=Math.round(j/w)+"px",U.appendChild(G),f.push(G)}le(),oe()})}).catch(function(){g===D&&$e()})}U.addEventListener("scroll",F,{passive:!0}),$(window).on("resize",P),le(),Be(()=>e.src,B,{immediate:!0}),ao(function(){U.removeEventListener("scroll",F),$(window).off("resize",P),Re()})}),()=>ke("pdfviewer",{ref:t})}};var JM={key:0,class:"quota-row quota-usage"},QM={class:"quota-header"},XM={class:"quota-label"},ZM={class:"project-type-svg","aria-hidden":"true"},xM=["href"],e8={key:0,class:"quota-percent"},t8={key:1,class:"quota-unlimited-tag"},o8={class:"quota-value"},s8={key:0},n8=["aria-label","aria-valuenow","aria-valuemax","aria-valuetext"],r8={key:1,class:"quota-remaining"},i8={key:2,class:"quota-remaining quota-limit"};function Kl(e,t){return e.quota?(l(),d("div",JM,[(l(),d(X,null,re([{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"}],s=>o("div",{class:A(["quota-item","quota-"+e.quota[s.key].level]),key:s.key},[o("div",QM,[o("span",XM,[(l(),d("svg",ZM,[o("use",{href:"#"+s.icon},null,8,xM)])),b(c(s.label),1)]),e.quota[s.key].unlimited?p("v-if",!0):(l(),d("span",e8,c(e.fmt.number(e.quota[s.key].percent,0))+"% used",1)),e.quota[s.key].unlimited?(l(),d("span",t8,"Unlimited")):p("v-if",!0)]),o("div",o8,[o("strong",null,c(e.formatAmount(e.quota[s.key].used,s.kind)),1),e.quota[s.key].unlimited?p("v-if",!0):(l(),d("span",s8," / "+c(e.formatAmount(e.quota[s.key].total,s.kind)),1))]),e.quota[s.key].unlimited?p("v-if",!0):(l(),d("div",{key:0,class:A(["quota-track","quota-"+e.quota[s.key].level]),role:"progressbar","aria-valuemin":"0","aria-label":s.label+" quota","aria-valuenow":Math.min(e.quota[s.key].used,e.quota[s.key].total),"aria-valuemax":e.quota[s.key].total,"aria-valuetext":e.fmt.number(e.quota[s.key].percent,0)+"% used"},[e.quota[s?.key].unlimited?p("v-if",!0):(l(),d("div",{key:0,class:"quota-fill",style:qe({width:e.quota[s.key].percent+"%"})},null,4))],10,n8)),!e.quota[s.key].unlimited&&e.quota[s.key].used<e.quota[s.key].total?(l(),d("p",r8,c(e.formatAmount(e.quota[s.key].total-e.quota[s.key].used,s.kind))+" "+c(s.key==="repository"?"repositories available":s.key==="file"?"files available":"available"),1)):p("v-if",!0),!e.quota[s.key].unlimited&&e.quota[s.key].used>=e.quota[s.key].total?(l(),d("p",i8,c(e.quota[s.key].used>e.quota[s.key].total?"Limit exceeded":"Limit reached"),1)):p("v-if",!0)],2)),64))])):p("v-if",!0)}var a8={props:["quota","fmt"],setup(e){return{formatAmount:(t,s)=>s==="bytes"?e.fmt.humanFileSize(t).replace(/([a-zA-Z]+)$/," $1"):e.fmt.number(t)}},render:Kl},l8=new Set(he),Jl={props:["content","terms","options"],setup(e){let t=et(null),s=()=>{t.value.innerHTML=renderMD(e.content||"",window.location.pathname+"/../")};return qt(()=>{s(),Be(()=>[e.content,e.terms,e.options],s,{deep:!0})}),()=>ke("markdown",{ref:t})}},d8={props:["file","terms","options"],setup(e){let t=et(null),s=()=>st(()=>t.value?.querySelectorAll("pre code").forEach(r=>window.Prism?.highlightElement(r)));return qt(s),Be(()=>[e.file?.content,e.terms,e.options],s,{deep:!0}),()=>{let r=e.file||{},n=(r.filename||"").split(".").pop().toLowerCase();if(["md","markdown"].includes(n)||r.language==="Markdown")return ke("gist-file",{ref:t},ke(Jl,{content:r.content,terms:e.terms,options:e.options}));let i={js:"javascript",jsx:"javascript",ts:"javascript",typescript:"javascript",py:"python",html:"markup",xml:"markup",svg:"markup",sh:"bash"},a=(r.language||n||"none").toLowerCase();return ke("gist-file",{ref:t},ke("pre",{class:"line-numbers"},ke("code",{class:"language-"+(i[a]||a),key:r.content},r.content||"")))}}},u8={props:["file","content"],setup(e){let t=et(null),s=0,r,n=async()=>{let i=++s;r?.abort(),r=new AbortController;try{let a=e.content?JSON.parse(e.content):await fetch(e.file?.download_url||e.file,{signal:r.signal}).then(u=>{if(!u.ok)throw Error("Notebook request failed");return u.json()});if(await Xt("notebook"),i!==s)return;t.value.innerHTML=DOMPurify.sanitize(nb.parse(a).render()),t.value.querySelectorAll("pre code").forEach(u=>window.Prism?.highlightElement(u))}catch(a){i===s&&a.name!=="AbortError"&&(t.value.textContent="Unable to render the notebook.")}};return qt(()=>{n(),Be(()=>[e.file,e.content],n)}),ao(()=>{s++,r?.abort()}),()=>ke("notebook",{ref:t})}},c8={props:["stats"],setup(e){return()=>{let t=Object.entries(e.stats||{}).filter(([,r])=>r.code),s=t.reduce((r,[,n])=>r+n.code,0);return ke("loc",t.map(([r,n])=>ke("div",{class:"lang",title:`${r}: ${n.code.toLocaleString()} lines`,style:{width:n.code*100/s+"%",background:langColors[r]}})))}}},Ql={Markdown:Jl,GistFile:d8,Notebook:u8,Loc:c8,HtmlDoc:Gl,QuotaUsage:a8,Pdfviewer:ci(async()=>(await Xt("pdf"),pdfjsLib.GlobalWorkerOptions.workerSrc="/script/external/pdf.worker.js",Wl))},Xl={async mounted(e,{value:t}){e._editorValue=t;try{if(await pr(),e._editorDisposed)return;let s=e._editorValue,r=ace.edit(e);e._editor=r,r.setValue(String(s.content??""),-1),Yl(e,s.options),e._editorCleanup=s.options?.onLoad?.(r)}catch(s){e._editorDisposed||(e.textContent=s.message)}},updated(e,{value:t}){e._editorValue=t,e._editor&&(e._editor.getValue()!==String(t.content??"")&&e._editor.setValue(String(t.content??""),-1),Yl(e,t.options))},beforeUnmount(e){e._editorDisposed=!0,e._editorCleanup?.(),e._editor?.destroy()}};function Yl(e,t={}){let s=l8.has(t.mode)?t.mode:"text";e._editor.session.setMode("ace/mode/"+s),t.theme&&e._editor.setTheme("ace/theme/"+t.theme),e._editor.setReadOnly(t.readOnly!==!1)}var Zl={mounted(e){if(!window.IntersectionObserver)return;let t=[...e.querySelectorAll('a[href^="#"]')],s=new Set,r=new IntersectionObserver(n=>{n.forEach(a=>a.isIntersecting?s.add(a.target.id):s.delete(a.target.id));let i=t.find(a=>s.has(a.hash.slice(1)));t.forEach(a=>a.classList.toggle("active",a===i))},{rootMargin:"-20% 0px -60% 0px",threshold:0});st(()=>t.forEach(n=>{let i=document.getElementById(n.hash.slice(1));i&&r.observe(i)})),e._observer=r},beforeUnmount(e){e._observer?.disconnect()}};function p8(e){let t={children:[]},s=new Map([["",t]]);function r(n){if(s.has(n))return s.get(n);let i=n.lastIndexOf("/"),a=r(i<0?"":n.slice(0,i)),u={name:n.slice(i+1),children:[]};return s.set(n,u),a.children.push(u),u}for(let n of e||[]){let i=n.path?`${n.path}/${n.name}`:n.name;n.size==null?r(i):r(n.path||"").children.push({...n})}return t.children}var xl={name:"FileTree",props:["file","parent","searchQuery","searchResults","page"],setup(e){let t=Ua(),s=et(null),r=ze(Object.create(null)),n=null,i=ot(()=>p8(e.file)),a=()=>"/"+(Array.isArray(t.params.path)?t.params.path.join("/"):t.params.path||"");Be(()=>[t.params.repoId,t.params.path],()=>{let m="";a().split("/").filter(Boolean).forEach(E=>{m+="/"+E,r[m]=!0})},{immediate:!0});let u=ot(()=>{if(!e.searchQuery||!e.searchResults)return null;let m=new Set,E=new Set;return e.searchResults.forEach(y=>{m.add(y.path?`${y.path}/${y.name}`:y.name);let w="";(y.path||"").split("/").filter(Boolean).forEach(D=>{w=w?w+"/"+D:D,E.add(w)})}),{files:m,folders:E}}),f=()=>[...s.value.querySelectorAll("li > a")],v=m=>{s.value.querySelector(".tree-focused")?.classList.remove("tree-focused"),m&&(n=m.dataset.path,m.classList.add("tree-focused"),m.scrollIntoView?.({block:"nearest"}),s.value.focus())};function h(m){let E=f(),y=s.value.querySelector(".tree-focused")||E[0],w=E.indexOf(y);if(!["ArrowDown","ArrowUp","ArrowRight","ArrowLeft","Enter"].includes(m.key)||(m.preventDefault(),m.key==="ArrowDown"&&v(E[(w+1)%E.length]),m.key==="ArrowUp"&&v(E[(w-1+E.length)%E.length]),!y))return;let D=y.closest("li");m.key==="ArrowRight"&&D.classList.contains("folder")&&(D.classList.contains("open")?v(D.querySelector(":scope > ul > li > a")):y.click()),m.key==="ArrowLeft"&&(D.classList.contains("folder")&&D.classList.contains("open")?y.click():v(D.parentElement.closest("li.folder")?.querySelector(":scope > a"))),m.key==="Enter"&&y.click()}function k(m,E=""){let y=[...m].sort((w,D)=>+!!D.children-+!!w.children||w.name.localeCompare(D.name));return ke("ul",y.flatMap(w=>{let D=w,R=D.name,T=(E+"/"+R).slice(1);if(u.value&&!u.value.files.has(T)&&!u.value.folders.has(T))return[];for(;D.children?.length===1;)D=D.children[0],R+="/"+D.name;let I=E+"/"+R,H=!!D.children,q=u.value?r[I]!==!1:!!r[I],U=H&&e.page?.options?.truncatedFolders?.includes(I.slice(1)),ae=e.page?.fileCounts?.[I.slice(1)]||0,ie=ke("span",{class:H?"tree-icon-folder":"far fa-file tree-icon-file","aria-hidden":"true"},H?ke("svg",{viewBox:"0 0 14 12",focusable:"false"},ke("path",{d:"M1.5 10.5v-9h4l1.5 2h5.5v7z"})):null),_=ke("span",{class:"tree-name"},R),O=Z=>{v(Z.currentTarget),H&&(Z.preventDefault(),r[I]=!q,r[I]&&!D.children.length&&e.page.getFiles(I.slice(1)),st(()=>v(f().find(te=>te.dataset.path===n))))},Y=ke("a",{"data-path":I,href:H?void 0:`/r/${encodeURIComponent(t.params.repoId)}${encodePathForUrl(I)}`,class:{"tree-focused":n===I},onClick:O},[H?ke("span",{class:"tree-toggle"}):E?ke("span",{class:"tree-spacer"}):null,ie,_,U?ke("span",{class:"truncated-warning",title:e.page.fmt.translate("WARNINGS.folder_truncated")},ke("i",{class:"fas fa-exclamation-triangle"})):null,H&&ae?ke("span",{class:"tree-count"},ae):null]);return ke("li",{key:I,class:{file:!0,folder:H,open:q,active:a()===I,truncated:U},title:H?"":`Size: ${humanFileSize(D.size||0)}`},[Y,H&&q?k(D.children,I):null])}))}return()=>ke("tree",{ref:s,tabindex:0,onKeydown:h},e.file?.length?u.value?.files.size===0?ke("div",{class:"tree-search-empty"},"No files found"):k(i.value):"Empty repository")}};function td(){return ze({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 od(e,t){if(!e[t]){let s=td();Object.defineProperty(s,"invalid",{get(){return Object.values(s.errors).some(Boolean)||Object.keys(s).some(r=>r!=="invalid"&&s[r]&&typeof s[r]=="object"&&s[r].invalid)}}),e[t]=s}return e[t]}var sd={beforeMount(e,{value:t}){e._formState=od(t,e.name),e.addEventListener("submit",s=>s.preventDefault())}};function f8(e){return e instanceof Date?isNaN(e)?"":`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`:e||""}function ed(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"?f8(t):t??""),lr(e)}function lr(e){let t=e._field.validation;if(!t)return;let s=e.validity;for(let[r,n]of Object.entries({required:s.valueMissing,pattern:s.patternMismatch,min:s.rangeUnderflow,max:s.rangeOverflow,date:s.badInput,email:s.typeMismatch&&e.type==="email",url:s.typeMismatch&&e.type==="url"}))t.setValidity(r,e.disabled||!n)}var nd={beforeMount(e,{value:t}){var a;let s=t.form&&od(t.state,t.form),r=s&&e.name?s[a=e.name]||(s[a]=td()):null;e._field={binding:t,validation:r,timer:null};let n=()=>{clearTimeout(e._field.timer),e._field.timer=null;let u=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),r){r.setDirty();for(let v of Object.keys(r.errors))r.setValidity(v,!0)}u.set(f),lr(e),u.change?.()}};e._field.commit=n;let i=u=>{let f=e._field.binding.options?.debounce||0,v=typeof f=="number"?f:f[u.type]??f.default??0;clearTimeout(e._field.timer),v?e._field.timer=setTimeout(n,v):n()};e.addEventListener(e.tagName==="SELECT"||["checkbox","radio","date"].includes(e.type)?"change":"input",i),e.addEventListener("blur",()=>{r&&(r.touched=!0),e._field.timer&&n()})},mounted:ed,updated(e,{value:t}){e._field.binding=t,ed(e)},beforeUnmount(e){clearTimeout(e._field.timer);let{binding:t,validation:s}=e._field,r=t.form&&t.state[t.form];r&&r[e.name]===s&&delete r[e.name]}};function rd(e,t){let s=e.target.closest("form");if(s?._formState&&(s._formState.submitted=!0),s?.querySelectorAll("input, select, textarea").forEach(r=>{r._field?.timer&&r._field.commit(),r._field&&lr(r)}),s&&!s.checkValidity()){let r=s.querySelector(":invalid");r?.scrollIntoView?.({block:"center"}),r?.focus(),s.reportValidity();return}return t()}var id=Symbol("session"),m8=/^\/(w|api|github)(\/|$)/;function ad(e,t={}){let s=e?.split(".").reduce((r,n)=>r?.[n],ar);return s==null&&e?.startsWith("ERRORS.")&&(s=ar.ERRORS.unknown_error),String(s??e??"").replace(/{{\s*([^}]+?)\s*}}/g,(r,n)=>t[n]??"")}var h8={...ir,translate:ad};function v8(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 g8(e="#app",t={}){!t.history&&window.location.pathname==="/"&&/^#!\/r\/[^/?#]+/.test(window.location.hash)&&window.history.replaceState(window.history.state,"",window.location.hash.slice(2));let s=new Map,r=Hl(t.fetch),n,i;function a(){let v=ct(),h={url(m){return m===void 0?i.currentRoute.value.fullPath:(i.push(m),h)},path(){return i.currentRoute.value.path},search(){return i.currentRoute.value.query}},k=new Proxy({},{get(m,E){let y=i.currentRoute.value.params[E];return Array.isArray(y)?y.join("/"):y}});return{http:r,...v,location:h,params:k,window,promises:Bl,html:{trustAsHtml:m=>m},translate:(m,E)=>Promise.resolve(ad(m,E)),quotaService:jl(r)}}function u(v){return{name:v.template,setup(){let h=or(ut(id),s);v.setup(h,a()),zl(v.template,h);let k=[];return()=>nn[v.template](h,k)}}}i=La({history:t.history||qa(),routes:cl.map(v=>v.redirect?v:{path:v.path,component:u(v),meta:{title:v.title,preserveExplorer:v.preserveExplorer}})});let f=oa({setup(){n=or(null,s),n.fmt=h8,n.window=window,n.Math=Math,n.sanitize=m=>DOMPurify.sanitize(m??""),n.highlightRedactions=m=>(n.site_options,Ba(m)),n.submitForm=rd,n.safeUrl=v8;let v=a();Ga(n,v.http,v.location,v.timeout),io(id,n),Be(()=>n.title,m=>{document.title=m||"Anonymous GitHub"});let h=[],k=m=>{let E=m.target.closest?.("a[href]");if(m.defaultPrevented||m.button!==0||m.metaKey||m.ctrlKey||m.shiftKey||m.altKey||!E||E.hasAttribute("download")||E.target&&E.target!=="_self"||E.dataset.toggle||E.getAttribute("href").startsWith("#"))return;let w=new URL(E.href,window.location.href);w.origin!==window.location.origin||m8.test(w.pathname)||(m.preventDefault(),i.push(w.pathname+w.search+w.hash),$("#navbarSupportedContent.show").collapse("hide"))};return document.addEventListener("click",k),ao(()=>document.removeEventListener("click",k)),()=>[Fl(n,[]),ke("header",{class:"app-header"},nn["partials/header.htm"](n,h)),ke("main",{class:"app-view align-items-stretch w-100"},ke(tr,null,{default:({Component:m,route:E})=>m?ke(m,{key:E.meta.preserveExplorer?E.matched[0]?.path:E.path}):null})),ke("div",{class:"position-fixed p-3",style:{zIndex:999999999,right:0,bottom:0}},n.toasts.map((m,E)=>ke("div",{class:"toast show",role:"alert","aria-live":"assertive","aria-atomic":"true",key:E},[ke("div",{class:"toast-header"},[ke("strong",{class:"mr-auto"},m.title),ke("button",{type:"button",class:"ml-2 mb-1 close","aria-label":"Close",onClick:()=>n.removeToast(m)},"\xD7")]),ke("div",{class:"toast-body"},m.body)])))]}});for(let[v,h]of Object.entries(Ql))f.component(v,h);return f.component("Tree",xl),f.component("PartialView",{props:["name","state"],setup(v){let h=[];return()=>nn[v.name](v.state,h)}}),f.directive("field",nd),f.directive("form",sd),f.directive("code-editor",Xl),f.directive("paper-scrollspy",Zl),f.use(i),i.beforeEach(async v=>{n?.emit("routeLeave"),/^\/(r|repository|anonymize|pull-request-anonymize|gist-anonymize|pr|gist)(\/|$)/.test(v.path)&&await Xt("markdown"),/^\/(r|repository)\//.test(v.path)&&await Xt("org")}),i.afterEach(v=>{if(!n)return;n.title=v.meta.title,n.emit("routeChange",{title:v.meta.title}),n.emit("routeUpdate",{title:v.meta.title});let h=document.querySelector(".app-view");!v.meta.preserveExplorer&&h&&(h.scrollTop=0)}),f.mount(e),{app:f,router:i,state:n}}document.querySelector("#app")&&(window.anonymousApp=g8());})();
/*! Bundled license information:
@vue/shared/dist/shared.esm-bundler.js:
(**
* @vue/shared v3.5.42
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**)
@vue/reactivity/dist/reactivity.esm-bundler.js:
(**
* @vue/reactivity v3.5.42
* (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.42
* (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.42
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**)
vue/dist/vue.runtime.esm-bundler.js:
(**
* vue v3.5.42
* (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
*)
*/