|
|
|
@@ -1,62 +1,61 @@
|
|
|
|
|
"use strict";(()=>{var dd=Object.defineProperty;var ud=e=>{throw TypeError(e)};var jm=(e,t,s)=>t in e?dd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var Gm=(e,t)=>{for(var s in t)dd(e,s,{get:t[s],enumerable:!0})};var lt=(e,t,s)=>jm(e,typeof t!="symbol"?t+"":t,s),la=(e,t,s)=>t.has(e)||ud("Cannot "+s);var ce=(e,t,s)=>(la(e,t,"read from private field"),s?s.call(e):t.get(e)),je=(e,t,s)=>t.has(e)?ud("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,s),Ye=(e,t,s,i)=>(la(e,t,"write to private field"),i?i.call(e,s):t.set(e,s),s),Ge=(e,t,s)=>(la(e,t,"access private method"),s);var cd=(e,t,s,i)=>({set _(o){Ye(e,t,o,s)},get _(){return ce(e,t,i)}});var we=["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 ke={markdown:"/script/markdown.6c8dfb7b1d.min.js",notebook:"/script/notebook.c3144c18ae.min.js",org:"/script/org.f61f262915.min.js",pdf:"/script/pdf.4d9cc6ff49.min.js",editor:"/script/editor.4f142d3adc.min.js"};function pd(e){let t=e.location.hash.slice(1);if(e.history.replaceState(null,"","/review-link"),t.length>2048)return null;let s=new URLSearchParams(t);if([...s.keys()].length!==3||[...s.keys()].some(u=>!["clientId","intentId","token"].includes(u)))return null;let i=s.get("clientId"),o=s.get("intentId"),r=s.get("token");return!/^[a-f0-9]{32}$/.test(i||"")||!/^[a-f0-9]{32}$/.test(o||"")||!/^[a-f0-9]{64}$/.test(r||"")?null:{contract:"4open.artifacts/1",clientId:i,intentId:o,token:r}}function fd(e,t){let{http:s,promises:i,window:o}=t,r=t.takeReviewHandoff(),u=r?{clientId:r.clientId,intentId:r.intentId}:null,p,d,h,m,y,v=!0,b,w=i.defer(),C=()=>[...o.crypto.getRandomValues(new Uint8Array(16))].map(F=>F.toString(16).padStart(2,"0")).join("");Object.assign(e,{repositoryId:"",handoffEnabled:!1,busy:!1,preview:null,acceptAccess:!1,acceptRetention:!1,uncertain:!1,saved:!1,expired:!1,error:r?"":"Open a new artifact link from your submission. This link is missing or invalid."});let N=()=>v&&e.user?.username===y;function k(){v=!1,r=p=d=void 0,w.resolve(),o.clearTimeout(b)}e.on("dispose",k),e.on("routeLeave",k),e.watch(()=>e.user?.username,F=>{!y&&F?y=F:y&&F!==y&&(k(),e.preview=null,e.repositoryId="",e.busy=!1,e.saved=!1,e.handoffEnabled=!1,e.error="Your account changed. Open a new artifact link from your submission.")});let P=()=>({timeout:w.promise,headers:{"Content-Type":"application/json","X-Review-CSRF":d}}),D=F=>F?.status===404?"Artifact linking is not available on this server.":F?.status===401?"Sign in, then open a new artifact link from your submission.":F?.status===403?"This account cannot approve this repository or this link.":"The request could not be completed. You can retry from this page.";e.loadPreview=async()=>{if(!v||!r||e.busy||e.uncertain||e.saved||!e.user?.username)return;y=e.user.username;let F=e.repositoryId.trim();if(!/^[A-Za-z0-9_-]{3,128}$/.test(F)){e.error="Enter the anonymous repository ID from its URL.";return}e.busy=!0,e.error="",e.preview=null,p=void 0,e.acceptAccess=e.acceptRetention=!1,e.expired=!1,o.clearTimeout(b),m||(m=C());try{let z=(await s.get("/api/review-consent/csrf",{timeout:w.promise})).data;if(!N())return;if(d=z.csrf,e.handoffEnabled=z.handoffEnabled===!0,!/^[a-f0-9]{64}$/.test(d||""))throw new Error("invalid_csrf");let K=(await s.post("/api/review-consent/preview",{repositoryId:F,intent:{...r,requestId:m}},P())).data;if(!N())return;if(!K||typeof K.ticket!="string"||!K.ticket||K.ticket.length>8192||typeof K.repositoryName!="string"||!["restricted-review","anonymous-link"].iLine truncated
|
|
|
|
|
`))),e[Nn]=Ys(o);let r=i||o.props&&o.props.type==="number";Yn(e,t?"change":"input",u=>{u.target.composing||e[Nn](Ya(e.value,s,r))}),(s||r)&&Yn(e,"change",()=>{e.value=Ya(e.value,s,r)}),t||(Yn(e,"compositionstart",Yg),Yn(e,"compositionend",xu),Yn(e,"change",xu))},mounted(e,{value:t,modifiers:{trim:s,number:i}}){let o=t??"",r=e[lr];delete e[lr],r!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==r?e[Nn](Ya(e.value,s,i)):e.value=o},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:i,trim:o,number:r}},u){if(e[Nn]=Ys(u),e.composing)return;let p=(r||e.type==="number")&&!/^0\d/.test(e.value)?_s(e.value):e.value,d=t??"";if(p===d)return;let h=e.getRootNode();(h instanceof Document||h instanceof ShadowRoot)&&h.activeElement===e&&e.type!=="range"&&(i&&t===s||o&&e.value.trim()===d)||(e.value=d)}},Ja={deep:!0,created(e,t,s){e[Nn]=Ys(s),Yn(e,"change",()=>{let i=e._modelValue,o=Zo(e),r=e.checked,u=e[Nn];if(Ve(i)){let p=qi(i,o),d=p!==-1;if(r&&!d)u(i.concat(o));else if(!r&&d){let h=[...i];h.splice(p,1),u(h)}}else if(rn(i)){let p=new Set(i);r?p.add(o):p.delete(o),u(p)}else u(ic(e,r))})},mounted:ec,beforeUpdate(e,t,s){e[Nn]=Ys(s),ec(e,t,s)}};function ec(e,{value:t,oldValue:s},i){e._modelValue=t;let o;if(Ve(t))o=qi(t,i.props.value)>-1;else if(rn(t))o=t.has(i.props.value);else{if(t===s)return;o=an(t,ic(e,!0))}e.checked!==o&&(e.checked=o)}var It={deep:!0,created(e,{value:t,modifiers:{number:s}},i){e._modelValue=t,Yn(e,"change",()=>{let o=Array.prototype.filter.call(e.options,d=>d.selected).map(d=>s?_s(Zo(d)):Zo(d)),r=e.multiple,u=r?rn(e._modelValue)?new Set(o):o:o[0],p=e._pendingValue=[r,r?Ve(u)?o.slice():o:u];try{e[Nn](u)}finally{Ke(()=>{e._pendingValue===p&&(e._pendingValue=void 0)})}}),e[Nn]=Ys(i)},mounted(e,{value:t}){tc(e,t)},beforeUpdate(e,{value:t},s){e._modelValue=t,e[Nn]=Ys(s)},updated(e,{value:t}){let s=e._pendingValue;e._pendingValue=void 0,(!s||s[0]!==e.multiple||!Xg(t,s[1],s[0]))&&tc(e,t)}};function Xg(e,t,s){if(!s)return an(e,t);if(Ve(e))return an(e,t);if(rn(e)){if(e.size!==t.length)return!1;for(let i of t)if(!e.has(i))return!1;return!0}return!1}function tc(e,t){let s=e.multiple,i=Ve(t);if(!(s&&!i&&!rn(t))){for(let o=0,r=e.options.length;o<r;o++){let u=e.options[o],p=Zo(u);if(s)if(i){let d=typeof p;d==="string"||d==="number"?u.selected=t.some(h=>String(h)===String(p)):u.selected=qi(t,p)>-1}else u.selected=t.has(p);else if(an(Zo(u),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!s&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Zo(e){return"_value"in e?e._value:e.value}function ic(e,t){let s=t?"_trueValue":"_falseValue";return s in e?e[s]:t}var Jg=["ctrl","shift","alt","meta"],Qg={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)=>Jg.some(s=>e[`${s}Key`]&&!t.includes(s))},de=(e,t)=>{if(!e)return e;let s=e._withMods||(e._withMods={}),i=t.join(".");return s[i]||(s[i]=((o,...r)=>{for(let u=0;u<t.length;u++){let p=Qg[t[u]];if(p&&p(o,t))return}return e(o,...r)}))},Zg={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Pt=(e,t)=>{let s=e._withKeys||(e._withKeys={}),i=t.join(".");return s[i]||(s[i]=(o=>{if(!("key"in o))return;let r=gn(o.key);if(t.some(u=>u===r||Zg[u]===r))return e(o)}))},xg=yt({patchProp:Gg},Ag),nc;function ev(){return nc||(nc=Lu(xg))}var ur=((...e)=>{let t=ev().createApp(...e),{mount:s}=t;return t.mount=i=>{let o=nv(i);if(!o)return;let r=t._component;!$e(r)&&!r.render&&!r.template&&(r.template=o.innerHTML),o.nodeType===1&&(o.textContent="");let u=s(o,!1,tv(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),u},t});function tv(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function nv(e){return ht(e)?document.querySelector(e):e}var bs=typeof document<"u";function ac(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function sv(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&ac(e.default)}var ot=Object.assign;function cr(e,t){let s={};for(let i in t){let o=t[i];s[i]=on(o)?o.map(e):e(o)}return s}var Js=()=>{},on=Array.isArray;function xa(e,t){let s={};for(let i in e)s[i]=i in t?t[i]:e[i];return s}var lc=/#/g,ov=/&/g,iv=/\//g,rv=/=/g,av=/\?/g,dc=/\+/g,lv=/%5B/g,dv=/%5D/g,uc=/%5E/g,uv=/%60/g,cc=/%7B/g,cv=/%7C/g,pc=/%7D/g,pv=/%20/g;function el(e){return e==null?"":encodeURI(""+e).replace(cv,"|").replace(lv,"[").replace(dv,"]")}function fc(e){return el(e).replace(cc,"{").replace(pc,"}").replace(uc,"^")}function Qa(e){return el(e).replace(dc,"%2B").replace(pv,"+").replace(lc,"%23").replace(ov,"%26").replace(uv,"`").replace(cc,"{").replace(pc,"}").replace(uc,"^")}function fv(e){return Qa(e).replace(rv,"%3D")}function mv(e){return eLine truncated
|
|
|
|
|
"use strict";(()=>{var md=Object.defineProperty;var hd=e=>{throw TypeError(e)};var eh=(e,t,s)=>t in e?md(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var th=(e,t)=>{for(var s in t)md(e,s,{get:t[s],enumerable:!0})};var lt=(e,t,s)=>eh(e,typeof t!="symbol"?t+"":t,s),da=(e,t,s)=>t.has(e)||hd("Cannot "+s);var ce=(e,t,s)=>(da(e,t,"read from private field"),s?s.call(e):t.get(e)),He=(e,t,s)=>t.has(e)?hd("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,s),Ke=(e,t,s,i)=>(da(e,t,"write to private field"),i?i.call(e,s):t.set(e,s),s),ze=(e,t,s)=>(da(e,t,"access private method"),s);var gd=(e,t,s,i)=>({set _(r){Ke(e,t,r,s)},get _(){return ce(e,t,i)}});var be=["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 we={markdown:"/script/markdown.6c8dfb7b1d.min.js",notebook:"/script/notebook.c3144c18ae.min.js",editor:"/script/editor.4f142d3adc.min.js",org:"/script/org.f61f262915.min.js",pdf:"/script/pdf.4d9cc6ff49.min.js"};function yd(e){let t=e.location.hash.slice(1);if(e.history.replaceState(null,"","/review-link"),t.length>2048)return null;let s=new URLSearchParams(t);if([...s.keys()].length!==3||[...s.keys()].some(u=>!["clientId","intentId","token"].includes(u)))return null;let i=s.get("clientId"),r=s.get("intentId"),o=s.get("token");return!/^[a-f0-9]{32}$/.test(i||"")||!/^[a-f0-9]{32}$/.test(r||"")||!/^[a-f0-9]{64}$/.test(o||"")?null:{contract:"4open.artifacts/1",clientId:i,intentId:r,token:o}}function vd(e,t){let{http:s,promises:i,window:r}=t,o=t.takeReviewHandoff(),u=o?{clientId:o.clientId,intentId:o.intentId}:null,p,d,g,m,v,y=!0,C,k=i.defer(),w=()=>[...r.crypto.getRandomValues(new Uint8Array(16))].map(L=>L.toString(16).padStart(2,"0")).join("");Object.assign(e,{repositoryId:"",handoffEnabled:!1,busy:!1,preview:null,acceptAccess:!1,acceptRetention:!1,uncertain:!1,saved:!1,expired:!1,error:o?"":"Open a new artifact link from your submission. This link is missing or invalid."});let R=()=>y&&e.user?.username===v;function b(){y=!1,o=p=d=void 0,k.resolve(),r.clearTimeout(C)}e.on("dispose",b),e.on("routeLeave",b),e.watch(()=>e.user?.username,L=>{!v&&L?v=L:v&&L!==v&&(b(),e.preview=null,e.repositoryId="",e.busy=!1,e.saved=!1,e.handoffEnabled=!1,e.error="Your account changed. Open a new artifact link from your submission.")});let P=()=>({timeout:k.promise,headers:{"Content-Type":"application/json","X-Review-CSRF":d}}),D=L=>L?.status===404?"Artifact linking is not available on this server.":L?.status===401?"Sign in, then open a new artifact link from your submission.":L?.status===403?"This account cannot approve this repository or this link.":"The request could not be completed. You can retry from this page.";e.loadPreview=async()=>{if(!y||!o||e.busy||e.uncertain||e.saved||!e.user?.username)return;v=e.user.username;let L=e.repositoryId.trim();if(!/^[A-Za-z0-9_-]{3,128}$/.test(L)){e.error="Enter the anonymous repository ID from its URL.";return}e.busy=!0,e.error="",e.preview=null,p=void 0,e.acceptAccess=e.acceptRetention=!1,e.expired=!1,r.clearTimeout(C),m||(m=w());try{let H=(await s.get("/api/review-consent/csrf",{timeout:k.promise})).data;if(!R())return;if(d=H.csrf,e.handoffEnabled=H.handoffEnabled===!0,!/^[a-f0-9]{64}$/.test(d||""))throw new Error("invalid_csrf");let _=(await s.post("/api/review-consent/preview",{repositoryId:L,intent:{...o,requestId:m}},P())).data;if(!R())return;if(!_||typeof _.ticket!="string"||!_.ticket||_.ticket.length>8192||typeof _.repositoryName!="string"||!["restricted-review","anonymous-link"].iLine truncated
|
|
|
|
|
`))),e[Nn]=Ys(r);let o=i||r.props&&r.props.type==="number";Yn(e,t?"change":"input",u=>{u.target.composing||e[Nn](Xa(e.value,s,o))}),(s||o)&&Yn(e,"change",()=>{e.value=Xa(e.value,s,o)}),t||(Yn(e,"compositionstart",oy),Yn(e,"compositionend",oc),Yn(e,"change",oc))},mounted(e,{value:t,modifiers:{trim:s,number:i}}){let r=t??"",o=e[lr];delete e[lr],o!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==o?e[Nn](Xa(e.value,s,i)):e.value=r},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:i,trim:r,number:o}},u){if(e[Nn]=Ys(u),e.composing)return;let p=(o||e.type==="number")&&!/^0\d/.test(e.value)?Hs(e.value):e.value,d=t??"";if(p===d)return;let g=e.getRootNode();(g instanceof Document||g instanceof ShadowRoot)&&g.activeElement===e&&e.type!=="range"&&(i&&t===s||r&&e.value.trim()===d)||(e.value=d)}},Ja={deep:!0,created(e,t,s){e[Nn]=Ys(s),Yn(e,"change",()=>{let i=e._modelValue,r=Zo(e),o=e.checked,u=e[Nn];if(Ve(i)){let p=Li(i,r),d=p!==-1;if(o&&!d)u(i.concat(r));else if(!o&&d){let g=[...i];g.splice(p,1),u(g)}}else if(rn(i)){let p=new Set(i);o?p.add(r):p.delete(r),u(p)}else u(uc(e,o))})},mounted:ic,beforeUpdate(e,t,s){e[Nn]=Ys(s),ic(e,t,s)}};function ic(e,{value:t,oldValue:s},i){e._modelValue=t;let r;if(Ve(t))r=Li(t,i.props.value)>-1;else if(rn(t))r=t.has(i.props.value);else{if(t===s)return;r=an(t,uc(e,!0))}e.checked!==r&&(e.checked=r)}var Vt={deep:!0,created(e,{value:t,modifiers:{number:s}},i){e._modelValue=t,Yn(e,"change",()=>{let r=Array.prototype.filter.call(e.options,d=>d.selected).map(d=>s?Hs(Zo(d)):Zo(d)),o=e.multiple,u=o?rn(e._modelValue)?new Set(r):r:r[0],p=e._pendingValue=[o,o?Ve(u)?r.slice():r:u];try{e[Nn](u)}finally{xe(()=>{e._pendingValue===p&&(e._pendingValue=void 0)})}}),e[Nn]=Ys(i)},mounted(e,{value:t}){rc(e,t)},beforeUpdate(e,{value:t},s){e._modelValue=t,e[Nn]=Ys(s)},updated(e,{value:t}){let s=e._pendingValue;e._pendingValue=void 0,(!s||s[0]!==e.multiple||!iy(t,s[1],s[0]))&&rc(e,t)}};function iy(e,t,s){if(!s)return an(e,t);if(Ve(e))return an(e,t);if(rn(e)){if(e.size!==t.length)return!1;for(let i of t)if(!e.has(i))return!1;return!0}return!1}function rc(e,t){let s=e.multiple,i=Ve(t);if(!(s&&!i&&!rn(t))){for(let r=0,o=e.options.length;r<o;r++){let u=e.options[r],p=Zo(u);if(s)if(i){let d=typeof p;d==="string"||d==="number"?u.selected=t.some(g=>String(g)===String(p)):u.selected=Li(t,p)>-1}else u.selected=t.has(p);else if(an(Zo(u),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!s&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Zo(e){return"_value"in e?e._value:e.value}function uc(e,t){let s=t?"_trueValue":"_falseValue";return s in e?e[s]:t}var ry=["ctrl","shift","alt","meta"],ay={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)=>ry.some(s=>e[`${s}Key`]&&!t.includes(s))},de=(e,t)=>{if(!e)return e;let s=e._withMods||(e._withMods={}),i=t.join(".");return s[i]||(s[i]=((r,...o)=>{for(let u=0;u<t.length;u++){let p=ay[t[u]];if(p&&p(r,t))return}return e(r,...o)}))},ly={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Tt=(e,t)=>{let s=e._withKeys||(e._withKeys={}),i=t.join(".");return s[i]||(s[i]=(r=>{if(!("key"in r))return;let o=gn(r.key);if(t.some(u=>u===o||ly[u]===o))return e(r)}))},dy=vt({patchProp:ty},Ug),ac;function uy(){return ac||(ac=Bu(dy))}var ur=((...e)=>{let t=uy().createApp(...e),{mount:s}=t;return t.mount=i=>{let r=py(i);if(!r)return;let o=t._component;!Fe(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.nodeType===1&&(r.textContent="");let u=s(r,!1,cy(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),u},t});function cy(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function py(e){return ht(e)?document.querySelector(e):e}var bs=typeof document<"u";function pc(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function fy(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&pc(e.default)}var ot=Object.assign;function cr(e,t){let s={};for(let i in t){let r=t[i];s[i]=on(r)?r.map(e):e(r)}return s}var Qs=()=>{},on=Array.isArray;function el(e,t){let s={};for(let i in e)s[i]=i in t?t[i]:e[i];return s}var fc=/#/g,my=/&/g,hy=/\//g,gy=/=/g,yy=/\?/g,mc=/\+/g,vy=/%5B/g,by=/%5D/g,hc=/%5E/g,wy=/%60/g,gc=/%7B/g,ky=/%7C/g,yc=/%7D/g,Cy=/%20/g;function tl(e){return e==null?"":encodeURI(""+e).replace(ky,"|").replace(vy,"[").replace(by,"]")}function vc(e){return tl(e).replace(gc,"{").replace(yc,"}").replace(hc,"^")}function Za(e){return tl(e).replace(mc,"%2B").replace(Cy,"+").replace(fc,"%23").replace(my,"%26").replace(wy,"`").replace(gc,"{").replace(yc,"}").replace(hc,"^")}function Ey(e){return Za(e).replace(gy,"%3D")}function Sy(e){return tLine truncated
|
|
|
|
|
${JSON.stringify(e)}${t?`
|
|
|
|
|
while being at
|
|
|
|
|
`+JSON.stringify(t):""}`},[vt.NAVIGATION_GUARD_REDIRECT]({from:e,to:t}){return`Redirected from "${e.fullPath}" to "${Sv(t)}" via a navigation guard.`},[vt.NAVIGATION_ABORTED]({from:e,to:t}){return`Navigation aborted from "${e.fullPath}" to "${t.fullPath}" via a navigation guard.`},[vt.NAVIGATION_CANCELLED]({from:e,to:t}){return`Navigation cancelled from "${e.fullPath}" to "${t.fullPath}" with a new navigation.`},[vt.NAVIGATION_DUPLICATED]({from:e,to:t}){return`Avoided redundant navigation to current location: "${e.fullPath}".`}};function ys(e,t){return ot(new Error,{type:e,[Cc]:!0},t)}function Rn(e,t){return e instanceof Error&&Cc in e&&(t==null||!!(e.type&t))}var Cv=["params","query","hash"];function Sv(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;let t={};for(let s of Cv)s in e&&(t[s]=e[s]);return JSON.stringify(t,null,2)}function Sc(e){let t={};if(e===""||e==="?")return t;let s=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;i<s.length;++i){let o=s[i].replace(dc," "),r=o.indexOf("="),u=Xs(r<0?o:o.slice(0,r)),p=r<0?null:Xs(o.slice(r+1));if(u in t){let d=t[u];on(d)||(d=t[u]=[d]),d.push(p)}else t[u]=p}return t}function il(e){let t="";for(let s in e){let i=e[s];if(s=fv(s),i==null){i!==void 0&&(t+=(t.length?"&":"")+s);continue}(on(i)?i.map(o=>o&&Qa(o)):[i&&Qa(i)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+s,o!=null&&(t+="="+o))})}return t}function Ec(e){let t={};for(let s in e){let i=e[s];i!==void 0&&(t[s]=on(i)?i.map(o=>o==null?null:""+o):i==null?i:""+i)}return t}var Nc=Symbol(""),rl=Symbol(""),hr=Symbol(""),gr=Symbol(""),vr=Symbol("");function Qs(){let e=[];function t(i){return e.push(i),()=>{let o=e.indexOf(i);o>-1&&e.splice(o,1)}}function s(){e=[]}return{add:t,list:()=>e.slice(),reset:s}}function _n(e,t,s,i,o,r=u=>u()){let u=i&&(i.enterCallbacks[o]=i.enterCallbacks[o]||[]);return()=>new Promise((p,d)=>{let h=v=>{v===!1?d(ys(vt.NAVIGATION_ABORTED,{from:s,to:t})):v instanceof Error?d(v):kv(v)?d(ys(vt.NAVIGATION_GUARD_REDIRECT,{from:t,to:v})):(u&&i.enterCallbacks[o]===u&&typeof v=="function"&&u.push(v),p())},m=r(()=>e.call(i&&i.instances[o],t,s,h)),y=Promise.resolve(m);e.length<3&&(y=y.then(h)),y.catch(v=>d(v))})}function yr(e,t,s,i,o=r=>r()){let r=[];for(let u of e)for(let p in u.components){let d=u.components[p];if(!(t!=="beforeRouteEnter"&&!u.instances[p]))if(ac(d)){let h=(d.__vccOpts||d)[t];h&&r.push(_n(h,s,i,u,p,o))}else{let h=d();r.push(()=>h.then(m=>{if(!m)throw new Error(`Couldn't resolve component "${p}" at "${u.path}"`);let y=sv(m)?m.default:m;u.mods[p]=m,u.components[p]=y;let v=(y.__vccOpts||y)[t];return v&&_n(v,s,i,u,p,o)()}))}}return r}function Rc(e,t){let s=[],i=[],o=[],r=Math.max(t.matched.length,e.matched.length);for(let u=0;u<r;u++){let p=t.matched[u];p&&(e.matched.find(h=>vs(h,p))?i.push(p):s.push(p));let d=e.matched[u];d&&(t.matched.find(h=>vs(h,d))||o.push(d))}return[s,i,o]}var Ev=()=>location.protocol+"//"+location.host;function $c(e,t){let{pathname:s,search:i,hash:o}=t,r=e.indexOf("#");if(r>-1){let u=o.includes(e.slice(r))?e.slice(r).length:1,p=o.slice(u);return p[0]!=="/"&&(p="/"+p),tl(p,"")}return tl(s,e)+i+o}function Nv(e,t,s,i){let o=[],r=[],u=null,p=({state:v})=>{let b=$c(e,location),w=s.value,C=t.value,N=0;if(v){if(s.value=b,t.value=v,u&&u===w){u=null;return}N=C?v.position-C.position:0}else i(b);o.forEach(k=>{k(s.value,w,{delta:N,type:fr.pop,direction:N?N>0?mr.forward:mr.back:mr.unknown})})};function d(){u=s.value}function h(v){o.push(v);let b=()=>{let w=o.indexOf(v);w>-1&&o.splice(w,1)};return r.push(b),b}function m(){if(document.visibilityState==="hidden"){let{history:v}=window;if(!v.state)return;v.replaceState(ot({},v.state,{scroll:xo()}),"")}}function y(){for(let v of r)v();r=[],window.removeEventListener("popstate",p),window.removeEventListener("pagehide",m),document.removeEventListener("visibilitychange",m)}return window.addEventListener("popstate",p),window.addEventListener("pagehide",m),document.addEventListener("visibilitychange",m),{pauseListeners:d,listen:h,destroy:y}}function Tc(e,t,s,i=!1,o=!1){return{back:e,current:t,forward:s,replaced:i,position:window.history.length,scroll:o?xo():null}}function Rv(e){let{history:t,location:s}=window,i={value:$c(e,s)},o={value:t.state};o.value||r(i.value,{back:null,current:i.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function r(d,h,m){let y=e.indexOf("#"),v=y>-1?(s.host&&document.querySelector("base")?e:e.slice(y))+d:Ev()+e+d;try{t[m?"replaceState":"pushState"](h,"",v),o.value=h}catch(b){console.error(b),s[m?"replace":"assign"](v)}}function u(d,h){r(d,ot({},t.state,Tc(o.value.back,d,o.value.forward,!0),h,{position:o.value.position}),!0),i.value=d}function p(d,h){let m=ot({},o.value,t.state,{forward:d,scroll:xo()});r(m.current,m,!0),r(d,ot({},Tc(i.value,d,null),{position:m.position+1},h),!1),i.value=d}return{location:i,state:o,push:p,replace:u}}function Fc(e){e=vc(e);let t=Rv(e),s=Nv(e,t.state,t.location,t.replace);function i(r,u=!0){u||s.pauseListeners(),history.go(r)}let o=ot({locatLine truncated
|
|
|
|
|
`);for(let m of h){if(s&&(r>0||u>0)&&/^([-+ ]|$)/.test(m)){m.startsWith("+")?(s.lines.push({kind:"add",oldNo:"",newNo:o++,text:m.slice(1)}),u--):m.startsWith("-")?(s.lines.push({kind:"remove",oldNo:i++,newNo:"",text:m.slice(1)}),r--):(s.lines.push({kind:"ctx",oldNo:i++,newNo:o++,text:m.slice(1)}),r--,u--);continue}if(m.startsWith("diff --git")){p(),d();continue}if(m.startsWith("--- ")){s&&s.lines.length&&p(),d().oldPath=m.replace(/^--- (a\/)?/,"").trim();continue}if(m.startsWith("+++ ")){d().newPath=m.replace(/^\+\+\+ (b\/)?/,"").trim();continue}if(!/^(index |similarity index|rename |new file mode|deleted file mode|Binary files)/.test(m)){if(m.startsWith("@@")){let y=m.match(/@@\s+-(\d+)(?:,(\d+))?\s+\+(\d+)(?:,(\d+))?\s+@@/);y&&(i=parseInt(y[1],10),o=parseInt(y[3],10),r=y[2]==null?1:parseInt(y[2],10),u=y[4]==null?1:parseInt(y[4],10)),d().lines.push({kind:"hunk",oldNo:"",newNo:"",text:m});continue}if(s)if(m.startsWith("+"))s.lines.push({kind:"add",oldNo:"",newNo:o++,text:m.slice(1)});else if(m.startsWith("-"))s.lines.push({kind:"remove",oldNo:i++,newNo:"",text:m.slice(1)});else{if(m.startsWith("\\"))continue;s.lines.push({kind:"ctx",oldNo:i++,newNo:o++,text:m.startsWith(" ")?m.slice(1):m})}}}return p(),t}var ei=(e,t)=>{let s=[],i=[],o="",r=!1;for(let u=0;u<e.length;u++){let p=e[u];r?p==='"'?e[u+1]==='"'?(o+='"',u++):r=!1:o+=p:p==='"'&&o===""?r=!0:p===t?(i.push(o),o=""):p===`
|
|
|
|
|
`+JSON.stringify(t):""}`},[yt.NAVIGATION_GUARD_REDIRECT]({from:e,to:t}){return`Redirected from "${e.fullPath}" to "${My(t)}" via a navigation guard.`},[yt.NAVIGATION_ABORTED]({from:e,to:t}){return`Navigation aborted from "${e.fullPath}" to "${t.fullPath}" via a navigation guard.`},[yt.NAVIGATION_CANCELLED]({from:e,to:t}){return`Navigation cancelled from "${e.fullPath}" to "${t.fullPath}" with a new navigation.`},[yt.NAVIGATION_DUPLICATED]({from:e,to:t}){return`Avoided redundant navigation to current location: "${e.fullPath}".`}};function vs(e,t){return ot(new Error,{type:e,[Tc]:!0},t)}function Rn(e,t){return e instanceof Error&&Tc in e&&(t==null||!!(e.type&t))}var Oy=["params","query","hash"];function My(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;let t={};for(let s of Oy)s in e&&(t[s]=e[s]);return JSON.stringify(t,null,2)}function Pc(e){let t={};if(e===""||e==="?")return t;let s=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;i<s.length;++i){let r=s[i].replace(mc," "),o=r.indexOf("="),u=Xs(o<0?r:r.slice(0,o)),p=o<0?null:Xs(r.slice(o+1));if(u in t){let d=t[u];on(d)||(d=t[u]=[d]),d.push(p)}else t[u]=p}return t}function rl(e){let t="";for(let s in e){let i=e[s];if(s=Ey(s),i==null){i!==void 0&&(t+=(t.length?"&":"")+s);continue}(on(i)?i.map(r=>r&&Za(r)):[i&&Za(i)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+s,r!=null&&(t+="="+r))})}return t}function Dc(e){let t={};for(let s in e){let i=e[s];i!==void 0&&(t[s]=on(i)?i.map(r=>r==null?null:""+r):i==null?i:""+i)}return t}var Ac=Symbol(""),al=Symbol(""),hr=Symbol(""),gr=Symbol(""),yr=Symbol("");function Js(){let e=[];function t(i){return e.push(i),()=>{let r=e.indexOf(i);r>-1&&e.splice(r,1)}}function s(){e=[]}return{add:t,list:()=>e.slice(),reset:s}}function Hn(e,t,s,i,r,o=u=>u()){let u=i&&(i.enterCallbacks[r]=i.enterCallbacks[r]||[]);return()=>new Promise((p,d)=>{let g=y=>{y===!1?d(vs(yt.NAVIGATION_ABORTED,{from:s,to:t})):y instanceof Error?d(y):Iy(y)?d(vs(yt.NAVIGATION_GUARD_REDIRECT,{from:t,to:y})):(u&&i.enterCallbacks[r]===u&&typeof y=="function"&&u.push(y),p())},m=o(()=>e.call(i&&i.instances[r],t,s,g)),v=Promise.resolve(m);e.length<3&&(v=v.then(g)),v.catch(y=>d(y))})}function vr(e,t,s,i,r=o=>o()){let o=[];for(let u of e)for(let p in u.components){let d=u.components[p];if(!(t!=="beforeRouteEnter"&&!u.instances[p]))if(pc(d)){let g=(d.__vccOpts||d)[t];g&&o.push(Hn(g,s,i,u,p,r))}else{let g=d();o.push(()=>g.then(m=>{if(!m)throw new Error(`Couldn't resolve component "${p}" at "${u.path}"`);let v=fy(m)?m.default:m;u.mods[p]=m,u.components[p]=v;let y=(v.__vccOpts||v)[t];return y&&Hn(y,s,i,u,p,r)()}))}}return o}function Ic(e,t){let s=[],i=[],r=[],o=Math.max(t.matched.length,e.matched.length);for(let u=0;u<o;u++){let p=t.matched[u];p&&(e.matched.find(g=>ys(g,p))?i.push(p):s.push(p));let d=e.matched[u];d&&(t.matched.find(g=>ys(g,d))||r.push(d))}return[s,i,r]}var Vy=()=>location.protocol+"//"+location.host;function zc(e,t){let{pathname:s,search:i,hash:r}=t,o=e.indexOf("#");if(o>-1){let u=r.includes(e.slice(o))?e.slice(o).length:1,p=r.slice(u);return p[0]!=="/"&&(p="/"+p),nl(p,"")}return nl(s,e)+i+r}function qy(e,t,s,i){let r=[],o=[],u=null,p=({state:y})=>{let C=zc(e,location),k=s.value,w=t.value,R=0;if(y){if(s.value=C,t.value=y,u&&u===k){u=null;return}R=w?y.position-w.position:0}else i(C);r.forEach(b=>{b(s.value,k,{delta:R,type:fr.pop,direction:R?R>0?mr.forward:mr.back:mr.unknown})})};function d(){u=s.value}function g(y){r.push(y);let C=()=>{let k=r.indexOf(y);k>-1&&r.splice(k,1)};return o.push(C),C}function m(){if(document.visibilityState==="hidden"){let{history:y}=window;if(!y.state)return;y.replaceState(ot({},y.state,{scroll:xo()}),"")}}function v(){for(let y of o)y();o=[],window.removeEventListener("popstate",p),window.removeEventListener("pagehide",m),document.removeEventListener("visibilitychange",m)}return window.addEventListener("popstate",p),window.addEventListener("pagehide",m),document.addEventListener("visibilitychange",m),{pauseListeners:d,listen:g,destroy:v}}function Oc(e,t,s,i=!1,r=!1){return{back:e,current:t,forward:s,replaced:i,position:window.history.length,scroll:r?xo():null}}function Ly(e){let{history:t,location:s}=window,i={value:zc(e,s)},r={value:t.state};r.value||o(i.value,{back:null,current:i.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(d,g,m){let v=e.indexOf("#"),y=v>-1?(s.host&&document.querySelector("base")?e:e.slice(v))+d:Vy()+e+d;try{t[m?"replaceState":"pushState"](g,"",y),r.value=g}catch(C){console.error(C),s[m?"replace":"assign"](y)}}function u(d,g){o(d,ot({},t.state,Oc(r.value.back,d,r.value.forward,!0),g,{position:r.value.position}),!0),i.value=d}function p(d,g){let m=ot({},r.value,t.state,{forward:d,scroll:xo()});o(m.current,m,!0),o(d,ot({},Oc(i.value,d,null),{position:m.position+1},g),!1),i.value=d}return{location:i,state:r,push:p,replace:u}}function jc(e){e=Cc(e);let t=Ly(e),s=qy(e,t.state,t.location,t.replace);function i(o,u=!0){u||s.pauseListeners(),history.go(o)}let r=ot({locatLine truncated
|
|
|
|
|
`);for(let m of g){if(s&&(o>0||u>0)&&/^([-+ ]|$)/.test(m)){m.startsWith("+")?(s.lines.push({kind:"add",oldNo:"",newNo:r++,text:m.slice(1)}),u--):m.startsWith("-")?(s.lines.push({kind:"remove",oldNo:i++,newNo:"",text:m.slice(1)}),o--):(s.lines.push({kind:"ctx",oldNo:i++,newNo:r++,text:m.slice(1)}),o--,u--);continue}if(m.startsWith("diff --git")){p(),d();continue}if(m.startsWith("--- ")){s&&s.lines.length&&p(),d().oldPath=m.replace(/^--- (a\/)?/,"").trim();continue}if(m.startsWith("+++ ")){d().newPath=m.replace(/^\+\+\+ (b\/)?/,"").trim();continue}if(!/^(index |similarity index|rename |new file mode|deleted file mode|Binary files)/.test(m)){if(m.startsWith("@@")){let v=m.match(/@@\s+-(\d+)(?:,(\d+))?\s+\+(\d+)(?:,(\d+))?\s+@@/);v&&(i=parseInt(v[1],10),r=parseInt(v[3],10),o=v[2]==null?1:parseInt(v[2],10),u=v[4]==null?1:parseInt(v[4],10)),d().lines.push({kind:"hunk",oldNo:"",newNo:"",text:m});continue}if(s)if(m.startsWith("+"))s.lines.push({kind:"add",oldNo:"",newNo:r++,text:m.slice(1)});else if(m.startsWith("-"))s.lines.push({kind:"remove",oldNo:i++,newNo:"",text:m.slice(1)});else{if(m.startsWith("\\"))continue;s.lines.push({kind:"ctx",oldNo:i++,newNo:r++,text:m.startsWith(" ")?m.slice(1):m})}}}return p(),t}var ei=(e,t)=>{let s=[],i=[],r="",o=!1;for(let u=0;u<e.length;u++){let p=e[u];o?p==='"'?e[u+1]==='"'?(r+='"',u++):o=!1:r+=p:p==='"'&&r===""?o=!0:p===t?(i.push(r),r=""):p===`
|
|
|
|
|
`||p==="\r"?(p==="\r"&&e[u+1]===`
|
|
|
|
|
`&&u++,i.push(o),s.push(i),i=[],o=""):o+=p}return(o!==""||i.length)&&(i.push(o),s.push(i)),s.filter(u=>u.length>1||u[0]!=="")},Zs=e=>Math.min(((e||"").match(/^[ \t]*/)[0]||"").replace(/\t/g," ").length+4,24),Zv=(function(){let e=s=>s.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),t=s=>{let i=['<div class="diff-file-block">','<div class="diff-file-header"><span class="diff-file-icon"><i class="far fa-file-code"></i></span><span class="diff-file-name">'+e(s.path)+'</span><span class="diff-file-status diff-file-status-'+s.status+'">'+s.status+"</span></div>"];if(s.lines.length){i.push('<table class="diff-file-table"><tbody>');for(let o of s.lines)i.push('<tr class="diff-row diff-row-'+o.kind+'"><td class="diff-gutter diff-gutter-old">'+(o.oldNo||"")+'</td><td class="diff-gutter diff-gutter-new">'+(o.newNo||"")+'</td><td class="diff-sign">'+(o.kind==="add"?"+":o.kind==="remove"?"-":"")+'</td><td class="diff-code" style="--hang:'+Zs(o.text)+'ch">'+e(o.text)+"</td></tr>");i.push("</tbody></table>")}return i.push("</div>"),i.join("")};return s=>s&&Tr(s).map(t).join("")})();function dl(e,t){return e==null?"":Number(e).toLocaleString(void 0,t==null?{}:{minimumFractionDigits:t,maximumFractionDigits:t})}function xv(e,t="EUR"){let s=Number(e)||0;return new Intl.NumberFormat(void 0,{style:"currency",currency:t,minimumFractionDigits:s%1?2:0,maximumFractionDigits:2}).format(s)}function ey(e){return String(e??"").toUpperCase()}function ty(e,t,s=0){return(e||[]).slice(s,s+t)}function ny(e,t){return Array.isArray(e)?typeof t=="function"?e.filter(t):e:[]}function sy(e,t){if(!t)return e||[];let s=Array.isArray(t)?t:[t];return[...e||[]].sort((i,o)=>{for(let r of s){let u=r[0]==="-"?-1:1;r=r.replace(/^[+-]/,"");let p=r.split(".").reduce((h,m)=>h?.[m],i),d=r.split(".").reduce((h,m)=>h?.[m],o);if(typeof p=="string"&&(p=p.toLowerCase()),typeof d=="string"&&(d=d.toLowerCase()),p!==d)return(p==null?-1:d==null?1:p<d?-1:1)*u}return 0})}function Pr(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 i={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,o=>i[o])}function oy(e,t){return(t?.[e]??t?.[e===1?"one":"other"]??"").replace(/\{\}/g,e??0)}function Ar(e){if(!e)return"";let t=/^(\d{4})-(\d{2})-(\d{2})$/.exec(String(e)),s=t?new Date(+t[1],+t[2]-1,+t[3]):new Date(e);if(isNaN(s))return"";let i=s.toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"}),o=new Date;o.setHours(0,0,0,0);let r=Math.round((s-o)/864e5),u;if(r===0)u="today";else if(r===1)u="tomorrow";else if(r===-1)u="yesterday";else{let p=Math.abs(r),d=Math.round(p/30.44),h=p<14?[p,"day"]:p<60?[Math.round(p/7),"week"]:d<18?[d,"month"]:[Math.round(p/365.25),"year"],m=h[0]+" "+h[1]+(h[0]===1?"":"s");u=r>0?"in "+m:m+" ago"}return i+" \xB7 "+u}function Xn(e){if(e==null||e===""||isNaN(e))return"";e=Number(e);let t="\u202F";if(e<1e3)return+(e<10?e.toFixed(2):e<100?e.toFixed(1):Math.round(e))+t+"ms";let s=e/1e3;if(s<60)return+(s<10?s.toFixed(2):s.toFixed(1))+t+"s";let i=r=>String(r).padStart(2,"0"),o=Math.round(s);return o<3600?Math.floor(o/60)+"m "+i(o%60)+"s":Math.floor(o/3600)+"h "+i(Math.floor(o%3600/60))+"m"}function Dr(e){if(!e)return"";let t=new Date(e);if(isNaN(t))return"";let s={day:"numeric",month:"short"};return t.getFullYear()!==new Date().getFullYear()&&(s.year="numeric"),t.toLocaleDateString(void 0,s)}function Hc(e,t){return t?.split(".").reduce((s,i)=>s?.[i],e)}function ti(e=null,t=new Map){let s=ut({}),i=[],o=!1,r=new Proxy(s,{get(u,p){return typeof p=="string"&&p.startsWith("__v_")||Reflect.has(u,p)?Reflect.get(u,p):e?.[p]}});return Object.defineProperty(s,"parent",{value:e,configurable:!0}),Object.defineProperty(s,"viewState",{get:()=>r}),r.watch=(u,p,d=!1,h=!0)=>{let m=typeof u=="function"?()=>u(r):()=>Hc(r,u),y=dt(m,p,{deep:d,flush:"post"});return i.push(y),h&&Ke(()=>{o||p(m(),m())}),y},r.watchGroup=(u,p,d=!0)=>r.watch(()=>u.map(h=>Hc(r,h)),p,!0,d),r.on=(u,p)=>{if(u==="dispose")return i.push(p),()=>{};t.has(u)||t.set(u,new Set),t.get(u).add(p);let d=()=>t.get(u)?.delete(p);return i.push(d),d},r.emit=(u,...p)=>{for(let d of[...t.get(u)||[]])d({},...p)},r.dispose=()=>{o=!0,i.splice(0).reverse().forEach(u=>u())},Ln(r.dispose),r}function Et(){let e=new Set,t=new Set,s=!1,i=(r,u=0)=>{if(s)return;let p=setTimeout(()=>{e.delete(p),r()},u);return e.add(p),p};i.cancel=r=>{clearTimeout(r),e.delete(r)};let o=(r,u)=>{if(s)return;let p=setInterval(r,u);return t.add(p),p};return o.cancel=r=>{clearInterval(r),t.delete(r)},Ln(()=>{s=!0,e.forEach(clearTimeout),t.forEach(clearInterval)}),{timeout:i,interval:o}}function qt(){let e=new Set;return L
Line truncated
|
|
|
|
|
`&&u++,i.push(r),s.push(i),i=[],r=""):r+=p}return(r!==""||i.length)&&(i.push(r),s.push(i)),s.filter(u=>u.length>1||u[0]!=="")},Zs=e=>Math.min(((e||"").match(/^[ \t]*/)[0]||"").replace(/\t/g," ").length+4,24),lv=(function(){let e=s=>s.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),t=s=>{let i=['<div class="diff-file-block">','<div class="diff-file-header"><span class="diff-file-icon"><i class="far fa-file-code"></i></span><span class="diff-file-name">'+e(s.path)+'</span><span class="diff-file-status diff-file-status-'+s.status+'">'+s.status+"</span></div>"];if(s.lines.length){i.push('<table class="diff-file-table"><tbody>');for(let r of s.lines)i.push('<tr class="diff-row diff-row-'+r.kind+'"><td class="diff-gutter diff-gutter-old">'+(r.oldNo||"")+'</td><td class="diff-gutter diff-gutter-new">'+(r.newNo||"")+'</td><td class="diff-sign">'+(r.kind==="add"?"+":r.kind==="remove"?"-":"")+'</td><td class="diff-code" style="--hang:'+Zs(r.text)+'ch">'+e(r.text)+"</td></tr>");i.push("</tbody></table>")}return i.push("</div>"),i.join("")};return s=>s&&Tr(s).map(t).join("")})();function ul(e,t){return e==null?"":Number(e).toLocaleString(void 0,t==null?{}:{minimumFractionDigits:t,maximumFractionDigits:t})}function dv(e,t="EUR"){let s=Number(e)||0;return new Intl.NumberFormat(void 0,{style:"currency",currency:t,minimumFractionDigits:s%1?2:0,maximumFractionDigits:2}).format(s)}function uv(e){return String(e??"").toUpperCase()}function cv(e,t,s=0){return(e||[]).slice(s,s+t)}function pv(e,t){return Array.isArray(e)?typeof t=="function"?e.filter(t):e:[]}function fv(e,t){if(!t)return e||[];let s=Array.isArray(t)?t:[t];return[...e||[]].sort((i,r)=>{for(let o of s){let u=o[0]==="-"?-1:1;o=o.replace(/^[+-]/,"");let p=o.split(".").reduce((g,m)=>g?.[m],i),d=o.split(".").reduce((g,m)=>g?.[m],r);if(typeof p=="string"&&(p=p.toLowerCase()),typeof d=="string"&&(d=d.toLowerCase()),p!==d)return(p==null?-1:d==null?1:p<d?-1:1)*u}return 0})}function Pr(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 i={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,r=>i[r])}function mv(e,t){return(t?.[e]??t?.[e===1?"one":"other"]??"").replace(/\{\}/g,e??0)}function Dr(e){if(!e)return"";let t=/^(\d{4})-(\d{2})-(\d{2})$/.exec(String(e)),s=t?new Date(+t[1],+t[2]-1,+t[3]):new Date(e);if(isNaN(s))return"";let i=s.toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"}),r=new Date;r.setHours(0,0,0,0);let o=Math.round((s-r)/864e5),u;if(o===0)u="today";else if(o===1)u="tomorrow";else if(o===-1)u="yesterday";else{let p=Math.abs(o),d=Math.round(p/30.44),g=p<14?[p,"day"]:p<60?[Math.round(p/7),"week"]:d<18?[d,"month"]:[Math.round(p/365.25),"year"],m=g[0]+" "+g[1]+(g[0]===1?"":"s");u=o>0?"in "+m:m+" ago"}return i+" \xB7 "+u}function Xn(e){if(e==null||e===""||isNaN(e))return"";e=Number(e);let t="\u202F";if(e<1e3)return+(e<10?e.toFixed(2):e<100?e.toFixed(1):Math.round(e))+t+"ms";let s=e/1e3;if(s<60)return+(s<10?s.toFixed(2):s.toFixed(1))+t+"s";let i=o=>String(o).padStart(2,"0"),r=Math.round(s);return r<3600?Math.floor(r/60)+"m "+i(r%60)+"s":Math.floor(r/3600)+"h "+i(Math.floor(r%3600/60))+"m"}function Ar(e){if(!e)return"";let t=new Date(e);if(isNaN(t))return"";let s={day:"numeric",month:"short"};return t.getFullYear()!==new Date().getFullYear()&&(s.year="numeric"),t.toLocaleDateString(void 0,s)}function Yc(e,t){return t?.split(".").reduce((s,i)=>s?.[i],e)}function ti(e=null,t=new Map){let s=ut({}),i=[],r=!1,o=new Proxy(s,{get(u,p){return typeof p=="string"&&p.startsWith("__v_")||Reflect.has(u,p)?Reflect.get(u,p):e?.[p]}});return Object.defineProperty(s,"parent",{value:e,configurable:!0}),Object.defineProperty(s,"viewState",{get:()=>o}),o.watch=(u,p,d=!1,g=!0)=>{let m=typeof u=="function"?()=>u(o):()=>Yc(o,u),v=dt(m,p,{deep:d,flush:"post"});return i.push(v),g&&xe(()=>{r||p(m(),m())}),v},o.watchGroup=(u,p,d=!0)=>o.watch(()=>u.map(g=>Yc(o,g)),p,!0,d),o.on=(u,p)=>{if(u==="dispose")return i.push(p),()=>{};t.has(u)||t.set(u,new Set),t.get(u).add(p);let d=()=>t.get(u)?.delete(p);return i.push(d),d},o.emit=(u,...p)=>{for(let d of[...t.get(u)||[]])d({},...p)},o.dispose=()=>{r=!0,i.splice(0).reverse().forEach(u=>u())},qn(o.dispose),o}function Pt(){let e=new Set,t=new Set,s=!1,i=(o,u=0)=>{if(s)return;let p=setTimeout(()=>{e.delete(p),o()},u);return e.add(p),p};i.cancel=o=>{clearTimeout(o),e.delete(o)};let r=(o,u)=>{if(s)return;let p=setInterval(o,u);return t.add(p),p};return r.cancel=o=>{clearInterval(o),t.delete(o)},qn(()=>{s=!0,e.forEach(clearTimeout),t.forEach(clearInterval)}),{timeout:i,interval:r}}function Lt(){let e=new Set;return q
Line truncated
|
|
|
|
|
`)+`
|
|
|
|
|
`,Kc=e=>String(e??"").replace(/\\/g,"\\\\").replace(/\|/g,"\\|").replace(/\r?\n/g," ");function ep(e,t,s=[]){return["| "+e.map(Kc).join(" | ")+" |","| "+e.map((o,r)=>s[r]?"---:":"---").join(" | ")+" |",...t.map(o=>"| "+e.map((r,u)=>Kc(o[u])).join(" | ")+" |")].join(`
|
|
|
|
|
`,Zc=e=>String(e??"").replace(/\\/g,"\\\\").replace(/\|/g,"\\|").replace(/\r?\n/g," ");function ip(e,t,s=[]){return["| "+e.map(Zc).join(" | ")+" |","| "+e.map((r,o)=>s[o]?"---:":"---").join(" | ")+" |",...t.map(r=>"| "+e.map((o,u)=>Zc(r[u])).join(" | ")+" |")].join(`
|
|
|
|
|
`)+`
|
|
|
|
|
`}var yy=Object.freeze({view:"table",query:"",sort:null,group:null,agg:"mean",sum:"mean",ranges:{},values:{},sums:{},numeric:[],chart:null,x:null,y:[]});function by(e){let t=new URLSearchParams;e.view&&e.view!=="table"&&t.set("view",e.view),e.query&&t.set("q",e.query),e.sort?.column&&t.set("sort",e.sort.column+(e.sort.dir==="desc"?":desc":"")),e.group&&t.set("group",e.group),e.group&&e.agg&&e.agg!=="mean"&&t.set("agg",e.agg);for(let[s,[i,o]]of Object.entries(e.ranges||{}))(i!=null||o!=null)&&t.set("range."+s,(i??"")+"~"+(o??""));for(let[s,i]of Object.entries(e.values||{}))for(let o of i||[])t.append("in."+s,o);e.sum&&e.sum!=="mean"&&t.set("sum",e.sum);for(let[s,i]of Object.entries(e.sums||{}))i&&i!==(e.sum||"mean")&&t.set("sum."+s,i);return e.numeric?.length&&t.set("num",e.numeric.join("|")),e.chart&&t.set("chart",e.chart),e.x&&t.set("x",e.x),e.y?.length&&t.set("y",e.y.join("|")),t.toString()}function wy(e){var d,h;let t=new URLSearchParams(e||""),s={...yy,ranges:{},values:{},sums:{},numeric:[],y:[]},i=t.get("view");["table","chart","raw"].includes(i)&&(s.view=i),s.query=t.get("q")||"";let o=t.get("sort");if(o){let m=/^(.*?)(?::(asc|desc))?$/.exec(o);s.sort={column:m[1],dir:m[2]||"asc"}}s.group=t.get("group")||null;let r=t.get("agg");r&&ni[r]&&(s.agg=r);for(let[m,y]of t.entries())if(m.startsWith("range.")){let[v,b]=y.split("~").map(w=>w===""||w==null?null:Number(w));s.ranges[m.slice(6)]=[Number.isFinite(v)?v:null,Number.isFinite(b)?b:null]}else m.startsWith("in.")?((d=s.values)[h=m.slice(3)]||(d[h]=[])).push(y):m.startsWith("sum.")&&ni[y]&&(s.sums[m.slice(4)]=y);let u=t.get("sum");u&&ni[u]&&(s.sum=u),s.numeric=(t.get("num")||"").split("|").filter(Boolean);let p=t.get("chart");return["bar","line","scatter"].includes(p)&&(s.chart=p),s.x=t.get("x")||null,s.y=(t.get("y")||"").split("|").filter(Boolean),s}var ml=e=>"#"+e+":";function eo(e,t){if(!t||typeof e!="string"||!e.startsWith(ml(t)))return null;try{return wy(e.slice(ml(t).length))}catch{return null}}function tp(e,t){let s=by(t);return s?ml(e)+s.replace(/%3A/gi,":").replace(/%7C/gi,"|").replace(/%7E/gi,"~").replace(/%2C/gi,","):""}var vl=e=>/^#table(?:-\d+)?:/.test(e||"");var yl=function(e,t=e){let s=/\bXXXX-\d+\b/g;t.on("dark-mode",(L,E)=>{e.aceOption&&(e.aceOption.theme=E?"nord_dark":"chrome")});let i=Et(),o=qt();e.isMac=/Mac|iPhone|iPad|iPod/.test(navigator.platform||navigator.userAgent);let r={yml:"yaml",txt:"text",py:"python",js:"javascript",ts:"typescript"},u=["license","txt"],p=["png","jpg","jpeg","gif","svg","ico","bmp","tiff","tif","webp","avif","heif","heic"],d=["wav","mp3","ogg","wma","flac","aac","m4a"],h=["mp4","avi","webm","mov","mpg","mpeg","mkv","flv","wmv","3gp","3g2","m4v","f4v","f4p","f4a","f4b"];e.toggleSource=function(){e.showSource=!e.showSource},e.toggleAllowScripts=function(){e.allowScripts=!e.allowScripts};let m=(()=>{try{return window.localStorage?.getItem("wrapLines")}catch{return null}})();e.wrapLines=(m??(window.matchMedia?.("(max-width: 767px)").matches?"false":"true"))!=="false",e.toggleWrap=function(){e.wrapLines=!e.wrapLines;try{window.localStorage?.setItem("wrapLines",String(e.wrapLines))}catch{}e.codeEditor?.session.setUseWrapMode(e.wrapLines)};function y(){return window.document.querySelector(".reading-layout .markdown-body")}function v(){let L=y();L&&(L.querySelectorAll("mark.md-find").forEach(E=>{E.replaceWith(window.document.createTextNode(E.textContent))}),L.normalize())}e.runMdFind=function(){v(),e.mdFindTotal=0,e.mdFindIndex=0;let L=(e.mdFindQuery||"").trim(),E=y();if(!L||!E)return;let q=!!e.mdFindCase,Y=q?L:L.toLowerCase(),X=window.document.createTreeWalker(E,4),j=[];for(;X.nextNode();)(q?X.currentNode.nodeValue:X.currentNode.nodeValue.toLowerCase()).includes(Y)&&j.push(X.currentNode);let se=0;for(let te of j){let he=te.nodeValue,Se=q?he:he.toLowerCase(),_e=window.document.createDocumentFragment(),et=0,ze;for(;(ze=Se.indexOf(Y,et))!==-1;){_e.appendChild(window.document.createTextNode(he.slice(et,ze)));let He=window.document.createElement("mark");He.className="md-find",He.textContent=he.slice(ze,ze+L.length),_e.appendChild(He),se++,et=ze+L.length}_e.appendChild(window.document.createTextNode(he.slice(et))),te.parentNode.replaceChild(_e,te)}e.mdFindTotal=se,se&&e.stepMdFind(0)},e.stepMdFind=function(L){let E=y();if(!E||!e.mdFindTotal)return;let q=E.querySelectorAll("mark.md-find");e.mdFindIndex=(e.mdFindIndex+L+q.length)%q.length,q.forEach((Y,X)=>Y.classList.toggle("is-current",X===e.mdFindIndex)),q[e.mdFindIndex]?.scrollIntoView({block:"center",behavior:"smooth"})},e.toggleMdFind=function(L){if(e.mdFindOpen=L===void 0?!e.mdFindOpen:L,!e.mdFindOpen){v(),e.mdFindTotal=0;return}Ke(()=>window.document.querySelector(".md-find-input")?.focus())},e.findInFile=function(){let L=e.codeEditor;if(!L)return;L.focus(),L.execCommand("find");let E=()=>{let q=L.searchBox?.element;q&&(L.renderer.setScrollMargin(52,12,0,0),!q._dockObserver&&(q._dockObserver=new MutationObserver(()=>{L.renderer.setScrollMargin(q.style.display!=="none"
Line truncated
|
|
|
|
|
`).forEach((E,q)=>{for(let[Y,X]of b){let j=Y.exec(E);if(j&&!/^(if|for|while|switch|return|catch)$/.test(j[1])){L.push({name:j[1],kind:X,line:q+1});break}}}),w={content:e.content,list:L.slice(0,300)},w.list},e.goToSymbol=function(L){e.symbolsOpen=!1;let E=e.codeEditor;E&&(E.scrollToLine(L-1,!0,!0,()=>{}),E.gotoLine(L,0,!0),window.history.replaceState(null,"",window.location.pathname+window.location.search+"#L"+L),window.dispatchEvent(new HashChangeEvent("hashchange")))},e.gotoLine=function(){e.codeEditor&&(e.moreOpen=!1,e.gotoError="",e.gotoValue=String(e.codeEditor.getCursorPosition().row+1),e.gotoOpen=!0,setTimeout(()=>{let L=window.document.getElementById("goto-input");L&&(L.focus(),L.select())},0))},e.closeGoto=function(){e.gotoOpen=!1,e.gotoError="",e.codeEditor?.focus()},e.submitGoto=function(){let L=e.codeEditor;if(!L)return;let E=/^\s*:?\s*(\d+)\s*(?:[:,]\s*(\d+))?\s*$/.exec(e.gotoValue||""),q=L.session.getLength();if(!E||+E[1]<1||+E[1]>q){e.gotoError="Enter a line from 1 to "+q;return}L.gotoLine(+E[1],E[2]?Math.max(0,+E[2]-1):0,!0),e.gotoOpen=!1,e.gotoError="",L.focus()},e.rootEntries=function(){return[...e.files||[]].sort((L,E)=>{let q=L.size==null,Y=E.size==null;return q!==Y?q?-1:1:L.name.localeCompare(E.name)})},e.formatSize=function(L){if(L==null)return"";if(L<1024)return L+" B";let E=L/1024,q=Y=>Y.toFixed(1).replace(/\.0$/,"");return E<1024?q(E)+" KB":E<1024*1024?q(E/1024)+" MB":q(E/1024/1024)+" GB"},e.fileSize=function(L){if(!L)return null;let E=L.replace(/^\/+/,""),q=(e.files||[]).find(Y=>(Y.path?Y.path+"/":"")+Y.name===E);return q&&q.size!=null?q.size:null},e.revealFolder=function(L){e.sidebarHidden=!1,e.sidebarCollapsed=!1,Ke(()=>{let E=window.document.querySelector('.files a[data-path="/'+(window.CSS?.escape?window.CSS.escape(L):L)+'"]');E&&(E.closest("li")?.classList.contains("open")||E.click(),E.scrollIntoView({block:"nearest"}),E.focus())})};let C={content:null,n:0},N=L=>{if(C.content===L)return C.n;let E=L;if(typeof E=="string")try{E=JSON.parse(E)}catch{E=null}let q=[],Y=j=>{Array.isArray(j)?q.push(j.join("")):typeof j=="string"&&q.push(j)};(E&&(E.cells||(E.worksheets||[]).flatMap(j=>j.cells||[]))||[]).forEach(j=>{Y(j?.source??j?.input),(j?.outputs||[]).forEach(se=>{Y(se?.text),se?.data&&(Y(se.data["text/plain"]),Y(se.data["text/markdown"]),Y(se.data["text/html"])),Y(se?.traceback)})});let X=q.reduce((j,se)=>j+(se.match(s)||[]).length,0);return C={content:L,n:X},X};e.redactionCount=function(){return e.type==="IPython"?N(e.content):typeof e.content!="string"?0:((e.type==="html"?e.content.replace(/<[^>]*>/g," "):e.content).match(s)||[]).length},e.renderRedacted=to;let k=L=>L.toLowerCase().trim().replace(/[^a-z0-9\s-]/g,"").replace(/\s+/g,"-").slice(0,60)||"section";e.renderReadme=function(L){let E=e.renderRedacted(L);if(!E||typeof window.DOMParser!="function")return E;let q=new window.DOMParser().parseFromString("<div>"+E+"</div>","text/html"),Y={};return q.querySelectorAll("h1, h2, h3").forEach(X=>{let j=X.id||k(X.textContent);Y[j]?j+="-"+ ++Y[j]:Y[j]=1,X.id=j}),q.body.firstChild.innerHTML};let P={content:null,list:[],title:null,count:0},D=()=>{if(e.type!=="html"||typeof e.content!="string")return{list:[],title:null,count:0};if(P.content===e.content)return P;let L=Sr(e.renderReadme(e.sanitize?e.sanitize(e.content):e.content)),E=L.length,q=null;if(L[0]?.level===1&&L.filter(Y=>Y.level===1).length===1){q=L[0],L=L.slice(1);let Y=Math.min(...L.map(X=>X.level));L=L.map(X=>({...X,depth:X.level-Y}))}return P={content:e.content,list:L,title:q,count:E},P};e.readmeToc=()=>D().list,e.tocTitle=()=>D().title,e.tocCount=()=>D().count,e.activeHeading=null,o(window,"scroll",()=>{let L=e.readmeToc?e.readmeToc():[];if(e.tocCount()<3)return;let E=Er(L.map(q=>q.id),{offset:120,scroller:window.document.querySelector(".explorer-content")});e.activeHeading!==E&&(e.activeHeading=E)},{capture:!0,passive:!0}),e.scrollToHeading=function(L){if(!L){(window.document.querySelector(".explorer-content, .file-card-body, .main-pane")||window).scrollTo({top:0,behavior:"smooth"}),e.activeHeading="";return}Nr(L),e.activeHeading=L};let F=()=>!e.preview&&eo(window.location.hash,"table")?.view||"table";e.csvView=F();let z={content:null,rows:[]};e.isCsv=()=>typeof e.content=="string"&&e.type!=="html"&&/\.(csv|tsv)$/i.test(e.filePath||"")&&e.content.length<=1024*1024,e.csvRows=()=>{if(z.content!==e.content){let L=/\.tsv$/i.test(e.filePath||"")?" ":",";z={content:e.content,rows:ei(e.content,L)}}return z.rows},e.redactParts=Qt,e.pathCopied=!1,e.copyPath=async function(){window.navigator.clipboard?.writeText&&(await window.navigator.clipboard.writeText(e.filePath||""),e.pathCopied=!0,setTimeout(()=>{e.pathCopied=!1},1600))},e.contentCopied=!1,e.copyContent=async function(){if(typeof e.content!="string"||!window.navigator.clipboard?.writeText)return;let L=e.content;if(e.type==="html"&&e.url)if(e.preview)L=e.sourceContent;else try{L=await(await window.fetch(e.url,{credentials:"same-origin"})).text()}catch{return}await window.navigato
Line truncated
|
|
|
|
|
`).length:0,Cy=e=>/\.(md|markdown|mdx)$/i.test(e?.filename||"")||e?.language==="Markdown";function sp(e,t){let s=qt();e.redactParts=Qt,e.hangIndent=Zs,e.isRedactedName=o=>/^XXXX-\d+$/.test(String(o||"").trim()),e.tocOpen=!1,e.activeAnchor="";let i=()=>{let o=t();if(!o.length)return;let r=Er(o,{offset:64,scroller:window.document.querySelector("main.app-view")});e.activeAnchor!==r&&(e.activeAnchor=r)};return s(window,"scroll",i,{capture:!0,passive:!0}),s(window,"resize",i,{passive:!0}),s(window.document,"click",o=>{e.tocOpen&&!o.target.closest?.(".toc-menu")&&(e.tocOpen=!1)}),s(window.document,"keydown",o=>{o.key==="Escape"&&e.tocOpen&&(e.tocOpen=!1)}),e.jumpToAnchor=o=>{e.tocOpen=!1,Nr(o)&&(e.activeAnchor=o)},i}var qr=e=>(String(e||"").split(".").pop()||"").toLowerCase(),Sy={md:"markdown",markdown:"markdown",mdx:"markdown",ipynb:"notebook",csv:"csv",tsv:"csv",svg:"svg",png:"image",jpg:"image",jpeg:"image",gif:"image",webp:"image",bmp:"image",ico:"image",avif:"image",pdf:"pdf",mp4:"video",webm:"video",mov:"video",m4v:"video",ogv:"video",mp3:"audio",wav:"audio",ogg:"audio",oga:"audio",m4a:"audio",flac:"audio",aac:"audio"},Ey={svg:"image/svg+xml",png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",webp:"image/webp",bmp:"image/bmp",ico:"image/x-icon",avif:"image/avif",pdf:"application/pdf",mp4:"video/mp4",webm:"video/webm",mov:"video/quicktime",m4v:"video/mp4",ogv:"video/ogg",mp3:"audio/mpeg",wav:"audio/wav",ogg:"audio/ogg",oga:"audio/ogg",m4a:"audio/mp4",flac:"audio/flac",aac:"audio/aac"},Ny=1024*1024;function no(e){if(e?.tooLarge)return"too-large";if(e?.hidden)return"hidden";let t=Sy[qr(e?.filename)]||(e?.language==="Markdown"?"markdown":null);return e?.encoding==="base64"?["image","pdf","video","audio"].includes(t)&&e.content?t:"binary":e?.content?t==="csv"&&e.content.length>Ny?"code":["markdown","notebook","csv","svg"].includes(t)?t:"code":"empty"}var Ry=e=>["markdown","notebook","csv","svg"].includes(e),np={markdown:"Markdown",notebook:"Jupyter notebook",csv:"Table",svg:"SVG",image:"Image",pdf:"PDF",video:"Video",audio:"Audio",binary:"Binary","too-large":"Too large",hidden:"Image"};function Ty(e,t){return t==="markdown"?"markdown":t==="notebook"?"json":t==="svg"?"markup":t==="csv"?"none":e?.language||qr(e?.filename)||"none"}var Py=e=>{let t=window.atob(e||""),s=new Uint8Array(t.length);for(let i=0;i<t.length;i++)s[i]=t.charCodeAt(i);return s};function op(e){e.gistViews={};let t=/^#table-(\d+):/.exec(window.location.hash||"");if(t){let u=eo(window.location.hash,"table-"+t[1])?.view;(u==="chart"||u==="raw")&&(e.gistViews[+t[1]-1]=u)}e.gistKind=u=>no(e.details?.files?.[u]),e.gistHasRendered=u=>Ry(e.gistKind(u)),e.gistView=u=>!e.gistHasRendered(u)||e.gistViews[u]==="raw"?"raw":e.gistViews[u]==="chart"&&e.gistKind(u)==="csv"?"chart":"rendered",e.setGistView=(u,p)=>{e.gistViews={...e.gistViews,[u]:p}},e.gistSourceFile=u=>{let p=e.details?.files?.[u];return{...p,language:Ty(p,e.gistKind(u)),filename:"source.txt"}};let s=new Map;Ln(()=>{s.forEach(u=>window.URL.revokeObjectURL?.(u)),s.clear()});let i=(u,p)=>{if(!u||!window.URL?.createObjectURL)return null;let d=u.encoding==="base64",h=!p||d?Ey[qr(u.filename)]||(d?"application/octet-stream":"text/plain"):"text/plain",m=(u.filename||"")+"\0"+h+"\0"+(u.content||"").length;if(!s.has(m)){let y=d?Py(u.content):u.content||"";s.set(m,window.URL.createObjectURL(new window.Blob([y],{type:h+(d?"":";charset=utf-8")})))}return s.get(m)};e.gistMediaUrl=u=>i(u,!1),e.gistRawUrl=u=>i(u,!0);let o=new WeakMap;e.gistCsvRows=u=>{if(!u)return[];let p=o.get(u);return(!p||p.content!==u.content||p.filename!==u.filename)&&(p={content:u.content,filename:u.filename,rows:ei(u.content||"",qr(u.filename)==="tsv"?" ":",")},o.set(u,p)),p.rows},e.gistCopied=null,e.copyGistFile=async u=>{let p=e.details?.files?.[u];!p||p.encoding==="base64"||!window.navigator.clipboard?.writeText||(await window.navigator.clipboard.writeText(p.content||""),e.gistCopied=u,window.setTimeout(()=>{e.gistCopied===u&&(e.gistCopied=null)},1600))},e.fileOutlines={},e.gistFileId=u=>"file-"+(u+1),e.setFileOutline=(u,p)=>{let d=e.fileOutlines[u];d&&d.map(h=>h.id).join()===p.map(h=>h.id).join()||(e.fileOutlines={...e.fileOutlines,[u]:p})},e.gistToc=()=>(e.details?.files||[]).map((u,p)=>({id:e.gistFileId(p),index:p,parts:Qt(u.filename),kind:no(u),language:np[no(u)]&&no(u)!=="csv"?np[no(u)]:u.language||(no(u)==="csv"?"CSV":"Text"),lines:u.encoding==="base64"?null:ky(u.content),size:u.size,headings:Cy(u)&&e.gistView(p)==="rendered"?e.fileOutlines[p]||[]:[]}));let r=()=>e.gistToc().flatMap(u=>[u.id,...u.headings.map(p=>p.id)]);e.showGistToc=()=>{let u=e.gistToc();return e.tabState?.active==="files"&&(u.length>=2||(u[0]?.headings.length||0)>=3)},e.activeFileIndex=()=>{let p=e.gistToc().find(d=>d.id===e.activeAnchor||d.headings.some(h=>h.id===e.activeAnchor));return p?p.index:0},sp(e,r)}var Ay=e=>e?.merged?"merged":e?.draft&&e?.state==="open"?"draft":e?.state==="closed"?"closed":"open";function ip(e){let t={diff:null,th
Line truncated
|
|
|
|
|
`),p=i.date?e.fmt?.date(i.date):"",d=s[s.length-1];(!d||d.day!==p)&&s.push(d={day:p,commits:[]}),d.commits.push({...i,index:o+1,headline:r,detail:u.join(`
|
|
|
|
|
`).trim()})}),s},e.showFileToc=()=>e.tabState?.active==="files"&&e.prFiles().length>=2,e.activeFileIndex=()=>{let s=e.prFiles().find(i=>i.id===e.activeAnchor);return s?s.index:0},e.openTab=s=>{e.tabState={active:s},e.tocOpen=!1},e.showInDiff=s=>{s&&(e.openTab("files"),e.collapsedFiles={...e.collapsedFiles,[s.index]:!1},Ke(()=>e.jumpToAnchor(s.id)))},e.jumpToFile=s=>{e.collapsedFiles={...e.collapsedFiles,[s.index]:!1},e.jumpToAnchor(s.id)},sp(e,()=>e.tabState?.active==="files"?e.prFiles().map(s=>s.id):[])}function rp(e){return e?.body||e?.comments?.length||e?.reviewComments?.length?"conversation":e?.diff?"files":e?.commits?.length?"commits":"conversation"}function bl(e,t,s){let i,o=!1,r="form-draft:"+s,u=()=>Object.fromEntries(t.map(v=>[v,e[v]])),p=()=>JSON.stringify(u()),d=v=>{for(let b of t)Object.prototype.hasOwnProperty.call(v,b)&&(e[b]=v[b]);e.options?.expirationDate&&(e.options.expirationDate=new Date(e.options.expirationDate))},h=()=>{try{window.sessionStorage.removeItem(r)}catch{}},m=(v=!1)=>{if(i!==void 0){if(v&&document.querySelectorAll("input, select, textarea").forEach(b=>{b._field?.binding.state===e&&b._field.timer&&b._field.commit()}),e.unsavedChanges=p()!==i,e.draftSaved=!1,!e.unsavedChanges){h();return}try{window.sessionStorage.setItem(r,JSON.stringify({account:e.user?.username||null,savedAt:Date.now(),values:u()})),e.draftSaved=!0}catch{}}},y=()=>m(!0);return e.on("routeLeave",y),window.addEventListener("beforeunload",y),e.on("dispose",()=>window.removeEventListener("beforeunload",y)),{restore(){i=p();let v;try{v=JSON.parse(window.sessionStorage.getItem(r)||"null")}catch{}let b=v&&v.account===(e.user?.username||null)&&Date.now()-v.savedAt<30*6e4&&v.values;return b&&(d(v.values),e.draftRestored=!0),o||(o=!0,e.watch(()=>u(),()=>m(),!0)),e.unsavedChanges=p()!==i,!!b},checkpoint(){return document.querySelectorAll("input, select, textarea").forEach(v=>{v._field?.binding.state===e&&v._field.timer&&v._field.commit()}),JSON.parse(p())},accept(v){i=JSON.stringify(v),e.draftRestored=!1,m()},discard(){document.querySelectorAll("input, select, textarea").forEach(v=>{v._field?.binding.state!==e||!v._field.timer||(clearTimeout(v._field.timer),v._field.timer=null,v.value=v._field.binding.value??"")}),i!==void 0&&d(JSON.parse(i)),e.draftRestored=!1,m()},clear(){i=p(),e.unsavedChanges=!1,e.draftRestored=!1,e.draftSaved=!1,h()}}}function ap(e,t){e.errorSource="central",e.logView={search:"",severity:"",sort:"recent"},e.selectedLog=null,e.logDetailTab="overview",e.logSeverity=y=>Number(y?.status||y?.httpStatus)>=500||["error","fatal"].includes(y?.severity)?"error":y?.severity==="warn"?"warn":"info",e.filteredLogGroups=()=>{let y=e.logView.search.trim().toLowerCase();return(e.logData?.groups||[]).filter(v=>(!e.logView.severity||e.logSeverity(v.sample)===e.logView.severity)&&(!y||Object.values(v.sample).join(" ").toLowerCase().includes(y))).slice().sort((v,b)=>e.logView.sort==="count"?b.count-v.count:Date.parse(b.last)-Date.parse(v.last))},e.shortLogId=y=>y?y.slice(0,8):"",e.isLogIdentifier=(y,v)=>typeof v=="string"&&v.length>16&&/(?:id|sha|release)$/i.test(y),e.compactLogValue=y=>String(y).slice(0,8)+"\u2026"+String(y).slice(-4),e.logCopyStatus="",e.copyLogValue=async y=>{try{await navigator.clipboard.writeText(String(y)),e.logCopyStatus="Full value copied"}catch{e.logCopyStatus="Copy unavailable. Expand the value to select it."}},e.logExplanation=y=>{let v=y.service||"The application",b={job_failed:"reported a failed job",request_failed:"reported a failed request",request_aborted:"reported an aborted request",edge_request:"recorded an edge request",http_access:"recorded an HTTP request"}[y.event]||"recorded \u201C"+(y.event||"application event")+"\u201D",w=Number(y.status||y.httpStatus),C={502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout"}[w];return v+" "+b+(w?" with HTTP "+w+(C?" ("+C+")":""):"")+"."},e.logEvidence=y=>[y.errorCode?"Recorded error code: "+y.errorCode+".":"No error code was included in this sample.",y.ms!==void 0?"Recorded duration: "+y.ms+" ms.":"",y.attempt!==void 0?"Recorded attempt: "+y.attempt+".":"",y.queue?"Queue: "+y.queue+".":""].filter(Boolean).join(" "),e.occurrenceTime=y=>Number.isFinite(Date.parse(y))?new Date(y).toLocaleString(void 0,{dateStyle:"medium",timeStyle:"medium"}):"Time not captured",e.historyOccurrences=y=>(y?._related||[]).slice().sort((v,b)=>Date.parse(b.ts)-Date.parse(v.ts)),e.historyDetailFields=y=>{try{let v=JSON.parse(y?._detailJson||"{}");return v&&typeof v=="object"?Object.entries(v):[["value",v]]}catch{return[["record",y?._detailJson||""]]}},e.logFieldText=y=>typeof y=="object"?JSON.stringify(y):String(y??""),e.captureErrorScroll=y=>{let v=[];for(let b=y?.parentElement;b;b=b.parentElement)v.push({element:b,top:b.scrollTop,left:b.scrollLeft});return v},e.restoreErrorScroll=y=>y.forEach(({element:v,top:b,left:w})=>{v.isConnected&&(v.scrollTop=b,v.scrollLeft=w)});let s=null,i=null,o=null,r=[];e.selectLog=async(y,v)=>{if(i=v||document.activeElement,
Line truncated
|
|
|
|
|
`+C.join(`
|
|
|
|
|
`)],{type:"text/csv"}),k=document.createElement("a");k.href=URL.createObjectURL(N),k.download=i.username+"-repositories.csv",k.click()},e.showStatusMessage=v=>{let b=v.statusMessage||"(no message)";window.prompt(`Status message for ${v.repoId} (${v.status}):`,b)},e.fetchGithubInfo=v=>{let b=window.open("","_blank");b&&b.document.write("<pre>Loading GitHub info for "+v.repoId+"...</pre>"),t.get("/api/admin/repos/"+v.repoId+"/github").then(w=>{b&&(b.document.open(),b.document.write('<pre style="font:13px monospace;padding:16px;white-space:pre-wrap">'+JSON.stringify(w.data,null,2).replace(/[<>]/g,C=>C==="<"?"<":">")+"</pre>"),b.document.close())},w=>{let C=w&&w.data?JSON.stringify(w.data,null,2):String(w);b&&(b.document.body.innerHTML='<pre style="color:#B42318;padding:16px">'+C+"</pre>")})};function d(v){t.get("/api/admin/users/"+v+"/repos",{}).then(b=>{e.repositories=b.data},b=>{console.error(b)})}function h(v){t.get("/api/admin/users/"+v,{}).then(b=>{e.userInfo=b.data},b=>{console.error(b)})}h(i.username),d(i.username),e.banUser=()=>{confirm(`Ban user ${i.username}?`)&&t.post(`/api/admin/users/${i.username}/ban`).then(()=>h(i.username),v=>console.error(v))},e.activateUser=()=>{t.post(`/api/admin/users/${i.username}/activate`).then(()=>h(i.username),v=>console.error(v))},e.promoteUser=()=>{confirm(`Promote ${i.username} to admin?`)&&t.post(`/api/admin/users/${i.username}/promote`).then(()=>h(i.username),v=>console.error(v))},e.demoteUser=()=>{confirm(`Remove admin privileges from ${i.username}?`)&&t.post(`/api/admin/users/${i.username}/demote`).then(()=>h(i.username),v=>console.error(v))},e.tokens=[],e.tokenForm={name:"",plaintext:null};function m(){t.get("/api/admin/tokens").then(v=>{e.tokens=v.data||[]},v=>{v.status!==401&&v.status!==403&&console.error(v)})}m(),e.createToken=()=>{e.tokenForm.name&&t.post("/api/admin/tokens",{name:e.tokenForm.name}).then(v=>{e.tokenForm.plaintext=v.data.token,e.tokenForm.name="",m()},v=>console.error(v))},e.revokeToken=v=>{confirm(`Revoke token "${v.name}"?`)&&t.delete("/api/admin/tokens/"+v.id).then(()=>m(),b=>console.error(b))},e.removeCache=v=>{confirm("Remove cached files for "+v.repoId+"?")&&t.delete("/api/admin/repos/"+v.repoId).then(()=>d(i.username),b=>console.error(b))},e.removeRepository=v=>{confirm("Remove repository "+v.repoId+"?")&&t.delete("/api/repo/"+v.repoId+"/").then(()=>d(i.username),b=>console.error(b))},e.updateRepository=v=>{let b=ut({title:`Refreshing ${v.repoId}...`,date:new Date,body:`The repository ${v.repoId} is going to be refreshed.`});e.toasts.push(b),t.post(`/api/repo/${v.repoId}/refresh`).then(w=>{w.data.status=="ready"?b.title=`${v.repoId} is refreshed.`:b.title=`Refreshing of ${v.repoId}.`},w=>{b.title=`Error during the refresh of ${v.repoId}.`,b.body=w.body})},e.getGitHubRepositories=v=>{t.get(`/api/user/${e.userInfo.username}/all_repositories`,{params:{force:"1"}}).then(b=>{e.userInfo.repositories=b.data})};let y=null;e.watch("query",()=>{o.timeout.cancel(y),y=o.timeout(()=>{d(i.username)},500)},!0)},cp=function(e,t,s){let i=Et(),o=qt();e.Math=Math,e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.conferences=[],e.total=-1,e.listLoaded=!1,e.listLoading=!0,e.totalPage=0,e.statusCounts=[];let r=w=>{if(w.key==="/"&&!["INPUT","TEXTAREA","SELECT"].includes(document.activeElement?.tagName)){w.preventDefault();let C=document.querySelector('.admin-filter-toolbar input[type="search"]');C&&C.focus()}};o(document,"keydown",r),e.on("dispose",()=>document.removeEventListener("keydown",r)),e.clearFilter=w=>{w==="dateRange"?(e.query.dateFrom="",e.query.dateTo=""):e.query[w]="",e.query.page=1},e.chips=[];let u=()=>{let w=[];(e.query.dateFrom||e.query.dateTo)&&w.push({key:"dateRange",label:"Date",value:(e.query.dateFrom||"\u2026")+" \u2013 "+(e.query.dateTo||"\u2026")}),e.chips=w};e.statusCountFor=w=>{let C=(e.statusCounts||[]).find(N=>N._id===w);return C?C.count:0},e.toggleSortDirection=()=>{e.query.direction=e.query.direction==="asc"?"desc":"asc"},e.sortBy=w=>{e.query.sort===w?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=w,e.query.direction="desc"),e.query.page=1},e.sortIcon=w=>e.query.sort===w?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"";let p="admin.conferences.filterPrefs",d={page:1,limit:25,sort:"name",direction:"asc",search:"",dateFrom:"",dateTo:"",ready:!0,expired:!0,removed:!0,error:!0,preparing:!0},h=loadFilterPrefs(p)||{};e.query=Object.assign({},d,h,{page:1,search:""});let m=s.search();m.search&&(e.query.search=m.search);let y="admin.conferences.presets";e.presets=JSON.parse(localStorage.getItem(y)||"[]"),e.savePreset=()=>{let w=window.prompt("Preset name:");if(!w)return;let C=Object.assign({},e.query);delete C.page,e.presets=(e.presets||[]).filter(N=>N.name!==w),e.presets.push({name:w,query:C}),localStorage.setItem(y,JSON.stringify(e.presets))},e.applyPreset=w=>{Object.assign(e.query,w.query,{page:1})},e.deletePreset=w=>{e.presets=(e.presets||[]).filter(C=>C.name!==
Line truncated
|
|
|
|
|
`):typeof U.stack=="string"?U.stack:null;for(var G=[U.cause,U.err].filter(Boolean),L=0;!q&&L<G.length;L++)for(var E=G[L];!q&&E&&typeof E=="object";)typeof E.stack=="string"&&(q=E.stack),E=E.cause;V._stack=q}else V.displayMessage=V.message,V._status=null,V._url=null,V._stack=null;return V._bucket=v(U,V.level),V._detailJson=w(V,U),V}function w(V,U){let G=[],L=(X,j)=>{j==null||j===""||G.push([X,j])};for(let X of["service","event","severity","requestId","jobId"])L(X,U&&U[X]);L("name",U&&U.name),L("code",V.displayMessage||U&&U.message),V._bucket&&L("kind",V._bucket),L("httpStatus",U&&U.httpStatus),U&&U.status&&!U.httpStatus&&L("status",U.status),L("module",V.module);let E=U&&U.detail;if(typeof E=="string"){let X=E.trim();if(X[0]==="{"||X[0]==="[")try{E=JSON.parse(E)}catch{}}if(L("detail",E),L("repoId",U&&U.repoId),L("filePath",U&&U.filePath),L("upstreamStatus",U&&U.upstreamStatus),L("upstreamBody",U&&U.upstreamBody),L("url",V._url),L("err",U&&U.err),L("cause",U&&!U.err&&U.cause),L("ts",V.ts),!G.length)return JSON.stringify(V,null,2);let q=G.reduce((X,j)=>Math.max(X,j[0].length),0),Y=["{"];return G.forEach(([X,j],se)=>{let he=` ${`"${X}":`.padEnd(q+3," ")} `,Se=se<G.length-1?",":"",_e;if(j&&typeof j=="object"){let et=" ".repeat(he.length);_e=JSON.stringify(j,null,2).split(`
|
|
|
|
|
`).map((ze,He)=>He===0?ze:et+ze).join(`
|
|
|
|
|
`)}else typeof j=="number"||typeof j=="boolean"?_e=String(j):_e=JSON.stringify(j);Y.push(`${he}${_e}${Se}`)}),Y.push("}"),Y.join(`
|
|
|
|
|
`)}function C(V){let U=[],G="",L=/(\w+):(>=|<=|!=|>|<|=)?([^\s]+)/g,E=0,q;for(;q=L.exec(V);)G+=V.slice(E,q.index),E=L.lastIndex,U.push({key:q[1],op:q[2]||"=",val:q[3]});return G+=V.slice(E),{filters:U,free:G.trim().toLowerCase()}}function N(V,U){for(let G of U.filters){let L=(q,Y,X)=>{let j=parseFloat(q),se=parseFloat(Y);return X==="="?String(q)===String(Y):X==="!="?String(q)!==String(Y):X===">="?j>=se:X==="<="?j<=se:X===">"?j>se:X==="<"?j<se:!0},E;if(G.key==="code")E=V.displayMessage;else if(G.key==="module")E=V.module;else if(G.key==="status")E=V._status;else if(G.key==="url")E=V._url;else if(G.key==="repo")E=V._repoId;else if(G.key==="level")E=V.level;else continue;if(E==null||!L(E,G.val,G.op))return!1}return!(U.free&&((V.displayMessage||"")+" "+(V.module||"")+" "+(V._url||"")+" "+JSON.stringify(V.raw||[])).toLowerCase().indexOf(U.free)===-1)}function k(){let V=C(e.query.search||"");e.parsedFilterCount=V.filters.length;let U=e.query.bucket,G=e.entries.filter(X=>U&&X._bucket!==U?!1:N(X,V)),L=e.query.group;if(L){let X=te=>JSON.stringify(L==="module"?[te.module,te._bucket]:[te.raw?.[0]?.service||"unknown",te.module,te.displayMessage||te.message||"_",te._bucket,te._status]),j=new Map;for(let te of G){let he=X(te);if(j.has(he)){let Se=j.get(he);Se.count++,Se._related.push(te),new Date(te.ts)>new Date(Se.ts)&&(Se.ts=te.ts,Se._url=te._url,Se._status=te._status),new Date(te.ts)<new Date(Se._firstSeen)&&(Se._firstSeen=te.ts)}else{let Se=Object.assign({},te);Se._key=`${L}:${he}`,Se._related=[te],Se._firstSeen=te.ts,Se._lastHourCount=0,Se.count=1,j.set(he,Se)}}let se=Date.now()-3600*1e3;for(let te of j.values())te._lastHourCount=te._related.filter(he=>new Date(he.ts).getTime()>=se).length;G=Array.from(j.values())}else G=G.map((X,j)=>(X._key="row:"+j+":"+X.ts,X._related=[X],X._firstSeen=X.ts,X._lastHourCount=0,X.count=1,X));let E=X=>({error:0,warn:1,info:2})[X._bucket]??1;e.query.sort==="count"?G.sort((X,j)=>E(X)-E(j)||j.count-X.count||new Date(j.ts)-new Date(X.ts)):G.sort((X,j)=>E(X)-E(j)||new Date(j.ts)-new Date(X.ts)),e.visible=G;let q=!!(e.query.bucket||(e.query.search||"").trim()),Y=!q&&(e.stats?.severity?.error||0)>0&&!G.some(X=>X._bucket==="error")&&e.entries.length<1500;(q&&!G.length||Y)&&e.canLoadMore?.()&&!e._autoLoading&&e.entries.length<2500&&(e._autoLoading=!0,P(!0))}function P(V){if(V&&e.redisLoading)return;let U=++o;e.redisLoading=!0;let G=V?e.redisNextOffset||e.entries.length:0,L=V?e.pageSize:Math.max(e.pageSize,e.redisNextOffset||e.entries.length||e.pageSize);t.get("/api/admin/errors",{params:{offset:G,limit:L}}).then(E=>{if(p||U!==o)return;e.redisLoading=!1;let q=(E.data.entries||[]).map(b);e.entries=V?e.entries.concat(q):q,e.redisRedacted=(V&&e.redisRedacted||0)+(E.data.redactedEntries||0),e.redisNextOffset=E.data.nextOffset??G+(E.data.entries||[]).length,e.available=!!E.data.available,e.redisCollecting=E.data.redisCollecting!==!1,e.cap=E.data.max||e.cap,e.total=E.data.total||e.entries.length,e._autoLoading=!1,k()},()=>{p||U!==o||(e.redisLoading=!1,e._autoLoading=!1,e.available=!1)})}e.loadMore=()=>P(!0),e.canLoadMore=()=>(e.redisNextOffset||e.entries.length)<e.total;function D(V=!1){if(V&&u)return;let U=++r;u=!0,t.get("/api/admin/errors/stats").then(G=>{if(p||U!==r)return;u=!1;let L=G.data||{};e.redisStatsState=L.available===!1?"unavailable":"ready";let E=L.prev24h?Math.round((L.last24h-L.prev24h)/L.prev24h*100):0;e.stats={last24h:L.last24h||0,prev24h:L.prev24h||0,delta:E,severity:L.severity||{error:0,warn:0,info:0},unique:L.unique||{error:0,warn:0,info:0},buckets:L.buckets||[],dropped:L.dropped||0},k()},()=>{!p&&U===r&&(u=!1,e.redisStatsState="unavailable")})}function F(V=!1){(!V||!e.redisLoading)&&P(),D(V)}e.barPx=(V,U)=>{let G=e.stats.buckets||[],L=0,E=0;for(let j of G)L=Math.max(L,(j.error||0)+(j.warn||0)),E=Math.max(E,j.info||0);let q=V[U]||0;if(!q)return 0;if(U==="info")return E?Math.max(2,Math.round(q/E*(L?16:60))):0;let Y=(V.error||0)+(V.warn||0),X=Math.round(Y/L*44);return Math.max(4,Math.round(q/Y*X))},e.bucketTitle=V=>`${new Date(V.hour).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})} \xB7 ${V.error||0} err \xB7 ${V.warn||0} warn \xB7 ${V.info||0} info`,e.toggle=async(V,U)=>{h=U||document.activeElement,m=e.captureErrorScroll(h),e.historySelected=V,e.historyView="overview",e.expanded={[V._key]:!0},await Ke(),document.getElementById("history-inspector-title")?.focus({preventScroll:!0}),document.getElementById("history-inspector-title")?.scrollIntoView?.({block:"nearest"})},e.showHistoryTimeline=V=>{if(e.historyView="timeline",e.traceSelection)return;let U=["requestId","jobId"].find(G=>e.logTraceId(e.historySelected,G));U&&e.lookupTrace(U,e.logTraceId(e.historySelected,U),V,e.historySelected)},e.closeHistory=async()=>{let V=e.historySelected?._key;e.historySelected=null,e.expanded={},e.traceSelection&&await e.closeTrace(),await Ke(),(h?.isConnected?h:[...document.querySelectorAll("[data-history-key]")].find(G=>G.dataset.historyKey===V))?.focus({preventScroll:!0}),e.restoreError
Line truncated
|
|
|
|
|
`)],{type:"text/csv;charset=utf-8"}),L=URL.createObjectURL(G),E=document.createElement("a");E.href=L,E.download=`errors-${new Date().toISOString().slice(0,19)}.csv`,document.body.appendChild(E),E.click(),document.body.removeChild(E),URL.revokeObjectURL(L)};function z(V){e.copyHint=`${V} copied`,d.timeout(()=>{e.copyHint=""},1500)}e.copyJson=V=>{navigator.clipboard.writeText(V._rawJson).then(()=>z("JSON"))},e.copyCurl=V=>{if(!V._url)return;let G=`curl -X ${V._method||"GET"} '${window.location.origin}${V._url}'`;navigator.clipboard.writeText(G).then(()=>z("curl"))},F();let K=i(()=>{e.query.autoRefresh&&F(!0)},15e3);e.on("dispose",()=>{p=!0,o++,r++,i.cancel(K)}),e.watch("query.search",k),e.watch("query.bucket",k),e.watch("query.sort",k),e.watch("query.group",k)},mp=function(e,t,s,i){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.cacheReport=null,e.cacheError=null,e.cacheMinutes=60,e.cacheTraffic="all",e.ovView=["performance","cache"].includes((window.location.hash||"").slice(1))?window.location.hash.slice(1):"summary",e.setOvView=function(k){e.ovView=k;try{window.history.replaceState(null,"",k==="summary"?window.location.pathname:"#"+k)}catch{}};var o=!1;e.loadCache=function(){if(!o){o=!0;var k=e.cacheMinutes;t.get("/api/admin/cache",{params:{minutes:k}}).then(function(P){k===e.cacheMinutes&&(e.cacheReport=P.data,e.cacheError=P.data.available?null:P.data.reason||"Cache monitoring is unavailable.")},function(){e.cacheError="Could not refresh cache monitoring. Displayed values may be stale."}).finally(function(){o=!1,k!==e.cacheMinutes&&e.loadCache()})}},e.cacheRows=function(){return(e.cacheReport?.rows||[]).filter(function(k){return e.cacheTraffic==="all"||k.traffic===e.cacheTraffic})},e.cacheRate=function(k,P){var D=e.cacheRows(),F=function(V){return D.filter(function(U){return U.name===V}).reduce(function(U,G){return U+G[P]},0)},z=F(k+"_hit"),K=F(k+"_miss");return z+K?(100*z/(z+K)).toFixed(1)+"%":"No samples"},e.cacheEventName=function(k){return k.replaceAll("_"," ")},e.cacheP95=function(k){var P=0,D=e.cacheReport?.latencyBucketsMs||[];if(!k.count)return"No samples";if(!k.ms)return"Not timed";for(var F=0;F<=D.length;F++)if(P+=k["b"+F]||0,P>=Math.ceil(k.count*.95))return F<D.length?"\u2264 "+Xn(D[F]):"> 10\u202Fs";return"No samples"},e.healthAlert=function(){let k=e.data&&e.data.system||{},P=[["Memory",k.memPercent],["Disk",k.diskPercent]].filter(([,F])=>F>90);return P.length?P.map(([F,z])=>F+" is at "+z+"%").join(" and ")+". New anonymizations may fail until "+(P.length>1?"they drop.":"it drops."):""},e.performanceError=null,e.formatMs=function(k){return k==null?"":Xn(k)},e.latencyBound=function(k,P){return k.count?k[P]==null?"> 60\u202Fs":"\u2264 "+e.formatMs(k[P]):"No samples"},e.firstByteBound=function(k){return e.latencyBound({count:k.firstByteCount,p95UpperMs:k.firstByteP95UpperMs},"p95UpperMs")},e.sampleAge=function(k){return Math.max(0,Math.round((Date.now()-k.sampledAt)/1e3))},e.peakRss=function(k){return(e.performance.runtimeSeries||[]).filter(function(P){return P.instance===k.instance}).reduce(function(P,D){return Math.max(P,D.rss)},k.memory.rss)},e.performanceWarning=function(k){return e.sampleAge(k)>45||k.droppedBatches||k.droppedMetrics||k.sockets?.closeWait>0||k.eventLoop?.p95Ms>100||k.memoryLimitBytes&&k.memory.rss>k.memoryLimitBytes*.8};var r=!1;e.loadPerformance=function(){var k=e.performanceMinutes;e.performance?.windowMinutes&&e.performance.windowMinutes!==k&&(e.performance=null),!r&&(r=!0,t.get("/api/admin/performance",{params:{minutes:k}}).then(function(P){k===e.performanceMinutes&&(e.performance=P.data,e.performanceError=P.data.available?null:"Performance monitoring is unavailable. Request history may be incomplete.")},function(){k===e.performanceMinutes&&(e.performanceError="Could not refresh performance monitoring. Displayed samples may be stale.")}).finally(function(){r=!1,k!==e.performanceMinutes&&e.loadPerformance()}))};function u(k){if(k==null)return"\u2014";for(var P=["B","KB","MB","GB","TB"],D=0,F=k;F>=1024&&D<P.length-1;)F/=1024,D++;return F.toFixed(D>0?1:0).replace(/\.0$/,"")+" "+P[D]}e.humanBytes=u;function p(k){if(!k)return"\u2014";var P=Math.floor(k/86400),D=Math.floor(k%86400/3600),F=Math.floor(k%3600/60);return P>0?P+"d "+(D<10?"0":"")+D+"h":D>0?D+"h "+(F<10?"0":"")+F+"m":F+"m"}e.humanDuration=p;function d(k){return k==null?"\u2014":k>=1e6?(k/1e6).toFixed(1)+"M":k>=1e3?(k/1e3).toFixed(1)+"K":String(k)}e.humanNum=d,e.queueTotal=function(k){return k?(k.waiting||0)+(k.active||0)+(k.delayed||0)+(k.failed||0):0},e.statusCount=function(k){if(!e.data||!e.data.repos)return 0;for(var P=e.data.repos.statusBreakdown||[],D=0;D<P.length;D++)if(P[D]._id===k)return P[D].count;return 0},e.barPct=function(k){var P=e.data&&e.data.repos?e.data.repos.total:0;if(!P)return 0;var D=[k];k==="expired"&&D.push("expiring"),k==="removed"&&
Line truncated
|
|
|
|
|
`)},e.tipSide=w=>{let C=(e.summary?.series||[]).length;return C<3?"":w<C/4?"tip-start":w>=C*3/4?"tip-end":""},e.bucketName=()=>({day:"day",week:"week",month:"month"})[e.summary?.bucket]||"day",e.seriesSales=()=>(e.summary?.series||[]).reduce((w,C)=>w+e.bucketTotal(C),0),e.plansWithActivity=()=>(e.summary?.plans||[]).filter(w=>w.active||w.allTimeSales||w.sales),e.familyLabel=w=>($r.find(C=>C.id===w)||{}).label||"",e.familyPlans=w=>(e.summary?.plans||[]).filter(C=>C.family===w),e.familySum=(w,C)=>e.familyPlans(w).reduce((N,k)=>N+(k[C]||0),0),e.familyMoney=(w,C,N)=>{if(!e.revenueOn())return"\u2014";let k=e.familyPlans(w);return k.some(P=>P[N]===!1)?"Incomplete":e.moneyText(k.reduce((P,D)=>r(P,D[C]),{}))},e.planTotals=()=>{let w=C=>(e.summary?.plans||[]).reduce((N,k)=>N+(k[C]||0),0);return{active:w("active"),sales:w("sales"),allTimeSales:w("allTimeSales")}},e.webhookState=()=>{let w=e.summary?.webhooks;return w?w.failed||w.reconciliationFailed?"bad":w.oldestPendingSeconds>900||w.unreviewedRevocations?"warn":"ok":"ok"},e.age=w=>w?Xn(w*1e3):"\u2014";let u=0;e.loadSummary=()=>{let w=++u;e.summaryLoading=!0,e.summaryError=null,t.get("/api/admin/billing/summary",{params:{period:e.period}}).then(C=>{if(w!==u)return;e.summaryLoading=!1;let N=C.data;if(!N||!N.subscriptions||!N.sales||!Array.isArray(N.plans)){e.summaryError="The billing summary had an unexpected format.";return}e.summary=N},C=>{w===u&&(e.summaryLoading=!1,e.summaryError=C&&C.data&&C.data.error||"Could not load billing figures.")})},e.setPeriod=w=>{if(e.period!==w){e.period=w;try{localStorage.setItem("admin.billing.period",w)}catch{}e.loadSummary()}},e.grants=[],e.total=-1,e.totalPage=0,e.stateCounts={},e.statuses=[],e.grantsError=null,e.filtersOpen=!1,e.query={page:1,limit:25,search:"",plan:"",status:"",state:"",period:"",sort:"purchasedAt",direction:"desc"};let p=s.search();p.search&&(e.query.search=p.search),e.stateView=()=>e.query.state||"all",e.setStateView=w=>{e.query.state=w==="all"?"":w,e.query.page=1},e.stateCount=w=>w==="all"?["active","expired","revoked"].reduce((C,N)=>C+(e.stateCounts[N]||0),0):e.stateCounts[w]||0,e.sortBy=w=>{e.query.sort===w?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=w,e.query.direction="desc"),e.query.page=1},e.sortIcon=w=>e.query.sort===w?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"",e.chips=[];let d=()=>{let w=[];e.query.plan&&w.push({key:"plan",label:"Plan",value:e.planName(e.query.plan)}),e.query.status&&w.push({key:"status",label:"Stripe status",value:e.query.status.replace(/_/g," ")}),e.query.period&&w.push({key:"period",label:"Started",value:"last "+((e.periods.find(C=>C.id===e.query.period)||{}).label||e.query.period)}),e.chips=w};e.clearFilter=w=>{e.query[w]="",e.query.page=1},e.filterPlan=w=>{Object.assign(e.query,{plan:w,page:1});let C=document.getElementById("bl-grants");C&&C.scrollIntoView&&C.scrollIntoView({behavior:"smooth",block:"start"})},e.clearFilters=()=>Object.assign(e.query,{search:"",plan:"",status:"",state:"",period:"",page:1}),e.hasFilters=()=>!!(e.query.search||e.query.plan||e.query.status||e.query.state||e.query.period),e.filterCount=()=>["plan","status","period"].filter(w=>e.query[w]).length,e.amountText=w=>{if(!w.amount)return"\u2014";let C=ks({[w.amount.currency]:w.amount.value})[0]||"\u2014";if(!w.amount.interval)return C;let N=w.amount.intervalCount>1?w.amount.intervalCount+" "+w.amount.interval+"s":w.amount.interval;return C+" / "+N},e.amountTitle=w=>w.amount?"Stripe list price"+(w.pack?" of the whole pack":""):{stripe_not_configured:"Revenue unavailable: Stripe is not configured on this server.",unresolved:"Revenue unavailable: this Stripe price could not be looked up.",unrecorded:"Revenue unavailable: no sale price was recorded for this subscription."}[w.amountMissing]||"Revenue unavailable.",e.endText=w=>{if(w.never)return"Never ends";if(!w.until)return"\u2014";let C=Pr(w.until);return w.state!=="active"?(new Date(w.until)<new Date?"Ended ":"Ends ")+C:w.subscription?(w.cancelAtPeriodEnd?"Ends ":"Renews ")+C:"Until "+C},e.packNote=w=>{let C=(w.parts||[]).find(N=>N.planId==="author_pass");return!w.pack||!C||!C.until?"":(new Date(C.until)<new Date?"Updates ended ":"Updates until ")+Pr(C.until)};let h={repo_slot:"repository",author_pass:"updates",repo_extend:"+1 year"};e.packParts=w=>(w.parts||[]).map(C=>h[C.planId]||e.planName(C.planId)).join(", ").replace(/^./,C=>C.toUpperCase()),e.packPartsTitle=w=>"Paper pack: "+(w.parts||[]).map(C=>e.planName(C.planId)).join(", "),e.statusText=w=>(w.status||"unknown").replace(/_/g," "),e.revocationText=w=>w==="dispute"?"Disputed":w==="full_refund"?"Refunded":"Revoked",e.scopeHref=w=>w?.kind==="repo"?"/admin/repositories?search="+encodeURIComponent(w.id):w?.kind==="conference"?"/conference/"+encodeURIComponent(w.id):null;let m=0;function y(){let w=++m;e.grantsError=null;let C=Object.fromEntries(Object.entries(e.query).filter(([,N])=>N!==""&&N!=null));t.get("/api/admin/billing/grants",{params:C}).then(N=>{w===m&&(
Line truncated
|
|
|
|
|
`)},Pl=class{constructor(t){lt(this,"gen");lt(this,"threads",[]);lt(this,"match",!1);lt(this,"runs",[]);lt(this,"ids",[]);this.gen=t}get dead(){return!this.threads.length&&!this.match&&!this.runs.length}},Op=(e,t)=>e.ids.length!==t.ids.length||e.runs.length!==t.runs.length||e.ids.some((s,i)=>s!==t.ids[i])?!1:e.runs.every(s=>t.runs.some(i=>i.neg===s.neg&&Op(i.state,s.state))),Np=e=>({has:new Float64Array(e),seen:new Float64Array(e),gen:0}),Ss,ns,Al,Dl,li=class{constructor(t,s,i){je(this,ns);lt(this,"dots");lt(this,"dotStart");je(this,Ss);this.dots=t,this.dotStart=s,Ye(this,Ss,i)}state(){return new Pl(++ce(this,Ss).gen)}done(t){return t.ids=t.threads.map(s=>s.id).sort((s,i)=>s-i),t.match&&t.ids.unshift(Tl.id),t}restricted(t,s){return s&&(this.dots||this.dotStart&&t===0)}add(t,s,i,o){switch(s.t){case"split":if(!Ge(this,ns,Al).call(this,t,s))return;for(let u of s.out)this.add(t,u,i,o);return;case"neg":if(!Ge(this,ns,Al).call(this,t,s))return;let r=this.state();return this.add(r,s.sub,i,!1),this.done(r),this.addRun(t,{t:"run",neg:s,state:r},i,o);case"star":if(this.restricted(i,o))return;Ge(this,ns,Dl).call(this,t,s)&&this.add(t,s.next,i,o);return;case"match":t.match=!0;return;default:Ge(this,ns,Dl).call(this,t,s)}}addRun(t,s,i,o){for(let r of t.runs)if(r.neg===s.neg&&Op(r.state,s.state))return;t.runs.push(s),s.state.match||this.add(t,s.neg.next,i,o)}step(t,s,i,o){let r=this.state();for(let u of t.threads)switch(u.t){case"lit":Ml(u,s)&&this.add(r,u.next,i+1,o);break;case"any":this.restricted(i,o)||this.add(r,u.next,i+1,o);break;case"class":!this.restricted(i,o)&&u.re.test(s)&&this.add(r,u.next,i+1,o);break;case"star":this.restricted(i,o)||this.add(r,u,i+1,o)}if(!this.restricted(i,o))for(let u of t.runs){if(u.state.dead){this.addRun(r,u,i+1,o);continue}let p=this.step(u.state,s,i,!1);this.addRun(r,{t:"run",neg:u.neg,state:p},i+1,o)}return this.done(r)}};Ss=new WeakMap,ns=new WeakSet,Al=function(t,s){let{seen:i}=ce(this,Ss);return i[s.id]===t.gen?!1:(i[s.id]=t.gen,!0)},Dl=function(t,s){let{has:i}=ce(this,Ss);return i[s.id]===t.gen?!1:(i[s.id]=t.gen,t.threads.push(s),!0)};var Mp=e=>{let t=e.ids.join();if(!e.runs.length)return t;let s=e.runs.map(i=>`${i.neg.id}(${Mp(i.state)})`);return`${t}|${s.sort().join("|")}`},cb=1<<18,oo,io,Qn,Es,Zn,xn,es,mn,Ol,zr,Vp,Il=class{constructor(t,s){je(this,mn);je(this,oo);je(this,io,new Map);je(this,Qn,0);je(this,Es);je(this,Zn);je(this,xn);je(this,es);Ye(this,oo,t),Ye(this,xn,new li(!1,!1,s)),Ye(this,es,new li(!1,!0,s))}start(t){if(t){if(ce(this,Zn))return ce(this,Zn);let i=ce(this,es).state();return ce(this,es).add(i,ce(this,oo),0,!0),Ye(this,Zn,Ge(this,mn,Ol).call(this,ce(this,es).done(i)))}if(ce(this,Es))return ce(this,Es);let s=ce(this,xn).state();return ce(this,xn).add(s,ce(this,oo),0,!0),Ye(this,Es,Ge(this,mn,zr).call(this,ce(this,xn).done(s)))}next(t,s){let i=s.charCodeAt(0),o=i<128?void 0:t.next.get(s);if(o)return o;let r=t===ce(this,Zn)?Ge(this,mn,zr).call(this,ce(this,es).step(t.state,s,0,!0)):Ge(this,mn,zr).call(this,ce(this,xn).step(t.state,s,1,!0));return i<128?(t.ascii||(t.ascii=new Array(128),Ye(this,Qn,ce(this,Qn)+128)),t.ascii[i]=r):t.next.set(s,r),cd(this,Qn)._++,r}};oo=new WeakMap,io=new WeakMap,Qn=new WeakMap,Es=new WeakMap,Zn=new WeakMap,xn=new WeakMap,es=new WeakMap,mn=new WeakSet,Ol=function(t){return{state:t,match:t.match,dead:t.dead,next:new Map}},zr=function(t){let s=Mp(t),i=ce(this,io).get(s);if(i)return i;ce(this,Qn)>cb&&Ge(this,mn,Vp).call(this);let o=Ge(this,mn,Ol).call(this,t);return ce(this,io).set(s,o),Ye(this,Qn,ce(this,Qn)+(s.length+1)),o},Vp=function(){ce(this,io).clear(),Ye(this,Qn,0),Ye(this,Es,void 0),Ye(this,Zn,void 0)};var pb=e=>{let t=[];for(let s=e;s.t!=="match";s=s.next){if(s.t==="split"||s.t==="neg")return;t.push(s)}return t},fb=(e,t,s,i)=>{let o=0,r=s,u=-1,p=0;for(;r<i;){let d=e[o];if(d?.t==="star"){u=o++,p=r;continue}let h=t[r];if(d&&(d.t==="any"||d.t==="lit"&&Ml(d,h)||d.t==="class"&&d.re.test(h))){o++,r++;continue}if(u===-1)return!1;o=u+1,r=++p}for(;e[o]?.t==="star";)o++;return o===e.length},Lp=e=>{let t=0,s=0;for(let i of e){let[o,r]=mb(i);t+=o,s+=r}return[t,s]},mb=e=>{if(e.t==="star")return[0,1/0];if(e.t!=="ext")return[1,1];if(e.type==="!")return[0,1/0];let t=e.alts.map(Lp),s=Math.min(...t.map(r=>r[0])),i=Math.max(...t.map(r=>r[1])),o=i===0?0:1/0;return e.type==="@"?[s,i]:e.type==="?"?[0,i]:e.type==="*"?[0,o]:[s,o]},Rp=(e,t,s)=>{for(let i=0;i<e.length;i++)if(!Ml(e[i],t[s+i]))return!1;return!0},hb=/[/\ud800-\udfff]/,gb=/[\ud800-\udfff]/,_r=e=>gb.test(e)?[...e]:e,Tp=e=>{if(e.includes("/"))throw new Error("can only match a single path portion, got: "+e)},ts,ro,Ns,Hr,Rs,ui,jr,Ts,ci,pi,fi,Hn,Tn,ao,lo,mi,Gr,fn,Ps,ai,di=class{constructor(t,s={}){je(this,Ps);lt(this,"pattern");lt(this,"options");je(this,ts);je(this,ro);je(this,Ns);je(this,Hr);je(this,Rs);je(this,ui,!1);je(this,jr);je(this,Ts);je(this,ci,!1);je(this,pi,0);je(this,fi,1/0);je(this,Hn,[]);je(this,Tn,[]);je(this,ao);je(this,lo);je(this,mi,!1);je(this,Gr);je(this,fn);if(t.includes
Line truncated
|
|
|
|
|
`).forEach((s,i)=>{let{term:o}=Gl(s.trim());if(!o)return;let r=[];for(let u=0;u<o.length;u++){if(o[u]==="\\"){u++;continue}Zp.has(o[u])&&!r.includes(o[u])&&r.push(o[u])}r.length&&t.push({line:i,term:o,symbols:r})}),t}function ef(e,t){let s=String(e||"").split(`
|
|
|
|
|
`),i=s[t];if(i===void 0)return e;let{term:o}=Gl(i.trim());if(!o)return e;let r="";for(let p=0;p<o.length;p++){if(o[p]==="\\"){r+=o.slice(p,p+2),p++;continue}r+=Zp.has(o[p])||o[p]==="."?"\\"+o[p]:o[p]}let u=i.indexOf(o);return s[t]=i.slice(0,u)+r+i.slice(u+o.length),s.join(`
|
|
|
|
|
`)}var ls={VIEWER_ERRORS:{title:"Content could not be loaded",access_title:"GitHub access needs attention",reader_help:"Reading this repository? You do not need to sign in. Try again after the owner restores access, or let them know this anonymous link is unavailable.",owner_help:"Own this repository? If your GitHub account was suspended or recently recovered, sign in to Anonymous GitHub again and check the GitHub connection and repository permissions in your dashboard. Then retry this page. Keep the existing anonymous URL; do not delete the repository to restore access.",retry:"Try again",dashboard:"Open owner dashboard"},ERRORS:{cache_busy:"Downloads are busy. Please try again shortly.",cache_miss:"This file is not cached yet. Please try again.",invalid_sort:"The selected sort order is invalid.",invalid_cursor:"This project page is no longer valid. Reload the list.",repository_changed:"The repository changed while processing. Please retry.",repository_job_cancelled:"The repository changed or was removed while processing.",storage_delete_failed:"Unable to remove cached files. Please try again later.",unknown_error:"We could not load this content. Try again. If it still fails, contact support with the anonymous URL and the time of the error.",unreachable:"The service could not complete this request. Wait a moment and try again.",request_error:"The connection was interrupted. Check your internet connection and try again.",not_found:"The requested resource could not be found.",not_connected:"You must be logged in to perform this action.",not_authorized:"You do not have permission to perform this action.",unable_to_connect_user:"Unable to connect your account. Please try again later.",user_not_found:"The requested user could not be found.",user_banned:"Your account has been banned. Contact the admin for more information.",repo_access_limited:"GitHub blocked access because the repository's organization restricts third-party OAuth apps. Ask an org owner to approve Anonymous GitHub under Settings \u2192 Third-party Access \u2192 OAuth app policy, or anonymize a personal fork instead.",repo_saml_enforcement:"The repository's organization enforces SAML single sign-on. Authorize your token for that organization (GitHub \u2192 Settings \u2192 Applications, or re-run the org's SSO sign-in), then retry. Alternatively, anonymize a personal fork.",repo_not_found:"Anonymous GitHub cannot access the source repository on GitHub. It may be private, unavailable, or require the owner to reconnect GitHub.",repo_empty:"The selected branch has no commits on GitHub. Push at least one commit, or pick a different branch, then retry.",repo_not_accessible:"Anonymous GitHub cannot access this repository. Verify the repository exists and that Anonymous GitHub has been authorized for the owning organization.",repository_archived:"This repository has been archived and its files are no longer available.",repository_expired:"The repository is expired.",invalid_status:"This action cannot be performed while the resource is in its current state.",repository_not_ready:"Anonymous GitHub is still processing the repository, it can take several minutes.",repository_not_accessible:"This repository is currently not accessible.",repo_is_updating:"Anonymous GitHub is still processing the repository, it can take several minutes.",invalid_repo:"The provided repository is not valid.",invalid_source_repository:"The repository source name is invalid; expected the form 'owner/name'.",repoId_not_defined:"A repository ID must be provided.",repoUrl_not_defined:"The repository URL needs to be defined.",source_not_provided:"A repository source must be provided.",github_rate_limit_exceeded:"GitHub temporarily blocked the request because we hit its API rate limit. Wait a few minutes and try again. If the problem persists and you contact GitHub Support, include the request ID and timestamp shown in GitHub's response (the 'X-GitHub-Request-Id' header).",rate_limited:"GitHub API rate limit reached. The repository will be available shortly \u2014 please wait a moment and refresh.",repoId_already_used:"The repository ID is already used.",invalid_repoId:"The format of the repository ID is invalid.",unsupported_source:"The repository source type is not supported.",branch_not_specified:"The branch is not specified.",branch_not_found:"The branch of the repository cannot be found.",commit_not_specified:"A commit must be specified.",commit_not_found:"The configured commit no longer exists in the source repository. It may have been force-pushed, rebased, or removed.",repo_renamed:"The source repository appears to have been renamed or moved on GitHub. Please refresh and try again \u2014 the cached name has been updated.",invalid_commit_format:"The commit hash format is invalid. It must be a hexadecimal string.",pull_request_not_found:"The requested pull request could not be found.",pull_request_expired:"This pull request has expired and is no longer available.",pull_request_no
Line truncated
|
|
|
|
|
`)),e.options=Object.assign({},e.options,y.options),p.restore()})}d();let h=null;e.saveDefault=m=>{if(m&&m.preventDefault&&m.preventDefault(),e.saving)return;let y=p.checkpoint(),v={terms:e.terms.split(`
|
|
|
|
|
`).map(b=>b.trim()).filter(b=>b.length>0),options:e.options};e.saving=!0,e.error=null,t.post("/api/user/default",v).then(()=>{p.accept(y),e.saving=!1,e.message=e.unsavedChanges?null:"Saved",h&&i.cancel(h),h=i(()=>{e.message=null},2500)},b=>{e.saving=!1;let w=b&&b.data&&b.data.error,C="Unable to save your defaults. Please try again.";Promise.all([s("ERRORS."+w),s("ERRORS.unknown_error")]).then(([N,k])=>{e.error=w&&N!==k?N:C},()=>{e.error=C})})},e.deleteAccount=()=>{e.deletingAccount||!e.confirmDeleteAccount||e.deleteUsername!==e.user?.username||(e.deletingAccount=!0,t.delete("/api/user").then(()=>{window.location.href="/"},()=>{e.deletingAccount=!1,e.deleteError="Unable to delete the account. Please try again."}))}},af=function(e,t,s){e.repoId=null,e.repoUrl=null,e.claim=()=>{t.post("/api/repo/claim",{repoId:e.repoId,repoUrl:e.repoUrl}).then(i=>{s.url("/dashboard")},i=>{e.error=i.data,e.claimForm.repoUrl.setValidity("not_found",!1),e.claimForm.repoId.setValidity("not_found",!1)})}},lf=function(e,t,s,i,o){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(p){e.feature=p},e.featureHref=function(p){return p.needsUser&&!e.user?"/signin":p.href},e.featureTarget=function(p){return p.needsUser&&!e.user?"_self":p.target||void 0},e.featureKeydown=function(p,d){let h={ArrowDown:1,ArrowRight:1,ArrowUp:-1,ArrowLeft:-1,Home:"first",End:"last"}[p.key];if(h===void 0)return;p.preventDefault();let m=e.features.length,y=h==="first"?0:h==="last"?m-1:(d+h+m)%m;e.feature=e.features[y].key,o(()=>{let v=i.document.getElementById("feature-tab-"+e.feature);v&&v.focus()})},e.demoText=`# DeepLearnUtils
|
|
|
|
|
`}var Pv=Object.freeze({view:"table",query:"",sort:null,group:null,agg:"mean",sum:"mean",ranges:{},values:{},sums:{},numeric:[],chart:null,x:null,y:[]});function Dv(e){let t=new URLSearchParams;e.view&&e.view!=="table"&&t.set("view",e.view),e.query&&t.set("q",e.query),e.sort?.column&&t.set("sort",e.sort.column+(e.sort.dir==="desc"?":desc":"")),e.group&&t.set("group",e.group),e.group&&e.agg&&e.agg!=="mean"&&t.set("agg",e.agg);for(let[s,[i,r]]of Object.entries(e.ranges||{}))(i!=null||r!=null)&&t.set("range."+s,(i??"")+"~"+(r??""));for(let[s,i]of Object.entries(e.values||{}))for(let r of i||[])t.append("in."+s,r);e.sum&&e.sum!=="mean"&&t.set("sum",e.sum);for(let[s,i]of Object.entries(e.sums||{}))i&&i!==(e.sum||"mean")&&t.set("sum."+s,i);return e.numeric?.length&&t.set("num",e.numeric.join("|")),e.chart&&t.set("chart",e.chart),e.x&&t.set("x",e.x),e.y?.length&&t.set("y",e.y.join("|")),t.toString()}function Av(e){var d,g;let t=new URLSearchParams(e||""),s={...Pv,ranges:{},values:{},sums:{},numeric:[],y:[]},i=t.get("view");["table","chart","raw"].includes(i)&&(s.view=i),s.query=t.get("q")||"";let r=t.get("sort");if(r){let m=/^(.*?)(?::(asc|desc))?$/.exec(r);s.sort={column:m[1],dir:m[2]||"asc"}}s.group=t.get("group")||null;let o=t.get("agg");o&&ni[o]&&(s.agg=o);for(let[m,v]of t.entries())if(m.startsWith("range.")){let[y,C]=v.split("~").map(k=>k===""||k==null?null:Number(k));s.ranges[m.slice(6)]=[Number.isFinite(y)?y:null,Number.isFinite(C)?C:null]}else m.startsWith("in.")?((d=s.values)[g=m.slice(3)]||(d[g]=[])).push(v):m.startsWith("sum.")&&ni[v]&&(s.sums[m.slice(4)]=v);let u=t.get("sum");u&&ni[u]&&(s.sum=u),s.numeric=(t.get("num")||"").split("|").filter(Boolean);let p=t.get("chart");return["bar","line","scatter"].includes(p)&&(s.chart=p),s.x=t.get("x")||null,s.y=(t.get("y")||"").split("|").filter(Boolean),s}var hl=e=>"#"+e+":";function eo(e,t){if(!t||typeof e!="string"||!e.startsWith(hl(t)))return null;try{return Av(e.slice(hl(t).length))}catch{return null}}function rp(e,t){let s=Dv(t);return s?hl(e)+s.replace(/%3A/gi,":").replace(/%7C/gi,"|").replace(/%7E/gi,"~").replace(/%2C/gi,","):""}var vl=e=>/^#table(?:-\d+)?:/.test(e||"");var bl=function(e,t=e){let s=/\bXXXX-\d+\b/g;t.on("dark-mode",(V,S)=>{e.aceOption&&(e.aceOption.theme=S?"nord_dark":"chrome")});let i=Pt(),r=Lt();e.isMac=/Mac|iPhone|iPad|iPod/.test(navigator.platform||navigator.userAgent);let o={yml:"yaml",txt:"text",py:"python",js:"javascript",ts:"typescript"},u=["license","txt"],p=["png","jpg","jpeg","gif","svg","ico","bmp","tiff","tif","webp","avif","heif","heic"],d=["wav","mp3","ogg","wma","flac","aac","m4a"],g=["mp4","avi","webm","mov","mpg","mpeg","mkv","flv","wmv","3gp","3g2","m4v","f4v","f4p","f4a","f4b"];e.toggleSource=function(){e.showSource=!e.showSource},e.toggleAllowScripts=function(){e.allowScripts=!e.allowScripts};let m=(()=>{try{return window.localStorage?.getItem("wrapLines")}catch{return null}})();e.wrapLines=(m??(window.matchMedia?.("(max-width: 767px)").matches?"false":"true"))!=="false",e.toggleWrap=function(){e.wrapLines=!e.wrapLines;try{window.localStorage?.setItem("wrapLines",String(e.wrapLines))}catch{}e.codeEditor?.session.setUseWrapMode(e.wrapLines)};function v(){return window.document.querySelector(".reading-layout .markdown-body")}function y(){let V=v();V&&(V.querySelectorAll("mark.md-find").forEach(S=>{S.replaceWith(window.document.createTextNode(S.textContent))}),V.normalize())}e.runMdFind=function(){y(),e.mdFindTotal=0,e.mdFindIndex=0;let V=(e.mdFindQuery||"").trim(),S=v();if(!V||!S)return;let q=!!e.mdFindCase,G=q?V:V.toLowerCase(),oe=window.document.createTreeWalker(S,4),K=[];for(;oe.nextNode();)(q?oe.currentNode.nodeValue:oe.currentNode.nodeValue.toLowerCase()).includes(G)&&K.push(oe.currentNode);let ne=0;for(let le of K){let ye=le.nodeValue,Ae=q?ye:ye.toLowerCase(),Xe=window.document.createDocumentFragment(),tt=0,Ge;for(;(Ge=Ae.indexOf(G,tt))!==-1;){Xe.appendChild(window.document.createTextNode(ye.slice(tt,Ge)));let We=window.document.createElement("mark");We.className="md-find",We.textContent=ye.slice(Ge,Ge+V.length),Xe.appendChild(We),ne++,tt=Ge+V.length}Xe.appendChild(window.document.createTextNode(ye.slice(tt))),le.parentNode.replaceChild(Xe,le)}e.mdFindTotal=ne,ne&&e.stepMdFind(0)},e.stepMdFind=function(V){let S=v();if(!S||!e.mdFindTotal)return;let q=S.querySelectorAll("mark.md-find");e.mdFindIndex=(e.mdFindIndex+V+q.length)%q.length,q.forEach((G,oe)=>G.classList.toggle("is-current",oe===e.mdFindIndex)),q[e.mdFindIndex]?.scrollIntoView({block:"center",behavior:"smooth"})},e.toggleMdFind=function(V){if(e.mdFindOpen=V===void 0?!e.mdFindOpen:V,!e.mdFindOpen){y(),e.mdFindTotal=0;return}xe(()=>window.document.querySelector(".md-find-input")?.focus())},e.findInFile=function(){let V=e.codeEditor;if(!V)return;V.focus(),V.execCommand("find");let S=()=>{let q=V.searchBox?.element;q&&(V.renderer.setScrollMargin(52,12,0,0),!q._dockObserver&&(q._dockObserver=new MutationObserver(()=>{V.renderer.setScrollMargin(q.style.display!=
Line truncated
|
|
|
|
|
`).forEach((S,q)=>{for(let[G,oe]of C){let K=G.exec(S);if(K&&!/^(if|for|while|switch|return|catch)$/.test(K[1])){V.push({name:K[1],kind:oe,line:q+1});break}}}),k={content:e.content,list:V.slice(0,300)},k.list},e.goToSymbol=function(V){e.symbolsOpen=!1;let S=e.codeEditor;S&&(S.scrollToLine(V-1,!0,!0,()=>{}),S.gotoLine(V,0,!0),window.history.replaceState(null,"",window.location.pathname+window.location.search+"#L"+V),window.dispatchEvent(new HashChangeEvent("hashchange")))},e.gotoLine=function(){e.codeEditor&&(e.moreOpen=!1,e.gotoError="",e.gotoValue=String(e.codeEditor.getCursorPosition().row+1),e.gotoOpen=!0,setTimeout(()=>{let V=window.document.getElementById("goto-input");V&&(V.focus(),V.select())},0))},e.closeGoto=function(){e.gotoOpen=!1,e.gotoError="",e.codeEditor?.focus()},e.submitGoto=function(){let V=e.codeEditor;if(!V)return;let S=/^\s*:?\s*(\d+)\s*(?:[:,]\s*(\d+))?\s*$/.exec(e.gotoValue||""),q=V.session.getLength();if(!S||+S[1]<1||+S[1]>q){e.gotoError="Enter a line from 1 to "+q;return}V.gotoLine(+S[1],S[2]?Math.max(0,+S[2]-1):0,!0),e.gotoOpen=!1,e.gotoError="",V.focus()},e.rootEntries=function(){return[...e.files||[]].sort((V,S)=>{let q=V.size==null,G=S.size==null;return q!==G?q?-1:1:V.name.localeCompare(S.name)})},e.formatSize=function(V){if(V==null)return"";if(V<1024)return V+" B";let S=V/1024,q=G=>G.toFixed(1).replace(/\.0$/,"");return S<1024?q(S)+" KB":S<1024*1024?q(S/1024)+" MB":q(S/1024/1024)+" GB"},e.fileSize=function(V){if(!V)return null;let S=V.replace(/^\/+/,""),q=(e.files||[]).find(G=>(G.path?G.path+"/":"")+G.name===S);return q&&q.size!=null?q.size:null},e.revealFolder=function(V){e.sidebarHidden=!1,e.sidebarCollapsed=!1,xe(()=>{let S=window.document.querySelector('.files a[data-path="/'+(window.CSS?.escape?window.CSS.escape(V):V)+'"]');S&&(S.closest("li")?.classList.contains("open")||S.click(),S.scrollIntoView({block:"nearest"}),S.focus())})};let w={content:null,n:0},R=V=>{if(w.content===V)return w.n;let S=V;if(typeof S=="string")try{S=JSON.parse(S)}catch{S=null}let q=[],G=K=>{Array.isArray(K)?q.push(K.join("")):typeof K=="string"&&q.push(K)};(S&&(S.cells||(S.worksheets||[]).flatMap(K=>K.cells||[]))||[]).forEach(K=>{G(K?.source??K?.input),(K?.outputs||[]).forEach(ne=>{G(ne?.text),ne?.data&&(G(ne.data["text/plain"]),G(ne.data["text/markdown"]),G(ne.data["text/html"])),G(ne?.traceback)})});let oe=q.reduce((K,ne)=>K+(ne.match(s)||[]).length,0);return w={content:V,n:oe},oe};e.redactionCount=function(){return e.type==="IPython"?R(e.content):typeof e.content!="string"?0:((e.type==="html"?e.content.replace(/<[^>]*>/g," "):e.content).match(s)||[]).length},e.renderRedacted=to;let b=V=>V.toLowerCase().trim().replace(/[^a-z0-9\s-]/g,"").replace(/\s+/g,"-").slice(0,60)||"section";e.renderReadme=function(V){let S=e.renderRedacted(V);if(!S||typeof window.DOMParser!="function")return S;let q=new window.DOMParser().parseFromString("<div>"+S+"</div>","text/html"),G={};return q.querySelectorAll("h1, h2, h3").forEach(oe=>{let K=oe.id||b(oe.textContent);G[K]?K+="-"+ ++G[K]:G[K]=1,oe.id=K}),q.body.firstChild.innerHTML};let P={content:null,list:[],title:null,count:0},D=()=>{if(e.type!=="html"||typeof e.content!="string")return{list:[],title:null,count:0};if(P.content===e.content)return P;let V=Er(e.renderReadme(e.sanitize?e.sanitize(e.content):e.content)),S=V.length,q=null;if(V[0]?.level===1&&V.filter(G=>G.level===1).length===1){q=V[0],V=V.slice(1);let G=Math.min(...V.map(oe=>oe.level));V=V.map(oe=>({...oe,depth:oe.level-G}))}return P={content:e.content,list:V,title:q,count:S},P};e.readmeToc=()=>D().list,e.tocTitle=()=>D().title,e.tocCount=()=>D().count,e.activeHeading=null,r(window,"scroll",()=>{let V=e.readmeToc?e.readmeToc():[];if(e.tocCount()<3)return;let S=Sr(V.map(q=>q.id),{offset:120,scroller:window.document.querySelector(".explorer-content")});e.activeHeading!==S&&(e.activeHeading=S)},{capture:!0,passive:!0}),e.scrollToHeading=function(V){if(!V){(window.document.querySelector(".explorer-content, .file-card-body, .main-pane")||window).scrollTo({top:0,behavior:"smooth"}),e.activeHeading="";return}Nr(V),e.activeHeading=V};let L=()=>!e.preview&&eo(window.location.hash,"table")?.view||"table";e.csvView=L();let H={content:null,rows:[]};e.isCsv=()=>typeof e.content=="string"&&e.type!=="html"&&/\.(csv|tsv)$/i.test(e.filePath||"")&&e.content.length<=1024*1024,e.csvRows=()=>{if(H.content!==e.content){let V=/\.tsv$/i.test(e.filePath||"")?" ":",";H={content:e.content,rows:ei(e.content,V)}}return H.rows},e.redactParts=Jt,e.pathCopied=!1,e.copyPath=async function(){window.navigator.clipboard?.writeText&&(await window.navigator.clipboard.writeText(e.filePath||""),e.pathCopied=!0,setTimeout(()=>{e.pathCopied=!1},1600))},e.contentCopied=!1,e.copyContent=async function(){if(typeof e.content!="string"||!window.navigator.clipboard?.writeText)return;let V=e.content;if(e.type==="html"&&e.url)if(e.preview)V=e.sourceContent;else try{V=await(await window.fetch(e.url,{credentials:"same-origin"})).text()}catch{return}await w
Line truncated
|
|
|
|
|
`).length:0,Ov=e=>/\.(md|markdown|mdx)$/i.test(e?.filename||"")||e?.language==="Markdown";function lp(e,t){let s=Lt();e.redactParts=Jt,e.hangIndent=Zs,e.isRedactedName=r=>/^XXXX-\d+$/.test(String(r||"").trim()),e.tocOpen=!1,e.activeAnchor="";let i=()=>{let r=t();if(!r.length)return;let o=Sr(r,{offset:64,scroller:window.document.querySelector("main.app-view")});e.activeAnchor!==o&&(e.activeAnchor=o)};return s(window,"scroll",i,{capture:!0,passive:!0}),s(window,"resize",i,{passive:!0}),s(window.document,"click",r=>{e.tocOpen&&!r.target.closest?.(".toc-menu")&&(e.tocOpen=!1)}),s(window.document,"keydown",r=>{r.key==="Escape"&&e.tocOpen&&(e.tocOpen=!1)}),e.jumpToAnchor=r=>{e.tocOpen=!1,Nr(r)&&(e.activeAnchor=r)},i}var Lr=e=>(String(e||"").split(".").pop()||"").toLowerCase(),Mv={md:"markdown",markdown:"markdown",mdx:"markdown",ipynb:"notebook",csv:"csv",tsv:"csv",svg:"svg",png:"image",jpg:"image",jpeg:"image",gif:"image",webp:"image",bmp:"image",ico:"image",avif:"image",pdf:"pdf",mp4:"video",webm:"video",mov:"video",m4v:"video",ogv:"video",mp3:"audio",wav:"audio",ogg:"audio",oga:"audio",m4a:"audio",flac:"audio",aac:"audio"},Vv={svg:"image/svg+xml",png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",webp:"image/webp",bmp:"image/bmp",ico:"image/x-icon",avif:"image/avif",pdf:"application/pdf",mp4:"video/mp4",webm:"video/webm",mov:"video/quicktime",m4v:"video/mp4",ogv:"video/ogg",mp3:"audio/mpeg",wav:"audio/wav",ogg:"audio/ogg",oga:"audio/ogg",m4a:"audio/mp4",flac:"audio/flac",aac:"audio/aac"},qv=1024*1024;function no(e){if(e?.tooLarge)return"too-large";if(e?.hidden)return"hidden";let t=Mv[Lr(e?.filename)]||(e?.language==="Markdown"?"markdown":null);return e?.encoding==="base64"?["image","pdf","video","audio"].includes(t)&&e.content?t:"binary":e?.content?t==="csv"&&e.content.length>qv?"code":["markdown","notebook","csv","svg"].includes(t)?t:"code":"empty"}var Lv=e=>["markdown","notebook","csv","svg"].includes(e),ap={markdown:"Markdown",notebook:"Jupyter notebook",csv:"Table",svg:"SVG",image:"Image",pdf:"PDF",video:"Video",audio:"Audio",binary:"Binary","too-large":"Too large",hidden:"Image"};function $v(e,t){return t==="markdown"?"markdown":t==="notebook"?"json":t==="svg"?"markup":t==="csv"?"none":e?.language||Lr(e?.filename)||"none"}var Fv=e=>{let t=window.atob(e||""),s=new Uint8Array(t.length);for(let i=0;i<t.length;i++)s[i]=t.charCodeAt(i);return s};function dp(e){e.gistViews={};let t=/^#table-(\d+):/.exec(window.location.hash||"");if(t){let u=eo(window.location.hash,"table-"+t[1])?.view;(u==="chart"||u==="raw")&&(e.gistViews[+t[1]-1]=u)}e.gistKind=u=>no(e.details?.files?.[u]),e.gistHasRendered=u=>Lv(e.gistKind(u)),e.gistView=u=>!e.gistHasRendered(u)||e.gistViews[u]==="raw"?"raw":e.gistViews[u]==="chart"&&e.gistKind(u)==="csv"?"chart":"rendered",e.setGistView=(u,p)=>{e.gistViews={...e.gistViews,[u]:p}},e.gistSourceFile=u=>{let p=e.details?.files?.[u];return{...p,language:$v(p,e.gistKind(u)),filename:"source.txt"}};let s=new Map;qn(()=>{s.forEach(u=>window.URL.revokeObjectURL?.(u)),s.clear()});let i=(u,p)=>{if(!u||!window.URL?.createObjectURL)return null;let d=u.encoding==="base64",g=!p||d?Vv[Lr(u.filename)]||(d?"application/octet-stream":"text/plain"):"text/plain",m=(u.filename||"")+"\0"+g+"\0"+(u.content||"").length;if(!s.has(m)){let v=d?Fv(u.content):u.content||"";s.set(m,window.URL.createObjectURL(new window.Blob([v],{type:g+(d?"":";charset=utf-8")})))}return s.get(m)};e.gistMediaUrl=u=>i(u,!1),e.gistRawUrl=u=>i(u,!0);let r=new WeakMap;e.gistCsvRows=u=>{if(!u)return[];let p=r.get(u);return(!p||p.content!==u.content||p.filename!==u.filename)&&(p={content:u.content,filename:u.filename,rows:ei(u.content||"",Lr(u.filename)==="tsv"?" ":",")},r.set(u,p)),p.rows},e.gistCopied=null,e.copyGistFile=async u=>{let p=e.details?.files?.[u];!p||p.encoding==="base64"||!window.navigator.clipboard?.writeText||(await window.navigator.clipboard.writeText(p.content||""),e.gistCopied=u,window.setTimeout(()=>{e.gistCopied===u&&(e.gistCopied=null)},1600))},e.fileOutlines={},e.gistFileId=u=>"file-"+(u+1),e.setFileOutline=(u,p)=>{let d=e.fileOutlines[u];d&&d.map(g=>g.id).join()===p.map(g=>g.id).join()||(e.fileOutlines={...e.fileOutlines,[u]:p})},e.gistToc=()=>(e.details?.files||[]).map((u,p)=>({id:e.gistFileId(p),index:p,parts:Jt(u.filename),kind:no(u),language:ap[no(u)]&&no(u)!=="csv"?ap[no(u)]:u.language||(no(u)==="csv"?"CSV":"Text"),lines:u.encoding==="base64"?null:Iv(u.content),size:u.size,headings:Ov(u)&&e.gistView(p)==="rendered"?e.fileOutlines[p]||[]:[]}));let o=()=>e.gistToc().flatMap(u=>[u.id,...u.headings.map(p=>p.id)]);e.showGistToc=()=>{let u=e.gistToc();return e.tabState?.active==="files"&&(u.length>=2||(u[0]?.headings.length||0)>=3)},e.activeFileIndex=()=>{let p=e.gistToc().find(d=>d.id===e.activeAnchor||d.headings.some(g=>g.id===e.activeAnchor));return p?p.index:0},lp(e,o)}var Uv=e=>e?.merged?"merged":e?.draft&&e?.state==="open"?"draft":e?.state==="closed"?"closed":"open";function up(e){let t={diff:null,th
Line truncated
|
|
|
|
|
`),p=i.date?e.fmt?.date(i.date):"",d=s[s.length-1];(!d||d.day!==p)&&s.push(d={day:p,commits:[]}),d.commits.push({...i,index:r+1,headline:o,detail:u.join(`
|
|
|
|
|
`).trim()})}),s},e.showFileToc=()=>e.tabState?.active==="files"&&e.prFiles().length>=2,e.activeFileIndex=()=>{let s=e.prFiles().find(i=>i.id===e.activeAnchor);return s?s.index:0},e.openTab=s=>{e.tabState={active:s},e.tocOpen=!1},e.showInDiff=s=>{s&&(e.openTab("files"),e.collapsedFiles={...e.collapsedFiles,[s.index]:!1},xe(()=>e.jumpToAnchor(s.id)))},e.jumpToFile=s=>{e.collapsedFiles={...e.collapsedFiles,[s.index]:!1},e.jumpToAnchor(s.id)},lp(e,()=>e.tabState?.active==="files"?e.prFiles().map(s=>s.id):[])}function cp(e){return e?.body||e?.comments?.length||e?.reviewComments?.length?"conversation":e?.diff?"files":e?.commits?.length?"commits":"conversation"}function wl(e,t,s){let i,r=!1,o="form-draft:"+s,u=()=>Object.fromEntries(t.map(y=>[y,e[y]])),p=()=>JSON.stringify(u()),d=y=>{for(let C of t)Object.prototype.hasOwnProperty.call(y,C)&&(e[C]=y[C]);e.options?.expirationDate&&(e.options.expirationDate=new Date(e.options.expirationDate))},g=()=>{try{window.sessionStorage.removeItem(o)}catch{}},m=(y=!1)=>{if(i!==void 0){if(y&&document.querySelectorAll("input, select, textarea").forEach(C=>{C._field?.binding.state===e&&C._field.timer&&C._field.commit()}),e.unsavedChanges=p()!==i,e.draftSaved=!1,!e.unsavedChanges){g();return}try{window.sessionStorage.setItem(o,JSON.stringify({account:e.user?.username||null,savedAt:Date.now(),values:u()})),e.draftSaved=!0}catch{}}},v=()=>m(!0);return e.on("routeLeave",v),window.addEventListener("beforeunload",v),e.on("dispose",()=>window.removeEventListener("beforeunload",v)),{restore(){i=p();let y;try{y=JSON.parse(window.sessionStorage.getItem(o)||"null")}catch{}let C=y&&y.account===(e.user?.username||null)&&Date.now()-y.savedAt<30*6e4&&y.values;return C&&(d(y.values),e.draftRestored=!0),r||(r=!0,e.watch(()=>u(),()=>m(),!0)),e.unsavedChanges=p()!==i,!!C},checkpoint(){return document.querySelectorAll("input, select, textarea").forEach(y=>{y._field?.binding.state===e&&y._field.timer&&y._field.commit()}),JSON.parse(p())},accept(y){i=JSON.stringify(y),e.draftRestored=!1,m()},discard(){document.querySelectorAll("input, select, textarea").forEach(y=>{y._field?.binding.state!==e||!y._field.timer||(clearTimeout(y._field.timer),y._field.timer=null,y.value=y._field.binding.value??"")}),i!==void 0&&d(JSON.parse(i)),e.draftRestored=!1,m()},clear(){i=p(),e.unsavedChanges=!1,e.draftRestored=!1,e.draftSaved=!1,g()}}}var pp={"15m":"last 15 min","1h":"last hour","6h":"last 6 h","24h":"last 24 h"},$r=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/i,Bv=/^[A-Za-z0-9_-]{3,200}$/,Hv=/^[a-f0-9]{24}$/,kl={owner:"Owner",coauthor:"Co-author",admin:"Admin"};function zv(e){let t={repoId:"",userId:"",free:"",invalid:""},s=[];for(let i of String(e||"").trim().split(/\s+/).filter(Boolean)){let r=i.match(/^(repo|user):(.*)$/i);if(!r){s.push(i);continue}let o=r[2];r[1].toLowerCase()==="repo"&&Bv.test(o)?t.repoId=o:r[1].toLowerCase()==="user"&&Hv.test(o)?t.userId=o:t.invalid=i}return t.free=s.join(" ").toLowerCase(),t}function jv(e,t){if(!t)return!0;let s=[e.title,e.code,e.service,e.route,e.method,e.queue,e.status,e.cause?.label,e.cause?.summary].filter(i=>i!=null).join(" ").toLowerCase();return t.split(" ").every(i=>s.includes(i))}var fp=e=>Number(e?.status||e?.httpStatus)||0,Cl=e=>Date.parse(e),_v=e=>e?.event==="external_request",Gv=new Set(["mongodb","redis"]);function Wv(e,t){let s=(e||[]).filter(u=>Number.isFinite(Cl(u.timestamp))).map((u,p)=>{let d=Cl(u.timestamp),g=Number(u.ms),m=Number.isFinite(g)&&g>=0?d-g:d,v=_v(u),y=String(u.upstreamHost||""),C=v?"external":Gv.has(u.service)?"data":u.service==="nginx"?"edge":"app",k=v?`${y==="storage"?"Storage":/github/.test(y)?"GitHub":"External"}${u.upstreamMethod?" \xB7 "+u.upstreamMethod:""}`:u.errorCode||u.errorType||String(u.event||"event").replace(/_/g," "),w=v?u.upstreamEndpoint||y||"endpoint not recorded":[u.service,u.route||(u.queue?"job "+u.queue:"")].filter(Boolean).join(" \xB7 "),R=v?Number(u.upstreamStatus)||u.errorCode||"":fp(u)||"",b=v?Number(u.upstreamStatus)>=400||!!u.errorCode:fp(u)>=500||u.severity==="error",P=!v&&!!t&&!["edge_request","request_completed"].includes(u.event)&&(t.errorCode&&u.errorCode===t.errorCode||!t.errorCode&&t.errorType&&u.errorType===t.errorType);return{key:p,event:u,start:m,end:d,ms:Number.isFinite(g)?g:null,kind:C,label:k,sub:w,status:R,failed:b,failure:P}});if(!s.length)return{rows:s,span:0};s.sort((u,p)=>u.start-p.start||p.end-p.start-(u.end-u.start)),s.forEach((u,p)=>{u.key=p});let i=Math.min(...s.map(u=>u.start)),r=Math.max(...s.map(u=>u.end)),o=Math.max(1,r-i);for(let u of s)u.left=(u.start-i)/o*100,u.width=Math.max(.6,(u.end-u.start)/o*100),u.left+u.width>100&&(u.left=Math.max(0,100-u.width)),u.offset=Math.round(u.start-i);if(!s.some(u=>u.failure)){let u=[...s].reverse().find(p=>p.failed&&p.kind==="app");u&&(u.failure=!0)}return{rows:s,span:Math.round(o)}}function Kv(e){return e?e==="anonymous"?"Viewer not signed in":e==="visitor"?"Viewer: signed-in visitor":`Viewer: ${(kl[e]||e).toLowerCase()}`:""}funct
Line truncated
|
|
|
|
|
`)],{type:"text/csv;charset=utf-8"})),G=document.createElement("a");G.href=q,G.download=`errors-${new Date().toISOString().slice(0,19)}.csv`,document.body.appendChild(G),G.click(),G.remove(),URL.revokeObjectURL(q),e.copyStatus="Redis history exported."}catch{e.copyStatus="Could not export the Redis history."}},y().then(()=>{e.errView!=="list"&&P()});let ae=i(()=>{e.errView==="list"&&!e.issueLoading&&document.visibilityState!=="hidden"&&y({quiet:!0})},6e4);e.on("dispose",()=>{p=!0,window.clearTimeout(w),r++,o++,u++,i.cancel(ae)})};function so(e){e.listLoading=!0,e.listLoaded===void 0&&(e.listLoaded=!1)}function Nl(e){e.listLoading=!1,e.listLoaded=!0}var Ur=e=>["preparing","download","downloading","downloaded","queue","anonymizing"].includes(e)?"preparing":e==="expiring"?"expired":e==="removing"?"removed":e;function Br(e,{flags:t,keys:s,count:i,onChange:r=()=>{}}){if(e.segView=()=>{let o=t()||{};if(s.every(p=>!!o[p]))return"all";let u=s.filter(p=>!!o[p]);return u.length===1?u[0]:"custom"},e.setSegView=o=>{let u=t();if(u){for(let p of s)u[p]=o==="all"?!0:p===o;r()}},e.segCount=o=>o==="all"?s.reduce((u,p)=>u+i(p),0):i(o),t()&&e.segView()==="custom")for(let o of s)t()[o]=!0}var vp=function(e,t,s){let i=Pt(),r=Lt();Sp(i,r),e.Math=Math,e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.repositories=[],e.total=-1,e.listLoaded=!1,e.listLoading=!0,e.totalPage=0,e.statusCounts=[],e.totalSize=0,e.selected={},e.allSelected=!1;let o=w=>{if(w.key==="/"&&!["INPUT","TEXTAREA","SELECT"].includes(document.activeElement?.tagName)){w.preventDefault();let R=document.querySelector('.admin-filter-toolbar input[type="search"]');R&&R.focus()}};r(document,"keydown",o),e.on("dispose",()=>document.removeEventListener("keydown",o)),e.clearFilter=w=>{w==="dateRange"?(e.query.dateFrom="",e.query.dateTo=""):e.query[w]="",e.query.page=1},e.chips=[];let u=()=>{let w=[];e.query.owner&&w.push({key:"owner",label:"Owner",value:e.query.owner}),e.query.conference&&w.push({key:"conference",label:"Conference",value:e.query.conference}),e.chips=w};e.showStatusMessage=w=>{let R=w.statusMessage||"(no message)";window.prompt(`Status message for ${w.repoId} (${w.status}):`,R)},e.fetchGithubInfo=w=>{let R=window.open("","_blank");R&&R.document.write("<pre>Loading GitHub info for "+w.repoId+"...</pre>"),t.get("/api/admin/repos/"+w.repoId+"/github").then(b=>{R&&(R.document.open(),R.document.write('<pre style="font:13px monospace;padding:16px;white-space:pre-wrap">'+JSON.stringify(b.data,null,2).replace(/[<>]/g,P=>P==="<"?"<":">")+"</pre>"),R.document.close())},b=>{let P=b&&b.data?JSON.stringify(b.data,null,2):String(b);R&&(R.document.body.innerHTML='<pre style="color:#B42318;padding:16px">'+P+"</pre>")})},e.statusCountFor=w=>{let R=(e.statusCounts||[]).find(b=>b._id===w);return R?R.count:0},e.statusStorageFor=w=>{let R=(e.statusCounts||[]).find(b=>b._id===w);return R?R.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=w=>{e.query.sort===w?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=w,e.query.direction="desc"),e.query.page=1},e.sortIcon=w=>e.query.sort===w?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"";let p="admin.repos.filterPrefs",d={page:1,limit:25,sort:"lastView",direction:"desc",search:"",owner:"",conference:"",dateFrom:"",dateTo:"",ready:!0,expired:!0,removed:!0,error:!0,preparing:!0},g=loadFilterPrefs(p)||{};e.query=Object.assign({},d,g,{page:1,search:""});let m=s.search();m.owner&&(e.query.owner=m.owner),m.conference&&(e.query.conference=m.conference),m.search&&(e.query.search=m.search);let v="admin.repos.presets";e.presets=JSON.parse(localStorage.getItem(v)||"[]"),e.savePreset=()=>{let w=window.prompt("Preset name:");if(!w)return;let R=Object.assign({},e.query);delete R.page,e.presets=(e.presets||[]).filter(b=>b.name!==w),e.presets.push({name:w,query:R}),localStorage.setItem(v,JSON.stringify(e.presets))},e.applyPreset=w=>{Object.assign(e.query,w.query,{page:1})},e.deletePreset=w=>{e.presets=(e.presets||[]).filter(R=>R.name!==w.name),localStorage.setItem(v,JSON.stringify(e.presets))},e.selectAllOnPage=()=>{e.allSelected=!e.allSelected,e.repositories.forEach(w=>{e.selected[w.repoId]=e.allSelected})},e.selectedCount=()=>Object.values(e.selected||{}).filter(Boolean).length,e.selectedRepos=()=>e.repositories.filter(w=>e.selected[w.repoId]),e.bulkRefresh=()=>{let w=e.selectedRepos();w.length&&confirm(`Force refresh ${w.length} repositories?`)&&w.forEach(R=>e.updateRepository(R))},e.bulkRemoveCache=()=>{let w=e.selectedRepos();w.length&&confirm(`Purge cache for ${w.length} repositories?`)&&w.forEach(R=>e.r
Line truncated
|
|
|
|
|
`+w.join(`
|
|
|
|
|
`)],{type:"text/csv"}),b=document.createElement("a");b.href=URL.createObjectURL(R),b.download=i.username+"-repositories.csv",b.click()},e.showStatusMessage=y=>{let C=y.statusMessage||"(no message)";window.prompt(`Status message for ${y.repoId} (${y.status}):`,C)},e.fetchGithubInfo=y=>{let C=window.open("","_blank");C&&C.document.write("<pre>Loading GitHub info for "+y.repoId+"...</pre>"),t.get("/api/admin/repos/"+y.repoId+"/github").then(k=>{C&&(C.document.open(),C.document.write('<pre style="font:13px monospace;padding:16px;white-space:pre-wrap">'+JSON.stringify(k.data,null,2).replace(/[<>]/g,w=>w==="<"?"<":">")+"</pre>"),C.document.close())},k=>{let w=k&&k.data?JSON.stringify(k.data,null,2):String(k);C&&(C.document.body.innerHTML='<pre style="color:#B42318;padding:16px">'+w+"</pre>")})};function d(y){t.get("/api/admin/users/"+y+"/repos",{}).then(C=>{e.repositories=C.data},C=>{console.error(C)})}function g(y){t.get("/api/admin/users/"+y,{}).then(C=>{e.userInfo=C.data,e.loadEntityErrors()},C=>{console.error(C)})}El(e,t,()=>/^[a-f0-9]{24}$/.test(e.userInfo?._id||"")?{userId:e.userInfo._id}:null),g(i.username),d(i.username),e.banUser=()=>{confirm(`Ban user ${i.username}?`)&&t.post(`/api/admin/users/${i.username}/ban`).then(()=>g(i.username),y=>console.error(y))},e.activateUser=()=>{t.post(`/api/admin/users/${i.username}/activate`).then(()=>g(i.username),y=>console.error(y))},e.promoteUser=()=>{confirm(`Promote ${i.username} to admin?`)&&t.post(`/api/admin/users/${i.username}/promote`).then(()=>g(i.username),y=>console.error(y))},e.demoteUser=()=>{confirm(`Remove admin privileges from ${i.username}?`)&&t.post(`/api/admin/users/${i.username}/demote`).then(()=>g(i.username),y=>console.error(y))},e.tokens=[],e.tokenForm={name:"",plaintext:null};function m(){t.get("/api/admin/tokens").then(y=>{e.tokens=y.data||[]},y=>{y.status!==401&&y.status!==403&&console.error(y)})}m(),e.createToken=()=>{e.tokenForm.name&&t.post("/api/admin/tokens",{name:e.tokenForm.name}).then(y=>{e.tokenForm.plaintext=y.data.token,e.tokenForm.name="",m()},y=>console.error(y))},e.revokeToken=y=>{confirm(`Revoke token "${y.name}"?`)&&t.delete("/api/admin/tokens/"+y.id).then(()=>m(),C=>console.error(C))},e.removeCache=y=>{confirm("Remove cached files for "+y.repoId+"?")&&t.delete("/api/admin/repos/"+y.repoId).then(()=>d(i.username),C=>console.error(C))},e.removeRepository=y=>{confirm("Remove repository "+y.repoId+"?")&&t.delete("/api/repo/"+y.repoId+"/").then(()=>d(i.username),C=>console.error(C))},e.updateRepository=y=>{let C=ut({title:`Refreshing ${y.repoId}...`,date:new Date,body:`The repository ${y.repoId} is going to be refreshed.`});e.toasts.push(C),t.post(`/api/repo/${y.repoId}/refresh`).then(k=>{k.data.status=="ready"?C.title=`${y.repoId} is refreshed.`:C.title=`Refreshing of ${y.repoId}.`},k=>{C.title=`Error during the refresh of ${y.repoId}.`,C.body=k.body})},e.getGitHubRepositories=y=>{t.get(`/api/user/${e.userInfo.username}/all_repositories`,{params:{force:"1"}}).then(C=>{e.userInfo.repositories=C.data})};let v=null;e.watch("query",()=>{r.timeout.cancel(v),v=r.timeout(()=>{d(i.username)},500)},!0)},kp=function(e,t,s){let i=Pt(),r=Lt();e.Math=Math,e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.conferences=[],e.total=-1,e.listLoaded=!1,e.listLoading=!0,e.totalPage=0,e.statusCounts=[];let o=k=>{if(k.key==="/"&&!["INPUT","TEXTAREA","SELECT"].includes(document.activeElement?.tagName)){k.preventDefault();let w=document.querySelector('.admin-filter-toolbar input[type="search"]');w&&w.focus()}};r(document,"keydown",o),e.on("dispose",()=>document.removeEventListener("keydown",o)),e.clearFilter=k=>{k==="dateRange"?(e.query.dateFrom="",e.query.dateTo=""):e.query[k]="",e.query.page=1},e.chips=[];let u=()=>{let k=[];(e.query.dateFrom||e.query.dateTo)&&k.push({key:"dateRange",label:"Date",value:(e.query.dateFrom||"\u2026")+" \u2013 "+(e.query.dateTo||"\u2026")}),e.chips=k};e.statusCountFor=k=>{let w=(e.statusCounts||[]).find(R=>R._id===k);return w?w.count:0},e.toggleSortDirection=()=>{e.query.direction=e.query.direction==="asc"?"desc":"asc"},e.sortBy=k=>{e.query.sort===k?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=k,e.query.direction="desc"),e.query.page=1},e.sortIcon=k=>e.query.sort===k?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"";let p="admin.conferences.filterPrefs",d={page:1,limit:25,sort:"name",direction:"asc",search:"",dateFrom:"",dateTo:"",ready:!0,expired:!0,removed:!0,error:!0,preparing:!0},g=loadFilterPrefs(p)||{};e.query=Object.assign({},d,g,{page:1,search:""});let m=s.search();m.search&&(e.query.search=m.search);let v="admin.conferences.presets";e.presets=JSON.parse(localStorage.getItem(v)||"[]"),e.savePreset=()=>{let k=window.prompt("Preset name:");if(!k)return;let w=Object.assign({},e.query);delete w.page,e.presets=(e.presets||[]).filter(R=>R.name!==k),e.presets.push({name:k,query:w}),localStorage.setItem(v,JSON.stringify(e.presets))},e.applyPreset=k=>{
Line truncated
|
|
|
|
|
`)},e.tipSide=k=>{let w=(e.summary?.series||[]).length;return w<3?"":k<w/4?"tip-start":k>=w*3/4?"tip-end":""},e.bucketName=()=>({day:"day",week:"week",month:"month"})[e.summary?.bucket]||"day",e.seriesSales=()=>(e.summary?.series||[]).reduce((k,w)=>k+e.bucketTotal(w),0),e.plansWithActivity=()=>(e.summary?.plans||[]).filter(k=>k.active||k.allTimeSales||k.sales),e.familyLabel=k=>(Fr.find(w=>w.id===k)||{}).label||"",e.familyPlans=k=>(e.summary?.plans||[]).filter(w=>w.family===k),e.familySum=(k,w)=>e.familyPlans(k).reduce((R,b)=>R+(b[w]||0),0),e.familyMoney=(k,w,R)=>{if(!e.revenueOn())return"\u2014";let b=e.familyPlans(k);return b.some(P=>P[R]===!1)?"Incomplete":e.moneyText(b.reduce((P,D)=>o(P,D[w]),{}))},e.planTotals=()=>{let k=w=>(e.summary?.plans||[]).reduce((R,b)=>R+(b[w]||0),0);return{active:k("active"),sales:k("sales"),allTimeSales:k("allTimeSales")}},e.webhookState=()=>{let k=e.summary?.webhooks;return k?k.failed||k.reconciliationFailed?"bad":k.oldestPendingSeconds>900||k.unreviewedRevocations?"warn":"ok":"ok"},e.age=k=>k?Xn(k*1e3):"\u2014";let u=0;e.loadSummary=()=>{let k=++u;e.summaryLoading=!0,e.summaryError=null,t.get("/api/admin/billing/summary",{params:{period:e.period}}).then(w=>{if(k!==u)return;e.summaryLoading=!1;let R=w.data;if(!R||!R.subscriptions||!R.sales||!Array.isArray(R.plans)){e.summaryError="The billing summary had an unexpected format.";return}e.summary=R},w=>{k===u&&(e.summaryLoading=!1,e.summaryError=w&&w.data&&w.data.error||"Could not load billing figures.")})},e.setPeriod=k=>{if(e.period!==k){e.period=k;try{localStorage.setItem("admin.billing.period",k)}catch{}e.loadSummary()}},e.grants=[],e.total=-1,e.totalPage=0,e.stateCounts={},e.statuses=[],e.grantsError=null,e.filtersOpen=!1,e.query={page:1,limit:25,search:"",plan:"",status:"",state:"",period:"",sort:"purchasedAt",direction:"desc"};let p=s.search();p.search&&(e.query.search=p.search),e.stateView=()=>e.query.state||"all",e.setStateView=k=>{e.query.state=k==="all"?"":k,e.query.page=1},e.stateCount=k=>k==="all"?["active","expired","revoked"].reduce((w,R)=>w+(e.stateCounts[R]||0),0):e.stateCounts[k]||0,e.sortBy=k=>{e.query.sort===k?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=k,e.query.direction="desc"),e.query.page=1},e.sortIcon=k=>e.query.sort===k?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"",e.chips=[];let d=()=>{let k=[];e.query.plan&&k.push({key:"plan",label:"Plan",value:e.planName(e.query.plan)}),e.query.status&&k.push({key:"status",label:"Stripe status",value:e.query.status.replace(/_/g," ")}),e.query.period&&k.push({key:"period",label:"Started",value:"last "+((e.periods.find(w=>w.id===e.query.period)||{}).label||e.query.period)}),e.chips=k};e.clearFilter=k=>{e.query[k]="",e.query.page=1},e.filterPlan=k=>{Object.assign(e.query,{plan:k,page:1});let w=document.getElementById("bl-grants");w&&w.scrollIntoView&&w.scrollIntoView({behavior:"smooth",block:"start"})},e.clearFilters=()=>Object.assign(e.query,{search:"",plan:"",status:"",state:"",period:"",page:1}),e.hasFilters=()=>!!(e.query.search||e.query.plan||e.query.status||e.query.state||e.query.period),e.filterCount=()=>["plan","status","period"].filter(k=>e.query[k]).length,e.amountText=k=>{if(!k.amount)return"\u2014";let w=ks({[k.amount.currency]:k.amount.value})[0]||"\u2014";if(!k.amount.interval)return w;let R=k.amount.intervalCount>1?k.amount.intervalCount+" "+k.amount.interval+"s":k.amount.interval;return w+" / "+R},e.amountTitle=k=>k.amount?"Stripe list price"+(k.pack?" of the whole pack":""):{stripe_not_configured:"Revenue unavailable: Stripe is not configured on this server.",unresolved:"Revenue unavailable: this Stripe price could not be looked up.",unrecorded:"Revenue unavailable: no sale price was recorded for this subscription."}[k.amountMissing]||"Revenue unavailable.",e.endText=k=>{if(k.never)return"Never ends";if(!k.until)return"\u2014";let w=Pr(k.until);return k.state!=="active"?(new Date(k.until)<new Date?"Ended ":"Ends ")+w:k.subscription?(k.cancelAtPeriodEnd?"Ends ":"Renews ")+w:"Until "+w},e.packNote=k=>{let w=(k.parts||[]).find(R=>R.planId==="author_pass");return!k.pack||!w||!w.until?"":(new Date(w.until)<new Date?"Updates ended ":"Updates until ")+Pr(w.until)};let g={repo_slot:"repository",author_pass:"updates",repo_extend:"+1 year"};e.packParts=k=>(k.parts||[]).map(w=>g[w.planId]||e.planName(w.planId)).join(", ").replace(/^./,w=>w.toUpperCase()),e.packPartsTitle=k=>"Paper pack: "+(k.parts||[]).map(w=>e.planName(w.planId)).join(", "),e.statusText=k=>(k.status||"unknown").replace(/_/g," "),e.revocationText=k=>k==="dispute"?"Disputed":k==="full_refund"?"Refunded":"Revoked",e.scopeHref=k=>k?.kind==="repo"?"/admin/repositories?search="+encodeURIComponent(k.id):k?.kind==="conference"?"/conference/"+encodeURIComponent(k.id):null;let m=0;function v(){let k=++m;e.grantsError=null;let w=Object.fromEntries(Object.entries(e.query).filter(([,R])=>R!==""&&R!=null));t.get("/api/admin/billing/grants",{params:w}).then(R=>{k===m&&(
Line truncated
|
|
|
|
|
`)},Ml=class{constructor(t){lt(this,"gen");lt(this,"threads",[]);lt(this,"match",!1);lt(this,"runs",[]);lt(this,"ids",[]);this.gen=t}get dead(){return!this.threads.length&&!this.match&&!this.runs.length}},Hp=(e,t)=>e.ids.length!==t.ids.length||e.runs.length!==t.runs.length||e.ids.some((s,i)=>s!==t.ids[i])?!1:e.runs.every(s=>t.runs.some(i=>i.neg===s.neg&&Hp(i.state,s.state))),Vp=e=>({has:new Float64Array(e),seen:new Float64Array(e),gen:0}),Es,ns,Vl,ql,li=class{constructor(t,s,i){He(this,ns);lt(this,"dots");lt(this,"dotStart");He(this,Es);this.dots=t,this.dotStart=s,Ke(this,Es,i)}state(){return new Ml(++ce(this,Es).gen)}done(t){return t.ids=t.threads.map(s=>s.id).sort((s,i)=>s-i),t.match&&t.ids.unshift(Ol.id),t}restricted(t,s){return s&&(this.dots||this.dotStart&&t===0)}add(t,s,i,r){switch(s.t){case"split":if(!ze(this,ns,Vl).call(this,t,s))return;for(let u of s.out)this.add(t,u,i,r);return;case"neg":if(!ze(this,ns,Vl).call(this,t,s))return;let o=this.state();return this.add(o,s.sub,i,!1),this.done(o),this.addRun(t,{t:"run",neg:s,state:o},i,r);case"star":if(this.restricted(i,r))return;ze(this,ns,ql).call(this,t,s)&&this.add(t,s.next,i,r);return;case"match":t.match=!0;return;default:ze(this,ns,ql).call(this,t,s)}}addRun(t,s,i,r){for(let o of t.runs)if(o.neg===s.neg&&Hp(o.state,s.state))return;t.runs.push(s),s.state.match||this.add(t,s.neg.next,i,r)}step(t,s,i,r){let o=this.state();for(let u of t.threads)switch(u.t){case"lit":Fl(u,s)&&this.add(o,u.next,i+1,r);break;case"any":this.restricted(i,r)||this.add(o,u.next,i+1,r);break;case"class":!this.restricted(i,r)&&u.re.test(s)&&this.add(o,u.next,i+1,r);break;case"star":this.restricted(i,r)||this.add(o,u,i+1,r)}if(!this.restricted(i,r))for(let u of t.runs){if(u.state.dead){this.addRun(o,u,i+1,r);continue}let p=this.step(u.state,s,i,!1);this.addRun(o,{t:"run",neg:u.neg,state:p},i+1,r)}return this.done(o)}};Es=new WeakMap,ns=new WeakSet,Vl=function(t,s){let{seen:i}=ce(this,Es);return i[s.id]===t.gen?!1:(i[s.id]=t.gen,!0)},ql=function(t,s){let{has:i}=ce(this,Es);return i[s.id]===t.gen?!1:(i[s.id]=t.gen,t.threads.push(s),!0)};var zp=e=>{let t=e.ids.join();if(!e.runs.length)return t;let s=e.runs.map(i=>`${i.neg.id}(${zp(i.state)})`);return`${t}|${s.sort().join("|")}`},Ob=1<<18,oo,io,Jn,Ss,Zn,xn,es,mn,$l,jr,jp,Ll=class{constructor(t,s){He(this,mn);He(this,oo);He(this,io,new Map);He(this,Jn,0);He(this,Ss);He(this,Zn);He(this,xn);He(this,es);Ke(this,oo,t),Ke(this,xn,new li(!1,!1,s)),Ke(this,es,new li(!1,!0,s))}start(t){if(t){if(ce(this,Zn))return ce(this,Zn);let i=ce(this,es).state();return ce(this,es).add(i,ce(this,oo),0,!0),Ke(this,Zn,ze(this,mn,$l).call(this,ce(this,es).done(i)))}if(ce(this,Ss))return ce(this,Ss);let s=ce(this,xn).state();return ce(this,xn).add(s,ce(this,oo),0,!0),Ke(this,Ss,ze(this,mn,jr).call(this,ce(this,xn).done(s)))}next(t,s){let i=s.charCodeAt(0),r=i<128?void 0:t.next.get(s);if(r)return r;let o=t===ce(this,Zn)?ze(this,mn,jr).call(this,ce(this,es).step(t.state,s,0,!0)):ze(this,mn,jr).call(this,ce(this,xn).step(t.state,s,1,!0));return i<128?(t.ascii||(t.ascii=new Array(128),Ke(this,Jn,ce(this,Jn)+128)),t.ascii[i]=o):t.next.set(s,o),gd(this,Jn)._++,o}};oo=new WeakMap,io=new WeakMap,Jn=new WeakMap,Ss=new WeakMap,Zn=new WeakMap,xn=new WeakMap,es=new WeakMap,mn=new WeakSet,$l=function(t){return{state:t,match:t.match,dead:t.dead,next:new Map}},jr=function(t){let s=zp(t),i=ce(this,io).get(s);if(i)return i;ce(this,Jn)>Ob&&ze(this,mn,jp).call(this);let r=ze(this,mn,$l).call(this,t);return ce(this,io).set(s,r),Ke(this,Jn,ce(this,Jn)+(s.length+1)),r},jp=function(){ce(this,io).clear(),Ke(this,Jn,0),Ke(this,Ss,void 0),Ke(this,Zn,void 0)};var Mb=e=>{let t=[];for(let s=e;s.t!=="match";s=s.next){if(s.t==="split"||s.t==="neg")return;t.push(s)}return t},Vb=(e,t,s,i)=>{let r=0,o=s,u=-1,p=0;for(;o<i;){let d=e[r];if(d?.t==="star"){u=r++,p=o;continue}let g=t[o];if(d&&(d.t==="any"||d.t==="lit"&&Fl(d,g)||d.t==="class"&&d.re.test(g))){r++,o++;continue}if(u===-1)return!1;r=u+1,o=++p}for(;e[r]?.t==="star";)r++;return r===e.length},_p=e=>{let t=0,s=0;for(let i of e){let[r,o]=qb(i);t+=r,s+=o}return[t,s]},qb=e=>{if(e.t==="star")return[0,1/0];if(e.t!=="ext")return[1,1];if(e.type==="!")return[0,1/0];let t=e.alts.map(_p),s=Math.min(...t.map(o=>o[0])),i=Math.max(...t.map(o=>o[1])),r=i===0?0:1/0;return e.type==="@"?[s,i]:e.type==="?"?[0,i]:e.type==="*"?[0,r]:[s,r]},qp=(e,t,s)=>{for(let i=0;i<e.length;i++)if(!Fl(e[i],t[s+i]))return!1;return!0},Lb=/[/\ud800-\udfff]/,$b=/[\ud800-\udfff]/,zr=e=>$b.test(e)?[...e]:e,Lp=e=>{if(e.includes("/"))throw new Error("can only match a single path portion, got: "+e)},ts,ro,Ns,_r,Rs,ui,Gr,Ts,ci,pi,fi,jn,Tn,ao,lo,mi,Wr,fn,Ps,ai,di=class{constructor(t,s={}){He(this,Ps);lt(this,"pattern");lt(this,"options");He(this,ts);He(this,ro);He(this,Ns);He(this,_r);He(this,Rs);He(this,ui,!1);He(this,Gr);He(this,Ts);He(this,ci,!1);He(this,pi,0);He(this,fi,1/0);He(this,jn,[]);He(this,Tn,[]);He(this,ao);He(this,lo);He(this,mi,!1);He(this,Wr);He(this,fn);if(t.includes
Line truncated
|
|
|
|
|
`).forEach((s,i)=>{let{term:r}=Ql(s.trim());if(!r)return;let o=[];for(let u=0;u<r.length;u++){if(r[u]==="\\"){u++;continue}lf.has(r[u])&&!o.includes(r[u])&&o.push(r[u])}o.length&&t.push({line:i,term:r,symbols:o})}),t}function uf(e,t){let s=String(e||"").split(`
|
|
|
|
|
`),i=s[t];if(i===void 0)return e;let{term:r}=Ql(i.trim());if(!r)return e;let o="";for(let p=0;p<r.length;p++){if(r[p]==="\\"){o+=r.slice(p,p+2),p++;continue}o+=lf.has(r[p])||r[p]==="."?"\\"+r[p]:r[p]}let u=i.indexOf(r);return s[t]=i.slice(0,u)+o+i.slice(u+r.length),s.join(`
|
|
|
|
|
`)}var ls={VIEWER_ERRORS:{title:"Content could not be loaded",access_title:"GitHub access needs attention",reader_help:"Reading this repository? You do not need to sign in. Try again after the owner restores access, or let them know this anonymous link is unavailable.",owner_help:"Own this repository? If your GitHub account was suspended or recently recovered, sign in to Anonymous GitHub again and check the GitHub connection and repository permissions in your dashboard. Then retry this page. Keep the existing anonymous URL; do not delete the repository to restore access.",retry:"Try again",dashboard:"Open owner dashboard"},ERRORS:{cache_busy:"Downloads are busy. Please try again shortly.",cache_miss:"This file is not cached yet. Please try again.",invalid_sort:"The selected sort order is invalid.",invalid_cursor:"This project page is no longer valid. Reload the list.",repository_changed:"The repository changed while processing. Please retry.",repository_job_cancelled:"The repository changed or was removed while processing.",storage_delete_failed:"Unable to remove cached files. Please try again later.",unknown_error:"We could not load this content. Try again. If it still fails, contact support with the anonymous URL and the time of the error.",unreachable:"The service could not complete this request. Wait a moment and try again.",request_error:"The connection was interrupted. Check your internet connection and try again.",not_found:"The requested resource could not be found.",not_connected:"You must be logged in to perform this action.",not_authorized:"You do not have permission to perform this action.",unable_to_connect_user:"Unable to connect your account. Please try again later.",user_not_found:"The requested user could not be found.",user_banned:"Your account has been banned. Contact the admin for more information.",repo_access_limited:"GitHub blocked access because the repository's organization restricts third-party OAuth apps. Ask an org owner to approve Anonymous GitHub under Settings \u2192 Third-party Access \u2192 OAuth app policy, or anonymize a personal fork instead.",repo_saml_enforcement:"The repository's organization enforces SAML single sign-on. Authorize your token for that organization (GitHub \u2192 Settings \u2192 Applications, or re-run the org's SSO sign-in), then retry. Alternatively, anonymize a personal fork.",repo_not_found:"Anonymous GitHub cannot access the source repository on GitHub. It may be private, unavailable, or require the owner to reconnect GitHub.",repo_empty:"The selected branch has no commits on GitHub. Push at least one commit, or pick a different branch, then retry.",repo_not_accessible:"Anonymous GitHub cannot access this repository. Verify the repository exists and that Anonymous GitHub has been authorized for the owning organization.",repository_archived:"This repository has been archived and its files are no longer available.",repository_expired:"The repository is expired.",invalid_status:"This action cannot be performed while the resource is in its current state.",repository_not_ready:"Anonymous GitHub is still processing the repository, it can take several minutes.",repository_not_accessible:"This repository is currently not accessible.",repo_is_updating:"Anonymous GitHub is still processing the repository, it can take several minutes.",invalid_repo:"The provided repository is not valid.",invalid_source_repository:"The repository source name is invalid; expected the form 'owner/name'.",repoId_not_defined:"A repository ID must be provided.",repoUrl_not_defined:"The repository URL needs to be defined.",source_not_provided:"A repository source must be provided.",github_rate_limit_exceeded:"GitHub temporarily blocked the request because we hit its API rate limit. Wait a few minutes and try again. If the problem persists and you contact GitHub Support, include the request ID and timestamp shown in GitHub's response (the 'X-GitHub-Request-Id' header).",rate_limited:"GitHub API rate limit reached. The repository will be available shortly \u2014 please wait a moment and refresh.",repoId_already_used:"The repository ID is already used.",invalid_repoId:"The format of the repository ID is invalid.",unsupported_source:"The repository source type is not supported.",branch_not_specified:"The branch is not specified.",branch_not_found:"The branch of the repository cannot be found.",commit_not_specified:"A commit must be specified.",commit_not_found:"The configured commit no longer exists in the source repository. It may have been force-pushed, rebased, or removed.",repo_renamed:"The source repository appears to have been renamed or moved on GitHub. Please refresh and try again \u2014 the cached name has been updated.",invalid_commit_format:"The commit hash format is invalid. It must be a hexadecimal string.",pull_request_not_found:"The requested pull request could not be found.",pull_request_expired:"This pull request has expired and is no longer available.",pull_request_no
Line truncated
|
|
|
|
|
`)),e.options=Object.assign({},e.options,v.options),p.restore()})}d();let g=null;e.saveDefault=m=>{if(m&&m.preventDefault&&m.preventDefault(),e.saving)return;let v=p.checkpoint(),y={terms:e.terms.split(`
|
|
|
|
|
`).map(C=>C.trim()).filter(C=>C.length>0),options:e.options};e.saving=!0,e.error=null,t.post("/api/user/default",y).then(()=>{p.accept(v),e.saving=!1,e.message=e.unsavedChanges?null:"Saved",g&&i.cancel(g),g=i(()=>{e.message=null},2500)},C=>{e.saving=!1;let k=C&&C.data&&C.data.error,w="Unable to save your defaults. Please try again.";Promise.all([s("ERRORS."+k),s("ERRORS.unknown_error")]).then(([R,b])=>{e.error=k&&R!==b?R:w},()=>{e.error=w})})},e.deleteAccount=()=>{e.deletingAccount||!e.confirmDeleteAccount||e.deleteUsername!==e.user?.username||(e.deletingAccount=!0,t.delete("/api/user").then(()=>{window.location.href="/"},()=>{e.deletingAccount=!1,e.deleteError="Unable to delete the account. Please try again."}))}},gf=function(e,t,s){e.repoId=null,e.repoUrl=null,e.claim=()=>{t.post("/api/repo/claim",{repoId:e.repoId,repoUrl:e.repoUrl}).then(i=>{s.url("/dashboard")},i=>{e.error=i.data,e.claimForm.repoUrl.setValidity("not_found",!1),e.claimForm.repoId.setValidity("not_found",!1)})}},yf=function(e,t,s,i,r){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(p){e.feature=p},e.featureHref=function(p){return p.needsUser&&!e.user?"/signin":p.href},e.featureTarget=function(p){return p.needsUser&&!e.user?"_self":p.target||void 0},e.featureKeydown=function(p,d){let g={ArrowDown:1,ArrowRight:1,ArrowUp:-1,ArrowLeft:-1,Home:"first",End:"last"}[p.key];if(g===void 0)return;p.preventDefault();let m=e.features.length,v=g==="first"?0:g==="last"?m-1:(d+g+m)%m;e.feature=e.features[v].key,r(()=>{let y=i.document.getElementById("feature-tab-"+e.feature);y&&y.focus()})},e.demoText=`# DeepLearnUtils
|
|
|
|
|
Developed by Jane Smith at MIT CSAIL.
|
|
|
|
|
See Smith et al., "Attention That Works," 2026.
|
|
|
|
|
Contact: jane.smith@mit.edu`,e.demoTerms="Jane Smith, Smith, MIT CSAIL, jane.smith@mit.edu",e.demoParts=function(){let p=(e.demoTerms||"").split(/[,\n]/).map(v=>v.trim()).filter(Boolean).sort((v,b)=>b.length-v.length),d=v=>v.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");if(!p.length)return[{text:e.demoText}];let h=new RegExp("("+p.map(d).join("|")+")","gi"),m={},y=0;return(e.demoText||"").split(h).filter(v=>v!=="").map(v=>{let b=p.find(w=>w.toLowerCase()===v.toLowerCase());return b?(m[b.toLowerCase()]||(m[b.toLowerCase()]=++y),{text:String(m[b.toLowerCase()]),redacted:!0,original:v}):{text:v}})},e.demoCount=()=>e.demoParts().filter(p=>p.redacted).length,e.cards=[{key:"repositories",total:0,label:"repositories anonymized"},{key:"users",total:0,label:"researchers"},{key:"pageViews",total:0,label:"page views"},{key:"pullRequests",total:0,label:"pull requests"}],e.statsEmpty=()=>!!e.stat&&e.cards.every(p=>!p.total);function r(){t.get("/api/stat/").then(p=>{e.stat=p.data,e.cards[0].total=p.data.nbRepositories,e.cards[1].total=p.data.nbUsers,e.cards[2].total=p.data.nbPageViews,e.cards[3].total=p.data.nbPullRequests}).catch(()=>{})}r();function u(p){let d={series:p,bars:[],viewW:100,deltaToday:0,pctChange:0,pctAbs:0,isUp:!0};if(!p||p.length<2)return d;let h=new Array(p.length-1);for(let C=1;C<p.length;C++)h[C-1]=p[C]-p[C-1];let m=h.length,y=Math.max.apply(null,h),v=Math.min.apply(null,h),b=Math.min(0,v),w=y-b||1;d.viewW=m*2,d.bars=new Array(m);for(let C=0;C<m;C++){let N=(h[C]-b)/w,k=Math.max(1.5,N*34);d.bars[C]={x:(C*2+.25).toFixed(2),y:(36-k).toFixed(2),w:"1.5",h:k.toFixed(2)}}if(d.deltaToday=h[m-1],m>=2){let C=h[m-2];C&&(d.pctChange=(d.deltaToday-C)/C*100)}return d.pctAbs=Math.round(Math.abs(d.pctChange)),d.isUp=d.pctChange>=0,d}e.history={repositories:u([]),users:u([]),pageViews:u([]),pullRequests:u([])},t.get("/api/stat/history?days=60").then(p=>{let d=p.data||[];e.history={repositories:u(d.map(h=>h.nbRepositories||0)),users:u(d.map(h=>h.nbUsers||0)),pageViews:u(d.map(h=>h.nbPageViews||0)),pullRequests:u(d.map(h=>h.nbPullRequests||0))}}).catch(()=>{})},df=function(e,t,s,i,o,r){let u=Et();e.on("routeLeave",function(){$('[data-toggle="tooltip"]').tooltip("dispose")}),e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),u.timeout(()=>{$('[data-toggle="tooltip"]').tooltip()},250),e.quotaExpanded=!1,e.closeQuota=()=>{e.quotaExpanded=!1,Ke(()=>document.querySelector(".dashboard-quota > summary")?.focus())},qt()(document,"click",E=>{e.quotaExpanded&&!E.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=E=>E.status==="error"||E._broken||d(E.status)==="progress"&&E._stale,e.attentionCount=()=>e.dashboardTotals?.attention??e.items.filter(e.needsAttention).length,e.hasProjects=()=>(e.dashboardTotals?.total??e.items.length)>0,e.setProjectView=E=>{e.projectView=E,E==="attention"&&(e.filters.status.error=!0,e.filters.status.progress=!0)},e.idleText=E=>{let q=ll(E?.anonymizeDate||E?.lastView)||"";return/ ago$/.test(q)?"No activity for "+q.replace(/ ago$/,""):"No activity since "+q.replace(", "+new Date().getFullYear(),"")},e.projectDetailsId=E=>"project-details-"+encodeURIComponent(E._type+":"+(E._id||E._source||"unknown")),e.showProjectDetails=async E=>{e.selectedProject=E,e.projectName=E.projectName||"",e.nameError="",e.nameMessage="",await Ke();let q=document.getElementById(e.projectDetailsId(E));q?.focus(),q?.scrollIntoView?.({block:"nearest"})},e.closeProjectDetails=E=>{e.selectedProject=null,Ke(()=>document.querySelector(`[data-project-actions="${encodeURIComponent(E._type+":"+E._id)}"]`)?.focus())},e.saveProjectName=async E=>{if(e.nameSaving||!E._id)return;let q=e.projectName.trim();if(q.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:E._type,id:E._id,name:q});E.projectName=Y.data.name,E._label=E.projectName||E._fallbackLabel,e.selectedProject===E&&(e.nameMessage=q?"Project name saved.":"Default project name restored."),P||(e.dashboardCursor=null,await F(),e.selectedProject===E&&(e.selectedProject=e.items.find(X=>X._type===E._type&&X._id===E._id)||null))}catch{e.selectedProject===E&&(e.nameError="The project name could not be saved. Try again.")}finally{e.nameSaving=!1}},e.copyingId=null,e.copyLink=async E=>{if(!E._viewUrl||e.copyingId)return;let q=new URL(E._viewUrl,o.location.origin).href;e.copyingId=E._type+":"+E._id;try{await Wl(q),e.addToast({title:"Link copied",body:"The anonymous link is ready to share."})}catch{e.addToast({title:"Copy this anonymous link",body:q})}finally{e.copyingId=null}},e.items=[],e.search="",e.loading=!0,e.statusKeyLabels={ready:"Ready",progress:"Preparing",error:"Error",expired:"Expiring / expired",removed:"Removing / removed"};let p=["queue","download","downloaded","preparing","anonymizing"];function
Line truncated
|
|
|
|
|
`)),e.options=Object.assign({},e.options,B.options),e.options.expirationDate=B.options&&B.options.expirationDate?new Date(B.options.expirationDate):V(),!i.repoId&&!i.pullRequestId&&!i.gistId&&!e.anonymize?.terms?.dirty&&(e.terms=e.defaultTerms),S&&S()})}function oe(S,M,B){e.anonymize&&e.anonymize[S]&&e.anonymize[S].setValidity(M,B)}function ve(S){try{let M=parseGithubUrl(S);if(M&&M.owner&&M.repo)return M.owner+"/"+M.repo}catch{}return null}e.accessRepairAllowed=!1,e.repairingGitHubAccess=!1,e.accessRepairMessage="",e.repairGitHubAccess=async()=>{if(!e.accessRepairAllowed||e.repairingGitHubAccess||!e.githubConnections?.appEnabled||!i.repoId||e.role!=="owner"||e.githubConnection!=="github-app"||ve(e.sourceUrl)!==e._originalFullName)return;e.repairingGitHubAccess=!0,e.accessRepairMessage="";let S=v();try{let M=await t.get("/github/connections");if(e.githubConnections=M.data,!M.data.appEnabled)return;let B=await t.post("/github/connections/migrate",{type:"repository",id:i.repoId,connection:"github-app"},{headers:{"X-CSRF-Token":M.data.csrf}});if(!y(S))return;e.error=null,B.data.fullName&&(e._originalFullName=B.data.fullName,e.source.fullName=B.data.fullName,e.sourceUrl="https://github.com/"+B.data.fullName),e.accessRepairMessage="GitHub access repaired. Your anonymous URL and published commit are unchanged.",await e.urlSelected(!0)}catch{y(S)&&(e.accessRepairMessage="Unable to repair GitHub access. Check the App's repository permissions in Manage access, then retry. Your published snapshot has not been replaced.")}finally{e.repairingGitHubAccess=!1,b(S)}},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.details=null,e.source.commit="",e.source.branch="",e.readme="",e.branches=[],en.cancel(),Dn.cancel(),In.cancel(),e.previewStatus="idle",e.anonymize_readme="",od();try{await O()}catch{}}};function Ne(){return e.reconnectingSource||!e.isUpdate||!e._originalRepositoryID?void 0:ve(e.sourceUrl)===e._originalFullName?e._originalRepositoryID:void 0}async function De(){e._preservingDraft=!0;try{await e.urlSelected(!0)}finally{e._preservingDraft=!1}}async function I(){let S=new URLSearchParams(window.location.search).get("billingDraft");if(S){N.restore();try{let B=(await t.get("/api/billing/draft/"+encodeURIComponent(S))).data;if(B.path!==o.path())throw new Error("Wrong task");k=B.values.conference||null;for(let J of["sourceUrl","terms","repoId","source","options","conference","githubConnection"])Object.prototype.hasOwnProperty.call(B.values,J)&&(e[J]=B.values[J]);return e.options?.expirationDate&&(e.options.expirationDate=new Date(e.options.expirationDate)),P=B.id,D=JSON.stringify(N.checkpoint()),e.draftRestored=!0,e.hostingReview=!0,e.sourceUrl&&await De(),o.replace?.(o.path()),!0}catch{e.billingError="The checkout draft could not be restored. Retry by reloading this page; any local draft is still available."}}let M;try{M=JSON.parse(sessionStorage.getItem("github-access-draft")||"null")}catch{return!1}if(!M||M.path!==o.path()||Date.now()-M.savedAt>=30*6e4)return N.restore()?(e.sourceUrl&&await De(),!0):!1;N.restore();for(let B of["sourceUrl","terms","repoId","pullRequestId","gistId","source","options","conference","githubConnection"])Object.prototype.hasOwnProperty.call(M.draft,B)&&(e[B]=M.draft[B]);return e.options.expirationDate&&(e.options.expirationDate=new Date(e.options.expirationDate)),await De(),sessionStorage.removeItem("github-access-draft"),!0}ge(()=>{!i.repoId&&!i.pullRequestId&&!i.gistId&&u(I,0),i.repoId&&i.repoId!=""&&(e.isUpdate=!0,e.detectedType="repo",e.repoId=i.repoId,t.get("/api/repo/"+e.repoId).then(async S=>{e.accessRepairAllowed=!["removed","archived","preparing","queue","download","removing","expiring"].includes(S.data.status),e.githubConnection=S.data.connection||"oauth",e.sourceUrl="https://github.com/"+S.data.source.fullName,e._originalFullName=S.data.source.fullName,e.terms=S.data.options.terms.filter(M=>M).join(`
|
|
|
|
|
`),e.source=S.data.source,e.role=S.data.role||"owner",e._existingNever=S.data.options.expirationMode==="never",e._savedExpirationDate=S.data.options.expirationDate?new Date(S.data.options.expirationDate):null,e.coauthors=S.data.coauthors||[],e._originalBranch=S.data.source.branch,e.options=Object.assign({},e.options,S.data.options),e.conference=S.data.conference,e._originalConference=S.data.conference,e.repositoryID=S.data.source.repositoryID,e._originalRepositoryID=S.data.source.repositoryID,S.data.options.expirationDate&&(e.options.expirationDate=new Date(S.data.options.expirationDate)),w=C(parseGithubUrl(e.sourceUrl)),!await I()&&(await Promise.all([O(),ie().then(An)]),An())},()=>{o.url("/404")})),i.pullRequestId&&i.pullRequestId!=""&&(e.isUpdate=!0,e.detectedType="pr",e.pullRequestId=i.pullRequestId,t.get("/api/pr/"+e.pullRequestId).then(async S=>{if(e.githubConnection=S.data.connection||"oauth",e.sourceUrl="https://github.com/"+S.data.source.repositoryFullName+"/pull/"+S.data.source.pullRequestId,e.terms=S.data.options.terms.filter(M=>M).join(`
|
|
|
|
|
`),e.source=S.data.source,e.options=Object.assign({},e.options,S.data.options),e.conference=S.data.conference,e._originalConference=S.data.conference,S.data.options.expirationDate&&(e.options.expirationDate=new Date(S.data.options.expirationDate)),w=C(parseGithubUrl(e.sourceUrl)),!await I())try{await ad()}catch{}},()=>{o.url("/404")})),i.gistId&&i.gistId!=""&&(e.isUpdate=!0,e.detectedType="gist",e.gistId=i.gistId,t.get("/api/gist/"+e.gistId).then(async S=>{e.sourceUrl="https://gist.github.com/"+S.data.source.gistId,e.terms=S.data.options.terms.filter(M=>M).join(`
|
|
|
|
|
`),e.source=S.data.source,e.options=Object.assign({},e.options,S.data.options),e.conference=S.data.conference,e._originalConference=S.data.conference,S.data.options.expirationDate&&(e.options.expirationDate=new Date(S.data.options.expirationDate)),w=C(parseGithubUrl(e.sourceUrl)),!await I()&&await ld()},()=>{o.url("/404")}))}),t.get("/github/connections").then(S=>{e.githubConnections=S.data,!i.repoId&&!i.pullRequestId&&!i.gistId&&e.githubConnection===void 0&&S.data.appEnabled&&S.data.appConnected&&(e.githubConnection="github-app",e.sourceUrl&&e.workspaceOpen&&De())}).catch(()=>{}).finally(()=>{!h&&!i.repoId&&!i.pullRequestId&&!i.gistId&&e.userReposStatus==="idle"&&e.loadUserRepos()}),e.urlSelected=async(S=!1)=>{let M=++d;e.previousConfigurations=[],e.previousConfigurationId="";let B;try{B=parseGithubUrl(e.sourceUrl.trim())}catch{e.sourceLoading=!1,e.details=null,it(),en.cancel(),Dn.cancel(),In.cancel(),e.previewStatus="idle",e.sourceUrlError=e.sourceUrl?"Please provide a valid GitHub URL.":"",oe("sourceUrl","github",!1);return}let J=C(B),pe=S||w===J;w=J,e.sourceUrlError="",oe("sourceUrl","github",!0),it();let Ce=document.activeElement?.id==="sourceUrl-landing";e.workspaceOpen=!0,setTimeout(()=>{let Ze=window.document.getElementById("sourceUrl");if(Ze){try{Ze.setSelectionRange(0,0)}catch{}Ze.scrollLeft=0}},50),Ce&&u(()=>document.getElementById("sourceUrl")?.focus(),0),e.reconnectingSource=!1,e.reconnectRepositoryId=void 0,!pe&&!e.isUpdate&&(e.repoId="",e.pullRequestId="",e.gistId=""),e.details=null,e.branches=[],pe||(e.source={type:"GitHubStream",branch:"",commit:""}),en.cancel(),Dn.cancel(),In.cancel(),Ms.clear(),Vs.clear(),e.previewStatus="idle",e.anonymize_readme="",e.readme="",od(),e.detectedType=null,e.gistOAuthRequired=!1,e.gistAppRequired=!1,e._preservingDraft=pe;try{B.gistId&&!B.repo?(e.detectedType="gist",e.source={gistId:B.gistId},await ld()):B.pullRequestId?(e.detectedType="pr",e.source={repositoryFullName:B.owner+"/"+B.repo,pullRequestId:B.pullRequestId},await ad()):(e.detectedType="repo",et(),await Promise.all([O(),ie().then(An)]),An())}catch{}finally{M===d&&(e._preservingDraft=!1)}$('[data-toggle="tooltip"]').tooltip()},$('[data-toggle="tooltip"]').tooltip(),e.watch("source.branch",async()=>{if(e.detectedType!=="repo")return;let S=e.branches.filter(B=>B.name==e.source.branch)[0];if(!S)return;!(!e.reconnectingSource&&e.isUpdate&&e._originalBranch===e.source.branch&&e.source.commit)&&!(e._preservingDraft&&e.source.commit)&&(e.source.commit=S.commit),Q(S),await ie(),An()}),e.getBranches=async S=>{let M=parseGithubUrl(e.sourceUrl),B=v();try{if(!e.details){await O(S);return}let J=await t.get(`/api/repo/${M.owner}/${M.repo}/branches`,{params:{reconnect:e.reconnectingSource?"1":void 0,anonymizedRepoId:e.isUpdate&&i.repoId&&ve(e.sourceUrl)===e._originalFullName?i.repoId:void 0,connection:e.githubConnection,force:S===!0||e.reconnectingSource?"1":"0",repositoryID:Ne()}});if(!y(B))return;e.branches=J.data,e.sourceUnreachable=!1,e.source.branch||(e.source.branch=e.details.defaultBranch);let pe=e.branches.filter(Ce=>Ce.name==e.source.branch);pe.length>0&&(!(!e.reconnectingSource&&!S&&e.isUpdate&&!e.options.update&&e._originalBranch===e.source.branch&&e.source.commit)&&!(e._preservingDraft&&e.source.commit)&&(e.source.commit=pe[0].commit),Q(pe[0]),await ie(S))}catch(J){if(!y(B))return;e.branches=[],e.sourceUnreachable=J&&(J.status===404||J.data&&J.data.error==="repo_not_found"),e.details=null,He(J)}finally{b(B)}};async function O(S=!1){let M=parseGithubUrl(e.sourceUrl),B=v();try{Ls(),it();let J=await t.get(`/api/repo/${M.owner}/${M.repo}/`,{params:{reconnect:e.reconnectingSource?"1":void 0,anonymizedRepoId:e.isUpdate&&i.repoId&&ve(e.sourceUrl)===e._originalFullName?i.repoId:void 0,connection:e.githubConnection,repositoryID:Ne(),force:"1"}});if(!y(B))return;e.details=J.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(S||e.reconnectingSource)}catch(J){if(!y(B))return;throw He(J),J}finally{b(B)}}let H=null,ne=S=>H!==null&&(H===S||H===""&&!!S&&S===e.details?.defaultBranch);function Q(S){e.readme&&ne(S.name)||(e.readme=S.readme,H=S.readme?S.name:null)}async function ie(S){if(e.readme&&!S)return e.readme;let M=parseGithubUrl(e.sourceUrl),B=v(),J=()=>y(B)&&(B.branch===e.source.branch||!B.branch&&e.source.branch===e.details?.defaultBranch);try{let pe=await t.get(`/api/repo/${M.owner}/${M.repo}/readme`,{params:{reconnect:e.reconnectingSource?"1":void 0,anonymizedRepoId:e.isUpdate&&i.repoId&&ve(e.sourceUrl)===e._originalFullName?i.repoId:void 0,connection:e.githubConnection,force:S===!0?"1":"0",branch:B.branch,repositoryID:Ne()}});J()&&(e.readme=pe.data,H=B.branch)}catch{J()&&(e.readme="",H=null)}finally{b(B)}}let ue={magicalBraces:!0},le=S=>S.startsWith("/")&&!S.endsWith("/")&&ss(As(S.slice(1),ue),ue)===S.slice(1),ae=()=>Object.keys(e.preserve.picked).filter(
Line truncated
|
|
|
|
|
`).map(S=>S.trim()).filter(Boolean),Ee=null,Ie=null,Ue=new Set,Je=0,Qe=null,Te=()=>!1;function Be(){let S=Je+"\0"+e.preserve.patterns;if(S!==Qe){Qe=S;try{Te=jl(Hl([...ae(),...fe()]))}catch{Te=()=>!1}}return Te}function W(S){let M=new Map([["",{dirs:[],files:[]}]]);for(let B of S){let J=B.split("/"),pe="";for(let Ce=0;Ce<J.length-1;Ce++){let Ze=J.slice(0,Ce+1).join("/");M.has(Ze)||(M.set(Ze,{dirs:[],files:[]}),M.get(pe).dirs.push(Ze)),pe=Ze}M.get(pe).files.push(B)}for(let B of M.values())B.dirs.sort();return{files:S,dirs:M,descendants:new Map}}function x(S){return Ee.descendants.has(S)||Ee.descendants.set(S,Ee.files.filter(M=>M.startsWith(S+"/"))),Ee.descendants.get(S)}let me=S=>Be()(S);function Re(S){let M=x(S),B=0;for(let J of M)me(J)&&B++;return B===0?"none":B===M.length?"all":"some"}e.preserve={open:!1,loading:!1,error:"",truncated:!1,commit:"",search:"",expanded:{},picked:{},patterns:"",patternsOpen:!1},e.preserveSummary=()=>{let S=(e.options?.preserveFiles||[]).map(M=>String(M).trim()).filter(Boolean).map(M=>le(M)?As(M.slice(1),ue):M);return S.length?S.slice(0,2).join(", ")+(S.length>2?` and ${S.length-2} more`:""):"None. Every file is redacted."};async function ye(){let S=e.source?.commit;if(!(Ee&&e.preserve.commit===S)){e.preserve.loading=!0,e.preserve.error="",Ee=null,Ie=null;try{let M=parseGithubUrl(e.sourceUrl),B=await t.get(`/api/repo/${M.owner}/${M.repo}/tree`,{params:{commit:S,connection:e.githubConnection,anonymizedRepoId:e.isUpdate&&i.repoId&&ve(e.sourceUrl)===e._originalFullName?i.repoId:void 0,repositoryID:Ne()}});if(e.source?.commit!==S)return;let J=Array.isArray(B.data.binaryFiles)?B.data.binaryFiles:[];Ee=kn(W(B.data.files||[])),Ie=J.length?kn(W([...B.data.files||[],...J])):Ee,Ue=kn(new Set(J)),e.preserve.commit=S,e.preserve.truncated=!!B.data.truncated,e.previewFile||en()}catch{e.preserve.error="The file list could not be loaded from GitHub. You can still use patterns.",e.preserve.patternsOpen=!0}finally{e.preserve.loading=!1}}}e.watch("source.commit",S=>{e.previewFile&&e.openPreviewFile(""),e.detectedType==="repo"&&S&&e.sourceUrl&&ye().catch(()=>{})}),e.openPreserveFiles=()=>{let S={},M=[];for(let J of e.options?.preserveFiles||[]){let pe=String(J).trim();pe&&(!M.length&&le(pe)?S[As(pe.slice(1),ue)]=!0:M.push(pe))}let B={};for(let J of Object.keys(S)){let pe=J.split("/");for(let Ce=1;Ce<pe.length;Ce++)B[pe.slice(0,Ce).join("/")]=!0}Object.assign(e.preserve,{open:!0,search:"",picked:S,expanded:B,patterns:M.join(`
|
|
|
|
|
`),patternsOpen:M.length>0}),e.mobileWorkspace&&(e.mobilePane="settings"),Je++,u(()=>{let J=document.getElementById("preserve-files-dialog");J?.showModal&&!J.open&&J.showModal(),document.getElementById("preserve-files-search")?.focus()},0),ye()},e.closePreserveFiles=()=>{document.getElementById("preserve-files-dialog")?.close?.(),e.preserve.open=!1},e.savePreserveFiles=()=>{e.options.preserveFiles=Hl([...ae(),...fe()]),e.closePreserveFiles()},e.preserveRows=()=>{if(!Ee)return[];let S=Be(),M=(Ce,Ze,Gt)=>{let mt=!!e.preserve.picked[Ce],wt=S(Ce);return{kind:"file",path:Ce,label:Gt,depth:Ze,state:wt?"all":"none",locked:!mt&&wt,note:!mt&&wt?"matched by a pattern":mt&&!wt?"excluded by a pattern":""}},B=String(e.preserve.search||"").trim().toLowerCase();if(B)return Ee.files.filter(Ce=>Ce.toLowerCase().includes(B)).slice(0,300).map(Ce=>M(Ce,0,Ce));let J=[],pe=(Ce,Ze)=>{let Gt=Ee.dirs.get(Ce);for(let mt of Gt.dirs){let wt=!!e.preserve.expanded[mt],Bt=fe().includes(re(mt));J.push({kind:"dir",path:mt,label:mt.slice(Ce?Ce.length+1:0)+"/",depth:Ze,open:wt,state:Re(mt),locked:!1,note:Bt?"whole folder":""}),wt&&pe(mt,Ze+1)}for(let mt of Gt.files)J.push(M(mt,Ze,mt.slice(Ce?Ce.length+1:0)))};return pe("",0),J},e.preserveCount=()=>Ee?Ee.files.filter(me).length:0,e.togglePreserveDir=S=>{e.preserve.expanded[S]=!e.preserve.expanded[S]},e.togglePreserveFile=S=>{e.preserve.picked[S]=!e.preserve.picked[S],Je++},e.togglePreserveFolder=S=>{let M=re(S),B=Pe(S),J=fe().filter(Ce=>Ce!==M&&Ce!==B),pe=Re(S)==="all"||fe().includes(M);for(let Ce of x(S))e.preserve.picked[Ce]=!1;Je++,e.preserve.patterns=(pe?J:[...J,M]).join(`
|
|
|
|
|
`),pe&&x(S).some(me)&&(e.preserve.patterns=[...J,B].join(`
|
|
|
|
|
`))};let qe=/^readme(\.[^/]*)?$/i,pt=[".md",".markdown",".mdown",".mkdn",".rst",".txt",""],Ft=["README.md","README","README.markdown","README.rst","README.txt","readme.md"],Ut=S=>{let M=Oe(S),B=M.indexOf("."),J=pt.indexOf(B===-1?"":M.slice(B).toLowerCase());return J===-1?pt.length:J},xt=()=>!!Ee&&!!e.preserve.commit&&e.preserve.commit===e.source?.commit;e.readmePath=()=>{if(!xt())return"";for(let S of[".github","","docs"]){let M=(Ee.dirs.get(S)?.files||[]).filter(B=>qe.test(Oe(B)));if(M.length)return M.sort((B,J)=>Ut(B)-Ut(J)||gt(B,J))[0]}return""},e.readmeName=()=>Oe(e.readmePath())||"README.md";let Pn={key:null,fn:()=>!1},sd=()=>{let S=(e.options?.preserveFiles||[]).map(B=>String(B).trim()).filter(Boolean),M=S.join(`
|
|
|
|
|
`);if(M!==Pn.key){let B=()=>!1;try{S.length&&(B=jl(S))}catch{}Pn={key:M,fn:B}}return Pn.fn};e.pathPreserved=S=>!!S&&sd()(S),e.readmePreserved=()=>{if(e.detectedType!=="repo")return!1;let S=sd();if(xt()){let M=e.readmePath();return!!M&&S(M)}return Ft.some(M=>S(M))},e.previewPreserved=()=>e.detectedType==="repo"&&(e.previewFile?e.pathPreserved(e.previewFile):e.readmePreserved());function go(){let S={terms:e.terms?e.terms.split(`
|
|
|
|
|
`):[],filePath:e.previewOpenPath()||"README.md",preserveFiles:e.options.preserveFiles||[],image:!!e.options.image,link:!!e.options.link,repoId:e.repoId},M=e.source?.branch||e.details?.defaultBranch;M&&(S.branchName=M);try{let B=parseGithubUrl(e.sourceUrl);S.repoName=`${B.owner}/${B.repo}`}catch{}return S}function na(S,M,B){let J=null,pe=0,Ce=null,Ze=()=>{if(e.detectedType!==S)return;J&&u.cancel(J);let Gt=++pe;e.previewStatus="loading",J=u(()=>{J=null;let mt=M();if(!mt){e.previewStatus="idle";return}if(mt.wait){e.previewStatus=e.sourceLoading?"loading":"idle";return}let wt=JSON.stringify(mt);if(wt===Ce){e.previewStatus="ready";return}Ce=null,t.post("/api/anonymize-preview",mt).then(Bt=>{Gt===pe&&(B(Bt.data,mt),Ce=wt,e.previewStatus="ready")}).catch(()=>{Gt===pe&&(e.previewStatus="error")})},200)};return Ze.cancel=()=>{pe++,Ce=null,J&&u.cancel(J),J=null},e.on("dispose",Ze.cancel),Ze}e.retryPreview=()=>{e.detectedType==="repo"&&(e.previewFile&&typeof hn!="string"?id(e.previewFile):en()),e.detectedType==="pr"&&Dn(),e.detectedType==="gist"&&In()};let at=kn(ti(e));Object.defineProperty(e,"previewViewer",{get:()=>at}),yl(at,e),Object.assign(at,{options:{},files:[],paths:[],content:null,type:"loading",sidebarHidden:!1,sidebarCollapsed:!0,moreOpen:!1,tocOpen:!1,gotoOpen:!1,mdFindOpen:!1,mdFindQuery:"",mdFindTotal:0,mdFindIndex:0}),at.preview=!0,at.fileSize=S=>S===at.filePath&&typeof hn=="string"?new Blob([hn]).size:!e.previewFile&&e.readme?new Blob([e.readme]).size:null,at.openPreserveFiles=()=>e.openPreserveFiles(),at.previewPreserved=()=>e.previewPreserved(),at.retryContent=()=>e.retryPreview();let $m=S=>Ue.has(S)||/\.(pdf|png|jpe?g|gif|svg|ico|bmp|tiff?|webp|avif|heic|heif|mp4|webm|mp3|wav|zip|bin)$/i.test(S),sa=(S="")=>({path:S,loading:!1,note:"",loadError:""});e.previewFile="",e.previewDoc=sa();let vo=0,hn=null;e.previewOpenPath=()=>e.previewFile||e.readmePath(),e.openPreviewFile=S=>{if(S=S||"",S&&S===e.readmePath()&&(S=""),vo++,hn=null,Ni(),en.cancel(),e.previewFile=S,e.previewDoc=sa(S),at.sidebarCollapsed=!0,at.content=null,!S){e.readme?en():e.previewStatus="idle";return}if($m(S)){oa("binary"),e.previewStatus="ready";return}id(S)};function od(){vo++,hn=null,e.previewFile="",e.previewDoc=sa(),at.sidebarCollapsed=!0,at.content=null}function id(S){let M=++vo;hn=null,Object.assign(e.previewDoc,{loading:!0,loadError:""}),e.previewStatus="loading";let B;try{B=parseGithubUrl(e.sourceUrl)}catch{B=null}if(!B||!e.source?.commit){Object.assign(e.previewDoc,{loading:!1,loadError:"The repository is still loading. Try again in a moment."}),e.previewStatus="error";return}t.get(`/api/repo/${B.owner}/${B.repo}/file`,{params:{commit:e.source.commit,path:S,connection:e.githubConnection,anonymizedRepoId:e.isUpdate&&i.repoId&&ve(e.sourceUrl)===e._originalFullName?i.repoId:void 0,repositoryID:Ne()},transformResponse:J=>J}).then(J=>{if(M!==vo)return;e.previewDoc.loading=!1;let pe=typeof J.headers=="function"&&J.headers("content-type")||"";if(/json/i.test(pe)){let Ce=null;try{Ce=JSON.parse(J.data)}catch{}if(Ce&&Ce.binary===!0){oa("binary"),e.previewStatus="ready";return}}hn=typeof J.data=="string"?J.data:"",en()},J=>{if(M!==vo)return;e.previewDoc.loading=!1;let pe=Jr(J);if(pe==="file_too_big"){oa("too_big"),e.previewStatus="ready";return}e.previewDoc.loadError=ls.ERRORS[pe]||"GitHub did not return this file.",e.previewStatus="error"})}let Ei;function Ni(){Ei&&window.URL.revokeObjectURL(Ei),Ei=void 0,at.url=void 0}e.on("dispose",Ni);function oa(S){Ni(),e.previewDoc.note=S,at.prepareFile(e.previewPathName(e.previewOpenPath()||e.readmeName())),at.type=S==="too_big"?"error":"binary",at.content=S==="too_big"?"file_too_big":"binary"}function Fm(S){try{let M=parseGithubUrl(e.sourceUrl),B=e.source.branch||e.details&&e.details.defaultBranch||"main",J=S&&S.includes("/")?S.slice(0,S.lastIndexOf("/")+1):"";return`https://github.com/${M.owner}/${M.repo}/raw/${B}/${J}`}catch{return""}}let rd=na("repo",()=>{if(e.previewFile)return typeof hn!="string"?null:{content:hn,options:go()};if(!e.readme)return null;let S=go();return!S.branchName||!S.repoId?{wait:!0}:{content:e.readme,options:S}},S=>{if(typeof S?.content!="string")throw Error("Invalid preview response");Ni(),window.URL?.createObjectURL&&(at.url=Ei=window.URL.createObjectURL(new Blob([S.content],{type:"text/plain"})));let M=e.previewOpenPath()||e.readmeName();at.prepareFile(e.previewPathName(M)),at.fileBaseUrl=Fm(M),at.renderFileContent(S.content,at.type,at.fileBaseUrl,"text/plain"),e.previewFile||(e.anonymize_readme=S.content)}),en=()=>{e.previewFile&&typeof hn!="string"||rd()};en.cancel=rd.cancel;let Os=ut(new Map),ia=new Set,ra=new Set,yo="",bo=null,Ri=()=>String(e.terms||"").split(`
|
|
|
|
|
`).filter(S=>S.trim());function Um(){bo=null;let S=Ri(),M=S.join(`
|
|
|
|
|
`);M!==yo&&(Os.clear(),ra.clear(),yo=M);let B=[...ia].filter(J=>!Os.has(J));if(ia.clear(),!(!B.length||!S.length))for(let J=0;J<B.length;J+=400){let pe=B.slice(J,J+400);t.post("/api/anonymize-preview",{contents:pe,options:{terms:S,image:!0,link:!0}}).then(Ce=>{if(yo!==M||Ri().join(`
|
|
|
|
|
`)!==M)return;let Ze=Ce.data?.contents;if(!Array.isArray(Ze)||Ze.length!==pe.length)throw Error("Invalid preview response");pe.forEach((Gt,mt)=>Os.set(Gt,typeof Ze[mt]=="string"?Ze[mt]:Gt))}).catch(()=>{yo===M&&pe.forEach(Ce=>ra.add(Ce))})}}e.previewName=S=>{if(!S||!Ri().length)return S;if(yo===Ri().join(`
|
|
|
|
|
`)){if(Os.has(S))return Os.get(S);if(ra.has(S))return S}return ia.add(S),bo||(bo=u(Um,120)),S},e.previewPathName=S=>{S=String(S||"");let M=S.lastIndexOf("/");return M<0?e.previewName(S):e.previewName(S.slice(0,M))+"/"+e.previewName(S.slice(M+1))},e.watch(()=>[e.repoId,e.previewPathName(e.previewOpenPath()||e.readmeName()),e.previewTreeFiles()],()=>{at.repoId=e.repoId||"repository",at.filePath=e.previewPathName(e.previewOpenPath()||e.readmeName()),at.paths=at.filePath.split("/"),at.files=e.previewTreeFiles(),at.loadedFolders=Object.fromEntries([...Ie?.dirs.keys()||[]].map(S=>[e.previewName(S),!0]))},!0),e.on("dispose",()=>{bo&&u.cancel(bo)});function An(){if(!e.anonymize||!e.anonymize.terms)return;let S=go();!S.branchName||!S.repoId||en()}async function ad(){let S=parseGithubUrl(e.sourceUrl),M=v();try{Ls(),it();let B=await t.get(`/api/pr/${S.owner}/${S.repo}/${S.pullRequestId}`,{params:{connection:e.githubConnection}});if(!y(M))return;e.details=B.data,e.pullRequestId||(e.pullRequestId=S.repo+"-PR"+S.pullRequestId+"-"+generateRandomId(4))}catch(B){if(!y(M))return;throw He(B),B}finally{b(M)}}let Ms=ut(new Map);function Bm(){let S=new Set,M=e.details&&e.details.pullRequest;if(!M)return S;typeof M.title=="string"&&S.add(M.title),typeof M.body=="string"&&S.add(M.body),typeof M.diff=="string"&&S.add(M.diff);let B=M.comments||[];for(let J of B)typeof J.author=="string"&&S.add(J.author),typeof J.body=="string"&&S.add(J.body);return S}let Dn=na("pr",()=>{let S=Bm(),M=Array.from(S);return M.length===0?null:{contents:M,options:go()}},(S,M)=>{if(!Array.isArray(S?.contents)||S.contents.length!==M.contents.length||S.contents.some(pe=>typeof pe!="string"))throw Error("Invalid preview response");let B=M.contents,J=new Map;for(let pe=0;pe<B.length&&pe<S.contents.length;pe++)J.set(B[pe],S.contents[pe]);Ms.clear(),J.forEach((pe,Ce)=>Ms.set(Ce,pe))});e.anonymizePrContent=function(S){return S&&(Ms.has(S)?Ms.get(S):"")};async function ld(){let S=parseGithubUrl(e.sourceUrl),M=v();try{Ls(),it(),e.gistOAuthRequired=!1,e.gistAppRequired=!1;let B=await t.get(`/api/gist/source/${S.gistId}`);if(!y(M))return;e.details=B.data,e.gistId||(e.gistId="gist-"+S.gistId.substring(0,6)+"-"+generateRandomId(4))}catch(B){if(!y(M))return;if(B.data?.error==="github_app_reconnect_required"){e.gistAppRequired=!0,oe("sourceUrl","missing",!1);return}if(B.data?.error==="github_oauth_required"){e.gistOAuthRequired=!0,oe("sourceUrl","missing",!1);return}throw He(B),B}finally{b(M)}}let Vs=ut(new Map);function _m(){let S=new Set,M=e.details&&e.details.gist;if(!M)return S;typeof M.description=="string"&&S.add(M.description),typeof M.ownerLogin=="string"&&S.add(M.ownerLogin);let B=M.files||[];for(let pe of B)typeof pe.filename=="string"&&S.add(pe.filename),typeof pe.content=="string"&&S.add(pe.content);let J=M.comments||[];for(let pe of J)typeof pe.author=="string"&&S.add(pe.author),typeof pe.body=="string"&&S.add(pe.body);return S}let In=na("gist",()=>{let S=_m(),M=Array.from(S);return M.length===0?null:{contents:M,options:go()}},(S,M)=>{if(!Array.isArray(S?.contents)||S.contents.length!==M.contents.length||S.contents.some(pe=>typeof pe!="string"))throw Error("Invalid preview response");let B=M.contents,J=new Map;for(let pe=0;pe<B.length&&pe<S.contents.length;pe++)J.set(B[pe],S.contents[pe]);Vs.clear(),J.forEach((pe,Ce)=>Vs.set(Ce,pe)),aa()});e.anonymizeGistContent=function(S){return S&&(Vs.has(S)?Vs.get(S):"")},e.previewGistFiles=[];function aa(){let S=e.details&&e.details.gist&&e.details.gist.files||[];e.previewGistFiles=S.map(M=>({filename:e.anonymizeGistContent(M.filename),content:e.anonymizeGistContent(M.content),language:M.language}))}e.watch("details.gist.files",aa,!0),e.watch("terms",aa);function zm(){let S=e.conference;if(e.conference_data=null,!S)return;let M=S===k||e.isUpdate&&S===e._originalConference;S!==k&&(k=null),t.get("/api/conferences/"+S).then(B=>{e.conference===S&&(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),!M&&(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===S&&(e.conference_data=null)})}function Ls(){oe("repoId","used",!0),oe("repoId","format",!0),oe("pullRequestId","used",!0),oe("pullRequestId","format",!0),oe("gistId","used",!0),oe("gistId","format",!0),oe("sourceUrl","used",!0),oe("sourceUrl","missing",!0),oe("sourceUrl","access",!0),oe("sourceUrl","github",!0),oe("commit","exists",!0),oe("conference","activated",!0),oe("terms","format",!0),e.termHints=[]}function Ti(){if(e.detectedType==="repo"&&e.options.expirationMode==="never")return!1;let S=e.anonymize&&e.anonymize.expirationDate;return!e.options.expirationDate||S&&S
Line truncated
|
|
|
|
|
`).filter(Ce=>Ce),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&&(J.options.pageSource=e.details.pageSource),Ls();let pe=e.isUpdate?"/api/repo/"+e.repoId:"/api/repo/";t.post(pe,J,{headers:{"Content-Type":"application/json"}}).then(()=>{N.clear(),window.location.href="/status/"+e.repoId},Ce=>{if(Ce.data){let Ze=["quota_exceeded","quota_repository_limit","quota_storage_limit","subscription_required_for_never_expiration"].includes(Ce.data.error);Ze||r("ERRORS."+Ce.data.error).then(Gt=>{e.error=Gt},console.error),Pi(Ce.data.error),Ze&&(Ce.data.error==="subscription_required_for_never_expiration"&&(e._existingNever=!1),e.hostingQuotaBlocked=!0,e.hostingReview=!0,Ke(()=>document.getElementById("repository-hosting")?.scrollIntoView({block:"center"})))}}).finally(()=>{M.disabled=!1})},e.anonymizeGist=S=>{if(e.sourceLoading){e.error="Wait for the source to finish loading before saving.";return}if(Ti())return;if(e.anonymize?.invalid||e.sourceUrlError){e.error="Please correct the highlighted fields before saving.";return}let M=S.currentTarget||S.target.closest?.("button")||S.target;M.disabled=!0;let B=parseGithubUrl(e.sourceUrl),J={gistId:e.gistId,terms:e.terms.trim().split(`
|
|
|
|
|
`).filter(Ce=>Ce),source:{gistId:B.gistId},options:e.options,conference:e.conference};Ls();let pe=e.isUpdate?"/api/gist/"+e.gistId:"/api/gist/";t.post(pe,J,{headers:{"Content-Type":"application/json"}}).then(()=>{N.clear(),window.location.href="/gist/"+e.gistId},Ce=>{Ce.data&&(r("ERRORS."+Ce.data.error).then(Ze=>{e.error=Ze},console.error),Pi(Ce.data.error))}).finally(()=>{M.disabled=!1})},e.anonymizePullRequest=S=>{if(e.sourceLoading){e.error="Wait for the source to finish loading before saving.";return}if(Ti())return;if(e.anonymize?.invalid||e.sourceUrlError){e.error="Please correct the highlighted fields before saving.";return}let M=S.currentTarget||S.target.closest?.("button")||S.target;M.disabled=!0;let B=parseGithubUrl(e.sourceUrl),J={pullRequestId:e.pullRequestId,connection:e.githubConnection,terms:e.terms.trim().split(`
|
|
|
|
|
`).filter(Ce=>Ce),source:{repositoryFullName:`${B.owner}/${B.repo}`,pullRequestId:B.pullRequestId},options:e.options,conference:e.conference};Ls();let pe=e.isUpdate?"/api/pr/"+e.pullRequestId:"/api/pr/";t.post(pe,J,{headers:{"Content-Type":"application/json"}}).then(()=>{N.clear(),window.location.href="/pr/"+e.pullRequestId},Ce=>{Ce.data&&(r("ERRORS."+Ce.data.error).then(Ze=>{e.error=Ze},console.error),Pi(Ce.data.error))}).finally(()=>{M.disabled=!1})},e.watch("conference",()=>{zm()}),e.termHints=[],e.matchTermAsWritten=S=>{e.terms=ef(e.terms,S)},e.watch("options.preserveFiles",()=>{e.detectedType==="repo"&&en()}),e.watch("terms",()=>{e.termHints=xp(e.terms),e.detectedType==="repo"&&An(),e.detectedType==="pr"&&Dn(),e.detectedType==="gist"&&In()}),e.watch("options.image",()=>{e.detectedType==="repo"&&An(),e.detectedType==="pr"&&Dn(),e.detectedType==="gist"&&In()}),e.watch("options.link",()=>{e.detectedType==="repo"&&An(),e.detectedType==="pr"&&Dn(),e.detectedType==="gist"&&In()}),e.watch("details",()=>{e.detectedType==="repo"&&An(),e.detectedType==="pr"&&Dn(),e.detectedType==="gist"&&In()},!0)},Kl=function(e,t,s,i,o,r){yl(e);let u=Et();Zr();let p=qt(),d=0,h=null,m=null;e.fileLoadingSlow=!1,e.fileReceivedBytes=0;function y(){h&&(h.resolve(),h=null),m&&(u.timeout.cancel(m),m=null)}let v=!1;e.on("dispose",()=>{v=!0,d++,y(),b&&b.resolve()}),e.files=[],e.isMac=/Mac|iPhone|iPad|iPod/.test(navigator.platform||navigator.userAgent),e.fileSearchQuery="",e.fileSearchResults=null,e.fileSearchLoading=!1,p(document,"click",G=>{e.symbolsOpen&&!G.target.closest?.(".symbols")&&(e.symbolsOpen=!1),e.moreOpen&&!G.target.closest?.(".tb-more")&&(e.moreOpen=!1),e.tocOpen&&!G.target.closest?.(".tb-toc-m")&&(e.tocOpen=!1),e.gotoOpen&&G.target.isConnected&&!G.target.closest?.(".goto-pop, .btn-goto, .tb-more")&&(e.gotoOpen=!1),e.accountOpen&&!G.target.closest?.(".acct")&&(e.accountOpen=!1),e.helpOpen&&!G.target.closest?.(".vb-help")&&(e.helpOpen=!1)}),p(document,"keydown",G=>{G.key==="Escape"&&(e.symbolsOpen=!1,e.moreOpen=!1,e.tocOpen=!1,e.gotoOpen=!1,e.accountOpen=!1,e.helpOpen=!1),(G.ctrlKey||G.metaKey)&&!G.altKey&&G.key&&G.key.toLowerCase()==="f"&&e.type==="html"&&window.document.querySelector(".reading-layout")&&(G.preventDefault(),e.toggleMdFind(!0))}),p(document,"keydown",function(G){if((G.metaKey||G.ctrlKey)&&G.key==="k"){G.preventDefault();var L=document.querySelector(".tree-search-input");L&&(L.focus(),L.select())}});var b=null;e.onFileSearchChange=function(){b&&(b.resolve(),b=null);let G=e.fileSearchQuery;if(!G||G.length<2){e.fileSearchResults=null,e.fileSearchLoading=!1;return}e.fileSearchLoading=!0;let L=r.defer();b=L,t.get(`/api/repo/${e.repoId}/files/search?q=${encodeURIComponent(G)}`,{timeout:L.promise}).then(function(E){if(!(v||b!==L)){b=null,e.fileSearchLoading=!1;var q={};e.files.forEach(function(Oe){q[(Oe.path||"")+"/"+Oe.name]=!0});for(var Y=[],X={},j=0;j<E.data.length;j++){var se=E.data[j];if(se.path)for(var te=se.path.split("/"),he="",Se=0;Se<te.length;Se++){var _e=he;he=he?he+"/"+te[Se]:te[Se];var et=_e+"/"+te[Se];!q[et]&&!X[et]&&(X[et]=!0,Y.push({name:te[Se],path:_e}))}}Y.sort(function(Oe,Z){return(Oe.path||"").split("/").length-(Z.path||"").split("/").length}),Y.length>0&&e.files.push.apply(e.files,Y);for(var ze=[],He=0;He<E.data.length;He++){var it=E.data[He],gt=(it.path||"")+"/"+it.name;!q[gt]&&it.size!=null&&(ze.push(it),q[gt]=!0)}ze.length>0&&e.files.push.apply(e.files,ze),e.fileSearchResults=E.data}},function(){!v&&b===L&&(b=null,e.fileSearchLoading=!1,e.fileSearchResults=[])})},e.on("routeUpdate",function(G,L){if(e.repoId!=i.repoId)return U();if((i.path||"")!=e.filePath){window.matchMedia?.("(max-width: 767px)").matches&&(e.sidebarCollapsed=!0),e.filePath=i.path||"",e.paths=e.filePath.split("/").filter(E=>E&&E.trim().length>0),V();for(let E=0;E<e.paths.length-1;E++){let q=E>0?e.paths.slice(0,E).join("/"):"";e.files.some(X=>X.path===q)||e.getFiles(q)}}});function w(){if(e.paths[0]!="")return;let G=["readme.md","readme.txt","readme.org","readme.1st","readme"],L={};for(let q of e.files)q.name.toLowerCase().indexOf("readme")>-1&&(L[q.name.toLowerCase()]=q.name);let E=null;for(let q of G)if(L[q]){E=q;break}if(!E&&Object.keys(L).length>0&&(E=Object.keys(L)[0]),E){let q=s.url();q[q.length-1]!="/"&&(q+="/"),s.url(q+encodePathForUrl(L[E]))}}e.fileCounts=null;let C=0,N=new Set,k=!1;e.getFiles=function(G,L=!1){let E=e.repoId,q=C;return t.get(`/api/repo/${e.repoId}/files/?path=${encodeURIComponent(G)}&v=${e.options.lastUpdateDate}`).then(function(Y){if(v||E!==e.repoId||q!==C)return[];let X=G||"";return e.files=e.files.filter(j=>j.path!==X),e.files.push(...Y.data),e.loadedFolders={...e.loadedFolders,[X]:!0},P(X,q),Y.data},function(Y){if(v||E!==e.repoId||q!==C)return[];L||(e.type="error",e.content=Jr(Y),e.files=[])})};function P(G,L){if(k||N.has(G))return;N.add(G);let E=e.repoId;t.get(`/api/repo/${e.repoId}/files/counts?path=${encodeURIComponent(G)}`).then(function(q){v||E!==e.repoId||L!==C||(e.fileCounts={...e.fileC
Line truncated
|
|
|
|
|
Contact: jane.smith@mit.edu`,e.demoTerms="Jane Smith, Smith, MIT CSAIL, jane.smith@mit.edu",e.demoParts=function(){let p=(e.demoTerms||"").split(/[,\n]/).map(y=>y.trim()).filter(Boolean).sort((y,C)=>C.length-y.length),d=y=>y.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");if(!p.length)return[{text:e.demoText}];let g=new RegExp("("+p.map(d).join("|")+")","gi"),m={},v=0;return(e.demoText||"").split(g).filter(y=>y!=="").map(y=>{let C=p.find(k=>k.toLowerCase()===y.toLowerCase());return C?(m[C.toLowerCase()]||(m[C.toLowerCase()]=++v),{text:String(m[C.toLowerCase()]),redacted:!0,original:y}):{text:y}})},e.demoCount=()=>e.demoParts().filter(p=>p.redacted).length,e.cards=[{key:"repositories",total:0,label:"repositories anonymized"},{key:"users",total:0,label:"researchers"},{key:"pageViews",total:0,label:"page views"},{key:"pullRequests",total:0,label:"pull requests"}],e.statsEmpty=()=>!!e.stat&&e.cards.every(p=>!p.total);function o(){t.get("/api/stat/").then(p=>{e.stat=p.data,e.cards[0].total=p.data.nbRepositories,e.cards[1].total=p.data.nbUsers,e.cards[2].total=p.data.nbPageViews,e.cards[3].total=p.data.nbPullRequests}).catch(()=>{})}o();function u(p){let d={series:p,bars:[],viewW:100,deltaToday:0,pctChange:0,pctAbs:0,isUp:!0};if(!p||p.length<2)return d;let g=new Array(p.length-1);for(let w=1;w<p.length;w++)g[w-1]=p[w]-p[w-1];let m=g.length,v=Math.max.apply(null,g),y=Math.min.apply(null,g),C=Math.min(0,y),k=v-C||1;d.viewW=m*2,d.bars=new Array(m);for(let w=0;w<m;w++){let R=(g[w]-C)/k,b=Math.max(1.5,R*34);d.bars[w]={x:(w*2+.25).toFixed(2),y:(36-b).toFixed(2),w:"1.5",h:b.toFixed(2)}}if(d.deltaToday=g[m-1],m>=2){let w=g[m-2];w&&(d.pctChange=(d.deltaToday-w)/w*100)}return d.pctAbs=Math.round(Math.abs(d.pctChange)),d.isUp=d.pctChange>=0,d}e.history={repositories:u([]),users:u([]),pageViews:u([]),pullRequests:u([])},t.get("/api/stat/history?days=60").then(p=>{let d=p.data||[];e.history={repositories:u(d.map(g=>g.nbRepositories||0)),users:u(d.map(g=>g.nbUsers||0)),pageViews:u(d.map(g=>g.nbPageViews||0)),pullRequests:u(d.map(g=>g.nbPullRequests||0))}}).catch(()=>{})},vf=function(e,t,s,i,r,o){let u=Pt();e.on("routeLeave",function(){$('[data-toggle="tooltip"]').tooltip("dispose")}),e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),u.timeout(()=>{$('[data-toggle="tooltip"]').tooltip()},250),e.quotaExpanded=!1,e.closeQuota=()=>{e.quotaExpanded=!1,xe(()=>document.querySelector(".dashboard-quota > summary")?.focus())},Lt()(document,"click",S=>{e.quotaExpanded&&!S.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=S=>S.status==="error"||S._broken||d(S.status)==="progress"&&S._stale,e.attentionCount=()=>e.dashboardTotals?.attention??e.items.filter(e.needsAttention).length,e.hasProjects=()=>(e.dashboardTotals?.total??e.items.length)>0,e.setProjectView=S=>{e.projectView=S,S==="attention"&&(e.filters.status.error=!0,e.filters.status.progress=!0)},e.idleText=S=>{let q=dl(S?.anonymizeDate||S?.lastView)||"";return/ ago$/.test(q)?"No activity for "+q.replace(/ ago$/,""):"No activity since "+q.replace(", "+new Date().getFullYear(),"")},e.projectDetailsId=S=>"project-details-"+encodeURIComponent(S._type+":"+(S._id||S._source||"unknown")),e.showProjectDetails=async S=>{e.selectedProject=S,e.projectName=S.projectName||"",e.nameError="",e.nameMessage="",await xe();let q=document.getElementById(e.projectDetailsId(S));q?.focus(),q?.scrollIntoView?.({block:"nearest"})},e.closeProjectDetails=S=>{e.selectedProject=null,xe(()=>document.querySelector(`[data-project-actions="${encodeURIComponent(S._type+":"+S._id)}"]`)?.focus())},e.saveProjectName=async S=>{if(e.nameSaving||!S._id)return;let q=e.projectName.trim();if(q.length>100){e.nameError="Use 100 characters or fewer.";return}e.nameSaving=!0,e.nameError="",e.nameMessage="";try{let G=await t.post("/api/user/project-name",{type:S._type,id:S._id,name:q});S.projectName=G.data.name,S._label=S.projectName||S._fallbackLabel,e.selectedProject===S&&(e.nameMessage=q?"Project name saved.":"Default project name restored."),P||(e.dashboardCursor=null,await L(),e.selectedProject===S&&(e.selectedProject=e.items.find(oe=>oe._type===S._type&&oe._id===S._id)||null))}catch{e.selectedProject===S&&(e.nameError="The project name could not be saved. Try again.")}finally{e.nameSaving=!1}},e.copyingId=null,e.copyLink=async S=>{if(!S._viewUrl||e.copyingId)return;let q=new URL(S._viewUrl,r.location.origin).href;e.copyingId=S._type+":"+S._id;try{await Jl(q),e.addToast({title:"Link copied",body:"The anonymous link is ready to share."})}catch{e.addToast({title:"Copy this anonymous link",body:q})}finally{e.copyingId=null}},e.items=[],e.search="",e.loading=!0,e.statusKeyLabels={ready:"Ready",progress:"Preparing",error:"Error",expired:"Expiring / expired",removed:"Removing / removed"};let p=["queue","download","downloaded","preparing","anonymizing"];functi
Line truncated
|
|
|
|
|
`)),e.options=Object.assign({},e.options,B.options),e.options.expirationDate=B.options&&B.options.expirationDate?new Date(B.options.expirationDate):W(),!i.repoId&&!i.pullRequestId&&!i.gistId&&!e.anonymize?.terms?.dirty&&(e.terms=e.defaultTerms),E&&E()})}function x(E,M,B){e.anonymize&&e.anonymize[E]&&e.anonymize[E].setValidity(M,B)}function ge(E){try{let M=parseGithubUrl(E);if(M&&M.owner&&M.repo)return M.owner+"/"+M.repo}catch{}return null}e.accessRepairAllowed=!1,e.repairingGitHubAccess=!1,e.accessRepairMessage="",e.repairGitHubAccess=async()=>{if(!e.accessRepairAllowed||e.repairingGitHubAccess||!e.githubConnections?.appEnabled||!i.repoId||e.role!=="owner"||e.githubConnection!=="github-app"||ge(e.sourceUrl)!==e._originalFullName)return;e.repairingGitHubAccess=!0,e.accessRepairMessage="";let E=y();try{let M=await t.get("/github/connections");if(e.githubConnections=M.data,!M.data.appEnabled)return;let B=await t.post("/github/connections/migrate",{type:"repository",id:i.repoId,connection:"github-app"},{headers:{"X-CSRF-Token":M.data.csrf}});if(!v(E))return;e.error=null,B.data.fullName&&(e._originalFullName=B.data.fullName,e.source.fullName=B.data.fullName,e.sourceUrl="https://github.com/"+B.data.fullName),e.accessRepairMessage="GitHub access repaired. Your anonymous URL and published commit are unchanged.",await e.urlSelected(!0)}catch{v(E)&&(e.accessRepairMessage="Unable to repair GitHub access. Check the App's repository permissions in Manage access, then retry. Your published snapshot has not been replaced.")}finally{e.repairingGitHubAccess=!1,C(E)}},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.details=null,e.source.commit="",e.source.branch="",e.readme="",e.branches=[],en.cancel(),An.cancel(),In.cancel(),e.previewStatus="idle",e.anonymize_readme="",dd();try{await I()}catch{}}};function Se(){return e.reconnectingSource||!e.isUpdate||!e._originalRepositoryID?void 0:ge(e.sourceUrl)===e._originalFullName?e._originalRepositoryID:void 0}async function Ie(){e._preservingDraft=!0;try{await e.urlSelected(!0)}finally{e._preservingDraft=!1}}async function A(){let E=new URLSearchParams(window.location.search).get("billingDraft");if(E){R.restore();try{let B=(await t.get("/api/billing/draft/"+encodeURIComponent(E))).data;if(B.path!==r.path())throw new Error("Wrong task");b=B.values.conference||null;for(let Y of["sourceUrl","terms","repoId","source","options","conference","githubConnection"])Object.prototype.hasOwnProperty.call(B.values,Y)&&(e[Y]=B.values[Y]);return e.options?.expirationDate&&(e.options.expirationDate=new Date(e.options.expirationDate)),P=B.id,D=JSON.stringify(R.checkpoint()),e.draftRestored=!0,e.hostingReview=!0,e.sourceUrl&&await Ie(),r.replace?.(r.path()),!0}catch{e.billingError="The checkout draft could not be restored. Retry by reloading this page; any local draft is still available."}}let M;try{M=JSON.parse(sessionStorage.getItem("github-access-draft")||"null")}catch{return!1}if(!M||M.path!==r.path()||Date.now()-M.savedAt>=30*6e4)return R.restore()?(e.sourceUrl&&await Ie(),!0):!1;R.restore();for(let B of["sourceUrl","terms","repoId","pullRequestId","gistId","source","options","conference","githubConnection"])Object.prototype.hasOwnProperty.call(M.draft,B)&&(e[B]=M.draft[B]);return e.options.expirationDate&&(e.options.expirationDate=new Date(e.options.expirationDate)),await Ie(),sessionStorage.removeItem("github-access-draft"),!0}he(()=>{!i.repoId&&!i.pullRequestId&&!i.gistId&&u(A,0),i.repoId&&i.repoId!=""&&(e.isUpdate=!0,e.detectedType="repo",e.repoId=i.repoId,t.get("/api/repo/"+e.repoId).then(async E=>{e.accessRepairAllowed=!["removed","archived","preparing","queue","download","removing","expiring"].includes(E.data.status),e.githubConnection=E.data.connection||"oauth",e.sourceUrl="https://github.com/"+E.data.source.fullName,e._originalFullName=E.data.source.fullName,e.terms=E.data.options.terms.filter(M=>M).join(`
|
|
|
|
|
`),e.source=E.data.source,e.role=E.data.role||"owner",e._existingNever=E.data.options.expirationMode==="never",e._savedExpirationDate=E.data.options.expirationDate?new Date(E.data.options.expirationDate):null,e.coauthors=E.data.coauthors||[],e._originalBranch=E.data.source.branch,e.options=Object.assign({},e.options,E.data.options),e.conference=E.data.conference,e._originalConference=E.data.conference,e.repositoryID=E.data.source.repositoryID,e._originalRepositoryID=E.data.source.repositoryID,E.data.options.expirationDate&&(e.options.expirationDate=new Date(E.data.options.expirationDate)),k=w(parseGithubUrl(e.sourceUrl)),!await A()&&(await Promise.all([I(),ee().then(Dn)]),Dn())},()=>{r.url("/404")})),i.pullRequestId&&i.pullRequestId!=""&&(e.isUpdate=!0,e.detectedType="pr",e.pullRequestId=i.pullRequestId,t.get("/api/pr/"+e.pullRequestId).then(async E=>{if(e.githubConnection=E.data.connection||"oauth",e.sourceUrl="https://github.com/"+E.data.source.repositoryFullName+"/pull/"+E.data.source.pullRequestId,e.terms=E.data.options.terms.filter(M=>M).join(`
|
|
|
|
|
`),e.source=E.data.source,e.options=Object.assign({},e.options,E.data.options),e.conference=E.data.conference,e._originalConference=E.data.conference,E.data.options.expirationDate&&(e.options.expirationDate=new Date(E.data.options.expirationDate)),k=w(parseGithubUrl(e.sourceUrl)),!await A())try{await pd()}catch{}},()=>{r.url("/404")})),i.gistId&&i.gistId!=""&&(e.isUpdate=!0,e.detectedType="gist",e.gistId=i.gistId,t.get("/api/gist/"+e.gistId).then(async E=>{e.sourceUrl="https://gist.github.com/"+E.data.source.gistId,e.terms=E.data.options.terms.filter(M=>M).join(`
|
|
|
|
|
`),e.source=E.data.source,e.options=Object.assign({},e.options,E.data.options),e.conference=E.data.conference,e._originalConference=E.data.conference,E.data.options.expirationDate&&(e.options.expirationDate=new Date(E.data.options.expirationDate)),k=w(parseGithubUrl(e.sourceUrl)),!await A()&&await fd()},()=>{r.url("/404")}))}),t.get("/github/connections").then(E=>{e.githubConnections=E.data,!i.repoId&&!i.pullRequestId&&!i.gistId&&e.githubConnection===void 0&&E.data.appEnabled&&E.data.appConnected&&(e.githubConnection="github-app",e.sourceUrl&&e.workspaceOpen&&Ie())}).catch(()=>{}).finally(()=>{!g&&!i.repoId&&!i.pullRequestId&&!i.gistId&&e.userReposStatus==="idle"&&e.loadUserRepos()}),e.urlSelected=async(E=!1)=>{let M=++d;e.previousConfigurations=[],e.previousConfigurationId="";let B;try{B=parseGithubUrl(e.sourceUrl.trim())}catch{e.sourceLoading=!1,e.details=null,it(),en.cancel(),An.cancel(),In.cancel(),e.previewStatus="idle",e.sourceUrlError=e.sourceUrl?"Please provide a valid GitHub URL.":"",x("sourceUrl","github",!1);return}let Y=w(B),pe=E||k===Y;k=Y,e.sourceUrlError="",x("sourceUrl","github",!0),it();let Ce=document.activeElement?.id==="sourceUrl-landing";e.workspaceOpen=!0,setTimeout(()=>{let Ze=window.document.getElementById("sourceUrl");if(Ze){try{Ze.setSelectionRange(0,0)}catch{}Ze.scrollLeft=0}},50),Ce&&u(()=>document.getElementById("sourceUrl")?.focus(),0),e.reconnectingSource=!1,e.reconnectRepositoryId=void 0,!pe&&!e.isUpdate&&(e.repoId="",e.pullRequestId="",e.gistId=""),e.details=null,e.branches=[],pe||(e.source={type:"GitHubStream",branch:"",commit:""}),en.cancel(),An.cancel(),In.cancel(),Ms.clear(),Vs.clear(),e.previewStatus="idle",e.anonymize_readme="",e.readme="",dd(),e.detectedType=null,e.gistOAuthRequired=!1,e.gistAppRequired=!1,e._preservingDraft=pe;try{B.gistId&&!B.repo?(e.detectedType="gist",e.source={gistId:B.gistId},await fd()):B.pullRequestId?(e.detectedType="pr",e.source={repositoryFullName:B.owner+"/"+B.repo,pullRequestId:B.pullRequestId},await pd()):(e.detectedType="repo",tt(),await Promise.all([I(),ee().then(Dn)]),Dn())}catch{}finally{M===d&&(e._preservingDraft=!1)}$('[data-toggle="tooltip"]').tooltip()},$('[data-toggle="tooltip"]').tooltip(),e.watch("source.branch",async()=>{if(e.detectedType!=="repo")return;let E=e.branches.filter(B=>B.name==e.source.branch)[0];if(!E)return;!(!e.reconnectingSource&&e.isUpdate&&e._originalBranch===e.source.branch&&e.source.commit)&&!(e._preservingDraft&&e.source.commit)&&(e.source.commit=E.commit),X(E),await ee(),Dn()}),e.getBranches=async E=>{let M=parseGithubUrl(e.sourceUrl),B=y();try{if(!e.details){await I(E);return}let Y=await t.get(`/api/repo/${M.owner}/${M.repo}/branches`,{params:{reconnect:e.reconnectingSource?"1":void 0,anonymizedRepoId:e.isUpdate&&i.repoId&&ge(e.sourceUrl)===e._originalFullName?i.repoId:void 0,connection:e.githubConnection,force:E===!0||e.reconnectingSource?"1":"0",repositoryID:Se()}});if(!v(B))return;e.branches=Y.data,e.sourceUnreachable=!1,e.source.branch||(e.source.branch=e.details.defaultBranch);let pe=e.branches.filter(Ce=>Ce.name==e.source.branch);pe.length>0&&(!(!e.reconnectingSource&&!E&&e.isUpdate&&!e.options.update&&e._originalBranch===e.source.branch&&e.source.commit)&&!(e._preservingDraft&&e.source.commit)&&(e.source.commit=pe[0].commit),X(pe[0]),await ee(E))}catch(Y){if(!v(B))return;e.branches=[],e.sourceUnreachable=Y&&(Y.status===404||Y.data&&Y.data.error==="repo_not_found"),e.details=null,We(Y)}finally{C(B)}};async function I(E=!1){let M=parseGithubUrl(e.sourceUrl),B=y();try{qs(),it();let Y=await t.get(`/api/repo/${M.owner}/${M.repo}/`,{params:{reconnect:e.reconnectingSource?"1":void 0,anonymizedRepoId:e.isUpdate&&i.repoId&&ge(e.sourceUrl)===e._originalFullName?i.repoId:void 0,connection:e.githubConnection,repositoryID:Se(),force:"1"}});if(!v(B))return;e.details=Y.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||e.reconnectingSource)}catch(Y){if(!v(B))return;throw We(Y),Y}finally{C(B)}}let z=null,Z=E=>z!==null&&(z===E||z===""&&!!E&&E===e.details?.defaultBranch);function X(E){e.readme&&Z(E.name)||(e.readme=E.readme,z=E.readme?E.name:null)}async function ee(E){if(e.readme&&!E)return e.readme;let M=parseGithubUrl(e.sourceUrl),B=y(),Y=()=>v(B)&&(B.branch===e.source.branch||!B.branch&&e.source.branch===e.details?.defaultBranch);try{let pe=await t.get(`/api/repo/${M.owner}/${M.repo}/readme`,{params:{reconnect:e.reconnectingSource?"1":void 0,anonymizedRepoId:e.isUpdate&&i.repoId&&ge(e.sourceUrl)===e._originalFullName?i.repoId:void 0,connection:e.githubConnection,force:E===!0?"1":"0",branch:B.branch,repositoryID:Se()}});Y()&&(e.readme=pe.data,z=B.branch)}catch{Y()&&(e.readme="",z=null)}finally{C(B)}}let ue={magicalBraces:!0},re=E=>E.startsWith("/")&&!E.endsWith("/")&&ss(Ds(E.slice(1),ue),ue)===E.slice(1),ie=()=>Object.keys(e.preserve.picked).filter(E=>e
Line truncated
|
|
|
|
|
`).map(E=>E.trim()).filter(Boolean),Ee=null,Oe=null,Ue=new Set,Qe=0,Je=null,Re=()=>!1;function Be(){let E=Qe+"\0"+e.preserve.patterns;if(E!==Je){Je=E;try{Re=Xl(Yl([...ie(),...fe()]))}catch{Re=()=>!1}}return Re}function j(E){let M=new Map([["",{dirs:[],files:[]}]]);for(let B of E){let Y=B.split("/"),pe="";for(let Ce=0;Ce<Y.length-1;Ce++){let Ze=Y.slice(0,Ce+1).join("/");M.has(Ze)||(M.set(Ze,{dirs:[],files:[]}),M.get(pe).dirs.push(Ze)),pe=Ze}M.get(pe).files.push(B)}for(let B of M.values())B.dirs.sort();return{files:E,dirs:M,descendants:new Map}}function J(E){return Ee.descendants.has(E)||Ee.descendants.set(E,Ee.files.filter(M=>M.startsWith(E+"/"))),Ee.descendants.get(E)}let me=E=>Be()(E);function Ne(E){let M=J(E),B=0;for(let Y of M)me(Y)&&B++;return B===0?"none":B===M.length?"all":"some"}e.preserve={open:!1,loading:!1,error:"",truncated:!1,commit:"",search:"",expanded:{},picked:{},patterns:"",patternsOpen:!1},e.preserveSummary=()=>{let E=(e.options?.preserveFiles||[]).map(M=>String(M).trim()).filter(Boolean).map(M=>re(M)?Ds(M.slice(1),ue):M);return E.length?E.slice(0,2).join(", ")+(E.length>2?` and ${E.length-2} more`:""):"None. Every file is redacted."};async function ve(){let E=e.source?.commit;if(!(Ee&&e.preserve.commit===E)){e.preserve.loading=!0,e.preserve.error="",Ee=null,Oe=null;try{let M=parseGithubUrl(e.sourceUrl),B=await t.get(`/api/repo/${M.owner}/${M.repo}/tree`,{params:{commit:E,connection:e.githubConnection,anonymizedRepoId:e.isUpdate&&i.repoId&&ge(e.sourceUrl)===e._originalFullName?i.repoId:void 0,repositoryID:Se()}});if(e.source?.commit!==E)return;let Y=Array.isArray(B.data.binaryFiles)?B.data.binaryFiles:[];Ee=kn(j(B.data.files||[])),Oe=Y.length?kn(j([...B.data.files||[],...Y])):Ee,Ue=kn(new Set(Y)),e.preserve.commit=E,e.preserve.truncated=!!B.data.truncated,e.previewFile||en()}catch{e.preserve.error="The file list could not be loaded from GitHub. You can still use patterns.",e.preserve.patternsOpen=!0}finally{e.preserve.loading=!1}}}e.watch("source.commit",E=>{e.previewFile&&e.openPreviewFile(""),e.detectedType==="repo"&&E&&e.sourceUrl&&ve().catch(()=>{})}),e.openPreserveFiles=()=>{let E={},M=[];for(let Y of e.options?.preserveFiles||[]){let pe=String(Y).trim();pe&&(!M.length&&re(pe)?E[Ds(pe.slice(1),ue)]=!0:M.push(pe))}let B={};for(let Y of Object.keys(E)){let pe=Y.split("/");for(let Ce=1;Ce<pe.length;Ce++)B[pe.slice(0,Ce).join("/")]=!0}Object.assign(e.preserve,{open:!0,search:"",picked:E,expanded:B,patterns:M.join(`
|
|
|
|
|
`),patternsOpen:M.length>0}),e.mobileWorkspace&&(e.mobilePane="settings"),Qe++,u(()=>{let Y=document.getElementById("preserve-files-dialog");Y?.showModal&&!Y.open&&Y.showModal(),document.getElementById("preserve-files-search")?.focus()},0),ve()},e.closePreserveFiles=()=>{document.getElementById("preserve-files-dialog")?.close?.(),e.preserve.open=!1},e.savePreserveFiles=()=>{e.options.preserveFiles=Yl([...ie(),...fe()]),e.closePreserveFiles()},e.preserveRows=()=>{if(!Ee)return[];let E=Be(),M=(Ce,Ze,Gt)=>{let mt=!!e.preserve.picked[Ce],wt=E(Ce);return{kind:"file",path:Ce,label:Gt,depth:Ze,state:wt?"all":"none",locked:!mt&&wt,note:!mt&&wt?"matched by a pattern":mt&&!wt?"excluded by a pattern":""}},B=String(e.preserve.search||"").trim().toLowerCase();if(B)return Ee.files.filter(Ce=>Ce.toLowerCase().includes(B)).slice(0,300).map(Ce=>M(Ce,0,Ce));let Y=[],pe=(Ce,Ze)=>{let Gt=Ee.dirs.get(Ce);for(let mt of Gt.dirs){let wt=!!e.preserve.expanded[mt],Bt=fe().includes(se(mt));Y.push({kind:"dir",path:mt,label:mt.slice(Ce?Ce.length+1:0)+"/",depth:Ze,open:wt,state:Ne(mt),locked:!1,note:Bt?"whole folder":""}),wt&&pe(mt,Ze+1)}for(let mt of Gt.files)Y.push(M(mt,Ze,mt.slice(Ce?Ce.length+1:0)))};return pe("",0),Y},e.preserveCount=()=>Ee?Ee.files.filter(me).length:0,e.togglePreserveDir=E=>{e.preserve.expanded[E]=!e.preserve.expanded[E]},e.togglePreserveFile=E=>{e.preserve.picked[E]=!e.preserve.picked[E],Qe++},e.togglePreserveFolder=E=>{let M=se(E),B=Te(E),Y=fe().filter(Ce=>Ce!==M&&Ce!==B),pe=Ne(E)==="all"||fe().includes(M);for(let Ce of J(E))e.preserve.picked[Ce]=!1;Qe++,e.preserve.patterns=(pe?Y:[...Y,M]).join(`
|
|
|
|
|
`),pe&&J(E).some(me)&&(e.preserve.patterns=[...Y,B].join(`
|
|
|
|
|
`))};let qe=/^readme(\.[^/]*)?$/i,ct=[".md",".markdown",".mdown",".mkdn",".rst",".txt",""],Ft=["README.md","README","README.markdown","README.rst","README.txt","readme.md"],Ut=E=>{let M=Me(E),B=M.indexOf("."),Y=ct.indexOf(B===-1?"":M.slice(B).toLowerCase());return Y===-1?ct.length:Y},xt=()=>!!Ee&&!!e.preserve.commit&&e.preserve.commit===e.source?.commit;e.readmePath=()=>{if(!xt())return"";for(let E of[".github","","docs"]){let M=(Ee.dirs.get(E)?.files||[]).filter(B=>qe.test(Me(B)));if(M.length)return M.sort((B,Y)=>Ut(B)-Ut(Y)||gt(B,Y))[0]}return""},e.readmeName=()=>Me(e.readmePath())||"README.md";let Pn={key:null,fn:()=>!1},ld=()=>{let E=(e.options?.preserveFiles||[]).map(B=>String(B).trim()).filter(Boolean),M=E.join(`
|
|
|
|
|
`);if(M!==Pn.key){let B=()=>!1;try{E.length&&(B=Xl(E))}catch{}Pn={key:M,fn:B}}return Pn.fn};e.pathPreserved=E=>!!E&&ld()(E),e.readmePreserved=()=>{if(e.detectedType!=="repo")return!1;let E=ld();if(xt()){let M=e.readmePath();return!!M&&E(M)}return Ft.some(M=>E(M))},e.previewPreserved=()=>e.detectedType==="repo"&&(e.previewFile?e.pathPreserved(e.previewFile):e.readmePreserved());function go(){let E={terms:e.terms?e.terms.split(`
|
|
|
|
|
`):[],filePath:e.previewOpenPath()||"README.md",preserveFiles:e.options.preserveFiles||[],image:!!e.options.image,link:!!e.options.link,repoId:e.repoId},M=e.source?.branch||e.details?.defaultBranch;M&&(E.branchName=M);try{let B=parseGithubUrl(e.sourceUrl);E.repoName=`${B.owner}/${B.repo}`}catch{}return E}function sa(E,M,B){let Y=null,pe=0,Ce=null,Ze=()=>{if(e.detectedType!==E)return;Y&&u.cancel(Y);let Gt=++pe;e.previewStatus="loading",Y=u(()=>{Y=null;let mt=M();if(!mt){e.previewStatus="idle";return}if(mt.wait){e.previewStatus=e.sourceLoading?"loading":"idle";return}let wt=JSON.stringify(mt);if(wt===Ce){e.previewStatus="ready";return}Ce=null,t.post("/api/anonymize-preview",mt).then(Bt=>{Gt===pe&&(B(Bt.data,mt),Ce=wt,e.previewStatus="ready")}).catch(()=>{Gt===pe&&(e.previewStatus="error")})},200)};return Ze.cancel=()=>{pe++,Ce=null,Y&&u.cancel(Y),Y=null},e.on("dispose",Ze.cancel),Ze}e.retryPreview=()=>{e.detectedType==="repo"&&(e.previewFile&&typeof hn!="string"?ud(e.previewFile):en()),e.detectedType==="pr"&&An(),e.detectedType==="gist"&&In()};let at=kn(ti(e));Object.defineProperty(e,"previewViewer",{get:()=>at}),bl(at,e),Object.assign(at,{options:{},files:[],paths:[],content:null,type:"loading",sidebarHidden:!1,sidebarCollapsed:!0,moreOpen:!1,tocOpen:!1,gotoOpen:!1,mdFindOpen:!1,mdFindQuery:"",mdFindTotal:0,mdFindIndex:0}),at.preview=!0,at.fileSize=E=>E===at.filePath&&typeof hn=="string"?new Blob([hn]).size:!e.previewFile&&e.readme?new Blob([e.readme]).size:null,at.openPreserveFiles=()=>e.openPreserveFiles(),at.previewPreserved=()=>e.previewPreserved(),at.retryContent=()=>e.retryPreview();let Km=E=>Ue.has(E)||/\.(pdf|png|jpe?g|gif|svg|ico|bmp|tiff?|webp|avif|heic|heif|mp4|webm|mp3|wav|zip|bin)$/i.test(E),oa=(E="")=>({path:E,loading:!1,note:"",loadError:""});e.previewFile="",e.previewDoc=oa();let yo=0,hn=null;e.previewOpenPath=()=>e.previewFile||e.readmePath(),e.openPreviewFile=E=>{if(E=E||"",E&&E===e.readmePath()&&(E=""),yo++,hn=null,Ni(),en.cancel(),e.previewFile=E,e.previewDoc=oa(E),at.sidebarCollapsed=!0,at.content=null,!E){e.readme?en():e.previewStatus="idle";return}if(Km(E)){ia("binary"),e.previewStatus="ready";return}ud(E)};function dd(){yo++,hn=null,e.previewFile="",e.previewDoc=oa(),at.sidebarCollapsed=!0,at.content=null}function ud(E){let M=++yo;hn=null,Object.assign(e.previewDoc,{loading:!0,loadError:""}),e.previewStatus="loading";let B;try{B=parseGithubUrl(e.sourceUrl)}catch{B=null}if(!B||!e.source?.commit){Object.assign(e.previewDoc,{loading:!1,loadError:"The repository is still loading. Try again in a moment."}),e.previewStatus="error";return}t.get(`/api/repo/${B.owner}/${B.repo}/file`,{params:{commit:e.source.commit,path:E,connection:e.githubConnection,anonymizedRepoId:e.isUpdate&&i.repoId&&ge(e.sourceUrl)===e._originalFullName?i.repoId:void 0,repositoryID:Se()},transformResponse:Y=>Y}).then(Y=>{if(M!==yo)return;e.previewDoc.loading=!1;let pe=typeof Y.headers=="function"&&Y.headers("content-type")||"";if(/json/i.test(pe)){let Ce=null;try{Ce=JSON.parse(Y.data)}catch{}if(Ce&&Ce.binary===!0){ia("binary"),e.previewStatus="ready";return}}hn=typeof Y.data=="string"?Y.data:"",en()},Y=>{if(M!==yo)return;e.previewDoc.loading=!1;let pe=Jr(Y);if(pe==="file_too_big"){ia("too_big"),e.previewStatus="ready";return}e.previewDoc.loadError=ls.ERRORS[pe]||"GitHub did not return this file.",e.previewStatus="error"})}let Si;function Ni(){Si&&window.URL.revokeObjectURL(Si),Si=void 0,at.url=void 0}e.on("dispose",Ni);function ia(E){Ni(),e.previewDoc.note=E,at.prepareFile(e.previewPathName(e.previewOpenPath()||e.readmeName())),at.type=E==="too_big"?"error":"binary",at.content=E==="too_big"?"file_too_big":"binary"}function Ym(E){try{let M=parseGithubUrl(e.sourceUrl),B=e.source.branch||e.details&&e.details.defaultBranch||"main",Y=E&&E.includes("/")?E.slice(0,E.lastIndexOf("/")+1):"";return`https://github.com/${M.owner}/${M.repo}/raw/${B}/${Y}`}catch{return""}}let cd=sa("repo",()=>{if(e.previewFile)return typeof hn!="string"?null:{content:hn,options:go()};if(!e.readme)return null;let E=go();return!E.branchName||!E.repoId?{wait:!0}:{content:e.readme,options:E}},E=>{if(typeof E?.content!="string")throw Error("Invalid preview response");Ni(),window.URL?.createObjectURL&&(at.url=Si=window.URL.createObjectURL(new Blob([E.content],{type:"text/plain"})));let M=e.previewOpenPath()||e.readmeName();at.prepareFile(e.previewPathName(M)),at.fileBaseUrl=Ym(M),at.renderFileContent(E.content,at.type,at.fileBaseUrl,"text/plain"),e.previewFile||(e.anonymize_readme=E.content)}),en=()=>{e.previewFile&&typeof hn!="string"||cd()};en.cancel=cd.cancel;let Os=ut(new Map),ra=new Set,aa=new Set,vo="",bo=null,Ri=()=>String(e.terms||"").split(`
|
|
|
|
|
`).filter(E=>E.trim());function Xm(){bo=null;let E=Ri(),M=E.join(`
|
|
|
|
|
`);M!==vo&&(Os.clear(),aa.clear(),vo=M);let B=[...ra].filter(Y=>!Os.has(Y));if(ra.clear(),!(!B.length||!E.length))for(let Y=0;Y<B.length;Y+=400){let pe=B.slice(Y,Y+400);t.post("/api/anonymize-preview",{contents:pe,options:{terms:E,image:!0,link:!0}}).then(Ce=>{if(vo!==M||Ri().join(`
|
|
|
|
|
`)!==M)return;let Ze=Ce.data?.contents;if(!Array.isArray(Ze)||Ze.length!==pe.length)throw Error("Invalid preview response");pe.forEach((Gt,mt)=>Os.set(Gt,typeof Ze[mt]=="string"?Ze[mt]:Gt))}).catch(()=>{vo===M&&pe.forEach(Ce=>aa.add(Ce))})}}e.previewName=E=>{if(!E||!Ri().length)return E;if(vo===Ri().join(`
|
|
|
|
|
`)){if(Os.has(E))return Os.get(E);if(aa.has(E))return E}return ra.add(E),bo||(bo=u(Xm,120)),E},e.previewPathName=E=>{E=String(E||"");let M=E.lastIndexOf("/");return M<0?e.previewName(E):e.previewName(E.slice(0,M))+"/"+e.previewName(E.slice(M+1))},e.watch(()=>[e.repoId,e.previewPathName(e.previewOpenPath()||e.readmeName()),e.previewTreeFiles()],()=>{at.repoId=e.repoId||"repository",at.filePath=e.previewPathName(e.previewOpenPath()||e.readmeName()),at.paths=at.filePath.split("/"),at.files=e.previewTreeFiles(),at.loadedFolders=Object.fromEntries([...Oe?.dirs.keys()||[]].map(E=>[e.previewName(E),!0]))},!0),e.on("dispose",()=>{bo&&u.cancel(bo)});function Dn(){if(!e.anonymize||!e.anonymize.terms)return;let E=go();!E.branchName||!E.repoId||en()}async function pd(){let E=parseGithubUrl(e.sourceUrl),M=y();try{qs(),it();let B=await t.get(`/api/pr/${E.owner}/${E.repo}/${E.pullRequestId}`,{params:{connection:e.githubConnection}});if(!v(M))return;e.details=B.data,e.pullRequestId||(e.pullRequestId=E.repo+"-PR"+E.pullRequestId+"-"+generateRandomId(4))}catch(B){if(!v(M))return;throw We(B),B}finally{C(M)}}let Ms=ut(new Map);function Qm(){let E=new Set,M=e.details&&e.details.pullRequest;if(!M)return E;typeof M.title=="string"&&E.add(M.title),typeof M.body=="string"&&E.add(M.body),typeof M.diff=="string"&&E.add(M.diff);let B=M.comments||[];for(let Y of B)typeof Y.author=="string"&&E.add(Y.author),typeof Y.body=="string"&&E.add(Y.body);return E}let An=sa("pr",()=>{let E=Qm(),M=Array.from(E);return M.length===0?null:{contents:M,options:go()}},(E,M)=>{if(!Array.isArray(E?.contents)||E.contents.length!==M.contents.length||E.contents.some(pe=>typeof pe!="string"))throw Error("Invalid preview response");let B=M.contents,Y=new Map;for(let pe=0;pe<B.length&&pe<E.contents.length;pe++)Y.set(B[pe],E.contents[pe]);Ms.clear(),Y.forEach((pe,Ce)=>Ms.set(Ce,pe))});e.anonymizePrContent=function(E){return E&&(Ms.has(E)?Ms.get(E):"")};async function fd(){let E=parseGithubUrl(e.sourceUrl),M=y();try{qs(),it(),e.gistOAuthRequired=!1,e.gistAppRequired=!1;let B=await t.get(`/api/gist/source/${E.gistId}`);if(!v(M))return;e.details=B.data,e.gistId||(e.gistId="gist-"+E.gistId.substring(0,6)+"-"+generateRandomId(4))}catch(B){if(!v(M))return;if(B.data?.error==="github_app_reconnect_required"){e.gistAppRequired=!0,x("sourceUrl","missing",!1);return}if(B.data?.error==="github_oauth_required"){e.gistOAuthRequired=!0,x("sourceUrl","missing",!1);return}throw We(B),B}finally{C(M)}}let Vs=ut(new Map);function Jm(){let E=new Set,M=e.details&&e.details.gist;if(!M)return E;typeof M.description=="string"&&E.add(M.description),typeof M.ownerLogin=="string"&&E.add(M.ownerLogin);let B=M.files||[];for(let pe of B)typeof pe.filename=="string"&&E.add(pe.filename),typeof pe.content=="string"&&E.add(pe.content);let Y=M.comments||[];for(let pe of Y)typeof pe.author=="string"&&E.add(pe.author),typeof pe.body=="string"&&E.add(pe.body);return E}let In=sa("gist",()=>{let E=Jm(),M=Array.from(E);return M.length===0?null:{contents:M,options:go()}},(E,M)=>{if(!Array.isArray(E?.contents)||E.contents.length!==M.contents.length||E.contents.some(pe=>typeof pe!="string"))throw Error("Invalid preview response");let B=M.contents,Y=new Map;for(let pe=0;pe<B.length&&pe<E.contents.length;pe++)Y.set(B[pe],E.contents[pe]);Vs.clear(),Y.forEach((pe,Ce)=>Vs.set(Ce,pe)),la()});e.anonymizeGistContent=function(E){return E&&(Vs.has(E)?Vs.get(E):"")},e.previewGistFiles=[];function la(){let E=e.details&&e.details.gist&&e.details.gist.files||[];e.previewGistFiles=E.map(M=>({filename:e.anonymizeGistContent(M.filename),content:e.anonymizeGistContent(M.content),language:M.language}))}e.watch("details.gist.files",la,!0),e.watch("terms",la);function Zm(){let E=e.conference;if(e.conference_data=null,!E)return;let M=E===b||e.isUpdate&&E===e._originalConference;E!==b&&(b=null),t.get("/api/conferences/"+E).then(B=>{e.conference===E&&(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),!M&&(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===E&&(e.conference_data=null)})}function qs(){x("repoId","used",!0),x("repoId","format",!0),x("pullRequestId","used",!0),x("pullRequestId","format",!0),x("gistId","used",!0),x("gistId","format",!0),x("sourceUrl","used",!0),x("sourceUrl","missing",!0),x("sourceUrl","access",!0),x("sourceUrl","github",!0),x("commit","exists",!0),x("conference","activated",!0),x("terms","format",!0),e.termHints=[]}function Ti(){if(e.detectedType==="repo"&&e.options.expirationMode==="never")return!1;let E=e.anonymize&&e.anonymize.expirationDate;return!e.options.expirationDate||E&&E.invalid?(E&&E.
Line truncated
|
|
|
|
|
`).filter(Ce=>Ce),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&&(Y.options.pageSource=e.details.pageSource),qs();let pe=e.isUpdate?"/api/repo/"+e.repoId:"/api/repo/";t.post(pe,Y,{headers:{"Content-Type":"application/json"}}).then(()=>{R.clear(),window.location.href="/status/"+e.repoId},Ce=>{if(Ce.data){let Ze=["quota_exceeded","quota_repository_limit","quota_storage_limit","subscription_required_for_never_expiration"].includes(Ce.data.error);Ze||o("ERRORS."+Ce.data.error).then(Gt=>{e.error=Gt},console.error),Pi(Ce.data.error),Ze&&(Ce.data.error==="subscription_required_for_never_expiration"&&(e._existingNever=!1),e.hostingQuotaBlocked=!0,e.hostingReview=!0,xe(()=>document.getElementById("repository-hosting")?.scrollIntoView({block:"center"})))}}).finally(()=>{M.disabled=!1})},e.anonymizeGist=E=>{if(e.sourceLoading){e.error="Wait for the source to finish loading before saving.";return}if(Ti())return;if(e.anonymize?.invalid||e.sourceUrlError){e.error="Please correct the highlighted fields before saving.";return}let M=E.currentTarget||E.target.closest?.("button")||E.target;M.disabled=!0;let B=parseGithubUrl(e.sourceUrl),Y={gistId:e.gistId,terms:e.terms.trim().split(`
|
|
|
|
|
`).filter(Ce=>Ce),source:{gistId:B.gistId},options:e.options,conference:e.conference};qs();let pe=e.isUpdate?"/api/gist/"+e.gistId:"/api/gist/";t.post(pe,Y,{headers:{"Content-Type":"application/json"}}).then(()=>{R.clear(),window.location.href="/gist/"+e.gistId},Ce=>{Ce.data&&(o("ERRORS."+Ce.data.error).then(Ze=>{e.error=Ze},console.error),Pi(Ce.data.error))}).finally(()=>{M.disabled=!1})},e.anonymizePullRequest=E=>{if(e.sourceLoading){e.error="Wait for the source to finish loading before saving.";return}if(Ti())return;if(e.anonymize?.invalid||e.sourceUrlError){e.error="Please correct the highlighted fields before saving.";return}let M=E.currentTarget||E.target.closest?.("button")||E.target;M.disabled=!0;let B=parseGithubUrl(e.sourceUrl),Y={pullRequestId:e.pullRequestId,connection:e.githubConnection,terms:e.terms.trim().split(`
|
|
|
|
|
`).filter(Ce=>Ce),source:{repositoryFullName:`${B.owner}/${B.repo}`,pullRequestId:B.pullRequestId},options:e.options,conference:e.conference};qs();let pe=e.isUpdate?"/api/pr/"+e.pullRequestId:"/api/pr/";t.post(pe,Y,{headers:{"Content-Type":"application/json"}}).then(()=>{R.clear(),window.location.href="/pr/"+e.pullRequestId},Ce=>{Ce.data&&(o("ERRORS."+Ce.data.error).then(Ze=>{e.error=Ze},console.error),Pi(Ce.data.error))}).finally(()=>{M.disabled=!1})},e.watch("conference",()=>{Zm()}),e.termHints=[],e.matchTermAsWritten=E=>{e.terms=uf(e.terms,E)},e.watch("options.preserveFiles",()=>{e.detectedType==="repo"&&en()}),e.watch("terms",()=>{e.termHints=df(e.terms),e.detectedType==="repo"&&Dn(),e.detectedType==="pr"&&An(),e.detectedType==="gist"&&In()}),e.watch("options.image",()=>{e.detectedType==="repo"&&Dn(),e.detectedType==="pr"&&An(),e.detectedType==="gist"&&In()}),e.watch("options.link",()=>{e.detectedType==="repo"&&Dn(),e.detectedType==="pr"&&An(),e.detectedType==="gist"&&In()}),e.watch("details",()=>{e.detectedType==="repo"&&Dn(),e.detectedType==="pr"&&An(),e.detectedType==="gist"&&In()},!0)},Zl=function(e,t,s,i,r,o){bl(e);let u=Pt();xr();let p=Lt(),d=0,g=null,m=null;e.fileLoadingSlow=!1,e.fileReceivedBytes=0;function v(){g&&(g.resolve(),g=null),m&&(u.timeout.cancel(m),m=null)}let y=!1;e.on("dispose",()=>{y=!0,d++,v(),C&&C.resolve()}),e.files=[],e.isMac=/Mac|iPhone|iPad|iPod/.test(navigator.platform||navigator.userAgent),e.fileSearchQuery="",e.fileSearchResults=null,e.fileSearchLoading=!1,p(document,"click",F=>{e.symbolsOpen&&!F.target.closest?.(".symbols")&&(e.symbolsOpen=!1),e.moreOpen&&!F.target.closest?.(".tb-more")&&(e.moreOpen=!1),e.tocOpen&&!F.target.closest?.(".tb-toc-m")&&(e.tocOpen=!1),e.gotoOpen&&F.target.isConnected&&!F.target.closest?.(".goto-pop, .btn-goto, .tb-more")&&(e.gotoOpen=!1),e.accountOpen&&!F.target.closest?.(".acct")&&(e.accountOpen=!1),e.helpOpen&&!F.target.closest?.(".vb-help")&&(e.helpOpen=!1)}),p(document,"keydown",F=>{F.key==="Escape"&&(e.symbolsOpen=!1,e.moreOpen=!1,e.tocOpen=!1,e.gotoOpen=!1,e.accountOpen=!1,e.helpOpen=!1),(F.ctrlKey||F.metaKey)&&!F.altKey&&F.key&&F.key.toLowerCase()==="f"&&e.type==="html"&&window.document.querySelector(".reading-layout")&&(F.preventDefault(),e.toggleMdFind(!0))}),p(document,"keydown",function(F){if((F.metaKey||F.ctrlKey)&&F.key==="k"){F.preventDefault();var V=document.querySelector(".tree-search-input");V&&(V.focus(),V.select())}});var C=null;e.onFileSearchChange=function(){C&&(C.resolve(),C=null);let F=e.fileSearchQuery;if(!F||F.length<2){e.fileSearchResults=null,e.fileSearchLoading=!1;return}e.fileSearchLoading=!0;let V=o.defer();C=V,t.get(`/api/repo/${e.repoId}/files/search?q=${encodeURIComponent(F)}`,{timeout:V.promise}).then(function(S){if(!(y||C!==V)){C=null,e.fileSearchLoading=!1;var q={};e.files.forEach(function(Me){q[(Me.path||"")+"/"+Me.name]=!0});for(var G=[],oe={},K=0;K<S.data.length;K++){var ne=S.data[K];if(ne.path)for(var le=ne.path.split("/"),ye="",Ae=0;Ae<le.length;Ae++){var Xe=ye;ye=ye?ye+"/"+le[Ae]:le[Ae];var tt=Xe+"/"+le[Ae];!q[tt]&&!oe[tt]&&(oe[tt]=!0,G.push({name:le[Ae],path:Xe}))}}G.sort(function(Me,Q){return(Me.path||"").split("/").length-(Q.path||"").split("/").length}),G.length>0&&e.files.push.apply(e.files,G);for(var Ge=[],We=0;We<S.data.length;We++){var it=S.data[We],gt=(it.path||"")+"/"+it.name;!q[gt]&&it.size!=null&&(Ge.push(it),q[gt]=!0)}Ge.length>0&&e.files.push.apply(e.files,Ge),e.fileSearchResults=S.data}},function(){!y&&C===V&&(C=null,e.fileSearchLoading=!1,e.fileSearchResults=[])})},e.on("routeUpdate",function(F,V){if(e.repoId!=i.repoId)return ae();if((i.path||"")!=e.filePath){window.matchMedia?.("(max-width: 767px)").matches&&(e.sidebarCollapsed=!0),e.filePath=i.path||"",e.paths=e.filePath.split("/").filter(S=>S&&S.trim().length>0),W();for(let S=0;S<e.paths.length-1;S++){let q=S>0?e.paths.slice(0,S).join("/"):"";e.files.some(oe=>oe.path===q)||e.getFiles(q)}}});function k(){if(e.paths[0]!="")return;let F=["readme.md","readme.txt","readme.org","readme.1st","readme"],V={};for(let q of e.files)q.name.toLowerCase().indexOf("readme")>-1&&(V[q.name.toLowerCase()]=q.name);let S=null;for(let q of F)if(V[q]){S=q;break}if(!S&&Object.keys(V).length>0&&(S=Object.keys(V)[0]),S){let q=s.url();q[q.length-1]!="/"&&(q+="/"),s.url(q+encodePathForUrl(V[S]))}}e.fileCounts=null;let w=0,R=new Set,b=!1;e.getFiles=function(F,V=!1){let S=e.repoId,q=w;return t.get(`/api/repo/${e.repoId}/files/?path=${encodeURIComponent(F)}&v=${e.options.lastUpdateDate}`).then(function(G){if(y||S!==e.repoId||q!==w)return[];let oe=F||"";return e.files=e.files.filter(K=>K.path!==oe),e.files.push(...G.data),e.loadedFolders={...e.loadedFolders,[oe]:!0},P(oe,q),G.data},function(G){if(y||S!==e.repoId||q!==w)return[];V||(e.type="error",e.content=Jr(G),e.files=[])})};function P(F,V){if(b||R.has(F))return;R.add(F);let S=e.repoId;t.get(`/api/repo/${e.repoId}/files/counts?path=${encodeURIComponent(F)}`).then(function(q){y||S!==e.repoId||V!==w||(e.fileCounts={
Line truncated
|
|
|
|
|
`+c(s.event.errorStack),1),s.event.causeType?(a(),l(N,{key:0},[h(`
|
|
|
|
|
Caused by `+c(s.event.causeType)+`
|
|
|
|
|
`+c(s.event.causeStack||""),1)],64)):f("v-if",!0)])):f("v-if",!0),n("pre",null,c(e.recordJson(s.event)),1)],8,jE)):f("v-if",!0)],2))),128))]),e.trace?.events?.length?(a(),l("p",GE,[h(c(e.errPlural(e.trace.events.length,"record"))+" with this "+c(e.traceKind())+" ID",1),e.trace.state==="partial"?(a(),l(N,{key:0},[h(" (partial)")],64)):f("v-if",!0),t[96]||(t[96]=h(". External calls come from ",-1)),t[97]||(t[97]=n("code",null,"external_request",-1)),t[98]||(t[98]=h(" records; no URLs or tokens are stored. ",-1)),e.trace.grafanaUrl?(a(),l("a",{key:1,href:e.safeUrl(e.trace.grafanaUrl),target:"_blank",rel:"noopener noreferrer"},"Open in Grafana",8,WE)):f("v-if",!0)])):(a(),l("p",KE,[t[99]||(t[99]=n("strong",null,"Timeline not recorded.",-1)),t[100]||(t[100]=h()),e.traceKind()?e.issueData.source!=="central"?(a(),l(N,{key:1},[h("The application history keeps single records; the timeline needs central logs.")],64)):e.trace?.state==="unreachable"?(a(),l(N,{key:2},[h("Central logs did not answer. Retry later.")],64)):(a(),l(N,{key:3},[h("Central logs returned no other record for this "+c(e.traceKind())+".",1)],64)):(a(),l(N,{key:0},[h("This record has no request or job ID, so its other records cannot be found.")],64)),t[101]||(t[101]=h(" Only this record is shown.",-1))]))],64))])):f("v-if",!0),e.requestTab==="request"?(a(),l("div",YE,[n("dl",XE,[n("div",null,[t[102]||(t[102]=n("dt",null,"Method \xB7 route",-1)),n("dd",null,[e.currentOccurrence().route||e.selectedIssue.route?(a(),l("code",QE,c(e.currentOccurrence().method||e.selectedIssue.method)+" "+c(e.currentOccurrence().route||e.selectedIssue.route),1)):(a(),l("span",JE,"not recorded"))])]),n("div",null,[t[103]||(t[103]=n("dt",null,"Path",-1)),n("dd",null,[e.currentOccurrence().requestPath?(a(),l("code",ZE,c(e.currentOccurrence().requestPath),1)):(a(),l("span",xE,"not recorded"))])]),t[110]||(t[110]=n("div",null,[n("dt",null,"Query"),n("dd",null,[n("span",{class:"errs-placeholder"},"excluded: query strings are never logged")])],-1)),n("div",null,[t[104]||(t[104]=n("dt",null,"Body",-1)),n("dd",null,[n("span",eS,c(["GET","HEAD"].includes(e.currentOccurrence().method||e.selectedIssue.method)?"none ("+(e.currentOccurrence().method||e.selectedIssue.method)+")":"not recorded"),1)])]),n("div",null,[t[105]||(t[105]=n("dt",null,"Viewer",-1)),n("dd",null,[e.currentOccurrence().viewer?(a(),l(N,{key:0},[h(c(e.viewerLabel(e.currentOccurrence().viewer)),1),e.currentOccurrence().viewer==="visitor"||e.currentOccurrence().viewer==="anonymous"?(a(),l("span",tS," \xB7 reviewers are never identified")):f("v-if",!0)],64)):(a(),l("span",nS,"not recorded"))])]),n("div",null,[t[106]||(t[106]=n("dt",null,"Repository",-1)),n("dd",null,[e.currentOccurrence().repoId?(a(),l("a",{key:0,class:"errs-mono",href:e.errRepoHref(e.currentOccurrence().repoId)},c(e.currentOccurrence().repoId),9,sS)):(a(),l("span",oS,"not recorded")),e.ownerOf(e.currentOccurrence().repoId)?.source?(a(),l("span",iS," \xB7 "+c(e.ownerOf(e.currentOccurrence().repoId).source),1)):f("v-if",!0)])]),n("div",null,[t[107]||(t[107]=n("dt",null,"User",-1)),n("dd",null,[e.currentOccurrence().userId?(a(),l("a",{key:0,href:e.errUserHref(e.currentOccurrence().userId)},c(e.userName(e.currentOccurrence().userId)?"@"+e.userName(e.currentOccurrence().userId):e.currentOccurrence().userId),9,rS)):(a(),l("span",aS,"not recorded"))])]),n("div",null,[t[108]||(t[108]=n("dt",null,"Service \xB7 release",-1)),n("dd",null,[h(c(e.currentOccurrence().service||e.selectedIssue.service||"unknown")+" \xB7 ",1),e.currentOccurrence().release&&e.currentOccurrence().release!=="unknown"?(a(),l("code",lS,c(e.currentOccurrence().release.slice(0,7)),1)):(a(),l("span",dS,"release not recorded"))])]),(a(),l(N,null,U(["requestId","jobId"],s=>n("div",{key:s},[n("dt",null,c(s==="requestId"?"Request ID":"Job ID"),1),n("dd",null,[e.currentOccurrence()[s]?(a(),l(N,{key:0},[n("code",uS,c(e.currentOccurrence()[s]),1),t[109]||(t[109]=h()),n("button",{type:"button",class:"errs-link-button",onClick:i=>e.copyValue(e.currentOccurrence()[s],s==="requestId"?"Request ID":"Job ID")},"Copy",8,cS)],64)):(a(),l("span",pS,"not recorded"))])])),64))])])):f("v-if",!0),e.requestTab==="exception"?(a(),l("div",fS,[e.exceptionRecord().record?(a(),l(N,{key:0},[e.exceptionRecord().fromSample?(a(),l("p",mS,"This occurrence has no stack of its own; showing the latest occurrence's.")):f("v-if",!0),n("dl",hS,[n("div",null,[t[111]||(t[111]=n("dt",null,"Type",-1)),n("dd",null,[n("code",null,c(e.exceptionRecord().record.errorType||"not recorded"),1)])]),n("div",null,[t[112]||(t[112]=n("dt",null,"Code",-1)),n("dd",null,[e.exceptionRecord().record.errorCode?(a(),l("code",gS,c(e.exceptionRecord().record.errorCode),1)):(a(),l("span",yS,"not recorded"))])]),n("div",null,[t[113]||(t[113]=n("dt",null,"Cause",-1)),n("dd",null,[e.exceptionRecord().record.causeType?(a(),l("code",vS,c(e.exceptionRecord().record.causeType),1)):(a(),l("span",bS,"not recorded"))])])]),t[115]||(t[115]=n("h3",{class:"errs-subhead
Line truncated
|
|
|
|
|
`).length+1)),placeholder:`Jane Smith
|
|
|
|
|
MIT CSAIL
|
|
|
|
|
jane.smith@example.org`},null,10,uM),[[u,{state:e.viewState,set:d=>{e.terms=d},value:e.terms,form:"anonymize",options:{debounce:250}}]]),t[132]||(t[132]=n("small",{class:"form-text text-muted"},"One term per line.",-1)),n("details",cM,[t[127]||(t[127]=n("summary",null,"Regex & replacement syntax",-1)),t[128]||(t[128]=g()),n("small",pM,[t[121]||(t[121]=g("Regex is supported. Replaced by ",-1)),n("code",null,c(e.site_options?.ANONYMIZATION_MASK)+"-[N]",1),t[122]||(t[122]=g(", or use ",-1)),t[123]||(t[123]=n("code",null,"term=>replacement",-1)),t[124]||(t[124]=g(" to pick your own (e.g. ",-1)),t[125]||(t[125]=n("code",null,"Anonymous=>ABC",-1)),t[126]||(t[126]=g(").",-1))])]),(a(!0),l(R,null,_((e.termHints||[]).slice(0,3),d=>(a(),l("div",{class:"term-hint",key:d.line},[n("span",null,[t[129]||(t[129]=g("In ",-1)),n("code",null,c(d.term),1),t[130]||(t[130]=g(", ",-1)),n("code",null,c(d.symbols.join(" ")),1),g(" "+c(d.symbols.length>1?"are regex symbols":"is a regex symbol")+", so it may not match the text as written.",1)]),n("button",{type:"button",class:"btn btn-outline-ink btn-sm",onClick:h=>e.matchTermAsWritten(d.line)},"Match as written",8,fM)]))),128)),(e.termHints||[]).length>3?(a(),l("div",mM,c(e.termHints.length-3)+" more "+c(e.termHints.length-3===1?"term uses":"terms use")+" regex symbols.",1)):f("v-if",!0),A(n("div",hM,"Terms are in an invalid format.",512),[[ee,e.anonymize?.terms?.errors?.format]])]),A(n("div",gM,[n("div",vM,[t[133]||(t[133]=n("span",{class:"paper-field-label",id:"preserve-files-label"},"Unredacted files",-1)),n("span",yM,c(e.preserveSummary()),1)]),n("button",{type:"button",class:"btn btn-outline-ink btn-sm","aria-describedby":"preserve-files-label",disabled:!e.source?.commit,onClick:t[26]||(t[26]=d=>e.openPreserveFiles())},c((e.options?.preserveFiles||[]).length?"Edit":"Choose files"),9,bM)],512),[[ee,e.detectedType==="repo"]]),e.preserve?.open?(a(),l("dialog",{key:0,id:"preserve-files-dialog",class:"preserve-dialog","aria-labelledby":"preserve-files-title",onCancel:t[31]||(t[31]=de(d=>e.closePreserveFiles(),["prevent"]))},[n("form",{onSubmit:t[30]||(t[30]=de(d=>e.savePreserveFiles(),["prevent"]))},[t[137]||(t[137]=n("h2",{id:"preserve-files-title"},"Leave files unredacted",-1)),t[138]||(t[138]=n("p",{class:"preserve-intro"},"Checked files are shown exactly as written, for example a bibliography where redacted self-citations would reveal you. File names are still redacted.",-1)),A(n("input",{type:"search",id:"preserve-files-search",class:"form-control",placeholder:"Search files","aria-label":"Search files",autocomplete:"off","onUpdate:modelValue":t[27]||(t[27]=d=>e.preserve.search=d)},null,512),[[ct,e.preserve.search]]),n("div",wM,[e.preserve.loading?(a(),l("p",kM,"Loading files from GitHub\u2026")):e.preserve.error?(a(),l("p",CM,c(e.preserve.error),1)):(a(),l(R,{key:2},[(a(!0),l(R,null,_(e.preserveRows(),(d,h)=>(a(),l("div",{class:"preserve-item",key:d.kind+":"+d.path,style:Me({paddingLeft:d.depth*18+6+"px"})},[d.kind==="dir"?(a(),l("button",{key:0,type:"button",class:"preserve-caret","aria-expanded":d.open?"true":"false","aria-label":(d.open?"Collapse ":"Expand ")+d.label,onClick:m=>e.togglePreserveDir(d.path)},c(d.open?"\u25BE":"\u25B8"),9,SM)):(a(),l("span",EM)),n("input",{type:"checkbox",id:"pf-"+h,"aria-label":d.kind==="dir"?"Leave folder "+d.path+" unredacted":null,checked:d.state==="all",".indeterminate":d.state==="some",disabled:d.locked,onChange:m=>d.kind==="dir"?e.togglePreserveFolder(d.path):e.togglePreserveFile(d.path)},null,40,NM),n("label",{for:d.kind==="file"?"pf-"+h:null,class:"preserve-name",onClick:m=>d.kind==="dir"&&e.togglePreserveDir(d.path)},c(d.label),9,RM),d.note?(a(),l("span",TM,c(d.note),1)):f("v-if",!0)],4))),128)),!e.preserve.loading&&!e.preserveRows().length?(a(),l("p",PM,c(e.preserve.search?"No file matches your search.":"No text files in this commit."),1)):f("v-if",!0)],64))]),e.preserve.truncated?(a(),l("p",AM,"This repository has too many files to list them all. Use a pattern for files you cannot find.")):f("v-if",!0),n("details",{class:"preserve-patterns",open:e.preserve.patternsOpen},[t[134]||(t[134]=n("summary",null,"Patterns",-1)),A(n("textarea",{class:"form-control",rows:"3","aria-label":"Patterns",placeholder:`*.bib
|
|
|
|
|
paper/appendix/**`,"onUpdate:modelValue":t[28]||(t[28]=d=>e.preserve.patterns=d)},null,512),[[ct,e.preserve.patterns]]),t[135]||(t[135]=n("small",{class:"form-text text-muted"},[g("One per line, as in .gitignore: "),n("code",null,"*.bib"),g(" matches in any folder; "),n("code",null,"/refs.bib"),g(" and "),n("code",null,"paper/refs.bib"),g(" match from the repository root; a folder name such as "),n("code",null,"drafts/"),g(" covers everything inside it; "),n("code",null,"!private.bib"),g(" excludes again.")],-1))],8,DM),n("div",IM,[n("span",OM,c(e.preserve.loading||e.preserve.error?"":e.preserveCount()+(e.preserveCount()===1?" file":" files")+" will be shown as written"),1),n("span",MM,[n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[29]||(t[29]=d=>e.closePreserveFiles())},"Cancel"),t[136]||(t[136]=n("button",{type:"submit",class:"btn btn-ink"},"Save",-1))])])],32)],32)):f("v-if",!0)],512),[[ee,e.detectedType&&e.sourceReady()]]),A(n("section",VM,[t[159]||(t[159]=n("h2",{class:"paper-section-eyebrow"},"Display",-1)),A(n("div",null,[n("div",LM,[A(n("input",qM,null,512),[[u,{state:e.viewState,set:d=>{e.options.link=d},value:e.options?.link,form:"anonymize",options:{}}]]),t[140]||(t[140]=n("label",{class:"form-check-label",for:"link"},"Keep links",-1))]),n("div",$M,[A(n("input",FM,null,512),[[u,{state:e.viewState,set:d=>{e.options.image=d},value:e.options?.image,form:"anonymize",options:{}}]]),t[141]||(t[141]=n("label",{class:"form-check-label",for:"image"},"Display images",-1))]),n("div",UM,[A(n("input",BM,null,512),[[u,{state:e.viewState,set:d=>{e.options.pdf=d},value:e.options?.pdf,form:"anonymize",options:{}}]]),t[142]||(t[142]=n("label",{class:"form-check-label",for:"pdf"},"Display PDFs",-1))]),n("div",_M,[A(n("input",zM,null,512),[[u,{state:e.viewState,set:d=>{e.options.notebook=d},value:e.options?.notebook,form:"anonymize",options:{}}]]),t[143]||(t[143]=n("label",{class:"form-check-label",for:"notebook"},"Display notebooks",-1))]),n("div",HM,[A(n("input",{class:"form-check-input",type:"checkbox",id:"page",name:"page",disabled:!e.details?.hasPage||e.details?.pageSource&&e.details?.pageSource?.branch!==e.source?.branch},null,8,jM),[[u,{state:e.viewState,set:d=>{e.options.page=d},value:e.options?.page,form:"anonymize",options:{}}]]),t[144]||(t[144]=n("label",{class:"form-check-label",for:"page"},"GitHub Pages",-1)),e.details?.hasPage?f("v-if",!0):(a(),l("small",GM,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?(a(),l("small",WM,c(e.fmt?.translate("WARNINGS.page_branch_mismatch",{pageBranch:e.details?.pageSource?.branch,selectedBranch:e.source?.branch})),1)):f("v-if",!0)])],512),[[ee,e.detectedType==="repo"]]),e.detectedType==="repo"&&(e.options.image||e.options.pdf)?(a(),l("p",KM,[...t[145]||(t[145]=[g("Images and PDFs are served unchanged. Review their contents and metadata before sharing. ",-1),n("a",{href:"/faq#formats"},"Supported formats",-1)])])):f("v-if",!0),A(n("div",null,[n("div",YM,[A(n("input",XM,null,512),[[u,{state:e.viewState,set:d=>{e.options.title=d},value:e.options?.title,form:"anonymize",options:{}}]]),t[146]||(t[146]=n("label",{class:"form-check-label",for:"title-gist"},"Gist description",-1))]),n("div",JM,[A(n("input",QM,null,512),[[u,{state:e.viewState,set:d=>{e.options.content=d},value:e.options?.content,form:"anonymize",options:{}}]]),t[147]||(t[147]=n("label",{class:"form-check-label",for:"content-gist"},"File contents",-1))]),n("div",ZM,[A(n("input",xM,null,512),[[u,{state:e.viewState,set:d=>{e.options.comments=d},value:e.options?.comments,form:"anonymize",options:{}}]]),t[148]||(t[148]=n("label",{class:"form-check-label",for:"comments-gist"},"Comments",-1))]),n("div",eV,[A(n("input",tV,null,512),[[u,{state:e.viewState,set:d=>{e.options.username=d},value:e.options?.username,form:"anonymize",options:{}}]]),t[149]||(t[149]=n("label",{class:"form-check-label",for:"username-gist"},"Usernames",-1))]),n("div",nV,[A(n("input",sV,null,512),[[u,{state:e.viewState,set:d=>{e.options.date=d},value:e.options?.date,form:"anonymize",options:{}}]]),t[150]||(t[150]=n("label",{class:"form-check-label",for:"date-gist"},"Dates",-1))]),n("div",oV,[A(n("input",iV,null,512),[[u,{state:e.viewState,set:d=>{e.options.origin=d},value:e.options?.origin,form:"anonymize",options:{}}]]),t[151]||(t[151]=n("label",{class:"form-check-label",for:"origin-gist"},"Source gist ID",-1))])],512),[[ee,e.detectedType==="gist"]]),A(n("div",null,[n("div",rV,[A(n("input",aV,null,512),[[u,{state:e.viewState,set:d=>{e.options.title=d},value:e.options?.title,form:"anonymize",options:{}}]]),t[152]||(t[152]=n("label",{class:"form-check-label",for:"title"},"PR title",-1))]),n("div",lV,[A(n("input",dV,null,512),[[u,{state:e.viewState,set:d=>{e.options.body=d},value:e.options?.body,form:"anonymize",options:{}}]]),t[153]||(t[153]=n("label",{class:"form-check-label",for:"body"},"PR body",-1))])
Line truncated
|
|
|
|
|
for the rows when a reload (tab, search, filter) has none of the new rows yet `),(a(),l(R,null,_([1,2,3,4],(r,u)=>(a(),l(R,null,[e.loading||e.refreshing&&e.filteredItems?.length==0?(a(),l("div",MB,[...t[63]||(t[63]=[n("div",{class:"cell-anon",role:"cell"},[n("span",{class:"skeleton skeleton-badge"}),n("div",{class:"anon-text"},[n("span",{class:"skeleton skeleton-line",style:{width:"38%"}}),n("span",{class:"skeleton skeleton-line skeleton-line-sm",style:{width:"56%"}})])],-1),n("div",{class:"cell-status",role:"cell"},[n("span",{class:"skeleton skeleton-line",style:{width:"60%"}})],-1),n("div",{class:"cell-views num",role:"cell"},[n("span",{class:"skeleton skeleton-line",style:{width:"40%"}})],-1),n("div",{class:"cell-expires",role:"cell"},[n("span",{class:"skeleton skeleton-line",style:{width:"55%"}})],-1),n("div",{class:"cell-actions",role:"cell"},null,-1)])])):f("v-if",!0)],64))),64)),(a(!0),l(R,null,_(e.filteredItems,(r,u)=>(a(),l(R,{key:r?._type+":"+(r?._id||u)},[e.loading?f("v-if",!0):(a(),l("div",{key:0,class:T(["paper-table-row",{"repo-inactive":r?._statusKey=="expired"||r?._statusKey=="removed","repo-error":r?.status=="error","row-clickable":!!r?._viewUrl}]),role:"row",onClick:p=>e.openItem(r,p)},[n("div",LB,[n("span",{class:"project-type-icon",role:"img","aria-label":r?._type==="repo"?"Repository":r?._type==="pr"?"Pull request":"Gist",title:r?._type==="repo"?"Repository":r?._type==="pr"?"Pull request":"Gist"},[(a(),l("svg",$B,[n("use",{href:"#project-type-"+r._type},null,8,FB)]))],8,qB),n("div",UB,[n("div",BB,[r?._viewUrl?(a(),l("a",{key:0,class:"repo-name",title:r._label,href:e.safeUrl(r?._viewUrl)},[(r?._label||"").indexOf("/")>0?(a(),l(R,{key:0},[n("span",zB,c(r._label.slice(0,r._label.indexOf("/")+1)),1),t[64]||(t[64]=n("wbr",null,null,-1)),n("span",HB,c(r._label.slice(r._label.indexOf("/")+1)),1)],64)):(a(),l(R,{key:1},[g(c(r?._label),1)],64))],8,_B)):f("v-if",!0),r?._viewUrl?f("v-if",!0):(a(),l("span",jB,[(r?._label||"").indexOf("/")>0?(a(),l(R,{key:0},[n("span",GB,c(r._label.slice(0,r._label.indexOf("/")+1)),1),t[65]||(t[65]=n("wbr",null,null,-1)),n("span",WB,c(r._label.slice(r._label.indexOf("/")+1)),1)],64)):(a(),l(R,{key:1},[g(c(r?._label),1)],64))])),r?.role==="coauthor"?(a(),l("span",KB,"Co-author")):f("v-if",!0)]),r?._id||r?._type==="repo"&&r?.source?.commit||r?.conference?(a(),l("div",YB,[r?._id?(a(),l("code",{key:0,class:"anonymous-id",title:r._id},[r._id.length>14?(a(),l(R,{key:0},[n("span",JB,c(r._id.slice(0,-6)),1),n("span",QB,c(r._id.slice(-6)),1)],64)):(a(),l(R,{key:1},[g(c(r._id),1)],64))],8,XB)):f("v-if",!0),r?._type==="repo"&&r?.source?.commit?(a(),l("span",{key:1,class:"commit-hash",title:r.source.commit},c(r.source.commit.substring(0,7)),9,ZB)):f("v-if",!0),r?.conference?(a(),l("span",{key:2,class:"cell-conf conf-tag",title:"Conference: "+r.conference},[t[66]||(t[66]=n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-conference"})],-1)),n("span",{class:"conf-name",textContent:c(r?.conference)},null,8,e_)],8,xB)):f("v-if",!0)])):f("v-if",!0)])]),n("div",t_,[n("div",n_,[n("div",s_,[n("span",{class:T(["status-dot","status-"+r?._statusKey]),"aria-hidden":"true"},null,2),n("span",{class:"status-word",textContent:c(e.fmt?.statusLabel(r?.status))},null,8,o_),r?.status=="removed"?(a(),l(R,{key:0},[t[67]||(t[67]=n("span",{class:"seg-sep status-removed-sep","aria-hidden":"true"},"\xB7",-1)),n("button",{type:"button",class:"project-attention-action status-enable",onClick:de(p=>e.refreshItem(r),["stop"]),title:"Reviewers can no longer open this link"},"Enable again",8,i_)],64)):f("v-if",!0)]),r?.status=="error"&&r?.statusMessage?(a(),l("div",{key:0,class:"status-sub status-sub-error",textContent:c(e.fmt?.statusMsg(r?.statusMessage)),title:r?.statusMessage},null,8,r_)):f("v-if",!0),r?._stale?(a(),l("div",{key:1,class:"status-sub status-sub-warn",title:"Last activity "+e.fmt?.humanTime(r?.anonymizeDate||r?.lastView)},c(e.idleText(r)),9,a_)):f("v-if",!0),r.status==="error"&&r._editUrl?(a(),l("a",{key:2,class:"project-attention-action",href:e.safeUrl(r._editUrl)},"Fix source",8,l_)):f("v-if",!0),r._stale||r._broken?(a(),l("div",d_,[r._stale&&!r._broken?(a(),l("span",u_,[...t[68]||(t[68]=[g("May be stuck",-1),n("span",{"aria-hidden":"true"}," \xB7 ",-1)])])):f("v-if",!0),r._stale||r._broken?(a(),l("button",{key:1,type:"button",class:"project-attention-action",onClick:de(p=>e.showProjectDetails(r),["stop"]),"data-project-actions":r._broken?encodeURIComponent(r._type+":"+r._id):null,"aria-controls":r._broken?e.projectDetailsId(r):null,"aria-expanded":r._broken?e.selectedProject===r:null},c(r._broken?"Review details":"Check progress"),9,c_)):f("v-if",!0)])):f("v-if",!0),r?.status=="expired"?(a(),l("button",{key:4,type:"button",class:"project-attention-action",onClick:de(p=>e.extendItem(r),["stop"]),title:"Reviewers can no longer open this link"},"Extend 6 months",8,p_)):f("v-if",!0),r?.status=="removed"&&r?.anonymizeDate?(a(),l("div",f_,"anonymized
Line truncated
|
|
|
|
|
anonymous_github`)])])])])]),f(" Limitations "),n("h4",{class:"faq-cat"},[n("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})]),g("Limitations ")]),n("div",{class:"panel-group",id:"faq-limitations",role:"tablist","aria-multiselectable":"true"},[n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingLimitation"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-limitations",href:"#limitation","aria-expanded":"false","aria-controls":"limitation"}," What are the limitations of Anonymous GitHub? ")])]),n("div",{id:"limitation",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingLimitation"},[n("div",{class:"panel-body p-3"},[n("ul",null,[n("li",null," Anonymous GitHub only anonymizes text-based files. Binary files (compiled executables, archives, etc.) are served as-is without anonymization. "),n("li",null," Files larger than 8 MB are not supported. "),n("li",null," Static site generators (such as Jekyll) used with GitHub Pages are not fully supported, although Markdown files are converted to HTML. "),n("li",null," The anonymization of terms within source code may change the behavior of the program (e.g., if a replaced term appears in a string literal or identifier). ")])])])])]),f(" Privacy and security "),n("h4",{class:"faq-cat"},[n("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})]),g("Privacy and security ")]),n("div",{class:"panel-group",id:"faq-privacy",role:"tablist","aria-multiselectable":"true"},[n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingData"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-privacy",href:"#data","aria-expanded":"false","aria-controls":"data"}," How is my data handled? ")])]),n("div",{id:"data",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingData"},[n("div",{class:"panel-body p-3"},[n("p",null," Repository data is used to provide the anonymization service. If you purchase a plan, Stripe processes payment and billing information. When a repository is removed or expires, only its configuration is retained. This makes it easy to restore the repository if needed and ensures that no future repository reuses the same ID. ")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingPermissions"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-privacy",href:"#permissions","aria-expanded":"false","aria-controls":"permissions"}," Why does GitHub say Anonymous GitHub asks for write access? ")])]),n("div",{id:"permissions",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingPermissions"},[n("div",{class:"panel-body p-3"},[n("p",null,[g("The GitHub App has read-only access to the repositories you choose. You can change repository access on your "),n("a",{href:"/connections"},"GitHub connections"),g(" page.")]),n("p",null,"Legacy GitHub OAuth includes write access to private repositories because GitHub's OAuth scopes do not offer a read-only option for them. Existing OAuth anonymizations and gists can still use this connection."),n("p",null,"Anonymous GitHub reads repository content. It never pushes, modifies, or deletes files on GitHub.")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingViewer"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-privacy",href:"#viewer","aria-expanded":"false","aria-controls":"viewer"}," Can repository owners see who viewed their anonymized repository? ")])]),n("div",{id:"viewer",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingViewer"},[n("div",{class:"panel-body p-3"},[n("p",null," No. Only the total number of views is tracked as an incremental counter. It is not possible for the repository owner or for Anonymous GitHub to identify individual viewers. Reviewer anonymity is fully preserved. ")])])])]),f(" Self-hosting "),n("h4",{class:"faq-cat"},[n("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[n("use",{href:"#project-icon-storage"})]),g("Self"),n("span",{class:"serif-hy"},"-"),g("hosting ")]),n("div",{class:"panel-group",id:"faq-hosting",role:"tablist","aria-multiselectable":"true"},[n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingDeploy"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-hosting",href:"#deploy","aria-expanded":"false","aria-controls":"deploy"}," Can I deploy my own instance? ")])]),n("div",{id:"deploy",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingDeploy"},[n("div",{cla
Line truncated
|
|
|
|
|
jane.smith@example.org`},null,10,W6),[[u,{state:e.viewState,set:d=>{e.terms=d},value:e.terms,form:"anonymize",options:{debounce:250}}]]),t[132]||(t[132]=n("small",{class:"form-text text-muted"},"One term per line.",-1)),n("details",K6,[t[127]||(t[127]=n("summary",null,"Regex & replacement syntax",-1)),t[128]||(t[128]=h()),n("small",Y6,[t[121]||(t[121]=h("Regex is supported. Replaced by ",-1)),n("code",null,c(e.site_options?.ANONYMIZATION_MASK)+"-[N]",1),t[122]||(t[122]=h(", or use ",-1)),t[123]||(t[123]=n("code",null,"term=>replacement",-1)),t[124]||(t[124]=h(" to pick your own (e.g. ",-1)),t[125]||(t[125]=n("code",null,"Anonymous=>ABC",-1)),t[126]||(t[126]=h(").",-1))])]),(a(!0),l(N,null,U((e.termHints||[]).slice(0,3),d=>(a(),l("div",{class:"term-hint",key:d.line},[n("span",null,[t[129]||(t[129]=h("In ",-1)),n("code",null,c(d.term),1),t[130]||(t[130]=h(", ",-1)),n("code",null,c(d.symbols.join(" ")),1),h(" "+c(d.symbols.length>1?"are regex symbols":"is a regex symbol")+", so it may not match the text as written.",1)]),n("button",{type:"button",class:"btn btn-outline-ink btn-sm",onClick:g=>e.matchTermAsWritten(d.line)},"Match as written",8,X6)]))),128)),(e.termHints||[]).length>3?(a(),l("div",Q6,c(e.termHints.length-3)+" more "+c(e.termHints.length-3===1?"term uses":"terms use")+" regex symbols.",1)):f("v-if",!0),O(n("div",J6,"Terms are in an invalid format.",512),[[te,e.anonymize?.terms?.errors?.format]])]),O(n("div",Z6,[n("div",x6,[t[133]||(t[133]=n("span",{class:"paper-field-label",id:"preserve-files-label"},"Unredacted files",-1)),n("span",eM,c(e.preserveSummary()),1)]),n("button",{type:"button",class:"btn btn-outline-ink btn-sm","aria-describedby":"preserve-files-label",disabled:!e.source?.commit,onClick:t[26]||(t[26]=d=>e.openPreserveFiles())},c((e.options?.preserveFiles||[]).length?"Edit":"Choose files"),9,tM)],512),[[te,e.detectedType==="repo"]]),e.preserve?.open?(a(),l("dialog",{key:0,id:"preserve-files-dialog",class:"preserve-dialog","aria-labelledby":"preserve-files-title",onCancel:t[31]||(t[31]=de(d=>e.closePreserveFiles(),["prevent"]))},[n("form",{onSubmit:t[30]||(t[30]=de(d=>e.savePreserveFiles(),["prevent"]))},[t[137]||(t[137]=n("h2",{id:"preserve-files-title"},"Leave files unredacted",-1)),t[138]||(t[138]=n("p",{class:"preserve-intro"},"Checked files are shown exactly as written, for example a bibliography where redacted self-citations would reveal you. File names are still redacted.",-1)),O(n("input",{type:"search",id:"preserve-files-search",class:"form-control",placeholder:"Search files","aria-label":"Search files",autocomplete:"off","onUpdate:modelValue":t[27]||(t[27]=d=>e.preserve.search=d)},null,512),[[ft,e.preserve.search]]),n("div",nM,[e.preserve.loading?(a(),l("p",sM,"Loading files from GitHub\u2026")):e.preserve.error?(a(),l("p",oM,c(e.preserve.error),1)):(a(),l(N,{key:2},[(a(!0),l(N,null,U(e.preserveRows(),(d,g)=>(a(),l("div",{class:"preserve-item",key:d.kind+":"+d.path,style:De({paddingLeft:d.depth*18+6+"px"})},[d.kind==="dir"?(a(),l("button",{key:0,type:"button",class:"preserve-caret","aria-expanded":d.open?"true":"false","aria-label":(d.open?"Collapse ":"Expand ")+d.label,onClick:m=>e.togglePreserveDir(d.path)},c(d.open?"\u25BE":"\u25B8"),9,iM)):(a(),l("span",rM)),n("input",{type:"checkbox",id:"pf-"+g,"aria-label":d.kind==="dir"?"Leave folder "+d.path+" unredacted":null,checked:d.state==="all",".indeterminate":d.state==="some",disabled:d.locked,onChange:m=>d.kind==="dir"?e.togglePreserveFolder(d.path):e.togglePreserveFile(d.path)},null,40,aM),n("label",{for:d.kind==="file"?"pf-"+g:null,class:"preserve-name",onClick:m=>d.kind==="dir"&&e.togglePreserveDir(d.path)},c(d.label),9,lM),d.note?(a(),l("span",dM,c(d.note),1)):f("v-if",!0)],4))),128)),!e.preserve.loading&&!e.preserveRows().length?(a(),l("p",uM,c(e.preserve.search?"No file matches your search.":"No text files in this commit."),1)):f("v-if",!0)],64))]),e.preserve.truncated?(a(),l("p",cM,"This repository has too many files to list them all. Use a pattern for files you cannot find.")):f("v-if",!0),n("details",{class:"preserve-patterns",open:e.preserve.patternsOpen},[t[134]||(t[134]=n("summary",null,"Patterns",-1)),O(n("textarea",{class:"form-control",rows:"3","aria-label":"Patterns",placeholder:`*.bib
|
|
|
|
|
paper/appendix/**`,"onUpdate:modelValue":t[28]||(t[28]=d=>e.preserve.patterns=d)},null,512),[[ft,e.preserve.patterns]]),t[135]||(t[135]=n("small",{class:"form-text text-muted"},[h("One per line, as in .gitignore: "),n("code",null,"*.bib"),h(" matches in any folder; "),n("code",null,"/refs.bib"),h(" and "),n("code",null,"paper/refs.bib"),h(" match from the repository root; a folder name such as "),n("code",null,"drafts/"),h(" covers everything inside it; "),n("code",null,"!private.bib"),h(" excludes again.")],-1))],8,pM),n("div",fM,[n("span",mM,c(e.preserve.loading||e.preserve.error?"":e.preserveCount()+(e.preserveCount()===1?" file":" files")+" will be shown as written"),1),n("span",hM,[n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[29]||(t[29]=d=>e.closePreserveFiles())},"Cancel"),t[136]||(t[136]=n("button",{type:"submit",class:"btn btn-ink"},"Save",-1))])])],32)],32)):f("v-if",!0)],512),[[te,e.detectedType&&e.sourceReady()]]),O(n("section",gM,[t[159]||(t[159]=n("h2",{class:"paper-section-eyebrow"},"Display",-1)),O(n("div",null,[n("div",yM,[O(n("input",vM,null,512),[[u,{state:e.viewState,set:d=>{e.options.link=d},value:e.options?.link,form:"anonymize",options:{}}]]),t[140]||(t[140]=n("label",{class:"form-check-label",for:"link"},"Keep links",-1))]),n("div",bM,[O(n("input",wM,null,512),[[u,{state:e.viewState,set:d=>{e.options.image=d},value:e.options?.image,form:"anonymize",options:{}}]]),t[141]||(t[141]=n("label",{class:"form-check-label",for:"image"},"Display images",-1))]),n("div",kM,[O(n("input",CM,null,512),[[u,{state:e.viewState,set:d=>{e.options.pdf=d},value:e.options?.pdf,form:"anonymize",options:{}}]]),t[142]||(t[142]=n("label",{class:"form-check-label",for:"pdf"},"Display PDFs",-1))]),n("div",EM,[O(n("input",SM,null,512),[[u,{state:e.viewState,set:d=>{e.options.notebook=d},value:e.options?.notebook,form:"anonymize",options:{}}]]),t[143]||(t[143]=n("label",{class:"form-check-label",for:"notebook"},"Display notebooks",-1))]),n("div",NM,[O(n("input",{class:"form-check-input",type:"checkbox",id:"page",name:"page",disabled:!e.details?.hasPage||e.details?.pageSource&&e.details?.pageSource?.branch!==e.source?.branch},null,8,RM),[[u,{state:e.viewState,set:d=>{e.options.page=d},value:e.options?.page,form:"anonymize",options:{}}]]),t[144]||(t[144]=n("label",{class:"form-check-label",for:"page"},"GitHub Pages",-1)),e.details?.hasPage?f("v-if",!0):(a(),l("small",TM,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?(a(),l("small",PM,c(e.fmt?.translate("WARNINGS.page_branch_mismatch",{pageBranch:e.details?.pageSource?.branch,selectedBranch:e.source?.branch})),1)):f("v-if",!0)])],512),[[te,e.detectedType==="repo"]]),e.detectedType==="repo"&&(e.options.image||e.options.pdf)?(a(),l("p",DM,[...t[145]||(t[145]=[h("Images and PDFs are served unchanged. Review their contents and metadata before sharing. ",-1),n("a",{href:"/faq#formats"},"Supported formats",-1)])])):f("v-if",!0),O(n("div",null,[n("div",AM,[O(n("input",IM,null,512),[[u,{state:e.viewState,set:d=>{e.options.title=d},value:e.options?.title,form:"anonymize",options:{}}]]),t[146]||(t[146]=n("label",{class:"form-check-label",for:"title-gist"},"Gist description",-1))]),n("div",OM,[O(n("input",MM,null,512),[[u,{state:e.viewState,set:d=>{e.options.content=d},value:e.options?.content,form:"anonymize",options:{}}]]),t[147]||(t[147]=n("label",{class:"form-check-label",for:"content-gist"},"File contents",-1))]),n("div",VM,[O(n("input",qM,null,512),[[u,{state:e.viewState,set:d=>{e.options.comments=d},value:e.options?.comments,form:"anonymize",options:{}}]]),t[148]||(t[148]=n("label",{class:"form-check-label",for:"comments-gist"},"Comments",-1))]),n("div",LM,[O(n("input",$M,null,512),[[u,{state:e.viewState,set:d=>{e.options.username=d},value:e.options?.username,form:"anonymize",options:{}}]]),t[149]||(t[149]=n("label",{class:"form-check-label",for:"username-gist"},"Usernames",-1))]),n("div",FM,[O(n("input",UM,null,512),[[u,{state:e.viewState,set:d=>{e.options.date=d},value:e.options?.date,form:"anonymize",options:{}}]]),t[150]||(t[150]=n("label",{class:"form-check-label",for:"date-gist"},"Dates",-1))]),n("div",BM,[O(n("input",HM,null,512),[[u,{state:e.viewState,set:d=>{e.options.origin=d},value:e.options?.origin,form:"anonymize",options:{}}]]),t[151]||(t[151]=n("label",{class:"form-check-label",for:"origin-gist"},"Source gist ID",-1))])],512),[[te,e.detectedType==="gist"]]),O(n("div",null,[n("div",zM,[O(n("input",jM,null,512),[[u,{state:e.viewState,set:d=>{e.options.title=d},value:e.options?.title,form:"anonymize",options:{}}]]),t[152]||(t[152]=n("label",{class:"form-check-label",for:"title"},"PR title",-1))]),n("div",_M,[O(n("input",GM,null,512),[[u,{state:e.viewState,set:d=>{e.options.body=d},value:e.options?.body,form:"anonymize",options:{}}]]),t[153]||(t[153]=n("label",{class:"form-check-label",for:"body"},"PR body",-1))])
Line truncated
|
|
|
|
|
for the rows when a reload (tab, search, filter) has none of the new rows yet `),(a(),l(N,null,U([1,2,3,4],(o,u)=>(a(),l(N,null,[e.loading||e.refreshing&&e.filteredItems?.length==0?(a(),l("div",hB,[...t[63]||(t[63]=[n("div",{class:"cell-anon",role:"cell"},[n("span",{class:"skeleton skeleton-badge"}),n("div",{class:"anon-text"},[n("span",{class:"skeleton skeleton-line",style:{width:"38%"}}),n("span",{class:"skeleton skeleton-line skeleton-line-sm",style:{width:"56%"}})])],-1),n("div",{class:"cell-status",role:"cell"},[n("span",{class:"skeleton skeleton-line",style:{width:"60%"}})],-1),n("div",{class:"cell-views num",role:"cell"},[n("span",{class:"skeleton skeleton-line",style:{width:"40%"}})],-1),n("div",{class:"cell-expires",role:"cell"},[n("span",{class:"skeleton skeleton-line",style:{width:"55%"}})],-1),n("div",{class:"cell-actions",role:"cell"},null,-1)])])):f("v-if",!0)],64))),64)),(a(!0),l(N,null,U(e.filteredItems,(o,u)=>(a(),l(N,{key:o?._type+":"+(o?._id||u)},[e.loading?f("v-if",!0):(a(),l("div",{key:0,class:T(["paper-table-row",{"repo-inactive":o?._statusKey=="expired"||o?._statusKey=="removed","repo-error":o?.status=="error","row-clickable":!!o?._viewUrl}]),role:"row",onClick:p=>e.openItem(o,p)},[n("div",yB,[n("span",{class:"project-type-icon",role:"img","aria-label":o?._type==="repo"?"Repository":o?._type==="pr"?"Pull request":"Gist",title:o?._type==="repo"?"Repository":o?._type==="pr"?"Pull request":"Gist"},[(a(),l("svg",bB,[n("use",{href:"#project-type-"+o._type},null,8,wB)]))],8,vB),n("div",kB,[n("div",CB,[o?._viewUrl?(a(),l("a",{key:0,class:"repo-name",title:o._label,href:e.safeUrl(o?._viewUrl)},[(o?._label||"").indexOf("/")>0?(a(),l(N,{key:0},[n("span",SB,c(o._label.slice(0,o._label.indexOf("/")+1)),1),t[64]||(t[64]=n("wbr",null,null,-1)),n("span",NB,c(o._label.slice(o._label.indexOf("/")+1)),1)],64)):(a(),l(N,{key:1},[h(c(o?._label),1)],64))],8,EB)):f("v-if",!0),o?._viewUrl?f("v-if",!0):(a(),l("span",RB,[(o?._label||"").indexOf("/")>0?(a(),l(N,{key:0},[n("span",TB,c(o._label.slice(0,o._label.indexOf("/")+1)),1),t[65]||(t[65]=n("wbr",null,null,-1)),n("span",PB,c(o._label.slice(o._label.indexOf("/")+1)),1)],64)):(a(),l(N,{key:1},[h(c(o?._label),1)],64))])),o?.role==="coauthor"?(a(),l("span",DB,"Co-author")):f("v-if",!0)]),o?._id||o?._type==="repo"&&o?.source?.commit||o?.conference?(a(),l("div",AB,[o?._id?(a(),l("code",{key:0,class:"anonymous-id",title:o._id},[o._id.length>14?(a(),l(N,{key:0},[n("span",OB,c(o._id.slice(0,-6)),1),n("span",MB,c(o._id.slice(-6)),1)],64)):(a(),l(N,{key:1},[h(c(o._id),1)],64))],8,IB)):f("v-if",!0),o?._type==="repo"&&o?.source?.commit?(a(),l("span",{key:1,class:"commit-hash",title:o.source.commit},c(o.source.commit.substring(0,7)),9,VB)):f("v-if",!0),o?.conference?(a(),l("span",{key:2,class:"cell-conf conf-tag",title:"Conference: "+o.conference},[t[66]||(t[66]=n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-conference"})],-1)),n("span",{class:"conf-name",textContent:c(o?.conference)},null,8,LB)],8,qB)):f("v-if",!0)])):f("v-if",!0)])]),n("div",$B,[n("div",FB,[n("div",UB,[n("span",{class:T(["status-dot","status-"+o?._statusKey]),"aria-hidden":"true"},null,2),n("span",{class:"status-word",textContent:c(e.fmt?.statusLabel(o?.status))},null,8,BB),o?.status=="removed"?(a(),l(N,{key:0},[t[67]||(t[67]=n("span",{class:"seg-sep status-removed-sep","aria-hidden":"true"},"\xB7",-1)),n("button",{type:"button",class:"project-attention-action status-enable",onClick:de(p=>e.refreshItem(o),["stop"]),title:"Reviewers can no longer open this link"},"Enable again",8,HB)],64)):f("v-if",!0)]),o?.status=="error"&&o?.statusMessage?(a(),l("div",{key:0,class:"status-sub status-sub-error",textContent:c(e.fmt?.statusMsg(o?.statusMessage)),title:o?.statusMessage},null,8,zB)):f("v-if",!0),o?._stale?(a(),l("div",{key:1,class:"status-sub status-sub-warn",title:"Last activity "+e.fmt?.humanTime(o?.anonymizeDate||o?.lastView)},c(e.idleText(o)),9,jB)):f("v-if",!0),o.status==="error"&&o._editUrl?(a(),l("a",{key:2,class:"project-attention-action",href:e.safeUrl(o._editUrl)},"Fix source",8,_B)):f("v-if",!0),o._stale||o._broken?(a(),l("div",GB,[o._stale&&!o._broken?(a(),l("span",WB,[...t[68]||(t[68]=[h("May be stuck",-1),n("span",{"aria-hidden":"true"}," \xB7 ",-1)])])):f("v-if",!0),o._stale||o._broken?(a(),l("button",{key:1,type:"button",class:"project-attention-action",onClick:de(p=>e.showProjectDetails(o),["stop"]),"data-project-actions":o._broken?encodeURIComponent(o._type+":"+o._id):null,"aria-controls":o._broken?e.projectDetailsId(o):null,"aria-expanded":o._broken?e.selectedProject===o:null},c(o._broken?"Review details":"Check progress"),9,KB)):f("v-if",!0)])):f("v-if",!0),o?.status=="expired"?(a(),l("button",{key:4,type:"button",class:"project-attention-action",onClick:de(p=>e.extendItem(o),["stop"]),title:"Reviewers can no longer open this link"},"Extend 6 months",8,YB)):f("v-if",!0),o?.status=="removed"&&o?.anonymizeDate?(a(),l("div",XB,"anonymized
Line truncated
|
|
|
|
|
anonymous_github`)])])])])]),f(" Limitations "),n("h4",{class:"faq-cat"},[n("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})]),h("Limitations ")]),n("div",{class:"panel-group",id:"faq-limitations",role:"tablist","aria-multiselectable":"true"},[n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingLimitation"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-limitations",href:"#limitation","aria-expanded":"false","aria-controls":"limitation"}," What are the limitations of Anonymous GitHub? ")])]),n("div",{id:"limitation",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingLimitation"},[n("div",{class:"panel-body p-3"},[n("ul",null,[n("li",null," Anonymous GitHub only anonymizes text-based files. Binary files (compiled executables, archives, etc.) are served as-is without anonymization. "),n("li",null," Files larger than 8 MB are not supported. "),n("li",null," Static site generators (such as Jekyll) used with GitHub Pages are not fully supported, although Markdown files are converted to HTML. "),n("li",null," The anonymization of terms within source code may change the behavior of the program (e.g., if a replaced term appears in a string literal or identifier). ")])])])])]),f(" Privacy and security "),n("h4",{class:"faq-cat"},[n("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})]),h("Privacy and security ")]),n("div",{class:"panel-group",id:"faq-privacy",role:"tablist","aria-multiselectable":"true"},[n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingData"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-privacy",href:"#data","aria-expanded":"false","aria-controls":"data"}," How is my data handled? ")])]),n("div",{id:"data",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingData"},[n("div",{class:"panel-body p-3"},[n("p",null," Repository data is used to provide the anonymization service. If you purchase a plan, Stripe processes payment and billing information. When a repository is removed or expires, only its configuration is retained. This makes it easy to restore the repository if needed and ensures that no future repository reuses the same ID. ")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingPermissions"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-privacy",href:"#permissions","aria-expanded":"false","aria-controls":"permissions"}," Why does GitHub say Anonymous GitHub asks for write access? ")])]),n("div",{id:"permissions",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingPermissions"},[n("div",{class:"panel-body p-3"},[n("p",null,[h("The GitHub App has read-only access to the repositories you choose. You can change repository access on your "),n("a",{href:"/connections"},"GitHub connections"),h(" page.")]),n("p",null,"Legacy GitHub OAuth includes write access to private repositories because GitHub's OAuth scopes do not offer a read-only option for them. Existing OAuth anonymizations and gists can still use this connection."),n("p",null,"Anonymous GitHub reads repository content. It never pushes, modifies, or deletes files on GitHub.")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingViewer"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-privacy",href:"#viewer","aria-expanded":"false","aria-controls":"viewer"}," Can repository owners see who viewed their anonymized repository? ")])]),n("div",{id:"viewer",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingViewer"},[n("div",{class:"panel-body p-3"},[n("p",null," No. Only the total number of views is tracked as an incremental counter. It is not possible for the repository owner or for Anonymous GitHub to identify individual viewers. Reviewer anonymity is fully preserved. ")])])])]),f(" Self-hosting "),n("h4",{class:"faq-cat"},[n("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[n("use",{href:"#project-icon-storage"})]),h("Self"),n("span",{class:"serif-hy"},"-"),h("hosting ")]),n("div",{class:"panel-group",id:"faq-hosting",role:"tablist","aria-multiselectable":"true"},[n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingDeploy"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-hosting",href:"#deploy","aria-expanded":"false","aria-controls":"deploy"}," Can I deploy my own instance? ")])]),n("div",{id:"deploy",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingDeploy"},[n("div",{cla
Line truncated
|
|
|
|
|
anonymized repository often think it is about the paper, so the
|
|
|
|
|
label names the service and the tooltip says who to contact. `),n("li",{class:T(["nav-item nav-extra-item d-none d-lg-block",{"in-user-menu":!!e.user?.username}])},[...t[19]||(t[19]=[n("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"},[n("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-bug"})]),g("Report a bug ")],-1)])],2),n("li",{class:T(["nav-item nav-support-item nav-extra-item d-none d-lg-block",{"in-user-menu":!!e.user?.username}])},[...t[20]||(t[20]=[n("a",{class:"nav-link nav-support-inline",href:"https://ko-fi.com/tdurieux",target:"_blank",rel:"noopener",title:"Donate on Ko-fi to help cover hosting costs"},[n("svg",{class:"ui-icon nav-heart","aria-hidden":"true"},[n("use",{href:"#ui-icon-heart"})]),g("Support ")],-1)])],2),e.isDarkMode?f("v-if",!0):(a(),l("li",cG,[n("button",{type:"button",class:"nav-link nav-icon",title:"Switch to dark mode","aria-label":"Switch to dark mode",onClick:t[1]||(t[1]=s=>{e.darkMode(!0)})},[...t[21]||(t[21]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-moon"})],-1)])])])),e.isDarkMode?(a(),l("li",pG,[n("button",{type:"button",class:"nav-link nav-icon",title:"Switch to light mode","aria-label":"Switch to light mode",onClick:t[2]||(t[2]=s=>{e.darkMode(!1)})},[...t[22]||(t[22]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-sun"})],-1)])])])):f("v-if",!0),!e.user&&!e.isReviewerRoute?(a(),l("li",fG,[...t[23]||(t[23]=[n("a",{class:"nav-link btn-signin",target:"_self",href:"/signin","data-offset":"30"},[n("i",{class:"fab fa-github mr-1"}),g(" Sign in ")],-1)])])):f("v-if",!0),e.user?.username&&e.headerCanUpgrade&&!e.headerBillingPending?(a(),l("li",mG,[n("a",{class:"nav-link nav-upgrade",href:"/profile?upgrade=1",onClick:t[3]||(t[3]=de(s=>e.openHeaderUpgrade(),["prevent"]))},"Upgrade")])):f("v-if",!0),e.user?(a(),l("li",hG,[n("a",gG,[e.user?.photo?(a(),l("img",{key:0,width:"22",height:"22",class:"rounded-circle",src:e.safeUrl(e.user?.photo)},null,8,vG)):f("v-if",!0),n("span",yG,c(e.user?.username),1)]),n("div",bG,[n("h6",wG,"Signed in as @"+c(e.user?.username),1),t[25]||(t[25]=Ae('<a class="dropdown-item" href="/profile"><svg class="ui-icon" aria-hidden="true"><use href="#project-icon-filter"></use></svg><span>Settings<small>Defaults, quotas, account</small></span></a><a class="dropdown-item" href="/connections"><i class="fab fa-github" aria-hidden="true"></i><span>GitHub connections<small>Repository access and OAuth</small></span></a><a class="dropdown-item" href="/claim"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-link"></use></svg><span>Claim an anonymization<small>Attach an existing mirror to your account</small></span></a><div class="dropdown-divider"></div><a class="dropdown-item" href="https://github.com/tdurieux/anonymous_github/issues/new?template=issue_report.yml" target="_blank" rel="noopener"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-bug"></use></svg><span>Report a bug<small>About this service, not a paper</small></span></a><a class="dropdown-item um-extra" href="https://github.com/tdurieux/anonymous_github/" target="_blank" rel="noopener"><i class="fab fa-github" aria-hidden="true"></i><span>Source code</span></a>',6)),e.headerShowSupport?(a(),l("a",kG,[...t[24]||(t[24]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-heart"})],-1),n("span",null,"Support the project",-1)])])):f("v-if",!0),t[26]||(t[26]=n("div",{class:"dropdown-divider"},null,-1)),t[27]||(t[27]=n("a",{class:"dropdown-item",href:"/api/user/logout",target:"_self"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-logout"})]),n("span",null,"Sign out")],-1))])])):f("v-if",!0)])])],2),e.generalMessage?(a(),l("div",{key:0,class:"navbar shadow generalMessage",innerHTML:e.sanitize(e.generalMessage)},null,8,CG)):f("v-if",!0),e.emailPromptOpen?(a(),l("dialog",{key:1,id:"email-prompt",class:"email-prompt","aria-labelledby":"email-prompt-title","aria-describedby":"email-prompt-reason",onCancel:t[8]||(t[8]=de(s=>e.respondToEmailPrompt("later"),["prevent"]))},[n("form",{onSubmit:t[7]||(t[7]=de(s=>e.respondToEmailPrompt("save"),["prevent"]))},[t[30]||(t[30]=n("h2",{id:"email-prompt-title"},"Stay informed about access problems",-1)),t[31]||(t[31]=n("p",{id:"email-prompt-reason"},"Get email alerts when your GitHub token or repository access fails.",-1)),t[32]||(t[32]=n("label",{for:"email-prompt-address"},"Email address",-1)),A(n("input",{id:"email-prompt-address",class:"form-control",type:"email",autocomplete:"email",maxlength:"254",required:"","onUpdate:modelValue":t[4]||(t[4]=s=>e.emailPromptAddress=s),disabled:e.emailPromptBusy},null,8,SG),[[ct,e.emailPromptAddress]]),e.emailPromptError?(a(),l("p
Line truncated
|
|
|
|
|
python experiments/run.py`),n("p",null,[g("Contact: "),n("span",{class:"redact",role:"img","aria-label":"Redacted term 3"},[n("i",null,"3")])])])])])])],-1))]),f(" Live stats "),n("section",{class:T(["paper-stats paper-wrap",{"is-empty":e.statsEmpty()}]),id:"metrics","aria-label":"Usage over the last 60 days"},[n("div",LG,[e.statsEmpty()?f("v-if",!0):(a(),l("div",qG,[...t[11]||(t[11]=[n("span",{class:"paper-stats-dot","aria-hidden":"true"},null,-1),g(),n("span",null,[g("Live \xB7 last 60 days"),n("span",{class:"paper-stats-daily"}," \xB7 updated daily")],-1)])])),t[12]||(t[12]=n("div",{class:"paper-stats-meta-right"},"Used by authors at ICSE \xB7 FSE \xB7 OOPSLA",-1))]),e.statsEmpty()?f("v-if",!0):(a(),l("div",$G,[(a(!0),l(R,null,_(e.cards,(i,o)=>(a(),l("div",{class:"paper-stat-card",key:i?.key},[n("div",{class:T(["paper-stat-value",{"is-pending":!e.stat}])},c(e.stat?e.fmt?.bigNum(i?.total):"\u2014"),3),n("div",FG,c(i?.label),1),e.history[i?.key].bars?.length>1&&e.history[i?.key].deltaToday>0?(a(),l("div",UG," +"+c(e.fmt?.number(e.history[i?.key].deltaToday))+" today ",1)):f("v-if",!0)]))),128))]))],2),f(" Before / after "),t[22]||(t[22]=n("section",{class:"paper-section-head paper-wrap"},[n("div",null,[n("div",{class:"paper-eyebrow"},"Try it"),n("h2",null,[g("The same repository, "),n("em",null,"minus you.")])]),n("p",null," Names, affiliations, emails, and any term you list are replaced across the README, source files, notebooks, and PDF links. Reviewers browse the real thing, not a zip. ")],-1)),n("div",BG,[n("div",_G,[t[13]||(t[13]=n("label",{for:"demo-terms"},[g("Terms to redact "),n("span",null,[g("comma-separated"),n("span",{class:"dt-try"},", try adding your own")])],-1)),A(n("textarea",{id:"demo-terms",class:"demo-terms-input",rows:"1","onUpdate:modelValue":t[0]||(t[0]=i=>e.demoTerms=i),spellcheck:"false",autocomplete:"off",onKeydown:t[1]||(t[1]=Pt(de(()=>{},["prevent"]),["enter"]))},null,544),[[ct,e.demoTerms]])]),n("div",zG,[n("div",HG,[t[15]||(t[15]=n("div",{class:"pane-header"},[n("span",{class:"pane-label"},[g("Your repository "),n("span",{class:"pane-edit-hint"},"\xB7 editable")]),n("span",{class:"pane-url"},"github.com/jane-smith/DeepLearnUtils")],-1)),n("div",jG,[n("div",GG,[(a(!0),l(R,null,_(e.demoParts(),(i,o)=>(a(),l(R,{key:o},[i.redacted?(a(),l("mark",WG,c(i.original),1)):(a(),l(R,{key:1},[g(c(i.text),1)],64))],64))),128)),t[14]||(t[14]=g("\u200B",-1))]),A(n("textarea",{class:"pane-body demo-input","onUpdate:modelValue":t[2]||(t[2]=i=>e.demoText=i),spellcheck:"false","aria-label":"Sample README to anonymize"},null,512),[[ct,e.demoText]])])]),n("div",KG,[n("div",YG,[t[16]||(t[16]=n("span",{class:"pane-label"},"What reviewers see",-1)),n("span",XG,[n("span",JG,c(e.demoCount())+" redacted",1)])]),n("div",QG,[(a(!0),l(R,null,_(e.demoParts(),(i,o)=>(a(),l(R,{key:o},[i.redacted?(a(),l("span",{key:0,class:"redact-chip",title:"Replaces \u201C"+i.original+"\u201D"},c(i.text),9,ZG)):(a(),l(R,{key:1},[g(c(i.text),1)],64))],64))),128))])])])]),f(" What you get: one screenshot, three tabs "),t[23]||(t[23]=n("section",{class:"paper-section-head paper-wrap",id:"about"},[n("div",null,[n("div",{class:"paper-eyebrow"},"What you get"),n("h2",null,"Anonymize, review, manage.")]),n("p",null," Terms are redacted in text files. Enabled images and PDFs are served unchanged, so review them for identifying content before sharing. Monitor your mirror, update it, or remove it when the review is over. ")],-1)),n("section",xG,[n("div",eW,[(a(!0),l(R,null,_(e.features,(i,o)=>(a(),l("div",{class:T(["paper-feature",{"is-on":e.feature===i?.key}]),key:i?.key},[n("button",{type:"button",class:"paper-feature-tab",role:"tab",onClick:r=>e.selectFeature(i.key),onKeydown:r=>e.featureKeydown(r,o),id:"feature-tab-"+i?.key,"aria-controls":"feature-panel-"+i?.key,"aria-selected":e.feature===i?.key,tabindex:e.feature===i?.key?0:-1},[n("span",nW,[n("span",sW,c(i?.num),1),t[17]||(t[17]=n("span",{class:"pf-sep"}," \xB7 ",-1)),n("span",oW,c(i?.eyebrow),1)]),n("span",iW,[g(c(i?.title.split("-")[0]),1),i?.title.includes("-")?(a(),l("span",rW,"-")):f("v-if",!0),g(c(i?.title.split("-").slice(1).join("-"))+" "+c(i?.accent),1)])],40,tW),n("div",aW,[n("span",lW,[g(c(i?.title.split("-")[0]),1),i?.title.includes("-")?(a(),l("span",dW,"-")):f("v-if",!0),g(c(i?.title.split("-").slice(1).join("-"))+" "+c(i?.accent),1)]),n("p",null,c(i?.text),1),n("a",{class:"paper-link-arrow",href:e.safeUrl(e.featureHref(i)),target:e.featureTarget(i)},c(i?.cta)+" \u2192",9,uW)])],2))),128))]),n("div",cW,[(a(!0),l(R,null,_(e.features,(i,o)=>A((a(),l("div",{class:"paper-feature-panel",role:"tabpanel",key:i?.key,id:"feature-panel-"+i?.key,"aria-labelledby":"feature-tab-"+i?.key},[n("div",fW,[n("div",mW,[t[18]||(t[18]=n("span",{class:"dots"},[n("i"),n("i"),n("i")],-1)),n("span",hW,c(i?.url),1)]),n("div",{class:T(["feat-mock","is-"+i?.key]),role:"img","aria-label":i?.alt},[i?.key==="anonymize"?(a(),l("div",vW,[...t[19]||(t[19]=[Ae('<div class="fm-label">GitHub reposit
Line truncated
|
|
|
|
|
label names the service and the tooltip says who to contact. `),n("li",{class:T(["nav-item nav-extra-item d-none d-lg-block",{"in-user-menu":!!e.user?.username}])},[...t[19]||(t[19]=[n("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"},[n("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-bug"})]),h("Report a bug ")],-1)])],2),n("li",{class:T(["nav-item nav-support-item nav-extra-item d-none d-lg-block",{"in-user-menu":!!e.user?.username}])},[...t[20]||(t[20]=[n("a",{class:"nav-link nav-support-inline",href:"https://ko-fi.com/tdurieux",target:"_blank",rel:"noopener",title:"Donate on Ko-fi to help cover hosting costs"},[n("svg",{class:"ui-icon nav-heart","aria-hidden":"true"},[n("use",{href:"#ui-icon-heart"})]),h("Support ")],-1)])],2),e.isDarkMode?f("v-if",!0):(a(),l("li",K_,[n("button",{type:"button",class:"nav-link nav-icon",title:"Switch to dark mode","aria-label":"Switch to dark mode",onClick:t[1]||(t[1]=s=>{e.darkMode(!0)})},[...t[21]||(t[21]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-moon"})],-1)])])])),e.isDarkMode?(a(),l("li",Y_,[n("button",{type:"button",class:"nav-link nav-icon",title:"Switch to light mode","aria-label":"Switch to light mode",onClick:t[2]||(t[2]=s=>{e.darkMode(!1)})},[...t[22]||(t[22]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-sun"})],-1)])])])):f("v-if",!0),!e.user&&!e.isReviewerRoute?(a(),l("li",X_,[...t[23]||(t[23]=[n("a",{class:"nav-link btn-signin",target:"_self",href:"/signin","data-offset":"30"},[n("i",{class:"fab fa-github mr-1"}),h(" Sign in ")],-1)])])):f("v-if",!0),e.user?.username&&e.headerCanUpgrade&&!e.headerBillingPending?(a(),l("li",Q_,[n("a",{class:"nav-link nav-upgrade",href:"/profile?upgrade=1",onClick:t[3]||(t[3]=de(s=>e.openHeaderUpgrade(),["prevent"]))},"Upgrade")])):f("v-if",!0),e.user?(a(),l("li",J_,[n("a",Z_,[e.user?.photo?(a(),l("img",{key:0,width:"22",height:"22",class:"rounded-circle",src:e.safeUrl(e.user?.photo)},null,8,x_)):f("v-if",!0),n("span",eG,c(e.user?.username),1)]),n("div",tG,[n("h6",nG,"Signed in as @"+c(e.user?.username),1),t[25]||(t[25]=Pe('<a class="dropdown-item" href="/profile"><svg class="ui-icon" aria-hidden="true"><use href="#project-icon-filter"></use></svg><span>Settings<small>Defaults, quotas, account</small></span></a><a class="dropdown-item" href="/connections"><i class="fab fa-github" aria-hidden="true"></i><span>GitHub connections<small>Repository access and OAuth</small></span></a><a class="dropdown-item" href="/claim"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-link"></use></svg><span>Claim an anonymization<small>Attach an existing mirror to your account</small></span></a><div class="dropdown-divider"></div><a class="dropdown-item" href="https://github.com/tdurieux/anonymous_github/issues/new?template=issue_report.yml" target="_blank" rel="noopener"><svg class="ui-icon" aria-hidden="true"><use href="#ui-icon-bug"></use></svg><span>Report a bug<small>About this service, not a paper</small></span></a><a class="dropdown-item um-extra" href="https://github.com/tdurieux/anonymous_github/" target="_blank" rel="noopener"><i class="fab fa-github" aria-hidden="true"></i><span>Source code</span></a>',6)),e.headerShowSupport?(a(),l("a",sG,[...t[24]||(t[24]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-heart"})],-1),n("span",null,"Support the project",-1)])])):f("v-if",!0),t[26]||(t[26]=n("div",{class:"dropdown-divider"},null,-1)),t[27]||(t[27]=n("a",{class:"dropdown-item",href:"/api/user/logout",target:"_self"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-logout"})]),n("span",null,"Sign out")],-1))])])):f("v-if",!0)])])],2),e.generalMessage?(a(),l("div",{key:0,class:"navbar shadow generalMessage",innerHTML:e.sanitize(e.generalMessage)},null,8,oG)):f("v-if",!0),e.emailPromptOpen?(a(),l("dialog",{key:1,id:"email-prompt",class:"email-prompt","aria-labelledby":"email-prompt-title","aria-describedby":"email-prompt-reason",onCancel:t[8]||(t[8]=de(s=>e.respondToEmailPrompt("later"),["prevent"]))},[n("form",{onSubmit:t[7]||(t[7]=de(s=>e.respondToEmailPrompt("save"),["prevent"]))},[t[30]||(t[30]=n("h2",{id:"email-prompt-title"},"Stay informed about access problems",-1)),t[31]||(t[31]=n("p",{id:"email-prompt-reason"},"Get email alerts when your GitHub token or repository access fails.",-1)),t[32]||(t[32]=n("label",{for:"email-prompt-address"},"Email address",-1)),O(n("input",{id:"email-prompt-address",class:"form-control",type:"email",autocomplete:"email",maxlength:"254",required:"","onUpdate:modelValue":t[4]||(t[4]=s=>e.emailPromptAddress=s),disabled:e.emailPromptBusy},null,8,iG),[[ft,e.emailPromptAddress]]),e.emailPromptError?(a(),l("p
Line truncated
|
|
|
|
|
python experiments/run.py`),n("p",null,[h("Contact: "),n("span",{class:"redact",role:"img","aria-label":"Redacted term 3"},[n("i",null,"3")])])])])])])],-1))]),f(" Live stats "),n("section",{class:T(["paper-stats paper-wrap",{"is-empty":e.statsEmpty()}]),id:"metrics","aria-label":"Usage over the last 60 days"},[n("div",yG,[e.statsEmpty()?f("v-if",!0):(a(),l("div",vG,[...t[11]||(t[11]=[n("span",{class:"paper-stats-dot","aria-hidden":"true"},null,-1),h(),n("span",null,[h("Live \xB7 last 60 days"),n("span",{class:"paper-stats-daily"}," \xB7 updated daily")],-1)])])),t[12]||(t[12]=n("div",{class:"paper-stats-meta-right"},"Used by authors at ICSE \xB7 FSE \xB7 OOPSLA",-1))]),e.statsEmpty()?f("v-if",!0):(a(),l("div",bG,[(a(!0),l(N,null,U(e.cards,(i,r)=>(a(),l("div",{class:"paper-stat-card",key:i?.key},[n("div",{class:T(["paper-stat-value",{"is-pending":!e.stat}])},c(e.stat?e.fmt?.bigNum(i?.total):"\u2014"),3),n("div",wG,c(i?.label),1),e.history[i?.key].bars?.length>1&&e.history[i?.key].deltaToday>0?(a(),l("div",kG," +"+c(e.fmt?.number(e.history[i?.key].deltaToday))+" today ",1)):f("v-if",!0)]))),128))]))],2),f(" Before / after "),t[22]||(t[22]=n("section",{class:"paper-section-head paper-wrap"},[n("div",null,[n("div",{class:"paper-eyebrow"},"Try it"),n("h2",null,[h("The same repository, "),n("em",null,"minus you.")])]),n("p",null," Names, affiliations, emails, and any term you list are replaced across the README, source files, notebooks, and PDF links. Reviewers browse the real thing, not a zip. ")],-1)),n("div",CG,[n("div",EG,[t[13]||(t[13]=n("label",{for:"demo-terms"},[h("Terms to redact "),n("span",null,[h("comma-separated"),n("span",{class:"dt-try"},", try adding your own")])],-1)),O(n("textarea",{id:"demo-terms",class:"demo-terms-input",rows:"1","onUpdate:modelValue":t[0]||(t[0]=i=>e.demoTerms=i),spellcheck:"false",autocomplete:"off",onKeydown:t[1]||(t[1]=Tt(de(()=>{},["prevent"]),["enter"]))},null,544),[[ft,e.demoTerms]])]),n("div",SG,[n("div",NG,[t[15]||(t[15]=n("div",{class:"pane-header"},[n("span",{class:"pane-label"},[h("Your repository "),n("span",{class:"pane-edit-hint"},"\xB7 editable")]),n("span",{class:"pane-url"},"github.com/jane-smith/DeepLearnUtils")],-1)),n("div",RG,[n("div",TG,[(a(!0),l(N,null,U(e.demoParts(),(i,r)=>(a(),l(N,{key:r},[i.redacted?(a(),l("mark",PG,c(i.original),1)):(a(),l(N,{key:1},[h(c(i.text),1)],64))],64))),128)),t[14]||(t[14]=h("\u200B",-1))]),O(n("textarea",{class:"pane-body demo-input","onUpdate:modelValue":t[2]||(t[2]=i=>e.demoText=i),spellcheck:"false","aria-label":"Sample README to anonymize"},null,512),[[ft,e.demoText]])])]),n("div",DG,[n("div",AG,[t[16]||(t[16]=n("span",{class:"pane-label"},"What reviewers see",-1)),n("span",IG,[n("span",OG,c(e.demoCount())+" redacted",1)])]),n("div",MG,[(a(!0),l(N,null,U(e.demoParts(),(i,r)=>(a(),l(N,{key:r},[i.redacted?(a(),l("span",{key:0,class:"redact-chip",title:"Replaces \u201C"+i.original+"\u201D"},c(i.text),9,VG)):(a(),l(N,{key:1},[h(c(i.text),1)],64))],64))),128))])])])]),f(" What you get: one screenshot, three tabs "),t[23]||(t[23]=n("section",{class:"paper-section-head paper-wrap",id:"about"},[n("div",null,[n("div",{class:"paper-eyebrow"},"What you get"),n("h2",null,"Anonymize, review, manage.")]),n("p",null," Terms are redacted in text files. Enabled images and PDFs are served unchanged, so review them for identifying content before sharing. Monitor your mirror, update it, or remove it when the review is over. ")],-1)),n("section",qG,[n("div",LG,[(a(!0),l(N,null,U(e.features,(i,r)=>(a(),l("div",{class:T(["paper-feature",{"is-on":e.feature===i?.key}]),key:i?.key},[n("button",{type:"button",class:"paper-feature-tab",role:"tab",onClick:o=>e.selectFeature(i.key),onKeydown:o=>e.featureKeydown(o,r),id:"feature-tab-"+i?.key,"aria-controls":"feature-panel-"+i?.key,"aria-selected":e.feature===i?.key,tabindex:e.feature===i?.key?0:-1},[n("span",FG,[n("span",UG,c(i?.num),1),t[17]||(t[17]=n("span",{class:"pf-sep"}," \xB7 ",-1)),n("span",BG,c(i?.eyebrow),1)]),n("span",HG,[h(c(i?.title.split("-")[0]),1),i?.title.includes("-")?(a(),l("span",zG,"-")):f("v-if",!0),h(c(i?.title.split("-").slice(1).join("-"))+" "+c(i?.accent),1)])],40,$G),n("div",jG,[n("span",_G,[h(c(i?.title.split("-")[0]),1),i?.title.includes("-")?(a(),l("span",GG,"-")):f("v-if",!0),h(c(i?.title.split("-").slice(1).join("-"))+" "+c(i?.accent),1)]),n("p",null,c(i?.text),1),n("a",{class:"paper-link-arrow",href:e.safeUrl(e.featureHref(i)),target:e.featureTarget(i)},c(i?.cta)+" \u2192",9,WG)])],2))),128))]),n("div",KG,[(a(!0),l(N,null,U(e.features,(i,r)=>O((a(),l("div",{class:"paper-feature-panel",role:"tabpanel",key:i?.key,id:"feature-panel-"+i?.key,"aria-labelledby":"feature-tab-"+i?.key},[n("div",XG,[n("div",QG,[t[18]||(t[18]=n("span",{class:"dots"},[n("i"),n("i"),n("i")],-1)),n("span",JG,c(i?.url),1)]),n("div",{class:T(["feat-mock","is-"+i?.key]),role:"img","aria-label":i?.alt},[i?.key==="anonymize"?(a(),l("div",xG,[...t[19]||(t[19]=[Pe('<div class="fm-label">GitHub reposit
Line truncated
|
|
|
|
|
<span class="ln">2</span><span class="c"># Author: <span class="redact">XXXX-1</span>, <span class="redact">XXXX-2</span></span>
|
|
|
|
|
<span class="ln">3</span><span class="k">import</span> torch
|
|
|
|
|
<span class="ln">4</span><span class="k">from</span> utils <span class="k">import</span> load_config
|
|
|
|
@@ -65,18 +64,18 @@ python experiments/run.py`),n("p",null,[g("Contact: "),n("span",{class:"redact",
|
|
|
|
|
<span class="ln">7</span> model = build_model(config)
|
|
|
|
|
<span class="ln">8</span> <span class="k">for</span> epoch <span class="k">in</span> range(config.epochs):
|
|
|
|
|
<span class="ln">9</span> loss = step(model)
|
|
|
|
|
<span class="ln">10</span> log(<span class="s">"epoch %d: %.3f"</span>, epoch, loss)</pre></div>`,2)])])):(a(),l("div",bW,[...t[21]||(t[21]=[Ae('<div class="fm-dash-head"><span>Project</span><span>Status</span><span>Views</span><span>Expires</span></div><div class="fm-dash-row"><span><b>DeepLearnUtils</b><i>paper-7f2a \xB7 ICSE 2027</i></span><span class="st is-ready">Ready</span><span>41</span><span>Mar 31, 2027</span></div><div class="fm-dash-row"><span><b>vision-bench#212</b><i>pull request \xB7 FSE 2027</i></span><span class="st is-ready">Ready</span><span>12</span><span>Never</span></div><div class="fm-dash-row"><span><b>graph-repair</b><i>gr-91ab</i></span><span class="st is-progress">Updating</span><span>5</span><span>Jan 5, 2027</span></div><div class="fm-dash-row is-muted"><span><b>JarSift</b><i>OOPSLA 2025</i></span><span class="st is-expired">Expired</span><span>72</span><span>Sep 28, 2026</span></div>',5)])]))],10,gW)])],8,pW)),[[ee,e.feature===i?.key]])),128))])]),f(" FAQ teaser "),t[24]||(t[24]=Ae('<section class="paper-qa paper-qa-r3 paper-wrap" aria-labelledby="qa-heading"><div class="qa-head"><div><div class="paper-eyebrow">Before you sign in</div><h2 id="qa-heading">The questions that come up most.</h2></div><a class="paper-link-arrow" href="/faq">Read the full FAQ \u2192</a></div><div class="qa-grid"><div class="q"><a href="/faq#permissions">What access does GitHub sign-in require?</a><p> The GitHub App has read-only access to gists and the repositories you choose. Legacy OAuth uses broader permissions. Anonymous GitHub never writes to your repositories. </p></div><div class="q"><a href="/faq#formats">Which file formats are supported?</a><p> Source code with syntax highlighting, Markdown, Jupyter notebooks, PDFs, images, and GitHub Pages sites. Text files are anonymized; enabled images and PDFs are served unchanged. </p></div><div class="q"><a href="/faq#expiration">What happens when an anonymized repository expires?</a><p> You choose: the mirror is removed, or visitors are redirected to the original GitHub repository once the review is over. </p></div></div></section><section class="paper-cta paper-wrap" aria-labelledby="cta-heading"><div><h2 id="cta-heading">Ready for review?</h2><p>Create an anonymous mirror in a couple of minutes. Reviewers just open the link.</p></div><div class="paper-cta-actions"><a class="btn-hero" href="/signin" target="_self"><i class="fab fa-github" aria-hidden="true"></i> Sign in with GitHub</a><a class="paper-link-arrow" target="_self" href="https://anonymous.4open.science/r/840c8c57-3c32-451e-bf12-0e20be300389/">See an anonymized repository \u2192</a></div></section>',2)),Fe(s,{name:"partials/footer.htm",state:e.viewState},null,8,["state"])])}var wW={class:"paper-empty"},kW={class:"paper-empty-inner"},CW={key:0,class:"paper-eyebrow"},SW={key:1,class:"paper-eyebrow"},EW={key:2,class:"paper-empty-title"},NW=["textContent"];function zf(e,t){return a(),l("div",wW,[n("div",kW,[e.error?f("v-if",!0):(a(),l("div",CW,"Working")),e.error?(a(),l("div",SW,"Error")):f("v-if",!0),e.error?f("v-if",!0):(a(),l("h1",EW,[...t[0]||(t[0]=[g(" Loading",-1),n("span",{class:"dot-anim"},"\u2026",-1)])])),e.error?(a(),l("h1",{key:3,class:"paper-empty-title",textContent:c(e.fmt.translate(e.error))},null,8,NW)):f("v-if",!0)])])}var RW={class:"container paper-page paper-settings"},TW={class:"paper-crumbs"},PW={class:"here"},AW={class:"paper-page-title"},DW={class:"paper-settings-body"},IW={class:"paper-settings-toc"},OW={href:"#conf-billing"},MW={class:"form needs-validation paper-settings-main",name:"conference",novalidate:""},VW={id:"conf-basics",class:"paper-settings-section"},LW={class:"form-group"},qW={class:"invalid-feedback"},$W={class:"invalid-feedback"},FW={class:"form-group"},UW={class:"invalid-feedback"},BW={class:"form-group"},_W={class:"invalid-feedback"},zW={class:"invalid-feedback"},HW={id:"conf-window",class:"paper-settings-section"},jW={class:"form-grid-2"},GW={class:"form-group"},WW={class:"invalid-feedback"},KW={class:"invalid-feedback"},YW={class:"form-group"},XW={class:"invalid-feedback"},JW={class:"invalid-feedback"},QW={id:"conf-rendering",class:"paper-settings-section"},ZW={class:"form-check"},xW={class:"form-check-input",type:"checkbox",id:"link",name:"link"},eK={class:"form-check"},tK={class:"form-check-input",type:"checkbox",id:"image",name:"image"},nK={class:"form-check"},sK={class:"form-check-input",type:"checkbox",id:"pdf",name:"pdf"},oK={class:"form-check"},iK={class:"form-check-input",type:"checkbox",id:"notebook",name:"notebook"},rK={id:"conf-features",class:"paper-settings-section"},aK={class:"form-check"},lK={class:"form-check-input",type:"checkbox",id:"update",name:"update"},dK={class:"form-check"},uK={class:"form-check-input",type:"checkbox",id:"page",name:"page"},cK={id:"conf-plan",class:"paper-settings-section"},pK={key:0,class:"paper-section-copy"},fK={class:"conference-tiers",role:"radiogroup","aria-label":"Review package size"}Line truncated
|
|
|
|
|
`).length))+" lines",1)):f("v-if",!0)]),A(n("button",{type:"button",class:"btn btn-sm btn-icon-only btn-ghost copy-path-btn","aria-label":e.pathCopied?"Path copied":"Copy file path",title:e.pathCopied?"Path copied":"Copy file path",onClick:t[2]||(t[2]=d=>e.copyPath())},[(a(),l("svg",rY,[n("use",{href:e.pathCopied?"#ui-icon-check":"#ui-icon-link"},null,8,aY)]))],8,iY),[[ee,e.filePath]])]),e.type!="html"&&typeof e.content=="string"?(a(),l("span",lY,[e.redactionCount()?(a(),l(R,{key:0},[n("span",{class:"meta-redact",title:e.redactionCount()+" redacted terms"},[g(c(e.redactionCount()),1),t[49]||(t[49]=n("span",{class:"meta-redact-word"}," redacted",-1))],8,dY),t[50]||(t[50]=n("span",{class:"sep"},"\xB7",-1))],64)):f("v-if",!0),g(c(e.languageName||"Text"),1),n("span",uY,[t[51]||(t[51]=n("span",{class:"sep"},"\xB7",-1)),g(c(e.content.length<1024?e.content.length+" B":(e.content.length/1024).toFixed(1)+" KB"),1)]),t[52]||(t[52]=n("span",{class:"sep"},"\xB7",-1)),g(c(e.fmt?.number(e.content.split(`
|
|
|
|
|
`).length))+" lines",1)])):f("v-if",!0),e.type=="html"?(a(),l("span",cY,[e.redactionCount()?(a(),l(R,{key:0},[n("span",{class:"meta-redact",title:e.redactionCount()+" redacted terms"},[g(c(e.redactionCount()),1),t[53]||(t[53]=n("span",{class:"meta-redact-word"}," redacted",-1))],8,pY),t[54]||(t[54]=n("span",{class:"sep"},"\xB7",-1))],64)):f("v-if",!0),t[56]||(t[56]=g("Markdown",-1)),e.fileSize(e.filePath)!=null?(a(),l(R,{key:1},[t[55]||(t[55]=n("span",{class:"sep"},"\xB7",-1)),g(c(e.formatSize(e.fileSize(e.filePath))),1)],64)):f("v-if",!0)])):f("v-if",!0),e.preview&&e.previewPreserved()?(a(),l("button",{key:2,type:"button",class:"rp-preserved-tag",onClick:t[3]||(t[3]=d=>e.openPreserveFiles())},"Left unredacted")):f("v-if",!0),n("div",fY,[e.isCsv()?(a(),l("div",mY,[n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.csvView==="table"}]),"aria-checked":e.csvView==="table",onClick:t[4]||(t[4]=d=>e.csvView="table")},"Table",10,hY),n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.csvView==="chart"}]),"aria-checked":e.csvView==="chart",onClick:t[5]||(t[5]=d=>e.csvView="chart"),title:"Chart the table"},"Chart",10,gY),n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.csvView==="raw"}]),"aria-checked":e.csvView==="raw",onClick:t[6]||(t[6]=d=>e.csvView="raw"),title:"Show the file as text with line numbers"},"Text",10,vY)])):f("v-if",!0),e.type!="html"&&e.symbols().length>1?(a(),l("div",yY,[n("button",{type:"button",class:T(["btn btn-sm btn-ghost btn-symbols",{"is-on":e.symbolsOpen}]),"aria-expanded":e.symbolsOpen?"true":"false","aria-haspopup":"true",title:"Symbols in this file",onClick:t[7]||(t[7]=d=>e.symbolsOpen=!e.symbolsOpen)},[...t[57]||(t[57]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-list"})],-1),n("span",{class:"btn-find-label"},"Symbols",-1)])],10,bY),e.symbolsOpen?(a(),l("div",wY,[n("div",kY,c(e.symbols().length)+" "+c(e.symbols().length===1?"symbol":"symbols"),1),(a(!0),l(R,null,_(e.symbols(),d=>(a(),l("button",{type:"button",class:"symbols-item",role:"menuitem",key:d.line+d.name,onClick:h=>e.goToSymbol(d.line)},[n("span",{class:T(["symbols-kind","is-"+d.kind])},c(d.kind==="class"?"C":d.kind==="function"?"\u0192":"v"),3),n("span",SY,c(d.name),1),n("span",EY,c(d.line),1)],8,CY))),128))])):f("v-if",!0)])):f("v-if",!0),e.type=="html"?(a(),l("button",{key:2,type:"button",class:T(["btn btn-sm btn-ghost btn-icon-only btn-find btn-md-find",{"is-on":e.mdFindOpen}]),"aria-label":"Find on this page",title:"Find on this page ("+(e.isMac?"\u2318":"Ctrl+")+"F)",onClick:t[8]||(t[8]=d=>e.toggleMdFind())},[...t[58]||(t[58]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-search"})],-1)])],10,NY)):f("v-if",!0),e.type!="html"&&!(e.isCsv()&&e.csvView!=="raw")?(a(),l("div",RY,[e.type!="html"?(a(),l("button",{key:0,type:"button",class:"btn btn-sm btn-ghost btn-icon-only btn-goto","aria-label":"Go to line",title:"Go to line ("+(e.isMac?"\u2318":"Ctrl+")+"G)",onClick:t[9]||(t[9]=d=>e.gotoLine())},[...t[59]||(t[59]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-goto"})],-1)])],8,TY)):f("v-if",!0),e.type!="html"?(a(),l("button",{key:1,type:"button",class:T(["btn btn-sm btn-icon-only btn-ghost btn-toggle",{"is-on":e.wrapLines}]),"aria-pressed":e.wrapLines?"true":"false","aria-label":"Wrap lines",title:"Wrap lines (Alt+Z)",onClick:t[10]||(t[10]=d=>e.toggleWrap())},[...t[60]||(t[60]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-wrap"})],-1)])],10,PY)):f("v-if",!0),e.type!="html"?(a(),l("button",{key:2,type:"button",class:"btn btn-sm btn-ghost btn-icon-only btn-find","aria-label":"Find in file",title:"Find in file ("+(e.isMac?"\u2318":"Ctrl+")+"F)",onClick:t[11]||(t[11]=d=>e.findInFile())},[...t[61]||(t[61]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-search"})],-1)])],8,AY)):f("v-if",!0)])):f("v-if",!0),!e.preview||e.url?(a(),l("div",DY,[n("a",{target:e.preview?"_blank":"_self",class:"tb-seg-btn",title:e.type=="html"?"Open the Markdown source":"Open the raw file",href:e.safeUrl(e.url)},"Raw",8,IY),typeof e.content=="string"?(a(),l("button",{key:0,type:"button",class:"tb-seg-btn tb-seg-icon","aria-label":e.contentCopied?"Copied":"Copy file contents",title:e.contentCopied?"Copied":"Copy file contents",onClick:t[12]||(t[12]=d=>e.copyContent())},[(a(),l("svg",MY,[n("use",{href:e.contentCopied?"#ui-icon-check":"#project-icon-copy"},null,8,VY)]))],8,OY)):f("v-if",!0),n("a",{target:e.preview?"_blank":"_self",class:"tb-seg-btn tb-seg-icon","aria-label":"Download file",title:"Download file",href:e.safeUrl(e.downloadUrl()),download:e.preview?e.paths[e.paths.length-1]:null},[...t[62]||(t[62]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-download"})],-1)])],8,LY)])):f("v-if",!0),typeof e.content=="string"?(a(),l("button",{key:5,type:"button",class:"btn btn-sm btn-icon-only btn-ghost tb-copy-m","aria-label":e.contentCopied?"Copied
Line truncated
|
|
|
|
|
`).length))+" lines",1)],64)):f("v-if",!0)])):f("v-if",!0),e.options?.publishedAt||e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate?(a(),l("div",XY)):f("v-if",!0),e.type=="html"?(a(),l("button",{key:3,type:"button",role:"menuitem",onClick:t[18]||(t[18]=d=>e.toggleMdFind())},[...t[67]||(t[67]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-search"})],-1),g("Find in file",-1)])])):f("v-if",!0),e.type=="html"?(a(),l("div",JY)):f("v-if",!0),e.type!="html"?(a(),l("button",{key:5,type:"button",role:"menuitem",onClick:t[19]||(t[19]=d=>e.findInFile())},[...t[68]||(t[68]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-search"})],-1),g("Find in file",-1)])])):f("v-if",!0),e.type!="html"?(a(),l("button",{key:6,type:"button",role:"menuitem",onClick:t[20]||(t[20]=d=>e.gotoLine())},[...t[69]||(t[69]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-goto"})],-1),g("Go to line",-1)])])):f("v-if",!0),e.type!="html"?(a(),l("button",{key:7,type:"button",role:"menuitemcheckbox","aria-checked":e.wrapLines?"true":"false",onClick:t[21]||(t[21]=d=>e.toggleWrap())},[t[70]||(t[70]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-wrap"})],-1)),t[71]||(t[71]=g("Wrap lines",-1)),e.wrapLines?(a(),l("span",ZY,"\u2713")):f("v-if",!0)],8,QY)):f("v-if",!0),e.isCsv()?(a(),l(R,{key:8},_(["table","chart","raw"],d=>n("button",{type:"button",role:"menuitemradio",class:"tb-csv-view",key:d,"aria-checked":e.csvView===d?"true":"false",onClick:h=>{e.csvView=d,e.moreOpen=!1}},[(a(),l("svg",eX,[n("use",{href:d==="raw"?"#ui-icon-code":d==="chart"?"#ui-icon-chart":"#ui-icon-list"},null,8,tX)])),g(c(d==="raw"?"Show as text":d==="chart"?"Show as chart":"Show as table"),1),e.csvView===d?(a(),l("span",nX,"\u2713")):f("v-if",!0)],8,xY)),64)):f("v-if",!0),e.type!="html"?(a(),l("div",sX)):f("v-if",!0),e.type=="html"&&(!e.preview||e.url)?(a(),l("a",{key:10,role:"menuitem",target:e.preview?"_blank":"_self",href:e.safeUrl(e.url)},[...t[72]||(t[72]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-code"})],-1),g("View raw",-1)])],8,oX)):f("v-if",!0),e.type!="html"&&(!e.preview||e.url)?(a(),l("a",{key:11,role:"menuitem",target:e.preview?"_blank":"_self",href:e.safeUrl(e.url)},[...t[73]||(t[73]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-code"})],-1),g("View raw",-1)])],8,iX)):f("v-if",!0),!e.preview||e.url?(a(),l("a",{key:12,role:"menuitem",target:e.preview?"_blank":"_self",href:e.safeUrl(e.downloadUrl()),download:e.preview?e.paths[e.paths.length-1]:null},[...t[74]||(t[74]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-download"})],-1),g("Download file",-1)])],8,rX)):f("v-if",!0),e.options?.hasWebsite?(a(),l("a",{key:13,role:"menuitem",target:e.preview?"_blank":"_self",href:e.safeUrl("/w/"+e.repoId+"/")},[...t[75]||(t[75]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-globe"})],-1),g("Open website",-1)])],8,aX)):f("v-if",!0),e.options?.isAdmin||e.options?.isOwner?(a(),l("a",{key:14,role:"menuitem",href:e.safeUrl("/anonymize/"+e.repoId)},[...t[76]||(t[76]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),g("Edit anonymization",-1)])],8,lX)):f("v-if",!0),e.options?.download?(a(),l("a",{key:15,role:"menuitem",target:e.preview?"_blank":"_self",href:e.safeUrl("/api/repo/"+e.repoId+"/zip")},[...t[77]||(t[77]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-archive"})],-1),g("Download ZIP",-1)])],8,dX)):f("v-if",!0),n("button",{type:"button",role:"menuitem",onClick:t[22]||(t[22]=d=>e.copyPath())},[...t[78]||(t[78]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-link"})],-1),g("Copy file path",-1)])]),t[79]||(t[79]=n("div",{class:"tb-menu-sep"},null,-1)),t[80]||(t[80]=n("a",{role:"menuitem",href:"/faq"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-help"})]),g("FAQ")],-1)),t[81]||(t[81]=n("a",{role:"menuitem",href:"https://github.com/tdurieux/anonymous_github/issues/new?template=issue_report.yml",target:"_blank",rel:"noopener"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-bug"})]),g("Report a bug")],-1))])):f("v-if",!0)])]),e.gotoOpen&&e.type!="html"?(a(),l("form",{key:3,class:"goto-pop",role:"dialog","aria-label":"Go to line",onSubmit:t[26]||(t[26]=de(d=>e.submitGoto(),["prevent"]))},[t[82]||(t[82]=n("label",{class:"goto-label",for:"goto-input"},"Go to line",-1)),A(n("input",{id:"goto-input",class:"goto-input",type:"text",inputmode:"numeric",autocomplete:"off",spellcheck:"false",placeholder:"1\u2013"+e.fmt?.number(typeof e.content=="string"?e.content.split(`
|
|
|
|
|
`).length:1),"aria-invalid":e.gotoError?"true":"false","onUpdate:modelValue":t[24]||(t[24]=d=>e.gotoValue=d),onKeydown:t[25]||(t[25]=Pt(de(d=>e.closeGoto(),["prevent","stop"]),["esc"]))},null,40,uX),[[ct,e.gotoValue]]),n("span",{class:T(["goto-hint",{"is-error":e.gotoError}])},c(e.gotoError||"Line, or line:column"),3)],32)):f("v-if",!0)]),e.isCsv()&&e.csvView!=="raw"?(a(),Tt(s,{key:e.paths?.join("/"),rows:e.csvRows(),name:e.paths?.[e.paths.length-1],"state-key":e.preview?null:"table",view:e.csvView},null,8,["rows","name","state-key","view"])):f("v-if",!0),e.type!="html"&&!(e.isCsv()&&e.csvView!=="raw")?A((a(),l("div",cX,null,512)),[[u,{content:e.content,options:e.aceOption}]]):f("v-if",!0),e.type=="html"&&e.mdFindOpen?(a(),l("div",pX,[n("input",{type:"search",class:"md-find-input",placeholder:"Find on this page","aria-label":"Find on this page",value:e.mdFindQuery,onInput:t[27]||(t[27]=d=>{e.mdFindQuery=d.target.value,e.runMdFind()}),onKeydown:[t[28]||(t[28]=Pt(de(d=>d.shiftKey?e.stepMdFind(-1):e.stepMdFind(1),["prevent"]),["enter"])),t[29]||(t[29]=Pt(de(d=>e.toggleMdFind(!1),["prevent"]),["esc"]))]},null,40,fX),n("span",mX,[n("button",{type:"button","aria-label":"Previous match",onClick:t[30]||(t[30]=d=>e.stepMdFind(-1)),disabled:!e.mdFindTotal},[...t[83]||(t[83]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1)])],8,hX),n("button",{type:"button","aria-label":"Next match",onClick:t[31]||(t[31]=d=>e.stepMdFind(1)),disabled:!e.mdFindTotal},[...t[84]||(t[84]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,gX)]),n("span",vX,c(e.mdFindQuery?e.mdFindTotal?e.mdFindIndex+1+" of "+e.mdFindTotal:"No results":""),1),n("button",{type:"button",class:T(["md-find-opt",{"is-on":e.mdFindCase}]),"aria-pressed":e.mdFindCase?"true":"false",title:"Match case","aria-label":"Match case",onClick:t[32]||(t[32]=d=>{e.mdFindCase=!e.mdFindCase,e.runMdFind()})},"Aa",10,yX),n("button",{type:"button",class:"md-find-close","aria-label":"Close find",onClick:t[33]||(t[33]=d=>e.toggleMdFind(!1))},"\xD7")])):f("v-if",!0),e.type=="html"?(a(),l("div",bX,[A(n("div",{class:"file-content markdown-body",innerHTML:e.renderReadme(e.sanitize(e.content))},null,8,wX),[[p]]),e.tocCount()>=3?(a(),l("aside",kX,[t[85]||(t[85]=n("div",{class:"readme-toc-head"},"On this page",-1)),n("nav",CX,[n("a",{href:"#",class:T(["lvl-2 toc-top",{"is-active":!e.activeHeading||e.activeHeading===e.tocTitle()?.id}]),onClick:t[34]||(t[34]=de(d=>e.scrollToHeading(null),["prevent"]))},[e.tocTitle()?(a(!0),l(R,{key:0},_(e.tocTitle().parts,(d,h)=>(a(),l(R,{key:h},[d.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+d.n},[n("i",null,c(d.n),1)],8,SX)):(a(),l(R,{key:1},[g(c(d.t),1)],64))],64))),128)):(a(),l(R,{key:1},[g("Introduction")],64))],2),(a(!0),l(R,null,_(e.readmeToc(),(d,h)=>(a(),l("a",{key:d.id,href:"#"+d.id,class:T(["lvl-"+(d.depth+2),{"is-active":e.activeHeading===d.id}]),"aria-current":e.activeHeading===d.id?"location":null,onClick:de(m=>e.scrollToHeading(d.id),["prevent"])},[(a(!0),l(R,null,_(d.parts,(m,y)=>(a(),l(R,{key:y},[m.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+m.n},[n("i",null,c(m.n),1)],8,NX)):(a(),l(R,{key:1},[g(c(m.t),1)],64))],64))),128))],10,EX))),128))])])):f("v-if",!0)])):f("v-if",!0)],2)):f("v-if",!0),e.type=="html-doc"&&!e.showSource&&e.content!=null?(a(),Tt(i,{key:2,content:e.content,"base-url":e.fileBaseUrl,"allow-scripts":e.allowScripts},null,8,["content","base-url","allow-scripts"])):f("v-if",!0),e.fileFrame()?(a(),l("section",{key:3,class:T(["file-card file-card-media","view-"+e.type])},[n("header",RX,[n("div",TX,[n("button",{type:"button",class:T(["btn btn-sm btn-icon-only btn-ghost card-files-btn",{"is-needed":e.sidebarHidden}]),title:"Show file tree",onClick:t[35]||(t[35]=d=>e.sidebarHidden?e.sidebarHidden=!1:e.sidebarCollapsed=!1)},[...t[86]||(t[86]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-sidebar"})],-1),n("span",{class:"card-files-label"},"Files",-1)])],2),n("ol",PX,[n("li",AX,[n("a",{href:e.safeUrl("/r/"+e.repoId+"/"),title:e.repoId,textContent:c(/^[0-9a-f]{8}-[0-9a-f]{4}-/i.test(e.repoId||"")?"repository":e.repoId)},null,8,DX)]),(a(!0),l(R,null,_(e.paths,(d,h)=>(a(),l("li",{class:"breadcrumb-item","aria-current":h===e.paths.length-1?"page":null},[(a(!0),l(R,null,_(e.redactParts(d),(m,y)=>(a(),l(R,{key:y},[m.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+m.n},[n("i",null,c(m.n),1)],8,OX)):(a(),l(R,{key:1},[g(c(m.t),1)],64))],64))),128))],8,IX))),256))]),n("span",MX,[e.type=="IPython"&&e.redactionCount()?(a(),l("b",{key:0,class:"ms-item ms-redact",title:e.redactionCount()+" redacted terms"},[g(c(e.redactionCount()),1),t[87]||(t[87]=n("span",{class:"meta-redact-word"}," redacted",-1))],8,VX)):f("v-if",!0),n("span",LX,c(e.fileKind()),1),e.imageSize?(a(),l("span",qX,c(e.imageSize),1)):f("v-if",!0),e.fileSi
Line truncated
|
|
|
|
|
<span class="ln">10</span> log(<span class="s">"epoch %d: %.3f"</span>, epoch, loss)</pre></div>`,2)])])):(a(),l("div",tW,[...t[21]||(t[21]=[Pe('<div class="fm-dash-head"><span>Project</span><span>Status</span><span>Views</span><span>Expires</span></div><div class="fm-dash-row"><span><b>DeepLearnUtils</b><i>paper-7f2a \xB7 ICSE 2027</i></span><span class="st is-ready">Ready</span><span>41</span><span>Mar 31, 2027</span></div><div class="fm-dash-row"><span><b>vision-bench#212</b><i>pull request \xB7 FSE 2027</i></span><span class="st is-ready">Ready</span><span>12</span><span>Never</span></div><div class="fm-dash-row"><span><b>graph-repair</b><i>gr-91ab</i></span><span class="st is-progress">Updating</span><span>5</span><span>Jan 5, 2027</span></div><div class="fm-dash-row is-muted"><span><b>JarSift</b><i>OOPSLA 2025</i></span><span class="st is-expired">Expired</span><span>72</span><span>Sep 28, 2026</span></div>',5)])]))],10,ZG)])],8,YG)),[[te,e.feature===i?.key]])),128))])]),f(" FAQ teaser "),t[24]||(t[24]=Pe('<section class="paper-qa paper-qa-r3 paper-wrap" aria-labelledby="qa-heading"><div class="qa-head"><div><div class="paper-eyebrow">Before you sign in</div><h2 id="qa-heading">The questions that come up most.</h2></div><a class="paper-link-arrow" href="/faq">Read the full FAQ \u2192</a></div><div class="qa-grid"><div class="q"><a href="/faq#permissions">What access does GitHub sign-in require?</a><p> The GitHub App has read-only access to gists and the repositories you choose. Legacy OAuth uses broader permissions. Anonymous GitHub never writes to your repositories. </p></div><div class="q"><a href="/faq#formats">Which file formats are supported?</a><p> Source code with syntax highlighting, Markdown, Jupyter notebooks, PDFs, images, and GitHub Pages sites. Text files are anonymized; enabled images and PDFs are served unchanged. </p></div><div class="q"><a href="/faq#expiration">What happens when an anonymized repository expires?</a><p> You choose: the mirror is removed, or visitors are redirected to the original GitHub repository once the review is over. </p></div></div></section><section class="paper-cta paper-wrap" aria-labelledby="cta-heading"><div><h2 id="cta-heading">Ready for review?</h2><p>Create an anonymous mirror in a couple of minutes. Reviewers just open the link.</p></div><div class="paper-cta-actions"><a class="btn-hero" href="/signin" target="_self"><i class="fab fa-github" aria-hidden="true"></i> Sign in with GitHub</a><a class="paper-link-arrow" target="_self" href="https://anonymous.4open.science/r/840c8c57-3c32-451e-bf12-0e20be300389/">See an anonymized repository \u2192</a></div></section>',2)),$e(s,{name:"partials/footer.htm",state:e.viewState},null,8,["state"])])}var nW={class:"paper-empty"},sW={class:"paper-empty-inner"},oW={key:0,class:"paper-eyebrow"},iW={key:1,class:"paper-eyebrow"},rW={key:2,class:"paper-empty-title"},aW=["textContent"];function Zf(e,t){return a(),l("div",nW,[n("div",sW,[e.error?f("v-if",!0):(a(),l("div",oW,"Working")),e.error?(a(),l("div",iW,"Error")):f("v-if",!0),e.error?f("v-if",!0):(a(),l("h1",rW,[...t[0]||(t[0]=[h(" Loading",-1),n("span",{class:"dot-anim"},"\u2026",-1)])])),e.error?(a(),l("h1",{key:3,class:"paper-empty-title",textContent:c(e.fmt.translate(e.error))},null,8,aW)):f("v-if",!0)])])}var lW={class:"container paper-page paper-settings"},dW={class:"paper-crumbs"},uW={class:"here"},cW={class:"paper-page-title"},pW={class:"paper-settings-body"},fW={class:"paper-settings-toc"},mW={href:"#conf-billing"},hW={class:"form needs-validation paper-settings-main",name:"conference",novalidate:""},gW={id:"conf-basics",class:"paper-settings-section"},yW={class:"form-group"},vW={class:"invalid-feedback"},bW={class:"invalid-feedback"},wW={class:"form-group"},kW={class:"invalid-feedback"},CW={class:"form-group"},EW={class:"invalid-feedback"},SW={class:"invalid-feedback"},NW={id:"conf-window",class:"paper-settings-section"},RW={class:"form-grid-2"},TW={class:"form-group"},PW={class:"invalid-feedback"},DW={class:"invalid-feedback"},AW={class:"form-group"},IW={class:"invalid-feedback"},OW={class:"invalid-feedback"},MW={id:"conf-rendering",class:"paper-settings-section"},VW={class:"form-check"},qW={class:"form-check-input",type:"checkbox",id:"link",name:"link"},LW={class:"form-check"},$W={class:"form-check-input",type:"checkbox",id:"image",name:"image"},FW={class:"form-check"},UW={class:"form-check-input",type:"checkbox",id:"pdf",name:"pdf"},BW={class:"form-check"},HW={class:"form-check-input",type:"checkbox",id:"notebook",name:"notebook"},zW={id:"conf-features",class:"paper-settings-section"},jW={class:"form-check"},_W={class:"form-check-input",type:"checkbox",id:"update",name:"update"},GW={class:"form-check"},WW={class:"form-check-input",type:"checkbox",id:"page",name:"page"},KW={id:"conf-plan",class:"paper-settings-section"},YW={key:0,class:"paper-section-copy"},XW={class:"conference-tiers",role:"radiogroup","aria-label":"Review package size"}Line truncated
|
|
|
|
|
`).length))+" lines",1)):f("v-if",!0)]),O(n("button",{type:"button",class:"btn btn-sm btn-icon-only btn-ghost copy-path-btn","aria-label":e.pathCopied?"Path copied":"Copy file path",title:e.pathCopied?"Path copied":"Copy file path",onClick:t[2]||(t[2]=d=>e.copyPath())},[(a(),l("svg",zK,[n("use",{href:e.pathCopied?"#ui-icon-check":"#ui-icon-link"},null,8,jK)]))],8,HK),[[te,e.filePath]])]),e.type!="html"&&typeof e.content=="string"?(a(),l("span",_K,[e.redactionCount()?(a(),l(N,{key:0},[n("span",{class:"meta-redact",title:e.redactionCount()+" redacted terms"},[h(c(e.redactionCount()),1),t[49]||(t[49]=n("span",{class:"meta-redact-word"}," redacted",-1))],8,GK),t[50]||(t[50]=n("span",{class:"sep"},"\xB7",-1))],64)):f("v-if",!0),h(c(e.languageName||"Text"),1),n("span",WK,[t[51]||(t[51]=n("span",{class:"sep"},"\xB7",-1)),h(c(e.content.length<1024?e.content.length+" B":(e.content.length/1024).toFixed(1)+" KB"),1)]),t[52]||(t[52]=n("span",{class:"sep"},"\xB7",-1)),h(c(e.fmt?.number(e.content.split(`
|
|
|
|
|
`).length))+" lines",1)])):f("v-if",!0),e.type=="html"?(a(),l("span",KK,[e.redactionCount()?(a(),l(N,{key:0},[n("span",{class:"meta-redact",title:e.redactionCount()+" redacted terms"},[h(c(e.redactionCount()),1),t[53]||(t[53]=n("span",{class:"meta-redact-word"}," redacted",-1))],8,YK),t[54]||(t[54]=n("span",{class:"sep"},"\xB7",-1))],64)):f("v-if",!0),t[56]||(t[56]=h("Markdown",-1)),e.fileSize(e.filePath)!=null?(a(),l(N,{key:1},[t[55]||(t[55]=n("span",{class:"sep"},"\xB7",-1)),h(c(e.formatSize(e.fileSize(e.filePath))),1)],64)):f("v-if",!0)])):f("v-if",!0),e.preview&&e.previewPreserved()?(a(),l("button",{key:2,type:"button",class:"rp-preserved-tag",onClick:t[3]||(t[3]=d=>e.openPreserveFiles())},"Left unredacted")):f("v-if",!0),n("div",XK,[e.isCsv()?(a(),l("div",QK,[n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.csvView==="table"}]),"aria-checked":e.csvView==="table",onClick:t[4]||(t[4]=d=>e.csvView="table")},"Table",10,JK),n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.csvView==="chart"}]),"aria-checked":e.csvView==="chart",onClick:t[5]||(t[5]=d=>e.csvView="chart"),title:"Chart the table"},"Chart",10,ZK),n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.csvView==="raw"}]),"aria-checked":e.csvView==="raw",onClick:t[6]||(t[6]=d=>e.csvView="raw"),title:"Show the file as text with line numbers"},"Text",10,xK)])):f("v-if",!0),e.type!="html"&&e.symbols().length>1?(a(),l("div",eY,[n("button",{type:"button",class:T(["btn btn-sm btn-ghost btn-symbols",{"is-on":e.symbolsOpen}]),"aria-expanded":e.symbolsOpen?"true":"false","aria-haspopup":"true",title:"Symbols in this file",onClick:t[7]||(t[7]=d=>e.symbolsOpen=!e.symbolsOpen)},[...t[57]||(t[57]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-list"})],-1),n("span",{class:"btn-find-label"},"Symbols",-1)])],10,tY),e.symbolsOpen?(a(),l("div",nY,[n("div",sY,c(e.symbols().length)+" "+c(e.symbols().length===1?"symbol":"symbols"),1),(a(!0),l(N,null,U(e.symbols(),d=>(a(),l("button",{type:"button",class:"symbols-item",role:"menuitem",key:d.line+d.name,onClick:g=>e.goToSymbol(d.line)},[n("span",{class:T(["symbols-kind","is-"+d.kind])},c(d.kind==="class"?"C":d.kind==="function"?"\u0192":"v"),3),n("span",iY,c(d.name),1),n("span",rY,c(d.line),1)],8,oY))),128))])):f("v-if",!0)])):f("v-if",!0),e.type=="html"?(a(),l("button",{key:2,type:"button",class:T(["btn btn-sm btn-ghost btn-icon-only btn-find btn-md-find",{"is-on":e.mdFindOpen}]),"aria-label":"Find on this page",title:"Find on this page ("+(e.isMac?"\u2318":"Ctrl+")+"F)",onClick:t[8]||(t[8]=d=>e.toggleMdFind())},[...t[58]||(t[58]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-search"})],-1)])],10,aY)):f("v-if",!0),e.type!="html"&&!(e.isCsv()&&e.csvView!=="raw")?(a(),l("div",lY,[e.type!="html"?(a(),l("button",{key:0,type:"button",class:"btn btn-sm btn-ghost btn-icon-only btn-goto","aria-label":"Go to line",title:"Go to line ("+(e.isMac?"\u2318":"Ctrl+")+"G)",onClick:t[9]||(t[9]=d=>e.gotoLine())},[...t[59]||(t[59]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-goto"})],-1)])],8,dY)):f("v-if",!0),e.type!="html"?(a(),l("button",{key:1,type:"button",class:T(["btn btn-sm btn-icon-only btn-ghost btn-toggle",{"is-on":e.wrapLines}]),"aria-pressed":e.wrapLines?"true":"false","aria-label":"Wrap lines",title:"Wrap lines (Alt+Z)",onClick:t[10]||(t[10]=d=>e.toggleWrap())},[...t[60]||(t[60]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-wrap"})],-1)])],10,uY)):f("v-if",!0),e.type!="html"?(a(),l("button",{key:2,type:"button",class:"btn btn-sm btn-ghost btn-icon-only btn-find","aria-label":"Find in file",title:"Find in file ("+(e.isMac?"\u2318":"Ctrl+")+"F)",onClick:t[11]||(t[11]=d=>e.findInFile())},[...t[61]||(t[61]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-search"})],-1)])],8,cY)):f("v-if",!0)])):f("v-if",!0),!e.preview||e.url?(a(),l("div",pY,[n("a",{target:e.preview?"_blank":"_self",class:"tb-seg-btn",title:e.type=="html"?"Open the Markdown source":"Open the raw file",href:e.safeUrl(e.url)},"Raw",8,fY),typeof e.content=="string"?(a(),l("button",{key:0,type:"button",class:"tb-seg-btn tb-seg-icon","aria-label":e.contentCopied?"Copied":"Copy file contents",title:e.contentCopied?"Copied":"Copy file contents",onClick:t[12]||(t[12]=d=>e.copyContent())},[(a(),l("svg",hY,[n("use",{href:e.contentCopied?"#ui-icon-check":"#project-icon-copy"},null,8,gY)]))],8,mY)):f("v-if",!0),n("a",{target:e.preview?"_blank":"_self",class:"tb-seg-btn tb-seg-icon","aria-label":"Download file",title:"Download file",href:e.safeUrl(e.downloadUrl()),download:e.preview?e.paths[e.paths.length-1]:null},[...t[62]||(t[62]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-download"})],-1)])],8,yY)])):f("v-if",!0),typeof e.content=="string"?(a(),l("button",{key:5,type:"button",class:"btn btn-sm btn-icon-only btn-ghost tb-copy-m","aria-label":e.contentCopied?"Copied
Line truncated
|
|
|
|
|
`).length))+" lines",1)],64)):f("v-if",!0)])):f("v-if",!0),e.options?.publishedAt||e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate?(a(),l("div",IY)):f("v-if",!0),e.type=="html"?(a(),l("button",{key:3,type:"button",role:"menuitem",onClick:t[18]||(t[18]=d=>e.toggleMdFind())},[...t[67]||(t[67]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-search"})],-1),h("Find in file",-1)])])):f("v-if",!0),e.type=="html"?(a(),l("div",OY)):f("v-if",!0),e.type!="html"?(a(),l("button",{key:5,type:"button",role:"menuitem",onClick:t[19]||(t[19]=d=>e.findInFile())},[...t[68]||(t[68]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-search"})],-1),h("Find in file",-1)])])):f("v-if",!0),e.type!="html"?(a(),l("button",{key:6,type:"button",role:"menuitem",onClick:t[20]||(t[20]=d=>e.gotoLine())},[...t[69]||(t[69]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-goto"})],-1),h("Go to line",-1)])])):f("v-if",!0),e.type!="html"?(a(),l("button",{key:7,type:"button",role:"menuitemcheckbox","aria-checked":e.wrapLines?"true":"false",onClick:t[21]||(t[21]=d=>e.toggleWrap())},[t[70]||(t[70]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-wrap"})],-1)),t[71]||(t[71]=h("Wrap lines",-1)),e.wrapLines?(a(),l("span",VY,"\u2713")):f("v-if",!0)],8,MY)):f("v-if",!0),e.isCsv()?(a(),l(N,{key:8},U(["table","chart","raw"],d=>n("button",{type:"button",role:"menuitemradio",class:"tb-csv-view",key:d,"aria-checked":e.csvView===d?"true":"false",onClick:g=>{e.csvView=d,e.moreOpen=!1}},[(a(),l("svg",LY,[n("use",{href:d==="raw"?"#ui-icon-code":d==="chart"?"#ui-icon-chart":"#ui-icon-list"},null,8,$Y)])),h(c(d==="raw"?"Show as text":d==="chart"?"Show as chart":"Show as table"),1),e.csvView===d?(a(),l("span",FY,"\u2713")):f("v-if",!0)],8,qY)),64)):f("v-if",!0),e.type!="html"?(a(),l("div",UY)):f("v-if",!0),e.type=="html"&&(!e.preview||e.url)?(a(),l("a",{key:10,role:"menuitem",target:e.preview?"_blank":"_self",href:e.safeUrl(e.url)},[...t[72]||(t[72]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-code"})],-1),h("View raw",-1)])],8,BY)):f("v-if",!0),e.type!="html"&&(!e.preview||e.url)?(a(),l("a",{key:11,role:"menuitem",target:e.preview?"_blank":"_self",href:e.safeUrl(e.url)},[...t[73]||(t[73]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-code"})],-1),h("View raw",-1)])],8,HY)):f("v-if",!0),!e.preview||e.url?(a(),l("a",{key:12,role:"menuitem",target:e.preview?"_blank":"_self",href:e.safeUrl(e.downloadUrl()),download:e.preview?e.paths[e.paths.length-1]:null},[...t[74]||(t[74]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-download"})],-1),h("Download file",-1)])],8,zY)):f("v-if",!0),e.options?.hasWebsite?(a(),l("a",{key:13,role:"menuitem",target:e.preview?"_blank":"_self",href:e.safeUrl("/w/"+e.repoId+"/")},[...t[75]||(t[75]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-globe"})],-1),h("Open website",-1)])],8,jY)):f("v-if",!0),e.options?.isAdmin||e.options?.isOwner?(a(),l("a",{key:14,role:"menuitem",href:e.safeUrl("/anonymize/"+e.repoId)},[...t[76]||(t[76]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),h("Edit anonymization",-1)])],8,_Y)):f("v-if",!0),e.options?.download?(a(),l("a",{key:15,role:"menuitem",target:e.preview?"_blank":"_self",href:e.safeUrl("/api/repo/"+e.repoId+"/zip")},[...t[77]||(t[77]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-archive"})],-1),h("Download ZIP",-1)])],8,GY)):f("v-if",!0),n("button",{type:"button",role:"menuitem",onClick:t[22]||(t[22]=d=>e.copyPath())},[...t[78]||(t[78]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-link"})],-1),h("Copy file path",-1)])]),t[79]||(t[79]=n("div",{class:"tb-menu-sep"},null,-1)),t[80]||(t[80]=n("a",{role:"menuitem",href:"/faq"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-help"})]),h("FAQ")],-1)),t[81]||(t[81]=n("a",{role:"menuitem",href:"https://github.com/tdurieux/anonymous_github/issues/new?template=issue_report.yml",target:"_blank",rel:"noopener"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-bug"})]),h("Report a bug")],-1))])):f("v-if",!0)])]),e.gotoOpen&&e.type!="html"?(a(),l("form",{key:3,class:"goto-pop",role:"dialog","aria-label":"Go to line",onSubmit:t[26]||(t[26]=de(d=>e.submitGoto(),["prevent"]))},[t[82]||(t[82]=n("label",{class:"goto-label",for:"goto-input"},"Go to line",-1)),O(n("input",{id:"goto-input",class:"goto-input",type:"text",inputmode:"numeric",autocomplete:"off",spellcheck:"false",placeholder:"1\u2013"+e.fmt?.number(typeof e.content=="string"?e.content.split(`
|
|
|
|
|
`).length:1),"aria-invalid":e.gotoError?"true":"false","onUpdate:modelValue":t[24]||(t[24]=d=>e.gotoValue=d),onKeydown:t[25]||(t[25]=Tt(de(d=>e.closeGoto(),["prevent","stop"]),["esc"]))},null,40,WY),[[ft,e.gotoValue]]),n("span",{class:T(["goto-hint",{"is-error":e.gotoError}])},c(e.gotoError||"Line, or line:column"),3)],32)):f("v-if",!0)]),e.isCsv()&&e.csvView!=="raw"?(a(),Rt(s,{key:e.paths?.join("/"),rows:e.csvRows(),name:e.paths?.[e.paths.length-1],"state-key":e.preview?null:"table",view:e.csvView},null,8,["rows","name","state-key","view"])):f("v-if",!0),e.type!="html"&&!(e.isCsv()&&e.csvView!=="raw")?O((a(),l("div",KY,null,512)),[[u,{content:e.content,options:e.aceOption}]]):f("v-if",!0),e.type=="html"&&e.mdFindOpen?(a(),l("div",YY,[n("input",{type:"search",class:"md-find-input",placeholder:"Find on this page","aria-label":"Find on this page",value:e.mdFindQuery,onInput:t[27]||(t[27]=d=>{e.mdFindQuery=d.target.value,e.runMdFind()}),onKeydown:[t[28]||(t[28]=Tt(de(d=>d.shiftKey?e.stepMdFind(-1):e.stepMdFind(1),["prevent"]),["enter"])),t[29]||(t[29]=Tt(de(d=>e.toggleMdFind(!1),["prevent"]),["esc"]))]},null,40,XY),n("span",QY,[n("button",{type:"button","aria-label":"Previous match",onClick:t[30]||(t[30]=d=>e.stepMdFind(-1)),disabled:!e.mdFindTotal},[...t[83]||(t[83]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1)])],8,JY),n("button",{type:"button","aria-label":"Next match",onClick:t[31]||(t[31]=d=>e.stepMdFind(1)),disabled:!e.mdFindTotal},[...t[84]||(t[84]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,ZY)]),n("span",xY,c(e.mdFindQuery?e.mdFindTotal?e.mdFindIndex+1+" of "+e.mdFindTotal:"No results":""),1),n("button",{type:"button",class:T(["md-find-opt",{"is-on":e.mdFindCase}]),"aria-pressed":e.mdFindCase?"true":"false",title:"Match case","aria-label":"Match case",onClick:t[32]||(t[32]=d=>{e.mdFindCase=!e.mdFindCase,e.runMdFind()})},"Aa",10,eX),n("button",{type:"button",class:"md-find-close","aria-label":"Close find",onClick:t[33]||(t[33]=d=>e.toggleMdFind(!1))},"\xD7")])):f("v-if",!0),e.type=="html"?(a(),l("div",tX,[O(n("div",{class:"file-content markdown-body",innerHTML:e.renderReadme(e.sanitize(e.content))},null,8,nX),[[p]]),e.tocCount()>=3?(a(),l("aside",sX,[t[85]||(t[85]=n("div",{class:"readme-toc-head"},"On this page",-1)),n("nav",oX,[n("a",{href:"#",class:T(["lvl-2 toc-top",{"is-active":!e.activeHeading||e.activeHeading===e.tocTitle()?.id}]),onClick:t[34]||(t[34]=de(d=>e.scrollToHeading(null),["prevent"]))},[e.tocTitle()?(a(!0),l(N,{key:0},U(e.tocTitle().parts,(d,g)=>(a(),l(N,{key:g},[d.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+d.n},[n("i",null,c(d.n),1)],8,iX)):(a(),l(N,{key:1},[h(c(d.t),1)],64))],64))),128)):(a(),l(N,{key:1},[h("Introduction")],64))],2),(a(!0),l(N,null,U(e.readmeToc(),(d,g)=>(a(),l("a",{key:d.id,href:"#"+d.id,class:T(["lvl-"+(d.depth+2),{"is-active":e.activeHeading===d.id}]),"aria-current":e.activeHeading===d.id?"location":null,onClick:de(m=>e.scrollToHeading(d.id),["prevent"])},[(a(!0),l(N,null,U(d.parts,(m,v)=>(a(),l(N,{key:v},[m.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+m.n},[n("i",null,c(m.n),1)],8,aX)):(a(),l(N,{key:1},[h(c(m.t),1)],64))],64))),128))],10,rX))),128))])])):f("v-if",!0)])):f("v-if",!0)],2)):f("v-if",!0),e.type=="html-doc"&&!e.showSource&&e.content!=null?(a(),Rt(i,{key:2,content:e.content,"base-url":e.fileBaseUrl,"allow-scripts":e.allowScripts},null,8,["content","base-url","allow-scripts"])):f("v-if",!0),e.fileFrame()?(a(),l("section",{key:3,class:T(["file-card file-card-media","view-"+e.type])},[n("header",lX,[n("div",dX,[n("button",{type:"button",class:T(["btn btn-sm btn-icon-only btn-ghost card-files-btn",{"is-needed":e.sidebarHidden}]),title:"Show file tree",onClick:t[35]||(t[35]=d=>e.sidebarHidden?e.sidebarHidden=!1:e.sidebarCollapsed=!1)},[...t[86]||(t[86]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-sidebar"})],-1),n("span",{class:"card-files-label"},"Files",-1)])],2),n("ol",uX,[n("li",cX,[n("a",{href:e.safeUrl("/r/"+e.repoId+"/"),title:e.repoId,textContent:c(/^[0-9a-f]{8}-[0-9a-f]{4}-/i.test(e.repoId||"")?"repository":e.repoId)},null,8,pX)]),(a(!0),l(N,null,U(e.paths,(d,g)=>(a(),l("li",{class:"breadcrumb-item","aria-current":g===e.paths.length-1?"page":null},[(a(!0),l(N,null,U(e.redactParts(d),(m,v)=>(a(),l(N,{key:v},[m.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+m.n},[n("i",null,c(m.n),1)],8,mX)):(a(),l(N,{key:1},[h(c(m.t),1)],64))],64))),128))],8,fX))),256))]),n("span",hX,[e.type=="IPython"&&e.redactionCount()?(a(),l("b",{key:0,class:"ms-item ms-redact",title:e.redactionCount()+" redacted terms"},[h(c(e.redactionCount()),1),t[87]||(t[87]=n("span",{class:"meta-redact-word"}," redacted",-1))],8,gX)):f("v-if",!0),n("span",yX,c(e.fileKind()),1),e.imageSize?(a(),l("span",vX,c(e.imageSize),1)):f("v-if",!0),e.fileSi
Line truncated
|
|
|
|
|
`).length+1)),placeholder:`Jane Smith
|
|
|
|
|
MIT CSAIL
|
|
|
|
|
jane.smith@example.org`},null,8,HQ),[[i,{state:e.viewState,set:r=>{e.terms=r},value:e.terms,form:"defaultsForm",options:{debounce:250}}]]),n("details",jQ,[t[25]||(t[25]=n("summary",null,"Regex & replacement syntax",-1)),n("p",null,[t[21]||(t[21]=g("Matches become ",-1)),n("code",null,c(e.site_options?.ANONYMIZATION_MASK||"XXX")+"-[N]",1),t[22]||(t[22]=g(". Use ",-1)),t[23]||(t[23]=n("code",null,"term=>replacement",-1)),t[24]||(t[24]=g(" for a custom replacement. Regex is supported.",-1))])]),A(n("div",GQ,"Terms are in an invalid format.",512),[[ee,e.defaultsForm?.terms?.errors?.format]])])]),n("section",WQ,[t[35]||(t[35]=n("h2",null,"Reviewer display",-1)),n("div",null,[n("div",KQ,[n("label",YQ,[A(n("input",XQ,null,512),[[i,{state:e.viewState,set:r=>{e.options.link=r},value:e.options?.link,form:"defaultsForm",options:{}}]]),t[27]||(t[27]=g("Keep links",-1))]),n("label",JQ,[A(n("input",QQ,null,512),[[i,{state:e.viewState,set:r=>{e.options.image=r},value:e.options?.image,form:"defaultsForm",options:{}}]]),t[28]||(t[28]=g("Display images",-1))]),n("label",ZQ,[A(n("input",xQ,null,512),[[i,{state:e.viewState,set:r=>{e.options.pdf=r},value:e.options?.pdf,form:"defaultsForm",options:{}}]]),t[29]||(t[29]=g("Display PDFs",-1))]),n("label",eZ,[A(n("input",tZ,null,512),[[i,{state:e.viewState,set:r=>{e.options.notebook=r},value:e.options?.notebook,form:"defaultsForm",options:{}}]]),t[30]||(t[30]=g("Display notebooks",-1))]),n("label",nZ,[A(n("input",sZ,null,512),[[i,{state:e.viewState,set:r=>{e.options.loc=r},value:e.options?.loc,form:"defaultsForm",options:{}}]]),t[31]||(t[31]=g("Show line counts",-1))]),n("label",oZ,[A(n("input",iZ,null,512),[[i,{state:e.viewState,set:r=>{e.options.page=r},value:e.options?.page,form:"defaultsForm",options:{}}]]),t[32]||(t[32]=g("GitHub Pages",-1))])]),t[33]||(t[33]=n("p",{class:"settings-help"},"Images and PDFs are not anonymized.",-1)),t[34]||(t[34]=n("p",{class:"settings-help"},"GitHub Pages must use the anonymized branch.",-1))])]),n("section",rZ,[t[38]||(t[38]=n("h2",null,"Source updates",-1)),n("div",null,[n("label",aZ,[A(n("input",lZ,null,512),[[i,{state:e.viewState,set:r=>{e.options.update=r},value:e.options?.update,form:"defaultsForm",options:{}}]]),t[36]||(t[36]=g("Auto-update from GitHub",-1))]),t[37]||(t[37]=n("p",{class:"settings-help"},"Latest commit, at most once an hour.",-1))])]),n("section",dZ,[t[40]||(t[40]=n("label",{class:"settings-label",for:"expiration"},"On expiration",-1)),n("div",null,[A((a(),l("select",uZ,[...t[39]||(t[39]=[n("option",{value:"redirect"},"Redirect visitors to the GitHub repository",-1),n("option",{value:"remove",selected:""},"Remove the anonymized repository",-1)])])),[[i,{state:e.viewState,set:r=>{e.options.expirationMode=r},value:e.options?.expirationMode,form:"defaultsForm",options:{}}]]),n("p",cZ,c(e.options.expirationMode==="redirect"?"Redirecting reveals the original repository. Choose the date per anonymization.":"Set the expiration date for each repository."),1)])]),n("footer",pZ,[n("div",fZ,[e.draftRestored?(a(),l("span",mZ,"Your unsaved draft was restored.")):e.unsavedChanges?(a(),l("span",hZ,"Unsaved changes"+c(e.draftSaved?" \xB7 Draft saved in this tab":""),1)):(a(),l("span",gZ,c(e.message?"Defaults saved":"No unsaved changes"),1))]),e.draftRestored||e.unsavedChanges?(a(),l("button",{key:0,type:"button",class:"draft-discard",onClick:t[0]||(t[0]=r=>e.discardDraft())},"Discard changes")):f("v-if",!0),n("button",{id:"save",type:"submit",class:T(["btn btn-ink",{"is-saving":e.saving}]),disabled:e.saving||!(e.unsavedChanges||e.draftRestored)},c(e.saving?"Saving\u2026":"Save defaults"),11,vZ),e.error?(a(),l("div",yZ,c(e.error),1)):f("v-if",!0)])],32)),[[o,e.viewState]])],512),[[ee,e.settingsTab==="defaults"]]),A(n("section",{id:"settings-billing","aria-busy":e.billingLoading||e.billingBusy},[t[95]||(t[95]=n("p",{class:"settings-scope"},"Your plan and usage. Reviewer access is always free.",-1)),e.billingLoading?(a(),l("p",wZ,"Loading billing\u2026")):f("v-if",!0),e.billingError?(a(),l("div",kZ,[g(c(e.billingError)+" ",1),n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[3]||(t[3]=r=>e.loadBilling()),disabled:e.billingBusy},"Try again",8,CZ)])):f("v-if",!0),e.billingNotice?(a(),l("p",SZ,c(e.billingNotice),1)):f("v-if",!0),e.billingPending?(a(),l("div",EZ,[t[42]||(t[42]=n("strong",null,"Confirming your payment",-1)),t[43]||(t[43]=n("p",null,"Your allowance will update after confirmation. Please do not pay again.",-1)),n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[4]||(t[4]=r=>e.refreshBilling()),disabled:e.billingBusy},"Check payment status",8,NZ)])):f("v-if",!0),n("section",RZ,[n("div",TZ,[n("div",null,[t[44]||(t[44]=n("p",{class:"billing-eyebrow"},"Current plan",-1)),n("h2",PZ,c(e.profileAuthorGrant()?e.profileGrantName(e.profileAuthorGrant()):e.billing?.enabled?"Free":"Account allowance"),1),e.profileAuthorGrant()?(a(),l("p",AZ,[g(c(e.profileAuthorGrant().cancelAtPeriodEnd?"Renewal cancelled \xB7 access
Line truncated
|
|
|
|
|
`);t.innerHTML=s.map(i=>{let o=i.replace(/^(<[^>]+>)+/,"").charAt(0),r=i.startsWith("@@")?"hunk":o==="+"?"add":o==="-"?"remove":"";return`<span class="md-diff-line${r?" is-"+r:""}">${i||" "}</span>`}).join(`
|
|
|
|
|
`)}),ym=(e,t=0)=>{let s=(String(e).slice(t).match(/^[ \t]*/)[0]||"").replace(/\t/g," ").length;return Math.min(t+s+4,24)},Cm=e=>{e?.closest?.(".reviewer-preview")&&e.querySelectorAll("pre code").forEach(t=>{let s=t.querySelectorAll(".md-diff-line");if(s.length){s.forEach(o=>{o.classList.contains("is-hunk")||o.style.setProperty("--hang",ym(o.textContent,1)+"ch")});return}if(t.querySelector(".code-line"))return;let i=[];t.innerHTML=t.innerHTML.replace(/\n$/,"").split(`
|
|
|
|
|
`).map(o=>{let r=i.join("");o.replace(/<\/?span\b[^>]*>/g,p=>(p.startsWith("</")?i.pop():i.push(p),p));let u=o.replace(/<[^>]+>/g,"");return`<span class="code-line" style="--hang:${ym(u)}ch">${r}${o||" "}${"</span>".repeat(i.length)}</span>`}).join(`
|
|
|
|
|
`)})},yle=e=>e.toLowerCase().trim().replace(/[^a-z0-9\s-]/g,"").replace(/\s+/g,"-").slice(0,60)||"section",td={props:["content","terms","options","reader","idPrefix","onOutline"],setup(e){let t=bt(null),s=()=>{let i=renderMD(e.content||"",window.location.pathname+"/../");if(t.value.innerHTML=e.reader?to(i):i,km(t.value),Cm(t.value),e.idPrefix!=null){let o={};t.value.querySelectorAll("h1, h2, h3").forEach(r=>{let u=e.idPrefix+(r.id||yle(r.textContent));o[u]?u+="-"+ ++o[u]:o[u]=1,r.id=u})}Ci(t.value),e.onOutline?.(Sr(t.value))};return Jt(()=>{s(),dt(()=>[e.content,e.terms,e.options],s,{deep:!0})}),()=>be("markdown",{ref:t,class:e.reader?"markdown-body":null})}},bm=e=>Qt(e).map(t=>t.n?be("span",{class:"redact-slot",role:"img","aria-label":"Redacted term "+t.n},be("i",t.n)):t.t),ed=e=>/^XXXX-\d+$/.test(String(e||"").trim()),ble=(e,t="Reviewer")=>e?be("span",{class:["pr-author",{"is-redacted":ed(e)}],title:ed(e)?"Redacted author":null},ed(e)?bm(e):["@",...bm(e)]):be("span",{class:"pr-author is-hidden"},t),Sm={props:["comments","fmt"],setup(e){return()=>be("div",{class:"pr-thread"},(e.comments||[]).map((t,s)=>be("article",{class:["pr-thread-comment",{"is-reply":s>0}],key:s},[be("header",{class:"pr-thread-head"},[be("span",{class:"pr-avatar","aria-hidden":"true"},be("svg",{class:"ui-icon"},be("use",{href:"#ui-icon-user"}))),ble(t.author),t.creationDate||t.updatedDate?be("time",{class:"pr-thread-date",datetime:t.creationDate||t.updatedDate},e.fmt?.date(t.creationDate||t.updatedDate)):null]),t.body?be("div",{class:"pr-thread-body"},be(td,{content:t.body,reader:!0})):null])))}},wle=e=>String(e??"").replace(/[&<>"']/g,t=>({"&":"&","<":"<",">":">",'"':""","'":"'"})[t]),kle=new Set(["add","remove","ctx","hunk"]),Cle=e=>{let t=kle.has(e.kind)?e.kind:"ctx",s=Qt(e.text).map(i=>i.n?`<span class="redact-slot" role="img" aria-label="Redacted term ${Number(i.n)}"><i>${Number(i.n)}</i></span>`:wle(i.t)).join("");return`<tr class="diff-row diff-row-${t}"><td class="diff-gutter diff-gutter-old">${Number(e.oldNo)||""}</td><td class="diff-gutter diff-gutter-new">${Number(e.newNo)||""}</td><td class="diff-sign">${t==="add"?"+":t==="remove"?"\u2212":""}</td><td class="diff-code" style="--hang: ${Zs(e.text)}ch">${s}</td></tr>`},Sle={props:["file","fmt"],setup(e){return()=>{let t=[],s="",i=()=>{s&&t.push(be("tbody",{key:"r"+t.length,innerHTML:s})),s=""};return(e.file?.lines||[]).forEach(o=>{s+=Cle(o),o.threads?.length&&(i(),t.push(be("tbody",{key:"t"+t.length},o.threads.map((r,u)=>be("tr",{class:"diff-thread-row",key:u},[be("td",{class:"diff-thread-gutter",colspan:3}),be("td",{class:"diff-thread-cell"},be(Sm,{comments:r.comments,fmt:e.fmt}))])))))}),i(),be("table",{class:"diff-file-table"},t)}}},Ele={props:["file","terms","options","reader","idPrefix","onOutline"],setup(e){let t=bt(null),s=()=>Ke(()=>{t.value?.querySelectorAll("pre code").forEach(i=>window.Prism?.highlightElement(i)),km(t.value),Cm(t.value)});return Jt(s),dt(()=>[e.file?.content,e.terms,e.options],s,{deep:!0}),()=>{let i=e.file||{},o=(i.filename||"").split(".").pop().toLowerCase();if(["md","markdown"].includes(o)||i.language==="Markdown")return be("gist-file",{ref:t},be(td,{content:i.content,terms:e.terms,options:e.options,reader:e.reader,idPrefix:e.idPrefix,onOutline:e.onOutline}));let r={js:"javascript",jsx:"javascript",ts:"javascript",typescript:"javascript",py:"python",html:"markup",xml:"markup",svg:"markup",sh:"bash"},u=(i.language||o||"none").toLowerCase();return be("gist-file",{ref:t},be("pre",{class:"line-numbers"},be("code",{class:"language-"+(r[u]||u),key:i.content},i.content||"")))}}},Nle=e=>e?.querySelectorAll(".nb-input pre").forEach(t=>{if(t.parentElement?.classList.contains("nb-code-scroll"))return;let s=document.createElement("div");s.className="nb-code-scroll",t.replaceWith(s),s.appendChild(t);let i=()=>{let o=t.scrollWidth-t.clientWidth>1;if(s.classList.toggle("is-overflowing",o),s.classList.toggle("is-at-end",o&&t.scrollLeft+t.clientWidth>=t.scrollWidth-2),!o)return;let r=t.clientWidth-16,u=Math.max(24,r*t.clientWidth/t.scrollWidth);s.style.setProperty("--thumb-w",u+"px"),s.style.setProperty("--thumb-x",(r-u)*t.scrollLeft/(t.scrollWidth-t.clientWidth)+"px")};t.addEventListener("scroll",i,{passive:!0}),window.ResizeObserver?new ResizeObserver(i).observe(t):i(),i()}),Rle={props:["file","content"],setup(e){let t=bt(null),s=0,i,o=async()=>{let r=++s;i?.abort(),i=new AbortController;try{let u=e.content?JSON.parse(e.content):await fetch(e.file?.download_url||e.file,{signal:i.signal}).then(p=>{if(!p.ok)throw Error("Notebook request failed");return p.json()});if(await ds("notebook"),r!==s)return;t.value.innerHTML=to(DOMPurify.sanitize(nb.parse(u).render())),t.value.querySelectorAll("pre code").forEach(p=>window.Prism?.highlightElement(p)),Nle(t.value),Ci(t.value)}catch(u){r===s&&u.name!=="AbortError"&&(t.value.textContent="Unable to render the notebook.")}};return Jt(()=>{o(),dt(()=>[e.file,e.content],o)}),Un(()=>{s++,i?.abort()}),()=>be(Line truncated
|
|
|
|
|
jane.smith@example.org`},null,8,NJ),[[i,{state:e.viewState,set:o=>{e.terms=o},value:e.terms,form:"defaultsForm",options:{debounce:250}}]]),n("details",RJ,[t[25]||(t[25]=n("summary",null,"Regex & replacement syntax",-1)),n("p",null,[t[21]||(t[21]=h("Matches become ",-1)),n("code",null,c(e.site_options?.ANONYMIZATION_MASK||"XXX")+"-[N]",1),t[22]||(t[22]=h(". Use ",-1)),t[23]||(t[23]=n("code",null,"term=>replacement",-1)),t[24]||(t[24]=h(" for a custom replacement. Regex is supported.",-1))])]),O(n("div",TJ,"Terms are in an invalid format.",512),[[te,e.defaultsForm?.terms?.errors?.format]])])]),n("section",PJ,[t[35]||(t[35]=n("h2",null,"Reviewer display",-1)),n("div",null,[n("div",DJ,[n("label",AJ,[O(n("input",IJ,null,512),[[i,{state:e.viewState,set:o=>{e.options.link=o},value:e.options?.link,form:"defaultsForm",options:{}}]]),t[27]||(t[27]=h("Keep links",-1))]),n("label",OJ,[O(n("input",MJ,null,512),[[i,{state:e.viewState,set:o=>{e.options.image=o},value:e.options?.image,form:"defaultsForm",options:{}}]]),t[28]||(t[28]=h("Display images",-1))]),n("label",VJ,[O(n("input",qJ,null,512),[[i,{state:e.viewState,set:o=>{e.options.pdf=o},value:e.options?.pdf,form:"defaultsForm",options:{}}]]),t[29]||(t[29]=h("Display PDFs",-1))]),n("label",LJ,[O(n("input",$J,null,512),[[i,{state:e.viewState,set:o=>{e.options.notebook=o},value:e.options?.notebook,form:"defaultsForm",options:{}}]]),t[30]||(t[30]=h("Display notebooks",-1))]),n("label",FJ,[O(n("input",UJ,null,512),[[i,{state:e.viewState,set:o=>{e.options.loc=o},value:e.options?.loc,form:"defaultsForm",options:{}}]]),t[31]||(t[31]=h("Show line counts",-1))]),n("label",BJ,[O(n("input",HJ,null,512),[[i,{state:e.viewState,set:o=>{e.options.page=o},value:e.options?.page,form:"defaultsForm",options:{}}]]),t[32]||(t[32]=h("GitHub Pages",-1))])]),t[33]||(t[33]=n("p",{class:"settings-help"},"Images and PDFs are not anonymized.",-1)),t[34]||(t[34]=n("p",{class:"settings-help"},"GitHub Pages must use the anonymized branch.",-1))])]),n("section",zJ,[t[38]||(t[38]=n("h2",null,"Source updates",-1)),n("div",null,[n("label",jJ,[O(n("input",_J,null,512),[[i,{state:e.viewState,set:o=>{e.options.update=o},value:e.options?.update,form:"defaultsForm",options:{}}]]),t[36]||(t[36]=h("Auto-update from GitHub",-1))]),t[37]||(t[37]=n("p",{class:"settings-help"},"Latest commit, at most once an hour.",-1))])]),n("section",GJ,[t[40]||(t[40]=n("label",{class:"settings-label",for:"expiration"},"On expiration",-1)),n("div",null,[O((a(),l("select",WJ,[...t[39]||(t[39]=[n("option",{value:"redirect"},"Redirect visitors to the GitHub repository",-1),n("option",{value:"remove",selected:""},"Remove the anonymized repository",-1)])])),[[i,{state:e.viewState,set:o=>{e.options.expirationMode=o},value:e.options?.expirationMode,form:"defaultsForm",options:{}}]]),n("p",KJ,c(e.options.expirationMode==="redirect"?"Redirecting reveals the original repository. Choose the date per anonymization.":"Set the expiration date for each repository."),1)])]),n("footer",YJ,[n("div",XJ,[e.draftRestored?(a(),l("span",QJ,"Your unsaved draft was restored.")):e.unsavedChanges?(a(),l("span",JJ,"Unsaved changes"+c(e.draftSaved?" \xB7 Draft saved in this tab":""),1)):(a(),l("span",ZJ,c(e.message?"Defaults saved":"No unsaved changes"),1))]),e.draftRestored||e.unsavedChanges?(a(),l("button",{key:0,type:"button",class:"draft-discard",onClick:t[0]||(t[0]=o=>e.discardDraft())},"Discard changes")):f("v-if",!0),n("button",{id:"save",type:"submit",class:T(["btn btn-ink",{"is-saving":e.saving}]),disabled:e.saving||!(e.unsavedChanges||e.draftRestored)},c(e.saving?"Saving\u2026":"Save defaults"),11,xJ),e.error?(a(),l("div",eZ,c(e.error),1)):f("v-if",!0)])],32)),[[r,e.viewState]])],512),[[te,e.settingsTab==="defaults"]]),O(n("section",{id:"settings-billing","aria-busy":e.billingLoading||e.billingBusy},[t[95]||(t[95]=n("p",{class:"settings-scope"},"Your plan and usage. Reviewer access is always free.",-1)),e.billingLoading?(a(),l("p",nZ,"Loading billing\u2026")):f("v-if",!0),e.billingError?(a(),l("div",sZ,[h(c(e.billingError)+" ",1),n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[3]||(t[3]=o=>e.loadBilling()),disabled:e.billingBusy},"Try again",8,oZ)])):f("v-if",!0),e.billingNotice?(a(),l("p",iZ,c(e.billingNotice),1)):f("v-if",!0),e.billingPending?(a(),l("div",rZ,[t[42]||(t[42]=n("strong",null,"Confirming your payment",-1)),t[43]||(t[43]=n("p",null,"Your allowance will update after confirmation. Please do not pay again.",-1)),n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[4]||(t[4]=o=>e.refreshBilling()),disabled:e.billingBusy},"Check payment status",8,aZ)])):f("v-if",!0),n("section",lZ,[n("div",dZ,[n("div",null,[t[44]||(t[44]=n("p",{class:"billing-eyebrow"},"Current plan",-1)),n("h2",uZ,c(e.profileAuthorGrant()?e.profileGrantName(e.profileAuthorGrant()):e.billing?.enabled?"Free":"Account allowance"),1),e.profileAuthorGrant()?(a(),l("p",cZ,[h(c(e.profileAuthorGrant().cancelAtPeriodEnd?"Renewal cancelled \xB7 access
Line truncated
|
|
|
|
|
`);t.innerHTML=s.map(i=>{let r=i.replace(/^(<[^>]+>)+/,"").charAt(0),o=i.startsWith("@@")?"hunk":r==="+"?"add":r==="-"?"remove":"";return`<span class="md-diff-line${o?" is-"+o:""}">${i||" "}</span>`}).join(`
|
|
|
|
|
`)}),Pm=(e,t=0)=>{let s=(String(e).slice(t).match(/^[ \t]*/)[0]||"").replace(/\t/g," ").length;return Math.min(t+s+4,24)},Om=e=>{e?.closest?.(".reviewer-preview")&&e.querySelectorAll("pre code").forEach(t=>{let s=t.querySelectorAll(".md-diff-line");if(s.length){s.forEach(r=>{r.classList.contains("is-hunk")||r.style.setProperty("--hang",Pm(r.textContent,1)+"ch")});return}if(t.querySelector(".code-line"))return;let i=[];t.innerHTML=t.innerHTML.replace(/\n$/,"").split(`
|
|
|
|
|
`).map(r=>{let o=i.join("");r.replace(/<\/?span\b[^>]*>/g,p=>(p.startsWith("</")?i.pop():i.push(p),p));let u=r.replace(/<[^>]+>/g,"");return`<span class="code-line" style="--hang:${Pm(u)}ch">${o}${r||" "}${"</span>".repeat(i.length)}</span>`}).join(`
|
|
|
|
|
`)})},ele=e=>e.toLowerCase().trim().replace(/[^a-z0-9\s-]/g,"").replace(/\s+/g,"-").slice(0,60)||"section",rd={props:["content","terms","options","reader","idPrefix","onOutline"],setup(e){let t=bt(null),s=()=>{let i=renderMD(e.content||"",window.location.pathname+"/../");if(t.value.innerHTML=e.reader?to(i):i,Im(t.value),Om(t.value),e.idPrefix!=null){let r={};t.value.querySelectorAll("h1, h2, h3").forEach(o=>{let u=e.idPrefix+(o.id||ele(o.textContent));r[u]?u+="-"+ ++r[u]:r[u]=1,o.id=u})}Ci(t.value),e.onOutline?.(Er(t.value))};return Qt(()=>{s(),dt(()=>[e.content,e.terms,e.options],s,{deep:!0})}),()=>ke("markdown",{ref:t,class:e.reader?"markdown-body":null})}},Dm=e=>Jt(e).map(t=>t.n?ke("span",{class:"redact-slot",role:"img","aria-label":"Redacted term "+t.n},ke("i",t.n)):t.t),id=e=>/^XXXX-\d+$/.test(String(e||"").trim()),tle=(e,t="Reviewer")=>e?ke("span",{class:["pr-author",{"is-redacted":id(e)}],title:id(e)?"Redacted author":null},id(e)?Dm(e):["@",...Dm(e)]):ke("span",{class:"pr-author is-hidden"},t),Mm={props:["comments","fmt"],setup(e){return()=>ke("div",{class:"pr-thread"},(e.comments||[]).map((t,s)=>ke("article",{class:["pr-thread-comment",{"is-reply":s>0}],key:s},[ke("header",{class:"pr-thread-head"},[ke("span",{class:"pr-avatar","aria-hidden":"true"},ke("svg",{class:"ui-icon"},ke("use",{href:"#ui-icon-user"}))),tle(t.author),t.creationDate||t.updatedDate?ke("time",{class:"pr-thread-date",datetime:t.creationDate||t.updatedDate},e.fmt?.date(t.creationDate||t.updatedDate)):null]),t.body?ke("div",{class:"pr-thread-body"},ke(rd,{content:t.body,reader:!0})):null])))}},nle=e=>String(e??"").replace(/[&<>"']/g,t=>({"&":"&","<":"<",">":">",'"':""","'":"'"})[t]),sle=new Set(["add","remove","ctx","hunk"]),ole=e=>{let t=sle.has(e.kind)?e.kind:"ctx",s=Jt(e.text).map(i=>i.n?`<span class="redact-slot" role="img" aria-label="Redacted term ${Number(i.n)}"><i>${Number(i.n)}</i></span>`:nle(i.t)).join("");return`<tr class="diff-row diff-row-${t}"><td class="diff-gutter diff-gutter-old">${Number(e.oldNo)||""}</td><td class="diff-gutter diff-gutter-new">${Number(e.newNo)||""}</td><td class="diff-sign">${t==="add"?"+":t==="remove"?"\u2212":""}</td><td class="diff-code" style="--hang: ${Zs(e.text)}ch">${s}</td></tr>`},ile={props:["file","fmt"],setup(e){return()=>{let t=[],s="",i=()=>{s&&t.push(ke("tbody",{key:"r"+t.length,innerHTML:s})),s=""};return(e.file?.lines||[]).forEach(r=>{s+=ole(r),r.threads?.length&&(i(),t.push(ke("tbody",{key:"t"+t.length},r.threads.map((o,u)=>ke("tr",{class:"diff-thread-row",key:u},[ke("td",{class:"diff-thread-gutter",colspan:3}),ke("td",{class:"diff-thread-cell"},ke(Mm,{comments:o.comments,fmt:e.fmt}))])))))}),i(),ke("table",{class:"diff-file-table"},t)}}},rle={props:["file","terms","options","reader","idPrefix","onOutline"],setup(e){let t=bt(null),s=()=>xe(()=>{t.value?.querySelectorAll("pre code").forEach(i=>window.Prism?.highlightElement(i)),Im(t.value),Om(t.value)});return Qt(s),dt(()=>[e.file?.content,e.terms,e.options],s,{deep:!0}),()=>{let i=e.file||{},r=(i.filename||"").split(".").pop().toLowerCase();if(["md","markdown"].includes(r)||i.language==="Markdown")return ke("gist-file",{ref:t},ke(rd,{content:i.content,terms:e.terms,options:e.options,reader:e.reader,idPrefix:e.idPrefix,onOutline:e.onOutline}));let o={js:"javascript",jsx:"javascript",ts:"javascript",typescript:"javascript",py:"python",html:"markup",xml:"markup",svg:"markup",sh:"bash"},u=(i.language||r||"none").toLowerCase();return ke("gist-file",{ref:t},ke("pre",{class:"line-numbers"},ke("code",{class:"language-"+(o[u]||u),key:i.content},i.content||"")))}}},ale=e=>e?.querySelectorAll(".nb-input pre").forEach(t=>{if(t.parentElement?.classList.contains("nb-code-scroll"))return;let s=document.createElement("div");s.className="nb-code-scroll",t.replaceWith(s),s.appendChild(t);let i=()=>{let r=t.scrollWidth-t.clientWidth>1;if(s.classList.toggle("is-overflowing",r),s.classList.toggle("is-at-end",r&&t.scrollLeft+t.clientWidth>=t.scrollWidth-2),!r)return;let o=t.clientWidth-16,u=Math.max(24,o*t.clientWidth/t.scrollWidth);s.style.setProperty("--thumb-w",u+"px"),s.style.setProperty("--thumb-x",(o-u)*t.scrollLeft/(t.scrollWidth-t.clientWidth)+"px")};t.addEventListener("scroll",i,{passive:!0}),window.ResizeObserver?new ResizeObserver(i).observe(t):i(),i()}),lle={props:["file","content"],setup(e){let t=bt(null),s=0,i,r=async()=>{let o=++s;i?.abort(),i=new AbortController;try{let u=e.content?JSON.parse(e.content):await fetch(e.file?.download_url||e.file,{signal:i.signal}).then(p=>{if(!p.ok)throw Error("Notebook request failed");return p.json()});if(await ds("notebook"),o!==s)return;t.value.innerHTML=to(DOMPurify.sanitize(nb.parse(u).render())),t.value.querySelectorAll("pre code").forEach(p=>window.Prism?.highlightElement(p)),ale(t.value),Ci(t.value)}catch(u){o===s&&u.name!=="AbortError"&&(t.value.textContent="Unable to render the notebook.")}};return Qt(()=>{r(),dt(()=>[e.file,e.content],r)}),Un(()=>{s++,i?.abort()}),()=>ke(Line truncated
|
|
|
|
|
/*! Bundled license information:
|
|
|
|
|
|
|
|
|
|
@vue/shared/dist/shared.esm-bundler.js:
|
|
|
|
|