@hamsterbase/evidra 0.6.0 → 0.6.1

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.
Files changed (30) hide show
  1. package/dist/web/assets/{cssMode-BQHpX9hf.js → cssMode-Bp9HHvW7.js} +1 -1
  2. package/dist/web/assets/editor-B8GMDV7_.css +1 -0
  3. package/dist/web/assets/editor.api-BZNIEFbB.js +908 -0
  4. package/dist/web/assets/{freemarker2-C69zfyrS.js → freemarker2-BfnklRK3.js} +1 -1
  5. package/dist/web/assets/{handlebars-Bw1zaGO-.js → handlebars-Dr05HF5Z.js} +1 -1
  6. package/dist/web/assets/{html-fMjDlgec.js → html-Ct1uYOSC.js} +1 -1
  7. package/dist/web/assets/{htmlMode-DeWQtbEo.js → htmlMode-Bn39zG3X.js} +1 -1
  8. package/dist/web/assets/{index-Dn6cBPut.js → index-B148ctmz.js} +2 -2
  9. package/dist/web/assets/{javascript-DGw6XfQa.js → javascript-G8E6TtRr.js} +1 -1
  10. package/dist/web/assets/{jsonMode-DWLxiN48.js → jsonMode-DsjA0P9q.js} +1 -1
  11. package/dist/web/assets/{liquid-mVy7oRfH.js → liquid-C0Qe68hn.js} +1 -1
  12. package/dist/web/assets/{lspLanguageFeatures-DHZ5ydHq.js → lspLanguageFeatures-D2cfzE9E.js} +1 -1
  13. package/dist/web/assets/{main-iME7bfou.js → main-BH8yzSnW.js} +4 -4
  14. package/dist/web/assets/{main-ELN7vuxW.js → main-BRAOizZ3.js} +4 -4
  15. package/dist/web/assets/main-Begg-8Nh.css +1 -0
  16. package/dist/web/assets/{mdx-B4GGuoLa.js → mdx-BrShTA3M.js} +1 -1
  17. package/dist/web/assets/monaco-CuSMZpTT.js +58 -0
  18. package/dist/web/assets/{python-CEoHsiCM.js → python-BkqIHyNQ.js} +1 -1
  19. package/dist/web/assets/{razor-BOuSd6jI.js → razor-DtX8gikg.js} +1 -1
  20. package/dist/web/assets/{tsMode-B_TRe0Su.js → tsMode-Bx3w4Bb_.js} +1 -1
  21. package/dist/web/assets/{typescript-CZE3GYFR.js → typescript-DuX3E9Jz.js} +1 -1
  22. package/dist/web/assets/{workers-wfsBwNFd.js → workers-Dj20YQoo.js} +1 -1
  23. package/dist/web/assets/{xml-BlMZHhHB.js → xml-CIaN_PJ3.js} +1 -1
  24. package/dist/web/assets/{yaml-B8E4SMPe.js → yaml-BqFbaewv.js} +1 -1
  25. package/dist/web/index.html +1 -1
  26. package/package.json +1 -1
  27. package/dist/web/assets/editor-DjpsE8to.css +0 -1
  28. package/dist/web/assets/editor.api-aTVJPcBz.js +0 -908
  29. package/dist/web/assets/main-DNImWnRE.css +0 -1
  30. package/dist/web/assets/monaco-Dgn-_pxJ.js +0 -58
@@ -1,11 +1,11 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/monaco-Dgn-_pxJ.js","assets/useDisplayPreference-DTZ1jElj.js","assets/index-Dn6cBPut.js","assets/editor.api-aTVJPcBz.js","assets/editor-DjpsE8to.css","assets/monaco-n7clI0si.css"])))=>i.map(i=>d[i]);
2
- import{$ as e,$t as t,A as n,At as r,B as i,C as a,Ct as o,D as s,Dt as c,E as l,Et as u,F as d,Ft as f,G as p,Gt as m,H as h,Ht as g,I as _,It as v,J as y,K as b,Kt as x,L as S,Lt as C,M as w,Mt as T,N as E,Nt as D,O,Ot as k,P as A,Pt as j,Q as M,Qt as N,R as P,Rt as F,S as ee,St as I,T as te,Tt as ne,U as re,Ut as ie,V as ae,W as oe,X as se,Xt as ce,Y as le,Yt as ue,Z as L,Zt as de,_ as fe,_t as pe,a as me,at as he,b as ge,bt as R,c as _e,ct as ve,d as ye,dt as be,en as xe,et as Se,f as Ce,ft as we,g as Te,gt as Ee,h as De,ht as Oe,i as ke,it as Ae,j as je,jt as Me,k as z,kt as Ne,l as Pe,lt as Fe,m as Ie,mt as Le,n as Re,nt as ze,o as Be,ot as Ve,p as He,pt as Ue,q as We,qt as Ge,r as Ke,rt as qe,s as Je,st as Ye,t as Xe,tt as Ze,u as Qe,ut as $e,v as et,vt as tt,w as nt,wt as rt,x as it,xt as at,y as ot,yt as st,z as ct,zt as lt}from"./useDisplayPreference-DTZ1jElj.js";import{t as ut}from"./index-Dn6cBPut.js";var dt;if(be.vscode!==void 0&&be.vscode.process!==void 0){let e=be.vscode.process;dt={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd(){return e.cwd()}}}else dt=typeof process<`u`?{get platform(){return process.platform},get arch(){return process.arch},get env(){return{}},cwd(){return{}.VSCODE_CWD||process.cwd()}}:{get platform(){return st?`win32`:Ee?`darwin`:`linux`},get arch(){},get env(){return{}},cwd(){return`/`}};var ft=dt.cwd,pt=dt.env,mt=dt.platform;dt.arch;var ht=65,gt=97,_t=90,vt=122,yt=46,bt=47,xt=92,St=58,Ct=63,wt=class extends Error{code;constructor(e,t,n){let r;typeof t==`string`&&t.indexOf(`not `)===0?(r=`must not be`,t=t.replace(/^not /,``)):r=`must be`;let i=`The "${e}" ${e.indexOf(`.`)===-1?`argument`:`property`} ${r} of type ${t}`;i+=`. Received type ${typeof n}`,super(i),this.code=`ERR_INVALID_ARG_TYPE`}};function Tt(e,t){if(typeof e!=`object`||!e)throw new wt(t,`Object`,e)}function B(e,t){if(typeof e!=`string`)throw new wt(t,`string`,e)}var Et=mt===`win32`;function V(e){return e===bt||e===xt}function Dt(e){return e===bt}function Ot(e){return e>=ht&&e<=_t||e>=gt&&e<=vt}function kt(e,t,n,r){let i=``,a=0,o=-1,s=0,c=0;for(let l=0;l<=e.length;++l){if(l<e.length)c=e.charCodeAt(l);else if(r(c))break;else c=bt;if(r(c)){if(o!==l-1&&s!==1){if(s===2){if(i.length<2||a!==2||i.charCodeAt(i.length-1)!==yt||i.charCodeAt(i.length-2)!==yt){if(i.length>2){let e=i.lastIndexOf(n);e===-1?(i=``,a=0):(i=i.slice(0,e),a=i.length-1-i.lastIndexOf(n)),o=l,s=0;continue}if(i.length!==0){i=``,a=0,o=l,s=0;continue}}t&&(i+=i.length>0?`${n}..`:`..`,a=2)}else i.length>0?i+=`${n}${e.slice(o+1,l)}`:i=e.slice(o+1,l),a=l-o-1}o=l,s=0}else c===yt&&s!==-1?++s:s=-1}return i}function At(e,t){Tt(t,`pathObject`);let n=t.dir||t.root,r=t.base||`${t.name||``}${t.ext||``}`;return n?n===t.root?`${n}${r}`:`${n}${e}${r}`:r}var H={resolve(...e){let t=``,n=``,r=!1;for(let i=e.length-1;i>=-1;i--){let a;if(i>=0){if(a=e[i],B(a,`path`),a.length===0)continue}else t.length===0?a=ft():(a=pt[`=${t}`]||ft(),(a===void 0||a.slice(0,2).toLowerCase()!==t.toLowerCase()&&a.charCodeAt(2)===xt)&&(a=`${t}\\`));let o=a.length,s=0,c=``,l=!1,u=a.charCodeAt(0);if(o===1)V(u)&&(s=1,l=!0);else if(V(u)){if(l=!0,V(a.charCodeAt(1))){let e=2,t=e;for(;e<o&&!V(a.charCodeAt(e));)e++;if(e<o&&e!==t){let n=a.slice(t,e);for(t=e;e<o&&V(a.charCodeAt(e));)e++;if(e<o&&e!==t){for(t=e;e<o&&!V(a.charCodeAt(e));)e++;(e===o||e!==t)&&(c=`\\\\${n}\\${a.slice(t,e)}`,s=e)}}}else s=1}else Ot(u)&&a.charCodeAt(1)===St&&(c=a.slice(0,2),s=2,o>2&&V(a.charCodeAt(2))&&(l=!0,s=3));if(c.length>0){if(t.length>0){if(c.toLowerCase()!==t.toLowerCase())continue}else t=c}if(r){if(t.length>0)break}else if(n=`${a.slice(s)}\\${n}`,r=l,l&&t.length>0)break}return n=kt(n,!r,`\\`,V),r?`${t}\\${n}`:`${t}${n}`||`.`},normalize(e){B(e,`path`);let t=e.length;if(t===0)return`.`;let n=0,r,i=!1,a=e.charCodeAt(0);if(t===1)return Dt(a)?`\\`:e;if(V(a)){if(i=!0,V(e.charCodeAt(1))){let i=2,a=i;for(;i<t&&!V(e.charCodeAt(i));)i++;if(i<t&&i!==a){let o=e.slice(a,i);for(a=i;i<t&&V(e.charCodeAt(i));)i++;if(i<t&&i!==a){for(a=i;i<t&&!V(e.charCodeAt(i));)i++;if(i===t)return`\\\\${o}\\${e.slice(a)}\\`;i!==a&&(r=`\\\\${o}\\${e.slice(a,i)}`,n=i)}}}else n=1}else Ot(a)&&e.charCodeAt(1)===St&&(r=e.slice(0,2),n=2,t>2&&V(e.charCodeAt(2))&&(i=!0,n=3));let o=n<t?kt(e.slice(n),!i,`\\`,V):``;return o.length===0&&!i&&(o=`.`),o.length>0&&V(e.charCodeAt(t-1))&&(o+=`\\`),r===void 0?i?`\\${o}`:o:i?`${r}\\${o}`:`${r}${o}`},isAbsolute(e){B(e,`path`);let t=e.length;if(t===0)return!1;let n=e.charCodeAt(0);return V(n)||t>2&&Ot(n)&&e.charCodeAt(1)===St&&V(e.charCodeAt(2))},join(...e){if(e.length===0)return`.`;let t,n;for(let r=0;r<e.length;++r){let i=e[r];B(i,`path`),i.length>0&&(t===void 0?t=n=i:t+=`\\${i}`)}if(t===void 0)return`.`;let r=!0,i=0;if(typeof n==`string`&&V(n.charCodeAt(0))){++i;let e=n.length;e>1&&V(n.charCodeAt(1))&&(++i,e>2&&(V(n.charCodeAt(2))?++i:r=!1))}if(r){for(;i<t.length&&V(t.charCodeAt(i));)i++;i>=2&&(t=`\\${t.slice(i)}`)}return H.normalize(t)},relative(e,t){if(B(e,`from`),B(t,`to`),e===t)return``;let n=H.resolve(e),r=H.resolve(t);if(n===r||(e=n.toLowerCase(),t=r.toLowerCase(),e===t))return``;let i=0;for(;i<e.length&&e.charCodeAt(i)===xt;)i++;let a=e.length;for(;a-1>i&&e.charCodeAt(a-1)===xt;)a--;let o=a-i,s=0;for(;s<t.length&&t.charCodeAt(s)===xt;)s++;let c=t.length;for(;c-1>s&&t.charCodeAt(c-1)===xt;)c--;let l=c-s,u=o<l?o:l,d=-1,f=0;for(;f<u;f++){let n=e.charCodeAt(i+f);if(n!==t.charCodeAt(s+f))break;n===xt&&(d=f)}if(f!==u){if(d===-1)return r}else{if(l>u){if(t.charCodeAt(s+f)===xt)return r.slice(s+f+1);if(f===2)return r.slice(s+f)}o>u&&(e.charCodeAt(i+f)===xt?d=f:f===2&&(d=3)),d===-1&&(d=0)}let p=``;for(f=i+d+1;f<=a;++f)(f===a||e.charCodeAt(f)===xt)&&(p+=p.length===0?`..`:`\\..`);return s+=d,p.length>0?`${p}${r.slice(s,c)}`:(r.charCodeAt(s)===xt&&++s,r.slice(s,c))},toNamespacedPath(e){if(typeof e!=`string`||e.length===0)return e;let t=H.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===xt){if(t.charCodeAt(1)===xt){let e=t.charCodeAt(2);if(e!==Ct&&e!==yt)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(Ot(t.charCodeAt(0))&&t.charCodeAt(1)===St&&t.charCodeAt(2)===xt)return`\\\\?\\${t}`;return e},dirname(e){B(e,`path`);let t=e.length;if(t===0)return`.`;let n=-1,r=0,i=e.charCodeAt(0);if(t===1)return V(i)?e:`.`;if(V(i)){if(n=r=1,V(e.charCodeAt(1))){let i=2,a=i;for(;i<t&&!V(e.charCodeAt(i));)i++;if(i<t&&i!==a){for(a=i;i<t&&V(e.charCodeAt(i));)i++;if(i<t&&i!==a){for(a=i;i<t&&!V(e.charCodeAt(i));)i++;if(i===t)return e;i!==a&&(n=r=i+1)}}}}else Ot(i)&&e.charCodeAt(1)===St&&(n=t>2&&V(e.charCodeAt(2))?3:2,r=n);let a=-1,o=!0;for(let n=t-1;n>=r;--n)if(V(e.charCodeAt(n))){if(!o){a=n;break}}else o=!1;if(a===-1){if(n===-1)return`.`;a=n}return e.slice(0,a)},basename(e,t){t!==void 0&&B(t,`ext`),B(e,`path`);let n=0,r=-1,i=!0,a;if(e.length>=2&&Ot(e.charCodeAt(0))&&e.charCodeAt(1)===St&&(n=2),t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return``;let o=t.length-1,s=-1;for(a=e.length-1;a>=n;--a){let c=e.charCodeAt(a);if(V(c)){if(!i){n=a+1;break}}else s===-1&&(i=!1,s=a+1),o>=0&&(c===t.charCodeAt(o)?--o===-1&&(r=a):(o=-1,r=s))}return n===r?r=s:r===-1&&(r=e.length),e.slice(n,r)}for(a=e.length-1;a>=n;--a)if(V(e.charCodeAt(a))){if(!i){n=a+1;break}}else r===-1&&(i=!1,r=a+1);return r===-1?``:e.slice(n,r)},extname(e){B(e,`path`);let t=0,n=-1,r=0,i=-1,a=!0,o=0;e.length>=2&&e.charCodeAt(1)===St&&Ot(e.charCodeAt(0))&&(t=r=2);for(let s=e.length-1;s>=t;--s){let t=e.charCodeAt(s);if(V(t)){if(!a){r=s+1;break}}else i===-1&&(a=!1,i=s+1),t===yt?n===-1?n=s:o!==1&&(o=1):n!==-1&&(o=-1)}return n===-1||i===-1||o===0||o===1&&n===i-1&&n===r+1?``:e.slice(n,i)},format:At.bind(null,`\\`),parse(e){B(e,`path`);let t={root:``,dir:``,base:``,ext:``,name:``};if(e.length===0)return t;let n=e.length,r=0,i=e.charCodeAt(0);if(n===1)return V(i)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(V(i)){if(r=1,V(e.charCodeAt(1))){let t=2,i=t;for(;t<n&&!V(e.charCodeAt(t));)t++;if(t<n&&t!==i){for(i=t;t<n&&V(e.charCodeAt(t));)t++;if(t<n&&t!==i){for(i=t;t<n&&!V(e.charCodeAt(t));)t++;t===n?r=t:t!==i&&(r=t+1)}}}}else if(Ot(i)&&e.charCodeAt(1)===St){if(n<=2)return t.root=t.dir=e,t;if(r=2,V(e.charCodeAt(2))){if(n===3)return t.root=t.dir=e,t;r=3}}r>0&&(t.root=e.slice(0,r));let a=-1,o=r,s=-1,c=!0,l=e.length-1,u=0;for(;l>=r;--l)if(i=e.charCodeAt(l),V(i)){if(!c){o=l+1;break}}else s===-1&&(c=!1,s=l+1),i===yt?a===-1?a=l:u!==1&&(u=1):a!==-1&&(u=-1);return s!==-1&&(a===-1||u===0||u===1&&a===s-1&&a===o+1?t.base=t.name=e.slice(o,s):(t.name=e.slice(o,a),t.base=e.slice(o,s),t.ext=e.slice(a,s))),t.dir=o>0&&o!==r?e.slice(0,o-1):t.root,t},sep:`\\`,delimiter:`;`,win32:null,posix:null},jt=(()=>{if(Et){let e=/\\/g;return()=>{let t=ft().replace(e,`/`);return t.slice(t.indexOf(`/`))}}return()=>ft()})(),Mt={resolve(...e){let t=``,n=!1;for(let r=e.length-1;r>=-1&&!n;r--){let i=r>=0?e[r]:jt();B(i,`path`),i.length!==0&&(t=`${i}/${t}`,n=i.charCodeAt(0)===bt)}return t=kt(t,!n,`/`,Dt),n?`/${t}`:t.length>0?t:`.`},normalize(e){if(B(e,`path`),e.length===0)return`.`;let t=e.charCodeAt(0)===bt,n=e.charCodeAt(e.length-1)===bt;return e=kt(e,!t,`/`,Dt),e.length===0?t?`/`:n?`./`:`.`:(n&&(e+=`/`),t?`/${e}`:e)},isAbsolute(e){return B(e,`path`),e.length>0&&e.charCodeAt(0)===bt},join(...e){if(e.length===0)return`.`;let t;for(let n=0;n<e.length;++n){let r=e[n];B(r,`path`),r.length>0&&(t===void 0?t=r:t+=`/${r}`)}return t===void 0?`.`:Mt.normalize(t)},relative(e,t){if(B(e,`from`),B(t,`to`),e===t||(e=Mt.resolve(e),t=Mt.resolve(t),e===t))return``;let n=e.length,r=n-1,i=t.length-1,a=r<i?r:i,o=-1,s=0;for(;s<a;s++){let n=e.charCodeAt(1+s);if(n!==t.charCodeAt(1+s))break;n===bt&&(o=s)}if(s===a){if(i>a){if(t.charCodeAt(1+s)===bt)return t.slice(1+s+1);if(s===0)return t.slice(1+s)}else r>a&&(e.charCodeAt(1+s)===bt?o=s:s===0&&(o=0))}let c=``;for(s=1+o+1;s<=n;++s)(s===n||e.charCodeAt(s)===bt)&&(c+=c.length===0?`..`:`/..`);return`${c}${t.slice(1+o)}`},toNamespacedPath(e){return e},dirname(e){if(B(e,`path`),e.length===0)return`.`;let t=e.charCodeAt(0)===bt,n=-1,r=!0;for(let t=e.length-1;t>=1;--t)if(e.charCodeAt(t)===bt){if(!r){n=t;break}}else r=!1;return n===-1?t?`/`:`.`:t&&n===1?`//`:e.slice(0,n)},basename(e,t){t!==void 0&&B(t,`ext`),B(e,`path`);let n=0,r=-1,i=!0,a;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return``;let o=t.length-1,s=-1;for(a=e.length-1;a>=0;--a){let c=e.charCodeAt(a);if(c===bt){if(!i){n=a+1;break}}else s===-1&&(i=!1,s=a+1),o>=0&&(c===t.charCodeAt(o)?--o===-1&&(r=a):(o=-1,r=s))}return n===r?r=s:r===-1&&(r=e.length),e.slice(n,r)}for(a=e.length-1;a>=0;--a)if(e.charCodeAt(a)===bt){if(!i){n=a+1;break}}else r===-1&&(i=!1,r=a+1);return r===-1?``:e.slice(n,r)},extname(e){B(e,`path`);let t=-1,n=0,r=-1,i=!0,a=0;for(let o=e.length-1;o>=0;--o){let s=e.charCodeAt(o);if(s===bt){if(!i){n=o+1;break}}else r===-1&&(i=!1,r=o+1),s===yt?t===-1?t=o:a!==1&&(a=1):t!==-1&&(a=-1)}return t===-1||r===-1||a===0||a===1&&t===r-1&&t===n+1?``:e.slice(t,r)},format:At.bind(null,`/`),parse(e){B(e,`path`);let t={root:``,dir:``,base:``,ext:``,name:``};if(e.length===0)return t;let n=e.charCodeAt(0)===bt,r;n?(t.root=`/`,r=1):r=0;let i=-1,a=0,o=-1,s=!0,c=e.length-1,l=0;for(;c>=r;--c){let t=e.charCodeAt(c);if(t===bt){if(!s){a=c+1;break}}else o===-1&&(s=!1,o=c+1),t===yt?i===-1?i=c:l!==1&&(l=1):i!==-1&&(l=-1)}if(o!==-1){let r=a===0&&n?1:a;i===-1||l===0||l===1&&i===o-1&&i===a+1?t.base=t.name=e.slice(r,o):(t.name=e.slice(r,i),t.base=e.slice(r,o),t.ext=e.slice(i,o))}return a>0?t.dir=e.slice(0,a-1):n&&(t.dir=`/`),t},sep:`/`,delimiter:`:`,win32:null,posix:null};Mt.win32=H.win32=H,Mt.posix=H.posix=Mt,Et?H.normalize:Mt.normalize,Et?H.isAbsolute:Mt.isAbsolute,Et?H.join:Mt.join,Et?H.resolve:Mt.resolve,Et?H.relative:Mt.relative,Et?H.dirname:Mt.dirname,Et?H.basename:Mt.basename,Et?H.extname:Mt.extname,Et?H.format:Mt.format,Et?H.parse:Mt.parse,Et?H.toNamespacedPath:Mt.toNamespacedPath,Et?H.sep:Mt.sep,Et?H.delimiter:Mt.delimiter;var Nt=class{fn;lastCache=void 0;lastArgKey=void 0;constructor(e){this.fn=e}get(e){let t=JSON.stringify(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this.fn(e)),this.lastCache}},Pt=class{executor;_didRun=!1;_value;_error;constructor(e){this.executor=e}get hasValue(){return this._didRun}get value(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e instanceof Error?e:Error(String(e))}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}};function Ft(e){return!e||typeof e!=`string`||e.trim().length===0}(class e{confusableDictionary;static ambiguousCharacterData=new Pt(()=>JSON.parse(`{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}`));static cache=new Nt(t=>{function n(e){let t=new Map;for(let n=0;n<e.length;n+=2)t.set(e[n],e[n+1]);return t}function r(e,t){let n=new Map(e);for(let[e,r]of t)n.set(e,r);return n}function i(e,t){if(!e)return t;let n=new Map;for(let[r,i]of e)t.has(r)&&n.set(r,i);return n}let a=this.ambiguousCharacterData.value,o=t.filter(e=>!e.startsWith(`_`)&&e in a);o.length===0&&(o=[`_default`]);let s;for(let e of o){let t=n(a[e]);s=i(s,t)}let c=r(n(a._common),s);return new e(c)});static getInstance(t){return e.cache.get(Array.from(t))}static _locales=new Pt(()=>Object.keys(e.ambiguousCharacterData.value).filter(e=>!e.startsWith(`_`)));static getLocales(){return e._locales.value}constructor(e){this.confusableDictionary=e}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}});function It(e){return typeof e==`string`}function Lt(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function Rt(e){return e===void 0}function zt(e){return Rt(e)||e===null}function Bt(e){return typeof e==`function`}function Vt(e,t){let n=Math.min(e.length,t.length);for(let r=0;r<n;r++)Ht(e[r],t[r])}function Ht(e,t){if(It(t)){if(typeof e!==t)throw Error(`argument does not match constraint: typeof ${t}`)}else if(Bt(t)){try{if(e instanceof t)return}catch{}if(!zt(e)&&e.constructor===t||t.length===1&&t.call(void 0,e)===!0)return;throw Error(`argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true`)}}var Ut=/^\w[\w\d+.-]*$/,Wt=/^\//,Gt=/^\/\//;function Kt(e,t){if(!e.scheme&&t)throw Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!Ut.test(e.scheme))throw Error(`[UriError]: Scheme contains illegal characters.`);if(e.path){if(e.authority){if(!Wt.test(e.path))throw Error(`[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character`)}else if(Gt.test(e.path))throw Error(`[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")`)}}function qt(e,t){return!e&&!t?`file`:e}function Jt(e,t){switch(e){case`https`:case`http`:case`file`:t?t[0]!==Yt&&(t=Yt+t):t=Yt}return t}var U=``,Yt=`/`,Xt=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,Zt=class e{static isUri(t){return t instanceof e?!0:t?typeof t.authority==`string`&&typeof t.fragment==`string`&&typeof t.path==`string`&&typeof t.query==`string`&&typeof t.scheme==`string`&&typeof t.fsPath==`string`&&typeof t.with==`function`&&typeof t.toString==`function`:!1}scheme;authority;path;query;fragment;constructor(e,t,n,r,i,a=!1){typeof e==`object`?(this.scheme=e.scheme||U,this.authority=e.authority||U,this.path=e.path||U,this.query=e.query||U,this.fragment=e.fragment||U):(this.scheme=qt(e,a),this.authority=t||U,this.path=Jt(this.scheme,n||U),this.query=r||U,this.fragment=i||U,Kt(this,a))}get fsPath(){return rn(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:r,query:i,fragment:a}=e;return t===void 0?t=this.scheme:t===null&&(t=U),n===void 0?n=this.authority:n===null&&(n=U),r===void 0?r=this.path:r===null&&(r=U),i===void 0?i=this.query:i===null&&(i=U),a===void 0?a=this.fragment:a===null&&(a=U),t===this.scheme&&n===this.authority&&r===this.path&&i===this.query&&a===this.fragment?this:new $t(t,n,r,i,a)}static parse(e,t=!1){let n=Xt.exec(e);return n?new $t(n[2]||U,cn(n[4]||U),cn(n[5]||U),cn(n[7]||U),cn(n[9]||U),t):new $t(U,U,U,U,U)}static file(e){let t=U;if(st&&(e=e.replace(/\\/g,Yt)),e[0]===Yt&&e[1]===Yt){let n=e.indexOf(Yt,2);n===-1?(t=e.substring(2),e=Yt):(t=e.substring(2,n),e=e.substring(n)||Yt)}return new $t(`file`,t,e,U,U)}static from(e){let t=new $t(e.scheme,e.authority,e.path,e.query,e.fragment);return Kt(t,!0),t}static joinPath(t,...n){if(!t.path)throw Error(`[UriError]: cannot call joinPath on URI without path`);let r;return r=st&&t.scheme===`file`?e.file(H.join(rn(t,!0),...n)).path:Mt.join(t.path,...n),t.with({path:r})}toString(e=!1){return an(this,e)}toJSON(){return this}static revive(t){if(!t||t instanceof e)return t;{let e=new $t(t);return e._formatted=t.external,e._fsPath=t._sep===Qt?t.fsPath:null,e}}},Qt=st?1:void 0,$t=class extends Zt{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||=rn(this,!1),this._fsPath}toString(e=!1){return e?an(this,!0):(this._formatted||=an(this,!1),this._formatted)}toJSON(){let e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=Qt),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}},en={58:`%3A`,47:`%2F`,63:`%3F`,35:`%23`,91:`%5B`,93:`%5D`,64:`%40`,33:`%21`,36:`%24`,38:`%26`,39:`%27`,40:`%28`,41:`%29`,42:`%2A`,43:`%2B`,44:`%2C`,59:`%3B`,61:`%3D`,32:`%20`};function tn(e,t,n){let r,i=-1;for(let a=0;a<e.length;a++){let o=e.charCodeAt(a);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||o===45||o===46||o===95||o===126||t&&o===47||n&&o===91||n&&o===93||n&&o===58)i!==-1&&(r+=encodeURIComponent(e.substring(i,a)),i=-1),r!==void 0&&(r+=e.charAt(a));else{r===void 0&&(r=e.substr(0,a));let t=en[o];t===void 0?i===-1&&(i=a):(i!==-1&&(r+=encodeURIComponent(e.substring(i,a)),i=-1),r+=t)}}return i!==-1&&(r+=encodeURIComponent(e.substring(i))),r===void 0?e:r}function nn(e){let t;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);r===35||r===63?(t===void 0&&(t=e.substr(0,n)),t+=en[r]):t!==void 0&&(t+=e[n])}return t===void 0?e:t}function rn(e,t){let n;return n=e.authority&&e.path.length>1&&e.scheme===`file`?`//${e.authority}${e.path}`:e.path.charCodeAt(0)===47&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&e.path.charCodeAt(2)===58?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,st&&(n=n.replace(/\//g,`\\`)),n}function an(e,t){let n=t?nn:tn,r=``,{scheme:i,authority:a,path:o,query:s,fragment:c}=e;if(i&&(r+=i,r+=`:`),(a||i===`file`)&&(r+=Yt,r+=Yt),a){let e=a.indexOf(`@`);if(e!==-1){let t=a.substr(0,e);a=a.substr(e+1),e=t.lastIndexOf(`:`),e===-1?r+=n(t,!1,!1):(r+=n(t.substr(0,e),!1,!1),r+=`:`,r+=n(t.substr(e+1),!1,!0)),r+=`@`}a=a.toLowerCase(),e=a.lastIndexOf(`:`),e===-1?r+=n(a,!1,!0):(r+=n(a.substr(0,e),!1,!0),r+=a.substr(e))}if(o){if(o.length>=3&&o.charCodeAt(0)===47&&o.charCodeAt(2)===58){let e=o.charCodeAt(1);e>=65&&e<=90&&(o=`/${String.fromCharCode(e+32)}:${o.substr(3)}`)}else if(o.length>=2&&o.charCodeAt(1)===58){let e=o.charCodeAt(0);e>=65&&e<=90&&(o=`${String.fromCharCode(e+32)}:${o.substr(2)}`)}r+=n(o,!0,!1)}return s&&(r+=`?`,r+=n(s,!1,!1)),c&&(r+=`#`,r+=t?c:tn(c,!1,!1)),r}function on(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+on(e.substr(3)):e}}var sn=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function cn(e){return e.match(sn)?e.replace(sn,e=>on(e)):e}var W=xe(de(),1),ln=Me(`conformanceService`),un=class extends I{sdk=new Se({requestLib:Se.fetchToRequestLib(fetch)});changed=this._register(new Ve);revision=0;publish=()=>{this.revision++,this.changed.fire()};ruleResource=this._register(new e(this.publish));readmeResource=this._register(new e(this.publish));onDidChange=this.changed.event;getSnapshot=()=>this.revision;get rules(){return this.ruleResource.state}get readme(){return this.readmeResource.state}get readmeId(){return this.readmeResource.key}get loading(){return this.rules.loading||this.readme.loading}refresh(){return this.ruleResource.load(`conformance`,this.sdk.conformance.list)}refreshReadme(e){return this.readmeResource.load(e,()=>this.sdk.conformance.readme(e))}},dn={baseline:`/baselines`,tasks:`/tasks`,changes:`/baseline-changes`,code:`/code-changes`,changelog:`/changelog`,conformance:`/conformance`};function fn(e){return dn[e]}var pn=[{index:!0,loader:({request:e})=>{let t=new URL(e.url).searchParams,n=t.get(`workspace`)===`code`?dn.code:t.get(`workspace`)===`changes`?dn.changes:t.get(`view`)===`baseline`?dn.baseline:t.get(`task`)?`${dn.tasks}/${encodeURIComponent(t.get(`task`))}`:dn.tasks;for(let e of[`workspace`,`view`,`task`])t.delete(e);let r=t.toString();return ie(n+(r?`?`+r:``))}},{path:`baselines`,handle:`baseline`},{path:`tasks`,handle:`tasks`},{path:`tasks/:taskId`,handle:`tasks`},{path:`baseline-changes`,handle:`changes`},{path:`code-changes`,handle:`code`},{path:`changelog`,handle:`changelog`},{path:`conformance`,handle:`conformance`},{path:`*`,handle:`not-found`}];function mn(e){if(e.page===`not-found`)return``;let t=e.page===`tasks`&&e.taskId?`${dn.tasks}/${encodeURIComponent(e.taskId)}`:dn[e.page],n=new URLSearchParams;for(let[t,r]of Object.entries({namespace:e.namespace,case:e.caseId,file:e.file,ref:e.ref,commit:e.commit}))r&&n.set(t,r);return t+(n.size?`?${n}`:``)}function hn(){let e=m(),t=x(),n=ue(),r=Ge(),i=t.at(-1)?.handle??`not-found`,a=j(M),o={baseline:a,tasks:j(le),changes:j(y),code:j(p),changelog:j(re),conformance:j(ln),"not-found":a},s=v(o[i]),[c,l]=(0,W.useState)(()=>{let t=new URLSearchParams(e.search),r={};for(let e of Object.keys(o))r[e]={page:e,taskId:``,namespace:``,caseId:``,file:``,ref:``,commit:``};return r[i]={page:i,taskId:n.taskId??``,namespace:t.get(`namespace`)??``,caseId:t.get(`case`)??``,file:t.get(`file`)??``,ref:t.get(`ref`)??``,commit:t.get(`commit`)??``},r}),u=(0,W.useRef)(c);u.current=c;let d=c[i],f=s.loading,h=i===`conformance`?e.pathname+e.search:mn(d);return(0,W.useEffect)(()=>{!s.loading&&h&&u.current[i]===d&&e.pathname+e.search!==h&&r(h,{replace:!0})},[f,h,d,i,s,e.pathname,e.search,r]),{...d,page:i,loading:f,pathname:h.split(`?`)[0]||e.pathname,href:h||e.pathname,navigate:r,update(e,t=!0){let n={...u.current[i]};for(let[t,r]of Object.entries(e)){let e=t===`case`?`caseId`:t;[`taskId`,`namespace`,`caseId`,`file`,`ref`,`commit`].includes(e)&&(n[e]=r??``)}u.current={...u.current,[i]:n},l(u.current);let a=mn(n);a&&r(a,{replace:t})}}}var gn=Object.prototype.hasOwnProperty;function _n(e,t){return vn(e,t,new Set)}function vn(e,t,n){if(zt(e))return e;let r=t(e);if(r!==void 0)return r;if(Array.isArray(e)){let r=[];for(let i of e)r.push(vn(i,t,n));return r}if(Lt(e)){if(n.has(e))throw Error(`Cannot clone recursive data-structure`);n.add(e);let r={};for(let i in e)gn.call(e,i)&&(r[i]=vn(e[i],t,n));return n.delete(e),r}return e}function yn(e,t){if(e===t)return!0;if(e==null||t==null||typeof e!=typeof t||typeof e!=`object`||Array.isArray(e)!==Array.isArray(t))return!1;let n,r;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(!yn(e[n],t[n]))return!1}else{let i=[];for(r in e)i.push(r);i.sort();let a=[];for(r in t)a.push(r);if(a.sort(),!yn(i,a))return!1;for(n=0;n<i.length;n++)if(!yn(e[i[n]],t[i[n]]))return!1}return!0}function bn(e,t){let n=Object.create(null);return!e||!t||Object.keys(t).forEach(r=>{let i=e[r],a=t[r];yn(i,a)||(n[r]=a)}),n}var xn=Me(`commandService`),Sn=new class{_commands=new Map;_onDidRegisterCommand=new Ve;onDidRegisterCommand=this._onDidRegisterCommand.event;registerCommand(e,t){if(!e)throw Error(`invalid command`);if(typeof e==`string`){if(!t)throw Error(`invalid command`);return this.registerCommand({id:e,handler:t})}if(e.description){let t=[];for(let n of e.description.args)t.push(n.constraint);let n=e.handler;e.handler=function(e,...r){return Vt(r,t),n(e,...r)}}let{id:n}=e,r=this._commands.get(n);r||(r=new at,this._commands.set(n,r));let i=r.unshift(e),a=u(()=>{i(),this._commands.get(n)?.isEmpty()&&this._commands.delete(n)});return this._onDidRegisterCommand.fire(n),a}registerCommandAlias(e,t){return Sn.registerCommand(e,(e,...n)=>e.get(xn).executeCommand(t,...n))}getCommand(e){let t=this._commands.get(e);if(t&&!t.isEmpty())return c.first(t)}getCommands(){let e=new Map;for(let t of this._commands.keys()){let n=this.getCommand(t);n&&e.set(t,n)}return e}};Sn.registerCommand(`noop`,()=>{});function Cn(...e){switch(e.length){case 1:return R(`contextkey.scanner.hint.didYouMean1`,`Did you mean {0}?`,e[0]);case 2:return R(`contextkey.scanner.hint.didYouMean2`,`Did you mean {0} or {1}?`,e[0],e[1]);case 3:return R(`contextkey.scanner.hint.didYouMean3`,`Did you mean {0}, {1} or {2}?`,e[0],e[1],e[2]);default:return}}var wn=R(`contextkey.scanner.hint.didYouForgetToOpenOrCloseQuote`,`Did you forget to open or close the quote?`),Tn=R(`contextkey.scanner.hint.didYouForgetToEscapeSlash`,`Did you forget to escape the '/' (slash) character? Put two backslashes before it to escape, e.g., '\\\\/'.`),En=class e{static getLexeme(e){switch(e.type){case 0:return`(`;case 1:return`)`;case 2:return`!`;case 3:return e.isTripleEq?`===`:`==`;case 4:return e.isTripleEq?`!==`:`!=`;case 5:return`<`;case 6:return`<=`;case 7:return`>=`;case 8:return`>=`;case 9:return`=~`;case 10:return e.lexeme;case 11:return`true`;case 12:return`false`;case 13:return`in`;case 14:return`not`;case 15:return`&&`;case 16:return`||`;case 17:return e.lexeme;case 18:return e.lexeme;case 19:return e.lexeme;case 20:return`EOF`;default:throw Ne(`unhandled token type: ${JSON.stringify(e)}; have you forgotten to add a case?`)}}static _regexFlags=new Set([`i`,`g`,`s`,`m`,`y`,`u`].map(e=>e.charCodeAt(0)));static _keywords=new Map([[`not`,14],[`in`,13],[`false`,12],[`true`,11]]);_input=``;_start=0;_current=0;_tokens=[];_errors=[];get errors(){return this._errors}reset(e){return this._input=e,this._start=0,this._current=0,this._tokens=[],this._errors=[],this}scan(){for(;!this._isAtEnd();)switch(this._start=this._current,this._advance()){case 40:this._addToken(0);break;case 41:this._addToken(1);break;case 33:if(this._match(61)){let e=this._match(61);this._tokens.push({type:4,offset:this._start,isTripleEq:e})}else this._addToken(2);break;case 39:this._quotedString();break;case 47:this._regex();break;case 61:if(this._match(61)){let e=this._match(61);this._tokens.push({type:3,offset:this._start,isTripleEq:e})}else this._match(126)?this._addToken(9):this._error(Cn(`==`,`=~`));break;case 60:this._addToken(this._match(61)?6:5);break;case 62:this._addToken(this._match(61)?8:7);break;case 38:this._match(38)?this._addToken(15):this._error(Cn(`&&`));break;case 124:this._match(124)?this._addToken(16):this._error(Cn(`||`));break;case 32:case 13:case 9:case 10:case 160:break;default:this._string()}return this._start=this._current,this._addToken(20),Array.from(this._tokens)}_match(e){return this._isAtEnd()||this._input.charCodeAt(this._current)!==e?!1:(this._current++,!0)}_advance(){return this._input.charCodeAt(this._current++)}_peek(){return this._isAtEnd()?0:this._input.charCodeAt(this._current)}_addToken(e){this._tokens.push({type:e,offset:this._start})}_error(e){let t=this._start,n=this._input.substring(this._start,this._current),r={type:19,offset:this._start,lexeme:n};this._errors.push({offset:t,lexeme:n,additionalInfo:e}),this._tokens.push(r)}stringRe=/[a-zA-Z0-9_<>\-\./\\:\*\?\+\[\]\^,#@;"%\$\p{L}-]+/uy;_string(){this.stringRe.lastIndex=this._start;let t=this.stringRe.exec(this._input);if(t){this._current=this._start+t[0].length;let n=this._input.substring(this._start,this._current),r=e._keywords.get(n);r?this._addToken(r):this._tokens.push({type:17,lexeme:n,offset:this._start})}}_quotedString(){for(;this._peek()!==39&&!this._isAtEnd();)this._advance();this._isAtEnd()?this._error(wn):(this._advance(),this._tokens.push({type:18,lexeme:this._input.substring(this._start+1,this._current-1),offset:this._start+1}))}_regex(){let t=this._current,n=!1,r=!1;for(;;){if(t>=this._input.length){this._current=t,this._error(Tn);return}let e=this._input.charCodeAt(t);if(n)n=!1;else if(e===47&&!r){t++;break}else e===91?r=!0:e===92?n=!0:e===93&&(r=!1);t++}for(;t<this._input.length&&e._regexFlags.has(this._input.charCodeAt(t));)t++;this._current=t;let i=this._input.substring(this._start,this._current);this._tokens.push({type:10,lexeme:i,offset:this._start})}_isAtEnd(){return this._current>=this._input.length}},Dn=new Map;Dn.set(`false`,!1),Dn.set(`true`,!0),Dn.set(`isMac`,Ee),Dn.set(`isLinux`,Oe),Dn.set(`isWindows`,st),Dn.set(`isWeb`,tt),Dn.set(`isMacNative`,Ee&&!tt),Dn.set(`isEdge`,Ue),Dn.set(`isFirefox`,Le),Dn.set(`isChrome`,we),Dn.set(`isSafari`,pe);var On=Object.prototype.hasOwnProperty,kn={regexParsingWithErrorRecovery:!0},An=R(`contextkey.parser.error.emptyString`,`Empty context key expression`),jn=R(`contextkey.parser.error.emptyString.hint`,`Did you forget to write an expression? You can also put 'false' or 'true' to always evaluate to false or true, respectively.`),Mn=R(`contextkey.parser.error.noInAfterNot`,`'in' after 'not'.`),Nn=R(`contextkey.parser.error.closingParenthesis`,`closing parenthesis ')'`),Pn=R(`contextkey.parser.error.unexpectedToken`,`Unexpected token`),Fn=R(`contextkey.parser.error.unexpectedToken.hint`,`Did you forget to put && or || before the token?`),In=R(`contextkey.parser.error.unexpectedEOF`,`Unexpected end of expression`),Ln=R(`contextkey.parser.error.unexpectedEOF.hint`,`Did you forget to put a context key?`),Rn=class e{_config;static _parseError=Error();_scanner=new En;_tokens=[];_current=0;_parsingErrors=[];get lexingErrors(){return this._scanner.errors}get parsingErrors(){return this._parsingErrors}constructor(e=kn){this._config=e}parse(t){if(t===``)this._parsingErrors.push({message:An,offset:0,lexeme:``,additionalInfo:jn});else{this._tokens=this._scanner.reset(t).scan(),this._current=0,this._parsingErrors=[];try{let t=this._expr();if(!this._isAtEnd()){let t=this._peek(),n=t.type===17?Fn:void 0;throw this._parsingErrors.push({message:Pn,offset:t.offset,lexeme:En.getLexeme(t),additionalInfo:n}),e._parseError}return t}catch(t){if(t!==e._parseError)throw t;return}}}_expr(){return this._or()}_or(){let e=[this._and()];for(;this._matchOne(16);){let t=this._and();e.push(t)}return e.length===1?e[0]:zn.or(...e)}_and(){let e=[this._term()];for(;this._matchOne(15);){let t=this._term();e.push(t)}return e.length===1?e[0]:zn.and(...e)}_term(){if(this._matchOne(2)){let e=this._peek();switch(e.type){case 11:return this._advance(),Hn.INSTANCE;case 12:return this._advance(),Un.INSTANCE;case 0:{this._advance();let e=this._expr();return this._consume(1,Nn),e?.negate()}case 17:return this._advance(),Yn.create(e.lexeme);default:throw this._errExpectedButGot(`KEY | true | false | '(' expression ')'`,e)}}return this._primary()}_primary(){let t=this._peek();switch(t.type){case 11:return this._advance(),zn.true();case 12:return this._advance(),zn.false();case 0:{this._advance();let e=this._expr();return this._consume(1,Nn),e}case 17:{let e=t.lexeme;if(this._advance(),this._matchOne(9)){let t=this._peek();if(!this._config.regexParsingWithErrorRecovery){if(this._advance(),t.type!==10)throw this._errExpectedButGot(`REGEX`,t);let n=t.lexeme,r=n.lastIndexOf(`/`),i=r===n.length-1?void 0:this._removeFlagsGY(n.substring(r+1)),a;try{a=new RegExp(n.substring(1,r),i)}catch{throw this._errExpectedButGot(`REGEX`,t)}return tr.create(e,a)}switch(t.type){case 10:case 19:{let n=[t.lexeme];this._advance();let r=this._peek(),i=0;for(let e=0;e<t.lexeme.length;e++)t.lexeme.charCodeAt(e)===40?i++:t.lexeme.charCodeAt(e)===41&&i--;for(;!this._isAtEnd()&&r.type!==15&&r.type!==16;){switch(r.type){case 0:i++;break;case 1:i--;break;case 10:case 18:for(let e=0;e<r.lexeme.length;e++)r.lexeme.charCodeAt(e)===40?i++:t.lexeme.charCodeAt(e)===41&&i--}if(i<0)break;n.push(En.getLexeme(r)),this._advance(),r=this._peek()}let a=n.join(``),o=a.lastIndexOf(`/`),s=o===a.length-1?void 0:this._removeFlagsGY(a.substring(o+1)),c;try{c=new RegExp(a.substring(1,o),s)}catch{throw this._errExpectedButGot(`REGEX`,t)}return zn.regex(e,c)}case 18:{let n=t.lexeme;this._advance();let r=null;if(!Ft(n)){let e=n.indexOf(`/`),i=n.lastIndexOf(`/`);if(e!==i&&e>=0){let a=n.slice(e+1,i),o=n[i+1]===`i`?`i`:``;try{r=new RegExp(a,o)}catch{throw this._errExpectedButGot(`REGEX`,t)}}}if(r===null)throw this._errExpectedButGot(`REGEX`,t);return tr.create(e,r)}default:throw this._errExpectedButGot(`REGEX`,this._peek())}}if(this._matchOne(14)){this._consume(13,Mn);let t=this._value();return zn.notIn(e,t)}switch(this._peek().type){case 3:{this._advance();let t=this._value();if(this._previous().type===18)return zn.equals(e,t);switch(t){case`true`:return zn.has(e);case`false`:return zn.not(e);default:return zn.equals(e,t)}}case 4:{this._advance();let t=this._value();if(this._previous().type===18)return zn.notEquals(e,t);switch(t){case`true`:return zn.not(e);case`false`:return zn.has(e);default:return zn.notEquals(e,t)}}case 5:return this._advance(),$n.create(e,this._value());case 6:return this._advance(),er.create(e,this._value());case 7:return this._advance(),Zn.create(e,this._value());case 8:return this._advance(),Qn.create(e,this._value());case 13:return this._advance(),zn.in(e,this._value());default:return zn.has(e)}}case 20:throw this._parsingErrors.push({message:In,offset:t.offset,lexeme:``,additionalInfo:Ln}),e._parseError;default:throw this._errExpectedButGot(`true | false | KEY
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/monaco-CuSMZpTT.js","assets/useDisplayPreference-DTZ1jElj.js","assets/index-B148ctmz.js","assets/editor.api-BZNIEFbB.js","assets/editor-B8GMDV7_.css","assets/monaco-n7clI0si.css"])))=>i.map(i=>d[i]);
2
+ import{$ as e,$t as t,A as n,At as r,B as i,C as a,Ct as o,D as s,Dt as c,E as l,Et as u,F as d,Ft as f,G as p,Gt as m,H as h,Ht as g,I as _,It as v,J as y,K as b,Kt as x,L as S,Lt as C,M as w,Mt as T,N as E,Nt as D,O,Ot as k,P as A,Pt as j,Q as M,Qt as N,R as P,Rt as F,S as ee,St as I,T as te,Tt as ne,U as re,Ut as ie,V as ae,W as oe,X as se,Xt as ce,Y as le,Yt as ue,Z as L,Zt as de,_ as fe,_t as pe,a as me,at as he,b as ge,bt as R,c as _e,ct as ve,d as ye,dt as be,en as xe,et as Se,f as Ce,ft as we,g as Te,gt as Ee,h as De,ht as Oe,i as ke,it as Ae,j as je,jt as Me,k as z,kt as Ne,l as Pe,lt as Fe,m as Ie,mt as Le,n as Re,nt as ze,o as Be,ot as Ve,p as He,pt as Ue,q as We,qt as Ge,r as Ke,rt as qe,s as Je,st as Ye,t as Xe,tt as Ze,u as Qe,ut as $e,v as et,vt as tt,w as nt,wt as rt,x as it,xt as at,y as ot,yt as st,z as ct,zt as lt}from"./useDisplayPreference-DTZ1jElj.js";import{t as ut}from"./index-B148ctmz.js";var dt;if(be.vscode!==void 0&&be.vscode.process!==void 0){let e=be.vscode.process;dt={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd(){return e.cwd()}}}else dt=typeof process<`u`?{get platform(){return process.platform},get arch(){return process.arch},get env(){return{}},cwd(){return{}.VSCODE_CWD||process.cwd()}}:{get platform(){return st?`win32`:Ee?`darwin`:`linux`},get arch(){},get env(){return{}},cwd(){return`/`}};var ft=dt.cwd,pt=dt.env,mt=dt.platform;dt.arch;var ht=65,gt=97,_t=90,vt=122,yt=46,bt=47,xt=92,St=58,Ct=63,wt=class extends Error{code;constructor(e,t,n){let r;typeof t==`string`&&t.indexOf(`not `)===0?(r=`must not be`,t=t.replace(/^not /,``)):r=`must be`;let i=`The "${e}" ${e.indexOf(`.`)===-1?`argument`:`property`} ${r} of type ${t}`;i+=`. Received type ${typeof n}`,super(i),this.code=`ERR_INVALID_ARG_TYPE`}};function Tt(e,t){if(typeof e!=`object`||!e)throw new wt(t,`Object`,e)}function B(e,t){if(typeof e!=`string`)throw new wt(t,`string`,e)}var Et=mt===`win32`;function V(e){return e===bt||e===xt}function Dt(e){return e===bt}function Ot(e){return e>=ht&&e<=_t||e>=gt&&e<=vt}function kt(e,t,n,r){let i=``,a=0,o=-1,s=0,c=0;for(let l=0;l<=e.length;++l){if(l<e.length)c=e.charCodeAt(l);else if(r(c))break;else c=bt;if(r(c)){if(o!==l-1&&s!==1){if(s===2){if(i.length<2||a!==2||i.charCodeAt(i.length-1)!==yt||i.charCodeAt(i.length-2)!==yt){if(i.length>2){let e=i.lastIndexOf(n);e===-1?(i=``,a=0):(i=i.slice(0,e),a=i.length-1-i.lastIndexOf(n)),o=l,s=0;continue}if(i.length!==0){i=``,a=0,o=l,s=0;continue}}t&&(i+=i.length>0?`${n}..`:`..`,a=2)}else i.length>0?i+=`${n}${e.slice(o+1,l)}`:i=e.slice(o+1,l),a=l-o-1}o=l,s=0}else c===yt&&s!==-1?++s:s=-1}return i}function At(e,t){Tt(t,`pathObject`);let n=t.dir||t.root,r=t.base||`${t.name||``}${t.ext||``}`;return n?n===t.root?`${n}${r}`:`${n}${e}${r}`:r}var H={resolve(...e){let t=``,n=``,r=!1;for(let i=e.length-1;i>=-1;i--){let a;if(i>=0){if(a=e[i],B(a,`path`),a.length===0)continue}else t.length===0?a=ft():(a=pt[`=${t}`]||ft(),(a===void 0||a.slice(0,2).toLowerCase()!==t.toLowerCase()&&a.charCodeAt(2)===xt)&&(a=`${t}\\`));let o=a.length,s=0,c=``,l=!1,u=a.charCodeAt(0);if(o===1)V(u)&&(s=1,l=!0);else if(V(u)){if(l=!0,V(a.charCodeAt(1))){let e=2,t=e;for(;e<o&&!V(a.charCodeAt(e));)e++;if(e<o&&e!==t){let n=a.slice(t,e);for(t=e;e<o&&V(a.charCodeAt(e));)e++;if(e<o&&e!==t){for(t=e;e<o&&!V(a.charCodeAt(e));)e++;(e===o||e!==t)&&(c=`\\\\${n}\\${a.slice(t,e)}`,s=e)}}}else s=1}else Ot(u)&&a.charCodeAt(1)===St&&(c=a.slice(0,2),s=2,o>2&&V(a.charCodeAt(2))&&(l=!0,s=3));if(c.length>0){if(t.length>0){if(c.toLowerCase()!==t.toLowerCase())continue}else t=c}if(r){if(t.length>0)break}else if(n=`${a.slice(s)}\\${n}`,r=l,l&&t.length>0)break}return n=kt(n,!r,`\\`,V),r?`${t}\\${n}`:`${t}${n}`||`.`},normalize(e){B(e,`path`);let t=e.length;if(t===0)return`.`;let n=0,r,i=!1,a=e.charCodeAt(0);if(t===1)return Dt(a)?`\\`:e;if(V(a)){if(i=!0,V(e.charCodeAt(1))){let i=2,a=i;for(;i<t&&!V(e.charCodeAt(i));)i++;if(i<t&&i!==a){let o=e.slice(a,i);for(a=i;i<t&&V(e.charCodeAt(i));)i++;if(i<t&&i!==a){for(a=i;i<t&&!V(e.charCodeAt(i));)i++;if(i===t)return`\\\\${o}\\${e.slice(a)}\\`;i!==a&&(r=`\\\\${o}\\${e.slice(a,i)}`,n=i)}}}else n=1}else Ot(a)&&e.charCodeAt(1)===St&&(r=e.slice(0,2),n=2,t>2&&V(e.charCodeAt(2))&&(i=!0,n=3));let o=n<t?kt(e.slice(n),!i,`\\`,V):``;return o.length===0&&!i&&(o=`.`),o.length>0&&V(e.charCodeAt(t-1))&&(o+=`\\`),r===void 0?i?`\\${o}`:o:i?`${r}\\${o}`:`${r}${o}`},isAbsolute(e){B(e,`path`);let t=e.length;if(t===0)return!1;let n=e.charCodeAt(0);return V(n)||t>2&&Ot(n)&&e.charCodeAt(1)===St&&V(e.charCodeAt(2))},join(...e){if(e.length===0)return`.`;let t,n;for(let r=0;r<e.length;++r){let i=e[r];B(i,`path`),i.length>0&&(t===void 0?t=n=i:t+=`\\${i}`)}if(t===void 0)return`.`;let r=!0,i=0;if(typeof n==`string`&&V(n.charCodeAt(0))){++i;let e=n.length;e>1&&V(n.charCodeAt(1))&&(++i,e>2&&(V(n.charCodeAt(2))?++i:r=!1))}if(r){for(;i<t.length&&V(t.charCodeAt(i));)i++;i>=2&&(t=`\\${t.slice(i)}`)}return H.normalize(t)},relative(e,t){if(B(e,`from`),B(t,`to`),e===t)return``;let n=H.resolve(e),r=H.resolve(t);if(n===r||(e=n.toLowerCase(),t=r.toLowerCase(),e===t))return``;let i=0;for(;i<e.length&&e.charCodeAt(i)===xt;)i++;let a=e.length;for(;a-1>i&&e.charCodeAt(a-1)===xt;)a--;let o=a-i,s=0;for(;s<t.length&&t.charCodeAt(s)===xt;)s++;let c=t.length;for(;c-1>s&&t.charCodeAt(c-1)===xt;)c--;let l=c-s,u=o<l?o:l,d=-1,f=0;for(;f<u;f++){let n=e.charCodeAt(i+f);if(n!==t.charCodeAt(s+f))break;n===xt&&(d=f)}if(f!==u){if(d===-1)return r}else{if(l>u){if(t.charCodeAt(s+f)===xt)return r.slice(s+f+1);if(f===2)return r.slice(s+f)}o>u&&(e.charCodeAt(i+f)===xt?d=f:f===2&&(d=3)),d===-1&&(d=0)}let p=``;for(f=i+d+1;f<=a;++f)(f===a||e.charCodeAt(f)===xt)&&(p+=p.length===0?`..`:`\\..`);return s+=d,p.length>0?`${p}${r.slice(s,c)}`:(r.charCodeAt(s)===xt&&++s,r.slice(s,c))},toNamespacedPath(e){if(typeof e!=`string`||e.length===0)return e;let t=H.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===xt){if(t.charCodeAt(1)===xt){let e=t.charCodeAt(2);if(e!==Ct&&e!==yt)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(Ot(t.charCodeAt(0))&&t.charCodeAt(1)===St&&t.charCodeAt(2)===xt)return`\\\\?\\${t}`;return e},dirname(e){B(e,`path`);let t=e.length;if(t===0)return`.`;let n=-1,r=0,i=e.charCodeAt(0);if(t===1)return V(i)?e:`.`;if(V(i)){if(n=r=1,V(e.charCodeAt(1))){let i=2,a=i;for(;i<t&&!V(e.charCodeAt(i));)i++;if(i<t&&i!==a){for(a=i;i<t&&V(e.charCodeAt(i));)i++;if(i<t&&i!==a){for(a=i;i<t&&!V(e.charCodeAt(i));)i++;if(i===t)return e;i!==a&&(n=r=i+1)}}}}else Ot(i)&&e.charCodeAt(1)===St&&(n=t>2&&V(e.charCodeAt(2))?3:2,r=n);let a=-1,o=!0;for(let n=t-1;n>=r;--n)if(V(e.charCodeAt(n))){if(!o){a=n;break}}else o=!1;if(a===-1){if(n===-1)return`.`;a=n}return e.slice(0,a)},basename(e,t){t!==void 0&&B(t,`ext`),B(e,`path`);let n=0,r=-1,i=!0,a;if(e.length>=2&&Ot(e.charCodeAt(0))&&e.charCodeAt(1)===St&&(n=2),t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return``;let o=t.length-1,s=-1;for(a=e.length-1;a>=n;--a){let c=e.charCodeAt(a);if(V(c)){if(!i){n=a+1;break}}else s===-1&&(i=!1,s=a+1),o>=0&&(c===t.charCodeAt(o)?--o===-1&&(r=a):(o=-1,r=s))}return n===r?r=s:r===-1&&(r=e.length),e.slice(n,r)}for(a=e.length-1;a>=n;--a)if(V(e.charCodeAt(a))){if(!i){n=a+1;break}}else r===-1&&(i=!1,r=a+1);return r===-1?``:e.slice(n,r)},extname(e){B(e,`path`);let t=0,n=-1,r=0,i=-1,a=!0,o=0;e.length>=2&&e.charCodeAt(1)===St&&Ot(e.charCodeAt(0))&&(t=r=2);for(let s=e.length-1;s>=t;--s){let t=e.charCodeAt(s);if(V(t)){if(!a){r=s+1;break}}else i===-1&&(a=!1,i=s+1),t===yt?n===-1?n=s:o!==1&&(o=1):n!==-1&&(o=-1)}return n===-1||i===-1||o===0||o===1&&n===i-1&&n===r+1?``:e.slice(n,i)},format:At.bind(null,`\\`),parse(e){B(e,`path`);let t={root:``,dir:``,base:``,ext:``,name:``};if(e.length===0)return t;let n=e.length,r=0,i=e.charCodeAt(0);if(n===1)return V(i)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(V(i)){if(r=1,V(e.charCodeAt(1))){let t=2,i=t;for(;t<n&&!V(e.charCodeAt(t));)t++;if(t<n&&t!==i){for(i=t;t<n&&V(e.charCodeAt(t));)t++;if(t<n&&t!==i){for(i=t;t<n&&!V(e.charCodeAt(t));)t++;t===n?r=t:t!==i&&(r=t+1)}}}}else if(Ot(i)&&e.charCodeAt(1)===St){if(n<=2)return t.root=t.dir=e,t;if(r=2,V(e.charCodeAt(2))){if(n===3)return t.root=t.dir=e,t;r=3}}r>0&&(t.root=e.slice(0,r));let a=-1,o=r,s=-1,c=!0,l=e.length-1,u=0;for(;l>=r;--l)if(i=e.charCodeAt(l),V(i)){if(!c){o=l+1;break}}else s===-1&&(c=!1,s=l+1),i===yt?a===-1?a=l:u!==1&&(u=1):a!==-1&&(u=-1);return s!==-1&&(a===-1||u===0||u===1&&a===s-1&&a===o+1?t.base=t.name=e.slice(o,s):(t.name=e.slice(o,a),t.base=e.slice(o,s),t.ext=e.slice(a,s))),t.dir=o>0&&o!==r?e.slice(0,o-1):t.root,t},sep:`\\`,delimiter:`;`,win32:null,posix:null},jt=(()=>{if(Et){let e=/\\/g;return()=>{let t=ft().replace(e,`/`);return t.slice(t.indexOf(`/`))}}return()=>ft()})(),Mt={resolve(...e){let t=``,n=!1;for(let r=e.length-1;r>=-1&&!n;r--){let i=r>=0?e[r]:jt();B(i,`path`),i.length!==0&&(t=`${i}/${t}`,n=i.charCodeAt(0)===bt)}return t=kt(t,!n,`/`,Dt),n?`/${t}`:t.length>0?t:`.`},normalize(e){if(B(e,`path`),e.length===0)return`.`;let t=e.charCodeAt(0)===bt,n=e.charCodeAt(e.length-1)===bt;return e=kt(e,!t,`/`,Dt),e.length===0?t?`/`:n?`./`:`.`:(n&&(e+=`/`),t?`/${e}`:e)},isAbsolute(e){return B(e,`path`),e.length>0&&e.charCodeAt(0)===bt},join(...e){if(e.length===0)return`.`;let t;for(let n=0;n<e.length;++n){let r=e[n];B(r,`path`),r.length>0&&(t===void 0?t=r:t+=`/${r}`)}return t===void 0?`.`:Mt.normalize(t)},relative(e,t){if(B(e,`from`),B(t,`to`),e===t||(e=Mt.resolve(e),t=Mt.resolve(t),e===t))return``;let n=e.length,r=n-1,i=t.length-1,a=r<i?r:i,o=-1,s=0;for(;s<a;s++){let n=e.charCodeAt(1+s);if(n!==t.charCodeAt(1+s))break;n===bt&&(o=s)}if(s===a){if(i>a){if(t.charCodeAt(1+s)===bt)return t.slice(1+s+1);if(s===0)return t.slice(1+s)}else r>a&&(e.charCodeAt(1+s)===bt?o=s:s===0&&(o=0))}let c=``;for(s=1+o+1;s<=n;++s)(s===n||e.charCodeAt(s)===bt)&&(c+=c.length===0?`..`:`/..`);return`${c}${t.slice(1+o)}`},toNamespacedPath(e){return e},dirname(e){if(B(e,`path`),e.length===0)return`.`;let t=e.charCodeAt(0)===bt,n=-1,r=!0;for(let t=e.length-1;t>=1;--t)if(e.charCodeAt(t)===bt){if(!r){n=t;break}}else r=!1;return n===-1?t?`/`:`.`:t&&n===1?`//`:e.slice(0,n)},basename(e,t){t!==void 0&&B(t,`ext`),B(e,`path`);let n=0,r=-1,i=!0,a;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return``;let o=t.length-1,s=-1;for(a=e.length-1;a>=0;--a){let c=e.charCodeAt(a);if(c===bt){if(!i){n=a+1;break}}else s===-1&&(i=!1,s=a+1),o>=0&&(c===t.charCodeAt(o)?--o===-1&&(r=a):(o=-1,r=s))}return n===r?r=s:r===-1&&(r=e.length),e.slice(n,r)}for(a=e.length-1;a>=0;--a)if(e.charCodeAt(a)===bt){if(!i){n=a+1;break}}else r===-1&&(i=!1,r=a+1);return r===-1?``:e.slice(n,r)},extname(e){B(e,`path`);let t=-1,n=0,r=-1,i=!0,a=0;for(let o=e.length-1;o>=0;--o){let s=e.charCodeAt(o);if(s===bt){if(!i){n=o+1;break}}else r===-1&&(i=!1,r=o+1),s===yt?t===-1?t=o:a!==1&&(a=1):t!==-1&&(a=-1)}return t===-1||r===-1||a===0||a===1&&t===r-1&&t===n+1?``:e.slice(t,r)},format:At.bind(null,`/`),parse(e){B(e,`path`);let t={root:``,dir:``,base:``,ext:``,name:``};if(e.length===0)return t;let n=e.charCodeAt(0)===bt,r;n?(t.root=`/`,r=1):r=0;let i=-1,a=0,o=-1,s=!0,c=e.length-1,l=0;for(;c>=r;--c){let t=e.charCodeAt(c);if(t===bt){if(!s){a=c+1;break}}else o===-1&&(s=!1,o=c+1),t===yt?i===-1?i=c:l!==1&&(l=1):i!==-1&&(l=-1)}if(o!==-1){let r=a===0&&n?1:a;i===-1||l===0||l===1&&i===o-1&&i===a+1?t.base=t.name=e.slice(r,o):(t.name=e.slice(r,i),t.base=e.slice(r,o),t.ext=e.slice(i,o))}return a>0?t.dir=e.slice(0,a-1):n&&(t.dir=`/`),t},sep:`/`,delimiter:`:`,win32:null,posix:null};Mt.win32=H.win32=H,Mt.posix=H.posix=Mt,Et?H.normalize:Mt.normalize,Et?H.isAbsolute:Mt.isAbsolute,Et?H.join:Mt.join,Et?H.resolve:Mt.resolve,Et?H.relative:Mt.relative,Et?H.dirname:Mt.dirname,Et?H.basename:Mt.basename,Et?H.extname:Mt.extname,Et?H.format:Mt.format,Et?H.parse:Mt.parse,Et?H.toNamespacedPath:Mt.toNamespacedPath,Et?H.sep:Mt.sep,Et?H.delimiter:Mt.delimiter;var Nt=class{fn;lastCache=void 0;lastArgKey=void 0;constructor(e){this.fn=e}get(e){let t=JSON.stringify(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this.fn(e)),this.lastCache}},Pt=class{executor;_didRun=!1;_value;_error;constructor(e){this.executor=e}get hasValue(){return this._didRun}get value(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e instanceof Error?e:Error(String(e))}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}};function Ft(e){return!e||typeof e!=`string`||e.trim().length===0}(class e{confusableDictionary;static ambiguousCharacterData=new Pt(()=>JSON.parse(`{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}`));static cache=new Nt(t=>{function n(e){let t=new Map;for(let n=0;n<e.length;n+=2)t.set(e[n],e[n+1]);return t}function r(e,t){let n=new Map(e);for(let[e,r]of t)n.set(e,r);return n}function i(e,t){if(!e)return t;let n=new Map;for(let[r,i]of e)t.has(r)&&n.set(r,i);return n}let a=this.ambiguousCharacterData.value,o=t.filter(e=>!e.startsWith(`_`)&&e in a);o.length===0&&(o=[`_default`]);let s;for(let e of o){let t=n(a[e]);s=i(s,t)}let c=r(n(a._common),s);return new e(c)});static getInstance(t){return e.cache.get(Array.from(t))}static _locales=new Pt(()=>Object.keys(e.ambiguousCharacterData.value).filter(e=>!e.startsWith(`_`)));static getLocales(){return e._locales.value}constructor(e){this.confusableDictionary=e}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}});function It(e){return typeof e==`string`}function Lt(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function Rt(e){return e===void 0}function zt(e){return Rt(e)||e===null}function Bt(e){return typeof e==`function`}function Vt(e,t){let n=Math.min(e.length,t.length);for(let r=0;r<n;r++)Ht(e[r],t[r])}function Ht(e,t){if(It(t)){if(typeof e!==t)throw Error(`argument does not match constraint: typeof ${t}`)}else if(Bt(t)){try{if(e instanceof t)return}catch{}if(!zt(e)&&e.constructor===t||t.length===1&&t.call(void 0,e)===!0)return;throw Error(`argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true`)}}var Ut=/^\w[\w\d+.-]*$/,Wt=/^\//,Gt=/^\/\//;function Kt(e,t){if(!e.scheme&&t)throw Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!Ut.test(e.scheme))throw Error(`[UriError]: Scheme contains illegal characters.`);if(e.path){if(e.authority){if(!Wt.test(e.path))throw Error(`[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character`)}else if(Gt.test(e.path))throw Error(`[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")`)}}function qt(e,t){return!e&&!t?`file`:e}function Jt(e,t){switch(e){case`https`:case`http`:case`file`:t?t[0]!==Yt&&(t=Yt+t):t=Yt}return t}var U=``,Yt=`/`,Xt=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,Zt=class e{static isUri(t){return t instanceof e?!0:t?typeof t.authority==`string`&&typeof t.fragment==`string`&&typeof t.path==`string`&&typeof t.query==`string`&&typeof t.scheme==`string`&&typeof t.fsPath==`string`&&typeof t.with==`function`&&typeof t.toString==`function`:!1}scheme;authority;path;query;fragment;constructor(e,t,n,r,i,a=!1){typeof e==`object`?(this.scheme=e.scheme||U,this.authority=e.authority||U,this.path=e.path||U,this.query=e.query||U,this.fragment=e.fragment||U):(this.scheme=qt(e,a),this.authority=t||U,this.path=Jt(this.scheme,n||U),this.query=r||U,this.fragment=i||U,Kt(this,a))}get fsPath(){return rn(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:r,query:i,fragment:a}=e;return t===void 0?t=this.scheme:t===null&&(t=U),n===void 0?n=this.authority:n===null&&(n=U),r===void 0?r=this.path:r===null&&(r=U),i===void 0?i=this.query:i===null&&(i=U),a===void 0?a=this.fragment:a===null&&(a=U),t===this.scheme&&n===this.authority&&r===this.path&&i===this.query&&a===this.fragment?this:new $t(t,n,r,i,a)}static parse(e,t=!1){let n=Xt.exec(e);return n?new $t(n[2]||U,cn(n[4]||U),cn(n[5]||U),cn(n[7]||U),cn(n[9]||U),t):new $t(U,U,U,U,U)}static file(e){let t=U;if(st&&(e=e.replace(/\\/g,Yt)),e[0]===Yt&&e[1]===Yt){let n=e.indexOf(Yt,2);n===-1?(t=e.substring(2),e=Yt):(t=e.substring(2,n),e=e.substring(n)||Yt)}return new $t(`file`,t,e,U,U)}static from(e){let t=new $t(e.scheme,e.authority,e.path,e.query,e.fragment);return Kt(t,!0),t}static joinPath(t,...n){if(!t.path)throw Error(`[UriError]: cannot call joinPath on URI without path`);let r;return r=st&&t.scheme===`file`?e.file(H.join(rn(t,!0),...n)).path:Mt.join(t.path,...n),t.with({path:r})}toString(e=!1){return an(this,e)}toJSON(){return this}static revive(t){if(!t||t instanceof e)return t;{let e=new $t(t);return e._formatted=t.external,e._fsPath=t._sep===Qt?t.fsPath:null,e}}},Qt=st?1:void 0,$t=class extends Zt{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||=rn(this,!1),this._fsPath}toString(e=!1){return e?an(this,!0):(this._formatted||=an(this,!1),this._formatted)}toJSON(){let e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=Qt),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}},en={58:`%3A`,47:`%2F`,63:`%3F`,35:`%23`,91:`%5B`,93:`%5D`,64:`%40`,33:`%21`,36:`%24`,38:`%26`,39:`%27`,40:`%28`,41:`%29`,42:`%2A`,43:`%2B`,44:`%2C`,59:`%3B`,61:`%3D`,32:`%20`};function tn(e,t,n){let r,i=-1;for(let a=0;a<e.length;a++){let o=e.charCodeAt(a);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||o===45||o===46||o===95||o===126||t&&o===47||n&&o===91||n&&o===93||n&&o===58)i!==-1&&(r+=encodeURIComponent(e.substring(i,a)),i=-1),r!==void 0&&(r+=e.charAt(a));else{r===void 0&&(r=e.substr(0,a));let t=en[o];t===void 0?i===-1&&(i=a):(i!==-1&&(r+=encodeURIComponent(e.substring(i,a)),i=-1),r+=t)}}return i!==-1&&(r+=encodeURIComponent(e.substring(i))),r===void 0?e:r}function nn(e){let t;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);r===35||r===63?(t===void 0&&(t=e.substr(0,n)),t+=en[r]):t!==void 0&&(t+=e[n])}return t===void 0?e:t}function rn(e,t){let n;return n=e.authority&&e.path.length>1&&e.scheme===`file`?`//${e.authority}${e.path}`:e.path.charCodeAt(0)===47&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&e.path.charCodeAt(2)===58?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,st&&(n=n.replace(/\//g,`\\`)),n}function an(e,t){let n=t?nn:tn,r=``,{scheme:i,authority:a,path:o,query:s,fragment:c}=e;if(i&&(r+=i,r+=`:`),(a||i===`file`)&&(r+=Yt,r+=Yt),a){let e=a.indexOf(`@`);if(e!==-1){let t=a.substr(0,e);a=a.substr(e+1),e=t.lastIndexOf(`:`),e===-1?r+=n(t,!1,!1):(r+=n(t.substr(0,e),!1,!1),r+=`:`,r+=n(t.substr(e+1),!1,!0)),r+=`@`}a=a.toLowerCase(),e=a.lastIndexOf(`:`),e===-1?r+=n(a,!1,!0):(r+=n(a.substr(0,e),!1,!0),r+=a.substr(e))}if(o){if(o.length>=3&&o.charCodeAt(0)===47&&o.charCodeAt(2)===58){let e=o.charCodeAt(1);e>=65&&e<=90&&(o=`/${String.fromCharCode(e+32)}:${o.substr(3)}`)}else if(o.length>=2&&o.charCodeAt(1)===58){let e=o.charCodeAt(0);e>=65&&e<=90&&(o=`${String.fromCharCode(e+32)}:${o.substr(2)}`)}r+=n(o,!0,!1)}return s&&(r+=`?`,r+=n(s,!1,!1)),c&&(r+=`#`,r+=t?c:tn(c,!1,!1)),r}function on(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+on(e.substr(3)):e}}var sn=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function cn(e){return e.match(sn)?e.replace(sn,e=>on(e)):e}var W=xe(de(),1),ln=Me(`conformanceService`),un=class extends I{sdk=new Se({requestLib:Se.fetchToRequestLib(fetch)});changed=this._register(new Ve);revision=0;publish=()=>{this.revision++,this.changed.fire()};ruleResource=this._register(new e(this.publish));readmeResource=this._register(new e(this.publish));onDidChange=this.changed.event;getSnapshot=()=>this.revision;get rules(){return this.ruleResource.state}get readme(){return this.readmeResource.state}get readmeId(){return this.readmeResource.key}get loading(){return this.rules.loading||this.readme.loading}refresh(){return this.ruleResource.load(`conformance`,this.sdk.conformance.list)}refreshReadme(e){return this.readmeResource.load(e,()=>this.sdk.conformance.readme(e))}},dn={baseline:`/baselines`,tasks:`/tasks`,changes:`/baseline-changes`,code:`/code-changes`,changelog:`/changelog`,conformance:`/conformance`};function fn(e){return dn[e]}var pn=[{index:!0,loader:({request:e})=>{let t=new URL(e.url).searchParams,n=t.get(`workspace`)===`code`?dn.code:t.get(`workspace`)===`changes`?dn.changes:t.get(`view`)===`baseline`?dn.baseline:t.get(`task`)?`${dn.tasks}/${encodeURIComponent(t.get(`task`))}`:dn.tasks;for(let e of[`workspace`,`view`,`task`])t.delete(e);let r=t.toString();return ie(n+(r?`?`+r:``))}},{path:`baselines`,handle:`baseline`},{path:`tasks`,handle:`tasks`},{path:`tasks/:taskId`,handle:`tasks`},{path:`baseline-changes`,handle:`changes`},{path:`code-changes`,handle:`code`},{path:`changelog`,handle:`changelog`},{path:`conformance`,handle:`conformance`},{path:`*`,handle:`not-found`}];function mn(e){if(e.page===`not-found`)return``;let t=e.page===`tasks`&&e.taskId?`${dn.tasks}/${encodeURIComponent(e.taskId)}`:dn[e.page],n=new URLSearchParams;for(let[t,r]of Object.entries({namespace:e.namespace,case:e.caseId,file:e.file,ref:e.ref,commit:e.commit}))r&&n.set(t,r);return t+(n.size?`?${n}`:``)}function hn(){let e=m(),t=x(),n=ue(),r=Ge(),i=t.at(-1)?.handle??`not-found`,a=j(M),o={baseline:a,tasks:j(le),changes:j(y),code:j(p),changelog:j(re),conformance:j(ln),"not-found":a},s=v(o[i]),[c,l]=(0,W.useState)(()=>{let t=new URLSearchParams(e.search),r={};for(let e of Object.keys(o))r[e]={page:e,taskId:``,namespace:``,caseId:``,file:``,ref:``,commit:``};return r[i]={page:i,taskId:n.taskId??``,namespace:t.get(`namespace`)??``,caseId:t.get(`case`)??``,file:t.get(`file`)??``,ref:t.get(`ref`)??``,commit:t.get(`commit`)??``},r}),u=(0,W.useRef)(c);u.current=c;let d=c[i],f=s.loading,h=i===`conformance`?e.pathname+e.search:mn(d);return(0,W.useEffect)(()=>{!s.loading&&h&&u.current[i]===d&&e.pathname+e.search!==h&&r(h,{replace:!0})},[f,h,d,i,s,e.pathname,e.search,r]),{...d,page:i,loading:f,pathname:h.split(`?`)[0]||e.pathname,href:h||e.pathname,navigate:r,update(e,t=!0){let n={...u.current[i]};for(let[t,r]of Object.entries(e)){let e=t===`case`?`caseId`:t;[`taskId`,`namespace`,`caseId`,`file`,`ref`,`commit`].includes(e)&&(n[e]=r??``)}u.current={...u.current,[i]:n},l(u.current);let a=mn(n);a&&r(a,{replace:t})}}}var gn=Object.prototype.hasOwnProperty;function _n(e,t){return vn(e,t,new Set)}function vn(e,t,n){if(zt(e))return e;let r=t(e);if(r!==void 0)return r;if(Array.isArray(e)){let r=[];for(let i of e)r.push(vn(i,t,n));return r}if(Lt(e)){if(n.has(e))throw Error(`Cannot clone recursive data-structure`);n.add(e);let r={};for(let i in e)gn.call(e,i)&&(r[i]=vn(e[i],t,n));return n.delete(e),r}return e}function yn(e,t){if(e===t)return!0;if(e==null||t==null||typeof e!=typeof t||typeof e!=`object`||Array.isArray(e)!==Array.isArray(t))return!1;let n,r;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(!yn(e[n],t[n]))return!1}else{let i=[];for(r in e)i.push(r);i.sort();let a=[];for(r in t)a.push(r);if(a.sort(),!yn(i,a))return!1;for(n=0;n<i.length;n++)if(!yn(e[i[n]],t[i[n]]))return!1}return!0}function bn(e,t){let n=Object.create(null);return!e||!t||Object.keys(t).forEach(r=>{let i=e[r],a=t[r];yn(i,a)||(n[r]=a)}),n}var xn=Me(`commandService`),Sn=new class{_commands=new Map;_onDidRegisterCommand=new Ve;onDidRegisterCommand=this._onDidRegisterCommand.event;registerCommand(e,t){if(!e)throw Error(`invalid command`);if(typeof e==`string`){if(!t)throw Error(`invalid command`);return this.registerCommand({id:e,handler:t})}if(e.description){let t=[];for(let n of e.description.args)t.push(n.constraint);let n=e.handler;e.handler=function(e,...r){return Vt(r,t),n(e,...r)}}let{id:n}=e,r=this._commands.get(n);r||(r=new at,this._commands.set(n,r));let i=r.unshift(e),a=u(()=>{i(),this._commands.get(n)?.isEmpty()&&this._commands.delete(n)});return this._onDidRegisterCommand.fire(n),a}registerCommandAlias(e,t){return Sn.registerCommand(e,(e,...n)=>e.get(xn).executeCommand(t,...n))}getCommand(e){let t=this._commands.get(e);if(t&&!t.isEmpty())return c.first(t)}getCommands(){let e=new Map;for(let t of this._commands.keys()){let n=this.getCommand(t);n&&e.set(t,n)}return e}};Sn.registerCommand(`noop`,()=>{});function Cn(...e){switch(e.length){case 1:return R(`contextkey.scanner.hint.didYouMean1`,`Did you mean {0}?`,e[0]);case 2:return R(`contextkey.scanner.hint.didYouMean2`,`Did you mean {0} or {1}?`,e[0],e[1]);case 3:return R(`contextkey.scanner.hint.didYouMean3`,`Did you mean {0}, {1} or {2}?`,e[0],e[1],e[2]);default:return}}var wn=R(`contextkey.scanner.hint.didYouForgetToOpenOrCloseQuote`,`Did you forget to open or close the quote?`),Tn=R(`contextkey.scanner.hint.didYouForgetToEscapeSlash`,`Did you forget to escape the '/' (slash) character? Put two backslashes before it to escape, e.g., '\\\\/'.`),En=class e{static getLexeme(e){switch(e.type){case 0:return`(`;case 1:return`)`;case 2:return`!`;case 3:return e.isTripleEq?`===`:`==`;case 4:return e.isTripleEq?`!==`:`!=`;case 5:return`<`;case 6:return`<=`;case 7:return`>=`;case 8:return`>=`;case 9:return`=~`;case 10:return e.lexeme;case 11:return`true`;case 12:return`false`;case 13:return`in`;case 14:return`not`;case 15:return`&&`;case 16:return`||`;case 17:return e.lexeme;case 18:return e.lexeme;case 19:return e.lexeme;case 20:return`EOF`;default:throw Ne(`unhandled token type: ${JSON.stringify(e)}; have you forgotten to add a case?`)}}static _regexFlags=new Set([`i`,`g`,`s`,`m`,`y`,`u`].map(e=>e.charCodeAt(0)));static _keywords=new Map([[`not`,14],[`in`,13],[`false`,12],[`true`,11]]);_input=``;_start=0;_current=0;_tokens=[];_errors=[];get errors(){return this._errors}reset(e){return this._input=e,this._start=0,this._current=0,this._tokens=[],this._errors=[],this}scan(){for(;!this._isAtEnd();)switch(this._start=this._current,this._advance()){case 40:this._addToken(0);break;case 41:this._addToken(1);break;case 33:if(this._match(61)){let e=this._match(61);this._tokens.push({type:4,offset:this._start,isTripleEq:e})}else this._addToken(2);break;case 39:this._quotedString();break;case 47:this._regex();break;case 61:if(this._match(61)){let e=this._match(61);this._tokens.push({type:3,offset:this._start,isTripleEq:e})}else this._match(126)?this._addToken(9):this._error(Cn(`==`,`=~`));break;case 60:this._addToken(this._match(61)?6:5);break;case 62:this._addToken(this._match(61)?8:7);break;case 38:this._match(38)?this._addToken(15):this._error(Cn(`&&`));break;case 124:this._match(124)?this._addToken(16):this._error(Cn(`||`));break;case 32:case 13:case 9:case 10:case 160:break;default:this._string()}return this._start=this._current,this._addToken(20),Array.from(this._tokens)}_match(e){return this._isAtEnd()||this._input.charCodeAt(this._current)!==e?!1:(this._current++,!0)}_advance(){return this._input.charCodeAt(this._current++)}_peek(){return this._isAtEnd()?0:this._input.charCodeAt(this._current)}_addToken(e){this._tokens.push({type:e,offset:this._start})}_error(e){let t=this._start,n=this._input.substring(this._start,this._current),r={type:19,offset:this._start,lexeme:n};this._errors.push({offset:t,lexeme:n,additionalInfo:e}),this._tokens.push(r)}stringRe=/[a-zA-Z0-9_<>\-\./\\:\*\?\+\[\]\^,#@;"%\$\p{L}-]+/uy;_string(){this.stringRe.lastIndex=this._start;let t=this.stringRe.exec(this._input);if(t){this._current=this._start+t[0].length;let n=this._input.substring(this._start,this._current),r=e._keywords.get(n);r?this._addToken(r):this._tokens.push({type:17,lexeme:n,offset:this._start})}}_quotedString(){for(;this._peek()!==39&&!this._isAtEnd();)this._advance();this._isAtEnd()?this._error(wn):(this._advance(),this._tokens.push({type:18,lexeme:this._input.substring(this._start+1,this._current-1),offset:this._start+1}))}_regex(){let t=this._current,n=!1,r=!1;for(;;){if(t>=this._input.length){this._current=t,this._error(Tn);return}let e=this._input.charCodeAt(t);if(n)n=!1;else if(e===47&&!r){t++;break}else e===91?r=!0:e===92?n=!0:e===93&&(r=!1);t++}for(;t<this._input.length&&e._regexFlags.has(this._input.charCodeAt(t));)t++;this._current=t;let i=this._input.substring(this._start,this._current);this._tokens.push({type:10,lexeme:i,offset:this._start})}_isAtEnd(){return this._current>=this._input.length}},Dn=new Map;Dn.set(`false`,!1),Dn.set(`true`,!0),Dn.set(`isMac`,Ee),Dn.set(`isLinux`,Oe),Dn.set(`isWindows`,st),Dn.set(`isWeb`,tt),Dn.set(`isMacNative`,Ee&&!tt),Dn.set(`isEdge`,Ue),Dn.set(`isFirefox`,Le),Dn.set(`isChrome`,we),Dn.set(`isSafari`,pe);var On=Object.prototype.hasOwnProperty,kn={regexParsingWithErrorRecovery:!0},An=R(`contextkey.parser.error.emptyString`,`Empty context key expression`),jn=R(`contextkey.parser.error.emptyString.hint`,`Did you forget to write an expression? You can also put 'false' or 'true' to always evaluate to false or true, respectively.`),Mn=R(`contextkey.parser.error.noInAfterNot`,`'in' after 'not'.`),Nn=R(`contextkey.parser.error.closingParenthesis`,`closing parenthesis ')'`),Pn=R(`contextkey.parser.error.unexpectedToken`,`Unexpected token`),Fn=R(`contextkey.parser.error.unexpectedToken.hint`,`Did you forget to put && or || before the token?`),In=R(`contextkey.parser.error.unexpectedEOF`,`Unexpected end of expression`),Ln=R(`contextkey.parser.error.unexpectedEOF.hint`,`Did you forget to put a context key?`),Rn=class e{_config;static _parseError=Error();_scanner=new En;_tokens=[];_current=0;_parsingErrors=[];get lexingErrors(){return this._scanner.errors}get parsingErrors(){return this._parsingErrors}constructor(e=kn){this._config=e}parse(t){if(t===``)this._parsingErrors.push({message:An,offset:0,lexeme:``,additionalInfo:jn});else{this._tokens=this._scanner.reset(t).scan(),this._current=0,this._parsingErrors=[];try{let t=this._expr();if(!this._isAtEnd()){let t=this._peek(),n=t.type===17?Fn:void 0;throw this._parsingErrors.push({message:Pn,offset:t.offset,lexeme:En.getLexeme(t),additionalInfo:n}),e._parseError}return t}catch(t){if(t!==e._parseError)throw t;return}}}_expr(){return this._or()}_or(){let e=[this._and()];for(;this._matchOne(16);){let t=this._and();e.push(t)}return e.length===1?e[0]:zn.or(...e)}_and(){let e=[this._term()];for(;this._matchOne(15);){let t=this._term();e.push(t)}return e.length===1?e[0]:zn.and(...e)}_term(){if(this._matchOne(2)){let e=this._peek();switch(e.type){case 11:return this._advance(),Hn.INSTANCE;case 12:return this._advance(),Un.INSTANCE;case 0:{this._advance();let e=this._expr();return this._consume(1,Nn),e?.negate()}case 17:return this._advance(),Yn.create(e.lexeme);default:throw this._errExpectedButGot(`KEY | true | false | '(' expression ')'`,e)}}return this._primary()}_primary(){let t=this._peek();switch(t.type){case 11:return this._advance(),zn.true();case 12:return this._advance(),zn.false();case 0:{this._advance();let e=this._expr();return this._consume(1,Nn),e}case 17:{let e=t.lexeme;if(this._advance(),this._matchOne(9)){let t=this._peek();if(!this._config.regexParsingWithErrorRecovery){if(this._advance(),t.type!==10)throw this._errExpectedButGot(`REGEX`,t);let n=t.lexeme,r=n.lastIndexOf(`/`),i=r===n.length-1?void 0:this._removeFlagsGY(n.substring(r+1)),a;try{a=new RegExp(n.substring(1,r),i)}catch{throw this._errExpectedButGot(`REGEX`,t)}return tr.create(e,a)}switch(t.type){case 10:case 19:{let n=[t.lexeme];this._advance();let r=this._peek(),i=0;for(let e=0;e<t.lexeme.length;e++)t.lexeme.charCodeAt(e)===40?i++:t.lexeme.charCodeAt(e)===41&&i--;for(;!this._isAtEnd()&&r.type!==15&&r.type!==16;){switch(r.type){case 0:i++;break;case 1:i--;break;case 10:case 18:for(let e=0;e<r.lexeme.length;e++)r.lexeme.charCodeAt(e)===40?i++:t.lexeme.charCodeAt(e)===41&&i--}if(i<0)break;n.push(En.getLexeme(r)),this._advance(),r=this._peek()}let a=n.join(``),o=a.lastIndexOf(`/`),s=o===a.length-1?void 0:this._removeFlagsGY(a.substring(o+1)),c;try{c=new RegExp(a.substring(1,o),s)}catch{throw this._errExpectedButGot(`REGEX`,t)}return zn.regex(e,c)}case 18:{let n=t.lexeme;this._advance();let r=null;if(!Ft(n)){let e=n.indexOf(`/`),i=n.lastIndexOf(`/`);if(e!==i&&e>=0){let a=n.slice(e+1,i),o=n[i+1]===`i`?`i`:``;try{r=new RegExp(a,o)}catch{throw this._errExpectedButGot(`REGEX`,t)}}}if(r===null)throw this._errExpectedButGot(`REGEX`,t);return tr.create(e,r)}default:throw this._errExpectedButGot(`REGEX`,this._peek())}}if(this._matchOne(14)){this._consume(13,Mn);let t=this._value();return zn.notIn(e,t)}switch(this._peek().type){case 3:{this._advance();let t=this._value();if(this._previous().type===18)return zn.equals(e,t);switch(t){case`true`:return zn.has(e);case`false`:return zn.not(e);default:return zn.equals(e,t)}}case 4:{this._advance();let t=this._value();if(this._previous().type===18)return zn.notEquals(e,t);switch(t){case`true`:return zn.not(e);case`false`:return zn.has(e);default:return zn.notEquals(e,t)}}case 5:return this._advance(),$n.create(e,this._value());case 6:return this._advance(),er.create(e,this._value());case 7:return this._advance(),Zn.create(e,this._value());case 8:return this._advance(),Qn.create(e,this._value());case 13:return this._advance(),zn.in(e,this._value());default:return zn.has(e)}}case 20:throw this._parsingErrors.push({message:In,offset:t.offset,lexeme:``,additionalInfo:Ln}),e._parseError;default:throw this._errExpectedButGot(`true | false | KEY
3
3
  | KEY '=~' REGEX
4
4
  | KEY ('==' | '!=' | '<' | '<=' | '>' | '>=' | 'in' | 'not' 'in') value`,this._peek())}}_value(){let e=this._peek();switch(e.type){case 17:case 18:return this._advance(),e.lexeme;case 11:return this._advance(),`true`;case 12:return this._advance(),`false`;case 13:return this._advance(),`in`;default:return``}}_flagsGYRe=/g|y/g;_removeFlagsGY(e){return e.replaceAll(this._flagsGYRe,``)}_previous(){return this._tokens[this._current-1]}_matchOne(e){return this._check(e)?(this._advance(),!0):!1}_advance(){return this._isAtEnd()||this._current++,this._previous()}_consume(e,t){if(this._check(e))return this._advance();throw this._errExpectedButGot(t,this._peek())}_errExpectedButGot(t,n,r){let i=R(`contextkey.parser.error.expectedButGot`,`Expected: {0}
5
- Received: '{1}'.`,t,En.getLexeme(n)),a=n.offset,o=En.getLexeme(n);return this._parsingErrors.push({message:i,offset:a,lexeme:o,additionalInfo:r}),e._parseError}_check(e){return this._peek().type===e}_peek(){return this._tokens[this._current]}_isAtEnd(){return this._peek().type===20}},zn=class{static false(){return Hn.INSTANCE}static true(){return Un.INSTANCE}static has(e){return Wn.create(e)}static equals(e,t){return Gn.create(e,t)}static notEquals(e,t){return Jn.create(e,t)}static regex(e,t){return tr.create(e,t)}static in(e,t){return Kn.create(e,t)}static notIn(e,t){return qn.create(e,t)}static not(e){return Yn.create(e)}static and(...e){return ir.create(e,null,!0)}static or(...e){return ar.create(e,null,!0)}static greater(e,t){return Zn.create(e,t)}static greaterEquals(e,t){return Qn.create(e,t)}static smaller(e,t){return $n.create(e,t)}static smallerEquals(e,t){return er.create(e,t)}static _parser=new Rn({regexParsingWithErrorRecovery:!1});static deserialize(e){if(e!=null)return this._parser.parse(e)}};function Bn(e,t){let n=e?e.substituteConstants():void 0,r=t?t.substituteConstants():void 0;return!n&&!r?!0:!n||!r?!1:n.equals(r)}function Vn(e,t){return e.cmp(t)}var Hn=class e{static INSTANCE=new e;type=0;constructor(){}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!1}serialize(){return`false`}keys(){return[]}map(e){return this}negate(){return Un.INSTANCE}},Un=class e{static INSTANCE=new e;type=1;constructor(){}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!0}serialize(){return`true`}keys(){return[]}map(e){return this}negate(){return Hn.INSTANCE}},Wn=class e{key;negated;static create(t,n=null){let r=Dn.get(t);return typeof r==`boolean`?r?Un.INSTANCE:Hn.INSTANCE:new e(t,n)}type=2;constructor(e,t){this.key=e,this.negated=t}cmp(e){return e.type===this.type?cr(this.key,e.key):this.type-e.type}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){let e=Dn.get(this.key);return typeof e==`boolean`?e?Un.INSTANCE:Hn.INSTANCE:this}evaluate(e){return!!e.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}map(e){return e.mapDefined(this.key)}negate(){return this.negated||=Yn.create(this.key,this),this.negated}},Gn=class e{key;value;negated;static create(t,n,r=null){if(typeof n==`boolean`)return n?Wn.create(t,r):Yn.create(t,r);let i=Dn.get(t);return typeof i==`boolean`?n===(i?`true`:`false`)?Un.INSTANCE:Hn.INSTANCE:new e(t,n,r)}type=4;constructor(e,t,n){this.key=e,this.value=t,this.negated=n}cmp(e){return e.type===this.type?lr(this.key,this.value,e.key,e.value):this.type-e.type}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){let e=Dn.get(this.key);if(typeof e==`boolean`){let t=e?`true`:`false`;return this.value===t?Un.INSTANCE:Hn.INSTANCE}return this}evaluate(e){return e.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}map(e){return e.mapEquals(this.key,this.value)}negate(){return this.negated||=Jn.create(this.key,this.value,this),this.negated}},Kn=class e{key;valueKey;static create(t,n){return new e(t,n)}type=10;negated=null;constructor(e,t){this.key=e,this.valueKey=t}cmp(e){return e.type===this.type?lr(this.key,this.valueKey,e.key,e.valueKey):this.type-e.type}equals(e){return e.type===this.type&&this.key===e.key&&this.valueKey===e.valueKey}substituteConstants(){return this}evaluate(e){let t=e.getValue(this.valueKey),n=e.getValue(this.key);return Array.isArray(t)?t.includes(n):typeof n==`string`&&typeof t==`object`&&t?On.call(t,n):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}map(e){return e.mapIn(this.key,this.valueKey)}negate(){return this.negated||=qn.create(this.key,this.valueKey),this.negated}},qn=class e{key;valueKey;static create(t,n){return new e(t,n)}type=11;_negated;constructor(e,t){this.key=e,this.valueKey=t,this._negated=Kn.create(e,t)}cmp(e){return e.type===this.type?this._negated.cmp(e._negated):this.type-e.type}equals(e){return e.type===this.type&&this._negated.equals(e._negated)}substituteConstants(){return this}evaluate(e){return!this._negated.evaluate(e)}serialize(){return`${this.key} not in '${this.valueKey}'`}keys(){return this._negated.keys()}map(e){return e.mapNotIn(this.key,this.valueKey)}negate(){return this._negated}},Jn=class e{key;value;negated;static create(t,n,r=null){if(typeof n==`boolean`)return n?Yn.create(t,r):Wn.create(t,r);let i=Dn.get(t);return typeof i==`boolean`?n===(i?`true`:`false`)?Hn.INSTANCE:Un.INSTANCE:new e(t,n,r)}type=5;constructor(e,t,n){this.key=e,this.value=t,this.negated=n}cmp(e){return e.type===this.type?lr(this.key,this.value,e.key,e.value):this.type-e.type}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){let e=Dn.get(this.key);if(typeof e==`boolean`){let t=e?`true`:`false`;return this.value===t?Hn.INSTANCE:Un.INSTANCE}return this}evaluate(e){return e.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}map(e){return e.mapNotEquals(this.key,this.value)}negate(){return this.negated||=Gn.create(this.key,this.value,this),this.negated}},Yn=class e{key;negated;static create(t,n=null){let r=Dn.get(t);return typeof r==`boolean`?r?Hn.INSTANCE:Un.INSTANCE:new e(t,n)}type=3;constructor(e,t){this.key=e,this.negated=t}cmp(e){return e.type===this.type?cr(this.key,e.key):this.type-e.type}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){let e=Dn.get(this.key);return typeof e==`boolean`?e?Hn.INSTANCE:Un.INSTANCE:this}evaluate(e){return!e.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}map(e){return e.mapNot(this.key)}negate(){return this.negated||=Wn.create(this.key,this),this.negated}};function Xn(e,t){if(typeof e==`string`){let t=parseFloat(e);isNaN(t)||(e=t)}return typeof e==`string`||typeof e==`number`?t(e):Hn.INSTANCE}var Zn=class e{key;value;negated;static create(t,n,r=null){return Xn(n,n=>new e(t,n,r))}type=12;constructor(e,t,n){this.key=e,this.value=t,this.negated=n}cmp(e){return e.type===this.type?lr(this.key,this.value,e.key,e.value):this.type-e.type}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){return this}evaluate(e){return typeof this.value!=`string`&&parseFloat(e.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}map(e){return e.mapGreater(this.key,this.value)}negate(){return this.negated||=er.create(this.key,this.value,this),this.negated}},Qn=class e{key;value;negated;static create(t,n,r=null){return Xn(n,n=>new e(t,n,r))}type=13;constructor(e,t,n){this.key=e,this.value=t,this.negated=n}cmp(e){return e.type===this.type?lr(this.key,this.value,e.key,e.value):this.type-e.type}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){return this}evaluate(e){return typeof this.value!=`string`&&parseFloat(e.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}map(e){return e.mapGreaterEquals(this.key,this.value)}negate(){return this.negated||=$n.create(this.key,this.value,this),this.negated}},$n=class e{key;value;negated;static create(t,n,r=null){return Xn(n,n=>new e(t,n,r))}type=14;constructor(e,t,n){this.key=e,this.value=t,this.negated=n}cmp(e){return e.type===this.type?lr(this.key,this.value,e.key,e.value):this.type-e.type}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){return this}evaluate(e){return typeof this.value!=`string`&&parseFloat(e.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}map(e){return e.mapSmaller(this.key,this.value)}negate(){return this.negated||=Qn.create(this.key,this.value,this),this.negated}},er=class e{key;value;negated;static create(t,n,r=null){return Xn(n,n=>new e(t,n,r))}type=15;constructor(e,t,n){this.key=e,this.value=t,this.negated=n}cmp(e){return e.type===this.type?lr(this.key,this.value,e.key,e.value):this.type-e.type}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){return this}evaluate(e){return typeof this.value!=`string`&&parseFloat(e.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}map(e){return e.mapSmallerEquals(this.key,this.value)}negate(){return this.negated||=Zn.create(this.key,this.value,this),this.negated}},tr=class e{key;regexp;static create(t,n){return new e(t,n)}type=7;negated=null;constructor(e,t){this.key=e,this.regexp=t}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.key<e.key)return-1;if(this.key>e.key)return 1;let t=this.regexp?this.regexp.source:``,n=e.regexp?e.regexp.source:``;return t<n?-1:+(t>n)}equals(e){if(e.type===this.type){let t=this.regexp?this.regexp.source:``,n=e.regexp?e.regexp.source:``;return this.key===e.key&&t===n}return!1}substituteConstants(){return this}evaluate(e){let t=e.getValue(this.key);return this.regexp?this.regexp.test(t):!1}serialize(){let e=this.regexp?`/${this.regexp.source}/${this.regexp.flags}`:`/invalid/`;return`${this.key} =~ ${e}`}keys(){return[this.key]}map(e){return e.mapRegex(this.key,this.regexp)}negate(){return this.negated||=nr.create(this),this.negated}},nr=class e{_actual;static create(t){return new e(t)}type=8;constructor(e){this._actual=e}cmp(e){return e.type===this.type?this._actual.cmp(e._actual):this.type-e.type}equals(e){return e.type===this.type&&this._actual.equals(e._actual)}substituteConstants(){return this}evaluate(e){return!this._actual.evaluate(e)}serialize(){return`!(${this._actual.serialize()})`}keys(){return this._actual.keys()}map(t){return new e(this._actual.map(t))}negate(){return this._actual}};function rr(e){let t=null;for(let n=0,r=e.length;n<r;n++){let r=e[n].substituteConstants();if(e[n]!==r&&t===null){t=[];for(let r=0;r<n;r++)t[r]=e[r]}t!==null&&(t[n]=r)}return t===null?e:t}var ir=class e{expr;negated;static create(t,n,r){return e._normalizeArr(t,n,r)}type=6;constructor(e,t){this.expr=e,this.negated=t}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let t=0,n=this.expr.length;t<n;t++){let n=Vn(this.expr[t],e.expr[t]);if(n!==0)return n}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1}substituteConstants(){let t=rr(this.expr);return t===this.expr?this:e.create(t,this.negated,!1)}evaluate(e){for(let t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].evaluate(e))return!1;return!0}static _normalizeArr(t,n,r){let i=[],a=!1;for(let e of t)if(e){if(e.type===1)a=!0;else{if(e.type===0)return Hn.INSTANCE;e.type===6?i.push(...e.expr):i.push(e)}}if(i.length===0&&a)return Un.INSTANCE;if(i.length!==0){if(i.length===1)return i[0];i.sort(Vn);for(let e=1;e<i.length;e++)i[e-1].equals(i[e])&&(i.splice(e,1),e--);if(i.length===1)return i[0];for(;i.length>1;){let t=i[i.length-1];if(t.type!==9)break;i.pop();let n=i.pop(),a=i.length===0,o=ar.create(t.expr.map(t=>e.create([t,n],null,r)),null,a);o&&(i.push(o),i.sort(Vn))}if(i.length===1)return i[0];if(r){for(let e=0;e<i.length;e++)for(let t=e+1;t<i.length;t++)if(i[e].negate().equals(i[t]))return Hn.INSTANCE;if(i.length===1)return i[0]}return new e(i,n)}}serialize(){return this.expr.map(e=>e.serialize()).join(` && `)}keys(){let e=[];for(let t of this.expr)e.push(...t.keys());return e}map(t){return new e(this.expr.map(e=>e.map(t)),null)}negate(){if(!this.negated){let e=[];for(let t of this.expr)e.push(t.negate());this.negated=ar.create(e,this,!0)}return this.negated}},ar=class e{expr;negated;static create(t,n,r){return e._normalizeArr(t,n,r)}type=9;constructor(e,t){this.expr=e,this.negated=t}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let t=0,n=this.expr.length;t<n;t++){let n=Vn(this.expr[t],e.expr[t]);if(n!==0)return n}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1}substituteConstants(){let t=rr(this.expr);return t===this.expr?this:e.create(t,this.negated,!1)}evaluate(e){for(let t=0,n=this.expr.length;t<n;t++)if(this.expr[t].evaluate(e))return!0;return!1}static _normalizeArr(t,n,r){let i=[],a=!1;if(t){for(let e=0,n=t.length;e<n;e++){let n=t[e];if(n){if(n.type===0)a=!0;else{if(n.type===1)return Un.INSTANCE;n.type===9?i=i.concat(n.expr):i.push(n)}}}if(i.length===0&&a)return Hn.INSTANCE;i.sort(Vn)}if(i.length!==0){if(i.length===1)return i[0];for(let e=1;e<i.length;e++)i[e-1].equals(i[e])&&(i.splice(e,1),e--);if(i.length===1)return i[0];if(r){for(let e=0;e<i.length;e++)for(let t=e+1;t<i.length;t++)if(i[e].negate().equals(i[t]))return Un.INSTANCE;if(i.length===1)return i[0]}return new e(i,n)}}serialize(){return this.expr.map(e=>e.serialize()).join(` || `)}keys(){let e=[];for(let t of this.expr)e.push(...t.keys());return e}map(t){return new e(this.expr.map(e=>e.map(t)),null)}negate(){if(!this.negated){let t=[];for(let e of this.expr)t.push(e.negate());for(;t.length>1;){let n=t.shift(),r=t.shift(),i=[];for(let e of fr(n))for(let t of fr(r))i.push(ir.create([e,t],null,!1));t.unshift(e.create(i,null,!1))}this.negated=e.create(t,this,!0)}return this.negated}},or=class e extends Wn{static _info=[];static all(){return e._info.values()}_defaultValue;constructor(t,n,r){super(t,null),this._defaultValue=n,typeof r==`object`?e._info.push({...r,key:t}):r!==!0&&e._info.push({key:t,description:r,type:n==null?void 0:typeof n})}bindTo(e){return e.createKey(this.key,this._defaultValue)}getValue(e){return e.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(e){return Gn.create(this.key,e)}notEqualsTo(e){return Jn.create(this.key,e)}},sr=Me(`contextKeyService`);function cr(e,t){return e<t?-1:+(e>t)}function lr(e,t,n,r){return e<n?-1:e>n?1:t<r?-1:+(t>r)}function ur(e,t){if(e.type===0||t.type===1)return!0;if(e.type===9)return t.type===9&&dr(e.expr,t.expr);if(t.type===9){for(let n of t.expr)if(ur(e,n))return!0;return!1}if(e.type===6){if(t.type===6)return dr(t.expr,e.expr);for(let n of e.expr)if(ur(n,t))return!0;return!1}return e.equals(t)}function dr(e,t){let n=0,r=0;for(;n<e.length&&r<t.length;){let i=e[n].cmp(t[r]);if(i<0)return!1;i===0&&n++,r++}return n===e.length}function fr(e){return e.type===9?e.expr:[e]}var pr=`data-keybinding-context`,mr=class{_parent;_value;_id;constructor(e,t){this._id=e,this._parent=t,this._value=Object.create(null),this._value._contextId=e}get value(){return{...this._value}}setValue(e,t){return this._value[e]!==t&&(this._value[e]=t,!0)}removeValue(e){return e in this._value&&(delete this._value[e],!0)}getValue(e){let t=this._value[e];return t===void 0&&this._parent?this._parent.getValue(e):t}updateParent(e){this._parent=e}collectAllValues(){let e=this._parent?this._parent.collectAllValues():Object.create(null);return e={...e,...this._value},delete e._contextId,e}},hr=class e extends mr{static INSTANCE=new e;constructor(){super(-1,null)}setValue(e,t){return!1}removeValue(e){return!1}getValue(e){}collectAllValues(){return Object.create(null)}},gr=class{_service;_key;_defaultValue;constructor(e,t,n){this._service=e,this._key=t,this._defaultValue=n,this.reset()}set(e){this._service.setContext(this._key,e)}reset(){this._defaultValue===void 0?this._service.removeContext(this._key):this._service.setContext(this._key,this._defaultValue)}get(){return this._service.getContextKeyValue(this._key)}},_r=class{key;constructor(e){this.key=e}affectsSome(e){return e.has(this.key)}allKeysContainedIn(e){return this.affectsSome(e)}},vr=class{keys;constructor(e){this.keys=e}affectsSome(e){for(let t of this.keys)if(e.has(t))return!0;return!1}allKeysContainedIn(e){return this.keys.every(t=>e.has(t))}},yr=class{events;constructor(e){this.events=e}affectsSome(e){for(let t of this.events)if(t.affectsSome(e))return!0;return!1}allKeysContainedIn(e){return this.events.every(t=>t.allKeysContainedIn(e))}};function br(e,t){return e.allKeysContainedIn(new Set(Object.keys(t)))}var xr=class{_isDisposed;_myContextId;_onDidChangeContext=new ve({merge:e=>new yr(e)});onDidChangeContext=this._onDidChangeContext.event;constructor(e){this._isDisposed=!1,this._myContextId=e}get contextId(){return this._myContextId}createKey(e,t){if(this._isDisposed)throw Error(`AbstractContextKeyService has been disposed`);return new gr(this,e,t)}bufferChangeEvents(e){this._onDidChangeContext.pause();try{e()}finally{this._onDidChangeContext.resume()}}createScoped(e){if(this._isDisposed)throw Error(`AbstractContextKeyService has been disposed`);return new Cr(this,e)}createOverlay(e=c.empty()){if(this._isDisposed)throw Error(`AbstractContextKeyService has been disposed`);return new Tr(this,e)}contextMatchesRules(e){if(this._isDisposed)throw Error(`AbstractContextKeyService has been disposed`);let t=this.getContextValuesContainer(this._myContextId);return!e||e.evaluate(t)}getContextKeyValue(e){if(!this._isDisposed)return this.getContextValuesContainer(this._myContextId).getValue(e)}setContext(e,t){if(this._isDisposed)return;let n=this.getContextValuesContainer(this._myContextId);n&&n.setValue(e,t)&&this._onDidChangeContext.fire(new _r(e))}removeContext(e){this._isDisposed||this.getContextValuesContainer(this._myContextId).removeValue(e)&&this._onDidChangeContext.fire(new _r(e))}getContext(e){return this._isDisposed?hr.INSTANCE:this.getContextValuesContainer(Er(e))}},Sr=class extends xr{_lastContextId;_contexts=new Map;_toDispose=new o;constructor(){super(0),this._lastContextId=0;let e=new mr(this._myContextId,null);this._contexts.set(this._myContextId,e)}dispose(){this._onDidChangeContext.dispose(),this._isDisposed=!0,this._toDispose.dispose()}getContextValuesContainer(e){return this._isDisposed?hr.INSTANCE:this._contexts.get(e)||hr.INSTANCE}createChildContext(e=this._myContextId){if(this._isDisposed)throw Error(`ContextKeyService has been disposed`);let t=++this._lastContextId;return this._contexts.set(t,new mr(t,this.getContextValuesContainer(e))),t}disposeContext(e){this._isDisposed||this._contexts.delete(e)}updateParent(e){throw Error(`Cannot update parent of root ContextKeyService`)}},Cr=class extends xr{_parent;_domNode;_parentChangeListener=new rt;constructor(e,t){if(super(e.createChildContext()),this._parent=e,this._updateParentChangeListener(),this._domNode=t,this._domNode.hasAttribute(pr)){let e=``;this._domNode.classList&&(e=Array.from(this._domNode.classList.values()).join(`, `)),console.error(`Element already has context attribute${e?`: `+e:``}`)}this._domNode.setAttribute(pr,String(this._myContextId))}_updateParentChangeListener(){this._parentChangeListener.value=this._parent.onDidChangeContext(e=>{let t=this._parent.getContextValuesContainer(this._myContextId).value;br(e,t)||this._onDidChangeContext.fire(e)})}dispose(){this._isDisposed||=(this._onDidChangeContext.dispose(),this._parent.disposeContext(this._myContextId),this._parentChangeListener.dispose(),this._domNode.removeAttribute(pr),!0)}getContextValuesContainer(e){return this._isDisposed?hr.INSTANCE:this._parent.getContextValuesContainer(e)}createChildContext(e=this._myContextId){if(this._isDisposed)throw Error(`ScopedContextKeyService has been disposed`);return this._parent.createChildContext(e)}disposeContext(e){this._isDisposed||this._parent.disposeContext(e)}updateParent(e){if(this._parent===e)return;let t=this._parent.getContextValuesContainer(this._myContextId),n=t.collectAllValues();this._parent=e,this._updateParentChangeListener();let r=this._parent.getContextValuesContainer(this._parent.contextId);t.updateParent(r);let i=t.collectAllValues(),a={...bn(n,i),...bn(i,n)},o=Object.keys(a);this._onDidChangeContext.fire(new vr(o))}},wr=class{parent;overlay;constructor(e,t){this.parent=e,this.overlay=t}getValue(e){return this.overlay.has(e)?this.overlay.get(e):this.parent.getValue(e)}},Tr=class e{parent;overlay;get contextId(){return this.parent.contextId}get onDidChangeContext(){return this.parent.onDidChangeContext}constructor(e,t){this.parent=e,this.overlay=new Map(t)}bufferChangeEvents(e){this.parent.bufferChangeEvents(e)}createKey(){throw Error(`Not supported.`)}getContext(e){return new wr(this.parent.getContext(e),this.overlay)}getContextValuesContainer(e){return new wr(this.parent.getContextValuesContainer(e),this.overlay)}contextMatchesRules(e){let t=this.getContextValuesContainer(this.contextId);return!e||e.evaluate(t)}getContextKeyValue(e){return this.overlay.has(e)?this.overlay.get(e):this.parent.getContextKeyValue(e)}createScoped(){throw Error(`Not supported.`)}createOverlay(t=c.empty()){return new e(this,t)}updateParent(){throw Error(`Not supported.`)}};function Er(e){for(;e;){if(e.hasAttribute(pr)){let t=e.getAttribute(pr);return t?parseInt(t,10):NaN}e=e.parentElement}return 0}function Dr(e,t,n){e.get(sr).createKey(String(t),Or(n))}function Or(e){return _n(e,e=>{if(typeof e==`object`&&e.$mid===1)return Zt.revive(e).toString();if(e instanceof Zt)return e.toString()})}Sn.registerCommand(`_setContext`,Dr),Sn.registerCommand({id:`getContextKeyInfo`,handler(){return[...or.all()].sort((e,t)=>e.key.localeCompare(t.key))},description:{description:R(`getContextKeyInfo`,`A command that returns information about context keys`),args:[]}}),Sn.registerCommand(`_generateContextKeyInfo`,function(){let e=[],t=new Set;for(let n of or.all())t.has(n.key)||(t.add(n.key),e.push(n));e.sort((e,t)=>e.key.localeCompare(t.key)),console.log(JSON.stringify(e,void 0,2))});var kr=class e{static INSTANCE=new e;_zoomLevel=0;getZoomLevel(){return this._zoomLevel}setZoomLevel(e,t){this._zoomLevel!==e&&(this._zoomLevel=e)}_zoomFactor=1;getZoomFactor(){return this._zoomFactor}setZoomFactor(e){this._zoomFactor=e}_fullscreen=!1;_onDidChangeFullscreen=new Ve;onDidChangeFullscreen=this._onDidChangeFullscreen.event;setFullscreen(e){this._fullscreen!==e&&(this._fullscreen=e,this._onDidChangeFullscreen.fire())}isFullscreen(){return this._fullscreen}},Ar=class extends I{_onDidChange=this._register(new Ve);onDidChange=this._onDidChange.event;_listener;_mediaQueryList;constructor(){super(),this._listener=()=>this._handleChange(!0),this._mediaQueryList=null,this._handleChange(!1)}_handleChange(e){this._mediaQueryList?.removeEventListener(`change`,this._listener),this._mediaQueryList=window.matchMedia(`(resolution: ${window.devicePixelRatio}dppx)`),this._mediaQueryList.addEventListener(`change`,this._listener),e&&this._onDidChange.fire()}},jr=class extends I{_onDidChange=this._register(new Ve);onDidChange=this._onDidChange.event;_value;get value(){return this._value}constructor(){super(),this._value=this._getPixelRatio();let e=this._register(new Ar);this._register(e.onDidChange(()=>{this._value=this._getPixelRatio(),this._onDidChange.fire(this._value)}))}_getPixelRatio(){let e=document.createElement(`canvas`).getContext(`2d`);return(window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1)}},Mr=class{_pixelRatioMonitor=null;_getOrCreatePixelRatioMonitor(){return this._pixelRatioMonitor||=ne(new jr),this._pixelRatioMonitor}get value(){return this._getOrCreatePixelRatioMonitor().value}get onDidChange(){return this._getOrCreatePixelRatioMonitor().onDidChange}};function Nr(e,t){typeof e==`string`&&(e=window.matchMedia(e)),e.addEventListener(`change`,t)}new Mr,kr.INSTANCE.onDidChangeFullscreen;var Pr=navigator.userAgent,Fr=Pr.indexOf(`Firefox`)>=0,Ir=Pr.indexOf(`AppleWebKit`)>=0;!(Pr.indexOf(`Chrome`)>=0)&&Pr.indexOf(`Safari`),Pr.indexOf(`Electron/`),Pr.indexOf(`Android`);var Lr=!1;if(window.matchMedia){let e=window.matchMedia(`(display-mode: standalone) or (display-mode: window-controls-overlay)`),t=window.matchMedia(`(display-mode: fullscreen)`);Lr=e.matches,Nr(e,({matches:e})=>{Lr&&t.matches||(Lr=e)})}var G;(function(e){e[e.DependsOnKbLayout=-1]=`DependsOnKbLayout`,e[e.Unknown=0]=`Unknown`,e[e.Backspace=1]=`Backspace`,e[e.Tab=2]=`Tab`,e[e.Enter=3]=`Enter`,e[e.Shift=4]=`Shift`,e[e.Ctrl=5]=`Ctrl`,e[e.Alt=6]=`Alt`,e[e.PauseBreak=7]=`PauseBreak`,e[e.CapsLock=8]=`CapsLock`,e[e.Escape=9]=`Escape`,e[e.Space=10]=`Space`,e[e.PageUp=11]=`PageUp`,e[e.PageDown=12]=`PageDown`,e[e.End=13]=`End`,e[e.Home=14]=`Home`,e[e.LeftArrow=15]=`LeftArrow`,e[e.UpArrow=16]=`UpArrow`,e[e.RightArrow=17]=`RightArrow`,e[e.DownArrow=18]=`DownArrow`,e[e.Insert=19]=`Insert`,e[e.Delete=20]=`Delete`,e[e.Digit0=21]=`Digit0`,e[e.Digit1=22]=`Digit1`,e[e.Digit2=23]=`Digit2`,e[e.Digit3=24]=`Digit3`,e[e.Digit4=25]=`Digit4`,e[e.Digit5=26]=`Digit5`,e[e.Digit6=27]=`Digit6`,e[e.Digit7=28]=`Digit7`,e[e.Digit8=29]=`Digit8`,e[e.Digit9=30]=`Digit9`,e[e.KeyA=31]=`KeyA`,e[e.KeyB=32]=`KeyB`,e[e.KeyC=33]=`KeyC`,e[e.KeyD=34]=`KeyD`,e[e.KeyE=35]=`KeyE`,e[e.KeyF=36]=`KeyF`,e[e.KeyG=37]=`KeyG`,e[e.KeyH=38]=`KeyH`,e[e.KeyI=39]=`KeyI`,e[e.KeyJ=40]=`KeyJ`,e[e.KeyK=41]=`KeyK`,e[e.KeyL=42]=`KeyL`,e[e.KeyM=43]=`KeyM`,e[e.KeyN=44]=`KeyN`,e[e.KeyO=45]=`KeyO`,e[e.KeyP=46]=`KeyP`,e[e.KeyQ=47]=`KeyQ`,e[e.KeyR=48]=`KeyR`,e[e.KeyS=49]=`KeyS`,e[e.KeyT=50]=`KeyT`,e[e.KeyU=51]=`KeyU`,e[e.KeyV=52]=`KeyV`,e[e.KeyW=53]=`KeyW`,e[e.KeyX=54]=`KeyX`,e[e.KeyY=55]=`KeyY`,e[e.KeyZ=56]=`KeyZ`,e[e.Meta=57]=`Meta`,e[e.ContextMenu=58]=`ContextMenu`,e[e.F1=59]=`F1`,e[e.F2=60]=`F2`,e[e.F3=61]=`F3`,e[e.F4=62]=`F4`,e[e.F5=63]=`F5`,e[e.F6=64]=`F6`,e[e.F7=65]=`F7`,e[e.F8=66]=`F8`,e[e.F9=67]=`F9`,e[e.F10=68]=`F10`,e[e.F11=69]=`F11`,e[e.F12=70]=`F12`,e[e.F13=71]=`F13`,e[e.F14=72]=`F14`,e[e.F15=73]=`F15`,e[e.F16=74]=`F16`,e[e.F17=75]=`F17`,e[e.F18=76]=`F18`,e[e.F19=77]=`F19`,e[e.F20=78]=`F20`,e[e.F21=79]=`F21`,e[e.F22=80]=`F22`,e[e.F23=81]=`F23`,e[e.F24=82]=`F24`,e[e.NumLock=83]=`NumLock`,e[e.ScrollLock=84]=`ScrollLock`,e[e.Semicolon=85]=`Semicolon`,e[e.Equal=86]=`Equal`,e[e.Comma=87]=`Comma`,e[e.Minus=88]=`Minus`,e[e.Period=89]=`Period`,e[e.Slash=90]=`Slash`,e[e.Backquote=91]=`Backquote`,e[e.BracketLeft=92]=`BracketLeft`,e[e.Backslash=93]=`Backslash`,e[e.BracketRight=94]=`BracketRight`,e[e.Quote=95]=`Quote`,e[e.OEM_8=96]=`OEM_8`,e[e.IntlBackslash=97]=`IntlBackslash`,e[e.Numpad0=98]=`Numpad0`,e[e.Numpad1=99]=`Numpad1`,e[e.Numpad2=100]=`Numpad2`,e[e.Numpad3=101]=`Numpad3`,e[e.Numpad4=102]=`Numpad4`,e[e.Numpad5=103]=`Numpad5`,e[e.Numpad6=104]=`Numpad6`,e[e.Numpad7=105]=`Numpad7`,e[e.Numpad8=106]=`Numpad8`,e[e.Numpad9=107]=`Numpad9`,e[e.NumpadMultiply=108]=`NumpadMultiply`,e[e.NumpadAdd=109]=`NumpadAdd`,e[e.NUMPAD_SEPARATOR=110]=`NUMPAD_SEPARATOR`,e[e.NumpadSubtract=111]=`NumpadSubtract`,e[e.NumpadDecimal=112]=`NumpadDecimal`,e[e.NumpadDivide=113]=`NumpadDivide`,e[e.KEY_IN_COMPOSITION=114]=`KEY_IN_COMPOSITION`,e[e.ABNT_C1=115]=`ABNT_C1`,e[e.ABNT_C2=116]=`ABNT_C2`,e[e.AudioVolumeMute=117]=`AudioVolumeMute`,e[e.AudioVolumeUp=118]=`AudioVolumeUp`,e[e.AudioVolumeDown=119]=`AudioVolumeDown`,e[e.BrowserSearch=120]=`BrowserSearch`,e[e.BrowserHome=121]=`BrowserHome`,e[e.BrowserBack=122]=`BrowserBack`,e[e.BrowserForward=123]=`BrowserForward`,e[e.MediaTrackNext=124]=`MediaTrackNext`,e[e.MediaTrackPrevious=125]=`MediaTrackPrevious`,e[e.MediaStop=126]=`MediaStop`,e[e.MediaPlayPause=127]=`MediaPlayPause`,e[e.LaunchMediaPlayer=128]=`LaunchMediaPlayer`,e[e.LaunchMail=129]=`LaunchMail`,e[e.LaunchApp2=130]=`LaunchApp2`,e[e.Clear=131]=`Clear`,e[e.MAX_VALUE=132]=`MAX_VALUE`})(G||={});var Rr=class{_keyCodeToStr;_strToKeyCode;constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||G.Unknown}},zr=new Rr,Br=new Rr,Vr=new Rr,Hr=Array(230),Ur={},Wr=[],Gr=Object.create(null),Kr=Object.create(null),qr=[],Jr=[];for(let e=0;e<=193;e++)qr[e]=G.DependsOnKbLayout;for(let e=0;e<=G.MAX_VALUE;e++)Jr[e]=-1;(function(){let e=[[1,0,`None`,G.Unknown,`unknown`,0,`VK_UNKNOWN`,``,``],[1,1,`Hyper`,G.Unknown,``,0,``,``,``],[1,2,`Super`,G.Unknown,``,0,``,``,``],[1,3,`Fn`,G.Unknown,``,0,``,``,``],[1,4,`FnLock`,G.Unknown,``,0,``,``,``],[1,5,`Suspend`,G.Unknown,``,0,``,``,``],[1,6,`Resume`,G.Unknown,``,0,``,``,``],[1,7,`Turbo`,G.Unknown,``,0,``,``,``],[1,8,`Sleep`,G.Unknown,``,0,`VK_SLEEP`,``,``],[1,9,`WakeUp`,G.Unknown,``,0,``,``,``],[0,10,`KeyA`,G.KeyA,`A`,65,`VK_A`,``,``],[0,11,`KeyB`,G.KeyB,`B`,66,`VK_B`,``,``],[0,12,`KeyC`,G.KeyC,`C`,67,`VK_C`,``,``],[0,13,`KeyD`,G.KeyD,`D`,68,`VK_D`,``,``],[0,14,`KeyE`,G.KeyE,`E`,69,`VK_E`,``,``],[0,15,`KeyF`,G.KeyF,`F`,70,`VK_F`,``,``],[0,16,`KeyG`,G.KeyG,`G`,71,`VK_G`,``,``],[0,17,`KeyH`,G.KeyH,`H`,72,`VK_H`,``,``],[0,18,`KeyI`,G.KeyI,`I`,73,`VK_I`,``,``],[0,19,`KeyJ`,G.KeyJ,`J`,74,`VK_J`,``,``],[0,20,`KeyK`,G.KeyK,`K`,75,`VK_K`,``,``],[0,21,`KeyL`,G.KeyL,`L`,76,`VK_L`,``,``],[0,22,`KeyM`,G.KeyM,`M`,77,`VK_M`,``,``],[0,23,`KeyN`,G.KeyN,`N`,78,`VK_N`,``,``],[0,24,`KeyO`,G.KeyO,`O`,79,`VK_O`,``,``],[0,25,`KeyP`,G.KeyP,`P`,80,`VK_P`,``,``],[0,26,`KeyQ`,G.KeyQ,`Q`,81,`VK_Q`,``,``],[0,27,`KeyR`,G.KeyR,`R`,82,`VK_R`,``,``],[0,28,`KeyS`,G.KeyS,`S`,83,`VK_S`,``,``],[0,29,`KeyT`,G.KeyT,`T`,84,`VK_T`,``,``],[0,30,`KeyU`,G.KeyU,`U`,85,`VK_U`,``,``],[0,31,`KeyV`,G.KeyV,`V`,86,`VK_V`,``,``],[0,32,`KeyW`,G.KeyW,`W`,87,`VK_W`,``,``],[0,33,`KeyX`,G.KeyX,`X`,88,`VK_X`,``,``],[0,34,`KeyY`,G.KeyY,`Y`,89,`VK_Y`,``,``],[0,35,`KeyZ`,G.KeyZ,`Z`,90,`VK_Z`,``,``],[0,36,`Digit1`,G.Digit1,`1`,49,`VK_1`,``,``],[0,37,`Digit2`,G.Digit2,`2`,50,`VK_2`,``,``],[0,38,`Digit3`,G.Digit3,`3`,51,`VK_3`,``,``],[0,39,`Digit4`,G.Digit4,`4`,52,`VK_4`,``,``],[0,40,`Digit5`,G.Digit5,`5`,53,`VK_5`,``,``],[0,41,`Digit6`,G.Digit6,`6`,54,`VK_6`,``,``],[0,42,`Digit7`,G.Digit7,`7`,55,`VK_7`,``,``],[0,43,`Digit8`,G.Digit8,`8`,56,`VK_8`,``,``],[0,44,`Digit9`,G.Digit9,`9`,57,`VK_9`,``,``],[0,45,`Digit0`,G.Digit0,`0`,48,`VK_0`,``,``],[1,46,`Enter`,G.Enter,`Enter`,13,`VK_RETURN`,``,``],[1,47,`Escape`,G.Escape,`Escape`,27,`VK_ESCAPE`,``,``],[1,48,`Backspace`,G.Backspace,`Backspace`,8,`VK_BACK`,``,``],[1,49,`Tab`,G.Tab,`Tab`,9,`VK_TAB`,``,``],[1,50,`Space`,G.Space,`Space`,32,`VK_SPACE`,``,``],[0,51,`Minus`,G.Minus,`-`,189,`VK_OEM_MINUS`,`-`,`OEM_MINUS`],[0,52,`Equal`,G.Equal,`=`,187,`VK_OEM_PLUS`,`=`,`OEM_PLUS`],[0,53,`BracketLeft`,G.BracketLeft,`[`,219,`VK_OEM_4`,`[`,`OEM_4`],[0,54,`BracketRight`,G.BracketRight,`]`,221,`VK_OEM_6`,`]`,`OEM_6`],[0,55,`Backslash`,G.Backslash,`\\`,220,`VK_OEM_5`,`\\`,`OEM_5`],[0,56,`IntlHash`,G.Unknown,``,0,``,``,``],[0,57,`Semicolon`,G.Semicolon,`;`,186,`VK_OEM_1`,`;`,`OEM_1`],[0,58,`Quote`,G.Quote,`'`,222,`VK_OEM_7`,`'`,`OEM_7`],[0,59,`Backquote`,G.Backquote,"`",192,`VK_OEM_3`,"`",`OEM_3`],[0,60,`Comma`,G.Comma,`,`,188,`VK_OEM_COMMA`,`,`,`OEM_COMMA`],[0,61,`Period`,G.Period,`.`,190,`VK_OEM_PERIOD`,`.`,`OEM_PERIOD`],[0,62,`Slash`,G.Slash,`/`,191,`VK_OEM_2`,`/`,`OEM_2`],[1,63,`CapsLock`,G.CapsLock,`CapsLock`,20,`VK_CAPITAL`,``,``],[1,64,`F1`,G.F1,`F1`,112,`VK_F1`,``,``],[1,65,`F2`,G.F2,`F2`,113,`VK_F2`,``,``],[1,66,`F3`,G.F3,`F3`,114,`VK_F3`,``,``],[1,67,`F4`,G.F4,`F4`,115,`VK_F4`,``,``],[1,68,`F5`,G.F5,`F5`,116,`VK_F5`,``,``],[1,69,`F6`,G.F6,`F6`,117,`VK_F6`,``,``],[1,70,`F7`,G.F7,`F7`,118,`VK_F7`,``,``],[1,71,`F8`,G.F8,`F8`,119,`VK_F8`,``,``],[1,72,`F9`,G.F9,`F9`,120,`VK_F9`,``,``],[1,73,`F10`,G.F10,`F10`,121,`VK_F10`,``,``],[1,74,`F11`,G.F11,`F11`,122,`VK_F11`,``,``],[1,75,`F12`,G.F12,`F12`,123,`VK_F12`,``,``],[1,76,`PrintScreen`,G.Unknown,``,0,``,``,``],[1,77,`ScrollLock`,G.ScrollLock,`ScrollLock`,145,`VK_SCROLL`,``,``],[1,78,`Pause`,G.PauseBreak,`PauseBreak`,19,`VK_PAUSE`,``,``],[1,79,`Insert`,G.Insert,`Insert`,45,`VK_INSERT`,``,``],[1,80,`Home`,G.Home,`Home`,36,`VK_HOME`,``,``],[1,81,`PageUp`,G.PageUp,`PageUp`,33,`VK_PRIOR`,``,``],[1,82,`Delete`,G.Delete,`Delete`,46,`VK_DELETE`,``,``],[1,83,`End`,G.End,`End`,35,`VK_END`,``,``],[1,84,`PageDown`,G.PageDown,`PageDown`,34,`VK_NEXT`,``,``],[1,85,`ArrowRight`,G.RightArrow,`RightArrow`,39,`VK_RIGHT`,`Right`,``],[1,86,`ArrowLeft`,G.LeftArrow,`LeftArrow`,37,`VK_LEFT`,`Left`,``],[1,87,`ArrowDown`,G.DownArrow,`DownArrow`,40,`VK_DOWN`,`Down`,``],[1,88,`ArrowUp`,G.UpArrow,`UpArrow`,38,`VK_UP`,`Up`,``],[1,89,`NumLock`,G.NumLock,`NumLock`,144,`VK_NUMLOCK`,``,``],[1,90,`NumpadDivide`,G.NumpadDivide,`NumPad_Divide`,111,`VK_DIVIDE`,``,``],[1,91,`NumpadMultiply`,G.NumpadMultiply,`NumPad_Multiply`,106,`VK_MULTIPLY`,``,``],[1,92,`NumpadSubtract`,G.NumpadSubtract,`NumPad_Subtract`,109,`VK_SUBTRACT`,``,``],[1,93,`NumpadAdd`,G.NumpadAdd,`NumPad_Add`,107,`VK_ADD`,``,``],[1,94,`NumpadEnter`,G.Enter,``,0,``,``,``],[1,95,`Numpad1`,G.Numpad1,`NumPad1`,97,`VK_NUMPAD1`,``,``],[1,96,`Numpad2`,G.Numpad2,`NumPad2`,98,`VK_NUMPAD2`,``,``],[1,97,`Numpad3`,G.Numpad3,`NumPad3`,99,`VK_NUMPAD3`,``,``],[1,98,`Numpad4`,G.Numpad4,`NumPad4`,100,`VK_NUMPAD4`,``,``],[1,99,`Numpad5`,G.Numpad5,`NumPad5`,101,`VK_NUMPAD5`,``,``],[1,100,`Numpad6`,G.Numpad6,`NumPad6`,102,`VK_NUMPAD6`,``,``],[1,101,`Numpad7`,G.Numpad7,`NumPad7`,103,`VK_NUMPAD7`,``,``],[1,102,`Numpad8`,G.Numpad8,`NumPad8`,104,`VK_NUMPAD8`,``,``],[1,103,`Numpad9`,G.Numpad9,`NumPad9`,105,`VK_NUMPAD9`,``,``],[1,104,`Numpad0`,G.Numpad0,`NumPad0`,96,`VK_NUMPAD0`,``,``],[1,105,`NumpadDecimal`,G.NumpadDecimal,`NumPad_Decimal`,110,`VK_DECIMAL`,``,``],[0,106,`IntlBackslash`,G.IntlBackslash,`OEM_102`,226,`VK_OEM_102`,``,``],[1,107,`ContextMenu`,G.ContextMenu,`ContextMenu`,93,``,``,``],[1,108,`Power`,G.Unknown,``,0,``,``,``],[1,109,`NumpadEqual`,G.Unknown,``,0,``,``,``],[1,110,`F13`,G.F13,`F13`,124,`VK_F13`,``,``],[1,111,`F14`,G.F14,`F14`,125,`VK_F14`,``,``],[1,112,`F15`,G.F15,`F15`,126,`VK_F15`,``,``],[1,113,`F16`,G.F16,`F16`,127,`VK_F16`,``,``],[1,114,`F17`,G.F17,`F17`,128,`VK_F17`,``,``],[1,115,`F18`,G.F18,`F18`,129,`VK_F18`,``,``],[1,116,`F19`,G.F19,`F19`,130,`VK_F19`,``,``],[1,117,`F20`,G.F20,`F20`,0,`VK_F20`,``,``],[1,118,`F21`,G.F21,`F21`,0,`VK_F21`,``,``],[1,119,`F22`,G.F22,`F22`,0,`VK_F22`,``,``],[1,120,`F23`,G.F23,`F23`,0,`VK_F23`,``,``],[1,121,`F24`,G.F24,`F24`,0,`VK_F24`,``,``],[1,122,`Open`,G.Unknown,``,0,``,``,``],[1,123,`Help`,G.Unknown,``,0,``,``,``],[1,124,`Select`,G.Unknown,``,0,``,``,``],[1,125,`Again`,G.Unknown,``,0,``,``,``],[1,126,`Undo`,G.Unknown,``,0,``,``,``],[1,127,`Cut`,G.Unknown,``,0,``,``,``],[1,128,`Copy`,G.Unknown,``,0,``,``,``],[1,129,`Paste`,G.Unknown,``,0,``,``,``],[1,130,`Find`,G.Unknown,``,0,``,``,``],[1,131,`AudioVolumeMute`,G.AudioVolumeMute,`AudioVolumeMute`,173,`VK_VOLUME_MUTE`,``,``],[1,132,`AudioVolumeUp`,G.AudioVolumeUp,`AudioVolumeUp`,175,`VK_VOLUME_UP`,``,``],[1,133,`AudioVolumeDown`,G.AudioVolumeDown,`AudioVolumeDown`,174,`VK_VOLUME_DOWN`,``,``],[1,134,`NumpadComma`,G.NUMPAD_SEPARATOR,`NumPad_Separator`,108,`VK_SEPARATOR`,``,``],[0,135,`IntlRo`,G.ABNT_C1,`ABNT_C1`,193,`VK_ABNT_C1`,``,``],[1,136,`KanaMode`,G.Unknown,``,0,``,``,``],[0,137,`IntlYen`,G.Unknown,``,0,``,``,``],[1,138,`Convert`,G.Unknown,``,0,``,``,``],[1,139,`NonConvert`,G.Unknown,``,0,``,``,``],[1,140,`Lang1`,G.Unknown,``,0,``,``,``],[1,141,`Lang2`,G.Unknown,``,0,``,``,``],[1,142,`Lang3`,G.Unknown,``,0,``,``,``],[1,143,`Lang4`,G.Unknown,``,0,``,``,``],[1,144,`Lang5`,G.Unknown,``,0,``,``,``],[1,145,`Abort`,G.Unknown,``,0,``,``,``],[1,146,`Props`,G.Unknown,``,0,``,``,``],[1,147,`NumpadParenLeft`,G.Unknown,``,0,``,``,``],[1,148,`NumpadParenRight`,G.Unknown,``,0,``,``,``],[1,149,`NumpadBackspace`,G.Unknown,``,0,``,``,``],[1,150,`NumpadMemoryStore`,G.Unknown,``,0,``,``,``],[1,151,`NumpadMemoryRecall`,G.Unknown,``,0,``,``,``],[1,152,`NumpadMemoryClear`,G.Unknown,``,0,``,``,``],[1,153,`NumpadMemoryAdd`,G.Unknown,``,0,``,``,``],[1,154,`NumpadMemorySubtract`,G.Unknown,``,0,``,``,``],[1,155,`NumpadClear`,G.Clear,`Clear`,12,`VK_CLEAR`,``,``],[1,156,`NumpadClearEntry`,G.Unknown,``,0,``,``,``],[1,0,``,G.Ctrl,`Ctrl`,17,`VK_CONTROL`,``,``],[1,0,``,G.Shift,`Shift`,16,`VK_SHIFT`,``,``],[1,0,``,G.Alt,`Alt`,18,`VK_MENU`,``,``],[1,0,``,G.Meta,`Meta`,91,`VK_COMMAND`,``,``],[1,157,`ControlLeft`,G.Ctrl,``,0,`VK_LCONTROL`,``,``],[1,158,`ShiftLeft`,G.Shift,``,0,`VK_LSHIFT`,``,``],[1,159,`AltLeft`,G.Alt,``,0,`VK_LMENU`,``,``],[1,160,`MetaLeft`,G.Meta,``,0,`VK_LWIN`,``,``],[1,161,`ControlRight`,G.Ctrl,``,0,`VK_RCONTROL`,``,``],[1,162,`ShiftRight`,G.Shift,``,0,`VK_RSHIFT`,``,``],[1,163,`AltRight`,G.Alt,``,0,`VK_RMENU`,``,``],[1,164,`MetaRight`,G.Meta,``,0,`VK_RWIN`,``,``],[1,165,`BrightnessUp`,G.Unknown,``,0,``,``,``],[1,166,`BrightnessDown`,G.Unknown,``,0,``,``,``],[1,167,`MediaPlay`,G.Unknown,``,0,``,``,``],[1,168,`MediaRecord`,G.Unknown,``,0,``,``,``],[1,169,`MediaFastForward`,G.Unknown,``,0,``,``,``],[1,170,`MediaRewind`,G.Unknown,``,0,``,``,``],[1,171,`MediaTrackNext`,G.MediaTrackNext,`MediaTrackNext`,176,`VK_MEDIA_NEXT_TRACK`,``,``],[1,172,`MediaTrackPrevious`,G.MediaTrackPrevious,`MediaTrackPrevious`,177,`VK_MEDIA_PREV_TRACK`,``,``],[1,173,`MediaStop`,G.MediaStop,`MediaStop`,178,`VK_MEDIA_STOP`,``,``],[1,174,`Eject`,G.Unknown,``,0,``,``,``],[1,175,`MediaPlayPause`,G.MediaPlayPause,`MediaPlayPause`,179,`VK_MEDIA_PLAY_PAUSE`,``,``],[1,176,`MediaSelect`,G.LaunchMediaPlayer,`LaunchMediaPlayer`,181,`VK_MEDIA_LAUNCH_MEDIA_SELECT`,``,``],[1,177,`LaunchMail`,G.LaunchMail,`LaunchMail`,180,`VK_MEDIA_LAUNCH_MAIL`,``,``],[1,178,`LaunchApp2`,G.LaunchApp2,`LaunchApp2`,183,`VK_MEDIA_LAUNCH_APP2`,``,``],[1,179,`LaunchApp1`,G.Unknown,``,0,`VK_MEDIA_LAUNCH_APP1`,``,``],[1,180,`SelectTask`,G.Unknown,``,0,``,``,``],[1,181,`LaunchScreenSaver`,G.Unknown,``,0,``,``,``],[1,182,`BrowserSearch`,G.BrowserSearch,`BrowserSearch`,170,`VK_BROWSER_SEARCH`,``,``],[1,183,`BrowserHome`,G.BrowserHome,`BrowserHome`,172,`VK_BROWSER_HOME`,``,``],[1,184,`BrowserBack`,G.BrowserBack,`BrowserBack`,166,`VK_BROWSER_BACK`,``,``],[1,185,`BrowserForward`,G.BrowserForward,`BrowserForward`,167,`VK_BROWSER_FORWARD`,``,``],[1,186,`BrowserStop`,G.Unknown,``,0,`VK_BROWSER_STOP`,``,``],[1,187,`BrowserRefresh`,G.Unknown,``,0,`VK_BROWSER_REFRESH`,``,``],[1,188,`BrowserFavorites`,G.Unknown,``,0,`VK_BROWSER_FAVORITES`,``,``],[1,189,`ZoomToggle`,G.Unknown,``,0,``,``,``],[1,190,`MailReply`,G.Unknown,``,0,``,``,``],[1,191,`MailForward`,G.Unknown,``,0,``,``,``],[1,192,`MailSend`,G.Unknown,``,0,``,``,``],[1,0,``,G.KEY_IN_COMPOSITION,`KeyInComposition`,229,``,``,``],[1,0,``,G.ABNT_C2,`ABNT_C2`,194,`VK_ABNT_C2`,``,``],[1,0,``,G.OEM_8,`OEM_8`,223,`VK_OEM_8`,``,``],[1,0,``,G.Unknown,``,0,`VK_KANA`,``,``],[1,0,``,G.Unknown,``,0,`VK_HANGUL`,``,``],[1,0,``,G.Unknown,``,0,`VK_JUNJA`,``,``],[1,0,``,G.Unknown,``,0,`VK_FINAL`,``,``],[1,0,``,G.Unknown,``,0,`VK_HANJA`,``,``],[1,0,``,G.Unknown,``,0,`VK_KANJI`,``,``],[1,0,``,G.Unknown,``,0,`VK_CONVERT`,``,``],[1,0,``,G.Unknown,``,0,`VK_NONCONVERT`,``,``],[1,0,``,G.Unknown,``,0,`VK_ACCEPT`,``,``],[1,0,``,G.Unknown,``,0,`VK_MODECHANGE`,``,``],[1,0,``,G.Unknown,``,0,`VK_SELECT`,``,``],[1,0,``,G.Unknown,``,0,`VK_PRINT`,``,``],[1,0,``,G.Unknown,``,0,`VK_EXECUTE`,``,``],[1,0,``,G.Unknown,``,0,`VK_SNAPSHOT`,``,``],[1,0,``,G.Unknown,``,0,`VK_HELP`,``,``],[1,0,``,G.Unknown,``,0,`VK_APPS`,``,``],[1,0,``,G.Unknown,``,0,`VK_PROCESSKEY`,``,``],[1,0,``,G.Unknown,``,0,`VK_PACKET`,``,``],[1,0,``,G.Unknown,``,0,`VK_DBE_SBCSCHAR`,``,``],[1,0,``,G.Unknown,``,0,`VK_DBE_DBCSCHAR`,``,``],[1,0,``,G.Unknown,``,0,`VK_ATTN`,``,``],[1,0,``,G.Unknown,``,0,`VK_CRSEL`,``,``],[1,0,``,G.Unknown,``,0,`VK_EXSEL`,``,``],[1,0,``,G.Unknown,``,0,`VK_EREOF`,``,``],[1,0,``,G.Unknown,``,0,`VK_PLAY`,``,``],[1,0,``,G.Unknown,``,0,`VK_ZOOM`,``,``],[1,0,``,G.Unknown,``,0,`VK_NONAME`,``,``],[1,0,``,G.Unknown,``,0,`VK_PA1`,``,``],[1,0,``,G.Unknown,``,0,`VK_OEM_CLEAR`,``,``]],t=[],n=[];for(let r of e){let[e,i,a,o,s,c,l,u,d]=r;if(n[i]||(n[i]=!0,Wr[i]=a,Gr[a]=i,Kr[a.toLowerCase()]=i,e&&(qr[i]=o,o!==G.Unknown&&o!==G.Enter&&o!==G.Ctrl&&o!==G.Shift&&o!==G.Alt&&o!==G.Meta&&(Jr[o]=i))),!t[o]){if(t[o]=!0,!s)throw Error(`String representation missing for key code ${o} around scan code ${a}`);zr.define(o,s),Br.define(o,u||s),Vr.define(o,d||u||s)}c&&(Hr[c]=o),l&&(Ur[l]=o)}Jr[G.Enter]=46})();var Yr;(function(e){function t(e){return zr.keyCodeToStr(e)}e.toString=t;function n(e){return zr.strToKeyCode(e)}e.fromString=n;function r(e){return Br.keyCodeToStr(e)}e.toUserSettingsUS=r;function i(e){return Vr.keyCodeToStr(e)}e.toUserSettingsGeneral=i;function a(e){return Br.strToKeyCode(e)||Vr.strToKeyCode(e)}e.fromUserSettings=a;function o(e){if(e>=G.Numpad0&&e<=G.NumpadDivide)return null;switch(e){case G.UpArrow:return`Up`;case G.DownArrow:return`Down`;case G.LeftArrow:return`Left`;case G.RightArrow:return`Right`}return zr.keyCodeToStr(e)}e.toElectronAccelerator=o})(Yr||={});var Xr;(function(e){e[e.CtrlCmd=2048]=`CtrlCmd`,e[e.Shift=1024]=`Shift`,e[e.Alt=512]=`Alt`,e[e.WinCtrl=256]=`WinCtrl`})(Xr||={});function Zr(e,t){if(typeof e==`number`){if(e===0)return null;let n=(e&65535)>>>0,r=(e&4294901760)>>>16;return r===0?new ei([Qr(n,t)]):new ei([Qr(n,t),Qr(r,t)])}{let n=[];for(let r=0;r<e.length;r++)n.push(Qr(e[r],t));return new ei(n)}}function Qr(e,t){let n=!!(e&2048),r=!!(e&256);return new $r(t===$e.Macintosh?r:n,!!(e&1024),!!(e&512),t===$e.Macintosh?n:r,e&255)}var $r=class e{ctrlKey;shiftKey;altKey;metaKey;keyCode;constructor(e,t,n,r,i){this.ctrlKey=e,this.shiftKey=t,this.altKey=n,this.metaKey=r,this.keyCode=i}equals(t){return t instanceof e&&this.ctrlKey===t.ctrlKey&&this.shiftKey===t.shiftKey&&this.altKey===t.altKey&&this.metaKey===t.metaKey&&this.keyCode===t.keyCode}getHashCode(){return`K${this.ctrlKey?`1`:`0`}${this.shiftKey?`1`:`0`}${this.altKey?`1`:`0`}${this.metaKey?`1`:`0`}${this.keyCode}`}isModifierKey(){return this.keyCode===G.Unknown||this.keyCode===G.Ctrl||this.keyCode===G.Meta||this.keyCode===G.Alt||this.keyCode===G.Shift}toKeybinding(){return new ei([this])}isDuplicateModifierCase(){return this.ctrlKey&&this.keyCode===G.Ctrl||this.shiftKey&&this.keyCode===G.Shift||this.altKey&&this.keyCode===G.Alt||this.metaKey&&this.keyCode===G.Meta}},ei=class{chords;constructor(e){if(e.length===0)throw k(`chords`);this.chords=e}getHashCode(){let e=``;for(let t=0,n=this.chords.length;t<n;t++)t!==0&&(e+=`;`),e+=this.chords[t].getHashCode();return e}equals(e){if(e===null||this.chords.length!==e.chords.length)return!1;for(let t=0;t<this.chords.length;t++)if(!this.chords[t].equals(e.chords[t]))return!1;return!0}},ti=class{ctrlKey;shiftKey;altKey;metaKey;keyLabel;keyAriaLabel;constructor(e,t,n,r,i,a){this.ctrlKey=e,this.shiftKey=t,this.altKey=n,this.metaKey=r,this.keyLabel=i,this.keyAriaLabel=a}},ni=class{};function ri(e){if(e.charCode){let t=String.fromCharCode(e.charCode).toUpperCase();return Yr.fromString(t)}let t=e.keyCode;if(t===3)return G.PauseBreak;if(Fr)switch(t){case 59:return G.Semicolon;case 60:if(Oe)return G.IntlBackslash;break;case 61:return G.Equal;case 107:return G.NumpadAdd;case 109:return G.NumpadSubtract;case 173:return G.Minus;case 224:if(Ee)return G.Meta}else if(Ir&&(Ee&&t===93||!Ee&&t===92))return G.Meta;return Hr[t]||G.Unknown}var ii=Ee?Xr.WinCtrl:Xr.CtrlCmd,ai=Xr.Alt,oi=Xr.Shift,si=Ee?Xr.CtrlCmd:Xr.WinCtrl,ci=class{_standardKeyboardEventBrand=!0;browserEvent;target;ctrlKey;shiftKey;altKey;metaKey;altGraphKey;keyCode;code;_asKeybinding;_asKeyCodeChord;constructor(e){let t=e;this.browserEvent=t,this.target=t.target,this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,this.altGraphKey=t.getModifierState(`AltGraph`),this.keyCode=ri(t),this.code=t.code,this.ctrlKey=this.ctrlKey||this.keyCode===G.Ctrl,this.altKey=this.altKey||this.keyCode===G.Alt,this.shiftKey=this.shiftKey||this.keyCode===G.Shift,this.metaKey=this.metaKey||this.keyCode===G.Meta,this._asKeybinding=this._computeKeybinding(),this._asKeyCodeChord=this._computeKeyCodeChord()}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()}toKeyCodeChord(){return this._asKeyCodeChord}equals(e){return this._asKeybinding===e}_computeKeybinding(){let e=G.Unknown;this.keyCode!==G.Ctrl&&this.keyCode!==G.Shift&&this.keyCode!==G.Alt&&this.keyCode!==G.Meta&&(e=this.keyCode);let t=0;return this.ctrlKey&&(t|=ii),this.altKey&&(t|=ai),this.shiftKey&&(t|=oi),this.metaKey&&(t|=si),t|=e,t}_computeKeyCodeChord(){let e=G.Unknown;return this.keyCode!==G.Ctrl&&this.keyCode!==G.Shift&&this.keyCode!==G.Alt&&this.keyCode!==G.Meta&&(e=this.keyCode),new $r(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e)}};function li(e){return e.filter(e=>!!e)}var ui;(function(e){function t(e){return e<0}e.isLessThan=t;function n(e){return e>0}e.isGreaterThan=n;function r(e){return e===0}e.isNeitherLessOrGreaterThan=r,e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0})(ui||={}),class e{iterate;static empty=new e(e=>{});constructor(e){this.iterate=e}forEach(e){this.iterate(t=>(e(t),!0))}toArray(){let e=[];return this.iterate(t=>(e.push(t),!0)),e}filter(t){return new e(e=>this.iterate(n=>!t(n)||e(n)))}map(t){return new e(e=>this.iterate(n=>e(t(n))))}some(e){let t=!1;return this.iterate(n=>(t=e(n),!t)),t}findFirst(e){let t;return this.iterate(n=>!e(n)||(t=n,!1)),t}findLast(e){let t;return this.iterate(n=>(e(n)&&(t=n),!0)),t}findLastMaxBy(e){let t,n=!0;return this.iterate(r=>((n||ui.isGreaterThan(e(r,t)))&&(n=!1,t=r),!0)),t}};var di=new class{_onDidChange=new Ve;onDidChange=this._onDidChange.event;_enabled=!0;get enabled(){return this._enabled}enable(){this._enabled=!0,this._onDidChange.fire()}disable(){this._enabled=!1,this._onDidChange.fire()}},fi=class extends I{_contextKeyService;_commandService;_showMessage;_logMessage;_serviceBrand;_onDidUpdateKeybindings=this._register(new Ve);get onDidUpdateKeybindings(){return this._onDidUpdateKeybindings?this._onDidUpdateKeybindings.event:Ye.None}_currentChords;_currentChordChecker;_currentChordStatusMessage;_ignoreSingleModifiers;_currentSingleModifier;_currentSingleModifierClearTimeout;_logging;get inChordMode(){return this._currentChords.length>0}constructor(e,t,n,r){super(),this._contextKeyService=e,this._commandService=t,this._showMessage=n,this._logMessage=r,this._currentChords=[],this._currentChordChecker=new Ae,this._currentChordStatusMessage=null,this._ignoreSingleModifiers=pi.EMPTY,this._currentSingleModifier=null,this._currentSingleModifierClearTimeout=new he,this._logging=!1}dispose(){super.dispose()}getDefaultKeybindingsContent(){return``}toggleLogging(){return this._logging=!this._logging,this._logging}_log(e){this._logging&&this._logMessage(`[KeybindingService]: ${e}`)}getDefaultKeybindings(){return this._getResolver().getDefaultKeybindings()}getKeybindings(){return this._getResolver().getKeybindings()}customKeybindingsCount(){return 0}lookupKeybindings(e){return li(this._getResolver().lookupKeybindings(e).map(e=>e.resolvedKeybinding))}lookupKeybinding(e,t){let n=this._getResolver().lookupPrimaryKeybinding(e,t||this._contextKeyService);if(n)return n.resolvedKeybinding}dispatchEvent(e,t){return this._dispatch(e,t)}softDispatch(e,t){this._log(`/ Soft dispatching keyboard event`);let n=this.resolveKeyboardEvent(e);if(n.hasMultipleChords())return console.warn(`Unexpected keyboard event mapped to multiple chords`),null;let[r]=n.getDispatchChords();if(r===null)return this._log(`\\ Keyboard event cannot be dispatched`),null;let i=this._contextKeyService.getContext(t),a=this._currentChords.map((({keypress:e})=>e));return this._getResolver().resolve(i,a,r)}_scheduleLeaveChordMode(){let e=Date.now();this._currentChordChecker.cancelAndSet(()=>{this._documentHasFocus()?Date.now()-e>5e3&&this._leaveChordMode():this._leaveChordMode()},500)}_expectAnotherChord(e,t){switch(this._currentChords.push({keypress:e,label:t}),this._currentChords.length){case 0:throw Ne(`impossible`);case 1:this._currentChordStatusMessage=this._showMessage(R(`first.chord`,`({0}) was pressed. Waiting for second key of chord...`,t));break;default:{let e=this._currentChords.map(({label:e})=>e).join(`, `);this._currentChordStatusMessage=this._showMessage(R(`next.chord`,`({0}) was pressed. Waiting for next key of chord...`,e))}}this._scheduleLeaveChordMode(),di.enabled&&di.disable()}_leaveChordMode(){this._currentChordStatusMessage&&=(this._currentChordStatusMessage.dispose(),null),this._currentChordChecker.cancel(),this._currentChords=[],di.enable()}dispatchByUserSettingsLabel(e,t){this._log(`/ Dispatching keybinding triggered via menu entry accelerator - ${e}`);let n=this.resolveUserBinding(e);n.length===0?this._log(`\\ Could not resolve - ${e}`):this._doDispatch(n[0],t,!1)}_dispatch(e,t){return this._doDispatch(this.resolveKeyboardEvent(e),t,!1)}_singleModifierDispatch(e,t){let n=this.resolveKeyboardEvent(e),[r]=n.getSingleModifierDispatchChords();if(r)return this._ignoreSingleModifiers.has(r)?(this._log(`+ Ignoring single modifier ${r} due to it being pressed together with other keys.`),this._ignoreSingleModifiers=pi.EMPTY,this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1):(this._ignoreSingleModifiers=pi.EMPTY,this._currentSingleModifier===null?(this._log(`+ Storing single modifier for possible chord ${r}.`),this._currentSingleModifier=r,this._currentSingleModifierClearTimeout.cancelAndSet(()=>{this._log(`+ Clearing single modifier due to 300ms elapsed.`),this._currentSingleModifier=null},300),!1):r===this._currentSingleModifier?(this._log(`/ Dispatching single modifier chord ${r} ${r}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,this._doDispatch(n,t,!0)):(this._log(`+ Clearing single modifier due to modifier mismatch: ${this._currentSingleModifier} ${r}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1));let[i]=n.getChords();return this._ignoreSingleModifiers=new pi(i),this._currentSingleModifier!==null&&this._log(`+ Clearing single modifier due to other key up.`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1}_doDispatch(e,t,n=!1){let r=!1;if(e.hasMultipleChords())return console.warn(`Unexpected keyboard event mapped to multiple chords`),!1;let i=null,a=null;if(n){let[t]=e.getSingleModifierDispatchChords();i=t,a=t?[t]:[]}else[i]=e.getDispatchChords(),a=this._currentChords.map(({keypress:e})=>e);if(i===null)return this._log(`\\ Keyboard event cannot be dispatched in keydown phase.`),r;let o=this._contextKeyService.getContext(t),s=e.getLabel(),c=this._getResolver().resolve(o,a,i);switch(c.kind){case 0:if(this._logMessage(`KeybindingService#dispatch`,s,`[ No matching keybinding ]`),this.inChordMode){let e=this._currentChords.map(({label:e})=>e).join(`, `);this._log(`+ Leaving multi-chord mode: Nothing bound to "${e}, ${s}".`),this._showMessage(R(`missing.chord`,`The key combination ({0}, {1}) is not a command.`,e,s),{hideAfter:1e4}),this._leaveChordMode(),r=!0}return r;case 1:return this._logMessage(`KeybindingService#dispatch`,s,`[ Several keybindings match - more chords needed ]`),r=!0,this._expectAnotherChord(i,s),this._log(this._currentChords.length===1?`+ Entering multi-chord mode...`:`+ Continuing multi-chord mode...`),r;case 2:if(this._logMessage(`KeybindingService#dispatch`,s,`[ Will dispatch command ${c.commandId} ]`),c.commandId===null||c.commandId===``){if(this.inChordMode){let e=this._currentChords.map(({label:e})=>e).join(`, `);this._log(`+ Leaving chord mode: Nothing bound to "${e}, ${s}".`),this._showMessage(R(`missing.chord`,`The key combination ({0}, {1}) is not a command.`,e,s),{hideAfter:1e4}),this._leaveChordMode(),r=!0}}else this.inChordMode&&this._leaveChordMode(),c.isBubble||(r=!0),this._log(`+ Invoking command ${c.commandId}.`),c.commandArgs===void 0?this._commandService.executeCommand(c.commandId).then(void 0,e=>this._showMessage(e instanceof Error?e:Error(String(e)))):this._commandService.executeCommand(c.commandId,c.commandArgs).then(void 0,e=>this._showMessage(e instanceof Error?e:Error(String(e))));return r}}mightProducePrintableCharacter(e){return e.ctrlKey||e.metaKey?!1:e.keyCode>=G.KeyA&&e.keyCode<=G.KeyZ||e.keyCode>=G.Digit0&&e.keyCode<=G.Digit9}},pi=class e{static EMPTY=new e(null);_ctrlKey;_shiftKey;_altKey;_metaKey;constructor(e){this._ctrlKey=e?e.ctrlKey:!1,this._shiftKey=e?e.shiftKey:!1,this._altKey=e?e.altKey:!1,this._metaKey=e?e.metaKey:!1}has(e){switch(e){case`ctrl`:return this._ctrlKey;case`shift`:return this._shiftKey;case`alt`:return this._altKey;case`meta`:return this._metaKey}}},mi={kind:0},hi={kind:1};function gi(e,t,n){return{kind:2,commandId:e,commandArgs:t,isBubble:n}}var _i=class e{_log;_defaultKeybindings;_keybindings;_defaultBoundCommands;_map;_lookupMap;constructor(t,n,r){this._log=r,this._defaultKeybindings=t,this._defaultBoundCommands=new Map;for(let e of t){let t=e.command;t&&t.charAt(0)!==`-`&&this._defaultBoundCommands.set(t,!0)}this._map=new Map,this._lookupMap=new Map,this._keybindings=e.handleRemovals([].concat(t,n));for(let e=0,t=this._keybindings.length;e<t;e++){let t=this._keybindings[e];if(t.chords.length===0)continue;let n=t.when?.substituteConstants();n&&n.type===0||this._addKeyPress(t.chords[0],t)}}static _isTargetedForRemoval(e,t,n){if(t){for(let n=0;n<t.length;n++)if(t[n]!==e.chords[n])return!1}return!(n&&n.type!==1&&(!e.when||!Bn(n,e.when)))}static handleRemovals(e){let t=new Map;for(let n=0,r=e.length;n<r;n++){let r=e[n];if(r.command&&r.command.charAt(0)===`-`){let e=r.command.substring(1);t.has(e)?t.get(e).push(r):t.set(e,[r])}}if(t.size===0)return e;let n=[];for(let r=0,i=e.length;r<i;r++){let i=e[r];if(!i.command||i.command.length===0){n.push(i);continue}if(i.command.charAt(0)===`-`)continue;let a=t.get(i.command);if(!a||!i.isDefault){n.push(i);continue}let o=!1;for(let e of a){let t=e.when;if(this._isTargetedForRemoval(i,e.chords,t)){o=!0;break}}o||n.push(i)}return n}_addKeyPress(t,n){let r=this._map.get(t);if(r===void 0)this._map.set(t,[n]),this._addToLookupMap(n);else{for(let t=r.length-1;t>=0;t--){let i=r[t];if(i.command===n.command)continue;let a=!0;for(let e=1;e<i.chords.length&&e<n.chords.length;e++)if(i.chords[e]!==n.chords[e]){a=!1;break}a&&e.whenIsEntirelyIncluded(i.when,n.when)&&this._removeFromLookupMap(i)}r.push(n),this._addToLookupMap(n)}}_addToLookupMap(e){if(!e.command)return;let t=this._lookupMap.get(e.command);t===void 0?(t=[e],this._lookupMap.set(e.command,t)):t.push(e)}_removeFromLookupMap(e){if(!e.command)return;let t=this._lookupMap.get(e.command);if(t!==void 0){for(let n=0,r=t.length;n<r;n++)if(t[n]===e){t.splice(n,1);return}}}static whenIsEntirelyIncluded(e,t){return!t||t.type===1?!0:!e||e.type===1?!1:ur(e,t)}getDefaultBoundCommands(){return this._defaultBoundCommands}getDefaultKeybindings(){return this._defaultKeybindings}getKeybindings(){return this._keybindings}lookupKeybindings(e){let t=this._lookupMap.get(e);if(t===void 0||t.length===0)return[];let n=[],r=0;for(let e=t.length-1;e>=0;e--)n[r++]=t[e];return n}lookupPrimaryKeybinding(e,t){let n=this._lookupMap.get(e);if(n===void 0||n.length===0)return null;if(n.length===1)return n[0];for(let e=n.length-1;e>=0;e--){let r=n[e];if(t.contextMatchesRules(r.when))return r}return n[n.length-1]}resolve(e,t,n){let r=[...t,n];this._log(`| Resolving ${r}`);let i=this._map.get(r[0]);if(i===void 0)return this._log(`\\ No keybinding entries.`),mi;let a=null;if(r.length<2)a=i;else{a=[];for(let e=0,t=i.length;e<t;e++){let t=i[e];if(r.length>t.chords.length)continue;let n=!0;for(let e=1;e<r.length;e++)if(t.chords[e]!==r[e]){n=!1;break}n&&a.push(t)}}let o=this._findCommand(e,a);return o?r.length<o.chords.length?(this._log(`\\ From ${a.length} keybinding entries, awaiting ${o.chords.length-r.length} more chord(s), when: ${vi(o.when)}, source: ${yi(o)}.`),hi):(this._log(`\\ From ${a.length} keybinding entries, matched ${o.command}, when: ${vi(o.when)}, source: ${yi(o)}.`),gi(o.command,o.commandArgs,o.bubble)):(this._log(`\\ From ${a.length} keybinding entries, no when clauses matched the context.`),mi)}_findCommand(t,n){for(let r=n.length-1;r>=0;r--){let i=n[r];if(e._contextMatchesRules(t,i.when))return i}return null}static _contextMatchesRules(e,t){return!t||t.evaluate(e)}};function vi(e){return e?`${e.serialize()}`:`no when condition`}function yi(e){return e.extensionId?e.isBuiltinExtension?`built-in extension ${e.extensionId}`:`user extension ${e.extensionId}`:e.isDefault?`built-in`:`user`}var bi=class{_resolvedKeybindingItemBrand=void 0;resolvedKeybinding;chords;bubble;command;commandArgs;when;isDefault;extensionId;isBuiltinExtension;constructor(e,t,n,r,i,a,o){this.resolvedKeybinding=e,this.chords=e?xi(e.getDispatchChords()):[],e&&this.chords.length===0&&(this.chords=xi(e.getSingleModifierDispatchChords())),this.bubble=t?t.charCodeAt(0)===94:!1,this.command=this.bubble?t.substr(1):t,this.commandArgs=n,this.when=r,this.isDefault=i,this.extensionId=a,this.isBuiltinExtension=o}};function xi(e){let t=[];for(let n=0,r=e.length;n<r;n++){let r=e[n];if(!r)return[];t.push(r)}return t}var Si=class{modifierLabels;constructor(e,t,n=t){this.modifierLabels=[null],this.modifierLabels[$e.Macintosh]=e,this.modifierLabels[$e.Windows]=t,this.modifierLabels[$e.Linux]=n}toLabel(e,t,n){if(t.length===0)return null;let r=[];for(let i=0,a=t.length;i<a;i++){let a=t[i],o=n(a);if(o===null)return null;r[i]=Di(a,o,this.modifierLabels[e])}return r.join(` `)}},Ci=new Si({ctrlKey:`⌃`,shiftKey:`⇧`,altKey:`⌥`,metaKey:`⌘`,separator:``},{ctrlKey:R({key:`ctrlKey`,comment:[`This is the short form for the Control key on the keyboard`]},`Ctrl`),shiftKey:R({key:`shiftKey`,comment:[`This is the short form for the Shift key on the keyboard`]},`Shift`),altKey:R({key:`altKey`,comment:[`This is the short form for the Alt key on the keyboard`]},`Alt`),metaKey:R({key:`windowsKey`,comment:[`This is the short form for the Windows key on the keyboard`]},`Windows`),separator:`+`},{ctrlKey:R({key:`ctrlKey`,comment:[`This is the short form for the Control key on the keyboard`]},`Ctrl`),shiftKey:R({key:`shiftKey`,comment:[`This is the short form for the Shift key on the keyboard`]},`Shift`),altKey:R({key:`altKey`,comment:[`This is the short form for the Alt key on the keyboard`]},`Alt`),metaKey:R({key:`superKey`,comment:[`This is the short form for the Super key on the keyboard`]},`Super`),separator:`+`}),wi=new Si({ctrlKey:R({key:`ctrlKey.long`,comment:[`This is the long form for the Control key on the keyboard`]},`Control`),shiftKey:R({key:`shiftKey.long`,comment:[`This is the long form for the Shift key on the keyboard`]},`Shift`),altKey:R({key:`optKey.long`,comment:[`This is the long form for the Alt/Option key on the keyboard`]},`Option`),metaKey:R({key:`cmdKey.long`,comment:[`This is the long form for the Command key on the keyboard`]},`Command`),separator:`+`},{ctrlKey:R({key:`ctrlKey.long`,comment:[`This is the long form for the Control key on the keyboard`]},`Control`),shiftKey:R({key:`shiftKey.long`,comment:[`This is the long form for the Shift key on the keyboard`]},`Shift`),altKey:R({key:`altKey.long`,comment:[`This is the long form for the Alt key on the keyboard`]},`Alt`),metaKey:R({key:`windowsKey.long`,comment:[`This is the long form for the Windows key on the keyboard`]},`Windows`),separator:`+`},{ctrlKey:R({key:`ctrlKey.long`,comment:[`This is the long form for the Control key on the keyboard`]},`Control`),shiftKey:R({key:`shiftKey.long`,comment:[`This is the long form for the Shift key on the keyboard`]},`Shift`),altKey:R({key:`altKey.long`,comment:[`This is the long form for the Alt key on the keyboard`]},`Alt`),metaKey:R({key:`superKey.long`,comment:[`This is the long form for the Super key on the keyboard`]},`Super`),separator:`+`}),Ti=new Si({ctrlKey:`Ctrl`,shiftKey:`Shift`,altKey:`Alt`,metaKey:`Cmd`,separator:`+`},{ctrlKey:`Ctrl`,shiftKey:`Shift`,altKey:`Alt`,metaKey:`Super`,separator:`+`}),Ei=new Si({ctrlKey:`ctrl`,shiftKey:`shift`,altKey:`alt`,metaKey:`cmd`,separator:`+`},{ctrlKey:`ctrl`,shiftKey:`shift`,altKey:`alt`,metaKey:`win`,separator:`+`},{ctrlKey:`ctrl`,shiftKey:`shift`,altKey:`alt`,metaKey:`meta`,separator:`+`});function Di(e,t,n){if(t===null)return``;let r=[];return e.ctrlKey&&r.push(n.ctrlKey),e.shiftKey&&r.push(n.shiftKey),e.altKey&&r.push(n.altKey),e.metaKey&&r.push(n.metaKey),t!==``&&r.push(t),r.join(n.separator)}var Oi=class extends ni{_os;_chords;constructor(e,t){if(super(),t.length===0)throw k(`chords`);this._os=e,this._chords=t}getLabel(){return Ci.toLabel(this._os,this._chords,e=>this._getLabel(e))}getAriaLabel(){return wi.toLabel(this._os,this._chords,e=>this._getAriaLabel(e))}getElectronAccelerator(){return this._chords.length>1||this._chords[0].isDuplicateModifierCase()?null:Ti.toLabel(this._os,this._chords,e=>this._getElectronAccelerator(e))}getUserSettingsLabel(){return Ei.toLabel(this._os,this._chords,e=>this._getUserSettingsLabel(e))}isWYSIWYG(){return this._chords.every(e=>this._isWYSIWYG(e))}hasMultipleChords(){return this._chords.length>1}getChords(){return this._chords.map(e=>this._getChord(e))}_getChord(e){return new ti(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,this._getLabel(e),this._getAriaLabel(e))}getDispatchChords(){return this._chords.map(e=>this._getChordDispatch(e))}getSingleModifierDispatchChords(){return this._chords.map(e=>this._getSingleModifierChordDispatch(e))}},ki=class e extends Oi{constructor(e,t){super(t,e)}_keyCodeToUILabel(e){if(this._os===$e.Macintosh)switch(e){case G.LeftArrow:return`←`;case G.UpArrow:return`↑`;case G.RightArrow:return`→`;case G.DownArrow:return`↓`}return Yr.toString(e)}_getLabel(e){return e.isDuplicateModifierCase()?``:this._keyCodeToUILabel(e.keyCode)}_getAriaLabel(e){return e.isDuplicateModifierCase()?``:Yr.toString(e.keyCode)}_getElectronAccelerator(e){return Yr.toElectronAccelerator(e.keyCode)}_getUserSettingsLabel(e){if(e.isDuplicateModifierCase())return``;let t=Yr.toUserSettingsUS(e.keyCode);return t&&t.toLowerCase()}_isWYSIWYG(){return!0}_getChordDispatch(t){return e.getDispatchStr(t)}static getDispatchStr(e){if(e.isModifierKey())return null;let t=``;return e.ctrlKey&&(t+=`ctrl+`),e.shiftKey&&(t+=`shift+`),e.altKey&&(t+=`alt+`),e.metaKey&&(t+=`meta+`),t+=Yr.toString(e.keyCode),t}_getSingleModifierChordDispatch(e){return e.keyCode===G.Ctrl&&!e.shiftKey&&!e.altKey&&!e.metaKey?`ctrl`:e.keyCode===G.Shift&&!e.ctrlKey&&!e.altKey&&!e.metaKey?`shift`:e.keyCode===G.Alt&&!e.ctrlKey&&!e.shiftKey&&!e.metaKey?`alt`:e.keyCode===G.Meta&&!e.ctrlKey&&!e.shiftKey&&!e.altKey?`meta`:null}static _scanCodeToKeyCode(e){let t=qr[e];if(t!==G.DependsOnKbLayout)return t;switch(e){case 10:return G.KeyA;case 11:return G.KeyB;case 12:return G.KeyC;case 13:return G.KeyD;case 14:return G.KeyE;case 15:return G.KeyF;case 16:return G.KeyG;case 17:return G.KeyH;case 18:return G.KeyI;case 19:return G.KeyJ;case 20:return G.KeyK;case 21:return G.KeyL;case 22:return G.KeyM;case 23:return G.KeyN;case 24:return G.KeyO;case 25:return G.KeyP;case 26:return G.KeyQ;case 27:return G.KeyR;case 28:return G.KeyS;case 29:return G.KeyT;case 30:return G.KeyU;case 31:return G.KeyV;case 32:return G.KeyW;case 33:return G.KeyX;case 34:return G.KeyY;case 35:return G.KeyZ;case 36:return G.Digit1;case 37:return G.Digit2;case 38:return G.Digit3;case 39:return G.Digit4;case 40:return G.Digit5;case 41:return G.Digit6;case 42:return G.Digit7;case 43:return G.Digit8;case 44:return G.Digit9;case 45:return G.Digit0;case 51:return G.Minus;case 52:return G.Equal;case 53:return G.BracketLeft;case 54:return G.BracketRight;case 55:return G.Backslash;case 56:return G.Unknown;case 57:return G.Semicolon;case 58:return G.Quote;case 59:return G.Backquote;case 60:return G.Comma;case 61:return G.Period;case 62:return G.Slash;case 106:return G.IntlBackslash}return G.Unknown}static _toKeyCodeChord(e){if(!e)return null;if(e instanceof $r)return e;let t=this._scanCodeToKeyCode(e.scanCode);return t===G.Unknown?null:new $r(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,t)}static resolveKeybinding(t,n){let r=xi(t.chords.map(e=>this._toKeyCodeChord(e)));return r.length>0?[new e(r,n)]:[]}},Ai=ae();function ji(e,t){return function(n,r){t(n,r,e)}}function Mi(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}var Ni=Me(`workbenchKeybindingService`),Pi=class extends fi{contexts;bindings=[];resolver=null;constructor(e,t){super(e,t,()=>I.None,()=>{}),this.contexts=e;let n=e=>{e.key===`Tab`&&(document.documentElement.dataset.focusNavigation=`tab`)},r=()=>{delete document.documentElement.dataset.focusNavigation};window.addEventListener(`keydown`,n,!0),window.addEventListener(`pointerdown`,r,!0),this._register(u(()=>{window.removeEventListener(`keydown`,n,!0),window.removeEventListener(`pointerdown`,r,!0),delete document.documentElement.dataset.focusNavigation}));let i=e=>{if(e.defaultPrevented||e.isComposing||(e.target instanceof Element?e.target:null)?.closest(`input, textarea, select, [contenteditable="true"], dialog, [role="dialog"], [role="menu"], [role="tablist"], [role="combobox"], [role="listbox"]`))return;let t=window.getSelection();if([`ArrowUp`,`ArrowDown`].includes(e.key)&&t&&!t.isCollapsed)return;let n=new ci(e);this._dispatch(n,n.target)&&(n.preventDefault(),n.stopPropagation())};window.addEventListener(`keydown`,i),this._register(u(()=>window.removeEventListener(`keydown`,i)))}registerCommands(e,t){let n=new o,r=this.contexts.createKey(`workbench.${e}`,!1);r.set(!0);let i=[];for(let r of t){let t=`workbench.${e}.${r.id}`;n.add(Sn.registerCommand(t,()=>r.run()));let a=Zr(r.keybinding,Fe);if(a)for(let n of ki.resolveKeybinding(a,Fe))i.push(new bi(n,t,void 0,zn.equals(`workbench.${e}`,!0),!1,null,!1))}return this.bindings.push(...i),this.resolver=null,this._onDidUpdateKeybindings.fire(),n.add(u(()=>{r.reset();let e=new Set(i);this.bindings=this.bindings.filter(t=>!e.has(t)),this.resolver=null,this._onDidUpdateKeybindings.fire()})),n}_getResolver(){return this.resolver??=new _i([],this.bindings,()=>{})}_documentHasFocus(){return document.hasFocus()}resolveKeybinding(e){return ki.resolveKeybinding(e,Fe)}resolveKeyboardEvent(e){return new ki([new $r(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,e.keyCode)],Fe)}resolveUserBinding(e){return[]}_dumpDebugInfo(){return``}_dumpDebugInfoJSON(){return``}registerSchemaContribution(e){}};Pi=Mi([ji(0,sr),ji(1,xn)],Pi);var Fi=class extends I{services;willExecute=this._register(new Ve);didExecute=this._register(new Ve);onWillExecuteCommand=this.willExecute.event;onDidExecuteCommand=this.didExecute.event;constructor(e){super(),this.services=e}async executeCommand(e,...t){let n=Sn.getCommand(e);if(!n)throw Error(`未注册命令:${e}`);this.willExecute.fire({commandId:e,args:t});let r=await this.services.invokeFunction(n.handler,...t);return this.didExecute.fire({commandId:e,args:t}),r}};Fi=Mi([ji(0,r)],Fi);function Ii(){let e=new qe;e.set(M,new T(L)),e.set(le,new T(se)),e.set(y,new T(We)),e.set(p,new T(oe)),e.set(re,new T(h)),e.set(ln,new T(un)),e.set(i,new T(ct)),e.set(n,new T(je)),e.set(xn,new T(Fi)),e.set(sr,new T(Sr)),e.set(Ni,new T(Pi));let t=new ze(e,!0),r=new o;return t.invokeFunction(e=>{r.add(e.get(M)),r.add(e.get(le)),r.add(e.get(y)),r.add(e.get(p)),r.add(e.get(re)),r.add(e.get(ln)),r.add(e.get(Ni)),r.add(e.get(xn)),r.add(e.get(sr))}),{instantiationService:t,dispose:()=>r.dispose()}}var Li=xe(F(),1),K=f();function Ri(){let e=j(n);return(0,Li.createPortal)((0,K.jsx)(S,{store:e,closeLabel:`关闭通知`,"aria-label":`通知`,"data-testid":z.message}),document.body)}var zi={name:`columns-2`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M12 3v18`,key:`108xh3`}]],aliases:[`columns`]};zi.node;var Bi=O(zi),Vi={name:`fold-vertical`,size:24,node:[[`path`,{d:`M12 22v-6`,key:`6o8u61`}],[`path`,{d:`M12 8V2`,key:`1wkif3`}],[`path`,{d:`M4 12H2`,key:`rhcxmi`}],[`path`,{d:`M10 12H8`,key:`s88cx1`}],[`path`,{d:`M16 12h-2`,key:`10asgb`}],[`path`,{d:`M22 12h-2`,key:`14jgyd`}],[`path`,{d:`m15 19-3-3-3 3`,key:`e37ymu`}],[`path`,{d:`m15 5-3 3-3-3`,key:`19d6lf`}]]};Vi.node;var Hi=O(Vi),Ui={name:`rows-2`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 12h18`,key:`1i2n21`}]],aliases:[`rows`]};Ui.node;var Wi=O(Ui),Gi={name:`tag`,size:24,node:[[`path`,{d:`M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z`,key:`vktsd0`}],[`circle`,{cx:`7.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`kqv944`}]]};Gi.node;var Ki=O(Gi),qi={name:`unfold-vertical`,size:24,node:[[`path`,{d:`M12 22v-6`,key:`6o8u61`}],[`path`,{d:`M12 8V2`,key:`1wkif3`}],[`path`,{d:`M4 12H2`,key:`rhcxmi`}],[`path`,{d:`M10 12H8`,key:`s88cx1`}],[`path`,{d:`M16 12h-2`,key:`10asgb`}],[`path`,{d:`M22 12h-2`,key:`14jgyd`}],[`path`,{d:`m15 19-3 3-3-3`,key:`11eu04`}],[`path`,{d:`m15 5-3-3-3 3`,key:`itvq4r`}]]};qi.node;var Ji=O(qi),Yi={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]};Yi.node;var Xi=O(Yi);function Zi({index:e,total:t,onPrev:n,onNext:r,noun:i=`用例`,showNoun:a=!1,vertical:o=!0,bounded:c=!1,ids:u={previous:z.previous,next:z.next}}){let d=o?nt:l,f=o?s:te;return(0,K.jsxs)(`div`,{className:`stage-nav`,onKeyDown:i=>{i.altKey||i.ctrlKey||i.metaKey||i.shiftKey||![`ArrowUp`,`ArrowDown`].includes(i.key)||(i.preventDefault(),i.stopPropagation(),!(t<=1)&&(i.key===`ArrowUp`&&(!c||e>0)&&n(),i.key===`ArrowDown`&&(!c||e<t-1)&&r()))},children:[(0,K.jsx)(P,{content:`上一个${i}`,shortcut:[o?`↑`:`←`],disabled:t<=1||c&&e===0,children:(0,K.jsx)(`button`,{type:`button`,className:`report-header-icon`,"data-testid":u.previous,"aria-label":`上一个${i}`,disabled:t<=1||c&&e===0,onClick:n,children:(0,K.jsx)(d,{size:14,strokeWidth:1.5})})}),(0,K.jsxs)(`span`,{className:`stage-index`,"data-testid":u.position,children:[a&&`${i} `,e+1,` / `,t]}),(0,K.jsx)(P,{content:`下一个${i}`,shortcut:[o?`↓`:`→`],disabled:t<=1||c&&e===t-1,children:(0,K.jsx)(`button`,{type:`button`,className:`report-header-icon`,"data-testid":u.next,"aria-label":`下一个${i}`,disabled:t<=1||c&&e===t-1,onClick:r,children:(0,K.jsx)(f,{size:14,strokeWidth:1.5})})})]})}var Qi=(e,t)=>JSON.stringify([e,t]);function $i(e,t,n){return e.flatMap(e=>{let r=[];for(let n of t.filter(t=>t.namespace===e.id)){let t=n.item.current??n.item.baseline,i=t.treePath.length?t.treePath:[{key:t.id,display:t.name}],a=r,o=[e.id];for(let e of i.slice(0,-1)){o.push(e.key);let t=`folder:${JSON.stringify(o)}`,n=a.find(e=>e.key===t);n||(n={key:t,label:e.display,kind:`folder`,children:[]},a.push(n)),a=n.children}a.push({key:n.key,label:i.at(-1).display+(n.ignored?`(已忽略)`:``),kind:`case`})}return n?r:[{key:`namespace:${e.id}`,label:e.name,kind:`namespace`,namespace:e.id,children:r}]})}function ea(e){let t={};for(let n of e){let e=n.change===`unavailable`?[`unavailable`]:n.snapshots.length?n.snapshots.map(e=>e.change):[n.change];n.change===`modified`&&!e.some(e=>e!==`same`)&&e.push(`modified`);for(let n of e)t[n]=(t[n]??0)+1}return t}function ta(e,t){if(e.running)return`running`;if(e.total>0&&e.failed===e.total)return`failed`;if(e.failed>0)return`partial`;if(t.unavailable>0)return`unavailable`;let n=[`added`,`modified`,`deleted`].filter(e=>t[e]>0);return n.length?n.length>1||n[0]===`modified`?`changed`:n[0]===`added`?`added`:`deleted`:`same`}function na(e){let t=e.filter(e=>e.current);return{failed:t.filter(e=>e.current.result.status===`failed`).length,total:t.length}}var ra={running:{icon:_e,className:`is-running`,label:`报告生成中`},failed:{icon:ge,className:`is-danger`,label:`执行失败,不能合并到基线`},partial:{icon:et,className:`is-changed`,label:`部分用例执行失败`},unavailable:{icon:a,className:`is-danger`,label:`未采集快照,无法比较`},added:{icon:Be,className:`is-added`,label:`新增,待验收`},deleted:{icon:Je,className:`is-danger`,label:`删除,待验收`},changed:{icon:et,className:`is-changed`,label:`修改或混合变更,待验收`},same:{icon:ee,className:`is-success`,label:`无变更`},unknown:{icon:it,className:`is-unknown`,label:`尚未比较`}};function ia({status:e,size:t=13}){let{icon:n,className:r,label:i}=ra[e];return(0,K.jsx)(n,{size:t,className:`task-status ${r}`,role:`img`,"aria-label":i,"data-testid":z.taskStatus(e),children:(0,K.jsx)(`title`,{children:i})})}function aa(e){return new Intl.DateTimeFormat(`zh-CN`,{month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,hour12:!1}).format(new Date(e))}function oa(e){return!Number.isFinite(e)||e<=0?`—`:e<6e4?`${(e/1e3).toFixed(1)}s`:`${Math.floor(e/6e4)}m ${Math.round(e%6e4/1e3)}s`}function sa(e,t=new Date){let n=new Date(e),r=e=>new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime(),i=Math.round((r(t)-r(n))/864e5);return i===0?`今天`:i===1?`昨天`:new Intl.DateTimeFormat(`zh-CN`,{...n.getFullYear()===t.getFullYear()?{}:{year:`numeric`},month:`long`,day:`numeric`}).format(n)}function ca(e){return new Intl.DateTimeFormat(`zh-CN`,{hour:`2-digit`,minute:`2-digit`,hour12:!1}).format(new Date(e))}var la={added:`新增`,modified:`修改`,deleted:`删除`,same:`相同`,unavailable:`未采集`,passed:`通过`,failed:`失败`,skipped:`跳过`,interrupted:`中断`,running:`运行中`},ua=Qi;function da({items:e}){return(0,K.jsx)(ia,{status:ta(na(e),ea(e)),size:12})}function fa(e,t,n,r,i){return pa($i(e,t,n),t,n,r,i)}function pa(e,t,n,r,i){let a=new Map(t.map(e=>[e.key,e]));function o(e){return e.flatMap(e=>{if(e.kind!==`case`){let t=o(e.children??[]);return e.kind===`folder`&&!t.length?[]:[{key:e.key,label:e.label,children:t,icon:e.kind===`namespace`?(0,K.jsx)(Qe,{size:12}):(0,K.jsx)(Ie,{size:12}),testId:e.kind===`namespace`?z.namespace(e.namespace):z.folder(e.key)}]}let t=a.get(e.key);if(!t)return[];let s=t.item.current??t.item.baseline,c=n&&t.item.change!==`unavailable`&&t.item.current?.result.status!==`failed`;return[{key:e.key,label:e.label,danger:t.ignored,title:t.file||s.name,testId:z.case(s.id),checkboxTestId:z.select(s.id),icon:n?(0,K.jsx)(da,{items:[t.item]}):s.snapshots?.some(e=>e.type===`image`)?(0,K.jsx)(Ce,{size:12}):(0,K.jsx)(De,{size:12}),...c?{checkbox:{checked:r.has(t.key),label:`选择 ${s.name}`,onChange:()=>i(t.key)}}:{},trailing:n&&t.item.current?.result.durationMs!==void 0?(0,K.jsx)(`span`,{className:`task-row-duration`,children:oa(t.item.current.result.durationMs)}):void 0}]})}let s=o(e);function c(e){return e.flatMap(e=>e.children?c(e.children):[t.find(t=>t.key===e.key).item])}function l(e){for(let t of e)if(t.children){let e=c(t.children);if(n&&(t.icon=(0,K.jsx)(da,{items:e})),t.collapsedTrailing=(0,K.jsx)(`span`,{className:`path-folder-count`,children:e.length}),n){let e=t=>t.flatMap(t=>t.children?e(t.children):t.checkbox?[t]:[]),n=e(t.children);t.checkboxTestId=z.selectFolder(t.key);let a=n.filter(e=>r.has(e.key)).length;n.length&&(t.checkbox={checked:a===n.length?!0:a?`mixed`:!1,label:`选择 ${t.label}`,onChange:e=>{for(let t of n)r.has(t.key)!==e&&i(t.key)}})}l(t.children)}}return l(s),s}function ma(e){return e.flatMap(e=>e.children?[e.key,...ma(e.children)]:[])}function ha(){let[e,t]=(0,W.useState)(new Set);return(0,W.useEffect)(()=>{let e=e=>{t(t=>{let n=new Set(t);e.type===`keydown`?n.add(e.key):n.delete(e.key);for(let[t,r]of[[`Alt`,e.altKey],[`Control`,e.ctrlKey],[`Meta`,e.metaKey],[`Shift`,e.shiftKey]])r?n.add(t):n.delete(t);return n})},n=()=>t(new Set),r=()=>{document.hidden&&n()};return window.addEventListener(`keydown`,e,!0),window.addEventListener(`keyup`,e,!0),window.addEventListener(`blur`,n),document.addEventListener(`visibilitychange`,r),()=>{window.removeEventListener(`keydown`,e,!0),window.removeEventListener(`keyup`,e,!0),window.removeEventListener(`blur`,n),document.removeEventListener(`visibilitychange`,r)}},[]),e}function ga(e,t,n){let r=j(Ni),i=(0,W.useRef)(n);i.current=n;let a=n.map(({id:e,keybinding:t})=>`${e}:${t}`).join(`|`);(0,W.useEffect)(()=>{if(!t)return;let n=r.registerCommands(e,i.current.map(e=>({...e,run:()=>i.current.find(t=>t.id===e.id)?.run()})));return()=>n.dispose()},[r,e,t,a])}function _a(e){if(e.defaultPrevented||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.key!==`ArrowUp`&&e.key!==`ArrowDown`||(e.target instanceof Element?e.target:null)?.closest(`input, textarea, select, [contenteditable="true"], [role="menu"], [role="listbox"], [role="tablist"], dialog, [role="dialog"]`))return 0;let t=window.getSelection();return t&&!t.isCollapsed?0:e.key===`ArrowUp`?-1:1}function va({path:e,original:t,modified:n,unified:r,expandAll:i}){let a=(0,W.useRef)(null),o=(0,W.useRef)(null),s=(0,W.useRef)({unified:r,expandAll:i});s.current={unified:r,expandAll:i};let[c,l]=(0,W.useState)(!1),[u,d]=(0,W.useState)(``);(0,W.useEffect)(()=>{let r=!1,i=[],c=()=>{o.current=null;for(let e of i.splice(0).reverse())e.dispose()};return l(!1),d(``),ut(async()=>{let{monaco:e,languageForPath:t}=await import(`./monaco-Dgn-_pxJ.js`);return{monaco:e,languageForPath:t}},__vite__mapDeps([0,1,2,3,4,5])).then(async({monaco:c,languageForPath:u})=>{if(r||!a.current)return;let d=u(e);if(await c.editor.colorize(``,d,{}),r||!a.current)return;let f=c.editor.createModel(t,d);i.push(f);let p=c.editor.createModel(n,d);i.push(p),c.editor.colorizeModelLine(f,f.getLineCount()),c.editor.colorizeModelLine(p,p.getLineCount());let m=c.editor.createDiffEditor(a.current,{readOnly:!0,originalEditable:!1,theme:`vs`,automaticLayout:!0,fontSize:12,lineHeight:22,fontFamily:getComputedStyle(document.documentElement).getPropertyValue(`--font-metadata`).trim(),renderSideBySide:!s.current.unified,useInlineViewWhenSpaceIsLimited:!1,hideUnchangedRegions:{enabled:!s.current.expandAll},ignoreTrimWhitespace:!1,renderValidationDecorations:`off`,renderMarginRevertIcon:!1});i.push(m),o.current=m;let h=m.onDidUpdateDiff(()=>l(m.getLineChanges()!==null));i.push(h),m.setModel({original:f,modified:p}),m.getOriginalEditor().getDomNode()?.setAttribute(`data-testid`,z.diffOriginal),m.getModifiedEditor().getDomNode()?.setAttribute(`data-testid`,z.diffModified)}).catch(e=>{c(),r||d(e instanceof Error?e.message:String(e))}),()=>{r=!0,c()}},[e,t,n]),(0,W.useEffect)(()=>{o.current?.updateOptions({renderSideBySide:!r,hideUnchangedRegions:{enabled:!i}})},[r,i]);let f=Math.max(t.split(`
5
+ Received: '{1}'.`,t,En.getLexeme(n)),a=n.offset,o=En.getLexeme(n);return this._parsingErrors.push({message:i,offset:a,lexeme:o,additionalInfo:r}),e._parseError}_check(e){return this._peek().type===e}_peek(){return this._tokens[this._current]}_isAtEnd(){return this._peek().type===20}},zn=class{static false(){return Hn.INSTANCE}static true(){return Un.INSTANCE}static has(e){return Wn.create(e)}static equals(e,t){return Gn.create(e,t)}static notEquals(e,t){return Jn.create(e,t)}static regex(e,t){return tr.create(e,t)}static in(e,t){return Kn.create(e,t)}static notIn(e,t){return qn.create(e,t)}static not(e){return Yn.create(e)}static and(...e){return ir.create(e,null,!0)}static or(...e){return ar.create(e,null,!0)}static greater(e,t){return Zn.create(e,t)}static greaterEquals(e,t){return Qn.create(e,t)}static smaller(e,t){return $n.create(e,t)}static smallerEquals(e,t){return er.create(e,t)}static _parser=new Rn({regexParsingWithErrorRecovery:!1});static deserialize(e){if(e!=null)return this._parser.parse(e)}};function Bn(e,t){let n=e?e.substituteConstants():void 0,r=t?t.substituteConstants():void 0;return!n&&!r?!0:!n||!r?!1:n.equals(r)}function Vn(e,t){return e.cmp(t)}var Hn=class e{static INSTANCE=new e;type=0;constructor(){}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!1}serialize(){return`false`}keys(){return[]}map(e){return this}negate(){return Un.INSTANCE}},Un=class e{static INSTANCE=new e;type=1;constructor(){}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!0}serialize(){return`true`}keys(){return[]}map(e){return this}negate(){return Hn.INSTANCE}},Wn=class e{key;negated;static create(t,n=null){let r=Dn.get(t);return typeof r==`boolean`?r?Un.INSTANCE:Hn.INSTANCE:new e(t,n)}type=2;constructor(e,t){this.key=e,this.negated=t}cmp(e){return e.type===this.type?cr(this.key,e.key):this.type-e.type}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){let e=Dn.get(this.key);return typeof e==`boolean`?e?Un.INSTANCE:Hn.INSTANCE:this}evaluate(e){return!!e.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}map(e){return e.mapDefined(this.key)}negate(){return this.negated||=Yn.create(this.key,this),this.negated}},Gn=class e{key;value;negated;static create(t,n,r=null){if(typeof n==`boolean`)return n?Wn.create(t,r):Yn.create(t,r);let i=Dn.get(t);return typeof i==`boolean`?n===(i?`true`:`false`)?Un.INSTANCE:Hn.INSTANCE:new e(t,n,r)}type=4;constructor(e,t,n){this.key=e,this.value=t,this.negated=n}cmp(e){return e.type===this.type?lr(this.key,this.value,e.key,e.value):this.type-e.type}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){let e=Dn.get(this.key);if(typeof e==`boolean`){let t=e?`true`:`false`;return this.value===t?Un.INSTANCE:Hn.INSTANCE}return this}evaluate(e){return e.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}map(e){return e.mapEquals(this.key,this.value)}negate(){return this.negated||=Jn.create(this.key,this.value,this),this.negated}},Kn=class e{key;valueKey;static create(t,n){return new e(t,n)}type=10;negated=null;constructor(e,t){this.key=e,this.valueKey=t}cmp(e){return e.type===this.type?lr(this.key,this.valueKey,e.key,e.valueKey):this.type-e.type}equals(e){return e.type===this.type&&this.key===e.key&&this.valueKey===e.valueKey}substituteConstants(){return this}evaluate(e){let t=e.getValue(this.valueKey),n=e.getValue(this.key);return Array.isArray(t)?t.includes(n):typeof n==`string`&&typeof t==`object`&&t?On.call(t,n):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}map(e){return e.mapIn(this.key,this.valueKey)}negate(){return this.negated||=qn.create(this.key,this.valueKey),this.negated}},qn=class e{key;valueKey;static create(t,n){return new e(t,n)}type=11;_negated;constructor(e,t){this.key=e,this.valueKey=t,this._negated=Kn.create(e,t)}cmp(e){return e.type===this.type?this._negated.cmp(e._negated):this.type-e.type}equals(e){return e.type===this.type&&this._negated.equals(e._negated)}substituteConstants(){return this}evaluate(e){return!this._negated.evaluate(e)}serialize(){return`${this.key} not in '${this.valueKey}'`}keys(){return this._negated.keys()}map(e){return e.mapNotIn(this.key,this.valueKey)}negate(){return this._negated}},Jn=class e{key;value;negated;static create(t,n,r=null){if(typeof n==`boolean`)return n?Yn.create(t,r):Wn.create(t,r);let i=Dn.get(t);return typeof i==`boolean`?n===(i?`true`:`false`)?Hn.INSTANCE:Un.INSTANCE:new e(t,n,r)}type=5;constructor(e,t,n){this.key=e,this.value=t,this.negated=n}cmp(e){return e.type===this.type?lr(this.key,this.value,e.key,e.value):this.type-e.type}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){let e=Dn.get(this.key);if(typeof e==`boolean`){let t=e?`true`:`false`;return this.value===t?Hn.INSTANCE:Un.INSTANCE}return this}evaluate(e){return e.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}map(e){return e.mapNotEquals(this.key,this.value)}negate(){return this.negated||=Gn.create(this.key,this.value,this),this.negated}},Yn=class e{key;negated;static create(t,n=null){let r=Dn.get(t);return typeof r==`boolean`?r?Hn.INSTANCE:Un.INSTANCE:new e(t,n)}type=3;constructor(e,t){this.key=e,this.negated=t}cmp(e){return e.type===this.type?cr(this.key,e.key):this.type-e.type}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){let e=Dn.get(this.key);return typeof e==`boolean`?e?Hn.INSTANCE:Un.INSTANCE:this}evaluate(e){return!e.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}map(e){return e.mapNot(this.key)}negate(){return this.negated||=Wn.create(this.key,this),this.negated}};function Xn(e,t){if(typeof e==`string`){let t=parseFloat(e);isNaN(t)||(e=t)}return typeof e==`string`||typeof e==`number`?t(e):Hn.INSTANCE}var Zn=class e{key;value;negated;static create(t,n,r=null){return Xn(n,n=>new e(t,n,r))}type=12;constructor(e,t,n){this.key=e,this.value=t,this.negated=n}cmp(e){return e.type===this.type?lr(this.key,this.value,e.key,e.value):this.type-e.type}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){return this}evaluate(e){return typeof this.value!=`string`&&parseFloat(e.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}map(e){return e.mapGreater(this.key,this.value)}negate(){return this.negated||=er.create(this.key,this.value,this),this.negated}},Qn=class e{key;value;negated;static create(t,n,r=null){return Xn(n,n=>new e(t,n,r))}type=13;constructor(e,t,n){this.key=e,this.value=t,this.negated=n}cmp(e){return e.type===this.type?lr(this.key,this.value,e.key,e.value):this.type-e.type}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){return this}evaluate(e){return typeof this.value!=`string`&&parseFloat(e.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}map(e){return e.mapGreaterEquals(this.key,this.value)}negate(){return this.negated||=$n.create(this.key,this.value,this),this.negated}},$n=class e{key;value;negated;static create(t,n,r=null){return Xn(n,n=>new e(t,n,r))}type=14;constructor(e,t,n){this.key=e,this.value=t,this.negated=n}cmp(e){return e.type===this.type?lr(this.key,this.value,e.key,e.value):this.type-e.type}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){return this}evaluate(e){return typeof this.value!=`string`&&parseFloat(e.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}map(e){return e.mapSmaller(this.key,this.value)}negate(){return this.negated||=Qn.create(this.key,this.value,this),this.negated}},er=class e{key;value;negated;static create(t,n,r=null){return Xn(n,n=>new e(t,n,r))}type=15;constructor(e,t,n){this.key=e,this.value=t,this.negated=n}cmp(e){return e.type===this.type?lr(this.key,this.value,e.key,e.value):this.type-e.type}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){return this}evaluate(e){return typeof this.value!=`string`&&parseFloat(e.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}map(e){return e.mapSmallerEquals(this.key,this.value)}negate(){return this.negated||=Zn.create(this.key,this.value,this),this.negated}},tr=class e{key;regexp;static create(t,n){return new e(t,n)}type=7;negated=null;constructor(e,t){this.key=e,this.regexp=t}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.key<e.key)return-1;if(this.key>e.key)return 1;let t=this.regexp?this.regexp.source:``,n=e.regexp?e.regexp.source:``;return t<n?-1:+(t>n)}equals(e){if(e.type===this.type){let t=this.regexp?this.regexp.source:``,n=e.regexp?e.regexp.source:``;return this.key===e.key&&t===n}return!1}substituteConstants(){return this}evaluate(e){let t=e.getValue(this.key);return this.regexp?this.regexp.test(t):!1}serialize(){let e=this.regexp?`/${this.regexp.source}/${this.regexp.flags}`:`/invalid/`;return`${this.key} =~ ${e}`}keys(){return[this.key]}map(e){return e.mapRegex(this.key,this.regexp)}negate(){return this.negated||=nr.create(this),this.negated}},nr=class e{_actual;static create(t){return new e(t)}type=8;constructor(e){this._actual=e}cmp(e){return e.type===this.type?this._actual.cmp(e._actual):this.type-e.type}equals(e){return e.type===this.type&&this._actual.equals(e._actual)}substituteConstants(){return this}evaluate(e){return!this._actual.evaluate(e)}serialize(){return`!(${this._actual.serialize()})`}keys(){return this._actual.keys()}map(t){return new e(this._actual.map(t))}negate(){return this._actual}};function rr(e){let t=null;for(let n=0,r=e.length;n<r;n++){let r=e[n].substituteConstants();if(e[n]!==r&&t===null){t=[];for(let r=0;r<n;r++)t[r]=e[r]}t!==null&&(t[n]=r)}return t===null?e:t}var ir=class e{expr;negated;static create(t,n,r){return e._normalizeArr(t,n,r)}type=6;constructor(e,t){this.expr=e,this.negated=t}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let t=0,n=this.expr.length;t<n;t++){let n=Vn(this.expr[t],e.expr[t]);if(n!==0)return n}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1}substituteConstants(){let t=rr(this.expr);return t===this.expr?this:e.create(t,this.negated,!1)}evaluate(e){for(let t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].evaluate(e))return!1;return!0}static _normalizeArr(t,n,r){let i=[],a=!1;for(let e of t)if(e){if(e.type===1)a=!0;else{if(e.type===0)return Hn.INSTANCE;e.type===6?i.push(...e.expr):i.push(e)}}if(i.length===0&&a)return Un.INSTANCE;if(i.length!==0){if(i.length===1)return i[0];i.sort(Vn);for(let e=1;e<i.length;e++)i[e-1].equals(i[e])&&(i.splice(e,1),e--);if(i.length===1)return i[0];for(;i.length>1;){let t=i[i.length-1];if(t.type!==9)break;i.pop();let n=i.pop(),a=i.length===0,o=ar.create(t.expr.map(t=>e.create([t,n],null,r)),null,a);o&&(i.push(o),i.sort(Vn))}if(i.length===1)return i[0];if(r){for(let e=0;e<i.length;e++)for(let t=e+1;t<i.length;t++)if(i[e].negate().equals(i[t]))return Hn.INSTANCE;if(i.length===1)return i[0]}return new e(i,n)}}serialize(){return this.expr.map(e=>e.serialize()).join(` && `)}keys(){let e=[];for(let t of this.expr)e.push(...t.keys());return e}map(t){return new e(this.expr.map(e=>e.map(t)),null)}negate(){if(!this.negated){let e=[];for(let t of this.expr)e.push(t.negate());this.negated=ar.create(e,this,!0)}return this.negated}},ar=class e{expr;negated;static create(t,n,r){return e._normalizeArr(t,n,r)}type=9;constructor(e,t){this.expr=e,this.negated=t}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let t=0,n=this.expr.length;t<n;t++){let n=Vn(this.expr[t],e.expr[t]);if(n!==0)return n}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1}substituteConstants(){let t=rr(this.expr);return t===this.expr?this:e.create(t,this.negated,!1)}evaluate(e){for(let t=0,n=this.expr.length;t<n;t++)if(this.expr[t].evaluate(e))return!0;return!1}static _normalizeArr(t,n,r){let i=[],a=!1;if(t){for(let e=0,n=t.length;e<n;e++){let n=t[e];if(n){if(n.type===0)a=!0;else{if(n.type===1)return Un.INSTANCE;n.type===9?i=i.concat(n.expr):i.push(n)}}}if(i.length===0&&a)return Hn.INSTANCE;i.sort(Vn)}if(i.length!==0){if(i.length===1)return i[0];for(let e=1;e<i.length;e++)i[e-1].equals(i[e])&&(i.splice(e,1),e--);if(i.length===1)return i[0];if(r){for(let e=0;e<i.length;e++)for(let t=e+1;t<i.length;t++)if(i[e].negate().equals(i[t]))return Un.INSTANCE;if(i.length===1)return i[0]}return new e(i,n)}}serialize(){return this.expr.map(e=>e.serialize()).join(` || `)}keys(){let e=[];for(let t of this.expr)e.push(...t.keys());return e}map(t){return new e(this.expr.map(e=>e.map(t)),null)}negate(){if(!this.negated){let t=[];for(let e of this.expr)t.push(e.negate());for(;t.length>1;){let n=t.shift(),r=t.shift(),i=[];for(let e of fr(n))for(let t of fr(r))i.push(ir.create([e,t],null,!1));t.unshift(e.create(i,null,!1))}this.negated=e.create(t,this,!0)}return this.negated}},or=class e extends Wn{static _info=[];static all(){return e._info.values()}_defaultValue;constructor(t,n,r){super(t,null),this._defaultValue=n,typeof r==`object`?e._info.push({...r,key:t}):r!==!0&&e._info.push({key:t,description:r,type:n==null?void 0:typeof n})}bindTo(e){return e.createKey(this.key,this._defaultValue)}getValue(e){return e.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(e){return Gn.create(this.key,e)}notEqualsTo(e){return Jn.create(this.key,e)}},sr=Me(`contextKeyService`);function cr(e,t){return e<t?-1:+(e>t)}function lr(e,t,n,r){return e<n?-1:e>n?1:t<r?-1:+(t>r)}function ur(e,t){if(e.type===0||t.type===1)return!0;if(e.type===9)return t.type===9&&dr(e.expr,t.expr);if(t.type===9){for(let n of t.expr)if(ur(e,n))return!0;return!1}if(e.type===6){if(t.type===6)return dr(t.expr,e.expr);for(let n of e.expr)if(ur(n,t))return!0;return!1}return e.equals(t)}function dr(e,t){let n=0,r=0;for(;n<e.length&&r<t.length;){let i=e[n].cmp(t[r]);if(i<0)return!1;i===0&&n++,r++}return n===e.length}function fr(e){return e.type===9?e.expr:[e]}var pr=`data-keybinding-context`,mr=class{_parent;_value;_id;constructor(e,t){this._id=e,this._parent=t,this._value=Object.create(null),this._value._contextId=e}get value(){return{...this._value}}setValue(e,t){return this._value[e]!==t&&(this._value[e]=t,!0)}removeValue(e){return e in this._value&&(delete this._value[e],!0)}getValue(e){let t=this._value[e];return t===void 0&&this._parent?this._parent.getValue(e):t}updateParent(e){this._parent=e}collectAllValues(){let e=this._parent?this._parent.collectAllValues():Object.create(null);return e={...e,...this._value},delete e._contextId,e}},hr=class e extends mr{static INSTANCE=new e;constructor(){super(-1,null)}setValue(e,t){return!1}removeValue(e){return!1}getValue(e){}collectAllValues(){return Object.create(null)}},gr=class{_service;_key;_defaultValue;constructor(e,t,n){this._service=e,this._key=t,this._defaultValue=n,this.reset()}set(e){this._service.setContext(this._key,e)}reset(){this._defaultValue===void 0?this._service.removeContext(this._key):this._service.setContext(this._key,this._defaultValue)}get(){return this._service.getContextKeyValue(this._key)}},_r=class{key;constructor(e){this.key=e}affectsSome(e){return e.has(this.key)}allKeysContainedIn(e){return this.affectsSome(e)}},vr=class{keys;constructor(e){this.keys=e}affectsSome(e){for(let t of this.keys)if(e.has(t))return!0;return!1}allKeysContainedIn(e){return this.keys.every(t=>e.has(t))}},yr=class{events;constructor(e){this.events=e}affectsSome(e){for(let t of this.events)if(t.affectsSome(e))return!0;return!1}allKeysContainedIn(e){return this.events.every(t=>t.allKeysContainedIn(e))}};function br(e,t){return e.allKeysContainedIn(new Set(Object.keys(t)))}var xr=class{_isDisposed;_myContextId;_onDidChangeContext=new ve({merge:e=>new yr(e)});onDidChangeContext=this._onDidChangeContext.event;constructor(e){this._isDisposed=!1,this._myContextId=e}get contextId(){return this._myContextId}createKey(e,t){if(this._isDisposed)throw Error(`AbstractContextKeyService has been disposed`);return new gr(this,e,t)}bufferChangeEvents(e){this._onDidChangeContext.pause();try{e()}finally{this._onDidChangeContext.resume()}}createScoped(e){if(this._isDisposed)throw Error(`AbstractContextKeyService has been disposed`);return new Cr(this,e)}createOverlay(e=c.empty()){if(this._isDisposed)throw Error(`AbstractContextKeyService has been disposed`);return new Tr(this,e)}contextMatchesRules(e){if(this._isDisposed)throw Error(`AbstractContextKeyService has been disposed`);let t=this.getContextValuesContainer(this._myContextId);return!e||e.evaluate(t)}getContextKeyValue(e){if(!this._isDisposed)return this.getContextValuesContainer(this._myContextId).getValue(e)}setContext(e,t){if(this._isDisposed)return;let n=this.getContextValuesContainer(this._myContextId);n&&n.setValue(e,t)&&this._onDidChangeContext.fire(new _r(e))}removeContext(e){this._isDisposed||this.getContextValuesContainer(this._myContextId).removeValue(e)&&this._onDidChangeContext.fire(new _r(e))}getContext(e){return this._isDisposed?hr.INSTANCE:this.getContextValuesContainer(Er(e))}},Sr=class extends xr{_lastContextId;_contexts=new Map;_toDispose=new o;constructor(){super(0),this._lastContextId=0;let e=new mr(this._myContextId,null);this._contexts.set(this._myContextId,e)}dispose(){this._onDidChangeContext.dispose(),this._isDisposed=!0,this._toDispose.dispose()}getContextValuesContainer(e){return this._isDisposed?hr.INSTANCE:this._contexts.get(e)||hr.INSTANCE}createChildContext(e=this._myContextId){if(this._isDisposed)throw Error(`ContextKeyService has been disposed`);let t=++this._lastContextId;return this._contexts.set(t,new mr(t,this.getContextValuesContainer(e))),t}disposeContext(e){this._isDisposed||this._contexts.delete(e)}updateParent(e){throw Error(`Cannot update parent of root ContextKeyService`)}},Cr=class extends xr{_parent;_domNode;_parentChangeListener=new rt;constructor(e,t){if(super(e.createChildContext()),this._parent=e,this._updateParentChangeListener(),this._domNode=t,this._domNode.hasAttribute(pr)){let e=``;this._domNode.classList&&(e=Array.from(this._domNode.classList.values()).join(`, `)),console.error(`Element already has context attribute${e?`: `+e:``}`)}this._domNode.setAttribute(pr,String(this._myContextId))}_updateParentChangeListener(){this._parentChangeListener.value=this._parent.onDidChangeContext(e=>{let t=this._parent.getContextValuesContainer(this._myContextId).value;br(e,t)||this._onDidChangeContext.fire(e)})}dispose(){this._isDisposed||=(this._onDidChangeContext.dispose(),this._parent.disposeContext(this._myContextId),this._parentChangeListener.dispose(),this._domNode.removeAttribute(pr),!0)}getContextValuesContainer(e){return this._isDisposed?hr.INSTANCE:this._parent.getContextValuesContainer(e)}createChildContext(e=this._myContextId){if(this._isDisposed)throw Error(`ScopedContextKeyService has been disposed`);return this._parent.createChildContext(e)}disposeContext(e){this._isDisposed||this._parent.disposeContext(e)}updateParent(e){if(this._parent===e)return;let t=this._parent.getContextValuesContainer(this._myContextId),n=t.collectAllValues();this._parent=e,this._updateParentChangeListener();let r=this._parent.getContextValuesContainer(this._parent.contextId);t.updateParent(r);let i=t.collectAllValues(),a={...bn(n,i),...bn(i,n)},o=Object.keys(a);this._onDidChangeContext.fire(new vr(o))}},wr=class{parent;overlay;constructor(e,t){this.parent=e,this.overlay=t}getValue(e){return this.overlay.has(e)?this.overlay.get(e):this.parent.getValue(e)}},Tr=class e{parent;overlay;get contextId(){return this.parent.contextId}get onDidChangeContext(){return this.parent.onDidChangeContext}constructor(e,t){this.parent=e,this.overlay=new Map(t)}bufferChangeEvents(e){this.parent.bufferChangeEvents(e)}createKey(){throw Error(`Not supported.`)}getContext(e){return new wr(this.parent.getContext(e),this.overlay)}getContextValuesContainer(e){return new wr(this.parent.getContextValuesContainer(e),this.overlay)}contextMatchesRules(e){let t=this.getContextValuesContainer(this.contextId);return!e||e.evaluate(t)}getContextKeyValue(e){return this.overlay.has(e)?this.overlay.get(e):this.parent.getContextKeyValue(e)}createScoped(){throw Error(`Not supported.`)}createOverlay(t=c.empty()){return new e(this,t)}updateParent(){throw Error(`Not supported.`)}};function Er(e){for(;e;){if(e.hasAttribute(pr)){let t=e.getAttribute(pr);return t?parseInt(t,10):NaN}e=e.parentElement}return 0}function Dr(e,t,n){e.get(sr).createKey(String(t),Or(n))}function Or(e){return _n(e,e=>{if(typeof e==`object`&&e.$mid===1)return Zt.revive(e).toString();if(e instanceof Zt)return e.toString()})}Sn.registerCommand(`_setContext`,Dr),Sn.registerCommand({id:`getContextKeyInfo`,handler(){return[...or.all()].sort((e,t)=>e.key.localeCompare(t.key))},description:{description:R(`getContextKeyInfo`,`A command that returns information about context keys`),args:[]}}),Sn.registerCommand(`_generateContextKeyInfo`,function(){let e=[],t=new Set;for(let n of or.all())t.has(n.key)||(t.add(n.key),e.push(n));e.sort((e,t)=>e.key.localeCompare(t.key)),console.log(JSON.stringify(e,void 0,2))});var kr=class e{static INSTANCE=new e;_zoomLevel=0;getZoomLevel(){return this._zoomLevel}setZoomLevel(e,t){this._zoomLevel!==e&&(this._zoomLevel=e)}_zoomFactor=1;getZoomFactor(){return this._zoomFactor}setZoomFactor(e){this._zoomFactor=e}_fullscreen=!1;_onDidChangeFullscreen=new Ve;onDidChangeFullscreen=this._onDidChangeFullscreen.event;setFullscreen(e){this._fullscreen!==e&&(this._fullscreen=e,this._onDidChangeFullscreen.fire())}isFullscreen(){return this._fullscreen}},Ar=class extends I{_onDidChange=this._register(new Ve);onDidChange=this._onDidChange.event;_listener;_mediaQueryList;constructor(){super(),this._listener=()=>this._handleChange(!0),this._mediaQueryList=null,this._handleChange(!1)}_handleChange(e){this._mediaQueryList?.removeEventListener(`change`,this._listener),this._mediaQueryList=window.matchMedia(`(resolution: ${window.devicePixelRatio}dppx)`),this._mediaQueryList.addEventListener(`change`,this._listener),e&&this._onDidChange.fire()}},jr=class extends I{_onDidChange=this._register(new Ve);onDidChange=this._onDidChange.event;_value;get value(){return this._value}constructor(){super(),this._value=this._getPixelRatio();let e=this._register(new Ar);this._register(e.onDidChange(()=>{this._value=this._getPixelRatio(),this._onDidChange.fire(this._value)}))}_getPixelRatio(){let e=document.createElement(`canvas`).getContext(`2d`);return(window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1)}},Mr=class{_pixelRatioMonitor=null;_getOrCreatePixelRatioMonitor(){return this._pixelRatioMonitor||=ne(new jr),this._pixelRatioMonitor}get value(){return this._getOrCreatePixelRatioMonitor().value}get onDidChange(){return this._getOrCreatePixelRatioMonitor().onDidChange}};function Nr(e,t){typeof e==`string`&&(e=window.matchMedia(e)),e.addEventListener(`change`,t)}new Mr,kr.INSTANCE.onDidChangeFullscreen;var Pr=navigator.userAgent,Fr=Pr.indexOf(`Firefox`)>=0,Ir=Pr.indexOf(`AppleWebKit`)>=0;!(Pr.indexOf(`Chrome`)>=0)&&Pr.indexOf(`Safari`),Pr.indexOf(`Electron/`),Pr.indexOf(`Android`);var Lr=!1;if(window.matchMedia){let e=window.matchMedia(`(display-mode: standalone) or (display-mode: window-controls-overlay)`),t=window.matchMedia(`(display-mode: fullscreen)`);Lr=e.matches,Nr(e,({matches:e})=>{Lr&&t.matches||(Lr=e)})}var G;(function(e){e[e.DependsOnKbLayout=-1]=`DependsOnKbLayout`,e[e.Unknown=0]=`Unknown`,e[e.Backspace=1]=`Backspace`,e[e.Tab=2]=`Tab`,e[e.Enter=3]=`Enter`,e[e.Shift=4]=`Shift`,e[e.Ctrl=5]=`Ctrl`,e[e.Alt=6]=`Alt`,e[e.PauseBreak=7]=`PauseBreak`,e[e.CapsLock=8]=`CapsLock`,e[e.Escape=9]=`Escape`,e[e.Space=10]=`Space`,e[e.PageUp=11]=`PageUp`,e[e.PageDown=12]=`PageDown`,e[e.End=13]=`End`,e[e.Home=14]=`Home`,e[e.LeftArrow=15]=`LeftArrow`,e[e.UpArrow=16]=`UpArrow`,e[e.RightArrow=17]=`RightArrow`,e[e.DownArrow=18]=`DownArrow`,e[e.Insert=19]=`Insert`,e[e.Delete=20]=`Delete`,e[e.Digit0=21]=`Digit0`,e[e.Digit1=22]=`Digit1`,e[e.Digit2=23]=`Digit2`,e[e.Digit3=24]=`Digit3`,e[e.Digit4=25]=`Digit4`,e[e.Digit5=26]=`Digit5`,e[e.Digit6=27]=`Digit6`,e[e.Digit7=28]=`Digit7`,e[e.Digit8=29]=`Digit8`,e[e.Digit9=30]=`Digit9`,e[e.KeyA=31]=`KeyA`,e[e.KeyB=32]=`KeyB`,e[e.KeyC=33]=`KeyC`,e[e.KeyD=34]=`KeyD`,e[e.KeyE=35]=`KeyE`,e[e.KeyF=36]=`KeyF`,e[e.KeyG=37]=`KeyG`,e[e.KeyH=38]=`KeyH`,e[e.KeyI=39]=`KeyI`,e[e.KeyJ=40]=`KeyJ`,e[e.KeyK=41]=`KeyK`,e[e.KeyL=42]=`KeyL`,e[e.KeyM=43]=`KeyM`,e[e.KeyN=44]=`KeyN`,e[e.KeyO=45]=`KeyO`,e[e.KeyP=46]=`KeyP`,e[e.KeyQ=47]=`KeyQ`,e[e.KeyR=48]=`KeyR`,e[e.KeyS=49]=`KeyS`,e[e.KeyT=50]=`KeyT`,e[e.KeyU=51]=`KeyU`,e[e.KeyV=52]=`KeyV`,e[e.KeyW=53]=`KeyW`,e[e.KeyX=54]=`KeyX`,e[e.KeyY=55]=`KeyY`,e[e.KeyZ=56]=`KeyZ`,e[e.Meta=57]=`Meta`,e[e.ContextMenu=58]=`ContextMenu`,e[e.F1=59]=`F1`,e[e.F2=60]=`F2`,e[e.F3=61]=`F3`,e[e.F4=62]=`F4`,e[e.F5=63]=`F5`,e[e.F6=64]=`F6`,e[e.F7=65]=`F7`,e[e.F8=66]=`F8`,e[e.F9=67]=`F9`,e[e.F10=68]=`F10`,e[e.F11=69]=`F11`,e[e.F12=70]=`F12`,e[e.F13=71]=`F13`,e[e.F14=72]=`F14`,e[e.F15=73]=`F15`,e[e.F16=74]=`F16`,e[e.F17=75]=`F17`,e[e.F18=76]=`F18`,e[e.F19=77]=`F19`,e[e.F20=78]=`F20`,e[e.F21=79]=`F21`,e[e.F22=80]=`F22`,e[e.F23=81]=`F23`,e[e.F24=82]=`F24`,e[e.NumLock=83]=`NumLock`,e[e.ScrollLock=84]=`ScrollLock`,e[e.Semicolon=85]=`Semicolon`,e[e.Equal=86]=`Equal`,e[e.Comma=87]=`Comma`,e[e.Minus=88]=`Minus`,e[e.Period=89]=`Period`,e[e.Slash=90]=`Slash`,e[e.Backquote=91]=`Backquote`,e[e.BracketLeft=92]=`BracketLeft`,e[e.Backslash=93]=`Backslash`,e[e.BracketRight=94]=`BracketRight`,e[e.Quote=95]=`Quote`,e[e.OEM_8=96]=`OEM_8`,e[e.IntlBackslash=97]=`IntlBackslash`,e[e.Numpad0=98]=`Numpad0`,e[e.Numpad1=99]=`Numpad1`,e[e.Numpad2=100]=`Numpad2`,e[e.Numpad3=101]=`Numpad3`,e[e.Numpad4=102]=`Numpad4`,e[e.Numpad5=103]=`Numpad5`,e[e.Numpad6=104]=`Numpad6`,e[e.Numpad7=105]=`Numpad7`,e[e.Numpad8=106]=`Numpad8`,e[e.Numpad9=107]=`Numpad9`,e[e.NumpadMultiply=108]=`NumpadMultiply`,e[e.NumpadAdd=109]=`NumpadAdd`,e[e.NUMPAD_SEPARATOR=110]=`NUMPAD_SEPARATOR`,e[e.NumpadSubtract=111]=`NumpadSubtract`,e[e.NumpadDecimal=112]=`NumpadDecimal`,e[e.NumpadDivide=113]=`NumpadDivide`,e[e.KEY_IN_COMPOSITION=114]=`KEY_IN_COMPOSITION`,e[e.ABNT_C1=115]=`ABNT_C1`,e[e.ABNT_C2=116]=`ABNT_C2`,e[e.AudioVolumeMute=117]=`AudioVolumeMute`,e[e.AudioVolumeUp=118]=`AudioVolumeUp`,e[e.AudioVolumeDown=119]=`AudioVolumeDown`,e[e.BrowserSearch=120]=`BrowserSearch`,e[e.BrowserHome=121]=`BrowserHome`,e[e.BrowserBack=122]=`BrowserBack`,e[e.BrowserForward=123]=`BrowserForward`,e[e.MediaTrackNext=124]=`MediaTrackNext`,e[e.MediaTrackPrevious=125]=`MediaTrackPrevious`,e[e.MediaStop=126]=`MediaStop`,e[e.MediaPlayPause=127]=`MediaPlayPause`,e[e.LaunchMediaPlayer=128]=`LaunchMediaPlayer`,e[e.LaunchMail=129]=`LaunchMail`,e[e.LaunchApp2=130]=`LaunchApp2`,e[e.Clear=131]=`Clear`,e[e.MAX_VALUE=132]=`MAX_VALUE`})(G||={});var Rr=class{_keyCodeToStr;_strToKeyCode;constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||G.Unknown}},zr=new Rr,Br=new Rr,Vr=new Rr,Hr=Array(230),Ur={},Wr=[],Gr=Object.create(null),Kr=Object.create(null),qr=[],Jr=[];for(let e=0;e<=193;e++)qr[e]=G.DependsOnKbLayout;for(let e=0;e<=G.MAX_VALUE;e++)Jr[e]=-1;(function(){let e=[[1,0,`None`,G.Unknown,`unknown`,0,`VK_UNKNOWN`,``,``],[1,1,`Hyper`,G.Unknown,``,0,``,``,``],[1,2,`Super`,G.Unknown,``,0,``,``,``],[1,3,`Fn`,G.Unknown,``,0,``,``,``],[1,4,`FnLock`,G.Unknown,``,0,``,``,``],[1,5,`Suspend`,G.Unknown,``,0,``,``,``],[1,6,`Resume`,G.Unknown,``,0,``,``,``],[1,7,`Turbo`,G.Unknown,``,0,``,``,``],[1,8,`Sleep`,G.Unknown,``,0,`VK_SLEEP`,``,``],[1,9,`WakeUp`,G.Unknown,``,0,``,``,``],[0,10,`KeyA`,G.KeyA,`A`,65,`VK_A`,``,``],[0,11,`KeyB`,G.KeyB,`B`,66,`VK_B`,``,``],[0,12,`KeyC`,G.KeyC,`C`,67,`VK_C`,``,``],[0,13,`KeyD`,G.KeyD,`D`,68,`VK_D`,``,``],[0,14,`KeyE`,G.KeyE,`E`,69,`VK_E`,``,``],[0,15,`KeyF`,G.KeyF,`F`,70,`VK_F`,``,``],[0,16,`KeyG`,G.KeyG,`G`,71,`VK_G`,``,``],[0,17,`KeyH`,G.KeyH,`H`,72,`VK_H`,``,``],[0,18,`KeyI`,G.KeyI,`I`,73,`VK_I`,``,``],[0,19,`KeyJ`,G.KeyJ,`J`,74,`VK_J`,``,``],[0,20,`KeyK`,G.KeyK,`K`,75,`VK_K`,``,``],[0,21,`KeyL`,G.KeyL,`L`,76,`VK_L`,``,``],[0,22,`KeyM`,G.KeyM,`M`,77,`VK_M`,``,``],[0,23,`KeyN`,G.KeyN,`N`,78,`VK_N`,``,``],[0,24,`KeyO`,G.KeyO,`O`,79,`VK_O`,``,``],[0,25,`KeyP`,G.KeyP,`P`,80,`VK_P`,``,``],[0,26,`KeyQ`,G.KeyQ,`Q`,81,`VK_Q`,``,``],[0,27,`KeyR`,G.KeyR,`R`,82,`VK_R`,``,``],[0,28,`KeyS`,G.KeyS,`S`,83,`VK_S`,``,``],[0,29,`KeyT`,G.KeyT,`T`,84,`VK_T`,``,``],[0,30,`KeyU`,G.KeyU,`U`,85,`VK_U`,``,``],[0,31,`KeyV`,G.KeyV,`V`,86,`VK_V`,``,``],[0,32,`KeyW`,G.KeyW,`W`,87,`VK_W`,``,``],[0,33,`KeyX`,G.KeyX,`X`,88,`VK_X`,``,``],[0,34,`KeyY`,G.KeyY,`Y`,89,`VK_Y`,``,``],[0,35,`KeyZ`,G.KeyZ,`Z`,90,`VK_Z`,``,``],[0,36,`Digit1`,G.Digit1,`1`,49,`VK_1`,``,``],[0,37,`Digit2`,G.Digit2,`2`,50,`VK_2`,``,``],[0,38,`Digit3`,G.Digit3,`3`,51,`VK_3`,``,``],[0,39,`Digit4`,G.Digit4,`4`,52,`VK_4`,``,``],[0,40,`Digit5`,G.Digit5,`5`,53,`VK_5`,``,``],[0,41,`Digit6`,G.Digit6,`6`,54,`VK_6`,``,``],[0,42,`Digit7`,G.Digit7,`7`,55,`VK_7`,``,``],[0,43,`Digit8`,G.Digit8,`8`,56,`VK_8`,``,``],[0,44,`Digit9`,G.Digit9,`9`,57,`VK_9`,``,``],[0,45,`Digit0`,G.Digit0,`0`,48,`VK_0`,``,``],[1,46,`Enter`,G.Enter,`Enter`,13,`VK_RETURN`,``,``],[1,47,`Escape`,G.Escape,`Escape`,27,`VK_ESCAPE`,``,``],[1,48,`Backspace`,G.Backspace,`Backspace`,8,`VK_BACK`,``,``],[1,49,`Tab`,G.Tab,`Tab`,9,`VK_TAB`,``,``],[1,50,`Space`,G.Space,`Space`,32,`VK_SPACE`,``,``],[0,51,`Minus`,G.Minus,`-`,189,`VK_OEM_MINUS`,`-`,`OEM_MINUS`],[0,52,`Equal`,G.Equal,`=`,187,`VK_OEM_PLUS`,`=`,`OEM_PLUS`],[0,53,`BracketLeft`,G.BracketLeft,`[`,219,`VK_OEM_4`,`[`,`OEM_4`],[0,54,`BracketRight`,G.BracketRight,`]`,221,`VK_OEM_6`,`]`,`OEM_6`],[0,55,`Backslash`,G.Backslash,`\\`,220,`VK_OEM_5`,`\\`,`OEM_5`],[0,56,`IntlHash`,G.Unknown,``,0,``,``,``],[0,57,`Semicolon`,G.Semicolon,`;`,186,`VK_OEM_1`,`;`,`OEM_1`],[0,58,`Quote`,G.Quote,`'`,222,`VK_OEM_7`,`'`,`OEM_7`],[0,59,`Backquote`,G.Backquote,"`",192,`VK_OEM_3`,"`",`OEM_3`],[0,60,`Comma`,G.Comma,`,`,188,`VK_OEM_COMMA`,`,`,`OEM_COMMA`],[0,61,`Period`,G.Period,`.`,190,`VK_OEM_PERIOD`,`.`,`OEM_PERIOD`],[0,62,`Slash`,G.Slash,`/`,191,`VK_OEM_2`,`/`,`OEM_2`],[1,63,`CapsLock`,G.CapsLock,`CapsLock`,20,`VK_CAPITAL`,``,``],[1,64,`F1`,G.F1,`F1`,112,`VK_F1`,``,``],[1,65,`F2`,G.F2,`F2`,113,`VK_F2`,``,``],[1,66,`F3`,G.F3,`F3`,114,`VK_F3`,``,``],[1,67,`F4`,G.F4,`F4`,115,`VK_F4`,``,``],[1,68,`F5`,G.F5,`F5`,116,`VK_F5`,``,``],[1,69,`F6`,G.F6,`F6`,117,`VK_F6`,``,``],[1,70,`F7`,G.F7,`F7`,118,`VK_F7`,``,``],[1,71,`F8`,G.F8,`F8`,119,`VK_F8`,``,``],[1,72,`F9`,G.F9,`F9`,120,`VK_F9`,``,``],[1,73,`F10`,G.F10,`F10`,121,`VK_F10`,``,``],[1,74,`F11`,G.F11,`F11`,122,`VK_F11`,``,``],[1,75,`F12`,G.F12,`F12`,123,`VK_F12`,``,``],[1,76,`PrintScreen`,G.Unknown,``,0,``,``,``],[1,77,`ScrollLock`,G.ScrollLock,`ScrollLock`,145,`VK_SCROLL`,``,``],[1,78,`Pause`,G.PauseBreak,`PauseBreak`,19,`VK_PAUSE`,``,``],[1,79,`Insert`,G.Insert,`Insert`,45,`VK_INSERT`,``,``],[1,80,`Home`,G.Home,`Home`,36,`VK_HOME`,``,``],[1,81,`PageUp`,G.PageUp,`PageUp`,33,`VK_PRIOR`,``,``],[1,82,`Delete`,G.Delete,`Delete`,46,`VK_DELETE`,``,``],[1,83,`End`,G.End,`End`,35,`VK_END`,``,``],[1,84,`PageDown`,G.PageDown,`PageDown`,34,`VK_NEXT`,``,``],[1,85,`ArrowRight`,G.RightArrow,`RightArrow`,39,`VK_RIGHT`,`Right`,``],[1,86,`ArrowLeft`,G.LeftArrow,`LeftArrow`,37,`VK_LEFT`,`Left`,``],[1,87,`ArrowDown`,G.DownArrow,`DownArrow`,40,`VK_DOWN`,`Down`,``],[1,88,`ArrowUp`,G.UpArrow,`UpArrow`,38,`VK_UP`,`Up`,``],[1,89,`NumLock`,G.NumLock,`NumLock`,144,`VK_NUMLOCK`,``,``],[1,90,`NumpadDivide`,G.NumpadDivide,`NumPad_Divide`,111,`VK_DIVIDE`,``,``],[1,91,`NumpadMultiply`,G.NumpadMultiply,`NumPad_Multiply`,106,`VK_MULTIPLY`,``,``],[1,92,`NumpadSubtract`,G.NumpadSubtract,`NumPad_Subtract`,109,`VK_SUBTRACT`,``,``],[1,93,`NumpadAdd`,G.NumpadAdd,`NumPad_Add`,107,`VK_ADD`,``,``],[1,94,`NumpadEnter`,G.Enter,``,0,``,``,``],[1,95,`Numpad1`,G.Numpad1,`NumPad1`,97,`VK_NUMPAD1`,``,``],[1,96,`Numpad2`,G.Numpad2,`NumPad2`,98,`VK_NUMPAD2`,``,``],[1,97,`Numpad3`,G.Numpad3,`NumPad3`,99,`VK_NUMPAD3`,``,``],[1,98,`Numpad4`,G.Numpad4,`NumPad4`,100,`VK_NUMPAD4`,``,``],[1,99,`Numpad5`,G.Numpad5,`NumPad5`,101,`VK_NUMPAD5`,``,``],[1,100,`Numpad6`,G.Numpad6,`NumPad6`,102,`VK_NUMPAD6`,``,``],[1,101,`Numpad7`,G.Numpad7,`NumPad7`,103,`VK_NUMPAD7`,``,``],[1,102,`Numpad8`,G.Numpad8,`NumPad8`,104,`VK_NUMPAD8`,``,``],[1,103,`Numpad9`,G.Numpad9,`NumPad9`,105,`VK_NUMPAD9`,``,``],[1,104,`Numpad0`,G.Numpad0,`NumPad0`,96,`VK_NUMPAD0`,``,``],[1,105,`NumpadDecimal`,G.NumpadDecimal,`NumPad_Decimal`,110,`VK_DECIMAL`,``,``],[0,106,`IntlBackslash`,G.IntlBackslash,`OEM_102`,226,`VK_OEM_102`,``,``],[1,107,`ContextMenu`,G.ContextMenu,`ContextMenu`,93,``,``,``],[1,108,`Power`,G.Unknown,``,0,``,``,``],[1,109,`NumpadEqual`,G.Unknown,``,0,``,``,``],[1,110,`F13`,G.F13,`F13`,124,`VK_F13`,``,``],[1,111,`F14`,G.F14,`F14`,125,`VK_F14`,``,``],[1,112,`F15`,G.F15,`F15`,126,`VK_F15`,``,``],[1,113,`F16`,G.F16,`F16`,127,`VK_F16`,``,``],[1,114,`F17`,G.F17,`F17`,128,`VK_F17`,``,``],[1,115,`F18`,G.F18,`F18`,129,`VK_F18`,``,``],[1,116,`F19`,G.F19,`F19`,130,`VK_F19`,``,``],[1,117,`F20`,G.F20,`F20`,0,`VK_F20`,``,``],[1,118,`F21`,G.F21,`F21`,0,`VK_F21`,``,``],[1,119,`F22`,G.F22,`F22`,0,`VK_F22`,``,``],[1,120,`F23`,G.F23,`F23`,0,`VK_F23`,``,``],[1,121,`F24`,G.F24,`F24`,0,`VK_F24`,``,``],[1,122,`Open`,G.Unknown,``,0,``,``,``],[1,123,`Help`,G.Unknown,``,0,``,``,``],[1,124,`Select`,G.Unknown,``,0,``,``,``],[1,125,`Again`,G.Unknown,``,0,``,``,``],[1,126,`Undo`,G.Unknown,``,0,``,``,``],[1,127,`Cut`,G.Unknown,``,0,``,``,``],[1,128,`Copy`,G.Unknown,``,0,``,``,``],[1,129,`Paste`,G.Unknown,``,0,``,``,``],[1,130,`Find`,G.Unknown,``,0,``,``,``],[1,131,`AudioVolumeMute`,G.AudioVolumeMute,`AudioVolumeMute`,173,`VK_VOLUME_MUTE`,``,``],[1,132,`AudioVolumeUp`,G.AudioVolumeUp,`AudioVolumeUp`,175,`VK_VOLUME_UP`,``,``],[1,133,`AudioVolumeDown`,G.AudioVolumeDown,`AudioVolumeDown`,174,`VK_VOLUME_DOWN`,``,``],[1,134,`NumpadComma`,G.NUMPAD_SEPARATOR,`NumPad_Separator`,108,`VK_SEPARATOR`,``,``],[0,135,`IntlRo`,G.ABNT_C1,`ABNT_C1`,193,`VK_ABNT_C1`,``,``],[1,136,`KanaMode`,G.Unknown,``,0,``,``,``],[0,137,`IntlYen`,G.Unknown,``,0,``,``,``],[1,138,`Convert`,G.Unknown,``,0,``,``,``],[1,139,`NonConvert`,G.Unknown,``,0,``,``,``],[1,140,`Lang1`,G.Unknown,``,0,``,``,``],[1,141,`Lang2`,G.Unknown,``,0,``,``,``],[1,142,`Lang3`,G.Unknown,``,0,``,``,``],[1,143,`Lang4`,G.Unknown,``,0,``,``,``],[1,144,`Lang5`,G.Unknown,``,0,``,``,``],[1,145,`Abort`,G.Unknown,``,0,``,``,``],[1,146,`Props`,G.Unknown,``,0,``,``,``],[1,147,`NumpadParenLeft`,G.Unknown,``,0,``,``,``],[1,148,`NumpadParenRight`,G.Unknown,``,0,``,``,``],[1,149,`NumpadBackspace`,G.Unknown,``,0,``,``,``],[1,150,`NumpadMemoryStore`,G.Unknown,``,0,``,``,``],[1,151,`NumpadMemoryRecall`,G.Unknown,``,0,``,``,``],[1,152,`NumpadMemoryClear`,G.Unknown,``,0,``,``,``],[1,153,`NumpadMemoryAdd`,G.Unknown,``,0,``,``,``],[1,154,`NumpadMemorySubtract`,G.Unknown,``,0,``,``,``],[1,155,`NumpadClear`,G.Clear,`Clear`,12,`VK_CLEAR`,``,``],[1,156,`NumpadClearEntry`,G.Unknown,``,0,``,``,``],[1,0,``,G.Ctrl,`Ctrl`,17,`VK_CONTROL`,``,``],[1,0,``,G.Shift,`Shift`,16,`VK_SHIFT`,``,``],[1,0,``,G.Alt,`Alt`,18,`VK_MENU`,``,``],[1,0,``,G.Meta,`Meta`,91,`VK_COMMAND`,``,``],[1,157,`ControlLeft`,G.Ctrl,``,0,`VK_LCONTROL`,``,``],[1,158,`ShiftLeft`,G.Shift,``,0,`VK_LSHIFT`,``,``],[1,159,`AltLeft`,G.Alt,``,0,`VK_LMENU`,``,``],[1,160,`MetaLeft`,G.Meta,``,0,`VK_LWIN`,``,``],[1,161,`ControlRight`,G.Ctrl,``,0,`VK_RCONTROL`,``,``],[1,162,`ShiftRight`,G.Shift,``,0,`VK_RSHIFT`,``,``],[1,163,`AltRight`,G.Alt,``,0,`VK_RMENU`,``,``],[1,164,`MetaRight`,G.Meta,``,0,`VK_RWIN`,``,``],[1,165,`BrightnessUp`,G.Unknown,``,0,``,``,``],[1,166,`BrightnessDown`,G.Unknown,``,0,``,``,``],[1,167,`MediaPlay`,G.Unknown,``,0,``,``,``],[1,168,`MediaRecord`,G.Unknown,``,0,``,``,``],[1,169,`MediaFastForward`,G.Unknown,``,0,``,``,``],[1,170,`MediaRewind`,G.Unknown,``,0,``,``,``],[1,171,`MediaTrackNext`,G.MediaTrackNext,`MediaTrackNext`,176,`VK_MEDIA_NEXT_TRACK`,``,``],[1,172,`MediaTrackPrevious`,G.MediaTrackPrevious,`MediaTrackPrevious`,177,`VK_MEDIA_PREV_TRACK`,``,``],[1,173,`MediaStop`,G.MediaStop,`MediaStop`,178,`VK_MEDIA_STOP`,``,``],[1,174,`Eject`,G.Unknown,``,0,``,``,``],[1,175,`MediaPlayPause`,G.MediaPlayPause,`MediaPlayPause`,179,`VK_MEDIA_PLAY_PAUSE`,``,``],[1,176,`MediaSelect`,G.LaunchMediaPlayer,`LaunchMediaPlayer`,181,`VK_MEDIA_LAUNCH_MEDIA_SELECT`,``,``],[1,177,`LaunchMail`,G.LaunchMail,`LaunchMail`,180,`VK_MEDIA_LAUNCH_MAIL`,``,``],[1,178,`LaunchApp2`,G.LaunchApp2,`LaunchApp2`,183,`VK_MEDIA_LAUNCH_APP2`,``,``],[1,179,`LaunchApp1`,G.Unknown,``,0,`VK_MEDIA_LAUNCH_APP1`,``,``],[1,180,`SelectTask`,G.Unknown,``,0,``,``,``],[1,181,`LaunchScreenSaver`,G.Unknown,``,0,``,``,``],[1,182,`BrowserSearch`,G.BrowserSearch,`BrowserSearch`,170,`VK_BROWSER_SEARCH`,``,``],[1,183,`BrowserHome`,G.BrowserHome,`BrowserHome`,172,`VK_BROWSER_HOME`,``,``],[1,184,`BrowserBack`,G.BrowserBack,`BrowserBack`,166,`VK_BROWSER_BACK`,``,``],[1,185,`BrowserForward`,G.BrowserForward,`BrowserForward`,167,`VK_BROWSER_FORWARD`,``,``],[1,186,`BrowserStop`,G.Unknown,``,0,`VK_BROWSER_STOP`,``,``],[1,187,`BrowserRefresh`,G.Unknown,``,0,`VK_BROWSER_REFRESH`,``,``],[1,188,`BrowserFavorites`,G.Unknown,``,0,`VK_BROWSER_FAVORITES`,``,``],[1,189,`ZoomToggle`,G.Unknown,``,0,``,``,``],[1,190,`MailReply`,G.Unknown,``,0,``,``,``],[1,191,`MailForward`,G.Unknown,``,0,``,``,``],[1,192,`MailSend`,G.Unknown,``,0,``,``,``],[1,0,``,G.KEY_IN_COMPOSITION,`KeyInComposition`,229,``,``,``],[1,0,``,G.ABNT_C2,`ABNT_C2`,194,`VK_ABNT_C2`,``,``],[1,0,``,G.OEM_8,`OEM_8`,223,`VK_OEM_8`,``,``],[1,0,``,G.Unknown,``,0,`VK_KANA`,``,``],[1,0,``,G.Unknown,``,0,`VK_HANGUL`,``,``],[1,0,``,G.Unknown,``,0,`VK_JUNJA`,``,``],[1,0,``,G.Unknown,``,0,`VK_FINAL`,``,``],[1,0,``,G.Unknown,``,0,`VK_HANJA`,``,``],[1,0,``,G.Unknown,``,0,`VK_KANJI`,``,``],[1,0,``,G.Unknown,``,0,`VK_CONVERT`,``,``],[1,0,``,G.Unknown,``,0,`VK_NONCONVERT`,``,``],[1,0,``,G.Unknown,``,0,`VK_ACCEPT`,``,``],[1,0,``,G.Unknown,``,0,`VK_MODECHANGE`,``,``],[1,0,``,G.Unknown,``,0,`VK_SELECT`,``,``],[1,0,``,G.Unknown,``,0,`VK_PRINT`,``,``],[1,0,``,G.Unknown,``,0,`VK_EXECUTE`,``,``],[1,0,``,G.Unknown,``,0,`VK_SNAPSHOT`,``,``],[1,0,``,G.Unknown,``,0,`VK_HELP`,``,``],[1,0,``,G.Unknown,``,0,`VK_APPS`,``,``],[1,0,``,G.Unknown,``,0,`VK_PROCESSKEY`,``,``],[1,0,``,G.Unknown,``,0,`VK_PACKET`,``,``],[1,0,``,G.Unknown,``,0,`VK_DBE_SBCSCHAR`,``,``],[1,0,``,G.Unknown,``,0,`VK_DBE_DBCSCHAR`,``,``],[1,0,``,G.Unknown,``,0,`VK_ATTN`,``,``],[1,0,``,G.Unknown,``,0,`VK_CRSEL`,``,``],[1,0,``,G.Unknown,``,0,`VK_EXSEL`,``,``],[1,0,``,G.Unknown,``,0,`VK_EREOF`,``,``],[1,0,``,G.Unknown,``,0,`VK_PLAY`,``,``],[1,0,``,G.Unknown,``,0,`VK_ZOOM`,``,``],[1,0,``,G.Unknown,``,0,`VK_NONAME`,``,``],[1,0,``,G.Unknown,``,0,`VK_PA1`,``,``],[1,0,``,G.Unknown,``,0,`VK_OEM_CLEAR`,``,``]],t=[],n=[];for(let r of e){let[e,i,a,o,s,c,l,u,d]=r;if(n[i]||(n[i]=!0,Wr[i]=a,Gr[a]=i,Kr[a.toLowerCase()]=i,e&&(qr[i]=o,o!==G.Unknown&&o!==G.Enter&&o!==G.Ctrl&&o!==G.Shift&&o!==G.Alt&&o!==G.Meta&&(Jr[o]=i))),!t[o]){if(t[o]=!0,!s)throw Error(`String representation missing for key code ${o} around scan code ${a}`);zr.define(o,s),Br.define(o,u||s),Vr.define(o,d||u||s)}c&&(Hr[c]=o),l&&(Ur[l]=o)}Jr[G.Enter]=46})();var Yr;(function(e){function t(e){return zr.keyCodeToStr(e)}e.toString=t;function n(e){return zr.strToKeyCode(e)}e.fromString=n;function r(e){return Br.keyCodeToStr(e)}e.toUserSettingsUS=r;function i(e){return Vr.keyCodeToStr(e)}e.toUserSettingsGeneral=i;function a(e){return Br.strToKeyCode(e)||Vr.strToKeyCode(e)}e.fromUserSettings=a;function o(e){if(e>=G.Numpad0&&e<=G.NumpadDivide)return null;switch(e){case G.UpArrow:return`Up`;case G.DownArrow:return`Down`;case G.LeftArrow:return`Left`;case G.RightArrow:return`Right`}return zr.keyCodeToStr(e)}e.toElectronAccelerator=o})(Yr||={});var Xr;(function(e){e[e.CtrlCmd=2048]=`CtrlCmd`,e[e.Shift=1024]=`Shift`,e[e.Alt=512]=`Alt`,e[e.WinCtrl=256]=`WinCtrl`})(Xr||={});function Zr(e,t){if(typeof e==`number`){if(e===0)return null;let n=(e&65535)>>>0,r=(e&4294901760)>>>16;return r===0?new ei([Qr(n,t)]):new ei([Qr(n,t),Qr(r,t)])}{let n=[];for(let r=0;r<e.length;r++)n.push(Qr(e[r],t));return new ei(n)}}function Qr(e,t){let n=!!(e&2048),r=!!(e&256);return new $r(t===$e.Macintosh?r:n,!!(e&1024),!!(e&512),t===$e.Macintosh?n:r,e&255)}var $r=class e{ctrlKey;shiftKey;altKey;metaKey;keyCode;constructor(e,t,n,r,i){this.ctrlKey=e,this.shiftKey=t,this.altKey=n,this.metaKey=r,this.keyCode=i}equals(t){return t instanceof e&&this.ctrlKey===t.ctrlKey&&this.shiftKey===t.shiftKey&&this.altKey===t.altKey&&this.metaKey===t.metaKey&&this.keyCode===t.keyCode}getHashCode(){return`K${this.ctrlKey?`1`:`0`}${this.shiftKey?`1`:`0`}${this.altKey?`1`:`0`}${this.metaKey?`1`:`0`}${this.keyCode}`}isModifierKey(){return this.keyCode===G.Unknown||this.keyCode===G.Ctrl||this.keyCode===G.Meta||this.keyCode===G.Alt||this.keyCode===G.Shift}toKeybinding(){return new ei([this])}isDuplicateModifierCase(){return this.ctrlKey&&this.keyCode===G.Ctrl||this.shiftKey&&this.keyCode===G.Shift||this.altKey&&this.keyCode===G.Alt||this.metaKey&&this.keyCode===G.Meta}},ei=class{chords;constructor(e){if(e.length===0)throw k(`chords`);this.chords=e}getHashCode(){let e=``;for(let t=0,n=this.chords.length;t<n;t++)t!==0&&(e+=`;`),e+=this.chords[t].getHashCode();return e}equals(e){if(e===null||this.chords.length!==e.chords.length)return!1;for(let t=0;t<this.chords.length;t++)if(!this.chords[t].equals(e.chords[t]))return!1;return!0}},ti=class{ctrlKey;shiftKey;altKey;metaKey;keyLabel;keyAriaLabel;constructor(e,t,n,r,i,a){this.ctrlKey=e,this.shiftKey=t,this.altKey=n,this.metaKey=r,this.keyLabel=i,this.keyAriaLabel=a}},ni=class{};function ri(e){if(e.charCode){let t=String.fromCharCode(e.charCode).toUpperCase();return Yr.fromString(t)}let t=e.keyCode;if(t===3)return G.PauseBreak;if(Fr)switch(t){case 59:return G.Semicolon;case 60:if(Oe)return G.IntlBackslash;break;case 61:return G.Equal;case 107:return G.NumpadAdd;case 109:return G.NumpadSubtract;case 173:return G.Minus;case 224:if(Ee)return G.Meta}else if(Ir&&(Ee&&t===93||!Ee&&t===92))return G.Meta;return Hr[t]||G.Unknown}var ii=Ee?Xr.WinCtrl:Xr.CtrlCmd,ai=Xr.Alt,oi=Xr.Shift,si=Ee?Xr.CtrlCmd:Xr.WinCtrl,ci=class{_standardKeyboardEventBrand=!0;browserEvent;target;ctrlKey;shiftKey;altKey;metaKey;altGraphKey;keyCode;code;_asKeybinding;_asKeyCodeChord;constructor(e){let t=e;this.browserEvent=t,this.target=t.target,this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,this.altGraphKey=t.getModifierState(`AltGraph`),this.keyCode=ri(t),this.code=t.code,this.ctrlKey=this.ctrlKey||this.keyCode===G.Ctrl,this.altKey=this.altKey||this.keyCode===G.Alt,this.shiftKey=this.shiftKey||this.keyCode===G.Shift,this.metaKey=this.metaKey||this.keyCode===G.Meta,this._asKeybinding=this._computeKeybinding(),this._asKeyCodeChord=this._computeKeyCodeChord()}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()}toKeyCodeChord(){return this._asKeyCodeChord}equals(e){return this._asKeybinding===e}_computeKeybinding(){let e=G.Unknown;this.keyCode!==G.Ctrl&&this.keyCode!==G.Shift&&this.keyCode!==G.Alt&&this.keyCode!==G.Meta&&(e=this.keyCode);let t=0;return this.ctrlKey&&(t|=ii),this.altKey&&(t|=ai),this.shiftKey&&(t|=oi),this.metaKey&&(t|=si),t|=e,t}_computeKeyCodeChord(){let e=G.Unknown;return this.keyCode!==G.Ctrl&&this.keyCode!==G.Shift&&this.keyCode!==G.Alt&&this.keyCode!==G.Meta&&(e=this.keyCode),new $r(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e)}};function li(e){return e.filter(e=>!!e)}var ui;(function(e){function t(e){return e<0}e.isLessThan=t;function n(e){return e>0}e.isGreaterThan=n;function r(e){return e===0}e.isNeitherLessOrGreaterThan=r,e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0})(ui||={}),class e{iterate;static empty=new e(e=>{});constructor(e){this.iterate=e}forEach(e){this.iterate(t=>(e(t),!0))}toArray(){let e=[];return this.iterate(t=>(e.push(t),!0)),e}filter(t){return new e(e=>this.iterate(n=>!t(n)||e(n)))}map(t){return new e(e=>this.iterate(n=>e(t(n))))}some(e){let t=!1;return this.iterate(n=>(t=e(n),!t)),t}findFirst(e){let t;return this.iterate(n=>!e(n)||(t=n,!1)),t}findLast(e){let t;return this.iterate(n=>(e(n)&&(t=n),!0)),t}findLastMaxBy(e){let t,n=!0;return this.iterate(r=>((n||ui.isGreaterThan(e(r,t)))&&(n=!1,t=r),!0)),t}};var di=new class{_onDidChange=new Ve;onDidChange=this._onDidChange.event;_enabled=!0;get enabled(){return this._enabled}enable(){this._enabled=!0,this._onDidChange.fire()}disable(){this._enabled=!1,this._onDidChange.fire()}},fi=class extends I{_contextKeyService;_commandService;_showMessage;_logMessage;_serviceBrand;_onDidUpdateKeybindings=this._register(new Ve);get onDidUpdateKeybindings(){return this._onDidUpdateKeybindings?this._onDidUpdateKeybindings.event:Ye.None}_currentChords;_currentChordChecker;_currentChordStatusMessage;_ignoreSingleModifiers;_currentSingleModifier;_currentSingleModifierClearTimeout;_logging;get inChordMode(){return this._currentChords.length>0}constructor(e,t,n,r){super(),this._contextKeyService=e,this._commandService=t,this._showMessage=n,this._logMessage=r,this._currentChords=[],this._currentChordChecker=new Ae,this._currentChordStatusMessage=null,this._ignoreSingleModifiers=pi.EMPTY,this._currentSingleModifier=null,this._currentSingleModifierClearTimeout=new he,this._logging=!1}dispose(){super.dispose()}getDefaultKeybindingsContent(){return``}toggleLogging(){return this._logging=!this._logging,this._logging}_log(e){this._logging&&this._logMessage(`[KeybindingService]: ${e}`)}getDefaultKeybindings(){return this._getResolver().getDefaultKeybindings()}getKeybindings(){return this._getResolver().getKeybindings()}customKeybindingsCount(){return 0}lookupKeybindings(e){return li(this._getResolver().lookupKeybindings(e).map(e=>e.resolvedKeybinding))}lookupKeybinding(e,t){let n=this._getResolver().lookupPrimaryKeybinding(e,t||this._contextKeyService);if(n)return n.resolvedKeybinding}dispatchEvent(e,t){return this._dispatch(e,t)}softDispatch(e,t){this._log(`/ Soft dispatching keyboard event`);let n=this.resolveKeyboardEvent(e);if(n.hasMultipleChords())return console.warn(`Unexpected keyboard event mapped to multiple chords`),null;let[r]=n.getDispatchChords();if(r===null)return this._log(`\\ Keyboard event cannot be dispatched`),null;let i=this._contextKeyService.getContext(t),a=this._currentChords.map((({keypress:e})=>e));return this._getResolver().resolve(i,a,r)}_scheduleLeaveChordMode(){let e=Date.now();this._currentChordChecker.cancelAndSet(()=>{this._documentHasFocus()?Date.now()-e>5e3&&this._leaveChordMode():this._leaveChordMode()},500)}_expectAnotherChord(e,t){switch(this._currentChords.push({keypress:e,label:t}),this._currentChords.length){case 0:throw Ne(`impossible`);case 1:this._currentChordStatusMessage=this._showMessage(R(`first.chord`,`({0}) was pressed. Waiting for second key of chord...`,t));break;default:{let e=this._currentChords.map(({label:e})=>e).join(`, `);this._currentChordStatusMessage=this._showMessage(R(`next.chord`,`({0}) was pressed. Waiting for next key of chord...`,e))}}this._scheduleLeaveChordMode(),di.enabled&&di.disable()}_leaveChordMode(){this._currentChordStatusMessage&&=(this._currentChordStatusMessage.dispose(),null),this._currentChordChecker.cancel(),this._currentChords=[],di.enable()}dispatchByUserSettingsLabel(e,t){this._log(`/ Dispatching keybinding triggered via menu entry accelerator - ${e}`);let n=this.resolveUserBinding(e);n.length===0?this._log(`\\ Could not resolve - ${e}`):this._doDispatch(n[0],t,!1)}_dispatch(e,t){return this._doDispatch(this.resolveKeyboardEvent(e),t,!1)}_singleModifierDispatch(e,t){let n=this.resolveKeyboardEvent(e),[r]=n.getSingleModifierDispatchChords();if(r)return this._ignoreSingleModifiers.has(r)?(this._log(`+ Ignoring single modifier ${r} due to it being pressed together with other keys.`),this._ignoreSingleModifiers=pi.EMPTY,this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1):(this._ignoreSingleModifiers=pi.EMPTY,this._currentSingleModifier===null?(this._log(`+ Storing single modifier for possible chord ${r}.`),this._currentSingleModifier=r,this._currentSingleModifierClearTimeout.cancelAndSet(()=>{this._log(`+ Clearing single modifier due to 300ms elapsed.`),this._currentSingleModifier=null},300),!1):r===this._currentSingleModifier?(this._log(`/ Dispatching single modifier chord ${r} ${r}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,this._doDispatch(n,t,!0)):(this._log(`+ Clearing single modifier due to modifier mismatch: ${this._currentSingleModifier} ${r}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1));let[i]=n.getChords();return this._ignoreSingleModifiers=new pi(i),this._currentSingleModifier!==null&&this._log(`+ Clearing single modifier due to other key up.`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1}_doDispatch(e,t,n=!1){let r=!1;if(e.hasMultipleChords())return console.warn(`Unexpected keyboard event mapped to multiple chords`),!1;let i=null,a=null;if(n){let[t]=e.getSingleModifierDispatchChords();i=t,a=t?[t]:[]}else[i]=e.getDispatchChords(),a=this._currentChords.map(({keypress:e})=>e);if(i===null)return this._log(`\\ Keyboard event cannot be dispatched in keydown phase.`),r;let o=this._contextKeyService.getContext(t),s=e.getLabel(),c=this._getResolver().resolve(o,a,i);switch(c.kind){case 0:if(this._logMessage(`KeybindingService#dispatch`,s,`[ No matching keybinding ]`),this.inChordMode){let e=this._currentChords.map(({label:e})=>e).join(`, `);this._log(`+ Leaving multi-chord mode: Nothing bound to "${e}, ${s}".`),this._showMessage(R(`missing.chord`,`The key combination ({0}, {1}) is not a command.`,e,s),{hideAfter:1e4}),this._leaveChordMode(),r=!0}return r;case 1:return this._logMessage(`KeybindingService#dispatch`,s,`[ Several keybindings match - more chords needed ]`),r=!0,this._expectAnotherChord(i,s),this._log(this._currentChords.length===1?`+ Entering multi-chord mode...`:`+ Continuing multi-chord mode...`),r;case 2:if(this._logMessage(`KeybindingService#dispatch`,s,`[ Will dispatch command ${c.commandId} ]`),c.commandId===null||c.commandId===``){if(this.inChordMode){let e=this._currentChords.map(({label:e})=>e).join(`, `);this._log(`+ Leaving chord mode: Nothing bound to "${e}, ${s}".`),this._showMessage(R(`missing.chord`,`The key combination ({0}, {1}) is not a command.`,e,s),{hideAfter:1e4}),this._leaveChordMode(),r=!0}}else this.inChordMode&&this._leaveChordMode(),c.isBubble||(r=!0),this._log(`+ Invoking command ${c.commandId}.`),c.commandArgs===void 0?this._commandService.executeCommand(c.commandId).then(void 0,e=>this._showMessage(e instanceof Error?e:Error(String(e)))):this._commandService.executeCommand(c.commandId,c.commandArgs).then(void 0,e=>this._showMessage(e instanceof Error?e:Error(String(e))));return r}}mightProducePrintableCharacter(e){return e.ctrlKey||e.metaKey?!1:e.keyCode>=G.KeyA&&e.keyCode<=G.KeyZ||e.keyCode>=G.Digit0&&e.keyCode<=G.Digit9}},pi=class e{static EMPTY=new e(null);_ctrlKey;_shiftKey;_altKey;_metaKey;constructor(e){this._ctrlKey=e?e.ctrlKey:!1,this._shiftKey=e?e.shiftKey:!1,this._altKey=e?e.altKey:!1,this._metaKey=e?e.metaKey:!1}has(e){switch(e){case`ctrl`:return this._ctrlKey;case`shift`:return this._shiftKey;case`alt`:return this._altKey;case`meta`:return this._metaKey}}},mi={kind:0},hi={kind:1};function gi(e,t,n){return{kind:2,commandId:e,commandArgs:t,isBubble:n}}var _i=class e{_log;_defaultKeybindings;_keybindings;_defaultBoundCommands;_map;_lookupMap;constructor(t,n,r){this._log=r,this._defaultKeybindings=t,this._defaultBoundCommands=new Map;for(let e of t){let t=e.command;t&&t.charAt(0)!==`-`&&this._defaultBoundCommands.set(t,!0)}this._map=new Map,this._lookupMap=new Map,this._keybindings=e.handleRemovals([].concat(t,n));for(let e=0,t=this._keybindings.length;e<t;e++){let t=this._keybindings[e];if(t.chords.length===0)continue;let n=t.when?.substituteConstants();n&&n.type===0||this._addKeyPress(t.chords[0],t)}}static _isTargetedForRemoval(e,t,n){if(t){for(let n=0;n<t.length;n++)if(t[n]!==e.chords[n])return!1}return!(n&&n.type!==1&&(!e.when||!Bn(n,e.when)))}static handleRemovals(e){let t=new Map;for(let n=0,r=e.length;n<r;n++){let r=e[n];if(r.command&&r.command.charAt(0)===`-`){let e=r.command.substring(1);t.has(e)?t.get(e).push(r):t.set(e,[r])}}if(t.size===0)return e;let n=[];for(let r=0,i=e.length;r<i;r++){let i=e[r];if(!i.command||i.command.length===0){n.push(i);continue}if(i.command.charAt(0)===`-`)continue;let a=t.get(i.command);if(!a||!i.isDefault){n.push(i);continue}let o=!1;for(let e of a){let t=e.when;if(this._isTargetedForRemoval(i,e.chords,t)){o=!0;break}}o||n.push(i)}return n}_addKeyPress(t,n){let r=this._map.get(t);if(r===void 0)this._map.set(t,[n]),this._addToLookupMap(n);else{for(let t=r.length-1;t>=0;t--){let i=r[t];if(i.command===n.command)continue;let a=!0;for(let e=1;e<i.chords.length&&e<n.chords.length;e++)if(i.chords[e]!==n.chords[e]){a=!1;break}a&&e.whenIsEntirelyIncluded(i.when,n.when)&&this._removeFromLookupMap(i)}r.push(n),this._addToLookupMap(n)}}_addToLookupMap(e){if(!e.command)return;let t=this._lookupMap.get(e.command);t===void 0?(t=[e],this._lookupMap.set(e.command,t)):t.push(e)}_removeFromLookupMap(e){if(!e.command)return;let t=this._lookupMap.get(e.command);if(t!==void 0){for(let n=0,r=t.length;n<r;n++)if(t[n]===e){t.splice(n,1);return}}}static whenIsEntirelyIncluded(e,t){return!t||t.type===1?!0:!e||e.type===1?!1:ur(e,t)}getDefaultBoundCommands(){return this._defaultBoundCommands}getDefaultKeybindings(){return this._defaultKeybindings}getKeybindings(){return this._keybindings}lookupKeybindings(e){let t=this._lookupMap.get(e);if(t===void 0||t.length===0)return[];let n=[],r=0;for(let e=t.length-1;e>=0;e--)n[r++]=t[e];return n}lookupPrimaryKeybinding(e,t){let n=this._lookupMap.get(e);if(n===void 0||n.length===0)return null;if(n.length===1)return n[0];for(let e=n.length-1;e>=0;e--){let r=n[e];if(t.contextMatchesRules(r.when))return r}return n[n.length-1]}resolve(e,t,n){let r=[...t,n];this._log(`| Resolving ${r}`);let i=this._map.get(r[0]);if(i===void 0)return this._log(`\\ No keybinding entries.`),mi;let a=null;if(r.length<2)a=i;else{a=[];for(let e=0,t=i.length;e<t;e++){let t=i[e];if(r.length>t.chords.length)continue;let n=!0;for(let e=1;e<r.length;e++)if(t.chords[e]!==r[e]){n=!1;break}n&&a.push(t)}}let o=this._findCommand(e,a);return o?r.length<o.chords.length?(this._log(`\\ From ${a.length} keybinding entries, awaiting ${o.chords.length-r.length} more chord(s), when: ${vi(o.when)}, source: ${yi(o)}.`),hi):(this._log(`\\ From ${a.length} keybinding entries, matched ${o.command}, when: ${vi(o.when)}, source: ${yi(o)}.`),gi(o.command,o.commandArgs,o.bubble)):(this._log(`\\ From ${a.length} keybinding entries, no when clauses matched the context.`),mi)}_findCommand(t,n){for(let r=n.length-1;r>=0;r--){let i=n[r];if(e._contextMatchesRules(t,i.when))return i}return null}static _contextMatchesRules(e,t){return!t||t.evaluate(e)}};function vi(e){return e?`${e.serialize()}`:`no when condition`}function yi(e){return e.extensionId?e.isBuiltinExtension?`built-in extension ${e.extensionId}`:`user extension ${e.extensionId}`:e.isDefault?`built-in`:`user`}var bi=class{_resolvedKeybindingItemBrand=void 0;resolvedKeybinding;chords;bubble;command;commandArgs;when;isDefault;extensionId;isBuiltinExtension;constructor(e,t,n,r,i,a,o){this.resolvedKeybinding=e,this.chords=e?xi(e.getDispatchChords()):[],e&&this.chords.length===0&&(this.chords=xi(e.getSingleModifierDispatchChords())),this.bubble=t?t.charCodeAt(0)===94:!1,this.command=this.bubble?t.substr(1):t,this.commandArgs=n,this.when=r,this.isDefault=i,this.extensionId=a,this.isBuiltinExtension=o}};function xi(e){let t=[];for(let n=0,r=e.length;n<r;n++){let r=e[n];if(!r)return[];t.push(r)}return t}var Si=class{modifierLabels;constructor(e,t,n=t){this.modifierLabels=[null],this.modifierLabels[$e.Macintosh]=e,this.modifierLabels[$e.Windows]=t,this.modifierLabels[$e.Linux]=n}toLabel(e,t,n){if(t.length===0)return null;let r=[];for(let i=0,a=t.length;i<a;i++){let a=t[i],o=n(a);if(o===null)return null;r[i]=Di(a,o,this.modifierLabels[e])}return r.join(` `)}},Ci=new Si({ctrlKey:`⌃`,shiftKey:`⇧`,altKey:`⌥`,metaKey:`⌘`,separator:``},{ctrlKey:R({key:`ctrlKey`,comment:[`This is the short form for the Control key on the keyboard`]},`Ctrl`),shiftKey:R({key:`shiftKey`,comment:[`This is the short form for the Shift key on the keyboard`]},`Shift`),altKey:R({key:`altKey`,comment:[`This is the short form for the Alt key on the keyboard`]},`Alt`),metaKey:R({key:`windowsKey`,comment:[`This is the short form for the Windows key on the keyboard`]},`Windows`),separator:`+`},{ctrlKey:R({key:`ctrlKey`,comment:[`This is the short form for the Control key on the keyboard`]},`Ctrl`),shiftKey:R({key:`shiftKey`,comment:[`This is the short form for the Shift key on the keyboard`]},`Shift`),altKey:R({key:`altKey`,comment:[`This is the short form for the Alt key on the keyboard`]},`Alt`),metaKey:R({key:`superKey`,comment:[`This is the short form for the Super key on the keyboard`]},`Super`),separator:`+`}),wi=new Si({ctrlKey:R({key:`ctrlKey.long`,comment:[`This is the long form for the Control key on the keyboard`]},`Control`),shiftKey:R({key:`shiftKey.long`,comment:[`This is the long form for the Shift key on the keyboard`]},`Shift`),altKey:R({key:`optKey.long`,comment:[`This is the long form for the Alt/Option key on the keyboard`]},`Option`),metaKey:R({key:`cmdKey.long`,comment:[`This is the long form for the Command key on the keyboard`]},`Command`),separator:`+`},{ctrlKey:R({key:`ctrlKey.long`,comment:[`This is the long form for the Control key on the keyboard`]},`Control`),shiftKey:R({key:`shiftKey.long`,comment:[`This is the long form for the Shift key on the keyboard`]},`Shift`),altKey:R({key:`altKey.long`,comment:[`This is the long form for the Alt key on the keyboard`]},`Alt`),metaKey:R({key:`windowsKey.long`,comment:[`This is the long form for the Windows key on the keyboard`]},`Windows`),separator:`+`},{ctrlKey:R({key:`ctrlKey.long`,comment:[`This is the long form for the Control key on the keyboard`]},`Control`),shiftKey:R({key:`shiftKey.long`,comment:[`This is the long form for the Shift key on the keyboard`]},`Shift`),altKey:R({key:`altKey.long`,comment:[`This is the long form for the Alt key on the keyboard`]},`Alt`),metaKey:R({key:`superKey.long`,comment:[`This is the long form for the Super key on the keyboard`]},`Super`),separator:`+`}),Ti=new Si({ctrlKey:`Ctrl`,shiftKey:`Shift`,altKey:`Alt`,metaKey:`Cmd`,separator:`+`},{ctrlKey:`Ctrl`,shiftKey:`Shift`,altKey:`Alt`,metaKey:`Super`,separator:`+`}),Ei=new Si({ctrlKey:`ctrl`,shiftKey:`shift`,altKey:`alt`,metaKey:`cmd`,separator:`+`},{ctrlKey:`ctrl`,shiftKey:`shift`,altKey:`alt`,metaKey:`win`,separator:`+`},{ctrlKey:`ctrl`,shiftKey:`shift`,altKey:`alt`,metaKey:`meta`,separator:`+`});function Di(e,t,n){if(t===null)return``;let r=[];return e.ctrlKey&&r.push(n.ctrlKey),e.shiftKey&&r.push(n.shiftKey),e.altKey&&r.push(n.altKey),e.metaKey&&r.push(n.metaKey),t!==``&&r.push(t),r.join(n.separator)}var Oi=class extends ni{_os;_chords;constructor(e,t){if(super(),t.length===0)throw k(`chords`);this._os=e,this._chords=t}getLabel(){return Ci.toLabel(this._os,this._chords,e=>this._getLabel(e))}getAriaLabel(){return wi.toLabel(this._os,this._chords,e=>this._getAriaLabel(e))}getElectronAccelerator(){return this._chords.length>1||this._chords[0].isDuplicateModifierCase()?null:Ti.toLabel(this._os,this._chords,e=>this._getElectronAccelerator(e))}getUserSettingsLabel(){return Ei.toLabel(this._os,this._chords,e=>this._getUserSettingsLabel(e))}isWYSIWYG(){return this._chords.every(e=>this._isWYSIWYG(e))}hasMultipleChords(){return this._chords.length>1}getChords(){return this._chords.map(e=>this._getChord(e))}_getChord(e){return new ti(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,this._getLabel(e),this._getAriaLabel(e))}getDispatchChords(){return this._chords.map(e=>this._getChordDispatch(e))}getSingleModifierDispatchChords(){return this._chords.map(e=>this._getSingleModifierChordDispatch(e))}},ki=class e extends Oi{constructor(e,t){super(t,e)}_keyCodeToUILabel(e){if(this._os===$e.Macintosh)switch(e){case G.LeftArrow:return`←`;case G.UpArrow:return`↑`;case G.RightArrow:return`→`;case G.DownArrow:return`↓`}return Yr.toString(e)}_getLabel(e){return e.isDuplicateModifierCase()?``:this._keyCodeToUILabel(e.keyCode)}_getAriaLabel(e){return e.isDuplicateModifierCase()?``:Yr.toString(e.keyCode)}_getElectronAccelerator(e){return Yr.toElectronAccelerator(e.keyCode)}_getUserSettingsLabel(e){if(e.isDuplicateModifierCase())return``;let t=Yr.toUserSettingsUS(e.keyCode);return t&&t.toLowerCase()}_isWYSIWYG(){return!0}_getChordDispatch(t){return e.getDispatchStr(t)}static getDispatchStr(e){if(e.isModifierKey())return null;let t=``;return e.ctrlKey&&(t+=`ctrl+`),e.shiftKey&&(t+=`shift+`),e.altKey&&(t+=`alt+`),e.metaKey&&(t+=`meta+`),t+=Yr.toString(e.keyCode),t}_getSingleModifierChordDispatch(e){return e.keyCode===G.Ctrl&&!e.shiftKey&&!e.altKey&&!e.metaKey?`ctrl`:e.keyCode===G.Shift&&!e.ctrlKey&&!e.altKey&&!e.metaKey?`shift`:e.keyCode===G.Alt&&!e.ctrlKey&&!e.shiftKey&&!e.metaKey?`alt`:e.keyCode===G.Meta&&!e.ctrlKey&&!e.shiftKey&&!e.altKey?`meta`:null}static _scanCodeToKeyCode(e){let t=qr[e];if(t!==G.DependsOnKbLayout)return t;switch(e){case 10:return G.KeyA;case 11:return G.KeyB;case 12:return G.KeyC;case 13:return G.KeyD;case 14:return G.KeyE;case 15:return G.KeyF;case 16:return G.KeyG;case 17:return G.KeyH;case 18:return G.KeyI;case 19:return G.KeyJ;case 20:return G.KeyK;case 21:return G.KeyL;case 22:return G.KeyM;case 23:return G.KeyN;case 24:return G.KeyO;case 25:return G.KeyP;case 26:return G.KeyQ;case 27:return G.KeyR;case 28:return G.KeyS;case 29:return G.KeyT;case 30:return G.KeyU;case 31:return G.KeyV;case 32:return G.KeyW;case 33:return G.KeyX;case 34:return G.KeyY;case 35:return G.KeyZ;case 36:return G.Digit1;case 37:return G.Digit2;case 38:return G.Digit3;case 39:return G.Digit4;case 40:return G.Digit5;case 41:return G.Digit6;case 42:return G.Digit7;case 43:return G.Digit8;case 44:return G.Digit9;case 45:return G.Digit0;case 51:return G.Minus;case 52:return G.Equal;case 53:return G.BracketLeft;case 54:return G.BracketRight;case 55:return G.Backslash;case 56:return G.Unknown;case 57:return G.Semicolon;case 58:return G.Quote;case 59:return G.Backquote;case 60:return G.Comma;case 61:return G.Period;case 62:return G.Slash;case 106:return G.IntlBackslash}return G.Unknown}static _toKeyCodeChord(e){if(!e)return null;if(e instanceof $r)return e;let t=this._scanCodeToKeyCode(e.scanCode);return t===G.Unknown?null:new $r(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,t)}static resolveKeybinding(t,n){let r=xi(t.chords.map(e=>this._toKeyCodeChord(e)));return r.length>0?[new e(r,n)]:[]}},Ai=ae();function ji(e,t){return function(n,r){t(n,r,e)}}function Mi(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}var Ni=Me(`workbenchKeybindingService`),Pi=class extends fi{contexts;bindings=[];resolver=null;constructor(e,t){super(e,t,()=>I.None,()=>{}),this.contexts=e;let n=e=>{e.key===`Tab`&&(document.documentElement.dataset.focusNavigation=`tab`)},r=()=>{delete document.documentElement.dataset.focusNavigation};window.addEventListener(`keydown`,n,!0),window.addEventListener(`pointerdown`,r,!0),this._register(u(()=>{window.removeEventListener(`keydown`,n,!0),window.removeEventListener(`pointerdown`,r,!0),delete document.documentElement.dataset.focusNavigation}));let i=e=>{if(e.defaultPrevented||e.isComposing||(e.target instanceof Element?e.target:null)?.closest(`input, textarea, select, [contenteditable="true"], dialog, [role="dialog"], [role="menu"], [role="tablist"], [role="combobox"], [role="listbox"]`))return;let t=window.getSelection();if([`ArrowUp`,`ArrowDown`].includes(e.key)&&t&&!t.isCollapsed)return;let n=new ci(e);this._dispatch(n,n.target)&&(n.preventDefault(),n.stopPropagation())};window.addEventListener(`keydown`,i),this._register(u(()=>window.removeEventListener(`keydown`,i)))}registerCommands(e,t){let n=new o,r=this.contexts.createKey(`workbench.${e}`,!1);r.set(!0);let i=[];for(let r of t){let t=`workbench.${e}.${r.id}`;n.add(Sn.registerCommand(t,()=>r.run()));let a=Zr(r.keybinding,Fe);if(a)for(let n of ki.resolveKeybinding(a,Fe))i.push(new bi(n,t,void 0,zn.equals(`workbench.${e}`,!0),!1,null,!1))}return this.bindings.push(...i),this.resolver=null,this._onDidUpdateKeybindings.fire(),n.add(u(()=>{r.reset();let e=new Set(i);this.bindings=this.bindings.filter(t=>!e.has(t)),this.resolver=null,this._onDidUpdateKeybindings.fire()})),n}_getResolver(){return this.resolver??=new _i([],this.bindings,()=>{})}_documentHasFocus(){return document.hasFocus()}resolveKeybinding(e){return ki.resolveKeybinding(e,Fe)}resolveKeyboardEvent(e){return new ki([new $r(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,e.keyCode)],Fe)}resolveUserBinding(e){return[]}_dumpDebugInfo(){return``}_dumpDebugInfoJSON(){return``}registerSchemaContribution(e){}};Pi=Mi([ji(0,sr),ji(1,xn)],Pi);var Fi=class extends I{services;willExecute=this._register(new Ve);didExecute=this._register(new Ve);onWillExecuteCommand=this.willExecute.event;onDidExecuteCommand=this.didExecute.event;constructor(e){super(),this.services=e}async executeCommand(e,...t){let n=Sn.getCommand(e);if(!n)throw Error(`未注册命令:${e}`);this.willExecute.fire({commandId:e,args:t});let r=await this.services.invokeFunction(n.handler,...t);return this.didExecute.fire({commandId:e,args:t}),r}};Fi=Mi([ji(0,r)],Fi);function Ii(){let e=new qe;e.set(M,new T(L)),e.set(le,new T(se)),e.set(y,new T(We)),e.set(p,new T(oe)),e.set(re,new T(h)),e.set(ln,new T(un)),e.set(i,new T(ct)),e.set(n,new T(je)),e.set(xn,new T(Fi)),e.set(sr,new T(Sr)),e.set(Ni,new T(Pi));let t=new ze(e,!0),r=new o;return t.invokeFunction(e=>{r.add(e.get(M)),r.add(e.get(le)),r.add(e.get(y)),r.add(e.get(p)),r.add(e.get(re)),r.add(e.get(ln)),r.add(e.get(Ni)),r.add(e.get(xn)),r.add(e.get(sr))}),{instantiationService:t,dispose:()=>r.dispose()}}var Li=xe(F(),1),K=f();function Ri(){let e=j(n);return(0,Li.createPortal)((0,K.jsx)(S,{store:e,closeLabel:`关闭通知`,"aria-label":`通知`,"data-testid":z.message}),document.body)}var zi={name:`columns-2`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M12 3v18`,key:`108xh3`}]],aliases:[`columns`]};zi.node;var Bi=O(zi),Vi={name:`fold-vertical`,size:24,node:[[`path`,{d:`M12 22v-6`,key:`6o8u61`}],[`path`,{d:`M12 8V2`,key:`1wkif3`}],[`path`,{d:`M4 12H2`,key:`rhcxmi`}],[`path`,{d:`M10 12H8`,key:`s88cx1`}],[`path`,{d:`M16 12h-2`,key:`10asgb`}],[`path`,{d:`M22 12h-2`,key:`14jgyd`}],[`path`,{d:`m15 19-3-3-3 3`,key:`e37ymu`}],[`path`,{d:`m15 5-3 3-3-3`,key:`19d6lf`}]]};Vi.node;var Hi=O(Vi),Ui={name:`rows-2`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 12h18`,key:`1i2n21`}]],aliases:[`rows`]};Ui.node;var Wi=O(Ui),Gi={name:`tag`,size:24,node:[[`path`,{d:`M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z`,key:`vktsd0`}],[`circle`,{cx:`7.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`kqv944`}]]};Gi.node;var Ki=O(Gi),qi={name:`unfold-vertical`,size:24,node:[[`path`,{d:`M12 22v-6`,key:`6o8u61`}],[`path`,{d:`M12 8V2`,key:`1wkif3`}],[`path`,{d:`M4 12H2`,key:`rhcxmi`}],[`path`,{d:`M10 12H8`,key:`s88cx1`}],[`path`,{d:`M16 12h-2`,key:`10asgb`}],[`path`,{d:`M22 12h-2`,key:`14jgyd`}],[`path`,{d:`m15 19-3 3-3-3`,key:`11eu04`}],[`path`,{d:`m15 5-3-3-3 3`,key:`itvq4r`}]]};qi.node;var Ji=O(qi),Yi={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]};Yi.node;var Xi=O(Yi);function Zi({index:e,total:t,onPrev:n,onNext:r,noun:i=`用例`,showNoun:a=!1,vertical:o=!0,bounded:c=!1,ids:u={previous:z.previous,next:z.next}}){let d=o?nt:l,f=o?s:te;return(0,K.jsxs)(`div`,{className:`stage-nav`,onKeyDown:i=>{i.altKey||i.ctrlKey||i.metaKey||i.shiftKey||![`ArrowUp`,`ArrowDown`].includes(i.key)||(i.preventDefault(),i.stopPropagation(),!(t<=1)&&(i.key===`ArrowUp`&&(!c||e>0)&&n(),i.key===`ArrowDown`&&(!c||e<t-1)&&r()))},children:[(0,K.jsx)(P,{content:`上一个${i}`,shortcut:[o?`↑`:`←`],disabled:t<=1||c&&e===0,children:(0,K.jsx)(`button`,{type:`button`,className:`report-header-icon`,"data-testid":u.previous,"aria-label":`上一个${i}`,disabled:t<=1||c&&e===0,onClick:n,children:(0,K.jsx)(d,{size:14,strokeWidth:1.5})})}),(0,K.jsxs)(`span`,{className:`stage-index`,"data-testid":u.position,children:[a&&`${i} `,e+1,` / `,t]}),(0,K.jsx)(P,{content:`下一个${i}`,shortcut:[o?`↓`:`→`],disabled:t<=1||c&&e===t-1,children:(0,K.jsx)(`button`,{type:`button`,className:`report-header-icon`,"data-testid":u.next,"aria-label":`下一个${i}`,disabled:t<=1||c&&e===t-1,onClick:r,children:(0,K.jsx)(f,{size:14,strokeWidth:1.5})})})]})}var Qi=(e,t)=>JSON.stringify([e,t]);function $i(e,t,n){return e.flatMap(e=>{let r=[];for(let n of t.filter(t=>t.namespace===e.id)){let t=n.item.current??n.item.baseline,i=t.treePath.length?t.treePath:[{key:t.id,display:t.name}],a=r,o=[e.id];for(let e of i.slice(0,-1)){o.push(e.key);let t=`folder:${JSON.stringify(o)}`,n=a.find(e=>e.key===t);n||(n={key:t,label:e.display,kind:`folder`,children:[]},a.push(n)),a=n.children}a.push({key:n.key,label:i.at(-1).display+(n.ignored?`(已忽略)`:``),kind:`case`})}return n?r:[{key:`namespace:${e.id}`,label:e.name,kind:`namespace`,namespace:e.id,children:r}]})}function ea(e){let t={};for(let n of e){let e=n.change===`unavailable`?[`unavailable`]:n.snapshots.length?n.snapshots.map(e=>e.change):[n.change];n.change===`modified`&&!e.some(e=>e!==`same`)&&e.push(`modified`);for(let n of e)t[n]=(t[n]??0)+1}return t}function ta(e,t){if(e.running)return`running`;if(e.total>0&&e.failed===e.total)return`failed`;if(e.failed>0)return`partial`;if(t.unavailable>0)return`unavailable`;let n=[`added`,`modified`,`deleted`].filter(e=>t[e]>0);return n.length?n.length>1||n[0]===`modified`?`changed`:n[0]===`added`?`added`:`deleted`:`same`}function na(e){let t=e.filter(e=>e.current);return{failed:t.filter(e=>e.current.result.status===`failed`).length,total:t.length}}var ra={running:{icon:_e,className:`is-running`,label:`报告生成中`},failed:{icon:ge,className:`is-danger`,label:`执行失败,不能合并到基线`},partial:{icon:et,className:`is-changed`,label:`部分用例执行失败`},unavailable:{icon:a,className:`is-danger`,label:`未采集快照,无法比较`},added:{icon:Be,className:`is-added`,label:`新增,待验收`},deleted:{icon:Je,className:`is-danger`,label:`删除,待验收`},changed:{icon:et,className:`is-changed`,label:`修改或混合变更,待验收`},same:{icon:ee,className:`is-success`,label:`无变更`},unknown:{icon:it,className:`is-unknown`,label:`尚未比较`}};function ia({status:e,size:t=13}){let{icon:n,className:r,label:i}=ra[e];return(0,K.jsx)(n,{size:t,className:`task-status ${r}`,role:`img`,"aria-label":i,"data-testid":z.taskStatus(e),children:(0,K.jsx)(`title`,{children:i})})}function aa(e){return new Intl.DateTimeFormat(`zh-CN`,{month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,hour12:!1}).format(new Date(e))}function oa(e){return!Number.isFinite(e)||e<=0?`—`:e<6e4?`${(e/1e3).toFixed(1)}s`:`${Math.floor(e/6e4)}m ${Math.round(e%6e4/1e3)}s`}function sa(e,t=new Date){let n=new Date(e),r=e=>new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime(),i=Math.round((r(t)-r(n))/864e5);return i===0?`今天`:i===1?`昨天`:new Intl.DateTimeFormat(`zh-CN`,{...n.getFullYear()===t.getFullYear()?{}:{year:`numeric`},month:`long`,day:`numeric`}).format(n)}function ca(e){return new Intl.DateTimeFormat(`zh-CN`,{hour:`2-digit`,minute:`2-digit`,hour12:!1}).format(new Date(e))}var la={added:`新增`,modified:`修改`,deleted:`删除`,same:`相同`,unavailable:`未采集`,passed:`通过`,failed:`失败`,skipped:`跳过`,interrupted:`中断`,running:`运行中`},ua=Qi;function da({items:e}){return(0,K.jsx)(ia,{status:ta(na(e),ea(e)),size:12})}function fa(e,t,n,r,i){return pa($i(e,t,n),t,n,r,i)}function pa(e,t,n,r,i){let a=new Map(t.map(e=>[e.key,e]));function o(e){return e.flatMap(e=>{if(e.kind!==`case`){let t=o(e.children??[]);return e.kind===`folder`&&!t.length?[]:[{key:e.key,label:e.label,children:t,icon:e.kind===`namespace`?(0,K.jsx)(Qe,{size:12}):(0,K.jsx)(Ie,{size:12}),testId:e.kind===`namespace`?z.namespace(e.namespace):z.folder(e.key)}]}let t=a.get(e.key);if(!t)return[];let s=t.item.current??t.item.baseline,c=n&&t.item.change!==`unavailable`&&t.item.current?.result.status!==`failed`;return[{key:e.key,label:e.label,danger:t.ignored,title:t.file||s.name,testId:z.case(s.id),checkboxTestId:z.select(s.id),icon:n?(0,K.jsx)(da,{items:[t.item]}):s.snapshots?.some(e=>e.type===`image`)?(0,K.jsx)(Ce,{size:12}):(0,K.jsx)(De,{size:12}),...c?{checkbox:{checked:r.has(t.key),label:`选择 ${s.name}`,onChange:()=>i(t.key)}}:{},trailing:n&&t.item.current?.result.durationMs!==void 0?(0,K.jsx)(`span`,{className:`task-row-duration`,children:oa(t.item.current.result.durationMs)}):void 0}]})}let s=o(e);function c(e){return e.flatMap(e=>e.children?c(e.children):[t.find(t=>t.key===e.key).item])}function l(e){for(let t of e)if(t.children){let e=c(t.children);if(n&&(t.icon=(0,K.jsx)(da,{items:e})),t.collapsedTrailing=(0,K.jsx)(`span`,{className:`path-folder-count`,children:e.length}),n){let e=t=>t.flatMap(t=>t.children?e(t.children):t.checkbox?[t]:[]),n=e(t.children);t.checkboxTestId=z.selectFolder(t.key);let a=n.filter(e=>r.has(e.key)).length;n.length&&(t.checkbox={checked:a===n.length?!0:a?`mixed`:!1,label:`选择 ${t.label}`,onChange:e=>{for(let t of n)r.has(t.key)!==e&&i(t.key)}})}l(t.children)}}return l(s),s}function ma(e){return e.flatMap(e=>e.children?[e.key,...ma(e.children)]:[])}function ha(){let[e,t]=(0,W.useState)(new Set);return(0,W.useEffect)(()=>{let e=e=>{t(t=>{let n=new Set(t);e.type===`keydown`?n.add(e.key):n.delete(e.key);for(let[t,r]of[[`Alt`,e.altKey],[`Control`,e.ctrlKey],[`Meta`,e.metaKey],[`Shift`,e.shiftKey]])r?n.add(t):n.delete(t);return n})},n=()=>t(new Set),r=()=>{document.hidden&&n()};return window.addEventListener(`keydown`,e,!0),window.addEventListener(`keyup`,e,!0),window.addEventListener(`blur`,n),document.addEventListener(`visibilitychange`,r),()=>{window.removeEventListener(`keydown`,e,!0),window.removeEventListener(`keyup`,e,!0),window.removeEventListener(`blur`,n),document.removeEventListener(`visibilitychange`,r)}},[]),e}function ga(e,t,n){let r=j(Ni),i=(0,W.useRef)(n);i.current=n;let a=n.map(({id:e,keybinding:t})=>`${e}:${t}`).join(`|`);(0,W.useEffect)(()=>{if(!t)return;let n=r.registerCommands(e,i.current.map(e=>({...e,run:()=>i.current.find(t=>t.id===e.id)?.run()})));return()=>n.dispose()},[r,e,t,a])}function _a(e){if(e.defaultPrevented||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.key!==`ArrowUp`&&e.key!==`ArrowDown`||(e.target instanceof Element?e.target:null)?.closest(`input, textarea, select, [contenteditable="true"], [role="menu"], [role="listbox"], [role="tablist"], dialog, [role="dialog"]`))return 0;let t=window.getSelection();return t&&!t.isCollapsed?0:e.key===`ArrowUp`?-1:1}function va({path:e,original:t,modified:n,unified:r,expandAll:i}){let a=(0,W.useRef)(null),o=(0,W.useRef)(null),s=(0,W.useRef)({unified:r,expandAll:i});s.current={unified:r,expandAll:i};let[c,l]=(0,W.useState)(!1),[u,d]=(0,W.useState)(``);(0,W.useEffect)(()=>{let r=!1,i=[],c=()=>{o.current=null;for(let e of i.splice(0).reverse())e.dispose()};return l(!1),d(``),ut(async()=>{let{monaco:e,languageForPath:t}=await import(`./monaco-CuSMZpTT.js`);return{monaco:e,languageForPath:t}},__vite__mapDeps([0,1,2,3,4,5])).then(async({monaco:c,languageForPath:u})=>{if(r||!a.current)return;let d=u(e);if(await c.editor.colorize(``,d,{}),r||!a.current)return;let f=c.editor.createModel(t,d);i.push(f);let p=c.editor.createModel(n,d);i.push(p),c.editor.colorizeModelLine(f,f.getLineCount()),c.editor.colorizeModelLine(p,p.getLineCount());let m=c.editor.createDiffEditor(a.current,{readOnly:!0,originalEditable:!1,theme:`vs`,automaticLayout:!0,fontSize:12,lineHeight:22,fontFamily:getComputedStyle(document.documentElement).getPropertyValue(`--font-metadata`).trim(),renderSideBySide:!s.current.unified,useInlineViewWhenSpaceIsLimited:!1,hideUnchangedRegions:{enabled:!s.current.expandAll},ignoreTrimWhitespace:!1,renderValidationDecorations:`off`,renderMarginRevertIcon:!1});i.push(m),o.current=m;let h=m.onDidUpdateDiff(()=>l(m.getLineChanges()!==null));i.push(h),m.setModel({original:f,modified:p}),m.getOriginalEditor().getDomNode()?.setAttribute(`data-testid`,z.diffOriginal),m.getModifiedEditor().getDomNode()?.setAttribute(`data-testid`,z.diffModified)}).catch(e=>{c(),r||d(e instanceof Error?e.message:String(e))}),()=>{r=!0,c()}},[e,t,n]),(0,W.useEffect)(()=>{o.current?.updateOptions({renderSideBySide:!r,hideUnchangedRegions:{enabled:!i}})},[r,i]);let f=Math.max(t.split(`
6
6
  `).length,n.split(`
7
7
  `).length);return(0,K.jsxs)(`div`,{className:`code-diff-editor`,"data-testid":z.diffEditor,"data-mode":r?`unified`:`split`,"aria-busy":!c&&!u,"aria-label":`${e} 代码差异`,style:{"--diff-preview-height":`${Math.min(420,Math.max(120,f*22+24))}px`},children:[(0,K.jsx)(`div`,{ref:a,className:`code-diff-host`}),u?(0,K.jsx)(`p`,{className:`code-diff-loading`,role:`alert`,children:u}):!c&&(0,K.jsx)(`p`,{className:`code-diff-loading`,role:`status`,children:`正在读取差异…`})]})}function ya({title:e,titleText:t,leading:n,badge:r,metadata:i,actions:a}){return(0,K.jsxs)(`header`,{className:`report-page-header`,"data-testid":z.pageHeader,children:[n&&(0,K.jsx)(`div`,{className:`report-page-leading`,children:n}),(0,K.jsxs)(`h1`,{className:`report-page-title`,title:t??(typeof e==`string`?e:void 0),children:[(0,K.jsx)(`span`,{className:`report-page-title-text`,children:e}),r]}),i&&(0,K.jsx)(`div`,{className:`report-page-metadata`,"data-testid":z.headerMetadata,children:i}),a&&(0,K.jsx)(`div`,{className:`report-page-actions`,children:a})]})}function ba({label:e,onClose:t,onKeyDown:n,children:r,header:i,initialFocus:a=`tab`}){let o=(0,W.useRef)(null);return(0,W.useLayoutEffect)(()=>{let e=o.current;return e.showModal(),a===`dialog`?e.focus():e.querySelector(`[role="tab"][aria-selected="true"]`)?.focus(),()=>e.close()},[]),(0,K.jsxs)(`dialog`,{"data-testid":z.dialog.root,ref:o,tabIndex:-1,className:`report-viewer report-dialog`,"aria-label":e,onCancel:e=>{e.preventDefault(),t()},onClick:e=>{e.target===e.currentTarget&&t()},onKeyDown:e=>{e.stopPropagation(),n?.(e)},children:[i?(0,K.jsxs)(`div`,{className:`report-dialog-header`,children:[i,(0,K.jsx)(P,{content:`关闭弹窗`,shortcut:[`Esc`],children:(0,K.jsx)(A,{variant:`ghost`,"data-testid":z.dialog.close,className:`report-dialog-close`,"aria-label":`关闭弹窗`,onClick:t,children:(0,K.jsx)(Xi,{})})})]}):(0,K.jsx)(P,{content:`关闭弹窗`,shortcut:[`Esc`],children:(0,K.jsx)(A,{variant:`ghost`,"data-testid":z.dialog.close,className:`report-dialog-close`,"aria-label":`关闭弹窗`,onClick:t,children:(0,K.jsx)(Xi,{})})}),r]})}function xa(...e){return e.filter(Boolean).join(` `)}var Sa={SidebarLayout:{Root:`flex h-full min-h-0 min-w-0 flex-1`,Sidebar:xa(`relative min-h-0 shrink-0 bg-surface data-[collapsed=true]:[transition-delay:0s,0s,300ms] [&:has([data-dragging=true])]:transition-none motion-reduce:!delay-0`,`transition-[width,border-width,visibility] duration-300 ease-[cubic-bezier(0.22,1,0.36,1)] motion-reduce:transition-none`),Clip:`h-full overflow-hidden`,Inner:`h-full min-h-0`,Content:`flex min-h-0 min-w-0 flex-1 flex-col outline-none`},Segmented:{Control:`relative -my-0.5 flex w-full items-center gap-0.5 rounded-[5px] bg-surface`,Option:`hb-segmented-option`}};function Ca({options:e,value:t,onChange:n,label:r,appearance:i=`segments`,groupTestId:a,thumbTestId:o}){let s=(0,W.useRef)(null),[c,l]=(0,W.useState)(null);function u(){let e=s.current,t=e?.querySelector(`[role="tab"][aria-selected="true"]`);if(!e||!t){l(null);return}let n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i={left:r.left-n.left,top:r.top-n.top,width:r.width,height:r.height};l(e=>e&&e.left===i.left&&e.top===i.top&&e.width===i.width&&e.height===i.height?e:i)}return(0,W.useLayoutEffect)(()=>{i===`filters`?u():l(null)},[t,i,e.length]),(0,W.useEffect)(()=>{if(i!==`filters`||!s.current)return;let e=new ResizeObserver(()=>u());return e.observe(s.current),()=>e.disconnect()},[i]),(0,K.jsxs)(`div`,{ref:s,"data-testid":a,className:xa(Sa.Segmented.Control,`report-filters`,i===`filters`&&`report-filter-pills`),role:`tablist`,"aria-label":r,children:[i===`filters`&&c?(0,K.jsx)(`span`,{"aria-hidden":`true`,"data-testid":o,className:`report-filter-thumb`,style:{transform:`translate(${c.left}px, ${c.top}px)`,width:c.width,height:c.height}}):null,e.map((r,a)=>(0,K.jsxs)(`button`,{"data-testid":r.testId,type:`button`,role:`tab`,className:Sa.Segmented.Option,"aria-selected":t===r.value,"data-empty":i===`filters`&&r.count===0?`true`:void 0,disabled:r.disabled,tabIndex:t===r.value?0:-1,onClick:()=>n(r.value),onKeyDown:t=>{if(![`ArrowLeft`,`ArrowRight`,`Home`,`End`].includes(t.key))return;t.preventDefault(),t.stopPropagation();let r=e.flatMap((e,t)=>e.disabled?[]:[t]),i=r.indexOf(a),o=t.key===`ArrowRight`?1:-1,s=t.key===`Home`?r[0]:t.key===`End`?r.at(-1):r[(i+o+r.length)%r.length];n(e[s].value),t.currentTarget.parentElement?.querySelectorAll(`[role="tab"]`)[s]?.focus()},children:[(0,K.jsx)(`span`,{className:`report-option-label`,children:r.label}),r.count!==void 0&&(i===`filters`||r.count>0)?(0,K.jsx)(`span`,{className:`report-option-count`,children:r.count}):null]},r.value))]})}function wa(e){if(e.startsWith(`comment`))return`comment`;if(e.startsWith(`keyword`)||e.startsWith(`tag`))return`keyword`;if(e.startsWith(`string`)&&!e.startsWith(`string.key`)||e.startsWith(`regexp`))return`string`}function Ta({code:e,language:t}){let n=e.replace(/\r?\n$/,``),r=n.split(`
8
- `).length,[i,a]=(0,W.useState)(),o=!!t&&t!==`plaintext`;(0,W.useEffect)(()=>{if(!t||!o)return;let e=!1;return ut(async()=>{let{monaco:e}=await import(`./monaco-Dgn-_pxJ.js`);return{monaco:e}},__vite__mapDeps([0,1,2,3,4,5])).then(async({monaco:r})=>{let i=t.toLowerCase(),o=r.languages.getLanguages().find(e=>e.id===i||e.aliases?.some(e=>e.toLowerCase()===i))?.id;if(!o||o===`plaintext`){e||a({code:n,lines:null});return}if(await r.editor.colorize(``,o,{}),e)return;let s=n.split(`
8
+ `).length,[i,a]=(0,W.useState)(),o=!!t&&t!==`plaintext`;(0,W.useEffect)(()=>{if(!t||!o)return;let e=!1;return ut(async()=>{let{monaco:e}=await import(`./monaco-CuSMZpTT.js`);return{monaco:e}},__vite__mapDeps([0,1,2,3,4,5])).then(async({monaco:r})=>{let i=t.toLowerCase(),o=r.languages.getLanguages().find(e=>e.id===i||e.aliases?.some(e=>e.toLowerCase()===i))?.id;if(!o||o===`plaintext`){e||a({code:n,lines:null});return}if(await r.editor.colorize(``,o,{}),e)return;let s=n.split(`
9
9
  `),c=r.editor.tokenize(n,o).map((e,t)=>e.map((n,r)=>({text:s[t].slice(n.offset,e[r+1]?.offset),kind:wa(n.type)})));a({code:n,lines:c})}).catch(()=>{e||a({code:n,lines:null})}),()=>{e=!0}},[n,t,o]);let s=i?.code===n?i.lines:void 0;return(0,K.jsxs)(`pre`,{className:`e2e-source numbered-source`,tabIndex:0,"aria-busy":o&&s===void 0,"data-testid":z.source,children:[(0,K.jsx)(`span`,{className:`source-line-numbers`,"aria-hidden":`true`,"data-testid":z.sourceLineNumbers,children:Array.from({length:r},(e,t)=>t+1).join(`
10
10
  `)}),(0,K.jsx)(`code`,{children:o&&s?s.map((e,t)=>(0,K.jsxs)(`span`,{children:[e.map((e,t)=>e.kind?(0,K.jsx)(`span`,{className:`source-${e.kind}`,children:e.text},t):e.text),t<s.length-1?`
11
11
  `:``]},t)):n})]})}function Ea({path:e,name:t,testId:n}){let r=e.length?e.map(e=>e.display):[t];return(0,K.jsx)(`span`,{className:`case-path`,"data-testid":n,children:r.map((e,t)=>(0,K.jsxs)(W.Fragment,{children:[t>0&&(0,K.jsx)(`span`,{className:`case-path-separator`,"aria-hidden":`true`,children:`/`}),(0,K.jsx)(`span`,{className:t===r.length-1?`case-path-current`:`case-path-parent`,children:e})]},t))})}var Da=/Mac|iPhone|iPad/.test(navigator.platform)?`⌘`:`Ctrl`,Oa=/Mac|iPhone|iPad/.test(navigator.platform)?`⌥`:`Alt`,ka=[`Baseline`,`Current`,`Diff`],Aa={Baseline:`基线`,Current:`当前`,Diff:`差异`},ja=null;function Ma({item:e,namespace:t,taskId:r,version:a,index:o,total:s,onPrev:c,onNext:l,onApprove:u,batchSelected:d=!1,selection:f,titleInHeader:p=!1,navigationInHeader:m=!1,busy:h,changes:g=!1,openHandle:_}){let v=ha(),y=j(i),b=j(n),x=e.current??e.baseline,S=(e,t)=>t===`baseline`?e.baseline?.url:t===`diff`?e.diffUrl:e.current?.url,C=!r&&!g,T=[...e.snapshots.map(e=>({key:`snapshot:${e.id}`,props:{snapshot:e,oldUrl:e.baseline?S(e,`baseline`):void 0,newUrl:e.current?S(e,`current`):void 0,diffUrl:e.diffFile?S(e,`diff`):void 0,baselineOnly:C}})),...(g?[]:e.current?.observations??[]).map((e,t)=>({key:`observation:${t}`,props:{content:e,observationIndex:t,newUrl:e.url,baselineOnly:!1}}))];function D(e){let t=e.props.snapshot?.baseline,n=e.props.content??e.props.snapshot?.current;return t?.type===`text`||n?.type===`text`?t?.type===`image`||n?.type===`image`?[]:[t?`Baseline`:``,n?`Current`:``,t&&n&&e.props.snapshot?.change===`modified`?`Diff`:``].filter(Boolean):[t?.type===`image`&&e.props.oldUrl?`Baseline`:``,n?.type===`image`&&e.props.newUrl?`Current`:``,e.props.diffUrl?`Diff`:``].filter(Boolean)}function O(e,t){let n=D(e);return n.includes(`Diff`)?t&&n.includes(t)?t:`Diff`:n.includes(`Current`)?`Current`:n[0]}function k(){let t=ja;if(ja=null,!t||t.from===e.id||!T.length)return null;let n=T.find(e=>!C&&e.props.snapshot&&e.props.snapshot.change!==`same`)??T[0];return{key:n.key,kind:O(n,t.kind),preferred:t.kind}}let[A,M]=(0,W.useState)(k),N=(0,W.useRef)(`${t}:${r}:${e.id}`);function F(e,t){let n=T.find(t=>t.key===e);n&&M({key:e,kind:O(n,t),preferred:t})}function ee(){T[0]&&F(T[0].key)}let I=T.findIndex(e=>e.key===A?.key),te=T[I],ne=(te?.props.content??te?.props.snapshot?.current??te?.props.snapshot?.baseline)?.name??``,re=x.treePath.map(e=>e.display).join(` / `)||x.name,ie=e=>(0,K.jsx)(Ea,{path:x.treePath,name:x.name,testId:e}),ae=te?D(te):[],oe=Math.max(0,ae.indexOf(A?.kind??``)),se=ae[oe],ce=t=>{s<=1||(ja={from:e.id,kind:A?.preferred},t<0?c():l())},le=ae.includes(`Diff`),ue=te?.props.snapshot?.change,L=C||le?void 0:te?.props.content?`诊断附件`:ue&&ue!==e.change?{same:`该证据与基线一致`,added:`该证据为新增,无基线`,deleted:`该证据已删除,仅有基线`,unavailable:`该证据未采集`}[ue]:void 0,de=e=>{if(!A||!le)return;let t=ae[(oe+e+ae.length)%ae.length];M({...A,kind:t,preferred:t})},fe=e=>{T.length<2||F(T[(I+e+T.length)%T.length].key,A?.preferred)};return(0,W.useEffect)(()=>{let n=`${t}:${r}:${e.id}`;N.current!==n&&(N.current=n,M(k()))},[e.id,r,t]),(0,W.useEffect)(()=>(_&&(_.current=()=>ee()),()=>{_&&(_.current=()=>{})})),ga(`snapshotViewer`,!A,[{id:`open`,keybinding:G.Enter,run:()=>ee()}]),(0,K.jsxs)(`div`,{"data-testid":z.detail,className:`task-scene-detail snapshot-detail`,tabIndex:-1,onKeyDown:e=>{let t=_a(e);t&&(e.preventDefault(),e.stopPropagation(),t<0?c():l())},onPointerDown:e=>{e.target.closest(`button, input, textarea, select, a, [contenteditable="true"], dialog`)||e.currentTarget.focus({preventScroll:!0})},children:[(0,K.jsxs)(`div`,{className:`snapshot-detail-scroll file-detail-sections`,children:[!p&&(0,K.jsxs)(K.Fragment,{children:[x.treePath.length>1&&(0,K.jsx)(`p`,{className:`case-eyebrow`,"data-testid":z.caseEyebrow,title:re,children:x.treePath.slice(0,-1).map(e=>e.display).join(` / `)}),(0,K.jsxs)(`div`,{className:`case-introduction`,children:[(0,K.jsx)(`h1`,{title:re,children:x.treePath.at(-1)?.display??x.name}),(0,K.jsxs)(`div`,{className:`case-introduction-actions`,children:[!m&&(0,K.jsx)(Zi,{index:o,total:s,onPrev:c,onNext:l}),u&&(0,K.jsx)(w,{"data-testid":z.approve,variant:d?`secondary`:e.change===`deleted`?`danger`:`primary`,size:`sm`,disabled:h||e.change===`unavailable`||e.current?.result.status===`failed`,title:e.current?.result.status===`failed`?`用例执行失败,不能合并到基线`:`${e.change===`deleted`?`删除该基线`:`合并到基线`}(${Da}+Enter)`,onClick:u,children:e.change===`deleted`?`删除该基线`:`合并到基线`})]})]})]}),e.current&&!g&&(0,K.jsxs)(`section`,{className:`snapshot-task-info`,"data-testid":z.taskInfo,children:[(0,K.jsx)(`h2`,{children:`任务信息`}),(0,K.jsxs)(`dl`,{children:[(0,K.jsxs)(`div`,{children:[(0,K.jsx)(`dt`,{children:`执行结果`}),(0,K.jsx)(`dd`,{className:`task-info-result is-${e.current.result.status}`,children:la[e.current.result.status]})]}),(0,K.jsxs)(`div`,{children:[(0,K.jsx)(`dt`,{children:`耗时`}),(0,K.jsx)(`dd`,{children:e.current.result.durationMs===void 0?`—`:`${Math.round(e.current.result.durationMs)} ms`})]}),(0,K.jsxs)(`div`,{children:[(0,K.jsx)(`dt`,{children:`执行 ID`}),(0,K.jsxs)(`dd`,{className:`task-info-id-value`,children:[(0,K.jsx)(`span`,{className:`mono`,title:r,"data-testid":z.taskExecutionId,children:r.slice(0,8)}),(0,K.jsx)(P,{content:`复制执行 ID`,children:(0,K.jsx)(`button`,{type:`button`,className:`report-header-icon task-info-id-copy`,"data-testid":z.copyTaskExecutionId,"aria-label":`复制执行 ID`,onClick:async()=>{try{await y.writeText(r),b.show({message:`已复制执行 ID`,variant:`success`})}catch{b.show({message:`复制失败,请检查浏览器剪贴板权限。`,variant:`error`})}},children:(0,K.jsx)(ot,{size:12})})})]})]}),(0,K.jsxs)(`div`,{children:[(0,K.jsx)(`dt`,{children:`Case ID`}),(0,K.jsxs)(`dd`,{className:`task-info-id-value`,children:[(0,K.jsx)(`span`,{className:`mono`,"data-testid":z.caseId,children:e.id}),(0,K.jsx)(P,{content:`复制执行 ID 和 Case ID`,children:(0,K.jsx)(`button`,{type:`button`,className:`report-header-icon task-info-id-copy`,"data-testid":z.copyCaseIds,"aria-label":`复制执行 ID 和 Case ID`,onClick:async()=>{try{await y.writeText(`执行 ID: ${r}\nCase ID: ${e.id}`),b.show({message:`已复制执行 ID 和 Case ID`,variant:`success`})}catch{b.show({message:`复制失败,请检查浏览器剪贴板权限。`,variant:`error`})}},children:(0,K.jsx)(ot,{size:12})})})]})]})]}),e.current.result.errors?.map((e,t)=>(0,K.jsx)(`pre`,{className:`e2e-error`,"data-testid":z.taskError,children:Pa(e)},t))]}),(0,K.jsxs)(`section`,{className:`snapshot-content file-section`,"data-testid":z.snapshotContent,children:[(0,K.jsx)(`h2`,{children:`快照`}),e.snapshots.map(e=>(0,K.jsx)(Na,{snapshot:e,oldUrl:e.baseline?S(e,`baseline`):void 0,newUrl:e.current?S(e,`current`):void 0,diffUrl:e.diffFile?S(e,`diff`):void 0,baselineOnly:C,onView:t=>F(`snapshot:${e.id}`,t)},e.id)),!e.snapshots.length&&(0,K.jsx)(`p`,{className:`e2e-muted`,children:e.change===`unavailable`?`本次未采集快照集合。`:`没有快照。`})]}),e.current&&!g&&(0,K.jsxs)(`section`,{className:`file-section`,"data-testid":z.supplement,children:[(0,K.jsx)(`h2`,{children:`任务诊断`}),e.current.observations.map((e,t)=>{let n=e.url;return(0,K.jsx)(Na,{observationIndex:t,content:e,newUrl:n,baselineOnly:!1,onView:()=>F(`observation:${t}`)},t)}),!e.current.observations.length&&(0,K.jsx)(`p`,{className:`e2e-muted`,children:`没有诊断附件。`})]})]}),A&&te&&(0,K.jsxs)(ba,{label:ne,onClose:()=>M(null),initialFocus:`dialog`,onKeyDown:e=>{if(e.ctrlKey||e.metaKey||e.shiftKey)return;let t=e.altKey?{ArrowLeft:()=>fe(-1),ArrowRight:()=>fe(1)}[e.key]:{ArrowUp:()=>ce(-1),ArrowDown:()=>ce(1),ArrowLeft:()=>de(-1),ArrowRight:()=>de(1)," ":()=>f?.toggle()}[e.key];t&&(e.preventDefault(),t())},header:(0,K.jsx)(ya,{title:ie(z.preview.case),titleText:re,badge:e.current?.result.status===`failed`?(0,K.jsx)(`span`,{className:`preview-chip is-failed`,children:`执行失败`}):void 0,leading:(0,K.jsxs)(`span`,{className:`preview-case-leading`,children:[f&&(0,K.jsx)(P,{content:`选择此用例`,shortcut:[`Space`],children:(0,K.jsx)(E,{"data-testid":z.preview.select,"aria-label":`选择此用例`,checked:f.checked,onChange:()=>f.toggle()})}),(0,K.jsx)(`span`,{className:`preview-case-state is-${C?`baseline`:e.change}`,"data-testid":z.preview.status,children:C?`基线`:e.change===`same`?`一致`:la[e.change]})]}),actions:(0,K.jsx)(K.Fragment,{children:s>1&&(0,K.jsx)(Zi,{index:o,total:s,showNoun:!0,onPrev:()=>ce(-1),onNext:()=>ce(1),ids:{previous:z.preview.previous,next:z.preview.next,position:z.preview.position}})}),metadata:(0,K.jsx)(K.Fragment,{children:le?(0,K.jsx)(`div`,{className:`file-preview-versions`,"data-testid":z.preview.version,"data-version":se,children:(0,K.jsx)(Ca,{label:`预览版本`,groupTestId:z.preview.tabs,value:se??``,onChange:e=>{M({...A,kind:e,preferred:e}),document.querySelector(`dialog[open]`)?.focus()},options:ka.map(e=>({value:e,label:Aa[e],disabled:!ae.includes(e),testId:z.previewTab(e)}))})}):L&&(0,K.jsx)(`span`,{className:`file-preview-version-note`,"data-testid":z.preview.version,"data-version":se,children:L})})}),children:[(0,K.jsx)(`div`,{className:`file-preview-evidence`,role:`tablist`,"aria-label":`证据`,"data-testid":z.preview.evidence,children:T.map((e,t)=>{let n=e.props.content??e.props.snapshot?.current??e.props.snapshot?.baseline,r=n?.name,i=C?void 0:e.props.snapshot?.change;return(0,K.jsxs)(`button`,{type:`button`,role:`tab`,className:`evidence-tab`,"data-testid":z.preview.evidenceTab(t),"aria-selected":e.key===te.key,title:r,onClick:()=>{F(e.key,A.preferred),document.querySelector(`dialog[open]`)?.focus()},children:[n?.type===`image`?(0,K.jsx)(Ce,{size:12,className:`evidence-tab-icon`}):(0,K.jsx)(De,{size:12,className:`evidence-tab-icon`}),(0,K.jsx)(`span`,{className:`evidence-tab-name`,children:r}),i&&i!==`same`&&(0,K.jsx)(`span`,{className:`evidence-tab-change is-${i}`,title:la[i],"aria-label":la[i]})]},e.key)})}),(0,K.jsx)(`div`,{className:`file-preview-stage`,"data-testid":z.preview.card,children:(0,K.jsx)(Na,{...te.props,enlarged:!0,previewKind:se,onView:()=>{}},te.key)}),(0,K.jsxs)(`p`,{className:`file-preview-hints`,"data-testid":z.preview.hints,children:[(0,K.jsxs)(`span`,{className:s>1?void 0:`is-disabled`,children:[(0,K.jsx)(`kbd`,{"data-pressed":v.has(`ArrowUp`),children:`↑`}),(0,K.jsx)(`kbd`,{"data-pressed":v.has(`ArrowDown`),children:`↓`}),`切换用例`]}),(0,K.jsxs)(`span`,{className:le?void 0:`is-disabled`,children:[(0,K.jsx)(`kbd`,{"data-pressed":v.has(`ArrowLeft`),children:`←`}),(0,K.jsx)(`kbd`,{"data-pressed":v.has(`ArrowRight`),children:`→`}),`切换版本`]}),(0,K.jsxs)(`span`,{className:T.length>1?void 0:`is-disabled`,children:[(0,K.jsx)(`kbd`,{"data-pressed":v.has(`Alt`),children:Oa}),(0,K.jsx)(`kbd`,{"data-pressed":v.has(`ArrowLeft`),children:`←`}),(0,K.jsx)(`kbd`,{"data-pressed":v.has(`ArrowRight`),children:`→`}),`切换证据`]}),f&&(0,K.jsxs)(`span`,{children:[(0,K.jsx)(`kbd`,{"data-pressed":v.has(` `),children:`Space`}),`选择用例`,f.count>0&&(0,K.jsxs)(`span`,{className:`file-preview-selected`,children:[`已选 `,f.count]})]}),(0,K.jsxs)(`span`,{children:[(0,K.jsx)(`kbd`,{"data-pressed":v.has(`Escape`),children:`Esc`}),`关闭`]})]})]})]})}function Na({snapshot:e,content:t,oldUrl:r,newUrl:a,diffUrl:o,baselineOnly:s,observationIndex:c,onView:l,enlarged:u=!1,previewKind:d}){let f=c!==void 0,p=e?.id??`observation-${c}`,m=e?.baseline,h=t??e?.current,g=h??m,_=g.type===`image`,v=!s&&e?.change===`modified`,y=v&&m?.type===`image`&&h?.type===`image`,b=v&&m?.type===`text`&&h?.type===`text`,x=v&&m&&h&&m.type!==h.type,S=[m?.body??``,h?.body??``],C=j(i),w=j(n),T=(e?.current??e?.baseline)?.col??4,E=e?.maxDiffPixels??e?.current?.maxDiffPixels??e?.baseline?.maxDiffPixels??0,D=e?.change??`same`,O={added:`A`,deleted:`D`,modified:`M`,same:``,unavailable:`?`}[D],k=d===`Baseline`||s||!h?`Baseline`:`Current`,A=b&&(!u||d===`Diff`),M=d?[{kind:d,src:d===`Baseline`?r:d===`Diff`?o:a}]:y?[{kind:`Baseline`,src:r},{kind:`Current`,src:a},...o?[{kind:`Diff`,src:o}]:[]]:[{kind:k,src:k===`Baseline`?r:a}];function N(e,t,n=!1){return(0,K.jsxs)(`figure`,{className:`file-image-version`,children:[n&&(0,K.jsx)(`figcaption`,{"data-testid":z.imageVersion(p,t),children:t===`Baseline`?`基线`:t===`Diff`?`差异图`:`当前`}),e?(0,K.jsx)(`button`,{className:`file-image-button`,"data-testid":z.visual.stage.zoom(t),onClick:e=>{e.stopPropagation(),l(t)},disabled:u,children:(0,K.jsx)(`img`,{src:e,alt:`${g.name} — ${t===`Baseline`?`基线`:t===`Diff`?`差异图`:`当前`}`,draggable:!1,...Re(t===`Baseline`?m:h),"data-testid":f?z.image(p,`observation`):z.visual.stage.image(t)})}):(0,K.jsx)(`p`,{className:`e2e-muted`,children:`没有该版本的内容`})]},t)}let P=S[k===`Baseline`?0:1];return(0,K.jsxs)(`section`,{className:`file-card${_?` is-image`:` is-text`}${y&&!u?` is-image-comparison`:``}${u?` is-enlarged`:``}`,style:{"--snapshot-col":T,"--image-columns":M.length,"--file-gutter":`${Math.max(24,String(Math.max(...S.map(e=>e.split(`