demoman 0.7.0 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -6
- package/THIRD_PARTY_NOTICES +155 -29
- package/dist/demoman.mjs +2196 -1146
- package/dist/page/executor-entry.js +16 -3
- package/dist/page/mux-entry.js +192 -81
- package/dist/page/render-entry.js +602 -613
- package/dist/page/resolve-entry.js +16 -3
- package/dist/recipe.md +70 -59
- package/dist/studio/assets/confirm-dialog-CN_GqXY_.js +72 -0
- package/dist/studio/assets/confirm-dialog-Dd_hs1Bv.css +1 -0
- package/dist/studio/assets/editor-Cy1V14-4.js +4 -0
- package/dist/studio/assets/{editor-inline-3529c61f.css → editor-inline-7e387eed.css} +65 -1
- package/dist/studio/assets/library-CQtDqEvE.js +1 -0
- package/dist/studio/assets/settings-C4OPkolR.js +1 -0
- package/dist/studio/assets/{settings-inline-081bd3f0.css → settings-inline-ff6d2eee.css} +2 -142
- package/dist/studio/assets/topbar-sSUyITjl.js +1 -0
- package/dist/studio/assets/view-DsZQo9AJ.js +1 -0
- package/dist/studio/editor.html +5 -6
- package/dist/studio/icon/32.png +0 -0
- package/dist/studio/images/icon.svg +3 -6
- package/dist/studio/images/lockup_dark.svg +10 -13
- package/dist/studio/images/lockup_light.svg +10 -13
- package/dist/studio/images/logomark.svg +2 -8
- package/dist/studio/library.html +4 -9
- package/dist/studio/settings.html +6 -11
- package/dist/studio/studio-build.json +3 -3
- package/package.json +10 -1
- package/dist/studio/assets/editor-BTGqbeOf.js +0 -4
- package/dist/studio/assets/library-BgPfg1Id.js +0 -1
- package/dist/studio/assets/settings-Bq1e7Iz8.js +0 -1
- package/dist/studio/assets/switch-Bn7Uwnf1.js +0 -1
- package/dist/studio/assets/theme-D59pt_a-.js +0 -72
- package/dist/studio/assets/theme-D6wPSXx4.css +0 -1
- package/dist/studio/assets/topbar-Dq9UrNEm.js +0 -1
- package/dist/studio/icon/128.png +0 -0
- package/dist/studio/icon/16.png +0 -0
- package/dist/studio/icon/48.png +0 -0
- package/dist/studio/icon/recording/128.png +0 -0
- package/dist/studio/icon/recording/16.png +0 -0
- package/dist/studio/icon/recording/32.png +0 -0
- package/dist/studio/icon/recording/48.png +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,i as t,n,o as r,r as i,s as a,t as o}from"./confirm-dialog-CN_GqXY_.js";import{a as s,d as c,i as l,l as u,n as d,o as f,r as p,t as m}from"./state-COWbBf84.js";import{n as h,r as g,t as _}from"./topbar-sSUyITjl.js";function v(e,t){let n=e=>({ref:e.ref,sourceTimeMs:e.sourceTimeMs});if(e.length<=t)return e.map(n);let r=t>1?(e.length-1)/(t-1):0,i=new Set(Array.from({length:Math.max(0,t)},(e,t)=>Math.round(t*r)));return e.filter((e,t)=>i.has(t)).map(n)}function y(e){return e===null?{kind:`noBundle`}:e.keyframes.length===0?{kind:`noKeyframes`}:{kind:`ready`,frames:v(e.keyframes,8)}}function b(e){switch(e.kind){case`ready`:return null;case`loading`:return`Loading preview…`;case`noBundle`:return`No frames stored — nothing to preview.`;case`noKeyframes`:return`This demo has no keyframes.`;case`failed`:return`Preview unavailable — ${e.reason}`}}function x(e,t){return t<=1?0:(e+1)%t}function S(e,t){let n=e.querySelector(`[data-preview-canvas]`),r=e.querySelector(`[data-preview-note]`),i=b(t);n!==null&&(n.hidden=i!==null),r!==null&&(r.textContent=i??``)}function C(t){let n=[],r=!1;function i(i,a){let o=a.querySelector(`[data-preview-canvas]`);if(o===null){console.error(`demoman library: preview box for ${i} has no canvas to paint into`),S(a,{kind:`failed`,reason:`this row has no canvas to paint into`});return}let s=[],c=[],l=0,u=null,d=()=>{u!==null&&(clearInterval(u),u=null)};n.push(d);let f=(e,t)=>{d(),console.error(`demoman library: ${e} for ${i} —`,t),S(a,{kind:`failed`,reason:t instanceof Error?t.message:String(t)})},p=async e=>{let n=c[e];if(n!==void 0)return n;let r=s[e];if(r===void 0)throw Error(`preview frame ${e} is past the end of the take`);let i=await t.image(r.ref),a=document.createElement(`canvas`);return a.width=320,a.height=Math.max(1,Math.round(320*i.height/i.width)),a.getContext(`2d`)?.drawImage(i,0,0,a.width,a.height),i.close(),c[e]=a,a},m=async e=>{let t=await p(e);r||(o.width=t.width,o.height=t.height,o.style.setProperty(`--thumb-ratio`,String(t.width/t.height)),o.getContext(`2d`)?.drawImage(t,0,0))},h=()=>{l=x(l,s.length),m(l).catch(e=>f(`drawing a keyframe`,e))},g=()=>{u!==null||s.length<=1||(u=setInterval(h,400))},_=()=>{d(),l=0,m(0).catch(e=>f(`drawing the first keyframe`,e))},v=()=>{let e=a.closest(`article`);if(e===null){console.error(`demoman library: preview box for ${i} has no row to hover`);return}e.addEventListener(`mouseenter`,g),e.addEventListener(`mouseleave`,_),e.addEventListener(`focusin`,g),e.addEventListener(`focusout`,_),n.push(()=>{e.removeEventListener(`mouseenter`,g),e.removeEventListener(`mouseleave`,_),e.removeEventListener(`focusin`,g),e.removeEventListener(`focusout`,_)})},b=n=>{let o=a.querySelector(`[data-duration]`);if(o===null){console.error(`demoman library: preview box for ${i} has no duration badge`);return}t.length(i,n).then(t=>{if(!r){if(t.kind===`nothing`){console.info(`demoman library: no length on ${i}'s card — ${t.reason}`);return}o.textContent=e(t.ms),o.title=`Length of the exported video`,o.hidden=!1}}).catch(e=>{console.warn(`demoman library: could not work out ${i}'s length —`,e)})},C=async()=>{let e;try{e=await t.bundle(i)}catch(e){f(`reading the frame bundle`,e);return}if(r)return;let n=y(e);if(n.kind!==`ready`){S(a,n);return}s=n.frames;try{await m(0)}catch(e){f(`drawing the first keyframe`,e);return}r||(S(a,n),v(),e!==null&&b(e))};n.push(t.whenVisible(a,()=>{C()}))}return{mount:i,dispose(){r=!0;for(let e of n)e();n.length=0}}}function w(e,t,n,r={}){let a=document.createElement(`div`);a.className=`empty`;for(let[e,t]of Object.entries(r))a.setAttribute(e,t);let o=document.createElement(`strong`);o.textContent=t;let s=document.createElement(`p`);s.className=`hint`,s.append(...typeof n==`string`?[n]:n);let c=document.createElement(`div`);return c.append(o,s),a.append(i(e),c),a}var T=(e,t)=>`${e}:${t}`,ee=1024**3;function E(e,t={},n){let r=document.createElement(e);for(let[e,n]of Object.entries(t))r.setAttribute(e,n);return n!==void 0&&(r.textContent=n),r}function D(e,t,n={}){let r=E(`span`,{class:`tag`,...n});return r.append(i(e),t),r}function O(){let e=E(`div`,{class:`meter`}),t=E(`div`,{class:`meter-fill`});return e.append(t),{bar:e,set(n){t.style.width=`${(n*100).toFixed(1)}%`,e.toggleAttribute(`data-full`,n>=.9)}}}var k=`storage-panel`,A=16,te=300;function j(e,t,n=!1){let r=t.getBoundingClientRect(),i=document.documentElement.clientWidth,a=Math.min(te,i-32),o=r.right-a>=A?r.right-a:r.left,s=Math.max(A,Math.min(o,i-A-a)),c=t.closest(`[data-header]`),l=c!==null&&getComputedStyle(c).position===`sticky`;e.style.maxHeight=``;let u=e.offsetHeight,d=r.bottom+6,f=window.innerHeight-A-d,p=r.top-6-A,m=n&&e.dataset.side!==void 0?e.dataset.side===`above`:u>f&&(u<=p||p>f);e.dataset.side=m?`above`:`below`;let h=Math.max(0,m?p:f);u>h&&(e.style.maxHeight=`${Math.round(h)}px`);let g=Math.min(u,h),_=m?r.top-6-g:d;e.style.position=l?`fixed`:`absolute`,e.style.width=`${Math.round(a)}px`,e.style.left=`${Math.round(s+(l?0:window.scrollX))}px`,e.style.top=`${Math.round(_+(l?0:window.scrollY))}px`}var ne=e=>(e/ee).toFixed(2).replace(/\.?0+$/,``);function re(e){let t=null,n=E(`div`,{class:`library`,"data-library":``}),r=E(`aside`,{class:`library-side`,"data-header":``}),a=E(`nav`,{class:`side-group`,"aria-label":`Sections`,"data-jumps":``}),o=E(`div`,{class:`library-content`}),s=O();s.bar.setAttribute(`aria-hidden`,`true`);let c=E(`span`,{"data-meter":``}),l=E(`button`,{type:`button`,class:`btn btn-quiet storage-trigger`,"data-storage-trigger":``,popovertarget:k,"aria-controls":k});l.append(E(`span`,{class:`storage-label`},`Storage`),s.bar,c,i(`chevronDown`));let u=E(`div`,{class:`storage`}),d=E(`span`,{"data-total-size":``}),p=E(`span`,{class:`library-total`,"data-library-total":``});p.append(E(`span`,{class:`storage-label`},`Storage`),d);let h=E(`div`,{"data-notices":``}),g=E(`div`,{id:k,class:`storage-panel`,popover:``,"data-storage":``,"aria-label":`Storage`}),_=null;g.addEventListener(`beforetoggle`,e=>{e.newState===`open`&&j(g,l)}),g.addEventListener(`toggle`,e=>{let t=e.newState===`open`;l.toggleAttribute(`data-open`,t),_?.abort(),_=null,t&&(j(g,l),_=new AbortController,window.addEventListener(`resize`,()=>j(g,l),{signal:_.signal}),window.addEventListener(`scroll`,()=>j(g,l,!0),{passive:!0,signal:_.signal}))});let v=O();v.bar.setAttribute(`role`,`progressbar`),v.bar.setAttribute(`aria-label`,`Storage used`),v.bar.setAttribute(`aria-valuemin`,`0`),v.bar.setAttribute(`aria-valuemax`,`1`);let y=E(`p`,{class:`storage-used`,"data-storage-used":``}),b=E(`input`,{type:`number`,min:`0.25`,step:`0.25`,id:`storage-budget`,"data-storage-budget":``}),x=E(`p`,{class:`notice notice-error hidden`,role:`alert`,"data-budget-note":``});b.addEventListener(`change`,()=>{let e=Number(b.value);if(!Number.isFinite(e)||e<=0){x.textContent=m,x.classList.remove(`hidden`);return}x.classList.add(`hidden`),t?.setBudget?.(Math.round(e*ee))});let S=E(`div`,{class:`storage-budget-row`});S.append(b,E(`span`,{},`GB`));let C=E(`div`,{class:`storage-field`});C.append(E(`label`,{for:`storage-budget`},`Budget`),S,E(`p`,{class:`storage-hint`},`Saves automatically.`),x);let w=E(`button`,{type:`button`,"data-action":`reclaim`,class:`btn btn-quiet storage-reclaim`});w.append(i(`trash`),`Reclaim space`),w.addEventListener(`click`,()=>t?.reclaim?.());let T=E(`div`,{class:`storage-foot`});T.append(w,E(`p`,{class:`storage-hint`},`Clears cached exports, then hosted takes' motion, oldest first, until the library fits its budget.`)),g.append(E(`h2`,{class:`storage-title`},`Storage`),v.bar,y,C,T),u.append(l,g),r.append(E(`h1`,{},`Recordings`),a),o.append(h),n.append(r,o);let D=document.querySelector(`[data-storage-slot]`);return e&&(D??r).append(u),{box:n,jumps:a,content:o,notices:h,update(e,n){if(t=n,e.totalBytes===void 0)p.remove();else{let t=e.unmeasured??0,n=`${f(e.totalBytes)}${t>0?`+`:``}`,i=t>0?`${t} ${t===1?`folder`:`folders`} could not be measured`:null;d.textContent=n,p.setAttribute(`aria-label`,`Storage: ${n}${i===null?``:` (${i})`}`),i===null?p.removeAttribute(`title`):p.setAttribute(`title`,i),p.parentNode===null&&(D??r).append(p)}let i=f(e.usedBytes),a=f(e.budgetBytes);s.set(e.fraction),v.set(e.fraction),v.bar.setAttribute(`aria-valuenow`,e.fraction.toFixed(3)),c.textContent=`${i} of ${a}`,l.setAttribute(`aria-label`,`Storage: ${i} of ${a} used`),y.textContent=`${i} used of a ${a} budget`,document.activeElement!==b&&(b.value=ne(e.budgetBytes)),h.replaceChildren(...ie(e))}}}function ie(e){let t=[];return e.migrating&&t.push(E(`p`,{"data-migrating":``,class:`notice`},`Measuring existing demos…`)),e.migrationFailed&&t.push(E(`p`,{"data-migration-failed":``,class:`notice notice-warn`},`Measuring existing demos failed, so sizes below may be wrong. Open the extension's error log if this keeps happening.`)),e.chromeNearLimit&&t.push(E(`p`,{"data-chrome-limit":``,class:`notice notice-warn`},`Chrome is near its storage limit on this drive.`)),e.unwatched!=null&&t.push(E(`p`,{"data-unwatched":``,class:`notice notice-warn`},`New takes will not show until you reload — ${e.unwatched}.`)),e.notice!==null&&t.push(E(`p`,{"data-notice":``,class:`notice notice-error`},e.notice)),t}var ae=new WeakMap;function oe(e,t,n){let r=l(e),i=r.states.filter(e=>e.value!==`Complete`);if(r.hosts.length<=1&&i.length===0)return null;let a=E(`div`,{class:`filters`,role:`group`,"aria-label":`Filter`,"data-filters":``}),o=(e,t,r,i,a)=>{let o=E(`button`,{type:`button`,class:`pill`,"aria-pressed":r?`true`:`false`,...a});return o.append(e),t!==null&&o.append(E(`span`,{class:`pill-count`},String(t))),o.addEventListener(`click`,()=>n.filter(i)),o},s=t.host===null&&t.state===null;if(a.append(o(`All`,e.length,s,d,{"data-filter-all":``})),r.hosts.length>1)for(let e of r.hosts){let n=t.host===e.value;a.append(o(e.value,e.count,n,{...t,host:n?null:e.value},{"data-filter-host":e.value}))}i.length>0&&r.hosts.length>1&&a.append(E(`span`,{class:`filters-sep`,"aria-hidden":`true`}));for(let e of i){let n=t.state===e.value;a.append(o(e.value,e.count,n,{...t,state:n?null:e.value},{"data-filter-state":e.value}))}return a}function se(e,t){let n=E(`div`,{class:`row-tags`}),r=t.openReview;if(e.needsLook&&r!==void 0){let t=E(`button`,{type:`button`,class:`tag tag-warn tag-look`,"data-needs-look":``,"aria-label":`Needs a look: ${e.label}`,title:`Needs a look`});t.append(i(`circleAlert`)),t.addEventListener(`click`,()=>r(e.sceneId)),n.append(t)}return e.hosted&&n.append(D(`cloud`,`Hosted`,{"data-hosted":``,title:`Hosted copy stays online after a local delete`})),e.state===`Motion reclaimed`?n.append(D(`restore`,e.state,{"data-state-chip":``,class:`tag tag-warn`,title:e.authored?`Its motion was reclaimed to free space; Restore opens Runs to run its script again, which makes a new take`:`Its motion was reclaimed to free space; Restore re-shoots it in Runs`})):e.state===`Keyframes only`&&n.append(D(`image`,e.state,{"data-state-chip":``,title:`No motion was recorded for this take`})),n.childElementCount>0?n:null}function ce(e,t){let n=E(`div`,{"data-preview":``}),r=E(`canvas`,{"data-preview-canvas":``,"aria-hidden":`true`,hidden:``});n.append(r,E(`p`,{"data-preview-note":``},b({kind:`loading`})??``));let i=se(e,t);return i!==null&&n.append(i),n.append(E(`span`,{"data-duration":``,hidden:``})),n}var le={Complete:`complete`,"Motion reclaimed":`reclaimed`,"Keyframes only":`keyframesOnly`},M=e=>`name-${e}`;function ue(e,t){let n=E(`input`,{type:`text`,id:M(e.sceneId),"data-name":``,"aria-label":`Demo name`,title:e.name,placeholder:`Untitled`,spellcheck:`false`,autocomplete:`off`});n.value=e.name;let r=e.name;return n.addEventListener(`change`,()=>{let i=n.value.trim();if(i===r){n.value=r;return}r=i,n.value=i,n.title=i,t.rename(e.sceneId,i)}),n.addEventListener(`keydown`,e=>{e.key===`Escape`?(n.value=r,n.blur()):e.key===`Enter`&&n.blur()}),n}function de(e,t,n,r){let o=E(`article`,{class:`card`,"data-row":e.sceneId,"data-state":le[e.state],...e.name===``?{"aria-label":e.label}:{"aria-labelledby":M(e.sceneId)}}),s=!1;o.addEventListener(`pointerdown`,()=>{let e=document.activeElement;s=e?.matches(`[data-name]`)===!0&&o.contains(e)}),o.addEventListener(`click`,n=>{let r=n.target;s||r.closest(`button, input, a`)||(window.getSelection()?.toString()??``)===``&&t.edit(e.sceneId)}),o.append(ce(e,t));let c=E(`div`,{class:`row-actions`});if(e.servesReshoot){let n=E(`button`,{type:`button`,"data-action":`back-to-recording`,class:`btn btn-quiet btn-icon`,"aria-label":`Back to your recording: ${e.label}`,title:`Back to your recording — this take plays its re-shot frames; its recording is kept`});n.append(i(`undo`)),n.addEventListener(`click`,()=>t.backToRecording(e.sceneId)),c.append(n)}let l=e.canRestore?t.rerunLine?.(e.sceneId,e.authored)??null:null;if(e.canRestore&&l===null){let n=E(`button`,{type:`button`,"data-action":`restore`,class:`btn btn-quiet btn-icon`,"aria-label":`Restore motion: ${e.label}`,title:e.authored?`Restore motion — run its script again in Runs; a script-made take cannot be re-shot, so this makes a new take`:`Restore motion — re-shoot it in Runs`});n.append(i(`restore`)),n.addEventListener(`click`,()=>t.restore(e.sceneId)),c.append(n)}let u=E(`button`,{type:`button`,"data-action":`edit`,class:`btn btn-quiet btn-icon`,"aria-label":`Edit ${e.label}`,title:`Edit`});u.append(i(`clapperboard`)),u.addEventListener(`click`,()=>t.edit(e.sceneId)),c.append(u);let d=E(`button`,{type:`button`,"data-action":`delete`,class:`btn btn-quiet btn-icon btn-danger`,"aria-label":`Delete ${e.label}`,title:`Delete`});d.append(i(`trash`)),d.addEventListener(`click`,()=>t.remove(e.sceneId,`take`)),c.append(d);let p=E(`div`,{class:`row-text`}),m=E(`div`,{class:`row-title`});m.append(ue(e,t),c),p.append(m);let h=`${e.origin}${e.path}`,g=E(`div`,{class:`row-line`});if(g.append(E(`p`,{class:`row-meta`,title:h},`${h} · ${r?e.time:e.when}`)),e.sizeBytes===void 0?t.reclaim!==void 0&&g.append(E(`p`,{"data-size":``,class:`row-size`},`${f(e.frameBytes)} frames · ${f(e.outputBytes)} renders`)):g.append(E(`p`,{"data-size":``,class:`row-size`},f(e.sizeBytes))),p.append(g),o.append(p),l!==null){let e=E(`p`,{"data-rerun-line":``,class:`row-rerun`});a(e,l),o.append(e)}return n!==void 0&&o.append(E(`p`,{"data-status":``,class:`notice notice-error`},n)),o}function fe(e){let t=document.activeElement;if(!(t instanceof HTMLInputElement)||!t.matches(`[data-name]`)||!e.contains(t))return null;let n=t.closest(`[data-row]`)?.getAttribute(`data-row`);return n?{sceneId:n,value:t.value,start:t.selectionStart,end:t.selectionEnd}:null}function pe(e,t){if(t===null)return;let n=e.querySelector(`[data-row="${CSS.escape(t.sceneId)}"] [data-name]`);n!==null&&(n.value=t.value,n.focus(),t.start!==null&&t.end!==null&&n.setSelectionRange(t.start,t.end))}var me=e=>`section-${e.replace(/:/g,`-`)}`;function he(e){let t=new Map;for(let n of e.querySelectorAll(`[data-section]`)){let e=n.getAttribute(`data-section`);e!==null&&t.set(e,n.open)}return t.size>0?(N.set(e,t),t):N.get(e)??t}var N=new WeakMap,P=`unreadable`,ge=e=>`when-${e.replace(/:/g,`-`)}`;function _e(e,t){let n=E(`div`,{class:`side-list`});for(let t of e){let e=ge(t.key),r=E(`a`,{href:`#${e}`,class:`side-item`,"data-nav":e,title:t.label});r.append(E(`span`,{class:`side-label`},t.label),E(`span`,{class:`side-count`},String(t.rows.length))),r.addEventListener(`click`,()=>{let t=document.getElementById(e);t instanceof HTMLDetailsElement&&(t.open=!0)}),n.append(r)}if(t>0){let e=E(`a`,{href:`#${P}`,class:`side-item`,"data-nav":P,title:`Couldn't read`});e.append(E(`span`,{class:`side-label`},`Couldn't read`),E(`span`,{class:`side-count`},String(t))),n.append(e)}return n}function ve(e,t,n,r){let a=me(e.key),o=E(`details`,{class:`section`,id:ge(e.key),"data-section":e.key,"aria-labelledby":a});o.open=t;let s=E(`summary`,{class:`section-head`}),c=i(`chevronRight`);c.classList.add(`chev`),s.append(c,E(`h2`,{id:a},e.label),E(`span`,{class:`section-count`,"data-section-count":``},String(e.rows.length))),o.append(s);let l=E(`div`,{class:`rows`}),u=e.rows.map(t=>{let i=de(t,n,r.get(T(`take`,t.sceneId)),e.namesDay);return l.append(i),[t.sceneId,i]});return o.append(l),{box:o,articles:u}}function ye(e,t,n){let r=E(`section`,{class:`section`,id:P,"data-unreadable":``,"aria-labelledby":`section-unreadable`}),a=E(`div`,{class:`section-head`});a.append(E(`h2`,{id:`section-unreadable`},`Couldn't read`),E(`span`,{class:`section-count`},String(e.length))),r.append(a);let o=E(`div`,{class:`rows`});for(let r of e){let e=E(`article`,{class:`card`,"data-unreadable-row":r.folder}),a=E(`div`,{class:`row-text`}),s=E(`div`,{class:`row-title`}),c=E(`button`,{type:`button`,"data-action":`delete`,class:`btn btn-quiet btn-icon btn-danger`,"aria-label":`Delete ${r.folder}`,title:`Delete`});c.append(i(`trash`)),c.addEventListener(`click`,()=>t.remove(r.folder,`folder`)),s.append(E(`p`,{class:`row-meta`,"data-unreadable-name":``},r.folder),c),a.append(s,E(`p`,{class:`row-meta`,"data-reason":``},r.reason)),r.sizeBytes!==void 0&&a.append(E(`p`,{"data-size":``,class:`row-size`},f(r.sizeBytes))),e.append(a);let l=n.get(T(`folder`,r.folder));l!==void 0&&e.append(E(`p`,{"data-status":``,class:`notice notice-error`},l)),o.append(e)}return r.append(o),r}function be(e,t,n,r,i=d,a=new Date){let o=fe(e),c=he(e),l=ae.get(e);l===void 0&&(l=re(n.reclaim!==void 0&&n.setBudget!==void 0),ae.set(e,l)),l.update(t,n);for(let t of[...e.childNodes])t!==l.box&&t.remove();l.box.parentNode!==e&&e.prepend(l.box);for(let e of[...l.content.childNodes])e!==l.notices&&e.remove();l.jumps.replaceChildren();let f=l.content,p=t.unreadable??[],m=()=>{p.length>0&&f.append(ye(p,n,r))};if(t.rows.length===0){if(p.length>0){m();return}let e=E(`div`,{"data-empty":``,class:`card empty-card`});e.append(w(`monitorPlay`,`No recordings yet`,t.emptyHint??`Click the Demoman icon in your browser's toolbar and press Record. Each take shows up here, grouped by the day you made it.`)),f.append(e);return}let h=oe(t.rows,i,n);h!==null&&f.append(h);let g=s(t.rows,i);if(g.length===0){let e=E(`button`,{type:`button`,class:`btn btn-link`,"data-filter-all":``},`Show all recordings`);e.addEventListener(`click`,()=>n.filter(d));let t=E(`div`,{"data-empty-filtered":``,class:`card empty-card`});t.append(w(`funnel`,`No recordings match this filter`,[e])),f.append(t),m();return}let _=[],v=u(g,a);l.jumps.append(_e(v,p.length));for(let e of v){let t=ve(e,c.get(e.key)??!e.folded,n,r);f.append(t.box),_.push(...t.articles)}m();for(let[e,t]of _)n.preview(e,t.querySelector(`[data-preview]`));pe(e,o)}var xe=document.querySelector(`#root`),F=document.querySelector(`#notice`),Se=g(xe),I=r(),L=I.scenes;I.nav.onOpen?.(e=>location.assign(e)),_(I);var R=new Map;function z(e,t){F.textContent=e,F.className=t===`info`?`notice`:`notice notice-${t}`,F.classList.remove(`hidden`)}function B(e){z(e,`error`)}function Ce(){F.textContent=``,F.className=`notice notice-error hidden`}function V(e,t){console.error(`demoman library: ${e} —`,t),B(`Something went wrong (${e}). Try again.`)}function we(e,t){try{location.assign(e)}catch(e){V(t,e)}}var H=I.bundles,U=new Map,W=typeof IntersectionObserver==`function`?new IntersectionObserver(e=>{for(let t of e){if(!t.isIntersecting)continue;let e=U.get(t.target);e!==void 0&&(U.delete(t.target),W?.unobserve(t.target),e())}},{rootMargin:`200px`}):null,G=!1,Te=(e,t)=>W===null?(G||(G=!0,console.info(`demoman library: no IntersectionObserver here, so every preview paints at once`)),t(),()=>{}):(U.set(e,t),W.observe(e),()=>{U.delete(e),W.unobserve(e)}),K=new Map,Ee={bundle:async e=>(await H.active(e)).bundle,length:async(e,n)=>{let r=K.get(e);if(r===void 0)throw Error(`no document for ${e} in the last listing`);return t(r,n,H.load)},image:async e=>{if(I.folder!==void 0)return I.folder.thumb(e);let t=await H.load(e);if(t instanceof Uint8Array)throw Error(`${e} loaded as motion bytes, not a keyframe`);if(!(t.image instanceof ImageBitmap))throw Error(`${e} decoded to something other than an ImageBitmap`);return t.image},whenVisible:Te},q=null,J=null,Y=d;function De(e){let t=new Set([...e.rows.map(e=>T(`take`,e.sceneId)),...(e.unreadable??[]).map(e=>T(`folder`,e.folder))]);for(let e of R.keys())t.has(e)||R.delete(e)}function X(e){De(e),q?.dispose(),q=C(Ee),be(xe,e,Ne,R,Y),Se.mark()}var Oe=h({paint:e=>ke({keepNotice:e}),onRefreshFailed:e=>V(`refreshing the library`,e)});function Z(){return Oe.render()}async function ke({keepNotice:e=!1}={}){e||Ce();let t=await I.folder.read(),n=t.scenes;K=new Map(n.map(e=>[e.meta.id,e]));let r=p({sizes:t.sizes,unreadable:t.unreadable,unwatched:t.unwatched,emptyHint:I.nav.firstTakeHint(),scenes:n,migrating:!1,migrationFailed:!1,notice:null,needsLook:new Set});J=r,X(r)}var Ae={recording:`a take is recording`,rendering:`a render is running`,sharing:`a share is in progress`,replaying:`a take is being run in Runs`},Q=new Map;function je(e,t,n){let r=Q.get(e);if(r===void 0){we(t,n);return}r.then(e=>{e&&we(t,n)})}function Me(e){return K.get(e)?.meta.capture.mode===`authored`}var Ne={filter:e=>{if(Y=e,J===null){console.error(`demoman library: a filter was picked before the page had rendered`);return}X(J)},preview:(e,t)=>{if(q===null){console.error(`demoman library: a row asked for a preview before the page had a mounter`);return}q.mount(e,t)},edit:e=>{je(e,I.nav.editor(e),`opening the editor`)},rename:(e,t)=>{let n=(async()=>{try{let n=null;try{let r=await L.get(e);if(r===null)n=`the take is no longer stored`;else{let e={...r.scene,meta:{...r.scene.meta,name:t}};await L.put(e,r.revision)}}catch(e){n=e instanceof Error?e.message:String(e)}let r=T(`take`,e);return n===null?R.delete(r):R.set(r,`Couldn't rename: ${n}.`),await Z(),n===null}catch(t){return V(`renaming this demo`,t),R.set(T(`take`,e),`Couldn't rename: ${t instanceof Error?t.message:String(t)}.`),J!==null&&X(J),!1}})();Q.set(e,n),n.finally(()=>{Q.get(e)===n&&Q.delete(e)})},restore:e=>{let t=I.nav.rerun(e,Me(e));if(t.kind===`line`){console.error(`demoman library: Restore was pressed on a platform whose route is a line`);return}je(e,new URL(t.href,I.nav.library()).href,`opening Runs to restore motion`)},rerunLine:(e,t)=>{let n=I.nav.rerun(e,t);return n.kind===`line`?n.text:null},backToRecording:e=>{(async()=>{let t=null,n=await Q.get(e),r=T(`take`,e),i=n===!1?R.get(r):void 0;try{let n=await L.get(e);if(n===null)throw Error(`the take is no longer stored`);let r={...n.scene,meta:{...n.scene.meta,renderMode:`screen`}};await L.put(r,n.revision);let i=(await H.active(e)).bundle;i?.source!==`capture`&&(t=i===null?`Your recording could not be put back: no frames could be read for this take.`:`There is no recording of this take to go back to, so it keeps its re-shot frames. Takes rebuilt before recordings were kept have none.`,console.info(`[demoman] library: back to your recording — not served (${i===null?`no bundle`:`serving ${i.source}`})`))}catch(e){V(`going back to the recording`,e),t=`Couldn't go back to the recording: ${e instanceof Error?e.message:String(e)}.`}let a=[i,t].filter(e=>e!=null).join(` `);a===``?R.delete(r):R.set(r,a);try{await Z()}catch(e){V(`refreshing the library`,e)}})()},remove:(e,t)=>{let r=T(t,e);(async()=>{try{let t;try{t=await n(o)}catch(e){console.error(`demoman library: asking before a delete —`,e),R.set(r,`Not deleted: the confirmation could not open — ${e instanceof Error?e.message:String(e)}.`),await Z();return}if(!t)return;await Q.get(e);let i=await L.remove(e),a=null;if(!i.ok){let e=i.detail??Ae[i.error]??i.error;R.set(r,`Not deleted: ${e}.`)}else if(i.result!==void 0&&!i.result.ok){let e=i.result.steps.find(e=>!e.ok),t=`Partly deleted: ${e?.step??`a step`} could not be removed — ${e?.error??`unknown error`}`;i.result.steps.find(e=>e.step===`scene`)?.ok===!0?(R.delete(r),a=t):R.set(r,t)}else R.delete(r);await Z(),a===null?i.ok&&i.note!==void 0&&z(i.note,`info`):B(a)}catch(e){V(`deleting this demo`,e)}})()}};I.folder?.onChange(()=>Oe.soon());var $=c();Z().then(()=>{$!==null&&z($,`info`)},e=>{$!==null&&console.info(`demoman library: ${$}`),V(`loading your demos`,e)});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{L as e,at as t,d as n,et as r,f as i,l as a,m as o,n as s,o as c,p as ee,r as l,tt as u,u as d}from"./confirm-dialog-CN_GqXY_.js";import{b as te,h as f,i as p,n as m,r as h,t as g,v as ne}from"./view-DsZQo9AJ.js";import{n as _,r as re,t as ie}from"./topbar-sSUyITjl.js";function ae(e,t,n,r){let i=document.createElement(`div`);i.className=`notice-body`;let a=document.createElement(`p`);if(a.className=`notice-title`,a.textContent=typeof t==`string`?t:t.title,i.append(a),typeof t!=`string`){let e=document.createElement(`details`);e.className=`notice-details`;let n=document.createElement(`summary`);n.append(`Details`,l(`chevronDown`));let r=document.createElement(`div`);r.className=`notice-reason`,r.dataset.noticeReason=``,r.textContent=t.detail,e.append(n,r),i.append(e)}let o=document.createElement(`button`);o.type=`button`,o.className=`notice-dismiss`,o.dataset.noticeDismiss=``,o.setAttribute(`aria-label`,`Dismiss`),o.title=`Dismiss`,o.append(l(`close`)),o.addEventListener(`click`,r),e.className=n===`info`?`notice notice-line`:`notice notice-line notice-${n}`,e.replaceChildren(...n===`info`?[]:[l(`circleAlert`)],i,o)}function v(e,t){let n=e.querySelector(`:scope > .notice-dismiss`);if(n===null||e.classList.contains(`hidden`))return!1;let r=e.querySelector(`:scope > .notice-actions`);return r===null&&(r=document.createElement(`div`),r.className=`notice-actions`,n.before(r)),r.append(t),!0}var y=document.querySelector(`#root`),b=re(y),x=document.querySelector(`#notice`),S=c(),C=S.kits,w={state:`ready`,kits:[],defaultId:null,migrationPending:!1},T=null,E=null,D=null,O=null,k=null,oe=()=>w.state===`ready`?w.kits.find(e=>e.id===T)??null:null,A=()=>{let e=oe();return e?.read.state===`ready`?e.read.kit:r};function j(){w.state===`ready`&&(w.kits.some(e=>e.id===T)||(T=o(w)?.id??w.kits[0]?.id??null))}var M=0;async function N(e){let t=null,n=await C.update(async n=>{let r=await e(n);if(typeof r==`string`)return r;let i=r.kits[0];return i===void 0||r.kits.some(e=>e.id===r.defaultId)?r:(t=i.name,{...r,defaultId:i.id})});return n===null?(M+=1,w=await C.read(),j(),t===null?null:{warn:`Your default kit was missing, so "${t}" is the default now.`}):n}async function P(e){let t=null,n=await e(e=>(t=e,e));return typeof n!=`string`&&t!==null&&(T=t,j()),n}var F=null;function I(e,t){return N(async n=>{if(n.kits.length===0){let e=await t(r);if(typeof e==`string`)return e;let n=d();return T=n,F=n,{kits:[{id:n,name:`Brand kit`,branding:e}],defaultId:n}}let i=e??F,a=n.kits.find(e=>e.id===i);if(a===void 0)return i===null?`this page's kit list was out of date, so nothing was changed — it now shows your kits as they are`:`the kit was deleted in another tab`;let o=ee(a.branding),s=await t(o.state===`ready`?o.kit:r);return typeof s==`string`?s:{...n,kits:n.kits.map(e=>e.id===i?{...e,branding:s}:e)}})}async function se(t){let n=t.logo?.ref??null;if(n===null){E=null,D=null,O=null;return}if(E?.ref!==n){let e=await S.logos.load(n);E=e.ok?{ref:n,source:e.source,error:null}:{ref:n,source:null,error:e.error}}if(D=null,E.source!==null)try{D=await E.source.rasterAt(e(t,m))}catch(e){E={ref:n,source:null,error:z(e)}}if(E.source===null)O={kind:`failed`,reason:E.error??`the page did not try to load it`};else try{O={kind:`ready`,url:await ne(E.source)}}catch(e){O={kind:`failed`,reason:z(e)}}}function L(e,t=`all`){let n=document.querySelector(`[data-preview-kit]`);if(n===null)return;let r=getComputedStyle(document.documentElement),i=r.getPropertyValue(`--card`).trim()||`#ffffff`,a=Number.parseFloat(r.getPropertyValue(`--radius`))||0;p(n,e,D,i,a)||console.info(`demoman settings: the brand kit preview has no 2D context`);for(let n of document.querySelectorAll(`[data-kit-thumb]`)){let r=n.getAttribute(`data-kit-thumb`);if(t===`selected`&&r!==T)continue;let o=w.state===`ready`?w.kits.find(e=>e.id===r):void 0;if(o?.read.state!==`ready`)continue;let s=r===T?e:o.read.kit;p(n,s,null,i,a)||console.info(`demoman settings: a kit tile has no 2D context`)}}S.nav.onOpen?.(e=>X(e,()=>location.assign(e),new URL(e,location.href).searchParams.has(`scene`)?`Open the take`:`Open Recordings`)),ie(S);var R=new Map,z=e=>e instanceof Error?e.message:String(e);function B(e,t){ae(x,e,t,H)}function V(e){B(e,`error`)}function H(){x.replaceChildren(),x.className=`notice notice-error hidden`}function U(e,t){console.error(`demoman settings: ${e} —`,t),V({title:`Couldn't ${e}`,detail:z(t)})}function W(e,t){let n=R.get(e);R.set(e,n===void 0?t:`${n}. ${t}`)}async function G(e,t,n){try{return await n()}catch(n){for(let r of typeof e==`string`?[e]:e)W(r,`Couldn't read ${t}: ${z(n)}`);return null}}var K=_({paint:e=>ce({keepNotice:e}),onRefreshFailed:e=>U(`refresh Settings`,e),hold:de});function q(){return K.render()}async function ce({keepNotice:e=!1}={}){e||H(),R.clear();let t=M,[n,r,i]=await Promise.all([C.read(),G(`pullRequests`,`the Pull requests setting`,()=>S.pullRequests.read()),G(`export`,`the Export quality setting`,()=>S.exportQuality.read())]);i?.unreadable!==void 0&&W(`export`,`Couldn't read the Export quality setting: ${i.unreadable}`),r?.unreadable!==void 0&&W(`pullRequests`,`Couldn't read the Pull requests setting: ${r.unreadable}`),M===t&&(w=n),j();let a=A();await se(a);let o={exportQuality:i===null||i.unreadable!==void 0?null:i.quality,pullRequests:r===null||r.unreadable!==void 0?null:r.value??`ask`,kitsUnwatched:C.unwatched(),brandKits:w,selectedKitId:T,brandKitLogo:a.logo===null?null:E?.source==null?{ok:!1,error:E?.error??`the page did not try to load it`}:{ok:!0},brandKitLogoThumb:a.logo===null?null:O,brandKitPlacement:h(a,D),brandKitNotes:[E?.error?`The logo could not be loaded: ${E.error}`:null,k!==null&&k.ref===a.logo?.ref?k.note:null].filter(e=>e!==null)};g(y,o,le,R),b.mark(),L(a)}var J=new Set;function Y(e,t){let n=(async()=>{let n;try{n=await t()}catch(t){return U(e,t),`failed`}try{await q()}catch(t){return U(`show the result of: ${e}`,t),`failed`}return n===null?`done`:typeof n==`string`?(V(`Couldn't ${e}: ${n}.`),`failed`):(`warn`in n?B(n.warn,`warn`):B(n.info,`info`),`done`)})();J.add(n),n.then(()=>J.delete(n))}function X(e,t,n){J.size>0&&console.info(`demoman settings: asked to open ${e}; waiting for ${J.size} change${J.size===1?``:`s`} here to save first`),(async()=>{let r=!1;for(;;){let e=K.pending();if((await Promise.all([...J])).includes(`failed`)&&(r=!0),await e.then(()=>void 0,()=>void 0),J.size===0&&K.pending()===e)break}if(r){console.info(`demoman settings: stayed on Settings rather than opening ${e}, because a change here did not save`);let r=document.createElement(`button`);r.type=`button`,r.className=`btn btn-quiet`,r.dataset.openAsked=``,r.textContent=n,r.addEventListener(`click`,()=>{try{t()}catch(t){U(`open ${e}`,t)}}),v(x,r)||(V(`A change here didn't save, so this window stayed on Settings.`),v(x,r));return}try{t()}catch(t){U(`open ${e}`,t)}})()}var le={setPullRequests:e=>Y(`save the Pull requests setting`,async()=>{let t=await S.pullRequests.write(e);return t.replaced===void 0?null:{warn:t.replaced}}),setExportQuality:e=>Y(`save the Export quality setting`,async()=>{let t=await S.exportQuality.write(e);return t.replaced===void 0?null:{warn:t.replaced}}),setBrandKit:e=>{let t=T;Y(`save the brand kit`,()=>I(t,async t=>{let n=u.safeParse(f(t,e));return n.success?n.data:n.error.issues.map(e=>e.message).join(`; `)}))},previewBrandKit:e=>{try{L(f(A(),e),`selected`)}catch(e){console.info(`demoman settings: a brand kit preview did not apply`,e)}},uploadKitLogo:e=>{let n=T;Y(`add the logo`,async()=>{let r=te(e);if(!r.ok)return r.reason;let a=new Uint8Array(await e.arrayBuffer());try{await i(a,e.type)}catch(t){return`the logo "${e.name}" could not be read as an image: ${z(t)}`}let{ref:o}=await S.logos.put(e);return k=r.note===null?null:{ref:o,note:r.note},I(n,async e=>{let n=e.logo,r=n?{corner:n.corner,size:n.size,opacity:n.opacity}:t;return f(e,{logo:{ref:o,...r}})})})},selectKit:e=>{T=e,q().catch(e=>U(`select the kit`,e))},newKit:()=>Y(`add a kit`,()=>P(e=>N(async t=>{let i=e(d());return{kits:[...t.kits,{id:i,name:n(`Untitled kit`,t.kits),branding:r}],defaultId:t.defaultId??i}}))),duplicateKit:e=>Y(`duplicate the kit`,()=>P(t=>N(async r=>{let i=r.kits.find(t=>t.id===e);if(i===void 0)return`the kit was deleted in another tab`;let a={id:t(d()),name:n(`${i.name} copy`,r.kits),branding:structuredClone(i.branding)};return{...r,kits:[...r.kits,a]}}))),renameKit:(e,t)=>Y(`rename the kit`,()=>N(async n=>{let r=a(t,n.kits,e);return r.ok?{...n,kits:n.kits.map(t=>t.id===e?{...t,name:r.name}:t)}:r.reason})),setDefaultKit:e=>Y(`make the kit the default`,()=>N(async t=>t.kits.some(t=>t.id===e)?{...t,defaultId:e}:`the kit was deleted in another tab`)),deleteKit:e=>Y(`delete the kit`,async()=>{if(w.state!==`ready`)return`the kits could not be read`;let t=w.kits.find(t=>t.id===e);if(t===void 0)return`the kit was deleted in another tab`;if(w.kits.length===1)return`the last kit cannot be deleted`;let n=w.kits.find(t=>t.id!==e),r=w.defaultId===e&&n!==void 0?` "${n.name}" becomes the default kit.`:``;return await s({glyph:`trash`,title:`Delete "${t.name}"`,body:`"${t.name}" will be deleted.${r} Takes already made keep their look.`,confirmLabel:`Delete`,danger:!0,focus:`cancel`})?N(async t=>{let n=t.kits.filter(t=>t.id!==e);return n.length===0?`the last kit cannot be deleted`:{kits:n,defaultId:t.defaultId===e?n[0]?.id??null:t.defaultId}}):null}),resetKits:()=>Y(`start a fresh kit list`,async()=>{if(!await s({glyph:`trash`,title:`Start a fresh kit list`,body:`Your brand kits could not be read. Starting fresh replaces them with an empty list; takes already made keep their look.`,confirmLabel:`Start fresh`,danger:!0,focus:`cancel`}))return null;let{backup:e}=await C.reset();return M+=1,w=await C.read(),e===null?null:{info:`Started a fresh kit list. The old list is kept at ${e}.`}})},Z=()=>K.soon(),Q=!1,ue=new Set([`button`,`checkbox`,`file`,`radio`,`range`,`reset`,`submit`]);function de(){if(Q)return!0;let e=document.activeElement;return e===null||!y.contains(e)?!1:e instanceof HTMLTextAreaElement||e instanceof HTMLInputElement&&!ue.has(e.type)}var $=()=>K.resume();y.addEventListener(`pointerdown`,()=>{Q=!0});for(let e of[`pointerup`,`pointercancel`])window.addEventListener(e,()=>{Q=!1,$()});y.addEventListener(`focusout`,()=>setTimeout($,0)),document.addEventListener(`visibilitychange`,()=>{document.visibilityState===`visible`&&Z()}),C.onChange(Z),q().catch(e=>U(`load Settings`,e));
|
|
@@ -24,8 +24,7 @@
|
|
|
24
24
|
}
|
|
25
25
|
.content { min-width: 0; display: flex; flex-direction: column; gap: 40px; }
|
|
26
26
|
|
|
27
|
-
/* The nav: the tabs' pill idiom, stacked.
|
|
28
|
-
sites are listed; a lime chip says requests wait for an answer. */
|
|
27
|
+
/* The nav: the tabs' pill idiom, stacked. */
|
|
29
28
|
/* The title and the nav, one column: held in view together where the
|
|
30
29
|
nav is (see the media rule below). */
|
|
31
30
|
.settings-side { align-self: start; }
|
|
@@ -48,16 +47,6 @@
|
|
|
48
47
|
.section-nav svg { width: 15px; height: 15px; flex: none; opacity: 0.85; }
|
|
49
48
|
.section-nav a:hover { color: var(--ink); background: var(--control); }
|
|
50
49
|
.section-nav a[aria-current="true"] { color: var(--ink); background: var(--control-hover); }
|
|
51
|
-
.nav-count { margin-left: auto; font-size: 12px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
|
|
52
|
-
.nav-ask {
|
|
53
|
-
margin-left: auto;
|
|
54
|
-
padding: 1px 7px;
|
|
55
|
-
border-radius: 999px;
|
|
56
|
-
background: var(--primary);
|
|
57
|
-
color: var(--primary-ink);
|
|
58
|
-
font-size: 11px; font-weight: 700;
|
|
59
|
-
font-variant-numeric: tabular-nums;
|
|
60
|
-
}
|
|
61
50
|
/* The title is held in view with the nav (2026-10-08): both are
|
|
62
51
|
`.settings-side`, the nav's column, so nothing is laid over the
|
|
63
52
|
sections as they scroll. The sections start the title's height
|
|
@@ -89,127 +78,9 @@
|
|
|
89
78
|
background: var(--control);
|
|
90
79
|
}
|
|
91
80
|
|
|
92
|
-
/*
|
|
93
|
-
[data-section="replay"] .switch-row { align-items: flex-start; padding: 16px 0; }
|
|
94
|
-
/* By class, not by tag: the size row is a div among labels. */
|
|
95
|
-
[data-section="replay"] .switch-row:not(.switch-row ~ .switch-row) { padding-top: 0; }
|
|
96
|
-
[data-section="replay"] .switch-row:not(:has(~ .switch-row)) { padding-bottom: 0; }
|
|
97
|
-
[data-section="replay"] .switch-row + .switch-row { border-top: 1px solid var(--ring); }
|
|
98
|
-
[data-section="replay"] .switch { margin-top: 1px; }
|
|
99
|
-
/* The agent video size has no hint, so its choices centre on the label. */
|
|
100
|
-
[data-section="replay"] .switch-row.run-size { align-items: center; }
|
|
101
|
-
/* Pull requests has no hint either: one row, its choices centred on the label. */
|
|
81
|
+
/* Export and Pull requests: one row each, the choices centred on the label. */
|
|
102
82
|
[data-section="pullRequests"] .switch-row,
|
|
103
83
|
[data-section="export"] .switch-row { align-items: center; }
|
|
104
|
-
.switch-text strong { font-size: 14px; font-weight: 600; }
|
|
105
|
-
.switch-text .hint { margin-top: 3px; max-width: 58ch; line-height: 1.5; }
|
|
106
|
-
|
|
107
|
-
/* Sites: one line per site — host and status icons — opening to its
|
|
108
|
-
facts. The icons hold the same four columns on every line, under
|
|
109
|
-
a legend that names them. */
|
|
110
|
-
.sites { display: flex; flex-direction: column; }
|
|
111
|
-
.sites-legend {
|
|
112
|
-
display: flex; flex-wrap: wrap; gap: 6px 16px;
|
|
113
|
-
padding-bottom: 12px;
|
|
114
|
-
font-size: 12px; color: var(--ink-muted);
|
|
115
|
-
border-bottom: 1px solid var(--ring);
|
|
116
|
-
}
|
|
117
|
-
.sites-legend > span { display: inline-flex; align-items: center; gap: 6px; }
|
|
118
|
-
.site + .site { border-top: 1px solid var(--ring); }
|
|
119
|
-
.site > summary {
|
|
120
|
-
list-style: none;
|
|
121
|
-
display: grid;
|
|
122
|
-
grid-template-columns: 16px minmax(0, 1fr) auto;
|
|
123
|
-
align-items: center;
|
|
124
|
-
gap: 10px;
|
|
125
|
-
min-height: 48px;
|
|
126
|
-
cursor: pointer;
|
|
127
|
-
border-radius: var(--radius);
|
|
128
|
-
}
|
|
129
|
-
.site > summary::-webkit-details-marker { display: none; }
|
|
130
|
-
.site[open] .chev { transform: rotate(90deg); }
|
|
131
|
-
.site > summary:hover .chev { color: var(--ink); }
|
|
132
|
-
.host { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
|
|
133
|
-
.chips { display: flex; gap: 6px; }
|
|
134
|
-
.chip, .chip-slot { width: 24px; height: 24px; flex: none; }
|
|
135
|
-
.chip {
|
|
136
|
-
border-radius: 50%;
|
|
137
|
-
display: grid; place-items: center;
|
|
138
|
-
background: var(--control);
|
|
139
|
-
color: var(--ink-faint);
|
|
140
|
-
}
|
|
141
|
-
.chip svg { width: 13px; height: 13px; }
|
|
142
|
-
.chip[data-on="true"] { background: var(--primary); color: var(--primary-ink); }
|
|
143
|
-
/* The legend's icons, a size down from a line's. */
|
|
144
|
-
.sites-legend .chip { width: 20px; height: 20px; }
|
|
145
|
-
.sites-legend .chip svg { width: 11px; height: 11px; }
|
|
146
|
-
.site-detail { padding: 0 0 12px 26px; }
|
|
147
|
-
|
|
148
|
-
/* A site's facts as label / value / control rows. */
|
|
149
|
-
.site-fact {
|
|
150
|
-
display: flex;
|
|
151
|
-
align-items: center;
|
|
152
|
-
flex-wrap: wrap;
|
|
153
|
-
gap: 8px 12px;
|
|
154
|
-
padding: 6px 0;
|
|
155
|
-
}
|
|
156
|
-
.fact-label { flex: 0 0 130px; font-size: 12px; font-weight: 600; color: var(--ink-muted); }
|
|
157
|
-
/* The value holds a column of its own, wide enough for On / Off /
|
|
158
|
-
Yes / No, so the control after it starts at the same x in every
|
|
159
|
-
row — beside the value it acts on (2026-10-04), not at the far
|
|
160
|
-
edge of the card. A longer value (the muted count) simply pushes
|
|
161
|
-
its own control along. */
|
|
162
|
-
.fact-value { flex: none; min-width: 48px; font-weight: 600; }
|
|
163
|
-
.fact-control { display: inline-flex; align-items: center; }
|
|
164
|
-
/* The hint takes the whole next line rather than competing with the
|
|
165
|
-
value for the row. Today's hints are long enough to fill a line
|
|
166
|
-
unaided — what puts them on their own line is `.site-fact`'s
|
|
167
|
-
`flex-wrap`, which is what the browser lane pins — so the basis
|
|
168
|
-
here is insurance for a short hint, not the load-bearing rule. */
|
|
169
|
-
.fact-hint { flex-basis: 100%; margin: 0; }
|
|
170
|
-
/* Muted recordings: the same row shape, but a fact about the
|
|
171
|
-
library rather than about any one site, so it sits after the
|
|
172
|
-
list with a rule above it rather than inside a site. */
|
|
173
|
-
[data-muted] { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--ring); }
|
|
174
|
-
.rules { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 0; }
|
|
175
|
-
.rules li { display: flex; align-items: center; gap: 8px; padding: 2px 0; }
|
|
176
|
-
.rules code { overflow-wrap: anywhere; }
|
|
177
|
-
.rules .btn-link { width: auto; padding: 2px 6px; font-size: 12px; }
|
|
178
|
-
|
|
179
|
-
/* Agents: three groups, the one that wants an answer first; in each,
|
|
180
|
-
one row per key with its buttons at the end. A narrow window
|
|
181
|
-
wraps the times under the name rather than squeezing either. */
|
|
182
|
-
.agents { display: flex; flex-direction: column; }
|
|
183
|
-
.group + .group { border-top: 1px solid var(--ring); margin-top: 12px; padding-top: 12px; }
|
|
184
|
-
.group-label { margin: 0 0 4px; font-size: 12px; font-weight: 600; color: var(--ink-muted); }
|
|
185
|
-
.agent {
|
|
186
|
-
display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px;
|
|
187
|
-
padding: 12px 0;
|
|
188
|
-
}
|
|
189
|
-
.group-label + .agent { padding-top: 4px; }
|
|
190
|
-
.agent:last-child { padding-bottom: 0; }
|
|
191
|
-
.agent-text { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 16px; min-width: 0; }
|
|
192
|
-
.agent-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
|
|
193
|
-
.agent-name { font-size: 14px; font-weight: 700; }
|
|
194
|
-
.agent-head code { color: var(--ink-muted); }
|
|
195
|
-
.agent-facts { margin: 0; }
|
|
196
|
-
.agent-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
|
|
197
|
-
.agent-actions .split { flex: none; }
|
|
198
|
-
/* An approved agent's sites, hung under it on a rule. */
|
|
199
|
-
.agent-sites { margin: -4px 0 12px 4px; padding-left: 14px; border-left: 2px solid var(--ring); display: grid; gap: 2px; }
|
|
200
|
-
.agent-sites:last-child { margin-bottom: 0; }
|
|
201
|
-
.site-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-height: 32px; }
|
|
202
|
-
.site-line .site-unit { font-weight: 600; }
|
|
203
|
-
.site-line .btn { margin-left: auto; }
|
|
204
|
-
.site-line .split { margin-left: auto; }
|
|
205
|
-
.site-line .split .btn { margin-left: 0; }
|
|
206
|
-
.agent + .agent, .agent-sites + .agent { border-top: 1px solid var(--ring); }
|
|
207
|
-
/* A narrow card puts a row's buttons under its words rather than
|
|
208
|
-
squeezing the words into what the buttons leave. */
|
|
209
|
-
@container (max-width: 520px) {
|
|
210
|
-
.agent { grid-template-columns: minmax(0, 1fr); }
|
|
211
|
-
.agent-actions { justify-content: flex-start; }
|
|
212
|
-
}
|
|
213
84
|
|
|
214
85
|
/* Brand kits (2026-10-08): the kits as a strip of live tiles, the
|
|
215
86
|
selected one's picture full width, and its controls in three short
|
|
@@ -310,17 +181,6 @@
|
|
|
310
181
|
}
|
|
311
182
|
}
|
|
312
183
|
|
|
313
|
-
/* Diagnostics' tool buttons, in one row under its lines. */
|
|
314
|
-
.controls {
|
|
315
|
-
display: flex;
|
|
316
|
-
align-items: center;
|
|
317
|
-
flex-wrap: wrap;
|
|
318
|
-
gap: 8px;
|
|
319
|
-
margin-top: 12px;
|
|
320
|
-
}
|
|
321
|
-
[data-server], [data-version] { margin-top: 6px; }
|
|
322
|
-
[data-version] { margin-top: 0; }
|
|
323
|
-
|
|
324
184
|
/* Repeated from the shell, on purpose: rules above set `display` at
|
|
325
185
|
the same specificity, and this file loads after the shell, so the
|
|
326
186
|
shell's own `.hidden` would lose to them. */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(e,t,n=.3){if(e.length===0)return null;if(t.atFoot)return e[e.length-1]?.id??null;let r=e[0]?.id??null;for(let i of e)i.top<=t.height*n&&(r=i.id);return r}function t(t){let n=null,r,i=()=>[...t.querySelectorAll(`a[data-nav]`)],a=e=>{for(let t of i())t.setAttribute(`aria-current`,String(t.dataset.nav===e))},o=()=>{if(n!==null)return a(n);let t=document.documentElement,r=i().flatMap(e=>{let t=e.dataset.nav??``,n=document.getElementById(t);return n===null?[]:[{id:t,top:n.getBoundingClientRect().top}]});a(e(r,{height:window.innerHeight,atFoot:window.scrollY+window.innerHeight>=t.scrollHeight-2}))};return t.addEventListener(`click`,e=>{let t=e.target?.closest(`a[data-nav]`);t!=null&&(n=t.dataset.nav??null,a(n),clearTimeout(r),r=setTimeout(()=>{n=null,o()},800))}),window.addEventListener(`scroll`,o,{passive:!0}),window.addEventListener(`resize`,o),{mark:o}}function n(e){let t=Promise.resolve(),n=0,r=0,i=!1,a=!1,o=!1;function s(i,a){let o=()=>a!==void 0&&r>=a?Promise.resolve():(r=n,e.paint(i));return t=t.then(o,o),t}function c(t){if(i=!0,e.hold?.()===!0){o=!0;return}s(!0,t).catch(e.onRefreshFailed).finally(()=>{i=!1,a&&(a=!1,c(n))})}return{render:()=>s(!1),soon(){let e=++n;if(i){a=!0;return}c(e)},resume(){!o||e.hold?.()===!0||(o=!1,a=!1,c(n))},pending:()=>t}}function r(e){document.querySelector(`a[data-tab="settings"]`)?.setAttribute(`href`,e.nav.kits())}export{n,t as r,r as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{A as e,C as t,D as n,E as r,F as i,I as a,O as o,P as s,S as c,T as l,_ as u,a as d,b as f,ct as p,et as m,it as ee,k as h,m as g,nt as _,r as v,tt as y,v as b,w as x,x as S,y as C}from"./confirm-dialog-CN_GqXY_.js";var w=[`share`,`high`,`full`],T={share:`Sharing`,high:`High`,full:`Full`},E=`high`;function te(e){return{padding:e.branding.padding,viewport:e.meta.capture.viewport}}function D(e,t){return e?.viewport??t.viewport}function ne(t,n,r,i){switch(t){case`mp4`:{let t=n?e(n,r):c;return i!==void 0&&i.width<t.width?i:t}case`gif`:return u;case`stills`:return l}}function re(e){return e.width>=t.width?t:{...t,width:e.width,height:e.height,cornerRadius:e.cornerRadius,bitrate:Math.round(t.bitrate*e.width*e.height/(t.width*t.height))}}function ie(e){return e.width>=C.width?C:{...e,bitrate:Math.min(e.bitrate,C.bitrate)}}function ae(e,t,i,a,o={}){let s=e===`mp4`?o.quality??`full`:`full`;if(t!==`9:16`){let n=ne(e,i,t,o.maxTier),r=h(t,s===`share`?re(n):s===`high`?ie(n):n,D(i,a),a.padding);return s===`high`&&r.bitrate>1e7?{...r,bitrate:f}:r}switch(e){case`mp4`:return s===`share`?x:s===`high`?S:n;case`gif`:return b;case`stills`:return r}}var oe=new Set([`image/svg+xml`,`image/png`,`image/webp`,`image/jpeg`]);function O(e){return e.type===``?{ok:!1,reason:`The logo "${e.name}" has no file type — use SVG, PNG, WebP or JPEG`}:oe.has(e.type)?e.size>2097152?{ok:!1,reason:`The logo "${e.name}" is ${(e.size/1024/1024).toFixed(1)} MB — logos are limited to 2 MB`}:{ok:!0,note:e.type===`image/jpeg`?`JPEG has no transparency — the logo shows as a box on the background`:null}:{ok:!1,reason:`The logo "${e.name}" is a ${e.type} file — use SVG, PNG, WebP or JPEG`}}var k=[`off`,`ask`,`attach`],se={off:`Off`,ask:`Ask`,attach:`Attach`};function ce(e,t,n){return e.naturalHeight===null||e.naturalHeight>=t?null:`Upscaled in a ${n} export — an SVG or a larger PNG stays sharp`}var A=new WeakMap;function le(e){let t=A.get(e);return t===void 0&&(t=(async()=>{let t=await e.rasterAt(160),n=Math.max(1,Math.round(160*e.aspect)),r=document.createElement(`canvas`);r.width=n,r.height=160;let i=r.getContext(`2d`);if(i===null)throw Error(`the thumbnail has no 2D context to draw in`);return i.drawImage(t.image,0,0,n,160),r.toDataURL(`image/png`)})(),A.set(e,t),t.catch(()=>{A.get(e)===t&&A.delete(e)})),t}function j(e,t){let n=e.logo;if(t.logo===null)n=null;else if(t.logo!==void 0){if(`ref`in t.logo)n=t.logo;else if(n===null)throw Error(`there is no logo to adjust — upload one first`);else n={...n,...t.logo}}let r=t.background??e.background;if(t.gradient!==void 0){if(r.kind!==`gradient`)throw Error(`the background is not a gradient any more`);let{swap:e,...n}=t.gradient;e&&(r={...r,from:r.to,to:r.from}),r={...r,...n}}return{...e,background:r,logo:n,padding:t.padding??e.padding}}function ue(e,t){if(e.padding!==t.padding)return!1;let n=e.background,r=t.background;return(n.kind===`solid`?r.kind===`solid`&&n.color===r.color:r.kind===`gradient`&&n.from===r.from&&n.to===r.to&&n.angle===r.angle)?e.logo===null||t.logo===null?e.logo===t.logo:e.logo.ref===t.logo.ref&&e.logo.corner===t.logo.corner&&e.logo.size===t.logo.size&&e.logo.opacity===t.logo.opacity:!1}function de(e,t,n=()=>void 0){if(e===null||e.scene!==t)return{branding:t.branding,preview:null};try{return{branding:j(t.branding,e.patch),preview:e}}catch(e){return n(e instanceof Error?e:Error(String(e))),{branding:t.branding,preview:null}}}var M={mp4:`MP4`,gif:`GIF`,stills:`PNG stills`},fe={mp4:`Export MP4`,gif:`Export GIF`,stills:`Export PNG stills`};function pe(e,t){let n=e===`stills`?`one per step`:d(t);return[M[e],n].join(` · `)}function N(e,t){let n=t===`9:16`;switch(e){case`mp4`:return n?`Vertical video`:t===`auto`?`Video`:`Landscape video`;case`gif`:return n?`Vertical GIF`:`GIF`;case`stills`:return n?`Vertical PNG stills`:`PNG stills`}}function me(e){switch(e){case`auto`:return`Auto, set under the preview — the video takes the recording's shape`;case`9:16`:return`9:16, set under the preview — the camera follows each step`;case`16:9`:return`16:9, set under the preview`}}function he(e,t){return`Recording ${e.width} × ${e.height} · Video ${t.width} × ${t.height}`}function ge(e){if(!e.hasFrames)return`No frames to export`;if(e.durationMs<=0)return`Nothing left to export`;let t=`${e.target.width} × ${e.target.height}`;return e.fileType===`stills`?`${M.stills} · ${t}`:`${d(e.durationMs)} · ${t}`}var P=(e,t,n)=>{let r=document.createElement(e);return t&&(r.className=t),n!==void 0&&(r.textContent=n),r},F=e=>{let t=Number(e.min===``?0:e.min),n=Number(e.max===``?100:e.max)-t,r=n>0?(Number(e.value)-t)/n:0,i=Math.min(1,Math.max(0,r));e.style.setProperty(`--fill`,`${(i*100).toFixed(2)}%`)},I={"top-left":`Top left`,"top-right":`Top right`,"bottom-left":`Bottom left`,"bottom-right":`Bottom right`};function _e(e){let t=P(`span`,`logo-thumb`),n=e??{kind:`failed`,reason:`this page did not load the logo`};if(t.setAttribute(`data-logo-thumb`,n.kind),n.kind===`ready`){let e=P(`img`,`logo-thumb-img`);e.src=n.url,e.alt=`Logo`,t.append(e)}else n.kind===`loading`?(t.setAttribute(`aria-busy`,`true`),t.title=`Loading the logo`):(t.append(v(`circleAlert`)),t.title=`The logo could not be shown: ${n.reason}`,t.setAttribute(`aria-label`,t.title),t.setAttribute(`role`,`img`));return t}function ve(e,t){return e===null||!e.capped?null:e.effectiveSize===0?`No room for the logo in ${t} — the recording fills the frame`:`Shown at ${Math.round(e.effectiveSize*100)}% in ${t} to stay clear of your recording`}var L=null,R=new WeakMap,ye=e=>{let t=R.get(e);return t===void 0&&(t=new Map,R.set(e,t)),t};function z(e,t,n,r,i,a=null){let o=P(`div`,`control-row colour-field`);o.setAttribute(`data-colour-field`,``);let s=P(`input`);s.type=`color`,s.value=t,s.setAttribute(`aria-label`,`${e} swatch`);let c=P(`input`,`colour-text`);c.type=`text`,c.value=t,c.spellcheck=!1,c.setAttribute(`aria-label`,e),c.setAttribute(`data-colour-text`,``);let l=P(`p`,`colour-error`);l.setAttribute(`data-colour-error`,``),l.setAttribute(`role`,`alert`);let u=P(`p`,`muted`);u.setAttribute(`data-colour-note`,``),L!==null&&L.hex===t&&(u.textContent=L.note);let d=i.get(e);d!==void 0&&d.base!==t?i.delete(e):d!==void 0&&(c.value=d.text,l.textContent=d.error,d.error!==``&&(u.textContent=``,c.setAttribute(`aria-invalid`,`true`))),c.addEventListener(`input`,()=>{let n=i.get(e);i.set(e,{base:t,text:c.value,error:n?.error??``})}),s.addEventListener(`input`,()=>{i.delete(e),c.value=s.value,r.onPreview(n(s.value))}),s.addEventListener(`change`,()=>r.onCommit(n(s.value))),c.addEventListener(`change`,()=>{let a=p(c.value);if(!a.ok){l.textContent=a.reason,u.textContent=``,c.setAttribute(`aria-invalid`,`true`),i.set(e,{base:t,text:c.value,error:a.reason});return}i.delete(e),l.textContent=``,u.textContent=a.note??``,L=a.note===null?null:{hex:a.hex,note:a.note},c.removeAttribute(`aria-invalid`),c.value=a.hex,s.value=a.hex,r.onCommit(n(a.hex))});let f=P(`div`,`colour-row`);return f.append(s,c),o.append(P(`span`,`control-label`,e)),a!==null&&(a.classList.add(`control-aside`),o.append(a)),o.append(f,l,u),o}function B(e,t,n,r,i,a,o){let s=P(`div`,`slider-row`),c=P(`input`);c.type=`range`,c.min=String(r.min),c.max=String(r.max),c.step=String(r.step),c.value=String(n),c.setAttribute(e,``),c.setAttribute(`aria-label`,t);let l=P(`span`,`slider-value`,i(n));return F(c),c.addEventListener(`input`,()=>{F(c),l.textContent=i(Number(c.value)),o.onPreview(a(Number(c.value)))}),c.addEventListener(`change`,()=>o.onCommit(a(Number(c.value)))),s.append(P(`span`,`control-label slider-label`,t),l,c),s}function V(e,t,n){let{branding:r}=t,i=r.background,a=P(`div`,`branding-controls`),o=ye(e),s=(e,n)=>{let r=P(`section`,`branding-group`);return r.setAttribute(`data-group`,e),t.groupTitles&&r.append(P(`h3`,`branding-group-title`,n)),r},c=s(`background`,`Background`),l=s(`logo`,`Logo`),u=s(`frame`,`Frame`);t.kit!==void 0&&a.append(be(e,t.kit));let d=P(`div`,`segmented`);d.setAttribute(`role`,`radiogroup`),d.setAttribute(`aria-label`,`Background style`);for(let e of[`solid`,`gradient`]){let t=P(`button`,`segment`,e===`solid`?`Solid`:`Gradient`);t.type=`button`,t.setAttribute(`role`,`radio`),t.setAttribute(`data-bg-kind`,e),t.setAttribute(`aria-checked`,String(i.kind===e)),t.addEventListener(`click`,()=>{if(i.kind===e)return;let t=e===`gradient`&&i.kind===`solid`?{kind:`gradient`,from:i.color,to:`#ffffff`,angle:135}:{kind:`solid`,color:i.kind===`gradient`?i.from:i.color};n.onCommit({background:t})}),d.append(t)}let f=P(`div`,`control-row`);f.append(P(`span`,`control-label`,`Style`),d),c.append(f);let p=null;if(i.kind===`solid`)c.append(z(`Colour`,i.color,e=>({background:{kind:`solid`,color:e}}),n,o));else{let e=e=>({gradient:e}),r=P(`button`,`btn btn-link`,`⇅ Swap`);r.type=`button`,r.setAttribute(`data-swap`,``),r.setAttribute(`aria-label`,`Swap From and To`),r.title=`Swap From and To`,r.addEventListener(`click`,()=>n.onCommit(e({swap:!0}))),c.append(z(`From`,i.from,t=>e({from:t}),n,o,r),z(`To`,i.to,t=>e({to:t}),n,o)),p=B(`data-angle`,`Angle`,i.angle,{min:0,max:359,step:1},e=>`${Math.round(e)}°`,t=>e({angle:Math.round(t)}),n),t.groupTitles||c.append(p)}u.append(B(`data-padding`,`Padding`,r.padding,{min:0,max:.2,step:.01},e=>`${Math.round(e*100)}%`,e=>({padding:Math.round(e*100)/100}),n)),p!==null&&t.groupTitles&&u.append(p);let m=P(`div`,`logo-controls`),h=P(`input`);h.type=`file`,h.accept=`image/svg+xml,image/png,image/webp,image/jpeg`,h.setAttribute(`aria-label`,r.logo?`Replace logo`:`Upload logo`),h.addEventListener(`change`,()=>{let e=h.files?.[0];e&&n.onLogoFile(e)});let g=P(`label`,`btn btn-quiet`,r.logo?`Replace`:`Upload logo`);g.prepend(v(`upload`)),g.append(h);let _=P(`div`,`control-row`);if(t.groupTitles||_.append(P(`span`,`control-label`,`Logo`)),m.append(_),r.logo===null){let e=P(`div`,`control-actions`);e.append(g),_.append(e)}else{let e=r.logo,i=P(`button`,`btn btn-quiet`,`Remove`);i.type=`button`,i.setAttribute(`data-logo-remove`,``),i.prepend(v(`trash`)),i.addEventListener(`click`,()=>n.onCommit({logo:null}));let a=P(`div`,`logo-stack`);a.append(g,i);let o=P(`div`,`logo-row`);o.append(_e(t.logoThumb),a),_.append(o);let s=P(`div`,`corner-frame`);s.setAttribute(`role`,`radiogroup`),s.setAttribute(`aria-label`,`Logo corner`),s.append(P(`div`,`corner-frame-rec`));for(let t of ee){let r=P(`button`,`corner`);r.type=`button`,r.setAttribute(`role`,`radio`),r.setAttribute(`data-logo-corner`,t),r.setAttribute(`aria-checked`,String(e.corner===t)),r.setAttribute(`aria-label`,I[t]),r.title=I[t],r.addEventListener(`click`,()=>n.onCommit({logo:{corner:t}})),s.append(r)}let c=P(`div`,`control-row`);c.append(P(`span`,`control-label`,`Corner`),s),m.append(c,B(`data-logo-size`,`Size`,e.size,{min:.02,max:.2,step:.01},e=>`${Math.round(e*100)}%`,e=>({logo:{size:e}}),n),B(`data-logo-opacity`,`Opacity`,e.opacity,{min:.2,max:1,step:.05},e=>`${Math.round(e*100)}%`,e=>({logo:{opacity:e}}),n));let l=[ve(t.logoPlacement,t.formatTitle),...t.logoNotes].filter(e=>e!==null);if(l.length>0){let e=P(`div`,`muted`);e.setAttribute(`data-logo-notes`,``);for(let t of l)e.append(P(`p`,void 0,t));m.append(e)}}l.append(m),a.append(c,u,l);let y=document.activeElement,b=y instanceof HTMLInputElement&&y.hasAttribute(`data-colour-text`)&&e.contains(y)?{label:y.getAttribute(`aria-label`),start:y.selectionStart,end:y.selectionEnd}:null,x=e.querySelector(`[data-kit-new-name]`),S=x!==null&&document.activeElement===x?{start:x.selectionStart,end:x.selectionEnd}:null;e.replaceChildren(a);let C=a.querySelector(`[data-kit-new-name]`);if(C!==null&&x===null?C.focus():C!==null&&S!==null&&(C.focus(),S.start!==null&&S.end!==null&&C.setSelectionRange(S.start,S.end)),b!==null){let e=Array.from(a.querySelectorAll(`[data-colour-text]`)).find(e=>e.getAttribute(`aria-label`)===b.label);e!==void 0&&(e.focus(),b.start!==null&&b.end!==null&&e.setSelectionRange(b.start,b.end))}}var H=new WeakMap,U=new WeakSet;function W(e){let t=P(`span`,`kit-swatch`);if(e?.read.state===`ready`){let n=e.read.kit.background;t.style.background=n.kind===`solid`?n.color:`linear-gradient(${n.angle}deg, ${n.from}, ${n.to})`}else e!==null&&t.append(v(`circleAlert`));return t}function be(e,t){let{read:n,standing:r,naming:i}=t,a=P(`div`,`control-row kit-actions`);if(a.setAttribute(`data-kit-row`,``),a.append(P(`span`,`control-label`,`Brand kit`)),n.state===`invalid`){let e=P(`p`,`colour-error`,`Your brand kits could not be read: ${n.reason}`);return e.setAttribute(`data-kit-error`,``),a.append(e),a}if(i!==null){let e=P(`div`,`kit-naming`),n=P(`input`,`kit-new-name`);n.type=`text`,n.maxLength=40,n.value=i.text,n.placeholder=`Kit name`,n.setAttribute(`aria-label`,`New kit name`),n.setAttribute(`data-kit-new-name`,``),n.addEventListener(`input`,()=>t.onNameInput(n.value)),n.addEventListener(`keydown`,e=>{e.key===`Enter`?t.onConfirmNew(n.value):e.key===`Escape`&&t.onCancelNew()});let r=P(`button`,`btn btn-primary`,`Save`);r.type=`button`,r.setAttribute(`data-kit-new-save`,``),r.addEventListener(`click`,()=>t.onConfirmNew(n.value));let o=P(`button`,`btn btn-quiet`,`Cancel`);if(o.type=`button`,o.setAttribute(`data-kit-new-cancel`,``),o.addEventListener(`click`,()=>t.onCancelNew()),e.append(n,r,o),a.append(e),i.error!==null){let e=P(`p`,`colour-error`,i.error);e.setAttribute(`data-kit-new-error`,``),a.append(e)}return a}let o=P(`div`,`kit-picker-wrap`),s=P(`button`,`kit-picker`);s.type=`button`,s.setAttribute(`data-kit-picker`,``),s.setAttribute(`aria-haspopup`,`menu`);let c=r===null?n.kits.length===0?`No brand kit`:`Custom look`:r.kit.name;if(s.append(W(r?.kit??null),P(`span`,r===null?`kit-picker-name kit-picker-none`:`kit-picker-name`,c)),r?.edited){let e=P(`span`,`kit-edited`,`Edited`);e.setAttribute(`data-kit-edited`,``),s.append(e)}s.append(v(`chevronDown`));let l=P(`div`,`kit-menu`);l.setAttribute(`role`,`menu`),l.setAttribute(`data-kit-menu`,``);let u=t=>{H.set(e,t),l.hidden=!t,s.setAttribute(`aria-expanded`,String(t))},d=(e,t,n)=>{let r=P(`button`,`kit-menu-item ${e}`.trim());return r.type=`button`,n!==null&&r.append(n),r.append(P(`span`,`kit-menu-label`,t)),r};for(let e of n.kits){let i=d(``,e.name,W(e));i.setAttribute(`role`,`menuitemradio`),i.setAttribute(`data-kit-option`,e.id);let a=e.id===r?.kit.id;i.setAttribute(`aria-checked`,String(a));let o=P(`span`,`kit-menu-meta`);if(e.id===n.defaultId){let e=v(`star`);e.setAttribute(`aria-label`,`Default`),o.append(e)}a&&o.append(v(`check`)),i.append(o),e.read.state===`invalid`&&(i.disabled=!0,i.title=e.read.reason),i.addEventListener(`click`,()=>{u(!1),t.onApply(e.id)}),l.append(i)}if(n.kits.length>0&&l.append(P(`div`,`kit-menu-sep`)),r!==null){let e=d(``,`Update "${r.kit.name}"`,v(`refresh`));e.setAttribute(`role`,`menuitem`),e.setAttribute(`data-kit-update`,``),r.edited||(e.disabled=!0),e.addEventListener(`click`,()=>{u(!1),t.onUpdate()}),l.append(e)}let f=d(``,`Save as new kit…`,v(`plus`));return f.setAttribute(`role`,`menuitem`),f.setAttribute(`data-kit-new`,``),f.addEventListener(`click`,()=>{u(!1),t.onStartNew()}),l.append(f),s.addEventListener(`click`,()=>u(l.hidden)),l.addEventListener(`keydown`,e=>{e.key===`Escape`&&(u(!1),s.focus())}),u(H.get(e)===!0),U.has(e)||(U.add(e),document.addEventListener(`pointerdown`,t=>{if(H.get(e)!==!0||e.querySelector(`[data-kit-row]`)?.contains(t.target))return;H.set(e,!1);let n=e.querySelector(`[data-kit-menu]`);n!==null&&(n.hidden=!0),e.querySelector(`[data-kit-picker]`)?.setAttribute(`aria-expanded`,`false`)})),o.append(s,l),a.append(o),a}var xe={...c,width:480,height:270,cornerRadius:c.cornerRadius*480/c.width},G={width:1280,height:800};function K(e){return o(xe,G,e)}var q=y.shape.padding.maxValue;if(q===null)throw Error(`BrandingSchema's padding has no ceiling to size the preview by`);var J=K(q);function Se(e,t){return s(e,K(e.padding),G,t).logoPlacement}function Ce(e,t,n,r,o=0){let c=e.getContext(`2d`);if(c===null)return!1;let l=J;e.width!==l.width&&(e.width=l.width),e.height!==l.height&&(e.height=l.height);let u=K(t.padding);c.clearRect(0,0,l.width,l.height),c.save(),c.beginPath(),c.roundRect(0,0,u.width,u.height,o),c.clip();let d=c,f=s(t,u,G,n);i(d,u,f);let p=f.frameRect;return c.save(),c.fillStyle=r,c.beginPath(),c.roundRect(p.x,p.y,p.width,p.height,f.cornerRadius),c.fill(),c.restore(),a(d,u,f),c.restore(),!0}function Y(e,t={},n){let r=document.createElement(e);for(let[e,n]of Object.entries(t))r.setAttribute(e,n);return n!==void 0&&(r.textContent=n),r}var X=[{section:`brandKit`,id:`brand-kit`,label:`Brand kit`,glyph:`palette`},{section:`export`,id:`export`,label:`Export`,glyph:`download`},{section:`pullRequests`,id:`pull-requests`,label:`Pull requests`,glyph:`upload`}];function Z(e,t){let n=Y(`section`,{"data-section":e,id:X.find(t=>t.section===e)?.id??e}),r=Y(`div`,{class:`section-head`});r.append(Y(`h2`,{},t));let i=Y(`div`,{class:`card section-body`});return n.append(r,i),{box:n,body:i}}function we(){let e=Y(`nav`,{class:`section-nav`,"aria-label":`Settings sections`}),t=Y(`ul`);for(let e of X){let n=Y(`a`,{href:`#${e.id}`,"data-nav":e.id});n.append(v(e.glyph),Y(`span`,{},e.label));let r=Y(`li`);r.append(n),t.append(r)}return e.append(t),e}function Q(e,t){return Y(`button`,{type:`button`,class:`btn btn-quiet`,...t},e)}function $(e){return Y(`p`,{class:`notice notice-error`,"data-notice":``},e)}function Te(e,t,n,r){let i=Y(`div`,{class:`content`});{let e=Z(`brandKit`,`Brand kit`),a=r.get(`brandKit`);a!==void 0&&e.body.append($(a)),t.kitsUnwatched!==null&&e.body.append(Y(`p`,{class:`notice notice-warn`,"data-notice":``,"data-unwatched":``},`Kits changed outside this window will not show until you reload — ${t.kitsUnwatched}.`)),Ee(e.body,t,n),i.append(e.box)}{let e=Z(`export`,`Export`),a=r.get(`export`);a!==void 0&&e.body.append($(a));let o=t.exportQuality,s=Y(`div`,{class:`switch-row export-quality`}),c=Y(`div`,{class:`segmented`,role:`radiogroup`,"aria-label":`Export quality`});for(let e of w){let t=Y(`button`,{type:`button`,class:`segment`,role:`radio`,"data-export-quality":e,"aria-checked":String(e===o)},T[e]);t.addEventListener(`click`,()=>{e!==o&&n.setExportQuality(e)}),c.append(t)}s.append(c),e.body.append(s),i.append(e.box)}{let e=Z(`pullRequests`,`Pull requests`),a=r.get(`pullRequests`);a!==void 0&&e.body.append($(a));let o=t.pullRequests,s=Y(`div`,{class:`switch-row pull-requests`}),c=Y(`div`,{class:`segmented`,role:`radiogroup`,"aria-label":`Pull requests`});for(let e of k){let t=Y(`button`,{type:`button`,class:`segment`,role:`radio`,"data-pull-requests":e,"aria-checked":String(e===o)},se[e]);t.addEventListener(`click`,()=>{e!==o&&n.setPullRequests(e)}),c.append(t)}s.append(c),e.body.append(s),i.append(e.box)}let a=Y(`div`,{class:`settings-side`});a.append(Y(`h1`,{},`Settings`),we());let o=Y(`div`,{class:`settings`});o.append(a,i),e.replaceChildren(o)}function Ee(e,t,n){let r=t.brandKits;if(r.state===`invalid`){if(e.append($(`Your brand kits could not be read: ${r.reason}`)),r.storageRefused){e.append(Y(`p`,{class:`hint`},`Nothing was changed. Reload this page to try again.`));return}let t=Q(`Start a fresh kit list`,{"data-kit-reset-list":``});t.addEventListener(`click`,()=>n.resetKits()),e.append(t);return}let i=r.kits.find(e=>e.id===t.selectedKitId)??null;e.append(De(r,i,n)),i!==null&&e.append(Oe(i,r,n)),i?.read.state===`invalid`&&e.append($(`"${i.name}" could not be read: ${i.read.reason}`));let a=i?.read.state===`ready`?i.read.kit:m,o=Y(`div`,{class:`kit-hero`});o.append(Y(`canvas`,{"data-preview-kit":``,width:String(J.width),height:String(J.height),class:`kit-preview`}));let s=Y(`div`,{class:`kit-controls`});V(s,{branding:a,logoThumb:t.brandKitLogoThumb,logoPlacement:t.brandKitPlacement,formatTitle:N(`mp4`,_.aspect),logoNotes:t.brandKitNotes,groupTitles:!0},{onCommit:e=>n.setBrandKit(e),onPreview:e=>n.previewBrandKit(e),onLogoFile:e=>n.uploadKitLogo(e)}),e.append(o,s)}function De(e,t,n){let r=Y(`div`,{class:`kit-strip`,role:`list`}),i=g(e);for(let a of e.kits){let e=Y(`div`,{class:`kit-tile`,role:`listitem`,"data-kit-tile":a.id}),o=Y(`button`,{type:`button`,class:`kit-pick`,"data-kit-select":a.id,"aria-pressed":String(a.id===t?.id)});if(a.read.state===`ready`)o.append(Y(`canvas`,{class:`kit-thumb`,"data-kit-thumb":a.id,width:String(J.width),height:String(J.height)}));else{let e=Y(`span`,{class:`kit-thumb kit-thumb-broken`});e.append(v(`circleAlert`)),o.append(e),o.title=a.read.reason}o.append(Y(`span`,{class:`kit-tile-name`},a.name)),o.addEventListener(`click`,()=>n.selectKit(a.id));let s=a.id===i?.id,c=Y(`button`,{type:`button`,class:`kit-star`,"data-kit-star":a.id,"aria-pressed":String(s),"aria-label":s?`"${a.name}" is the default kit`:`Make "${a.name}" the default kit`});c.append(v(`star`)),c.addEventListener(`click`,()=>{s||n.setDefaultKit(a.id)}),e.append(o,c),r.append(e)}let a=Y(`button`,{type:`button`,class:`kit-tile kit-new`,"data-kit-new":``});return a.append(v(`plus`),Y(`span`,{},`New kit`)),a.addEventListener(`click`,()=>n.newKit()),r.append(a),r}function Oe(e,t,n){let r=Y(`div`,{class:`kit-head`}),i=Y(`input`,{type:`text`,class:`kit-name`,"data-kit-name":``,maxlength:`40`,"aria-label":`Kit name`});i.value=e.name,i.addEventListener(`change`,()=>n.renameKit(e.id,i.value)),i.addEventListener(`keydown`,t=>{t.key===`Escape`&&(i.value=e.name,i.blur())});let a=Q(`Duplicate`,{"data-kit-duplicate":``});a.prepend(v(`copy`)),a.addEventListener(`click`,()=>n.duplicateKit(e.id));let o=Q(`Delete`,{"data-kit-delete":``});return o.prepend(v(`trash`)),t.kits.length===1&&(o.disabled=!0,o.title=`The last kit cannot be deleted`),o.addEventListener(`click`,()=>n.deleteKit(e.id)),r.append(i,a,o),r}export{w as C,ae as E,T as S,D as T,ue as _,V as a,O as b,fe as c,N as d,pe as f,de as g,j as h,Ce as i,M as l,ge as m,J as n,P as o,he as p,Se as r,F as s,Te as t,me as u,le as v,te as w,E as x,ce as y};
|
package/dist/studio/editor.html
CHANGED
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
<!-- The shell — tokens, faces, the brand lockup, buttons, notices — is
|
|
7
7
|
shared with the popup, the Recordings page and Settings. Only the
|
|
8
8
|
editor's own rules are inline below. -->
|
|
9
|
-
<link rel="stylesheet" href="/assets/editor-inline-
|
|
10
|
-
<script type="module" crossorigin src="/assets/editor-
|
|
11
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
12
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
9
|
+
<link rel="stylesheet" href="/assets/editor-inline-7e387eed.css">
|
|
10
|
+
<script type="module" crossorigin src="/assets/editor-Cy1V14-4.js"></script>
|
|
11
|
+
<link rel="modulepreload" crossorigin href="/assets/confirm-dialog-CN_GqXY_.js">
|
|
12
|
+
<link rel="modulepreload" crossorigin href="/assets/view-DsZQo9AJ.js">
|
|
13
13
|
<link rel="modulepreload" crossorigin href="/assets/state-COWbBf84.js">
|
|
14
|
-
<link rel="stylesheet" crossorigin href="/assets/
|
|
14
|
+
<link rel="stylesheet" crossorigin href="/assets/confirm-dialog-Dd_hs1Bv.css">
|
|
15
15
|
</head>
|
|
16
16
|
<body>
|
|
17
17
|
<header>
|
|
@@ -86,7 +86,6 @@
|
|
|
86
86
|
<div id="notes" popover role="dialog" aria-label="Notes on this take">
|
|
87
87
|
<div id="banner"></div>
|
|
88
88
|
<div id="failure"></div>
|
|
89
|
-
<div id="report"></div>
|
|
90
89
|
<!-- The take's own warnings — the notices `buildLaneModel` collects
|
|
91
90
|
and the hover pass's verdict. Both were drawn inside the dock
|
|
92
91
|
until 2026-09-22; see `renderTakeNotes` for why they are here
|
package/dist/studio/icon/32.png
CHANGED
|
Binary file
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="
|
|
2
|
-
<title>Demoman
|
|
3
|
-
<
|
|
4
|
-
<g transform="translate(-358.71,26.61) scale(2.2)">
|
|
5
|
-
<path fill="#000000" d="M 287.20,151.99 L 345.34,125.16 A 16.00,16.00 0 0 0 345.34,96.10 L 287.20,69.27 A 16.00,16.00 0 0 0 264.50,83.80 L 264.50,137.46 A 16.00,16.00 0 0 0 287.20,151.99 Z"/>
|
|
6
|
-
</g>
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="157.0 119.3 299.2 299.2" width="32" height="32">
|
|
2
|
+
<title>Demoman</title>
|
|
3
|
+
<g fill="currentColor"><g transform="translate(5.54,56.31) scale(0.96895)"><path d="M 287.20,151.99 L 345.34,125.16 A 16,16 0 0 0 345.34,96.10 L 287.20,69.27 A 16,16 0 0 0 264.50,83.80 L 264.50,137.46 A 16,16 0 0 0 287.20,151.99 Z"/></g><rect x="264" y="224" width="83" height="83" rx="16.5"/><rect x="264" y="326" width="33" height="92.5" rx="16.5"/><rect x="314" y="326" width="33" height="92.5" rx="16.5"/></g>
|
|
7
4
|
</svg>
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0
|
|
2
|
-
<title>
|
|
3
|
-
<
|
|
4
|
-
<
|
|
5
|
-
<
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
</g>
|
|
12
|
-
<!-- wordmark: "demoman", Outfit SemiBold (600), tracking -1.2%, outlined -->
|
|
13
|
-
<path fill="#FFFFFF" d="M454.26840500000003 288.12746145833336Q440.0090741666667 288.12746145833336 428.7376287097393 281.1084094682018Q417.4661832528119 274.08935747807016 410.96667162640597 262.00729092653506Q404.46716000000004 249.925224375 404.46716000000004 234.7276430691057Q404.46716000000004 219.36525151422768 410.95834791666675 207.29711836128052Q417.4495358333334 195.22898520833334 428.6986089663462 188.15252625Q439.94768209935904 181.07606729166667 454.26840500000003 181.07606729166667Q465.3885547916667 181.07606729166667 474.2474301041667 185.59861625000002Q483.1063054166667 190.12116520833337 488.5599673958334 198.04892750000002Q494.01362937500005 205.97668979166667 494.3860745833334 216.085916875V252.58554729166667Q494.01362937500005 262.694774375 488.6397770833334 270.7555528125Q483.26592479166675 278.81633125 474.3272397916667 283.4718963541667Q465.3885547916667 288.12746145833336 454.26840500000003 288.12746145833336ZM459.0569862500001 262.375535625Q466.9315420833334 262.375535625 472.7394573567709 258.8376632361577Q478.54737263020843 255.29979084731545 481.8377617317709 249.04767490282438Q485.1281508333334 242.79555895833334 485.1281508333334 234.60176437500002Q485.1281508333334 226.3462302220912 481.84901367300733 220.14039958431604Q478.5698765126812 213.93456894654088 472.75070929800734 210.38128103577043Q466.9315420833334 206.827993125 459.1900023958334 206.827993125Q451.4484627083334 206.827993125 445.6081171728287 210.3953474664297Q439.767771637324 213.9627018078594 436.3767966519954 220.21988217318324Q432.9858216666667 226.4770625385071 432.9858216666667 234.60176437500002Q432.9858216666667 242.7423525 436.32485455305834 249.01432980833334Q439.66388743945 255.28630711666668 445.593917586207 258.8309213708333Q451.52394773296396 262.375535625 459.0569862500001 262.375535625ZM511.41214125000005 285.999203125H483.6915764583334V258.38505125L488.1609189583334 233.324809375L483.4255441666667 208.47739333333334V132.12612562500001H511.41214125000005ZM582.6555889583334 288.233874375Q566.5872385416667 288.233874375 553.9507046875001 281.3170347916667Q541.3141708333334 274.40019520833334 534.0248860416667 262.1893130208333Q526.7356012500001 249.97843083333333 526.7356012500001 234.60176437500002Q526.7356012500001 219.278304375 533.8918698958335 207.17383510416667Q541.0481385416667 195.06936583333334 553.3654336458334 188.01951010416667Q565.68272875 180.969654375 580.8465693750001 180.969654375Q595.6379647916667 180.969654375 606.9975436458334 187.59385843750002Q618.3571225000001 194.21806250000003 624.8483104166667 205.8170704166667Q631.3394983333334 217.41607833333336 631.3394983333334 232.26068020833333Q631.3394983333334 234.97420958333333 631.0202595833334 237.84735833333335Q630.7010208333334 240.72050708333336 629.9561304166667 244.28533979166667L543.4424291666667 244.44495916666668V223.69444041666668L616.9737545833334 223.53482104166667L605.5875725000001 232.10106083333335Q605.26833375 222.94955000000002 602.3685817708333 216.8042040625Q599.4688297916667 210.658858125 594.0683742708334 207.41326416666666Q588.6679187500001 204.16767020833333 580.7401564583333 204.16767020833333Q572.4399489583334 204.16767020833333 566.32120625 207.83891583333335Q560.2024635416667 211.51016145833336 556.8770598958333 218.18757197916668Q553.5516562500001 224.8649825 553.5516562500001 234.17611270833333Q553.5516562500001 243.540449375 557.0898857291668 250.43068572916667Q560.6281152083334 257.32092208333336 567.1725095833334 261.0187709375Q573.7169039583334 264.7166197916667 582.4959695833334 264.7166197916667Q590.2641125 264.7166197916667 596.7020939583333 262.0296936458334Q603.1400754166667 259.34276750000004 607.8222437500001 254.0221216666667L624.2098329166668 270.51612375Q616.6545158333333 279.295189375 605.90681125 283.764531875Q595.1591066666667 288.233874375 582.6555889583334 288.233874375ZM646.0244808333334 285.999203125V183.20432562500002H674.0110779166666V285.999203125ZM713.0646183333333 285.999203125V225.343840625Q713.0646183333333 216.35194916666666 707.4779402083334 211.35054208333332Q701.8912620833335 206.34913500000002 693.6442610416667 206.34913500000002Q688.0043764583334 206.34913500000002 683.5882404166667 208.61040947916666Q679.1721043750001 210.87168395833334 676.5915911458334 215.10159739583332Q674.0110779166666 219.33151083333334 674.0110779166666 225.343840625L663.1037539583334 220.0231947916667Q663.1037539583334 208.05174166666666 668.3445901041667 199.37908895833334Q673.5854262500001 190.70643625000002 682.52411125 185.89125177083335Q691.4627962500001 181.07606729166667 702.6361525 181.07606729166667Q713.4370635416667 181.07606729166667 722.1363194791667 185.86464854166667Q730.8355754166666 190.65322979166666 735.9433954166667 199.29927927083332Q741.0512154166668 207.94532875000002 741.0512154166668 219.96998833333333V285.999203125ZM780.1047558333335 285.999203125V225.343840625Q780.1047558333335 216.35194916666666 774.5180777083334 211.35054208333332Q768.9313995833334 206.34913500000002 760.6843985416667 206.34913500000002Q755.2041333333334 206.34913500000002 750.7081876041667 208.61040947916666Q746.212241875 210.87168395833334 743.6317286458334 215.10159739583332Q741.0512154166668 219.33151083333334 741.0512154166668 225.343840625L725.0360714583334 221.56618208333333Q725.8341683333333 209.11587083333336 731.6070690625 200.09737614583335Q737.3799697916668 191.07888145833334 746.7709096875001 186.077474375Q756.1618495833334 181.07606729166667 767.6544445833333 181.07606729166667Q779.0938331250001 181.07606729166667 788.2187407291667 185.917855Q797.3436483333334 190.75964270833333 802.717500625 199.64512125Q808.0913529166667 208.53059979166667 808.0913529166667 220.98091104166667V285.999203125ZM876.3020325 288.233874375Q860.818953125 288.233874375 848.3420386458333 281.10420895833334Q835.8651241666666 273.97454354166666 828.575839375 261.737058125Q821.2865545833333 249.49957270833335 821.2865545833333 234.38893854166668Q821.2865545833333 219.278304375 828.5492361458333 207.25364479166666Q835.8119177083333 195.22898520833334 848.2888321875 188.0993197916667Q860.7657466666667 180.969654375 876.2488260416667 180.969654375Q891.8915247916667 180.969654375 904.3418360416667 188.01951010416667Q916.7921472916667 195.06936583333334 924.0814320833333 207.17383510416667Q931.370716875 219.278304375 931.370716875 234.38893854166668Q931.370716875 249.49957270833335 924.1080353125 261.737058125Q916.84535375 273.97454354166666 904.3950425 281.10420895833334Q891.94473125 288.233874375 876.3020325 288.233874375ZM876.2488260416667 262.16270979166666Q884.1233818750001 262.16270979166666 890.1357116666668 258.65108354166665Q896.1480414583334 255.13945729166667 899.4734451041668 248.83449197916667Q902.79884875 242.52952666666667 902.79884875 234.442145Q902.79884875 226.35476333333335 899.3670321875001 220.20941739583333Q895.9352156250001 214.06407145833333 890.0292987500001 210.55244520833332Q884.1233818750001 207.04081895833335 876.2488260416667 207.04081895833335Q868.5870960416667 207.04081895833335 862.57476625 210.57904843750003Q856.5624364583334 214.1172779166667 853.2104295833334 220.2626238541667Q849.8584227083334 226.4079697916667 849.8584227083334 234.49535145833335Q849.8584227083334 242.52952666666667 853.2104295833334 248.83449197916667Q856.5624364583334 255.13945729166667 862.57476625 258.65108354166665Q868.5870960416667 262.16270979166666 876.2488260416667 262.16270979166666ZM946.5345575000001 285.999203125V183.20432562500002H974.5211545833333V285.999203125ZM1013.574695 285.999203125V225.343840625Q1013.574695 216.35194916666666 1007.9880168750001 211.35054208333332Q1002.4013387500001 206.34913500000002 994.1543377083333 206.34913500000002Q988.514453125 206.34913500000002 984.0983170833334 208.61040947916666Q979.6821810416668 210.87168395833334 977.1016678125001 215.10159739583332Q974.5211545833333 219.33151083333334 974.5211545833333 225.343840625L963.613830625 220.0231947916667Q963.613830625 208.05174166666666 968.8546667708333 199.37908895833334Q974.0955029166666 190.70643625000002 983.0341879166667 185.89125177083335Q991.9728729166668 181.07606729166667 1003.1462291666667 181.07606729166667Q1013.9471402083334 181.07606729166667 1022.6463961458334 185.86464854166667Q1031.3456520833333 190.65322979166666 1036.4534720833335 199.29927927083332Q1041.5612920833335 207.94532875000002 1041.5612920833335 219.96998833333333V285.999203125ZM1080.6148325000001 285.999203125V225.343840625Q1080.6148325000001 216.35194916666666 1075.0281543750002 211.35054208333332Q1069.44147625 206.34913500000002 1061.1944752083334 206.34913500000002Q1055.71421 206.34913500000002 1051.2182642708335 208.61040947916666Q1046.7223185416667 210.87168395833334 1044.1418053125 215.10159739583332Q1041.5612920833335 219.33151083333334 1041.5612920833335 225.343840625L1025.546148125 221.56618208333333Q1026.344245 209.11587083333336 1032.1171457291666 200.09737614583335Q1037.8900464583335 191.07888145833334 1047.2809863541668 186.077474375Q1056.67192625 181.07606729166667 1068.16452125 181.07606729166667Q1079.6039097916666 181.07606729166667 1088.7288173958332 185.917855Q1097.853725 190.75964270833333 1103.2275772916666 199.64512125Q1108.6014295833334 208.53059979166667 1108.6014295833334 220.98091104166667V285.999203125ZM1171.4914633333333 288.12746145833336Q1157.4449583333333 288.12746145833336 1146.2449988541666 281.10420895833334Q1135.045039375 274.08095645833333 1128.5804546875002 262.0030904166667Q1122.11587 249.925224375 1122.11587 234.76138375Q1122.11587 219.43792375 1128.5804546875002 207.33345447916668Q1135.045039375 195.22898520833334 1146.2449988541666 188.15252625Q1157.4449583333333 181.07606729166667 1171.4914633333333 181.07606729166667Q1182.5584066666668 181.07606729166667 1191.2842658333334 185.59861625000002Q1200.010125 190.12116520833337 1205.3041676041667 198.04892750000002Q1210.5982102083333 205.97668979166667 1210.9706554166667 216.085916875V253.11761187500002Q1210.5982102083333 263.22683895833336 1205.3839772916667 271.15460125000004Q1200.169744375 279.08236354166667 1191.3640755208335 283.6049125Q1182.5584066666668 288.12746145833336 1171.4914633333333 288.12746145833336ZM1176.70569625 262.375535625Q1188.4111170833335 262.375535625 1195.5939889583333 254.58078947916667Q1202.7768608333333 246.78604333333334 1202.7768608333333 234.60176437500002Q1202.7768608333333 226.4079697916667 1199.531266875 220.15621093750002Q1196.2856729166667 213.90445208333335 1190.4329625 210.3662226041667Q1184.5802520833333 206.827993125 1176.7589027083334 206.827993125Q1169.0971727083333 206.827993125 1163.2444622916667 210.3662226041667Q1157.391751875 213.90445208333335 1154.0131417708333 220.18281416666667Q1150.6345316666666 226.46117625 1150.6345316666666 234.60176437500002Q1150.6345316666666 242.7423525 1153.9865385416665 249.02071458333336Q1157.3385454166666 255.29907666666668 1163.2178590624999 258.83730614583334Q1169.0971727083333 262.375535625 1176.70569625 262.375535625ZM1201.3402864583334 285.999203125V258.38505125L1205.8096289583334 233.324809375L1201.3402864583334 208.47739333333334V183.20432562500002H1229.06085125V285.999203125ZM1320.2567208333335 285.999203125V227.09965375000002Q1320.2567208333335 217.89493645833335 1314.5104233333334 212.12203572916667Q1308.7641258333333 206.34913500000002 1299.8113248341838 206.34913500000002Q1293.719185355017 206.34913500000002 1289.0307734066753 208.95625145833333Q1284.3423614583335 211.56336791666666 1281.7086417708333 216.27213947916667Q1279.0749220833334 220.98091104166667 1279.0749220833334 227.09965375000002L1268.167598125 221.45976916666666Q1268.167598125 209.48831604166668 1273.4084342708334 200.41661489583333Q1278.6492704166667 191.34491375000002 1287.890584028659 186.21049052083333Q1297.1318976406515 181.07606729166667 1308.8273253828258 181.07606729166667Q1320.203514375 181.07606729166667 1329.1155961458335 186.715951875Q1338.0276779166668 192.35583645833333 1343.1354979166667 201.45414083333333Q1348.2433179166667 210.55244520833332 1348.2433179166667 220.874498125V285.999203125ZM1251.088325 285.999203125V183.20432562500002H1279.0749220833334V285.999203125Z"/>
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 320" width="1280" height="320" role="img" aria-label="Demoman">
|
|
2
|
+
<title>Demoman</title>
|
|
3
|
+
<svg x="207.2" y="60" width="200" height="200" viewBox="0 0 100 100" aria-hidden="true">
|
|
4
|
+
<rect width="100" height="100" rx="22" fill="#0a0a0a"/>
|
|
5
|
+
<rect x="0.25" y="0.25" width="99.5" height="99.5" rx="21.75" fill="none" stroke="rgba(255,255,255,.16)" stroke-width="0.5"/>
|
|
6
|
+
<g fill="#f4f4f5" transform="translate(-31.979 -21.898) scale(0.267)"><g transform="translate(5.54,56.31) scale(0.96895)"><path d="M 287.20,151.99 L 345.34,125.16 A 16,16 0 0 0 345.34,96.10 L 287.20,69.27 A 16,16 0 0 0 264.50,83.80 L 264.50,137.46 A 16,16 0 0 0 287.20,151.99 Z"/></g><rect x="264" y="224" width="83" height="83" rx="16.5"/><rect x="264" y="326" width="33" height="92.5" rx="16.5"/><rect x="314" y="326" width="33" height="92.5" rx="16.5"/></g>
|
|
7
|
+
</svg>
|
|
8
|
+
<svg x="463.2" y="112" width="609.7" height="96" viewBox="71.8 -703.0 4531.2 713.5" aria-hidden="true">
|
|
9
|
+
<path fill="#f4f4f5" d="M164.5 0V-121.2H344Q412 -121.2 463.1 -149.6Q514.2 -178 542.6 -230.1Q571 -282.2 571 -352.5Q571 -422 542.1 -473.5Q513.2 -525 462.2 -553.4Q411.2 -581.8 344 -581.8H162V-703H346.2Q424.2 -703 490.6 -676.9Q557 -650.8 606.4 -603.4Q655.8 -556 683.1 -492Q710.5 -428 710.5 -351.5Q710.5 -275.8 683.1 -211.4Q655.8 -147 606.8 -99.6Q557.8 -52.2 491.5 -26.1Q425.2 0 348.2 0ZM71.8 0V-703H208V0ZM1020.8 10.5Q945.2 10.5 885.9 -22Q826.5 -54.5 792.2 -111.9Q758 -169.2 758 -241.5Q758 -313.5 791.6 -370.4Q825.2 -427.2 883.1 -460.4Q941 -493.5 1012.2 -493.5Q1081.8 -493.5 1135.1 -462.4Q1188.5 -431.2 1219 -376.8Q1249.5 -322.2 1249.5 -252.5Q1249.5 -239.8 1248 -226.2Q1246.5 -212.8 1243 -196L836.5 -195.2V-292.8L1182 -293.5L1128.5 -253.2Q1127 -296.2 1113.4 -325.1Q1099.8 -354 1074.4 -369.2Q1049 -384.5 1011.8 -384.5Q972.8 -384.5 944 -367.2Q915.2 -350 899.6 -318.6Q884 -287.2 884 -243.5Q884 -199.5 900.6 -167.1Q917.2 -134.8 948 -117.4Q978.8 -100 1020 -100Q1056.5 -100 1086.8 -112.6Q1117 -125.2 1139 -150.2L1216 -72.8Q1180.5 -31.5 1130 -10.5Q1079.5 10.5 1020.8 10.5ZM1315.5 0V-483H1447V0ZM1630.5 0V-285Q1630.5 -327.2 1604.2 -350.8Q1578 -374.2 1539.2 -374.2Q1512.8 -374.2 1492 -363.6Q1471.2 -353 1459.1 -333.1Q1447 -313.2 1447 -285L1395.8 -310Q1395.8 -366.2 1420.4 -407Q1445 -447.8 1487 -470.4Q1529 -493 1581.5 -493Q1632.2 -493 1673.1 -470.5Q1714 -448 1738 -407.4Q1762 -366.8 1762 -310.2V0ZM1945.5 0V-285Q1945.5 -327.2 1919.2 -350.8Q1893 -374.2 1854.2 -374.2Q1828.5 -374.2 1807.4 -363.6Q1786.2 -353 1774.1 -333.1Q1762 -313.2 1762 -285L1686.8 -302.8Q1690.5 -361.2 1717.6 -403.6Q1744.8 -446 1788.9 -469.5Q1833 -493 1887 -493Q1940.8 -493 1983.6 -470.2Q2026.5 -447.5 2051.8 -405.8Q2077 -364 2077 -305.5V0ZM2394.5 10.5Q2321.8 10.5 2263.1 -23Q2204.5 -56.5 2170.2 -114Q2136 -171.5 2136 -242.5Q2136 -313.5 2170.1 -370Q2204.2 -426.5 2262.9 -460Q2321.5 -493.5 2394.2 -493.5Q2467.8 -493.5 2526.2 -460.4Q2584.8 -427.2 2619 -370.4Q2653.2 -313.5 2653.2 -242.5Q2653.2 -171.5 2619.1 -114Q2585 -56.5 2526.5 -23Q2468 10.5 2394.5 10.5ZM2394.2 -112Q2431.2 -112 2459.5 -128.5Q2487.8 -145 2503.4 -174.6Q2519 -204.2 2519 -242.2Q2519 -280.2 2502.9 -309.1Q2486.8 -338 2459 -354.5Q2431.2 -371 2394.2 -371Q2358.2 -371 2330 -354.4Q2301.8 -337.8 2286 -308.9Q2270.2 -280 2270.2 -242Q2270.2 -204.2 2286 -174.6Q2301.8 -145 2330 -128.5Q2358.2 -112 2394.2 -112ZM2721.5 0V-483H2853V0ZM3036.5 0V-285Q3036.5 -327.2 3010.2 -350.8Q2984 -374.2 2945.2 -374.2Q2918.8 -374.2 2898 -363.6Q2877.2 -353 2865.1 -333.1Q2853 -313.2 2853 -285L2801.8 -310Q2801.8 -366.2 2826.4 -407Q2851 -447.8 2893 -470.4Q2935 -493 2987.5 -493Q3038.2 -493 3079.1 -470.5Q3120 -448 3144 -407.4Q3168 -366.8 3168 -310.2V0ZM3351.5 0V-285Q3351.5 -327.2 3325.2 -350.8Q3299 -374.2 3260.2 -374.2Q3234.5 -374.2 3213.4 -363.6Q3192.2 -353 3180.1 -333.1Q3168 -313.2 3168 -285L3092.8 -302.8Q3096.5 -361.2 3123.6 -403.6Q3150.8 -446 3194.9 -469.5Q3239 -493 3293 -493Q3346.8 -493 3389.6 -470.2Q3432.5 -447.5 3457.8 -405.8Q3483 -364 3483 -305.5V0ZM3775.5 10Q3709.5 10 3656.9 -23Q3604.2 -56 3573.9 -112.8Q3543.5 -169.5 3543.5 -240.8Q3543.5 -312.8 3573.9 -369.6Q3604.2 -426.5 3656.9 -459.8Q3709.5 -493 3775.5 -493Q3827.5 -493 3868.5 -471.8Q3909.5 -450.5 3934.4 -413.2Q3959.2 -376 3961 -328.5V-154.5Q3959.2 -107 3934.8 -69.8Q3910.2 -32.5 3868.9 -11.2Q3827.5 10 3775.5 10ZM3800 -111Q3855 -111 3888.8 -147.6Q3922.5 -184.2 3922.5 -241.5Q3922.5 -280 3907.2 -309.4Q3892 -338.8 3864.5 -355.4Q3837 -372 3800.2 -372Q3764.2 -372 3736.8 -355.4Q3709.2 -338.8 3693.4 -309.2Q3677.5 -279.8 3677.5 -241.5Q3677.5 -203.2 3693.2 -173.8Q3709 -144.2 3736.6 -127.6Q3764.2 -111 3800 -111ZM3915.8 0V-129.8L3936.8 -247.5L3915.8 -364.2V-483H4046V0ZM4471.5 0V-276.8Q4471.5 -320 4444.5 -347.1Q4417.5 -374.2 4375.4 -374.2Q4346.8 -374.2 4324.8 -362Q4302.8 -349.8 4290.4 -327.6Q4278 -305.5 4278 -276.8L4226.8 -303.2Q4226.8 -359.5 4251.4 -402.1Q4276 -444.8 4319.4 -468.9Q4362.8 -493 4417.8 -493Q4471.2 -493 4513.1 -466.5Q4555 -440 4579 -397.2Q4603 -354.5 4603 -306V0ZM4146.5 0V-483H4278V0Z"/>
|
|
10
|
+
</svg>
|
|
14
11
|
</svg>
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0
|
|
2
|
-
<title>
|
|
3
|
-
<
|
|
4
|
-
<
|
|
5
|
-
<
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
</g>
|
|
12
|
-
<!-- wordmark: "demoman", Outfit SemiBold (600), tracking -1.2%, outlined -->
|
|
13
|
-
<path fill="#111111" d="M454.26840500000003 288.12746145833336Q440.0090741666667 288.12746145833336 428.7376287097393 281.1084094682018Q417.4661832528119 274.08935747807016 410.96667162640597 262.00729092653506Q404.46716000000004 249.925224375 404.46716000000004 234.7276430691057Q404.46716000000004 219.36525151422768 410.95834791666675 207.29711836128052Q417.4495358333334 195.22898520833334 428.6986089663462 188.15252625Q439.94768209935904 181.07606729166667 454.26840500000003 181.07606729166667Q465.3885547916667 181.07606729166667 474.2474301041667 185.59861625000002Q483.1063054166667 190.12116520833337 488.5599673958334 198.04892750000002Q494.01362937500005 205.97668979166667 494.3860745833334 216.085916875V252.58554729166667Q494.01362937500005 262.694774375 488.6397770833334 270.7555528125Q483.26592479166675 278.81633125 474.3272397916667 283.4718963541667Q465.3885547916667 288.12746145833336 454.26840500000003 288.12746145833336ZM459.0569862500001 262.375535625Q466.9315420833334 262.375535625 472.7394573567709 258.8376632361577Q478.54737263020843 255.29979084731545 481.8377617317709 249.04767490282438Q485.1281508333334 242.79555895833334 485.1281508333334 234.60176437500002Q485.1281508333334 226.3462302220912 481.84901367300733 220.14039958431604Q478.5698765126812 213.93456894654088 472.75070929800734 210.38128103577043Q466.9315420833334 206.827993125 459.1900023958334 206.827993125Q451.4484627083334 206.827993125 445.6081171728287 210.3953474664297Q439.767771637324 213.9627018078594 436.3767966519954 220.21988217318324Q432.9858216666667 226.4770625385071 432.9858216666667 234.60176437500002Q432.9858216666667 242.7423525 436.32485455305834 249.01432980833334Q439.66388743945 255.28630711666668 445.593917586207 258.8309213708333Q451.52394773296396 262.375535625 459.0569862500001 262.375535625ZM511.41214125000005 285.999203125H483.6915764583334V258.38505125L488.1609189583334 233.324809375L483.4255441666667 208.47739333333334V132.12612562500001H511.41214125000005ZM582.6555889583334 288.233874375Q566.5872385416667 288.233874375 553.9507046875001 281.3170347916667Q541.3141708333334 274.40019520833334 534.0248860416667 262.1893130208333Q526.7356012500001 249.97843083333333 526.7356012500001 234.60176437500002Q526.7356012500001 219.278304375 533.8918698958335 207.17383510416667Q541.0481385416667 195.06936583333334 553.3654336458334 188.01951010416667Q565.68272875 180.969654375 580.8465693750001 180.969654375Q595.6379647916667 180.969654375 606.9975436458334 187.59385843750002Q618.3571225000001 194.21806250000003 624.8483104166667 205.8170704166667Q631.3394983333334 217.41607833333336 631.3394983333334 232.26068020833333Q631.3394983333334 234.97420958333333 631.0202595833334 237.84735833333335Q630.7010208333334 240.72050708333336 629.9561304166667 244.28533979166667L543.4424291666667 244.44495916666668V223.69444041666668L616.9737545833334 223.53482104166667L605.5875725000001 232.10106083333335Q605.26833375 222.94955000000002 602.3685817708333 216.8042040625Q599.4688297916667 210.658858125 594.0683742708334 207.41326416666666Q588.6679187500001 204.16767020833333 580.7401564583333 204.16767020833333Q572.4399489583334 204.16767020833333 566.32120625 207.83891583333335Q560.2024635416667 211.51016145833336 556.8770598958333 218.18757197916668Q553.5516562500001 224.8649825 553.5516562500001 234.17611270833333Q553.5516562500001 243.540449375 557.0898857291668 250.43068572916667Q560.6281152083334 257.32092208333336 567.1725095833334 261.0187709375Q573.7169039583334 264.7166197916667 582.4959695833334 264.7166197916667Q590.2641125 264.7166197916667 596.7020939583333 262.0296936458334Q603.1400754166667 259.34276750000004 607.8222437500001 254.0221216666667L624.2098329166668 270.51612375Q616.6545158333333 279.295189375 605.90681125 283.764531875Q595.1591066666667 288.233874375 582.6555889583334 288.233874375ZM646.0244808333334 285.999203125V183.20432562500002H674.0110779166666V285.999203125ZM713.0646183333333 285.999203125V225.343840625Q713.0646183333333 216.35194916666666 707.4779402083334 211.35054208333332Q701.8912620833335 206.34913500000002 693.6442610416667 206.34913500000002Q688.0043764583334 206.34913500000002 683.5882404166667 208.61040947916666Q679.1721043750001 210.87168395833334 676.5915911458334 215.10159739583332Q674.0110779166666 219.33151083333334 674.0110779166666 225.343840625L663.1037539583334 220.0231947916667Q663.1037539583334 208.05174166666666 668.3445901041667 199.37908895833334Q673.5854262500001 190.70643625000002 682.52411125 185.89125177083335Q691.4627962500001 181.07606729166667 702.6361525 181.07606729166667Q713.4370635416667 181.07606729166667 722.1363194791667 185.86464854166667Q730.8355754166666 190.65322979166666 735.9433954166667 199.29927927083332Q741.0512154166668 207.94532875000002 741.0512154166668 219.96998833333333V285.999203125ZM780.1047558333335 285.999203125V225.343840625Q780.1047558333335 216.35194916666666 774.5180777083334 211.35054208333332Q768.9313995833334 206.34913500000002 760.6843985416667 206.34913500000002Q755.2041333333334 206.34913500000002 750.7081876041667 208.61040947916666Q746.212241875 210.87168395833334 743.6317286458334 215.10159739583332Q741.0512154166668 219.33151083333334 741.0512154166668 225.343840625L725.0360714583334 221.56618208333333Q725.8341683333333 209.11587083333336 731.6070690625 200.09737614583335Q737.3799697916668 191.07888145833334 746.7709096875001 186.077474375Q756.1618495833334 181.07606729166667 767.6544445833333 181.07606729166667Q779.0938331250001 181.07606729166667 788.2187407291667 185.917855Q797.3436483333334 190.75964270833333 802.717500625 199.64512125Q808.0913529166667 208.53059979166667 808.0913529166667 220.98091104166667V285.999203125ZM876.3020325 288.233874375Q860.818953125 288.233874375 848.3420386458333 281.10420895833334Q835.8651241666666 273.97454354166666 828.575839375 261.737058125Q821.2865545833333 249.49957270833335 821.2865545833333 234.38893854166668Q821.2865545833333 219.278304375 828.5492361458333 207.25364479166666Q835.8119177083333 195.22898520833334 848.2888321875 188.0993197916667Q860.7657466666667 180.969654375 876.2488260416667 180.969654375Q891.8915247916667 180.969654375 904.3418360416667 188.01951010416667Q916.7921472916667 195.06936583333334 924.0814320833333 207.17383510416667Q931.370716875 219.278304375 931.370716875 234.38893854166668Q931.370716875 249.49957270833335 924.1080353125 261.737058125Q916.84535375 273.97454354166666 904.3950425 281.10420895833334Q891.94473125 288.233874375 876.3020325 288.233874375ZM876.2488260416667 262.16270979166666Q884.1233818750001 262.16270979166666 890.1357116666668 258.65108354166665Q896.1480414583334 255.13945729166667 899.4734451041668 248.83449197916667Q902.79884875 242.52952666666667 902.79884875 234.442145Q902.79884875 226.35476333333335 899.3670321875001 220.20941739583333Q895.9352156250001 214.06407145833333 890.0292987500001 210.55244520833332Q884.1233818750001 207.04081895833335 876.2488260416667 207.04081895833335Q868.5870960416667 207.04081895833335 862.57476625 210.57904843750003Q856.5624364583334 214.1172779166667 853.2104295833334 220.2626238541667Q849.8584227083334 226.4079697916667 849.8584227083334 234.49535145833335Q849.8584227083334 242.52952666666667 853.2104295833334 248.83449197916667Q856.5624364583334 255.13945729166667 862.57476625 258.65108354166665Q868.5870960416667 262.16270979166666 876.2488260416667 262.16270979166666ZM946.5345575000001 285.999203125V183.20432562500002H974.5211545833333V285.999203125ZM1013.574695 285.999203125V225.343840625Q1013.574695 216.35194916666666 1007.9880168750001 211.35054208333332Q1002.4013387500001 206.34913500000002 994.1543377083333 206.34913500000002Q988.514453125 206.34913500000002 984.0983170833334 208.61040947916666Q979.6821810416668 210.87168395833334 977.1016678125001 215.10159739583332Q974.5211545833333 219.33151083333334 974.5211545833333 225.343840625L963.613830625 220.0231947916667Q963.613830625 208.05174166666666 968.8546667708333 199.37908895833334Q974.0955029166666 190.70643625000002 983.0341879166667 185.89125177083335Q991.9728729166668 181.07606729166667 1003.1462291666667 181.07606729166667Q1013.9471402083334 181.07606729166667 1022.6463961458334 185.86464854166667Q1031.3456520833333 190.65322979166666 1036.4534720833335 199.29927927083332Q1041.5612920833335 207.94532875000002 1041.5612920833335 219.96998833333333V285.999203125ZM1080.6148325000001 285.999203125V225.343840625Q1080.6148325000001 216.35194916666666 1075.0281543750002 211.35054208333332Q1069.44147625 206.34913500000002 1061.1944752083334 206.34913500000002Q1055.71421 206.34913500000002 1051.2182642708335 208.61040947916666Q1046.7223185416667 210.87168395833334 1044.1418053125 215.10159739583332Q1041.5612920833335 219.33151083333334 1041.5612920833335 225.343840625L1025.546148125 221.56618208333333Q1026.344245 209.11587083333336 1032.1171457291666 200.09737614583335Q1037.8900464583335 191.07888145833334 1047.2809863541668 186.077474375Q1056.67192625 181.07606729166667 1068.16452125 181.07606729166667Q1079.6039097916666 181.07606729166667 1088.7288173958332 185.917855Q1097.853725 190.75964270833333 1103.2275772916666 199.64512125Q1108.6014295833334 208.53059979166667 1108.6014295833334 220.98091104166667V285.999203125ZM1171.4914633333333 288.12746145833336Q1157.4449583333333 288.12746145833336 1146.2449988541666 281.10420895833334Q1135.045039375 274.08095645833333 1128.5804546875002 262.0030904166667Q1122.11587 249.925224375 1122.11587 234.76138375Q1122.11587 219.43792375 1128.5804546875002 207.33345447916668Q1135.045039375 195.22898520833334 1146.2449988541666 188.15252625Q1157.4449583333333 181.07606729166667 1171.4914633333333 181.07606729166667Q1182.5584066666668 181.07606729166667 1191.2842658333334 185.59861625000002Q1200.010125 190.12116520833337 1205.3041676041667 198.04892750000002Q1210.5982102083333 205.97668979166667 1210.9706554166667 216.085916875V253.11761187500002Q1210.5982102083333 263.22683895833336 1205.3839772916667 271.15460125000004Q1200.169744375 279.08236354166667 1191.3640755208335 283.6049125Q1182.5584066666668 288.12746145833336 1171.4914633333333 288.12746145833336ZM1176.70569625 262.375535625Q1188.4111170833335 262.375535625 1195.5939889583333 254.58078947916667Q1202.7768608333333 246.78604333333334 1202.7768608333333 234.60176437500002Q1202.7768608333333 226.4079697916667 1199.531266875 220.15621093750002Q1196.2856729166667 213.90445208333335 1190.4329625 210.3662226041667Q1184.5802520833333 206.827993125 1176.7589027083334 206.827993125Q1169.0971727083333 206.827993125 1163.2444622916667 210.3662226041667Q1157.391751875 213.90445208333335 1154.0131417708333 220.18281416666667Q1150.6345316666666 226.46117625 1150.6345316666666 234.60176437500002Q1150.6345316666666 242.7423525 1153.9865385416665 249.02071458333336Q1157.3385454166666 255.29907666666668 1163.2178590624999 258.83730614583334Q1169.0971727083333 262.375535625 1176.70569625 262.375535625ZM1201.3402864583334 285.999203125V258.38505125L1205.8096289583334 233.324809375L1201.3402864583334 208.47739333333334V183.20432562500002H1229.06085125V285.999203125ZM1320.2567208333335 285.999203125V227.09965375000002Q1320.2567208333335 217.89493645833335 1314.5104233333334 212.12203572916667Q1308.7641258333333 206.34913500000002 1299.8113248341838 206.34913500000002Q1293.719185355017 206.34913500000002 1289.0307734066753 208.95625145833333Q1284.3423614583335 211.56336791666666 1281.7086417708333 216.27213947916667Q1279.0749220833334 220.98091104166667 1279.0749220833334 227.09965375000002L1268.167598125 221.45976916666666Q1268.167598125 209.48831604166668 1273.4084342708334 200.41661489583333Q1278.6492704166667 191.34491375000002 1287.890584028659 186.21049052083333Q1297.1318976406515 181.07606729166667 1308.8273253828258 181.07606729166667Q1320.203514375 181.07606729166667 1329.1155961458335 186.715951875Q1338.0276779166668 192.35583645833333 1343.1354979166667 201.45414083333333Q1348.2433179166667 210.55244520833332 1348.2433179166667 220.874498125V285.999203125ZM1251.088325 285.999203125V183.20432562500002H1279.0749220833334V285.999203125Z"/>
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 320" width="1280" height="320" role="img" aria-label="Demoman">
|
|
2
|
+
<title>Demoman</title>
|
|
3
|
+
<svg x="207.2" y="60" width="200" height="200" viewBox="0 0 100 100" aria-hidden="true">
|
|
4
|
+
<rect width="100" height="100" rx="22" fill="#0a0a0a"/>
|
|
5
|
+
<rect x="0.25" y="0.25" width="99.5" height="99.5" rx="21.75" fill="none" stroke="rgba(255,255,255,.16)" stroke-width="0.5"/>
|
|
6
|
+
<g fill="#f4f4f5" transform="translate(-31.979 -21.898) scale(0.267)"><g transform="translate(5.54,56.31) scale(0.96895)"><path d="M 287.20,151.99 L 345.34,125.16 A 16,16 0 0 0 345.34,96.10 L 287.20,69.27 A 16,16 0 0 0 264.50,83.80 L 264.50,137.46 A 16,16 0 0 0 287.20,151.99 Z"/></g><rect x="264" y="224" width="83" height="83" rx="16.5"/><rect x="264" y="326" width="33" height="92.5" rx="16.5"/><rect x="314" y="326" width="33" height="92.5" rx="16.5"/></g>
|
|
7
|
+
</svg>
|
|
8
|
+
<svg x="463.2" y="112" width="609.7" height="96" viewBox="71.8 -703.0 4531.2 713.5" aria-hidden="true">
|
|
9
|
+
<path fill="#0a0a0a" d="M164.5 0V-121.2H344Q412 -121.2 463.1 -149.6Q514.2 -178 542.6 -230.1Q571 -282.2 571 -352.5Q571 -422 542.1 -473.5Q513.2 -525 462.2 -553.4Q411.2 -581.8 344 -581.8H162V-703H346.2Q424.2 -703 490.6 -676.9Q557 -650.8 606.4 -603.4Q655.8 -556 683.1 -492Q710.5 -428 710.5 -351.5Q710.5 -275.8 683.1 -211.4Q655.8 -147 606.8 -99.6Q557.8 -52.2 491.5 -26.1Q425.2 0 348.2 0ZM71.8 0V-703H208V0ZM1020.8 10.5Q945.2 10.5 885.9 -22Q826.5 -54.5 792.2 -111.9Q758 -169.2 758 -241.5Q758 -313.5 791.6 -370.4Q825.2 -427.2 883.1 -460.4Q941 -493.5 1012.2 -493.5Q1081.8 -493.5 1135.1 -462.4Q1188.5 -431.2 1219 -376.8Q1249.5 -322.2 1249.5 -252.5Q1249.5 -239.8 1248 -226.2Q1246.5 -212.8 1243 -196L836.5 -195.2V-292.8L1182 -293.5L1128.5 -253.2Q1127 -296.2 1113.4 -325.1Q1099.8 -354 1074.4 -369.2Q1049 -384.5 1011.8 -384.5Q972.8 -384.5 944 -367.2Q915.2 -350 899.6 -318.6Q884 -287.2 884 -243.5Q884 -199.5 900.6 -167.1Q917.2 -134.8 948 -117.4Q978.8 -100 1020 -100Q1056.5 -100 1086.8 -112.6Q1117 -125.2 1139 -150.2L1216 -72.8Q1180.5 -31.5 1130 -10.5Q1079.5 10.5 1020.8 10.5ZM1315.5 0V-483H1447V0ZM1630.5 0V-285Q1630.5 -327.2 1604.2 -350.8Q1578 -374.2 1539.2 -374.2Q1512.8 -374.2 1492 -363.6Q1471.2 -353 1459.1 -333.1Q1447 -313.2 1447 -285L1395.8 -310Q1395.8 -366.2 1420.4 -407Q1445 -447.8 1487 -470.4Q1529 -493 1581.5 -493Q1632.2 -493 1673.1 -470.5Q1714 -448 1738 -407.4Q1762 -366.8 1762 -310.2V0ZM1945.5 0V-285Q1945.5 -327.2 1919.2 -350.8Q1893 -374.2 1854.2 -374.2Q1828.5 -374.2 1807.4 -363.6Q1786.2 -353 1774.1 -333.1Q1762 -313.2 1762 -285L1686.8 -302.8Q1690.5 -361.2 1717.6 -403.6Q1744.8 -446 1788.9 -469.5Q1833 -493 1887 -493Q1940.8 -493 1983.6 -470.2Q2026.5 -447.5 2051.8 -405.8Q2077 -364 2077 -305.5V0ZM2394.5 10.5Q2321.8 10.5 2263.1 -23Q2204.5 -56.5 2170.2 -114Q2136 -171.5 2136 -242.5Q2136 -313.5 2170.1 -370Q2204.2 -426.5 2262.9 -460Q2321.5 -493.5 2394.2 -493.5Q2467.8 -493.5 2526.2 -460.4Q2584.8 -427.2 2619 -370.4Q2653.2 -313.5 2653.2 -242.5Q2653.2 -171.5 2619.1 -114Q2585 -56.5 2526.5 -23Q2468 10.5 2394.5 10.5ZM2394.2 -112Q2431.2 -112 2459.5 -128.5Q2487.8 -145 2503.4 -174.6Q2519 -204.2 2519 -242.2Q2519 -280.2 2502.9 -309.1Q2486.8 -338 2459 -354.5Q2431.2 -371 2394.2 -371Q2358.2 -371 2330 -354.4Q2301.8 -337.8 2286 -308.9Q2270.2 -280 2270.2 -242Q2270.2 -204.2 2286 -174.6Q2301.8 -145 2330 -128.5Q2358.2 -112 2394.2 -112ZM2721.5 0V-483H2853V0ZM3036.5 0V-285Q3036.5 -327.2 3010.2 -350.8Q2984 -374.2 2945.2 -374.2Q2918.8 -374.2 2898 -363.6Q2877.2 -353 2865.1 -333.1Q2853 -313.2 2853 -285L2801.8 -310Q2801.8 -366.2 2826.4 -407Q2851 -447.8 2893 -470.4Q2935 -493 2987.5 -493Q3038.2 -493 3079.1 -470.5Q3120 -448 3144 -407.4Q3168 -366.8 3168 -310.2V0ZM3351.5 0V-285Q3351.5 -327.2 3325.2 -350.8Q3299 -374.2 3260.2 -374.2Q3234.5 -374.2 3213.4 -363.6Q3192.2 -353 3180.1 -333.1Q3168 -313.2 3168 -285L3092.8 -302.8Q3096.5 -361.2 3123.6 -403.6Q3150.8 -446 3194.9 -469.5Q3239 -493 3293 -493Q3346.8 -493 3389.6 -470.2Q3432.5 -447.5 3457.8 -405.8Q3483 -364 3483 -305.5V0ZM3775.5 10Q3709.5 10 3656.9 -23Q3604.2 -56 3573.9 -112.8Q3543.5 -169.5 3543.5 -240.8Q3543.5 -312.8 3573.9 -369.6Q3604.2 -426.5 3656.9 -459.8Q3709.5 -493 3775.5 -493Q3827.5 -493 3868.5 -471.8Q3909.5 -450.5 3934.4 -413.2Q3959.2 -376 3961 -328.5V-154.5Q3959.2 -107 3934.8 -69.8Q3910.2 -32.5 3868.9 -11.2Q3827.5 10 3775.5 10ZM3800 -111Q3855 -111 3888.8 -147.6Q3922.5 -184.2 3922.5 -241.5Q3922.5 -280 3907.2 -309.4Q3892 -338.8 3864.5 -355.4Q3837 -372 3800.2 -372Q3764.2 -372 3736.8 -355.4Q3709.2 -338.8 3693.4 -309.2Q3677.5 -279.8 3677.5 -241.5Q3677.5 -203.2 3693.2 -173.8Q3709 -144.2 3736.6 -127.6Q3764.2 -111 3800 -111ZM3915.8 0V-129.8L3936.8 -247.5L3915.8 -364.2V-483H4046V0ZM4471.5 0V-276.8Q4471.5 -320 4444.5 -347.1Q4417.5 -374.2 4375.4 -374.2Q4346.8 -374.2 4324.8 -362Q4302.8 -349.8 4290.4 -327.6Q4278 -305.5 4278 -276.8L4226.8 -303.2Q4226.8 -359.5 4251.4 -402.1Q4276 -444.8 4319.4 -468.9Q4362.8 -493 4417.8 -493Q4471.2 -493 4513.1 -466.5Q4555 -440 4579 -397.2Q4603 -354.5 4603 -306V0ZM4146.5 0V-483H4278V0Z"/>
|
|
10
|
+
</svg>
|
|
14
11
|
</svg>
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="157.0 119.3 299.2 299.2" width="300" height="300">
|
|
2
2
|
<title>Demoman</title>
|
|
3
|
-
<
|
|
4
|
-
<g fill="#000000">
|
|
5
|
-
<g transform="translate(5.54,56.31) scale(0.96895)"><path d="M 287.20,151.99 L 345.34,125.16 A 16.00,16.00 0 0 0 345.34,96.10 L 287.20,69.27 A 16.00,16.00 0 0 0 264.50,83.80 L 264.50,137.46 A 16.00,16.00 0 0 0 287.20,151.99 Z"/></g>
|
|
6
|
-
<rect x="264" y="224" width="83" height="83" rx="16.5"/>
|
|
7
|
-
<rect x="264" y="326" width="33" height="92.5" rx="16.5"/>
|
|
8
|
-
<rect x="314" y="326" width="33" height="92.5" rx="16.5"/>
|
|
9
|
-
</g>
|
|
3
|
+
<g fill="currentColor"><g transform="translate(5.54,56.31) scale(0.96895)"><path d="M 287.20,151.99 L 345.34,125.16 A 16,16 0 0 0 345.34,96.10 L 287.20,69.27 A 16,16 0 0 0 264.50,83.80 L 264.50,137.46 A 16,16 0 0 0 287.20,151.99 Z"/></g><rect x="264" y="224" width="83" height="83" rx="16.5"/><rect x="264" y="326" width="33" height="92.5" rx="16.5"/><rect x="314" y="326" width="33" height="92.5" rx="16.5"/></g>
|
|
10
4
|
</svg>
|
package/dist/studio/library.html
CHANGED
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
— is shared with the popup. Only this page's own rules are inline
|
|
9
9
|
below. -->
|
|
10
10
|
<link rel="stylesheet" href="/assets/library-inline-2187206c.css">
|
|
11
|
-
<script type="module" crossorigin src="/assets/library-
|
|
12
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
11
|
+
<script type="module" crossorigin src="/assets/library-CQtDqEvE.js"></script>
|
|
12
|
+
<link rel="modulepreload" crossorigin href="/assets/confirm-dialog-CN_GqXY_.js">
|
|
13
13
|
<link rel="modulepreload" crossorigin href="/assets/state-COWbBf84.js">
|
|
14
|
-
<link rel="modulepreload" crossorigin href="/assets/topbar-
|
|
15
|
-
<link rel="stylesheet" crossorigin href="/assets/
|
|
14
|
+
<link rel="modulepreload" crossorigin href="/assets/topbar-sSUyITjl.js">
|
|
15
|
+
<link rel="stylesheet" crossorigin href="/assets/confirm-dialog-Dd_hs1Bv.css">
|
|
16
16
|
</head>
|
|
17
17
|
<body>
|
|
18
18
|
<header class="topbar">
|
|
@@ -37,15 +37,10 @@
|
|
|
37
37
|
<a href="settings.html" data-tab="settings" title="Settings"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"/><circle cx="12" cy="12" r="3"/></svg><span class="tab-label">Settings</span></a>
|
|
38
38
|
</nav>
|
|
39
39
|
</div>
|
|
40
|
-
<!-- The theme toggle and the account menu, mounted by
|
|
41
|
-
src/shell/topbar.ts; the account slot stays empty in a build
|
|
42
|
-
that cannot share. -->
|
|
43
40
|
<div class="topbar-group topbar-actions">
|
|
44
41
|
<!-- The storage trigger and its panel, put here by
|
|
45
42
|
src/library/view.ts. -->
|
|
46
43
|
<div class="topbar-storage" data-storage-slot></div>
|
|
47
|
-
<div class="topbar-theme" data-theme-slot></div>
|
|
48
|
-
<div class="topbar-account" data-account-slot></div>
|
|
49
44
|
</div>
|
|
50
45
|
</div>
|
|
51
46
|
</header>
|
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
<!-- The shell — tokens, faces, the top bar and tabs, cards,
|
|
8
8
|
buttons, switches, notices — is shared with the popup and the
|
|
9
9
|
Recordings page. Only this page's own rules are inline below. -->
|
|
10
|
-
<link rel="stylesheet" href="/assets/settings-inline-
|
|
11
|
-
<script type="module" crossorigin src="/assets/settings-
|
|
12
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
13
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
14
|
-
<link rel="modulepreload" crossorigin href="/assets/topbar-
|
|
15
|
-
<link rel="stylesheet" crossorigin href="/assets/
|
|
10
|
+
<link rel="stylesheet" href="/assets/settings-inline-ff6d2eee.css">
|
|
11
|
+
<script type="module" crossorigin src="/assets/settings-C4OPkolR.js"></script>
|
|
12
|
+
<link rel="modulepreload" crossorigin href="/assets/confirm-dialog-CN_GqXY_.js">
|
|
13
|
+
<link rel="modulepreload" crossorigin href="/assets/view-DsZQo9AJ.js">
|
|
14
|
+
<link rel="modulepreload" crossorigin href="/assets/topbar-sSUyITjl.js">
|
|
15
|
+
<link rel="stylesheet" crossorigin href="/assets/confirm-dialog-Dd_hs1Bv.css">
|
|
16
16
|
</head>
|
|
17
17
|
<body>
|
|
18
18
|
<header class="topbar">
|
|
@@ -37,12 +37,7 @@
|
|
|
37
37
|
<a href="settings.html" data-tab="settings" aria-current="page" title="Settings"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"/><circle cx="12" cy="12" r="3"/></svg><span class="tab-label">Settings</span></a>
|
|
38
38
|
</nav>
|
|
39
39
|
</div>
|
|
40
|
-
<!-- The theme toggle and the account menu, mounted by
|
|
41
|
-
src/shell/topbar.ts; the account slot stays empty in a build
|
|
42
|
-
that cannot share. -->
|
|
43
40
|
<div class="topbar-group topbar-actions">
|
|
44
|
-
<div class="topbar-theme" data-theme-slot></div>
|
|
45
|
-
<div class="topbar-account" data-account-slot></div>
|
|
46
41
|
</div>
|
|
47
42
|
</div>
|
|
48
43
|
</header>
|