diff --git a/36322.async.js b/36322.async.js
deleted file mode 100644
index 9f9891ba3f..0000000000
--- a/36322.async.js
+++ /dev/null
@@ -1 +0,0 @@
-(self.webpackChunk=self.webpackChunk||[]).push([[36322,4977,68314,3287],{69154:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,_typeof=__webpack_require__(31468).default;(function(){if("function"!=typeof window.GGBApplet){var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var e={},n="5.0",t={},i=null,a=!1,o=!1,r=null,s=!1,l=null,c=null,d=0;d4?parseFloat(e):5};function y(){try{return window.self!==window.top}catch(e){return!0}}function A(){return(!t.hasOwnProperty("screenshotGenerator")||!t.screenshotGenerator)&&Math.max(screen.width,screen.height)<800}e.setHTML5Codebase=function(e,n){c=e,O(e,n)},e.setJavaCodebase=e.setJavaCodebaseVersion=e.isCompiledInstalled=e.setPreCompiledScriptPath=e.setPreCompiledResourcePath=function(){},e.setHTML5CodebaseVersion=function(e,n){var t=parseFloat(e);NaN!==t&&t<5?console.log("The GeoGebra HTML5 codebase version "+t+" is deprecated. Using version latest instead."):(l=e,I(e,n))},e.getHTML5CodebaseVersion=function(){return m},e.getParameters=function(){return t},e.setFontsCSSURL=function(e){j=e},e.setGiacJSURL=function(e){},e.setJNLPFile=function(e){e},e.setJNLPBaseDir=function(e){},e.inject=function(){function n(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var i,a="auto",o=t.id,r=!1,l=0;l=5)return!0;var n=e.getAppletObject();return!(!n||"function"!=typeof n.recalculateEnvironments)&&(n.recalculateEnvironments(),!0)},e.startAnimation=function(){var n=e.getAppletObject();return!(!n||"function"!=typeof n.startAnimation)&&(n.startAnimation(),!0)},e.stopAnimation=function(){var n=e.getAppletObject();return!(!n||"function"!=typeof n.stopAnimation)&&(n.stopAnimation(),!0)},e.getAppletObject=function(){var e=void 0!==t.id?t.id:"ggbApplet";return window[e]},e.resize=function(){};var N=function(e){return e&&"false"!==e},B=function(n,t,i){b(m)<=4.2&&(i=!0);var a=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==m||ggbHTML5LoadedCodebaseIsWebSimple&&!x)&&(a=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var o=document.createElement("div");o.classList.add("appletParameters","notranslate");var r=t.width,s=t.height;if(t.disableAutoScale=void 0===t.disableAutoScale?GGBAppletUtils.isFlexibleWorksheetEditor():t.disableAutoScale,void 0!==t.width)if(b(m)<=4.4)N(t.showToolBar)&&(t.height-=7),N(t.showAlgebraInput)&&(t.height-=37),t.width<605&&N(t.showToolBar)&&(t.width=605,r=605);else{var d=100;(N(t.showToolBar)||N(t.showMenuBar))&&(t.hasOwnProperty("customToolBar")&&(t.customToolbar=t.customToolBar),d=N(t.showMenuBar)?245:155),r=5?(t.appletOnLoad=function(e){var t=n.querySelector(".ggb_preview");t&&t.parentNode.removeChild(t),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(v),window.GGBT_wsf_view&&$(window).trigger("resize"),h(e)},w||v.appendChild(y)):o.appendChild(y),v.appendChild(o),w||n.appendChild(v),setTimeout((function(){e.resize()}),1)}function A(e,n){n&&"function"==typeof n.appletOnLoad&&"function"==typeof renderGGBElement?renderGGBElement(e,n.appletOnLoad):renderGGBElement(e),z("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",n)}function C(e,n){"undefined"==typeof renderGGBElement?(null===html5AppletsToProcess&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:e,params:n}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,null!==html5AppletsToProcess&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach((function(e){A(e.article,e.params)})),html5AppletsToProcess=null)},b(m)<5&&(e.className+=" geogebraweb")):A(e,n)}if(a){scriptLoadStarted=!0;for(var k=0;k0?(a.remove(),s.attr("id","fullscreencontent").show(),jQuery(o).append(s),window.dispatchEvent(new Event("resize"))):B(a,n,!1),window.GGBT_wsf_view.launchFullScreen(o)}else f=i,B(e,n,!1);if(!window.GGBT_wsf_view)for(r=0;re/4*3&&(s=e/4*3),l=s/5.8,r.setAttribute("src",w),r.setAttribute("width",s),r.setAttribute("height",l);var d=(e-s)/2,u=(n-l)/2;r.style.left=d+"px",r.style.top=u+"px",a.appendChild(r)}return a.appendChild(c),a},L=function(e){return"html5"===(e=e.toLowerCase())||"screenshot"===e?e:"html5"},E=["web","webSimple","web3d","tablet","tablet3d","phone"],I=function(e,n){if(m=e,n)O(m,!0);else{var o,r,s=!a;if(s){var l=b(m);!isNaN(l)&&l<4.4&&(s=!1)}o="http"===window.location.protocol.substr(0,4)?window.location.protocol:"http:";var c=m.indexOf("//");for(var d in r=c>0?m:0===c?o+m:"https://www.geogebra.org/apps/5.2.814.0/",E)if(m.slice(-1*E[d].length)===E[d]||m.slice(-1*(E[d].length+1))===E[d]+"/")return void O(r,!1);GGBAppletUtils.isFlexibleWorksheetEditor()||!s||i.is3D||i.AV||i.SV||i.CV||i.EV2||i.CP||i.PC||i.DA||i.FI||i.PV||N(t.showToolBar)||N(t.showMenuBar)||N(t.showAlgebraInput)||N(t.enableRightClick)||t.appName&&"classic"!=t.appName?r+="web3d/":r+="webSimple/",O(r,!1)}},O=function(e,n){if(e.requirejs)p=e;else{"/"!==e.slice(-1)&&(e+="/"),p=e,null===n&&(n=-1===e.indexOf("http")),h=n,g="web.nocache.js",x=!1;var t=p.split("/");t.length>1&&(n||"webSimple"!==t[t.length-2]?E.indexOf(t[t.length-2])>=0&&(g=t[t.length-2]+".nocache.js"):(g="webSimple.nocache.js",x=!0)),t=e.split("/"),"test"===(m=t[t.length-3]).substr(0,4)?m=m.substr(4,1)+"."+m.substr(5,1):"war"!==m.substr(0,3)&&"beta"!==m.substr(0,4)||(m="5.0");var i=parseFloat(m);NaN!==i&&i<5&&e.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+i+" is deprecated. Using version latest instead."),I("5.0",n))}},z=function(e,n){window.console&&window.console.log&&(!n||void 0===n.showLogging||n.showLogging&&"false"!==n.showLogging)&&console.log(e)};function R(){var e=n;null!==l?e=l:parseFloat(e)<5&&(e="5.0"),I(e,!1),null!==c&&O(c,h),s=!0}return void 0!==t.material_id?C(R):R(),e},GGBAppletUtils=function(){"use strict";function e(){return void 0!==window.GGBT_wsf_edit}function n(e,n){1!=n?(e.style.transformOrigin="0% 0% 0px",e.style.webkitTransformOrigin="0% 0% 0px",e.style.transform="scale("+n+","+n+")",e.style.webkitTransform="scale("+n+","+n+")",e.style.maxWidth="initial",null!==e.querySelector(".ggb_preview")&&(e.querySelector(".ggb_preview").style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[0]&&(e.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[1]&&(e.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(e.style.transform="none",e.style.webkitTransform="none")}function t(e,n,t,i,a){if(e.isScreenshoGenerator)return 1;var o,r=void 0!==i&&i,s=null!=e.noScaleMargin&&e.noScaleMargin,l=(o=e.autoHeight)&&"false"!==o,c=function(e,n,t,i,a,o){var r=null;if(null!=o&&""!=o)for(var s=e.parentNode;null!=s;){if((" "+s.className+" ").indexOf(" "+o+" ")>-1){r=s;break}s=s.parentNode}var l=0,c=0,d=0,u=0,p=0,h=0,f=0;if(r)l=r.offsetWidth,c=Math.max(i?r.offsetWidth:0,r.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(l=Math.min(window.innerWidth,document.documentElement.clientWidth),c=Math.min(window.innerHeight,document.documentElement.clientHeight),d=l):(l=window.innerWidth,c=window.innerHeight,d=window.innerWidth),e){var m=e.getBoundingClientRect();m.left>0&&m.left<=l&&(void 0===a||!a)&&("rtl"===document.dir?(p=l-m.width-m.left,h=d<=480?10:30):(h=m.left,p=d<=480?10:30),u=h+p)}e&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(e.getBoundingClientRect(),"closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(u=40,f=0):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(u=0,f=40))}return e&&((void 0===t||!t)&&n>0&&n+u1&&(r=!0)),n&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(r=!0),e.hasOwnProperty("disableAutoScale")&&e.disableAutoScale?o:(a=t(e,n,r,i,e.scaleContainerClass),!r||e.hasOwnProperty("scale")&&1!==o?Math.min(o,a):a)}function a(e){var n=Math.min(window.innerWidth,document.documentElement.clientWidth),t=Math.min(window.innerHeight,document.documentElement.clientHeight),i=e.getBoundingClientRect(),a=(n-i.width)/2,o=(t-i.height)/2;o<0&&(o=0),e.style.position="relative","closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(e.style.left=a<40?"40px":a+"px",e.style.top=o+"px"):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(e.style.top=o<40?"40px":o+"px",e.style.left=a+"px")}return{responsiveResize:function(t,o){var r=t.querySelector(".appletParameters");if(r){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if(o.id!==r.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(t)}if(r.parentElement&&/fullscreen/.test(r.parentElement.className))return;var s=i(o,t);e()&&r.setAttribute("data-param-scale",s);for(var l=null,c=0;c",W="",X="",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var e=n.location.search;return-1!=e.indexOf(J)||-1!=e.indexOf(K)}function q(e,n){}q(H,I),webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{},t;function u(){return v(),t}function v(){if(!t){var e=o.createElement(Q);if(e.id=L,e.style.cssText=R+S,e.tabIndex=-1,o.body.appendChild(e),t=e.contentWindow.document,-1==navigator.userAgent.indexOf(T)){t.open();var n=document.compatMode==U?V:W;t.write(n+X),t.close()}}}function w(e){q(cb,eb),function(e){function n(){return _typeof(o.readyState)==Y?_typeof(o.body)!=Y&&null!=o.body:/loaded|complete/.test(o.readyState)}var t=n();if(t)e();else{o.addEventListener&&o.addEventListener(Z,a,!1);var i=setInterval((function(){a()}),$)}function a(){if(!t){if(!n())return;t=!0,e(),o.removeEventListener&&o.removeEventListener(Z,a,!1),i&&clearInterval(i)}}}((function(){var n,t,i,a;n=e,t=u(),i=t.body,(a=t.createElement(_)).language=ab,a.crossOrigin=W,a.src=n,webModule.__errFn&&(a.onerror=function(){webModule.__errFn(L,new Error(bb+n))}),i.appendChild(a),q(cb,db)}))}function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(e){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(e){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(e){var n=c[e];return null==n?null:n},r=d,webModule.__errFn=e}function B(){function e(e){var n=e.lastIndexOf(rb);-1==n&&(n=e.length);var t=e.indexOf(sb);-1==t&&(t=e.length);var i=e.lastIndexOf(tb,Math.min(t,n));return i>=O?e.substring(O,i+P):W}var n,t=null!=(n=__gwt_getMetaProperty(wb))?n:W;return t==W&&(t=function(){for(var n=o.getElementsByTagName(_),t=O;tO?e[e.length-P].href:W}()),t==W&&function(){var e=o.location;return e.href==e.protocol+zb+e.host+e.pathname+e.search+e.hash}()&&(t=e(o.location.href)),t=function(n){if(n.match(/^\w+:\/\//));else{var t=o.createElement(ub);t.src=n+vb,n=e(t.src)}return n}(t),t}function C(e){return e.match(/^\//)||e.match(/^[a-zA-Z]+:\/\//)?e:webModule.__moduleBase+e}function D(){var e,t=O,i=[],a=[];function o(e){var n=a[e](),t=i[e];if(n in t)return n;var o=[];for(var s in t)o[t[s]]=s;throw r&&r(e,o,n),null}if(__gwt_isKnownPropertyValue=function(e,n){return n in i[e]},webModule.__getPropMap=function(){var e={};for(var n in i)i.hasOwnProperty(n)&&(e[n]=o(n));return e},webModule.__computePropValue=o,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);try{var s=(e=Cb).indexOf(Db);-1!=s&&(t=parseInt(e.substring(s+P),$),e=e.substring(O,s))}catch(e){}return webModule.__softPermutationId=t,C(e+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}s[L]={moduleName:L},webModule.__moduleStartupDone=function(e){var n=s[L].bindings;s[L].bindings=function(){for(var t=n?n():{},i=e[webModule.__softPermutationId],a=O;a0){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:"",t=[],i=0;it)){e.next=7;break}return x.ZP.info("文件超过".concat(t/1024/1024/1024,"GB,不符合上传要求")),e.abrupt("return",!1);case 7:return u.push({name:n.name,file:n}),h(a()(u)),o.onChange(u),e.abrupt("return",!1);case 11:case"end":return e.stop()}}),e)}))),function(e){return n.apply(this,arguments)})},Z=function(){var e=f()(p()().mark((function e(n,t){var i,r,s,l,c,d,f,m,g,w;return p()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.file_name=n.name,f=n.name,e.next=4,(0,v.ZP)("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});case 4:if((m=e.sent).data=JSON.parse(B(m.data)),0===(null==m?void 0:m.status)){e.next=12;break}return u[u.findIndex((function(e){return e.name===f}))].status="error",u[u.findIndex((function(e){return e.name===f}))].file.status="error",o.onChange(u),x.ZP.warning("上传失败,请重新尝试"),e.abrupt("return");case 12:return j=new(C())({endpoint:null==m||null===(i=m.data)||void 0===i?void 0:i.end_point,region:null==m||null===(r=m.data)||void 0===r?void 0:r.region,accessKeyId:null==m||null===(s=m.data)||void 0===s?void 0:s.access_key_id,accessKeySecret:null==m||null===(l=m.data)||void 0===l?void 0:l.access_key_secret,bucket:null==m||null===(c=m.data)||void 0===c?void 0:c.bucket,stsToken:null==m||null===(d=m.data)||void 0===d?void 0:d.security_token}),console.log(n,"file"),y(j),(g=n.name.split(".")).pop(),w=t.realFileName?g.join("."):(0,b.Z)(),e.abrupt("return",new Promise((function(e,i){try{var r;j.multipartUpload("".concat(o.identifier,"/").concat(w).concat(f.indexOf(".")>-1?"."+f.split(".").pop():""),new Blob([n.file],{type:n.file.type}),{timeout:36e5,partSize:1002400,progress:function(e,n,t){try{console.log("进度",e,n,t);var i=u.findIndex((function(e){return e.name===f}));u[i].file.percent=100*e,u[i].tempCheckpoint=n,h(a()(u))}catch(e){}},checkpoint:u[u.findIndex((function(e){return e.name===f}))].tempCheckpoint,callback:{customValue:{id:f+""},url:null==m||null===(r=m.data)||void 0===r?void 0:r.callback_url,host:null==m?void 0:m.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,v.rz)(t)}}).then((function(t){var i,a=u.findIndex((function(e){return e.name===f})),r="done";if(0===(null===(i=t.data)||void 0===i?void 0:i.status)){var s;n.response=null===(s=t.data)||void 0===s?void 0:s.data;var l=u.findIndex((function(e){return e.name===f}));u[l].status="done",u[l].file.status="done"}else{var c;x.ZP.warning(null===(c=t.data)||void 0===c?void 0:c.message),r="error"}u[a].status=r,u[a].file.status=r,o.onChange(u),e(null==t?void 0:t.data)})).catch((function(e){u[u.findIndex((function(e){return e.name===f}))].status="error",u[u.findIndex((function(e){return e.name===f}))].file.status="error",x.ZP.warning("上传失败,请重新尝试"),h(a()(u)),o.onChange(u),i(e),console.log("err:",e)}))}catch(e){}})));case 19:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}();return(0,m.useEffect)((function(){u.every((function(e){return"done"===e||"error"===e}))&&o.onComplete(u)}),[u]),(0,m.useEffect)((function(){var e;i&&(null===(e=j)||void 0===e||e.cancel())}),[i]),(0,m.useEffect)((function(){o.uploading&&u.map(function(){var e=f()(p()().mark((function e(n){var a;return p()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.status&&"error"!==n.status||i){e.next=6;break}return n.status="uploading",n.file.status="uploading",e.next=5,Z(n,{login:null==t||null===(a=t.userInfo)||void 0===a?void 0:a.login,container_type:o.container_type,container_id:o.container_id,description:o.description,realFileName:o.realFileName});case 5:e.sent;case 6:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}())}),[o.uploading]),(0,k.jsx)(N,d()(d()({},A),{},{height:o.height,className:o.className,children:(0,k.jsx)("p",{className:"ant-upload-hint",children:o.text||"拖拽文件或者点击上传"})}))}))},41753:function(e,n,t){"use strict";t.d(n,{h:function(){return x}});var i=t(82242),a=t.n(i),o=t(79800),r=t.n(o),s=t(59301),l=t(57809),c=t(78241),d=t(3113),u=t(89780),p=t.n(u),h=(t(13071),t(59478),t(37712)),f=l.default.Option,m={labelCol:{span:4},wrapperCol:{span:20}},g={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};function x(e){var n=e.value,t=e.onChange,i=e.mode,o=e.options,l=void 0===o?{}:o,c=(0,s.useRef)(),d=(0,s.useState)(),u=r()(d,2),f=u[0],m=u[1];return(0,s.useEffect)((function(){if(f){var e=function(e){var n=e.getValue();t&&t(n)};return f.on("change",e),function(){f.off("change",e)}}}),[f,t]),(0,s.useEffect)((function(){f&&f.setOption("mode",i)}),[f,i]),(0,s.useEffect)((function(){f&&(n===f.getValue()&&""!==n||setTimeout((function(){f.setValue(n||"")}),300))}),[f,n]),(0,s.useEffect)((function(){if(c.current&&!f){var e=p().fromTextArea(c.current,a()({mode:i,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},l));m(e)}}),[c.current,f]),(0,h.jsx)("div",{className:"my-codemirror-container",children:(0,h.jsx)("textarea",{ref:c})})}n.Z=function(e){var n=e.callback,t=e.onCancel,i=(0,s.useState)("python"),o=r()(i,2),u=o[0],p=o[1];return(0,h.jsxs)(c.Z,a()(a()({},m),{},{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:function(e){n(e)},style:{width:500},children:[(0,h.jsx)(c.Z.Item,{label:"代码语言",name:"language",children:(0,h.jsx)(l.default,{getPopupContainer:function(e){return e.parentNode},onChange:function(e){p(g[e][1])},children:Object.keys(g).map((function(e){return(0,h.jsx)(f,{value:e,children:g[e][0]},e)}))})}),(0,h.jsx)(c.Z.Item,{label:"代码内容",name:"content",rules:[{required:!0,message:"请输入代码内容"}],children:(0,h.jsx)(x,{mode:u})}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(d.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(d.ZP,{type:"ghost",onClick:t,children:"取消"})]})]}))}},11243:function(e,n,t){"use strict";t.d(n,{Z:function(){return Ne}});var i=t(91232),a=t.n(i),o=t(79800),r=t.n(o),s=t(85573),l=t.n(s),c=t(59301),d=t(89780),u=t.n(d),p=t(76374),h=(t(13071),t(6313),t(25717),t(99498),t(25419),t(67549),t(11829)),f=t(37712),m=function(e){var n=e.value,t=void 0===n?"":n,i=(e.className,e.showTextOnly,e.showLines,e.style,(0,c.useMemo)((function(){return""}),[t]));return(0,f.jsx)(f.Fragment,{children:(0,f.jsx)("div",{dangerouslySetInnerHTML:{__html:i}})})},g=t(82242),x=t.n(g),v=[{title:"粗体",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"斜体",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"无序列表",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"有序列表",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"行内代码",icon:"md-iconfont icon-code",actionName:"code"},{title:"代码块(多语言风格)",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"链接",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"行内公式",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"数学图像",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"多行公式",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"添加图片",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"插入画图",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"插入流程图",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"表格",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"换行",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"清空",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function w(e){var n=e.onActionCallback,t=e.title,i=e.icon,a=e.actionName,o=e.className,r=void 0===o?"":o,s=e.children;return(0,f.jsxs)("a",{title:t,className:r,onClick:function(){n(a)},children:[(0,f.jsx)("i",{className:"".concat(i)}),s]})}var j=function(e){var n=e.watch,t=e.showNullButton,i=e.showNullProgramButton,a=e.onActionCallback,o=e.fullScreen,r=e.insertTemp,s=e.hidetoolBar,l=e.extraUse,c=[].concat(v,[{title:"".concat(n?"关闭实时预览":"开启实时预览"),icon:"".concat(n?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"),actionName:"trigger-watch"}]);return(0,f.jsxs)("ul",{className:"markdown-toolbar-container",children:[!s&&c.map((function(e,n){return(0,f.jsx)("li",{children:e.actionName?(0,f.jsx)(w,x()(x()({},e),{},{onActionCallback:a})):(0,f.jsx)("span",{className:"v-line"})},n)})),t?(0,f.jsx)("li",{children:(0,f.jsx)(w,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-null-ch",onActionCallback:a,children:(0,f.jsx)("span",{className:"fill-tip",children:"点击插入\b填空项"})})}):null,i?(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("li",{children:(0,f.jsx)(w,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-signal",onActionCallback:a,children:(0,f.jsx)("span",{className:"fill-tip",children:"+单行填空项"})})}),(0,f.jsx)("li",{children:(0,f.jsx)(w,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"增加填空",actionName:"add-multiple",onActionCallback:a,children:(0,f.jsx)("span",{className:"fill-tip",children:"+多行填空项"})})})]}):null,r&&(0,f.jsx)("li",{children:(0,f.jsx)(w,{icon:"md-iconfont icon-edit",className:"btn-null",title:"插入模板",actionName:"inster-template-".concat(r),onActionCallback:a,children:(0,f.jsx)("span",{className:"fill-tip",children:"插入模板"})})}),l&&(0,f.jsx)("li",{children:l}),(0,f.jsx)("li",{className:"btn-full-screen",children:(0,f.jsx)(w,{icon:"".concat(o?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"),title:o?"关闭全屏":"开启全屏",actionName:"trigger-full-screen",onActionCallback:a})})]})},b=t(71826),y=t(78241),A=t(98135),C=t(3113),k={labelCol:{span:4},wrapperCol:{span:20}},S=function(e){var n=e.callback,t=e.onCancel;return(0,f.jsxs)(y.Z,x()(x()({},k),{},{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:function(e){n(e)},style:{width:500},children:[(0,f.jsx)(y.Z.Item,{label:"链接地址",name:"link",rules:[{required:!0,message:"请输入链接地址"}],children:(0,f.jsx)(A.Z,{})}),(0,f.jsx)(y.Z.Item,{label:"链接标题",name:"title",rules:[{required:!0,message:"请输入链接标题"}],children:(0,f.jsx)(A.Z,{})}),(0,f.jsxs)("div",{className:"flex-container flex-end",children:[(0,f.jsx)(C.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,f.jsx)(C.ZP,{type:"ghost",onClick:t,children:"取消"})]})]}))},N=t(41753),B=t(8591),Z=t(50698),M=y.Z.useForm,P={width:280,marginRight:10},T={labelCol:{span:5},wrapperCol:{span:19}},D=function(e){var n=e.callback,t=e.onCancel,i=M(),a=r()(i,1)[0],o=(0,c.useRef)();function s(e,n){-1!==e.status?a.setFieldsValue({src:"/api/attachments/".concat(e.id),type:n.type}):B.ZP.error(e.message)}return(0,f.jsxs)(y.Z,x()(x()({form:a},T),{},{className:"upload-image-panel",onFinish:function(e){n(e,o.current)},style:{width:470,overflow:"hidden"},children:[(0,f.jsx)(y.Z.Item,{label:"图片地址",required:!0,children:(0,f.jsxs)("div",{className:"flex-container",children:[(0,f.jsx)(y.Z.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"请输入图片地址"}],children:(0,f.jsx)(A.Z,{style:P})}),(0,f.jsx)(L,{onFileChange:function(e){var n=e.target.files[0];o.current=n,E(n,s)}})]})}),(0,f.jsx)(y.Z.Item,{label:"图片描述",name:"alt",children:(0,f.jsx)(A.Z,{style:{width:264}})}),(0,f.jsxs)(y.Z.Item,{style:{textAlign:"right"},children:[(0,f.jsx)(C.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,f.jsx)(C.ZP,{type:"default",onClick:t,children:"取消"})]})]}))};function L(e){var n=e.onFileChange;return(0,f.jsxs)("label",{className:"upload-button",style:{cursor:"pointer"},children:["本地上传",(0,f.jsx)("input",{type:"file",onChange:n})]})}function E(e,n){if(!e)throw new String("没有文件");var t=new FormData;t.append("editormd-image-file",e),t.append("file_param_name","editormd-image-file"),t.append("byxhr","true");var i=new window.XMLHttpRequest;i.withCredentials=!0,i.addEventListener("load",(function(t){n(JSON.parse(t.target.responseText),e)}),!1),i.addEventListener("error",(function(e){console.error(e)}),!1),i.open("POST","".concat(Z.KI,"/api/attachments.json")),i.send(t)}var I=t(95237),O=t(47543),z=function(e){var n=e.callback,t=e.onCancel,i=document.createElement("canvas"),a=i.getContext("2d");i.width=1e3,i.height=800,a.fillStyle="#ffffff",a.fillRect(0,0,i.width,i.height);var o=i.toDataURL("image/png");return(0,f.jsx)(I.Z,{style:{height:"100vh"},children:(0,f.jsx)(O.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:o,visible:!0,title:String(Date.now())},onOk:function(e){n({src:e.url})},onClose:t})})},R=t(7557),G=t.n(R),W=t(41498),H=t.n(W),U=t(37205),F=t.n(U),J=t(12378);function Y(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Y,go.CommandHandler),Y.prototype.canAlignSelection=function(){var e=this.diagram;return null!==e&&!e.isReadOnly&&!e.isModelReadOnly&&!(e.selection.count<2)},Y.prototype.alignLeft=function(){var e=this.diagram;e.startTransaction("aligning left");var n=1/0;e.selection.each((function(e){e instanceof go.Link||(n=Math.min(e.position.x,n))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(n,e.position.y))})),e.commitTransaction("aligning left")},Y.prototype.alignRight=function(){var e=this.diagram;e.startTransaction("aligning right");var n=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var t=e.actualBounds.x+e.actualBounds.width;n=Math.max(t,n)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(n-e.actualBounds.width,e.position.y))})),e.commitTransaction("aligning right")},Y.prototype.alignTop=function(){var e=this.diagram;e.startTransaction("alignTop");var n=1/0;e.selection.each((function(e){e instanceof go.Link||(n=Math.min(e.position.y,n))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.position.x,n))})),e.commitTransaction("alignTop")},Y.prototype.alignBottom=function(){var e=this.diagram;e.startTransaction("aligning bottom");var n=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var t=e.actualBounds.y+e.actualBounds.height;n=Math.max(t,n)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,n-e.actualBounds.height))})),e.commitTransaction("aligning bottom")},Y.prototype.alignCenterX=function(){var e=this.diagram,n=e.selection.first();if(n){e.startTransaction("aligning Center X");var t=n.actualBounds.x+n.actualBounds.width/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t-e.actualBounds.width/2,e.actualBounds.y))})),e.commitTransaction("aligning Center X")}},Y.prototype.alignCenterY=function(){var e=this.diagram,n=e.selection.first();if(n){e.startTransaction("aligning Center Y");var t=n.actualBounds.y+n.actualBounds.height/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,t-e.actualBounds.height/2))})),e.commitTransaction("aligning Center Y")}},Y.prototype.alignColumn=function(e){var n=this.diagram;n.startTransaction("align Column"),void 0===e&&(e=0),e=parseFloat(e);var t=new Array;n.selection.each((function(e){e instanceof go.Link||t.push(e)}));for(var i=0;i0){for(var i=r.elt(s-1);null!==i&&i.isTreeExpanded&&!i.isTreeLeaf;){i=this._sortTreeChildrenByY(i).last()}null!==i&&e.select(i)}else e.select(o)}else if("Down"===t.key){var a;if(n.isTreeExpanded&&!n.isTreeLeaf)null!==(a=this._sortTreeChildrenByY(n).first())&&e.select(a);else for(;null!==n;){var o,r,s;if(null===(o=n.findTreeParentNode()))break;if((s=(r=this._sortTreeChildrenByY(o)).indexOf(n))i.y?1:t.xi.x?1:0})),n},Y.prototype.copyToClipboard=function(e){go.CommandHandler.prototype.copyToClipboard.call(this,e),this._lastPasteOffset.set(this.pasteOffset)},Y.prototype.pasteFromClipboard=function(){var e=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(e,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),e},Object.defineProperty(Y.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(e){if("move"!==e&&"select"!==e&&"scroll"!==e&&"tree"!==e&&"none"!==e)throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+e);this._arrowKeyBehavior=e}}),Object.defineProperty(Y.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(e){if(!(e instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+e);this._pasteOffset.set(e)}});var V=Y,K=(t(12250),t(85160)),q=t(43418),Q=t(43604),X=t(82420),_="myPaletteDiv___Xjz2I",$="maxH60___Pd4Re";window.go=J;var ee=function(e){var n=e.onCancel,t=e.callback,i=(0,c.useRef)(),a=(0,c.useRef)(),o=(0,c.useRef)(),s=(0,c.useRef)(!1),l=(0,c.useRef)(!1),d=(0,c.useState)(0),u=r()(d,2),p=u[0],h=u[1],m=function(){var e=H()(G()().mark((function e(){var n,a;return G()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=i.current.makeImage(),e.next=3,(0,X.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:n.src}});case 3:a=e.sent,t({src:a.url});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,c.useEffect)((function(){h(p+1)}),[]),(0,f.jsx)("div",{ref:l,className:s.current?"".concat($," body-overflow-initial"):"body-overflow-initial",children:(0,f.jsx)(q.Z,{width:1200,icon:null,footer:null,closable:!0,visible:!!p,destroyOnClose:!0,maskClosable:!1,getContainer:l.current,rootClassName:"zIndex-9999",title:(0,f.jsxs)(I.Z,{children:[(0,f.jsx)(Q.Z,{flex:1,children:"插入流程图"}),(0,f.jsx)(Q.Z,{onClick:function(){s.current=!s.current,h(p+1)},children:(0,f.jsx)("span",{className:"current c-blue mr30",style:{fontWeight:400},children:"展开/收起"})})]}),onCancel:n,children:(0,f.jsxs)("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},children:[(0,f.jsxs)("div",{style:{display:"flex",height:"100%"},children:[(0,f.jsxs)("div",{style:{width:"300px",height:"100%"},children:[(0,f.jsx)("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"},children:"图形库"}),(0,f.jsx)("div",{style:{height:"calc(100% - 50px)"},className:_,ref:o})]}),(0,f.jsxs)("div",{style:{flex:1,position:"relative"},children:[(0,f.jsx)(K.FI,{initDiagram:function(){var e=J.GraphObject.make,n="#ff3333",t="#3358ff",r="#25ad23",s="#d533ff",l="#7d33ff",c="#ff6233",d="#ffffff",u="#000000",p="#fffcd5",h="#d5ebff",f="#f2dfe0",m="#a5d2fa",g="#cccccc",x="#b3e6b3",v="#fcbbbd";function w(n,t){var i=function(e,t){e.handled=!0,e.diagram.model.commit((function(i){var a=t.part.adornedPart,o=(new J.Point).setRectSpot(a.actualBounds,n);o.subtract(a.location),o.scale(2,2),o.x+=130*Math.sign(o.x),o.y+=130*Math.sign(o.y),o.add(a.location),o.snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize);var r=i.copyNodeData(a.data);i.setGroupKeyForNodeData(r,i.getGroupKeyForNodeData(a.data)),i.addNodeData(r);var s={from:a.key,to:i.getKeyForNodeData(r)};i.addLinkData(s);var l=e.diagram.findNodeForData(r);l.location=o,e.diagram.select(l),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)}))};return e(J.Shape,{figure:t,alignment:n,alignmentFocus:n.opposite(),width:n.equals(J.Spot.Top)||n.equals(J.Spot.Bottom)?25:18,height:n.equals(J.Spot.Top)||n.equals(J.Spot.Bottom)?18:25,fill:"orange",stroke:d,strokeWidth:4,mouseEnter:function(e,n){return n.fill="dodgerblue"},mouseLeave:function(e,n){return n.fill="orange"},isActionable:!0,click:i,contextClick:i})}function j(n){return e(J.Shape,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:function(e,n){return n.fill="dodgerblue"},mouseLeave:function(e,n){return n.fill="orange"},click:function(e,n){e.diagram.commandHandler.showContextMenu(n.part.adornedPart)}},n||{})}function b(e,n){return function(t,i){t.handled=!0,t.diagram.model.commit((function(t){t.set(i.part.adornedPart.data,e,n)}))}}function y(n,t){return t||(t="color"),e(J.Shape,{width:16,height:16,stroke:"lightgray",fill:n,margin:1,background:"transparent",mouseEnter:function(e,n){return n.stroke="dodgerblue"},mouseLeave:function(e,n){return n.stroke="lightgray"},click:b(t,n),contextClick:b(t,n)})}function A(){return[e("ContextMenuButton",e(J.Panel,"Horizontal",y(d,"fill"),y(p,"fill"),y(h,"fill"),y(f,"fill"))),e("ContextMenuButton",e(J.Panel,"Horizontal",y(g,"fill"),y(x,"fill"),y(m,"fill"),y(v,"fill")))]}function C(){return[e("ContextMenuButton",e(J.Panel,"Horizontal",y(u),y(r),y(t),y(n))),e("ContextMenuButton",e(J.Panel,"Horizontal",y(d),y(s),y(l),y(c)))]}function k(n,t){return t||(t="thickness"),e(J.Shape,"LineH",{width:16,height:16,strokeWidth:n,margin:1,background:"transparent",mouseEnter:function(e,n){return n.background="dodgerblue"},mouseLeave:function(e,n){return n.background="transparent"},click:b(t,n),contextClick:b(t,n)})}function S(n,t){return t||(t="dash"),e(J.Shape,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:n,margin:1,background:"transparent",mouseEnter:function(e,n){return n.background="dodgerblue"},mouseLeave:function(e,n){return n.background="transparent"},click:b(t,n),contextClick:b(t,n)})}function N(){return[e("ContextMenuButton",e(J.Panel,"Horizontal",k(1),k(2),k(3),k(4))),e("ContextMenuButton",e(J.Panel,"Horizontal",S(null),S([2,4]),S([4,4])))]}function B(n,t){return t||(t="figure"),e(J.Shape,{width:32,height:32,scale:.5,fill:"lightgray",figure:n,margin:1,background:"transparent",mouseEnter:function(e,n){return n.fill="dodgerblue"},mouseLeave:function(e,n){return n.fill="lightgray"},click:b(t,n),contextClick:b(t,n)})}function Z(n){return e(J.Shape,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(n+4).toString()+" H3"})}function M(n){var t="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return 0===n?t="M0 0 M16 16 M0 8 L16 8":2===n&&(t="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),e(J.Shape,{geometryString:t,margin:2,background:"transparent",mouseEnter:function(e,n){return n.background="dodgerblue"},mouseLeave:function(e,n){return n.background="transparent"},click:b("dir",n),contextClick:b("dir",n)})}function P(n){var t=function(e,t){e.handled=!0,e.diagram.model.commit((function(e){var i=t.part.adornedPart;e.set(i.data,n?"toSpot":"fromSpot",J.Spot.stringify(J.Spot.AllSides)),(n?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(J.Shape,{width:12,height:12,fill:"transparent",mouseEnter:function(e,n){return n.background="dodgerblue"},mouseLeave:function(e,n){return n.background="transparent"},click:t,contextClick:t})}function T(n,t){var i=0,a=J.Spot.RightSide;n.equals(J.Spot.Top)?(i=270,a=J.Spot.TopSide):n.equals(J.Spot.Left)?(i=180,a=J.Spot.LeftSide):n.equals(J.Spot.Bottom)&&(i=90,a=J.Spot.BottomSide),t||(i-=180);var o=function(e,n){e.handled=!0,e.diagram.model.commit((function(e){var i=n.part.adornedPart;e.set(i.data,t?"toSpot":"fromSpot",J.Spot.stringify(a)),(t?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(J.Shape,{alignment:n,alignmentFocus:n.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:i,background:"transparent",mouseEnter:function(e,n){return n.background="dodgerblue"},mouseLeave:function(e,n){return n.background="transparent"},click:o,contextClick:o})}return i.current=new J.Diagram(a.current,{padding:20,grid:e(J.Panel,"Grid",e(J.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(J.Shape,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:function(e){e.diagram.commandHandler.addTopLevelParts(e.diagram.selection,!0)||e.diagram.currentTool.doCancel()},commandHandler:e(V),"clickCreatingTool.archetypeNodeData":{text:"未命名",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:function(e){var n=e.subject;n.location=n.location.copy().snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:function(e){e.subject;setTimeout((function(){e.diagram.commandHandler.editTextBlock()}))},LinkRelinked:function(e){e.parameter.part.invalidateConnectedLinks();var n=e.subject;e.diagram.toolManager.linkingTool.isForwards?n.toNode.invalidateConnectedLinks():n.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),i.current.nodeTemplate=e(J.Node,"Auto",{locationSpot:J.Spot.Center,locationObjectName:"SHAPE",desiredSize:new J.Size(120,60),minSize:new J.Size(40,40),resizable:!0,resizeCellSize:new J.Size(10,10),rotatable:!0},new J.Binding("location","loc",J.Point.parse).makeTwoWay(J.Point.stringify),new J.Binding("desiredSize","size",J.Size.parse).makeTwoWay(J.Size.stringify),e(J.Shape,{name:"SHAPE",fill:d,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:J.Spot.AllSides,toSpot:J.Spot.AllSides},new J.Binding("figure"),new J.Binding("fill"),new J.Binding("stroke","borderColor"),new J.Binding("strokeWidth","thickness"),new J.Binding("strokeDashArray","dash")),e(J.Shape,{width:100,height:20,strokeWidth:0,fill:"transparent"}),e(J.TextBlock,{margin:1,textAlign:"center",overflow:J.TextBlock.OverflowEllipsis,editable:!0},new J.Binding("text").makeTwoWay(),new J.Binding("stroke","color"))),i.current.nodeTemplate.toolTip=e("ToolTip",e(J.Panel,"Vertical",{maxSize:new J.Size(200,NaN)},e(J.TextBlock,{font:"bold 10pt sans-serif",textAlign:"center"},new J.Binding("text")),e(J.TextBlock,{font:"10pt sans-serif",textAlign:"center"},new J.Binding("text","details")))),i.current.nodeTemplate.selectionAdornmentTemplate=e(J.Adornment,"Spot",e(J.Placeholder,{padding:10}),w(J.Spot.Top,"TriangleUp"),w(J.Spot.Left,"TriangleLeft"),w(J.Spot.Right,"TriangleRight"),w(J.Spot.Bottom,"TriangleDown"),j({alignment:new J.Spot(.75,0)})),i.current.nodeTemplate.contextMenu=e("ContextMenu",e("ContextMenuButton",e(J.Panel,"Horizontal",B("Rectangle"),B("RoundedRectangle"),B("Ellipse"),B("Diamond"))),e("ContextMenuButton",e(J.Panel,"Horizontal",B("Parallelogram2"),B("ManualOperation"),B("Procedure"),B("Cylinder1"))),e("ContextMenuButton",e(J.Panel,"Horizontal",B("Terminator"),B("CreateRequest"),B("Document"),B("TriangleDown"))),A(),C(),N()),i.current.groupTemplate=e(J.Group,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:J.Spot.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:function(e,n){n.addMembers(n.diagram.selection,!0)||n.diagram.currentTool.doCancel()},avoidable:!1},new J.Binding("location","loc",J.Point.parse).makeTwoWay(J.Point.stringify),e(J.Panel,"Auto",{name:"BODY"},e(J.Shape,{parameter1:10,fill:d,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:J.Spot.AllSides,toSpot:J.Spot.AllSides},new J.Binding("fill"),new J.Binding("stroke","color"),new J.Binding("strokeWidth","thickness"),new J.Binding("strokeDashArray","dash")),e(J.Placeholder,{background:"transparent",margin:20})),e(J.TextBlock,{alignment:J.Spot.Top,alignmentFocus:J.Spot.Bottom,font:"bold 12pt sans-serif",editable:!0},new J.Binding("text"),new J.Binding("stroke","color"))),i.current.groupTemplate.selectionAdornmentTemplate=e(J.Adornment,"Spot",e(J.Panel,"Auto",e(J.Shape,{fill:null,stroke:"dodgerblue",strokeWidth:3}),e(J.Placeholder,{margin:1.5})),j({alignment:J.Spot.TopRight,alignmentFocus:J.Spot.BottomRight})),i.current.groupTemplate.contextMenu=e("ContextMenu",A(),C(),N()),i.current.linkTemplate=e(J.Link,{layerName:"Foreground",routing:J.Link.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new J.Binding("fromSpot","fromSpot",J.Spot.parse),new J.Binding("toSpot","toSpot",J.Spot.parse),new J.Binding("fromShortLength","dir",(function(e){return e>=1?10:0})),new J.Binding("toShortLength","dir",(function(e){return e>=1?10:0})),new J.Binding("points").makeTwoWay(),e(J.Shape,{strokeWidth:2},new J.Binding("stroke","color"),new J.Binding("strokeWidth","thickness"),new J.Binding("strokeDashArray","dash")),e(J.Shape,{segmentIndex:0,segmentOffset:new J.Point(15,0),segmentOrientation:J.Link.OrientAlong,alignmentFocus:J.Spot.Right,figure:"circle",width:10,strokeWidth:0},new J.Binding("fill","color"),new J.Binding("visible","dir",(function(e){return 1===e}))),e(J.Shape,{segmentIndex:-1,segmentOffset:new J.Point(-10,6),segmentOrientation:J.Link.OrientPlus90,alignmentFocus:J.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new J.Binding("fill","color"),new J.Binding("visible","dir",(function(e){return e>=1})),new J.Binding("width","thickness",(function(e){return 7+3*e})),new J.Binding("height","thickness",(function(e){return 7+3*e})),new J.Binding("segmentOffset","thickness",(function(e){return new J.Point(-15,4+1.5*e)}))),e(J.Shape,{segmentIndex:0,segmentOffset:new J.Point(15,-6),segmentOrientation:J.Link.OrientMinus90,alignmentFocus:J.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new J.Binding("fill","color"),new J.Binding("visible","dir",(function(e){return 2===e})),new J.Binding("width","thickness",(function(e){return 7+3*e})),new J.Binding("height","thickness",(function(e){return 7+3*e})),new J.Binding("segmentOffset","thickness",(function(e){return new J.Point(-15,4+1.5*e)}))),e(J.TextBlock,{alignmentFocus:new J.Spot(0,1,-4,0),editable:!0},new J.Binding("text").makeTwoWay(),new J.Binding("stroke","color"))),i.current.linkTemplate.selectionAdornmentTemplate=e(J.Adornment,e(J.Shape,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Z(2)},new J.Binding("pathPattern","thickness",Z)),j({alignmentFocus:new J.Spot(0,0,-6,-4)})),i.current.linkTemplate.contextMenu=e("ContextMenu",C(),N(),e("ContextMenuButton",e(J.Panel,"Horizontal",M(0),M(1),M(2))),e("ContextMenuButton",e(J.Panel,"Horizontal",e(J.Panel,"Spot",P(!1),T(J.Spot.Top,!1),T(J.Spot.Left,!1),T(J.Spot.Right,!1),T(J.Spot.Bottom,!1)),e(J.Panel,"Spot",{margin:new J.Margin(0,0,0,2)},P(!0),T(J.Spot.Top,!0),T(J.Spot.Left,!0),T(J.Spot.Right,!0),T(J.Spot.Bottom,!0))))),new J.Palette(o.current,{maxSelectionCount:1,linkTemplate:e(J.Link,{locationSpot:J.Spot.Center,selectionAdornmentTemplate:e(J.Adornment,"Link",{locationSpot:J.Spot.Center},e(J.Shape,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),e(J.Shape,{toArrow:"Standard",stroke:null}))},{routing:J.Link.AvoidsNodes,curve:J.Link.JumpOver,corner:5,toShortLength:4},new J.Binding("points"),e(J.Shape,{isPanelMain:!0,strokeWidth:2}),e(J.Shape,{toArrow:"Standard",stroke:null})),model:new J.GraphLinksModel([{text:"未命名",size:"100 100",fill:null,stroke:"#000"}].concat(F()(J.Shape.getFigureGenerators().toArray().map((function(e){return{text:"未命名",size:"100 100",figure:e.key,fill:"white",stroke:"#666",borderColor:"#000"}})))))}).nodeTemplate=e(J.Node,"Auto",{locationSpot:J.Spot.Center},new J.Binding("location","location",J.Point.parse).makeTwoWay(J.Point.stringify),e(J.Shape,"Circle",{fill:"white",stroke:"gray",strokeWidth:2,width:20,height:20,portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromLinkableSelfNode:!0,toLinkableSelfNode:!0},new J.Binding("stroke").makeTwoWay(),new J.Binding("fill").makeTwoWay(),new J.Binding("figure")),e(J.TextBlock,{margin:new J.Margin(5,5,3,5),font:"10pt sans-serif",minSize:new J.Size(16,16),maxSize:new J.Size(10,NaN),textAlign:"center",editable:!0},new J.Binding("key").makeTwoWay())),setTimeout((function(){i.current.grid=e(J.Panel,"Grid",e(J.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(J.Shape,"LineV",{stroke:"lightgray",strokeWidth:.5})),i.current.grid.visible=!0,i.current.grid.gridCellStroke="darkgray",i.current.grid.gridCellStrokeWidth=1}),300),window.myDiagrams=i.current,i.current},divClassName:"diagram-component",style:{height:"80vh"}}),(0,f.jsx)("div",{ref:a})]})]}),(0,f.jsx)("div",{className:"tr",children:(0,f.jsx)(C.ZP,{size:"large",onClick:m,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary",children:"保存到编辑器"})})]})})})},ne=t(5112),te=t(54449),ie=ne.ZP.Group,ae={margin:"0 8px"},oe=function(e){var n=e.callback,t=e.onCancel;return(0,f.jsxs)(y.Z,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:function(e){n(e)},children:[(0,f.jsxs)("div",{className:"flex-container",style:{alignItems:"baseline"},children:[(0,f.jsx)("span",{style:ae,children:"单元格数:"}),(0,f.jsx)("span",{style:ae,children:"行数"}),(0,f.jsx)(y.Z.Item,{name:"row",rules:[{required:!0,message:"请输入行数"}],children:(0,f.jsx)(te.Z,{})}),(0,f.jsx)("span",{style:ae,children:"列数"}),(0,f.jsx)(y.Z.Item,{name:"col",rules:[{required:!0,message:"请输入列数"}],children:(0,f.jsx)(te.Z,{})})]}),(0,f.jsxs)("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"},children:[(0,f.jsx)("span",{style:ae,children:"对齐方式:"}),(0,f.jsx)(y.Z.Item,{name:"align",children:(0,f.jsxs)(ie,{children:[(0,f.jsx)(ne.ZP,{value:"default",children:(0,f.jsx)("i",{className:"fa fa-align-justify"})}),(0,f.jsx)(ne.ZP,{value:"left",children:(0,f.jsx)("i",{className:"fa fa-align-left"})}),(0,f.jsx)(ne.ZP,{value:"center",children:(0,f.jsx)("i",{className:"fa fa-align-center"})}),(0,f.jsx)(ne.ZP,{value:"right",children:(0,f.jsx)("i",{className:"fa fa-align-right"})})]})})]}),(0,f.jsxs)("div",{className:"flex-container flex-end",children:[(0,f.jsx)(C.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,f.jsx)(C.ZP,{type:"ghost",onClick:t,children:"取消"})]})]})},re=t(78673),se=t(69154),le=t.n(se),ce=(0,c.forwardRef)((function(e,n){var t=e.use3d,i=e.width,a=e.height,o=e.callback,s=(e.showSaveButton,(0,c.useRef)()),l=(0,c.useRef)(),d=(0,c.useState)(!1),u=r()(d,2),p=u[0],h=u[1],m=(0,c.useRef)({id:s,appName:"graphing",width:i||1e3,height:a||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,c.useEffect)((function(){l.current=new(le())(m.current,!0),window.onload=function(){l.current.inject("applet_container")}}),[]);var g=function(){var e=window.ggbApplet.getPNGBase64(1,!0,72);return o&&o(e),e};return(0,c.useEffect)((function(){m.current.appName=p?"3D":"graphing",l.current.inject("applet_container")}),[p]),(0,c.useEffect)((function(){h(t)}),[t]),(0,c.useImperativeHandle)(n,(function(){return{getImgData:g}})),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:s}),(0,f.jsxs)(I.Z,{align:"middle",children:[(0,f.jsx)(Q.Z,{flex:1,children:(0,f.jsx)(re.Z,{size:"default",checkedChildren:"关闭3D图像",unCheckedChildren:"开启3D图像",checked:p,onChange:function(e){return h(e)}})}),(0,f.jsx)(Q.Z,{children:(0,f.jsx)(C.ZP,{size:"large",onClick:g,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})]})})),de=t(39828),ue=t(14103),pe="link",he="upload-image",fe="add-flowchart",me="draw-image",ge="code-block",xe="add-table",ve="------------",we={default:ve,left:":".concat(ve),center:":".concat(ve,":"),right:"".concat(ve,":")},je=t(57473);var be="@▁▁@",ye=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function Ae(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}var Ce=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",ke=l()(l()({},Ce+"-B","bold"),Ce+"-I","italic"),Se=l()(l()(l()(l()(l()(l()(l()(l()({},pe,"添加链接"),ge,"添加代码块"),he,"添加图片"),me,"添加画图"),fe,"插入流程图"),xe,"添加表格"),"maths-latex","数学图像"),"inline-latex","LATEX公式"),Ne=function(e){var n=e.defaultValue,t=void 0===n?"":n,i=e.onChange,o=e.width,s=void 0===o?"100%":o,d=e.height,g=void 0===d?400:d,x=e.miniToolbar,v=void 0!==x&&x,w=e.isFocus,y=void 0!==w&&w,A=e.watch,C=e.insertTemp,k=e.mode,Z=void 0===k?"markdown":k,M=e.id,P=void 0===M?"markdown-editor-id":M,T=e.showResizeBar,L=void 0!==T&&T,I=e.noStorage,O=void 0!==I&&I,R=e.showNullButton,G=void 0!==R&&R,W=e.showNullProgramButton,H=void 0!==W&&W,U=e.hidetoolBar,F=void 0!==U&&U,J=e.fullScreen,Y=void 0!==J&&J,V=e.onBlur,K=e.onCMBeforeChange,Q=e.onFullScreen,X=e.className,_=void 0===X?"":X,$=e.disablePaste,ne=void 0!==$&&$,te=e.disabled,ie=void 0!==te&&te,ae=e.disabledFill,re=void 0!==ae&&ae,se=e.placeholder,le=void 0===se?"":se,ve=e.values,Ce=void 0===ve?"":ve,Ne=e.extraUse,Be=(0,c.useState)(null),Ze=r()(Be,2),Me=Ze[0],Pe=Ze[1],Te=(0,c.useState)(t),De=r()(Te,2),Le=De[0],Ee=De[1],Ie=(0,c.useState)(A),Oe=r()(Ie,2),ze=Oe[0],Re=Oe[1],Ge=(0,c.useState)(Y),We=r()(Ge,2),He=We[0],Ue=We[1],Fe=(0,c.useState)(""),Je=r()(Fe,2),Ye=Je[0],Ve=Je[1],Ke=(0,c.useState)(0),qe=r()(Ke,2),Qe=qe[0],Xe=qe[1],_e=(0,c.useState)(g),$e=r()(_e,2),en=$e[0],nn=$e[1],tn=(0,c.useState)(!1),an=r()(tn,2),on=(an[0],an[1]),rn=(0,c.useState)(0),sn=r()(rn,2),ln=sn[0],cn=sn[1],dn=(0,c.useState)(0),un=r()(dn,2),pn=un[0],hn=un[1],fn=(0,c.useRef)(),mn=(0,c.useRef)(),gn=(0,c.useRef)(),xn=(0,c.useRef)();(0,c.useEffect)((function(){var e=window.scrollY||window.pageYOffset;Ee(Ce),null==Me||Me.setValue(Ce),window.scrollTo(0,e)}),[Ce]),(0,c.useEffect)((function(){null==Q||Q(He)}),[He]),(0,c.useEffect)((function(){if(fn.current){var e=function(e,t){if(!ne){var i=t.clipboardData;if(i){var a=i.types.toString(),o=i.items;if("Files"===a||i.types.indexOf("Files")>-1){if(t.preventDefault(),"stex"==Z)return;try{var r,s=o[1];"file"===(null===(r=o[0])||void 0===r?void 0:r.kind)&&(s=o[0]);var l=s.getAsFile(),c=l.name.split(".").pop();E(l,(function(e){var t,i,a;e.id?(null==l||null===(t=l.type)||void 0===t?void 0:t.indexOf("image"))>-1?n.replaceSelection(".concat(e.content_type,")")):(null==l||null===(i=l.type)||void 0===i?void 0:i.indexOf("video"))>-1?n.replaceSelection('')):(null==l||null===(a=l.type)||void 0===a?void 0:a.indexOf("pdf"))>-1?n.replaceSelection('').concat(l.name,"")):ye.includes(c)?n.replaceSelection('').concat(l.name,"")):n.replaceSelection("[".concat(l.name,"](").concat(ue.Z.API_SERVER,"/api/attachments/").concat(e.id,"?type=").concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}))}catch(t){B.ZP.warning("请使用chrome浏览器粘贴")}return!0}return!0}return!0}t.preventDefault()},n=u().fromTextArea(fn.current,{mode:Z,lineNumbers:!v,lineWrapping:!0,value:t,autoCloseTags:!0,autoCloseBrackets:!0});return n.on("keyup",(function(e,t){8===t.keyCode&&(""==e.getValue()?n.setOption("placeholder",le):n.setOption("placeholder",null))})),n.on("keydown",(function(e,n){if(8===n.keyCode){var t=function(e,n){var t=e.getDoc(),i=t.getCursor(),a=t.getLine(i.line),o=a.charAt(i.ch-1),r=a.lastIndexOf("@▁@",i.ch),s=a.lastIndexOf("@▁▁@",i.ch),l=r>s?r:s,c=r>s?3:4;if(-1===be.indexOf(o))return null;if(console.log("change1:",n,e,a,i,l,r,s,o),l>=0&&i.ch-l<5){var d=l+c;return t.replaceRange("",{line:i.line,ch:l},{line:i.line,ch:d}),{line:i.line,ch:d}}return null}(e);t&&n.preventDefault()}})),y&&n.focus(),n.on("paste",e),ie&&n.on("beforeChange",(function(e,n){"paste"!==n.origin&&"+input"!==n.origin||n.cancel()})),Pe(n),function(){n.off("paste",e)}}}),[]);var vn=(0,c.useCallback)((function(){mn.current}),[en,mn,He]);(0,c.useEffect)((function(){if(Me){var e=function(){var e=new p.Z((function(e){var n,t=a()(e);try{for(t.s();!(n=t.n()).done;){var i=n.value;(i.target.offsetHeight>0||i.target.offsetWidth>0)&&(vn(),Me.setSize("100%","100%"),Me.refresh())}}catch(e){t.e(e)}finally{t.f()}}));return e.observe(fn.current.parentElement),e}();return function(){var n,t;null!==(n=fn.current)&&void 0!==n&&n.parentElement&&e.unobserve(null===(t=fn.current)||void 0===t?void 0:t.parentElement)}}}),[Me,vn]),(0,c.useEffect)((function(){if(Me){for(var e=[],n=function(){var n=r()(i[t],2),a=n[0],o=n[1],s=l()({},a,(function(){wn(o)}));e.push(s),Me.addKeyMap(s)},t=0,i=Object.entries(ke);t0){var e=(new Date).getTime(),n=window.sessionStorage.getItem(P);e>=Qe+1e4&&(!n||n!==Le)&&(window.sessionStorage.setItem(P,Le),on(!0))}}),1e4),(0,c.useEffect)((function(){Re(A)}),[Me,A]),(0,c.useEffect)((function(){Me&&y&&Me.focus()}),[Me,y]),(0,c.useEffect)((function(){if(ze&&Me){var e=function(e){var n=e.target;if(xn.current){var t=n.scrollTop/n.scrollHeight;xn.current.scrollTop=xn.current.scrollHeight*t}},n=Me.getScrollerElement();return n.addEventListener("scroll",e),function(){n.removeEventListener("scroll",e)}}}),[Me,ze]),(0,c.useEffect)((function(){if(Me&&K){var e=function(e,n){K(e,n)};return Me.on("beforeChange",e),function(){Me.off("beforeChange",e)}}}),[Me,K]),(0,c.useEffect)((function(){if(Me&&V){var e=function(){V(Me.getValue())};return Me.on("blur",e),function(){Me.off("blur",e)}}}),[Me,V]),(0,c.useEffect)((function(){if(Me){var e=function(e,n){var t=e.getValue();Ee(t),Xe((new Date).getTime()),e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),i&&(H?i(t,Cn(t)):i(t))};return Me.on("change",e),function(){Me.off("change",e)}}}),[Me,i]),(0,c.useEffect)((function(){if(Me)if(null==t)Me.setValue(""),Ee("");else{var e=window.scrollY||window.pageYOffset;t!==Me.getValue()&&(Me.setValue(t),Ee(t),Me.setCursor(ie?1:Me.lineCount(),0),window.scrollTo(0,e))}}),[Me,t]);var wn=(0,c.useCallback)((function(e){var n=Me.getCursor(),t=Me.getSelection(),i=t.split("\n");switch(e){case"bold":return Me.replaceSelection("**"+t+"**"),""===t&&Me.setCursor(n.line,n.ch+2),Me.focus();case"italic":return Me.replaceSelection("*"+t+"*"),""===t&&Me.setCursor(n.line,n.ch+1),Me.focus();case"code":return Me.replaceSelection("`"+t+"`"),""===t&&Me.setCursor(n.line,n.ch+1),Me.focus();case"inline-latex":return Ve("inline-latex"),Me.focus();case"latex":return Me.replaceSelection("```latex\n"+t+"\n```"),Me.setCursor(n.line+1,t.length+1),Me.focus();case"line-break":return Me.replaceSelection("
\n"),Me.focus();case"list-ul":return""===t?Me.replaceSelection("- "+t):Me.replaceSelection(i.map((function(e){return""===e?"":"- ".concat(e)})).join("\n")),Me.focus();case"list-ol":return""===t?Me.replaceSelection("1. "+t):Me.replaceSelection(i.map((function(e,n){return""===e?"":"".concat(n+1,". ").concat(e)})).join("\n")),Me.focus();case"add-null-ch":return""===t&&Me.setCursor(n.line,n.ch),Me.replaceSelection("▁"),Me.focus();case"add-signal":return""===t&&Me.setCursor(n.line,n.ch),Me.replaceSelection("@▁@"),Me.focus();case"add-multiple":return""===t&&Me.setCursor(n.line,n.ch),Me.replaceSelection(be),Me.focus();case"inster-template-1":return""===t&&Me.setCursor(n.line,n.ch),Me.replaceSelection("\n**模板标题**\n模板正文内容,可输入文本内容和粘贴图片等操作"),Me.focus();case"eraser":return Me.setValue(""),Me.focus();case"trigger-watch":return Re(!ze),Me.focus();case"trigger-full-screen":return Ue(!He),Me.focus();case pe:return void Ve(pe);case ge:return void Ve(ge);case he:return void Ve(he);case me:return void Ve(me);case"maths-latex":return void Ve("maths-latex");case fe:return void Ve(fe);case xe:return void Ve(xe);default:throw new Error}}),[Me,ze,He]),jn=(0,c.useCallback)((function(e,n){var t,i,a,o,r;switch(Ve(""),Ye){case pe:var s=e.title,l=e.link;return Me.replaceSelection("[".concat(s,"](").concat(l,")")),Me.focus();case ge:var c=e.language,d=e.content;return Me.replaceSelection(["```"+c,d,"```"].join("\n")),Me.focus();case"maths-latex":for(var u=atob(e),p=new Uint8Array(u.length),h=0;h-1||null==g||!g.type?m?Me.replaceSelection(".concat(f,' "').concat(m,'" )')):Me.replaceSelection("")):(null==g||null===(o=g.type)||void 0===o?void 0:o.indexOf("video"))>-1?Me.replaceSelection('')):(null==g||null===(r=g.type)||void 0===r?void 0:r.indexOf("pdf"))>-1?Me.replaceSelection('').concat(g.name,"")):ye.includes(x)?Me.replaceSelection('').concat(g.name,"")):Me.replaceSelection("[".concat(g.name,"](").concat(ue.Z.API_SERVER).concat(f,")")),Me.focus();case xe:for(var v=e.row,w=e.col,j=e.align,b="\n",y=0;y300&&(n=300),nn(g+n+"px")}},i=gn.current,a=!1,o=0;return i.addEventListener("mousedown",e),document.addEventListener("mousemove",t),document.addEventListener("mouseup",n),function(){i.removeEventListener("mousedown",e),document.removeEventListener("mousemove",t),document.removeEventListener("mouseup",n)}}}),[Me,gn]),(0,c.useEffect)((function(){nn(g)}),[g]);var An={width:Ae(s),height:Ae(en)},Cn=((0,c.useMemo)((function(){if(Qe){var e=new Date(Qe),n=e.getHours(),t=e.getMinutes(),i=e.getSeconds();return t=t<10?"0"+t:t,i=i<10?"0"+i:i,"".concat(n=n<10?"0"+n:n,":").concat(t,":").concat(i)}return 0}),[Qe]),function(e){var n=[];if(H){e=e.replace(/(@▁▁@|@▁@)/g,(function(e,t,i){n.push({multiLine:!("@▁@"===e)})}))}return n});(0,c.useEffect)((function(){if(Se[Ye]&&Ye!==me&&Ye!==fe){var e=document.getElementsByClassName("ant-modal")[0],n=window.innerWidth/2-e.offsetWidth/2,t=window.innerHeight/2-e.offsetHeight/2;cn(n),hn(t)}}),[Ye]);var kn=function(e,n,t,i){var a=document.body.clientHeight,o=document.body.clientWidth;return!(e<20&&t>e||e>o-20&&tn||n>a-20&&i0&&(0,s.jsx)("div",{className:r,children:t.map((function(e,n){return(0,s.jsxs)("div",{onClick:e.click,children:[e.name,e.sign?(0,s.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6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9v6/zGB3S5HWCvUlFfvWiGWMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",width:39}):null]},n)}))}),p]}),i&&(0,s.jsx)("img",{style:{marginTop:33,marginRight:38},src:i,width:c})]})})},c=t(79800),d=t.n(c),u="row___aXJjm",p="title___HUKL0",h="tagsWrap___XB2W3",f="action___VdHb1",m="bar___t1kKC",g="tag___V7Eft",x="name___Hk1Ip",v="num___xQpcH",w="active___XryTX",j="tagsBorderWrap___OMxjs",b=t(92310),y=t.n(b),A=t(89392),C=function(e){var n=e.dataSource,t=void 0===n?[]:n,a=e.value,o=e.onChange,r=e.onTitleChange,l=e.className,c=e.title,b=e.titleWidth,C=void 0===b?41:b,k=e.style,S=void 0===k?{}:k,N=e.fontColor,B=void 0===N?"#6A7283":N,Z=e.showCount,M=(0,i.useState)(0),P=d()(M,2),T=P[0],D=P[1],L=(0,i.useState)(!1),E=d()(L,2),I=E[0],O=E[1],z=(0,i.useRef)(null),R=(0,i.useRef)(null);return(0,i.useEffect)((function(){var e;0!==t.length&&((null==z||null===(e=z.current)||void 0===e?void 0:e.clientHeight)>97?D(1):D(0));0===t.length&&D(0),O(!1)}),[t]),(0,s.jsxs)("div",{className:y()(u,l),style:S,children:[(0,s.jsx)("div",{onClick:(0,A.throttle)((function(){return null==r?void 0:r()}),2e3),style:{width:C,marginTop:I?12:4},className:"".concat(p," ").concat(r?"current":""),children:c}),(0,s.jsxs)("div",{className:I?"".concat(h," ").concat(j):h,children:[(0,s.jsx)("div",{className:m,ref:R,style:T>0?{height:1===T?97:"auto",overflow:1===T?"hidden":"auto",paddingRight:55}:{paddingRight:0},children:(0,s.jsx)("div",{className:g,ref:z,children:null==t?void 0:t.map((function(e){return(0,s.jsxs)("span",{onClick:function(){return o(e.id)},style:{color:B},className:a===e.id?w:"",children:[(0,s.jsx)("span",{title:e.name,className:x,children:e.name}),!!Z&&(0,s.jsx)("span",{className:v,children:e.count})]},e.id)}))})}),!!T&&(0,s.jsx)(i.Fragment,{children:1===T?(0,s.jsxs)("div",{onClick:function(){var e;D(2),(null==z||null===(e=z.current)||void 0===e?void 0:e.clientHeight)>245?O(!0):O(!1)},className:f,children:["展开",(0,s.jsx)("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})]}):(0,s.jsxs)("div",{onClick:function(){R.current.scrollTop=0,D(1),O(!1)},className:f,children:["收起",(0,s.jsx)("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})]})})]})]})},k="tabs___GTqPV",S="active___F26E8",N=function(e){var n=e.dataSource,t=void 0===n?[]:n,i=e.value,a=e.onChange,o=e.className,r=e.style,l=void 0===r?{}:r;return(0,s.jsx)("div",{style:l,className:y()(k,o),children:t.map((function(e){return(0,s.jsx)("span",{onClick:function(){return a(e.id)},className:i===e.id?S:"",children:e.name},e.id)}))})},B="input___PW2zI",Z="dropdown___vSy8B",M="menu___NiyBu",P="text___Grueu",T="b1___ZKryM",D="b2___aKyGa",L=t(98135),E=function(e){var n,t=e.dataSource,a=void 0===t?[]:t,o=e.value,r=void 0===o?"":o,l=e.onChange,c=e.onInputChange,u=void 0===c?function(){}:c,p=e.className,h=e.style,f=void 0===h?{}:h,m=e.placeholder,g=(e.allowClear,(0,i.useState)("")),x=d()(g,2),v=x[0],w=x[1],j=(0,i.useState)(""),b=d()(j,2),A=b[0],C=b[1];(0,i.useEffect)((function(){var e,n=r;null!==(e=JSON.stringify(r))&&void 0!==e&&e.includes("{")&&(w(r.id),n=r.value||"");try{C(decodeURIComponent(n||""))}catch(e){C(decodeURIComponent(n||""))}}),[r]);var k=function(){l(encodeURIComponent(A),v||null)};return(0,s.jsxs)("div",{className:y()(B,p),style:f,children:[!!a.length&&(0,s.jsxs)("div",{className:Z,children:[(0,s.jsxs)("div",{className:P,children:[null===(n=a.find((function(e){return e.id===v})))||void 0===n?void 0:n.name,(0,s.jsx)("i",{className:"iconfont icon-zhankai4"}),(0,s.jsx)("b",{className:T}),(0,s.jsx)("b",{className:D})]}),(0,s.jsx)("div",{className:M,children:a.map((function(e,n){return(0,s.jsx)("div",{onClick:function(){var n;(n=e.id)!==v&&(w(n),l(encodeURIComponent(A),n))},children:e.name},n)}))})]}),(0,s.jsx)(L.Z,{onPressEnter:k,value:A,onChange:function(e){C(e.target.value),u(encodeURIComponent(e.target.value),v||null)},bordered:!1,placeholder:m}),(0,s.jsx)("i",{onClick:k,className:"iconfont icon-sousuo9 font14 pl10 current"})]})},I="quickPager___GM30J",O="disabled___Ozc8I",z=function(e){var n=e.value,t=e.onChange,i=e.className,a=e.total,o=e.pageSize,r=e.style,l=void 0===r?{}:r,c=n<2,d=n>=Math.ceil(a/o);return a<=o?(0,s.jsx)(s.Fragment,{}):(0,s.jsxs)("div",{className:y()(I,i),style:l,children:[(0,s.jsx)("div",{onClick:function(){c||t(n-1,"prev")},className:c?O:"",children:"上一页"}),(0,s.jsx)("div",{onClick:function(){d||t(n+1,"next")},className:d?O:"",children:"下一页"})]})},R="list___oOsiS",G="wrap___G6T7F",W="lockWrap___Rl79E",H="li___oZZ7l",U="cover___b2bYW",F="img___IQX7w",J="sign___HkT6C",Y="name___SsJx8",V="e___TMqq0",K="tags___bcjyo",q="rate___YACg7",Q=t(71418),X=t(6848),_=t(97022),$=t(14103),ee=t(92818),ne=t(96908),te=t(57177),ie=t(81378),ae=t(21740),oe=function(e){var n=e.className,t=e.dataSource,i=void 0===t?[]:t,a=e.col,o=void 0===a?4:a,r=e.right,l=e.bottom,c=void 0===l?23:l,d=e.precision,u=void 0===d?0:d,p=e.wrapWidth,h=void 0===p?1200:p,f=e.trackEventItems,m=e.loading,g=Math.floor((h-(o-1)*r)/o);return(0,s.jsx)(Q.Z,{spinning:m,children:(0,s.jsxs)("div",{className:y()(R,n),children:[!!i.length&&i.map((function(e,n){var t=e.name,i=e.id,a=e.identifier,l=e.power,d=(e.cover_image_id,e.pic);return(0,s.jsxs)("div",{className:G,style:{width:g,marginRight:(1+n)%o==0?0:r+u,marginBottom:c},children:[(0,s.jsxs)("a",{target:"_blank",href:"/shixuns/".concat(a,"/challenges"),className:H,onClick:function(e){e.preventDefault(),f&&(0,ee.L9)([f]),l&&(0,ee.xg)("/shixuns/".concat(a,"/challenges"))},children:[(0,s.jsxs)("div",{className:F,children:[(0,s.jsx)("img",{className:U,src:"".concat(d)}),e.is_jupyter&&(0,s.jsx)("img",{className:J,src:ne}),e.is_jupyter_lab&&(0,s.jsx)("img",{className:J,src:te}),e.is_unity_3d&&(0,s.jsx)("img",{className:J,src:ie})]}),(0,s.jsx)("div",{className:Y,children:(0,s.jsx)(X.Z,{title:t||"实践项目名称-未填写",children:(0,s.jsx)("span",{className:V,children:t||"实践项目名称-未填写"})})}),(0,s.jsxs)("div",{className:K,children:[(0,s.jsx)(X.Z,{placement:"bottom",title:"关卡数",children:(0,s.jsxs)("span",{children:[(0,s.jsx)("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),(0,s.jsx)("span",{children:e.challenges_count})]})}),!!e.myshixuns_count&&(0,s.jsx)(X.Z,{placement:"bottom",title:"学习人数",children:(0,s.jsxs)("span",{children:[(0,s.jsx)("i",{className:"iconfont icon-chengyuan font14 mr2"}),(0,s.jsx)("span",{children:e.myshixuns_count})]})}),(0,s.jsx)(X.Z,{placement:"bottom",title:"难度等级",children:(0,s.jsx)("span",{children:(0,s.jsx)("span",{children:e.level})})}),(0,s.jsxs)("div",{className:q,children:[(0,s.jsx)(_.Z,{allowHalf:!0,disabled:!0,defaultValue:e.score_info}),(0,s.jsxs)("span",{children:[" ",e.score_info?"".concat(e.score_info,"分"):"5分"]})]})]})]}),!l&&(0,s.jsxs)("div",{className:W,children:[(0,s.jsx)("img",{src:"".concat($.Z.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),(0,s.jsx)("span",{className:"mt15 font16 c-white",children:"定向开放内容,需要授权"})]})]},i)})),!i.length&&(0,s.jsx)(ae.Z,{})]})})},re="list___jb2Ay",se="wrap___VsQDr",le="li___IxCLC",ce="cover___Mu8wr",de="img___IpFLA",ue="bq___Bil0T",pe="sign___DXJ4d",he="name___l7FoJ",fe="e___pXQUG",me="unit___wCIFR",ge="tags___w_Mil",xe=function(e){var n=e.className,t=e.dataSource,i=void 0===t?[]:t,a=e.col,o=void 0===a?4:a,r=e.right,l=e.bottom,c=void 0===l?23:l,d=e.precision,u=void 0===d?0:d,p=e.wrapWidth,h=void 0===p?1200:p,f=e.trackEventItems,m=e.loading,g=Math.floor((h-(o-1)*r)/o),x=[{name:"推荐自学",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101计划",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"国家一流",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"省级一流",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"精品课程",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"军队一流",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"}];return(0,s.jsx)(Q.Z,{spinning:m,children:(0,s.jsxs)("div",{className:y()(re,n),children:[!(null==i||!i.length)&&(null==i?void 0:i.map((function(e,n){var t,i=e.name,a=e.id,l=e.identifier,d=(e.featured,e.school_name),p=e.image_url;e.excellent,e.is_plan;return(0,s.jsx)("div",{className:se,style:{width:g,marginRight:(1+n)%o==0?0:r+u,marginBottom:c},children:(0,s.jsxs)("a",{target:"_blank",href:"/paths/".concat(l),className:le,onClick:function(e){e.preventDefault(),f&&(0,ee.L9)([f]),(0,ee.xg)("/paths/".concat(l))},children:[(0,s.jsxs)("div",{className:de,children:[(0,s.jsx)("img",{className:ce,src:"".concat(p)}),null==e||null===(t=e.subject_tags)||void 0===t?void 0:t.map((function(e,n){var t;if(0===n){var i,a=null===(i=x.find((function(n){return n.name==e})))||void 0===i?void 0:i.swimg;return(0,s.jsx)("img",{className:pe,src:a,style:{left:"-4px"}})}var o=null===(t=x.find((function(n){return n.name==e})))||void 0===t?void 0:t.ptimg;return(0,s.jsx)("img",{className:pe,src:o,style:{left:"".concat(48+52*(n-1)+2*n,"px")}})})),(0,s.jsx)("div",{style:{position:"absolute",top:"150px",left:"4px"},children:(null==e?void 0:e.excellent)&&(0,s.jsx)("div",{className:ue,children:"开放课程"})})]}),(0,s.jsx)("div",{className:he,children:(0,s.jsx)(X.Z,{title:i,children:(0,s.jsx)("span",{className:fe,children:i})})}),(0,s.jsx)(X.Z,{title:"发布单位:".concat(d),children:(0,s.jsxs)("div",{className:me,children:[(0,s.jsx)("i",{className:"iconfont icon-danwei1 font14 mr3"}),d]})}),(0,s.jsx)("div",{className:ge,children:(0,s.jsxs)("div",{children:[(0,s.jsx)(X.Z,{placement:"bottom",title:"章节数",children:(0,s.jsxs)("span",{children:[(0,s.jsx)("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),(0,s.jsx)("span",{children:e.stages_count})]})}),(0,s.jsx)(X.Z,{placement:"bottom",title:"学习人数",children:(0,s.jsxs)("span",{children:[(0,s.jsx)("i",{className:"iconfont icon-chengyuan font14 mr3"}),(0,s.jsx)("span",{children:e.members_count})]})})]})})]})},a)}))),!i.length&&(0,s.jsx)(ae.Z,{})]})})},ve={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},we=function(e){var n=e.className,t=e.dataSource,i=void 0===t?[]:t,a=e.col,o=void 0===a?4:a,r=e.right,l=e.bottom,c=void 0===l?23:l,d=e.precision,u=void 0===d?0:d,p=e.wrapWidth,h=void 0===p?1200:p,f=e.trackEventItems,m=e.loading,g=Math.floor((h-(o-1)*r)/o);return(0,s.jsx)(Q.Z,{spinning:m,children:(0,s.jsxs)("div",{className:y()(ve.list,n),children:[!!i.length&&i.map((function(e,n){var t=e.subject_identifier,i=e.id,a=(e.identifier,e.power,0!=e.is_public&&e.is_public);return(0,s.jsxs)("div",{className:ve.wrap,style:{width:g,marginRight:(1+n)%o==0?0:r+u,marginBottom:c},children:[(0,s.jsxs)("a",{className:ve.li,onClick:function(n){n.preventDefault(),f&&(0,ee.L9)([f]),(0,ee.xg)(e.first_category_url)},children:[(0,s.jsxs)("div",{className:ve.top,children:[(0,s.jsx)(X.Z,{title:e.name,children:(0,s.jsx)("div",{className:ve.name,children:e.name})}),(0,s.jsx)("img",{className:ve.img,src:$.Z.IMG_SERVER+"/images/"+e.avatar_url}),(0,s.jsx)("div",{className:ve.text,title:e.creator,children:e.creator}),t&&(0,s.jsxs)("div",{className:ve.btns,children:[(0,s.jsx)("div",{children:"开放课程"}),(0,s.jsx)("aside",{children:"开放课堂"})]}),a&&(0,s.jsx)("div",{className:ve.sign,children:"公开"})]}),(0,s.jsxs)("div",{className:ve.bottom,children:[e.visits>0&&(0,s.jsx)(X.Z,{title:"访问量",placement:"bottom",children:(0,s.jsxs)("span",{children:[(0,s.jsx)("i",{className:"iconfont icon-liulanyan"}),(0,s.jsx)("span",{children:e.visits})]})}),e.course_members_count>0&&(0,s.jsx)(X.Z,{title:"成员",placement:"bottom",children:(0,s.jsxs)("span",{children:[(0,s.jsx)("i",{className:"iconfont icon-chengyuan"}),e.course_members_count]})}),e.tasks_count>0&&(0,s.jsx)(X.Z,{title:"作业",placement:"bottom",children:(0,s.jsxs)("span",{children:[(0,s.jsx)("i",{className:"iconfont icon-zuoye"}),e.tasks_count]})}),e.is_end?(0,s.jsx)("div",{style:{color:"#6B758B"},children:"已结束"}):(0,s.jsx)("div",{style:{color:"#00B187"},children:"进行中"})]})]}),!e.is_accessible&&(0,s.jsxs)("div",{className:ve.lockWrap,children:[(0,s.jsx)("img",{src:"".concat($.Z.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),(0,s.jsx)("span",{className:"mt15 font16 c-white",children:"非课堂成员不可进入"})]})]},i)})),!i.length&&(0,s.jsx)(ae.Z,{})]})})},je={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},be=t(96048),ye=function(e){var n=e.dataSource,t=void 0===n?[]:n,i=e.value,a=e.onChange,o=e.className,r=e.style,l=void 0===r?{}:r,c=e.tabBarExtraContent;return(0,s.jsxs)("div",{className:y()(je.tabs,o),style:l,children:[(0,s.jsx)("div",{className:je.tabsWrap,children:t.map((function(e,n){return(0,s.jsxs)("aside",{className:je.tab,onClick:function(){a(e.id),e.link&&be.history.push(e.link)},children:[(0,s.jsx)("div",{className:i===e.id?je.active:"",children:e.name}),null==(null==e?void 0:e.resetCount)&&void 0!==(null==e?void 0:e.total)&&(0,s.jsxs)("span",{children:["(",null==e?void 0:e.total,")"]}),void 0!==(null==e?void 0:e.resetCount)&&void 0!==(null==e?void 0:e.total)&&(0,s.jsx)(X.Z,{title:null!=(null==e?void 0:e.tip)?null==e?void 0:e.tip:"",children:(0,s.jsxs)("span",{style:{color:"#9096A3"},children:["(",(0,s.jsx)("span",{style:{color:"#000"},children:null==e?void 0:e.resetCount}),"/",(0,s.jsx)("span",{children:null==e?void 0:e.total}),")"]})})]},n)}))}),(0,s.jsx)("div",{className:je.tabBar,children:c})]})},Ae=function(e){var n=e.className,t=e.style,i=void 0===t?{}:t,a=e.children;return(0,s.jsx)("div",{className:y()(n),style:i,children:a})},Ce="orderWrap___ZfyGX",ke="orderIconWrap___XTB_O",Se="orderAsc___KWHmA",Ne="orderDesc___rHdbB",Be="active___a7eSP",Ze="cursorPointer___gs9kL",Me="orderTextWrap___teAKn",Pe=t(38854),Te=t(20834),De=[{id:"updated_at",name:"最新动态"},{id:"created_at",name:"最新创建"},{id:"name",name:"名称排序"}],Le=function(e){var n,t=e.sortValue,i=e.dropValue,a=e.className,o=e.onSort,r=e.onDrop,l=e.dataSource,c=void 0===l?De:l;return(0,s.jsxs)("div",{className:y()(Ce,a),children:[(0,s.jsx)(Pe.Z,{dropdownRender:function(){return(0,s.jsx)(Te.Z,{children:c.map((function(e,n){return(0,s.jsx)(Te.Z.Item,{onClick:function(){return r(e.id)},children:e.name},n)}))})},children:(0,s.jsx)("span",{className:Me,children:null===(n=c.find((function(e){return i===e.id})))||void 0===n?void 0:n.name})}),(0,s.jsxs)("span",{className:ke,children:[(0,s.jsx)("span",{className:Se,children:(0,s.jsx)("i",{className:"asc"===t?"iconfont icon-sanjiaoxing-up font12 ".concat(Ze," ").concat(Be):"iconfont icon-sanjiaoxing-up font12 ".concat(Ze),onClick:function(){return o("asc"===t?"desc":"asc")}})}),(0,s.jsx)("span",{className:Ne,children:(0,s.jsx)("i",{className:"desc"===t?"iconfont icon-sanjiaoxing-down font12 ".concat(Ze," ").concat(Be):"iconfont icon-sanjiaoxing-down font12 ".concat(Ze),onClick:function(){return o("asc"===t?"desc":"asc")}})})]})]})},Ee=t(82242),Ie=t.n(Ee),Oe=t(7557),ze=t.n(Oe),Re=t(41498),Ge=t.n(Re),We=t(39647),He=t.n(We),Ue={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},Fe=t(3113),Je=["className","style","children","loading","openLoading","onClick","size","shape"],Ye=function(e){var n=e.className,t=e.style,a=e.children,o=e.loading,r=void 0!==o&&o,l=e.openLoading,c=e.onClick,u=void 0===c?function(){}:c,p=e.size,h=void 0===p?"middle":p,f=e.shape,m=void 0===f?"round":f,g=He()(e,Je),x=(0,i.useState)(!1),v=d()(x,2),w=v[0],j=v[1];return(0,s.jsx)(Fe.ZP,Ie()(Ie()({onClick:(0,A.throttle)(function(){var e=Ge()(ze()().mark((function e(n){return ze()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l&&j(!0),e.prev=1,e.next=4,u(n);case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(1),console.log("error",e.t0);case 9:l&&j(!1);case 10:case"end":return e.stop()}}),e,null,[[1,6]])})));return function(n){return e.apply(this,arguments)}}(),2e3,{leading:!0,trailing:!1}),className:y()(Ue.btn,Ue["".concat(h,"-").concat(m)],n),style:t,size:h,shape:m,loading:w||r},g),{},{children:a}))},Ve="head___ghH72",Ke="node___mjPEy",qe=function(e){var n=e.className,t=e.style,i=e.children,a=void 0===i?null:i,o=e.onClick,r=e.title;return(0,s.jsxs)("div",{className:y()(Ve,n),style:t,children:[(0,s.jsxs)("span",{className:"primary-hover",onClick:o,children:[(0,s.jsx)("i",{className:"iconfont icon-fanhui2 font12"}),"返回"]}),(0,s.jsx)("b",{title:r,children:r}),(0,s.jsx)("div",{className:Ke,children:a})]})},Qe="btns___sNgTb",Xe="confirm___Ozirl",_e="cancel___aiq1I",$e=function(e){var n=e.confirmShow,t=void 0===n||n,i=e.confirmTitle,a=e.confirmClick,o=e.cancelShow,r=void 0===o||o,l=e.cancelTitle,c=e.cancelClick,d=e.className,u=e.style,p=e.confirmLoading,h=void 0!==p&&p;return(0,s.jsxs)("div",{className:y()(Qe,d),style:u,children:[t&&(0,s.jsx)(Fe.ZP,{loading:h,onClick:a,type:"primary",className:Xe,children:i}),r&&(0,s.jsx)(Fe.ZP,{onClick:c,className:_e,children:l})]})},en={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},nn=function(e){var n=e.className,t=e.style,i=void 0===t?{}:t,a=e.LeftContent,o=e.children,r=e.RightContent;return(0,s.jsx)("div",{className:y()(en.fixedBottom,n),style:i,children:(0,s.jsxs)("div",{className:en.wrap,children:[(0,s.jsx)("div",{className:en.left,children:a}),(0,s.jsx)("div",{className:en.center,children:o}),(0,s.jsx)("div",{className:en.right,children:r})]})})},tn="crumbs___V41Oe",an="hover___bEIVd",on=function(e){var n=e.className,t=e.style,a=void 0===t?{}:t,o=e.dataSource,r=void 0===o?[]:o;return(0,s.jsx)("div",{className:y()(tn,n),style:a,children:r.map((function(e,n){return n"," "]})]},n):(0,s.jsx)("span",{style:{color:"#5F6368"},children:e.name},n)}))})},rn=t(31797),sn=["onChange"],ln=rn.Z.Countdown,cn=function(e){var n=e.onChange,t=He()(e,sn),a=(0,i.useState)(null),o=d()(a,2),r=o[0],l=o[1];(0,i.useEffect)((function(){"number"==typeof r&&r>=0&&n(r)}),[r]);return(0,s.jsx)(ln,Ie()(Ie()({},t),{},{onChange:function(e){var n=Math.floor(e/1e3);l(n)}}))}},57473:function(e,n,t){"use strict";t.d(n,{Z:function(){return a}});var i=t(59301);function a(e,n){var t=(0,i.useRef)();(0,i.useEffect)((function(){t.current=e})),(0,i.useEffect)((function(){if(null!==n){var e=setInterval((function(){t.current()}),n);return function(){return clearInterval(e)}}}),[n])}},10755:function(e,n,t){"use strict";t.d(n,{Z:function(){return q}});var i=t(70236),a=t.n(i),o=t(79800),r=t.n(o),s=t(59301),l=t(96048),c=t(7557),d=t.n(c),u=t(41498),p=t.n(u),h=t(21251),f=t(6848),m=t(14491),g=t(95237),x=t(43604),v=t(6918),w=t(14103),j=t(96820),b=t(37712);var y=function(e){var n,t,i,a,o,c,u,y=e.Prize,A=(0,l.useParams)(),C=(0,s.useState)([{type:1,name:"团体奖证书"},{type:2,name:"个人奖证书"},{type:3,name:"优秀指导教师证书"}]),k=r()(C,2),S=k[0],N=(k[1],function(){var e=p()(d()().mark((function e(n){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,v.Ju)({type:n.type,id:A.identifier});case 2:0===(null==(t=e.sent)?void 0:t.status)&&(location.href="/competitions/exports?id=".concat(A.identifier,"&type=").concat(n.type));case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()),B=[{title:"角色",dataIndex:"role",align:"center",width:80,render:function(e){return(0,b.jsx)(f.Z,{placement:"topLeft",title:e,children:e||"--"})}},{title:"姓名",dataIndex:"name",width:100,render:function(e){return(0,b.jsx)(f.Z,{placement:"topLeft",title:e,children:e||"--"})}},{title:"实名认证",width:100,dataIndex:"real_name_auth",render:function(e){return"authed"===e?"已认证":"authing"===e?"待审核":"未认证"}},{title:"职业认证",width:100,dataIndex:"professional_auth",render:function(e){return"authed"===e?"已认证":"authing"===e?"待审核":"未认证"}},{title:"手机号",dataIndex:"phone_binded",width:100,render:function(e){return e?"已绑定":"未绑定"}},{title:"邮箱号",dataIndex:"email_binded",width:100,render:function(e){return e?"已绑定":"未绑定"}},{title:"开户行及银行卡号信息(队长填写)",dataIndex:"role",align:"center",render:function(e,n){var t,i,a;return"队长"===(null==n?void 0:n.role)?(0,b.jsxs)("span",{style:{width:"50%",textAlign:"center"},children:[(null==y?void 0:y.teams)&&(null==y||null===(t=y.teams[0])||void 0===t||null===(t=t.bank_account)||void 0===t?void 0:t.bank),(null==y?void 0:y.teams)&&(null==y||null===(i=y.teams[0])||void 0===i||null===(i=i.bank_account)||void 0===i?void 0:i.second_bank),(null==y?void 0:y.teams)&&(null==y||null===(a=y.teams[0])||void 0===a||null===(a=a.bank_account)||void 0===a?void 0:a.card_no)]}):"--"}}];return(0,b.jsxs)("div",{children:[(0,b.jsx)("p",{className:h.Z.downloadpdf,children:"温馨提示:填写的个人信息经审批后,将提供个人获奖证书下载;团队队员信息全部审批后,将提供团队获奖证书下载。"}),(0,b.jsx)("p",{style:{marginTop:"30px",fontSize:"14px",color:"#232B40",fontWeight:"600"},children:"证书情况"}),(null==y||null===(n=y.personal_certifications)||void 0===n?void 0:n.length)>0?(0,b.jsxs)("p",{children:[(0,b.jsx)("span",{children:"个人证书:"}),(0,b.jsx)("img",{src:w.Z.IMG_SERVER+"/images/educoder/pdfs.png"}),(0,b.jsx)("a",{style:{marginLeft:"5px"},href:w.Z.API_SERVER+"".concat(null==y||null===(t=y.personal_certifications[0])||void 0===t?void 0:t.url),children:"立即下载"})]}):(0,b.jsxs)("p",{children:[(0,b.jsxs)("span",{children:["个人证书:",(0,b.jsx)("span",{style:{color:"#000"},children:"暂未生成"})]}),(0,b.jsx)("span",{className:"c-red",style:{marginLeft:"20px"},children:"原因:组委会未完成证书审批,请稍后"})]}),(null==y||null===(i=y.team_certifications)||void 0===i?void 0:i.length)>0?(0,b.jsxs)("p",{children:[(0,b.jsx)("span",{children:"团队证书:"}),(0,b.jsx)("img",{src:w.Z.IMG_SERVER+"/images/educoder/pdfs.png"}),(0,b.jsx)("a",{style:{marginLeft:"5px"},href:w.Z.API_SERVER+"".concat(null==y||null===(a=y.team_certifications[0])||void 0===a?void 0:a.url),children:"立即下载"})]}):(0,b.jsx)("p",{children:(0,b.jsxs)("span",{children:["团队证书:",(0,b.jsx)("span",{style:{color:"#000"},children:"暂未生成"})]})}),(null==y||null===(o=y.teams)||void 0===o?void 0:o.length)>0&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("p",{children:[(null==y?void 0:y.teams)&&(null==y||null===(c=y.teams[0])||void 0===c?void 0:c.name),"战队信息填报概况"]}),(0,b.jsx)(m.Z,{columns:B,dataSource:null==y||null===(u=y.teams[0])||void 0===u?void 0:u.team_members,pagination:!1})]}),(0,b.jsx)(g.Z,{style:{marginTop:"20px"},gutter:[20,20],children:S.map((function(e,n){return(0,b.jsx)(x.Z,{children:(0,b.jsx)(j.Z,{icon:(0,b.jsx)("i",{className:"iconfont icon-xiazai5",style:{marginRight:"6px"}}),className:h.Z.pdfBut,onClick:p()(d()().mark((function n(){return d()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,N(e);case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}}),n)}))),children:e.name})},n)}))})]})},A=t(82242),C=t.n(A),k=t(39647),S=t.n(k),N=t(46651),B=t(78241),Z=t(8591),M=t(43418),P=t(71418),T=t(98135),D=t(5112),L=t(3113),E=t(92818),I=t(98814),O=t(69130),z=["user","account","globalSetting","loading","dispatch"],R=N.Z.Dragger,G=(0,l.connect)((function(e){var n=e.user,t=e.account,i=e.loading;return{user:n,account:t,globalSetting:e.globalSetting,loading:i.effects}}))((function(e){var n=e.user,t=e.account,i=(e.globalSetting,e.loading),a=e.dispatch,o=(S()(e,z),B.Z.useForm()),l=r()(o,1)[0],c=(0,s.useState)({}),u=r()(c,2),h=(u[0],u[1]),f=(0,s.useState)(!0),m=r()(f,2),g=m[0],x=m[1],v=(0,s.useState)(),j=r()(v,2),y=j[0],A=j[1],k=(0,s.useState)(),N=r()(k,2),G=N[0],W=N[1],H=(0,s.useState)(),U=r()(H,2),F=U[0],J=U[1],Y=(0,s.useState)(),V=r()(Y,2),K=V[0],q=V[1];(0,s.useEffect)((function(){if(t.basicInfo){var e=t.basicInfo,n={name:e.show_realname?e.name:(0,E.YA)(e.name),gender:e.gender};A(e.name),x(e.show_realname),l.setFieldsValue(n),h(n)}}),[t.basicInfo]);var Q=function(){var e=p()(d()().mark((function e(i){var o,r,s,l,c,u,p,h;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(l=(s=i||{}).name,c=s.gender,u=s.idNumber,G){e.next=4;break}return Z.ZP.info("请先上传照片!"),e.abrupt("return");case 4:return e.next=6,a({type:"account/applyRealNameAuth",payload:{id:(null===(o=t.basicInfo)||void 0===o?void 0:o.id)||(null===(r=n.userInfo)||void 0===r?void 0:r.login),name:l,gender:c,id_number:u,show_realname:g,attachment_ids:[F]}});case 6:p=e.sent,X(),p&&(Z.ZP.info("申请已提交,请等待审核!"),a({type:"account/getBasicInfo",payload:{login:null===(h=n.userInfo)||void 0===h?void 0:h.login}}));case 9:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),X=function(){a({type:"account/setActionTabs",payload:{}})},_={data:{type:"real_name"},multiple:!0,showUploadList:!1,action:"".concat(w.Z.API_SERVER,"/api/attachments.json"),className:O.Z.uploader,onChange:function(e){var n;"uploading"!==e.file.status?"done"===e.file.status&&(console.log(e.file,e.file.response),J(null===(n=e.file.response)||void 0===n?void 0:n.id),(0,E.y3)(e.file.originFileObj,(function(e){W(e),q(!1)}))):q(!0)},beforeUpload:function(e){var n="image/jpeg"===e.type||"image/png"===e.type||"image/jpg"===e.type||"image/bmp"===e.type;return n||Z.ZP.info("请上传正确文件格式"),n}};return(0,b.jsx)(M.Z,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,open:"Account-RealNameAuth"===t.actionTabs.key,title:"修改实名信息",width:"600px",footer:null,children:(0,b.jsx)(P.Z,{spinning:!!K,children:(0,b.jsxs)(B.Z,{className:O.Z.formWrap,form:l,layout:"horizontal",onValuesChange:function(e){h(C()({},l.getFieldsValue())),"name"in e&&A(e.name)},onFinish:Q,children:[(0,b.jsx)(B.Z.Item,{label:"姓名",name:"name",labelCol:{span:3},wrapperCol:{span:12},rules:[{required:!0,message:"请输入真实姓名,最大限制".concat(10,"个字符")},{validator:E.HJ}],extra:(0,b.jsx)("span",{children:g?"(显示:平台将显示您的真实姓名)":"(隐藏:平台将显示你的昵称)"}),children:(0,b.jsx)(T.Z,{disabled:!g,placeholder:"请输入真实姓名,最大限制".concat(10,"个字符"),maxLength:10,addonAfter:(0,b.jsx)("i",{className:"iconfont ".concat(g?"icon-xianshi":"icon-yincang"," font18 ").concat(O.Z.color0152d9),onClick:function(){var e=!g;x(e);var n=e?y:(0,E.YA)(y);l.setFieldsValue({name:n})}})})}),(0,b.jsx)(B.Z.Item,{label:"性别:",name:"gender",labelCol:{span:3},wrapperCol:{span:12},rules:[{required:!0,message:"请选择性别"}],children:(0,b.jsxs)(D.ZP.Group,{children:[(0,b.jsx)(D.ZP,{value:0,children:"男"}),(0,b.jsx)(D.ZP,{value:1,children:"女"})]})}),(0,b.jsx)(B.Z.Item,{label:"证件号:",labelCol:{span:3},name:"idNumber",rules:[{required:!0,message:"请输入证件号"}],children:(0,b.jsx)(T.Z,{placeholder:"请输入证件号"})}),(0,b.jsx)(B.Z.Item,{label:"身份证上传",labelCol:{span:3},children:(0,b.jsxs)("div",{className:O.Z.flexRow,children:[(0,b.jsxs)("div",{className:"".concat(O.Z.flexColumn," ").concat(O.Z.example),children:[(0,b.jsx)("span",{className:O.Z.exampleImg,children:(0,b.jsx)("img",{src:I})}),(0,b.jsxs)("span",{className:"tc",children:[(0,b.jsx)("p",{children:"示例图片"}),(0,b.jsx)("p",{className:"".concat(O.Z.colorOrange," font12"),children:"(png/jpg/bmp格式,不超过2MB)"})]})]}),(0,b.jsxs)("div",{className:O.Z.flexColumn,children:[(0,b.jsx)(R,C()(C()({},_),{},{accept:".png,.jpg,.bmp,.jpeg",children:G?(0,b.jsx)("img",{src:G,className:O.Z.uploadImg}):(0,b.jsxs)("div",{className:O.Z.imageTip,children:[(0,b.jsx)("p",{children:(0,b.jsx)("i",{className:"iconfont icon-cuban2shangchuanyunduan ".concat(O.Z.uploadTipIcon)})}),(0,b.jsx)("p",{className:O.Z.uploadTip,children:(0,b.jsx)("a",{className:O.Z.color05101a,children:"点击或拖拽上传图片"})})]})})),(0,b.jsx)("span",{className:"tc",children:(0,b.jsx)("p",{className:O.Z.viewLargerImg,children:"查看大图"})})]})]})}),(0,b.jsx)("div",{className:O.Z.footerWrap,children:(0,b.jsxs)(B.Z.Item,{children:[(0,b.jsx)(L.ZP,{className:"mr5",size:"middle",onClick:X,children:"取消"}),(0,b.jsx)(L.ZP,{size:"middle",type:"primary",htmlType:"submit",loading:i["account/applyRealNameAuth"],children:"保存"})]})}),(0,b.jsxs)("div",{className:O.Z.note,children:[(0,b.jsx)("p",{children:"认证须知:"}),(0,b.jsx)("p",{children:"1.你需要准备有效的身份证正面(人像面)的证件照照片,请确保证件照片清晰可见,严禁PS;"}),(0,b.jsx)("p",{children:"2.我们将在你提交认证信息后的24小时(不包含节假日)内完成审核,审核结果将会以系统消息的形式发送给你;"}),(0,b.jsx)("p",{children:"3.实名认证审核完成后,无法删除,请谨慎填写;"}),(0,b.jsx)("p",{children:"4.实名认证审核完成后,系统将自动发放500个金币作为奖励;"}),(0,b.jsx)("p",{children:"5.我们会确保你所提供的信息均处于严格的保密状态,不会泄露;"}),(0,b.jsx)("p",{children:"6.如存在恶意乱填写姓名,证件号,及上传与实名认证证件无关图片者,一经发现将冻结EduCoder账号。"}),(0,b.jsx)("p",{children:"7.提交实名认证后系统会自动将状态改为已认证,你将可以体验平台需要实名认证的功能;如果在认证后的使用过程中未通过审核,你将不能继续体验需要认证的功能。"})]})]})})})})),W=t(36693),H=t(93735),U=t.n(H);var F=function(e){var n=e.type,t=e.dispatch,i=e.userid,a=e.isshow,o=e.setPhoneshow,l=e.setEmailshow,c="79e33abd4b6588941ab7622aed1e67e8",u=(0,s.useState)(""),h=r()(u,2),f=h[0],m=h[1],g=(0,s.useState)("获取验证码"),x=r()(g,2),v=x[0],w=(x[1],(0,s.useState)(60)),j=r()(w,2),y=j[0],A=j[1],C=(0,s.useState)(!1),k=r()(C,2),S=k[0],N=k[1],B=(0,s.useState)(""),M=r()(B,2),P=M[0],D=M[1];function E(){return(E=p()(d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(f){e.next=3;break}return 3===n?Z.ZP.info("手机号不能为空"):Z.ZP.info("邮箱地址不能为空"),e.abrupt("return");case 3:return e.next=5,t({type:"competitions/getVerification",payload:{type:n,login:f,smscode:U()(c+f)}});case 5:1===e.sent.status&&(Z.ZP.info("获取验证码成功"),I(),N(!0));case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function I(){A(60);var e=setInterval((function(){--y>-1?A(y):(clearInterval(e),N(!1))}),1e3)}function O(){return(O=p()(d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t({type:"competitions/PhoneBind",payload:{userid:i,code:P,phone:f}});case 2:0===e.sent.status&&(Z.ZP.info("绑定成功"),o("none"));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function z(){return(z=p()(d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t({type:"competitions/EmailBind",payload:{userid:i,code:P,email:f}});case 2:0===e.sent.status&&(Z.ZP.info("绑定成功"),l("none"));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,b.jsxs)("div",{style:{display:a},children:[(0,b.jsx)("p",{children:(0,b.jsx)(T.Z,{value:f,onChange:function(e){return m(e.target.value)},placeholder:3===n?"请输入手机号":"请输入邮箱地址",style:{width:"370px"}})}),(0,b.jsx)("span",{children:(0,b.jsx)(T.Z,{value:P,onChange:function(e){return D(e.target.value)},placeholder:3===n?"请输入手机获取的验证码":"请输入邮箱获取的验证码",style:{width:"250px"}})})," ",(0,b.jsx)(L.ZP,{disabled:S,onClick:function(){return function(){return E.apply(this,arguments)}()},type:"primary",style:{marginLeft:"20px",width:"100px"},children:S?"重新发送".concat(y,"s"):v}),(0,b.jsxs)("p",{style:{marginTop:"30px",width:"370px",textAlign:"center"},children:[(0,b.jsx)(L.ZP,{type:"primary",style:{marginRight:"15px"},onClick:function(){P?3===n?function(){O.apply(this,arguments)}():function(){z.apply(this,arguments)}():Z.ZP.info("验证码不能为空")},children:"确认"}),(0,b.jsx)(L.ZP,{style:{marginLeft:"20px"},onClick:function(){3===n?o("none"):l("none")},children:"取消"})]})]})};var J=function(e){var n=e.dispatch,t=e.userid,i={wrapperCol:{offset:3,span:21}},a=B.Z.useForm(),o=r()(a,1)[0],s=(0,l.useParams)().identifier;return(0,b.jsx)("div",{style:{width:"500px"},children:(0,b.jsxs)(B.Z,{form:o,name:"basic",children:[(0,b.jsx)(B.Z.Item,C()(C()({},i),{},{label:(0,b.jsx)("div",{style:{width:"30px"},children:"开户行"}),name:"bank",rules:[{required:!0,message:"请输入开户行"}],children:(0,b.jsx)(T.Z,{})})),(0,b.jsx)(B.Z.Item,C()(C()({},i),{},{label:(0,b.jsx)("div",{style:{width:"30px"},children:"支行"}),name:"second_bank",rules:[{required:!0,message:"请输入支行"}],children:(0,b.jsx)(T.Z,{})})),(0,b.jsx)(B.Z.Item,C()(C()({},i),{},{label:(0,b.jsx)("div",{style:{width:"30px"},children:"账号"}),name:"card_no",rules:[{required:!0,message:"请输入账号"}],children:(0,b.jsx)(T.Z,{})})),(0,b.jsx)(B.Z.Item,{children:(0,b.jsx)(L.ZP,{type:"primary",htmlType:"submit",onClick:p()(d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o.validateFields().then(function(){var e=p()(d()().mark((function e(i){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n({type:"competitions/setleader",payload:C()({identifier:s,user_id:t},i)});case 2:0===e.sent.status&&Z.ZP.info("提交成功");case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}());case 1:case"end":return e.stop()}}),e)}))),children:"提交"})})]})})},Y={teacher:"教师",student:"学生",professional:"专业人士"};var V=function(e){var n,t,i,a,o=e.Prize,l=e.Accounts,c=e.dispatch,u=e.userid,f=(0,s.useState)("none"),m=r()(f,2),v=m[0],w=m[1],j=(0,s.useState)("none"),y=r()(j,2),A=y[0],C=y[1];function k(e){return S.apply(this,arguments)}function S(){return(S=p()(d()().mark((function e(n){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("1"!==n){e.next=6;break}return e.next=3,c({type:"competitions/Authentication"});case 3:t=e.sent,e.next=9;break;case 6:return e.next=8,c({type:"competitions/Professional"});case 8:t=e.sent;case 9:0===t.status&&Z.ZP.info("撤销成功");case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,b.jsxs)("div",{children:[(0,b.jsxs)(g.Z,{align:"middle",children:[(0,b.jsxs)(x.Z,{children:[(0,b.jsx)("span",{className:"c-red",children:"*"}),"实名信息"]}),"uncertified"===(null==l?void 0:l.authentication)&&(0,b.jsx)(x.Z,{flex:1,className:"ml20",children:(0,b.jsxs)(g.Z,{align:"middle",justify:"space-between",children:[(0,b.jsx)(x.Z,{style:{marginLeft:"20px"},children:"通过实名认证后才能获得证书"}),(0,b.jsx)(L.ZP,{className:h.Z.PerfectBut,onClick:function(){c({type:"account/setActionTabs",payload:{key:"Account-RealNameAuth"}})},children:"立即认证"})]})})]}),(0,b.jsxs)("div",{className:h.Z.PerfectCent,children:[(0,b.jsxs)(g.Z,{children:[(0,b.jsx)(x.Z,{className:h.Z.PerfectCentName,children:"姓名"}),(0,b.jsxs)(x.Z,{className:"ml20",children:[null==l?void 0:l.name,"uncertified"===(null==l?void 0:l.authentication)?null:"applying"===(null==l?void 0:l.authentication)?(0,b.jsxs)("span",{children:[(0,b.jsx)("span",{children:"待审核"}),(0,b.jsx)(L.ZP,{type:"primary",onClick:function(){return k("1")},ghost:!0,style:{marginLeft:"20px"},children:"撤销认证"})]}):(0,b.jsxs)("span",{style:{color:"#6ec76e"},children:[(0,b.jsx)("i",{className:"iconfont icon-wancheng font-14"})," 已认证"]})]})]}),(0,b.jsxs)(g.Z,{className:"mt20",children:[(0,b.jsx)(x.Z,{className:h.Z.PerfectCentName,children:"性别"}),(0,b.jsx)(x.Z,{className:"ml20",children:0===(null==l?void 0:l.gender)?"男":"女"})]})]}),(0,b.jsxs)(g.Z,{align:"middle",children:[(0,b.jsxs)(x.Z,{children:[(0,b.jsx)("span",{className:"c-red",children:"*"}),"职业信息"]}),"uncertified"===(null==l?void 0:l.authentication)&&(0,b.jsx)(x.Z,{flex:1,className:"ml20",children:(0,b.jsxs)(g.Z,{align:"middle",justify:"space-between",children:[(0,b.jsx)(x.Z,{style:{marginLeft:"20px"},children:"通过实名认证后才能获得证书"}),(0,b.jsx)(L.ZP,{className:h.Z.PerfectBut,onClick:function(){c({type:"account/setActionTabs",payload:{key:"Account-ProfessionalAuth"}})},children:"立即认证"})]})})]}),(0,b.jsxs)("div",{className:h.Z.PerfectCent,children:[(0,b.jsxs)(g.Z,{children:[(0,b.jsx)(x.Z,{className:h.Z.PerfectCentName,children:"职业"}),(0,b.jsxs)(x.Z,{className:"ml20",children:[l&&l.identity&&Y[l.identity],"uncertified"===(null==l?void 0:l.authentication)?null:"applying"===(null==l?void 0:l.authentication)?(0,b.jsxs)("span",{children:[(0,b.jsx)("span",{children:"待审核"}),(0,b.jsx)(L.ZP,{type:"primary",onClick:function(){return k("2")},ghost:!0,style:{marginLeft:"20px"},children:"撤销认证"})]}):(0,b.jsxs)("span",{style:{color:"#6ec76e"},children:[(0,b.jsx)("i",{className:"iconfont icon-wancheng font-14"})," 已认证",(0,b.jsx)(L.ZP,{type:"primary",onClick:function(){c({type:"account/setActionTabs",payload:{key:"Account-ProfessionalAuth"}})},ghost:!0,style:{marginLeft:"20px"},children:"重新认证"})]})]})]}),(0,b.jsxs)(g.Z,{className:"mt20",children:[(0,b.jsx)(x.Z,{className:h.Z.PerfectCentName,children:"学号"}),(0,b.jsx)(x.Z,{className:"ml20",children:(null==l?void 0:l.student_id)||"--"})]}),(0,b.jsxs)(g.Z,{className:"mt20",children:[(0,b.jsx)(x.Z,{className:h.Z.PerfectCentName,children:"学校"}),(0,b.jsx)(x.Z,{className:"ml20",children:(null==l?void 0:l.school_name)||"--"})]}),(0,b.jsxs)(g.Z,{className:"mt20",children:[(0,b.jsx)(x.Z,{className:h.Z.PerfectCentName,children:"院系"}),(0,b.jsx)(x.Z,{className:"ml20",children:(null==l?void 0:l.department_name)||"--"})]})]}),(0,b.jsxs)("p",{children:[(0,b.jsx)("span",{className:"c-red",children:"*"}),"联系方式"]}),(0,b.jsxs)("div",{className:h.Z.PerfectCent,children:[(0,b.jsxs)(g.Z,{children:[(0,b.jsx)(x.Z,{className:h.Z.PerfectCentName,children:"手机号"}),(0,b.jsx)(x.Z,{className:"ml20",children:(0,b.jsxs)(g.Z,{children:[(0,b.jsx)(x.Z,{style:{width:"150px"},children:(null==l?void 0:l.phone)||"--"}),"none"===v&&(0,b.jsx)(L.ZP,{type:"link",className:"ml20",style:{color:"#165DFF"},onClick:function(){w("block")},children:"更换"})]})})]}),(0,b.jsx)("div",{className:"mt10",style:{marginLeft:"74px"},children:(0,b.jsx)(F,{type:3,dispatch:c,userid:null==l?void 0:l.id,isshow:v,setPhoneshow:w,setEmailshow:C})}),(0,b.jsxs)(g.Z,{className:"mt20",children:[(0,b.jsx)(x.Z,{className:h.Z.PerfectCentName,children:"Email"}),(0,b.jsx)(x.Z,{className:"ml20",children:(0,b.jsxs)(g.Z,{children:[(0,b.jsx)(x.Z,{style:{width:"150px"},children:(null==l?void 0:l.mail)||"--"}),"none"===A&&(0,b.jsx)(L.ZP,{type:"link",className:"ml20",style:{color:"#165DFF"},onClick:function(){C("block")},children:"更换"})]})})]}),(0,b.jsx)("div",{className:"mt10",style:{marginLeft:"74px"},children:(0,b.jsx)(F,{type:4,dispatch:c,userid:null==l?void 0:l.id,isshow:A,setEmailshow:C,setPhoneshow:w})})]}),null!=o&&o.leader&&null!=o&&o.teams&&null!=o&&null!==(n=o.teams[0])&&void 0!==n&&null!==(n=n.bank_account)&&void 0!==n&&n.bank?(0,b.jsxs)(g.Z,{align:"middle",children:[(0,b.jsx)(x.Z,{children:"签/领/开户行及银行卡号"}),(0,b.jsx)(x.Z,{className:"ml20",style:{fontSize:"12px"},children:"为保障奖金的及时发放,请队长如实填写你名下的银行卡信息"})]}):(0,b.jsxs)("div",{children:[(0,b.jsxs)(g.Z,{align:"middle",children:[(0,b.jsx)(x.Z,{children:"签/领/开户行及银行卡号"}),(0,b.jsx)(x.Z,{className:"ml20",style:{fontSize:"12px"},children:"为保障奖金的及时发放,请队长如实填写你名下的银行卡信息"})]}),(0,b.jsx)(J,{dispatch:c,userid:u})]}),(null==o?void 0:o.leader)&&(0,b.jsxs)("div",{className:h.Z.PerfectCent,style:{border:0},children:[(0,b.jsxs)(g.Z,{children:[(0,b.jsx)(x.Z,{className:h.Z.PerfectCentName,children:"开户行"}),(0,b.jsx)(x.Z,{className:"ml20",children:(null==o?void 0:o.teams)&&(null==o||null===(t=o.teams[0])||void 0===t||null===(t=t.bank_account)||void 0===t?void 0:t.bank)||"--"})]}),(0,b.jsxs)(g.Z,{className:"mt20",children:[(0,b.jsx)(x.Z,{className:h.Z.PerfectCentName,children:"支行"}),(0,b.jsx)(x.Z,{className:"ml20",children:(null==o?void 0:o.teams)&&(null==o||null===(i=o.teams[0])||void 0===i||null===(i=i.bank_account)||void 0===i?void 0:i.second_bank)||"--"})]}),(0,b.jsxs)(g.Z,{className:"mt20",children:[(0,b.jsx)(x.Z,{className:h.Z.PerfectCentName,children:"账号"}),(0,b.jsx)(x.Z,{className:"ml20",children:(null==o?void 0:o.teams)&&(null==o||null===(a=o.teams[0])||void 0===a||null===(a=a.bank_account)||void 0===a?void 0:a.card_no)||"--"})]})]}),(0,b.jsx)(W.Z,{Scoid:null==l?void 0:l.school_id}),(0,b.jsx)(G,{})]})},K=t(68314),q=(0,l.connect)((function(e){return a()(e),{}}))((function(e){var n=e.Prize,t=e.Accounts,i=(e.getAccounts,e.dispatch),a=e.userid,o=(0,s.useState)("DownPdf"),l=r()(o,2),c=l[0],d=l[1];return(0,b.jsxs)("div",{style:{margin:"15px 0"},children:[(0,b.jsx)(K.tp,{dataSource:[{name:"获奖证书下载",id:"DownPdf"},{name:"完善个人信息",id:"Perfect"}],value:c,onChange:function(e){return d(e)}}),"DownPdf"==c&&(0,b.jsx)(y,{Prize:n}),"Perfect"==c&&(0,b.jsx)(V,{userid:a,dispatch:i,Prize:n,Accounts:t})]})}))},5265:function(e,n,t){"use strict";t.d(n,{Z:function(){return A}});var i=t(7557),a=t.n(i),o=t(41498),r=t.n(o),s=t(79800),l=t.n(s),c=t(59301),d=t(43418),u=t(8591),p=t(6848),h=t(3113),f=t(21251),m=t(96048),g=t(11829),x=t(68552),v=t(68930),w=t(82420);Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var j="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAiIGhlaWdodD0iMjAiPjxwYXRoIGQ9Ik0xMjggMGg3NjhjNzAuNCAwIDEyOCA1Ny42IDEyOCAxMjh2NzY4YzAgNzAuNC01Ny42IDEyOC0xMjggMTI4SDEyOEExMjguMzU4IDEyOC4zNTggMCAwIDEgMCA4OTZWMTI4QzAgNTcuNiA1Ny42IDAgMTI4IDB6IiBmaWxsPSIjMTY1REZGIiBmaWxsLW9wYWNpdHk9Ii4xNCIvPjxwYXRoIGQ9Ik0yOTQuNCAzNzcuNiAxNjAgNDgwYy02LjQgNi40LTEyLjggMTIuOC0xMi44IDI1LjZ2NTcuNmMwIDEyLjggNi40IDE5LjIgMTkuMiAzMmwxMzQuNCA5NmMxMi44IDEyLjggMzguNCAxMi44IDUxLjIgMGw2LjQtNi40YzYuNC02LjQgMTIuOC0xOS4yIDYuNC0zMnMtNi40LTI1LjYtMTkuMi0zMmwtMTE1LjItODMuMiAxMjEuNi05NmM2LjQtNi40IDEyLjgtMTkuMiAxMi44LTI1LjYgMC0xMi44IDAtMTkuMi02LjQtMzItMTkuMi0xOS4yLTQ0LjgtMjUuNi02NC02LjR6bTI3NS4yLTEyLjhjLTEyLjggNi40LTE5LjIgMTIuOC0yNS42IDE5LjJMNDA5LjYgNjMzLjZhNDAuODA2IDQwLjgwNiAwIDAgMCAwIDM4LjRjNi40IDEyLjggMTkuMiAxOS4yIDM4LjQgMTkuMiAxMi44IDAgMjUuNi02LjQgMzItMTkuMmwxMzQuNC0yNDkuNmM2LjQtNi40IDYuNC0xOS4yIDYuNC0zMnMtMTIuOC0xOS4yLTE5LjItMjUuNmgtMzJ6bTEyOCAwYy0xMi44IDAtMTkuMiA2LjQtMjUuNiAxMi44LTEyLjggMTkuMi0xMi44IDQ0LjggNi40IDU3LjZsMTIxLjYgOTYtMTIxLjYgODkuNmMtMTkuMiAxMi44LTE5LjIgMzguNC0xMi44IDUxLjJsNi40IDYuNGMxMi44IDE5LjIgMzguNCAxOS4yIDU3LjYgNi40bDEzNC40LTk2YzYuNC02LjQgMTIuOC0xOS4yIDE5LjItMjUuNnYtNTcuNmMwLTEyLjgtNi40LTE5LjItMTIuOC0yNS42TDczNiAzNzcuNmMtMTkuMi0xMi44LTMyLTEyLjgtMzguNC0xMi44eiIgZmlsbD0iIzE2NURGRiIvPjwvc3ZnPg==",b=t(34835),y=t(37712);var A=function(e){var n,t,i,o,s,A,C,k=e.item,S=e.Header,N=e.index,B=e.StaffDetail,Z=e.dispatch,M=(0,c.useState)(!0),P=l()(M,2),T=P[0],D=P[1],L=(0,c.useState)(!0),E=l()(L,2),I=E[0],O=E[1],z=(0,c.useState)(!1),R=l()(z,2),G=R[0],W=R[1],H=(0,c.useRef)(),U=(0,c.useState)(!1),F=l()(U,2),J=F[0],Y=F[1],V=(0,m.useParams)().identifier;(0,c.useEffect)((function(){setTimeout((function(){H.current.children[0].clientHeight>88&&W(!0)}),10)}),[]);var K=function(e){var n,t;(0,x.tJ)(Z,!0)&&((null==e?void 0:e.shixun_status)>1&&Y(!0),null!=e&&e.is_jupyter||null!=e&&e.is_jupyter_lab?Z({type:"shixunsDetail/execJupyter",payload:{id:null==e||null===(t=e.shixun)||void 0===t?void 0:t.identifier}}).then((function(n){Y(!1),null!=n&&n.identifier&&window.open("/tasks/".concat(n.identifier,"/jupyter?competition_entry_id=").concat(null==e?void 0:e.id,"&type=competitions"))})):Z({type:"shixunsDetail/execShixun",payload:{id:null==e||null===(n=e.shixun)||void 0===n?void 0:n.identifier}}).then((function(n){Y(!1),null!=n&&n.game_identifier?window.open("/tasks/".concat(n.game_identifier,"?competition_entry_id=").concat(null==e?void 0:e.id,"&type=competitions")):2===(null==n?void 0:n.status)?q(null==n?void 0:n.message):3===(null==n?void 0:n.status)&&Q(null==n?void 0:n.message)})))},q=function e(n){var t,i;n=null!==(t=n)&&void 0!==t&&t.includes(".json")?n:"".concat(n,".json"),d.Z.confirm({centered:!0,title:"提示",okText:"确定",cancelText:"取消",content:(0,y.jsx)("div",{className:"tc font16",children:"实训已经更新了,正在为您重置!"}),onOk:(i=r()(a()().mark((function t(){var i,o;return a()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,v.$Q)({url:n});case 2:if(i=t.sent){t.next=5;break}return t.abrupt("return");case 5:return u.ZP.success("重置成功,正在进入实践项目!"),t.next=8,(0,v.Ir)({id:i.shixun_identifier});case 8:if(null==(o=t.sent)||!o.game_identifier){t.next=12;break}return window.open("/tasks/".concat(o.game_identifier)),t.abrupt("return");case 12:2===(null==o?void 0:o.status)?e(null==o?void 0:o.message):3===(null==o?void 0:o.status)&&Q(null==o?void 0:o.message);case 13:case"end":return t.stop()}}),t)}))),function(){return i.apply(this,arguments)})})},Q=function(e){d.Z.confirm({centered:!0,title:"提示",okText:"确定",cancelText:"取消",content:(0,y.jsxs)("div",{className:"tc font16",children:["目前该实践项目尚在内测中,将于",e,"之后开放,谢谢!"]})})};return(0,y.jsxs)("div",{className:f.Z.box,children:[(0,y.jsxs)("div",{style:{justifyContent:"space-between",display:"flex",padding:"0 10px"},children:[(0,y.jsxs)("span",{className:f.Z.title_style,style:{color:"#333333",fontWeight:500,fontSize:"14px"},children:[null!=S&&S.is_new?"赛题":"任务",N+1]}),(0,y.jsxs)("span",{style:{color:"#9096A3",marginLeft:"auto",fontSize:"12px"},children:["作品提交时间",(0,y.jsxs)("span",{style:{color:"#232B40",marginLeft:5},children:[null==S?void 0:S.start_time,"~",null==S?void 0:S.end_time]})]})]}),(0,y.jsxs)("div",{style:{padding:10,display:"flex",position:"relative"},children:[(0,y.jsx)("img",{src:null==k?void 0:k.pic,style:{width:220,height:130,borderRadius:"4px"}}),(0,y.jsxs)("div",{style:{marginLeft:20,width:"75%"},children:[(0,y.jsxs)("div",{style:{justifyContent:"space-between",display:"flex"},children:[(0,y.jsxs)("div",{children:[(0,y.jsx)(p.Z,{title:(null==k?void 0:k.name)||(null==k||null===(n=k.shixun)||void 0===n?void 0:n.name),children:(0,y.jsx)("span",{style:{color:"#333333",fontWeight:"500",fontSize:"14px"},children:(null==k?void 0:k.name)||(null==k||null===(t=k.shixun)||void 0===t?void 0:t.name)})}),(0,y.jsxs)("span",{style:{color:"#9096A3",marginLeft:40},children:["关卡",(0,y.jsx)("span",{style:{color:"#333333",marginLeft:5},children:(null==k?void 0:k.challenges_count)||(null==k||null===(i=k.shixun)||void 0===i?void 0:i.challenges_count)})]})]}),(0,y.jsx)("span",{style:{marginLeft:"auto"},children:((null==B?void 0:B.enrolled)&&"ended"!==(null==S?void 0:S.competition_status)||(0,b.eB)()||(null===(o=S.permission)||void 0===o?void 0:o.editable))&&(0,y.jsx)(h.ZP,{loading:J,onClick:r()(a()().mark((function e(){var n,t,i;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null==S||!S.is_new){e.next=11;break}return e.next=3,(0,w.ZP)("/api/competitions/".concat(V,"/check_team_member.json"),{method:"post"});case 3:if(0!==(null==(n=e.sent)?void 0:n.status)){e.next=9;break}return K(k),e.next=8,(0,w.ZP)("/api/competitions/".concat(V,"/enter_competition_question.json"),{method:"post",body:{competition_stage_id:null==k?void 0:k.competition_stage_id,competition_stage_section_id:null==k?void 0:k.competition_stage_section_id,competition_entry_id:null==k?void 0:k.id,shixun_id:null==k||null===(t=k.shixun)||void 0===t?void 0:t.id}});case 8:e.sent;case 9:e.next=12;break;case 11:window.open("/shixuns/".concat((null==k?void 0:k.identifier)||(null==k||null===(i=k.shixun)||void 0===i?void 0:i.identifier),"/challenges"));case 12:case"end":return e.stop()}}),e)}))),style:{marginLeft:30,borderRadius:14,fontSize:12,width:88},type:"primary",children:"开启挑战"})})]}),(0,y.jsxs)("div",{ref:H,style:{maxHeight:T&&100,position:"relative",overflow:"hidden"},children:[(0,y.jsx)(g.Z,{style:{fontSize:"14px",color:"#9096A3",marginTop:20,position:"relative"},value:(null==k?void 0:k.description)||""}),G&&T&&(0,y.jsx)("div",{className:f.Z.maskText})]}),G&&(0,y.jsxs)("div",{className:f.Z.colorhove,style:{textAlign:"end",cursor:"pointer"},onClick:function(){D(!T)},children:[T?"阅读全文 ":"收起全文 ",(0,y.jsx)("i",{className:"iconfont font14 ".concat(T?"icon-jiantou9":"icon-changyongtubiao-xianxingdaochu-zhuanqu-")})]}),(0,y.jsxs)("div",{style:{marginTop:14,maxHeight:I&&58,overflow:"hidden"},children:[null==k||null===(s=k.challenges)||void 0===s?void 0:s.map((function(e,n){return(0,y.jsxs)("div",{style:{marginTop:0===n?0:12},children:[(0,y.jsx)("img",{src:j,style:{width:20,height:20}}),(0,y.jsxs)("span",{style:{marginLeft:10},children:["第",n+1,"关",null==e?void 0:e.challenge_name]})]})})),null==k||null===(A=k.challenge_settings)||void 0===A?void 0:A.map((function(e,n){return(0,y.jsxs)("div",{style:{marginTop:0===n?0:12},children:[(0,y.jsx)("img",{src:j,style:{width:20,height:20}}),(0,y.jsxs)("span",{style:{marginLeft:10},children:["第",n+1,"关",null==e?void 0:e.challenge_name]})]})}))]}),(0,y.jsx)("div",{className:f.Z.colorhove,style:{position:"absolute",bottom:14,right:10,cursor:"pointer"},children:((null==k?void 0:k.challenges_count)||(null==k||null===(C=k.shixun)||void 0===C?void 0:C.challenges_count))>2&&(0,y.jsxs)("span",{onClick:function(){O(!I)},children:[I?"展开":"收起"," ",(0,y.jsx)("i",{className:"iconfont font14 ".concat(I?"icon-jiantou9":"icon-changyongtubiao-xianxingdaochu-zhuanqu-")})]})})]})]})]})}},36693:function(e,n,t){"use strict";t.d(n,{Z:function(){return X}});var i=t(82242),a=t.n(i),o=t(7557),r=t.n(o),s=t(41498),l=t.n(s),c=t(79800),d=t.n(c),u=t(39647),p=t.n(u),h=t(59301),f=t(96048),m=t(57809),g=t(46651),x=t(78241),v=t(8591),w=t(43418),j=t(95237),b=t(43604),y=t(71418),A=t(98135),C=t(88522),k=t(3113),S=t(14103),N=t(51941),B=t(69130),Z=t(92818),M=t(53182),P=t(19842),T=t(2720),D=t(97650),L=t(59199),E="flexRow___jGYtM",I="flexColumn___NPMB3",O="formWrap___vwH9N",z="example____BmJC",R="footerWrap___lp1L0",G=t(37712),W=["account","globalSetting","loading","dispatch","schoolName","visible","onClose","onSuccess"],H=function(e,n){return n.some((function(n){return n.label.toLowerCase().indexOf(e.toLowerCase())>-1}))},U=A.Z.TextArea,F=(0,f.connect)((function(e){var n=e.account,t=e.loading;return{account:n,globalSetting:e.globalSetting,loading:t.effects}}))((function(e){e.account,e.globalSetting;var n=e.loading,t=e.dispatch,i=e.schoolName,a=e.visible,o=e.onClose,s=void 0===o?function(){}:o,c=e.onSuccess,u=void 0===c?function(){}:c,f=(p()(e,W),x.Z.useForm()),m=d()(f,1)[0];(0,h.useEffect)((function(){m.setFieldsValue({name:i})}),[i]);var g=function(){var e=l()(r()().mark((function e(n){var i,a,o,l,c,d,p;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=(i=n||{}).name,o=i.city,l=void 0===o?[]:o,c=i.address,d=i.remarks,e.next=3,t({type:"account/appplySchool",payload:{name:a,province:l[0],city:l[1],address:c,remarks:d}});case 3:p=e.sent,s(),p&&(v.ZP.success("新增学校/单位成功!"),u(a));case 6:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return(0,G.jsx)(w.Z,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,open:a,title:"申请添加单位名称",width:"600px",footer:null,children:(0,G.jsxs)(x.Z,{className:O,form:m,labelCol:{span:4},wrapperCol:{span:20},onFinish:g,children:[(0,G.jsx)(x.Z.Item,{label:"单位全称:",name:"name",rules:[{required:!0,message:"请输入学校或工作单位"}],children:(0,G.jsx)(A.Z,{placeholder:"学校或工作单位"})}),(0,G.jsxs)("div",{className:"".concat(E," ").concat(z),children:[(0,G.jsx)("div",{children:"示例:"}),(0,G.jsxs)("div",{className:I,children:[(0,G.jsxs)("div",{children:[(0,G.jsx)(T.Z,{style:{color:"rgb(82, 196, 26)"}}),(0,G.jsx)("span",{className:"font14 ml5",children:"正确示例:数据结构"})]}),(0,G.jsxs)("div",{children:[(0,G.jsx)(D.Z,{style:{color:"red"}}),(0,G.jsx)("span",{className:"font14 ml5",children:"错误示例:数据结构2019春"})]})]})]}),(0,G.jsx)(x.Z.Item,{label:"地区:",name:"city",children:(0,G.jsx)(P.Z,{allowClear:!0,size:"middle",options:L.P,placeholder:"请选择所在地",showSearch:{matchInputWidth:!0,filter:H}})}),(0,G.jsx)(x.Z.Item,{label:"详细地址:",name:"address",children:(0,G.jsx)(A.Z,{placeholder:"请填写完整的地址信息"})}),(0,G.jsx)(x.Z.Item,{label:"说明:",name:"remarks",children:(0,G.jsx)(U,{placeholder:"再次说明特别情况(选填)"})}),(0,G.jsx)("div",{className:R,children:(0,G.jsxs)(x.Z.Item,{children:[(0,G.jsx)(k.ZP,{className:"mr5",size:"middle",onClick:function(){s()},children:"取消"}),(0,G.jsx)(k.ZP,{size:"middle",type:"primary",htmlType:"submit",loading:n["account/appplySchool"],children:"保存"})]})})]})})})),J=t(50251),Y=t(89392),V=["user","account","globalSetting","loading","dispatch","Scoid"],K=m.default.Option,q=g.Z.Dragger,Q=function(e){return e[e.Professor=1]="Professor",e[e.AssistantProfessor=2]="AssistantProfessor",e[e.Student=3]="Student",e}(Q||{}),X=(0,f.connect)((function(e){var n=e.user,t=e.account,i=e.loading;return{user:n,account:t,globalSetting:e.globalSetting,loading:i.effects}}))((function(e){var n,t,i=e.user,o=e.account,s=e.globalSetting,c=e.loading,u=e.dispatch,f=e.Scoid,g=(p()(e,V),x.Z.useForm()),P=d()(g,1)[0],T=(0,h.useState)({}),D=d()(T,2),L=D[0],E=D[1],I=(0,h.useState)([]),O=d()(I,2),z=O[0],R=O[1],W=(0,h.useState)([]),H=d()(W,2),U=H[0],X=H[1],_=(0,h.useState)([]),$=d()(_,2),ee=$[0],ne=$[1],te=(0,h.useState)([]),ie=d()(te,2),ae=ie[0],oe=ie[1],re=(0,h.useState)(),se=d()(re,2),le=se[0],ce=se[1],de=(0,h.useState)(),ue=d()(de,2),pe=ue[0],he=ue[1],fe=(0,h.useState)(),me=d()(fe,2),ge=me[0],xe=me[1],ve=(0,h.useState)(),we=d()(ve,2),je=we[0],be=we[1],ye=(0,h.useState)(),Ae=d()(ye,2),Ce=Ae[0],ke=Ae[1],Se=(0,h.useRef)((0,Y.throttle)((function(e){return Ne(e)}),1200,{leading:!0,trailing:!0})).current;(0,h.useEffect)((function(){}),[]),(0,h.useEffect)((function(){l()(r()().mark((function e(){var n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(f){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,Be(f);case 4:n=e.sent,ne(null==n?void 0:n.departments);case 6:case"end":return e.stop()}}),e)})))()}),[f]);var Ne=function(){var e=l()(r()().mark((function e(n){var t,i,o;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,u({type:"account/getSchoolOption",payload:{keyword:n,limit:10}});case 2:t=e.sent,R(null==t?void 0:t.schools),n&&""!=n&&(X(null==t||null===(i=t.schools)||void 0===i?void 0:i.filter((function(e){return e.name.includes(n)}))),((null==t||null===(o=t.schools)||void 0===o?void 0:o.find((function(e){return e.name===n})))||{}).id?Me(n,null,null==t?void 0:t.schools):(P.setFieldsValue({department:""}),E(a()(a()({},L),{school:n,department:""}))));case 5:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),Be=function(e){if(e)return u({type:"account/getDepartmentOption",payload:{id:e}})};(0,h.useEffect)((function(){if(o.basicInfo){var e=o.basicInfo,n={identity:e.identity,school:e.school_name,department:e.department_name,studentNo:e.student_id,jobTitle:"teacher"==e.identity?e.technical_title:"教授",manager:"professional"==e.identity?e.technical_title:"企业管理者"};P.setFieldsValue(n),E(n)}}),[o.basicInfo]);var Ze=function(e,n){o.actionTabs.checkedList.includes(Q.Professor)?w.Z.confirm({centered:!0,okText:"确定",cancelText:"取消",title:"提示",content:(0,G.jsx)("div",{className:"tc",children:n||"申请已提交,请等待审核"}),onOk:function(){window.location.href="/classrooms/".concat(e,"/students")}}):window.location.href="/classrooms/".concat(e,"/students")},Me=function(){var e=l()(r()().mark((function e(n,t,i){var o,s,l,c,d;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l=null===(o=(i||z).find((function(e){return e.name===n})))||void 0===o?void 0:o.id,e.next=3,Be(l);case 3:if(e.t0=e.sent,e.t0){e.next=6;break}e.t0={};case 6:c=e.t0,ne(null==c?void 0:c.departments),d=t||(null==c||null===(s=c.departments)||void 0===s||null===(s=s[0])||void 0===s?void 0:s.name),P.setFieldsValue({department:d}),E(a()(a()({},L),{school:n,department:d}));case 11:case"end":return e.stop()}}),e)})));return function(n,t,i){return e.apply(this,arguments)}}(),Pe=function(){var e=l()(r()().mark((function e(n){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ne();case 2:P.setFieldsValue({school:n,department:""}),E(a()(a()({},L),{school:n,department:""}));case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),Te=function(){var e=l()(r()().mark((function e(n){var t,a,s,l,c,d,p,h,f,m,g,x,w,j,b,y,A;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(d=(c=n||{}).school,p=c.department,h=c.identity,f=c.studentNo,m=c.jobTitle,g=c.manager,le){e.next=4;break}return v.ZP.info("请先上传照片!"),e.abrupt("return");case 4:return x=null===(t=z.find((function(e){return e.name===d})))||void 0===t?void 0:t.id,w=null===(a=ee.find((function(e){return e.name===p})))||void 0===a?void 0:a.id,j="student"===h?f:"teacher"===h?m:g,e.next=9,u({type:"account/applyProfessionalAuth",payload:{id:(null===(s=o.basicInfo)||void 0===s?void 0:s.id)||(null===(l=i.userInfo)||void 0===l?void 0:l.login),school_id:x,department_id:w,identity:h,extra:j,attachment_ids:[pe]}});case 9:if(b=e.sent,!o.actionTabs.code){e.next=15;break}return e.next=13,(0,J.cR)({invite_code:o.actionTabs.code,professor:o.actionTabs.checkedList.includes(Q.Professor)?1:null,assistant_professor:o.actionTabs.checkedList.includes(Q.AssistantProfessor)?1:null,student:o.actionTabs.checkedList.includes(Q.Student)?1:null});case 13:"加入成功"===(y=e.sent).message&&(null!=y&&y.course_id?Ze(y.course_id,y.message):v.ZP.success(y.message));case 15:De(),b&&(v.ZP.info("申请已提交,请等待审核!"),u({type:"account/getBasicInfo",payload:{login:null===(A=i.userInfo)||void 0===A?void 0:A.login}}));case 17:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),De=function(){u({type:"account/setActionTabs",payload:{}})},Le={data:{type:"professional"},multiple:!0,showUploadList:!1,action:"".concat(S.Z.API_SERVER,"/api/attachments.json"),className:B.Z.uploader,onChange:function(e){var n;"uploading"!==e.file.status?"done"===e.file.status&&(console.log(e.file,e.file.response),he(null===(n=e.file.response)||void 0===n?void 0:n.id),(0,Z.y3)(e.file.originFileObj,(function(e){ce(e),xe(!1)}))):xe(!0)},beforeUpload:function(e){var n="image/jpeg"===e.type||"image/png"===e.type||"image/jpg"===e.type||"image/bmp"===e.type;return n||v.ZP.info("请上传正确文件格式"),n}};return(0,G.jsxs)(w.Z,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,className:B.Z.modal,open:"Account-ProfessionalAuth"===o.actionTabs.key,title:(0,G.jsxs)(j.Z,{style:{padding:"25px"},align:"middle",justify:"space-between",children:[(0,G.jsx)(b.Z,{children:"职业认证"}),(0,G.jsx)(b.Z,{children:(0,G.jsx)("i",{className:"iconfont icon-guanbi11",style:{color:"#979797",cursor:"pointer"},onClick:De})})]}),width:"660px",footer:null,children:[(0,G.jsx)(y.Z,{spinning:!!ge,children:(0,G.jsxs)(x.Z,{className:B.Z.formWrap,form:P,colon:!1,onValuesChange:function(e){(E(a()({},P.getFieldsValue())),"school"in e)&&(X(z.filter((function(n){return n.name.includes(e.school)}))),(z.find((function(n){return n.name===e.school}))||{}).id?Me(e.school):(P.setFieldsValue({department:""}),E(a()(a()({},L),{school:e.school,department:""}))))},onFinish:Te,children:[(0,G.jsxs)(j.Z,{gutter:[10,0],children:[(0,G.jsx)(b.Z,{flex:"300px",children:(0,G.jsx)(x.Z.Item,{label:"职业",name:"identity",rules:[{required:!0,message:"请先选择职业"}],children:(0,G.jsxs)(m.default,{children:[(0,G.jsx)(K,{value:"teacher",children:"教师"}),(0,G.jsx)(K,{value:"student",children:"学生"}),(0,G.jsx)(K,{value:"professional",children:"专业人士"})]})})}),"student"===L.identity&&(0,G.jsx)(b.Z,{flex:"200px",children:(0,G.jsx)(x.Z.Item,{initialValue:L.studentNo,name:"studentNo",rules:[{required:!0,message:"请先输入学号"}],children:(0,G.jsx)(A.Z,{type:"text",placeholder:"请输入学号"})})}),"teacher"===L.identity&&(0,G.jsx)(b.Z,{flex:"200px",children:(0,G.jsx)(x.Z.Item,{initialValue:L.jobTitle,name:"jobTitle",rules:[{required:!0,message:"请先选择职称"}],children:(0,G.jsxs)(m.default,{children:[(0,G.jsx)(K,{value:"教授",children:"教授"}),(0,G.jsx)(K,{value:"副教授",children:"副教授"}),(0,G.jsx)(K,{value:"讲师",children:"讲师"}),(0,G.jsx)(K,{value:"助教",children:"助教"})]})})}),"professional"===L.identity&&(0,G.jsx)(b.Z,{flex:"200px",children:(0,G.jsx)(x.Z.Item,{initialValue:L.manager,name:"manager",rules:[{required:!0,message:"请先选择职称"}],children:(0,G.jsxs)(m.default,{children:[(0,G.jsx)(K,{value:"企业管理者",children:"企业管理者"}),(0,G.jsx)(K,{value:"部门管理者",children:"部门管理者"}),(0,G.jsx)(K,{value:"高级工程师",children:"高级工程师"}),(0,G.jsx)(K,{value:"工程师",children:"工程师"}),(0,G.jsx)(K,{value:"助理工程师",children:"助理工程师"})]})})})]}),(0,G.jsx)(x.Z.Item,{label:"学校/单位",name:"school",extra:L.school&&!(null!=z&&z.find((function(e){return e.name===L.school})))&&(0,G.jsxs)("div",{className:B.Z.schoolHintWrap,children:[(0,G.jsxs)("span",{className:B.Z.colorCDCDCD,children:["未找到包含“",L.school,"”的高校,"]}),(0,G.jsx)("span",{className:"".concat(B.Z.color0152d9," current"),onClick:function(){be(!0)},children:"申请新增"})]}),rules:[{required:!0,message:"请先选择学校/单位"}],children:(0,G.jsx)(C.Z,{showSearch:!0,onSearch:Se,options:null==U?void 0:U.map((function(e){return{value:e.name}}))})}),(0,G.jsx)(x.Z.Item,{label:"院系/部门",name:"department",extra:L.department&&!(null!=ee&&ee.find((function(e){return e.name===L.department})))&&(0,G.jsxs)("div",{className:B.Z.schoolHintWrap,children:[(0,G.jsx)("span",{className:B.Z.colorCDCDCD,children:L.department?"未找到包含“".concat(L.department,"”的高校,"):"未找到院系,"}),(0,G.jsx)("span",{className:"".concat(B.Z.color0152d9," current"),onClick:function(){z.find((function(e){return e.name===L.school}))?ke(!0):v.ZP.info("请先选择正确的单位或者学校!")},children:"申请新增"})]}),rules:[{required:!0,message:"请先选择院系/部门"}],children:(0,G.jsx)(C.Z,{showSearch:!0,onChange:function(e){return oe(ee.filter((function(n){return n.name.includes(e)})))},options:null==ae?void 0:ae.map((function(e){return{value:e.name}}))})}),(0,G.jsx)(x.Z.Item,{label:"职业证上传",children:(0,G.jsxs)("div",{className:B.Z.flexRow,children:[(0,G.jsxs)("div",{className:B.Z.flexColumn,children:[(0,G.jsx)(q,a()(a()({},Le),{},{accept:".png,.jpg,.bmp,.jpeg",children:le?(0,G.jsx)("img",{src:le,className:B.Z.uploadImg}):(0,G.jsxs)("div",{className:B.Z.imageTip,children:[(0,G.jsx)("p",{children:(0,G.jsx)("i",{className:"iconfont icon-cuban2shangchuanyunduan ".concat(B.Z.uploadTipIcon)})}),(0,G.jsx)("p",{className:B.Z.uploadTip,children:(0,G.jsx)("a",{className:B.Z.color05101a,children:"点击或拖拽上传图片"})})]})})),(0,G.jsx)("span",{className:"tc",children:(0,G.jsx)("p",{className:B.Z.viewLargerImg,children:"查看大图"})})]}),(0,G.jsxs)("div",{className:"".concat(B.Z.flexColumn," ").concat(B.Z.example),children:[(0,G.jsx)("span",{className:B.Z.exampleImg,children:(0,G.jsx)("img",{src:N})}),(0,G.jsxs)("span",{className:"tc",children:[(0,G.jsx)("p",{children:"示例图片"}),(0,G.jsx)("p",{className:"".concat(B.Z.colorOrange," font12"),children:"(png/jpg/bmp格式,不超过2MB)"})]})]})]})}),(0,G.jsx)("div",{className:B.Z.footerWrap,children:(0,G.jsxs)(x.Z.Item,{children:[(0,G.jsx)(k.ZP,{className:"mr5",size:"middle",onClick:De,children:"取消"}),(0,G.jsx)(k.ZP,{size:"middle",type:"primary",htmlType:"submit",loading:c["account/applyProfessionalAuth"],children:"保存"})]})}),(0,G.jsxs)("div",{className:B.Z.note,children:[(0,G.jsx)("p",{children:"认证须知:"}),(0,G.jsx)("p",{children:"1.根据职业上传相应的证件照:教师(教师证),专业人士(员工证)、学生(学生证),请确保证件照内容完整并且清晰可见,严禁PS;"}),(0,G.jsx)("p",{children:"2.我们将在你提交职业证信息后的24小时(不包含节假日)内完成审核,审核结果将会以系统消息的形式发送给你;"}),(0,G.jsx)("p",{children:"3.职业认证审核完成后,无法删除,请谨慎填写;职业变更请选择重新认证;"}),(0,G.jsx)("p",{children:"4.职业认证审核完成后,系统将自动发放500个金币作为奖励;"}),(0,G.jsx)("p",{children:"5.我们会确保你所提供的信息均处于严格的保密状态,不会泄露;"}),(0,G.jsxs)("p",{children:["6.如存在恶意乱填写姓名,学号,及上传与职业证件无关图片者,一经发现将冻结",!(null!=s&&null!==(n=s.setting)&&void 0!==n&&n.is_local)&&"EduCoder","账号。"]}),(0,G.jsx)("p",{children:"7.非老师身份提交职业认证后系统会自动将状态改为已认证,你将可以体验平台需要职业认证的功能;如果在认证后的使用过程中未通过审核,你将不能继续体验需要认证的功能。"})]})]})}),(0,G.jsx)(F,{visible:je,onClose:function(){return be(!1)},schoolName:L.school,onSuccess:Pe}),(0,G.jsx)(M.Z,{visible:Ce,onClose:function(){return ke(!1)},schoolId:null===(t=z.find((function(e){return e.name===L.school})))||void 0===t?void 0:t.id,schoolName:L.school,departmentName:L.department,onSuccess:function(e){return Me(L.school,e)}})]})}))},42226:function(e,n,t){"use strict";var i=t(7557),a=t.n(i),o=t(41498),r=t.n(o),s=t(79800),l=t.n(s),c=t(59301),d=t(8591),u=t(43418),p=t(98135),h=t(3113),f=t(82420),m=t(25011),g=t(92818),x=t(14103),v=t(37712),w=/^1\d{10}$/;n.Z=function(e){var n=e.isShowPhone,t=e.setIsShowPhone,i=e.user,o=e.dispatch,s=e.onOK,j=e.isopen,b=e.setisopen,y=e.datas,A=(0,c.useState)(""),C=l()(A,2),k=C[0],S=C[1],N=(0,c.useState)(""),B=l()(N,2),Z=B[0],M=B[1],P=(0,c.useState)(60),T=l()(P,2),D=T[0],L=T[1],E=(0,c.useState)(),I=l()(E,2),O=I[0],z=I[1],R=(0,c.useState)(!1),G=l()(R,2),W=G[0],H=G[1],U=(0,c.useState)(!1),F=l()(U,2),J=F[0],Y=F[1],V=(0,c.useState)(""),K=l()(V,2),q=K[0],Q=K[1],X=(0,c.useRef)();(0,c.useEffect)((function(){return function(){X.current&&clearInterval(X.current)}}),[]),(0,m.Y)((function(){O&&(L(60),D>0?L(D-1):(L(60),z(!1),X.current&&clearInterval(X.current)))}),1e3);var _=function(){var e=r()(a()().mark((function e(){var n,t,r;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,f.ZP)("/api/users/accounts/".concat(null===(n=i.userInfo)||void 0===n?void 0:n.login,"/valid_phone.json"),{method:"get",params:{phone:k}});case 2:if(-1!==(null==(t=e.sent)?void 0:t.status)){e.next=5;break}return e.abrupt("return");case 5:if(null==t||!t.is_exists){e.next=8;break}return H(!0),e.abrupt("return");case 8:return r=(0,g.M)(k),e.next=11,o({type:"account/getCode",payload:{login:k,type:3,smscode:r}});case 11:1===e.sent.status&&(d.ZP.info("验证码已发送,请注意查收"),z(!0));case 13:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,v.jsxs)("div",{children:[(0,v.jsx)(u.Z,{title:"强制解绑",open:J,onCancel:function(){return Y(!1)},onOk:r()(a()().mark((function e(){var n,o;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(q){e.next=3;break}return d.ZP.info("验证码不能为空"),e.abrupt("return");case 3:return e.next=5,(0,f.ZP)("/api/users/accounts/".concat(null==i||null===(n=i.userInfo)||void 0===n?void 0:n.login,"/phone_force_unbind.json"),{method:"POST",body:{code:q,phone:k}});case 5:0===(null==(o=e.sent)?void 0:o.status)&&(d.ZP.info("解绑成功"),z(!1),Y(!1),s(),t(!1),Q(""));case 7:case"end":return e.stop()}}),e)}))),children:(0,v.jsxs)("div",{style:{padding:"8px 24px"},children:[(0,v.jsx)("p",{children:"若原账号只有绑定了手机号一种登录方式,强制解绑后会导致原账号无法登录,请确定是否强制解绑"}),(0,v.jsxs)("p",{children:["你的手机号:",k]}),(0,v.jsxs)("p",{children:["手机验证码:",(0,v.jsx)(p.Z,{value:q,size:"middle",onChange:function(e){return Q(e.target.value)},style:{width:"240px"}})," ",(0,v.jsx)(h.ZP,{disabled:O,type:"primary",size:"middle",onClick:r()(a()().mark((function e(){var n;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=(0,g.M)(k),e.next=3,o({type:"account/getCode",payload:{login:k,type:10,smscode:n}});case 3:1===e.sent.status&&(d.ZP.info("验证码已发送,请注意查收"),z(!0));case 5:case"end":return e.stop()}}),e)}))),children:O?"重新发送".concat(D,"s"):"获取验证码"})]})]})}),(0,v.jsx)(u.Z,{title:"提示",open:W,onCancel:function(){H(!1)},okText:"进行强制解绑",okButtonProps:{type:"primary",ghost:!0,style:{width:"124px"}},onOk:function(){Y(!0),H(!1)},children:(0,v.jsxs)("div",{style:{padding:"7px 24px"},children:[(0,v.jsx)("span",{children:"该手机号已经被绑定账号,如果需要将该手机号绑定在当前账号上,你可以进行下方任意一种解绑操作:"}),(0,v.jsx)("br",{}),(0,v.jsx)("p",{style:{marginTop:"1em",display:"flex"},children:(0,v.jsx)("span",{style:{flex:"1"},children:"1、使用该手机号登录平台进行解绑,再将手机号绑定当前账号上。"})}),(0,v.jsx)("p",{style:{marginTop:"1em",display:"flex"},children:(0,v.jsx)("span",{style:{flex:"1"},children:"2、强制解绑(强制解绑可能会导致解绑账号无法登录)"})})]})}),(0,v.jsx)(u.Z,{title:"绑定手机号",open:n,onCancel:function(){return t(!1)},onOk:r()(a()().mark((function e(){var n,r,l;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(w.test(k)){e.next=3;break}return d.ZP.info("请输入有效的11位手机号码"),e.abrupt("return");case 3:if(Z){e.next=6;break}return d.ZP.info("请输入验证码"),e.abrupt("return");case 6:return n=i.userInfo||{},r=n.login,e.next=9,o({type:"account/bindPhone",payload:{login:r,phone:k,code:Z}});case 9:0===(null==(l=e.sent)?void 0:l.status)&&(t(!1),s());case 11:case"end":return e.stop()}}),e)}))),children:(0,v.jsxs)("div",{style:{padding:"8px 24px"},children:[(0,v.jsx)("p",{children:"平台已检测到您未绑定手机号,为了不影响使用报名功能,请先绑定手机号码"}),(0,v.jsxs)("p",{children:["你的手机号:",(0,v.jsx)(p.Z,{size:"middle",value:k,onChange:function(e){return S(e.target.value)},style:{width:"240px"}})]}),(0,v.jsxs)("p",{children:["手机验证码:",(0,v.jsx)(p.Z,{size:"middle",value:Z,onChange:function(e){return M(e.target.value)},style:{width:"240px"}})," ",(0,v.jsx)(h.ZP,{disabled:O,type:"primary",size:"middle",onClick:r()(a()().mark((function e(){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(w.test(k)){e.next=3;break}return d.ZP.info("请输入有效的11位手机号码"),e.abrupt("return");case 3:_();case 4:case"end":return e.stop()}}),e)}))),children:O?"重新发送".concat(D,"s"):"获取验证码"})]})]})}),(0,v.jsx)(u.Z,{open:j,footer:!1,onCancel:function(){return b(!1)},centered:!0,width:460,children:(0,v.jsxs)("div",{children:[(0,v.jsxs)("div",{style:{marginTop:50,fontSize:26,color:"#3d3d3d",textAlign:"center",marginBottom:20},children:[(0,v.jsx)("i",{style:{fontSize:26,color:"#52C41A"},className:"iconfont icon-tongguo"})," 报名成功"]}),(0,v.jsxs)("div",{style:{alignItems:"center",textAlign:"center"},children:[(0,v.jsx)("img",{style:{width:180,border:"1px solid #eeeeef",padding:10,marginBottom:20},src:x.Z.IMG_SERVER+(null==y?void 0:y.QR_code)}),(0,v.jsx)("p",{style:{color:"#AAAAAA"},children:"参赛者可扫码加入大赛官方交流群,获取最新竞赛通知"})]})]})})]})}},25011:function(e,n,t){"use strict";t.d(n,{Y:function(){return a}});var i=t(59301);function a(e,n){var t=(0,i.useRef)(),a=(0,i.useRef)();(0,i.useEffect)((function(){t.current=e})),(0,i.useEffect)((function(){if(null!==n){var e=setInterval((function(){t.current()}),n);return a.current=e,function(){return clearInterval(e)}}}),[n])}},69130:function(e,n){"use strict";n.Z={modal:"modal___A9Ovz",colorBlue:"colorBlue___XSmR5",formWrap:"formWrap___wRvaA",flexRow:"flexRow___C40dc",flexColumn:"flexColumn___LkZfj",example:"example___bz7Hw",exampleImg:"exampleImg___gNkC_",colorOrange:"colorOrange___Ka6zf",uploader:"uploader___plQRr",uploadImg:"uploadImg___cjOpL",imageTip:"imageTip___p1_lZ",uploadTipIcon:"uploadTipIcon___SpsS2",uploadTip:"uploadTip___e9JlL",color05101a:"color05101a___CDEUv",viewLargerImg:"viewLargerImg___IclRX",footerWrap:"footerWrap___beWC6",note:"note___CXi9y",schoolHintWrap:"schoolHintWrap___Ma6ly",colorCDCDCD:"colorCDCDCD___D0UWo",color0152d9:"color0152d9___hF3Bb"}},21251:function(e,n){"use strict";n.Z={flex_box_center:"flex_box_center___fo_3c",flex_space_between:"flex_space_between___G46CO",flex_box_vertical_center:"flex_box_vertical_center___br3Kr",flex_box_center_end:"flex_box_center_end___Xdo94",flex_box_column:"flex_box_column___Bcnmr",wrp:"wrp___TY7QJ",bg:"bg___xiaSy",commonimg:"commonimg___a4R0Q",titlesize:"titlesize___Wdd_a",timesize:"timesize___OkfYO",flex1:"flex1___N6paY",buttonsize:"buttonsize___syL9V",myteam:"myteam___RTWAt",bootmdetail:"bootmdetail___taUGk",menuItem:"menuItem___Kww4S",flex6:"flex6___RuzJ4",spanprev:"spanprev___Cssg_",spannext:"spannext___jVFGE",divwidth:"divwidth___r5hE3",receiveclick:"receiveclick___BauOs",receivealready:"receivealready___Z7Wo0",bkfff:"bkfff___lHrcJ","ant-input":"ant-input___m4bn_",onediv:"onediv___xzZRa",onetop:"onetop___M4GfM",towdiv:"towdiv___yj3ds",towtop:"towtop___veKa4",threediv:"threediv___Ztz0D",threetop:"threetop___zDXIg",imgradius:"imgradius___r4uGN",prize:"prize___YNRD4",spanrightradius:"spanrightradius___tC6T5",bottomItem:"bottomItem___CHcMJ",myTeam:"myTeam___fm7KX",downloadpdf:"downloadpdf___a2NuA",pdfBut:"pdfBut___Drr6h",PerfectBut:"PerfectBut___wEhjV",PerfectCent:"PerfectCent___HD3Id",PerfectCentName:"PerfectCentName___smdJX",teamItem:"teamItem___mx2f3",dash:"dash___l6QH1",modal:"modal___yXh2H",maskText:"maskText___Tdh6h",box:"box___K2uQ4",open_style:"open_style___gLTB9",title_style:"title_style___j6zvN",colorhove:"colorhove___FKtzO"}},98814:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJwAAABgCAYAAADo6BsvAAAgAElEQVR4Xmy9CZheaVUu+u75n+uvKTVlqHSSTtLpeQS6G20QFRA8DTgdBccDCCUi0csgiCB4xIug0DTgeS4O96r4eBAUkJluhp479JCeMnRSGSuVmv/6pz3f513r25XS54QndJKq2v/e317fWu9617vWZwFwtmzbNv1zr37NG9428/Zf2b1nesKygDRDHqU58jyH59rIcyCOM8CyEPgWbJvfk8O25J9gyf+ALMmRA7Ad/bcMQJjliHLAzgHfsuA4AL8rzQBeMuM3gdey4NqAZ/Nv8k/yuVmunyH/xH/j91vQz+bXzPc4NmAjh2Wb782AlPdim/uT++TP53KfSZLCcSw4rtysXl/uOYft8O5zpGkOO7dg8cNSfhhXzEKWpHJ/tuvAcvRnszyXZ0myDGmSyrfalg3LsuRrvCKv69gWMvlx/RzbNmvHm7V4/7w+5LO5DrKeFuDynmwgSYCMi8f7SzIkVgY/8OSze70Ulm3D8ywkcYY4TuF4LjzfgTympZ/JW5Y1NuvOP/PxeNO87zDOEPFnbQeua8G3ed96H/KsfG/8gwW5Ft8dX478e57ze+VKP/j+/cvvevfBzz/00EOfA3DMuvPOV+6/7rpbXvtzP/fzv7B79+79aWQ5UQQkeY4o6cui+H4A17aRRLG8fNd1YDs24jyRl8Z7cG1XLIELTSN1HH6PgxQZ+nGMNM8RWK58Hx86zVPEXDm+BNuRl8J7tmkyvE7K63Lx1Xr4ELxuYYVWnsHJCjM3L1MMMjM/ZyHni5bV0JXiGthpyodDkqZIkgSu48A1n88XwedL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a/67512.async.js b/67512.async.js
new file mode 100644
index 0000000000..8a38975507
--- /dev/null
+++ b/67512.async.js
@@ -0,0 +1 @@
+(self.webpackChunk=self.webpackChunk||[]).push([[67512,4977,68314,3287],{69154:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,_typeof=__webpack_require__(31468).default;(function(){if("function"!=typeof window.GGBApplet){var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var e={},n="5.0",t={},i=null,a=!1,o=!1,r=null,s=!1,l=null,c=null,d=0;d4?parseFloat(e):5};function y(){try{return window.self!==window.top}catch(e){return!0}}function A(){return(!t.hasOwnProperty("screenshotGenerator")||!t.screenshotGenerator)&&Math.max(screen.width,screen.height)<800}e.setHTML5Codebase=function(e,n){c=e,O(e,n)},e.setJavaCodebase=e.setJavaCodebaseVersion=e.isCompiledInstalled=e.setPreCompiledScriptPath=e.setPreCompiledResourcePath=function(){},e.setHTML5CodebaseVersion=function(e,n){var t=parseFloat(e);NaN!==t&&t<5?console.log("The GeoGebra HTML5 codebase version "+t+" is deprecated. Using version latest instead."):(l=e,I(e,n))},e.getHTML5CodebaseVersion=function(){return m},e.getParameters=function(){return t},e.setFontsCSSURL=function(e){j=e},e.setGiacJSURL=function(e){},e.setJNLPFile=function(e){e},e.setJNLPBaseDir=function(e){},e.inject=function(){function n(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var i,a="auto",o=t.id,r=!1,l=0;l=5)return!0;var n=e.getAppletObject();return!(!n||"function"!=typeof n.recalculateEnvironments)&&(n.recalculateEnvironments(),!0)},e.startAnimation=function(){var n=e.getAppletObject();return!(!n||"function"!=typeof n.startAnimation)&&(n.startAnimation(),!0)},e.stopAnimation=function(){var n=e.getAppletObject();return!(!n||"function"!=typeof n.stopAnimation)&&(n.stopAnimation(),!0)},e.getAppletObject=function(){var e=void 0!==t.id?t.id:"ggbApplet";return window[e]},e.resize=function(){};var N=function(e){return e&&"false"!==e},B=function(n,t,i){b(m)<=4.2&&(i=!0);var a=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==m||ggbHTML5LoadedCodebaseIsWebSimple&&!x)&&(a=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var o=document.createElement("div");o.classList.add("appletParameters","notranslate");var r=t.width,s=t.height;if(t.disableAutoScale=void 0===t.disableAutoScale?GGBAppletUtils.isFlexibleWorksheetEditor():t.disableAutoScale,void 0!==t.width)if(b(m)<=4.4)N(t.showToolBar)&&(t.height-=7),N(t.showAlgebraInput)&&(t.height-=37),t.width<605&&N(t.showToolBar)&&(t.width=605,r=605);else{var d=100;(N(t.showToolBar)||N(t.showMenuBar))&&(t.hasOwnProperty("customToolBar")&&(t.customToolbar=t.customToolBar),d=N(t.showMenuBar)?245:155),r=5?(t.appletOnLoad=function(e){var t=n.querySelector(".ggb_preview");t&&t.parentNode.removeChild(t),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(v),window.GGBT_wsf_view&&$(window).trigger("resize"),h(e)},w||v.appendChild(y)):o.appendChild(y),v.appendChild(o),w||n.appendChild(v),setTimeout((function(){e.resize()}),1)}function A(e,n){n&&"function"==typeof n.appletOnLoad&&"function"==typeof renderGGBElement?renderGGBElement(e,n.appletOnLoad):renderGGBElement(e),z("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",n)}function C(e,n){"undefined"==typeof renderGGBElement?(null===html5AppletsToProcess&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:e,params:n}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,null!==html5AppletsToProcess&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach((function(e){A(e.article,e.params)})),html5AppletsToProcess=null)},b(m)<5&&(e.className+=" geogebraweb")):A(e,n)}if(a){scriptLoadStarted=!0;for(var k=0;k0?(a.remove(),s.attr("id","fullscreencontent").show(),jQuery(o).append(s),window.dispatchEvent(new Event("resize"))):B(a,n,!1),window.GGBT_wsf_view.launchFullScreen(o)}else f=i,B(e,n,!1);if(!window.GGBT_wsf_view)for(r=0;re/4*3&&(s=e/4*3),l=s/5.8,r.setAttribute("src",w),r.setAttribute("width",s),r.setAttribute("height",l);var d=(e-s)/2,u=(n-l)/2;r.style.left=d+"px",r.style.top=u+"px",a.appendChild(r)}return a.appendChild(c),a},L=function(e){return"html5"===(e=e.toLowerCase())||"screenshot"===e?e:"html5"},E=["web","webSimple","web3d","tablet","tablet3d","phone"],I=function(e,n){if(m=e,n)O(m,!0);else{var o,r,s=!a;if(s){var l=b(m);!isNaN(l)&&l<4.4&&(s=!1)}o="http"===window.location.protocol.substr(0,4)?window.location.protocol:"http:";var c=m.indexOf("//");for(var d in r=c>0?m:0===c?o+m:"https://www.geogebra.org/apps/5.2.814.0/",E)if(m.slice(-1*E[d].length)===E[d]||m.slice(-1*(E[d].length+1))===E[d]+"/")return void O(r,!1);GGBAppletUtils.isFlexibleWorksheetEditor()||!s||i.is3D||i.AV||i.SV||i.CV||i.EV2||i.CP||i.PC||i.DA||i.FI||i.PV||N(t.showToolBar)||N(t.showMenuBar)||N(t.showAlgebraInput)||N(t.enableRightClick)||t.appName&&"classic"!=t.appName?r+="web3d/":r+="webSimple/",O(r,!1)}},O=function(e,n){if(e.requirejs)p=e;else{"/"!==e.slice(-1)&&(e+="/"),p=e,null===n&&(n=-1===e.indexOf("http")),h=n,g="web.nocache.js",x=!1;var t=p.split("/");t.length>1&&(n||"webSimple"!==t[t.length-2]?E.indexOf(t[t.length-2])>=0&&(g=t[t.length-2]+".nocache.js"):(g="webSimple.nocache.js",x=!0)),t=e.split("/"),"test"===(m=t[t.length-3]).substr(0,4)?m=m.substr(4,1)+"."+m.substr(5,1):"war"!==m.substr(0,3)&&"beta"!==m.substr(0,4)||(m="5.0");var i=parseFloat(m);NaN!==i&&i<5&&e.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+i+" is deprecated. Using version latest instead."),I("5.0",n))}},z=function(e,n){window.console&&window.console.log&&(!n||void 0===n.showLogging||n.showLogging&&"false"!==n.showLogging)&&console.log(e)};function R(){var e=n;null!==l?e=l:parseFloat(e)<5&&(e="5.0"),I(e,!1),null!==c&&O(c,h),s=!0}return void 0!==t.material_id?C(R):R(),e},GGBAppletUtils=function(){"use strict";function e(){return void 0!==window.GGBT_wsf_edit}function n(e,n){1!=n?(e.style.transformOrigin="0% 0% 0px",e.style.webkitTransformOrigin="0% 0% 0px",e.style.transform="scale("+n+","+n+")",e.style.webkitTransform="scale("+n+","+n+")",e.style.maxWidth="initial",null!==e.querySelector(".ggb_preview")&&(e.querySelector(".ggb_preview").style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[0]&&(e.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[1]&&(e.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(e.style.transform="none",e.style.webkitTransform="none")}function t(e,n,t,i,a){if(e.isScreenshoGenerator)return 1;var o,r=void 0!==i&&i,s=null!=e.noScaleMargin&&e.noScaleMargin,l=(o=e.autoHeight)&&"false"!==o,c=function(e,n,t,i,a,o){var r=null;if(null!=o&&""!=o)for(var s=e.parentNode;null!=s;){if((" "+s.className+" ").indexOf(" "+o+" ")>-1){r=s;break}s=s.parentNode}var l=0,c=0,d=0,u=0,p=0,h=0,f=0;if(r)l=r.offsetWidth,c=Math.max(i?r.offsetWidth:0,r.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(l=Math.min(window.innerWidth,document.documentElement.clientWidth),c=Math.min(window.innerHeight,document.documentElement.clientHeight),d=l):(l=window.innerWidth,c=window.innerHeight,d=window.innerWidth),e){var m=e.getBoundingClientRect();m.left>0&&m.left<=l&&(void 0===a||!a)&&("rtl"===document.dir?(p=l-m.width-m.left,h=d<=480?10:30):(h=m.left,p=d<=480?10:30),u=h+p)}e&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(e.getBoundingClientRect(),"closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(u=40,f=0):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(u=0,f=40))}return e&&((void 0===t||!t)&&n>0&&n+u1&&(r=!0)),n&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(r=!0),e.hasOwnProperty("disableAutoScale")&&e.disableAutoScale?o:(a=t(e,n,r,i,e.scaleContainerClass),!r||e.hasOwnProperty("scale")&&1!==o?Math.min(o,a):a)}function a(e){var n=Math.min(window.innerWidth,document.documentElement.clientWidth),t=Math.min(window.innerHeight,document.documentElement.clientHeight),i=e.getBoundingClientRect(),a=(n-i.width)/2,o=(t-i.height)/2;o<0&&(o=0),e.style.position="relative","closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(e.style.left=a<40?"40px":a+"px",e.style.top=o+"px"):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(e.style.top=o<40?"40px":o+"px",e.style.left=a+"px")}return{responsiveResize:function(t,o){var r=t.querySelector(".appletParameters");if(r){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if(o.id!==r.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(t)}if(r.parentElement&&/fullscreen/.test(r.parentElement.className))return;var s=i(o,t);e()&&r.setAttribute("data-param-scale",s);for(var l=null,c=0;c",W="",X="",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var e=n.location.search;return-1!=e.indexOf(J)||-1!=e.indexOf(K)}function q(e,n){}q(H,I),webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{},t;function u(){return v(),t}function v(){if(!t){var e=o.createElement(Q);if(e.id=L,e.style.cssText=R+S,e.tabIndex=-1,o.body.appendChild(e),t=e.contentWindow.document,-1==navigator.userAgent.indexOf(T)){t.open();var n=document.compatMode==U?V:W;t.write(n+X),t.close()}}}function w(e){q(cb,eb),function(e){function n(){return _typeof(o.readyState)==Y?_typeof(o.body)!=Y&&null!=o.body:/loaded|complete/.test(o.readyState)}var t=n();if(t)e();else{o.addEventListener&&o.addEventListener(Z,a,!1);var i=setInterval((function(){a()}),$)}function a(){if(!t){if(!n())return;t=!0,e(),o.removeEventListener&&o.removeEventListener(Z,a,!1),i&&clearInterval(i)}}}((function(){var n,t,i,a;n=e,t=u(),i=t.body,(a=t.createElement(_)).language=ab,a.crossOrigin=W,a.src=n,webModule.__errFn&&(a.onerror=function(){webModule.__errFn(L,new Error(bb+n))}),i.appendChild(a),q(cb,db)}))}function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(e){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(e){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(e){var n=c[e];return null==n?null:n},r=d,webModule.__errFn=e}function B(){function e(e){var n=e.lastIndexOf(rb);-1==n&&(n=e.length);var t=e.indexOf(sb);-1==t&&(t=e.length);var i=e.lastIndexOf(tb,Math.min(t,n));return i>=O?e.substring(O,i+P):W}var n,t=null!=(n=__gwt_getMetaProperty(wb))?n:W;return t==W&&(t=function(){for(var n=o.getElementsByTagName(_),t=O;tO?e[e.length-P].href:W}()),t==W&&function(){var e=o.location;return e.href==e.protocol+zb+e.host+e.pathname+e.search+e.hash}()&&(t=e(o.location.href)),t=function(n){if(n.match(/^\w+:\/\//));else{var t=o.createElement(ub);t.src=n+vb,n=e(t.src)}return n}(t),t}function C(e){return e.match(/^\//)||e.match(/^[a-zA-Z]+:\/\//)?e:webModule.__moduleBase+e}function D(){var e,t=O,i=[],a=[];function o(e){var n=a[e](),t=i[e];if(n in t)return n;var o=[];for(var s in t)o[t[s]]=s;throw r&&r(e,o,n),null}if(__gwt_isKnownPropertyValue=function(e,n){return n in i[e]},webModule.__getPropMap=function(){var e={};for(var n in i)i.hasOwnProperty(n)&&(e[n]=o(n));return e},webModule.__computePropValue=o,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);try{var s=(e=Cb).indexOf(Db);-1!=s&&(t=parseInt(e.substring(s+P),$),e=e.substring(O,s))}catch(e){}return webModule.__softPermutationId=t,C(e+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}s[L]={moduleName:L},webModule.__moduleStartupDone=function(e){var n=s[L].bindings;s[L].bindings=function(){for(var t=n?n():{},i=e[webModule.__softPermutationId],a=O;a0){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:"",t=[],i=0;it)){e.next=7;break}return x.ZP.info("文件超过".concat(t/1024/1024/1024,"GB,不符合上传要求")),e.abrupt("return",!1);case 7:return u.push({name:n.name,file:n}),h(a()(u)),o.onChange(u),e.abrupt("return",!1);case 11:case"end":return e.stop()}}),e)}))),function(e){return n.apply(this,arguments)})},Z=function(){var e=f()(p()().mark((function e(n,t){var i,r,s,l,c,d,f,m,g,w;return p()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.file_name=n.name,f=n.name,e.next=4,(0,v.ZP)("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});case 4:if((m=e.sent).data=JSON.parse(B(m.data)),0===(null==m?void 0:m.status)){e.next=12;break}return u[u.findIndex((function(e){return e.name===f}))].status="error",u[u.findIndex((function(e){return e.name===f}))].file.status="error",o.onChange(u),x.ZP.warning("上传失败,请重新尝试"),e.abrupt("return");case 12:return j=new(C())({endpoint:null==m||null===(i=m.data)||void 0===i?void 0:i.end_point,region:null==m||null===(r=m.data)||void 0===r?void 0:r.region,accessKeyId:null==m||null===(s=m.data)||void 0===s?void 0:s.access_key_id,accessKeySecret:null==m||null===(l=m.data)||void 0===l?void 0:l.access_key_secret,bucket:null==m||null===(c=m.data)||void 0===c?void 0:c.bucket,stsToken:null==m||null===(d=m.data)||void 0===d?void 0:d.security_token}),console.log(n,"file"),y(j),(g=n.name.split(".")).pop(),w=t.realFileName?g.join("."):(0,b.Z)(),e.abrupt("return",new Promise((function(e,i){try{var r;j.multipartUpload("".concat(o.identifier,"/").concat(w).concat(f.indexOf(".")>-1?"."+f.split(".").pop():""),new Blob([n.file],{type:n.file.type}),{timeout:36e5,partSize:1002400,progress:function(e,n,t){try{console.log("进度",e,n,t);var i=u.findIndex((function(e){return e.name===f}));u[i].file.percent=100*e,u[i].tempCheckpoint=n,h(a()(u))}catch(e){}},checkpoint:u[u.findIndex((function(e){return e.name===f}))].tempCheckpoint,callback:{customValue:{id:f+""},url:null==m||null===(r=m.data)||void 0===r?void 0:r.callback_url,host:null==m?void 0:m.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,v.rz)(t)}}).then((function(t){var i,a=u.findIndex((function(e){return e.name===f})),r="done";if(0===(null===(i=t.data)||void 0===i?void 0:i.status)){var s;n.response=null===(s=t.data)||void 0===s?void 0:s.data;var l=u.findIndex((function(e){return e.name===f}));u[l].status="done",u[l].file.status="done"}else{var c;x.ZP.warning(null===(c=t.data)||void 0===c?void 0:c.message),r="error"}u[a].status=r,u[a].file.status=r,o.onChange(u),e(null==t?void 0:t.data)})).catch((function(e){u[u.findIndex((function(e){return e.name===f}))].status="error",u[u.findIndex((function(e){return e.name===f}))].file.status="error",x.ZP.warning("上传失败,请重新尝试"),h(a()(u)),o.onChange(u),i(e),console.log("err:",e)}))}catch(e){}})));case 19:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}();return(0,m.useEffect)((function(){u.every((function(e){return"done"===e||"error"===e}))&&o.onComplete(u)}),[u]),(0,m.useEffect)((function(){var e;i&&(null===(e=j)||void 0===e||e.cancel())}),[i]),(0,m.useEffect)((function(){o.uploading&&u.map(function(){var e=f()(p()().mark((function e(n){var a;return p()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.status&&"error"!==n.status||i){e.next=6;break}return n.status="uploading",n.file.status="uploading",e.next=5,Z(n,{login:null==t||null===(a=t.userInfo)||void 0===a?void 0:a.login,container_type:o.container_type,container_id:o.container_id,description:o.description,realFileName:o.realFileName});case 5:e.sent;case 6:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}())}),[o.uploading]),(0,k.jsx)(N,d()(d()({},A),{},{height:o.height,className:o.className,children:(0,k.jsx)("p",{className:"ant-upload-hint",children:o.text||"拖拽文件或者点击上传"})}))}))},41753:function(e,n,t){"use strict";t.d(n,{h:function(){return x}});var i=t(82242),a=t.n(i),o=t(79800),r=t.n(o),s=t(59301),l=t(57809),c=t(78241),d=t(3113),u=t(89780),p=t.n(u),h=(t(13071),t(59478),t(37712)),f=l.default.Option,m={labelCol:{span:4},wrapperCol:{span:20}},g={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};function x(e){var n=e.value,t=e.onChange,i=e.mode,o=e.options,l=void 0===o?{}:o,c=(0,s.useRef)(),d=(0,s.useState)(),u=r()(d,2),f=u[0],m=u[1];return(0,s.useEffect)((function(){if(f){var e=function(e){var n=e.getValue();t&&t(n)};return f.on("change",e),function(){f.off("change",e)}}}),[f,t]),(0,s.useEffect)((function(){f&&f.setOption("mode",i)}),[f,i]),(0,s.useEffect)((function(){f&&(n===f.getValue()&&""!==n||setTimeout((function(){f.setValue(n||"")}),300))}),[f,n]),(0,s.useEffect)((function(){if(c.current&&!f){var e=p().fromTextArea(c.current,a()({mode:i,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},l));m(e)}}),[c.current,f]),(0,h.jsx)("div",{className:"my-codemirror-container",children:(0,h.jsx)("textarea",{ref:c})})}n.Z=function(e){var n=e.callback,t=e.onCancel,i=(0,s.useState)("python"),o=r()(i,2),u=o[0],p=o[1];return(0,h.jsxs)(c.Z,a()(a()({},m),{},{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:function(e){n(e)},style:{width:500},children:[(0,h.jsx)(c.Z.Item,{label:"代码语言",name:"language",children:(0,h.jsx)(l.default,{getPopupContainer:function(e){return e.parentNode},onChange:function(e){p(g[e][1])},children:Object.keys(g).map((function(e){return(0,h.jsx)(f,{value:e,children:g[e][0]},e)}))})}),(0,h.jsx)(c.Z.Item,{label:"代码内容",name:"content",rules:[{required:!0,message:"请输入代码内容"}],children:(0,h.jsx)(x,{mode:u})}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(d.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(d.ZP,{type:"ghost",onClick:t,children:"取消"})]})]}))}},11243:function(e,n,t){"use strict";t.d(n,{Z:function(){return Ne}});var i=t(91232),a=t.n(i),o=t(79800),r=t.n(o),s=t(85573),l=t.n(s),c=t(59301),d=t(89780),u=t.n(d),p=t(76374),h=(t(13071),t(6313),t(25717),t(99498),t(25419),t(67549),t(11829)),f=t(37712),m=function(e){var n=e.value,t=void 0===n?"":n,i=(e.className,e.showTextOnly,e.showLines,e.style,(0,c.useMemo)((function(){return""}),[t]));return(0,f.jsx)(f.Fragment,{children:(0,f.jsx)("div",{dangerouslySetInnerHTML:{__html:i}})})},g=t(82242),x=t.n(g),v=[{title:"粗体",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"斜体",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"无序列表",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"有序列表",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"行内代码",icon:"md-iconfont icon-code",actionName:"code"},{title:"代码块(多语言风格)",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"链接",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"行内公式",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"数学图像",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"多行公式",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"添加图片",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"插入画图",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"插入流程图",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"表格",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"换行",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"清空",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function w(e){var n=e.onActionCallback,t=e.title,i=e.icon,a=e.actionName,o=e.className,r=void 0===o?"":o,s=e.children;return(0,f.jsxs)("a",{title:t,className:r,onClick:function(){n(a)},children:[(0,f.jsx)("i",{className:"".concat(i)}),s]})}var j=function(e){var n=e.watch,t=e.showNullButton,i=e.showNullProgramButton,a=e.onActionCallback,o=e.fullScreen,r=e.insertTemp,s=e.hidetoolBar,l=e.extraUse,c=[].concat(v,[{title:"".concat(n?"关闭实时预览":"开启实时预览"),icon:"".concat(n?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"),actionName:"trigger-watch"}]);return(0,f.jsxs)("ul",{className:"markdown-toolbar-container",children:[!s&&c.map((function(e,n){return(0,f.jsx)("li",{children:e.actionName?(0,f.jsx)(w,x()(x()({},e),{},{onActionCallback:a})):(0,f.jsx)("span",{className:"v-line"})},n)})),t?(0,f.jsx)("li",{children:(0,f.jsx)(w,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-null-ch",onActionCallback:a,children:(0,f.jsx)("span",{className:"fill-tip",children:"点击插入\b填空项"})})}):null,i?(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("li",{children:(0,f.jsx)(w,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-signal",onActionCallback:a,children:(0,f.jsx)("span",{className:"fill-tip",children:"+单行填空项"})})}),(0,f.jsx)("li",{children:(0,f.jsx)(w,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"增加填空",actionName:"add-multiple",onActionCallback:a,children:(0,f.jsx)("span",{className:"fill-tip",children:"+多行填空项"})})})]}):null,r&&(0,f.jsx)("li",{children:(0,f.jsx)(w,{icon:"md-iconfont icon-edit",className:"btn-null",title:"插入模板",actionName:"inster-template-".concat(r),onActionCallback:a,children:(0,f.jsx)("span",{className:"fill-tip",children:"插入模板"})})}),l&&(0,f.jsx)("li",{children:l}),(0,f.jsx)("li",{className:"btn-full-screen",children:(0,f.jsx)(w,{icon:"".concat(o?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"),title:o?"关闭全屏":"开启全屏",actionName:"trigger-full-screen",onActionCallback:a})})]})},b=t(71826),y=t(78241),A=t(98135),C=t(3113),k={labelCol:{span:4},wrapperCol:{span:20}},S=function(e){var n=e.callback,t=e.onCancel;return(0,f.jsxs)(y.Z,x()(x()({},k),{},{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:function(e){n(e)},style:{width:500},children:[(0,f.jsx)(y.Z.Item,{label:"链接地址",name:"link",rules:[{required:!0,message:"请输入链接地址"}],children:(0,f.jsx)(A.Z,{})}),(0,f.jsx)(y.Z.Item,{label:"链接标题",name:"title",rules:[{required:!0,message:"请输入链接标题"}],children:(0,f.jsx)(A.Z,{})}),(0,f.jsxs)("div",{className:"flex-container flex-end",children:[(0,f.jsx)(C.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,f.jsx)(C.ZP,{type:"ghost",onClick:t,children:"取消"})]})]}))},N=t(41753),B=t(8591),Z=t(50698),M=y.Z.useForm,P={width:280,marginRight:10},T={labelCol:{span:5},wrapperCol:{span:19}},D=function(e){var n=e.callback,t=e.onCancel,i=M(),a=r()(i,1)[0],o=(0,c.useRef)();function s(e,n){-1!==e.status?a.setFieldsValue({src:"/api/attachments/".concat(e.id),type:n.type}):B.ZP.error(e.message)}return(0,f.jsxs)(y.Z,x()(x()({form:a},T),{},{className:"upload-image-panel",onFinish:function(e){n(e,o.current)},style:{width:470,overflow:"hidden"},children:[(0,f.jsx)(y.Z.Item,{label:"图片地址",required:!0,children:(0,f.jsxs)("div",{className:"flex-container",children:[(0,f.jsx)(y.Z.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"请输入图片地址"}],children:(0,f.jsx)(A.Z,{style:P})}),(0,f.jsx)(L,{onFileChange:function(e){var n=e.target.files[0];o.current=n,E(n,s)}})]})}),(0,f.jsx)(y.Z.Item,{label:"图片描述",name:"alt",children:(0,f.jsx)(A.Z,{style:{width:264}})}),(0,f.jsxs)(y.Z.Item,{style:{textAlign:"right"},children:[(0,f.jsx)(C.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,f.jsx)(C.ZP,{type:"default",onClick:t,children:"取消"})]})]}))};function L(e){var n=e.onFileChange;return(0,f.jsxs)("label",{className:"upload-button",style:{cursor:"pointer"},children:["本地上传",(0,f.jsx)("input",{type:"file",onChange:n})]})}function E(e,n){if(!e)throw new String("没有文件");var t=new FormData;t.append("editormd-image-file",e),t.append("file_param_name","editormd-image-file"),t.append("byxhr","true");var i=new window.XMLHttpRequest;i.withCredentials=!0,i.addEventListener("load",(function(t){n(JSON.parse(t.target.responseText),e)}),!1),i.addEventListener("error",(function(e){console.error(e)}),!1),i.open("POST","".concat(Z.KI,"/api/attachments.json")),i.send(t)}var I=t(95237),O=t(47543),z=function(e){var n=e.callback,t=e.onCancel,i=document.createElement("canvas"),a=i.getContext("2d");i.width=1e3,i.height=800,a.fillStyle="#ffffff",a.fillRect(0,0,i.width,i.height);var o=i.toDataURL("image/png");return(0,f.jsx)(I.Z,{style:{height:"100vh"},children:(0,f.jsx)(O.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:o,visible:!0,title:String(Date.now())},onOk:function(e){n({src:e.url})},onClose:t})})},R=t(7557),G=t.n(R),W=t(41498),H=t.n(W),U=t(37205),F=t.n(U),J=t(12378);function Y(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Y,go.CommandHandler),Y.prototype.canAlignSelection=function(){var e=this.diagram;return null!==e&&!e.isReadOnly&&!e.isModelReadOnly&&!(e.selection.count<2)},Y.prototype.alignLeft=function(){var e=this.diagram;e.startTransaction("aligning left");var n=1/0;e.selection.each((function(e){e instanceof go.Link||(n=Math.min(e.position.x,n))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(n,e.position.y))})),e.commitTransaction("aligning left")},Y.prototype.alignRight=function(){var e=this.diagram;e.startTransaction("aligning right");var n=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var t=e.actualBounds.x+e.actualBounds.width;n=Math.max(t,n)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(n-e.actualBounds.width,e.position.y))})),e.commitTransaction("aligning right")},Y.prototype.alignTop=function(){var e=this.diagram;e.startTransaction("alignTop");var n=1/0;e.selection.each((function(e){e instanceof go.Link||(n=Math.min(e.position.y,n))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.position.x,n))})),e.commitTransaction("alignTop")},Y.prototype.alignBottom=function(){var e=this.diagram;e.startTransaction("aligning bottom");var n=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var t=e.actualBounds.y+e.actualBounds.height;n=Math.max(t,n)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,n-e.actualBounds.height))})),e.commitTransaction("aligning bottom")},Y.prototype.alignCenterX=function(){var e=this.diagram,n=e.selection.first();if(n){e.startTransaction("aligning Center X");var t=n.actualBounds.x+n.actualBounds.width/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t-e.actualBounds.width/2,e.actualBounds.y))})),e.commitTransaction("aligning Center X")}},Y.prototype.alignCenterY=function(){var e=this.diagram,n=e.selection.first();if(n){e.startTransaction("aligning Center Y");var t=n.actualBounds.y+n.actualBounds.height/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,t-e.actualBounds.height/2))})),e.commitTransaction("aligning Center Y")}},Y.prototype.alignColumn=function(e){var n=this.diagram;n.startTransaction("align Column"),void 0===e&&(e=0),e=parseFloat(e);var t=new Array;n.selection.each((function(e){e instanceof go.Link||t.push(e)}));for(var i=0;i0){for(var i=r.elt(s-1);null!==i&&i.isTreeExpanded&&!i.isTreeLeaf;){i=this._sortTreeChildrenByY(i).last()}null!==i&&e.select(i)}else e.select(o)}else if("Down"===t.key){var a;if(n.isTreeExpanded&&!n.isTreeLeaf)null!==(a=this._sortTreeChildrenByY(n).first())&&e.select(a);else for(;null!==n;){var o,r,s;if(null===(o=n.findTreeParentNode()))break;if((s=(r=this._sortTreeChildrenByY(o)).indexOf(n))i.y?1:t.xi.x?1:0})),n},Y.prototype.copyToClipboard=function(e){go.CommandHandler.prototype.copyToClipboard.call(this,e),this._lastPasteOffset.set(this.pasteOffset)},Y.prototype.pasteFromClipboard=function(){var e=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(e,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),e},Object.defineProperty(Y.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(e){if("move"!==e&&"select"!==e&&"scroll"!==e&&"tree"!==e&&"none"!==e)throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+e);this._arrowKeyBehavior=e}}),Object.defineProperty(Y.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(e){if(!(e instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+e);this._pasteOffset.set(e)}});var V=Y,K=(t(12250),t(85160)),q=t(43418),Q=t(43604),X=t(82420),_="myPaletteDiv___Xjz2I",$="maxH60___Pd4Re";window.go=J;var ee=function(e){var n=e.onCancel,t=e.callback,i=(0,c.useRef)(),a=(0,c.useRef)(),o=(0,c.useRef)(),s=(0,c.useRef)(!1),l=(0,c.useRef)(!1),d=(0,c.useState)(0),u=r()(d,2),p=u[0],h=u[1],m=function(){var e=H()(G()().mark((function e(){var n,a;return G()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=i.current.makeImage(),e.next=3,(0,X.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:n.src}});case 3:a=e.sent,t({src:a.url});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,c.useEffect)((function(){h(p+1)}),[]),(0,f.jsx)("div",{ref:l,className:s.current?"".concat($," body-overflow-initial"):"body-overflow-initial",children:(0,f.jsx)(q.Z,{width:1200,icon:null,footer:null,closable:!0,visible:!!p,destroyOnClose:!0,maskClosable:!1,getContainer:l.current,rootClassName:"zIndex-9999",title:(0,f.jsxs)(I.Z,{children:[(0,f.jsx)(Q.Z,{flex:1,children:"插入流程图"}),(0,f.jsx)(Q.Z,{onClick:function(){s.current=!s.current,h(p+1)},children:(0,f.jsx)("span",{className:"current c-blue mr30",style:{fontWeight:400},children:"展开/收起"})})]}),onCancel:n,children:(0,f.jsxs)("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},children:[(0,f.jsxs)("div",{style:{display:"flex",height:"100%"},children:[(0,f.jsxs)("div",{style:{width:"300px",height:"100%"},children:[(0,f.jsx)("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"},children:"图形库"}),(0,f.jsx)("div",{style:{height:"calc(100% - 50px)"},className:_,ref:o})]}),(0,f.jsxs)("div",{style:{flex:1,position:"relative"},children:[(0,f.jsx)(K.FI,{initDiagram:function(){var e=J.GraphObject.make,n="#ff3333",t="#3358ff",r="#25ad23",s="#d533ff",l="#7d33ff",c="#ff6233",d="#ffffff",u="#000000",p="#fffcd5",h="#d5ebff",f="#f2dfe0",m="#a5d2fa",g="#cccccc",x="#b3e6b3",v="#fcbbbd";function w(n,t){var i=function(e,t){e.handled=!0,e.diagram.model.commit((function(i){var a=t.part.adornedPart,o=(new J.Point).setRectSpot(a.actualBounds,n);o.subtract(a.location),o.scale(2,2),o.x+=130*Math.sign(o.x),o.y+=130*Math.sign(o.y),o.add(a.location),o.snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize);var r=i.copyNodeData(a.data);i.setGroupKeyForNodeData(r,i.getGroupKeyForNodeData(a.data)),i.addNodeData(r);var s={from:a.key,to:i.getKeyForNodeData(r)};i.addLinkData(s);var l=e.diagram.findNodeForData(r);l.location=o,e.diagram.select(l),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)}))};return e(J.Shape,{figure:t,alignment:n,alignmentFocus:n.opposite(),width:n.equals(J.Spot.Top)||n.equals(J.Spot.Bottom)?25:18,height:n.equals(J.Spot.Top)||n.equals(J.Spot.Bottom)?18:25,fill:"orange",stroke:d,strokeWidth:4,mouseEnter:function(e,n){return n.fill="dodgerblue"},mouseLeave:function(e,n){return n.fill="orange"},isActionable:!0,click:i,contextClick:i})}function j(n){return e(J.Shape,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:function(e,n){return n.fill="dodgerblue"},mouseLeave:function(e,n){return n.fill="orange"},click:function(e,n){e.diagram.commandHandler.showContextMenu(n.part.adornedPart)}},n||{})}function b(e,n){return function(t,i){t.handled=!0,t.diagram.model.commit((function(t){t.set(i.part.adornedPart.data,e,n)}))}}function y(n,t){return t||(t="color"),e(J.Shape,{width:16,height:16,stroke:"lightgray",fill:n,margin:1,background:"transparent",mouseEnter:function(e,n){return n.stroke="dodgerblue"},mouseLeave:function(e,n){return n.stroke="lightgray"},click:b(t,n),contextClick:b(t,n)})}function A(){return[e("ContextMenuButton",e(J.Panel,"Horizontal",y(d,"fill"),y(p,"fill"),y(h,"fill"),y(f,"fill"))),e("ContextMenuButton",e(J.Panel,"Horizontal",y(g,"fill"),y(x,"fill"),y(m,"fill"),y(v,"fill")))]}function C(){return[e("ContextMenuButton",e(J.Panel,"Horizontal",y(u),y(r),y(t),y(n))),e("ContextMenuButton",e(J.Panel,"Horizontal",y(d),y(s),y(l),y(c)))]}function k(n,t){return t||(t="thickness"),e(J.Shape,"LineH",{width:16,height:16,strokeWidth:n,margin:1,background:"transparent",mouseEnter:function(e,n){return n.background="dodgerblue"},mouseLeave:function(e,n){return n.background="transparent"},click:b(t,n),contextClick:b(t,n)})}function S(n,t){return t||(t="dash"),e(J.Shape,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:n,margin:1,background:"transparent",mouseEnter:function(e,n){return n.background="dodgerblue"},mouseLeave:function(e,n){return n.background="transparent"},click:b(t,n),contextClick:b(t,n)})}function N(){return[e("ContextMenuButton",e(J.Panel,"Horizontal",k(1),k(2),k(3),k(4))),e("ContextMenuButton",e(J.Panel,"Horizontal",S(null),S([2,4]),S([4,4])))]}function B(n,t){return t||(t="figure"),e(J.Shape,{width:32,height:32,scale:.5,fill:"lightgray",figure:n,margin:1,background:"transparent",mouseEnter:function(e,n){return n.fill="dodgerblue"},mouseLeave:function(e,n){return n.fill="lightgray"},click:b(t,n),contextClick:b(t,n)})}function Z(n){return e(J.Shape,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(n+4).toString()+" H3"})}function M(n){var t="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return 0===n?t="M0 0 M16 16 M0 8 L16 8":2===n&&(t="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),e(J.Shape,{geometryString:t,margin:2,background:"transparent",mouseEnter:function(e,n){return n.background="dodgerblue"},mouseLeave:function(e,n){return n.background="transparent"},click:b("dir",n),contextClick:b("dir",n)})}function P(n){var t=function(e,t){e.handled=!0,e.diagram.model.commit((function(e){var i=t.part.adornedPart;e.set(i.data,n?"toSpot":"fromSpot",J.Spot.stringify(J.Spot.AllSides)),(n?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(J.Shape,{width:12,height:12,fill:"transparent",mouseEnter:function(e,n){return n.background="dodgerblue"},mouseLeave:function(e,n){return n.background="transparent"},click:t,contextClick:t})}function T(n,t){var i=0,a=J.Spot.RightSide;n.equals(J.Spot.Top)?(i=270,a=J.Spot.TopSide):n.equals(J.Spot.Left)?(i=180,a=J.Spot.LeftSide):n.equals(J.Spot.Bottom)&&(i=90,a=J.Spot.BottomSide),t||(i-=180);var o=function(e,n){e.handled=!0,e.diagram.model.commit((function(e){var i=n.part.adornedPart;e.set(i.data,t?"toSpot":"fromSpot",J.Spot.stringify(a)),(t?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(J.Shape,{alignment:n,alignmentFocus:n.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:i,background:"transparent",mouseEnter:function(e,n){return n.background="dodgerblue"},mouseLeave:function(e,n){return n.background="transparent"},click:o,contextClick:o})}return i.current=new J.Diagram(a.current,{padding:20,grid:e(J.Panel,"Grid",e(J.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(J.Shape,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:function(e){e.diagram.commandHandler.addTopLevelParts(e.diagram.selection,!0)||e.diagram.currentTool.doCancel()},commandHandler:e(V),"clickCreatingTool.archetypeNodeData":{text:"未命名",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:function(e){var n=e.subject;n.location=n.location.copy().snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:function(e){e.subject;setTimeout((function(){e.diagram.commandHandler.editTextBlock()}))},LinkRelinked:function(e){e.parameter.part.invalidateConnectedLinks();var n=e.subject;e.diagram.toolManager.linkingTool.isForwards?n.toNode.invalidateConnectedLinks():n.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),i.current.nodeTemplate=e(J.Node,"Auto",{locationSpot:J.Spot.Center,locationObjectName:"SHAPE",desiredSize:new J.Size(120,60),minSize:new J.Size(40,40),resizable:!0,resizeCellSize:new J.Size(10,10),rotatable:!0},new J.Binding("location","loc",J.Point.parse).makeTwoWay(J.Point.stringify),new J.Binding("desiredSize","size",J.Size.parse).makeTwoWay(J.Size.stringify),e(J.Shape,{name:"SHAPE",fill:d,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:J.Spot.AllSides,toSpot:J.Spot.AllSides},new J.Binding("figure"),new J.Binding("fill"),new J.Binding("stroke","borderColor"),new J.Binding("strokeWidth","thickness"),new J.Binding("strokeDashArray","dash")),e(J.Shape,{width:100,height:20,strokeWidth:0,fill:"transparent"}),e(J.TextBlock,{margin:1,textAlign:"center",overflow:J.TextBlock.OverflowEllipsis,editable:!0},new J.Binding("text").makeTwoWay(),new J.Binding("stroke","color"))),i.current.nodeTemplate.toolTip=e("ToolTip",e(J.Panel,"Vertical",{maxSize:new J.Size(200,NaN)},e(J.TextBlock,{font:"bold 10pt sans-serif",textAlign:"center"},new J.Binding("text")),e(J.TextBlock,{font:"10pt sans-serif",textAlign:"center"},new J.Binding("text","details")))),i.current.nodeTemplate.selectionAdornmentTemplate=e(J.Adornment,"Spot",e(J.Placeholder,{padding:10}),w(J.Spot.Top,"TriangleUp"),w(J.Spot.Left,"TriangleLeft"),w(J.Spot.Right,"TriangleRight"),w(J.Spot.Bottom,"TriangleDown"),j({alignment:new J.Spot(.75,0)})),i.current.nodeTemplate.contextMenu=e("ContextMenu",e("ContextMenuButton",e(J.Panel,"Horizontal",B("Rectangle"),B("RoundedRectangle"),B("Ellipse"),B("Diamond"))),e("ContextMenuButton",e(J.Panel,"Horizontal",B("Parallelogram2"),B("ManualOperation"),B("Procedure"),B("Cylinder1"))),e("ContextMenuButton",e(J.Panel,"Horizontal",B("Terminator"),B("CreateRequest"),B("Document"),B("TriangleDown"))),A(),C(),N()),i.current.groupTemplate=e(J.Group,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:J.Spot.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:function(e,n){n.addMembers(n.diagram.selection,!0)||n.diagram.currentTool.doCancel()},avoidable:!1},new J.Binding("location","loc",J.Point.parse).makeTwoWay(J.Point.stringify),e(J.Panel,"Auto",{name:"BODY"},e(J.Shape,{parameter1:10,fill:d,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:J.Spot.AllSides,toSpot:J.Spot.AllSides},new J.Binding("fill"),new J.Binding("stroke","color"),new J.Binding("strokeWidth","thickness"),new J.Binding("strokeDashArray","dash")),e(J.Placeholder,{background:"transparent",margin:20})),e(J.TextBlock,{alignment:J.Spot.Top,alignmentFocus:J.Spot.Bottom,font:"bold 12pt sans-serif",editable:!0},new J.Binding("text"),new J.Binding("stroke","color"))),i.current.groupTemplate.selectionAdornmentTemplate=e(J.Adornment,"Spot",e(J.Panel,"Auto",e(J.Shape,{fill:null,stroke:"dodgerblue",strokeWidth:3}),e(J.Placeholder,{margin:1.5})),j({alignment:J.Spot.TopRight,alignmentFocus:J.Spot.BottomRight})),i.current.groupTemplate.contextMenu=e("ContextMenu",A(),C(),N()),i.current.linkTemplate=e(J.Link,{layerName:"Foreground",routing:J.Link.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new J.Binding("fromSpot","fromSpot",J.Spot.parse),new J.Binding("toSpot","toSpot",J.Spot.parse),new J.Binding("fromShortLength","dir",(function(e){return e>=1?10:0})),new J.Binding("toShortLength","dir",(function(e){return e>=1?10:0})),new J.Binding("points").makeTwoWay(),e(J.Shape,{strokeWidth:2},new J.Binding("stroke","color"),new J.Binding("strokeWidth","thickness"),new J.Binding("strokeDashArray","dash")),e(J.Shape,{segmentIndex:0,segmentOffset:new J.Point(15,0),segmentOrientation:J.Link.OrientAlong,alignmentFocus:J.Spot.Right,figure:"circle",width:10,strokeWidth:0},new J.Binding("fill","color"),new J.Binding("visible","dir",(function(e){return 1===e}))),e(J.Shape,{segmentIndex:-1,segmentOffset:new J.Point(-10,6),segmentOrientation:J.Link.OrientPlus90,alignmentFocus:J.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new J.Binding("fill","color"),new J.Binding("visible","dir",(function(e){return e>=1})),new J.Binding("width","thickness",(function(e){return 7+3*e})),new J.Binding("height","thickness",(function(e){return 7+3*e})),new J.Binding("segmentOffset","thickness",(function(e){return new J.Point(-15,4+1.5*e)}))),e(J.Shape,{segmentIndex:0,segmentOffset:new J.Point(15,-6),segmentOrientation:J.Link.OrientMinus90,alignmentFocus:J.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new J.Binding("fill","color"),new J.Binding("visible","dir",(function(e){return 2===e})),new J.Binding("width","thickness",(function(e){return 7+3*e})),new J.Binding("height","thickness",(function(e){return 7+3*e})),new J.Binding("segmentOffset","thickness",(function(e){return new J.Point(-15,4+1.5*e)}))),e(J.TextBlock,{alignmentFocus:new J.Spot(0,1,-4,0),editable:!0},new J.Binding("text").makeTwoWay(),new J.Binding("stroke","color"))),i.current.linkTemplate.selectionAdornmentTemplate=e(J.Adornment,e(J.Shape,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Z(2)},new J.Binding("pathPattern","thickness",Z)),j({alignmentFocus:new J.Spot(0,0,-6,-4)})),i.current.linkTemplate.contextMenu=e("ContextMenu",C(),N(),e("ContextMenuButton",e(J.Panel,"Horizontal",M(0),M(1),M(2))),e("ContextMenuButton",e(J.Panel,"Horizontal",e(J.Panel,"Spot",P(!1),T(J.Spot.Top,!1),T(J.Spot.Left,!1),T(J.Spot.Right,!1),T(J.Spot.Bottom,!1)),e(J.Panel,"Spot",{margin:new J.Margin(0,0,0,2)},P(!0),T(J.Spot.Top,!0),T(J.Spot.Left,!0),T(J.Spot.Right,!0),T(J.Spot.Bottom,!0))))),new J.Palette(o.current,{maxSelectionCount:1,linkTemplate:e(J.Link,{locationSpot:J.Spot.Center,selectionAdornmentTemplate:e(J.Adornment,"Link",{locationSpot:J.Spot.Center},e(J.Shape,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),e(J.Shape,{toArrow:"Standard",stroke:null}))},{routing:J.Link.AvoidsNodes,curve:J.Link.JumpOver,corner:5,toShortLength:4},new J.Binding("points"),e(J.Shape,{isPanelMain:!0,strokeWidth:2}),e(J.Shape,{toArrow:"Standard",stroke:null})),model:new J.GraphLinksModel([{text:"未命名",size:"100 100",fill:null,stroke:"#000"}].concat(F()(J.Shape.getFigureGenerators().toArray().map((function(e){return{text:"未命名",size:"100 100",figure:e.key,fill:"white",stroke:"#666",borderColor:"#000"}})))))}).nodeTemplate=e(J.Node,"Auto",{locationSpot:J.Spot.Center},new J.Binding("location","location",J.Point.parse).makeTwoWay(J.Point.stringify),e(J.Shape,"Circle",{fill:"white",stroke:"gray",strokeWidth:2,width:20,height:20,portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromLinkableSelfNode:!0,toLinkableSelfNode:!0},new J.Binding("stroke").makeTwoWay(),new J.Binding("fill").makeTwoWay(),new J.Binding("figure")),e(J.TextBlock,{margin:new J.Margin(5,5,3,5),font:"10pt sans-serif",minSize:new J.Size(16,16),maxSize:new J.Size(10,NaN),textAlign:"center",editable:!0},new J.Binding("key").makeTwoWay())),setTimeout((function(){i.current.grid=e(J.Panel,"Grid",e(J.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(J.Shape,"LineV",{stroke:"lightgray",strokeWidth:.5})),i.current.grid.visible=!0,i.current.grid.gridCellStroke="darkgray",i.current.grid.gridCellStrokeWidth=1}),300),window.myDiagrams=i.current,i.current},divClassName:"diagram-component",style:{height:"80vh"}}),(0,f.jsx)("div",{ref:a})]})]}),(0,f.jsx)("div",{className:"tr",children:(0,f.jsx)(C.ZP,{size:"large",onClick:m,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary",children:"保存到编辑器"})})]})})})},ne=t(5112),te=t(54449),ie=ne.ZP.Group,ae={margin:"0 8px"},oe=function(e){var n=e.callback,t=e.onCancel;return(0,f.jsxs)(y.Z,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:function(e){n(e)},children:[(0,f.jsxs)("div",{className:"flex-container",style:{alignItems:"baseline"},children:[(0,f.jsx)("span",{style:ae,children:"单元格数:"}),(0,f.jsx)("span",{style:ae,children:"行数"}),(0,f.jsx)(y.Z.Item,{name:"row",rules:[{required:!0,message:"请输入行数"}],children:(0,f.jsx)(te.Z,{})}),(0,f.jsx)("span",{style:ae,children:"列数"}),(0,f.jsx)(y.Z.Item,{name:"col",rules:[{required:!0,message:"请输入列数"}],children:(0,f.jsx)(te.Z,{})})]}),(0,f.jsxs)("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"},children:[(0,f.jsx)("span",{style:ae,children:"对齐方式:"}),(0,f.jsx)(y.Z.Item,{name:"align",children:(0,f.jsxs)(ie,{children:[(0,f.jsx)(ne.ZP,{value:"default",children:(0,f.jsx)("i",{className:"fa fa-align-justify"})}),(0,f.jsx)(ne.ZP,{value:"left",children:(0,f.jsx)("i",{className:"fa fa-align-left"})}),(0,f.jsx)(ne.ZP,{value:"center",children:(0,f.jsx)("i",{className:"fa fa-align-center"})}),(0,f.jsx)(ne.ZP,{value:"right",children:(0,f.jsx)("i",{className:"fa fa-align-right"})})]})})]}),(0,f.jsxs)("div",{className:"flex-container flex-end",children:[(0,f.jsx)(C.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,f.jsx)(C.ZP,{type:"ghost",onClick:t,children:"取消"})]})]})},re=t(78673),se=t(69154),le=t.n(se),ce=(0,c.forwardRef)((function(e,n){var t=e.use3d,i=e.width,a=e.height,o=e.callback,s=(e.showSaveButton,(0,c.useRef)()),l=(0,c.useRef)(),d=(0,c.useState)(!1),u=r()(d,2),p=u[0],h=u[1],m=(0,c.useRef)({id:s,appName:"graphing",width:i||1e3,height:a||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,c.useEffect)((function(){l.current=new(le())(m.current,!0),window.onload=function(){l.current.inject("applet_container")}}),[]);var g=function(){var e=window.ggbApplet.getPNGBase64(1,!0,72);return o&&o(e),e};return(0,c.useEffect)((function(){m.current.appName=p?"3D":"graphing",l.current.inject("applet_container")}),[p]),(0,c.useEffect)((function(){h(t)}),[t]),(0,c.useImperativeHandle)(n,(function(){return{getImgData:g}})),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:s}),(0,f.jsxs)(I.Z,{align:"middle",children:[(0,f.jsx)(Q.Z,{flex:1,children:(0,f.jsx)(re.Z,{size:"default",checkedChildren:"关闭3D图像",unCheckedChildren:"开启3D图像",checked:p,onChange:function(e){return h(e)}})}),(0,f.jsx)(Q.Z,{children:(0,f.jsx)(C.ZP,{size:"large",onClick:g,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})]})})),de=t(39828),ue=t(14103),pe="link",he="upload-image",fe="add-flowchart",me="draw-image",ge="code-block",xe="add-table",ve="------------",we={default:ve,left:":".concat(ve),center:":".concat(ve,":"),right:"".concat(ve,":")},je=t(57473);var be="@▁▁@",ye=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function Ae(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}var Ce=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",ke=l()(l()({},Ce+"-B","bold"),Ce+"-I","italic"),Se=l()(l()(l()(l()(l()(l()(l()(l()({},pe,"添加链接"),ge,"添加代码块"),he,"添加图片"),me,"添加画图"),fe,"插入流程图"),xe,"添加表格"),"maths-latex","数学图像"),"inline-latex","LATEX公式"),Ne=function(e){var n=e.defaultValue,t=void 0===n?"":n,i=e.onChange,o=e.width,s=void 0===o?"100%":o,d=e.height,g=void 0===d?400:d,x=e.miniToolbar,v=void 0!==x&&x,w=e.isFocus,y=void 0!==w&&w,A=e.watch,C=e.insertTemp,k=e.mode,Z=void 0===k?"markdown":k,M=e.id,P=void 0===M?"markdown-editor-id":M,T=e.showResizeBar,L=void 0!==T&&T,I=e.noStorage,O=void 0!==I&&I,R=e.showNullButton,G=void 0!==R&&R,W=e.showNullProgramButton,H=void 0!==W&&W,U=e.hidetoolBar,F=void 0!==U&&U,J=e.fullScreen,Y=void 0!==J&&J,V=e.onBlur,K=e.onCMBeforeChange,Q=e.onFullScreen,X=e.className,_=void 0===X?"":X,$=e.disablePaste,ne=void 0!==$&&$,te=e.disabled,ie=void 0!==te&&te,ae=e.disabledFill,re=void 0!==ae&&ae,se=e.placeholder,le=void 0===se?"":se,ve=e.values,Ce=void 0===ve?"":ve,Ne=e.extraUse,Be=(0,c.useState)(null),Ze=r()(Be,2),Me=Ze[0],Pe=Ze[1],Te=(0,c.useState)(t),De=r()(Te,2),Le=De[0],Ee=De[1],Ie=(0,c.useState)(A),Oe=r()(Ie,2),ze=Oe[0],Re=Oe[1],Ge=(0,c.useState)(Y),We=r()(Ge,2),He=We[0],Ue=We[1],Fe=(0,c.useState)(""),Je=r()(Fe,2),Ye=Je[0],Ve=Je[1],Ke=(0,c.useState)(0),qe=r()(Ke,2),Qe=qe[0],Xe=qe[1],_e=(0,c.useState)(g),$e=r()(_e,2),en=$e[0],nn=$e[1],tn=(0,c.useState)(!1),an=r()(tn,2),on=(an[0],an[1]),rn=(0,c.useState)(0),sn=r()(rn,2),ln=sn[0],cn=sn[1],dn=(0,c.useState)(0),un=r()(dn,2),pn=un[0],hn=un[1],fn=(0,c.useRef)(),mn=(0,c.useRef)(),gn=(0,c.useRef)(),xn=(0,c.useRef)();(0,c.useEffect)((function(){var e=window.scrollY||window.pageYOffset;Ee(Ce),null==Me||Me.setValue(Ce),window.scrollTo(0,e)}),[Ce]),(0,c.useEffect)((function(){null==Q||Q(He)}),[He]),(0,c.useEffect)((function(){if(fn.current){var e=function(e,t){if(!ne){var i=t.clipboardData;if(i){var a=i.types.toString(),o=i.items;if("Files"===a||i.types.indexOf("Files")>-1){if(t.preventDefault(),"stex"==Z)return;try{var r,s=o[1];"file"===(null===(r=o[0])||void 0===r?void 0:r.kind)&&(s=o[0]);var l=s.getAsFile(),c=l.name.split(".").pop();E(l,(function(e){var t,i,a;e.id?(null==l||null===(t=l.type)||void 0===t?void 0:t.indexOf("image"))>-1?n.replaceSelection(".concat(e.content_type,")")):(null==l||null===(i=l.type)||void 0===i?void 0:i.indexOf("video"))>-1?n.replaceSelection('')):(null==l||null===(a=l.type)||void 0===a?void 0:a.indexOf("pdf"))>-1?n.replaceSelection('').concat(l.name,"")):ye.includes(c)?n.replaceSelection('').concat(l.name,"")):n.replaceSelection("[".concat(l.name,"](").concat(ue.Z.API_SERVER,"/api/attachments/").concat(e.id,"?type=").concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}))}catch(t){B.ZP.warning("请使用chrome浏览器粘贴")}return!0}return!0}return!0}t.preventDefault()},n=u().fromTextArea(fn.current,{mode:Z,lineNumbers:!v,lineWrapping:!0,value:t,autoCloseTags:!0,autoCloseBrackets:!0});return n.on("keyup",(function(e,t){8===t.keyCode&&(""==e.getValue()?n.setOption("placeholder",le):n.setOption("placeholder",null))})),n.on("keydown",(function(e,n){if(8===n.keyCode){var t=function(e,n){var t=e.getDoc(),i=t.getCursor(),a=t.getLine(i.line),o=a.charAt(i.ch-1),r=a.lastIndexOf("@▁@",i.ch),s=a.lastIndexOf("@▁▁@",i.ch),l=r>s?r:s,c=r>s?3:4;if(-1===be.indexOf(o))return null;if(console.log("change1:",n,e,a,i,l,r,s,o),l>=0&&i.ch-l<5){var d=l+c;return t.replaceRange("",{line:i.line,ch:l},{line:i.line,ch:d}),{line:i.line,ch:d}}return null}(e);t&&n.preventDefault()}})),y&&n.focus(),n.on("paste",e),ie&&n.on("beforeChange",(function(e,n){"paste"!==n.origin&&"+input"!==n.origin||n.cancel()})),Pe(n),function(){n.off("paste",e)}}}),[]);var vn=(0,c.useCallback)((function(){mn.current}),[en,mn,He]);(0,c.useEffect)((function(){if(Me){var e=function(){var e=new p.Z((function(e){var n,t=a()(e);try{for(t.s();!(n=t.n()).done;){var i=n.value;(i.target.offsetHeight>0||i.target.offsetWidth>0)&&(vn(),Me.setSize("100%","100%"),Me.refresh())}}catch(e){t.e(e)}finally{t.f()}}));return e.observe(fn.current.parentElement),e}();return function(){var n,t;null!==(n=fn.current)&&void 0!==n&&n.parentElement&&e.unobserve(null===(t=fn.current)||void 0===t?void 0:t.parentElement)}}}),[Me,vn]),(0,c.useEffect)((function(){if(Me){for(var e=[],n=function(){var n=r()(i[t],2),a=n[0],o=n[1],s=l()({},a,(function(){wn(o)}));e.push(s),Me.addKeyMap(s)},t=0,i=Object.entries(ke);t0){var e=(new Date).getTime(),n=window.sessionStorage.getItem(P);e>=Qe+1e4&&(!n||n!==Le)&&(window.sessionStorage.setItem(P,Le),on(!0))}}),1e4),(0,c.useEffect)((function(){Re(A)}),[Me,A]),(0,c.useEffect)((function(){Me&&y&&Me.focus()}),[Me,y]),(0,c.useEffect)((function(){if(ze&&Me){var e=function(e){var n=e.target;if(xn.current){var t=n.scrollTop/n.scrollHeight;xn.current.scrollTop=xn.current.scrollHeight*t}},n=Me.getScrollerElement();return n.addEventListener("scroll",e),function(){n.removeEventListener("scroll",e)}}}),[Me,ze]),(0,c.useEffect)((function(){if(Me&&K){var e=function(e,n){K(e,n)};return Me.on("beforeChange",e),function(){Me.off("beforeChange",e)}}}),[Me,K]),(0,c.useEffect)((function(){if(Me&&V){var e=function(){V(Me.getValue())};return Me.on("blur",e),function(){Me.off("blur",e)}}}),[Me,V]),(0,c.useEffect)((function(){if(Me){var e=function(e,n){var t=e.getValue();Ee(t),Xe((new Date).getTime()),e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),i&&(H?i(t,Cn(t)):i(t))};return Me.on("change",e),function(){Me.off("change",e)}}}),[Me,i]),(0,c.useEffect)((function(){if(Me)if(null==t)Me.setValue(""),Ee("");else{var e=window.scrollY||window.pageYOffset;t!==Me.getValue()&&(Me.setValue(t),Ee(t),Me.setCursor(ie?1:Me.lineCount(),0),window.scrollTo(0,e))}}),[Me,t]);var wn=(0,c.useCallback)((function(e){var n=Me.getCursor(),t=Me.getSelection(),i=t.split("\n");switch(e){case"bold":return Me.replaceSelection("**"+t+"**"),""===t&&Me.setCursor(n.line,n.ch+2),Me.focus();case"italic":return Me.replaceSelection("*"+t+"*"),""===t&&Me.setCursor(n.line,n.ch+1),Me.focus();case"code":return Me.replaceSelection("`"+t+"`"),""===t&&Me.setCursor(n.line,n.ch+1),Me.focus();case"inline-latex":return Ve("inline-latex"),Me.focus();case"latex":return Me.replaceSelection("```latex\n"+t+"\n```"),Me.setCursor(n.line+1,t.length+1),Me.focus();case"line-break":return Me.replaceSelection("
\n"),Me.focus();case"list-ul":return""===t?Me.replaceSelection("- "+t):Me.replaceSelection(i.map((function(e){return""===e?"":"- ".concat(e)})).join("\n")),Me.focus();case"list-ol":return""===t?Me.replaceSelection("1. "+t):Me.replaceSelection(i.map((function(e,n){return""===e?"":"".concat(n+1,". ").concat(e)})).join("\n")),Me.focus();case"add-null-ch":return""===t&&Me.setCursor(n.line,n.ch),Me.replaceSelection("▁"),Me.focus();case"add-signal":return""===t&&Me.setCursor(n.line,n.ch),Me.replaceSelection("@▁@"),Me.focus();case"add-multiple":return""===t&&Me.setCursor(n.line,n.ch),Me.replaceSelection(be),Me.focus();case"inster-template-1":return""===t&&Me.setCursor(n.line,n.ch),Me.replaceSelection("\n**模板标题**\n模板正文内容,可输入文本内容和粘贴图片等操作"),Me.focus();case"eraser":return Me.setValue(""),Me.focus();case"trigger-watch":return Re(!ze),Me.focus();case"trigger-full-screen":return Ue(!He),Me.focus();case pe:return void Ve(pe);case ge:return void Ve(ge);case he:return void Ve(he);case me:return void Ve(me);case"maths-latex":return void Ve("maths-latex");case fe:return void Ve(fe);case xe:return void Ve(xe);default:throw new Error}}),[Me,ze,He]),jn=(0,c.useCallback)((function(e,n){var t,i,a,o,r;switch(Ve(""),Ye){case pe:var s=e.title,l=e.link;return Me.replaceSelection("[".concat(s,"](").concat(l,")")),Me.focus();case ge:var c=e.language,d=e.content;return Me.replaceSelection(["```"+c,d,"```"].join("\n")),Me.focus();case"maths-latex":for(var u=atob(e),p=new Uint8Array(u.length),h=0;h-1||null==g||!g.type?m?Me.replaceSelection(".concat(f,' "').concat(m,'" )')):Me.replaceSelection("")):(null==g||null===(o=g.type)||void 0===o?void 0:o.indexOf("video"))>-1?Me.replaceSelection('')):(null==g||null===(r=g.type)||void 0===r?void 0:r.indexOf("pdf"))>-1?Me.replaceSelection('').concat(g.name,"")):ye.includes(x)?Me.replaceSelection('').concat(g.name,"")):Me.replaceSelection("[".concat(g.name,"](").concat(ue.Z.API_SERVER).concat(f,")")),Me.focus();case xe:for(var v=e.row,w=e.col,j=e.align,b="\n",y=0;y300&&(n=300),nn(g+n+"px")}},i=gn.current,a=!1,o=0;return i.addEventListener("mousedown",e),document.addEventListener("mousemove",t),document.addEventListener("mouseup",n),function(){i.removeEventListener("mousedown",e),document.removeEventListener("mousemove",t),document.removeEventListener("mouseup",n)}}}),[Me,gn]),(0,c.useEffect)((function(){nn(g)}),[g]);var An={width:Ae(s),height:Ae(en)},Cn=((0,c.useMemo)((function(){if(Qe){var e=new Date(Qe),n=e.getHours(),t=e.getMinutes(),i=e.getSeconds();return t=t<10?"0"+t:t,i=i<10?"0"+i:i,"".concat(n=n<10?"0"+n:n,":").concat(t,":").concat(i)}return 0}),[Qe]),function(e){var n=[];if(H){e=e.replace(/(@▁▁@|@▁@)/g,(function(e,t,i){n.push({multiLine:!("@▁@"===e)})}))}return n});(0,c.useEffect)((function(){if(Se[Ye]&&Ye!==me&&Ye!==fe){var e=document.getElementsByClassName("ant-modal")[0],n=window.innerWidth/2-e.offsetWidth/2,t=window.innerHeight/2-e.offsetHeight/2;cn(n),hn(t)}}),[Ye]);var kn=function(e,n,t,i){var a=document.body.clientHeight,o=document.body.clientWidth;return!(e<20&&t>e||e>o-20&&tn||n>a-20&&i0&&(0,s.jsx)("div",{className:r,children:t.map((function(e,n){return(0,s.jsxs)("div",{onClick:e.click,children:[e.name,e.sign?(0,s.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHT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5HWCvUlFfvWiGWMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",width:39}):null]},n)}))}),p]}),i&&(0,s.jsx)("img",{style:{marginTop:33,marginRight:38},src:i,width:c})]})})},c=t(79800),d=t.n(c),u="row___aXJjm",p="title___HUKL0",h="tagsWrap___XB2W3",f="action___VdHb1",m="bar___t1kKC",g="tag___V7Eft",x="name___Hk1Ip",v="num___xQpcH",w="active___XryTX",j="tagsBorderWrap___OMxjs",b=t(92310),y=t.n(b),A=t(89392),C=function(e){var n=e.dataSource,t=void 0===n?[]:n,a=e.value,o=e.onChange,r=e.onTitleChange,l=e.className,c=e.title,b=e.titleWidth,C=void 0===b?41:b,k=e.style,S=void 0===k?{}:k,N=e.fontColor,B=void 0===N?"#6A7283":N,Z=e.showCount,M=(0,i.useState)(0),P=d()(M,2),T=P[0],D=P[1],L=(0,i.useState)(!1),E=d()(L,2),I=E[0],O=E[1],z=(0,i.useRef)(null),R=(0,i.useRef)(null);return(0,i.useEffect)((function(){var e;0!==t.length&&((null==z||null===(e=z.current)||void 0===e?void 0:e.clientHeight)>97?D(1):D(0));0===t.length&&D(0),O(!1)}),[t]),(0,s.jsxs)("div",{className:y()(u,l),style:S,children:[(0,s.jsx)("div",{onClick:(0,A.throttle)((function(){return null==r?void 0:r()}),2e3),style:{width:C,marginTop:I?12:4},className:"".concat(p," ").concat(r?"current":""),children:c}),(0,s.jsxs)("div",{className:I?"".concat(h," ").concat(j):h,children:[(0,s.jsx)("div",{className:m,ref:R,style:T>0?{height:1===T?97:"auto",overflow:1===T?"hidden":"auto",paddingRight:55}:{paddingRight:0},children:(0,s.jsx)("div",{className:g,ref:z,children:null==t?void 0:t.map((function(e){return(0,s.jsxs)("span",{onClick:function(){return o(e.id)},style:{color:B},className:a===e.id?w:"",children:[(0,s.jsx)("span",{title:e.name,className:x,children:e.name}),!!Z&&(0,s.jsx)("span",{className:v,children:e.count})]},e.id)}))})}),!!T&&(0,s.jsx)(i.Fragment,{children:1===T?(0,s.jsxs)("div",{onClick:function(){var e;D(2),(null==z||null===(e=z.current)||void 0===e?void 0:e.clientHeight)>245?O(!0):O(!1)},className:f,children:["展开",(0,s.jsx)("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})]}):(0,s.jsxs)("div",{onClick:function(){R.current.scrollTop=0,D(1),O(!1)},className:f,children:["收起",(0,s.jsx)("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})]})})]})]})},k="tabs___GTqPV",S="active___F26E8",N=function(e){var n=e.dataSource,t=void 0===n?[]:n,i=e.value,a=e.onChange,o=e.className,r=e.style,l=void 0===r?{}:r;return(0,s.jsx)("div",{style:l,className:y()(k,o),children:t.map((function(e){return(0,s.jsx)("span",{onClick:function(){return a(e.id)},className:i===e.id?S:"",children:e.name},e.id)}))})},B="input___PW2zI",Z="dropdown___vSy8B",M="menu___NiyBu",P="text___Grueu",T="b1___ZKryM",D="b2___aKyGa",L=t(98135),E=function(e){var n,t=e.dataSource,a=void 0===t?[]:t,o=e.value,r=void 0===o?"":o,l=e.onChange,c=e.onInputChange,u=void 0===c?function(){}:c,p=e.className,h=e.style,f=void 0===h?{}:h,m=e.placeholder,g=(e.allowClear,(0,i.useState)("")),x=d()(g,2),v=x[0],w=x[1],j=(0,i.useState)(""),b=d()(j,2),A=b[0],C=b[1];(0,i.useEffect)((function(){var e,n=r;null!==(e=JSON.stringify(r))&&void 0!==e&&e.includes("{")&&(w(r.id),n=r.value||"");try{C(decodeURIComponent(n||""))}catch(e){C(decodeURIComponent(n||""))}}),[r]);var k=function(){l(encodeURIComponent(A),v||null)};return(0,s.jsxs)("div",{className:y()(B,p),style:f,children:[!!a.length&&(0,s.jsxs)("div",{className:Z,children:[(0,s.jsxs)("div",{className:P,children:[null===(n=a.find((function(e){return e.id===v})))||void 0===n?void 0:n.name,(0,s.jsx)("i",{className:"iconfont icon-zhankai4"}),(0,s.jsx)("b",{className:T}),(0,s.jsx)("b",{className:D})]}),(0,s.jsx)("div",{className:M,children:a.map((function(e,n){return(0,s.jsx)("div",{onClick:function(){var n;(n=e.id)!==v&&(w(n),l(encodeURIComponent(A),n))},children:e.name},n)}))})]}),(0,s.jsx)(L.Z,{onPressEnter:k,value:A,onChange:function(e){C(e.target.value),u(encodeURIComponent(e.target.value),v||null)},bordered:!1,placeholder:m}),(0,s.jsx)("i",{onClick:k,className:"iconfont icon-sousuo9 font14 pl10 current"})]})},I="quickPager___GM30J",O="disabled___Ozc8I",z=function(e){var n=e.value,t=e.onChange,i=e.className,a=e.total,o=e.pageSize,r=e.style,l=void 0===r?{}:r,c=n<2,d=n>=Math.ceil(a/o);return a<=o?(0,s.jsx)(s.Fragment,{}):(0,s.jsxs)("div",{className:y()(I,i),style:l,children:[(0,s.jsx)("div",{onClick:function(){c||t(n-1,"prev")},className:c?O:"",children:"上一页"}),(0,s.jsx)("div",{onClick:function(){d||t(n+1,"next")},className:d?O:"",children:"下一页"})]})},R="list___oOsiS",G="wrap___G6T7F",W="lockWrap___Rl79E",H="li___oZZ7l",U="cover___b2bYW",F="img___IQX7w",J="sign___HkT6C",Y="name___SsJx8",V="e___TMqq0",K="tags___bcjyo",q="rate___YACg7",Q=t(71418),X=t(6848),_=t(97022),$=t(14103),ee=t(92818),ne=t(96908),te=t(57177),ie=t(81378),ae=t(21740),oe=function(e){var n=e.className,t=e.dataSource,i=void 0===t?[]:t,a=e.col,o=void 0===a?4:a,r=e.right,l=e.bottom,c=void 0===l?23:l,d=e.precision,u=void 0===d?0:d,p=e.wrapWidth,h=void 0===p?1200:p,f=e.trackEventItems,m=e.loading,g=Math.floor((h-(o-1)*r)/o);return(0,s.jsx)(Q.Z,{spinning:m,children:(0,s.jsxs)("div",{className:y()(R,n),children:[!!i.length&&i.map((function(e,n){var t=e.name,i=e.id,a=e.identifier,l=e.power,d=(e.cover_image_id,e.pic);return(0,s.jsxs)("div",{className:G,style:{width:g,marginRight:(1+n)%o==0?0:r+u,marginBottom:c},children:[(0,s.jsxs)("a",{target:"_blank",href:"/shixuns/".concat(a,"/challenges"),className:H,onClick:function(e){e.preventDefault(),f&&(0,ee.L9)([f]),l&&(0,ee.xg)("/shixuns/".concat(a,"/challenges"))},children:[(0,s.jsxs)("div",{className:F,children:[(0,s.jsx)("img",{className:U,src:"".concat(d)}),e.is_jupyter&&(0,s.jsx)("img",{className:J,src:ne}),e.is_jupyter_lab&&(0,s.jsx)("img",{className:J,src:te}),e.is_unity_3d&&(0,s.jsx)("img",{className:J,src:ie})]}),(0,s.jsx)("div",{className:Y,children:(0,s.jsx)(X.Z,{title:t||"实践项目名称-未填写",children:(0,s.jsx)("span",{className:V,children:t||"实践项目名称-未填写"})})}),(0,s.jsxs)("div",{className:K,children:[(0,s.jsx)(X.Z,{placement:"bottom",title:"关卡数",children:(0,s.jsxs)("span",{children:[(0,s.jsx)("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),(0,s.jsx)("span",{children:e.challenges_count})]})}),!!e.myshixuns_count&&(0,s.jsx)(X.Z,{placement:"bottom",title:"学习人数",children:(0,s.jsxs)("span",{children:[(0,s.jsx)("i",{className:"iconfont icon-chengyuan font14 mr2"}),(0,s.jsx)("span",{children:e.myshixuns_count})]})}),(0,s.jsx)(X.Z,{placement:"bottom",title:"难度等级",children:(0,s.jsx)("span",{children:(0,s.jsx)("span",{children:e.level})})}),(0,s.jsxs)("div",{className:q,children:[(0,s.jsx)(_.Z,{allowHalf:!0,disabled:!0,defaultValue:e.score_info}),(0,s.jsxs)("span",{children:[" ",e.score_info?"".concat(e.score_info,"分"):"5分"]})]})]})]}),!l&&(0,s.jsxs)("div",{className:W,children:[(0,s.jsx)("img",{src:"".concat($.Z.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),(0,s.jsx)("span",{className:"mt15 font16 c-white",children:"定向开放内容,需要授权"})]})]},i)})),!i.length&&(0,s.jsx)(ae.Z,{})]})})},re="list___jb2Ay",se="wrap___VsQDr",le="li___IxCLC",ce="cover___Mu8wr",de="img___IpFLA",ue="bq___Bil0T",pe="sign___DXJ4d",he="name___l7FoJ",fe="e___pXQUG",me="unit___wCIFR",ge="tags___w_Mil",xe=function(e){var n=e.className,t=e.dataSource,i=void 0===t?[]:t,a=e.col,o=void 0===a?4:a,r=e.right,l=e.bottom,c=void 0===l?23:l,d=e.precision,u=void 0===d?0:d,p=e.wrapWidth,h=void 0===p?1200:p,f=e.trackEventItems,m=e.loading,g=Math.floor((h-(o-1)*r)/o),x=[{name:"推荐自学",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101计划",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"国家一流",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"省级一流",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"精品课程",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"军队一流",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"}];return(0,s.jsx)(Q.Z,{spinning:m,children:(0,s.jsxs)("div",{className:y()(re,n),children:[!(null==i||!i.length)&&(null==i?void 0:i.map((function(e,n){var t,i=e.name,a=e.id,l=e.identifier,d=(e.featured,e.school_name),p=e.image_url;e.excellent,e.is_plan;return(0,s.jsx)("div",{className:se,style:{width:g,marginRight:(1+n)%o==0?0:r+u,marginBottom:c},children:(0,s.jsxs)("a",{target:"_blank",href:"/paths/".concat(l),className:le,onClick:function(e){e.preventDefault(),f&&(0,ee.L9)([f]),(0,ee.xg)("/paths/".concat(l))},children:[(0,s.jsxs)("div",{className:de,children:[(0,s.jsx)("img",{className:ce,src:"".concat(p)}),null==e||null===(t=e.subject_tags)||void 0===t?void 0:t.map((function(e,n){var t;if(0===n){var i,a=null===(i=x.find((function(n){return n.name==e})))||void 0===i?void 0:i.swimg;return(0,s.jsx)("img",{className:pe,src:a,style:{left:"-4px"}})}var o=null===(t=x.find((function(n){return n.name==e})))||void 0===t?void 0:t.ptimg;return(0,s.jsx)("img",{className:pe,src:o,style:{left:"".concat(48+52*(n-1)+2*n,"px")}})})),(0,s.jsx)("div",{style:{position:"absolute",top:"150px",left:"4px"},children:(null==e?void 0:e.excellent)&&(0,s.jsx)("div",{className:ue,children:"开放课程"})})]}),(0,s.jsx)("div",{className:he,children:(0,s.jsx)(X.Z,{title:i,children:(0,s.jsx)("span",{className:fe,children:i})})}),(0,s.jsx)(X.Z,{title:"发布单位:".concat(d),children:(0,s.jsxs)("div",{className:me,children:[(0,s.jsx)("i",{className:"iconfont icon-danwei1 font14 mr3"}),d]})}),(0,s.jsx)("div",{className:ge,children:(0,s.jsxs)("div",{children:[(0,s.jsx)(X.Z,{placement:"bottom",title:"章节数",children:(0,s.jsxs)("span",{children:[(0,s.jsx)("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),(0,s.jsx)("span",{children:e.stages_count})]})}),(0,s.jsx)(X.Z,{placement:"bottom",title:"学习人数",children:(0,s.jsxs)("span",{children:[(0,s.jsx)("i",{className:"iconfont icon-chengyuan font14 mr3"}),(0,s.jsx)("span",{children:e.members_count})]})})]})})]})},a)}))),!i.length&&(0,s.jsx)(ae.Z,{})]})})},ve={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},we=function(e){var n=e.className,t=e.dataSource,i=void 0===t?[]:t,a=e.col,o=void 0===a?4:a,r=e.right,l=e.bottom,c=void 0===l?23:l,d=e.precision,u=void 0===d?0:d,p=e.wrapWidth,h=void 0===p?1200:p,f=e.trackEventItems,m=e.loading,g=Math.floor((h-(o-1)*r)/o);return(0,s.jsx)(Q.Z,{spinning:m,children:(0,s.jsxs)("div",{className:y()(ve.list,n),children:[!!i.length&&i.map((function(e,n){var t=e.subject_identifier,i=e.id,a=(e.identifier,e.power,0!=e.is_public&&e.is_public);return(0,s.jsxs)("div",{className:ve.wrap,style:{width:g,marginRight:(1+n)%o==0?0:r+u,marginBottom:c},children:[(0,s.jsxs)("a",{className:ve.li,onClick:function(n){n.preventDefault(),f&&(0,ee.L9)([f]),(0,ee.xg)(e.first_category_url)},children:[(0,s.jsxs)("div",{className:ve.top,children:[(0,s.jsx)(X.Z,{title:e.name,children:(0,s.jsx)("div",{className:ve.name,children:e.name})}),(0,s.jsx)("img",{className:ve.img,src:$.Z.IMG_SERVER+"/images/"+e.avatar_url}),(0,s.jsx)("div",{className:ve.text,title:e.creator,children:e.creator}),t&&(0,s.jsxs)("div",{className:ve.btns,children:[(0,s.jsx)("div",{children:"开放课程"}),(0,s.jsx)("aside",{children:"开放课堂"})]}),a&&(0,s.jsx)("div",{className:ve.sign,children:"公开"})]}),(0,s.jsxs)("div",{className:ve.bottom,children:[e.visits>0&&(0,s.jsx)(X.Z,{title:"访问量",placement:"bottom",children:(0,s.jsxs)("span",{children:[(0,s.jsx)("i",{className:"iconfont icon-liulanyan"}),(0,s.jsx)("span",{children:e.visits})]})}),e.course_members_count>0&&(0,s.jsx)(X.Z,{title:"成员",placement:"bottom",children:(0,s.jsxs)("span",{children:[(0,s.jsx)("i",{className:"iconfont icon-chengyuan"}),e.course_members_count]})}),e.tasks_count>0&&(0,s.jsx)(X.Z,{title:"作业",placement:"bottom",children:(0,s.jsxs)("span",{children:[(0,s.jsx)("i",{className:"iconfont icon-zuoye"}),e.tasks_count]})}),e.is_end?(0,s.jsx)("div",{style:{color:"#6B758B"},children:"已结束"}):(0,s.jsx)("div",{style:{color:"#00B187"},children:"进行中"})]})]}),!e.is_accessible&&(0,s.jsxs)("div",{className:ve.lockWrap,children:[(0,s.jsx)("img",{src:"".concat($.Z.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),(0,s.jsx)("span",{className:"mt15 font16 c-white",children:"非课堂成员不可进入"})]})]},i)})),!i.length&&(0,s.jsx)(ae.Z,{})]})})},je={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},be=t(96048),ye=function(e){var n=e.dataSource,t=void 0===n?[]:n,i=e.value,a=e.onChange,o=e.className,r=e.style,l=void 0===r?{}:r,c=e.tabBarExtraContent;return(0,s.jsxs)("div",{className:y()(je.tabs,o),style:l,children:[(0,s.jsx)("div",{className:je.tabsWrap,children:t.map((function(e,n){return(0,s.jsxs)("aside",{className:je.tab,onClick:function(){a(e.id),e.link&&be.history.push(e.link)},children:[(0,s.jsx)("div",{className:i===e.id?je.active:"",children:e.name}),null==(null==e?void 0:e.resetCount)&&void 0!==(null==e?void 0:e.total)&&(0,s.jsxs)("span",{children:["(",null==e?void 0:e.total,")"]}),void 0!==(null==e?void 0:e.resetCount)&&void 0!==(null==e?void 0:e.total)&&(0,s.jsx)(X.Z,{title:null!=(null==e?void 0:e.tip)?null==e?void 0:e.tip:"",children:(0,s.jsxs)("span",{style:{color:"#9096A3"},children:["(",(0,s.jsx)("span",{style:{color:"#000"},children:null==e?void 0:e.resetCount}),"/",(0,s.jsx)("span",{children:null==e?void 0:e.total}),")"]})})]},n)}))}),(0,s.jsx)("div",{className:je.tabBar,children:c})]})},Ae=function(e){var n=e.className,t=e.style,i=void 0===t?{}:t,a=e.children;return(0,s.jsx)("div",{className:y()(n),style:i,children:a})},Ce="orderWrap___ZfyGX",ke="orderIconWrap___XTB_O",Se="orderAsc___KWHmA",Ne="orderDesc___rHdbB",Be="active___a7eSP",Ze="cursorPointer___gs9kL",Me="orderTextWrap___teAKn",Pe=t(38854),Te=t(20834),De=[{id:"updated_at",name:"最新动态"},{id:"created_at",name:"最新创建"},{id:"name",name:"名称排序"}],Le=function(e){var n,t=e.sortValue,i=e.dropValue,a=e.className,o=e.onSort,r=e.onDrop,l=e.dataSource,c=void 0===l?De:l;return(0,s.jsxs)("div",{className:y()(Ce,a),children:[(0,s.jsx)(Pe.Z,{dropdownRender:function(){return(0,s.jsx)(Te.Z,{children:c.map((function(e,n){return(0,s.jsx)(Te.Z.Item,{onClick:function(){return r(e.id)},children:e.name},n)}))})},children:(0,s.jsx)("span",{className:Me,children:null===(n=c.find((function(e){return i===e.id})))||void 0===n?void 0:n.name})}),(0,s.jsxs)("span",{className:ke,children:[(0,s.jsx)("span",{className:Se,children:(0,s.jsx)("i",{className:"asc"===t?"iconfont icon-sanjiaoxing-up font12 ".concat(Ze," ").concat(Be):"iconfont icon-sanjiaoxing-up font12 ".concat(Ze),onClick:function(){return o("asc"===t?"desc":"asc")}})}),(0,s.jsx)("span",{className:Ne,children:(0,s.jsx)("i",{className:"desc"===t?"iconfont icon-sanjiaoxing-down font12 ".concat(Ze," ").concat(Be):"iconfont icon-sanjiaoxing-down font12 ".concat(Ze),onClick:function(){return o("asc"===t?"desc":"asc")}})})]})]})},Ee=t(82242),Ie=t.n(Ee),Oe=t(7557),ze=t.n(Oe),Re=t(41498),Ge=t.n(Re),We=t(39647),He=t.n(We),Ue={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},Fe=t(3113),Je=["className","style","children","loading","openLoading","onClick","size","shape"],Ye=function(e){var n=e.className,t=e.style,a=e.children,o=e.loading,r=void 0!==o&&o,l=e.openLoading,c=e.onClick,u=void 0===c?function(){}:c,p=e.size,h=void 0===p?"middle":p,f=e.shape,m=void 0===f?"round":f,g=He()(e,Je),x=(0,i.useState)(!1),v=d()(x,2),w=v[0],j=v[1];return(0,s.jsx)(Fe.ZP,Ie()(Ie()({onClick:(0,A.throttle)(function(){var e=Ge()(ze()().mark((function e(n){return ze()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l&&j(!0),e.prev=1,e.next=4,u(n);case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(1),console.log("error",e.t0);case 9:l&&j(!1);case 10:case"end":return e.stop()}}),e,null,[[1,6]])})));return function(n){return e.apply(this,arguments)}}(),2e3,{leading:!0,trailing:!1}),className:y()(Ue.btn,Ue["".concat(h,"-").concat(m)],n),style:t,size:h,shape:m,loading:w||r},g),{},{children:a}))},Ve="head___ghH72",Ke="node___mjPEy",qe=function(e){var n=e.className,t=e.style,i=e.children,a=void 0===i?null:i,o=e.onClick,r=e.title;return(0,s.jsxs)("div",{className:y()(Ve,n),style:t,children:[(0,s.jsxs)("span",{className:"primary-hover",onClick:o,children:[(0,s.jsx)("i",{className:"iconfont icon-fanhui2 font12"}),"返回"]}),(0,s.jsx)("b",{title:r,children:r}),(0,s.jsx)("div",{className:Ke,children:a})]})},Qe="btns___sNgTb",Xe="confirm___Ozirl",_e="cancel___aiq1I",$e=function(e){var n=e.confirmShow,t=void 0===n||n,i=e.confirmTitle,a=e.confirmClick,o=e.cancelShow,r=void 0===o||o,l=e.cancelTitle,c=e.cancelClick,d=e.className,u=e.style,p=e.confirmLoading,h=void 0!==p&&p;return(0,s.jsxs)("div",{className:y()(Qe,d),style:u,children:[t&&(0,s.jsx)(Fe.ZP,{loading:h,onClick:a,type:"primary",className:Xe,children:i}),r&&(0,s.jsx)(Fe.ZP,{onClick:c,className:_e,children:l})]})},en={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},nn=function(e){var n=e.className,t=e.style,i=void 0===t?{}:t,a=e.LeftContent,o=e.children,r=e.RightContent;return(0,s.jsx)("div",{className:y()(en.fixedBottom,n),style:i,children:(0,s.jsxs)("div",{className:en.wrap,children:[(0,s.jsx)("div",{className:en.left,children:a}),(0,s.jsx)("div",{className:en.center,children:o}),(0,s.jsx)("div",{className:en.right,children:r})]})})},tn="crumbs___V41Oe",an="hover___bEIVd",on=function(e){var n=e.className,t=e.style,a=void 0===t?{}:t,o=e.dataSource,r=void 0===o?[]:o;return(0,s.jsx)("div",{className:y()(tn,n),style:a,children:r.map((function(e,n){return n"," "]})]},n):(0,s.jsx)("span",{style:{color:"#5F6368"},children:e.name},n)}))})},rn=t(31797),sn=["onChange"],ln=rn.Z.Countdown,cn=function(e){var n=e.onChange,t=He()(e,sn),a=(0,i.useState)(null),o=d()(a,2),r=o[0],l=o[1];(0,i.useEffect)((function(){"number"==typeof r&&r>=0&&n(r)}),[r]);return(0,s.jsx)(ln,Ie()(Ie()({},t),{},{onChange:function(e){var n=Math.floor(e/1e3);l(n)}}))}},57473:function(e,n,t){"use strict";t.d(n,{Z:function(){return a}});var i=t(59301);function a(e,n){var t=(0,i.useRef)();(0,i.useEffect)((function(){t.current=e})),(0,i.useEffect)((function(){if(null!==n){var e=setInterval((function(){t.current()}),n);return function(){return clearInterval(e)}}}),[n])}},22113:function(e,n,t){"use strict";t.d(n,{Z:function(){return K}});var i=t(70236),a=t.n(i),o=t(79800),r=t.n(o),s=t(59301),l=t(96048),c=t(7557),d=t.n(c),u=t(41498),p=t.n(u),h=t(21251),f=t(6848),m=t(14491),g=t(95237),x=t(43604),v=t(6918),w=t(14103),j=t(96820),b=t(37712);var y=function(e){var n,t,i,a,o,c,u,y=e.Prize,A=(0,l.useParams)(),C=(0,s.useState)([{type:1,name:"团体奖证书"},{type:2,name:"个人奖证书"},{type:3,name:"优秀指导教师证书"}]),k=r()(C,2),S=k[0],N=(k[1],function(){var e=p()(d()().mark((function e(n){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,v.Ju)({type:n.type,id:A.identifier});case 2:0===(null==(t=e.sent)?void 0:t.status)&&(location.href="/competitions/exports?id=".concat(A.identifier,"&type=").concat(n.type));case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()),B=[{title:"角色",dataIndex:"role",align:"center",width:80,render:function(e){return(0,b.jsx)(f.Z,{placement:"topLeft",title:e,children:e||"--"})}},{title:"姓名",dataIndex:"name",width:100,render:function(e){return(0,b.jsx)(f.Z,{placement:"topLeft",title:e,children:e||"--"})}},{title:"实名认证",width:100,dataIndex:"real_name_auth",render:function(e){return"authed"===e?"已认证":"authing"===e?"待审核":"未认证"}},{title:"职业认证",width:100,dataIndex:"professional_auth",render:function(e){return"authed"===e?"已认证":"authing"===e?"待审核":"未认证"}},{title:"手机号",dataIndex:"phone_binded",width:100,render:function(e){return e?"已绑定":"未绑定"}},{title:"邮箱号",dataIndex:"email_binded",width:100,render:function(e){return e?"已绑定":"未绑定"}},{title:"开户行及银行卡号信息(队长填写)",dataIndex:"role",align:"center",render:function(e,n){var t,i,a;return"队长"===(null==n?void 0:n.role)?(0,b.jsxs)("span",{style:{width:"50%",textAlign:"center"},children:[(null==y?void 0:y.teams)&&(null==y||null===(t=y.teams[0])||void 0===t||null===(t=t.bank_account)||void 0===t?void 0:t.bank),(null==y?void 0:y.teams)&&(null==y||null===(i=y.teams[0])||void 0===i||null===(i=i.bank_account)||void 0===i?void 0:i.second_bank),(null==y?void 0:y.teams)&&(null==y||null===(a=y.teams[0])||void 0===a||null===(a=a.bank_account)||void 0===a?void 0:a.card_no)]}):"--"}}];return(0,b.jsxs)("div",{children:[(0,b.jsx)("p",{className:h.Z.downloadpdf,children:"温馨提示:填写的个人信息经审批后,将提供个人获奖证书下载;团队队员信息全部审批后,将提供团队获奖证书下载。"}),(0,b.jsx)("p",{style:{marginTop:"30px",fontSize:"14px",color:"#232B40",fontWeight:"600"},children:"证书情况"}),(null==y||null===(n=y.personal_certifications)||void 0===n?void 0:n.length)>0?(0,b.jsxs)("p",{children:[(0,b.jsx)("span",{children:"个人证书:"}),(0,b.jsx)("img",{src:w.Z.IMG_SERVER+"/images/educoder/pdfs.png"}),(0,b.jsx)("a",{style:{marginLeft:"5px"},href:w.Z.API_SERVER+"".concat(null==y||null===(t=y.personal_certifications[0])||void 0===t?void 0:t.url),children:"立即下载"})]}):(0,b.jsxs)("p",{children:[(0,b.jsxs)("span",{children:["个人证书:",(0,b.jsx)("span",{style:{color:"#000"},children:"暂未生成"})]}),(0,b.jsx)("span",{className:"c-red",style:{marginLeft:"20px"},children:"原因:组委会未完成证书审批,请稍后"})]}),(null==y||null===(i=y.team_certifications)||void 0===i?void 0:i.length)>0?(0,b.jsxs)("p",{children:[(0,b.jsx)("span",{children:"团队证书:"}),(0,b.jsx)("img",{src:w.Z.IMG_SERVER+"/images/educoder/pdfs.png"}),(0,b.jsx)("a",{style:{marginLeft:"5px"},href:w.Z.API_SERVER+"".concat(null==y||null===(a=y.team_certifications[0])||void 0===a?void 0:a.url),children:"立即下载"})]}):(0,b.jsx)("p",{children:(0,b.jsxs)("span",{children:["团队证书:",(0,b.jsx)("span",{style:{color:"#000"},children:"暂未生成"})]})}),(null==y||null===(o=y.teams)||void 0===o?void 0:o.length)>0&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("p",{children:[(null==y?void 0:y.teams)&&(null==y||null===(c=y.teams[0])||void 0===c?void 0:c.name),"战队信息填报概况"]}),(0,b.jsx)(m.Z,{columns:B,dataSource:null==y||null===(u=y.teams[0])||void 0===u?void 0:u.team_members,pagination:!1})]}),(0,b.jsx)(g.Z,{style:{marginTop:"20px"},gutter:[20,20],children:S.map((function(e,n){return(0,b.jsx)(x.Z,{children:(0,b.jsx)(j.Z,{icon:(0,b.jsx)("i",{className:"iconfont icon-xiazai5",style:{marginRight:"6px"}}),className:h.Z.pdfBut,onClick:p()(d()().mark((function n(){return d()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,N(e);case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}}),n)}))),children:e.name})},n)}))})]})},A=t(82242),C=t.n(A),k=t(39647),S=t.n(k),N=t(46651),B=t(78241),Z=t(8591),M=t(43418),P=t(71418),T=t(98135),D=t(5112),L=t(3113),E=t(92818),I=t(69130),O=["user","account","globalSetting","loading","dispatch"],z=N.Z.Dragger,R=(0,l.connect)((function(e){var n=e.user,t=e.account,i=e.loading;return{user:n,account:t,globalSetting:e.globalSetting,loading:i.effects}}))((function(e){var n=e.user,t=e.account,i=(e.globalSetting,e.loading),a=e.dispatch,o=(S()(e,O),B.Z.useForm()),l=r()(o,1)[0],c=(0,s.useState)({}),u=r()(c,2),h=(u[0],u[1]),f=(0,s.useState)(!0),m=r()(f,2),g=m[0],x=m[1],v=(0,s.useState)(),j=r()(v,2),y=j[0],A=j[1],k=(0,s.useState)(),N=r()(k,2),R=N[0],G=N[1],W=(0,s.useState)(),H=r()(W,2),U=H[0],F=H[1],J=(0,s.useState)(),Y=r()(J,2),V=Y[0],K=Y[1];(0,s.useEffect)((function(){if(t.basicInfo){var e=t.basicInfo,n={name:e.show_realname?e.name:(0,E.YA)(e.name),gender:e.gender};A(e.name),x(e.show_realname),l.setFieldsValue(n),h(n)}}),[t.basicInfo]);var q=function(){var e=p()(d()().mark((function e(i){var o,r,s,l,c,u,p,h;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(l=(s=i||{}).name,c=s.gender,u=s.idNumber,R){e.next=4;break}return Z.ZP.info("请先上传照片!"),e.abrupt("return");case 4:return e.next=6,a({type:"account/applyRealNameAuth",payload:{id:(null===(o=t.basicInfo)||void 0===o?void 0:o.id)||(null===(r=n.userInfo)||void 0===r?void 0:r.login),name:l,gender:c,id_number:u,show_realname:g,attachment_ids:[U]}});case 6:p=e.sent,Q(),p&&(Z.ZP.info("申请已提交,请等待审核!"),a({type:"account/getBasicInfo",payload:{login:null===(h=n.userInfo)||void 0===h?void 0:h.login}}));case 9:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),Q=function(){a({type:"account/setActionTabs",payload:{}})},X={data:{type:"real_name"},multiple:!0,showUploadList:!1,action:"".concat(w.Z.API_SERVER,"/api/attachments.json"),className:I.Z.uploader,onChange:function(e){var n;"uploading"!==e.file.status?"done"===e.file.status&&(console.log(e.file,e.file.response),F(null===(n=e.file.response)||void 0===n?void 0:n.id),(0,E.y3)(e.file.originFileObj,(function(e){G(e),K(!1)}))):K(!0)},beforeUpload:function(e){var n="image/jpeg"===e.type||"image/png"===e.type||"image/jpg"===e.type||"image/bmp"===e.type;return n||Z.ZP.info("请上传正确文件格式"),n}};return(0,b.jsx)(M.Z,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,open:"Account-RealNameAuth"===t.actionTabs.key,title:"修改实名信息",width:"600px",footer:null,children:(0,b.jsx)(P.Z,{spinning:!!V,children:(0,b.jsxs)(B.Z,{className:I.Z.formWrap,form:l,layout:"horizontal",onValuesChange:function(e){h(C()({},l.getFieldsValue())),"name"in e&&A(e.name)},onFinish:q,children:[(0,b.jsx)(B.Z.Item,{label:"姓名",name:"name",labelCol:{span:3},wrapperCol:{span:12},rules:[{required:!0,message:"请输入真实姓名,最大限制".concat(10,"个字符")},{validator:E.HJ}],extra:(0,b.jsx)("span",{children:g?"(显示:平台将显示您的真实姓名)":"(隐藏:平台将显示你的昵称)"}),children:(0,b.jsx)(T.Z,{disabled:!g,placeholder:"请输入真实姓名,最大限制".concat(10,"个字符"),maxLength:10,addonAfter:(0,b.jsx)("i",{className:"iconfont ".concat(g?"icon-xianshi":"icon-yincang"," font18 ").concat(I.Z.color0152d9),onClick:function(){var e=!g;x(e);var n=e?y:(0,E.YA)(y);l.setFieldsValue({name:n})}})})}),(0,b.jsx)(B.Z.Item,{label:"性别:",name:"gender",labelCol:{span:3},wrapperCol:{span:12},rules:[{required:!0,message:"请选择性别"}],children:(0,b.jsxs)(D.ZP.Group,{children:[(0,b.jsx)(D.ZP,{value:0,children:"男"}),(0,b.jsx)(D.ZP,{value:1,children:"女"})]})}),(0,b.jsx)(B.Z.Item,{label:"证件号:",labelCol:{span:3},name:"idNumber",rules:[{required:!0,message:"请输入证件号"}],children:(0,b.jsx)(T.Z,{placeholder:"请输入证件号"})}),(0,b.jsx)(B.Z.Item,{label:"身份证上传",labelCol:{span:3},children:(0,b.jsxs)("div",{className:I.Z.flexRow,children:[(0,b.jsxs)("div",{className:"".concat(I.Z.flexColumn," ").concat(I.Z.example),children:[(0,b.jsx)("span",{className:I.Z.exampleImg,children:(0,b.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJwAAABgCAYAAADo6BsvAAAgAElEQVR4Xmy9CZheaVUu+u75n+uvKTVlqHSSTtLpeQS6G20QFRA8DTgdBccDCCUi0csgiCB4xIug0DTgeS4O96r4eBAUkJluhp479JCeMnRSGSuVmv/6pz3f513r25XS54QndJKq2v/e317fWu9617vWZwFwtmzbNv1zr37NG9428/Zf2b1nesKygDRDHqU58jyH59rIcyCOM8CyEPgWbJvfk8O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Ga8XgEHe0JSai+v/+DD44cHf5G4CMf+fgfrzh72b3rPv2pCxYvXxIsV+ooFXnuEs3BAZ4rdt0xwc5VWF51iSbcHGJRT/Kw6iBXn9VpgUPAIvmqFqxCgPD1XDOi13GZz9hNRIlQH9acCX2tJXStk1O1hoTZh4wqUvos85pSQAABuhESKu0AnuGoZT1CncngCoQN1ycTMncMWzfO9+kI22pezDnGahmjTfKhsQfKdeO8saeRejSSkQWQZUVj5xt6WQheYeOs69LrClVhYFSpDlAdQPVISBbjkg1jIue4QaBMt1JysrKszQIxe7D497k413tmUtCowqSCCGNiYPLBYa2YiESQEDIojGrYOBv8/PxehEDVSlmUwLp26aZrx07VPByozUIYGU8GE/gWKUrmf66UcFxUWhI0NdEOfm/pG1//11+98tr2h/kJVnZ2zvjEZ++557pbbv/0/N7evqCOULbcAUvrxg1xEG8ZxNpU3+Ye/CU2uuBYxODdRnwx5r1lSNZcCg4viSDRYWdoxvmZVMpZn3CgaJ2anwUaq9COJ9OT5s2Tmq+yrBKpKwMkuKMnksSTOmJRWqoHhXjlUcDWn+2ttNtcp8n6R8UAVQK87CxHJ7RVZwaVXaPjFJDpz2vhmGiy2lQGMc9YG5tYTSZpfGZ+qTcxqGzs4vfTNuw2fKkU1xlwzJr8WdbA3A037IGRhaaDpDPQVMJwrENIFztYLdGdLAeDjZ9TlMe6HccsZVgfhoOEeyPu9OzKJLtUeJoEBEzlmJiBK8tzNiCakwLVIh9i4vlCiEfIdyECmAI9fA4IKG2gXmY3zc9tFSn3qeMnJxuPPPJv7//LP//jd6YmJn76P8ED9U58gLSYAAAAAElFTkSuQmCC"})}),(0,b.jsxs)("span",{className:"tc",children:[(0,b.jsx)("p",{children:"示例图片"}),(0,b.jsx)("p",{className:"".concat(I.Z.colorOrange," font12"),children:"(png/jpg/bmp格式,不超过2MB)"})]})]}),(0,b.jsxs)("div",{className:I.Z.flexColumn,children:[(0,b.jsx)(z,C()(C()({},X),{},{accept:".png,.jpg,.bmp,.jpeg",children:R?(0,b.jsx)("img",{src:R,className:I.Z.uploadImg}):(0,b.jsxs)("div",{className:I.Z.imageTip,children:[(0,b.jsx)("p",{children:(0,b.jsx)("i",{className:"iconfont icon-cuban2shangchuanyunduan ".concat(I.Z.uploadTipIcon)})}),(0,b.jsx)("p",{className:I.Z.uploadTip,children:(0,b.jsx)("a",{className:I.Z.color05101a,children:"点击或拖拽上传图片"})})]})})),(0,b.jsx)("span",{className:"tc",children:(0,b.jsx)("p",{className:I.Z.viewLargerImg,children:"查看大图"})})]})]})}),(0,b.jsx)("div",{className:I.Z.footerWrap,children:(0,b.jsxs)(B.Z.Item,{children:[(0,b.jsx)(L.ZP,{className:"mr5",size:"middle",onClick:Q,children:"取消"}),(0,b.jsx)(L.ZP,{size:"middle",type:"primary",htmlType:"submit",loading:i["account/applyRealNameAuth"],children:"保存"})]})}),(0,b.jsxs)("div",{className:I.Z.note,children:[(0,b.jsx)("p",{children:"认证须知:"}),(0,b.jsx)("p",{children:"1.你需要准备有效的身份证正面(人像面)的证件照照片,请确保证件照片清晰可见,严禁PS;"}),(0,b.jsx)("p",{children:"2.我们将在你提交认证信息后的24小时(不包含节假日)内完成审核,审核结果将会以系统消息的形式发送给你;"}),(0,b.jsx)("p",{children:"3.实名认证审核完成后,无法删除,请谨慎填写;"}),(0,b.jsx)("p",{children:"4.实名认证审核完成后,系统将自动发放500个金币作为奖励;"}),(0,b.jsx)("p",{children:"5.我们会确保你所提供的信息均处于严格的保密状态,不会泄露;"}),(0,b.jsx)("p",{children:"6.如存在恶意乱填写姓名,证件号,及上传与实名认证证件无关图片者,一经发现将冻结EduCoder账号。"}),(0,b.jsx)("p",{children:"7.提交实名认证后系统会自动将状态改为已认证,你将可以体验平台需要实名认证的功能;如果在认证后的使用过程中未通过审核,你将不能继续体验需要认证的功能。"})]})]})})})})),G=t(36693),W=t(93735),H=t.n(W);var U=function(e){var n=e.type,t=e.dispatch,i=e.userid,a=e.isshow,o=e.setPhoneshow,l=e.setEmailshow,c="79e33abd4b6588941ab7622aed1e67e8",u=(0,s.useState)(""),h=r()(u,2),f=h[0],m=h[1],g=(0,s.useState)("获取验证码"),x=r()(g,2),v=x[0],w=(x[1],(0,s.useState)(60)),j=r()(w,2),y=j[0],A=j[1],C=(0,s.useState)(!1),k=r()(C,2),S=k[0],N=k[1],B=(0,s.useState)(""),M=r()(B,2),P=M[0],D=M[1];function E(){return(E=p()(d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(f){e.next=3;break}return 3===n?Z.ZP.info("手机号不能为空"):Z.ZP.info("邮箱地址不能为空"),e.abrupt("return");case 3:return e.next=5,t({type:"competitions/getVerification",payload:{type:n,login:f,smscode:H()(c+f)}});case 5:1===e.sent.status&&(Z.ZP.info("获取验证码成功"),I(),N(!0));case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function I(){A(60);var e=setInterval((function(){--y>-1?A(y):(clearInterval(e),N(!1))}),1e3)}function O(){return(O=p()(d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t({type:"competitions/PhoneBind",payload:{userid:i,code:P,phone:f}});case 2:0===e.sent.status&&(Z.ZP.info("绑定成功"),o("none"));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function z(){return(z=p()(d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t({type:"competitions/EmailBind",payload:{userid:i,code:P,email:f}});case 2:0===e.sent.status&&(Z.ZP.info("绑定成功"),l("none"));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,b.jsxs)("div",{style:{display:a},children:[(0,b.jsx)("p",{children:(0,b.jsx)(T.Z,{value:f,onChange:function(e){return m(e.target.value)},placeholder:3===n?"请输入手机号":"请输入邮箱地址",style:{width:"370px"}})}),(0,b.jsx)("span",{children:(0,b.jsx)(T.Z,{value:P,onChange:function(e){return D(e.target.value)},placeholder:3===n?"请输入手机获取的验证码":"请输入邮箱获取的验证码",style:{width:"250px"}})})," ",(0,b.jsx)(L.ZP,{disabled:S,onClick:function(){return function(){return E.apply(this,arguments)}()},type:"primary",style:{marginLeft:"20px",width:"100px"},children:S?"重新发送".concat(y,"s"):v}),(0,b.jsxs)("p",{style:{marginTop:"30px",width:"370px",textAlign:"center"},children:[(0,b.jsx)(L.ZP,{type:"primary",style:{marginRight:"15px"},onClick:function(){P?3===n?function(){O.apply(this,arguments)}():function(){z.apply(this,arguments)}():Z.ZP.info("验证码不能为空")},children:"确认"}),(0,b.jsx)(L.ZP,{style:{marginLeft:"20px"},onClick:function(){3===n?o("none"):l("none")},children:"取消"})]})]})};var F=function(e){var n=e.dispatch,t=e.userid,i={wrapperCol:{offset:3,span:21}},a=B.Z.useForm(),o=r()(a,1)[0],s=(0,l.useParams)().identifier;return(0,b.jsx)("div",{style:{width:"500px"},children:(0,b.jsxs)(B.Z,{form:o,name:"basic",children:[(0,b.jsx)(B.Z.Item,C()(C()({},i),{},{label:(0,b.jsx)("div",{style:{width:"30px"},children:"开户行"}),name:"bank",rules:[{required:!0,message:"请输入开户行"}],children:(0,b.jsx)(T.Z,{})})),(0,b.jsx)(B.Z.Item,C()(C()({},i),{},{label:(0,b.jsx)("div",{style:{width:"30px"},children:"支行"}),name:"second_bank",rules:[{required:!0,message:"请输入支行"}],children:(0,b.jsx)(T.Z,{})})),(0,b.jsx)(B.Z.Item,C()(C()({},i),{},{label:(0,b.jsx)("div",{style:{width:"30px"},children:"账号"}),name:"card_no",rules:[{required:!0,message:"请输入账号"}],children:(0,b.jsx)(T.Z,{})})),(0,b.jsx)(B.Z.Item,{children:(0,b.jsx)(L.ZP,{type:"primary",htmlType:"submit",onClick:p()(d()().mark((function e(){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o.validateFields().then(function(){var e=p()(d()().mark((function e(i){return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n({type:"competitions/setleader",payload:C()({identifier:s,user_id:t},i)});case 2:0===e.sent.status&&Z.ZP.info("提交成功");case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}());case 1:case"end":return e.stop()}}),e)}))),children:"提交"})})]})})},J={teacher:"教师",student:"学生",professional:"专业人士"};var Y=function(e){var n,t,i,a,o=e.Prize,l=e.Accounts,c=e.dispatch,u=e.userid,f=(0,s.useState)("none"),m=r()(f,2),v=m[0],w=m[1],j=(0,s.useState)("none"),y=r()(j,2),A=y[0],C=y[1];function k(e){return S.apply(this,arguments)}function S(){return(S=p()(d()().mark((function e(n){var t;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("1"!==n){e.next=6;break}return e.next=3,c({type:"competitions/Authentication"});case 3:t=e.sent,e.next=9;break;case 6:return e.next=8,c({type:"competitions/Professional"});case 8:t=e.sent;case 9:0===t.status&&Z.ZP.info("撤销成功");case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,b.jsxs)("div",{children:[(0,b.jsxs)(g.Z,{align:"middle",children:[(0,b.jsxs)(x.Z,{children:[(0,b.jsx)("span",{className:"c-red",children:"*"}),"实名信息"]}),"uncertified"===(null==l?void 0:l.authentication)&&(0,b.jsx)(x.Z,{flex:1,className:"ml20",children:(0,b.jsxs)(g.Z,{align:"middle",justify:"space-between",children:[(0,b.jsx)(x.Z,{style:{marginLeft:"20px"},children:"通过实名认证后才能获得证书"}),(0,b.jsx)(L.ZP,{className:h.Z.PerfectBut,onClick:function(){c({type:"account/setActionTabs",payload:{key:"Account-RealNameAuth"}})},children:"立即认证"})]})})]}),(0,b.jsxs)("div",{className:h.Z.PerfectCent,children:[(0,b.jsxs)(g.Z,{children:[(0,b.jsx)(x.Z,{className:h.Z.PerfectCentName,children:"姓名"}),(0,b.jsxs)(x.Z,{className:"ml20",children:[null==l?void 0:l.name,"uncertified"===(null==l?void 0:l.authentication)?null:"applying"===(null==l?void 0:l.authentication)?(0,b.jsxs)("span",{children:[(0,b.jsx)("span",{children:"待审核"}),(0,b.jsx)(L.ZP,{type:"primary",onClick:function(){return k("1")},ghost:!0,style:{marginLeft:"20px"},children:"撤销认证"})]}):(0,b.jsxs)("span",{style:{color:"#6ec76e"},children:[(0,b.jsx)("i",{className:"iconfont icon-wancheng font-14"})," 已认证"]})]})]}),(0,b.jsxs)(g.Z,{className:"mt20",children:[(0,b.jsx)(x.Z,{className:h.Z.PerfectCentName,children:"性别"}),(0,b.jsx)(x.Z,{className:"ml20",children:0===(null==l?void 0:l.gender)?"男":"女"})]})]}),(0,b.jsxs)(g.Z,{align:"middle",children:[(0,b.jsxs)(x.Z,{children:[(0,b.jsx)("span",{className:"c-red",children:"*"}),"职业信息"]}),"uncertified"===(null==l?void 0:l.authentication)&&(0,b.jsx)(x.Z,{flex:1,className:"ml20",children:(0,b.jsxs)(g.Z,{align:"middle",justify:"space-between",children:[(0,b.jsx)(x.Z,{style:{marginLeft:"20px"},children:"通过实名认证后才能获得证书"}),(0,b.jsx)(L.ZP,{className:h.Z.PerfectBut,onClick:function(){c({type:"account/setActionTabs",payload:{key:"Account-ProfessionalAuth"}})},children:"立即认证"})]})})]}),(0,b.jsxs)("div",{className:h.Z.PerfectCent,children:[(0,b.jsxs)(g.Z,{children:[(0,b.jsx)(x.Z,{className:h.Z.PerfectCentName,children:"职业"}),(0,b.jsxs)(x.Z,{className:"ml20",children:[l&&l.identity&&J[l.identity],"uncertified"===(null==l?void 0:l.authentication)?null:"applying"===(null==l?void 0:l.authentication)?(0,b.jsxs)("span",{children:[(0,b.jsx)("span",{children:"待审核"}),(0,b.jsx)(L.ZP,{type:"primary",onClick:function(){return k("2")},ghost:!0,style:{marginLeft:"20px"},children:"撤销认证"})]}):(0,b.jsxs)("span",{style:{color:"#6ec76e"},children:[(0,b.jsx)("i",{className:"iconfont icon-wancheng font-14"})," 已认证",(0,b.jsx)(L.ZP,{type:"primary",onClick:function(){c({type:"account/setActionTabs",payload:{key:"Account-ProfessionalAuth"}})},ghost:!0,style:{marginLeft:"20px"},children:"重新认证"})]})]})]}),(0,b.jsxs)(g.Z,{className:"mt20",children:[(0,b.jsx)(x.Z,{className:h.Z.PerfectCentName,children:"学号"}),(0,b.jsx)(x.Z,{className:"ml20",children:(null==l?void 0:l.student_id)||"--"})]}),(0,b.jsxs)(g.Z,{className:"mt20",children:[(0,b.jsx)(x.Z,{className:h.Z.PerfectCentName,children:"学校"}),(0,b.jsx)(x.Z,{className:"ml20",children:(null==l?void 0:l.school_name)||"--"})]}),(0,b.jsxs)(g.Z,{className:"mt20",children:[(0,b.jsx)(x.Z,{className:h.Z.PerfectCentName,children:"院系"}),(0,b.jsx)(x.Z,{className:"ml20",children:(null==l?void 0:l.department_name)||"--"})]})]}),(0,b.jsxs)("p",{children:[(0,b.jsx)("span",{className:"c-red",children:"*"}),"联系方式"]}),(0,b.jsxs)("div",{className:h.Z.PerfectCent,children:[(0,b.jsxs)(g.Z,{children:[(0,b.jsx)(x.Z,{className:h.Z.PerfectCentName,children:"手机号"}),(0,b.jsx)(x.Z,{className:"ml20",children:(0,b.jsxs)(g.Z,{children:[(0,b.jsx)(x.Z,{style:{width:"150px"},children:(null==l?void 0:l.phone)||"--"}),"none"===v&&(0,b.jsx)(L.ZP,{type:"link",className:"ml20",style:{color:"#165DFF"},onClick:function(){w("block")},children:"更换"})]})})]}),(0,b.jsx)("div",{className:"mt10",style:{marginLeft:"74px"},children:(0,b.jsx)(U,{type:3,dispatch:c,userid:null==l?void 0:l.id,isshow:v,setPhoneshow:w,setEmailshow:C})}),(0,b.jsxs)(g.Z,{className:"mt20",children:[(0,b.jsx)(x.Z,{className:h.Z.PerfectCentName,children:"Email"}),(0,b.jsx)(x.Z,{className:"ml20",children:(0,b.jsxs)(g.Z,{children:[(0,b.jsx)(x.Z,{style:{width:"150px"},children:(null==l?void 0:l.mail)||"--"}),"none"===A&&(0,b.jsx)(L.ZP,{type:"link",className:"ml20",style:{color:"#165DFF"},onClick:function(){C("block")},children:"更换"})]})})]}),(0,b.jsx)("div",{className:"mt10",style:{marginLeft:"74px"},children:(0,b.jsx)(U,{type:4,dispatch:c,userid:null==l?void 0:l.id,isshow:A,setEmailshow:C,setPhoneshow:w})})]}),null!=o&&o.leader&&null!=o&&o.teams&&null!=o&&null!==(n=o.teams[0])&&void 0!==n&&null!==(n=n.bank_account)&&void 0!==n&&n.bank?(0,b.jsxs)(g.Z,{align:"middle",children:[(0,b.jsx)(x.Z,{children:"签/领/开户行及银行卡号"}),(0,b.jsx)(x.Z,{className:"ml20",style:{fontSize:"12px"},children:"为保障奖金的及时发放,请队长如实填写你名下的银行卡信息"})]}):(0,b.jsxs)("div",{children:[(0,b.jsxs)(g.Z,{align:"middle",children:[(0,b.jsx)(x.Z,{children:"签/领/开户行及银行卡号"}),(0,b.jsx)(x.Z,{className:"ml20",style:{fontSize:"12px"},children:"为保障奖金的及时发放,请队长如实填写你名下的银行卡信息"})]}),(0,b.jsx)(F,{dispatch:c,userid:u})]}),(null==o?void 0:o.leader)&&(0,b.jsxs)("div",{className:h.Z.PerfectCent,style:{border:0},children:[(0,b.jsxs)(g.Z,{children:[(0,b.jsx)(x.Z,{className:h.Z.PerfectCentName,children:"开户行"}),(0,b.jsx)(x.Z,{className:"ml20",children:(null==o?void 0:o.teams)&&(null==o||null===(t=o.teams[0])||void 0===t||null===(t=t.bank_account)||void 0===t?void 0:t.bank)||"--"})]}),(0,b.jsxs)(g.Z,{className:"mt20",children:[(0,b.jsx)(x.Z,{className:h.Z.PerfectCentName,children:"支行"}),(0,b.jsx)(x.Z,{className:"ml20",children:(null==o?void 0:o.teams)&&(null==o||null===(i=o.teams[0])||void 0===i||null===(i=i.bank_account)||void 0===i?void 0:i.second_bank)||"--"})]}),(0,b.jsxs)(g.Z,{className:"mt20",children:[(0,b.jsx)(x.Z,{className:h.Z.PerfectCentName,children:"账号"}),(0,b.jsx)(x.Z,{className:"ml20",children:(null==o?void 0:o.teams)&&(null==o||null===(a=o.teams[0])||void 0===a||null===(a=a.bank_account)||void 0===a?void 0:a.card_no)||"--"})]})]}),(0,b.jsx)(G.Z,{Scoid:null==l?void 0:l.school_id}),(0,b.jsx)(R,{})]})},V=t(68314),K=(0,l.connect)((function(e){return a()(e),{}}))((function(e){var n=e.Prize,t=e.Accounts,i=(e.getAccounts,e.dispatch),a=e.userid,o=(0,s.useState)("DownPdf"),l=r()(o,2),c=l[0],d=l[1];return(0,b.jsxs)("div",{style:{margin:"15px 0"},children:[(0,b.jsx)(V.tp,{dataSource:[{name:"获奖证书下载",id:"DownPdf"},{name:"完善个人信息",id:"Perfect"}],value:c,onChange:function(e){return d(e)}}),"DownPdf"==c&&(0,b.jsx)(y,{Prize:n}),"Perfect"==c&&(0,b.jsx)(Y,{userid:a,dispatch:i,Prize:n,Accounts:t})]})}))},5265:function(e,n,t){"use strict";t.d(n,{Z:function(){return A}});var i=t(7557),a=t.n(i),o=t(41498),r=t.n(o),s=t(79800),l=t.n(s),c=t(59301),d=t(43418),u=t(8591),p=t(6848),h=t(3113),f=t(21251),m=t(96048),g=t(11829),x=t(68552),v=t(68930),w=t(82420);Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var j="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAiIGhlaWdodD0iMjAiPjxwYXRoIGQ9Ik0xMjggMGg3NjhjNzAuNCAwIDEyOCA1Ny42IDEyOCAxMjh2NzY4YzAgNzAuNC01Ny42IDEyOC0xMjggMTI4SDEyOEExMjguMzU4IDEyOC4zNTggMCAwIDEgMCA4OTZWMTI4QzAgNTcuNiA1Ny42IDAgMTI4IDB6IiBmaWxsPSIjMTY1REZGIiBmaWxsLW9wYWNpdHk9Ii4xNCIvPjxwYXRoIGQ9Ik0yOTQuNCAzNzcuNiAxNjAgNDgwYy02LjQgNi40LTEyLjggMTIuOC0xMi44IDI1LjZ2NTcuNmMwIDEyLjggNi40IDE5LjIgMTkuMiAzMmwxMzQuNCA5NmMxMi44IDEyLjggMzguNCAxMi44IDUxLjIgMGw2LjQtNi40YzYuNC02LjQgMTIuOC0xOS4yIDYuNC0zMnMtNi40LTI1LjYtMTkuMi0zMmwtMTE1LjItODMuMiAxMjEuNi05NmM2LjQtNi40IDEyLjgtMTkuMiAxMi44LTI1LjYgMC0xMi44IDAtMTkuMi02LjQtMzItMTkuMi0xOS4yLTQ0LjgtMjUuNi02NC02LjR6bTI3NS4yLTEyLjhjLTEyLjggNi40LTE5LjIgMTIuOC0yNS42IDE5LjJMNDA5LjYgNjMzLjZhNDAuODA2IDQwLjgwNiAwIDAgMCAwIDM4LjRjNi40IDEyLjggMTkuMiAxOS4yIDM4LjQgMTkuMiAxMi44IDAgMjUuNi02LjQgMzItMTkuMmwxMzQuNC0yNDkuNmM2LjQtNi40IDYuNC0xOS4yIDYuNC0zMnMtMTIuOC0xOS4yLTE5LjItMjUuNmgtMzJ6bTEyOCAwYy0xMi44IDAtMTkuMiA2LjQtMjUuNiAxMi44LTEyLjggMTkuMi0xMi44IDQ0LjggNi40IDU3LjZsMTIxLjYgOTYtMTIxLjYgODkuNmMtMTkuMiAxMi44LTE5LjIgMzguNC0xMi44IDUxLjJsNi40IDYuNGMxMi44IDE5LjIgMzguNCAxOS4yIDU3LjYgNi40bDEzNC40LTk2YzYuNC02LjQgMTIuOC0xOS4yIDE5LjItMjUuNnYtNTcuNmMwLTEyLjgtNi40LTE5LjItMTIuOC0yNS42TDczNiAzNzcuNmMtMTkuMi0xMi44LTMyLTEyLjgtMzguNC0xMi44eiIgZmlsbD0iIzE2NURGRiIvPjwvc3ZnPg==",b=t(34835),y=t(37712);var A=function(e){var n,t,i,o,s,A,C,k=e.item,S=e.Header,N=e.index,B=e.StaffDetail,Z=e.dispatch,M=(0,c.useState)(!0),P=l()(M,2),T=P[0],D=P[1],L=(0,c.useState)(!0),E=l()(L,2),I=E[0],O=E[1],z=(0,c.useState)(!1),R=l()(z,2),G=R[0],W=R[1],H=(0,c.useRef)(),U=(0,c.useState)(!1),F=l()(U,2),J=F[0],Y=F[1],V=(0,m.useParams)().identifier;(0,c.useEffect)((function(){setTimeout((function(){H.current.children[0].clientHeight>88&&W(!0)}),10)}),[]);var K=function(e){var n,t;(0,x.tJ)(Z,!0)&&((null==e?void 0:e.shixun_status)>1&&Y(!0),null!=e&&e.is_jupyter||null!=e&&e.is_jupyter_lab?Z({type:"shixunsDetail/execJupyter",payload:{id:null==e||null===(t=e.shixun)||void 0===t?void 0:t.identifier}}).then((function(n){Y(!1),null!=n&&n.identifier&&window.open("/tasks/".concat(n.identifier,"/jupyter?competition_entry_id=").concat(null==e?void 0:e.id,"&type=competitions"))})):Z({type:"shixunsDetail/execShixun",payload:{id:null==e||null===(n=e.shixun)||void 0===n?void 0:n.identifier}}).then((function(n){Y(!1),null!=n&&n.game_identifier?window.open("/tasks/".concat(n.game_identifier,"?competition_entry_id=").concat(null==e?void 0:e.id,"&type=competitions")):2===(null==n?void 0:n.status)?q(null==n?void 0:n.message):3===(null==n?void 0:n.status)&&Q(null==n?void 0:n.message)})))},q=function e(n){var t,i;n=null!==(t=n)&&void 0!==t&&t.includes(".json")?n:"".concat(n,".json"),d.Z.confirm({centered:!0,title:"提示",okText:"确定",cancelText:"取消",content:(0,y.jsx)("div",{className:"tc font16",children:"实训已经更新了,正在为您重置!"}),onOk:(i=r()(a()().mark((function t(){var i,o;return a()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,v.$Q)({url:n});case 2:if(i=t.sent){t.next=5;break}return t.abrupt("return");case 5:return u.ZP.success("重置成功,正在进入实践项目!"),t.next=8,(0,v.Ir)({id:i.shixun_identifier});case 8:if(null==(o=t.sent)||!o.game_identifier){t.next=12;break}return window.open("/tasks/".concat(o.game_identifier)),t.abrupt("return");case 12:2===(null==o?void 0:o.status)?e(null==o?void 0:o.message):3===(null==o?void 0:o.status)&&Q(null==o?void 0:o.message);case 13:case"end":return t.stop()}}),t)}))),function(){return i.apply(this,arguments)})})},Q=function(e){d.Z.confirm({centered:!0,title:"提示",okText:"确定",cancelText:"取消",content:(0,y.jsxs)("div",{className:"tc font16",children:["目前该实践项目尚在内测中,将于",e,"之后开放,谢谢!"]})})};return(0,y.jsxs)("div",{className:f.Z.box,children:[(0,y.jsxs)("div",{style:{justifyContent:"space-between",display:"flex",padding:"0 10px"},children:[(0,y.jsxs)("span",{className:f.Z.title_style,style:{color:"#333333",fontWeight:500,fontSize:"14px"},children:[null!=S&&S.is_new?"赛题":"任务",N+1]}),(0,y.jsxs)("span",{style:{color:"#9096A3",marginLeft:"auto",fontSize:"12px"},children:["作品提交时间",(0,y.jsxs)("span",{style:{color:"#232B40",marginLeft:5},children:[null==S?void 0:S.start_time,"~",null==S?void 0:S.end_time]})]})]}),(0,y.jsxs)("div",{style:{padding:10,display:"flex",position:"relative"},children:[(0,y.jsx)("img",{src:null==k?void 0:k.pic,style:{width:220,height:130,borderRadius:"4px"}}),(0,y.jsxs)("div",{style:{marginLeft:20,width:"75%"},children:[(0,y.jsxs)("div",{style:{justifyContent:"space-between",display:"flex"},children:[(0,y.jsxs)("div",{children:[(0,y.jsx)(p.Z,{title:(null==k?void 0:k.name)||(null==k||null===(n=k.shixun)||void 0===n?void 0:n.name),children:(0,y.jsx)("span",{style:{color:"#333333",fontWeight:"500",fontSize:"14px"},children:(null==k?void 0:k.name)||(null==k||null===(t=k.shixun)||void 0===t?void 0:t.name)})}),(0,y.jsxs)("span",{style:{color:"#9096A3",marginLeft:40},children:["关卡",(0,y.jsx)("span",{style:{color:"#333333",marginLeft:5},children:(null==k?void 0:k.challenges_count)||(null==k||null===(i=k.shixun)||void 0===i?void 0:i.challenges_count)})]})]}),(0,y.jsx)("span",{style:{marginLeft:"auto"},children:((null==B?void 0:B.enrolled)&&"ended"!==(null==S?void 0:S.competition_status)||(0,b.eB)()||(null===(o=S.permission)||void 0===o?void 0:o.editable))&&(0,y.jsx)(h.ZP,{loading:J,onClick:r()(a()().mark((function e(){var n,t,i;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null==S||!S.is_new){e.next=11;break}return e.next=3,(0,w.ZP)("/api/competitions/".concat(V,"/check_team_member.json"),{method:"post"});case 3:if(0!==(null==(n=e.sent)?void 0:n.status)){e.next=9;break}return K(k),e.next=8,(0,w.ZP)("/api/competitions/".concat(V,"/enter_competition_question.json"),{method:"post",body:{competition_stage_id:null==k?void 0:k.competition_stage_id,competition_stage_section_id:null==k?void 0:k.competition_stage_section_id,competition_entry_id:null==k?void 0:k.id,shixun_id:null==k||null===(t=k.shixun)||void 0===t?void 0:t.id}});case 8:e.sent;case 9:e.next=12;break;case 11:window.open("/shixuns/".concat((null==k?void 0:k.identifier)||(null==k||null===(i=k.shixun)||void 0===i?void 0:i.identifier),"/challenges"));case 12:case"end":return e.stop()}}),e)}))),style:{marginLeft:30,borderRadius:14,fontSize:12,width:88},type:"primary",children:"开启挑战"})})]}),(0,y.jsxs)("div",{ref:H,style:{maxHeight:T&&100,position:"relative",overflow:"hidden"},children:[(0,y.jsx)(g.Z,{style:{fontSize:"14px",color:"#9096A3",marginTop:20,position:"relative"},value:(null==k?void 0:k.description)||""}),G&&T&&(0,y.jsx)("div",{className:f.Z.maskText})]}),G&&(0,y.jsxs)("div",{className:f.Z.colorhove,style:{textAlign:"end",cursor:"pointer"},onClick:function(){D(!T)},children:[T?"阅读全文 ":"收起全文 ",(0,y.jsx)("i",{className:"iconfont font14 ".concat(T?"icon-jiantou9":"icon-changyongtubiao-xianxingdaochu-zhuanqu-")})]}),(0,y.jsxs)("div",{style:{marginTop:14,maxHeight:I&&58,overflow:"hidden"},children:[null==k||null===(s=k.challenges)||void 0===s?void 0:s.map((function(e,n){return(0,y.jsxs)("div",{style:{marginTop:0===n?0:12},children:[(0,y.jsx)("img",{src:j,style:{width:20,height:20}}),(0,y.jsxs)("span",{style:{marginLeft:10},children:["第",n+1,"关",null==e?void 0:e.challenge_name]})]})})),null==k||null===(A=k.challenge_settings)||void 0===A?void 0:A.map((function(e,n){return(0,y.jsxs)("div",{style:{marginTop:0===n?0:12},children:[(0,y.jsx)("img",{src:j,style:{width:20,height:20}}),(0,y.jsxs)("span",{style:{marginLeft:10},children:["第",n+1,"关",null==e?void 0:e.challenge_name]})]})}))]}),(0,y.jsx)("div",{className:f.Z.colorhove,style:{position:"absolute",bottom:14,right:10,cursor:"pointer"},children:((null==k?void 0:k.challenges_count)||(null==k||null===(C=k.shixun)||void 0===C?void 0:C.challenges_count))>2&&(0,y.jsxs)("span",{onClick:function(){O(!I)},children:[I?"展开":"收起"," ",(0,y.jsx)("i",{className:"iconfont font14 ".concat(I?"icon-jiantou9":"icon-changyongtubiao-xianxingdaochu-zhuanqu-")})]})})]})]})]})}},36693:function(e,n,t){"use strict";t.d(n,{Z:function(){return X}});var i=t(82242),a=t.n(i),o=t(7557),r=t.n(o),s=t(41498),l=t.n(s),c=t(79800),d=t.n(c),u=t(39647),p=t.n(u),h=t(59301),f=t(96048),m=t(57809),g=t(46651),x=t(78241),v=t(8591),w=t(43418),j=t(95237),b=t(43604),y=t(71418),A=t(98135),C=t(88522),k=t(3113),S=t(14103),N=t(51941),B=t(69130),Z=t(92818),M=t(53182),P=t(19842),T=t(2720),D=t(97650),L=t(59199),E="flexRow___jGYtM",I="flexColumn___NPMB3",O="formWrap___vwH9N",z="example____BmJC",R="footerWrap___lp1L0",G=t(37712),W=["account","globalSetting","loading","dispatch","schoolName","visible","onClose","onSuccess"],H=function(e,n){return n.some((function(n){return n.label.toLowerCase().indexOf(e.toLowerCase())>-1}))},U=A.Z.TextArea,F=(0,f.connect)((function(e){var n=e.account,t=e.loading;return{account:n,globalSetting:e.globalSetting,loading:t.effects}}))((function(e){e.account,e.globalSetting;var n=e.loading,t=e.dispatch,i=e.schoolName,a=e.visible,o=e.onClose,s=void 0===o?function(){}:o,c=e.onSuccess,u=void 0===c?function(){}:c,f=(p()(e,W),x.Z.useForm()),m=d()(f,1)[0];(0,h.useEffect)((function(){m.setFieldsValue({name:i})}),[i]);var g=function(){var e=l()(r()().mark((function e(n){var i,a,o,l,c,d,p;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=(i=n||{}).name,o=i.city,l=void 0===o?[]:o,c=i.address,d=i.remarks,e.next=3,t({type:"account/appplySchool",payload:{name:a,province:l[0],city:l[1],address:c,remarks:d}});case 3:p=e.sent,s(),p&&(v.ZP.success("新增学校/单位成功!"),u(a));case 6:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return(0,G.jsx)(w.Z,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,open:a,title:"申请添加单位名称",width:"600px",footer:null,children:(0,G.jsxs)(x.Z,{className:O,form:m,labelCol:{span:4},wrapperCol:{span:20},onFinish:g,children:[(0,G.jsx)(x.Z.Item,{label:"单位全称:",name:"name",rules:[{required:!0,message:"请输入学校或工作单位"}],children:(0,G.jsx)(A.Z,{placeholder:"学校或工作单位"})}),(0,G.jsxs)("div",{className:"".concat(E," ").concat(z),children:[(0,G.jsx)("div",{children:"示例:"}),(0,G.jsxs)("div",{className:I,children:[(0,G.jsxs)("div",{children:[(0,G.jsx)(T.Z,{style:{color:"rgb(82, 196, 26)"}}),(0,G.jsx)("span",{className:"font14 ml5",children:"正确示例:数据结构"})]}),(0,G.jsxs)("div",{children:[(0,G.jsx)(D.Z,{style:{color:"red"}}),(0,G.jsx)("span",{className:"font14 ml5",children:"错误示例:数据结构2019春"})]})]})]}),(0,G.jsx)(x.Z.Item,{label:"地区:",name:"city",children:(0,G.jsx)(P.Z,{allowClear:!0,size:"middle",options:L.P,placeholder:"请选择所在地",showSearch:{matchInputWidth:!0,filter:H}})}),(0,G.jsx)(x.Z.Item,{label:"详细地址:",name:"address",children:(0,G.jsx)(A.Z,{placeholder:"请填写完整的地址信息"})}),(0,G.jsx)(x.Z.Item,{label:"说明:",name:"remarks",children:(0,G.jsx)(U,{placeholder:"再次说明特别情况(选填)"})}),(0,G.jsx)("div",{className:R,children:(0,G.jsxs)(x.Z.Item,{children:[(0,G.jsx)(k.ZP,{className:"mr5",size:"middle",onClick:function(){s()},children:"取消"}),(0,G.jsx)(k.ZP,{size:"middle",type:"primary",htmlType:"submit",loading:n["account/appplySchool"],children:"保存"})]})})]})})})),J=t(50251),Y=t(89392),V=["user","account","globalSetting","loading","dispatch","Scoid"],K=m.default.Option,q=g.Z.Dragger,Q=function(e){return e[e.Professor=1]="Professor",e[e.AssistantProfessor=2]="AssistantProfessor",e[e.Student=3]="Student",e}(Q||{}),X=(0,f.connect)((function(e){var n=e.user,t=e.account,i=e.loading;return{user:n,account:t,globalSetting:e.globalSetting,loading:i.effects}}))((function(e){var n,t,i=e.user,o=e.account,s=e.globalSetting,c=e.loading,u=e.dispatch,f=e.Scoid,g=(p()(e,V),x.Z.useForm()),P=d()(g,1)[0],T=(0,h.useState)({}),D=d()(T,2),L=D[0],E=D[1],I=(0,h.useState)([]),O=d()(I,2),z=O[0],R=O[1],W=(0,h.useState)([]),H=d()(W,2),U=H[0],X=H[1],_=(0,h.useState)([]),$=d()(_,2),ee=$[0],ne=$[1],te=(0,h.useState)([]),ie=d()(te,2),ae=ie[0],oe=ie[1],re=(0,h.useState)(),se=d()(re,2),le=se[0],ce=se[1],de=(0,h.useState)(),ue=d()(de,2),pe=ue[0],he=ue[1],fe=(0,h.useState)(),me=d()(fe,2),ge=me[0],xe=me[1],ve=(0,h.useState)(),we=d()(ve,2),je=we[0],be=we[1],ye=(0,h.useState)(),Ae=d()(ye,2),Ce=Ae[0],ke=Ae[1],Se=(0,h.useRef)((0,Y.throttle)((function(e){return Ne(e)}),1200,{leading:!0,trailing:!0})).current;(0,h.useEffect)((function(){}),[]),(0,h.useEffect)((function(){l()(r()().mark((function e(){var n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(f){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,Be(f);case 4:n=e.sent,ne(null==n?void 0:n.departments);case 6:case"end":return e.stop()}}),e)})))()}),[f]);var Ne=function(){var e=l()(r()().mark((function e(n){var t,i,o;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,u({type:"account/getSchoolOption",payload:{keyword:n,limit:10}});case 2:t=e.sent,R(null==t?void 0:t.schools),n&&""!=n&&(X(null==t||null===(i=t.schools)||void 0===i?void 0:i.filter((function(e){return e.name.includes(n)}))),((null==t||null===(o=t.schools)||void 0===o?void 0:o.find((function(e){return e.name===n})))||{}).id?Me(n,null,null==t?void 0:t.schools):(P.setFieldsValue({department:""}),E(a()(a()({},L),{school:n,department:""}))));case 5:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),Be=function(e){if(e)return u({type:"account/getDepartmentOption",payload:{id:e}})};(0,h.useEffect)((function(){if(o.basicInfo){var e=o.basicInfo,n={identity:e.identity,school:e.school_name,department:e.department_name,studentNo:e.student_id,jobTitle:"teacher"==e.identity?e.technical_title:"教授",manager:"professional"==e.identity?e.technical_title:"企业管理者"};P.setFieldsValue(n),E(n)}}),[o.basicInfo]);var Ze=function(e,n){o.actionTabs.checkedList.includes(Q.Professor)?w.Z.confirm({centered:!0,okText:"确定",cancelText:"取消",title:"提示",content:(0,G.jsx)("div",{className:"tc",children:n||"申请已提交,请等待审核"}),onOk:function(){window.location.href="/classrooms/".concat(e,"/students")}}):window.location.href="/classrooms/".concat(e,"/students")},Me=function(){var e=l()(r()().mark((function e(n,t,i){var o,s,l,c,d;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l=null===(o=(i||z).find((function(e){return e.name===n})))||void 0===o?void 0:o.id,e.next=3,Be(l);case 3:if(e.t0=e.sent,e.t0){e.next=6;break}e.t0={};case 6:c=e.t0,ne(null==c?void 0:c.departments),d=t||(null==c||null===(s=c.departments)||void 0===s||null===(s=s[0])||void 0===s?void 0:s.name),P.setFieldsValue({department:d}),E(a()(a()({},L),{school:n,department:d}));case 11:case"end":return e.stop()}}),e)})));return function(n,t,i){return e.apply(this,arguments)}}(),Pe=function(){var e=l()(r()().mark((function e(n){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ne();case 2:P.setFieldsValue({school:n,department:""}),E(a()(a()({},L),{school:n,department:""}));case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),Te=function(){var e=l()(r()().mark((function e(n){var t,a,s,l,c,d,p,h,f,m,g,x,w,j,b,y,A;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(d=(c=n||{}).school,p=c.department,h=c.identity,f=c.studentNo,m=c.jobTitle,g=c.manager,le){e.next=4;break}return v.ZP.info("请先上传照片!"),e.abrupt("return");case 4:return x=null===(t=z.find((function(e){return e.name===d})))||void 0===t?void 0:t.id,w=null===(a=ee.find((function(e){return e.name===p})))||void 0===a?void 0:a.id,j="student"===h?f:"teacher"===h?m:g,e.next=9,u({type:"account/applyProfessionalAuth",payload:{id:(null===(s=o.basicInfo)||void 0===s?void 0:s.id)||(null===(l=i.userInfo)||void 0===l?void 0:l.login),school_id:x,department_id:w,identity:h,extra:j,attachment_ids:[pe]}});case 9:if(b=e.sent,!o.actionTabs.code){e.next=15;break}return e.next=13,(0,J.cR)({invite_code:o.actionTabs.code,professor:o.actionTabs.checkedList.includes(Q.Professor)?1:null,assistant_professor:o.actionTabs.checkedList.includes(Q.AssistantProfessor)?1:null,student:o.actionTabs.checkedList.includes(Q.Student)?1:null});case 13:"加入成功"===(y=e.sent).message&&(null!=y&&y.course_id?Ze(y.course_id,y.message):v.ZP.success(y.message));case 15:De(),b&&(v.ZP.info("申请已提交,请等待审核!"),u({type:"account/getBasicInfo",payload:{login:null===(A=i.userInfo)||void 0===A?void 0:A.login}}));case 17:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),De=function(){u({type:"account/setActionTabs",payload:{}})},Le={data:{type:"professional"},multiple:!0,showUploadList:!1,action:"".concat(S.Z.API_SERVER,"/api/attachments.json"),className:B.Z.uploader,onChange:function(e){var n;"uploading"!==e.file.status?"done"===e.file.status&&(console.log(e.file,e.file.response),he(null===(n=e.file.response)||void 0===n?void 0:n.id),(0,Z.y3)(e.file.originFileObj,(function(e){ce(e),xe(!1)}))):xe(!0)},beforeUpload:function(e){var n="image/jpeg"===e.type||"image/png"===e.type||"image/jpg"===e.type||"image/bmp"===e.type;return n||v.ZP.info("请上传正确文件格式"),n}};return(0,G.jsxs)(w.Z,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,className:B.Z.modal,open:"Account-ProfessionalAuth"===o.actionTabs.key,title:(0,G.jsxs)(j.Z,{style:{padding:"25px"},align:"middle",justify:"space-between",children:[(0,G.jsx)(b.Z,{children:"职业认证"}),(0,G.jsx)(b.Z,{children:(0,G.jsx)("i",{className:"iconfont icon-guanbi11",style:{color:"#979797",cursor:"pointer"},onClick:De})})]}),width:"660px",footer:null,children:[(0,G.jsx)(y.Z,{spinning:!!ge,children:(0,G.jsxs)(x.Z,{className:B.Z.formWrap,form:P,colon:!1,onValuesChange:function(e){(E(a()({},P.getFieldsValue())),"school"in e)&&(X(z.filter((function(n){return n.name.includes(e.school)}))),(z.find((function(n){return n.name===e.school}))||{}).id?Me(e.school):(P.setFieldsValue({department:""}),E(a()(a()({},L),{school:e.school,department:""}))))},onFinish:Te,children:[(0,G.jsxs)(j.Z,{gutter:[10,0],children:[(0,G.jsx)(b.Z,{flex:"300px",children:(0,G.jsx)(x.Z.Item,{label:"职业",name:"identity",rules:[{required:!0,message:"请先选择职业"}],children:(0,G.jsxs)(m.default,{children:[(0,G.jsx)(K,{value:"teacher",children:"教师"}),(0,G.jsx)(K,{value:"student",children:"学生"}),(0,G.jsx)(K,{value:"professional",children:"专业人士"})]})})}),"student"===L.identity&&(0,G.jsx)(b.Z,{flex:"200px",children:(0,G.jsx)(x.Z.Item,{initialValue:L.studentNo,name:"studentNo",rules:[{required:!0,message:"请先输入学号"}],children:(0,G.jsx)(A.Z,{type:"text",placeholder:"请输入学号"})})}),"teacher"===L.identity&&(0,G.jsx)(b.Z,{flex:"200px",children:(0,G.jsx)(x.Z.Item,{initialValue:L.jobTitle,name:"jobTitle",rules:[{required:!0,message:"请先选择职称"}],children:(0,G.jsxs)(m.default,{children:[(0,G.jsx)(K,{value:"教授",children:"教授"}),(0,G.jsx)(K,{value:"副教授",children:"副教授"}),(0,G.jsx)(K,{value:"讲师",children:"讲师"}),(0,G.jsx)(K,{value:"助教",children:"助教"})]})})}),"professional"===L.identity&&(0,G.jsx)(b.Z,{flex:"200px",children:(0,G.jsx)(x.Z.Item,{initialValue:L.manager,name:"manager",rules:[{required:!0,message:"请先选择职称"}],children:(0,G.jsxs)(m.default,{children:[(0,G.jsx)(K,{value:"企业管理者",children:"企业管理者"}),(0,G.jsx)(K,{value:"部门管理者",children:"部门管理者"}),(0,G.jsx)(K,{value:"高级工程师",children:"高级工程师"}),(0,G.jsx)(K,{value:"工程师",children:"工程师"}),(0,G.jsx)(K,{value:"助理工程师",children:"助理工程师"})]})})})]}),(0,G.jsx)(x.Z.Item,{label:"学校/单位",name:"school",extra:L.school&&!(null!=z&&z.find((function(e){return e.name===L.school})))&&(0,G.jsxs)("div",{className:B.Z.schoolHintWrap,children:[(0,G.jsxs)("span",{className:B.Z.colorCDCDCD,children:["未找到包含“",L.school,"”的高校,"]}),(0,G.jsx)("span",{className:"".concat(B.Z.color0152d9," current"),onClick:function(){be(!0)},children:"申请新增"})]}),rules:[{required:!0,message:"请先选择学校/单位"}],children:(0,G.jsx)(C.Z,{showSearch:!0,onSearch:Se,options:null==U?void 0:U.map((function(e){return{value:e.name}}))})}),(0,G.jsx)(x.Z.Item,{label:"院系/部门",name:"department",extra:L.department&&!(null!=ee&&ee.find((function(e){return e.name===L.department})))&&(0,G.jsxs)("div",{className:B.Z.schoolHintWrap,children:[(0,G.jsx)("span",{className:B.Z.colorCDCDCD,children:L.department?"未找到包含“".concat(L.department,"”的高校,"):"未找到院系,"}),(0,G.jsx)("span",{className:"".concat(B.Z.color0152d9," current"),onClick:function(){z.find((function(e){return e.name===L.school}))?ke(!0):v.ZP.info("请先选择正确的单位或者学校!")},children:"申请新增"})]}),rules:[{required:!0,message:"请先选择院系/部门"}],children:(0,G.jsx)(C.Z,{showSearch:!0,onChange:function(e){return oe(ee.filter((function(n){return n.name.includes(e)})))},options:null==ae?void 0:ae.map((function(e){return{value:e.name}}))})}),(0,G.jsx)(x.Z.Item,{label:"职业证上传",children:(0,G.jsxs)("div",{className:B.Z.flexRow,children:[(0,G.jsxs)("div",{className:B.Z.flexColumn,children:[(0,G.jsx)(q,a()(a()({},Le),{},{accept:".png,.jpg,.bmp,.jpeg",children:le?(0,G.jsx)("img",{src:le,className:B.Z.uploadImg}):(0,G.jsxs)("div",{className:B.Z.imageTip,children:[(0,G.jsx)("p",{children:(0,G.jsx)("i",{className:"iconfont icon-cuban2shangchuanyunduan ".concat(B.Z.uploadTipIcon)})}),(0,G.jsx)("p",{className:B.Z.uploadTip,children:(0,G.jsx)("a",{className:B.Z.color05101a,children:"点击或拖拽上传图片"})})]})})),(0,G.jsx)("span",{className:"tc",children:(0,G.jsx)("p",{className:B.Z.viewLargerImg,children:"查看大图"})})]}),(0,G.jsxs)("div",{className:"".concat(B.Z.flexColumn," ").concat(B.Z.example),children:[(0,G.jsx)("span",{className:B.Z.exampleImg,children:(0,G.jsx)("img",{src:N})}),(0,G.jsxs)("span",{className:"tc",children:[(0,G.jsx)("p",{children:"示例图片"}),(0,G.jsx)("p",{className:"".concat(B.Z.colorOrange," font12"),children:"(png/jpg/bmp格式,不超过2MB)"})]})]})]})}),(0,G.jsx)("div",{className:B.Z.footerWrap,children:(0,G.jsxs)(x.Z.Item,{children:[(0,G.jsx)(k.ZP,{className:"mr5",size:"middle",onClick:De,children:"取消"}),(0,G.jsx)(k.ZP,{size:"middle",type:"primary",htmlType:"submit",loading:c["account/applyProfessionalAuth"],children:"保存"})]})}),(0,G.jsxs)("div",{className:B.Z.note,children:[(0,G.jsx)("p",{children:"认证须知:"}),(0,G.jsx)("p",{children:"1.根据职业上传相应的证件照:教师(教师证),专业人士(员工证)、学生(学生证),请确保证件照内容完整并且清晰可见,严禁PS;"}),(0,G.jsx)("p",{children:"2.我们将在你提交职业证信息后的24小时(不包含节假日)内完成审核,审核结果将会以系统消息的形式发送给你;"}),(0,G.jsx)("p",{children:"3.职业认证审核完成后,无法删除,请谨慎填写;职业变更请选择重新认证;"}),(0,G.jsx)("p",{children:"4.职业认证审核完成后,系统将自动发放500个金币作为奖励;"}),(0,G.jsx)("p",{children:"5.我们会确保你所提供的信息均处于严格的保密状态,不会泄露;"}),(0,G.jsxs)("p",{children:["6.如存在恶意乱填写姓名,学号,及上传与职业证件无关图片者,一经发现将冻结",!(null!=s&&null!==(n=s.setting)&&void 0!==n&&n.is_local)&&"EduCoder","账号。"]}),(0,G.jsx)("p",{children:"7.非老师身份提交职业认证后系统会自动将状态改为已认证,你将可以体验平台需要职业认证的功能;如果在认证后的使用过程中未通过审核,你将不能继续体验需要认证的功能。"})]})]})}),(0,G.jsx)(F,{visible:je,onClose:function(){return be(!1)},schoolName:L.school,onSuccess:Pe}),(0,G.jsx)(M.Z,{visible:Ce,onClose:function(){return ke(!1)},schoolId:null===(t=z.find((function(e){return e.name===L.school})))||void 0===t?void 0:t.id,schoolName:L.school,departmentName:L.department,onSuccess:function(e){return Me(L.school,e)}})]})}))},42226:function(e,n,t){"use strict";var i=t(7557),a=t.n(i),o=t(41498),r=t.n(o),s=t(79800),l=t.n(s),c=t(59301),d=t(8591),u=t(43418),p=t(98135),h=t(3113),f=t(82420),m=t(25011),g=t(92818),x=t(14103),v=t(37712),w=/^1\d{10}$/;n.Z=function(e){var n=e.isShowPhone,t=e.setIsShowPhone,i=e.user,o=e.dispatch,s=e.onOK,j=e.isopen,b=e.setisopen,y=e.datas,A=(0,c.useState)(""),C=l()(A,2),k=C[0],S=C[1],N=(0,c.useState)(""),B=l()(N,2),Z=B[0],M=B[1],P=(0,c.useState)(60),T=l()(P,2),D=T[0],L=T[1],E=(0,c.useState)(),I=l()(E,2),O=I[0],z=I[1],R=(0,c.useState)(!1),G=l()(R,2),W=G[0],H=G[1],U=(0,c.useState)(!1),F=l()(U,2),J=F[0],Y=F[1],V=(0,c.useState)(""),K=l()(V,2),q=K[0],Q=K[1],X=(0,c.useRef)();(0,c.useEffect)((function(){return function(){X.current&&clearInterval(X.current)}}),[]),(0,m.Y)((function(){O&&(L(60),D>0?L(D-1):(L(60),z(!1),X.current&&clearInterval(X.current)))}),1e3);var _=function(){var e=r()(a()().mark((function e(){var n,t,r;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,f.ZP)("/api/users/accounts/".concat(null===(n=i.userInfo)||void 0===n?void 0:n.login,"/valid_phone.json"),{method:"get",params:{phone:k}});case 2:if(-1!==(null==(t=e.sent)?void 0:t.status)){e.next=5;break}return e.abrupt("return");case 5:if(null==t||!t.is_exists){e.next=8;break}return H(!0),e.abrupt("return");case 8:return r=(0,g.M)(k),e.next=11,o({type:"account/getCode",payload:{login:k,type:3,smscode:r}});case 11:1===e.sent.status&&(d.ZP.info("验证码已发送,请注意查收"),z(!0));case 13:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,v.jsxs)("div",{children:[(0,v.jsx)(u.Z,{title:"强制解绑",open:J,onCancel:function(){return Y(!1)},onOk:r()(a()().mark((function e(){var n,o;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(q){e.next=3;break}return d.ZP.info("验证码不能为空"),e.abrupt("return");case 3:return e.next=5,(0,f.ZP)("/api/users/accounts/".concat(null==i||null===(n=i.userInfo)||void 0===n?void 0:n.login,"/phone_force_unbind.json"),{method:"POST",body:{code:q,phone:k}});case 5:0===(null==(o=e.sent)?void 0:o.status)&&(d.ZP.info("解绑成功"),z(!1),Y(!1),s(),t(!1),Q(""));case 7:case"end":return e.stop()}}),e)}))),children:(0,v.jsxs)("div",{style:{padding:"8px 24px"},children:[(0,v.jsx)("p",{children:"若原账号只有绑定了手机号一种登录方式,强制解绑后会导致原账号无法登录,请确定是否强制解绑"}),(0,v.jsxs)("p",{children:["你的手机号:",k]}),(0,v.jsxs)("p",{children:["手机验证码:",(0,v.jsx)(p.Z,{value:q,size:"middle",onChange:function(e){return Q(e.target.value)},style:{width:"240px"}})," ",(0,v.jsx)(h.ZP,{disabled:O,type:"primary",size:"middle",onClick:r()(a()().mark((function e(){var n;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=(0,g.M)(k),e.next=3,o({type:"account/getCode",payload:{login:k,type:10,smscode:n}});case 3:1===e.sent.status&&(d.ZP.info("验证码已发送,请注意查收"),z(!0));case 5:case"end":return e.stop()}}),e)}))),children:O?"重新发送".concat(D,"s"):"获取验证码"})]})]})}),(0,v.jsx)(u.Z,{title:"提示",open:W,onCancel:function(){H(!1)},okText:"进行强制解绑",okButtonProps:{type:"primary",ghost:!0,style:{width:"124px"}},onOk:function(){Y(!0),H(!1)},children:(0,v.jsxs)("div",{style:{padding:"7px 24px"},children:[(0,v.jsx)("span",{children:"该手机号已经被绑定账号,如果需要将该手机号绑定在当前账号上,你可以进行下方任意一种解绑操作:"}),(0,v.jsx)("br",{}),(0,v.jsx)("p",{style:{marginTop:"1em",display:"flex"},children:(0,v.jsx)("span",{style:{flex:"1"},children:"1、使用该手机号登录平台进行解绑,再将手机号绑定当前账号上。"})}),(0,v.jsx)("p",{style:{marginTop:"1em",display:"flex"},children:(0,v.jsx)("span",{style:{flex:"1"},children:"2、强制解绑(强制解绑可能会导致解绑账号无法登录)"})})]})}),(0,v.jsx)(u.Z,{title:"绑定手机号",open:n,onCancel:function(){return t(!1)},onOk:r()(a()().mark((function e(){var n,r,l;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(w.test(k)){e.next=3;break}return d.ZP.info("请输入有效的11位手机号码"),e.abrupt("return");case 3:if(Z){e.next=6;break}return d.ZP.info("请输入验证码"),e.abrupt("return");case 6:return n=i.userInfo||{},r=n.login,e.next=9,o({type:"account/bindPhone",payload:{login:r,phone:k,code:Z}});case 9:0===(null==(l=e.sent)?void 0:l.status)&&(t(!1),s());case 11:case"end":return e.stop()}}),e)}))),children:(0,v.jsxs)("div",{style:{padding:"8px 24px"},children:[(0,v.jsx)("p",{children:"平台已检测到您未绑定手机号,为了不影响使用报名功能,请先绑定手机号码"}),(0,v.jsxs)("p",{children:["你的手机号:",(0,v.jsx)(p.Z,{size:"middle",value:k,onChange:function(e){return S(e.target.value)},style:{width:"240px"}})]}),(0,v.jsxs)("p",{children:["手机验证码:",(0,v.jsx)(p.Z,{size:"middle",value:Z,onChange:function(e){return M(e.target.value)},style:{width:"240px"}})," ",(0,v.jsx)(h.ZP,{disabled:O,type:"primary",size:"middle",onClick:r()(a()().mark((function e(){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(w.test(k)){e.next=3;break}return d.ZP.info("请输入有效的11位手机号码"),e.abrupt("return");case 3:_();case 4:case"end":return e.stop()}}),e)}))),children:O?"重新发送".concat(D,"s"):"获取验证码"})]})]})}),(0,v.jsx)(u.Z,{open:j,footer:!1,onCancel:function(){return b(!1)},centered:!0,width:460,children:(0,v.jsxs)("div",{children:[(0,v.jsxs)("div",{style:{marginTop:50,fontSize:26,color:"#3d3d3d",textAlign:"center",marginBottom:20},children:[(0,v.jsx)("i",{style:{fontSize:26,color:"#52C41A"},className:"iconfont icon-tongguo"})," 报名成功"]}),(0,v.jsxs)("div",{style:{alignItems:"center",textAlign:"center"},children:[(0,v.jsx)("img",{style:{width:180,border:"1px solid #eeeeef",padding:10,marginBottom:20},src:x.Z.IMG_SERVER+(null==y?void 0:y.QR_code)}),(0,v.jsx)("p",{style:{color:"#AAAAAA"},children:"参赛者可扫码加入大赛官方交流群,获取最新竞赛通知"})]})]})})]})}},25011:function(e,n,t){"use strict";t.d(n,{Y:function(){return a}});var i=t(59301);function a(e,n){var t=(0,i.useRef)(),a=(0,i.useRef)();(0,i.useEffect)((function(){t.current=e})),(0,i.useEffect)((function(){if(null!==n){var e=setInterval((function(){t.current()}),n);return a.current=e,function(){return clearInterval(e)}}}),[n])}},69130:function(e,n){"use strict";n.Z={modal:"modal___A9Ovz",colorBlue:"colorBlue___XSmR5",formWrap:"formWrap___wRvaA",flexRow:"flexRow___C40dc",flexColumn:"flexColumn___LkZfj",example:"example___bz7Hw",exampleImg:"exampleImg___gNkC_",colorOrange:"colorOrange___Ka6zf",uploader:"uploader___plQRr",uploadImg:"uploadImg___cjOpL",imageTip:"imageTip___p1_lZ",uploadTipIcon:"uploadTipIcon___SpsS2",uploadTip:"uploadTip___e9JlL",color05101a:"color05101a___CDEUv",viewLargerImg:"viewLargerImg___IclRX",footerWrap:"footerWrap___beWC6",note:"note___CXi9y",schoolHintWrap:"schoolHintWrap___Ma6ly",colorCDCDCD:"colorCDCDCD___D0UWo",color0152d9:"color0152d9___hF3Bb"}},21251:function(e,n){"use strict";n.Z={flex_box_center:"flex_box_center___fo_3c",flex_space_between:"flex_space_between___G46CO",flex_box_vertical_center:"flex_box_vertical_center___br3Kr",flex_box_center_end:"flex_box_center_end___Xdo94",flex_box_column:"flex_box_column___Bcnmr",wrp:"wrp___TY7QJ",bg:"bg___xiaSy",commonimg:"commonimg___a4R0Q",titlesize:"titlesize___Wdd_a",timesize:"timesize___OkfYO",flex1:"flex1___N6paY",buttonsize:"buttonsize___syL9V",myteam:"myteam___RTWAt",bootmdetail:"bootmdetail___taUGk",menuItem:"menuItem___Kww4S",flex6:"flex6___RuzJ4",spanprev:"spanprev___Cssg_",spannext:"spannext___jVFGE",divwidth:"divwidth___r5hE3",receiveclick:"receiveclick___BauOs",receivealready:"receivealready___Z7Wo0",bkfff:"bkfff___lHrcJ","ant-input":"ant-input___m4bn_",onediv:"onediv___xzZRa",onetop:"onetop___M4GfM",towdiv:"towdiv___yj3ds",towtop:"towtop___veKa4",threediv:"threediv___Ztz0D",threetop:"threetop___zDXIg",imgradius:"imgradius___r4uGN",prize:"prize___YNRD4",spanrightradius:"spanrightradius___tC6T5",bottomItem:"bottomItem___CHcMJ",myTeam:"myTeam___fm7KX",downloadpdf:"downloadpdf___a2NuA",pdfBut:"pdfBut___Drr6h",PerfectBut:"PerfectBut___wEhjV",PerfectCent:"PerfectCent___HD3Id",PerfectCentName:"PerfectCentName___smdJX",teamItem:"teamItem___mx2f3",dash:"dash___l6QH1",modal:"modal___yXh2H",maskText:"maskText___Tdh6h",box:"box___K2uQ4",open_style:"open_style___gLTB9",title_style:"title_style___j6zvN",colorhove:"colorhove___FKtzO"}},93314:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P+v2cqCwWFxgoOJk6JeTNX4HmJMAHv6xP4/6VXw/+OxN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FMpKjDGaSUZedGMnuM7jwYA3yP7CdeXzT0RgMX+xjU7myBWAy7y0+EA3/0V649Hw9Lu3qSZ2nQKA7ahLYD6pYEkXiHVtSivqztrmv5RqSKzv/AzX70/fxN4ToYFL0XdBk3rJBThvy/rnzMhT62TNyahTpMtFhsO1OF9aEfsYgHKFTfoeVDh8PbuHANJCJj4ewC0QIGOQgEMvh6i+IKw609hIpxv8+mAWp0O0+ZftanLo0hOKRyUYrBl4aG5mvKOWo6ojtRY+72x+z3+Lz8egOhrofOxhXpUd8+h+tc9oS7g9EAF0EYvwJLNJc6n/qQOW3bb0SVS3XhTyYK5LjUL6vlUXJNSaLixlOrSnHZ55MeSaU5fE1pjrEilPNOiqkMtSiSmc/1oNxbXDPJSFxp6P23AZgRx17vu/HCtAD5mo/5t3Rpp2p6aFHji4VBgdaIwd0SsFN2YlE/tZAEfIAuB848lRxbQUq9Plo0ts3hxp7+HY3ti33ANi19fbUvsor0GFoRZHOvk1Y6FIC7q5dSPzcw4Gv8iZ4mnNtBQp0l9BlcHzFAAeu0h8B48V+JdQjQri2D57a/VyBBkMNanSOw1WNCt0bSUh82FZXHgD3cwM81VxbAT10yNWlQm+6vceupKuTQTJ7J7ZYGZE9AHZtHzy1XViBSn0B1Hpnr5jlziZh642WV7V6AOzCBniqurYCnWhDodZ2upGtliXA9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},3828:function(){}}]);
\ No newline at end of file
diff --git a/36322.chunk.css b/67512.chunk.css
similarity index 100%
rename from 36322.chunk.css
rename to 67512.chunk.css
diff --git a/71448.async.js b/71448.async.js
index f7995f2dd3..cbdcf3dc85 100644
--- a/71448.async.js
+++ b/71448.async.js
@@ -1 +1 @@
-(self.webpackChunk=self.webpackChunk||[]).push([[71448],{71448:function(e,t,n){var i;self.MonacoEnvironment=(i={editorWorkerService:"editor.worker.js",css:"css.worker.js",html:"html.worker.js",json:"json.worker.js",typescript:"ts.worker.js",javascript:"ts.worker.js",less:"css.worker.js",scss:"css.worker.js",handlebars:"html.worker.js",razor:"html.worker.js"},{globalAPI:!1,getWorkerUrl:function(e,t){var o=n.p,r=(o?o.replace(/\/$/,"")+"/":"")+i[t];if(/^((http:)|(https:)|(file:)|(\/\/))/.test(r)){var s=String(window.location),a=s.substr(0,s.length-window.location.hash.length-window.location.search.length-window.location.pathname.length);if(r.substring(0,a.length)!==a){/^(\/\/)/.test(r)&&(r=window.location.protocol+r);var c=new Blob(["/*"+t+'*/importScripts("'+r+'");'],{type:"application/javascript"});return URL.createObjectURL(c)}}return r}}),n(65902),n(17525),n(32838),n(84826),n(60066),n(20822),n(54807),n(88297),n(46343),n(4105),n(12529),n(68305),n(8370),n(34064),n(85628),n(50741),n(65586),n(17645),n(68531),n(76469),n(45547),n(63478),n(74591),n(26313),n(53332),n(51518),n(75723),n(63435),n(83861),n(73590),n(29997),n(71925),n(19257),n(53346),n(6181),n(6410),n(28630),n(29111),n(63618),n(48608),e.exports=n(92940),n(92973),n(72773),n(30219),n(77878),n(74121),n(77973),n(27246),n(82961),n(19959),n(23347),n(17323),n(24607),n(90130),n(72185),n(40882),n(14349),n(10715),n(88756),n(67748),n(30141),n(44115),n(65588),n(42716),n(83135),n(91067),n(63886),n(44865),n(41495),n(12076),n(38516),n(18504),n(28593),n(43069),n(50185),n(11745),n(96025),n(85713),n(98836),n(18625),n(59972),n(5512),n(59066),n(73363),n(5769),n(95630),n(12189),n(78605),n(17728),n(94503),n(66857),n(38341),n(61010),n(1099),n(49478),n(32985),n(72088),n(69746),n(94912),n(60032),n(24571),n(55670),n(77777),n(39393),n(81147),n(35550)},92940:function(e,t,n){"use strict";n.r(t),n.d(t,{CancellationTokenSource:function(){return i.CancellationTokenSource},Emitter:function(){return i.Emitter},KeyCode:function(){return i.KeyCode},KeyMod:function(){return i.KeyMod},MarkerSeverity:function(){return i.MarkerSeverity},MarkerTag:function(){return i.MarkerTag},Position:function(){return i.Position},Range:function(){return i.Range},Selection:function(){return i.Selection},SelectionDirection:function(){return i.SelectionDirection},Token:function(){return i.Token},Uri:function(){return i.Uri},__esModule:function(){return i.__esModule},editor:function(){return i.editor},languages:function(){return i.languages}});n(55670),n(24607),n(42716),n(67748);var i=n(2550),o=(n(92973),n(72773),n(30219),n(77878),n(98909));(0,o.H)({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:function(){return n.e(74014).then(n.bind(n,74014))}});n(74121),n(77973),n(27246),n(82961),n(19959),n(23347),n(17323);(0,o.H)({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:function(){return n.e(18963).then(n.bind(n,18963))}});n(90130);(0,o.H)({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:function(){return n.e(78302).then(n.bind(n,78302))}}),(0,o.H)({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:function(){return n.e(51646).then(n.bind(n,51646))}}),(0,o.H)({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:function(){return n.e(70981).then(n.bind(n,70981))}});n(72185),n(40882),n(14349),n(10715);(0,o.H)({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:function(){return n.e(15290).then(n.bind(n,15290))}});n(88756),n(30141),n(44115),n(65588);(0,o.H)({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:function(){return n.e(15631).then(n.bind(n,15631))}});n(83135),n(91067);(0,o.H)({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:function(){return n.e(80629).then(n.bind(n,80629))}});n(63886);(0,o.H)({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:function(){return n.e(86774).then(n.bind(n,61880))}}),(0,o.H)({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:function(){return n.e(30741).then(n.bind(n,30741))}});n(44865),n(41495),n(12076),n(38516),n(18504),n(28593),n(43069),n(50185),n(11745),n(96025);(0,o.H)({id:"pla",extensions:[".pla"],loader:function(){return n.e(12386).then(n.bind(n,12386))}});n(85713),n(98836),n(18625);(0,o.H)({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:function(){return n.e(36634).then(n.bind(n,36634))}});n(59972),n(5512);(0,o.H)({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:function(){return n.e(3133).then(n.bind(n,3133))}});n(59066),n(73363),n(5769),n(95630),n(12189),n(78605),n(17728),n(94503),n(35550),n(66857),n(38341),n(61010),n(1099),n(49478);(0,o.H)({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:function(){return n.e(95679).then(n.bind(n,95679))}});n(32985),n(72088),n(69746);(0,o.H)({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:function(){return n.e(39252).then(n.bind(n,39252))}}),(0,o.H)({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:function(){return n.e(39252).then(n.bind(n,39252))}});n(94912),n(60032),n(24571),n(77777),n(39393),n(81147),n(46343),n(55806),n(26782),n(46810);var r=n(16399),s=n(94186),a=n(52411),c=n(4514),d=n(17551),l=n(68987),u=n(13268),h=n(90689),g=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},p=function(e,t){return function(n,i){t(n,i,e)}},f=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function a(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((i=i.apply(e,t||[])).next())}))};const _=new h.uy("selectionAnchorSet",!1);let m=class e{constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=_.bindTo(t),this.modelChangeListener=e.onDidChangeModel((()=>this.selectionAnchorSetContextKey.reset()))}static get(t){return t.getContribution(e.ID)}setSelectionAnchor(){if(this.editor.hasModel()){const e=this.editor.getPosition(),t=this.decorationId?[this.decorationId]:[],n=this.editor.deltaDecorations(t,[{range:d.Y.fromPositions(e,e),options:{description:"selection-anchor",stickiness:1,hoverMessage:(new s.W5).appendText((0,u.N)("selectionAnchor","Selection Anchor")),className:"selection-anchor"}}]);this.decorationId=n[0],this.selectionAnchorSetContextKey.set(!!this.decorationId),(0,r.Z9)((0,u.N)("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){const t=this.editor.getPosition();this.editor.setSelection(d.Y.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){this.decorationId&&(this.editor.deltaDecorations([this.decorationId],[]),this.decorationId=void 0,this.selectionAnchorSetContextKey.set(!1))}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};m.ID="editor.contrib.selectionAnchorController",m=g([p(1,h.i6)],m);class b extends c.R6{constructor(){super({id:"editor.action.setSelectionAnchor",label:(0,u.N)("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:l.u.editorTextFocus,primary:(0,a.gx)(2089,2080),weight:100}})}run(e,t){return f(this,void 0,void 0,(function*(){m.get(t).setSelectionAnchor()}))}}class v extends c.R6{constructor(){super({id:"editor.action.goToSelectionAnchor",label:(0,u.N)("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:_})}run(e,t){return f(this,void 0,void 0,(function*(){m.get(t).goToSelectionAnchor()}))}}class S extends c.R6{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:(0,u.N)("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:_,kbOpts:{kbExpr:l.u.editorTextFocus,primary:(0,a.gx)(2089,2089),weight:100}})}run(e,t){return f(this,void 0,void 0,(function*(){m.get(t).selectFromAnchorToCursor()}))}}class C extends c.R6{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:(0,u.N)("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:_,kbOpts:{kbExpr:l.u.editorTextFocus,primary:9,weight:100}})}run(e,t){return f(this,void 0,void 0,(function*(){m.get(t).cancelSelectionAnchor()}))}}(0,c._K)(m.ID,m),(0,c.Qr)(b),(0,c.Qr)(v),(0,c.Qr)(S),(0,c.Qr)(C);n(17525),n(32838),n(28630),n(84826),n(60066),n(20822);var I=n(69323),y=n(17373),D=(n(99851),n(76469));class x extends I.JT{constructor(e){super(),this._editor=e,this._register(e.onMouseDown((e=>this.onMouseDown(e))))}dispose(){super.dispose()}onMouseDown(e){var t;if(6!==e.target.type)return;if(![...(null===(t=e.target.element)||void 0===t?void 0:t.classList.values())||[]].find((e=>e.startsWith("ced-colorBox"))))return;if(!e.target.range)return;const n=this._editor.getContribution(D.ModesHoverController.ID);if(!n.isColorPickerVisible()){const t=new y.e(e.target.range.startLineNumber,e.target.range.startColumn+1,e.target.range.endLineNumber,e.target.range.endColumn+1);n.showContentHover(t,0,!1)}}}x.ID="editor.contrib.colorContribution",(0,c._K)(x.ID,x);n(54807),n(88297),n(4105),n(12529),n(68305),n(8370),n(34064),n(85628);var k=n(96283),w=n(72999),L=n(5472),P=n(12027),R=n(16862),T=n(16903),O=n(35884),M=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function a(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((i=i.apply(e,t||[])).next())}))};function A(e,t,n){return M(this,void 0,void 0,(function*(){const i=yield T.C3.create(e,n);return t?i.asListOfDocumentSymbols():i.getTopLevelSymbols()}))}O.P.registerCommand("_executeDocumentSymbolProvider",(function(e,...t){return M(this,void 0,void 0,(function*(){const[n]=t;(0,w.p_)(L.o.isUri(n));const i=e.get(P.q).getModel(n);if(i)return A(i,!1,k.T.None);const o=yield e.get(R.S).createModelReference(n);try{return yield A(o.object.textEditorModel,!1,k.T.None)}finally{o.dispose()}}))}));n(79389),n(17645),n(68531),n(50741);var N=n(82983),E=n(91167),z=n(44124),q=n(31276),j=n(73468),U=n(44765),V=n(96148);function H(e,t,n,i){if(1===e.getLineCount()&&1===e.getLineMaxColumn(1))return[];const o=j.zu.getIndentationRules(e.getLanguageId());if(!o)return[];for(n=Math.min(n,e.getLineCount());t<=n&&o.unIndentedLinePattern;){let n=e.getLineContent(t);if(!o.unIndentedLinePattern.test(n))break;t++}if(t>n-1)return[];const{tabSize:r,indentSize:s,insertSpaces:a}=e.getOptions(),c=(e,t)=>(t=t||1,E.U.shiftIndent(e,e.length+t,r,s,a)),l=(e,t)=>(t=t||1,E.U.unshiftIndent(e,e.length+t,r,s,a));let u,h=[],g=e.getLineContent(t),p=g;if(null!=i){u=i;let e=N.V8(g);p=u+g.substring(e.length),o.decreaseIndentPattern&&o.decreaseIndentPattern.test(p)&&(u=l(u),p=u+g.substring(e.length)),g!==p&&h.push(z.h.replaceMove(new d.Y(t,1,t,e.length+1),q.yO.normalizeIndentation(u,s,a)))}else u=N.V8(g);let f=u;o.increaseIndentPattern&&o.increaseIndentPattern.test(p)?(f=c(f),u=c(u)):o.indentNextLinePattern&&o.indentNextLinePattern.test(p)&&(f=c(f));for(let i=++t;i<=n;i++){let t=e.getLineContent(i),n=N.V8(t),r=f+t.substring(n.length);o.decreaseIndentPattern&&o.decreaseIndentPattern.test(r)&&(f=l(f),u=l(u)),n!==f&&h.push(z.h.replaceMove(new d.Y(i,1,i,n.length+1),q.yO.normalizeIndentation(f,s,a))),o.unIndentedLinePattern&&o.unIndentedLinePattern.test(t)||(o.increaseIndentPattern&&o.increaseIndentPattern.test(r)?(u=c(u),f=u):f=o.indentNextLinePattern&&o.indentNextLinePattern.test(r)?c(f):u)}return h}class F extends c.R6{constructor(){super({id:F.ID,label:u.N("indentationToSpaces","Convert Indentation to Spaces"),alias:"Convert Indentation to Spaces",precondition:l.u.writable})}run(e,t){let n=t.getModel();if(!n)return;let i=n.getOptions(),o=t.getSelection();if(!o)return;const r=new ee(o,i.tabSize);t.pushUndoStop(),t.executeCommands(this.id,[r]),t.pushUndoStop(),n.updateOptions({insertSpaces:!0})}}F.ID="editor.action.indentationToSpaces";class Q extends c.R6{constructor(){super({id:Q.ID,label:u.N("indentationToTabs","Convert Indentation to Tabs"),alias:"Convert Indentation to Tabs",precondition:l.u.writable})}run(e,t){let n=t.getModel();if(!n)return;let i=n.getOptions(),o=t.getSelection();if(!o)return;const r=new te(o,i.tabSize);t.pushUndoStop(),t.executeCommands(this.id,[r]),t.pushUndoStop(),n.updateOptions({insertSpaces:!1})}}Q.ID="editor.action.indentationToTabs";class K extends c.R6{constructor(e,t){super(t),this.insertSpaces=e}run(e,t){const n=e.get(V.eJ),i=e.get(P.q);let o=t.getModel();if(!o)return;const r=i.getCreationOptions(o.getLanguageId(),o.uri,o.isForSimpleWidget),s=[1,2,3,4,5,6,7,8].map((e=>({id:e.toString(),label:e.toString(),description:e===r.tabSize?u.N("configuredTabSize","Configured Tab Size"):void 0}))),a=Math.min(o.getOptions().tabSize-1,7);setTimeout((()=>{n.pick(s,{placeHolder:u.N({key:"selectTabWidth",comment:["Tab corresponds to the tab key"]},"Select Tab Size for Current File"),activeItem:s[a]}).then((e=>{e&&o&&!o.isDisposed()&&o.updateOptions({tabSize:parseInt(e.label,10),insertSpaces:this.insertSpaces})}))}),50)}}class W extends K{constructor(){super(!1,{id:W.ID,label:u.N("indentUsingTabs","Indent Using Tabs"),alias:"Indent Using Tabs",precondition:void 0})}}W.ID="editor.action.indentUsingTabs";class $ extends K{constructor(){super(!0,{id:$.ID,label:u.N("indentUsingSpaces","Indent Using Spaces"),alias:"Indent Using Spaces",precondition:void 0})}}$.ID="editor.action.indentUsingSpaces";class B extends c.R6{constructor(){super({id:B.ID,label:u.N("detectIndentation","Detect Indentation from Content"),alias:"Detect Indentation from Content",precondition:void 0})}run(e,t){const n=e.get(P.q);let i=t.getModel();if(!i)return;const o=n.getCreationOptions(i.getLanguageId(),i.uri,i.isForSimpleWidget);i.detectIndentation(o.insertSpaces,o.tabSize)}}B.ID="editor.action.detectIndentation";class Y extends c.R6{constructor(){super({id:"editor.action.reindentlines",label:u.N("editor.reindentlines","Reindent Lines"),alias:"Reindent Lines",precondition:l.u.writable})}run(e,t){let n=t.getModel();if(!n)return;let i=H(n,1,n.getLineCount());i.length>0&&(t.pushUndoStop(),t.executeEdits(this.id,i),t.pushUndoStop())}}class X extends c.R6{constructor(){super({id:"editor.action.reindentselectedlines",label:u.N("editor.reindentselectedlines","Reindent Selected Lines"),alias:"Reindent Selected Lines",precondition:l.u.writable})}run(e,t){let n=t.getModel();if(!n)return;let i=t.getSelections();if(null===i)return;let o=[];for(let e of i){let t=e.startLineNumber,i=e.endLineNumber;if(t!==i&&1===e.endColumn&&i--,1===t){if(t===i)continue}else t--;let r=H(n,t,i);o.push(...r)}o.length>0&&(t.pushUndoStop(),t.executeEdits(this.id,o),t.pushUndoStop())}}class J{constructor(e,t){this._initialSelection=t,this._edits=[],this._selectionId=null;for(let t of e)t.range&&"string"==typeof t.text&&this._edits.push(t)}getEditOperations(e,t){for(let e of this._edits)t.addEditOperation(y.e.lift(e.range),e.text);let n=!1;Array.isArray(this._edits)&&1===this._edits.length&&this._initialSelection.isEmpty()&&(this._edits[0].range.startColumn===this._initialSelection.endColumn&&this._edits[0].range.startLineNumber===this._initialSelection.endLineNumber?(n=!0,this._selectionId=t.trackSelection(this._initialSelection,!0)):this._edits[0].range.endColumn===this._initialSelection.startColumn&&this._edits[0].range.endLineNumber===this._initialSelection.startLineNumber&&(n=!0,this._selectionId=t.trackSelection(this._initialSelection,!1))),n||(this._selectionId=t.trackSelection(this._initialSelection))}computeCursorState(e,t){return t.getTrackedSelection(this._selectionId)}}class G{constructor(e){this.callOnDispose=new I.SL,this.callOnModel=new I.SL,this.editor=e,this.callOnDispose.add(e.onDidChangeConfiguration((()=>this.update()))),this.callOnDispose.add(e.onDidChangeModel((()=>this.update()))),this.callOnDispose.add(e.onDidChangeModelLanguage((()=>this.update())))}update(){this.callOnModel.clear(),this.editor.getOption(9)<4||this.editor.getOption(47)||this.editor.hasModel()&&this.callOnModel.add(this.editor.onDidPaste((({range:e})=>{this.trigger(e)})))}trigger(e){let t=this.editor.getSelections();if(null===t||t.length>1)return;const n=this.editor.getModel();if(!n)return;if(!n.isCheapToTokenize(e.getStartPosition().lineNumber))return;const i=this.editor.getOption(9),{tabSize:o,indentSize:r,insertSpaces:s}=n.getOptions();let a=[],c={shiftIndent:e=>E.U.shiftIndent(e,e.length+1,o,r,s),unshiftIndent:e=>E.U.unshiftIndent(e,e.length+1,o,r,s)},d=e.startLineNumber;for(;d<=e.endLineNumber&&this.shouldIgnoreLine(n,d);)d++;if(d>e.endLineNumber)return;let l=n.getLineContent(d);if(!/\S/.test(l.substring(0,e.startColumn-1))){const e=j.zu.getGoodIndentForLine(i,n,n.getLanguageId(),d,c);if(null!==e){let t=N.V8(l),i=U.Y(e,o);if(i!==U.Y(t,o)){let e=U.J(i,o,s);a.push({range:new y.e(d,1,d,t.length+1),text:e}),l=e+l.substr(t.length)}else{let e=j.zu.getIndentMetadata(n,d);if(0===e||8===e)return}}}const u=d;for(;dn.getLineTokens(e),getLanguageId:()=>n.getLanguageId(),getLanguageIdAtPosition:(e,t)=>n.getLanguageIdAtPosition(e,t),getLineContent:e=>e===u?l:n.getLineContent(e)},r=j.zu.getGoodIndentForLine(i,t,n.getLanguageId(),d+1,c);if(null!==r){let t=U.Y(r,o),i=U.Y(N.V8(n.getLineContent(d+1)),o);if(t!==i){let r=t-i;for(let t=d+1;t<=e.endLineNumber;t++){let e=n.getLineContent(t),i=N.V8(e),c=U.Y(i,o)+r,d=U.J(c,o,s);d!==i&&a.push({range:new y.e(t,1,t,i.length+1),text:d})}}}}if(a.length>0){this.editor.pushUndoStop();let e=new J(a,this.editor.getSelection());this.editor.executeCommand("autoIndentOnPaste",e),this.editor.pushUndoStop()}}shouldIgnoreLine(e,t){e.forceTokenization(t);let n=e.getLineFirstNonWhitespaceColumn(t);if(0===n)return!0;let i=e.getLineTokens(t);if(i.getCount()>0){let e=i.findTokenIndexAtOffset(n);if(e>=0&&1===i.getStandardTokenType(e))return!0}return!1}dispose(){this.callOnDispose.dispose(),this.callOnModel.dispose()}}function Z(e,t,n,i){if(1===e.getLineCount()&&1===e.getLineMaxColumn(1))return;let o="";for(let e=0;e=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},pe=function(e,t){return function(n,i){t(n,i,e)}},fe=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function a(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((i=i.apply(e,t||[])).next())}))};class _e{constructor(){this._data=new re.Y9}push(e,t){const n=this._data.get(e.uri);void 0===n?this._data.set(e.uri,new Set([t])):n.add(t)}pop(e,t){const n=this._data.get(e.uri);n&&(n.delete(t),0===n.size&&this._data.delete(e.uri))}has(e,t){var n;return Boolean(null===(n=this._data.get(e.uri))||void 0===n?void 0:n.has(t))}}function me(e,t,n,i){return fe(this,void 0,void 0,(function*(){const o=[],r=de.mX.ordered(e).reverse().map((r=>t.map((t=>fe(this,void 0,void 0,(function*(){try{n.push(e,r);const s=yield r.provideInlayHints(e,t,i);(null==s?void 0:s.length)&&o.push(s.filter((e=>t.containsPosition(e.position))))}catch(e){(0,ie.Cp)(e)}finally{n.pop(e,r)}}))))));return yield Promise.all(r.flat()),o.flat().sort(((e,t)=>ce.L.compare(e.position,t.position)))}))}class be{constructor(){this._entries=new re.z6(50)}get(e){const t=be._key(e);return this._entries.get(t)}set(e,t){const n=be._key(e);this._entries.set(n,t)}static _key(e){return`${e.uri.toString()}/${e.getVersionId()}`}}let ve=class e{constructor(t,n){this._editor=t,this._codeEditorService=n,this._decorationOwnerId=++e._decorationOwnerIdPool,this._disposables=new I.SL,this._sessionDisposables=new I.SL,this._getInlayHintsDelays=new le.Y(de.mX,25,500),this._cache=new be,this._decorations=new Map,this._disposables.add(de.mX.onDidChange((()=>this._update()))),this._disposables.add(t.onDidChangeModel((()=>this._update()))),this._disposables.add(t.onDidChangeModelLanguage((()=>this._update()))),this._disposables.add(t.onDidChangeConfiguration((e=>{e.hasChanged(125)&&this._update()}))),this._update()}dispose(){this._sessionDisposables.dispose(),this._removeAllDecorations(),this._disposables.dispose()}_update(){if(this._sessionDisposables.clear(),this._removeAllDecorations(),!this._editor.getOption(125).enabled)return;const e=this._editor.getModel();if(!e||!de.mX.has(e))return;const t=this._cache.get(e);t&&this._updateHintsDecorators([e.getFullModelRange()],t);const n=new _e,i=new ne.pY((()=>fe(this,void 0,void 0,(function*(){const t=Date.now(),o=new k.A;this._sessionDisposables.add((0,I.OF)((()=>o.dispose(!0))));const r=this._getHintsRanges(),s=yield me(e,r,n,o.token);i.delay=this._getInlayHintsDelays.update(e,Date.now()-t),o.token.isCancellationRequested||(this._updateHintsDecorators(r,s),this._cache.set(e,Array.from(this._decorations.values()).map((e=>e.hint))))}))),this._getInlayHintsDelays.get(e));this._sessionDisposables.add(i),this._sessionDisposables.add(this._editor.onDidChangeModelContent((()=>i.schedule()))),this._disposables.add(this._editor.onDidScrollChange((()=>i.schedule()))),i.schedule();const o=new I.SL;this._sessionDisposables.add(o);for(const t of de.mX.all(e))"function"==typeof t.onDidChangeInlayHints&&o.add(t.onDidChangeInlayHints((()=>{n.has(e,t)||i.schedule()})))}_getHintsRanges(){const e=this._editor.getModel(),t=this._editor.getVisibleRangesPlusViewportAboveBelow(),n=[];for(const i of t.sort(y.e.compareRangesUsingStarts)){const t=e.validateRange(new y.e(i.startLineNumber-30,i.startColumn,i.endLineNumber+30,i.endColumn));0!==n.length&&y.e.areIntersectingOrTouching(n[n.length-1],t)?n[n.length-1]=y.e.plusRange(n[n.length-1],t):n.push(t)}return n}_updateHintsDecorators(e,t){const{fontSize:n,fontFamily:i}=this._getLayoutInfo(),o=this._editor.getModel(),r=[],s=[],a="--code-editorInlayHintsFontFamily";this._editor.getContainerDomNode().style.setProperty(a,i);for(const e of t){const{text:t,position:i,whitespaceBefore:c,whitespaceAfter:d}=e,l=c?n/3|0:0,u=d?n/3|0:0,h={contentText:Ce(t),fontSize:`${n}px`,margin:`0px ${u}px 0px ${l}px`,fontFamily:`var(${a}), ${ae.hL.fontFamily}`,padding:`1px ${0|Math.max(1,n/4)}px`,borderRadius:(n/4|0)+"px",verticalAlign:"middle",backgroundColor:(0,he.EN)(ue.Pp),color:(0,he.EN)(ue.VV)};e.kind===de.gl.Parameter?(h.backgroundColor=(0,he.EN)(ue.ph),h.color=(0,he.EN)(ue.HC)):e.kind===de.gl.Type&&(h.backgroundColor=(0,he.EN)(ue.bK),h.color=(0,he.EN)(ue.hX));let g={beforeInjectedText:Object.assign(Object.assign({},h),{affectsLetterSpacing:!0})},p=y.e.fromPositions(i),f=o.getWordAtPosition(i),_=!1;f&&(f.endColumn===i.column?(g.afterInjectedText=g.beforeInjectedText,g.beforeInjectedText=void 0,_=!0,p=Se(f,i.lineNumber)):f.startColumn===i.column&&(_=!0,p=Se(f,i.lineNumber)));const m="inlayHints-"+(0,oe.vp)(g).toString(16);this._codeEditorService.registerDecorationType("inlay-hints-controller",m,g,void 0,this._editor),r.push(m);if(s.push({range:p,options:Object.assign(Object.assign({},this._codeEditorService.resolveDecorationOptions(m,!0)),{showIfCollapsed:!_,stickiness:0})})>1500)break}const c=[];for(const t of e)for(const{id:e}of o.getDecorationsInRange(t,this._decorationOwnerId,!0)){const t=this._decorations.get(e);t&&(c.push(e),this._codeEditorService.removeDecorationType(t.decorationTypeId),this._decorations.delete(e))}const d=o.deltaDecorations(c,s,this._decorationOwnerId);for(let e=0;et)&&(n=.9*t|0);return{fontSize:n,fontFamily:e.fontFamily||this._editor.getOption(42)}}_removeAllDecorations(){this._editor.deltaDecorations(Array.from(this._decorations.keys()),[]);for(let e of this._decorations.values())this._codeEditorService.removeDecorationType(e.decorationTypeId);this._decorations.clear()}};function Se(e,t){return new y.e(t,e.startColumn,t,e.endColumn)}function Ce(e){return e.replace(/[ \t]/g," ")}ve.ID="editor.contrib.InlayHints",ve._decorationOwnerIdPool=0,ve=ge([pe(1,se.$)],ve),(0,c._K)(ve.ID,ve),O.P.registerCommand("_executeInlayHintProvider",((e,...t)=>fe(void 0,void 0,void 0,(function*(){const[n,i]=t;(0,w.p_)(L.o.isUri(n)),(0,w.p_)(y.e.isIRange(i));const o=yield e.get(R.S).createModelReference(n);try{return yield me(o.object.textEditorModel,[y.e.lift(i)],new _e,k.T.None)}finally{o.dispose()}}))));n(63478),n(26313);var Ie=n(43506),ye=n(51737),De=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},xe=function(e,t){return function(n,i){t(n,i,e)}},ke=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function a(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((i=i.apply(e,t||[])).next())}))};const we=new h.uy("LinkedEditingInputVisible",!1),Le="linked-editing-decoration";let Pe=class e extends I.JT{constructor(e,t){super(),this._debounceDuration=200,this._localToDispose=this._register(new I.SL),this._editor=e,this._enabled=!1,this._visibleContextKey=we.bindTo(t),this._currentDecorations=[],this._languageWordPattern=null,this._currentWordPattern=null,this._ignoreChangeEvent=!1,this._localToDispose=this._register(new I.SL),this._rangeUpdateTriggerPromise=null,this._rangeSyncTriggerPromise=null,this._currentRequest=null,this._currentRequestPosition=null,this._currentRequestModelVersion=null,this._register(this._editor.onDidChangeModel((()=>this.reinitialize(!0)))),this._register(this._editor.onDidChangeConfiguration((e=>{(e.hasChanged(61)||e.hasChanged(81))&&this.reinitialize(!1)}))),this._register(de.id.onDidChange((()=>this.reinitialize(!1)))),this._register(this._editor.onDidChangeModelLanguage((()=>this.reinitialize(!0)))),this.reinitialize(!0)}static get(t){return t.getContribution(e.ID)}reinitialize(e){const t=this._editor.getModel(),n=null!==t&&(this._editor.getOption(61)||this._editor.getOption(81))&&de.id.has(t);if(n===this._enabled&&!e)return;if(this._enabled=n,this.clearRanges(),this._localToDispose.clear(),!n||null===t)return;this._languageWordPattern=j.zu.getWordDefinition(t.getLanguageId()),this._localToDispose.add(t.onDidChangeLanguageConfiguration((()=>{this._languageWordPattern=j.zu.getWordDefinition(t.getLanguageId())})));const i=new ne.vp(this._debounceDuration),o=()=>{this._rangeUpdateTriggerPromise=i.trigger((()=>this.updateRanges()),this._debounceDuration)},r=new ne.vp(0),s=e=>{this._rangeSyncTriggerPromise=r.trigger((()=>this._syncRanges(e)))};this._localToDispose.add(this._editor.onDidChangeCursorPosition((()=>{o()}))),this._localToDispose.add(this._editor.onDidChangeModelContent((e=>{if(!this._ignoreChangeEvent&&this._currentDecorations.length>0){const n=t.getDecorationRange(this._currentDecorations[0]);if(n&&e.changes.every((e=>n.intersectRanges(e.range))))return void s(this._currentDecorations)}o()}))),this._localToDispose.add({dispose:()=>{i.cancel(),r.cancel()}}),this.updateRanges()}_syncRanges(e){if(!this._editor.hasModel()||e!==this._currentDecorations||0===e.length)return;const t=this._editor.getModel(),n=t.getDecorationRange(e[0]);if(!n||n.startLineNumber!==n.endLineNumber)return this.clearRanges();const i=t.getValueInRange(n);if(this._currentWordPattern){const e=i.match(this._currentWordPattern);if((e?e[0].length:0)!==i.length)return this.clearRanges()}let o=[];for(let n=1,r=e.length;n1)return void this.clearRanges();const i=this._editor.getModel(),o=i.getVersionId();if(this._currentRequestPosition&&this._currentRequestModelVersion===o){if(n.equals(this._currentRequestPosition))return;if(this._currentDecorations&&this._currentDecorations.length>0){const e=i.getDecorationRange(this._currentDecorations[0]);if(e&&e.containsPosition(n))return}}this._currentRequestPosition=n,this._currentRequestModelVersion=o;const r=(0,ne.PG)((t=>ke(this,void 0,void 0,(function*(){try{const s=yield Oe(i,n,t);if(r!==this._currentRequest)return;if(this._currentRequest=null,o!==i.getVersionId())return;let a=[];(null==s?void 0:s.ranges)&&(a=s.ranges),this._currentWordPattern=(null==s?void 0:s.wordPattern)||this._languageWordPattern;let c=!1;for(let e=0,t=a.length;e({range:t,options:e.DECORATION})));this._visibleContextKey.set(!0),this._currentDecorations=this._editor.deltaDecorations(this._currentDecorations,d)}catch(e){(0,ie.VV)(e)||(0,ie.dL)(e),this._currentRequest!==r&&this._currentRequest||this.clearRanges()}}))));return this._currentRequest=r,r}))}};Pe.ID="editor.contrib.linkedEditing",Pe.DECORATION=q.qx.register({description:"linked-editing",stickiness:0,className:Le}),Pe=De([xe(1,h.i6)],Pe);class Re extends c.R6{constructor(){super({id:"editor.action.linkedEditing",label:u.N("linkedEditing.label","Start Linked Editing"),alias:"Start Linked Editing",precondition:h.Ao.and(l.u.writable,l.u.hasRenameProvider),kbOpts:{kbExpr:l.u.editorTextFocus,primary:3132,weight:100}})}runCommand(e,t){const n=e.get(se.$),[i,o]=Array.isArray(t)&&t||[void 0,void 0];return L.o.isUri(i)&&ce.L.isIPosition(o)?n.openCodeEditor({resource:i},n.getActiveCodeEditor()).then((e=>{e&&(e.setPosition(o),e.invokeWithinContext((t=>(this.reportTelemetry(t,e),this.run(t,e)))))}),ie.dL):super.runCommand(e,t)}run(e,t){const n=Pe.get(t);return n?Promise.resolve(n.updateRanges(!0)):Promise.resolve()}}const Te=c._l.bindToContribution(Pe.get);function Oe(e,t,n){const i=de.id.ordered(e);return(0,ne.Ps)(i.map((i=>()=>ke(this,void 0,void 0,(function*(){try{return yield i.provideLinkedEditingRanges(e,t,n)}catch(e){return void(0,ie.Cp)(e)}})))),(e=>!!e&&Ie.Of(null==e?void 0:e.ranges)))}(0,c.fK)(new Te({id:"cancelLinkedEditingInput",precondition:we,handler:e=>e.clearRanges(),kbOpts:{kbExpr:l.u.editorTextFocus,weight:199,primary:9,secondary:[1033]}}));const Me=(0,ue.P6)("editor.linkedEditingBackground",{dark:ye.Il.fromHex("#f00").transparent(.3),light:ye.Il.fromHex("#f00").transparent(.3),hc:ye.Il.fromHex("#f00").transparent(.3)},u.N("editorLinkedEditingBackground","Background color when the editor auto renames on type."));(0,he.Ic)(((e,t)=>{const n=e.getColor(Me);n&&t.addRule(`.monaco-editor .${Le} { background: ${n}; border-left-color: ${n}; }`)})),(0,c.sb)("_executeLinkedEditingProvider",((e,t)=>Oe(e,t,k.T.None))),(0,c._K)(Pe.ID,Pe),(0,c.Qr)(Re);n(53332),n(51518),n(75723),n(29997),n(71925),n(19257),n(53346);var Ae=n(95830);class Ne extends c.R6{constructor(){super({id:"editor.action.forceRetokenize",label:u.N("forceRetokenize","Developer: Force Retokenize"),alias:"Developer: Force Retokenize",precondition:void 0})}run(e,t){if(!t.hasModel())return;const n=t.getModel();n.resetTokenization();const i=new Ae.G(!0);n.forceTokenization(n.getLineCount()),i.stop(),console.log(`tokenization took ${i.elapsed()}`)}}(0,c.Qr)(Ne);n(6410);var Ee=n(9365),ze=n(94726),qe=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},je=function(e,t){return function(n,i){t(n,i,e)}},Ue=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function a(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((i=i.apply(e,t||[])).next())}))};const Ve="ignoreUnusualLineTerminators";let He=class extends I.JT{constructor(e,t,n){super(),this._editor=e,this._dialogService=t,this._codeEditorService=n,this._config=this._editor.getOption(112),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(112)&&(this._config=this._editor.getOption(112),this._checkForUnusualLineTerminators())}))),this._register(this._editor.onDidChangeModel((()=>{this._checkForUnusualLineTerminators()}))),this._register(this._editor.onDidChangeModelContent((e=>{e.isUndoing||this._checkForUnusualLineTerminators()})))}_checkForUnusualLineTerminators(){return Ue(this,void 0,void 0,(function*(){if("off"===this._config)return;if(!this._editor.hasModel())return;const e=this._editor.getModel();if(!e.mightContainUnusualLineTerminators())return;const t=function(e,t){return e.getModelProperty(t.uri,Ve)}(this._codeEditorService,e);if(!0===t)return;if(this._editor.getOption(80))return;if("auto"===this._config)return void e.removeUnusualLineTerminators(this._editor.getSelections());(yield this._dialogService.confirm({title:u.N("unusualLineTerminators.title","Unusual Line Terminators"),message:u.N("unusualLineTerminators.message","Detected unusual line terminators"),detail:u.N("unusualLineTerminators.detail","The file '{0}' contains one or more unusual line terminator characters, like Line Separator (LS) or Paragraph Separator (PS).\n\nIt is recommended to remove them from the file. This can be configured via `editor.unusualLineTerminators`.",(0,Ee.EZ)(e.uri)),primaryButton:u.N("unusualLineTerminators.fix","Remove Unusual Line Terminators"),secondaryButton:u.N("unusualLineTerminators.ignore","Ignore")})).confirmed?e.removeUnusualLineTerminators(this._editor.getSelections()):function(e,t,n){e.setModelProperty(t.uri,Ve,n)}(this._codeEditorService,e,!0)}))}};He.ID="editor.contrib.unusualLineTerminatorsDetector",He=qe([je(1,ze.S),je(2,se.$)],He),(0,c._K)(He.ID,He);var Fe=n(26757),Qe=n(17539),Ke=n(32981),We=n(93965),$e=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},Be=function(e,t){return function(n,i){t(n,i,e)}};let Ye=class extends I.JT{constructor(e,t,n,i){super(),this._modelService=t,this._themeService=n,this._configurationService=i,this._editor=e,this._tokenizeViewport=new ne.pY((()=>this._tokenizeViewportNow()),100),this._outstandingRequests=[],this._register(this._editor.onDidScrollChange((()=>{this._tokenizeViewport.schedule()}))),this._register(this._editor.onDidChangeModel((()=>{this._cancelAll(),this._tokenizeViewport.schedule()}))),this._register(this._editor.onDidChangeModelContent((e=>{this._cancelAll(),this._tokenizeViewport.schedule()}))),this._register(de.K7.onDidChange((()=>{this._cancelAll(),this._tokenizeViewport.schedule()}))),this._register(this._configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration(Qe.e3)&&(this._cancelAll(),this._tokenizeViewport.schedule())}))),this._register(this._themeService.onDidColorThemeChange((()=>{this._cancelAll(),this._tokenizeViewport.schedule()})))}_cancelAll(){for(const e of this._outstandingRequests)e.cancel();this._outstandingRequests=[]}_removeOutstandingRequest(e){for(let t=0,n=this._outstandingRequests.length;tthis._requestRange(e,t))))}_requestRange(e,t){const n=e.getVersionId(),i=(0,ne.PG)((n=>Promise.resolve((0,Fe.OG)(e,t,n))));return i.then((i=>{if(!i||!i.tokens||e.isDisposed()||e.getVersionId()!==n)return;const{provider:o,tokens:r}=i,s=this._modelService.getSemanticTokensProviderStyling(o);e.setPartialSemanticTokens(t,(0,Ke.h)(r,s,e.getLanguageId()))})).then((()=>this._removeOutstandingRequest(i)),(()=>this._removeOutstandingRequest(i))),i}};Ye.ID="editor.contrib.viewportSemanticTokens",Ye=$e([Be(1,P.q),Be(2,he.XE),Be(3,We.Ui)],Ye),(0,c._K)(Ye.ID,Ye);n(29111),n(63618),n(48608);var Xe=n(5530),Je=(n(94592),n(65902),n(45547),n(74591),n(44650)),Ge=n(82825),Ze=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},et=function(e,t){return function(n,i){t(n,i,e)}};let tt=class e{constructor(e){this.quickInputService=e,this.registry=Je.B.as(Ge.IP.Quickaccess)}provide(t){const n=new I.SL;n.add(t.onDidAccept((()=>{const[e]=t.selectedItems;e&&this.quickInputService.quickAccess.show(e.prefix,{preserveValue:!0})}))),n.add(t.onDidChangeValue((t=>{const n=this.registry.getQuickAccessProvider(t.substr(e.PREFIX.length));n&&n.prefix&&n.prefix!==e.PREFIX&&this.quickInputService.quickAccess.show(n.prefix,{preserveValue:!0})})));const{editorProviders:i,globalProviders:o}=this.getQuickAccessProviders();return t.items=0===i.length||0===o.length?[...0===i.length?o:i]:[{label:(0,u.N)("globalCommands","global commands"),type:"separator"},...o,{label:(0,u.N)("editorCommands","editor commands"),type:"separator"},...i],n}getQuickAccessProviders(){const t=[],n=[];for(const i of this.registry.getQuickAccessProviders().sort(((e,t)=>e.prefix.localeCompare(t.prefix))))if(i.prefix!==e.PREFIX)for(const e of i.helpEntries){const o=e.prefix||i.prefix,r=o||"…";(e.needsEditor?n:t).push({prefix:o,label:r,ariaLabel:(0,u.N)("helpPickAriaLabel","{0}, {1}",r,e.description),description:e.description})}return{editorProviders:n,globalProviders:t}}};tt.PREFIX="?",tt=Ze([et(0,V.eJ)],tt),Je.B.as(Ge.IP.Quickaccess).registerQuickAccessProvider({ctor:tt,prefix:"",helpEntries:[{description:Xe.ld.helpQuickAccessActionLabel,needsEditor:!0}]});n(65586),n(83861),n(63435),n(73590),n(6181)}}]);
\ No newline at end of file
+(self.webpackChunk=self.webpackChunk||[]).push([[71448],{71448:function(e,t,n){var i;self.MonacoEnvironment=(i={editorWorkerService:"editor.worker.js",css:"css.worker.js",html:"html.worker.js",json:"json.worker.js",typescript:"ts.worker.js",javascript:"ts.worker.js",less:"css.worker.js",scss:"css.worker.js",handlebars:"html.worker.js",razor:"html.worker.js"},{globalAPI:!1,getWorkerUrl:function(e,t){var o=n.p,r=(o?o.replace(/\/$/,"")+"/":"")+i[t];if(/^((http:)|(https:)|(file:)|(\/\/))/.test(r)){var s=String(window.location),a=s.substr(0,s.length-window.location.hash.length-window.location.search.length-window.location.pathname.length);if(r.substring(0,a.length)!==a){/^(\/\/)/.test(r)&&(r=window.location.protocol+r);var c=new Blob(["/*"+t+'*/importScripts("'+r+'");'],{type:"application/javascript"});return URL.createObjectURL(c)}}return r}}),n(65902),n(17525),n(32838),n(84826),n(60066),n(20822),n(54807),n(88297),n(46343),n(4105),n(12529),n(68305),n(8370),n(34064),n(85628),n(50741),n(65586),n(17645),n(68531),n(76469),n(45547),n(63478),n(74591),n(26313),n(53332),n(51518),n(75723),n(63435),n(83861),n(73590),n(29997),n(71925),n(19257),n(53346),n(6181),n(6410),n(28630),n(29111),n(63618),n(48608),e.exports=n(92940),n(92973),n(72773),n(30219),n(10755),n(74121),n(77973),n(27246),n(82961),n(19959),n(23347),n(17323),n(24607),n(90130),n(72185),n(40882),n(14349),n(10715),n(88756),n(67748),n(30141),n(44115),n(65588),n(42716),n(83135),n(91067),n(63886),n(44865),n(41495),n(12076),n(38516),n(18504),n(28593),n(43069),n(50185),n(11745),n(96025),n(85713),n(98836),n(18625),n(59972),n(5512),n(59066),n(73363),n(5769),n(95630),n(12189),n(78605),n(17728),n(94503),n(66857),n(38341),n(61010),n(1099),n(49478),n(32985),n(72088),n(69746),n(94912),n(60032),n(24571),n(55670),n(77777),n(39393),n(81147),n(35550)},92940:function(e,t,n){"use strict";n.r(t),n.d(t,{CancellationTokenSource:function(){return i.CancellationTokenSource},Emitter:function(){return i.Emitter},KeyCode:function(){return i.KeyCode},KeyMod:function(){return i.KeyMod},MarkerSeverity:function(){return i.MarkerSeverity},MarkerTag:function(){return i.MarkerTag},Position:function(){return i.Position},Range:function(){return i.Range},Selection:function(){return i.Selection},SelectionDirection:function(){return i.SelectionDirection},Token:function(){return i.Token},Uri:function(){return i.Uri},__esModule:function(){return i.__esModule},editor:function(){return i.editor},languages:function(){return i.languages}});n(55670),n(24607),n(42716),n(67748);var i=n(2550),o=(n(92973),n(72773),n(30219),n(10755),n(98909));(0,o.H)({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:function(){return n.e(74014).then(n.bind(n,74014))}});n(74121),n(77973),n(27246),n(82961),n(19959),n(23347),n(17323);(0,o.H)({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:function(){return n.e(18963).then(n.bind(n,18963))}});n(90130);(0,o.H)({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:function(){return n.e(78302).then(n.bind(n,78302))}}),(0,o.H)({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:function(){return n.e(51646).then(n.bind(n,51646))}}),(0,o.H)({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:function(){return n.e(70981).then(n.bind(n,70981))}});n(72185),n(40882),n(14349),n(10715);(0,o.H)({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:function(){return n.e(15290).then(n.bind(n,15290))}});n(88756),n(30141),n(44115),n(65588);(0,o.H)({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:function(){return n.e(15631).then(n.bind(n,15631))}});n(83135),n(91067);(0,o.H)({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:function(){return n.e(80629).then(n.bind(n,80629))}});n(63886);(0,o.H)({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:function(){return n.e(86774).then(n.bind(n,61880))}}),(0,o.H)({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:function(){return n.e(30741).then(n.bind(n,30741))}});n(44865),n(41495),n(12076),n(38516),n(18504),n(28593),n(43069),n(50185),n(11745),n(96025);(0,o.H)({id:"pla",extensions:[".pla"],loader:function(){return n.e(12386).then(n.bind(n,12386))}});n(85713),n(98836),n(18625);(0,o.H)({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:function(){return n.e(36634).then(n.bind(n,36634))}});n(59972),n(5512);(0,o.H)({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:function(){return n.e(3133).then(n.bind(n,3133))}});n(59066),n(73363),n(5769),n(95630),n(12189),n(78605),n(17728),n(94503),n(35550),n(66857),n(38341),n(61010),n(1099),n(49478);(0,o.H)({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:function(){return n.e(95679).then(n.bind(n,95679))}});n(32985),n(72088),n(69746);(0,o.H)({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:function(){return n.e(39252).then(n.bind(n,39252))}}),(0,o.H)({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:function(){return n.e(39252).then(n.bind(n,39252))}});n(94912),n(60032),n(24571),n(77777),n(39393),n(81147),n(46343),n(55806),n(26782),n(46810);var r=n(16399),s=n(94186),a=n(52411),c=n(4514),d=n(17551),l=n(68987),u=n(13268),h=n(90689),g=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},p=function(e,t){return function(n,i){t(n,i,e)}},f=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function a(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((i=i.apply(e,t||[])).next())}))};const _=new h.uy("selectionAnchorSet",!1);let m=class e{constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=_.bindTo(t),this.modelChangeListener=e.onDidChangeModel((()=>this.selectionAnchorSetContextKey.reset()))}static get(t){return t.getContribution(e.ID)}setSelectionAnchor(){if(this.editor.hasModel()){const e=this.editor.getPosition(),t=this.decorationId?[this.decorationId]:[],n=this.editor.deltaDecorations(t,[{range:d.Y.fromPositions(e,e),options:{description:"selection-anchor",stickiness:1,hoverMessage:(new s.W5).appendText((0,u.N)("selectionAnchor","Selection Anchor")),className:"selection-anchor"}}]);this.decorationId=n[0],this.selectionAnchorSetContextKey.set(!!this.decorationId),(0,r.Z9)((0,u.N)("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){const t=this.editor.getPosition();this.editor.setSelection(d.Y.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){this.decorationId&&(this.editor.deltaDecorations([this.decorationId],[]),this.decorationId=void 0,this.selectionAnchorSetContextKey.set(!1))}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};m.ID="editor.contrib.selectionAnchorController",m=g([p(1,h.i6)],m);class b extends c.R6{constructor(){super({id:"editor.action.setSelectionAnchor",label:(0,u.N)("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:l.u.editorTextFocus,primary:(0,a.gx)(2089,2080),weight:100}})}run(e,t){return f(this,void 0,void 0,(function*(){m.get(t).setSelectionAnchor()}))}}class v extends c.R6{constructor(){super({id:"editor.action.goToSelectionAnchor",label:(0,u.N)("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:_})}run(e,t){return f(this,void 0,void 0,(function*(){m.get(t).goToSelectionAnchor()}))}}class S extends c.R6{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:(0,u.N)("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:_,kbOpts:{kbExpr:l.u.editorTextFocus,primary:(0,a.gx)(2089,2089),weight:100}})}run(e,t){return f(this,void 0,void 0,(function*(){m.get(t).selectFromAnchorToCursor()}))}}class C extends c.R6{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:(0,u.N)("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:_,kbOpts:{kbExpr:l.u.editorTextFocus,primary:9,weight:100}})}run(e,t){return f(this,void 0,void 0,(function*(){m.get(t).cancelSelectionAnchor()}))}}(0,c._K)(m.ID,m),(0,c.Qr)(b),(0,c.Qr)(v),(0,c.Qr)(S),(0,c.Qr)(C);n(17525),n(32838),n(28630),n(84826),n(60066),n(20822);var I=n(69323),y=n(17373),D=(n(99851),n(76469));class x extends I.JT{constructor(e){super(),this._editor=e,this._register(e.onMouseDown((e=>this.onMouseDown(e))))}dispose(){super.dispose()}onMouseDown(e){var t;if(6!==e.target.type)return;if(![...(null===(t=e.target.element)||void 0===t?void 0:t.classList.values())||[]].find((e=>e.startsWith("ced-colorBox"))))return;if(!e.target.range)return;const n=this._editor.getContribution(D.ModesHoverController.ID);if(!n.isColorPickerVisible()){const t=new y.e(e.target.range.startLineNumber,e.target.range.startColumn+1,e.target.range.endLineNumber,e.target.range.endColumn+1);n.showContentHover(t,0,!1)}}}x.ID="editor.contrib.colorContribution",(0,c._K)(x.ID,x);n(54807),n(88297),n(4105),n(12529),n(68305),n(8370),n(34064),n(85628);var k=n(96283),w=n(72999),L=n(5472),P=n(12027),R=n(16862),T=n(16903),O=n(35884),M=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function a(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((i=i.apply(e,t||[])).next())}))};function A(e,t,n){return M(this,void 0,void 0,(function*(){const i=yield T.C3.create(e,n);return t?i.asListOfDocumentSymbols():i.getTopLevelSymbols()}))}O.P.registerCommand("_executeDocumentSymbolProvider",(function(e,...t){return M(this,void 0,void 0,(function*(){const[n]=t;(0,w.p_)(L.o.isUri(n));const i=e.get(P.q).getModel(n);if(i)return A(i,!1,k.T.None);const o=yield e.get(R.S).createModelReference(n);try{return yield A(o.object.textEditorModel,!1,k.T.None)}finally{o.dispose()}}))}));n(79389),n(17645),n(68531),n(50741);var N=n(82983),E=n(91167),z=n(44124),q=n(31276),j=n(73468),U=n(44765),V=n(96148);function H(e,t,n,i){if(1===e.getLineCount()&&1===e.getLineMaxColumn(1))return[];const o=j.zu.getIndentationRules(e.getLanguageId());if(!o)return[];for(n=Math.min(n,e.getLineCount());t<=n&&o.unIndentedLinePattern;){let n=e.getLineContent(t);if(!o.unIndentedLinePattern.test(n))break;t++}if(t>n-1)return[];const{tabSize:r,indentSize:s,insertSpaces:a}=e.getOptions(),c=(e,t)=>(t=t||1,E.U.shiftIndent(e,e.length+t,r,s,a)),l=(e,t)=>(t=t||1,E.U.unshiftIndent(e,e.length+t,r,s,a));let u,h=[],g=e.getLineContent(t),p=g;if(null!=i){u=i;let e=N.V8(g);p=u+g.substring(e.length),o.decreaseIndentPattern&&o.decreaseIndentPattern.test(p)&&(u=l(u),p=u+g.substring(e.length)),g!==p&&h.push(z.h.replaceMove(new d.Y(t,1,t,e.length+1),q.yO.normalizeIndentation(u,s,a)))}else u=N.V8(g);let f=u;o.increaseIndentPattern&&o.increaseIndentPattern.test(p)?(f=c(f),u=c(u)):o.indentNextLinePattern&&o.indentNextLinePattern.test(p)&&(f=c(f));for(let i=++t;i<=n;i++){let t=e.getLineContent(i),n=N.V8(t),r=f+t.substring(n.length);o.decreaseIndentPattern&&o.decreaseIndentPattern.test(r)&&(f=l(f),u=l(u)),n!==f&&h.push(z.h.replaceMove(new d.Y(i,1,i,n.length+1),q.yO.normalizeIndentation(f,s,a))),o.unIndentedLinePattern&&o.unIndentedLinePattern.test(t)||(o.increaseIndentPattern&&o.increaseIndentPattern.test(r)?(u=c(u),f=u):f=o.indentNextLinePattern&&o.indentNextLinePattern.test(r)?c(f):u)}return h}class F extends c.R6{constructor(){super({id:F.ID,label:u.N("indentationToSpaces","Convert Indentation to Spaces"),alias:"Convert Indentation to Spaces",precondition:l.u.writable})}run(e,t){let n=t.getModel();if(!n)return;let i=n.getOptions(),o=t.getSelection();if(!o)return;const r=new ee(o,i.tabSize);t.pushUndoStop(),t.executeCommands(this.id,[r]),t.pushUndoStop(),n.updateOptions({insertSpaces:!0})}}F.ID="editor.action.indentationToSpaces";class Q extends c.R6{constructor(){super({id:Q.ID,label:u.N("indentationToTabs","Convert Indentation to Tabs"),alias:"Convert Indentation to Tabs",precondition:l.u.writable})}run(e,t){let n=t.getModel();if(!n)return;let i=n.getOptions(),o=t.getSelection();if(!o)return;const r=new te(o,i.tabSize);t.pushUndoStop(),t.executeCommands(this.id,[r]),t.pushUndoStop(),n.updateOptions({insertSpaces:!1})}}Q.ID="editor.action.indentationToTabs";class K extends c.R6{constructor(e,t){super(t),this.insertSpaces=e}run(e,t){const n=e.get(V.eJ),i=e.get(P.q);let o=t.getModel();if(!o)return;const r=i.getCreationOptions(o.getLanguageId(),o.uri,o.isForSimpleWidget),s=[1,2,3,4,5,6,7,8].map((e=>({id:e.toString(),label:e.toString(),description:e===r.tabSize?u.N("configuredTabSize","Configured Tab Size"):void 0}))),a=Math.min(o.getOptions().tabSize-1,7);setTimeout((()=>{n.pick(s,{placeHolder:u.N({key:"selectTabWidth",comment:["Tab corresponds to the tab key"]},"Select Tab Size for Current File"),activeItem:s[a]}).then((e=>{e&&o&&!o.isDisposed()&&o.updateOptions({tabSize:parseInt(e.label,10),insertSpaces:this.insertSpaces})}))}),50)}}class W extends K{constructor(){super(!1,{id:W.ID,label:u.N("indentUsingTabs","Indent Using Tabs"),alias:"Indent Using Tabs",precondition:void 0})}}W.ID="editor.action.indentUsingTabs";class $ extends K{constructor(){super(!0,{id:$.ID,label:u.N("indentUsingSpaces","Indent Using Spaces"),alias:"Indent Using Spaces",precondition:void 0})}}$.ID="editor.action.indentUsingSpaces";class B extends c.R6{constructor(){super({id:B.ID,label:u.N("detectIndentation","Detect Indentation from Content"),alias:"Detect Indentation from Content",precondition:void 0})}run(e,t){const n=e.get(P.q);let i=t.getModel();if(!i)return;const o=n.getCreationOptions(i.getLanguageId(),i.uri,i.isForSimpleWidget);i.detectIndentation(o.insertSpaces,o.tabSize)}}B.ID="editor.action.detectIndentation";class Y extends c.R6{constructor(){super({id:"editor.action.reindentlines",label:u.N("editor.reindentlines","Reindent Lines"),alias:"Reindent Lines",precondition:l.u.writable})}run(e,t){let n=t.getModel();if(!n)return;let i=H(n,1,n.getLineCount());i.length>0&&(t.pushUndoStop(),t.executeEdits(this.id,i),t.pushUndoStop())}}class X extends c.R6{constructor(){super({id:"editor.action.reindentselectedlines",label:u.N("editor.reindentselectedlines","Reindent Selected Lines"),alias:"Reindent Selected Lines",precondition:l.u.writable})}run(e,t){let n=t.getModel();if(!n)return;let i=t.getSelections();if(null===i)return;let o=[];for(let e of i){let t=e.startLineNumber,i=e.endLineNumber;if(t!==i&&1===e.endColumn&&i--,1===t){if(t===i)continue}else t--;let r=H(n,t,i);o.push(...r)}o.length>0&&(t.pushUndoStop(),t.executeEdits(this.id,o),t.pushUndoStop())}}class J{constructor(e,t){this._initialSelection=t,this._edits=[],this._selectionId=null;for(let t of e)t.range&&"string"==typeof t.text&&this._edits.push(t)}getEditOperations(e,t){for(let e of this._edits)t.addEditOperation(y.e.lift(e.range),e.text);let n=!1;Array.isArray(this._edits)&&1===this._edits.length&&this._initialSelection.isEmpty()&&(this._edits[0].range.startColumn===this._initialSelection.endColumn&&this._edits[0].range.startLineNumber===this._initialSelection.endLineNumber?(n=!0,this._selectionId=t.trackSelection(this._initialSelection,!0)):this._edits[0].range.endColumn===this._initialSelection.startColumn&&this._edits[0].range.endLineNumber===this._initialSelection.startLineNumber&&(n=!0,this._selectionId=t.trackSelection(this._initialSelection,!1))),n||(this._selectionId=t.trackSelection(this._initialSelection))}computeCursorState(e,t){return t.getTrackedSelection(this._selectionId)}}class G{constructor(e){this.callOnDispose=new I.SL,this.callOnModel=new I.SL,this.editor=e,this.callOnDispose.add(e.onDidChangeConfiguration((()=>this.update()))),this.callOnDispose.add(e.onDidChangeModel((()=>this.update()))),this.callOnDispose.add(e.onDidChangeModelLanguage((()=>this.update())))}update(){this.callOnModel.clear(),this.editor.getOption(9)<4||this.editor.getOption(47)||this.editor.hasModel()&&this.callOnModel.add(this.editor.onDidPaste((({range:e})=>{this.trigger(e)})))}trigger(e){let t=this.editor.getSelections();if(null===t||t.length>1)return;const n=this.editor.getModel();if(!n)return;if(!n.isCheapToTokenize(e.getStartPosition().lineNumber))return;const i=this.editor.getOption(9),{tabSize:o,indentSize:r,insertSpaces:s}=n.getOptions();let a=[],c={shiftIndent:e=>E.U.shiftIndent(e,e.length+1,o,r,s),unshiftIndent:e=>E.U.unshiftIndent(e,e.length+1,o,r,s)},d=e.startLineNumber;for(;d<=e.endLineNumber&&this.shouldIgnoreLine(n,d);)d++;if(d>e.endLineNumber)return;let l=n.getLineContent(d);if(!/\S/.test(l.substring(0,e.startColumn-1))){const e=j.zu.getGoodIndentForLine(i,n,n.getLanguageId(),d,c);if(null!==e){let t=N.V8(l),i=U.Y(e,o);if(i!==U.Y(t,o)){let e=U.J(i,o,s);a.push({range:new y.e(d,1,d,t.length+1),text:e}),l=e+l.substr(t.length)}else{let e=j.zu.getIndentMetadata(n,d);if(0===e||8===e)return}}}const u=d;for(;dn.getLineTokens(e),getLanguageId:()=>n.getLanguageId(),getLanguageIdAtPosition:(e,t)=>n.getLanguageIdAtPosition(e,t),getLineContent:e=>e===u?l:n.getLineContent(e)},r=j.zu.getGoodIndentForLine(i,t,n.getLanguageId(),d+1,c);if(null!==r){let t=U.Y(r,o),i=U.Y(N.V8(n.getLineContent(d+1)),o);if(t!==i){let r=t-i;for(let t=d+1;t<=e.endLineNumber;t++){let e=n.getLineContent(t),i=N.V8(e),c=U.Y(i,o)+r,d=U.J(c,o,s);d!==i&&a.push({range:new y.e(t,1,t,i.length+1),text:d})}}}}if(a.length>0){this.editor.pushUndoStop();let e=new J(a,this.editor.getSelection());this.editor.executeCommand("autoIndentOnPaste",e),this.editor.pushUndoStop()}}shouldIgnoreLine(e,t){e.forceTokenization(t);let n=e.getLineFirstNonWhitespaceColumn(t);if(0===n)return!0;let i=e.getLineTokens(t);if(i.getCount()>0){let e=i.findTokenIndexAtOffset(n);if(e>=0&&1===i.getStandardTokenType(e))return!0}return!1}dispose(){this.callOnDispose.dispose(),this.callOnModel.dispose()}}function Z(e,t,n,i){if(1===e.getLineCount()&&1===e.getLineMaxColumn(1))return;let o="";for(let e=0;e=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},pe=function(e,t){return function(n,i){t(n,i,e)}},fe=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function a(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((i=i.apply(e,t||[])).next())}))};class _e{constructor(){this._data=new re.Y9}push(e,t){const n=this._data.get(e.uri);void 0===n?this._data.set(e.uri,new Set([t])):n.add(t)}pop(e,t){const n=this._data.get(e.uri);n&&(n.delete(t),0===n.size&&this._data.delete(e.uri))}has(e,t){var n;return Boolean(null===(n=this._data.get(e.uri))||void 0===n?void 0:n.has(t))}}function me(e,t,n,i){return fe(this,void 0,void 0,(function*(){const o=[],r=de.mX.ordered(e).reverse().map((r=>t.map((t=>fe(this,void 0,void 0,(function*(){try{n.push(e,r);const s=yield r.provideInlayHints(e,t,i);(null==s?void 0:s.length)&&o.push(s.filter((e=>t.containsPosition(e.position))))}catch(e){(0,ie.Cp)(e)}finally{n.pop(e,r)}}))))));return yield Promise.all(r.flat()),o.flat().sort(((e,t)=>ce.L.compare(e.position,t.position)))}))}class be{constructor(){this._entries=new re.z6(50)}get(e){const t=be._key(e);return this._entries.get(t)}set(e,t){const n=be._key(e);this._entries.set(n,t)}static _key(e){return`${e.uri.toString()}/${e.getVersionId()}`}}let ve=class e{constructor(t,n){this._editor=t,this._codeEditorService=n,this._decorationOwnerId=++e._decorationOwnerIdPool,this._disposables=new I.SL,this._sessionDisposables=new I.SL,this._getInlayHintsDelays=new le.Y(de.mX,25,500),this._cache=new be,this._decorations=new Map,this._disposables.add(de.mX.onDidChange((()=>this._update()))),this._disposables.add(t.onDidChangeModel((()=>this._update()))),this._disposables.add(t.onDidChangeModelLanguage((()=>this._update()))),this._disposables.add(t.onDidChangeConfiguration((e=>{e.hasChanged(125)&&this._update()}))),this._update()}dispose(){this._sessionDisposables.dispose(),this._removeAllDecorations(),this._disposables.dispose()}_update(){if(this._sessionDisposables.clear(),this._removeAllDecorations(),!this._editor.getOption(125).enabled)return;const e=this._editor.getModel();if(!e||!de.mX.has(e))return;const t=this._cache.get(e);t&&this._updateHintsDecorators([e.getFullModelRange()],t);const n=new _e,i=new ne.pY((()=>fe(this,void 0,void 0,(function*(){const t=Date.now(),o=new k.A;this._sessionDisposables.add((0,I.OF)((()=>o.dispose(!0))));const r=this._getHintsRanges(),s=yield me(e,r,n,o.token);i.delay=this._getInlayHintsDelays.update(e,Date.now()-t),o.token.isCancellationRequested||(this._updateHintsDecorators(r,s),this._cache.set(e,Array.from(this._decorations.values()).map((e=>e.hint))))}))),this._getInlayHintsDelays.get(e));this._sessionDisposables.add(i),this._sessionDisposables.add(this._editor.onDidChangeModelContent((()=>i.schedule()))),this._disposables.add(this._editor.onDidScrollChange((()=>i.schedule()))),i.schedule();const o=new I.SL;this._sessionDisposables.add(o);for(const t of de.mX.all(e))"function"==typeof t.onDidChangeInlayHints&&o.add(t.onDidChangeInlayHints((()=>{n.has(e,t)||i.schedule()})))}_getHintsRanges(){const e=this._editor.getModel(),t=this._editor.getVisibleRangesPlusViewportAboveBelow(),n=[];for(const i of t.sort(y.e.compareRangesUsingStarts)){const t=e.validateRange(new y.e(i.startLineNumber-30,i.startColumn,i.endLineNumber+30,i.endColumn));0!==n.length&&y.e.areIntersectingOrTouching(n[n.length-1],t)?n[n.length-1]=y.e.plusRange(n[n.length-1],t):n.push(t)}return n}_updateHintsDecorators(e,t){const{fontSize:n,fontFamily:i}=this._getLayoutInfo(),o=this._editor.getModel(),r=[],s=[],a="--code-editorInlayHintsFontFamily";this._editor.getContainerDomNode().style.setProperty(a,i);for(const e of t){const{text:t,position:i,whitespaceBefore:c,whitespaceAfter:d}=e,l=c?n/3|0:0,u=d?n/3|0:0,h={contentText:Ce(t),fontSize:`${n}px`,margin:`0px ${u}px 0px ${l}px`,fontFamily:`var(${a}), ${ae.hL.fontFamily}`,padding:`1px ${0|Math.max(1,n/4)}px`,borderRadius:(n/4|0)+"px",verticalAlign:"middle",backgroundColor:(0,he.EN)(ue.Pp),color:(0,he.EN)(ue.VV)};e.kind===de.gl.Parameter?(h.backgroundColor=(0,he.EN)(ue.ph),h.color=(0,he.EN)(ue.HC)):e.kind===de.gl.Type&&(h.backgroundColor=(0,he.EN)(ue.bK),h.color=(0,he.EN)(ue.hX));let g={beforeInjectedText:Object.assign(Object.assign({},h),{affectsLetterSpacing:!0})},p=y.e.fromPositions(i),f=o.getWordAtPosition(i),_=!1;f&&(f.endColumn===i.column?(g.afterInjectedText=g.beforeInjectedText,g.beforeInjectedText=void 0,_=!0,p=Se(f,i.lineNumber)):f.startColumn===i.column&&(_=!0,p=Se(f,i.lineNumber)));const m="inlayHints-"+(0,oe.vp)(g).toString(16);this._codeEditorService.registerDecorationType("inlay-hints-controller",m,g,void 0,this._editor),r.push(m);if(s.push({range:p,options:Object.assign(Object.assign({},this._codeEditorService.resolveDecorationOptions(m,!0)),{showIfCollapsed:!_,stickiness:0})})>1500)break}const c=[];for(const t of e)for(const{id:e}of o.getDecorationsInRange(t,this._decorationOwnerId,!0)){const t=this._decorations.get(e);t&&(c.push(e),this._codeEditorService.removeDecorationType(t.decorationTypeId),this._decorations.delete(e))}const d=o.deltaDecorations(c,s,this._decorationOwnerId);for(let e=0;et)&&(n=.9*t|0);return{fontSize:n,fontFamily:e.fontFamily||this._editor.getOption(42)}}_removeAllDecorations(){this._editor.deltaDecorations(Array.from(this._decorations.keys()),[]);for(let e of this._decorations.values())this._codeEditorService.removeDecorationType(e.decorationTypeId);this._decorations.clear()}};function Se(e,t){return new y.e(t,e.startColumn,t,e.endColumn)}function Ce(e){return e.replace(/[ \t]/g," ")}ve.ID="editor.contrib.InlayHints",ve._decorationOwnerIdPool=0,ve=ge([pe(1,se.$)],ve),(0,c._K)(ve.ID,ve),O.P.registerCommand("_executeInlayHintProvider",((e,...t)=>fe(void 0,void 0,void 0,(function*(){const[n,i]=t;(0,w.p_)(L.o.isUri(n)),(0,w.p_)(y.e.isIRange(i));const o=yield e.get(R.S).createModelReference(n);try{return yield me(o.object.textEditorModel,[y.e.lift(i)],new _e,k.T.None)}finally{o.dispose()}}))));n(63478),n(26313);var Ie=n(43506),ye=n(51737),De=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},xe=function(e,t){return function(n,i){t(n,i,e)}},ke=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function a(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((i=i.apply(e,t||[])).next())}))};const we=new h.uy("LinkedEditingInputVisible",!1),Le="linked-editing-decoration";let Pe=class e extends I.JT{constructor(e,t){super(),this._debounceDuration=200,this._localToDispose=this._register(new I.SL),this._editor=e,this._enabled=!1,this._visibleContextKey=we.bindTo(t),this._currentDecorations=[],this._languageWordPattern=null,this._currentWordPattern=null,this._ignoreChangeEvent=!1,this._localToDispose=this._register(new I.SL),this._rangeUpdateTriggerPromise=null,this._rangeSyncTriggerPromise=null,this._currentRequest=null,this._currentRequestPosition=null,this._currentRequestModelVersion=null,this._register(this._editor.onDidChangeModel((()=>this.reinitialize(!0)))),this._register(this._editor.onDidChangeConfiguration((e=>{(e.hasChanged(61)||e.hasChanged(81))&&this.reinitialize(!1)}))),this._register(de.id.onDidChange((()=>this.reinitialize(!1)))),this._register(this._editor.onDidChangeModelLanguage((()=>this.reinitialize(!0)))),this.reinitialize(!0)}static get(t){return t.getContribution(e.ID)}reinitialize(e){const t=this._editor.getModel(),n=null!==t&&(this._editor.getOption(61)||this._editor.getOption(81))&&de.id.has(t);if(n===this._enabled&&!e)return;if(this._enabled=n,this.clearRanges(),this._localToDispose.clear(),!n||null===t)return;this._languageWordPattern=j.zu.getWordDefinition(t.getLanguageId()),this._localToDispose.add(t.onDidChangeLanguageConfiguration((()=>{this._languageWordPattern=j.zu.getWordDefinition(t.getLanguageId())})));const i=new ne.vp(this._debounceDuration),o=()=>{this._rangeUpdateTriggerPromise=i.trigger((()=>this.updateRanges()),this._debounceDuration)},r=new ne.vp(0),s=e=>{this._rangeSyncTriggerPromise=r.trigger((()=>this._syncRanges(e)))};this._localToDispose.add(this._editor.onDidChangeCursorPosition((()=>{o()}))),this._localToDispose.add(this._editor.onDidChangeModelContent((e=>{if(!this._ignoreChangeEvent&&this._currentDecorations.length>0){const n=t.getDecorationRange(this._currentDecorations[0]);if(n&&e.changes.every((e=>n.intersectRanges(e.range))))return void s(this._currentDecorations)}o()}))),this._localToDispose.add({dispose:()=>{i.cancel(),r.cancel()}}),this.updateRanges()}_syncRanges(e){if(!this._editor.hasModel()||e!==this._currentDecorations||0===e.length)return;const t=this._editor.getModel(),n=t.getDecorationRange(e[0]);if(!n||n.startLineNumber!==n.endLineNumber)return this.clearRanges();const i=t.getValueInRange(n);if(this._currentWordPattern){const e=i.match(this._currentWordPattern);if((e?e[0].length:0)!==i.length)return this.clearRanges()}let o=[];for(let n=1,r=e.length;n1)return void this.clearRanges();const i=this._editor.getModel(),o=i.getVersionId();if(this._currentRequestPosition&&this._currentRequestModelVersion===o){if(n.equals(this._currentRequestPosition))return;if(this._currentDecorations&&this._currentDecorations.length>0){const e=i.getDecorationRange(this._currentDecorations[0]);if(e&&e.containsPosition(n))return}}this._currentRequestPosition=n,this._currentRequestModelVersion=o;const r=(0,ne.PG)((t=>ke(this,void 0,void 0,(function*(){try{const s=yield Oe(i,n,t);if(r!==this._currentRequest)return;if(this._currentRequest=null,o!==i.getVersionId())return;let a=[];(null==s?void 0:s.ranges)&&(a=s.ranges),this._currentWordPattern=(null==s?void 0:s.wordPattern)||this._languageWordPattern;let c=!1;for(let e=0,t=a.length;e({range:t,options:e.DECORATION})));this._visibleContextKey.set(!0),this._currentDecorations=this._editor.deltaDecorations(this._currentDecorations,d)}catch(e){(0,ie.VV)(e)||(0,ie.dL)(e),this._currentRequest!==r&&this._currentRequest||this.clearRanges()}}))));return this._currentRequest=r,r}))}};Pe.ID="editor.contrib.linkedEditing",Pe.DECORATION=q.qx.register({description:"linked-editing",stickiness:0,className:Le}),Pe=De([xe(1,h.i6)],Pe);class Re extends c.R6{constructor(){super({id:"editor.action.linkedEditing",label:u.N("linkedEditing.label","Start Linked Editing"),alias:"Start Linked Editing",precondition:h.Ao.and(l.u.writable,l.u.hasRenameProvider),kbOpts:{kbExpr:l.u.editorTextFocus,primary:3132,weight:100}})}runCommand(e,t){const n=e.get(se.$),[i,o]=Array.isArray(t)&&t||[void 0,void 0];return L.o.isUri(i)&&ce.L.isIPosition(o)?n.openCodeEditor({resource:i},n.getActiveCodeEditor()).then((e=>{e&&(e.setPosition(o),e.invokeWithinContext((t=>(this.reportTelemetry(t,e),this.run(t,e)))))}),ie.dL):super.runCommand(e,t)}run(e,t){const n=Pe.get(t);return n?Promise.resolve(n.updateRanges(!0)):Promise.resolve()}}const Te=c._l.bindToContribution(Pe.get);function Oe(e,t,n){const i=de.id.ordered(e);return(0,ne.Ps)(i.map((i=>()=>ke(this,void 0,void 0,(function*(){try{return yield i.provideLinkedEditingRanges(e,t,n)}catch(e){return void(0,ie.Cp)(e)}})))),(e=>!!e&&Ie.Of(null==e?void 0:e.ranges)))}(0,c.fK)(new Te({id:"cancelLinkedEditingInput",precondition:we,handler:e=>e.clearRanges(),kbOpts:{kbExpr:l.u.editorTextFocus,weight:199,primary:9,secondary:[1033]}}));const Me=(0,ue.P6)("editor.linkedEditingBackground",{dark:ye.Il.fromHex("#f00").transparent(.3),light:ye.Il.fromHex("#f00").transparent(.3),hc:ye.Il.fromHex("#f00").transparent(.3)},u.N("editorLinkedEditingBackground","Background color when the editor auto renames on type."));(0,he.Ic)(((e,t)=>{const n=e.getColor(Me);n&&t.addRule(`.monaco-editor .${Le} { background: ${n}; border-left-color: ${n}; }`)})),(0,c.sb)("_executeLinkedEditingProvider",((e,t)=>Oe(e,t,k.T.None))),(0,c._K)(Pe.ID,Pe),(0,c.Qr)(Re);n(53332),n(51518),n(75723),n(29997),n(71925),n(19257),n(53346);var Ae=n(95830);class Ne extends c.R6{constructor(){super({id:"editor.action.forceRetokenize",label:u.N("forceRetokenize","Developer: Force Retokenize"),alias:"Developer: Force Retokenize",precondition:void 0})}run(e,t){if(!t.hasModel())return;const n=t.getModel();n.resetTokenization();const i=new Ae.G(!0);n.forceTokenization(n.getLineCount()),i.stop(),console.log(`tokenization took ${i.elapsed()}`)}}(0,c.Qr)(Ne);n(6410);var Ee=n(9365),ze=n(94726),qe=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},je=function(e,t){return function(n,i){t(n,i,e)}},Ue=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function a(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((i=i.apply(e,t||[])).next())}))};const Ve="ignoreUnusualLineTerminators";let He=class extends I.JT{constructor(e,t,n){super(),this._editor=e,this._dialogService=t,this._codeEditorService=n,this._config=this._editor.getOption(112),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(112)&&(this._config=this._editor.getOption(112),this._checkForUnusualLineTerminators())}))),this._register(this._editor.onDidChangeModel((()=>{this._checkForUnusualLineTerminators()}))),this._register(this._editor.onDidChangeModelContent((e=>{e.isUndoing||this._checkForUnusualLineTerminators()})))}_checkForUnusualLineTerminators(){return Ue(this,void 0,void 0,(function*(){if("off"===this._config)return;if(!this._editor.hasModel())return;const e=this._editor.getModel();if(!e.mightContainUnusualLineTerminators())return;const t=function(e,t){return e.getModelProperty(t.uri,Ve)}(this._codeEditorService,e);if(!0===t)return;if(this._editor.getOption(80))return;if("auto"===this._config)return void e.removeUnusualLineTerminators(this._editor.getSelections());(yield this._dialogService.confirm({title:u.N("unusualLineTerminators.title","Unusual Line Terminators"),message:u.N("unusualLineTerminators.message","Detected unusual line terminators"),detail:u.N("unusualLineTerminators.detail","The file '{0}' contains one or more unusual line terminator characters, like Line Separator (LS) or Paragraph Separator (PS).\n\nIt is recommended to remove them from the file. This can be configured via `editor.unusualLineTerminators`.",(0,Ee.EZ)(e.uri)),primaryButton:u.N("unusualLineTerminators.fix","Remove Unusual Line Terminators"),secondaryButton:u.N("unusualLineTerminators.ignore","Ignore")})).confirmed?e.removeUnusualLineTerminators(this._editor.getSelections()):function(e,t,n){e.setModelProperty(t.uri,Ve,n)}(this._codeEditorService,e,!0)}))}};He.ID="editor.contrib.unusualLineTerminatorsDetector",He=qe([je(1,ze.S),je(2,se.$)],He),(0,c._K)(He.ID,He);var Fe=n(26757),Qe=n(17539),Ke=n(32981),We=n(93965),$e=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},Be=function(e,t){return function(n,i){t(n,i,e)}};let Ye=class extends I.JT{constructor(e,t,n,i){super(),this._modelService=t,this._themeService=n,this._configurationService=i,this._editor=e,this._tokenizeViewport=new ne.pY((()=>this._tokenizeViewportNow()),100),this._outstandingRequests=[],this._register(this._editor.onDidScrollChange((()=>{this._tokenizeViewport.schedule()}))),this._register(this._editor.onDidChangeModel((()=>{this._cancelAll(),this._tokenizeViewport.schedule()}))),this._register(this._editor.onDidChangeModelContent((e=>{this._cancelAll(),this._tokenizeViewport.schedule()}))),this._register(de.K7.onDidChange((()=>{this._cancelAll(),this._tokenizeViewport.schedule()}))),this._register(this._configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration(Qe.e3)&&(this._cancelAll(),this._tokenizeViewport.schedule())}))),this._register(this._themeService.onDidColorThemeChange((()=>{this._cancelAll(),this._tokenizeViewport.schedule()})))}_cancelAll(){for(const e of this._outstandingRequests)e.cancel();this._outstandingRequests=[]}_removeOutstandingRequest(e){for(let t=0,n=this._outstandingRequests.length;tthis._requestRange(e,t))))}_requestRange(e,t){const n=e.getVersionId(),i=(0,ne.PG)((n=>Promise.resolve((0,Fe.OG)(e,t,n))));return i.then((i=>{if(!i||!i.tokens||e.isDisposed()||e.getVersionId()!==n)return;const{provider:o,tokens:r}=i,s=this._modelService.getSemanticTokensProviderStyling(o);e.setPartialSemanticTokens(t,(0,Ke.h)(r,s,e.getLanguageId()))})).then((()=>this._removeOutstandingRequest(i)),(()=>this._removeOutstandingRequest(i))),i}};Ye.ID="editor.contrib.viewportSemanticTokens",Ye=$e([Be(1,P.q),Be(2,he.XE),Be(3,We.Ui)],Ye),(0,c._K)(Ye.ID,Ye);n(29111),n(63618),n(48608);var Xe=n(5530),Je=(n(94592),n(65902),n(45547),n(74591),n(44650)),Ge=n(82825),Ze=function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},et=function(e,t){return function(n,i){t(n,i,e)}};let tt=class e{constructor(e){this.quickInputService=e,this.registry=Je.B.as(Ge.IP.Quickaccess)}provide(t){const n=new I.SL;n.add(t.onDidAccept((()=>{const[e]=t.selectedItems;e&&this.quickInputService.quickAccess.show(e.prefix,{preserveValue:!0})}))),n.add(t.onDidChangeValue((t=>{const n=this.registry.getQuickAccessProvider(t.substr(e.PREFIX.length));n&&n.prefix&&n.prefix!==e.PREFIX&&this.quickInputService.quickAccess.show(n.prefix,{preserveValue:!0})})));const{editorProviders:i,globalProviders:o}=this.getQuickAccessProviders();return t.items=0===i.length||0===o.length?[...0===i.length?o:i]:[{label:(0,u.N)("globalCommands","global commands"),type:"separator"},...o,{label:(0,u.N)("editorCommands","editor commands"),type:"separator"},...i],n}getQuickAccessProviders(){const t=[],n=[];for(const i of this.registry.getQuickAccessProviders().sort(((e,t)=>e.prefix.localeCompare(t.prefix))))if(i.prefix!==e.PREFIX)for(const e of i.helpEntries){const o=e.prefix||i.prefix,r=o||"…";(e.needsEditor?n:t).push({prefix:o,label:r,ariaLabel:(0,u.N)("helpPickAriaLabel","{0}, {1}",r,e.description),description:e.description})}return{editorProviders:n,globalProviders:t}}};tt.PREFIX="?",tt=Ze([et(0,V.eJ)],tt),Je.B.as(Ge.IP.Quickaccess).registerQuickAccessProvider({ctor:tt,prefix:"",helpEntries:[{description:Xe.ld.helpQuickAccessActionLabel,needsEditor:!0}]});n(65586),n(83861),n(63435),n(73590),n(6181)}}]);
\ No newline at end of file
diff --git a/monaco-editor.async.js b/monaco-editor.async.js
index 905c9a540f..eeb1417fc0 100644
--- a/monaco-editor.async.js
+++ b/monaco-editor.async.js
@@ -1 +1 @@
-(self.webpackChunk=self.webpackChunk||[]).push([[39404],{84427:function(){},1702:function(){},2550:function(e,t,i){var n;self.MonacoEnvironment=(n={editorWorkerService:"editor.worker.js",css:"css.worker.js",html:"html.worker.js",json:"json.worker.js",typescript:"ts.worker.js",javascript:"ts.worker.js",less:"css.worker.js",scss:"css.worker.js",handlebars:"html.worker.js",razor:"html.worker.js"},{globalAPI:!1,getWorkerUrl:function(e,t){var o=i.p,s=(o?o.replace(/\/$/,"")+"/":"")+n[t];if(/^((http:)|(https:)|(file:)|(\/\/))/.test(s)){var r=String(window.location),a=r.substr(0,r.length-window.location.hash.length-window.location.search.length-window.location.pathname.length);if(s.substring(0,a.length)!==a){/^(\/\/)/.test(s)&&(s=window.location.protocol+s);var l=new Blob(["/*"+t+'*/importScripts("'+s+'");'],{type:"application/javascript"});return URL.createObjectURL(l)}}return s}}),i(65902),i(17525),i(32838),i(84826),i(60066),i(20822),i(54807),i(88297),i(46343),i(4105),i(12529),i(68305),i(8370),i(34064),i(85628),i(50741),i(65586),i(17645),i(68531),i(76469),i(45547),i(63478),i(74591),i(26313),i(53332),i(51518),i(75723),i(63435),i(83861),i(73590),i(29997),i(71925),i(19257),i(53346),i(6181),i(6410),i(28630),i(29111),i(63618),i(48608),e.exports=i(16210),i(92973),i(72773),i(30219),i(77878),i(74121),i(77973),i(27246),i(82961),i(19959),i(23347),i(17323),i(24607),i(90130),i(72185),i(40882),i(14349),i(10715),i(88756),i(67748),i(30141),i(44115),i(65588),i(42716),i(83135),i(91067),i(63886),i(44865),i(41495),i(12076),i(38516),i(18504),i(28593),i(43069),i(50185),i(11745),i(96025),i(85713),i(98836),i(18625),i(59972),i(5512),i(59066),i(73363),i(5769),i(95630),i(12189),i(78605),i(17728),i(94503),i(66857),i(38341),i(61010),i(1099),i(49478),i(32985),i(72088),i(69746),i(94912),i(60032),i(24571),i(55670),i(77777),i(39393),i(81147),i(35550)},87783:function(e,t,i){"use strict";i.d(t,{$W:function(){return _},Dt:function(){return f},G6:function(){return p},MG:function(){return m},Pf:function(){return u},WP:function(){return r},fX:function(){return a},i7:function(){return g},ie:function(){return l},mX:function(){return h},px:function(){return s},vU:function(){return c}});var n=i(4348);class o{constructor(){this._zoomLevel=0,this._lastZoomLevelChangeTime=0,this._onDidChangeZoomLevel=new n.Q5,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event,this._zoomFactor=1}getZoomLevel(){return this._zoomLevel}getTimeSinceLastZoomLevelChanged(){return Date.now()-this._lastZoomLevelChangeTime}getZoomFactor(){return this._zoomFactor}getPixelRatio(){let e=document.createElement("canvas").getContext("2d");return(window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1)}}function s(){return o.INSTANCE.getZoomLevel()}function r(){return o.INSTANCE.getTimeSinceLastZoomLevelChanged()}function a(e){return o.INSTANCE.onDidChangeZoomLevel(e)}function l(){return o.INSTANCE.getZoomFactor()}function h(){return o.INSTANCE.getPixelRatio()}o.INSTANCE=new o;const d=navigator.userAgent,c=d.indexOf("Firefox")>=0,u=d.indexOf("AppleWebKit")>=0,g=d.indexOf("Chrome")>=0,p=!g&&d.indexOf("Safari")>=0,m=!g&&!p&&u,f=d.indexOf("Android")>=0,_=window.matchMedia&&window.matchMedia("(display-mode: standalone)").matches},23725:function(e,t,i){"use strict";i.d(t,{D:function(){return s}});var n=i(87783),o=i(23345);const s={clipboard:{writeText:o.tY||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:o.tY||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText)},keyboard:o.tY||n.$W?0:navigator.keyboard||n.G6?1:2,touch:"ontouchstart"in window||navigator.maxTouchPoints>0,pointerEvents:window.PointerEvent&&("ontouchstart"in window||window.navigator.maxTouchPoints>0||navigator.maxTouchPoints>0)}},84282:function(e,t,i){"use strict";i.d(t,{P$:function(){return s},TN:function(){return o},go:function(){return n}});const n={RESOURCES:"ResourceURLs",DOWNLOAD_URL:"DownloadURL",FILES:"Files",TEXT:i(8473).vW.text,TERMINALS:"Terminals"};class o{constructor(e){this.data=e}update(){}getData(){return this.data}}const s={CurrentDragAndDropData:void 0}},69454:function(e,t,i){"use strict";i.d(t,{$:function(){return pe},$Z:function(){return me},Ay:function(){return G},Ce:function(){return he},Cp:function(){return fe},D6:function(){return M},DI:function(){return B},Dx:function(){return T},FK:function(){return W},Fx:function(){return U},Gw:function(){return b},H$:function(){return _e},If:function(){return H},Lo:function(){return C},OO:function(){return q},PO:function(){return g},R3:function(){return le},RE:function(){return y},Re:function(){return te},Ro:function(){return R},Uh:function(){return ve},Uw:function(){return p},V3:function(){return be},Y_:function(){return I},_0:function(){return se},_h:function(){return Se},_q:function(){return ye},dS:function(){return Q},dp:function(){return P},fk:function(){return J},go:function(){return ae},i:function(){return F},jL:function(){return N},j_:function(){return S},jg:function(){return K},jt:function(){return Ce},lI:function(){return L},mc:function(){return de},mu:function(){return v},nm:function(){return f},qV:function(){return w},tw:function(){return ie},uB:function(){return Le},uN:function(){return ee},uU:function(){return $},vL:function(){return oe},vY:function(){return Z},w:function(){return V},wY:function(){return we},wn:function(){return z},xQ:function(){return O},zB:function(){return ne}});var n=i(87783),o=i(23725),s=i(92813),r=i(52390),a=i(50431),l=i(79881),h=i(4348),d=i(69323),c=i(66657),u=i(23345);function g(e){for(;e.firstChild;)e.firstChild.remove()}function p(e){var t;return null!==(t=null==e?void 0:e.isConnected)&&void 0!==t&&t}class m{constructor(e,t,i,n){this._node=e,this._type=t,this._handler=i,this._options=n||!1,this._node.addEventListener(this._type,this._handler,this._options)}dispose(){this._handler&&(this._node.removeEventListener(this._type,this._handler,this._options),this._node=null,this._handler=null)}}function f(e,t,i,n){return new m(e,t,i,n)}function _(e){return function(t){return e(new r.n(t))}}let v=function(e,t,i,n){let o=i;return"click"===t||"mousedown"===t?o=_(i):"keydown"!==t&&"keypress"!==t&&"keyup"!==t||(o=function(e){return function(t){return e(new s.y(t))}}(i)),f(e,t,o,n)},b=function(e,t,i){return C(e,_(t),i)};function C(e,t,i){return f(e,u.gn&&o.D.pointerEvents?ie.POINTER_DOWN:ie.MOUSE_DOWN,t,i)}function w(e,t,i){return f(e,u.gn&&o.D.pointerEvents?ie.POINTER_UP:ie.MOUSE_UP,t,i)}function S(e,t){return f(e,"mouseout",(i=>{let n=i.relatedTarget;for(;n&&n!==e;)n=n.parentNode;n!==e&&t(i)}))}function y(e,t){return f(e,"pointerout",(i=>{let n=i.relatedTarget;for(;n&&n!==e;)n=n.parentNode;n!==e&&t(i)}))}let L,N,x=null;class k{constructor(e,t=0){this._runner=e,this.priority=t,this._canceled=!1}dispose(){this._canceled=!0}execute(){if(!this._canceled)try{this._runner()}catch(e){(0,l.dL)(e)}}static sort(e,t){return t.priority-e.priority}}!function(){let e=[],t=null,i=!1,n=!1,o=()=>{for(i=!1,t=e,e=[],n=!0;t.length>0;){t.sort(k.sort),t.shift().execute()}n=!1};N=(t,n=0)=>{let s=new k(t,n);return e.push(s),i||(i=!0,function(e){if(!x){const e=e=>setTimeout((()=>e((new Date).getTime())),0);x=self.requestAnimationFrame||self.msRequestAnimationFrame||self.webkitRequestAnimationFrame||self.mozRequestAnimationFrame||self.oRequestAnimationFrame||e}x.call(self,e)}(o)),s},L=(e,i)=>{if(n){let n=new k(e,i);return t.push(n),n}return N(e,i)}}();const D=function(e,t){return t};class E extends d.JT{constructor(e,t,i,n=D,o=8){super();let s=null,r=0,l=this._register(new a._F),h=()=>{r=(new Date).getTime(),i(s),s=null};this._register(f(e,t,(e=>{s=n(s,e);let t=(new Date).getTime()-r;t>=o?(l.cancel(),h()):l.setIfNotSet(h,o-t)})))}}function I(e,t,i,n,o){return new E(e,t,i,n,o)}function T(e){return document.defaultView.getComputedStyle(e,null)}function M(e){if(e!==document.body)return new R(e.clientWidth,e.clientHeight);if(u.gn&&window.visualViewport)return new R(window.visualViewport.width,window.visualViewport.height);if(window.innerWidth&&window.innerHeight)return new R(window.innerWidth,window.innerHeight);if(document.body&&document.body.clientWidth&&document.body.clientHeight)return new R(document.body.clientWidth,document.body.clientHeight);if(document.documentElement&&document.documentElement.clientWidth&&document.documentElement.clientHeight)return new R(document.documentElement.clientWidth,document.documentElement.clientHeight);throw new Error("Unable to figure out browser width and height")}class A{static convertToPixels(e,t){return parseFloat(t)||0}static getDimension(e,t,i){let n=T(e),o="0";return n&&(o=n.getPropertyValue?n.getPropertyValue(t):n.getAttribute(i)),A.convertToPixels(e,o)}static getBorderLeftWidth(e){return A.getDimension(e,"border-left-width","borderLeftWidth")}static getBorderRightWidth(e){return A.getDimension(e,"border-right-width","borderRightWidth")}static getBorderTopWidth(e){return A.getDimension(e,"border-top-width","borderTopWidth")}static getBorderBottomWidth(e){return A.getDimension(e,"border-bottom-width","borderBottomWidth")}static getPaddingLeft(e){return A.getDimension(e,"padding-left","paddingLeft")}static getPaddingRight(e){return A.getDimension(e,"padding-right","paddingRight")}static getPaddingTop(e){return A.getDimension(e,"padding-top","paddingTop")}static getPaddingBottom(e){return A.getDimension(e,"padding-bottom","paddingBottom")}static getMarginLeft(e){return A.getDimension(e,"margin-left","marginLeft")}static getMarginTop(e){return A.getDimension(e,"margin-top","marginTop")}static getMarginRight(e){return A.getDimension(e,"margin-right","marginRight")}static getMarginBottom(e){return A.getDimension(e,"margin-bottom","marginBottom")}}class R{constructor(e,t){this.width=e,this.height=t}with(e=this.width,t=this.height){return e!==this.width||t!==this.height?new R(e,t):this}static is(e){return"object"==typeof e&&"number"==typeof e.height&&"number"==typeof e.width}static lift(e){return e instanceof R?e:new R(e.width,e.height)}static equals(e,t){return e===t||!(!e||!t)&&(e.width===t.width&&e.height===t.height)}}function O(e){let t=e.offsetParent,i=e.offsetTop,n=e.offsetLeft;for(;null!==(e=e.parentNode)&&e!==document.body&&e!==document.documentElement;){i-=e.scrollTop;const o=j(e)?null:T(e);o&&(n-="rtl"!==o.direction?e.scrollLeft:-e.scrollLeft),e===t&&(n+=A.getBorderLeftWidth(e),i+=A.getBorderTopWidth(e),i+=e.offsetTop,n+=e.offsetLeft,t=e.offsetParent)}return{left:n,top:i}}function P(e,t,i){"number"==typeof t&&(e.style.width=`${t}px`),"number"==typeof i&&(e.style.height=`${i}px`)}function F(e){let t=e.getBoundingClientRect();return{left:t.left+B.scrollX,top:t.top+B.scrollY,width:t.width,height:t.height}}const B=new class{get scrollX(){return"number"==typeof window.scrollX?window.scrollX:document.body.scrollLeft+document.documentElement.scrollLeft}get scrollY(){return"number"==typeof window.scrollY?window.scrollY:document.body.scrollTop+document.documentElement.scrollTop}};function V(e){let t=A.getMarginLeft(e)+A.getMarginRight(e);return e.offsetWidth+t}function W(e){let t=A.getBorderLeftWidth(e)+A.getBorderRightWidth(e),i=A.getPaddingLeft(e)+A.getPaddingRight(e);return e.offsetWidth-t-i}function H(e){let t=A.getBorderTopWidth(e)+A.getBorderBottomWidth(e),i=A.getPaddingTop(e)+A.getPaddingBottom(e);return e.offsetHeight-t-i}function z(e){let t=A.getMarginTop(e)+A.getMarginBottom(e);return e.offsetHeight+t}function K(e,t){for(;e;){if(e===t)return!0;e=e.parentNode}return!1}function U(e,t,i){for(;e&&e.nodeType===e.ELEMENT_NODE;){if(e.classList.contains(t))return e;if(i)if("string"==typeof i){if(e.classList.contains(i))return null}else if(e===i)return null;e=e.parentNode}return null}function $(e,t,i){return!!U(e,t,i)}function j(e){return e&&!!e.host&&!!e.mode}function q(e){return!!G(e)}function G(e){for(;e.parentNode;){if(e===document.body)return null;e=e.parentNode}return j(e)?e:null}function Z(){let e=document.activeElement;for(;null==e?void 0:e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function Q(e=document.getElementsByTagName("head")[0]){let t=document.createElement("style");return t.type="text/css",t.media="screen",e.appendChild(t),t}let Y=null;function X(){return Y||(Y=Q()),Y}function J(e,t,i=X()){i&&t&&i.sheet.insertRule(e+"{"+t+"}",0)}function ee(e,t=X()){if(!t)return;let i=function(e){var t,i;return(null===(t=null==e?void 0:e.sheet)||void 0===t?void 0:t.rules)?e.sheet.rules:(null===(i=null==e?void 0:e.sheet)||void 0===i?void 0:i.cssRules)?e.sheet.cssRules:[]}(t),n=[];for(let t=0;t=0;e--)t.sheet.deleteRule(n[e])}function te(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&1===e.nodeType&&"string"==typeof e.nodeName}const ie={CLICK:"click",AUXCLICK:"auxclick",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",MOUSE_WHEEL:"wheel",POINTER_UP:"pointerup",POINTER_DOWN:"pointerdown",POINTER_MOVE:"pointermove",CONTEXT_MENU:"contextmenu",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",BEFORE_UNLOAD:"beforeunload",UNLOAD:"unload",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",FULLSCREEN_CHANGE:"fullscreenchange",WK_FULLSCREEN_CHANGE:"webkitfullscreenchange",SELECT:"select",CHANGE:"change",SUBMIT:"submit",RESET:"reset",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",STORAGE:"storage",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend",ANIMATION_START:n.Pf?"webkitAnimationStart":"animationstart",ANIMATION_END:n.Pf?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:n.Pf?"webkitAnimationIteration":"animationiteration"},ne={stop:function(e,t){e.preventDefault?e.preventDefault():e.returnValue=!1,t&&(e.stopPropagation?e.stopPropagation():e.cancelBubble=!0)}};function oe(e){let t=[];for(let i=0;e&&e.nodeType===e.ELEMENT_NODE;i++)t[i]=e.scrollTop,e=e.parentNode;return t}function se(e,t){for(let i=0;e&&e.nodeType===e.ELEMENT_NODE;i++)e.scrollTop!==t[i]&&(e.scrollTop=t[i]),e=e.parentNode}class re extends d.JT{constructor(e){super(),this._onDidFocus=this._register(new h.Q5),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new h.Q5),this.onDidBlur=this._onDidBlur.event;let t=K(document.activeElement,e),i=!1;const n=()=>{i=!1,t||(t=!0,this._onDidFocus.fire())},o=()=>{t&&(i=!0,window.setTimeout((()=>{i&&(i=!1,t=!1,this._onDidBlur.fire())}),0))};this._refreshStateHandler=()=>{K(document.activeElement,e)!==t&&(t?o():n())},this._register(f(e,ie.FOCUS,n,!0)),this._register(f(e,ie.BLUR,o,!0))}}function ae(e){return new re(e)}function le(e,...t){if(e.append(...t),1===t.length&&"string"!=typeof t[0])return t[0]}function he(e,t){return e.insertBefore(t,e.firstChild),t}function de(e,...t){e.innerText="",le(e,...t)}const ce=/([\w\-]+)?(#([\w\-]+))?((\.([\w\-]+))*)/;var ue;function ge(e,t,i,...n){let o=ce.exec(t);if(!o)throw new Error("Bad use of emmet");i=Object.assign({},i||{});let s,r=o[1]||"div";return s=e!==ue.HTML?document.createElementNS(e,r):document.createElement(r),o[3]&&(s.id=o[3]),o[4]&&(s.className=o[4].replace(/\./g," ").trim()),Object.keys(i).forEach((e=>{const t=i[e];void 0!==t&&(/^on\w+$/.test(e)?s[e]=t:"selected"===e?t&&s.setAttribute(e,"true"):s.setAttribute(e,t))})),s.append(...n),s}function pe(e,t,...i){return ge(ue.HTML,e,t,...i)}function me(...e){for(let t of e)t.style.display="",t.removeAttribute("aria-hidden")}function fe(...e){for(let t of e)t.style.display="none",t.setAttribute("aria-hidden","true")}function _e(e){return Array.prototype.slice.call(document.getElementsByTagName(e),0)}function ve(e){const t=window.devicePixelRatio*e;return Math.max(1,Math.floor(t))/window.devicePixelRatio}function be(e){window.open(e,"_blank","noopener")}function Ce(e){const t=()=>{e(),i=N(t)};let i=N(t);return(0,d.OF)((()=>i.dispose()))}function we(e){return e?`url('${c.Gi.asBrowserUri(e).toString(!0).replace(/'/g,"%27")}')`:"url('')"}function Se(e){return`'${e.replace(/'/g,"%27")}'`}!function(e){e.HTML="http://www.w3.org/1999/xhtml",e.SVG="http://www.w3.org/2000/svg"}(ue||(ue={})),pe.SVG=function(e,t,...i){return ge(ue.SVG,e,t,...i)},c.WX.setPreferredWebSchema(/^https:/.test(window.location.href)?"https":"http");class ye extends h.Q5{constructor(){super(),this._subscriptions=new d.SL,this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1},this._subscriptions.add(f(window,"keydown",(e=>{if(e.defaultPrevented)return;const t=new s.y(e);if(6!==t.keyCode||!e.repeat){if(e.altKey&&!this._keyStatus.altKey)this._keyStatus.lastKeyPressed="alt";else if(e.ctrlKey&&!this._keyStatus.ctrlKey)this._keyStatus.lastKeyPressed="ctrl";else if(e.metaKey&&!this._keyStatus.metaKey)this._keyStatus.lastKeyPressed="meta";else if(e.shiftKey&&!this._keyStatus.shiftKey)this._keyStatus.lastKeyPressed="shift";else{if(6===t.keyCode)return;this._keyStatus.lastKeyPressed=void 0}this._keyStatus.altKey=e.altKey,this._keyStatus.ctrlKey=e.ctrlKey,this._keyStatus.metaKey=e.metaKey,this._keyStatus.shiftKey=e.shiftKey,this._keyStatus.lastKeyPressed&&(this._keyStatus.event=e,this.fire(this._keyStatus))}}),!0)),this._subscriptions.add(f(window,"keyup",(e=>{e.defaultPrevented||(!e.altKey&&this._keyStatus.altKey?this._keyStatus.lastKeyReleased="alt":!e.ctrlKey&&this._keyStatus.ctrlKey?this._keyStatus.lastKeyReleased="ctrl":!e.metaKey&&this._keyStatus.metaKey?this._keyStatus.lastKeyReleased="meta":!e.shiftKey&&this._keyStatus.shiftKey?this._keyStatus.lastKeyReleased="shift":this._keyStatus.lastKeyReleased=void 0,this._keyStatus.lastKeyPressed!==this._keyStatus.lastKeyReleased&&(this._keyStatus.lastKeyPressed=void 0),this._keyStatus.altKey=e.altKey,this._keyStatus.ctrlKey=e.ctrlKey,this._keyStatus.metaKey=e.metaKey,this._keyStatus.shiftKey=e.shiftKey,this._keyStatus.lastKeyReleased&&(this._keyStatus.event=e,this.fire(this._keyStatus)))}),!0)),this._subscriptions.add(f(document.body,"mousedown",(()=>{this._keyStatus.lastKeyPressed=void 0}),!0)),this._subscriptions.add(f(document.body,"mouseup",(()=>{this._keyStatus.lastKeyPressed=void 0}),!0)),this._subscriptions.add(f(document.body,"mousemove",(e=>{e.buttons&&(this._keyStatus.lastKeyPressed=void 0)}),!0)),this._subscriptions.add(f(window,"blur",(()=>{this.resetKeyStatus()})))}get keyStatus(){return this._keyStatus}resetKeyStatus(){this.doResetKeyStatus(),this.fire(this._keyStatus)}doResetKeyStatus(){this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1}}static getInstance(){return ye.instance||(ye.instance=new ye),ye.instance}dispose(){super.dispose(),this._subscriptions.dispose()}}function Le(e,t){const i=window.matchMedia(e);"function"==typeof i.addEventListener?i.addEventListener("change",t):i.addListener(t)}},8035:function(e,t,i){"use strict";i.d(t,{Y:function(){return o},p:function(){return s}});var n=i(4348);class o{constructor(e,t,i){const o=e=>this.emitter.fire(e);this.emitter=new n.Q5({onFirstListenerAdd:()=>e.addEventListener(t,o,i),onLastListenerRemove:()=>e.removeEventListener(t,o,i)})}get event(){return this.emitter.event}dispose(){this.emitter.dispose()}}function s(e){return e.preventDefault(),e.stopPropagation(),e}},32635:function(e,t,i){"use strict";i.d(t,{X:function(){return o},Z:function(){return n}});class n{constructor(e){this.domNode=e,this._maxWidth=-1,this._width=-1,this._height=-1,this._top=-1,this._left=-1,this._bottom=-1,this._right=-1,this._fontFamily="",this._fontWeight="",this._fontSize=-1,this._fontFeatureSettings="",this._lineHeight=-1,this._letterSpacing=-100,this._className="",this._display="",this._position="",this._visibility="",this._backgroundColor="",this._layerHint=!1,this._contain="none",this._boxShadow=""}setMaxWidth(e){this._maxWidth!==e&&(this._maxWidth=e,this.domNode.style.maxWidth=this._maxWidth+"px")}setWidth(e){this._width!==e&&(this._width=e,this.domNode.style.width=this._width+"px")}setHeight(e){this._height!==e&&(this._height=e,this.domNode.style.height=this._height+"px")}setTop(e){this._top!==e&&(this._top=e,this.domNode.style.top=this._top+"px")}unsetTop(){-1!==this._top&&(this._top=-1,this.domNode.style.top="")}setLeft(e){this._left!==e&&(this._left=e,this.domNode.style.left=this._left+"px")}setBottom(e){this._bottom!==e&&(this._bottom=e,this.domNode.style.bottom=this._bottom+"px")}setRight(e){this._right!==e&&(this._right=e,this.domNode.style.right=this._right+"px")}setFontFamily(e){this._fontFamily!==e&&(this._fontFamily=e,this.domNode.style.fontFamily=this._fontFamily)}setFontWeight(e){this._fontWeight!==e&&(this._fontWeight=e,this.domNode.style.fontWeight=this._fontWeight)}setFontSize(e){this._fontSize!==e&&(this._fontSize=e,this.domNode.style.fontSize=this._fontSize+"px")}setFontFeatureSettings(e){this._fontFeatureSettings!==e&&(this._fontFeatureSettings=e,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings)}setLineHeight(e){this._lineHeight!==e&&(this._lineHeight=e,this.domNode.style.lineHeight=this._lineHeight+"px")}setLetterSpacing(e){this._letterSpacing!==e&&(this._letterSpacing=e,this.domNode.style.letterSpacing=this._letterSpacing+"px")}setClassName(e){this._className!==e&&(this._className=e,this.domNode.className=this._className)}toggleClassName(e,t){this.domNode.classList.toggle(e,t),this._className=this.domNode.className}setDisplay(e){this._display!==e&&(this._display=e,this.domNode.style.display=this._display)}setPosition(e){this._position!==e&&(this._position=e,this.domNode.style.position=this._position)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this.domNode.style.visibility=this._visibility)}setBackgroundColor(e){this._backgroundColor!==e&&(this._backgroundColor=e,this.domNode.style.backgroundColor=this._backgroundColor)}setLayerHinting(e){this._layerHint!==e&&(this._layerHint=e,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":"")}setBoxShadow(e){this._boxShadow!==e&&(this._boxShadow=e,this.domNode.style.boxShadow=e)}setContain(e){this._contain!==e&&(this._contain=e,this.domNode.style.contain=this._contain)}setAttribute(e,t){this.domNode.setAttribute(e,t)}removeAttribute(e){this.domNode.removeAttribute(e)}appendChild(e){this.domNode.appendChild(e.domNode)}removeChild(e){this.domNode.removeChild(e.domNode)}}function o(e){return new n(e)}},40575:function(e,t,i){"use strict";i.d(t,{BO:function(){return s},IY:function(){return o},az:function(){return r}});var n=i(69454);function o(e,t={}){const i=r(t);return i.textContent=e,i}function s(e,t={}){const i=r(t);return l(i,function(e,t){const i={type:1,children:[]};let n=0,o=i;const s=[],r=new a(e);for(;!r.eos();){let e=r.next();const i="\\"===e&&0!==d(r.peek(),t);if(i&&(e=r.next()),!i&&h(e,t)&&e===r.peek()){r.advance(),2===o.type&&(o=s.pop());const i=d(e,t);if(o.type===i||5===o.type&&6===i)o=s.pop();else{const e={type:i,children:[]};5===i&&(e.index=n,n++),o.children.push(e),s.push(o),o=e}}else if("\n"===e)2===o.type&&(o=s.pop()),o.children.push({type:8});else if(2!==o.type){const t={type:2,content:e};o.children.push(t),s.push(o),o=t}else o.content+=e}2===o.type&&(o=s.pop());s.length;return i}(e,!!t.renderCodeSegments),t.actionHandler,t.renderCodeSegments),i}function r(e){const t=e.inline?"span":"div",i=document.createElement(t);return e.className&&(i.className=e.className),i}class a{constructor(e){this.source=e,this.index=0}eos(){return this.index>=this.source.length}next(){const e=this.peek();return this.advance(),e}peek(){return this.source[this.index]}advance(){this.index++}}function l(e,t,i,o){let s;if(2===t.type)s=document.createTextNode(t.content||"");else if(3===t.type)s=document.createElement("b");else if(4===t.type)s=document.createElement("i");else if(7===t.type&&o)s=document.createElement("code");else if(5===t.type&&i){const e=document.createElement("a");e.href="#",i.disposables.add(n.mu(e,"click",(e=>{i.callback(String(t.index),e)}))),s=e}else 8===t.type?s=document.createElement("br"):1===t.type&&(s=e);s&&e!==s&&e.appendChild(s),s&&Array.isArray(t.children)&&t.children.forEach((e=>{l(s,e,i,o)}))}function h(e,t){return 0!==d(e,t)}function d(e,t){switch(e){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;case"`":return t?7:0;default:return 0}}},2395:function(e,t,i){"use strict";i.d(t,{Z:function(){return h},e:function(){return l}});var n=i(69454),o=i(7122),s=i(52390),r=i(69323),a=i(23345);function l(e,t){let i=new s.n(t);return i.preventDefault(),{leftButton:i.leftButton,buttons:i.buttons,posx:i.posx,posy:i.posy}}class h{constructor(){this._hooks=new r.SL,this._mouseMoveEventMerger=null,this._mouseMoveCallback=null,this._onStopCallback=null}dispose(){this.stopMonitoring(!1),this._hooks.dispose()}stopMonitoring(e,t){if(!this.isMonitoring())return;this._hooks.clear(),this._mouseMoveEventMerger=null,this._mouseMoveCallback=null;const i=this._onStopCallback;this._onStopCallback=null,e&&i&&i(t)}isMonitoring(){return!!this._mouseMoveEventMerger}startMonitoring(e,t,i,r,l){if(this.isMonitoring())return;this._mouseMoveEventMerger=i,this._mouseMoveCallback=r,this._onStopCallback=l;const h=o.E.getSameOriginWindowChain(),d=a.gn?"pointermove":"mousemove",c=h.map((e=>e.window.document)),u=n.Ay(e);u&&c.unshift(u);for(const e of c)this._hooks.add(n.Y_(e,d,(e=>{e.buttons===t?this._mouseMoveCallback(e):this.stopMonitoring(!0)}),((e,t)=>this._mouseMoveEventMerger(e,t)))),this._hooks.add(n.nm(e,"mouseup",(e=>this.stopMonitoring(!0))));if(o.E.hasDifferentOriginAncestor()){let e=h[h.length-1];this._hooks.add(n.nm(e.window.document,"mouseout",(e=>{"html"===new s.n(e).target.tagName.toLowerCase()&&this.stopMonitoring(!0)}))),this._hooks.add(n.nm(e.window.document,"mouseover",(e=>{"html"===new s.n(e).target.tagName.toLowerCase()&&this.stopMonitoring(!0)}))),this._hooks.add(n.nm(e.window.document.body,"mouseleave",(e=>{this.stopMonitoring(!0)})))}}}},7122:function(e,t,i){"use strict";i.d(t,{E:function(){return r}});let n=!1,o=null;function s(e){if(!e.parent||e.parent===e)return null;try{let t=e.location,i=e.parent.location;if("null"!==t.origin&&"null"!==i.origin&&t.origin!==i.origin)return n=!0,null}catch(e){return n=!0,null}return e.parent}class r{static getSameOriginWindowChain(){if(!o){o=[];let e,t=window;do{e=s(t),e?o.push({window:t,iframeElement:t.frameElement||null}):o.push({window:t,iframeElement:null}),t=e}while(t)}return o.slice(0)}static hasDifferentOriginAncestor(){return o||this.getSameOriginWindowChain(),n}static getPositionOfChildWindowRelativeToAncestorWindow(e,t){if(!t||e===t)return{top:0,left:0};let i=0,n=0,o=this.getSameOriginWindowChain();for(const e of o){if(i+=e.window.scrollY,n+=e.window.scrollX,e.window===t)break;if(!e.iframeElement)break;let o=e.iframeElement.getBoundingClientRect();i+=o.top,n+=o.left}return{top:i,left:n}}}},92813:function(e,t,i){"use strict";i.d(t,{y:function(){return h}});var n=i(87783),o=i(52411),s=i(86354),r=i(23345);const a=r.dz?256:2048,l=r.dz?2048:256;class h{constructor(e){this._standardKeyboardEventBrand=!0;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.keyCode=function(e){if(e.charCode){let t=String.fromCharCode(e.charCode).toUpperCase();return o.kL.fromString(t)}const t=e.keyCode;if(3===t)return 7;if(n.vU){if(59===t)return 80;if(107===t)return 81;if(109===t)return 83;if(r.dz&&224===t)return 57}else if(n.Pf){if(91===t)return 57;if(r.dz&&93===t)return 57;if(!r.dz&&92===t)return 57}return o.H_[t]||0}(t),this.code=t.code,this.ctrlKey=this.ctrlKey||5===this.keyCode,this.altKey=this.altKey||6===this.keyCode,this.shiftKey=this.shiftKey||4===this.keyCode,this.metaKey=this.metaKey||57===this.keyCode,this._asKeybinding=this._computeKeybinding(),this._asRuntimeKeybinding=this._computeRuntimeKeybinding()}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()}toKeybinding(){return this._asRuntimeKeybinding}equals(e){return this._asKeybinding===e}_computeKeybinding(){let e=0;5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode);let t=0;return this.ctrlKey&&(t|=a),this.altKey&&(t|=512),this.shiftKey&&(t|=1024),this.metaKey&&(t|=l),t|=e,t}_computeRuntimeKeybinding(){let e=0;return 5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode),new s.QC(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e)}}},52390:function(e,t,i){"use strict";i.d(t,{n:function(){return r},q:function(){return a}});var n=i(87783),o=i(7122),s=i(23345);class r{constructor(e){this.timestamp=Date.now(),this.browserEvent=e,this.leftButton=0===e.button,this.middleButton=1===e.button,this.rightButton=2===e.button,this.buttons=e.buttons,this.target=e.target,this.detail=e.detail||1,"dblclick"===e.type&&(this.detail=2),this.ctrlKey=e.ctrlKey,this.shiftKey=e.shiftKey,this.altKey=e.altKey,this.metaKey=e.metaKey,"number"==typeof e.pageX?(this.posx=e.pageX,this.posy=e.pageY):(this.posx=e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,this.posy=e.clientY+document.body.scrollTop+document.documentElement.scrollTop);let t=o.E.getPositionOfChildWindowRelativeToAncestorWindow(self,e.view);this.posx-=t.left,this.posy-=t.top}preventDefault(){this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent.stopPropagation()}}class a{constructor(e,t=0,i=0){if(this.browserEvent=e||null,this.target=e?e.target||e.targetNode||e.srcElement:null,this.deltaY=i,this.deltaX=t,e){let t=e,i=e;if(void 0!==t.wheelDeltaY)this.deltaY=t.wheelDeltaY/120;else if(void 0!==i.VERTICAL_AXIS&&i.axis===i.VERTICAL_AXIS)this.deltaY=-i.detail/3;else if("wheel"===e.type){const t=e;t.deltaMode===t.DOM_DELTA_LINE?n.vU&&!s.dz?this.deltaY=-e.deltaY/3:this.deltaY=-e.deltaY:this.deltaY=-e.deltaY/40}if(void 0!==t.wheelDeltaX)n.G6&&s.ED?this.deltaX=-t.wheelDeltaX/120:this.deltaX=t.wheelDeltaX/120;else if(void 0!==i.HORIZONTAL_AXIS&&i.axis===i.HORIZONTAL_AXIS)this.deltaX=-e.detail/3;else if("wheel"===e.type){const t=e;t.deltaMode===t.DOM_DELTA_LINE?n.vU&&!s.dz?this.deltaX=-e.deltaX/3:this.deltaX=-e.deltaX:this.deltaX=-e.deltaX/40}0===this.deltaY&&0===this.deltaX&&e.wheelDelta&&(this.deltaY=e.wheelDelta/120)}}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation()}}},60537:function(e,t,i){"use strict";i.d(t,{o:function(){return h},t:function(){return n}});var n,o=i(69454),s=i(43506),r=i(85402),a=i(69323),l=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};!function(e){e.Tap="-monaco-gesturetap",e.Change="-monaco-gesturechange",e.Start="-monaco-gesturestart",e.End="-monaco-gesturesend",e.Contextmenu="-monaco-gesturecontextmenu"}(n||(n={}));class h extends a.JT{constructor(){super(),this.dispatched=!1,this.activeTouches={},this.handle=null,this.targets=[],this.ignoreTargets=[],this._lastSetTapCountTime=0,this._register(o.nm(document,"touchstart",(e=>this.onTouchStart(e)),{passive:!1})),this._register(o.nm(document,"touchend",(e=>this.onTouchEnd(e)))),this._register(o.nm(document,"touchmove",(e=>this.onTouchMove(e)),{passive:!1}))}static addTarget(e){return h.isTouchDevice()?(h.INSTANCE||(h.INSTANCE=new h),h.INSTANCE.targets.push(e),{dispose:()=>{h.INSTANCE.targets=h.INSTANCE.targets.filter((t=>t!==e))}}):a.JT.None}static ignoreTarget(e){return h.isTouchDevice()?(h.INSTANCE||(h.INSTANCE=new h),h.INSTANCE.ignoreTargets.push(e),{dispose:()=>{h.INSTANCE.ignoreTargets=h.INSTANCE.ignoreTargets.filter((t=>t!==e))}}):a.JT.None}static isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0}dispose(){this.handle&&(this.handle.dispose(),this.handle=null),super.dispose()}onTouchStart(e){let t=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(let i=0,o=e.targetTouches.length;i=h.HOLD_DELAY&&Math.abs(a.initialPageX-s.Gb(a.rollingPageX))<30&&Math.abs(a.initialPageY-s.Gb(a.rollingPageY))<30){let e=this.newGestureEvent(n.Contextmenu,a.initialTarget);e.pageX=s.Gb(a.rollingPageX),e.pageY=s.Gb(a.rollingPageY),this.dispatchEvent(e)}else if(1===i){let e=s.Gb(a.rollingPageX),i=s.Gb(a.rollingPageY),n=s.Gb(a.rollingTimestamps)-a.rollingTimestamps[0],o=e-a.rollingPageX[0],r=i-a.rollingPageY[0];const l=this.targets.filter((e=>a.initialTarget instanceof Node&&e.contains(a.initialTarget)));this.inertia(l,t,Math.abs(o)/n,o>0?1:-1,e,Math.abs(r)/n,r>0?1:-1,i)}this.dispatchEvent(this.newGestureEvent(n.End,a.initialTarget)),delete this.activeTouches[r.identifier]}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)}newGestureEvent(e,t){let i=document.createEvent("CustomEvent");return i.initEvent(e,!1,!0),i.initialTarget=t,i.tapCount=0,i}dispatchEvent(e){if(e.type===n.Tap){const t=(new Date).getTime();let i=0;i=t-this._lastSetTapCountTime>h.CLEAR_TAP_COUNT_TIME?1:2,this._lastSetTapCountTime=t,e.tapCount=i}else e.type!==n.Change&&e.type!==n.Contextmenu||(this._lastSetTapCountTime=0);for(let t=0;t{e.initialTarget instanceof Node&&t.contains(e.initialTarget)&&(t.dispatchEvent(e),this.dispatched=!0)}))}inertia(e,t,i,s,r,a,l,d){this.handle=o.jL((()=>{let o=Date.now(),c=o-t,u=0,g=0,p=!0;i+=h.SCROLL_FRICTION*c,a+=h.SCROLL_FRICTION*c,i>0&&(p=!1,u=s*i*c),a>0&&(p=!1,g=l*a*c);let m=this.newGestureEvent(n.Change);m.translationX=u,m.translationY=g,e.forEach((e=>e.dispatchEvent(m))),p||this.inertia(e,o,i,s,r+u,a,l,d+g)}))}onTouchMove(e){let t=Date.now();for(let i=0,o=e.changedTouches.length;i3&&(r.rollingPageX.shift(),r.rollingPageY.shift(),r.rollingTimestamps.shift()),r.rollingPageX.push(o.pageX),r.rollingPageY.push(o.pageY),r.rollingTimestamps.push(t)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)}}h.SCROLL_FRICTION=-.005,h.HOLD_DELAY=700,h.CLEAR_TAP_COUNT_TIME=400,l([r.H],h,"isTouchDevice",null)},10081:function(e,t,i){"use strict";i.d(t,{Y:function(){return u},g:function(){return g}});var n=i(87783),o=i(84282),s=i(69454),r=i(60537),a=i(75918),l=i(69323),h=i(23345),d=i(72999),c=(i(84427),i(13268));class u extends l.JT{constructor(e,t,i={}){super(),this.options=i,this._context=e||this,this._action=t,t instanceof a.aU&&this._register(t.onDidChange((e=>{this.element&&this.handleActionChangeEvent(e)})))}handleActionChangeEvent(e){void 0!==e.enabled&&this.updateEnabled(),void 0!==e.checked&&this.updateChecked(),void 0!==e.class&&this.updateClass(),void 0!==e.label&&(this.updateLabel(),this.updateTooltip()),void 0!==e.tooltip&&this.updateTooltip()}get actionRunner(){return this._actionRunner||(this._actionRunner=this._register(new a.Wi)),this._actionRunner}set actionRunner(e){this._actionRunner=e}getAction(){return this._action}isEnabled(){return this._action.enabled}setActionContext(e){this._context=e}render(e){const t=this.element=e;this._register(r.o.addTarget(e));const i=this.options&&this.options.draggable;i&&(e.draggable=!0,n.vU&&this._register((0,s.nm)(e,s.tw.DRAG_START,(e=>{var t;return null===(t=e.dataTransfer)||void 0===t?void 0:t.setData(o.go.TEXT,this._action.label)})))),this._register((0,s.nm)(t,r.t.Tap,(e=>this.onClick(e,!0)))),this._register((0,s.nm)(t,s.tw.MOUSE_DOWN,(e=>{i||s.zB.stop(e,!0),this._action.enabled&&0===e.button&&t.classList.add("active")}))),h.dz&&this._register((0,s.nm)(t,s.tw.CONTEXT_MENU,(e=>{0===e.button&&!0===e.ctrlKey&&this.onClick(e)}))),this._register((0,s.nm)(t,s.tw.CLICK,(e=>{s.zB.stop(e,!0),this.options&&this.options.isMenu||this.onClick(e)}))),this._register((0,s.nm)(t,s.tw.DBLCLICK,(e=>{s.zB.stop(e,!0)}))),[s.tw.MOUSE_UP,s.tw.MOUSE_OUT].forEach((e=>{this._register((0,s.nm)(t,e,(e=>{s.zB.stop(e),t.classList.remove("active")})))}))}onClick(e,t=!1){var i;s.zB.stop(e,!0);const n=d.Jp(this._context)?(null===(i=this.options)||void 0===i?void 0:i.useEventAsContext)?e:{preserveFocus:t}:this._context;this.actionRunner.run(this._action,n)}focus(){this.element&&(this.element.tabIndex=0,this.element.focus(),this.element.classList.add("focused"))}blur(){this.element&&(this.element.blur(),this.element.tabIndex=-1,this.element.classList.remove("focused"))}setFocusable(e){this.element&&(this.element.tabIndex=e?0:-1)}get trapsArrowNavigation(){return!1}updateEnabled(){}updateLabel(){}updateTooltip(){}updateClass(){}updateChecked(){}dispose(){this.element&&(this.element.remove(),this.element=void 0),super.dispose()}}class g extends u{constructor(e,t,i={}){super(e,t,i),this.options=i,this.options.icon=void 0!==i.icon&&i.icon,this.options.label=void 0===i.label||i.label,this.cssClass=""}render(e){super.render(e),this.element&&(this.label=(0,s.R3)(this.element,(0,s.$)("a.action-label"))),this.label&&(this._action.id===a.Z0.ID?this.label.setAttribute("role","presentation"):this.options.isMenu?this.label.setAttribute("role","menuitem"):this.label.setAttribute("role","button")),this.options.label&&this.options.keybinding&&this.element&&((0,s.R3)(this.element,(0,s.$)("span.keybinding")).textContent=this.options.keybinding),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked()}focus(){this.label&&(this.label.tabIndex=0,this.label.focus())}blur(){this.label&&(this.label.tabIndex=-1)}setFocusable(e){this.label&&(this.label.tabIndex=e?0:-1)}updateLabel(){this.options.label&&this.label&&(this.label.textContent=this.getAction().label)}updateTooltip(){let e=null;this.getAction().tooltip?e=this.getAction().tooltip:!this.options.label&&this.getAction().label&&this.options.icon&&(e=this.getAction().label,this.options.keybinding&&(e=c.N({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",e,this.options.keybinding))),e&&this.label&&(this.label.title=e)}updateClass(){this.cssClass&&this.label&&this.label.classList.remove(...this.cssClass.split(" ")),this.options.icon?(this.cssClass=this.getAction().class,this.label&&(this.label.classList.add("codicon"),this.cssClass&&this.label.classList.add(...this.cssClass.split(" "))),this.updateEnabled()):this.label&&this.label.classList.remove("codicon")}updateEnabled(){this.getAction().enabled?(this.label&&(this.label.removeAttribute("aria-disabled"),this.label.classList.remove("disabled")),this.element&&this.element.classList.remove("disabled")):(this.label&&(this.label.setAttribute("aria-disabled","true"),this.label.classList.add("disabled")),this.element&&this.element.classList.add("disabled"))}updateChecked(){this.label&&(this.getAction().checked?this.label.classList.add("checked"):this.label.classList.remove("checked"))}}},21784:function(e,t,i){"use strict";i.d(t,{o:function(){return c}});var n=i(69454),o=i(92813),s=i(10081),r=i(75918),a=i(4348),l=i(69323),h=i(72999),d=(i(84427),function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))});class c extends l.JT{constructor(e,t={}){var i,l,h,d,c,u;let g,p;switch(super(),this.triggerKeyDown=!1,this.focusable=!0,this._onDidBlur=this._register(new a.Q5),this.onDidBlur=this._onDidBlur.event,this._onDidCancel=this._register(new a.Q5({onFirstListenerAdd:()=>this.cancelHasListener=!0})),this.onDidCancel=this._onDidCancel.event,this.cancelHasListener=!1,this._onDidRun=this._register(new a.Q5),this.onDidRun=this._onDidRun.event,this._onBeforeRun=this._register(new a.Q5),this.onBeforeRun=this._onBeforeRun.event,this.options=t,this._context=null!==(i=t.context)&&void 0!==i?i:null,this._orientation=null!==(l=this.options.orientation)&&void 0!==l?l:0,this._triggerKeys={keyDown:null!==(d=null===(h=this.options.triggerKeys)||void 0===h?void 0:h.keyDown)&&void 0!==d&&d,keys:null!==(u=null===(c=this.options.triggerKeys)||void 0===c?void 0:c.keys)&&void 0!==u?u:[3,10]},this.options.actionRunner?this._actionRunner=this.options.actionRunner:(this._actionRunner=new r.Wi,this._register(this._actionRunner)),this._register(this._actionRunner.onDidRun((e=>this._onDidRun.fire(e)))),this._register(this._actionRunner.onBeforeRun((e=>this._onBeforeRun.fire(e)))),this._actionIds=[],this.viewItems=[],this.focusedItem=void 0,this.domNode=document.createElement("div"),this.domNode.className="monaco-action-bar",!1!==t.animated&&this.domNode.classList.add("animated"),this._orientation){case 0:g=[15],p=[17];break;case 1:g=[16],p=[18],this.domNode.className+=" vertical"}this._register(n.nm(this.domNode,n.tw.KEY_DOWN,(e=>{const t=new o.y(e);let i=!0;const n="number"==typeof this.focusedItem?this.viewItems[this.focusedItem]:void 0;g&&(t.equals(g[0])||t.equals(g[1]))?i=this.focusPrevious():p&&(t.equals(p[0])||t.equals(p[1]))?i=this.focusNext():t.equals(9)&&this.cancelHasListener?this._onDidCancel.fire():t.equals(14)?i=this.focusFirst():t.equals(13)?i=this.focusLast():t.equals(2)&&n instanceof s.Y&&n.trapsArrowNavigation?i=this.focusNext():this.isTriggerKeyEvent(t)?this._triggerKeys.keyDown?this.doTrigger(t):this.triggerKeyDown=!0:i=!1,i&&(t.preventDefault(),t.stopPropagation())}))),this._register(n.nm(this.domNode,n.tw.KEY_UP,(e=>{const t=new o.y(e);this.isTriggerKeyEvent(t)?(!this._triggerKeys.keyDown&&this.triggerKeyDown&&(this.triggerKeyDown=!1,this.doTrigger(t)),t.preventDefault(),t.stopPropagation()):(t.equals(2)||t.equals(1026))&&this.updateFocusedItem()}))),this.focusTracker=this._register(n.go(this.domNode)),this._register(this.focusTracker.onDidBlur((()=>{n.vY()!==this.domNode&&n.jg(n.vY(),this.domNode)||(this._onDidBlur.fire(),this.focusedItem=void 0,this.triggerKeyDown=!1)}))),this._register(this.focusTracker.onDidFocus((()=>this.updateFocusedItem()))),this.actionsList=document.createElement("ul"),this.actionsList.className="actions-container",this.actionsList.setAttribute("role","toolbar"),this.options.ariaLabel&&this.actionsList.setAttribute("aria-label",this.options.ariaLabel),this.domNode.appendChild(this.actionsList),e.appendChild(this.domNode)}isTriggerKeyEvent(e){let t=!1;return this._triggerKeys.keys.forEach((i=>{t=t||e.equals(i)})),t}updateFocusedItem(){for(let e=0;et.setActionContext(e)))}get actionRunner(){return this._actionRunner}set actionRunner(e){e&&(this._actionRunner=e,this.viewItems.forEach((t=>t.actionRunner=e)))}getContainer(){return this.domNode}push(e,t={}){const i=Array.isArray(e)?e:[e];let o=h.hj(t.index)?t.index:null;i.forEach((e=>{const i=document.createElement("li");let r;i.className="action-item",i.setAttribute("role","presentation"),this.options.allowContextMenu||this._register(n.nm(i,n.tw.CONTEXT_MENU,(e=>{n.zB.stop(e,!0)}))),this.options.actionViewItemProvider&&(r=this.options.actionViewItemProvider(e)),r||(r=new s.g(this.context,e,t)),r.actionRunner=this._actionRunner,r.setActionContext(this.context),r.render(i),this.focusable&&r instanceof s.Y&&0===this.viewItems.length&&r.setFocusable(!0),null===o||o<0||o>=this.actionsList.children.length?(this.actionsList.appendChild(i),this.viewItems.push(r),this._actionIds.push(e.id)):(this.actionsList.insertBefore(i,this.actionsList.children[o]),this.viewItems.splice(o,0,r),this._actionIds.splice(o,0,e.id),o++)})),"number"==typeof this.focusedItem&&this.focus(this.focusedItem)}clear(){(0,l.B9)(this.viewItems),this.viewItems=[],this._actionIds=[],n.PO(this.actionsList)}length(){return this.viewItems.length}focus(e){let t,i=!1;if(void 0===e?i=!0:"number"==typeof e?t=e:"boolean"==typeof e&&(i=e),i&&void 0===this.focusedItem){const e=this.viewItems.findIndex((e=>e.isEnabled()));this.focusedItem=-1===e?void 0:e,this.updateFocus()}else void 0!==t&&(this.focusedItem=t),this.updateFocus()}focusFirst(){return this.focusedItem=this.length()>1?1:0,this.focusPrevious()}focusLast(){return this.focusedItem=this.length()<2?0:this.length()-2,this.focusNext()}focusNext(){if(void 0===this.focusedItem)this.focusedItem=this.viewItems.length-1;else if(this.viewItems.length<=1)return!1;const e=this.focusedItem;let t;do{if(this.options.preventLoopNavigation&&this.focusedItem+1>=this.viewItems.length)return this.focusedItem=e,!1;this.focusedItem=(this.focusedItem+1)%this.viewItems.length,t=this.viewItems[this.focusedItem]}while(this.focusedItem!==e&&this.options.focusOnlyEnabledItems&&!t.isEnabled());return this.updateFocus(),!0}focusPrevious(){if(void 0===this.focusedItem)this.focusedItem=0;else if(this.viewItems.length<=1)return!1;const e=this.focusedItem;let t;do{if(this.focusedItem=this.focusedItem-1,this.focusedItem<0){if(this.options.preventLoopNavigation)return this.focusedItem=e,!1;this.focusedItem=this.viewItems.length-1}t=this.viewItems[this.focusedItem]}while(this.focusedItem!==e&&this.options.focusOnlyEnabledItems&&!t.isEnabled());return this.updateFocus(!0),!0}updateFocus(e,t){void 0===this.focusedItem&&this.actionsList.focus({preventScroll:t});for(let i=0;i{const e=document.createElement("div");return e.className="monaco-alert",e.setAttribute("role","alert"),e.setAttribute("aria-atomic","true"),s.appendChild(e),e};r=t(),a=t();const i=()=>{const e=document.createElement("div");return e.className="monaco-status",e.setAttribute("role","complementary"),e.setAttribute("aria-live","polite"),e.setAttribute("aria-atomic","true"),s.appendChild(e),e};l=i(),h=i(),e.appendChild(s)}function c(e){s&&(r.textContent!==e?(n.PO(a),g(r,e)):(n.PO(r),g(a,e)))}function u(e){s&&(o.dz?c(e):l.textContent!==e?(n.PO(h),g(l,e)):(n.PO(l),g(h,e)))}function g(e,t){n.PO(e),t.length>2e4&&(t=t.substr(0,2e4)),e.textContent=t,e.style.visibility="hidden",e.style.visibility="visible"}},94592:function(e,t,i){"use strict";i.d(t,{a:function(){return o}});var n=i(52615);function o(e){let t=e.definition;for(;t instanceof n.lA;)t=t.definition;return`.codicon-${e.id}:before { content: '${t.fontCharacter}'; }`}},23963:function(e,t,i){"use strict";i.d(t,{Z:function(){return l}});var n=i(69454),o=i(51737),s=i(80470),r=i(82983);const a={badgeBackground:o.Il.fromHex("#4D4D4D"),badgeForeground:o.Il.fromHex("#FFFFFF")};class l{constructor(e,t){this.count=0,this.options=t||Object.create(null),(0,s.jB)(this.options,a,!1),this.badgeBackground=this.options.badgeBackground,this.badgeForeground=this.options.badgeForeground,this.badgeBorder=this.options.badgeBorder,this.element=(0,n.R3)(e,(0,n.$)(".monaco-count-badge")),this.countFormat=this.options.countFormat||"{0}",this.titleFormat=this.options.titleFormat||"",this.setCount(this.options.count||0)}setCount(e){this.count=e,this.render()}setTitleFormat(e){this.titleFormat=e,this.render()}render(){this.element.textContent=(0,r.WU)(this.countFormat,this.count),this.element.title=(0,r.WU)(this.titleFormat,this.count),this.applyStyles()}style(e){this.badgeBackground=e.badgeBackground,this.badgeForeground=e.badgeForeground,this.badgeBorder=e.badgeBorder,this.applyStyles()}applyStyles(){if(this.element){const e=this.badgeBackground?this.badgeBackground.toString():"",t=this.badgeForeground?this.badgeForeground.toString():"",i=this.badgeBorder?this.badgeBorder.toString():"";this.element.style.backgroundColor=e,this.element.style.color=t,this.element.style.borderWidth=i?"1px":"",this.element.style.borderStyle=i?"solid":"",this.element.style.borderColor=i}}}},48949:function(e,t,i){"use strict";i.d(t,{q:function(){return r}});var n=i(69454),o=i(67069),s=i(80470);class r{constructor(e,t){this.supportIcons=t,this.text="",this.title="",this.highlights=[],this.didEverRender=!1,this.domNode=document.createElement("span"),this.domNode.className="monaco-highlighted-label",e.appendChild(this.domNode)}get element(){return this.domNode}set(e,t=[],i="",n){e||(e=""),n&&(e=r.escapeNewLines(e,t)),this.didEverRender&&this.text===e&&this.title===i&&s.fS(this.highlights,t)||(this.text=e,this.title=i,this.highlights=t,this.render())}render(){const e=[];let t=0;for(const i of this.highlights){if(i.end===i.start)continue;if(t{n="\r\n"===e?-1:0,o+=i;for(const e of t)e.end<=o||(e.start>=o&&(e.start+=n),e.end>=o&&(e.end+=n));return i+=n,"⏎"}))}}},85749:function(e,t,i){"use strict";i.d(t,{g:function(){return f}});var n=i(69454),o=i(48949),s=i(50431),r=i(96283),a=i(94186),l=i(69323),h=i(72999),d=i(13268),c=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};class u{constructor(e,t,i){this.hoverDelegate=e,this.target=t,this.fadeInAnimation=i}update(e,t){var i;return c(this,void 0,void 0,(function*(){if(this._cancellationTokenSource&&(this._cancellationTokenSource.dispose(!0),this._cancellationTokenSource=void 0),this.isDisposed)return;let n;if(void 0===e||(0,h.HD)(e)||e instanceof HTMLElement)n=e;else if((0,h.mf)(e.markdown)){this._hoverWidget||this.show((0,d.N)("iconLabel.loading","Loading..."),t),this._cancellationTokenSource=new r.A;const i=this._cancellationTokenSource.token;if(n=yield e.markdown(i),this.isDisposed||i.isCancellationRequested)return}else n=null!==(i=e.markdown)&&void 0!==i?i:e.markdownNotSupportedFallback;this.show(n,t)}))}show(e,t){const i=this._hoverWidget;if(this.hasContent(e)){const n={content:e,target:this.target,showPointer:"element"===this.hoverDelegate.placement,hoverPosition:2,skipFadeInAnimation:!this.fadeInAnimation||!!i};this._hoverWidget=this.hoverDelegate.showHover(n,t)}null==i||i.dispose()}hasContent(e){return!!e&&(!(0,a.Fr)(e)||!!e.value)}get isDisposed(){var e;return null===(e=this._hoverWidget)||void 0===e?void 0:e.isDisposed}dispose(){var e,t;null===(e=this._hoverWidget)||void 0===e||e.dispose(),null===(t=this._cancellationTokenSource)||void 0===t||t.dispose(!0),this._cancellationTokenSource=void 0}}var g=i(80470),p=i(17981);class m{constructor(e){this._element=e}get element(){return this._element}set textContent(e){this.disposed||e===this._textContent||(this._textContent=e,this._element.textContent=e)}set className(e){this.disposed||e===this._className||(this._className=e,this._element.className=e)}set empty(e){this.disposed||e===this._empty||(this._empty=e,this._element.style.marginLeft=e?"0":"")}dispose(){this.disposed=!0}}class f extends l.JT{constructor(e,t){super(),this.customHovers=new Map,this.domNode=this._register(new m(n.R3(e,n.$(".monaco-icon-label")))),this.labelContainer=n.R3(this.domNode.element,n.$(".monaco-icon-label-container"));const i=n.R3(this.labelContainer,n.$("span.monaco-icon-name-container"));this.descriptionContainer=this._register(new m(n.R3(this.labelContainer,n.$("span.monaco-icon-description-container")))),(null==t?void 0:t.supportHighlights)||(null==t?void 0:t.supportIcons)?this.nameNode=new v(i,!!t.supportIcons):this.nameNode=new _(i),(null==t?void 0:t.supportDescriptionHighlights)?this.descriptionNodeFactory=()=>new o.q(n.R3(this.descriptionContainer.element,n.$("span.label-description")),!!t.supportIcons):this.descriptionNodeFactory=()=>this._register(new m(n.R3(this.descriptionContainer.element,n.$("span.label-description")))),this.hoverDelegate=null==t?void 0:t.hoverDelegate}get element(){return this.domNode.element}setLabel(e,t,i){const n=["monaco-icon-label"];i&&(i.extraClasses&&n.push(...i.extraClasses),i.italic&&n.push("italic"),i.strikethrough&&n.push("strikethrough")),this.domNode.className=n.join(" "),this.setupHover((null==i?void 0:i.descriptionTitle)?this.labelContainer:this.element,null==i?void 0:i.title),this.nameNode.setLabel(e,i),(t||this.descriptionNode)&&(this.descriptionNode||(this.descriptionNode=this.descriptionNodeFactory()),this.descriptionNode instanceof o.q?(this.descriptionNode.set(t||"",i?i.descriptionMatches:void 0),this.setupHover(this.descriptionNode.element,null==i?void 0:i.descriptionTitle)):(this.descriptionNode.textContent=t||"",this.setupHover(this.descriptionNode.element,(null==i?void 0:i.descriptionTitle)||""),this.descriptionNode.empty=!t))}setupHover(e,t){const i=this.customHovers.get(e);if(i&&(i.dispose(),this.customHovers.delete(e)),t)if(this.hoverDelegate){const i=function(e,t,i){let o,r;const a=(t,i)=>{var n;t&&(null==r||r.dispose(),r=void 0),i&&(null==o||o.dispose(),o=void 0),null===(n=e.onDidHideHover)||void 0===n||n.call(e)},h=(n,o,a)=>new s._F((()=>c(this,void 0,void 0,(function*(){r&&!r.isDisposed||(r=new u(e,a||t,n>0),yield r.update(i,o))}))),n),d=n.nm(t,n.tw.MOUSE_OVER,(()=>{if(o)return;const i=new l.SL;i.add(n.nm(t,n.tw.MOUSE_LEAVE,(e=>a(!1,e.fromElement===t)),!0)),i.add(n.nm(t,n.tw.MOUSE_DOWN,(()=>a(!0,!0)),!0));const s={targetElements:[t],dispose:()=>{}};if(void 0===e.placement||"mouse"===e.placement){const e=e=>s.x=e.x+10;i.add(n.nm(t,n.tw.MOUSE_MOVE,e,!0))}i.add(h(e.delay,!1,s)),o=i}),!0);return{show:e=>{a(!1,!0),h(0,e)},hide:()=>{a(!0,!0)},update:e=>c(this,void 0,void 0,(function*(){i=e,yield null==r?void 0:r.update(i)})),dispose:()=>{d.dispose(),a(!0,!0)}}}(this.hoverDelegate,e,t);i&&this.customHovers.set(e,i)}else!function(e,t){(0,h.HD)(t)?e.title=t:(null==t?void 0:t.markdownNotSupportedFallback)?e.title=t.markdownNotSupportedFallback:e.removeAttribute("title")}(e,t);else e.removeAttribute("title")}dispose(){super.dispose();for(const e of this.customHovers.values())e.dispose();this.customHovers.clear()}}class _{constructor(e){this.container=e,this.label=void 0,this.singleLabel=void 0}setLabel(e,t){if(this.label!==e||!(0,g.fS)(this.options,t))if(this.label=e,this.options=t,"string"==typeof e)this.singleLabel||(this.container.innerText="",this.container.classList.remove("multiple"),this.singleLabel=n.R3(this.container,n.$("a.label-name",{id:null==t?void 0:t.domId}))),this.singleLabel.textContent=e;else{this.container.innerText="",this.container.classList.add("multiple"),this.singleLabel=void 0;for(let i=0;i{const o={start:n,end:n+e.length},s=i.map((e=>p.e.intersect(o,e))).filter((e=>!p.e.isEmpty(e))).map((({start:e,end:t})=>({start:e-n,end:t-n})));return n=o.end+t.length,s}))}(e,i,null==t?void 0:t.matches);for(let r=0;rthis._limit&&this._initialize(e.slice(e.length-this._limit))}_currentPosition(){const e=this._navigator.current();return e?this._elements.indexOf(e):-1}_initialize(e){this._history=new Set;for(const t of e)this._history.add(t)}get _elements(){const e=[];return this._history.forEach((t=>e.push(t))),e}}var p=i(80470),m=i(13268);const f=n.$,_={inputBackground:d.Il.fromHex("#3C3C3C"),inputForeground:d.Il.fromHex("#CCCCCC"),inputValidationInfoBorder:d.Il.fromHex("#55AAFF"),inputValidationInfoBackground:d.Il.fromHex("#063B49"),inputValidationWarningBorder:d.Il.fromHex("#B89500"),inputValidationWarningBackground:d.Il.fromHex("#352A05"),inputValidationErrorBorder:d.Il.fromHex("#BE1100"),inputValidationErrorBackground:d.Il.fromHex("#5A1D1D")};class v extends h.${constructor(e,t,i){var s;super(),this.state="idle",this.maxHeight=Number.POSITIVE_INFINITY,this._onDidChange=this._register(new c.Q5),this.onDidChange=this._onDidChange.event,this._onDidHeightChange=this._register(new c.Q5),this.onDidHeightChange=this._onDidHeightChange.event,this.contextViewProvider=t,this.options=i||Object.create(null),(0,p.jB)(this.options,_,!1),this.message=null,this.placeholder=this.options.placeholder||"",this.tooltip=null!==(s=this.options.tooltip)&&void 0!==s?s:this.placeholder||"",this.ariaLabel=this.options.ariaLabel||"",this.inputBackground=this.options.inputBackground,this.inputForeground=this.options.inputForeground,this.inputBorder=this.options.inputBorder,this.inputValidationInfoBorder=this.options.inputValidationInfoBorder,this.inputValidationInfoBackground=this.options.inputValidationInfoBackground,this.inputValidationInfoForeground=this.options.inputValidationInfoForeground,this.inputValidationWarningBorder=this.options.inputValidationWarningBorder,this.inputValidationWarningBackground=this.options.inputValidationWarningBackground,this.inputValidationWarningForeground=this.options.inputValidationWarningForeground,this.inputValidationErrorBorder=this.options.inputValidationErrorBorder,this.inputValidationErrorBackground=this.options.inputValidationErrorBackground,this.inputValidationErrorForeground=this.options.inputValidationErrorForeground,this.options.validationOptions&&(this.validation=this.options.validationOptions.validation),this.element=n.R3(e,f(".monaco-inputbox.idle"));let a=this.options.flexibleHeight?"textarea":"input",h=n.R3(this.element,f(".ibwrapper"));if(this.input=n.R3(h,f(a+".input.empty")),this.input.setAttribute("autocorrect","off"),this.input.setAttribute("autocapitalize","off"),this.input.setAttribute("spellcheck","false"),this.onfocus(this.input,(()=>this.element.classList.add("synthetic-focus"))),this.onblur(this.input,(()=>this.element.classList.remove("synthetic-focus"))),this.options.flexibleHeight){this.maxHeight="number"==typeof this.options.flexibleMaxHeight?this.options.flexibleMaxHeight:Number.POSITIVE_INFINITY,this.mirror=n.R3(h,f("div.mirror")),this.mirror.innerText=" ",this.scrollableElement=new l.NB(this.element,{vertical:1}),this.options.flexibleWidth&&(this.input.setAttribute("wrap","off"),this.mirror.style.whiteSpace="pre",this.mirror.style.wordWrap="initial"),n.R3(e,this.scrollableElement.getDomNode()),this._register(this.scrollableElement),this._register(this.scrollableElement.onScroll((e=>this.input.scrollTop=e.scrollTop)));const t=this._register(new o.Y(document,"selectionchange")),i=c.ju.filter(t.event,(()=>{const e=document.getSelection();return(null==e?void 0:e.anchorNode)===h}));this._register(i(this.updateScrollDimensions,this)),this._register(this.onDidHeightChange(this.updateScrollDimensions,this))}else this.input.type=this.options.type||"text",this.input.setAttribute("wrap","off");this.ariaLabel&&this.input.setAttribute("aria-label",this.ariaLabel),this.placeholder&&!this.options.showPlaceholderOnFocus&&this.setPlaceHolder(this.placeholder),this.tooltip&&this.setTooltip(this.tooltip),this.oninput(this.input,(()=>this.onValueChange())),this.onblur(this.input,(()=>this.onBlur())),this.onfocus(this.input,(()=>this.onFocus())),this.ignoreGesture(this.input),setTimeout((()=>this.updateMirror()),0),this.options.actions&&(this.actionbar=this._register(new r.o(this.element)),this.actionbar.push(this.options.actions,{icon:!0,label:!1})),this.applyStyles()}onBlur(){this._hideMessage(),this.options.showPlaceholderOnFocus&&this.input.setAttribute("placeholder","")}onFocus(){this._showMessage(),this.options.showPlaceholderOnFocus&&this.input.setAttribute("placeholder",this.placeholder||"")}setPlaceHolder(e){this.placeholder=e,this.input.setAttribute("placeholder",e)}setTooltip(e){this.tooltip=e,this.input.title=e}setAriaLabel(e){this.ariaLabel=e,e?this.input.setAttribute("aria-label",this.ariaLabel):this.input.removeAttribute("aria-label")}getAriaLabel(){return this.ariaLabel}get inputElement(){return this.input}get value(){return this.input.value}set value(e){this.input.value!==e&&(this.input.value=e,this.onValueChange())}get height(){return"number"==typeof this.cachedHeight?this.cachedHeight:n.wn(this.element)}focus(){this.input.focus()}blur(){this.input.blur()}hasFocus(){return document.activeElement===this.input}select(e=null){this.input.select(),e&&(this.input.setSelectionRange(e.start,e.end),e.end===this.input.value.length&&(this.input.scrollLeft=this.input.scrollWidth))}isSelectionAtEnd(){return this.input.selectionEnd===this.input.value.length&&this.input.selectionStart===this.input.selectionEnd}enable(){this.input.removeAttribute("disabled")}disable(){this.blur(),this.input.disabled=!0,this._hideMessage()}get width(){return n.w(this.input)}set width(e){if(this.options.flexibleHeight&&this.options.flexibleWidth){let t=0;if(this.mirror){t=(parseFloat(this.mirror.style.paddingLeft||"")||0)+(parseFloat(this.mirror.style.paddingRight||"")||0)}this.input.style.width=e-t+"px"}else this.input.style.width=e+"px";this.mirror&&(this.mirror.style.width=e+"px")}set paddingRight(e){this.options.flexibleHeight&&this.options.flexibleWidth?this.input.style.width=`calc(100% - ${e}px)`:this.input.style.paddingRight=e+"px",this.mirror&&(this.mirror.style.paddingRight=e+"px")}updateScrollDimensions(){if("number"!=typeof this.cachedContentHeight||"number"!=typeof this.cachedHeight||!this.scrollableElement)return;const e=this.cachedContentHeight,t=this.cachedHeight,i=this.input.scrollTop;this.scrollableElement.setScrollDimensions({scrollHeight:e,height:t}),this.scrollableElement.setScrollPosition({scrollTop:i})}showMessage(e,t){this.message=e,this.element.classList.remove("idle"),this.element.classList.remove("info"),this.element.classList.remove("warning"),this.element.classList.remove("error"),this.element.classList.add(this.classForType(e.type));const i=this.stylesForType(this.message.type);this.element.style.border=i.border?`1px solid ${i.border}`:"",(this.hasFocus()||t)&&this._showMessage()}hideMessage(){this.message=null,this.element.classList.remove("info"),this.element.classList.remove("warning"),this.element.classList.remove("error"),this.element.classList.add("idle"),this._hideMessage(),this.applyStyles()}validate(){let e=null;return this.validation&&(e=this.validation(this.value),e?(this.inputElement.setAttribute("aria-invalid","true"),this.showMessage(e)):this.inputElement.hasAttribute("aria-invalid")&&(this.inputElement.removeAttribute("aria-invalid"),this.hideMessage())),null==e?void 0:e.type}stylesForType(e){switch(e){case 1:return{border:this.inputValidationInfoBorder,background:this.inputValidationInfoBackground,foreground:this.inputValidationInfoForeground};case 2:return{border:this.inputValidationWarningBorder,background:this.inputValidationWarningBackground,foreground:this.inputValidationWarningForeground};default:return{border:this.inputValidationErrorBorder,background:this.inputValidationErrorBackground,foreground:this.inputValidationErrorForeground}}}classForType(e){switch(e){case 1:return"info";case 2:return"warning";default:return"error"}}_showMessage(){if(!this.contextViewProvider||!this.message)return;let e,t,i=()=>e.style.width=n.w(this.element)+"px";this.contextViewProvider.showContextView({getAnchor:()=>this.element,anchorAlignment:1,render:t=>{if(!this.message)return null;e=n.R3(t,f(".monaco-inputbox-container")),i();const o={inline:!0,className:"monaco-inputbox-message"},r=this.message.formatContent?(0,s.BO)(this.message.content,o):(0,s.IY)(this.message.content,o);r.classList.add(this.classForType(this.message.type));const a=this.stylesForType(this.message.type);return r.style.backgroundColor=a.background?a.background.toString():"",r.style.color=a.foreground?a.foreground.toString():"",r.style.border=a.border?`1px solid ${a.border}`:"",n.R3(e,r),null},onHide:()=>{this.state="closed"},layout:i}),t=3===this.message.type?m.N("alertErrorMessage","Error: {0}",this.message.content):2===this.message.type?m.N("alertWarningMessage","Warning: {0}",this.message.content):m.N("alertInfoMessage","Info: {0}",this.message.content),a.Z9(t),this.state="open"}_hideMessage(){this.contextViewProvider&&("open"===this.state&&this.contextViewProvider.hideContextView(),this.state="idle")}onValueChange(){this._onDidChange.fire(this.value),this.validate(),this.updateMirror(),this.input.classList.toggle("empty",!this.value),"open"===this.state&&this.contextViewProvider&&this.contextViewProvider.layout()}updateMirror(){if(!this.mirror)return;const e=this.value,t=10===e.charCodeAt(e.length-1)?" ":"";(e+t).replace(/\u000c/g,"")?this.mirror.textContent=e+t:this.mirror.innerText=" ",this.layout()}style(e){this.inputBackground=e.inputBackground,this.inputForeground=e.inputForeground,this.inputBorder=e.inputBorder,this.inputValidationInfoBackground=e.inputValidationInfoBackground,this.inputValidationInfoForeground=e.inputValidationInfoForeground,this.inputValidationInfoBorder=e.inputValidationInfoBorder,this.inputValidationWarningBackground=e.inputValidationWarningBackground,this.inputValidationWarningForeground=e.inputValidationWarningForeground,this.inputValidationWarningBorder=e.inputValidationWarningBorder,this.inputValidationErrorBackground=e.inputValidationErrorBackground,this.inputValidationErrorForeground=e.inputValidationErrorForeground,this.inputValidationErrorBorder=e.inputValidationErrorBorder,this.applyStyles()}applyStyles(){const e=this.inputBackground?this.inputBackground.toString():"",t=this.inputForeground?this.inputForeground.toString():"",i=this.inputBorder?this.inputBorder.toString():"";this.element.style.backgroundColor=e,this.element.style.color=t,this.input.style.backgroundColor="inherit",this.input.style.color=t,this.element.style.borderWidth=i?"1px":"",this.element.style.borderStyle=i?"solid":"",this.element.style.borderColor=i}layout(){if(!this.mirror)return;const e=this.cachedContentHeight;this.cachedContentHeight=n.wn(this.mirror),e!==this.cachedContentHeight&&(this.cachedHeight=Math.min(this.cachedContentHeight,this.maxHeight),this.input.style.height=this.cachedHeight+"px",this._onDidHeightChange.fire(this.cachedContentHeight))}insertAtCursor(e){const t=this.inputElement,i=t.selectionStart,n=t.selectionEnd,o=t.value;null!==i&&null!==n&&(this.value=o.substr(0,i)+e+o.substr(n),t.setSelectionRange(i+1,i+1),this.layout())}dispose(){this._hideMessage(),this.message=null,this.actionbar&&this.actionbar.dispose(),super.dispose()}}class b extends v{constructor(e,t,i){const n=m.N({key:"history.inputbox.hint",comment:["Text will be prefixed with ⇅ plus a single space, then used as a hint where input field keeps history"]},"for history"),o=` or ⇅ ${n}`,s=` (⇅ ${n})`;super(e,t,i),this.history=new g(i.history,100);const r=()=>{if(i.showHistoryHint&&i.showHistoryHint()&&!this.placeholder.endsWith(o)&&!this.placeholder.endsWith(s)&&this.history.getHistory().length){const e=this.placeholder.endsWith(")")?o:s,t=this.placeholder+e;i.showPlaceholderOnFocus&&document.activeElement!==this.input?this.placeholder=t:this.setPlaceHolder(t)}};this.observer=new MutationObserver(((e,t)=>{e.forEach((e=>{e.target.textContent||r()}))})),this.observer.observe(this.input,{attributeFilter:["class"]}),this.onfocus(this.input,(()=>r())),this.onblur(this.input,(()=>{const e=e=>{if(this.placeholder.endsWith(e)){const t=this.placeholder.slice(0,this.placeholder.length-e.length);return i.showPlaceholderOnFocus?this.placeholder=t:this.setPlaceHolder(t),!0}return!1};e(s)||e(o)}))}dispose(){super.dispose(),this.observer&&(this.observer.disconnect(),this.observer=void 0)}addToHistory(){this.value&&this.value!==this.getCurrentValue()&&this.history.add(this.value)}showNextValue(){this.history.has(this.value)||this.addToHistory();let e=this.getNextValue();e&&(e=e===this.value?this.getNextValue():e),e&&(this.value=e,a.i7(this.value))}showPreviousValue(){this.history.has(this.value)||this.addToHistory();let e=this.getPreviousValue();e&&(e=e===this.value?this.getPreviousValue():e),e&&(this.value=e,a.i7(this.value))}getCurrentValue(){let e=this.history.current();return e||(e=this.history.last(),this.history.next()),e}getPreviousValue(){return this.history.previous()||this.history.first()}getNextValue(){return this.history.next()||this.history.last()}}},15674:function(e,t,i){"use strict";i.d(t,{kX:function(){return y},Bv:function(){return k}});var n=i(87783),o=i(84282),s=i(69454),r=i(8035),a=i(60537),l=i(17671),h=i(43506),d=i(50431),c=i(85402),u=i(4348),g=i(69323),p=i(80470),m=i(17981),f=i(28962);function _(e,t){const i=[];for(let n of t){if(e.start>=n.range.end)continue;if(e.end({range:v(e.range,n),size:e.size}))),r=i.map(((t,i)=>({range:{start:e+i,end:e+i+1},size:t.size})));this.groups=function(...e){return function(e){const t=[];let i=null;for(let n of e){const e=n.range.start,o=n.range.end,s=n.size;i&&s===i.size?i.range.end=o:(i={range:{start:e,end:o},size:s},t.push(i))}return t}(e.reduce(((e,t)=>e.concat(t)),[]))}(o,r,s),this._size=this.groups.reduce(((e,t)=>e+t.size*(t.range.end-t.range.start)),0)}get count(){const e=this.groups.length;return e?this.groups[e-1].range.end:0}get size(){return this._size}indexAt(e){if(e<0)return-1;let t=0,i=0;for(let n of this.groups){const o=n.range.end-n.range.start,s=i+o*n.size;if(e{for(const i of e){this.getRenderer(t).disposeTemplate(i.templateData),i.templateData=null}})),this.cache.clear()}getRenderer(e){const t=this.renderers.get(e);if(!t)throw new Error(`No renderer found for ${e}`);return t}}var w=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};const S={useShadows:!0,verticalScrollMode:1,setRowLineHeight:!0,setRowHeight:!0,supportDynamicHeights:!1,dnd:{getDragElements(e){return[e]},getDragURI(){return null},onDragStart(){},onDragOver(){return!1},drop(){}},horizontalScrolling:!1,transformOptimization:!0,alwaysConsumeMouseWheel:!0};class y{constructor(e){this.elements=e}update(){}getData(){return this.elements}}class L{constructor(e){this.elements=e}update(){}getData(){return this.elements}}class N{constructor(){this.types=[],this.files=[]}update(e){if(e.types&&this.types.splice(0,this.types.length,...e.types),e.files){this.files.splice(0,this.files.length);for(let t=0;ti,(null==e?void 0:e.getPosInSet)?this.getPosInSet=e.getPosInSet.bind(e):this.getPosInSet=(e,t)=>t+1,(null==e?void 0:e.getRole)?this.getRole=e.getRole.bind(e):this.getRole=e=>"listitem",(null==e?void 0:e.isChecked)?this.isChecked=e.isChecked.bind(e):this.isChecked=e=>{}}}class k{constructor(e,t,i,n=S){if(this.virtualDelegate=t,this.domId="list_id_"+ ++k.InstanceCount,this.renderers=new Map,this.renderWidth=0,this._scrollHeight=0,this.scrollableElementUpdateDisposable=null,this.scrollableElementWidthDelayer=new d.vp(50),this.splicing=!1,this.dragOverAnimationStopDisposable=g.JT.None,this.dragOverMouseY=0,this.canDrop=!1,this.currentDragFeedbackDisposable=g.JT.None,this.onDragLeaveTimeout=g.JT.None,this.disposables=new g.SL,this._onDidChangeContentHeight=new u.Q5,this._horizontalScrolling=!1,n.horizontalScrolling&&n.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");this.items=[],this.itemId=0,this.rangeMap=new b;for(const e of i)this.renderers.set(e.templateId,e);this.cache=this.disposables.add(new C(this.renderers)),this.lastRenderTop=0,this.lastRenderHeight=0,this.domNode=document.createElement("div"),this.domNode.className="monaco-list",this.domNode.classList.add(this.domId),this.domNode.tabIndex=0,this.domNode.classList.toggle("mouse-support","boolean"!=typeof n.mouseSupport||n.mouseSupport),this._horizontalScrolling=(0,p.CJ)(n,(e=>e.horizontalScrolling),S.horizontalScrolling),this.domNode.classList.toggle("horizontal-scrolling",this._horizontalScrolling),this.additionalScrollHeight=void 0===n.additionalScrollHeight?0:n.additionalScrollHeight,this.accessibilityProvider=new x(n.accessibilityProvider),this.rowsContainer=document.createElement("div"),this.rowsContainer.className="monaco-list-rows";(0,p.CJ)(n,(e=>e.transformOptimization),S.transformOptimization)&&(this.rowsContainer.style.transform="translate3d(0px, 0px, 0px)"),this.disposables.add(a.o.addTarget(this.rowsContainer)),this.scrollable=new f.Rm((0,p.CJ)(n,(e=>e.smoothScrolling),!1)?125:0,(e=>(0,s.jL)(e))),this.scrollableElement=this.disposables.add(new l.$Z(this.rowsContainer,{alwaysConsumeMouseWheel:(0,p.CJ)(n,(e=>e.alwaysConsumeMouseWheel),S.alwaysConsumeMouseWheel),horizontal:1,vertical:(0,p.CJ)(n,(e=>e.verticalScrollMode),S.verticalScrollMode),useShadows:(0,p.CJ)(n,(e=>e.useShadows),S.useShadows),mouseWheelScrollSensitivity:n.mouseWheelScrollSensitivity,fastScrollSensitivity:n.fastScrollSensitivity},this.scrollable)),this.domNode.appendChild(this.scrollableElement.getDomNode()),e.appendChild(this.domNode),this.scrollableElement.onScroll(this.onScroll,this,this.disposables),this.disposables.add((0,s.nm)(this.rowsContainer,a.t.Change,(e=>this.onTouchChange(e)))),this.disposables.add((0,s.nm)(this.scrollableElement.getDomNode(),"scroll",(e=>e.target.scrollTop=0))),this.disposables.add((0,s.nm)(this.domNode,"dragover",(e=>this.onDragOver(this.toDragEvent(e))))),this.disposables.add((0,s.nm)(this.domNode,"drop",(e=>this.onDrop(this.toDragEvent(e))))),this.disposables.add((0,s.nm)(this.domNode,"dragleave",(e=>this.onDragLeave(this.toDragEvent(e))))),this.disposables.add((0,s.nm)(this.domNode,"dragend",(e=>this.onDragEnd(e)))),this.setRowLineHeight=(0,p.CJ)(n,(e=>e.setRowLineHeight),S.setRowLineHeight),this.setRowHeight=(0,p.CJ)(n,(e=>e.setRowHeight),S.setRowHeight),this.supportDynamicHeights=(0,p.CJ)(n,(e=>e.supportDynamicHeights),S.supportDynamicHeights),this.dnd=(0,p.CJ)(n,(e=>e.dnd),S.dnd),this.layout()}get contentHeight(){return this.rangeMap.size}get horizontalScrolling(){return this._horizontalScrolling}set horizontalScrolling(e){if(e!==this._horizontalScrolling){if(e&&this.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");if(this._horizontalScrolling=e,this.domNode.classList.toggle("horizontal-scrolling",this._horizontalScrolling),this._horizontalScrolling){for(const e of this.items)this.measureItemWidth(e);this.updateScrollWidth(),this.scrollableElement.setScrollDimensions({width:(0,s.FK)(this.domNode)}),this.rowsContainer.style.width=`${Math.max(this.scrollWidth||0,this.renderWidth)}px`}else this.scrollableElementWidthDelayer.cancel(),this.scrollableElement.setScrollDimensions({width:this.renderWidth,scrollWidth:this.renderWidth}),this.rowsContainer.style.width=""}}updateOptions(e){void 0!==e.additionalScrollHeight&&(this.additionalScrollHeight=e.additionalScrollHeight,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),void 0!==e.smoothScrolling&&this.scrollable.setSmoothScrollDuration(e.smoothScrolling?125:0),void 0!==e.horizontalScrolling&&(this.horizontalScrolling=e.horizontalScrolling),void 0!==e.mouseWheelScrollSensitivity&&this.scrollableElement.updateOptions({mouseWheelScrollSensitivity:e.mouseWheelScrollSensitivity}),void 0!==e.fastScrollSensitivity&&this.scrollableElement.updateOptions({fastScrollSensitivity:e.fastScrollSensitivity})}splice(e,t,i=[]){if(this.splicing)throw new Error("Can't run recursive splices.");this.splicing=!0;try{return this._splice(e,t,i)}finally{this.splicing=!1,this._onDidChangeContentHeight.fire(this.contentHeight)}}_splice(e,t,i=[]){const n=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),o={start:e,end:e+t},s=m.e.intersect(n,o),r=new Map;for(let e=s.start;e({id:String(this.itemId++),element:e,templateId:this.virtualDelegate.getTemplateId(e),size:this.virtualDelegate.getHeight(e),width:void 0,hasDynamicHeight:!!this.virtualDelegate.hasDynamicHeight&&this.virtualDelegate.hasDynamicHeight(e),lastDynamicHeightWidth:void 0,row:null,uri:void 0,dropTarget:!1,dragStartDisposable:g.JT.None})));let c;0===e&&t>=this.items.length?(this.rangeMap=new b,this.rangeMap.splice(0,0,d),c=this.items,this.items=d):(this.rangeMap.splice(e,t,d),c=this.items.splice(e,t,...d));const u=i.length-t,p=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),f=v(l,u),_=m.e.intersect(p,f);for(let e=_.start;e<_.end;e++)this.updateItemInDOM(this.items[e],e);const C=m.e.relativeComplement(f,p);for(const e of C)for(let t=e.start;tv(e,u))),S=[{start:e,end:e+i.length},...w].map((e=>m.e.intersect(p,e))),y=this.getNextToLastElement(S);for(const e of S)for(let t=e.start;te.element))}eventuallyUpdateScrollDimensions(){this._scrollHeight=this.contentHeight,this.rowsContainer.style.height=`${this._scrollHeight}px`,this.scrollableElementUpdateDisposable||(this.scrollableElementUpdateDisposable=(0,s.jL)((()=>{this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight}),this.updateScrollWidth(),this.scrollableElementUpdateDisposable=null})))}eventuallyUpdateScrollWidth(){this.horizontalScrolling?this.scrollableElementWidthDelayer.trigger((()=>this.updateScrollWidth())):this.scrollableElementWidthDelayer.cancel()}updateScrollWidth(){if(!this.horizontalScrolling)return;let e=0;for(const t of this.items)void 0!==t.width&&(e=Math.max(e,t.width));this.scrollWidth=e,this.scrollableElement.setScrollDimensions({scrollWidth:0===e?0:e+10})}rerender(){if(this.supportDynamicHeights){for(const e of this.items)e.lastDynamicHeightWidth=void 0;this._rerender(this.lastRenderTop,this.lastRenderHeight)}}get length(){return this.items.length}get renderHeight(){return this.scrollableElement.getScrollDimensions().height}element(e){return this.items[e].element}domElement(e){const t=this.items[e].row;return t&&t.domNode}elementHeight(e){return this.items[e].size}elementTop(e){return this.rangeMap.positionAt(e)}indexAt(e){return this.rangeMap.indexAt(e)}indexAfter(e){return this.rangeMap.indexAfter(e)}layout(e,t){let i={height:"number"==typeof e?e:(0,s.If)(this.domNode)};this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,i.scrollHeight=this.scrollHeight),this.scrollableElement.setScrollDimensions(i),void 0!==t&&(this.renderWidth=t,this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight)),this.horizontalScrolling&&this.scrollableElement.setScrollDimensions({width:"number"==typeof t?t:(0,s.FK)(this.domNode)})}render(e,t,i,n,o,s=!1){const r=this.getRenderRange(t,i),a=m.e.relativeComplement(r,e),l=m.e.relativeComplement(e,r),h=this.getNextToLastElement(a);if(s){const t=m.e.intersect(e,r);for(let e=t.start;ethis.onDragStart(n.element,l,e)))),this.horizontalScrolling&&(this.measureItemWidth(n),this.eventuallyUpdateScrollWidth())}measureItemWidth(e){if(!e.row||!e.row.domNode)return;e.row.domNode.style.width=n.vU?"-moz-fit-content":"fit-content",e.width=(0,s.FK)(e.row.domNode);const t=window.getComputedStyle(e.row.domNode);t.paddingLeft&&(e.width+=parseFloat(t.paddingLeft)),t.paddingRight&&(e.width+=parseFloat(t.paddingRight)),e.row.domNode.style.width=""}updateItemInDOM(e,t){e.row.domNode.style.top=`${this.elementTop(t)}px`,this.setRowHeight&&(e.row.domNode.style.height=`${e.size}px`),this.setRowLineHeight&&(e.row.domNode.style.lineHeight=`${e.size}px`),e.row.domNode.setAttribute("data-index",`${t}`),e.row.domNode.setAttribute("data-last-element",t===this.length-1?"true":"false"),e.row.domNode.setAttribute("data-parity",t%2==0?"even":"odd"),e.row.domNode.setAttribute("aria-setsize",String(this.accessibilityProvider.getSetSize(e.element,t,this.length))),e.row.domNode.setAttribute("aria-posinset",String(this.accessibilityProvider.getPosInSet(e.element,t))),e.row.domNode.setAttribute("id",this.getElementDomId(t)),e.row.domNode.classList.toggle("drop-target",e.dropTarget)}removeItemFromDOM(e){const t=this.items[e];if(t.dragStartDisposable.dispose(),t.row){const i=this.renderers.get(t.templateId);i&&i.disposeElement&&i.disposeElement(t.element,e,t.row.templateData,t.size),this.cache.release(t.row),t.row=null}this.horizontalScrolling&&this.eventuallyUpdateScrollWidth()}getScrollTop(){return this.scrollableElement.getScrollPosition().scrollTop}setScrollTop(e,t){this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),this.scrollableElement.setScrollPosition({scrollTop:e,reuseAnimation:t})}get scrollTop(){return this.getScrollTop()}set scrollTop(e){this.setScrollTop(e)}get scrollHeight(){return this._scrollHeight+(this.horizontalScrolling?10:0)+this.additionalScrollHeight}get onMouseClick(){return u.ju.map(this.disposables.add(new r.Y(this.domNode,"click")).event,(e=>this.toMouseEvent(e)))}get onMouseDblClick(){return u.ju.map(this.disposables.add(new r.Y(this.domNode,"dblclick")).event,(e=>this.toMouseEvent(e)))}get onMouseMiddleClick(){return u.ju.filter(u.ju.map(this.disposables.add(new r.Y(this.domNode,"auxclick")).event,(e=>this.toMouseEvent(e))),(e=>1===e.browserEvent.button))}get onMouseDown(){return u.ju.map(this.disposables.add(new r.Y(this.domNode,"mousedown")).event,(e=>this.toMouseEvent(e)))}get onContextMenu(){return u.ju.any(u.ju.map(this.disposables.add(new r.Y(this.domNode,"contextmenu")).event,(e=>this.toMouseEvent(e))),u.ju.map(this.disposables.add(new r.Y(this.domNode,a.t.Contextmenu)).event,(e=>this.toGestureEvent(e))))}get onTouchStart(){return u.ju.map(this.disposables.add(new r.Y(this.domNode,"touchstart")).event,(e=>this.toTouchEvent(e)))}get onTap(){return u.ju.map(this.disposables.add(new r.Y(this.rowsContainer,a.t.Tap)).event,(e=>this.toGestureEvent(e)))}toMouseEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),i=void 0===t?void 0:this.items[t];return{browserEvent:e,index:t,element:i&&i.element}}toTouchEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),i=void 0===t?void 0:this.items[t];return{browserEvent:e,index:t,element:i&&i.element}}toGestureEvent(e){const t=this.getItemIndexFromEventTarget(e.initialTarget||null),i=void 0===t?void 0:this.items[t];return{browserEvent:e,index:t,element:i&&i.element}}toDragEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),i=void 0===t?void 0:this.items[t];return{browserEvent:e,index:t,element:i&&i.element}}onScroll(e){try{const t=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight);this.render(t,e.scrollTop,e.height,e.scrollLeft,e.scrollWidth),this.supportDynamicHeights&&this._rerender(e.scrollTop,e.height,e.inSmoothScrolling)}catch(t){throw console.error("Got bad scroll event:",e),t}}onTouchChange(e){e.preventDefault(),e.stopPropagation(),this.scrollTop-=e.translationY}onDragStart(e,t,i){if(!i.dataTransfer)return;const n=this.dnd.getDragElements(e);if(i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setData(o.go.TEXT,t),i.dataTransfer.setDragImage){let e;this.dnd.getDragLabel&&(e=this.dnd.getDragLabel(n,i)),void 0===e&&(e=String(n.length));const t=(0,s.$)(".monaco-drag-image");t.textContent=e,document.body.appendChild(t),i.dataTransfer.setDragImage(t,-10,-10),setTimeout((()=>document.body.removeChild(t)),0)}this.currentDragData=new y(n),o.P$.CurrentDragAndDropData=new L(n),this.dnd.onDragStart&&this.dnd.onDragStart(this.currentDragData,i)}onDragOver(e){if(e.browserEvent.preventDefault(),this.onDragLeaveTimeout.dispose(),o.P$.CurrentDragAndDropData&&"vscode-ui"===o.P$.CurrentDragAndDropData.getData())return!1;if(this.setupDragAndDropScrollTopAnimation(e.browserEvent),!e.browserEvent.dataTransfer)return!1;if(!this.currentDragData)if(o.P$.CurrentDragAndDropData)this.currentDragData=o.P$.CurrentDragAndDropData;else{if(!e.browserEvent.dataTransfer.types)return!1;this.currentDragData=new N}const t=this.dnd.onDragOver(this.currentDragData,e.element,e.index,e.browserEvent);if(this.canDrop="boolean"==typeof t?t:t.accept,!this.canDrop)return this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),!1;let i;if(e.browserEvent.dataTransfer.dropEffect="boolean"!=typeof t&&0===t.effect?"copy":"move",i="boolean"!=typeof t&&t.feedback?t.feedback:void 0===e.index?[-1]:[e.index],i=(0,h.EB)(i).filter((e=>e>=-1&&ee-t)),i=-1===i[0]?[-1]:i,n=this.currentDragFeedback,s=i,Array.isArray(n)&&Array.isArray(s)?(0,h.fS)(n,s):n===s)return!0;var n,s;if(this.currentDragFeedback=i,this.currentDragFeedbackDisposable.dispose(),-1===i[0])this.domNode.classList.add("drop-target"),this.rowsContainer.classList.add("drop-target"),this.currentDragFeedbackDisposable=(0,g.OF)((()=>{this.domNode.classList.remove("drop-target"),this.rowsContainer.classList.remove("drop-target")}));else{for(const e of i){const t=this.items[e];t.dropTarget=!0,t.row&&t.row.domNode.classList.add("drop-target")}this.currentDragFeedbackDisposable=(0,g.OF)((()=>{for(const e of i){const t=this.items[e];t.dropTarget=!1,t.row&&t.row.domNode.classList.remove("drop-target")}}))}return!0}onDragLeave(e){var t,i;this.onDragLeaveTimeout.dispose(),this.onDragLeaveTimeout=(0,d.Vg)((()=>this.clearDragOverFeedback()),100),this.currentDragData&&(null===(i=(t=this.dnd).onDragLeave)||void 0===i||i.call(t,this.currentDragData,e.element,e.index,e.browserEvent))}onDrop(e){if(!this.canDrop)return;const t=this.currentDragData;this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.currentDragData=void 0,o.P$.CurrentDragAndDropData=void 0,t&&e.browserEvent.dataTransfer&&(e.browserEvent.preventDefault(),t.update(e.browserEvent.dataTransfer),this.dnd.drop(t,e.element,e.index,e.browserEvent))}onDragEnd(e){this.canDrop=!1,this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.currentDragData=void 0,o.P$.CurrentDragAndDropData=void 0,this.dnd.onDragEnd&&this.dnd.onDragEnd(e)}clearDragOverFeedback(){this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),this.currentDragFeedbackDisposable=g.JT.None}setupDragAndDropScrollTopAnimation(e){if(!this.dragOverAnimationDisposable){const e=(0,s.xQ)(this.domNode).top;this.dragOverAnimationDisposable=(0,s.jt)(this.animateDragAndDropScrollTop.bind(this,e))}this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationStopDisposable=(0,d.Vg)((()=>{this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)}),1e3),this.dragOverMouseY=e.pageY}animateDragAndDropScrollTop(e){if(void 0===this.dragOverMouseY)return;const t=this.dragOverMouseY-e,i=this.renderHeight-35;t<35?this.scrollTop+=Math.max(-14,Math.floor(.3*(t-35))):t>i&&(this.scrollTop+=Math.min(14,Math.floor(.3*(t-i))))}teardownDragAndDropScrollTopAnimation(){this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)}getItemIndexFromEventTarget(e){const t=this.scrollableElement.getDomNode();let i=e;for(;i instanceof HTMLElement&&i!==this.rowsContainer&&t.contains(i);){const e=i.getAttribute("data-index");if(e){const t=Number(e);if(!isNaN(t))return t}i=i.parentElement}}getRenderRange(e,t){return{start:this.rangeMap.indexAt(e),end:this.rangeMap.indexAfter(e+t-1)}}_rerender(e,t,i){const n=this.getRenderRange(e,t);let o,s;e===this.elementTop(n.start)?(o=n.start,s=0):n.end-n.start>1&&(o=n.start+1,s=this.elementTop(o)-e);let r=0;for(;;){const a=this.getRenderRange(e,t);let l=!1;for(let e=a.start;en.splice(e,t,i)))}}var h=i(43506),d=i(50431),c=i(51737),u=i(85402),g=i(4348),p=i(99599),m=i(69323),f=i(56722),_=i(80470),v=i(23345),b=i(72999);i(1702);class C extends Error{constructor(e,t){super(`ListError [${e}] ${t}`)}}var w,S=i(15674),y=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},L=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};class N{constructor(e){this.trait=e,this.renderedElements=[]}get templateId(){return`template:${this.trait.trait}`}renderTemplate(e){return e}renderElement(e,t,i){const n=this.renderedElements.findIndex((e=>e.templateData===i));if(n>=0){const e=this.renderedElements[n];this.trait.unrender(i),e.index=t}else{const e={index:t,templateData:i};this.renderedElements.push(e)}this.trait.renderIndex(t,i)}splice(e,t,i){const n=[];for(const o of this.renderedElements)o.index=e+t&&n.push({index:o.index+i-t,templateData:o.templateData});this.renderedElements=n}renderIndexes(e){for(const{index:t,templateData:i}of this.renderedElements)e.indexOf(t)>-1&&this.trait.renderIndex(t,i)}disposeTemplate(e){const t=this.renderedElements.findIndex((t=>t.templateData===e));t<0||this.renderedElements.splice(t,1)}}class x{constructor(e){this._trait=e,this.length=0,this.indexes=[],this.sortedIndexes=[],this._onChange=new g.Q5,this.onChange=this._onChange.event}get trait(){return this._trait}get renderer(){return new N(this)}splice(e,t,i){var n;t=Math.max(0,Math.min(t,this.length-e));const o=i.length-t,s=e+t,r=[...this.sortedIndexes.filter((t=>tt?i+e:-1)).filter((e=>-1!==e)),...this.sortedIndexes.filter((e=>e>=s)).map((e=>e+o))],a=this.length+o;if(this.sortedIndexes.length>0&&0===r.length&&a>0){const t=null!==(n=this.sortedIndexes.find((t=>t>=e)))&&void 0!==n?n:a-1;r.push(Math.min(t,a-1))}this.renderer.splice(e,t,i.length),this._set(r,r),this.length=a}renderIndex(e,t){t.classList.toggle(this._trait,this.contains(e))}unrender(e){e.classList.remove(this._trait)}set(e,t){return this._set(e,[...e].sort(K),t)}_set(e,t,i){const n=this.indexes,o=this.sortedIndexes;this.indexes=e,this.sortedIndexes=t;const s=z(o,e);return this.renderer.renderIndexes(s),this._onChange.fire({indexes:e,browserEvent:i}),n}get(){return this.indexes}contains(e){return(0,h.ry)(this.sortedIndexes,e,K)>=0}dispose(){(0,m.B9)(this._onChange)}}y([u.H],x.prototype,"renderer",null);class k extends x{constructor(e){super("selected"),this.setAriaSelected=e}renderIndex(e,t){super.renderIndex(e,t),this.setAriaSelected&&(this.contains(e)?t.setAttribute("aria-selected","true"):t.setAttribute("aria-selected","false"))}}class D{constructor(e,t,i){this.trait=e,this.view=t,this.identityProvider=i}splice(e,t,i){if(!this.identityProvider)return this.trait.splice(e,t,i.map((()=>!1)));const n=this.trait.get().map((e=>this.identityProvider.getId(this.view.element(e)).toString())),o=i.map((e=>n.indexOf(this.identityProvider.getId(e).toString())>-1));this.trait.splice(e,t,o)}}function E(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName}function I(e){return!!e.classList.contains("monaco-editor")||!e.classList.contains("monaco-list")&&(!!e.parentElement&&I(e.parentElement))}class T{constructor(e,t,i){this.list=e,this.view=t,this.disposables=new m.SL,this.multipleSelectionDisposables=new m.SL,this.onKeyDown.filter((e=>3===e.keyCode)).on(this.onEnter,this,this.disposables),this.onKeyDown.filter((e=>16===e.keyCode)).on(this.onUpArrow,this,this.disposables),this.onKeyDown.filter((e=>18===e.keyCode)).on(this.onDownArrow,this,this.disposables),this.onKeyDown.filter((e=>11===e.keyCode)).on(this.onPageUpArrow,this,this.disposables),this.onKeyDown.filter((e=>12===e.keyCode)).on(this.onPageDownArrow,this,this.disposables),this.onKeyDown.filter((e=>9===e.keyCode)).on(this.onEscape,this,this.disposables),!1!==i.multipleSelectionSupport&&this.onKeyDown.filter((e=>(v.dz?e.metaKey:e.ctrlKey)&&31===e.keyCode)).on(this.onCtrlA,this,this.multipleSelectionDisposables)}get onKeyDown(){return g.ju.chain(this.disposables.add(new o.Y(this.view.domNode,"keydown")).event).filter((e=>!E(e.target))).map((e=>new s.y(e)))}updateOptions(e){void 0!==e.multipleSelectionSupport&&(this.multipleSelectionDisposables.clear(),e.multipleSelectionSupport&&this.onKeyDown.filter((e=>(v.dz?e.metaKey:e.ctrlKey)&&31===e.keyCode)).on(this.onCtrlA,this,this.multipleSelectionDisposables))}onEnter(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection(this.list.getFocus(),e.browserEvent)}onUpArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusPrevious(1,!1,e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onDownArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusNext(1,!1,e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onPageUpArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusPreviousPage(e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onPageDownArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusNextPage(e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onCtrlA(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection((0,h.w6)(this.list.length),e.browserEvent),this.list.setAnchor(void 0),this.view.domNode.focus()}onEscape(e){this.list.getSelection().length&&(e.preventDefault(),e.stopPropagation(),this.list.setSelection([],e.browserEvent),this.list.setAnchor(void 0),this.view.domNode.focus())}dispose(){this.disposables.dispose(),this.multipleSelectionDisposables.dispose()}}y([u.H],T.prototype,"onKeyDown",null),function(e){e[e.Idle=0]="Idle",e[e.Typing=1]="Typing"}(w||(w={}));const M=new class{mightProducePrintableCharacter(e){return!(e.ctrlKey||e.metaKey||e.altKey)&&(e.keyCode>=31&&e.keyCode<=56||e.keyCode>=21&&e.keyCode<=30||e.keyCode>=93&&e.keyCode<=102||e.keyCode>=80&&e.keyCode<=90)}};class A{constructor(e,t,i,n){this.list=e,this.view=t,this.keyboardNavigationLabelProvider=i,this.delegate=n,this.enabled=!1,this.state=w.Idle,this.automaticKeyboardNavigation=!0,this.triggered=!1,this.previouslyFocused=-1,this.enabledDisposables=new m.SL,this.disposables=new m.SL,this.updateOptions(e.options)}updateOptions(e){void 0===e.enableKeyboardNavigation||!!e.enableKeyboardNavigation?this.enable():this.disable(),void 0!==e.automaticKeyboardNavigation&&(this.automaticKeyboardNavigation=e.automaticKeyboardNavigation)}enable(){if(this.enabled)return;const e=g.ju.chain(this.enabledDisposables.add(new o.Y(this.view.domNode,"keydown")).event).filter((e=>!E(e.target))).filter((()=>this.automaticKeyboardNavigation||this.triggered)).map((e=>new s.y(e))).filter((e=>this.delegate.mightProducePrintableCharacter(e))).forEach((e=>{e.stopPropagation(),e.preventDefault()})).map((e=>e.browserEvent.key)).event,t=g.ju.debounce(e,(()=>null),800);g.ju.reduce(g.ju.any(e,t),((e,t)=>null===t?null:(e||"")+t))(this.onInput,this,this.enabledDisposables),t(this.onClear,this,this.enabledDisposables),this.enabled=!0,this.triggered=!1}disable(){this.enabled&&(this.enabledDisposables.clear(),this.enabled=!1,this.triggered=!1)}onClear(){var e;const t=this.list.getFocus();if(t.length>0&&t[0]===this.previouslyFocused){const i=null===(e=this.list.options.accessibilityProvider)||void 0===e?void 0:e.getAriaLabel(this.list.element(t[0]));i&&(0,a.Z9)(i)}this.previouslyFocused=-1}onInput(e){if(!e)return this.state=w.Idle,void(this.triggered=!1);const t=this.list.getFocus(),i=t.length>0?t[0]:0,n=this.state===w.Idle?1:0;this.state=w.Typing;for(let t=0;t!E(e.target))).map((e=>new s.y(e))).filter((e=>!(2!==e.keyCode||e.ctrlKey||e.metaKey||e.shiftKey||e.altKey))).on(this.onTab,this,this.disposables)}onTab(e){if(e.target!==this.view.domNode)return;const t=this.list.getFocus();if(0===t.length)return;const i=this.view.domElement(t[0]);if(!i)return;const n=i.querySelector("[tabIndex]");if(!(n&&n instanceof HTMLElement&&-1!==n.tabIndex))return;const o=window.getComputedStyle(n);"hidden"!==o.visibility&&"none"!==o.display&&(e.preventDefault(),e.stopPropagation(),n.focus())}dispose(){this.disposables.dispose()}}function O(e){return v.dz?e.browserEvent.metaKey:e.browserEvent.ctrlKey}function P(e){return e.browserEvent.shiftKey}const F={isSelectionSingleChangeEvent:O,isSelectionRangeChangeEvent:P};class B{constructor(e){this.list=e,this.disposables=new m.SL,this._onPointer=new g.Q5,this.onPointer=this._onPointer.event,!1!==e.options.multipleSelectionSupport&&(this.multipleSelectionController=this.list.options.multipleSelectionController||F),this.mouseSupport=void 0===e.options.mouseSupport||!!e.options.mouseSupport,this.mouseSupport&&(e.onMouseDown(this.onMouseDown,this,this.disposables),e.onContextMenu(this.onContextMenu,this,this.disposables),e.onMouseDblClick(this.onDoubleClick,this,this.disposables),e.onTouchStart(this.onMouseDown,this,this.disposables),this.disposables.add(r.o.addTarget(e.getHTMLElement()))),g.ju.any(e.onMouseClick,e.onMouseMiddleClick,e.onTap)(this.onViewPointer,this,this.disposables)}updateOptions(e){void 0!==e.multipleSelectionSupport&&(this.multipleSelectionController=void 0,e.multipleSelectionSupport&&(this.multipleSelectionController=this.list.options.multipleSelectionController||F))}isSelectionSingleChangeEvent(e){return!!this.multipleSelectionController&&this.multipleSelectionController.isSelectionSingleChangeEvent(e)}isSelectionRangeChangeEvent(e){return!!this.multipleSelectionController&&this.multipleSelectionController.isSelectionRangeChangeEvent(e)}isSelectionChangeEvent(e){return this.isSelectionSingleChangeEvent(e)||this.isSelectionRangeChangeEvent(e)}onMouseDown(e){I(e.browserEvent.target)||document.activeElement!==e.browserEvent.target&&this.list.domFocus()}onContextMenu(e){if(I(e.browserEvent.target))return;const t=void 0===e.index?[]:[e.index];this.list.setFocus(t,e.browserEvent)}onViewPointer(e){if(!this.mouseSupport)return;if(E(e.browserEvent.target)||I(e.browserEvent.target))return;const t=e.index;return void 0===t?(this.list.setFocus([],e.browserEvent),this.list.setSelection([],e.browserEvent),void this.list.setAnchor(void 0)):this.isSelectionRangeChangeEvent(e)||this.isSelectionChangeEvent(e)?this.changeSelection(e):(this.list.setFocus([t],e.browserEvent),this.list.setAnchor(t),(i=e.browserEvent)instanceof MouseEvent&&2===i.button||this.list.setSelection([t],e.browserEvent),void this._onPointer.fire(e));var i}onDoubleClick(e){if(E(e.browserEvent.target)||I(e.browserEvent.target))return;if(this.isSelectionChangeEvent(e))return;const t=this.list.getFocus();this.list.setSelection(t,e.browserEvent)}changeSelection(e){const t=e.index;let i=this.list.getAnchor();if(this.isSelectionRangeChangeEvent(e)){if(void 0===i){const e=this.list.getFocus()[0];i=null!=e?e:t,this.list.setAnchor(i)}const n=Math.min(i,t),o=Math.max(i,t),s=(0,h.w6)(n,o+1),r=this.list.getSelection(),a=function(e,t){const i=e.indexOf(t);if(-1===i)return[];const n=[];let o=i-1;for(;o>=0&&e[o]===t-(i-o);)n.push(e[o--]);n.reverse(),o=i;for(;o=e.length)i.push(t[o++]);else if(o>=t.length)i.push(e[n++]);else{if(e[n]===t[o]){n++,o++;continue}e[n]e!==t));this.list.setFocus([t]),this.list.setAnchor(t),i.length===n.length?this.list.setSelection([...n,t],e.browserEvent):this.list.setSelection(n,e.browserEvent)}}dispose(){this.disposables.dispose()}}class V{constructor(e,t){this.styleElement=e,this.selectorSuffix=t}style(e){const t=this.selectorSuffix&&`.${this.selectorSuffix}`,i=[];e.listBackground&&(e.listBackground.isOpaque()?i.push(`.monaco-list${t} .monaco-list-rows { background: ${e.listBackground}; }`):v.dz||console.warn(`List with id '${this.selectorSuffix}' was styled with a non-opaque background color. This will break sub-pixel antialiasing.`)),e.listFocusBackground&&(i.push(`.monaco-list${t}:focus .monaco-list-row.focused { background-color: ${e.listFocusBackground}; }`),i.push(`.monaco-list${t}:focus .monaco-list-row.focused:hover { background-color: ${e.listFocusBackground}; }`)),e.listFocusForeground&&i.push(`.monaco-list${t}:focus .monaco-list-row.focused { color: ${e.listFocusForeground}; }`),e.listActiveSelectionBackground&&(i.push(`.monaco-list${t}:focus .monaco-list-row.selected { background-color: ${e.listActiveSelectionBackground}; }`),i.push(`.monaco-list${t}:focus .monaco-list-row.selected:hover { background-color: ${e.listActiveSelectionBackground}; }`)),e.listActiveSelectionForeground&&i.push(`.monaco-list${t}:focus .monaco-list-row.selected { color: ${e.listActiveSelectionForeground}; }`),e.listActiveSelectionIconForeground&&i.push(`.monaco-list${t}:focus .monaco-list-row.selected .codicon { color: ${e.listActiveSelectionIconForeground}; }`),e.listFocusAndSelectionBackground&&i.push(`\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list${t}:focus .monaco-list-row.selected.focused { background-color: ${e.listFocusAndSelectionBackground}; }\n\t\t\t`),e.listFocusAndSelectionForeground&&i.push(`\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list${t}:focus .monaco-list-row.selected.focused { color: ${e.listFocusAndSelectionForeground}; }\n\t\t\t`),e.listInactiveFocusForeground&&(i.push(`.monaco-list${t} .monaco-list-row.focused { color: ${e.listInactiveFocusForeground}; }`),i.push(`.monaco-list${t} .monaco-list-row.focused:hover { color: ${e.listInactiveFocusForeground}; }`)),e.listInactiveSelectionIconForeground&&i.push(`.monaco-list${t} .monaco-list-row.focused .codicon { color: ${e.listInactiveSelectionIconForeground}; }`),e.listInactiveFocusBackground&&(i.push(`.monaco-list${t} .monaco-list-row.focused { background-color: ${e.listInactiveFocusBackground}; }`),i.push(`.monaco-list${t} .monaco-list-row.focused:hover { background-color: ${e.listInactiveFocusBackground}; }`)),e.listInactiveSelectionBackground&&(i.push(`.monaco-list${t} .monaco-list-row.selected { background-color: ${e.listInactiveSelectionBackground}; }`),i.push(`.monaco-list${t} .monaco-list-row.selected:hover { background-color: ${e.listInactiveSelectionBackground}; }`)),e.listInactiveSelectionForeground&&i.push(`.monaco-list${t} .monaco-list-row.selected { color: ${e.listInactiveSelectionForeground}; }`),e.listHoverBackground&&i.push(`.monaco-list${t}:not(.drop-target) .monaco-list-row:hover:not(.selected):not(.focused) { background-color: ${e.listHoverBackground}; }`),e.listHoverForeground&&i.push(`.monaco-list${t} .monaco-list-row:hover:not(.selected):not(.focused) { color: ${e.listHoverForeground}; }`),e.listSelectionOutline&&i.push(`.monaco-list${t} .monaco-list-row.selected { outline: 1px dotted ${e.listSelectionOutline}; outline-offset: -1px; }`),e.listFocusOutline&&i.push(`\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list${t}:focus .monaco-list-row.focused { outline: 1px solid ${e.listFocusOutline}; outline-offset: -1px; }\n\t\t\t`),e.listInactiveFocusOutline&&i.push(`.monaco-list${t} .monaco-list-row.focused { outline: 1px dotted ${e.listInactiveFocusOutline}; outline-offset: -1px; }`),e.listHoverOutline&&i.push(`.monaco-list${t} .monaco-list-row:hover { outline: 1px dashed ${e.listHoverOutline}; outline-offset: -1px; }`),e.listDropBackground&&i.push(`\n\t\t\t\t.monaco-list${t}.drop-target,\n\t\t\t\t.monaco-list${t} .monaco-list-rows.drop-target,\n\t\t\t\t.monaco-list${t} .monaco-list-row.drop-target { background-color: ${e.listDropBackground} !important; color: inherit !important; }\n\t\t\t`),e.listFilterWidgetBackground&&i.push(`.monaco-list-type-filter { background-color: ${e.listFilterWidgetBackground} }`),e.listFilterWidgetOutline&&i.push(`.monaco-list-type-filter { border: 1px solid ${e.listFilterWidgetOutline}; }`),e.listFilterWidgetNoMatchesOutline&&i.push(`.monaco-list-type-filter.no-matches { border: 1px solid ${e.listFilterWidgetNoMatchesOutline}; }`),e.listMatchesShadow&&i.push(`.monaco-list-type-filter { box-shadow: 1px 1px 1px ${e.listMatchesShadow}; }`),e.tableColumnsBorder&&i.push(`\n\t\t\t\t.monaco-table:hover > .monaco-split-view2,\n\t\t\t\t.monaco-table:hover > .monaco-split-view2 .monaco-sash.vertical::before {\n\t\t\t\t\tborder-color: ${e.tableColumnsBorder};\n\t\t\t}`),this.styleElement.textContent=i.join("\n")}}const W={listFocusBackground:c.Il.fromHex("#7FB0D0"),listActiveSelectionBackground:c.Il.fromHex("#0E639C"),listActiveSelectionForeground:c.Il.fromHex("#FFFFFF"),listActiveSelectionIconForeground:c.Il.fromHex("#FFFFFF"),listFocusAndSelectionBackground:c.Il.fromHex("#094771"),listFocusAndSelectionForeground:c.Il.fromHex("#FFFFFF"),listInactiveSelectionBackground:c.Il.fromHex("#3F3F46"),listInactiveSelectionIconForeground:c.Il.fromHex("#FFFFFF"),listHoverBackground:c.Il.fromHex("#2A2D2E"),listDropBackground:c.Il.fromHex("#383B3D"),treeIndentGuidesStroke:c.Il.fromHex("#a9a9a9"),tableColumnsBorder:c.Il.fromHex("#cccccc").transparent(.2)},H={keyboardSupport:!0,mouseSupport:!0,multipleSelectionSupport:!0,dnd:{getDragURI(){return null},onDragStart(){},onDragOver(){return!1},drop(){}}};function z(e,t){const i=[];let n=0,o=0;for(;n=e.length)i.push(t[o++]);else if(o>=t.length)i.push(e[n++]);else{if(e[n]===t[o]){i.push(e[n]),n++,o++;continue}e[n]e-t;class U{constructor(e,t){this._templateId=e,this.renderers=t}get templateId(){return this._templateId}renderTemplate(e){return this.renderers.map((t=>t.renderTemplate(e)))}renderElement(e,t,i,n){let o=0;for(const s of this.renderers)s.renderElement(e,t,i[o++],n)}disposeElement(e,t,i,n){let o=0;for(const s of this.renderers)s.disposeElement&&s.disposeElement(e,t,i[o],n),o+=1}disposeTemplate(e){let t=0;for(const i of this.renderers)i.disposeTemplate(e[t++])}}class ${constructor(e){this.accessibilityProvider=e,this.templateId="a18n"}renderTemplate(e){return e}renderElement(e,t,i){const n=this.accessibilityProvider.getAriaLabel(e);n?i.setAttribute("aria-label",n):i.removeAttribute("aria-label");const o=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(e);"number"==typeof o?i.setAttribute("aria-level",`${o}`):i.removeAttribute("aria-level")}disposeTemplate(e){}}class j{constructor(e,t){this.list=e,this.dnd=t}getDragElements(e){const t=this.list.getSelectedElements();return t.indexOf(e)>-1?t:[e]}getDragURI(e){return this.dnd.getDragURI(e)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e,t)}onDragStart(e,t){this.dnd.onDragStart&&this.dnd.onDragStart(e,t)}onDragOver(e,t,i,n){return this.dnd.onDragOver(e,t,i,n)}onDragLeave(e,t,i,n){var o,s;null===(s=(o=this.dnd).onDragLeave)||void 0===s||s.call(o,e,t,i,n)}onDragEnd(e){this.dnd.onDragEnd&&this.dnd.onDragEnd(e)}drop(e,t,i,n){this.dnd.drop(e,t,i,n)}}class q{constructor(e,t,i,o,s=H){var r;this.user=e,this._options=s,this.focus=new x("focused"),this.anchor=new x("anchor"),this.eventBufferer=new g.E7,this._ariaLabel="",this.disposables=new m.SL,this._onDidDispose=new g.Q5,this.onDidDispose=this._onDidDispose.event;const a=this._options.accessibilityProvider&&this._options.accessibilityProvider.getWidgetRole?null===(r=this._options.accessibilityProvider)||void 0===r?void 0:r.getWidgetRole():"list";this.selection=new k("listbox"!==a),(0,_.jB)(s,W,!1);const h=[this.focus.renderer,this.selection.renderer];this.accessibilityProvider=s.accessibilityProvider,this.accessibilityProvider&&(h.push(new $(this.accessibilityProvider)),this.accessibilityProvider.onDidChangeActiveDescendant&&this.accessibilityProvider.onDidChangeActiveDescendant(this.onDidChangeActiveDescendant,this,this.disposables)),o=o.map((e=>new U(e.templateId,[...h,e])));const d=Object.assign(Object.assign({},s),{dnd:s.dnd&&new j(this,s.dnd)});if(this.view=new S.Bv(t,i,o,d),this.view.domNode.setAttribute("role",a),s.styleController)this.styleController=s.styleController(this.view.domId);else{const e=(0,n.dS)(this.view.domNode);this.styleController=new V(e,this.view.domId)}if(this.spliceable=new l([new D(this.focus,this.view,s.identityProvider),new D(this.selection,this.view,s.identityProvider),new D(this.anchor,this.view,s.identityProvider),this.view]),this.disposables.add(this.focus),this.disposables.add(this.selection),this.disposables.add(this.anchor),this.disposables.add(this.view),this.disposables.add(this._onDidDispose),this.disposables.add(new R(this,this.view)),("boolean"!=typeof s.keyboardSupport||s.keyboardSupport)&&(this.keyboardController=new T(this,this.view,s),this.disposables.add(this.keyboardController)),s.keyboardNavigationLabelProvider){const e=s.keyboardNavigationDelegate||M;this.typeLabelController=new A(this,this.view,s.keyboardNavigationLabelProvider,e),this.disposables.add(this.typeLabelController)}this.mouseController=this.createMouseController(s),this.disposables.add(this.mouseController),this.onDidChangeFocus(this._onFocusChange,this,this.disposables),this.onDidChangeSelection(this._onSelectionChange,this,this.disposables),this.accessibilityProvider&&(this.ariaLabel=this.accessibilityProvider.getWidgetAriaLabel()),!1!==this._options.multipleSelectionSupport&&this.view.domNode.setAttribute("aria-multiselectable","true")}get onDidChangeFocus(){return g.ju.map(this.eventBufferer.wrapEvent(this.focus.onChange),(e=>this.toListEvent(e)))}get onDidChangeSelection(){return g.ju.map(this.eventBufferer.wrapEvent(this.selection.onChange),(e=>this.toListEvent(e)))}get domId(){return this.view.domId}get onMouseClick(){return this.view.onMouseClick}get onMouseDblClick(){return this.view.onMouseDblClick}get onMouseMiddleClick(){return this.view.onMouseMiddleClick}get onPointer(){return this.mouseController.onPointer}get onMouseDown(){return this.view.onMouseDown}get onTouchStart(){return this.view.onTouchStart}get onTap(){return this.view.onTap}get onContextMenu(){let e=!1;const t=g.ju.chain(this.disposables.add(new o.Y(this.view.domNode,"keydown")).event).map((e=>new s.y(e))).filter((t=>e=58===t.keyCode||t.shiftKey&&68===t.keyCode)).map(o.p).filter((()=>!1)).event,i=g.ju.chain(this.disposables.add(new o.Y(this.view.domNode,"keyup")).event).forEach((()=>e=!1)).map((e=>new s.y(e))).filter((e=>58===e.keyCode||e.shiftKey&&68===e.keyCode)).map(o.p).map((({browserEvent:e})=>{const t=this.getFocus(),i=t.length?t[0]:void 0;return{index:i,element:void 0!==i?this.view.element(i):void 0,anchor:void 0!==i?this.view.domElement(i):this.view.domNode,browserEvent:e}})).event,n=g.ju.chain(this.view.onContextMenu).filter((t=>!e)).map((({element:e,index:t,browserEvent:i})=>({element:e,index:t,anchor:{x:i.pageX+1,y:i.pageY},browserEvent:i}))).event;return g.ju.any(t,i,n)}get onKeyDown(){return this.disposables.add(new o.Y(this.view.domNode,"keydown")).event}get onDidFocus(){return g.ju.signal(this.disposables.add(new o.Y(this.view.domNode,"focus",!0)).event)}createMouseController(e){return new B(this)}updateOptions(e={}){var t;this._options=Object.assign(Object.assign({},this._options),e),this.typeLabelController&&this.typeLabelController.updateOptions(this._options),void 0!==this._options.multipleSelectionController&&(this._options.multipleSelectionSupport?this.view.domNode.setAttribute("aria-multiselectable","true"):this.view.domNode.removeAttribute("aria-multiselectable")),this.mouseController.updateOptions(e),null===(t=this.keyboardController)||void 0===t||t.updateOptions(e),this.view.updateOptions(e)}get options(){return this._options}splice(e,t,i=[]){if(e<0||e>this.view.length)throw new C(this.user,`Invalid start index: ${e}`);if(t<0)throw new C(this.user,`Invalid delete count: ${t}`);0===t&&0===i.length||this.eventBufferer.bufferEvents((()=>this.spliceable.splice(e,t,i)))}rerender(){this.view.rerender()}element(e){return this.view.element(e)}get length(){return this.view.length}get contentHeight(){return this.view.contentHeight}get scrollTop(){return this.view.getScrollTop()}set scrollTop(e){this.view.setScrollTop(e)}get ariaLabel(){return this._ariaLabel}set ariaLabel(e){this._ariaLabel=e,this.view.domNode.setAttribute("aria-label",e)}domFocus(){this.view.domNode.focus({preventScroll:!0})}layout(e,t){this.view.layout(e,t)}setSelection(e,t){for(const t of e)if(t<0||t>=this.length)throw new C(this.user,`Invalid index ${t}`);this.selection.set(e,t)}getSelection(){return this.selection.get()}getSelectedElements(){return this.getSelection().map((e=>this.view.element(e)))}setAnchor(e){if(void 0!==e){if(e<0||e>=this.length)throw new C(this.user,`Invalid index ${e}`);this.anchor.set([e])}else this.anchor.set([])}getAnchor(){return(0,h.Xh)(this.anchor.get(),void 0)}getAnchorElement(){const e=this.getAnchor();return void 0===e?void 0:this.element(e)}setFocus(e,t){for(const t of e)if(t<0||t>=this.length)throw new C(this.user,`Invalid index ${t}`);this.focus.set(e,t)}focusNext(e=1,t=!1,i,n){if(0===this.length)return;const o=this.focus.get(),s=this.findNextIndex(o.length>0?o[0]+e:0,t,n);s>-1&&this.setFocus([s],i)}focusPrevious(e=1,t=!1,i,n){if(0===this.length)return;const o=this.focus.get(),s=this.findPreviousIndex(o.length>0?o[0]-e:0,t,n);s>-1&&this.setFocus([s],i)}focusNextPage(e,t){return L(this,void 0,void 0,(function*(){let i=this.view.indexAt(this.view.getScrollTop()+this.view.renderHeight);i=0===i?0:i-1;const n=this.view.element(i),o=this.getFocusedElements()[0];if(o!==n){const n=this.findPreviousIndex(i,!1,t);n>-1&&o!==this.view.element(n)?this.setFocus([n],e):this.setFocus([i],e)}else{const n=this.view.getScrollTop();this.view.setScrollTop(n+this.view.renderHeight-this.view.elementHeight(i)),this.view.getScrollTop()!==n&&(this.setFocus([]),yield(0,d.Vs)(0),yield this.focusNextPage(e,t))}}))}focusPreviousPage(e,t){return L(this,void 0,void 0,(function*(){let i;const n=this.view.getScrollTop();i=0===n?this.view.indexAt(n):this.view.indexAfter(n-1);const o=this.view.element(i),s=this.getFocusedElements()[0];if(s!==o){const n=this.findNextIndex(i,!1,t);n>-1&&s!==this.view.element(n)?this.setFocus([n],e):this.setFocus([i],e)}else{const i=n;this.view.setScrollTop(n-this.view.renderHeight),this.view.getScrollTop()!==i&&(this.setFocus([]),yield(0,d.Vs)(0),yield this.focusPreviousPage(e,t))}}))}focusLast(e,t){if(0===this.length)return;const i=this.findPreviousIndex(this.length-1,!1,t);i>-1&&this.setFocus([i],e)}focusFirst(e,t){this.focusNth(0,e,t)}focusNth(e,t,i){if(0===this.length)return;const n=this.findNextIndex(e,!1,i);n>-1&&this.setFocus([n],t)}findNextIndex(e,t=!1,i){for(let n=0;n=this.length&&!t)return-1;if(e%=this.length,!i||i(this.element(e)))return e;e++}return-1}findPreviousIndex(e,t=!1,i){for(let n=0;nthis.view.element(e)))}reveal(e,t){if(e<0||e>=this.length)throw new C(this.user,`Invalid index ${e}`);const i=this.view.getScrollTop(),n=this.view.elementTop(e),o=this.view.elementHeight(e);if((0,b.hj)(t)){const e=o-this.view.renderHeight;this.view.setScrollTop(e*(0,f.u)(t,0,1)+n)}else{const e=n+o,t=i+this.view.renderHeight;n=t||(n=t&&o>=this.view.renderHeight?this.view.setScrollTop(n):e>=t&&this.view.setScrollTop(e-this.view.renderHeight))}}getRelativeTop(e){if(e<0||e>=this.length)throw new C(this.user,`Invalid index ${e}`);const t=this.view.getScrollTop(),i=this.view.elementTop(e),n=this.view.elementHeight(e);if(it+this.view.renderHeight)return null;const o=n-this.view.renderHeight;return Math.abs((t-i)/o)}getHTMLElement(){return this.view.domNode}style(e){this.styleController.style(e)}toListEvent({indexes:e,browserEvent:t}){return{indexes:e,elements:e.map((e=>this.view.element(e))),browserEvent:t}}_onFocusChange(){const e=this.focus.get();this.view.domNode.classList.toggle("element-focused",e.length>0),this.onDidChangeActiveDescendant()}onDidChangeActiveDescendant(){var e;const t=this.focus.get();if(t.length>0){let i;(null===(e=this.accessibilityProvider)||void 0===e?void 0:e.getActiveDescendantId)&&(i=this.accessibilityProvider.getActiveDescendantId(this.view.element(t[0]))),this.view.domNode.setAttribute("aria-activedescendant",i||this.view.getElementDomId(t[0]))}else this.view.domNode.removeAttribute("aria-activedescendant")}_onSelectionChange(){const e=this.selection.get();this.view.domNode.classList.toggle("selection-none",0===e.length),this.view.domNode.classList.toggle("selection-single",1===e.length),this.view.domNode.classList.toggle("selection-multiple",e.length>1)}dispose(){this._onDidDispose.fire(),this.disposables.dispose(),this._onDidDispose.dispose()}}y([u.H],q.prototype,"onDidChangeFocus",null),y([u.H],q.prototype,"onDidChangeSelection",null),y([u.H],q.prototype,"onContextMenu",null),y([u.H],q.prototype,"onKeyDown",null),y([u.H],q.prototype,"onDidFocus",null)},19106:function(e,t,i){"use strict";i.d(t,{S:function(){return n}});const n="monaco-mouse-cursor-text"},78233:function(e,t,i){"use strict";i.d(t,{l:function(){return u},g:function(){return v}});var n=i(69454),o=i(8035),s=i(60537),r=i(50431),a=i(85402),l=i(4348),h=i(69323),d=i(23345),c=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};var u;!function(e){e.North="north",e.South="south",e.East="east",e.West="west"}(u||(u={}));const g=new l.Q5;const p=new l.Q5;class m{constructor(){this.disposables=new h.SL}get onPointerMove(){return this.disposables.add(new o.Y(window,"mousemove")).event}get onPointerUp(){return this.disposables.add(new o.Y(window,"mouseup")).event}dispose(){this.disposables.dispose()}}c([a.H],m.prototype,"onPointerMove",null),c([a.H],m.prototype,"onPointerUp",null);class f{constructor(e){this.el=e,this.disposables=new h.SL}get onPointerMove(){return this.disposables.add(new o.Y(this.el,s.t.Change)).event}get onPointerUp(){return this.disposables.add(new o.Y(this.el,s.t.End)).event}dispose(){this.disposables.dispose()}}c([a.H],f.prototype,"onPointerMove",null),c([a.H],f.prototype,"onPointerUp",null);class _{constructor(e){this.factory=e}get onPointerMove(){return this.factory.onPointerMove}get onPointerUp(){return this.factory.onPointerUp}dispose(){}}c([a.H],_.prototype,"onPointerMove",null),c([a.H],_.prototype,"onPointerUp",null);class v extends h.JT{constructor(e,t,i){super(),this.hoverDelay=300,this.hoverDelayer=this._register(new r.vp(this.hoverDelay)),this._state=3,this._onDidEnablementChange=this._register(new l.Q5),this.onDidEnablementChange=this._onDidEnablementChange.event,this._onDidStart=this._register(new l.Q5),this.onDidStart=this._onDidStart.event,this._onDidChange=this._register(new l.Q5),this.onDidChange=this._onDidChange.event,this._onDidReset=this._register(new l.Q5),this.onDidReset=this._onDidReset.event,this._onDidEnd=this._register(new l.Q5),this.onDidEnd=this._onDidEnd.event,this.linkedSash=void 0,this.orthogonalStartSashDisposables=this._register(new h.SL),this.orthogonalStartDragHandleDisposables=this._register(new h.SL),this.orthogonalEndSashDisposables=this._register(new h.SL),this.orthogonalEndDragHandleDisposables=this._register(new h.SL),this.el=(0,n.R3)(e,(0,n.$)(".monaco-sash")),i.orthogonalEdge&&this.el.classList.add(`orthogonal-edge-${i.orthogonalEdge}`),d.dz&&this.el.classList.add("mac");const a=this._register(new o.Y(this.el,"mousedown")).event;this._register(a((e=>this.onPointerStart(e,new m)),this));const c=this._register(new o.Y(this.el,"dblclick")).event;this._register(c(this.onPointerDoublePress,this));const u=this._register(new o.Y(this.el,"mouseenter")).event;this._register(u((()=>v.onMouseEnter(this))));const _=this._register(new o.Y(this.el,"mouseleave")).event;this._register(_((()=>v.onMouseLeave(this)))),this._register(s.o.addTarget(this.el));const b=l.ju.map(this._register(new o.Y(this.el,s.t.Start)).event,(e=>{var t;return Object.assign(Object.assign({},e),{target:null!==(t=e.initialTarget)&&void 0!==t?t:null})}));this._register(b((e=>this.onPointerStart(e,new f(this.el))),this));const C=this._register(new o.Y(this.el,s.t.Tap)).event,w=l.ju.map(l.ju.filter(l.ju.debounce(C,((e,t)=>{var i;return{event:t,count:(null!==(i=null==e?void 0:e.count)&&void 0!==i?i:0)+1}}),250),(({count:e})=>2===e)),(({event:e})=>{var t;return Object.assign(Object.assign({},e),{target:null!==(t=e.initialTarget)&&void 0!==t?t:null})}));this._register(w(this.onPointerDoublePress,this)),"number"==typeof i.size?(this.size=i.size,0===i.orientation?this.el.style.width=`${this.size}px`:this.el.style.height=`${this.size}px`):(this.size=4,this._register(g.event((e=>{this.size=e,this.layout()})))),this._register(p.event((e=>this.hoverDelay=e))),this.hidden=!1,this.layoutProvider=t,this.orthogonalStartSash=i.orthogonalStartSash,this.orthogonalEndSash=i.orthogonalEndSash,this.orientation=i.orientation||0,1===this.orientation?(this.el.classList.add("horizontal"),this.el.classList.remove("vertical")):(this.el.classList.remove("horizontal"),this.el.classList.add("vertical")),this.el.classList.toggle("debug",false),this.layout()}get state(){return this._state}set state(e){this._state!==e&&(this.el.classList.toggle("disabled",0===e),this.el.classList.toggle("minimum",1===e),this.el.classList.toggle("maximum",2===e),this._state=e,this._onDidEnablementChange.fire(e))}get orthogonalStartSash(){return this._orthogonalStartSash}set orthogonalStartSash(e){if(this.orthogonalStartDragHandleDisposables.clear(),this.orthogonalStartSashDisposables.clear(),e){const t=t=>{this.orthogonalStartDragHandleDisposables.clear(),0!==t&&(this._orthogonalStartDragHandle=(0,n.R3)(this.el,(0,n.$)(".orthogonal-drag-handle.start")),this.orthogonalStartDragHandleDisposables.add((0,h.OF)((()=>this._orthogonalStartDragHandle.remove()))),this.orthogonalStartDragHandleDisposables.add(new o.Y(this._orthogonalStartDragHandle,"mouseenter")).event((()=>v.onMouseEnter(e)),void 0,this.orthogonalStartDragHandleDisposables),this.orthogonalStartDragHandleDisposables.add(new o.Y(this._orthogonalStartDragHandle,"mouseleave")).event((()=>v.onMouseLeave(e)),void 0,this.orthogonalStartDragHandleDisposables))};this.orthogonalStartSashDisposables.add(e.onDidEnablementChange(t,this)),t(e.state)}this._orthogonalStartSash=e}get orthogonalEndSash(){return this._orthogonalEndSash}set orthogonalEndSash(e){if(this.orthogonalEndDragHandleDisposables.clear(),this.orthogonalEndSashDisposables.clear(),e){const t=t=>{this.orthogonalEndDragHandleDisposables.clear(),0!==t&&(this._orthogonalEndDragHandle=(0,n.R3)(this.el,(0,n.$)(".orthogonal-drag-handle.end")),this.orthogonalEndDragHandleDisposables.add((0,h.OF)((()=>this._orthogonalEndDragHandle.remove()))),this.orthogonalEndDragHandleDisposables.add(new o.Y(this._orthogonalEndDragHandle,"mouseenter")).event((()=>v.onMouseEnter(e)),void 0,this.orthogonalEndDragHandleDisposables),this.orthogonalEndDragHandleDisposables.add(new o.Y(this._orthogonalEndDragHandle,"mouseleave")).event((()=>v.onMouseLeave(e)),void 0,this.orthogonalEndDragHandleDisposables))};this.orthogonalEndSashDisposables.add(e.onDidEnablementChange(t,this)),t(e.state)}this._orthogonalEndSash=e}onPointerStart(e,t){n.zB.stop(e);let i=!1;if(!e.__orthogonalSashEvent){const n=this.getOrthogonalSash(e);n&&(i=!0,e.__orthogonalSashEvent=!0,n.onPointerStart(e,new _(t)))}if(this.linkedSash&&!e.__linkedSashEvent&&(e.__linkedSashEvent=!0,this.linkedSash.onPointerStart(e,new _(t))),!this.state)return;const o=(0,n.H$)("iframe");for(const e of o)e.style.pointerEvents="none";const s=e.pageX,r=e.pageY,a=e.altKey,l={startX:s,currentX:s,startY:r,currentY:r,altKey:a};this.el.classList.add("active"),this._onDidStart.fire(l);const c=(0,n.dS)(this.el),u=()=>{let e="";e=i?"all-scroll":1===this.orientation?1===this.state?"s-resize":2===this.state?"n-resize":d.dz?"row-resize":"ns-resize":1===this.state?"e-resize":2===this.state?"w-resize":d.dz?"col-resize":"ew-resize",c.textContent=`* { cursor: ${e} !important; }`},g=new h.SL;u(),i||this.onDidEnablementChange(u,null,g);t.onPointerMove((e=>{n.zB.stop(e,!1);const t={startX:s,currentX:e.pageX,startY:r,currentY:e.pageY,altKey:a};this._onDidChange.fire(t)}),null,g),t.onPointerUp((e=>{n.zB.stop(e,!1),this.el.removeChild(c),this.el.classList.remove("active"),this._onDidEnd.fire(),g.dispose();for(const e of o)e.style.pointerEvents="auto"}),null,g),g.add(t)}onPointerDoublePress(e){const t=this.getOrthogonalSash(e);t&&t._onDidReset.fire(),this.linkedSash&&this.linkedSash._onDidReset.fire(),this._onDidReset.fire()}static onMouseEnter(e,t=!1){e.el.classList.contains("active")?(e.hoverDelayer.cancel(),e.el.classList.add("hover")):e.hoverDelayer.trigger((()=>e.el.classList.add("hover")),e.hoverDelay).then(void 0,(()=>{})),!t&&e.linkedSash&&v.onMouseEnter(e.linkedSash,!0)}static onMouseLeave(e,t=!1){e.hoverDelayer.cancel(),e.el.classList.remove("hover"),!t&&e.linkedSash&&v.onMouseLeave(e.linkedSash,!0)}clearSashHoverState(){v.onMouseLeave(this)}layout(){if(0===this.orientation){const e=this.layoutProvider;this.el.style.left=e.getVerticalSashLeft(this)-this.size/2+"px",e.getVerticalSashTop&&(this.el.style.top=e.getVerticalSashTop(this)+"px"),e.getVerticalSashHeight&&(this.el.style.height=e.getVerticalSashHeight(this)+"px")}else{const e=this.layoutProvider;this.el.style.top=e.getHorizontalSashTop(this)-this.size/2+"px",e.getHorizontalSashLeft&&(this.el.style.left=e.getHorizontalSashLeft(this)+"px"),e.getHorizontalSashWidth&&(this.el.style.width=e.getHorizontalSashWidth(this)+"px")}}hide(){this.hidden=!0,this.el.style.display="none",this.el.setAttribute("aria-hidden","true")}getOrthogonalSash(e){if(e.target&&e.target instanceof HTMLElement)return e.target.classList.contains("orthogonal-drag-handle")?e.target.classList.contains("start")?this.orthogonalStartSash:this.orthogonalEndSash:void 0}dispose(){super.dispose(),this.el.remove()}}},17671:function(e,t,i){"use strict";i.d(t,{s$:function(){return T},NB:function(){return E},$Z:function(){return I}});var n=i(87783),o=i(69454),s=i(32635),r=i(52390),a=i(2395),l=i(62758),h=i(50431);const d=11;class c extends l.${constructor(e){super(),this._onActivate=e.onActivate,this.bgDomNode=document.createElement("div"),this.bgDomNode.className="arrow-background",this.bgDomNode.style.position="absolute",this.bgDomNode.style.width=e.bgWidth+"px",this.bgDomNode.style.height=e.bgHeight+"px",void 0!==e.top&&(this.bgDomNode.style.top="0px"),void 0!==e.left&&(this.bgDomNode.style.left="0px"),void 0!==e.bottom&&(this.bgDomNode.style.bottom="0px"),void 0!==e.right&&(this.bgDomNode.style.right="0px"),this.domNode=document.createElement("div"),this.domNode.className=e.className,this.domNode.classList.add(...e.icon.classNamesArray),this.domNode.style.position="absolute",this.domNode.style.width="11px",this.domNode.style.height="11px",void 0!==e.top&&(this.domNode.style.top=e.top+"px"),void 0!==e.left&&(this.domNode.style.left=e.left+"px"),void 0!==e.bottom&&(this.domNode.style.bottom=e.bottom+"px"),void 0!==e.right&&(this.domNode.style.right=e.right+"px"),this._mouseMoveMonitor=this._register(new a.Z),this.onmousedown(this.bgDomNode,(e=>this._arrowMouseDown(e))),this.onmousedown(this.domNode,(e=>this._arrowMouseDown(e))),this._mousedownRepeatTimer=this._register(new h.zh),this._mousedownScheduleRepeatTimer=this._register(new h._F)}_arrowMouseDown(e){this._onActivate(),this._mousedownRepeatTimer.cancel(),this._mousedownScheduleRepeatTimer.cancelAndSet((()=>{this._mousedownRepeatTimer.cancelAndSet((()=>this._onActivate()),1e3/24)}),200),this._mouseMoveMonitor.startMonitoring(e.target,e.buttons,a.e,(e=>{}),(()=>{this._mousedownRepeatTimer.cancel(),this._mousedownScheduleRepeatTimer.cancel()})),e.preventDefault()}}var u=i(69323);class g extends u.JT{constructor(e,t,i){super(),this._visibility=e,this._visibleClassName=t,this._invisibleClassName=i,this._domNode=null,this._isVisible=!1,this._isNeeded=!1,this._rawShouldBeVisible=!1,this._shouldBeVisible=!1,this._revealTimer=this._register(new h._F)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this._updateShouldBeVisible())}setShouldBeVisible(e){this._rawShouldBeVisible=e,this._updateShouldBeVisible()}_applyVisibilitySetting(){return 2!==this._visibility&&(3===this._visibility||this._rawShouldBeVisible)}_updateShouldBeVisible(){const e=this._applyVisibilitySetting();this._shouldBeVisible!==e&&(this._shouldBeVisible=e,this.ensureVisibility())}setIsNeeded(e){this._isNeeded!==e&&(this._isNeeded=e,this.ensureVisibility())}setDomNode(e){this._domNode=e,this._domNode.setClassName(this._invisibleClassName),this.setShouldBeVisible(!1)}ensureVisibility(){this._isNeeded?this._shouldBeVisible?this._reveal():this._hide(!0):this._hide(!1)}_reveal(){this._isVisible||(this._isVisible=!0,this._revealTimer.setIfNotSet((()=>{this._domNode&&this._domNode.setClassName(this._visibleClassName)}),0))}_hide(e){this._revealTimer.cancel(),this._isVisible&&(this._isVisible=!1,this._domNode&&this._domNode.setClassName(this._invisibleClassName+(e?" fade":"")))}}var p=i(23345);class m extends l.${constructor(e){super(),this._lazyRender=e.lazyRender,this._host=e.host,this._scrollable=e.scrollable,this._scrollByPage=e.scrollByPage,this._scrollbarState=e.scrollbarState,this._visibilityController=this._register(new g(e.visibility,"visible scrollbar "+e.extraScrollbarClassName,"invisible scrollbar "+e.extraScrollbarClassName)),this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._mouseMoveMonitor=this._register(new a.Z),this._shouldRender=!0,this.domNode=(0,s.X)(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this._visibilityController.setDomNode(this.domNode),this.domNode.setPosition("absolute"),this.onmousedown(this.domNode.domNode,(e=>this._domNodeMouseDown(e)))}_createArrow(e){const t=this._register(new c(e));this.domNode.domNode.appendChild(t.bgDomNode),this.domNode.domNode.appendChild(t.domNode)}_createSlider(e,t,i,n){this.slider=(0,s.X)(document.createElement("div")),this.slider.setClassName("slider"),this.slider.setPosition("absolute"),this.slider.setTop(e),this.slider.setLeft(t),"number"==typeof i&&this.slider.setWidth(i),"number"==typeof n&&this.slider.setHeight(n),this.slider.setLayerHinting(!0),this.slider.setContain("strict"),this.domNode.domNode.appendChild(this.slider.domNode),this.onmousedown(this.slider.domNode,(e=>{e.leftButton&&(e.preventDefault(),this._sliderMouseDown(e,(()=>{})))})),this.onclick(this.slider.domNode,(e=>{e.leftButton&&e.stopPropagation()}))}_onElementSize(e){return this._scrollbarState.setVisibleSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollSize(e){return this._scrollbarState.setScrollSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollPosition(e){return this._scrollbarState.setScrollPosition(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}beginReveal(){this._visibilityController.setShouldBeVisible(!0)}beginHide(){this._visibilityController.setShouldBeVisible(!1)}render(){this._shouldRender&&(this._shouldRender=!1,this._renderDomNode(this._scrollbarState.getRectangleLargeSize(),this._scrollbarState.getRectangleSmallSize()),this._updateSlider(this._scrollbarState.getSliderSize(),this._scrollbarState.getArrowSize()+this._scrollbarState.getSliderPosition()))}_domNodeMouseDown(e){e.target===this.domNode.domNode&&this._onMouseDown(e)}delegateMouseDown(e){const t=this.domNode.domNode.getClientRects()[0].top,i=t+this._scrollbarState.getSliderPosition(),n=t+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize(),o=this._sliderMousePosition(e);i<=o&&o<=n?e.leftButton&&(e.preventDefault(),this._sliderMouseDown(e,(()=>{}))):this._onMouseDown(e)}_onMouseDown(e){let t,i;if(e.target===this.domNode.domNode&&"number"==typeof e.browserEvent.offsetX&&"number"==typeof e.browserEvent.offsetY)t=e.browserEvent.offsetX,i=e.browserEvent.offsetY;else{const n=o.i(this.domNode.domNode);t=e.posx-n.left,i=e.posy-n.top}const n=this._mouseDownRelativePosition(t,i);this._setDesiredScrollPositionNow(this._scrollByPage?this._scrollbarState.getDesiredScrollPositionFromOffsetPaged(n):this._scrollbarState.getDesiredScrollPositionFromOffset(n)),e.leftButton&&(e.preventDefault(),this._sliderMouseDown(e,(()=>{})))}_sliderMouseDown(e,t){const i=this._sliderMousePosition(e),n=this._sliderOrthogonalMousePosition(e),o=this._scrollbarState.clone();this.slider.toggleClassName("active",!0),this._mouseMoveMonitor.startMonitoring(e.target,e.buttons,a.e,(e=>{const t=this._sliderOrthogonalMousePosition(e),s=Math.abs(t-n);if(p.ED&&s>140)return void this._setDesiredScrollPositionNow(o.getScrollPosition());const r=this._sliderMousePosition(e)-i;this._setDesiredScrollPositionNow(o.getDesiredScrollPositionFromDelta(r))}),(()=>{this.slider.toggleClassName("active",!1),this._host.onDragEnd(),t()})),this._host.onDragStart()}_setDesiredScrollPositionNow(e){const t={};this.writeScrollPosition(t,e),this._scrollable.setScrollPositionNow(t)}updateScrollbarSize(e){this._updateScrollbarSize(e),this._scrollbarState.setScrollbarSize(e),this._shouldRender=!0,this._lazyRender||this.render()}isNeeded(){return this._scrollbarState.isNeeded()}}class f{constructor(e,t,i,n,o,s){this._scrollbarSize=Math.round(t),this._oppositeScrollbarSize=Math.round(i),this._arrowSize=Math.round(e),this._visibleSize=n,this._scrollSize=o,this._scrollPosition=s,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}clone(){return new f(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize,this._visibleSize,this._scrollSize,this._scrollPosition)}setVisibleSize(e){const t=Math.round(e);return this._visibleSize!==t&&(this._visibleSize=t,this._refreshComputedValues(),!0)}setScrollSize(e){const t=Math.round(e);return this._scrollSize!==t&&(this._scrollSize=t,this._refreshComputedValues(),!0)}setScrollPosition(e){const t=Math.round(e);return this._scrollPosition!==t&&(this._scrollPosition=t,this._refreshComputedValues(),!0)}setScrollbarSize(e){this._scrollbarSize=Math.round(e)}setOppositeScrollbarSize(e){this._oppositeScrollbarSize=Math.round(e)}static _computeValues(e,t,i,n,o){const s=Math.max(0,i-e),r=Math.max(0,s-2*t),a=n>0&&n>i;if(!a)return{computedAvailableSize:Math.round(s),computedIsNeeded:a,computedSliderSize:Math.round(r),computedSliderRatio:0,computedSliderPosition:0};const l=Math.round(Math.max(20,Math.floor(i*r/n))),h=(r-l)/(n-i),d=o*h;return{computedAvailableSize:Math.round(s),computedIsNeeded:a,computedSliderSize:Math.round(l),computedSliderRatio:h,computedSliderPosition:Math.round(d)}}_refreshComputedValues(){const e=f._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=e.computedAvailableSize,this._computedIsNeeded=e.computedIsNeeded,this._computedSliderSize=e.computedSliderSize,this._computedSliderRatio=e.computedSliderRatio,this._computedSliderPosition=e.computedSliderPosition}getArrowSize(){return this._arrowSize}getScrollPosition(){return this._scrollPosition}getRectangleLargeSize(){return this._computedAvailableSize}getRectangleSmallSize(){return this._scrollbarSize}isNeeded(){return this._computedIsNeeded}getSliderSize(){return this._computedSliderSize}getSliderPosition(){return this._computedSliderPosition}getDesiredScrollPositionFromOffset(e){if(!this._computedIsNeeded)return 0;const t=e-this._arrowSize-this._computedSliderSize/2;return Math.round(t/this._computedSliderRatio)}getDesiredScrollPositionFromOffsetPaged(e){if(!this._computedIsNeeded)return 0;const t=e-this._arrowSize;let i=this._scrollPosition;return tthis._host.onMouseWheel(new r.q(null,1,0))}),this._createArrow({className:"scra",icon:b,top:i,left:void 0,bottom:void 0,right:e,bgWidth:t.arrowSize,bgHeight:t.horizontalScrollbarSize,onActivate:()=>this._host.onMouseWheel(new r.q(null,-1,0))})}this._createSlider(Math.floor((t.horizontalScrollbarSize-t.horizontalSliderSize)/2),0,void 0,t.horizontalSliderSize)}_updateSlider(e,t){this.slider.setWidth(e),this.slider.setLeft(t)}_renderDomNode(e,t){this.domNode.setWidth(e),this.domNode.setHeight(t),this.domNode.setLeft(0),this.domNode.setBottom(0)}onDidScroll(e){return this._shouldRender=this._onElementScrollSize(e.scrollWidth)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollLeft)||this._shouldRender,this._shouldRender=this._onElementSize(e.width)||this._shouldRender,this._shouldRender}_mouseDownRelativePosition(e,t){return e}_sliderMousePosition(e){return e.posx}_sliderOrthogonalMousePosition(e){return e.posy}_updateScrollbarSize(e){this.slider.setHeight(e)}writeScrollPosition(e,t){e.scrollLeft=t}updateOptions(e){this.updateScrollbarSize(2===e.horizontal?0:e.horizontalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(2===e.vertical?0:e.verticalScrollbarSize),this._visibilityController.setVisibility(e.horizontal),this._scrollByPage=e.scrollByPage}}const w=(0,_.CM)("scrollbar-button-up",_.lA.triangleUp),S=(0,_.CM)("scrollbar-button-down",_.lA.triangleDown);class y extends m{constructor(e,t,i){const n=e.getScrollDimensions(),o=e.getCurrentScrollPosition();if(super({lazyRender:t.lazyRender,host:i,scrollbarState:new f(t.verticalHasArrows?t.arrowSize:0,2===t.vertical?0:t.verticalScrollbarSize,0,n.height,n.scrollHeight,o.scrollTop),visibility:t.vertical,extraScrollbarClassName:"vertical",scrollable:e,scrollByPage:t.scrollByPage}),t.verticalHasArrows){const e=(t.arrowSize-d)/2,i=(t.verticalScrollbarSize-d)/2;this._createArrow({className:"scra",icon:w,top:e,left:i,bottom:void 0,right:void 0,bgWidth:t.verticalScrollbarSize,bgHeight:t.arrowSize,onActivate:()=>this._host.onMouseWheel(new r.q(null,0,1))}),this._createArrow({className:"scra",icon:S,top:void 0,left:i,bottom:e,right:void 0,bgWidth:t.verticalScrollbarSize,bgHeight:t.arrowSize,onActivate:()=>this._host.onMouseWheel(new r.q(null,0,-1))})}this._createSlider(0,Math.floor((t.verticalScrollbarSize-t.verticalSliderSize)/2),t.verticalSliderSize,void 0)}_updateSlider(e,t){this.slider.setHeight(e),this.slider.setTop(t)}_renderDomNode(e,t){this.domNode.setWidth(t),this.domNode.setHeight(e),this.domNode.setRight(0),this.domNode.setTop(0)}onDidScroll(e){return this._shouldRender=this._onElementScrollSize(e.scrollHeight)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollTop)||this._shouldRender,this._shouldRender=this._onElementSize(e.height)||this._shouldRender,this._shouldRender}_mouseDownRelativePosition(e,t){return t}_sliderMousePosition(e){return e.posy}_sliderOrthogonalMousePosition(e){return e.posx}_updateScrollbarSize(e){this.slider.setWidth(e)}writeScrollPosition(e,t){e.scrollTop=t}updateOptions(e){this.updateScrollbarSize(2===e.vertical?0:e.verticalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(0),this._visibilityController.setVisibility(e.vertical),this._scrollByPage=e.scrollByPage}}var L=i(4348),N=i(28962);class x{constructor(e,t,i){this.timestamp=e,this.deltaX=t,this.deltaY=i,this.score=0}}class k{constructor(){this._capacity=5,this._memory=[],this._front=-1,this._rear=-1}isPhysicalMouseWheel(){if(-1===this._front&&-1===this._rear)return!1;let e=1,t=0,i=1,n=this._rear;for(;;){const o=n===this._front?e:Math.pow(2,-i);if(e-=o,t+=this._memory[n].score*o,n===this._front)break;n=(this._capacity+n-1)%this._capacity,i++}return t<=.5}accept(e,t,i){const n=new x(e,t,i);n.score=this._computeScore(n),-1===this._front&&-1===this._rear?(this._memory[0]=n,this._front=0,this._rear=0):(this._rear=(this._rear+1)%this._capacity,this._rear===this._front&&(this._front=(this._front+1)%this._capacity),this._memory[this._rear]=n)}_computeScore(e){if(Math.abs(e.deltaX)>0&&Math.abs(e.deltaY)>0)return 1;let t=.5;-1===this._front&&-1===this._rear||this._memory[this._rear];return this._isAlmostInt(e.deltaX)&&this._isAlmostInt(e.deltaY)||(t+=.25),Math.min(Math.max(t,0),1)}_isAlmostInt(e){return Math.abs(Math.round(e)-e)<.01}}k.INSTANCE=new k;class D extends l.${constructor(e,t,i){super(),this._onScroll=this._register(new L.Q5),this.onScroll=this._onScroll.event,this._onWillScroll=this._register(new L.Q5),e.style.overflow="hidden",this._options=function(e){const t={lazyRender:void 0!==e.lazyRender&&e.lazyRender,className:void 0!==e.className?e.className:"",useShadows:void 0===e.useShadows||e.useShadows,handleMouseWheel:void 0===e.handleMouseWheel||e.handleMouseWheel,flipAxes:void 0!==e.flipAxes&&e.flipAxes,consumeMouseWheelIfScrollbarIsNeeded:void 0!==e.consumeMouseWheelIfScrollbarIsNeeded&&e.consumeMouseWheelIfScrollbarIsNeeded,alwaysConsumeMouseWheel:void 0!==e.alwaysConsumeMouseWheel&&e.alwaysConsumeMouseWheel,scrollYToX:void 0!==e.scrollYToX&&e.scrollYToX,mouseWheelScrollSensitivity:void 0!==e.mouseWheelScrollSensitivity?e.mouseWheelScrollSensitivity:1,fastScrollSensitivity:void 0!==e.fastScrollSensitivity?e.fastScrollSensitivity:5,scrollPredominantAxis:void 0===e.scrollPredominantAxis||e.scrollPredominantAxis,mouseWheelSmoothScroll:void 0===e.mouseWheelSmoothScroll||e.mouseWheelSmoothScroll,arrowSize:void 0!==e.arrowSize?e.arrowSize:11,listenOnDomNode:void 0!==e.listenOnDomNode?e.listenOnDomNode:null,horizontal:void 0!==e.horizontal?e.horizontal:1,horizontalScrollbarSize:void 0!==e.horizontalScrollbarSize?e.horizontalScrollbarSize:10,horizontalSliderSize:void 0!==e.horizontalSliderSize?e.horizontalSliderSize:0,horizontalHasArrows:void 0!==e.horizontalHasArrows&&e.horizontalHasArrows,vertical:void 0!==e.vertical?e.vertical:1,verticalScrollbarSize:void 0!==e.verticalScrollbarSize?e.verticalScrollbarSize:10,verticalHasArrows:void 0!==e.verticalHasArrows&&e.verticalHasArrows,verticalSliderSize:void 0!==e.verticalSliderSize?e.verticalSliderSize:0,scrollByPage:void 0!==e.scrollByPage&&e.scrollByPage};t.horizontalSliderSize=void 0!==e.horizontalSliderSize?e.horizontalSliderSize:t.horizontalScrollbarSize,t.verticalSliderSize=void 0!==e.verticalSliderSize?e.verticalSliderSize:t.verticalScrollbarSize,p.dz&&(t.className+=" mac");return t}(t),this._scrollable=i,this._register(this._scrollable.onScroll((e=>{this._onWillScroll.fire(e),this._onDidScroll(e),this._onScroll.fire(e)})));const n={onMouseWheel:e=>this._onMouseWheel(e),onDragStart:()=>this._onDragStart(),onDragEnd:()=>this._onDragEnd()};this._verticalScrollbar=this._register(new y(this._scrollable,this._options,n)),this._horizontalScrollbar=this._register(new C(this._scrollable,this._options,n)),this._domNode=document.createElement("div"),this._domNode.className="monaco-scrollable-element "+this._options.className,this._domNode.setAttribute("role","presentation"),this._domNode.style.position="relative",this._domNode.style.overflow="hidden",this._domNode.appendChild(e),this._domNode.appendChild(this._horizontalScrollbar.domNode.domNode),this._domNode.appendChild(this._verticalScrollbar.domNode.domNode),this._options.useShadows?(this._leftShadowDomNode=(0,s.X)(document.createElement("div")),this._leftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._leftShadowDomNode.domNode),this._topShadowDomNode=(0,s.X)(document.createElement("div")),this._topShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topShadowDomNode.domNode),this._topLeftShadowDomNode=(0,s.X)(document.createElement("div")),this._topLeftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topLeftShadowDomNode.domNode)):(this._leftShadowDomNode=null,this._topShadowDomNode=null,this._topLeftShadowDomNode=null),this._listenOnDomNode=this._options.listenOnDomNode||this._domNode,this._mouseWheelToDispose=[],this._setListeningToMouseWheel(this._options.handleMouseWheel),this.onmouseover(this._listenOnDomNode,(e=>this._onMouseOver(e))),this.onnonbubblingmouseout(this._listenOnDomNode,(e=>this._onMouseOut(e))),this._hideTimeout=this._register(new h._F),this._isDragging=!1,this._mouseIsOver=!1,this._shouldRender=!0,this._revealOnScroll=!0}dispose(){this._mouseWheelToDispose=(0,u.B9)(this._mouseWheelToDispose),super.dispose()}getDomNode(){return this._domNode}getOverviewRulerLayoutInfo(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}}delegateVerticalScrollbarMouseDown(e){this._verticalScrollbar.delegateMouseDown(e)}getScrollDimensions(){return this._scrollable.getScrollDimensions()}setScrollDimensions(e){this._scrollable.setScrollDimensions(e,!1)}updateClassName(e){this._options.className=e,p.dz&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className}updateOptions(e){void 0!==e.handleMouseWheel&&(this._options.handleMouseWheel=e.handleMouseWheel,this._setListeningToMouseWheel(this._options.handleMouseWheel)),void 0!==e.mouseWheelScrollSensitivity&&(this._options.mouseWheelScrollSensitivity=e.mouseWheelScrollSensitivity),void 0!==e.fastScrollSensitivity&&(this._options.fastScrollSensitivity=e.fastScrollSensitivity),void 0!==e.scrollPredominantAxis&&(this._options.scrollPredominantAxis=e.scrollPredominantAxis),void 0!==e.horizontal&&(this._options.horizontal=e.horizontal),void 0!==e.vertical&&(this._options.vertical=e.vertical),void 0!==e.horizontalScrollbarSize&&(this._options.horizontalScrollbarSize=e.horizontalScrollbarSize),void 0!==e.verticalScrollbarSize&&(this._options.verticalScrollbarSize=e.verticalScrollbarSize),void 0!==e.scrollByPage&&(this._options.scrollByPage=e.scrollByPage),this._horizontalScrollbar.updateOptions(this._options),this._verticalScrollbar.updateOptions(this._options),this._options.lazyRender||this._render()}_setListeningToMouseWheel(e){if(this._mouseWheelToDispose.length>0!==e&&(this._mouseWheelToDispose=(0,u.B9)(this._mouseWheelToDispose),e)){const e=e=>{this._onMouseWheel(new r.q(e))};this._mouseWheelToDispose.push(o.nm(this._listenOnDomNode,o.tw.MOUSE_WHEEL,e,{passive:!1}))}}_onMouseWheel(e){const t=k.INSTANCE;{const i=window.devicePixelRatio/(0,n.ie)();p.ED||p.IJ?t.accept(Date.now(),e.deltaX/i,e.deltaY/i):t.accept(Date.now(),e.deltaX,e.deltaY)}let i=!1;if(e.deltaY||e.deltaX){let n=e.deltaY*this._options.mouseWheelScrollSensitivity,o=e.deltaX*this._options.mouseWheelScrollSensitivity;this._options.scrollPredominantAxis&&(Math.abs(n)>=Math.abs(o)?o=0:n=0),this._options.flipAxes&&([n,o]=[o,n]);const s=!p.dz&&e.browserEvent&&e.browserEvent.shiftKey;!this._options.scrollYToX&&!s||o||(o=n,n=0),e.browserEvent&&e.browserEvent.altKey&&(o*=this._options.fastScrollSensitivity,n*=this._options.fastScrollSensitivity);const r=this._scrollable.getFutureScrollPosition();let a={};if(n){const e=50*n,t=r.scrollTop-(e<0?Math.floor(e):Math.ceil(e));this._verticalScrollbar.writeScrollPosition(a,t)}if(o){const e=50*o,t=r.scrollLeft-(e<0?Math.floor(e):Math.ceil(e));this._horizontalScrollbar.writeScrollPosition(a,t)}if(a=this._scrollable.validateScrollPosition(a),r.scrollLeft!==a.scrollLeft||r.scrollTop!==a.scrollTop){this._options.mouseWheelSmoothScroll&&t.isPhysicalMouseWheel()?this._scrollable.setScrollPositionSmooth(a):this._scrollable.setScrollPositionNow(a),i=!0}}let o=i;!o&&this._options.alwaysConsumeMouseWheel&&(o=!0),!o&&this._options.consumeMouseWheelIfScrollbarIsNeeded&&(this._verticalScrollbar.isNeeded()||this._horizontalScrollbar.isNeeded())&&(o=!0),o&&(e.preventDefault(),e.stopPropagation())}_onDidScroll(e){this._shouldRender=this._horizontalScrollbar.onDidScroll(e)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(e)||this._shouldRender,this._options.useShadows&&(this._shouldRender=!0),this._revealOnScroll&&this._reveal(),this._options.lazyRender||this._render()}renderNow(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render()}_render(){if(this._shouldRender&&(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows)){const e=this._scrollable.getCurrentScrollPosition(),t=e.scrollTop>0,i=e.scrollLeft>0,n=i?" left":"",o=t?" top":"",s=i||t?" top-left-corner":"";this._leftShadowDomNode.setClassName(`shadow${n}`),this._topShadowDomNode.setClassName(`shadow${o}`),this._topLeftShadowDomNode.setClassName(`shadow${s}${o}${n}`)}}_onDragStart(){this._isDragging=!0,this._reveal()}_onDragEnd(){this._isDragging=!1,this._hide()}_onMouseOut(e){this._mouseIsOver=!1,this._hide()}_onMouseOver(e){this._mouseIsOver=!0,this._reveal()}_reveal(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()}_hide(){this._mouseIsOver||this._isDragging||(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())}_scheduleHide(){this._mouseIsOver||this._isDragging||this._hideTimeout.cancelAndSet((()=>this._hide()),500)}}class E extends D{constructor(e,t){(t=t||{}).mouseWheelSmoothScroll=!1;const i=new N.Rm(0,(e=>o.jL(e)));super(e,t,i),this._register(i)}setScrollPosition(e){this._scrollable.setScrollPositionNow(e)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}}class I extends D{constructor(e,t,i){super(e,t,i)}setScrollPosition(e){e.reuseAnimation?this._scrollable.setScrollPositionSmooth(e,e.reuseAnimation):this._scrollable.setScrollPositionNow(e)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}}class T extends E{constructor(e,t){super(e,t),this._element=e,this.onScroll((e=>{e.scrollTopChanged&&(this._element.scrollTop=e.scrollTop),e.scrollLeftChanged&&(this._element.scrollLeft=e.scrollLeft)})),this.scanDomNode()}scanDomNode(){this.setScrollDimensions({width:this._element.clientWidth,scrollWidth:this._element.scrollWidth,height:this._element.clientHeight,scrollHeight:this._element.scrollHeight}),this.setScrollPosition({scrollLeft:this._element.scrollLeft,scrollTop:this._element.scrollTop})}}},12002:function(e,t,i){"use strict";i.d(t,{M:function(){return v},z:function(){return b}});var n=i(69454),o=i(78233),s=i(17671),r=i(43506),a=i(51737),l=i(4348),h=i(69323),d=i(56722),c=i(28962),u=i(72999);const g={separatorBorder:a.Il.transparent};class p{constructor(e,t,i,n){this.container=e,this.view=t,this.disposable=n,this._cachedVisibleSize=void 0,"number"==typeof i?(this._size=i,this._cachedVisibleSize=void 0,e.classList.add("visible")):(this._size=0,this._cachedVisibleSize=i.cachedVisibleSize)}set size(e){this._size=e}get size(){return this._size}get visible(){return void 0===this._cachedVisibleSize}setVisible(e,t){e!==this.visible&&(e?(this.size=(0,d.u)(this._cachedVisibleSize,this.viewMinimumSize,this.viewMaximumSize),this._cachedVisibleSize=void 0):(this._cachedVisibleSize="number"==typeof t?t:this.size,this.size=0),this.container.classList.toggle("visible",e),this.view.setVisible&&this.view.setVisible(e))}get minimumSize(){return this.visible?this.view.minimumSize:0}get viewMinimumSize(){return this.view.minimumSize}get maximumSize(){return this.visible?this.view.maximumSize:0}get viewMaximumSize(){return this.view.maximumSize}get priority(){return this.view.priority}get snap(){return!!this.view.snap}set enabled(e){this.container.style.pointerEvents=e?"":"none"}layout(e,t){this.layoutContainer(e),this.view.layout(this.size,e,t)}dispose(){return this.disposable.dispose(),this.view}}class m extends p{layoutContainer(e){this.container.style.top=`${e}px`,this.container.style.height=`${this.size}px`}}class f extends p{layoutContainer(e){this.container.style.left=`${e}px`,this.container.style.width=`${this.size}px`}}var _,v;!function(e){e[e.Idle=0]="Idle",e[e.Busy=1]="Busy"}(_||(_={})),function(e){e.Distribute={type:"distribute"},e.Split=function(e){return{type:"split",index:e}},e.Invisible=function(e){return{type:"invisible",cachedVisibleSize:e}}}(v||(v={}));class b extends h.JT{constructor(e,t={}){var i,o;super(),this.size=0,this.contentSize=0,this.proportions=void 0,this.viewItems=[],this.sashItems=[],this.state=_.Idle,this._onDidSashChange=this._register(new l.Q5),this.onDidSashChange=this._onDidSashChange.event,this._onDidSashReset=this._register(new l.Q5),this._startSnappingEnabled=!0,this._endSnappingEnabled=!0,this.orientation=u.o8(t.orientation)?0:t.orientation,this.inverseAltBehavior=!!t.inverseAltBehavior,this.proportionalLayout=!!u.o8(t.proportionalLayout)||!!t.proportionalLayout,this.getSashOrthogonalSize=t.getSashOrthogonalSize,this.el=document.createElement("div"),this.el.classList.add("monaco-split-view2"),this.el.classList.add(0===this.orientation?"vertical":"horizontal"),e.appendChild(this.el),this.sashContainer=(0,n.R3)(this.el,(0,n.$)(".sash-container")),this.viewContainer=(0,n.$)(".split-view-container"),this.scrollable=new c.Rm(125,n.jL),this.scrollableElement=this._register(new s.$Z(this.viewContainer,{vertical:0===this.orientation?null!==(i=t.scrollbarVisibility)&&void 0!==i?i:1:2,horizontal:1===this.orientation?null!==(o=t.scrollbarVisibility)&&void 0!==o?o:1:2},this.scrollable)),this.onDidScroll=this.scrollableElement.onScroll,this._register(this.onDidScroll((e=>{this.viewContainer.scrollTop=e.scrollTop,this.viewContainer.scrollLeft=e.scrollLeft}))),(0,n.R3)(this.el,this.scrollableElement.getDomNode()),this.style(t.styles||g),t.descriptor&&(this.size=t.descriptor.size,t.descriptor.views.forEach(((e,t)=>{const i=u.o8(e.visible)||e.visible?e.size:{type:"invisible",cachedVisibleSize:e.size},n=e.view;this.doAddView(n,i,t,!0)})),this.contentSize=this.viewItems.reduce(((e,t)=>e+t.size),0),this.saveProportions())}get orthogonalStartSash(){return this._orthogonalStartSash}set orthogonalStartSash(e){for(const t of this.sashItems)t.sash.orthogonalStartSash=e;this._orthogonalStartSash=e}get orthogonalEndSash(){return this._orthogonalEndSash}set orthogonalEndSash(e){for(const t of this.sashItems)t.sash.orthogonalEndSash=e;this._orthogonalEndSash=e}get startSnappingEnabled(){return this._startSnappingEnabled}set startSnappingEnabled(e){this._startSnappingEnabled!==e&&(this._startSnappingEnabled=e,this.updateSashEnablement())}get endSnappingEnabled(){return this._endSnappingEnabled}set endSnappingEnabled(e){this._endSnappingEnabled!==e&&(this._endSnappingEnabled=e,this.updateSashEnablement())}style(e){e.separatorBorder.isTransparent()?(this.el.classList.remove("separator-border"),this.el.style.removeProperty("--separator-border")):(this.el.classList.add("separator-border"),this.el.style.setProperty("--separator-border",e.separatorBorder.toString()))}addView(e,t,i=this.viewItems.length,n){this.doAddView(e,t,i,n)}layout(e,t){const i=Math.max(this.size,this.contentSize);if(this.size=e,this.layoutContext=t,this.proportions)for(let t=0;t1===this.viewItems[e].priority)),o=t.filter((e=>2===this.viewItems[e].priority));this.resize(this.viewItems.length-1,e-i,void 0,n,o)}this.distributeEmptySpace(),this.layoutViews()}saveProportions(){this.proportionalLayout&&this.contentSize>0&&(this.proportions=this.viewItems.map((e=>e.size/this.contentSize)))}onSashStart({sash:e,start:t,alt:i}){for(const e of this.viewItems)e.enabled=!1;const o=this.sashItems.findIndex((t=>t.sash===e)),s=(0,h.F8)((0,n.nm)(document.body,"keydown",(e=>a(this.sashDragState.current,e.altKey))),(0,n.nm)(document.body,"keyup",(()=>a(this.sashDragState.current,!1)))),a=(e,t)=>{const i=this.viewItems.map((e=>e.size));let n,a,l=Number.NEGATIVE_INFINITY,h=Number.POSITIVE_INFINITY;if(this.inverseAltBehavior&&(t=!t),t){if(o===this.sashItems.length-1){const e=this.viewItems[o];l=(e.minimumSize-e.size)/2,h=(e.maximumSize-e.size)/2}else{const e=this.viewItems[o+1];l=(e.size-e.maximumSize)/2,h=(e.size-e.minimumSize)/2}}if(!t){const e=(0,r.w6)(o,-1),t=(0,r.w6)(o+1,this.viewItems.length),s=e.reduce(((e,t)=>e+(this.viewItems[t].minimumSize-i[t])),0),l=e.reduce(((e,t)=>e+(this.viewItems[t].viewMaximumSize-i[t])),0),h=0===t.length?Number.POSITIVE_INFINITY:t.reduce(((e,t)=>e+(i[t]-this.viewItems[t].minimumSize)),0),d=0===t.length?Number.NEGATIVE_INFINITY:t.reduce(((e,t)=>e+(i[t]-this.viewItems[t].viewMaximumSize)),0),c=Math.max(s,d),u=Math.min(h,l),g=this.findFirstSnapIndex(e),p=this.findFirstSnapIndex(t);if("number"==typeof g){const e=this.viewItems[g],t=Math.floor(e.viewMinimumSize/2);n={index:g,limitDelta:e.visible?c-t:c+t,size:e.size}}if("number"==typeof p){const e=this.viewItems[p],t=Math.floor(e.viewMinimumSize/2);a={index:p,limitDelta:e.visible?u+t:u-t,size:e.size}}}this.sashDragState={start:e,current:e,index:o,sizes:i,minDelta:l,maxDelta:h,alt:t,snapBefore:n,snapAfter:a,disposable:s}};a(t,i)}onSashChange({current:e}){const{index:t,start:i,sizes:n,alt:o,minDelta:s,maxDelta:r,snapBefore:a,snapAfter:l}=this.sashDragState;this.sashDragState.current=e;const h=e-i,d=this.resize(t,h,n,void 0,void 0,s,r,a,l);if(o){const e=t===this.sashItems.length-1,i=this.viewItems.map((e=>e.size)),n=e?t:t+1,o=this.viewItems[n],s=o.size-o.maximumSize,r=o.size-o.minimumSize,a=e?t-1:t+1;this.resize(a,-d,i,void 0,void 0,s,r)}this.distributeEmptySpace(),this.layoutViews()}onSashEnd(e){this._onDidSashChange.fire(e),this.sashDragState.disposable.dispose(),this.saveProportions();for(const e of this.viewItems)e.enabled=!0}onViewChange(e,t){const i=this.viewItems.indexOf(e);i<0||i>=this.viewItems.length||(t="number"==typeof t?t:e.size,t=(0,d.u)(t,e.minimumSize,e.maximumSize),this.inverseAltBehavior&&i>0?(this.resize(i-1,Math.floor((e.size-t)/2)),this.distributeEmptySpace(),this.layoutViews()):(e.size=t,this.relayout([i],void 0)))}resizeView(e,t){if(this.state!==_.Idle)throw new Error("Cant modify splitview");if(this.state=_.Busy,e<0||e>=this.viewItems.length)return;const i=(0,r.w6)(this.viewItems.length).filter((t=>t!==e)),n=[...i.filter((e=>1===this.viewItems[e].priority)),e],o=i.filter((e=>2===this.viewItems[e].priority)),s=this.viewItems[e];t=Math.round(t),t=(0,d.u)(t,s.minimumSize,Math.min(s.maximumSize,this.size)),s.size=t,this.relayout(n,o),this.state=_.Idle}distributeViewSizes(){const e=[];let t=0;for(const i of this.viewItems)i.maximumSize-i.minimumSize>0&&(e.push(i),t+=i.size);const i=Math.floor(t/e.length);for(const t of e)t.size=(0,d.u)(i,t.minimumSize,t.maximumSize);const n=(0,r.w6)(this.viewItems.length),o=n.filter((e=>1===this.viewItems[e].priority)),s=n.filter((e=>2===this.viewItems[e].priority));this.relayout(o,s)}getViewSize(e){return e<0||e>=this.viewItems.length?-1:this.viewItems[e].size}doAddView(e,t,i=this.viewItems.length,s){if(this.state!==_.Idle)throw new Error("Cant modify splitview");this.state=_.Busy;const a=(0,n.$)(".split-view-view");i===this.viewItems.length?this.viewContainer.appendChild(a):this.viewContainer.insertBefore(a,this.viewContainer.children.item(i));const d=e.onDidChange((e=>this.onViewChange(p,e))),c=(0,h.OF)((()=>this.viewContainer.removeChild(a))),u=(0,h.F8)(d,c);let g;g="number"==typeof t?t:"split"===t.type?this.getViewSize(t.index)/2:"invisible"===t.type?{cachedVisibleSize:t.cachedVisibleSize}:e.minimumSize;const p=0===this.orientation?new m(a,e,g,u):new f(a,e,g,u);if(this.viewItems.splice(i,0,p),this.viewItems.length>1){let e={orthogonalStartSash:this.orthogonalStartSash,orthogonalEndSash:this.orthogonalEndSash};const t=0===this.orientation?new o.g(this.sashContainer,{getHorizontalSashTop:e=>this.getSashPosition(e),getHorizontalSashWidth:this.getSashOrthogonalSize},Object.assign(Object.assign({},e),{orientation:1})):new o.g(this.sashContainer,{getVerticalSashLeft:e=>this.getSashPosition(e),getVerticalSashHeight:this.getSashOrthogonalSize},Object.assign(Object.assign({},e),{orientation:0})),n=0===this.orientation?e=>({sash:t,start:e.startY,current:e.currentY,alt:e.altKey}):e=>({sash:t,start:e.startX,current:e.currentX,alt:e.altKey}),s=l.ju.map(t.onDidStart,n)(this.onSashStart,this),a=l.ju.map(t.onDidChange,n)(this.onSashChange,this),d=l.ju.map(t.onDidEnd,(()=>this.sashItems.findIndex((e=>e.sash===t)))),c=d(this.onSashEnd,this),u=t.onDidReset((()=>{const e=this.sashItems.findIndex((e=>e.sash===t)),i=(0,r.w6)(e,-1),n=(0,r.w6)(e+1,this.viewItems.length),o=this.findFirstSnapIndex(i),s=this.findFirstSnapIndex(n);("number"!=typeof o||this.viewItems[o].visible)&&("number"!=typeof s||this.viewItems[s].visible)&&this._onDidSashReset.fire(e)})),g=(0,h.F8)(s,a,c,u,t),p={sash:t,disposable:g};this.sashItems.splice(i-1,0,p)}let v;a.appendChild(e.element),"number"!=typeof t&&"split"===t.type&&(v=[t.index]),s||this.relayout([i],v),this.state=_.Idle,s||"number"==typeof t||"distribute"!==t.type||this.distributeViewSizes()}relayout(e,t){const i=this.viewItems.reduce(((e,t)=>e+t.size),0);this.resize(this.viewItems.length-1,this.size-i,void 0,e,t),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions()}resize(e,t,i=this.viewItems.map((e=>e.size)),n,o,s=Number.NEGATIVE_INFINITY,a=Number.POSITIVE_INFINITY,l,h){if(e<0||e>=this.viewItems.length)return 0;const c=(0,r.w6)(e,-1),u=(0,r.w6)(e+1,this.viewItems.length);if(o)for(const e of o)(0,r.zI)(c,e),(0,r.zI)(u,e);if(n)for(const e of n)(0,r.al)(c,e),(0,r.al)(u,e);const g=c.map((e=>this.viewItems[e])),p=c.map((e=>i[e])),m=u.map((e=>this.viewItems[e])),f=u.map((e=>i[e])),_=c.reduce(((e,t)=>e+(this.viewItems[t].minimumSize-i[t])),0),v=c.reduce(((e,t)=>e+(this.viewItems[t].maximumSize-i[t])),0),b=0===u.length?Number.POSITIVE_INFINITY:u.reduce(((e,t)=>e+(i[t]-this.viewItems[t].minimumSize)),0),C=0===u.length?Number.NEGATIVE_INFINITY:u.reduce(((e,t)=>e+(i[t]-this.viewItems[t].maximumSize)),0),w=Math.max(_,C,s),S=Math.min(b,v,a);let y=!1;if(l){const e=this.viewItems[l.index],i=t>=l.limitDelta;y=i!==e.visible,e.setVisible(i,l.size)}if(!y&&h){const e=this.viewItems[h.index],i=te+t.size),0);let i=this.size-t;const n=(0,r.w6)(this.viewItems.length-1,-1),o=n.filter((e=>1===this.viewItems[e].priority)),s=n.filter((e=>2===this.viewItems[e].priority));for(const e of s)(0,r.zI)(n,e);for(const e of o)(0,r.al)(n,e);"number"==typeof e&&(0,r.al)(n,e);for(let e=0;0!==i&&ee+t.size),0);let e=0;for(const t of this.viewItems)t.layout(e,this.layoutContext),e+=t.size;this.sashItems.forEach((e=>e.sash.layout())),this.updateSashEnablement(),this.updateScrollableElement()}updateScrollableElement(){0===this.orientation?this.scrollableElement.setScrollDimensions({height:this.size,scrollHeight:this.contentSize}):this.scrollableElement.setScrollDimensions({width:this.size,scrollWidth:this.contentSize})}updateSashEnablement(){let e=!1;const t=this.viewItems.map((t=>e=t.size-t.minimumSize>0||e));e=!1;const i=this.viewItems.map((t=>e=t.maximumSize-t.size>0||e)),n=[...this.viewItems].reverse();e=!1;const o=n.map((t=>e=t.size-t.minimumSize>0||e)).reverse();e=!1;const s=n.map((t=>e=t.maximumSize-t.size>0||e)).reverse();let a=0;for(let e=0;e0||this.startSnappingEnabled)?n.state=1:c&&t[e]&&(a0)return;if(!e.visible&&e.snap)return t}}dispose(){super.dispose(),this.viewItems.forEach((e=>e.dispose())),this.viewItems=[],this.sashItems.forEach((e=>e.disposable.dispose())),this.sashItems=[]}}},62758:function(e,t,i){"use strict";i.d(t,{$:function(){return l}});var n=i(69454),o=i(92813),s=i(52390),r=i(60537),a=i(69323);class l extends a.JT{onclick(e,t){this._register(n.nm(e,n.tw.CLICK,(e=>t(new s.n(e)))))}onmousedown(e,t){this._register(n.nm(e,n.tw.MOUSE_DOWN,(e=>t(new s.n(e)))))}onmouseover(e,t){this._register(n.nm(e,n.tw.MOUSE_OVER,(e=>t(new s.n(e)))))}onnonbubblingmouseout(e,t){this._register(n.j_(e,(e=>t(new s.n(e)))))}onkeydown(e,t){this._register(n.nm(e,n.tw.KEY_DOWN,(e=>t(new o.y(e)))))}onkeyup(e,t){this._register(n.nm(e,n.tw.KEY_UP,(e=>t(new o.y(e)))))}oninput(e,t){this._register(n.nm(e,n.tw.INPUT,t))}onblur(e,t){this._register(n.nm(e,n.tw.BLUR,t))}onfocus(e,t){this._register(n.nm(e,n.tw.FOCUS,t))}ignoreGesture(e){r.o.ignoreTarget(e)}}},43506:function(e,t,i){"use strict";function n(e,t=0){return e[e.length-(1+t)]}function o(e){if(0===e.length)throw new Error("Invalid tail call");return[e.slice(0,e.length-1),e[e.length-1]]}function s(e,t,i=((e,t)=>e===t)){if(e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(let n=0,o=e.length;n0))return s;o=s-1}}return-(n+1)}function a(e,t){let i=0,n=e.length;if(0===n)return 0;for(;i=t.length)throw new TypeError("invalid index");let n=t[Math.floor(t.length*Math.random())],o=[],s=[],r=[];for(let e of t){const t=i(e,n);t<0?o.push(e):t>0?s.push(e):r.push(e)}return e!!e))}function c(e){return!Array.isArray(e)||0===e.length}function u(e){return Array.isArray(e)&&e.length>0}function g(e,t=(e=>e)){const i=new Set;return e.filter((e=>{const n=t(e);return!i.has(n)&&(i.add(n),!0)}))}function p(e,t){const i=function(e,t){for(let i=e.length-1;i>=0;i--){if(t(e[i]))return i}return-1}(e,t);if(-1!==i)return e[i]}function m(e,t){return e.length>0?e[0]:t}function f(e){return[].concat(...e)}function _(e,t){let i="number"==typeof t?e:0;"number"==typeof t?i=e:(i=0,t=e);const n=[];if(i<=t)for(let e=i;et;e--)n.push(e);return n}function v(e,t,i){const n=e.slice(0,t),o=e.slice(t);return n.concat(i,o)}function b(e,t){const i=e.indexOf(t);i>-1&&(e.splice(i,1),e.unshift(t))}function C(e,t){const i=e.indexOf(t);i>-1&&(e.splice(i,1),e.push(t))}function w(e){return Array.isArray(e)?e:[e]}function S(e,t,i,n){const o=y(e,t),s=e.splice(o,i);return function(e,t,i){const n=y(e,t),o=e.length,s=i.length;e.length=o+s;for(let t=o-1;t>=n;t--)e[t+s]=e[t];for(let t=0;t=0&&e(this.items[t]);)t--;const i=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,i}peek(){return this.items[this.firstIdx]}}},50431:function(e,t,i){"use strict";i.d(t,{J8:function(){return a},PG:function(){return l},Ps:function(){return m},To:function(){return b},Ue:function(){return C},Vg:function(){return p},Vs:function(){return g},_F:function(){return f},eP:function(){return h},jT:function(){return w},pY:function(){return v},rH:function(){return u},vp:function(){return c},zh:function(){return _}});var n=i(96283),o=i(79881),s=i(69323),r=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};function a(e){return!!e&&"function"==typeof e.then}function l(e){const t=new n.A,i=e(t.token),s=new Promise(((e,n)=>{const s=t.token.onCancellationRequested((()=>{s.dispose(),t.dispose(),n((0,o.F0)())}));Promise.resolve(i).then((i=>{s.dispose(),t.dispose(),e(i)}),(e=>{s.dispose(),t.dispose(),n(e)}))}));return new class{cancel(){t.cancel()}then(e,t){return s.then(e,t)}catch(e){return this.then(void 0,e)}finally(e){return s.finally(e)}}}function h(e,t,i){return Promise.race([e,new Promise((e=>t.onCancellationRequested((()=>e(i)))))])}class d{constructor(){this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}queue(e){if(this.activePromise){if(this.queuedPromiseFactory=e,!this.queuedPromise){const e=()=>{this.queuedPromise=null;const e=this.queue(this.queuedPromiseFactory);return this.queuedPromiseFactory=null,e};this.queuedPromise=new Promise((t=>{this.activePromise.then(e,e).then(t)}))}return new Promise(((e,t)=>{this.queuedPromise.then(e,t)}))}return this.activePromise=e(),new Promise(((e,t)=>{this.activePromise.then((t=>{this.activePromise=null,e(t)}),(e=>{this.activePromise=null,t(e)}))}))}}class c{constructor(e){this.defaultDelay=e,this.timeout=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}trigger(e,t=this.defaultDelay){return this.task=e,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise(((e,t)=>{this.doResolve=e,this.doReject=t})).then((()=>{if(this.completionPromise=null,this.doResolve=null,this.task){const e=this.task;return this.task=null,e()}}))),this.timeout=setTimeout((()=>{this.timeout=null,this.doResolve&&this.doResolve(null)}),t),this.completionPromise}isTriggered(){return null!==this.timeout}cancel(){this.cancelTimeout(),this.completionPromise&&(this.doReject&&this.doReject((0,o.F0)()),this.completionPromise=null)}cancelTimeout(){null!==this.timeout&&(clearTimeout(this.timeout),this.timeout=null)}dispose(){this.cancel()}}class u{constructor(e){this.delayer=new c(e),this.throttler=new d}trigger(e,t){return this.delayer.trigger((()=>this.throttler.queue(e)),t)}dispose(){this.delayer.dispose()}}function g(e,t){return t?new Promise(((i,n)=>{const s=setTimeout((()=>{r.dispose(),i()}),e),r=t.onCancellationRequested((()=>{clearTimeout(s),r.dispose(),n((0,o.F0)())}))})):l((t=>g(e,t)))}function p(e,t=0){const i=setTimeout(e,t);return(0,s.OF)((()=>clearTimeout(i)))}function m(e,t=(e=>!!e),i=null){let n=0;const o=e.length,s=()=>{if(n>=o)return Promise.resolve(i);const r=e[n++];return Promise.resolve(r()).then((e=>t(e)?Promise.resolve(e):s()))};return s()}class f{constructor(e,t){this._token=-1,"function"==typeof e&&"number"==typeof t&&this.setIfNotSet(e,t)}dispose(){this.cancel()}cancel(){-1!==this._token&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(e,t){this.cancel(),this._token=setTimeout((()=>{this._token=-1,e()}),t)}setIfNotSet(e,t){-1===this._token&&(this._token=setTimeout((()=>{this._token=-1,e()}),t))}}class _{constructor(){this._token=-1}dispose(){this.cancel()}cancel(){-1!==this._token&&(clearInterval(this._token),this._token=-1)}cancelAndSet(e,t){this.cancel(),this._token=setInterval((()=>{e()}),t)}}class v{constructor(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(e=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)}get delay(){return this.timeout}set delay(e){this.timeout=e}isScheduled(){return-1!==this.timeoutToken}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){this.runner&&this.runner()}}let b;b="function"!=typeof requestIdleCallback||"function"!=typeof cancelIdleCallback?e=>{const t=setTimeout((()=>{const t=Date.now()+15;e(Object.freeze({didTimeout:!0,timeRemaining(){return Math.max(0,t-Date.now())}}))}));let i=!1;return{dispose(){i||(i=!0,clearTimeout(t))}}}:(e,t)=>{const i=requestIdleCallback(e,"number"==typeof t?{timeout:t}:void 0);let n=!1;return{dispose(){n||(n=!0,cancelIdleCallback(i))}}};class C{constructor(e){this._didRun=!1,this._executor=()=>{try{this._value=e()}catch(e){this._error=e}finally{this._didRun=!0}},this._handle=b((()=>this._executor()))}dispose(){this._handle.dispose()}get value(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value}get isInitialized(){return this._didRun}}var w;!function(e){e.settled=function(e){return r(this,void 0,void 0,(function*(){let t;const i=yield Promise.all(e.map((e=>e.then((e=>e),(e=>{t||(t=e)})))));if(void 0!==t)throw t;return i}))},e.withAsyncBody=function(e){return new Promise(((t,i)=>r(this,void 0,void 0,(function*(){try{yield e(t,i)}catch(e){i(e)}}))))}}(w||(w={}))},90794:function(e,t,i){"use strict";i.d(t,{Ag:function(){return h},Cg:function(){return u},KN:function(){return r},Q$:function(){return c},T4:function(){return d},mP:function(){return a},oq:function(){return l}});var n=i(19208).lW;const o=void 0!==n;let s;class r{constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}static wrap(e){return o&&!n.isBuffer(e)&&(e=n.from(e.buffer,e.byteOffset,e.byteLength)),new r(e)}toString(){return o?this.buffer.toString():(s||(s=new TextDecoder),s.decode(this.buffer))}}function a(e,t){return e[t+0]<<0>>>0|e[t+1]<<8>>>0}function l(e,t,i){e[i+0]=255&t,t>>>=8,e[i+1]=255&t}function h(e,t){return e[t]*Math.pow(2,24)+e[t+1]*Math.pow(2,16)+e[t+2]*Math.pow(2,8)+e[t+3]}function d(e,t,i){e[i+3]=t,t>>>=8,e[i+2]=t,t>>>=8,e[i+1]=t,t>>>=8,e[i]=t}function c(e,t){return e[t]}function u(e,t,i){e[i]=t}},96283:function(e,t,i){"use strict";i.d(t,{A:function(){return a},T:function(){return s}});var n=i(4348);const o=Object.freeze((function(e,t){const i=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(i)}}}));var s;!function(e){e.isCancellationToken=function(t){return t===e.None||t===e.Cancelled||(t instanceof r||!(!t||"object"!=typeof t)&&("boolean"==typeof t.isCancellationRequested&&"function"==typeof t.onCancellationRequested))},e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:n.ju.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:o})}(s||(s={}));class r{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?o:(this._emitter||(this._emitter=new n.Q5),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class a{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new r),this._token}cancel(){this._token?this._token instanceof r&&this._token.cancel():this._token=s.Cancelled}dispose(e=!1){e&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof r&&this._token.dispose():this._token=s.None}}},55237:function(e,t,i){"use strict";i.d(t,{E:function(){return o},r:function(){return s}});const n=Object.prototype.hasOwnProperty;function o(e,t){for(let i in e)if(n.call(e,i)){if(!1===t({key:i,value:e[i]},(function(){delete e[i]})))return}}class s{constructor(){this.map=new Map}add(e,t){let i=this.map.get(e);i||(i=new Set,this.map.set(e,i)),i.add(t)}delete(e,t){const i=this.map.get(e);i&&(i.delete(t),0===i.size&&this.map.delete(e))}forEach(e,t){const i=this.map.get(e);i&&i.forEach(t)}}},51737:function(e,t,i){"use strict";function n(e,t){const i=Math.pow(10,t);return Math.round(e*i)/i}i.d(t,{Il:function(){return a},VS:function(){return o},tx:function(){return r}});class o{constructor(e,t,i,o=1){this._rgbaBrand=void 0,this.r=0|Math.min(255,Math.max(0,e)),this.g=0|Math.min(255,Math.max(0,t)),this.b=0|Math.min(255,Math.max(0,i)),this.a=n(Math.max(Math.min(1,o),0),3)}static equals(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a}}class s{constructor(e,t,i,o){this._hslaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=n(Math.max(Math.min(1,t),0),3),this.l=n(Math.max(Math.min(1,i),0),3),this.a=n(Math.max(Math.min(1,o),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.l===t.l&&e.a===t.a}static fromRGBA(e){const t=e.r/255,i=e.g/255,n=e.b/255,o=e.a,r=Math.max(t,i,n),a=Math.min(t,i,n);let l=0,h=0;const d=(a+r)/2,c=r-a;if(c>0){switch(h=Math.min(d<=.5?c/(2*d):c/(2-2*d),1),r){case t:l=(i-n)/c+(i1&&(i-=1),i<1/6?e+6*(t-e)*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}static toRGBA(e){const t=e.h/360,{s:i,l:n,a:r}=e;let a,l,h;if(0===i)a=l=h=n;else{const e=n<.5?n*(1+i):n+i-n*i,o=2*n-e;a=s._hue2rgb(o,e,t+1/3),l=s._hue2rgb(o,e,t),h=s._hue2rgb(o,e,t-1/3)}return new o(Math.round(255*a),Math.round(255*l),Math.round(255*h),r)}}class r{constructor(e,t,i,o){this._hsvaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=n(Math.max(Math.min(1,t),0),3),this.v=n(Math.max(Math.min(1,i),0),3),this.a=n(Math.max(Math.min(1,o),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.v===t.v&&e.a===t.a}static fromRGBA(e){const t=e.r/255,i=e.g/255,n=e.b/255,o=Math.max(t,i,n),s=o-Math.min(t,i,n),a=0===o?0:s/o;let l;return l=0===s?0:o===t?((i-n)/s%6+6)%6:o===i?(n-t)/s+2:(t-i)/s+4,new r(Math.round(60*l),a,o,e.a)}static toRGBA(e){const{h:t,s:i,v:n,a:s}=e,r=n*i,a=r*(1-Math.abs(t/60%2-1)),l=n-r;let[h,d,c]=[0,0,0];return t<60?(h=r,d=a):t<120?(h=a,d=r):t<180?(d=r,c=a):t<240?(d=a,c=r):t<300?(h=a,c=r):t<=360&&(h=r,c=a),h=Math.round(255*(h+l)),d=Math.round(255*(d+l)),c=Math.round(255*(c+l)),new o(h,d,c,s)}}class a{constructor(e){if(!e)throw new Error("Color needs a value");if(e instanceof o)this.rgba=e;else if(e instanceof s)this._hsla=e,this.rgba=s.toRGBA(e);else{if(!(e instanceof r))throw new Error("Invalid color ctor argument");this._hsva=e,this.rgba=r.toRGBA(e)}}static fromHex(e){return a.Format.CSS.parseHex(e)||a.red}get hsla(){return this._hsla?this._hsla:s.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:r.fromRGBA(this.rgba)}equals(e){return!!e&&o.equals(this.rgba,e.rgba)&&s.equals(this.hsla,e.hsla)&&r.equals(this.hsva,e.hsva)}getRelativeLuminance(){return n(.2126*a._relativeLuminanceForComponent(this.rgba.r)+.7152*a._relativeLuminanceForComponent(this.rgba.g)+.0722*a._relativeLuminanceForComponent(this.rgba.b),4)}static _relativeLuminanceForComponent(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}isLighter(){return(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3>=128}isLighterThan(e){return this.getRelativeLuminance()>e.getRelativeLuminance()}isDarkerThan(e){return this.getRelativeLuminance()0||this.m_modifiedCount>0)&&this.m_changes.push(new n(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++}AddModifiedElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class d{constructor(e,t,i=null){this.ContinueProcessingPredicate=i,this._originalSequence=e,this._modifiedSequence=t;const[n,o,s]=d._getElements(e),[r,a,l]=d._getElements(t);this._hasStrings=s&&l,this._originalStringElements=n,this._originalElementsOrHash=o,this._modifiedStringElements=r,this._modifiedElementsOrHash=a,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&"string"==typeof e[0]}static _getElements(e){const t=e.getElements();if(d._isStringArray(t)){const e=new Int32Array(t.length);for(let i=0,n=t.length;i=e&&o>=i&&this.ElementsAreEqual(t,o);)t--,o--;if(e>t||i>o){let s;return i<=o?(a.Assert(e===t+1,"originalStart should only be one more than originalEnd"),s=[new n(e,0,i,o-i+1)]):e<=t?(a.Assert(i===o+1,"modifiedStart should only be one more than modifiedEnd"),s=[new n(e,t-e+1,i,0)]):(a.Assert(e===t+1,"originalStart should only be one more than originalEnd"),a.Assert(i===o+1,"modifiedStart should only be one more than modifiedEnd"),s=[]),s}const r=[0],l=[0],h=this.ComputeRecursionPoint(e,t,i,o,r,l,s),d=r[0],c=l[0];if(null!==h)return h;if(!s[0]){const r=this.ComputeDiffRecursive(e,d,i,c,s);let a=[];return a=s[0]?[new n(d+1,t-(d+1)+1,c+1,o-(c+1)+1)]:this.ComputeDiffRecursive(d+1,t,c+1,o,s),this.ConcatenateChanges(r,a)}return[new n(e,t-e+1,i,o-i+1)]}WALKTRACE(e,t,i,o,s,r,a,l,d,c,u,g,p,m,f,_,v,b){let C=null,w=null,S=new h,y=t,L=i,N=p[0]-_[0]-o,x=-1073741824,k=this.m_forwardHistory.length-1;do{const t=N+e;t===y||t=0&&(e=(d=this.m_forwardHistory[k])[0],y=1,L=d.length-1)}while(--k>=-1);if(C=S.getReverseChanges(),b[0]){let e=p[0]+1,t=_[0]+1;if(null!==C&&C.length>0){const i=C[C.length-1];e=Math.max(e,i.getOriginalEnd()),t=Math.max(t,i.getModifiedEnd())}w=[new n(e,g-e+1,t,f-t+1)]}else{S=new h,y=r,L=a,N=p[0]-_[0]-l,x=1073741824,k=v?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const e=N+s;e===y||e=c[e+1]?(m=(u=c[e+1]-1)-N-l,u>x&&S.MarkNextChange(),x=u+1,S.AddOriginalElement(u+1,m+1),N=e+1-s):(m=(u=c[e-1])-N-l,u>x&&S.MarkNextChange(),x=u,S.AddModifiedElement(u+1,m+1),N=e-1-s),k>=0&&(s=(c=this.m_reverseHistory[k])[0],y=1,L=c.length-1)}while(--k>=-1);w=S.getChanges()}return this.ConcatenateChanges(C,w)}ComputeRecursionPoint(e,t,i,o,s,r,a){let h=0,d=0,c=0,u=0,g=0,p=0;e--,i--,s[0]=0,r[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const m=t-e+(o-i),f=m+1,_=new Int32Array(f),v=new Int32Array(f),b=o-i,C=t-e,w=e-i,S=t-o,y=(C-b)%2==0;_[b]=e,v[C]=t,a[0]=!1;for(let L=1;L<=m/2+1;L++){let m=0,N=0;c=this.ClipDiagonalBound(b-L,L,b,f),u=this.ClipDiagonalBound(b+L,L,b,f);for(let e=c;e<=u;e+=2){h=e===c||em+N&&(m=h,N=d),!y&&Math.abs(e-C)<=L-1&&h>=v[e])return s[0]=h,r[0]=d,i<=v[e]&&L<=1448?this.WALKTRACE(b,c,u,w,C,g,p,S,_,v,h,t,s,d,o,r,y,a):null}const x=(m-e+(N-i)-L)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(m,x))return a[0]=!0,s[0]=m,r[0]=N,x>0&&L<=1448?this.WALKTRACE(b,c,u,w,C,g,p,S,_,v,h,t,s,d,o,r,y,a):(e++,i++,[new n(e,t-e+1,i,o-i+1)]);g=this.ClipDiagonalBound(C-L,L,C,f),p=this.ClipDiagonalBound(C+L,L,C,f);for(let n=g;n<=p;n+=2){h=n===g||n=v[n+1]?v[n+1]-1:v[n-1],d=h-(n-C)-S;const l=h;for(;h>e&&d>i&&this.ElementsAreEqual(h,d);)h--,d--;if(v[n]=h,y&&Math.abs(n-b)<=L&&h<=_[n])return s[0]=h,r[0]=d,l>=_[n]&&L<=1448?this.WALKTRACE(b,c,u,w,C,g,p,S,_,v,h,t,s,d,o,r,y,a):null}if(L<=1447){let e=new Int32Array(u-c+2);e[0]=b-c+1,l.Copy2(_,c,e,1,u-c+1),this.m_forwardHistory.push(e),e=new Int32Array(p-g+2),e[0]=C-g+1,l.Copy2(v,g,e,1,p-g+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(b,c,u,w,C,g,p,S,_,v,h,t,s,d,o,r,y,a)}PrettifyChanges(e){for(let t=0;t0,r=i.modifiedLength>0;for(;i.originalStart+i.originalLength=0;t--){const i=e[t];let n=0,o=0;if(t>0){const i=e[t-1];n=i.originalStart+i.originalLength,o=i.modifiedStart+i.modifiedLength}const s=i.originalLength>0,r=i.modifiedLength>0;let a=0,l=this._boundaryScore(i.originalStart,i.originalLength,i.modifiedStart,i.modifiedLength);for(let e=1;;e++){const t=i.originalStart-e,h=i.modifiedStart-e;if(tl&&(l=d,a=e)}i.originalStart-=a,i.modifiedStart-=a;const h=[null];t>0&&this.ChangesOverlap(e[t-1],e[t],h)&&(e[t-1]=h[0],e.splice(t,1),t++)}if(this._hasStrings)for(let t=1,i=e.length;t0&&i>a&&(a=i,l=t,h=e)}return a>0?[l,h]:null}_contiguousSequenceScore(e,t,i){let n=0;for(let o=0;o=this._originalElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){const i=e+t;if(this._OriginalIsBoundary(i-1)||this._OriginalIsBoundary(i))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){const i=e+t;if(this._ModifiedIsBoundary(i-1)||this._ModifiedIsBoundary(i))return!0}return!1}_boundaryScore(e,t,i,n){return(this._OriginalRegionIsBoundary(e,t)?1:0)+(this._ModifiedRegionIsBoundary(i,n)?1:0)}ConcatenateChanges(e,t){let i=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],i)){const n=new Array(e.length+t.length-1);return l.Copy(e,0,n,0,e.length-1),n[e.length-1]=i[0],l.Copy(t,1,n,e.length,t.length-1),n}{const i=new Array(e.length+t.length);return l.Copy(e,0,i,0,e.length),l.Copy(t,0,i,e.length,t.length),i}}ChangesOverlap(e,t,i){if(a.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),a.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){const o=e.originalStart;let s=e.originalLength;const r=e.modifiedStart;let a=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(s=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(a=t.modifiedStart+t.modifiedLength-e.modifiedStart),i[0]=new n(o,s,r,a),!0}return i[0]=null,!1}ClipDiagonalBound(e,t,i,n){if(e>=0&&ee.length)return!1;if(i){if(!(0,s.ok)(e,t))return!1;if(t.length===e.length)return!0;let i=t.length;return t.charAt(t.length-1)===o&&i--,e.charAt(i)===o}return t.charAt(t.length-1)!==o&&(t+=o),0===e.indexOf(t)}function l(e){const t=(0,n.Fv)(e);return o.ED?!(e.length>3)&&(h(t)&&(2===e.length||92===t.charCodeAt(2))):t===n.KR.sep}function h(e){return!!o.ED&&(((t=e.charCodeAt(0))>=65&&t<=90||t>=97&&t<=122)&&58===e.charCodeAt(1));var t}},99599:function(e,t,i){"use strict";i.d(t,{CL:function(){return W},EW:function(){return H},Ji:function(){return r},KZ:function(){return C},Oh:function(){return x},ir:function(){return a},jB:function(){return k},l7:function(){return K},mB:function(){return D},or:function(){return s}});var n=i(78421),o=i(82983);function s(...e){return function(t,i){for(let n=0,o=e.length;n0?[{start:0,end:t.length}]:[]}.bind(void 0,!0);function a(e,t){const i=t.toLowerCase().indexOf(e.toLowerCase());return-1===i?null:[{start:i,end:i+e.length}]}function l(e,t,i,n){if(i===e.length)return[];if(n===t.length)return null;if(e[i]===t[n]){let o=null;return(o=l(e,t,i+1,n+1))?f({start:n,end:n+1},o):null}return l(e,t,i,n+1)}function h(e){return 97<=e&&e<=122}function d(e){return 65<=e&&e<=90}function c(e){return 48<=e&&e<=57}function u(e){return 32===e||9===e||10===e||13===e}const g=new Set;function p(e){return u(e)||g.has(e)}function m(e){return h(e)||d(e)||c(e)}function f(e,t){return 0===t.length?t=[e]:e.end===t[0].start?t[0].start=e.start:t.unshift(e),t}function _(e,t){for(let i=t;i0&&!m(e.charCodeAt(i-1)))return i}return e.length}function v(e,t,i,n){if(i===e.length)return[];if(n===t.length)return null;if(e[i]!==t[n].toLowerCase())return null;{let o=null,s=n+1;for(o=v(e,t,i+1,n+1);!o&&(s=_(t,s))60)return null;const i=function(e){let t=0,i=0,n=0,o=0,s=0;for(let r=0;r.2&&t<.8&&n>.6&&o<.2}(i)){if(!function(e){const{upperPercent:t,lowerPercent:i}=e;return 0===i&&t>.6}(i))return null;t=t.toLowerCase()}let n=null,o=0;for(e=e.toLowerCase();o0&&p(e.charCodeAt(i-1)))return i;return e.length}"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?".split("").forEach((e=>g.add(e.charCodeAt(0))));const y=s(r,b,a),L=s(r,b,(function(e,t){return l(e.toLowerCase(),t.toLowerCase(),0,0)})),N=new n.z6(1e4);function x(e,t,i=!1){if("string"!=typeof e||"string"!=typeof t)return null;let n=N.get(e);n||(n=new RegExp(o.un(e),"i"),N.set(e,n));const s=n.exec(t);return s?[{start:s.index,end:s.index+s[0].length}]:i?L(e,t):y(e,t)}function k(e,t,i,n,o,s){const r=Math.min(13,e.length);for(;i1;n--){const o=e[n]+i,s=t[t.length-1];s&&s.end===o?s.end=o+1:t.push({start:o,end:o+1})}return t}const E=128;function I(){const e=[],t=[];for(let e=0;e<=E;e++)t[e]=0;for(let i=0;i<=E;i++)e.push(t.slice(0));return e}function T(e){const t=[];for(let i=0;i<=e;i++)t[i]=0;return t}const M=T(256),A=T(256),R=I(),O=I(),P=I();function F(e,t){if(t<0||t>=e.length)return!1;const i=e.codePointAt(t);switch(i){case 95:case 45:case 46:case 32:case 47:case 92:case 39:case 34:case 58:case 36:case 60:case 40:case 91:return!0;case void 0:return!1;default:return!!o.C8(i)}}function B(e,t){if(t<0||t>=e.length)return!1;switch(e.charCodeAt(t)){case 32:case 9:return!0;default:return!1}}function V(e,t,i){return t[e]!==i[e]}var W;function H(e,t,i,n,o,s,r){const a=e.length>E?E:e.length,l=n.length>E?E:n.length;if(i>=a||s>=l||a-i>l-s)return;if(!function(e,t,i,n,o,s,r=!1){for(;t=i&&a>=n;)o[r]===s[a]&&(A[r]=a,r--),a--}(a,l,i,s,t,o);let h=1,d=1,c=i,u=s;const g=[!1];for(h=1,c=i;cr,v=_?O[h][d-1]+(R[h][d-1]>0?-5:0):0,b=u>r+1&&R[h][d-1]>0,C=b?O[h][d-2]+(R[h][d-2]>0?-5:0):0;if(b&&(!_||C>=v)&&(!m||C>=f))O[h][d]=C,P[h][d]=3,R[h][d]=0;else if(_&&(!m||v>=f))O[h][d]=v,P[h][d]=2,R[h][d]=0;else{if(!m)throw new Error("not possible");O[h][d]=f,P[h][d]=1,R[h][d]=R[h-1][d-1]+1}}}if(!g[0]&&!r)return;h--,d--;const p=[O[h][d],s];let m=0,f=0;for(;h>=1;){let e=d;do{const t=P[h][e];if(3===t)e-=2;else{if(2!==t)break;e-=1}}while(e>=1);m>1&&t[i+h-1]===o[s+d-1]&&!V(e+s-1,n,o)&&m+1>R[h][e]&&(e=d),e===d?m++:m=1,f||(f=e),h--,d=e-1,p.push(d)}l===a&&(p[0]+=2);const _=f-a;return p[0]-=_,p}function z(e,t,i,n,o,s,r,a,l,h,d){if(t[i]!==s[r])return Number.MIN_SAFE_INTEGER;let c=1,u=!1;return r===i-n?c=e[i]===o[r]?7:5:!V(r,o,s)||0!==r&&V(r-1,o,s)?!F(s,r)||0!==r&&F(s,r-1)?(F(s,r-1)||B(s,r-1))&&(c=5,u=!0):c=5:(c=e[i]===o[r]?7:5,u=!0),c>1&&i===n&&(d[0]=!0),u||(u=V(r,o,s)||F(s,r-1)||B(s,r-1)),i===n?r>l&&(c-=u?3:5):c+=h?u?2:0:u?0:1,r+1===a&&(c-=u?3:5),c}function K(e,t,i,n,o,s,r){return function(e,t,i,n,o,s,r,a){let l=H(e,t,i,n,o,s,a);if(l&&!r)return l;if(e.length>=3){const t=Math.min(7,e.length-1);for(let r=i+1;rl[0])&&(l=e))}}}return l}(e,t,i,n,o,s,!0,r)}function U(e,t){if(t+1>=e.length)return;const i=e[t],n=e[t+1];return i!==n?e.slice(0,t)+n+i+e.slice(t+2):void 0}!function(e){e.Default=[-100,0],e.isDefault=function(e){return!e||2===e.length&&-100===e[0]&&0===e[1]}}(W||(W={}))},63224:function(e,t,i){"use strict";i.d(t,{EQ:function(){return D},Qc:function(){return E}});var n=i(50431),o=i(57637),s=i(78421),r=i(26227),a=i(82983);const l="**",h="[/\\\\]",d="[^/\\\\]",c=/\//g;function u(e){switch(e){case 0:return"";case 1:return`${d}*?`;default:return`(?:${h}|${d}+${h}|${h}${d}+)*?`}}function g(e,t){if(!e)return[];const i=[];let n=!1,o=!1,s="";for(const r of e){switch(r){case t:if(!n&&!o){i.push(s),s="";continue}break;case"{":n=!0;break;case"}":n=!1;break;case"[":o=!0;break;case"]":o=!1}s+=r}return s&&i.push(s),i}function p(e){if(!e)return"";let t="";const i=g(e,"/");if(i.every((e=>e===l)))t=".*";else{let e=!1;i.forEach(((n,o)=>{if(n===l)return void(e||(t+=u(2),e=!0));let s=!1,r="",c=!1,m="";for(const e of n)if("}"!==e&&s)r+=e;else if(!c||"]"===e&&m)switch(e){case"{":s=!0;continue;case"[":c=!0;continue;case"}":const i=`(?:${g(r,",").map((e=>p(e))).join("|")})`;t+=i,s=!1,r="";break;case"]":t+="["+m+"]",c=!1,m="";break;case"?":t+=d;continue;case"*":t+=u(1);continue;default:t+=a.ec(e)}else{let t;t="-"===e?e:"^"!==e&&"!"!==e||m?"/"===e?"":a.ec(e):"^",m+=t}oL(e,t))).filter((e=>e!==y)),e),n=i.length;if(!n)return y;if(1===n)return i[0];const o=function(t,n){for(let o=0,s=i.length;o!!e.allBasenames));s&&(o.allBasenames=s.allBasenames);const r=i.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);r.length&&(o.allPaths=r);return o}(i,t):(o=b.exec(x(i,t)))?k(o[1].substr(1),i,!0):(o=C.exec(x(i,t)))?k(o[1],i,!1):function(e){try{const t=new RegExp(`^${p(e)}$`);return function(i){return t.lastIndex=0,"string"==typeof i&&t.test(i)?e:null}}catch(e){return y}}(i);return w.set(n,s),N(s,e)}function N(e,t){return"string"==typeof t?e:function(i,n){return o.KM(i,t.base)?e(r.Gf(t.base,i),n):null}}function x(e,t){return t.trimForExclusions&&e.endsWith("/**")?e.substr(0,e.length-2):e}function k(e,t,i){const n=r.ir===r.KR.sep,o=n?e:e.replace(c,r.ir),s=r.ir+o,a=r.KR.sep+e,l=i?function(i,r){return"string"!=typeof i||i!==o&&!i.endsWith(s)&&(n||i!==e&&!i.endsWith(a))?null:t}:function(i,s){return"string"!=typeof i||i!==o&&(n||i!==e)?null:t};return l.allPaths=[(i?"*/":"./")+e],l}function D(e,t,i){return!(!e||"string"!=typeof t)&&E(e)(t,void 0,i)}function E(e,t={}){if(!e)return S;if("string"==typeof e||function(e){const t=e;return t&&"string"==typeof t.base&&"string"==typeof t.pattern}(e)){const i=L(e,t);if(i===y)return S;const n=function(e,t){return!!i(e,t)};return i.allBasenames&&(n.allBasenames=i.allBasenames),i.allPaths&&(n.allPaths=i.allPaths),n}return function(e,t){const i=I(Object.getOwnPropertyNames(e).map((i=>function(e,t,i){if(!1===t)return y;const o=L(e,i);if(o===y)return y;if("boolean"==typeof t)return o;if(t){const i=t.when;if("string"==typeof i){const t=(t,s,r,a)=>{if(!a||!o(t,s))return null;const l=a(i.replace("$(basename)",r));return(0,n.J8)(l)?l.then((t=>t?e:null)):l?e:null};return t.requiresSiblings=!0,t}}return o}(i,e[i],t))).filter((e=>e!==y))),o=i.length;if(!o)return y;if(!i.some((e=>!!e.requiresSiblings))){if(1===o)return i[0];const e=function(e,t){for(let n=0,o=i.length;n!!e.allBasenames));t&&(e.allBasenames=t.allBasenames);const n=i.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);return n.length&&(e.allPaths=n),e}const s=function(e,t,n){let o;for(let s=0,a=i.length;s!!e.allBasenames));a&&(s.allBasenames=a.allBasenames);const l=i.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);l.length&&(s.allPaths=l);return s}(e,t)}function I(e,t){const i=e.filter((e=>!!e.basenames));if(i.length<2)return e;const n=i.reduce(((e,t)=>{const i=t.basenames;return i?e.concat(i):e}),[]);let o;if(t){o=[];for(let e=0,i=n.length;e{const i=t.patterns;return i?e.concat(i):e}),[]);const s=function(e,t){if("string"!=typeof e)return null;if(!t){let i;for(i=e.length;i>0;i--){const t=e.charCodeAt(i-1);if(47===t||92===t)break}t=e.substr(i)}const i=n.indexOf(t);return-1!==i?o[i]:null};s.basenames=n,s.patterns=o,s.allBasenames=n;const r=e.filter((e=>!e.basenames));return r.push(s),r}},44619:function(e,t,i){"use strict";i.d(t,{Cv:function(){return a},SP:function(){return s},vp:function(){return o},yP:function(){return c}});var n=i(82983);function o(e){return s(e,0)}function s(e,t){switch(typeof e){case"object":return null===e?r(349,t):Array.isArray(e)?(i=e,n=r(104579,n=t),i.reduce(((e,t)=>s(t,e)),n)):function(e,t){return t=r(181387,t),Object.keys(e).sort().reduce(((t,i)=>(t=a(i,t),s(e[i],t))),t)}(e,t);case"string":return a(e,t);case"boolean":return function(e,t){return r(e?433:863,t)}(e,t);case"number":return r(e,t);case"undefined":return r(937,t);default:return r(617,t)}var i,n}function r(e,t){return(t<<5)-t+e|0}function a(e,t){t=r(149417,t);for(let i=0,n=e.length;i>>n)>>>0}function h(e,t=0,i=e.byteLength,n=0){for(let o=0;oe.toString(16).padStart(2,"0"))).join(""):function(e,t,i="0"){for(;e.length>>0).toString(16),t/4)}class c{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){const t=e.length;if(0===t)return;const i=this._buff;let o,s,r=this._buffLen,a=this._leftoverHighSurrogate;for(0!==a?(o=a,s=-1,a=0):(o=e.charCodeAt(0),s=0);;){let l=o;if(n.ZG(o)){if(!(s+1>>6,e[t++]=128|(63&i)>>>0):i<65536?(e[t++]=224|(61440&i)>>>12,e[t++]=128|(4032&i)>>>6,e[t++]=128|(63&i)>>>0):(e[t++]=240|(1835008&i)>>>18,e[t++]=128|(258048&i)>>>12,e[t++]=128|(4032&i)>>>6,e[t++]=128|(63&i)>>>0),t>=64&&(this._step(),t-=64,this._totalLen+=64,e[0]=e[64],e[1]=e[65],e[2]=e[66]),t}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),d(this._h0)+d(this._h1)+d(this._h2)+d(this._h3)+d(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,h(this._buff,this._buffLen),this._buffLen>56&&(this._step(),h(this._buff));const e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const e=c._bigBlock32,t=this._buffDV;for(let i=0;i<64;i+=4)e.setUint32(i,t.getUint32(i,!1),!1);for(let t=64;t<320;t+=4)e.setUint32(t,l(e.getUint32(t-12,!1)^e.getUint32(t-32,!1)^e.getUint32(t-56,!1)^e.getUint32(t-64,!1),1),!1);let i,n,o,s=this._h0,r=this._h1,a=this._h2,h=this._h3,d=this._h4;for(let t=0;t<80;t++)t<20?(i=r&a|~r&h,n=1518500249):t<40?(i=r^a^h,n=1859775393):t<60?(i=r&a|r&h|a&h,n=2400959708):(i=r^a^h,n=3395469782),o=l(s,5)+i+d+n+e.getUint32(4*t,!1)&4294967295,d=h,h=a,a=l(r,30),r=s,s=o;this._h0=this._h0+s&4294967295,this._h1=this._h1+r&4294967295,this._h2=this._h2+a&4294967295,this._h3=this._h3+h&4294967295,this._h4=this._h4+d&4294967295}}c._bigBlock32=new DataView(new ArrayBuffer(320))},94186:function(e,t,i){"use strict";i.d(t,{CP:function(){return r},Fr:function(){return a},W5:function(){return s},oR:function(){return l},v1:function(){return h}});var n=i(79881),o=i(38940);class s{constructor(e="",t=!1){var i,o,s;if(this.value=e,"string"!=typeof this.value)throw(0,n.b1)("value");"boolean"==typeof t?(this.isTrusted=t,this.supportThemeIcons=!1,this.supportHtml=!1):(this.isTrusted=null!==(i=t.isTrusted)&&void 0!==i?i:void 0,this.supportThemeIcons=null!==(o=t.supportThemeIcons)&&void 0!==o&&o,this.supportHtml=null!==(s=t.supportHtml)&&void 0!==s&&s)}appendText(e,t=0){var i;return this.value+=(i=this.supportThemeIcons?(0,o.Qo)(e):e,i.replace(/[\\`*_{}[\]()#+\-!]/g,"\\$&")).replace(/([ \t]+)/g,((e,t)=>" ".repeat(t.length))).replace(/\>/gm,"\\>").replace(/\n/g,1===t?"\\\n":"\n\n"),this}appendMarkdown(e){return this.value+=e,this}appendCodeblock(e,t){return this.value+="\n```",this.value+=e,this.value+="\n",this.value+=t,this.value+="\n```\n",this}}function r(e){return a(e)?!e.value:!Array.isArray(e)||e.every(r)}function a(e){return e instanceof s||!(!e||"object"!=typeof e)&&!("string"!=typeof e.value||"boolean"!=typeof e.isTrusted&&void 0!==e.isTrusted||"boolean"!=typeof e.supportThemeIcons&&void 0!==e.supportThemeIcons)}function l(e){return e?e.replace(/\\([\\`*_{}[\]()#+\-.!])/g,"$1"):e}function h(e){const t=[],i=e.split("|").map((e=>e.trim()));e=i[0];const n=i[1];if(n){const e=/height=(\d+)/.exec(n),i=/width=(\d+)/.exec(n),o=e?e[1]:"",s=i?i[1]:"",r=isFinite(parseInt(s)),a=isFinite(parseInt(o));r&&t.push(`width="${s}"`),a&&t.push(`height="${o}"`)}return{href:e,dimensions:t}}},38940:function(e,t,i){"use strict";i.d(t,{Gt:function(){return m},Ho:function(){return p},Qo:function(){return h},f$:function(){return c},x$:function(){return g}});var n=i(52615),o=i(99599),s=i(82983);const r="$(",a=new RegExp(`\\$\\(${n.dT.iconNameExpression}(?:${n.dT.iconModifierExpression})?\\)`,"g"),l=new RegExp(`(\\\\)?${a.source}`,"g");function h(e){return e.replace(l,((e,t)=>t?e:`\\${e}`))}const d=new RegExp(`\\\\${a.source}`,"g");function c(e){return e.replace(d,(e=>`\\${e}`))}const u=new RegExp(`(\\s)?(\\\\)?${a.source}(\\s)?`,"g");function g(e){return-1===e.indexOf(r)?e:e.replace(u,((e,t,i,n)=>i?e:t||n||""))}function p(e){const t=e.indexOf(r);return-1===t?{text:e}:function(e,t){const i=[];let n="";function o(e){if(e){n+=e;for(const t of e)i.push(d)}}let s,a,l=-1,h="",d=0,c=t;const u=e.length;o(e.substr(0,t));for(;c>>0)>>>0}!function(){const e="",t=[[0,1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[0,1,1,"Hyper",0,e,0,e,e,e],[0,1,2,"Super",0,e,0,e,e,e],[0,1,3,"Fn",0,e,0,e,e,e],[0,1,4,"FnLock",0,e,0,e,e,e],[0,1,5,"Suspend",0,e,0,e,e,e],[0,1,6,"Resume",0,e,0,e,e,e],[0,1,7,"Turbo",0,e,0,e,e,e],[0,1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[0,1,9,"WakeUp",0,e,0,e,e,e],[31,0,10,"KeyA",31,"A",65,"VK_A",e,e],[32,0,11,"KeyB",32,"B",66,"VK_B",e,e],[33,0,12,"KeyC",33,"C",67,"VK_C",e,e],[34,0,13,"KeyD",34,"D",68,"VK_D",e,e],[35,0,14,"KeyE",35,"E",69,"VK_E",e,e],[36,0,15,"KeyF",36,"F",70,"VK_F",e,e],[37,0,16,"KeyG",37,"G",71,"VK_G",e,e],[38,0,17,"KeyH",38,"H",72,"VK_H",e,e],[39,0,18,"KeyI",39,"I",73,"VK_I",e,e],[40,0,19,"KeyJ",40,"J",74,"VK_J",e,e],[41,0,20,"KeyK",41,"K",75,"VK_K",e,e],[42,0,21,"KeyL",42,"L",76,"VK_L",e,e],[43,0,22,"KeyM",43,"M",77,"VK_M",e,e],[44,0,23,"KeyN",44,"N",78,"VK_N",e,e],[45,0,24,"KeyO",45,"O",79,"VK_O",e,e],[46,0,25,"KeyP",46,"P",80,"VK_P",e,e],[47,0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[48,0,27,"KeyR",48,"R",82,"VK_R",e,e],[49,0,28,"KeyS",49,"S",83,"VK_S",e,e],[50,0,29,"KeyT",50,"T",84,"VK_T",e,e],[51,0,30,"KeyU",51,"U",85,"VK_U",e,e],[52,0,31,"KeyV",52,"V",86,"VK_V",e,e],[53,0,32,"KeyW",53,"W",87,"VK_W",e,e],[54,0,33,"KeyX",54,"X",88,"VK_X",e,e],[55,0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[56,0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[22,0,36,"Digit1",22,"1",49,"VK_1",e,e],[23,0,37,"Digit2",23,"2",50,"VK_2",e,e],[24,0,38,"Digit3",24,"3",51,"VK_3",e,e],[25,0,39,"Digit4",25,"4",52,"VK_4",e,e],[26,0,40,"Digit5",26,"5",53,"VK_5",e,e],[27,0,41,"Digit6",27,"6",54,"VK_6",e,e],[28,0,42,"Digit7",28,"7",55,"VK_7",e,e],[29,0,43,"Digit8",29,"8",56,"VK_8",e,e],[30,0,44,"Digit9",30,"9",57,"VK_9",e,e],[21,0,45,"Digit0",21,"0",48,"VK_0",e,e],[3,1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[9,1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[2,1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[10,1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[83,0,51,"Minus",83,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[81,0,52,"Equal",81,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[87,0,53,"BracketLeft",87,"[",219,"VK_OEM_4","[","OEM_4"],[89,0,54,"BracketRight",89,"]",221,"VK_OEM_6","]","OEM_6"],[88,0,55,"Backslash",88,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,0,56,"IntlHash",0,e,0,e,e,e],[80,0,57,"Semicolon",80,";",186,"VK_OEM_1",";","OEM_1"],[90,0,58,"Quote",90,"'",222,"VK_OEM_7","'","OEM_7"],[86,0,59,"Backquote",86,"`",192,"VK_OEM_3","`","OEM_3"],[82,0,60,"Comma",82,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[84,0,61,"Period",84,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[85,0,62,"Slash",85,"/",191,"VK_OEM_2","/","OEM_2"],[8,1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",e,e],[59,1,64,"F1",59,"F1",112,"VK_F1",e,e],[60,1,65,"F2",60,"F2",113,"VK_F2",e,e],[61,1,66,"F3",61,"F3",114,"VK_F3",e,e],[62,1,67,"F4",62,"F4",115,"VK_F4",e,e],[63,1,68,"F5",63,"F5",116,"VK_F5",e,e],[64,1,69,"F6",64,"F6",117,"VK_F6",e,e],[65,1,70,"F7",65,"F7",118,"VK_F7",e,e],[66,1,71,"F8",66,"F8",119,"VK_F8",e,e],[67,1,72,"F9",67,"F9",120,"VK_F9",e,e],[68,1,73,"F10",68,"F10",121,"VK_F10",e,e],[69,1,74,"F11",69,"F11",122,"VK_F11",e,e],[70,1,75,"F12",70,"F12",123,"VK_F12",e,e],[0,1,76,"PrintScreen",0,e,0,e,e,e],[79,1,77,"ScrollLock",79,"ScrollLock",145,"VK_SCROLL",e,e],[7,1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[19,1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[14,1,80,"Home",14,"Home",36,"VK_HOME",e,e],[11,1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[20,1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[13,1,83,"End",13,"End",35,"VK_END",e,e],[12,1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[17,1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[15,1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[18,1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[16,1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[78,1,89,"NumLock",78,"NumLock",144,"VK_NUMLOCK",e,e],[108,1,90,"NumpadDivide",108,"NumPad_Divide",111,"VK_DIVIDE",e,e],[103,1,91,"NumpadMultiply",103,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[106,1,92,"NumpadSubtract",106,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[104,1,93,"NumpadAdd",104,"NumPad_Add",107,"VK_ADD",e,e],[3,1,94,"NumpadEnter",3,e,0,e,e,e],[94,1,95,"Numpad1",94,"NumPad1",97,"VK_NUMPAD1",e,e],[95,1,96,"Numpad2",95,"NumPad2",98,"VK_NUMPAD2",e,e],[96,1,97,"Numpad3",96,"NumPad3",99,"VK_NUMPAD3",e,e],[97,1,98,"Numpad4",97,"NumPad4",100,"VK_NUMPAD4",e,e],[98,1,99,"Numpad5",98,"NumPad5",101,"VK_NUMPAD5",e,e],[99,1,100,"Numpad6",99,"NumPad6",102,"VK_NUMPAD6",e,e],[100,1,101,"Numpad7",100,"NumPad7",103,"VK_NUMPAD7",e,e],[101,1,102,"Numpad8",101,"NumPad8",104,"VK_NUMPAD8",e,e],[102,1,103,"Numpad9",102,"NumPad9",105,"VK_NUMPAD9",e,e],[93,1,104,"Numpad0",93,"NumPad0",96,"VK_NUMPAD0",e,e],[107,1,105,"NumpadDecimal",107,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[92,0,106,"IntlBackslash",92,"OEM_102",226,"VK_OEM_102",e,e],[58,1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[0,1,108,"Power",0,e,0,e,e,e],[0,1,109,"NumpadEqual",0,e,0,e,e,e],[71,1,110,"F13",71,"F13",124,"VK_F13",e,e],[72,1,111,"F14",72,"F14",125,"VK_F14",e,e],[73,1,112,"F15",73,"F15",126,"VK_F15",e,e],[74,1,113,"F16",74,"F16",127,"VK_F16",e,e],[75,1,114,"F17",75,"F17",128,"VK_F17",e,e],[76,1,115,"F18",76,"F18",129,"VK_F18",e,e],[77,1,116,"F19",77,"F19",130,"VK_F19",e,e],[0,1,117,"F20",0,e,0,"VK_F20",e,e],[0,1,118,"F21",0,e,0,"VK_F21",e,e],[0,1,119,"F22",0,e,0,"VK_F22",e,e],[0,1,120,"F23",0,e,0,"VK_F23",e,e],[0,1,121,"F24",0,e,0,"VK_F24",e,e],[0,1,122,"Open",0,e,0,e,e,e],[0,1,123,"Help",0,e,0,e,e,e],[0,1,124,"Select",0,e,0,e,e,e],[0,1,125,"Again",0,e,0,e,e,e],[0,1,126,"Undo",0,e,0,e,e,e],[0,1,127,"Cut",0,e,0,e,e,e],[0,1,128,"Copy",0,e,0,e,e,e],[0,1,129,"Paste",0,e,0,e,e,e],[0,1,130,"Find",0,e,0,e,e,e],[0,1,131,"AudioVolumeMute",112,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[0,1,132,"AudioVolumeUp",113,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[0,1,133,"AudioVolumeDown",114,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[105,1,134,"NumpadComma",105,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[110,0,135,"IntlRo",110,"ABNT_C1",193,"VK_ABNT_C1",e,e],[0,1,136,"KanaMode",0,e,0,e,e,e],[0,0,137,"IntlYen",0,e,0,e,e,e],[0,1,138,"Convert",0,e,0,e,e,e],[0,1,139,"NonConvert",0,e,0,e,e,e],[0,1,140,"Lang1",0,e,0,e,e,e],[0,1,141,"Lang2",0,e,0,e,e,e],[0,1,142,"Lang3",0,e,0,e,e,e],[0,1,143,"Lang4",0,e,0,e,e,e],[0,1,144,"Lang5",0,e,0,e,e,e],[0,1,145,"Abort",0,e,0,e,e,e],[0,1,146,"Props",0,e,0,e,e,e],[0,1,147,"NumpadParenLeft",0,e,0,e,e,e],[0,1,148,"NumpadParenRight",0,e,0,e,e,e],[0,1,149,"NumpadBackspace",0,e,0,e,e,e],[0,1,150,"NumpadMemoryStore",0,e,0,e,e,e],[0,1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[0,1,152,"NumpadMemoryClear",0,e,0,e,e,e],[0,1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[0,1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[0,1,155,"NumpadClear",0,e,0,e,e,e],[0,1,156,"NumpadClearEntry",0,e,0,e,e,e],[5,1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[4,1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[6,1,0,e,6,"Alt",18,"VK_MENU",e,e],[57,1,0,e,57,"Meta",0,"VK_COMMAND",e,e],[5,1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[4,1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[6,1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[57,1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[5,1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[4,1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[6,1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[57,1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[0,1,165,"BrightnessUp",0,e,0,e,e,e],[0,1,166,"BrightnessDown",0,e,0,e,e,e],[0,1,167,"MediaPlay",0,e,0,e,e,e],[0,1,168,"MediaRecord",0,e,0,e,e,e],[0,1,169,"MediaFastForward",0,e,0,e,e,e],[0,1,170,"MediaRewind",0,e,0,e,e,e],[114,1,171,"MediaTrackNext",119,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[115,1,172,"MediaTrackPrevious",120,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[116,1,173,"MediaStop",121,"MediaStop",178,"VK_MEDIA_STOP",e,e],[0,1,174,"Eject",0,e,0,e,e,e],[117,1,175,"MediaPlayPause",122,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[0,1,176,"MediaSelect",123,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[0,1,177,"LaunchMail",124,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[0,1,178,"LaunchApp2",125,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[0,1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[0,1,180,"SelectTask",0,e,0,e,e,e],[0,1,181,"LaunchScreenSaver",0,e,0,e,e,e],[0,1,182,"BrowserSearch",115,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[0,1,183,"BrowserHome",116,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[112,1,184,"BrowserBack",117,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[113,1,185,"BrowserForward",118,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[0,1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[0,1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[0,1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[0,1,189,"ZoomToggle",0,e,0,e,e,e],[0,1,190,"MailReply",0,e,0,e,e,e],[0,1,191,"MailForward",0,e,0,e,e,e],[0,1,192,"MailSend",0,e,0,e,e,e],[109,1,0,e,109,"KeyInComposition",229,e,e,e],[111,1,0,e,111,"ABNT_C2",194,"VK_ABNT_C2",e,e],[91,1,0,e,91,"OEM_8",223,"VK_OEM_8",e,e],[0,1,0,e,0,e,0,"VK_CLEAR",e,e],[0,1,0,e,0,e,0,"VK_KANA",e,e],[0,1,0,e,0,e,0,"VK_HANGUL",e,e],[0,1,0,e,0,e,0,"VK_JUNJA",e,e],[0,1,0,e,0,e,0,"VK_FINAL",e,e],[0,1,0,e,0,e,0,"VK_HANJA",e,e],[0,1,0,e,0,e,0,"VK_KANJI",e,e],[0,1,0,e,0,e,0,"VK_CONVERT",e,e],[0,1,0,e,0,e,0,"VK_NONCONVERT",e,e],[0,1,0,e,0,e,0,"VK_ACCEPT",e,e],[0,1,0,e,0,e,0,"VK_MODECHANGE",e,e],[0,1,0,e,0,e,0,"VK_SELECT",e,e],[0,1,0,e,0,e,0,"VK_PRINT",e,e],[0,1,0,e,0,e,0,"VK_EXECUTE",e,e],[0,1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[0,1,0,e,0,e,0,"VK_HELP",e,e],[0,1,0,e,0,e,0,"VK_APPS",e,e],[0,1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[0,1,0,e,0,e,0,"VK_PACKET",e,e],[0,1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[0,1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[0,1,0,e,0,e,0,"VK_ATTN",e,e],[0,1,0,e,0,e,0,"VK_CRSEL",e,e],[0,1,0,e,0,e,0,"VK_EXSEL",e,e],[0,1,0,e,0,e,0,"VK_EREOF",e,e],[0,1,0,e,0,e,0,"VK_PLAY",e,e],[0,1,0,e,0,e,0,"VK_ZOOM",e,e],[0,1,0,e,0,e,0,"VK_NONAME",e,e],[0,1,0,e,0,e,0,"VK_PA1",e,e],[0,1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]];let i=[],n=[];for(const e of t){const[t,p,m,f,_,v,b,C,w,S]=e;if(n[m]||(n[m]=!0,h[m]=f,d[f]=m,c[f.toLowerCase()]=m,p&&(u[m]=_,0!==_&&3!==_&&5!==_&&4!==_&&6!==_&&57!==_&&(g[_]=m))),!i[_]){if(i[_]=!0,!v)throw new Error(`String representation missing for key code ${_} around scan code ${f}`);o.define(_,v),s.define(_,w||v),r.define(_,S||w||v)}b&&(a[b]=_),C&&(l[C]=_)}g[3]=46}(),function(e){e.toString=function(e){return o.keyCodeToStr(e)},e.fromString=function(e){return o.strToKeyCode(e)},e.toUserSettingsUS=function(e){return s.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return r.keyCodeToStr(e)},e.fromUserSettings=function(e){return s.strToKeyCode(e)||r.strToKeyCode(e)},e.toElectronAccelerator=function(e){if(e>=93&&e<=108)return null;switch(e){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return o.keyCodeToStr(e)}}(p||(p={}))},66872:function(e,t,i){"use strict";i.d(t,{X4:function(){return r},jC:function(){return a},xo:function(){return s}});var n=i(13268);class o{constructor(e,t,i=t){this.modifierLabels=[null],this.modifierLabels[2]=e,this.modifierLabels[1]=t,this.modifierLabels[3]=i}toLabel(e,t,i){if(0===t.length)return null;const n=[];for(let o=0,s=t.length;o>>0,n=(4294901760&e)>>>16;return new a(0!==n?[s(i,t),s(n,t)]:[s(i,t)])}function s(e,t){const i=!!(2048&e),n=!!(256&e);return new r(2===t?n:i,!!(1024&e),!!(512&e),2===t?i:n,255&e)}class r{constructor(e,t,i,n,o){this.ctrlKey=e,this.shiftKey=t,this.altKey=i,this.metaKey=n,this.keyCode=o}equals(e){return this.ctrlKey===e.ctrlKey&&this.shiftKey===e.shiftKey&&this.altKey===e.altKey&&this.metaKey===e.metaKey&&this.keyCode===e.keyCode}isModifierKey(){return 0===this.keyCode||5===this.keyCode||57===this.keyCode||6===this.keyCode||4===this.keyCode}toChord(){return new a([this])}isDuplicateModifierCase(){return this.ctrlKey&&5===this.keyCode||this.shiftKey&&4===this.keyCode||this.altKey&&6===this.keyCode||this.metaKey&&57===this.keyCode}}class a{constructor(e){if(0===e.length)throw(0,n.b1)("parts");this.parts=e}}class l{constructor(e,t,i,n,o,s){this.ctrlKey=e,this.shiftKey=t,this.altKey=i,this.metaKey=n,this.keyLabel=o,this.keyAriaLabel=s}}class h{}},51983:function(e,t,i){"use strict";i.d(t,{D:function(){return h},p:function(){return l}});var n=i(57637),o=i(66657),s=i(23345),r=i(9365),a=i(5472);function l(e){if(!e)return;"string"==typeof e&&(e=a.o.file(e));const t=(0,r.EZ)(e)||(e.scheme===o.lg.file?e.fsPath:e.path);return s.ED&&(0,n.vY)(t)?h(t):t}function h(e){return(0,n.oP)(e)?e.charAt(0).toUpperCase()+e.slice(1):e}},78421:function(e,t,i){"use strict";i.d(t,{Id:function(){return c},Y9:function(){return g},z6:function(){return m}});var n,o,s=i(82983);class r{constructor(){this._value="",this._pos=0}reset(e){return this._value=e,this._pos=0,this}next(){return this._pos+=1,this}hasNext(){return this._pos!1)){return new c(new h(e))}static forStrings(){return new c(new r)}static forConfigKeys(){return new c(new a)}clear(){this._root=void 0}set(e,t){const i=this._iter.reset(e);let n;this._root||(this._root=new d,this._root.segment=i.value());const o=[];for(n=this._root;;){const e=i.cmp(n.segment);if(e>0)n.left||(n.left=new d,n.left.segment=i.value()),o.push([-1,n]),n=n.left;else if(e<0)n.right||(n.right=new d,n.right.segment=i.value()),o.push([1,n]),n=n.right;else{if(!i.hasNext())break;i.next(),n.mid||(n.mid=new d,n.mid.segment=i.value()),o.push([0,n]),n=n.mid}}const s=n.value;n.value=t,n.key=e;for(let e=o.length-1;e>=0;e--){const t=o[e][1];t.updateHeight();const i=t.balanceFactor();if(i<-1||i>1){const i=o[e][0],n=o[e+1][0];if(1===i&&1===n)o[e][1]=t.rotateLeft();else if(-1===i&&-1===n)o[e][1]=t.rotateRight();else if(1===i&&-1===n)t.right=o[e+1][1]=o[e+1][1].rotateRight(),o[e][1]=t.rotateLeft();else{if(-1!==i||1!==n)throw new Error;t.left=o[e+1][1]=o[e+1][1].rotateLeft(),o[e][1]=t.rotateRight()}if(e>0)switch(o[e-1][0]){case-1:o[e-1][1].left=o[e][1];break;case 1:o[e-1][1].right=o[e][1];break;case 0:o[e-1][1].mid=o[e][1]}else this._root=o[0][1]}}return s}get(e){var t;return null===(t=this._getNode(e))||void 0===t?void 0:t.value}_getNode(e){const t=this._iter.reset(e);let i=this._root;for(;i;){const e=t.cmp(i.segment);if(e>0)i=i.left;else if(e<0)i=i.right;else{if(!t.hasNext())break;t.next(),i=i.mid}}return i}has(e){const t=this._getNode(e);return!(void 0===(null==t?void 0:t.value)&&void 0===(null==t?void 0:t.mid))}delete(e){return this._delete(e,!1)}deleteSuperstr(e){return this._delete(e,!0)}_delete(e,t){var i;const n=this._iter.reset(e),o=[];let s=this._root;for(;s;){const e=n.cmp(s.segment);if(e>0)o.push([-1,s]),s=s.left;else if(e<0)o.push([1,s]),s=s.right;else{if(!n.hasNext())break;n.next(),o.push([0,s]),s=s.mid}}if(s){if(t?(s.left=void 0,s.mid=void 0,s.right=void 0,s.height=1):(s.key=void 0,s.value=void 0),!s.mid&&!s.value)if(s.left&&s.right){const e=this._min(s.right),{key:t,value:i,segment:n}=e;this._delete(e.key,!1),s.key=t,s.value=i,s.segment=n}else{const e=null!==(i=s.left)&&void 0!==i?i:s.right;if(o.length>0){const[t,i]=o[o.length-1];switch(t){case-1:i.left=e;break;case 0:i.mid=e;break;case 1:i.right=e}}else this._root=e}for(let e=o.length-1;e>=0;e--){const t=o[e][1];t.updateHeight();const i=t.balanceFactor();if(i>1?(t.right.balanceFactor()>=0||(t.right=o[e+1][1]=o[e+1][1].rotateRight()),o[e][1]=t.rotateLeft()):i<-1&&(t.left.balanceFactor()<=0||(t.left=o[e+1][1]=o[e+1][1].rotateLeft()),o[e][1]=t.rotateRight()),e>0)switch(o[e-1][0]){case-1:o[e-1][1].left=o[e][1];break;case 1:o[e-1][1].right=o[e][1];break;case 0:o[e-1][1].mid=o[e][1]}else this._root=o[0][1]}}}_min(e){for(;e.left;)e=e.left;return e}findSubstr(e){const t=this._iter.reset(e);let i,n=this._root;for(;n;){const e=t.cmp(n.segment);if(e>0)n=n.left;else if(e<0)n=n.right;else{if(!t.hasNext())break;t.next(),i=n.value||i,n=n.mid}}return n&&n.value||i}findSuperstr(e){const t=this._iter.reset(e);let i=this._root;for(;i;){const e=t.cmp(i.segment);if(e>0)i=i.left;else if(e<0)i=i.right;else{if(!t.hasNext())return i.mid?this._entries(i.mid):void 0;t.next(),i=i.mid}}}forEach(e){for(const[t,i]of this)e(i,t)}*[Symbol.iterator](){yield*this._entries(this._root)}*_entries(e){e&&(e.left&&(yield*this._entries(e.left)),e.value&&(yield[e.key,e.value]),e.mid&&(yield*this._entries(e.mid)),e.right&&(yield*this._entries(e.right)))}}class u{constructor(e,t){this.uri=e,this.value=t}}class g{constructor(e,t){this[n]="ResourceMap",e instanceof g?(this.map=new Map(e.map),this.toKey=null!=t?t:g.defaultToKey):(this.map=new Map,this.toKey=null!=e?e:g.defaultToKey)}set(e,t){return this.map.set(this.toKey(e),new u(e,t)),this}get(e){var t;return null===(t=this.map.get(this.toKey(e)))||void 0===t?void 0:t.value}has(e){return this.map.has(this.toKey(e))}get size(){return this.map.size}clear(){this.map.clear()}delete(e){return this.map.delete(this.toKey(e))}forEach(e,t){void 0!==t&&(e=e.bind(t));for(let[t,i]of this.map)e(i.value,i.uri,this)}*values(){for(let e of this.map.values())yield e.value}*keys(){for(let e of this.map.values())yield e.uri}*entries(){for(let e of this.map.values())yield[e.uri,e.value]}*[(n=Symbol.toStringTag,Symbol.iterator)](){for(let[,e]of this.map)yield[e.uri,e.value]}}g.defaultToKey=e=>e.toString();class p{constructor(){this[o]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){var e;return null===(e=this._head)||void 0===e?void 0:e.value}get last(){var e;return null===(e=this._tail)||void 0===e?void 0:e.value}has(e){return this._map.has(e)}get(e,t=0){const i=this._map.get(e);if(i)return 0!==t&&this.touch(i,t),i.value}set(e,t,i=0){let n=this._map.get(e);if(n)n.value=t,0!==i&&this.touch(n,i);else{switch(n={key:e,value:t,next:void 0,previous:void 0},i){case 0:case 2:default:this.addItemLast(n);break;case 1:this.addItemFirst(n)}this._map.set(e,n),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){const i=this._state;let n=this._head;for(;n;){if(t?e.bind(t)(n.value,n.key,this):e(n.value,n.key,this),this._state!==i)throw new Error("LinkedMap got modified during iteration.");n=n.next}}keys(){const e=this,t=this._state;let i=this._head;const n={[Symbol.iterator](){return n},next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){const e={value:i.key,done:!1};return i=i.next,e}return{value:void 0,done:!0}}};return n}values(){const e=this,t=this._state;let i=this._head;const n={[Symbol.iterator](){return n},next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){const e={value:i.value,done:!1};return i=i.next,e}return{value:void 0,done:!0}}};return n}entries(){const e=this,t=this._state;let i=this._head;const n={[Symbol.iterator](){return n},next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){const e={value:[i.key,i.value],done:!1};return i=i.next,e}return{value:void 0,done:!0}}};return n}[(o=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._head,i=this.size;for(;t&&i>e;)this._map.delete(t.key),t=t.next,i--;this._head=t,this._size=i,t&&(t.previous=void 0),this._state++}addItemFirst(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e,this._state++}addItemLast(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,i=e.previous;if(!t||!i)throw new Error("Invalid list");t.previous=i,i.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(1===t||2===t)if(1===t){if(e===this._head)return;const t=e.next,i=e.previous;e===this._tail?(i.next=void 0,this._tail=i):(t.previous=i,i.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(2===t){if(e===this._tail)return;const t=e.next,i=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=i,i.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}toJSON(){const e=[];return this.forEach(((t,i)=>{e.push([i,t])})),e}fromJSON(e){this.clear();for(const[t,i]of e)this.set(t,i)}}class m extends p{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get(e,t=2){return super.get(e,t)}peek(e){return super.get(e,0)}set(e,t){return super.set(e,t,2),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}},39941:function(e,t,i){"use strict";let n;i.d(t,{Qc:function(){return s},Th:function(){return o}}),e=i.hmd(e),function(){function t(e){n=e()}var i,o;t.amd=!0,i=this,o=function(){function e(e,t){for(var i=0;ie.length)&&(t=e.length);for(var i=0,n=new Array(t);i=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n={exports:{}};function o(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}n.exports={defaults:{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1},getDefaults:o,changeDefaults:function(e){n.exports.defaults=e}};var s=/[&<>"']/,r=/[&<>"']/g,a=/[<>"']|&(?!#?\w+;)/,l=/[<>"']|&(?!#?\w+;)/g,h={"&":"&","<":"<",">":">",'"':""","'":"'"},d=function(e){return h[e]},c=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function u(e){return e.replace(c,(function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""}))}var g=/(^|[^\[])\^/g,p=/[^\w:]/g,m=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i,f={},_=/^[^:]+:\/*[^/]*$/,v=/^([^:]+:)[\s\S]*$/,b=/^([^:]+:\/*[^/]*)[\s\S]*$/;function C(e,t){f[" "+e]||(_.test(e)?f[" "+e]=e+"/":f[" "+e]=w(e,"/",!0));var i=-1===(e=f[" "+e]).indexOf(":");return"//"===t.substring(0,2)?i?t:e.replace(v,"$1")+t:"/"===t.charAt(0)?i?t:e.replace(b,"$1")+t:e+t}function w(e,t,i){var n=e.length;if(0===n)return"";for(var o=0;o=0&&"\\"===i[o];)n=!n;return n?"|":" |"})).split(/ \|/),n=0;if(i[0].trim()||i.shift(),i[i.length-1].trim()||i.pop(),i.length>t)i.splice(t);else for(;i.length1;)1&t&&(i+=e),t>>=1,e+=e;return i+e},A=n.exports.defaults,R=E,O=D,P=S,F=I;function B(e,t,i,n){var o=t.href,s=t.title?P(t.title):null,r=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){n.state.inLink=!0;var a={type:"link",raw:i,href:o,title:s,text:r,tokens:n.inlineTokens(r,[])};return n.state.inLink=!1,a}return{type:"image",raw:i,href:o,title:s,text:P(r)}}var V=function(){function e(e){this.options=e||A}var t=e.prototype;return t.space=function(e){var t=this.rules.block.newline.exec(e);if(t)return t[0].length>1?{type:"space",raw:t[0]}:{raw:"\n"}},t.code=function(e){var t=this.rules.block.code.exec(e);if(t){var i=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?i:R(i,"\n")}}},t.fences=function(e){var t=this.rules.block.fences.exec(e);if(t){var i=t[0],n=function(e,t){var i=e.match(/^(\s+)(?:```)/);if(null===i)return t;var n=i[1];return t.split("\n").map((function(e){var t=e.match(/^\s+/);return null===t?e:t[0].length>=n.length?e.slice(n.length):e})).join("\n")}(i,t[3]||"");return{type:"code",raw:i,lang:t[2]?t[2].trim():t[2],text:n}}},t.heading=function(e){var t=this.rules.block.heading.exec(e);if(t){var i=t[2].trim();if(/#$/.test(i)){var n=R(i,"#");this.options.pedantic?i=n.trim():n&&!/ $/.test(n)||(i=n.trim())}var o={type:"heading",raw:t[0],depth:t[1].length,text:i,tokens:[]};return this.lexer.inline(o.text,o.tokens),o}},t.hr=function(e){var t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}},t.blockquote=function(e){var t=this.rules.block.blockquote.exec(e);if(t){var i=t[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:t[0],tokens:this.lexer.blockTokens(i,[]),text:i}}},t.list=function(e){var t=this.rules.block.list.exec(e);if(t){var i,n,o,s,r,a,l,h,d,c,u=t[1].trim(),g=u.length>1,p={type:"list",raw:"",ordered:g,start:g?+u.slice(0,-1):"",loose:!1,items:[]};u=g?"\\d{1,9}\\"+u.slice(-1):"\\"+u,this.options.pedantic&&(u=g?u:"[*+-]");for(var m=new RegExp("^( {0,3}"+u+")((?: [^\\n]*| *)(?:\\n[^\\n]*)*(?:\\n|$))");e&&!this.rules.block.hr.test(e)&&(t=m.exec(e));){d=t[2].split("\n"),this.options.pedantic?(s=2,c=d[0].trimLeft()):(s=t[2].search(/[^ ]/),s=t[1].length+(s>4?1:s),c=d[0].slice(s-t[1].length)),a=!1,i=t[0],!d[0]&&/^ *$/.test(d[1])&&(i=t[1]+d.slice(0,2).join("\n")+"\n",p.loose=!0,d=[]);var f=new RegExp("^ {0,"+Math.min(3,s-1)+"}(?:[*+-]|\\d{1,9}[.)])");for(r=1;r=s)&&h.trim()){i=t[1]+d.slice(0,r).join("\n")+"\n";break}c+="\n"+h.slice(s)}else h.trim()||(a=!0),h.search(/[^ ]/)>=s?c+="\n"+h.slice(s):c+="\n"+h}p.loose||(l?p.loose=!0:/\n *\n *$/.test(i)&&(l=!0)),this.options.gfm&&(n=/^\[[ xX]\] /.exec(c))&&(o="[ ] "!==n[0],c=c.replace(/^\[[ xX]\] +/,"")),p.items.push({type:"list_item",raw:i,task:!!n,checked:o,loose:!1,text:c}),p.raw+=i,e=e.slice(i.length)}p.items[p.items.length-1].raw=i.trimRight(),p.items[p.items.length-1].text=c.trimRight(),p.raw=p.raw.trimRight();var _=p.items.length;for(r=0;r<_;r++)this.lexer.state.top=!1,p.items[r].tokens=this.lexer.blockTokens(p.items[r].text,[]),p.items[r].tokens.some((function(e){return"space"===e.type}))&&(p.loose=!0,p.items[r].loose=!0);return p}},t.html=function(e){var t=this.rules.block.html.exec(e);if(t){var i={type:"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:t[0]};return this.options.sanitize&&(i.type="paragraph",i.text=this.options.sanitizer?this.options.sanitizer(t[0]):P(t[0]),i.tokens=[],this.lexer.inline(i.text,i.tokens)),i}},t.def=function(e){var t=this.rules.block.def.exec(e);if(t)return t[3]&&(t[3]=t[3].substring(1,t[3].length-1)),{type:"def",tag:t[1].toLowerCase().replace(/\s+/g," "),raw:t[0],href:t[2],title:t[3]}},t.table=function(e){var t=this.rules.block.table.exec(e);if(t){var i={type:"table",header:O(t[1]).map((function(e){return{text:e}})),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]?t[3].replace(/\n$/,"").split("\n"):[]};if(i.header.length===i.align.length){i.raw=t[0];var n,o,s,r,a=i.align.length;for(n=0;n/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):P(t[0]):t[0]}},t.link=function(e){var t=this.rules.inline.link.exec(e);if(t){var i=t[2].trim();if(!this.options.pedantic&&/^$/.test(i))return;var n=R(i.slice(0,-1),"\\");if((i.length-n.length)%2==0)return}else{var o=F(t[2],"()");if(o>-1){var s=(0===t[0].indexOf("!")?5:4)+t[1].length+o;t[2]=t[2].substring(0,o),t[0]=t[0].substring(0,s).trim(),t[3]=""}}var r=t[2],a="";if(this.options.pedantic){var l=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r);l&&(r=l[1],a=l[3])}else a=t[3]?t[3].slice(1,-1):"";return r=r.trim(),/^$/.test(i)?r.slice(1):r.slice(1,-1)),B(t,{href:r?r.replace(this.rules.inline._escapes,"$1"):r,title:a?a.replace(this.rules.inline._escapes,"$1"):a},t[0],this.lexer)}},t.reflink=function(e,t){var i;if((i=this.rules.inline.reflink.exec(e))||(i=this.rules.inline.nolink.exec(e))){var n=(i[2]||i[1]).replace(/\s+/g," ");if(!(n=t[n.toLowerCase()])||!n.href){var o=i[0].charAt(0);return{type:"text",raw:o,text:o}}return B(i,n,i[0],this.lexer)}},t.emStrong=function(e,t,i){void 0===i&&(i="");var n=this.rules.inline.emStrong.lDelim.exec(e);if(n&&(!n[3]||!i.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08C7\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\u9FFC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7CA\uA7F5-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\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DC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82C[\uDC00-\uDD1E\uDD50-\uDD52\uD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DF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var o=n[1]||n[2]||"";if(!o||o&&(""===i||this.rules.inline.punctuation.exec(i))){var s,r,a=n[0].length-1,l=a,h=0,d="*"===n[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(d.lastIndex=0,t=t.slice(-1*e.length+a);null!=(n=d.exec(t));)if(s=n[1]||n[2]||n[3]||n[4]||n[5]||n[6])if(r=s.length,n[3]||n[4])l+=r;else if(!((n[5]||n[6])&&a%3)||(a+r)%3){if(!((l-=r)>0)){if(r=Math.min(r,r+l+h),Math.min(a,r)%2){var c=e.slice(1,a+n.index+r);return{type:"em",raw:e.slice(0,a+n.index+r+1),text:c,tokens:this.lexer.inlineTokens(c,[])}}var u=e.slice(2,a+n.index+r-1);return{type:"strong",raw:e.slice(0,a+n.index+r+1),text:u,tokens:this.lexer.inlineTokens(u,[])}}}else h+=r}}},t.codespan=function(e){var t=this.rules.inline.code.exec(e);if(t){var i=t[2].replace(/\n/g," "),n=/[^ ]/.test(i),o=/^ /.test(i)&&/ $/.test(i);return n&&o&&(i=i.substring(1,i.length-1)),i=P(i,!0),{type:"codespan",raw:t[0],text:i}}},t.br=function(e){var t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}},t.del=function(e){var t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2],[])}},t.autolink=function(e,t){var i,n,o=this.rules.inline.autolink.exec(e);if(o)return n="@"===o[2]?"mailto:"+(i=P(this.options.mangle?t(o[1]):o[1])):i=P(o[1]),{type:"link",raw:o[0],text:i,href:n,tokens:[{type:"text",raw:i,text:i}]}},t.url=function(e,t){var i;if(i=this.rules.inline.url.exec(e)){var n,o;if("@"===i[2])o="mailto:"+(n=P(this.options.mangle?t(i[0]):i[0]));else{var s;do{s=i[0],i[0]=this.rules.inline._backpedal.exec(i[0])[0]}while(s!==i[0]);n=P(i[0]),o="www."===i[1]?"http://"+n:n}return{type:"link",raw:i[0],text:n,href:o,tokens:[{type:"text",raw:n,text:n}]}}},t.inlineText=function(e,t){var i,n=this.rules.inline.text.exec(e);if(n)return i=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):P(n[0]):n[0]:P(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:i}},e}(),W=x,H=L,z=k,K={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)( [^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *\n? *([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,table:W,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};K.def=H(K.def).replace("label",K._label).replace("title",K._title).getRegex(),K.bullet=/(?:[*+-]|\d{1,9}[.)])/,K.listItemStart=H(/^( *)(bull) */).replace("bull",K.bullet).getRegex(),K.list=H(K.list).replace(/bull/g,K.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+K.def.source+")").getRegex(),K._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",K._comment=/|$)/,K.html=H(K.html,"i").replace("comment",K._comment).replace("tag",K._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),K.paragraph=H(K._paragraph).replace("hr",K.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",K._tag).getRegex(),K.blockquote=H(K.blockquote).replace("paragraph",K.paragraph).getRegex(),K.normal=z({},K),K.gfm=z({},K.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)\\|?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),K.gfm.table=H(K.gfm.table).replace("hr",K.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",K._tag).getRegex(),K.pedantic=z({},K.normal,{html:H("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?\\1> *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",K._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:W,paragraph:H(K.normal._paragraph).replace("hr",K.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",K.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var U={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:W,tag:"^comment|^[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/\_\_[^_*]*?\*[^_*]*?\_\_|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/\*\*[^_*]*?\_[^_*]*?\*\*|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:W,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~"};U.punctuation=H(U.punctuation).replace(/punctuation/g,U._punctuation).getRegex(),U.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,U.escapedEmSt=/\\\*|\\_/g,U._comment=H(K._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),U.emStrong.lDelim=H(U.emStrong.lDelim).replace(/punct/g,U._punctuation).getRegex(),U.emStrong.rDelimAst=H(U.emStrong.rDelimAst,"g").replace(/punct/g,U._punctuation).getRegex(),U.emStrong.rDelimUnd=H(U.emStrong.rDelimUnd,"g").replace(/punct/g,U._punctuation).getRegex(),U._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,U._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,U._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,U.autolink=H(U.autolink).replace("scheme",U._scheme).replace("email",U._email).getRegex(),U._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,U.tag=H(U.tag).replace("comment",U._comment).replace("attribute",U._attribute).getRegex(),U._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,U._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,U._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,U.link=H(U.link).replace("label",U._label).replace("href",U._href).replace("title",U._title).getRegex(),U.reflink=H(U.reflink).replace("label",U._label).getRegex(),U.reflinkSearch=H(U.reflinkSearch,"g").replace("reflink",U.reflink).replace("nolink",U.nolink).getRegex(),U.normal=z({},U),U.pedantic=z({},U.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:H(/^!?\[(label)\]\((.*?)\)/).replace("label",U._label).getRegex(),reflink:H(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",U._label).getRegex()}),U.gfm=z({},U.normal,{escape:H(U.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\.5&&(i="x"+i.toString(16)),n+=""+i+";";return n}var J=function(){function t(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||q,this.options.tokenizer=this.options.tokenizer||new j,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};var t={block:G.normal,inline:Z.normal};this.options.pedantic?(t.block=G.pedantic,t.inline=Z.pedantic):this.options.gfm&&(t.block=G.gfm,this.options.breaks?t.inline=Z.breaks:t.inline=Z.gfm),this.tokenizer.rules=t}t.lex=function(e,i){return new t(i).lex(e)},t.lexInline=function(e,i){return new t(i).inlineTokens(e)};var i,n,o,s=t.prototype;return s.lex=function(e){var t;for(e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(e,this.tokens);t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens},s.blockTokens=function(e,t){var i,n,o,s,r=this;for(void 0===t&&(t=[]),this.options.pedantic&&(e=e.replace(/^ +$/gm,""));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((function(n){return!!(i=n.call({lexer:r},e,t))&&(e=e.substring(i.raw.length),t.push(i),!0)}))))if(i=this.tokenizer.space(e))e=e.substring(i.raw.length),i.type&&t.push(i);else if(i=this.tokenizer.code(e))e=e.substring(i.raw.length),!(n=t[t.length-1])||"paragraph"!==n.type&&"text"!==n.type?t.push(i):(n.raw+="\n"+i.raw,n.text+="\n"+i.text,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(i=this.tokenizer.fences(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.heading(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.hr(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.blockquote(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.list(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.html(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.def(e))e=e.substring(i.raw.length),!(n=t[t.length-1])||"paragraph"!==n.type&&"text"!==n.type?this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title}):(n.raw+="\n"+i.raw,n.text+="\n"+i.raw,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(i=this.tokenizer.table(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.lheading(e))e=e.substring(i.raw.length),t.push(i);else if(o=e,this.options.extensions&&this.options.extensions.startBlock&&function(){var t=1/0,i=e.slice(1),n=void 0;r.options.extensions.startBlock.forEach((function(e){"number"==typeof(n=e.call({lexer:this},i))&&n>=0&&(t=Math.min(t,n))})),t<1/0&&t>=0&&(o=e.substring(0,t+1))}(),this.state.top&&(i=this.tokenizer.paragraph(o)))n=t[t.length-1],s&&"paragraph"===n.type?(n.raw+="\n"+i.raw,n.text+="\n"+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(i),s=o.length!==e.length,e=e.substring(i.raw.length);else if(i=this.tokenizer.text(e))e=e.substring(i.raw.length),(n=t[t.length-1])&&"text"===n.type?(n.raw+="\n"+i.raw,n.text+="\n"+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(i);else if(e){var a="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(a);break}throw new Error(a)}return this.state.top=!0,t},s.inline=function(e,t){this.inlineQueue.push({src:e,tokens:t})},s.inlineTokens=function(e,t){var i,n,o,s=this;void 0===t&&(t=[]);var r,a,l,h=e;if(this.tokens.links){var d=Object.keys(this.tokens.links);if(d.length>0)for(;null!=(r=this.tokenizer.rules.inline.reflinkSearch.exec(h));)d.includes(r[0].slice(r[0].lastIndexOf("[")+1,-1))&&(h=h.slice(0,r.index)+"["+Q("a",r[0].length-2)+"]"+h.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(r=this.tokenizer.rules.inline.blockSkip.exec(h));)h=h.slice(0,r.index)+"["+Q("a",r[0].length-2)+"]"+h.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(r=this.tokenizer.rules.inline.escapedEmSt.exec(h));)h=h.slice(0,r.index)+"++"+h.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(a||(l=""),a=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((function(n){return!!(i=n.call({lexer:s},e,t))&&(e=e.substring(i.raw.length),t.push(i),!0)}))))if(i=this.tokenizer.escape(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.tag(e))e=e.substring(i.raw.length),(n=t[t.length-1])&&"text"===i.type&&"text"===n.type?(n.raw+=i.raw,n.text+=i.text):t.push(i);else if(i=this.tokenizer.link(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(i.raw.length),(n=t[t.length-1])&&"text"===i.type&&"text"===n.type?(n.raw+=i.raw,n.text+=i.text):t.push(i);else if(i=this.tokenizer.emStrong(e,h,l))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.codespan(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.br(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.del(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.autolink(e,X))e=e.substring(i.raw.length),t.push(i);else if(this.state.inLink||!(i=this.tokenizer.url(e,X))){if(o=e,this.options.extensions&&this.options.extensions.startInline&&function(){var t=1/0,i=e.slice(1),n=void 0;s.options.extensions.startInline.forEach((function(e){"number"==typeof(n=e.call({lexer:this},i))&&n>=0&&(t=Math.min(t,n))})),t<1/0&&t>=0&&(o=e.substring(0,t+1))}(),i=this.tokenizer.inlineText(o,Y))e=e.substring(i.raw.length),"_"!==i.raw.slice(-1)&&(l=i.raw.slice(-1)),a=!0,(n=t[t.length-1])&&"text"===n.type?(n.raw+=i.raw,n.text+=i.text):t.push(i);else if(e){var c="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(c);break}throw new Error(c)}}else e=e.substring(i.raw.length),t.push(i);return t},i=t,o=[{key:"rules",get:function(){return{block:G,inline:Z}}}],(n=null)&&e(i.prototype,n),o&&e(i,o),t}(),ee=n.exports.defaults,te=N,ie=S,ne=function(){function e(e){this.options=e||ee}var t=e.prototype;return t.code=function(e,t,i){var n=(t||"").match(/\S*/)[0];if(this.options.highlight){var o=this.options.highlight(e,n);null!=o&&o!==e&&(i=!0,e=o)}return e=e.replace(/\n$/,"")+"\n",n?''+(i?e:ie(e,!0))+"
\n":""+(i?e:ie(e,!0))+"
\n"},t.blockquote=function(e){return"\n"+e+"
\n"},t.html=function(e){return e},t.heading=function(e,t,i,n){return this.options.headerIds?"\n":""+e+"\n"},t.hr=function(){return this.options.xhtml?"
\n":"
\n"},t.list=function(e,t,i){var n=t?"ol":"ul";return"<"+n+(t&&1!==i?' start="'+i+'"':"")+">\n"+e+""+n+">\n"},t.listitem=function(e){return""+e+"\n"},t.checkbox=function(e){return" "},t.paragraph=function(e){return""+e+"
\n"},t.table=function(e,t){return t&&(t=""+t+""),"\n"},t.tablerow=function(e){return"\n"+e+"
\n"},t.tablecell=function(e,t){var i=t.header?"th":"td";return(t.align?"<"+i+' align="'+t.align+'">':"<"+i+">")+e+""+i+">\n"},t.strong=function(e){return""+e+""},t.em=function(e){return""+e+""},t.codespan=function(e){return""+e+""},t.br=function(){return this.options.xhtml?"
":"
"},t.del=function(e){return""+e+""},t.link=function(e,t,i){if(null===(e=te(this.options.sanitize,this.options.baseUrl,e)))return i;var n='"+i+""},t.image=function(e,t,i){if(null===(e=te(this.options.sanitize,this.options.baseUrl,e)))return i;var n='
":">"},t.text=function(e){return e},e}(),oe=function(){function e(){}var t=e.prototype;return t.strong=function(e){return e},t.em=function(e){return e},t.codespan=function(e){return e},t.del=function(e){return e},t.html=function(e){return e},t.text=function(e){return e},t.link=function(e,t,i){return""+i},t.image=function(e,t,i){return""+i},t.br=function(){return""},e}(),se=function(){function e(){this.seen={}}var t=e.prototype;return t.serialize=function(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},t.getNextSafeSlug=function(e,t){var i=e,n=0;if(this.seen.hasOwnProperty(i)){n=this.seen[e];do{i=e+"-"+ ++n}while(this.seen.hasOwnProperty(i))}return t||(this.seen[e]=n,this.seen[i]=0),i},t.slug=function(e,t){void 0===t&&(t={});var i=this.serialize(e);return this.getNextSafeSlug(i,t.dryrun)},e}(),re=ne,ae=oe,le=se,he=n.exports.defaults,de=y,ce=function(){function e(e){this.options=e||he,this.options.renderer=this.options.renderer||new re,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new ae,this.slugger=new le}e.parse=function(t,i){return new e(i).parse(t)},e.parseInline=function(t,i){return new e(i).parseInline(t)};var t=e.prototype;return t.parse=function(e,t){void 0===t&&(t=!0);var i,n,o,s,r,a,l,h,d,c,u,g,p,m,f,_,v,b,C,w="",S=e.length;for(i=0;i0&&"paragraph"===f.tokens[0].type?(f.tokens[0].text=b+" "+f.tokens[0].text,f.tokens[0].tokens&&f.tokens[0].tokens.length>0&&"text"===f.tokens[0].tokens[0].type&&(f.tokens[0].tokens[0].text=b+" "+f.tokens[0].tokens[0].text)):f.tokens.unshift({type:"text",text:b}):m+=b),m+=this.parse(f.tokens,p),d+=this.renderer.listitem(m,v,_);w+=this.renderer.list(d,u,g);continue;case"html":w+=this.renderer.html(c.text);continue;case"paragraph":w+=this.renderer.paragraph(this.parseInline(c.tokens));continue;case"text":for(d=c.tokens?this.parseInline(c.tokens):c.text;i+1An error occurred:
"+Ce(e.message+"",!0)+"
";throw e}}return Le.options=Le.setOptions=function(e){return ve(Le.defaults,e),Se(Le.defaults),Le},Le.getDefaults=we,Le.defaults=ye,Le.use=function(){for(var e=this,t=arguments.length,i=new Array(t),n=0;nAn error occurred:
"+Ce(e.message+"",!0)+"
";throw e}},Le.Parser=ge,Le.parser=ge.parse,Le.Renderer=me,Le.TextRenderer=fe,Le.Lexer=ue,Le.lexer=ue.lex,Le.Tokenizer=pe,Le.Slugger=_e,Le.parse=Le,Le},"object"==typeof exports?e.exports=o():t.amd?t(o):(i="undefined"!=typeof globalThis?globalThis:i||self).marked=o()}();n.Parser,n.parser;var o=n.Renderer,s=(n.TextRenderer,n.Lexer,n.lexer,n.Tokenizer,n.Slugger,n.parse)},96211:function(e,t,i){"use strict";i.d(t,{Q:function(){return s}});var n=i(90794),o=i(5472);function s(e){let t=JSON.parse(e);return t=r(t),t}function r(e,t=0){if(!e||t>200)return e;if("object"==typeof e){switch(e.$mid){case 1:return o.o.revive(e);case 2:return new RegExp(e.source,e.flags)}if(e instanceof n.KN||e instanceof Uint8Array)return e;if(Array.isArray(e))for(let i=0;i=0}}(e);h.push(i),i.userConfigured?c.push(i):d.push(i),t&&!i.userConfigured&&h.forEach((e=>{e.mime===i.mime||e.userConfigured||(i.extension&&e.extension===i.extension&&console.warn(`Overwriting extension <<${i.extension}>> to now point to mime <<${i.mime}>>`),i.filename&&e.filename===i.filename&&console.warn(`Overwriting filename <<${i.filename}>> to now point to mime <<${i.mime}>>`),i.filepattern&&e.filepattern===i.filepattern&&console.warn(`Overwriting filepattern <<${i.filepattern}>> to now point to mime <<${i.mime}>>`),i.firstline&&e.firstline===i.firstline&&console.warn(`Overwriting firstline <<${i.firstline}>> to now point to mime <<${i.mime}>>`))}))}function g(e){e?(h=h.filter((e=>!e.userConfigured)),c=[]):(h=[],d=[],c=[])}function p(e,t){let i;if(e)switch(e.scheme){case s.lg.file:i=e.fsPath;break;case s.lg.data:i=a.Vb.parseMetaData(e).get(a.Vb.META_DATA_LABEL);break;default:i=e.path}if(!i)return[n.unknown];i=i.toLowerCase();const o=(0,r.EZ)(i),u=m(i,o,c);if(u)return[u,n.text];const g=m(i,o,d);if(g)return[g,n.text];if(t){const e=function(e){(0,l.uS)(e)&&(e=e.substr(1));if(e.length>0)for(let t=h.length-1;t>=0;t--){const i=h[t];if(!i.firstline)continue;const n=e.match(i.firstline);if(n&&n.length>0)return i.mime}return null}(t);if(e)return[e,n.text]}return[n.unknown]}function m(e,t,i){var n;let o=null,s=null,r=null;for(let a=i.length-1;a>=0;a--){const l=i[a];if(t===l.filenameLowercase){o=l;break}if(l.filepattern&&(!s||l.filepattern.length>s.filepattern.length)){const i=l.filepatternOnPath?e:t;(null===(n=l.filepatternLowercase)||void 0===n?void 0:n.call(l,i))&&(s=l)}l.extension&&(!r||l.extension.length>r.extension.length)&&t.endsWith(l.extensionLowercase)&&(r=l)}return o?o.mime:s?s.mime:r?r.mime:null}},66657:function(e,t,i){"use strict";i.d(t,{Gi:function(){return l},WX:function(){return r},lg:function(){return n}});var n,o=i(23345),s=i(5472);!function(e){e.inMemory="inmemory",e.vscode="vscode",e.internal="private",e.walkThrough="walkThrough",e.walkThroughSnippet="walkThroughSnippet",e.http="http",e.https="https",e.file="file",e.mailto="mailto",e.untitled="untitled",e.data="data",e.command="command",e.vscodeRemote="vscode-remote",e.vscodeRemoteResource="vscode-remote-resource",e.userData="vscode-userdata",e.vscodeCustomEditor="vscode-custom-editor",e.vscodeNotebook="vscode-notebook",e.vscodeNotebookCell="vscode-notebook-cell",e.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",e.vscodeNotebookCellOutput="vscode-notebook-cell-output",e.vscodeInteractive="vscode-interactive",e.vscodeInteractiveInput="vscode-interactive-input",e.vscodeSettings="vscode-settings",e.vscodeWorkspaceTrust="vscode-workspace-trust",e.vscodeTerminal="vscode-terminal",e.webviewPanel="webview-panel",e.vscodeWebview="vscode-webview",e.extension="extension",e.vscodeFileResource="vscode-file",e.tmp="tmp"}(n||(n={}));const r=new class{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null}setPreferredWebSchema(e){this._preferredWebSchema=e}rewrite(e){if(this._delegate)return this._delegate(e);const t=e.authority;let i=this._hosts[t];i&&-1!==i.indexOf(":")&&(i=`[${i}]`);const r=this._ports[t],a=this._connectionTokens[t];let l=`path=${encodeURIComponent(e.path)}`;return"string"==typeof a&&(l+=`&tkn=${encodeURIComponent(a)}`),s.o.from({scheme:o.$L?this._preferredWebSchema:n.vscodeRemoteResource,authority:`${i}:${r}`,path:"/vscode-remote-resource",query:l})}};class a{asBrowserUri(e,t){const i=this.toUri(e,t);return i.scheme===n.vscodeRemote?r.rewrite(i):i.scheme===n.file&&(o.tY||"function"==typeof o.li.importScripts&&o.li.origin===`${n.vscodeFileResource}://${a.FALLBACK_AUTHORITY}`)?i.with({scheme:n.vscodeFileResource,authority:i.authority||a.FALLBACK_AUTHORITY,query:null,fragment:null}):i}toUri(e,t){return s.o.isUri(e)?e:s.o.parse(t.toUrl(e))}}a.FALLBACK_AUTHORITY="vscode-app";const l=new a},56722:function(e,t,i){"use strict";function n(e,t,i){return Math.min(Math.max(e,t),i)}i.d(t,{n:function(){return o},u:function(){return n}});class o{constructor(){this._n=1,this._val=0}update(e){return this._val=this._val+(e-this._val)/this._n,this._n+=1,this}get value(){return this._val}}},80470:function(e,t,i){"use strict";i.d(t,{CJ:function(){return c},I8:function(){return o},_A:function(){return s},fS:function(){return d},jB:function(){return h},rs:function(){return a}});var n=i(72999);function o(e){if(!e||"object"!=typeof e)return e;if(e instanceof RegExp)return e;const t=Array.isArray(e)?[]:{};return Object.keys(e).forEach((i=>{e[i]&&"object"==typeof e[i]?t[i]=o(e[i]):t[i]=e[i]})),t}function s(e){if(!e||"object"!=typeof e)return e;const t=[e];for(;t.length>0;){const e=t.shift();Object.freeze(e);for(const i in e)if(r.call(e,i)){const n=e[i];"object"!=typeof n||Object.isFrozen(n)||t.push(n)}}return e}const r=Object.prototype.hasOwnProperty;function a(e,t){return l(e,t,new Set)}function l(e,t,i){if((0,n.Jp)(e))return e;const o=t(e);if(void 0!==o)return o;if((0,n.kJ)(e)){const n=[];for(const o of e)n.push(l(o,t,i));return n}if((0,n.Kn)(e)){if(i.has(e))throw new Error("Cannot clone recursive data-structure");i.add(e);const n={};for(let o in e)r.call(e,o)&&(n[o]=l(e[o],t,i));return i.delete(e),n}return e}function h(e,t,i=!0){return(0,n.Kn)(e)?((0,n.Kn)(t)&&Object.keys(t).forEach((o=>{o in e?i&&((0,n.Kn)(e[o])&&(0,n.Kn)(t[o])?h(e[o],t[o],i):e[o]=t[o]):e[o]=t[o]})),e):t}function d(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if(typeof e!=typeof t)return!1;if("object"!=typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;let i,n;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(i=0;i=65&&e<=90||e>=97&&e<=122}function _(e,t,i,n){let o="",s=0,r=-1,a=0,d=0;for(let c=0;c<=e.length;++c){if(c2){const e=o.lastIndexOf(i);-1===e?(o="",s=0):(o=o.slice(0,e),s=o.length-1-o.lastIndexOf(i)),r=c,a=0;continue}if(0!==o.length){o="",s=0,r=c,a=0;continue}}t&&(o+=o.length>0?`${i}..`:"..",s=2)}else o.length>0?o+=`${i}${e.slice(r+1,c)}`:o=e.slice(r+1,c),s=c-r-1;r=c,a=0}else d===l&&-1!==a?++a:a=-1}return o}function v(e,t){if(null===t||"object"!=typeof t)throw new u("pathObject","Object",t);const i=t.dir||t.root,n=t.base||`${t.name||""}${t.ext||""}`;return i?i===t.root?`${i}${n}`:`${i}${e}${n}`:n}const b={resolve(...e){let t="",i="",n=!1;for(let o=e.length-1;o>=-1;o--){let s;if(o>=0){if(s=e[o],g(s,"path"),0===s.length)continue}else 0===t.length?s=r():(s={NODE_ENV:"production",PUBLIC_PATH:"https://www-cdn.educoder.net/"}[`=${t}`]||r(),(void 0===s||s.slice(0,2).toLowerCase()!==t.toLowerCase()&&s.charCodeAt(2)===d)&&(s=`${t}\\`));const a=s.length;let l=0,h="",u=!1;const m=s.charCodeAt(0);if(1===a)p(m)&&(l=1,u=!0);else if(p(m))if(u=!0,p(s.charCodeAt(1))){let e=2,t=e;for(;e2&&p(s.charCodeAt(2))&&(u=!0,l=3));if(h.length>0)if(t.length>0){if(h.toLowerCase()!==t.toLowerCase())continue}else t=h;if(n){if(t.length>0)break}else if(i=`${s.slice(l)}\\${i}`,n=u,u&&t.length>0)break}return i=_(i,!n,"\\",p),n?`${t}\\${i}`:`${t}${i}`||"."},normalize(e){g(e,"path");const t=e.length;if(0===t)return".";let i,n=0,o=!1;const s=e.charCodeAt(0);if(1===t)return m(s)?"\\":e;if(p(s))if(o=!0,p(e.charCodeAt(1))){let o=2,s=o;for(;o2&&p(e.charCodeAt(2))&&(o=!0,n=3));let r=n0&&p(e.charCodeAt(t-1))&&(r+="\\"),void 0===i?o?`\\${r}`:r:o?`${i}\\${r}`:`${i}${r}`},isAbsolute(e){g(e,"path");const t=e.length;if(0===t)return!1;const i=e.charCodeAt(0);return p(i)||t>2&&f(i)&&e.charCodeAt(1)===c&&p(e.charCodeAt(2))},join(...e){if(0===e.length)return".";let t,i;for(let n=0;n0&&(void 0===t?t=i=o:t+=`\\${o}`)}if(void 0===t)return".";let n=!0,o=0;if("string"==typeof i&&p(i.charCodeAt(0))){++o;const e=i.length;e>1&&p(i.charCodeAt(1))&&(++o,e>2&&(p(i.charCodeAt(2))?++o:n=!1))}if(n){for(;o=2&&(t=`\\${t.slice(o)}`)}return b.normalize(t)},relative(e,t){if(g(e,"from"),g(t,"to"),e===t)return"";const i=b.resolve(e),n=b.resolve(t);if(i===n)return"";if((e=i.toLowerCase())===(t=n.toLowerCase()))return"";let o=0;for(;oo&&e.charCodeAt(s-1)===d;)s--;const r=s-o;let a=0;for(;aa&&t.charCodeAt(l-1)===d;)l--;const h=l-a,c=rc){if(t.charCodeAt(a+p)===d)return n.slice(a+p+1);if(2===p)return n.slice(a+p)}r>c&&(e.charCodeAt(o+p)===d?u=p:2===p&&(u=3)),-1===u&&(u=0)}let m="";for(p=o+u+1;p<=s;++p)p!==s&&e.charCodeAt(p)!==d||(m+=0===m.length?"..":"\\..");return a+=u,m.length>0?`${m}${n.slice(a,l)}`:(n.charCodeAt(a)===d&&++a,n.slice(a,l))},toNamespacedPath(e){if("string"!=typeof e)return e;if(0===e.length)return"";const t=b.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===d){if(t.charCodeAt(1)===d){const e=t.charCodeAt(2);if(63!==e&&e!==l)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(f(t.charCodeAt(0))&&t.charCodeAt(1)===c&&t.charCodeAt(2)===d)return`\\\\?\\${t}`;return e},dirname(e){g(e,"path");const t=e.length;if(0===t)return".";let i=-1,n=0;const o=e.charCodeAt(0);if(1===t)return p(o)?e:".";if(p(o)){if(i=n=1,p(e.charCodeAt(1))){let o=2,s=o;for(;o2&&p(e.charCodeAt(2))?3:2,n=i);let s=-1,r=!0;for(let i=t-1;i>=n;--i)if(p(e.charCodeAt(i))){if(!r){s=i;break}}else r=!1;if(-1===s){if(-1===i)return".";s=i}return e.slice(0,s)},basename(e,t){void 0!==t&&g(t,"ext"),g(e,"path");let i,n=0,o=-1,s=!0;if(e.length>=2&&f(e.charCodeAt(0))&&e.charCodeAt(1)===c&&(n=2),void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let r=t.length-1,a=-1;for(i=e.length-1;i>=n;--i){const l=e.charCodeAt(i);if(p(l)){if(!s){n=i+1;break}}else-1===a&&(s=!1,a=i+1),r>=0&&(l===t.charCodeAt(r)?-1==--r&&(o=i):(r=-1,o=a))}return n===o?o=a:-1===o&&(o=e.length),e.slice(n,o)}for(i=e.length-1;i>=n;--i)if(p(e.charCodeAt(i))){if(!s){n=i+1;break}}else-1===o&&(s=!1,o=i+1);return-1===o?"":e.slice(n,o)},extname(e){g(e,"path");let t=0,i=-1,n=0,o=-1,s=!0,r=0;e.length>=2&&e.charCodeAt(1)===c&&f(e.charCodeAt(0))&&(t=n=2);for(let a=e.length-1;a>=t;--a){const t=e.charCodeAt(a);if(p(t)){if(!s){n=a+1;break}}else-1===o&&(s=!1,o=a+1),t===l?-1===i?i=a:1!==r&&(r=1):-1!==i&&(r=-1)}return-1===i||-1===o||0===r||1===r&&i===o-1&&i===n+1?"":e.slice(i,o)},format:v.bind(null,"\\"),parse(e){g(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const i=e.length;let n=0,o=e.charCodeAt(0);if(1===i)return p(o)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(p(o)){if(n=1,p(e.charCodeAt(1))){let t=2,o=t;for(;t0&&(t.root=e.slice(0,n));let s=-1,r=n,a=-1,h=!0,d=e.length-1,u=0;for(;d>=n;--d)if(o=e.charCodeAt(d),p(o)){if(!h){r=d+1;break}}else-1===a&&(h=!1,a=d+1),o===l?-1===s?s=d:1!==u&&(u=1):-1!==s&&(u=-1);return-1!==a&&(-1===s||0===u||1===u&&s===a-1&&s===r+1?t.base=t.name=e.slice(r,a):(t.name=e.slice(r,s),t.base=e.slice(r,a),t.ext=e.slice(s,a))),t.dir=r>0&&r!==n?e.slice(0,r-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},C={resolve(...e){let t="",i=!1;for(let n=e.length-1;n>=-1&&!i;n--){const o=n>=0?e[n]:r();g(o,"path"),0!==o.length&&(t=`${o}/${t}`,i=o.charCodeAt(0)===h)}return t=_(t,!i,"/",m),i?`/${t}`:t.length>0?t:"."},normalize(e){if(g(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===h,i=e.charCodeAt(e.length-1)===h;return 0===(e=_(e,!t,"/",m)).length?t?"/":i?"./":".":(i&&(e+="/"),t?`/${e}`:e)},isAbsolute(e){return g(e,"path"),e.length>0&&e.charCodeAt(0)===h},join(...e){if(0===e.length)return".";let t;for(let i=0;i0&&(void 0===t?t=n:t+=`/${n}`)}return void 0===t?".":C.normalize(t)},relative(e,t){if(g(e,"from"),g(t,"to"),e===t)return"";if((e=C.resolve(e))===(t=C.resolve(t)))return"";const i=e.length,n=i-1,o=t.length-1,s=ns){if(t.charCodeAt(1+a)===h)return t.slice(1+a+1);if(0===a)return t.slice(1+a)}else n>s&&(e.charCodeAt(1+a)===h?r=a:0===a&&(r=0));let l="";for(a=1+r+1;a<=i;++a)a!==i&&e.charCodeAt(a)!==h||(l+=0===l.length?"..":"/..");return`${l}${t.slice(1+r)}`},toNamespacedPath(e){return e},dirname(e){if(g(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===h;let i=-1,n=!0;for(let t=e.length-1;t>=1;--t)if(e.charCodeAt(t)===h){if(!n){i=t;break}}else n=!1;return-1===i?t?"/":".":t&&1===i?"//":e.slice(0,i)},basename(e,t){void 0!==t&&g(t,"ext"),g(e,"path");let i,n=0,o=-1,s=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let r=t.length-1,a=-1;for(i=e.length-1;i>=0;--i){const l=e.charCodeAt(i);if(l===h){if(!s){n=i+1;break}}else-1===a&&(s=!1,a=i+1),r>=0&&(l===t.charCodeAt(r)?-1==--r&&(o=i):(r=-1,o=a))}return n===o?o=a:-1===o&&(o=e.length),e.slice(n,o)}for(i=e.length-1;i>=0;--i)if(e.charCodeAt(i)===h){if(!s){n=i+1;break}}else-1===o&&(s=!1,o=i+1);return-1===o?"":e.slice(n,o)},extname(e){g(e,"path");let t=-1,i=0,n=-1,o=!0,s=0;for(let r=e.length-1;r>=0;--r){const a=e.charCodeAt(r);if(a!==h)-1===n&&(o=!1,n=r+1),a===l?-1===t?t=r:1!==s&&(s=1):-1!==t&&(s=-1);else if(!o){i=r+1;break}}return-1===t||-1===n||0===s||1===s&&t===n-1&&t===i+1?"":e.slice(t,n)},format:v.bind(null,"/"),parse(e){g(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const i=e.charCodeAt(0)===h;let n;i?(t.root="/",n=1):n=0;let o=-1,s=0,r=-1,a=!0,d=e.length-1,c=0;for(;d>=n;--d){const t=e.charCodeAt(d);if(t!==h)-1===r&&(a=!1,r=d+1),t===l?-1===o?o=d:1!==c&&(c=1):-1!==o&&(c=-1);else if(!a){s=d+1;break}}if(-1!==r){const n=0===s&&i?1:s;-1===o||0===c||1===c&&o===r-1&&o===s+1?t.base=t.name=e.slice(n,r):(t.name=e.slice(n,o),t.base=e.slice(n,r),t.ext=e.slice(o,r))}return s>0?t.dir=e.slice(0,s-1):i&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};C.win32=b.win32=b,C.posix=b.posix=C;const w="win32"===a?b.normalize:C.normalize,S="win32"===a?b.resolve:C.resolve,y="win32"===a?b.relative:C.relative,L="win32"===a?b.dirname:C.dirname,N="win32"===a?b.basename:C.basename,x="win32"===a?b.extname:C.extname,k="win32"===a?b.sep:C.sep},17981:function(e,t,i){"use strict";var n;i.d(t,{e:function(){return n}}),function(e){function t(e,t){if(e.start>=t.end||t.start>=e.end)return{start:0,end:0};const i=Math.max(e.start,t.start),n=Math.min(e.end,t.end);return n-i<=0?{start:0,end:0}:{start:i,end:n}}function i(e){return e.end-e.start<=0}e.intersect=t,e.isEmpty=i,e.intersects=function(e,n){return!i(t(e,n))},e.relativeComplement=function(e,t){const n=[],o={start:e.start,end:Math.min(t.start,e.end)},s={start:Math.max(t.end,e.start),end:e.end};return i(o)||n.push(o),i(s)||n.push(s),n}}(n||(n={}))},9365:function(e,t,i){"use strict";i.d(t,{AH:function(){return m},EZ:function(){return u},Hx:function(){return c},SF:function(){return h},Vb:function(){return _},Vo:function(){return p},XX:function(){return g},Xy:function(){return d},i3:function(){return f},z_:function(){return l}});var n=i(57637),o=i(66657),s=i(26227),r=i(82983),a=i(5472);function l(e){return(0,a.q)(e,!0)}const h=new class{constructor(e){this._ignorePathCasing=e}compare(e,t,i=!1){return e===t?0:(0,r.qu)(this.getComparisonKey(e,i),this.getComparisonKey(t,i))}isEqual(e,t,i=!1){return e===t||!(!e||!t)&&this.getComparisonKey(e,i)===this.getComparisonKey(t,i)}getComparisonKey(e,t=!1){return e.with({path:this._ignorePathCasing(e)?e.path.toLowerCase():void 0,fragment:t?null:void 0}).toString()}joinPath(e,...t){return a.o.joinPath(e,...t)}basenameOrAuthority(e){return u(e)||e.authority}basename(e){return s.KR.basename(e.path)}dirname(e){if(0===e.path.length)return e;let t;return e.scheme===o.lg.file?t=a.o.file(s.XX(l(e))).path:(t=s.KR.dirname(e.path),e.authority&&t.length&&47!==t.charCodeAt(0)&&(console.error(`dirname("${e.toString})) resulted in a relative path`),t="/")),e.with({path:t})}normalizePath(e){if(!e.path.length)return e;let t;return t=e.scheme===o.lg.file?a.o.file(s.Fv(l(e))).path:s.KR.normalize(e.path),e.with({path:t})}resolvePath(e,t){if(e.scheme===o.lg.file){const i=a.o.file(s.DB(l(e),t));return e.with({authority:i.authority,path:i.path})}return t=n.fn(t),e.with({path:s.KR.resolve(e.path,t)})}}((()=>!1)),d=h.isEqual.bind(h),c=h.basenameOrAuthority.bind(h),u=h.basename.bind(h),g=h.dirname.bind(h),p=h.joinPath.bind(h),m=h.normalizePath.bind(h),f=h.resolvePath.bind(h);var _;!function(e){e.META_DATA_LABEL="label",e.META_DATA_DESCRIPTION="description",e.META_DATA_SIZE="size",e.META_DATA_MIME="mime",e.parseMetaData=function(t){const i=new Map;t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";")).split(";").forEach((e=>{const[t,n]=e.split(":");t&&n&&i.set(t,n)}));const n=t.path.substring(0,t.path.indexOf(";"));return n&&i.set(e.META_DATA_MIME,n),i}}(_||(_={}))},28962:function(e,t,i){"use strict";i.d(t,{Rm:function(){return r}});var n=i(4348),o=i(69323);class s{constructor(e,t,i,n,o,s){this._scrollStateBrand=void 0,e|=0,t|=0,i|=0,n|=0,o|=0,s|=0,this.rawScrollLeft=i,this.rawScrollTop=s,e<0&&(e=0),i+e>t&&(i=t-e),i<0&&(i=0),n<0&&(n=0),s+n>o&&(s=o-n),s<0&&(s=0),this.width=e,this.scrollWidth=t,this.scrollLeft=i,this.height=n,this.scrollHeight=o,this.scrollTop=s}equals(e){return this.rawScrollLeft===e.rawScrollLeft&&this.rawScrollTop===e.rawScrollTop&&this.width===e.width&&this.scrollWidth===e.scrollWidth&&this.scrollLeft===e.scrollLeft&&this.height===e.height&&this.scrollHeight===e.scrollHeight&&this.scrollTop===e.scrollTop}withScrollDimensions(e,t){return new s(void 0!==e.width?e.width:this.width,void 0!==e.scrollWidth?e.scrollWidth:this.scrollWidth,t?this.rawScrollLeft:this.scrollLeft,void 0!==e.height?e.height:this.height,void 0!==e.scrollHeight?e.scrollHeight:this.scrollHeight,t?this.rawScrollTop:this.scrollTop)}withScrollPosition(e){return new s(this.width,this.scrollWidth,void 0!==e.scrollLeft?e.scrollLeft:this.rawScrollLeft,this.height,this.scrollHeight,void 0!==e.scrollTop?e.scrollTop:this.rawScrollTop)}createScrollEvent(e,t){const i=this.width!==e.width,n=this.scrollWidth!==e.scrollWidth,o=this.scrollLeft!==e.scrollLeft,s=this.height!==e.height,r=this.scrollHeight!==e.scrollHeight,a=this.scrollTop!==e.scrollTop;return{inSmoothScrolling:t,oldWidth:e.width,oldScrollWidth:e.scrollWidth,oldScrollLeft:e.scrollLeft,width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,oldHeight:e.height,oldScrollHeight:e.scrollHeight,oldScrollTop:e.scrollTop,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:i,scrollWidthChanged:n,scrollLeftChanged:o,heightChanged:s,scrollHeightChanged:r,scrollTopChanged:a}}}class r extends o.JT{constructor(e,t){super(),this._scrollableBrand=void 0,this._onScroll=this._register(new n.Q5),this.onScroll=this._onScroll.event,this._smoothScrollDuration=e,this._scheduleAtNextAnimationFrame=t,this._state=new s(0,0,0,0,0,0),this._smoothScrolling=null}dispose(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),super.dispose()}setSmoothScrollDuration(e){this._smoothScrollDuration=e}validateScrollPosition(e){return this._state.withScrollPosition(e)}getScrollDimensions(){return this._state}setScrollDimensions(e,t){const i=this._state.withScrollDimensions(e,t);this._setState(i,Boolean(this._smoothScrolling)),this._smoothScrolling&&this._smoothScrolling.acceptScrollDimensions(this._state)}getFutureScrollPosition(){return this._smoothScrolling?this._smoothScrolling.to:this._state}getCurrentScrollPosition(){return this._state}setScrollPositionNow(e){const t=this._state.withScrollPosition(e);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(t,!1)}setScrollPositionSmooth(e,t){if(0===this._smoothScrollDuration)return this.setScrollPositionNow(e);if(this._smoothScrolling){e={scrollLeft:void 0===e.scrollLeft?this._smoothScrolling.to.scrollLeft:e.scrollLeft,scrollTop:void 0===e.scrollTop?this._smoothScrolling.to.scrollTop:e.scrollTop};const i=this._state.withScrollPosition(e);if(this._smoothScrolling.to.scrollLeft===i.scrollLeft&&this._smoothScrolling.to.scrollTop===i.scrollTop)return;let n;n=t?new h(this._smoothScrolling.from,i,this._smoothScrolling.startTime,this._smoothScrolling.duration):this._smoothScrolling.combine(this._state,i,this._smoothScrollDuration),this._smoothScrolling.dispose(),this._smoothScrolling=n}else{const t=this._state.withScrollPosition(e);this._smoothScrolling=h.start(this._state,t,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame((()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())}))}_performSmoothScrolling(){if(!this._smoothScrolling)return;const e=this._smoothScrolling.tick(),t=this._state.withScrollPosition(e);return this._setState(t,!0),this._smoothScrolling?e.isDone?(this._smoothScrolling.dispose(),void(this._smoothScrolling=null)):void(this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame((()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())}))):void 0}_setState(e,t){const i=this._state;i.equals(e)||(this._state=e,this._onScroll.fire(this._state.createScrollEvent(i,t)))}}class a{constructor(e,t,i){this.scrollLeft=e,this.scrollTop=t,this.isDone=i}}function l(e,t){const i=t-e;return function(t){return e+i*(1-function(e){return Math.pow(e,3)}(1-t))}}class h{constructor(e,t,i,n){this.from=e,this.to=t,this.duration=n,this.startTime=i,this.animationFrameDisposable=null,this._initAnimations()}_initAnimations(){this.scrollLeft=this._initAnimation(this.from.scrollLeft,this.to.scrollLeft,this.to.width),this.scrollTop=this._initAnimation(this.from.scrollTop,this.to.scrollTop,this.to.height)}_initAnimation(e,t,i){if(Math.abs(e-t)>2.5*i){let r,a;return e255?255:0|e}function o(e){return e<0?0:e>4294967295?4294967295:0|e}i.d(t,{A:function(){return o},K:function(){return n}})},5472:function(e,t,i){"use strict";i.d(t,{o:function(){return u},q:function(){return v}});var n=i(26227),o=i(23345);const s=/^\w[\w\d+.-]*$/,r=/^\//,a=/^\/\//;function l(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!s.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!r.test(e.path))throw new 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(a.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}const h="",d="/",c=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class u{constructor(e,t,i,n,o,s=!1){"object"==typeof e?(this.scheme=e.scheme||h,this.authority=e.authority||h,this.path=e.path||h,this.query=e.query||h,this.fragment=e.fragment||h):(this.scheme=function(e,t){return e||t?e:"file"}(e,s),this.authority=t||h,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==d&&(t=d+t):t=d}return t}(this.scheme,i||h),this.query=n||h,this.fragment=o||h,l(this,s))}static isUri(e){return e instanceof u||!!e&&("string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"string"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString)}get fsPath(){return v(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:i,path:n,query:o,fragment:s}=e;return void 0===t?t=this.scheme:null===t&&(t=h),void 0===i?i=this.authority:null===i&&(i=h),void 0===n?n=this.path:null===n&&(n=h),void 0===o?o=this.query:null===o&&(o=h),void 0===s?s=this.fragment:null===s&&(s=h),t===this.scheme&&i===this.authority&&n===this.path&&o===this.query&&s===this.fragment?this:new p(t,i,n,o,s)}static parse(e,t=!1){const i=c.exec(e);return i?new p(i[2]||h,S(i[4]||h),S(i[5]||h),S(i[7]||h),S(i[9]||h),t):new p(h,h,h,h,h)}static file(e){let t=h;if(o.ED&&(e=e.replace(/\\/g,d)),e[0]===d&&e[1]===d){const i=e.indexOf(d,2);-1===i?(t=e.substring(2),e=d):(t=e.substring(2,i),e=e.substring(i)||d)}return new p("file",t,e,h,h)}static from(e){const t=new p(e.scheme,e.authority,e.path,e.query,e.fragment);return l(t,!0),t}static joinPath(e,...t){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let i;return i=o.ED&&"file"===e.scheme?u.file(n.Ku.join(v(e,!0),...t)).path:n.KR.join(e.path,...t),e.with({path:i})}toString(e=!1){return b(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof u)return e;{const t=new p(e);return t._formatted=e.external,t._fsPath=e._sep===g?e.fsPath:null,t}}return e}}const g=o.ED?1:void 0;class p extends u{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=v(this,!1)),this._fsPath}toString(e=!1){return e?b(this,!0):(this._formatted||(this._formatted=b(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=g),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}}const m={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 f(e,t){let i,n=-1;for(let o=0;o=97&&s<=122||s>=65&&s<=90||s>=48&&s<=57||45===s||46===s||95===s||126===s||t&&47===s)-1!==n&&(i+=encodeURIComponent(e.substring(n,o)),n=-1),void 0!==i&&(i+=e.charAt(o));else{void 0===i&&(i=e.substr(0,o));const t=m[s];void 0!==t?(-1!==n&&(i+=encodeURIComponent(e.substring(n,o)),n=-1),i+=t):-1===n&&(n=o)}}return-1!==n&&(i+=encodeURIComponent(e.substring(n))),void 0!==i?i:e}function _(e){let t;for(let i=0;i1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,o.ED&&(i=i.replace(/\//g,"\\")),i}function b(e,t){const i=t?_:f;let n="",{scheme:o,authority:s,path:r,query:a,fragment:l}=e;if(o&&(n+=o,n+=":"),(s||"file"===o)&&(n+=d,n+=d),s){let e=s.indexOf("@");if(-1!==e){const t=s.substr(0,e);s=s.substr(e+1),e=t.indexOf(":"),-1===e?n+=i(t,!1):(n+=i(t.substr(0,e),!1),n+=":",n+=i(t.substr(e+1),!1)),n+="@"}s=s.toLowerCase(),e=s.indexOf(":"),-1===e?n+=i(s,!1):(n+=i(s.substr(0,e),!1),n+=s.substr(e))}if(r){if(r.length>=3&&47===r.charCodeAt(0)&&58===r.charCodeAt(2)){const e=r.charCodeAt(1);e>=65&&e<=90&&(r=`/${String.fromCharCode(e+32)}:${r.substr(3)}`)}else if(r.length>=2&&58===r.charCodeAt(1)){const e=r.charCodeAt(0);e>=65&&e<=90&&(r=`${String.fromCharCode(e+32)}:${r.substr(2)}`)}n+=i(r,!0)}return a&&(n+="?",n+=i(a,!1)),l&&(n+="#",n+=t?l:f(l,!1)),n}function C(e){try{return decodeURIComponent(e)}catch(t){return e.length>3?e.substr(0,3)+C(e.substr(3)):e}}const w=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function S(e){return e.match(w)?e.replace(w,(e=>C(e))):e}},29711:function(e,t,i){"use strict";i.d(t,{Jq:function(){return o},X5:function(){return n},jG:function(){return s}});const n={ctrlCmd:!1,alt:!1};var o,s;!function(e){e[e.Blur=1]="Blur",e[e.Gesture=2]="Gesture",e[e.Other=3]="Other"}(o||(o={})),function(e){e[e.NONE=0]="NONE",e[e.FIRST=1]="FIRST",e[e.SECOND=2]="SECOND",e[e.LAST=3]="LAST"}(s||(s={}))},98909:function(e,t,i){"use strict";i.d(t,{H:function(){return a}});var n=i(5359),o={},s={},r=function(){function e(e){var t=this;this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((function(e,i){t._lazyLoadPromiseResolve=e,t._lazyLoadPromiseReject=i}))}return e.getOrCreate=function(t){return s[t]||(s[t]=new e(t)),s[t]},e.prototype.whenLoaded=function(){return this._lazyLoadPromise},e.prototype.load=function(){var e=this;return this._loadingTriggered||(this._loadingTriggered=!0,o[this._languageId].loader().then((function(t){return e._lazyLoadPromiseResolve(t)}),(function(t){return e._lazyLoadPromiseReject(t)}))),this._lazyLoadPromise},e}();function a(e){var t=e.id;o[t]=e,n.Mj.register(e);var i=r.getOrCreate(t);n.Mj.setMonarchTokensProvider(t,i.whenLoaded().then((function(e){return e.language}))),n.Mj.onLanguage(t,(function(){i.load().then((function(e){n.Mj.setLanguageConfiguration(t,e.conf)}))}))}},92973:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:function(){return i.e(5434).then(i.bind(i,5434))}})},72773:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:function(){return i.e(92594).then(i.bind(i,92594))}})},30219:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:function(){return i.e(87964).then(i.bind(i,87964))}})},77878:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:function(){return i.e(29895).then(i.bind(i,29895))}})},74121:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:function(){return i.e(72969).then(i.bind(i,72969))}})},77973:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:function(){return i.e(9928).then(i.bind(i,9928))}})},27246:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:function(){return i.e(91274).then(i.bind(i,91274))}})},82961:function(e,t,i){"use strict";i.r(t);var n=i(98909);(0,n.H)({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:function(){return i.e(49260).then(i.bind(i,49260))}}),(0,n.H)({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:function(){return i.e(49260).then(i.bind(i,49260))}})},19959:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:function(){return i.e(77084).then(i.bind(i,77084))}})},23347:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"csp",extensions:[],aliases:["CSP","csp"],loader:function(){return i.e(47686).then(i.bind(i,47686))}})},17323:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:function(){return i.e(28920).then(i.bind(i,28920))}})},90130:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:function(){return i.e(67156).then(i.bind(i,67156))}})},5359:function(e,t,i){"use strict";i.d(t,{Mj:function(){return n.languages}});var n=i(2550)},72185:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:function(){return i.e(35354).then(i.bind(i,35354))}})},40882:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"go",extensions:[".go"],aliases:["Go"],loader:function(){return i.e(85764).then(i.bind(i,85764))}})},14349:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:function(){return i.e(33805).then(i.bind(i,33805))}})},10715:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:function(){return i.e(70671).then(i.bind(i,70671))}})},88756:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:function(){return i.e(29559).then(i.bind(i,29559))}})},30141:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:function(){return i.e(53550).then(i.bind(i,53550))}})},44115:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:function(){return i.e(34850).then(i.bind(i,34850))}})},65588:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"javascript",extensions:[".js",".es6",".jsx",".mjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:function(){return i.e(39950).then(i.bind(i,39950))}})},83135:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"kotlin",extensions:[".kt"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:function(){return i.e(29968).then(i.bind(i,29968))}})},91067:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:function(){return i.e(58271).then(i.bind(i,58271))}})},63886:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:function(){return i.e(4685).then(i.bind(i,55599))}})},44865:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:function(){return i.e(31154).then(i.bind(i,31154))}})},41495:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:function(){return i.e(63198).then(i.bind(i,63198))}})},12076:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:function(){return i.e(57365).then(i.bind(i,57365))}})},38516:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:function(){return i.e(48776).then(i.bind(i,48776))}})},18504:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:function(){return i.e(24797).then(i.bind(i,24797))}})},28593:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:function(){return i.e(89554).then(i.bind(i,89554))}})},43069:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:function(){return i.e(2837).then(i.bind(i,2837))}})},50185:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"perl",extensions:[".pl"],aliases:["Perl","pl"],loader:function(){return i.e(78737).then(i.bind(i,78737))}})},11745:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:function(){return i.e(28089).then(i.bind(i,28089))}})},96025:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:function(){return i.e(24628).then(i.bind(i,24628))}})},85713:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:function(){return i.e(65876).then(i.bind(i,65876))}})},98836:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:function(){return i.e(86045).then(i.bind(i,86045))}})},18625:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:function(){return i.e(72011).then(i.bind(i,72011))}})},59972:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:function(){return i.e(90316).then(i.bind(i,90316))}})},5512:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:function(){return i.e(2249).then(i.bind(i,2249))}})},59066:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:function(){return i.e(68842).then(i.bind(i,68842))}})},73363:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:function(){return i.e(18898).then(i.bind(i,18898))}})},5769:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"redis",extensions:[".redis"],aliases:["redis"],loader:function(){return i.e(18350).then(i.bind(i,18350))}})},95630:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:function(){return i.e(34790).then(i.bind(i,34790))}})},12189:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:function(){return i.e(53697).then(i.bind(i,53697))}})},78605:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:function(){return i.e(28561).then(i.bind(i,88392))}})},17728:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:function(){return i.e(26126).then(i.bind(i,26126))}})},94503:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:function(){return i.e(51144).then(i.bind(i,51144))}})},35550:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"scala",extensions:[".scala",".sc",".sbt"],aliases:["Scala","scala","SBT","Sbt","sbt","Dotty","dotty"],mimetypes:["text/x-scala-source","text/x-scala","text/x-sbt","text/x-dotty"],loader:function(){return i.e(53777).then(i.bind(i,53777))}})},66857:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:function(){return i.e(44354).then(i.bind(i,44354))}})},38341:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:function(){return i.e(35060).then(i.bind(i,35060))}})},61010:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:function(){return i.e(97591).then(i.bind(i,97591))}})},1099:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:function(){return i.e(44360).then(i.bind(i,44360))}})},49478:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:function(){return i.e(3885).then(i.bind(i,3885))}})},32985:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:function(){return i.e(10354).then(i.bind(i,10354))}})},72088:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib"],aliases:["StructuredText","scl","stl"],loader:function(){return i.e(6378).then(i.bind(i,6378))}})},69746:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:function(){return i.e(35416).then(i.bind(i,35416))}})},94912:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:function(){return i.e(99104).then(i.bind(i,99104))}})},60032:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:function(){return i.e(92538).then(i.bind(i,92538))}})},24571:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"typescript",extensions:[".ts",".tsx"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:function(){return i.e(75321).then(i.bind(i,75321))}})},77777:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:function(){return i.e(28161).then(i.bind(i,28161))}})},39393:function(e,t,i){"use strict";i.r(t),(0,i(98909).H)({id:"xml",extensions:[".xml",".dtd",".ascx",".csproj",".config",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xsl"],firstLine:"(\\<\\?xml.*)|(\\`},g.paragraph=e=>`${e}
`,t.codeBlockRenderer&&(g.code=(e,i)=>{const o=t.codeBlockRenderer(i,e),s=ue.a.nextId();return(0,re.eP)(Promise.all([o,u]),a.token).then((e=>{var i;if(!r&&e){const o=l.querySelector(`div[data-code="${s}"]`);o&&n.mc(o,e[0]),null===(i=t.asyncRenderCallback)||void 0===i||i.call(t)}})).catch((()=>{})),`${(0,be.YU)(e)}
`}),t.actionHandler){const e=t.actionHandler.disposables.add(new ie.Y(l,"click")),i=t.actionHandler.disposables.add(new ie.Y(l,"auxclick"));t.actionHandler.disposables.add(he.ju.any(e.event,i.event)((e=>{const i=new oe.n(e);if(!i.leftButton&&!i.middleButton)return;let n=i.target;if("A"===n.tagName||(n=n.parentElement,n&&"A"===n.tagName))try{const e=n.dataset.href;e&&t.actionHandler.callback(e,i)}catch(e){(0,le.dL)(e)}finally{i.preventDefault()}})))}e.supportHtml||(i.sanitizer=t=>(e.isTrusted?t.match(/^(]+>)|(<\/\s*span>)$/):void 0)?t:"",i.sanitize=!0,i.silent=!0),i.renderer=g;let p=null!==(o=e.value)&&void 0!==o?o:"";p.length>1e5&&(p=`${p.substr(0,1e5)}…`),e.supportThemeIcons&&(p=(0,ce.f$)(p));let m=pe.Qc(p,i);if(e.supportThemeIcons){m=(0,se.T)(m).map((e=>"string"==typeof e?e:e.outerHTML)).join("")}if(l.innerHTML=function(e,t){const{config:i,allowedSchemes:n}=function(e){const t=[fe.lg.http,fe.lg.https,fe.lg.mailto,fe.lg.data,fe.lg.file,fe.lg.vscodeFileResource,fe.lg.vscodeRemote,fe.lg.vscodeRemoteResource];e.isTrusted&&t.push(fe.lg.command);return{config:{ALLOWED_TAGS:["ul","li","p","b","i","code","blockquote","ol","h1","h2","h3","h4","h5","h6","hr","em","pre","table","thead","tbody","tr","th","td","div","del","a","strong","br","img","span"],ALLOWED_ATTR:["href","data-href","target","title","src","alt","class","style","data-code","width","height","align"],ALLOW_UNKNOWN_PROTOCOLS:!0},allowedSchemes:t}}(e);ee("uponSanitizeAttribute",((e,t)=>{if("style"!==t.attrName&&"class"!==t.attrName);else{if("SPAN"===e.tagName){if("style"===t.attrName)return void(t.keepAttr=/^(color\:#[0-9a-fA-F]+;)?(background-color\:#[0-9a-fA-F]+;)?$/.test(t.attrValue));if("class"===t.attrName)return void(t.keepAttr=/^codicon codicon-[a-z\-]+( codicon-modifier-[a-z\-]+)?$/.test(t.attrValue))}t.keepAttr=!1}}));const o=document.createElement("a");ee("afterSanitizeAttributes",(e=>{for(const t of["href","src"])e.hasAttribute(t)&&(o.href=e.getAttribute(t),n.includes(o.protocol.replace(/:$/,""))||e.removeAttribute(t))}));try{return J(t,Object.assign(Object.assign({},i),{RETURN_TRUSTED_TYPE:!0}))}finally{te("uponSanitizeAttribute"),te("afterSanitizeAttributes")}}(e,m),c(),t.asyncRenderCallback)for(const e of l.getElementsByTagName("img")){const i=s.add(n.nm(e,"load",(()=>{i.dispose(),t.asyncRenderCallback()})))}return{element:l,dispose:()=>{r=!0,a.cancel(),s.dispose()}}}var Se,ye=i(271),Le=i(64992),Ne=i(5972),xe=i(27347),ke=i(84571),De=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},Ee=function(e,t){return function(i,n){t(i,n,e)}},Ie=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};let Te=class e{constructor(e,t,i){this._options=e,this._modeService=t,this._openerService=i,this._onDidRenderAsync=new he.Q5,this.onDidRenderAsync=this._onDidRenderAsync.event}dispose(){this._onDidRenderAsync.dispose()}render(e,t,i){if(!e){return{element:document.createElement("span"),dispose:()=>{}}}const n=new ge.SL;return{element:n.add(we(e,Object.assign(Object.assign({},this._getRenderOptions(e,n)),t),i)).element,dispose:()=>n.dispose()}}_getRenderOptions(t,i){return{baseUrl:this._options.baseUrl,codeBlockRenderer:(t,i)=>Ie(this,void 0,void 0,(function*(){var n,o,s,r;let a;t?a=this._modeService.getModeIdForLanguageName(t):this._options.editor&&(a=null===(n=this._options.editor.getModel())||void 0===n?void 0:n.getLanguageId()),a||(a="plaintext"),this._modeService.triggerMode(a);const l=null!==(o=yield xe.RW.getPromise(a))&&void 0!==o?o:void 0,h=document.createElement("span");if(h.innerHTML=null!==(r=null===(s=e._ttpTokenizer)||void 0===s?void 0:s.createHTML(i,this._modeService.languageIdCodec,l))&&void 0!==r?r:(0,Ne.C)(i,this._modeService.languageIdCodec,l),this._options.editor){const e=this._options.editor.getOption(43);ke.V.applyFontInfoSlow(h,e)}else this._options.codeBlockFontFamily&&(h.style.fontFamily=this._options.codeBlockFontFamily);return h})),asyncRenderCallback:()=>this._onDidRenderAsync.fire(),actionHandler:{callback:e=>this._openerService.open(e,{fromUserGesture:!0,allowContributedOpeners:!0,allowCommands:t.isTrusted}).catch(le.dL),disposables:i}}}};Te._ttpTokenizer=null===(Se=window.trustedTypes)||void 0===Se?void 0:Se.createPolicy("tokenizeToString",{createHTML(e,t,i){return(0,Ne.C)(e,t,i)}}),Te=De([Ee(1,Le.h),Ee(2,ye.v4)],Te)},44525:function(e,t,i){"use strict";i.d(t,{CL:function(){return o},Pi:function(){return r},QI:function(){return s}});var n=i(91676);function o(e){return!(!e||"function"!=typeof e.getEditorType)&&e.getEditorType()===n.g.ICodeEditor}function s(e){return!(!e||"function"!=typeof e.getEditorType)&&e.getEditorType()===n.g.IDiffEditor}function r(e){return o(e)?e:s(e)?e.getModifiedEditor():null}},4514:function(e,t,i){"use strict";i.d(t,{AJ:function(){return b},QG:function(){return E},Qr:function(){return k},R6:function(){return S},Sq:function(){return O},Uc:function(){return n},_K:function(){return I},_l:function(){return w},f:function(){return N},fK:function(){return x},jY:function(){return y},kz:function(){return R},mY:function(){return v},n_:function(){return A},rn:function(){return D},sb:function(){return L}});var n,o=i(13268),s=i(5472),r=i(70827),a=i(72146),l=i(12027),h=i(16862),d=i(96236),c=i(35884),u=i(90689),g=i(86414),p=i(44650),m=i(14347),f=i(72999),_=i(44182);class v{constructor(e){this.id=e.id,this.precondition=e.precondition,this._kbOpts=e.kbOpts,this._menuOpts=e.menuOpts,this._description=e.description}register(){if(Array.isArray(this._menuOpts)?this._menuOpts.forEach(this._registerMenuItem,this):this._menuOpts&&this._registerMenuItem(this._menuOpts),this._kbOpts){const e=Array.isArray(this._kbOpts)?this._kbOpts:[this._kbOpts];for(const t of e){let e=t.kbExpr;this.precondition&&(e=e?u.Ao.and(e,this.precondition):this.precondition);const i={id:this.id,weight:t.weight,args:t.args,when:e,primary:t.primary,secondary:t.secondary,win:t.win,linux:t.linux,mac:t.mac};g.W.registerKeybindingRule(i)}}c.P.registerCommand({id:this.id,handler:(e,t)=>this.runCommand(e,t),description:this._description})}_registerMenuItem(e){d.BH.appendMenuItem(e.menuId,{group:e.group,command:{id:this.id,title:e.title,icon:e.icon,precondition:this.precondition},when:e.when,order:e.order})}}class b extends v{constructor(){super(...arguments),this._implementations=[]}addImplementation(e,t,i){return this._implementations.push({priority:e,name:t,implementation:i}),this._implementations.sort(((e,t)=>t.priority-e.priority)),{dispose:()=>{for(let e=0;e{if(e.get(u.i6).contextMatchesRules((0,f.f6)(this.precondition)))return this.runEditorCommand(e,n,t)}))}}class S extends w{constructor(e){super(S.convertOptions(e)),this.label=e.label,this.alias=e.alias}static convertOptions(e){let t;function i(t){return t.menuId||(t.menuId=d.eH.EditorContext),t.title||(t.title=e.label),t.when=u.Ao.and(e.precondition,t.when),t}return t=Array.isArray(e.menuOpts)?e.menuOpts:e.menuOpts?[e.menuOpts]:[],Array.isArray(e.contextMenuOpts)?t.push(...e.contextMenuOpts.map(i)):e.contextMenuOpts&&t.push(i(e.contextMenuOpts)),e.menuOpts=t,e}runEditorCommand(e,t,i){return this.reportTelemetry(e,t),this.run(e,t,i||{})}reportTelemetry(e,t){e.get(m.b).publicLog2("editorActionInvoked",{name:this.label,id:this.id})}}class y extends S{constructor(){super(...arguments),this._implementations=[]}addImplementation(e,t){return this._implementations.push([e,t]),this._implementations.sort(((e,t)=>t[0]-e[0])),{dispose:()=>{for(let e=0;enew Promise(((n,s)=>{try{n(t(e.object.textEditorModel,a.L.lift(o),i.slice(2)))}catch(e){s(e)}})).finally((()=>{e.dispose()}))))}))}function N(e,t){c.P.registerCommand(e,(function(e,...i){const[n]=i;(0,f.p_)(s.o.isUri(n));const o=e.get(l.q).getModel(n);return o?t(o,...i.slice(1)):e.get(h.S).createModelReference(n).then((e=>new Promise(((n,o)=>{try{n(t(e.object.textEditorModel,i.slice(1)))}catch(e){o(e)}})).finally((()=>{e.dispose()}))))}))}function x(e){return T.INSTANCE.registerEditorCommand(e),e}function k(e){const t=new e;return T.INSTANCE.registerEditorAction(t),t}function D(e){return T.INSTANCE.registerEditorAction(e),e}function E(e){T.INSTANCE.registerEditorAction(e)}function I(e,t){T.INSTANCE.registerEditorContribution(e,t)}!function(e){e.getEditorCommand=function(e){return T.INSTANCE.getEditorCommand(e)},e.getEditorActions=function(){return T.INSTANCE.getEditorActions()},e.getEditorContributions=function(){return T.INSTANCE.getEditorContributions()},e.getSomeEditorContributions=function(e){return T.INSTANCE.getEditorContributions().filter((t=>e.indexOf(t.id)>=0))},e.getDiffEditorContributions=function(){return T.INSTANCE.getDiffEditorContributions()}}(n||(n={}));class T{constructor(){this.editorContributions=[],this.diffEditorContributions=[],this.editorActions=[],this.editorCommands=Object.create(null)}registerEditorContribution(e,t){this.editorContributions.push({id:e,ctor:t})}getEditorContributions(){return this.editorContributions.slice(0)}getDiffEditorContributions(){return this.diffEditorContributions.slice(0)}registerEditorAction(e){e.register(),this.editorActions.push(e)}getEditorActions(){return this.editorActions.slice(0)}registerEditorCommand(e){e.register(),this.editorCommands[e.id]=e}getEditorCommand(e){return this.editorCommands[e]||null}}function M(e){return e.register(),e}T.INSTANCE=new T,p.B.add("editor.contributions",T.INSTANCE);const A=M(new b({id:"undo",precondition:void 0,kbOpts:{weight:0,primary:2104},menuOpts:[{menuId:d.eH.MenubarEditMenu,group:"1_do",title:o.N({key:"miUndo",comment:["&& denotes a mnemonic"]},"&&Undo"),order:1},{menuId:d.eH.CommandPalette,group:"",title:o.N("undo","Undo"),order:1}]}));M(new C(A,{id:"default:undo",precondition:void 0}));const R=M(new b({id:"redo",precondition:void 0,kbOpts:{weight:0,primary:2103,secondary:[3128],mac:{primary:3128}},menuOpts:[{menuId:d.eH.MenubarEditMenu,group:"1_do",title:o.N({key:"miRedo",comment:["&& denotes a mnemonic"]},"&&Redo"),order:2},{menuId:d.eH.CommandPalette,group:"",title:o.N("redo","Redo"),order:1}]}));M(new C(R,{id:"default:redo",precondition:void 0}));const O=M(new b({id:"editor.action.selectAll",precondition:void 0,kbOpts:{weight:0,kbExpr:null,primary:2079},menuOpts:[{menuId:d.eH.MenubarSelectionMenu,group:"1_basic",title:o.N({key:"miSelectAll",comment:["&& denotes a mnemonic"]},"&&Select All"),order:1},{menuId:d.eH.CommandPalette,group:"",title:o.N("selectAll","Select All"),order:1}]}))},97705:function(e,t,i){"use strict";i.d(t,{Gl:function(){return l},fo:function(){return a},vu:function(){return r}});var n=i(16925),o=i(5472),s=i(72999);const r=(0,n.yh)("IWorkspaceEditService");class a{constructor(e){this.metadata=e}static convert(e){return e.edits.map((e=>{if(t=e,(0,s.Kn)(t)&&o.o.isUri(t.resource)&&(0,s.Kn)(t.edit))return new l(e.resource,e.edit,e.modelVersionId,e.metadata);var t;if(function(e){return(0,s.Kn)(e)&&(Boolean(e.newUri)||Boolean(e.oldUri))}(e))return new h(e.oldUri,e.newUri,e.options,e.metadata);throw new Error("Unsupported edit")}))}}class l extends a{constructor(e,t,i,n){super(n),this.resource=e,this.textEdit=t,this.versionId=i}}class h extends a{constructor(e,t,i,n){super(n),this.oldResource=e,this.newResource=t,this.options=i}}},70827:function(e,t,i){"use strict";i.d(t,{$:function(){return n}});const n=(0,i(16925).yh)("codeEditorService")},55806:function(e,t,i){"use strict";i.d(t,{Gm:function(){return ao}});var n=i(49178),o=i(4514),s=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},r=function(e,t){return function(i,n){t(i,n,e)}};let a=class{constructor(e,t){}dispose(){}};a.ID="editor.contrib.markerDecorations",a=s([r(1,n.i)],a),(0,o._K)(a.ID,a);var l=i(13268),h=i(69454),d=i(79881),c=i(4348),u=i(69323),g=i(66657),p=i(84571),m=i(70827),f=i(87783),_=i(17551),v=i(32635),b=i(23345),C=i(60537),w=i(52390),S=i(50431),y=i(2395);class L{constructor(e,t){this.x=e,this.y=t,this._pageCoordinatesBrand=void 0}toClientCoordinates(){return new N(this.x-h.DI.scrollX,this.y-h.DI.scrollY)}}class N{constructor(e,t){this.clientX=e,this.clientY=t,this._clientCoordinatesBrand=void 0}toPageCoordinates(){return new L(this.clientX+h.DI.scrollX,this.clientY+h.DI.scrollY)}}class x{constructor(e,t,i,n){this.x=e,this.y=t,this.width=i,this.height=n,this._editorPagePositionBrand=void 0}}function k(e){const t=h.i(e);return new x(t.left,t.top,t.width,t.height)}class D extends w.n{constructor(e,t){super(e),this._editorMouseEventBrand=void 0,this.pos=new L(this.posx,this.posy),this.editorPos=k(t)}}class E{constructor(e){this._editorViewDomNode=e}_create(e){return new D(e,this._editorViewDomNode)}onContextMenu(e,t){return h.nm(e,"contextmenu",(e=>{t(this._create(e))}))}onMouseUp(e,t){return h.nm(e,"mouseup",(e=>{t(this._create(e))}))}onMouseDown(e,t){return h.nm(e,"mousedown",(e=>{t(this._create(e))}))}onMouseLeave(e,t){return h.j_(e,(e=>{t(this._create(e))}))}onMouseMoveThrottled(e,t,i,n){return h.Y_(e,"mousemove",t,((e,t)=>i(e,this._create(t))),n)}}class I{constructor(e){this._editorViewDomNode=e}_create(e){return new D(e,this._editorViewDomNode)}onPointerUp(e,t){return h.nm(e,"pointerup",(e=>{t(this._create(e))}))}onPointerDown(e,t){return h.nm(e,"pointerdown",(e=>{t(this._create(e))}))}onPointerLeave(e,t){return h.RE(e,(e=>{t(this._create(e))}))}onPointerMoveThrottled(e,t,i,n){return h.Y_(e,"pointermove",t,((e,t)=>i(e,this._create(t))),n)}}class T extends u.JT{constructor(e){super(),this._editorViewDomNode=e,this._globalMouseMoveMonitor=this._register(new y.Z),this._keydownListener=null}startMonitoring(e,t,i,n,o){this._keydownListener=h.mu(document,"keydown",(e=>{e.toKeybinding().isModifierKey()||this._globalMouseMoveMonitor.stopMonitoring(!0,e.browserEvent)}),!0);this._globalMouseMoveMonitor.startMonitoring(e,t,((e,t)=>i(e,new D(t,this._editorViewDomNode))),n,(e=>{this._keydownListener.dispose(),o(e)}))}stopMonitoring(){this._globalMouseMoveMonitor.stopMonitoring(!0)}}class M extends u.JT{constructor(){super(),this._shouldRender=!0}shouldRender(){return this._shouldRender}forceShouldRender(){this._shouldRender=!0}setShouldRender(){this._shouldRender=!0}onDidRender(){this._shouldRender=!1}onCompositionStart(e){return!1}onCompositionEnd(e){return!1}onConfigurationChanged(e){return!1}onCursorStateChanged(e){return!1}onDecorationsChanged(e){return!1}onFlushed(e){return!1}onFocusChanged(e){return!1}onLanguageConfigurationChanged(e){return!1}onLineMappingChanged(e){return!1}onLinesChanged(e){return!1}onLinesDeleted(e){return!1}onLinesInserted(e){return!1}onRevealRangeRequest(e){return!1}onScrollChanged(e){return!1}onThemeChanged(e){return!1}onTokensChanged(e){return!1}onTokensColorsChanged(e){return!1}onZonesChanged(e){return!1}handleEvents(e){let t=!1;for(let i=0,n=e.length;i=s.left?n.width=Math.max(n.width,s.left+s.width-n.left):(t[i++]=n,n=s)}return t[i++]=n,t}static _createHorizontalRangesFromClientRects(e,t){if(!e||0===e.length)return null;const i=[];for(let n=0,o=e.length;na)return null;if((t=Math.min(a,Math.max(0,t)))===(n=Math.min(a,Math.max(0,n)))&&i===o&&0===i&&!e.children[t].firstChild){const i=e.children[t].getClientRects();return this._createHorizontalRangesFromClientRects(i,s)}t!==n&&n>0&&0===o&&(n--,o=1073741824);let l=e.children[t].firstChild,h=e.children[n].firstChild;if(l&&h||(!l&&0===i&&t>0&&(l=e.children[t-1].firstChild,i=1073741824),!h&&0===o&&n>0&&(h=e.children[n-1].firstChild,o=1073741824)),!l||!h)return null;i=Math.min(l.textContent.length,Math.max(0,i)),o=Math.min(h.textContent.length,Math.max(0,o));const d=this._readClientRects(l,i,h,o,r);return this._createHorizontalRangesFromClientRects(d,s)}}var K=i(81112),U=i(28750),$=i(66213),j=i(97199);const q=!!b.tY||!(b.IJ||f.vU||f.G6);let G=!0;class Z{constructor(e,t){this._domNode=e,this._clientRectDeltaLeft=0,this._clientRectDeltaLeftRead=!1,this.endNode=t}get clientRectDeltaLeft(){return this._clientRectDeltaLeftRead||(this._clientRectDeltaLeftRead=!0,this._clientRectDeltaLeft=this._domNode.getBoundingClientRect().left),this._clientRectDeltaLeft}}class Q{constructor(e,t){this.themeType=t;const i=e.options,n=i.get(43);this.renderWhitespace=i.get(87),this.renderControlCharacters=i.get(82),this.spaceWidth=n.spaceWidth,this.middotWidth=n.middotWidth,this.wsmiddotWidth=n.wsmiddotWidth,this.useMonospaceOptimizations=n.isMonospace&&!i.get(29),this.canUseHalfwidthRightwardsArrow=n.canUseHalfwidthRightwardsArrow,this.lineHeight=i.get(58),this.stopRenderingLineAfter=i.get(104),this.fontLigatures=i.get(44)}equals(e){return this.themeType===e.themeType&&this.renderWhitespace===e.renderWhitespace&&this.renderControlCharacters===e.renderControlCharacters&&this.spaceWidth===e.spaceWidth&&this.middotWidth===e.middotWidth&&this.wsmiddotWidth===e.wsmiddotWidth&&this.useMonospaceOptimizations===e.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineHeight===e.lineHeight&&this.stopRenderingLineAfter===e.stopRenderingLineAfter&&this.fontLigatures===e.fontLigatures}}class Y{constructor(e){this._options=e,this._isMaybeInvalid=!0,this._renderedViewLine=null}getDomNode(){return this._renderedViewLine&&this._renderedViewLine.domNode?this._renderedViewLine.domNode.domNode:null}setDomNode(e){if(!this._renderedViewLine)throw new Error("I have no rendered view line to set the dom node to...");this._renderedViewLine.domNode=(0,v.X)(e)}onContentChanged(){this._isMaybeInvalid=!0}onTokensChanged(){this._isMaybeInvalid=!0}onDecorationsChanged(){this._isMaybeInvalid=!0}onOptionsChanged(e){this._isMaybeInvalid=!0,this._options=e}onSelectionChanged(){return(this._options.themeType===$.e.HIGH_CONTRAST||"selection"===this._options.renderWhitespace)&&(this._isMaybeInvalid=!0,!0)}renderLine(e,t,i,n){if(!1===this._isMaybeInvalid)return!1;this._isMaybeInvalid=!1;const o=i.getViewLineRenderingData(e),s=this._options,r=K.Kp.filter(o.inlineDecorations,e,o.minColumn,o.maxColumn);let a=null;if(s.themeType===$.e.HIGH_CONTRAST||"selection"===this._options.renderWhitespace){const t=i.selections;for(const i of t){if(i.endLineNumbere)continue;const t=i.startLineNumber===e?i.startColumn:o.minColumn,n=i.endLineNumber===e?i.endColumn:o.maxColumn;t');const h=(0,U.d1)(l,n);n.appendASCIIString("");let d=null;return G&&q&&o.isBasicASCII&&s.useMonospaceOptimizations&&0===h.containsForeignElements&&o.content.length<300&&l.lineTokens.getCount()<100&&(d=new X(this._renderedViewLine?this._renderedViewLine.domNode:null,l,h.characterMapping)),d||(d=te(this._renderedViewLine?this._renderedViewLine.domNode:null,l,h.characterMapping,h.containsRTL,h.containsForeignElements)),this._renderedViewLine=d,!0}layoutLine(e,t){this._renderedViewLine&&this._renderedViewLine.domNode&&(this._renderedViewLine.domNode.setTop(t),this._renderedViewLine.domNode.setHeight(this._options.lineHeight))}getWidth(){return this._renderedViewLine?this._renderedViewLine.getWidth():0}getWidthIsFast(){return!this._renderedViewLine||this._renderedViewLine.getWidthIsFast()}needsMonospaceFontCheck(){return!!this._renderedViewLine&&this._renderedViewLine instanceof X}monospaceAssumptionsAreValid(){return this._renderedViewLine&&this._renderedViewLine instanceof X?this._renderedViewLine.monospaceAssumptionsAreValid():G}onMonospaceAssumptionsInvalidated(){this._renderedViewLine&&this._renderedViewLine instanceof X&&(this._renderedViewLine=this._renderedViewLine.toSlowRenderedLine())}getVisibleRangesForRange(e,t,i,n){if(!this._renderedViewLine)return null;t|=0,i|=0,t=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,t)),i=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,i));const o=0|this._renderedViewLine.input.stopRenderingLineAfter;let s=!1;-1!==o&&t>o+1&&i>o+1&&(s=!0),-1!==o&&t>o+1&&(t=o+1),-1!==o&&i>o+1&&(i=o+1);const r=this._renderedViewLine.getVisibleRangesForRange(e,t,i,n);return r&&r.length>0?new H(s,r):null}getColumnOfNodeOffset(e,t,i){return this._renderedViewLine?this._renderedViewLine.getColumnOfNodeOffset(e,t,i):1}}Y.CLASS_NAME="view-line";class X{constructor(e,t,i){this.domNode=e,this.input=t,this._characterMapping=i,this._charWidth=t.spaceWidth}getWidth(){return Math.round(this._getCharPosition(this._characterMapping.length))}getWidthIsFast(){return!0}monospaceAssumptionsAreValid(){if(!this.domNode)return G;const e=this.getWidth(),t=this.domNode.domNode.firstChild.offsetWidth;return Math.abs(e-t)>=2&&(console.warn("monospace assumptions have been violated, therefore disabling monospace optimizations!"),G=!1),G}toSlowRenderedLine(){return te(this.domNode,this.input,this._characterMapping,!1,0)}getVisibleRangesForRange(e,t,i,n){const o=this._getCharPosition(t),s=this._getCharPosition(i);return[new V(o,s-o)]}_getCharPosition(e){const t=this._characterMapping.getAbsoluteOffset(e);return this._charWidth*t}getColumnOfNodeOffset(e,t,i){const n=t.textContent.length;let o=-1;for(;t;)t=t.previousSibling,o++;return this._characterMapping.getColumn(new U.Nd(o,i),n)}}class J{constructor(e,t,i,n,o){if(this.domNode=e,this.input=t,this._characterMapping=i,this._isWhitespaceOnly=/^\s*$/.test(t.lineContent),this._containsForeignElements=o,this._cachedWidth=-1,this._pixelOffsetCache=null,!n||0===this._characterMapping.length){this._pixelOffsetCache=new Float32Array(Math.max(2,this._characterMapping.length+1));for(let e=0,t=this._characterMapping.length;e<=t;e++)this._pixelOffsetCache[e]=-1}}_getReadingTarget(e){return e.domNode.firstChild}getWidth(){return this.domNode?(-1===this._cachedWidth&&(this._cachedWidth=this._getReadingTarget(this.domNode).offsetWidth),this._cachedWidth):0}getWidthIsFast(){return-1!==this._cachedWidth}getVisibleRangesForRange(e,t,i,n){if(!this.domNode)return null;if(null!==this._pixelOffsetCache){const o=this._readPixelOffset(this.domNode,e,t,n);if(-1===o)return null;const s=this._readPixelOffset(this.domNode,e,i,n);return-1===s?null:[new V(o,s-o)]}return this._readVisibleRangesForRange(this.domNode,e,t,i,n)}_readVisibleRangesForRange(e,t,i,n,o){if(i===n){const n=this._readPixelOffset(e,t,i,o);return-1===n?null:[new V(n,0)]}return this._readRawVisibleRangesForRange(e,i,n,o)}_readPixelOffset(e,t,i,n){if(0===this._characterMapping.length){if(0===this._containsForeignElements)return 0;if(2===this._containsForeignElements)return 0;if(1===this._containsForeignElements)return this.getWidth();const t=this._getReadingTarget(e);return t.firstChild?t.firstChild.offsetWidth:0}if(null!==this._pixelOffsetCache){const o=this._pixelOffsetCache[i];if(-1!==o)return o;const s=this._actualReadPixelOffset(e,t,i,n);return this._pixelOffsetCache[i]=s,s}return this._actualReadPixelOffset(e,t,i,n)}_actualReadPixelOffset(e,t,i,n){if(0===this._characterMapping.length){const t=z.readHorizontalRanges(this._getReadingTarget(e),0,0,0,0,n.clientRectDeltaLeft,n.endNode);return t&&0!==t.length?t[0].left:-1}if(i===this._characterMapping.length&&this._isWhitespaceOnly&&0===this._containsForeignElements)return this.getWidth();const o=this._characterMapping.getDomPosition(i),s=z.readHorizontalRanges(this._getReadingTarget(e),o.partIndex,o.charIndex,o.partIndex,o.charIndex,n.clientRectDeltaLeft,n.endNode);if(!s||0===s.length)return-1;const r=s[0].left;if(this.input.isBasicASCII){const e=this._characterMapping.getAbsoluteOffset(i),t=Math.round(this.input.spaceWidth*e);if(Math.abs(t-r)<=1)return t}return r}_readRawVisibleRangesForRange(e,t,i,n){if(1===t&&i===this._characterMapping.length)return[new V(0,this.getWidth())];const o=this._characterMapping.getDomPosition(t),s=this._characterMapping.getDomPosition(i);return z.readHorizontalRanges(this._getReadingTarget(e),o.partIndex,o.charIndex,s.partIndex,s.charIndex,n.clientRectDeltaLeft,n.endNode)}getColumnOfNodeOffset(e,t,i){const n=t.textContent.length;let o=-1;for(;t;)t=t.previousSibling,o++;return this._characterMapping.getColumn(new U.Nd(o,i),n)}}class ee extends J{_readVisibleRangesForRange(e,t,i,n,o){const s=super._readVisibleRangesForRange(e,t,i,n,o);if(!s||0===s.length||i===n||1===i&&n===this._characterMapping.length)return s;if(!this.input.containsRTL){const i=this._readPixelOffset(e,t,n,o);if(-1!==i){const e=s[s.length-1];e.left=4&&3===e[0]&&7===e[3]}static isStrictChildOfViewLines(e){return e.length>4&&3===e[0]&&7===e[3]}static isChildOfScrollableElement(e){return e.length>=2&&3===e[0]&&5===e[1]}static isChildOfMinimap(e){return e.length>=2&&3===e[0]&&8===e[1]}static isChildOfContentWidgets(e){return e.length>=4&&3===e[0]&&1===e[3]}static isChildOfOverflowingContentWidgets(e){return e.length>=1&&2===e[0]}static isChildOfOverlayWidgets(e){return e.length>=2&&3===e[0]&&4===e[1]}}class pe{constructor(e,t,i){this.model=e.model;const n=e.configuration.options;this.layoutInfo=n.get(129),this.viewDomNode=t.viewDomNode,this.lineHeight=n.get(58),this.stickyTabStops=n.get(103),this.typicalHalfwidthCharacterWidth=n.get(43).typicalHalfwidthCharacterWidth,this.lastRenderData=i,this._context=e,this._viewHelper=t}getZoneAtCoord(e){return pe.getZoneAtCoord(this._context,e)}static getZoneAtCoord(e,t){const i=e.viewLayout.getWhitespaceAtVerticalOffset(t);if(i){const n=i.verticalOffset+i.height/2,o=e.model.getLineCount();let s,r=null,a=null;return i.afterLineNumber!==o&&(a=new se.L(i.afterLineNumber+1,1)),i.afterLineNumber>0&&(r=new se.L(i.afterLineNumber,e.model.getLineMaxColumn(i.afterLineNumber))),s=null===a?r:null===r?a:t=e.layoutInfo.glyphMarginLeft,this.isInContentArea=!this.isInMarginArea,this.mouseColumn=Math.max(0,be._getMouseColumn(this.mouseContentHorizontalOffset,e.typicalHalfwidthCharacterWidth))}}class fe extends me{constructor(e,t,i,n){super(e,t,i),this._ctx=e,n?(this.target=n,this.targetPath=R.collect(n,e.viewDomNode)):(this.target=null,this.targetPath=new Uint8Array(0))}toString(){return`pos(${this.pos.x},${this.pos.y}), editorPos(${this.editorPos.x},${this.editorPos.y}), mouseVerticalOffset: ${this.mouseVerticalOffset}, mouseContentHorizontalOffset: ${this.mouseContentHorizontalOffset}\n\ttarget: ${this.target?this.target.outerHTML:null}`}fulfill(e,t=null,i=null,n=null){let o=this.mouseColumn;return t&&t.columns.contentLeft+s.width)continue;const i=e.getVerticalOffsetForLineNumber(s.position.lineNumber);if(i<=o&&o<=i+s.height)return t.fulfill(6,s.position,null,{mightBeForeignElement:!1})}}return null}static _hitTestViewZone(e,t){const i=e.getZoneAtCoord(t.mouseVerticalOffset);if(i){const e=t.isInContentArea?8:5;return t.fulfill(e,i.position,null,i)}return null}static _hitTestTextArea(e,t){return ge.isTextArea(t.targetPath)?e.lastRenderData.lastTextareaPosition?t.fulfill(6,e.lastRenderData.lastTextareaPosition,null,{mightBeForeignElement:!1}):t.fulfill(1,e.lastRenderData.lastTextareaPosition):null}static _hitTestMargin(e,t){if(t.isInMarginArea){const i=e.getFullLineRangeAtCoord(t.mouseVerticalOffset),n=i.range.getStartPosition();let o=Math.abs(t.pos.x-t.editorPos.x);const s={isAfterLines:i.isAfterLines,glyphMarginLeft:e.layoutInfo.glyphMarginLeft,glyphMarginWidth:e.layoutInfo.glyphMarginWidth,lineNumbersWidth:e.layoutInfo.lineNumbersWidth,offsetX:o};return o-=e.layoutInfo.glyphMarginLeft,o<=e.layoutInfo.glyphMarginWidth?t.fulfill(2,n,i.range,s):(o-=e.layoutInfo.glyphMarginWidth,o<=e.layoutInfo.lineNumbersWidth?t.fulfill(3,n,i.range,s):(o-=e.layoutInfo.lineNumbersWidth,t.fulfill(4,n,i.range,s)))}return null}static _hitTestViewLines(e,t,i){if(!ge.isChildOfViewLines(t.targetPath))return null;if(e.isInTopPadding(t.mouseVerticalOffset))return t.fulfill(7,new se.L(1,1),null,_e);if(e.isAfterLines(t.mouseVerticalOffset)||e.isInBottomPadding(t.mouseVerticalOffset)){const i=e.model.getLineCount(),n=e.model.getLineMaxColumn(i);return t.fulfill(7,new se.L(i,n),null,_e)}if(i){if(ge.isStrictChildOfViewLines(t.targetPath)){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset);if(0===e.model.getLineLength(i)){const n=e.getLineWidth(i),o=ve(t.mouseContentHorizontalOffset-n);return t.fulfill(7,new se.L(i,1),null,o)}const n=e.getLineWidth(i);if(t.mouseContentHorizontalOffset>=n){const o=ve(t.mouseContentHorizontalOffset-n),s=new se.L(i,e.model.getLineMaxColumn(i));return t.fulfill(7,s,null,o)}}return t.fulfill(0)}const n=be._doHitTest(e,t);return 1===n.type?be.createMouseTargetFromHitTestPosition(e,t,n.spanNode,n.position,n.injectedText):this._createMouseTarget(e,t.withTarget(n.hitTarget),!0)}static _hitTestMinimap(e,t){if(ge.isChildOfMinimap(t.targetPath)){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),n=e.model.getLineMaxColumn(i);return t.fulfill(11,new se.L(i,n))}return null}static _hitTestScrollbarSlider(e,t){if(ge.isChildOfScrollableElement(t.targetPath)&&t.target&&1===t.target.nodeType){const i=t.target.className;if(i&&/\b(slider|scrollbar)\b/.test(i)){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),n=e.model.getLineMaxColumn(i);return t.fulfill(11,new se.L(i,n))}}return null}static _hitTestScrollbar(e,t){if(ge.isChildOfScrollableElement(t.targetPath)){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),n=e.model.getLineMaxColumn(i);return t.fulfill(11,new se.L(i,n))}return null}getMouseColumn(e,t){const i=this._context.configuration.options,n=i.get(129),o=this._context.viewLayout.getCurrentScrollLeft()+t.x-e.x-n.contentLeft;return be._getMouseColumn(o,i.get(43).typicalHalfwidthCharacterWidth)}static _getMouseColumn(e,t){if(e<0)return 1;return Math.round(e/t)+1}static createMouseTargetFromHitTestPosition(e,t,i,n,o){const s=n.lineNumber,r=n.column,a=e.getLineWidth(s);if(t.mouseContentHorizontalOffset>a){const e=ve(t.mouseContentHorizontalOffset-a);return t.fulfill(7,n,null,e)}const l=e.visibleRangeForPosition(s,r);if(!l)return t.fulfill(0,n);const h=l.left;if(t.mouseContentHorizontalOffset===h)return t.fulfill(6,n,null,{mightBeForeignElement:!!o});const d=[];if(d.push({offset:l.left,column:r}),r>1){const t=e.visibleRangeForPosition(s,r-1);t&&d.push({offset:t.left,column:r-1})}if(re.offset-t.offset));const c=t.pos.toClientCoordinates(),u=i.getBoundingClientRect(),g=u.left<=c.clientX&&c.clientX<=u.right;for(let e=1;e=t.editorPos.y+e.layoutInfo.height&&(o=t.editorPos.y+e.layoutInfo.height-1);const s=new L(t.pos.x,o),r=this._actualDoHitTestWithCaretRangeFromPoint(e,s.toClientCoordinates());return 1===r.type?r:this._actualDoHitTestWithCaretRangeFromPoint(e,t.pos.toClientCoordinates())}static _actualDoHitTestWithCaretRangeFromPoint(e,t){const i=h.Ay(e.viewDomNode);let n;if(n=i?void 0===i.caretRangeFromPoint?function(e,t,i){const n=document.createRange();let o=e.elementFromPoint(t,i);if(null!==o){for(;o&&o.firstChild&&o.firstChild.nodeType!==o.firstChild.TEXT_NODE&&o.lastChild&&o.lastChild.firstChild;)o=o.lastChild;const e=o.getBoundingClientRect(),i=window.getComputedStyle(o,null).getPropertyValue("font"),s=o.innerText;let r,a=e.left,l=0;if(t>e.left+e.width)l=s.length;else{const e=Ce.getInstance();for(let n=0;nthis._createMouseTarget(e,t)),(e=>this._getMouseColumn(e)))),this.lastMouseLeaveTime=-1,this._height=this._context.configuration.options.get(129).height;const n=new E(this.viewHelper.viewDomNode);this._register(n.onContextMenu(this.viewHelper.viewDomNode,(e=>this._onContextMenu(e,!0)))),this._register(n.onMouseMoveThrottled(this.viewHelper.viewDomNode,(e=>this._onMouseMove(e)),Se(this.mouseTargetFactory),ye.MOUSE_MOVE_MINIMUM_TIME)),this._register(n.onMouseUp(this.viewHelper.viewDomNode,(e=>this._onMouseUp(e)))),this._register(n.onMouseLeave(this.viewHelper.viewDomNode,(e=>this._onMouseLeave(e)))),this._register(n.onMouseDown(this.viewHelper.viewDomNode,(e=>this._onMouseDown(e))));this._register(h.nm(this.viewHelper.viewDomNode,h.tw.MOUSE_WHEEL,(e=>{if(this.viewController.emitMouseWheel(e),!this._context.configuration.options.get(67))return;const t=new w.q(e);if(b.dz?(e.metaKey||e.ctrlKey)&&!e.shiftKey&&!e.altKey:e.ctrlKey&&!e.metaKey&&!e.shiftKey&&!e.altKey){const e=we.C.getZoomLevel(),i=t.deltaY>0?1:-1;we.C.setZoomLevel(e+i),t.preventDefault(),t.stopPropagation()}}),{capture:!0,passive:!1})),this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}onConfigurationChanged(e){if(e.hasChanged(129)){const e=this._context.configuration.options.get(129).height;this._height!==e&&(this._height=e,this._mouseDownOperation.onHeightChanged())}return!1}onCursorStateChanged(e){return this._mouseDownOperation.onCursorStateChanged(e),!1}onFocusChanged(e){return!1}onScrollChanged(e){return this._mouseDownOperation.onScrollChanged(),!1}getTargetAtClientPoint(e,t){const i=new N(e,t).toPageCoordinates(),n=k(this.viewHelper.viewDomNode);return i.yn.y+n.height||i.xn.x+n.width?null:this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),n,i,null)}_createMouseTarget(e,t){let i=e.target;if(!this.viewHelper.viewDomNode.contains(i)){const t=h.Ay(this.viewHelper.viewDomNode);t&&(i=t.elementsFromPoint(e.posx,e.posy).find((e=>this.viewHelper.viewDomNode.contains(e))))}return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),e.editorPos,e.pos,t?i:null)}_getMouseColumn(e){return this.mouseTargetFactory.getMouseColumn(e.editorPos,e.pos)}_onContextMenu(e,t){this.viewController.emitContextMenu({event:e,target:this._createMouseTarget(e,t)})}_onMouseMove(e){if(this._mouseDownOperation.isActive())return;e.timestamp{e.preventDefault(),this.viewHelper.focusTextArea()};if(l&&(i||o&&s))h(),this._mouseDownOperation.start(t.type,e);else if(n)e.preventDefault();else if(r){const i=t.detail;this.viewHelper.shouldSuppressMouseDownOnViewZone(i.viewZoneId)&&(h(),this._mouseDownOperation.start(t.type,e),e.preventDefault())}else a&&this.viewHelper.shouldSuppressMouseDownOnWidget(t.detail)&&(h(),e.preventDefault());this.viewController.emitMouseDown({event:e,target:t})}}ye.MOUSE_MOVE_MINIMUM_TIME=100;class Le extends u.JT{constructor(e,t,i,n,o){super(),this._context=e,this._viewController=t,this._viewHelper=i,this._createMouseTarget=n,this._getMouseColumn=o,this._mouseMoveMonitor=this._register(new T(this._viewHelper.viewDomNode)),this._onScrollTimeout=this._register(new S._F),this._mouseState=new Ne,this._currentSelection=new _.Y(1,1,1,1),this._isActive=!1,this._lastMouseEvent=null}dispose(){super.dispose()}isActive(){return this._isActive}_onMouseDownThenMove(e){this._lastMouseEvent=e,this._mouseState.setModifiers(e);const t=this._findMousePosition(e,!0);t&&(this._mouseState.isDragAndDrop?this._viewController.emitMouseDrag({event:e,target:t}):this._dispatchMouse(t,!0))}start(e,t){this._lastMouseEvent=t,this._mouseState.setStartedOnLineNumbers(3===e),this._mouseState.setStartButtons(t),this._mouseState.setModifiers(t);const i=this._findMousePosition(t,!0);if(!i||!i.position)return;this._mouseState.trySetCount(t.detail,i.position),t.detail=this._mouseState.count;const n=this._context.configuration.options;if(!n.get(80)&&n.get(31)&&!n.get(18)&&!this._mouseState.altKey&&t.detail<2&&!this._isActive&&!this._currentSelection.isEmpty()&&6===i.type&&i.position&&this._currentSelection.containsPosition(i.position))return this._mouseState.isDragAndDrop=!0,this._isActive=!0,void this._mouseMoveMonitor.startMonitoring(t.target,t.buttons,Se(null),(e=>this._onMouseDownThenMove(e)),(e=>{const t=this._findMousePosition(this._lastMouseEvent,!0);e&&e instanceof KeyboardEvent?this._viewController.emitMouseDropCanceled():this._viewController.emitMouseDrop({event:this._lastMouseEvent,target:t?this._createMouseTarget(this._lastMouseEvent,!0):null}),this._stop()}));this._mouseState.isDragAndDrop=!1,this._dispatchMouse(i,t.shiftKey),this._isActive||(this._isActive=!0,this._mouseMoveMonitor.startMonitoring(t.target,t.buttons,Se(null),(e=>this._onMouseDownThenMove(e)),(()=>this._stop())))}_stop(){this._isActive=!1,this._onScrollTimeout.cancel()}onHeightChanged(){this._mouseMoveMonitor.stopMonitoring()}onScrollChanged(){this._isActive&&this._onScrollTimeout.setIfNotSet((()=>{if(!this._lastMouseEvent)return;const e=this._findMousePosition(this._lastMouseEvent,!1);e&&(this._mouseState.isDragAndDrop||this._dispatchMouse(e,!0))}),10)}onCursorStateChanged(e){this._currentSelection=e.selections[0]}_getPositionOutsideEditor(e){const t=e.editorPos,i=this._context.model,n=this._context.viewLayout,o=this._getMouseColumn(e);if(e.posyt.y+t.height){const s=n.getCurrentScrollTop()+(e.posy-t.y),r=pe.getZoneAtCoord(this._context,s);if(r){const e=this._helpPositionJumpOverViewZone(r);if(e)return new ue(null,13,o,e)}const a=n.getLineNumberAtVerticalOffset(s);return new ue(null,13,o,new se.L(a,i.getLineMaxColumn(a)))}const s=n.getLineNumberAtVerticalOffset(n.getCurrentScrollTop()+(e.posy-t.y));return e.posxt.x+t.width?new ue(null,13,o,new se.L(s,i.getLineMaxColumn(s))):null}_findMousePosition(e,t){const i=this._getPositionOutsideEditor(e);if(i)return i;const n=this._createMouseTarget(e,t);if(!n.position)return null;if(8===n.type||5===n.type){const e=this._helpPositionJumpOverViewZone(n.detail);if(e)return new ue(n.element,n.type,n.mouseColumn,e,null,n.detail)}return n}_helpPositionJumpOverViewZone(e){const t=new se.L(this._currentSelection.selectionStartLineNumber,this._currentSelection.selectionStartColumn),i=e.positionBefore,n=e.positionAfter;return i&&n?i.isBefore(t)?i:n:null}_dispatchMouse(e,t){e.position&&this._viewController.dispatchMouse({position:e.position,mouseColumn:e.mouseColumn,startedOnLineNumbers:this._mouseState.startedOnLineNumbers,inSelectionMode:t,mouseDownCount:this._mouseState.count,altKey:this._mouseState.altKey,ctrlKey:this._mouseState.ctrlKey,metaKey:this._mouseState.metaKey,shiftKey:this._mouseState.shiftKey,leftButton:this._mouseState.leftButton,middleButton:this._mouseState.middleButton})}}class Ne{constructor(){this._altKey=!1,this._ctrlKey=!1,this._metaKey=!1,this._shiftKey=!1,this._leftButton=!1,this._middleButton=!1,this._startedOnLineNumbers=!1,this._lastMouseDownPosition=null,this._lastMouseDownPositionEqualCount=0,this._lastMouseDownCount=0,this._lastSetMouseDownCountTime=0,this.isDragAndDrop=!1}get altKey(){return this._altKey}get ctrlKey(){return this._ctrlKey}get metaKey(){return this._metaKey}get shiftKey(){return this._shiftKey}get leftButton(){return this._leftButton}get middleButton(){return this._middleButton}get startedOnLineNumbers(){return this._startedOnLineNumbers}get count(){return this._lastMouseDownCount}setModifiers(e){this._altKey=e.altKey,this._ctrlKey=e.ctrlKey,this._metaKey=e.metaKey,this._shiftKey=e.shiftKey}setStartButtons(e){this._leftButton=e.leftButton,this._middleButton=e.middleButton}setStartedOnLineNumbers(e){this._startedOnLineNumbers=e}trySetCount(e,t){const i=(new Date).getTime();i-this._lastSetMouseDownCountTime>Ne.CLEAR_MOUSE_DOWN_COUNT_TIME&&(e=1),this._lastSetMouseDownCountTime=i,e>this._lastMouseDownCount+1&&(e=this._lastMouseDownCount+1),this._lastMouseDownPosition&&this._lastMouseDownPosition.equals(t)?this._lastMouseDownPositionEqualCount++:this._lastMouseDownPositionEqualCount=1,this._lastMouseDownPosition=t,this._lastMouseDownCount=Math.min(e,this._lastMouseDownPositionEqualCount)}}Ne.CLEAR_MOUSE_DOWN_COUNT_TIME=400;var xe=i(23725),ke=i(79193);class De extends ye{constructor(e,t,i){super(e,t,i),this._register(C.o.addTarget(this.viewHelper.linesContentDomNode)),this._register(h.nm(this.viewHelper.linesContentDomNode,C.t.Tap,(e=>this.onTap(e)))),this._register(h.nm(this.viewHelper.linesContentDomNode,C.t.Change,(e=>this.onChange(e)))),this._register(h.nm(this.viewHelper.linesContentDomNode,C.t.Contextmenu,(e=>this._onContextMenu(new D(e,this.viewHelper.viewDomNode),!1)))),this._lastPointerType="mouse",this._register(h.nm(this.viewHelper.linesContentDomNode,"pointerdown",(e=>{const t=e.pointerType;this._lastPointerType="mouse"!==t?"touch"===t?"touch":"pen":"mouse"})));const n=new I(this.viewHelper.viewDomNode);this._register(n.onPointerMoveThrottled(this.viewHelper.viewDomNode,(e=>this._onMouseMove(e)),Se(this.mouseTargetFactory),ye.MOUSE_MOVE_MINIMUM_TIME)),this._register(n.onPointerUp(this.viewHelper.viewDomNode,(e=>this._onMouseUp(e)))),this._register(n.onPointerLeave(this.viewHelper.viewDomNode,(e=>this._onMouseLeave(e)))),this._register(n.onPointerDown(this.viewHelper.viewDomNode,(e=>this._onMouseDown(e))))}onTap(e){if(!e.initialTarget||!this.viewHelper.linesContentDomNode.contains(e.initialTarget))return;e.preventDefault(),this.viewHelper.focusTextArea();const t=this._createMouseTarget(new D(e,this.viewHelper.viewDomNode),!1);t.position&&this.viewController.dispatchMouse({position:t.position,mouseColumn:t.position.column,startedOnLineNumbers:!1,mouseDownCount:e.tapCount,inSelectionMode:!1,altKey:!1,ctrlKey:!1,metaKey:!1,shiftKey:!1,leftButton:!1,middleButton:!1})}onChange(e){"touch"===this._lastPointerType&&this._context.model.deltaScrollNow(-e.translationX,-e.translationY)}_onMouseDown(e){"touch"!==e.browserEvent.pointerType&&super._onMouseDown(e)}}class Ee extends ye{constructor(e,t,i){super(e,t,i),this._register(C.o.addTarget(this.viewHelper.linesContentDomNode)),this._register(h.nm(this.viewHelper.linesContentDomNode,C.t.Tap,(e=>this.onTap(e)))),this._register(h.nm(this.viewHelper.linesContentDomNode,C.t.Change,(e=>this.onChange(e)))),this._register(h.nm(this.viewHelper.linesContentDomNode,C.t.Contextmenu,(e=>this._onContextMenu(new D(e,this.viewHelper.viewDomNode),!1))))}onTap(e){e.preventDefault(),this.viewHelper.focusTextArea();const t=this._createMouseTarget(new D(e,this.viewHelper.viewDomNode),!1);if(t.position){const e=document.createEvent("CustomEvent");e.initEvent(ke.pd.Tap,!1,!0),this.viewHelper.dispatchTextAreaEvent(e),this.viewController.moveTo(t.position)}}onChange(e){this._context.model.deltaScrollNow(-e.translationX,-e.translationY)}}class Ie extends u.JT{constructor(e,t,i){super(),b.gn&&xe.D.pointerEvents?this.handler=this._register(new De(e,t,i)):window.TouchEvent?this.handler=this._register(new Ee(e,t,i)):this.handler=this._register(new ye(e,t,i))}getTargetAtClientPoint(e,t){return this.handler.getTargetAtClientPoint(e,t)}}var Te=i(82983),Me=i(56842);class Ae extends M{}var Re=i(30297),Oe=i(49055);class Pe extends Ae{constructor(e){super(),this._context=e,this._readConfig(),this._lastCursorModelPosition=new se.L(1,1),this._renderResult=null,this._activeLineNumber=1,this._context.addEventHandler(this)}_readConfig(){const e=this._context.configuration.options;this._lineHeight=e.get(58);const t=e.get(59);this._renderLineNumbers=t.renderType,this._renderCustomLineNumbers=t.renderFn,this._renderFinalNewline=e.get(83);const i=e.get(129);this._lineNumbersLeft=i.lineNumbersLeft,this._lineNumbersWidth=i.lineNumbersWidth}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){return this._readConfig(),!0}onCursorStateChanged(e){const t=e.selections[0].getPosition();this._lastCursorModelPosition=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(t);let i=!1;return this._activeLineNumber!==t.lineNumber&&(this._activeLineNumber=t.lineNumber,i=!0),2!==this._renderLineNumbers&&3!==this._renderLineNumbers||(i=!0),i}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_getLineRenderLineNumber(e){const t=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new se.L(e,1));if(1!==t.column)return"";const i=t.lineNumber;if(this._renderCustomLineNumbers)return this._renderCustomLineNumbers(i);if(2===this._renderLineNumbers){const e=Math.abs(this._lastCursorModelPosition.lineNumber-i);return 0===e?''+i+"":String(e)}return 3===this._renderLineNumbers?this._lastCursorModelPosition.lineNumber===i||i%10==0?String(i):"":String(i)}prepareRender(e){if(0===this._renderLineNumbers)return void(this._renderResult=null);const t=b.IJ?this._lineHeight%2==0?" lh-even":" lh-odd":"",i=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,o='',s=this._context.model.getLineCount(),r=[];for(let e=i;e<=n;e++){const n=e-i;if(!this._renderFinalNewline&&e===s&&0===this._context.model.getLineLength(e)){r[n]="";continue}const a=this._getLineRenderLineNumber(e);a?e===this._activeLineNumber?r[n]='
'+a+"
":r[n]=o+a+"
":r[n]=""}this._renderResult=r}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}Pe.CLASS_NAME="line-numbers",(0,Oe.Ic)(((e,t)=>{const i=e.getColor(Re.hw);i&&t.addRule(`.monaco-editor .line-numbers { color: ${i}; }`);const n=e.getColor(Re.DD);n&&t.addRule(`.monaco-editor .line-numbers.active-line-number { color: ${n}; }`)}));class Fe extends A{constructor(e){super(e);const t=this._context.configuration.options,i=t.get(129);this._canUseLayerHinting=!t.get(28),this._contentLeft=i.contentLeft,this._glyphMarginLeft=i.glyphMarginLeft,this._glyphMarginWidth=i.glyphMarginWidth,this._domNode=(0,v.X)(document.createElement("div")),this._domNode.setClassName(Fe.OUTER_CLASS_NAME),this._domNode.setPosition("absolute"),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._glyphMarginBackgroundDomNode=(0,v.X)(document.createElement("div")),this._glyphMarginBackgroundDomNode.setClassName(Fe.CLASS_NAME),this._domNode.appendChild(this._glyphMarginBackgroundDomNode)}dispose(){super.dispose()}getDomNode(){return this._domNode}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(129);return this._canUseLayerHinting=!t.get(28),this._contentLeft=i.contentLeft,this._glyphMarginLeft=i.glyphMarginLeft,this._glyphMarginWidth=i.glyphMarginWidth,!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollTopChanged}prepareRender(e){}render(e){this._domNode.setLayerHinting(this._canUseLayerHinting),this._domNode.setContain("strict");const t=e.scrollTop-e.bigNumbersDelta;this._domNode.setTop(-t);const i=Math.min(e.scrollHeight,1e6);this._domNode.setHeight(i),this._domNode.setWidth(this._contentLeft),this._glyphMarginBackgroundDomNode.setLeft(this._glyphMarginLeft),this._glyphMarginBackgroundDomNode.setWidth(this._glyphMarginWidth),this._glyphMarginBackgroundDomNode.setHeight(i)}}Fe.CLASS_NAME="glyph-margin",Fe.OUTER_CLASS_NAME="margin";var Be=i(21981),Ve=i(19106);class We{constructor(e,t,i){this._visibleTextAreaBrand=void 0,this.top=e,this.left=t,this.width=i}setWidth(e){return new We(this.top,this.left,e)}}const He=f.vU;class ze extends A{constructor(e,t,i){super(e),this._primaryCursorPosition=new se.L(1,1),this._primaryCursorVisibleRange=null,this._viewController=t,this._viewHelper=i,this._scrollLeft=0,this._scrollTop=0;const n=this._context.configuration.options,o=n.get(129);this._setAccessibilityOptions(n),this._contentLeft=o.contentLeft,this._contentWidth=o.contentWidth,this._contentHeight=o.height,this._fontInfo=n.get(43),this._lineHeight=n.get(58),this._emptySelectionClipboard=n.get(32),this._copyWithSyntaxHighlighting=n.get(21),this._visibleTextArea=null,this._selections=[new _.Y(1,1,1,1)],this._modelSelections=[new _.Y(1,1,1,1)],this._lastRenderPosition=null,this.textArea=(0,v.X)(document.createElement("textarea")),R.write(this.textArea,6),this.textArea.setClassName(`inputarea ${Ve.S}`),this.textArea.setAttribute("wrap","off"),this.textArea.setAttribute("autocorrect","off"),this.textArea.setAttribute("autocapitalize","off"),this.textArea.setAttribute("autocomplete","off"),this.textArea.setAttribute("spellcheck","false"),this.textArea.setAttribute("aria-label",this._getAriaLabel(n)),this.textArea.setAttribute("tabindex",String(n.get(111))),this.textArea.setAttribute("role","textbox"),this.textArea.setAttribute("aria-roledescription",l.N("editor","editor")),this.textArea.setAttribute("aria-multiline","true"),this.textArea.setAttribute("aria-haspopup","false"),this.textArea.setAttribute("aria-autocomplete","both"),n.get(30)&&n.get(80)&&this.textArea.setAttribute("readonly","true"),this.textAreaCover=(0,v.X)(document.createElement("div")),this.textAreaCover.setPosition("absolute");const s={getLineCount:()=>this._context.model.getLineCount(),getLineMaxColumn:e=>this._context.model.getLineMaxColumn(e),getValueInRange:(e,t)=>this._context.model.getValueInRange(e,t)},r={getDataToCopy:e=>{const t=this._context.model.getPlainTextToCopy(this._modelSelections,this._emptySelectionClipboard,b.ED),i=this._context.model.getEOL(),n=this._emptySelectionClipboard&&1===this._modelSelections.length&&this._modelSelections[0].isEmpty(),o=Array.isArray(t)?t:null,s=Array.isArray(t)?t.join(i):t;let r,a=null;if(e&&(ke.RA.forceCopyWithSyntaxHighlighting||this._copyWithSyntaxHighlighting&&s.length<65536)){const e=this._context.model.getRichTextToCopy(this._modelSelections,this._emptySelectionClipboard);e&&(r=e.html,a=e.mode)}return{isFromEmptySelection:n,multicursorText:o,text:s,html:r,mode:a}},getScreenReaderContent:e=>{if(1===this._accessibilitySupport){if(b.dz){const e=this._selections[0];if(e.isEmpty()){const t=e.getStartPosition();let i=this._getWordBeforePosition(t);if(0===i.length&&(i=this._getCharacterBeforePosition(t)),i.length>0)return new Me.un(i,i.length,i.length,t,t)}}return Me.un.EMPTY}if(f.Dt){const e=this._selections[0];if(e.isEmpty()){const t=e.getStartPosition(),[i,n]=this._getAndroidWordAtPosition(t);if(i.length>0)return new Me.un(i,n,n,t,t)}return Me.un.EMPTY}return Me.ee.fromEditorSelection(e,s,this._selections[0],this._accessibilityPageSize,0===this._accessibilitySupport)},deduceModelPosition:(e,t,i)=>this._context.model.deduceModelPositionRelativeToViewPosition(e,t,i)};this._textAreaInput=this._register(new ke.Fz(r,this.textArea)),this._register(this._textAreaInput.onKeyDown((e=>{this._viewController.emitKeyDown(e)}))),this._register(this._textAreaInput.onKeyUp((e=>{this._viewController.emitKeyUp(e)}))),this._register(this._textAreaInput.onPaste((e=>{let t=!1,i=null,n=null;e.metadata&&(t=this._emptySelectionClipboard&&!!e.metadata.isFromEmptySelection,i=void 0!==e.metadata.multicursorText?e.metadata.multicursorText:null,n=e.metadata.mode),this._viewController.paste(e.text,t,i,n)}))),this._register(this._textAreaInput.onCut((()=>{this._viewController.cut()}))),this._register(this._textAreaInput.onType((e=>{e.replacePrevCharCnt||e.replaceNextCharCnt||e.positionDelta?(Me.al&&console.log(` => compositionType: <<${e.text}>>, ${e.replacePrevCharCnt}, ${e.replaceNextCharCnt}, ${e.positionDelta}`),this._viewController.compositionType(e.text,e.replacePrevCharCnt,e.replaceNextCharCnt,e.positionDelta)):(Me.al&&console.log(` => type: <<${e.text}>>`),this._viewController.type(e.text))}))),this._register(this._textAreaInput.onSelectionChangeRequest((e=>{this._viewController.setSelection(e)}))),this._register(this._textAreaInput.onCompositionStart((e=>{const t=this._selections[0].startLineNumber,i=this._selections[0].startColumn+e.revealDeltaColumns;this._context.model.revealRange("keyboard",!0,new re.e(t,i,t,i),0,1);const n=this._viewHelper.visibleRangeForPositionRelativeToEditor(t,i);n&&(this._visibleTextArea=new We(this._context.viewLayout.getVerticalOffsetForLineNumber(t),n.left,He?0:1),this._render()),this.textArea.setClassName(`inputarea ${Ve.S} ime-input`),this._viewController.compositionStart(),this._context.model.onCompositionStart()}))),this._register(this._textAreaInput.onCompositionUpdate((e=>{this._visibleTextArea&&(this._visibleTextArea=this._visibleTextArea.setWidth(function(e,t){const i=document.createElement("canvas").getContext("2d");i.font=(n=t,o="normal",s=n.fontWeight,r=n.fontSize,a=n.lineHeight,l=n.fontFamily,`${o} normal ${s} ${r}px / ${a}px ${l}`);var n,o,s,r,a,l;const h=i.measureText(e);return f.vU?h.width+2:h.width}(e.data,this._fontInfo)),this._render())}))),this._register(this._textAreaInput.onCompositionEnd((()=>{this._visibleTextArea=null,this._render(),this.textArea.setClassName(`inputarea ${Ve.S}`),this._viewController.compositionEnd(),this._context.model.onCompositionEnd()}))),this._register(this._textAreaInput.onFocus((()=>{this._context.model.setHasFocus(!0)}))),this._register(this._textAreaInput.onBlur((()=>{this._context.model.setHasFocus(!1)})))}dispose(){super.dispose()}_getAndroidWordAtPosition(e){const t=this._context.model.getLineContent(e.lineNumber),i=(0,Be.u)('`~!@#$%^&*()-=+[{]}\\|;:",.<>/?');let n=!0,o=e.column,s=!0,r=e.column,a=0;for(;a<50&&(n||s);){if(n&&o<=1&&(n=!1),n){const e=t.charCodeAt(o-2);0!==i.get(e)?n=!1:o--}if(s&&r>t.length&&(s=!1),s){const e=t.charCodeAt(r-1);0!==i.get(e)?s=!1:r++}a++}return[t.substring(o-1,r-1),e.column-o]}_getWordBeforePosition(e){const t=this._context.model.getLineContent(e.lineNumber),i=(0,Be.u)(this._context.configuration.options.get(115));let n=e.column,o=0;for(;n>1;){const s=t.charCodeAt(n-2);if(0!==i.get(s)||o>50)return t.substring(n-1,e.column-1);o++,n--}return t.substring(0,e.column-1)}_getCharacterBeforePosition(e){if(e.column>1){const t=this._context.model.getLineContent(e.lineNumber).charAt(e.column-2);if(!Te.ZG(t.charCodeAt(0)))return t}return""}_getAriaLabel(e){return 1===e.get(2)?l.N("accessibilityOffAriaLabel","The editor is not accessible at this time. Press {0} for options.",b.IJ?"Shift+Alt+F1":"Alt+F1"):e.get(4)}_setAccessibilityOptions(e){this._accessibilitySupport=e.get(2);const t=e.get(3);2===this._accessibilitySupport&&t===j.BH.accessibilityPageSize.defaultValue?this._accessibilityPageSize=500:this._accessibilityPageSize=t}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(129);return this._setAccessibilityOptions(t),this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,this._contentHeight=i.height,this._fontInfo=t.get(43),this._lineHeight=t.get(58),this._emptySelectionClipboard=t.get(32),this._copyWithSyntaxHighlighting=t.get(21),this.textArea.setAttribute("aria-label",this._getAriaLabel(t)),this.textArea.setAttribute("tabindex",String(t.get(111))),(e.hasChanged(30)||e.hasChanged(80))&&(t.get(30)&&t.get(80)?this.textArea.setAttribute("readonly","true"):this.textArea.removeAttribute("readonly")),e.hasChanged(2)&&this._textAreaInput.writeScreenReaderContent("strategy changed"),!0}onCursorStateChanged(e){return this._selections=e.selections.slice(0),this._modelSelections=e.modelSelections.slice(0),this._textAreaInput.writeScreenReaderContent("selection changed"),!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return this._scrollLeft=e.scrollLeft,this._scrollTop=e.scrollTop,!0}onZonesChanged(e){return!0}isFocused(){return this._textAreaInput.isFocused()}focusTextArea(){this._textAreaInput.focusTextArea()}getLastRenderData(){return this._lastRenderPosition}setAriaOptions(e){e.activeDescendant?(this.textArea.setAttribute("aria-haspopup","true"),this.textArea.setAttribute("aria-autocomplete","list"),this.textArea.setAttribute("aria-activedescendant",e.activeDescendant)):(this.textArea.setAttribute("aria-haspopup","false"),this.textArea.setAttribute("aria-autocomplete","both"),this.textArea.removeAttribute("aria-activedescendant")),e.role&&this.textArea.setAttribute("role",e.role)}prepareRender(e){this._primaryCursorPosition=new se.L(this._selections[0].positionLineNumber,this._selections[0].positionColumn),this._primaryCursorVisibleRange=e.visibleRangeForPosition(this._primaryCursorPosition)}render(e){this._textAreaInput.writeScreenReaderContent("render"),this._render()}_render(){if(this._visibleTextArea)return void this._renderInsideEditor(null,this._visibleTextArea.top-this._scrollTop,this._contentLeft+this._visibleTextArea.left-this._scrollLeft,this._visibleTextArea.width,this._lineHeight);if(!this._primaryCursorVisibleRange)return void this._renderAtTopLeft();const e=this._contentLeft+this._primaryCursorVisibleRange.left-this._scrollLeft;if(ethis._contentLeft+this._contentWidth)return void this._renderAtTopLeft();const t=this._context.viewLayout.getVerticalOffsetForLineNumber(this._selections[0].positionLineNumber)-this._scrollTop;t<0||t>this._contentHeight?this._renderAtTopLeft():b.dz?this._renderInsideEditor(this._primaryCursorPosition,t,e,He?0:1,this._lineHeight):this._renderInsideEditor(this._primaryCursorPosition,t,e,He?0:1,He?0:1)}_renderInsideEditor(e,t,i,n,o){this._lastRenderPosition=e;const s=this.textArea,r=this.textAreaCover;p.V.applyFontInfo(s,this._fontInfo),s.setTop(t),s.setLeft(i),s.setWidth(n),s.setHeight(o),r.setTop(0),r.setLeft(0),r.setWidth(0),r.setHeight(0)}_renderAtTopLeft(){this._lastRenderPosition=null;const e=this.textArea,t=this.textAreaCover;if(p.V.applyFontInfo(e,this._fontInfo),e.setTop(0),e.setLeft(0),t.setTop(0),t.setLeft(0),He)return e.setWidth(0),e.setHeight(0),t.setWidth(0),void t.setHeight(0);e.setWidth(1),e.setHeight(1),t.setWidth(1),t.setHeight(1);const i=this._context.configuration.options;i.get(49)?t.setClassName("monaco-editor-background textAreaCover "+Fe.OUTER_CLASS_NAME):0!==i.get(59).renderType?t.setClassName("monaco-editor-background textAreaCover "+Pe.CLASS_NAME):t.setClassName("monaco-editor-background textAreaCover")}}var Ke=i(46343);class Ue{constructor(e,t,i,n){this.configuration=e,this.viewModel=t,this.userInputEvents=i,this.commandDelegate=n}paste(e,t,i,n){this.commandDelegate.paste(e,t,i,n)}type(e){this.commandDelegate.type(e)}compositionType(e,t,i,n){this.commandDelegate.compositionType(e,t,i,n)}compositionStart(){this.commandDelegate.startComposition()}compositionEnd(){this.commandDelegate.endComposition()}cut(){this.commandDelegate.cut()}setSelection(e){Ke.CoreNavigationCommands.SetSelection.runCoreEditorCommand(this.viewModel,{source:"keyboard",selection:e})}_validateViewColumn(e){const t=this.viewModel.getLineMinColumn(e.lineNumber);return e.column=4?this._selectAll():3===e.mouseDownCount?this._hasMulticursorModifier(e)?e.inSelectionMode?this._lastCursorLineSelectDrag(e.position):this._lastCursorLineSelect(e.position):e.inSelectionMode?this._lineSelectDrag(e.position):this._lineSelect(e.position):2===e.mouseDownCount?this._hasMulticursorModifier(e)?this._lastCursorWordSelect(e.position):e.inSelectionMode?this._wordSelectDrag(e.position):this._wordSelect(e.position):this._hasMulticursorModifier(e)?this._hasNonMulticursorModifier(e)||(e.shiftKey?this._columnSelect(e.position,e.mouseColumn,!0):e.inSelectionMode?this._lastCursorMoveToSelect(e.position):this._createCursor(e.position,!1)):e.inSelectionMode?e.altKey||n?this._columnSelect(e.position,e.mouseColumn,!0):this._moveToSelect(e.position):this.moveTo(e.position)}_usualArgs(e){return e=this._validateViewColumn(e),{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e}}moveTo(e){Ke.CoreNavigationCommands.MoveTo.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_moveToSelect(e){Ke.CoreNavigationCommands.MoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_columnSelect(e,t,i){e=this._validateViewColumn(e),Ke.CoreNavigationCommands.ColumnSelect.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e,mouseColumn:t,doColumnSelect:i})}_createCursor(e,t){e=this._validateViewColumn(e),Ke.CoreNavigationCommands.CreateCursor.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e,wholeLine:t})}_lastCursorMoveToSelect(e){Ke.CoreNavigationCommands.LastCursorMoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_wordSelect(e){Ke.CoreNavigationCommands.WordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_wordSelectDrag(e){Ke.CoreNavigationCommands.WordSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_lastCursorWordSelect(e){Ke.CoreNavigationCommands.LastCursorWordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_lineSelect(e){Ke.CoreNavigationCommands.LineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_lineSelectDrag(e){Ke.CoreNavigationCommands.LineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_lastCursorLineSelect(e){Ke.CoreNavigationCommands.LastCursorLineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_lastCursorLineSelectDrag(e){Ke.CoreNavigationCommands.LastCursorLineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_selectAll(){Ke.CoreNavigationCommands.SelectAll.runCoreEditorCommand(this.viewModel,{source:"mouse"})}_convertViewToModelPosition(e){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(e)}emitKeyDown(e){this.userInputEvents.emitKeyDown(e)}emitKeyUp(e){this.userInputEvents.emitKeyUp(e)}emitContextMenu(e){this.userInputEvents.emitContextMenu(e)}emitMouseMove(e){this.userInputEvents.emitMouseMove(e)}emitMouseLeave(e){this.userInputEvents.emitMouseLeave(e)}emitMouseUp(e){this.userInputEvents.emitMouseUp(e)}emitMouseDown(e){this.userInputEvents.emitMouseDown(e)}emitMouseDrag(e){this.userInputEvents.emitMouseDrag(e)}emitMouseDrop(e){this.userInputEvents.emitMouseDrop(e)}emitMouseDropCanceled(){this.userInputEvents.emitMouseDropCanceled()}emitMouseWheel(e){this.userInputEvents.emitMouseWheel(e)}}class $e{constructor(e){this.onKeyDown=null,this.onKeyUp=null,this.onContextMenu=null,this.onMouseMove=null,this.onMouseLeave=null,this.onMouseDown=null,this.onMouseUp=null,this.onMouseDrag=null,this.onMouseDrop=null,this.onMouseDropCanceled=null,this.onMouseWheel=null,this._coordinatesConverter=e}emitKeyDown(e){this.onKeyDown&&this.onKeyDown(e)}emitKeyUp(e){this.onKeyUp&&this.onKeyUp(e)}emitContextMenu(e){this.onContextMenu&&this.onContextMenu(this._convertViewToModelMouseEvent(e))}emitMouseMove(e){this.onMouseMove&&this.onMouseMove(this._convertViewToModelMouseEvent(e))}emitMouseLeave(e){this.onMouseLeave&&this.onMouseLeave(this._convertViewToModelMouseEvent(e))}emitMouseDown(e){this.onMouseDown&&this.onMouseDown(this._convertViewToModelMouseEvent(e))}emitMouseUp(e){this.onMouseUp&&this.onMouseUp(this._convertViewToModelMouseEvent(e))}emitMouseDrag(e){this.onMouseDrag&&this.onMouseDrag(this._convertViewToModelMouseEvent(e))}emitMouseDrop(e){this.onMouseDrop&&this.onMouseDrop(this._convertViewToModelMouseEvent(e))}emitMouseDropCanceled(){this.onMouseDropCanceled&&this.onMouseDropCanceled()}emitMouseWheel(e){this.onMouseWheel&&this.onMouseWheel(e)}_convertViewToModelMouseEvent(e){return e.target?{event:e.event,target:this._convertViewToModelMouseTarget(e.target)}:e}_convertViewToModelMouseTarget(e){return $e.convertViewToModelMouseTarget(e,this._coordinatesConverter)}static convertViewToModelMouseTarget(e,t){return new je(e.element,e.type,e.mouseColumn,e.position?t.convertViewPositionToModelPosition(e.position):null,e.range?t.convertViewRangeToModelRange(e.range):null,e.detail)}}class je{constructor(e,t,i,n,o,s){this.element=e,this.type=t,this.mouseColumn=i,this.position=n,this.range=o,this.detail=s}toString(){return ue.toString(this)}}var qe,Ge=i(48772);class Ze{constructor(e){this._createLine=e,this._set(1,[])}flush(){this._set(1,[])}_set(e,t){this._lines=t,this._rendLineNumberStart=e}_get(){return{rendLineNumberStart:this._rendLineNumberStart,lines:this._lines}}getStartLineNumber(){return this._rendLineNumberStart}getEndLineNumber(){return this._rendLineNumberStart+this._lines.length-1}getCount(){return this._lines.length}getLine(e){const t=e-this._rendLineNumberStart;if(t<0||t>=this._lines.length)throw new Error("Illegal value for lineNumber");return this._lines[t]}onLinesDeleted(e,t){if(0===this.getCount())return null;const i=this.getStartLineNumber(),n=this.getEndLineNumber();if(tn)return null;let o=0,s=0;for(let r=i;r<=n;r++){const i=r-this._rendLineNumberStart;e<=r&&r<=t&&(0===s?(o=i,s=1):s++)}if(e=i&&s<=n&&(this._lines[s-this._rendLineNumberStart].onContentChanged(),o=!0);return o}onLinesInserted(e,t){if(0===this.getCount())return null;const i=t-e+1,n=this.getStartLineNumber(),o=this.getEndLineNumber();if(e<=n)return this._rendLineNumberStart+=i,null;if(e>o)return null;if(i+e>o){return this._lines.splice(e-this._rendLineNumberStart,o-e+1)}const s=[];for(let e=0;ei)continue;const r=Math.max(t,s.fromLineNumber),a=Math.min(i,s.toLineNumber);for(let e=r;e<=a;e++){const t=e-this._rendLineNumberStart;this._lines[t].onTokensChanged(),n=!0}}return n}}class Qe{constructor(e){this._host=e,this.domNode=this._createDomNode(),this._linesCollection=new Ze((()=>this._host.createVisibleLine()))}_createDomNode(){const e=(0,v.X)(document.createElement("div"));return e.setClassName("view-layer"),e.setPosition("absolute"),e.domNode.setAttribute("role","presentation"),e.domNode.setAttribute("aria-hidden","true"),e}onConfigurationChanged(e){return!!e.hasChanged(129)}onFlushed(e){return this._linesCollection.flush(),!0}onLinesChanged(e){return this._linesCollection.onLinesChanged(e.fromLineNumber,e.toLineNumber)}onLinesDeleted(e){const t=this._linesCollection.onLinesDeleted(e.fromLineNumber,e.toLineNumber);if(t)for(let e=0,i=t.length;et){const e=t,s=Math.min(i,o.rendLineNumberStart-1);e<=s&&(this._insertLinesBefore(o,e,s,n,t),o.linesLength+=s-e+1)}else if(o.rendLineNumberStart0&&(this._removeLinesBefore(o,e),o.linesLength-=e)}if(o.rendLineNumberStart=t,o.rendLineNumberStart+o.linesLength-1i){const e=Math.max(0,i-o.rendLineNumberStart+1),t=o.linesLength-1-e+1;t>0&&(this._removeLinesAfter(o,t),o.linesLength-=t)}return this._finishRendering(o,!1,n),o}_renderUntouchedLines(e,t,i,n,o){const s=e.rendLineNumberStart,r=e.lines;for(let e=t;e<=i;e++){const t=s+e;r[e].layoutLine(t,n[t-o])}}_insertLinesBefore(e,t,i,n,o){const s=[];let r=0;for(let e=t;e<=i;e++)s[r++]=this.host.createVisibleLine();e.lines=s.concat(e.lines)}_removeLinesBefore(e,t){for(let i=0;i=0;t--){const i=e.lines[t];n[t]&&(i.setDomNode(s),s=s.previousSibling)}}_finishRenderingInvalidLines(e,t,i){const n=document.createElement("div");Ye._ttPolicy&&(t=Ye._ttPolicy.createHTML(t)),n.innerHTML=t;for(let t=0;te}),Ye._sb=(0,Ge.l$)(1e5);class Xe extends A{constructor(e){super(e),this._visibleLines=new Qe(this),this.domNode=this._visibleLines.domNode,this._dynamicOverlays=[],this._isFocused=!1,this.domNode.setClassName("view-overlays")}shouldRender(){if(super.shouldRender())return!0;for(let e=0,t=this._dynamicOverlays.length;ee.shouldRender()));for(let i=0,n=t.length;i'),n.appendASCIIString(o),n.appendASCIIString(""),!0)}layoutLine(e,t){this._domNode&&(this._domNode.setTop(t),this._domNode.setHeight(this._lineHeight))}}class et extends Xe{constructor(e){super(e);const t=this._context.configuration.options.get(129);this._contentWidth=t.contentWidth,this.domNode.setHeight(0)}onConfigurationChanged(e){const t=this._context.configuration.options.get(129);return this._contentWidth=t.contentWidth,super.onConfigurationChanged(e)||!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollWidthChanged}_viewOverlaysRender(e){super._viewOverlaysRender(e),this.domNode.setWidth(Math.max(e.scrollWidth,this._contentWidth))}}class tt extends Xe{constructor(e){super(e);const t=this._context.configuration.options,i=t.get(129);this._contentLeft=i.contentLeft,this.domNode.setClassName("margin-view-overlays"),this.domNode.setWidth(1),p.V.applyFontInfo(this.domNode,t.get(43))}onConfigurationChanged(e){const t=this._context.configuration.options;p.V.applyFontInfo(this.domNode,t.get(43));const i=t.get(129);return this._contentLeft=i.contentLeft,super.onConfigurationChanged(e)||!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollHeightChanged}_viewOverlaysRender(e){super._viewOverlaysRender(e);const t=Math.min(e.scrollHeight,1e6);this.domNode.setHeight(t),this.domNode.setWidth(this._contentLeft)}}class it{constructor(e,t){this._coordinateBrand=void 0,this.top=e,this.left=t}}class nt extends A{constructor(e,t){super(e),this._viewDomNode=t,this._widgets={},this.domNode=(0,v.X)(document.createElement("div")),R.write(this.domNode,1),this.domNode.setClassName("contentWidgets"),this.domNode.setPosition("absolute"),this.domNode.setTop(0),this.overflowingContentWidgetsDomNode=(0,v.X)(document.createElement("div")),R.write(this.overflowingContentWidgetsDomNode,2),this.overflowingContentWidgetsDomNode.setClassName("overflowingContentWidgets")}dispose(){super.dispose(),this._widgets={}}onConfigurationChanged(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].onConfigurationChanged(e);return!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLineMappingChanged(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].onLineMappingChanged(e);return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return!0}onZonesChanged(e){return!0}addWidget(e){const t=new ot(this._context,this._viewDomNode,e);this._widgets[t.id]=t,t.allowEditorOverflow?this.overflowingContentWidgetsDomNode.appendChild(t.domNode):this.domNode.appendChild(t.domNode),this.setShouldRender()}setWidgetPosition(e,t,i){this._widgets[e.getId()].setPosition(t,i),this.setShouldRender()}removeWidget(e){const t=e.getId();if(this._widgets.hasOwnProperty(t)){const e=this._widgets[t];delete this._widgets[t];const i=e.domNode.domNode;i.parentNode.removeChild(i),i.removeAttribute("monaco-visible-content-widget"),this.setShouldRender()}}shouldSuppressMouseDownOnWidget(e){return!!this._widgets.hasOwnProperty(e)&&this._widgets[e].suppressMouseDown}onBeforeRender(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].onBeforeRender(e)}prepareRender(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].prepareRender(e)}render(e){const t=Object.keys(this._widgets);for(const i of t)this._widgets[i].render(e)}}class ot{constructor(e,t,i){this._context=e,this._viewDomNode=t,this._actual=i,this.domNode=(0,v.X)(this._actual.getDomNode()),this.id=this._actual.getId(),this.allowEditorOverflow=this._actual.allowEditorOverflow||!1,this.suppressMouseDown=this._actual.suppressMouseDown||!1;const n=this._context.configuration.options,o=n.get(129);this._fixedOverflowWidgets=n.get(36),this._contentWidth=o.contentWidth,this._contentLeft=o.contentLeft,this._lineHeight=n.get(58),this._range=null,this._viewRange=null,this._preference=[],this._cachedDomNodeClientWidth=-1,this._cachedDomNodeClientHeight=-1,this._maxWidth=this._getMaxWidth(),this._isVisible=!1,this._renderData=null,this.domNode.setPosition(this._fixedOverflowWidgets&&this.allowEditorOverflow?"fixed":"absolute"),this.domNode.setVisibility("hidden"),this.domNode.setAttribute("widgetId",this.id),this.domNode.setMaxWidth(this._maxWidth)}onConfigurationChanged(e){const t=this._context.configuration.options;if(this._lineHeight=t.get(58),e.hasChanged(129)){const e=t.get(129);this._contentLeft=e.contentLeft,this._contentWidth=e.contentWidth,this._maxWidth=this._getMaxWidth()}}onLineMappingChanged(e){this._setPosition(this._range)}_setPosition(e){if(this._range=e,this._viewRange=null,this._range){const e=this._context.model.validateModelRange(this._range);(this._context.model.coordinatesConverter.modelPositionIsVisible(e.getStartPosition())||this._context.model.coordinatesConverter.modelPositionIsVisible(e.getEndPosition()))&&(this._viewRange=this._context.model.coordinatesConverter.convertModelRangeToViewRange(e))}}_getMaxWidth(){return this.allowEditorOverflow?window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth:this._contentWidth}setPosition(e,t){this._setPosition(e),this._preference=t,this._cachedDomNodeClientWidth=-1,this._cachedDomNodeClientHeight=-1}_layoutBoxInViewport(e,t,i,n,o){const s=e.top,r=s,a=t.top+this._lineHeight,l=s-n,h=r>=n,d=a,c=o.viewportHeight-a>=n;let u=e.left,g=t.left;return u+i>o.scrollLeft+o.viewportWidth&&(u=o.scrollLeft+o.viewportWidth-i),g+i>o.scrollLeft+o.viewportWidth&&(g=o.scrollLeft+o.viewportWidth-i),us){const e=r-(s-n);r-=e,i-=e}if(r=22,_=d+n<=c.height-22;return this._fixedOverflowWidgets?{fitsAbove:f,aboveTop:Math.max(l,22),aboveLeft:g,fitsBelow:_,belowTop:d,belowLeft:m}:{fitsAbove:f,aboveTop:s,aboveLeft:u,fitsBelow:_,belowTop:r,belowLeft:p}}_prepareRenderWidgetAtExactPositionOverflowing(e){return new it(e.top,e.left+this._contentLeft)}_getTopAndBottomLeft(e){if(!this._viewRange)return[null,null];const t=e.linesVisibleRangesForRange(this._viewRange,!1);if(!t||0===t.length)return[null,null];let i=t[0],n=t[0];for(const e of t)e.lineNumbern.lineNumber&&(n=e);let o=1073741824;for(const e of i.ranges)e.lefte.endLineNumber||this.domNode.setMaxWidth(this._maxWidth))}prepareRender(e){this._renderData=this._prepareRenderWidget(e)}render(e){if(!this._renderData)return this._isVisible&&(this.domNode.removeAttribute("monaco-visible-content-widget"),this._isVisible=!1,this.domNode.setVisibility("hidden")),void("function"==typeof this._actual.afterRender&&st(this._actual.afterRender,this._actual,null));this.allowEditorOverflow?(this.domNode.setTop(this._renderData.coordinate.top),this.domNode.setLeft(this._renderData.coordinate.left)):(this.domNode.setTop(this._renderData.coordinate.top+e.scrollTop-e.bigNumbersDelta),this.domNode.setLeft(this._renderData.coordinate.left)),this._isVisible||(this.domNode.setVisibility("inherit"),this.domNode.setAttribute("monaco-visible-content-widget","true"),this._isVisible=!0),"function"==typeof this._actual.afterRender&&st(this._actual.afterRender,this._actual,this._renderData.position)}}function st(e,t,...i){try{return e.call(t,...i)}catch(e){return null}}var rt=i(43506);let at=!0;class lt extends Ae{constructor(e){super(),this._context=e;const t=this._context.configuration.options,i=t.get(129);this._lineHeight=t.get(58),this._renderLineHighlight=t.get(84),this._renderLineHighlightOnlyWhenFocus=t.get(85),this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,this._selectionIsEmpty=!0,this._focused=!1,this._cursorLineNumbers=[1],this._selections=[new _.Y(1,1,1,1)],this._renderData=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}_readFromSelections(){let e=!1;const t=at?this._selections.slice(0,1):this._selections,i=t.map((e=>e.positionLineNumber));i.sort(((e,t)=>e-t)),rt.fS(this._cursorLineNumbers,i)||(this._cursorLineNumbers=i,e=!0);const n=t.every((e=>e.isEmpty()));return this._selectionIsEmpty!==n&&(this._selectionIsEmpty=n,e=!0),e}onThemeChanged(e){return this._readFromSelections()}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(129);return this._lineHeight=t.get(58),this._renderLineHighlight=t.get(84),this._renderLineHighlightOnlyWhenFocus=t.get(85),this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,!0}onCursorStateChanged(e){return this._selections=e.selections,this._readFromSelections()}onFlushed(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollWidthChanged||e.scrollTopChanged}onZonesChanged(e){return!0}onFocusChanged(e){return!!this._renderLineHighlightOnlyWhenFocus&&(this._focused=e.isFocused,!0)}prepareRender(e){if(!this._shouldRenderThis())return void(this._renderData=null);const t=this._renderOne(e),i=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,o=this._cursorLineNumbers.length;let s=0;const r=[];for(let e=i;e<=n;e++){const n=e-i;for(;s=this._renderData.length?"":this._renderData[i]}}class ht extends lt{_renderOne(e){return``}_shouldRenderThis(){return("line"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&this._selectionIsEmpty&&(!this._renderLineHighlightOnlyWhenFocus||this._focused)}_shouldRenderOther(){return("gutter"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&(!this._renderLineHighlightOnlyWhenFocus||this._focused)}}class dt extends lt{_renderOne(e){return``}_shouldRenderMargin(){return("gutter"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&(!this._renderLineHighlightOnlyWhenFocus||this._focused)}_shouldRenderThis(){return!0}_shouldRenderOther(){return("line"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&this._selectionIsEmpty&&(!this._renderLineHighlightOnlyWhenFocus||this._focused)}}(0,Oe.Ic)(((e,t)=>{at=!1;const i=e.getColor(Re.Kh);if(i&&(t.addRule(`.monaco-editor .view-overlays .current-line { background-color: ${i}; }`),t.addRule(`.monaco-editor .margin-view-overlays .current-line-margin { background-color: ${i}; border: none; }`)),!i||i.isTransparent()||e.defines(Re.Mm)){const i=e.getColor(Re.Mm);i&&(at=!0,t.addRule(`.monaco-editor .view-overlays .current-line { border: 2px solid ${i}; }`),t.addRule(`.monaco-editor .margin-view-overlays .current-line-margin { border: 2px solid ${i}; }`),"hc"===e.type&&(t.addRule(".monaco-editor .view-overlays .current-line { border-width: 1px; }"),t.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border-width: 1px; }")))}}));class ct extends Ae{constructor(e){super(),this._context=e;const t=this._context.configuration.options;this._lineHeight=t.get(58),this._typicalHalfwidthCharacterWidth=t.get(43).typicalHalfwidthCharacterWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._lineHeight=t.get(58),this._typicalHalfwidthCharacterWidth=t.get(43).typicalHalfwidthCharacterWidth,!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged||e.scrollWidthChanged}onZonesChanged(e){return!0}prepareRender(e){const t=e.getDecorationsInViewport();let i=[],n=0;for(let e=0,o=t.length;e{if(e.options.zIndext.options.zIndex)return 1;const i=e.options.className,n=t.options.className;return in?1:re.e.compareRangesUsingStarts(e.range,t.range)}));const o=e.visibleRange.startLineNumber,s=e.visibleRange.endLineNumber,r=[];for(let e=o;e<=s;e++){r[e-o]=""}this._renderWholeLineDecorations(e,i,r),this._renderNormalDecorations(e,i,r),this._renderResult=r}_renderWholeLineDecorations(e,t,i){const n=String(this._lineHeight),o=e.visibleRange.startLineNumber,s=e.visibleRange.endLineNumber;for(let e=0,r=t.length;e',l=Math.max(r.range.startLineNumber,o),h=Math.min(r.range.endLineNumber,s);for(let e=l;e<=h;e++){i[e-o]+=a}}}_renderNormalDecorations(e,t,i){const n=String(this._lineHeight),o=e.visibleRange.startLineNumber;let s=null,r=!1,a=null;for(let l=0,h=t.length;l';r[l]+=s}}}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}var ut=i(17671),gt=i(44350);class pt extends A{constructor(e,t,i,n){super(e);const o=this._context.configuration.options,s=o.get(91),r=o.get(66),a=o.get(34),l=o.get(94),d={listenOnDomNode:i.domNode,className:"editor-scrollable "+(0,Oe.m6)(e.theme.type),useShadows:!1,lazyRender:!0,vertical:s.vertical,horizontal:s.horizontal,verticalHasArrows:s.verticalHasArrows,horizontalHasArrows:s.horizontalHasArrows,verticalScrollbarSize:s.verticalScrollbarSize,verticalSliderSize:s.verticalSliderSize,horizontalScrollbarSize:s.horizontalScrollbarSize,horizontalSliderSize:s.horizontalSliderSize,handleMouseWheel:s.handleMouseWheel,alwaysConsumeMouseWheel:s.alwaysConsumeMouseWheel,arrowSize:s.arrowSize,mouseWheelScrollSensitivity:r,fastScrollSensitivity:a,scrollPredominantAxis:l,scrollByPage:s.scrollByPage};this.scrollbar=this._register(new ut.$Z(t.domNode,d,this._context.viewLayout.getScrollable())),R.write(this.scrollbar.getDomNode(),5),this.scrollbarDomNode=(0,v.X)(this.scrollbar.getDomNode()),this.scrollbarDomNode.setPosition("absolute"),this._setLayout();const c=(e,t,i)=>{const n={};if(t){const t=e.scrollTop;t&&(n.scrollTop=this._context.viewLayout.getCurrentScrollTop()+t,e.scrollTop=0)}if(i){const t=e.scrollLeft;t&&(n.scrollLeft=this._context.viewLayout.getCurrentScrollLeft()+t,e.scrollLeft=0)}this._context.model.setScrollPosition(n,1)};this._register(h.nm(i.domNode,"scroll",(e=>c(i.domNode,!0,!0)))),this._register(h.nm(t.domNode,"scroll",(e=>c(t.domNode,!0,!1)))),this._register(h.nm(n.domNode,"scroll",(e=>c(n.domNode,!0,!1)))),this._register(h.nm(this.scrollbarDomNode.domNode,"scroll",(e=>c(this.scrollbarDomNode.domNode,!0,!1))))}dispose(){super.dispose()}_setLayout(){const e=this._context.configuration.options,t=e.get(129);this.scrollbarDomNode.setLeft(t.contentLeft);"right"===e.get(64).side?this.scrollbarDomNode.setWidth(t.contentWidth+t.minimap.minimapWidth):this.scrollbarDomNode.setWidth(t.contentWidth),this.scrollbarDomNode.setHeight(t.height)}getOverviewRulerLayoutInfo(){return this.scrollbar.getOverviewRulerLayoutInfo()}getDomNode(){return this.scrollbarDomNode}delegateVerticalScrollbarMouseDown(e){this.scrollbar.delegateVerticalScrollbarMouseDown(e)}onConfigurationChanged(e){if(e.hasChanged(91)||e.hasChanged(66)||e.hasChanged(34)){const e=this._context.configuration.options,t=e.get(91),i=e.get(66),n=e.get(34),o=e.get(94),s={vertical:t.vertical,horizontal:t.horizontal,verticalScrollbarSize:t.verticalScrollbarSize,horizontalScrollbarSize:t.horizontalScrollbarSize,scrollByPage:t.scrollByPage,handleMouseWheel:t.handleMouseWheel,mouseWheelScrollSensitivity:i,fastScrollSensitivity:n,scrollPredominantAxis:o};this.scrollbar.updateOptions(s)}return e.hasChanged(129)&&this._setLayout(),!0}onScrollChanged(e){return!0}onThemeChanged(e){return this.scrollbar.updateClassName("editor-scrollable "+(0,Oe.m6)(this._context.theme.type)),!0}prepareRender(e){}render(e){this.scrollbar.renderNow()}}(0,Oe.Ic)(((e,t)=>{const i=e.getColor(gt._w);i&&t.addRule(`\n\t\t\t.monaco-scrollable-element > .shadow.top {\n\t\t\t\tbox-shadow: ${i} 0 6px 6px -6px inset;\n\t\t\t}\n\n\t\t\t.monaco-scrollable-element > .shadow.left {\n\t\t\t\tbox-shadow: ${i} 6px 0 6px -6px inset;\n\t\t\t}\n\n\t\t\t.monaco-scrollable-element > .shadow.top.left {\n\t\t\t\tbox-shadow: ${i} 6px 6px 6px -6px inset;\n\t\t\t}\n\t\t`);const n=e.getColor(gt.et);n&&t.addRule(`\n\t\t\t.monaco-scrollable-element > .scrollbar > .slider {\n\t\t\t\tbackground: ${n};\n\t\t\t}\n\t\t`);const o=e.getColor(gt.AB);o&&t.addRule(`\n\t\t\t.monaco-scrollable-element > .scrollbar > .slider:hover {\n\t\t\t\tbackground: ${o};\n\t\t\t}\n\t\t`);const s=e.getColor(gt.yn);s&&t.addRule(`\n\t\t\t.monaco-scrollable-element > .scrollbar > .slider.active {\n\t\t\t\tbackground: ${s};\n\t\t\t}\n\t\t`)}));class mt{constructor(e,t,i){this._decorationToRenderBrand=void 0,this.startLineNumber=+e,this.endLineNumber=+t,this.className=String(i)}}class ft extends Ae{_render(e,t,i){const n=[];for(let i=e;i<=t;i++){n[i-e]=[]}if(0===i.length)return n;i.sort(((e,t)=>e.className===t.className?e.startLineNumber===t.startLineNumber?e.endLineNumber-t.endLineNumber:e.startLineNumber-t.startLineNumber:e.className',r=[];for(let e=t;e<=i;e++){const i=e-t,o=n[i];0===o.length?r[i]="":r[i]='=this._renderResult.length?"":this._renderResult[i]}}var vt=i(51682),bt=i(31276),Ct=i(72999);class wt extends Ae{constructor(e){super(),this._context=e,this._primaryPosition=null;const t=this._context.configuration.options,i=t.get(130),n=t.get(43);this._lineHeight=t.get(58),this._spaceWidth=n.spaceWidth,this._maxIndentLeft=-1===i.wrappingColumn?-1:i.wrappingColumn*n.typicalHalfwidthCharacterWidth,this._bracketPairGuideOptions=t.get(13),this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(130),n=t.get(43);return this._lineHeight=t.get(58),this._spaceWidth=n.spaceWidth,this._maxIndentLeft=-1===i.wrappingColumn?-1:i.wrappingColumn*n.typicalHalfwidthCharacterWidth,this._bracketPairGuideOptions=t.get(13),!0}onCursorStateChanged(e){var t;const i=e.selections[0].getPosition();return!(null===(t=this._primaryPosition)||void 0===t?void 0:t.equals(i))&&(this._primaryPosition=i,!0)}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}onLanguageConfigurationChanged(e){return!0}prepareRender(e){var t,i,n,o;if(!this._bracketPairGuideOptions.indentation&&!1===this._bracketPairGuideOptions.bracketPairs)return void(this._renderResult=null);const s=e.visibleRange.startLineNumber,r=e.visibleRange.endLineNumber,a=e.scrollWidth,l=this._lineHeight,h=this._primaryPosition,d=this.getGuidesByLine(s,r,h),c=[];for(let h=s;h<=r;h++){const r=h-s,u=d[r];let g="";const p=null!==(i=null===(t=e.visibleRangeForPosition(new se.L(h,1)))||void 0===t?void 0:t.left)&&void 0!==i?i:0;for(const t of u){const i=p+(t.visibleColumn-1)*this._spaceWidth;if(i>a||this._maxIndentLeft>0&&i>this._maxIndentLeft)break;const s=t.horizontalLine?t.horizontalLine.top?"horizontal-top":"horizontal-bottom":"vertical",r=t.horizontalLine?(null!==(o=null===(n=e.visibleRangeForPosition(new se.L(h,t.horizontalLine.endColumn)))||void 0===n?void 0:n.left)&&void 0!==o?o:i+this._spaceWidth)-i:this._spaceWidth;g+=`
`}c[r]=g}this._renderResult=c}getGuidesByLine(e,t,i){const n=!1!==this._bracketPairGuideOptions.bracketPairs?this._context.model.getBracketGuidesInRangeByLine(e,t,i,{highlightActive:this._bracketPairGuideOptions.highlightActiveBracketPair,horizontalGuides:!0===this._bracketPairGuideOptions.bracketPairsHorizontal?vt.s6.Enabled:"active"===this._bracketPairGuideOptions.bracketPairsHorizontal?vt.s6.EnabledForActive:vt.s6.Disabled,includeInactive:!0===this._bracketPairGuideOptions.bracketPairs}):null,o=this._bracketPairGuideOptions.indentation?this._context.model.getLinesIndentGuides(e,t):null;let s=0,r=0,a=0;if(this._bracketPairGuideOptions.highlightActiveIndentation&&i){const n=this._context.model.getActiveIndentGuide(i.lineNumber,e,t);s=n.startLineNumber,r=n.endLineNumber,a=n.indent}const{indentSize:l}=this._context.model.getTextModelOptions(),h=[];for(let i=e;i<=t;i++){const t=new Array;h.push(t);const d=n?n[i-e]:[],c=new rt.H9(d),u=o?o[i-e]:[];for(let e=1;e<=u;e++){const n=(e-1)*l+1,o=0===d.length&&s<=i&&i<=r&&e===a;t.push(...c.takeWhile((e=>e.visibleColumn
!0))||[])}return h}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}function St(e){if(!e||!e.isTransparent())return e}(0,Oe.Ic)(((e,t)=>{const i=e.getColor(Re.tR);i&&t.addRule(`.monaco-editor .lines-content .core-guide-indent { box-shadow: 1px 0 0 0 ${i} inset; }`);const n=e.getColor(Re.Ym)||i;n&&t.addRule(`.monaco-editor .lines-content .core-guide-indent-active { box-shadow: 1px 0 0 0 ${n} inset; }`);const o=[{bracketColor:Re.zJ,guideColor:Re.oV,guideColorActive:Re.Qb},{bracketColor:Re.Vs,guideColor:Re.m$,guideColorActive:Re.m3},{bracketColor:Re.CE,guideColor:Re.DS,guideColorActive:Re.To},{bracketColor:Re.UP,guideColor:Re.lS,guideColorActive:Re.L7},{bracketColor:Re.r0,guideColor:Re.Jn,guideColorActive:Re.HV},{bracketColor:Re.m1,guideColor:Re.YF,guideColorActive:Re.f9}],s=new bt.WE;let r=o.map((t=>{var i,n;const o=e.getColor(t.bracketColor),s=e.getColor(t.guideColor),r=e.getColor(t.guideColorActive),a=St(null!==(i=St(s))&&void 0!==i?i:null==o?void 0:o.transparent(.3)),l=St(null!==(n=St(r))&&void 0!==n?n:o);if(a&&l)return{guideColor:a,guideColorActive:l}})).filter(Ct.$K);if(r.length>0){for(let e=0;e<30;e++){const i=r[e%r.length];t.addRule(`.monaco-editor .${s.getInlineClassNameOfLevel(e).replace(/ /g,".")} { --guide-color: ${i.guideColor}; --guide-color-active: ${i.guideColorActive}; }`)}t.addRule(".monaco-editor .vertical { box-shadow: 1px 0 0 0 var(--guide-color) inset; }"),t.addRule(".monaco-editor .horizontal-top { border-top: 1px solid var(--guide-color); }"),t.addRule(".monaco-editor .horizontal-bottom { border-bottom: 1px solid var(--guide-color); }"),t.addRule(`.monaco-editor .vertical.${s.activeClassName} { box-shadow: 1px 0 0 0 var(--guide-color-active) inset; }`),t.addRule(`.monaco-editor .horizontal-top.${s.activeClassName} { border-top: 1px solid var(--guide-color-active); }`),t.addRule(`.monaco-editor .horizontal-bottom.${s.activeClassName} { border-bottom: 1px solid var(--guide-color-active); }`)}}));class yt{constructor(){this._currentVisibleRange=new re.e(1,1,1,1)}getCurrentVisibleRange(){return this._currentVisibleRange}setCurrentVisibleRange(e){this._currentVisibleRange=e}}class Lt{constructor(e,t,i,n,o,s){this.lineNumber=e,this.startColumn=t,this.endColumn=i,this.startScrollTop=n,this.stopScrollTop=o,this.scrollType=s,this.type="range",this.minLineNumber=e,this.maxLineNumber=e}}class Nt{constructor(e,t,i,n){this.selections=e,this.startScrollTop=t,this.stopScrollTop=i,this.scrollType=n,this.type="selections";let o=e[0].startLineNumber,s=e[0].endLineNumber;for(let t=1,i=e.length;t{this._updateLineWidthsSlow()}),200),this._asyncCheckMonospaceFontAssumptions=new S.pY((()=>{this._checkMonospaceFontAssumptions()}),2e3),this._lastRenderedData=new yt,this._horizontalRevealRequest=null}dispose(){this._asyncUpdateLineWidths.dispose(),this._asyncCheckMonospaceFontAssumptions.dispose(),super.dispose()}getDomNode(){return this.domNode}createVisibleLine(){return new Y(this._viewLineOptions)}onConfigurationChanged(e){this._visibleLines.onConfigurationChanged(e),e.hasChanged(130)&&(this._maxLineWidth=0);const t=this._context.configuration.options,i=t.get(43),n=t.get(130);return this._lineHeight=t.get(58),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._isViewportWrapping=n.isViewportWrapping,this._revealHorizontalRightPadding=t.get(88),this._cursorSurroundingLines=t.get(25),this._cursorSurroundingLinesStyle=t.get(26),this._canUseLayerHinting=!t.get(28),p.V.applyFontInfo(this.domNode,i),this._onOptionsMaybeChanged(),e.hasChanged(129)&&(this._maxLineWidth=0),!0}_onOptionsMaybeChanged(){const e=this._context.configuration,t=new Q(e,this._context.theme.type);if(!this._viewLineOptions.equals(t)){this._viewLineOptions=t;const e=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();for(let t=e;t<=i;t++){this._visibleLines.getVisibleLine(t).onOptionsChanged(this._viewLineOptions)}return!0}return!1}onCursorStateChanged(e){const t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();let n=!1;for(let e=t;e<=i;e++)n=this._visibleLines.getVisibleLine(e).onSelectionChanged()||n;return n}onDecorationsChanged(e){{const e=this._visibleLines.getStartLineNumber(),t=this._visibleLines.getEndLineNumber();for(let i=e;i<=t;i++)this._visibleLines.getVisibleLine(i).onDecorationsChanged()}return!0}onFlushed(e){const t=this._visibleLines.onFlushed(e);return this._maxLineWidth=0,t}onLinesChanged(e){return this._visibleLines.onLinesChanged(e)}onLinesDeleted(e){return this._visibleLines.onLinesDeleted(e)}onLinesInserted(e){return this._visibleLines.onLinesInserted(e)}onRevealRangeRequest(e){const t=this._computeScrollTopToRevealRange(this._context.viewLayout.getFutureViewport(),e.source,e.range,e.selections,e.verticalType);if(-1===t)return!1;let i=this._context.viewLayout.validateScrollPosition({scrollTop:t});e.revealHorizontal?e.range&&e.range.startLineNumber!==e.range.endLineNumber?i={scrollTop:i.scrollTop,scrollLeft:0}:e.range?this._horizontalRevealRequest=new Lt(e.range.startLineNumber,e.range.startColumn,e.range.endColumn,this._context.viewLayout.getCurrentScrollTop(),i.scrollTop,e.scrollType):e.selections&&e.selections.length>0&&(this._horizontalRevealRequest=new Nt(e.selections,this._context.viewLayout.getCurrentScrollTop(),i.scrollTop,e.scrollType)):this._horizontalRevealRequest=null;const n=Math.abs(this._context.viewLayout.getCurrentScrollTop()-i.scrollTop)<=this._lineHeight?1:e.scrollType;return this._context.model.setScrollPosition(i,n),!0}onScrollChanged(e){if(this._horizontalRevealRequest&&e.scrollLeftChanged&&(this._horizontalRevealRequest=null),this._horizontalRevealRequest&&e.scrollTopChanged){const t=Math.min(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop),i=Math.max(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop);(e.scrollTopi)&&(this._horizontalRevealRequest=null)}return this.domNode.setWidth(e.scrollWidth),this._visibleLines.onScrollChanged(e)||!0}onTokensChanged(e){return this._visibleLines.onTokensChanged(e)}onZonesChanged(e){return this._context.model.setMaxLineWidth(this._maxLineWidth),this._visibleLines.onZonesChanged(e)}onThemeChanged(e){return this._onOptionsMaybeChanged()}getPositionFromDOMInfo(e,t){const i=this._getViewLineDomNode(e);if(null===i)return null;const n=this._getLineNumberFor(i);if(-1===n)return null;if(n<1||n>this._context.model.getLineCount())return null;if(1===this._context.model.getLineMaxColumn(n))return new se.L(n,1);const o=this._visibleLines.getStartLineNumber(),s=this._visibleLines.getEndLineNumber();if(ns)return null;let r=this._visibleLines.getVisibleLine(n).getColumnOfNodeOffset(n,e,t);const a=this._context.model.getLineMinColumn(n);return ri?-1:this._visibleLines.getVisibleLine(e).getWidth()}linesVisibleRangesForRange(e,t){if(this.shouldRender())return null;const i=e.endLineNumber,n=re.e.intersectRanges(e,this._lastRenderedData.getCurrentVisibleRange());if(!n)return null;let o=[],s=0;const r=new Z(this.domNode.domNode,this._textRangeRestingSpot);let a=0;t&&(a=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new se.L(n.startLineNumber,1)).lineNumber);const l=this._visibleLines.getStartLineNumber(),h=this._visibleLines.getEndLineNumber();for(let e=n.startLineNumber;e<=n.endLineNumber;e++){if(eh)continue;const d=e===n.startLineNumber?n.startColumn:1,c=e===n.endLineNumber?n.endColumn:this._context.model.getLineMaxColumn(e),u=this._visibleLines.getVisibleLine(e).getVisibleRangesForRange(e,d,c,r);if(u){if(t&ðis._visibleLines.getEndLineNumber()?null:this._visibleLines.getVisibleLine(e).getVisibleRangesForRange(e,t,i,new Z(this.domNode.domNode,this._textRangeRestingSpot))}visibleRangeForPosition(e){const t=this._visibleRangesForLineRange(e.lineNumber,e.column,e.column);return t?new W(t.outsideRenderedLine,t.ranges[0].left):null}updateLineWidths(){this._updateLineWidths(!1)}_updateLineWidthsFast(){return this._updateLineWidths(!0)}_updateLineWidthsSlow(){this._updateLineWidths(!1)}_updateLineWidths(e){const t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();let n=1,o=!0;for(let s=t;s<=i;s++){const t=this._visibleLines.getVisibleLine(s);!e||t.getWidthIsFast()?n=Math.max(n,t.getWidth()):o=!1}return o&&1===t&&i===this._context.model.getLineCount()&&(this._maxLineWidth=0),this._ensureMaxLineWidth(n),o}_checkMonospaceFontAssumptions(){let e=-1,t=-1;const i=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber();for(let o=i;o<=n;o++){const i=this._visibleLines.getVisibleLine(o);if(i.needsMonospaceFontCheck()){const n=i.getWidth();n>t&&(t=n,e=o)}}if(-1!==e&&!this._visibleLines.getVisibleLine(e).monospaceAssumptionsAreValid())for(let e=i;e<=n;e++){this._visibleLines.getVisibleLine(e).onMonospaceAssumptionsInvalidated()}}prepareRender(){throw new Error("Not supported")}render(){throw new Error("Not supported")}renderText(e){if(this._visibleLines.renderLines(e),this._lastRenderedData.setCurrentVisibleRange(e.visibleRange),this.domNode.setWidth(this._context.viewLayout.getScrollWidth()),this.domNode.setHeight(Math.min(this._context.viewLayout.getScrollHeight(),1e6)),this._horizontalRevealRequest){const t=this._horizontalRevealRequest;if(e.startLineNumber<=t.minLineNumber&&t.maxLineNumber<=e.endLineNumber){this._horizontalRevealRequest=null,this.onDidRender();const e=this._computeScrollLeftToReveal(t);e&&(this._isViewportWrapping||this._ensureMaxLineWidth(e.maxHorizontalOffset),this._context.model.setScrollPosition({scrollLeft:e.scrollLeft},t.scrollType))}}if(this._updateLineWidthsFast()||this._asyncUpdateLineWidths.schedule(),b.IJ&&!this._asyncCheckMonospaceFontAssumptions.isScheduled()){const e=this._visibleLines.getStartLineNumber(),t=this._visibleLines.getEndLineNumber();for(let i=e;i<=t;i++){if(this._visibleLines.getVisibleLine(i).needsMonospaceFontCheck()){this._asyncCheckMonospaceFontAssumptions.schedule();break}}}this._linesContent.setLayerHinting(this._canUseLayerHinting),this._linesContent.setContain("strict");const t=this._context.viewLayout.getCurrentScrollTop()-e.bigNumbersDelta;this._linesContent.setTop(-t),this._linesContent.setLeft(-this._context.viewLayout.getCurrentScrollLeft())}_ensureMaxLineWidth(e){const t=Math.ceil(e);this._maxLineWidth0){let e=n[0].startLineNumber,t=n[0].endLineNumber;for(let i=1,o=n.length;ir){if(!l)return-1;c=h}else if(5===o||6===o)if(6===o&&s<=h&&d<=a)c=s;else{const e=h-Math.max(5*this._lineHeight,.2*r),t=d-r;c=Math.max(t,e)}else if(1===o||2===o)if(2===o&&s<=h&&d<=a)c=s;else{const e=(h+d)/2;c=Math.max(0,e-r/2)}else c=this._computeMinimumScrolling(s,a,h,d,3===o,4===o);return c}_computeScrollLeftToReveal(e){const t=this._context.viewLayout.getCurrentViewport(),i=t.left,n=i+t.width;let o=1073741824,s=0;if("range"===e.type){const t=this._visibleRangesForLineRange(e.lineNumber,e.startColumn,e.endColumn);if(!t)return null;for(const e of t.ranges)o=Math.min(o,Math.round(e.left)),s=Math.max(s,Math.round(e.left+e.width))}else for(const t of e.selections){if(t.startLineNumber!==t.endLineNumber)return null;const e=this._visibleRangesForLineRange(t.startLineNumber,t.startColumn,t.endColumn);if(!e)return null;for(const t of e.ranges)o=Math.min(o,Math.round(t.left)),s=Math.max(s,Math.round(t.left+t.width))}if(o=Math.max(0,o-xt.HORIZONTAL_EXTRA_PX),s+=this._revealHorizontalRightPadding,"selections"===e.type&&s-o>t.width)return null;return{scrollLeft:this._computeMinimumScrolling(i,n,o,s),maxHorizontalOffset:s}}_computeMinimumScrolling(e,t,i,n,o,s){o=!!o,s=!!s;const r=(t|=0)-(e|=0);return(n|=0)-(i|=0)t?Math.max(0,n-r):e:i}}xt.HORIZONTAL_EXTRA_PX=30;class kt extends ft{constructor(e){super(),this._context=e;const t=this._context.configuration.options.get(129);this._decorationsLeft=t.decorationsLeft,this._decorationsWidth=t.decorationsWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options.get(129);return this._decorationsLeft=t.decorationsLeft,this._decorationsWidth=t.decorationsWidth,!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_getDecorations(e){const t=e.getDecorationsInViewport();let i=[],n=0;for(let e=0,o=t.length;e ',s=[];for(let e=t;e<=i;e++){const i=e-t,r=n[i];let a="";for(let e=0,t=r.length;e';o[i]=r}this._renderResult=o}render(e,t){return this._renderResult?this._renderResult[t-e]:""}}class Et{constructor(e,t,i,n){this._rgba8Brand=void 0,this.r=Et._clamp(e),this.g=Et._clamp(t),this.b=Et._clamp(i),this.a=Et._clamp(n)}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}static _clamp(e){return e<0?0:e>255?255:0|e}}Et.Empty=new Et(0,0,0,0);var It=i(27347);class Tt extends u.JT{constructor(){super(),this._onDidChange=new c.Q5,this.onDidChange=this._onDidChange.event,this._updateColorMap(),this._register(It.RW.onDidChange((e=>{e.changedColorMap&&this._updateColorMap()})))}static getInstance(){return this._INSTANCE||(this._INSTANCE=(0,u.dk)(new Tt)),this._INSTANCE}_updateColorMap(){const e=It.RW.getColorMap();if(!e)return this._colors=[Et.Empty],void(this._backgroundIsLight=!0);this._colors=[Et.Empty];for(let t=1;t=.5,this._onDidChange.fire(void 0)}getColor(e){return(e<1||e>=this._colors.length)&&(e=2),this._colors[e]}backgroundIsLight(){return this._backgroundIsLight}}Tt._INSTANCE=null;var Mt=i(8829);const At=(()=>{const e=[];for(let t=32;t<=126;t++)e.push(t);return e.push(65533),e})();var Rt=i(41301);class Ot{constructor(e,t){this.scale=t,this._minimapCharRendererBrand=void 0,this.charDataNormal=Ot.soften(e,.8),this.charDataLight=Ot.soften(e,50/60)}static soften(e,t){let i=new Uint8ClampedArray(e.length);for(let n=0,o=e.length;ne.width||i+g>e.height)return void console.warn("bad render request outside image data");const p=h?this.charDataLight:this.charDataNormal,m=((e,t)=>(e-=32)<0||e>96?t<=2?(e+96)%96:95:e)(n,l),f=4*e.width,_=r.r,v=r.g,b=r.b,C=o.r-_,w=o.g-v,S=o.b-b,y=Math.max(s,a),L=e.data;let N=m*c*u,x=i*f+4*t;for(let e=0;ee.width||i+d>e.height)return void console.warn("bad render request outside image data");const c=4*e.width,u=o/255*.5,g=s.r,p=s.g,m=s.b,f=g+(n.r-g)*u,_=p+(n.g-p)*u,v=m+(n.b-m)*u,b=Math.max(o,r),C=e.data;let w=i*c+4*t;for(let e=0;e{const t=new Uint8ClampedArray(e.length/2);for(let i=0;i>1]=Ft[e[i]]<<4|15&Ft[e[i+1]];return t},Vt={1:(0,Pt.I)((()=>Bt("0000511D6300CF609C709645A78432005642574171487021003C451900274D35D762755E8B629C5BA856AF57BA649530C167D1512A272A3F6038604460398526BCA2A968DB6F8957C768BE5FBE2FB467CF5D8D5B795DC7625B5DFF50DE64C466DB2FC47CD860A65E9A2EB96CB54CE06DA763AB2EA26860524D3763536601005116008177A8705E53AB738E6A982F88BAA35B5F5B626D9C636B449B737E5B7B678598869A662F6B5B8542706C704C80736A607578685B70594A49715A4522E792"))),2:(0,Pt.I)((()=>Bt("000000000000000055394F383D2800008B8B1F210002000081B1CBCBCC820000847AAF6B9AAF2119BE08B8881AD60000A44FD07DCCF107015338130C00000000385972265F390B406E2437634B4B48031B12B8A0847000001E15B29A402F0000000000004B33460B00007A752C2A0000000000004D3900000084394B82013400ABA5CFC7AD9C0302A45A3E5A98AB000089A43382D97900008BA54AA087A70A0248A6A7AE6DBE0000BF6F94987EA40A01A06DCFA7A7A9030496C32F77891D0000A99FB1A0AFA80603B29AB9CA75930D010C0948354D3900000C0948354F37460D0028BE673D8400000000AF9D7B6E00002B007AA8933400007AA642675C2700007984CFB9C3985B768772A8A6B7B20000CAAECAAFC4B700009F94A6009F840009D09F9BA4CA9C0000CC8FC76DC87F0000C991C472A2000000A894A48CA7B501079BA2C9C69BA20000B19A5D3FA89000005CA6009DA2960901B0A7F0669FB200009D009E00B7890000DAD0F5D092820000D294D4C48BD10000B5A7A4A3B1A50402CAB6CBA6A2000000B5A7A4A3B1A8044FCDADD19D9CB00000B7778F7B8AAE0803C9AB5D3F5D3F00009EA09EA0BAB006039EA0989A8C7900009B9EF4D6B7C00000A9A7816CACA80000ABAC84705D3F000096DA635CDC8C00006F486F266F263D4784006124097B00374F6D2D6D2D6D4A3A95872322000000030000000000008D8939130000000000002E22A5C9CBC70600AB25C0B5C9B400061A2DB04CA67001082AA6BEBEBFC606002321DACBC19E03087AA08B6768380000282FBAC0B8CA7A88AD25BBA5A29900004C396C5894A6000040485A6E356E9442A32CD17EADA70000B4237923628600003E2DE9C1D7B500002F25BBA5A2990000231DB6AFB4A804023025C0B5CAB588062B2CBDBEC0C706882435A75CA20000002326BD6A82A908048B4B9A5A668000002423A09CB4BB060025259C9D8A7900001C1FCAB2C7C700002A2A9387ABA200002626A4A47D6E9D14333163A0C87500004B6F9C2D643A257049364936493647358A34438355497F1A0000A24C1D590000D38DFFBDD4CD3126")))};class Wt{static create(e,t){if(this.lastCreated&&e===this.lastCreated.scale&&t===this.lastFontFamily)return this.lastCreated;let i;return i=Vt[e]?new Ot(Vt[e](),e):Wt.createFromSampleData(Wt.createSampleData(t).data,e),this.lastFontFamily=t,this.lastCreated=i,i}static createSampleData(e){const t=document.createElement("canvas"),i=t.getContext("2d");t.style.height="16px",t.height=16,t.width=960,t.style.width="960px",i.fillStyle="#ffffff",i.font=`bold 16px ${e}`,i.textBaseline="middle";let n=0;for(const e of At)i.fillText(String.fromCharCode(e),n,8),n+=10;return i.getImageData(0,0,960,16)}static createFromSampleData(e,t){if(61440!==e.length)throw new Error("Unexpected source in MinimapCharRenderer");let i=Wt._downsample(e,t);return new Ot(i,t)}static _downsampleChar(e,t,i,n,o){const s=1*o,r=2*o;let a=n,l=0;for(let n=0;n0){const e=255/a;for(let t=0;tWt.create(this.fontScale,a.fontFamily))),this.defaultBackgroundColor=i.getColor(2),this.backgroundColor=Ht._getMinimapBackground(t,this.defaultBackgroundColor),this.foregroundAlpha=Ht._getMinimapForegroundOpacity(t)}static _getMinimapBackground(e,t){const i=e.getColor(gt.kV);return i?new Et(i.rgba.r,i.rgba.g,i.rgba.b,Math.round(255*i.rgba.a)):t}static _getMinimapForegroundOpacity(e){const t=e.getColor(gt.It);return t?Et._clamp(Math.round(255*t.rgba.a)):255}equals(e){return this.renderMinimap===e.renderMinimap&&this.size===e.size&&this.minimapHeightIsEditorHeight===e.minimapHeightIsEditorHeight&&this.scrollBeyondLastLine===e.scrollBeyondLastLine&&this.showSlider===e.showSlider&&this.pixelRatio===e.pixelRatio&&this.typicalHalfwidthCharacterWidth===e.typicalHalfwidthCharacterWidth&&this.lineHeight===e.lineHeight&&this.minimapLeft===e.minimapLeft&&this.minimapWidth===e.minimapWidth&&this.minimapHeight===e.minimapHeight&&this.canvasInnerWidth===e.canvasInnerWidth&&this.canvasInnerHeight===e.canvasInnerHeight&&this.canvasOuterWidth===e.canvasOuterWidth&&this.canvasOuterHeight===e.canvasOuterHeight&&this.isSampling===e.isSampling&&this.editorHeight===e.editorHeight&&this.fontScale===e.fontScale&&this.minimapLineHeight===e.minimapLineHeight&&this.minimapCharWidth===e.minimapCharWidth&&this.defaultBackgroundColor&&this.defaultBackgroundColor.equals(e.defaultBackgroundColor)&&this.backgroundColor&&this.backgroundColor.equals(e.backgroundColor)&&this.foregroundAlpha===e.foregroundAlpha}}class zt{constructor(e,t,i,n,o,s,r,a){this.scrollTop=e,this.scrollHeight=t,this.sliderNeeded=i,this._computedSliderRatio=n,this.sliderTop=o,this.sliderHeight=s,this.startLineNumber=r,this.endLineNumber=a}getDesiredScrollTopFromDelta(e){return Math.round(this.scrollTop+e/this._computedSliderRatio)}getDesiredScrollTopFromTouchLocation(e){return Math.round((e-this.sliderHeight/2)/this._computedSliderRatio)}static create(e,t,i,n,o,s,r,a,l,h,d){const c=e.pixelRatio,u=e.minimapLineHeight,g=Math.floor(e.canvasInnerHeight/u),p=e.lineHeight;if(e.minimapHeightIsEditorHeight){const t=a*e.lineHeight+(e.scrollBeyondLastLine?o-e.lineHeight:0),i=Math.max(1,Math.floor(o*o/t)),n=Math.max(0,e.minimapHeight-i),s=n/(h-o),d=l*s,c=n>0,u=Math.floor(e.canvasInnerHeight/e.minimapLineHeight);return new zt(l,h,c,s,d,i,1,Math.min(r,u))}let m,f;if(s&&i!==r){const e=i-t+1;m=Math.floor(e*u/c)}else{const e=o/p;m=Math.floor(e*u/c)}f=e.scrollBeyondLastLine?(r-1)*u/c:Math.max(0,r*u/c-m),f=Math.min(e.minimapHeight-m,f);const _=f/(h-o),v=l*_;let b=0;if(e.scrollBeyondLastLine){b=o/p-1}if(g>=r+b){return new zt(l,h,f>0,_,v,m,1,r)}{let e=Math.max(1,Math.floor(t-v*c/u));d&&d.scrollHeight===h&&(d.scrollTop>l&&(e=Math.min(e,d.startLineNumber)),d.scrollTopKt.INVALID)),this._renderedLines._set(e.startLineNumber,i)}linesEquals(e){if(!this.scrollEquals(e))return!1;const t=this._renderedLines._get().lines;for(let e=0,i=t.length;e1){for(let t=0,i=r-1;t0&&this.minimapLines[i-1]>=e;)i--;let n=this.modelLineToMinimapLine(t)-1;for(;n+1t)return null}return[i+1,n+1]}decorationLineRangeToMinimapLineRange(e,t){let i=this.modelLineToMinimapLine(e),n=this.modelLineToMinimapLine(t);return e!==t&&n===i&&(n===this.minimapLines.length?i>1&&i--:n++),[i,n]}onLinesDeleted(e){const t=e.toLineNumber-e.fromLineNumber+1;let i=this.minimapLines.length,n=0;for(let o=this.minimapLines.length-1;o>=0&&!(this.minimapLines[o]=0&&!(this.minimapLines[i]0,scrollWidth:e.scrollWidth,scrollHeight:e.scrollHeight,viewportStartLineNumber:t,viewportEndLineNumber:i,viewportStartLineNumberVerticalOffset:e.getVerticalOffsetForLineNumber(t),scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,viewportWidth:e.viewportWidth,viewportHeight:e.viewportHeight};this._actual.render(n)}_recreateLineSampling(){this._minimapSelections=null;const e=Boolean(this._samplingState),[t,i]=jt.compute(this.options,this._context.model.getLineCount(),this._samplingState);if(this._samplingState=t,e&&this._samplingState)for(const e of i)switch(e.type){case"deleted":this._actual.onLinesDeleted(e.deleteFromLineNumber,e.deleteToLineNumber);break;case"inserted":this._actual.onLinesInserted(e.insertFromLineNumber,e.insertToLineNumber);break;case"flush":this._actual.onFlushed()}}getLineCount(){return this._samplingState?this._samplingState.minimapLines.length:this._context.model.getLineCount()}getRealLineCount(){return this._context.model.getLineCount()}getLineContent(e){return this._samplingState?this._context.model.getLineContent(this._samplingState.minimapLines[e-1]):this._context.model.getLineContent(e)}getLineMaxColumn(e){return this._samplingState?this._context.model.getLineMaxColumn(this._samplingState.minimapLines[e-1]):this._context.model.getLineMaxColumn(e)}getMinimapLinesRenderingData(e,t,i){if(this._samplingState){let n=[];for(let o=0,s=t-e+1;o{e.preventDefault();if(0===this._model.options.renderMinimap)return;if(!this._lastRenderData)return;if("proportional"!==this._model.options.size){if(e.leftButton&&this._lastRenderData){const t=h.i(this._slider.domNode),i=t.top+t.height/2;this._startSliderDragging(e.buttons,e.posx,i,e.posy,this._lastRenderData.renderedLayout)}return}const t=this._model.options.minimapLineHeight,i=this._model.options.canvasInnerHeight/this._model.options.canvasOuterHeight*e.browserEvent.offsetY;let n=Math.floor(i/t)+this._lastRenderData.renderedLayout.startLineNumber;n=Math.min(n,this._model.getLineCount()),this._model.revealLineNumber(n)})),this._sliderMouseMoveMonitor=new y.Z,this._sliderMouseDownListener=h.mu(this._slider.domNode,"mousedown",(e=>{e.preventDefault(),e.stopPropagation(),e.leftButton&&this._lastRenderData&&this._startSliderDragging(e.buttons,e.posx,e.posy,e.posy,this._lastRenderData.renderedLayout)})),this._gestureDisposable=C.o.addTarget(this._domNode.domNode),this._sliderTouchStartListener=h.nm(this._domNode.domNode,C.t.Start,(e=>{e.preventDefault(),e.stopPropagation(),this._lastRenderData&&(this._slider.toggleClassName("active",!0),this._gestureInProgress=!0,this.scrollDueToTouchEvent(e))}),{passive:!1}),this._sliderTouchMoveListener=h.nm(this._domNode.domNode,C.t.Change,(e=>{e.preventDefault(),e.stopPropagation(),this._lastRenderData&&this._gestureInProgress&&this.scrollDueToTouchEvent(e)}),{passive:!1}),this._sliderTouchEndListener=h.mu(this._domNode.domNode,C.t.End,(e=>{e.preventDefault(),e.stopPropagation(),this._gestureInProgress=!1,this._slider.toggleClassName("active",!1)}))}_startSliderDragging(e,t,i,n,o){this._slider.toggleClassName("active",!0);const s=(e,n)=>{const s=Math.abs(n-t);if(b.ED&&s>140)return void this._model.setScrollTop(o.scrollTop);const r=e-i;this._model.setScrollTop(o.getDesiredScrollTopFromDelta(r))};n!==i&&s(n,t),this._sliderMouseMoveMonitor.startMonitoring(this._slider.domNode,e,y.e,(e=>s(e.posy,e.posx)),(()=>{this._slider.toggleClassName("active",!1)}))}scrollDueToTouchEvent(e){const t=this._domNode.domNode.getBoundingClientRect().top,i=this._lastRenderData.renderedLayout.getDesiredScrollTopFromTouchLocation(e.pageY-t);this._model.setScrollTop(i)}dispose(){this._mouseDownListener.dispose(),this._sliderMouseMoveMonitor.dispose(),this._sliderMouseDownListener.dispose(),this._gestureDisposable.dispose(),this._sliderTouchStartListener.dispose(),this._sliderTouchMoveListener.dispose(),this._sliderTouchEndListener.dispose(),super.dispose()}_getMinimapDomNodeClassName(){return"always"===this._model.options.showSlider?"minimap slider-always":"minimap slider-mouseover"}getDomNode(){return this._domNode}_applyLayout(){this._domNode.setLeft(this._model.options.minimapLeft),this._domNode.setWidth(this._model.options.minimapWidth),this._domNode.setHeight(this._model.options.minimapHeight),this._shadow.setHeight(this._model.options.minimapHeight),this._canvas.setWidth(this._model.options.canvasOuterWidth),this._canvas.setHeight(this._model.options.canvasOuterHeight),this._canvas.domNode.width=this._model.options.canvasInnerWidth,this._canvas.domNode.height=this._model.options.canvasInnerHeight,this._decorationsCanvas.setWidth(this._model.options.canvasOuterWidth),this._decorationsCanvas.setHeight(this._model.options.canvasOuterHeight),this._decorationsCanvas.domNode.width=this._model.options.canvasInnerWidth,this._decorationsCanvas.domNode.height=this._model.options.canvasInnerHeight,this._slider.setWidth(this._model.options.minimapWidth)}_getBuffer(){return this._buffers||this._model.options.canvasInnerWidth>0&&this._model.options.canvasInnerHeight>0&&(this._buffers=new $t(this._canvas.domNode.getContext("2d"),this._model.options.canvasInnerWidth,this._model.options.canvasInnerHeight,this._model.options.backgroundColor)),this._buffers?this._buffers.getBuffer():null}onDidChangeOptions(){this._lastRenderData=null,this._buffers=null,this._applyLayout(),this._domNode.setClassName(this._getMinimapDomNodeClassName())}onSelectionChanged(){return this._renderDecorations=!0,!0}onDecorationsChanged(){return this._renderDecorations=!0,!0}onFlushed(){return this._lastRenderData=null,!0}onLinesChanged(e,t){return!!this._lastRenderData&&this._lastRenderData.onLinesChanged(e,t)}onLinesDeleted(e,t){return this._lastRenderData&&this._lastRenderData.onLinesDeleted(e,t),!0}onLinesInserted(e,t){return this._lastRenderData&&this._lastRenderData.onLinesInserted(e,t),!0}onScrollChanged(){return this._renderDecorations=!0,!0}onThemeChanged(){return this._selectionColor=this._theme.getColor(gt.ov),this._renderDecorations=!0,!0}onTokensChanged(e){return!!this._lastRenderData&&this._lastRenderData.onTokensChanged(e)}onTokensColorsChanged(){return this._lastRenderData=null,this._buffers=null,!0}onZonesChanged(){return this._lastRenderData=null,!0}render(e){if(0===this._model.options.renderMinimap)return this._shadow.setClassName("minimap-shadow-hidden"),this._sliderHorizontal.setWidth(0),void this._sliderHorizontal.setHeight(0);e.scrollLeft+e.viewportWidth>=e.scrollWidth?this._shadow.setClassName("minimap-shadow-hidden"):this._shadow.setClassName("minimap-shadow-visible");const t=zt.create(this._model.options,e.viewportStartLineNumber,e.viewportEndLineNumber,e.viewportStartLineNumberVerticalOffset,e.viewportHeight,e.viewportContainsWhitespaceGaps,this._model.getLineCount(),this._model.getRealLineCount(),e.scrollTop,e.scrollHeight,this._lastRenderData?this._lastRenderData.renderedLayout:null);this._slider.setDisplay(t.sliderNeeded?"block":"none"),this._slider.setTop(t.sliderTop),this._slider.setHeight(t.sliderHeight),this._sliderHorizontal.setLeft(0),this._sliderHorizontal.setWidth(this._model.options.minimapWidth),this._sliderHorizontal.setTop(0),this._sliderHorizontal.setHeight(t.sliderHeight),this.renderDecorations(t),this._lastRenderData=this.renderLines(t)}renderDecorations(e){if(this._renderDecorations){this._renderDecorations=!1;const t=this._model.getSelections();t.sort(re.e.compareRangesUsingStarts);const i=this._model.getMinimapDecorationsInViewport(e.startLineNumber,e.endLineNumber);i.sort(((e,t)=>(e.options.zIndex||0)-(t.options.zIndex||0)));const{canvasInnerWidth:n,canvasInnerHeight:o}=this._model.options,s=this._model.options.minimapLineHeight,r=this._model.options.minimapCharWidth,a=this._model.getOptions().tabSize,l=this._decorationsCanvas.domNode.getContext("2d");l.clearRect(0,0,n,o);const h=new Zt(e.startLineNumber,e.endLineNumber,!1);this._renderSelectionLineHighlights(l,t,h,e,s),this._renderDecorationsLineHighlights(l,i,h,e,s);const d=new Zt(e.startLineNumber,e.endLineNumber,null);this._renderSelectionsHighlights(l,t,d,e,s,a,r,n),this._renderDecorationsHighlights(l,i,d,e,s,a,r,n)}}_renderSelectionLineHighlights(e,t,i,n,o){if(!this._selectionColor||this._selectionColor.isTransparent())return;e.fillStyle=this._selectionColor.transparent(.5).toString();let s=0,r=0;for(const a of t){const t=Math.max(n.startLineNumber,a.startLineNumber),l=Math.min(n.endLineNumber,a.endLineNumber);if(t>l)continue;for(let e=t;e<=l;e++)i.set(e,!0);const h=(t-n.startLineNumber)*o,d=(l-n.startLineNumber)*o+o;r>=h||(r>s&&e.fillRect(j.y0,s,e.canvas.width,r-s),s=h),r=d}r>s&&e.fillRect(j.y0,s,e.canvas.width,r-s)}_renderDecorationsLineHighlights(e,t,i,n,o){const s=new Map;for(let r=t.length-1;r>=0;r--){const a=t[r],l=a.options.minimap;if(!l||l.position!==vt.F5.Inline)continue;const h=Math.max(n.startLineNumber,a.range.startLineNumber),d=Math.min(n.endLineNumber,a.range.endLineNumber);if(h>d)continue;const c=l.getColor(this._theme);if(!c||c.isTransparent())continue;let u=s.get(c.toString());u||(u=c.transparent(.5).toString(),s.set(c.toString(),u)),e.fillStyle=u;for(let t=h;t<=d;t++){if(i.has(t))continue;i.set(t,!0);const s=(h-n.startLineNumber)*o;e.fillRect(j.y0,s,e.canvas.width,o)}}}_renderSelectionsHighlights(e,t,i,n,o,s,r,a){if(this._selectionColor&&!this._selectionColor.isTransparent())for(const l of t){const t=Math.max(n.startLineNumber,l.startLineNumber),h=Math.min(n.endLineNumber,l.endLineNumber);if(!(t>h))for(let d=t;d<=h;d++)this.renderDecorationOnLine(e,i,l,this._selectionColor,n,d,o,o,s,r,a)}}_renderDecorationsHighlights(e,t,i,n,o,s,r,a){for(const l of t){const t=l.options.minimap;if(!t)continue;const h=Math.max(n.startLineNumber,l.range.startLineNumber),d=Math.min(n.endLineNumber,l.range.endLineNumber);if(h>d)continue;const c=t.getColor(this._theme);if(c&&!c.isTransparent())for(let u=h;u<=d;u++)switch(t.position){case vt.F5.Inline:this.renderDecorationOnLine(e,i,l.range,c,n,u,o,o,s,r,a);continue;case vt.F5.Gutter:const t=(u-n.startLineNumber)*o,h=2;this.renderDecoration(e,c,h,t,2,o);continue}}}renderDecorationOnLine(e,t,i,n,o,s,r,a,l,h,d){const c=(s-o.startLineNumber)*a;if(c+r<0||c>this._model.options.canvasInnerHeight)return;const{startLineNumber:u,endLineNumber:g}=i,p=u===s?i.startColumn:1,m=g===s?i.endColumn:this._model.getLineMaxColumn(s),f=this.getXOffsetForPosition(t,s,p,l,h,d),_=this.getXOffsetForPosition(t,s,m,l,h,d);this.renderDecoration(e,n,f,c,_-f,r)}getXOffsetForPosition(e,t,i,n,o,s){if(1===i)return j.y0;if((i-1)*o>=s)return s;let r=e.get(t);if(!r){const i=this._model.getLineContent(t);r=[j.y0];let a=j.y0;for(let e=1;e=s){r[e]=s;break}r[e]=l,a=l}e.set(t,r)}return i-1b?Math.floor((n-b)/2):0,w=c.a/255,S=new Et(Math.round((c.r-d.r)*w+d.r),Math.round((c.g-d.g)*w+d.g),Math.round((c.b-d.b)*w+d.b),255);let y=0;const L=[];for(let e=0,s=i-t+1;e=0&&o_)return;const r=m.charCodeAt(C);if(9===r){const e=c-(C+w)%c;w+=e-1,b+=e*s}else if(32===r)b+=s;else{const c=Te.K7(r)?2:1;for(let u=0;u_)return}}}}}class Zt{constructor(e,t,i){this._startLineNumber=e,this._endLineNumber=t,this._defaultValue=i,this._values=[];for(let e=0,t=this._endLineNumber-this._startLineNumber+1;ethis._endLineNumber||(this._values[e-this._startLineNumber]=t)}get(e){return ethis._endLineNumber?this._defaultValue:this._values[e-this._startLineNumber]}}(0,Oe.Ic)(((e,t)=>{const i=e.getColor(gt.CA);i&&t.addRule(`.monaco-editor .minimap-slider .minimap-slider-horizontal { background: ${i}; }`);const n=e.getColor(gt.Xy);n&&t.addRule(`.monaco-editor .minimap-slider:hover .minimap-slider-horizontal { background: ${n}; }`);const o=e.getColor(gt.br);o&&t.addRule(`.monaco-editor .minimap-slider.active .minimap-slider-horizontal { background: ${o}; }`);const s=e.getColor(gt._w);s&&t.addRule(`.monaco-editor .minimap-shadow-visible { box-shadow: ${s} -6px 0 6px -6px inset; }`)}));class Qt extends A{constructor(e){super(e);const t=this._context.configuration.options.get(129);this._widgets={},this._verticalScrollbarWidth=t.verticalScrollbarWidth,this._minimapWidth=t.minimap.minimapWidth,this._horizontalScrollbarHeight=t.horizontalScrollbarHeight,this._editorHeight=t.height,this._editorWidth=t.width,this._domNode=(0,v.X)(document.createElement("div")),R.write(this._domNode,4),this._domNode.setClassName("overlayWidgets")}dispose(){super.dispose(),this._widgets={}}getDomNode(){return this._domNode}onConfigurationChanged(e){const t=this._context.configuration.options.get(129);return this._verticalScrollbarWidth=t.verticalScrollbarWidth,this._minimapWidth=t.minimap.minimapWidth,this._horizontalScrollbarHeight=t.horizontalScrollbarHeight,this._editorHeight=t.height,this._editorWidth=t.width,!0}addWidget(e){const t=(0,v.X)(e.getDomNode());this._widgets[e.getId()]={widget:e,preference:null,domNode:t},t.setPosition("absolute"),t.setAttribute("widgetId",e.getId()),this._domNode.appendChild(t),this.setShouldRender()}setWidgetPosition(e,t){const i=this._widgets[e.getId()];return i.preference!==t&&(i.preference=t,this.setShouldRender(),!0)}removeWidget(e){const t=e.getId();if(this._widgets.hasOwnProperty(t)){const e=this._widgets[t].domNode.domNode;delete this._widgets[t],e.parentNode.removeChild(e),this.setShouldRender()}}_renderWidget(e){const t=e.domNode;if(null!==e.preference)if(0===e.preference)t.setTop(0),t.setRight(2*this._verticalScrollbarWidth+this._minimapWidth);else if(1===e.preference){const e=t.domNode.clientHeight;t.setTop(this._editorHeight-e-2*this._horizontalScrollbarHeight),t.setRight(2*this._verticalScrollbarWidth+this._minimapWidth)}else 2===e.preference&&(t.setTop(0),t.domNode.style.right="50%");else t.unsetTop()}prepareRender(e){}render(e){this._domNode.setWidth(this._editorWidth);const t=Object.keys(this._widgets);for(let e=0,i=t.length;e=3){const t=Math.floor(n/3),i=Math.floor(n/3),o=n-t-i,s=e+t;return[[0,e,s,e,e+t+o,e,s,e],[0,t,o,t+o,i,t+o+i,o+i,t+o+i]]}if(2===i){const t=Math.floor(n/2),i=n-t;return[[0,e,e,e,e+t,e,e,e],[0,t,t,t,i,t+i,t+i,t+i]]}return[[0,e,e,e,e,e,e,e],[0,n,n,n,n,n,n,n]]}equals(e){return this.lineHeight===e.lineHeight&&this.pixelRatio===e.pixelRatio&&this.overviewRulerLanes===e.overviewRulerLanes&&this.renderBorder===e.renderBorder&&this.borderColor===e.borderColor&&this.hideCursor===e.hideCursor&&this.cursorColor===e.cursorColor&&this.themeType===e.themeType&&this.backgroundColor===e.backgroundColor&&this.top===e.top&&this.right===e.right&&this.domWidth===e.domWidth&&this.domHeight===e.domHeight&&this.canvasWidth===e.canvasWidth&&this.canvasHeight===e.canvasHeight}}class Jt extends A{constructor(e){super(e),this._domNode=(0,v.X)(document.createElement("canvas")),this._domNode.setClassName("decorationsOverviewRuler"),this._domNode.setPosition("absolute"),this._domNode.setLayerHinting(!0),this._domNode.setContain("strict"),this._domNode.setAttribute("aria-hidden","true"),this._updateSettings(!1),this._tokensColorTrackerListener=It.RW.onDidChange((e=>{e.changedColorMap&&this._updateSettings(!0)})),this._cursorPositions=[]}dispose(){super.dispose(),this._tokensColorTrackerListener.dispose()}_updateSettings(e){const t=new Xt(this._context.configuration,this._context.theme);return(!this._settings||!this._settings.equals(t))&&(this._settings=t,this._domNode.setTop(this._settings.top),this._domNode.setRight(this._settings.right),this._domNode.setWidth(this._settings.domWidth),this._domNode.setHeight(this._settings.domHeight),this._domNode.domNode.width=this._settings.canvasWidth,this._domNode.domNode.height=this._settings.canvasHeight,e&&this._render(),!0)}onConfigurationChanged(e){return this._updateSettings(!1)}onCursorStateChanged(e){this._cursorPositions=[];for(let t=0,i=e.selections.length;tt&&(e=t-a),_=e-a,v=e+a}_>p+1||s!==u?(0!==e&&l.fillRect(h[u],g,d[u],p-g),u=s,g=_,p=v):v>p&&(p=v)}l.fillRect(h[u],g,d[u],p-g)}if(!this._settings.hideCursor&&this._settings.cursorColor){const e=2*this._settings.pixelRatio|0,i=e/2|0,s=this._settings.x[7],r=this._settings.w[7];l.fillStyle=this._settings.cursorColor;let a=-100,h=-100;for(let d=0,c=this._cursorPositions.length;dt&&(u=t-i);const g=u-i,p=g+e;g>h+1?(0!==d&&l.fillRect(s,a,r,h-a),a=g,h=p):p>h&&(h=p)}l.fillRect(s,a,r,h-a)}this._settings.renderBorder&&this._settings.borderColor&&this._settings.overviewRulerLanes>0&&(l.beginPath(),l.lineWidth=1,l.strokeStyle=this._settings.borderColor,l.moveTo(0,0),l.lineTo(0,t),l.stroke(),l.moveTo(0,0),l.lineTo(e,0),l.stroke())}}var ei=i(13169);class ti extends M{constructor(e,t){super(),this._context=e;const i=this._context.configuration.options;this._domNode=(0,v.X)(document.createElement("canvas")),this._domNode.setClassName(t),this._domNode.setPosition("absolute"),this._domNode.setLayerHinting(!0),this._domNode.setContain("strict"),this._zoneManager=new ei.Tj((e=>this._context.viewLayout.getVerticalOffsetForLineNumber(e))),this._zoneManager.setDOMWidth(0),this._zoneManager.setDOMHeight(0),this._zoneManager.setOuterHeight(this._context.viewLayout.getScrollHeight()),this._zoneManager.setLineHeight(i.get(58)),this._zoneManager.setPixelRatio(i.get(127)),this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return e.hasChanged(58)&&(this._zoneManager.setLineHeight(t.get(58)),this._render()),e.hasChanged(127)&&(this._zoneManager.setPixelRatio(t.get(127)),this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render()),!0}onFlushed(e){return this._render(),!0}onScrollChanged(e){return e.scrollHeightChanged&&(this._zoneManager.setOuterHeight(e.scrollHeight),this._render()),!0}onZonesChanged(e){return this._render(),!0}getDomNode(){return this._domNode.domNode}setLayout(e){this._domNode.setTop(e.top),this._domNode.setRight(e.right);let t=!1;t=this._zoneManager.setDOMWidth(e.width)||t,t=this._zoneManager.setDOMHeight(e.height)||t,t&&(this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render())}setZones(e){this._zoneManager.setZones(e),this._render()}_render(){if(0===this._zoneManager.getOuterHeight())return!1;const e=this._zoneManager.getCanvasWidth(),t=this._zoneManager.getCanvasHeight(),i=this._zoneManager.resolveColorZones(),n=this._zoneManager.getId2Color(),o=this._domNode.domNode.getContext("2d");return o.clearRect(0,0,e,t),i.length>0&&this._renderOneLane(o,i,n,e),!0}_renderOneLane(e,t,i,n){let o=0,s=0,r=0;for(const a of t){const t=a.colorId,l=a.from,h=a.to;t!==o?(e.fillRect(0,s,n,r-s),o=t,e.fillStyle=i[o],s=l,r=h):r>=l?r=Math.max(r,h):(e.fillRect(0,s,n,r-s),s=l,r=h)}e.fillRect(0,s,n,r-s)}}class ii extends A{constructor(e){super(e),this.domNode=(0,v.X)(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.domNode.setClassName("view-rulers"),this._renderedRulers=[];const t=this._context.configuration.options;this._rulers=t.get(90),this._typicalHalfwidthCharacterWidth=t.get(43).typicalHalfwidthCharacterWidth}dispose(){super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._rulers=t.get(90),this._typicalHalfwidthCharacterWidth=t.get(43).typicalHalfwidthCharacterWidth,!0}onScrollChanged(e){return e.scrollHeightChanged}prepareRender(e){}_ensureRulersCount(){const e=this._renderedRulers.length,t=this._rulers.length;if(e===t)return;if(e0;){const e=(0,v.X)(document.createElement("div"));e.setClassName("view-ruler"),e.setWidth(n),this.domNode.appendChild(e),this._renderedRulers.push(e),o--}return}let i=e-t;for(;i>0;){const e=this._renderedRulers.pop();this.domNode.removeChild(e),i--}}render(e){this._ensureRulersCount();for(let t=0,i=this._rulers.length;t{const i=e.getColor(Re.zk);i&&t.addRule(`.monaco-editor .view-ruler { box-shadow: 1px 0 0 0 ${i} inset; }`)}));class ni extends A{constructor(e){super(e),this._scrollTop=0,this._width=0,this._updateWidth(),this._shouldShow=!1;const t=this._context.configuration.options.get(91);this._useShadows=t.useShadows,this._domNode=(0,v.X)(document.createElement("div")),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true")}dispose(){super.dispose()}_updateShouldShow(){const e=this._useShadows&&this._scrollTop>0;return this._shouldShow!==e&&(this._shouldShow=e,!0)}getDomNode(){return this._domNode}_updateWidth(){const e=this._context.configuration.options.get(129);0===e.minimap.renderMinimap||e.minimap.minimapWidth>0&&0===e.minimap.minimapLeft?this._width=e.width:this._width=e.width-e.minimap.minimapWidth-e.verticalScrollbarWidth}onConfigurationChanged(e){const t=this._context.configuration.options.get(91);return this._useShadows=t.useShadows,this._updateWidth(),this._updateShouldShow(),!0}onScrollChanged(e){return this._scrollTop=e.scrollTop,this._updateShouldShow()}prepareRender(e){}render(e){this._domNode.setWidth(this._width),this._domNode.setClassName(this._shouldShow?"scroll-decoration":"")}}(0,Oe.Ic)(((e,t)=>{const i=e.getColor(gt._w);i&&t.addRule(`.monaco-editor .scroll-decoration { box-shadow: ${i} 0 6px 6px -6px inset; }`)}));class oi{constructor(e){this.left=e.left,this.width=e.width,this.startStyle=null,this.endStyle=null}}class si{constructor(e,t){this.lineNumber=e,this.ranges=t}}function ri(e){return new oi(e)}function ai(e){return new si(e.lineNumber,e.ranges.map(ri))}class li extends Ae{constructor(e){super(),this._previousFrameVisibleRangesWithStyle=[],this._context=e;const t=this._context.configuration.options;this._lineHeight=t.get(58),this._roundedSelection=t.get(89),this._typicalHalfwidthCharacterWidth=t.get(43).typicalHalfwidthCharacterWidth,this._selections=[],this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._lineHeight=t.get(58),this._roundedSelection=t.get(89),this._typicalHalfwidthCharacterWidth=t.get(43).typicalHalfwidthCharacterWidth,!0}onCursorStateChanged(e){return this._selections=e.selections.slice(0),!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_visibleRangesHaveGaps(e){for(let t=0,i=e.length;t1)return!0}return!1}_enrichVisibleRangesWithStyle(e,t,i){const n=this._typicalHalfwidthCharacterWidth/4;let o=null,s=null;if(i&&i.length>0&&t.length>0){const n=t[0].lineNumber;if(n===e.startLineNumber)for(let e=0;!o&&e=0;e--)i[e].lineNumber===r&&(s=i[e].ranges[0]);o&&!o.startStyle&&(o=null),s&&!s.startStyle&&(s=null)}for(let e=0,i=t.length;e0){const i=t[e-1].ranges[0].left,o=t[e-1].ranges[0].left+t[e-1].ranges[0].width;hi(a-i)i&&(h.top=1),hi(l-o)'}_actualRenderOneSelection(e,t,i,n){if(0===n.length)return;const o=!!n[0].ranges[0].startStyle,s=this._lineHeight.toString(),r=(this._lineHeight-1).toString(),a=n[0].lineNumber,l=n[n.length-1].lineNumber;for(let h=0,d=n.length;h1,r)}this._previousFrameVisibleRangesWithStyle=o,this._renderResult=t.map((([e,t])=>e+t))}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}function hi(e){return e<0?-e:e}li.SELECTION_CLASS_NAME="selected-text",li.SELECTION_TOP_LEFT="top-left-radius",li.SELECTION_BOTTOM_LEFT="bottom-left-radius",li.SELECTION_TOP_RIGHT="top-right-radius",li.SELECTION_BOTTOM_RIGHT="bottom-right-radius",li.EDITOR_BACKGROUND_CLASS_NAME="monaco-editor-background",li.ROUNDED_PIECE_WIDTH=10,(0,Oe.Ic)(((e,t)=>{const i=e.getColor(gt.hE);i&&t.addRule(`.monaco-editor .focused .selected-text { background-color: ${i}; }`);const n=e.getColor(gt.ES);n&&t.addRule(`.monaco-editor .selected-text { background-color: ${n}; }`);const o=e.getColor(gt.yb);o&&!o.isTransparent()&&t.addRule(`.monaco-editor .view-line span.inline-selected-text { color: ${o}; }`)}));class di{constructor(e,t,i,n,o,s){this.top=e,this.left=t,this.width=i,this.height=n,this.textContent=o,this.textContentClassName=s}}class ci{constructor(e){this._context=e;const t=this._context.configuration.options,i=t.get(43);this._cursorStyle=t.get(24),this._lineHeight=t.get(58),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(t.get(27),this._typicalHalfwidthCharacterWidth),this._isVisible=!0,this._domNode=(0,v.X)(document.createElement("div")),this._domNode.setClassName(`cursor ${Ve.S}`),this._domNode.setHeight(this._lineHeight),this._domNode.setTop(0),this._domNode.setLeft(0),p.V.applyFontInfo(this._domNode,i),this._domNode.setDisplay("none"),this._position=new se.L(1,1),this._lastRenderedContent="",this._renderData=null}getDomNode(){return this._domNode}getPosition(){return this._position}show(){this._isVisible||(this._domNode.setVisibility("inherit"),this._isVisible=!0)}hide(){this._isVisible&&(this._domNode.setVisibility("hidden"),this._isVisible=!1)}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(43);return this._cursorStyle=t.get(24),this._lineHeight=t.get(58),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(t.get(27),this._typicalHalfwidthCharacterWidth),p.V.applyFontInfo(this._domNode,i),!0}onCursorPositionChanged(e){return this._position=e,!0}_prepareRender(e){let t="";if(this._cursorStyle===j.d2.Line||this._cursorStyle===j.d2.LineThin){const i=e.visibleRangeForPosition(this._position);if(!i||i.outsideRenderedLine)return null;let n;if(this._cursorStyle===j.d2.Line){if(n=h.Uh(this._lineCursorWidth>0?this._lineCursorWidth:2),n>2){const e=this._context.model.getLineContent(this._position.lineNumber),i=Te.vH(e,this._position.column-1);t=e.substr(this._position.column-1,i)}}else n=h.Uh(1);let o=i.left;n>=2&&o>=1&&(o-=1);const s=e.getVerticalOffsetForLineNumber(this._position.lineNumber)-e.bigNumbersDelta;return new di(s,o,n,this._lineHeight,t,"")}const i=this._context.model.getLineContent(this._position.lineNumber),n=Te.vH(i,this._position.column-1),o=e.linesVisibleRangesForRange(new re.e(this._position.lineNumber,this._position.column,this._position.lineNumber,this._position.column+n),!1);if(!o||0===o.length)return null;const s=o[0];if(s.outsideRenderedLine||0===s.ranges.length)return null;const r=s.ranges[0],a=r.width<1?this._typicalHalfwidthCharacterWidth:r.width;let l="";if(this._cursorStyle===j.d2.Block){const e=this._context.model.getViewLineData(this._position.lineNumber);t=i.substr(this._position.column-1,n);const o=e.tokens.findTokenIndexAtOffset(this._position.column-1);l=e.tokens.getClassName(o)}let d=e.getVerticalOffsetForLineNumber(this._position.lineNumber)-e.bigNumbersDelta,c=this._lineHeight;return this._cursorStyle!==j.d2.Underline&&this._cursorStyle!==j.d2.UnderlineThin||(d+=this._lineHeight-2,c=2),new di(d,r.left,a,c,t,l)}prepareRender(e){this._renderData=this._prepareRender(e)}render(e){return this._renderData?(this._lastRenderedContent!==this._renderData.textContent&&(this._lastRenderedContent=this._renderData.textContent,this._domNode.domNode.textContent=this._lastRenderedContent),this._domNode.setClassName(`cursor ${Ve.S} ${this._renderData.textContentClassName}`),this._domNode.setDisplay("block"),this._domNode.setTop(this._renderData.top),this._domNode.setLeft(this._renderData.left),this._domNode.setWidth(this._renderData.width),this._domNode.setLineHeight(this._renderData.height),this._domNode.setHeight(this._renderData.height),{domNode:this._domNode.domNode,position:this._position,contentLeft:this._renderData.left,height:this._renderData.height,width:2}):(this._domNode.setDisplay("none"),null)}}class ui extends A{constructor(e){super(e);const t=this._context.configuration.options;this._readOnly=t.get(80),this._cursorBlinking=t.get(22),this._cursorStyle=t.get(24),this._cursorSmoothCaretAnimation=t.get(23),this._selectionIsEmpty=!0,this._isComposingInput=!1,this._isVisible=!1,this._primaryCursor=new ci(this._context),this._secondaryCursors=[],this._renderData=[],this._domNode=(0,v.X)(document.createElement("div")),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._updateDomClassName(),this._domNode.appendChild(this._primaryCursor.getDomNode()),this._startCursorBlinkAnimation=new S._F,this._cursorFlatBlinkInterval=new S.zh,this._blinkingEnabled=!1,this._editorHasFocus=!1,this._updateBlinking()}dispose(){super.dispose(),this._startCursorBlinkAnimation.dispose(),this._cursorFlatBlinkInterval.dispose()}getDomNode(){return this._domNode}onCompositionStart(e){return this._isComposingInput=!0,this._updateBlinking(),!0}onCompositionEnd(e){return this._isComposingInput=!1,this._updateBlinking(),!0}onConfigurationChanged(e){const t=this._context.configuration.options;this._readOnly=t.get(80),this._cursorBlinking=t.get(22),this._cursorStyle=t.get(24),this._cursorSmoothCaretAnimation=t.get(23),this._updateBlinking(),this._updateDomClassName(),this._primaryCursor.onConfigurationChanged(e);for(let t=0,i=this._secondaryCursors.length;tt.length){const e=this._secondaryCursors.length-t.length;for(let t=0;t{for(let i=0,n=e.ranges.length;i{this._isVisible?this._hide():this._show()}),ui.BLINK_INTERVAL):this._startCursorBlinkAnimation.setIfNotSet((()=>{this._blinkingEnabled=!0,this._updateDomClassName()}),ui.BLINK_INTERVAL))}_updateDomClassName(){this._domNode.setClassName(this._getClassName())}_getClassName(){let e="cursors-layer";switch(this._selectionIsEmpty||(e+=" has-selection"),this._cursorStyle){case j.d2.Line:e+=" cursor-line-style";break;case j.d2.Block:e+=" cursor-block-style";break;case j.d2.Underline:e+=" cursor-underline-style";break;case j.d2.LineThin:e+=" cursor-line-thin-style";break;case j.d2.BlockOutline:e+=" cursor-block-outline-style";break;case j.d2.UnderlineThin:e+=" cursor-underline-thin-style";break;default:e+=" cursor-line-style"}if(this._blinkingEnabled)switch(this._getCursorBlinking()){case 1:e+=" cursor-blink";break;case 2:e+=" cursor-smooth";break;case 3:e+=" cursor-phase";break;case 4:e+=" cursor-expand";break;default:e+=" cursor-solid"}else e+=" cursor-solid";return this._cursorSmoothCaretAnimation&&(e+=" cursor-smooth-caret-animation"),e}_show(){this._primaryCursor.show();for(let e=0,t=this._secondaryCursors.length;e{const i=e.getColor(Re.n0);if(i){let n=e.getColor(Re.fY);n||(n=i.opposite()),t.addRule(`.monaco-editor .cursors-layer .cursor { background-color: ${i}; border-color: ${i}; color: ${n}; }`),"hc"===e.type&&t.addRule(`.monaco-editor .cursors-layer.has-selection .cursor { border-left: 1px solid ${n}; border-right: 1px solid ${n}; }`)}}));const gi=()=>{throw new Error("Invalid change accessor")};class pi extends A{constructor(e){super(e);const t=this._context.configuration.options,i=t.get(129);this._lineHeight=t.get(58),this._contentWidth=i.contentWidth,this._contentLeft=i.contentLeft,this.domNode=(0,v.X)(document.createElement("div")),this.domNode.setClassName("view-zones"),this.domNode.setPosition("absolute"),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.marginDomNode=(0,v.X)(document.createElement("div")),this.marginDomNode.setClassName("margin-view-zones"),this.marginDomNode.setPosition("absolute"),this.marginDomNode.setAttribute("role","presentation"),this.marginDomNode.setAttribute("aria-hidden","true"),this._zones={}}dispose(){super.dispose(),this._zones={}}_recomputeWhitespacesProps(){const e=this._context.viewLayout.getWhitespaces(),t=new Map;for(const i of e)t.set(i.id,i);let i=!1;return this._context.model.changeWhitespace((e=>{const n=Object.keys(this._zones);for(let o=0,s=n.length;o{const n={addZone:e=>(t=!0,this._addZone(i,e)),removeZone:e=>{e&&(t=this._removeZone(i,e)||t)},layoutZone:e=>{e&&(t=this._layoutZone(i,e)||t)}};!function(e,t){try{e(t)}catch(e){(0,d.dL)(e)}}(e,n),n.addZone=gi,n.removeZone=gi,n.layoutZone=gi})),t}_addZone(e,t){const i=this._computeWhitespaceProps(t),n={whitespaceId:e.insertWhitespace(i.afterViewLineNumber,this._getZoneOrdinal(t),i.heightInPx,i.minWidthInPx),delegate:t,isInHiddenArea:i.isInHiddenArea,isVisible:!1,domNode:(0,v.X)(t.domNode),marginDomNode:t.marginDomNode?(0,v.X)(t.marginDomNode):null};return this._safeCallOnComputedHeight(n.delegate,i.heightInPx),n.domNode.setPosition("absolute"),n.domNode.domNode.style.width="100%",n.domNode.setDisplay("none"),n.domNode.setAttribute("monaco-view-zone",n.whitespaceId),this.domNode.appendChild(n.domNode),n.marginDomNode&&(n.marginDomNode.setPosition("absolute"),n.marginDomNode.domNode.style.width="100%",n.marginDomNode.setDisplay("none"),n.marginDomNode.setAttribute("monaco-view-zone",n.whitespaceId),this.marginDomNode.appendChild(n.marginDomNode)),this._zones[n.whitespaceId]=n,this.setShouldRender(),n.whitespaceId}_removeZone(e,t){if(this._zones.hasOwnProperty(t)){const i=this._zones[t];return delete this._zones[t],e.removeWhitespace(i.whitespaceId),i.domNode.removeAttribute("monaco-visible-view-zone"),i.domNode.removeAttribute("monaco-view-zone"),i.domNode.domNode.parentNode.removeChild(i.domNode.domNode),i.marginDomNode&&(i.marginDomNode.removeAttribute("monaco-visible-view-zone"),i.marginDomNode.removeAttribute("monaco-view-zone"),i.marginDomNode.domNode.parentNode.removeChild(i.marginDomNode.domNode)),this.setShouldRender(),!0}return!1}_layoutZone(e,t){if(this._zones.hasOwnProperty(t)){const i=this._zones[t],n=this._computeWhitespaceProps(i.delegate);return i.isInHiddenArea=n.isInHiddenArea,e.changeOneWhitespace(i.whitespaceId,n.afterViewLineNumber,n.heightInPx),this._safeCallOnComputedHeight(i.delegate,n.heightInPx),this.setShouldRender(),!0}return!1}shouldSuppressMouseDownOnViewZone(e){if(this._zones.hasOwnProperty(e)){const t=this._zones[e];return Boolean(t.delegate.suppressMouseDown)}return!1}_heightInPixels(e){return"number"==typeof e.heightInPx?e.heightInPx:"number"==typeof e.heightInLines?this._lineHeight*e.heightInLines:this._lineHeight}_minWidthInPixels(e){return"number"==typeof e.minWidthInPx?e.minWidthInPx:0}_safeCallOnComputedHeight(e,t){if("function"==typeof e.onComputedHeight)try{e.onComputedHeight(t)}catch(e){(0,d.dL)(e)}}_safeCallOnDomNodeTop(e,t){if("function"==typeof e.onDomNodeTop)try{e.onDomNodeTop(t)}catch(e){(0,d.dL)(e)}}prepareRender(e){}render(e){const t=e.viewportData.whitespaceViewportData,i={};let n=!1;for(const e of t)this._zones[e.id].isInHiddenArea||(i[e.id]=e,n=!0);const o=Object.keys(this._zones);for(let t=0,n=o.length;t{this._context.theme.update(e),this._context.model.onDidColorThemeChange(),this.render(!0,!1)}))),this._viewParts=[],this._textAreaHandler=new ze(this._context,r,this._createTextAreaHandlerHelper()),this._viewParts.push(this._textAreaHandler),this._linesContent=(0,v.X)(document.createElement("div")),this._linesContent.setClassName("lines-content monaco-editor-background"),this._linesContent.setPosition("absolute"),this.domNode=(0,v.X)(document.createElement("div")),this.domNode.setClassName(this._getEditorClassName()),this.domNode.setAttribute("role","code"),this._overflowGuardContainer=(0,v.X)(document.createElement("div")),R.write(this._overflowGuardContainer,3),this._overflowGuardContainer.setClassName("overflow-guard"),this._scrollbar=new pt(this._context,this._linesContent,this.domNode,this._overflowGuardContainer),this._viewParts.push(this._scrollbar),this._viewLines=new xt(this._context,this._linesContent),this._viewZones=new pi(this._context),this._viewParts.push(this._viewZones);const a=new Jt(this._context);this._viewParts.push(a);const l=new ni(this._context);this._viewParts.push(l);const h=new et(this._context);this._viewParts.push(h),h.addDynamicOverlay(new ht(this._context)),h.addDynamicOverlay(new li(this._context)),h.addDynamicOverlay(new wt(this._context)),h.addDynamicOverlay(new ct(this._context));const d=new tt(this._context);this._viewParts.push(d),d.addDynamicOverlay(new dt(this._context)),d.addDynamicOverlay(new _t(this._context)),d.addDynamicOverlay(new Dt(this._context)),d.addDynamicOverlay(new kt(this._context)),d.addDynamicOverlay(new Pe(this._context));const c=new Fe(this._context);c.getDomNode().appendChild(this._viewZones.marginDomNode),c.getDomNode().appendChild(d.getDomNode()),this._viewParts.push(c),this._contentWidgets=new nt(this._context,this.domNode),this._viewParts.push(this._contentWidgets),this._viewCursors=new ui(this._context),this._viewParts.push(this._viewCursors),this._overlayWidgets=new Qt(this._context),this._viewParts.push(this._overlayWidgets);const u=new ii(this._context);this._viewParts.push(u);const g=new qt(this._context);if(this._viewParts.push(g),a){const e=this._scrollbar.getOverviewRulerLayoutInfo();e.parent.insertBefore(a.getDomNode(),e.insertBefore)}this._linesContent.appendChild(h.getDomNode()),this._linesContent.appendChild(u.domNode),this._linesContent.appendChild(this._viewZones.domNode),this._linesContent.appendChild(this._viewLines.getDomNode()),this._linesContent.appendChild(this._contentWidgets.domNode),this._linesContent.appendChild(this._viewCursors.getDomNode()),this._overflowGuardContainer.appendChild(c.getDomNode()),this._overflowGuardContainer.appendChild(this._scrollbar.getDomNode()),this._overflowGuardContainer.appendChild(l.getDomNode()),this._overflowGuardContainer.appendChild(this._textAreaHandler.textArea),this._overflowGuardContainer.appendChild(this._textAreaHandler.textAreaCover),this._overflowGuardContainer.appendChild(this._overlayWidgets.getDomNode()),this._overflowGuardContainer.appendChild(g.getDomNode()),this.domNode.appendChild(this._overflowGuardContainer),s?s.appendChild(this._contentWidgets.overflowingContentWidgetsDomNode.domNode):this.domNode.appendChild(this._contentWidgets.overflowingContentWidgetsDomNode),this._applyLayout(),this._pointerHandler=this._register(new Ie(this._context,r,this._createPointerHandlerHelper()))}_flushAccumulatedAndRenderNow(){this._renderNow()}_createPointerHandlerHelper(){return{viewDomNode:this.domNode.domNode,linesContentDomNode:this._linesContent.domNode,focusTextArea:()=>{this.focus()},dispatchTextAreaEvent:e=>{this._textAreaHandler.textArea.domNode.dispatchEvent(e)},getLastRenderData:()=>{const e=this._viewCursors.getLastRenderData()||[],t=this._textAreaHandler.getLastRenderData();return new ce(e,t)},shouldSuppressMouseDownOnViewZone:e=>this._viewZones.shouldSuppressMouseDownOnViewZone(e),shouldSuppressMouseDownOnWidget:e=>this._contentWidgets.shouldSuppressMouseDownOnWidget(e),getPositionFromDOMInfo:(e,t)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.getPositionFromDOMInfo(e,t)),visibleRangeForPosition:(e,t)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.visibleRangeForPosition(new se.L(e,t))),getLineWidth:e=>(this._flushAccumulatedAndRenderNow(),this._viewLines.getLineWidth(e))}}_createTextAreaHandlerHelper(){return{visibleRangeForPositionRelativeToEditor:(e,t)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.visibleRangeForPosition(new se.L(e,t)))}}_applyLayout(){const e=this._context.configuration.options.get(129);this.domNode.setWidth(e.width),this.domNode.setHeight(e.height),this._overflowGuardContainer.setWidth(e.width),this._overflowGuardContainer.setHeight(e.height),this._linesContent.setWidth(1e6),this._linesContent.setHeight(1e6)}_getEditorClassName(){const e=this._textAreaHandler.isFocused()?" focused":"";return this._context.configuration.options.get(126)+" "+(0,Oe.m6)(this._context.theme.type)+e}handleEvents(e){super.handleEvents(e),this._scheduleRender()}onConfigurationChanged(e){return this._configPixelRatio=this._context.configuration.options.get(127),this.domNode.setClassName(this._getEditorClassName()),this._applyLayout(),!1}onCursorStateChanged(e){return this._selections=e.selections,!1}onFocusChanged(e){return this.domNode.setClassName(this._getEditorClassName()),!1}onThemeChanged(e){return this.domNode.setClassName(this._getEditorClassName()),!1}dispose(){null!==this._renderAnimationFrame&&(this._renderAnimationFrame.dispose(),this._renderAnimationFrame=null),this._contentWidgets.overflowingContentWidgetsDomNode.domNode.remove(),this._context.removeEventHandler(this),this._viewLines.dispose();for(const e of this._viewParts)e.dispose();super.dispose()}_scheduleRender(){null===this._renderAnimationFrame&&(this._renderAnimationFrame=h.lI(this._onRenderScheduled.bind(this),100))}_onRenderScheduled(){this._renderAnimationFrame=null,this._flushAccumulatedAndRenderNow()}_renderNow(){!function(e){try{e()}catch(e){(0,d.dL)(e)}}((()=>this._actualRender()))}_getViewPartsToRender(){let e=[],t=0;for(const i of this._viewParts)i.shouldRender()&&(e[t++]=i);return e}_actualRender(){if(!h.Uw(this.domNode.domNode))return;let e=this._getViewPartsToRender();if(!this._viewLines.shouldRender()&&0===e.length)return;const t=this._context.viewLayout.getLinesViewportData();this._context.model.setViewport(t.startLineNumber,t.endLineNumber,t.centeredLineNumber);const i=new _i(this._selections,t,this._context.viewLayout.getWhitespaceViewportData(),this._context.model);this._contentWidgets.shouldRender()&&this._contentWidgets.onBeforeRender(i),this._viewLines.shouldRender()&&(this._viewLines.renderText(i),this._viewLines.onDidRender(),e=this._getViewPartsToRender());const n=new P(this._context.viewLayout,i,this._viewLines);for(const t of e)t.prepareRender(n);for(const t of e)t.render(n),t.onDidRender();Math.abs(f.mX()-this._configPixelRatio)>.001&&this._context.configuration.updatePixelRatio()}delegateVerticalScrollbarMouseDown(e){this._scrollbar.delegateVerticalScrollbarMouseDown(e)}restoreState(e){this._context.model.setScrollPosition({scrollTop:e.scrollTop},1),this._context.model.tokenizeViewport(),this._renderNow(),this._viewLines.updateLineWidths(),this._context.model.setScrollPosition({scrollLeft:e.scrollLeft},1)}getOffsetForColumn(e,t){const i=this._context.model.validateModelPosition({lineNumber:e,column:t}),n=this._context.model.coordinatesConverter.convertModelPositionToViewPosition(i);this._flushAccumulatedAndRenderNow();const o=this._viewLines.visibleRangeForPosition(new se.L(n.lineNumber,n.column));return o?o.left:-1}getTargetAtClientPoint(e,t){const i=this._pointerHandler.getTargetAtClientPoint(e,t);return i?$e.convertViewToModelMouseTarget(i,this._context.model.coordinatesConverter):null}createOverviewRuler(e){return new ti(this._context,e)}change(e){this._viewZones.changeViewZones(e),this._scheduleRender()}render(e,t){if(t){this._viewLines.forceShouldRender();for(const e of this._viewParts)e.forceShouldRender()}e?this._flushAccumulatedAndRenderNow():this._scheduleRender()}focus(){this._textAreaHandler.focusTextArea()}isFocused(){return this._textAreaHandler.isFocused()}setAriaOptions(e){this._textAreaHandler.setAriaOptions(e)}addContentWidget(e){this._contentWidgets.addWidget(e.widget),this.layoutContentWidget(e),this._scheduleRender()}layoutContentWidget(e){let t=e.position&&e.position.range||null;if(null===t){const i=e.position?e.position.position:null;null!==i&&(t=new re.e(i.lineNumber,i.column,i.lineNumber,i.column))}const i=e.position?e.position.preference:null;this._contentWidgets.setWidgetPosition(e.widget,t,i),this._scheduleRender()}removeContentWidget(e){this._contentWidgets.removeWidget(e.widget),this._scheduleRender()}addOverlayWidget(e){this._overlayWidgets.addWidget(e.widget),this.layoutOverlayWidget(e),this._scheduleRender()}layoutOverlayWidget(e){const t=e.position?e.position.preference:null;this._overlayWidgets.setWidgetPosition(e.widget,t)&&this._scheduleRender()}removeOverlayWidget(e){this._overlayWidgets.removeWidget(e.widget),this._scheduleRender()}}class bi{constructor(e){this._selTrackedRange=null,this._trackSelection=!0,this._setState(e,new ae.rS(new re.e(1,1,1,1),0,new se.L(1,1),0),new ae.rS(new re.e(1,1,1,1),0,new se.L(1,1),0))}dispose(e){this._removeTrackedRange(e)}startTrackingSelection(e){this._trackSelection=!0,this._updateTrackedRange(e)}stopTrackingSelection(e){this._trackSelection=!1,this._removeTrackedRange(e)}_updateTrackedRange(e){this._trackSelection&&(this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,this.modelState.selection,0))}_removeTrackedRange(e){this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,null,0)}asCursorState(){return new ae.Vi(this.modelState,this.viewState)}readSelectionFromMarkers(e){const t=e.model._getTrackedRange(this._selTrackedRange);return 0===this.modelState.selection.getDirection()?new _.Y(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):new _.Y(t.endLineNumber,t.endColumn,t.startLineNumber,t.startColumn)}ensureValidState(e){this._setState(e,this.modelState,this.viewState)}setState(e,t,i){this._setState(e,t,i)}static _validatePositionWithCache(e,t,i,n){return t.equals(i)?n:e.normalizePosition(t,2)}static _validateViewState(e,t){const i=t.position,n=t.selectionStart.getStartPosition(),o=t.selectionStart.getEndPosition(),s=e.normalizePosition(i,2),r=this._validatePositionWithCache(e,n,i,s),a=this._validatePositionWithCache(e,o,n,r);return i.equals(s)&&n.equals(r)&&o.equals(a)?t:new ae.rS(re.e.fromPositions(r,a),t.selectionStartLeftoverVisibleColumns+n.column-r.column,s,t.leftoverVisibleColumns+i.column-s.column)}_setState(e,t,i){if(i&&(i=bi._validateViewState(e.viewModel,i)),t){const i=e.model.validateRange(t.selectionStart),n=t.selectionStart.equalsRange(i)?t.selectionStartLeftoverVisibleColumns:0,o=e.model.validatePosition(t.position),s=t.position.equals(o)?t.leftoverVisibleColumns:0;t=new ae.rS(i,n,o,s)}else{if(!i)return;const n=e.model.validateRange(e.coordinatesConverter.convertViewRangeToModelRange(i.selectionStart)),o=e.model.validatePosition(e.coordinatesConverter.convertViewPositionToModelPosition(i.position));t=new ae.rS(n,i.selectionStartLeftoverVisibleColumns,o,i.leftoverVisibleColumns)}if(i){const n=e.coordinatesConverter.validateViewRange(i.selectionStart,t.selectionStart),o=e.coordinatesConverter.validateViewPosition(i.position,t.position);i=new ae.rS(n,t.selectionStartLeftoverVisibleColumns,o,t.leftoverVisibleColumns)}else{const n=e.coordinatesConverter.convertModelPositionToViewPosition(new se.L(t.selectionStart.startLineNumber,t.selectionStart.startColumn)),o=e.coordinatesConverter.convertModelPositionToViewPosition(new se.L(t.selectionStart.endLineNumber,t.selectionStart.endColumn)),s=new re.e(n.lineNumber,n.column,o.lineNumber,o.column),r=e.coordinatesConverter.convertModelPositionToViewPosition(t.position);i=new ae.rS(s,t.selectionStartLeftoverVisibleColumns,r,t.leftoverVisibleColumns)}this.modelState=t,this.viewState=i,this._updateTrackedRange(e)}}class Ci{constructor(e){this.context=e,this.primaryCursor=new bi(e),this.secondaryCursors=[],this.lastAddedCursorIndex=0}dispose(){this.primaryCursor.dispose(this.context),this.killSecondaryCursors()}startTrackingSelections(){this.primaryCursor.startTrackingSelection(this.context);for(let e=0,t=this.secondaryCursors.length;ei){let e=t-i;for(let t=0;t=e+1&&this.lastAddedCursorIndex--,this.secondaryCursors[e].dispose(this.context),this.secondaryCursors.splice(e,1)}_getAll(){let e=[];e[0]=this.primaryCursor;for(let t=0,i=this.secondaryCursors.length;te.selection.startLineNumber===t.selection.startLineNumber?e.selection.startColumn-t.selection.startColumn:e.selection.startLineNumber-t.selection.startLineNumber));for(let i=0;ia&&e.index--;e.splice(a,1),t.splice(r,1),this._removeSecondaryCursor(a-1),i--}}}}var wi=i(75805),Si=i(74502),yi=i(64685);class Li{constructor(){this.type=0}}class Ni{constructor(){this.type=1}}class xi{constructor(e){this.type=2,this._source=e}hasChanged(e){return this._source.hasChanged(e)}}class ki{constructor(e,t){this.type=3,this.selections=e,this.modelSelections=t}}class Di{constructor(e){this.type=4,e?(this.affectsMinimap=e.affectsMinimap,this.affectsOverviewRuler=e.affectsOverviewRuler):(this.affectsMinimap=!0,this.affectsOverviewRuler=!0)}}class Ei{constructor(){this.type=5}}class Ii{constructor(e){this.type=6,this.isFocused=e}}class Ti{constructor(){this.type=7}}class Mi{constructor(){this.type=8}}class Ai{constructor(e,t){this.type=9,this.fromLineNumber=e,this.toLineNumber=t}}class Ri{constructor(e,t){this.type=10,this.fromLineNumber=e,this.toLineNumber=t}}class Oi{constructor(e,t){this.type=11,this.fromLineNumber=e,this.toLineNumber=t}}class Pi{constructor(e,t,i,n,o,s){this.type=12,this.source=e,this.range=t,this.selections=i,this.verticalType=n,this.revealHorizontal=o,this.scrollType=s}}class Fi{constructor(e){this.type=13,this.scrollWidth=e.scrollWidth,this.scrollLeft=e.scrollLeft,this.scrollHeight=e.scrollHeight,this.scrollTop=e.scrollTop,this.scrollWidthChanged=e.scrollWidthChanged,this.scrollLeftChanged=e.scrollLeftChanged,this.scrollHeightChanged=e.scrollHeightChanged,this.scrollTopChanged=e.scrollTopChanged}}class Bi{constructor(){this.type=14}}class Vi{constructor(e){this.type=15,this.ranges=e}}class Wi{constructor(){this.type=16}}class Hi{constructor(){this.type=17}}class zi extends u.JT{constructor(){super(),this._onEvent=this._register(new c.Q5),this.onEvent=this._onEvent.event,this._eventHandlers=[],this._viewEventQueue=null,this._isConsumingViewEventQueue=!1,this._collector=null,this._collectorCnt=0,this._outgoingEvents=[]}emitOutgoingEvent(e){this._addOutgoingEvent(e),this._emitOutgoingEvents()}_addOutgoingEvent(e){for(let t=0,i=this._outgoingEvents.length;t0;){if(this._collector||this._isConsumingViewEventQueue)return;const e=this._outgoingEvents.shift();e.isNoOp()||this._onEvent.fire(e)}}addViewEventHandler(e){for(let t=0,i=this._eventHandlers.length;t0&&this._emitMany(t)}this._emitOutgoingEvents()}emitSingleViewEvent(e){try{this.beginEmitViewEvents().emitViewEvent(e)}finally{this.endEmitViewEvents()}}_emitMany(e){this._viewEventQueue?this._viewEventQueue=this._viewEventQueue.concat(e):this._viewEventQueue=e,this._isConsumingViewEventQueue||this._consumeViewEventQueue()}_consumeViewEventQueue(){try{this._isConsumingViewEventQueue=!0,this._doConsumeQueue()}finally{this._isConsumingViewEventQueue=!1}}_doConsumeQueue(){for(;this._viewEventQueue;){const e=this._viewEventQueue;this._viewEventQueue=null;const t=this._eventHandlers.slice(0);for(const i of t)i.handleEvents(e)}}}class Ki{constructor(){this.viewEvents=[],this.outgoingEvents=[]}emitViewEvent(e){this.viewEvents.push(e)}emitOutgoingEvent(e){this.outgoingEvents.push(e)}}class Ui{constructor(e,t,i,n){this.kind=0,this._oldContentWidth=e,this._oldContentHeight=t,this.contentWidth=i,this.contentHeight=n,this.contentWidthChanged=this._oldContentWidth!==this.contentWidth,this.contentHeightChanged=this._oldContentHeight!==this.contentHeight}isNoOp(){return!this.contentWidthChanged&&!this.contentHeightChanged}merge(e){return 0!==e.kind?this:new Ui(this._oldContentWidth,this._oldContentHeight,e.contentWidth,e.contentHeight)}}class $i{constructor(e,t){this.kind=1,this.oldHasFocus=e,this.hasFocus=t}isNoOp(){return this.oldHasFocus===this.hasFocus}merge(e){return 1!==e.kind?this:new $i(this.oldHasFocus,e.hasFocus)}}class ji{constructor(e,t,i,n,o,s,r,a){this.kind=2,this._oldScrollWidth=e,this._oldScrollLeft=t,this._oldScrollHeight=i,this._oldScrollTop=n,this.scrollWidth=o,this.scrollLeft=s,this.scrollHeight=r,this.scrollTop=a,this.scrollWidthChanged=this._oldScrollWidth!==this.scrollWidth,this.scrollLeftChanged=this._oldScrollLeft!==this.scrollLeft,this.scrollHeightChanged=this._oldScrollHeight!==this.scrollHeight,this.scrollTopChanged=this._oldScrollTop!==this.scrollTop}isNoOp(){return!(this.scrollWidthChanged||this.scrollLeftChanged||this.scrollHeightChanged||this.scrollTopChanged)}merge(e){return 2!==e.kind?this:new ji(this._oldScrollWidth,this._oldScrollLeft,this._oldScrollHeight,this._oldScrollTop,e.scrollWidth,e.scrollLeft,e.scrollHeight,e.scrollTop)}}class qi{constructor(){this.kind=3}isNoOp(){return!1}merge(e){return this}}class Gi{constructor(e,t,i,n,o,s,r){this.kind=6,this.oldSelections=e,this.selections=t,this.oldModelVersionId=i,this.modelVersionId=n,this.source=o,this.reason=s,this.reachedMaxCursorCount=r}static _selectionsAreEqual(e,t){if(!e&&!t)return!0;if(!e||!t)return!1;const i=e.length;if(i!==t.length)return!1;for(let n=0;n=t.length)return!1;if(!t[i].strictContainsRange(e[i]))return!1}return!0}}class Xi extends u.JT{constructor(e,t,i,n){super(),this._model=e,this._knownModelVersionId=this._model.getVersionId(),this._viewModel=t,this._coordinatesConverter=i,this.context=new ae.zp(this._model,this._viewModel,this._coordinatesConverter,n),this._cursors=new Ci(this.context),this._hasFocus=!1,this._isHandling=!1,this._isDoingComposition=!1,this._selectionsWhenCompositionStarted=null,this._columnSelectData=null,this._autoClosedActions=[],this._prevEditOperationType=0}dispose(){this._cursors.dispose(),this._autoClosedActions=(0,u.B9)(this._autoClosedActions),super.dispose()}updateConfiguration(e){this.context=new ae.zp(this._model,this._viewModel,this._coordinatesConverter,e),this._cursors.updateContext(this.context)}onLineMappingChanged(e){this._knownModelVersionId===this._model.getVersionId()&&this.setStates(e,"viewModel",0,this.getCursorStates())}setHasFocus(e){this._hasFocus=e}_validateAutoClosedActions(){if(this._autoClosedActions.length>0){let e=this._cursors.getSelections();for(let t=0;tXi.MAX_CURSOR_COUNT&&(n=n.slice(0,Xi.MAX_CURSOR_COUNT),o=!0);const s=new Qi(this._model,this);return this._cursors.setStates(n),this._cursors.normalize(),this._columnSelectData=null,this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(e,t,i,s,o)}setCursorColumnSelectData(e){this._columnSelectData=e}revealPrimary(e,t,i,n){const o=this._cursors.getViewPositions();if(o.length>1)this._emitCursorRevealRange(e,t,null,this._cursors.getViewSelections(),0,i,n);else{const s=o[0],r=new re.e(s.lineNumber,s.column,s.lineNumber,s.column);this._emitCursorRevealRange(e,t,r,null,0,i,n)}}_revealPrimaryCursor(e,t,i,n,o){const s=this._cursors.getViewPositions();if(s.length>1)this._emitCursorRevealRange(e,t,null,this._cursors.getViewSelections(),i,n,o);else{const r=s[0],a=new re.e(r.lineNumber,r.column,r.lineNumber,r.column);this._emitCursorRevealRange(e,t,a,null,i,n,o)}}_emitCursorRevealRange(e,t,i,n,o,s,r){e.emitViewEvent(new Pi(t,i,n,o,s,r))}saveState(){let e=[];const t=this._cursors.getSelections();for(let i=0,n=t.length;i0){const i=ae.Vi.fromModelSelections(t.resultingSelection);this.setStates(e,"modelChange",t.isUndoing?5:t.isRedoing?6:2,i)&&this._revealPrimaryCursor(e,"modelChange",0,!0,0)}else{const t=this._cursors.readSelectionFromMarkers();this.setStates(e,"modelChange",2,ae.Vi.fromModelSelections(t))}}}getSelection(){return this._cursors.getPrimaryCursor().modelState.selection}getTopMostViewPosition(){return this._cursors.getTopMostViewPosition()}getBottomMostViewPosition(){return this._cursors.getBottomMostViewPosition()}getCursorColumnSelectData(){if(this._columnSelectData)return this._columnSelectData;const e=this._cursors.getPrimaryCursor(),t=e.viewState.selectionStart.getStartPosition(),i=e.viewState.position;return{isReal:!1,fromViewLineNumber:t.lineNumber,fromViewVisualColumn:ae.io.visibleColumnFromColumn2(this.context.cursorConfig,this._viewModel,t),toViewLineNumber:i.lineNumber,toViewVisualColumn:ae.io.visibleColumnFromColumn2(this.context.cursorConfig,this._viewModel,i)}}getSelections(){return this._cursors.getSelections()}setSelections(e,t,i,n){this.setStates(e,t,n,ae.Vi.fromModelSelections(i))}getPrevEditOperationType(){return this._prevEditOperationType}setPrevEditOperationType(e){this._prevEditOperationType=e}_pushAutoClosedAction(e,t){let i=[],n=[];for(let o=0,s=e.length;o0&&this._pushAutoClosedAction(i,n),this._prevEditOperationType=e.type}e.shouldPushStackElementAfter&&this._model.pushStackElement()}_interpretCommandResult(e){e&&0!==e.length||(e=this._cursors.readSelectionFromMarkers()),this._columnSelectData=null,this._cursors.setSelections(e),this._cursors.normalize()}_emitStateChangedIfNecessary(e,t,i,n,o){const s=new Qi(this._model,this);if(s.equals(n))return!1;const r=this._cursors.getSelections(),a=this._cursors.getViewSelections();if(e.emitViewEvent(new ki(a,r)),!n||n.cursorState.length!==s.cursorState.length||s.cursorState.some(((e,t)=>!e.modelState.equals(n.cursorState[t].modelState)))){const a=n?n.cursorState.map((e=>e.modelState.selection)):null,l=n?n.modelVersionId:0;e.emitOutgoingEvent(new Gi(a,r,l,s.modelVersionId,t||"keyboard",i,o))}return!0}_findAutoClosingPairs(e){if(!e.length)return null;let t=[];for(let i=0,n=e.length;i=0)return null;const o=n.text.match(/([)\]}>'"`])([^)\]}>'"`]*)$/);if(!o)return null;const s=o[1],r=this.context.cursorConfig.autoClosingPairs.autoClosingPairsCloseSingleChar.get(s);if(!r||1!==r.length)return null;const a=r[0].open,l=n.text.length-o[2].length-1,h=n.text.lastIndexOf(a,l-1);if(-1===h)return null;t.push([h,l])}return t}executeEdits(e,t,i,n){let o=null;"snippet"===t&&(o=this._findAutoClosingPairs(i)),o&&(i[0]._isTracked=!0);let s=[],r=[];const a=this._model.pushEditOperations(this.getSelections(),i,(e=>{if(o)for(let t=0,i=o.length;t0&&this._pushAutoClosedAction(s,r)}_executeEdit(e,t,i,n=0){if(this.context.cursorConfig.readOnly)return;const o=new Qi(this._model,this);this._cursors.stopTrackingSelections(),this._isHandling=!0;try{this._cursors.ensureValidState(),e()}catch(e){(0,d.dL)(e)}this._isHandling=!1,this._cursors.startTrackingSelections(),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(t,i,n,o,!1)&&this._revealPrimaryCursor(t,i,0,!0,0)}setIsDoingComposition(e){this._isDoingComposition=e}getAutoClosedCharacters(){return Yi.getAllAutoClosedCharacters(this._autoClosedActions)}startComposition(e){this._selectionsWhenCompositionStarted=this.getSelections().slice(0)}endComposition(e,t){this._executeEdit((()=>{"keyboard"===t&&(this._executeEditOperation(Si.u.compositionEndWithInterceptors(this._prevEditOperationType,this.context.cursorConfig,this._model,this._selectionsWhenCompositionStarted,this.getSelections(),this.getAutoClosedCharacters())),this._selectionsWhenCompositionStarted=null)}),e,t)}type(e,t,i){this._executeEdit((()=>{if("keyboard"===i){const e=t.length;let i=0;for(;i{this._executeEditOperation(Si.u.compositionType(this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),t,i,n,o))}),e,s);else if(0!==o){const t=this.getSelections().map((e=>{const t=e.getPosition();return new _.Y(t.lineNumber,t.column+o,t.lineNumber,t.column+o)}));this.setSelections(e,s,t,0)}}paste(e,t,i,n,o){this._executeEdit((()=>{this._executeEditOperation(Si.u.paste(this.context.cursorConfig,this._model,this.getSelections(),t,i,n||[]))}),e,o,4)}cut(e,t){this._executeEdit((()=>{this._executeEditOperation(wi.A.cut(this.context.cursorConfig,this._model,this.getSelections()))}),e,t)}executeCommand(e,t,i){this._executeEdit((()=>{this._cursors.killSecondaryCursors(),this._executeEditOperation(new ae.Tp(0,[t],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))}),e,i)}executeCommands(e,t,i){this._executeEdit((()=>{this._executeEditOperation(new ae.Tp(0,t,{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))}),e,i)}}Xi.MAX_CURSOR_COUNT=1e4;class Ji{static executeCommands(e,t,i){const n={model:e,selectionsBefore:t,trackedRanges:[],trackedRangesDirection:[]},o=this._innerExecuteCommands(n,i);for(let e=0,t=n.trackedRanges.length;e0&&(s[0]._isTracked=!0);let r=e.model.pushEditOperations(e.selectionsBefore,s,(i=>{let n=[];for(let t=0;te.identifier.minor-t.identifier.minor;let s=[];for(let i=0;i0?(n[i].sort(o),s[i]=t[i].computeCursorState(e.model,{getInverseEditOperations:()=>n[i],getTrackedSelection:t=>{const i=parseInt(t,10),n=e.model._getTrackedRange(e.trackedRanges[i]);return 0===e.trackedRangesDirection[i]?new _.Y(n.startLineNumber,n.startColumn,n.endLineNumber,n.endColumn):new _.Y(n.endLineNumber,n.endColumn,n.startLineNumber,n.startColumn)}})):s[i]=e.selectionsBefore[i];return s}));r||(r=e.selectionsBefore);let a=[];for(let e in o)o.hasOwnProperty(e)&&a.push(parseInt(e,10));a.sort(((e,t)=>t-e));for(const e of a)r.splice(e,1);return r}static _arrayIsEmpty(e){for(let t=0,i=e.length;t{re.e.isEmpty(e)&&""===s||n.push({identifier:{major:t,minor:o++},range:e,text:s,forceMoveMarkers:r,isAutoWhitespaceEdit:i.insertsAutoWhitespace})};let r=!1;const a={addEditOperation:s,addTrackedEditOperation:(e,t,i)=>{r=!0,s(e,t,i)},trackSelection:(t,i)=>{const n=_.Y.liftSelection(t);let o;if(n.isEmpty())if("boolean"==typeof i)o=i?2:3;else{const t=e.model.getLineMaxColumn(n.startLineNumber);o=n.startColumn===t?2:3}else o=1;const s=e.trackedRanges.length,r=e.model._setTrackedRange(null,n,o);return e.trackedRanges[s]=r,e.trackedRangesDirection[s]=n.getDirection(),s.toString()}};try{i.getEditOperations(e.model,a)}catch(e){return(0,d.dL)(e),{operations:[],hadTrackedEditOperation:!1}}return{operations:n,hadTrackedEditOperation:r}}static _getLoserCursorMap(e){(e=e.slice(0)).sort(((e,t)=>-re.e.compareRangesUsingEnds(e.range,t.range)));let t={};for(let i=1;io.identifier.major?n.identifier.major:o.identifier.major,t[s.toString()]=!0;for(let t=0;t0&&i--}}return t}}var en=i(78385),tn=i(91676),nn=i(68987),on=i(5972),sn=i(28962);class rn{constructor(){this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[]}insert(e){this._hasPending=!0,this._inserts.push(e)}change(e){this._hasPending=!0,this._changes.push(e)}remove(e){this._hasPending=!0,this._removes.push(e)}mustCommit(){return this._hasPending}commit(e){if(!this._hasPending)return;const t=this._inserts,i=this._changes,n=this._removes;this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[],e._commitPendingChanges(t,i,n)}}class an{constructor(e,t,i,n,o){this.id=e,this.afterLineNumber=t,this.ordinal=i,this.height=n,this.minWidth=o,this.prefixSum=0}}class ln{constructor(e,t,i,n){this._instanceId=Te.PJ(++ln.INSTANCE_COUNT),this._pendingChanges=new rn,this._lastWhitespaceId=0,this._arr=[],this._prefixSumValidIndex=-1,this._minWidth=-1,this._lineCount=e,this._lineHeight=t,this._paddingTop=i,this._paddingBottom=n}static findInsertionIndex(e,t,i){let n=0,o=e.length;for(;n>>1;t===e[s].afterLineNumber?i{t=!0,e|=0,i|=0,n|=0,o|=0;const s=this._instanceId+ ++this._lastWhitespaceId;return this._pendingChanges.insert(new an(s,e,i,n,o)),s},changeOneWhitespace:(e,i,n)=>{t=!0,i|=0,n|=0,this._pendingChanges.change({id:e,newAfterLineNumber:i,newHeight:n})},removeWhitespace:e=>{t=!0,this._pendingChanges.remove({id:e})}})}finally{this._pendingChanges.commit(this)}return t}_commitPendingChanges(e,t,i){if((e.length>0||i.length>0)&&(this._minWidth=-1),e.length+t.length+i.length<=1){for(const t of e)this._insertWhitespace(t);for(const e of t)this._changeOneWhitespace(e.id,e.newAfterLineNumber,e.newHeight);for(const e of i){const t=this._findWhitespaceIndex(e.id);-1!==t&&this._removeWhitespace(t)}return}const n=new Set;for(const e of i)n.add(e.id);const o=new Map;for(const e of t)o.set(e.id,e);const s=e=>{let t=[];for(const i of e)if(!n.has(i.id)){if(o.has(i.id)){const e=o.get(i.id);i.afterLineNumber=e.newAfterLineNumber,i.height=e.newHeight}t.push(i)}return t},r=s(this._arr).concat(s(e));r.sort(((e,t)=>e.afterLineNumber===t.afterLineNumber?e.ordinal-t.ordinal:e.afterLineNumber-t.afterLineNumber)),this._arr=r,this._prefixSumValidIndex=-1}_checkPendingChanges(){this._pendingChanges.mustCommit()&&this._pendingChanges.commit(this)}_insertWhitespace(e){const t=ln.findInsertionIndex(this._arr,e.afterLineNumber,e.ordinal);this._arr.splice(t,0,e),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,t-1)}_findWhitespaceIndex(e){const t=this._arr;for(let i=0,n=t.length;it&&(this._arr[i].afterLineNumber-=t-e+1)}}onLinesInserted(e,t){this._checkPendingChanges(),e|=0,t|=0,this._lineCount+=t-e+1;for(let i=0,n=this._arr.length;i=t.length||t[o+1].afterLineNumber>=e)return o;i=o+1|0}else n=o-1|0}return-1}_findFirstWhitespaceAfterLineNumber(e){e|=0;const t=this._findLastWhitespaceBeforeLineNumber(e)+1;return t1?this._lineHeight*(e-1):0;return t+this.getWhitespaceAccumulatedHeightBeforeLineNumber(e)+this._paddingTop}getWhitespaceMinWidth(){if(this._checkPendingChanges(),-1===this._minWidth){let e=0;for(let t=0,i=this._arr.length;tthis.getLinesTotalHeight()}isInTopPadding(e){return 0!==this._paddingTop&&(this._checkPendingChanges(),e=this.getLinesTotalHeight()-this._paddingBottom}getLineNumberAtOrAfterVerticalOffset(e){if(this._checkPendingChanges(),(e|=0)<0)return 1;const t=0|this._lineCount,i=this._lineHeight;let n=1,o=t;for(;n=s+i)n=t+1;else{if(e>=s)return t;o=t}}return n>t?t:n}getLinesViewportData(e,t){this._checkPendingChanges(),e|=0,t|=0;const i=this._lineHeight,n=0|this.getLineNumberAtOrAfterVerticalOffset(e),o=0|this.getVerticalOffsetForLineNumber(n);let s=0|this._lineCount,r=0|this.getFirstWhitespaceIndexAfterLineNumber(n);const a=0|this.getWhitespacesCount();let l,h;-1===r?(r=a,h=s+1,l=0):(h=0|this.getAfterLineNumberForWhitespaceIndex(r),l=0|this.getHeightForWhitespaceIndex(r));let d=o,c=d;const u=5e5;let g=0;o>=u&&(g=Math.floor(o/u)*u,g=Math.floor(g/i)*i,c-=g);const p=[],m=e+(t-e)/2;let f=-1;for(let e=n;e<=s;e++){if(-1===f){(d<=m&&mm)&&(f=e)}for(d+=i,p[e-n]=c,c+=i;h===e;)c+=l,d+=l,r++,r>=a?h=s+1:(h=0|this.getAfterLineNumberForWhitespaceIndex(r),l=0|this.getHeightForWhitespaceIndex(r));if(d>=t){s=e;break}}-1===f&&(f=s);const _=0|this.getVerticalOffsetForLineNumber(s);let v=n,b=s;return vt&&b--,{bigNumbersDelta:g,startLineNumber:n,endLineNumber:s,relativeVerticalOffset:p,centeredLineNumber:f,completelyVisibleStartLineNumber:v,completelyVisibleEndLineNumber:b}}getVerticalOffsetForWhitespaceIndex(e){this._checkPendingChanges(),e|=0;const t=this.getAfterLineNumberForWhitespaceIndex(e);let i,n;return i=t>=1?this._lineHeight*t:0,n=e>0?this.getWhitespacesAccumulatedHeight(e-1):0,i+n+this._paddingTop}getWhitespaceIndexAtOrAfterVerticallOffset(e){this._checkPendingChanges(),e|=0;let t=0,i=this.getWhitespacesCount()-1;if(i<0)return-1;if(e>=this.getVerticalOffsetForWhitespaceIndex(i)+this.getHeightForWhitespaceIndex(i))return-1;for(;t=o+this.getHeightForWhitespaceIndex(n))t=n+1;else{if(e>=o)return n;i=n}}return t}getWhitespaceAtVerticalOffset(e){this._checkPendingChanges(),e|=0;const t=this.getWhitespaceIndexAtOrAfterVerticallOffset(e);if(t<0)return null;if(t>=this.getWhitespacesCount())return null;const i=this.getVerticalOffsetForWhitespaceIndex(t);if(i>e)return null;const n=this.getHeightForWhitespaceIndex(t);return{id:this.getIdForWhitespaceIndex(t),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(t),verticalOffset:i,height:n}}getWhitespaceViewportData(e,t){this._checkPendingChanges(),e|=0,t|=0;const i=this.getWhitespaceIndexAtOrAfterVerticallOffset(e),n=this.getWhitespacesCount()-1;if(i<0)return[];let o=[];for(let e=i;e<=n;e++){const i=this.getVerticalOffsetForWhitespaceIndex(e),n=this.getHeightForWhitespaceIndex(e);if(i>=t)break;o.push({id:this.getIdForWhitespaceIndex(e),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(e),verticalOffset:i,height:n})}return o}getWhitespaces(){return this._checkPendingChanges(),this._arr.slice(0)}getWhitespacesCount(){return this._checkPendingChanges(),this._arr.length}getIdForWhitespaceIndex(e){return this._checkPendingChanges(),e|=0,this._arr[e].id}getAfterLineNumberForWhitespaceIndex(e){return this._checkPendingChanges(),e|=0,this._arr[e].afterLineNumber}getHeightForWhitespaceIndex(e){return this._checkPendingChanges(),e|=0,this._arr[e].height}}ln.INSTANCE_COUNT=0;class hn{constructor(e,t,i,n){(e|=0)<0&&(e=0),(t|=0)<0&&(t=0),(i|=0)<0&&(i=0),(n|=0)<0&&(n=0),this.width=e,this.contentWidth=t,this.scrollWidth=Math.max(e,t),this.height=i,this.contentHeight=n,this.scrollHeight=Math.max(i,n)}equals(e){return this.width===e.width&&this.contentWidth===e.contentWidth&&this.height===e.height&&this.contentHeight===e.contentHeight}}class dn extends u.JT{constructor(e,t){super(),this._onDidContentSizeChange=this._register(new c.Q5),this.onDidContentSizeChange=this._onDidContentSizeChange.event,this._dimensions=new hn(0,0,0,0),this._scrollable=this._register(new sn.Rm(e,t)),this.onDidScroll=this._scrollable.onScroll}getScrollable(){return this._scrollable}setSmoothScrollDuration(e){this._scrollable.setSmoothScrollDuration(e)}validateScrollPosition(e){return this._scrollable.validateScrollPosition(e)}getScrollDimensions(){return this._dimensions}setScrollDimensions(e){if(this._dimensions.equals(e))return;const t=this._dimensions;this._dimensions=e,this._scrollable.setScrollDimensions({width:e.width,scrollWidth:e.scrollWidth,height:e.height,scrollHeight:e.scrollHeight},!0);const i=t.contentWidth!==e.contentWidth,n=t.contentHeight!==e.contentHeight;(i||n)&&this._onDidContentSizeChange.fire(new Ui(t.contentWidth,t.contentHeight,e.contentWidth,e.contentHeight))}getFutureScrollPosition(){return this._scrollable.getFutureScrollPosition()}getCurrentScrollPosition(){return this._scrollable.getCurrentScrollPosition()}setScrollPositionNow(e){this._scrollable.setScrollPositionNow(e)}setScrollPositionSmooth(e){this._scrollable.setScrollPositionSmooth(e)}}class cn extends u.JT{constructor(e,t,i){super(),this._configuration=e;const n=this._configuration.options,o=n.get(129),s=n.get(74);this._linesLayout=new ln(t,n.get(58),s.top,s.bottom),this._scrollable=this._register(new dn(0,i)),this._configureSmoothScrollDuration(),this._scrollable.setScrollDimensions(new hn(o.contentWidth,0,o.height,0)),this.onDidScroll=this._scrollable.onDidScroll,this.onDidContentSizeChange=this._scrollable.onDidContentSizeChange,this._updateHeight()}dispose(){super.dispose()}getScrollable(){return this._scrollable.getScrollable()}onHeightMaybeChanged(){this._updateHeight()}_configureSmoothScrollDuration(){this._scrollable.setSmoothScrollDuration(this._configuration.options.get(102)?125:0)}onConfigurationChanged(e){const t=this._configuration.options;if(e.hasChanged(58)&&this._linesLayout.setLineHeight(t.get(58)),e.hasChanged(74)){const e=t.get(74);this._linesLayout.setPadding(e.top,e.bottom)}if(e.hasChanged(129)){const e=t.get(129),i=e.contentWidth,n=e.height,o=this._scrollable.getScrollDimensions(),s=o.contentWidth;this._scrollable.setScrollDimensions(new hn(i,o.contentWidth,n,this._getContentHeight(i,n,s)))}else this._updateHeight();e.hasChanged(102)&&this._configureSmoothScrollDuration()}onFlushed(e){this._linesLayout.onFlushed(e)}onLinesDeleted(e,t){this._linesLayout.onLinesDeleted(e,t)}onLinesInserted(e,t){this._linesLayout.onLinesInserted(e,t)}_getHorizontalScrollbarHeight(e,t){const i=this._configuration.options.get(91);return 2===i.horizontal||e>=t?0:i.horizontalScrollbarSize}_getContentHeight(e,t,i){const n=this._configuration.options;let o=this._linesLayout.getLinesTotalHeight();return n.get(93)?o+=Math.max(0,t-n.get(58)-n.get(74).bottom):o+=this._getHorizontalScrollbarHeight(e,i),o}_updateHeight(){const e=this._scrollable.getScrollDimensions(),t=e.width,i=e.height,n=e.contentWidth;this._scrollable.setScrollDimensions(new hn(t,e.contentWidth,i,this._getContentHeight(t,i,n)))}getCurrentViewport(){const e=this._scrollable.getScrollDimensions(),t=this._scrollable.getCurrentScrollPosition();return new Mt.l_(t.scrollTop,t.scrollLeft,e.width,e.height)}getFutureViewport(){const e=this._scrollable.getScrollDimensions(),t=this._scrollable.getFutureScrollPosition();return new Mt.l_(t.scrollTop,t.scrollLeft,e.width,e.height)}_computeContentWidth(e){const t=this._configuration.options,i=t.get(130),n=t.get(43);if(i.isViewportWrapping){const i=t.get(129),o=t.get(64);return e>i.contentWidth+n.typicalHalfwidthCharacterWidth&&o.enabled&&"right"===o.side?e+i.verticalScrollbarWidth:e}{const i=t.get(92)*n.typicalHalfwidthCharacterWidth,o=this._linesLayout.getWhitespaceMinWidth();return Math.max(e+i,o)}}setMaxLineWidth(e){const t=this._scrollable.getScrollDimensions();this._scrollable.setScrollDimensions(new hn(t.width,this._computeContentWidth(e),t.height,t.contentHeight)),this._updateHeight()}saveState(){const e=this._scrollable.getFutureScrollPosition();let t=e.scrollTop,i=this._linesLayout.getLineNumberAtOrAfterVerticalOffset(t);return{scrollTop:t,scrollTopWithoutViewZones:t-this._linesLayout.getWhitespaceAccumulatedHeightBeforeLineNumber(i),scrollLeft:e.scrollLeft}}changeWhitespace(e){const t=this._linesLayout.changeWhitespace(e);return t&&this.onHeightMaybeChanged(),t}getVerticalOffsetForLineNumber(e){return this._linesLayout.getVerticalOffsetForLineNumber(e)}isAfterLines(e){return this._linesLayout.isAfterLines(e)}isInTopPadding(e){return this._linesLayout.isInTopPadding(e)}isInBottomPadding(e){return this._linesLayout.isInBottomPadding(e)}getLineNumberAtVerticalOffset(e){return this._linesLayout.getLineNumberAtOrAfterVerticalOffset(e)}getWhitespaceAtVerticalOffset(e){return this._linesLayout.getWhitespaceAtVerticalOffset(e)}getLinesViewportData(){const e=this.getCurrentViewport();return this._linesLayout.getLinesViewportData(e.top,e.top+e.height)}getLinesViewportDataAtScrollTop(e){const t=this._scrollable.getScrollDimensions();return e+t.height>t.scrollHeight&&(e=t.scrollHeight-t.height),e<0&&(e=0),this._linesLayout.getLinesViewportData(e,e+t.height)}getWhitespaceViewportData(){const e=this.getCurrentViewport();return this._linesLayout.getWhitespaceViewportData(e.top,e.top+e.height)}getWhitespaces(){return this._linesLayout.getWhitespaces()}getContentWidth(){return this._scrollable.getScrollDimensions().contentWidth}getScrollWidth(){return this._scrollable.getScrollDimensions().scrollWidth}getContentHeight(){return this._scrollable.getScrollDimensions().contentHeight}getScrollHeight(){return this._scrollable.getScrollDimensions().scrollHeight}getCurrentScrollLeft(){return this._scrollable.getCurrentScrollPosition().scrollLeft}getCurrentScrollTop(){return this._scrollable.getCurrentScrollPosition().scrollTop}validateScrollPosition(e){return this._scrollable.validateScrollPosition(e)}setScrollPosition(e,t){1===t?this._scrollable.setScrollPositionNow(e):this._scrollable.setScrollPositionSmooth(e)}deltaScrollNow(e,t){const i=this._scrollable.getCurrentScrollPosition();this._scrollable.setScrollPositionNow({scrollLeft:i.scrollLeft+e,scrollTop:i.scrollTop+t})}}var un=i(35521),gn=i(90539);class pn{constructor(e){this._lines=e}convertViewPositionToModelPosition(e){return this._lines.convertViewPositionToModelPosition(e.lineNumber,e.column)}convertViewRangeToModelRange(e){return this._lines.convertViewRangeToModelRange(e)}validateViewPosition(e,t){return this._lines.validateViewPosition(e.lineNumber,e.column,t)}validateViewRange(e,t){return this._lines.validateViewRange(e,t)}convertModelPositionToViewPosition(e,t){return this._lines.convertModelPositionToViewPosition(e.lineNumber,e.column,t)}convertModelRangeToViewRange(e,t){return this._lines.convertModelRangeToViewRange(e,t)}modelPositionIsVisible(e){return this._lines.modelPositionIsVisible(e.lineNumber,e.column)}getModelLineViewLineCount(e){return this._lines.getModelLineViewLineCount(e)}getViewLineNumberOfModelPosition(e,t){return this._lines.getViewLineNumberOfModelPosition(e,t)}}class mn{constructor(e){this._counts=e,this._isValid=!1,this._validEndIndex=-1,this._modelToView=[],this._viewToModel=[]}_invalidate(e){this._isValid=!1,this._validEndIndex=Math.min(this._validEndIndex,e-1)}_ensureValid(){if(!this._isValid){for(let e=this._validEndIndex+1,t=this._counts.length;e0?this._modelToView[e-1]:0;this._modelToView[e]=i+t;for(let n=0;n0?this._modelToView[t-1]:0;return new gn.T(t,e-i)}}class fn{constructor(e,t,i,n,o,s,r,a,l){this._editorId=e,this.model=t,this._validModelVersionId=-1,this._domLineBreaksComputerFactory=i,this._monospaceLineBreaksComputerFactory=n,this.fontInfo=o,this.tabSize=s,this.wrappingStrategy=r,this.wrappingColumn=a,this.wrappingIndent=l,this._constructLines(!0,null)}dispose(){this.hiddenAreasIds=this.model.deltaDecorations(this.hiddenAreasIds,[])}createCoordinatesConverter(){return new pn(this)}_constructLines(e,t){this.lines=[],e&&(this.hiddenAreasIds=[]);const i=this.model.getLinesContent(),n=this.model.getInjectedTextDecorations(this._editorId),o=i.length,s=this.createLineBreaksComputer(),r=new rt.H9(yi.gk.fromDecorations(n));for(let e=0;et.lineNumber===e+1));s.addRequest(i[e],n,t?t[e]:null)}const a=s.finalize();let l=[],h=this.hiddenAreasIds.map((e=>this.model.getDecorationRange(e))).sort(re.e.compareRangesUsingStarts),d=1,c=0,u=-1,g=u+1=d&&t<=c,n=Nn(a[e],!i);l[e]=n.getViewLineCount(),this.lines[e]=n}this._validModelVersionId=this.model.getVersionId(),this.prefixSumComputer=new mn(l)}getHiddenAreas(){return this.hiddenAreasIds.map((e=>this.model.getDecorationRange(e)))}_reduceRanges(e){if(0===e.length)return[];let t=e.map((e=>this.model.validateRange(e))).sort(re.e.compareRangesUsingStarts),i=[],n=t[0].startLineNumber,o=t[0].endLineNumber;for(let e=1,s=t.length;eo+1?(i.push(new re.e(n,1,o,1)),n=s.startLineNumber,o=s.endLineNumber):s.endLineNumber>o&&(o=s.endLineNumber)}return i.push(new re.e(n,1,o,1)),i}setHiddenAreas(e){let t=this._reduceRanges(e),i=this.hiddenAreasIds.map((e=>this.model.getDecorationRange(e))).sort(re.e.compareRangesUsingStarts);if(t.length===i.length){let e=!1;for(let n=0;n=s&&t<=r?this.lines[e].isVisible()&&(this.lines[e]=this.lines[e].setVisible(!1),i=!0):(h=!0,this.lines[e].isVisible()||(this.lines[e]=this.lines[e].setVisible(!0),i=!0)),i){let t=this.lines[e].getViewLineCount();this.prefixSumComputer.changeValue(e,t)}}return h||this.setHiddenAreas([]),!0}modelPositionIsVisible(e,t){return!(e<1||e>this.lines.length)&&this.lines[e-1].isVisible()}getModelLineViewLineCount(e){return e<1||e>this.lines.length?1:this.lines[e-1].getViewLineCount()}setTabSize(e){return this.tabSize!==e&&(this.tabSize=e,this._constructLines(!1,null),!0)}setWrappingSettings(e,t,i,n){const o=this.fontInfo.equals(e),s=this.wrappingStrategy===t,r=this.wrappingColumn===i,a=this.wrappingIndent===n;if(o&&s&&r&&a)return!1;const l=o&&s&&!r&&a;this.fontInfo=e,this.wrappingStrategy=t,this.wrappingColumn=i,this.wrappingIndent=n;let h=null;if(l){h=[];for(let e=0,t=this.lines.length;e2&&!this.lines[t-2].isVisible();let s=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,r=0,a=[],l=[];for(let e=0,t=n.length;er?(l=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,h=l+r-1,u=h+1,g=u+(o-r)-1,a=!0):ot?t:0|e}getActiveIndentGuide(e,t,i){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t),i=this._toValidViewLineNumber(i);const n=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),o=this.convertViewPositionToModelPosition(t,this.getViewLineMinColumn(t)),s=this.convertViewPositionToModelPosition(i,this.getViewLineMinColumn(i)),r=this.model.getActiveIndentGuide(n.lineNumber,o.lineNumber,s.lineNumber),a=this.convertModelPositionToViewPosition(r.startLineNumber,1),l=this.convertModelPositionToViewPosition(r.endLineNumber,this.model.getLineMaxColumn(r.endLineNumber));return{startLineNumber:a.lineNumber,endLineNumber:l.lineNumber,indent:r.indent}}getViewLineInfo(e){e=this._toValidViewLineNumber(e);let t=this.prefixSumComputer.getIndexOf(e-1),i=t.index,n=t.remainder;return new _n(i+1,n)}getMinColumnOfViewLine(e){return this.lines[e.modelLineNumber-1].getViewLineMinColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx)}getModelStartPositionOfViewLine(e){const t=this.lines[e.modelLineNumber-1],i=t.getViewLineMinColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx),n=t.getModelColumnOfViewPosition(e.modelLineWrappedLineIdx,i);return new se.L(e.modelLineNumber,n)}getModelEndPositionOfViewLine(e){const t=this.lines[e.modelLineNumber-1],i=t.getViewLineMaxColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx),n=t.getModelColumnOfViewPosition(e.modelLineWrappedLineIdx,i);return new se.L(e.modelLineNumber,n)}getViewLineInfosGroupedByModelRanges(e,t){const i=this.getViewLineInfo(e),n=this.getViewLineInfo(t),o=new Array;let s=this.getModelStartPositionOfViewLine(i),r=new Array;for(let e=i.modelLineNumber;e<=n.modelLineNumber;e++){const t=this.lines[e-1];if(t.isVisible()){let o=e===i.modelLineNumber?i.modelLineWrappedLineIdx:0,s=e===n.modelLineNumber?n.modelLineWrappedLineIdx+1:t.getViewLineCount();for(let t=o;te.horizontalLine?new vt.UO(e.visibleColumn,e.className,new vt.vW(e.horizontalLine.top,this.convertModelPositionToViewPosition(n.modelLineNumber,e.horizontalLine.endColumn).column)):e)),s.push(i)}}return s}getViewLinesIndentGuides(e,t){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t);const i=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),n=this.convertViewPositionToModelPosition(t,this.getViewLineMaxColumn(t));let o=[],s=[],r=[];const a=i.lineNumber-1,l=n.lineNumber-1;let h=null;for(let e=a;e<=l;e++){const t=this.lines[e];if(t.isVisible()){let n=t.getViewLineNumberOfModelPosition(0,e===a?i.column:1),o=t.getViewLineNumberOfModelPosition(0,this.model.getLineMaxColumn(e+1)),l=o-n+1,d=0;l>1&&1===t.getViewLineMinColumn(this.model,e+1,o)&&(d=0===n?1:2),s.push(l),r.push(d),null===h&&(h=new se.L(e+1,0))}else null!==h&&(o=o.concat(this.model.getLinesIndentGuides(h.lineNumber,e)),h=null)}null!==h&&(o=o.concat(this.model.getLinesIndentGuides(h.lineNumber,n.lineNumber)),h=null);const d=t-e+1;let c=new Array(d),u=0;for(let e=0,t=o.length;et&&(c=!0,d=t-o+1);let u=h+d;if(l.getViewLinesData(this.model,n+1,h,u,o-e,i,a),o+=d,c)break}return a}validateViewPosition(e,t,i){e=this._toValidViewLineNumber(e);let n=this.prefixSumComputer.getIndexOf(e-1),o=n.index,s=n.remainder,r=this.lines[o],a=r.getViewLineMinColumn(this.model,o+1,s),l=r.getViewLineMaxColumn(this.model,o+1,s);tl&&(t=l);let h=r.getModelColumnOfViewPosition(s,t);return this.model.validatePosition(new se.L(o+1,h)).equals(i)?new se.L(e,t):this.convertModelPositionToViewPosition(i.lineNumber,i.column)}validateViewRange(e,t){const i=this.validateViewPosition(e.startLineNumber,e.startColumn,t.getStartPosition()),n=this.validateViewPosition(e.endLineNumber,e.endColumn,t.getEndPosition());return new re.e(i.lineNumber,i.column,n.lineNumber,n.column)}convertViewPositionToModelPosition(e,t){e=this._toValidViewLineNumber(e);let i=this.prefixSumComputer.getIndexOf(e-1),n=i.index,o=i.remainder,s=this.lines[n].getModelColumnOfViewPosition(o,t);return this.model.validatePosition(new se.L(n+1,s))}convertViewRangeToModelRange(e){const t=this.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),i=this.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);return new re.e(t.lineNumber,t.column,i.lineNumber,i.column)}convertModelPositionToViewPosition(e,t,i=2){const n=this.model.validatePosition(new se.L(e,t)),o=n.lineNumber,s=n.column;let r=o-1,a=!1;for(;r>0&&!this.lines[r].isVisible();)r--,a=!0;if(0===r&&!this.lines[r].isVisible())return new se.L(1,1);const l=1+(0===r?0:this.prefixSumComputer.getAccumulatedValue(r-1));let h;return h=a?this.lines[r].getViewPositionOfModelPosition(l,this.model.getLineMaxColumn(r+1),i):this.lines[o-1].getViewPositionOfModelPosition(l,s,i),h}convertModelRangeToViewRange(e,t=0){if(e.isEmpty()){const i=this.convertModelPositionToViewPosition(e.startLineNumber,e.startColumn,t);return re.e.fromPositions(i)}{const t=this.convertModelPositionToViewPosition(e.startLineNumber,e.startColumn,1),i=this.convertModelPositionToViewPosition(e.endLineNumber,e.endColumn,0);return new re.e(t.lineNumber,t.column,i.lineNumber,i.column)}}getViewLineNumberOfModelPosition(e,t){let i=e-1;if(this.lines[i].isVisible()){const e=1+(0===i?0:this.prefixSumComputer.getAccumulatedValue(i-1));return this.lines[i].getViewLineNumberOfModelPosition(e,t)}for(;i>0&&!this.lines[i].isVisible();)i--;if(0===i&&!this.lines[i].isVisible())return 1;const n=1+(0===i?0:this.prefixSumComputer.getAccumulatedValue(i-1));return this.lines[i].getViewLineNumberOfModelPosition(n,this.model.getLineMaxColumn(i+1))}getDecorationsInRange(e,t,i){const n=this.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),o=this.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);if(o.lineNumber-n.lineNumber<=e.endLineNumber-e.startLineNumber)return this.model.getDecorationsInRange(new re.e(n.lineNumber,1,o.lineNumber,o.column),t,i);let s=[];const r=n.lineNumber-1,a=o.lineNumber-1;let l=null;for(let e=r;e<=a;e++){if(this.lines[e].isVisible())null===l&&(l=new se.L(e+1,e===r?n.column:1));else if(null!==l){const n=this.model.getLineMaxColumn(e);s=s.concat(this.model.getDecorationsInRange(new re.e(l.lineNumber,l.column,e,n),t,i)),l=null}}null!==l&&(s=s.concat(this.model.getDecorationsInRange(new re.e(l.lineNumber,l.column,o.lineNumber,o.column),t,i)),l=null),s.sort(((e,t)=>{const i=re.e.compareRangesUsingStarts(e.range,t.range);return 0===i?e.idt.id?1:0:i}));let h=[],d=0,c=null;for(const e of s){const t=e.id;c!==t&&(c=t,h[d++]=e)}return h}getInjectedTextAt(e){const t=this._toValidViewLineNumber(e.lineNumber),i=this.prefixSumComputer.getIndexOf(t-1),n=i.index,o=i.remainder;return this.lines[n].getInjectedTextAt(o,e.column)}normalizePosition(e,t){const i=this._toValidViewLineNumber(e.lineNumber),n=this.prefixSumComputer.getIndexOf(i-1),o=n.index,s=n.remainder;return this.lines[o].normalizePosition(this.model,o+1,s,e,t)}getLineIndentColumn(e){const t=this._toValidViewLineNumber(e),i=this.prefixSumComputer.getIndexOf(t-1),n=i.index;return 0===i.remainder?this.model.getLineIndentColumn(n+1):0}}class _n{constructor(e,t){this.modelLineNumber=e,this.modelLineWrappedLineIdx=t}get isWrappedLineContinuation(){return this.modelLineWrappedLineIdx>0}}class vn{constructor(e,t){this.modelRange=e,this.viewLines=t}}class bn{constructor(){}isVisible(){return!0}setVisible(e){return e?this:Cn.INSTANCE}getLineBreakData(){return null}getViewLineCount(){return 1}getViewLineContent(e,t,i){return e.getLineContent(t)}getViewLineLength(e,t,i){return e.getLineLength(t)}getViewLineMinColumn(e,t,i){return e.getLineMinColumn(t)}getViewLineMaxColumn(e,t,i){return e.getLineMaxColumn(t)}getViewLineData(e,t,i){let n=e.getLineTokens(t),o=n.getLineContent();return new Mt.IP(o,!1,1,o.length+1,0,n.inflate(),null)}getViewLinesData(e,t,i,n,o,s,r){s[o]?r[o]=this.getViewLineData(e,t,0):r[o]=null}getModelColumnOfViewPosition(e,t){return t}getViewPositionOfModelPosition(e,t){return new se.L(e,t)}getViewLineNumberOfModelPosition(e,t){return e}normalizePosition(e,t,i,n,o){return n}getInjectedTextAt(e,t){return null}}bn.INSTANCE=new bn;class Cn{constructor(){}isVisible(){return!1}setVisible(e){return e?bn.INSTANCE:this}getLineBreakData(){return null}getViewLineCount(){return 0}getViewLineContent(e,t,i){throw new Error("Not supported")}getViewLineLength(e,t,i){throw new Error("Not supported")}getViewLineMinColumn(e,t,i){throw new Error("Not supported")}getViewLineMaxColumn(e,t,i){throw new Error("Not supported")}getViewLineData(e,t,i){throw new Error("Not supported")}getViewLinesData(e,t,i,n,o,s,r){throw new Error("Not supported")}getModelColumnOfViewPosition(e,t){throw new Error("Not supported")}getViewPositionOfModelPosition(e,t){throw new Error("Not supported")}getViewLineNumberOfModelPosition(e,t){throw new Error("Not supported")}normalizePosition(e,t,i,n,o){throw new Error("Not supported")}getInjectedTextAt(e,t){throw new Error("Not supported")}}Cn.INSTANCE=new Cn;class wn{constructor(e,t){this._lineBreakData=e,this._isVisible=t}isVisible(){return this._isVisible}setVisible(e){return this._isVisible=e,this}getLineBreakData(){return this._lineBreakData}getViewLineCount(){return this._isVisible?this._lineBreakData.breakOffsets.length:0}getInputStartOffsetOfOutputLineIndex(e){return this._lineBreakData.getInputOffsetOfOutputPosition(e,0)}getInputEndOffsetOfOutputLineIndex(e,t,i){return i+1===this._lineBreakData.breakOffsets.length?e.getLineMaxColumn(t)-1:this._lineBreakData.getInputOffsetOfOutputPosition(i+1,0)}getViewLineContent(e,t,i){if(!this._isVisible)throw new Error("Not supported");const n=i>0?this._lineBreakData.breakOffsets[i-1]:0,o=inew yi.gk(0,0,e+1,this._lineBreakData.injectionOptions[t],0)));s=yi.gk.applyInjectedText(e.getLineContent(t),i).substring(n,o)}else s=e.getValueInRange({startLineNumber:t,startColumn:n+1,endLineNumber:t,endColumn:o+1});return i>0&&(s=yn(this._lineBreakData.wrappedTextIndentLength)+s),s}getViewLineLength(e,t,i){if(!this._isVisible)throw new Error("Not supported");const n=i>0?this._lineBreakData.breakOffsets[i-1]:0;let o=(i0&&(o=this._lineBreakData.wrappedTextIndentLength+o),o}getViewLineMinColumn(e,t,i){if(!this._isVisible)throw new Error("Not supported");return this._getViewLineMinColumn(i)}_getViewLineMinColumn(e){return e>0?this._lineBreakData.wrappedTextIndentLength+1:1}getViewLineMaxColumn(e,t,i){if(!this._isVisible)throw new Error("Not supported");return this.getViewLineLength(e,t,i)+1}getViewLineData(e,t,i){if(!this._isVisible)throw new Error("Not supported");const n=this._lineBreakData,o=i>0?n.wrappedTextIndentLength:0,s=n.injectionOffsets,r=n.injectionOptions;let a,l,h;if(s){const d=e.getLineTokens(t).withInserted(s.map(((e,t)=>({offset:e,text:r[t].content,tokenMetadata:un.A.defaultTokenMetadata})))),c=i>0?n.breakOffsets[i-1]:0,u=n.breakOffsets[i];a=d.getLineContent().substring(c,u),l=d.sliceAndInflate(c,u,o),h=new Array;let g=0;for(let e=0;eu)break;if(c0?n.wrappedTextIndentLength:0,s=e+Math.max(o-c,0),r=e+Math.min(a-c,u);s!==r&&h.push(new Mt.Wx(s,r,t.inlineClassName,t.inlineClassNameAffectsLetterSpacing))}}g+=t}}else{const n=this.getInputStartOffsetOfOutputLineIndex(i),s=this.getInputEndOffsetOfOutputLineIndex(e,t,i),r=e.getLineTokens(t);a=e.getValueInRange({startLineNumber:t,startColumn:n+1,endLineNumber:t,endColumn:s+1}),l=r.sliceAndInflate(n,s,o),h=null}i>0&&(a=yn(n.wrappedTextIndentLength)+a);const d=i>0?n.wrappedTextIndentLength+1:1,c=a.length+1,u=i+10&&(i0&&(s+=this._lineBreakData.wrappedTextIndentLength),new se.L(e+o,s)}getViewLineNumberOfModelPosition(e,t){if(!this._isVisible)throw new Error("Not supported");return e+this._lineBreakData.getOutputPositionOfInputOffset(t-1).outputLineIndex}normalizePosition(e,t,i,n,o){if(null!==this._lineBreakData.injectionOffsets){const e=n.lineNumber-i,t=this._lineBreakData.outputPositionToOffsetInUnwrappedLine(i,n.column-1),s=this._lineBreakData.normalizeOffsetAroundInjections(t,o);if(s!==t)return this._lineBreakData.getOutputPositionOfOffsetInUnwrappedLine(s,o).toPosition(e,this._lineBreakData.wrappedTextIndentLength)}if(0===o){if(i>0&&n.column===this._getViewLineMinColumn(i))return new se.L(n.lineNumber-1,this.getViewLineMaxColumn(e,t,i-1))}else if(1===o){if(i=Sn.length)for(let t=1;t<=e;t++)Sn[t]=Ln(t);return Sn[e]}function Ln(e){return new Array(e+1).join(" ")}function Nn(e,t){return null===e?t?bn.INSTANCE:Cn.INSTANCE:new wn(e,t)}class xn{constructor(e){this._lines=e}_validPosition(e){return this._lines.model.validatePosition(e)}_validRange(e){return this._lines.model.validateRange(e)}convertViewPositionToModelPosition(e){return this._validPosition(e)}convertViewRangeToModelRange(e){return this._validRange(e)}validateViewPosition(e,t){return this._validPosition(t)}validateViewRange(e,t){return this._validRange(t)}convertModelPositionToViewPosition(e){return this._validPosition(e)}convertModelRangeToViewRange(e){return this._validRange(e)}modelPositionIsVisible(e){const t=this._lines.model.getLineCount();return!(e.lineNumber<1||e.lineNumber>t)}getModelLineViewLineCount(e){return 1}getViewLineNumberOfModelPosition(e,t){return e}}class kn{constructor(e){this.model=e}dispose(){}createCoordinatesConverter(){return new xn(this)}getHiddenAreas(){return[]}setHiddenAreas(e){return!1}setTabSize(e){return!1}setWrappingSettings(e,t,i,n){return!1}createLineBreaksComputer(){let e=[];return{addRequest:(t,i,n)=>{e.push(null)},finalize:()=>e}}onModelFlushed(){}onModelLinesDeleted(e,t,i){return new Ri(t,i)}onModelLinesInserted(e,t,i,n){return new Oi(t,i)}onModelLineChanged(e,t,i){return[!1,new Ai(t,t),null,null]}acceptVersionId(e){}getViewLineCount(){return this.model.getLineCount()}getActiveIndentGuide(e,t,i){return{startLineNumber:e,endLineNumber:e,indent:0}}getViewLinesBracketGuides(e,t,i){return new Array(t-e+1).fill([])}getViewLinesIndentGuides(e,t){const i=t-e+1;let n=new Array(i);for(let e=0;ethis.tokenizeViewport()),50)),this._updateConfigurationViewLineCount=this._register(new S.pY((()=>this._updateConfigurationViewLineCountNow()),0)),this._hasFocus=!1,this._viewportStartLine=-1,this._viewportStartLineTrackedRange=null,this._viewportStartLineDelta=0,this.model.isTooLargeForTokenization())this._lines=new kn(this.model);else{const e=this._configuration.options,t=e.get(43),i=e.get(123),s=e.get(130),r=e.get(122);this._lines=new fn(this._editorId,this.model,n,o,t,this.model.getOptions().tabSize,i,s.wrappingColumn,r)}this.coordinatesConverter=this._lines.createCoordinatesConverter(),this._cursor=this._register(new Xi(i,this,this.coordinatesConverter,this.cursorConfig)),this.viewLayout=this._register(new cn(this._configuration,this.getLineCount(),s)),this._register(this.viewLayout.onDidScroll((e=>{e.scrollTopChanged&&this._tokenizeViewportSoon.schedule(),this._eventDispatcher.emitSingleViewEvent(new Fi(e)),this._eventDispatcher.emitOutgoingEvent(new ji(e.oldScrollWidth,e.oldScrollLeft,e.oldScrollHeight,e.oldScrollTop,e.scrollWidth,e.scrollLeft,e.scrollHeight,e.scrollTop))}))),this._register(this.viewLayout.onDidContentSizeChange((e=>{this._eventDispatcher.emitOutgoingEvent(e)}))),this._decorations=new Dn(this._editorId,this.model,this._configuration,this._lines,this.coordinatesConverter),this._registerModelEvents(),this._register(this._configuration.onDidChangeFast((e=>{try{const t=this._eventDispatcher.beginEmitViewEvents();this._onConfigurationChanged(t,e)}finally{this._eventDispatcher.endEmitViewEvents()}}))),this._register(Tt.getInstance().onDidChange((()=>{this._eventDispatcher.emitSingleViewEvent(new Wi)}))),this._updateConfigurationViewLineCountNow()}dispose(){super.dispose(),this._decorations.dispose(),this._lines.dispose(),this.invalidateMinimapColorCache(),this._viewportStartLineTrackedRange=this.model._setTrackedRange(this._viewportStartLineTrackedRange,null,1),this._eventDispatcher.dispose()}createLineBreaksComputer(){return this._lines.createLineBreaksComputer()}addViewEventHandler(e){this._eventDispatcher.addViewEventHandler(e)}removeViewEventHandler(e){this._eventDispatcher.removeViewEventHandler(e)}_updateConfigurationViewLineCountNow(){this._configuration.setViewLineCount(this._lines.getViewLineCount())}tokenizeViewport(){const e=this.viewLayout.getLinesViewportData(),t=new re.e(e.startLineNumber,this.getLineMinColumn(e.startLineNumber),e.endLineNumber,this.getLineMaxColumn(e.endLineNumber)),i=this._toModelVisibleRanges(t);for(const e of i)this.model.tokenizeViewport(e.startLineNumber,e.endLineNumber)}setHasFocus(e){this._hasFocus=e,this._cursor.setHasFocus(e),this._eventDispatcher.emitSingleViewEvent(new Ii(e)),this._eventDispatcher.emitOutgoingEvent(new $i(!e,e))}onCompositionStart(){this._eventDispatcher.emitSingleViewEvent(new Li)}onCompositionEnd(){this._eventDispatcher.emitSingleViewEvent(new Ni)}onDidColorThemeChange(){this._eventDispatcher.emitSingleViewEvent(new Bi)}_onConfigurationChanged(e,t){let i=null;if(-1!==this._viewportStartLine){let e=new se.L(this._viewportStartLine,this.getLineMinColumn(this._viewportStartLine));i=this.coordinatesConverter.convertViewPositionToModelPosition(e)}let n=!1;const o=this._configuration.options,s=o.get(43),r=o.get(123),a=o.get(130),l=o.get(122);if(this._lines.setWrappingSettings(s,r,a.wrappingColumn,l)&&(e.emitViewEvent(new Ei),e.emitViewEvent(new Mi),e.emitViewEvent(new Di(null)),this._cursor.onLineMappingChanged(e),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),0!==this.viewLayout.getCurrentScrollTop()&&(n=!0),this._updateConfigurationViewLineCount.schedule()),t.hasChanged(80)&&(this._decorations.reset(),e.emitViewEvent(new Di(null))),e.emitViewEvent(new xi(t)),this.viewLayout.onConfigurationChanged(t),n&&i){const e=this.coordinatesConverter.convertModelPositionToViewPosition(i),t=this.viewLayout.getVerticalOffsetForLineNumber(e.lineNumber);this.viewLayout.setScrollPosition({scrollTop:t+this._viewportStartLineDelta},1)}ae.LM.shouldRecreate(t)&&(this.cursorConfig=new ae.LM(this.model.getLanguageId(),this.model.getOptions(),this._configuration),this._cursor.updateConfiguration(this.cursorConfig))}_registerModelEvents(){this._register(this.model.onDidChangeContentOrInjectedText((e=>{try{const t=this._eventDispatcher.beginEmitViewEvents();let i=!1,n=!1;const o=e.changes,s=e instanceof yi.dQ?e.versionId:null,r=this._lines.createLineBreaksComputer();for(const e of o)switch(e.changeType){case 4:for(let t=0;t!e.ownerId||e.ownerId===this._editorId))),r.addRequest(i,n,null)}break;case 2:{let t=null;e.injectedText&&(t=e.injectedText.filter((e=>!e.ownerId||e.ownerId===this._editorId))),r.addRequest(e.detail,t,null);break}}const a=r.finalize();let l=0;for(const e of o)switch(e.changeType){case 1:this._lines.onModelFlushed(),t.emitViewEvent(new Ei),this._decorations.reset(),this.viewLayout.onFlushed(this.getLineCount()),i=!0;break;case 3:{const n=this._lines.onModelLinesDeleted(s,e.fromLineNumber,e.toLineNumber);null!==n&&(t.emitViewEvent(n),this.viewLayout.onLinesDeleted(n.fromLineNumber,n.toLineNumber)),i=!0;break}case 4:{const n=a.slice(l,l+e.detail.length);l+=e.detail.length;const o=this._lines.onModelLinesInserted(s,e.fromLineNumber,e.toLineNumber,n);null!==o&&(t.emitViewEvent(o),this.viewLayout.onLinesInserted(o.fromLineNumber,o.toLineNumber)),i=!0;break}case 2:{const i=a[l];l++;const[o,r,h,d]=this._lines.onModelLineChanged(s,e.lineNumber,i);n=o,r&&t.emitViewEvent(r),h&&(t.emitViewEvent(h),this.viewLayout.onLinesInserted(h.fromLineNumber,h.toLineNumber)),d&&(t.emitViewEvent(d),this.viewLayout.onLinesDeleted(d.fromLineNumber,d.toLineNumber));break}}null!==s&&this._lines.acceptVersionId(s),this.viewLayout.onHeightMaybeChanged(),!i&&n&&(t.emitViewEvent(new Mi),t.emitViewEvent(new Di(null)),this._cursor.onLineMappingChanged(t),this._decorations.onLineMappingChanged())}finally{this._eventDispatcher.endEmitViewEvents()}if(this._viewportStartLine=-1,this._configuration.setMaxLineNumber(this.model.getLineCount()),this._updateConfigurationViewLineCountNow(),!this._hasFocus&&this.model.getAttachedEditorCount()>=2&&this._viewportStartLineTrackedRange){const e=this.model._getTrackedRange(this._viewportStartLineTrackedRange);if(e){const t=this.coordinatesConverter.convertModelPositionToViewPosition(e.getStartPosition()),i=this.viewLayout.getVerticalOffsetForLineNumber(t.lineNumber);this.viewLayout.setScrollPosition({scrollTop:i+this._viewportStartLineDelta},1)}}try{const t=this._eventDispatcher.beginEmitViewEvents();this._cursor.onModelContentChanged(t,e)}finally{this._eventDispatcher.endEmitViewEvents()}}))),this._register(this.model.onDidChangeTokens((e=>{let t=[];for(let i=0,n=e.ranges.length;i{this._eventDispatcher.emitSingleViewEvent(new Ti),this.cursorConfig=new ae.LM(this.model.getLanguageId(),this.model.getOptions(),this._configuration),this._cursor.updateConfiguration(this.cursorConfig)}))),this._register(this.model.onDidChangeLanguage((e=>{this.cursorConfig=new ae.LM(this.model.getLanguageId(),this.model.getOptions(),this._configuration),this._cursor.updateConfiguration(this.cursorConfig)}))),this._register(this.model.onDidChangeOptions((e=>{if(this._lines.setTabSize(this.model.getOptions().tabSize)){try{const e=this._eventDispatcher.beginEmitViewEvents();e.emitViewEvent(new Ei),e.emitViewEvent(new Mi),e.emitViewEvent(new Di(null)),this._cursor.onLineMappingChanged(e),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount())}finally{this._eventDispatcher.endEmitViewEvents()}this._updateConfigurationViewLineCount.schedule()}this.cursorConfig=new ae.LM(this.model.getLanguageId(),this.model.getOptions(),this._configuration),this._cursor.updateConfiguration(this.cursorConfig)}))),this._register(this.model.onDidChangeDecorations((e=>{this._decorations.onModelDecorationsChanged(),this._eventDispatcher.emitSingleViewEvent(new Di(e))})))}setHiddenAreas(e){let t=!1;try{const i=this._eventDispatcher.beginEmitViewEvents();t=this._lines.setHiddenAreas(e),t&&(i.emitViewEvent(new Ei),i.emitViewEvent(new Mi),i.emitViewEvent(new Di(null)),this._cursor.onLineMappingChanged(i),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this.viewLayout.onHeightMaybeChanged())}finally{this._eventDispatcher.endEmitViewEvents()}this._updateConfigurationViewLineCount.schedule(),t&&this._eventDispatcher.emitOutgoingEvent(new qi)}getVisibleRangesPlusViewportAboveBelow(){const e=this._configuration.options.get(129),t=this._configuration.options.get(58),i=Math.max(20,Math.round(e.height/t)),n=this.viewLayout.getLinesViewportData(),o=Math.max(1,n.completelyVisibleStartLineNumber-i),s=Math.min(this.getLineCount(),n.completelyVisibleEndLineNumber+i);return this._toModelVisibleRanges(new re.e(o,this.getLineMinColumn(o),s,this.getLineMaxColumn(s)))}getVisibleRanges(){const e=this.getCompletelyVisibleViewRange();return this._toModelVisibleRanges(e)}_toModelVisibleRanges(e){const t=this.coordinatesConverter.convertViewRangeToModelRange(e),i=this._lines.getHiddenAreas();if(0===i.length)return[t];let n=[],o=0,s=t.startLineNumber,r=t.startColumn,a=t.endLineNumber,l=t.endColumn;for(let e=0,t=i.length;ea||(se.toInlineDecoration(t)))]),new Mt.wA(s.minColumn,s.maxColumn,s.content,s.continuesWithWrappedLine,i,n,s.tokens,r,o,s.startVisibleColumn)}getViewLineData(e){return this._lines.getViewLineData(e)}getMinimapLinesRenderingData(e,t,i){let n=this._lines.getViewLinesData(e,t,i);return new Mt.ud(this.getTabSize(),n)}getAllOverviewRulerDecorations(e){const t=this.model.getOverviewRulerDecorations(this._editorId,(0,j.$J)(this._configuration.options)),i=new Tn;for(const n of t){const t=n.options,o=t.overviewRuler;if(!o)continue;const s=o.position;if(0===s)continue;const r=o.getColor(e),a=this.coordinatesConverter.getViewLineNumberOfModelPosition(n.range.startLineNumber,n.range.startColumn),l=this.coordinatesConverter.getViewLineNumberOfModelPosition(n.range.endLineNumber,n.range.endColumn);i.accept(r,t.zIndex,a,l,s)}return i.asArray}invalidateOverviewRulerColorCache(){const e=this.model.getOverviewRulerDecorations();for(const t of e){const e=t.options.overviewRuler;e&&e.invalidateCachedColor()}}invalidateMinimapColorCache(){const e=this.model.getAllDecorations();for(const t of e){const e=t.options.minimap;e&&e.invalidateCachedColor()}}getValueInRange(e,t){const i=this.coordinatesConverter.convertViewRangeToModelRange(e);return this.model.getValueInRange(i,t)}getModelLineMaxColumn(e){return this.model.getLineMaxColumn(e)}validateModelPosition(e){return this.model.validatePosition(e)}validateModelRange(e){return this.model.validateRange(e)}deduceModelPositionRelativeToViewPosition(e,t,i){const n=this.coordinatesConverter.convertViewPositionToModelPosition(e);2===this.model.getEOL().length&&(t<0?t-=i:t+=i);const o=this.model.getOffsetAt(n)+t;return this.model.getPositionAt(o)}getEOL(){return this.model.getEOL()}getPlainTextToCopy(e,t,i){const n=i?"\r\n":this.model.getEOL();(e=e.slice(0)).sort(re.e.compareRangesUsingStarts);let o=!1,s=!1;for(const t of e)t.isEmpty()?o=!0:s=!0;if(!s){if(!t)return"";const i=e.map((e=>e.startLineNumber));let o="";for(let e=0;e0&&i[e-1]===i[e]||(o+=this.model.getLineContent(i[e])+n);return o}if(o&&t){let t=[],n=0;for(const o of e){const e=o.startLineNumber;o.isEmpty()?e!==n&&t.push(this.model.getLineContent(e)):t.push(this.model.getValueInRange(o,i?2:0)),n=e}return 1===t.length?t[0]:t}let r=[];for(const t of e)t.isEmpty()||r.push(this.model.getValueInRange(t,i?2:0));return 1===r.length?r[0]:r}getRichTextToCopy(e,t){const i=this.model.getLanguageId();if(i===En.XT)return null;if(1!==e.length)return null;let n=e[0];if(n.isEmpty()){if(!t)return null;const e=n.startLineNumber;n=new re.e(e,this.model.getLineMinColumn(e),e,this.model.getLineMaxColumn(e))}const o=this._configuration.options.get(43),s=this._getColorMap();let r;if(/[:;\\\/<>]/.test(o.fontFamily)||o.fontFamily===j.hL.fontFamily)r=j.hL.fontFamily;else{r=o.fontFamily,r=r.replace(/"/g,"'");if(!/[,']/.test(r)){/[+ ]/.test(r)&&(r=`'${r}'`)}r=`${r}, ${j.hL.fontFamily}`}return{mode:i,html:``+this._getHTMLToCopy(n,s)+"
"}}_getHTMLToCopy(e,t){const i=e.startLineNumber,n=e.startColumn,o=e.endLineNumber,s=e.endColumn,r=this.getTabSize();let a="";for(let e=i;e<=o;e++){const l=this.model.getLineTokens(e),h=l.getLineContent(),d=e===i?n-1:0,c=e===o?s-1:h.length;a+=""===h?"
":(0,on.F)(h,l.inflate(),t,d,c,r,b.ED)}return a}_getColorMap(){let e=It.RW.getColorMap(),t=["#000000"];if(e)for(let i=1,n=e.length;ithis._cursor.setStates(n,e,t,i)))}getCursorColumnSelectData(){return this._cursor.getCursorColumnSelectData()}getCursorAutoClosedCharacters(){return this._cursor.getAutoClosedCharacters()}setCursorColumnSelectData(e){this._cursor.setCursorColumnSelectData(e)}getPrevEditOperationType(){return this._cursor.getPrevEditOperationType()}setPrevEditOperationType(e){this._cursor.setPrevEditOperationType(e)}getSelection(){return this._cursor.getSelection()}getSelections(){return this._cursor.getSelections()}getPosition(){return this._cursor.getPrimaryCursorState().modelState.position}setSelections(e,t,i=0){this._withViewEventsCollector((n=>this._cursor.setSelections(n,e,t,i)))}saveCursorState(){return this._cursor.saveState()}restoreCursorState(e){this._withViewEventsCollector((t=>this._cursor.restoreState(t,e)))}_executeCursorEdit(e){this._cursor.context.cursorConfig.readOnly?this._eventDispatcher.emitOutgoingEvent(new Zi):this._withViewEventsCollector(e)}executeEdits(e,t,i){this._executeCursorEdit((n=>this._cursor.executeEdits(n,e,t,i)))}startComposition(){this._cursor.setIsDoingComposition(!0),this._executeCursorEdit((e=>this._cursor.startComposition(e)))}endComposition(e){this._cursor.setIsDoingComposition(!1),this._executeCursorEdit((t=>this._cursor.endComposition(t,e)))}type(e,t){this._executeCursorEdit((i=>this._cursor.type(i,e,t)))}compositionType(e,t,i,n,o){this._executeCursorEdit((s=>this._cursor.compositionType(s,e,t,i,n,o)))}paste(e,t,i,n){this._executeCursorEdit((o=>this._cursor.paste(o,e,t,i,n)))}cut(e){this._executeCursorEdit((t=>this._cursor.cut(t,e)))}executeCommand(e,t){this._executeCursorEdit((i=>this._cursor.executeCommand(i,e,t)))}executeCommands(e,t){this._executeCursorEdit((i=>this._cursor.executeCommands(i,e,t)))}revealPrimaryCursor(e,t){this._withViewEventsCollector((i=>this._cursor.revealPrimary(i,e,t,0)))}revealTopMostCursor(e){const t=this._cursor.getTopMostViewPosition(),i=new re.e(t.lineNumber,t.column,t.lineNumber,t.column);this._withViewEventsCollector((t=>t.emitViewEvent(new Pi(e,i,null,0,!0,0))))}revealBottomMostCursor(e){const t=this._cursor.getBottomMostViewPosition(),i=new re.e(t.lineNumber,t.column,t.lineNumber,t.column);this._withViewEventsCollector((t=>t.emitViewEvent(new Pi(e,i,null,0,!0,0))))}revealRange(e,t,i,n,o){this._withViewEventsCollector((s=>s.emitViewEvent(new Pi(e,i,null,n,t,o))))}getVerticalOffsetForLineNumber(e){return this.viewLayout.getVerticalOffsetForLineNumber(e)}getScrollTop(){return this.viewLayout.getCurrentScrollTop()}setScrollTop(e,t){this.viewLayout.setScrollPosition({scrollTop:e},t)}setScrollPosition(e,t){this.viewLayout.setScrollPosition(e,t)}deltaScrollNow(e,t){this.viewLayout.deltaScrollNow(e,t)}changeWhitespace(e){this.viewLayout.changeWhitespace(e)&&(this._eventDispatcher.emitSingleViewEvent(new Hi),this._eventDispatcher.emitOutgoingEvent(new qi))}setMaxLineWidth(e){this.viewLayout.setMaxLineWidth(e)}_withViewEventsCollector(e){try{e(this._eventDispatcher.beginEmitViewEvents())}finally{this._eventDispatcher.endEmitViewEvents()}}normalizePosition(e,t){return this._lines.normalizePosition(e,t)}getLineIndentColumn(e){return this._lines.getLineIndentColumn(e)}}class Tn{constructor(){this._asMap=Object.create(null),this.asArray=[]}accept(e,t,i,n,o){const s=this._asMap[e];if(s){const e=s.data,t=e[e.length-3],r=e[e.length-1];if(t===o&&r+1>=i)return void(n>r&&(e[e.length-1]=n));e.push(o,i,n)}else{const s=new Mt.SQ(e,t,[o,i,n]);this._asMap[e]=s,this.asArray.push(s)}}}var Mn=i(35884),An=i(90689),Rn=i(16925),On=i(36916),Pn=i(79504),Fn=i(52950),Bn=i(14788);class Vn extends Bn.N{constructor(e,t){super(0);for(let t=0;t=0&&e<256?this._asciiMap[e]:e>=12352&&e<=12543||e>=13312&&e<=19903||e>=19968&&e<=40959?3:this._map.get(e)||this._defaultValue}}let Wn=[],Hn=[];class zn{constructor(e,t){this.classifier=new Vn(e,t)}static create(e){return new zn(e.get(118),e.get(117))}createLineBreaksComputer(e,t,i,n){t|=0,i=+i;const o=[],s=[],r=[];return{addRequest:(e,t,i)=>{o.push(e),s.push(t),r.push(i)},finalize:()=>{const a=e.typicalFullwidthCharacterWidth/e.typicalHalfwidthCharacterWidth;let l=[];for(let e=0,h=o.length;e=0){let e=Math.abs(h[b]-_);for(;b+1=e)break;e=t,b++}}for(;bt&&(t=m,o=f);let r=0,d=0,C=0,w=0;if(o<=_){let f=o,v=0===t?0:i.charCodeAt(t-1),b=0===t?0:e.get(v),S=!0;for(let o=t;om&&qn(v,b,a,l)&&(r=t,d=f),f+=h,f>_){t>m?(C=t,w=f-h):(C=o+1,w=f),f-d>c&&(r=0),S=!1;break}v=a,b=l}if(S){p>0&&(u[p]=l[l.length-1],g[p]=h[l.length-1],p++);break}}if(0===r){let a=o,l=i.charCodeAt(t),h=e.get(l),u=!1;for(let n=t-1;n>=m;n--){const t=n+1,o=i.charCodeAt(n);if(9===o){u=!0;break}let g,p;if(Te.YK(o)?(n--,g=0,p=2):(g=e.get(o),p=Te.K7(o)?s:1),a<=_){if(0===C&&(C=t,w=a),a<=_-c)break;if(qn(o,g,l,h)){r=t,d=a;break}}a-=p,l=o,h=g}if(0!==r){const e=c-(w-d);if(e<=n){const t=i.charCodeAt(C);let o;o=Te.ZG(t)?2:$n(t,w,n,s),e-o<0&&(r=0)}}if(u){b--;continue}}if(0===r&&(r=C,d=w),r<=m){const e=i.charCodeAt(m);Te.ZG(e)?(r=m+2,d=f+2):(r=m+1,d=f+$n(e,f,n,s))}for(m=r,u[p]=r,f=d,g[p]=d,p++,_=d+c;b<0||b=S)break;S=e,b++}}return 0===p?null:(u.length=p,g.length=p,Wn=t.breakOffsets,Hn=t.breakOffsetsVisibleColumn,t.breakOffsets=u,t.breakOffsetsVisibleColumn=g,t.wrappedTextIndentLength=d,t)}function Un(e,t,i,n,o,s,r){const a=yi.gk.applyInjectedText(t,i);let l,h;if(i&&i.length>0?(l=i.map((e=>e.options)),h=i.map((e=>e.column-1))):(l=null,h=null),-1===o)return l?new Mt.le([a.length],[],0,h,l):null;const d=a.length;if(d<=1)return l?new Mt.le([a.length],[],0,h,l):null;const c=Gn(a,n,o,s,r),u=o-c;let g=[],p=[],m=0,f=0,_=0,v=o,b=a.charCodeAt(0),C=e.get(b),w=$n(b,0,n,s),S=1;Te.ZG(b)&&(w+=1,b=a.charCodeAt(1),C=e.get(b),S++);for(let t=S;tv&&((0===f||w-_>u)&&(f=i,_=w-l),g[m]=f,p[m]=_,m++,v=_+u,f=0),b=o,C=r}return 0!==m||i&&0!==i.length?(g[m]=d,p[m]=w,new Mt.le(g,p,c,h,l)):null}function $n(e,t,i,n){return 9===e?i-t%i:Te.K7(e)||e<32?n:1}function jn(e,t){return t-e%t}function qn(e,t,i,n){return 32!==i&&(2===t||3===t&&2!==n||1===n||3===n&&1!==t)}function Gn(e,t,i,n,o){let s=0;if(0!==o){const r=Te.LC(e);if(-1!==r){for(let i=0;ii&&(s=0)}}return s}var Zn;const Qn=null===(Zn=window.trustedTypes)||void 0===Zn?void 0:Zn.createPolicy("domLineBreaksComputer",{createHTML:e=>e});class Yn{static create(){return new Yn}constructor(){}createLineBreaksComputer(e,t,i,n){t|=0,i=+i;let o=[],s=[];return{addRequest:(e,t,i)=>{o.push(e),s.push(t)},finalize:()=>function(e,t,i,n,o,s){var r;function a(t){const i=s[t];if(i){const n=yi.gk.applyInjectedText(e[t],i),o=i.map((e=>e.options)),s=i.map((e=>e.column-1));return new Mt.le([n.length],[],0,s,o)}return null}if(-1===n){const t=[];for(let i=0,n=e.length;il?(a=0,h=0):d=l-e}const u=r.substr(a),p=Xn(u,h,i,d,g,c);m[n]=a,f[n]=h,_[n]=u,v[n]=p[0],b[n]=p[1]}const C=g.build(),w=null!==(r=null==Qn?void 0:Qn.createHTML(C))&&void 0!==r?r:C;u.innerHTML=w,u.style.position="absolute",u.style.top="10000",u.style.wordWrap="break-word",document.body.appendChild(u);let S=document.createRange();const y=Array.prototype.slice.call(u.children,0);let L=[];for(let t=0;te.options)),h=c.map((e=>e.column-1))):(l=null,h=null),L[t]=new Mt.le(e,r,n,h,l)}return document.body.removeChild(u),L}(o,e,t,i,n,s)}}}function Xn(e,t,i,n,o,s){if(0!==s){let e=String(s);o.appendASCIIString('');const r=e.length;let a=t,l=0,h=[],d=[],c=0");for(let t=0;t"),h[t]=l,d[t]=a;const n=c;c=t+1"),h[e.length]=l,d[e.length]=a,o.appendASCIIString("
"),[h,d]}function Jn(e,t,i,n){if(i.length<=1)return null;const o=Array.prototype.slice.call(t.children,0),s=[];try{eo(e,o,n,0,null,i.length-1,null,s)}catch(e){return console.log(e),null}return 0===s.length?null:(s.push(i.length),s)}function eo(e,t,i,n,o,s,r,a){if(n===s)return;if(o=o||to(e,t,i[n],i[n+1]),r=r||to(e,t,i[s],i[s+1]),Math.abs(o[0].top-r[0].top)<=.1)return;if(n+1===s)return void a.push(s);const l=n+(s-n)/2|0,h=to(e,t,i[l],i[l+1]);eo(e,t,i,n,o,l,h,a),eo(e,t,i,l,h,s,r,a)}function to(e,t,i,n){return e.setStart(t[i/16384|0].firstChild,i%16384),e.setEnd(t[n/16384|0].firstChild,n%16384),e.getClientRects()}var io=i(99292),no=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},oo=function(e,t){return function(i,n){t(i,n,e)}};let so=0;class ro{constructor(e,t,i,n,o){this.model=e,this.viewModel=t,this.view=i,this.hasRealView=n,this.listenersToRemove=o}dispose(){(0,u.B9)(this.listenersToRemove),this.model.onBeforeDetached(),this.hasRealView&&this.view.dispose(),this.viewModel.dispose()}}let ao=class e extends u.JT{constructor(e,t,i,n,s,r,a,l,h,u){super(),this._onDidDispose=this._register(new c.Q5),this.onDidDispose=this._onDidDispose.event,this._onDidChangeModelContent=this._register(new c.Q5),this.onDidChangeModelContent=this._onDidChangeModelContent.event,this._onDidChangeModelLanguage=this._register(new c.Q5),this.onDidChangeModelLanguage=this._onDidChangeModelLanguage.event,this._onDidChangeModelLanguageConfiguration=this._register(new c.Q5),this.onDidChangeModelLanguageConfiguration=this._onDidChangeModelLanguageConfiguration.event,this._onDidChangeModelOptions=this._register(new c.Q5),this.onDidChangeModelOptions=this._onDidChangeModelOptions.event,this._onDidChangeModelDecorations=this._register(new c.Q5),this.onDidChangeModelDecorations=this._onDidChangeModelDecorations.event,this._onDidChangeConfiguration=this._register(new c.Q5),this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this._onDidChangeModel=this._register(new c.Q5),this.onDidChangeModel=this._onDidChangeModel.event,this._onDidChangeCursorPosition=this._register(new c.Q5),this.onDidChangeCursorPosition=this._onDidChangeCursorPosition.event,this._onDidChangeCursorSelection=this._register(new c.Q5),this.onDidChangeCursorSelection=this._onDidChangeCursorSelection.event,this._onDidAttemptReadOnlyEdit=this._register(new c.Q5),this.onDidAttemptReadOnlyEdit=this._onDidAttemptReadOnlyEdit.event,this._onDidLayoutChange=this._register(new c.Q5),this.onDidLayoutChange=this._onDidLayoutChange.event,this._editorTextFocus=this._register(new lo),this.onDidFocusEditorText=this._editorTextFocus.onDidChangeToTrue,this.onDidBlurEditorText=this._editorTextFocus.onDidChangeToFalse,this._editorWidgetFocus=this._register(new lo),this.onDidFocusEditorWidget=this._editorWidgetFocus.onDidChangeToTrue,this.onDidBlurEditorWidget=this._editorWidgetFocus.onDidChangeToFalse,this._onWillType=this._register(new c.Q5),this.onWillType=this._onWillType.event,this._onDidType=this._register(new c.Q5),this.onDidType=this._onDidType.event,this._onDidCompositionStart=this._register(new c.Q5),this.onDidCompositionStart=this._onDidCompositionStart.event,this._onDidCompositionEnd=this._register(new c.Q5),this.onDidCompositionEnd=this._onDidCompositionEnd.event,this._onDidPaste=this._register(new c.Q5),this.onDidPaste=this._onDidPaste.event,this._onMouseUp=this._register(new c.Q5),this.onMouseUp=this._onMouseUp.event,this._onMouseDown=this._register(new c.Q5),this.onMouseDown=this._onMouseDown.event,this._onMouseDrag=this._register(new c.Q5),this.onMouseDrag=this._onMouseDrag.event,this._onMouseDrop=this._register(new c.Q5),this.onMouseDrop=this._onMouseDrop.event,this._onMouseDropCanceled=this._register(new c.Q5),this.onMouseDropCanceled=this._onMouseDropCanceled.event,this._onContextMenu=this._register(new c.Q5),this.onContextMenu=this._onContextMenu.event,this._onMouseMove=this._register(new c.Q5),this.onMouseMove=this._onMouseMove.event,this._onMouseLeave=this._register(new c.Q5),this.onMouseLeave=this._onMouseLeave.event,this._onMouseWheel=this._register(new c.Q5),this.onMouseWheel=this._onMouseWheel.event,this._onKeyUp=this._register(new c.Q5),this.onKeyUp=this._onKeyUp.event,this._onKeyDown=this._register(new c.Q5),this.onKeyDown=this._onKeyDown.event,this._onDidContentSizeChange=this._register(new c.Q5),this.onDidContentSizeChange=this._onDidContentSizeChange.event,this._onDidScrollChange=this._register(new c.Q5),this.onDidScrollChange=this._onDidScrollChange.event,this._onDidChangeViewZones=this._register(new c.Q5),this.onDidChangeViewZones=this._onDidChangeViewZones.event,this._onDidChangeHiddenAreas=this._register(new c.Q5),this.onDidChangeHiddenAreas=this._onDidChangeHiddenAreas.event;const g=Object.assign({},t);let p;this._domElement=e,this._overflowWidgetsDomNode=g.overflowWidgetsDomNode,delete g.overflowWidgetsDomNode,this._id=++so,this._decorationTypeKeysToIds={},this._decorationTypeSubtypes={},this.isSimpleWidget=i.isSimpleWidget||!1,this._telemetryData=i.telemetryData,this._configuration=this._register(this._createConfiguration(g,u)),this._register(this._configuration.onDidChange((e=>{this._onDidChangeConfiguration.fire(e);const t=this._configuration.options;if(e.hasChanged(129)){const e=t.get(129);this._onDidLayoutChange.fire(e)}}))),this._contextKeyService=this._register(a.createScoped(this._domElement)),this._notificationService=h,this._codeEditorService=s,this._commandService=r,this._themeService=l,this._register(new ho(this,this._contextKeyService)),this._register(new co(this,this._contextKeyService)),this._instantiationService=n.createChild(new On.y([An.i6,this._contextKeyService])),this._modelData=null,this._contributions={},this._actions={},this._focusTracker=new uo(e),this._register(this._focusTracker.onChange((()=>{this._editorWidgetFocus.setValue(this._focusTracker.hasFocus())}))),this._contentWidgets={},this._overlayWidgets={},p=Array.isArray(i.contributions)?i.contributions:o.Uc.getEditorContributions();for(const e of p)if(this._contributions[e.id])(0,d.dL)(new Error(`Cannot have two contributions with the same id ${e.id}`));else try{const t=this._instantiationService.createInstance(e.ctor,this);this._contributions[e.id]=t}catch(e){(0,d.dL)(e)}o.Uc.getEditorActions().forEach((e=>{if(this._actions[e.id])return void(0,d.dL)(new Error(`Cannot have two actions with the same id ${e.id}`));const t=new en.p(e.id,e.label,e.alias,(0,Ct.f6)(e.precondition),(()=>this._instantiationService.invokeFunction((t=>Promise.resolve(e.runEditorCommand(t,this,null))))),this._contextKeyService);this._actions[t.id]=t})),this._codeEditorService.addCodeEditor(this)}_createConfiguration(e,t){return new p.V(this.isSimpleWidget,e,this._domElement,t)}getId(){return this.getEditorType()+":"+this._id}getEditorType(){return tn.g.ICodeEditor}dispose(){this._codeEditorService.removeCodeEditor(this),this._focusTracker.dispose();const e=Object.keys(this._contributions);for(let t=0,i=e.length;tre.e.lift(e))))}getVisibleColumnFromPosition(e){if(!this._modelData)return e.column;const t=this._modelData.model.validatePosition(e),i=this._modelData.model.getOptions().tabSize;return ae.io.visibleColumnFromColumn(this._modelData.model.getLineContent(t.lineNumber),t.column,i)+1}getPosition(){return this._modelData?this._modelData.viewModel.getPosition():null}setPosition(e){if(this._modelData){if(!se.L.isIPosition(e))throw new Error("Invalid arguments");this._modelData.viewModel.setSelections("api",[{selectionStartLineNumber:e.lineNumber,selectionStartColumn:e.column,positionLineNumber:e.lineNumber,positionColumn:e.column}])}}_sendRevealRange(e,t,i,n){if(!this._modelData)return;if(!re.e.isIRange(e))throw new Error("Invalid arguments");const o=this._modelData.model.validateRange(e),s=this._modelData.viewModel.coordinatesConverter.convertModelRangeToViewRange(o);this._modelData.viewModel.revealRange("api",i,s,t,n)}revealLine(e,t=0){this._revealLine(e,0,t)}revealLineInCenter(e,t=0){this._revealLine(e,1,t)}revealLineInCenterIfOutsideViewport(e,t=0){this._revealLine(e,2,t)}revealLineNearTop(e,t=0){this._revealLine(e,5,t)}_revealLine(e,t,i){if("number"!=typeof e)throw new Error("Invalid arguments");this._sendRevealRange(new re.e(e,1,e,1),t,!1,i)}revealPosition(e,t=0){this._revealPosition(e,0,!0,t)}revealPositionInCenter(e,t=0){this._revealPosition(e,1,!0,t)}revealPositionInCenterIfOutsideViewport(e,t=0){this._revealPosition(e,2,!0,t)}revealPositionNearTop(e,t=0){this._revealPosition(e,5,!0,t)}_revealPosition(e,t,i,n){if(!se.L.isIPosition(e))throw new Error("Invalid arguments");this._sendRevealRange(new re.e(e.lineNumber,e.column,e.lineNumber,e.column),t,i,n)}getSelection(){return this._modelData?this._modelData.viewModel.getSelection():null}getSelections(){return this._modelData?this._modelData.viewModel.getSelections():null}setSelection(e){const t=_.Y.isISelection(e),i=re.e.isIRange(e);if(!t&&!i)throw new Error("Invalid arguments");if(t)this._setSelectionImpl(e);else if(i){const t={selectionStartLineNumber:e.startLineNumber,selectionStartColumn:e.startColumn,positionLineNumber:e.endLineNumber,positionColumn:e.endColumn};this._setSelectionImpl(t)}}_setSelectionImpl(e){if(!this._modelData)return;const t=new _.Y(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn);this._modelData.viewModel.setSelections("api",[t])}revealLines(e,t,i=0){this._revealLines(e,t,0,i)}revealLinesInCenter(e,t,i=0){this._revealLines(e,t,1,i)}revealLinesInCenterIfOutsideViewport(e,t,i=0){this._revealLines(e,t,2,i)}revealLinesNearTop(e,t,i=0){this._revealLines(e,t,5,i)}_revealLines(e,t,i,n){if("number"!=typeof e||"number"!=typeof t)throw new Error("Invalid arguments");this._sendRevealRange(new re.e(e,1,t,1),i,!1,n)}revealRange(e,t=0,i=!1,n=!0){this._revealRange(e,i?1:0,n,t)}revealRangeInCenter(e,t=0){this._revealRange(e,1,!0,t)}revealRangeInCenterIfOutsideViewport(e,t=0){this._revealRange(e,2,!0,t)}revealRangeNearTop(e,t=0){this._revealRange(e,5,!0,t)}revealRangeNearTopIfOutsideViewport(e,t=0){this._revealRange(e,6,!0,t)}revealRangeAtTop(e,t=0){this._revealRange(e,3,!0,t)}_revealRange(e,t,i,n){if(!re.e.isIRange(e))throw new Error("Invalid arguments");this._sendRevealRange(re.e.lift(e),t,i,n)}setSelections(e,t="api",i=0){if(this._modelData){if(!e||0===e.length)throw new Error("Invalid arguments");for(let t=0,i=e.length;te.isSupported())),e}getAction(e){return this._actions[e]||null}trigger(e,t,i){switch(i=i||{},t){case"compositionStart":return void this._startComposition();case"compositionEnd":return void this._endComposition(e);case"type":{const t=i;return void this._type(e,t.text||"")}case"replacePreviousChar":{const t=i;return void this._compositionType(e,t.text||"",t.replaceCharCnt||0,0,0)}case"compositionType":{const t=i;return void this._compositionType(e,t.text||"",t.replacePrevCharCnt||0,t.replaceNextCharCnt||0,t.positionDelta||0)}case"paste":{const t=i;return void this._paste(e,t.text||"",t.pasteOnNewLine||!1,t.multicursorText||null,t.mode||null)}case"cut":return void this._cut(e)}const n=this.getAction(t);n?Promise.resolve(n.run()).then(void 0,d.dL):this._modelData&&(this._triggerEditorCommand(e,t,i)||this._triggerCommand(t,i))}_triggerCommand(e,t){this._commandService.executeCommand(e,t)}_startComposition(){this._modelData&&(this._modelData.viewModel.startComposition(),this._onDidCompositionStart.fire())}_endComposition(e){this._modelData&&(this._modelData.viewModel.endComposition(e),this._onDidCompositionEnd.fire())}_type(e,t){this._modelData&&0!==t.length&&("keyboard"===e&&this._onWillType.fire(t),this._modelData.viewModel.type(t,e),"keyboard"===e&&this._onDidType.fire(t))}_compositionType(e,t,i,n,o){this._modelData&&this._modelData.viewModel.compositionType(t,i,n,o,e)}_paste(e,t,i,n,o){if(!this._modelData||0===t.length)return;const s=this._modelData.viewModel.getSelection().getStartPosition();this._modelData.viewModel.paste(t,i,n,e);const r=this._modelData.viewModel.getSelection().getStartPosition();"keyboard"===e&&this._onDidPaste.fire({range:new re.e(s.lineNumber,s.column,r.lineNumber,r.column),languageId:o})}_cut(e){this._modelData&&this._modelData.viewModel.cut(e)}_triggerEditorCommand(e,t,i){const n=o.Uc.getEditorCommand(t);return!!n&&((i=i||{}).source=e,this._instantiationService.invokeFunction((e=>{Promise.resolve(n.runEditorCommand(e,this,i)).then(void 0,d.dL)})),!0)}_getViewModel(){return this._modelData?this._modelData.viewModel:null}pushUndoStop(){return!!this._modelData&&(!this._configuration.options.get(80)&&(this._modelData.model.pushStackElement(),!0))}popUndoStop(){return!!this._modelData&&(!this._configuration.options.get(80)&&(this._modelData.model.popStackElement(),!0))}executeEdits(e,t,i){if(!this._modelData)return!1;if(this._configuration.options.get(80))return!1;let n;return n=i?Array.isArray(i)?()=>i:i:()=>null,this._modelData.viewModel.executeEdits(e,t,n),!0}executeCommand(e,t){this._modelData&&this._modelData.viewModel.executeCommand(t,e)}executeCommands(e,t){this._modelData&&this._modelData.viewModel.executeCommands(t,e)}changeDecorations(e){return this._modelData?this._modelData.model.changeDecorations(e,this._id):null}getLineDecorations(e){return this._modelData?this._modelData.model.getLineDecorations(e,this._id,(0,j.$J)(this._configuration.options)):null}deltaDecorations(e,t){return this._modelData?0===e.length&&0===t.length?e:this._modelData.model.deltaDecorations(e,t,this._id):[]}removeDecorations(e){const t=this._decorationTypeKeysToIds[e];t&&this.deltaDecorations(t,[]),this._decorationTypeKeysToIds.hasOwnProperty(e)&&delete this._decorationTypeKeysToIds[e],this._decorationTypeSubtypes.hasOwnProperty(e)&&delete this._decorationTypeSubtypes[e]}getLayoutInfo(){return this._configuration.options.get(129)}createOverviewRuler(e){return this._modelData&&this._modelData.hasRealView?this._modelData.view.createOverviewRuler(e):null}getContainerDomNode(){return this._domElement}getDomNode(){return this._modelData&&this._modelData.hasRealView?this._modelData.view.domNode.domNode:null}delegateVerticalScrollbarMouseDown(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.delegateVerticalScrollbarMouseDown(e)}layout(e){this._configuration.observeReferenceElement(e),this.render()}focus(){this._modelData&&this._modelData.hasRealView&&this._modelData.view.focus()}hasTextFocus(){return!(!this._modelData||!this._modelData.hasRealView)&&this._modelData.view.isFocused()}hasWidgetFocus(){return this._focusTracker&&this._focusTracker.hasFocus()}addContentWidget(e){const t={widget:e,position:e.getPosition()};this._contentWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting a content widget with the same id."),this._contentWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addContentWidget(t)}layoutContentWidget(e){const t=e.getId();if(this._contentWidgets.hasOwnProperty(t)){const i=this._contentWidgets[t];i.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutContentWidget(i)}}removeContentWidget(e){const t=e.getId();if(this._contentWidgets.hasOwnProperty(t)){const e=this._contentWidgets[t];delete this._contentWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeContentWidget(e)}}addOverlayWidget(e){const t={widget:e,position:e.getPosition()};this._overlayWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting an overlay widget with the same id."),this._overlayWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addOverlayWidget(t)}layoutOverlayWidget(e){const t=e.getId();if(this._overlayWidgets.hasOwnProperty(t)){const i=this._overlayWidgets[t];i.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutOverlayWidget(i)}}removeOverlayWidget(e){const t=e.getId();if(this._overlayWidgets.hasOwnProperty(t)){const e=this._overlayWidgets[t];delete this._overlayWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeOverlayWidget(e)}}changeViewZones(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.change(e)}getTargetAtClientPoint(e,t){return this._modelData&&this._modelData.hasRealView?this._modelData.view.getTargetAtClientPoint(e,t):null}getScrolledVisiblePosition(t){if(!this._modelData||!this._modelData.hasRealView)return null;const i=this._modelData.model.validatePosition(t),n=this._configuration.options,o=n.get(129);return{top:e._getVerticalOffsetForPosition(this._modelData,i.lineNumber,i.column)-this.getScrollTop(),left:this._modelData.view.getOffsetForColumn(i.lineNumber,i.column)+o.glyphMarginWidth+o.lineNumbersWidth+o.decorationsWidth-this.getScrollLeft(),height:n.get(58)}}getOffsetForColumn(e,t){return this._modelData&&this._modelData.hasRealView?this._modelData.view.getOffsetForColumn(e,t):-1}render(e=!1){this._modelData&&this._modelData.hasRealView&&this._modelData.view.render(!0,e)}setAriaOptions(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.setAriaOptions(e)}applyFontInfo(e){p.V.applyFontInfoSlow(e,this._configuration.options.get(43))}_attachModel(e){if(!e)return void(this._modelData=null);const t=[];this._domElement.setAttribute("data-mode-id",e.getLanguageId()),this._configuration.setIsDominatedByLongLines(e.isDominatedByLongLines()),this._configuration.setMaxLineNumber(e.getLineCount()),e.onBeforeAttached();const i=new In(this._id,this._configuration,e,Yn.create(),zn.create(this._configuration.options),(e=>h.jL(e)));t.push(e.onDidChangeDecorations((e=>this._onDidChangeModelDecorations.fire(e)))),t.push(e.onDidChangeLanguage((t=>{this._domElement.setAttribute("data-mode-id",e.getLanguageId()),this._onDidChangeModelLanguage.fire(t)}))),t.push(e.onDidChangeLanguageConfiguration((e=>this._onDidChangeModelLanguageConfiguration.fire(e)))),t.push(e.onDidChangeContent((e=>this._onDidChangeModelContent.fire(e)))),t.push(e.onDidChangeOptions((e=>this._onDidChangeModelOptions.fire(e)))),t.push(e.onWillDispose((()=>this.setModel(null)))),t.push(i.onEvent((e=>{switch(e.kind){case 0:this._onDidContentSizeChange.fire(e);break;case 1:this._editorTextFocus.setValue(e.hasFocus);break;case 2:this._onDidScrollChange.fire(e);break;case 3:this._onDidChangeViewZones.fire();break;case 4:this._onDidChangeHiddenAreas.fire();break;case 5:this._onDidAttemptReadOnlyEdit.fire();break;case 6:{e.reachedMaxCursorCount&&this._notificationService.warn(l.N("cursors.maximum","The number of cursors has been limited to {0}.",Xi.MAX_CURSOR_COUNT));const t=[];for(let i=0,n=e.selections.length;i{this._paste("keyboard",e,t,i,n)},type:e=>{this._type("keyboard",e)},compositionType:(e,t,i,n)=>{this._compositionType("keyboard",e,t,i,n)},startComposition:()=>{this._startComposition()},endComposition:()=>{this._endComposition("keyboard")},cut:()=>{this._cut("keyboard")}}:{paste:(e,t,i,n)=>{const o={text:e,pasteOnNewLine:t,multicursorText:i,mode:n};this._commandService.executeCommand("paste",o)},type:e=>{const t={text:e};this._commandService.executeCommand("type",t)},compositionType:(e,t,i,n)=>{if(i||n){const o={text:e,replacePrevCharCnt:t,replaceNextCharCnt:i,positionDelta:n};this._commandService.executeCommand("compositionType",o)}else{const i={text:e,replaceCharCnt:t};this._commandService.executeCommand("replacePreviousChar",i)}},startComposition:()=>{this._commandService.executeCommand("compositionStart",{})},endComposition:()=>{this._commandService.executeCommand("compositionEnd",{})},cut:()=>{this._commandService.executeCommand("cut",{})}};const i=new $e(e.coordinatesConverter);i.onKeyDown=e=>this._onKeyDown.fire(e),i.onKeyUp=e=>this._onKeyUp.fire(e),i.onContextMenu=e=>this._onContextMenu.fire(e),i.onMouseMove=e=>this._onMouseMove.fire(e),i.onMouseLeave=e=>this._onMouseLeave.fire(e),i.onMouseDown=e=>this._onMouseDown.fire(e),i.onMouseUp=e=>this._onMouseUp.fire(e),i.onMouseDrag=e=>this._onMouseDrag.fire(e),i.onMouseDrop=e=>this._onMouseDrop.fire(e),i.onMouseDropCanceled=e=>this._onMouseDropCanceled.fire(e),i.onMouseWheel=e=>this._onMouseWheel.fire(e);return[new vi(t,this._configuration,this._themeService,e,i,this._overflowWidgetsDomNode),!0]}_postDetachModelCleanup(e){e&&e.removeAllDecorationsWithOwnerId(this._id)}_detachModel(){if(!this._modelData)return null;const e=this._modelData.model,t=this._modelData.hasRealView?this._modelData.view.domNode.domNode:null;return this._modelData.dispose(),this._modelData=null,this._domElement.removeAttribute("data-mode-id"),t&&this._domElement.contains(t)&&this._domElement.removeChild(t),e}_removeDecorationType(e){this._codeEditorService.removeDecorationType(e)}hasModel(){return null!==this._modelData}};ao=no([oo(3,Rn.TG),oo(4,m.$),oo(5,Mn.H),oo(6,An.i6),oo(7,Oe.XE),oo(8,Pn.lT),oo(9,Fn.F)],ao);class lo extends u.JT{constructor(){super(),this._onDidChangeToTrue=this._register(new c.Q5),this.onDidChangeToTrue=this._onDidChangeToTrue.event,this._onDidChangeToFalse=this._register(new c.Q5),this.onDidChangeToFalse=this._onDidChangeToFalse.event,this._value=0}setValue(e){const t=e?2:1;this._value!==t&&(this._value=t,2===this._value?this._onDidChangeToTrue.fire():1===this._value&&this._onDidChangeToFalse.fire())}}class ho extends u.JT{constructor(e,t){super(),this._editor=e,t.createKey("editorId",e.getId()),this._editorSimpleInput=nn.u.editorSimpleInput.bindTo(t),this._editorFocus=nn.u.focus.bindTo(t),this._textInputFocus=nn.u.textInputFocus.bindTo(t),this._editorTextFocus=nn.u.editorTextFocus.bindTo(t),this._editorTabMovesFocus=nn.u.tabMovesFocus.bindTo(t),this._editorReadonly=nn.u.readOnly.bindTo(t),this._inDiffEditor=nn.u.inDiffEditor.bindTo(t),this._editorColumnSelection=nn.u.columnSelection.bindTo(t),this._hasMultipleSelections=nn.u.hasMultipleSelections.bindTo(t),this._hasNonEmptySelection=nn.u.hasNonEmptySelection.bindTo(t),this._canUndo=nn.u.canUndo.bindTo(t),this._canRedo=nn.u.canRedo.bindTo(t),this._register(this._editor.onDidChangeConfiguration((()=>this._updateFromConfig()))),this._register(this._editor.onDidChangeCursorSelection((()=>this._updateFromSelection()))),this._register(this._editor.onDidFocusEditorWidget((()=>this._updateFromFocus()))),this._register(this._editor.onDidBlurEditorWidget((()=>this._updateFromFocus()))),this._register(this._editor.onDidFocusEditorText((()=>this._updateFromFocus()))),this._register(this._editor.onDidBlurEditorText((()=>this._updateFromFocus()))),this._register(this._editor.onDidChangeModel((()=>this._updateFromModel()))),this._register(this._editor.onDidChangeConfiguration((()=>this._updateFromModel()))),this._updateFromConfig(),this._updateFromSelection(),this._updateFromFocus(),this._updateFromModel(),this._editorSimpleInput.set(this._editor.isSimpleWidget)}_updateFromConfig(){const e=this._editor.getOptions();this._editorTabMovesFocus.set(e.get(128)),this._editorReadonly.set(e.get(80)),this._inDiffEditor.set(e.get(53)),this._editorColumnSelection.set(e.get(18))}_updateFromSelection(){const e=this._editor.getSelections();e?(this._hasMultipleSelections.set(e.length>1),this._hasNonEmptySelection.set(e.some((e=>!e.isEmpty())))):(this._hasMultipleSelections.reset(),this._hasNonEmptySelection.reset())}_updateFromFocus(){this._editorFocus.set(this._editor.hasWidgetFocus()&&!this._editor.isSimpleWidget),this._editorTextFocus.set(this._editor.hasTextFocus()&&!this._editor.isSimpleWidget),this._textInputFocus.set(this._editor.hasTextFocus())}_updateFromModel(){const e=this._editor.getModel();this._canUndo.set(Boolean(e&&e.canUndo())),this._canRedo.set(Boolean(e&&e.canRedo()))}}class co extends u.JT{constructor(e,t){super(),this._editor=e,this._contextKeyService=t,this._langId=nn.u.languageId.bindTo(t),this._hasCompletionItemProvider=nn.u.hasCompletionItemProvider.bindTo(t),this._hasCodeActionsProvider=nn.u.hasCodeActionsProvider.bindTo(t),this._hasCodeLensProvider=nn.u.hasCodeLensProvider.bindTo(t),this._hasDefinitionProvider=nn.u.hasDefinitionProvider.bindTo(t),this._hasDeclarationProvider=nn.u.hasDeclarationProvider.bindTo(t),this._hasImplementationProvider=nn.u.hasImplementationProvider.bindTo(t),this._hasTypeDefinitionProvider=nn.u.hasTypeDefinitionProvider.bindTo(t),this._hasHoverProvider=nn.u.hasHoverProvider.bindTo(t),this._hasDocumentHighlightProvider=nn.u.hasDocumentHighlightProvider.bindTo(t),this._hasDocumentSymbolProvider=nn.u.hasDocumentSymbolProvider.bindTo(t),this._hasReferenceProvider=nn.u.hasReferenceProvider.bindTo(t),this._hasRenameProvider=nn.u.hasRenameProvider.bindTo(t),this._hasSignatureHelpProvider=nn.u.hasSignatureHelpProvider.bindTo(t),this._hasInlayHintsProvider=nn.u.hasInlayHintsProvider.bindTo(t),this._hasDocumentFormattingProvider=nn.u.hasDocumentFormattingProvider.bindTo(t),this._hasDocumentSelectionFormattingProvider=nn.u.hasDocumentSelectionFormattingProvider.bindTo(t),this._hasMultipleDocumentFormattingProvider=nn.u.hasMultipleDocumentFormattingProvider.bindTo(t),this._hasMultipleDocumentSelectionFormattingProvider=nn.u.hasMultipleDocumentSelectionFormattingProvider.bindTo(t),this._isInWalkThrough=nn.u.isInWalkThroughSnippet.bindTo(t);const i=()=>this._update();this._register(e.onDidChangeModel(i)),this._register(e.onDidChangeModelLanguage(i)),this._register(It.KZ.onDidChange(i)),this._register(It.H9.onDidChange(i)),this._register(It.He.onDidChange(i)),this._register(It.Ct.onDidChange(i)),this._register(It.RN.onDidChange(i)),this._register(It.vI.onDidChange(i)),this._register(It.tA.onDidChange(i)),this._register(It.xp.onDidChange(i)),this._register(It.vH.onDidChange(i)),this._register(It.vJ.onDidChange(i)),this._register(It.FL.onDidChange(i)),this._register(It.G0.onDidChange(i)),this._register(It.Az.onDidChange(i)),this._register(It.vN.onDidChange(i)),this._register(It.nD.onDidChange(i)),this._register(It.mX.onDidChange(i)),i()}dispose(){super.dispose()}reset(){this._contextKeyService.bufferChangeEvents((()=>{this._langId.reset(),this._hasCompletionItemProvider.reset(),this._hasCodeActionsProvider.reset(),this._hasCodeLensProvider.reset(),this._hasDefinitionProvider.reset(),this._hasDeclarationProvider.reset(),this._hasImplementationProvider.reset(),this._hasTypeDefinitionProvider.reset(),this._hasHoverProvider.reset(),this._hasDocumentHighlightProvider.reset(),this._hasDocumentSymbolProvider.reset(),this._hasReferenceProvider.reset(),this._hasRenameProvider.reset(),this._hasDocumentFormattingProvider.reset(),this._hasDocumentSelectionFormattingProvider.reset(),this._hasSignatureHelpProvider.reset(),this._isInWalkThrough.reset()}))}_update(){const e=this._editor.getModel();e?this._contextKeyService.bufferChangeEvents((()=>{this._langId.set(e.getLanguageId()),this._hasCompletionItemProvider.set(It.KZ.has(e)),this._hasCodeActionsProvider.set(It.H9.has(e)),this._hasCodeLensProvider.set(It.He.has(e)),this._hasDefinitionProvider.set(It.Ct.has(e)),this._hasDeclarationProvider.set(It.RN.has(e)),this._hasImplementationProvider.set(It.vI.has(e)),this._hasTypeDefinitionProvider.set(It.tA.has(e)),this._hasHoverProvider.set(It.xp.has(e)),this._hasDocumentHighlightProvider.set(It.vH.has(e)),this._hasDocumentSymbolProvider.set(It.vJ.has(e)),this._hasReferenceProvider.set(It.FL.has(e)),this._hasRenameProvider.set(It.G0.has(e)),this._hasSignatureHelpProvider.set(It.nD.has(e)),this._hasInlayHintsProvider.set(It.mX.has(e)),this._hasDocumentFormattingProvider.set(It.Az.has(e)||It.vN.has(e)),this._hasDocumentSelectionFormattingProvider.set(It.vN.has(e)),this._hasMultipleDocumentFormattingProvider.set(It.Az.all(e).length+It.vN.all(e).length>1),this._hasMultipleDocumentSelectionFormattingProvider.set(It.vN.all(e).length>1),this._isInWalkThrough.set(e.uri.scheme===g.lg.walkThroughSnippet)})):this.reset()}}class uo extends u.JT{constructor(e){super(),this._onChange=this._register(new c.Q5),this.onChange=this._onChange.event,this._hasFocus=!1,this._domFocusTracker=this._register(h.go(e)),this._register(this._domFocusTracker.onDidFocus((()=>{this._hasFocus=!0,this._onChange.fire(void 0)}))),this._register(this._domFocusTracker.onDidBlur((()=>{this._hasFocus=!1,this._onChange.fire(void 0)})))}hasFocus(){return this._hasFocus}}const go=encodeURIComponent("");function mo(e){return go+encodeURIComponent(e.toString())+po}const fo=encodeURIComponent('');(0,Oe.Ic)(((e,t)=>{const i=e.getColor(gt.b6);i&&t.addRule(`.monaco-editor .squiggly-error { border-bottom: 4px double ${i}; }`);const n=e.getColor(gt.lX);n&&t.addRule(`.monaco-editor .squiggly-error { background: url("data:image/svg+xml,${mo(n)}") repeat-x bottom left; }`);const o=e.getColor(gt.A2);o&&t.addRule(`.monaco-editor .squiggly-error::before { display: block; content: ''; width: 100%; height: 100%; background: ${o}; }`);const s=e.getColor(gt.pW);s&&t.addRule(`.monaco-editor .squiggly-warning { border-bottom: 4px double ${s}; }`);const r=e.getColor(gt.uo);r&&t.addRule(`.monaco-editor .squiggly-warning { background: url("data:image/svg+xml,${mo(r)}") repeat-x bottom left; }`);const a=e.getColor(gt.gp);a&&t.addRule(`.monaco-editor .squiggly-warning::before { display: block; content: ''; width: 100%; height: 100%; background: ${a}; }`);const l=e.getColor(gt.T8);l&&t.addRule(`.monaco-editor .squiggly-info { border-bottom: 4px double ${l}; }`);const h=e.getColor(gt.c6);h&&t.addRule(`.monaco-editor .squiggly-info { background: url("data:image/svg+xml,${mo(h)}") repeat-x bottom left; }`);const d=e.getColor(gt.fe);d&&t.addRule(`.monaco-editor .squiggly-info::before { display: block; content: ''; width: 100%; height: 100%; background: ${d}; }`);const c=e.getColor(gt.fE);c&&t.addRule(`.monaco-editor .squiggly-hint { border-bottom: 2px dotted ${c}; }`);const u=e.getColor(gt.Du);u&&t.addRule(`.monaco-editor .squiggly-hint { background: url("data:image/svg+xml,${function(e){return fo+encodeURIComponent(e.toString())+_o}(u)}") no-repeat bottom left; }`);const g=e.getColor(Re.zu);g&&t.addRule(`.monaco-editor.showUnused .squiggly-inline-unnecessary { opacity: ${g.rgba.a}; }`);const p=e.getColor(Re.kp);p&&t.addRule(`.monaco-editor.showUnused .squiggly-unnecessary { border-bottom: 2px dashed ${p}; }`);const m=e.getColor(gt.NO)||"inherit";t.addRule(`.monaco-editor.showDeprecated .squiggly-inline-deprecated { text-decoration: line-through; text-decoration-color: ${m}}`)}))},26782:function(e,t,i){"use strict";i.d(t,{p:function(){return me}});var n,o=i(13268),s=i(69454),r=i(32635),a=i(78233),l=i(50431),h=i(4348),d=i(69323),c=i(84571),u=i(39528),g=i(70827),p=i(55806),m=i(21784),f=i(17671),_=i(75918),v=i(4514),b=i(97199),C=i(35521),w=i(72146),S=i(30297),y=i(28750),L=i(8829),N=i(90689),x=i(44350),k=i(49055),D=i(52615),E=i(55773),I=i(64992),T=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},M=function(e,t){return function(i,n){t(i,n,e)}},A=function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))};class R{constructor(e,t,i,n){this.originalLineStart=e,this.originalLineEnd=t,this.modifiedLineStart=i,this.modifiedLineEnd=n}getType(){return 0===this.originalLineStart?1:0===this.modifiedLineStart?2:0}}class O{constructor(e){this.entries=e}}const P=(0,E.q5)("diff-review-insert",D.lA.add,o.N("diffReviewInsertIcon","Icon for 'Insert' in diff review.")),F=(0,E.q5)("diff-review-remove",D.lA.remove,o.N("diffReviewRemoveIcon","Icon for 'Remove' in diff review.")),B=(0,E.q5)("diff-review-close",D.lA.close,o.N("diffReviewCloseIcon","Icon for 'Close' in diff review."));let V=class e extends d.JT{constructor(e,t){super(),this._modeService=t,this._width=0,this._diffEditor=e,this._isVisible=!1,this.shadow=(0,r.X)(document.createElement("div")),this.shadow.setClassName("diff-review-shadow"),this.actionBarContainer=(0,r.X)(document.createElement("div")),this.actionBarContainer.setClassName("diff-review-actions"),this._actionBar=this._register(new m.o(this.actionBarContainer.domNode)),this._actionBar.push(new _.aU("diffreview.close",o.N("label.close","Close"),"close-diff-review "+k.kS.asClassName(B),!0,(()=>A(this,void 0,void 0,(function*(){return this.hide()})))),{label:!1,icon:!0}),this.domNode=(0,r.X)(document.createElement("div")),this.domNode.setClassName("diff-review monaco-editor-background"),this._content=(0,r.X)(document.createElement("div")),this._content.setClassName("diff-review-content"),this._content.setAttribute("role","code"),this.scrollbar=this._register(new f.s$(this._content.domNode,{})),this.domNode.domNode.appendChild(this.scrollbar.getDomNode()),this._register(e.onDidUpdateDiff((()=>{this._isVisible&&(this._diffs=this._compute(),this._render())}))),this._register(e.getModifiedEditor().onDidChangeCursorPosition((()=>{this._isVisible&&this._render()}))),this._register(s.mu(this.domNode.domNode,"click",(e=>{e.preventDefault();let t=s.Fx(e.target,"diff-review-row");t&&this._goToRow(t)}))),this._register(s.mu(this.domNode.domNode,"keydown",(e=>{(e.equals(18)||e.equals(2066)||e.equals(530))&&(e.preventDefault(),this._goToRow(this._getNextRow())),(e.equals(16)||e.equals(2064)||e.equals(528))&&(e.preventDefault(),this._goToRow(this._getPrevRow())),(e.equals(9)||e.equals(2057)||e.equals(521)||e.equals(1033))&&(e.preventDefault(),this.hide()),(e.equals(10)||e.equals(3))&&(e.preventDefault(),this.accept())}))),this._diffs=[],this._currentDiff=null}prev(){let e=0;if(this._isVisible||(this._diffs=this._compute()),this._isVisible){let t=-1;for(let e=0,i=this._diffs.length;e0){const t=e[s-1];n=0===t.originalEndLineNumber?t.originalStartLineNumber+1:t.originalEndLineNumber+1,o=0===t.modifiedEndLineNumber?t.modifiedStartLineNumber+1:t.modifiedEndLineNumber+1}let r=t-3+1,a=i-3+1;if(ra){const e=a-m;m+=e,f+=e}if(f>p){const e=p-f;m+=e,f+=e}u[g++]=new R(n,m,o,f)}n[o++]=new O(u)}let s=n[0].entries,r=[],a=0;for(let e=1,t=n.length;ep)&&(p=n),0!==o&&(0===m||of)&&(f=s)}let _=document.createElement("div");_.className="diff-review-row";let v=document.createElement("div");v.className="diff-review-cell diff-review-summary";const b=p-g+1,C=f-m+1;v.appendChild(document.createTextNode(`${h+1}/${this._diffs.length}: @@ -${g},${b} +${m},${C} @@`)),_.setAttribute("data-line",String(m));const w=e=>0===e?o.N("no_lines_changed","no lines changed"):1===e?o.N("one_line_changed","1 line changed"):o.N("more_lines_changed","{0} lines changed",e),S=w(b),y=w(C);_.setAttribute("aria-label",o.N({key:"header",comment:["This is the ARIA label for a git diff header.","A git diff header looks like this: @@ -154,12 +159,39 @@.","That encodes that at original line 154 (which is now line 159), 12 lines were removed/changed with 39 lines.","Variables 0 and 1 refer to the diff index out of total number of diffs.","Variables 2 and 4 will be numbers (a line number).",'Variables 3 and 5 will be "no lines changed", "1 line changed" or "X lines changed", localized separately.']},"Difference {0} of {1}: original line {2}, {3}, modified line {4}, {5}",h+1,this._diffs.length,g,S,m,y)),_.appendChild(v),_.setAttribute("role","listitem"),u.appendChild(_);const L=i.get(58);let N=m;for(let o=0,s=d.length;oe}),V=T([M(1,I.h)],V),(0,k.Ic)(((e,t)=>{const i=e.getColor(S.hw);i&&t.addRule(`.monaco-diff-editor .diff-review-line-number { color: ${i}; }`);const n=e.getColor(x._w);n&&t.addRule(`.monaco-diff-editor .diff-review-shadow { box-shadow: ${n} 0 -6px 6px -6px inset; }`)}));class W extends v.R6{constructor(){super({id:"editor.action.diffReview.next",label:o.N("editor.action.diffReview.next","Go to Next Difference"),alias:"Go to Next Difference",precondition:N.Ao.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:65,weight:100}})}run(e,t){const i=z(e);i&&i.diffReviewNext()}}class H extends v.R6{constructor(){super({id:"editor.action.diffReview.prev",label:o.N("editor.action.diffReview.prev","Go to Previous Difference"),alias:"Go to Previous Difference",precondition:N.Ao.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:1089,weight:100}})}run(e,t){const i=z(e);i&&i.diffReviewPrev()}}function z(e){const t=e.get(g.$),i=t.listDiffEditors(),n=t.getActiveCodeEditor();if(!n)return null;for(let e=0,t=i.length;en.modifiedStartLineNumber?o.N("diff.clipboard.copyDeletedLinesContent.label","Copy deleted lines"):o.N("diff.clipboard.copyDeletedLinesContent.single.label","Copy deleted line"):n.originalEndLineNumber>n.modifiedStartLineNumber?o.N("diff.clipboard.copyChangedLinesContent.label","Copy changed lines"):o.N("diff.clipboard.copyChangedLinesContent.single.label","Copy changed line"),void 0,!0,(()=>ee(this,void 0,void 0,(function*(){const e=new K.e(n.originalStartLineNumber,1,n.originalEndLineNumber+1,1),t=n.originalModel.getValueInRange(e);yield this._clipboardService.writeText(t)})))));let u,g=0;n.originalEndLineNumber>n.modifiedStartLineNumber&&(u=new _.aU("diff.clipboard.copyDeletedLineContent",c?o.N("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",n.originalStartLineNumber):o.N("diff.clipboard.copyChangedLineContent.label","Copy changed line ({0})",n.originalStartLineNumber),void 0,!0,(()=>ee(this,void 0,void 0,(function*(){const e=n.originalModel.getLineContent(n.originalStartLineNumber+g);if(""===e){const e=n.originalModel.getEndOfLineSequence();yield this._clipboardService.writeText(0===e?"\n":"\r\n")}else yield this._clipboardService.writeText(e)})))),d.push(u));i.getOption(80)||d.push(new _.aU("diff.inline.revertChange",o.N("diff.inline.revertChange.label","Revert this change"),void 0,!0,(()=>ee(this,void 0,void 0,(function*(){const e=new K.e(n.originalStartLineNumber,1,n.originalEndLineNumber,n.originalModel.getLineMaxColumn(n.originalEndLineNumber)),t=n.originalModel.getValueInRange(e);if(0===n.modifiedEndLineNumber){const e=i.getModel().getLineMaxColumn(n.modifiedStartLineNumber);i.executeEdits("diffEditor",[{range:new K.e(n.modifiedStartLineNumber,e,n.modifiedStartLineNumber,e),text:h+t}])}else{const e=i.getModel().getLineMaxColumn(n.modifiedEndLineNumber);i.executeEdits("diffEditor",[{range:new K.e(n.modifiedStartLineNumber,1,n.modifiedEndLineNumber,e),text:t}])}})))));const p=(e,t)=>{this._contextMenuService.showContextMenu({getAnchor:()=>({x:e,y:t}),getActions:()=>(u&&(u.label=c?o.N("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",n.originalStartLineNumber+g):o.N("diff.clipboard.copyChangedLineContent.label","Copy changed line ({0})",n.originalStartLineNumber+g)),d),autoSelectFirstItem:!0})};this._register(s.mu(this._diffActions,"mousedown",(e=>{const{top:t,height:i}=s.i(this._diffActions);let n=Math.floor(l/3);e.preventDefault(),p(e.posx,t+i+n)}))),this._register(i.onMouseMove((e=>{if(8===e.target.type||5===e.target.type){e.target.detail.viewZoneId===this._viewZoneId?(this.visibility=!0,g=this._updateLightBulbPosition(this._marginDomNode,e.event.browserEvent.y,l)):this.visibility=!1}else this.visibility=!1}))),this._register(i.onMouseDown((e=>{if(e.event.rightButton&&(8===e.target.type||5===e.target.type)){e.target.detail.viewZoneId===this._viewZoneId&&(e.event.preventDefault(),g=this._updateLightBulbPosition(this._marginDomNode,e.event.browserEvent.y,l),p(e.event.posx,e.event.posy+l))}})))}get visibility(){return this._visibility}set visibility(e){this._visibility!==e&&(this._visibility=e,this._diffActions.style.visibility=e?"visible":"hidden")}_updateLightBulbPosition(e,t,i){const{top:n}=s.i(e),o=t-n,r=Math.floor(o/i),a=r*i;if(this._diffActions.style.top=`${a}px`,this.diff.viewLineCounts){let e=0;for(let t=0;t=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},he=function(e,t){return function(i,n){t(i,n,e)}};class de{constructor(e,t){this._contextMenuService=e,this._clipboardService=t,this._zones=[],this._inlineDiffMargins=[],this._zonesMap={},this._decorations=[]}getForeignViewZones(e){return e.filter((e=>!this._zonesMap[String(e.id)]))}clean(e){this._zones.length>0&&e.changeViewZones((e=>{for(const t of this._zones)e.removeZone(t)})),this._zones=[],this._zonesMap={},this._decorations=e.deltaDecorations(this._decorations,[])}apply(e,t,i,n){const o=n?u.ZF.capture(e):null;e.changeViewZones((t=>{var n;for(const e of this._zones)t.removeZone(e);for(const e of this._inlineDiffMargins)e.dispose();this._zones=[],this._zonesMap={},this._inlineDiffMargins=[];for(let o=0,s=i.zones.length;oe});let me=class e extends d.JT{constructor(t,i,n,o,a,d,c,u,g,p,m,f){super(),this._editorProgressService=f,this._onDidDispose=this._register(new h.Q5),this.onDidDispose=this._onDidDispose.event,this._onDidUpdateDiff=this._register(new h.Q5),this.onDidUpdateDiff=this._onDidUpdateDiff.event,this._onDidContentSizeChange=this._register(new h.Q5),this._lastOriginalWarning=null,this._lastModifiedWarning=null,this._editorWorkerService=a,this._codeEditorService=u,this._contextKeyService=this._register(d.createScoped(t)),this._instantiationService=c.createChild(new Y.y([N.i6,this._contextKeyService])),this._contextKeyService.createKey("isInDiffEditor",!0),this._themeService=g,this._notificationService=p,this._id=++ce,this._state=0,this._updatingDiffProgress=null,this._domElement=t,i=i||{},this._options=Ee(i,{enableSplitViewResizing:!0,renderSideBySide:!0,maxComputationTime:5e3,maxFileSize:50,ignoreTrimWhitespace:!0,renderIndicators:!0,originalEditable:!1,diffCodeLens:!1,renderOverviewRuler:!0,diffWordWrap:"inherit"}),void 0!==i.isInEmbeddedEditor?this._contextKeyService.createKey("isInEmbeddedDiffEditor",i.isInEmbeddedEditor):this._contextKeyService.createKey("isInEmbeddedDiffEditor",!1),this._updateDecorationsRunner=this._register(new l.pY((()=>this._updateDecorations()),0)),this._containerDomElement=document.createElement("div"),this._containerDomElement.className=e._getClassName(this._themeService.getColorTheme(),this._options.renderSideBySide),this._containerDomElement.style.position="relative",this._containerDomElement.style.height="100%",this._domElement.appendChild(this._containerDomElement),this._overviewViewportDomElement=(0,r.X)(document.createElement("div")),this._overviewViewportDomElement.setClassName("diffViewport"),this._overviewViewportDomElement.setPosition("absolute"),this._overviewDomElement=document.createElement("div"),this._overviewDomElement.className="diffOverview",this._overviewDomElement.style.position="absolute",this._overviewDomElement.appendChild(this._overviewViewportDomElement.domNode),this._register(s.mu(this._overviewDomElement,"mousedown",(e=>{this._modifiedEditor.delegateVerticalScrollbarMouseDown(e)}))),this._options.renderOverviewRuler&&this._containerDomElement.appendChild(this._overviewDomElement),this._originalDomNode=document.createElement("div"),this._originalDomNode.className="editor original",this._originalDomNode.style.position="absolute",this._originalDomNode.style.height="100%",this._containerDomElement.appendChild(this._originalDomNode),this._modifiedDomNode=document.createElement("div"),this._modifiedDomNode.className="editor modified",this._modifiedDomNode.style.position="absolute",this._modifiedDomNode.style.height="100%",this._containerDomElement.appendChild(this._modifiedDomNode),this._beginUpdateDecorationsTimeout=-1,this._currentlyChangingViewZones=!1,this._diffComputationToken=0,this._originalEditorState=new de(m,o),this._modifiedEditorState=new de(m,o),this._isVisible=!0,this._isHandlingScrollEvent=!1,this._elementSizeObserver=this._register(new re.I(this._containerDomElement,i.dimension,(()=>this._onDidContainerSizeChanged()))),i.automaticLayout&&this._elementSizeObserver.startObserving(),this._diffComputationResult=null,this._originalEditor=this._createLeftHandSideEditor(i,n.originalEditor||{}),this._modifiedEditor=this._createRightHandSideEditor(i,n.modifiedEditor||{}),this._originalOverviewRuler=null,this._modifiedOverviewRuler=null,this._reviewPane=c.createInstance(V,this),this._containerDomElement.appendChild(this._reviewPane.domNode.domNode),this._containerDomElement.appendChild(this._reviewPane.shadow.domNode),this._containerDomElement.appendChild(this._reviewPane.actionBarContainer.domNode),this._options.renderSideBySide?this._setStrategy(new we(this._createDataSource(),this._options.enableSplitViewResizing)):this._setStrategy(new ye(this._createDataSource(),this._options.enableSplitViewResizing)),this._register(g.onDidColorThemeChange((t=>{this._strategy&&this._strategy.applyColors(t)&&this._updateDecorationsRunner.schedule(),this._containerDomElement.className=e._getClassName(this._themeService.getColorTheme(),this._options.renderSideBySide)})));const _=v.Uc.getDiffEditorContributions();for(const e of _)try{this._register(c.createInstance(e.ctor,this))}catch(e){(0,oe.dL)(e)}this._codeEditorService.addDiffEditor(this)}_setState(e){this._state!==e&&(this._state=e,this._updatingDiffProgress&&(this._updatingDiffProgress.done(),this._updatingDiffProgress=null),1===this._state&&(this._updatingDiffProgress=this._editorProgressService.show(!0,1e3)))}diffReviewNext(){this._reviewPane.next()}diffReviewPrev(){this._reviewPane.prev()}static _getClassName(e,t){let i="monaco-diff-editor monaco-editor-background ";return t&&(i+="side-by-side "),i+=(0,k.m6)(e.type),i}_recreateOverviewRulers(){this._options.renderOverviewRuler&&(this._originalOverviewRuler&&(this._overviewDomElement.removeChild(this._originalOverviewRuler.getDomNode()),this._originalOverviewRuler.dispose()),this._originalEditor.hasModel()&&(this._originalOverviewRuler=this._originalEditor.createOverviewRuler("original diffOverviewRuler"),this._overviewDomElement.appendChild(this._originalOverviewRuler.getDomNode())),this._modifiedOverviewRuler&&(this._overviewDomElement.removeChild(this._modifiedOverviewRuler.getDomNode()),this._modifiedOverviewRuler.dispose()),this._modifiedEditor.hasModel()&&(this._modifiedOverviewRuler=this._modifiedEditor.createOverviewRuler("modified diffOverviewRuler"),this._overviewDomElement.appendChild(this._modifiedOverviewRuler.getDomNode())),this._layoutOverviewRulers())}_createLeftHandSideEditor(t,i){const n=this._createInnerEditor(this._instantiationService,this._originalDomNode,this._adjustOptionsForLeftHandSide(t),i);this._register(n.onDidScrollChange((e=>{this._isHandlingScrollEvent||(e.scrollTopChanged||e.scrollLeftChanged||e.scrollHeightChanged)&&(this._isHandlingScrollEvent=!0,this._modifiedEditor.setScrollPosition({scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}),this._isHandlingScrollEvent=!1,this._layoutOverviewViewport())}))),this._register(n.onDidChangeViewZones((()=>{this._onViewZonesChanged()}))),this._register(n.onDidChangeConfiguration((e=>{n.getModel()&&(e.hasChanged(43)&&this._updateDecorationsRunner.schedule(),e.hasChanged(130)&&(this._updateDecorationsRunner.cancel(),this._updateDecorations()))}))),this._register(n.onDidChangeHiddenAreas((()=>{this._updateDecorationsRunner.cancel(),this._updateDecorations()}))),this._register(n.onDidChangeModelContent((()=>{this._isVisible&&this._beginUpdateDecorationsSoon()})));const o=this._contextKeyService.createKey("isInDiffLeftEditor",n.hasWidgetFocus());return this._register(n.onDidFocusEditorWidget((()=>o.set(!0)))),this._register(n.onDidBlurEditorWidget((()=>o.set(!1)))),this._register(n.onDidContentSizeChange((t=>{const i=this._originalEditor.getContentWidth()+this._modifiedEditor.getContentWidth()+e.ONE_OVERVIEW_WIDTH,n=Math.max(this._modifiedEditor.getContentHeight(),this._originalEditor.getContentHeight());this._onDidContentSizeChange.fire({contentHeight:n,contentWidth:i,contentHeightChanged:t.contentHeightChanged,contentWidthChanged:t.contentWidthChanged})}))),n}_createRightHandSideEditor(t,i){const n=this._createInnerEditor(this._instantiationService,this._modifiedDomNode,this._adjustOptionsForRightHandSide(t),i);this._register(n.onDidScrollChange((e=>{this._isHandlingScrollEvent||(e.scrollTopChanged||e.scrollLeftChanged||e.scrollHeightChanged)&&(this._isHandlingScrollEvent=!0,this._originalEditor.setScrollPosition({scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}),this._isHandlingScrollEvent=!1,this._layoutOverviewViewport())}))),this._register(n.onDidChangeViewZones((()=>{this._onViewZonesChanged()}))),this._register(n.onDidChangeConfiguration((e=>{n.getModel()&&(e.hasChanged(43)&&this._updateDecorationsRunner.schedule(),e.hasChanged(130)&&(this._updateDecorationsRunner.cancel(),this._updateDecorations()))}))),this._register(n.onDidChangeHiddenAreas((()=>{this._updateDecorationsRunner.cancel(),this._updateDecorations()}))),this._register(n.onDidChangeModelContent((()=>{this._isVisible&&this._beginUpdateDecorationsSoon()}))),this._register(n.onDidChangeModelOptions((e=>{e.tabSize&&this._updateDecorationsRunner.schedule()})));const o=this._contextKeyService.createKey("isInDiffRightEditor",n.hasWidgetFocus());return this._register(n.onDidFocusEditorWidget((()=>o.set(!0)))),this._register(n.onDidBlurEditorWidget((()=>o.set(!1)))),this._register(n.onDidContentSizeChange((t=>{const i=this._originalEditor.getContentWidth()+this._modifiedEditor.getContentWidth()+e.ONE_OVERVIEW_WIDTH,n=Math.max(this._modifiedEditor.getContentHeight(),this._originalEditor.getContentHeight());this._onDidContentSizeChange.fire({contentHeight:n,contentWidth:i,contentHeightChanged:t.contentHeightChanged,contentWidthChanged:t.contentWidthChanged})}))),n}_createInnerEditor(e,t,i,n){return e.createInstance(p.Gm,t,i,n)}dispose(){this._codeEditorService.removeDiffEditor(this),-1!==this._beginUpdateDecorationsTimeout&&(window.clearTimeout(this._beginUpdateDecorationsTimeout),this._beginUpdateDecorationsTimeout=-1),this._cleanViewZonesAndDecorations(),this._originalOverviewRuler&&(this._overviewDomElement.removeChild(this._originalOverviewRuler.getDomNode()),this._originalOverviewRuler.dispose()),this._modifiedOverviewRuler&&(this._overviewDomElement.removeChild(this._modifiedOverviewRuler.getDomNode()),this._modifiedOverviewRuler.dispose()),this._overviewDomElement.removeChild(this._overviewViewportDomElement.domNode),this._options.renderOverviewRuler&&this._containerDomElement.removeChild(this._overviewDomElement),this._containerDomElement.removeChild(this._originalDomNode),this._originalEditor.dispose(),this._containerDomElement.removeChild(this._modifiedDomNode),this._modifiedEditor.dispose(),this._strategy.dispose(),this._containerDomElement.removeChild(this._reviewPane.domNode.domNode),this._containerDomElement.removeChild(this._reviewPane.shadow.domNode),this._containerDomElement.removeChild(this._reviewPane.actionBarContainer.domNode),this._reviewPane.dispose(),this._domElement.removeChild(this._containerDomElement),this._onDidDispose.fire(),super.dispose()}getId(){return this.getEditorType()+":"+this._id}getEditorType(){return $.g.IDiffEditor}getLineChanges(){return this._diffComputationResult?this._diffComputationResult.changes:null}getOriginalEditor(){return this._originalEditor}getModifiedEditor(){return this._modifiedEditor}updateOptions(t){const i=Ee(t,this._options),n=(o=this._options,s=i,{enableSplitViewResizing:o.enableSplitViewResizing!==s.enableSplitViewResizing,renderSideBySide:o.renderSideBySide!==s.renderSideBySide,maxComputationTime:o.maxComputationTime!==s.maxComputationTime,maxFileSize:o.maxFileSize!==s.maxFileSize,ignoreTrimWhitespace:o.ignoreTrimWhitespace!==s.ignoreTrimWhitespace,renderIndicators:o.renderIndicators!==s.renderIndicators,originalEditable:o.originalEditable!==s.originalEditable,diffCodeLens:o.diffCodeLens!==s.diffCodeLens,renderOverviewRuler:o.renderOverviewRuler!==s.renderOverviewRuler,diffWordWrap:o.diffWordWrap!==s.diffWordWrap});var o,s;this._options=i;const r=n.ignoreTrimWhitespace||n.renderIndicators,a=this._isVisible&&(n.maxComputationTime||n.maxFileSize);r?this._beginUpdateDecorations():a&&this._beginUpdateDecorationsSoon(),this._modifiedEditor.updateOptions(this._adjustOptionsForRightHandSide(t)),this._originalEditor.updateOptions(this._adjustOptionsForLeftHandSide(t)),this._strategy.setEnableSplitViewResizing(this._options.enableSplitViewResizing),n.renderSideBySide&&(this._options.renderSideBySide?this._setStrategy(new we(this._createDataSource(),this._options.enableSplitViewResizing)):this._setStrategy(new ye(this._createDataSource(),this._options.enableSplitViewResizing)),this._containerDomElement.className=e._getClassName(this._themeService.getColorTheme(),this._options.renderSideBySide)),n.renderOverviewRuler&&(this._options.renderOverviewRuler?this._containerDomElement.appendChild(this._overviewDomElement):this._containerDomElement.removeChild(this._overviewDomElement))}getModel(){return{original:this._originalEditor.getModel(),modified:this._modifiedEditor.getModel()}}setModel(e){if(e&&(!e.original||!e.modified))throw new Error(e.original?"DiffEditorWidget.setModel: Modified model is null":"DiffEditorWidget.setModel: Original model is null");this._cleanViewZonesAndDecorations(),this._originalEditor.setModel(e?e.original:null),this._modifiedEditor.setModel(e?e.modified:null),this._updateDecorationsRunner.cancel(),e&&(this._originalEditor.setScrollTop(0),this._modifiedEditor.setScrollTop(0)),this._diffComputationResult=null,this._diffComputationToken++,this._setState(0),e&&(this._recreateOverviewRulers(),this._beginUpdateDecorations()),this._layoutOverviewViewport()}getDomNode(){return this._domElement}getVisibleColumnFromPosition(e){return this._modifiedEditor.getVisibleColumnFromPosition(e)}getPosition(){return this._modifiedEditor.getPosition()}setPosition(e){this._modifiedEditor.setPosition(e)}revealLine(e,t=0){this._modifiedEditor.revealLine(e,t)}revealLineInCenter(e,t=0){this._modifiedEditor.revealLineInCenter(e,t)}revealLineInCenterIfOutsideViewport(e,t=0){this._modifiedEditor.revealLineInCenterIfOutsideViewport(e,t)}revealLineNearTop(e,t=0){this._modifiedEditor.revealLineNearTop(e,t)}revealPosition(e,t=0){this._modifiedEditor.revealPosition(e,t)}revealPositionInCenter(e,t=0){this._modifiedEditor.revealPositionInCenter(e,t)}revealPositionInCenterIfOutsideViewport(e,t=0){this._modifiedEditor.revealPositionInCenterIfOutsideViewport(e,t)}revealPositionNearTop(e,t=0){this._modifiedEditor.revealPositionNearTop(e,t)}getSelection(){return this._modifiedEditor.getSelection()}getSelections(){return this._modifiedEditor.getSelections()}setSelection(e){this._modifiedEditor.setSelection(e)}setSelections(e){this._modifiedEditor.setSelections(e)}revealLines(e,t,i=0){this._modifiedEditor.revealLines(e,t,i)}revealLinesInCenter(e,t,i=0){this._modifiedEditor.revealLinesInCenter(e,t,i)}revealLinesInCenterIfOutsideViewport(e,t,i=0){this._modifiedEditor.revealLinesInCenterIfOutsideViewport(e,t,i)}revealLinesNearTop(e,t,i=0){this._modifiedEditor.revealLinesNearTop(e,t,i)}revealRange(e,t=0,i=!1,n=!0){this._modifiedEditor.revealRange(e,t,i,n)}revealRangeInCenter(e,t=0){this._modifiedEditor.revealRangeInCenter(e,t)}revealRangeInCenterIfOutsideViewport(e,t=0){this._modifiedEditor.revealRangeInCenterIfOutsideViewport(e,t)}revealRangeNearTop(e,t=0){this._modifiedEditor.revealRangeNearTop(e,t)}revealRangeNearTopIfOutsideViewport(e,t=0){this._modifiedEditor.revealRangeNearTopIfOutsideViewport(e,t)}revealRangeAtTop(e,t=0){this._modifiedEditor.revealRangeAtTop(e,t)}getSupportedActions(){return this._modifiedEditor.getSupportedActions()}saveViewState(){return{original:this._originalEditor.saveViewState(),modified:this._modifiedEditor.saveViewState()}}restoreViewState(e){if(e&&e.original&&e.modified){const t=e;this._originalEditor.restoreViewState(t.original),this._modifiedEditor.restoreViewState(t.modified)}}layout(e){this._elementSizeObserver.observe(e)}focus(){this._modifiedEditor.focus()}hasTextFocus(){return this._originalEditor.hasTextFocus()||this._modifiedEditor.hasTextFocus()}trigger(e,t,i){this._modifiedEditor.trigger(e,t,i)}changeDecorations(e){return this._modifiedEditor.changeDecorations(e)}_onDidContainerSizeChanged(){this._doLayout()}_getReviewHeight(){return this._reviewPane.isVisible()?this._elementSizeObserver.getHeight():0}_layoutOverviewRulers(){if(!this._options.renderOverviewRuler)return;if(!this._originalOverviewRuler||!this._modifiedOverviewRuler)return;const t=this._elementSizeObserver.getHeight(),i=this._getReviewHeight(),n=e.ENTIRE_DIFF_OVERVIEW_WIDTH-2*e.ONE_OVERVIEW_WIDTH;this._modifiedEditor.getLayoutInfo()&&(this._originalOverviewRuler.setLayout({top:0,width:e.ONE_OVERVIEW_WIDTH,right:n+e.ONE_OVERVIEW_WIDTH,height:t-i}),this._modifiedOverviewRuler.setLayout({top:0,right:0,width:e.ONE_OVERVIEW_WIDTH,height:t-i}))}_onViewZonesChanged(){this._currentlyChangingViewZones||this._updateDecorationsRunner.schedule()}_beginUpdateDecorationsSoon(){-1!==this._beginUpdateDecorationsTimeout&&(window.clearTimeout(this._beginUpdateDecorationsTimeout),this._beginUpdateDecorationsTimeout=-1),this._beginUpdateDecorationsTimeout=window.setTimeout((()=>this._beginUpdateDecorations()),e.UPDATE_DIFF_DECORATIONS_DELAY)}static _equals(e,t){return!e&&!t||!(!e||!t)&&e.toString()===t.toString()}_beginUpdateDecorations(){this._beginUpdateDecorationsTimeout=-1;const t=this._originalEditor.getModel(),i=this._modifiedEditor.getModel();if(!t||!i)return;this._diffComputationToken++;const n=this._diffComputationToken,s=1024*this._options.maxFileSize*1024,r=e=>{const t=e.getValueLength();return 0===s||t<=s};r(t)&&r(i)?(this._setState(1),this._editorWorkerService.computeDiff(t.uri,i.uri,this._options.ignoreTrimWhitespace,this._options.maxComputationTime).then((e=>{n===this._diffComputationToken&&t===this._originalEditor.getModel()&&i===this._modifiedEditor.getModel()&&(this._setState(2),this._diffComputationResult=e,this._updateDecorationsRunner.schedule(),this._onDidUpdateDiff.fire())}),(e=>{n===this._diffComputationToken&&t===this._originalEditor.getModel()&&i===this._modifiedEditor.getModel()&&(this._setState(2),this._diffComputationResult=null,this._updateDecorationsRunner.schedule())}))):e._equals(t.uri,this._lastOriginalWarning)&&e._equals(i.uri,this._lastModifiedWarning)||(this._lastOriginalWarning=t.uri,this._lastModifiedWarning=i.uri,this._notificationService.warn(o.N("diff.tooLarge","Cannot compare files because one file is too large.")))}_cleanViewZonesAndDecorations(){this._originalEditorState.clean(this._originalEditor),this._modifiedEditorState.clean(this._modifiedEditor)}_updateDecorations(){if(!this._originalEditor.getModel()||!this._modifiedEditor.getModel())return;const e=this._diffComputationResult?this._diffComputationResult.changes:[],t=this._originalEditorState.getForeignViewZones(this._originalEditor.getWhitespaces()),i=this._modifiedEditorState.getForeignViewZones(this._modifiedEditor.getWhitespaces()),n=this._strategy.getEditorsDiffDecorations(e,this._options.ignoreTrimWhitespace,this._options.renderIndicators,t,i);try{this._currentlyChangingViewZones=!0,this._originalEditorState.apply(this._originalEditor,this._originalOverviewRuler,n.original,!1),this._modifiedEditorState.apply(this._modifiedEditor,this._modifiedOverviewRuler,n.modified,!0)}finally{this._currentlyChangingViewZones=!1}}_adjustOptionsForSubEditor(e){const t=Object.assign({},e);return t.inDiffEditor=!0,t.automaticLayout=!1,t.scrollbar=Object.assign({},t.scrollbar||{}),t.scrollbar.vertical="visible",t.folding=!1,t.codeLens=this._options.diffCodeLens,t.fixedOverflowWidgets=!0,t.minimap=Object.assign({},t.minimap||{}),t.minimap.enabled=!1,t}_adjustOptionsForLeftHandSide(e){const t=this._adjustOptionsForSubEditor(e);return this._options.renderSideBySide?t.wordWrapOverride1=this._options.diffWordWrap:t.wordWrapOverride1="off",e.originalAriaLabel&&(t.ariaLabel=e.originalAriaLabel),t.readOnly=!this._options.originalEditable,t.extraEditorClassName="original-in-monaco-diff-editor",Object.assign(Object.assign({},t),{dimension:{height:0,width:0}})}_adjustOptionsForRightHandSide(t){const i=this._adjustOptionsForSubEditor(t);return t.modifiedAriaLabel&&(i.ariaLabel=t.modifiedAriaLabel),i.wordWrapOverride1=this._options.diffWordWrap,i.revealHorizontalRightPadding=b.BH.revealHorizontalRightPadding.defaultValue+e.ENTIRE_DIFF_OVERVIEW_WIDTH,i.scrollbar.verticalHasArrows=!1,i.extraEditorClassName="modified-in-monaco-diff-editor",Object.assign(Object.assign({},i),{dimension:{height:0,width:0}})}doLayout(){this._elementSizeObserver.observe(),this._doLayout()}_doLayout(){const t=this._elementSizeObserver.getWidth(),i=this._elementSizeObserver.getHeight(),n=this._getReviewHeight(),o=this._strategy.layout();this._originalDomNode.style.width=o+"px",this._originalDomNode.style.left="0px",this._modifiedDomNode.style.width=t-o+"px",this._modifiedDomNode.style.left=o+"px",this._overviewDomElement.style.top="0px",this._overviewDomElement.style.height=i-n+"px",this._overviewDomElement.style.width=e.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",this._overviewDomElement.style.left=t-e.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",this._overviewViewportDomElement.setWidth(e.ENTIRE_DIFF_OVERVIEW_WIDTH),this._overviewViewportDomElement.setHeight(30),this._originalEditor.layout({width:o,height:i-n}),this._modifiedEditor.layout({width:t-o-(this._options.renderOverviewRuler?e.ENTIRE_DIFF_OVERVIEW_WIDTH:0),height:i-n}),(this._originalOverviewRuler||this._modifiedOverviewRuler)&&this._layoutOverviewRulers(),this._reviewPane.layout(i-n,t,n),this._layoutOverviewViewport()}_layoutOverviewViewport(){const e=this._computeOverviewViewport();e?(this._overviewViewportDomElement.setTop(e.top),this._overviewViewportDomElement.setHeight(e.height)):(this._overviewViewportDomElement.setTop(0),this._overviewViewportDomElement.setHeight(0))}_computeOverviewViewport(){const e=this._modifiedEditor.getLayoutInfo();if(!e)return null;const t=this._modifiedEditor.getScrollTop(),i=this._modifiedEditor.getScrollHeight(),n=Math.max(0,e.height),o=Math.max(0,n-0),s=i>0?o/i:0;return{height:Math.max(0,Math.floor(e.height*s)),top:Math.floor(t*s)}}_createDataSource(){return{getWidth:()=>this._elementSizeObserver.getWidth(),getHeight:()=>this._elementSizeObserver.getHeight()-this._getReviewHeight(),getOptions:()=>({renderOverviewRuler:this._options.renderOverviewRuler}),getContainerDomNode:()=>this._containerDomElement,relayoutEditors:()=>{this._doLayout()},getOriginalEditor:()=>this._originalEditor,getModifiedEditor:()=>this._modifiedEditor}}_setStrategy(e){this._strategy&&this._strategy.dispose(),this._strategy=e,e.applyColors(this._themeService.getColorTheme()),this._diffComputationResult&&this._updateDecorations(),this._doLayout()}_getLineChangeAtOrBeforeLineNumber(e,t){const i=this._diffComputationResult?this._diffComputationResult.changes:[];if(0===i.length||e=a?n=s+1:(n=s,o=s)}return i[n]}_getEquivalentLineForOriginalLineNumber(e){const t=this._getLineChangeAtOrBeforeLineNumber(e,(e=>e.originalStartLineNumber));if(!t)return e;const i=t.originalStartLineNumber+(t.originalEndLineNumber>0?-1:0),n=t.modifiedStartLineNumber+(t.modifiedEndLineNumber>0?-1:0),o=t.originalEndLineNumber>0?t.originalEndLineNumber-t.originalStartLineNumber+1:0,s=t.modifiedEndLineNumber>0?t.modifiedEndLineNumber-t.modifiedStartLineNumber+1:0,r=e-i;return r<=o?n+Math.min(r,s):n+s-o+r}_getEquivalentLineForModifiedLineNumber(e){const t=this._getLineChangeAtOrBeforeLineNumber(e,(e=>e.modifiedStartLineNumber));if(!t)return e;const i=t.originalStartLineNumber+(t.originalEndLineNumber>0?-1:0),n=t.modifiedStartLineNumber+(t.modifiedEndLineNumber>0?-1:0),o=t.originalEndLineNumber>0?t.originalEndLineNumber-t.originalStartLineNumber+1:0,s=t.modifiedEndLineNumber>0?t.modifiedEndLineNumber-t.modifiedStartLineNumber+1:0,r=e-n;return r<=s?i+Math.min(r,o):i+o-s+r}getDiffLineInformationForOriginal(e){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForOriginalLineNumber(e)}:null}getDiffLineInformationForModified(e){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForModifiedLineNumber(e)}:null}};me.ONE_OVERVIEW_WIDTH=15,me.ENTIRE_DIFF_OVERVIEW_WIDTH=30,me.UPDATE_DIFF_DECORATIONS_DELAY=200,me=le([he(3,ne.p),he(4,q.p),he(5,N.i6),he(6,Q.TG),he(7,g.$),he(8,k.XE),he(9,X.lT),he(10,J.i),he(11,se.e)],me);class fe extends d.JT{constructor(e){super(),this._dataSource=e,this._insertColor=null,this._removeColor=null}applyColors(e){const t=(e.getColor(x.yp)||x.Cz).transparent(2),i=(e.getColor(x.P4)||x.ke).transparent(2),n=!t.equals(this._insertColor)||!i.equals(this._removeColor);return this._insertColor=t,this._removeColor=i,n}getEditorsDiffDecorations(e,t,i,n,o){o=o.sort(((e,t)=>e.afterLineNumber-t.afterLineNumber)),n=n.sort(((e,t)=>e.afterLineNumber-t.afterLineNumber));const s=this._getViewZones(e,n,o,i),r=this._getOriginalEditorDecorations(e,t,i),a=this._getModifiedEditorDecorations(e,t,i);return{original:{decorations:r.decorations,overviewZones:r.overviewZones,zones:s.original},modified:{decorations:a.decorations,overviewZones:a.overviewZones,zones:s.modified}}}}class _e{constructor(e){this._source=e,this._index=-1,this.current=null,this.advance()}advance(){this._index++,this._indexe.afterLineNumber-t.afterLineNumber,_=(e,t)=>{if(null===t.domNode&&e.length>0){const i=e[e.length-1];if(i.afterLineNumber===t.afterLineNumber&&null===i.domNode)return void(i.heightInLines+=t.heightInLines)}e.push(t)},v=new _e(this._modifiedForeignVZ),b=new _e(this._originalForeignVZ);let C=1,w=1;for(let i=0,n=this._lineChanges.length;i<=n;i++){const S=i0?-1:0),g=S.modifiedStartLineNumber+(S.modifiedEndLineNumber>0?-1:0),c=S.originalEndLineNumber>0?ve._getViewLineCount(this._originalEditor,S.originalStartLineNumber,S.originalEndLineNumber):0,d=S.modifiedEndLineNumber>0?ve._getViewLineCount(this._modifiedEditor,S.modifiedStartLineNumber,S.modifiedEndLineNumber):0,p=Math.max(S.originalStartLineNumber,S.originalEndLineNumber),m=Math.max(S.modifiedStartLineNumber,S.modifiedEndLineNumber)):(u+=1e7+c,g+=1e7+d,p=u,m=g);let y=[],L=[];if(o){let e;e=S?S.originalEndLineNumber>0?S.originalStartLineNumber-C:S.modifiedStartLineNumber-w:s.getLineCount()-C;for(let t=0;to&&L.push({afterLineNumber:i,heightInLines:n-o,domNode:null,marginDomNode:null})}S&&(C=(S.originalEndLineNumber>0?S.originalEndLineNumber:S.originalStartLineNumber)+1,w=(S.modifiedEndLineNumber>0?S.modifiedEndLineNumber:S.modifiedStartLineNumber)+1)}for(;v.current&&v.current.afterLineNumber<=m;){let e;e=v.current.afterLineNumber<=g?u-g+v.current.afterLineNumber:p;let i=null;S&&S.modifiedStartLineNumber<=v.current.afterLineNumber&&v.current.afterLineNumber<=S.modifiedEndLineNumber&&(i=this._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion()),y.push({afterLineNumber:e,heightInLines:v.current.height/t,domNode:null,marginDomNode:i}),v.advance()}for(;b.current&&b.current.afterLineNumber<=p;){let t;t=b.current.afterLineNumber<=u?g-u+b.current.afterLineNumber:m,L.push({afterLineNumber:t,heightInLines:b.current.height/e,domNode:null}),b.advance()}if(null!==S&&Ne(S)){const e=this._produceOriginalFromDiff(S,c,d);e&&y.push(e)}if(null!==S&&xe(S)){const e=this._produceModifiedFromDiff(S,c,d);e&&L.push(e)}let N=0,x=0;for(y=y.sort(f),L=L.sort(f);N=t.heightInLines?(e.heightInLines-=t.heightInLines,x++):(t.heightInLines-=e.heightInLines,N++)}for(;N(e.domNode||(e.domNode=ke()),e)))}}function be(e,t,i,n,o){return{range:new K.e(e,t,i,n),options:o}}const Ce={charDelete:j.qx.register({description:"diff-editor-char-delete",className:"char-delete"}),charDeleteWholeLine:j.qx.register({description:"diff-editor-char-delete-whole-line",className:"char-delete",isWholeLine:!0}),charInsert:j.qx.register({description:"diff-editor-char-insert",className:"char-insert"}),charInsertWholeLine:j.qx.register({description:"diff-editor-char-insert-whole-line",className:"char-insert",isWholeLine:!0}),lineInsert:j.qx.register({description:"diff-editor-line-insert",className:"line-insert",marginClassName:"line-insert",isWholeLine:!0}),lineInsertWithSign:j.qx.register({description:"diff-editor-line-insert-with-sign",className:"line-insert",linesDecorationsClassName:"insert-sign "+k.kS.asClassName(ue),marginClassName:"line-insert",isWholeLine:!0}),lineDelete:j.qx.register({description:"diff-editor-line-delete",className:"line-delete",marginClassName:"line-delete",isWholeLine:!0}),lineDeleteWithSign:j.qx.register({description:"diff-editor-line-delete-with-sign",className:"line-delete",linesDecorationsClassName:"delete-sign "+k.kS.asClassName(ge),marginClassName:"line-delete",isWholeLine:!0}),lineDeleteMargin:j.qx.register({description:"diff-editor-line-delete-margin",marginClassName:"line-delete"})};class we extends fe{constructor(e,t){super(e),this._disableSash=!1===t,this._sashRatio=null,this._sashPosition=null,this._startSashPosition=null,this._sash=this._register(new a.g(this._dataSource.getContainerDomNode(),this,{orientation:0})),this._disableSash&&(this._sash.state=0),this._sash.onDidStart((()=>this._onSashDragStart())),this._sash.onDidChange((e=>this._onSashDrag(e))),this._sash.onDidEnd((()=>this._onSashDragEnd())),this._sash.onDidReset((()=>this._onSashReset()))}setEnableSplitViewResizing(e){const t=!1===e;this._disableSash!==t&&(this._disableSash=t,this._sash.state=this._disableSash?0:3)}layout(e=this._sashRatio){const t=this._dataSource.getWidth()-(this._dataSource.getOptions().renderOverviewRuler?me.ENTIRE_DIFF_OVERVIEW_WIDTH:0);let i=Math.floor((e||.5)*t);const n=Math.floor(.5*t);return i=this._disableSash?n:i||n,t>2*we.MINIMUM_EDITOR_WIDTH?(it-we.MINIMUM_EDITOR_WIDTH&&(i=t-we.MINIMUM_EDITOR_WIDTH)):i=n,this._sashPosition!==i&&(this._sashPosition=i,this._sash.layout()),this._sashPosition}_onSashDragStart(){this._startSashPosition=this._sashPosition}_onSashDrag(e){const t=this._dataSource.getWidth()-(this._dataSource.getOptions().renderOverviewRuler?me.ENTIRE_DIFF_OVERVIEW_WIDTH:0),i=this.layout((this._startSashPosition+(e.currentX-e.startX))/t);this._sashRatio=i/t,this._dataSource.relayoutEditors()}_onSashDragEnd(){this._sash.layout()}_onSashReset(){this._sashRatio=.5,this._dataSource.relayoutEditors(),this._sash.layout()}getVerticalSashTop(e){return 0}getVerticalSashLeft(e){return this._sashPosition}getVerticalSashHeight(e){return this._dataSource.getHeight()}_getViewZones(e,t,i){const n=this._dataSource.getOriginalEditor(),o=this._dataSource.getModifiedEditor();return new Se(e,t,i,n,o).getViewZones()}_getOriginalEditorDecorations(e,t,i){const n=this._dataSource.getOriginalEditor(),o=String(this._removeColor),s={decorations:[],overviewZones:[]},r=n.getModel(),a=n._getViewModel();for(const n of e)if(xe(n)){s.decorations.push({range:new K.e(n.originalStartLineNumber,1,n.originalEndLineNumber,1073741824),options:i?Ce.lineDeleteWithSign:Ce.lineDelete}),Ne(n)&&n.charChanges||s.decorations.push(be(n.originalStartLineNumber,1,n.originalEndLineNumber,1073741824,Ce.charDeleteWholeLine));const e=De(r,a,n.originalStartLineNumber,n.originalEndLineNumber);if(s.overviewZones.push(new G.EY(e.startLineNumber,e.endLineNumber,o)),n.charChanges)for(const e of n.charChanges)if(xe(e))if(t)for(let t=e.originalStartLineNumber;t<=e.originalEndLineNumber;t++){let i,n;i=t===e.originalStartLineNumber?e.originalStartColumn:r.getLineFirstNonWhitespaceColumn(t),n=t===e.originalEndLineNumber?e.originalEndColumn:r.getLineLastNonWhitespaceColumn(t),s.decorations.push(be(t,i,t,n,Ce.charDelete))}else s.decorations.push(be(e.originalStartLineNumber,e.originalStartColumn,e.originalEndLineNumber,e.originalEndColumn,Ce.charDelete))}return s}_getModifiedEditorDecorations(e,t,i){const n=this._dataSource.getModifiedEditor(),o=String(this._insertColor),s={decorations:[],overviewZones:[]},r=n.getModel(),a=n._getViewModel();for(const n of e)if(Ne(n)){s.decorations.push({range:new K.e(n.modifiedStartLineNumber,1,n.modifiedEndLineNumber,1073741824),options:i?Ce.lineInsertWithSign:Ce.lineInsert}),xe(n)&&n.charChanges||s.decorations.push(be(n.modifiedStartLineNumber,1,n.modifiedEndLineNumber,1073741824,Ce.charInsertWholeLine));const e=De(r,a,n.modifiedStartLineNumber,n.modifiedEndLineNumber);if(s.overviewZones.push(new G.EY(e.startLineNumber,e.endLineNumber,o)),n.charChanges)for(const e of n.charChanges)if(Ne(e))if(t)for(let t=e.modifiedStartLineNumber;t<=e.modifiedEndLineNumber;t++){let i,n;i=t===e.modifiedStartLineNumber?e.modifiedStartColumn:r.getLineFirstNonWhitespaceColumn(t),n=t===e.modifiedEndLineNumber?e.modifiedEndColumn:r.getLineLastNonWhitespaceColumn(t),s.decorations.push(be(t,i,t,n,Ce.charInsert))}else s.decorations.push(be(e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn,Ce.charInsert))}return s}}we.MINIMUM_EDITOR_WIDTH=100;class Se extends ve{constructor(e,t,i,n,o){super(e,t,i,n,o)}_createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion(){return null}_produceOriginalFromDiff(e,t,i){return i>t?{afterLineNumber:Math.max(e.originalStartLineNumber,e.originalEndLineNumber),heightInLines:i-t,domNode:null}:null}_produceModifiedFromDiff(e,t,i){return t>i?{afterLineNumber:Math.max(e.modifiedStartLineNumber,e.modifiedEndLineNumber),heightInLines:t-i,domNode:null}:null}}class ye extends fe{constructor(e,t){super(e),this._decorationsLeft=e.getOriginalEditor().getLayoutInfo().decorationsLeft,this._register(e.getOriginalEditor().onDidLayoutChange((t=>{this._decorationsLeft!==t.decorationsLeft&&(this._decorationsLeft=t.decorationsLeft,e.relayoutEditors())})))}setEnableSplitViewResizing(e){}_getViewZones(e,t,i,n){const o=this._dataSource.getOriginalEditor(),s=this._dataSource.getModifiedEditor();return new Le(e,t,i,o,s,n).getViewZones()}_getOriginalEditorDecorations(e,t,i){const n=String(this._removeColor),o={decorations:[],overviewZones:[]},s=this._dataSource.getOriginalEditor(),r=s.getModel(),a=s._getViewModel();for(const t of e)if(xe(t)){o.decorations.push({range:new K.e(t.originalStartLineNumber,1,t.originalEndLineNumber,1073741824),options:Ce.lineDeleteMargin});const e=De(r,a,t.originalStartLineNumber,t.originalEndLineNumber);o.overviewZones.push(new G.EY(e.startLineNumber,e.endLineNumber,n))}return o}_getModifiedEditorDecorations(e,t,i){const n=this._dataSource.getModifiedEditor(),o=String(this._insertColor),s={decorations:[],overviewZones:[]},r=n.getModel(),a=n._getViewModel();for(const n of e)if(Ne(n)){s.decorations.push({range:new K.e(n.modifiedStartLineNumber,1,n.modifiedEndLineNumber,1073741824),options:i?Ce.lineInsertWithSign:Ce.lineInsert});const e=De(r,a,n.modifiedStartLineNumber,n.modifiedEndLineNumber);if(s.overviewZones.push(new G.EY(e.startLineNumber,e.endLineNumber,o)),n.charChanges){for(const e of n.charChanges)if(Ne(e))if(t)for(let t=e.modifiedStartLineNumber;t<=e.modifiedEndLineNumber;t++){let i,n;i=t===e.modifiedStartLineNumber?e.modifiedStartColumn:r.getLineFirstNonWhitespaceColumn(t),n=t===e.modifiedEndLineNumber?e.modifiedEndColumn:r.getLineLastNonWhitespaceColumn(t),s.decorations.push(be(t,i,t,n,Ce.charInsert))}else s.decorations.push(be(e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn,Ce.charInsert))}else s.decorations.push(be(n.modifiedStartLineNumber,1,n.modifiedEndLineNumber,1073741824,Ce.charInsertWholeLine))}return s}layout(){return Math.max(5,this._decorationsLeft)}}class Le extends ve{constructor(e,t,i,n,o,s){super(e,t,i,n,o),this._originalModel=n.getModel(),this._renderIndicators=s,this._pendingLineChange=[],this._pendingViewZones=[],this._lineBreaksComputer=this._modifiedEditor._getViewModel().createLineBreaksComputer()}getViewZones(){const e=super.getViewZones();return this._finalize(e),e}_createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion(){const e=document.createElement("div");return e.className="inline-added-margin-view-zone",e}_produceOriginalFromDiff(e,t,i){const n=document.createElement("div");return n.className="inline-added-margin-view-zone",{afterLineNumber:Math.max(e.originalStartLineNumber,e.originalEndLineNumber),heightInLines:i,domNode:document.createElement("div"),marginDomNode:n}}_produceModifiedFromDiff(e,t,i){const n=document.createElement("div");n.className=`view-lines line-delete ${ae.S}`;const o=document.createElement("div");o.className="inline-deleted-margin-view-zone";const s={shouldNotShrink:!0,afterLineNumber:0===e.modifiedEndLineNumber?e.modifiedStartLineNumber:e.modifiedStartLineNumber-1,heightInLines:t,minWidthInPx:0,domNode:n,marginDomNode:o,diff:{originalStartLineNumber:e.originalStartLineNumber,originalEndLineNumber:e.originalEndLineNumber,modifiedStartLineNumber:e.modifiedStartLineNumber,modifiedEndLineNumber:e.modifiedEndLineNumber,originalModel:this._originalModel,viewLineCounts:null}};for(let t=e.originalStartLineNumber;t<=e.originalEndLineNumber;t++)this._lineBreaksComputer.addRequest(this._originalModel.getLineContent(t),null,null);return this._pendingLineChange.push(e),this._pendingViewZones.push(s),s}_finalize(e){const t=this._modifiedEditor.getOptions(),i=this._modifiedEditor.getModel().getOptions().tabSize,n=t.get(43),o=t.get(29),s=n.typicalHalfwidthCharacterWidth,r=t.get(92),a=this._originalModel.mightContainNonBasicASCII(),l=this._originalModel.mightContainRTL(),h=t.get(58),d=t.get(129).decorationsWidth,u=t.get(104),g=t.get(87),p=t.get(82),m=t.get(44),f=this._lineBreaksComputer.finalize();let _=0;for(let t=0;t0,N=(0,U.l$)(1e4);let x=0,k=0,D=null;for(let t=v.originalStartLineNumber;t<=v.originalEndLineNumber;t++){const s=t-v.originalStartLineNumber,r=this._originalModel.getLineTokens(t),c=r.getLineContent(),C=f[_++],L=Z.Kp.filter(S,t,1,c.length+1);if(C){let f=0;for(const e of C.breakOffsets){const t=r.sliceAndInflate(f,e,0),s=c.substring(f,e);x=Math.max(x,this._renderOriginalLine(k++,s,t,Z.Kp.extractWrapped(L,f,e),y,a,l,n,o,h,d,u,g,p,m,i,N,w)),f=e}for(D||(D=[]);D.lengthe.afterLineNumber-t.afterLineNumber))}_renderOriginalLine(e,t,i,n,o,s,r,a,l,h,d,c,u,g,p,m,f,_){f.appendASCIIString('');const v=L.wA.isBasicASCII(t,s),C=L.wA.containsRTL(t,v,r),w=(0,y.d1)(new y.IJ(a.isMonospace&&!l,a.canUseHalfwidthRightwardsArrow,t,!1,v,C,0,i,n,m,0,a.spaceWidth,a.middotWidth,a.wsmiddotWidth,c,u,g,p!==b.n0.OFF,null),f);if(f.appendASCIIString("
"),this._renderIndicators){const t=document.createElement("div");t.className=`delete-sign ${k.kS.asClassName(ge)}`,t.setAttribute("style",`position:absolute;top:${e*h}px;width:${d}px;height:${h}px;right:0;`),_.appendChild(t)}return w.characterMapping.getAbsoluteOffset(w.characterMapping.length)}}function Ne(e){return e.modifiedEndLineNumber>0}function xe(e){return e.originalEndLineNumber>0}function ke(){const e=document.createElement("div");return e.className="diagonal-fill",e}function De(e,t,i,n){const o=e.getLineCount();return i=Math.min(o,Math.max(1,i)),n=Math.min(o,Math.max(1,n)),t.coordinatesConverter.convertModelRangeToViewRange(new K.e(i,e.getLineMinColumn(i),n,e.getLineMaxColumn(n)))}function Ee(e,t){return{enableSplitViewResizing:(0,b.O7)(e.enableSplitViewResizing,t.enableSplitViewResizing),renderSideBySide:(0,b.O7)(e.renderSideBySide,t.renderSideBySide),maxComputationTime:(0,b.Zc)(e.maxComputationTime,t.maxComputationTime,0,1073741824),maxFileSize:(0,b.Zc)(e.maxFileSize,t.maxFileSize,0,1073741824),ignoreTrimWhitespace:(0,b.O7)(e.ignoreTrimWhitespace,t.ignoreTrimWhitespace),renderIndicators:(0,b.O7)(e.renderIndicators,t.renderIndicators),originalEditable:(0,b.O7)(e.originalEditable,t.originalEditable),diffCodeLens:(0,b.O7)(e.diffCodeLens,t.diffCodeLens),renderOverviewRuler:(0,b.O7)(e.renderOverviewRuler,t.renderOverviewRuler),diffWordWrap:(i=e.diffWordWrap,n=t.diffWordWrap,(0,b.NY)(i,n,["off","on","inherit"]))};var i,n}(0,k.Ic)(((e,t)=>{const i=e.getColor(x.yp);i&&(t.addRule(`.monaco-editor .line-insert, .monaco-editor .char-insert { background-color: ${i}; }`),t.addRule(`.monaco-diff-editor .line-insert, .monaco-diff-editor .char-insert { background-color: ${i}; }`),t.addRule(`.monaco-editor .inline-added-margin-view-zone { background-color: ${i}; }`));const n=e.getColor(x.P4);n&&(t.addRule(`.monaco-editor .line-delete, .monaco-editor .char-delete { background-color: ${n}; }`),t.addRule(`.monaco-diff-editor .line-delete, .monaco-diff-editor .char-delete { background-color: ${n}; }`),t.addRule(`.monaco-editor .inline-deleted-margin-view-zone { background-color: ${n}; }`));const o=e.getColor(x.XL);o&&t.addRule(`.monaco-editor .line-insert, .monaco-editor .char-insert { border: 1px ${"hc"===e.type?"dashed":"solid"} ${o}; }`);const s=e.getColor(x.mH);s&&t.addRule(`.monaco-editor .line-delete, .monaco-editor .char-delete { border: 1px ${"hc"===e.type?"dashed":"solid"} ${s}; }`);const r=e.getColor(x._w);r&&t.addRule(`.monaco-diff-editor.side-by-side .editor.modified { box-shadow: -6px 0 5px -5px ${r}; }`);const a=e.getColor(x.LL);a&&t.addRule(`.monaco-diff-editor.side-by-side .editor.modified { border-left: 1px solid ${a}; }`);const l=e.getColor(x.et);l&&t.addRule(`\n\t\t\t.monaco-diff-editor .diffViewport {\n\t\t\t\tbackground: ${l};\n\t\t\t}\n\t\t`);const h=e.getColor(x.AB);h&&t.addRule(`\n\t\t\t.monaco-diff-editor .diffViewport:hover {\n\t\t\t\tbackground: ${h};\n\t\t\t}\n\t\t`);const d=e.getColor(x.yn);d&&t.addRule(`\n\t\t\t.monaco-diff-editor .diffViewport:active {\n\t\t\t\tbackground: ${d};\n\t\t\t}\n\t\t`);const c=e.getColor(x.L_);t.addRule(`\n\t.monaco-editor .diagonal-fill {\n\t\tbackground-image: linear-gradient(\n\t\t\t-45deg,\n\t\t\t${c} 12.5%,\n\t\t\t#0000 12.5%, #0000 50%,\n\t\t\t${c} 50%, ${c} 62.5%,\n\t\t\t#0000 62.5%, #0000 100%\n\t\t);\n\t\tbackground-size: 8px 8px;\n\t}\n\t`)}))},46810:function(e,t,i){"use strict";i.d(t,{F:function(){return h}});var n=i(76068),o=i(4348),s=i(69323),r=i(80470),a=i(17373);const l={followsCaret:!0,ignoreCharChanges:!0,alwaysRevealFirst:!0};class h extends s.JT{constructor(e,t={}){super(),this._onDidUpdate=this._register(new o.Q5),this._editor=e,this._options=r.jB(t,l,!1),this.disposed=!1,this.nextIdx=-1,this.ranges=[],this.ignoreSelectionChange=!1,this.revealFirst=Boolean(this._options.alwaysRevealFirst),this._register(this._editor.onDidDispose((()=>this.dispose()))),this._register(this._editor.onDidUpdateDiff((()=>this._onDiffUpdated()))),this._options.followsCaret&&this._register(this._editor.getModifiedEditor().onDidChangeCursorPosition((e=>{this.ignoreSelectionChange||(this.nextIdx=-1)}))),this._options.alwaysRevealFirst&&this._register(this._editor.getModifiedEditor().onDidChangeModel((e=>{this.revealFirst=!0}))),this._init()}_init(){this._editor.getLineChanges()}_onDiffUpdated(){this._init(),this._compute(this._editor.getLineChanges()),this.revealFirst&&null!==this._editor.getLineChanges()&&(this.revealFirst=!1,this.nextIdx=-1,this.next(1))}_compute(e){this.ranges=[],e&&e.forEach((e=>{!this._options.ignoreCharChanges&&e.charChanges?e.charChanges.forEach((e=>{this.ranges.push({rhs:!0,range:new a.e(e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn)})})):0===e.modifiedEndLineNumber?this.ranges.push({rhs:!0,range:new a.e(e.modifiedStartLineNumber,1,e.modifiedStartLineNumber+1,1)}):this.ranges.push({rhs:!0,range:new a.e(e.modifiedStartLineNumber,1,e.modifiedEndLineNumber+1,1)})})),this.ranges.sort(((e,t)=>a.e.compareRangesUsingStarts(e.range,t.range))),this._onDidUpdate.fire(this)}_initIdx(e){let t=!1,i=this._editor.getPosition();if(i){for(let n=0,o=this.ranges.length;n=this.ranges.length&&(this.nextIdx=0)):(this.nextIdx-=1,this.nextIdx<0&&(this.nextIdx=this.ranges.length-1));let i=this.ranges[this.nextIdx];this.ignoreSelectionChange=!0;try{let e=i.range.getStartPosition();this._editor.setPosition(e),this._editor.revealRangeInCenter(i.range,t)}finally{this.ignoreSelectionChange=!1}}canNavigate(){return this.ranges&&this.ranges.length>0}next(e=0){this._move(!0,e)}previous(e=0){this._move(!1,e)}dispose(){super.dispose(),this.ranges=[],this.disposed=!0}}},20712:function(e,t,i){"use strict";i.d(t,{H:function(){return p}});var n=i(80470),o=i(70827),s=i(55806),r=i(35884),a=i(90689),l=i(16925),h=i(79504),d=i(49055),c=i(52950),u=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},g=function(e,t){return function(i,n){t(i,n,e)}};let p=class extends s.Gm{constructor(e,t,i,n,o,s,r,a,l,h){super(e,Object.assign(Object.assign({},i.getRawOptions()),{overflowWidgetsDomNode:i.getOverflowWidgetsDomNode()}),{},n,o,s,r,a,l,h),this._parentEditor=i,this._overwriteOptions=t,super.updateOptions(this._overwriteOptions),this._register(i.onDidChangeConfiguration((e=>this._onParentConfigurationChanged(e))))}getParentEditor(){return this._parentEditor}_onParentConfigurationChanged(e){super.updateOptions(this._parentEditor.getRawOptions()),super.updateOptions(this._overwriteOptions)}updateOptions(e){n.jB(this._overwriteOptions,e,!0),super.updateOptions(this._overwriteOptions)}};p=u([g(3,l.TG),g(4,o.$),g(5,r.H),g(6,a.i6),g(7,d.XE),g(8,h.lT),g(9,c.F)],p)},75286:function(e,t,i){"use strict";i.d(t,{OY:function(){return s},Sj:function(){return r},T4:function(){return o},Uo:function(){return a},hP:function(){return l}});var n=i(17551);class o{constructor(e,t,i=!1){this._range=e,this._text=t,this.insertsAutoWhitespace=i}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){let i=t.getInverseEditOperations()[0].range;return new n.Y(i.endLineNumber,i.endColumn,i.endLineNumber,i.endColumn)}}class s{constructor(e,t){this._range=e,this._text=t}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return new n.Y(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn)}}class r{constructor(e,t,i=!1){this._range=e,this._text=t,this.insertsAutoWhitespace=i}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){let i=t.getInverseEditOperations()[0].range;return new n.Y(i.startLineNumber,i.startColumn,i.startLineNumber,i.startColumn)}}class a{constructor(e,t,i,n,o=!1){this._range=e,this._text=t,this._columnDeltaOffset=n,this._lineNumberDeltaOffset=i,this.insertsAutoWhitespace=o}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){let i=t.getInverseEditOperations()[0].range;return new n.Y(i.endLineNumber+this._lineNumberDeltaOffset,i.endColumn+this._columnDeltaOffset,i.endLineNumber+this._lineNumberDeltaOffset,i.endColumn+this._columnDeltaOffset)}}class l{constructor(e,t,i,n=!1){this._range=e,this._text=t,this._initialSelection=i,this._forceMoveMarkers=n,this._selectionId=null}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text,this._forceMoveMarkers),this._selectionId=t.trackSelection(this._initialSelection)}computeCursorState(e,t){return t.getTrackedSelection(this._selectionId)}}},91167:function(e,t,i){"use strict";i.d(t,{U:function(){return d}});var n=i(82983),o=i(69025),s=i(17373),r=i(17551),a=i(73468);const l=Object.create(null);function h(e,t){if(t<=0)return"";l[e]||(l[e]=["",e]);const i=l[e];for(let n=i.length;n<=t;n++)i[n]=i[n-1]+e;return i[t]}class d{constructor(e,t){this._opts=t,this._selection=e,this._selectionId=null,this._useLastEditRangeForCursorEndPosition=!1,this._selectionStartColumnStaysPut=!1}static unshiftIndent(e,t,i,n,s){const r=o.io.visibleColumnFromColumn(e,t,i);if(s){const e=h(" ",n);return h(e,o.io.prevIndentTabStop(r,n)/n)}return h("\t",o.io.prevRenderTabStop(r,i)/i)}static shiftIndent(e,t,i,n,s){const r=o.io.visibleColumnFromColumn(e,t,i);if(s){const e=h(" ",n);return h(e,o.io.nextIndentTabStop(r,n)/n)}return h("\t",o.io.nextRenderTabStop(r,i)/i)}_addEditOperation(e,t,i){this._useLastEditRangeForCursorEndPosition?e.addTrackedEditOperation(t,i):e.addEditOperation(t,i)}getEditOperations(e,t){const i=this._selection.startLineNumber;let r=this._selection.endLineNumber;1===this._selection.endColumn&&i!==r&&(r-=1);const{tabSize:l,indentSize:c,insertSpaces:u}=this._opts,g=i===r;if(this._opts.useTabStops){this._selection.isEmpty()&&/^\s*$/.test(e.getLineContent(i))&&(this._useLastEditRangeForCursorEndPosition=!0);let h=0,p=0;for(let m=i;m<=r;m++,h=p){p=0;let r,f=e.getLineContent(m),_=n.LC(f);if((!this._opts.isUnshift||0!==f.length&&0!==_)&&(g||this._opts.isUnshift||0!==f.length)){if(-1===_&&(_=f.length),m>1){if(o.io.visibleColumnFromColumn(f,_+1,l)%c!=0&&e.isCheapToTokenize(m-1)){let t=a.zu.getEnterAction(this._opts.autoIndent,e,new s.e(m-1,e.getLineMaxColumn(m-1),m-1,e.getLineMaxColumn(m-1)));if(t){if(p=h,t.appendText)for(let e=0,i=t.appendText.length;e{const t=a.filteredTypes[e.key];!1===t&&(a[e.value]=t)}))}const l=e.hover;!0===l?e.hover={enabled:!0}:!1===l&&(e.hover={enabled:!1});const h=e.parameterHints;!0===h?e.parameterHints={enabled:!0}:!1===h&&(e.parameterHints={enabled:!1});const d=e.autoIndent;!0===d?e.autoIndent="full":!1===d&&(e.autoIndent="advanced");const c=e.matchBrackets;!0===c?e.matchBrackets="always":!1===c&&(e.matchBrackets="never");const{renderIndentGuides:u,highlightActiveIndentGuide:p}=e;e.guides||(e.guides={}),void 0!==u&&(e.guides.indentation=!!u),void 0!==p&&(e.guides.highlightActiveIndentation=!!p)}(t),t}class C extends s.JT{constructor(e,t){super(),this._onDidChange=this._register(new o.Q5),this.onDidChange=this._onDidChange.event,this._onDidChangeFast=this._register(new o.Q5),this.onDidChangeFast=this._onDidChangeFast.event,this.isSimpleWidget=e,this._isDominatedByLongLines=!1,this._computeOptionsMemory=new l.LJ,this._viewLineCount=1,this._lineNumbersDigitCount=1,this._rawOptions=b(t),this._readOptions=v.readOptions(this._rawOptions),this._validatedOptions=v.validateOptions(this._readOptions),this._register(h.C.onDidChangeZoomLevel((e=>this._recomputeOptions()))),this._register(p.onDidChangeTabFocus((e=>this._recomputeOptions())))}observeReferenceElement(e){}updatePixelRatio(){}_recomputeOptions(){const e=this.options,t=this._computeInternalOptions();if(e){const i=v.checkEquals(e,t);if(null===i)return;this.options=t,this._onDidChangeFast.fire(i),this._onDidChange.fire(i)}else this.options=t}getRawOptions(){return this._rawOptions}_computeInternalOptions(){const e=this._getEnvConfiguration(),t=d.E4.createFromValidatedSettings(this._validatedOptions,e.zoomLevel,e.pixelRatio,this.isSimpleWidget),i={memory:this._computeOptionsMemory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,fontInfo:this.readConfiguration(t),extraEditorClassName:e.extraEditorClassName,isDominatedByLongLines:this._isDominatedByLongLines,viewLineCount:this._viewLineCount,lineNumbersDigitCount:this._lineNumbersDigitCount,emptySelectionClipboard:e.emptySelectionClipboard,pixelRatio:e.pixelRatio,tabFocusMode:p.getTabFocusMode(),accessibilitySupport:e.accessibilitySupport};return v.computeOptions(this._validatedOptions,i)}static _subsetEquals(e,t){for(const i in t)if(m.call(t,i)){const n=t[i],o=e[i];if(o===n)continue;if(Array.isArray(o)&&Array.isArray(n)){if(!a.fS(o,n))return!1;continue}if(o&&"object"==typeof o&&n&&"object"==typeof n){if(!this._subsetEquals(o,n))return!1;continue}return!1}return!0}updateOptions(e){if(void 0===e)return;const t=b(e);C._subsetEquals(this._rawOptions,t)||(this._rawOptions=r.jB(this._rawOptions,t||{}),this._readOptions=v.readOptions(this._rawOptions),this._validatedOptions=v.validateOptions(this._readOptions),this._recomputeOptions())}setIsDominatedByLongLines(e){this._isDominatedByLongLines=e,this._recomputeOptions()}setMaxLineNumber(e){const t=C._digitCount(e);this._lineNumbersDigitCount!==t&&(this._lineNumbersDigitCount=t,this._recomputeOptions())}setViewLineCount(e){this._viewLineCount!==e&&(this._viewLineCount=e,this._recomputeOptions())}static _digitCount(e){let t=0;for(;e;)e=Math.floor(e/10),t++;return t||1}}const w=Object.freeze({id:"editor",order:5,type:"object",title:n.N("editorConfigurationTitle","Editor"),scope:5}),S=u.B.as(c.IP.Configuration),y=Object.assign(Object.assign({},w),{properties:{"editor.tabSize":{type:"number",default:l.DB.tabSize,minimum:1,markdownDescription:n.N("tabSize","The number of spaces a tab is equal to. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.")},"editor.insertSpaces":{type:"boolean",default:l.DB.insertSpaces,markdownDescription:n.N("insertSpaces","Insert spaces when pressing `Tab`. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.")},"editor.detectIndentation":{type:"boolean",default:l.DB.detectIndentation,markdownDescription:n.N("detectIndentation","Controls whether `#editor.tabSize#` and `#editor.insertSpaces#` will be automatically detected when a file is opened based on the file contents.")},"editor.trimAutoWhitespace":{type:"boolean",default:l.DB.trimAutoWhitespace,description:n.N("trimAutoWhitespace","Remove trailing auto inserted whitespace.")},"editor.largeFileOptimizations":{type:"boolean",default:l.DB.largeFileOptimizations,description:n.N("largeFileOptimizations","Special handling for large files to disable certain memory intensive features.")},"editor.wordBasedSuggestions":{type:"boolean",default:!0,description:n.N("wordBasedSuggestions","Controls whether completions should be computed based on words in the document.")},"editor.wordBasedSuggestionsMode":{enum:["currentDocument","matchingDocuments","allDocuments"],default:"matchingDocuments",enumDescriptions:[n.N("wordBasedSuggestionsMode.currentDocument","Only suggest words from the active document."),n.N("wordBasedSuggestionsMode.matchingDocuments","Suggest words from all open documents of the same language."),n.N("wordBasedSuggestionsMode.allDocuments","Suggest words from all open documents.")],description:n.N("wordBasedSuggestionsMode","Controls from which documents word based completions are computed.")},"editor.semanticHighlighting.enabled":{enum:[!0,!1,"configuredByTheme"],enumDescriptions:[n.N("semanticHighlighting.true","Semantic highlighting enabled for all color themes."),n.N("semanticHighlighting.false","Semantic highlighting disabled for all color themes."),n.N("semanticHighlighting.configuredByTheme","Semantic highlighting is configured by the current color theme's `semanticHighlighting` setting.")],default:"configuredByTheme",description:n.N("semanticHighlighting.enabled","Controls whether the semanticHighlighting is shown for the languages that support it.")},"editor.stablePeek":{type:"boolean",default:!1,markdownDescription:n.N("stablePeek","Keep peek editors open even when double clicking their content or when hitting `Escape`.")},"editor.maxTokenizationLineLength":{type:"integer",default:2e4,description:n.N("maxTokenizationLineLength","Lines above this length will not be tokenized for performance reasons")},"editor.language.brackets":{type:"array",default:!1,description:n.N("schema.brackets","Defines the bracket symbols that increase or decrease the indentation."),items:{type:"array",items:[{type:"string",description:n.N("schema.openBracket","The opening bracket character or string sequence.")},{type:"string",description:n.N("schema.closeBracket","The closing bracket character or string sequence.")}]}},"editor.language.colorizedBracketPairs":{type:"array",default:!1,description:n.N("schema.colorizedBracketPairs","Defines the bracket pairs that are colorized by their nesting level if bracket pair colorization is enabled."),items:{type:"array",items:[{type:"string",description:n.N("schema.openBracket","The opening bracket character or string sequence.")},{type:"string",description:n.N("schema.closeBracket","The closing bracket character or string sequence.")}]}},"diffEditor.maxComputationTime":{type:"number",default:5e3,description:n.N("maxComputationTime","Timeout in milliseconds after which diff computation is cancelled. Use 0 for no timeout.")},"diffEditor.maxFileSize":{type:"number",default:50,description:n.N("maxFileSize","Maximum file size in MB for which to compute diffs. Use 0 for no limit.")},"diffEditor.renderSideBySide":{type:"boolean",default:!0,description:n.N("sideBySide","Controls whether the diff editor shows the diff side by side or inline.")},"diffEditor.ignoreTrimWhitespace":{type:"boolean",default:!0,description:n.N("ignoreTrimWhitespace","When enabled, the diff editor ignores changes in leading or trailing whitespace.")},"diffEditor.renderIndicators":{type:"boolean",default:!0,description:n.N("renderIndicators","Controls whether the diff editor shows +/- indicators for added/removed changes.")},"diffEditor.codeLens":{type:"boolean",default:!1,description:n.N("codeLens","Controls whether the editor shows CodeLens.")},"diffEditor.wordWrap":{type:"string",enum:["off","on","inherit"],default:"inherit",markdownEnumDescriptions:[n.N("wordWrap.off","Lines will never wrap."),n.N("wordWrap.on","Lines will wrap at the viewport width."),n.N("wordWrap.inherit","Lines will wrap according to the `#editor.wordWrap#` setting.")]}}});for(const e of l.Bc){const t=e.schema;if(void 0!==t)if(void 0!==(L=t).type||void 0!==L.anyOf)y.properties[`editor.${e.name}`]=t;else for(let e in t)m.call(t,e)&&(y.properties[e]=t[e])}var L;let N=null;function x(){return null===N&&(N=Object.create(null),Object.keys(y.properties).forEach((e=>{N[e]=!0}))),N}function k(e){return x()[`editor.${e}`]||!1}function D(e){return x()[`diffEditor.${e}`]||!1}S.registerConfiguration(y)},97199:function(e,t,i){"use strict";i.d(t,{$J:function(){return x},BH:function(){return A},Bb:function(){return a},Bc:function(){return T},DB:function(){return I},LJ:function(){return h},NY:function(){return b},O7:function(){return g},Zc:function(){return m},d2:function(){return S},gk:function(){return N},hL:function(){return E},hu:function(){return l},n0:function(){return y},y0:function(){return r}});var n=i(13268),o=i(23345),s=i(87131);const r=8;class a{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class l{constructor(){this._values=[]}_read(e){return this._values[e]}get(e){return this._values[e]}_write(e,t){this._values[e]=t}}class h{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class d{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}compute(e,t,i){return i}}class c{constructor(e,t=null){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0,this.deps=t}validate(e){return this.defaultValue}}class u{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}validate(e){return void 0===e?this.defaultValue:e}compute(e,t,i){return i}}function g(e,t){return void 0===e?t:"false"!==e&&Boolean(e)}class p extends u{constructor(e,t,i,n){void 0!==n&&(n.type="boolean",n.default=i),super(e,t,i,n)}validate(e){return g(e,this.defaultValue)}}function m(e,t,i,n){if(void 0===e)return t;let o=parseInt(e,10);return isNaN(o)?t:(o=Math.max(i,o),o=Math.min(n,o),0|o)}class f extends u{constructor(e,t,i,n,o,s){void 0!==s&&(s.type="integer",s.default=i,s.minimum=n,s.maximum=o),super(e,t,i,s),this.minimum=n,this.maximum=o}static clampedInt(e,t,i,n){return m(e,t,i,n)}validate(e){return f.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}class _ extends u{constructor(e,t,i,n,o){void 0!==o&&(o.type="number",o.default=i),super(e,t,i,o),this.validationFn=n}static clamp(e,t,i){return ei?i:e}static float(e,t){if("number"==typeof e)return e;if(void 0===e)return t;const i=parseFloat(e);return isNaN(i)?t:i}validate(e){return this.validationFn(_.float(e,this.defaultValue))}}class v extends u{static string(e,t){return"string"!=typeof e?t:e}constructor(e,t,i,n){void 0!==n&&(n.type="string",n.default=i),super(e,t,i,n)}validate(e){return v.string(e,this.defaultValue)}}function b(e,t,i){return"string"!=typeof e||-1===i.indexOf(e)?t:e}class C extends u{constructor(e,t,i,n,o){void 0!==o&&(o.type="string",o.enum=n,o.default=i),super(e,t,i,o),this._allowedValues=n}validate(e){return b(e,this.defaultValue,this._allowedValues)}}class w extends d{constructor(e,t,i,n,o,s,r){void 0!==r&&(r.type="string",r.enum=o,r.default=n),super(e,t,i,r),this._allowedValues=o,this._convert=s}validate(e){return"string"!=typeof e||-1===this._allowedValues.indexOf(e)?this.defaultValue:this._convert(e)}}var S;!function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"}(S||(S={}));class y extends d{constructor(){super(44,"fontLigatures",y.OFF,{anyOf:[{type:"boolean",description:n.N("fontLigatures","Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:n.N("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:n.N("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return void 0===e?this.defaultValue:"string"==typeof e?"false"===e?y.OFF:"true"===e?y.ON:e:Boolean(e)?y.ON:y.OFF}}y.OFF='"liga" off, "calt" off',y.ON='"liga" on, "calt" on';class L extends d{constructor(){super(46,"fontWeight",E.fontWeight,{anyOf:[{type:"number",minimum:L.MINIMUM_VALUE,maximum:L.MAXIMUM_VALUE,errorMessage:n.N("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:L.SUGGESTION_VALUES}],default:E.fontWeight,description:n.N("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return"normal"===e||"bold"===e?e:String(f.clampedInt(e,E.fontWeight,L.MINIMUM_VALUE,L.MAXIMUM_VALUE))}}L.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"],L.MINIMUM_VALUE=1,L.MAXIMUM_VALUE=1e3;class N extends c{constructor(){super(129,[49,57,37,64,91,59,60,93,116,119,120,121,2])}compute(e,t,i){return N.computeLayout(t,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio})}static computeContainedMinimapLineCount(e){const t=e.height/e.lineHeight,i=e.scrollBeyondLastLine?t-1:0,n=(e.viewLineCount+i)/(e.pixelRatio*e.height);return{typicalViewportLineCount:t,extraLinesBeyondLastLine:i,desiredRatio:n,minimapLineCount:Math.floor(e.viewLineCount/n)}}static _computeMinimapLayout(e,t){const i=e.outerWidth,n=e.outerHeight,o=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(o*n),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:n};const s=t.stableMinimapLayoutInput,a=s&&e.outerHeight===s.outerHeight&&e.lineHeight===s.lineHeight&&e.typicalHalfwidthCharacterWidth===s.typicalHalfwidthCharacterWidth&&e.pixelRatio===s.pixelRatio&&e.scrollBeyondLastLine===s.scrollBeyondLastLine&&e.minimap.enabled===s.minimap.enabled&&e.minimap.side===s.minimap.side&&e.minimap.size===s.minimap.size&&e.minimap.showSlider===s.minimap.showSlider&&e.minimap.renderCharacters===s.minimap.renderCharacters&&e.minimap.maxColumn===s.minimap.maxColumn&&e.minimap.scale===s.minimap.scale&&e.verticalScrollbarWidth===s.verticalScrollbarWidth&&e.isViewportWrapping===s.isViewportWrapping,l=e.lineHeight,h=e.typicalHalfwidthCharacterWidth,d=e.scrollBeyondLastLine,c=e.minimap.renderCharacters;let u=o>=2?Math.round(2*e.minimap.scale):e.minimap.scale;const g=e.minimap.maxColumn,p=e.minimap.size,m=e.minimap.side,f=e.verticalScrollbarWidth,_=e.viewLineCount,v=e.remainingWidth,b=e.isViewportWrapping,C=c?2:3;let w=Math.floor(o*n);const S=w/o;let y=!1,L=!1,x=C*u,k=u/o,D=1;if("fill"===p||"fit"===p){const{typicalViewportLineCount:i,extraLinesBeyondLastLine:s,desiredRatio:r,minimapLineCount:h}=N.computeContainedMinimapLineCount({viewLineCount:_,scrollBeyondLastLine:d,height:n,lineHeight:l,pixelRatio:o});if(_/h>1)y=!0,L=!0,u=1,x=1,k=u/o;else{let n=!1,h=u+1;if("fit"===p){const e=Math.ceil((_+s)*x);b&&a&&v<=t.stableFitRemainingWidth?(n=!0,h=t.stableFitMaxMinimapScale):n=e>w}if("fill"===p||n){y=!0;const n=u;x=Math.min(l*o,Math.max(1,Math.floor(1/r))),b&&a&&v<=t.stableFitRemainingWidth&&(h=t.stableFitMaxMinimapScale),u=Math.min(h,Math.max(1,Math.floor(x/C))),u>n&&(D=Math.min(2,u/n)),k=u/o/D,w=Math.ceil(Math.max(i,_+s)*x),b?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=v,t.stableFitMaxMinimapScale=u):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}const E=Math.floor(g*k),I=Math.min(E,Math.max(0,Math.floor((v-f-2)*k/(h+k)))+r);let T=Math.floor(o*I);const M=T/o;T=Math.floor(T*D);return{renderMinimap:c?1:2,minimapLeft:"left"===m?0:i-I-f,minimapWidth:I,minimapHeightIsEditorHeight:y,minimapIsSampling:L,minimapScale:u,minimapLineHeight:x,minimapCanvasInnerWidth:T,minimapCanvasInnerHeight:w,minimapCanvasOuterWidth:M,minimapCanvasOuterHeight:S}}static computeLayout(e,t){const i=0|t.outerWidth,n=0|t.outerHeight,o=0|t.lineHeight,s=0|t.lineNumbersDigitCount,r=t.typicalHalfwidthCharacterWidth,a=t.maxDigitWidth,l=t.pixelRatio,d=t.viewLineCount,c=e.get(121),u="inherit"===c?e.get(120):c,g="inherit"===u?e.get(116):u,p=e.get(119),m=e.get(2),_=t.isDominatedByLongLines,v=e.get(49),b=0!==e.get(59).renderType,C=e.get(60),w=e.get(93),S=e.get(64),y=e.get(91),L=y.verticalScrollbarSize,x=y.verticalHasArrows,k=y.arrowSize,D=y.horizontalScrollbarSize,E=e.get(57),I=e.get(37);let T;if("string"==typeof E&&/^\d+(\.\d+)?ch$/.test(E)){const e=parseFloat(E.substr(0,E.length-2));T=f.clampedInt(e*r,0,0,1e3)}else T=f.clampedInt(E,0,0,1e3);I&&(T+=16);let M=0;if(b){const e=Math.max(s,C);M=Math.round(e*a)}let A=0;v&&(A=o);let R=0,O=R+A,P=O+M,F=P+T;const B=i-A-M-T;let V=!1,W=!1,H=-1;2!==m&&("inherit"===u&&_?(V=!0,W=!0):"on"===g||"bounded"===g?W=!0:"wordWrapColumn"===g&&(H=p));const z=N._computeMinimapLayout({outerWidth:i,outerHeight:n,lineHeight:o,typicalHalfwidthCharacterWidth:r,pixelRatio:l,scrollBeyondLastLine:w,minimap:S,verticalScrollbarWidth:L,viewLineCount:d,remainingWidth:B,isViewportWrapping:W},t.memory||new h);0!==z.renderMinimap&&0===z.minimapLeft&&(R+=z.minimapWidth,O+=z.minimapWidth,P+=z.minimapWidth,F+=z.minimapWidth);const K=B-z.minimapWidth,U=Math.max(1,Math.floor((K-L-2)/r)),$=x?k:0;return W&&(H=Math.max(1,U),"bounded"===g&&(H=Math.min(H,p))),{width:i,height:n,glyphMarginLeft:R,glyphMarginWidth:A,lineNumbersLeft:O,lineNumbersWidth:M,decorationsLeft:P,decorationsWidth:T,contentLeft:F,contentWidth:K,minimap:z,viewportColumn:U,isWordWrapMinified:V,isViewportWrapping:W,wrappingColumn:H,verticalScrollbarWidth:L,horizontalScrollbarHeight:D,overviewRuler:{top:$,width:L,height:n-2*$,right:0}}}}function x(e){const t=e.get(86);return"editable"===t?e.get(80):"on"!==t}function k(e,t){if("string"!=typeof e)return t;switch(e){case"hidden":return 2;case"visible":return 3;default:return 1}}function D(e,t,i){const n=i.indexOf(e);return-1===n?t:i[n]}const E={fontFamily:o.dz?"Menlo, Monaco, 'Courier New', monospace":o.IJ?"'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'":"Consolas, 'Courier New', monospace",fontWeight:"normal",fontSize:o.dz?12:14,lineHeight:0,letterSpacing:0},I={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!1}},T=[];function M(e){return T[e.id]=e,e}const A={acceptSuggestionOnCommitCharacter:M(new p(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:n.N("acceptSuggestionOnCommitCharacter","Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.")})),acceptSuggestionOnEnter:M(new C(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",n.N("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:n.N("acceptSuggestionOnEnter","Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),accessibilitySupport:M(new class extends d{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[n.N("accessibilitySupport.auto","The editor will use platform APIs to detect when a Screen Reader is attached."),n.N("accessibilitySupport.on","The editor will be permanently optimized for usage with a Screen Reader. Word wrapping will be disabled."),n.N("accessibilitySupport.off","The editor will never be optimized for usage with a Screen Reader.")],default:"auto",description:n.N("accessibilitySupport","Controls whether the editor should run in a mode where it is optimized for screen readers. Setting to on will disable word wrapping.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,i){return 0===i?e.accessibilitySupport:i}}),accessibilityPageSize:M(new f(3,"accessibilityPageSize",10,1,1073741824,{description:n.N("accessibilityPageSize","Controls the number of lines in the editor that can be read out by a screen reader at once. When we detect a screen reader we automatically set the default to be 500. Warning: this has a performance implication for numbers larger than the default.")})),ariaLabel:M(new v(4,"ariaLabel",n.N("editorViewAccessibleLabel","Editor content"))),autoClosingBrackets:M(new C(5,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",n.N("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),n.N("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:n.N("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingDelete:M(new C(6,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",n.N("editor.autoClosingDelete.auto","Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:n.N("autoClosingDelete","Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),autoClosingOvertype:M(new C(7,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",n.N("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:n.N("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:M(new C(8,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",n.N("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),n.N("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:n.N("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:M(new w(9,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],(function(e){switch(e){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}),{enumDescriptions:[n.N("editor.autoIndent.none","The editor will not insert indentation automatically."),n.N("editor.autoIndent.keep","The editor will keep the current line's indentation."),n.N("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),n.N("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),n.N("editor.autoIndent.full","The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.")],description:n.N("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:M(new p(10,"automaticLayout",!1)),autoSurround:M(new C(11,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[n.N("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),n.N("editor.autoSurround.quotes","Surround with quotes but not brackets."),n.N("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:n.N("autoSurround","Controls whether the editor should automatically surround selections when typing quotes or brackets.")})),bracketPairColorization:M(new class extends d{constructor(){const e={enabled:I.bracketPairColorizationOptions.enabled};super(12,"bracketPairColorization",e,{"editor.bracketPairColorization.enabled":{type:"boolean",default:e.enabled,description:n.N("bracketPairColorization.enabled","Controls whether bracket pair colorization is enabled or not. Use 'workbench.colorCustomizations' to override the bracket highlight colors.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;return{enabled:g(e.enabled,this.defaultValue.enabled)}}}),bracketPairGuides:M(new class extends d{constructor(){const e={bracketPairs:!1,bracketPairsHorizontal:"active",highlightActiveBracketPair:!0,indentation:!0,highlightActiveIndentation:!0};super(13,"guides",e,{"editor.guides.bracketPairs":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[n.N("editor.guides.bracketPairs.true","Enables bracket pair guides."),n.N("editor.guides.bracketPairs.active","Enables bracket pair guides only for the active bracket pair."),n.N("editor.guides.bracketPairs.false","Disables bracket pair guides.")],default:e.bracketPairs,description:n.N("editor.guides.bracketPairs","Controls whether bracket pair guides are enabled or not.")},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[n.N("editor.guides.bracketPairsHorizontal.true","Enables horizontal guides as addition to vertical bracket pair guides."),n.N("editor.guides.bracketPairsHorizontal.active","Enables horizontal guides only for the active bracket pair."),n.N("editor.guides.bracketPairsHorizontal.false","Disables horizontal bracket pair guides.")],default:e.bracketPairsHorizontal,description:n.N("editor.guides.bracketPairsHorizontal","Controls whether horizontal bracket pair guides are enabled or not.")},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:e.highlightActiveBracketPair,description:n.N("editor.guides.highlightActiveBracketPair","Controls whether bracket pair guides are enabled or not.")},"editor.guides.indentation":{type:"boolean",default:e.indentation,description:n.N("editor.guides.indentation","Controls whether the editor should render indent guides.")},"editor.guides.highlightActiveIndentation":{type:"boolean",default:e.highlightActiveIndentation,description:n.N("editor.guides.highlightActiveIndentation","Controls whether the editor should highlight the active indent guide.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{bracketPairs:D(t.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:D(t.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:g(t.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:g(t.indentation,this.defaultValue.indentation),highlightActiveIndentation:g(t.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation)}}}),stickyTabStops:M(new p(103,"stickyTabStops",!1,{description:n.N("stickyTabStops","Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),codeLens:M(new p(14,"codeLens",!0,{description:n.N("codeLens","Controls whether the editor shows CodeLens.")})),codeLensFontFamily:M(new v(15,"codeLensFontFamily","",{description:n.N("codeLensFontFamily","Controls the font family for CodeLens.")})),codeLensFontSize:M(new f(16,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:n.N("codeLensFontSize","Controls the font size in pixels for CodeLens. When set to `0`, the 90% of `#editor.fontSize#` is used.")})),colorDecorators:M(new p(17,"colorDecorators",!0,{description:n.N("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),columnSelection:M(new p(18,"columnSelection",!1,{description:n.N("columnSelection","Enable that the selection with the mouse and keys is doing column selection.")})),comments:M(new class extends d{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(19,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:n.N("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:n.N("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{insertSpace:g(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:g(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}),contextmenu:M(new p(20,"contextmenu",!0)),copyWithSyntaxHighlighting:M(new p(21,"copyWithSyntaxHighlighting",!0,{description:n.N("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:M(new w(22,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],(function(e){switch(e){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}),{description:n.N("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:M(new p(23,"cursorSmoothCaretAnimation",!1,{description:n.N("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:M(new w(24,"cursorStyle",S.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],(function(e){switch(e){case"line":return S.Line;case"block":return S.Block;case"underline":return S.Underline;case"line-thin":return S.LineThin;case"block-outline":return S.BlockOutline;case"underline-thin":return S.UnderlineThin}}),{description:n.N("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:M(new f(25,"cursorSurroundingLines",0,0,1073741824,{description:n.N("cursorSurroundingLines","Controls the minimal number of visible leading and trailing lines surrounding the cursor. Known as 'scrollOff' or 'scrollOffset' in some other editors.")})),cursorSurroundingLinesStyle:M(new C(26,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[n.N("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),n.N("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],description:n.N("cursorSurroundingLinesStyle","Controls when `cursorSurroundingLines` should be enforced.")})),cursorWidth:M(new f(27,"cursorWidth",0,0,1073741824,{markdownDescription:n.N("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:M(new p(28,"disableLayerHinting",!1)),disableMonospaceOptimizations:M(new p(29,"disableMonospaceOptimizations",!1)),domReadOnly:M(new p(30,"domReadOnly",!1)),dragAndDrop:M(new p(31,"dragAndDrop",!0,{description:n.N("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:M(new class extends p{constructor(){super(32,"emptySelectionClipboard",!0,{description:n.N("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,i){return i&&e.emptySelectionClipboard}}),extraEditorClassName:M(new v(33,"extraEditorClassName","")),fastScrollSensitivity:M(new _(34,"fastScrollSensitivity",5,(e=>e<=0?5:e),{markdownDescription:n.N("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:M(new class extends d{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(35,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:n.N("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[n.N("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),n.N("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),n.N("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:n.N("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[n.N("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),n.N("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),n.N("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:n.N("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:n.N("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:o.dz},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:n.N("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:n.N("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{cursorMoveOnType:g(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:"boolean"==typeof e.seedSearchStringFromSelection?e.seedSearchStringFromSelection?"always":"never":b(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:"boolean"==typeof e.autoFindInSelection?e.autoFindInSelection?"always":"never":b(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:g(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:g(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:g(t.loop,this.defaultValue.loop)}}}),fixedOverflowWidgets:M(new p(36,"fixedOverflowWidgets",!1)),folding:M(new p(37,"folding",!0,{description:n.N("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:M(new C(38,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[n.N("foldingStrategy.auto","Use a language-specific folding strategy if available, else the indentation-based one."),n.N("foldingStrategy.indentation","Use the indentation-based folding strategy.")],description:n.N("foldingStrategy","Controls the strategy for computing folding ranges.")})),foldingHighlight:M(new p(39,"foldingHighlight",!0,{description:n.N("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),foldingImportsByDefault:M(new p(40,"foldingImportsByDefault",!1,{description:n.N("foldingImportsByDefault","Controls whether the editor automatically collapses import ranges.")})),unfoldOnClickAfterEndOfLine:M(new p(41,"unfoldOnClickAfterEndOfLine",!1,{description:n.N("unfoldOnClickAfterEndOfLine","Controls whether clicking on the empty content after a folded line will unfold the line.")})),fontFamily:M(new v(42,"fontFamily",E.fontFamily,{description:n.N("fontFamily","Controls the font family.")})),fontInfo:M(new class extends c{constructor(){super(43)}compute(e,t,i){return e.fontInfo}}),fontLigatures2:M(new y),fontSize:M(new class extends u{constructor(){super(45,"fontSize",E.fontSize,{type:"number",minimum:6,maximum:100,default:E.fontSize,description:n.N("fontSize","Controls the font size in pixels.")})}validate(e){let t=_.float(e,this.defaultValue);return 0===t?E.fontSize:_.clamp(t,6,100)}compute(e,t,i){return e.fontInfo.fontSize}}),fontWeight:M(new L),formatOnPaste:M(new p(47,"formatOnPaste",!1,{description:n.N("formatOnPaste","Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")})),formatOnType:M(new p(48,"formatOnType",!1,{description:n.N("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:M(new p(49,"glyphMargin",!0,{description:n.N("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:M(new class extends d{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[n.N("editor.gotoLocation.multiple.peek","Show peek view of the results (default)"),n.N("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a peek view"),n.N("editor.gotoLocation.multiple.goto","Go to the primary result and enable peek-less navigation to others")]},i=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(50,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:n.N("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":Object.assign({description:n.N("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleTypeDefinitions":Object.assign({description:n.N("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleDeclarations":Object.assign({description:n.N("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleImplementations":Object.assign({description:n.N("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleReferences":Object.assign({description:n.N("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist.")},t),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:i,description:n.N("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:i,description:n.N("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:i,description:n.N("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:i,description:n.N("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:i,description:n.N("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){var t,i,n,o,s;if(!e||"object"!=typeof e)return this.defaultValue;const r=e;return{multiple:b(r.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:null!==(t=r.multipleDefinitions)&&void 0!==t?t:b(r.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:null!==(i=r.multipleTypeDefinitions)&&void 0!==i?i:b(r.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:null!==(n=r.multipleDeclarations)&&void 0!==n?n:b(r.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:null!==(o=r.multipleImplementations)&&void 0!==o?o:b(r.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:null!==(s=r.multipleReferences)&&void 0!==s?s:b(r.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:v.string(r.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:v.string(r.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:v.string(r.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:v.string(r.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:v.string(r.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}),hideCursorInOverviewRuler:M(new p(51,"hideCursorInOverviewRuler",!1,{description:n.N("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),hover:M(new class extends d{constructor(){const e={enabled:!0,delay:300,sticky:!0,above:!0};super(52,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:n.N("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,description:n.N("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:n.N("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.above":{type:"boolean",default:e.above,description:n.N("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{enabled:g(t.enabled,this.defaultValue.enabled),delay:f.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:g(t.sticky,this.defaultValue.sticky),above:g(t.above,this.defaultValue.above)}}}),inDiffEditor:M(new p(53,"inDiffEditor",!1)),letterSpacing:M(new _(55,"letterSpacing",E.letterSpacing,(e=>_.clamp(e,-5,20)),{description:n.N("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:M(new class extends d{constructor(){const e={enabled:!0};super(56,"lightbulb",e,{"editor.lightbulb.enabled":{type:"boolean",default:e.enabled,description:n.N("codeActions","Enables the code action lightbulb in the editor.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;return{enabled:g(e.enabled,this.defaultValue.enabled)}}}),lineDecorationsWidth:M(new u(57,"lineDecorationsWidth",10)),lineHeight:M(new class extends _{constructor(){super(58,"lineHeight",E.lineHeight,(e=>_.clamp(e,0,150)),{markdownDescription:n.N("lineHeight","Controls the line height. \n - Use 0 to automatically compute the line height from the font size.\n - Values between 0 and 8 will be used as a multiplier with the font size.\n - Values greater than or equal to 8 will be used as effective values.")})}compute(e,t,i){return e.fontInfo.lineHeight}}),lineNumbers:M(new class extends d{constructor(){super(59,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[n.N("lineNumbers.off","Line numbers are not rendered."),n.N("lineNumbers.on","Line numbers are rendered as absolute number."),n.N("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),n.N("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:n.N("lineNumbers","Controls the display of line numbers.")})}validate(e){let t=this.defaultValue.renderType,i=this.defaultValue.renderFn;return void 0!==e&&("function"==typeof e?(t=4,i=e):t="interval"===e?3:"relative"===e?2:"on"===e?1:0),{renderType:t,renderFn:i}}}),lineNumbersMinChars:M(new f(60,"lineNumbersMinChars",5,1,300)),linkedEditing:M(new p(61,"linkedEditing",!1,{description:n.N("linkedEditing","Controls whether the editor has linked editing enabled. Depending on the language, related symbols, e.g. HTML tags, are updated while editing.")})),links:M(new p(62,"links",!0,{description:n.N("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:M(new C(63,"matchBrackets","always",["always","near","never"],{description:n.N("matchBrackets","Highlight matching brackets.")})),minimap:M(new class extends d{constructor(){const e={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",renderCharacters:!0,maxColumn:120,scale:1};super(64,"minimap",e,{"editor.minimap.enabled":{type:"boolean",default:e.enabled,description:n.N("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[n.N("minimap.size.proportional","The minimap has the same size as the editor contents (and might scroll)."),n.N("minimap.size.fill","The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),n.N("minimap.size.fit","The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:e.size,description:n.N("minimap.size","Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:n.N("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:n.N("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:e.scale,minimum:1,maximum:3,enum:[1,2,3],description:n.N("minimap.scale","Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:n.N("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:n.N("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{enabled:g(t.enabled,this.defaultValue.enabled),size:b(t.size,this.defaultValue.size,["proportional","fill","fit"]),side:b(t.side,this.defaultValue.side,["right","left"]),showSlider:b(t.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:g(t.renderCharacters,this.defaultValue.renderCharacters),scale:f.clampedInt(t.scale,1,1,3),maxColumn:f.clampedInt(t.maxColumn,this.defaultValue.maxColumn,1,1e4)}}}),mouseStyle:M(new C(65,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:M(new _(66,"mouseWheelScrollSensitivity",1,(e=>0===e?1:e),{markdownDescription:n.N("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:M(new p(67,"mouseWheelZoom",!1,{markdownDescription:n.N("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:M(new p(68,"multiCursorMergeOverlapping",!0,{description:n.N("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:M(new w(69,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],(function(e){return"ctrlCmd"===e?o.dz?"metaKey":"ctrlKey":"altKey"}),{markdownEnumDescriptions:[n.N("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),n.N("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:n.N({key:"multiCursorModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add multiple cursors with the mouse. The Go to Definition and Open Link mouse gestures will adapt such that they do not conflict with the multicursor modifier. [Read more](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})),multiCursorPaste:M(new C(70,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[n.N("multiCursorPaste.spread","Each cursor pastes a single line of the text."),n.N("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:n.N("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),occurrencesHighlight:M(new p(71,"occurrencesHighlight",!0,{description:n.N("occurrencesHighlight","Controls whether the editor should highlight semantic symbol occurrences.")})),overviewRulerBorder:M(new p(72,"overviewRulerBorder",!0,{description:n.N("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:M(new f(73,"overviewRulerLanes",3,0,3)),padding:M(new class extends d{constructor(){super(74,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:n.N("padding.top","Controls the amount of space between the top edge of the editor and the first line.")},"editor.padding.bottom":{type:"number",default:0,minimum:0,maximum:1e3,description:n.N("padding.bottom","Controls the amount of space between the bottom edge of the editor and the last line.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{top:f.clampedInt(t.top,0,0,1e3),bottom:f.clampedInt(t.bottom,0,0,1e3)}}}),parameterHints:M(new class extends d{constructor(){const e={enabled:!0,cycle:!1};super(75,"parameterHints",e,{"editor.parameterHints.enabled":{type:"boolean",default:e.enabled,description:n.N("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:e.cycle,description:n.N("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{enabled:g(t.enabled,this.defaultValue.enabled),cycle:g(t.cycle,this.defaultValue.cycle)}}}),peekWidgetDefaultFocus:M(new C(76,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[n.N("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),n.N("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:n.N("peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),definitionLinkOpensInPeek:M(new p(77,"definitionLinkOpensInPeek",!1,{description:n.N("definitionLinkOpensInPeek","Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),quickSuggestions:M(new class extends d{constructor(){const e={other:!0,comments:!1,strings:!1};super(78,"quickSuggestions",e,{anyOf:[{type:"boolean"},{type:"object",properties:{strings:{type:"boolean",default:e.strings,description:n.N("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{type:"boolean",default:e.comments,description:n.N("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{type:"boolean",default:e.other,description:n.N("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}}}],default:e,description:n.N("quickSuggestions","Controls whether suggestions should automatically show up while typing.")}),this.defaultValue=e}validate(e){if("boolean"==typeof e)return e;if(e&&"object"==typeof e){const t=e,i={other:g(t.other,this.defaultValue.other),comments:g(t.comments,this.defaultValue.comments),strings:g(t.strings,this.defaultValue.strings)};return!!(i.other&&i.comments&&i.strings)||!!(i.other||i.comments||i.strings)&&i}return this.defaultValue}}),quickSuggestionsDelay:M(new f(79,"quickSuggestionsDelay",10,0,1073741824,{description:n.N("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:M(new p(80,"readOnly",!1)),renameOnType:M(new p(81,"renameOnType",!1,{description:n.N("renameOnType","Controls whether the editor auto renames on type."),markdownDeprecationMessage:n.N("renameOnTypeDeprecate","Deprecated, use `editor.linkedEditing` instead.")})),renderControlCharacters:M(new p(82,"renderControlCharacters",!0,{description:n.N("renderControlCharacters","Controls whether the editor should render control characters."),restricted:!0})),renderFinalNewline:M(new p(83,"renderFinalNewline",!0,{description:n.N("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:M(new C(84,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",n.N("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:n.N("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderLineHighlightOnlyWhenFocus:M(new p(85,"renderLineHighlightOnlyWhenFocus",!1,{description:n.N("renderLineHighlightOnlyWhenFocus","Controls if the editor should render the current line highlight only when the editor is focused.")})),renderValidationDecorations:M(new C(86,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:M(new C(87,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",n.N("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),n.N("renderWhitespace.selection","Render whitespace characters only on selected text."),n.N("renderWhitespace.trailing","Render only trailing whitespace characters."),""],description:n.N("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:M(new f(88,"revealHorizontalRightPadding",30,0,1e3)),roundedSelection:M(new p(89,"roundedSelection",!0,{description:n.N("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:M(new class extends d{constructor(){const e=[],t={type:"number",description:n.N("rulers.size","Number of monospace characters at which this editor ruler will render.")};super(90,"rulers",e,{type:"array",items:{anyOf:[t,{type:["object"],properties:{column:t,color:{type:"string",description:n.N("rulers.color","Color of this editor ruler."),format:"color-hex"}}}]},default:e,description:n.N("rulers","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})}validate(e){if(Array.isArray(e)){let t=[];for(let i of e)if("number"==typeof i)t.push({column:f.clampedInt(i,0,0,1e4),color:null});else if(i&&"object"==typeof i){const e=i;t.push({column:f.clampedInt(e.column,0,0,1e4),color:e.color})}return t.sort(((e,t)=>e.column-t.column)),t}return this.defaultValue}}),scrollbar:M(new class extends d{constructor(){const e={vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:12,horizontalSliderSize:12,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0,scrollByPage:!1};super(91,"scrollbar",e,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[n.N("scrollbar.vertical.auto","The vertical scrollbar will be visible only when necessary."),n.N("scrollbar.vertical.visible","The vertical scrollbar will always be visible."),n.N("scrollbar.vertical.fit","The vertical scrollbar will always be hidden.")],default:"auto",description:n.N("scrollbar.vertical","Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[n.N("scrollbar.horizontal.auto","The horizontal scrollbar will be visible only when necessary."),n.N("scrollbar.horizontal.visible","The horizontal scrollbar will always be visible."),n.N("scrollbar.horizontal.fit","The horizontal scrollbar will always be hidden.")],default:"auto",description:n.N("scrollbar.horizontal","Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:e.verticalScrollbarSize,description:n.N("scrollbar.verticalScrollbarSize","The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:e.horizontalScrollbarSize,description:n.N("scrollbar.horizontalScrollbarSize","The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:e.scrollByPage,description:n.N("scrollbar.scrollByPage","Controls whether clicks scroll by page or jump to click position.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e,i=f.clampedInt(t.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),n=f.clampedInt(t.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:f.clampedInt(t.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:k(t.vertical,this.defaultValue.vertical),horizontal:k(t.horizontal,this.defaultValue.horizontal),useShadows:g(t.useShadows,this.defaultValue.useShadows),verticalHasArrows:g(t.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:g(t.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:g(t.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:g(t.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:i,horizontalSliderSize:f.clampedInt(t.horizontalSliderSize,i,0,1e3),verticalScrollbarSize:n,verticalSliderSize:f.clampedInt(t.verticalSliderSize,n,0,1e3),scrollByPage:g(t.scrollByPage,this.defaultValue.scrollByPage)}}}),scrollBeyondLastColumn:M(new f(92,"scrollBeyondLastColumn",5,0,1073741824,{description:n.N("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:M(new p(93,"scrollBeyondLastLine",!0,{description:n.N("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),scrollPredominantAxis:M(new p(94,"scrollPredominantAxis",!0,{description:n.N("scrollPredominantAxis","Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.")})),selectionClipboard:M(new p(95,"selectionClipboard",!0,{description:n.N("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:o.IJ})),selectionHighlight:M(new p(96,"selectionHighlight",!0,{description:n.N("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:M(new p(97,"selectOnLineNumbers",!0)),showFoldingControls:M(new C(98,"showFoldingControls","mouseover",["always","mouseover"],{enumDescriptions:[n.N("showFoldingControls.always","Always show the folding controls."),n.N("showFoldingControls.mouseover","Only show the folding controls when the mouse is over the gutter.")],description:n.N("showFoldingControls","Controls when the folding controls on the gutter are shown.")})),showUnused:M(new p(99,"showUnused",!0,{description:n.N("showUnused","Controls fading out of unused code.")})),showDeprecated:M(new p(124,"showDeprecated",!0,{description:n.N("showDeprecated","Controls strikethrough deprecated variables.")})),inlayHints:M(new class extends d{constructor(){const e={enabled:!0,fontSize:0,fontFamily:""};super(125,"inlayHints",e,{"editor.inlayHints.enabled":{type:"boolean",default:e.enabled,description:n.N("inlayHints.enable","Enables the inlay hints in the editor.")},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:n.N("inlayHints.fontSize","Controls font size of inlay hints in the editor. A default of 90% of `#editor.fontSize#` is used when the configured value is less than `5` or greater than the editor font size.")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:n.N("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the `#editor.fontFamily#` is used.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{enabled:g(t.enabled,this.defaultValue.enabled),fontSize:f.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:v.string(t.fontFamily,this.defaultValue.fontFamily)}}}),snippetSuggestions:M(new C(100,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[n.N("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),n.N("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),n.N("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),n.N("snippetSuggestions.none","Do not show snippet suggestions.")],description:n.N("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smartSelect:M(new class extends d{constructor(){super(101,"smartSelect",{selectLeadingAndTrailingWhitespace:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:n.N("selectLeadingAndTrailingWhitespace","Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"}})}validate(e){return e&&"object"==typeof e?{selectLeadingAndTrailingWhitespace:g(e.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace)}:this.defaultValue}}),smoothScrolling:M(new p(102,"smoothScrolling",!1,{description:n.N("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:M(new f(104,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:M(new class extends d{constructor(){const e={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!0,localityBonus:!1,shareSuggestSelections:!1,showIcons:!0,showStatusBar:!1,preview:!1,previewMode:"subwordSmart",showInlineDetails:!0,showMethods:!0,showFunctions:!0,showConstructors:!0,showDeprecated:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,showUsers:!0,showIssues:!0};super(105,"suggest",e,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[n.N("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),n.N("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:e.insertMode,description:n.N("suggest.insertMode","Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")},"editor.suggest.filterGraceful":{type:"boolean",default:e.filterGraceful,description:n.N("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:e.localityBonus,description:n.N("suggest.localityBonus","Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.shareSuggestSelections,markdownDescription:n.N("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:e.snippetsPreventQuickSuggestions,description:n.N("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:e.showIcons,description:n.N("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:e.showStatusBar,description:n.N("suggest.showStatusBar","Controls the visibility of the status bar at the bottom of the suggest widget.")},"editor.suggest.preview":{type:"boolean",default:e.preview,description:n.N("suggest.preview","Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.showInlineDetails":{type:"boolean",default:e.showInlineDetails,description:n.N("suggest.showInlineDetails","Controls whether suggest details show inline with the label or only in the details widget")},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:n.N("suggest.maxVisibleSuggestions.dep","This setting is deprecated. The suggest widget can now be resized.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:n.N("deprecated","This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:n.N("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:n.N("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:n.N("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:n.N("editor.suggest.showDeprecated","When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:n.N("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:n.N("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:n.N("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:n.N("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:n.N("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:n.N("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:n.N("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:n.N("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:n.N("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:n.N("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:n.N("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:n.N("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:n.N("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:n.N("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:n.N("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:n.N("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:n.N("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:n.N("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:n.N("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:n.N("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:n.N("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:n.N("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:n.N("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:n.N("editor.suggest.showUsers","When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:n.N("editor.suggest.showIssues","When enabled IntelliSense shows `issues`-suggestions.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{insertMode:b(t.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:g(t.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:g(t.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:g(t.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:g(t.shareSuggestSelections,this.defaultValue.shareSuggestSelections),showIcons:g(t.showIcons,this.defaultValue.showIcons),showStatusBar:g(t.showStatusBar,this.defaultValue.showStatusBar),preview:g(t.preview,this.defaultValue.preview),previewMode:b(t.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:g(t.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:g(t.showMethods,this.defaultValue.showMethods),showFunctions:g(t.showFunctions,this.defaultValue.showFunctions),showConstructors:g(t.showConstructors,this.defaultValue.showConstructors),showDeprecated:g(t.showDeprecated,this.defaultValue.showDeprecated),showFields:g(t.showFields,this.defaultValue.showFields),showVariables:g(t.showVariables,this.defaultValue.showVariables),showClasses:g(t.showClasses,this.defaultValue.showClasses),showStructs:g(t.showStructs,this.defaultValue.showStructs),showInterfaces:g(t.showInterfaces,this.defaultValue.showInterfaces),showModules:g(t.showModules,this.defaultValue.showModules),showProperties:g(t.showProperties,this.defaultValue.showProperties),showEvents:g(t.showEvents,this.defaultValue.showEvents),showOperators:g(t.showOperators,this.defaultValue.showOperators),showUnits:g(t.showUnits,this.defaultValue.showUnits),showValues:g(t.showValues,this.defaultValue.showValues),showConstants:g(t.showConstants,this.defaultValue.showConstants),showEnums:g(t.showEnums,this.defaultValue.showEnums),showEnumMembers:g(t.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:g(t.showKeywords,this.defaultValue.showKeywords),showWords:g(t.showWords,this.defaultValue.showWords),showColors:g(t.showColors,this.defaultValue.showColors),showFiles:g(t.showFiles,this.defaultValue.showFiles),showReferences:g(t.showReferences,this.defaultValue.showReferences),showFolders:g(t.showFolders,this.defaultValue.showFolders),showTypeParameters:g(t.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:g(t.showSnippets,this.defaultValue.showSnippets),showUsers:g(t.showUsers,this.defaultValue.showUsers),showIssues:g(t.showIssues,this.defaultValue.showIssues)}}}),inlineSuggest:M(new class extends d{constructor(){const e={enabled:!0,mode:"subwordSmart"};super(54,"inlineSuggest",e,{"editor.inlineSuggest.enabled":{type:"boolean",default:e.enabled,description:n.N("inlineSuggest.enabled","Controls whether to automatically show inline suggestions in the editor.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{enabled:g(t.enabled,this.defaultValue.enabled),mode:b(t.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"])}}}),suggestFontSize:M(new f(106,"suggestFontSize",0,0,1e3,{markdownDescription:n.N("suggestFontSize","Font size for the suggest widget. When set to `0`, the value of `#editor.fontSize#` is used.")})),suggestLineHeight:M(new f(107,"suggestLineHeight",0,0,1e3,{markdownDescription:n.N("suggestLineHeight","Line height for the suggest widget. When set to `0`, the value of `#editor.lineHeight#` is used. The minimum value is 8.")})),suggestOnTriggerCharacters:M(new p(108,"suggestOnTriggerCharacters",!0,{description:n.N("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:M(new C(109,"suggestSelection","recentlyUsed",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[n.N("suggestSelection.first","Always select the first suggestion."),n.N("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),n.N("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:n.N("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:M(new C(110,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[n.N("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),n.N("tabCompletion.off","Disable tab completions."),n.N("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:n.N("tabCompletion","Enables tab completions.")})),tabIndex:M(new f(111,"tabIndex",0,-1,1073741824)),unusualLineTerminators:M(new C(112,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[n.N("unusualLineTerminators.auto","Unusual line terminators are automatically removed."),n.N("unusualLineTerminators.off","Unusual line terminators are ignored."),n.N("unusualLineTerminators.prompt","Unusual line terminators prompt to be removed.")],description:n.N("unusualLineTerminators","Remove unusual line terminators that might cause problems.")})),useShadowDOM:M(new p(113,"useShadowDOM",!0)),useTabStops:M(new p(114,"useTabStops",!0,{description:n.N("useTabStops","Inserting and deleting whitespace follows tab stops.")})),wordSeparators:M(new v(115,"wordSeparators",s.vu,{description:n.N("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:M(new C(116,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[n.N("wordWrap.off","Lines will never wrap."),n.N("wordWrap.on","Lines will wrap at the viewport width."),n.N({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),n.N({key:"wordWrap.bounded",comment:["- viewport means the edge of the visible window size.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:n.N({key:"wordWrap",comment:["- 'off', 'on', 'wordWrapColumn' and 'bounded' refer to values the setting can take and should not be localized.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Controls how lines should wrap.")})),wordWrapBreakAfterCharacters:M(new v(117,"wordWrapBreakAfterCharacters"," \t})]?|/&.,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」")),wordWrapBreakBeforeCharacters:M(new v(118,"wordWrapBreakBeforeCharacters","([{‘“〈《「『【〔([{「£¥$£¥++")),wordWrapColumn:M(new f(119,"wordWrapColumn",80,1,1073741824,{markdownDescription:n.N({key:"wordWrapColumn",comment:["- `editor.wordWrap` refers to a different setting and should not be localized.","- 'wordWrapColumn' and 'bounded' refer to values the different setting can take and should not be localized."]},"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),wordWrapOverride1:M(new C(120,"wordWrapOverride1","inherit",["off","on","inherit"])),wordWrapOverride2:M(new C(121,"wordWrapOverride2","inherit",["off","on","inherit"])),wrappingIndent:M(new w(122,"wrappingIndent",1,"same",["none","same","indent","deepIndent"],(function(e){switch(e){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}}),{enumDescriptions:[n.N("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),n.N("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),n.N("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),n.N("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:n.N("wrappingIndent","Controls the indentation of wrapped lines.")})),wrappingStrategy:M(new C(123,"wrappingStrategy","simple",["simple","advanced"],{enumDescriptions:[n.N("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),n.N("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],description:n.N("wrappingStrategy","Controls the algorithm that computes wrapping points.")})),editorClassName:M(new class extends c{constructor(){super(126,[65,33])}compute(e,t,i){const n=["monaco-editor"];return t.get(33)&&n.push(t.get(33)),e.extraEditorClassName&&n.push(e.extraEditorClassName),"default"===t.get(65)?n.push("mouse-default"):"copy"===t.get(65)&&n.push("mouse-copy"),t.get(99)&&n.push("showUnused"),t.get(124)&&n.push("showDeprecated"),n.join(" ")}}),pixelRatio:M(new class extends c{constructor(){super(127)}compute(e,t,i){return e.pixelRatio}}),tabFocusMode:M(new class extends c{constructor(){super(128,[80])}compute(e,t,i){return!!t.get(80)||e.tabFocusMode}}),layoutInfo:M(new N),wrappingInfo:M(new class extends c{constructor(){super(130,[129])}compute(e,t,i){const n=t.get(129);return{isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:n.isWordWrapMinified,isViewportWrapping:n.isViewportWrapping,wrappingColumn:n.wrappingColumn}}})}},80724:function(e,t,i){"use strict";i.d(t,{C:function(){return o}});var n=i(4348);const o=new class{constructor(){this._zoomLevel=0,this._onDidChangeZoomLevel=new n.Q5,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event}getZoomLevel(){return this._zoomLevel}setZoomLevel(e){e=Math.min(Math.max(-5,e),20),this._zoomLevel!==e&&(this._zoomLevel=e,this._onDidChangeZoomLevel.fire(this._zoomLevel))}}},62635:function(e,t,i){"use strict";i.d(t,{E4:function(){return r},pR:function(){return a}});var n=i(23345),o=i(80724);const s=n.dz?1.5:1.35;class r{constructor(e){this._bareFontInfoBrand=void 0,this.zoomLevel=e.zoomLevel,this.pixelRatio=e.pixelRatio,this.fontFamily=String(e.fontFamily),this.fontWeight=String(e.fontWeight),this.fontSize=e.fontSize,this.fontFeatureSettings=e.fontFeatureSettings,this.lineHeight=0|e.lineHeight,this.letterSpacing=e.letterSpacing}static createFromValidatedSettings(e,t,i,n){const o=e.get(42),s=e.get(46),a=e.get(45),l=e.get(44),h=e.get(58),d=e.get(55);return r._create(o,s,a,l,h,d,t,i,n)}static _create(e,t,i,n,a,l,h,d,c){0===a?a=s*i:a<8&&(a*=i),(a=Math.round(a))<8&&(a=8);const u=1+(c?0:.1*o.C.getZoomLevel());return new r({zoomLevel:h,pixelRatio:d,fontFamily:e,fontWeight:t,fontSize:i*=u,fontFeatureSettings:n,lineHeight:a*=u,letterSpacing:l})}getId(){return this.zoomLevel+"-"+this.pixelRatio+"-"+this.fontFamily+"-"+this.fontWeight+"-"+this.fontSize+"-"+this.fontFeatureSettings+"-"+this.lineHeight+"-"+this.letterSpacing}getMassagedFontFamily(e){const t=r._wrapInQuotes(this.fontFamily);return e&&this.fontFamily!==e?`${t}, ${e}`:t}static _wrapInQuotes(e){return/[,"']/.test(e)?e:/[+ ]/.test(e)?`"${e}"`:e}}class a extends r{constructor(e,t){super(e),this._editorStylingBrand=void 0,this.version=1,this.isTrusted=t,this.isMonospace=e.isMonospace,this.typicalHalfwidthCharacterWidth=e.typicalHalfwidthCharacterWidth,this.typicalFullwidthCharacterWidth=e.typicalFullwidthCharacterWidth,this.canUseHalfwidthRightwardsArrow=e.canUseHalfwidthRightwardsArrow,this.spaceWidth=e.spaceWidth,this.middotWidth=e.middotWidth,this.wsmiddotWidth=e.wsmiddotWidth,this.maxDigitWidth=e.maxDigitWidth}equals(e){return this.fontFamily===e.fontFamily&&this.fontWeight===e.fontWeight&&this.fontSize===e.fontSize&&this.fontFeatureSettings===e.fontFeatureSettings&&this.lineHeight===e.lineHeight&&this.letterSpacing===e.letterSpacing&&this.typicalHalfwidthCharacterWidth===e.typicalHalfwidthCharacterWidth&&this.typicalFullwidthCharacterWidth===e.typicalFullwidthCharacterWidth&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.spaceWidth===e.spaceWidth&&this.middotWidth===e.middotWidth&&this.wsmiddotWidth===e.wsmiddotWidth&&this.maxDigitWidth===e.maxDigitWidth}}},59671:function(e,t,i){"use strict";i.d(t,{l:function(){return o}});var n=i(69025);class o{static whitespaceVisibleColumn(e,t,i){const o=e.length;let s=0,r=-1,a=-1;for(let l=0;l=65536?2:1,9===t)a=o.nextRenderTabStop(a,i);else{let i=n.S6(t);for(;l=65536?2:1,i=o}n.K7(t)||n.C8(t)?a+=2:a+=1}}return a}static visibleColumnsByColumns(e,t){const i=e.length;let s=new Array;s.push(-1);let r=0,a=0;for(;a=65536?2:1,s.push(r),l>=65536&&s.push(r),9===l)r=o.nextRenderTabStop(r,t);else{let t=n.S6(l);for(;a=65536?2:1,s.push(r),l>=65536&&s.push(r),t=h}n.K7(l)||n.C8(l)?r+=2:r+=1}}return s.push(r),s}static visibleColumnFromColumn2(e,t,i){return this.visibleColumnFromColumn(t.getLineContent(i.lineNumber),i.column,e.tabSize)}static columnFromVisibleColumn(e,t,i){if(t<=0)return 1;const s=e.length;let r=0,a=1,l=0;for(;l=65536?2:1,9===h)d=o.nextRenderTabStop(r,i);else{let t=n.S6(h);for(;l=65536?2:1,t=o}d=n.K7(h)||n.C8(h)?r+2:r+1}const c=l+1;if(d>=t){return d-tr?r:o}static nextRenderTabStop(e,t){return e+t-e%t}static nextIndentTabStop(e,t){return e+t-e%t}static prevRenderTabStop(e,t){return Math.max(0,e-1-(e-1)%t)}static prevIndentTabStop(e,t){return Math.max(0,e-1-(e-1)%t)}}},69025:function(e,t,i){"use strict";i.d(t,{LM:function(){return g},LN:function(){return C},Tp:function(){return b},Vi:function(){return v},io:function(){return h.i},rS:function(){return p},zp:function(){return m}});var n=i(79881),o=i(72146),s=i(17373),r=i(17551),a=i(31276),l=i(73468),h=i(46446);const d=()=>!0,c=()=>!1,u=e=>" "===e||"\t"===e;class g{constructor(e,t,i){this._cursorMoveConfigurationBrand=void 0,this._languageId=e;const n=i.options,o=n.get(129);this.readOnly=n.get(80),this.tabSize=t.tabSize,this.indentSize=t.indentSize,this.insertSpaces=t.insertSpaces,this.stickyTabStops=n.get(103),this.lineHeight=n.get(58),this.pageSize=Math.max(1,Math.floor(o.height/this.lineHeight)-2),this.useTabStops=n.get(114),this.wordSeparators=n.get(115),this.emptySelectionClipboard=n.get(32),this.copyWithSyntaxHighlighting=n.get(21),this.multiCursorMergeOverlapping=n.get(68),this.multiCursorPaste=n.get(70),this.autoClosingBrackets=n.get(5),this.autoClosingQuotes=n.get(8),this.autoClosingDelete=n.get(6),this.autoClosingOvertype=n.get(7),this.autoSurround=n.get(11),this.autoIndent=n.get(9),this.surroundingPairs={},this._electricChars=null,this.shouldAutoCloseBefore={quote:g._getShouldAutoClose(e,this.autoClosingQuotes),bracket:g._getShouldAutoClose(e,this.autoClosingBrackets)},this.autoClosingPairs=l.zu.getAutoClosingPairs(e);let s=g._getSurroundingPairs(e);if(s)for(const e of s)this.surroundingPairs[e.open]=e.close}static shouldRecreate(e){return e.hasChanged(129)||e.hasChanged(115)||e.hasChanged(32)||e.hasChanged(68)||e.hasChanged(70)||e.hasChanged(5)||e.hasChanged(8)||e.hasChanged(6)||e.hasChanged(7)||e.hasChanged(11)||e.hasChanged(114)||e.hasChanged(58)||e.hasChanged(80)}get electricChars(){if(!this._electricChars){this._electricChars={};let e=g._getElectricCharacters(this._languageId);if(e)for(const t of e)this._electricChars[t]=!0}return this._electricChars}normalizeIndentation(e){return a.yO.normalizeIndentation(e,this.indentSize,this.insertSpaces)}static _getElectricCharacters(e){try{return l.zu.getElectricCharacters(e)}catch(e){return(0,n.dL)(e),null}}static _getShouldAutoClose(e,t){switch(t){case"beforeWhitespace":return u;case"languageDefined":return g._getLanguageDefinedShouldAutoClose(e);case"always":return d;case"never":return c}}static _getLanguageDefinedShouldAutoClose(e){try{const t=l.zu.getAutoCloseBeforeSet(e);return e=>-1!==t.indexOf(e)}catch(e){return(0,n.dL)(e),c}}static _getSurroundingPairs(e){try{return l.zu.getSurroundingPairs(e)}catch(e){return(0,n.dL)(e),null}}}class p{constructor(e,t,i,n){this._singleCursorStateBrand=void 0,this.selectionStart=e,this.selectionStartLeftoverVisibleColumns=t,this.position=i,this.leftoverVisibleColumns=n,this.selection=p._computeSelection(this.selectionStart,this.position)}equals(e){return this.selectionStartLeftoverVisibleColumns===e.selectionStartLeftoverVisibleColumns&&this.leftoverVisibleColumns===e.leftoverVisibleColumns&&this.position.equals(e.position)&&this.selectionStart.equalsRange(e.selectionStart)}hasSelection(){return!this.selection.isEmpty()||!this.selectionStart.isEmpty()}move(e,t,i,n){return e?new p(this.selectionStart,this.selectionStartLeftoverVisibleColumns,new o.L(t,i),n):new p(new s.e(t,i,t,i),n,new o.L(t,i),n)}static _computeSelection(e,t){let i,n,o,s;return e.isEmpty()?(i=e.startLineNumber,n=e.startColumn,o=t.lineNumber,s=t.column):t.isBeforeOrEqual(e.getStartPosition())?(i=e.endLineNumber,n=e.endColumn,o=t.lineNumber,s=t.column):(i=e.startLineNumber,n=e.startColumn,o=t.lineNumber,s=t.column),new r.Y(i,n,o,s)}}class m{constructor(e,t,i,n){this._cursorContextBrand=void 0,this.model=e,this.viewModel=t,this.coordinatesConverter=i,this.cursorConfig=n}}class f{constructor(e){this.modelState=e,this.viewState=null}}class _{constructor(e){this.modelState=null,this.viewState=e}}class v{constructor(e,t){this._cursorStateBrand=void 0,this.modelState=e,this.viewState=t}static fromModelState(e){return new f(e)}static fromViewState(e){return new _(e)}static fromModelSelection(e){const t=e.selectionStartLineNumber,i=e.selectionStartColumn,n=e.positionLineNumber,r=e.positionColumn,a=new p(new s.e(t,i,t,i),0,new o.L(n,r),0);return v.fromModelState(a)}static fromModelSelections(e){let t=[];for(let i=0,n=e.length;i=c.length+1)return!1;const u=c.charAt(d.column-2),g=n.get(u);if(!g)return!1;if((0,s.LN)(u)){if("never"===i)return!1}else if("never"===t)return!1;const p=c.charAt(d.column-1);let m=!1;for(const e of g)e.open===u&&e.close===p&&(m=!0);if(!m)return!1;if("auto"===e){let e=!1;for(let t=0,i=a.length;t1){const e=t.getLineContent(o.lineNumber),r=n.LC(e),l=-1===r?e.length+1:r+1;if(o.column<=l){const e=s.io.visibleColumnFromColumn2(i,t,o),n=s.io.prevIndentTabStop(e,i.indentSize),r=s.io.columnFromVisibleColumn2(i,t,o.lineNumber,n);return new a.e(o.lineNumber,r,o.lineNumber,o.column)}}return a.e.fromPositions(h.getPositionAfterDeleteLeft(o,t),o)}static getPositionAfterDeleteLeft(e,t){if(e.column>1){const i=n.oH(e.column-1,t.getLineContent(e.lineNumber));return e.with(void 0,i+1)}if(e.lineNumber>1){const i=e.lineNumber-1;return new l.L(i,t.getLineMaxColumn(i))}return e}static cut(e,t,i){let n=[],r=null;i.sort(((e,t)=>l.L.compare(e.getStartPosition(),t.getEndPosition())));for(let s=0,l=i.length;s1&&(null==r?void 0:r.endLineNumber)!==c.lineNumber?(e=c.lineNumber-1,i=t.getLineMaxColumn(c.lineNumber-1),h=c.lineNumber,d=t.getLineMaxColumn(c.lineNumber)):(e=c.lineNumber,i=1,h=c.lineNumber,d=t.getLineMaxColumn(c.lineNumber));let u=new a.e(e,i,h,d);r=u,u.isEmpty()?n[s]=null:n[s]=new o.T4(u,"")}else n[s]=null;else n[s]=new o.T4(l,"")}return new s.Tp(0,n,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}}},43361:function(e,t,i){"use strict";i.d(t,{N:function(){return n},P:function(){return d}});var n,o=i(72999),s=i(69025),r=i(87095),a=i(99292),l=i(72146),h=i(17373);class d{static addCursorDown(e,t,i){let n=[],o=0;for(let a=0,l=t.length;at&&(i=t,n=e.model.getLineMaxColumn(i)),s.Vi.fromModelState(new s.rS(new h.e(r.lineNumber,1,i,n),0,new l.L(i,n),0))}const d=t.modelState.selectionStart.getStartPosition().lineNumber;if(r.lineNumberd){const i=e.getLineCount();let n=a.lineNumber+1,o=1;return n>i&&(n=i,o=e.getLineMaxColumn(n)),s.Vi.fromViewState(t.viewState.move(t.modelState.hasSelection(),n,o,0))}{const e=t.modelState.selectionStart.getEndPosition();return s.Vi.fromModelState(t.modelState.move(t.modelState.hasSelection(),e.lineNumber,e.column,0))}}static word(e,t,i,n){const o=e.model.validatePosition(n);return s.Vi.fromModelState(a.w.word(e.cursorConfig,e.model,t.modelState,i,o))}static cancelSelection(e,t){if(!t.modelState.hasSelection())return new s.Vi(t.modelState,t.viewState);const i=t.viewState.position.lineNumber,n=t.viewState.position.column;return s.Vi.fromViewState(new s.rS(new h.e(i,n,i,n),0,new l.L(i,n),0))}static moveTo(e,t,i,n,o){const r=e.model.validatePosition(n),a=o?e.coordinatesConverter.validateViewPosition(new l.L(o.lineNumber,o.column),r):e.coordinatesConverter.convertModelPositionToViewPosition(r);return s.Vi.fromViewState(t.viewState.move(i,a.lineNumber,a.column,0))}static simpleMove(e,t,i,n,o,a){switch(i){case 0:return 4===a?this._moveHalfLineLeft(e,t,n):this._moveLeft(e,t,n,o);case 1:return 4===a?this._moveHalfLineRight(e,t,n):this._moveRight(e,t,n,o);case 2:return 2===a?this._moveUpByViewLines(e,t,n,o):this._moveUpByModelLines(e,t,n,o);case 3:return 2===a?this._moveDownByViewLines(e,t,n,o):this._moveDownByModelLines(e,t,n,o);case 4:return 2===a?t.map((t=>s.Vi.fromViewState(r.o.moveToPrevBlankLine(e.cursorConfig,e,t.viewState,n)))):t.map((t=>s.Vi.fromModelState(r.o.moveToPrevBlankLine(e.cursorConfig,e.model,t.modelState,n))));case 5:return 2===a?t.map((t=>s.Vi.fromViewState(r.o.moveToNextBlankLine(e.cursorConfig,e,t.viewState,n)))):t.map((t=>s.Vi.fromModelState(r.o.moveToNextBlankLine(e.cursorConfig,e.model,t.modelState,n))));case 6:return this._moveToViewMinColumn(e,t,n);case 7:return this._moveToViewFirstNonWhitespaceColumn(e,t,n);case 8:return this._moveToViewCenterColumn(e,t,n);case 9:return this._moveToViewMaxColumn(e,t,n);case 10:return this._moveToViewLastNonWhitespaceColumn(e,t,n);default:return null}}static viewportMove(e,t,i,n,o){const s=e.getCompletelyVisibleViewRange(),r=e.coordinatesConverter.convertViewRangeToModelRange(s);switch(i){case 11:{const i=this._firstLineNumberInRange(e.model,r,o),s=e.model.getLineFirstNonWhitespaceColumn(i);return[this._moveToModelPosition(e,t[0],n,i,s)]}case 13:{const i=this._lastLineNumberInRange(e.model,r,o),s=e.model.getLineFirstNonWhitespaceColumn(i);return[this._moveToModelPosition(e,t[0],n,i,s)]}case 12:{const i=Math.round((r.startLineNumber+r.endLineNumber)/2),o=e.model.getLineFirstNonWhitespaceColumn(i);return[this._moveToModelPosition(e,t[0],n,i,o)]}case 14:{let i=[];for(let o=0,r=t.length;oi.endLineNumber-1?i.endLineNumber-1:os.Vi.fromViewState(r.o.moveLeft(e.cursorConfig,e,t.viewState,i,n))))}static _moveHalfLineLeft(e,t,i){let n=[];for(let o=0,a=t.length;os.Vi.fromViewState(r.o.moveRight(e.cursorConfig,e,t.viewState,i,n))))}static _moveHalfLineRight(e,t,i){let n=[];for(let o=0,a=t.length;oe.getLineMinColumn(t.lineNumber))return t.delta(void 0,-r.HO(e.getLineContent(t.lineNumber),t.column-1));if(t.lineNumber>1){const i=t.lineNumber-1;return new o.L(i,e.getLineMaxColumn(i))}return t}static leftPositionAtomicSoftTabs(e,t,i){if(t.column<=e.getLineIndentColumn(t.lineNumber)){const n=e.getLineMinColumn(t.lineNumber),s=e.getLineContent(t.lineNumber),r=a.l.atomicPosition(s,t.column-1,i,0);if(-1!==r&&r+1>=n)return new o.L(t.lineNumber,r+1)}return this.leftPosition(e,t)}static left(e,t,i){const n=e.stickyTabStops?h.leftPositionAtomicSoftTabs(t,i,e.tabSize):h.leftPosition(t,i);return new l(n.lineNumber,n.column,0)}static moveLeft(e,t,i,n,o){let s,r;if(i.hasSelection()&&!n)s=i.selection.startLineNumber,r=i.selection.startColumn;else{const n=i.position.delta(void 0,-(o-1)),a=t.normalizePosition(h.clipPositionColumn(n,t),0),l=h.left(e,t,a);s=l.lineNumber,r=l.column}return i.move(n,s,r,0)}static clipPositionColumn(e,t){return new o.L(e.lineNumber,h.clipRange(e.column,t.getLineMinColumn(e.lineNumber),t.getLineMaxColumn(e.lineNumber)))}static clipRange(e,t,i){return ei?i:e}static rightPosition(e,t,i){return id?(i=d,o=a?t.getLineMaxColumn(i):Math.min(t.getLineMaxColumn(i),o)):o=n.io.columnFromVisibleColumn2(e,t,i,h),s=g?0:h-n.io.visibleColumnFromColumn(t.getLineContent(i),o,e.tabSize),new l(i,o,s)}static down(e,t,i,n,o,s,r){return this.vertical(e,t,i,n,o,i+s,r)}static moveDown(e,t,i,n,o){let s,r;i.hasSelection()&&!n?(s=i.selection.endLineNumber,r=i.selection.endColumn):(s=i.position.lineNumber,r=i.position.column);let a=h.down(e,t,s,r,i.leftoverVisibleColumns,o,!0);return i.move(n,a.lineNumber,a.column,a.leftoverVisibleColumns)}static translateDown(e,t,i){let r=i.selection,a=h.down(e,t,r.selectionStartLineNumber,r.selectionStartColumn,i.selectionStartLeftoverVisibleColumns,1,!1),l=h.down(e,t,r.positionLineNumber,r.positionColumn,i.leftoverVisibleColumns,1,!1);return new n.rS(new s.e(a.lineNumber,a.column,a.lineNumber,a.column),a.leftoverVisibleColumns,new o.L(l.lineNumber,l.column),l.leftoverVisibleColumns)}static up(e,t,i,n,o,s,r){return this.vertical(e,t,i,n,o,i-s,r)}static moveUp(e,t,i,n,o){let s,r;i.hasSelection()&&!n?(s=i.selection.startLineNumber,r=i.selection.startColumn):(s=i.position.lineNumber,r=i.position.column);let a=h.up(e,t,s,r,i.leftoverVisibleColumns,o,!0);return i.move(n,a.lineNumber,a.column,a.leftoverVisibleColumns)}static translateUp(e,t,i){let r=i.selection,a=h.up(e,t,r.selectionStartLineNumber,r.selectionStartColumn,i.selectionStartLeftoverVisibleColumns,1,!1),l=h.up(e,t,r.positionLineNumber,r.positionColumn,i.leftoverVisibleColumns,1,!1);return new n.rS(new s.e(a.lineNumber,a.column,a.lineNumber,a.column),a.leftoverVisibleColumns,new o.L(l.lineNumber,l.column),l.leftoverVisibleColumns)}static _isBlankLine(e,t){return 0===e.getLineFirstNonWhitespaceColumn(t)}static moveToPrevBlankLine(e,t,i,n){let o=i.position.lineNumber;for(;o>1&&this._isBlankLine(t,o);)o--;for(;o>1&&!this._isBlankLine(t,o);)o--;return i.move(n,o,t.getLineMinColumn(o),0)}static moveToNextBlankLine(e,t,i,n){const o=t.getLineCount();let s=i.position.lineNumber;for(;s1){let n;for(n=i-1;n>=1;n--){const e=t.getLineContent(n);if(o.ow(e)>=0)break}if(n<1)return null;const r=t.getLineMaxColumn(n),l=g.zu.getEnterAction(e.autoIndent,t,new a.e(n,r,n,r));l&&(s=l.indentation+l.appendText)}return n&&(n===u.wU.Indent&&(s=p.shiftIndent(e,s)),n===u.wU.Outdent&&(s=p.unshiftIndent(e,s)),s=e.normalizeIndentation(s)),s||null}static _replaceJumpToNextIndent(e,t,i,n){let o="",r=i.getStartPosition();if(e.insertSpaces){let i=d.io.visibleColumnFromColumn2(e,t,r),n=e.indentSize,s=n-i%n;for(let e=0;ethis._compositionType(i,e,o,s,r,a)));return new d.Tp(4,l,{shouldPushStackElementBefore:_(e,4),shouldPushStackElementAfter:!1})}static _compositionType(e,t,i,n,o,r){if(!t.isEmpty())return null;const l=t.getPosition(),h=Math.max(1,l.column-n),d=Math.min(e.getLineMaxColumn(l.lineNumber),l.column+o),c=new a.e(l.lineNumber,h,l.lineNumber,d);return e.getValueInRange(c)===i&&0===r?null:new s.Uo(c,i,0,r)}static _typeCommand(e,t,i){return i?new s.Sj(e,t,!0):new s.T4(e,t,!0)}static _enter(e,t,i,n){if(0===e.autoIndent)return p._typeCommand(n,"\n",i);if(!t.isCheapToTokenize(n.getStartPosition().lineNumber)||1===e.autoIndent){let s=t.getLineContent(n.startLineNumber),r=o.V8(s).substring(0,n.startColumn-1);return p._typeCommand(n,"\n"+e.normalizeIndentation(r),i)}const r=g.zu.getEnterAction(e.autoIndent,t,n);if(r){if(r.indentAction===u.wU.None)return p._typeCommand(n,"\n"+e.normalizeIndentation(r.indentation+r.appendText),i);if(r.indentAction===u.wU.Indent)return p._typeCommand(n,"\n"+e.normalizeIndentation(r.indentation+r.appendText),i);if(r.indentAction===u.wU.IndentOutdent){const t=e.normalizeIndentation(r.indentation),o=e.normalizeIndentation(r.indentation+r.appendText),a="\n"+o+"\n"+t;return i?new s.Sj(n,a,!0):new s.Uo(n,a,-1,o.length-t.length,!0)}if(r.indentAction===u.wU.Outdent){const t=p.unshiftIndent(e,r.indentation);return p._typeCommand(n,"\n"+e.normalizeIndentation(t+r.appendText),i)}}const a=t.getLineContent(n.startLineNumber),l=o.V8(a).substring(0,n.startColumn-1);if(e.autoIndent>=4){const r=g.zu.getIndentForEnter(e.autoIndent,t,n,{unshiftIndent:t=>p.unshiftIndent(e,t),shiftIndent:t=>p.shiftIndent(e,t),normalizeIndentation:t=>e.normalizeIndentation(t)});if(r){let a=d.io.visibleColumnFromColumn2(e,t,n.getEndPosition());const l=n.endColumn,h=t.getLineContent(n.endLineNumber),c=o.LC(h);if(n=c>=0?n.setEndPosition(n.endLineNumber,Math.max(n.endColumn,c+1)):n.setEndPosition(n.endLineNumber,t.getLineMaxColumn(n.endLineNumber)),i)return new s.Sj(n,"\n"+e.normalizeIndentation(r.afterEnter),!0);{let t=0;return l<=c+1&&(e.insertSpaces||(a=Math.ceil(a/e.indentSize)),t=Math.min(a+1-e.normalizeIndentation(r.afterEnter).length-1,0)),new s.Uo(n,"\n"+e.normalizeIndentation(r.afterEnter),0,t,!0)}}}return p._typeCommand(n,"\n"+e.normalizeIndentation(l),i)}static _isAutoIndentType(e,t,i){if(e.autoIndent<4)return!1;for(let e=0,n=i.length;ep.shiftIndent(e,t),unshiftIndent:t=>p.unshiftIndent(e,t)});if(null===s)return null;if(s!==e.normalizeIndentation(o)){const o=t.getLineFirstNonWhitespaceColumn(i.startLineNumber);return 0===o?p._typeCommand(new a.e(i.startLineNumber,1,i.endLineNumber,i.endColumn),e.normalizeIndentation(s)+n,!1):p._typeCommand(new a.e(i.startLineNumber,1,i.endLineNumber,i.endColumn),e.normalizeIndentation(s)+t.getLineContent(i.startLineNumber).substring(o-1,i.startColumn-1)+n,!1)}return null}static _isAutoClosingOvertype(e,t,i,n,o){if("never"===e.autoClosingOvertype)return!1;if(!e.autoClosingPairs.autoClosingPairsCloseSingleChar.has(o))return!1;for(let s=0,r=i.length;s2?l.charCodeAt(a.column-2):0)&&h)return!1;if("auto"===e.autoClosingOvertype){let e=!1;for(let t=0,i=n.length;tt.startsWith(e.open))),r=o.some((e=>t.startsWith(e.close)));return!s&&r}static _findAutoClosingPairOpen(e,t,i,n){const o=e.autoClosingPairs.autoClosingPairsOpenByEnd.get(n);if(!o)return null;let s=null;for(const e of o)if(null===s||e.open.length>s.open.length){let o=!0;for(const s of i){if(t.getValueInRange(new a.e(s.lineNumber,s.column-e.open.length+1,s.lineNumber,s.column))+n!==e.open){o=!1;break}}o&&(s=e)}return s}static _findSubAutoClosingPairClose(e,t){if(t.open.length<=1)return"";const i=t.close.charAt(t.close.length-1),n=e.autoClosingPairs.autoClosingPairsCloseByEnd.get(i)||[];let o=null;for(const e of n)e.open!==t.open&&t.open.includes(e.open)&&t.close.endsWith(e.close)&&(!o||e.open.length>o.open.length)&&(o=e);return o?o.close:""}static _getAutoClosingPairClose(e,t,i,o,s){const r=(0,d.LN)(o),a=r?e.autoClosingQuotes:e.autoClosingBrackets;if("never"===a)return null;const l=this._findAutoClosingPairOpen(e,t,i.map((e=>e.getPosition())),o);if(!l)return null;const h=this._findSubAutoClosingPairClose(e,l);let u=!0;const m=r?e.shouldAutoCloseBefore.quote:e.shouldAutoCloseBefore.bracket;for(let r=0,d=i.length;rf.column-1){const t=_.charAt(f.column-1);if(!p._isBeforeClosingBrace(e,v)&&!m(t))return null}if(!t.isCheapToTokenize(f.lineNumber))return null;if(1===l.open.length&&("'"===o||'"'===o)&&"always"!==a){const t=(0,c.u)(e.wordSeparators);if(s&&f.column>1&&0===t.get(_.charCodeAt(f.column-2)))return null;if(!s&&f.column>2&&0===t.get(_.charCodeAt(f.column-3)))return null}t.forceTokenization(f.lineNumber);const b=t.getLineTokens(f.lineNumber);let C=!1;try{C=g.zu.shouldAutoClosePair(l,b,s?f.column:f.column-1)}catch(e){(0,n.dL)(e)}if(!C)return null}return u?l.close.substring(0,l.close.length-h.length):l.close}static _runAutoClosingOpenCharType(e,t,i,n,o,s,r){let a=[];for(let e=0,t=n.length;enew s.T4(new a.e(e.positionLineNumber,e.positionColumn,e.positionLineNumber,e.positionColumn+1),"",!1)));return new d.Tp(4,e,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}const c=this._getAutoClosingPairClose(t,i,o,h,!1);return null!==c?this._runAutoClosingOpenCharType(e,t,i,o,h,!1,c):null}static typeWithInterceptors(e,t,i,n,o,r,a){if(!e&&"\n"===a){let e=[];for(let t=0,s=o.length;t=0;o--){let i=e.charCodeAt(o),s=t.get(i);if(0===s){if(2===n)return this._createWord(e,n,s,o+1,this._findEndOfWord(e,t,n,o+1));n=1}else if(2===s){if(1===n)return this._createWord(e,n,s,o+1,this._findEndOfWord(e,t,n,o+1));n=2}else if(1===s&&0!==n)return this._createWord(e,n,s,o+1,this._findEndOfWord(e,t,n,o+1))}return 0!==n?this._createWord(e,n,1,0,this._findEndOfWord(e,t,n,0)):null}static _findEndOfWord(e,t,i,n){let o=e.length;for(let s=n;s=0;o--){let n=e.charCodeAt(o),s=t.get(n);if(1===s)return o+1;if(1===i&&2===s)return o+1;if(2===i&&0===s)return o+1}return 0}static moveWordLeft(e,t,i,n){let o=i.lineNumber,s=i.column;1===s&&o>1&&(o-=1,s=t.getLineMaxColumn(o));let r=h._findPreviousWordOnLine(e,t,new a.L(o,s));if(0===n)return new a.L(o,r?r.start+1:1);if(1===n)return r&&2===r.wordType&&r.end-r.start==1&&0===r.nextCharClass&&(r=h._findPreviousWordOnLine(e,t,new a.L(o,r.start+1))),new a.L(o,r?r.start+1:1);if(3===n){for(;r&&2===r.wordType;)r=h._findPreviousWordOnLine(e,t,new a.L(o,r.start+1));return new a.L(o,r?r.start+1:1)}return r&&s<=r.end+1&&(r=h._findPreviousWordOnLine(e,t,new a.L(o,r.start+1))),new a.L(o,r?r.end+1:1)}static _moveWordPartLeft(e,t){const i=t.lineNumber,o=e.getLineMaxColumn(i);if(1===t.column)return i>1?new a.L(i-1,e.getLineMaxColumn(i-1)):t;const s=e.getLineContent(i);for(let e=t.column-1;e>1;e--){const t=s.charCodeAt(e-2),r=s.charCodeAt(e-1);if(95===t&&95!==r)return new a.L(i,e);if(n.mK(t)&&n.df(r))return new a.L(i,e);if(n.df(t)&&n.df(r)&&e+1=l.start+1&&(l=h._findNextWordOnLine(e,t,new a.L(o,l.end+1))),s=l?l.start+1:t.getLineMaxColumn(o);return new a.L(o,s)}static _moveWordPartRight(e,t){const i=t.lineNumber,o=e.getLineMaxColumn(i);if(t.column===o)return i1?u=1:(c--,u=n.getLineMaxColumn(c)):(g&&u<=g.end+1&&(g=h._findPreviousWordOnLine(i,n,new a.L(c,g.start+1))),g?u=g.end+1:u>1?u=1:(c--,u=n.getLineMaxColumn(c))),new l.e(c,u,d.lineNumber,d.column)}static deleteInsideWord(e,t,i){if(!i.isEmpty())return i;const n=new a.L(i.positionLineNumber,i.positionColumn);let o=this._deleteInsideWordWhitespace(t,n);return o||this._deleteInsideWordDetermineDeleteRange(e,t,n)}static _charAtIsWhitespace(e,t){const i=e.charCodeAt(t);return 32===i||9===i}static _deleteInsideWordWhitespace(e,t){const i=e.getLineContent(t.lineNumber),n=i.length;if(0===n)return null;let o=Math.max(t.column-2,0);if(!this._charAtIsWhitespace(i,o))return null;let s=Math.min(t.column-1,n-1);if(!this._charAtIsWhitespace(i,s))return null;for(;o>0&&this._charAtIsWhitespace(i,o-1);)o--;for(;s+11?new l.e(i.lineNumber-1,t.getLineMaxColumn(i.lineNumber-1),i.lineNumber,1):i.lineNumbere.start+1<=i.column&&i.column<=e.end+1,r=(e,t)=>(e=Math.min(e,i.column),t=Math.max(t,i.column),new l.e(i.lineNumber,e,i.lineNumber,t)),a=e=>{let t=e.start+1,i=e.end+1,s=!1;for(;i-11&&this._charAtIsWhitespace(n,t-2);)t--;return r(t,i)},d=h._findPreviousWordOnLine(e,t,i);if(d&&s(d))return a(d);const c=h._findNextWordOnLine(e,t,i);return c&&s(c)?a(c):d&&c?r(d.end+1,c.start+1):d?r(d.start+1,d.end+1):c?r(c.start+1,c.end+1):r(1,o+1)}static _deleteWordPartLeft(e,t){if(!t.isEmpty())return t;const i=t.getPosition(),n=h._moveWordPartLeft(e,i);return new l.e(i.lineNumber,i.column,n.lineNumber,n.column)}static _findFirstNonWhitespaceChar(e,t){let i=e.length;for(let n=t;n=p.start+1&&(p=h._findNextWordOnLine(i,n,new a.L(d,p.end+1))),p?c=p.start+1:cBoolean(e)))}},21981:function(e,t,i){"use strict";i.d(t,{u:function(){return s}});var n=i(14788);class o extends n.N{constructor(e){super(0);for(let t=0,i=e.length;t(t.hasOwnProperty(i)||(t[i]=e(i)),t[i])}((e=>new o(e)))},14788:function(e,t,i){"use strict";i.d(t,{N:function(){return o},q:function(){return s}});var n=i(41301);class o{constructor(e){let t=(0,n.K)(e);this._defaultValue=t,this._asciiMap=o._createAsciiMap(t),this._map=new Map}static _createAsciiMap(e){let t=new Uint8Array(256);for(let i=0;i<256;i++)t[i]=e;return t}set(e,t){let i=(0,n.K)(t);e>=0&&e<256?this._asciiMap[e]=i:this._map.set(e,i)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}}class s{constructor(){this._actual=new o(0)}add(e){this._actual.set(e,1)}has(e){return 1===this._actual.get(e)}}},44124:function(e,t,i){"use strict";i.d(t,{h:function(){return o}});var n=i(17373);class o{static insert(e,t){return{range:new n.e(e.lineNumber,e.column,e.lineNumber,e.column),text:t,forceMoveMarkers:!0}}static delete(e){return{range:e,text:null}}static replace(e,t){return{range:e,text:t}}static replaceMove(e,t){return{range:e,text:t,forceMoveMarkers:!0}}}},35521:function(e,t,i){"use strict";i.d(t,{A:function(){return o}});var n=i(27347);class o{constructor(e,t,i){this._lineTokensBrand=void 0,this._tokens=e,this._tokensCount=this._tokens.length>>>1,this._text=t,this._languageIdCodec=i}static createEmpty(e,t){const i=o.defaultTokenMetadata,n=new Uint32Array(2);return n[0]=e.length,n[1]=i,new o(n,e,t)}equals(e){return e instanceof o&&this.slicedEquals(e,0,this._tokensCount)}slicedEquals(e,t,i){if(this._text!==e._text)return!1;if(this._tokensCount!==e._tokensCount)return!1;const n=t<<1,o=n+(i<<1);for(let t=n;t0?this._tokens[e-1<<1]:0}getMetadata(e){return this._tokens[1+(e<<1)]}getLanguageId(e){const t=this._tokens[1+(e<<1)],i=n.NX.getLanguageId(t);return this._languageIdCodec.decodeLanguageId(i)}getStandardTokenType(e){const t=this._tokens[1+(e<<1)];return n.NX.getTokenType(t)}getForeground(e){const t=this._tokens[1+(e<<1)];return n.NX.getForeground(t)}getClassName(e){const t=this._tokens[1+(e<<1)];return n.NX.getClassNameFromMetadata(t)}getInlineStyle(e,t){const i=this._tokens[1+(e<<1)];return n.NX.getInlineStyleFromMetadata(i,t)}getEndOffset(e){return this._tokens[e<<1]}findTokenIndexAtOffset(e){return o.findIndexInTokensArray(this._tokens,e)}inflate(){return this}sliceAndInflate(e,t,i){return new s(this,e,t,i)}static convertToEndOffset(e,t){const i=(e.length>>>1)-1;for(let t=0;t>>1)-1;for(;it&&(n=o)}return i}withInserted(e){if(0===e.length)return this;let t=0,i=0,n="";const s=new Array;let r=0;for(;;){let o=tr){n+=this._text.substring(r,a.offset);const e=this._tokens[1+(t<<1)];s.push(n.length,e),r=a.offset}n+=a.text,s.push(n.length,a.tokenMetadata),i++}}return new o(new Uint32Array(s),n,this._languageIdCodec)}}o.defaultTokenMetadata=16793600;class s{constructor(e,t,i,n){this._source=e,this._startOffset=t,this._endOffset=i,this._deltaOffset=n,this._firstTokenIndex=e.findTokenIndexAtOffset(t),this._tokensCount=0;for(let t=this._firstTokenIndex,n=e.getCount();t=i)break;this._tokensCount++}}equals(e){return e instanceof s&&(this._startOffset===e._startOffset&&this._endOffset===e._endOffset&&this._deltaOffset===e._deltaOffset&&this._source.slicedEquals(e._source,this._firstTokenIndex,this._tokensCount))}getCount(){return this._tokensCount}getForeground(e){return this._source.getForeground(this._firstTokenIndex+e)}getEndOffset(e){const t=this._source.getEndOffset(this._firstTokenIndex+e);return Math.min(this._endOffset,t)-this._startOffset+this._deltaOffset}getClassName(e){return this._source.getClassName(this._firstTokenIndex+e)}getInlineStyle(e,t){return this._source.getInlineStyle(this._firstTokenIndex+e,t)}findTokenIndexAtOffset(e){return this._source.findTokenIndexAtOffset(e+this._startOffset-this._deltaOffset)-this._firstTokenIndex}}},72146:function(e,t,i){"use strict";i.d(t,{L:function(){return n}});class n{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new n(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return n.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return n.isBefore(this,e)}static isBefore(e,t){return e.lineNumberi||e===i&&t>n?(this.startLineNumber=i,this.startColumn=n,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=i,this.endColumn=n)}isEmpty(){return o.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return o.containsPosition(this,e)}static containsPosition(e,t){return!(t.lineNumbere.endLineNumber)&&(!(t.lineNumber===e.startLineNumber&&t.columne.endColumn))}containsRange(e){return o.containsRange(this,e)}static containsRange(e,t){return!(t.startLineNumbere.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumne.endColumn)))}strictContainsRange(e){return o.strictContainsRange(this,e)}static strictContainsRange(e,t){return!(t.startLineNumbere.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumn<=e.startColumn)&&!(t.endLineNumber===e.endLineNumber&&t.endColumn>=e.endColumn)))}plusRange(e){return o.plusRange(this,e)}static plusRange(e,t){let i,n,s,r;return t.startLineNumbere.endLineNumber?(s=t.endLineNumber,r=t.endColumn):t.endLineNumber===e.endLineNumber?(s=t.endLineNumber,r=Math.max(t.endColumn,e.endColumn)):(s=e.endLineNumber,r=e.endColumn),new o(i,n,s,r)}intersectRanges(e){return o.intersectRanges(this,e)}static intersectRanges(e,t){let i=e.startLineNumber,n=e.startColumn,s=e.endLineNumber,r=e.endColumn,a=t.startLineNumber,l=t.startColumn,h=t.endLineNumber,d=t.endColumn;return ih?(s=h,r=d):s===h&&(r=Math.min(r,d)),i>s||i===s&&n>r?null:new o(i,n,s,r)}equalsRange(e){return o.equalsRange(this,e)}static equalsRange(e,t){return!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}getEndPosition(){return o.getEndPosition(this)}static getEndPosition(e){return new n.L(e.endLineNumber,e.endColumn)}getStartPosition(){return o.getStartPosition(this)}static getStartPosition(e){return new n.L(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,t){return new o(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new o(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return o.collapseToStart(this)}static collapseToStart(e){return new o(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}static fromPositions(e,t=e){return new o(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new o(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&"number"==typeof e.startLineNumber&&"number"==typeof e.startColumn&&"number"==typeof e.endLineNumber&&"number"==typeof e.endColumn}static areIntersectingOrTouching(e,t){return!(e.endLineNumbere.startLineNumber}}},17551:function(e,t,i){"use strict";i.d(t,{Y:function(){return s}});var n=i(72146),o=i(17373);class s extends o.e{constructor(e,t,i,n){super(e,t,i,n),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=i,this.positionColumn=n}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return s.selectionsEqual(this,e)}static selectionsEqual(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,t){return 0===this.getDirection()?new s(this.startLineNumber,this.startColumn,e,t):new s(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new n.L(this.positionLineNumber,this.positionColumn)}setStartPosition(e,t){return 0===this.getDirection()?new s(e,t,this.endLineNumber,this.endColumn):new s(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new s(e.lineNumber,e.column,t.lineNumber,t.column)}static liftSelection(e){return new s(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(let i=0,n=e.length;inew m(e),g=function(e,t,i){const n=new Uint16Array(e.buffer,t,i);if(i>0&&(65279===n[0]||65534===n[0]))return p(e,t,i);return h().decode(n)}):(u=e=>new f,g=p);class m{constructor(e){this._capacity=0|e,this._buffer=new Uint16Array(this._capacity),this._completedStrings=null,this._bufferLength=0}reset(){this._completedStrings=null,this._bufferLength=0}build(){return null!==this._completedStrings?(this._flushBuffer(),this._completedStrings.join("")):this._buildBuffer()}_buildBuffer(){if(0===this._bufferLength)return"";const e=new Uint16Array(this._buffer.buffer,0,this._bufferLength);return d().decode(e)}_flushBuffer(){const e=this._buildBuffer();this._bufferLength=0,null===this._completedStrings?this._completedStrings=[e]:this._completedStrings[this._completedStrings.length]=e}write1(e){const t=this._capacity-this._bufferLength;t<=1&&(0===t||n.ZG(e))&&this._flushBuffer(),this._buffer[this._bufferLength++]=e}appendASCII(e){this._bufferLength===this._capacity&&this._flushBuffer(),this._buffer[this._bufferLength++]=e}appendASCIIString(e){const t=e.length;if(this._bufferLength+t>=this._capacity)return this._flushBuffer(),void(this._completedStrings[this._completedStrings.length]=e);for(let i=0;i0&&(this.changes=(0,a.b)(this.changes,t)),this.afterEOL=i,this.afterVersionId=n,this.afterCursorState=o}static _writeSelectionsSize(e){return 4+16*(e?e.length:0)}static _writeSelections(e,t,i){if(l.T4(e,t?t.length:0,i),i+=4,t)for(const n of t)l.T4(e,n.selectionStartLineNumber,i),i+=4,l.T4(e,n.selectionStartColumn,i),i+=4,l.T4(e,n.positionLineNumber,i),i+=4,l.T4(e,n.positionColumn,i),i+=4;return i}static _readSelections(e,t,i){const n=l.Ag(e,t);t+=4;for(let o=0;oe.toString())).join(", ")}matchesResource(e){return(r.o.isUri(this.model)?this.model:this.model.uri).toString()===e.toString()}setModel(e){this.model=e}canAppend(e){return this.model===e&&this._data instanceof c}append(e,t,i,n,o){this._data instanceof c&&this._data.append(e,t,i,n,o)}close(){this._data instanceof c&&(this._data=this._data.serialize())}open(){this._data instanceof c||(this._data=c.deserialize(this._data))}undo(){if(r.o.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof c&&(this._data=this._data.serialize());const e=c.deserialize(this._data);this.model._applyUndo(e.changes,e.beforeEOL,e.beforeVersionId,e.beforeCursorState)}redo(){if(r.o.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof c&&(this._data=this._data.serialize());const e=c.deserialize(this._data);this.model._applyRedo(e.changes,e.afterEOL,e.afterVersionId,e.afterCursorState)}heapSize(){return this._data instanceof c&&(this._data=this._data.serialize()),this._data.byteLength+168}}class g{constructor(e,t){this.type=1,this.label=e,this._isOpen=!0,this._editStackElementsArr=t.slice(0),this._editStackElementsMap=new Map;for(const e of this._editStackElementsArr){const t=d(e.resource);this._editStackElementsMap.set(t,e)}this._delegate=null}get resources(){return this._editStackElementsArr.map((e=>e.resource))}prepareUndoRedo(){if(this._delegate)return this._delegate.prepareUndoRedo(this)}matchesResource(e){const t=d(e);return this._editStackElementsMap.has(t)}setModel(e){const t=d(r.o.isUri(e)?e:e.uri);this._editStackElementsMap.has(t)&&this._editStackElementsMap.get(t).setModel(e)}canAppend(e){if(!this._isOpen)return!1;const t=d(e.uri);if(this._editStackElementsMap.has(t)){return this._editStackElementsMap.get(t).canAppend(e)}return!1}append(e,t,i,n,o){const s=d(e.uri);this._editStackElementsMap.get(s).append(e,t,i,n,o)}close(){this._isOpen=!1}open(){}undo(){this._isOpen=!1;for(const e of this._editStackElementsArr)e.undo()}redo(){for(const e of this._editStackElementsArr)e.redo()}heapSize(e){const t=d(e);if(this._editStackElementsMap.has(t)){return this._editStackElementsMap.get(t).heapSize()}return 0}split(){return this._editStackElementsArr}toString(){let e=[];for(const t of this._editStackElementsArr)e.push(`${(0,h.EZ)(t.resource)}: ${t}`);return`{${e.join(", ")}}`}}function p(e){return"\n"===e.getEOL()?0:1}function m(e){return!!e&&(e instanceof u||e instanceof g)}class f{constructor(e,t){this._model=e,this._undoRedoService=t}pushStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);m(e)&&e.close()}popStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);m(e)&&e.open()}clear(){this._undoRedoService.removeElements(this._model.uri)}_getOrCreateEditStackElement(e){const t=this._undoRedoService.getLastElement(this._model.uri);if(m(t)&&t.canAppend(this._model))return t;const i=new u(this._model,e);return this._undoRedoService.pushElement(i),i}pushEOL(e){const t=this._getOrCreateEditStackElement(null);this._model.setEOL(e),t.append(this._model,[],p(this._model),this._model.getAlternativeVersionId(),null)}pushEditOperation(e,t,i){const n=this._getOrCreateEditStackElement(e),o=this._model.applyEdits(t,!0),s=f._computeCursorState(i,o),r=o.map(((e,t)=>({index:t,textChange:e.textChange})));return r.sort(((e,t)=>e.textChange.oldPosition===t.textChange.oldPosition?e.index-t.index:e.textChange.oldPosition-t.textChange.oldPosition)),n.append(this._model,r.map((e=>e.textChange)),p(this._model),this._model.getAlternativeVersionId(),s),s}static _computeCursorState(e,t){try{return e?e(t):null}catch(e){return(0,o.dL)(e),null}}}},70896:function(e,t,i){"use strict";i.d(t,{b:function(){return a},q:function(){return r}});var n=i(90794),o=i(48772);function s(e){return e.replace(/\n/g,"\\n").replace(/\r/g,"\\r")}class r{constructor(e,t,i,n){this.oldPosition=e,this.oldText=t,this.newPosition=i,this.newText=n}get oldLength(){return this.oldText.length}get oldEnd(){return this.oldPosition+this.oldText.length}get newLength(){return this.newText.length}get newEnd(){return this.newPosition+this.newText.length}toString(){return 0===this.oldText.length?`(insert@${this.oldPosition} "${s(this.newText)}")`:0===this.newText.length?`(delete@${this.oldPosition} "${s(this.oldText)}")`:`(replace@${this.oldPosition} "${s(this.oldText)}" with "${s(this.newText)}")`}static _writeStringSize(e){return 4+2*e.length}static _writeString(e,t,i){const o=t.length;n.T4(e,o,i),i+=4;for(let s=0;s0&&a>0)return;if(l>0&&h>0)return;let d=Math.abs(a-h),c=Math.abs(r-l);if(0===d)return o.spacesDiff=c,void(c>0&&0<=l-1&&l-10?o++:f>1&&s++,m(r,a,c,p,d),d.looksLikeAlignment&&(!i||t!==d.spacesDiff))continue;let v=d.spacesDiff;v<=8&&h[v]++,r=c,a=p}let c=i;o!==s&&(c=o{let i=h[t];i>e&&(e=i,u=t)})),4===u&&h[4]>0&&h[2]>0&&h[2]>=h[4]/2&&(u=2)}return{insertSpaces:c,tabSize:u}}function _(e){return(1&e.metadata)>>>0}function v(e,t){e.metadata=254&e.metadata|t<<0}function b(e){return(2&e.metadata)>>>1==1}function C(e,t){e.metadata=253&e.metadata|(t?1:0)<<1}function w(e){return(4&e.metadata)>>>2==1}function S(e,t){e.metadata=251&e.metadata|(t?1:0)<<2}function y(e,t){e.metadata=231&e.metadata|t<<3}function L(e,t){e.metadata=223&e.metadata|(t?1:0)<<5}class N{constructor(e,t,i){this.metadata=0,this.parent=this,this.left=this,this.right=this,v(this,1),this.start=t,this.end=i,this.delta=0,this.maxEnd=i,this.id=e,this.ownerId=0,this.options=null,S(this,!1),y(this,1),L(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=i,this.range=null,C(this,!1)}reset(e,t,i,n){this.start=t,this.end=i,this.maxEnd=i,this.cachedVersionId=e,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=i,this.range=n}setOptions(e){this.options=e;let t=this.options.className;S(this,"squiggly-error"===t||"squiggly-warning"===t||"squiggly-info"===t),y(this,this.options.stickiness),L(this,this.options.collapseOnReplaceEdit)}setCachedOffsets(e,t,i){this.cachedVersionId!==i&&(this.range=null),this.cachedVersionId=i,this.cachedAbsoluteStart=e,this.cachedAbsoluteEnd=t}detach(){this.parent=null,this.left=null,this.right=null}}const x=new N(null,0,0);x.parent=x,x.left=x,x.right=x,v(x,0);class k{constructor(){this.root=x,this.requestNormalizeDelta=!1}intervalSearch(e,t,i,n,o){return this.root===x?[]:function(e,t,i,n,o,s){let r=e.root,a=0,l=0,h=0,d=0,c=[],u=0;for(;r!==x;)if(b(r))C(r.left,!1),C(r.right,!1),r===r.parent.right&&(a-=r.parent.delta),r=r.parent;else{if(!b(r.left)){if(l=a+r.maxEnd,li)C(r,!0);else{if(d=a+r.end,d>=t){r.setCachedOffsets(h,d,s);let e=!0;n&&r.ownerId&&r.ownerId!==n&&(e=!1),o&&w(r)&&(e=!1),e&&(c[u++]=r)}C(r,!0),r.right===x||b(r.right)||(a+=r.delta,r=r.right)}}return C(e.root,!1),c}(this,e,t,i,n,o)}search(e,t,i){return this.root===x?[]:function(e,t,i,n){let o=e.root,s=0,r=0,a=0,l=[],h=0;for(;o!==x;){if(b(o)){C(o.left,!1),C(o.right,!1),o===o.parent.right&&(s-=o.parent.delta),o=o.parent;continue}if(o.left!==x&&!b(o.left)){o=o.left;continue}r=s+o.start,a=s+o.end,o.setCachedOffsets(r,a,n);let e=!0;t&&o.ownerId&&o.ownerId!==t&&(e=!1),i&&w(o)&&(e=!1),e&&(l[h++]=o),C(o,!0),o.right===x||b(o.right)||(s+=o.delta,o=o.right)}return C(e.root,!1),l}(this,e,t,i)}collectNodesFromOwner(e){return function(e,t){let i=e.root,n=[],o=0;for(;i!==x;)b(i)?(C(i.left,!1),C(i.right,!1),i=i.parent):i.left===x||b(i.left)?(i.ownerId===t&&(n[o++]=i),C(i,!0),i.right===x||b(i.right)||(i=i.right)):i=i.left;return C(e.root,!1),n}(this,e)}collectNodesPostOrder(){return function(e){let t=e.root,i=[],n=0;for(;t!==x;)b(t)?(C(t.left,!1),C(t.right,!1),t=t.parent):t.left===x||b(t.left)?t.right===x||b(t.right)?(i[n++]=t,C(t,!0)):t=t.right:t=t.left;return C(e.root,!1),i}(this)}insert(e){I(this,e),this._normalizeDeltaIfNecessary()}delete(e){T(this,e),this._normalizeDeltaIfNecessary()}resolveNode(e,t){const i=e;let n=0;for(;e!==this.root;)e===e.parent.right&&(n+=e.parent.delta),e=e.parent;const o=i.start+n,s=i.end+n;i.setCachedOffsets(o,s,t)}acceptReplace(e,t,i,n){const o=function(e,t,i){let n=e.root,o=0,s=0,r=0,a=0,l=[],h=0;for(;n!==x;)if(b(n))C(n.left,!1),C(n.right,!1),n===n.parent.right&&(o-=n.parent.delta),n=n.parent;else{if(!b(n.left)){if(s=o+n.maxEnd,si?C(n,!0):(a=o+n.end,a>=t&&(n.setCachedOffsets(r,a,0),l[h++]=n),C(n,!0),n.right===x||b(n.right)||(o+=n.delta,n=n.right))}return C(e.root,!1),l}(this,e,e+t);for(let e=0,t=o.length;ei?(o.start+=l,o.end+=l,o.delta+=l,(o.delta<-1073741824||o.delta>1073741824)&&(e.requestNormalizeDelta=!0),C(o,!0)):(C(o,!0),o.right===x||b(o.right)||(s+=o.delta,o=o.right))}C(e.root,!1)}(this,e,e+t,i),this._normalizeDeltaIfNecessary();for(let s=0,r=o.length;si)&&(1!==n&&(2===n||t))}function E(e,t,i,n,o){const s=function(e){return(24&e.metadata)>>>3}(e),r=0===s||2===s,a=1===s||2===s,l=i-t,h=n,d=Math.min(l,h),c=e.start;let u=!1;const g=e.end;let p=!1;t<=c&&g<=i&&function(e){return(32&e.metadata)>>>5==1}(e)&&(e.start=t,u=!0,e.end=t,p=!0);{const e=o?1:l>0?2:0;!u&&D(c,r,t,e)&&(u=!0),!p&&D(g,a,t,e)&&(p=!0)}if(d>0&&!o){const e=l>h?2:0;!u&&D(c,r,t+d,e)&&(u=!0),!p&&D(g,a,t+d,e)&&(p=!0)}{const n=o?1:0;!u&&D(c,r,i,n)&&(e.start=t+h,u=!0),!p&&D(g,a,i,n)&&(e.end=t+h,p=!0)}const m=h-l;u||(e.start=Math.max(0,c+m)),p||(e.end=Math.max(0,g+m)),e.start>e.end&&(e.end=e.start)}function I(e,t){if(e.root===x)return t.parent=x,t.left=x,t.right=x,v(t,0),e.root=t,e.root;!function(e,t){let i=0,n=e.root;const o=t.start,s=t.end;for(;;){if(B(o,s,n.start+i,n.end+i)<0){if(n.left===x){t.start-=i,t.end-=i,t.maxEnd-=i,n.left=t;break}n=n.left}else{if(n.right===x){t.start-=i+n.delta,t.end-=i+n.delta,t.maxEnd-=i+n.delta,n.right=t;break}i+=n.delta,n=n.right}}t.parent=n,t.left=x,t.right=x,v(t,1)}(e,t),F(t.parent);let i=t;for(;i!==e.root&&1===_(i.parent);)if(i.parent===i.parent.parent.left){const t=i.parent.parent.right;1===_(t)?(v(i.parent,0),v(t,0),v(i.parent.parent,1),i=i.parent.parent):(i===i.parent.right&&(i=i.parent,A(e,i)),v(i.parent,0),v(i.parent.parent,1),R(e,i.parent.parent))}else{const t=i.parent.parent.left;1===_(t)?(v(i.parent,0),v(t,0),v(i.parent.parent,1),i=i.parent.parent):(i===i.parent.left&&(i=i.parent,R(e,i)),v(i.parent,0),v(i.parent.parent,1),A(e,i.parent.parent))}return v(e.root,0),t}function T(e,t){let i,n;if(t.left===x?(i=t.right,n=t,i.delta+=t.delta,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0),i.start+=t.delta,i.end+=t.delta):t.right===x?(i=t.left,n=t):(n=function(e){for(;e.left!==x;)e=e.left;return e}(t.right),i=n.right,i.start+=n.delta,i.end+=n.delta,i.delta+=n.delta,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta,n.delta=t.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0)),n===e.root)return e.root=i,v(i,0),t.detach(),M(),P(i),void(e.root.parent=x);let o,s=1===_(n);if(n===n.parent.left?n.parent.left=i:n.parent.right=i,n===t?i.parent=n.parent:(n.parent===t?i.parent=n:i.parent=n.parent,n.left=t.left,n.right=t.right,n.parent=t.parent,v(n,_(t)),t===e.root?e.root=n:t===t.parent.left?t.parent.left=n:t.parent.right=n,n.left!==x&&(n.left.parent=n),n.right!==x&&(n.right.parent=n)),t.detach(),s)return F(i.parent),n!==t&&(F(n),F(n.parent)),void M();for(F(i),F(i.parent),n!==t&&(F(n),F(n.parent));i!==e.root&&0===_(i);)i===i.parent.left?(o=i.parent.right,1===_(o)&&(v(o,0),v(i.parent,1),A(e,i.parent),o=i.parent.right),0===_(o.left)&&0===_(o.right)?(v(o,1),i=i.parent):(0===_(o.right)&&(v(o.left,0),v(o,1),R(e,o),o=i.parent.right),v(o,_(i.parent)),v(i.parent,0),v(o.right,0),A(e,i.parent),i=e.root)):(o=i.parent.left,1===_(o)&&(v(o,0),v(i.parent,1),R(e,i.parent),o=i.parent.left),0===_(o.left)&&0===_(o.right)?(v(o,1),i=i.parent):(0===_(o.left)&&(v(o.right,0),v(o,1),A(e,o),o=i.parent.left),v(o,_(i.parent)),v(i.parent,0),v(o.left,0),R(e,i.parent),i=e.root));v(i,0),M()}function M(){x.parent=x,x.delta=0,x.start=0,x.end=0}function A(e,t){const i=t.right;i.delta+=t.delta,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0),i.start+=t.delta,i.end+=t.delta,t.right=i.left,i.left!==x&&(i.left.parent=t),i.parent=t.parent,t.parent===x?e.root=i:t===t.parent.left?t.parent.left=i:t.parent.right=i,i.left=t,t.parent=i,P(t),P(i)}function R(e,t){const i=t.left;t.delta-=i.delta,(t.delta<-1073741824||t.delta>1073741824)&&(e.requestNormalizeDelta=!0),t.start-=i.delta,t.end-=i.delta,t.left=i.right,i.right!==x&&(i.right.parent=t),i.parent=t.parent,t.parent===x?e.root=i:t===t.parent.right?t.parent.right=i:t.parent.left=i,i.right=t,t.parent=i,P(t),P(i)}function O(e){let t=e.end;if(e.left!==x){const i=e.left.maxEnd;i>t&&(t=i)}if(e.right!==x){const i=e.right.maxEnd+e.delta;i>t&&(t=i)}return t}function P(e){e.maxEnd=O(e)}function F(e){for(;e!==x;){const t=O(e);if(e.maxEnd===t)return;e.maxEnd=t,e=e.parent}}function B(e,t,i,n){return e===i?t-n:e-i}class V{constructor(e,t){this.piece=e,this.color=t,this.size_left=0,this.lf_left=0,this.parent=this,this.left=this,this.right=this}next(){if(this.right!==W)return H(this.right);let e=this;for(;e.parent!==W&&e.parent.left!==e;)e=e.parent;return e.parent===W?W:e.parent}prev(){if(this.left!==W)return z(this.left);let e=this;for(;e.parent!==W&&e.parent.right!==e;)e=e.parent;return e.parent===W?W:e.parent}detach(){this.parent=null,this.left=null,this.right=null}}const W=new V(null,0);function H(e){for(;e.left!==W;)e=e.left;return e}function z(e){for(;e.right!==W;)e=e.right;return e}function K(e){return e===W?0:e.size_left+e.piece.length+K(e.right)}function U(e){return e===W?0:e.lf_left+e.piece.lineFeedCnt+U(e.right)}function $(){W.parent=W}function j(e,t){let i=t.right;i.size_left+=t.size_left+(t.piece?t.piece.length:0),i.lf_left+=t.lf_left+(t.piece?t.piece.lineFeedCnt:0),t.right=i.left,i.left!==W&&(i.left.parent=t),i.parent=t.parent,t.parent===W?e.root=i:t.parent.left===t?t.parent.left=i:t.parent.right=i,i.left=t,t.parent=i}function q(e,t){let i=t.left;t.left=i.right,i.right!==W&&(i.right.parent=t),i.parent=t.parent,t.size_left-=i.size_left+(i.piece?i.piece.length:0),t.lf_left-=i.lf_left+(i.piece?i.piece.lineFeedCnt:0),t.parent===W?e.root=i:t===t.parent.right?t.parent.right=i:t.parent.left=i,i.right=t,t.parent=i}function G(e,t){let i,n;if(t.left===W?(n=t,i=n.right):t.right===W?(n=t,i=n.left):(n=H(t.right),i=n.right),n===e.root)return e.root=i,i.color=0,t.detach(),$(),void(e.root.parent=W);let o,s=1===n.color;if(n===n.parent.left?n.parent.left=i:n.parent.right=i,n===t?(i.parent=n.parent,Y(e,i)):(n.parent===t?i.parent=n:i.parent=n.parent,Y(e,i),n.left=t.left,n.right=t.right,n.parent=t.parent,n.color=t.color,t===e.root?e.root=n:t===t.parent.left?t.parent.left=n:t.parent.right=n,n.left!==W&&(n.left.parent=n),n.right!==W&&(n.right.parent=n),n.size_left=t.size_left,n.lf_left=t.lf_left,Y(e,n)),t.detach(),i.parent.left===i){let t=K(i),n=U(i);if(t!==i.parent.size_left||n!==i.parent.lf_left){let o=t-i.parent.size_left,s=n-i.parent.lf_left;i.parent.size_left=t,i.parent.lf_left=n,Q(e,i.parent,o,s)}}if(Y(e,i.parent),s)$();else{for(;i!==e.root&&0===i.color;)i===i.parent.left?(o=i.parent.right,1===o.color&&(o.color=0,i.parent.color=1,j(e,i.parent),o=i.parent.right),0===o.left.color&&0===o.right.color?(o.color=1,i=i.parent):(0===o.right.color&&(o.left.color=0,o.color=1,q(e,o),o=i.parent.right),o.color=i.parent.color,i.parent.color=0,o.right.color=0,j(e,i.parent),i=e.root)):(o=i.parent.left,1===o.color&&(o.color=0,i.parent.color=1,q(e,i.parent),o=i.parent.left),0===o.left.color&&0===o.right.color?(o.color=1,i=i.parent):(0===o.left.color&&(o.right.color=0,o.color=1,j(e,o),o=i.parent.left),o.color=i.parent.color,i.parent.color=0,o.left.color=0,q(e,i.parent),i=e.root));i.color=0,$()}}function Z(e,t){for(Y(e,t);t!==e.root&&1===t.parent.color;)if(t.parent===t.parent.parent.left){const i=t.parent.parent.right;1===i.color?(t.parent.color=0,i.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.right&&j(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,q(e,t.parent.parent))}else{const i=t.parent.parent.left;1===i.color?(t.parent.color=0,i.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.left&&q(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,j(e,t.parent.parent))}e.root.color=0}function Q(e,t,i,n){for(;t!==e.root&&t!==W;)t.parent.left===t&&(t.parent.size_left+=i,t.parent.lf_left+=n),t=t.parent}function Y(e,t){let i=0,n=0;if(t!==e.root){for(;t!==e.root&&t===t.parent.right;)t=t.parent;if(t!==e.root)for(i=K((t=t.parent).left)-t.size_left,n=U(t.left)-t.lf_left,t.size_left+=i,t.lf_left+=n;t!==e.root&&(0!==i||0!==n);)t.parent.left===t&&(t.parent.size_left+=i,t.parent.lf_left+=n),t=t.parent}}W.parent=W,W.left=W,W.right=W,W.color=0;var X=i(91070);const J=65535;function ee(e){let t;return t=e[e.length-1]<65536?new Uint16Array(e.length):new Uint32Array(e.length),t.set(e,0),t}class te{constructor(e,t,i,n,o){this.lineStarts=e,this.cr=t,this.lf=i,this.crlf=n,this.isBasicASCII=o}}function ie(e,t=!0){let i=[0],n=1;for(let t=0,o=e.length;t(e!==W&&this._pieces.push(e.piece),!0)))}read(){return 0===this._pieces.length?0===this._index?(this._index++,this._BOM):null:this._index>this._pieces.length-1?null:0===this._index?this._BOM+this._tree.getPieceContent(this._pieces[this._index++]):this._tree.getPieceContent(this._pieces[this._index++])}}class re{constructor(e){this._limit=e,this._cache=[]}get(e){for(let t=this._cache.length-1;t>=0;t--){let i=this._cache[t];if(i.nodeStartOffset<=e&&i.nodeStartOffset+i.node.piece.length>=e)return i}return null}get2(e){for(let t=this._cache.length-1;t>=0;t--){let i=this._cache[t];if(i.nodeStartLineNumber&&i.nodeStartLineNumber=e)return i}return null}set(e){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(e)}validate(e){let t=!1,i=this._cache;for(let n=0;n=e)&&(i[n]=null,t=!0)}if(t){let e=[];for(const t of i)null!==t&&e.push(t);this._cache=e}}}class ae{constructor(e,t,i){this.create(e,t,i)}create(e,t,i){this._buffers=[new oe("",[0])],this._lastChangeBufferPos={line:0,column:0},this.root=W,this._lineCnt=1,this._length=0,this._EOL=t,this._EOLLength=t.length,this._EOLNormalized=i;let n=null;for(let t=0,i=e.length;t0){e[t].lineStarts||(e[t].lineStarts=ie(e[t].buffer));let i=new ne(t+1,{line:0,column:0},{line:e[t].lineStarts.length-1,column:e[t].buffer.length-e[t].lineStarts[e[t].lineStarts.length-1]},e[t].lineStarts.length-1,e[t].buffer.length);this._buffers.push(e[t]),n=this.rbInsertRight(n,i)}this._searchCache=new re(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()}normalizeEOL(e){let t=65535-Math.floor(21845),i=2*t,n="",o=0,s=[];if(this.iterate(this.root,(r=>{let a=this.getNodeContent(r),l=a.length;if(o<=t||o+l0){let t=n.replace(/\r\n|\r|\n/g,e);s.push(new oe(t,ie(t)))}this.create(s,e,!0)}getEOL(){return this._EOL}setEOL(e){this._EOL=e,this._EOLLength=this._EOL.length,this.normalizeEOL(e)}createSnapshot(e){return new se(this,e)}getOffsetAt(e,t){let i=0,n=this.root;for(;n!==W;)if(n.left!==W&&n.lf_left+1>=e)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt+1>=e){return i+=n.size_left,i+(this.getAccumulatedValue(n,e-n.lf_left-2)+t-1)}e-=n.lf_left+n.piece.lineFeedCnt,i+=n.size_left+n.piece.length,n=n.right}return i}getPositionAt(e){e=Math.floor(e),e=Math.max(0,e);let t=this.root,i=0,n=e;for(;t!==W;)if(0!==t.size_left&&t.size_left>=e)t=t.left;else{if(t.size_left+t.piece.length>=e){let o=this.getIndexOf(t,e-t.size_left);if(i+=t.lf_left+o.index,0===o.index){let e=n-this.getOffsetAt(i+1,1);return new h.L(i+1,e+1)}return new h.L(i+1,o.remainder+1)}if(e-=t.size_left+t.piece.length,i+=t.lf_left+t.piece.lineFeedCnt,t.right===W){let t=n-e-this.getOffsetAt(i+1,1);return new h.L(i+1,t+1)}t=t.right}return new h.L(1,1)}getValueInRange(e,t){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return"";let i=this.nodeAt2(e.startLineNumber,e.startColumn),n=this.nodeAt2(e.endLineNumber,e.endColumn),o=this.getValueInRange2(i,n);return t?t===this._EOL&&this._EOLNormalized&&t===this.getEOL()&&this._EOLNormalized?o:o.replace(/\r\n|\r|\n/g,t):o}getValueInRange2(e,t){if(e.node===t.node){let i=e.node,n=this._buffers[i.piece.bufferIndex].buffer,o=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return n.substring(o+e.remainder,o+t.remainder)}let i=e.node,n=this._buffers[i.piece.bufferIndex].buffer,o=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start),s=n.substring(o+e.remainder,o+i.piece.length);for(i=i.next();i!==W;){let e=this._buffers[i.piece.bufferIndex].buffer,n=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);if(i===t.node){s+=e.substring(n,n+t.remainder);break}s+=e.substr(n,i.piece.length),i=i.next()}return s}getLinesContent(){let e=[],t=0,i="",n=!1;return this.iterate(this.root,(o=>{if(o===W)return!0;const s=o.piece;let r=s.length;if(0===r)return!0;const a=this._buffers[s.bufferIndex].buffer,l=this._buffers[s.bufferIndex].lineStarts,h=s.start.line,d=s.end.line;let c=l[h]+s.start.column;if(n&&(10===a.charCodeAt(c)&&(c++,r--),e[t++]=i,i="",n=!1,0===r))return!0;if(h===d)return this._EOLNormalized||13!==a.charCodeAt(c+r-1)?i+=a.substr(c,r):(n=!0,i+=a.substr(c,r-1)),!0;i+=this._EOLNormalized?a.substring(c,Math.max(c,l[h+1]-this._EOLLength)):a.substring(c,l[h+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=i;for(let n=h+1;ne+_,t.reset(0)):(g=m.buffer,p=e=>e,t.reset(_));do{if(u=t.next(g),u){if(p(u.index)>=v)return h;this.positionInBuffer(e,p(u.index)-f,b);let t=this.getLineFeedCnt(e.piece.bufferIndex,o,b),s=b.line===o.line?b.column-o.column+n:b.column+1,r=s+u[0].length;if(c[h++]=(0,X.iE)(new d.e(i+t,s,i+t,r),u,a),p(u.index)+u[0].length>=v)return h;if(h>=l)return h}}while(u);return h}findMatchesLineByLine(e,t,i,n){const o=[];let s=0;const r=new X.sz(t.wordSeparators,t.regex);let a=this.nodeAt2(e.startLineNumber,e.startColumn);if(null===a)return[];let l=this.nodeAt2(e.endLineNumber,e.endColumn);if(null===l)return[];let h=this.positionInBuffer(a.node,a.remainder),d=this.positionInBuffer(l.node,l.remainder);if(a.node===l.node)return this.findMatchesInNode(a.node,r,e.startLineNumber,e.startColumn,h,d,t,i,n,s,o),o;let c=e.startLineNumber,u=a.node;for(;u!==l.node;){let l=this.getLineFeedCnt(u.piece.bufferIndex,h,u.piece.end);if(l>=1){let a=this._buffers[u.piece.bufferIndex].lineStarts,d=this.offsetInBuffer(u.piece.bufferIndex,u.piece.start),g=a[h.line+l],p=c===e.startLineNumber?e.startColumn:1;if(s=this.findMatchesInNode(u,r,c,p,h,this.positionInBuffer(u,g-d),t,i,n,s,o),s>=n)return o;c+=l}let d=c===e.startLineNumber?e.startColumn-1:0;if(c===e.endLineNumber){const a=this.getLineContent(c).substring(d,e.endColumn-1);return s=this._findMatchesInLine(t,r,a,e.endLineNumber,d,s,o,i,n),o}if(s=this._findMatchesInLine(t,r,this.getLineContent(c).substr(d),c,d,s,o,i,n),s>=n)return o;c++,a=this.nodeAt2(c,1),u=a.node,h=this.positionInBuffer(a.node,a.remainder)}if(c===e.endLineNumber){let a=c===e.startLineNumber?e.startColumn-1:0;const l=this.getLineContent(c).substring(a,e.endColumn-1);return s=this._findMatchesInLine(t,r,l,e.endLineNumber,a,s,o,i,n),o}let g=c===e.startLineNumber?e.startColumn:1;return s=this.findMatchesInNode(l.node,r,c,g,h,d,t,i,n,s,o),o}_findMatchesInLine(e,t,i,n,o,s,r,a,l){const h=e.wordSeparators;if(!a&&e.simpleSearch){const t=e.simpleSearch,a=t.length,c=i.length;let g=-a;for(;-1!==(g=i.indexOf(t,g+a));)if((!h||(0,X.cM)(h,i,c,g,a))&&(r[s++]=new u.tk(new d.e(n,g+1+o,n,g+1+a+o),null),s>=l))return s;return s}let c;t.reset(0);do{if(c=t.next(i),c&&(r[s++]=(0,X.iE)(new d.e(n,c.index+1+o,n,c.index+1+c[0].length+o),c,a),s>=l))return s}while(c);return s}insert(e,t,i=!1){if(this._EOLNormalized=this._EOLNormalized&&i,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==W){let{node:i,remainder:n,nodeStartOffset:o}=this.nodeAt(e),s=i.piece,r=s.bufferIndex,a=this.positionInBuffer(i,n);if(0===i.piece.bufferIndex&&s.end.line===this._lastChangeBufferPos.line&&s.end.column===this._lastChangeBufferPos.column&&o+s.length===e&&t.lengthe){let e=[],o=new ne(s.bufferIndex,a,s.end,this.getLineFeedCnt(s.bufferIndex,a,s.end),this.offsetInBuffer(r,s.end)-this.offsetInBuffer(r,a));if(this.shouldCheckCRLF()&&this.endWithCR(t)){if(10===this.nodeCharCodeAt(i,n)){let e={line:o.start.line+1,column:0};o=new ne(o.bufferIndex,e,o.end,this.getLineFeedCnt(o.bufferIndex,e,o.end),o.length-1),t+="\n"}}if(this.shouldCheckCRLF()&&this.startWithLF(t)){if(13===this.nodeCharCodeAt(i,n-1)){let o=this.positionInBuffer(i,n-1);this.deleteNodeTail(i,o),t="\r"+t,0===i.piece.length&&e.push(i)}else this.deleteNodeTail(i,a)}else this.deleteNodeTail(i,a);let l=this.createNewPieces(t);o.length>0&&this.rbInsertRight(i,o);let h=i;for(let e=0;e=0;e--)o=this.rbInsertLeft(o,n[e]);this.validateCRLFWithPrevNode(o),this.deleteNodes(i)}insertContentToNodeRight(e,t){this.adjustCarriageReturnFromNext(e,t)&&(e+="\n");let i=this.createNewPieces(e),n=this.rbInsertRight(t,i[0]),o=n;for(let e=1;e=d))break;a=h+1}return i?(i.line=h,i.column=r-c,null):{line:h,column:r-c}}getLineFeedCnt(e,t,i){if(0===i.column)return i.line-t.line;let n=this._buffers[e].lineStarts;if(i.line===n.length-1)return i.line-t.line;let o=n[i.line+1],s=n[i.line]+i.column;if(o>s+1)return i.line-t.line;let r=s-1;return 13===this._buffers[e].buffer.charCodeAt(r)?i.line-t.line+1:i.line-t.line}offsetInBuffer(e,t){return this._buffers[e].lineStarts[t.line]+t.column}deleteNodes(e){for(let t=0;tJ){let t=[];for(;e.length>J;){const i=e.charCodeAt(65534);let n;13===i||i>=55296&&i<=56319?(n=e.substring(0,65534),e=e.substring(65534)):(n=e.substring(0,J),e=e.substring(J));let o=ie(n);t.push(new ne(this._buffers.length,{line:0,column:0},{line:o.length-1,column:n.length-o[o.length-1]},o.length-1,n.length)),this._buffers.push(new oe(n,o))}let i=ie(e);return t.push(new ne(this._buffers.length,{line:0,column:0},{line:i.length-1,column:e.length-i[i.length-1]},i.length-1,e.length)),this._buffers.push(new oe(e,i)),t}let t=this._buffers[0].buffer.length;const i=ie(e,!1);let n=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===t&&0!==t&&this.startWithLF(e)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},n=this._lastChangeBufferPos;for(let e=0;e=e-1)i=i.left;else{if(i.lf_left+i.piece.lineFeedCnt>e-1){let n=this.getAccumulatedValue(i,e-i.lf_left-2),r=this.getAccumulatedValue(i,e-i.lf_left-1),a=this._buffers[i.piece.bufferIndex].buffer,l=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return o+=i.size_left,this._searchCache.set({node:i,nodeStartOffset:o,nodeStartLineNumber:s-(e-1-i.lf_left)}),a.substring(l+n,l+r-t)}if(i.lf_left+i.piece.lineFeedCnt===e-1){let t=this.getAccumulatedValue(i,e-i.lf_left-2),o=this._buffers[i.piece.bufferIndex].buffer,s=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);n=o.substring(s+t,s+i.piece.length);break}e-=i.lf_left+i.piece.lineFeedCnt,o+=i.size_left+i.piece.length,i=i.right}}for(i=i.next();i!==W;){let e=this._buffers[i.piece.bufferIndex].buffer;if(i.piece.lineFeedCnt>0){let o=this.getAccumulatedValue(i,0),s=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return n+=e.substring(s,s+o-t),n}{let t=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);n+=e.substr(t,i.piece.length)}i=i.next()}return n}computeBufferMetadata(){let e=this.root,t=1,i=0;for(;e!==W;)t+=e.lf_left+e.piece.lineFeedCnt,i+=e.size_left+e.piece.length,e=e.right;this._lineCnt=t,this._length=i,this._searchCache.validate(this._length)}getIndexOf(e,t){let i=e.piece,n=this.positionInBuffer(e,t),o=n.line-i.start.line;if(this.offsetInBuffer(i.bufferIndex,i.end)-this.offsetInBuffer(i.bufferIndex,i.start)===t){let t=this.getLineFeedCnt(e.piece.bufferIndex,i.start,n);if(t!==o)return{index:t,remainder:0}}return{index:o,remainder:n.column}}getAccumulatedValue(e,t){if(t<0)return 0;let i=e.piece,n=this._buffers[i.bufferIndex].lineStarts,o=i.start.line+t+1;return o>i.end.line?n[i.end.line]+i.end.column-n[i.start.line]-i.start.column:n[o]-n[i.start.line]-i.start.column}deleteNodeTail(e,t){const i=e.piece,n=i.lineFeedCnt,o=this.offsetInBuffer(i.bufferIndex,i.end),s=t,r=this.offsetInBuffer(i.bufferIndex,s),a=this.getLineFeedCnt(i.bufferIndex,i.start,s),l=a-n,h=r-o,d=i.length+h;e.piece=new ne(i.bufferIndex,i.start,s,a,d),Q(this,e,h,l)}deleteNodeHead(e,t){const i=e.piece,n=i.lineFeedCnt,o=this.offsetInBuffer(i.bufferIndex,i.start),s=t,r=this.getLineFeedCnt(i.bufferIndex,s,i.end),a=r-n,l=o-this.offsetInBuffer(i.bufferIndex,s),h=i.length+l;e.piece=new ne(i.bufferIndex,s,i.end,r,h),Q(this,e,l,a)}shrinkNode(e,t,i){const n=e.piece,o=n.start,s=n.end,r=n.length,a=n.lineFeedCnt,l=t,h=this.getLineFeedCnt(n.bufferIndex,n.start,l),d=this.offsetInBuffer(n.bufferIndex,t)-this.offsetInBuffer(n.bufferIndex,o);e.piece=new ne(n.bufferIndex,n.start,l,h,d),Q(this,e,d-r,h-a);let c=new ne(n.bufferIndex,i,s,this.getLineFeedCnt(n.bufferIndex,i,s),this.offsetInBuffer(n.bufferIndex,s)-this.offsetInBuffer(n.bufferIndex,i)),u=this.rbInsertRight(e,c);this.validateCRLFWithPrevNode(u)}appendToNode(e,t){this.adjustCarriageReturnFromNext(t,e)&&(t+="\n");const i=this.shouldCheckCRLF()&&this.startWithLF(t)&&this.endWithCR(e),n=this._buffers[0].buffer.length;this._buffers[0].buffer+=t;const o=ie(t,!1);for(let e=0;ee)t=t.left;else{if(t.size_left+t.piece.length>=e){n+=t.size_left;let i={node:t,remainder:e-t.size_left,nodeStartOffset:n};return this._searchCache.set(i),i}e-=t.size_left+t.piece.length,n+=t.size_left+t.piece.length,t=t.right}return null}nodeAt2(e,t){let i=this.root,n=0;for(;i!==W;)if(i.left!==W&&i.lf_left>=e-1)i=i.left;else{if(i.lf_left+i.piece.lineFeedCnt>e-1){let o=this.getAccumulatedValue(i,e-i.lf_left-2),s=this.getAccumulatedValue(i,e-i.lf_left-1);return n+=i.size_left,{node:i,remainder:Math.min(o+t-1,s),nodeStartOffset:n}}if(i.lf_left+i.piece.lineFeedCnt===e-1){let o=this.getAccumulatedValue(i,e-i.lf_left-2);if(o+t-1<=i.piece.length)return{node:i,remainder:o+t-1,nodeStartOffset:n};t-=i.piece.length-o;break}e-=i.lf_left+i.piece.lineFeedCnt,n+=i.size_left+i.piece.length,i=i.right}for(i=i.next();i!==W;){if(i.piece.lineFeedCnt>0){let e=this.getAccumulatedValue(i,0),n=this.offsetOfNode(i);return{node:i,remainder:Math.min(t-1,e),nodeStartOffset:n}}if(i.piece.length>=t-1){return{node:i,remainder:t-1,nodeStartOffset:this.offsetOfNode(i)}}t-=i.piece.length,i=i.next()}return null}nodeCharCodeAt(e,t){if(e.piece.lineFeedCnt<1)return-1;let i=this._buffers[e.piece.bufferIndex],n=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start)+t;return i.buffer.charCodeAt(n)}offsetOfNode(e){if(!e)return 0;let t=e.size_left;for(;e!==this.root;)e.parent.right===e&&(t+=e.parent.size_left+e.parent.piece.length),e=e.parent;return t}shouldCheckCRLF(){return!(this._EOLNormalized&&"\n"===this._EOL)}startWithLF(e){if("string"==typeof e)return 10===e.charCodeAt(0);if(e===W||0===e.piece.lineFeedCnt)return!1;let t=e.piece,i=this._buffers[t.bufferIndex].lineStarts,n=t.start.line,o=i[n]+t.start.column;return n!==i.length-1&&(!(i[n+1]>o+1)&&10===this._buffers[t.bufferIndex].buffer.charCodeAt(o))}endWithCR(e){return"string"==typeof e?13===e.charCodeAt(e.length-1):e!==W&&0!==e.piece.lineFeedCnt&&13===this.nodeCharCodeAt(e,e.piece.length-1)}validateCRLFWithPrevNode(e){if(this.shouldCheckCRLF()&&this.startWithLF(e)){let t=e.prev();this.endWithCR(t)&&this.fixCRLF(t,e)}}validateCRLFWithNextNode(e){if(this.shouldCheckCRLF()&&this.endWithCR(e)){let t=e.next();this.startWithLF(t)&&this.fixCRLF(e,t)}}fixCRLF(e,t){let i,n=[],o=this._buffers[e.piece.bufferIndex].lineStarts;i=0===e.piece.end.column?{line:e.piece.end.line-1,column:o[e.piece.end.line]-o[e.piece.end.line-1]-1}:{line:e.piece.end.line,column:e.piece.end.column-1};const s=e.piece.length-1,r=e.piece.lineFeedCnt-1;e.piece=new ne(e.piece.bufferIndex,e.piece.start,i,r,s),Q(this,e,-1,-1),0===e.piece.length&&n.push(e);let a={line:t.piece.start.line+1,column:0};const l=t.piece.length-1,h=this.getLineFeedCnt(t.piece.bufferIndex,a,t.piece.end);t.piece=new ne(t.piece.bufferIndex,a,t.piece.end,h,l),Q(this,t,-1,-1),0===t.piece.length&&n.push(t);let d=this.createNewPieces("\r\n");this.rbInsertRight(e,d[0]);for(let e=0;ee.sortIndex-t.sortIndex))}this._mightContainRTL=n,this._mightContainUnusualLineTerminators=o,this._mightContainNonBasicASCII=s;const p=this._doApplyEdits(l);let m=null;if(t&&c.length>0){c.sort(((e,t)=>t.lineNumber-e.lineNumber)),m=[];for(let e=0,t=c.length;e0&&c[e-1].lineNumber===t)continue;let i=c[e].oldContent,n=this.getLineContent(t);0!==n.length&&n!==i&&-1===r.LC(n)&&m.push(t)}}return this._onDidChangeContent.fire(),new u.je(g,p,m)}_reduceOperations(e){return e.length<1e3?e:[this._toSingleEditOperation(e)]}_toSingleEditOperation(e){let t=!1;const i=e[0].range,n=e[e.length-1].range,o=new d.e(i.startLineNumber,i.startColumn,n.endLineNumber,n.endColumn);let s=i.startLineNumber,r=i.startColumn;const a=[];for(let i=0,n=e.length;i0&&a.push(n.text),s=o.endLineNumber,r=o.endColumn}const l=a.join(""),[h,c,u]=(0,le.QZ)(l);return{sortIndex:0,identifier:e[0].identifier,range:o,rangeOffset:this.getOffsetAt(o.startLineNumber,o.startColumn),rangeLength:this.getValueLengthInRange(o,0),text:l,eolCount:h,firstLineLength:c,lastLineLength:u,forceMoveMarkers:t,isAutoWhitespaceEdit:!1}}_doApplyEdits(e){e.sort(de._sortOpsDescending);let t=[];for(let i=0;i0){const e=h.eolCount+1;l=1===e?new d.e(r,a,r,a+h.firstLineLength):new d.e(r,a,r+e-1,h.lastLineLength+1)}else l=new d.e(r,a,r,a);i=l.endLineNumber,n=l.endColumn,t.push(l),o=h}return t}static _sortOpsAscending(e,t){let i=d.e.compareRangesUsingEnds(e.range,t.range);return 0===i?e.sortIndex-t.sortIndex:i}static _sortOpsDescending(e,t){let i=d.e.compareRangesUsingEnds(e.range,t.range);return 0===i?t.sortIndex-e.sortIndex:-i}}class ce{constructor(e,t,i,n,o,s,r,a,l){this._chunks=e,this._bom=t,this._cr=i,this._lf=n,this._crlf=o,this._containsRTL=s,this._containsUnusualLineTerminators=r,this._isBasicASCII=a,this._normalizeEOL=l}_getEOL(e){const t=this._cr+this._lf+this._crlf,i=this._cr+this._crlf;return 0===t?1===e?"\n":"\r\n":i>t/2?"\r\n":"\n"}create(e){const t=this._getEOL(e);let i=this._chunks;if(this._normalizeEOL&&("\r\n"===t&&(this._cr>0||this._lf>0)||"\n"===t&&(this._cr>0||this._crlf>0)))for(let e=0,n=i.length;e=55296&&t<=56319?(this._acceptChunk1(e.substr(0,e.length-1),!1),this._hasPreviousChar=!0,this._previousChar=t):(this._acceptChunk1(e,!1),this._hasPreviousChar=!1,this._previousChar=t)}_acceptChunk1(e,t){(t||0!==e.length)&&(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+e):this._acceptChunk2(e))}_acceptChunk2(e){const t=function(e,t){e.length=0,e[0]=0;let i=1,n=0,o=0,s=0,r=!0;for(let a=0,l=t.length;a126)&&(r=!1)}const a=new te(ee(e),n,o,s,r);return e.length=0,a}(this._tmpLineStarts,e);this.chunks.push(new oe(e,t.lineStarts)),this.cr+=t.cr,this.lf+=t.lf,this.crlf+=t.crlf,this.isBasicASCII&&(this.isBasicASCII=t.isBasicASCII),this.isBasicASCII||this.containsRTL||(this.containsRTL=r.Ut(e)),this.isBasicASCII||this.containsUnusualLineTerminators||(this.containsUnusualLineTerminators=r.ab(e))}finish(e=!0){return this._finish(),new ce(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.containsUnusualLineTerminators,this.isBasicASCII,e)}_finish(){if(0===this.chunks.length&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;let e=this.chunks[this.chunks.length-1];e.buffer+=String.fromCharCode(this._previousChar);let t=ie(e.buffer);e.lineStarts=t,13===this._previousChar&&this.cr++}}}var ge=i(64685),pe=i(43506),me=i(35521),fe=i(27347),_e=i(31275),ve=i(95830),be=i(23345);class Ce{constructor(){this._beginState=[],this._valid=[],this._len=0,this._invalidLineStartIndex=0}_reset(e){this._beginState=[],this._valid=[],this._len=0,this._invalidLineStartIndex=0,e&&this._setBeginState(0,e)}flush(e){this._reset(e)}get invalidLineStartIndex(){return this._invalidLineStartIndex}_invalidateLine(e){e=this._len;)this._beginState[this._len]=null,this._valid[this._len]=!1,this._len++}_deleteLines(e,t){0!==t&&(e+t>this._len&&(t=this._len-e),this._beginState.splice(e,t),this._valid.splice(e,t),this._len-=t)}_insertLines(e,t){if(0===t)return;const i=[],n=[];for(let e=0;e=0;t--)this._invalidateLine(e.startLineNumber+t-1);this._acceptDeleteRange(e),this._acceptInsertText(new h.L(e.startLineNumber,e.startColumn),t)}_acceptDeleteRange(e){e.startLineNumber-1>=this._len||this._deleteLines(e.startLineNumber,e.endLineNumber-e.startLineNumber)}_acceptInsertText(e,t){e.lineNumber-1>=this._len||this._insertLines(e.lineNumber,t)}}class we extends s.JT{constructor(e,t){super(),this._textModel=e,this._languageIdCodec=t,this._isDisposed=!1,this._tokenizationStateStore=new Ce,this._tokenizationSupport=null,this._register(fe.RW.onDidChange((e=>{const t=this._textModel.getLanguageId();-1!==e.changedLanguages.indexOf(t)&&(this._resetTokenizationState(),this._textModel.clearTokens())}))),this._register(this._textModel.onDidChangeContentFast((e=>{if(e.isFlush)this._resetTokenizationState();else{for(let t=0,i=e.changes.length;t{this._beginBackgroundTokenization()}))),this._register(this._textModel.onDidChangeLanguage((()=>{this._resetTokenizationState(),this._textModel.clearTokens()}))),this._resetTokenizationState()}dispose(){this._isDisposed=!0,super.dispose()}_resetTokenizationState(){const[e,t]=function(e){const t=e.getLanguageId();let i=e.isTooLargeForTokenization()?null:fe.RW.get(t),o=null;if(i)try{o=i.getInitialState()}catch(e){(0,n.dL)(e),i=null}return[i,o]}(this._textModel);this._tokenizationSupport=e,this._tokenizationStateStore.flush(t),this._beginBackgroundTokenization()}_beginBackgroundTokenization(){this._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&be.xS((()=>{this._isDisposed||this._revalidateTokensNow()}))}_revalidateTokensNow(){const e=this._textModel.getLineCount(),t=new le.DA,i=ve.G.create(!1);let n=-1;for(;this._hasLinesToTokenize()&&!(i.elapsed()>1)&&(n=this._tokenizeOneInvalidLine(t),!(n>=e)););this._beginBackgroundTokenization(),this._textModel.setTokens(t.tokens,!this._hasLinesToTokenize())}tokenizeViewport(e,t){const i=new le.DA;this._tokenizeViewport(i,e,t),this._textModel.setTokens(i.tokens,!this._hasLinesToTokenize())}reset(){this._resetTokenizationState(),this._textModel.clearTokens()}forceTokenization(e){const t=new le.DA;this._updateTokensUntilLine(t,e),this._textModel.setTokens(t.tokens,!this._hasLinesToTokenize())}isCheapToTokenize(e){if(!this._tokenizationSupport)return!0;const t=this._tokenizationStateStore.invalidLineStartIndex+1;return!(e>t)&&(e1&&e>=1;e--){const t=this._textModel.getLineFirstNonWhitespaceColumn(e);if(0!==t&&t=0;e--){a=Se(this._languageIdCodec,r,this._tokenizationSupport,o[e],!1,a).endState}for(let n=t;n<=i;n++){const t=this._textModel.getLineContent(n),i=Se(this._languageIdCodec,r,this._tokenizationSupport,t,!0,a);e.add(n,i.tokens),this._tokenizationStateStore.setFakeTokens(n-1),a=i.endState}}}function Se(e,t,i,o,s,r){let a=null;if(i)try{a=i.tokenize2(o,s,r.clone(),0)}catch(e){(0,n.dL)(e)}return a||(a=(0,_e.mh)(e.encodeLanguageId(t),o,r,0)),me.A.convertToEndOffset(a.tokens,o.length),a}var ye=i(87131),Le=i(73468),Ne=i(39510),xe=i(38232),ke=i(51737),De=i(1085);class Ee{constructor(e,t,i){this.range=e,this.nestingLevel=t,this.isInvalid=i}}class Ie{constructor(e,t,i,n){this.range=e,this.openingBracketRange=t,this.closingBracketRange=i,this.nestingLevel=n}}class Te extends Ie{constructor(e,t,i,n,o){super(e,t,i,n),this.minVisibleColumnIndentation=o}}class Me{constructor(e,t){this.lineCount=e,this.columnCount=t}toString(){return`${this.lineCount},${this.columnCount}`}}const Ae=Math.pow(2,26);function Re(e,t){return e*Ae+t}function Oe(e){const t=e,i=Math.floor(t/Ae);return new Me(i,t-i*Ae)}function Pe(e,t){return t