UNPKG

oiocns-editer

Version:

About oiocns of a component package.

34 lines (30 loc) 3.56 MB
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Qt=require("react"),g8=require("react-office-viewer"),tV=require("axios"),Ef=require("antd"),gZ=require("@bytemd/plugin-gfm"),f8=require("@bytemd/react"),fZ=require("@bytemd/plugin-breaks"),mZ=require("@bytemd/plugin-gemoji"),pZ=require("@bytemd/plugin-highlight"),_Z=require("@bytemd/plugin-math-ssr"),bZ=require("@bytemd/plugin-medium-zoom"),vZ=require("@bytemd/plugin-mermaid"),CZ=require("@bytemd/plugin-frontmatter");require("monaco-editor");const wZ=require("devextreme-react"),m8=require("jol-player"),Bm=require("cornerstone-core"),SZ=require("cornerstone-wado-image-loader"),yZ=require("dicom-parser-edit");function xZ(o){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const t in o)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(o,t);Object.defineProperty(e,t,i.get?i:{enumerable:!0,get:()=>o[t]})}}return e.default=o,Object.freeze(e)}const pO=xZ(SZ);var dT={exports:{}},L0={};/** * @license React * react-jsx-runtime.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var p8;function LZ(){if(p8)return L0;p8=1;var o=Qt,e=Symbol.for("react.element"),t=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,n=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function r(a,l,c){var d,h={},u=null,g=null;c!==void 0&&(u=""+c),l.key!==void 0&&(u=""+l.key),l.ref!==void 0&&(g=l.ref);for(d in l)i.call(l,d)&&!s.hasOwnProperty(d)&&(h[d]=l[d]);if(a&&a.defaultProps)for(d in l=a.defaultProps,l)h[d]===void 0&&(h[d]=l[d]);return{$$typeof:e,type:a,key:u,ref:g,props:h,_owner:n.current}}return L0.Fragment=t,L0.jsx=r,L0.jsxs=r,L0}var D0={};/** * @license React * react-jsx-runtime.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var _8;function DZ(){return _8||(_8=1,process.env.NODE_ENV!=="production"&&function(){var o=Qt,e=Symbol.for("react.element"),t=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),r=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),f=Symbol.iterator,m="@@iterator";function _(j){if(j===null||typeof j!="object")return null;var Ae=f&&j[f]||j[m];return typeof Ae=="function"?Ae:null}var b=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function v(j){{for(var Ae=arguments.length,ze=new Array(Ae>1?Ae-1:0),_t=1;_t<Ae;_t++)ze[_t-1]=arguments[_t];C("error",j,ze)}}function C(j,Ae,ze){{var _t=b.ReactDebugCurrentFrame,Oe=_t.getStackAddendum();Oe!==""&&(Ae+="%s",ze=ze.concat([Oe]));var Z=ze.map(function(xe){return String(xe)});Z.unshift("Warning: "+Ae),Function.prototype.apply.call(console[j],console,Z)}}var w=!1,S=!1,x=!1,y=!1,L=!1,k;k=Symbol.for("react.module.reference");function T(j){return!!(typeof j=="string"||typeof j=="function"||j===i||j===s||L||j===n||j===c||j===d||y||j===g||w||S||x||typeof j=="object"&&j!==null&&(j.$$typeof===u||j.$$typeof===h||j.$$typeof===r||j.$$typeof===a||j.$$typeof===l||j.$$typeof===k||j.getModuleId!==void 0))}function I(j,Ae,ze){var _t=j.displayName;if(_t)return _t;var Oe=Ae.displayName||Ae.name||"";return Oe!==""?ze+"("+Oe+")":ze}function R(j){return j.displayName||"Context"}function O(j){if(j==null)return null;if(typeof j.tag=="number"&&v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof j=="function")return j.displayName||j.name||null;if(typeof j=="string")return j;switch(j){case i:return"Fragment";case t:return"Portal";case s:return"Profiler";case n:return"StrictMode";case c:return"Suspense";case d:return"SuspenseList"}if(typeof j=="object")switch(j.$$typeof){case a:var Ae=j;return R(Ae)+".Consumer";case r:var ze=j;return R(ze._context)+".Provider";case l:return I(j,j.render,"ForwardRef");case h:var _t=j.displayName||null;return _t!==null?_t:O(j.type)||"Memo";case u:{var Oe=j,Z=Oe._payload,xe=Oe._init;try{return O(xe(Z))}catch{return null}}}return null}var W=Object.assign,G=0,X,ie,he,ae,Ce,Ne,J;function F(){}F.__reactDisabledLog=!0;function $(){{if(G===0){X=console.log,ie=console.info,he=console.warn,ae=console.error,Ce=console.group,Ne=console.groupCollapsed,J=console.groupEnd;var j={configurable:!0,enumerable:!0,value:F,writable:!0};Object.defineProperties(console,{info:j,log:j,warn:j,error:j,group:j,groupCollapsed:j,groupEnd:j})}G++}}function q(){{if(G--,G===0){var j={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:W({},j,{value:X}),info:W({},j,{value:ie}),warn:W({},j,{value:he}),error:W({},j,{value:ae}),group:W({},j,{value:Ce}),groupCollapsed:W({},j,{value:Ne}),groupEnd:W({},j,{value:J})})}G<0&&v("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Be=b.ReactCurrentDispatcher,Fe;function at(j,Ae,ze){{if(Fe===void 0)try{throw Error()}catch(Oe){var _t=Oe.stack.trim().match(/\n( *(at )?)/);Fe=_t&&_t[1]||""}return` `+Fe+j}}var ht=!1,Rt;{var Ke=typeof WeakMap=="function"?WeakMap:Map;Rt=new Ke}function Bt(j,Ae){if(!j||ht)return"";{var ze=Rt.get(j);if(ze!==void 0)return ze}var _t;ht=!0;var Oe=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Z;Z=Be.current,Be.current=null,$();try{if(Ae){var xe=function(){throw Error()};if(Object.defineProperty(xe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(xe,[])}catch(Xn){_t=Xn}Reflect.construct(j,[],xe)}else{try{xe.call()}catch(Xn){_t=Xn}j.call(xe.prototype)}}else{try{throw Error()}catch(Xn){_t=Xn}j()}}catch(Xn){if(Xn&&_t&&typeof Xn.stack=="string"){for(var De=Xn.stack.split(` `),Ut=_t.stack.split(` `),jt=De.length-1,bi=Ut.length-1;jt>=1&&bi>=0&&De[jt]!==Ut[bi];)bi--;for(;jt>=1&&bi>=0;jt--,bi--)if(De[jt]!==Ut[bi]){if(jt!==1||bi!==1)do if(jt--,bi--,bi<0||De[jt]!==Ut[bi]){var di=` `+De[jt].replace(" at new "," at ");return j.displayName&&di.includes("<anonymous>")&&(di=di.replace("<anonymous>",j.displayName)),typeof j=="function"&&Rt.set(j,di),di}while(jt>=1&&bi>=0);break}}}finally{ht=!1,Be.current=Z,q(),Error.prepareStackTrace=Oe}var cs=j?j.displayName||j.name:"",ds=cs?at(cs):"";return typeof j=="function"&&Rt.set(j,ds),ds}function Xt(j,Ae,ze){return Bt(j,!1)}function Fi(j){var Ae=j.prototype;return!!(Ae&&Ae.isReactComponent)}function Ss(j,Ae,ze){if(j==null)return"";if(typeof j=="function")return Bt(j,Fi(j));if(typeof j=="string")return at(j);switch(j){case c:return at("Suspense");case d:return at("SuspenseList")}if(typeof j=="object")switch(j.$$typeof){case l:return Xt(j.render);case h:return Ss(j.type,Ae,ze);case u:{var _t=j,Oe=_t._payload,Z=_t._init;try{return Ss(Z(Oe),Ae,ze)}catch{}}}return""}var Yn=Object.prototype.hasOwnProperty,bo={},vo=b.ReactDebugCurrentFrame;function Ko(j){if(j){var Ae=j._owner,ze=Ss(j.type,j._source,Ae?Ae.type:null);vo.setExtraStackFrame(ze)}else vo.setExtraStackFrame(null)}function ue(j,Ae,ze,_t,Oe){{var Z=Function.call.bind(Yn);for(var xe in j)if(Z(j,xe)){var De=void 0;try{if(typeof j[xe]!="function"){var Ut=Error((_t||"React class")+": "+ze+" type `"+xe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof j[xe]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Ut.name="Invariant Violation",Ut}De=j[xe](Ae,xe,_t,ze,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(jt){De=jt}De&&!(De instanceof Error)&&(Ko(Oe),v("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",_t||"React class",ze,xe,typeof De),Ko(null)),De instanceof Error&&!(De.message in bo)&&(bo[De.message]=!0,Ko(Oe),v("Failed %s type: %s",ze,De.message),Ko(null))}}}var te=Array.isArray;function ee(j){return te(j)}function P(j){{var Ae=typeof Symbol=="function"&&Symbol.toStringTag,ze=Ae&&j[Symbol.toStringTag]||j.constructor.name||"Object";return ze}}function B(j){try{return K(j),!1}catch{return!0}}function K(j){return""+j}function z(j){if(B(j))return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",P(j)),K(j)}var de=b.ReactCurrentOwner,Ie={key:!0,ref:!0,__self:!0,__source:!0},Q,ne,le;le={};function fe(j){if(Yn.call(j,"ref")){var Ae=Object.getOwnPropertyDescriptor(j,"ref").get;if(Ae&&Ae.isReactWarning)return!1}return j.ref!==void 0}function Ee(j){if(Yn.call(j,"key")){var Ae=Object.getOwnPropertyDescriptor(j,"key").get;if(Ae&&Ae.isReactWarning)return!1}return j.key!==void 0}function Ve(j,Ae){if(typeof j.ref=="string"&&de.current&&Ae&&de.current.stateNode!==Ae){var ze=O(de.current.type);le[ze]||(v('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',O(de.current.type),j.ref),le[ze]=!0)}}function ve(j,Ae){{var ze=function(){Q||(Q=!0,v("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",Ae))};ze.isReactWarning=!0,Object.defineProperty(j,"key",{get:ze,configurable:!0})}}function Qe(j,Ae){{var ze=function(){ne||(ne=!0,v("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",Ae))};ze.isReactWarning=!0,Object.defineProperty(j,"ref",{get:ze,configurable:!0})}}var Ze=function(j,Ae,ze,_t,Oe,Z,xe){var De={$$typeof:e,type:j,key:Ae,ref:ze,props:xe,_owner:Z};return De._store={},Object.defineProperty(De._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(De,"_self",{configurable:!1,enumerable:!1,writable:!1,value:_t}),Object.defineProperty(De,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Oe}),Object.freeze&&(Object.freeze(De.props),Object.freeze(De)),De};function Xe(j,Ae,ze,_t,Oe){{var Z,xe={},De=null,Ut=null;ze!==void 0&&(z(ze),De=""+ze),Ee(Ae)&&(z(Ae.key),De=""+Ae.key),fe(Ae)&&(Ut=Ae.ref,Ve(Ae,Oe));for(Z in Ae)Yn.call(Ae,Z)&&!Ie.hasOwnProperty(Z)&&(xe[Z]=Ae[Z]);if(j&&j.defaultProps){var jt=j.defaultProps;for(Z in jt)xe[Z]===void 0&&(xe[Z]=jt[Z])}if(De||Ut){var bi=typeof j=="function"?j.displayName||j.name||"Unknown":j;De&&ve(xe,bi),Ut&&Qe(xe,bi)}return Ze(j,De,Ut,Oe,_t,de.current,xe)}}var Le=b.ReactCurrentOwner,it=b.ReactDebugCurrentFrame;function Ot(j){if(j){var Ae=j._owner,ze=Ss(j.type,j._source,Ae?Ae.type:null);it.setExtraStackFrame(ze)}else it.setExtraStackFrame(null)}var Ct;Ct=!1;function dt(j){return typeof j=="object"&&j!==null&&j.$$typeof===e}function ai(){{if(Le.current){var j=O(Le.current.type);if(j)return` Check the render method of \``+j+"`."}return""}}function ii(j){return""}var $i={};function Ii(j){{var Ae=ai();if(!Ae){var ze=typeof j=="string"?j:j.displayName||j.name;ze&&(Ae=` Check the top-level render call using <`+ze+">.")}return Ae}}function Ft(j,Ae){{if(!j._store||j._store.validated||j.key!=null)return;j._store.validated=!0;var ze=Ii(Ae);if($i[ze])return;$i[ze]=!0;var _t="";j&&j._owner&&j._owner!==Le.current&&(_t=" It was passed a child from "+O(j._owner.type)+"."),Ot(j),v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',ze,_t),Ot(null)}}function ni(j,Ae){{if(typeof j!="object")return;if(ee(j))for(var ze=0;ze<j.length;ze++){var _t=j[ze];dt(_t)&&Ft(_t,Ae)}else if(dt(j))j._store&&(j._store.validated=!0);else if(j){var Oe=_(j);if(typeof Oe=="function"&&Oe!==j.entries)for(var Z=Oe.call(j),xe;!(xe=Z.next()).done;)dt(xe.value)&&Ft(xe.value,Ae)}}}function qe(j){{var Ae=j.type;if(Ae==null||typeof Ae=="string")return;var ze;if(typeof Ae=="function")ze=Ae.propTypes;else if(typeof Ae=="object"&&(Ae.$$typeof===l||Ae.$$typeof===h))ze=Ae.propTypes;else return;if(ze){var _t=O(Ae);ue(ze,j.props,"prop",_t,j)}else if(Ae.PropTypes!==void 0&&!Ct){Ct=!0;var Oe=O(Ae);v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Oe||"Unknown")}typeof Ae.getDefaultProps=="function"&&!Ae.getDefaultProps.isReactClassApproved&&v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ft(j){{for(var Ae=Object.keys(j.props),ze=0;ze<Ae.length;ze++){var _t=Ae[ze];if(_t!=="children"&&_t!=="key"){Ot(j),v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",_t),Ot(null);break}}j.ref!==null&&(Ot(j),v("Invalid attribute `ref` supplied to `React.Fragment`."),Ot(null))}}var fi={};function mn(j,Ae,ze,_t,Oe,Z){{var xe=T(j);if(!xe){var De="";(j===void 0||typeof j=="object"&&j!==null&&Object.keys(j).length===0)&&(De+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Ut=ii();Ut?De+=Ut:De+=ai();var jt;j===null?jt="null":ee(j)?jt="array":j!==void 0&&j.$$typeof===e?(jt="<"+(O(j.type)||"Unknown")+" />",De=" Did you accidentally export a JSX literal instead of a component?"):jt=typeof j,v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",jt,De)}var bi=Xe(j,Ae,ze,Oe,Z);if(bi==null)return bi;if(xe){var di=Ae.children;if(di!==void 0)if(_t)if(ee(di)){for(var cs=0;cs<di.length;cs++)ni(di[cs],j);Object.freeze&&Object.freeze(di)}else v("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ni(di,j)}if(Yn.call(Ae,"key")){var ds=O(j),Xn=Object.keys(Ae).filter(function(pm){return pm!=="key"}),fl=Xn.length>0?"{key: someKey, "+Xn.join(": ..., ")+": ...}":"{key: someKey}";if(!fi[ds+fl]){var HC=Xn.length>0?"{"+Xn.join(": ..., ")+": ...}":"{}";v(`A props object containing a "key" prop is being spread into JSX: let props = %s; <%s {...props} /> React keys must be passed directly to JSX without using spread: let props = %s; <%s key={someKey} {...props} />`,fl,ds,HC,ds),fi[ds+fl]=!0}}return j===i?ft(bi):qe(bi),bi}}function oi(j,Ae,ze){return mn(j,Ae,ze,!0)}function Xi(j,Ae,ze){return mn(j,Ae,ze,!1)}var wi=Xi,pn=oi;D0.Fragment=i,D0.jsx=wi,D0.jsxs=pn}()),D0}process.env.NODE_ENV==="production"?dT.exports=LZ():dT.exports=DZ();var ot=dT.exports;const kZ="粗体",EZ="粗体文本",IZ="Markdown 语法",TZ="关闭帮助",NZ="关闭目录",MZ="代码",RZ="代码块",AZ="编程语言",PZ="代码",OZ="退出全屏",FZ="恢复默认",BZ="恢复默认",WZ="全屏",HZ="一级标题",VZ="二级标题",zZ="三级标题",UZ="四级标题",$Z="五级标题",GZ="六级标题",jZ="标题",KZ="帮助",qZ="分割线",ZZ="图片",YZ="alt",XZ="图片描述",QZ="斜体",JZ="斜体文本",eY="已达最大字符数限制",tY="行数",iY="链接",nY="链接描述",sY="有序列表",oY="项目",rY="预览",aY="仅预览区",lY="引用",cY="引用文本",dY="快捷键",hY="源代码",uY="同步滚动",gY="目录",fY="回到顶部",mY="无序列表",pY="项目",_Y="字数",bY="编辑",vY="仅编辑区",CY={bold:kZ,boldText:EZ,cheatsheet:IZ,closeHelp:TZ,closeToc:NZ,code:MZ,codeBlock:RZ,codeLang:AZ,codeText:PZ,exitFullscreen:OZ,exitPreviewOnly:FZ,exitWriteOnly:BZ,fullscreen:WZ,h1:HZ,h2:VZ,h3:zZ,h4:UZ,h5:$Z,h6:GZ,headingText:jZ,help:KZ,hr:qZ,image:ZZ,imageAlt:YZ,imageTitle:XZ,italic:QZ,italicText:JZ,limited:eY,lines:tY,link:iY,linkText:nY,ol:sY,olItem:oY,preview:rY,previewOnly:aY,quote:lY,quotedText:cY,shortcuts:dY,source:hY,sync:uY,toc:gY,top:fY,ul:mY,ulItem:pY,words:_Y,write:bY,writeOnly:vY},wY=[gZ({locale:{strike:"删除线",strikeText:"文本",task:"任务列表",taskText:"待办事项",table:"表格",tableHeading:"标题"}}),mZ(),pZ(),bZ(),vZ({locale:{class:"类图",er:"关系图",flowchart:"流程图",gantt:"甘特图",mermaid:"Mermaid图表",mindmap:"思维导图",pie:"饼状图",sequence:"时序图",state:"状态图",timeline:"时间轴",uj:"旅程图"}}),_Z({locale:{inline:"行内公式",inlineText:"公式",block:"块级公式",blockText:"公式"}}),fZ(),CZ()],SY=({link:o,getHtml:e})=>{const[t,i]=Qt.useState(!1),[n,s]=Qt.useState("<p></p>");return e(n),Qt.useEffect(()=>{tV.get(o).then(r=>{i(!0),r.status===200&&s(r.data)})},[]),t?ot.jsx(ot.Fragment,{children:ot.jsxs("div",{style:{border:"1px solid #ccc",zIndex:100,marginTop:"15px"},children:[ot.jsx(f8.Editor,{value:n,locale:CY,plugins:wY,onChange:r=>{s(r)}}),ot.jsx("div",{id:"preview-content",style:{display:"none"},children:ot.jsx(f8.Viewer,{value:n})})]})}):ot.jsx(Ef.Spin,{tip:"加载中,请稍后...",size:"large",style:{marginTop:"calc(50vh - 50px)",marginLeft:"50vw"}})};function yY(){return globalThis._VSCODE_NLS_MESSAGES}function iV(){return globalThis._VSCODE_NLS_LANGUAGE}const xY=iV()==="pseudo"||typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function zS(o,e){let t;return e.length===0?t=o:t=o.replace(/\{(\d+)\}/g,(i,n)=>{const s=n[0],r=e[s];let a=i;return typeof r=="string"?a=r:(typeof r=="number"||typeof r=="boolean"||r===void 0||r===null)&&(a=String(r)),a}),xY&&(t="["+t.replace(/[aouei]/g,"$&$&")+"]"),t}function p(o,e,...t){return zS(typeof o=="number"?nV(o,e):e,t)}function nV(o,e){var i;const t=(i=yY())==null?void 0:i[o];if(typeof t!="string"){if(typeof e=="string")return e;throw new Error(`!!! NLS MISSING: ${o} !!!`)}return t}function tt(o,e,...t){let i;typeof o=="number"?i=nV(o,e):i=e;const n=zS(i,t);return{value:n,original:e===i?n:zS(e,t)}}function LY(o,e){const t=o;typeof t.vscodeWindowId!="number"&&Object.defineProperty(t,"vscodeWindowId",{get:()=>e})}const hi=window,qL=class qL{constructor(){this.mapWindowIdToZoomFactor=new Map}getZoomFactor(e){return this.mapWindowIdToZoomFactor.get(this.getWindowId(e))??1}getWindowId(e){return e.vscodeWindowId}};qL.INSTANCE=new qL;let hT=qL;function sV(o,e,t){typeof e=="string"&&(e=o.matchMedia(e)),e.addEventListener("change",t)}function DY(o){return hT.INSTANCE.getZoomFactor(o)}const e0=navigator.userAgent,Hr=e0.indexOf("Firefox")>=0,yg=e0.indexOf("AppleWebKit")>=0,tC=e0.indexOf("Chrome")>=0,ud=!tC&&e0.indexOf("Safari")>=0,oV=!tC&&!ud&&yg;e0.indexOf("Electron/")>=0;const b8=e0.indexOf("Android")>=0;let tS=!1;if(typeof hi.matchMedia=="function"){const o=hi.matchMedia("(display-mode: standalone) or (display-mode: window-controls-overlay)"),e=hi.matchMedia("(display-mode: fullscreen)");tS=o.matches,sV(hi,o,({matches:t})=>{tS&&e.matches||(tS=t)})}function kY(){return tS}function lo(o){return typeof o=="string"}function Bn(o){return typeof o=="object"&&o!==null&&!Array.isArray(o)&&!(o instanceof RegExp)&&!(o instanceof Date)}function EY(o){const e=Object.getPrototypeOf(Uint8Array);return typeof o=="object"&&o instanceof e}function Zh(o){return typeof o=="number"&&!isNaN(o)}function v8(o){return!!o&&typeof o[Symbol.iterator]=="function"}function rV(o){return o===!0||o===!1}function Ns(o){return typeof o>"u"}function ql(o){return!nr(o)}function nr(o){return Ns(o)||o===null}function Vt(o,e){if(!o)throw new Error(e?`Unexpected type, expected '${e}'`:"Unexpected type")}function lh(o){if(nr(o))throw new Error("Assertion Failed: argument is undefined or null");return o}function US(o){return typeof o=="function"}function IY(o,e){const t=Math.min(o.length,e.length);for(let i=0;i<t;i++)TY(o[i],e[i])}function TY(o,e){if(lo(e)){if(typeof o!==e)throw new Error(`argument does not match constraint: typeof ${e}`)}else if(US(e)){try{if(o instanceof e)return}catch{}if(!nr(o)&&o.constructor===e||e.length===1&&e.call(void 0,o)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}const jm="en";let $S=!1,GS=!1,iS=!1,aV=!1,_O=!1,bO=!1,lV=!1,VC,nS=jm,C8=jm,NY,La;const sd=globalThis;let Os;var QH;typeof sd.vscode<"u"&&typeof sd.vscode.process<"u"?Os=sd.vscode.process:typeof process<"u"&&typeof((QH=process==null?void 0:process.versions)==null?void 0:QH.node)=="string"&&(Os=process);var JH;const MY=typeof((JH=Os==null?void 0:Os.versions)==null?void 0:JH.electron)=="string",RY=MY&&(Os==null?void 0:Os.type)==="renderer";var eV;if(typeof Os=="object"){$S=Os.platform==="win32",GS=Os.platform==="darwin",iS=Os.platform==="linux",iS&&Os.env.SNAP&&Os.env.SNAP_REVISION,Os.env.CI||Os.env.BUILD_ARTIFACTSTAGINGDIRECTORY,VC=jm,nS=jm;const o=Os.env.VSCODE_NLS_CONFIG;if(o)try{const e=JSON.parse(o);VC=e.userLocale,C8=e.osLocale,nS=e.resolvedLanguage||jm,NY=(eV=e.languagePack)==null?void 0:eV.translationsConfigFile}catch{}aV=!0}else typeof navigator=="object"&&!RY?(La=navigator.userAgent,$S=La.indexOf("Windows")>=0,GS=La.indexOf("Macintosh")>=0,bO=(La.indexOf("Macintosh")>=0||La.indexOf("iPad")>=0||La.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,iS=La.indexOf("Linux")>=0,lV=(La==null?void 0:La.indexOf("Mobi"))>=0,_O=!0,nS=iV()||jm,VC=navigator.language.toLowerCase(),C8=VC):console.error("Unable to resolve platform.");const _s=$S,Dt=GS,qs=iS,ja=aV,_u=_O,AY=_O&&typeof sd.importScripts=="function",PY=AY?sd.origin:void 0,ec=bO,cV=lV,tc=La,OY=nS,FY=typeof sd.postMessage=="function"&&!sd.importScripts,dV=(()=>{if(FY){const o=[];sd.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let i=0,n=o.length;i<n;i++){const s=o[i];if(s.id===t.data.vscodeScheduleAsyncWork){o.splice(i,1),s.callback();return}}});let e=0;return t=>{const i=++e;o.push({id:i,callback:t}),sd.postMessage({vscodeScheduleAsyncWork:i},"*")}}return o=>setTimeout(o)})(),No=GS||bO?2:$S?1:3;let w8=!0,S8=!1;function hV(){if(!S8){S8=!0;const o=new Uint8Array(2);o[0]=1,o[1]=2,w8=new Uint16Array(o.buffer)[0]===513}return w8}const uV=!!(tc&&tc.indexOf("Chrome")>=0),BY=!!(tc&&tc.indexOf("Firefox")>=0),WY=!!(!uV&&tc&&tc.indexOf("Safari")>=0),HY=!!(tc&&tc.indexOf("Edg/")>=0),VY=!!(tc&&tc.indexOf("Android")>=0),vO={clipboard:{writeText:ja||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:ja||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText)},keyboard:ja||kY()?0:navigator.keyboard||ud?1:2,touch:"ontouchstart"in hi||navigator.maxTouchPoints>0,pointerEvents:hi.PointerEvent&&("ontouchstart"in hi||navigator.maxTouchPoints>0)};class CO{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()]||0}}const sS=new CO,uT=new CO,gT=new CO,gV=new Array(230),zY=Object.create(null),UY=Object.create(null),wO=[];for(let o=0;o<=193;o++)wO[o]=-1;(function(){const o="",e=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",o,o],[1,1,"Hyper",0,o,0,o,o,o],[1,2,"Super",0,o,0,o,o,o],[1,3,"Fn",0,o,0,o,o,o],[1,4,"FnLock",0,o,0,o,o,o],[1,5,"Suspend",0,o,0,o,o,o],[1,6,"Resume",0,o,0,o,o,o],[1,7,"Turbo",0,o,0,o,o,o],[1,8,"Sleep",0,o,0,"VK_SLEEP",o,o],[1,9,"WakeUp",0,o,0,o,o,o],[0,10,"KeyA",31,"A",65,"VK_A",o,o],[0,11,"KeyB",32,"B",66,"VK_B",o,o],[0,12,"KeyC",33,"C",67,"VK_C",o,o],[0,13,"KeyD",34,"D",68,"VK_D",o,o],[0,14,"KeyE",35,"E",69,"VK_E",o,o],[0,15,"KeyF",36,"F",70,"VK_F",o,o],[0,16,"KeyG",37,"G",71,"VK_G",o,o],[0,17,"KeyH",38,"H",72,"VK_H",o,o],[0,18,"KeyI",39,"I",73,"VK_I",o,o],[0,19,"KeyJ",40,"J",74,"VK_J",o,o],[0,20,"KeyK",41,"K",75,"VK_K",o,o],[0,21,"KeyL",42,"L",76,"VK_L",o,o],[0,22,"KeyM",43,"M",77,"VK_M",o,o],[0,23,"KeyN",44,"N",78,"VK_N",o,o],[0,24,"KeyO",45,"O",79,"VK_O",o,o],[0,25,"KeyP",46,"P",80,"VK_P",o,o],[0,26,"KeyQ",47,"Q",81,"VK_Q",o,o],[0,27,"KeyR",48,"R",82,"VK_R",o,o],[0,28,"KeyS",49,"S",83,"VK_S",o,o],[0,29,"KeyT",50,"T",84,"VK_T",o,o],[0,30,"KeyU",51,"U",85,"VK_U",o,o],[0,31,"KeyV",52,"V",86,"VK_V",o,o],[0,32,"KeyW",53,"W",87,"VK_W",o,o],[0,33,"KeyX",54,"X",88,"VK_X",o,o],[0,34,"KeyY",55,"Y",89,"VK_Y",o,o],[0,35,"KeyZ",56,"Z",90,"VK_Z",o,o],[0,36,"Digit1",22,"1",49,"VK_1",o,o],[0,37,"Digit2",23,"2",50,"VK_2",o,o],[0,38,"Digit3",24,"3",51,"VK_3",o,o],[0,39,"Digit4",25,"4",52,"VK_4",o,o],[0,40,"Digit5",26,"5",53,"VK_5",o,o],[0,41,"Digit6",27,"6",54,"VK_6",o,o],[0,42,"Digit7",28,"7",55,"VK_7",o,o],[0,43,"Digit8",29,"8",56,"VK_8",o,o],[0,44,"Digit9",30,"9",57,"VK_9",o,o],[0,45,"Digit0",21,"0",48,"VK_0",o,o],[1,46,"Enter",3,"Enter",13,"VK_RETURN",o,o],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",o,o],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",o,o],[1,49,"Tab",2,"Tab",9,"VK_TAB",o,o],[1,50,"Space",10,"Space",32,"VK_SPACE",o,o],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,56,"IntlHash",0,o,0,o,o,o],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",o,o],[1,64,"F1",59,"F1",112,"VK_F1",o,o],[1,65,"F2",60,"F2",113,"VK_F2",o,o],[1,66,"F3",61,"F3",114,"VK_F3",o,o],[1,67,"F4",62,"F4",115,"VK_F4",o,o],[1,68,"F5",63,"F5",116,"VK_F5",o,o],[1,69,"F6",64,"F6",117,"VK_F6",o,o],[1,70,"F7",65,"F7",118,"VK_F7",o,o],[1,71,"F8",66,"F8",119,"VK_F8",o,o],[1,72,"F9",67,"F9",120,"VK_F9",o,o],[1,73,"F10",68,"F10",121,"VK_F10",o,o],[1,74,"F11",69,"F11",122,"VK_F11",o,o],[1,75,"F12",70,"F12",123,"VK_F12",o,o],[1,76,"PrintScreen",0,o,0,o,o,o],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",o,o],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",o,o],[1,79,"Insert",19,"Insert",45,"VK_INSERT",o,o],[1,80,"Home",14,"Home",36,"VK_HOME",o,o],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",o,o],[1,82,"Delete",20,"Delete",46,"VK_DELETE",o,o],[1,83,"End",13,"End",35,"VK_END",o,o],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",o,o],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",o],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",o],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",o],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",o],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",o,o],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",o,o],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",o,o],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",o,o],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",o,o],[1,94,"NumpadEnter",3,o,0,o,o,o],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",o,o],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",o,o],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",o,o],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",o,o],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",o,o],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",o,o],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",o,o],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",o,o],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",o,o],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",o,o],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",o,o],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",o,o],[1,107,"ContextMenu",58,"ContextMenu",93,o,o,o],[1,108,"Power",0,o,0,o,o,o],[1,109,"NumpadEqual",0,o,0,o,o,o],[1,110,"F13",71,"F13",124,"VK_F13",o,o],[1,111,"F14",72,"F14",125,"VK_F14",o,o],[1,112,"F15",73,"F15",126,"VK_F15",o,o],[1,113,"F16",74,"F16",127,"VK_F16",o,o],[1,114,"F17",75,"F17",128,"VK_F17",o,o],[1,115,"F18",76,"F18",129,"VK_F18",o,o],[1,116,"F19",77,"F19",130,"VK_F19",o,o],[1,117,"F20",78,"F20",131,"VK_F20",o,o],[1,118,"F21",79,"F21",132,"VK_F21",o,o],[1,119,"F22",80,"F22",133,"VK_F22",o,o],[1,120,"F23",81,"F23",134,"VK_F23",o,o],[1,121,"F24",82,"F24",135,"VK_F24",o,o],[1,122,"Open",0,o,0,o,o,o],[1,123,"Help",0,o,0,o,o,o],[1,124,"Select",0,o,0,o,o,o],[1,125,"Again",0,o,0,o,o,o],[1,126,"Undo",0,o,0,o,o,o],[1,127,"Cut",0,o,0,o,o,o],[1,128,"Copy",0,o,0,o,o,o],[1,129,"Paste",0,o,0,o,o,o],[1,130,"Find",0,o,0,o,o,o],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",o,o],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",o,o],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",o,o],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",o,o],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",o,o],[1,136,"KanaMode",0,o,0,o,o,o],[0,137,"IntlYen",0,o,0,o,o,o],[1,138,"Convert",0,o,0,o,o,o],[1,139,"NonConvert",0,o,0,o,o,o],[1,140,"Lang1",0,o,0,o,o,o],[1,141,"Lang2",0,o,0,o,o,o],[1,142,"Lang3",0,o,0,o,o,o],[1,143,"Lang4",0,o,0,o,o,o],[1,144,"Lang5",0,o,0,o,o,o],[1,145,"Abort",0,o,0,o,o,o],[1,146,"Props",0,o,0,o,o,o],[1,147,"NumpadParenLeft",0,o,0,o,o,o],[1,148,"NumpadParenRight",0,o,0,o,o,o],[1,149,"NumpadBackspace",0,o,0,o,o,o],[1,150,"NumpadMemoryStore",0,o,0,o,o,o],[1,151,"NumpadMemoryRecall",0,o,0,o,o,o],[1,152,"NumpadMemoryClear",0,o,0,o,o,o],[1,153,"NumpadMemoryAdd",0,o,0,o,o,o],[1,154,"NumpadMemorySubtract",0,o,0,o,o,o],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",o,o],[1,156,"NumpadClearEntry",0,o,0,o,o,o],[1,0,o,5,"Ctrl",17,"VK_CONTROL",o,o],[1,0,o,4,"Shift",16,"VK_SHIFT",o,o],[1,0,o,6,"Alt",18,"VK_MENU",o,o],[1,0,o,57,"Meta",91,"VK_COMMAND",o,o],[1,157,"ControlLeft",5,o,0,"VK_LCONTROL",o,o],[1,158,"ShiftLeft",4,o,0,"VK_LSHIFT",o,o],[1,159,"AltLeft",6,o,0,"VK_LMENU",o,o],[1,160,"MetaLeft",57,o,0,"VK_LWIN",o,o],[1,161,"ControlRight",5,o,0,"VK_RCONTROL",o,o],[1,162,"ShiftRight",4,o,0,"VK_RSHIFT",o,o],[1,163,"AltRight",6,o,0,"VK_RMENU",o,o],[1,164,"MetaRight",57,o,0,"VK_RWIN",o,o],[1,165,"BrightnessUp",0,o,0,o,o,o],[1,166,"BrightnessDown",0,o,0,o,o,o],[1,167,"MediaPlay",0,o,0,o,o,o],[1,168,"MediaRecord",0,o,0,o,o,o],[1,169,"MediaFastForward",0,o,0,o,o,o],[1,170,"MediaRewind",0,o,0,o,o,o],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",o,o],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",o,o],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",o,o],[1,174,"Eject",0,o,0,o,o,o],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",o,o],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",o,o],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",o,o],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",o,o],[1,179,"LaunchApp1",0,o,0,"VK_MEDIA_LAUNCH_APP1",o,o],[1,180,"SelectTask",0,o,0,o,o,o],[1,181,"LaunchScreenSaver",0,o,0,o,o,o],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",o,o],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",o,o],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",o,o],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",o,o],[1,186,"BrowserStop",0,o,0,"VK_BROWSER_STOP",o,o],[1,187,"BrowserRefresh",0,o,0,"VK_BROWSER_REFRESH",o,o],[1,188,"BrowserFavorites",0,o,0,"VK_BROWSER_FAVORITES",o,o],[1,189,"ZoomToggle",0,o,0,o,o,o],[1,190,"MailReply",0,o,0,o,o,o],[1,191,"MailForward",0,o,0,o,o,o],[1,192,"MailSend",0,o,0,o,o,o],[1,0,o,114,"KeyInComposition",229,o,o,o],[1,0,o,116,"ABNT_C2",194,"VK_ABNT_C2",o,o],[1,0,o,96,"OEM_8",223,"VK_OEM_8",o,o],[1,0,o,0,o,0,"VK_KANA",o,o],[1,0,o,0,o,0,"VK_HANGUL",o,o],[1,0,o,0,o,0,"VK_JUNJA",o,o],[1,0,o,0,o,0,"VK_FINAL",o,o],[1,0,o,0,o,0,"VK_HANJA",o,o],[1,0,o,0,o,0,"VK_KANJI",o,o],[1,0,o,0,o,0,"VK_CONVERT",o,o],[1,0,o,0,o,0,"VK_NONCONVERT",o,o],[1,0,o,0,o,0,"VK_ACCEPT",o,o],[1,0,o,0,o,0,"VK_MODECHANGE",o,o],[1,0,o,0,o,0,"VK_SELECT",o,o],[1,0,o,0,o,0,"VK_PRINT",o,o],[1,0,o,0,o,0,"VK_EXECUTE",o,o],[1,0,o,0,o,0,"VK_SNAPSHOT",o,o],[1,0,o,0,o,0,"VK_HELP",o,o],[1,0,o,0,o,0,"VK_APPS",o,o],[1,0,o,0,o,0,"VK_PROCESSKEY",o,o],[1,0,o,0,o,0,"VK_PACKET",o,o],[1,0,o,0,o,0,"VK_DBE_SBCSCHAR",o,o],[1,0,o,0,o,0,"VK_DBE_DBCSCHAR",o,o],[1,0,o,0,o,0,"VK_ATTN",o,o],[1,0,o,0,o,0,"VK_CRSEL",o,o],[1,0,o,0,o,0,"VK_EXSEL",o,o],[1,0,o,0,o,0,"VK_EREOF",o,o],[1,0,o,0,o,0,"VK_PLAY",o,o],[1,0,o,0,o,0,"VK_ZOOM",o,o],[1,0,o,0,o,0,"VK_NONAME",o,o],[1,0,o,0,o,0,"VK_PA1",o,o],[1,0,o,0,o,0,"VK_OEM_CLEAR",o,o]],t=[],i=[];for(const n of e){const[s,r,a,l,c,d,h,u,g]=n;if(i[r]||(i[r]=!0,zY[a]=r,UY[a.toLowerCase()]=r,s&&(wO[r]=l)),!t[l]){if(t[l]=!0,!c)throw new Error(`String representation missing for key code ${l} around scan code ${a}`);sS.define(l,c),uT.define(l,u||c),gT.define(l,g||u||c)}d&&(gV[d]=l)}})();var Vc;(function(o){function e(a){return sS.keyCodeToStr(a)}o.toString=e;function t(a){return sS.strToKeyCode(a)}o.fromString=t;function i(a){return uT.keyCodeToStr(a)}o.toUserSettingsUS=i;function n(a){return gT.keyCodeToStr(a)}o.toUserSettingsGeneral=n;function s(a){return uT.strToKeyCode(a)||gT.strToKeyCode(a)}o.fromUserSettings=s;function r(a){if(a>=98&&a<=113)return null;switch(a){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return sS.keyCodeToStr(a)}o.toElectronAccelerator=r})(Vc||(Vc={}));function Cn(o,e){const t=(e&65535)<<16>>>0;return(o|t)>>>0}class $Y{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?f_.isErrorNoTelemetry(e)?new f_(e.message+` `+e.stack):new Error(e.message+` `+e.stack):e},0)}}emit(e){this.listeners.forEach(t=>{t(e)})}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}}const fV=new $Y;function lt(o){ba(o)||fV.onUnexpectedError(o)}function sn(o){ba(o)||fV.onUnexpectedExternalError(o)}function y8(o){if(o instanceof Error){const{name:e,message:t}=o,i=o.stacktrace||o.stack;return{$isError:!0,name:e,message:t,stack:i,noTelemetry:f_.isErrorNoTelemetry(o)}}return o}const jS="Canceled";function ba(o){return o instanceof ha?!0:o instanceof Error&&o.name===jS&&o.message===jS}class ha extends Error{constructor(){super(jS),this.name=this.message}}function GY(){const o=new Error(jS);return o.name=o.message,o}function Or(o){return o?new Error(`Illegal argument: ${o}`):new Error("Illegal argument")}function SO(o){return o?new Error(`Illegal state: ${o}`):new Error("Illegal state")}class jY extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}class f_ extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof f_)return e;const t=new f_;return t.message=e.message,t.stack=e.stack,t}static isErrorNoTelemetry(e){return e.name==="CodeExpectedError"}}class Gt extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,Gt.prototype)}}function fT(o,e){if(typeof o=="number"){if(o===0)return null;const t=(o&65535)>>>0,i=(o&4294901760)>>>16;return i!==0?new nI([zC(t,e),zC(i,e)]):new nI([zC(t,e)])}else{const t=[];for(let i=0;i<o.length;i++)t.push(zC(o[i],e));return new nI(t)}}function zC(o,e){const t=!!(o&2048),i=!!(o&256),n=e===2?i:t,s=!!(o&1024),r=!!(o&512),a=e===2?t:i,l=o&255;return new gd(n,s,r,a,l)}class gd{constructor(e,t,i,n,s){this.ctrlKey=e,this.shiftKey=t,this.altKey=i,this.metaKey=n,this.keyCode=s}equals(e){return e instanceof gd&&this.ctrlKey===e.ctrlKey&&this.shiftKey===e.shiftKey&&this.altKey===e.altKey&&this.metaKey===e.metaKey&&this.keyCode===e.keyCode}isModifierKey(){return this.keyCode===0||this.keyCode===5||this.keyCode===57||this.keyCode===6||this.keyCode===4}isDuplicateModifierCase(){return this.ctrlKey&&this.keyCode===5||this.shiftKey&&this.keyCode===4||this.altKey&&this.keyCode===6||this.metaKey&&this.keyCode===57}}class nI{constructor(e){if(e.length===0)throw Or("chords");this.chords=e}}class KY{constructor(e,t,i,n,s,r){this.ctrlKey=e,this.shiftKey=t,this.altKey=i,this.metaKey=n,this.keyLabel=s,this.keyAriaLabel=r}}class qY{}function ZY(o){if(o.charCode){const t=String.fromCharCode(o.charCode).toUpperCase();return Vc.fromString(t)}const e=o.keyCode;if(e===3)return 7;if(Hr)switch(e){case 59:return 85;case 60:if(qs)return 97;break;case 61:return 86;case 107:return 109;case 109:return 111;case 173:return 88;case 224:if(Dt)return 57;break}else if(yg){if(Dt&&e===93)return 57;if(!Dt&&e===92)return 57}return gV[e]||0}const YY=Dt?256:2048,XY=512,QY=1024,JY=Dt?2048:256;class pi{constructor(e){var i;this._standardKeyboardEventBrand=!0;const 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=(i=t.getModifierState)==null?void 0:i.call(t,"AltGraph"),this.keyCode=ZY(t),this.code=t.code,this.ctrlKey=this.ctrlKey||this.keyCode===5,this.altKey=this.altKey||this.keyCode===6,this.shiftKey=this.shiftKey||this.keyCode===4,this.metaKey=this.metaKey||this.keyCode===57,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=0;this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(e=this.keyCode);let t=0;return this.ctrlKey&&(t|=YY),this.altKey&&(t|=XY),this.shiftKey&&(t|=QY),this.metaKey&&(t|=JY),t|=e,t}_computeKeyCodeChord(){let e=0;return this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(e=this.keyCode),new gd(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e)}}const x8=new WeakMap;function eX(o){if(!o.parent||o.parent===o)return null;try{const e=o.location,t=o.parent.location;if(e.origin!=="null"&&t.origin!=="null"&&e.origin!==t.origin)return null}catch{return null}return o.parent}class tX{static getSameOriginWindowChain(e){let t=x8.get(e);if(!t){t=[],x8.set(e,t);let i=e,n;do n=eX(i),n?t.push({window:new WeakRef(i),iframeElement:i.frameElement||null}):t.push({window:new WeakRef(i),iframeElement:null}),i=n;while(i)}return t.slice(0)}static getPositionOfChildWindowRelativeToAncestorWindow(e,t){if(!t||e===t)return{top:0,left:0};let i=0,n=0;const s=this.getSameOriginWindowChain(e);for(const r of s){const a=r.window.deref();if(i+=(a==null?void 0:a.scrollY)??0,n+=(a==null?void 0:a.scrollX)??0,a===t||!r.iframeElement)break;const l=r.iframeElement.getBoundingClientRect();i+=l.top,n+=l.left}return{top:i,left:n}}}class ra{constructor(e,t){this.timestamp=Date.now(),this.browserEvent=t,this.leftButton=t.button===0,this.middleButton=t.button===1,this.rightButton=t.button===2,this.buttons=t.buttons,this.target=t.target,this.detail=t.detail||1,t.type==="dblclick"&&(this.detail=2),this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,typeof t.pageX=="number"?(this.posx=t.pageX,this.posy=t.pageY):(this.posx=t.clientX+this.target.ownerDocument.body.scrollLeft+this.target.ownerDocument.documentElement.scrollLeft,this.posy=t.clientY+this.target.ownerDocument.body.scrollTop+this.target.ownerDocument.documentElement.scrollTop);const i=tX.getPositionOfChildWindowRelativeToAncestorWindow(e,t.view);this.posx-=i.left,this.posy-=i.top}preventDefault(){this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent.stopPropagation()}}class If{constructor(e,t=0,i=0){var s;this.browserEvent=e||null,this.target=e?e.target||e.targetNode||e.srcElement:null,this.deltaY=i,this.deltaX=t;let n=!1;if(tC){const r=navigator.userAgent.match(/Chrome\/(\d+)/);n=(r?parseInt(r[1]):123)<=122}if(e){const r=e,a=e,l=((s=e.view)==null?void 0:s.devicePixelRatio)||1;if(typeof r.wheelDeltaY<"u")n?this.deltaY=r.wheelDeltaY/(120*l):this.deltaY=r.wheelDeltaY/120;else if(typeof a.VERTICAL_AXIS<"u"&&a.axis===a.VERTICAL_AXIS)this.deltaY=-a.detail/3;else if(e.type==="wheel"){const c=e;c.deltaMode===c.DOM_DELTA_LINE?Hr&&!Dt?this.deltaY=-e.deltaY/3:this.deltaY=-e.deltaY:this.deltaY=-e.deltaY/40}if(typeof r.wheelDeltaX<"u")ud&&_s?this.deltaX=-(r.wheelDeltaX/120):n?this.deltaX=r.wheelDeltaX/(120*l):this.deltaX=r.wheelDeltaX/120;else if(typeof a.HORIZONTAL_AXIS<"u"&&a.axis===a.HORIZONTAL_AXIS)this.deltaX=-e.detail/3;else if(e.type==="wheel"){const c=e;c.deltaMode===c.DOM_DELTA_LINE?Hr&&!Dt?this.deltaX=-e.deltaX/3:this.deltaX=-e.deltaX:this.deltaX=-e.deltaX/40}this.deltaY===0&&this.deltaX===0&&e.wheelDelta&&(n?this.deltaY=e.wheelDelta/(120*l):this.deltaY=e.wheelDelta/120)}}preventDefault(){var e;(e=this.browserEvent)==null||e.preventDefault()}stopPropagation(){var e;(e=this.browserEvent)==null||e.stopPropagation()}}function m_(o,e){const t=this;let i=!1,n;return function(){return i||(i=!0,n=o.apply(t,arguments)),n}}var Tt;(function(o){function e(w){return w&&typeof w=="object"&&typeof w[Symbol.iterator]=="function"}o.is=e;const t=Object.freeze([]);function i(){return t}o.empty=i;function*n(w){yield w}o.single=n;function s(w){return e(w)?w:n(w)}o.wrap=s;function r(w){return w||t}o.from=r;function*a(w){for(let S=w.length-1;S>=0;S--)yield w[S]}o.reverse=a;function l(w){return!w||w[Symbol.iterator]().next().done===!0}o.isEmpty=l;function c(w){return w[Symbol.iterator]().next().value}o.first=c;function d(w,S){let x=0;for(const y of w)if(S(y,x++))return!0;return!1}o.some=d;function h(w,S){for(const x of w)if(S(x))return x}o.find=h;function*u(w,S){for(const x of w)S(x)&&(yield x)}o.filter=u;function*g(w,S){let x=0;for(const y of w)yield S(y,x++)}o.map=g;function*f(w,S){let x=0;for(const y of w)yield*S(y,x++)}o.flatMap=f;function*m(...w){for(const S of w)yield*S}o.concat=m;function _(w,S,x){let y=x;for(const L of w)y=S(y,L);return y}o.reduce=_;function*b(w,S,x=w.length){for(S<0&&(S+=w.length),x<0?x+=w.length:x>w.length&&(x=w.length);S<x;S++)yield w[S]}o.slice=b;function v(w,S=Number.POSITIVE_INFINITY){const x=[];if(S===0)return[x,w];const y=w[Symbol.iterator]();for(let L=0;L<S;L++){const k=y.next();if(k.done)return[x,o.empty()];x.push(k.value)}return[x,{[Symbol.iterator](){return y}}]}o.consume=v;async function C(w){const S=[];for await(const x of w)S.push(x);return Promise.resolve(S)}o.asyncToArray=C})(Tt||(Tt={}));function xk(o){return typeof o=="object"&&o!==null&&typeof o.dispose=="function"&&o.dispose.length===0}function gi(o){if(Tt.is(o)){const e=[];for(const t of o)if(t)try{t.dispose()}catch(i){e.push(i)}if(e.length===1)throw e[0];if(e.length>1)throw new AggregateError(e,"Encountered errors while disposing of store");return Array.isArray(o)?[]:o}else if(o)return o.dispose(),o}function ca(...o){return Ue(()=>gi(o))}function Ue(o){return{dispose:m_(()=>{o()})}}const ZL=class ZL{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{gi(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?ZL.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}deleteAndLeak(e){e&&this._toDispose.has(e)&&this._toDispose.delete(e)}};ZL.DISABLE_DISPOSED_WARNING=!1;let re=ZL;const o8=class o8{constructor(){this._store=new re,this._store}dispose(){this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}};o8.None=Object.freeze({dispose(){}});let U=o8;class qn{constructor(){this._isDisposed=!1}get value(){return this._isDisposed?void 0:this._value}set value(e){var t;this._isDisposed||e===this._value||((t=this._value)==null||t.dispose(),this._value=e)}clear(){this.value=void 0}dispose(){var e;this._isDisposed=!0,(e=this._value)==null||e.dispose(),this._value=void 0}}class iX{constructor(e){this._disposable=e,this._counter=1}acquire(){return this._counter++,this}release(){return--this._counter===0&&this._disposable.dispose(),this}}class nX{constructor(e){this.object=e}dispose(){}}class yO{constructor(){this._store=new Map,this._isDisposed=!1}dispose(){this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{gi(this._store.values())}finally{this._store.clear()}}get(e){return this._store.get(e)}set(e,t,i=!1){var n;this._isDisposed&&console.warn(new Error("Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!").stack),i||(n=this._store.get(e))==null||n.dispose(),this._store.set(e,t)}deleteAndDispose(e){var t;(t=this._store.get(e))==null||t.dispose(),this._store.delete(e)}[Symbol.iterator](){return this._store[Symbol.iterator]()}}var Jc;let Dn=(Jc=class{constructor(e){this.element=e,this.next=Jc.Undefined,this.prev=Jc.Undefined}},Jc.Undefined=new Jc(void 0),Jc);class Vs{constructor(){this._first=Dn.Undefined,this._last=Dn.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Dn.Undefined}clear(){let e=this._first;for(;e!==Dn.Undefined;){const t=e.next;e.prev=Dn.Undefined,e.next=Dn.Undefined,e=t}this._first=Dn.Undefined,this._last=Dn.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const i=new Dn(e);if(this._first===Dn.Undefined)this._first=i,this._last=i;else if(t){const s=this._last;this._last=i,i.prev=s,s.next=i}else{const s=this._first;this._first=i,i.next=s,s.prev=i}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(i))}}shift(){if(this._first!==Dn.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==Dn.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==Dn.Undefined&&e.next!==Dn.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===Dn.Undefined&&e.next===Dn.Undefined?(this._first=Dn.Undefined,this._last=Dn.Undefined):e.next===Dn.Undefined?(this._last=this._last.prev,this._last.next=Dn.Undefined):e.prev===Dn.Undefined&&(this._first=this._first.next,this._first.prev=Dn.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==Dn.Undefined;)yield e.element,e=e.next}}const sX=globalThis.performance&&typeof globalThis.performance.now=="function";class Zn{static create(e){return new Zn(e)}constructor(e){this._now=sX&&e===!1?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}}var be;(function(o){o.None=()=>U.None;function e(R,O){return h(R,()=>{},0,void 0,!0,void 0,O)}o.defer=e;function t(R){return(O,W=null,G)=>{let X=!1,ie;return ie=R(he=>{if(!X)return ie?ie.dispose():X=!0,O.call(W,he)},null,G),X&&ie.dispose(),ie}}o.once=t;function i(R,O,W){return c((G,X=null,ie)=>R(he=>G.call(X,O(he)),null,ie),W)}o.map=i;function n(R,O,W){return c((G,X=null,ie)=>R(he=>{O(he),G.call(X,he)},null,ie),W)}o.forEach=n;function s(R,O,W){return c((G,X=null,ie)=>R(he=>O(he)&&G.call(X,he),null,ie),W)}o.filter=s;function r(R){return R}o.signal=r;function a(...R){return(O,W=null,G)=>{const X=ca(...R.map(ie=>ie(he=>O.call(W,he))));return d(X,G)}}o.any=a;function l(R,O,W,G){let X=W;return i(R,ie=>(X=O(X,ie),X),G)}o.reduce=l;function c(R,O){let W;const G={onWillAddFirstListener(){W=R(X.fire,X)},onDidRemoveLastListener(){W==null||W.dispose()}},X=new V(G);return O==null||O.add(X),X.event}function d(R,O){return O instanceof Array?O.push(R):O&&O.add(R),R}function h(R,O,W=100,G=!1,X=!1,ie,he){let ae,Ce,Ne,J=0,F;const $={leakWarningThreshold:ie,onWillAddFirstListener(){ae=R(Be=>{J++,Ce=O(Ce,Be),G&&!Ne&&(q.fire(Ce),Ce=void 0),F=()=>{const Fe=Ce;Ce=void 0,Ne=void 0,(!G||J>1)&&q.fire(Fe),J=0},typeof W=="number"?(clearTimeout(Ne),Ne=setTimeout(F,W)):Ne===void 0&&(Ne=0,queueMicrotask(F))})},onWillRemoveListener(){X&&J>0&&(F==null||F())},onDidRemoveLastListener(){F=void 0,ae.dispose()}},q=new V($);return he==null||he.add(q),q.event}o.debounce=h;function u(R,O=0,W){return o.debounce(R,(G,X)=>G?(G.push(X),G):[X],O,void 0,!0,void 0,W)}o.accumulate=u;function g(R,O=(G,X)=>G===X,W){let G=!0,X;return s(R,ie=>{const he=G||!O(ie,X);return G=!1,X=ie,he},W)}o.latch=g;function f(R,O,W){return[o.filter(R,O,W),o.filter(R,G=>!O(G),W)]}o.split=f;function m(R,O=!1,W=[],G){let X=W.slice(),ie=R(Ce=>{X?X.push(Ce):ae.fire(Ce)});G&&G.add(ie);const he=()=>{X==null||X.forEach(Ce=>ae.fire(Ce)),X=null},ae=new V({onWillAddFirstListener(){ie||(ie=R(Ce=>ae.fire(Ce)),G&&G.add(ie))},onDidAddFirstListener(){X&&(O?setTimeout(he):he())},onDidRemoveLastListener(){ie&&ie.dispose(),ie=null}});return G&&G.add(ae),ae.event}o.buffer=m;function _(R,O){return(G,X,ie)=>{const he=O(new v);return R(function(ae){const Ce=he.evaluate(ae);Ce!==b&&G.call(X,Ce)},void 0,ie)}}o.chain=_;const b=Symbol("HaltChainable");class v{constructor(){this.steps=[]}map(O){return this.steps.push(O),this}forEach(O){return this.steps.push(W=>(O(W),W)),this}filter(O){return this.steps.push(W=>O(W)?W:b),this}reduce(O,W){let G=W;return this.steps.push(X=>(G=O(G,X),G)),this}latch(O=(W,G)=>W===G){let W=!0,G;return this.steps.push(X=>{const ie=W||!O(X,G);return W=!1,G=X,ie?X:b}),this}evaluate(O){for(const W of this.steps)if(O=W(O),O===b)break;return O}}function C(R,O,W=G=>G){const G=(...ae)=>he.fire(W(...ae)),X=()=>R.on(O,G),ie=()=>R.removeListener(O,G),he=new V({onWillAddFirstListener:X,onDidRemoveLastListener:ie});return he.event}o.fromNodeEventEmitter=C;function w(R,O,W=G=>G){const G=(...ae)=>he.fire(W(...ae)),X=()=>R.addEventListener(O,G),ie=()=>R.removeEve