You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
2.5 MiB
1 line
2.5 MiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[60,4,5,14],{"+3Gp":function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return l}));var i=n("MNsG"),r=n("Yr1X"),o=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),s=i["e"]?1.5:1.35,a=8,u=function(){function e(e){this.zoomLevel=e.zoomLevel,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}return e.createFromValidatedSettings=function(t,n,i){var r=t.get(33),o=t.get(37),s=t.get(36),a=t.get(35),u=t.get(49),l=t.get(46);return e._create(r,o,s,a,u,l,n,i)},e._create=function(t,n,i,o,u,l,c,d){0===u?u=Math.round(s*i):u<a&&(u=a);var h=1+(d?0:.1*r["a"].getZoomLevel());return i*=h,u*=h,new e({zoomLevel:c,fontFamily:t,fontWeight:n,fontSize:i,fontFeatureSettings:o,lineHeight:u,letterSpacing:l})},e.prototype.getId=function(){return this.zoomLevel+"-"+this.fontFamily+"-"+this.fontWeight+"-"+this.fontSize+"-"+this.fontFeatureSettings+"-"+this.lineHeight+"-"+this.letterSpacing},e.prototype.getMassagedFontFamily=function(){return/[,"']/.test(this.fontFamily)?this.fontFamily:/[+ ]/.test(this.fontFamily)?'"'+this.fontFamily+'"':this.fontFamily},e}(),l=function(e){function t(t,n){var i=e.call(this,t)||this;return i.isTrusted=n,i.isMonospace=t.isMonospace,i.typicalHalfwidthCharacterWidth=t.typicalHalfwidthCharacterWidth,i.typicalFullwidthCharacterWidth=t.typicalFullwidthCharacterWidth,i.canUseHalfwidthRightwardsArrow=t.canUseHalfwidthRightwardsArrow,i.spaceWidth=t.spaceWidth,i.middotWidth=t.middotWidth,i.maxDigitWidth=t.maxDigitWidth,i}return o(t,e),t.prototype.equals=function(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.maxDigitWidth===e.maxDigitWidth},t}(u)},"+7oY":function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"i",(function(){return a})),n.d(t,"b",(function(){return u})),n.d(t,"h",(function(){return l})),n.d(t,"d",(function(){return d})),n.d(t,"c",(function(){return h})),n.d(t,"e",(function(){return f})),n.d(t,"g",(function(){return p})),n.d(t,"f",(function(){return g}));var i=n("ic2d"),r=n("Cg/j"),o=n("CRAX"),s=Object(r["c"])("configurationService");function a(e,t){var n=Object.create(null);for(var i in e)u(n,i,e[i],t);return n}function u(e,t,n,i){for(var r=t.split("."),o=r.pop(),s=e,a=0;a<r.length;a++){var u=r[a],l=s[u];switch(typeof l){case"undefined":l=s[u]=Object.create(null);break;case"object":break;default:return void i("Ignoring "+t+" as "+r.slice(0,a+1).join(".")+" is "+JSON.stringify(l))}s=l}"object"===typeof s?s[o]=n:i("Ignoring "+t+" as "+r.join(".")+" is "+JSON.stringify(s))}function l(e,t){var n=t.split(".");c(e,n)}function c(e,t){var n=t.shift();if(0!==t.length){if(-1!==Object.keys(e).indexOf(n)){var i=e[n];"object"!==typeof i||Array.isArray(i)||(c(i,t),0===Object.keys(i).length&&delete e[n])}}else delete e[n]}function d(e,t,n){function i(e,t){for(var n=e,i=0,r=t;i<r.length;i++){var o=r[i];if("object"!==typeof n||null===n)return;n=n[o]}return n}var r=t.split("."),o=i(e,r);return"undefined"===typeof o?n:o}function h(){var e=i["a"].as(o["a"].Configuration).getConfigurationProperties();return Object.keys(e)}function f(){var e=Object.create(null),t=i["a"].as(o["a"].Configuration).getConfigurationProperties();for(var n in t){var r=t[n].default;u(e,n,r,(function(e){return console.error("Conflict in default settings: "+e)}))}return e}function p(e){return e.substring(1,e.length-1)}function g(e,t,n){var i=e.inspect(t),r=e.inspect(n);return"undefined"!==typeof i.userValue||"undefined"!==typeof i.workspaceValue||"undefined"!==typeof i.workspaceFolderValue?i.value:"undefined"!==typeof r.userValue||"undefined"!==typeof r.workspaceValue||"undefined"!==typeof r.workspaceFolderValue?r.value:i.defaultValue}},"+Fos":function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var i=n("Ll0s"),r=n("cGHE"),o=n("aokT"),s=n("N0LK"),a=function(){function e(e,t,n){this.lineNumber=e,this.column=t,this.leftoverVisibleColumns=n}return e}(),u=function(){function e(){}return e.leftPosition=function(e,t,n){return n>e.getLineMinColumn(t)?n-=s["G"](e.getLineContent(t),n-1):t>1&&(t-=1,n=e.getLineMaxColumn(t)),new r["a"](t,n)},e.left=function(t,n,i,r){var o=e.leftPosition(n,i,r);return new a(o.lineNumber,o.column,0)},e.moveLeft=function(t,n,i,r,o){var s,a;if(i.hasSelection()&&!r)s=i.selection.startLineNumber,a=i.selection.startColumn;else{var u=e.left(t,n,i.position.lineNumber,i.position.column-(o-1));s=u.lineNumber,a=u.column}return i.move(r,s,a,0)},e.rightPosition=function(e,t,n){return n<e.getLineMaxColumn(t)?n+=s["E"](e.getLineContent(t),n-1):t<e.getLineCount()&&(t+=1,n=e.getLineMinColumn(t)),new r["a"](t,n)},e.right=function(t,n,i,r){var o=e.rightPosition(n,i,r);return new a(o.lineNumber,o.column,0)},e.moveRight=function(t,n,i,r,o){var s,a;if(i.hasSelection()&&!r)s=i.selection.endLineNumber,a=i.selection.endColumn;else{var u=e.right(t,n,i.position.lineNumber,i.position.column+(o-1));s=u.lineNumber,a=u.column}return i.move(r,s,a,0)},e.down=function(e,t,n,r,o,s,u){var l=i["a"].visibleColumnFromColumn(t.getLineContent(n),r,e.tabSize)+o;n+=s;var c=t.getLineCount();return n>c?(n=c,r=u?t.getLineMaxColumn(n):Math.min(t.getLineMaxColumn(n),r)):r=i["a"].columnFromVisibleColumn2(e,t,n,l),o=l-i["a"].visibleColumnFromColumn(t.getLineContent(n),r,e.tabSize),new a(n,r,o)},e.moveDown=function(t,n,i,r,o){var s,a;i.hasSelection()&&!r?(s=i.selection.endLineNumber,a=i.selection.endColumn):(s=i.position.lineNumber,a=i.position.column);var u=e.down(t,n,s,a,i.leftoverVisibleColumns,o,!0);return i.move(r,u.lineNumber,u.column,u.leftoverVisibleColumns)},e.translateDown=function(t,n,s){var a=s.selection,u=e.down(t,n,a.selectionStartLineNumber,a.selectionStartColumn,s.selectionStartLeftoverVisibleColumns,1,!1),l=e.down(t,n,a.positionLineNumber,a.positionColumn,s.leftoverVisibleColumns,1,!1);return new i["f"](new o["a"](u.lineNumber,u.column,u.lineNumber,u.column),u.leftoverVisibleColumns,new r["a"](l.lineNumber,l.column),l.leftoverVisibleColumns)},e.up=function(e,t,n,r,o,s,u){var l=i["a"].visibleColumnFromColumn(t.getLineContent(n),r,e.tabSize)+o;return n-=s,n<1?(n=1,r=u?t.getLineMinColumn(n):Math.min(t.getLineMaxColumn(n),r)):r=i["a"].columnFromVisibleColumn2(e,t,n,l),o=l-i["a"].visibleColumnFromColumn(t.getLineContent(n),r,e.tabSize),new a(n,r,o)},e.moveUp=function(t,n,i,r,o){var s,a;i.hasSelection()&&!r?(s=i.selection.startLineNumber,a=i.selection.startColumn):(s=i.position.lineNumber,a=i.position.column);var u=e.up(t,n,s,a,i.leftoverVisibleColumns,o,!0);return i.move(r,u.lineNumber,u.column,u.leftoverVisibleColumns)},e.translateUp=function(t,n,s){var a=s.selection,u=e.up(t,n,a.selectionStartLineNumber,a.selectionStartColumn,s.selectionStartLeftoverVisibleColumns,1,!1),l=e.up(t,n,a.positionLineNumber,a.positionColumn,s.leftoverVisibleColumns,1,!1);return new i["f"](new o["a"](u.lineNumber,u.column,u.lineNumber,u.column),u.leftoverVisibleColumns,new r["a"](l.lineNumber,l.column),l.leftoverVisibleColumns)},e.moveToBeginningOfLine=function(e,t,n,i){var r,o=n.position.lineNumber,s=t.getLineMinColumn(o),a=t.getLineFirstNonWhitespaceColumn(o)||s,u=n.position.column;return r=u===a?s:a,n.move(i,o,r,0)},e.moveToEndOfLine=function(e,t,n,i){var r=n.position.lineNumber,o=t.getLineMaxColumn(r);return n.move(i,r,o,0)},e.moveToBeginningOfBuffer=function(e,t,n,i){return n.move(i,1,1,0)},e.moveToEndOfBuffer=function(e,t,n,i){var r=t.getLineCount(),o=t.getLineMaxColumn(r);return n.move(i,r,o,0)},e}()},"+a1H":function(e,t,n){"use strict";n.r(t);var i=n("+hIS");Object(i["a"])({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars"],mimetypes:["text/x-handlebars-template"],loader:function(){return n.e(155).then(n.bind(null,"O3xE"))}})},"+hIS":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i="undefined"===typeof monaco?self.monaco:monaco,r={},o={},s=function(){function e(e){var t=this;this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((function(e,n){t._lazyLoadPromiseResolve=e,t._lazyLoadPromiseReject=n}))}return e.getOrCreate=function(t){return o[t]||(o[t]=new e(t)),o[t]},e.prototype.whenLoaded=function(){return this._lazyLoadPromise},e.prototype.load=function(){var e=this;return this._loadingTriggered||(this._loadingTriggered=!0,r[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;r[t]=e,i.languages.register(e);var n=s.getOrCreate(t);i.languages.setMonarchTokensProvider(t,n.whenLoaded().then((function(e){return e.language}))),i.languages.onLanguage(t,(function(){n.load().then((function(e){i.languages.setLanguageConfiguration(t,e.conf)}))}))}},"/UlZ":function(e,t,n){"use strict";n.d(t,"f",(function(){return u})),n.d(t,"a",(function(){return l})),n.d(t,"h",(function(){return c})),n.d(t,"g",(function(){return b})),n.d(t,"d",(function(){return O})),n.d(t,"j",(function(){return V})),n.d(t,"b",(function(){return ee})),n.d(t,"c",(function(){return te})),n.d(t,"i",(function(){return ne})),n.d(t,"e",(function(){return re}));var i=n("3/fG"),r=n("MNsG"),o=n("0JNc"),s=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),a=function(){return a=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},a.apply(this,arguments)},u=8,l=function(){function e(e){this._values=e}return e.prototype.hasChanged=function(e){return this._values[e]},e}(),c=function(){function e(){this._values=[]}return e.prototype._read=function(e){return this._values[e]},e.prototype.get=function(e){return this._values[e]},e.prototype._write=function(e,t){this._values[e]=t},e}(),d=function(){function e(e,t,n,i){this.id=e,this.name=t,this.defaultValue=n,this.schema=i}return e.prototype.compute=function(e,t,n){return n},e}(),h=function(){function e(e,t){void 0===t&&(t=null),this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0,this.deps=t}return e.prototype.validate=function(e){return this.defaultValue},e}(),f=function(){function e(e,t,n,i){this.id=e,this.name=t,this.defaultValue=n,this.schema=i}return e.prototype.validate=function(e){return"undefined"===typeof e?this.defaultValue:e},e.prototype.compute=function(e,t,n){return n},e}(),p=function(e){function t(t,n,i,r){void 0===r&&(r=void 0);var o=this;return"undefined"!==typeof r&&(r.type="boolean",r.default=i),o=e.call(this,t,n,i,r)||this,o}return s(t,e),t.boolean=function(e,t){return"undefined"===typeof e?t:"false"!==e&&Boolean(e)},t.prototype.validate=function(e){return t.boolean(e,this.defaultValue)},t}(f),g=function(e){function t(t,n,i,r,o,s){void 0===s&&(s=void 0);var a=this;return"undefined"!==typeof s&&(s.type="integer",s.default=i,s.minimum=r,s.maximum=o),a=e.call(this,t,n,i,s)||this,a.minimum=r,a.maximum=o,a}return s(t,e),t.clampedInt=function(e,t,n,i){var r;return"undefined"===typeof e?r=t:(r=parseInt(e,10),isNaN(r)&&(r=t)),r=Math.max(n,r),r=Math.min(i,r),0|r},t.prototype.validate=function(e){return t.clampedInt(e,this.defaultValue,this.minimum,this.maximum)},t}(f),A=function(e){function t(t,n,i,r,o){var s=this;return"undefined"!==typeof o&&(o.type="number",o.default=i),s=e.call(this,t,n,i,o)||this,s.validationFn=r,s}return s(t,e),t.clamp=function(e,t,n){return e<t?t:e>n?n:e},t.float=function(e,t){if("number"===typeof e)return e;if("undefined"===typeof e)return t;var n=parseFloat(e);return isNaN(n)?t:n},t.prototype.validate=function(e){return this.validationFn(t.float(e,this.defaultValue))},t}(f),m=function(e){function t(t,n,i,r){void 0===r&&(r=void 0);var o=this;return"undefined"!==typeof r&&(r.type="string",r.default=i),o=e.call(this,t,n,i,r)||this,o}return s(t,e),t.string=function(e,t){return"string"!==typeof e?t:e},t.prototype.validate=function(e){return t.string(e,this.defaultValue)},t}(f),v=function(e){function t(t,n,i,r,o){void 0===o&&(o=void 0);var s=this;return"undefined"!==typeof o&&(o.type="string",o.enum=r,o.default=i),s=e.call(this,t,n,i,o)||this,s._allowedValues=r,s}return s(t,e),t.stringSet=function(e,t,n){return"string"!==typeof e||-1===n.indexOf(e)?t:e},t.prototype.validate=function(e){return t.stringSet(e,this.defaultValue,this._allowedValues)},t}(f),_=function(e){function t(t,n,i,r,o,s,a){void 0===a&&(a=void 0);var u=this;return"undefined"!==typeof a&&(a.type="string",a.enum=o,a.default=r),u=e.call(this,t,n,i,a)||this,u._allowedValues=o,u._convert=s,u}return s(t,e),t.prototype.validate=function(e){return"string"!==typeof e||-1===this._allowedValues.indexOf(e)?this.defaultValue:this._convert(e)},t}(d);function y(e){switch(e){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}var b,w=function(e){function t(){return e.call(this,2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[i["a"]("accessibilitySupport.auto","The editor will use platform APIs to detect when a Screen Reader is attached."),i["a"]("accessibilitySupport.on","The editor will be permanently optimized for usage with a Screen Reader."),i["a"]("accessibilitySupport.off","The editor will never be optimized for usage with a Screen Reader.")],default:"auto",description:i["a"]("accessibilitySupport","Controls whether the editor should run in a mode where it is optimized for screen readers.")})||this}return s(t,e),t.prototype.validate=function(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue},t.prototype.compute=function(e,t,n){return 0===n?e.accessibilitySupport:n},t}(d),C=function(e){function t(){var t=this,n={insertSpace:!0};return t=e.call(this,13,"comments",n,{"editor.comments.insertSpace":{type:"boolean",default:n.insertSpace,description:i["a"]("comments.insertSpace","Controls whether a space character is inserted when commenting.")}})||this,t}return s(t,e),t.prototype.validate=function(e){if("object"!==typeof e)return this.defaultValue;var t=e;return{insertSpace:p.boolean(t.insertSpace,this.defaultValue.insertSpace)}},t}(d);function S(e){switch(e){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}function N(e){switch(e){case"line":return b.Line;case"block":return b.Block;case"underline":return b.Underline;case"line-thin":return b.LineThin;case"block-outline":return b.BlockOutline;case"underline-thin":return b.UnderlineThin}}(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"})(b||(b={}));var L=function(e){function t(){return e.call(this,104,[55,26])||this}return s(t,e),t.prototype.compute=function(e,t,n){var i="monaco-editor";return t.get(26)&&(i+=" "+t.get(26)),e.extraEditorClassName&&(i+=" "+e.extraEditorClassName),"default"===t.get(55)?i+=" mouse-default":"copy"===t.get(55)&&(i+=" mouse-copy"),t.get(85)&&(i+=" showUnused"),i},t}(h),E=function(e){function t(){return e.call(this,25,"emptySelectionClipboard",!0,{description:i["a"]("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})||this}return s(t,e),t.prototype.compute=function(e,t,n){return n&&e.emptySelectionClipboard},t}(p),x=function(e){function t(){var t=this,n={seedSearchStringFromSelection:!0,autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0};return t=e.call(this,28,"find",n,{"editor.find.seedSearchStringFromSelection":{type:"boolean",default:n.seedSearchStringFromSelection,description:i["a"]("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:n.autoFindInSelection,enumDescriptions:[i["a"]("editor.find.autoFindInSelection.never","Never turn on Find in selection automatically (default)"),i["a"]("editor.find.autoFindInSelection.always","Always turn on Find in selection automatically"),i["a"]("editor.find.autoFindInSelection.multiline","Turn on Find in selection automatically when multiple lines of content are selected.")],description:i["a"]("find.autoFindInSelection","Controls whether the find operation is carried out on selected text or the entire file in the editor.")},"editor.find.globalFindClipboard":{type:"boolean",default:n.globalFindClipboard,description:i["a"]("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:r["e"]},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:n.addExtraSpaceOnTop,description:i["a"]("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.")}})||this,t}return s(t,e),t.prototype.validate=function(e){if("object"!==typeof e)return this.defaultValue;var t=e;return{seedSearchStringFromSelection:p.boolean(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection),autoFindInSelection:"boolean"===typeof e.autoFindInSelection?e.autoFindInSelection?"always":"never":v.stringSet(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:p.boolean(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:p.boolean(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop)}},t}(d),O=function(e){function t(){return e.call(this,35,"fontLigatures",t.OFF,{anyOf:[{type:"boolean",description:i["a"]("fontLigatures","Enables/Disables font ligatures.")},{type:"string",description:i["a"]("fontFeatureSettings","Explicit font-feature-settings.")}],description:i["a"]("fontLigaturesGeneral","Configures font ligatures."),default:!1})||this}return s(t,e),t.prototype.validate=function(e){return"undefined"===typeof e?this.defaultValue:"string"===typeof e?"false"===e?t.OFF:"true"===e?t.ON:e:Boolean(e)?t.ON:t.OFF},t.OFF='"liga" off, "calt" off',t.ON='"liga" on, "calt" on',t}(d),B=function(e){function t(){return e.call(this,34)||this}return s(t,e),t.prototype.compute=function(e,t,n){return e.fontInfo},t}(h),k=function(e){function t(){return e.call(this,36,"fontSize",ee.fontSize,{type:"number",minimum:6,maximum:100,default:ee.fontSize,description:i["a"]("fontSize","Controls the font size in pixels.")})||this}return s(t,e),t.prototype.validate=function(e){var t=A.float(e,this.defaultValue);return 0===t?ee.fontSize:A.clamp(t,6,100)},t.prototype.compute=function(e,t,n){return e.fontInfo.fontSize},t}(f),D=function(e){function t(){var t=this,n={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:""},r={type:"string",enum:["peek","gotoAndPeek","goto"],default:n.multiple,enumDescriptions:[i["a"]("editor.gotoLocation.multiple.peek","Show peek view of the results (default)"),i["a"]("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a peek view"),i["a"]("editor.gotoLocation.multiple.goto","Go to the primary result and enable peek-less navigation to others")]};return t=e.call(this,41,"gotoLocation",n,{"editor.gotoLocation.multiple":{deprecationMessage:i["a"]("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":a({description:i["a"]("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},r),"editor.gotoLocation.multipleTypeDefinitions":a({description:i["a"]("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},r),"editor.gotoLocation.multipleDeclarations":a({description:i["a"]("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},r),"editor.gotoLocation.multipleImplementations":a({description:i["a"]("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},r),"editor.gotoLocation.multipleReferences":a({description:i["a"]("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist.")},r),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:n.alternativeDefinitionCommand,description:i["a"]("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:n.alternativeTypeDefinitionCommand,description:i["a"]("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:n.alternativeDeclarationCommand,description:i["a"]("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:n.alternativeImplementationCommand,description:i["a"]("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:n.alternativeReferenceCommand,description:i["a"]("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})||this,t}return s(t,e),t.prototype.validate=function(e){var t,n,i,r,o;if("object"!==typeof e)return this.defaultValue;var s=e;return{multiple:v.stringSet(s.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:null!==(t=s.multipleDefinitions)&&void 0!==t?t:v.stringSet(s.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:null!==(n=s.multipleTypeDefinitions)&&void 0!==n?n:v.stringSet(s.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:null!==(i=s.multipleDeclarations)&&void 0!==i?i:v.stringSet(s.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:null!==(r=s.multipleImplementations)&&void 0!==r?r:v.stringSet(s.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:null!==(o=s.multipleReferences)&&void 0!==o?o:v.stringSet(s.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:m.string(s.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:m.string(s.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:m.string(s.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:m.string(s.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:m.string(s.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}},t}(d),I=function(e){function t(){var t=this,n={enabled:!0,delay:300,sticky:!0};return t=e.call(this,44,"hover",n,{"editor.hover.enabled":{type:"boolean",default:n.enabled,description:i["a"]("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:n.delay,description:i["a"]("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:n.sticky,description:i["a"]("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")}})||this,t}return s(t,e),t.prototype.validate=function(e){if("object"!==typeof e)return this.defaultValue;var t=e;return{enabled:p.boolean(t.enabled,this.defaultValue.enabled),delay:g.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:p.boolean(t.sticky,this.defaultValue.sticky)}},t}(d),M=function(e){function t(){return e.call(this,107,[40,48,30,54,78,50])||this}return s(t,e),t.prototype.compute=function(e,n,i){return t.computeLayout(n,{outerWidth:e.outerWidth,outerHeight:e.outerHeight,lineHeight:e.fontInfo.lineHeight,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio})},t.computeLayout=function(e,t){var n,i=0|t.outerWidth,r=0|t.outerHeight,o=0|t.lineHeight,s=0|t.lineNumbersDigitCount,a=t.typicalHalfwidthCharacterWidth,l=t.maxDigitWidth,c=t.pixelRatio,d=e.get(40),h=0!==e.get(50).renderType,f=0|e.get(51),p=e.get(54),A=p.enabled,m=p.side,v=p.renderCharacters,_=c>=2?Math.round(2*p.scale):p.scale,y=0|p.maxColumn,b=e.get(78),w=0|b.verticalScrollbarSize,C=b.verticalHasArrows,S=0|b.arrowSize,N=0|b.horizontalScrollbarSize,L=e.get(48),E=e.get(30);if("string"===typeof L&&/^\d+(\.\d+)?ch$/.test(L)){var x=parseFloat(L.substr(0,L.length-2));n=g.clampedInt(x*a,0,0,1e3)}else n=g.clampedInt(L,0,0,1e3);E&&(n+=16);var O=0;if(h){var B=Math.max(s,f);O=Math.round(B*l)}var k=0;d&&(k=o);var D,I,M,F,T=0,R=T+k,P=R+O,U=P+n,H=i-k-O-n;if(A){var j=_/c;D=v?1:2,M=Math.max(0,Math.floor((H-w-2)*j/(a+j)))+u;var Q=M/j;Q>y&&(M=Math.floor(y*j)),F=H-M,"left"===m?(I=0,T+=M,R+=M,P+=M,U+=M):I=i-M-w}else I=0,M=0,D=0,F=H;var V=Math.max(1,Math.floor((F-w-2)/a)),W=C?S:0;return{width:i,height:r,glyphMarginLeft:T,glyphMarginWidth:k,lineNumbersLeft:R,lineNumbersWidth:O,decorationsLeft:P,decorationsWidth:n,contentLeft:U,contentWidth:F,renderMinimap:D,minimapLeft:I,minimapWidth:M,viewportColumn:V,verticalScrollbarWidth:w,horizontalScrollbarHeight:N,overviewRuler:{top:W,width:w,height:r-2*W,right:0}}},t}(h),F=function(e){function t(){var t=this,n={enabled:!0};return t=e.call(this,47,"lightbulb",n,{"editor.lightbulb.enabled":{type:"boolean",default:n.enabled,description:i["a"]("codeActions","Enables the code action lightbulb in the editor.")}})||this,t}return s(t,e),t.prototype.validate=function(e){if("object"!==typeof e)return this.defaultValue;var t=e;return{enabled:p.boolean(t.enabled,this.defaultValue.enabled)}},t}(d),T=function(e){function t(){return e.call(this,49,"lineHeight",ee.lineHeight,0,150,{description:i["a"]("lineHeight","Controls the line height. Use 0 to compute the line height from the font size.")})||this}return s(t,e),t.prototype.compute=function(e,t,n){return e.fontInfo.lineHeight},t}(g),R=function(e){function t(){var t=this,n={enabled:!0,side:"right",showSlider:"mouseover",renderCharacters:!0,maxColumn:120,scale:1};return t=e.call(this,54,"minimap",n,{"editor.minimap.enabled":{type:"boolean",default:n.enabled,description:i["a"]("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:n.side,description:i["a"]("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:n.showSlider,description:i["a"]("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:n.scale,minimum:1,maximum:3,description:i["a"]("minimap.scale","Scale of content drawn in the minimap.")},"editor.minimap.renderCharacters":{type:"boolean",default:n.renderCharacters,description:i["a"]("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:n.maxColumn,description:i["a"]("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")}})||this,t}return s(t,e),t.prototype.validate=function(e){if("object"!==typeof e)return this.defaultValue;var t=e;return{enabled:p.boolean(t.enabled,this.defaultValue.enabled),side:v.stringSet(t.side,this.defaultValue.side,["right","left"]),showSlider:v.stringSet(t.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:p.boolean(t.renderCharacters,this.defaultValue.renderCharacters),scale:g.clampedInt(t.scale,1,1,3),maxColumn:g.clampedInt(t.maxColumn,this.defaultValue.maxColumn,1,1e4)}},t}(d);function P(e){return"ctrlCmd"===e?r["e"]?"metaKey":"ctrlKey":"altKey"}var U=function(e){function t(){var t=this,n={enabled:!0,cycle:!1};return t=e.call(this,64,"parameterHints",n,{"editor.parameterHints.enabled":{type:"boolean",default:n.enabled,description:i["a"]("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:n.cycle,description:i["a"]("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})||this,t}return s(t,e),t.prototype.validate=function(e){if("object"!==typeof e)return this.defaultValue;var t=e;return{enabled:p.boolean(t.enabled,this.defaultValue.enabled),cycle:p.boolean(t.cycle,this.defaultValue.cycle)}},t}(d),H=function(e){function t(){return e.call(this,105)||this}return s(t,e),t.prototype.compute=function(e,t,n){return e.pixelRatio},t}(h),j=function(e){function t(){var t=this,n={other:!0,comments:!1,strings:!1};return t=e.call(this,66,"quickSuggestions",n,{anyOf:[{type:"boolean"},{type:"object",properties:{strings:{type:"boolean",default:n.strings,description:i["a"]("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{type:"boolean",default:n.comments,description:i["a"]("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{type:"boolean",default:n.other,description:i["a"]("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}}}],default:n,description:i["a"]("quickSuggestions","Controls whether suggestions should automatically show up while typing.")})||this,t.defaultValue=n,t}return s(t,e),t.prototype.validate=function(e){if("boolean"===typeof e)return e;if("object"===typeof e){var t=e,n={other:p.boolean(t.other,this.defaultValue.other),comments:p.boolean(t.comments,this.defaultValue.comments),strings:p.boolean(t.strings,this.defaultValue.strings)};return!!(n.other&&n.comments&&n.strings)||!!(n.other||n.comments||n.strings)&&n}return this.defaultValue},t}(d),Q=function(e){function t(){return e.call(this,50,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[i["a"]("lineNumbers.off","Line numbers are not rendered."),i["a"]("lineNumbers.on","Line numbers are rendered as absolute number."),i["a"]("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),i["a"]("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:i["a"]("lineNumbers","Controls the display of line numbers.")})||this}return s(t,e),t.prototype.validate=function(e){var t=this.defaultValue.renderType,n=this.defaultValue.renderFn;return"undefined"!==typeof e&&("function"===typeof e?(t=4,n=e):t="interval"===e?3:"relative"===e?2:"on"===e?1:0),{renderType:t,renderFn:n}},t}(d);function V(e){var t=e.get(73);return"editable"===t?e.get(68):"on"!==t}var W=function(e){function t(){var t=this,n=[];return t=e.call(this,77,"rulers",n,{type:"array",items:{type:"number"},default:n,description:i["a"]("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.")})||this,t}return s(t,e),t.prototype.validate=function(e){if(Array.isArray(e)){for(var t=[],n=0,i=e;n<i.length;n++){var r=i[n];t.push(g.clampedInt(r,0,0,1e4))}return t.sort((function(e,t){return e-t})),t}return this.defaultValue},t}(f);function z(e,t){if("string"!==typeof e)return t;switch(e){case"hidden":return 2;case"visible":return 3;default:return 1}}var K=function(e){function t(){return e.call(this,78,"scrollbar",{vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:10,horizontalSliderSize:10,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0})||this}return s(t,e),t.prototype.validate=function(e){if("object"!==typeof e)return this.defaultValue;var t=e,n=g.clampedInt(t.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),i=g.clampedInt(t.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:g.clampedInt(t.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:z(t.vertical,this.defaultValue.vertical),horizontal:z(t.horizontal,this.defaultValue.horizontal),useShadows:p.boolean(t.useShadows,this.defaultValue.useShadows),verticalHasArrows:p.boolean(t.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:p.boolean(t.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:p.boolean(t.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:p.boolean(t.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:n,horizontalSliderSize:g.clampedInt(t.horizontalSliderSize,n,0,1e3),verticalScrollbarSize:i,verticalSliderSize:g.clampedInt(t.verticalSliderSize,i,0,1e3)}},t}(d),q=function(e){function t(){var t=this,n={insertMode:"insert",insertHighlight:!1,filterGraceful:!0,snippetsPreventQuickSuggestions:!0,localityBonus:!1,shareSuggestSelections:!1,showIcons:!0,maxVisibleSuggestions:12,showMethods:!0,showFunctions:!0,showConstructors:!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,hideStatusBar:!0};return t=e.call(this,89,"suggest",n,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[i["a"]("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),i["a"]("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:n.insertMode,description:i["a"]("suggest.insertMode","Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")},"editor.suggest.insertHighlight":{type:"boolean",default:n.insertHighlight,description:i["a"]("suggest.insertHighlight","Controls whether unexpected text modifications while accepting completions should be highlighted, e.g `insertMode` is `replace` but the completion only supports `insert`.")},"editor.suggest.filterGraceful":{type:"boolean",default:n.filterGraceful,description:i["a"]("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:n.localityBonus,description:i["a"]("suggest.localityBonus","Controls whether sorting favours words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:n.shareSuggestSelections,markdownDescription:i["a"]("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:n.snippetsPreventQuickSuggestions,description:i["a"]("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:n.showIcons,description:i["a"]("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.maxVisibleSuggestions":{type:"number",default:n.maxVisibleSuggestions,minimum:1,maximum:15,description:i["a"]("suggest.maxVisibleSuggestions","Controls how many suggestions IntelliSense will show before showing a scrollbar (maximum 15).")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:i["a"]("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:i["a"]("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:i["a"]("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:i["a"]("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:i["a"]("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:i["a"]("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:i["a"]("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:i["a"]("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:i["a"]("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:i["a"]("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:i["a"]("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:i["a"]("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:i["a"]("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:i["a"]("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:i["a"]("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:i["a"]("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:i["a"]("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:i["a"]("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:i["a"]("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:i["a"]("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:i["a"]("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:i["a"]("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:i["a"]("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:i["a"]("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:i["a"]("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:i["a"]("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:i["a"]("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.hideStatusBar":{type:"boolean",default:!0,markdownDescription:i["a"]("editor.suggest.hideStatusBar","Controls the visibility of the status bar at the bottom of the suggest widget.")}})||this,t}return s(t,e),t.prototype.validate=function(e){if("object"!==typeof e)return this.defaultValue;var t=e;return{insertMode:v.stringSet(t.insertMode,this.defaultValue.insertMode,["insert","replace"]),insertHighlight:p.boolean(t.insertHighlight,this.defaultValue.insertHighlight),filterGraceful:p.boolean(t.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:p.boolean(t.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:p.boolean(t.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:p.boolean(t.shareSuggestSelections,this.defaultValue.shareSuggestSelections),showIcons:p.boolean(t.showIcons,this.defaultValue.showIcons),maxVisibleSuggestions:g.clampedInt(t.maxVisibleSuggestions,this.defaultValue.maxVisibleSuggestions,1,15),showMethods:p.boolean(t.showMethods,this.defaultValue.showMethods),showFunctions:p.boolean(t.showFunctions,this.defaultValue.showFunctions),showConstructors:p.boolean(t.showConstructors,this.defaultValue.showConstructors),showFields:p.boolean(t.showFields,this.defaultValue.showFields),showVariables:p.boolean(t.showVariables,this.defaultValue.showVariables),showClasses:p.boolean(t.showClasses,this.defaultValue.showClasses),showStructs:p.boolean(t.showStructs,this.defaultValue.showStructs),showInterfaces:p.boolean(t.showInterfaces,this.defaultValue.showInterfaces),showModules:p.boolean(t.showModules,this.defaultValue.showModules),showProperties:p.boolean(t.showProperties,this.defaultValue.showProperties),showEvents:p.boolean(t.showEvents,this.defaultValue.showEvents),showOperators:p.boolean(t.showOperators,this.defaultValue.showOperators),showUnits:p.boolean(t.showUnits,this.defaultValue.showUnits),showValues:p.boolean(t.showValues,this.defaultValue.showValues),showConstants:p.boolean(t.showConstants,this.defaultValue.showConstants),showEnums:p.boolean(t.showEnums,this.defaultValue.showEnums),showEnumMembers:p.boolean(t.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:p.boolean(t.showKeywords,this.defaultValue.showKeywords),showWords:p.boolean(t.showWords,this.defaultValue.showWords),showColors:p.boolean(t.showColors,this.defaultValue.showColors),showFiles:p.boolean(t.showFiles,this.defaultValue.showFiles),showReferences:p.boolean(t.showReferences,this.defaultValue.showReferences),showFolders:p.boolean(t.showFolders,this.defaultValue.showFolders),showTypeParameters:p.boolean(t.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:p.boolean(t.showSnippets,this.defaultValue.showSnippets),hideStatusBar:p.boolean(t.hideStatusBar,this.defaultValue.hideStatusBar)}},t}(d),G=function(e){function t(){return e.call(this,106,[68])||this}return s(t,e),t.prototype.compute=function(e,t,n){var i=t.get(68);return!!i||e.tabFocusMode},t}(h);function X(e){switch(e){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}}var Y=function(e){function t(){return e.call(this,108,[97,100,101,107,2])||this}return s(t,e),t.prototype.compute=function(e,t,n){var i=t.get(97),r=t.get(100),o=t.get(101),s=t.get(107),a=t.get(2),u=null;return u=2===a?{isWordWrapMinified:!1,isViewportWrapping:!1,wrappingColumn:-1}:o&&e.isDominatedByLongLines?{isWordWrapMinified:!0,isViewportWrapping:!0,wrappingColumn:Math.max(1,s.viewportColumn)}:"on"===i?{isWordWrapMinified:!1,isViewportWrapping:!0,wrappingColumn:Math.max(1,s.viewportColumn)}:"bounded"===i?{isWordWrapMinified:!1,isViewportWrapping:!0,wrappingColumn:Math.min(Math.max(1,s.viewportColumn),r)}:"wordWrapColumn"===i?{isWordWrapMinified:!1,isViewportWrapping:!1,wrappingColumn:r}:{isWordWrapMinified:!1,isViewportWrapping:!1,wrappingColumn:-1},{isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:u.isWordWrapMinified,isViewportWrapping:u.isViewportWrapping,wrappingColumn:u.wrappingColumn}},t}(h),J="Consolas, 'Courier New', monospace",Z="Menlo, Monaco, 'Courier New', monospace",$="'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'",ee={fontFamily:r["e"]?Z:r["d"]?$:J,fontWeight:"normal",fontSize:r["e"]?12:14,lineHeight:0,letterSpacing:0},te={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0},ne=[];function ie(e){return ne[e.id]=e,e}var re={acceptSuggestionOnCommitCharacter:ie(new p(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:i["a"]("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:ie(new v(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",i["a"]("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:i["a"]("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:ie(new w),accessibilityPageSize:ie(new g(3,"accessibilityPageSize",10,1,1073741824,{description:i["a"]("accessibilityPageSize","Controls the number of lines in the editor that can be read out by a screen reader. Warning: this has a performance implication for numbers larger than the default.")})),ariaLabel:ie(new m(4,"ariaLabel",i["a"]("editorViewAccessibleLabel","Editor content"))),autoClosingBrackets:ie(new v(5,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",i["a"]("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),i["a"]("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:i["a"]("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingOvertype:ie(new v(6,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",i["a"]("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:i["a"]("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:ie(new v(7,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",i["a"]("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),i["a"]("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:i["a"]("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:ie(new _(8,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],y,{enumDescriptions:[i["a"]("editor.autoIndent.none","The editor will not insert indentation automatically."),i["a"]("editor.autoIndent.keep","The editor will keep the current line's indentation."),i["a"]("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),i["a"]("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),i["a"]("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:i["a"]("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:ie(new p(9,"automaticLayout",!1)),autoSurround:ie(new v(10,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[i["a"]("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),i["a"]("editor.autoSurround.quotes","Surround with quotes but not brackets."),i["a"]("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:i["a"]("autoSurround","Controls whether the editor should automatically surround selections.")})),codeLens:ie(new p(11,"codeLens",!0,{description:i["a"]("codeLens","Controls whether the editor shows CodeLens.")})),colorDecorators:ie(new p(12,"colorDecorators",!0,{description:i["a"]("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),comments:ie(new C),contextmenu:ie(new p(14,"contextmenu",!0)),copyWithSyntaxHighlighting:ie(new p(15,"copyWithSyntaxHighlighting",!0,{description:i["a"]("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:ie(new _(16,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],S,{description:i["a"]("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:ie(new p(17,"cursorSmoothCaretAnimation",!1,{description:i["a"]("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:ie(new _(18,"cursorStyle",b.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],N,{description:i["a"]("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:ie(new g(19,"cursorSurroundingLines",0,0,1073741824,{description:i["a"]("cursorSurroundingLines","Controls the minimal number of visible leading and trailing lines surrounding the cursor. Known as 'scrollOff' or `scrollOffset` in some other editors.")})),cursorSurroundingLinesStyle:ie(new v(20,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[i["a"]("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),i["a"]("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],description:i["a"]("cursorSurroundingLinesStyle","Controls when `cursorSurroundingLines` should be enforced.")})),cursorWidth:ie(new g(21,"cursorWidth",0,0,1073741824,{markdownDescription:i["a"]("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:ie(new p(22,"disableLayerHinting",!1)),disableMonospaceOptimizations:ie(new p(23,"disableMonospaceOptimizations",!1)),dragAndDrop:ie(new p(24,"dragAndDrop",!0,{description:i["a"]("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:ie(new E),extraEditorClassName:ie(new m(26,"extraEditorClassName","")),fastScrollSensitivity:ie(new A(27,"fastScrollSensitivity",5,(function(e){return e<=0?5:e}),{markdownDescription:i["a"]("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:ie(new x),fixedOverflowWidgets:ie(new p(29,"fixedOverflowWidgets",!1)),folding:ie(new p(30,"folding",!0,{description:i["a"]("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:ie(new v(31,"foldingStrategy","auto",["auto","indentation"],{markdownDescription:i["a"]("foldingStrategy","Controls the strategy for computing folding ranges. `auto` uses a language specific folding strategy, if available. `indentation` uses the indentation based folding strategy.")})),foldingHighlight:ie(new p(32,"foldingHighlight",!0,{description:i["a"]("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),fontFamily:ie(new m(33,"fontFamily",ee.fontFamily,{description:i["a"]("fontFamily","Controls the font family.")})),fontInfo:ie(new B),fontLigatures2:ie(new O),fontSize:ie(new k),fontWeight:ie(new m(37,"fontWeight",ee.fontWeight,{enum:["normal","bold","100","200","300","400","500","600","700","800","900"],description:i["a"]("fontWeight","Controls the font weight.")})),formatOnPaste:ie(new p(38,"formatOnPaste",!1,{description:i["a"]("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:ie(new p(39,"formatOnType",!1,{description:i["a"]("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:ie(new p(40,"glyphMargin",!0,{description:i["a"]("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:ie(new D),hideCursorInOverviewRuler:ie(new p(42,"hideCursorInOverviewRuler",!1,{description:i["a"]("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),highlightActiveIndentGuide:ie(new p(43,"highlightActiveIndentGuide",!0,{description:i["a"]("highlightActiveIndentGuide","Controls whether the editor should highlight the active indent guide.")})),hover:ie(new I),inDiffEditor:ie(new p(45,"inDiffEditor",!1)),letterSpacing:ie(new A(46,"letterSpacing",ee.letterSpacing,(function(e){return A.clamp(e,-5,20)}),{description:i["a"]("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:ie(new F),lineDecorationsWidth:ie(new f(48,"lineDecorationsWidth",10)),lineHeight:ie(new T),lineNumbers:ie(new Q),lineNumbersMinChars:ie(new g(51,"lineNumbersMinChars",5,1,300)),links:ie(new p(52,"links",!0,{description:i["a"]("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:ie(new v(53,"matchBrackets","always",["always","near","never"],{description:i["a"]("matchBrackets","Highlight matching brackets.")})),minimap:ie(new R),mouseStyle:ie(new v(55,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:ie(new A(56,"mouseWheelScrollSensitivity",1,(function(e){return 0===e?1:e}),{markdownDescription:i["a"]("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:ie(new p(57,"mouseWheelZoom",!1,{markdownDescription:i["a"]("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:ie(new p(58,"multiCursorMergeOverlapping",!0,{description:i["a"]("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:ie(new _(59,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],P,{markdownEnumDescriptions:[i["a"]("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),i["a"]("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:i["a"]({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:ie(new v(60,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[i["a"]("multiCursorPaste.spread","Each cursor pastes a single line of the text."),i["a"]("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:i["a"]("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),occurrencesHighlight:ie(new p(61,"occurrencesHighlight",!0,{description:i["a"]("occurrencesHighlight","Controls whether the editor should highlight semantic symbol occurrences.")})),overviewRulerBorder:ie(new p(62,"overviewRulerBorder",!0,{description:i["a"]("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:ie(new g(63,"overviewRulerLanes",3,0,3)),parameterHints:ie(new U),peekWidgetDefaultFocus:ie(new v(65,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[i["a"]("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),i["a"]("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:i["a"]("peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),quickSuggestions:ie(new j),quickSuggestionsDelay:ie(new g(67,"quickSuggestionsDelay",10,0,1073741824,{description:i["a"]("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:ie(new p(68,"readOnly",!1)),renderControlCharacters:ie(new p(69,"renderControlCharacters",!1,{description:i["a"]("renderControlCharacters","Controls whether the editor should render control characters.")})),renderIndentGuides:ie(new p(70,"renderIndentGuides",!0,{description:i["a"]("renderIndentGuides","Controls whether the editor should render indent guides.")})),renderFinalNewline:ie(new p(71,"renderFinalNewline",!0,{description:i["a"]("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:ie(new v(72,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",i["a"]("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:i["a"]("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderValidationDecorations:ie(new v(73,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:ie(new v(74,"renderWhitespace","none",["none","boundary","selection","all"],{enumDescriptions:["",i["a"]("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),i["a"]("renderWhitespace.selection","Render whitespace characters only on selected text."),""],description:i["a"]("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:ie(new g(75,"revealHorizontalRightPadding",30,0,1e3)),roundedSelection:ie(new p(76,"roundedSelection",!0,{description:i["a"]("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:ie(new W),scrollbar:ie(new K),scrollBeyondLastColumn:ie(new g(79,"scrollBeyondLastColumn",5,0,1073741824,{description:i["a"]("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:ie(new p(80,"scrollBeyondLastLine",!0,{description:i["a"]("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),selectionClipboard:ie(new p(81,"selectionClipboard",!0,{description:i["a"]("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:r["d"]})),selectionHighlight:ie(new p(82,"selectionHighlight",!0,{description:i["a"]("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:ie(new p(83,"selectOnLineNumbers",!0)),showFoldingControls:ie(new v(84,"showFoldingControls","mouseover",["always","mouseover"],{description:i["a"]("showFoldingControls","Controls whether the fold controls on the gutter are automatically hidden.")})),showUnused:ie(new p(85,"showUnused",!0,{description:i["a"]("showUnused","Controls fading out of unused code.")})),snippetSuggestions:ie(new v(86,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[i["a"]("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),i["a"]("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),i["a"]("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),i["a"]("snippetSuggestions.none","Do not show snippet suggestions.")],description:i["a"]("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smoothScrolling:ie(new p(87,"smoothScrolling",!1,{description:i["a"]("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:ie(new g(88,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:ie(new q),suggestFontSize:ie(new g(90,"suggestFontSize",0,0,1e3,{markdownDescription:i["a"]("suggestFontSize","Font size for the suggest widget. When set to `0`, the value of `#editor.fontSize#` is used.")})),suggestLineHeight:ie(new g(91,"suggestLineHeight",0,0,1e3,{markdownDescription:i["a"]("suggestLineHeight","Line height for the suggest widget. When set to `0`, the value of `#editor.lineHeight#` is used.")})),suggestOnTriggerCharacters:ie(new p(92,"suggestOnTriggerCharacters",!0,{description:i["a"]("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:ie(new v(93,"suggestSelection","recentlyUsed",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[i["a"]("suggestSelection.first","Always select the first suggestion."),i["a"]("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),i["a"]("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:i["a"]("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:ie(new v(94,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[i["a"]("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),i["a"]("tabCompletion.off","Disable tab completions."),i["a"]("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:i["a"]("tabCompletion","Enables tab completions.")})),useTabStops:ie(new p(95,"useTabStops",!0,{description:i["a"]("useTabStops","Inserting and deleting whitespace follows tab stops.")})),wordSeparators:ie(new m(96,"wordSeparators",o["b"],{description:i["a"]("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:ie(new v(97,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[i["a"]("wordWrap.off","Lines will never wrap."),i["a"]("wordWrap.on","Lines will wrap at the viewport width."),i["a"]({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),i["a"]({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:i["a"]({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:ie(new m(98,"wordWrapBreakAfterCharacters"," \t})]?|/&.,;\xa2\xb0\u2032\u2033\u2030\u2103\u3001\u3002\uff61\uff64\uffe0\uff0c\uff0e\uff1a\uff1b\uff1f\uff01\uff05\u30fb\uff65\u309d\u309e\u30fd\u30fe\u30fc\u30a1\u30a3\u30a5\u30a7\u30a9\u30c3\u30e3\u30e5\u30e7\u30ee\u30f5\u30f6\u3041\u3043\u3045\u3047\u3049\u3063\u3083\u3085\u3087\u308e\u3095\u3096\u31f0\u31f1\u31f2\u31f3\u31f4\u31f5\u31f6\u31f7\u31f8\u31f9\u31fa\u31fb\u31fc\u31fd\u31fe\u31ff\u3005\u303b\uff67\uff68\uff69\uff6a\uff6b\uff6c\uff6d\uff6e\uff6f\uff70\u201d\u3009\u300b\u300d\u300f\u3011\u3015\uff09\uff3d\uff5d\uff63")),wordWrapBreakBeforeCharacters:ie(new m(99,"wordWrapBreakBeforeCharacters","([{\u2018\u201c\u3008\u300a\u300c\u300e\u3010\u3014\uff08\uff3b\uff5b\uff62\xa3\xa5\uff04\uffe1\uffe5+\uff0b")),wordWrapColumn:ie(new g(100,"wordWrapColumn",80,1,1073741824,{markdownDescription:i["a"]({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`.")})),wordWrapMinified:ie(new p(101,"wordWrapMinified",!0)),wrappingIndent:ie(new _(102,"wrappingIndent",1,"same",["none","same","indent","deepIndent"],X,{enumDescriptions:[i["a"]("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),i["a"]("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),i["a"]("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),i["a"]("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:i["a"]("wrappingIndent","Controls the indentation of wrapped lines.")})),wrappingStrategy:ie(new v(103,"wrappingStrategy","simple",["simple","advanced"],{enumDescriptions:[i["a"]("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."),i["a"]("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:i["a"]("wrappingStrategy","Controls the algorithm that computes wrapping points.")})),editorClassName:ie(new L),pixelRatio:ie(new H),tabFocusMode:ie(new G),layoutInfo:ie(new M),wrappingInfo:ie(new Y)}},"/cAr":function(e,t,n){"use strict";n.r(t);var i=n("+hIS");Object(i["a"])({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:function(){return n.e(164).then(n.bind(null,"8m5U"))}})},"/cxE":function(e,t,n){"use strict";n.d(t,"e",(function(){return o})),n.d(t,"f",(function(){return s})),n.d(t,"g",(function(){return a})),n.d(t,"d",(function(){return l})),n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return h}));var i=function(){function e(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout((function(){if(e.stack)throw new Error(e.message+"\n\n"+e.stack);throw e}),0)}}return e.prototype.emit=function(e){this.listeners.forEach((function(t){t(e)}))},e.prototype.onUnexpectedError=function(e){this.unexpectedErrorHandler(e),this.emit(e)},e.prototype.onUnexpectedExternalError=function(e){this.unexpectedErrorHandler(e)},e}(),r=new i;function o(e){l(e)||r.onUnexpectedError(e)}function s(e){l(e)||r.onUnexpectedExternalError(e)}function a(e){if(e instanceof Error){var t=e.name,n=e.message,i=e.stacktrace||e.stack;return{$isError:!0,name:t,message:n,stack:i}}return e}var u="Canceled";function l(e){return e instanceof Error&&e.name===u&&e.message===u}function c(){var e=new Error(u);return e.name=e.message,e}function d(e){return e?new Error("Illegal argument: "+e):new Error("Illegal argument")}function h(e){return e?new Error("Illegal state: "+e):new Error("Illegal state")}},"/kV6":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return l})),n.d(t,"f",(function(){return c})),n.d(t,"e",(function(){return h})),n.d(t,"d",(function(){return p})),n.d(t,"c",(function(){return g}));var i,r=n("/cxE"),o=function(){function e(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}return e.prototype.define=function(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e},e.prototype.keyCodeToStr=function(e){return this._keyCodeToStr[e]},e.prototype.strToKeyCode=function(e){return this._strToKeyCode[e.toLowerCase()]||0},e}(),s=new o,a=new o,u=new o;function l(e,t){var n=(65535&t)<<16>>>0;return(e|n)>>>0}function c(e,t){if(0===e)return null;var n=(65535&e)>>>0,i=(4294901760&e)>>>16;return new f(0!==i?[d(n,t),d(i,t)]:[d(n,t)])}function d(e,t){var n=!!(2048&e),i=!!(256&e),r=2===t?i:n,o=!!(1024&e),s=!!(512&e),a=2===t?n:i,u=255&e;return new h(r,o,s,a,u)}(function(){function e(e,t,n,i){void 0===n&&(n=t),void 0===i&&(i=n),s.define(e,t),a.define(e,n),u.define(e,i)}e(0,"unknown"),e(1,"Backspace"),e(2,"Tab"),e(3,"Enter"),e(4,"Shift"),e(5,"Ctrl"),e(6,"Alt"),e(7,"PauseBreak"),e(8,"CapsLock"),e(9,"Escape"),e(10,"Space"),e(11,"PageUp"),e(12,"PageDown"),e(13,"End"),e(14,"Home"),e(15,"LeftArrow","Left"),e(16,"UpArrow","Up"),e(17,"RightArrow","Right"),e(18,"DownArrow","Down"),e(19,"Insert"),e(20,"Delete"),e(21,"0"),e(22,"1"),e(23,"2"),e(24,"3"),e(25,"4"),e(26,"5"),e(27,"6"),e(28,"7"),e(29,"8"),e(30,"9"),e(31,"A"),e(32,"B"),e(33,"C"),e(34,"D"),e(35,"E"),e(36,"F"),e(37,"G"),e(38,"H"),e(39,"I"),e(40,"J"),e(41,"K"),e(42,"L"),e(43,"M"),e(44,"N"),e(45,"O"),e(46,"P"),e(47,"Q"),e(48,"R"),e(49,"S"),e(50,"T"),e(51,"U"),e(52,"V"),e(53,"W"),e(54,"X"),e(55,"Y"),e(56,"Z"),e(57,"Meta"),e(58,"ContextMenu"),e(59,"F1"),e(60,"F2"),e(61,"F3"),e(62,"F4"),e(63,"F5"),e(64,"F6"),e(65,"F7"),e(66,"F8"),e(67,"F9"),e(68,"F10"),e(69,"F11"),e(70,"F12"),e(71,"F13"),e(72,"F14"),e(73,"F15"),e(74,"F16"),e(75,"F17"),e(76,"F18"),e(77,"F19"),e(78,"NumLock"),e(79,"ScrollLock"),e(80,";",";","OEM_1"),e(81,"=","=","OEM_PLUS"),e(82,",",",","OEM_COMMA"),e(83,"-","-","OEM_MINUS"),e(84,".",".","OEM_PERIOD"),e(85,"/","/","OEM_2"),e(86,"`","`","OEM_3"),e(110,"ABNT_C1"),e(111,"ABNT_C2"),e(87,"[","[","OEM_4"),e(88,"\\","\\","OEM_5"),e(89,"]","]","OEM_6"),e(90,"'","'","OEM_7"),e(91,"OEM_8"),e(92,"OEM_102"),e(93,"NumPad0"),e(94,"NumPad1"),e(95,"NumPad2"),e(96,"NumPad3"),e(97,"NumPad4"),e(98,"NumPad5"),e(99,"NumPad6"),e(100,"NumPad7"),e(101,"NumPad8"),e(102,"NumPad9"),e(103,"NumPad_Multiply"),e(104,"NumPad_Add"),e(105,"NumPad_Separator"),e(106,"NumPad_Subtract"),e(107,"NumPad_Decimal"),e(108,"NumPad_Divide")})(),function(e){function t(e){return s.keyCodeToStr(e)}function n(e){return s.strToKeyCode(e)}function i(e){return a.keyCodeToStr(e)}function r(e){return u.keyCodeToStr(e)}function o(e){return a.strToKeyCode(e)||u.strToKeyCode(e)}e.toString=t,e.fromString=n,e.toUserSettingsUS=i,e.toUserSettingsGeneral=r,e.fromUserSettings=o}(i||(i={}));var h=function(){function e(e,t,n,i,r){this.ctrlKey=e,this.shiftKey=t,this.altKey=n,this.metaKey=i,this.keyCode=r}return e.prototype.equals=function(e){return this.ctrlKey===e.ctrlKey&&this.shiftKey===e.shiftKey&&this.altKey===e.altKey&&this.metaKey===e.metaKey&&this.keyCode===e.keyCode},e.prototype.isModifierKey=function(){return 0===this.keyCode||5===this.keyCode||57===this.keyCode||6===this.keyCode||4===this.keyCode},e.prototype.toChord=function(){return new f([this])},e.prototype.isDuplicateModifierCase=function(){return this.ctrlKey&&5===this.keyCode||this.shiftKey&&4===this.keyCode||this.altKey&&6===this.keyCode||this.metaKey&&57===this.keyCode},e}(),f=function(){function e(e){if(0===e.length)throw Object(r["b"])("parts");this.parts=e}return e.prototype.equals=function(e){if(null===e)return!1;if(this.parts.length!==e.parts.length)return!1;for(var t=0;t<this.parts.length;t++)if(!this.parts[t].equals(e.parts[t]))return!1;return!0},e}(),p=function(){function e(e,t,n,i,r,o){this.ctrlKey=e,this.shiftKey=t,this.altKey=n,this.metaKey=i,this.keyLabel=r,this.keyAriaLabel=o}return e}(),g=function(){function e(){}return e}()},"/oaI":function(e,t,n){},"0/Sa":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("aokT"),r=function(){function e(){}return e.insert=function(e,t){return{range:new i["a"](e.lineNumber,e.column,e.lineNumber,e.column),text:t,forceMoveMarkers:!0}},e.delete=function(e){return{range:e,text:null}},e.replace=function(e,t){return{range:e,text:t}},e.replaceMove=function(e,t){return{range:e,text:t,forceMoveMarkers:!0}},e}()},"09fa":function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return s}));var i,r=n("Cg/j"),o=Object(r["c"])("logService");(function(e){e[e["Trace"]=0]="Trace",e[e["Debug"]=1]="Debug",e[e["Info"]=2]="Info",e[e["Warning"]=3]="Warning",e[e["Error"]=4]="Error",e[e["Critical"]=5]="Critical",e[e["Off"]=6]="Off"})(i||(i={}));var s=function(){function e(){}return e.prototype.getLevel=function(){return i.Info},e.prototype.trace=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n]},e.prototype.error=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n]},e.prototype.dispose=function(){},e}()},"0JNc":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return l}));var i="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function r(e){void 0===e&&(e="");for(var t="(-?\\d*\\.\\d\\w*)|([^",n=0,r=i;n<r.length;n++){var o=r[n];e.indexOf(o)>=0||(t+="\\"+o)}return t+="\\s]+)",new RegExp(t,"g")}var o=r();function s(e){var t=o;if(e&&e instanceof RegExp)if(e.global)t=e;else{var n="g";e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.unicode&&(n+="u"),t=new RegExp(e.source,n)}return t.lastIndex=0,t}function a(e,t,n,i){var r,o=e-1-i,s=n.lastIndexOf(" ",o-1)+1;t.lastIndex=s;while(r=t.exec(n)){var a=r.index||0;if(a<=o&&t.lastIndex>=o)return{word:r[0],startColumn:i+1+a,endColumn:i+1+t.lastIndex}}return null}function u(e,t,n,i){var r,o=e-1-i;t.lastIndex=0;while(r=t.exec(n)){var s=r.index||0;if(s>o)return null;if(t.lastIndex>=o)return{word:r[0],startColumn:i+1+s,endColumn:i+1+t.lastIndex}}return null}function l(e,t,n,i){t.lastIndex=0;var r=t.exec(n);if(!r)return null;var o=r[0].indexOf(" ")>=0?u(e,t,n,i):a(e,t,n,i);return t.lastIndex=0,o}},"0oIH":function(e,t,n){"use strict";n.r(t);var i=n("+hIS");Object(i["a"])({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:function(){return n.e(154).then(n.bind(null,"Eg73"))}})},"1YUG":function(e,t,n){"use strict";n.r(t),n.d(t,"CoreEditorCommand",(function(){return B})),n.d(t,"EditorScroll_",(function(){return y})),n.d(t,"RevealLine_",(function(){return b})),n.d(t,"CoreNavigationCommands",(function(){return w})),n.d(t,"CoreEditingCommands",(function(){return C}));var i=n("3/fG"),r=n("746U"),o=n("sswD"),s=n("Vxe3"),a=n("Ll0s"),u=n("cGHE"),l=n("aokT"),c=function(){function e(){}return e.columnSelect=function(e,t,n,i,r,o){for(var s=Math.abs(r-n)+1,c=n>r,d=i>o,h=i<o,f=[],p=0;p<s;p++){var g=n+(c?-p:p),A=a["a"].columnFromVisibleColumn2(e,t,g,i),m=a["a"].columnFromVisibleColumn2(e,t,g,o),v=a["a"].visibleColumnFromColumn2(e,t,new u["a"](g,A)),_=a["a"].visibleColumnFromColumn2(e,t,new u["a"](g,m));if(h){if(v>o)continue;if(_<i)continue}if(d){if(_>i)continue;if(v<o)continue}f.push(new a["f"](new l["a"](g,A,g,A),0,new u["a"](g,m),0))}if(0===f.length)for(p=0;p<s;p++){g=n+(c?-p:p);var y=t.getLineMaxColumn(g);f.push(new a["f"](new l["a"](g,y,g,y),0,new u["a"](g,y),0))}return{viewStates:f,reversed:c,fromLineNumber:n,fromVisualColumn:i,toLineNumber:r,toVisualColumn:o}},e.columnSelectLeft=function(t,n,i){var r=i.toViewVisualColumn;return r>1&&r--,e.columnSelect(t,n,i.fromViewLineNumber,i.fromViewVisualColumn,i.toViewLineNumber,r)},e.columnSelectRight=function(e,t,n){for(var i=0,r=Math.min(n.fromViewLineNumber,n.toViewLineNumber),o=Math.max(n.fromViewLineNumber,n.toViewLineNumber),s=r;s<=o;s++){var l=t.getLineMaxColumn(s),c=a["a"].visibleColumnFromColumn2(e,t,new u["a"](s,l));i=Math.max(i,c)}var d=n.toViewVisualColumn;return d<i&&d++,this.columnSelect(e,t,n.fromViewLineNumber,n.fromViewVisualColumn,n.toViewLineNumber,d)},e.columnSelectUp=function(e,t,n,i){var r=i?e.pageSize:1,o=Math.max(1,n.toViewLineNumber-r);return this.columnSelect(e,t,n.fromViewLineNumber,n.fromViewVisualColumn,o,n.toViewVisualColumn)},e.columnSelectDown=function(e,t,n,i){var r=i?e.pageSize:1,o=Math.min(t.getLineCount(),n.toViewLineNumber+r);return this.columnSelect(e,t,n.fromViewLineNumber,n.fromViewVisualColumn,o,n.toViewVisualColumn)},e}(),d=n("snIX"),h=n("+Fos"),f=n("N0LK"),p=n("5v8Y"),g=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),A=function(){function e(){}return e._createWord=function(e,t,n,i,r){return{start:i,end:r,wordType:t,nextCharClass:n}},e._findPreviousWordOnLine=function(e,t,n){var i=t.getLineContent(n.lineNumber);return this._doFindPreviousWordOnLine(i,e,n)},e._doFindPreviousWordOnLine=function(e,t,n){for(var i=0,r=n.column-2;r>=0;r--){var o=e.charCodeAt(r),s=t.get(o);if(0===s){if(2===i)return this._createWord(e,i,s,r+1,this._findEndOfWord(e,t,i,r+1));i=1}else if(2===s){if(1===i)return this._createWord(e,i,s,r+1,this._findEndOfWord(e,t,i,r+1));i=2}else if(1===s&&0!==i)return this._createWord(e,i,s,r+1,this._findEndOfWord(e,t,i,r+1))}return 0!==i?this._createWord(e,i,1,0,this._findEndOfWord(e,t,i,0)):null},e._findEndOfWord=function(e,t,n,i){for(var r=e.length,o=i;o<r;o++){var s=e.charCodeAt(o),a=t.get(s);if(1===a)return o;if(1===n&&2===a)return o;if(2===n&&0===a)return o}return r},e._findNextWordOnLine=function(e,t,n){var i=t.getLineContent(n.lineNumber);return this._doFindNextWordOnLine(i,e,n)},e._doFindNextWordOnLine=function(e,t,n){for(var i=0,r=e.length,o=n.column-1;o<r;o++){var s=e.charCodeAt(o),a=t.get(s);if(0===a){if(2===i)return this._createWord(e,i,a,this._findStartOfWord(e,t,i,o-1),o);i=1}else if(2===a){if(1===i)return this._createWord(e,i,a,this._findStartOfWord(e,t,i,o-1),o);i=2}else if(1===a&&0!==i)return this._createWord(e,i,a,this._findStartOfWord(e,t,i,o-1),o)}return 0!==i?this._createWord(e,i,1,this._findStartOfWord(e,t,i,r-1),r):null},e._findStartOfWord=function(e,t,n,i){for(var r=i;r>=0;r--){var o=e.charCodeAt(r),s=t.get(o);if(1===s)return r+1;if(1===n&&2===s)return r+1;if(2===n&&0===s)return r+1}return 0},e.moveWordLeft=function(t,n,i,r){var o=i.lineNumber,s=i.column,a=!1;1===s&&o>1&&(a=!0,o-=1,s=n.getLineMaxColumn(o));var l=e._findPreviousWordOnLine(t,n,new u["a"](o,s));if(0===r){if(l&&!a){var c=n.getLineLastNonWhitespaceColumn(o);if(c<s)return new u["a"](o,l.end+1)}return new u["a"](o,l?l.start+1:1)}if(1===r)return l&&2===l.wordType&&l.end-l.start===1&&0===l.nextCharClass&&(l=e._findPreviousWordOnLine(t,n,new u["a"](o,l.start+1))),new u["a"](o,l?l.start+1:1);if(3===r){while(l&&2===l.wordType)l=e._findPreviousWordOnLine(t,n,new u["a"](o,l.start+1));return new u["a"](o,l?l.start+1:1)}return l&&s<=l.end+1&&(l=e._findPreviousWordOnLine(t,n,new u["a"](o,l.start+1))),new u["a"](o,l?l.end+1:1)},e._moveWordPartLeft=function(e,t){var n=t.lineNumber,i=e.getLineMaxColumn(n);if(1===t.column)return n>1?new u["a"](n-1,e.getLineMaxColumn(n-1)):t;for(var r=e.getLineContent(n),o=t.column-1;o>1;o--){var s=r.charCodeAt(o-2),a=r.charCodeAt(o-1);if(95!==s&&95===a)return new u["a"](n,o);if(f["B"](s)&&f["C"](a))return new u["a"](n,o);if(f["C"](s)&&f["C"](a)&&o+1<i){var l=r.charCodeAt(o);if(f["B"](l))return new u["a"](n,o)}}return new u["a"](n,1)},e.moveWordRight=function(t,n,i,r){var o=i.lineNumber,s=i.column,a=!1;s===n.getLineMaxColumn(o)&&o<n.getLineCount()&&(a=!0,o+=1,s=1);var l=e._findNextWordOnLine(t,n,new u["a"](o,s));if(2===r)l&&2===l.wordType&&l.end-l.start===1&&0===l.nextCharClass&&(l=e._findNextWordOnLine(t,n,new u["a"](o,l.end+1))),s=l?l.end+1:n.getLineMaxColumn(o);else if(3===r){a&&(s=0);while(l&&(2===l.wordType||l.start+1<=s))l=e._findNextWordOnLine(t,n,new u["a"](o,l.end+1));s=l?l.start+1:n.getLineMaxColumn(o)}else l&&!a&&s>=l.start+1&&(l=e._findNextWordOnLine(t,n,new u["a"](o,l.end+1))),s=l?l.start+1:n.getLineMaxColumn(o);return new u["a"](o,s)},e._moveWordPartRight=function(e,t){var n=t.lineNumber,i=e.getLineMaxColumn(n);if(t.column===i)return n<e.getLineCount()?new u["a"](n+1,1):t;for(var r=e.getLineContent(n),o=t.column+1;o<i;o++){var s=r.charCodeAt(o-2),a=r.charCodeAt(o-1);if(95===s&&95!==a)return new u["a"](n,o);if(f["B"](s)&&f["C"](a))return new u["a"](n,o);if(f["C"](s)&&f["C"](a)&&o+1<i){var l=r.charCodeAt(o);if(f["B"](l))return new u["a"](n,o)}}return new u["a"](n,i)},e._deleteWordLeftWhitespace=function(e,t){var n=e.getLineContent(t.lineNumber),i=t.column-2,r=f["D"](n,i);return r+1<i?new l["a"](t.lineNumber,r+2,t.lineNumber,t.column):null},e.deleteWordLeft=function(t,n,i,r,o){if(!i.isEmpty())return i;var s=new u["a"](i.positionLineNumber,i.positionColumn),a=s.lineNumber,c=s.column;if(1===a&&1===c)return null;if(r){var d=this._deleteWordLeftWhitespace(n,s);if(d)return d}var h=e._findPreviousWordOnLine(t,n,s);return 0===o?h?c=h.start+1:c>1?c=1:(a--,c=n.getLineMaxColumn(a)):(h&&c<=h.end+1&&(h=e._findPreviousWordOnLine(t,n,new u["a"](a,h.start+1))),h?c=h.end+1:c>1?c=1:(a--,c=n.getLineMaxColumn(a))),new l["a"](a,c,s.lineNumber,s.column)},e._deleteWordPartLeft=function(t,n){if(!n.isEmpty())return n;var i=n.getPosition(),r=e._moveWordPartLeft(t,i);return new l["a"](i.lineNumber,i.column,r.lineNumber,r.column)},e._findFirstNonWhitespaceChar=function(e,t){for(var n=e.length,i=t;i<n;i++){var r=e.charAt(i);if(" "!==r&&"\t"!==r)return i}return n},e._deleteWordRightWhitespace=function(e,t){var n=e.getLineContent(t.lineNumber),i=t.column-1,r=this._findFirstNonWhitespaceChar(n,i);return i+1<r?new l["a"](t.lineNumber,t.column,t.lineNumber,r+1):null},e.deleteWordRight=function(t,n,i,r,o){if(!i.isEmpty())return i;var s=new u["a"](i.positionLineNumber,i.positionColumn),a=s.lineNumber,c=s.column,d=n.getLineCount(),h=n.getLineMaxColumn(a);if(a===d&&c===h)return null;if(r){var f=this._deleteWordRightWhitespace(n,s);if(f)return f}var p=e._findNextWordOnLine(t,n,s);return 2===o?p?c=p.end+1:c<h||a===d?c=h:(a++,p=e._findNextWordOnLine(t,n,new u["a"](a,1)),c=p?p.start+1:n.getLineMaxColumn(a)):(p&&c>=p.start+1&&(p=e._findNextWordOnLine(t,n,new u["a"](a,p.end+1))),p?c=p.start+1:c<h||a===d?c=h:(a++,p=e._findNextWordOnLine(t,n,new u["a"](a,1)),c=p?p.start+1:n.getLineMaxColumn(a))),new l["a"](a,c,s.lineNumber,s.column)},e._deleteWordPartRight=function(t,n){if(!n.isEmpty())return n;var i=n.getPosition(),r=e._moveWordPartRight(t,i);return new l["a"](i.lineNumber,i.column,r.lineNumber,r.column)},e.word=function(t,n,i,r,o){var s,c,d,h,f=Object(p["a"])(t.wordSeparators),g=e._findPreviousWordOnLine(f,n,o),A=e._findNextWordOnLine(f,n,o);if(!r)return g&&1===g.wordType&&g.start<=o.column-1&&o.column-1<=g.end?(s=g.start+1,c=g.end+1):A&&1===A.wordType&&A.start<=o.column-1&&o.column-1<=A.end?(s=A.start+1,c=A.end+1):(s=g?g.end+1:1,c=A?A.start+1:n.getLineMaxColumn(o.lineNumber)),new a["f"](new l["a"](o.lineNumber,s,o.lineNumber,c),0,new u["a"](o.lineNumber,c),0);g&&1===g.wordType&&g.start<o.column-1&&o.column-1<g.end?(d=g.start+1,h=g.end+1):A&&1===A.wordType&&A.start<o.column-1&&o.column-1<A.end?(d=A.start+1,h=A.end+1):(d=o.column,h=o.column);var m,v=o.lineNumber;if(i.selectionStart.containsPosition(o))m=i.selectionStart.endColumn;else if(o.isBeforeOrEqual(i.selectionStart.getStartPosition())){m=d;var _=new u["a"](v,m);i.selectionStart.containsPosition(_)&&(m=i.selectionStart.endColumn)}else{m=h;_=new u["a"](v,m);i.selectionStart.containsPosition(_)&&(m=i.selectionStart.startColumn)}return i.move(!0,v,m,0)},e}();(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}g(t,e),t.deleteWordPartLeft=function(e,t,n,i){var r=m([A.deleteWordLeft(e,t,n,i,0),A.deleteWordLeft(e,t,n,i,2),A._deleteWordPartLeft(t,n)]);return r.sort(l["a"].compareRangesUsingEnds),r[2]},t.deleteWordPartRight=function(e,t,n,i){var r=m([A.deleteWordRight(e,t,n,i,0),A.deleteWordRight(e,t,n,i,2),A._deleteWordPartRight(t,n)]);return r.sort(l["a"].compareRangesUsingStarts),r[0]},t.moveWordPartLeft=function(e,t,n){var i=m([A.moveWordLeft(e,t,n,0),A.moveWordLeft(e,t,n,2),A._moveWordPartLeft(t,n)]);return i.sort(u["a"].compare),i[2]},t.moveWordPartRight=function(e,t,n){var i=m([A.moveWordRight(e,t,n,0),A.moveWordRight(e,t,n,2),A._moveWordPartRight(t,n)]);return i.sort(u["a"].compare),i[0]}})(A);function m(e){return e.filter((function(e){return Boolean(e)}))}var v,_=function(){function e(){}return e.addCursorDown=function(e,t,n){for(var i=[],r=0,o=0,s=t.length;o<s;o++){var u=t[o];i[r++]=new a["d"](u.modelState,u.viewState),i[r++]=n?a["d"].fromModelState(h["a"].translateDown(e.config,e.model,u.modelState)):a["d"].fromViewState(h["a"].translateDown(e.config,e.viewModel,u.viewState))}return i},e.addCursorUp=function(e,t,n){for(var i=[],r=0,o=0,s=t.length;o<s;o++){var u=t[o];i[r++]=new a["d"](u.modelState,u.viewState),i[r++]=n?a["d"].fromModelState(h["a"].translateUp(e.config,e.model,u.modelState)):a["d"].fromViewState(h["a"].translateUp(e.config,e.viewModel,u.viewState))}return i},e.moveToBeginningOfLine=function(e,t,n){for(var i=[],r=0,o=t.length;r<o;r++){var s=t[r];i[r]=this._moveToLineStart(e,s,n)}return i},e._moveToLineStart=function(e,t,n){var i=t.viewState.position.column,r=t.modelState.position.column,o=i===r,s=t.viewState.position.lineNumber,a=e.viewModel.getLineFirstNonWhitespaceColumn(s),u=i===a;return o||u?this._moveToLineStartByModel(e,t,n):this._moveToLineStartByView(e,t,n)},e._moveToLineStartByView=function(e,t,n){return a["d"].fromViewState(h["a"].moveToBeginningOfLine(e.config,e.viewModel,t.viewState,n))},e._moveToLineStartByModel=function(e,t,n){return a["d"].fromModelState(h["a"].moveToBeginningOfLine(e.config,e.model,t.modelState,n))},e.moveToEndOfLine=function(e,t,n){for(var i=[],r=0,o=t.length;r<o;r++){var s=t[r];i[r]=this._moveToLineEnd(e,s,n)}return i},e._moveToLineEnd=function(e,t,n){var i=t.viewState.position,r=e.viewModel.getLineMaxColumn(i.lineNumber),o=i.column===r,s=t.modelState.position,a=e.model.getLineMaxColumn(s.lineNumber),u=r-i.column===a-s.column;return o||u?this._moveToLineEndByModel(e,t,n):this._moveToLineEndByView(e,t,n)},e._moveToLineEndByView=function(e,t,n){return a["d"].fromViewState(h["a"].moveToEndOfLine(e.config,e.viewModel,t.viewState,n))},e._moveToLineEndByModel=function(e,t,n){return a["d"].fromModelState(h["a"].moveToEndOfLine(e.config,e.model,t.modelState,n))},e.expandLineSelection=function(e,t){for(var n=[],i=0,r=t.length;i<r;i++){var o=t[i],s=o.modelState.selection.startLineNumber,c=e.model.getLineCount(),d=o.modelState.selection.endLineNumber,h=void 0;d===c?h=e.model.getLineMaxColumn(c):(d++,h=1),n[i]=a["d"].fromModelState(new a["f"](new l["a"](s,1,s,1),0,new u["a"](d,h),0))}return n},e.moveToBeginningOfBuffer=function(e,t,n){for(var i=[],r=0,o=t.length;r<o;r++){var s=t[r];i[r]=a["d"].fromModelState(h["a"].moveToBeginningOfBuffer(e.config,e.model,s.modelState,n))}return i},e.moveToEndOfBuffer=function(e,t,n){for(var i=[],r=0,o=t.length;r<o;r++){var s=t[r];i[r]=a["d"].fromModelState(h["a"].moveToEndOfBuffer(e.config,e.model,s.modelState,n))}return i},e.selectAll=function(e,t){var n=e.model.getLineCount(),i=e.model.getLineMaxColumn(n);return a["d"].fromModelState(new a["f"](new l["a"](1,1,1,1),0,new u["a"](n,i),0))},e.line=function(e,t,n,i,r){var o=e.model.validatePosition(i),s=r?e.validateViewPosition(new u["a"](r.lineNumber,r.column),o):e.convertModelPositionToViewPosition(o);if(!n||!t.modelState.hasSelection()){var c=e.model.getLineCount(),d=o.lineNumber+1,h=1;return d>c&&(d=c,h=e.model.getLineMaxColumn(d)),a["d"].fromModelState(new a["f"](new l["a"](o.lineNumber,1,d,h),0,new u["a"](d,h),0))}var f=t.modelState.selectionStart.getStartPosition().lineNumber;if(o.lineNumber<f)return a["d"].fromViewState(t.viewState.move(t.modelState.hasSelection(),s.lineNumber,1,0));if(o.lineNumber>f){c=e.viewModel.getLineCount();var p=s.lineNumber+1,g=1;return p>c&&(p=c,g=e.viewModel.getLineMaxColumn(p)),a["d"].fromViewState(t.viewState.move(t.modelState.hasSelection(),p,g,0))}var A=t.modelState.selectionStart.getEndPosition();return a["d"].fromModelState(t.modelState.move(t.modelState.hasSelection(),A.lineNumber,A.column,0))},e.word=function(e,t,n,i){var r=e.model.validatePosition(i);return a["d"].fromModelState(A.word(e.config,e.model,t.modelState,n,r))},e.cancelSelection=function(e,t){if(!t.modelState.hasSelection())return new a["d"](t.modelState,t.viewState);var n=t.viewState.position.lineNumber,i=t.viewState.position.column;return a["d"].fromViewState(new a["f"](new l["a"](n,i,n,i),0,new u["a"](n,i),0))},e.moveTo=function(e,t,n,i,r){var o=e.model.validatePosition(i),s=r?e.validateViewPosition(new u["a"](r.lineNumber,r.column),o):e.convertModelPositionToViewPosition(o);return a["d"].fromViewState(t.viewState.move(n,s.lineNumber,s.column,0))},e.move=function(e,t,n){var i=n.select,r=n.value;switch(n.direction){case 0:return 4===n.unit?this._moveHalfLineLeft(e,t,i):this._moveLeft(e,t,i,r);case 1:return 4===n.unit?this._moveHalfLineRight(e,t,i):this._moveRight(e,t,i,r);case 2:return 2===n.unit?this._moveUpByViewLines(e,t,i,r):this._moveUpByModelLines(e,t,i,r);case 3:return 2===n.unit?this._moveDownByViewLines(e,t,i,r):this._moveDownByModelLines(e,t,i,r);case 4:return this._moveToViewMinColumn(e,t,i);case 5:return this._moveToViewFirstNonWhitespaceColumn(e,t,i);case 6:return this._moveToViewCenterColumn(e,t,i);case 7:return this._moveToViewMaxColumn(e,t,i);case 8:return this._moveToViewLastNonWhitespaceColumn(e,t,i);case 9:var o=t[0],s=e.getCompletelyVisibleModelRange(),a=this._firstLineNumberInRange(e.model,s,r),u=e.model.getLineFirstNonWhitespaceColumn(a);return[this._moveToModelPosition(e,o,i,a,u)];case 11:o=t[0],s=e.getCompletelyVisibleModelRange(),a=this._lastLineNumberInRange(e.model,s,r),u=e.model.getLineFirstNonWhitespaceColumn(a);return[this._moveToModelPosition(e,o,i,a,u)];case 10:o=t[0],s=e.getCompletelyVisibleModelRange(),a=Math.round((s.startLineNumber+s.endLineNumber)/2),u=e.model.getLineFirstNonWhitespaceColumn(a);return[this._moveToModelPosition(e,o,i,a,u)];case 12:for(var l=e.getCompletelyVisibleViewRange(),c=[],d=0,h=t.length;d<h;d++){o=t[d];c[d]=this.findPositionInViewportIfOutside(e,o,l,i)}return c}return null},e.findPositionInViewportIfOutside=function(e,t,n,i){var r=t.viewState.position.lineNumber;if(n.startLineNumber<=r&&r<=n.endLineNumber-1)return new a["d"](t.modelState,t.viewState);r>n.endLineNumber-1&&(r=n.endLineNumber-1),r<n.startLineNumber&&(r=n.startLineNumber);var o=e.viewModel.getLineFirstNonWhitespaceColumn(r);return this._moveToViewPosition(e,t,i,r,o)},e._firstLineNumberInRange=function(e,t,n){var i=t.startLineNumber;return t.startColumn!==e.getLineMinColumn(i)&&i++,Math.min(t.endLineNumber,i+n-1)},e._lastLineNumberInRange=function(e,t,n){var i=t.startLineNumber;return t.startColumn!==e.getLineMinColumn(i)&&i++,Math.max(i,t.endLineNumber-n+1)},e._moveLeft=function(e,t,n,i){for(var r=[],o=0,s=t.length;o<s;o++){var u=t[o],l=h["a"].moveLeft(e.config,e.viewModel,u.viewState,n,i);if(1===i&&l.position.lineNumber!==u.viewState.position.lineNumber){var c=e.viewModel.coordinatesConverter.convertViewPositionToModelPosition(l.position);c.lineNumber===u.modelState.position.lineNumber&&(l=h["a"].moveLeft(e.config,e.viewModel,l,n,1))}r[o]=a["d"].fromViewState(l)}return r},e._moveHalfLineLeft=function(e,t,n){for(var i=[],r=0,o=t.length;r<o;r++){var s=t[r],u=s.viewState.position.lineNumber,l=Math.round(e.viewModel.getLineContent(u).length/2);i[r]=a["d"].fromViewState(h["a"].moveLeft(e.config,e.viewModel,s.viewState,n,l))}return i},e._moveRight=function(e,t,n,i){for(var r=[],o=0,s=t.length;o<s;o++){var u=t[o],l=h["a"].moveRight(e.config,e.viewModel,u.viewState,n,i);if(1===i&&l.position.lineNumber!==u.viewState.position.lineNumber){var c=e.viewModel.coordinatesConverter.convertViewPositionToModelPosition(l.position);c.lineNumber===u.modelState.position.lineNumber&&(l=h["a"].moveRight(e.config,e.viewModel,l,n,1))}r[o]=a["d"].fromViewState(l)}return r},e._moveHalfLineRight=function(e,t,n){for(var i=[],r=0,o=t.length;r<o;r++){var s=t[r],u=s.viewState.position.lineNumber,l=Math.round(e.viewModel.getLineContent(u).length/2);i[r]=a["d"].fromViewState(h["a"].moveRight(e.config,e.viewModel,s.viewState,n,l))}return i},e._moveDownByViewLines=function(e,t,n,i){for(var r=[],o=0,s=t.length;o<s;o++){var u=t[o];r[o]=a["d"].fromViewState(h["a"].moveDown(e.config,e.viewModel,u.viewState,n,i))}return r},e._moveDownByModelLines=function(e,t,n,i){for(var r=[],o=0,s=t.length;o<s;o++){var u=t[o];r[o]=a["d"].fromModelState(h["a"].moveDown(e.config,e.model,u.modelState,n,i))}return r},e._moveUpByViewLines=function(e,t,n,i){for(var r=[],o=0,s=t.length;o<s;o++){var u=t[o];r[o]=a["d"].fromViewState(h["a"].moveUp(e.config,e.viewModel,u.viewState,n,i))}return r},e._moveUpByModelLines=function(e,t,n,i){for(var r=[],o=0,s=t.length;o<s;o++){var u=t[o];r[o]=a["d"].fromModelState(h["a"].moveUp(e.config,e.model,u.modelState,n,i))}return r},e._moveToViewPosition=function(e,t,n,i,r){return a["d"].fromViewState(t.viewState.move(n,i,r,0))},e._moveToModelPosition=function(e,t,n,i,r){return a["d"].fromModelState(t.modelState.move(n,i,r,0))},e._moveToViewMinColumn=function(e,t,n){for(var i=[],r=0,o=t.length;r<o;r++){var s=t[r],a=s.viewState.position.lineNumber,u=e.viewModel.getLineMinColumn(a);i[r]=this._moveToViewPosition(e,s,n,a,u)}return i},e._moveToViewFirstNonWhitespaceColumn=function(e,t,n){for(var i=[],r=0,o=t.length;r<o;r++){var s=t[r],a=s.viewState.position.lineNumber,u=e.viewModel.getLineFirstNonWhitespaceColumn(a);i[r]=this._moveToViewPosition(e,s,n,a,u)}return i},e._moveToViewCenterColumn=function(e,t,n){for(var i=[],r=0,o=t.length;r<o;r++){var s=t[r],a=s.viewState.position.lineNumber,u=Math.round((e.viewModel.getLineMaxColumn(a)+e.viewModel.getLineMinColumn(a))/2);i[r]=this._moveToViewPosition(e,s,n,a,u)}return i},e._moveToViewMaxColumn=function(e,t,n){for(var i=[],r=0,o=t.length;r<o;r++){var s=t[r],a=s.viewState.position.lineNumber,u=e.viewModel.getLineMaxColumn(a);i[r]=this._moveToViewPosition(e,s,n,a,u)}return i},e._moveToViewLastNonWhitespaceColumn=function(e,t,n){for(var i=[],r=0,o=t.length;r<o;r++){var s=t[r],a=s.viewState.position.lineNumber,u=e.viewModel.getLineLastNonWhitespaceColumn(a);i[r]=this._moveToViewPosition(e,s,n,a,u)}return i},e}();(function(e){var t=function(e){if(!r["i"](e))return!1;var t=e;return!!r["j"](t.to)&&(!(!r["k"](t.select)&&!r["e"](t.select))&&(!(!r["k"](t.by)&&!r["j"](t.by))&&!(!r["k"](t.value)&&!r["h"](t.value))))};function n(t){if(!t.to)return null;var n;switch(t.to){case e.RawDirection.Left:n=0;break;case e.RawDirection.Right:n=1;break;case e.RawDirection.Up:n=2;break;case e.RawDirection.Down:n=3;break;case e.RawDirection.WrappedLineStart:n=4;break;case e.RawDirection.WrappedLineFirstNonWhitespaceCharacter:n=5;break;case e.RawDirection.WrappedLineColumnCenter:n=6;break;case e.RawDirection.WrappedLineEnd:n=7;break;case e.RawDirection.WrappedLineLastNonWhitespaceCharacter:n=8;break;case e.RawDirection.ViewPortTop:n=9;break;case e.RawDirection.ViewPortBottom:n=11;break;case e.RawDirection.ViewPortCenter:n=10;break;case e.RawDirection.ViewPortIfOutside:n=12;break;default:return null}var i=0;switch(t.by){case e.RawUnit.Line:i=1;break;case e.RawUnit.WrappedLine:i=2;break;case e.RawUnit.Character:i=3;break;case e.RawUnit.HalfLine:i=4;break}return{direction:n,unit:i,select:!!t.select,value:t.value||1}}e.description={description:"Move cursor to a logical position in the view",args:[{name:"Cursor move argument object",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t* 'to': A mandatory logical position value providing where to move the cursor.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'left', 'right', 'up', 'down'\n\t\t\t\t\t\t'wrappedLineStart', 'wrappedLineEnd', 'wrappedLineColumnCenter'\n\t\t\t\t\t\t'wrappedLineFirstNonWhitespaceCharacter', 'wrappedLineLastNonWhitespaceCharacter'\n\t\t\t\t\t\t'viewPortTop', 'viewPortCenter', 'viewPortBottom', 'viewPortIfOutside'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'by': Unit to move. Default is computed based on 'to' value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'line', 'wrappedLine', 'character', 'halfLine'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'value': Number of units to move. Default is '1'.\n\t\t\t\t\t* 'select': If 'true' makes the selection. Default is 'false'.\n\t\t\t\t",constraint:t,schema:{type:"object",required:["to"],properties:{to:{type:"string",enum:["left","right","up","down","wrappedLineStart","wrappedLineEnd","wrappedLineColumnCenter","wrappedLineFirstNonWhitespaceCharacter","wrappedLineLastNonWhitespaceCharacter","viewPortTop","viewPortCenter","viewPortBottom","viewPortIfOutside"]},by:{type:"string",enum:["line","wrappedLine","character","halfLine"]},value:{type:"number",default:1},select:{type:"boolean",default:!1}}}}]},e.RawDirection={Left:"left",Right:"right",Up:"up",Down:"down",WrappedLineStart:"wrappedLineStart",WrappedLineFirstNonWhitespaceCharacter:"wrappedLineFirstNonWhitespaceCharacter",WrappedLineColumnCenter:"wrappedLineColumnCenter",WrappedLineEnd:"wrappedLineEnd",WrappedLineLastNonWhitespaceCharacter:"wrappedLineLastNonWhitespaceCharacter",ViewPortTop:"viewPortTop",ViewPortCenter:"viewPortCenter",ViewPortBottom:"viewPortBottom",ViewPortIfOutside:"viewPortIfOutside"},e.RawUnit={Line:"line",WrappedLine:"wrappedLine",Character:"character",HalfLine:"halfLine"},e.parse=n})(v||(v={}));var y,b,w,C,S=n("GR/f"),N=n("iuje"),L=n("wQH0"),E=n("T8No"),x=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),O=0,B=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return x(t,e),t.prototype.runEditorCommand=function(e,t,n){var i=t._getCursors();i&&this.runCoreEditorCommand(i,n||{})},t}(o["c"]);function k(e){e.register()}(function(e){var t=function(e){if(!r["i"](e))return!1;var t=e;return!!r["j"](t.to)&&(!(!r["k"](t.by)&&!r["j"](t.by))&&(!(!r["k"](t.value)&&!r["h"](t.value))&&!(!r["k"](t.revealCursor)&&!r["e"](t.revealCursor))))};function n(t){var n,i;switch(t.to){case e.RawDirection.Up:n=1;break;case e.RawDirection.Down:n=2;break;default:return null}switch(t.by){case e.RawUnit.Line:i=1;break;case e.RawUnit.WrappedLine:i=2;break;case e.RawUnit.Page:i=3;break;case e.RawUnit.HalfPage:i=4;break;default:i=2}var r=Math.floor(t.value||1),o=!!t.revealCursor;return{direction:n,unit:i,value:r,revealCursor:o,select:!!t.select}}e.description={description:"Scroll editor in the given direction",args:[{name:"Editor scroll argument object",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t* 'to': A mandatory direction value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'up', 'down'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'by': Unit to move. Default is computed based on 'to' value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'line', 'wrappedLine', 'page', 'halfPage'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'value': Number of units to move. Default is '1'.\n\t\t\t\t\t* 'revealCursor': If 'true' reveals the cursor if it is outside view port.\n\t\t\t\t",constraint:t,schema:{type:"object",required:["to"],properties:{to:{type:"string",enum:["up","down"]},by:{type:"string",enum:["line","wrappedLine","page","halfPage"]},value:{type:"number",default:1},revealCursor:{type:"boolean"}}}}]},e.RawDirection={Up:"up",Down:"down"},e.RawUnit={Line:"line",WrappedLine:"wrappedLine",Page:"page",HalfPage:"halfPage"},e.parse=n})(y||(y={})),function(e){var t=function(e){if(!r["i"](e))return!1;var t=e;return!!r["h"](t.lineNumber)&&!(!r["k"](t.at)&&!r["j"](t.at))};e.description={description:"Reveal the given line at the given logical position",args:[{name:"Reveal line argument object",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t* 'lineNumber': A mandatory line number value.\n\t\t\t\t\t* 'at': Logical position at which line has to be revealed .\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'top', 'center', 'bottom'\n\t\t\t\t\t\t```\n\t\t\t\t",constraint:t,schema:{type:"object",required:["lineNumber"],properties:{lineNumber:{type:"number"},at:{type:"string",enum:["top","center","bottom"]}}}}]},e.RawAtArgument={Top:"top",Center:"center",Bottom:"bottom"}}(b||(b={})),function(e){var t=function(e){function t(t){var n=e.call(this,t)||this;return n._inSelectionMode=t.inSelectionMode,n}return x(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,[_.moveTo(e.context,e.getPrimaryCursor(),this._inSelectionMode,t.position,t.viewPosition)]),e.reveal(t.source,!0,0,0)},t}(B);e.MoveTo=Object(o["g"])(new t({id:"_moveTo",inSelectionMode:!1,precondition:void 0})),e.MoveToSelect=Object(o["g"])(new t({id:"_moveToSelect",inSelectionMode:!0,precondition:void 0}));var n=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return x(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement();var n=this._getColumnSelectResult(e.context,e.getPrimaryCursor(),e.getColumnSelectData(),t);e.setStates(t.source,3,n.viewStates.map((function(e){return a["d"].fromViewState(e)}))),e.setColumnSelectData({isReal:!0,fromViewLineNumber:n.fromLineNumber,fromViewVisualColumn:n.fromVisualColumn,toViewLineNumber:n.toLineNumber,toViewVisualColumn:n.toVisualColumn}),e.reveal(t.source,!0,n.reversed?1:2,0)},t}(B);e.ColumnSelect=Object(o["g"])(new(function(e){function t(){return e.call(this,{id:"columnSelect",precondition:void 0})||this}return x(t,e),t.prototype._getColumnSelectResult=function(e,t,n,i){var r=e.model.validatePosition(i.position),o=e.validateViewPosition(new u["a"](i.viewPosition.lineNumber,i.viewPosition.column),r),s=i.doColumnSelect?n.fromViewLineNumber:o.lineNumber,a=i.doColumnSelect?n.fromViewVisualColumn:i.mouseColumn-1;return c.columnSelect(e.config,e.viewModel,s,a,o.lineNumber,i.mouseColumn-1)},t}(n))),e.CursorColumnSelectLeft=Object(o["g"])(new(function(e){function t(){return e.call(this,{id:"cursorColumnSelectLeft",precondition:void 0,kbOpts:{weight:O,kbExpr:L["a"].textInputFocus,primary:3599,linux:{primary:0}}})||this}return x(t,e),t.prototype._getColumnSelectResult=function(e,t,n,i){return c.columnSelectLeft(e.config,e.viewModel,n)},t}(n))),e.CursorColumnSelectRight=Object(o["g"])(new(function(e){function t(){return e.call(this,{id:"cursorColumnSelectRight",precondition:void 0,kbOpts:{weight:O,kbExpr:L["a"].textInputFocus,primary:3601,linux:{primary:0}}})||this}return x(t,e),t.prototype._getColumnSelectResult=function(e,t,n,i){return c.columnSelectRight(e.config,e.viewModel,n)},t}(n)));var i=function(e){function t(t){var n=e.call(this,t)||this;return n._isPaged=t.isPaged,n}return x(t,e),t.prototype._getColumnSelectResult=function(e,t,n,i){return c.columnSelectUp(e.config,e.viewModel,n,this._isPaged)},t}(n);e.CursorColumnSelectUp=Object(o["g"])(new i({isPaged:!1,id:"cursorColumnSelectUp",precondition:void 0,kbOpts:{weight:O,kbExpr:L["a"].textInputFocus,primary:3600,linux:{primary:0}}})),e.CursorColumnSelectPageUp=Object(o["g"])(new i({isPaged:!0,id:"cursorColumnSelectPageUp",precondition:void 0,kbOpts:{weight:O,kbExpr:L["a"].textInputFocus,primary:3595,linux:{primary:0}}}));var r=function(e){function t(t){var n=e.call(this,t)||this;return n._isPaged=t.isPaged,n}return x(t,e),t.prototype._getColumnSelectResult=function(e,t,n,i){return c.columnSelectDown(e.config,e.viewModel,n,this._isPaged)},t}(n);e.CursorColumnSelectDown=Object(o["g"])(new r({isPaged:!1,id:"cursorColumnSelectDown",precondition:void 0,kbOpts:{weight:O,kbExpr:L["a"].textInputFocus,primary:3602,linux:{primary:0}}})),e.CursorColumnSelectPageDown=Object(o["g"])(new r({isPaged:!0,id:"cursorColumnSelectPageDown",precondition:void 0,kbOpts:{weight:O,kbExpr:L["a"].textInputFocus,primary:3596,linux:{primary:0}}}));var s=function(e){function t(){return e.call(this,{id:"cursorMove",precondition:void 0,description:v.description})||this}return x(t,e),t.prototype.runCoreEditorCommand=function(e,t){var n=v.parse(t);n&&this._runCursorMove(e,t.source,n)},t.prototype._runCursorMove=function(e,t,n){e.context.model.pushStackElement(),e.setStates(t,3,_.move(e.context,e.getAll(),n)),e.reveal(t,!0,0,0)},t}(B);e.CursorMoveImpl=s,e.CursorMove=Object(o["g"])(new s);var d=function(t){function n(e){var n=t.call(this,e)||this;return n._staticArgs=e.args,n}return x(n,t),n.prototype.runCoreEditorCommand=function(t,n){var i=this._staticArgs;-1===this._staticArgs.value&&(i={direction:this._staticArgs.direction,unit:this._staticArgs.unit,select:this._staticArgs.select,value:t.context.config.pageSize}),e.CursorMove._runCursorMove(t,n.source,i)},n}(B);e.CursorLeft=Object(o["g"])(new d({args:{direction:0,unit:0,select:!1,value:1},id:"cursorLeft",precondition:void 0,kbOpts:{weight:O,kbExpr:L["a"].textInputFocus,primary:15,mac:{primary:15,secondary:[288]}}})),e.CursorLeftSelect=Object(o["g"])(new d({args:{direction:0,unit:0,select:!0,value:1},id:"cursorLeftSelect",precondition:void 0,kbOpts:{weight:O,kbExpr:L["a"].textInputFocus,primary:1039}})),e.CursorRight=Object(o["g"])(new d({args:{direction:1,unit:0,select:!1,value:1},id:"cursorRight",precondition:void 0,kbOpts:{weight:O,kbExpr:L["a"].textInputFocus,primary:17,mac:{primary:17,secondary:[292]}}})),e.CursorRightSelect=Object(o["g"])(new d({args:{direction:1,unit:0,select:!0,value:1},id:"cursorRightSelect",precondition:void 0,kbOpts:{weight:O,kbExpr:L["a"].textInputFocus,primary:1041}})),e.CursorUp=Object(o["g"])(new d({args:{direction:2,unit:2,select:!1,value:1},id:"cursorUp",precondition:void 0,kbOpts:{weight:O,kbExpr:L["a"].textInputFocus,primary:16,mac:{primary:16,secondary:[302]}}})),e.CursorUpSelect=Object(o["g"])(new d({args:{direction:2,unit:2,select:!0,value:1},id:"cursorUpSelect",precondition:void 0,kbOpts:{weight:O,kbExpr:L["a"].textInputFocus,primary:1040,secondary:[3088],mac:{primary:1040},linux:{primary:1040}}})),e.CursorPageUp=Object(o["g"])(new d({args:{direction:2,unit:2,select:!1,value:-1},id:"cursorPageUp",precondition:void 0,kbOpts:{weight:O,kbExpr:L["a"].textInputFocus,primary:11}})),e.CursorPageUpSelect=Object(o["g"])(new d({args:{direction:2,unit:2,select:!0,value:-1},id:"cursorPageUpSelect",precondition:void 0,kbOpts:{weight:O,kbExpr:L["a"].textInputFocus,primary:1035}})),e.CursorDown=Object(o["g"])(new d({args:{direction:3,unit:2,select:!1,value:1},id:"cursorDown",precondition:void 0,kbOpts:{weight:O,kbExpr:L["a"].textInputFocus,primary:18,mac:{primary:18,secondary:[300]}}})),e.CursorDownSelect=Object(o["g"])(new d({args:{direction:3,unit:2,select:!0,value:1},id:"cursorDownSelect",precondition:void 0,kbOpts:{weight:O,kbExpr:L["a"].textInputFocus,primary:1042,secondary:[3090],mac:{primary:1042},linux:{primary:1042}}})),e.CursorPageDown=Object(o["g"])(new d({args:{direction:3,unit:2,select:!1,value:-1},id:"cursorPageDown",precondition:void 0,kbOpts:{weight:O,kbExpr:L["a"].textInputFocus,primary:12}})),e.CursorPageDownSelect=Object(o["g"])(new d({args:{direction:3,unit:2,select:!0,value:-1},id:"cursorPageDownSelect",precondition:void 0,kbOpts:{weight:O,kbExpr:L["a"].textInputFocus,primary:1036}})),e.CreateCursor=Object(o["g"])(new(function(e){function t(){return e.call(this,{id:"createCursor",precondition:void 0})||this}return x(t,e),t.prototype.runCoreEditorCommand=function(e,t){var n,i=e.context;n=t.wholeLine?_.line(i,e.getPrimaryCursor(),!1,t.position,t.viewPosition):_.moveTo(i,e.getPrimaryCursor(),!1,t.position,t.viewPosition);var r=e.getAll();if(r.length>1)for(var o=n.modelState?n.modelState.position:null,s=n.viewState?n.viewState.position:null,a=0,u=r.length;a<u;a++){var l=r[a];if((!o||l.modelState.selection.containsPosition(o))&&(!s||l.viewState.selection.containsPosition(s)))return r.splice(a,1),e.context.model.pushStackElement(),void e.setStates(t.source,3,r)}r.push(n),e.context.model.pushStackElement(),e.setStates(t.source,3,r)},t}(B))),e.LastCursorMoveToSelect=Object(o["g"])(new(function(e){function t(){return e.call(this,{id:"_lastCursorMoveToSelect",precondition:void 0})||this}return x(t,e),t.prototype.runCoreEditorCommand=function(e,t){var n=e.context,i=e.getLastAddedCursorIndex(),r=e.getAll(),o=r.slice(0);o[i]=_.moveTo(n,r[i],!0,t.position,t.viewPosition),e.context.model.pushStackElement(),e.setStates(t.source,3,o)},t}(B)));var h=function(e){function t(t){var n=e.call(this,t)||this;return n._inSelectionMode=t.inSelectionMode,n}return x(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,_.moveToBeginningOfLine(e.context,e.getAll(),this._inSelectionMode)),e.reveal(t.source,!0,0,0)},t}(B);e.CursorHome=Object(o["g"])(new h({inSelectionMode:!1,id:"cursorHome",precondition:void 0,kbOpts:{weight:O,kbExpr:L["a"].textInputFocus,primary:14,mac:{primary:14,secondary:[2063]}}})),e.CursorHomeSelect=Object(o["g"])(new h({inSelectionMode:!0,id:"cursorHomeSelect",precondition:void 0,kbOpts:{weight:O,kbExpr:L["a"].textInputFocus,primary:1038,mac:{primary:1038,secondary:[3087]}}})),e.CursorLineStart=Object(o["g"])(new(function(e){function t(){return e.call(this,{id:"cursorLineStart",precondition:void 0,kbOpts:{weight:O,kbExpr:L["a"].textInputFocus,primary:0,mac:{primary:287}}})||this}return x(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,this._exec(e.context,e.getAll())),e.reveal(t.source,!0,0,0)},t.prototype._exec=function(e,t){for(var n=[],i=0,r=t.length;i<r;i++){var o=t[i],s=o.modelState.position.lineNumber;n[i]=a["d"].fromModelState(o.modelState.move(!1,s,1,0))}return n},t}(B)));var f=function(e){function t(t){var n=e.call(this,t)||this;return n._inSelectionMode=t.inSelectionMode,n}return x(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,_.moveToEndOfLine(e.context,e.getAll(),this._inSelectionMode)),e.reveal(t.source,!0,0,0)},t}(B);e.CursorEnd=Object(o["g"])(new f({inSelectionMode:!1,id:"cursorEnd",precondition:void 0,kbOpts:{weight:O,kbExpr:L["a"].textInputFocus,primary:13,mac:{primary:13,secondary:[2065]}}})),e.CursorEndSelect=Object(o["g"])(new f({inSelectionMode:!0,id:"cursorEndSelect",precondition:void 0,kbOpts:{weight:O,kbExpr:L["a"].textInputFocus,primary:1037,mac:{primary:1037,secondary:[3089]}}})),e.CursorLineEnd=Object(o["g"])(new(function(e){function t(){return e.call(this,{id:"cursorLineEnd",precondition:void 0,kbOpts:{weight:O,kbExpr:L["a"].textInputFocus,primary:0,mac:{primary:291}}})||this}return x(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,this._exec(e.context,e.getAll())),e.reveal(t.source,!0,0,0)},t.prototype._exec=function(e,t){for(var n=[],i=0,r=t.length;i<r;i++){var o=t[i],s=o.modelState.position.lineNumber,u=e.model.getLineMaxColumn(s);n[i]=a["d"].fromModelState(o.modelState.move(!1,s,u,0))}return n},t}(B)));var p=function(e){function t(t){var n=e.call(this,t)||this;return n._inSelectionMode=t.inSelectionMode,n}return x(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,_.moveToBeginningOfBuffer(e.context,e.getAll(),this._inSelectionMode)),e.reveal(t.source,!0,0,0)},t}(B);e.CursorTop=Object(o["g"])(new p({inSelectionMode:!1,id:"cursorTop",precondition:void 0,kbOpts:{weight:O,kbExpr:L["a"].textInputFocus,primary:2062,mac:{primary:2064}}})),e.CursorTopSelect=Object(o["g"])(new p({inSelectionMode:!0,id:"cursorTopSelect",precondition:void 0,kbOpts:{weight:O,kbExpr:L["a"].textInputFocus,primary:3086,mac:{primary:3088}}}));var g=function(e){function t(t){var n=e.call(this,t)||this;return n._inSelectionMode=t.inSelectionMode,n}return x(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,_.moveToEndOfBuffer(e.context,e.getAll(),this._inSelectionMode)),e.reveal(t.source,!0,0,0)},t}(B);e.CursorBottom=Object(o["g"])(new g({inSelectionMode:!1,id:"cursorBottom",precondition:void 0,kbOpts:{weight:O,kbExpr:L["a"].textInputFocus,primary:2061,mac:{primary:2066}}})),e.CursorBottomSelect=Object(o["g"])(new g({inSelectionMode:!0,id:"cursorBottomSelect",precondition:void 0,kbOpts:{weight:O,kbExpr:L["a"].textInputFocus,primary:3085,mac:{primary:3090}}}));var A=function(e){function t(){return e.call(this,{id:"editorScroll",precondition:void 0,description:y.description})||this}return x(t,e),t.prototype.runCoreEditorCommand=function(e,t){var n=y.parse(t);n&&this._runEditorScroll(e,t.source,n)},t.prototype._runEditorScroll=function(e,t,n){var i=this._computeDesiredScrollTop(e.context,n);if(n.revealCursor){var r=e.context.getCompletelyVisibleViewRangeAtScrollTop(i);e.setStates(t,3,[_.findPositionInViewportIfOutside(e.context,e.getPrimaryCursor(),r,n.select)])}e.scrollTo(i)},t.prototype._computeDesiredScrollTop=function(e,t){if(1===t.unit){var n=e.getCompletelyVisibleModelRange(),i=void 0;i=1===t.direction?Math.max(1,n.startLineNumber-t.value):Math.min(e.model.getLineCount(),n.startLineNumber+t.value);var r=e.convertModelPositionToViewPosition(new u["a"](i,1));return e.getVerticalOffsetForViewLine(r.lineNumber)}var o;o=3===t.unit?e.config.pageSize*t.value:4===t.unit?Math.round(e.config.pageSize/2)*t.value:t.value;var s=(1===t.direction?-1:1)*o;return e.getCurrentScrollTop()+s*e.config.lineHeight},t}(B);e.EditorScrollImpl=A,e.EditorScroll=Object(o["g"])(new A),e.ScrollLineUp=Object(o["g"])(new(function(t){function n(){return t.call(this,{id:"scrollLineUp",precondition:void 0,kbOpts:{weight:O,kbExpr:L["a"].textInputFocus,primary:2064,mac:{primary:267}}})||this}return x(n,t),n.prototype.runCoreEditorCommand=function(t,n){e.EditorScroll._runEditorScroll(t,n.source,{direction:1,unit:2,value:1,revealCursor:!1,select:!1})},n}(B))),e.ScrollPageUp=Object(o["g"])(new(function(t){function n(){return t.call(this,{id:"scrollPageUp",precondition:void 0,kbOpts:{weight:O,kbExpr:L["a"].textInputFocus,primary:2059,win:{primary:523},linux:{primary:523}}})||this}return x(n,t),n.prototype.runCoreEditorCommand=function(t,n){e.EditorScroll._runEditorScroll(t,n.source,{direction:1,unit:3,value:1,revealCursor:!1,select:!1})},n}(B))),e.ScrollLineDown=Object(o["g"])(new(function(t){function n(){return t.call(this,{id:"scrollLineDown",precondition:void 0,kbOpts:{weight:O,kbExpr:L["a"].textInputFocus,primary:2066,mac:{primary:268}}})||this}return x(n,t),n.prototype.runCoreEditorCommand=function(t,n){e.EditorScroll._runEditorScroll(t,n.source,{direction:2,unit:2,value:1,revealCursor:!1,select:!1})},n}(B))),e.ScrollPageDown=Object(o["g"])(new(function(t){function n(){return t.call(this,{id:"scrollPageDown",precondition:void 0,kbOpts:{weight:O,kbExpr:L["a"].textInputFocus,primary:2060,win:{primary:524},linux:{primary:524}}})||this}return x(n,t),n.prototype.runCoreEditorCommand=function(t,n){e.EditorScroll._runEditorScroll(t,n.source,{direction:2,unit:3,value:1,revealCursor:!1,select:!1})},n}(B)));var m=function(e){function t(t){var n=e.call(this,t)||this;return n._inSelectionMode=t.inSelectionMode,n}return x(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,[_.word(e.context,e.getPrimaryCursor(),this._inSelectionMode,t.position)]),e.reveal(t.source,!0,0,0)},t}(B);e.WordSelect=Object(o["g"])(new m({inSelectionMode:!1,id:"_wordSelect",precondition:void 0})),e.WordSelectDrag=Object(o["g"])(new m({inSelectionMode:!0,id:"_wordSelectDrag",precondition:void 0})),e.LastCursorWordSelect=Object(o["g"])(new(function(e){function t(){return e.call(this,{id:"lastCursorWordSelect",precondition:void 0})||this}return x(t,e),t.prototype.runCoreEditorCommand=function(e,t){var n=e.context,i=e.getLastAddedCursorIndex(),r=e.getAll(),o=r.slice(0),s=r[i];o[i]=_.word(n,s,s.modelState.hasSelection(),t.position),n.model.pushStackElement(),e.setStates(t.source,3,o)},t}(B)));var w=function(e){function t(t){var n=e.call(this,t)||this;return n._inSelectionMode=t.inSelectionMode,n}return x(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,[_.line(e.context,e.getPrimaryCursor(),this._inSelectionMode,t.position,t.viewPosition)]),e.reveal(t.source,!1,0,0)},t}(B);e.LineSelect=Object(o["g"])(new w({inSelectionMode:!1,id:"_lineSelect",precondition:void 0})),e.LineSelectDrag=Object(o["g"])(new w({inSelectionMode:!0,id:"_lineSelectDrag",precondition:void 0}));var C=function(e){function t(t){var n=e.call(this,t)||this;return n._inSelectionMode=t.inSelectionMode,n}return x(t,e),t.prototype.runCoreEditorCommand=function(e,t){var n=e.getLastAddedCursorIndex(),i=e.getAll(),r=i.slice(0);r[n]=_.line(e.context,i[n],this._inSelectionMode,t.position,t.viewPosition),e.context.model.pushStackElement(),e.setStates(t.source,3,r)},t}(B);e.LastCursorLineSelect=Object(o["g"])(new C({inSelectionMode:!1,id:"lastCursorLineSelect",precondition:void 0})),e.LastCursorLineSelectDrag=Object(o["g"])(new C({inSelectionMode:!0,id:"lastCursorLineSelectDrag",precondition:void 0})),e.ExpandLineSelection=Object(o["g"])(new(function(e){function t(){return e.call(this,{id:"expandLineSelection",precondition:void 0,kbOpts:{weight:O,kbExpr:L["a"].textInputFocus,primary:2090}})||this}return x(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,_.expandLineSelection(e.context,e.getAll())),e.reveal(t.source,!0,0,0)},t}(B))),e.CancelSelection=Object(o["g"])(new(function(e){function t(){return e.call(this,{id:"cancelSelection",precondition:L["a"].hasNonEmptySelection,kbOpts:{weight:O,kbExpr:L["a"].textInputFocus,primary:9,secondary:[1033]}})||this}return x(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,[_.cancelSelection(e.context,e.getPrimaryCursor())]),e.reveal(t.source,!0,0,0)},t}(B))),e.RemoveSecondaryCursors=Object(o["g"])(new(function(e){function t(){return e.call(this,{id:"removeSecondaryCursors",precondition:L["a"].hasMultipleSelections,kbOpts:{weight:O+1,kbExpr:L["a"].textInputFocus,primary:9,secondary:[1033]}})||this}return x(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,[e.getPrimaryCursor()]),e.reveal(t.source,!0,0,0)},t}(B))),e.RevealLine=Object(o["g"])(new(function(e){function t(){return e.call(this,{id:"revealLine",precondition:void 0,description:b.description})||this}return x(t,e),t.prototype.runCoreEditorCommand=function(e,t){var n=t,i=(n.lineNumber||0)+1;i<1&&(i=1);var r=e.context.model.getLineCount();i>r&&(i=r);var o=new l["a"](i,1,i,e.context.model.getLineMaxColumn(i)),s=0;if(n.at)switch(n.at){case b.RawAtArgument.Top:s=3;break;case b.RawAtArgument.Center:s=1;break;case b.RawAtArgument.Bottom:s=4;break;default:break}var a=e.context.convertModelRangeToViewRange(o);e.revealRange(t.source,!1,a,s,0)},t}(B))),e.SelectAll=Object(o["g"])(new(function(e){function t(){return e.call(this,{id:"selectAll",precondition:void 0})||this}return x(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,[_.selectAll(e.context,e.getPrimaryCursor())])},t}(B))),e.SetSelection=Object(o["g"])(new(function(e){function t(){return e.call(this,{id:"setSelection",precondition:void 0})||this}return x(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,[a["d"].fromModelSelection(t.selection)])},t}(B)))}(w||(w={})),function(e){var t=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return x(t,e),t.prototype.runEditorCommand=function(e,t,n){var i=t._getCursors();i&&this.runCoreEditingCommand(t,i,n||{})},t}(o["c"]);e.CoreEditingCommand=t,e.LineBreakInsert=Object(o["g"])(new(function(e){function t(){return e.call(this,{id:"lineBreakInsert",precondition:L["a"].writable,kbOpts:{weight:O,kbExpr:L["a"].textInputFocus,primary:0,mac:{primary:301}}})||this}return x(t,e),t.prototype.runCoreEditingCommand=function(e,t,n){e.pushUndoStop(),e.executeCommands(this.id,S["a"].lineBreakInsert(t.context.config,t.context.model,t.getAll().map((function(e){return e.modelState.selection}))))},t}(t))),e.Outdent=Object(o["g"])(new(function(e){function t(){return e.call(this,{id:"outdent",precondition:L["a"].writable,kbOpts:{weight:O,kbExpr:E["a"].and(L["a"].editorTextFocus,L["a"].tabDoesNotMoveFocus),primary:1026}})||this}return x(t,e),t.prototype.runCoreEditingCommand=function(e,t,n){e.pushUndoStop(),e.executeCommands(this.id,S["a"].outdent(t.context.config,t.context.model,t.getAll().map((function(e){return e.modelState.selection})))),e.pushUndoStop()},t}(t))),e.Tab=Object(o["g"])(new(function(e){function t(){return e.call(this,{id:"tab",precondition:L["a"].writable,kbOpts:{weight:O,kbExpr:E["a"].and(L["a"].editorTextFocus,L["a"].tabDoesNotMoveFocus),primary:2}})||this}return x(t,e),t.prototype.runCoreEditingCommand=function(e,t,n){e.pushUndoStop(),e.executeCommands(this.id,S["a"].tab(t.context.config,t.context.model,t.getAll().map((function(e){return e.modelState.selection})))),e.pushUndoStop()},t}(t))),e.DeleteLeft=Object(o["g"])(new(function(e){function t(){return e.call(this,{id:"deleteLeft",precondition:L["a"].writable,kbOpts:{weight:O,kbExpr:L["a"].textInputFocus,primary:1,secondary:[1025],mac:{primary:1,secondary:[1025,294,257]}}})||this}return x(t,e),t.prototype.runCoreEditingCommand=function(e,t,n){var i=d["a"].deleteLeft(t.getPrevEditOperationType(),t.context.config,t.context.model,t.getAll().map((function(e){return e.modelState.selection}))),r=i[0],o=i[1];r&&e.pushUndoStop(),e.executeCommands(this.id,o),t.setPrevEditOperationType(2)},t}(t))),e.DeleteRight=Object(o["g"])(new(function(e){function t(){return e.call(this,{id:"deleteRight",precondition:L["a"].writable,kbOpts:{weight:O,kbExpr:L["a"].textInputFocus,primary:20,mac:{primary:20,secondary:[290,276]}}})||this}return x(t,e),t.prototype.runCoreEditingCommand=function(e,t,n){var i=d["a"].deleteRight(t.getPrevEditOperationType(),t.context.config,t.context.model,t.getAll().map((function(e){return e.modelState.selection}))),r=i[0],o=i[1];r&&e.pushUndoStop(),e.executeCommands(this.id,o),t.setPrevEditOperationType(3)},t}(t)))}(C||(C={}));var D=function(e){function t(t){var n=e.call(this,t)||this;return n._editorHandler=t.editorHandler,n._inputHandler=t.inputHandler,n}return x(t,e),t.prototype.runCommand=function(e,t){var n=e.get(s["a"]).getFocusedCodeEditor();if(n&&n.hasTextFocus())return this._runEditorHandler(e,n,t);var i=document.activeElement;if(!(i&&["input","textarea"].indexOf(i.tagName.toLowerCase())>=0)){var r=e.get(s["a"]).getActiveCodeEditor();return r?(r.focus(),this._runEditorHandler(e,r,t)):void 0}document.execCommand(this._inputHandler)},t.prototype._runEditorHandler=function(e,t,n){var i=this._editorHandler;"string"===typeof i?t.trigger("keyboard",i,n):(n=n||{},n.source="keyboard",i.runEditorCommand(e,t,n))},t}(o["a"]),I=function(e){function t(t,n,i){var r=e.call(this,{id:t,precondition:void 0,description:i})||this;return r._handlerId=n,r}return x(t,e),t.prototype.runCommand=function(e,t){var n=e.get(s["a"]).getFocusedCodeEditor();n&&n.trigger("keyboard",this._handlerId,t)},t}(o["a"]);function M(e,t){k(new I("default:"+e,e)),k(new I(e,e,t))}k(new D({editorHandler:w.SelectAll,inputHandler:"selectAll",id:"editor.action.selectAll",precondition:L["a"].textInputFocus,kbOpts:{weight:O,kbExpr:null,primary:2079},menuOpts:{menuId:25,group:"1_basic",title:i["a"]({key:"miSelectAll",comment:["&& denotes a mnemonic"]},"&&Select All"),order:1}})),k(new D({editorHandler:N["b"].Undo,inputHandler:"undo",id:N["b"].Undo,precondition:L["a"].writable,kbOpts:{weight:O,kbExpr:L["a"].textInputFocus,primary:2104},menuOpts:{menuId:17,group:"1_do",title:i["a"]({key:"miUndo",comment:["&& denotes a mnemonic"]},"&&Undo"),order:1}})),k(new I("default:"+N["b"].Undo,N["b"].Undo)),k(new D({editorHandler:N["b"].Redo,inputHandler:"redo",id:N["b"].Redo,precondition:L["a"].writable,kbOpts:{weight:O,kbExpr:L["a"].textInputFocus,primary:2103,secondary:[3128],mac:{primary:3128}},menuOpts:{menuId:17,group:"1_do",title:i["a"]({key:"miRedo",comment:["&& denotes a mnemonic"]},"&&Redo"),order:2}})),k(new I("default:"+N["b"].Redo,N["b"].Redo)),M(N["b"].Type,{description:"Type",args:[{name:"args",schema:{type:"object",required:["text"],properties:{text:{type:"string"}}}}]}),M(N["b"].ReplacePreviousChar),M(N["b"].CompositionStart),M(N["b"].CompositionEnd),M(N["b"].Paste),M(N["b"].Cut)},"1lwE":function(e,t,n){"use strict";n.r(t);var i=n("+hIS");Object(i["a"])({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:function(){return n.e(189).then(n.bind(null,"cOMg"))}})},"1n7x":function(e,t,n){(function(t,i){(function(t,i){e.exports=i(n("5RHE"),n("wOnQ"))})(0,(function(e,n){"use strict";e=e&&e.hasOwnProperty("default")?e["default"]:e,n=n&&n.hasOwnProperty("default")?n["default"]:n;var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},s=function(e){var t="undefined"===typeof e?"undefined":r(e);return"undefined"===t?"undefined":"string"===t||e instanceof String?"string":"number"===t||e instanceof Number?"number":"function"===t||e instanceof Function?"function":e&&e.constructor===Array?"array":e&&1===e.nodeType?"element":"object"===t?"object":"unknown"},a=function(e,t){var n=document.createElement(e);if(t.className&&(n.className=t.className),t.innerHTML){n.innerHTML=t.innerHTML;for(var i=n.getElementsByTagName("script"),r=i.length;r-- >0;null)i[r].parentNode.removeChild(i[r])}for(var o in t.style)n.style[o]=t.style[o];return n},u=function e(t,n){for(var i=3===t.nodeType?document.createTextNode(t.nodeValue):t.cloneNode(!1),r=t.firstChild;r;r=r.nextSibling)!0!==n&&1===r.nodeType&&"SCRIPT"===r.nodeName||i.appendChild(e(r,n));return 1===t.nodeType&&("CANVAS"===t.nodeName?(i.width=t.width,i.height=t.height,i.getContext("2d").drawImage(t,0,0)):"TEXTAREA"!==t.nodeName&&"SELECT"!==t.nodeName||(i.value=t.value),i.addEventListener("load",(function(){i.scrollTop=t.scrollTop,i.scrollLeft=t.scrollLeft}),!0)),i},l=function(e,t){if("number"===s(e))return 72*e/96/t;var n={};for(var i in e)n[i]=72*e[i]/96/t;return n},c=function(e,t){return Math.floor(e*t/72*96)},d="undefined"!==typeof window?window:"undefined"!==typeof t?t:"undefined"!==typeof self?self:{};function h(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function f(e,t){return t={exports:{}},e(t,t.exports),t.exports}var p=f((function(e,t){(function(t,n){e.exports=n()})(0,(function(){function e(e){var t=typeof e;return null!==e&&("object"===t||"function"===t)}function t(e){return"function"===typeof e}var n=void 0;n=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)};var r=n,o=0,s=void 0,a=void 0,u=function(e,t){C[o]=e,C[o+1]=t,o+=2,2===o&&(a?a(S):L())};function l(e){a=e}function c(e){u=e}var f="undefined"!==typeof window?window:void 0,p=f||{},g=p.MutationObserver||p.WebKitMutationObserver,A="undefined"===typeof self&&"undefined"!==typeof i&&"[object process]"==={}.toString.call(i),m="undefined"!==typeof Uint8ClampedArray&&"undefined"!==typeof importScripts&&"undefined"!==typeof MessageChannel;function v(){return function(){return i.nextTick(S)}}function _(){return"undefined"!==typeof s?function(){s(S)}:w()}function y(){var e=0,t=new g(S),n=document.createTextNode("");return t.observe(n,{characterData:!0}),function(){n.data=e=++e%2}}function b(){var e=new MessageChannel;return e.port1.onmessage=S,function(){return e.port2.postMessage(0)}}function w(){var e=setTimeout;return function(){return e(S,1)}}var C=new Array(1e3);function S(){for(var e=0;e<o;e+=2){var t=C[e],n=C[e+1];t(n),C[e]=void 0,C[e+1]=void 0}o=0}function N(){try{var e=Function("return this")().require("vertx");return s=e.runOnLoop||e.runOnContext,_()}catch(t){return w()}}var L=void 0;function E(e,t){var n=this,i=new this.constructor(B);void 0===i[O]&&$(i);var r=n._state;if(r){var o=arguments[r-1];u((function(){return X(r,i,o,n._result)}))}else K(n,i,e,t);return i}function x(e){var t=this;if(e&&"object"===typeof e&&e.constructor===t)return e;var n=new t(B);return Q(n,e),n}L=A?v():g?y():m?b():void 0===f&&"function"===typeof h?N():w();var O=Math.random().toString(36).substring(2);function B(){}var k=void 0,D=1,I=2,M={error:null};function F(){return new TypeError("You cannot resolve a promise with itself")}function T(){return new TypeError("A promises callback cannot return that same promise.")}function R(e){try{return e.then}catch(t){return M.error=t,M}}function P(e,t,n,i){try{e.call(t,n,i)}catch(r){return r}}function U(e,t,n){u((function(e){var i=!1,r=P(n,t,(function(n){i||(i=!0,t!==n?Q(e,n):W(e,n))}),(function(t){i||(i=!0,z(e,t))}),"Settle: "+(e._label||" unknown promise"));!i&&r&&(i=!0,z(e,r))}),e)}function H(e,t){t._state===D?W(e,t._result):t._state===I?z(e,t._result):K(t,void 0,(function(t){return Q(e,t)}),(function(t){return z(e,t)}))}function j(e,n,i){n.constructor===e.constructor&&i===E&&n.constructor.resolve===x?H(e,n):i===M?(z(e,M.error),M.error=null):void 0===i?W(e,n):t(i)?U(e,n,i):W(e,n)}function Q(t,n){t===n?z(t,F()):e(n)?j(t,n,R(n)):W(t,n)}function V(e){e._onerror&&e._onerror(e._result),q(e)}function W(e,t){e._state===k&&(e._result=t,e._state=D,0!==e._subscribers.length&&u(q,e))}function z(e,t){e._state===k&&(e._state=I,e._result=t,u(V,e))}function K(e,t,n,i){var r=e._subscribers,o=r.length;e._onerror=null,r[o]=t,r[o+D]=n,r[o+I]=i,0===o&&e._state&&u(q,e)}function q(e){var t=e._subscribers,n=e._state;if(0!==t.length){for(var i=void 0,r=void 0,o=e._result,s=0;s<t.length;s+=3)i=t[s],r=t[s+n],i?X(n,i,r,o):r(o);e._subscribers.length=0}}function G(e,t){try{return e(t)}catch(n){return M.error=n,M}}function X(e,n,i,r){var o=t(i),s=void 0,a=void 0,u=void 0,l=void 0;if(o){if(s=G(i,r),s===M?(l=!0,a=s.error,s.error=null):u=!0,n===s)return void z(n,T())}else s=r,u=!0;n._state!==k||(o&&u?Q(n,s):l?z(n,a):e===D?W(n,s):e===I&&z(n,s))}function Y(e,t){try{t((function(t){Q(e,t)}),(function(t){z(e,t)}))}catch(n){z(e,n)}}var J=0;function Z(){return J++}function $(e){e[O]=J++,e._state=void 0,e._result=void 0,e._subscribers=[]}function ee(){return new Error("Array Methods must be provided an Array")}var te=function(){function e(e,t){this._instanceConstructor=e,this.promise=new e(B),this.promise[O]||$(this.promise),r(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?W(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&W(this.promise,this._result))):z(this.promise,ee())}return e.prototype._enumerate=function(e){for(var t=0;this._state===k&&t<e.length;t++)this._eachEntry(e[t],t)},e.prototype._eachEntry=function(e,t){var n=this._instanceConstructor,i=n.resolve;if(i===x){var r=R(e);if(r===E&&e._state!==k)this._settledAt(e._state,t,e._result);else if("function"!==typeof r)this._remaining--,this._result[t]=e;else if(n===ae){var o=new n(B);j(o,e,r),this._willSettleAt(o,t)}else this._willSettleAt(new n((function(t){return t(e)})),t)}else this._willSettleAt(i(e),t)},e.prototype._settledAt=function(e,t,n){var i=this.promise;i._state===k&&(this._remaining--,e===I?z(i,n):this._result[t]=n),0===this._remaining&&W(i,this._result)},e.prototype._willSettleAt=function(e,t){var n=this;K(e,void 0,(function(e){return n._settledAt(D,t,e)}),(function(e){return n._settledAt(I,t,e)}))},e}();function ne(e){return new te(this,e).promise}function ie(e){var t=this;return r(e)?new t((function(n,i){for(var r=e.length,o=0;o<r;o++)t.resolve(e[o]).then(n,i)})):new t((function(e,t){return t(new TypeError("You must pass an array to race."))}))}function re(e){var t=this,n=new t(B);return z(n,e),n}function oe(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function se(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var ae=function(){function e(t){this[O]=Z(),this._result=this._state=void 0,this._subscribers=[],B!==t&&("function"!==typeof t&&oe(),this instanceof e?Y(this,t):se())}return e.prototype.catch=function(e){return this.then(null,e)},e.prototype.finally=function(e){var n=this,i=n.constructor;return t(e)?n.then((function(t){return i.resolve(e()).then((function(){return t}))}),(function(t){return i.resolve(e()).then((function(){throw t}))})):n.then(e,e)},e}();function ue(){var e=void 0;if("undefined"!==typeof d)e=d;else if("undefined"!==typeof self)e=self;else try{e=Function("return this")()}catch(i){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var n=null;try{n=Object.prototype.toString.call(t.resolve())}catch(i){}if("[object Promise]"===n&&!t.cast)return}e.Promise=ae}return ae.prototype.then=E,ae.all=ne,ae.race=ie,ae.resolve=x,ae.reject=re,ae._setScheduler=l,ae._setAsap=c,ae._asap=u,ae.polyfill=ue,ae.Promise=ae,ae}))})),g=p.Promise,A=function e(t){var n=o(e.convert(g.resolve()),JSON.parse(JSON.stringify(e.template))),i=e.convert(g.resolve(),n);return i=i.setProgress(1,e,1,[e]),i=i.set(t),i};A.prototype=Object.create(g.prototype),A.prototype.constructor=A,A.convert=function(e,t){return e.__proto__=t||A.prototype,e},A.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],image:{type:"jpeg",quality:.95},enableLinks:!0,html2canvas:{},jsPDF:{}}},A.prototype.from=function(e,t){function n(e){switch(s(e)){case"string":return"string";case"element":return"canvas"===e.nodeName.toLowerCase?"canvas":"element";default:return"unknown"}}return this.then((function(){switch(t=t||n(e),t){case"string":return this.set({src:a("div",{innerHTML:e})});case"element":return this.set({src:e});case"canvas":return this.set({canvas:e});case"img":return this.set({img:e});default:return this.error("Unknown source type.")}}))},A.prototype.to=function(e){switch(e){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},A.prototype.toContainer=function(){var e=[function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(e).then((function(){var e={position:"fixed",overflow:"hidden",zIndex:1e3,left:0,right:0,bottom:0,top:0,backgroundColor:"rgba(0,0,0,0.8)"},t={position:"absolute",width:this.prop.pageSize.inner.width+this.prop.pageSize.unit,left:0,right:0,top:0,height:"auto",margin:"auto",backgroundColor:"white"};e.opacity=0;var n=u(this.prop.src,this.opt.html2canvas.javascriptEnabled);this.prop.overlay=a("div",{className:"html2pdf__overlay",style:e}),this.prop.container=a("div",{className:"html2pdf__container",style:t}),this.prop.container.appendChild(n),this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay)}))},A.prototype.toCanvas=function(){var e=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(e).then((function(){var e=o({},this.opt.html2canvas);return delete e.onrendered,n(this.prop.container,e)})).then((function(e){var t=this.opt.html2canvas.onrendered||function(){};t(e),this.prop.canvas=e,document.body.removeChild(this.prop.overlay)}))},A.prototype.toImg=function(){var e=[function(){return this.prop.canvas||this.toCanvas()}];return this.thenList(e).then((function(){var e=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=e}))},A.prototype.toPdf=function(){var t=[function(){return this.prop.canvas||this.toCanvas()}];return this.thenList(t).then((function(){var t=this.prop.canvas,n=this.opt,i=t.height,r=Math.floor(t.width*this.prop.pageSize.inner.ratio),o=Math.ceil(i/r),s=this.prop.pageSize.inner.height,a=document.createElement("canvas"),u=a.getContext("2d");a.width=t.width,a.height=r,this.prop.pdf=this.prop.pdf||new e(n.jsPDF);for(var l=0;l<o;l++){l===o-1&&i%r!==0&&(a.height=i%r,s=a.height*this.prop.pageSize.inner.width/a.width);var c=a.width,d=a.height;u.fillStyle="white",u.fillRect(0,0,c,d),u.drawImage(t,0,l*r,c,d,0,0,c,d),l&&this.prop.pdf.addPage();var h=a.toDataURL("image/"+n.image.type,n.image.quality);this.prop.pdf.addImage(h,n.image.type,n.margin[1],n.margin[0],this.prop.pageSize.inner.width,s)}}))},A.prototype.output=function(e,t,n){return n=n||"pdf","img"===n.toLowerCase()||"image"===n.toLowerCase()?this.outputImg(e,t):this.outputPdf(e,t)},A.prototype.outputPdf=function(e,t){var n=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(n).then((function(){return this.prop.pdf.output(e,t)}))},A.prototype.outputImg=function(e,t){var n=[function(){return this.prop.img||this.toImg()}];return this.thenList(n).then((function(){switch(e){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+e+'" is not supported.'}}))},A.prototype.save=function(e){var t=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(t).set(e?{filename:e}:null).then((function(){this.prop.pdf.save(this.opt.filename)}))},A.prototype.set=function(e){if("object"!==s(e))return this;var t=Object.keys(e||{}).map((function(t){if(t in A.template.prop)return function(){this.prop[t]=e[t]};switch(t){case"margin":return this.setMargin.bind(this,e.margin);case"jsPDF":return function(){return this.opt.jsPDF=e.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,e.pageSize);default:return function(){this.opt[t]=e[t]}}}),this);return this.then((function(){return this.thenList(t)}))},A.prototype.get=function(e,t){return this.then((function(){var n=e in A.template.prop?this.prop[e]:this.opt[e];return t?t(n):n}))},A.prototype.setMargin=function(e){return this.then((function(){switch(s(e)){case"number":e=[e,e,e,e];case"array":if(2===e.length&&(e=[e[0],e[1],e[0],e[1]]),4===e.length)break;default:return this.error("Invalid margin array.")}this.opt.margin=e})).then(this.setPageSize)},A.prototype.setPageSize=function(t){return this.then((function(){t=t||e.getPageSize(this.opt.jsPDF),t.hasOwnProperty("inner")||(t.inner={width:t.width-this.opt.margin[1]-this.opt.margin[3],height:t.height-this.opt.margin[0]-this.opt.margin[2]},t.inner.px={width:c(t.inner.width,t.k),height:c(t.inner.height,t.k)},t.inner.ratio=t.inner.height/t.inner.width),this.prop.pageSize=t}))},A.prototype.setProgress=function(e,t,n,i){return null!=e&&(this.progress.val=e),null!=t&&(this.progress.state=t),null!=n&&(this.progress.n=n),null!=i&&(this.progress.stack=i),this.progress.ratio=this.progress.val/this.progress.state,this},A.prototype.updateProgress=function(e,t,n,i){return this.setProgress(e?this.progress.val+e:null,t||null,n?this.progress.n+n:null,i?this.progress.stack.concat(i):null)},A.prototype.then=function(e,t){var n=this;return this.thenCore(e,t,(function(e,t){return n.updateProgress(null,null,1,[e]),g.prototype.then.call(this,(function(t){return n.updateProgress(null,e),t})).then(e,t).then((function(e){return n.updateProgress(1),e}))}))},A.prototype.thenCore=function(e,t,n){n=n||g.prototype.then;var i=this;e&&(e=e.bind(i)),t&&(t=t.bind(i));var r=-1!==g.toString().indexOf("[native code]")&&"Promise"===g.name,s=r?i:A.convert(o({},i),g.prototype),a=n.call(s,e,t);return A.convert(a,i.__proto__)},A.prototype.thenExternal=function(e,t){return g.prototype.then.call(this,e,t)},A.prototype.thenList=function(e){var t=this;return e.forEach((function(e){t=t.thenCore(e)})),t},A.prototype["catch"]=function(e){e&&(e=e.bind(this));var t=g.prototype["catch"].call(this,e);return A.convert(t,this)},A.prototype.catchExternal=function(e){return g.prototype["catch"].call(this,e)},A.prototype.error=function(e){return this.then((function(){throw new Error(e)}))},A.prototype.using=A.prototype.set,A.prototype.saveAs=A.prototype.save,A.prototype.export=A.prototype.output,A.prototype.run=A.prototype.then,e.getPageSize=function(e,t,n){if("object"===("undefined"===typeof e?"undefined":r(e))){var i=e;e=i.orientation,t=i.unit||t,n=i.format||n}t=t||"mm",n=n||"a4",e=(""+(e||"P")).toLowerCase();var o=(""+n).toLowerCase(),s={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(t){case"pt":var a=1;break;case"mm":a=72/25.4;break;case"cm":a=72/2.54;break;case"in":a=72;break;case"px":a=.75;break;case"pc":a=12;break;case"em":a=12;break;case"ex":a=6;break;default:throw"Invalid unit: "+t}if(s.hasOwnProperty(o))var u=s[o][1]/a,l=s[o][0]/a;else try{u=n[1],l=n[0]}catch(h){throw new Error("Invalid format: "+n)}if("p"===e||"portrait"===e){if(e="p",l>u){var c=l;l=u,u=c}}else{if("l"!==e&&"landscape"!==e)throw"Invalid orientation: "+e;if(e="l",u>l){c=l;l=u,u=c}}var d={width:l,height:u,unit:t,k:a};return d};var m={toContainer:A.prototype.toContainer};A.template.opt.pagebreak={mode:["css","legacy"],before:[],after:[],avoid:[]},A.prototype.toContainer=function(){return m.toContainer.call(this).then((function(){var e=this.prop.container,t=this.prop.pageSize.inner.px.height,n=[].concat(this.opt.pagebreak.mode),i={avoidAll:-1!==n.indexOf("avoid-all"),css:-1!==n.indexOf("css"),legacy:-1!==n.indexOf("legacy")},r={},o=this;["before","after","avoid"].forEach((function(t){var n=i.avoidAll&&"avoid"===t;r[t]=n?[]:[].concat(o.opt.pagebreak[t]||[]),r[t].length>0&&(r[t]=Array.prototype.slice.call(e.querySelectorAll(r[t].join(", "))))}));var s=e.querySelectorAll(".html2pdf__page-break");s=Array.prototype.slice.call(s);var u=e.querySelectorAll("*");Array.prototype.forEach.call(u,(function(e){var n={before:!1,after:i.legacy&&-1!==s.indexOf(e),avoid:i.avoidAll};if(i.css){var o=window.getComputedStyle(e),u=["always","page","left","right"],l=["avoid","avoid-page"];n={before:n.before||-1!==u.indexOf(o.breakBefore||o.pageBreakBefore),after:n.after||-1!==u.indexOf(o.breakAfter||o.pageBreakAfter),avoid:n.avoid||-1!==l.indexOf(o.breakInside||o.pageBreakInside)}}Object.keys(n).forEach((function(t){n[t]=n[t]||-1!==r[t].indexOf(e)}));var c=e.getBoundingClientRect();if(n.avoid&&!n.before){var d=Math.floor(c.top/t),h=Math.floor(c.bottom/t),f=Math.abs(c.bottom-c.top)/t;h!==d&&f<=1&&(n.before=!0)}if(n.before){var p=a("div",{style:{display:"block",height:t-c.top%t+"px"}});e.parentNode.insertBefore(p,e)}if(n.after){p=a("div",{style:{display:"block",height:t-c.bottom%t+"px"}});e.parentNode.insertBefore(p,e.nextSibling)}}))}))};var v=[],_={toContainer:A.prototype.toContainer,toPdf:A.prototype.toPdf};A.prototype.toContainer=function(){return _.toContainer.call(this).then((function(){if(this.opt.enableLinks){var e=this.prop.container,t=e.querySelectorAll("a"),n=l(e.getBoundingClientRect(),this.prop.pageSize.k);v=[],Array.prototype.forEach.call(t,(function(e){for(var t=e.getClientRects(),i=0;i<t.length;i++){var r=l(t[i],this.prop.pageSize.k);r.left-=n.left,r.top-=n.top;var o=Math.floor(r.top/this.prop.pageSize.inner.height)+1,s=this.opt.margin[0]+r.top%this.prop.pageSize.inner.height,a=this.opt.margin[1]+r.left;v.push({page:o,top:s,left:a,clientRect:r,link:e})}}),this)}}))},A.prototype.toPdf=function(){return _.toPdf.call(this).then((function(){if(this.opt.enableLinks){v.forEach((function(e){this.prop.pdf.setPage(e.page),this.prop.pdf.link(e.left,e.top,e.clientRect.width,e.clientRect.height,{url:e.link.href})}),this);var e=this.prop.pdf.internal.getNumberOfPages();this.prop.pdf.setPage(e)}}))};var y=function e(t,n){var i=new e.Worker(n);return t?i.from(t).save():i};return y.Worker=A,y}))}).call(this,n("yLpj"),n("Q2Ig"))},"1vsH":function(e,t,n){"use strict";n.d(t,"g",(function(){return a})),n.d(t,"e",(function(){return u})),n.d(t,"d",(function(){return l})),n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return h})),n.d(t,"f",(function(){return f})),n.d(t,"r",(function(){return p})),n.d(t,"s",(function(){return g})),n.d(t,"t",(function(){return A})),n.d(t,"m",(function(){return m})),n.d(t,"l",(function(){return v})),n.d(t,"k",(function(){return _})),n.d(t,"j",(function(){return y})),n.d(t,"q",(function(){return b})),n.d(t,"h",(function(){return w})),n.d(t,"p",(function(){return C})),n.d(t,"n",(function(){return S})),n.d(t,"i",(function(){return N})),n.d(t,"o",(function(){return L}));var i=n("q1tI"),r=n.n(i),o=n("aCH8"),s=n.n(o),a=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],u=e=>{var t={"\u5df2\u622a\u6b62":{class:"tag-style bg-pink ml10"},"\u63d0\u4ea4\u4e2d":{class:"tag-style bg-blue ml10"},"\u672a\u53d1\u5e03":{class:"tag-style bg-blue ml10"},"\u8865\u4ea4\u4e2d":{class:"tag-style bg-blue ml10"}};return e.data&&e.data.map((function(e,n){return r.a.createElement("span",{key:n,className:t[e]&&t[e]["class"]},e)}))},l=e=>{var t=e.status,n={0:{class:"tag-style bg-blue ml10",name:"\u5f85\u9009\u4e2d"},1:{class:"tag-style bg-blue ml10",name:"\u5f85\u786e\u8ba4"},2:{class:"tag-style bg-pink ml10",name:"\u5df2\u786e\u8ba4"}};try{return r.a.createElement("span",{className:n[t]["class"]},n[t]["name"])}catch(i){console.log("utils.StatusGraduationProjectTags",e.status)}},c={1:"\u672a\u53d1\u5e03",2:"\u8003\u8bd5\u4e2d",3:"\u5df2\u622a\u6b62",4:"\u5df2\u7ed3\u675f"},d={1:"\u672a\u53d1\u5e03",2:"\u63d0\u4ea4\u4e2d",3:"\u5df2\u622a\u6b62",4:"\u5df2\u7ed3\u675f"},h=e=>{e.status;var t={"\u516c\u5f00":{class:"tag-style bg-blue ml10"},"\u5df2\u5f00\u542f\u8865\u4ea4":{class:"tag-style bg-green ml10"},"\u672a\u5f00\u542f\u8865\u4ea4":{class:"tag-style bg-pink ml10"},"\u672a\u53d1\u5e03":{class:"tag-style bg-light-blue ml10"},"\u533f\u540d\u4f5c\u54c1":{class:"tag-style bg-cyan ml10"},"\u5df2\u9009\u62e9":{class:"tag-style bg-grey-ede ml10"},"\u5df2\u7ed3\u675f":{class:"tag-style bg-grey-ede ml10"},"\u63d0\u4ea4\u4e2d":{class:"tag-style bg-blue ml10"},"\u533f\u8bc4\u4e2d":{class:"tag-style bg-blue ml10"},"\u7533\u8bc9\u4e2d":{class:"tag-style bg-blue ml10"},"\u8003\u8bd5\u4e2d":{class:"tag-style bg-light-blue ml10"},"\u8865\u4ea4\u4e2d":{class:"tag-style bg-blue ml10"},"\u8bc4\u9605\u4e2d":{class:"tag-style bg-blue ml10"},"\u5f85\u9009\u4e2d":{class:"tag-style bg-blue ml10"},"\u4ea4\u53c9\u8bc4\u9605\u4e2d":{class:"tag-style bg-light-orange ml10"},"\u5df2\u5f00\u542f\u4ea4\u53c9\u8bc4\u9605":{class:"tag-style bg-lightblue-purple ml10"},"\u5f85\u786e\u8ba4":{class:"tag-style bg-lightblue-purple ml10"},"\u5f85\u5904\u7406":{class:"tag-style bg-lightblue-purple ml10"},"\u79c1\u6709":{class:"tag-style bg-lightblue-purple ml10"},"\u672a\u63d0\u4ea4":{class:"tag-style bg-lightblue-purple ml10"},"\u5df2\u786e\u8ba4":{class:"tag-style bg-light-pink ml10"},"\u5df2\u53d1\u5e03":{class:"tag-style bg-light-blue ml10"},"\u5df2\u622a\u6b62":{class:"tag-style bg-light-pink ml10"},"\u5f00\u53d1\u8bfe\u7a0b":{class:"tag-style bg-orange ml10"},"\u5df2\u5f00\u64ad":{class:"tag-style-border border-green c-green ml10"},"\u672a\u5f00\u64ad":{class:"tag-style-border border-light-black ml10"},"\u6309\u65f6\u901a\u5173":{class:"tag-style-border border-light-black ml10"},"\u8fdf\u4ea4\u901a\u5173":{class:"tag-style-border border-light-black ml10"},"\u672a\u901a\u5173":{class:"tag-style-border border-light-black ml10"},"\u672a\u5f00\u542f":{class:"tag-style-border border-light-black ml10"}},n=[];e.is_random&&n.push(r.a.createElement("span",{className:"tag-style bg-blue ml10"},"\u968f\u673a"));try{e.status&&e.status.map((e,i)=>{n.push(r.a.createElement("span",{key:i,className:t[e]&&t[e]["class"]},e))})}catch(i){console.log("utils.status.tag:",i,e.status)}return n},f=e=>{var t={[-1]:{name:"\u91cd\u505a\u4e2d",class:"c-orange"},0:{name:"\u672a\u63d0\u4ea4",class:"c-red"},1:{name:"\u672a\u901a\u5173",class:"c-red"},2:{name:"\u6309\u65f6\u901a\u5173",class:"c-green"},3:{name:"\u8fdf\u4ea4\u901a\u5173",class:"c-orange"}};return r.a.createElement("span",{className:t[e.status]["class"]},t[e.status]["name"])},p=(e,t)=>{"string"==typeof e&&(e.indexOf("T")>=0&&(e=e.replace("T"," ")),e=new Date(Date.parse(e.replace(/-/g,"/")))),e=new Date(e);var n={"M+":e.getMonth()+1,"d+":e.getDate(),"h+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds(),"q+":Math.floor((e.getMonth()+3)/3),S:e.getMilliseconds()},i=[["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"],["\u5468\u65e5","\u5468\u4e00","\u5468\u4e8c","\u5468\u4e09","\u5468\u56db","\u5468\u4e94","\u5468\u516d"],["\u661f\u671f\u65e5","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u661f\u671f\u4e09","\u661f\u671f\u56db","\u661f\u671f\u4e94","\u661f\u671f\u516d"]];for(var r in/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(e.getFullYear()+"").substr(4-RegExp.$1.length))),/(w+)/.test(t)&&(t=t.replace(RegExp.$1,i[RegExp.$1.length-1][e.getDay()])),n)new RegExp("("+r+")").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?n[r]:("00"+n[r]).substr((""+n[r]).length)));return t},g=e=>{if(!e)return"0";var t=60,n=60*t,i=24*n,r=e/i,o=e/n,s=e/t;return r>=1?parseInt(r.toString())+"\u5929"+Math.floor(o%24)+"\u65f6"+Math.floor(s%60)+"\u5206"+Math.floor(e%60)+"\u79d2":o>1?parseInt(o.toString())+"\u65f6"+Math.floor(s%60)+"\u5206"+Math.floor(e%60)+"\u79d2":s>=1?parseInt(s.toString())+"\u5206"+Math.floor(e%60)+"\u79d2":e+"\u79d2"},A=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,n=0;if(e){n=e.length;for(var i=0;i<n;i++){var r=e.charCodeAt(i);r>=55296&&r<=56319&&(n--,i++)}}return n<=t},m=(e,t,n)=>{if(t){var i=/[`~!@#$%^&*()\-+=<>?:"{}|,.\/;'\\[\]\xb7~\uff01@#\uffe5%\u2026\u2026&*\uff08\uff09\u2014\u2014\-+={}|\u300a\u300b\uff1f\uff1a\u201c\u201d\u3010\u3011\u3001\uff1b\u2018\u2019\uff0c\u3002\u3001]/im,r=/[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF][\u200D|\uFE0F]|[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF]|[0-9|*|#]\uFE0F\u20E3|[0-9|#]\u20E3|[\u203C-\u3299]\uFE0F\u200D|[\u203C-\u3299]\uFE0F|[\u2122-\u2B55]|\u303D|[\A9|\AE]\u3030|\uA9|\uAE|\u3030/gi,o=r.test(t),s=i.test(t);(!0===o||!0===s||t.length<2||t.length>=21)&&n("2-20\u4f4d\u4e2d\u82f1\u6587\u3001\u6570\u5b57\u53ca\u4e0b\u5212\u7ebf")}n()},v=(e,t,n)=>{if(t){var i=/[`~!@#$%^&()_\-+=<>?:"{}|,.\/;'\\[\]\xb7~\uff01@#\uffe5%\u2026\u2026&\uff08\uff09\u2014\u2014\-+={}|\u300a\u300b\uff1f\uff1a\u201c\u201d\u3010\u3011\u3001\uff1b\u2018\u2019\uff0c\u3002\u3001]/im,r=/[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF][\u200D|\uFE0F]|[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF]|[0-9|*|#]\uFE0F\u20E3|[0-9|#]\u20E3|[\u203C-\u3299]\uFE0F\u200D|[\u203C-\u3299]\uFE0F|[\u2122-\u2B55]|\u303D|[\A9|\AE]\u3030|\uA9|\uAE|\u3030/gi,o=r.test(t),s=i.test(t);(!0===o||!0===s||t.length<2||t.length>=11)&&n("2-10\u4f4d\u4e2d\u82f1\u6587\u3001\u6570\u5b57")}n()},_=e=>{if(!e)return"";for(var t=e.length-1,n="",i=0;i<t;i++)n+="*";var r=e.substr(0,1)+n;return r},y=(e,t)=>{var n=new FileReader;n.addEventListener("load",()=>t(n.result)),n.readAsDataURL(e)};function b(e){var t="79e33abd4b6588941ab7622aed1e67e8";return s()(t+e)}function w(e,t){var n=document.createElement("a");document.body.appendChild(n),n.href=t,n.download=e;var i=document.createEvent("MouseEvents");i.initEvent("click",!1,!1),n.dispatchEvent(i),document.body.removeChild(n)}var C=e=>{var t=e.url,n=e.query;if(!t)return"";if(n){var i=[];for(var r in n)n.hasOwnProperty(r)&&i.push("".concat(r,"=").concat(n[r]));t=-1!==t.indexOf("?")?"".concat(t,"&").concat(i.join("&")):"".concat(t,"?").concat(i.join("&"))}return t};function S(){for(var e=navigator.userAgent,t=["Android","iPhone","SymbianOS","Windows Phone","iPad","iPod"],n=!0,i=0;i<t.length;i++)if(e.indexOf(t[i])>0){n=!1;break}return n}var N=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return null===t||void 0===t||null===(e=t.toString())||void 0===e?void 0:e.replace(/\B(?=(\d{3})+(?!\d))/g,",")},L=e=>{var t=document.createElement("a");t.target="_blank",document.body.appendChild(t),t.href=e;var n=document.createEvent("MouseEvents");n.initEvent("click",!1,!1),t.dispatchEvent(n),document.body.removeChild(t)}},"23p7":function(e,t,n){"use strict";n.r(t);var i=n("+hIS");Object(i["a"])({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:function(){return n.e(142).then(n.bind(null,"aA7r"))}})},"24hK":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n("JYp7"),r=function(){function e(t){this.element=t,this.next=e.Undefined,this.prev=e.Undefined}return e.Undefined=new e(void 0),e}(),o=function(){function e(){this._first=r.Undefined,this._last=r.Undefined,this._size=0}return Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),e.prototype.isEmpty=function(){return this._first===r.Undefined},e.prototype.clear=function(){this._first=r.Undefined,this._last=r.Undefined,this._size=0},e.prototype.unshift=function(e){return this._insert(e,!1)},e.prototype.push=function(e){return this._insert(e,!0)},e.prototype._insert=function(e,t){var n=this,i=new r(e);if(this._first===r.Undefined)this._first=i,this._last=i;else if(t){var o=this._last;this._last=i,i.prev=o,o.next=i}else{var s=this._first;this._first=i,i.next=s,s.prev=i}this._size+=1;var a=!1;return function(){a||(a=!0,n._remove(i))}},e.prototype.shift=function(){if(this._first!==r.Undefined){var e=this._first.element;return this._remove(this._first),e}},e.prototype.pop=function(){if(this._last!==r.Undefined){var e=this._last.element;return this._remove(this._last),e}},e.prototype._remove=function(e){if(e.prev!==r.Undefined&&e.next!==r.Undefined){var t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===r.Undefined&&e.next===r.Undefined?(this._first=r.Undefined,this._last=r.Undefined):e.next===r.Undefined?(this._last=this._last.prev,this._last.next=r.Undefined):e.prev===r.Undefined&&(this._first=this._first.next,this._first.prev=r.Undefined);this._size-=1},e.prototype.iterator=function(){var e,t=this._first;return{next:function(){return t===r.Undefined?i["b"]:(e?e.value=t.element:e={done:!1,value:t.element},t=t.next,e)}}},e.prototype.toArray=function(){for(var e=[],t=this._first;t!==r.Undefined;t=t.next)e.push(t.element);return e},e}()},"2MPD":function(e,t,n){},"2Tsy":function(e,t,n){},"2V9f":function(e,t,n){},"3/fG":function(e,t,n){"use strict";function i(e,t){var n;return n=0===t.length?e:e.replace(/\{(\d+)\}/g,(function(e,n){var i=n[0];return"undefined"!==typeof t[i]?t[i]:e})),n}function r(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return i(t,n)}n.d(t,"a",(function(){return r}))},"3Rsk":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n("ic2d"),r=n("MI8n"),o={JSONContribution:"base.contributions.json"};function s(e){return e.length>0&&"#"===e.charAt(e.length-1)?e.substring(0,e.length-1):e}var a=function(){function e(){this._onDidChangeSchema=new r["a"],this.schemasById={}}return e.prototype.registerSchema=function(e,t){this.schemasById[s(e)]=t,this._onDidChangeSchema.fire(e)},e.prototype.notifySchemaChanged=function(e){this._onDidChangeSchema.fire(e)},e}(),u=new a;i["a"].add(o.JSONContribution,u)},"3qCu":function(e,t,n){"use strict";n.d(t,"a",(function(){return k}));var i,r=n("EffR"),o=n("Md8J"),s=n("/cxE"),a=n("eLzo"),u=n("nD70");(function(e){var t={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:m,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,nptable:m,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|<![A-Z][\\s\\S]*?>\\n*|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>\\n*|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,table:m,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading| {0,3}>|<\/?(?:tag)(?: +|\n|\/?>)|<(?:script|pre|style|!--))[^\n]+)*)/,text:/^[^\n]+/};function n(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||w.defaults,this.rules=t.normal,this.options.pedantic?this.rules=t.pedantic:this.options.gfm&&(this.options.tables?this.rules=t.tables:this.rules=t.gfm)}t._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,t._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,t.def=h(t.def).replace("label",t._label).replace("title",t._title).getRegex(),t.bullet=/(?:[*+-]|\d{1,9}\.)/,t.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,t.item=h(t.item,"gm").replace(/bull/g,t.bullet).getRegex(),t.list=h(t.list).replace(/bull/g,t.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+t.def.source+")").getRegex(),t._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",t._comment=/<!--(?!-?>)[\s\S]*?-->/,t.html=h(t.html,"i").replace("comment",t._comment).replace("tag",t._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),t.paragraph=h(t.paragraph).replace("hr",t.hr).replace("heading",t.heading).replace("lheading",t.lheading).replace("tag",t._tag).getRegex(),t.blockquote=h(t.blockquote).replace("paragraph",t.paragraph).getRegex(),t.normal=v({},t),t.gfm=v({},t.normal,{fences:/^ {0,3}(`{3,}|~{3,})([^`\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/}),t.gfm.paragraph=h(t.paragraph).replace("(?!","(?!"+t.gfm.fences.source.replace("\\1","\\2")+"|"+t.list.source.replace("\\1","\\3")+"|").getRegex(),t.tables=v({},t.gfm,{nptable:/^ *([^|\n ].*\|.*)\n *([-:]+ *\|[-| :]*)(?:\n((?:.*[^>\n ].*(?:\n|$))*)\n*|$)/,table:/^ *\|(.+)\n *\|?( *[-:]+[-| :]*)(?:\n((?: *[^>\n ].*(?:\n|$))*)\n*|$)/}),t.pedantic=v({},t.normal,{html:h("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",t._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+|$)/}),n.rules=t,n.lex=function(e,t){var i=new n(t);return i.lex(e)},n.prototype.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)},n.prototype.token=function(e,n){var i,r,o,s,a,u,l,c,d,h,f,p,g,A,m,v;e=e.replace(/^ +$/gm,"");while(e)if((o=this.rules.newline.exec(e))&&(e=e.substring(o[0].length),o[0].length>1&&this.tokens.push({type:"space"})),o=this.rules.code.exec(e))e=e.substring(o[0].length),o=o[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",text:this.options.pedantic?o:y(o,"\n")});else if(o=this.rules.fences.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"code",lang:o[2]?o[2].trim():o[2],text:o[3]||""});else if(o=this.rules.heading.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"heading",depth:o[1].length,text:o[2]});else if((o=this.rules.nptable.exec(e))&&(u={type:"table",header:_(o[1].replace(/^ *| *\| *$/g,"")),align:o[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:o[3]?o[3].replace(/\n$/,"").split("\n"):[]},u.header.length===u.align.length)){for(e=e.substring(o[0].length),f=0;f<u.align.length;f++)/^ *-+: *$/.test(u.align[f])?u.align[f]="right":/^ *:-+: *$/.test(u.align[f])?u.align[f]="center":/^ *:-+ *$/.test(u.align[f])?u.align[f]="left":u.align[f]=null;for(f=0;f<u.cells.length;f++)u.cells[f]=_(u.cells[f],u.header.length);this.tokens.push(u)}else if(o=this.rules.hr.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"hr"});else if(o=this.rules.blockquote.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"blockquote_start"}),o=o[0].replace(/^ *> ?/gm,""),this.token(o,n),this.tokens.push({type:"blockquote_end"});else if(o=this.rules.list.exec(e)){for(e=e.substring(o[0].length),s=o[2],A=s.length>1,l={type:"list_start",ordered:A,start:A?+s:"",loose:!1},this.tokens.push(l),o=o[0].match(this.rules.item),c=[],i=!1,g=o.length,f=0;f<g;f++)u=o[f],h=u.length,u=u.replace(/^ *([*+-]|\d+\.) */,""),~u.indexOf("\n ")&&(h-=u.length,u=this.options.pedantic?u.replace(/^ {1,4}/gm,""):u.replace(new RegExp("^ {1,"+h+"}","gm"),"")),f!==g-1&&(a=t.bullet.exec(o[f+1])[0],(s.length>1?1===a.length:a.length>1||this.options.smartLists&&a!==s)&&(e=o.slice(f+1).join("\n")+e,f=g-1)),r=i||/\n\n(?!\s*$)/.test(u),f!==g-1&&(i="\n"===u.charAt(u.length-1),r||(r=i)),r&&(l.loose=!0),m=/^\[[ xX]\] /.test(u),v=void 0,m&&(v=" "!==u[1],u=u.replace(/^\[[ xX]\] +/,"")),d={type:"list_item_start",task:m,checked:v,loose:r},c.push(d),this.tokens.push(d),this.token(u,!1),this.tokens.push({type:"list_item_end"});if(l.loose)for(g=c.length,f=0;f<g;f++)c[f].loose=!0;this.tokens.push({type:"list_end"})}else if(o=this.rules.html.exec(e))e=e.substring(o[0].length),this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&("pre"===o[1]||"script"===o[1]||"style"===o[1]),text:o[0]});else if(n&&(o=this.rules.def.exec(e)))e=e.substring(o[0].length),o[3]&&(o[3]=o[3].substring(1,o[3].length-1)),p=o[1].toLowerCase().replace(/\s+/g," "),this.tokens.links[p]||(this.tokens.links[p]={href:o[2],title:o[3]});else if((o=this.rules.table.exec(e))&&(u={type:"table",header:_(o[1].replace(/^ *| *\| *$/g,"")),align:o[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:o[3]?o[3].replace(/\n$/,"").split("\n"):[]},u.header.length===u.align.length)){for(e=e.substring(o[0].length),f=0;f<u.align.length;f++)/^ *-+: *$/.test(u.align[f])?u.align[f]="right":/^ *:-+: *$/.test(u.align[f])?u.align[f]="center":/^ *:-+ *$/.test(u.align[f])?u.align[f]="left":u.align[f]=null;for(f=0;f<u.cells.length;f++)u.cells[f]=_(u.cells[f].replace(/^ *\| *| *\| *$/g,""),u.header.length);this.tokens.push(u)}else if(o=this.rules.lheading.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"heading",depth:"="===o[2]?1:2,text:o[1]});else if(n&&(o=this.rules.paragraph.exec(e)))e=e.substring(o[0].length),this.tokens.push({type:"paragraph",text:"\n"===o[1].charAt(o[1].length-1)?o[1].slice(0,-1):o[1]});else if(o=this.rules.text.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"text",text:o[0]});else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0));return this.tokens};var r={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:m,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(href(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,strong:/^__([^\s_])__(?!_)|^\*\*([^\s*])\*\*(?!\*)|^__([^\s][\s\S]*?[^\s])__(?!_)|^\*\*([^\s][\s\S]*?[^\s])\*\*(?!\*)/,em:/^_([^\s_])_(?!_)|^\*([^\s*"<\[])\*(?!\*)|^_([^\s][\s\S]*?[^\s_])_(?!_|[^\spunctuation])|^_([^\s_][\s\S]*?[^\s])_(?!_|[^\spunctuation])|^\*([^\s"<\[][\s\S]*?[^\s*])\*(?!\*)|^\*([^\s*"<\[][\s\S]*?[^\s])\*(?!\*)/,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:m,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/};function o(e,t){if(this.options=t||w.defaults,this.links=e,this.rules=r.normal,this.renderer=this.options.renderer||new s,this.renderer.options=this.options,!this.links)throw new Error("Tokens array requires a `links` property.");this.options.pedantic?this.rules=r.pedantic:this.options.gfm&&(this.options.breaks?this.rules=r.breaks:this.rules=r.gfm)}function s(e){this.options=e||w.defaults}function a(){}function u(e){this.tokens=[],this.token=null,this.options=e||w.defaults,this.options.renderer=this.options.renderer||new s,this.renderer=this.options.renderer,this.renderer.options=this.options,this.slugger=new l}function l(){this.seen={}}function c(e,t){if(t){if(c.escapeTest.test(e))return e.replace(c.escapeReplace,(function(e){return c.replacements[e]}))}else if(c.escapeTestNoEncode.test(e))return e.replace(c.escapeReplaceNoEncode,(function(e){return c.replacements[e]}));return e}function d(e){return e.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,(function(e,t){return t=t.toLowerCase(),"colon"===t?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""}))}function h(e,t){return e=e.source||e,t=t||"",{replace:function(t,n){return n=n.source||n,n=n.replace(/(^|[^\[])\^/g,"$1"),e=e.replace(t,n),this},getRegex:function(){return new RegExp(e,t)}}}function f(e,t,n){if(e){try{var i=decodeURIComponent(d(n)).replace(/[^\w:]/g,"").toLowerCase()}catch(r){return null}if(0===i.indexOf("javascript:")||0===i.indexOf("vbscript:")||0===i.indexOf("data:"))return null}t&&!A.test(n)&&(n=p(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(r){return null}return n}function p(e,t){return g[" "+e]||(/^[^:]+:\/*[^/]*$/.test(e)?g[" "+e]=e+"/":g[" "+e]=y(e,"/",!0)),e=g[" "+e],"//"===t.slice(0,2)?e.replace(/:[\s\S]*/,":")+t:"/"===t.charAt(0)?e.replace(/(:\/*[^/]*)[\s\S]*/,"$1")+t:e+t}r._punctuation="!\"#$%&'()*+,\\-./:;<=>?@\\[^_{|}~",r.em=h(r.em).replace(/punctuation/g,r._punctuation).getRegex(),r._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,r._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,r._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])?)+(?![-_])/,r.autolink=h(r.autolink).replace("scheme",r._scheme).replace("email",r._email).getRegex(),r._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,r.tag=h(r.tag).replace("comment",t._comment).replace("attribute",r._attribute).getRegex(),r._label=/(?:\[[^\[\]]*\]|\\[\[\]]?|`[^`]*`|`(?!`)|[^\[\]\\`])*?/,r._href=/\s*(<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*)/,r._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,r.link=h(r.link).replace("label",r._label).replace("href",r._href).replace("title",r._title).getRegex(),r.reflink=h(r.reflink).replace("label",r._label).getRegex(),r.normal=v({},r),r.pedantic=v({},r.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/,link:h(/^!?\[(label)\]\((.*?)\)/).replace("label",r._label).getRegex(),reflink:h(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",r._label).getRegex()}),r.gfm=v({},r.normal,{escape:h(r.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)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*~]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))|(?= {2,}\n|[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))/}),r.gfm.url=h(r.gfm.url,"i").replace("email",r.gfm._extended_email).getRegex(),r.breaks=v({},r.gfm,{br:h(r.br).replace("{2,}","*").getRegex(),text:h(r.gfm.text).replace(/\{2,\}/g,"*").getRegex()}),o.rules=r,o.output=function(e,t,n){var i=new o(t,n);return i.output(e)},o.prototype.output=function(e){var t,n,i,r,s,a,u="";while(e)if(s=this.rules.escape.exec(e))e=e.substring(s[0].length),u+=c(s[1]);else if(s=this.rules.tag.exec(e))!this.inLink&&/^<a /i.test(s[0])?this.inLink=!0:this.inLink&&/^<\/a>/i.test(s[0])&&(this.inLink=!1),!this.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(s[0])?this.inRawBlock=!0:this.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(s[0])&&(this.inRawBlock=!1),e=e.substring(s[0].length),u+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(s[0]):c(s[0]):s[0];else if(s=this.rules.link.exec(e)){var l=b(s[2],"()");if(l>-1){var d=s[0].length-(s[2].length-l)-(s[3]||"").length;s[2]=s[2].substring(0,l),s[0]=s[0].substring(0,d).trim(),s[3]=""}e=e.substring(s[0].length),this.inLink=!0,i=s[2],this.options.pedantic?(t=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i),t?(i=t[1],r=t[3]):r=""):r=s[3]?s[3].slice(1,-1):"",i=i.trim().replace(/^<([\s\S]*)>$/,"$1"),u+=this.outputLink(s,{href:o.escapes(i),title:o.escapes(r)}),this.inLink=!1}else if((s=this.rules.reflink.exec(e))||(s=this.rules.nolink.exec(e))){if(e=e.substring(s[0].length),t=(s[2]||s[1]).replace(/\s+/g," "),t=this.links[t.toLowerCase()],!t||!t.href){u+=s[0].charAt(0),e=s[0].substring(1)+e;continue}this.inLink=!0,u+=this.outputLink(s,t),this.inLink=!1}else if(s=this.rules.strong.exec(e))e=e.substring(s[0].length),u+=this.renderer.strong(this.output(s[4]||s[3]||s[2]||s[1]));else if(s=this.rules.em.exec(e))e=e.substring(s[0].length),u+=this.renderer.em(this.output(s[6]||s[5]||s[4]||s[3]||s[2]||s[1]));else if(s=this.rules.code.exec(e))e=e.substring(s[0].length),u+=this.renderer.codespan(c(s[2].trim(),!0));else if(s=this.rules.br.exec(e))e=e.substring(s[0].length),u+=this.renderer.br();else if(s=this.rules.del.exec(e))e=e.substring(s[0].length),u+=this.renderer.del(this.output(s[1]));else if(s=this.rules.autolink.exec(e))e=e.substring(s[0].length),"@"===s[2]?(n=c(this.mangle(s[1])),i="mailto:"+n):(n=c(s[1]),i=n),u+=this.renderer.link(i,null,n);else if(this.inLink||!(s=this.rules.url.exec(e))){if(s=this.rules.text.exec(e))e=e.substring(s[0].length),this.inRawBlock?u+=this.renderer.text(s[0]):u+=this.renderer.text(c(this.smartypants(s[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}else{if("@"===s[2])n=c(s[0]),i="mailto:"+n;else{do{a=s[0],s[0]=this.rules._backpedal.exec(s[0])[0]}while(a!==s[0]);n=c(s[0]),i="www."===s[1]?"http://"+n:n}e=e.substring(s[0].length),u+=this.renderer.link(i,null,n)}return u},o.escapes=function(e){return e?e.replace(o.rules._escapes,"$1"):e},o.prototype.outputLink=function(e,t){var n=t.href,i=t.title?c(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(n,i,this.output(e[1])):this.renderer.image(n,i,c(e[1]))},o.prototype.smartypants=function(e){return this.options.smartypants?e.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201c").replace(/"/g,"\u201d").replace(/\.{3}/g,"\u2026"):e},o.prototype.mangle=function(e){if(!this.options.mangle)return e;for(var t,n="",i=e.length,r=0;r<i;r++)t=e.charCodeAt(r),Math.random()>.5&&(t="x"+t.toString(16)),n+="&#"+t+";";return n},s.prototype.code=function(e,t,n){var i=(t||"").match(/\S*/)[0];if(this.options.highlight){var r=this.options.highlight(e,i);null!=r&&r!==e&&(n=!0,e=r)}return i?'<pre><code class="'+this.options.langPrefix+c(i,!0)+'">'+(n?e:c(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:c(e,!0))+"</code></pre>"},s.prototype.blockquote=function(e){return"<blockquote>\n"+e+"</blockquote>\n"},s.prototype.html=function(e){return e},s.prototype.heading=function(e,t,n,i){return this.options.headerIds?"<h"+t+' id="'+this.options.headerPrefix+i.slug(n)+'">'+e+"</h"+t+">\n":"<h"+t+">"+e+"</h"+t+">\n"},s.prototype.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},s.prototype.list=function(e,t,n){var i=t?"ol":"ul",r=t&&1!==n?' start="'+n+'"':"";return"<"+i+r+">\n"+e+"</"+i+">\n"},s.prototype.listitem=function(e){return"<li>"+e+"</li>\n"},s.prototype.checkbox=function(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},s.prototype.paragraph=function(e){return"<p>"+e+"</p>\n"},s.prototype.table=function(e,t){return t&&(t="<tbody>"+t+"</tbody>"),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"},s.prototype.tablerow=function(e){return"<tr>\n"+e+"</tr>\n"},s.prototype.tablecell=function(e,t){var n=t.header?"th":"td",i=t.align?"<"+n+' align="'+t.align+'">':"<"+n+">";return i+e+"</"+n+">\n"},s.prototype.strong=function(e){return"<strong>"+e+"</strong>"},s.prototype.em=function(e){return"<em>"+e+"</em>"},s.prototype.codespan=function(e){return"<code>"+e+"</code>"},s.prototype.br=function(){return this.options.xhtml?"<br/>":"<br>"},s.prototype.del=function(e){return"<del>"+e+"</del>"},s.prototype.link=function(e,t,n){if(e=f(this.options.sanitize,this.options.baseUrl,e),null===e)return n;var i='<a href="'+c(e)+'"';return t&&(i+=' title="'+t+'"'),i+=">"+n+"</a>",i},s.prototype.image=function(e,t,n){if(e=f(this.options.sanitize,this.options.baseUrl,e),null===e)return n;var i='<img src="'+e+'" alt="'+n+'"';return t&&(i+=' title="'+t+'"'),i+=this.options.xhtml?"/>":">",i},s.prototype.text=function(e){return e},a.prototype.strong=a.prototype.em=a.prototype.codespan=a.prototype.del=a.prototype.text=function(e){return e},a.prototype.link=a.prototype.image=function(e,t,n){return""+n},a.prototype.br=function(){return""},u.parse=function(e,t){var n=new u(t);return n.parse(e)},u.prototype.parse=function(e){this.inline=new o(e.links,this.options),this.inlineText=new o(e.links,v({},this.options,{renderer:new a})),this.tokens=e.reverse();var t="";while(this.next())t+=this.tok();return t},u.prototype.next=function(){return this.token=this.tokens.pop()},u.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},u.prototype.parseText=function(){var e=this.token.text;while("text"===this.peek().type)e+="\n"+this.next().text;return this.inline.output(e)},u.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,d(this.inlineText.output(this.token.text)),this.slugger);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var e,t,n,i,r="",o="";for(n="",e=0;e<this.token.header.length;e++)n+=this.renderer.tablecell(this.inline.output(this.token.header[e]),{header:!0,align:this.token.align[e]});for(r+=this.renderer.tablerow(n),e=0;e<this.token.cells.length;e++){for(t=this.token.cells[e],n="",i=0;i<t.length;i++)n+=this.renderer.tablecell(this.inline.output(t[i]),{header:!1,align:this.token.align[i]});o+=this.renderer.tablerow(n)}return this.renderer.table(r,o);case"blockquote_start":o="";while("blockquote_end"!==this.next().type)o+=this.tok();return this.renderer.blockquote(o);case"list_start":o="";var s=this.token.ordered,a=this.token.start;while("list_end"!==this.next().type)o+=this.tok();return this.renderer.list(o,s,a);case"list_item_start":o="";var u=this.token.loose,l=this.token.checked,c=this.token.task;this.token.task&&(o+=this.renderer.checkbox(l));while("list_item_end"!==this.next().type)o+=u||"text"!==this.token.type?this.tok():this.parseText();return this.renderer.listitem(o,c,l);case"html":return this.renderer.html(this.token.text);case"paragraph":return this.renderer.paragraph(this.inline.output(this.token.text));case"text":return this.renderer.paragraph(this.parseText());default:var h='Token with "'+this.token.type+'" type was not found.';if(!this.options.silent)throw new Error(h);console.log(h)}},l.prototype.slug=function(e){var t=e.toLowerCase().trim().replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(t)){var n=t;do{this.seen[n]++,t=n+"-"+this.seen[n]}while(this.seen.hasOwnProperty(t))}return this.seen[t]=0,t},c.escapeTest=/[&<>"']/,c.escapeReplace=/[&<>"']/g,c.replacements={"&":"&","<":"<",">":">",'"':""","'":"'"},c.escapeTestNoEncode=/[<>"']|&(?!#?\w+;)/,c.escapeReplaceNoEncode=/[<>"']|&(?!#?\w+;)/g;var g={},A=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function m(){}function v(e){for(var t,n,i=1;i<arguments.length;i++)for(n in t=arguments[i],t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function _(e,t){var n=e.replace(/\|/g,(function(e,t,n){var i=!1,r=t;while(--r>=0&&"\\"===n[r])i=!i;return i?"|":" |"})),i=n.split(/ \|/),r=0;if(i.length>t)i.splice(t);else while(i.length<t)i.push("");for(;r<i.length;r++)i[r]=i[r].trim().replace(/\\\|/g,"|");return i}function y(e,t,n){if(0===e.length)return"";var i=0;while(i<e.length){var r=e.charAt(e.length-i-1);if(r!==t||n){if(r===t||!n)break;i++}else i++}return e.substr(0,e.length-i)}function b(e,t){if(-1===e.indexOf(t[1]))return-1;for(var n=0,i=0;i<e.length;i++)if("\\"===e[i])i++;else if(e[i]===t[0])n++;else if(e[i]===t[1]&&(n--,n<0))return i;return-1}function w(e,t,i){if("undefined"===typeof e||null===e)throw new Error("marked(): input parameter is undefined or null");if("string"!==typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if(i||"function"===typeof t){i||(i=t,t=null),t=v({},w.defaults,t||{});var r,o,s=t.highlight,a=0;try{r=n.lex(e,t)}catch(d){return i(d)}o=r.length;var l=function(e){if(e)return t.highlight=s,i(e);var n;try{n=u.parse(r,t)}catch(d){e=d}return t.highlight=s,e?i(e):i(null,n)};if(!s||s.length<3)return l();if(delete t.highlight,!o)return l();for(;a<r.length;a++)(function(e){"code"!==e.type?--o||l():s(e.text,e.lang,(function(t,n){return t?l(t):null==n||n===e.text?--o||l():(e.text=n,e.escaped=!0,void(--o||l()))}))})(r[a])}else try{return t&&(t=v({},w.defaults,t)),u.parse(n.lex(e,t),t)}catch(d){if(d.message+="\nPlease report this to https://github.com/markedjs/marked.",(t||w.defaults).silent)return"<p>An error occurred:</p><pre>"+c(d.message+"",!0)+"</pre>";throw d}}m.exec=m,w.options=w.setOptions=function(e){return v(w.defaults,e),w},w.getDefaults=function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:new s,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tables:!0,xhtml:!1}},w.defaults=w.getDefaults(),w.Parser=u,w.parser=u.parse,w.Renderer=s,w.TextRenderer=a,w.Lexer=n,w.lexer=n.lex,w.InlineLexer=o,w.inlineLexer=o.output,w.Slugger=l,w.parse=w,i=w}).call(void 0);i.Parser,i.parser;var l,c=i.Renderer,d=(i.TextRenderer,i.Lexer,i.lexer,i.InlineLexer,i.inlineLexer,i.parse);let h;(function(){function e(t,n,i){function r(s,a){if(!n[s]){if(!t[s]){var u="function"==typeof l&&l;if(!a&&u)return l(s,!0);if(o)return o(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var d=n[s]={exports:{}};t[s][0].call(d.exports,(function(e){var n=t[s][1][e];return r(n||e)}),d,d.exports,e,t,n,i)}return n[s].exports}for(var o="function"==typeof l&&l,s=0;s<i.length;s++)r(i[s]);return r}return e})()({1:[function(e,t,n){var i=e("./toMap"),r=["background","base","cite","href","longdesc","src","usemap"];t.exports={uris:i(r)}},{"./toMap":10}],2:[function(e,t,n){var i={allowedAttributes:{"*":["title","accesskey"],a:["href","name","target","aria-label"],iframe:["allowfullscreen","frameborder","src"],img:["src","alt","title","aria-label"]},allowedClasses:{},allowedSchemes:["http","https","mailto"],allowedTags:["a","abbr","article","b","blockquote","br","caption","code","del","details","div","em","h1","h2","h3","h4","h5","h6","hr","i","img","ins","kbd","li","main","mark","ol","p","pre","section","span","strike","strong","sub","summary","sup","table","tbody","td","th","thead","tr","u","ul"],filter:null};t.exports=i},{}],3:[function(e,t,n){var i=e("./toMap"),r=["area","br","col","hr","img","wbr","input","base","basefont","link","meta"];t.exports={voids:i(r)}},{"./toMap":10}],4:[function(e,t,n){e("he");var i=e("assignment"),r=e("./parser"),o=e("./sanitizer"),s=e("./defaults");function a(e,t,n){var a=[],u=!0===n?t:i({},s,t),l=o(a,u);return r(e,l),a.join("")}a.defaults=s,t.exports=a,h=a},{"./defaults":2,"./parser":7,"./sanitizer":8,assignment:6,he:9}],5:[function(e,t,n){t.exports=function(e){return"string"===typeof e?e.toLowerCase():e}},{}],6:[function(e,t,n){function i(e){var t,n,r=Array.prototype.slice.call(arguments,1);while(r.length)for(n in t=r.shift(),t)t.hasOwnProperty(n)&&("[object Object]"===Object.prototype.toString.call(e[n])?e[n]=i(e[n],t[n]):e[n]=t[n]);return e}t.exports=i},{}],7:[function(e,t,n){var i=e("he"),r=e("./lowercase"),o=(e("./attributes"),e("./elements")),s=/^<\s*([\w:-]+)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)\s*>/,a=/^<\s*\/\s*([\w:-]+)[^>]*>/,u=/([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,l=/^</,c=/^<\s*\//;function d(){var e=[];return e.lastItem=function(){return e[e.length-1]},e}function h(e,t){var n,h=d(),f=e;while(e)p();function p(){n=!0,g();var t=e===f;f=e,t&&(e="")}function g(){"\x3c!--"===e.substr(0,4)?m():c.test(e)?A(a,y):l.test(e)&&A(s,_),v()}function A(t,i){var r=e.match(t);r&&(e=e.substring(r[0].length),r[0].replace(t,i),n=!1)}function m(){var i=e.indexOf("--\x3e");i>=0&&(t.comment&&t.comment(e.substring(4,i)),e=e.substring(i+3),n=!1)}function v(){if(n){var i,r=e.indexOf("<");r>=0?(i=e.substring(0,r),e=e.substring(r)):(i=e,e=""),t.chars&&t.chars(i)}}function _(e,n,s,a){var l={},c=r(n),d=o.voids[c]||!!a;function f(e,t,n,r,o){l[t]=void 0===n&&void 0===r&&void 0===o?void 0:i.decode(n||r||o||"")}s.replace(u,f),d||h.push(c),t.start&&t.start(c,l,d)}function y(e,n){var i,o=0,s=r(n);if(s)for(o=h.length-1;o>=0;o--)if(h[o]===s)break;if(o>=0){for(i=h.length-1;i>=o;i--)t.end&&t.end(h[i]);h.length=o}}y()}t.exports=h},{"./attributes":1,"./elements":3,"./lowercase":5,he:9}],8:[function(e,t,n){var i=e("he"),r=e("./lowercase"),o=e("./attributes"),s=e("./elements");function a(e,t){var n,a=t||{};return g(),{start:l,end:c,chars:h};function u(t){e.push(t)}function l(e,t,s){var l=r(e);function c(e){var n,s=t[e],c=(a.allowedClasses||{})[l]||[],h=(a.allowedAttributes||{})[l]||[];h=h.concat((a.allowedAttributes||{})["*"]||[]);var f=r(e);function p(e){return c&&-1!==c.indexOf(e)}"class"===f&&-1===h.indexOf(f)?(s=s.split(" ").filter(p).join(" ").trim(),n=s.length):n=-1!==h.indexOf(f)&&(!0!==o.uris[f]||d(s)),n&&(u(" "),u(e),"string"===typeof s&&(u('="'),u(i.encode(s)),u('"')))}n.ignoring?f(l):-1!==(a.allowedTags||[]).indexOf(l)&&(!a.filter||a.filter({tag:l,attrs:t}))?(u("<"),u(l),Object.keys(t).forEach(c),u(s?"/>":">")):f(l)}function c(e){var t=r(e),i=-1!==(a.allowedTags||[]).indexOf(t);i&&!1===n.ignoring?(u("</"),u(t),u(">")):p(t)}function d(e){var t=e[0];if("#"===t||"/"===t)return!0;var n=e.indexOf(":");if(-1===n)return!0;var i=e.indexOf("?");if(-1!==i&&n>i)return!0;var r=e.indexOf("#");return-1!==r&&n>r||a.allowedSchemes.some(o);function o(t){return 0===e.indexOf(t+":")}}function h(e){!1===n.ignoring&&u(a.transformText?a.transformText(e):e)}function f(e){s.voids[e]||(!1===n.ignoring?n={ignoring:e,depth:1}:n.ignoring===e&&n.depth++)}function p(e){n.ignoring===e&&--n.depth<=0&&g()}function g(){n={ignoring:!1,depth:0}}}t.exports=a},{"./attributes":1,"./elements":3,"./lowercase":5,he:9}],9:[function(e,t,n){var i={"&":"&","<":"<",">":">",'"':""","'":"'"},r={"&":"&","<":"<",">":">",""":'"',"'":"'"},o=/(&|<|>|"|')/g,s=/[&<>"']/g;function a(e){return i[e]}function u(e){return r[e]}function l(e){return null==e?"":String(e).replace(s,a)}function c(e){return null==e?"":String(e).replace(o,u)}l.options=c.options={},t.exports={encode:l,escape:l,decode:c,unescape:c,version:"1.0.0-browser"}},{}],10:[function(e,t,n){function i(e){return e.reduce(r,{})}function r(e,t){return e[t]=!0,e}t.exports=i},{}]},{},[4]);var f=h,p=n("Q4rV"),g=n("qj0h"),A=n("N0LK"),m=n("bY76"),v=n("tYmi"),_=n("Vhoy");function y(e,t){void 0===t&&(t={});var n,i=Object(o["a"])(t),l=function(t){var n;try{n=Object(p["a"])(decodeURIComponent(t))}catch(i){}return n?(n=Object(g["b"])(n,(function(t){return e.uris&&e.uris[t]?m["a"].revive(e.uris[t]):void 0})),encodeURIComponent(JSON.stringify(n))):t},h=function(t,n){var i=e.uris&&e.uris[t];if(!i)return t;var o=m["a"].revive(i);return m["a"].parse(t).toString()===o.toString()?t:(n&&(o=r["r"](o)),o.query&&(o=o.with({query:l(o.query)})),o.toString(!0))},y=new Promise((function(e){return n=e})),b=new c;b.image=function(e,t,n){var i,r=[],o=[];return e&&(i=Object(a["d"])(e),e=i.href,r=i.dimensions,e=h(e,!0),o.push('src="'+e+'"')),n&&o.push('alt="'+n+'"'),t&&o.push('title="'+t+'"'),r.length&&(o=o.concat(r)),"<img "+o.join(" ")+">"},b.link=function(t,n,i){return t===i&&(i=Object(a["e"])(i)),t=h(t,!1),n=Object(a["e"])(n),t=Object(a["e"])(t),!t||t.match(/^data:|javascript:/i)||t.match(/^command:/i)&&!e.isTrusted||t.match(/^command:(\/\/\/)?_workbench\.downloadResource/i)?i:(t=t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),'<a href="#" data-href="'+t+'" title="'+(n||t)+'">'+i+"</a>")},b.paragraph=function(t){return"<p>"+(e.supportThemeIcons?Object(_["c"])(t):t)+"</p>"},t.codeBlockRenderer&&(b.code=function(e,n){var r=t.codeBlockRenderer(n,e),o=u["b"].nextId(),s=Promise.all([r,y]).then((function(e){var t=e[0],n=i.querySelector('div[data-code="'+o+'"]');n&&(n.innerHTML=t)})).catch((function(e){}));return t.codeBlockRenderCallback&&s.then(t.codeBlockRenderCallback),'<div class="code" data-code="'+o+'">'+Object(A["o"])(e)+"</div>"});var w=t.actionHandler;w&&w.disposeables.add(r["n"](i,"click",(function(e){var t=e.target;if("A"===t.tagName||(t=t.parentElement,t&&"A"===t.tagName))try{var n=t.dataset["href"];n&&w.callback(n,e)}catch(i){Object(s["e"])(i)}finally{e.preventDefault()}})));var C={sanitize:!0,renderer:b},S=[v["b"].http,v["b"].https,v["b"].mailto,v["b"].data,v["b"].file,v["b"].vscodeRemote,v["b"].vscodeRemoteResource];e.isTrusted&&S.push(v["b"].command);var N=d(e.supportThemeIcons?Object(_["b"])(e.value):e.value,C);return i.innerHTML=f(N,{allowedSchemes:S,allowedAttributes:{a:["href","name","target","data-href"],iframe:["allowfullscreen","frameborder","src"],img:["src","title","alt","width","height"],div:["class","data-code"],span:["class"]}}),n(),i}var b=n("W9cx"),w=n("WBhO"),C=n("TQUy"),S=n("Cg/j"),N=n("MI8n"),L=n("pmY6"),E=n("twdY"),x=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),O=function(e,t,n,i){var r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},B=function(e,t){return function(n,i){t(n,i,e)}},k=function(e){function t(t,n,i){void 0===i&&(i=b["b"]);var r=e.call(this)||this;return r._editor=t,r._modeService=n,r._openerService=i,r._onDidRenderCodeBlock=r._register(new N["a"]),r.onDidRenderCodeBlock=r._onDidRenderCodeBlock.event,r}return x(t,e),t.prototype.getOptions=function(e){var t=this;return{codeBlockRenderer:function(e,n){var i=null;if(e)i=t._modeService.getModeIdForLanguageName(e);else{var r=t._editor.getModel();r&&(i=r.getLanguageIdentifier().language)}return t._modeService.triggerMode(i||""),Promise.resolve(!0).then((function(e){var t=E["y"].getPromise(i||"");return t?t.then((function(e){return Object(C["b"])(n,e)})):Object(C["b"])(n,void 0)})).then((function(e){return'<span style="font-family: '+t._editor.getOption(34).fontFamily+'">'+e+"</span>"}))},codeBlockRenderCallback:function(){return t._onDidRenderCodeBlock.fire()},actionHandler:{callback:function(e){t._openerService.open(e,{fromUserGesture:!0}).catch(s["e"])},disposeables:e}}},t.prototype.render=function(e){var t,n=new L["b"];return t=e?y(e,this.getOptions(n)):document.createElement("span"),{element:t,dispose:function(){return n.dispose()}}},t=O([B(1,w["a"]),B(2,Object(S["d"])(b["a"]))],t),t}(L["a"])},"3rx1":function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return c})),n.d(t,"c",(function(){return h}));var i=n("bY76"),r=n("MrjW"),o=n("N0LK"),s=n("tYmi"),a=n("MNsG"),u=n("gslv");function l(e,t,n){if("string"===typeof e&&(e=i["a"].file(e)),n){var o=n.getWorkspaceFolder(e);if(o){var l=n.getWorkspace().folders.length>1,c=void 0;if(c=Object(u["e"])(o.uri,e)?"":Object(u["h"])(o.uri,e),l){var f=o.name?o.name:Object(u["b"])(o.uri);c=c?f+" \u2022 "+c:f}return c}}if(e.scheme!==s["b"].file&&e.scheme!==s["b"].untitled)return e.with({query:null,fragment:null}).toString(!0);if(d(e.fsPath))return Object(r["normalize"])(h(e.fsPath));var g=Object(r["normalize"])(e.fsPath);return!a["h"]&&t&&(g=p(g,t.userHome)),g}function c(e){if(e){"string"===typeof e&&(e=i["a"].file(e));var t=Object(u["b"])(e)||(e.scheme===s["b"].file?e.fsPath:e.path);return d(t)?h(t):t}}function d(e){return!(!a["h"]||!e||":"!==e[1])}function h(e){return d(e)?e.charAt(0).toUpperCase()+e.slice(1):e}var f=Object.create(null);function p(e,t){if(a["h"]||!e||!t)return e;var n=f.original===t?f.normalized:void 0;return n||(n=""+Object(o["K"])(t,r["posix"].sep)+r["posix"].sep,f={original:t,normalized:n}),(a["d"]?Object(o["M"])(e,n):Object(o["N"])(e,n))&&(e="~/"+e.substr(n.length)),e}},"4bUh":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("twdY"),r=function(){function e(e,t){this._tokens=e,this._tokensCount=this._tokens.length>>>1,this._text=t}return e.prototype.equals=function(t){return t instanceof e&&this.slicedEquals(t,0,this._tokensCount)},e.prototype.slicedEquals=function(e,t,n){if(this._text!==e._text)return!1;if(this._tokensCount!==e._tokensCount)return!1;for(var i=t<<1,r=i+(n<<1),o=i;o<r;o++)if(this._tokens[o]!==e._tokens[o])return!1;return!0},e.prototype.getLineContent=function(){return this._text},e.prototype.getCount=function(){return this._tokensCount},e.prototype.getStartOffset=function(e){return e>0?this._tokens[e-1<<1]:0},e.prototype.getMetadata=function(e){var t=this._tokens[1+(e<<1)];return t},e.prototype.getLanguageId=function(e){var t=this._tokens[1+(e<<1)];return i["x"].getLanguageId(t)},e.prototype.getStandardTokenType=function(e){var t=this._tokens[1+(e<<1)];return i["x"].getTokenType(t)},e.prototype.getForeground=function(e){var t=this._tokens[1+(e<<1)];return i["x"].getForeground(t)},e.prototype.getClassName=function(e){var t=this._tokens[1+(e<<1)];return i["x"].getClassNameFromMetadata(t)},e.prototype.getInlineStyle=function(e,t){var n=this._tokens[1+(e<<1)];return i["x"].getInlineStyleFromMetadata(n,t)},e.prototype.getEndOffset=function(e){return this._tokens[e<<1]},e.prototype.findTokenIndexAtOffset=function(t){return e.findIndexInTokensArray(this._tokens,t)},e.prototype.inflate=function(){return this},e.prototype.sliceAndInflate=function(e,t,n){return new o(this,e,t,n)},e.convertToEndOffset=function(e,t){for(var n=e.length>>>1,i=n-1,r=0;r<i;r++)e[r<<1]=e[r+1<<1];e[i<<1]=t},e.findIndexInTokensArray=function(e,t){if(e.length<=2)return 0;var n=0,i=(e.length>>>1)-1;while(n<i){var r=n+Math.floor((i-n)/2),o=e[r<<1];if(o===t)return r+1;o<t?n=r+1:o>t&&(i=r)}return n},e}(),o=function(){function e(e,t,n,i){this._source=e,this._startOffset=t,this._endOffset=n,this._deltaOffset=i,this._firstTokenIndex=e.findTokenIndexAtOffset(t),this._tokensCount=0;for(var r=this._firstTokenIndex,o=e.getCount();r<o;r++){var s=e.getStartOffset(r);if(s>=n)break;this._tokensCount++}}return e.prototype.equals=function(t){return t instanceof e&&(this._startOffset===t._startOffset&&this._endOffset===t._endOffset&&this._deltaOffset===t._deltaOffset&&this._source.slicedEquals(t._source,this._firstTokenIndex,this._tokensCount))},e.prototype.getCount=function(){return this._tokensCount},e.prototype.getForeground=function(e){return this._source.getForeground(this._firstTokenIndex+e)},e.prototype.getEndOffset=function(e){var t=this._source.getEndOffset(this._firstTokenIndex+e);return Math.min(this._endOffset,t)-this._startOffset+this._deltaOffset},e.prototype.getClassName=function(e){return this._source.getClassName(this._firstTokenIndex+e)},e.prototype.getInlineStyle=function(e,t){return this._source.getInlineStyle(this._firstTokenIndex+e,t)},e.prototype.findTokenIndexAtOffset=function(e){return this._source.findTokenIndexAtOffset(e+this._startOffset-this._deltaOffset)-this._firstTokenIndex},e}()},"4oKn":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var i=l(n("M/lh")),r=a(n("17x9")),o=a(n("q1tI")),s=n("JwdM");function a(e){return e&&e.__esModule?e:{default:e}}function u(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function l(e){if(e&&e.__esModule)return e;if(null===e||"object"!==c(e)&&"function"!==typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var o=i?Object.getOwnPropertyDescriptor(e,r):null;o&&(o.get||o.set)?Object.defineProperty(n,r,o):n[r]=e[r]}return n["default"]=e,t&&t.set(e,n),n}function c(e){return c="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){C(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function g(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),e}function A(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}function m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function v(e){return function(){var t,n=w(e);if(b()){var i=w(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return _(this,t)}}function _(e,t){return!t||"object"!==c(t)&&"function"!==typeof t?y(e):t}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var S=function(e){A(n,e);var t=v(n);function n(e){var i;return f(this,n),i=t.call(this,e),C(y(i),"assignRef",(function(e){i.containerElement=e})),i.containerElement=void 0,i}return g(n,[{key:"componentDidMount",value:function(){this.initMonaco()}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.language,r=t.theme,o=t.height,s=t.options,a=t.width,u=this.editor.getModel(),l=u.original,c=u.modified;this.props.original!==l.getValue()&&l.setValue(this.props.original),null!=this.props.value&&this.props.value!==c.getValue()&&(this.__prevent_trigger_change_event=!0,this.editor.modifiedEditor.pushUndoStop(),c.pushEditOperations([],[{range:c.getFullModelRange(),text:this.props.value}]),this.editor.modifiedEditor.pushUndoStop(),this.__prevent_trigger_change_event=!1),e.language!==n&&(i.editor.setModelLanguage(l,n),i.editor.setModelLanguage(c,n)),e.theme!==r&&i.editor.setTheme(r),!this.editor||a===e.width&&o===e.height||this.editor.layout(),e.options!==s&&this.editor.updateOptions(s)}},{key:"componentWillUnmount",value:function(){this.destroyMonaco()}},{key:"editorWillMount",value:function(){var e=this.props.editorWillMount,t=e(i);return t||{}}},{key:"editorDidMount",value:function(e){var t=this;this.props.editorDidMount(e,i);var n=e.getModel(),r=n.modified;this._subscription=r.onDidChangeContent((function(e){t.__prevent_trigger_change_event||t.props.onChange(r.getValue(),e)}))}},{key:"initModels",value:function(e,t){var n=this.props.language,r=i.editor.createModel(t,n),o=i.editor.createModel(e,n);this.editor.setModel({original:r,modified:o})}},{key:"initMonaco",value:function(){var e=null!=this.props.value?this.props.value:this.props.defaultValue,t=this.props,n=t.original,r=t.theme,o=t.options,s=t.overrideServices;this.containerElement&&(this.editorWillMount(),this.editor=i.editor.createDiffEditor(this.containerElement,h({},o,{},r?{theme:r}:{}),s),this.initModels(e,n),this.editorDidMount(this.editor))}},{key:"destroyMonaco",value:function(){if(this.editor){this.editor.dispose();var e=this.editor.getModel(),t=e.original,n=e.modified;t&&t.dispose(),n&&n.dispose()}this._subscription&&this._subscription.dispose()}},{key:"render",value:function(){var e=this.props,t=e.width,n=e.height,i=(0,s.processSize)(t),r=(0,s.processSize)(n),a={width:i,height:r};return o["default"].createElement("div",{ref:this.assignRef,style:a,className:"react-monaco-editor-container"})}}]),n}(o["default"].Component);S.propTypes={width:r["default"].oneOfType([r["default"].string,r["default"].number]),height:r["default"].oneOfType([r["default"].string,r["default"].number]),original:r["default"].string,value:r["default"].string,defaultValue:r["default"].string,language:r["default"].string,theme:r["default"].string,options:r["default"].object,overrideServices:r["default"].object,editorDidMount:r["default"].func,editorWillMount:r["default"].func,onChange:r["default"].func},S.defaultProps={width:"100%",height:"100%",original:null,value:null,defaultValue:"",language:"javascript",theme:null,options:{},overrideServices:{},editorDidMount:s.noop,editorWillMount:s.noop,onChange:s.noop};var N=S;t["default"]=N},"4rho":function(e,t,n){},"4y0V":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("MI8n"),r=function(e,t,n){var r=function(e){return o.fire(e)},o=new i["a"]({onFirstListenerAdd:function(){e.addEventListener(t,r,n)},onLastListenerRemove:function(){e.removeEventListener(t,r,n)}});return o.event}},"51B1":function(e,t,n){},"51f4":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=!1,r=null;function o(e){if(!e.parent||e.parent===e)return null;try{var t=e.location,n=e.parent.location;if(t.protocol!==n.protocol||t.hostname!==n.hostname||t.port!==n.port)return i=!0,null}catch(r){return i=!0,null}return e.parent}function s(e,t){for(var n,i=e.document.getElementsByTagName("iframe"),r=0,o=i.length;r<o;r++)if(n=i[r],n.contentWindow===t)return n;return null}var a=function(){function e(){}return e.getSameOriginWindowChain=function(){if(!r){r=[];var e,t=window;do{e=o(t),e?r.push({window:t,iframeElement:s(e,t)}):r.push({window:t,iframeElement:null}),t=e}while(t)}return r.slice(0)},e.hasDifferentOriginAncestor=function(){return r||this.getSameOriginWindowChain(),i},e.getPositionOfChildWindowRelativeToAncestorWindow=function(e,t){if(!t||e===t)return{top:0,left:0};for(var n=0,i=0,r=this.getSameOriginWindowChain(),o=0,s=r;o<s.length;o++){var a=s[o];if(a.window===t)break;if(!a.iframeElement)break;var u=a.iframeElement.getBoundingClientRect();n+=u.top,i+=u.left}return{top:n,left:i}},e}()},"5DEy":function(e,t,n){},"5RHE":function(e,t,n){(function(i){var r,o;!function(i){r=i,o="function"===typeof r?r.call(t,n,t,e):r,void 0===o||(e.exports=o)}((function(){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(e){if("object"!==r(e.console)){e.console={};for(var t,n,i=e.console,o=function(){},s=["memory"],a="assert,clear,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profiles,profileEnd,show,table,time,timeEnd,timeline,timelineEnd,timeStamp,trace,warn".split(",");t=s.pop();)i[t]||(i[t]={});for(;n=a.pop();)i[n]||(i[n]=o)}var u,l,c,d,h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";void 0===e.btoa&&(e.btoa=function(e){var t,n,i,r,o,s=0,a=0,u="",l=[];if(!e)return e;for(;t=(o=e.charCodeAt(s++)<<16|e.charCodeAt(s++)<<8|e.charCodeAt(s++))>>18&63,n=o>>12&63,i=o>>6&63,r=63&o,l[a++]=h.charAt(t)+h.charAt(n)+h.charAt(i)+h.charAt(r),s<e.length;);u=l.join("");var c=e.length%3;return(c?u.slice(0,c-3):u)+"===".slice(c||3)}),void 0===e.atob&&(e.atob=function(e){var t,n,i,r,o,s,a=0,u=0,l=[];if(!e)return e;for(e+="";t=(s=h.indexOf(e.charAt(a++))<<18|h.indexOf(e.charAt(a++))<<12|(r=h.indexOf(e.charAt(a++)))<<6|(o=h.indexOf(e.charAt(a++))))>>16&255,n=s>>8&255,i=255&s,l[u++]=64==r?String.fromCharCode(t):64==o?String.fromCharCode(t,n):String.fromCharCode(t,n,i),a<e.length;);return l.join("")}),Array.prototype.map||(Array.prototype.map=function(e){if(null==this||"function"!=typeof e)throw new TypeError;for(var t=Object(this),n=t.length>>>0,i=new Array(n),r=1<arguments.length?arguments[1]:void 0,o=0;o<n;o++)o in t&&(i[o]=e.call(r,t[o],o,t));return i}),Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),Array.prototype.forEach||(Array.prototype.forEach=function(e,t){if(null==this||"function"!=typeof e)throw new TypeError;for(var n=Object(this),i=n.length>>>0,r=0;r<i;r++)r in n&&e.call(t,n[r],r,n)}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null==this)throw new TypeError('"this" is null or not defined');var t=Object(this),n=t.length>>>0;if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var i=arguments[1],r=0;r<n;){var o=t[r];if(e.call(i,o,r,t))return o;r++}},configurable:!0,writable:!0}),Object.keys||(Object.keys=(u=Object.prototype.hasOwnProperty,l=!{toString:null}.propertyIsEnumerable("toString"),d=(c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"]).length,function(e){if("object"!==r(e)&&("function"!=typeof e||null===e))throw new TypeError;var t,n,i=[];for(t in e)u.call(e,t)&&i.push(t);if(l)for(n=0;n<d;n++)u.call(e,c[n])&&i.push(c[n]);return i})),"function"!=typeof Object.assign&&(Object.assign=function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");e=Object(e);for(var t=1;t<arguments.length;t++){var n=arguments[t];if(null!=n)for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}),String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")}),String.prototype.trimLeft||(String.prototype.trimLeft=function(){return this.replace(/^\s+/g,"")}),String.prototype.trimRight||(String.prototype.trimRight=function(){return this.replace(/\s+$/g,"")}),Number.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||"undefined"!=typeof i&&i||Function('return typeof this === "object" && this.content')()||Function("return this")());var s,a,u,l,c,d,h,f,p,g,A,m,v,_,y,b,w,C,S,N,L,E,x,O,B,k,D,I,M,F,T,R,P,U,H,j,Q,V,W,z,K,q,G,X,Y,J,Z,$,ee,te,ne,ie,re,oe,se,ae,ue,le,ce,de,he,fe,pe=function(i){function s(e){if("object"!==r(e))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var t={};this.subscribe=function(e,n,i){if(i=i||!1,"string"!=typeof e||"function"!=typeof n||"boolean"!=typeof i)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");t.hasOwnProperty(e)||(t[e]={});var r=Math.random().toString(35);return t[e][r]=[n,!!i],r},this.unsubscribe=function(e){for(var n in t)if(t[n][e])return delete t[n][e],0===Object.keys(t[n]).length&&delete t[n],!0;return!1},this.publish=function(n){if(t.hasOwnProperty(n)){var r=Array.prototype.slice.call(arguments,1),o=[];for(var s in t[n]){var a=t[n][s];try{a[0].apply(e,r)}catch(n){i.console&&console.error("jsPDF PubSub Error",n.message,n)}a[1]&&o.push(s)}o.length&&o.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function a(e,t,n,o){var u={},l=[],c=1;"object"===r(e)&&(e=(u=e).orientation,t=u.unit||t,n=u.format||n,o=u.compress||u.compressPdf||o,l=u.filters||(!0===o?["FlateEncode"]:l),c="number"==typeof u.userUnit?Math.abs(u.userUnit):1),t=t||"mm",e=(""+(e||"P")).toLowerCase();var d=u.putOnlyUsedFonts||!0,h={},f={internal:{},__private__:{}};f.__private__.PubSub=s;var p="1.3",g=f.__private__.getPdfVersion=function(){return p},A=(f.__private__.setPdfVersion=function(e){p=e},{a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]}),m=(f.__private__.getPageFormats=function(){return A},f.__private__.getPageFormat=function(e){return A[e]});"string"==typeof n&&(n=m(n)),n=n||m("a4");var v,_=f.f2=f.__private__.f2=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.f2");return e.toFixed(2)},y=f.__private__.f3=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.f3");return e.toFixed(3)},b="00000000000000000000000000000000",w=f.__private__.getFileId=function(){return b},C=f.__private__.setFileId=function(e){return e=e||"12345678901234567890123456789012".split("").map((function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))})).join(""),b=e};f.setFileId=function(e){return C(e),this},f.getFileId=function(){return w()};var S=f.__private__.convertDateToPDFDate=function(e){var t=e.getTimezoneOffset(),n=t<0?"+":"-",i=Math.floor(Math.abs(t/60)),r=Math.abs(t%60),o=[n,T(i),"'",T(r),"'"].join("");return["D:",e.getFullYear(),T(e.getMonth()+1),T(e.getDate()),T(e.getHours()),T(e.getMinutes()),T(e.getSeconds()),o].join("")},N=f.__private__.convertPDFDateToDate=function(e){var t=parseInt(e.substr(2,4),10),n=parseInt(e.substr(6,2),10)-1,i=parseInt(e.substr(8,2),10),r=parseInt(e.substr(10,2),10),o=parseInt(e.substr(12,2),10),s=parseInt(e.substr(14,2),10);return parseInt(e.substr(16,2),10),parseInt(e.substr(20,2),10),new Date(t,n,i,r,o,s,0)},L=f.__private__.setCreationDate=function(e){var t;if(void 0===e&&(e=new Date),"object"===r(e)&&"[object Date]"===Object.prototype.toString.call(e))t=S(e);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|\-0[0-9]|\-1[0-1])\'(0[0-9]|[1-5][0-9])\'?$/.test(e))throw new Error("Invalid argument passed to jsPDF.setCreationDate");t=e}return v=t},E=f.__private__.getCreationDate=function(e){var t=v;return"jsDate"===e&&(t=N(v)),t};f.setCreationDate=function(e){return L(e),this},f.getCreationDate=function(e){return E(e)};var x,O,B,k,D,I,M,F,T=f.__private__.padd2=function(e){return("0"+parseInt(e)).slice(-2)},R=!1,P=[],U=[],H=0,j=(f.__private__.setCustomOutputDestination=function(e){O=e},f.__private__.resetCustomOutputDestination=function(e){O=void 0},f.__private__.out=function(e){var t;return e="string"==typeof e?e:e.toString(),(t=void 0===O?R?P[x]:U:O).push(e),R||(H+=e.length+1),t}),Q=f.__private__.write=function(e){return j(1===arguments.length?e.toString():Array.prototype.join.call(arguments," "))},V=f.__private__.getArrayBuffer=function(e){for(var t=e.length,n=new ArrayBuffer(t),i=new Uint8Array(n);t--;)i[t]=e.charCodeAt(t);return n},W=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]],z=(f.__private__.getStandardFonts=function(e){return W},u.fontSize||16),K=(f.__private__.setFontSize=f.setFontSize=function(e){return z=e,this},f.__private__.getFontSize=f.getFontSize=function(){return z}),q=u.R2L||!1,G=(f.__private__.setR2L=f.setR2L=function(e){return q=e,this},f.__private__.getR2L=f.getR2L=function(e){return q},f.__private__.setZoomMode=function(e){var t=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^\d*\.?\d*\%$/.test(e))B=e;else if(isNaN(e)){if(-1===t.indexOf(e))throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+e+'" is not recognized.');B=e}else B=parseInt(e,10)}),X=(f.__private__.getZoomMode=function(){return B},f.__private__.setPageMode=function(e){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(e))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+e+'" is not recognized.');k=e}),Y=(f.__private__.getPageMode=function(){return k},f.__private__.setLayoutMode=function(e){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(e))throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+e+'" is not recognized.');D=e}),J=(f.__private__.getLayoutMode=function(){return D},f.__private__.setDisplayMode=f.setDisplayMode=function(e,t,n){return G(e),Y(t),X(n),this},{title:"",subject:"",author:"",keywords:"",creator:""}),Z=(f.__private__.getDocumentProperty=function(e){if(-1===Object.keys(J).indexOf(e))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return J[e]},f.__private__.getDocumentProperties=function(e){return J},f.__private__.setDocumentProperties=f.setProperties=f.setDocumentProperties=function(e){for(var t in J)J.hasOwnProperty(t)&&e[t]&&(J[t]=e[t]);return this},f.__private__.setDocumentProperty=function(e,t){if(-1===Object.keys(J).indexOf(e))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return J[e]=t},0),$=[],ee={},te={},ne=0,ie=[],re=[],oe=new s(f),se=u.hotfixes||[],ae=f.__private__.newObject=function(){var e=ue();return le(e,!0),e},ue=f.__private__.newObjectDeferred=function(){return $[++Z]=function(){return H},Z},le=function(e,t){return t="boolean"==typeof t&&t,$[e]=H,t&&j(e+" 0 obj"),e},ce=f.__private__.newAdditionalObject=function(){var e={objId:ue(),content:""};return re.push(e),e},de=ue(),he=ue(),fe=f.__private__.decodeColorString=function(e){var t=e.split(" ");if(2===t.length&&("g"===t[1]||"G"===t[1])){var n=parseFloat(t[0]);t=[n,n,n,"r"]}for(var i="#",r=0;r<3;r++)i+=("0"+Math.floor(255*parseFloat(t[r])).toString(16)).slice(-2);return i},pe=f.__private__.encodeColorString=function(e){var t;"string"==typeof e&&(e={ch1:e});var n=e.ch1,i=e.ch2,o=e.ch3,s=e.ch4,a=(e.precision,"draw"===e.pdfColorType?["G","RG","K"]:["g","rg","k"]);if("string"==typeof n&&"#"!==n.charAt(0)){var u=new RGBColor(n);if(u.ok)n=u.toHex();else if(!/^\d*\.?\d*$/.test(n))throw new Error('Invalid color "'+n+'" passed to jsPDF.encodeColorString.')}if("string"==typeof n&&/^#[0-9A-Fa-f]{3}$/.test(n)&&(n="#"+n[1]+n[1]+n[2]+n[2]+n[3]+n[3]),"string"==typeof n&&/^#[0-9A-Fa-f]{6}$/.test(n)){var l=parseInt(n.substr(1),16);n=l>>16&255,i=l>>8&255,o=255&l}if(void 0===i||void 0===s&&n===i&&i===o)if("string"==typeof n)t=n+" "+a[0];else switch(e.precision){case 2:t=_(n/255)+" "+a[0];break;case 3:default:t=y(n/255)+" "+a[0]}else if(void 0===s||"object"===r(s)){if(s&&!isNaN(s.a)&&0===s.a)return["1.000","1.000","1.000",a[1]].join(" ");if("string"==typeof n)t=[n,i,o,a[1]].join(" ");else switch(e.precision){case 2:t=[_(n/255),_(i/255),_(o/255),a[1]].join(" ");break;default:case 3:t=[y(n/255),y(i/255),y(o/255),a[1]].join(" ")}}else if("string"==typeof n)t=[n,i,o,s,a[2]].join(" ");else switch(e.precision){case 2:t=[_(n/255),_(i/255),_(o/255),_(s/255),a[2]].join(" ");break;case 3:default:t=[y(n/255),y(i/255),y(o/255),y(s/255),a[2]].join(" ")}return t},ge=f.__private__.getFilters=function(){return l},Ae=f.__private__.putStream=function(e){var t=(e=e||{}).data||"",n=e.filters||ge(),i=e.alreadyAppliedFilters||[],r=e.addLength1||!1,o=t.length,s={};!0===n&&(n=["FlateEncode"]);var u=e.additionalKeyValues||[],l=(s=void 0!==a.API.processDataByFilters?a.API.processDataByFilters(t,n):{data:t,reverseChain:[]}).reverseChain+(Array.isArray(i)?i.join(" "):i.toString());0!==s.data.length&&(u.push({key:"Length",value:s.data.length}),!0===r&&u.push({key:"Length1",value:o})),0!=l.length&&(l.split("/").length-1==1?u.push({key:"Filter",value:l}):u.push({key:"Filter",value:"["+l+"]"})),j("<<");for(var c=0;c<u.length;c++)j("/"+u[c].key+" "+u[c].value);j(">>"),0!==s.data.length&&(j("stream"),j(s.data),j("endstream"))},me=f.__private__.putPage=function(e){e.mediaBox;var t=e.number,n=e.data,i=e.objId,r=e.contentsObjId;le(i,!0),ie[x].mediaBox.topRightX,ie[x].mediaBox.bottomLeftX,ie[x].mediaBox.topRightY,ie[x].mediaBox.bottomLeftY,j("<</Type /Page"),j("/Parent "+e.rootDictionaryObjId+" 0 R"),j("/Resources "+e.resourceDictionaryObjId+" 0 R"),j("/MediaBox ["+parseFloat(_(e.mediaBox.bottomLeftX))+" "+parseFloat(_(e.mediaBox.bottomLeftY))+" "+_(e.mediaBox.topRightX)+" "+_(e.mediaBox.topRightY)+"]"),null!==e.cropBox&&j("/CropBox ["+_(e.cropBox.bottomLeftX)+" "+_(e.cropBox.bottomLeftY)+" "+_(e.cropBox.topRightX)+" "+_(e.cropBox.topRightY)+"]"),null!==e.bleedBox&&j("/BleedBox ["+_(e.bleedBox.bottomLeftX)+" "+_(e.bleedBox.bottomLeftY)+" "+_(e.bleedBox.topRightX)+" "+_(e.bleedBox.topRightY)+"]"),null!==e.trimBox&&j("/TrimBox ["+_(e.trimBox.bottomLeftX)+" "+_(e.trimBox.bottomLeftY)+" "+_(e.trimBox.topRightX)+" "+_(e.trimBox.topRightY)+"]"),null!==e.artBox&&j("/ArtBox ["+_(e.artBox.bottomLeftX)+" "+_(e.artBox.bottomLeftY)+" "+_(e.artBox.topRightX)+" "+_(e.artBox.topRightY)+"]"),"number"==typeof e.userUnit&&1!==e.userUnit&&j("/UserUnit "+e.userUnit),oe.publish("putPage",{objId:i,pageContext:ie[t],pageNumber:t,page:n}),j("/Contents "+r+" 0 R"),j(">>"),j("endobj");var o=n.join("\n");return le(r,!0),Ae({data:o,filters:ge()}),j("endobj"),i},ve=f.__private__.putPages=function(){var e,t,n=[];for(e=1;e<=ne;e++)ie[e].objId=ue(),ie[e].contentsObjId=ue();for(e=1;e<=ne;e++)n.push(me({number:e,data:P[e],objId:ie[e].objId,contentsObjId:ie[e].contentsObjId,mediaBox:ie[e].mediaBox,cropBox:ie[e].cropBox,bleedBox:ie[e].bleedBox,trimBox:ie[e].trimBox,artBox:ie[e].artBox,userUnit:ie[e].userUnit,rootDictionaryObjId:de,resourceDictionaryObjId:he}));le(de,!0),j("<</Type /Pages");var i="/Kids [";for(t=0;t<ne;t++)i+=n[t]+" 0 R ";j(i+"]"),j("/Count "+ne),j(">>"),j("endobj"),oe.publish("postPutPages")},_e=function(){!function(){for(var e in ee)ee.hasOwnProperty(e)&&(!1===d||!0===d&&h.hasOwnProperty(e))&&(t=ee[e],oe.publish("putFont",{font:t,out:j,newObject:ae,putStream:Ae}),!0!==t.isAlreadyPutted&&(t.objectNumber=ae(),j("<<"),j("/Type /Font"),j("/BaseFont /"+t.postScriptName),j("/Subtype /Type1"),"string"==typeof t.encoding&&j("/Encoding /"+t.encoding),j("/FirstChar 32"),j("/LastChar 255"),j(">>"),j("endobj")));var t}(),oe.publish("putResources"),le(he,!0),j("<<"),function(){for(var e in j("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),j("/Font <<"),ee)ee.hasOwnProperty(e)&&(!1===d||!0===d&&h.hasOwnProperty(e))&&j("/"+e+" "+ee[e].objectNumber+" 0 R");j(">>"),j("/XObject <<"),oe.publish("putXobjectDict"),j(">>")}(),j(">>"),j("endobj"),oe.publish("postPutResources")},ye=function(e,t,n){te.hasOwnProperty(t)||(te[t]={}),te[t][n]=e},be=function(e,t,n,i,r){r=r||!1;var o="F"+(Object.keys(ee).length+1).toString(10),s={id:o,postScriptName:e,fontName:t,fontStyle:n,encoding:i,isStandardFont:r,metadata:{}};return oe.publish("addFont",{font:s,instance:this}),void 0!==o&&(ee[o]=s,ye(o,t,n)),o},we=f.__private__.pdfEscape=f.pdfEscape=function(e,t){return function(e,t){var n,i,r,o,s,a,u,l,c;if(r=(t=t||{}).sourceEncoding||"Unicode",s=t.outputEncoding,(t.autoencode||s)&&ee[I].metadata&&ee[I].metadata[r]&&ee[I].metadata[r].encoding&&(o=ee[I].metadata[r].encoding,!s&&ee[I].encoding&&(s=ee[I].encoding),!s&&o.codePages&&(s=o.codePages[0]),"string"==typeof s&&(s=o[s]),s)){for(u=!1,a=[],n=0,i=e.length;n<i;n++)(l=s[e.charCodeAt(n)])?a.push(String.fromCharCode(l)):a.push(e[n]),a[n].charCodeAt(0)>>8&&(u=!0);e=a.join("")}for(n=e.length;void 0===u&&0!==n;)e.charCodeAt(n-1)>>8&&(u=!0),n--;if(!u)return e;for(a=t.noBOM?[]:[254,255],n=0,i=e.length;n<i;n++){if((c=(l=e.charCodeAt(n))>>8)>>8)throw new Error("Character at position "+n+" of string '"+e+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");a.push(c),a.push(l-(c<<8))}return String.fromCharCode.apply(void 0,a)}(e,t).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Ce=f.__private__.beginPage=function(e,t){var i,r="string"==typeof t&&t.toLowerCase();if("string"==typeof e&&(i=m(e.toLowerCase()))&&(e=i[0],t=i[1]),Array.isArray(e)&&(t=e[1],e=e[0]),(isNaN(e)||isNaN(t))&&(e=n[0],t=n[1]),r){switch(r.substr(0,1)){case"l":e<t&&(r="s");break;case"p":t<e&&(r="s")}"s"===r&&(i=e,e=t,t=i)}(14400<e||14400<t)&&(console.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),e=Math.min(14400,e),t=Math.min(14400,t)),n=[e,t],R=!0,P[++ne]=[],ie[ne]={objId:0,contentsObjId:0,userUnit:Number(c),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(e),topRightY:Number(t)}},Ne(ne)},Se=function(){Ce.apply(this,arguments),ze(We),j($e),0!==ot&&j(ot+" J"),0!==at&&j(at+" j"),oe.publish("addPage",{pageNumber:ne})},Ne=function(e){0<e&&e<=ne&&(x=e)},Le=f.__private__.getNumberOfPages=f.getNumberOfPages=function(){return P.length-1},Ee=function(e,t,n){var i,r=void 0;return n=n||{},e=void 0!==e?e:ee[I].fontName,t=void 0!==t?t:ee[I].fontStyle,i=e.toLowerCase(),void 0!==te[i]&&void 0!==te[i][t]?r=te[i][t]:void 0!==te[e]&&void 0!==te[e][t]?r=te[e][t]:!1===n.disableWarning&&console.warn("Unable to look up font label for font '"+e+"', '"+t+"'. Refer to getFontList() for available fonts."),r||n.noFallback||null==(r=te.times[t])&&(r=te.times.normal),r},xe=f.__private__.putInfo=function(){for(var e in ae(),j("<<"),j("/Producer (jsPDF "+a.version+")"),J)J.hasOwnProperty(e)&&J[e]&&j("/"+e.substr(0,1).toUpperCase()+e.substr(1)+" ("+we(J[e])+")");j("/CreationDate ("+v+")"),j(">>"),j("endobj")},Oe=f.__private__.putCatalog=function(e){var t=(e=e||{}).rootDictionaryObjId||de;switch(ae(),j("<<"),j("/Type /Catalog"),j("/Pages "+t+" 0 R"),B||(B="fullwidth"),B){case"fullwidth":j("/OpenAction [3 0 R /FitH null]");break;case"fullheight":j("/OpenAction [3 0 R /FitV null]");break;case"fullpage":j("/OpenAction [3 0 R /Fit]");break;case"original":j("/OpenAction [3 0 R /XYZ null null 1]");break;default:var n=""+B;"%"===n.substr(n.length-1)&&(B=parseInt(B)/100),"number"==typeof B&&j("/OpenAction [3 0 R /XYZ null null "+_(B)+"]")}switch(D||(D="continuous"),D){case"continuous":j("/PageLayout /OneColumn");break;case"single":j("/PageLayout /SinglePage");break;case"two":case"twoleft":j("/PageLayout /TwoColumnLeft");break;case"tworight":j("/PageLayout /TwoColumnRight")}k&&j("/PageMode /"+k),oe.publish("putCatalog"),j(">>"),j("endobj")},ke=f.__private__.putTrailer=function(){j("trailer"),j("<<"),j("/Size "+(Z+1)),j("/Root "+Z+" 0 R"),j("/Info "+(Z-1)+" 0 R"),j("/ID [ <"+b+"> <"+b+"> ]"),j(">>")},De=f.__private__.putHeader=function(){j("%PDF-"+p),j("%\xba\xdf\xac\xe0")},Ie=f.__private__.putXRef=function(){var e=1,t="0000000000";for(j("xref"),j("0 "+(Z+1)),j("0000000000 65535 f "),e=1;e<=Z;e++)"function"==typeof $[e]?j((t+$[e]()).slice(-10)+" 00000 n "):void 0!==$[e]?j((t+$[e]).slice(-10)+" 00000 n "):j("0000000000 00000 n ")},Me=f.__private__.buildDocument=function(){R=!1,H=Z=0,U=[],$=[],re=[],de=ue(),he=ue(),oe.publish("buildDocument"),De(),ve(),function(){oe.publish("putAdditionalObjects");for(var e=0;e<re.length;e++){var t=re[e];le(t.objId,!0),j(t.content),j("endobj")}oe.publish("postPutAdditionalObjects")}(),_e(),xe(),Oe();var e=H;return Ie(),ke(),j("startxref"),j(""+e),j("%%EOF"),R=!0,U.join("\n")},Fe=f.__private__.getBlob=function(e){return new Blob([V(e)],{type:"application/pdf"})},Te=f.output=f.__private__.output=((F=function(e,t){t=t||{};var n=Me();switch("string"==typeof t?t={filename:t}:t.filename=t.filename||"generated.pdf",e){case void 0:return n;case"save":f.save(t.filename);break;case"arraybuffer":return V(n);case"blob":return Fe(n);case"bloburi":case"bloburl":if(void 0!==i.URL&&"function"==typeof i.URL.createObjectURL)return i.URL&&i.URL.createObjectURL(Fe(n))||void 0;console.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":return"data:application/pdf;filename="+t.filename+";base64,"+btoa(n);case"dataurlnewwindow":var r='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring")+'"></iframe></body></html>',o=i.open();if(null!==o&&o.document.write(r),o||"undefined"==typeof safari)return o;case"datauri":case"dataurl":return i.document.location.href="data:application/pdf;filename="+t.filename+";base64,"+btoa(n);default:return null}}).foo=function(){try{return F.apply(this,arguments)}catch(e){var t=e.stack||"";~t.indexOf(" at ")&&(t=t.split(" at ")[1]);var n="Error in function "+t.split("\n")[0].split("<")[0]+": "+e.message;if(!i.console)throw new Error(n);i.console.error(n,e),i.alert&&alert(n)}},(F.foo.bar=F).foo),Re=function(e){return!0===Array.isArray(se)&&-1<se.indexOf(e)};switch(t){case"pt":M=1;break;case"mm":M=72/25.4;break;case"cm":M=72/2.54;break;case"in":M=72;break;case"px":M=1==Re("px_scaling")?.75:96/72;break;case"pc":case"em":M=12;break;case"ex":M=6;break;default:throw new Error("Invalid unit: "+t)}L(),C();var Pe=f.__private__.getPageInfo=function(e){if(isNaN(e)||e%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:ie[e].objId,pageNumber:e,pageContext:ie[e]}},Ue=f.__private__.getPageInfoByObjId=function(e){for(var t in ie)if(ie[t].objId===e)break;if(isNaN(e)||e%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");return Pe(t)},He=f.__private__.getCurrentPageInfo=function(){return{objId:ie[x].objId,pageNumber:x,pageContext:ie[x]}};f.addPage=function(){return Se.apply(this,arguments),this},f.setPage=function(){return Ne.apply(this,arguments),this},f.insertPage=function(e){return this.addPage(),this.movePage(x,e),this},f.movePage=function(e,t){if(t<e){for(var n=P[e],i=ie[e],r=e;t<r;r--)P[r]=P[r-1],ie[r]=ie[r-1];P[t]=n,ie[t]=i,this.setPage(t)}else if(e<t){for(n=P[e],i=ie[e],r=e;r<t;r++)P[r]=P[r+1],ie[r]=ie[r+1];P[t]=n,ie[t]=i,this.setPage(t)}return this},f.deletePage=function(){return function(e){0<e&&e<=ne&&(P.splice(e,1),--ne<x&&(x=ne),this.setPage(x))}.apply(this,arguments),this},f.__private__.text=f.text=function(e,t,n,i){var o;"number"!=typeof e||"number"!=typeof t||"string"!=typeof n&&!Array.isArray(n)||(o=n,n=t,t=e,e=o);var s=arguments[3],a=arguments[4],u=arguments[5];if("object"===r(s)&&null!==s||("string"==typeof a&&(u=a,a=null),"string"==typeof s&&(u=s,s=null),"number"==typeof s&&(a=s,s=null),i={flags:s,angle:a,align:u}),(s=s||{}).noBOM=s.noBOM||!0,s.autoencode=s.autoencode||!0,isNaN(t)||isNaN(n)||null==e)throw new Error("Invalid arguments passed to jsPDF.text");if(0===e.length)return f;var l,c="",d="number"==typeof i.lineHeightFactor?i.lineHeightFactor:Ve,f=i.scope||this;function p(e){for(var t,n=e.concat(),i=[],r=n.length;r--;)"string"==typeof(t=n.shift())?i.push(t):Array.isArray(e)&&1===t.length?i.push(t[0]):i.push([t[0],t[1],t[2]]);return i}function g(e,t){var n;if("string"==typeof e)n=t(e)[0];else if(Array.isArray(e)){for(var i,r,o=e.concat(),s=[],a=o.length;a--;)"string"==typeof(i=o.shift())?s.push(t(i)[0]):Array.isArray(i)&&"string"===i[0]&&(r=t(i[0],i[1],i[2]),s.push([r[0],r[1],r[2]]));n=s}return n}var A=!1,m=!0;if("string"==typeof e)A=!0;else if(Array.isArray(e)){for(var v,b=e.concat(),w=[],C=b.length;C--;)("string"!=typeof(v=b.shift())||Array.isArray(v)&&"string"!=typeof v[0])&&(m=!1);A=m}if(!1===A)throw new Error('Type of text must be string or Array. "'+e+'" is not recognized.');var S=ee[I].encoding;"WinAnsiEncoding"!==S&&"StandardEncoding"!==S||(e=g(e,(function(e,t,n){return[(r=e,r=r.split("\t").join(Array(i.TabLen||9).join(" ")),we(r,s)),t,n];var r}))),"string"==typeof e&&(e=e.match(/[\r?\n]/)?e.split(/\r\n|\r|\n/g):[e]);var N=z/f.internal.scaleFactor,L=N*(Ve-1);switch(i.baseline){case"bottom":n-=L;break;case"top":n+=N-L;break;case"hanging":n+=N-2*L;break;case"middle":n+=N/2-L}0<(Q=i.maxWidth||0)&&("string"==typeof e?e=f.splitTextToSize(e,Q):"[object Array]"===Object.prototype.toString.call(e)&&(e=f.splitTextToSize(e.join(" "),Q)));var E={text:e,x:t,y:n,options:i,mutex:{pdfEscape:we,activeFontKey:I,fonts:ee,activeFontSize:z}};oe.publish("preProcessText",E),e=E.text,a=(i=E.options).angle;var x=f.internal.scaleFactor,O=[];if(a){a*=Math.PI/180;var B=Math.cos(a),k=Math.sin(a);O=[_(B),_(k),_(-1*k),_(B)]}void 0!==(H=i.charSpace)&&(c+=y(H*x)+" Tc\n"),i.lang;var D=-1,M=void 0!==i.renderingMode?i.renderingMode:i.stroke,F=f.internal.getCurrentPageInfo().pageContext;switch(M){case 0:case!1:case"fill":D=0;break;case 1:case!0:case"stroke":D=1;break;case 2:case"fillThenStroke":D=2;break;case 3:case"invisible":D=3;break;case 4:case"fillAndAddForClipping":D=4;break;case 5:case"strokeAndAddPathForClipping":D=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":D=6;break;case 7:case"addToPathForClipping":D=7}var T=void 0!==F.usedRenderingMode?F.usedRenderingMode:-1;-1!==D?c+=D+" Tr\n":-1!==T&&(c+="0 Tr\n"),-1!==D&&(F.usedRenderingMode=D),u=i.align||"left";var R=z*d,P=f.internal.pageSize.getWidth(),U=(x=f.internal.scaleFactor,ee[I]),H=i.charSpace||it,Q=i.maxWidth||0,V=(s={},[]);if("[object Array]"===Object.prototype.toString.call(e)){var W,K;w=p(e),"left"!==u&&(K=w.map((function(e){return f.getStringUnitWidth(e,{font:U,charSpace:H,fontSize:z})*z/x})));Math.max.apply(Math,K);var G,X=0;if("right"===u){t-=K[0],e=[];var Y=0;for(C=w.length;Y<C;Y++)K[Y],W=0===Y?(G=Xe(t),Ye(n)):(G=(X-K[Y])*x,-R),e.push([w[Y],G,W]),X=K[Y]}else if("center"===u)for(t-=K[0]/2,e=[],Y=0,C=w.length;Y<C;Y++)K[Y],W=0===Y?(G=Xe(t),Ye(n)):(G=(X-K[Y])/2*x,-R),e.push([w[Y],G,W]),X=K[Y];else if("left"===u)for(e=[],Y=0,C=w.length;Y<C;Y++)W=0===Y?Ye(n):-R,G=0===Y?Xe(t):0,e.push(w[Y]);else{if("justify"!==u)throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(e=[],Q=0!==Q?Q:P,Y=0,C=w.length;Y<C;Y++)W=0===Y?Ye(n):-R,G=0===Y?Xe(t):0,Y<C-1&&V.push(((Q-K[Y])/(w[Y].split(" ").length-1)*x).toFixed(2)),e.push([w[Y],G,W])}}!0===("boolean"==typeof i.R2L?i.R2L:q)&&(e=g(e,(function(e,t,n){return[e.split("").reverse().join(""),t,n]}))),E={text:e,x:t,y:n,options:i,mutex:{pdfEscape:we,activeFontKey:I,fonts:ee,activeFontSize:z}},oe.publish("postProcessText",E),e=E.text,l=E.mutex.isHex,w=p(e),e=[];var J,Z,$,te=0,ne=(C=w.length,"");for(Y=0;Y<C;Y++)ne="",Array.isArray(w[Y])?(J=parseFloat(w[Y][1]),Z=parseFloat(w[Y][2]),$=(l?"<":"(")+w[Y][0]+(l?">":")"),te=1):(J=Xe(t),Z=Ye(n),$=(l?"<":"(")+w[Y]+(l?">":")")),void 0!==V&&void 0!==V[Y]&&(ne=V[Y]+" Tw\n"),0!==O.length&&0===Y?e.push(ne+O.join(" ")+" "+J.toFixed(2)+" "+Z.toFixed(2)+" Tm\n"+$):1===te||0===te&&0===Y?e.push(ne+J.toFixed(2)+" "+Z.toFixed(2)+" Td\n"+$):e.push(ne+$);e=0===te?e.join(" Tj\nT* "):e.join(" Tj\n"),e+=" Tj\n";var ie="BT\n/"+I+" "+z+" Tf\n"+(z*d).toFixed(2)+" TL\n"+tt+"\n";return ie+=c,ie+=e,j(ie+="ET"),h[I]=!0,f},f.__private__.lstext=f.lstext=function(e,t,n,i){return console.warn("jsPDF.lstext is deprecated"),this.text(e,t,n,{charSpace:i})},f.__private__.clip=f.clip=function(e){j("evenodd"===e?"W*":"W"),j("n")},f.__private__.clip_fixed=f.clip_fixed=function(e){console.log("clip_fixed is deprecated"),f.clip(e)};var je=f.__private__.isValidStyle=function(e){var t=!1;return-1!==[void 0,null,"S","F","DF","FD","f","f*","B","B*"].indexOf(e)&&(t=!0),t},Qe=f.__private__.getStyle=function(e){var t="S";return"F"===e?t="f":"FD"===e||"DF"===e?t="B":"f"!==e&&"f*"!==e&&"B"!==e&&"B*"!==e||(t=e),t};f.__private__.line=f.line=function(e,t,n,i){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(i))throw new Error("Invalid arguments passed to jsPDF.line");return this.lines([[n-e,i-t]],e,t)},f.__private__.lines=f.lines=function(e,t,n,i,r,o){var s,a,u,l,c,d,h,f,p,g,A,m;if("number"==typeof e&&(m=n,n=t,t=e,e=m),i=i||[1,1],o=o||!1,isNaN(t)||isNaN(n)||!Array.isArray(e)||!Array.isArray(i)||!je(r)||"boolean"!=typeof o)throw new Error("Invalid arguments passed to jsPDF.lines");for(j(y(Xe(t))+" "+y(Ye(n))+" m "),s=i[0],a=i[1],l=e.length,g=t,A=n,u=0;u<l;u++)2===(c=e[u]).length?(g=c[0]*s+g,A=c[1]*a+A,j(y(Xe(g))+" "+y(Ye(A))+" l")):(d=c[0]*s+g,h=c[1]*a+A,f=c[2]*s+g,p=c[3]*a+A,g=c[4]*s+g,A=c[5]*a+A,j(y(Xe(d))+" "+y(Ye(h))+" "+y(Xe(f))+" "+y(Ye(p))+" "+y(Xe(g))+" "+y(Ye(A))+" c"));return o&&j(" h"),null!==r&&j(Qe(r)),this},f.__private__.rect=f.rect=function(e,t,n,i,r){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(i)||!je(r))throw new Error("Invalid arguments passed to jsPDF.rect");return j([_(Xe(e)),_(Ye(t)),_(n*M),_(-i*M),"re"].join(" ")),null!==r&&j(Qe(r)),this},f.__private__.triangle=f.triangle=function(e,t,n,i,r,o,s){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(i)||isNaN(r)||isNaN(o)||!je(s))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[n-e,i-t],[r-n,o-i],[e-r,t-o]],e,t,[1,1],s,!0),this},f.__private__.roundedRect=f.roundedRect=function(e,t,n,i,r,o,s){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(i)||isNaN(r)||isNaN(o)||!je(s))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var a=4/3*(Math.SQRT2-1);return this.lines([[n-2*r,0],[r*a,0,r,o-o*a,r,o],[0,i-2*o],[0,o*a,-r*a,o,-r,o],[2*r-n,0],[-r*a,0,-r,-o*a,-r,-o],[0,2*o-i],[0,-o*a,r*a,-o,r,-o]],e+r,t,[1,1],s),this},f.__private__.ellipse=f.ellipse=function(e,t,n,i,r){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(i)||!je(r))throw new Error("Invalid arguments passed to jsPDF.ellipse");var o=4/3*(Math.SQRT2-1)*n,s=4/3*(Math.SQRT2-1)*i;return j([_(Xe(e+n)),_(Ye(t)),"m",_(Xe(e+n)),_(Ye(t-s)),_(Xe(e+o)),_(Ye(t-i)),_(Xe(e)),_(Ye(t-i)),"c"].join(" ")),j([_(Xe(e-o)),_(Ye(t-i)),_(Xe(e-n)),_(Ye(t-s)),_(Xe(e-n)),_(Ye(t)),"c"].join(" ")),j([_(Xe(e-n)),_(Ye(t+s)),_(Xe(e-o)),_(Ye(t+i)),_(Xe(e)),_(Ye(t+i)),"c"].join(" ")),j([_(Xe(e+o)),_(Ye(t+i)),_(Xe(e+n)),_(Ye(t+s)),_(Xe(e+n)),_(Ye(t)),"c"].join(" ")),null!==r&&j(Qe(r)),this},f.__private__.circle=f.circle=function(e,t,n,i){if(isNaN(e)||isNaN(t)||isNaN(n)||!je(i))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(e,t,n,n,i)},f.setFont=function(e,t){return I=Ee(e,t,{disableWarning:!1}),this},f.setFontStyle=f.setFontType=function(e){return I=Ee(void 0,e),this},f.__private__.getFontList=f.getFontList=function(){var e,t,n,i={};for(e in te)if(te.hasOwnProperty(e))for(t in i[e]=n=[],te[e])te[e].hasOwnProperty(t)&&n.push(t);return i},f.addFont=function(e,t,n,i){be.call(this,e,t,n,i=i||"Identity-H")};var Ve,We=u.lineWidth||.200025,ze=f.__private__.setLineWidth=f.setLineWidth=function(e){return j((e*M).toFixed(2)+" w"),this},Ke=(f.__private__.setLineDash=a.API.setLineDash=function(e,t){if(e=e||[],t=t||0,isNaN(t)||!Array.isArray(e))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return e=e.map((function(e){return(e*M).toFixed(3)})).join(" "),t=parseFloat((t*M).toFixed(3)),j("["+e+"] "+t+" d"),this},f.__private__.getLineHeight=f.getLineHeight=function(){return z*Ve}),qe=(Ke=f.__private__.getLineHeight=f.getLineHeight=function(){return z*Ve},f.__private__.setLineHeightFactor=f.setLineHeightFactor=function(e){return"number"==typeof(e=e||1.15)&&(Ve=e),this}),Ge=f.__private__.getLineHeightFactor=f.getLineHeightFactor=function(){return Ve};qe(u.lineHeight);var Xe=f.__private__.getHorizontalCoordinate=function(e){return e*M},Ye=f.__private__.getVerticalCoordinate=function(e){return ie[x].mediaBox.topRightY-ie[x].mediaBox.bottomLeftY-e*M},Je=f.__private__.getHorizontalCoordinateString=function(e){return _(e*M)},Ze=f.__private__.getVerticalCoordinateString=function(e){return _(ie[x].mediaBox.topRightY-ie[x].mediaBox.bottomLeftY-e*M)},$e=u.strokeColor||"0 G",et=(f.__private__.getStrokeColor=f.getDrawColor=function(){return fe($e)},f.__private__.setStrokeColor=f.setDrawColor=function(e,t,n,i){return $e=pe({ch1:e,ch2:t,ch3:n,ch4:i,pdfColorType:"draw",precision:2}),j($e),this},u.fillColor||"0 g"),tt=(f.__private__.getFillColor=f.getFillColor=function(){return fe(et)},f.__private__.setFillColor=f.setFillColor=function(e,t,n,i){return et=pe({ch1:e,ch2:t,ch3:n,ch4:i,pdfColorType:"fill",precision:2}),j(et),this},u.textColor||"0 g"),nt=f.__private__.getTextColor=f.getTextColor=function(){return fe(tt)},it=(f.__private__.setTextColor=f.setTextColor=function(e,t,n,i){return tt=pe({ch1:e,ch2:t,ch3:n,ch4:i,pdfColorType:"text",precision:3}),this},u.charSpace||0),rt=f.__private__.getCharSpace=f.getCharSpace=function(){return it},ot=(f.__private__.setCharSpace=f.setCharSpace=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return it=e,this},0);f.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},f.__private__.setLineCap=f.setLineCap=function(e){var t=f.CapJoinStyles[e];if(void 0===t)throw new Error("Line cap style of '"+e+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return j((ot=t)+" J"),this};var st,at=0;for(var ut in f.__private__.setLineJoin=f.setLineJoin=function(e){var t=f.CapJoinStyles[e];if(void 0===t)throw new Error("Line join style of '"+e+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return j((at=t)+" j"),this},f.__private__.setMiterLimit=f.setMiterLimit=function(e){if(e=e||0,isNaN(e))throw new Error("Invalid argument passed to jsPDF.setMiterLimit");return st=parseFloat(_(e*M)),j(st+" M"),this},f.save=function(e,t){if(e=e||"generated.pdf",(t=t||{}).returnPromise=t.returnPromise||!1,!1!==t.returnPromise)return new Promise((function(t,n){try{var r=Be(Fe(Me()),e);"function"==typeof Be.unload&&i.setTimeout&&setTimeout(Be.unload,911),t(r)}catch(t){n(t.message)}}));Be(Fe(Me()),e),"function"==typeof Be.unload&&i.setTimeout&&setTimeout(Be.unload,911)},a.API)a.API.hasOwnProperty(ut)&&("events"===ut&&a.API.events.length?function(e,t){var n,i,r;for(r=t.length-1;-1!==r;r--)n=t[r][0],i=t[r][1],e.subscribe.apply(e,[n].concat("function"==typeof i?[i]:i))}(oe,a.API.events):f[ut]=a.API[ut]);return f.internal={pdfEscape:we,getStyle:Qe,getFont:function(){return ee[Ee.apply(f,arguments)]},getFontSize:K,getCharSpace:rt,getTextColor:nt,getLineHeight:Ke,getLineHeightFactor:Ge,write:Q,getHorizontalCoordinate:Xe,getVerticalCoordinate:Ye,getCoordinateString:Je,getVerticalCoordinateString:Ze,collections:{},newObject:ae,newAdditionalObject:ce,newObjectDeferred:ue,newObjectDeferredBegin:le,getFilters:ge,putStream:Ae,events:oe,scaleFactor:M,pageSize:{getWidth:function(){return(ie[x].mediaBox.topRightX-ie[x].mediaBox.bottomLeftX)/M},setWidth:function(e){ie[x].mediaBox.topRightX=e*M+ie[x].mediaBox.bottomLeftX},getHeight:function(){return(ie[x].mediaBox.topRightY-ie[x].mediaBox.bottomLeftY)/M},setHeight:function(e){ie[x].mediaBox.topRightY=e*M+ie[x].mediaBox.bottomLeftY}},output:Te,getNumberOfPages:Le,pages:P,out:j,f2:_,f3:y,getPageInfo:Pe,getPageInfoByObjId:Ue,getCurrentPageInfo:He,getPDFVersion:g,hasHotfix:Re},Object.defineProperty(f.internal.pageSize,"width",{get:function(){return(ie[x].mediaBox.topRightX-ie[x].mediaBox.bottomLeftX)/M},set:function(e){ie[x].mediaBox.topRightX=e*M+ie[x].mediaBox.bottomLeftX},enumerable:!0,configurable:!0}),Object.defineProperty(f.internal.pageSize,"height",{get:function(){return(ie[x].mediaBox.topRightY-ie[x].mediaBox.bottomLeftY)/M},set:function(e){ie[x].mediaBox.topRightY=e*M+ie[x].mediaBox.bottomLeftY},enumerable:!0,configurable:!0}),function(e){for(var t=0,n=W.length;t<n;t++){var i=be(e[t][0],e[t][1],e[t][2],W[t][3],!0);h[i]=!0;var r=e[t][0].split("-");ye(i,r[0],r[1]||"")}oe.publish("addFonts",{fonts:ee,dictionary:te})}(W),I="F1",Se(n,e),oe.publish("initialized"),f}return a.API={events:[]},a.version="1.5.3",o=function(){return a}.call(t,n,t,e),void 0!==o&&(e.exports=o),a}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||"undefined"!=typeof i&&i||Function('return typeof this === "object" && this.content')()||Function("return this")());(function(e,t){var n,i=1,o=function(e){return e.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},s=function(e){return e.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},a=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.f2");return e.toFixed(2)},u=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.f2");return e.toFixed(5)};e.__acroform__={};var l=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e},c=function(e){return e*i},d=function(e){return e/i},h=function(e){var t=new M,n=G.internal.getHeight(e)||0,i=G.internal.getWidth(e)||0;return t.BBox=[0,0,Number(a(i)),Number(a(n))],t},f=e.__acroform__.setBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return e|1<<t},p=e.__acroform__.clearBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return e&~(1<<t)},g=e.__acroform__.getBit=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return 0==(e&1<<t)?0:1},A=e.__acroform__.getBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return g(e,t-1)},m=e.__acroform__.setBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return f(e,t-1)},v=e.__acroform__.clearBitForPdf=function(e,t,n){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return p(e,t-1)},_=e.__acroform__.calculateCoordinates=function(e){var t=this.internal.getHorizontalCoordinate,n=this.internal.getVerticalCoordinate,i=e[0],r=e[1],o=e[2],s=e[3],u={};return u.lowerLeft_X=t(i)||0,u.lowerLeft_Y=n(r+s)||0,u.upperRight_X=t(i+o)||0,u.upperRight_Y=n(r)||0,[Number(a(u.lowerLeft_X)),Number(a(u.lowerLeft_Y)),Number(a(u.upperRight_X)),Number(a(u.upperRight_Y))]},y=function(e){if(e.appearanceStreamContent)return e.appearanceStreamContent;if(e.V||e.DV){var t=[],i=e.V||e.DV,r=b(e,i),o=n.internal.getFont(e.fontName,e.fontStyle).id;t.push("/Tx BMC"),t.push("q"),t.push("BT"),t.push(n.__private__.encodeColorString(e.color)),t.push("/"+o+" "+a(r.fontSize)+" Tf"),t.push("1 0 0 1 0 0 Tm"),t.push(r.text),t.push("ET"),t.push("Q"),t.push("EMC");var s=new h(e);return s.stream=t.join("\n"),s}},b=function(e,t){var i=e.maxFontSize||12,r=(e.fontName,{text:"",fontSize:""}),s=(t=")"==(t="("==t.substr(0,1)?t.substr(1):t).substr(t.length-1)?t.substr(0,t.length-1):t).split(" "),u=(n.__private__.encodeColorString(e.color),i),l=G.internal.getHeight(e)||0;l=l<0?-l:l;var c=G.internal.getWidth(e)||0;c=c<0?-c:c;var d=function(t,n,i){if(t+1<s.length){var r=n+" "+s[t+1];return w(r,e,i).width<=c-4}return!1};u++;e:for(;;){t="";var h=w("3",e,--u).height,f=e.multiline?l-u:(l-h)/2,p=-2,g=f+=2,A=0,m=0,v=0;if(u<=0){t="(...) Tj\n",t+="% Width of Text: "+w(t,e,u=12).width+", FieldWidth:"+c+"\n";break}v=w(s[0]+" ",e,u).width;var _="",y=0;for(var b in s)if(s.hasOwnProperty(b)){_=" "==(_+=s[b]+" ").substr(_.length-1)?_.substr(0,_.length-1):_;var C=parseInt(b);v=w(_+" ",e,u).width;var S=d(C,_,u),N=b>=s.length-1;if(S&&!N){_+=" ";continue}if(S||N){if(N)m=C;else if(e.multiline&&l<(h+2)*(y+2)+2)continue e}else{if(!e.multiline)continue e;if(l<(h+2)*(y+2)+2)continue e;m=C}for(var L="",E=A;E<=m;E++)L+=s[E]+" ";switch(L=" "==L.substr(L.length-1)?L.substr(0,L.length-1):L,v=w(L,e,u).width,e.textAlign){case"right":p=c-v-2;break;case"center":p=(c-v)/2;break;case"left":default:p=2}t+=a(p)+" "+a(g)+" Td\n",t+="("+o(L)+") Tj\n",t+=-a(p)+" 0 Td\n",g=-(u+2),v=0,A=m+1,y++,_=""}break}return r.text=t,r.fontSize=u,r},w=function(e,t,i){var r=n.internal.getFont(t.fontName,t.fontStyle),o=n.getStringUnitWidth(e,{font:r,fontSize:parseFloat(i),charSpace:0})*parseFloat(i);return{height:n.getStringUnitWidth("3",{font:r,fontSize:parseFloat(i),charSpace:0})*parseFloat(i)*1.5,width:o}},C={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},S=function(){n.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var e=n.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var t in e)if(e.hasOwnProperty(t)){var i=e[t];i.objId=void 0,i.hasAnnotation&&N.call(n,i)}},N=function(e){var t={type:"reference",object:e};void 0===n.internal.getPageInfo(e.page).pageContext.annotations.find((function(e){return e.type===t.type&&e.object===t.object}))&&n.internal.getPageInfo(e.page).pageContext.annotations.push(t)},L=function(){if(void 0===n.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("putCatalogCallback: Root missing.");n.internal.write("/AcroForm "+n.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")},E=function(){n.internal.events.unsubscribe(n.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete n.internal.acroformPlugin.acroFormDictionaryRoot._eventID,n.internal.acroformPlugin.printedOut=!0},x=function(e){var t=!e;for(var i in e||(n.internal.newObjectDeferredBegin(n.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),n.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),e=e||n.internal.acroformPlugin.acroFormDictionaryRoot.Kids,e)if(e.hasOwnProperty(i)){var o=e[i],s=[],a=o.Rect;if(o.Rect&&(o.Rect=_.call(this,o.Rect)),n.internal.newObjectDeferredBegin(o.objId,!0),o.DA=G.createDefaultAppearanceStream(o),"object"===r(o)&&"function"==typeof o.getKeyValueListForStream&&(s=o.getKeyValueListForStream()),o.Rect=a,o.hasAppearanceStream&&!o.appearanceStreamContent){var u=y.call(this,o);s.push({key:"AP",value:"<</N "+u+">>"}),n.internal.acroformPlugin.xForms.push(u)}if(o.appearanceStreamContent){var l="";for(var c in o.appearanceStreamContent)if(o.appearanceStreamContent.hasOwnProperty(c)){var d=o.appearanceStreamContent[c];if(l+="/"+c+" ",l+="<<",1<=Object.keys(d).length||Array.isArray(d))for(var i in d){var h;d.hasOwnProperty(i)&&("function"==typeof(h=d[i])&&(h=h.call(this,o)),l+="/"+i+" "+h+" ",0<=n.internal.acroformPlugin.xForms.indexOf(h)||n.internal.acroformPlugin.xForms.push(h))}else"function"==typeof(h=d)&&(h=h.call(this,o)),l+="/"+i+" "+h,0<=n.internal.acroformPlugin.xForms.indexOf(h)||n.internal.acroformPlugin.xForms.push(h);l+=">>"}s.push({key:"AP",value:"<<\n"+l+">>"})}n.internal.putStream({additionalKeyValues:s}),n.internal.out("endobj")}t&&O.call(this,n.internal.acroformPlugin.xForms)},O=function(e){for(var t in e)if(e.hasOwnProperty(t)){var i=t,o=e[t];n.internal.newObjectDeferredBegin(o&&o.objId,!0),"object"===r(o)&&"function"==typeof o.putStream&&o.putStream(),delete e[i]}},B=function(){if(void 0!==this.internal&&(void 0===this.internal.acroformPlugin||!1===this.internal.acroformPlugin.isInitialized)){if(n=this,T.FieldNum=0,this.internal.acroformPlugin=JSON.parse(JSON.stringify(C)),this.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");i=n.internal.scaleFactor,n.internal.acroformPlugin.acroFormDictionaryRoot=new F,n.internal.acroformPlugin.acroFormDictionaryRoot._eventID=n.internal.events.subscribe("postPutResources",E),n.internal.events.subscribe("buildDocument",S),n.internal.events.subscribe("putCatalog",L),n.internal.events.subscribe("postPutPages",x),n.internal.acroformPlugin.isInitialized=!0}},k=e.__acroform__.arrayToPdfArray=function(e){if(Array.isArray(e)){for(var t="[",n=0;n<e.length;n++)switch(0!==n&&(t+=" "),r(e[n])){case"boolean":case"number":case"object":t+=e[n].toString();break;case"string":"/"!==e[n].substr(0,1)?t+="("+o(e[n].toString())+")":t+=e[n].toString()}return t+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},D=function(e){return(e=e||"").toString(),"("+o(e)+")"},I=function(){var e;Object.defineProperty(this,"objId",{configurable:!0,get:function(){if(e||(e=n.internal.newObjectDeferred()),!e)throw new Error("AcroFormPDFObject: Couldn't create Object ID");return e},set:function(t){e=t}})};I.prototype.toString=function(){return this.objId+" 0 R"},I.prototype.putStream=function(){var e=this.getKeyValueListForStream();n.internal.putStream({data:this.stream,additionalKeyValues:e}),n.internal.out("endobj")},I.prototype.getKeyValueListForStream=function(){return function(e){var t=[],n=Object.getOwnPropertyNames(e).filter((function(e){return"content"!=e&&"appearanceStreamContent"!=e&&"_"!=e.substring(0,1)}));for(var i in n)if(!1===Object.getOwnPropertyDescriptor(e,n[i]).configurable){var r=n[i],o=e[r];o&&(Array.isArray(o)?t.push({key:r,value:k(o)}):o instanceof I?t.push({key:r,value:o.objId+" 0 R"}):"function"!=typeof o&&t.push({key:r,value:o}))}return t}(this)};var M=function(){I.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writeable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writeable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writeable:!0});var e,t=[];Object.defineProperty(this,"BBox",{configurable:!1,writeable:!0,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writeable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(t){e=t.trim()},get:function(){return e||null}})};l(M,I);var F=function(){I.call(this);var e,t=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return 0<t.length?t:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return t}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(e)return"("+e+")"},set:function(t){e=t}})};l(F,I);var T=function e(){I.call(this);var t=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){if(isNaN(e))throw new Error('Invalid value "'+e+'" for attribute F supplied.');t=e}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return Boolean(A(t,3))},set:function(e){!0===Boolean(e)?this.F=m(t,3):this.F=v(t,3)}});var n=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return n},set:function(e){if(isNaN(e))throw new Error('Invalid value "'+e+'" for attribute Ff supplied.');n=e}});var i=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(0!==i.length)return i},set:function(e){i=void 0!==e?e:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!i||isNaN(i[0])?0:d(i[0])},set:function(e){i[0]=c(e)}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!i||isNaN(i[1])?0:d(i[1])},set:function(e){i[1]=c(e)}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!i||isNaN(i[2])?0:d(i[2])},set:function(e){i[2]=c(e)}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!i||isNaN(i[3])?0:d(i[3])},set:function(e){i[3]=c(e)}});var r="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return r},set:function(e){switch(e){case"/Btn":case"/Tx":case"/Ch":case"/Sig":r=e;break;default:throw new Error('Invalid value "'+e+'" for attribute FT supplied.')}}});var a=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!a||a.length<1){if(this instanceof W)return;a="FieldObject"+e.FieldNum++}return"("+o(a)+")"},set:function(e){a=e.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return a},set:function(e){a=e}});var u="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return u},set:function(e){u=e}});var l="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return l},set:function(e){l=e}});var h=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return d(h)},set:function(e){h=c(e)}});var f=50;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return d(f)},set:function(e){f=c(e)}});var p="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return p},set:function(e){p=e}});var g="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!g||this instanceof W||this instanceof K))return D(g)},set:function(e){e=e.toString(),g=e}});var _=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(_)return this instanceof j==0?D(_):_},set:function(e){e=e.toString(),_=this instanceof j==0?"("===e.substr(0,1)?s(e.substr(1,e.length-2)):s(e):e}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof j==1?s(_.substr(1,_.length-1)):_},set:function(e){e=e.toString(),_=this instanceof j==1?"/"+e:e}});var y=null;Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(y)return this instanceof j==0?D(y):y},set:function(e){e=e.toString(),y=this instanceof j==0?"("===e.substr(0,1)?s(e.substr(1,e.length-2)):s(e):e}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof j==1?s(y.substr(1,y.length-1)):y},set:function(e){e=e.toString(),y=this instanceof j==1?"/"+e:e}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var b,w=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,writeable:!0,get:function(){return w},set:function(e){e=Boolean(e),w=e}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,writeable:!0,get:function(){if(b)return b},set:function(e){b=e}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return Boolean(A(this.Ff,1))},set:function(e){!0===Boolean(e)?this.Ff=m(this.Ff,1):this.Ff=v(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean(A(this.Ff,2))},set:function(e){!0===Boolean(e)?this.Ff=m(this.Ff,2):this.Ff=v(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean(A(this.Ff,3))},set:function(e){!0===Boolean(e)?this.Ff=m(this.Ff,3):this.Ff=v(this.Ff,3)}});var C=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(null!==C)return C},set:function(e){if(-1===[0,1,2].indexOf(e))throw new Error('Invalid value "'+e+'" for attribute Q supplied.');C=e}}),Object.defineProperty(this,"textAlign",{get:function(){var e="left";switch(C){case 0:default:e="left";break;case 1:e="center";break;case 2:e="right"}return e},configurable:!0,enumerable:!0,set:function(e){switch(e){case"right":case 2:C=2;break;case"center":case 1:C=1;break;case"left":case 0:default:C=0}}})};l(T,I);var R=function(){T.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var e=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){e=t}});var t=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return k(t)},set:function(e){var n,i;i=[],"string"==typeof(n=e)&&(i=function(e,t,n){n||(n=1);for(var i,r=[];i=t.exec(e);)r.push(i[n]);return r}(n,/\((.*?)\)/g)),t=i}}),this.getOptions=function(){return t},this.setOptions=function(e){t=e,this.sort&&t.sort()},this.addOption=function(e){e=(e=e||"").toString(),t.push(e),this.sort&&t.sort()},this.removeOption=function(e,n){for(n=n||!1,e=(e=e||"").toString();-1!==t.indexOf(e)&&(t.splice(t.indexOf(e),1),!1!==n););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return Boolean(A(this.Ff,18))},set:function(e){!0===Boolean(e)?this.Ff=m(this.Ff,18):this.Ff=v(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean(A(this.Ff,19))},set:function(e){!0===this.combo&&(!0===Boolean(e)?this.Ff=m(this.Ff,19):this.Ff=v(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean(A(this.Ff,20))},set:function(e){!0===Boolean(e)?(this.Ff=m(this.Ff,20),t.sort()):this.Ff=v(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(A(this.Ff,22))},set:function(e){!0===Boolean(e)?this.Ff=m(this.Ff,22):this.Ff=v(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(A(this.Ff,23))},set:function(e){!0===Boolean(e)?this.Ff=m(this.Ff,23):this.Ff=v(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean(A(this.Ff,27))},set:function(e){!0===Boolean(e)?this.Ff=m(this.Ff,27):this.Ff=v(this.Ff,27)}}),this.hasAppearanceStream=!1};l(R,T);var P=function(){R.call(this),this.fontName="helvetica",this.combo=!1};l(P,R);var U=function(){P.call(this),this.combo=!0};l(U,P);var H=function(){U.call(this),this.edit=!0};l(H,U);var j=function(){T.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean(A(this.Ff,15))},set:function(e){!0===Boolean(e)?this.Ff=m(this.Ff,15):this.Ff=v(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean(A(this.Ff,16))},set:function(e){!0===Boolean(e)?this.Ff=m(this.Ff,16):this.Ff=v(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean(A(this.Ff,17))},set:function(e){!0===Boolean(e)?this.Ff=m(this.Ff,17):this.Ff=v(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean(A(this.Ff,26))},set:function(e){!0===Boolean(e)?this.Ff=m(this.Ff,26):this.Ff=v(this.Ff,26)}});var e,t={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){if(0!==Object.keys(t).length){var e,n=[];for(e in n.push("<<"),t)n.push("/"+e+" ("+t[e]+")");return n.push(">>"),n.join("\n")}},set:function(e){"object"===r(e)&&(t=e)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return t.CA||""},set:function(e){"string"==typeof e&&(t.CA=e)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(t){e="/"+t}})};l(j,T);var Q=function(){j.call(this),this.pushButton=!0};l(Q,j);var V=function(){j.call(this),this.radio=!0,this.pushButton=!1;var e=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=void 0!==t?t:[]}})};l(V,j);var W=function(){var e,t;T.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(e){t=e}});var n,i={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var e,t=[];for(e in t.push("<<"),i)t.push("/"+e+" ("+i[e]+")");return t.push(">>"),t.join("\n")},set:function(e){"object"===r(e)&&(i=e)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return i.CA||""},set:function(e){"string"==typeof e&&(i.CA=e)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return n},set:function(e){n=e}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return n.substr(1,n.length-1)},set:function(e){n="/"+e}}),this.optionName=name,this.caption="l",this.appearanceState="Off",this._AppearanceType=G.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(name)};l(W,T),V.prototype.setAppearance=function(e){if(!("createAppearanceStream"in e)||!("getCA"in e))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var t in this.Kids)if(this.Kids.hasOwnProperty(t)){var n=this.Kids[t];n.appearanceStreamContent=e.createAppearanceStream(n.optionName),n.caption=e.getCA()}},V.prototype.createOption=function(e){this.Kids.length;var t=new W;return t.Parent=this,t.optionName=e,this.Kids.push(t),X.call(this,t),t};var z=function(){j.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=G.CheckBox.createAppearanceStream()};l(z,j);var K=function(){T.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(A(this.Ff,13))},set:function(e){!0===Boolean(e)?this.Ff=m(this.Ff,13):this.Ff=v(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(A(this.Ff,21))},set:function(e){!0===Boolean(e)?this.Ff=m(this.Ff,21):this.Ff=v(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(A(this.Ff,23))},set:function(e){!0===Boolean(e)?this.Ff=m(this.Ff,23):this.Ff=v(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(A(this.Ff,24))},set:function(e){!0===Boolean(e)?this.Ff=m(this.Ff,24):this.Ff=v(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(A(this.Ff,25))},set:function(e){!0===Boolean(e)?this.Ff=m(this.Ff,25):this.Ff=v(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(A(this.Ff,26))},set:function(e){!0===Boolean(e)?this.Ff=m(this.Ff,26):this.Ff=v(this.Ff,26)}});var e=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){Number.isInteger(t)&&(e=t)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};l(K,T);var q=function(){K.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(A(this.Ff,14))},set:function(e){!0===Boolean(e)?this.Ff=m(this.Ff,14):this.Ff=v(this.Ff,14)}}),this.password=!0};l(q,K);var G={CheckBox:{createAppearanceStream:function(){return{N:{On:G.CheckBox.YesNormal},D:{On:G.CheckBox.YesPushDown,Off:G.CheckBox.OffPushDown}}},YesPushDown:function(e){var t=h(e),i=[],r=n.internal.getFont(e.fontName,e.fontStyle).id,o=n.__private__.encodeColorString(e.color),s=b(e,e.caption);return i.push("0.749023 g"),i.push("0 0 "+a(G.internal.getWidth(e))+" "+a(G.internal.getHeight(e))+" re"),i.push("f"),i.push("BMC"),i.push("q"),i.push("0 0 1 rg"),i.push("/"+r+" "+a(s.fontSize)+" Tf "+o),i.push("BT"),i.push(s.text),i.push("ET"),i.push("Q"),i.push("EMC"),t.stream=i.join("\n"),t},YesNormal:function(e){var t=h(e),i=n.internal.getFont(e.fontName,e.fontStyle).id,r=n.__private__.encodeColorString(e.color),o=[],s=G.internal.getHeight(e),u=G.internal.getWidth(e),l=b(e,e.caption);return o.push("1 g"),o.push("0 0 "+a(u)+" "+a(s)+" re"),o.push("f"),o.push("q"),o.push("0 0 1 rg"),o.push("0 0 "+a(u-1)+" "+a(s-1)+" re"),o.push("W"),o.push("n"),o.push("0 g"),o.push("BT"),o.push("/"+i+" "+a(l.fontSize)+" Tf "+r),o.push(l.text),o.push("ET"),o.push("Q"),t.stream=o.join("\n"),t},OffPushDown:function(e){var t=h(e),n=[];return n.push("0.749023 g"),n.push("0 0 "+a(G.internal.getWidth(e))+" "+a(G.internal.getHeight(e))+" re"),n.push("f"),t.stream=n.join("\n"),t}},RadioButton:{Circle:{createAppearanceStream:function(e){var t={D:{Off:G.RadioButton.Circle.OffPushDown},N:{}};return t.N[e]=G.RadioButton.Circle.YesNormal,t.D[e]=G.RadioButton.Circle.YesPushDown,t},getCA:function(){return"l"},YesNormal:function(e){var t=h(e),n=[],i=G.internal.getWidth(e)<=G.internal.getHeight(e)?G.internal.getWidth(e)/4:G.internal.getHeight(e)/4;i=Number((.9*i).toFixed(5));var r=G.internal.Bezier_C,o=Number((i*r).toFixed(5));return n.push("q"),n.push("1 0 0 1 "+u(G.internal.getWidth(e)/2)+" "+u(G.internal.getHeight(e)/2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+o+" "+o+" "+i+" 0 "+i+" c"),n.push("-"+o+" "+i+" -"+i+" "+o+" -"+i+" 0 c"),n.push("-"+i+" -"+o+" -"+o+" -"+i+" 0 -"+i+" c"),n.push(o+" -"+i+" "+i+" -"+o+" "+i+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join("\n"),t},YesPushDown:function(e){var t=h(e),n=[],i=G.internal.getWidth(e)<=G.internal.getHeight(e)?G.internal.getWidth(e)/4:G.internal.getHeight(e)/4,r=(i=Number((.9*i).toFixed(5)),Number((2*i).toFixed(5))),o=Number((r*G.internal.Bezier_C).toFixed(5)),s=Number((i*G.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+u(G.internal.getWidth(e)/2)+" "+u(G.internal.getHeight(e)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+o+" "+o+" "+r+" 0 "+r+" c"),n.push("-"+o+" "+r+" -"+r+" "+o+" -"+r+" 0 c"),n.push("-"+r+" -"+o+" -"+o+" -"+r+" 0 -"+r+" c"),n.push(o+" -"+r+" "+r+" -"+o+" "+r+" 0 c"),n.push("f"),n.push("Q"),n.push("0 g"),n.push("q"),n.push("1 0 0 1 "+u(G.internal.getWidth(e)/2)+" "+u(G.internal.getHeight(e)/2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+s+" "+s+" "+i+" 0 "+i+" c"),n.push("-"+s+" "+i+" -"+i+" "+s+" -"+i+" 0 c"),n.push("-"+i+" -"+s+" -"+s+" -"+i+" 0 -"+i+" c"),n.push(s+" -"+i+" "+i+" -"+s+" "+i+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join("\n"),t},OffPushDown:function(e){var t=h(e),n=[],i=G.internal.getWidth(e)<=G.internal.getHeight(e)?G.internal.getWidth(e)/4:G.internal.getHeight(e)/4,r=(i=Number((.9*i).toFixed(5)),Number((2*i).toFixed(5))),o=Number((r*G.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+u(G.internal.getWidth(e)/2)+" "+u(G.internal.getHeight(e)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+o+" "+o+" "+r+" 0 "+r+" c"),n.push("-"+o+" "+r+" -"+r+" "+o+" -"+r+" 0 c"),n.push("-"+r+" -"+o+" -"+o+" -"+r+" 0 -"+r+" c"),n.push(o+" -"+r+" "+r+" -"+o+" "+r+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join("\n"),t}},Cross:{createAppearanceStream:function(e){var t={D:{Off:G.RadioButton.Cross.OffPushDown},N:{}};return t.N[e]=G.RadioButton.Cross.YesNormal,t.D[e]=G.RadioButton.Cross.YesPushDown,t},getCA:function(){return"8"},YesNormal:function(e){var t=h(e),n=[],i=G.internal.calculateCross(e);return n.push("q"),n.push("1 1 "+a(G.internal.getWidth(e)-2)+" "+a(G.internal.getHeight(e)-2)+" re"),n.push("W"),n.push("n"),n.push(a(i.x1.x)+" "+a(i.x1.y)+" m"),n.push(a(i.x2.x)+" "+a(i.x2.y)+" l"),n.push(a(i.x4.x)+" "+a(i.x4.y)+" m"),n.push(a(i.x3.x)+" "+a(i.x3.y)+" l"),n.push("s"),n.push("Q"),t.stream=n.join("\n"),t},YesPushDown:function(e){var t=h(e),n=G.internal.calculateCross(e),i=[];return i.push("0.749023 g"),i.push("0 0 "+a(G.internal.getWidth(e))+" "+a(G.internal.getHeight(e))+" re"),i.push("f"),i.push("q"),i.push("1 1 "+a(G.internal.getWidth(e)-2)+" "+a(G.internal.getHeight(e)-2)+" re"),i.push("W"),i.push("n"),i.push(a(n.x1.x)+" "+a(n.x1.y)+" m"),i.push(a(n.x2.x)+" "+a(n.x2.y)+" l"),i.push(a(n.x4.x)+" "+a(n.x4.y)+" m"),i.push(a(n.x3.x)+" "+a(n.x3.y)+" l"),i.push("s"),i.push("Q"),t.stream=i.join("\n"),t},OffPushDown:function(e){var t=h(e),n=[];return n.push("0.749023 g"),n.push("0 0 "+a(G.internal.getWidth(e))+" "+a(G.internal.getHeight(e))+" re"),n.push("f"),t.stream=n.join("\n"),t}}},createDefaultAppearanceStream:function(e){var t=n.internal.getFont(e.fontName,e.fontStyle).id,i=n.__private__.encodeColorString(e.color);return"/"+t+" "+e.fontSize+" Tf "+i}};G.internal={Bezier_C:.551915024494,calculateCross:function(e){var t=G.internal.getWidth(e),n=G.internal.getHeight(e),i=Math.min(t,n);return{x1:{x:(t-i)/2,y:(n-i)/2+i},x2:{x:(t-i)/2+i,y:(n-i)/2},x3:{x:(t-i)/2,y:(n-i)/2},x4:{x:(t-i)/2+i,y:(n-i)/2+i}}}},G.internal.getWidth=function(e){var t=0;return"object"===r(e)&&(t=c(e.Rect[2])),t},G.internal.getHeight=function(e){var t=0;return"object"===r(e)&&(t=c(e.Rect[3])),t};var X=e.addField=function(e){if(B.call(this),!(e instanceof T))throw new Error("Invalid argument passed to jsPDF.addField.");return function(e){n.internal.acroformPlugin.printedOut&&(n.internal.acroformPlugin.printedOut=!1,n.internal.acroformPlugin.acroFormDictionaryRoot=null),n.internal.acroformPlugin.acroFormDictionaryRoot||B.call(n),n.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(e)}.call(this,e),e.page=n.internal.getCurrentPageInfo().pageNumber,this};e.addButton=function(e){if(e instanceof j==0)throw new Error("Invalid argument passed to jsPDF.addButton.");return X.call(this,e)},e.addTextField=function(e){if(e instanceof K==0)throw new Error("Invalid argument passed to jsPDF.addTextField.");return X.call(this,e)},e.addChoiceField=function(e){if(e instanceof R==0)throw new Error("Invalid argument passed to jsPDF.addChoiceField.");return X.call(this,e)},"object"==r(t)&&void 0===t.ChoiceField&&void 0===t.ListBox&&void 0===t.ComboBox&&void 0===t.EditBox&&void 0===t.Button&&void 0===t.PushButton&&void 0===t.RadioButton&&void 0===t.CheckBox&&void 0===t.TextField&&void 0===t.PasswordField?(t.ChoiceField=R,t.ListBox=P,t.ComboBox=U,t.EditBox=H,t.Button=j,t.PushButton=Q,t.RadioButton=V,t.CheckBox=z,t.TextField=K,t.PasswordField=q,t.AcroForm={Appearance:G}):console.warn("AcroForm-Classes are not populated into global-namespace, because the class-Names exist already."),e.AcroFormChoiceField=R,e.AcroFormListBox=P,e.AcroFormComboBox=U,e.AcroFormEditBox=H,e.AcroFormButton=j,e.AcroFormPushButton=Q,e.AcroFormRadioButton=V,e.AcroFormCheckBox=z,e.AcroFormTextField=K,e.AcroFormPasswordField=q,e.AcroFormAppearance=G,e.AcroForm={ChoiceField:R,ListBox:P,ComboBox:U,EditBox:H,Button:j,PushButton:Q,RadioButton:V,CheckBox:z,TextField:K,PasswordField:q,Appearance:G}})((window.tmp=pe).API,"undefined"!=typeof window&&window||"undefined"!=typeof i&&i),function(e){var t="addImage_",n={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},i=e.getImageFileTypeByImageData=function(t,i){var r,o;i=i||"UNKNOWN";var s,a,u,l="UNKNOWN";for(u in e.isArrayBufferView(t)&&(t=e.arrayBufferToBinaryString(t)),n)for(s=n[u],r=0;r<s.length;r+=1){for(a=!0,o=0;o<s[r].length;o+=1)if(void 0!==s[r][o]&&s[r][o]!==t.charCodeAt(o)){a=!1;break}if(!0===a){l=u;break}}return"UNKNOWN"===l&&"UNKNOWN"!==i&&(console.warn('FileType of Image not recognized. Processing image as "'+i+'".'),l=i),l},o=function e(t){for(var n=this.internal.newObject(),i=this.internal.write,r=this.internal.putStream,o=(0,this.internal.getFilters)();-1!==o.indexOf("FlateEncode");)o.splice(o.indexOf("FlateEncode"),1);t.n=n;var s=[];if(s.push({key:"Type",value:"/XObject"}),s.push({key:"Subtype",value:"/Image"}),s.push({key:"Width",value:t.w}),s.push({key:"Height",value:t.h}),t.cs===this.color_spaces.INDEXED?s.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(t.pal.length/3-1)+" "+("smask"in t?n+2:n+1)+" 0 R]"}):(s.push({key:"ColorSpace",value:"/"+t.cs}),t.cs===this.color_spaces.DEVICE_CMYK&&s.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),s.push({key:"BitsPerComponent",value:t.bpc}),"dp"in t&&s.push({key:"DecodeParms",value:"<<"+t.dp+">>"}),"trns"in t&&t.trns.constructor==Array){for(var a="",u=0,l=t.trns.length;u<l;u++)a+=t.trns[u]+" "+t.trns[u]+" ";s.push({key:"Mask",value:"["+a+"]"})}"smask"in t&&s.push({key:"SMask",value:n+1+" 0 R"});var c=void 0!==t.f?["/"+t.f]:void 0;if(r({data:t.data,additionalKeyValues:s,alreadyAppliedFilters:c}),i("endobj"),"smask"in t){var d="/Predictor "+t.p+" /Colors 1 /BitsPerComponent "+t.bpc+" /Columns "+t.w,h={w:t.w,h:t.h,cs:"DeviceGray",bpc:t.bpc,dp:d,data:t.smask};"f"in t&&(h.f=t.f),e.call(this,h)}t.cs===this.color_spaces.INDEXED&&(this.internal.newObject(),r({data:this.arrayBufferToBinaryString(new Uint8Array(t.pal))}),i("endobj"))},s=function(){var e=this.internal.collections[t+"images"];for(var n in e)o.call(this,e[n])},a=function(){var e,n=this.internal.collections[t+"images"],i=this.internal.write;for(var r in n)i("/I"+(e=n[r]).i,e.n,"0","R")},u=function(t){return"function"==typeof e["process"+t.toUpperCase()]},l=function(e){return"object"===r(e)&&1===e.nodeType},c=function(t,n){if("IMG"===t.nodeName&&t.hasAttribute("src")){var i=""+t.getAttribute("src");if(0===i.indexOf("data:image/"))return unescape(i);var r=e.loadFile(i);if(void 0!==r)return btoa(r)}if("CANVAS"===t.nodeName){var o=t;return t.toDataURL("image/jpeg",1)}(o=document.createElement("canvas")).width=t.clientWidth||t.width,o.height=t.clientHeight||t.height;var s=o.getContext("2d");if(!s)throw"addImage requires canvas to be supported by browser.";return s.drawImage(t,0,0,o.width,o.height),o.toDataURL("png"==(""+n).toLowerCase()?"image/png":"image/jpeg")},d=function(e,t){var n;if(t)for(var i in t)if(e===t[i].alias){n=t[i];break}return n};e.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"},e.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"},e.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},e.sHashCode=function(e){var t,n=0;if(0===(e=e||"").length)return n;for(t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return n},e.isString=function(e){return"string"==typeof e},e.validateStringAsBase64=function(e){(e=e||"").toString().trim();var t=!0;return 0===e.length&&(t=!1),e.length%4!=0&&(t=!1),!1===/^[A-Za-z0-9+\/]+$/.test(e.substr(0,e.length-2))&&(t=!1),!1===/^[A-Za-z0-9\/][A-Za-z0-9+\/]|[A-Za-z0-9+\/]=|==$/.test(e.substr(-2))&&(t=!1),t},e.extractInfoFromBase64DataURI=function(e){return/^data:([\w]+?\/([\w]+?));\S*;*base64,(.+)$/g.exec(e)},e.extractImageFromDataUrl=function(e){var t=(e=e||"").split("base64,"),n=null;if(2===t.length){var i=/^data:(\w*\/\w*);*(charset=[\w=-]*)*;*$/.exec(t[0]);Array.isArray(i)&&(n={mimeType:i[1],charset:i[2],data:t[1]})}return n},e.supportsArrayBuffer=function(){return"undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array},e.isArrayBuffer=function(e){return!!this.supportsArrayBuffer()&&e instanceof ArrayBuffer},e.isArrayBufferView=function(e){return!!this.supportsArrayBuffer()&&"undefined"!=typeof Uint32Array&&(e instanceof Int8Array||e instanceof Uint8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)},e.binaryStringToUint8Array=function(e){for(var t=e.length,n=new Uint8Array(t),i=0;i<t;i++)n[i]=e.charCodeAt(i);return n},e.arrayBufferToBinaryString=function(e){if("function"==typeof atob)return atob(this.arrayBufferToBase64(e))},e.arrayBufferToBase64=function(e){for(var t,n="",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=new Uint8Array(e),o=r.byteLength,s=o%3,a=o-s,u=0;u<a;u+=3)n+=i[(16515072&(t=r[u]<<16|r[u+1]<<8|r[u+2]))>>18]+i[(258048&t)>>12]+i[(4032&t)>>6]+i[63&t];return 1==s?n+=i[(252&(t=r[a]))>>2]+i[(3&t)<<4]+"==":2==s&&(n+=i[(64512&(t=r[a]<<8|r[a+1]))>>10]+i[(1008&t)>>4]+i[(15&t)<<2]+"="),n},e.createImageInfo=function(e,t,n,i,r,o,s,a,u,l,c,d,h){var f={alias:a,w:t,h:n,cs:i,bpc:r,i:s,data:e};return o&&(f.f=o),u&&(f.dp=u),l&&(f.trns=l),c&&(f.pal=c),d&&(f.smask=d),h&&(f.p=h),f},e.addImage=function(n,i,o,h,f,p,g,A,m){var v="";if("string"!=typeof i){var _=p;p=f,f=h,h=o,o=i,i=_}if("object"===r(n)&&!l(n)&&"imageData"in n){var y=n;n=y.imageData,i=y.format||i||"UNKNOWN",o=y.x||o||0,h=y.y||h||0,f=y.w||f,p=y.h||p,g=y.alias||g,A=y.compression||A,m=y.rotation||y.angle||m}var b=this.internal.getFilters();if(void 0===A&&-1!==b.indexOf("FlateEncode")&&(A="SLOW"),"string"==typeof n&&(n=unescape(n)),isNaN(o)||isNaN(h))throw console.error("jsPDF.addImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addImage");var w,C,S,N,L,E,x,O=function(){var e=this.internal.collections[t+"images"];return e||(this.internal.collections[t+"images"]=e={},this.internal.events.subscribe("putResources",s),this.internal.events.subscribe("putXobjectDict",a)),e}.call(this);if(!((w=d(n,O))||(l(n)&&(n=c(n,i)),(null==(x=g)||0===x.length)&&(g="string"==typeof(E=n)?e.sHashCode(E):e.isArrayBufferView(E)?e.sHashCode(e.arrayBufferToBinaryString(E)):null),w=d(g,O)))){if(this.isString(n)&&(""!==(v=this.convertStringToImageData(n))||void 0!==(v=e.loadFile(n)))&&(n=v),i=this.getImageFileTypeByImageData(n,i),!u(i))throw new Error("addImage does not support files of type '"+i+"', please ensure that a plugin for '"+i+"' support is added.");if(this.supportsArrayBuffer()&&(n instanceof Uint8Array||(C=n,n=this.binaryStringToUint8Array(n))),!(w=this["process"+i.toUpperCase()](n,(L=0,(N=O)&&(L=Object.keys?Object.keys(N).length:function(e){var t=0;for(var n in e)e.hasOwnProperty(n)&&t++;return t}(N)),L),g,((S=A)&&"string"==typeof S&&(S=S.toUpperCase()),S in e.image_compression?S:e.image_compression.NONE),C)))throw new Error("An unknown error occurred whilst processing the image")}return function(e,t,n,i,r,o,s,a){var u=function(e,t,n){return e||t||(t=e=-96),e<0&&(e=-1*n.w*72/e/this.internal.scaleFactor),t<0&&(t=-1*n.h*72/t/this.internal.scaleFactor),0===e&&(e=t*n.w/n.h),0===t&&(t=e*n.h/n.w),[e,t]}.call(this,n,i,r),l=this.internal.getCoordinateString,c=this.internal.getVerticalCoordinateString;if(n=u[0],i=u[1],s[o]=r,a){a*=Math.PI/180;var d=Math.cos(a),h=Math.sin(a),f=function(e){return e.toFixed(4)},p=[f(d),f(h),f(-1*h),f(d),0,0,"cm"]}this.internal.write("q"),a?(this.internal.write([1,"0","0",1,l(e),c(t+i),"cm"].join(" ")),this.internal.write(p.join(" ")),this.internal.write([l(n),"0","0",l(i),"0","0","cm"].join(" "))):this.internal.write([l(n),"0","0",l(i),l(e),c(t+i),"cm"].join(" ")),this.internal.write("/I"+r.i+" Do"),this.internal.write("Q")}.call(this,o,h,f,p,w,w.i,O,m),this},e.convertStringToImageData=function(t){var n,i="";if(this.isString(t)){var r;n=null!==(r=this.extractImageFromDataUrl(t))?r.data:t;try{i=atob(n)}catch(t){throw e.validateStringAsBase64(n)?new Error("atob-Error in jsPDF.convertStringToImageData "+t.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertStringToImageData ")}}return i};var h=function(e,t){return e.subarray(t,t+5)};e.processJPEG=function(e,t,n,r,o,s){var a,u=this.decode.DCT_DECODE;if(!this.isString(e)&&!this.isArrayBuffer(e)&&!this.isArrayBufferView(e))return null;if(this.isString(e)&&(a=function(e){var t;if("JPEG"!==i(e))throw new Error("getJpegSize requires a binary string jpeg file");for(var n=256*e.charCodeAt(4)+e.charCodeAt(5),r=4,o=e.length;r<o;){if(r+=n,255!==e.charCodeAt(r))throw new Error("getJpegSize could not find the size of the image");if(192===e.charCodeAt(r+1)||193===e.charCodeAt(r+1)||194===e.charCodeAt(r+1)||195===e.charCodeAt(r+1)||196===e.charCodeAt(r+1)||197===e.charCodeAt(r+1)||198===e.charCodeAt(r+1)||199===e.charCodeAt(r+1))return t=256*e.charCodeAt(r+5)+e.charCodeAt(r+6),[256*e.charCodeAt(r+7)+e.charCodeAt(r+8),t,e.charCodeAt(r+9)];r+=2,n=256*e.charCodeAt(r)+e.charCodeAt(r+1)}}(e)),this.isArrayBuffer(e)&&(e=new Uint8Array(e)),this.isArrayBufferView(e)&&(a=function(e){if(65496!=(e[0]<<8|e[1]))throw new Error("Supplied data is not a JPEG");for(var t,n=e.length,i=(e[4]<<8)+e[5],r=4;r<n;){if(i=((t=h(e,r+=i))[2]<<8)+t[3],(192===t[1]||194===t[1])&&255===t[0]&&7<i)return{width:((t=h(e,r+5))[2]<<8)+t[3],height:(t[0]<<8)+t[1],numcomponents:t[4]};r+=2}throw new Error("getJpegSizeFromBytes could not find the size of the image")}(e),e=o||this.arrayBufferToBinaryString(e)),void 0===s)switch(a.numcomponents){case 1:s=this.color_spaces.DEVICE_GRAY;break;case 4:s=this.color_spaces.DEVICE_CMYK;break;default:case 3:s=this.color_spaces.DEVICE_RGB}return this.createImageInfo(e,a.width,a.height,s,8,u,t,n)},e.processJPG=function(){return this.processJPEG.apply(this,arguments)},e.getImageProperties=function(t){var n,i,r="";if(l(t)&&(t=c(t)),this.isString(t)&&(""!==(r=this.convertStringToImageData(t))||void 0!==(r=e.loadFile(t)))&&(t=r),i=this.getImageFileTypeByImageData(t),!u(i))throw new Error("addImage does not support files of type '"+i+"', please ensure that a plugin for '"+i+"' support is added.");if(this.supportsArrayBuffer()&&(t instanceof Uint8Array||(t=this.binaryStringToUint8Array(t))),!(n=this["process"+i.toUpperCase()](t)))throw new Error("An unknown error occurred whilst processing the image");return{fileType:i,width:n.w,height:n.h,colorSpace:n.cs,compressionMode:n.f,bitsPerComponent:n.bpc}}}(pe.API),s=pe.API,pe.API.events.push(["addPage",function(e){this.internal.getPageInfo(e.pageNumber).pageContext.annotations=[]}]),s.events.push(["putPage",function(e){for(var t=this.internal.getPageInfoByObjId(e.objId),n=e.pageContext.annotations,i=function(e){if(void 0!==e&&""!=e)return!0},r=!1,o=0;o<n.length&&!r;o++)switch((u=n[o]).type){case"link":if(i(u.options.url)||i(u.options.pageNumber)){r=!0;break}case"reference":case"text":case"freetext":r=!0}if(0!=r){this.internal.write("/Annots ["),this.internal.pageSize.height;var s=this.internal.getCoordinateString,a=this.internal.getVerticalCoordinateString;for(o=0;o<n.length;o++){var u;switch((u=n[o]).type){case"reference":this.internal.write(" "+u.object.objId+" 0 R ");break;case"text":var l=this.internal.newAdditionalObject(),c=this.internal.newAdditionalObject(),d=u.title||"Note";A="<</Type /Annot /Subtype /Text "+(f="/Rect ["+s(u.bounds.x)+" "+a(u.bounds.y+u.bounds.h)+" "+s(u.bounds.x+u.bounds.w)+" "+a(u.bounds.y)+"] ")+"/Contents ("+u.contents+")",A+=" /Popup "+c.objId+" 0 R",A+=" /P "+t.objId+" 0 R",A+=" /T ("+d+") >>",l.content=A;var h=l.objId+" 0 R";A="<</Type /Annot /Subtype /Popup "+(f="/Rect ["+s(u.bounds.x+30)+" "+a(u.bounds.y+u.bounds.h)+" "+s(u.bounds.x+u.bounds.w+30)+" "+a(u.bounds.y)+"] ")+" /Parent "+h,u.open&&(A+=" /Open true"),A+=" >>",c.content=A,this.internal.write(l.objId,"0 R",c.objId,"0 R");break;case"freetext":var f="/Rect ["+s(u.bounds.x)+" "+a(u.bounds.y)+" "+s(u.bounds.x+u.bounds.w)+" "+a(u.bounds.y+u.bounds.h)+"] ",p=u.color||"#000000";A="<</Type /Annot /Subtype /FreeText "+f+"/Contents ("+u.contents+")",A+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+p+")",A+=" /Border [0 0 0]",A+=" >>",this.internal.write(A);break;case"link":if(u.options.name){var g=this.annotations._nameMap[u.options.name];u.options.pageNumber=g.page,u.options.top=g.y}else u.options.top||(u.options.top=0);f="/Rect ["+s(u.x)+" "+a(u.y)+" "+s(u.x+u.w)+" "+a(u.y+u.h)+"] ";var A="";if(u.options.url)A="<</Type /Annot /Subtype /Link "+f+"/Border [0 0 0] /A <</S /URI /URI ("+u.options.url+") >>";else if(u.options.pageNumber)switch(A="<</Type /Annot /Subtype /Link "+f+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(u.options.pageNumber).objId+" 0 R",u.options.magFactor=u.options.magFactor||"XYZ",u.options.magFactor){case"Fit":A+=" /Fit]";break;case"FitH":A+=" /FitH "+u.options.top+"]";break;case"FitV":u.options.left=u.options.left||0,A+=" /FitV "+u.options.left+"]";break;case"XYZ":default:var m=a(u.options.top);u.options.left=u.options.left||0,void 0===u.options.zoom&&(u.options.zoom=0),A+=" /XYZ "+u.options.left+" "+m+" "+u.options.zoom+"]"}""!=A&&(A+=" >>",this.internal.write(A))}}this.internal.write("]")}}]),s.createAnnotation=function(e){var t=this.internal.getCurrentPageInfo();switch(e.type){case"link":this.link(e.bounds.x,e.bounds.y,e.bounds.w,e.bounds.h,e);break;case"text":case"freetext":t.pageContext.annotations.push(e)}},s.link=function(e,t,n,i,r){this.internal.getCurrentPageInfo().pageContext.annotations.push({x:e,y:t,w:n,h:i,options:r,type:"link"})},s.textWithLink=function(e,t,n,i){var r=this.getTextWidth(e),o=this.internal.getLineHeight()/this.internal.scaleFactor;return this.text(e,t,n),n+=.2*o,this.link(t,n-o,r,o,i),r},s.getTextWidth=function(e){var t=this.internal.getFontSize();return this.getStringUnitWidth(e)*t/this.internal.scaleFactor},function(e){var t={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},n={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},i={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},r=[1570,1571,1573,1575];e.__arabicParser__={};var o=e.__arabicParser__.isInArabicSubstitutionA=function(e){return void 0!==t[e.charCodeAt(0)]},s=e.__arabicParser__.isArabicLetter=function(e){return"string"==typeof e&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(e)},a=e.__arabicParser__.isArabicEndLetter=function(e){return s(e)&&o(e)&&t[e.charCodeAt(0)].length<=2},u=e.__arabicParser__.isArabicAlfLetter=function(e){return s(e)&&0<=r.indexOf(e.charCodeAt(0))},l=(e.__arabicParser__.arabicLetterHasIsolatedForm=function(e){return s(e)&&o(e)&&1<=t[e.charCodeAt(0)].length},e.__arabicParser__.arabicLetterHasFinalForm=function(e){return s(e)&&o(e)&&2<=t[e.charCodeAt(0)].length}),c=(e.__arabicParser__.arabicLetterHasInitialForm=function(e){return s(e)&&o(e)&&3<=t[e.charCodeAt(0)].length},e.__arabicParser__.arabicLetterHasMedialForm=function(e){return s(e)&&o(e)&&4==t[e.charCodeAt(0)].length}),d=e.__arabicParser__.resolveLigatures=function(e){var t=0,i=n,r=0,o="",s=0;for(t=0;t<e.length;t+=1)void 0!==i[e.charCodeAt(t)]?(s++,"number"==typeof(i=i[e.charCodeAt(t)])&&(r=-1!==(r=h(e.charAt(t),e.charAt(t-s),e.charAt(t+1)))?r:0,o+=String.fromCharCode(i),i=n,s=0),t===e.length-1&&(i=n,o+=e.charAt(t-(s-1)),t-=s-1,s=0)):(i=n,o+=e.charAt(t-s),t-=s,s=0);return o},h=(e.__arabicParser__.isArabicDiacritic=function(e){return void 0!==e&&void 0!==i[e.charCodeAt(0)]},e.__arabicParser__.getCorrectForm=function(e,t,n){return s(e)?!1===o(e)?-1:!l(e)||!s(t)&&!s(n)||!s(n)&&a(t)||a(e)&&!s(t)||a(e)&&u(t)||a(e)&&a(t)?0:c(e)&&s(t)&&!a(t)&&s(n)&&l(n)?3:a(e)||!s(n)?1:2:-1}),f=e.__arabicParser__.processArabic=e.processArabic=function(e){var n=0,i=0,r=0,o="",a="",u="",l=(e=e||"").split("\\s+"),c=[];for(n=0;n<l.length;n+=1){for(c.push(""),i=0;i<l[n].length;i+=1)o=l[n][i],a=l[n][i-1],u=l[n][i+1],s(o)?(r=h(o,a,u),c[n]+=-1!==r?String.fromCharCode(t[o.charCodeAt(0)][r]):o):c[n]+=o;c[n]=d(c[n])}return c.join(" ")};e.events.push(["preProcessText",function(e){var t=e.text,n=(e.x,e.y,e.options||{}),i=(e.mutex,n.lang,[]);if("[object Array]"===Object.prototype.toString.call(t)){var r=0;for(i=[],r=0;r<t.length;r+=1)"[object Array]"===Object.prototype.toString.call(t[r])?i.push([f(t[r][0]),t[r][1],t[r][2]]):i.push([f(t[r])]);e.text=i}else e.text=f(t)}])}(pe.API),pe.API.autoPrint=function(e){var t;switch((e=e||{}).variant=e.variant||"non-conform",e.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",(function(){t=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){this.internal.out("/OpenAction "+t+" 0 R")}))}return this},a=pe.API,(u=function(){var e=void 0;Object.defineProperty(this,"pdf",{get:function(){return e},set:function(t){e=t}});var t=150;Object.defineProperty(this,"width",{get:function(){return t},set:function(e){t=isNaN(e)||!1===Number.isInteger(e)||e<0?150:e,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=t+1)}});var n=300;Object.defineProperty(this,"height",{get:function(){return n},set:function(e){n=isNaN(e)||!1===Number.isInteger(e)||e<0?300:e,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=n+1)}});var i=[];Object.defineProperty(this,"childNodes",{get:function(){return i},set:function(e){i=e}});var r={};Object.defineProperty(this,"style",{get:function(){return r},set:function(e){r=e}}),Object.defineProperty(this,"parentNode",{get:function(){return!1}})}).prototype.getContext=function(e,t){var n;if("2d"!==(e=e||"2d"))return null;for(n in t)this.pdf.context2d.hasOwnProperty(n)&&(this.pdf.context2d[n]=t[n]);return(this.pdf.context2d._canvas=this).pdf.context2d},u.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},a.events.push(["initialized",function(){this.canvas=new u,this.canvas.pdf=this}]),l=pe.API,d={x:void 0,y:void 0,w:void 0,h:void 0,ln:void 0},h=1,f=function(e,t,n,i,r){d={x:e,y:t,w:n,h:i,ln:r}},p=function(){return d},g={left:0,top:0,bottom:0},l.setHeaderFunction=function(e){c=e},l.getTextDimensions=function(e,t){var n=this.table_font_size||this.internal.getFontSize(),i=(this.internal.getFont().fontStyle,(t=t||{}).scaleFactor||this.internal.scaleFactor),r=0,o=0,s=0;if("string"==typeof e)0!=(r=this.getStringUnitWidth(e)*n)&&(o=1);else{if("[object Array]"!==Object.prototype.toString.call(e))throw new Error("getTextDimensions expects text-parameter to be of type String or an Array of Strings.");for(var a=0;a<e.length;a++)r<(s=this.getStringUnitWidth(e[a])*n)&&(r=s);0!==r&&(o=e.length)}return{w:r/=i,h:Math.max((o*n*this.getLineHeightFactor()-n*(this.getLineHeightFactor()-1))/i,0)}},l.cellAddPage=function(){var e=this.margins||g;this.addPage(),f(e.left,e.top,void 0,void 0),h+=1},l.cellInitialize=function(){d={x:void 0,y:void 0,w:void 0,h:void 0,ln:void 0},h=1},l.cell=function(e,t,n,i,r,o,s){var a=p(),u=!1;if(void 0!==a.ln)if(a.ln===o)e=a.x+a.w,t=a.y;else{var l=this.margins||g;a.y+a.h+i+13>=this.internal.pageSize.getHeight()-l.bottom&&(this.cellAddPage(),u=!0,this.printHeaders&&this.tableHeaderRow&&this.printHeaderRow(o,!0)),t=p().y+p().h,u&&(t=23)}if(void 0!==r[0])if(this.printingHeaderRow?this.rect(e,t,n,i,"FD"):this.rect(e,t,n,i),"right"===s){r instanceof Array||(r=[r]);for(var c=0;c<r.length;c++){var d=r[c],h=this.getStringUnitWidth(d)*this.internal.getFontSize()/this.internal.scaleFactor;this.text(d,e+n-h-3,t+this.internal.getLineHeight()*(c+1))}}else this.text(r,e+3,t+this.internal.getLineHeight());return f(e,t,n,i,o),this},l.arrayMax=function(e,t){var n,i,r,o=e[0];for(n=0,i=e.length;n<i;n+=1)r=e[n],t?-1===t(o,r)&&(o=r):o<r&&(o=r);return o},l.table=function(e,t,n,i,r){if(!n)throw"No data for PDF table";var o,s,a,u,c,f,p,A,m,v,_=[],y=[],b={},w={},C=[],S=[],N=!1,L=!0,E=12,x=g;if(x.width=this.internal.pageSize.getWidth(),r&&(!0===r.autoSize&&(N=!0),!1===r.printHeaders&&(L=!1),r.fontSize&&(E=r.fontSize),r.css&&void 0!==r.css["font-size"]&&(E=16*r.css["font-size"]),r.margins&&(x=r.margins)),this.lnMod=0,d={x:void 0,y:void 0,w:void 0,h:void 0,ln:void 0},h=1,this.printHeaders=L,this.margins=x,this.setFontSize(E),this.table_font_size=E,null==i)_=Object.keys(n[0]);else if(i[0]&&"string"!=typeof i[0])for(s=0,a=i.length;s<a;s+=1)o=i[s],_.push(o.name),y.push(o.prompt),w[o.name]=o.width*(19.049976/25.4);else _=i;if(N)for(v=function(e){return e[o]},s=0,a=_.length;s<a;s+=1){for(b[o=_[s]]=n.map(v),C.push(this.getTextDimensions(y[s]||o,{scaleFactor:1}).w),p=0,u=(f=b[o]).length;p<u;p+=1)c=f[p],C.push(this.getTextDimensions(c,{scaleFactor:1}).w);w[o]=l.arrayMax(C),C=[]}if(L){var O=this.calculateLineHeight(_,w,y.length?y:_);for(s=0,a=_.length;s<a;s+=1)o=_[s],S.push([e,t,w[o],O,String(y.length?y[s]:o)]);this.setTableHeaderRow(S),this.printHeaderRow(1,!1)}for(s=0,a=n.length;s<a;s+=1)for(A=n[s],O=this.calculateLineHeight(_,w,A),p=0,m=_.length;p<m;p+=1)o=_[p],this.cell(e,t,w[o],O,A[o],s+2,o.align);return this.lastCellPos=d,this.table_x=e,this.table_y=t,this},l.calculateLineHeight=function(e,t,n){for(var i,r=0,o=0;o<e.length;o++){n[i=e[o]]=this.splitTextToSize(String(n[i]),t[i]-3);var s=this.internal.getLineHeight()*n[i].length+3;r<s&&(r=s)}return r},l.setTableHeaderRow=function(e){this.tableHeaderRow=e},l.printHeaderRow=function(e,t){if(!this.tableHeaderRow)throw"Property tableHeaderRow does not exist.";var n,i,r,o;if(this.printingHeaderRow=!0,void 0!==c){var s=c(this,h);f(s[0],s[1],s[2],s[3],-1)}this.setFontStyle("bold");var a=[];for(r=0,o=this.tableHeaderRow.length;r<o;r+=1)this.setFillColor(200,200,200),n=this.tableHeaderRow[r],t&&(this.margins.top=13,n[1]=this.margins&&this.margins.top||0,a.push(n)),i=[].concat(n),this.cell.apply(this,i.concat(e));0<a.length&&this.setTableHeaderRow(a),this.setFontStyle("normal"),this.printingHeaderRow=!1},function(e,t){var n,i,o,s,a,u=function(e){return e=e||{},this.isStrokeTransparent=e.isStrokeTransparent||!1,this.strokeOpacity=e.strokeOpacity||1,this.strokeStyle=e.strokeStyle||"#000000",this.fillStyle=e.fillStyle||"#000000",this.isFillTransparent=e.isFillTransparent||!1,this.fillOpacity=e.fillOpacity||1,this.font=e.font||"10px sans-serif",this.textBaseline=e.textBaseline||"alphabetic",this.textAlign=e.textAlign||"left",this.lineWidth=e.lineWidth||1,this.lineJoin=e.lineJoin||"miter",this.lineCap=e.lineCap||"butt",this.path=e.path||[],this.transform=void 0!==e.transform?e.transform.clone():new F,this.globalCompositeOperation=e.globalCompositeOperation||"normal",this.globalAlpha=e.globalAlpha||1,this.clip_path=e.clip_path||[],this.currentPoint=e.currentPoint||new I,this.miterLimit=e.miterLimit||10,this.lastPoint=e.lastPoint||new I,this.ignoreClearRect="boolean"!=typeof e.ignoreClearRect||e.ignoreClearRect,this};e.events.push(["initialized",function(){this.context2d=new l(this),n=this.internal.f2,this.internal.f3,i=this.internal.getCoordinateString,o=this.internal.getVerticalCoordinateString,s=this.internal.getHorizontalCoordinate,a=this.internal.getVerticalCoordinate}]);var l=function(e){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}}),Object.defineProperty(this,"pdf",{get:function(){return e}});var t=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return t},set:function(e){t=Boolean(e)}});var n=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return n},set:function(e){n=Boolean(e)}});var i=0;Object.defineProperty(this,"posX",{get:function(){return i},set:function(e){isNaN(e)||(i=e)}});var r=0;Object.defineProperty(this,"posY",{get:function(){return r},set:function(e){isNaN(e)||(r=e)}});var o=!1;Object.defineProperty(this,"autoPaging",{get:function(){return o},set:function(e){o=Boolean(e)}});var s=0;Object.defineProperty(this,"lastBreak",{get:function(){return s},set:function(e){s=e}});var a=[];Object.defineProperty(this,"pageBreaks",{get:function(){return a},set:function(e){a=e}});var l=new u;Object.defineProperty(this,"ctx",{get:function(){return l},set:function(e){e instanceof u&&(l=e)}}),Object.defineProperty(this,"path",{get:function(){return l.path},set:function(e){l.path=e}});var d=[];Object.defineProperty(this,"ctxStack",{get:function(){return d},set:function(e){d=e}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(e){var t;t=c(e),this.ctx.fillStyle=t.style,this.ctx.isFillTransparent=0===t.a,this.ctx.fillOpacity=t.a,this.pdf.setFillColor(t.r,t.g,t.b,{a:t.a}),this.pdf.setTextColor(t.r,t.g,t.b,{a:t.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(e){var t=c(e);this.ctx.strokeStyle=t.style,this.ctx.isStrokeTransparent=0===t.a,this.ctx.strokeOpacity=t.a,0===t.a?this.pdf.setDrawColor(255,255,255):(t.a,this.pdf.setDrawColor(t.r,t.g,t.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(e){-1!==["butt","round","square"].indexOf(e)&&(this.ctx.lineCap=e,this.pdf.setLineCap(e))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(e){isNaN(e)||(this.ctx.lineWidth=e,this.pdf.setLineWidth(e))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(e){-1!==["bevel","round","miter"].indexOf(e)&&(this.ctx.lineJoin=e,this.pdf.setLineJoin(e))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(e){isNaN(e)||(this.ctx.miterLimit=e,this.pdf.setMiterLimit(e))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(e){this.ctx.textBaseline=e}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(e){-1!==["right","end","center","left","start"].indexOf(e)&&(this.ctx.textAlign=e)}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(e){var t;if(this.ctx.font=e,null!==(t=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(e))){var n=t[1],i=(t[2],t[3]),r=t[4],o=t[5],s=t[6];r="px"===o?Math.floor(parseFloat(r)):"em"===o?Math.floor(parseFloat(r)*this.pdf.getFontSize()):Math.floor(parseFloat(r)),this.pdf.setFontSize(r);var a="";("bold"===i||700<=parseInt(i,10)||"bold"===n)&&(a="bold"),"italic"===n&&(a+="italic"),0===a.length&&(a="normal");for(var u="",l=s.toLowerCase().replace(/"|'/g,"").split(/\s*,\s*/),c={arial:"Helvetica",verdana:"Helvetica",helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",courier:"Courier",times:"Times",cursive:"Times",fantasy:"Times",serif:"Times"},d=0;d<l.length;d++){if(void 0!==this.pdf.internal.getFont(l[d],a,{noFallback:!0,disableWarning:!0})){u=l[d];break}if("bolditalic"===a&&void 0!==this.pdf.internal.getFont(l[d],"bold",{noFallback:!0,disableWarning:!0}))u=l[d],a="bold";else if(void 0!==this.pdf.internal.getFont(l[d],"normal",{noFallback:!0,disableWarning:!0})){u=l[d],a="normal";break}}if(""===u)for(d=0;d<l.length;d++)if(c[l[d]]){u=c[l[d]];break}u=""===u?"Times":u,this.pdf.setFont(u,a)}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(e){this.ctx.globalCompositeOperation=e}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(e){this.ctx.globalAlpha=e}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(e){this.ctx.ignoreClearRect=Boolean(e)}})};l.prototype.fill=function(){A.call(this,"fill",!1)},l.prototype.stroke=function(){A.call(this,"stroke",!1)},l.prototype.beginPath=function(){this.path=[{type:"begin"}]},l.prototype.moveTo=function(e,t){if(isNaN(e)||isNaN(t))throw console.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var n=this.ctx.transform.applyToPoint(new I(e,t));this.path.push({type:"mt",x:n.x,y:n.y}),this.ctx.lastPoint=new I(e,t)},l.prototype.closePath=function(){var e=new I(0,0),t=0;for(t=this.path.length-1;-1!==t;t--)if("begin"===this.path[t].type&&"object"===r(this.path[t+1])&&"number"==typeof this.path[t+1].x){e=new I(this.path[t+1].x,this.path[t+1].y),this.path.push({type:"lt",x:e.x,y:e.y});break}"object"===r(this.path[t+2])&&"number"==typeof this.path[t+2].x&&this.path.push(JSON.parse(JSON.stringify(this.path[t+2]))),this.path.push({type:"close"}),this.ctx.lastPoint=new I(e.x,e.y)},l.prototype.lineTo=function(e,t){if(isNaN(e)||isNaN(t))throw console.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var n=this.ctx.transform.applyToPoint(new I(e,t));this.path.push({type:"lt",x:n.x,y:n.y}),this.ctx.lastPoint=new I(n.x,n.y)},l.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),A.call(this,null,!0)},l.prototype.quadraticCurveTo=function(e,t,n,i){if(isNaN(n)||isNaN(i)||isNaN(e)||isNaN(t))throw console.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var r=this.ctx.transform.applyToPoint(new I(n,i)),o=this.ctx.transform.applyToPoint(new I(e,t));this.path.push({type:"qct",x1:o.x,y1:o.y,x:r.x,y:r.y}),this.ctx.lastPoint=new I(r.x,r.y)},l.prototype.bezierCurveTo=function(e,t,n,i,r,o){if(isNaN(r)||isNaN(o)||isNaN(e)||isNaN(t)||isNaN(n)||isNaN(i))throw console.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var s=this.ctx.transform.applyToPoint(new I(r,o)),a=this.ctx.transform.applyToPoint(new I(e,t)),u=this.ctx.transform.applyToPoint(new I(n,i));this.path.push({type:"bct",x1:a.x,y1:a.y,x2:u.x,y2:u.y,x:s.x,y:s.y}),this.ctx.lastPoint=new I(s.x,s.y)},l.prototype.arc=function(e,t,n,i,r,o){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(i)||isNaN(r))throw console.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(o=Boolean(o),!this.ctx.transform.isIdentity){var s=this.ctx.transform.applyToPoint(new I(e,t));e=s.x,t=s.y;var a=this.ctx.transform.applyToPoint(new I(0,n)),u=this.ctx.transform.applyToPoint(new I(0,0));n=Math.sqrt(Math.pow(a.x-u.x,2)+Math.pow(a.y-u.y,2))}Math.abs(r-i)>=2*Math.PI&&(i=0,r=2*Math.PI),this.path.push({type:"arc",x:e,y:t,radius:n,startAngle:i,endAngle:r,counterclockwise:o})},l.prototype.arcTo=function(e,t,n,i,r){throw new Error("arcTo not implemented.")},l.prototype.rect=function(e,t,n,i){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(i))throw console.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(e,t),this.lineTo(e+n,t),this.lineTo(e+n,t+i),this.lineTo(e,t+i),this.lineTo(e,t),this.lineTo(e+n,t),this.lineTo(e,t)},l.prototype.fillRect=function(e,t,n,i){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(i))throw console.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!d.call(this)){var r={};"butt"!==this.lineCap&&(r.lineCap=this.lineCap,this.lineCap="butt"),"miter"!==this.lineJoin&&(r.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(e,t,n,i),this.fill(),r.hasOwnProperty("lineCap")&&(this.lineCap=r.lineCap),r.hasOwnProperty("lineJoin")&&(this.lineJoin=r.lineJoin)}},l.prototype.strokeRect=function(e,t,n,i){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(i))throw console.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");h.call(this)||(this.beginPath(),this.rect(e,t,n,i),this.stroke())},l.prototype.clearRect=function(e,t,n,i){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(i))throw console.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(e,t,n,i))},l.prototype.save=function(e){e="boolean"!=typeof e||e;for(var t=this.pdf.internal.getCurrentPageInfo().pageNumber,n=0;n<this.pdf.internal.getNumberOfPages();n++)this.pdf.setPage(n+1),this.pdf.internal.out("q");if(this.pdf.setPage(t),e){this.ctx.fontSize=this.pdf.internal.getFontSize();var i=new u(this.ctx);this.ctxStack.push(this.ctx),this.ctx=i}},l.prototype.restore=function(e){e="boolean"!=typeof e||e;for(var t=this.pdf.internal.getCurrentPageInfo().pageNumber,n=0;n<this.pdf.internal.getNumberOfPages();n++)this.pdf.setPage(n+1),this.pdf.internal.out("Q");this.pdf.setPage(t),e&&0!==this.ctxStack.length&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin)},l.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var c=function(e){var t,n,i,r;if(!0===e.isCanvasGradient&&(e=e.getColor()),!e)return{r:0,g:0,b:0,a:0,style:e};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(e))r=i=n=t=0;else{var o=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(e);if(null!==o)t=parseInt(o[1]),n=parseInt(o[2]),i=parseInt(o[3]),r=1;else if(null!==(o=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d\.]+)\s*\)/.exec(e)))t=parseInt(o[1]),n=parseInt(o[2]),i=parseInt(o[3]),r=parseFloat(o[4]);else{if(r=1,"string"==typeof e&&"#"!==e.charAt(0)){var s=new RGBColor(e);e=s.ok?s.toHex():"#000000"}4===e.length?(t=e.substring(1,2),t+=t,n=e.substring(2,3),n+=n,i=e.substring(3,4),i+=i):(t=e.substring(1,3),n=e.substring(3,5),i=e.substring(5,7)),t=parseInt(t,16),n=parseInt(n,16),i=parseInt(i,16)}}return{r:t,g:n,b:i,a:r,style:e}},d=function(){return this.ctx.isFillTransparent||0==this.globalAlpha},h=function(){return Boolean(this.ctx.isStrokeTransparent||0==this.globalAlpha)};l.prototype.fillText=function(e,t,n,i){if(isNaN(t)||isNaN(n)||"string"!=typeof e)throw console.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(i=isNaN(i)?void 0:i,!d.call(this)){n=v.call(this,n);var r=O(this.ctx.transform.rotation),o=this.ctx.transform.scaleX;C.call(this,{text:e,x:t,y:n,scale:o,angle:r,align:this.textAlign,maxWidth:i})}},l.prototype.strokeText=function(e,t,n,i){if(isNaN(t)||isNaN(n)||"string"!=typeof e)throw console.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!h.call(this)){i=isNaN(i)?void 0:i,n=v.call(this,n);var r=O(this.ctx.transform.rotation),o=this.ctx.transform.scaleX;C.call(this,{text:e,x:t,y:n,scale:o,renderingMode:"stroke",angle:r,align:this.textAlign,maxWidth:i})}},l.prototype.measureText=function(e){if("string"!=typeof e)throw console.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var t=this.pdf,n=this.pdf.internal.scaleFactor,i=t.internal.getFontSize(),r=t.getStringUnitWidth(e)*i/t.internal.scaleFactor;return new function(e){var t=(e=e||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return t}}),this}({width:r*=Math.round(96*n/72*1e4)/1e4})},l.prototype.scale=function(e,t){if(isNaN(e)||isNaN(t))throw console.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var n=new F(e,0,0,t,0,0);this.ctx.transform=this.ctx.transform.multiply(n)},l.prototype.rotate=function(e){if(isNaN(e))throw console.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var t=new F(Math.cos(e),Math.sin(e),-Math.sin(e),Math.cos(e),0,0);this.ctx.transform=this.ctx.transform.multiply(t)},l.prototype.translate=function(e,t){if(isNaN(e)||isNaN(t))throw console.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var n=new F(1,0,0,1,e,t);this.ctx.transform=this.ctx.transform.multiply(n)},l.prototype.transform=function(e,t,n,i,r,o){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(i)||isNaN(r)||isNaN(o))throw console.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var s=new F(e,t,n,i,r,o);this.ctx.transform=this.ctx.transform.multiply(s)},l.prototype.setTransform=function(e,t,n,i,r,o){e=isNaN(e)?1:e,t=isNaN(t)?0:t,n=isNaN(n)?0:n,i=isNaN(i)?1:i,r=isNaN(r)?0:r,o=isNaN(o)?0:o,this.ctx.transform=new F(e,t,n,i,r,o)},l.prototype.drawImage=function(e,t,n,i,r,o,s,a,u){var l=this.pdf.getImageProperties(e),c=1,d=1,h=1,p=1;void 0!==i&&void 0!==a&&(h=a/i,p=u/r,c=l.width/i*a/i,d=l.height/r*u/r),void 0===o&&(o=t,s=n,n=t=0),void 0!==i&&void 0===a&&(a=i,u=r),void 0===i&&void 0===a&&(a=l.width,u=l.height);var A=this.ctx.transform.decompose(),v=O(A.rotate.shx);A.scale.sx,A.scale.sy;for(var _,y=new F,b=((y=(y=(y=y.multiply(A.translate)).multiply(A.skew)).multiply(A.scale)).applyToPoint(new I(a,u)),y.applyToRectangle(new M(o-t*h,s-n*p,i*c,r*d))),w=f.call(this,b),C=[],S=0;S<w.length;S+=1)-1===C.indexOf(w[S])&&C.push(w[S]);if(C.sort(),this.autoPaging)for(var N=C[0],L=C[C.length-1],E=N;E<L+1;E++){if(this.pdf.setPage(E),0!==this.ctx.clip_path.length){var x=this.path;_=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=g(_,this.posX,-1*this.pdf.internal.pageSize.height*(E-1)+this.posY),m.call(this,"fill",!0),this.path=x}var B=JSON.parse(JSON.stringify(b));B=g([B],this.posX,-1*this.pdf.internal.pageSize.height*(E-1)+this.posY)[0],this.pdf.addImage(e,"jpg",B.x,B.y,B.w,B.h,null,null,v)}else this.pdf.addImage(e,"jpg",b.x,b.y,b.w,b.h,null,null,v)};var f=function(e,t,n){var i=[];switch(t=t||this.pdf.internal.pageSize.width,n=n||this.pdf.internal.pageSize.height,e.type){default:case"mt":case"lt":i.push(Math.floor((e.y+this.posY)/n)+1);break;case"arc":i.push(Math.floor((e.y+this.posY-e.radius)/n)+1),i.push(Math.floor((e.y+this.posY+e.radius)/n)+1);break;case"qct":var r=k(this.ctx.lastPoint.x,this.ctx.lastPoint.y,e.x1,e.y1,e.x,e.y);i.push(Math.floor(r.y/n)+1),i.push(Math.floor((r.y+r.h)/n)+1);break;case"bct":var o=D(this.ctx.lastPoint.x,this.ctx.lastPoint.y,e.x1,e.y1,e.x2,e.y2,e.x,e.y);i.push(Math.floor(o.y/n)+1),i.push(Math.floor((o.y+o.h)/n)+1);break;case"rect":i.push(Math.floor((e.y+this.posY)/n)+1),i.push(Math.floor((e.y+e.h+this.posY)/n)+1)}for(var s=0;s<i.length;s+=1)for(;this.pdf.internal.getNumberOfPages()<i[s];)p.call(this);return i},p=function(){var e=this.fillStyle,t=this.strokeStyle,n=this.font,i=this.lineCap,r=this.lineWidth,o=this.lineJoin;this.pdf.addPage(),this.fillStyle=e,this.strokeStyle=t,this.font=n,this.lineCap=i,this.lineWidth=r,this.lineJoin=o},g=function(e,t,n){for(var i=0;i<e.length;i++)switch(e[i].type){case"bct":e[i].x2+=t,e[i].y2+=n;case"qct":e[i].x1+=t,e[i].y1+=n;case"mt":case"lt":case"arc":default:e[i].x+=t,e[i].y+=n}return e},A=function(e,t){for(var n,i,r=this.fillStyle,o=this.strokeStyle,s=(this.font,this.lineCap),a=this.lineWidth,u=this.lineJoin,l=JSON.parse(JSON.stringify(this.path)),c=JSON.parse(JSON.stringify(this.path)),d=[],h=0;h<c.length;h++)if(void 0!==c[h].x)for(var A=f.call(this,c[h]),v=0;v<A.length;v+=1)-1===d.indexOf(A[v])&&d.push(A[v]);for(h=0;h<d.length;h++)for(;this.pdf.internal.getNumberOfPages()<d[h];)p.call(this);if(d.sort(),this.autoPaging){var _=d[0],y=d[d.length-1];for(h=_;h<y+1;h++){if(this.pdf.setPage(h),this.fillStyle=r,this.strokeStyle=o,this.lineCap=s,this.lineWidth=a,this.lineJoin=u,0!==this.ctx.clip_path.length){var b=this.path;n=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=g(n,this.posX,-1*this.pdf.internal.pageSize.height*(h-1)+this.posY),m.call(this,e,!0),this.path=b}i=JSON.parse(JSON.stringify(l)),this.path=g(i,this.posX,-1*this.pdf.internal.pageSize.height*(h-1)+this.posY),!1!==t&&0!==h||m.call(this,e,t)}}else m.call(this,e,t);this.path=l},m=function(e,t){if(("stroke"!==e||t||!h.call(this))&&("stroke"===e||t||!d.call(this))){var n=[];this.ctx.globalAlpha,this.ctx.fillOpacity<1&&this.ctx.fillOpacity;for(var i,r=this.path,o=0;o<r.length;o++){var s=r[o];switch(s.type){case"begin":n.push({begin:!0});break;case"close":n.push({close:!0});break;case"mt":n.push({start:s,deltas:[],abs:[]});break;case"lt":var a=n.length;if(!isNaN(r[o-1].x)){var u=[s.x-r[o-1].x,s.y-r[o-1].y];if(0<a)for(;0<=a;a--)if(!0!==n[a-1].close&&!0!==n[a-1].begin){n[a-1].deltas.push(u),n[a-1].abs.push(s);break}}break;case"bct":u=[s.x1-r[o-1].x,s.y1-r[o-1].y,s.x2-r[o-1].x,s.y2-r[o-1].y,s.x-r[o-1].x,s.y-r[o-1].y],n[n.length-1].deltas.push(u);break;case"qct":var l=r[o-1].x+2/3*(s.x1-r[o-1].x),c=r[o-1].y+2/3*(s.y1-r[o-1].y),f=s.x+2/3*(s.x1-s.x),p=s.y+2/3*(s.y1-s.y),g=s.x,A=s.y;u=[l-r[o-1].x,c-r[o-1].y,f-r[o-1].x,p-r[o-1].y,g-r[o-1].x,A-r[o-1].y],n[n.length-1].deltas.push(u);break;case"arc":n.push({deltas:[],abs:[],arc:!0}),Array.isArray(n[n.length-1].abs)&&n[n.length-1].abs.push(s)}}for(i=t?null:"stroke"===e?"stroke":"fill",o=0;o<n.length;o++){if(n[o].arc)for(var m=n[o].abs,v=0;v<m.length;v++){var w=m[v];if(void 0!==w.startAngle){var C=O(w.startAngle),L=O(w.endAngle),E=w.x,x=w.y;_.call(this,E,x,w.radius,C,L,w.counterclockwise,i,t)}else S.call(this,w.x,w.y)}n[o].arc||!0===n[o].close||!0===n[o].begin||(E=n[o].start.x,x=n[o].start.y,N.call(this,n[o].deltas,E,x,null,null))}i&&y.call(this,i),t&&b.call(this)}},v=function(e){var t=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,n=t*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return e-n;case"top":return e+t-n;case"hanging":return e+t-2*n;case"middle":return e+t/2-n;case"ideographic":return e;case"alphabetic":default:return e}};l.prototype.createLinearGradient=function(){var e=function(){};return e.colorStops=[],e.addColorStop=function(e,t){this.colorStops.push([e,t])},e.getColor=function(){return 0===this.colorStops.length?"#000000":this.colorStops[0][1]},e.isCanvasGradient=!0,e},l.prototype.createPattern=function(){return this.createLinearGradient()},l.prototype.createRadialGradient=function(){return this.createLinearGradient()};var _=function(e,t,n,i,r,o,s,a){this.pdf.internal.scaleFactor;for(var u=B(i),l=B(r),c=E.call(this,n,u,l,o),d=0;d<c.length;d++){var h=c[d];0===d&&w.call(this,h.x1+e,h.y1+t),L.call(this,e,t,h.x2,h.y2,h.x3,h.y3,h.x4,h.y4)}a?b.call(this):y.call(this,s)},y=function(e){switch(e){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},b=function(){this.pdf.clip()},w=function(e,t){this.pdf.internal.out(i(e)+" "+o(t)+" m")},C=function(e){var t;switch(e.align){case"right":case"end":t="right";break;case"center":t="center";break;case"left":case"start":default:t="left"}var n=this.ctx.transform.applyToPoint(new I(e.x,e.y)),i=this.ctx.transform.decompose(),r=new F;r=(r=(r=r.multiply(i.translate)).multiply(i.skew)).multiply(i.scale);for(var o,s=this.pdf.getTextDimensions(e.text),a=this.ctx.transform.applyToRectangle(new M(e.x,e.y,s.w,s.h)),u=r.applyToRectangle(new M(e.x,e.y-s.h,s.w,s.h)),l=f.call(this,u),c=[],d=0;d<l.length;d+=1)-1===c.indexOf(l[d])&&c.push(l[d]);if(c.sort(),!0===this.autoPaging)for(var h=c[0],p=c[c.length-1],A=h;A<p+1;A++){if(this.pdf.setPage(A),0!==this.ctx.clip_path.length){var v=this.path;o=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=g(o,this.posX,-1*this.pdf.internal.pageSize.height*(A-1)+this.posY),m.call(this,"fill",!0),this.path=v}var _=JSON.parse(JSON.stringify(a));if(_=g([_],this.posX,-1*this.pdf.internal.pageSize.height*(A-1)+this.posY)[0],.01<=e.scale){var y=this.pdf.internal.getFontSize();this.pdf.setFontSize(y*e.scale)}this.pdf.text(e.text,_.x,_.y,{angle:e.angle,align:t,renderingMode:e.renderingMode,maxWidth:e.maxWidth}),.01<=e.scale&&this.pdf.setFontSize(y)}else.01<=e.scale&&(y=this.pdf.internal.getFontSize(),this.pdf.setFontSize(y*e.scale)),this.pdf.text(e.text,n.x+this.posX,n.y+this.posY,{angle:e.angle,align:t,renderingMode:e.renderingMode,maxWidth:e.maxWidth}),.01<=e.scale&&this.pdf.setFontSize(y)},S=function(e,t,n,r){n=n||0,r=r||0,this.pdf.internal.out(i(e+n)+" "+o(t+r)+" l")},N=function(e,t,n){return this.pdf.lines(e,t,n,null,null)},L=function(e,t,i,r,o,u,l,c){this.pdf.internal.out([n(s(i+e)),n(a(r+t)),n(s(o+e)),n(a(u+t)),n(s(l+e)),n(a(c+t)),"c"].join(" "))},E=function(e,t,n,i){var r=2*Math.PI,o=t;(o<r||r<o)&&(o%=r);var s=n;(s<r||r<s)&&(s%=r);for(var a=[],u=Math.PI/2,l=i?-1:1,c=t,d=Math.min(r,Math.abs(s-o));1e-5<d;){var h=c+l*Math.min(d,u);a.push(x.call(this,e,c,h)),d-=Math.abs(h-c),c=h}return a},x=function(e,t,n){var i=(n-t)/2,r=e*Math.cos(i),o=e*Math.sin(i),s=r,a=-o,u=s*s+a*a,l=u+s*r+a*o,c=4/3*(Math.sqrt(2*u*l)-l)/(s*o-a*r),d=s-c*a,h=a+c*s,f=d,p=-h,g=i+t,A=Math.cos(g),m=Math.sin(g);return{x1:e*Math.cos(t),y1:e*Math.sin(t),x2:d*A-h*m,y2:d*m+h*A,x3:f*A-p*m,y3:f*m+p*A,x4:e*Math.cos(n),y4:e*Math.sin(n)}},O=function(e){return 180*e/Math.PI},B=function(e){return e*Math.PI/180},k=function(e,t,n,i,r,o){var s=e+.5*(n-e),a=t+.5*(i-t),u=r+.5*(n-r),l=o+.5*(i-o),c=Math.min(e,r,s,u),d=Math.max(e,r,s,u),h=Math.min(t,o,a,l),f=Math.max(t,o,a,l);return new M(c,h,d-c,f-h)},D=function(e,t,n,i,r,o,s,a){for(var u,l,c,d,h,f,p,g,A,m,v,_,y,b=n-e,w=i-t,C=r-n,S=o-i,N=s-r,L=a-o,E=0;E<41;E++)g=(f=(l=e+(u=E/40)*b)+u*((d=n+u*C)-l))+u*(d+u*(r+u*N-d)-f),A=(p=(c=t+u*w)+u*((h=i+u*S)-c))+u*(h+u*(o+u*L-h)-p),y=0==E?(_=m=g,v=A):(m=Math.min(m,g),v=Math.min(v,A),_=Math.max(_,g),Math.max(y,A));return new M(Math.round(m),Math.round(v),Math.round(_-m),Math.round(y-v))},I=function(e,t){var n=e||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return n},set:function(e){isNaN(e)||(n=parseFloat(e))}});var i=t||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return i},set:function(e){isNaN(e)||(i=parseFloat(e))}});var r="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return r},set:function(e){r=e.toString()}}),this},M=function(e,t,n,i){I.call(this,e,t),this.type="rect";var r=n||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return r},set:function(e){isNaN(e)||(r=parseFloat(e))}});var o=i||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return o},set:function(e){isNaN(e)||(o=parseFloat(e))}}),this},F=function(e,t,n,i,r,o){var s=[];return Object.defineProperty(this,"sx",{get:function(){return s[0]},set:function(e){s[0]=Math.round(1e5*e)/1e5}}),Object.defineProperty(this,"shy",{get:function(){return s[1]},set:function(e){s[1]=Math.round(1e5*e)/1e5}}),Object.defineProperty(this,"shx",{get:function(){return s[2]},set:function(e){s[2]=Math.round(1e5*e)/1e5}}),Object.defineProperty(this,"sy",{get:function(){return s[3]},set:function(e){s[3]=Math.round(1e5*e)/1e5}}),Object.defineProperty(this,"tx",{get:function(){return s[4]},set:function(e){s[4]=Math.round(1e5*e)/1e5}}),Object.defineProperty(this,"ty",{get:function(){return s[5]},set:function(e){s[5]=Math.round(1e5*e)/1e5}}),Object.defineProperty(this,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(this,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(this,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(this,"isIdentity",{get:function(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),this.sx=isNaN(e)?1:e,this.shy=isNaN(t)?0:t,this.shx=isNaN(n)?0:n,this.sy=isNaN(i)?1:i,this.tx=isNaN(r)?0:r,this.ty=isNaN(o)?0:o,this};F.prototype.multiply=function(e){var t=e.sx*this.sx+e.shy*this.shx,n=e.sx*this.shy+e.shy*this.sy,i=e.shx*this.sx+e.sy*this.shx,r=e.shx*this.shy+e.sy*this.sy,o=e.tx*this.sx+e.ty*this.shx+this.tx,s=e.tx*this.shy+e.ty*this.sy+this.ty;return new F(t,n,i,r,o,s)},F.prototype.decompose=function(){var e=this.sx,t=this.shy,n=this.shx,i=this.sy,r=this.tx,o=this.ty,s=Math.sqrt(e*e+t*t),a=(e/=s)*n+(t/=s)*i;n-=e*a,i-=t*a;var u=Math.sqrt(n*n+i*i);return a/=u,e*(i/=u)<t*(n/=u)&&(e=-e,t=-t,a=-a,s=-s),{scale:new F(s,0,0,u,0,0),translate:new F(1,0,0,1,r,o),rotate:new F(e,t,-t,e,0,0),skew:new F(1,0,a,1,0,0)}},F.prototype.applyToPoint=function(e){var t=e.x*this.sx+e.y*this.shx+this.tx,n=e.x*this.shy+e.y*this.sy+this.ty;return new I(t,n)},F.prototype.applyToRectangle=function(e){var t=this.applyToPoint(e),n=this.applyToPoint(new I(e.x+e.w,e.y+e.h));return new M(t.x,t.y,n.x-t.x,n.y-t.y)},F.prototype.clone=function(){var e=this.sx,t=this.shy,n=this.shx,i=this.sy,r=this.tx,o=this.ty;return new F(e,t,n,i,r,o)}}(pe.API,"undefined"!=typeof self&&self||"undefined"!=typeof window&&window||"undefined"!=typeof i&&i||Function('return typeof this === "object" && this.content')()||Function("return this")()),A=pe.API,m=function(e){var t,n,i,r,o,s,a,u,l,c;for(/[^\x00-\xFF]/.test(e),n=[],i=0,r=(e+=t="\0\0\0\0".slice(e.length%4||4)).length;i<r;i+=4)0!==(o=(e.charCodeAt(i)<<24)+(e.charCodeAt(i+1)<<16)+(e.charCodeAt(i+2)<<8)+e.charCodeAt(i+3))?(s=(o=((o=((o=((o=(o-(c=o%85))/85)-(l=o%85))/85)-(u=o%85))/85)-(a=o%85))/85)%85,n.push(s+33,a+33,u+33,l+33,c+33)):n.push(122);return function(e,n){for(var i=t.length;0<i;i--)e.pop()}(n),String.fromCharCode.apply(String,n)+"~>"},v=function(e){var t,n,i,r,o,s=String,a="length",u="charCodeAt",l="slice",c="replace";for(e[l](-2),e=e[l](0,-2)[c](/\s/g,"")[c]("z","!!!!!"),i=[],r=0,o=(e+=t="uuuuu"[l](e[a]%5||5))[a];r<o;r+=5)n=52200625*(e[u](r)-33)+614125*(e[u](r+1)-33)+7225*(e[u](r+2)-33)+85*(e[u](r+3)-33)+(e[u](r+4)-33),i.push(255&n>>24,255&n>>16,255&n>>8,255&n);return function(e,n){for(var i=t[a];0<i;i--)e.pop()}(i),s.fromCharCode.apply(s,i)},_=function(e){for(var t="",n=0;n<e.length;n+=1)t+=("0"+e.charCodeAt(n).toString(16)).slice(-2);return t+">"},y=function(e){var t=new RegExp(/^([0-9A-Fa-f]{2})+$/);if(-1!==(e=e.replace(/\s/g,"")).indexOf(">")&&(e=e.substr(0,e.indexOf(">"))),e.length%2&&(e+="0"),!1===t.test(e))return"";for(var n="",i=0;i<e.length;i+=2)n+=String.fromCharCode("0x"+(e[i]+e[i+1]));return n},b=function(e,t){t=Object.assign({predictor:1,colors:1,bitsPerComponent:8,columns:1},t);for(var n,i,r=[],o=e.length;o--;)r[o]=e.charCodeAt(o);return n=A.adler32cs.from(e),(i=new Deflater(6)).append(new Uint8Array(r)),e=i.flush(),(r=new Uint8Array(e.length+6)).set(new Uint8Array([120,156])),r.set(e,2),r.set(new Uint8Array([255&n,n>>8&255,n>>16&255,n>>24&255]),e.length+2),String.fromCharCode.apply(null,r)},A.processDataByFilters=function(e,t){var n=0,i=e||"",r=[];for("string"==typeof(t=t||[])&&(t=[t]),n=0;n<t.length;n+=1)switch(t[n]){case"ASCII85Decode":case"/ASCII85Decode":i=v(i),r.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":i=m(i),r.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":i=y(i),r.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":i=_(i),r.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":i=b(i),r.push("/FlateDecode");break;default:throw'The filter: "'+t[n]+'" is not implemented'}return{data:i,reverseChain:r.reverse().join(" ")}},(w=pe.API).loadFile=function(e,t,n){var i;t=t||!0,n=n||function(){};try{i=function(e,t,n){var i=new XMLHttpRequest,r=[],o=0,s=function(e){var t=e.length,n=String.fromCharCode;for(o=0;o<t;o+=1)r.push(n(255&e.charCodeAt(o)));return r.join("")};if(i.open("GET",e,!t),i.overrideMimeType("text/plain; charset=x-user-defined"),!1===t&&(i.onload=function(){return s(this.responseText)}),i.send(null),200===i.status)return t?s(i.responseText):void 0;console.warn('Unable to load file "'+e+'"')}(e,t)}catch(e){i=void 0}return i},w.loadImageFile=w.loadFile,C=pe.API,S="undefined"!=typeof window&&window||"undefined"!=typeof i&&i,N=function(e){var t=r(e);return"undefined"===t?"undefined":"string"===t||e instanceof String?"string":"number"===t||e instanceof Number?"number":"function"===t||e instanceof Function?"function":e&&e.constructor===Array?"array":e&&1===e.nodeType?"element":"object"===t?"object":"unknown"},L=function(e,t){var n=document.createElement(e);if(t.className&&(n.className=t.className),t.innerHTML){n.innerHTML=t.innerHTML;for(var i=n.getElementsByTagName("script"),r=i.length;0<r--;null)i[r].parentNode.removeChild(i[r])}for(var o in t.style)n.style[o]=t.style[o];return n},(((E=function e(t){var n=Object.assign(e.convert(Promise.resolve()),JSON.parse(JSON.stringify(e.template))),i=e.convert(Promise.resolve(),n);return(i=i.setProgress(1,e,1,[e])).set(t)}).prototype=Object.create(Promise.prototype)).constructor=E).convert=function(e,t){return e.__proto__=t||E.prototype,e},E.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{}}},E.prototype.from=function(e,t){return this.then((function(){switch(t=t||function(e){switch(N(e)){case"string":return"string";case"element":return"canvas"===e.nodeName.toLowerCase?"canvas":"element";default:return"unknown"}}(e)){case"string":return this.set({src:L("div",{innerHTML:e})});case"element":return this.set({src:e});case"canvas":return this.set({canvas:e});case"img":return this.set({img:e});default:return this.error("Unknown source type.")}}))},E.prototype.to=function(e){switch(e){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},E.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then((function(){var e={position:"relative",display:"inline-block",width:Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:"white"},t=function e(t,n){for(var i=3===t.nodeType?document.createTextNode(t.nodeValue):t.cloneNode(!1),r=t.firstChild;r;r=r.nextSibling)!0!==n&&1===r.nodeType&&"SCRIPT"===r.nodeName||i.appendChild(e(r,n));return 1===t.nodeType&&("CANVAS"===t.nodeName?(i.width=t.width,i.height=t.height,i.getContext("2d").drawImage(t,0,0)):"TEXTAREA"!==t.nodeName&&"SELECT"!==t.nodeName||(i.value=t.value),i.addEventListener("load",(function(){i.scrollTop=t.scrollTop,i.scrollLeft=t.scrollLeft}),!0)),i}(this.prop.src,this.opt.html2canvas.javascriptEnabled);"BODY"===t.tagName&&(e.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=L("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=L("div",{className:"html2pdf__container",style:e}),this.prop.container.appendChild(t),this.prop.container.firstChild.appendChild(L("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"}))},E.prototype.toCanvas=function(){var e=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(e).then((function(){var e=Object.assign({},this.opt.html2canvas);if(delete e.onrendered,this.isHtml2CanvasLoaded())return html2canvas(this.prop.container,e)})).then((function(e){(this.opt.html2canvas.onrendered||function(){})(e),this.prop.canvas=e,document.body.removeChild(this.prop.overlay)}))},E.prototype.toContext2d=function(){var e=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(e).then((function(){var e=this.opt.jsPDF,t=Object.assign({async:!0,allowTaint:!0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete t.onrendered,e.context2d.autoPaging=!0,e.context2d.posX=this.opt.x,e.context2d.posY=this.opt.y,t.windowHeight=t.windowHeight||0,t.windowHeight=0==t.windowHeight?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):t.windowHeight,this.isHtml2CanvasLoaded())return html2canvas(this.prop.container,t)})).then((function(e){(this.opt.html2canvas.onrendered||function(){})(e),this.prop.canvas=e,document.body.removeChild(this.prop.overlay)}))},E.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then((function(){var e=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=e}))},E.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then((function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF}))},E.prototype.output=function(e,t,n){return"img"===(n=n||"pdf").toLowerCase()||"image"===n.toLowerCase()?this.outputImg(e,t):this.outputPdf(e,t)},E.prototype.outputPdf=function(e,t){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){return this.prop.pdf.output(e,t)}))},E.prototype.outputImg=function(e,t){return this.thenList([function(){return this.prop.img||this.toImg()}]).then((function(){switch(e){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+e+'" is not supported.'}}))},E.prototype.isHtml2CanvasLoaded=function(){var e=void 0!==S.html2canvas;return e||console.error("html2canvas not loaded."),e},E.prototype.save=function(e){if(this.isHtml2CanvasLoaded())return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(e?{filename:e}:null).then((function(){this.prop.pdf.save(this.opt.filename)}))},E.prototype.doCallback=function(e){if(this.isHtml2CanvasLoaded())return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){this.prop.callback(this.prop.pdf)}))},E.prototype.set=function(e){if("object"!==N(e))return this;var t=Object.keys(e||{}).map((function(t){if(t in E.template.prop)return function(){this.prop[t]=e[t]};switch(t){case"margin":return this.setMargin.bind(this,e.margin);case"jsPDF":return function(){return this.opt.jsPDF=e.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,e.pageSize);default:return function(){this.opt[t]=e[t]}}}),this);return this.then((function(){return this.thenList(t)}))},E.prototype.get=function(e,t){return this.then((function(){var n=e in E.template.prop?this.prop[e]:this.opt[e];return t?t(n):n}))},E.prototype.setMargin=function(e){return this.then((function(){switch(N(e)){case"number":e=[e,e,e,e];case"array":if(2===e.length&&(e=[e[0],e[1],e[0],e[1]]),4===e.length)break;default:return this.error("Invalid margin array.")}this.opt.margin=e})).then(this.setPageSize)},E.prototype.setPageSize=function(e){function t(e,t){return Math.floor(e*t/72*96)}return this.then((function(){(e=e||pe.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(e.inner={width:e.width-this.opt.margin[1]-this.opt.margin[3],height:e.height-this.opt.margin[0]-this.opt.margin[2]},e.inner.px={width:t(e.inner.width,e.k),height:t(e.inner.height,e.k)},e.inner.ratio=e.inner.height/e.inner.width),this.prop.pageSize=e}))},E.prototype.setProgress=function(e,t,n,i){return null!=e&&(this.progress.val=e),null!=t&&(this.progress.state=t),null!=n&&(this.progress.n=n),null!=i&&(this.progress.stack=i),this.progress.ratio=this.progress.val/this.progress.state,this},E.prototype.updateProgress=function(e,t,n,i){return this.setProgress(e?this.progress.val+e:null,t||null,n?this.progress.n+n:null,i?this.progress.stack.concat(i):null)},E.prototype.then=function(e,t){var n=this;return this.thenCore(e,t,(function(e,t){return n.updateProgress(null,null,1,[e]),Promise.prototype.then.call(this,(function(t){return n.updateProgress(null,e),t})).then(e,t).then((function(e){return n.updateProgress(1),e}))}))},E.prototype.thenCore=function(e,t,n){n=n||Promise.prototype.then;var i=this;e&&(e=e.bind(i)),t&&(t=t.bind(i));var r=-1!==Promise.toString().indexOf("[native code]")&&"Promise"===Promise.name?i:E.convert(Object.assign({},i),Promise.prototype),o=n.call(r,e,t);return E.convert(o,i.__proto__)},E.prototype.thenExternal=function(e,t){return Promise.prototype.then.call(this,e,t)},E.prototype.thenList=function(e){var t=this;return e.forEach((function(e){t=t.thenCore(e)})),t},E.prototype.catch=function(e){e&&(e=e.bind(this));var t=Promise.prototype.catch.call(this,e);return E.convert(t,this)},E.prototype.catchExternal=function(e){return Promise.prototype.catch.call(this,e)},E.prototype.error=function(e){return this.then((function(){throw new Error(e)}))},E.prototype.using=E.prototype.set,E.prototype.saveAs=E.prototype.save,E.prototype.export=E.prototype.output,E.prototype.run=E.prototype.then,pe.getPageSize=function(e,t,n){if("object"===r(e)){var i=e;e=i.orientation,t=i.unit||t,n=i.format||n}t=t||"mm",n=n||"a4",e=(""+(e||"P")).toLowerCase();var o=(""+n).toLowerCase(),s={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(t){case"pt":var a=1;break;case"mm":a=72/25.4;break;case"cm":a=72/2.54;break;case"in":a=72;break;case"px":a=.75;break;case"pc":case"em":a=12;break;case"ex":a=6;break;default:throw"Invalid unit: "+t}if(s.hasOwnProperty(o))var u=s[o][1]/a,l=s[o][0]/a;else try{u=n[1],l=n[0]}catch(e){throw new Error("Invalid format: "+n)}if("p"===e||"portrait"===e){if(e="p",u<l){var c=l;l=u,u=c}}else{if("l"!==e&&"landscape"!==e)throw"Invalid orientation: "+e;e="l",l<u&&(c=l,l=u,u=c)}return{width:l,height:u,unit:t,k:a}},C.html=function(e,t){(t=t||{}).callback=t.callback||function(){},t.html2canvas=t.html2canvas||{},t.html2canvas.canvas=t.html2canvas.canvas||this.canvas,t.jsPDF=t.jsPDF||this,t.jsPDF;var n=new E(t);return t.worker?n:n.from(e).doCallback()},pe.API.addJS=function(e){return B=e,this.internal.events.subscribe("postPutResources",(function(e){x=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(x+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),O=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+B+")"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){void 0!==x&&void 0!==O&&this.internal.out("/Names <</JavaScript "+x+" 0 R>>")})),this},(k=pe.API).events.push(["postPutResources",function(){var e=this,t=/^(\d+) 0 obj$/;if(0<this.outline.root.children.length)for(var n=e.outline.render().split(/\r\n/),i=0;i<n.length;i++){var r=n[i],o=t.exec(r);if(null!=o){var s=o[1];e.internal.newObjectDeferredBegin(s,!1)}e.internal.write(r)}if(this.outline.createNamedDestinations){var a=this.internal.pages.length,u=[];for(i=0;i<a;i++){var l=e.internal.newObject();u.push(l);var c=e.internal.getPageInfo(i+1);e.internal.write("<< /D["+c.objId+" 0 R /XYZ null null null]>> endobj")}var d=e.internal.newObject();for(e.internal.write("<< /Names [ "),i=0;i<u.length;i++)e.internal.write("(page_"+(i+1)+")"+u[i]+" 0 R");e.internal.write(" ] >>","endobj"),e.internal.newObject(),e.internal.write("<< /Dests "+d+" 0 R"),e.internal.write(">>","endobj")}}]),k.events.push(["putCatalog",function(){0<this.outline.root.children.length&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+namesOid+" 0 R"))}]),k.events.push(["initialized",function(){var e=this;e.outline={createNamedDestinations:!1,root:{children:[]}},e.outline.add=function(e,t,n){var i={title:t,options:n,children:[]};return null==e&&(e=this.root),e.children.push(i),i},e.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=e,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},e.outline.genIds_r=function(t){t.id=e.internal.newObjectDeferred();for(var n=0;n<t.children.length;n++)this.genIds_r(t.children[n])},e.outline.renderRoot=function(e){this.objStart(e),this.line("/Type /Outlines"),0<e.children.length&&(this.line("/First "+this.makeRef(e.children[0])),this.line("/Last "+this.makeRef(e.children[e.children.length-1]))),this.line("/Count "+this.count_r({count:0},e)),this.objEnd()},e.outline.renderItems=function(t){this.ctx.pdf.internal.getCoordinateString;for(var n=this.ctx.pdf.internal.getVerticalCoordinateString,i=0;i<t.children.length;i++){var r=t.children[i];this.objStart(r),this.line("/Title "+this.makeString(r.title)),this.line("/Parent "+this.makeRef(t)),0<i&&this.line("/Prev "+this.makeRef(t.children[i-1])),i<t.children.length-1&&this.line("/Next "+this.makeRef(t.children[i+1])),0<r.children.length&&(this.line("/First "+this.makeRef(r.children[0])),this.line("/Last "+this.makeRef(r.children[r.children.length-1])));var o=this.count=this.count_r({count:0},r);if(0<o&&this.line("/Count "+o),r.options&&r.options.pageNumber){var s=e.internal.getPageInfo(r.options.pageNumber);this.line("/Dest ["+s.objId+" 0 R /XYZ 0 "+n(0)+" 0]")}this.objEnd()}for(i=0;i<t.children.length;i++)r=t.children[i],this.renderItems(r)},e.outline.line=function(e){this.ctx.val+=e+"\r\n"},e.outline.makeRef=function(e){return e.id+" 0 R"},e.outline.makeString=function(t){return"("+e.internal.pdfEscape(t)+")"},e.outline.objStart=function(e){this.ctx.val+="\r\n"+e.id+" 0 obj\r\n<<\r\n"},e.outline.objEnd=function(e){this.ctx.val+=">> \r\nendobj\r\n"},e.outline.count_r=function(e,t){for(var n=0;n<t.children.length;n++)e.count++,this.count_r(e,t.children[n]);return e.count}}]),D=pe.API,I=function(){var e="function"==typeof Deflater;if(!e)throw new Error("requires deflate.js for compression");return e},M=function(e,t,n,i){var r=5,o=H;switch(i){case D.image_compression.FAST:r=3,o=U;break;case D.image_compression.MEDIUM:r=6,o=j;break;case D.image_compression.SLOW:r=9,o=Q}e=R(e,t,n,o);var s=new Uint8Array(F(r)),a=T(e),u=new Deflater(r),l=u.append(e),c=u.flush(),d=s.length+l.length+c.length,h=new Uint8Array(d+4);return h.set(s),h.set(l,s.length),h.set(c,s.length+l.length),h[d++]=a>>>24&255,h[d++]=a>>>16&255,h[d++]=a>>>8&255,h[d++]=255&a,D.arrayBufferToBinaryString(h)},F=function(e,t){var n=Math.LOG2E*Math.log(32768)-8<<4|8,i=n<<8;return i|=Math.min(3,(t-1&255)>>1)<<6,i|=0,[n,255&(i+=31-i%31)]},T=function(e,t){for(var n,i=1,r=0,o=e.length,s=0;0<o;){for(o-=n=t<o?t:o;r+=i+=e[s++],--n;);i%=65521,r%=65521}return(r<<16|i)>>>0},R=function(e,t,n,i){for(var r,o,s,a=e.length/t,u=new Uint8Array(e.length+a),l=W(),c=0;c<a;c++){if(s=c*t,r=e.subarray(s,s+t),i)u.set(i(r,n,o),s+c);else{for(var d=0,h=l.length,f=[];d<h;d++)f[d]=l[d](r,n,o);var p=z(f.concat());u.set(f[p],s+c)}o=r}return u},P=function(e,t,n){var i=Array.apply([],e);return i.unshift(0),i},U=function(e,t,n){var i,r=[],o=0,s=e.length;for(r[0]=1;o<s;o++)i=e[o-t]||0,r[o+1]=e[o]-i+256&255;return r},H=function(e,t,n){var i,r=[],o=0,s=e.length;for(r[0]=2;o<s;o++)i=n&&n[o]||0,r[o+1]=e[o]-i+256&255;return r},j=function(e,t,n){var i,r,o=[],s=0,a=e.length;for(o[0]=3;s<a;s++)i=e[s-t]||0,r=n&&n[s]||0,o[s+1]=e[s]+256-(i+r>>>1)&255;return o},Q=function(e,t,n){var i,r,o,s,a=[],u=0,l=e.length;for(a[0]=4;u<l;u++)i=e[u-t]||0,r=n&&n[u]||0,o=n&&n[u-t]||0,s=V(i,r,o),a[u+1]=e[u]-s+256&255;return a},V=function(e,t,n){var i=e+t-n,r=Math.abs(i-e),o=Math.abs(i-t),s=Math.abs(i-n);return r<=o&&r<=s?e:o<=s?t:n},W=function(){return[P,U,H,j,Q]},z=function(e){for(var t,n,i,r=0,o=e.length;r<o;)((t=K(e[r].slice(1)))<n||!n)&&(n=t,i=r),r++;return i},K=function(e){for(var t=0,n=e.length,i=0;t<n;)i+=Math.abs(e[t++]);return i},D.processPNG=function(e,t,n,i,r){var o,s,a,u,l,c,d=this.color_spaces.DEVICE_RGB,h=this.decode.FLATE_DECODE,f=8;if(this.isArrayBuffer(e)&&(e=new Uint8Array(e)),this.isArrayBufferView(e)){if("function"!=typeof PNG||"function"!=typeof Te)throw new Error("PNG support requires png.js and zlib.js");if(e=(o=new PNG(e)).imgData,f=o.bits,d=o.colorSpace,u=o.colors,-1!==[4,6].indexOf(o.colorType)){if(8===o.bits)for(var p,g=(L=32==o.pixelBitlength?new Uint32Array(o.decodePixels().buffer):16==o.pixelBitlength?new Uint16Array(o.decodePixels().buffer):new Uint8Array(o.decodePixels().buffer)).length,A=new Uint8Array(g*o.colors),m=new Uint8Array(g),v=o.pixelBitlength-o.bits,_=0,y=0;_<g;_++){for(b=L[_],p=0;p<v;)A[y++]=b>>>p&255,p+=o.bits;m[_]=b>>>p&255}if(16===o.bits){g=(L=new Uint32Array(o.decodePixels().buffer)).length,A=new Uint8Array(g*(32/o.pixelBitlength)*o.colors),m=new Uint8Array(g*(32/o.pixelBitlength));for(var b,w=1<o.colors,C=y=_=0;_<g;)b=L[_++],A[y++]=b>>>0&255,w&&(A[y++]=b>>>16&255,b=L[_++],A[y++]=b>>>0&255),m[C++]=b>>>16&255;f=8}i!==D.image_compression.NONE&&I()?(e=M(A,o.width*o.colors,o.colors,i),c=M(m,o.width,1,i)):(e=A,c=m,h=null)}if(3===o.colorType&&(d=this.color_spaces.INDEXED,l=o.palette,o.transparency.indexed)){var S=o.transparency.indexed,N=0;for(_=0,g=S.length;_<g;++_)N+=S[_];if((N/=255)==g-1&&-1!==S.indexOf(0))a=[S.indexOf(0)];else if(N!==g){var L=o.decodePixels();for(m=new Uint8Array(L.length),_=0,g=L.length;_<g;_++)m[_]=S[L[_]];c=M(m,o.width,1)}}var E=function(e){var t;switch(e){case D.image_compression.FAST:t=11;break;case D.image_compression.MEDIUM:t=13;break;case D.image_compression.SLOW:t=14;break;default:t=12}return t}(i);return s=h===this.decode.FLATE_DECODE?"/Predictor "+E+" /Colors "+u+" /BitsPerComponent "+f+" /Columns "+o.width:"/Colors "+u+" /BitsPerComponent "+f+" /Columns "+o.width,(this.isArrayBuffer(e)||this.isArrayBufferView(e))&&(e=this.arrayBufferToBinaryString(e)),(c&&this.isArrayBuffer(c)||this.isArrayBufferView(c))&&(c=this.arrayBufferToBinaryString(c)),this.createImageInfo(e,o.width,o.height,d,f,h,t,n,s,a,l,c,E)}throw new Error("Unsupported PNG image data, try using JPEG instead.")},(q=pe.API).processGIF89A=function(e,t,n,i,r){var o=new ke(e),s=o.width,a=o.height,u=[];o.decodeAndBlitFrameRGBA(0,u);var l={data:u,width:s,height:a},c=new Ie(100).encode(l,100);return q.processJPEG.call(this,c,t,n,i)},q.processGIF87A=q.processGIF89A,(G=pe.API).processBMP=function(e,t,n,i,r){var o=new Me(e,!1),s=o.width,a=o.height,u={data:o.getData(),width:s,height:a},l=new Ie(100).encode(u,100);return G.processJPEG.call(this,l,t,n,i)},pe.API.setLanguage=function(e){return void 0===this.internal.languageSettings&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),void 0!=={af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"FYRO Macedonian",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[e]&&(this.internal.languageSettings.languageCode=e,!1===this.internal.languageSettings.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")})),this.internal.languageSettings.isSubscribed=!0)),this},X=pe.API,Y=X.getCharWidthsArray=function(e,t){var n,i,r,o=(t=t||{}).font||this.internal.getFont(),s=t.fontSize||this.internal.getFontSize(),a=t.charSpace||this.internal.getCharSpace(),u=t.widths?t.widths:o.metadata.Unicode.widths,l=u.fof?u.fof:1,c=t.kerning?t.kerning:o.metadata.Unicode.kerning,d=c.fof?c.fof:1,h=0,f=u[0]||l,p=[];for(n=0,i=e.length;n<i;n++)r=e.charCodeAt(n),"function"==typeof o.metadata.widthOfString?p.push((o.metadata.widthOfGlyph(o.metadata.characterToGlyph(r))+a*(1e3/s)||0)/1e3):p.push((u[r]||f)/l+(c[r]&&c[r][h]||0)/d),h=r;return p},J=X.getArraySum=function(e){for(var t=e.length,n=0;t;)n+=e[--t];return n},Z=X.getStringUnitWidth=function(e,t){var n=(t=t||{}).fontSize||this.internal.getFontSize(),i=t.font||this.internal.getFont(),r=t.charSpace||this.internal.getCharSpace();return"function"==typeof i.metadata.widthOfString?i.metadata.widthOfString(e,n,r)/n:J(Y.apply(this,arguments))},$=function(e,t,n,i){for(var r=[],o=0,s=e.length,a=0;o!==s&&a+t[o]<n;)a+=t[o],o++;r.push(e.slice(0,o));var u=o;for(a=0;o!==s;)a+t[o]>i&&(r.push(e.slice(u,o)),a=0,u=o),a+=t[o],o++;return u!==o&&r.push(e.slice(u,o)),r},ee=function(e,t,n){n||(n={});var i,r,o,s,a,u,l=[],c=[l],d=n.textIndent||0,h=0,f=0,p=e.split(" "),g=Y.apply(this,[" ",n])[0];if(u=-1===n.lineIndent?p[0].length+2:n.lineIndent||0){var A=Array(u).join(" "),m=[];p.map((function(e){1<(e=e.split(/\s*\n/)).length?m=m.concat(e.map((function(e,t){return(t&&e.length?"\n":"")+e}))):m.push(e[0])})),p=m,u=Z.apply(this,[A,n])}for(o=0,s=p.length;o<s;o++){var v=0;if(i=p[o],u&&"\n"==i[0]&&(i=i.substr(1),v=1),r=Y.apply(this,[i,n]),t<d+h+(f=J(r))||v){if(t<f){for(a=$.apply(this,[i,r,t-(d+h),t]),l.push(a.shift()),l=[a.pop()];a.length;)c.push([a.shift()]);f=J(r.slice(i.length-(l[0]?l[0].length:0)))}else l=[i];c.push(l),d=f+u,h=g}else l.push(i),d+=h+f,h=g}if(u)var _=function(e,t){return(t?A:"")+e.join(" ")};else _=function(e){return e.join(" ")};return c.map(_)},X.splitTextToSize=function(e,t,n){var i,r=(n=n||{}).fontSize||this.internal.getFontSize(),o=function(e){var t={0:1},n={};if(e.widths&&e.kerning)return{widths:e.widths,kerning:e.kerning};var i=this.internal.getFont(e.fontName,e.fontStyle),r="Unicode";return i.metadata[r]?{widths:i.metadata[r].widths||t,kerning:i.metadata[r].kerning||n}:{font:i.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,n);i=Array.isArray(e)?e:e.split(/\r?\n/);var s=1*this.internal.scaleFactor*t/r;o.textIndent=n.textIndent?1*n.textIndent*this.internal.scaleFactor/r:0,o.lineIndent=n.lineIndent;var a,u,l=[];for(a=0,u=i.length;a<u;a++)l=l.concat(ee.apply(this,[i[a],s,o]));return l},te=pe.API,ie={codePages:["WinAnsiEncoding"],WinAnsiEncoding:(ne=function(e){for(var t="klmnopqrstuvwxyz",n={},i=0;i<t.length;i++)n[t[i]]="0123456789abcdef"[i];var r,o,s,a,u,l={},c=1,d=l,h=[],f="",p="",g=e.length-1;for(i=1;i!=g;)u=e[i],i+=1,"'"==u?o=o?(a=o.join(""),r):[]:o?o.push(u):"{"==u?(h.push([d,a]),d={},a=r):"}"==u?((s=h.pop())[0][s[1]]=d,a=r,d=s[0]):"-"==u?c=-1:a===r?n.hasOwnProperty(u)?(f+=n[u],a=parseInt(f,16)*c,c=1,f=""):f+=u:n.hasOwnProperty(u)?(p+=n[u],d[a]=parseInt(p,16)*c,c=1,a=r,p=""):p+=u;return l})("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},re={Unicode:{Courier:ie,"Courier-Bold":ie,"Courier-BoldOblique":ie,"Courier-Oblique":ie,Helvetica:ie,"Helvetica-Bold":ie,"Helvetica-BoldOblique":ie,"Helvetica-Oblique":ie,"Times-Roman":ie,"Times-Bold":ie,"Times-BoldItalic":ie,"Times-Italic":ie}},oe={Unicode:{"Courier-Oblique":ne("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":ne("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":ne("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:ne("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":ne("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":ne("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:ne("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:ne("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":ne("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:ne("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":ne("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":ne("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":ne("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":ne("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}},te.events.push(["addFont",function(e){var t,n,i,r=e.font,o="Unicode";(t=oe[o][r.postScriptName])&&((n=r.metadata[o]?r.metadata[o]:r.metadata[o]={}).widths=t.widths,n.kerning=t.kerning),(i=re[o][r.postScriptName])&&((n=r.metadata[o]?r.metadata[o]:r.metadata[o]={}).encoding=i).codePages&&i.codePages.length&&(r.encoding=i.codePages[0])}]),se=pe,"undefined"!=typeof self&&self||"undefined"!=typeof i&&i||"undefined"!=typeof window&&window||Function("return this")(),se.API.events.push(["addFont",function(e){var t=e.font,n=e.instance;if(void 0!==n&&n.existsFileInVFS(t.postScriptName)){var i=n.getFileFromVFS(t.postScriptName);if("string"!=typeof i)throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+t.postScriptName+"').");t.metadata=se.API.TTFFont.open(t.postScriptName,t.fontName,i,t.encoding),t.metadata.Unicode=t.metadata.Unicode||{encoding:{},kerning:{},widths:[]},t.metadata.glyIdsUsed=[0]}else if(!1===t.isStandardFont)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+t.postScriptName+"').")}]),(ae=pe.API).addSvg=function(e,t,n,i,r){if(void 0===t||void 0===n)throw new Error("addSVG needs values for 'x' and 'y'");function o(e){for(var t=parseFloat(e[1]),n=parseFloat(e[2]),i=[],r=3,o=e.length;r<o;)"c"===e[r]?(i.push([parseFloat(e[r+1]),parseFloat(e[r+2]),parseFloat(e[r+3]),parseFloat(e[r+4]),parseFloat(e[r+5]),parseFloat(e[r+6])]),r+=7):"l"===e[r]?(i.push([parseFloat(e[r+1]),parseFloat(e[r+2])]),r+=3):r+=1;return[t,n,i]}var s,a,u,l,c,d,h,f,p=(l=document,f=l.createElement("iframe"),c=".jsPDF_sillysvg_iframe {display:none;position:absolute;}",(h=(d=l).createElement("style")).type="text/css",h.styleSheet?h.styleSheet.cssText=c:h.appendChild(d.createTextNode(c)),d.getElementsByTagName("head")[0].appendChild(h),f.name="childframe",f.setAttribute("width",0),f.setAttribute("height",0),f.setAttribute("frameborder","0"),f.setAttribute("scrolling","no"),f.setAttribute("seamless","seamless"),f.setAttribute("class","jsPDF_sillysvg_iframe"),l.body.appendChild(f),f),g=(s=e,(u=((a=p).contentWindow||a.contentDocument).document).write(s),u.close(),u.getElementsByTagName("svg")[0]),A=[1,1],m=parseFloat(g.getAttribute("width")),v=parseFloat(g.getAttribute("height"));m&&v&&(i&&r?A=[i/m,r/v]:i?A=[i/m,i/m]:r&&(A=[r/v,r/v]));var _,y,b,w,C=g.childNodes;for(_=0,y=C.length;_<y;_++)(b=C[_]).tagName&&"PATH"===b.tagName.toUpperCase()&&((w=o(b.getAttribute("d").split(" ")))[0]=w[0]*A[0]+t,w[1]=w[1]*A[1]+n,this.lines.call(this,w[2],w[0],w[1],A));return this},ae.addSVG=ae.addSvg,ae.addSvgAsImage=function(e,t,n,i,r,o,s,a){if(isNaN(t)||isNaN(n))throw console.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(i)||isNaN(r))throw console.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var u=document.createElement("canvas");u.width=i,u.height=r;var l=u.getContext("2d");return l.fillStyle="#fff",l.fillRect(0,0,u.width,u.height),canvg(u,e,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0}),this.addImage(u.toDataURL("image/jpeg",1),t,n,i,r,s,a),this},pe.API.putTotalPages=function(e){var t,n=0;n=parseInt(this.internal.getFont().id.substr(1),10)<15?(t=new RegExp(e,"g"),this.internal.getNumberOfPages()):(t=new RegExp(this.pdfEscape16(e,this.internal.getFont()),"g"),this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var i=1;i<=this.internal.getNumberOfPages();i++)for(var r=0;r<this.internal.pages[i].length;r++)this.internal.pages[i][r]=this.internal.pages[i][r].replace(t,n);return this},pe.API.viewerPreferences=function(e,t){var n;e=e||{},t=t||!1;var i,o,s={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},a=Object.keys(s),u=[],l=0,c=0,d=0,h=!0;function f(e,t){var n,i=!1;for(n=0;n<e.length;n+=1)e[n]===t&&(i=!0);return i}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(s)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,"reset"===e||!0===t){var p=a.length;for(d=0;d<p;d+=1)n[a[d]].value=n[a[d]].defaultValue,n[a[d]].explicitSet=!1}if("object"===r(e))for(i in e)if(o=e[i],f(a,i)&&void 0!==o){if("boolean"===n[i].type&&"boolean"==typeof o)n[i].value=o;else if("name"===n[i].type&&f(n[i].valueSet,o))n[i].value=o;else if("integer"===n[i].type&&Number.isInteger(o))n[i].value=o;else if("array"===n[i].type){for(l=0;l<o.length;l+=1)if(h=!0,1===o[l].length&&"number"==typeof o[l][0])u.push(String(o[l]-1));else if(1<o[l].length){for(c=0;c<o[l].length;c+=1)"number"!=typeof o[l][c]&&(h=!1);!0===h&&u.push([o[l][0]-1,o[l][1]-1].join(" "))}n[i].value="["+u.join(" ")+"]"}else n[i].value=n[i].defaultValue;n[i].explicitSet=!0}return!1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){var e,t=[];for(e in n)!0===n[e].explicitSet&&("name"===n[e].type?t.push("/"+e+" /"+n[e].value):t.push("/"+e+" "+n[e].value));0!==t.length&&this.internal.write("/ViewerPreferences\n<<\n"+t.join("\n")+"\n>>")})),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this},ue=pe.API,de=ce=le="",ue.addMetadata=function(e,t){return ce=t||"http://jspdf.default.namespaceuri/",le=e,this.internal.events.subscribe("postPutResources",(function(){if(le){var e='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+ce+'"><jspdf:metadata>',t=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),n=unescape(encodeURIComponent(e)),i=unescape(encodeURIComponent(le)),r=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),o=unescape(encodeURIComponent("</x:xmpmeta>")),s=n.length+i.length+r.length+t.length+o.length;de=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+s+" >>"),this.internal.write("stream"),this.internal.write(t+n+i+r+o),this.internal.write("endstream"),this.internal.write("endobj")}else de=""})),this.internal.events.subscribe("putCatalog",(function(){de&&this.internal.write("/Metadata "+de+" 0 R")})),this},function(e,t){var n=e.API,i=n.pdfEscape16=function(e,t){for(var n,i=t.metadata.Unicode.widths,r=["","0","00","000","0000"],o=[""],s=0,a=e.length;s<a;++s){if(n=t.metadata.characterToGlyph(e.charCodeAt(s)),t.metadata.glyIdsUsed.push(n),t.metadata.toUnicode[n]=e.charCodeAt(s),-1==i.indexOf(n)&&(i.push(n),i.push([parseInt(t.metadata.widthOfGlyph(n),10)])),"0"==n)return o.join("");n=n.toString(16),o.push(r[4-n.length],n)}return o.join("")},r=function(e){var t,n,i,r,o,s,a;for(o="/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n /Registry (Adobe)\n /Ordering (UCS)\n /Supplement 0\n>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000><ffff>\nendcodespacerange",i=[],s=0,a=(n=Object.keys(e).sort((function(e,t){return e-t}))).length;s<a;s++)t=n[s],100<=i.length&&(o+="\n"+i.length+" beginbfchar\n"+i.join("\n")+"\nendbfchar",i=[]),r=("0000"+e[t].toString(16)).slice(-4),t=("0000"+(+t).toString(16)).slice(-4),i.push("<"+t+"><"+r+">");return i.length&&(o+="\n"+i.length+" beginbfchar\n"+i.join("\n")+"\nendbfchar\n"),o+"endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"};n.events.push(["putFont",function(t){!function(t,n,i,o){if(t.metadata instanceof e.API.TTFFont&&"Identity-H"===t.encoding){for(var s=t.metadata.Unicode.widths,a=t.metadata.subset.encode(t.metadata.glyIdsUsed,1),u="",l=0;l<a.length;l++)u+=String.fromCharCode(a[l]);var c=i();o({data:u,addLength1:!0}),n("endobj");var d=i();o({data:r(t.metadata.toUnicode),addLength1:!0}),n("endobj");var h=i();n("<<"),n("/Type /FontDescriptor"),n("/FontName /"+t.fontName),n("/FontFile2 "+c+" 0 R"),n("/FontBBox "+e.API.PDFObject.convert(t.metadata.bbox)),n("/Flags "+t.metadata.flags),n("/StemV "+t.metadata.stemV),n("/ItalicAngle "+t.metadata.italicAngle),n("/Ascent "+t.metadata.ascender),n("/Descent "+t.metadata.decender),n("/CapHeight "+t.metadata.capHeight),n(">>"),n("endobj");var f=i();n("<<"),n("/Type /Font"),n("/BaseFont /"+t.fontName),n("/FontDescriptor "+h+" 0 R"),n("/W "+e.API.PDFObject.convert(s)),n("/CIDToGIDMap /Identity"),n("/DW 1000"),n("/Subtype /CIDFontType2"),n("/CIDSystemInfo"),n("<<"),n("/Supplement 0"),n("/Registry (Adobe)"),n("/Ordering ("+t.encoding+")"),n(">>"),n(">>"),n("endobj"),t.objectNumber=i(),n("<<"),n("/Type /Font"),n("/Subtype /Type0"),n("/ToUnicode "+d+" 0 R"),n("/BaseFont /"+t.fontName),n("/Encoding /"+t.encoding),n("/DescendantFonts ["+f+" 0 R]"),n(">>"),n("endobj"),t.isAlreadyPutted=!0}}(t.font,t.out,t.newObject,t.putStream)}]),n.events.push(["putFont",function(t){!function(t,n,i,o){if(t.metadata instanceof e.API.TTFFont&&"WinAnsiEncoding"===t.encoding){t.metadata.Unicode.widths;for(var s=t.metadata.rawData,a="",u=0;u<s.length;u++)a+=String.fromCharCode(s[u]);var l=i();o({data:a,addLength1:!0}),n("endobj");var c=i();o({data:r(t.metadata.toUnicode),addLength1:!0}),n("endobj");var d=i();for(n("<<"),n("/Descent "+t.metadata.decender),n("/CapHeight "+t.metadata.capHeight),n("/StemV "+t.metadata.stemV),n("/Type /FontDescriptor"),n("/FontFile2 "+l+" 0 R"),n("/Flags 96"),n("/FontBBox "+e.API.PDFObject.convert(t.metadata.bbox)),n("/FontName /"+t.fontName),n("/ItalicAngle "+t.metadata.italicAngle),n("/Ascent "+t.metadata.ascender),n(">>"),n("endobj"),t.objectNumber=i(),u=0;u<t.metadata.hmtx.widths.length;u++)t.metadata.hmtx.widths[u]=parseInt(t.metadata.hmtx.widths[u]*(1e3/t.metadata.head.unitsPerEm));n("<</Subtype/TrueType/Type/Font/ToUnicode "+c+" 0 R/BaseFont/"+t.fontName+"/FontDescriptor "+d+" 0 R/Encoding/"+t.encoding+" /FirstChar 29 /LastChar 255 /Widths "+e.API.PDFObject.convert(t.metadata.hmtx.widths)+">>"),n("endobj"),t.isAlreadyPutted=!0}}(t.font,t.out,t.newObject,t.putStream)}]);var o=function(e){var t,n,r=e.text||"",o=e.x,s=e.y,a=e.options||{},u=e.mutex||{},l=u.pdfEscape,c=u.activeFontKey,d=u.fonts,h=(u.activeFontSize,""),f=0,p="",g=d[n=c].encoding;if("Identity-H"!==d[n].encoding)return{text:r,x:o,y:s,options:a,mutex:u};for(p=r,n=c,"[object Array]"===Object.prototype.toString.call(r)&&(p=r[0]),f=0;f<p.length;f+=1)d[n].metadata.hasOwnProperty("cmap")&&(t=d[n].metadata.cmap.unicode.codeMap[p[f].charCodeAt(0)]),t||p[f].charCodeAt(0)<256&&d[n].metadata.hasOwnProperty("Unicode")?h+=p[f]:h+="";var A="";return parseInt(n.slice(1))<14||"WinAnsiEncoding"===g?A=function(e){for(var t="",n=0;n<e.length;n++)t+=""+e.charCodeAt(n).toString(16);return t}(l(h,n)):"Identity-H"===g&&(A=i(h,d[n])),u.isHex=!0,{text:A,x:o,y:s,options:a,mutex:u}};n.events.push(["postProcessText",function(e){var t=e.text||"",n=e.x,i=e.y,r=e.options,s=e.mutex,a=(r.lang,[]),u={text:t,x:n,y:i,options:r,mutex:s};if("[object Array]"===Object.prototype.toString.call(t)){var l=0;for(l=0;l<t.length;l+=1)"[object Array]"===Object.prototype.toString.call(t[l])&&3===t[l].length?a.push([o(Object.assign({},u,{text:t[l][0]})).text,t[l][1],t[l][2]]):a.push(o(Object.assign({},u,{text:t[l]})).text);e.text=a}else e.text=o(Object.assign({},u,{text:t})).text}])}(pe,"undefined"!=typeof self&&self||"undefined"!=typeof i&&i||"undefined"!=typeof window&&window||Function("return this")()),he=pe.API,fe=function(e){return void 0!==e&&(void 0===e.vFS&&(e.vFS={}),!0)},he.existsFileInVFS=function(e){return!!fe(this.internal)&&void 0!==this.internal.vFS[e]},he.addFileToVFS=function(e,t){return fe(this.internal),this.internal.vFS[e]=t,this},he.getFileFromVFS=function(e){return fe(this.internal),void 0!==this.internal.vFS[e]?this.internal.vFS[e]:null},pe.API.addHTML=function(e,t,n,i,r){if("undefined"==typeof html2canvas&&"undefined"==typeof rasterizeHTML)throw new Error("You need either https://github.com/niklasvh/html2canvas or https://github.com/cburgmer/rasterizeHTML.js");"number"!=typeof t&&(i=t,r=n),"function"==typeof i&&(r=i,i=null),"function"!=typeof r&&(r=function(){});var o=this.internal,s=o.scaleFactor,a=o.pageSize.getWidth(),u=o.pageSize.getHeight();if((i=i||{}).onrendered=function(e){t=parseInt(t)||0,n=parseInt(n)||0;var o=i.dim||{},l=Object.assign({top:0,right:0,bottom:0,left:0,useFor:"content"},i.margin),c=o.h||Math.min(u,e.height/s),d=o.w||Math.min(a,e.width/s)-t,h=i.format||"JPEG",f=i.imageCompression||"SLOW";if(e.height>u-l.top-l.bottom&&i.pagesplit){var p=function(e,t,n,r,o){var s=document.createElement("canvas");s.height=o,s.width=r;var a=s.getContext("2d");return a.mozImageSmoothingEnabled=!1,a.webkitImageSmoothingEnabled=!1,a.msImageSmoothingEnabled=!1,a.imageSmoothingEnabled=!1,a.fillStyle=i.backgroundColor||"#ffffff",a.fillRect(0,0,r,o),a.drawImage(e,t,n,r,o,0,0,r,o),s},g=function(){for(var i,o,c=0,g=0,A={},m=!1;;){var v;if(g=0,A.top=0!==c?l.top:n,A.left=0!==c?l.left:t,m=(a-l.left-l.right)*s<e.width,"content"===l.useFor?0===c?(i=Math.min((a-l.left)*s,e.width),o=Math.min((u-l.top)*s,e.height-c)):(i=Math.min(a*s,e.width),o=Math.min(u*s,e.height-c),A.top=0):(i=Math.min((a-l.left-l.right)*s,e.width),o=Math.min((u-l.bottom-l.top)*s,e.height-c)),m)for(;;){"content"===l.useFor&&(0===g?i=Math.min((a-l.left)*s,e.width):(i=Math.min(a*s,e.width-g),A.left=0));var _=[v=p(e,g,c,i,o),A.left,A.top,v.width/s,v.height/s,h,null,f];if(this.addImage.apply(this,_),(g+=i)>=e.width)break;this.addPage()}else _=[v=p(e,0,c,i,o),A.left,A.top,v.width/s,v.height/s,h,null,f],this.addImage.apply(this,_);if((c+=o)>=e.height)break;this.addPage()}r(d,c,null,_)}.bind(this);if("CANVAS"===e.nodeName){var A=new Image;A.onload=g,A.src=e.toDataURL("image/png"),e=A}else g()}else{var m=Math.random().toString(35),v=[e,t,n,d,c,h,m,f];this.addImage.apply(this,v),r(d,c,m,v)}}.bind(this),"undefined"!=typeof html2canvas&&!i.rstz)return html2canvas(e,i);if("undefined"==typeof rasterizeHTML)return null;var l="drawDocument";return"string"==typeof e&&(l=/^http/.test(e)?"drawURL":"drawHTML"),i.width=i.width||a*s,rasterizeHTML[l](e,void 0,i).then((function(e){i.onrendered(e.image)}),(function(e){r(null,e)}))},function(e){var t,n,i,o,s,a,u,l,c,d,h,f,p,g,A,m,v,_,y,b;t=function(){return function(t){return e.prototype=t,new e};function e(){}}(),d=function(e){var t,n,i,r,o,s,a;for(n=0,i=e.length,t=void 0,s=r=!1;!r&&n!==i;)(t=e[n]=e[n].trimLeft())&&(r=!0),n++;for(n=i-1;i&&!s&&-1!==n;)(t=e[n]=e[n].trimRight())&&(s=!0),n--;for(o=/\s+$/g,a=!0,n=0;n!==i;)"\u2028"!=e[n]&&(t=e[n].replace(/\s+/g," "),a&&(t=t.trimLeft()),t&&(a=o.test(t)),e[n]=t),n++;return e},f=function(e){var t,n,r;for(t=void 0,n=(r=e.split(",")).shift();!t&&n;)t=i[n.trim().toLowerCase()],n=r.shift();return t},p=function(e){var t;return-1<(e="auto"===e?"0px":e).indexOf("em")&&!isNaN(Number(e.replace("em","")))&&(e=18.719*Number(e.replace("em",""))+"px"),-1<e.indexOf("pt")&&!isNaN(Number(e.replace("pt","")))&&(e=1.333*Number(e.replace("pt",""))+"px"),(t=g[e])?t:void 0!==(t={"xx-small":9,"x-small":11,small:13,medium:16,large:19,"x-large":23,"xx-large":28,auto:0}[e])||(t=parseFloat(e))?g[e]=t/16:(t=e.match(/([\d\.]+)(px)/),Array.isArray(t)&&3===t.length?g[e]=parseFloat(t[1])/16:g[e]=1)},c=function(e){var t,n,i,r,c;return c=e,r=document.defaultView&&document.defaultView.getComputedStyle?document.defaultView.getComputedStyle(c,null):c.currentStyle?c.currentStyle:c.style,n=void 0,(t={})["font-family"]=f((i=function(e){return e=e.replace(/-\D/g,(function(e){return e.charAt(1).toUpperCase()})),r[e]})("font-family"))||"times",t["font-style"]=o[i("font-style")]||"normal",t["text-align"]=s[i("text-align")]||"left","bold"===(n=a[i("font-weight")]||"normal")&&("normal"===t["font-style"]?t["font-style"]=n:t["font-style"]=n+t["font-style"]),t["font-size"]=p(i("font-size"))||1,t["line-height"]=p(i("line-height"))||1,t.display="inline"===i("display")?"inline":"block",n="block"===t.display,t["margin-top"]=n&&p(i("margin-top"))||0,t["margin-bottom"]=n&&p(i("margin-bottom"))||0,t["padding-top"]=n&&p(i("padding-top"))||0,t["padding-bottom"]=n&&p(i("padding-bottom"))||0,t["margin-left"]=n&&p(i("margin-left"))||0,t["margin-right"]=n&&p(i("margin-right"))||0,t["padding-left"]=n&&p(i("padding-left"))||0,t["padding-right"]=n&&p(i("padding-right"))||0,t["page-break-before"]=i("page-break-before")||"auto",t.float=u[i("cssFloat")]||"none",t.clear=l[i("clear")]||"none",t.color=i("color"),t},A=function(e,t,n){var i,r,o,s,a;if(o=!1,s=r=void 0,i=n["#"+e.id])if("function"==typeof i)o=i(e,t);else for(r=0,s=i.length;!o&&r!==s;)o=i[r](e,t),r++;if(i=n[e.nodeName],!o&&i)if("function"==typeof i)o=i(e,t);else for(r=0,s=i.length;!o&&r!==s;)o=i[r](e,t),r++;for(a="string"==typeof e.className?e.className.split(" "):[],r=0;r<a.length;r++)if(i=n["."+a[r]],!o&&i)if("function"==typeof i)o=i(e,t);else for(r=0,s=i.length;!o&&r!==s;)o=i[r](e,t),r++;return o},b=function(e,t){var n,i,r,o,s,a,u,l,c;for(n=[],i=[],r=0,c=e.rows[0].cells.length,u=e.clientWidth;r<c;)l=e.rows[0].cells[r],i[r]={name:l.textContent.toLowerCase().replace(/\s+/g,""),prompt:l.textContent.replace(/\r?\n/g,""),width:l.clientWidth/u*t.pdf.internal.pageSize.getWidth()},r++;for(r=1;r<e.rows.length;){for(a=e.rows[r],s={},o=0;o<a.cells.length;)s[i[o].name]=a.cells[o].textContent.replace(/\r?\n/g,""),o++;n.push(s),r++}return{rows:n,headers:i}};var w={SCRIPT:1,STYLE:1,NOSCRIPT:1,OBJECT:1,EMBED:1,SELECT:1},C=1;n=function(e,i,o){var s,a,u,l,d,h,f,p;for(a=e.childNodes,s=void 0,(d="block"===(u=c(e)).display)&&(i.setBlockBoundary(),i.setBlockStyle(u)),l=0,h=a.length;l<h;){if("object"===r(s=a[l])){if(i.executeWatchFunctions(s),1===s.nodeType&&"HEADER"===s.nodeName){var g=s,v=i.pdf.margins_doc.top;i.pdf.internal.events.subscribe("addPage",(function(e){i.y=v,n(g,i,o),i.pdf.margins_doc.top=i.y+10,i.y+=10}),!1)}if(8===s.nodeType&&"#comment"===s.nodeName)~s.textContent.indexOf("ADD_PAGE")&&(i.pdf.addPage(),i.y=i.pdf.margins_doc.top);else if(1!==s.nodeType||w[s.nodeName])if(3===s.nodeType){var _=s.nodeValue;if(s.nodeValue&&"LI"===s.parentNode.nodeName)if("OL"===s.parentNode.parentNode.nodeName)_=C+++". "+_;else{var y=u["font-size"],S=(3-.75*y)*i.pdf.internal.scaleFactor,N=.75*y*i.pdf.internal.scaleFactor,L=1.74*y/i.pdf.internal.scaleFactor;p=function(e,t){this.pdf.circle(e+S,t+N,L,"FD")}}16&s.ownerDocument.body.compareDocumentPosition(s)&&i.addText(_,u)}else"string"==typeof s&&i.addText(s,u);else{var E;if("IMG"===s.nodeName){var x=s.getAttribute("src");E=m[i.pdf.sHashCode(x)||x]}if(E){i.pdf.internal.pageSize.getHeight()-i.pdf.margins_doc.bottom<i.y+s.height&&i.y>i.pdf.margins_doc.top&&(i.pdf.addPage(),i.y=i.pdf.margins_doc.top,i.executeWatchFunctions(s));var O=c(s),B=i.x,k=12/i.pdf.internal.scaleFactor,D=(O["margin-left"]+O["padding-left"])*k,I=(O["margin-right"]+O["padding-right"])*k,M=(O["margin-top"]+O["padding-top"])*k,F=(O["margin-bottom"]+O["padding-bottom"])*k;void 0!==O.float&&"right"===O.float?B+=i.settings.width-s.width-I:B+=D,i.pdf.addImage(E,B,i.y+M,s.width,s.height),E=void 0,"right"===O.float||"left"===O.float?(i.watchFunctions.push(function(e,t,n,r){return i.y>=t?(i.x+=e,i.settings.width+=n,!0):!!(r&&1===r.nodeType&&!w[r.nodeName]&&i.x+r.width>i.pdf.margins_doc.left+i.pdf.margins_doc.width)&&(i.x+=e,i.y=t,i.settings.width+=n,!0)}.bind(this,"left"===O.float?-s.width-D-I:0,i.y+s.height+M+F,s.width)),i.watchFunctions.push(function(e,t,n){return!(i.y<e&&t===i.pdf.internal.getNumberOfPages())||1===n.nodeType&&"both"===c(n).clear&&(i.y=e,!0)}.bind(this,i.y+s.height,i.pdf.internal.getNumberOfPages())),i.settings.width-=s.width+D+I,"left"===O.float&&(i.x+=s.width+D+I)):i.y+=s.height+M+F}else if("TABLE"===s.nodeName)f=b(s,i),i.y+=10,i.pdf.table(i.x,i.y,f.rows,f.headers,{autoSize:!1,printHeaders:o.printHeaders,margins:i.pdf.margins_doc,css:c(s)}),i.y=i.pdf.lastCellPos.y+i.pdf.lastCellPos.h+20;else if("OL"===s.nodeName||"UL"===s.nodeName)C=1,A(s,i,o)||n(s,i,o),i.y+=10;else if("LI"===s.nodeName){var T=i.x;i.x+=20/i.pdf.internal.scaleFactor,i.y+=3,A(s,i,o)||n(s,i,o),i.x=T}else"BR"===s.nodeName?(i.y+=u["font-size"]*i.pdf.internal.scaleFactor,i.addText("\u2028",t(u))):A(s,i,o)||n(s,i,o)}}l++}if(o.outY=i.y,d)return i.setBlockBoundary(p)},m={},v=function(e,t,n,i){var r,o=e.getElementsByTagName("img"),s=o.length,a=0;function u(){t.pdf.internal.events.publish("imagesLoaded"),i(r)}function l(e,n,i){if(e){var o=new Image;r=++a,o.crossOrigin="",o.onerror=o.onload=function(){if(o.complete&&(0===o.src.indexOf("data:image/")&&(o.width=n||o.width||0,o.height=i||o.height||0),o.width+o.height)){var r=t.pdf.sHashCode(e)||e;m[r]=m[r]||o}--a||u()},o.src=e}}for(;s--;)l(o[s].getAttribute("src"),o[s].width,o[s].height);return a||u()},_=function(e,t,i){var r=e.getElementsByTagName("footer");if(0<r.length){r=r[0];var o=t.pdf.internal.write,s=t.y;t.pdf.internal.write=function(){},n(r,t,i);var a=Math.ceil(t.y-s)+5;t.y=s,t.pdf.internal.write=o,t.pdf.margins_doc.bottom+=a;for(var u=function(e){var o=void 0!==e?e.pageNumber:1,s=t.y;t.y=t.pdf.internal.pageSize.getHeight()-t.pdf.margins_doc.bottom,t.pdf.margins_doc.bottom-=a;for(var u=r.getElementsByTagName("span"),l=0;l<u.length;++l)-1<(" "+u[l].className+" ").replace(/[\n\t]/g," ").indexOf(" pageCounter ")&&(u[l].innerHTML=o),-1<(" "+u[l].className+" ").replace(/[\n\t]/g," ").indexOf(" totalPages ")&&(u[l].innerHTML="###jsPDFVarTotalPages###");n(r,t,i),t.pdf.margins_doc.bottom+=a,t.y=s},l=r.getElementsByTagName("span"),c=0;c<l.length;++c)-1<(" "+l[c].className+" ").replace(/[\n\t]/g," ").indexOf(" totalPages ")&&t.pdf.internal.events.subscribe("htmlRenderingFinished",t.pdf.putTotalPages.bind(t.pdf,"###jsPDFVarTotalPages###"),!0);t.pdf.internal.events.subscribe("addPage",u,!1),u(),w.FOOTER=1}},y=function(e,t,i,r,o,s){if(!t)return!1;var a,u,l,c;"string"==typeof t||t.parentNode||(t=""+t.innerHTML),"string"==typeof t&&(a=t.replace(/<\/?script[^>]*?>/gi,""),c="jsPDFhtmlText"+Date.now().toString()+(1e3*Math.random()).toFixed(0),(l=document.createElement("div")).style.cssText="position: absolute !important;clip: rect(1px 1px 1px 1px); /* IE6, IE7 */clip: rect(1px, 1px, 1px, 1px);padding:0 !important;border:0 !important;height: 1px !important;width: 1px !important; top:auto;left:-100px;overflow: hidden;",l.innerHTML='<iframe style="height:1px;width:1px" name="'+c+'" />',document.body.appendChild(l),(u=window.frames[c]).document.open(),u.document.writeln(a),u.document.close(),t=u.document.body);var d,f=new h(e,i,r,o);return v.call(this,t,f,o.elementHandlers,(function(e){_(t,f,o.elementHandlers),n(t,f,o.elementHandlers),f.pdf.internal.events.publish("htmlRenderingFinished"),d=f.dispose(),"function"==typeof s?s(d):e&&console.error("jsPDF Warning: rendering issues? provide a callback to fromHTML!")})),d||{x:f.x,y:f.y}},(h=function(e,t,n,i){return this.pdf=e,this.x=t,this.y=n,this.settings=i,this.watchFunctions=[],this.init(),this}).prototype.init=function(){return this.paragraph={text:[],style:[]},this.pdf.internal.write("q")},h.prototype.dispose=function(){return this.pdf.internal.write("Q"),{x:this.x,y:this.y,ready:!0}},h.prototype.executeWatchFunctions=function(e){var t=!1,n=[];if(0<this.watchFunctions.length){for(var i=0;i<this.watchFunctions.length;++i)!0===this.watchFunctions[i](e)?t=!0:n.push(this.watchFunctions[i]);this.watchFunctions=n}return t},h.prototype.splitFragmentsIntoLines=function(e,n){var i,r,o,s,a,u,l,c,d,h,f,p,g,A;for(h=this.pdf.internal.scaleFactor,s={},u=l=c=A=a=o=d=r=void 0,p=[f=[]],i=0,g=this.settings.width;e.length;)if(a=e.shift(),A=n.shift(),a)if((o=s[(r=A["font-family"])+(d=A["font-style"])])||(o=this.pdf.internal.getFont(r,d).metadata.Unicode,s[r+d]=o),c={widths:o.widths,kerning:o.kerning,fontSize:12*A["font-size"],textIndent:i},l=this.pdf.getStringUnitWidth(a,c)*c.fontSize/h,"\u2028"==a)f=[],p.push(f);else if(g<i+l){for(u=this.pdf.splitTextToSize(a,g,c),f.push([u.shift(),A]);u.length;)f=[[u.shift(),A]],p.push(f);i=this.pdf.getStringUnitWidth(f[0][0],c)*c.fontSize/h}else f.push([a,A]),i+=l;if(void 0!==A["text-align"]&&("center"===A["text-align"]||"right"===A["text-align"]||"justify"===A["text-align"]))for(var m=0;m<p.length;++m){var v=this.pdf.getStringUnitWidth(p[m][0][0],c)*c.fontSize/h;0<m&&(p[m][0][1]=t(p[m][0][1]));var _=g-v;if("right"===A["text-align"])p[m][0][1]["margin-left"]=_;else if("center"===A["text-align"])p[m][0][1]["margin-left"]=_/2;else if("justify"===A["text-align"]){var y=p[m][0][0].split(" ").length-1;p[m][0][1]["word-spacing"]=_/y,m===p.length-1&&(p[m][0][1]["word-spacing"]=0)}}return p},h.prototype.RenderTextFragment=function(e,t){var n,i;i=0,this.pdf.internal.pageSize.getHeight()-this.pdf.margins_doc.bottom<this.y+this.pdf.internal.getFontSize()&&(this.pdf.internal.write("ET","Q"),this.pdf.addPage(),this.y=this.pdf.margins_doc.top,this.pdf.internal.write("q","BT",this.getPdfColor(t.color),this.pdf.internal.getCoordinateString(this.x),this.pdf.internal.getVerticalCoordinateString(this.y),"Td"),i=Math.max(i,t["line-height"],t["font-size"]),this.pdf.internal.write(0,(-12*i).toFixed(2),"Td")),n=this.pdf.internal.getFont(t["font-family"],t["font-style"]);var r=this.getPdfColor(t.color);r!==this.lastTextColor&&(this.pdf.internal.write(r),this.lastTextColor=r),void 0!==t["word-spacing"]&&0<t["word-spacing"]&&this.pdf.internal.write(t["word-spacing"].toFixed(2),"Tw"),this.pdf.internal.write("/"+n.id,(12*t["font-size"]).toFixed(2),"Tf","("+this.pdf.internal.pdfEscape(e)+") Tj"),void 0!==t["word-spacing"]&&this.pdf.internal.write(0,"Tw")},h.prototype.getPdfColor=function(e){var t,n,i,r=/rgb\s*\(\s*(\d+),\s*(\d+),\s*(\d+\s*)\)/.exec(e);if(null!=r)t=parseInt(r[1]),n=parseInt(r[2]),i=parseInt(r[3]);else{if("string"==typeof e&&"#"!=e.charAt(0)){var o=new RGBColor(e);e=o.ok?o.toHex():"#000000"}t=e.substring(1,3),t=parseInt(t,16),n=e.substring(3,5),n=parseInt(n,16),i=e.substring(5,7),i=parseInt(i,16)}if("string"==typeof t&&/^#[0-9A-Fa-f]{6}$/.test(t)){var s=parseInt(t.substr(1),16);t=s>>16&255,n=s>>8&255,i=255&s}var a=this.f3;return 0===t&&0===n&&0===i||void 0===n?a(t/255)+" g":[a(t/255),a(n/255),a(i/255),"rg"].join(" ")},h.prototype.f3=function(e){return e.toFixed(3)},h.prototype.renderParagraph=function(e){var t,n,i,r,o,s,a,u,l,c,h,f,p;if(i=d(this.paragraph.text),f=this.paragraph.style,t=this.paragraph.blockstyle,this.paragraph.priorblockstyle,this.paragraph={text:[],style:[],blockstyle:{},priorblockstyle:t},i.join("").trim()){a=this.splitFragmentsIntoLines(i,f),u=s=void 0,n=12/this.pdf.internal.scaleFactor,this.priorMarginBottom=this.priorMarginBottom||0,h=(Math.max((t["margin-top"]||0)-this.priorMarginBottom,0)+(t["padding-top"]||0))*n,c=((t["margin-bottom"]||0)+(t["padding-bottom"]||0))*n,this.priorMarginBottom=t["margin-bottom"]||0,"always"===t["page-break-before"]&&(this.pdf.addPage(),this.y=0,h=((t["margin-top"]||0)+(t["padding-top"]||0))*n),l=this.pdf.internal.write,o=r=void 0,this.y+=h,l("q","BT 0 g",this.pdf.internal.getCoordinateString(this.x),this.pdf.internal.getVerticalCoordinateString(this.y),"Td");for(var g=0;a.length;){for(r=u=0,o=(s=a.shift()).length;r!==o;)s[r][0].trim()&&(u=Math.max(u,s[r][1]["line-height"],s[r][1]["font-size"]),p=7*s[r][1]["font-size"]),r++;var A=0,m=0;for(void 0!==s[0][1]["margin-left"]&&0<s[0][1]["margin-left"]&&(A=(m=this.pdf.internal.getCoordinateString(s[0][1]["margin-left"]))-g,g=m),l(A+Math.max(t["margin-left"]||0,0)*n,(-12*u).toFixed(2),"Td"),r=0,o=s.length;r!==o;)s[r][0]&&this.RenderTextFragment(s[r][0],s[r][1]),r++;if(this.y+=u*n,this.executeWatchFunctions(s[0][1])&&0<a.length){var v=[],_=[];a.forEach((function(e){for(var t=0,n=e.length;t!==n;)e[t][0]&&(v.push(e[t][0]+" "),_.push(e[t][1])),++t})),a=this.splitFragmentsIntoLines(d(v),_),l("ET","Q"),l("q","BT 0 g",this.pdf.internal.getCoordinateString(this.x),this.pdf.internal.getVerticalCoordinateString(this.y),"Td")}}return e&&"function"==typeof e&&e.call(this,this.x-9,this.y-p/2),l("ET","Q"),this.y+=c}},h.prototype.setBlockBoundary=function(e){return this.renderParagraph(e)},h.prototype.setBlockStyle=function(e){return this.paragraph.blockstyle=e},h.prototype.addText=function(e,t){return this.paragraph.text.push(e),this.paragraph.style.push(t)},i={helvetica:"helvetica","sans-serif":"helvetica","times new roman":"times",serif:"times",times:"times",monospace:"courier",courier:"courier"},a={100:"normal",200:"normal",300:"normal",400:"normal",500:"bold",600:"bold",700:"bold",800:"bold",900:"bold",normal:"normal",bold:"bold",bolder:"bold",lighter:"normal"},o={normal:"normal",italic:"italic",oblique:"italic"},s={left:"left",right:"right",center:"center",justify:"justify"},u={none:"none",right:"right",left:"left"},l={none:"none",both:"both"},g={normal:1},e.fromHTML=function(e,t,n,i,r,o){return this.margins_doc=o||{top:0,bottom:0},i||(i={}),i.elementHandlers||(i.elementHandlers={}),y(this,e,isNaN(t)?4:t,isNaN(n)?4:n,i,r)}}(pe.API),pe.API,("undefined"!=typeof window&&window||"undefined"!=typeof i&&i).html2pdf=function(e,t,n){var i=t.canvas;if(i){var r,o;if((i.pdf=t).annotations={_nameMap:[],createAnnotation:function(e,n){var i,r=t.context2d._wrapX(n.left),o=t.context2d._wrapY(n.top),s=(t.context2d._page(n.top),e.indexOf("#"));i=0<=s?{name:e.substring(s+1)}:{url:e},t.link(r,o,n.right-n.left,n.bottom-n.top,i)},setName:function(e,n){var i=t.context2d._wrapX(n.left),r=t.context2d._wrapY(n.top),o=t.context2d._page(n.top);this._nameMap[e]={page:o,x:i,y:r}}},i.annotations=t.annotations,t.context2d._pageBreakAt=function(e){this.pageBreaks.push(e)},t.context2d._gotoPage=function(e){for(;t.internal.getNumberOfPages()<e;)t.addPage();t.setPage(e)},"string"==typeof e){e=e.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,"");var s,a,u=document.createElement("iframe");document.body.appendChild(u),null!=(s=u.contentDocument)&&null!=s||(s=u.contentWindow.document),s.open(),s.write(e),s.close(),r=s.body,a=s.body||{},e=s.documentElement||{},o=Math.max(a.scrollHeight,a.offsetHeight,e.clientHeight,e.scrollHeight,e.offsetHeight)}else a=(r=e).body||{},o=Math.max(a.scrollHeight,a.offsetHeight,e.clientHeight,e.scrollHeight,e.offsetHeight);var l={async:!0,allowTaint:!0,backgroundColor:"#ffffff",canvas:i,imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1,windowHeight:o=t.internal.pageSize.getHeight(),scrollY:o};t.context2d.pageWrapYEnabled=!0,t.context2d.pageWrapY=t.internal.pageSize.getHeight(),html2canvas(r,l).then((function(e){n&&(u&&u.parentElement.removeChild(u),n(t))}))}else alert("jsPDF canvas plugin not installed")},window.tmp=html2pdf,function(e){var t=e.BlobBuilder||e.WebKitBlobBuilder||e.MSBlobBuilder||e.MozBlobBuilder;e.URL=e.URL||e.webkitURL||function(e,t){return(t=document.createElement("a")).href=e,t};var n=e.Blob,i=URL.createObjectURL,r=URL.revokeObjectURL,o=e.Symbol&&e.Symbol.toStringTag,s=!1,a=!1,u=!!e.ArrayBuffer,l=t&&t.prototype.append&&t.prototype.getBlob;try{s=2===new Blob(["\xe4"]).size,a=2===new Blob([new Uint8Array([1,2])]).size}catch(s){}function c(e){return e.map((function(e){if(e.buffer instanceof ArrayBuffer){var t=e.buffer;if(e.byteLength!==t.byteLength){var n=new Uint8Array(e.byteLength);n.set(new Uint8Array(t,e.byteOffset,e.byteLength)),t=n.buffer}return t}return e}))}function d(e,n){n=n||{};var i=new t;return c(e).forEach((function(e){i.append(e)})),n.type?i.getBlob(n.type):i.getBlob()}function h(e,t){return new n(c(e),t||{})}if(e.Blob&&(d.prototype=Blob.prototype,h.prototype=Blob.prototype),o)try{File.prototype[o]="File",Blob.prototype[o]="Blob",FileReader.prototype[o]="FileReader"}catch(s){}function f(){var t=!!e.ActiveXObject||"-ms-scroll-limit"in document.documentElement.style&&"-ms-ime-align"in document.documentElement.style,n=e.XMLHttpRequest&&e.XMLHttpRequest.prototype.send;t&&n&&(XMLHttpRequest.prototype.send=function(e){e instanceof Blob&&this.setRequestHeader("Content-Type",e.type),n.call(this,e)});try{new File([],"")}catch(t){try{var i=new Function('class File extends Blob {constructor(chunks, name, opts) {opts = opts || {};super(chunks, opts || {});this.name = name;this.lastModifiedDate = opts.lastModified ? new Date(opts.lastModified) : new Date;this.lastModified = +this.lastModifiedDate;}};return new File([], ""), File')();e.File=i}catch(t){i=function(e,t,n){var i=new Blob(e,n),r=n&&void 0!==n.lastModified?new Date(n.lastModified):new Date;return i.name=t,i.lastModifiedDate=r,i.lastModified=+r,i.toString=function(){return"[object File]"},o&&(i[o]="File"),i},e.File=i}}}s?(f(),e.Blob=a?e.Blob:h):l?(f(),e.Blob=d):function(){function t(e){for(var t=[],n=0;n<e.length;n++){var i=e.charCodeAt(n);i<128?t.push(i):i<2048?t.push(192|i>>6,128|63&i):i<55296||57344<=i?t.push(224|i>>12,128|i>>6&63,128|63&i):(n++,i=65536+((1023&i)<<10|1023&e.charCodeAt(n)),t.push(240|i>>18,128|i>>12&63,128|i>>6&63,128|63&i))}return t}function n(e){var t,n,i,r,o,s;for(t="",i=e.length,n=0;n<i;)switch((r=e[n++])>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:t+=String.fromCharCode(r);break;case 12:case 13:o=e[n++],t+=String.fromCharCode((31&r)<<6|63&o);break;case 14:o=e[n++],s=e[n++],t+=String.fromCharCode((15&r)<<12|(63&o)<<6|(63&s)<<0)}return t}function o(e){for(var t=new Array(e.byteLength),n=new Uint8Array(e),i=t.length;i--;)t[i]=n[i];return t}function s(e){for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=[],i=0;i<e.length;i+=3){var r=e[i],o=i+1<e.length,s=o?e[i+1]:0,a=i+2<e.length,u=a?e[i+2]:0,l=r>>2,c=(3&r)<<4|s>>4,d=(15&s)<<2|u>>6,h=63&u;a||(h=64,o||(d=64)),n.push(t[l],t[c],t[d],t[h])}return n.join("")}var a=Object.create||function(e){function t(){}return t.prototype=e,new t};if(u)var l=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(e){return e&&-1<l.indexOf(Object.prototype.toString.call(e))};function d(e,n){for(var i=0,r=(e=e||[]).length;i<r;i++){var s=e[i];s instanceof d?e[i]=s._buffer:"string"==typeof s?e[i]=t(s):u&&(ArrayBuffer.prototype.isPrototypeOf(s)||c(s))?e[i]=o(s):u&&(a=s)&&DataView.prototype.isPrototypeOf(a)?e[i]=o(s.buffer):e[i]=t(String(s))}var a;this._buffer=[].concat.apply([],e),this.size=this._buffer.length,this.type=n&&n.type||""}function h(e,t,n){var i=d.call(this,e,n=n||{})||this;return i.name=t,i.lastModifiedDate=n.lastModified?new Date(n.lastModified):new Date,i.lastModified=+i.lastModifiedDate,i}if(d.prototype.slice=function(e,t,n){return new d([this._buffer.slice(e||0,t||this._buffer.length)],{type:n})},d.prototype.toString=function(){return"[object Blob]"},(h.prototype=a(d.prototype)).constructor=h,Object.setPrototypeOf)Object.setPrototypeOf(h,d);else try{h.__proto__=d}catch(a){}function f(){if(!(this instanceof f))throw new TypeError("Failed to construct 'FileReader': Please use the 'new' operator, this DOM object constructor cannot be called as a function.");var e=document.createDocumentFragment();this.addEventListener=e.addEventListener,this.dispatchEvent=function(t){var n=this["on"+t.type];"function"==typeof n&&n(t),e.dispatchEvent(t)},this.removeEventListener=e.removeEventListener}function p(e,t,n){if(!(t instanceof d))throw new TypeError("Failed to execute '"+n+"' on 'FileReader': parameter 1 is not of type 'Blob'.");e.result="",setTimeout((function(){this.readyState=f.LOADING,e.dispatchEvent(new Event("load")),e.dispatchEvent(new Event("loadend"))}))}h.prototype.toString=function(){return"[object File]"},f.EMPTY=0,f.LOADING=1,f.DONE=2,f.prototype.error=null,f.prototype.onabort=null,f.prototype.onerror=null,f.prototype.onload=null,f.prototype.onloadend=null,f.prototype.onloadstart=null,f.prototype.onprogress=null,f.prototype.readAsDataURL=function(e){p(this,e,"readAsDataURL"),this.result="data:"+e.type+";base64,"+s(e._buffer)},f.prototype.readAsText=function(e){p(this,e,"readAsText"),this.result=n(e._buffer)},f.prototype.readAsArrayBuffer=function(e){p(this,e,"readAsText"),this.result=e._buffer.slice()},f.prototype.abort=function(){},URL.createObjectURL=function(e){return e instanceof d?"data:"+e.type+";base64,"+s(e._buffer):i.call(URL,e)},URL.revokeObjectURL=function(e){r&&r.call(URL,e)};var g=e.XMLHttpRequest&&e.XMLHttpRequest.prototype.send;g&&(XMLHttpRequest.prototype.send=function(e){e instanceof d?(this.setRequestHeader("Content-Type",e.type),g.call(this,n(e._buffer))):g.call(this,e)}),e.FileReader=f,e.File=h,e.Blob=d}()}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||"undefined"!=typeof i&&i||Function('return typeof this === "object" && this.content')()||Function("return this")());var ge,Ae,me,ve,_e,ye,be,we,Ce,Se,Ne,Le,Ee,xe,Oe,Be=Be||function(e){if(!(void 0===e||"undefined"!=typeof navigator&&/MSIE [1-9]\./.test(navigator.userAgent))){var t=e.document,n=function(){return e.URL||e.webkitURL||e},i=t.createElementNS("http://www.w3.org/1999/xhtml","a"),r="download"in i,o=/constructor/i.test(e.HTMLElement)||e.safari,s=/CriOS\/[\d]+/.test(navigator.userAgent),a=e.setImmediate||e.setTimeout,u=function(e){a((function(){throw e}),0)},l=function(e){setTimeout((function(){"string"==typeof e?n().revokeObjectURL(e):e.remove()}),4e4)},c=function(e){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e},d=function(t,d,h){h||(t=c(t));var f,p=this,g="application/octet-stream"===t.type,A=function(){!function(e,t,n){for(var i=(t=[].concat(t)).length;i--;){var r=e["on"+t[i]];if("function"==typeof r)try{r.call(e,n||e)}catch(e){u(e)}}}(p,"writestart progress write writeend".split(" "))};if(p.readyState=p.INIT,r)return f=n().createObjectURL(t),void a((function(){var e,t;i.href=f,i.download=d,e=i,t=new MouseEvent("click"),e.dispatchEvent(t),A(),l(f),p.readyState=p.DONE}),0);!function(){if((s||g&&o)&&e.FileReader){var i=new FileReader;return i.onloadend=function(){var t=s?i.result:i.result.replace(/^data:[^;]*;/,"data:attachment/file;");e.open(t,"_blank")||(e.location.href=t),t=void 0,p.readyState=p.DONE,A()},i.readAsDataURL(t),p.readyState=p.INIT}f||(f=n().createObjectURL(t)),g?e.location.href=f:e.open(f,"_blank")||(e.location.href=f),p.readyState=p.DONE,A(),l(f)}()},h=d.prototype;return"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(e,t,n){return t=t||e.name||"download",n||(e=c(e)),navigator.msSaveOrOpenBlob(e,t)}:(h.abort=function(){},h.readyState=h.INIT=0,h.WRITING=1,h.DONE=2,h.error=h.onwritestart=h.onprogress=h.onwrite=h.onabort=h.onerror=h.onwriteend=null,function(e,t,n){return new d(e,t||e.name||"download",n)})}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||void 0);function ke(e){var t=0;if(71!==e[t++]||73!==e[t++]||70!==e[t++]||56!==e[t++]||56!=(e[t++]+1&253)||97!==e[t++])throw"Invalid GIF 87a/89a header.";var n=e[t++]|e[t++]<<8,i=e[t++]|e[t++]<<8,r=e[t++],o=r>>7,s=1<<1+(7&r);e[t++],e[t++];var a=null;o&&(a=t,t+=3*s);var u=!0,l=[],c=0,d=null,h=0,f=null;for(this.width=n,this.height=i;u&&t<e.length;)switch(e[t++]){case 33:switch(e[t++]){case 255:if(11!==e[t]||78==e[t+1]&&69==e[t+2]&&84==e[t+3]&&83==e[t+4]&&67==e[t+5]&&65==e[t+6]&&80==e[t+7]&&69==e[t+8]&&50==e[t+9]&&46==e[t+10]&&48==e[t+11]&&3==e[t+12]&&1==e[t+13]&&0==e[t+16])t+=14,f=e[t++]|e[t++]<<8,t++;else for(t+=12;;){if(0===(S=e[t++]))break;t+=S}break;case 249:if(4!==e[t++]||0!==e[t+4])throw"Invalid graphics extension block.";var p=e[t++];c=e[t++]|e[t++]<<8,d=e[t++],0==(1&p)&&(d=null),h=p>>2&7,t++;break;case 254:for(;;){if(0===(S=e[t++]))break;t+=S}break;default:throw"Unknown graphic control label: 0x"+e[t-1].toString(16)}break;case 44:var g=e[t++]|e[t++]<<8,A=e[t++]|e[t++]<<8,m=e[t++]|e[t++]<<8,v=e[t++]|e[t++]<<8,_=e[t++],y=_>>6&1,b=a,w=!1;_>>7&&(w=!0,b=t,t+=3*(1<<1+(7&_)));var C=t;for(t++;;){var S;if(0===(S=e[t++]))break;t+=S}l.push({x:g,y:A,width:m,height:v,has_local_palette:w,palette_offset:b,data_offset:C,data_length:t-C,transparent_index:d,interlaced:!!y,delay:c,disposal:h});break;case 59:u=!1;break;default:throw"Unknown gif block: 0x"+e[t-1].toString(16)}this.numFrames=function(){return l.length},this.loopCount=function(){return f},this.frameInfo=function(e){if(e<0||e>=l.length)throw"Frame index out of range.";return l[e]},this.decodeAndBlitFrameBGRA=function(t,i){var r=this.frameInfo(t),o=r.width*r.height,s=new Uint8Array(o);De(e,r.data_offset,s,o);var a=r.palette_offset,u=r.transparent_index;null===u&&(u=256);var l=r.width,c=n-l,d=l,h=4*(r.y*n+r.x),f=4*((r.y+r.height)*n+r.x),p=h,g=4*c;!0===r.interlaced&&(g+=4*(l+c)*7);for(var A=8,m=0,v=s.length;m<v;++m){var _=s[m];if(0===d&&(d=l,f<=(p+=g)&&(g=c+4*(l+c)*(A-1),p=h+(l+c)*(A<<1),A>>=1)),_===u)p+=4;else{var y=e[a+3*_],b=e[a+3*_+1],w=e[a+3*_+2];i[p++]=w,i[p++]=b,i[p++]=y,i[p++]=255}--d}},this.decodeAndBlitFrameRGBA=function(t,i){var r=this.frameInfo(t),o=r.width*r.height,s=new Uint8Array(o);De(e,r.data_offset,s,o);var a=r.palette_offset,u=r.transparent_index;null===u&&(u=256);var l=r.width,c=n-l,d=l,h=4*(r.y*n+r.x),f=4*((r.y+r.height)*n+r.x),p=h,g=4*c;!0===r.interlaced&&(g+=4*(l+c)*7);for(var A=8,m=0,v=s.length;m<v;++m){var _=s[m];if(0===d&&(d=l,f<=(p+=g)&&(g=c+4*(l+c)*(A-1),p=h+(l+c)*(A<<1),A>>=1)),_===u)p+=4;else{var y=e[a+3*_],b=e[a+3*_+1],w=e[a+3*_+2];i[p++]=y,i[p++]=b,i[p++]=w,i[p++]=255}--d}}}function De(e,t,n,i){for(var r=e[t++],o=1<<r,s=o+1,a=s+1,u=r+1,l=(1<<u)-1,c=0,d=0,h=0,f=e[t++],p=new Int32Array(4096),g=null;;){for(;c<16&&0!==f;)d|=e[t++]<<c,c+=8,1===f?f=e[t++]:--f;if(c<u)break;var A=d&l;if(d>>=u,c-=u,A!==o){if(A===s)break;for(var m=A<a?A:g,v=0,_=m;o<_;)_=p[_]>>8,++v;var y=_;if(i<h+v+(m!==A?1:0))return void console.log("Warning, gif stream longer than expected.");n[h++]=y;var b=h+=v;for(m!==A&&(n[h++]=y),_=m;v--;)_=p[_],n[--b]=255&_,_>>=8;null!==g&&a<4096&&(p[a++]=g<<8|y,l+1<=a&&u<12&&(++u,l=l<<1|1)),g=A}else a=s+1,l=(1<<(u=r+1))-1,g=null}return h!==i&&console.log("Warning, gif stream shorter than expected."),n}try{t.GifWriter=function(e,t,n,i){var r=0,o=void 0===(i=void 0===i?{}:i).loop?null:i.loop,s=void 0===i.palette?null:i.palette;if(t<=0||n<=0||65535<t||65535<n)throw"Width/Height invalid.";function a(e){var t=e.length;if(t<2||256<t||t&t-1)throw"Invalid code/color length, must be power of 2 and 2 .. 256.";return t}e[r++]=71,e[r++]=73,e[r++]=70,e[r++]=56,e[r++]=57,e[r++]=97;var u=0,l=0;if(null!==s){for(var c=a(s);c>>=1;)++u;if(c=1<<u,--u,void 0!==i.background){if(c<=(l=i.background))throw"Background index out of range.";if(0===l)throw"Background index explicitly passed as 0."}}if(e[r++]=255&t,e[r++]=t>>8&255,e[r++]=255&n,e[r++]=n>>8&255,e[r++]=(null!==s?128:0)|u,e[r++]=l,e[r++]=0,null!==s)for(var d=0,h=s.length;d<h;++d){var f=s[d];e[r++]=f>>16&255,e[r++]=f>>8&255,e[r++]=255&f}if(null!==o){if(o<0||65535<o)throw"Loop count invalid.";e[r++]=33,e[r++]=255,e[r++]=11,e[r++]=78,e[r++]=69,e[r++]=84,e[r++]=83,e[r++]=67,e[r++]=65,e[r++]=80,e[r++]=69,e[r++]=50,e[r++]=46,e[r++]=48,e[r++]=3,e[r++]=1,e[r++]=255&o,e[r++]=o>>8&255,e[r++]=0}var p=!1;this.addFrame=function(t,n,i,o,u,l){if(!0===p&&(--r,p=!1),l=void 0===l?{}:l,t<0||n<0||65535<t||65535<n)throw"x/y invalid.";if(i<=0||o<=0||65535<i||65535<o)throw"Width/Height invalid.";if(u.length<i*o)throw"Not enough pixels for the frame size.";var c=!0,d=l.palette;if(null==d&&(c=!1,d=s),null==d)throw"Must supply either a local or global palette.";for(var h=a(d),f=0;h>>=1;)++f;h=1<<f;var g=void 0===l.delay?0:l.delay,A=void 0===l.disposal?0:l.disposal;if(A<0||3<A)throw"Disposal out of range.";var m=!1,v=0;if(void 0!==l.transparent&&null!==l.transparent&&(m=!0,(v=l.transparent)<0||h<=v))throw"Transparent color index.";if((0!==A||m||0!==g)&&(e[r++]=33,e[r++]=249,e[r++]=4,e[r++]=A<<2|(!0===m?1:0),e[r++]=255&g,e[r++]=g>>8&255,e[r++]=v,e[r++]=0),e[r++]=44,e[r++]=255&t,e[r++]=t>>8&255,e[r++]=255&n,e[r++]=n>>8&255,e[r++]=255&i,e[r++]=i>>8&255,e[r++]=255&o,e[r++]=o>>8&255,e[r++]=!0===c?128|f-1:0,!0===c)for(var _=0,y=d.length;_<y;++_){var b=d[_];e[r++]=b>>16&255,e[r++]=b>>8&255,e[r++]=255&b}r=function(e,t,n,i){e[t++]=n;var r=t++,o=1<<n,s=o-1,a=o+1,u=a+1,l=n+1,c=0,d=0;function h(n){for(;n<=c;)e[t++]=255&d,d>>=8,c-=8,t===r+256&&(e[r]=255,r=t++)}function f(e){d|=e<<c,c+=l,h(8)}var p=i[0]&s,g={};f(o);for(var A=1,m=i.length;A<m;++A){var v=i[A]&s,_=p<<8|v,y=g[_];if(void 0===y){for(d|=p<<c,c+=l;8<=c;)e[t++]=255&d,d>>=8,c-=8,t===r+256&&(e[r]=255,r=t++);4096===u?(f(o),u=a+1,l=n+1,g={}):(1<<l<=u&&++l,g[_]=u++),p=v}else p=y}return f(p),f(a),h(1),r+1===t?e[r]=0:(e[r]=t-r-1,e[t++]=0),t}(e,r,f<2?2:f,u)},this.end=function(){return!1===p&&(e[r++]=59,p=!0),r}},t.GifReader=ke}catch(s){}function Ie(e){var t,n,i,r,o,s=Math.floor,a=new Array(64),u=new Array(64),l=new Array(64),c=new Array(64),d=new Array(65535),h=new Array(65535),f=new Array(64),p=new Array(64),g=[],A=0,m=7,v=new Array(64),_=new Array(64),y=new Array(64),b=new Array(256),w=new Array(2048),C=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],S=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],N=[0,1,2,3,4,5,6,7,8,9,10,11],L=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],E=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],x=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],O=[0,1,2,3,4,5,6,7,8,9,10,11],B=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],k=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function D(e,t){for(var n=0,i=0,r=new Array,o=1;o<=16;o++){for(var s=1;s<=e[o];s++)r[t[i]]=[],r[t[i]][0]=n,r[t[i]][1]=o,i++,n++;n*=2}return r}function I(e){for(var t=e[0],n=e[1]-1;0<=n;)t&1<<n&&(A|=1<<m),n--,--m<0&&(255==A?(M(255),M(0)):M(A),m=7,A=0)}function M(e){g.push(e)}function F(e){M(e>>8&255),M(255&e)}function T(e,t,n,i,r){for(var o,s=r[0],a=r[240],u=function(e,t){var n,i,r,o,s,a,u,l,c,d,h=0;for(c=0;c<8;++c){n=e[h],i=e[h+1],r=e[h+2],o=e[h+3],s=e[h+4],a=e[h+5],u=e[h+6];var p=n+(l=e[h+7]),g=n-l,A=i+u,m=i-u,v=r+a,_=r-a,y=o+s,b=o-s,w=p+y,C=p-y,S=A+v,N=A-v;e[h]=w+S,e[h+4]=w-S;var L=.707106781*(N+C);e[h+2]=C+L,e[h+6]=C-L;var E=.382683433*((w=b+_)-(N=m+g)),x=.5411961*w+E,O=1.306562965*N+E,B=.707106781*(S=_+m),k=g+B,D=g-B;e[h+5]=D+x,e[h+3]=D-x,e[h+1]=k+O,e[h+7]=k-O,h+=8}for(c=h=0;c<8;++c){n=e[h],i=e[h+8],r=e[h+16],o=e[h+24],s=e[h+32],a=e[h+40],u=e[h+48];var I=n+(l=e[h+56]),M=n-l,F=i+u,T=i-u,R=r+a,P=r-a,U=o+s,H=o-s,j=I+U,Q=I-U,V=F+R,W=F-R;e[h]=j+V,e[h+32]=j-V;var z=.707106781*(W+Q);e[h+16]=Q+z,e[h+48]=Q-z;var K=.382683433*((j=H+P)-(W=T+M)),q=.5411961*j+K,G=1.306562965*W+K,X=.707106781*(V=P+T),Y=M+X,J=M-X;e[h+40]=J+q,e[h+24]=J-q,e[h+8]=Y+G,e[h+56]=Y-G,h++}for(c=0;c<64;++c)d=e[c]*t[c],f[c]=0<d?d+.5|0:d-.5|0;return f}(e,t),l=0;l<64;++l)p[C[l]]=u[l];var c=p[0]-n;n=p[0],0==c?I(i[0]):(I(i[h[o=32767+c]]),I(d[o]));for(var g=63;0<g&&0==p[g];g--);if(0==g)return I(s),n;for(var A,m=1;m<=g;){for(var v=m;0==p[m]&&m<=g;++m);var _=m-v;if(16<=_){A=_>>4;for(var y=1;y<=A;++y)I(a);_&=15}o=32767+p[m],I(r[(_<<4)+h[o]]),I(d[o]),m++}return 63!=g&&I(s),n}function R(e){e<=0&&(e=1),100<e&&(e=100),o!=e&&(function(e){for(var t=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],n=0;n<64;n++){var i=s((t[n]*e+50)/100);i<1?i=1:255<i&&(i=255),a[C[n]]=i}for(var r=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],o=0;o<64;o++){var d=s((r[o]*e+50)/100);d<1?d=1:255<d&&(d=255),u[C[o]]=d}for(var h=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],f=0,p=0;p<8;p++)for(var g=0;g<8;g++)l[f]=1/(a[C[f]]*h[p]*h[g]*8),c[f]=1/(u[C[f]]*h[p]*h[g]*8),f++}(e<50?Math.floor(5e3/e):Math.floor(200-2*e)),o=e)}this.encode=function(e,o){var s,d;(new Date).getTime(),o&&R(o),g=new Array,A=0,m=7,F(65496),F(65504),F(16),M(74),M(70),M(73),M(70),M(0),M(1),M(1),M(0),F(1),F(1),M(0),M(0),function(){F(65499),F(132),M(0);for(var e=0;e<64;e++)M(a[e]);M(1);for(var t=0;t<64;t++)M(u[t])}(),s=e.width,d=e.height,F(65472),F(17),M(8),F(d),F(s),M(3),M(1),M(17),M(0),M(2),M(17),M(1),M(3),M(17),M(1),function(){F(65476),F(418),M(0);for(var e=0;e<16;e++)M(S[e+1]);for(var t=0;t<=11;t++)M(N[t]);M(16);for(var n=0;n<16;n++)M(L[n+1]);for(var i=0;i<=161;i++)M(E[i]);M(1);for(var r=0;r<16;r++)M(x[r+1]);for(var o=0;o<=11;o++)M(O[o]);M(17);for(var s=0;s<16;s++)M(B[s+1]);for(var a=0;a<=161;a++)M(k[a])}(),F(65498),F(12),M(3),M(1),M(0),M(2),M(17),M(3),M(17),M(0),M(63),M(0);var h=0,f=0,p=0;A=0,m=7,this.encode.displayName="_encode_";for(var b,C,D,P,U,H,j,Q,V,W=e.data,z=e.width,K=e.height,q=4*z,G=0;G<K;){for(b=0;b<q;){for(H=U=q*G+b,j=-1,V=Q=0;V<64;V++)H=U+(Q=V>>3)*q+(j=4*(7&V)),K<=G+Q&&(H-=q*(G+1+Q-K)),q<=b+j&&(H-=b+j-q+4),C=W[H++],D=W[H++],P=W[H++],v[V]=(w[C]+w[D+256>>0]+w[P+512>>0]>>16)-128,_[V]=(w[C+768>>0]+w[D+1024>>0]+w[P+1280>>0]>>16)-128,y[V]=(w[C+1280>>0]+w[D+1536>>0]+w[P+1792>>0]>>16)-128;h=T(v,l,h,t,i),f=T(_,c,f,n,r),p=T(y,c,p,n,r),b+=32}G+=8}if(0<=m){var X=[];X[1]=m+1,X[0]=(1<<m+1)-1,I(X)}return F(65497),new Uint8Array(g)},function(){(new Date).getTime(),e||(e=50),function(){for(var e=String.fromCharCode,t=0;t<256;t++)b[t]=e(t)}(),t=D(S,N),n=D(x,O),i=D(L,E),r=D(B,k),function(){for(var e=1,t=2,n=1;n<=15;n++){for(var i=e;i<t;i++)h[32767+i]=n,d[32767+i]=[],d[32767+i][1]=n,d[32767+i][0]=i;for(var r=-(t-1);r<=-e;r++)h[32767+r]=n,d[32767+r]=[],d[32767+r][1]=n,d[32767+r][0]=t-1+r;e<<=1,t<<=1}}(),function(){for(var e=0;e<256;e++)w[e]=19595*e,w[e+256>>0]=38470*e,w[e+512>>0]=7471*e+32768,w[e+768>>0]=-11059*e,w[e+1024>>0]=-21709*e,w[e+1280>>0]=32768*e+8421375,w[e+1536>>0]=-27439*e,w[e+1792>>0]=-5329*e}(),R(e),(new Date).getTime()}()}function Me(e,t){if(this.pos=0,this.buffer=e,this.datav=new DataView(e.buffer),this.is_with_alpha=!!t,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,-1===["BM","BA","CI","CP","IC","PT"].indexOf(this.flag))throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}window.tmp=ke,pe.API.adler32cs=(ye="function"==typeof ArrayBuffer&&"function"==typeof Uint8Array,be=null,we=function(){if(!ye)return function(){return!1};try{var e={};"function"==typeof e.Buffer&&(be=e.Buffer)}catch(e){}return function(e){return e instanceof ArrayBuffer||null!==be&&e instanceof be}}(),Ce=null!==be?function(e){return new be(e,"utf8").toString("binary")}:function(e){return unescape(encodeURIComponent(e))},Se=function(e,t){for(var n=65535&e,i=e>>>16,r=0,o=t.length;r<o;r++)n=(n+(255&t.charCodeAt(r)))%65521,i=(i+n)%65521;return(i<<16|n)>>>0},Ne=function(e,t){for(var n=65535&e,i=e>>>16,r=0,o=t.length;r<o;r++)n=(n+t[r])%65521,i=(i+n)%65521;return(i<<16|n)>>>0},Ee=(Le={}).Adler32=(((_e=(ve=function(e){if(!(this instanceof ve))throw new TypeError("Constructor cannot called be as a function.");if(!isFinite(e=null==e?1:+e))throw new Error("First arguments needs to be a finite number.");this.checksum=e>>>0}).prototype={}).constructor=ve).from=((ge=function(e){if(!(this instanceof ve))throw new TypeError("Constructor cannot called be as a function.");if(null==e)throw new Error("First argument needs to be a string.");this.checksum=Se(1,e.toString())}).prototype=_e,ge),ve.fromUtf8=((Ae=function(e){if(!(this instanceof ve))throw new TypeError("Constructor cannot called be as a function.");if(null==e)throw new Error("First argument needs to be a string.");var t=Ce(e.toString());this.checksum=Se(1,t)}).prototype=_e,Ae),ye&&(ve.fromBuffer=((me=function(e){if(!(this instanceof ve))throw new TypeError("Constructor cannot called be as a function.");if(!we(e))throw new Error("First argument needs to be ArrayBuffer.");var t=new Uint8Array(e);return this.checksum=Ne(1,t)}).prototype=_e,me)),_e.update=function(e){if(null==e)throw new Error("First argument needs to be a string.");return e=e.toString(),this.checksum=Se(this.checksum,e)},_e.updateUtf8=function(e){if(null==e)throw new Error("First argument needs to be a string.");var t=Ce(e.toString());return this.checksum=Se(this.checksum,t)},ye&&(_e.updateBuffer=function(e){if(!we(e))throw new Error("First argument needs to be ArrayBuffer.");var t=new Uint8Array(e);return this.checksum=Ne(this.checksum,t)}),_e.clone=function(){return new Ee(this.checksum)},ve),Le.from=function(e){if(null==e)throw new Error("First argument needs to be a string.");return Se(1,e.toString())},Le.fromUtf8=function(e){if(null==e)throw new Error("First argument needs to be a string.");var t=Ce(e.toString());return Se(1,t)},ye&&(Le.fromBuffer=function(e){if(!we(e))throw new Error("First argument need to be ArrayBuffer.");var t=new Uint8Array(e);return Ne(1,t)}),Le),function(e){e.__bidiEngine__=e.prototype.__bidiEngine__=function(e){var n,i,r,o,s,a,u,l=t,c=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],d=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],h={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},f={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},p=["(",")","(","<",">","<","[","]","[","{","}","{","\xab","\xbb","\xab","\u2039","\u203a","\u2039","\u2045","\u2046","\u2045","\u207d","\u207e","\u207d","\u208d","\u208e","\u208d","\u2264","\u2265","\u2264","\u2329","\u232a","\u2329","\ufe59","\ufe5a","\ufe59","\ufe5b","\ufe5c","\ufe5b","\ufe5d","\ufe5e","\ufe5d","\ufe64","\ufe65","\ufe64"],g=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),A=!1,m=0;this.__bidiEngine__={};var v=function(e){var t=e.charCodeAt(),n=t>>8,i=f[n];return void 0!==i?l[256*i+(255&t)]:252===n||253===n?"AL":g.test(n)?"L":8===n?"R":"N"},_=function(e){for(var t,n=0;n<e.length;n++){if("L"===(t=v(e.charAt(n))))return!1;if("R"===t)return!0}return!1},y=function(e,t,s,a){var u,l,c,d,h=t[a];switch(h){case"L":case"R":A=!1;break;case"N":case"AN":break;case"EN":A&&(h="AN");break;case"AL":A=!0,h="R";break;case"WS":h="N";break;case"CS":a<1||a+1>=t.length||"EN"!==(u=s[a-1])&&"AN"!==u||"EN"!==(l=t[a+1])&&"AN"!==l?h="N":A&&(l="AN"),h=l===u?l:"N";break;case"ES":h="EN"===(u=0<a?s[a-1]:"B")&&a+1<t.length&&"EN"===t[a+1]?"EN":"N";break;case"ET":if(0<a&&"EN"===s[a-1]){h="EN";break}if(A){h="N";break}for(c=a+1,d=t.length;c<d&&"ET"===t[c];)c++;h=c<d&&"EN"===t[c]?"EN":"N";break;case"NSM":if(r&&!o){for(d=t.length,c=a+1;c<d&&"NSM"===t[c];)c++;if(c<d){var f=e[a],p=1425<=f&&f<=2303||64286===f;if(u=t[c],p&&("R"===u||"AL"===u)){h="R";break}}}h=a<1||"B"===(u=t[a-1])?"N":s[a-1];break;case"B":n=!(A=!1),h=m;break;case"S":i=!0,h="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":A=!1;break;case"BN":h="N"}return h},b=function(e,t,n){var i=e.split("");return n&&w(i,n,{hiLevel:m}),i.reverse(),t&&t.reverse(),i.join("")},w=function(e,t,r){var o,s,a,u,l,f=-1,p=e.length,g=0,_=[],b=m?d:c,w=[];for(i=n=A=!1,s=0;s<p;s++)w[s]=v(e[s]);for(a=0;a<p;a++){if(l=g,_[a]=y(e,w,_,a),o=240&(g=b[l][h[_[a]]]),g&=15,t[a]=u=b[g][5],0<o)if(16===o){for(s=f;s<a;s++)t[s]=1;f=-1}else f=-1;if(b[g][6])-1===f&&(f=a);else if(-1<f){for(s=f;s<a;s++)t[s]=u;f=-1}"B"===w[a]&&(t[a]=0),r.hiLevel|=u}i&&function(e,t,n){for(var i=0;i<n;i++)if("S"===e[i]){t[i]=m;for(var r=i-1;0<=r&&"WS"===e[r];r--)t[r]=m}}(w,t,p)},C=function(e,t,i,r,o){if(!(o.hiLevel<e)){if(1===e&&1===m&&!n)return t.reverse(),void(i&&i.reverse());for(var s,a,u,l,c=t.length,d=0;d<c;){if(r[d]>=e){for(u=d+1;u<c&&r[u]>=e;)u++;for(l=d,a=u-1;l<a;l++,a--)s=t[l],t[l]=t[a],t[a]=s,i&&(s=i[l],i[l]=i[a],i[a]=s);d=u}d++}}},S=function(e,t,n){var i=e.split(""),r={hiLevel:m};return n||(n=[]),w(i,n,r),function(e,t,n){if(0!==n.hiLevel&&u)for(var i,r=0;r<e.length;r++)1===t[r]&&0<=(i=p.indexOf(e[r]))&&(e[r]=p[i+1])}(i,n,r),C(2,i,t,n,r),C(1,i,t,n,r),i.join("")};return this.__bidiEngine__.doBidiReorder=function(e,t,n){if(function(e,t){if(t)for(var n=0;n<e.length;n++)t[n]=n;void 0===o&&(o=_(e)),void 0===a&&(a=_(e))}(e,t),r||!s||a)if(r&&s&&o^a)m=o?1:0,e=b(e,t,n);else if(!r&&s&&a)m=o?1:0,e=S(e,t,n),e=b(e,t);else if(!r||o||s||a){if(r&&!s&&o^a)e=b(e,t),e=o?(m=0,S(e,t,n)):(m=1,e=S(e,t,n),b(e,t));else if(r&&o&&!s&&a)m=1,e=S(e,t,n),e=b(e,t);else if(!r&&!s&&o^a){var i=u;o?(m=1,e=S(e,t,n),m=0,u=!1,e=S(e,t,n),u=i):(m=0,e=S(e,t,n),e=b(e,t),u=!(m=1),e=S(e,t,n),u=i,e=b(e,t))}}else m=0,e=S(e,t,n);else m=o?1:0,e=S(e,t,n);return e},this.__bidiEngine__.setOptions=function(e){e&&(r=e.isInputVisual,s=e.isOutputVisual,o=e.isInputRtl,a=e.isOutputRtl,u=e.isSymmetricSwapping)},this.__bidiEngine__.setOptions(e),this.__bidiEngine__};var t=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],n=new e.__bidiEngine__({isInputVisual:!0});e.API.events.push(["postProcessText",function(e){var t=e.text,i=(e.x,e.y,e.options||{}),r=(e.mutex,i.lang,[]);if("[object Array]"===Object.prototype.toString.call(t)){var o=0;for(r=[],o=0;o<t.length;o+=1)"[object Array]"===Object.prototype.toString.call(t[o])?r.push([n.doBidiReorder(t[o][0]),t[o][1],t[o][2]]):r.push([n.doBidiReorder(t[o])]);e.text=r}else e.text=n.doBidiReorder(t)}])}(pe),window.tmp=Ie,Me.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var e=0===this.colors?1<<this.bitPP:this.colors;this.palette=new Array(e);for(var t=0;t<e;t++){var n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0);this.palette[t]={red:r,green:i,blue:n,quad:o}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},Me.prototype.parseBGR=function(){this.pos=this.offset;try{var e="bit"+this.bitPP,t=this.width*this.height*4;this.data=new Uint8Array(t),this[e]()}catch(e){console.log("bit decode error:"+e)}},Me.prototype.bit1=function(){var e=Math.ceil(this.width/8),t=e%4,n=0<=this.height?this.height-1:-this.height;for(n=this.height-1;0<=n;n--){for(var i=this.bottom_up?n:this.height-1-n,r=0;r<e;r++)for(var o=this.datav.getUint8(this.pos++,!0),s=i*this.width*4+8*r*4,a=0;a<8&&8*r+a<this.width;a++){var u=this.palette[o>>7-a&1];this.data[s+4*a]=u.blue,this.data[s+4*a+1]=u.green,this.data[s+4*a+2]=u.red,this.data[s+4*a+3]=255}0!=t&&(this.pos+=4-t)}},Me.prototype.bit4=function(){for(var e=Math.ceil(this.width/2),t=e%4,n=this.height-1;0<=n;n--){for(var i=this.bottom_up?n:this.height-1-n,r=0;r<e;r++){var o=this.datav.getUint8(this.pos++,!0),s=i*this.width*4+2*r*4,a=o>>4,u=15&o,l=this.palette[a];if(this.data[s]=l.blue,this.data[s+1]=l.green,this.data[s+2]=l.red,this.data[s+3]=255,2*r+1>=this.width)break;l=this.palette[u],this.data[s+4]=l.blue,this.data[s+4+1]=l.green,this.data[s+4+2]=l.red,this.data[s+4+3]=255}0!=t&&(this.pos+=4-t)}},Me.prototype.bit8=function(){for(var e=this.width%4,t=this.height-1;0<=t;t--){for(var n=this.bottom_up?t:this.height-1-t,i=0;i<this.width;i++){var r=this.datav.getUint8(this.pos++,!0),o=n*this.width*4+4*i;if(r<this.palette.length){var s=this.palette[r];this.data[o]=s.red,this.data[o+1]=s.green,this.data[o+2]=s.blue,this.data[o+3]=255}else this.data[o]=255,this.data[o+1]=255,this.data[o+2]=255,this.data[o+3]=255}0!=e&&(this.pos+=4-e)}},Me.prototype.bit15=function(){for(var e=this.width%3,t=parseInt("11111",2),n=this.height-1;0<=n;n--){for(var i=this.bottom_up?n:this.height-1-n,r=0;r<this.width;r++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(o&t)/t*255|0,a=(o>>5&t)/t*255|0,u=(o>>10&t)/t*255|0,l=o>>15?255:0,c=i*this.width*4+4*r;this.data[c]=u,this.data[c+1]=a,this.data[c+2]=s,this.data[c+3]=l}this.pos+=e}},Me.prototype.bit16=function(){for(var e=this.width%3,t=parseInt("11111",2),n=parseInt("111111",2),i=this.height-1;0<=i;i--){for(var r=this.bottom_up?i:this.height-1-i,o=0;o<this.width;o++){var s=this.datav.getUint16(this.pos,!0);this.pos+=2;var a=(s&t)/t*255|0,u=(s>>5&n)/n*255|0,l=(s>>11)/t*255|0,c=r*this.width*4+4*o;this.data[c]=l,this.data[c+1]=u,this.data[c+2]=a,this.data[c+3]=255}this.pos+=e}},Me.prototype.bit24=function(){for(var e=this.height-1;0<=e;e--){for(var t=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var i=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),s=t*this.width*4+4*n;this.data[s]=o,this.data[s+1]=r,this.data[s+2]=i,this.data[s+3]=255}this.pos+=this.width%4}},Me.prototype.bit32=function(){for(var e=this.height-1;0<=e;e--)for(var t=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var i=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),a=t*this.width*4+4*n;this.data[a]=o,this.data[a+1]=r,this.data[a+2]=i,this.data[a+3]=s}},Me.prototype.getData=function(){return this.data},window.tmp=Me,function(e){var t=15,n=573,i=[0,1,2,3,4,4,5,5,6,6,6,6,7,7,7,7,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,0,0,16,17,18,18,19,19,20,20,20,20,21,21,21,21,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29];function r(){var e=this;function i(e,t){for(var n=0;n|=1&e,e>>>=1,n<<=1,0<--t;);return n>>>1}e.build_tree=function(r){var o,s,a,u=e.dyn_tree,l=e.stat_desc.static_tree,c=e.stat_desc.elems,d=-1;for(r.heap_len=0,r.heap_max=n,o=0;o<c;o++)0!==u[2*o]?(r.heap[++r.heap_len]=d=o,r.depth[o]=0):u[2*o+1]=0;for(;r.heap_len<2;)u[2*(a=r.heap[++r.heap_len]=d<2?++d:0)]=1,r.depth[a]=0,r.opt_len--,l&&(r.static_len-=l[2*a+1]);for(e.max_code=d,o=Math.floor(r.heap_len/2);1<=o;o--)r.pqdownheap(u,o);for(a=c;o=r.heap[1],r.heap[1]=r.heap[r.heap_len--],r.pqdownheap(u,1),s=r.heap[1],r.heap[--r.heap_max]=o,r.heap[--r.heap_max]=s,u[2*a]=u[2*o]+u[2*s],r.depth[a]=Math.max(r.depth[o],r.depth[s])+1,u[2*o+1]=u[2*s+1]=a,r.heap[1]=a++,r.pqdownheap(u,1),2<=r.heap_len;);r.heap[--r.heap_max]=r.heap[1],function(i){var r,o,s,a,u,l,c=e.dyn_tree,d=e.stat_desc.static_tree,h=e.stat_desc.extra_bits,f=e.stat_desc.extra_base,p=e.stat_desc.max_length,g=0;for(a=0;a<=t;a++)i.bl_count[a]=0;for(c[2*i.heap[i.heap_max]+1]=0,r=i.heap_max+1;r<n;r++)p<(a=c[2*c[2*(o=i.heap[r])+1]+1]+1)&&(a=p,g++),c[2*o+1]=a,o>e.max_code||(i.bl_count[a]++,u=0,f<=o&&(u=h[o-f]),l=c[2*o],i.opt_len+=l*(a+u),d&&(i.static_len+=l*(d[2*o+1]+u)));if(0!==g){do{for(a=p-1;0===i.bl_count[a];)a--;i.bl_count[a]--,i.bl_count[a+1]+=2,i.bl_count[p]--,g-=2}while(0<g);for(a=p;0!==a;a--)for(o=i.bl_count[a];0!==o;)(s=i.heap[--r])>e.max_code||(c[2*s+1]!=a&&(i.opt_len+=(a-c[2*s+1])*c[2*s],c[2*s+1]=a),o--)}}(r),function(e,n,r){var o,s,a,u=[],l=0;for(o=1;o<=t;o++)u[o]=l=l+r[o-1]<<1;for(s=0;s<=n;s++)0!==(a=e[2*s+1])&&(e[2*s]=i(u[a]++,a))}(u,e.max_code,r.bl_count)}}function o(e,t,n,i,r){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=i,this.max_length=r}function s(e,t,n,i,r){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=i,this.func=r}r._length_code=[0,1,2,3,4,5,6,7,8,8,9,9,10,10,11,11,12,12,12,12,13,13,13,13,14,14,14,14,15,15,15,15,16,16,16,16,16,16,16,16,17,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,28],r.base_length=[0,1,2,3,4,5,6,7,8,10,12,14,16,20,24,28,32,40,48,56,64,80,96,112,128,160,192,224,0],r.base_dist=[0,1,2,3,4,6,8,12,16,24,32,48,64,96,128,192,256,384,512,768,1024,1536,2048,3072,4096,6144,8192,12288,16384,24576],r.d_code=function(e){return e<256?i[e]:i[256+(e>>>7)]},r.extra_lbits=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],r.extra_dbits=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],r.extra_blbits=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],r.bl_order=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],o.static_ltree=[12,8,140,8,76,8,204,8,44,8,172,8,108,8,236,8,28,8,156,8,92,8,220,8,60,8,188,8,124,8,252,8,2,8,130,8,66,8,194,8,34,8,162,8,98,8,226,8,18,8,146,8,82,8,210,8,50,8,178,8,114,8,242,8,10,8,138,8,74,8,202,8,42,8,170,8,106,8,234,8,26,8,154,8,90,8,218,8,58,8,186,8,122,8,250,8,6,8,134,8,70,8,198,8,38,8,166,8,102,8,230,8,22,8,150,8,86,8,214,8,54,8,182,8,118,8,246,8,14,8,142,8,78,8,206,8,46,8,174,8,110,8,238,8,30,8,158,8,94,8,222,8,62,8,190,8,126,8,254,8,1,8,129,8,65,8,193,8,33,8,161,8,97,8,225,8,17,8,145,8,81,8,209,8,49,8,177,8,113,8,241,8,9,8,137,8,73,8,201,8,41,8,169,8,105,8,233,8,25,8,153,8,89,8,217,8,57,8,185,8,121,8,249,8,5,8,133,8,69,8,197,8,37,8,165,8,101,8,229,8,21,8,149,8,85,8,213,8,53,8,181,8,117,8,245,8,13,8,141,8,77,8,205,8,45,8,173,8,109,8,237,8,29,8,157,8,93,8,221,8,61,8,189,8,125,8,253,8,19,9,275,9,147,9,403,9,83,9,339,9,211,9,467,9,51,9,307,9,179,9,435,9,115,9,371,9,243,9,499,9,11,9,267,9,139,9,395,9,75,9,331,9,203,9,459,9,43,9,299,9,171,9,427,9,107,9,363,9,235,9,491,9,27,9,283,9,155,9,411,9,91,9,347,9,219,9,475,9,59,9,315,9,187,9,443,9,123,9,379,9,251,9,507,9,7,9,263,9,135,9,391,9,71,9,327,9,199,9,455,9,39,9,295,9,167,9,423,9,103,9,359,9,231,9,487,9,23,9,279,9,151,9,407,9,87,9,343,9,215,9,471,9,55,9,311,9,183,9,439,9,119,9,375,9,247,9,503,9,15,9,271,9,143,9,399,9,79,9,335,9,207,9,463,9,47,9,303,9,175,9,431,9,111,9,367,9,239,9,495,9,31,9,287,9,159,9,415,9,95,9,351,9,223,9,479,9,63,9,319,9,191,9,447,9,127,9,383,9,255,9,511,9,0,7,64,7,32,7,96,7,16,7,80,7,48,7,112,7,8,7,72,7,40,7,104,7,24,7,88,7,56,7,120,7,4,7,68,7,36,7,100,7,20,7,84,7,52,7,116,7,3,8,131,8,67,8,195,8,35,8,163,8,99,8,227,8],o.static_dtree=[0,5,16,5,8,5,24,5,4,5,20,5,12,5,28,5,2,5,18,5,10,5,26,5,6,5,22,5,14,5,30,5,1,5,17,5,9,5,25,5,5,5,21,5,13,5,29,5,3,5,19,5,11,5,27,5,7,5,23,5],o.static_l_desc=new o(o.static_ltree,r.extra_lbits,257,286,t),o.static_d_desc=new o(o.static_dtree,r.extra_dbits,0,30,t),o.static_bl_desc=new o(null,r.extra_blbits,0,19,7);var a=[new s(0,0,0,0,0),new s(4,4,8,4,1),new s(4,5,16,8,1),new s(4,6,32,32,1),new s(4,4,16,16,2),new s(8,16,32,32,2),new s(8,16,128,128,2),new s(8,32,128,256,2),new s(32,128,258,1024,2),new s(32,258,258,4096,2)],u=["need dictionary","stream end","","","stream error","data error","","buffer error","",""];function l(e,t,n,i){var r=e[2*t],o=e[2*n];return r<o||r==o&&i[t]<=i[n]}function c(){var e,t,n,i,s,c,d,h,f,p,g,A,m,v,_,y,b,w,C,S,N,L,E,x,O,B,k,D,I,M,F,T,R,P,U,H,j,Q,V,W,z,K=this,q=new r,G=new r,X=new r;function Y(){var e;for(e=0;e<286;e++)F[2*e]=0;for(e=0;e<30;e++)T[2*e]=0;for(e=0;e<19;e++)R[2*e]=0;F[512]=1,K.opt_len=K.static_len=0,H=Q=0}function J(e,t){var n,i,r=-1,o=e[1],s=0,a=7,u=4;for(0===o&&(a=138,u=3),e[2*(t+1)+1]=65535,n=0;n<=t;n++)i=o,o=e[2*(n+1)+1],++s<a&&i==o||(s<u?R[2*i]+=s:0!==i?(i!=r&&R[2*i]++,R[32]++):s<=10?R[34]++:R[36]++,r=i,u=(s=0)===o?(a=138,3):i==o?(a=6,3):(a=7,4))}function Z(e){K.pending_buf[K.pending++]=e}function $(e){Z(255&e),Z(e>>>8&255)}function ee(e,t){var n,i=t;16-i<z?($(W|=(n=e)<<z&65535),W=n>>>16-z,z+=i-16):(W|=e<<z&65535,z+=i)}function te(e,t){var n=2*e;ee(65535&t[n],65535&t[n+1])}function ne(e,t){var n,i,r=-1,o=e[1],s=0,a=7,u=4;for(0===o&&(a=138,u=3),n=0;n<=t;n++)if(i=o,o=e[2*(n+1)+1],!(++s<a&&i==o)){if(s<u)for(;te(i,R),0!=--s;);else 0!==i?(i!=r&&(te(i,R),s--),te(16,R),ee(s-3,2)):s<=10?(te(17,R),ee(s-3,3)):(te(18,R),ee(s-11,7));r=i,u=(s=0)===o?(a=138,3):i==o?(a=6,3):(a=7,4)}}function ie(){16==z?($(W),z=W=0):8<=z&&(Z(255&W),W>>>=8,z-=8)}function re(e,t){var n,i,o;if(K.pending_buf[j+2*H]=e>>>8&255,K.pending_buf[j+2*H+1]=255&e,K.pending_buf[P+H]=255&t,H++,0===e?F[2*t]++:(Q++,e--,F[2*(r._length_code[t]+256+1)]++,T[2*r.d_code(e)]++),0==(8191&H)&&2<k){for(n=8*H,i=N-b,o=0;o<30;o++)n+=T[2*o]*(5+r.extra_dbits[o]);if(n>>>=3,Q<Math.floor(H/2)&&n<Math.floor(i/2))return!0}return H==U-1}function oe(e,t){var n,i,o,s,a=0;if(0!==H)for(;n=K.pending_buf[j+2*a]<<8&65280|255&K.pending_buf[j+2*a+1],i=255&K.pending_buf[P+a],a++,0===n?te(i,e):(te((o=r._length_code[i])+256+1,e),0!==(s=r.extra_lbits[o])&&ee(i-=r.base_length[o],s),te(o=r.d_code(--n),t),0!==(s=r.extra_dbits[o])&&ee(n-=r.base_dist[o],s)),a<H;);te(256,e),V=e[513]}function se(){8<z?$(W):0<z&&Z(255&W),z=W=0}function ae(e,t,n){var i,r,o;ee(0+(n?1:0),3),i=e,r=t,o=!0,se(),V=8,o&&($(r),$(~r)),K.pending_buf.set(h.subarray(i,i+r),K.pending),K.pending+=r}function ue(e,t,n){var i,s,a=0;0<k?(q.build_tree(K),G.build_tree(K),a=function(){var e;for(J(F,q.max_code),J(T,G.max_code),X.build_tree(K),e=18;3<=e&&0===R[2*r.bl_order[e]+1];e--);return K.opt_len+=3*(e+1)+5+5+4,e}(),i=K.opt_len+3+7>>>3,(s=K.static_len+3+7>>>3)<=i&&(i=s)):i=s=t+5,t+4<=i&&-1!=e?ae(e,t,n):s==i?(ee(2+(n?1:0),3),oe(o.static_ltree,o.static_dtree)):(ee(4+(n?1:0),3),function(e,t,n){var i;for(ee(e-257,5),ee(t-1,5),ee(n-4,4),i=0;i<n;i++)ee(R[2*r.bl_order[i]+1],3);ne(F,e-1),ne(T,t-1)}(q.max_code+1,G.max_code+1,a+1),oe(F,T)),Y(),n&&se()}function le(t){ue(0<=b?b:-1,N-b,t),b=N,e.flush_pending()}function ce(){var t,n,i,r;do{if(0===(r=f-E-N)&&0===N&&0===E)r=s;else if(-1==r)r--;else if(s+s-262<=N){for(h.set(h.subarray(s,s+s),0),L-=s,N-=s,b-=s,i=t=m;n=65535&g[--i],g[i]=s<=n?n-s:0,0!=--t;);for(i=t=s;n=65535&p[--i],p[i]=s<=n?n-s:0,0!=--t;);r+=s}if(0===e.avail_in)return;t=e.read_buf(h,N+E,r),3<=(E+=t)&&(A=((A=255&h[N])<<y^255&h[N+1])&_)}while(E<262&&0!==e.avail_in)}function de(e){var t,n,i=O,r=N,o=x,a=s-262<N?N-(s-262):0,u=M,l=d,c=N+258,f=h[r+o-1],g=h[r+o];I<=x&&(i>>=2),E<u&&(u=E);do{if(h[(t=e)+o]==g&&h[t+o-1]==f&&h[t]==h[r]&&h[++t]==h[r+1]){r+=2,t++;do{}while(h[++r]==h[++t]&&h[++r]==h[++t]&&h[++r]==h[++t]&&h[++r]==h[++t]&&h[++r]==h[++t]&&h[++r]==h[++t]&&h[++r]==h[++t]&&h[++r]==h[++t]&&r<c);if(n=258-(c-r),r=c-258,o<n){if(L=e,u<=(o=n))break;f=h[r+o-1],g=h[r+o]}}}while((e=65535&p[e&l])>a&&0!=--i);return o<=E?o:E}function he(e){return e.total_in=e.total_out=0,e.msg=null,K.pending=0,K.pending_out=0,t=113,i=0,q.dyn_tree=F,q.stat_desc=o.static_l_desc,G.dyn_tree=T,G.stat_desc=o.static_d_desc,X.dyn_tree=R,X.stat_desc=o.static_bl_desc,z=W=0,V=8,Y(),function(){var e;for(f=2*s,e=g[m-1]=0;e<m-1;e++)g[e]=0;B=a[k].max_lazy,I=a[k].good_length,M=a[k].nice_length,O=a[k].max_chain,w=x=2,A=S=E=b=N=0}(),0}K.depth=[],K.bl_count=[],K.heap=[],F=[],T=[],R=[],K.pqdownheap=function(e,t){for(var n=K.heap,i=n[t],r=t<<1;r<=K.heap_len&&(r<K.heap_len&&l(e,n[r+1],n[r],K.depth)&&r++,!l(e,i,n[r],K.depth));)n[t]=n[r],t=r,r<<=1;n[t]=i},K.deflateInit=function(e,t,i,r,o,a){return r||(r=8),o||(o=8),a||(a=0),e.msg=null,-1==t&&(t=6),o<1||9<o||8!=r||i<9||15<i||t<0||9<t||a<0||2<a?-2:(e.dstate=K,d=(s=1<<(c=i))-1,_=(m=1<<(v=o+7))-1,y=Math.floor((v+3-1)/3),h=new Uint8Array(2*s),p=[],g=[],U=1<<o+6,K.pending_buf=new Uint8Array(4*U),n=4*U,j=Math.floor(U/2),P=3*U,k=t,D=a,he(e))},K.deflateEnd=function(){return 42!=t&&113!=t&&666!=t?-2:(K.pending_buf=null,h=p=g=null,K.dstate=null,113==t?-3:0)},K.deflateParams=function(e,t,n){var i=0;return-1==t&&(t=6),t<0||9<t||n<0||2<n?-2:(a[k].func!=a[t].func&&0!==e.total_in&&(i=e.deflate(1)),k!=t&&(B=a[k=t].max_lazy,I=a[k].good_length,M=a[k].nice_length,O=a[k].max_chain),D=n,i)},K.deflateSetDictionary=function(e,n,i){var r,o=i,a=0;if(!n||42!=t)return-2;if(o<3)return 0;for(s-262<o&&(a=i-(o=s-262)),h.set(n.subarray(a,a+o),0),b=N=o,A=((A=255&h[0])<<y^255&h[1])&_,r=0;r<=o-3;r++)A=(A<<y^255&h[r+2])&_,p[r&d]=g[A],g[A]=r;return 0},K.deflate=function(r,l){var f,v,O,I,M,F;if(4<l||l<0)return-2;if(!r.next_out||!r.next_in&&0!==r.avail_in||666==t&&4!=l)return r.msg=u[4],-2;if(0===r.avail_out)return r.msg=u[7],-5;if(e=r,I=i,i=l,42==t&&(v=8+(c-8<<4)<<8,3<(O=(k-1&255)>>1)&&(O=3),v|=O<<6,0!==N&&(v|=32),t=113,Z((F=v+=31-v%31)>>8&255),Z(255&F)),0!==K.pending){if(e.flush_pending(),0===e.avail_out)return i=-1,0}else if(0===e.avail_in&&l<=I&&4!=l)return e.msg=u[7],-5;if(666==t&&0!==e.avail_in)return r.msg=u[7],-5;if(0!==e.avail_in||0!==E||0!=l&&666!=t){switch(M=-1,a[k].func){case 0:M=function(t){var i,r=65535;for(n-5<r&&(r=n-5);;){if(E<=1){if(ce(),0===E&&0==t)return 0;if(0===E)break}if(N+=E,i=b+r,((E=0)===N||i<=N)&&(E=N-i,N=i,le(!1),0===e.avail_out))return 0;if(s-262<=N-b&&(le(!1),0===e.avail_out))return 0}return le(4==t),0===e.avail_out?4==t?2:0:4==t?3:1}(l);break;case 1:M=function(t){for(var n,i=0;;){if(E<262){if(ce(),E<262&&0==t)return 0;if(0===E)break}if(3<=E&&(A=(A<<y^255&h[N+2])&_,i=65535&g[A],p[N&d]=g[A],g[A]=N),0!==i&&(N-i&65535)<=s-262&&2!=D&&(w=de(i)),3<=w)if(n=re(N-L,w-3),E-=w,w<=B&&3<=E){for(w--;A=(A<<y^255&h[2+ ++N])&_,i=65535&g[A],p[N&d]=g[A],g[A]=N,0!=--w;);N++}else N+=w,w=0,A=((A=255&h[N])<<y^255&h[N+1])&_;else n=re(0,255&h[N]),E--,N++;if(n&&(le(!1),0===e.avail_out))return 0}return le(4==t),0===e.avail_out?4==t?2:0:4==t?3:1}(l);break;case 2:M=function(t){for(var n,i,r=0;;){if(E<262){if(ce(),E<262&&0==t)return 0;if(0===E)break}if(3<=E&&(A=(A<<y^255&h[N+2])&_,r=65535&g[A],p[N&d]=g[A],g[A]=N),x=w,C=L,w=2,0!==r&&x<B&&(N-r&65535)<=s-262&&(2!=D&&(w=de(r)),w<=5&&(1==D||3==w&&4096<N-L)&&(w=2)),3<=x&&w<=x){for(i=N+E-3,n=re(N-1-C,x-3),E-=x-1,x-=2;++N<=i&&(A=(A<<y^255&h[N+2])&_,r=65535&g[A],p[N&d]=g[A],g[A]=N),0!=--x;);if(S=0,w=2,N++,n&&(le(!1),0===e.avail_out))return 0}else if(0!==S){if((n=re(0,255&h[N-1]))&&le(!1),N++,E--,0===e.avail_out)return 0}else S=1,N++,E--}return 0!==S&&(n=re(0,255&h[N-1]),S=0),le(4==t),0===e.avail_out?4==t?2:0:4==t?3:1}(l)}if(2!=M&&3!=M||(t=666),0==M||2==M)return 0===e.avail_out&&(i=-1),0;if(1==M){if(1==l)ee(2,3),te(256,o.static_ltree),ie(),1+V+10-z<9&&(ee(2,3),te(256,o.static_ltree),ie()),V=7;else if(ae(0,0,!1),3==l)for(f=0;f<m;f++)g[f]=0;if(e.flush_pending(),0===e.avail_out)return i=-1,0}}return 4!=l?0:1}}function d(){this.next_in_index=0,this.next_out_index=0,this.avail_in=0,this.total_in=0,this.avail_out=0,this.total_out=0}d.prototype={deflateInit:function(e,n){return this.dstate=new c,n||(n=t),this.dstate.deflateInit(this,e,n)},deflate:function(e){return this.dstate?this.dstate.deflate(this,e):-2},deflateEnd:function(){if(!this.dstate)return-2;var e=this.dstate.deflateEnd();return this.dstate=null,e},deflateParams:function(e,t){return this.dstate?this.dstate.deflateParams(this,e,t):-2},deflateSetDictionary:function(e,t){return this.dstate?this.dstate.deflateSetDictionary(this,e,t):-2},read_buf:function(e,t,n){var i=this.avail_in;return n<i&&(i=n),0===i?0:(this.avail_in-=i,e.set(this.next_in.subarray(this.next_in_index,this.next_in_index+i),t),this.next_in_index+=i,this.total_in+=i,i)},flush_pending:function(){var e=this,t=e.dstate.pending;t>e.avail_out&&(t=e.avail_out),0!==t&&(e.next_out.set(e.dstate.pending_buf.subarray(e.dstate.pending_out,e.dstate.pending_out+t),e.next_out_index),e.next_out_index+=t,e.dstate.pending_out+=t,e.total_out+=t,e.avail_out-=t,e.dstate.pending-=t,0===e.dstate.pending&&(e.dstate.pending_out=0))}};var h=e.zip||e;h.Deflater=h._jzlib_Deflater=function(e){var t=new d,n=new Uint8Array(512),i=e?e.level:-1;void 0===i&&(i=-1),t.deflateInit(i),t.next_out=n,this.append=function(e,i){var r,o=[],s=0,a=0,u=0;if(e.length){t.next_in_index=0,t.next_in=e,t.avail_in=e.length;do{if(t.next_out_index=0,t.avail_out=512,0!=t.deflate(0))throw new Error("deflating: "+t.msg);t.next_out_index&&(512==t.next_out_index?o.push(new Uint8Array(n)):o.push(new Uint8Array(n.subarray(0,t.next_out_index)))),u+=t.next_out_index,i&&0<t.next_in_index&&t.next_in_index!=s&&(i(t.next_in_index),s=t.next_in_index)}while(0<t.avail_in||0===t.avail_out);return r=new Uint8Array(u),o.forEach((function(e){r.set(e,a),a+=e.length})),r}},this.flush=function(){var e,i,r=[],o=0,s=0;do{if(t.next_out_index=0,t.avail_out=512,1!=(e=t.deflate(4))&&0!=e)throw new Error("deflating: "+t.msg);0<512-t.avail_out&&r.push(new Uint8Array(n.subarray(0,t.next_out_index))),s+=t.next_out_index}while(0<t.avail_in||0===t.avail_out);return t.deflateEnd(),i=new Uint8Array(s),r.forEach((function(e){i.set(e,o),o+=e.length})),i}}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||"undefined"!=typeof i&&i||Function('return typeof this === "object" && this.content')()||Function("return this")()),("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||"undefined"!=typeof i&&i||Function('return typeof this === "object" && this.content')()||Function("return this")()).RGBColor=function(e){var t;e=e||"",this.ok=!1,"#"==e.charAt(0)&&(e=e.substr(1,6)),e=(e=e.replace(/ /g,"")).toLowerCase();var n={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};for(var i in n)e==i&&(e=n[i]);for(var r=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(e){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}}],o=0;o<r.length;o++){var s=r[o].re,a=r[o].process,u=s.exec(e);u&&(t=a(u),this.r=t[0],this.g=t[1],this.b=t[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:255<this.r?255:this.r,this.g=this.g<0||isNaN(this.g)?0:255<this.g?255:this.g,this.b=this.b<0||isNaN(this.b)?0:255<this.b?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var e=this.r.toString(16),t=this.g.toString(16),n=this.b.toString(16);return 1==e.length&&(e="0"+e),1==t.length&&(t="0"+t),1==n.length&&(n="0"+n),"#"+e+t+n}},function(e){var t="+".charCodeAt(0),n="/".charCodeAt(0),i="0".charCodeAt(0),r="a".charCodeAt(0),o="A".charCodeAt(0),s="-".charCodeAt(0),a="_".charCodeAt(0),u=function(e){var u=e.charCodeAt(0);return u===t||u===s?62:u===n||u===a?63:u<i?-1:u<i+10?u-i+26+26:u<o+26?u-o:u<r+26?u-r+26:void 0};e.API.TTFFont=function(){function e(e,t,n){var i;if(this.rawData=e,i=this.contents=new c(e),this.contents.pos=4,"ttcf"===i.readString(4)){if(!t)throw new Error("Must specify a font name for TTC files.");throw new Error("Font "+t+" not found in TTC file.")}i.pos=0,this.parse(),this.subset=new O(this),this.registerTTF()}return e.open=function(t,n,i,r){if("string"!=typeof i)throw new Error("Invalid argument supplied in TTFFont.open");return new e(function(e){var t,n,i,r,o,s;if(0<e.length%4)throw new Error("Invalid string. Length must be a multiple of 4");var a=e.length;o="="===e.charAt(a-2)?2:"="===e.charAt(a-1)?1:0,s=new Uint8Array(3*e.length/4-o),i=0<o?e.length-4:e.length;var l=0;function c(e){s[l++]=e}for(n=t=0;t<i;t+=4,n+=3)c((16711680&(r=u(e.charAt(t))<<18|u(e.charAt(t+1))<<12|u(e.charAt(t+2))<<6|u(e.charAt(t+3))))>>16),c((65280&r)>>8),c(255&r);return 2===o?c(255&(r=u(e.charAt(t))<<2|u(e.charAt(t+1))>>4)):1===o&&(c((r=u(e.charAt(t))<<10|u(e.charAt(t+1))<<4|u(e.charAt(t+2))>>2)>>8&255),c(255&r)),s}(i),n,r)},e.prototype.parse=function(){return this.directory=new d(this.contents),this.head=new p(this),this.name=new b(this),this.cmap=new A(this),this.toUnicode=new Map,this.hhea=new m(this),this.maxp=new w(this),this.hmtx=new C(this),this.post=new _(this),this.os2=new v(this),this.loca=new x(this),this.glyf=new N(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},e.prototype.registerTTF=function(){var e,t,n,i,r;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var t,n,i,r;for(r=[],t=0,n=(i=this.bbox).length;t<n;t++)e=i[t],r.push(Math.round(e*this.scaleFactor));return r}.call(this),this.stemV=0,this.post.exists?(n=255&(i=this.post.italic_angle),!0&(t=i>>16)&&(t=-(1+(65535^t))),this.italicAngle=+(t+"."+n)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=1===(r=this.familyClass)||2===r||3===r||4===r||5===r||7===r,this.isScript=10===this.familyClass,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),0!==this.italicAngle&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},e.prototype.characterToGlyph=function(e){var t;return(null!=(t=this.cmap.unicode)?t.codeMap[e]:void 0)||0},e.prototype.widthOfGlyph=function(e){var t;return t=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(e).advance*t},e.prototype.widthOfString=function(e,t,n){var i,r,o,s,a;for(r=s=o=0,a=(e=""+e).length;0<=a?s<a:a<s;r=0<=a?++s:--s)i=e.charCodeAt(r),o+=this.widthOfGlyph(this.characterToGlyph(i))+n*(1e3/t)||0;return o*(t/1e3)},e.prototype.lineHeight=function(e,t){var n;return null==t&&(t=!1),n=t?this.lineGap:0,(this.ascender+n-this.decender)/1e3*e},e}();var l,c=function(){function e(e){this.data=null!=e?e:[],this.pos=0,this.length=this.data.length}return e.prototype.readByte=function(){return this.data[this.pos++]},e.prototype.writeByte=function(e){return this.data[this.pos++]=e},e.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},e.prototype.writeUInt32=function(e){return this.writeByte(e>>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e)},e.prototype.readInt32=function(){var e;return 2147483648<=(e=this.readUInt32())?e-4294967296:e},e.prototype.writeInt32=function(e){return e<0&&(e+=4294967296),this.writeUInt32(e)},e.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},e.prototype.writeUInt16=function(e){return this.writeByte(e>>8&255),this.writeByte(255&e)},e.prototype.readInt16=function(){var e;return 32768<=(e=this.readUInt16())?e-65536:e},e.prototype.writeInt16=function(e){return e<0&&(e+=65536),this.writeUInt16(e)},e.prototype.readString=function(e){var t,n,i;for(n=[],t=i=0;0<=e?i<e:e<i;t=0<=e?++i:--i)n[t]=String.fromCharCode(this.readByte());return n.join("")},e.prototype.writeString=function(e){var t,n,i,r;for(r=[],t=n=0,i=e.length;0<=i?n<i:i<n;t=0<=i?++n:--n)r.push(this.writeByte(e.charCodeAt(t)));return r},e.prototype.readShort=function(){return this.readInt16()},e.prototype.writeShort=function(e){return this.writeInt16(e)},e.prototype.readLongLong=function(){var e,t,n,i,r,o,s,a;return e=this.readByte(),t=this.readByte(),n=this.readByte(),i=this.readByte(),r=this.readByte(),o=this.readByte(),s=this.readByte(),a=this.readByte(),128&e?-1*(72057594037927940*(255^e)+281474976710656*(255^t)+1099511627776*(255^n)+4294967296*(255^i)+16777216*(255^r)+65536*(255^o)+256*(255^s)+(255^a)+1):72057594037927940*e+281474976710656*t+1099511627776*n+4294967296*i+16777216*r+65536*o+256*s+a},e.prototype.writeLongLong=function(e){var t,n;return t=Math.floor(e/4294967296),n=4294967295&e,this.writeByte(t>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t),this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n)},e.prototype.readInt=function(){return this.readInt32()},e.prototype.writeInt=function(e){return this.writeInt32(e)},e.prototype.read=function(e){var t,n;for(t=[],n=0;0<=e?n<e:e<n;0<=e?++n:--n)t.push(this.readByte());return t},e.prototype.write=function(e){var t,n,i,r;for(r=[],n=0,i=e.length;n<i;n++)t=e[n],r.push(this.writeByte(t));return r},e}(),d=function(){var e;function t(e){var t,n,i;for(this.scalarType=e.readInt(),this.tableCount=e.readShort(),this.searchRange=e.readShort(),this.entrySelector=e.readShort(),this.rangeShift=e.readShort(),this.tables={},n=0,i=this.tableCount;0<=i?n<i:i<n;0<=i?++n:--n)t={tag:e.readString(4),checksum:e.readInt(),offset:e.readInt(),length:e.readInt()},this.tables[t.tag]=t}return t.prototype.encode=function(t){var n,i,r,o,s,a,u,l,d,h,f,p,g;for(g in f=Object.keys(t).length,a=Math.log(2),d=16*Math.floor(Math.log(f)/a),o=Math.floor(d/a),l=16*f-d,(i=new c).writeInt(this.scalarType),i.writeShort(f),i.writeShort(d),i.writeShort(o),i.writeShort(l),r=16*f,u=i.pos+r,s=null,p=[],t)for(h=t[g],i.writeString(g),i.writeInt(e(h)),i.writeInt(u),i.writeInt(h.length),p=p.concat(h),"head"===g&&(s=u),u+=h.length;u%4;)p.push(0),u++;return i.write(p),n=2981146554-e(i.data),i.pos=s+8,i.writeUInt32(n),i.data},e=function(e){var t,n,i,r;for(e=S.call(e);e.length%4;)e.push(0);for(n=new c(e),i=t=0,r=e.length;i<r;i+=4)t+=n.readUInt32();return 4294967295&t},t}(),h={}.hasOwnProperty,f=function(e,t){for(var n in t)h.call(t,n)&&(e[n]=t[n]);function i(){this.constructor=e}return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e};l=function(){function e(e){var t;this.file=e,t=this.file.directory.tables[this.tag],this.exists=!!t,t&&(this.offset=t.offset,this.length=t.length,this.parse(this.file.contents))}return e.prototype.parse=function(){},e.prototype.encode=function(){},e.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},e}();var p=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return f(t,l),t.prototype.tag="head",t.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.revision=e.readInt(),this.checkSumAdjustment=e.readInt(),this.magicNumber=e.readInt(),this.flags=e.readShort(),this.unitsPerEm=e.readShort(),this.created=e.readLongLong(),this.modified=e.readLongLong(),this.xMin=e.readShort(),this.yMin=e.readShort(),this.xMax=e.readShort(),this.yMax=e.readShort(),this.macStyle=e.readShort(),this.lowestRecPPEM=e.readShort(),this.fontDirectionHint=e.readShort(),this.indexToLocFormat=e.readShort(),this.glyphDataFormat=e.readShort()},t.prototype.encode=function(e){var t;return(t=new c).writeInt(this.version),t.writeInt(this.revision),t.writeInt(this.checkSumAdjustment),t.writeInt(this.magicNumber),t.writeShort(this.flags),t.writeShort(this.unitsPerEm),t.writeLongLong(this.created),t.writeLongLong(this.modified),t.writeShort(this.xMin),t.writeShort(this.yMin),t.writeShort(this.xMax),t.writeShort(this.yMax),t.writeShort(this.macStyle),t.writeShort(this.lowestRecPPEM),t.writeShort(this.fontDirectionHint),t.writeShort(e),t.writeShort(this.glyphDataFormat),t.data},t}(),g=function(){function e(e,t){var n,i,r,o,s,a,u,l,c,d,h,f,p,g,A,m,v,_;switch(this.platformID=e.readUInt16(),this.encodingID=e.readShort(),this.offset=t+e.readInt(),c=e.pos,e.pos=this.offset,this.format=e.readUInt16(),this.length=e.readUInt16(),this.language=e.readUInt16(),this.isUnicode=3===this.platformID&&1===this.encodingID&&4===this.format||0===this.platformID&&4===this.format,this.codeMap={},this.format){case 0:for(a=A=0;A<256;a=++A)this.codeMap[a]=e.readByte();break;case 4:for(h=e.readUInt16(),d=h/2,e.pos+=6,r=function(){var t,n;for(n=[],a=t=0;0<=d?t<d:d<t;a=0<=d?++t:--t)n.push(e.readUInt16());return n}(),e.pos+=2,p=function(){var t,n;for(n=[],a=t=0;0<=d?t<d:d<t;a=0<=d?++t:--t)n.push(e.readUInt16());return n}(),u=function(){var t,n;for(n=[],a=t=0;0<=d?t<d:d<t;a=0<=d?++t:--t)n.push(e.readUInt16());return n}(),l=function(){var t,n;for(n=[],a=t=0;0<=d?t<d:d<t;a=0<=d?++t:--t)n.push(e.readUInt16());return n}(),i=(this.length-e.pos+this.offset)/2,s=function(){var t,n;for(n=[],a=t=0;0<=i?t<i:i<t;a=0<=i?++t:--t)n.push(e.readUInt16());return n}(),a=m=0,_=r.length;m<_;a=++m)for(g=r[a],n=v=f=p[a];f<=g?v<=g:g<=v;n=f<=g?++v:--v)0===l[a]?o=n+u[a]:0!==(o=s[l[a]/2+(n-f)-(d-a)]||0)&&(o+=u[a]),this.codeMap[n]=65535&o}e.pos=c}return e.encode=function(e,t){var n,i,r,o,s,a,u,l,d,h,f,p,g,A,m,v,_,y,b,w,C,S,N,L,E,x,O,B,k,D,I,M,F,T,R,P,U,H,j,Q,V,W,z,K,q,G;switch(B=new c,o=Object.keys(e).sort((function(e,t){return e-t})),t){case"macroman":for(g=0,A=function(){var e,t;for(t=[],p=e=0;e<256;p=++e)t.push(0);return t}(),v={0:0},r={},k=0,F=o.length;k<F;k++)null==v[z=e[i=o[k]]]&&(v[z]=++g),r[i]={old:e[i],new:v[e[i]]},A[i]=v[e[i]];return B.writeUInt16(1),B.writeUInt16(0),B.writeUInt32(12),B.writeUInt16(0),B.writeUInt16(262),B.writeUInt16(0),B.write(A),{charMap:r,subtable:B.data,maxGlyphID:g+1};case"unicode":for(x=[],d=[],v={},n={},m=u=null,D=_=0,T=o.length;D<T;D++)null==v[b=e[i=o[D]]]&&(v[b]=++_),n[i]={old:b,new:v[b]},s=v[b]-i,null!=m&&s===u||(m&&d.push(m),x.push(i),u=s),m=i;for(m&&d.push(m),d.push(65535),x.push(65535),L=2*(N=x.length),S=2*Math.pow(Math.log(N)/Math.LN2,2),h=Math.log(S/2)/Math.LN2,C=2*N-S,a=[],w=[],f=[],p=I=0,R=x.length;I<R;p=++I){if(E=x[p],l=d[p],65535===E){a.push(0),w.push(0);break}if(32768<=E-(O=n[E].new))for(a.push(0),w.push(2*(f.length+N-p)),i=M=E;E<=l?M<=l:l<=M;i=E<=l?++M:--M)f.push(n[i].new);else a.push(O-E),w.push(0)}for(B.writeUInt16(3),B.writeUInt16(1),B.writeUInt32(12),B.writeUInt16(4),B.writeUInt16(16+8*N+2*f.length),B.writeUInt16(0),B.writeUInt16(L),B.writeUInt16(S),B.writeUInt16(h),B.writeUInt16(C),V=0,P=d.length;V<P;V++)i=d[V],B.writeUInt16(i);for(B.writeUInt16(0),W=0,U=x.length;W<U;W++)i=x[W],B.writeUInt16(i);for(K=0,H=a.length;K<H;K++)s=a[K],B.writeUInt16(s);for(q=0,j=w.length;q<j;q++)y=w[q],B.writeUInt16(y);for(G=0,Q=f.length;G<Q;G++)g=f[G],B.writeUInt16(g);return{charMap:n,subtable:B.data,maxGlyphID:_+1}}},e}(),A=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return f(t,l),t.prototype.tag="cmap",t.prototype.parse=function(e){var t,n,i;for(e.pos=this.offset,this.version=e.readUInt16(),n=e.readUInt16(),this.tables=[],this.unicode=null,i=0;0<=n?i<n:n<i;0<=n?++i:--i)t=new g(e,this.offset),this.tables.push(t),t.isUnicode&&null==this.unicode&&(this.unicode=t);return!0},t.encode=function(e,t){var n,i;return null==t&&(t="macroman"),n=g.encode(e,t),(i=new c).writeUInt16(0),i.writeUInt16(1),n.table=i.data.concat(n.subtable),n},t}(),m=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return f(t,l),t.prototype.tag="hhea",t.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.ascender=e.readShort(),this.decender=e.readShort(),this.lineGap=e.readShort(),this.advanceWidthMax=e.readShort(),this.minLeftSideBearing=e.readShort(),this.minRightSideBearing=e.readShort(),this.xMaxExtent=e.readShort(),this.caretSlopeRise=e.readShort(),this.caretSlopeRun=e.readShort(),this.caretOffset=e.readShort(),e.pos+=8,this.metricDataFormat=e.readShort(),this.numberOfMetrics=e.readUInt16()},t}(),v=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return f(t,l),t.prototype.tag="OS/2",t.prototype.parse=function(e){if(e.pos=this.offset,this.version=e.readUInt16(),this.averageCharWidth=e.readShort(),this.weightClass=e.readUInt16(),this.widthClass=e.readUInt16(),this.type=e.readShort(),this.ySubscriptXSize=e.readShort(),this.ySubscriptYSize=e.readShort(),this.ySubscriptXOffset=e.readShort(),this.ySubscriptYOffset=e.readShort(),this.ySuperscriptXSize=e.readShort(),this.ySuperscriptYSize=e.readShort(),this.ySuperscriptXOffset=e.readShort(),this.ySuperscriptYOffset=e.readShort(),this.yStrikeoutSize=e.readShort(),this.yStrikeoutPosition=e.readShort(),this.familyClass=e.readShort(),this.panose=function(){var t,n;for(n=[],t=0;t<10;++t)n.push(e.readByte());return n}(),this.charRange=function(){var t,n;for(n=[],t=0;t<4;++t)n.push(e.readInt());return n}(),this.vendorID=e.readString(4),this.selection=e.readShort(),this.firstCharIndex=e.readShort(),this.lastCharIndex=e.readShort(),0<this.version&&(this.ascent=e.readShort(),this.descent=e.readShort(),this.lineGap=e.readShort(),this.winAscent=e.readShort(),this.winDescent=e.readShort(),this.codePageRange=function(){var t,n;for(n=[],t=0;t<2;++t)n.push(e.readInt());return n}(),1<this.version))return this.xHeight=e.readShort(),this.capHeight=e.readShort(),this.defaultChar=e.readShort(),this.breakChar=e.readShort(),this.maxContext=e.readShort()},t}(),_=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return f(t,l),t.prototype.tag="post",t.prototype.parse=function(e){var t,n,i,r;switch(e.pos=this.offset,this.format=e.readInt(),this.italicAngle=e.readInt(),this.underlinePosition=e.readShort(),this.underlineThickness=e.readShort(),this.isFixedPitch=e.readInt(),this.minMemType42=e.readInt(),this.maxMemType42=e.readInt(),this.minMemType1=e.readInt(),this.maxMemType1=e.readInt(),this.format){case 65536:break;case 131072:for(n=e.readUInt16(),this.glyphNameIndex=[],i=0;0<=n?i<n:n<i;0<=n?++i:--i)this.glyphNameIndex.push(e.readUInt16());for(this.names=[],r=[];e.pos<this.offset+this.length;)t=e.readByte(),r.push(this.names.push(e.readString(t)));return r;case 151552:return n=e.readUInt16(),this.offsets=e.read(n);case 196608:break;case 262144:return this.map=function(){var t,n,i;for(i=[],t=0,n=this.file.maxp.numGlyphs;0<=n?t<n:n<t;0<=n?++t:--t)i.push(e.readUInt32());return i}.call(this)}},t}(),y=function(e,t){this.raw=e,this.length=e.length,this.platformID=t.platformID,this.encodingID=t.encodingID,this.languageID=t.languageID},b=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return f(t,l),t.prototype.tag="name",t.prototype.parse=function(e){var t,n,i,r,o,s,a,u,l,c,d,h;for(e.pos=this.offset,e.readShort(),t=e.readShort(),s=e.readShort(),n=[],r=l=0;0<=t?l<t:t<l;r=0<=t?++l:--l)n.push({platformID:e.readShort(),encodingID:e.readShort(),languageID:e.readShort(),nameID:e.readShort(),length:e.readShort(),offset:this.offset+s+e.readShort()});for(a={},r=c=0,d=n.length;c<d;r=++c)i=n[r],e.pos=i.offset,u=e.readString(i.length),o=new y(u,i),null==a[h=i.nameID]&&(a[h]=[]),a[i.nameID].push(o);this.strings=a,this.copyright=a[0],this.fontFamily=a[1],this.fontSubfamily=a[2],this.uniqueSubfamily=a[3],this.fontName=a[4],this.version=a[5];try{this.postscriptName=a[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(e){this.postscriptName=a[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=a[7],this.manufacturer=a[8],this.designer=a[9],this.description=a[10],this.vendorUrl=a[11],this.designerUrl=a[12],this.license=a[13],this.licenseUrl=a[14],this.preferredFamily=a[15],this.preferredSubfamily=a[17],this.compatibleFull=a[18],this.sampleText=a[19]},t}(),w=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return f(t,l),t.prototype.tag="maxp",t.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.numGlyphs=e.readUInt16(),this.maxPoints=e.readUInt16(),this.maxContours=e.readUInt16(),this.maxCompositePoints=e.readUInt16(),this.maxComponentContours=e.readUInt16(),this.maxZones=e.readUInt16(),this.maxTwilightPoints=e.readUInt16(),this.maxStorage=e.readUInt16(),this.maxFunctionDefs=e.readUInt16(),this.maxInstructionDefs=e.readUInt16(),this.maxStackElements=e.readUInt16(),this.maxSizeOfInstructions=e.readUInt16(),this.maxComponentElements=e.readUInt16(),this.maxComponentDepth=e.readUInt16()},t}(),C=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return f(t,l),t.prototype.tag="hmtx",t.prototype.parse=function(e){var t,n,i,r,o,s,a;for(e.pos=this.offset,this.metrics=[],r=0,s=this.file.hhea.numberOfMetrics;0<=s?r<s:s<r;0<=s?++r:--r)this.metrics.push({advance:e.readUInt16(),lsb:e.readInt16()});for(n=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var t,i;for(i=[],t=0;0<=n?t<n:n<t;0<=n?++t:--t)i.push(e.readInt16());return i}(),this.widths=function(){var e,t,n,r;for(r=[],e=0,t=(n=this.metrics).length;e<t;e++)i=n[e],r.push(i.advance);return r}.call(this),t=this.widths[this.widths.length-1],a=[],o=0;0<=n?o<n:n<o;0<=n?++o:--o)a.push(this.widths.push(t));return a},t.prototype.forGlyph=function(e){return e in this.metrics?this.metrics[e]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[e-this.metrics.length]}},t}(),S=[].slice,N=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return f(t,l),t.prototype.tag="glyf",t.prototype.parse=function(e){return this.cache={}},t.prototype.glyphFor=function(e){var t,n,i,r,o,s,a,u,l,d;return(e=e)in this.cache?this.cache[e]:(r=this.file.loca,t=this.file.contents,n=r.indexOf(e),0===(i=r.lengthOf(e))?this.cache[e]=null:(t.pos=this.offset+n,o=(s=new c(t.read(i))).readShort(),u=s.readShort(),d=s.readShort(),a=s.readShort(),l=s.readShort(),this.cache[e]=-1===o?new E(s,u,d,a,l):new L(s,o,u,d,a,l),this.cache[e]))},t.prototype.encode=function(e,t,n){var i,r,o,s,a;for(o=[],r=[],s=0,a=t.length;s<a;s++)i=e[t[s]],r.push(o.length),i&&(o=o.concat(i.encode(n)));return r.push(o.length),{table:o,offsets:r}},t}(),L=function(){function e(e,t,n,i,r,o){this.raw=e,this.numberOfContours=t,this.xMin=n,this.yMin=i,this.xMax=r,this.yMax=o,this.compound=!1}return e.prototype.encode=function(){return this.raw.data},e}(),E=function(){function e(e,t,n,i,r){var o,s;for(this.raw=e,this.xMin=t,this.yMin=n,this.xMax=i,this.yMax=r,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],o=this.raw;s=o.readShort(),this.glyphOffsets.push(o.pos),this.glyphIDs.push(o.readShort()),32&s;)o.pos+=1&s?4:2,128&s?o.pos+=8:64&s?o.pos+=4:8&s&&(o.pos+=2)}return e.prototype.encode=function(e){var t,n,i,r,o;for(n=new c(S.call(this.raw.data)),t=i=0,r=(o=this.glyphIDs).length;i<r;t=++i)o[t],n.pos=this.glyphOffsets[t];return n.data},e}(),x=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return f(t,l),t.prototype.tag="loca",t.prototype.parse=function(e){var t;return e.pos=this.offset,t=this.file.head.indexToLocFormat,this.offsets=0===t?function(){var t,n,i;for(i=[],t=0,n=this.length;t<n;t+=2)i.push(2*e.readUInt16());return i}.call(this):function(){var t,n,i;for(i=[],t=0,n=this.length;t<n;t+=4)i.push(e.readUInt32());return i}.call(this)},t.prototype.indexOf=function(e){return this.offsets[e]},t.prototype.lengthOf=function(e){return this.offsets[e+1]-this.offsets[e]},t.prototype.encode=function(e,t){for(var n=new Uint32Array(this.offsets.length),i=0,r=0,o=0;o<n.length;++o)if(n[o]=i,r<t.length&&t[r]==o){++r,n[o]=i;var s=this.offsets[o],a=this.offsets[o+1]-s;0<a&&(i+=a)}for(var u=new Array(4*n.length),l=0;l<n.length;++l)u[4*l+3]=255&n[l],u[4*l+2]=(65280&n[l])>>8,u[4*l+1]=(16711680&n[l])>>16,u[4*l]=(4278190080&n[l])>>24;return u},t}(),O=function(){function e(e){this.font=e,this.subset={},this.unicodes={},this.next=33}return e.prototype.generateCmap=function(){var e,t,n,i,r;for(t in i=this.font.cmap.tables[0].codeMap,e={},r=this.subset)n=r[t],e[t]=i[n];return e},e.prototype.glyphsFor=function(e){var t,n,i,r,o,s,a;for(i={},o=0,s=e.length;o<s;o++)i[r=e[o]]=this.font.glyf.glyphFor(r);for(r in t=[],i)(null!=(n=i[r])?n.compound:void 0)&&t.push.apply(t,n.glyphIDs);if(0<t.length)for(r in a=this.glyphsFor(t))n=a[r],i[r]=n;return i},e.prototype.encode=function(e,t){var n,i,r,o,s,a,u,l,c,d,h,f,p,g,m;for(i in n=A.encode(this.generateCmap(),"unicode"),o=this.glyphsFor(e),h={0:0},m=n.charMap)h[(a=m[i]).old]=a.new;for(f in d=n.maxGlyphID,o)f in h||(h[f]=d++);return l=function(e){var t,n;for(t in n={},e)n[e[t]]=t;return n}(h),c=Object.keys(l).sort((function(e,t){return e-t})),p=function(){var e,t,n;for(n=[],e=0,t=c.length;e<t;e++)s=c[e],n.push(l[s]);return n}(),r=this.font.glyf.encode(o,p,h),u=this.font.loca.encode(r.offsets,p),g={cmap:this.font.cmap.raw(),glyf:r.table,loca:u,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(t)},this.font.os2.exists&&(g["OS/2"]=this.font.os2.raw()),this.font.directory.encode(g)},e}();e.API.PDFObject=function(){var e;function t(){}return e=function(e,t){return(Array(t+1).join("0")+e).slice(-t)},t.convert=function(n){var i,r,o,s;if(Array.isArray(n))return"["+function(){var e,r,o;for(o=[],e=0,r=n.length;e<r;e++)i=n[e],o.push(t.convert(i));return o}().join(" ")+"]";if("string"==typeof n)return"/"+n;if(null!=n?n.isString:void 0)return"("+n+")";if(n instanceof Date)return"(D:"+e(n.getUTCFullYear(),4)+e(n.getUTCMonth(),2)+e(n.getUTCDate(),2)+e(n.getUTCHours(),2)+e(n.getUTCMinutes(),2)+e(n.getUTCSeconds(),2)+"Z)";if("[object Object]"!=={}.toString.call(n))return""+n;for(r in o=["<<"],n)s=n[r],o.push("/"+r+" "+t.convert(s));return o.push(">>"),o.join("\n")},t}()}(pe),xe="undefined"!=typeof self&&self||"undefined"!=typeof window&&window||"undefined"!=typeof i&&i||Function('return typeof this === "object" && this.content')()||Function("return this")(),Oe=function(){var e,t,n;function i(e){var t,n,i,r,o,s,a,u,l,c,d,h,f,p;for(this.data=e,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},s=null;;){switch(t=this.readUInt32(),l=function(){var e,t;for(t=[],e=0;e<4;++e)t.push(String.fromCharCode(this.data[this.pos++]));return t}.call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(t);break;case"fcTL":s&&this.animation.frames.push(s),this.pos+=4,s={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},o=this.readUInt16(),r=this.readUInt16()||100,s.delay=1e3*o/r,s.disposeOp=this.data[this.pos++],s.blendOp=this.data[this.pos++],s.data=[];break;case"IDAT":case"fdAT":for("fdAT"===l&&(this.pos+=4,t-=4),e=(null!=s?s.data:void 0)||this.imgData,h=0;0<=t?h<t:t<h;0<=t?++h:--h)e.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(i=this.palette.length/3,this.transparency.indexed=this.read(t),this.transparency.indexed.length>i)throw new Error("More transparent colors than palette size");if(0<(c=i-this.transparency.indexed.length))for(f=0;0<=c?f<c:c<f;0<=c?++f:--f)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(t)[0];break;case 2:this.transparency.rgb=this.read(t)}break;case"tEXt":a=(d=this.read(t)).indexOf(0),u=String.fromCharCode.apply(String,d.slice(0,a)),this.text[u]=String.fromCharCode.apply(String,d.slice(a+1));break;case"IEND":return s&&this.animation.frames.push(s),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=4===(p=this.colorType)||6===p,n=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*n,this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=t}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}i.load=function(e,t,n){var r;return"function"==typeof t&&(n=t),(r=new XMLHttpRequest).open("GET",e,!0),r.responseType="arraybuffer",r.onload=function(){var e;return e=new i(new Uint8Array(r.response||r.mozResponseArrayBuffer)),"function"==typeof(null!=t?t.getContext:void 0)&&e.render(t),"function"==typeof n?n(e):void 0},r.send(null)},i.prototype.read=function(e){var t,n;for(n=[],t=0;0<=e?t<e:e<t;0<=e?++t:--t)n.push(this.data[this.pos++]);return n},i.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},i.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},i.prototype.decodePixels=function(e){var t=this.pixelBitlength/8,n=new Uint8Array(this.width*this.height*t),i=0,r=this;if(null==e&&(e=this.imgData),0===e.length)return new Uint8Array(0);function o(o,s,a,u){var l,c,d,h,f,p,g,A,m,v,_,y,b,w,C,S,N,L,E,x,O,B=Math.ceil((r.width-o)/a),k=Math.ceil((r.height-s)/u),D=r.width==B&&r.height==k;for(w=t*B,y=D?n:new Uint8Array(w*k),p=e.length,c=b=0;b<k&&i<p;){switch(e[i++]){case 0:for(h=N=0;N<w;h=N+=1)y[c++]=e[i++];break;case 1:for(h=L=0;L<w;h=L+=1)l=e[i++],f=h<t?0:y[c-t],y[c++]=(l+f)%256;break;case 2:for(h=E=0;E<w;h=E+=1)l=e[i++],d=(h-h%t)/t,C=b&&y[(b-1)*w+d*t+h%t],y[c++]=(C+l)%256;break;case 3:for(h=x=0;x<w;h=x+=1)l=e[i++],d=(h-h%t)/t,f=h<t?0:y[c-t],C=b&&y[(b-1)*w+d*t+h%t],y[c++]=(l+Math.floor((f+C)/2))%256;break;case 4:for(h=O=0;O<w;h=O+=1)l=e[i++],d=(h-h%t)/t,f=h<t?0:y[c-t],0===b?C=S=0:(C=y[(b-1)*w+d*t+h%t],S=d&&y[(b-1)*w+(d-1)*t+h%t]),g=f+C-S,A=Math.abs(g-f),v=Math.abs(g-C),_=Math.abs(g-S),m=A<=v&&A<=_?f:v<=_?C:S,y[c++]=(l+m)%256;break;default:throw new Error("Invalid filter algorithm: "+e[i-1])}if(!D){var I=((s+b*u)*r.width+o)*t,M=b*w;for(h=0;h<B;h+=1){for(var F=0;F<t;F+=1)n[I++]=y[M++];I+=(a-1)*t}}b++}}return e=(e=new Te(e)).getBytes(),1==r.interlaceMethod?(o(0,0,8,8),o(4,0,8,8),o(0,4,4,8),o(2,0,4,4),o(0,2,2,4),o(1,0,2,2),o(0,1,1,2)):o(0,0,1,1),n},i.prototype.decodePalette=function(){var e,t,n,i,r,o,s,a,u;for(n=this.palette,o=this.transparency.indexed||[],r=new Uint8Array((o.length||0)+n.length),i=0,n.length,t=s=e=0,a=n.length;s<a;t=s+=3)r[i++]=n[t],r[i++]=n[t+1],r[i++]=n[t+2],r[i++]=null!=(u=o[e++])?u:255;return r},i.prototype.copyToImageData=function(e,t){var n,i,r,o,s,a,u,l,c,d,h;if(i=this.colors,c=null,n=this.hasAlphaChannel,this.palette.length&&(c=null!=(h=this._decodedPalette)?h:this._decodedPalette=this.decodePalette(),i=4,n=!0),l=(r=e.data||e).length,s=c||t,o=a=0,1===i)for(;o<l;)u=c?4*t[o/4]:a,d=s[u++],r[o++]=d,r[o++]=d,r[o++]=d,r[o++]=n?s[u++]:255,a=u;else for(;o<l;)u=c?4*t[o/4]:a,r[o++]=s[u++],r[o++]=s[u++],r[o++]=s[u++],r[o++]=n?s[u++]:255,a=u},i.prototype.decode=function(){var e;return e=new Uint8Array(this.width*this.height*4),this.copyToImageData(e,this.decodePixels()),e};try{t=xe.document.createElement("canvas"),n=t.getContext("2d")}catch(s){return-1}return e=function(e){var i;return n.width=e.width,n.height=e.height,n.clearRect(0,0,e.width,e.height),n.putImageData(e,0,0),(i=new Image).src=t.toDataURL(),i},i.prototype.decodeFrames=function(t){var n,i,r,o,s,a,u,l;if(this.animation){for(l=[],i=s=0,a=(u=this.animation.frames).length;s<a;i=++s)n=u[i],r=t.createImageData(n.width,n.height),o=this.decodePixels(new Uint8Array(n.data)),this.copyToImageData(r,o),n.imageData=r,l.push(n.image=e(r));return l}},i.prototype.renderFrame=function(e,t){var n,i,r;return n=(i=this.animation.frames)[t],r=i[t-1],0===t&&e.clearRect(0,0,this.width,this.height),1===(null!=r?r.disposeOp:void 0)?e.clearRect(r.xOffset,r.yOffset,r.width,r.height):2===(null!=r?r.disposeOp:void 0)&&e.putImageData(r.imageData,r.xOffset,r.yOffset),0===n.blendOp&&e.clearRect(n.xOffset,n.yOffset,n.width,n.height),e.drawImage(n.image,n.xOffset,n.yOffset)},i.prototype.animate=function(e){var t,n,i,r,o,s,a=this;return n=0,s=this.animation,r=s.numFrames,i=s.frames,o=s.numPlays,(t=function(){var s,u;if(s=n++%r,u=i[s],a.renderFrame(e,s),1<r&&n/r<o)return a.animation._timeout=setTimeout(t,u.delay)})()},i.prototype.stopAnimation=function(){var e;return clearTimeout(null!=(e=this.animation)?e._timeout:void 0)},i.prototype.render=function(e){var t,n;return e._png&&e._png.stopAnimation(),e._png=this,e.width=this.width,e.height=this.height,t=e.getContext("2d"),this.animation?(this.decodeFrames(t),this.animate(t)):(n=t.createImageData(this.width,this.height),this.copyToImageData(n,this.decodePixels()),t.putImageData(n,0,0))},i}(),xe.PNG=Oe;var Fe=function(){function e(){this.pos=0,this.bufferLength=0,this.eof=!1,this.buffer=null}return e.prototype={ensureBuffer:function(e){var t=this.buffer,n=t?t.byteLength:0;if(e<n)return t;for(var i=512;i<e;)i<<=1;for(var r=new Uint8Array(i),o=0;o<n;++o)r[o]=t[o];return this.buffer=r},getByte:function(){for(var e=this.pos;this.bufferLength<=e;){if(this.eof)return null;this.readBlock()}return this.buffer[this.pos++]},getBytes:function(e){var t=this.pos;if(e){this.ensureBuffer(t+e);for(var n=t+e;!this.eof&&this.bufferLength<n;)this.readBlock();var i=this.bufferLength;i<n&&(n=i)}else{for(;!this.eof;)this.readBlock();n=this.bufferLength}return this.pos=n,this.buffer.subarray(t,n)},lookChar:function(){for(var e=this.pos;this.bufferLength<=e;){if(this.eof)return null;this.readBlock()}return String.fromCharCode(this.buffer[this.pos])},getChar:function(){for(var e=this.pos;this.bufferLength<=e;){if(this.eof)return null;this.readBlock()}return String.fromCharCode(this.buffer[this.pos++])},makeSubStream:function(e,t,n){for(var i=e+t;this.bufferLength<=i&&!this.eof;)this.readBlock();return new Stream(this.buffer,e,t,n)},skip:function(e){e||(e=1),this.pos+=e},reset:function(){this.pos=0}},e}(),Te=function(){if("undefined"!=typeof Uint32Array){var e=new Uint32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),t=new Uint32Array([3,4,5,6,7,8,9,10,65547,65549,65551,65553,131091,131095,131099,131103,196643,196651,196659,196667,262211,262227,262243,262259,327811,327843,327875,327907,258,258,258]),n=new Uint32Array([1,2,3,4,65541,65543,131081,131085,196625,196633,262177,262193,327745,327777,393345,393409,459009,459137,524801,525057,590849,591361,657409,658433,724993,727041,794625,798721,868353,876545]),i=[new Uint32Array([459008,524368,524304,524568,459024,524400,524336,590016,459016,524384,524320,589984,524288,524416,524352,590048,459012,524376,524312,589968,459028,524408,524344,590032,459020,524392,524328,59e4,524296,524424,524360,590064,459010,524372,524308,524572,459026,524404,524340,590024,459018,524388,524324,589992,524292,524420,524356,590056,459014,524380,524316,589976,459030,524412,524348,590040,459022,524396,524332,590008,524300,524428,524364,590072,459009,524370,524306,524570,459025,524402,524338,590020,459017,524386,524322,589988,524290,524418,524354,590052,459013,524378,524314,589972,459029,524410,524346,590036,459021,524394,524330,590004,524298,524426,524362,590068,459011,524374,524310,524574,459027,524406,524342,590028,459019,524390,524326,589996,524294,524422,524358,590060,459015,524382,524318,589980,459031,524414,524350,590044,459023,524398,524334,590012,524302,524430,524366,590076,459008,524369,524305,524569,459024,524401,524337,590018,459016,524385,524321,589986,524289,524417,524353,590050,459012,524377,524313,589970,459028,524409,524345,590034,459020,524393,524329,590002,524297,524425,524361,590066,459010,524373,524309,524573,459026,524405,524341,590026,459018,524389,524325,589994,524293,524421,524357,590058,459014,524381,524317,589978,459030,524413,524349,590042,459022,524397,524333,590010,524301,524429,524365,590074,459009,524371,524307,524571,459025,524403,524339,590022,459017,524387,524323,589990,524291,524419,524355,590054,459013,524379,524315,589974,459029,524411,524347,590038,459021,524395,524331,590006,524299,524427,524363,590070,459011,524375,524311,524575,459027,524407,524343,590030,459019,524391,524327,589998,524295,524423,524359,590062,459015,524383,524319,589982,459031,524415,524351,590046,459023,524399,524335,590014,524303,524431,524367,590078,459008,524368,524304,524568,459024,524400,524336,590017,459016,524384,524320,589985,524288,524416,524352,590049,459012,524376,524312,589969,459028,524408,524344,590033,459020,524392,524328,590001,524296,524424,524360,590065,459010,524372,524308,524572,459026,524404,524340,590025,459018,524388,524324,589993,524292,524420,524356,590057,459014,524380,524316,589977,459030,524412,524348,590041,459022,524396,524332,590009,524300,524428,524364,590073,459009,524370,524306,524570,459025,524402,524338,590021,459017,524386,524322,589989,524290,524418,524354,590053,459013,524378,524314,589973,459029,524410,524346,590037,459021,524394,524330,590005,524298,524426,524362,590069,459011,524374,524310,524574,459027,524406,524342,590029,459019,524390,524326,589997,524294,524422,524358,590061,459015,524382,524318,589981,459031,524414,524350,590045,459023,524398,524334,590013,524302,524430,524366,590077,459008,524369,524305,524569,459024,524401,524337,590019,459016,524385,524321,589987,524289,524417,524353,590051,459012,524377,524313,589971,459028,524409,524345,590035,459020,524393,524329,590003,524297,524425,524361,590067,459010,524373,524309,524573,459026,524405,524341,590027,459018,524389,524325,589995,524293,524421,524357,590059,459014,524381,524317,589979,459030,524413,524349,590043,459022,524397,524333,590011,524301,524429,524365,590075,459009,524371,524307,524571,459025,524403,524339,590023,459017,524387,524323,589991,524291,524419,524355,590055,459013,524379,524315,589975,459029,524411,524347,590039,459021,524395,524331,590007,524299,524427,524363,590071,459011,524375,524311,524575,459027,524407,524343,590031,459019,524391,524327,589999,524295,524423,524359,590063,459015,524383,524319,589983,459031,524415,524351,590047,459023,524399,524335,590015,524303,524431,524367,590079]),9],r=[new Uint32Array([327680,327696,327688,327704,327684,327700,327692,327708,327682,327698,327690,327706,327686,327702,327694,0,327681,327697,327689,327705,327685,327701,327693,327709,327683,327699,327691,327707,327687,327703,327695,0]),5];return(s.prototype=Object.create(Fe.prototype)).getBits=function(e){for(var t,n=this.codeSize,i=this.codeBuf,r=this.bytes,s=this.bytesPos;n<e;)void 0===(t=r[s++])&&o("Bad encoding in flate stream"),i|=t<<n,n+=8;return t=i&(1<<e)-1,this.codeBuf=i>>e,this.codeSize=n-=e,this.bytesPos=s,t},s.prototype.getCode=function(e){for(var t=e[0],n=e[1],i=this.codeSize,r=this.codeBuf,s=this.bytes,a=this.bytesPos;i<n;){var u;void 0===(u=s[a++])&&o("Bad encoding in flate stream"),r|=u<<i,i+=8}var l=t[r&(1<<n)-1],c=l>>16,d=65535&l;return(0==i||i<c||0==c)&&o("Bad encoding in flate stream"),this.codeBuf=r>>c,this.codeSize=i-c,this.bytesPos=a,d},s.prototype.generateHuffmanTable=function(e){for(var t=e.length,n=0,i=0;i<t;++i)e[i]>n&&(n=e[i]);for(var r=1<<n,o=new Uint32Array(r),s=1,a=0,u=2;s<=n;++s,a<<=1,u<<=1)for(var l=0;l<t;++l)if(e[l]==s){var c=0,d=a;for(i=0;i<s;++i)c=c<<1|1&d,d>>=1;for(i=c;i<r;i+=u)o[i]=s<<16|l;++a}return[o,n]},s.prototype.readBlock=function(){function s(e,t,n,i,r){for(var o=e.getBits(n)+i;0<o--;)t[p++]=r}var a=this.getBits(3);if(1&a&&(this.eof=!0),0!=(a>>=1)){var u,l;if(1==a)u=i,l=r;else if(2==a){for(var c=this.getBits(5)+257,d=this.getBits(5)+1,h=this.getBits(4)+4,f=Array(e.length),p=0;p<h;)f[e[p++]]=this.getBits(3);for(var g=this.generateHuffmanTable(f),A=0,m=(p=0,c+d),v=new Array(m);p<m;){var _=this.getCode(g);16==_?s(this,v,2,3,A):17==_?s(this,v,3,3,A=0):18==_?s(this,v,7,11,A=0):v[p++]=A=_}u=this.generateHuffmanTable(v.slice(0,c)),l=this.generateHuffmanTable(v.slice(c,m))}else o("Unknown block type in flate stream");for(var y=(D=this.buffer)?D.length:0,b=this.bufferLength;;){var w=this.getCode(u);if(w<256)y<=b+1&&(y=(D=this.ensureBuffer(b+1)).length),D[b++]=w;else{if(256==w)return void(this.bufferLength=b);var C=(w=t[w-=257])>>16;0<C&&(C=this.getBits(C)),A=(65535&w)+C,w=this.getCode(l),0<(C=(w=n[w])>>16)&&(C=this.getBits(C));var S=(65535&w)+C;y<=b+A&&(y=(D=this.ensureBuffer(b+A)).length);for(var N=0;N<A;++N,++b)D[b]=D[b-S]}}}else{var L,E=this.bytes,x=this.bytesPos;void 0===(L=E[x++])&&o("Bad block header in flate stream");var O=L;void 0===(L=E[x++])&&o("Bad block header in flate stream"),O|=L<<8,void 0===(L=E[x++])&&o("Bad block header in flate stream");var B=L;void 0===(L=E[x++])&&o("Bad block header in flate stream"),(B|=L<<8)!=(65535&~O)&&o("Bad uncompressed block length in flate stream"),this.codeBuf=0,this.codeSize=0;var k=this.bufferLength,D=this.ensureBuffer(k+O),I=k+O;this.bufferLength=I;for(var M=k;M<I;++M){if(void 0===(L=E[x++])){this.eof=!0;break}D[M]=L}this.bytesPos=x}},s}function o(e){throw new Error(e)}function s(e){var t=0,n=e[t++],i=e[t++];-1!=n&&-1!=i||o("Invalid header in flate stream"),8!=(15&n)&&o("Unknown compression method in flate stream"),((n<<8)+i)%31!=0&&o("Bad FCHECK in flate stream"),32&i&&o("FDICT bit set in flate stream"),this.bytes=e,this.bytesPos=2,this.codeSize=0,this.codeBuf=0,Fe.call(this)}}();window.tmp=Te}));try{e.exports=jsPDF}catch(s){}}).call(this,n("yLpj"))},"5TxY":function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return A}));var i=n("D3Dy"),r=n("EffR"),o=n("X+cX"),s=n("MI8n"),a=n("pmY6"),u=n("MNsG"),l=n("N0LK"),c=n("Comh"),d=n("gCVg"),h=n("CjF5"),f=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),p={forceCopyWithSyntaxHighlighting:!1},g=function(){function e(){this._lastState=null}return e.prototype.set=function(e,t){this._lastState={lastCopiedValue:e,data:t}},e.prototype.get=function(e){return this._lastState&&this._lastState.lastCopiedValue===e?this._lastState.data:(this._lastState=null,null)},e.INSTANCE=new e,e}(),A=function(e){function t(t,n){var a=e.call(this)||this;a.textArea=n,a._onFocus=a._register(new s["a"]),a.onFocus=a._onFocus.event,a._onBlur=a._register(new s["a"]),a.onBlur=a._onBlur.event,a._onKeyDown=a._register(new s["a"]),a.onKeyDown=a._onKeyDown.event,a._onKeyUp=a._register(new s["a"]),a.onKeyUp=a._onKeyUp.event,a._onCut=a._register(new s["a"]),a.onCut=a._onCut.event,a._onPaste=a._register(new s["a"]),a.onPaste=a._onPaste.event,a._onType=a._register(new s["a"]),a.onType=a._onType.event,a._onCompositionStart=a._register(new s["a"]),a.onCompositionStart=a._onCompositionStart.event,a._onCompositionUpdate=a._register(new s["a"]),a.onCompositionUpdate=a._onCompositionUpdate.event,a._onCompositionEnd=a._register(new s["a"]),a.onCompositionEnd=a._onCompositionEnd.event,a._onSelectionChangeRequest=a._register(new s["a"]),a.onSelectionChangeRequest=a._onSelectionChangeRequest.event,a._host=t,a._textArea=a._register(new v(n)),a._asyncTriggerCut=a._register(new o["d"]((function(){return a._onCut.fire()}),0)),a._textAreaState=c["b"].EMPTY,a._selectionChangeListener=null,a.writeScreenReaderContent("ctor"),a._hasFocus=!1,a._isDoingComposition=!1,a._nextCommand=0,a._register(r["n"](n.domNode,"keydown",(function(e){!a._isDoingComposition||109!==e.keyCode&&1!==e.keyCode||e.stopPropagation(),e.equals(9)&&e.preventDefault(),a._onKeyDown.fire(e)}))),a._register(r["n"](n.domNode,"keyup",(function(e){a._onKeyUp.fire(e)}))),a._register(r["i"](n.domNode,"compositionstart",(function(e){a._isDoingComposition||(a._isDoingComposition=!0,i["f"]||a._setAndWriteTextAreaState("compositionstart",c["b"].EMPTY),a._onCompositionStart.fire())})));var d=function(e){var t=a._textAreaState,n=c["b"].readFromTextArea(a._textArea);return[n,c["b"].deduceInput(t,n,e)]},h=function(e){var t=a._textAreaState,n=c["b"].selectedText(e),i={text:n.value,replaceCharCnt:t.selectionEnd-t.selectionStart};return[n,i]},f=function(e){return!(!i["f"]||"ja"!==e)||!(!i["i"]||0!==e.indexOf("zh-Han"))};return a._register(r["i"](n.domNode,"compositionupdate",(function(e){if(f(e.locale)){var t=d(!1),n=t[0],i=t[1];return a._textAreaState=n,a._onType.fire(i),void a._onCompositionUpdate.fire(e)}var r=h(e.data),o=r[0],s=r[1];a._textAreaState=o,a._onType.fire(s),a._onCompositionUpdate.fire(e)}))),a._register(r["i"](n.domNode,"compositionend",(function(e){if(a._isDoingComposition){if(f(e.locale)){var t=d(!1),n=t[0],r=t[1];a._textAreaState=n,a._onType.fire(r)}else{var o=h(e.data);n=o[0],r=o[1];a._textAreaState=n,a._onType.fire(r)}(i["f"]||i["d"])&&(a._textAreaState=c["b"].readFromTextArea(a._textArea)),a._isDoingComposition&&(a._isDoingComposition=!1,a._onCompositionEnd.fire())}}))),a._register(r["i"](n.domNode,"input",(function(){if(a._textArea.setIgnoreSelectionChangeTime("received input event"),!a._isDoingComposition){var e=d(u["e"]),t=e[0],n=e[1];0===n.replaceCharCnt&&1===n.text.length&&l["z"](n.text.charCodeAt(0))||(a._textAreaState=t,0===a._nextCommand?""!==n.text&&a._onType.fire(n):(""===n.text&&0===n.replaceCharCnt||a._firePaste(n.text,null),a._nextCommand=0))}}))),a._register(r["i"](n.domNode,"cut",(function(e){a._textArea.setIgnoreSelectionChangeTime("received cut event"),a._ensureClipboardGetsEditorSelection(e),a._asyncTriggerCut.schedule()}))),a._register(r["i"](n.domNode,"copy",(function(e){a._ensureClipboardGetsEditorSelection(e)}))),a._register(r["i"](n.domNode,"paste",(function(e){if(a._textArea.setIgnoreSelectionChangeTime("received paste event"),m.canUseTextData(e)){var t=m.getTextData(e),n=t[0],i=t[1];""!==n&&a._firePaste(n,i)}else a._textArea.getSelectionStart()!==a._textArea.getSelectionEnd()&&a._setAndWriteTextAreaState("paste",c["b"].EMPTY),a._nextCommand=1}))),a._register(r["i"](n.domNode,"focus",(function(){a._setHasFocus(!0)}))),a._register(r["i"](n.domNode,"blur",(function(){a._setHasFocus(!1)}))),a}return f(t,e),t.prototype._installSelectionChangeListener=function(){var e=this,t=0;return r["i"](document,"selectionchange",(function(n){if(e._hasFocus&&!e._isDoingComposition&&i["d"]&&u["h"]){var r=Date.now(),o=r-t;if(t=r,!(o<5)){var s=r-e._textArea.getIgnoreSelectionChangeTime();if(e._textArea.resetSelectionChangeTime(),!(s<100)&&e._textAreaState.selectionStartPosition&&e._textAreaState.selectionEndPosition){var a=e._textArea.getValue();if(e._textAreaState.value===a){var l=e._textArea.getSelectionStart(),c=e._textArea.getSelectionEnd();if(e._textAreaState.selectionStart!==l||e._textAreaState.selectionEnd!==c){var h=e._textAreaState.deduceEditorPosition(l),f=e._host.deduceModelPosition(h[0],h[1],h[2]),p=e._textAreaState.deduceEditorPosition(c),g=e._host.deduceModelPosition(p[0],p[1],p[2]),A=new d["a"](f.lineNumber,f.column,g.lineNumber,g.column);e._onSelectionChangeRequest.fire(A)}}}}}}))},t.prototype.dispose=function(){e.prototype.dispose.call(this),this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null)},t.prototype.focusTextArea=function(){this._setHasFocus(!0),this.refreshFocusState()},t.prototype.isFocused=function(){return this._hasFocus},t.prototype.refreshFocusState=function(){var e=r["D"](this.textArea.domNode);e?this._setHasFocus(e.activeElement===this.textArea.domNode):r["L"](this.textArea.domNode)?this._setHasFocus(document.activeElement===this.textArea.domNode):this._setHasFocus(!1)},t.prototype._setHasFocus=function(e){this._hasFocus!==e&&(this._hasFocus=e,this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null),this._hasFocus&&(this._selectionChangeListener=this._installSelectionChangeListener()),this._hasFocus&&(i["e"]?this._setAndWriteTextAreaState("focusgain",c["b"].EMPTY):this.writeScreenReaderContent("focusgain")),this._hasFocus?this._onFocus.fire():this._onBlur.fire())},t.prototype._setAndWriteTextAreaState=function(e,t){this._hasFocus||(t=t.collapseSelection()),t.writeToTextArea(e,this._textArea,this._hasFocus),this._textAreaState=t},t.prototype.writeScreenReaderContent=function(e){this._isDoingComposition||this._setAndWriteTextAreaState(e,this._host.getScreenReaderContent(this._textAreaState))},t.prototype._ensureClipboardGetsEditorSelection=function(e){var t=this._host.getDataToCopy(m.canUseTextData(e)&&h["a"].clipboard.richText),n={version:1,isFromEmptySelection:t.isFromEmptySelection,multicursorText:t.multicursorText,mode:t.mode};g.INSTANCE.set(i["h"]?t.text.replace(/\r\n/g,"\n"):t.text,n),m.canUseTextData(e)?m.setTextData(e,t.text,t.html,n):this._setAndWriteTextAreaState("copy or cut",c["b"].selectedText(t.text))},t.prototype._firePaste=function(e,t){t||(t=g.INSTANCE.get(e)),this._onPaste.fire({text:e,metadata:t})},t}(a["a"]),m=function(){function e(){}return e.canUseTextData=function(e){return!!e.clipboardData||!!window.clipboardData},e.getTextData=function(e){if(e.clipboardData){e.preventDefault();var t=e.clipboardData.getData("text/plain"),n=null,i=e.clipboardData.getData("vscode-editor-data");if("string"===typeof i)try{n=JSON.parse(i),1!==n.version&&(n=null)}catch(r){}return[t,n]}if(window.clipboardData){e.preventDefault();t=window.clipboardData.getData("Text");return[t,null]}throw new Error("ClipboardEventUtils.getTextData: Cannot use text data!")},e.setTextData=function(e,t,n,i){if(e.clipboardData)return e.clipboardData.setData("text/plain",t),"string"===typeof n&&e.clipboardData.setData("text/html",n),e.clipboardData.setData("vscode-editor-data",JSON.stringify(i)),void e.preventDefault();if(window.clipboardData)return window.clipboardData.setData("Text",t),void e.preventDefault();throw new Error("ClipboardEventUtils.setTextData: Cannot use text data!")},e}(),v=function(e){function t(t){var n=e.call(this)||this;return n._actual=t,n._ignoreSelectionChangeTime=0,n}return f(t,e),t.prototype.setIgnoreSelectionChangeTime=function(e){this._ignoreSelectionChangeTime=Date.now()},t.prototype.getIgnoreSelectionChangeTime=function(){return this._ignoreSelectionChangeTime},t.prototype.resetSelectionChangeTime=function(){this._ignoreSelectionChangeTime=0},t.prototype.getValue=function(){return this._actual.domNode.value},t.prototype.setValue=function(e,t){var n=this._actual.domNode;n.value!==t&&(this.setIgnoreSelectionChangeTime("setValue"),n.value=t)},t.prototype.getSelectionStart=function(){return this._actual.domNode.selectionStart},t.prototype.getSelectionEnd=function(){return this._actual.domNode.selectionEnd},t.prototype.setSelectionRange=function(e,t,n){var o=this._actual.domNode,s=null,a=r["D"](o);s=a?a.activeElement:document.activeElement;var u=s===o,l=o.selectionStart,c=o.selectionEnd;if(u&&l===t&&c===n)i["h"]&&window.parent!==window&&o.focus();else{if(u)return this.setIgnoreSelectionChangeTime("setSelectionRange"),o.setSelectionRange(t,n),void(i["h"]&&window.parent!==window&&o.focus());try{var d=r["U"](o);this.setIgnoreSelectionChangeTime("setSelectionRange"),o.focus(),o.setSelectionRange(t,n),r["S"](o,d)}catch(h){}}},t}(a["a"])},"5Y4S":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n("MNsG"),r=i["b"].performance&&"function"===typeof i["b"].performance.now,o=function(){function e(e){this._highResolution=r&&e,this._startTime=this._now(),this._stopTime=-1}return e.create=function(t){return void 0===t&&(t=!0),new e(t)},e.prototype.stop=function(){this._stopTime=this._now()},e.prototype.elapsed=function(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime},e.prototype._now=function(){return this._highResolution?i["b"].performance.now():(new Date).getTime()},e}()},"5gs/":function(e,t,n){"use strict";n.r(t);n("g9YV");var i=n("wCAj"),r=(n("2qtc"),n("kLXV")),o=(n("/zsF"),n("PArb")),s=(n("14J3"),n("BMrR")),a=(n("+L6B"),n("2/Rp")),u=(n("jCWc"),n("kPKH")),l=(n("sPJy"),n("bE4q")),c=(n("giR+"),n("fyUT")),d=(n("miYZ"),n("tsqr")),h=n("k1fw"),f=n("WmNS"),p=n.n(f),g=n("9og8"),A=n("tJVT"),m=n("PpiC"),v=n("q1tI"),_=n.n(v),y=n("wd/R"),b=n.n(y),w=n("WHYC"),C=n("uYtH"),S=n("9kvl"),N=n("jhfD"),L=n("CTES"),E=n("RCxd"),x=n("/MfK"),O=n("m3rI"),B=n("xKgJ"),k=n("1vsH"),D=n("cVA7"),I=n.n(D),M=n("z9Ch"),F=n.n(M),T={normal:{opacity:.8,shadowBlur:10,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0, 0, 0, 0)",color:"#2e65ad"}},R=e=>{var t,n,i,r=e.shixunHomeworks,o=(e.globalSetting,e.loading,e.dispatch,Object(w["m"])(),Object(w["l"])()),a=Object(v["useState"])([]),l=Object(A["a"])(a,2),c=(l[0],l[1],Object(v["useState"])(o.query.tabs||0)),d=Object(A["a"])(c,2),h=(d[0],d[1],r.shixunWorkReport),f=()=>{var e,t,n,i;return{title:{text:"\u5de5\u4f5c\u6548\u7387",subtext:"\u5de5\u4f5c\u6548\u7387=log(\u5b9e\u8bad\u603b\u5f97\u5206/\u5b9e\u8bad\u603b\u8017\u65f6)"},backgroundColor:"#fff",color:["#dd4444","#fec42c","#80F1BE"],grid:{left:"3%",right:"9%",bottom:"3%",containLabel:!0},tooltip:{showDelay:0,formatter:function(e){var t;return e.name===h.username?"\u59d3\u540d\uff1a"+h.username+"<br/>\u5b66\u53f7\uff1a "+h.user_id+"<br/>\u6548\u7387\uff1a"+(null===(t=h.echart_data)||void 0===t?void 0:t.myself_eff[1]):e.name+":"+e.value+" "},axisPointer:{show:!0,type:"cross",lineStyle:{type:"dashed",width:1}}},xAxis:[{type:"value",name:"\u5b66\u751f\u6548\u7387",nameTextStyle:{color:"#000",fontSize:12},scale:!0,axisLabel:{formatter:" "},axisTick:{show:!1},splitLine:{show:!1}}],yAxis:[{type:"value",name:" ",nameGap:20,nameTextStyle:{color:"#000",fontSize:12},scale:!0,axisLabel:{formatter:"{value}"},splitLine:{show:!1}}],series:[{name:"",type:"scatter",data:null===(e=h.echart_data)||void 0===e?void 0:e.efficiency_list,itemStyle:{normal:{color:"#2e65ad"}},markArea:{silent:!0,itemStyle:{normal:{color:"transparent",borderWidth:1,borderType:"dashed"}},data:[[{name:"\u5de5\u4f5c\u6548\u7387\u5206\u5e03\u533a\u95f4",xAxis:"min",yAxis:"min"},{xAxis:"max",yAxis:"max"}]]},markPoint:{data:[{name:h.username,xAxis:null===(t=h.echart_shixunWorkReport)||void 0===t?void 0:t.myself_eff[0],yAxis:null===(n=h.echart_shixunWorkReport)||void 0===n?void 0:n.myself_eff[1],value:null===(i=h.echart_data)||void 0===i?void 0:i.myself_eff[1]}],itemStyle:{normal:{color:"#c23531"}}},markLine:{lineStyle:{normal:{type:"solid",color:"#c23531"}},data:[{type:"average",name:"\u4e2d\u4f4d\u503c"}]}}]}},p=()=>{var e,t,n,i;return{title:{text:"\u80fd\u529b\u503c",subtext:"\u80fd\u529b\u503c\uff08\u5b9e\u8bad\u83b7\u5f97\u7ecf\u9a8c\u503c/\u5b9e\u8bad\u8bc4\u6d4b\u6b21\u6570\uff09"},backgroundColor:"#fff",color:["#dd4444","#fec42c","#80F1BE"],grid:{x:"10%",x2:150,y:"18%",y2:"10%"},tooltip:{padding:10,backgroundColor:"#222",borderColor:"#777",borderWidth:1,formatter:function(e){var t;e.value;if(e.name===h.username)return"\u59d3\u540d\uff1a"+h.username+"<br/>\u5b66\u53f7\uff1a "+h.user_id+"<br/>\u5f97\u5206\uff1a"+(null===(t=h.echart_data)||void 0===t?void 0:t.myself_object[1])}},xAxis:{type:"value",name:"log(\u5b9e\u8bad\u7684\u603b\u65f6\u95f4)",nameGap:16,nameTextStyle:{color:"#000",fontSize:14},splitLine:{show:!1},axisLine:{lineStyle:{color:"#000"}}},yAxis:{type:"value",name:" ",nameLocation:"end",nameGap:20,nameTextStyle:{color:"#000",fontSize:12},axisLine:{lineStyle:{color:"#000"}},splitLine:{show:!1}},series:[{name:"\u80fd\u529b",type:"scatter",itemStyle:T,data:null===(e=h.echart_data)||void 0===e?void 0:e.consume_list,symbolSize:function(e){return Math.round(e[2])},markPoint:{data:[{name:h.username,xAxis:null===(t=h.echart_data)||void 0===t?void 0:t.myself_object[0],yAxis:null===(n=h.echart_data)||void 0===n?void 0:n.myself_object[1],value:null===(i=h.echart_data)||void 0===i?void 0:i.myself_object[1]}],itemStyle:{normal:{color:"#c23531"}}}}]}};return _.a.createElement("section",{className:"ml60 pr30"},_.a.createElement("aside",null,_.a.createElement(s["a"],null,_.a.createElement(u["a"],{flex:"800px"},_.a.createElement(I.a,{style:{width:700},option:f()})),_.a.createElement(u["a"],{flex:"1"},_.a.createElement("aside",{className:F.a.rightInfo},_.a.createElement("ul",null,_.a.createElement("li",null,_.a.createElement("span",null,"\u59d3\u540d")," ",_.a.createElement("span",{className:"ml30"},h.username)),_.a.createElement("li",null,_.a.createElement("span",null,"\u5b66\u53f7")," ",_.a.createElement("span",{className:"ml30"},h.student_id||"--")),_.a.createElement("li",null,_.a.createElement("span",null,"\u5de5\u4f5c\u6548\u7387")," ",_.a.createElement("span",{className:"ml30 c-orange"},null===(t=h.echart_data)||void 0===t?void 0:t.myself_eff[1])),_.a.createElement("li",null,_.a.createElement("span",null,"\u5f53\u524d\u6392\u540d")," ",_.a.createElement("span",{className:"ml30 c-orange"},null===(n=h.echart_data)||void 0===n?void 0:n.myself_eff[0]))),_.a.createElement("p",null,"1\u4e2a\u5c0f\u5706\u70b9\u4ee3\u88681\u4e2a\u5b66\u751f\u7684\u5de5\u4f5c\u6548\u7387",_.a.createElement("br",null),"\u7ea2\u8272\u6c34\u6ef4\u8868\u793a\u5f53\u524d\u5b66\u751f\u7684\u5de5\u4f5c\u6548\u7387\u503c",_.a.createElement("br",null),"\u5c0f\u5706\u70b9\u8d8a\u9ad8\uff0c\u5de5\u4f5c\u6548\u7387\u8d8a\u9ad8",_.a.createElement("br",null),"\u7ea2\u8272\u6a2a\u5411\u7bad\u5934\uff1a\u4e2d\u4f4d\u503c\uff0c\u8868\u793a\u6574\u4e2a\u8bfe\u5802\u5b66\u751f\u8868\u73b0\u7684\u5e73\u5747\u503c"))))),_.a.createElement("aside",null,_.a.createElement(s["a"],null,_.a.createElement(u["a"],{flex:"800px"},_.a.createElement(I.a,{style:{width:600},option:p()})),_.a.createElement(u["a"],{flex:"1"},_.a.createElement("aside",{className:F.a.rightInfo},_.a.createElement("ul",null,_.a.createElement("li",null,_.a.createElement("span",null,"\u59d3\u540d")," ",_.a.createElement("span",{className:"ml30"},h.username)),_.a.createElement("li",null,_.a.createElement("span",null,"\u5b66\u53f7")," ",_.a.createElement("span",{className:"ml30"},h.student_id||"--")),_.a.createElement("li",null,_.a.createElement("span",null,"\u80fd\u529b")," ",_.a.createElement("span",{className:"ml30 c-orange"},null===(i=h.echart_data)||void 0===i?void 0:i.myself_object[1]))),_.a.createElement("p",null,"1\u4e2a\u5c0f\u5706\u70b9\u4ee3\u88681\u4e2a\u5b66\u751f\u7684\u80fd\u529b\u503c",_.a.createElement("br",null),"\u7ea2\u8272\u6c34\u6ef4\u8868\u793a\u5f53\u524d\u5b66\u751f\u7684\u80fd\u529b\u503c",_.a.createElement("br",null),"\u5c0f\u5706\u5708\u8d8a\u5927\uff0c\u8bc4\u6d4b\u6b21\u6570\u8d8a\u5c11",_.a.createElement("br",null)))))))},P=Object(S["a"])(e=>{var t=e.shixunHomeworks,n=e.loading,i=e.globalSetting;return{shixunHomeworks:t,globalSetting:i,loading:n.effects}})(R),U=n("gL5p"),H=n.n(U),j=e=>{var t,n=e.shixunHomeworks,r=(e.globalSetting,e.loading,e.dispatch,Object(w["m"])(),Object(w["l"])(),n.shixunWorkReport),o={selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1},s=[{title:"\u8bc4\u6d4b\u6b21\u6570",dataIndex:"position",width:120},{title:"\u8be6\u7ec6\u4fe1\u606f",dataIndex:"output_detail"}];return _.a.createElement("section",{className:"pl30 pr30"},null===(t=r.shixun_detail)||void 0===t?void 0:t.map((function(e,t){return console.log("111111:",e.outputs),_.a.createElement("aside",{key:t},_.a.createElement("div",{className:F.a.shixunTitle},_.a.createElement("span",{className:"fa fa-code "}),_.a.createElement("strong",{className:"c-black"},"\u7b2c",t+1,"\u5173 ",e.subject)),_.a.createElement("aside",{className:F.a.shixunWrp},_.a.createElement("h2",null,"\u6700\u540e\u901a\u5173\u7684\u4ee3\u7801",_.a.createElement("span",{className:"c-light-black"},e.path)),_.a.createElement(H.a,{height:300,language:"python",value:e.passed_code,options:o})),_.a.createElement("aside",{className:"mt10"},_.a.createElement(i["a"],{columns:s,dataSource:e.outputs})))})))},Q=Object(S["a"])(e=>{var t=e.shixunHomeworks,n=e.loading,i=e.globalSetting;return{shixunHomeworks:t,globalSetting:i,loading:n.effects}})(j),V=(n("5NDa"),n("5rEg")),W=(n("y8nQ"),n("Vl3Y")),z=n("ErOA"),K=e=>{var t=e.shixunHomeworks,n=e.dispatch,i=(Object(m["a"])(e,["shixunHomeworks","dispatch"]),Object(w["m"])()),o=Object(v["useState"])(!1),s=Object(A["a"])(o,2),a=s[0],u=s[1],l=W["a"].useForm(),c=Object(A["a"])(l,1),f=c[0],y=function(){var e=Object(g["a"])(p.a.mark((function e(){var t,r;return p.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=f.getFieldValue(),e.next=3,Object(z["a"])("/api/student_works/".concat(i.homeworkId,"/shixun_work_comment.json"),{method:"post",body:{hidden_comment:t.hidden_comment,comment:t.comment}});case 3:r=e.sent,0===r.status&&(d["a"].success("\u8bc4\u9605\u6210\u529f"),f.resetFields(),n({type:"shixunHomeworks/setActionTabs",payload:{}}),n({type:"shixunHomeworks/getShixunWorkReport",payload:Object(h["a"])({},i)}));case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return _.a.createElement(_.a.Fragment,null,_.a.createElement(r["a"],{title:"\u66f4\u6539\u70b9\u8bc4",visible:"\u66f4\u6539\u70b9\u8bc4"===t.actionTabs.key,okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",onOk:Object(g["a"])(p.a.mark((function e(){var t;return p.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=f.getFieldValue(),"{}"===JSON.stringify(t)||""===t.hidden_comment&&""===t.comment?u(!0):y();case 2:case"end":return e.stop()}}),e)}))),onCancel:()=>{n({type:"shixunHomeworks/setActionTabs",payload:{}})}},_.a.createElement(W["a"],{form:f,onChange:()=>{a&&u(!1)}},_.a.createElement("p",null,"\u5b66\u751f\u548c\u8bfe\u5802\u8001\u5e08\u53ef\u89c1"),_.a.createElement(W["a"].Item,{name:"comment"},_.a.createElement(V["a"].TextArea,{placeholder:"\u8bf7\u8f93\u5165\u8bc4\u9605\u5185\u5bb9",rows:8})),_.a.createElement("p",null,"\u4ec5\u8bfe\u5802\u8001\u5e08\u53ef\u89c1"),_.a.createElement(W["a"].Item,{name:"hidden_comment"},_.a.createElement(V["a"].TextArea,{placeholder:"\u8bf7\u8f93\u5165\u8bc4\u9605\u5185\u5bb9",rows:8}))),a&&_.a.createElement("p",{className:"c-red"},"\u8bc4\u9605\u5185\u5bb9\u81f3\u5c11\u6709\u4e00\u4e2a\u4e0d\u4e3a\u7a7a")))},q=Object(S["a"])(e=>{var t=e.shixunHomeworks;return{shixunHomeworks:t}})(K),G=n("Xm8N"),X=n("9Bee"),Y=n("XYT7"),J=n("1n7x"),Z=n.n(J),$=e=>{var t,n,f=e.shixunHomeworks,y=(e.globalSetting,e.loading,e.dispatch),S=(Object(m["a"])(e,["shixunHomeworks","globalSetting","loading","dispatch"]),Object(w["m"])()),D=(Object(w["l"])(),Object(v["useState"])([])),I=Object(A["a"])(D,2),M=(I[0],I[1],Object(v["useState"])({last:!1})),T=Object(A["a"])(M,2),R=T[0],U=T[1],H=Object(v["useRef"])(),j=f.shixunWorkReport;f.allStudentWorks;function V(){return W.apply(this,arguments)}function W(){return W=Object(g["a"])(p.a.mark((function e(){var t,n,i,r,o,s;return p.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=JSON.parse(sessionStorage["all_student_works_params"]||"{}"),e.next=3,y({type:"shixunHomeworks/getAllStudentWorks",payload:Object(h["a"])(Object(h["a"])({},S),i)});case 3:r=e.sent,o=null===(t=r["all_student_works"])||void 0===t?void 0:t.map(e=>String(e.student_work_id)).indexOf(S.homeworkId),o===(null===(n=r["all_student_works"])||void 0===n?void 0:n.length)-1?U({last:!0}):U(null===(s=r["all_student_works"])||void 0===s?void 0:s[o+1]);case 6:case"end":return e.stop()}}),e)}))),W.apply(this,arguments)}var z=function(){var e=Object(g["a"])(p.a.mark((function e(){var t,n;return p.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t={margin:10,filename:"test.pdf",enableLinks:!1,html2canvas:{scale:1,allowTaint:!1,useCORS:!0,width:1210},image:{type:"jpeg",quality:.98}},e.next=3,Z()().from(H.current).set(t).toPdf().output("bloburl");case 3:n=e.sent,window.open(n,"_blank");case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();Object(v["useEffect"])(()=>{y({type:"shixunHomeworks/getShixunWorkReport",payload:Object(h["a"])({},S)}),V()},[S.homeworkId]);var K=[{title:"\u5173\u5361",dataIndex:"name",render:(e,t,n)=>n+1},{title:"\u4efb\u52a1\u540d\u79f0",dataIndex:"name"},{title:"\u5f00\u542f\u65f6\u95f4",dataIndex:"open_time"},{title:"\u8bc4\u6d4b\u6b21\u6570",dataIndex:"evaluate_count"},{title:"\u5b8c\u6210\u65f6\u95f4",dataIndex:"finished_time"},{title:"\u5b9e\u6218\u8017\u65f6",dataIndex:"time_consuming"},{title:"\u662f\u5426\u67e5\u770b\u7b54\u6848",dataIndex:"view_answer",render:e=>e?"\u662f":"\u5426"},{title:"\u7ecf\u9a8c\u503c",dataIndex:"experience",render:(e,t)=>_.a.createElement("div",null,_.a.createElement("span",{className:"c-green"},t.myself_experience),"/",e)},{title:"\u5173\u5361\u5f97\u5206",dataIndex:"game_score",render:(e,t)=>_.a.createElement("div",null,_.a.createElement("span",{className:"c-green"},e),"/",t.game_score_full)},{title:"\u8c03\u5206",dataIndex:"game_score",render:(e,t)=>_.a.createElement(c["a"],{min:0,max:t.game_score_full,defaultValue:e,onBlur:function(){var n=Object(g["a"])(p.a.mark((function n(i){var r,o;return p.a.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(r=i.target.value,r==e){n.next=6;break}return n.next=4,y({type:"shixunHomeworks/changeScore",payload:{categoryId:S.homeworkId,type:"report",score:r,challenge_id:t.challenge_id}});case 4:o=n.sent,0===o.status&&d["a"].success("\u64cd\u4f5c\u6210\u529f");case 6:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}()})}];return _.a.createElement("section",{ref:H,className:"bg-fafafa",style:{position:"sticky",top:0}},_.a.createElement("div",{className:"edu-container"},j.course_id&&_.a.createElement("section",{className:"animated fadeIn"},_.a.createElement("aside",{className:"mt10"},j.category&&_.a.createElement(l["a"],{separator:">"},_.a.createElement(l["a"].Item,null,_.a.createElement(C["Link"],{to:"/classrooms/".concat(j.course_id,"/shixun_homework/0")},j.course_name)),_.a.createElement(l["a"].Item,null,_.a.createElement(C["Link"],{to:"/classrooms/".concat(j.course_id,"/shixun_homework/").concat(j.category.category_id)},j.category.category_name)),_.a.createElement(l["a"].Item,null,_.a.createElement(C["Link"],{to:"/classrooms/".concat(j.course_id,"/shixun_homework/").concat(j.homework_common_id,"/detail")},"\u4f5c\u4e1a\u8be6\u60c5")),_.a.createElement(l["a"].Item,null,j.username))),_.a.createElement("aside",{className:[F.a.title1,"mt20"].join(" ")},_.a.createElement(s["a"],{align:"middle"},_.a.createElement(u["a"],{flex:1},_.a.createElement(C["Link"],{to:"/classrooms/".concat(j.course_id,"/shixun_homework/").concat(j.homework_common_id,"/detail")},_.a.createElement(N["a"],{className:"font16 c-black"})),_.a.createElement("strong",{className:"font20 ml5"},j.shixun_name," "),_.a.createElement(k["c"],{status:j.homework_status})),_.a.createElement(u["a"],{className:F.a.title1_right},j.view_tpi&&_.a.createElement(a["a"],null,_.a.createElement("span",{className:"iconfont icon-yijiandianping mr5"}),_.a.createElement(C["Link"],{className:"c-black",target:"_blank",to:"/tasks/".concat(null===j||void 0===j||null===(t=j.shixun_detail)||void 0===t||null===(n=t[0])||void 0===n?void 0:n["game_identifier"])},"\u67e5\u770b\u5b66\u5458\u5b9e\u8bad")),Object(B["a"])()&&j.homework_end&&0!==j.myshixun_id&&_.a.createElement(a["a"],{className:"ml10",onClick:Object(g["a"])(p.a.mark((function e(){return p.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,y({type:"shixunHomeworks/setActionTabs",payload:{key:"\u6253\u56de\u91cd\u505a",selectArrs:{myshixun_identifier:j.myshixun_identifier}}});case 2:case"end":return e.stop()}}),e)})))},_.a.createElement("span",{className:"iconfont icon-dahuizhongzuo3x mr5"}),"\u6253\u56de\u91cd\u505a"),Object(B["a"])()&&_.a.createElement(a["a"],{className:"ml10",onClick:z},_.a.createElement("span",{className:"iconfont icon-daochu mr5"}),"\u5bfc\u51fa\u5b9e\u8bad\u62a5\u544a"))))),_.a.createElement("aside",{className:"mt30 relative"})),_.a.createElement("aside",{className:"edu-container bg-white"},_.a.createElement("div",{className:F.a.title},_.a.createElement("h1",null,"\u603b\u4f53\u8bc4\u4ef7"),_.a.createElement("div",null,B["a"]&&_.a.createElement(a["a"],{className:"mr20",type:"primary",onClick:()=>{y({type:"shixunHomeworks/setActionTabs",payload:{key:"\u66f4\u6539\u70b9\u8bc4",selectArrs:{myshixun_identifier:j.user_id}}})}},_.a.createElement(L["a"],null),j.has_shixun_work_comment?"\u66f4\u6539\u70b9\u8bc4":"\u70b9\u8bc4\u4f5c\u4e1a"))),_.a.createElement(o["a"],{style:{marginTop:0}}),_.a.createElement(s["a"],{className:"pl30 pr30"},_.a.createElement(u["a"],null,_.a.createElement("img",{className:F.a.userPic,src:"".concat(O["a"].IMG_SERVER,"/images/").concat(j.image_url),alt:j.username})),_.a.createElement(u["a"],null,_.a.createElement("span",{className:"font16 ml40"},j.username),_.a.createElement("ul",{className:F.a.userInfo},_.a.createElement("li",null,"\u5b66\u53f7\uff1a",j.student_id||"--"),_.a.createElement("li",null,"\u5f53\u524d\u5b8c\u6210\u5173\u5361\uff1a",_.a.createElement("span",{className:"c-red"},j.complete_count)," /",_.a.createElement("span",{className:"c-red"},j.challenges_count)),_.a.createElement("li",null,"\u5b8c\u6210\u6548\u7387\uff1a--"),_.a.createElement("br",null),_.a.createElement("li",null,"\u7ecf\u9a8c\u503c\uff1a",j.myself_experience,"/",j.total_experience),_.a.createElement("li",null,"\u8bfe\u5802\u6700\u9ad8\u5b8c\u6210\u6548\u7387\uff1a--"),_.a.createElement("li",null,"\u901a\u5173\u65f6\u95f4\uff1a",(null===j||void 0===j?void 0:j.passed_time)?b()(null===j||void 0===j?void 0:j.passed_time).format("YYYY-MM-DD HH:mm"):"--"))),_.a.createElement("ul",{className:[F.a.listItem,"mt10"].join(" ")},_.a.createElement("li",null,_.a.createElement("strong",null,"\u5b9e\u8bad\u603b\u8017\u65f6")),_.a.createElement("li",null,_.a.createElement("strong",null,"\u8bc4\u6d4b\u6b21\u6570")),_.a.createElement("li",null,_.a.createElement("strong",null,"\u5f53\u524d\u6210\u7ee9")),_.a.createElement("li",null,_.a.createElement("strong",null,"\u603b\u8bc4"))),_.a.createElement("ul",{className:F.a.listItem},_.a.createElement("li",null,_.a.createElement("span",{className:"c-light-black"},j.time_consuming)),_.a.createElement("li",null,j.evaluate_count),_.a.createElement("li",null,_.a.createElement("span",{className:"c-orange"},j.work_score),"/",_.a.createElement("span",{className:"c-light-black"},j.all_work_score)),_.a.createElement("li",null,_.a.createElement("span",{className:"c-orange"},j.overall_appraisal)))),_.a.createElement(o["a"],{style:{margin:0}}),(j.work_comment_hidden||j.work_comment)&&_.a.createElement("div",null,_.a.createElement(s["a"],{align:"middle"},_.a.createElement(u["a"],{flex:1},_.a.createElement("h1",{className:F.a.title},"\u70b9\u8bc4\u5185\u5bb9")),_.a.createElement(u["a"],{className:"pr30"},_.a.createElement(a["a"],{onClick:Object(g["a"])(p.a.mark((function e(){return p.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:e.t0=r["a"],e.t1=_.a.createElement(E["a"],null),e.t2={title:"\u63d0\u793a",icon:e.t1,content:"\u662f\u5426\u786e\u8ba4\u5220\u9664\uff1f",onOk(){return Object(g["a"])(p.a.mark((function e(){var t;return p.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(Y["h"])({comment_id:j.comment_id,homeworkId:S.homeworkId});case 2:t=e.sent,0===t.status&&(d["a"].success("\u5220\u9664\u6210\u529f"),y({type:"shixunHomeworks/getShixunWorkReport",payload:Object(h["a"])({},S)}));case 4:case"end":return e.stop()}}),e)})))()}},e.t0.confirm.call(e.t0,e.t2);case 4:case"end":return e.stop()}}),e)})))},_.a.createElement(x["a"],null),"\u5220\u9664"))),_.a.createElement(o["a"],{style:{margin:0}}),j.work_comment&&_.a.createElement("aside",{className:"pl30 pr30 mt20"},_.a.createElement("span",{className:"c-light-black font12"},"# \u5b66\u751f\u548c\u8bfe\u5802\u8001\u5e08\u53ef\u89c1"),_.a.createElement("br",null),_.a.createElement(X["a"],{value:j.work_comment})),j.work_comment_hidden&&_.a.createElement("aside",{className:"pl30 pr30 mt20"},_.a.createElement("span",{className:"c-light-black font12"},"# \u4ec5\u8bfe\u5802\u8001\u5e08\u53ef\u89c1"),_.a.createElement("br",null),_.a.createElement(X["a"],{value:j.work_comment_hidden}))),_.a.createElement("h1",{className:F.a.title},"\u9636\u6bb5\u6210\u7ee9"),_.a.createElement("aside",{className:"pl30 pr30"},_.a.createElement(i["a"],{dataSource:j.stage_list,pagination:!1,columns:K})),_.a.createElement("h1",{className:F.a.title},"\u56fe\u5f62\u7edf\u8ba1"),_.a.createElement(P,null),_.a.createElement("h1",{className:F.a.title},"\u5b9e\u8bad\u8be6\u60c5"),_.a.createElement(Q,null),_.a.createElement(o["a"],null)),Object(B["a"])()&&_.a.createElement("aside",{className:F.a.footerBar},_.a.createElement("aside",{className:"edu-container"},_.a.createElement(s["a"],{align:"middle"},_.a.createElement(u["a"],{flex:"1"},_.a.createElement(C["Link"],{className:F.a.exitComment,to:"/classrooms/".concat(S.coursesId,"/shixun_homework/").concat(S.categoryId,"/detail")},"\u9000\u51fa\u70b9\u8bc4")),_.a.createElement(u["a"],{flex:"1",className:"tr"},"\u4e0b\u4e00\u4e2a\u53ef\u70b9\u8bc4\u5b66\u751f\uff1a",(null===R||void 0===R?void 0:R.last)&&"\u5f53\u524d\u5df2\u662f\u6700\u540e\u4e00\u4f4d\u9700\u8981\u70b9\u8bc4\u7684\u5b66\u751f\uff0c\u4e3a\u60a8\u70b9\u8d5e\uff01",!(null===R||void 0===R?void 0:R.last)&&_.a.createElement(C["Link"],{className:F.a.nextComment,to:"/classrooms/".concat(S.coursesId,"/shixun_homework/").concat(S.categoryId,"/").concat(null===R||void 0===R?void 0:R.student_work_id,"/comment")},null===R||void 0===R?void 0:R.student_work_user_name))))),_.a.createElement(q,null),_.a.createElement(G["a"],null))};t["default"]=Object(S["a"])(e=>{var t=e.shixunHomeworks,n=e.loading,i=e.globalSetting;return{shixunHomeworks:t,globalSetting:i,loading:n.effects}})($)},"5v8Y":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n("MXAL"),r=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=function(e){function t(t){for(var n=e.call(this,0)||this,i=0,r=t.length;i<r;i++)n.set(t.charCodeAt(i),2);return n.set(32,1),n.set(9,1),n}return r(t,e),t}(i["a"]);function s(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e(n)),t[n]}}var a=s((function(e){return new o(e)}))},"62hx":function(e,t,n){},"6OMU":function(e,t,n){"use strict";function i(e,t){return void 0===t&&(t=0),e[e.length-(1+t)]}function r(e){if(0===e.length)throw new Error("Invalid tail call");return[e.slice(0,e.length-1),e[e.length-1]]}function o(e,t,n){if(void 0===n&&(n=function(e,t){return e===t}),e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(var i=0,r=e.length;i<r;i++)if(!n(e[i],t[i]))return!1;return!0}function s(e,t,n){var i=0,r=e.length-1;while(i<=r){var o=(i+r)/2|0,s=n(e[o],t);if(s<0)i=o+1;else{if(!(s>0))return o;r=o-1}}return-(i+1)}function a(e,t){var n=0,i=e.length;if(0===i)return 0;while(n<i){var r=Math.floor((n+i)/2);t(e[r])?i=r:n=r+1}return n}function u(e,t){return c(e,t,0,e.length-1,[]),e}function l(e,t,n,i,r,o){for(var s=n,a=i+1,u=n;u<=r;u++)o[u]=e[u];for(u=n;u<=r;u++)s>i?e[u]=o[a++]:a>r?e[u]=o[s++]:t(o[a],o[s])<0?e[u]=o[a++]:e[u]=o[s++]}function c(e,t,n,i,r){if(!(i<=n)){var o=n+(i-n)/2|0;c(e,t,n,o,r),c(e,t,o+1,i,r),t(e[o],e[o+1])<=0||l(e,t,n,o,i,r)}}function d(e,t){for(var n=[],i=void 0,r=0,o=u(e.slice(0),t);r<o.length;r++){var s=o[r];i&&0===t(i[0],s)?i.push(s):(i=[s],n.push(i))}return n}function h(e){return e.filter((function(e){return!!e}))}function f(e){return!Array.isArray(e)||0===e.length}function p(e){return Array.isArray(e)&&e.length>0}function g(e,t){if(!t)return e.filter((function(t,n){return e.indexOf(t)===n}));var n=Object.create(null);return e.filter((function(e){var i=t(e);return!n[i]&&(n[i]=!0,!0)}))}function A(e){var t=new Set;return e.filter((function(e){return!t.has(e)&&(t.add(e),!0)}))}function m(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}function v(e,t){for(var n=0;n<e.length;n++){var i=e[n];if(t(i))return n}return-1}function _(e,t,n){void 0===n&&(n=void 0);var i=v(e,t);return i<0?n:e[i]}function y(e,t){return e.length>0?e[0]:t}function b(e){var t;return(t=[]).concat.apply(t,e)}function w(e,t){var n="number"===typeof t?e:0;"number"===typeof t?n=e:(n=0,t=e);var i=[];if(n<=t)for(var r=n;r<t;r++)i.push(r);else for(r=n;r>t;r--)i.push(r);return i}function C(e,t,n){var i=e.slice(0,t),r=e.slice(t);return i.concat(n,r)}function S(e,t){var n=e.indexOf(t);n>-1&&(e.splice(n,1),e.unshift(t))}function N(e,t){var n=e.indexOf(t);n>-1&&(e.splice(n,1),e.push(t))}function L(e,t){for(var n=0;n<e.length;n++){var i=e[n];if(t(i,n,e))return i}}function E(e){return Array.isArray(e)?e:[e]}n.d(t,"v",(function(){return i})),n.d(t,"w",(function(){return r})),n.d(t,"g",(function(){return o})),n.d(t,"c",(function(){return s})),n.d(t,"i",(function(){return a})),n.d(t,"r",(function(){return u})),n.d(t,"o",(function(){return d})),n.d(t,"d",(function(){return h})),n.d(t,"p",(function(){return f})),n.d(t,"q",(function(){return p})),n.d(t,"e",(function(){return g})),n.d(t,"f",(function(){return A})),n.d(t,"n",(function(){return m})),n.d(t,"k",(function(){return v})),n.d(t,"j",(function(){return _})),n.d(t,"l",(function(){return y})),n.d(t,"m",(function(){return b})),n.d(t,"u",(function(){return w})),n.d(t,"a",(function(){return C})),n.d(t,"t",(function(){return S})),n.d(t,"s",(function(){return N})),n.d(t,"h",(function(){return L})),n.d(t,"b",(function(){return E}))},"6lNC":function(e,t,n){"use strict";n.r(t);var i=n("+hIS");Object(i["a"])({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:function(){return n.e(167).then(n.bind(null,"meXB"))}})},"746U":function(e,t,n){"use strict";n.d(t,"d",(function(){return r})),n.d(t,"j",(function(){return o})),n.d(t,"i",(function(){return s})),n.d(t,"h",(function(){return a})),n.d(t,"e",(function(){return u})),n.d(t,"k",(function(){return l})),n.d(t,"l",(function(){return c})),n.d(t,"a",(function(){return d})),n.d(t,"f",(function(){return f})),n.d(t,"g",(function(){return p})),n.d(t,"m",(function(){return g})),n.d(t,"c",(function(){return v})),n.d(t,"b",(function(){return _})),n.d(t,"n",(function(){return y})),n.d(t,"o",(function(){return b}));var i={number:"number",string:"string",undefined:"undefined",object:"object",function:"function"};function r(e){return Array.isArray?Array.isArray(e):!(!e||typeof e.length!==i.number||e.constructor!==Array)}function o(e){return typeof e===i.string||e instanceof String}function s(e){return typeof e===i.object&&null!==e&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function a(e){return(typeof e===i.number||e instanceof Number)&&!isNaN(e)}function u(e){return!0===e||!1===e}function l(e){return typeof e===i.undefined}function c(e){return l(e)||null===e}function d(e,t){if(!e)throw new Error(t?"Unexpected type, expected '"+t+"'":"Unexpected type")}var h=Object.prototype.hasOwnProperty;function f(e){if(!s(e))return!1;for(var t in e)if(h.call(e,t))return!1;return!0}function p(e){return typeof e===i.function}function g(e,t){for(var n=Math.min(e.length,t.length),i=0;i<n;i++)A(e[i],t[i])}function A(e,t){if(o(t)){if(typeof e!==t)throw new Error("argument does not match constraint: typeof "+t)}else if(p(t)){try{if(e instanceof t)return}catch(n){}if(!c(e)&&e.constructor===t)return;if(1===t.length&&!0===t.call(void 0,e))return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function m(e){var t=[],n=Object.getPrototypeOf(e);while(Object.prototype!==n)t=t.concat(Object.getOwnPropertyNames(n)),n=Object.getPrototypeOf(n);return t}function v(e){for(var t=[],n=0,i=m(e);n<i.length;n++){var r=i[n];"function"===typeof e[r]&&t.push(r)}return t}function _(e,t){for(var n=function(e){return function(){var n=Array.prototype.slice.call(arguments,0);return t(e,n)}},i={},r=0,o=e;r<o.length;r++){var s=o[r];i[s]=n(s)}return i}function y(e){return null===e?void 0:e}function b(e){return"undefined"===typeof e?null:e}},"79sc":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("Cg/j"),r=Object(i["c"])("markerDecorationsService")},"7afs":function(e,t,n){"use strict";function i(e,t){switch(void 0===t&&(t=0),typeof e){case"object":return null===e?r(349,t):Array.isArray(e)?a(e,t):u(e,t);case"string":return s(e,t);case"boolean":return o(e,t);case"number":return r(e,t);case"undefined":return r(0,937);default:return r(0,617)}}function r(e,t){return(t<<5)-t+e|0}function o(e,t){return r(e?433:863,t)}function s(e,t){t=r(149417,t);for(var n=0,i=e.length;n<i;n++)t=r(e.charCodeAt(n),t);return t}function a(e,t){return t=r(104579,t),e.reduce((function(e,t){return i(t,e)}),t)}function u(e,t){return t=r(181387,t),Object.keys(e).sort().reduce((function(t,n){return t=s(n,t),i(e[n],t)}),t)}n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}))},"7lZ/":function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n("qj0h"),r=n("Vhoy"),o=n("N0LK"),s=function(){function e(e,t){this.supportCodicons=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)}return Object.defineProperty(e.prototype,"element",{get:function(){return this.domNode},enumerable:!0,configurable:!0}),e.prototype.set=function(t,n,r,o){void 0===n&&(n=[]),void 0===r&&(r=""),t||(t=""),o&&(t=e.escapeNewLines(t,n)),this.didEverRender&&this.text===t&&this.title===r&&i["e"](this.highlights,n)||(Array.isArray(n)||(n=[]),this.text=t,this.title=r,this.highlights=n,this.render())},e.prototype.render=function(){for(var e="",t=0,n=0,i=this.highlights;n<i.length;n++){var s=i[n];if(s.end!==s.start){if(t<s.start){e+="<span>";var a=this.text.substring(t,s.start);e+=this.supportCodicons?Object(r["c"])(Object(o["o"])(a)):Object(o["o"])(a),e+="</span>",t=s.end}s.extraClasses?e+='<span class="highlight '+s.extraClasses+'">':e+='<span class="highlight">';var u=this.text.substring(s.start,s.end);e+=this.supportCodicons?Object(r["c"])(Object(o["o"])(u)):Object(o["o"])(u),e+="</span>",t=s.end}}if(t<this.text.length){e+="<span>";u=this.text.substring(t);e+=this.supportCodicons?Object(r["c"])(Object(o["o"])(u)):Object(o["o"])(u),e+="</span>"}this.domNode.innerHTML=e,this.title?this.domNode.title=this.title:this.domNode.removeAttribute("title"),this.didEverRender=!0},e.escapeNewLines=function(e,t){var n=0,i=0;return e.replace(/\r\n|\r|\n/g,(function(e,r){i="\r\n"===e?-1:0,r+=n;for(var o=0,s=t;o<s.length;o++){var a=s[o];a.end<=r||(a.start>=r&&(a.start+=i),a.end>=r&&(a.end+=i))}return n+=i,"\u23ce"}))},e}()},"7zd4":function(e,t,n){},"8ATB":function(e,t,n){},"8HAY":function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return l}));var i=n("pmY6"),r=n("MI8n"),o=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),s=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{u(i.next(e))}catch(t){o(t)}}function a(e){try{u(i["throw"](e))}catch(t){o(t)}}function u(e){e.done?n(e.value):r(e.value).then(s,a)}u((i=i.apply(e,t||[])).next())}))},a=function(e,t){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(e){return function(t){return u([e,t])}}function u(o){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,i&&(r=2&o[0]?i["return"]:o[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(r=s.trys,!(r=r.length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(a){o=[6,a],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},u=function(e){function t(t,n,i,o,s){void 0===n&&(n=""),void 0===i&&(i=""),void 0===o&&(o=!0);var a=e.call(this)||this;return a._onDidChange=a._register(new r["a"]),a.onDidChange=a._onDidChange.event,a._enabled=!0,a._checked=!1,a._id=t,a._label=n,a._cssClass=i,a._enabled=o,a._actionCallback=s,a}return o(t,e),Object.defineProperty(t.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"label",{get:function(){return this._label},set:function(e){this._setLabel(e)},enumerable:!0,configurable:!0}),t.prototype._setLabel=function(e){this._label!==e&&(this._label=e,this._onDidChange.fire({label:e}))},Object.defineProperty(t.prototype,"tooltip",{get:function(){return this._tooltip||""},set:function(e){this._setTooltip(e)},enumerable:!0,configurable:!0}),t.prototype._setTooltip=function(e){this._tooltip!==e&&(this._tooltip=e,this._onDidChange.fire({tooltip:e}))},Object.defineProperty(t.prototype,"class",{get:function(){return this._cssClass},set:function(e){this._setClass(e)},enumerable:!0,configurable:!0}),t.prototype._setClass=function(e){this._cssClass!==e&&(this._cssClass=e,this._onDidChange.fire({class:e}))},Object.defineProperty(t.prototype,"enabled",{get:function(){return this._enabled},set:function(e){this._setEnabled(e)},enumerable:!0,configurable:!0}),t.prototype._setEnabled=function(e){this._enabled!==e&&(this._enabled=e,this._onDidChange.fire({enabled:e}))},Object.defineProperty(t.prototype,"checked",{get:function(){return this._checked},set:function(e){this._setChecked(e)},enumerable:!0,configurable:!0}),t.prototype._setChecked=function(e){this._checked!==e&&(this._checked=e,this._onDidChange.fire({checked:e}))},t.prototype.run=function(e,t){return this._actionCallback?this._actionCallback(e):Promise.resolve(!0)},t}(i["a"]),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onDidBeforeRun=t._register(new r["a"]),t.onDidBeforeRun=t._onDidBeforeRun.event,t._onDidRun=t._register(new r["a"]),t.onDidRun=t._onDidRun.event,t}return o(t,e),t.prototype.run=function(e,t){return s(this,void 0,void 0,(function(){var n,i;return a(this,(function(r){switch(r.label){case 0:if(!e.enabled)return[2,Promise.resolve(null)];this._onDidBeforeRun.fire({action:e}),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.runAction(e,t)];case 2:return n=r.sent(),this._onDidRun.fire({action:e,result:n}),[3,4];case 3:return i=r.sent(),this._onDidRun.fire({action:e,error:i}),[3,4];case 4:return[2]}}))}))},t.prototype.runAction=function(e,t){var n=t?e.run(t):e.run();return Promise.resolve(n)},t}(i["a"])},"8HsV":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var i=function(){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._entries=new Map;for(var n=0,i=e;n<i.length;n++){var r=i[n],o=r[0],s=r[1];this.set(o,s)}}return e.prototype.set=function(e,t){var n=this._entries.get(e);return this._entries.set(e,t),n},e.prototype.has=function(e){return this._entries.has(e)},e.prototype.get=function(e){return this._entries.get(e)},e}()},"8gvo":function(e,t,n){},"8z58":function(e,t,n){"use strict";n.r(t),n.d(t,"CancellationTokenSource",(function(){return gl})),n.d(t,"Emitter",(function(){return Al})),n.d(t,"KeyCode",(function(){return ml})),n.d(t,"KeyMod",(function(){return vl})),n.d(t,"Position",(function(){return _l})),n.d(t,"Range",(function(){return yl})),n.d(t,"Selection",(function(){return bl})),n.d(t,"SelectionDirection",(function(){return wl})),n.d(t,"MarkerSeverity",(function(){return Cl})),n.d(t,"MarkerTag",(function(){return Sl})),n.d(t,"Uri",(function(){return Nl})),n.d(t,"Token",(function(){return Ll})),n.d(t,"editor",(function(){return El})),n.d(t,"languages",(function(){return xl}));var i,r,o,s,a,u,l,c,d,h,f,p,g,A,m,v,_,y,b,w,C,S,N,L,E,x,O,B,k,D,I,M,F,T=n("/UlZ"),R=(n("URDS"),n("JQT/")),P=n("MI8n"),U=n("/kV6"),H=n("bY76"),j=n("cGHE"),Q=n("aokT"),V=n("gCVg"),W=n("Tcc1");(function(e){e[e["Unknown"]=0]="Unknown",e[e["Disabled"]=1]="Disabled",e[e["Enabled"]=2]="Enabled"})(i||(i={})),function(e){e[e["KeepWhitespace"]=1]="KeepWhitespace",e[e["InsertAsSnippet"]=4]="InsertAsSnippet"}(r||(r={})),function(e){e[e["Method"]=0]="Method",e[e["Function"]=1]="Function",e[e["Constructor"]=2]="Constructor",e[e["Field"]=3]="Field",e[e["Variable"]=4]="Variable",e[e["Class"]=5]="Class",e[e["Struct"]=6]="Struct",e[e["Interface"]=7]="Interface",e[e["Module"]=8]="Module",e[e["Property"]=9]="Property",e[e["Event"]=10]="Event",e[e["Operator"]=11]="Operator",e[e["Unit"]=12]="Unit",e[e["Value"]=13]="Value",e[e["Constant"]=14]="Constant",e[e["Enum"]=15]="Enum",e[e["EnumMember"]=16]="EnumMember",e[e["Keyword"]=17]="Keyword",e[e["Text"]=18]="Text",e[e["Color"]=19]="Color",e[e["File"]=20]="File",e[e["Reference"]=21]="Reference",e[e["Customcolor"]=22]="Customcolor",e[e["Folder"]=23]="Folder",e[e["TypeParameter"]=24]="TypeParameter",e[e["Snippet"]=25]="Snippet"}(o||(o={})),function(e){e[e["Deprecated"]=1]="Deprecated"}(s||(s={})),function(e){e[e["Invoke"]=0]="Invoke",e[e["TriggerCharacter"]=1]="TriggerCharacter",e[e["TriggerForIncompleteCompletions"]=2]="TriggerForIncompleteCompletions"}(a||(a={})),function(e){e[e["EXACT"]=0]="EXACT",e[e["ABOVE"]=1]="ABOVE",e[e["BELOW"]=2]="BELOW"}(u||(u={})),function(e){e[e["NotSet"]=0]="NotSet",e[e["ContentFlush"]=1]="ContentFlush",e[e["RecoverFromMarkers"]=2]="RecoverFromMarkers",e[e["Explicit"]=3]="Explicit",e[e["Paste"]=4]="Paste",e[e["Undo"]=5]="Undo",e[e["Redo"]=6]="Redo"}(l||(l={})),function(e){e[e["LF"]=1]="LF",e[e["CRLF"]=2]="CRLF"}(c||(c={})),function(e){e[e["Text"]=0]="Text",e[e["Read"]=1]="Read",e[e["Write"]=2]="Write"}(d||(d={})),function(e){e[e["None"]=0]="None",e[e["Keep"]=1]="Keep",e[e["Brackets"]=2]="Brackets",e[e["Advanced"]=3]="Advanced",e[e["Full"]=4]="Full"}(h||(h={})),function(e){e[e["acceptSuggestionOnCommitCharacter"]=0]="acceptSuggestionOnCommitCharacter",e[e["acceptSuggestionOnEnter"]=1]="acceptSuggestionOnEnter",e[e["accessibilitySupport"]=2]="accessibilitySupport",e[e["accessibilityPageSize"]=3]="accessibilityPageSize",e[e["ariaLabel"]=4]="ariaLabel",e[e["autoClosingBrackets"]=5]="autoClosingBrackets",e[e["autoClosingOvertype"]=6]="autoClosingOvertype",e[e["autoClosingQuotes"]=7]="autoClosingQuotes",e[e["autoIndent"]=8]="autoIndent",e[e["automaticLayout"]=9]="automaticLayout",e[e["autoSurround"]=10]="autoSurround",e[e["codeLens"]=11]="codeLens",e[e["colorDecorators"]=12]="colorDecorators",e[e["comments"]=13]="comments",e[e["contextmenu"]=14]="contextmenu",e[e["copyWithSyntaxHighlighting"]=15]="copyWithSyntaxHighlighting",e[e["cursorBlinking"]=16]="cursorBlinking",e[e["cursorSmoothCaretAnimation"]=17]="cursorSmoothCaretAnimation",e[e["cursorStyle"]=18]="cursorStyle",e[e["cursorSurroundingLines"]=19]="cursorSurroundingLines",e[e["cursorSurroundingLinesStyle"]=20]="cursorSurroundingLinesStyle",e[e["cursorWidth"]=21]="cursorWidth",e[e["disableLayerHinting"]=22]="disableLayerHinting",e[e["disableMonospaceOptimizations"]=23]="disableMonospaceOptimizations",e[e["dragAndDrop"]=24]="dragAndDrop",e[e["emptySelectionClipboard"]=25]="emptySelectionClipboard",e[e["extraEditorClassName"]=26]="extraEditorClassName",e[e["fastScrollSensitivity"]=27]="fastScrollSensitivity",e[e["find"]=28]="find",e[e["fixedOverflowWidgets"]=29]="fixedOverflowWidgets",e[e["folding"]=30]="folding",e[e["foldingStrategy"]=31]="foldingStrategy",e[e["foldingHighlight"]=32]="foldingHighlight",e[e["fontFamily"]=33]="fontFamily",e[e["fontInfo"]=34]="fontInfo",e[e["fontLigatures"]=35]="fontLigatures",e[e["fontSize"]=36]="fontSize",e[e["fontWeight"]=37]="fontWeight",e[e["formatOnPaste"]=38]="formatOnPaste",e[e["formatOnType"]=39]="formatOnType",e[e["glyphMargin"]=40]="glyphMargin",e[e["gotoLocation"]=41]="gotoLocation",e[e["hideCursorInOverviewRuler"]=42]="hideCursorInOverviewRuler",e[e["highlightActiveIndentGuide"]=43]="highlightActiveIndentGuide",e[e["hover"]=44]="hover",e[e["inDiffEditor"]=45]="inDiffEditor",e[e["letterSpacing"]=46]="letterSpacing",e[e["lightbulb"]=47]="lightbulb",e[e["lineDecorationsWidth"]=48]="lineDecorationsWidth",e[e["lineHeight"]=49]="lineHeight",e[e["lineNumbers"]=50]="lineNumbers",e[e["lineNumbersMinChars"]=51]="lineNumbersMinChars",e[e["links"]=52]="links",e[e["matchBrackets"]=53]="matchBrackets",e[e["minimap"]=54]="minimap",e[e["mouseStyle"]=55]="mouseStyle",e[e["mouseWheelScrollSensitivity"]=56]="mouseWheelScrollSensitivity",e[e["mouseWheelZoom"]=57]="mouseWheelZoom",e[e["multiCursorMergeOverlapping"]=58]="multiCursorMergeOverlapping",e[e["multiCursorModifier"]=59]="multiCursorModifier",e[e["multiCursorPaste"]=60]="multiCursorPaste",e[e["occurrencesHighlight"]=61]="occurrencesHighlight",e[e["overviewRulerBorder"]=62]="overviewRulerBorder",e[e["overviewRulerLanes"]=63]="overviewRulerLanes",e[e["parameterHints"]=64]="parameterHints",e[e["peekWidgetDefaultFocus"]=65]="peekWidgetDefaultFocus",e[e["quickSuggestions"]=66]="quickSuggestions",e[e["quickSuggestionsDelay"]=67]="quickSuggestionsDelay",e[e["readOnly"]=68]="readOnly",e[e["renderControlCharacters"]=69]="renderControlCharacters",e[e["renderIndentGuides"]=70]="renderIndentGuides",e[e["renderFinalNewline"]=71]="renderFinalNewline",e[e["renderLineHighlight"]=72]="renderLineHighlight",e[e["renderValidationDecorations"]=73]="renderValidationDecorations",e[e["renderWhitespace"]=74]="renderWhitespace",e[e["revealHorizontalRightPadding"]=75]="revealHorizontalRightPadding",e[e["roundedSelection"]=76]="roundedSelection",e[e["rulers"]=77]="rulers",e[e["scrollbar"]=78]="scrollbar",e[e["scrollBeyondLastColumn"]=79]="scrollBeyondLastColumn",e[e["scrollBeyondLastLine"]=80]="scrollBeyondLastLine",e[e["selectionClipboard"]=81]="selectionClipboard",e[e["selectionHighlight"]=82]="selectionHighlight",e[e["selectOnLineNumbers"]=83]="selectOnLineNumbers",e[e["showFoldingControls"]=84]="showFoldingControls",e[e["showUnused"]=85]="showUnused",e[e["snippetSuggestions"]=86]="snippetSuggestions",e[e["smoothScrolling"]=87]="smoothScrolling",e[e["stopRenderingLineAfter"]=88]="stopRenderingLineAfter",e[e["suggest"]=89]="suggest",e[e["suggestFontSize"]=90]="suggestFontSize",e[e["suggestLineHeight"]=91]="suggestLineHeight",e[e["suggestOnTriggerCharacters"]=92]="suggestOnTriggerCharacters",e[e["suggestSelection"]=93]="suggestSelection",e[e["tabCompletion"]=94]="tabCompletion",e[e["useTabStops"]=95]="useTabStops",e[e["wordSeparators"]=96]="wordSeparators",e[e["wordWrap"]=97]="wordWrap",e[e["wordWrapBreakAfterCharacters"]=98]="wordWrapBreakAfterCharacters",e[e["wordWrapBreakBeforeCharacters"]=99]="wordWrapBreakBeforeCharacters",e[e["wordWrapColumn"]=100]="wordWrapColumn",e[e["wordWrapMinified"]=101]="wordWrapMinified",e[e["wrappingIndent"]=102]="wrappingIndent",e[e["wrappingStrategy"]=103]="wrappingStrategy",e[e["editorClassName"]=104]="editorClassName",e[e["pixelRatio"]=105]="pixelRatio",e[e["tabFocusMode"]=106]="tabFocusMode",e[e["layoutInfo"]=107]="layoutInfo",e[e["wrappingInfo"]=108]="wrappingInfo"}(f||(f={})),function(e){e[e["TextDefined"]=0]="TextDefined",e[e["LF"]=1]="LF",e[e["CRLF"]=2]="CRLF"}(p||(p={})),function(e){e[e["LF"]=0]="LF",e[e["CRLF"]=1]="CRLF"}(g||(g={})),function(e){e[e["None"]=0]="None",e[e["Indent"]=1]="Indent",e[e["IndentOutdent"]=2]="IndentOutdent",e[e["Outdent"]=3]="Outdent"}(A||(A={})),function(e){e[e["Unknown"]=0]="Unknown",e[e["Backspace"]=1]="Backspace",e[e["Tab"]=2]="Tab",e[e["Enter"]=3]="Enter",e[e["Shift"]=4]="Shift",e[e["Ctrl"]=5]="Ctrl",e[e["Alt"]=6]="Alt",e[e["PauseBreak"]=7]="PauseBreak",e[e["CapsLock"]=8]="CapsLock",e[e["Escape"]=9]="Escape",e[e["Space"]=10]="Space",e[e["PageUp"]=11]="PageUp",e[e["PageDown"]=12]="PageDown",e[e["End"]=13]="End",e[e["Home"]=14]="Home",e[e["LeftArrow"]=15]="LeftArrow",e[e["UpArrow"]=16]="UpArrow",e[e["RightArrow"]=17]="RightArrow",e[e["DownArrow"]=18]="DownArrow",e[e["Insert"]=19]="Insert",e[e["Delete"]=20]="Delete",e[e["KEY_0"]=21]="KEY_0",e[e["KEY_1"]=22]="KEY_1",e[e["KEY_2"]=23]="KEY_2",e[e["KEY_3"]=24]="KEY_3",e[e["KEY_4"]=25]="KEY_4",e[e["KEY_5"]=26]="KEY_5",e[e["KEY_6"]=27]="KEY_6",e[e["KEY_7"]=28]="KEY_7",e[e["KEY_8"]=29]="KEY_8",e[e["KEY_9"]=30]="KEY_9",e[e["KEY_A"]=31]="KEY_A",e[e["KEY_B"]=32]="KEY_B",e[e["KEY_C"]=33]="KEY_C",e[e["KEY_D"]=34]="KEY_D",e[e["KEY_E"]=35]="KEY_E",e[e["KEY_F"]=36]="KEY_F",e[e["KEY_G"]=37]="KEY_G",e[e["KEY_H"]=38]="KEY_H",e[e["KEY_I"]=39]="KEY_I",e[e["KEY_J"]=40]="KEY_J",e[e["KEY_K"]=41]="KEY_K",e[e["KEY_L"]=42]="KEY_L",e[e["KEY_M"]=43]="KEY_M",e[e["KEY_N"]=44]="KEY_N",e[e["KEY_O"]=45]="KEY_O",e[e["KEY_P"]=46]="KEY_P",e[e["KEY_Q"]=47]="KEY_Q",e[e["KEY_R"]=48]="KEY_R",e[e["KEY_S"]=49]="KEY_S",e[e["KEY_T"]=50]="KEY_T",e[e["KEY_U"]=51]="KEY_U",e[e["KEY_V"]=52]="KEY_V",e[e["KEY_W"]=53]="KEY_W",e[e["KEY_X"]=54]="KEY_X",e[e["KEY_Y"]=55]="KEY_Y",e[e["KEY_Z"]=56]="KEY_Z",e[e["Meta"]=57]="Meta",e[e["ContextMenu"]=58]="ContextMenu",e[e["F1"]=59]="F1",e[e["F2"]=60]="F2",e[e["F3"]=61]="F3",e[e["F4"]=62]="F4",e[e["F5"]=63]="F5",e[e["F6"]=64]="F6",e[e["F7"]=65]="F7",e[e["F8"]=66]="F8",e[e["F9"]=67]="F9",e[e["F10"]=68]="F10",e[e["F11"]=69]="F11",e[e["F12"]=70]="F12",e[e["F13"]=71]="F13",e[e["F14"]=72]="F14",e[e["F15"]=73]="F15",e[e["F16"]=74]="F16",e[e["F17"]=75]="F17",e[e["F18"]=76]="F18",e[e["F19"]=77]="F19",e[e["NumLock"]=78]="NumLock",e[e["ScrollLock"]=79]="ScrollLock",e[e["US_SEMICOLON"]=80]="US_SEMICOLON",e[e["US_EQUAL"]=81]="US_EQUAL",e[e["US_COMMA"]=82]="US_COMMA",e[e["US_MINUS"]=83]="US_MINUS",e[e["US_DOT"]=84]="US_DOT",e[e["US_SLASH"]=85]="US_SLASH",e[e["US_BACKTICK"]=86]="US_BACKTICK",e[e["US_OPEN_SQUARE_BRACKET"]=87]="US_OPEN_SQUARE_BRACKET",e[e["US_BACKSLASH"]=88]="US_BACKSLASH",e[e["US_CLOSE_SQUARE_BRACKET"]=89]="US_CLOSE_SQUARE_BRACKET",e[e["US_QUOTE"]=90]="US_QUOTE",e[e["OEM_8"]=91]="OEM_8",e[e["OEM_102"]=92]="OEM_102",e[e["NUMPAD_0"]=93]="NUMPAD_0",e[e["NUMPAD_1"]=94]="NUMPAD_1",e[e["NUMPAD_2"]=95]="NUMPAD_2",e[e["NUMPAD_3"]=96]="NUMPAD_3",e[e["NUMPAD_4"]=97]="NUMPAD_4",e[e["NUMPAD_5"]=98]="NUMPAD_5",e[e["NUMPAD_6"]=99]="NUMPAD_6",e[e["NUMPAD_7"]=100]="NUMPAD_7",e[e["NUMPAD_8"]=101]="NUMPAD_8",e[e["NUMPAD_9"]=102]="NUMPAD_9",e[e["NUMPAD_MULTIPLY"]=103]="NUMPAD_MULTIPLY",e[e["NUMPAD_ADD"]=104]="NUMPAD_ADD",e[e["NUMPAD_SEPARATOR"]=105]="NUMPAD_SEPARATOR",e[e["NUMPAD_SUBTRACT"]=106]="NUMPAD_SUBTRACT",e[e["NUMPAD_DECIMAL"]=107]="NUMPAD_DECIMAL",e[e["NUMPAD_DIVIDE"]=108]="NUMPAD_DIVIDE",e[e["KEY_IN_COMPOSITION"]=109]="KEY_IN_COMPOSITION",e[e["ABNT_C1"]=110]="ABNT_C1",e[e["ABNT_C2"]=111]="ABNT_C2",e[e["MAX_VALUE"]=112]="MAX_VALUE"}(m||(m={})),function(e){e[e["Hint"]=1]="Hint",e[e["Info"]=2]="Info",e[e["Warning"]=4]="Warning",e[e["Error"]=8]="Error"}(v||(v={})),function(e){e[e["Unnecessary"]=1]="Unnecessary",e[e["Deprecated"]=2]="Deprecated"}(_||(_={})),function(e){e[e["Inline"]=1]="Inline",e[e["Gutter"]=2]="Gutter"}(y||(y={})),function(e){e[e["UNKNOWN"]=0]="UNKNOWN",e[e["TEXTAREA"]=1]="TEXTAREA",e[e["GUTTER_GLYPH_MARGIN"]=2]="GUTTER_GLYPH_MARGIN",e[e["GUTTER_LINE_NUMBERS"]=3]="GUTTER_LINE_NUMBERS",e[e["GUTTER_LINE_DECORATIONS"]=4]="GUTTER_LINE_DECORATIONS",e[e["GUTTER_VIEW_ZONE"]=5]="GUTTER_VIEW_ZONE",e[e["CONTENT_TEXT"]=6]="CONTENT_TEXT",e[e["CONTENT_EMPTY"]=7]="CONTENT_EMPTY",e[e["CONTENT_VIEW_ZONE"]=8]="CONTENT_VIEW_ZONE",e[e["CONTENT_WIDGET"]=9]="CONTENT_WIDGET",e[e["OVERVIEW_RULER"]=10]="OVERVIEW_RULER",e[e["SCROLLBAR"]=11]="SCROLLBAR",e[e["OVERLAY_WIDGET"]=12]="OVERLAY_WIDGET",e[e["OUTSIDE_EDITOR"]=13]="OUTSIDE_EDITOR"}(b||(b={})),function(e){e[e["TOP_RIGHT_CORNER"]=0]="TOP_RIGHT_CORNER",e[e["BOTTOM_RIGHT_CORNER"]=1]="BOTTOM_RIGHT_CORNER",e[e["TOP_CENTER"]=2]="TOP_CENTER"}(w||(w={})),function(e){e[e["Left"]=1]="Left",e[e["Center"]=2]="Center",e[e["Right"]=4]="Right",e[e["Full"]=7]="Full"}(C||(C={})),function(e){e[e["Off"]=0]="Off",e[e["On"]=1]="On",e[e["Relative"]=2]="Relative",e[e["Interval"]=3]="Interval",e[e["Custom"]=4]="Custom"}(S||(S={})),function(e){e[e["None"]=0]="None",e[e["Text"]=1]="Text",e[e["Blocks"]=2]="Blocks"}(N||(N={})),function(e){e[e["Smooth"]=0]="Smooth",e[e["Immediate"]=1]="Immediate"}(L||(L={})),function(e){e[e["Auto"]=1]="Auto",e[e["Hidden"]=2]="Hidden",e[e["Visible"]=3]="Visible"}(E||(E={})),function(e){e[e["LTR"]=0]="LTR",e[e["RTL"]=1]="RTL"}(x||(x={})),function(e){e[e["Invoke"]=1]="Invoke",e[e["TriggerCharacter"]=2]="TriggerCharacter",e[e["ContentChange"]=3]="ContentChange"}(O||(O={})),function(e){e[e["File"]=0]="File",e[e["Module"]=1]="Module",e[e["Namespace"]=2]="Namespace",e[e["Package"]=3]="Package",e[e["Class"]=4]="Class",e[e["Method"]=5]="Method",e[e["Property"]=6]="Property",e[e["Field"]=7]="Field",e[e["Constructor"]=8]="Constructor",e[e["Enum"]=9]="Enum",e[e["Interface"]=10]="Interface",e[e["Function"]=11]="Function",e[e["Variable"]=12]="Variable",e[e["Constant"]=13]="Constant",e[e["String"]=14]="String",e[e["Number"]=15]="Number",e[e["Boolean"]=16]="Boolean",e[e["Array"]=17]="Array",e[e["Object"]=18]="Object",e[e["Key"]=19]="Key",e[e["Null"]=20]="Null",e[e["EnumMember"]=21]="EnumMember",e[e["Struct"]=22]="Struct",e[e["Event"]=23]="Event",e[e["Operator"]=24]="Operator",e[e["TypeParameter"]=25]="TypeParameter"}(B||(B={})),function(e){e[e["Deprecated"]=1]="Deprecated"}(k||(k={})),function(e){e[e["Hidden"]=0]="Hidden",e[e["Blink"]=1]="Blink",e[e["Smooth"]=2]="Smooth",e[e["Phase"]=3]="Phase",e[e["Expand"]=4]="Expand",e[e["Solid"]=5]="Solid"}(D||(D={})),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"}(I||(I={})),function(e){e[e["AlwaysGrowsWhenTypingAtEdges"]=0]="AlwaysGrowsWhenTypingAtEdges",e[e["NeverGrowsWhenTypingAtEdges"]=1]="NeverGrowsWhenTypingAtEdges",e[e["GrowsOnlyWhenTypingBefore"]=2]="GrowsOnlyWhenTypingBefore",e[e["GrowsOnlyWhenTypingAfter"]=3]="GrowsOnlyWhenTypingAfter"}(M||(M={})),function(e){e[e["None"]=0]="None",e[e["Same"]=1]="Same",e[e["Indent"]=2]="Indent",e[e["DeepIndent"]=3]="DeepIndent"}(F||(F={}));var z=function(){function e(){}return e.chord=function(e,t){return Object(U["a"])(e,t)},e.CtrlCmd=2048,e.Shift=1024,e.Alt=512,e.WinCtrl=256,e}();function K(){return{editor:void 0,languages:void 0,CancellationTokenSource:R["b"],Emitter:P["a"],KeyCode:m,KeyMod:z,Position:j["a"],Range:Q["a"],Selection:V["a"],SelectionDirection:x,MarkerSeverity:v,MarkerTag:_,Uri:H["a"],Token:W["a"]}}n("siPX");var q,G=n("Vxe3"),X=n("EffR"),Y=n("24hK"),J=n("Q4rV"),Z=n("tYmi"),$=n("gslv"),ee=n("nnTU"),te=n("W9cx");(function(e){e[e["API"]=0]="API",e[e["USER"]=1]="USER"})(q||(q={}));var ne=function(e,t,n,i){var r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},ie=function(e,t){return function(n,i){t(n,i,e)}},re=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{u(i.next(e))}catch(t){o(t)}}function a(e){try{u(i["throw"](e))}catch(t){o(t)}}function u(e){e.done?n(e.value):r(e.value).then(s,a)}u((i=i.apply(e,t||[])).next())}))},oe=function(e,t){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(e){return function(t){return u([e,t])}}function u(o){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,i&&(r=2&o[0]?i["return"]:o[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(r=s.trys,!(r=r.length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(a){o=[6,a],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},se=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i},ae=function(){function e(e){this._commandService=e}return e.prototype.open=function(e){return re(this,void 0,void 0,(function(){var t,n;return oe(this,(function(i){switch(i.label){case 0:if(!Object(te["c"])(e,Z["b"].command))return[2,!1];if("string"===typeof e&&(e=H["a"].parse(e)),!ee["a"].getCommand(e.path))throw new Error("command '"+e.path+"' NOT known");t=[];try{t=Object(J["a"])(decodeURIComponent(e.query))}catch(r){try{t=Object(J["a"])(e.query)}catch(o){}}return Array.isArray(t)||(t=[t]),[4,(n=this._commandService).executeCommand.apply(n,se([e.path],t))];case 1:return i.sent(),[2,!0]}}))}))},e=ne([ie(0,ee["b"])],e),e}(),ue=function(){function e(e){this._editorService=e}return e.prototype.open=function(e,t){return re(this,void 0,void 0,(function(){var n,i;return oe(this,(function(r){switch(r.label){case 0:return"string"===typeof e&&(e=H["a"].parse(e)),n=void 0,i=/^L?(\d+)(?:,(\d+))?/.exec(e.fragment),i&&(n={startLineNumber:parseInt(i[1]),startColumn:i[2]?parseInt(i[2]):1},e=e.with({fragment:""})),e.scheme===Z["b"].file&&(e=Object($["g"])(e)),[4,this._editorService.openCodeEditor({resource:e,options:{selection:n,context:(null===t||void 0===t?void 0:t.fromUserGesture)?q.USER:q.API}},this._editorService.getFocusedCodeEditor(),null===t||void 0===t?void 0:t.openToSide)];case 1:return r.sent(),[2,!0]}}))}))},e=ne([ie(0,G["a"])],e),e}(),le=function(){function e(e,t){var n=this;this._openers=new Y["a"],this._validators=new Y["a"],this._resolvers=new Y["a"],this._externalOpener={openExternal:function(e){return X["Z"](e),Promise.resolve(!0)}},this._openers.push({open:function(e,t){return re(n,void 0,void 0,(function(){return oe(this,(function(n){switch(n.label){case 0:return(null===t||void 0===t?void 0:t.openExternal)||Object(te["c"])(e,Z["b"].mailto)||Object(te["c"])(e,Z["b"].http)||Object(te["c"])(e,Z["b"].https)?[4,this._doOpenExternal(e,t)]:[3,2];case 1:return n.sent(),[2,!0];case 2:return[2,!1]}}))}))}}),this._openers.push(new ae(t)),this._openers.push(new ue(e))}return e.prototype.open=function(e,t){return re(this,void 0,void 0,(function(){var n,i,r,o,s,a,u;return oe(this,(function(l){switch(l.label){case 0:n=0,i=this._validators.toArray(),l.label=1;case 1:return n<i.length?(r=i[n],[4,r.shouldOpen(e)]):[3,4];case 2:if(!l.sent())return[2,!1];l.label=3;case 3:return n++,[3,1];case 4:o=0,s=this._openers.toArray(),l.label=5;case 5:return o<s.length?(a=s[o],[4,a.open(e,t)]):[3,8];case 6:if(u=l.sent(),u)return[2,!0];l.label=7;case 7:return o++,[3,5];case 8:return[2,!1]}}))}))},e.prototype.resolveExternalUri=function(e,t){return re(this,void 0,void 0,(function(){var n,i,r,o;return oe(this,(function(s){switch(s.label){case 0:n=0,i=this._resolvers.toArray(),s.label=1;case 1:return n<i.length?(r=i[n],[4,r.resolveExternalUri(e,t)]):[3,4];case 2:if(o=s.sent(),o)return[2,o];s.label=3;case 3:return n++,[3,1];case 4:return[2,{resolved:e,dispose:function(){}}]}}))}))},e.prototype._doOpenExternal=function(e,t){return re(this,void 0,void 0,(function(){var n,i;return oe(this,(function(r){switch(r.label){case 0:return n="string"===typeof e?H["a"].parse(e):e,[4,this.resolveExternalUri(n,t)];case 1:return i=r.sent().resolved,"string"===typeof e&&n.toString()===i.toString()?[2,this._externalOpener.openExternal(e)]:[2,this._externalOpener.openExternal(encodeURI(i.toString(!0)))]}}))}))},e.prototype.dispose=function(){this._validators.clear()},e=ne([ie(0,G["a"]),ie(1,ee["b"])],e),e}(),ce=n("FWmy"),de=n("pmY6"),he=n("qj0h"),fe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),pe={followsCaret:!0,ignoreCharChanges:!0,alwaysRevealFirst:!0},ge=function(e){function t(t,n){void 0===n&&(n={});var i=e.call(this)||this;return i._onDidUpdate=i._register(new P["a"]),i._editor=t,i._options=he["g"](n,pe,!1),i.disposed=!1,i.nextIdx=-1,i.ranges=[],i.ignoreSelectionChange=!1,i.revealFirst=Boolean(i._options.alwaysRevealFirst),i._register(i._editor.onDidDispose((function(){return i.dispose()}))),i._register(i._editor.onDidUpdateDiff((function(){return i._onDiffUpdated()}))),i._options.followsCaret&&i._register(i._editor.getModifiedEditor().onDidChangeCursorPosition((function(e){i.ignoreSelectionChange||(i.nextIdx=-1)}))),i._options.alwaysRevealFirst&&i._register(i._editor.getModifiedEditor().onDidChangeModel((function(e){i.revealFirst=!0}))),i._init(),i}return fe(t,e),t.prototype._init=function(){this._editor.getLineChanges()},t.prototype._onDiffUpdated=function(){this._init(),this._compute(this._editor.getLineChanges()),this.revealFirst&&null!==this._editor.getLineChanges()&&(this.revealFirst=!1,this.nextIdx=-1,this.next(1))},t.prototype._compute=function(e){var t=this;this.ranges=[],e&&e.forEach((function(e){!t._options.ignoreCharChanges&&e.charChanges?e.charChanges.forEach((function(e){t.ranges.push({rhs:!0,range:new Q["a"](e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn)})})):t.ranges.push({rhs:!0,range:new Q["a"](e.modifiedStartLineNumber,1,e.modifiedStartLineNumber,1)})})),this.ranges.sort((function(e,t){return e.range.getStartPosition().isBeforeOrEqual(t.range.getStartPosition())?-1:t.range.getStartPosition().isBeforeOrEqual(e.range.getStartPosition())?1:0})),this._onDidUpdate.fire(this)},t.prototype._initIdx=function(e){var t=!1,n=this._editor.getPosition();if(n){for(var i=0,r=this.ranges.length;i<r&&!t;i++){var o=this.ranges[i].range;n.isBeforeOrEqual(o.getStartPosition())&&(this.nextIdx=i+(e?0:-1),t=!0)}t||(this.nextIdx=e?0:this.ranges.length-1),this.nextIdx<0&&(this.nextIdx=this.ranges.length-1)}else this.nextIdx=0},t.prototype._move=function(e,t){if(ce["a"](!this.disposed,"Illegal State - diff navigator has been disposed"),this.canNavigate()){-1===this.nextIdx?this._initIdx(e):e?(this.nextIdx+=1,this.nextIdx>=this.ranges.length&&(this.nextIdx=0)):(this.nextIdx-=1,this.nextIdx<0&&(this.nextIdx=this.ranges.length-1));var n=this.ranges[this.nextIdx];this.ignoreSelectionChange=!0;try{var i=n.range.getStartPosition();this._editor.setPosition(i),this._editor.revealPositionInCenter(i,t)}finally{this.ignoreSelectionChange=!1}}},t.prototype.canNavigate=function(){return this.ranges&&this.ranges.length>0},t.prototype.next=function(e){void 0===e&&(e=0),this._move(!0,e)},t.prototype.previous=function(e){void 0===e&&(e=0),this._move(!1,e)},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.ranges=[],this.disposed=!0},t}(de["a"]),Ae=n("+3Gp"),me=n("iuje"),ve=n("M1Kb"),_e=n("twdY"),ye=n("i/Ef"),be=n("pAvP"),we=n("t49l"),Ce=n("X+cX"),Se=n("/cxE"),Ne=n("MNsG"),Le=n("746U"),Ee=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),xe="$initialize",Oe=!1;function Be(e){Ne["g"]&&(Oe||(Oe=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/Microsoft/monaco-editor#faq")),console.warn(e.message))}var ke=function(){function e(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null)}return e.prototype.setWorkerId=function(e){this._workerId=e},e.prototype.sendMessage=function(e,t){var n=this,i=String(++this._lastSentReq);return new Promise((function(r,o){n._pendingReplies[i]={resolve:r,reject:o},n._send({vsWorker:n._workerId,req:i,method:e,args:t})}))},e.prototype.handleMessage=function(e){e&&e.vsWorker&&(-1!==this._workerId&&e.vsWorker!==this._workerId||this._handleMessage(e))},e.prototype._handleMessage=function(e){var t=this;if(e.seq){var n=e;if(!this._pendingReplies[n.seq])return void console.warn("Got reply to unknown seq");var i=this._pendingReplies[n.seq];if(delete this._pendingReplies[n.seq],n.err){var r=n.err;return n.err.$isError&&(r=new Error,r.name=n.err.name,r.message=n.err.message,r.stack=n.err.stack),void i.reject(r)}i.resolve(n.res)}else{var o=e,s=o.req,a=this._handler.handleMessage(o.method,o.args);a.then((function(e){t._send({vsWorker:t._workerId,seq:s,res:e,err:void 0})}),(function(e){e.detail instanceof Error&&(e.detail=Object(Se["g"])(e.detail)),t._send({vsWorker:t._workerId,seq:s,res:void 0,err:Object(Se["g"])(e)})}))}},e.prototype._send=function(e){var t=[];if(e.req)for(var n=e,i=0;i<n.args.length;i++)n.args[i]instanceof ArrayBuffer&&t.push(n.args[i]);else{n=e;n.res instanceof ArrayBuffer&&t.push(n.res)}this._handler.sendMessage(e,t)},e}(),De=function(e){function t(t,n,i){var r=e.call(this)||this,o=null;r._worker=r._register(t.create("vs/base/common/worker/simpleWorker",(function(e){r._protocol.handleMessage(e)}),(function(e){o&&o(e)}))),r._protocol=new ke({sendMessage:function(e,t){r._worker.postMessage(e,t)},handleMessage:function(e,t){if("function"!==typeof i[e])return Promise.reject(new Error("Missing method "+e+" on main thread host."));try{return Promise.resolve(i[e].apply(i,t))}catch(n){return Promise.reject(n)}}}),r._protocol.setWorkerId(r._worker.getId());var s=null;"undefined"!==typeof self.require&&"function"===typeof self.require.getConfig?s=self.require.getConfig():"undefined"!==typeof self.requirejs&&(s=self.requirejs.s.contexts._.config);var a=Le["c"](i);r._onModuleLoaded=r._protocol.sendMessage(xe,[r._worker.getId(),JSON.parse(JSON.stringify(s)),n,a]);var u=function(e,t){return r._request(e,t)};return r._lazyProxy=new Promise((function(e,t){o=t,r._onModuleLoaded.then((function(t){e(Le["b"](t,u))}),(function(e){t(e),r._onError("Worker failed to load "+n,e)}))})),r}return Ee(t,e),t.prototype.getProxyObject=function(){return this._lazyProxy},t.prototype._request=function(e,t){var n=this;return new Promise((function(i,r){n._onModuleLoaded.then((function(){n._protocol.sendMessage(e,t).then(i,r)}),r)}))},t.prototype._onError=function(e,t){console.error(e),console.info(t)},t}(de["a"]);(function(){function e(e,t){var n=this;this._requestHandlerFactory=t,this._requestHandler=null,this._protocol=new ke({sendMessage:function(t,n){e(t,n)},handleMessage:function(e,t){return n._handleMessage(e,t)}})}e.prototype.onmessage=function(e){this._protocol.handleMessage(e)},e.prototype._handleMessage=function(e,t){if(e===xe)return this.initialize(t[0],t[1],t[2],t[3]);if(!this._requestHandler||"function"!==typeof this._requestHandler[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._requestHandler[e].apply(this._requestHandler,t))}catch(n){return Promise.reject(n)}},e.prototype.initialize=function(e,t,n,i){var r=this;this._protocol.setWorkerId(e);var o=function(e,t){return r._protocol.sendMessage(e,t)},s=Le["b"](i,o);return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(s),Promise.resolve(Le["c"](this._requestHandler))):(t&&("undefined"!==typeof t.baseUrl&&delete t["baseUrl"],"undefined"!==typeof t.paths&&"undefined"!==typeof t.paths.vs&&delete t.paths["vs"],t.catchError=!0,self.require.config(t)),new Promise((function(e,t){self.require([n],(function(n){r._requestHandler=n.create(s),r._requestHandler?e(Le["c"](r._requestHandler)):t(new Error("No RequestHandler!"))}),t)})))}})();function Ie(e,t){if(Ne["b"].MonacoEnvironment){if("function"===typeof Ne["b"].MonacoEnvironment.getWorker)return Ne["b"].MonacoEnvironment.getWorker(e,t);if("function"===typeof Ne["b"].MonacoEnvironment.getWorkerUrl)return new Worker(Ne["b"].MonacoEnvironment.getWorkerUrl(e,t))}throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}function Me(e){return"function"===typeof e.then}var Fe=function(){function e(e,t,n,i,r){this.id=t;var o=Ie("workerMain.js",n);Me(o)?this.worker=o:this.worker=Promise.resolve(o),this.postMessage(e,[]),this.worker.then((function(e){e.onmessage=function(e){i(e.data)},e.onmessageerror=r,"function"===typeof e.addEventListener&&e.addEventListener("error",r)}))}return e.prototype.getId=function(){return this.id},e.prototype.postMessage=function(e,t){this.worker&&this.worker.then((function(n){return n.postMessage(e,t)}))},e.prototype.dispose=function(){this.worker&&this.worker.then((function(e){return e.terminate()})),this.worker=null},e}(),Te=function(){function e(e){this._label=e,this._webWorkerFailedBeforeError=!1}return e.prototype.create=function(t,n,i){var r=this,o=++e.LAST_WORKER_ID;if(this._webWorkerFailedBeforeError)throw this._webWorkerFailedBeforeError;return new Fe(t,o,this._label||"anonymous"+o,n,(function(e){Be(e),r._webWorkerFailedBeforeError=e,i(e)}))},e.LAST_WORKER_ID=0,e}(),Re=n("cMvZ"),Pe=n("6OMU"),Ue=function(){function e(e,t,n,i){this.originalStart=e,this.originalLength=t,this.modifiedStart=n,this.modifiedLength=i}return e.prototype.getOriginalEnd=function(){return this.originalStart+this.originalLength},e.prototype.getModifiedEnd=function(){return this.modifiedStart+this.modifiedLength},e}(),He=n("7afs"),je=function(){function e(e){this.source=e}return e.prototype.getElements=function(){for(var e=this.source,t=new Int32Array(e.length),n=0,i=e.length;n<i;n++)t[n]=e.charCodeAt(n);return t},e}();function Qe(e,t,n){return new Ke(new je(e),new je(t)).ComputeDiff(n).changes}var Ve=function(){function e(){}return e.Assert=function(e,t){if(!e)throw new Error(t)},e}(),We=function(){function e(){}return e.Copy=function(e,t,n,i,r){for(var o=0;o<r;o++)n[i+o]=e[t+o]},e.Copy2=function(e,t,n,i,r){for(var o=0;o<r;o++)n[i+o]=e[t+o]},e}(),ze=function(){function e(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}return e.prototype.MarkNextChange=function(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new Ue(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},e.prototype.AddOriginalElement=function(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++},e.prototype.AddModifiedElement=function(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++},e.prototype.getChanges=function(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes},e.prototype.getReverseChanges=function(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes},e}(),Ke=function(){function e(t,n,i){void 0===i&&(i=null),this.ContinueProcessingPredicate=i;var r=e._getElements(t),o=r[0],s=r[1],a=r[2],u=e._getElements(n),l=u[0],c=u[1],d=u[2];this._hasStrings=a&&d,this._originalStringElements=o,this._originalElementsOrHash=s,this._modifiedStringElements=l,this._modifiedElementsOrHash=c,this.m_forwardHistory=[],this.m_reverseHistory=[]}return e._isStringArray=function(e){return e.length>0&&"string"===typeof e[0]},e._getElements=function(t){var n=t.getElements();if(e._isStringArray(n)){for(var i=new Int32Array(n.length),r=0,o=n.length;r<o;r++)i[r]=Object(He["b"])(n[r],0);return[n,i,!0]}return n instanceof Int32Array?[[],n,!1]:[[],new Int32Array(n),!1]},e.prototype.ElementsAreEqual=function(e,t){return this._originalElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._modifiedStringElements[t])},e.prototype.OriginalElementsAreEqual=function(e,t){return this._originalElementsOrHash[e]===this._originalElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._originalStringElements[t])},e.prototype.ModifiedElementsAreEqual=function(e,t){return this._modifiedElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._modifiedStringElements[e]===this._modifiedStringElements[t])},e.prototype.ComputeDiff=function(e){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,e)},e.prototype._ComputeDiff=function(e,t,n,i,r){var o=[!1],s=this.ComputeDiffRecursive(e,t,n,i,o);return r&&(s=this.PrettifyChanges(s)),{quitEarly:o[0],changes:s}},e.prototype.ComputeDiffRecursive=function(e,t,n,i,r){r[0]=!1;while(e<=t&&n<=i&&this.ElementsAreEqual(e,n))e++,n++;while(t>=e&&i>=n&&this.ElementsAreEqual(t,i))t--,i--;if(e>t||n>i){var o=void 0;return n<=i?(Ve.Assert(e===t+1,"originalStart should only be one more than originalEnd"),o=[new Ue(e,0,n,i-n+1)]):e<=t?(Ve.Assert(n===i+1,"modifiedStart should only be one more than modifiedEnd"),o=[new Ue(e,t-e+1,n,0)]):(Ve.Assert(e===t+1,"originalStart should only be one more than originalEnd"),Ve.Assert(n===i+1,"modifiedStart should only be one more than modifiedEnd"),o=[]),o}var s=[0],a=[0],u=this.ComputeRecursionPoint(e,t,n,i,s,a,r),l=s[0],c=a[0];if(null!==u)return u;if(!r[0]){var d=this.ComputeDiffRecursive(e,l,n,c,r),h=[];return h=r[0]?[new Ue(l+1,t-(l+1)+1,c+1,i-(c+1)+1)]:this.ComputeDiffRecursive(l+1,t,c+1,i,r),this.ConcatenateChanges(d,h)}return[new Ue(e,t-e+1,n,i-n+1)]},e.prototype.WALKTRACE=function(e,t,n,i,r,o,s,a,u,l,c,d,h,f,p,g,A,m){var v=null,_=null,y=new ze,b=t,w=n,C=h[0]-g[0]-i,S=-1073741824,N=this.m_forwardHistory.length-1;do{var L=C+e;L===b||L<w&&u[L-1]<u[L+1]?(c=u[L+1],f=c-C-i,c<S&&y.MarkNextChange(),S=c,y.AddModifiedElement(c+1,f),C=L+1-e):(c=u[L-1]+1,f=c-C-i,c<S&&y.MarkNextChange(),S=c-1,y.AddOriginalElement(c,f+1),C=L-1-e),N>=0&&(u=this.m_forwardHistory[N],e=u[0],b=1,w=u.length-1)}while(--N>=-1);if(v=y.getReverseChanges(),m[0]){var E=h[0]+1,x=g[0]+1;if(null!==v&&v.length>0){var O=v[v.length-1];E=Math.max(E,O.getOriginalEnd()),x=Math.max(x,O.getModifiedEnd())}_=[new Ue(E,d-E+1,x,p-x+1)]}else{y=new ze,b=o,w=s,C=h[0]-g[0]-a,S=1073741824,N=A?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{L=C+r;L===b||L<w&&l[L-1]>=l[L+1]?(c=l[L+1]-1,f=c-C-a,c>S&&y.MarkNextChange(),S=c+1,y.AddOriginalElement(c+1,f+1),C=L+1-r):(c=l[L-1],f=c-C-a,c>S&&y.MarkNextChange(),S=c,y.AddModifiedElement(c+1,f+1),C=L-1-r),N>=0&&(l=this.m_reverseHistory[N],r=l[0],b=1,w=l.length-1)}while(--N>=-1);_=y.getChanges()}return this.ConcatenateChanges(v,_)},e.prototype.ComputeRecursionPoint=function(e,t,n,i,r,o,s){var a=0,u=0,l=0,c=0,d=0,h=0;e--,n--,r[0]=0,o[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];var f=t-e+(i-n),p=f+1,g=new Int32Array(p),A=new Int32Array(p),m=i-n,v=t-e,_=e-n,y=t-i,b=v-m,w=b%2===0;g[m]=e,A[v]=t,s[0]=!1;for(var C=1;C<=f/2+1;C++){var S=0,N=0;l=this.ClipDiagonalBound(m-C,C,m,p),c=this.ClipDiagonalBound(m+C,C,m,p);for(var L=l;L<=c;L+=2){a=L===l||L<c&&g[L-1]<g[L+1]?g[L+1]:g[L-1]+1,u=a-(L-m)-_;var E=a;while(a<t&&u<i&&this.ElementsAreEqual(a+1,u+1))a++,u++;if(g[L]=a,a+u>S+N&&(S=a,N=u),!w&&Math.abs(L-v)<=C-1&&a>=A[L])return r[0]=a,o[0]=u,E<=A[L]&&C<=1448?this.WALKTRACE(m,l,c,_,v,d,h,y,g,A,a,t,r,u,i,o,w,s):null}var x=(S-e+(N-n)-C)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(S,x))return s[0]=!0,r[0]=S,o[0]=N,x>0&&C<=1448?this.WALKTRACE(m,l,c,_,v,d,h,y,g,A,a,t,r,u,i,o,w,s):(e++,n++,[new Ue(e,t-e+1,n,i-n+1)]);d=this.ClipDiagonalBound(v-C,C,v,p),h=this.ClipDiagonalBound(v+C,C,v,p);for(L=d;L<=h;L+=2){a=L===d||L<h&&A[L-1]>=A[L+1]?A[L+1]-1:A[L-1],u=a-(L-v)-y;E=a;while(a>e&&u>n&&this.ElementsAreEqual(a,u))a--,u--;if(A[L]=a,w&&Math.abs(L-m)<=C&&a<=g[L])return r[0]=a,o[0]=u,E>=g[L]&&C<=1448?this.WALKTRACE(m,l,c,_,v,d,h,y,g,A,a,t,r,u,i,o,w,s):null}if(C<=1447){var O=new Int32Array(c-l+2);O[0]=m-l+1,We.Copy2(g,l,O,1,c-l+1),this.m_forwardHistory.push(O),O=new Int32Array(h-d+2),O[0]=v-d+1,We.Copy2(A,d,O,1,h-d+1),this.m_reverseHistory.push(O)}}return this.WALKTRACE(m,l,c,_,v,d,h,y,g,A,a,t,r,u,i,o,w,s)},e.prototype.PrettifyChanges=function(e){for(var t=0;t<e.length;t++){var n=e[t],i=t<e.length-1?e[t+1].originalStart:this._originalElementsOrHash.length,r=t<e.length-1?e[t+1].modifiedStart:this._modifiedElementsOrHash.length,o=n.originalLength>0,s=n.modifiedLength>0;while(n.originalStart+n.originalLength<i&&n.modifiedStart+n.modifiedLength<r&&(!o||this.OriginalElementsAreEqual(n.originalStart,n.originalStart+n.originalLength))&&(!s||this.ModifiedElementsAreEqual(n.modifiedStart,n.modifiedStart+n.modifiedLength)))n.originalStart++,n.modifiedStart++;var a=[null];t<e.length-1&&this.ChangesOverlap(e[t],e[t+1],a)&&(e[t]=a[0],e.splice(t+1,1),t--)}for(t=e.length-1;t>=0;t--){n=e[t],i=0,r=0;if(t>0){var u=e[t-1];u.originalLength>0&&(i=u.originalStart+u.originalLength),u.modifiedLength>0&&(r=u.modifiedStart+u.modifiedLength)}o=n.originalLength>0,s=n.modifiedLength>0;for(var l=0,c=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength),d=1;;d++){var h=n.originalStart-d,f=n.modifiedStart-d;if(h<i||f<r)break;if(o&&!this.OriginalElementsAreEqual(h,h+n.originalLength))break;if(s&&!this.ModifiedElementsAreEqual(f,f+n.modifiedLength))break;var p=this._boundaryScore(h,n.originalLength,f,n.modifiedLength);p>c&&(c=p,l=d)}n.originalStart-=l,n.modifiedStart-=l}return e},e.prototype._OriginalIsBoundary=function(e){return e<=0||e>=this._originalElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])},e.prototype._OriginalRegionIsBoundary=function(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){var n=e+t;if(this._OriginalIsBoundary(n-1)||this._OriginalIsBoundary(n))return!0}return!1},e.prototype._ModifiedIsBoundary=function(e){return e<=0||e>=this._modifiedElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])},e.prototype._ModifiedRegionIsBoundary=function(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){var n=e+t;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0}return!1},e.prototype._boundaryScore=function(e,t,n,i){var r=this._OriginalRegionIsBoundary(e,t)?1:0,o=this._ModifiedRegionIsBoundary(n,i)?1:0;return r+o},e.prototype.ConcatenateChanges=function(e,t){var n=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],n)){var i=new Array(e.length+t.length-1);return We.Copy(e,0,i,0,e.length-1),i[e.length-1]=n[0],We.Copy(t,1,i,e.length,t.length-1),i}i=new Array(e.length+t.length);return We.Copy(e,0,i,0,e.length),We.Copy(t,0,i,e.length,t.length),i},e.prototype.ChangesOverlap=function(e,t,n){if(Ve.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),Ve.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){var i=e.originalStart,r=e.originalLength,o=e.modifiedStart,s=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(r=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(s=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new Ue(i,r,o,s),!0}return n[0]=null,!1},e.prototype.ClipDiagonalBound=function(e,t,n,i){if(e>=0&&e<i)return e;var r=n,o=i-n-1,s=t%2===0;if(e<0){var a=r%2===0;return s===a?0:1}var u=o%2===0;return s===u?i-1:i-2},e}(),qe=n("JYp7"),Ge=n("N0LK"),Xe=3;function Ye(e,t,n,i){var r=new Ke(e,t,n);return r.ComputeDiff(i)}var Je=function(){function e(e){for(var t=[],n=[],i=0,r=e.length;i<r;i++)t[i]=it(e[i],1),n[i]=rt(e[i],1);this.lines=e,this._startColumns=t,this._endColumns=n}return e.prototype.getElements=function(){for(var e=[],t=0,n=this.lines.length;t<n;t++)e[t]=this.lines[t].substring(this._startColumns[t]-1,this._endColumns[t]-1);return e},e.prototype.getStartLineNumber=function(e){return e+1},e.prototype.getEndLineNumber=function(e){return e+1},e.prototype.createCharSequence=function(e,t,n){for(var i=[],r=[],o=[],s=0,a=t;a<=n;a++)for(var u=this.lines[a],l=e?this._startColumns[a]:1,c=e?this._endColumns[a]:u.length+1,d=l;d<c;d++)i[s]=u.charCodeAt(d-1),r[s]=a+1,o[s]=d,s++;return new Ze(i,r,o)},e}(),Ze=function(){function e(e,t,n){this._charCodes=e,this._lineNumbers=t,this._columns=n}return e.prototype.getElements=function(){return this._charCodes},e.prototype.getStartLineNumber=function(e){return this._lineNumbers[e]},e.prototype.getStartColumn=function(e){return this._columns[e]},e.prototype.getEndLineNumber=function(e){return this._lineNumbers[e]},e.prototype.getEndColumn=function(e){return this._columns[e]+1},e}(),$e=function(){function e(e,t,n,i,r,o,s,a){this.originalStartLineNumber=e,this.originalStartColumn=t,this.originalEndLineNumber=n,this.originalEndColumn=i,this.modifiedStartLineNumber=r,this.modifiedStartColumn=o,this.modifiedEndLineNumber=s,this.modifiedEndColumn=a}return e.createFromDiffChange=function(t,n,i){var r,o,s,a,u,l,c,d;return 0===t.originalLength?(r=0,o=0,s=0,a=0):(r=n.getStartLineNumber(t.originalStart),o=n.getStartColumn(t.originalStart),s=n.getEndLineNumber(t.originalStart+t.originalLength-1),a=n.getEndColumn(t.originalStart+t.originalLength-1)),0===t.modifiedLength?(u=0,l=0,c=0,d=0):(u=i.getStartLineNumber(t.modifiedStart),l=i.getStartColumn(t.modifiedStart),c=i.getEndLineNumber(t.modifiedStart+t.modifiedLength-1),d=i.getEndColumn(t.modifiedStart+t.modifiedLength-1)),new e(r,o,s,a,u,l,c,d)},e}();function et(e){if(e.length<=1)return e;for(var t=[e[0]],n=t[0],i=1,r=e.length;i<r;i++){var o=e[i],s=o.originalStart-(n.originalStart+n.originalLength),a=o.modifiedStart-(n.modifiedStart+n.modifiedLength),u=Math.min(s,a);u<Xe?(n.originalLength=o.originalStart+o.originalLength-n.originalStart,n.modifiedLength=o.modifiedStart+o.modifiedLength-n.modifiedStart):(t.push(o),n=o)}return t}var tt=function(){function e(e,t,n,i,r){this.originalStartLineNumber=e,this.originalEndLineNumber=t,this.modifiedStartLineNumber=n,this.modifiedEndLineNumber=i,this.charChanges=r}return e.createFromDiffResult=function(t,n,i,r,o,s,a){var u,l,c,d,h=void 0;if(0===n.originalLength?(u=i.getStartLineNumber(n.originalStart)-1,l=0):(u=i.getStartLineNumber(n.originalStart),l=i.getEndLineNumber(n.originalStart+n.originalLength-1)),0===n.modifiedLength?(c=r.getStartLineNumber(n.modifiedStart)-1,d=0):(c=r.getStartLineNumber(n.modifiedStart),d=r.getEndLineNumber(n.modifiedStart+n.modifiedLength-1)),s&&n.originalLength>0&&n.originalLength<20&&n.modifiedLength>0&&n.modifiedLength<20&&o()){var f=i.createCharSequence(t,n.originalStart,n.originalStart+n.originalLength-1),p=r.createCharSequence(t,n.modifiedStart,n.modifiedStart+n.modifiedLength-1),g=Ye(f,p,o,!0).changes;a&&(g=et(g)),h=[];for(var A=0,m=g.length;A<m;A++)h.push($e.createFromDiffChange(g[A],f,p))}return new e(u,l,c,d,h)},e}(),nt=function(){function e(e,t,n){this.shouldComputeCharChanges=n.shouldComputeCharChanges,this.shouldPostProcessCharChanges=n.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=n.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=n.shouldMakePrettyDiff,this.originalLines=e,this.modifiedLines=t,this.original=new Je(e),this.modified=new Je(t),this.continueLineDiff=ot(n.maxComputationTime),this.continueCharDiff=ot(0===n.maxComputationTime?0:Math.min(n.maxComputationTime,5e3))}return e.prototype.computeDiff=function(){if(1===this.original.lines.length&&0===this.original.lines[0].length)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber:0}]}]};if(1===this.modified.lines.length&&0===this.modified.lines[0].length)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber:0}]}]};var e=Ye(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),t=e.changes,n=e.quitEarly;if(this.shouldIgnoreTrimWhitespace){for(var i=[],r=0,o=t.length;r<o;r++)i.push(tt.createFromDiffResult(this.shouldIgnoreTrimWhitespace,t[r],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:n,changes:i}}for(var s=[],a=0,u=0,l=(r=-1,t.length);r<l;r++){var c=r+1<l?t[r+1]:null,d=c?c.originalStart:this.originalLines.length,h=c?c.modifiedStart:this.modifiedLines.length;while(a<d&&u<h){var f=this.originalLines[a],p=this.modifiedLines[u];if(f!==p){var g=it(f,1),A=it(p,1);while(g>1&&A>1){var m=f.charCodeAt(g-2),v=p.charCodeAt(A-2);if(m!==v)break;g--,A--}(g>1||A>1)&&this._pushTrimWhitespaceCharChange(s,a+1,1,g,u+1,1,A);var _=rt(f,1),y=rt(p,1),b=f.length+1,w=p.length+1;while(_<b&&y<w){m=f.charCodeAt(_-1),v=f.charCodeAt(y-1);if(m!==v)break;_++,y++}(_<b||y<w)&&this._pushTrimWhitespaceCharChange(s,a+1,_,b,u+1,y,w)}a++,u++}c&&(s.push(tt.createFromDiffResult(this.shouldIgnoreTrimWhitespace,c,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),a+=c.originalLength,u+=c.modifiedLength)}return{quitEarly:n,changes:s}},e.prototype._pushTrimWhitespaceCharChange=function(e,t,n,i,r,o,s){if(!this._mergeTrimWhitespaceCharChange(e,t,n,i,r,o,s)){var a=void 0;this.shouldComputeCharChanges&&(a=[new $e(t,n,t,i,r,o,r,s)]),e.push(new tt(t,t,r,r,a))}},e.prototype._mergeTrimWhitespaceCharChange=function(e,t,n,i,r,o,s){var a=e.length;if(0===a)return!1;var u=e[a-1];return 0!==u.originalEndLineNumber&&0!==u.modifiedEndLineNumber&&(u.originalEndLineNumber+1===t&&u.modifiedEndLineNumber+1===r&&(u.originalEndLineNumber=t,u.modifiedEndLineNumber=r,this.shouldComputeCharChanges&&u.charChanges&&u.charChanges.push(new $e(t,n,t,i,r,o,r,s)),!0))},e}();function it(e,t){var n=Ge["q"](e);return-1===n?t:n+1}function rt(e,t){var n=Ge["D"](e);return-1===n?t:n+2}function ot(e){if(0===e)return function(){return!0};var t=Date.now();return function(){return Date.now()-t<e}}var st=n("LeU+"),at=function(){function e(e,t,n,i){this._uri=e,this._lines=t,this._eol=n,this._versionId=i,this._lineStarts=null}return e.prototype.dispose=function(){this._lines.length=0},e.prototype.getText=function(){return this._lines.join(this._eol)},e.prototype.onEvents=function(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);for(var t=e.changes,n=0,i=t;n<i.length;n++){var r=i[n];this._acceptDeleteRange(r.range),this._acceptInsertText(new j["a"](r.range.startLineNumber,r.range.startColumn),r.text)}this._versionId=e.versionId},e.prototype._ensureLineStarts=function(){if(!this._lineStarts){for(var e=this._eol.length,t=this._lines.length,n=new Uint32Array(t),i=0;i<t;i++)n[i]=this._lines[i].length+e;this._lineStarts=new st["a"](n)}},e.prototype._setLineText=function(e,t){this._lines[e]=t,this._lineStarts&&this._lineStarts.changeValue(e,this._lines[e].length+this._eol.length)},e.prototype._acceptDeleteRange=function(e){if(e.startLineNumber!==e.endLineNumber)this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.endLineNumber-1].substring(e.endColumn-1)),this._lines.splice(e.startLineNumber,e.endLineNumber-e.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(e.startLineNumber,e.endLineNumber-e.startLineNumber);else{if(e.startColumn===e.endColumn)return;this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.startLineNumber-1].substring(e.endColumn-1))}},e.prototype._acceptInsertText=function(e,t){if(0!==t.length){var n=t.split(/\r\n|\r|\n/);if(1!==n.length){n[n.length-1]+=this._lines[e.lineNumber-1].substring(e.column-1),this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+n[0]);for(var i=new Uint32Array(n.length-1),r=1;r<n.length;r++)this._lines.splice(e.lineNumber+r-1,0,n[r]),i[r-1]=n[r].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(e.lineNumber,i)}else this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+n[0]+this._lines[e.lineNumber-1].substring(e.column-1))}},e}(),ut=n("0JNc"),lt=n("MXAL"),ct=function(){function e(e,t,n){for(var i=new Uint8Array(e*t),r=0,o=e*t;r<o;r++)i[r]=n;this._data=i,this.rows=e,this.cols=t}return e.prototype.get=function(e,t){return this._data[e*this.cols+t]},e.prototype.set=function(e,t,n){this._data[e*this.cols+t]=n},e}(),dt=function(){function e(e){for(var t=0,n=0,i=0,r=e.length;i<r;i++){var o=e[i],s=o[0],a=o[1],u=o[2];a>t&&(t=a),s>n&&(n=s),u>n&&(n=u)}t++,n++;var l=new ct(n,t,0);for(i=0,r=e.length;i<r;i++){var c=e[i];s=c[0],a=c[1],u=c[2];l.set(s,a,u)}this._states=l,this._maxCharCode=t}return e.prototype.nextState=function(e,t){return t<0||t>=this._maxCharCode?0:this._states.get(e,t)},e}(),ht=null;function ft(){return null===ht&&(ht=new dt([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),ht}var pt=null;function gt(){if(null===pt){pt=new lt["a"](0);for(var e=" \t<>'\"\u3001\u3002\uff61\uff64\uff0c\uff0e\uff1a\uff1b\uff1f\uff01\uff20\uff03\uff04\uff05\uff06\uff0a\u2018\u201c\u3008\u300a\u300c\u300e\u3010\u3014\uff08\uff3b\uff5b\uff62\uff63\uff5d\uff3d\uff09\u3015\u3011\u300f\u300d\u300b\u3009\u201d\u2019\uff40\uff5e\u2026",t=0;t<e.length;t++)pt.set(e.charCodeAt(t),1);var n=".,;";for(t=0;t<n.length;t++)pt.set(n.charCodeAt(t),2)}return pt}var At=function(){function e(){}return e._createLink=function(e,t,n,i,r){var o=r-1;do{var s=t.charCodeAt(o),a=e.get(s);if(2!==a)break;o--}while(o>i);if(i>0){var u=t.charCodeAt(i-1),l=t.charCodeAt(o);(40===u&&41===l||91===u&&93===l||123===u&&125===l)&&o--}return{range:{startLineNumber:n,startColumn:i+1,endLineNumber:n,endColumn:o+2},url:t.substring(i,o+1)}},e.computeLinks=function(t,n){void 0===n&&(n=ft());for(var i=gt(),r=[],o=1,s=t.getLineCount();o<=s;o++){var a=t.getLineContent(o),u=a.length,l=0,c=0,d=0,h=1,f=!1,p=!1,g=!1;while(l<u){var A=!1,m=a.charCodeAt(l);if(13===h){var v=void 0;switch(m){case 40:f=!0,v=0;break;case 41:v=f?0:1;break;case 91:p=!0,v=0;break;case 93:v=p?0:1;break;case 123:g=!0,v=0;break;case 125:v=g?0:1;break;case 39:v=34===d||96===d?0:1;break;case 34:v=39===d||96===d?0:1;break;case 96:v=39===d||34===d?0:1;break;case 42:v=42===d?1:0;break;case 124:v=124===d?1:0;break;default:v=i.get(m)}1===v&&(r.push(e._createLink(i,a,o,c,l)),A=!0)}else if(12===h){v=void 0;91===m?(p=!0,v=0):v=i.get(m),1===v?A=!0:h=13}else h=n.nextState(h,m),0===h&&(A=!0);A&&(h=1,f=!1,p=!1,g=!1,c=l+1,d=m),l++}13===h&&r.push(e._createLink(i,a,o,c,u))}return r},e}();function mt(e){return e&&"function"===typeof e.getLineCount&&"function"===typeof e.getLineContent?At.computeLinks(e):[]}var vt=function(){function e(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}return e.prototype.navigateValueSet=function(e,t,n,i,r){if(e&&t){var o=this.doNavigateValueSet(t,r);if(o)return{range:e,value:o}}if(n&&i){o=this.doNavigateValueSet(i,r);if(o)return{range:n,value:o}}return null},e.prototype.doNavigateValueSet=function(e,t){var n=this.numberReplace(e,t);return null!==n?n:this.textReplace(e,t)},e.prototype.numberReplace=function(e,t){var n=Math.pow(10,e.length-(e.lastIndexOf(".")+1)),i=Number(e),r=parseFloat(e);return isNaN(i)||isNaN(r)||i!==r?null:0!==i||t?(i=Math.floor(i*n),i+=t?n:-n,String(i/n)):null},e.prototype.textReplace=function(e,t){return this.valueSetsReplace(this._defaultValueSet,e,t)},e.prototype.valueSetsReplace=function(e,t,n){for(var i=null,r=0,o=e.length;null===i&&r<o;r++)i=this.valueSetReplace(e[r],t,n);return i},e.prototype.valueSetReplace=function(e,t,n){var i=e.indexOf(t);return i>=0?(i+=n?1:-1,i<0?i=e.length-1:i%=e.length,e[i]):null},e.INSTANCE=new e,e}(),_t=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),yt=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{u(i.next(e))}catch(t){o(t)}}function a(e){try{u(i["throw"](e))}catch(t){o(t)}}function u(e){e.done?n(e.value):r(e.value).then(s,a)}u((i=i.apply(e,t||[])).next())}))},bt=function(e,t){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(e){return function(t){return u([e,t])}}function u(o){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,i&&(r=2&o[0]?i["return"]:o[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(r=s.trys,!(r=r.length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(a){o=[6,a],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},wt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return _t(t,e),Object.defineProperty(t.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this._versionId},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"eol",{get:function(){return this._eol},enumerable:!0,configurable:!0}),t.prototype.getValue=function(){return this.getText()},t.prototype.getLinesContent=function(){return this._lines.slice(0)},t.prototype.getLineCount=function(){return this._lines.length},t.prototype.getLineContent=function(e){return this._lines[e-1]},t.prototype.getWordAtPosition=function(e,t){var n=Object(ut["d"])(e.column,Object(ut["c"])(t),this._lines[e.lineNumber-1],0);return n?new Q["a"](e.lineNumber,n.startColumn,e.lineNumber,n.endColumn):null},t.prototype.createWordIterator=function(e){var t,n,i=this,r=0,o=0,s=[],a=function(){if(o<s.length){var u=n.substring(s[o].start,s[o].end);return o+=1,t?t.value=u:t={done:!1,value:u},t}return r>=i._lines.length?qe["b"]:(n=i._lines[r],s=i._wordenize(n,e),o=0,r+=1,a())};return{next:a}},t.prototype.getLineWords=function(e,t){for(var n=this._lines[e-1],i=this._wordenize(n,t),r=[],o=0,s=i;o<s.length;o++){var a=s[o];r.push({word:n.substring(a.start,a.end),startColumn:a.start+1,endColumn:a.end+1})}return r},t.prototype._wordenize=function(e,t){var n,i=[];t.lastIndex=0;while(n=t.exec(e)){if(0===n[0].length)break;i.push({start:n.index,end:n.index+n[0].length})}return i},t.prototype.getValueInRange=function(e){if(e=this._validateRange(e),e.startLineNumber===e.endLineNumber)return this._lines[e.startLineNumber-1].substring(e.startColumn-1,e.endColumn-1);var t=this._eol,n=e.startLineNumber-1,i=e.endLineNumber-1,r=[];r.push(this._lines[n].substring(e.startColumn-1));for(var o=n+1;o<i;o++)r.push(this._lines[o]);return r.push(this._lines[i].substring(0,e.endColumn-1)),r.join(t)},t.prototype.offsetAt=function(e){return e=this._validatePosition(e),this._ensureLineStarts(),this._lineStarts.getAccumulatedValue(e.lineNumber-2)+(e.column-1)},t.prototype.positionAt=function(e){e=Math.floor(e),e=Math.max(0,e),this._ensureLineStarts();var t=this._lineStarts.getIndexOf(e),n=this._lines[t.index].length;return{lineNumber:1+t.index,column:1+Math.min(t.remainder,n)}},t.prototype._validateRange=function(e){var t=this._validatePosition({lineNumber:e.startLineNumber,column:e.startColumn}),n=this._validatePosition({lineNumber:e.endLineNumber,column:e.endColumn});return t.lineNumber!==e.startLineNumber||t.column!==e.startColumn||n.lineNumber!==e.endLineNumber||n.column!==e.endColumn?{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:n.lineNumber,endColumn:n.column}:e},t.prototype._validatePosition=function(e){if(!j["a"].isIPosition(e))throw new Error("bad position");var t=e.lineNumber,n=e.column,i=!1;if(t<1)t=1,n=1,i=!0;else if(t>this._lines.length)t=this._lines.length,n=this._lines[t-1].length+1,i=!0;else{var r=this._lines[t-1].length+1;n<1?(n=1,i=!0):n>r&&(n=r,i=!0)}return i?{lineNumber:t,column:n}:e},t}(at),Ct=function(){function e(e,t){this._host=e,this._models=Object.create(null),this._foreignModuleFactory=t,this._foreignModule=null}return e.prototype.dispose=function(){this._models=Object.create(null)},e.prototype._getModel=function(e){return this._models[e]},e.prototype._getModels=function(){var e=this,t=[];return Object.keys(this._models).forEach((function(n){return t.push(e._models[n])})),t},e.prototype.acceptNewModel=function(e){this._models[e.url]=new wt(H["a"].parse(e.url),e.lines,e.EOL,e.versionId)},e.prototype.acceptModelChanged=function(e,t){if(this._models[e]){var n=this._models[e];n.onEvents(t)}},e.prototype.acceptRemovedModel=function(e){this._models[e]&&delete this._models[e]},e.prototype.computeDiff=function(e,t,n,i){return yt(this,void 0,void 0,(function(){var r,o,s,a,u,l,c;return bt(this,(function(d){return r=this._getModel(e),o=this._getModel(t),r&&o?(s=r.getLinesContent(),a=o.getLinesContent(),u=new nt(s,a,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:n,shouldMakePrettyDiff:!0,maxComputationTime:i}),l=u.computeDiff(),c=!(l.changes.length>0)&&this._modelsAreIdentical(r,o),[2,{quitEarly:l.quitEarly,identical:c,changes:l.changes}]):[2,null]}))}))},e.prototype._modelsAreIdentical=function(e,t){var n=e.getLineCount(),i=t.getLineCount();if(n!==i)return!1;for(var r=1;r<=n;r++){var o=e.getLineContent(r),s=t.getLineContent(r);if(o!==s)return!1}return!0},e.prototype.computeMoreMinimalEdits=function(t,n){return yt(this,void 0,void 0,(function(){var i,r,o,s,a,u,l,c,d,h,f,p,g,A,m,v,_,y;return bt(this,(function(b){if(i=this._getModel(t),!i)return[2,n];for(r=[],o=void 0,n=Object(Pe["r"])(n,(function(e,t){if(e.range&&t.range)return Q["a"].compareRangesUsingStarts(e.range,t.range);var n=e.range?0:1,i=t.range?0:1;return n-i})),s=0,a=n;s<a.length;s++)if(u=a[s],l=u.range,c=u.text,d=u.eol,"number"===typeof d&&(o=d),(!Q["a"].isEmpty(l)||c)&&(h=i.getValueInRange(l),c=c.replace(/\r\n|\n|\r/g,i.eol),h!==c))if(Math.max(c.length,h.length)>e._diffLimit)r.push({range:l,text:c});else for(f=Qe(h,c,!1),p=i.offsetAt(Q["a"].lift(l).getStartPosition()),g=0,A=f;g<A.length;g++)m=A[g],v=i.positionAt(p+m.originalStart),_=i.positionAt(p+m.originalStart+m.originalLength),y={text:c.substr(m.modifiedStart,m.modifiedLength),range:{startLineNumber:v.lineNumber,startColumn:v.column,endLineNumber:_.lineNumber,endColumn:_.column}},i.getValueInRange(y.range)!==y.text&&r.push(y);return"number"===typeof o&&r.push({eol:o,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),[2,r]}))}))},e.prototype.computeLinks=function(e){return yt(this,void 0,void 0,(function(){var t;return bt(this,(function(n){return t=this._getModel(e),t?[2,mt(t)]:[2,null]}))}))},e.prototype.textualSuggest=function(t,n,i,r){return yt(this,void 0,void 0,(function(){var o,s,a,u,l,c,d,h;return bt(this,(function(f){if(o=this._getModel(t),!o)return[2,null];for(s=[],a=new Set,u=new RegExp(i,r),l=o.getWordAtPosition(n,u),l&&a.add(o.getValueInRange(l)),c=o.createWordIterator(u),d=c.next();!d.done&&a.size<=e._suggestionsLimit;d=c.next())h=d.value,a.has(h)||(a.add(h),isNaN(Number(h))&&s.push(h));return[2,s]}))}))},e.prototype.computeWordRanges=function(e,t,n,i){return yt(this,void 0,void 0,(function(){var r,o,s,a,u,l,c,d,h;return bt(this,(function(f){if(r=this._getModel(e),!r)return[2,Object.create(null)];for(o=new RegExp(n,i),s=Object.create(null),a=t.startLineNumber;a<t.endLineNumber;a++)for(u=r.getLineWords(a,o),l=0,c=u;l<c.length;l++)d=c[l],isNaN(Number(d.word))&&(h=s[d.word],h||(h=[],s[d.word]=h),h.push({startLineNumber:a,startColumn:d.startColumn,endLineNumber:a,endColumn:d.endColumn}));return[2,s]}))}))},e.prototype.navigateValueSet=function(e,t,n,i,r){return yt(this,void 0,void 0,(function(){var o,s,a,u,l,c;return bt(this,(function(d){return o=this._getModel(e),o?(s=new RegExp(i,r),t.startColumn===t.endColumn&&(t={startLineNumber:t.startLineNumber,startColumn:t.startColumn,endLineNumber:t.endLineNumber,endColumn:t.endColumn+1}),a=o.getValueInRange(t),u=o.getWordAtPosition({lineNumber:t.startLineNumber,column:t.startColumn},s),u?(l=o.getValueInRange(u),c=vt.INSTANCE.navigateValueSet(t,a,u,l,n),[2,c]):[2,null]):[2,null]}))}))},e.prototype.loadForeignModule=function(e,t,n){var i=this,r=function(e,t){return i._host.fhr(e,t)},o=Le["b"](n,r),s={host:o,getMirrorModels:function(){return i._getModels()}};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(s,t),Promise.resolve(Le["c"](this._foreignModule))):Promise.reject(new Error("Unexpected usage"))},e.prototype.fmr=function(e,t){if(!this._foreignModule||"function"!==typeof this._foreignModule[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(n){return Promise.reject(n)}},e._diffLimit=1e5,e._suggestionsLimit=1e4,e}();"function"===typeof importScripts&&(Ne["b"].monaco=K());var St=n("G2kB"),Nt=n("Cg/j"),Lt=Object(Nt["c"])("textResourceConfigurationService"),Et=Object(Nt["c"])("textResourcePropertiesService"),xt=n("09fa"),Ot=n("5Y4S"),Bt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),kt=function(e,t,n,i){var r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Dt=function(e,t){return function(n,i){t(n,i,e)}},It=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{u(i.next(e))}catch(t){o(t)}}function a(e){try{u(i["throw"](e))}catch(t){o(t)}}function u(e){e.done?n(e.value):r(e.value).then(s,a)}u((i=i.apply(e,t||[])).next())}))},Mt=function(e,t){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(e){return function(t){return u([e,t])}}function u(o){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,i&&(r=2&o[0]?i["return"]:o[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(r=s.trys,!(r=r.length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(a){o=[6,a],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},Ft=6e4,Tt=3e5;function Rt(e,t){var n=e.getModel(t);return!!n&&!n.isTooLargeForSyncing()}var Pt=function(e){function t(t,n,i){var r=e.call(this)||this;return r._modelService=t,r._workerManager=r._register(new Ht(r._modelService)),r._logService=i,r._register(_e["r"].register("*",{provideLinks:function(e,t){return Rt(r._modelService,e.uri)?r._workerManager.withWorker().then((function(t){return t.computeLinks(e.uri)})).then((function(e){return e&&{links:e}})):Promise.resolve({links:[]})}})),r._register(_e["d"].register("*",new Ut(r._workerManager,n,r._modelService))),r}return Bt(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.canComputeDiff=function(e,t){return Rt(this._modelService,e)&&Rt(this._modelService,t)},t.prototype.computeDiff=function(e,t,n,i){return this._workerManager.withWorker().then((function(r){return r.computeDiff(e,t,n,i)}))},t.prototype.computeMoreMinimalEdits=function(e,t){var n=this;if(Object(Pe["q"])(t)){if(!Rt(this._modelService,e))return Promise.resolve(t);var i=Ot["a"].create(!0),r=this._workerManager.withWorker().then((function(n){return n.computeMoreMinimalEdits(e,t)}));return r.finally((function(){return n._logService.trace("FORMAT#computeMoreMinimalEdits",e.toString(!0),i.elapsed())})),r}return Promise.resolve(void 0)},t.prototype.canNavigateValueSet=function(e){return Rt(this._modelService,e)},t.prototype.navigateValueSet=function(e,t,n){return this._workerManager.withWorker().then((function(i){return i.navigateValueSet(e,t,n)}))},t.prototype.canComputeWordRanges=function(e){return Rt(this._modelService,e)},t.prototype.computeWordRanges=function(e,t){return this._workerManager.withWorker().then((function(n){return n.computeWordRanges(e,t)}))},t=kt([Dt(0,St["a"]),Dt(1,Lt),Dt(2,xt["a"])],t),t}(de["a"]),Ut=function(){function e(e,t,n){this._debugDisplayName="wordbasedCompletions",this._workerManager=e,this._configurationService=t,this._modelService=n}return e.prototype.provideCompletionItems=function(e,t){return It(this,void 0,void 0,(function(){var n,i,r,o,s,a;return Mt(this,(function(u){switch(u.label){case 0:return n=this._configurationService.getValue(e.uri,t,"editor").wordBasedSuggestions,n?Rt(this._modelService,e.uri)?(i=e.getWordAtPosition(t),r=i?new Q["a"](t.lineNumber,i.startColumn,t.lineNumber,i.endColumn):Q["a"].fromPositions(t),o=r.setEndPosition(t.lineNumber,t.column),[4,this._workerManager.withWorker()]):[2,void 0]:[2,void 0];case 1:return s=u.sent(),[4,s.textualSuggest(e.uri,t)];case 2:return a=u.sent(),a?[2,{suggestions:a.map((function(e){return{kind:18,label:e,insertText:e,range:{insert:o,replace:r}}}))}]:[2,void 0]}}))}))},e}(),Ht=function(e){function t(t){var n=e.call(this)||this;n._modelService=t,n._editorWorkerClient=null,n._lastWorkerUsedTime=(new Date).getTime();var i=n._register(new Ce["c"]);return i.cancelAndSet((function(){return n._checkStopIdleWorker()}),Math.round(Tt/2)),n._register(n._modelService.onModelRemoved((function(e){return n._checkStopEmptyWorker()}))),n}return Bt(t,e),t.prototype.dispose=function(){this._editorWorkerClient&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null),e.prototype.dispose.call(this)},t.prototype._checkStopEmptyWorker=function(){if(this._editorWorkerClient){var e=this._modelService.getModels();0===e.length&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}},t.prototype._checkStopIdleWorker=function(){if(this._editorWorkerClient){var e=(new Date).getTime()-this._lastWorkerUsedTime;e>Tt&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}},t.prototype.withWorker=function(){return this._lastWorkerUsedTime=(new Date).getTime(),this._editorWorkerClient||(this._editorWorkerClient=new Wt(this._modelService,!1,"editorWorkerService")),Promise.resolve(this._editorWorkerClient)},t}(de["a"]),jt=function(e){function t(t,n,i){var r=e.call(this)||this;if(r._syncedModels=Object.create(null),r._syncedModelsLastUsedTime=Object.create(null),r._proxy=t,r._modelService=n,!i){var o=new Ce["c"];o.cancelAndSet((function(){return r._checkStopModelSync()}),Math.round(Ft/2)),r._register(o)}return r}return Bt(t,e),t.prototype.dispose=function(){for(var t in this._syncedModels)Object(de["f"])(this._syncedModels[t]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),e.prototype.dispose.call(this)},t.prototype.ensureSyncedResources=function(e){for(var t=0,n=e;t<n.length;t++){var i=n[t],r=i.toString();this._syncedModels[r]||this._beginModelSync(i),this._syncedModels[r]&&(this._syncedModelsLastUsedTime[r]=(new Date).getTime())}},t.prototype._checkStopModelSync=function(){var e=(new Date).getTime(),t=[];for(var n in this._syncedModelsLastUsedTime){var i=e-this._syncedModelsLastUsedTime[n];i>Ft&&t.push(n)}for(var r=0,o=t;r<o.length;r++){var s=o[r];this._stopModelSync(s)}},t.prototype._beginModelSync=function(e){var t=this,n=this._modelService.getModel(e);if(n&&!n.isTooLargeForSyncing()){var i=e.toString();this._proxy.acceptNewModel({url:n.uri.toString(),lines:n.getLinesContent(),EOL:n.getEOL(),versionId:n.getVersionId()});var r=new de["b"];r.add(n.onDidChangeContent((function(e){t._proxy.acceptModelChanged(i.toString(),e)}))),r.add(n.onWillDispose((function(){t._stopModelSync(i)}))),r.add(Object(de["h"])((function(){t._proxy.acceptRemovedModel(i)}))),this._syncedModels[i]=r}},t.prototype._stopModelSync=function(e){var t=this._syncedModels[e];delete this._syncedModels[e],delete this._syncedModelsLastUsedTime[e],Object(de["f"])(t)},t}(de["a"]),Qt=function(){function e(e){this._instance=e,this._proxyObj=Promise.resolve(this._instance)}return e.prototype.dispose=function(){this._instance.dispose()},e.prototype.getProxyObject=function(){return this._proxyObj},e}(),Vt=function(){function e(e){this._workerClient=e}return e.prototype.fhr=function(e,t){return this._workerClient.fhr(e,t)},e}(),Wt=function(e){function t(t,n,i){var r=e.call(this)||this;return r._modelService=t,r._keepIdleModels=n,r._workerFactory=new Te(i),r._worker=null,r._modelManager=null,r}return Bt(t,e),t.prototype.fhr=function(e,t){throw new Error("Not implemented!")},t.prototype._getOrCreateWorker=function(){if(!this._worker)try{this._worker=this._register(new De(this._workerFactory,"vs/editor/common/services/editorSimpleWorker",new Vt(this)))}catch(e){Be(e),this._worker=new Qt(new Ct(new Vt(this),null))}return this._worker},t.prototype._getProxy=function(){var e=this;return this._getOrCreateWorker().getProxyObject().then(void 0,(function(t){return Be(t),e._worker=new Qt(new Ct(new Vt(e),null)),e._getOrCreateWorker().getProxyObject()}))},t.prototype._getOrCreateModelManager=function(e){return this._modelManager||(this._modelManager=this._register(new jt(e,this._modelService,this._keepIdleModels))),this._modelManager},t.prototype._withSyncedResources=function(e){var t=this;return this._getProxy().then((function(n){return t._getOrCreateModelManager(n).ensureSyncedResources(e),n}))},t.prototype.computeDiff=function(e,t,n,i){return this._withSyncedResources([e,t]).then((function(r){return r.computeDiff(e.toString(),t.toString(),n,i)}))},t.prototype.computeMoreMinimalEdits=function(e,t){return this._withSyncedResources([e]).then((function(n){return n.computeMoreMinimalEdits(e.toString(),t)}))},t.prototype.computeLinks=function(e){return this._withSyncedResources([e]).then((function(t){return t.computeLinks(e.toString())}))},t.prototype.textualSuggest=function(e,t){var n=this;return this._withSyncedResources([e]).then((function(i){var r=n._modelService.getModel(e);if(!r)return null;var o=Re["a"].getWordDefinition(r.getLanguageIdentifier().id),s=o.source,a=Object(Ge["H"])(o);return i.textualSuggest(e.toString(),t,s,a)}))},t.prototype.computeWordRanges=function(e,t){var n=this;return this._withSyncedResources([e]).then((function(i){var r=n._modelService.getModel(e);if(!r)return Promise.resolve(null);var o=Re["a"].getWordDefinition(r.getLanguageIdentifier().id),s=o.source,a=Object(Ge["H"])(o);return i.computeWordRanges(e.toString(),t,s,a)}))},t.prototype.navigateValueSet=function(e,t,n){var i=this;return this._withSyncedResources([e]).then((function(r){var o=i._modelService.getModel(e);if(!o)return null;var s=Re["a"].getWordDefinition(o.getLanguageIdentifier().id),a=s.source,u=Object(Ge["H"])(s);return r.navigateValueSet(e.toString(),t,n,a,u)}))},t}(de["a"]),zt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();function Kt(e,t){return new qt(e,t)}var qt=function(e){function t(t,n){var i=e.call(this,t,n.keepIdleModels||!1,n.label)||this;return i._foreignModuleId=n.moduleId,i._foreignModuleCreateData=n.createData||null,i._foreignModuleHost=n.host||null,i._foreignProxy=null,i}return zt(t,e),t.prototype.fhr=function(e,t){if(!this._foreignModuleHost||"function"!==typeof this._foreignModuleHost[e])return Promise.reject(new Error("Missing method "+e+" or missing main thread foreign host."));try{return Promise.resolve(this._foreignModuleHost[e].apply(this._foreignModuleHost,t))}catch(n){return Promise.reject(n)}},t.prototype._getForeignProxy=function(){var e=this;return this._foreignProxy||(this._foreignProxy=this._getProxy().then((function(t){var n=e._foreignModuleHost?Le["c"](e._foreignModuleHost):[];return t.loadForeignModule(e._foreignModuleId,e._foreignModuleCreateData,n).then((function(n){e._foreignModuleCreateData=null;for(var i=function(e,n){return t.fmr(e,n)},r=function(e,t){return function(){var n=Array.prototype.slice.call(arguments,0);return t(e,n)}},o={},s=0,a=n;s<a.length;s++){var u=a[s];o[u]=r(u,i)}return o}))}))),this._foreignProxy},t.prototype.getProxy=function(){return this._getForeignProxy()},t.prototype.withSyncedResources=function(e){var t=this;return this._withSyncedResources(e).then((function(e){return t.getProxy()}))},t}(Wt),Gt=n("4bUh"),Xt=n("baJR"),Yt=n("qNAo");function Jt(e){return Array.isArray(e)}function Zt(e){return!Jt(e)}function $t(e){return"string"===typeof e}function en(e){return!$t(e)}function tn(e){return!e}function nn(e,t){return e.ignoreCase&&t?t.toLowerCase():t}function rn(e){return e.replace(/[&<>'"_]/g,"-")}function on(e,t){console.log(e.languageId+": "+t)}function sn(e,t){return new Error(e.languageId+": "+t)}function an(e,t,n,i,r){var o=/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g,s=null;return t.replace(o,(function(t,o,a,u,l,c,d,h,f){return tn(a)?tn(u)?!tn(l)&&l<i.length?nn(e,i[l]):!tn(d)&&e&&"string"===typeof e[d]?e[d]:(null===s&&(s=r.split("."),s.unshift(r)),!tn(c)&&c<s.length?nn(e,s[c]):""):nn(e,n):"$"}))}function un(e,t){var n=t;while(n&&n.length>0){var i=e.tokenizer[n];if(i)return i;var r=n.lastIndexOf(".");n=r<0?null:n.substr(0,r)}return null}function ln(e,t){var n=t;while(n&&n.length>0){var i=e.stateNames[n];if(i)return!0;var r=n.lastIndexOf(".");n=r<0?null:n.substr(0,r)}return!1}var cn=5,dn=function(){function e(e){this._maxCacheDepth=e,this._entries=Object.create(null)}return e.create=function(e,t){return this._INSTANCE.create(e,t)},e.prototype.create=function(e,t){if(null!==e&&e.depth>=this._maxCacheDepth)return new hn(e,t);var n=hn.getStackElementId(e);n.length>0&&(n+="|"),n+=t;var i=this._entries[n];return i||(i=new hn(e,t),this._entries[n]=i,i)},e._INSTANCE=new e(cn),e}(),hn=function(){function e(e,t){this.parent=e,this.state=t,this.depth=(this.parent?this.parent.depth:0)+1}return e.getStackElementId=function(e){var t="";while(null!==e)t.length>0&&(t+="|"),t+=e.state,e=e.parent;return t},e._equals=function(e,t){while(null!==e&&null!==t){if(e===t)return!0;if(e.state!==t.state)return!1;e=e.parent,t=t.parent}return null===e&&null===t},e.prototype.equals=function(t){return e._equals(this,t)},e.prototype.push=function(e){return dn.create(this,e)},e.prototype.pop=function(){return this.parent},e.prototype.popall=function(){var e=this;while(e.parent)e=e.parent;return e},e.prototype.switchTo=function(e){return dn.create(this.parent,e)},e}(),fn=function(){function e(e,t){this.modeId=e,this.state=t}return e.prototype.equals=function(e){return this.modeId===e.modeId&&this.state.equals(e.state)},e.prototype.clone=function(){var t=this.state.clone();return t===this.state?this:new e(this.modeId,this.state)},e}(),pn=function(){function e(e){this._maxCacheDepth=e,this._entries=Object.create(null)}return e.create=function(e,t){return this._INSTANCE.create(e,t)},e.prototype.create=function(e,t){if(null!==t)return new gn(e,t);if(null!==e&&e.depth>=this._maxCacheDepth)return new gn(e,t);var n=hn.getStackElementId(e),i=this._entries[n];return i||(i=new gn(e,null),this._entries[n]=i,i)},e._INSTANCE=new e(cn),e}(),gn=function(){function e(e,t){this.stack=e,this.embeddedModeData=t}return e.prototype.clone=function(){var e=this.embeddedModeData?this.embeddedModeData.clone():null;return e===this.embeddedModeData?this:pn.create(this.stack,this.embeddedModeData)},e.prototype.equals=function(t){return t instanceof e&&(!!this.stack.equals(t.stack)&&(null===this.embeddedModeData&&null===t.embeddedModeData||null!==this.embeddedModeData&&null!==t.embeddedModeData&&this.embeddedModeData.equals(t.embeddedModeData)))},e}(),An=function(){function e(){this._tokens=[],this._language=null,this._lastTokenType=null,this._lastTokenLanguage=null}return e.prototype.enterMode=function(e,t){this._language=t},e.prototype.emit=function(e,t){this._lastTokenType===t&&this._lastTokenLanguage===this._language||(this._lastTokenType=t,this._lastTokenLanguage=this._language,this._tokens.push(new W["a"](e,t,this._language)))},e.prototype.nestedModeTokenize=function(e,t,n){var i=t.modeId,r=t.state,o=_e["y"].get(i);if(!o)return this.enterMode(n,i),this.emit(n,""),r;var s=o.tokenize(e,r,n);return this._tokens=this._tokens.concat(s.tokens),this._lastTokenType=null,this._lastTokenLanguage=null,this._language=null,s.endState},e.prototype.finalize=function(e){return new W["b"](this._tokens,e)},e}(),mn=function(){function e(e,t){this._modeService=e,this._theme=t,this._prependTokens=null,this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0}return e.prototype.enterMode=function(e,t){this._currentLanguageId=this._modeService.getLanguageIdentifier(t).id},e.prototype.emit=function(e,t){var n=this._theme.match(this._currentLanguageId,t);this._lastTokenMetadata!==n&&(this._lastTokenMetadata=n,this._tokens.push(e),this._tokens.push(n))},e._merge=function(e,t,n){var i=null!==e?e.length:0,r=t.length,o=null!==n?n.length:0;if(0===i&&0===r&&0===o)return new Uint32Array(0);if(0===i&&0===r)return n;if(0===r&&0===o)return e;var s=new Uint32Array(i+r+o);null!==e&&s.set(e);for(var a=0;a<r;a++)s[i+a]=t[a];return null!==n&&s.set(n,i+r),s},e.prototype.nestedModeTokenize=function(t,n,i){var r=n.modeId,o=n.state,s=_e["y"].get(r);if(!s)return this.enterMode(i,r),this.emit(i,""),o;var a=s.tokenize2(t,o,i);return this._prependTokens=e._merge(this._prependTokens,this._tokens,a.tokens),this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0,a.endState},e.prototype.finalize=function(t){return new W["c"](e._merge(this._prependTokens,this._tokens,null),t)},e}(),vn=function(){function e(e,t,n,i){var r=this;this._modeService=e,this._standaloneThemeService=t,this._modeId=n,this._lexer=i,this._embeddedModes=Object.create(null),this.embeddedLoaded=Promise.resolve(void 0);var o=!1;this._tokenizationRegistryListener=_e["y"].onDidChange((function(e){if(!o){for(var t=!1,n=0,i=e.changedLanguages.length;n<i;n++){var s=e.changedLanguages[n];if(r._embeddedModes[s]){t=!0;break}}t&&(o=!0,_e["y"].fire([r._modeId]),o=!1)}}))}return e.prototype.dispose=function(){this._tokenizationRegistryListener.dispose()},e.prototype.getLoadStatus=function(){var t=[];for(var n in this._embeddedModes){var i=_e["y"].get(n);if(i){if(i instanceof e){var r=i.getLoadStatus();!1===r.loaded&&t.push(r.promise)}}else{var o=_e["y"].getPromise(n);o&&t.push(o)}}return 0===t.length?{loaded:!0}:{loaded:!1,promise:Promise.all(t).then((function(e){}))}},e.prototype.getInitialState=function(){var e=dn.create(null,this._lexer.start);return pn.create(e,null)},e.prototype.tokenize=function(e,t,n){var i=new An,r=this._tokenize(e,t,n,i);return i.finalize(r)},e.prototype.tokenize2=function(e,t,n){var i=new mn(this._modeService,this._standaloneThemeService.getTheme().tokenTheme),r=this._tokenize(e,t,n,i);return i.finalize(r)},e.prototype._tokenize=function(e,t,n,i){return t.embeddedModeData?this._nestedTokenize(e,t,n,i):this._myTokenize(e,t,n,i)},e.prototype._findLeavingNestedModeOffset=function(e,t){var n=this._lexer.tokenizer[t.stack.state];if(!n&&(n=un(this._lexer,t.stack.state),!n))throw sn(this._lexer,"tokenizer state is not defined: "+t.stack.state);for(var i=-1,r=!1,o=0,s=n;o<s.length;o++){var a=s[o];if(en(a.action)&&"@pop"===a.action.nextEmbedded){r=!0;var u=a.regex,l=a.regex.source;"^(?:"===l.substr(0,4)&&")"===l.substr(l.length-1,1)&&(u=new RegExp(l.substr(4,l.length-5),u.ignoreCase?"i":""));var c=e.search(u);-1===c||0!==c&&a.matchOnlyAtLineStart||(-1===i||c<i)&&(i=c)}}if(!r)throw sn(this._lexer,'no rule containing nextEmbedded: "@pop" in tokenizer embedded state: '+t.stack.state);return i},e.prototype._nestedTokenize=function(e,t,n,i){var r=this._findLeavingNestedModeOffset(e,t);if(-1===r){var o=i.nestedModeTokenize(e,t.embeddedModeData,n);return pn.create(t.stack,new fn(t.embeddedModeData.modeId,o))}var s=e.substring(0,r);s.length>0&&i.nestedModeTokenize(s,t.embeddedModeData,n);var a=e.substring(r);return this._myTokenize(a,t,n+r,i)},e.prototype._safeRuleName=function(e){return e?e.name:"(unknown)"},e.prototype._myTokenize=function(e,t,n,i){i.enterMode(n,this._modeId);var r=e.length,o=t.embeddedModeData,s=t.stack,a=0,u=null,l=!0;while(l||a<r){var c=a,d=s.depth,h=u?u.groups.length:0,f=s.state,p=null,g=null,A=null,m=null,v=null;if(u){p=u.matches;var _=u.groups.shift();g=_.matched,A=_.action,m=u.rule,0===u.groups.length&&(u=null)}else{if(!l&&a>=r)break;l=!1;var y=this._lexer.tokenizer[f];if(!y&&(y=un(this._lexer,f),!y))throw sn(this._lexer,"tokenizer state is not defined: "+f);for(var b=e.substr(a),w=0,C=y;w<C.length;w++){var S=C[w];if((0===a||!S.matchOnlyAtLineStart)&&(p=b.match(S.regex),p)){g=p[0],A=S.action;break}}}if(p||(p=[""],g=""),A||(a<r&&(p=[e.charAt(a)],g=p[0]),A=this._lexer.defaultToken),null===g)break;a+=g.length;while(Zt(A)&&en(A)&&A.test)A=A.test(g,p,f,a===r);var N=null;if("string"===typeof A||Array.isArray(A))N=A;else if(A.group)N=A.group;else if(null!==A.token&&void 0!==A.token){if(N=A.tokenSubst?an(this._lexer,A.token,g,p,f):A.token,A.nextEmbedded)if("@pop"===A.nextEmbedded){if(!o)throw sn(this._lexer,"cannot pop embedded mode if not inside one");o=null}else{if(o)throw sn(this._lexer,"cannot enter embedded mode from within an embedded mode");v=an(this._lexer,A.nextEmbedded,g,p,f)}if(A.goBack&&(a=Math.max(0,a-A.goBack)),A.switchTo&&"string"===typeof A.switchTo){var L=an(this._lexer,A.switchTo,g,p,f);if("@"===L[0]&&(L=L.substr(1)),!un(this._lexer,L))throw sn(this._lexer,"trying to switch to a state '"+L+"' that is undefined in rule: "+this._safeRuleName(m));s=s.switchTo(L)}else{if(A.transform&&"function"===typeof A.transform)throw sn(this._lexer,"action.transform not supported");if(A.next)if("@push"===A.next){if(s.depth>=this._lexer.maxStack)throw sn(this._lexer,"maximum tokenizer stack size reached: ["+s.state+","+s.parent.state+",...]");s=s.push(f)}else if("@pop"===A.next){if(s.depth<=1)throw sn(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(m));s=s.pop()}else if("@popall"===A.next)s=s.popall();else{L=an(this._lexer,A.next,g,p,f);if("@"===L[0]&&(L=L.substr(1)),!un(this._lexer,L))throw sn(this._lexer,"trying to set a next state '"+L+"' that is undefined in rule: "+this._safeRuleName(m));s=s.push(L)}}A.log&&"string"===typeof A.log&&on(this._lexer,this._lexer.languageId+": "+an(this._lexer,A.log,g,p,f))}if(null===N)throw sn(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(m));if(Array.isArray(N)){if(u&&u.groups.length>0)throw sn(this._lexer,"groups cannot be nested: "+this._safeRuleName(m));if(p.length!==N.length+1)throw sn(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(m));for(var E=0,x=1;x<p.length;x++)E+=p[x].length;if(E!==g.length)throw sn(this._lexer,"with groups, all characters should be matched in consecutive groups in rule: "+this._safeRuleName(m));u={rule:m,matches:p,groups:[]};for(x=0;x<N.length;x++)u.groups[x]={action:N[x],matched:p[x+1]};a-=g.length}else{if("@rematch"===N&&(a-=g.length,g="",p=null,N=""),0===g.length){if(0===r||d!==s.depth||f!==s.state||(u?u.groups.length:0)!==h)continue;throw sn(this._lexer,"no progress in tokenizer in rule: "+this._safeRuleName(m))}var O=null;if($t(N)&&0===N.indexOf("@brackets")){var B=N.substr("@brackets".length),k=_n(this._lexer,g);if(!k)throw sn(this._lexer,"@brackets token returned but no bracket defined as: "+g);O=rn(k.token+B)}else{var D=""===N?"":N+this._lexer.tokenPostfix;O=rn(D)}if(i.emit(c+n,O),null!==v){var I=this._modeService.getModeIdForLanguageName(v);I&&(v=I);var M=this._getNestedEmbeddedModeData(v);if(a<r){b=e.substr(a);return this._nestedTokenize(b,pn.create(s,M),n+a,i)}return pn.create(s,M)}}}return pn.create(s,o)},e.prototype._getNestedEmbeddedModeData=function(e){var t=this._locateMode(e);if(t){var n=_e["y"].get(t);if(n)return new fn(t,n.getInitialState())}return new fn(t||ye["b"],ye["c"])},e.prototype._locateMode=function(e){if(!e||!this._modeService.isRegisteredMode(e))return null;if(e===this._modeId)return e;var t=this._modeService.getModeId(e);return t&&(this._modeService.triggerMode(t),this._embeddedModes[t]=!0),t},e}();function _n(e,t){if(!t)return null;t=nn(e,t);for(var n=e.brackets,i=0,r=n;i<r.length;i++){var o=r[i];if(o.open===t)return{token:o.token,bracketType:1};if(o.close===t)return{token:o.token,bracketType:-1}}return null}function yn(e,t,n,i){return new vn(e,t,n,i)}var bn=function(){function e(){}return e.colorizeElement=function(e,t,n,i){i=i||{};var r=i.theme||"vs",o=i.mimeType||n.getAttribute("lang")||n.getAttribute("data-lang");if(!o)return console.error("Mode not detected"),Promise.resolve();e.setTheme(r);var s=n.firstChild?n.firstChild.nodeValue:"";n.className+=" "+r;var a=function(e){n.innerHTML=e};return this.colorize(t,s||"",o,i).then(a,(function(e){return console.error(e)}))},e.colorize=function(e,t,n,i){var r=4;i&&"number"===typeof i.tabSize&&(r=i.tabSize),Ge["O"](t)&&(t=t.substr(1));var o=t.split(/\r\n|\r|\n/),s=e.getModeId(n);if(!s)return Promise.resolve(Cn(o,r));e.triggerMode(s);var a=_e["y"].get(s);if(a)return wn(o,r,a);var u=_e["y"].getPromise(s);return new Promise(u?function(e,t){u.then((function(n){wn(o,r,n).then(e,t)}),t)}:function(e,t){var n=null,i=null,a=function(){n&&(n.dispose(),n=null),i&&(i.dispose(),i=null);var a=_e["y"].get(s);a?wn(o,r,a).then(e,t):e(Cn(o,r))};i=new Ce["e"],i.cancelAndSet(a,500),n=_e["y"].onDidChange((function(e){e.changedLanguages.indexOf(s)>=0&&a()}))})},e.colorizeLine=function(e,t,n,i,r){void 0===r&&(r=4);var o=Yt["d"].isBasicASCII(e,t),s=Yt["d"].containsRTL(e,o,n),a=Object(Xt["e"])(new Xt["c"](!1,!0,e,!1,o,s,0,i,[],r,0,0,0,-1,"none",!1,!1,null));return a.html},e.colorizeModelLine=function(e,t,n){void 0===n&&(n=4);var i=e.getLineContent(t);e.forceTokenization(t);var r=e.getLineTokens(t),o=r.inflate();return this.colorizeLine(i,e.mightContainNonBasicASCII(),e.mightContainRTL(),o,n)},e}();function wn(e,t,n){return new Promise((function(i,r){var o=function(){var s=Sn(e,t,n);if(n instanceof vn){var a=n.getLoadStatus();if(!1===a.loaded)return void a.promise.then(o,r)}i(s)};o()}))}function Cn(e,t){var n=[],i=16793600,r=new Uint32Array(2);r[0]=0,r[1]=i;for(var o=0,s=e.length;o<s;o++){var a=e[o];r[0]=a.length;var u=new Gt["a"](r,a),l=Yt["d"].isBasicASCII(a,!0),c=Yt["d"].containsRTL(a,l,!0),d=Object(Xt["e"])(new Xt["c"](!1,!0,a,!1,l,c,0,u,[],t,0,0,0,-1,"none",!1,!1,null));n=n.concat(d.html),n.push("<br/>")}return n.join("")}function Sn(e,t,n){for(var i=[],r=n.getInitialState(),o=0,s=e.length;o<s;o++){var a=e[o],u=n.tokenize2(a,r,0);Gt["a"].convertToEndOffset(u.tokens,a.length);var l=new Gt["a"](u.tokens,a),c=Yt["d"].isBasicASCII(a,!0),d=Yt["d"].containsRTL(a,c,!0),h=Object(Xt["e"])(new Xt["c"](!1,!0,a,!1,c,d,0,l.inflate(),[],t,0,0,0,-1,"none",!1,!1,null));i=i.concat(h.html),i.push("<br/>"),r=u.endState}return i.join("")}var Nn=n("uDWl"),Ln=n("S3by"),En=n("sFUC"),xn=n("iDAx"),On=n("0/Sa"),Bn=n("+7oY"),kn=n("QDVR"),Dn=n("CRAX"),In=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Mn=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i},Fn=function(){function e(e,t,n){void 0===e&&(e={}),void 0===t&&(t=[]),void 0===n&&(n=[]),this._contents=e,this._keys=t,this._overrides=n,this.isFrozen=!1}return Object.defineProperty(e.prototype,"contents",{get:function(){return this.checkAndFreeze(this._contents)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"overrides",{get:function(){return this.checkAndFreeze(this._overrides)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"keys",{get:function(){return this.checkAndFreeze(this._keys)},enumerable:!0,configurable:!0}),e.prototype.isEmpty=function(){return 0===this._keys.length&&0===Object.keys(this._contents).length&&0===this._overrides.length},e.prototype.getValue=function(e){return e?Object(Bn["d"])(this.contents,e):this.contents},e.prototype.getOverrideValue=function(e,t){var n=this.getContentsForOverrideIdentifer(t);return n?e?Object(Bn["d"])(n,e):n:void 0},e.prototype.override=function(t){var n=this.getContentsForOverrideIdentifer(t);if(!n||"object"!==typeof n||!Object.keys(n).length)return this;for(var i={},r=0,o=Pe["e"](Mn(Object.keys(this.contents),Object.keys(n)));r<o.length;r++){var s=o[r],a=this.contents[s],u=n[s];u&&("object"===typeof a&&"object"===typeof u?(a=he["c"](a),this.mergeContents(a,u)):a=u),i[s]=a}return new e(i,this.keys,this.overrides)},e.prototype.merge=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var i=he["c"](this.contents),r=he["c"](this.overrides),o=Mn(this.keys),s=0,a=t;s<a.length;s++){var u=a[s];this.mergeContents(i,u.contents);for(var l=function(e){var t=r.filter((function(t){return Pe["g"](t.identifiers,e.identifiers)}))[0];t?c.mergeContents(t.contents,e.contents):r.push(he["c"](e))},c=this,d=0,h=u.overrides;d<h.length;d++){var f=h[d];l(f)}for(var p=0,g=u.keys;p<g.length;p++){var A=g[p];-1===o.indexOf(A)&&o.push(A)}}return new e(i,o,r)},e.prototype.freeze=function(){return this.isFrozen=!0,this},e.prototype.mergeContents=function(e,t){for(var n=0,i=Object.keys(t);n<i.length;n++){var r=i[n];r in e&&Le["i"](e[r])&&Le["i"](t[r])?this.mergeContents(e[r],t[r]):e[r]=he["c"](t[r])}},e.prototype.checkAndFreeze=function(e){return this.isFrozen&&!Object.isFrozen(e)?he["d"](e):e},e.prototype.getContentsForOverrideIdentifer=function(e){for(var t=0,n=this.overrides;t<n.length;t++){var i=n[t];if(-1!==i.identifiers.indexOf(e))return i.contents}return null},e.prototype.toJSON=function(){return{contents:this.contents,overrides:this.overrides,keys:this.keys}},e.prototype.setValue=function(e,t){this.addKey(e),Object(Bn["b"])(this.contents,e,t,(function(e){throw new Error(e)}))},e.prototype.removeValue=function(e){this.removeKey(e)&&Object(Bn["h"])(this.contents,e)},e.prototype.addKey=function(e){for(var t=this.keys.length,n=0;n<t;n++)0===e.indexOf(this.keys[n])&&(t=n);this.keys.splice(t,1,e)},e.prototype.removeKey=function(e){var t=this.keys.indexOf(e);return-1!==t&&(this.keys.splice(t,1),!0)},e}(),Tn=function(e){function t(){for(var t=this,n=Object(Bn["e"])(),i=Object(Bn["c"])(),r=[],o=0,s=Object.keys(n);o<s.length;o++){var a=s[o];Dn["b"].test(a)&&r.push({identifiers:[Object(Bn["g"])(a).trim()],keys:Object.keys(n[a]),contents:Object(Bn["i"])(n[a],(function(e){return console.error("Conflict in default settings file: "+e)}))})}return t=e.call(this,n,i,r)||this,t}return In(t,e),t}(Fn),Rn=function(){function e(e,t,n,i,r,o,s,a){void 0===n&&(n=new Fn),void 0===i&&(i=new Fn),void 0===r&&(r=new kn["b"]),void 0===o&&(o=new Fn),void 0===s&&(s=new kn["b"]),void 0===a&&(a=!0),this._defaultConfiguration=e,this._localUserConfiguration=t,this._remoteUserConfiguration=n,this._workspaceConfiguration=i,this._folderConfigurations=r,this._memoryConfiguration=o,this._memoryConfigurationByResource=s,this._freeze=a,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations=new kn["b"],this._userConfiguration=null}return e.prototype.getValue=function(e,t,n){var i=this.getConsolidateConfigurationModel(t,n);return i.getValue(e)},e.prototype.updateValue=function(e,t,n){var i;void 0===n&&(n={}),n.resource?(i=this._memoryConfigurationByResource.get(n.resource),i||(i=new Fn,this._memoryConfigurationByResource.set(n.resource,i))):i=this._memoryConfiguration,void 0===t?i.removeValue(e):i.setValue(e,t),n.resource||(this._workspaceConsolidatedConfiguration=null)},e.prototype.inspect=function(e,t,n){var i=this.getConsolidateConfigurationModel(t,n),r=this.getFolderConfigurationModelForResource(t.resource,n),o=t.resource&&this._memoryConfigurationByResource.get(t.resource)||this._memoryConfiguration,s=t.overrideIdentifier?this._defaultConfiguration.freeze().override(t.overrideIdentifier).getValue(e):this._defaultConfiguration.freeze().getValue(e),a=t.overrideIdentifier?this.userConfiguration.freeze().override(t.overrideIdentifier).getValue(e):this.userConfiguration.freeze().getValue(e),u=t.overrideIdentifier?this.localUserConfiguration.freeze().override(t.overrideIdentifier).getValue(e):this.localUserConfiguration.freeze().getValue(e),l=t.overrideIdentifier?this.remoteUserConfiguration.freeze().override(t.overrideIdentifier).getValue(e):this.remoteUserConfiguration.freeze().getValue(e),c=n?t.overrideIdentifier?this._workspaceConfiguration.freeze().override(t.overrideIdentifier).getValue(e):this._workspaceConfiguration.freeze().getValue(e):void 0,d=r?t.overrideIdentifier?r.freeze().override(t.overrideIdentifier).getValue(e):r.freeze().getValue(e):void 0,h=t.overrideIdentifier?o.override(t.overrideIdentifier).getValue(e):o.getValue(e),f=i.getValue(e),p=Pe["e"](Pe["m"](i.overrides.map((function(e){return e.identifiers})))).filter((function(t){return void 0!==i.getOverrideValue(e,t)}));return{defaultValue:s,userValue:a,userLocalValue:u,userRemoteValue:l,workspaceValue:c,workspaceFolderValue:d,memoryValue:h,value:f,default:void 0!==s?{value:this._defaultConfiguration.freeze().getValue(e),override:t.overrideIdentifier?this._defaultConfiguration.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,user:void 0!==a?{value:this.userConfiguration.freeze().getValue(e),override:t.overrideIdentifier?this.userConfiguration.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,userLocal:void 0!==u?{value:this.localUserConfiguration.freeze().getValue(e),override:t.overrideIdentifier?this.localUserConfiguration.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,userRemote:void 0!==l?{value:this.remoteUserConfiguration.freeze().getValue(e),override:t.overrideIdentifier?this.remoteUserConfiguration.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,workspace:void 0!==c?{value:this._workspaceConfiguration.freeze().getValue(e),override:t.overrideIdentifier?this._workspaceConfiguration.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,workspaceFolder:void 0!==d?{value:null===r||void 0===r?void 0:r.freeze().getValue(e),override:t.overrideIdentifier?null===r||void 0===r?void 0:r.freeze().getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,memory:void 0!==h?{value:o.getValue(e),override:t.overrideIdentifier?o.getOverrideValue(e,t.overrideIdentifier):void 0}:void 0,overrideIdentifiers:p.length?p:void 0}},Object.defineProperty(e.prototype,"userConfiguration",{get:function(){return this._userConfiguration||(this._userConfiguration=this._remoteUserConfiguration.isEmpty()?this._localUserConfiguration:this._localUserConfiguration.merge(this._remoteUserConfiguration),this._freeze&&this._userConfiguration.freeze()),this._userConfiguration},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"localUserConfiguration",{get:function(){return this._localUserConfiguration},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"remoteUserConfiguration",{get:function(){return this._remoteUserConfiguration},enumerable:!0,configurable:!0}),e.prototype.getConsolidateConfigurationModel=function(e,t){var n=this.getConsolidatedConfigurationModelForResource(e,t);return e.overrideIdentifier?n.override(e.overrideIdentifier):n},e.prototype.getConsolidatedConfigurationModelForResource=function(e,t){var n=e.resource,i=this.getWorkspaceConsolidatedConfiguration();if(t&&n){var r=t.getFolder(n);r&&(i=this.getFolderConsolidatedConfiguration(r.uri)||i);var o=this._memoryConfigurationByResource.get(n);o&&(i=i.merge(o))}return i},e.prototype.getWorkspaceConsolidatedConfiguration=function(){return this._workspaceConsolidatedConfiguration||(this._workspaceConsolidatedConfiguration=this._defaultConfiguration.merge(this.userConfiguration,this._workspaceConfiguration,this._memoryConfiguration),this._freeze&&(this._workspaceConfiguration=this._workspaceConfiguration.freeze())),this._workspaceConsolidatedConfiguration},e.prototype.getFolderConsolidatedConfiguration=function(e){var t=this._foldersConsolidatedConfigurations.get(e);if(!t){var n=this.getWorkspaceConsolidatedConfiguration(),i=this._folderConfigurations.get(e);i?(t=n.merge(i),this._freeze&&(t=t.freeze()),this._foldersConsolidatedConfigurations.set(e,t)):t=n}return t},e.prototype.getFolderConfigurationModelForResource=function(e,t){if(t&&e){var n=t.getFolder(e);if(n)return this._folderConfigurations.get(n.uri)}},e}(),Pn=n("3/fG"),Un=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Hn=function(e){function t(t,n,i,r){var o=e.call(this)||this;return o._contextKeyService=t,o._commandService=n,o._telemetryService=i,o._notificationService=r,o._onDidUpdateKeybindings=o._register(new P["a"]),o._currentChord=null,o._currentChordChecker=new Ce["c"],o._currentChordStatusMessage=null,o}return Un(t,e),Object.defineProperty(t.prototype,"onDidUpdateKeybindings",{get:function(){return this._onDidUpdateKeybindings?this._onDidUpdateKeybindings.event:P["b"].None},enumerable:!0,configurable:!0}),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.getKeybindings=function(){return this._getResolver().getKeybindings()},t.prototype.lookupKeybinding=function(e){var t=this._getResolver().lookupPrimaryKeybinding(e);if(t)return t.resolvedKeybinding},t.prototype.softDispatch=function(e,t){var n=this.resolveKeyboardEvent(e);if(n.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),null;var i=n.getDispatchParts()[0];if(null===i)return null;var r=this._contextKeyService.getContext(t),o=this._currentChord?this._currentChord.keypress:null;return this._getResolver().resolve(r,o,i)},t.prototype._enterChordMode=function(e,t){var n=this;this._currentChord={keypress:e,label:t},this._currentChordStatusMessage=this._notificationService.status(Pn["a"]("first.chord","({0}) was pressed. Waiting for second key of chord...",t));var i=Date.now();this._currentChordChecker.cancelAndSet((function(){n._documentHasFocus()?Date.now()-i>5e3&&n._leaveChordMode():n._leaveChordMode()}),500)},t.prototype._leaveChordMode=function(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.dispose(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChord=null},t.prototype._dispatch=function(e,t){return this._doDispatch(this.resolveKeyboardEvent(e),t)},t.prototype._doDispatch=function(e,t){var n=this,i=!1;if(e.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),!1;var r=e.getDispatchParts()[0];if(null===r)return i;var o=this._contextKeyService.getContext(t),s=this._currentChord?this._currentChord.keypress:null,a=e.getLabel(),u=this._getResolver().resolve(o,s,r);return u&&u.enterChord?(i=!0,this._enterChordMode(r,a),i):(this._currentChord&&(u&&u.commandId||(this._notificationService.status(Pn["a"]("missing.chord","The key combination ({0}, {1}) is not a command.",this._currentChord.label,a),{hideAfter:1e4}),i=!0)),this._leaveChordMode(),u&&u.commandId&&(u.bubble||(i=!0),"undefined"===typeof u.commandArgs?this._commandService.executeCommand(u.commandId).then(void 0,(function(e){return n._notificationService.warn(e)})):this._commandService.executeCommand(u.commandId,u.commandArgs).then(void 0,(function(e){return n._notificationService.warn(e)})),this._telemetryService.publicLog2("workbenchActionExecuted",{id:u.commandId,from:"keybinding"})),i)},t.prototype.mightProducePrintableCharacter=function(e){return!e.ctrlKey&&!e.metaKey&&(e.keyCode>=31&&e.keyCode<=56||e.keyCode>=21&&e.keyCode<=30)},t}(de["a"]),jn=n("T8No"),Qn=function(){function e(t,n){this._defaultKeybindings=t,this._defaultBoundCommands=new Map;for(var i=0,r=t.length;i<r;i++){var o=t[i].command;o&&this._defaultBoundCommands.set(o,!0)}this._map=new Map,this._lookupMap=new Map,this._keybindings=e.combine(t,n);for(i=0,r=this._keybindings.length;i<r;i++){var s=this._keybindings[i];0!==s.keypressParts.length&&this._addKeyPress(s.keypressParts[0],s)}}return e._isTargetedForRemoval=function(e,t,n,i,r){if(e.command!==i)return!1;if(t&&e.keypressParts[0]!==t)return!1;if(n&&e.keypressParts[1]!==n)return!1;if(r){if(!e.when)return!1;if(!r.equals(e.when))return!1}return!0},e.combine=function(e,t){e=e.slice(0);for(var n=[],i=0,r=t;i<r.length;i++){var o=r[i];if(o.command&&0!==o.command.length&&"-"===o.command.charAt(0))for(var s=o.command.substr(1),a=o.keypressParts[0],u=o.keypressParts[1],l=o.when,c=e.length-1;c>=0;c--)this._isTargetedForRemoval(e[c],a,u,s,l)&&e.splice(c,1);else n.push(o)}return e.concat(n)},e.prototype._addKeyPress=function(t,n){var i=this._map.get(t);if("undefined"===typeof i)return this._map.set(t,[n]),void this._addToLookupMap(n);for(var r=i.length-1;r>=0;r--){var o=i[r];if(o.command!==n.command){var s=o.keypressParts.length>1,a=n.keypressParts.length>1;s&&a&&o.keypressParts[1]!==n.keypressParts[1]||e.whenIsEntirelyIncluded(o.when,n.when)&&this._removeFromLookupMap(o)}}i.push(n),this._addToLookupMap(n)},e.prototype._addToLookupMap=function(e){if(e.command){var t=this._lookupMap.get(e.command);"undefined"===typeof t?(t=[e],this._lookupMap.set(e.command,t)):t.push(e)}},e.prototype._removeFromLookupMap=function(e){if(e.command){var t=this._lookupMap.get(e.command);if("undefined"!==typeof t)for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return void t.splice(n,1)}},e.whenIsEntirelyIncluded=function(e,t){return!t||!!e&&this._implies(e,t)},e._implies=function(e,t){for(var n=e.negate(),i=function(e){return e instanceof jn["b"]?e.expr:[e]},r=i(n).concat(i(t)),o=0;o<r.length;o++)for(var s=r[o],a=s.negate(),u=o+1;u<r.length;u++){var l=r[u];if(a.equals(l))return!0}return!1},e.prototype.getKeybindings=function(){return this._keybindings},e.prototype.lookupPrimaryKeybinding=function(e){var t=this._lookupMap.get(e);return"undefined"===typeof t||0===t.length?null:t[t.length-1]},e.prototype.resolve=function(e,t,n){var i=null;if(null!==t){var r=this._map.get(t);if("undefined"===typeof r)return null;i=[];for(var o=0,s=r.length;o<s;o++){var a=r[o];a.keypressParts[1]===n&&i.push(a)}}else{r=this._map.get(n);if("undefined"===typeof r)return null;i=r}var u=this._findCommand(e,i);return u?null===t&&u.keypressParts.length>1&&null!==u.keypressParts[1]?{enterChord:!0,commandId:null,commandArgs:null,bubble:!1}:{enterChord:!1,commandId:u.command,commandArgs:u.commandArgs,bubble:u.bubble}:null},e.prototype._findCommand=function(t,n){for(var i=n.length-1;i>=0;i--){var r=n[i];if(e.contextMatchesRules(t,r.when))return r}return null},e.contextMatchesRules=function(e,t){return!t||t.evaluate(e)},e}(),Vn=n("nrhi"),Wn=function(){function e(e,t,n,i,r){this.resolvedKeybinding=e,this.keypressParts=e?zn(e.getDispatchParts()):[],this.bubble=!!t&&94===t.charCodeAt(0),this.command=this.bubble?t.substr(1):t,this.commandArgs=n,this.when=i,this.isDefault=r}return e}();function zn(e){for(var t=[],n=0,i=e.length;n<i;n++){var r=e[n];if(!r)return t;t.push(r)}return t}var Kn=function(){function e(e,t,n){void 0===n&&(n=t),this.modifierLabels=[null],this.modifierLabels[2]=e,this.modifierLabels[1]=t,this.modifierLabels[3]=n}return e.prototype.toLabel=function(e,t,n){if(0===t.length)return null;for(var i=[],r=0,o=t.length;r<o;r++){var s=t[r],a=n(s);if(null===a)return null;i[r]=Xn(s,a,this.modifierLabels[e])}return i.join(" ")},e}(),qn=new Kn({ctrlKey:"\u2303",shiftKey:"\u21e7",altKey:"\u2325",metaKey:"\u2318",separator:""},{ctrlKey:Pn["a"]({key:"ctrlKey",comment:["This is the short form for the Control key on the keyboard"]},"Ctrl"),shiftKey:Pn["a"]({key:"shiftKey",comment:["This is the short form for the Shift key on the keyboard"]},"Shift"),altKey:Pn["a"]({key:"altKey",comment:["This is the short form for the Alt key on the keyboard"]},"Alt"),metaKey:Pn["a"]({key:"windowsKey",comment:["This is the short form for the Windows key on the keyboard"]},"Windows"),separator:"+"},{ctrlKey:Pn["a"]({key:"ctrlKey",comment:["This is the short form for the Control key on the keyboard"]},"Ctrl"),shiftKey:Pn["a"]({key:"shiftKey",comment:["This is the short form for the Shift key on the keyboard"]},"Shift"),altKey:Pn["a"]({key:"altKey",comment:["This is the short form for the Alt key on the keyboard"]},"Alt"),metaKey:Pn["a"]({key:"superKey",comment:["This is the short form for the Super key on the keyboard"]},"Super"),separator:"+"}),Gn=new Kn({ctrlKey:Pn["a"]({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:Pn["a"]({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:Pn["a"]({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:Pn["a"]({key:"cmdKey.long",comment:["This is the long form for the Command key on the keyboard"]},"Command"),separator:"+"},{ctrlKey:Pn["a"]({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:Pn["a"]({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:Pn["a"]({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:Pn["a"]({key:"windowsKey.long",comment:["This is the long form for the Windows key on the keyboard"]},"Windows"),separator:"+"},{ctrlKey:Pn["a"]({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:Pn["a"]({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:Pn["a"]({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:Pn["a"]({key:"superKey.long",comment:["This is the long form for the Super key on the keyboard"]},"Super"),separator:"+"});function Xn(e,t,n){if(null===t)return"";var i=[];return e.ctrlKey&&i.push(n.ctrlKey),e.shiftKey&&i.push(n.shiftKey),e.altKey&&i.push(n.altKey),e.metaKey&&i.push(n.metaKey),i.push(t),i.join(n.separator)}var Yn,Jn,Zn,$n,ei,ti,ni,ii,ri=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),oi=function(e){function t(t,n){var i=e.call(this)||this;if(0===n.length)throw Object(Se["b"])("parts");return i._os=t,i._parts=n,i}return ri(t,e),t.prototype.getLabel=function(){var e=this;return qn.toLabel(this._os,this._parts,(function(t){return e._getLabel(t)}))},t.prototype.getAriaLabel=function(){var e=this;return Gn.toLabel(this._os,this._parts,(function(t){return e._getAriaLabel(t)}))},t.prototype.isChord=function(){return this._parts.length>1},t.prototype.getParts=function(){var e=this;return this._parts.map((function(t){return e._getPart(t)}))},t.prototype._getPart=function(e){return new U["d"](e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,this._getLabel(e),this._getAriaLabel(e))},t.prototype.getDispatchParts=function(){var e=this;return this._parts.map((function(t){return e._getDispatchPart(t)}))},t}(U["c"]),si=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),ai=function(e){function t(t,n){return e.call(this,n,t.parts)||this}return si(t,e),t.prototype._keyCodeToUILabel=function(e){if(2===this._os)switch(e){case 15:return"\u2190";case 16:return"\u2191";case 17:return"\u2192";case 18:return"\u2193"}return U["b"].toString(e)},t.prototype._getLabel=function(e){return e.isDuplicateModifierCase()?"":this._keyCodeToUILabel(e.keyCode)},t.prototype._getAriaLabel=function(e){return e.isDuplicateModifierCase()?"":U["b"].toString(e.keyCode)},t.prototype._getDispatchPart=function(e){return t.getDispatchStr(e)},t.getDispatchStr=function(e){if(e.isModifierKey())return null;var t="";return e.ctrlKey&&(t+="ctrl+"),e.shiftKey&&(t+="shift+"),e.altKey&&(t+="alt+"),e.metaKey&&(t+="meta+"),t+=U["b"].toString(e.keyCode),t},t}(oi),ui=n("sM1p"),li=n("EWX2");(function(e){e.noSelection=Pn["a"]("noSelection","No selection"),e.singleSelectionRange=Pn["a"]("singleSelectionRange","Line {0}, Column {1} ({2} selected)"),e.singleSelection=Pn["a"]("singleSelection","Line {0}, Column {1}"),e.multiSelectionRange=Pn["a"]("multiSelectionRange","{0} selections ({1} characters selected)"),e.multiSelection=Pn["a"]("multiSelection","{0} selections"),e.emergencyConfOn=Pn["a"]("emergencyConfOn","Now changing the setting `accessibilitySupport` to 'on'."),e.openingDocs=Pn["a"]("openingDocs","Now opening the Editor Accessibility documentation page."),e.readonlyDiffEditor=Pn["a"]("readonlyDiffEditor"," in a read-only pane of a diff editor."),e.editableDiffEditor=Pn["a"]("editableDiffEditor"," in a pane of a diff editor."),e.readonlyEditor=Pn["a"]("readonlyEditor"," in a read-only code editor"),e.editableEditor=Pn["a"]("editableEditor"," in a code editor"),e.changeConfigToOnMac=Pn["a"]("changeConfigToOnMac","To configure the editor to be optimized for usage with a Screen Reader press Command+E now."),e.changeConfigToOnWinLinux=Pn["a"]("changeConfigToOnWinLinux","To configure the editor to be optimized for usage with a Screen Reader press Control+E now."),e.auto_on=Pn["a"]("auto_on","The editor is configured to be optimized for usage with a Screen Reader."),e.auto_off=Pn["a"]("auto_off","The editor is configured to never be optimized for usage with a Screen Reader, which is not the case at this time."),e.tabFocusModeOnMsg=Pn["a"]("tabFocusModeOnMsg","Pressing Tab in the current editor will move focus to the next focusable element. Toggle this behavior by pressing {0}."),e.tabFocusModeOnMsgNoKb=Pn["a"]("tabFocusModeOnMsgNoKb","Pressing Tab in the current editor will move focus to the next focusable element. The command {0} is currently not triggerable by a keybinding."),e.tabFocusModeOffMsg=Pn["a"]("tabFocusModeOffMsg","Pressing Tab in the current editor will insert the tab character. Toggle this behavior by pressing {0}."),e.tabFocusModeOffMsgNoKb=Pn["a"]("tabFocusModeOffMsgNoKb","Pressing Tab in the current editor will insert the tab character. The command {0} is currently not triggerable by a keybinding."),e.openDocMac=Pn["a"]("openDocMac","Press Command+H now to open a browser window with more information related to editor accessibility."),e.openDocWinLinux=Pn["a"]("openDocWinLinux","Press Control+H now to open a browser window with more information related to editor accessibility."),e.outroMsg=Pn["a"]("outroMsg","You can dismiss this tooltip and return to the editor by pressing Escape or Shift+Escape."),e.showAccessibilityHelpAction=Pn["a"]("showAccessibilityHelpAction","Show Accessibility Help")})(Yn||(Yn={})),function(e){e.inspectTokensAction=Pn["a"]("inspectTokens","Developer: Inspect Tokens")}(Jn||(Jn={})),function(e){e.gotoLineLabelValidLineAndColumn=Pn["a"]("gotoLineLabelValidLineAndColumn","Go to line {0} and character {1}"),e.gotoLineLabelValidLine=Pn["a"]("gotoLineLabelValidLine","Go to line {0}"),e.gotoLineLabelEmptyWithLineLimit=Pn["a"]("gotoLineLabelEmptyWithLineLimit","Type a line number between 1 and {0} to navigate to"),e.gotoLineLabelEmptyWithLineAndColumnLimit=Pn["a"]("gotoLineLabelEmptyWithLineAndColumnLimit","Type a character between 1 and {0} to navigate to"),e.gotoLineAriaLabel=Pn["a"]("gotoLineAriaLabel","Current Line: {0}. Go to line {1}."),e.gotoLineActionInput=Pn["a"]("gotoLineActionInput","Type a line number, followed by an optional colon and a character number to navigate to"),e.gotoLineActionLabel=Pn["a"]("gotoLineActionLabel","Go to Line...")}(Zn||(Zn={})),function(e){e.ariaLabelEntryWithKey=Pn["a"]("ariaLabelEntryWithKey","{0}, {1}, commands"),e.ariaLabelEntry=Pn["a"]("ariaLabelEntry","{0}, commands"),e.quickCommandActionInput=Pn["a"]("quickCommandActionInput","Type the name of an action you want to execute"),e.quickCommandActionLabel=Pn["a"]("quickCommandActionLabel","Command Palette")}($n||($n={})),function(e){e.entryAriaLabel=Pn["a"]("entryAriaLabel","{0}, symbols"),e.quickOutlineActionInput=Pn["a"]("quickOutlineActionInput","Type the name of an identifier you wish to navigate to"),e.quickOutlineActionLabel=Pn["a"]("quickOutlineActionLabel","Go to Symbol..."),e._symbols_=Pn["a"]("symbols","symbols ({0})"),e._modules_=Pn["a"]("modules","modules ({0})"),e._class_=Pn["a"]("class","classes ({0})"),e._interface_=Pn["a"]("interface","interfaces ({0})"),e._method_=Pn["a"]("method","methods ({0})"),e._function_=Pn["a"]("function","functions ({0})"),e._property_=Pn["a"]("property","properties ({0})"),e._variable_=Pn["a"]("variable","variables ({0})"),e._variable2_=Pn["a"]("variable2","variables ({0})"),e._constructor_=Pn["a"]("_constructor","constructors ({0})"),e._call_=Pn["a"]("call","calls ({0})")}(ei||(ei={})),function(e){e.editorViewAccessibleLabel=Pn["a"]("editorViewAccessibleLabel","Editor content"),e.accessibilityHelpMessageIE=Pn["a"]("accessibilityHelpMessageIE","Press Ctrl+F1 for Accessibility Options."),e.accessibilityHelpMessage=Pn["a"]("accessibilityHelpMessage","Press Alt+F1 for Accessibility Options.")}(ti||(ti={})),function(e){e.toggleHighContrast=Pn["a"]("toggleHighContrast","Toggle High Contrast Theme")}(ni||(ni={})),function(e){e.bulkEditServiceSummary=Pn["a"]("bulkEditServiceSummary","Made {0} edits in {1} files")}(ii||(ii={}));var ci=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),di=function(e,t,n,i){var r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},hi=function(e,t){return function(n,i){t(n,i,e)}},fi=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i},pi=function(){function e(e){this.model=e,this._onDispose=new P["a"]}return Object.defineProperty(e.prototype,"textEditorModel",{get:function(){return this.model},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this._onDispose.fire()},e}();function gi(e,t,n){return Object(En["a"])(e)?t(e):n(e)}var Ai=function(){function e(e){this.modelService=e}return e.prototype.setEditor=function(e){this.editor=e},e.prototype.createModelReference=function(e){var t=this,n=null;return this.editor&&(n=gi(this.editor,(function(n){return t.findModel(n,e)}),(function(n){return t.findModel(n.getOriginalEditor(),e)||t.findModel(n.getModifiedEditor(),e)}))),n?Promise.resolve(new de["c"](new pi(n))):Promise.reject(new Error("Model not found"))},e.prototype.findModel=function(e,t){var n=this.modelService?this.modelService.getModel(t):e.getModel();return n&&n.uri.toString()!==t.toString()?null:n},e}(),mi=function(){function e(){}return e.prototype.show=function(){return e.NULL_PROGRESS_RUNNER},e.prototype.showWhile=function(e,t){return Promise.resolve(void 0)},e.NULL_PROGRESS_RUNNER={done:function(){},total:function(){},worked:function(){}},e}(),vi=function(){function e(){}return e}(),_i=function(){function e(){}return e.prototype.info=function(e){return this.notify({severity:Ln["a"].Info,message:e})},e.prototype.warn=function(e){return this.notify({severity:Ln["a"].Warning,message:e})},e.prototype.error=function(e){return this.notify({severity:Ln["a"].Error,message:e})},e.prototype.notify=function(t){switch(t.severity){case Ln["a"].Error:console.error(t.message);break;case Ln["a"].Warning:console.warn(t.message);break;default:console.log(t.message);break}return e.NO_OP},e.prototype.status=function(e,t){return de["a"].None},e.NO_OP=new ui["b"],e}(),yi=function(){function e(e){this._onWillExecuteCommand=new P["a"],this._onDidExecuteCommand=new P["a"],this._instantiationService=e,this._dynamicCommands=Object.create(null)}return e.prototype.addCommand=function(e){var t=this,n=e.id;return this._dynamicCommands[n]=e,Object(de["h"])((function(){delete t._dynamicCommands[n]}))},e.prototype.executeCommand=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=ee["a"].getCommand(e)||this._dynamicCommands[e];if(!i)return Promise.reject(new Error("command '"+e+"' not found"));try{this._onWillExecuteCommand.fire({commandId:e,args:t});var r=this._instantiationService.invokeFunction.apply(this._instantiationService,fi([i.handler],t));return this._onDidExecuteCommand.fire({commandId:e,args:t}),Promise.resolve(r)}catch(o){return Promise.reject(o)}},e}(),bi=function(e){function t(t,n,i,r,o){var s=e.call(this,t,n,i,r)||this;return s._cachedResolver=null,s._dynamicKeybindings=[],s._register(X["i"](o,X["c"].KEY_DOWN,(function(e){var t=new Nn["a"](e),n=s._dispatch(t,t.target);n&&(t.preventDefault(),t.stopPropagation())}))),s}return ci(t,e),t.prototype.addDynamicKeybinding=function(e,t,n,i){var r=this,o=Object(U["f"])(t,Ne["a"]),s=new de["b"];o&&(this._dynamicKeybindings.push({keybinding:o,command:e,when:i,weight1:1e3,weight2:0}),s.add(Object(de["h"])((function(){for(var t=0;t<r._dynamicKeybindings.length;t++){var n=r._dynamicKeybindings[t];if(n.command===e)return r._dynamicKeybindings.splice(t,1),void r.updateResolver({source:1})}}))));var a=this._commandService;if(!(a instanceof yi))throw new Error("Unknown command service!");return s.add(a.addCommand({id:e,handler:n})),this.updateResolver({source:1}),s},t.prototype.updateResolver=function(e){this._cachedResolver=null,this._onDidUpdateKeybindings.fire(e)},t.prototype._getResolver=function(){if(!this._cachedResolver){var e=this._toNormalizedKeybindingItems(Vn["a"].getDefaultKeybindings(),!0),t=this._toNormalizedKeybindingItems(this._dynamicKeybindings,!1);this._cachedResolver=new Qn(e,t)}return this._cachedResolver},t.prototype._documentHasFocus=function(){return document.hasFocus()},t.prototype._toNormalizedKeybindingItems=function(e,t){for(var n=[],i=0,r=0,o=e;r<o.length;r++){var s=o[r],a=s.when||void 0,u=s.keybinding;if(u)for(var l=this.resolveKeybinding(u),c=0,d=l;c<d.length;c++){var h=d[c];n[i++]=new Wn(h,s.command,s.commandArgs,a,t)}else n[i++]=new Wn(void 0,s.command,s.commandArgs,a,t)}return n},t.prototype.resolveKeybinding=function(e){return[new ai(e,Ne["a"])]},t.prototype.resolveKeyboardEvent=function(e){var t=new U["e"](e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,e.keyCode).toChord();return new ai(t,Ne["a"])},t}(Hn);function wi(e){return e&&"object"===typeof e&&(!e.overrideIdentifier||"string"===typeof e.overrideIdentifier)&&(!e.resource||e.resource instanceof H["a"])}var Ci=function(){function e(){this._onDidChangeConfiguration=new P["a"],this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this._configuration=new Rn(new Tn,new Fn)}return e.prototype.configuration=function(){return this._configuration},e.prototype.getValue=function(e,t){var n="string"===typeof e?e:void 0,i=wi(e)?e:wi(t)?t:{};return this.configuration().getValue(n,i,void 0)},e.prototype.updateValue=function(e,t,n,i){return this.configuration().updateValue(e,t),Promise.resolve()},e.prototype.inspect=function(e,t){return void 0===t&&(t={}),this.configuration().inspect(e,t,void 0)},e}(),Si=function(){function e(e){var t=this;this.configurationService=e,this._onDidChangeConfiguration=new P["a"],this.configurationService.onDidChangeConfiguration((function(e){t._onDidChangeConfiguration.fire({affectedKeys:e.affectedKeys,affectsConfiguration:function(t,n){return e.affectsConfiguration(n)}})}))}return e.prototype.getValue=function(e,t,n){var i=j["a"].isIPosition(t)?t:null,r=i?"string"===typeof n?n:void 0:"string"===typeof t?t:void 0;return"undefined"===typeof r?this.configurationService.getValue():this.configurationService.getValue(r)},e}(),Ni=function(){function e(e){this.configurationService=e}return e.prototype.getEOL=function(e,t){var n=this.configurationService.getValue("files.eol",{overrideIdentifier:t,resource:e});return n&&"auto"!==n?n:Ne["d"]||Ne["e"]?"\n":"\r\n"},e=di([hi(0,Bn["a"])],e),e}(),Li=function(){function e(){}return e.prototype.publicLog=function(e,t){return Promise.resolve(void 0)},e.prototype.publicLog2=function(e,t){return this.publicLog(e,t)},e}(),Ei=function(){function e(){var t=H["a"].from({scheme:e.SCHEME,authority:"model",path:"/"});this.workspace={id:"4064f6ec-cb38-4ad0-af64-ee6467e63c82",folders:[new li["b"]({uri:t,name:"",index:0})]}}return e.prototype.getWorkspace=function(){return this.workspace},e.prototype.getWorkspaceFolder=function(t){return t&&t.scheme===e.SCHEME?this.workspace.folders[0]:null},e.SCHEME="inmemory",e}();function xi(e,t,n){t&&e instanceof Ci&&Object.keys(t).forEach((function(i){Object(xn["c"])(i)&&e.updateValue("editor."+i,t[i]),n&&Object(xn["b"])(i)&&e.updateValue("diffEditor."+i,t[i])}))}var Oi=function(){function e(e){this._modelService=e}return e.prototype.hasPreviewHandler=function(){return!1},e.prototype.apply=function(e,t){var n=new Map;if(e.edits)for(var i=0,r=e.edits;i<r.length;i++){var o=r[i];if(!_e["A"].is(o))return Promise.reject(new Error("bad edit - only text edits are supported"));var s=this._modelService.getModel(o.resource);if(!s)return Promise.reject(new Error("bad edit - model not found"));var a=n.get(s);a||(a=[],n.set(s,a)),a.push(o.edit)}var u=0,l=0;return n.forEach((function(e,t){t.pushStackElement(),t.pushEditOperations([],e.map((function(e){return On["a"].replaceMove(Q["a"].lift(e.range),e.text)})),(function(){return[]})),t.pushStackElement(),l+=1,u+=e.length})),Promise.resolve({selection:void 0,ariaSummary:Ge["r"](ii.bulkEditServiceSummary,u,l)})},e}(),Bi=function(){function e(){}return e.prototype.getUriLabel=function(e,t){return"file"===e.scheme?e.fsPath:e.path},e}(),ki=function(){function e(e){this._container=e,this.onLayout=P["b"].None}return Object.defineProperty(e.prototype,"container",{get:function(){return this._container},enumerable:!0,configurable:!0}),e}(),Di=n("D3Dy"),Ii=n("OBOq"),Mi=n("nB0o"),Fi=(n("lKfe"),n("ZlPH")),Ti=n("cMOf"),Ri=n("HdwC"),Pi=n("vATl"),Ui=(n("DTDp"),n("WqXY")),Hi=n("GJhM"),ji=n("8HAY"),Qi=n("sswD"),Vi=n("kYye"),Wi=n("MD5Z"),zi=n("t9D7"),Ki=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),qi=3,Gi=function(){function e(e,t,n,i){this.originalLineStart=e,this.originalLineEnd=t,this.modifiedLineStart=n,this.modifiedLineEnd=i}return e.prototype.getType=function(){return 0===this.originalLineStart?1:0===this.modifiedLineStart?2:0},e}(),Xi=function(){function e(e){this.entries=e}return e}(),Yi=function(e){function t(t){var n=e.call(this)||this;return n._width=0,n._diffEditor=t,n._isVisible=!1,n.shadow=Object(Fi["b"])(document.createElement("div")),n.shadow.setClassName("diff-review-shadow"),n.actionBarContainer=Object(Fi["b"])(document.createElement("div")),n.actionBarContainer.setClassName("diff-review-actions"),n._actionBar=n._register(new Ui["a"](n.actionBarContainer.domNode)),n._actionBar.push(new ji["a"]("diffreview.close",Pn["a"]("label.close","Close"),"close-diff-review",!0,(function(){return n.hide(),Promise.resolve(null)})),{label:!1,icon:!0}),n.domNode=Object(Fi["b"])(document.createElement("div")),n.domNode.setClassName("diff-review monaco-editor-background"),n._content=Object(Fi["b"])(document.createElement("div")),n._content.setClassName("diff-review-content"),n.scrollbar=n._register(new Hi["a"](n._content.domNode,{})),n.domNode.domNode.appendChild(n.scrollbar.getDomNode()),n._register(t.onDidUpdateDiff((function(){n._isVisible&&(n._diffs=n._compute(),n._render())}))),n._register(t.getModifiedEditor().onDidChangeCursorPosition((function(){n._isVisible&&n._render()}))),n._register(t.getOriginalEditor().onDidFocusEditorWidget((function(){n._isVisible&&n.hide()}))),n._register(t.getModifiedEditor().onDidFocusEditorWidget((function(){n._isVisible&&n.hide()}))),n._register(X["n"](n.domNode.domNode,"click",(function(e){e.preventDefault();var t=X["w"](e.target,"diff-review-row");t&&n._goToRow(t)}))),n._register(X["n"](n.domNode.domNode,"keydown",(function(e){(e.equals(18)||e.equals(2066)||e.equals(530))&&(e.preventDefault(),n._goToRow(n._getNextRow())),(e.equals(16)||e.equals(2064)||e.equals(528))&&(e.preventDefault(),n._goToRow(n._getPrevRow())),(e.equals(9)||e.equals(2057)||e.equals(521)||e.equals(1033))&&(e.preventDefault(),n.hide()),(e.equals(10)||e.equals(3))&&(e.preventDefault(),n.accept())}))),n._diffs=[],n._currentDiff=null,n}return Ki(t,e),t.prototype.prev=function(){var e=0;if(this._isVisible||(this._diffs=this._compute()),this._isVisible){for(var t=-1,n=0,i=this._diffs.length;n<i;n++)if(this._diffs[n]===this._currentDiff){t=n;break}e=this._diffs.length+t-1}else e=this._findDiffIndex(this._diffEditor.getPosition());0!==this._diffs.length&&(e%=this._diffs.length,this._diffEditor.setPosition(new j["a"](this._diffs[e].entries[0].modifiedLineStart,1)),this._isVisible=!0,this._diffEditor.doLayout(),this._render(),this._goToRow(this._getNextRow()))},t.prototype.next=function(){var e=0;if(this._isVisible||(this._diffs=this._compute()),this._isVisible){for(var t=-1,n=0,i=this._diffs.length;n<i;n++)if(this._diffs[n]===this._currentDiff){t=n;break}e=t+1}else e=this._findDiffIndex(this._diffEditor.getPosition());0!==this._diffs.length&&(e%=this._diffs.length,this._diffEditor.setPosition(new j["a"](this._diffs[e].entries[0].modifiedLineStart,1)),this._isVisible=!0,this._diffEditor.doLayout(),this._render(),this._goToRow(this._getNextRow()))},t.prototype.accept=function(){var e=-1,t=this._getCurrentFocusedRow();if(t){var n=parseInt(t.getAttribute("data-line"),10);isNaN(n)||(e=n)}this.hide(),-1!==e&&(this._diffEditor.setPosition(new j["a"](e,1)),this._diffEditor.revealPosition(new j["a"](e,1),1))},t.prototype.hide=function(){this._isVisible=!1,this._diffEditor.focus(),this._diffEditor.doLayout(),this._render()},t.prototype._getPrevRow=function(){var e=this._getCurrentFocusedRow();return e?e.previousElementSibling?e.previousElementSibling:e:this._getFirstRow()},t.prototype._getNextRow=function(){var e=this._getCurrentFocusedRow();return e?e.nextElementSibling?e.nextElementSibling:e:this._getFirstRow()},t.prototype._getFirstRow=function(){return this.domNode.domNode.querySelector(".diff-review-row")},t.prototype._getCurrentFocusedRow=function(){var e=document.activeElement;return e&&/diff-review-row/.test(e.className)?e:null},t.prototype._goToRow=function(e){var t=this._getCurrentFocusedRow();e.tabIndex=0,e.focus(),t&&t!==e&&(t.tabIndex=-1),this.scrollbar.scanDomNode()},t.prototype.isVisible=function(){return this._isVisible},t.prototype.layout=function(e,t,n){this._width=t,this.shadow.setTop(e-6),this.shadow.setWidth(t),this.shadow.setHeight(this._isVisible?6:0),this.domNode.setTop(e),this.domNode.setWidth(t),this.domNode.setHeight(n),this._content.setHeight(n),this._content.setWidth(t),this._isVisible?(this.actionBarContainer.setAttribute("aria-hidden","false"),this.actionBarContainer.setDisplay("block")):(this.actionBarContainer.setAttribute("aria-hidden","true"),this.actionBarContainer.setDisplay("none"))},t.prototype._compute=function(){var e=this._diffEditor.getLineChanges();if(!e||0===e.length)return[];var n=this._diffEditor.getOriginalEditor().getModel(),i=this._diffEditor.getModifiedEditor().getModel();return n&&i?t._mergeAdjacent(e,n.getLineCount(),i.getLineCount()):[]},t._mergeAdjacent=function(e,t,n){if(!e||0===e.length)return[];for(var i=[],r=0,o=0,s=e.length;o<s;o++){var a=e[o],u=a.originalStartLineNumber,l=a.originalEndLineNumber,c=a.modifiedStartLineNumber,d=a.modifiedEndLineNumber,h=[],f=0,p=0===l?u:u-1,g=0===d?c:c-1,A=1,m=1;if(o>0){var v=e[o-1];A=0===v.originalEndLineNumber?v.originalStartLineNumber+1:v.originalEndLineNumber+1,m=0===v.modifiedEndLineNumber?v.modifiedStartLineNumber+1:v.modifiedEndLineNumber+1}var _=p-qi+1,y=g-qi+1;if(_<A){var b=A-_;_+=b,y+=b}if(y<m){b=m-y;_+=b,y+=b}h[f++]=new Gi(_,p,y,g),0!==l&&(h[f++]=new Gi(u,l,0,0)),0!==d&&(h[f++]=new Gi(0,0,c,d));var w=0===l?u+1:l+1,C=0===d?c+1:d+1,S=t,N=n;if(o+1<s){var L=e[o+1];S=0===L.originalEndLineNumber?L.originalStartLineNumber:L.originalStartLineNumber-1,N=0===L.modifiedEndLineNumber?L.modifiedStartLineNumber:L.modifiedStartLineNumber-1}var E=w+qi-1,x=C+qi-1;if(E>S){b=S-E;E+=b,x+=b}if(x>N){b=N-x;E+=b,x+=b}h[f++]=new Gi(w,E,C,x),i[r++]=new Xi(h)}var O=i[0].entries,B=[],k=0;for(o=1,s=i.length;o<s;o++){var D=i[o].entries,I=O[O.length-1],M=D[0];0===I.getType()&&0===M.getType()&&M.originalLineStart<=I.originalLineEnd?(O[O.length-1]=new Gi(I.originalLineStart,M.originalLineEnd,I.modifiedLineStart,M.modifiedLineEnd),O=O.concat(D.slice(1))):(B[k++]=new Xi(O),O=D)}return B[k++]=new Xi(O),B},t.prototype._findDiffIndex=function(e){for(var t=e.lineNumber,n=0,i=this._diffs.length;n<i;n++){var r=this._diffs[n].entries,o=r[r.length-1].modifiedLineEnd;if(t<=o)return n}return 0},t.prototype._render=function(){var e=this._diffEditor.getOriginalEditor().getOptions(),n=this._diffEditor.getModifiedEditor().getOptions(),i=this._diffEditor.getOriginalEditor().getModel(),r=this._diffEditor.getModifiedEditor().getModel(),o=i.getOptions(),s=r.getOptions();if(!this._isVisible||!i||!r)return X["s"](this._content.domNode),this._currentDiff=null,void this.scrollbar.scanDomNode();var a=this._findDiffIndex(this._diffEditor.getPosition());if(this._diffs[a]!==this._currentDiff){this._currentDiff=this._diffs[a];var u=this._diffs[a].entries,l=document.createElement("div");l.className="diff-review-table",l.setAttribute("role","list"),Ri["a"].applyFontInfoSlow(l,n.get(34));for(var c=0,d=0,h=0,f=0,p=0,g=u.length;p<g;p++){var A=u[p],m=A.originalLineStart,v=A.originalLineEnd,_=A.modifiedLineStart,y=A.modifiedLineEnd;0!==m&&(0===c||m<c)&&(c=m),0!==v&&(0===d||v>d)&&(d=v),0!==_&&(0===h||_<h)&&(h=_),0!==y&&(0===f||y>f)&&(f=y)}var b=document.createElement("div");b.className="diff-review-row";var w=document.createElement("div");w.className="diff-review-cell diff-review-summary";var C=d-c+1,S=f-h+1;w.appendChild(document.createTextNode(a+1+"/"+this._diffs.length+": @@ -"+c+","+C+" +"+h+","+S+" @@")),b.setAttribute("data-line",String(h));var N=function(e){return 0===e?Pn["a"]("no_lines","no lines"):1===e?Pn["a"]("one_line","1 line"):Pn["a"]("more_lines","{0} lines",e)},L=N(C),E=N(S);b.setAttribute("aria-label",Pn["a"]({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", "1 line" or "X lines", localized separately.']},"Difference {0} of {1}: original {2}, {3}, modified {4}, {5}",a+1,this._diffs.length,c,L,h,E)),b.appendChild(w),b.setAttribute("role","listitem"),l.appendChild(b);var x=h;for(p=0,g=u.length;p<g;p++){A=u[p];t._renderSection(l,A,x,this._width,e,i,o,n,r,s),0!==A.modifiedLineStart&&(x=A.modifiedLineEnd)}X["s"](this._content.domNode),this._content.domNode.appendChild(l),this.scrollbar.scanDomNode()}},t._renderSection=function(e,t,n,i,r,o,s,a,u,l){var c=t.getType(),d="diff-review-row",h="",f="diff-review-spacer";switch(c){case 1:d="diff-review-row line-insert",h=" char-insert",f="diff-review-spacer insert-sign";break;case 2:d="diff-review-row line-delete",h=" char-delete",f="diff-review-spacer delete-sign";break}for(var p=t.originalLineStart,g=t.originalLineEnd,A=t.modifiedLineStart,m=t.modifiedLineEnd,v=Math.max(m-A,g-p),_=r.get(107),y=_.glyphMarginWidth+_.lineNumbersWidth,b=a.get(107),w=10+b.glyphMarginWidth+b.lineNumbersWidth,C=0;C<=v;C++){var S=0===p?0:p+C,N=0===A?0:A+C,L=document.createElement("div");L.style.minWidth=i+"px",L.className=d,L.setAttribute("role","listitem"),0!==N&&(n=N),L.setAttribute("data-line",String(n));var E=document.createElement("div");E.className="diff-review-cell",L.appendChild(E);var x=document.createElement("span");x.style.width=y+"px",x.style.minWidth=y+"px",x.className="diff-review-line-number"+h,0!==S?x.appendChild(document.createTextNode(String(S))):x.innerHTML=" ",E.appendChild(x);var O=document.createElement("span");O.style.width=w+"px",O.style.minWidth=w+"px",O.style.paddingRight="10px",O.className="diff-review-line-number"+h,0!==N?O.appendChild(document.createTextNode(String(N))):O.innerHTML=" ",E.appendChild(O);var B=document.createElement("span");B.className=f,B.innerHTML="  ",E.appendChild(B);var k=void 0;0!==N?(E.insertAdjacentHTML("beforeend",this._renderLine(u,a,l.tabSize,N)),k=u.getLineContent(N)):(E.insertAdjacentHTML("beforeend",this._renderLine(o,r,s.tabSize,S)),k=o.getLineContent(S)),0===k.length&&(k=Pn["a"]("blankLine","blank"));var D="";switch(c){case 0:D=Pn["a"]("equalLine","original {0}, modified {1}: {2}",S,N,k);break;case 1:D=Pn["a"]("insertLine","+ modified {0}: {1}",N,k);break;case 2:D=Pn["a"]("deleteLine","- original {0}: {1}",S,k);break}L.setAttribute("aria-label",D),e.appendChild(L)}},t._renderLine=function(e,t,n,i){var r=e.getLineContent(i),o=t.get(34),s=16793600,a=new Uint32Array(2);a[0]=r.length,a[1]=s;var u=new Gt["a"](a,r),l=Yt["d"].isBasicASCII(r,e.mightContainNonBasicASCII()),c=Yt["d"].containsRTL(r,l,e.mightContainRTL()),d=Object(Xt["e"])(new Xt["c"](o.isMonospace&&!t.get(23),o.canUseHalfwidthRightwardsArrow,r,!1,l,c,0,u,[],n,0,o.spaceWidth,o.middotWidth,t.get(88),t.get(74),t.get(69),t.get(35)!==T["d"].OFF,null));return d.html},t}(de["a"]);Object(zi["e"])((function(e,t){var n=e.getColor(Vi["j"]);n&&t.addRule(".monaco-diff-editor .diff-review-line-number { color: "+n+"; }");var i=e.getColor(Wi["Tb"]);i&&t.addRule(".monaco-diff-editor .diff-review-shadow { box-shadow: "+i+" 0 -6px 6px -6px inset; }")}));var Ji=function(e){function t(){return e.call(this,{id:"editor.action.diffReview.next",label:Pn["a"]("editor.action.diffReview.next","Go to Next Difference"),alias:"Go to Next Difference",precondition:jn["a"].has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:65,weight:100}})||this}return Ki(t,e),t.prototype.run=function(e,t){var n=$i(e);n&&n.diffReviewNext()},t}(Qi["b"]),Zi=function(e){function t(){return e.call(this,{id:"editor.action.diffReview.prev",label:Pn["a"]("editor.action.diffReview.prev","Go to Previous Difference"),alias:"Go to Previous Difference",precondition:jn["a"].has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:1089,weight:100}})||this}return Ki(t,e),t.prototype.run=function(e,t){var n=$i(e);n&&n.diffReviewPrev()},t}(Qi["b"]);function $i(e){for(var t=e.get(G["a"]),n=t.listDiffEditors(),i=0,r=n.length;i<r;i++){var o=n[i];if(o.hasWidgetFocus())return o}return null}Object(Qi["f"])(Ji),Object(Qi["f"])(Zi);var er=n("erNZ"),tr=n("tX9W"),nr=n("MvK1"),ir=n("dBaI"),rr=n("8HsV"),or=n("Uzvx"),sr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),ar=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{u(i.next(e))}catch(t){o(t)}}function a(e){try{u(i["throw"](e))}catch(t){o(t)}}function u(e){e.done?n(e.value):r(e.value).then(s,a)}u((i=i.apply(e,t||[])).next())}))},ur=function(e,t){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(e){return function(t){return u([e,t])}}function u(o){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,i&&(r=2&o[0]?i["return"]:o[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(r=s.trys,!(r=r.length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(a){o=[6,a],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},lr=function(e){function t(t,n,i,r,o,s){var a=e.call(this)||this;a._viewZoneId=t,a._marginDomNode=n,a.editor=i,a.diff=r,a._contextMenuService=o,a._clipboardService=s,a._visibility=!1,a._marginDomNode.style.zIndex="10",a._diffActions=document.createElement("div"),a._diffActions.className="codicon codicon-lightbulb lightbulb-glyph",a._diffActions.style.position="absolute";var u=i.getOption(49),l=i.getModel().getEOL();a._diffActions.style.right="0px",a._diffActions.style.visibility="hidden",a._diffActions.style.height=u+"px",a._diffActions.style.lineHeight=u+"px",a._marginDomNode.appendChild(a._diffActions);var c=[];c.push(new ji["a"]("diff.clipboard.copyDeletedContent",r.originalEndLineNumber>r.modifiedStartLineNumber?Pn["a"]("diff.clipboard.copyDeletedLinesContent.label","Copy deleted lines"):Pn["a"]("diff.clipboard.copyDeletedLinesContent.single.label","Copy deleted line"),void 0,!0,(function(){return ar(a,void 0,void 0,(function(){return ur(this,(function(e){switch(e.label){case 0:return[4,this._clipboardService.writeText(r.originalContent.join(l)+l)];case 1:return e.sent(),[2]}}))}))})));var d=0,h=void 0;r.originalEndLineNumber>r.modifiedStartLineNumber&&(h=new ji["a"]("diff.clipboard.copyDeletedLineContent",Pn["a"]("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",r.originalStartLineNumber),void 0,!0,(function(){return ar(a,void 0,void 0,(function(){return ur(this,(function(e){switch(e.label){case 0:return[4,this._clipboardService.writeText(r.originalContent[d])];case 1:return e.sent(),[2]}}))}))})),c.push(h));var f=i.getOption(68);f||c.push(new ji["a"]("diff.inline.revertChange",Pn["a"]("diff.inline.revertChange.label","Revert this change"),void 0,!0,(function(){return ar(a,void 0,void 0,(function(){var e;return ur(this,(function(t){return 0===r.modifiedEndLineNumber?(e=i.getModel().getLineMaxColumn(r.modifiedStartLineNumber),i.executeEdits("diffEditor",[{range:new Q["a"](r.modifiedStartLineNumber,e,r.modifiedStartLineNumber,e),text:l+r.originalContent.join(l)}])):(e=i.getModel().getLineMaxColumn(r.modifiedEndLineNumber),i.executeEdits("diffEditor",[{range:new Q["a"](r.modifiedStartLineNumber,1,r.modifiedEndLineNumber,e),text:r.originalContent.join(l)}])),[2]}))}))})));var p=function(e,t){a._contextMenuService.showContextMenu({getAnchor:function(){return{x:e,y:t}},getActions:function(){return h&&(h.label=Pn["a"]("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",r.originalStartLineNumber+d)),c},autoSelectFirstItem:!0})};return a._register(X["n"](a._diffActions,"mousedown",(function(e){var t=X["B"](a._diffActions),n=t.top,i=t.height,r=Math.floor(u/3);e.preventDefault(),p(e.posx,n+i+r)}))),a._register(i.onMouseMove((function(e){if(8===e.target.type||5===e.target.type){var t=e.target.detail.viewZoneId;t===a._viewZoneId?(a.visibility=!0,d=a._updateLightBulbPosition(a._marginDomNode,e.event.browserEvent.y,u)):a.visibility=!1}else a.visibility=!1}))),a._register(i.onMouseDown((function(e){if(e.event.rightButton&&(8===e.target.type||5===e.target.type)){var t=e.target.detail.viewZoneId;t===a._viewZoneId&&(e.event.preventDefault(),d=a._updateLightBulbPosition(a._marginDomNode,e.event.browserEvent.y,u),p(e.event.posx,e.event.posy+u))}}))),a}return sr(t,e),Object.defineProperty(t.prototype,"visibility",{get:function(){return this._visibility},set:function(e){this._visibility!==e&&(this._visibility=e,this._diffActions.style.visibility=e?"visible":"hidden")},enumerable:!0,configurable:!0}),t.prototype._updateLightBulbPosition=function(e,t,n){var i=X["B"](e).top,r=t-i,o=Math.floor(r/n),s=o*n;return this._diffActions.style.top=s+"px",o},t}(de["a"]),cr=n("tTk5"),dr=n("o39E"),hr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),fr=function(e,t,n,i){var r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},pr=function(e,t){return function(n,i){t(n,i,e)}},gr=function(){function e(e,t){this._contextMenuService=e,this._clipboardService=t,this._zones=[],this.inlineDiffMargins=[],this._zonesMap={},this._decorations=[]}return e.prototype.getForeignViewZones=function(e){var t=this;return e.filter((function(e){return!t._zonesMap[String(e.id)]}))},e.prototype.clean=function(e){var t=this;this._zones.length>0&&e.changeViewZones((function(e){for(var n=0,i=t._zones.length;n<i;n++)e.removeZone(t._zones[n])})),this._zones=[],this._zonesMap={},this._decorations=e.deltaDecorations(this._decorations,[])},e.prototype.apply=function(e,t,n,i){var r=this,o=i?Pi["c"].capture(e):null;e.changeViewZones((function(t){for(var i=0,o=r._zones.length;i<o;i++)t.removeZone(r._zones[i]);i=0;for(var s=r.inlineDiffMargins.length;i<s;i++)r.inlineDiffMargins[i].dispose();r._zones=[],r._zonesMap={},r.inlineDiffMargins=[];i=0;for(var a=n.zones.length;i<a;i++){var u=n.zones[i];u.suppressMouseDown=!0;var l=t.addZone(u);r._zones.push(l),r._zonesMap[String(l)]=!0,n.zones[i].diff&&u.marginDomNode&&r._clipboardService&&(u.suppressMouseDown=!1,r.inlineDiffMargins.push(new lr(l,u.marginDomNode,e,n.zones[i].diff,r._contextMenuService,r._clipboardService)))}})),o&&o.restore(e),this._decorations=e.deltaDecorations(this._decorations,n.decorations),t&&t.setZones(n.overviewZones)},e}(),Ar=0,mr=function(e){function t(n,i,r,o,s,a,u,l,c,d,h){var f=e.call(this)||this;f._editorProgressService=h,f._onDidDispose=f._register(new P["a"]),f.onDidDispose=f._onDidDispose.event,f._onDidUpdateDiff=f._register(new P["a"]),f.onDidUpdateDiff=f._onDidUpdateDiff.event,f._lastOriginalWarning=null,f._lastModifiedWarning=null,f._editorWorkerService=o,f._codeEditorService=u,f._contextKeyService=f._register(s.createScoped(n)),f._contextKeyService.createKey("isInDiffEditor",!0),f._themeService=l,f._notificationService=c,f.id=++Ar,f._state=0,f._updatingDiffProgress=null,f._domElement=n,i=i||{},f._renderSideBySide=!0,"undefined"!==typeof i.renderSideBySide&&(f._renderSideBySide=i.renderSideBySide),f._maxComputationTime=5e3,"undefined"!==typeof i.maxComputationTime&&(f._maxComputationTime=i.maxComputationTime),f._ignoreTrimWhitespace=!0,"undefined"!==typeof i.ignoreTrimWhitespace&&(f._ignoreTrimWhitespace=i.ignoreTrimWhitespace),f._renderIndicators=!0,"undefined"!==typeof i.renderIndicators&&(f._renderIndicators=i.renderIndicators),f._originalIsEditable=!1,"undefined"!==typeof i.originalEditable&&(f._originalIsEditable=Boolean(i.originalEditable)),f._updateDecorationsRunner=f._register(new Ce["d"]((function(){return f._updateDecorations()}),0)),f._containerDomElement=document.createElement("div"),f._containerDomElement.className=t._getClassName(f._themeService.getTheme(),f._renderSideBySide),f._containerDomElement.style.position="relative",f._containerDomElement.style.height="100%",f._domElement.appendChild(f._containerDomElement),f._overviewViewportDomElement=Object(Fi["b"])(document.createElement("div")),f._overviewViewportDomElement.setClassName("diffViewport"),f._overviewViewportDomElement.setPosition("absolute"),f._overviewDomElement=document.createElement("div"),f._overviewDomElement.className="diffOverview",f._overviewDomElement.style.position="absolute",f._overviewDomElement.appendChild(f._overviewViewportDomElement.domNode),f._register(X["n"](f._overviewDomElement,"mousedown",(function(e){f.modifiedEditor.delegateVerticalScrollbarMouseDown(e)}))),f._containerDomElement.appendChild(f._overviewDomElement),f._originalDomNode=document.createElement("div"),f._originalDomNode.className="editor original",f._originalDomNode.style.position="absolute",f._originalDomNode.style.height="100%",f._containerDomElement.appendChild(f._originalDomNode),f._modifiedDomNode=document.createElement("div"),f._modifiedDomNode.className="editor modified",f._modifiedDomNode.style.position="absolute",f._modifiedDomNode.style.height="100%",f._containerDomElement.appendChild(f._modifiedDomNode),f._beginUpdateDecorationsTimeout=-1,f._currentlyChangingViewZones=!1,f._diffComputationToken=0,f._originalEditorState=new gr(d,r),f._modifiedEditorState=new gr(d,r),f._isVisible=!0,f._isHandlingScrollEvent=!1,f._elementSizeObserver=f._register(new dr["a"](f._containerDomElement,void 0,(function(){return f._onDidContainerSizeChanged()}))),i.automaticLayout&&f._elementSizeObserver.startObserving(),f._diffComputationResult=null;var p=f._contextKeyService.createScoped();p.createKey("isInDiffLeftEditor",!0);var g=new rr["a"];g.set(jn["c"],p);var A=a.createChild(g),m=f._contextKeyService.createScoped();m.createKey("isInDiffRightEditor",!0);var v=new rr["a"];v.set(jn["c"],m);var _=a.createChild(v);f.originalEditor=f._createLeftHandSideEditor(i,A),f.modifiedEditor=f._createRightHandSideEditor(i,_),f._originalOverviewRuler=null,f._modifiedOverviewRuler=null,f._reviewPane=new Yi(f),f._containerDomElement.appendChild(f._reviewPane.domNode.domNode),f._containerDomElement.appendChild(f._reviewPane.shadow.domNode),f._containerDomElement.appendChild(f._reviewPane.actionBarContainer.domNode),f._enableSplitViewResizing=!0,"undefined"!==typeof i.enableSplitViewResizing&&(f._enableSplitViewResizing=i.enableSplitViewResizing),f._renderSideBySide?f._setStrategy(new Cr(f._createDataSource(),f._enableSplitViewResizing)):f._setStrategy(new Nr(f._createDataSource(),f._enableSplitViewResizing)),f._register(l.onThemeChange((function(e){f._strategy&&f._strategy.applyColors(e)&&f._updateDecorationsRunner.schedule(),f._containerDomElement.className=t._getClassName(f._themeService.getTheme(),f._renderSideBySide)})));for(var y=Qi["d"].getDiffEditorContributions(),b=0,w=y;b<w.length;b++){var C=w[b];try{f._register(a.createInstance(C.ctor,f))}catch(S){Object(Se["e"])(S)}}return f._codeEditorService.addDiffEditor(f),f}return hr(t,e),t.prototype._setState=function(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)))},t.prototype.hasWidgetFocus=function(){return X["J"](document.activeElement,this._domElement)},t.prototype.diffReviewNext=function(){this._reviewPane.next()},t.prototype.diffReviewPrev=function(){this._reviewPane.prev()},t._getClassName=function(e,t){var n="monaco-diff-editor monaco-editor-background ";return t&&(n+="side-by-side "),n+=Object(zi["d"])(e.type),n},t.prototype._recreateOverviewRulers=function(){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()},t.prototype._createLeftHandSideEditor=function(e,t){var n=this,i=this._createInnerEditor(t,this._originalDomNode,this._adjustOptionsForLeftHandSide(e,this._originalIsEditable));return this._register(i.onDidScrollChange((function(e){n._isHandlingScrollEvent||(e.scrollTopChanged||e.scrollLeftChanged||e.scrollHeightChanged)&&(n._isHandlingScrollEvent=!0,n.modifiedEditor.setScrollPosition({scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}),n._isHandlingScrollEvent=!1,n._layoutOverviewViewport())}))),this._register(i.onDidChangeViewZones((function(){n._onViewZonesChanged()}))),this._register(i.onDidChangeModelContent((function(){n._isVisible&&n._beginUpdateDecorationsSoon()}))),i},t.prototype._createRightHandSideEditor=function(e,t){var n=this,i=this._createInnerEditor(t,this._modifiedDomNode,this._adjustOptionsForRightHandSide(e));return this._register(i.onDidScrollChange((function(e){n._isHandlingScrollEvent||(e.scrollTopChanged||e.scrollLeftChanged||e.scrollHeightChanged)&&(n._isHandlingScrollEvent=!0,n.originalEditor.setScrollPosition({scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}),n._isHandlingScrollEvent=!1,n._layoutOverviewViewport())}))),this._register(i.onDidChangeViewZones((function(){n._onViewZonesChanged()}))),this._register(i.onDidChangeConfiguration((function(e){e.hasChanged(34)&&i.getModel()&&n._onViewZonesChanged()}))),this._register(i.onDidChangeModelContent((function(){n._isVisible&&n._beginUpdateDecorationsSoon()}))),this._register(i.onDidChangeModelOptions((function(e){e.tabSize&&n._updateDecorationsRunner.schedule()}))),i},t.prototype._createInnerEditor=function(e,t,n){return e.createInstance(Mi["a"],t,n,{})},t.prototype.dispose=function(){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._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(),e.prototype.dispose.call(this)},t.prototype.getId=function(){return this.getEditorType()+":"+this.id},t.prototype.getEditorType=function(){return me["a"].IDiffEditor},t.prototype.getLineChanges=function(){return this._diffComputationResult?this._diffComputationResult.changes:null},t.prototype.getOriginalEditor=function(){return this.originalEditor},t.prototype.getModifiedEditor=function(){return this.modifiedEditor},t.prototype.updateOptions=function(e){var n=!1;"undefined"!==typeof e.renderSideBySide&&this._renderSideBySide!==e.renderSideBySide&&(this._renderSideBySide=e.renderSideBySide,n=!0),"undefined"!==typeof e.maxComputationTime&&(this._maxComputationTime=e.maxComputationTime,this._isVisible&&this._beginUpdateDecorationsSoon());var i=!1;"undefined"!==typeof e.ignoreTrimWhitespace&&this._ignoreTrimWhitespace!==e.ignoreTrimWhitespace&&(this._ignoreTrimWhitespace=e.ignoreTrimWhitespace,i=!0),"undefined"!==typeof e.renderIndicators&&this._renderIndicators!==e.renderIndicators&&(this._renderIndicators=e.renderIndicators,i=!0),i&&this._beginUpdateDecorations(),"undefined"!==typeof e.originalEditable&&(this._originalIsEditable=Boolean(e.originalEditable)),this.modifiedEditor.updateOptions(this._adjustOptionsForRightHandSide(e)),this.originalEditor.updateOptions(this._adjustOptionsForLeftHandSide(e,this._originalIsEditable)),"undefined"!==typeof e.enableSplitViewResizing&&(this._enableSplitViewResizing=e.enableSplitViewResizing),this._strategy.setEnableSplitViewResizing(this._enableSplitViewResizing),n&&(this._renderSideBySide?this._setStrategy(new Cr(this._createDataSource(),this._enableSplitViewResizing)):this._setStrategy(new Nr(this._createDataSource(),this._enableSplitViewResizing)),this._containerDomElement.className=t._getClassName(this._themeService.getTheme(),this._renderSideBySide))},t.prototype.getModel=function(){return{original:this.originalEditor.getModel(),modified:this.modifiedEditor.getModel()}},t.prototype.setModel=function(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()},t.prototype.getDomNode=function(){return this._domElement},t.prototype.getVisibleColumnFromPosition=function(e){return this.modifiedEditor.getVisibleColumnFromPosition(e)},t.prototype.getPosition=function(){return this.modifiedEditor.getPosition()},t.prototype.setPosition=function(e){this.modifiedEditor.setPosition(e)},t.prototype.revealLine=function(e,t){void 0===t&&(t=0),this.modifiedEditor.revealLine(e,t)},t.prototype.revealLineInCenter=function(e,t){void 0===t&&(t=0),this.modifiedEditor.revealLineInCenter(e,t)},t.prototype.revealLineInCenterIfOutsideViewport=function(e,t){void 0===t&&(t=0),this.modifiedEditor.revealLineInCenterIfOutsideViewport(e,t)},t.prototype.revealPosition=function(e,t){void 0===t&&(t=0),this.modifiedEditor.revealPosition(e,t)},t.prototype.revealPositionInCenter=function(e,t){void 0===t&&(t=0),this.modifiedEditor.revealPositionInCenter(e,t)},t.prototype.revealPositionInCenterIfOutsideViewport=function(e,t){void 0===t&&(t=0),this.modifiedEditor.revealPositionInCenterIfOutsideViewport(e,t)},t.prototype.getSelection=function(){return this.modifiedEditor.getSelection()},t.prototype.getSelections=function(){return this.modifiedEditor.getSelections()},t.prototype.setSelection=function(e){this.modifiedEditor.setSelection(e)},t.prototype.setSelections=function(e){this.modifiedEditor.setSelections(e)},t.prototype.revealLines=function(e,t,n){void 0===n&&(n=0),this.modifiedEditor.revealLines(e,t,n)},t.prototype.revealLinesInCenter=function(e,t,n){void 0===n&&(n=0),this.modifiedEditor.revealLinesInCenter(e,t,n)},t.prototype.revealLinesInCenterIfOutsideViewport=function(e,t,n){void 0===n&&(n=0),this.modifiedEditor.revealLinesInCenterIfOutsideViewport(e,t,n)},t.prototype.revealRange=function(e,t,n,i){void 0===t&&(t=0),void 0===n&&(n=!1),void 0===i&&(i=!0),this.modifiedEditor.revealRange(e,t,n,i)},t.prototype.revealRangeInCenter=function(e,t){void 0===t&&(t=0),this.modifiedEditor.revealRangeInCenter(e,t)},t.prototype.revealRangeInCenterIfOutsideViewport=function(e,t){void 0===t&&(t=0),this.modifiedEditor.revealRangeInCenterIfOutsideViewport(e,t)},t.prototype.revealRangeAtTop=function(e,t){void 0===t&&(t=0),this.modifiedEditor.revealRangeAtTop(e,t)},t.prototype.getSupportedActions=function(){return this.modifiedEditor.getSupportedActions()},t.prototype.saveViewState=function(){var e=this.originalEditor.saveViewState(),t=this.modifiedEditor.saveViewState();return{original:e,modified:t}},t.prototype.restoreViewState=function(e){if(e.original&&e.modified){var t=e;this.originalEditor.restoreViewState(t.original),this.modifiedEditor.restoreViewState(t.modified)}},t.prototype.layout=function(e){this._elementSizeObserver.observe(e)},t.prototype.focus=function(){this.modifiedEditor.focus()},t.prototype.hasTextFocus=function(){return this.originalEditor.hasTextFocus()||this.modifiedEditor.hasTextFocus()},t.prototype.trigger=function(e,t,n){this.modifiedEditor.trigger(e,t,n)},t.prototype.changeDecorations=function(e){return this.modifiedEditor.changeDecorations(e)},t.prototype._onDidContainerSizeChanged=function(){this._doLayout()},t.prototype._getReviewHeight=function(){return this._reviewPane.isVisible()?this._elementSizeObserver.getHeight():0},t.prototype._layoutOverviewRulers=function(){if(this._originalOverviewRuler&&this._modifiedOverviewRuler){var e=this._elementSizeObserver.getHeight(),n=this._getReviewHeight(),i=t.ENTIRE_DIFF_OVERVIEW_WIDTH-2*t.ONE_OVERVIEW_WIDTH,r=this.modifiedEditor.getLayoutInfo();r&&(this._originalOverviewRuler.setLayout({top:0,width:t.ONE_OVERVIEW_WIDTH,right:i+t.ONE_OVERVIEW_WIDTH,height:e-n}),this._modifiedOverviewRuler.setLayout({top:0,right:0,width:t.ONE_OVERVIEW_WIDTH,height:e-n}))}},t.prototype._onViewZonesChanged=function(){this._currentlyChangingViewZones||this._updateDecorationsRunner.schedule()},t.prototype._beginUpdateDecorationsSoon=function(){var e=this;-1!==this._beginUpdateDecorationsTimeout&&(window.clearTimeout(this._beginUpdateDecorationsTimeout),this._beginUpdateDecorationsTimeout=-1),this._beginUpdateDecorationsTimeout=window.setTimeout((function(){return e._beginUpdateDecorations()}),t.UPDATE_DIFF_DECORATIONS_DELAY)},t._equals=function(e,t){return!e&&!t||!(!e||!t)&&e.toString()===t.toString()},t.prototype._beginUpdateDecorations=function(){var e=this;this._beginUpdateDecorationsTimeout=-1;var n=this.originalEditor.getModel(),i=this.modifiedEditor.getModel();if(n&&i){this._diffComputationToken++;var r=this._diffComputationToken;this._setState(1),this._editorWorkerService.canComputeDiff(n.uri,i.uri)?this._editorWorkerService.computeDiff(n.uri,i.uri,this._ignoreTrimWhitespace,this._maxComputationTime).then((function(t){r===e._diffComputationToken&&n===e.originalEditor.getModel()&&i===e.modifiedEditor.getModel()&&(e._setState(2),e._diffComputationResult=t,e._updateDecorationsRunner.schedule(),e._onDidUpdateDiff.fire())}),(function(t){r===e._diffComputationToken&&n===e.originalEditor.getModel()&&i===e.modifiedEditor.getModel()&&(e._setState(2),e._diffComputationResult=null,e._updateDecorationsRunner.schedule())})):t._equals(n.uri,this._lastOriginalWarning)&&t._equals(i.uri,this._lastModifiedWarning)||(this._lastOriginalWarning=n.uri,this._lastModifiedWarning=i.uri,this._notificationService.warn(Pn["a"]("diff.tooLarge","Cannot compare files because one file is too large.")))}},t.prototype._cleanViewZonesAndDecorations=function(){this._originalEditorState.clean(this.originalEditor),this._modifiedEditorState.clean(this.modifiedEditor)},t.prototype._updateDecorations=function(){if(this.originalEditor.getModel()&&this.modifiedEditor.getModel()&&this._originalOverviewRuler&&this._modifiedOverviewRuler){var e=this._diffComputationResult?this._diffComputationResult.changes:[],t=this._originalEditorState.getForeignViewZones(this.originalEditor.getWhitespaces()),n=this._modifiedEditorState.getForeignViewZones(this.modifiedEditor.getWhitespaces()),i=this._strategy.getEditorsDiffDecorations(e,this._ignoreTrimWhitespace,this._renderIndicators,t,n,this.originalEditor,this.modifiedEditor);try{this._currentlyChangingViewZones=!0,this._originalEditorState.apply(this.originalEditor,this._originalOverviewRuler,i.original,!1),this._modifiedEditorState.apply(this.modifiedEditor,this._modifiedOverviewRuler,i.modified,!0)}finally{this._currentlyChangingViewZones=!1}}},t.prototype._adjustOptionsForSubEditor=function(e){var t=he["c"](e||{});return t.inDiffEditor=!0,t.wordWrap="off",t.wordWrapMinified=!1,t.automaticLayout=!1,t.scrollbar=t.scrollbar||{},t.scrollbar.vertical="visible",t.folding=!1,t.codeLens=!1,t.fixedOverflowWidgets=!0,t.minimap||(t.minimap={}),t.minimap.enabled=!1,t},t.prototype._adjustOptionsForLeftHandSide=function(e,t){var n=this._adjustOptionsForSubEditor(e);return n.readOnly=!t,n.extraEditorClassName="original-in-monaco-diff-editor",n},t.prototype._adjustOptionsForRightHandSide=function(e){var n=this._adjustOptionsForSubEditor(e);return n.revealHorizontalRightPadding=T["e"].revealHorizontalRightPadding.defaultValue+t.ENTIRE_DIFF_OVERVIEW_WIDTH,n.scrollbar.verticalHasArrows=!1,n.extraEditorClassName="modified-in-monaco-diff-editor",n},t.prototype.doLayout=function(){this._elementSizeObserver.observe(),this._doLayout()},t.prototype._doLayout=function(){var e=this._elementSizeObserver.getWidth(),n=this._elementSizeObserver.getHeight(),i=this._getReviewHeight(),r=this._strategy.layout();this._originalDomNode.style.width=r+"px",this._originalDomNode.style.left="0px",this._modifiedDomNode.style.width=e-r+"px",this._modifiedDomNode.style.left=r+"px",this._overviewDomElement.style.top="0px",this._overviewDomElement.style.height=n-i+"px",this._overviewDomElement.style.width=t.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",this._overviewDomElement.style.left=e-t.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",this._overviewViewportDomElement.setWidth(t.ENTIRE_DIFF_OVERVIEW_WIDTH),this._overviewViewportDomElement.setHeight(30),this.originalEditor.layout({width:r,height:n-i}),this.modifiedEditor.layout({width:e-r-t.ENTIRE_DIFF_OVERVIEW_WIDTH,height:n-i}),(this._originalOverviewRuler||this._modifiedOverviewRuler)&&this._layoutOverviewRulers(),this._reviewPane.layout(n-i,e,i),this._layoutOverviewViewport()},t.prototype._layoutOverviewViewport=function(){var e=this._computeOverviewViewport();e?(this._overviewViewportDomElement.setTop(e.top),this._overviewViewportDomElement.setHeight(e.height)):(this._overviewViewportDomElement.setTop(0),this._overviewViewportDomElement.setHeight(0))},t.prototype._computeOverviewViewport=function(){var e=this.modifiedEditor.getLayoutInfo();if(!e)return null;var t=this.modifiedEditor.getScrollTop(),n=this.modifiedEditor.getScrollHeight(),i=Math.max(0,e.height),r=Math.max(0,i-0),o=n>0?r/n:0,s=Math.max(0,Math.floor(e.height*o)),a=Math.floor(t*o);return{height:s,top:a}},t.prototype._createDataSource=function(){var e=this;return{getWidth:function(){return e._elementSizeObserver.getWidth()},getHeight:function(){return e._elementSizeObserver.getHeight()-e._getReviewHeight()},getContainerDomNode:function(){return e._containerDomElement},relayoutEditors:function(){e._doLayout()},getOriginalEditor:function(){return e.originalEditor},getModifiedEditor:function(){return e.modifiedEditor}}},t.prototype._setStrategy=function(e){this._strategy&&this._strategy.dispose(),this._strategy=e,e.applyColors(this._themeService.getTheme()),this._diffComputationResult&&this._updateDecorations(),this._doLayout()},t.prototype._getLineChangeAtOrBeforeLineNumber=function(e,t){var n=this._diffComputationResult?this._diffComputationResult.changes:[];if(0===n.length||e<t(n[0]))return null;var i=0,r=n.length-1;while(i<r){var o=Math.floor((i+r)/2),s=t(n[o]),a=o+1<=r?t(n[o+1]):1073741824;e<s?r=o-1:e>=a?i=o+1:(i=o,r=o)}return n[i]},t.prototype._getEquivalentLineForOriginalLineNumber=function(e){var t=this._getLineChangeAtOrBeforeLineNumber(e,(function(e){return e.originalStartLineNumber}));if(!t)return e;var n=t.originalStartLineNumber+(t.originalEndLineNumber>0?-1:0),i=t.modifiedStartLineNumber+(t.modifiedEndLineNumber>0?-1:0),r=t.originalEndLineNumber>0?t.originalEndLineNumber-t.originalStartLineNumber+1:0,o=t.modifiedEndLineNumber>0?t.modifiedEndLineNumber-t.modifiedStartLineNumber+1:0,s=e-n;return s<=r?i+Math.min(s,o):i+o-r+s},t.prototype._getEquivalentLineForModifiedLineNumber=function(e){var t=this._getLineChangeAtOrBeforeLineNumber(e,(function(e){return e.modifiedStartLineNumber}));if(!t)return e;var n=t.originalStartLineNumber+(t.originalEndLineNumber>0?-1:0),i=t.modifiedStartLineNumber+(t.modifiedEndLineNumber>0?-1:0),r=t.originalEndLineNumber>0?t.originalEndLineNumber-t.originalStartLineNumber+1:0,o=t.modifiedEndLineNumber>0?t.modifiedEndLineNumber-t.modifiedStartLineNumber+1:0,s=e-i;return s<=o?n+Math.min(s,r):n+r-o+s},t.prototype.getDiffLineInformationForOriginal=function(e){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForOriginalLineNumber(e)}:null},t.prototype.getDiffLineInformationForModified=function(e){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForModifiedLineNumber(e)}:null},t.ONE_OVERVIEW_WIDTH=15,t.ENTIRE_DIFF_OVERVIEW_WIDTH=30,t.UPDATE_DIFF_DECORATIONS_DELAY=200,t=fr([pr(3,be["a"]),pr(4,jn["c"]),pr(5,Nt["a"]),pr(6,G["a"]),pr(7,zi["c"]),pr(8,ui["a"]),pr(9,or["a"]),pr(10,cr["a"])],t),t}(de["a"]),vr=function(e){function t(t){var n=e.call(this)||this;return n._dataSource=t,n._insertColor=null,n._removeColor=null,n}return hr(t,e),t.prototype.applyColors=function(e){var t=(e.getColor(Wi["j"])||Wi["g"]).transparent(2),n=(e.getColor(Wi["l"])||Wi["h"]).transparent(2),i=!t.equals(this._insertColor)||!n.equals(this._removeColor);return this._insertColor=t,this._removeColor=n,i},t.prototype.getEditorsDiffDecorations=function(e,t,n,i,r,o,s){r=r.sort((function(e,t){return e.afterLineNumber-t.afterLineNumber})),i=i.sort((function(e,t){return e.afterLineNumber-t.afterLineNumber}));var a=this._getViewZones(e,i,r,o,s,n),u=this._getOriginalEditorDecorations(e,t,n,o,s),l=this._getModifiedEditorDecorations(e,t,n,o,s);return{original:{decorations:u.decorations,overviewZones:u.overviewZones,zones:a.original},modified:{decorations:l.decorations,overviewZones:l.overviewZones,zones:a.modified}}},t}(de["a"]),_r=function(){function e(e){this._source=e,this._index=-1,this.current=null,this.advance()}return e.prototype.advance=function(){this._index++,this._index<this._source.length?this.current=this._source[this._index]:this.current=null},e}(),yr=function(){function e(e,t,n,i,r){this.lineChanges=e,this.originalForeignVZ=t,this.originalLineHeight=n,this.modifiedForeignVZ=i,this.modifiedLineHeight=r}return e.prototype.getViewZones=function(){for(var t={original:[],modified:[]},n=0,i=0,r=0,o=0,s=0,a=0,u=function(e,t){return e.afterLineNumber-t.afterLineNumber},l=function(e,t){if(null===t.domNode&&e.length>0){var n=e[e.length-1];if(n.afterLineNumber===t.afterLineNumber&&null===n.domNode)return void(n.heightInLines+=t.heightInLines)}e.push(t)},c=new _r(this.modifiedForeignVZ),d=new _r(this.originalForeignVZ),h=0,f=this.lineChanges.length;h<=f;h++){var p=h<f?this.lineChanges[h]:null;null!==p?(r=p.originalStartLineNumber+(p.originalEndLineNumber>0?-1:0),o=p.modifiedStartLineNumber+(p.modifiedEndLineNumber>0?-1:0),i=p.originalEndLineNumber>0?p.originalEndLineNumber-p.originalStartLineNumber+1:0,n=p.modifiedEndLineNumber>0?p.modifiedEndLineNumber-p.modifiedStartLineNumber+1:0,s=Math.max(p.originalStartLineNumber,p.originalEndLineNumber),a=Math.max(p.modifiedStartLineNumber,p.modifiedEndLineNumber)):(r+=1e7+i,o+=1e7+n,s=r,a=o);var g=[],A=[];while(c.current&&c.current.afterLineNumber<=a){var m=void 0;m=c.current.afterLineNumber<=o?r-o+c.current.afterLineNumber:s;var v=null;p&&p.modifiedStartLineNumber<=c.current.afterLineNumber&&c.current.afterLineNumber<=p.modifiedEndLineNumber&&(v=this._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion()),g.push({afterLineNumber:m,heightInLines:c.current.height/this.modifiedLineHeight,domNode:null,marginDomNode:v}),c.advance()}while(d.current&&d.current.afterLineNumber<=s){m=void 0;m=d.current.afterLineNumber<=r?o-r+d.current.afterLineNumber:a,A.push({afterLineNumber:m,heightInLines:d.current.height/this.originalLineHeight,domNode:null}),d.advance()}if(null!==p&&Er(p)){var _=this._produceOriginalFromDiff(p,i,n);_&&g.push(_)}if(null!==p&&xr(p)){_=this._produceModifiedFromDiff(p,i,n);_&&A.push(_)}var y=0,b=0;g=g.sort(u),A=A.sort(u);while(y<g.length&&b<A.length){var w=g[y],C=A[b],S=w.afterLineNumber-r,N=C.afterLineNumber-o;S<N?(l(t.original,w),y++):N<S?(l(t.modified,C),b++):w.shouldNotShrink?(l(t.original,w),y++):C.shouldNotShrink?(l(t.modified,C),b++):w.heightInLines>=C.heightInLines?(w.heightInLines-=C.heightInLines,b++):(C.heightInLines-=w.heightInLines,y++)}while(y<g.length)l(t.original,g[y]),y++;while(b<A.length)l(t.modified,A[b]),b++}return{original:e._ensureDomNodes(t.original),modified:e._ensureDomNodes(t.modified)}},e._ensureDomNodes=function(e){return e.map((function(e){return e.domNode||(e.domNode=Or()),e}))},e}();function br(e,t,n,i,r){return{range:new Q["a"](e,t,n,i),options:r}}var wr={charDelete:tr["a"].register({className:"char-delete"}),charDeleteWholeLine:tr["a"].register({className:"char-delete",isWholeLine:!0}),charInsert:tr["a"].register({className:"char-insert"}),charInsertWholeLine:tr["a"].register({className:"char-insert",isWholeLine:!0}),lineInsert:tr["a"].register({className:"line-insert",marginClassName:"line-insert",isWholeLine:!0}),lineInsertWithSign:tr["a"].register({className:"line-insert",linesDecorationsClassName:"insert-sign codicon codicon-add",marginClassName:"line-insert",isWholeLine:!0}),lineDelete:tr["a"].register({className:"line-delete",marginClassName:"line-delete",isWholeLine:!0}),lineDeleteWithSign:tr["a"].register({className:"line-delete",linesDecorationsClassName:"delete-sign codicon codicon-remove",marginClassName:"line-delete",isWholeLine:!0}),lineDeleteMargin:tr["a"].register({marginClassName:"line-delete"})},Cr=function(e){function t(t,n){var i=e.call(this,t)||this;return i._disableSash=!1===n,i._sashRatio=null,i._sashPosition=null,i._startSashPosition=null,i._sash=i._register(new Ti["a"](i._dataSource.getContainerDomNode(),i)),i._disableSash&&(i._sash.state=0),i._sash.onDidStart((function(){return i.onSashDragStart()})),i._sash.onDidChange((function(e){return i.onSashDrag(e)})),i._sash.onDidEnd((function(){return i.onSashDragEnd()})),i._sash.onDidReset((function(){return i.onSashReset()})),i}return hr(t,e),t.prototype.setEnableSplitViewResizing=function(e){var t=!1===e;this._disableSash!==t&&(this._disableSash=t,this._sash.state=this._disableSash?0:3)},t.prototype.layout=function(e){void 0===e&&(e=this._sashRatio);var n=this._dataSource.getWidth(),i=n-mr.ENTIRE_DIFF_OVERVIEW_WIDTH,r=Math.floor((e||.5)*i),o=Math.floor(.5*i);return r=this._disableSash?o:r||o,i>2*t.MINIMUM_EDITOR_WIDTH?(r<t.MINIMUM_EDITOR_WIDTH&&(r=t.MINIMUM_EDITOR_WIDTH),r>i-t.MINIMUM_EDITOR_WIDTH&&(r=i-t.MINIMUM_EDITOR_WIDTH)):r=o,this._sashPosition!==r&&(this._sashPosition=r,this._sash.layout()),this._sashPosition},t.prototype.onSashDragStart=function(){this._startSashPosition=this._sashPosition},t.prototype.onSashDrag=function(e){var t=this._dataSource.getWidth(),n=t-mr.ENTIRE_DIFF_OVERVIEW_WIDTH,i=this.layout((this._startSashPosition+(e.currentX-e.startX))/n);this._sashRatio=i/n,this._dataSource.relayoutEditors()},t.prototype.onSashDragEnd=function(){this._sash.layout()},t.prototype.onSashReset=function(){this._sashRatio=.5,this._dataSource.relayoutEditors(),this._sash.layout()},t.prototype.getVerticalSashTop=function(e){return 0},t.prototype.getVerticalSashLeft=function(e){return this._sashPosition},t.prototype.getVerticalSashHeight=function(e){return this._dataSource.getHeight()},t.prototype._getViewZones=function(e,t,n,i,r){var o=new Sr(e,t,i.getOption(49),n,r.getOption(49));return o.getViewZones()},t.prototype._getOriginalEditorDecorations=function(e,t,n,i,r){for(var o=String(this._removeColor),s={decorations:[],overviewZones:[]},a=i.getModel(),u=0,l=e.length;u<l;u++){var c=e[u];if(xr(c)&&(s.decorations.push({range:new Q["a"](c.originalStartLineNumber,1,c.originalEndLineNumber,1073741824),options:n?wr.lineDeleteWithSign:wr.lineDelete}),Er(c)&&c.charChanges||s.decorations.push(br(c.originalStartLineNumber,1,c.originalEndLineNumber,1073741824,wr.charDeleteWholeLine)),s.overviewZones.push(new nr["a"](c.originalStartLineNumber,c.originalEndLineNumber,o)),c.charChanges))for(var d=0,h=c.charChanges.length;d<h;d++){var f=c.charChanges[d];if(xr(f))if(t)for(var p=f.originalStartLineNumber;p<=f.originalEndLineNumber;p++){var g=void 0,A=void 0;g=p===f.originalStartLineNumber?f.originalStartColumn:a.getLineFirstNonWhitespaceColumn(p),A=p===f.originalEndLineNumber?f.originalEndColumn:a.getLineLastNonWhitespaceColumn(p),s.decorations.push(br(p,g,p,A,wr.charDelete))}else s.decorations.push(br(f.originalStartLineNumber,f.originalStartColumn,f.originalEndLineNumber,f.originalEndColumn,wr.charDelete))}}return s},t.prototype._getModifiedEditorDecorations=function(e,t,n,i,r){for(var o=String(this._insertColor),s={decorations:[],overviewZones:[]},a=r.getModel(),u=0,l=e.length;u<l;u++){var c=e[u];if(Er(c)&&(s.decorations.push({range:new Q["a"](c.modifiedStartLineNumber,1,c.modifiedEndLineNumber,1073741824),options:n?wr.lineInsertWithSign:wr.lineInsert}),xr(c)&&c.charChanges||s.decorations.push(br(c.modifiedStartLineNumber,1,c.modifiedEndLineNumber,1073741824,wr.charInsertWholeLine)),s.overviewZones.push(new nr["a"](c.modifiedStartLineNumber,c.modifiedEndLineNumber,o)),c.charChanges))for(var d=0,h=c.charChanges.length;d<h;d++){var f=c.charChanges[d];if(Er(f))if(t)for(var p=f.modifiedStartLineNumber;p<=f.modifiedEndLineNumber;p++){var g=void 0,A=void 0;g=p===f.modifiedStartLineNumber?f.modifiedStartColumn:a.getLineFirstNonWhitespaceColumn(p),A=p===f.modifiedEndLineNumber?f.modifiedEndColumn:a.getLineLastNonWhitespaceColumn(p),s.decorations.push(br(p,g,p,A,wr.charInsert))}else s.decorations.push(br(f.modifiedStartLineNumber,f.modifiedStartColumn,f.modifiedEndLineNumber,f.modifiedEndColumn,wr.charInsert))}}return s},t.MINIMUM_EDITOR_WIDTH=100,t}(vr),Sr=function(e){function t(t,n,i,r,o){return e.call(this,t,n,i,r,o)||this}return hr(t,e),t.prototype._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion=function(){return null},t.prototype._produceOriginalFromDiff=function(e,t,n){return n>t?{afterLineNumber:Math.max(e.originalStartLineNumber,e.originalEndLineNumber),heightInLines:n-t,domNode:null}:null},t.prototype._produceModifiedFromDiff=function(e,t,n){return t>n?{afterLineNumber:Math.max(e.modifiedStartLineNumber,e.modifiedEndLineNumber),heightInLines:t-n,domNode:null}:null},t}(yr),Nr=function(e){function t(t,n){var i=e.call(this,t)||this;return i.decorationsLeft=t.getOriginalEditor().getLayoutInfo().decorationsLeft,i._register(t.getOriginalEditor().onDidLayoutChange((function(e){i.decorationsLeft!==e.decorationsLeft&&(i.decorationsLeft=e.decorationsLeft,t.relayoutEditors())}))),i}return hr(t,e),t.prototype.setEnableSplitViewResizing=function(e){},t.prototype._getViewZones=function(e,t,n,i,r,o){var s=new Lr(e,t,n,i,r,o);return s.getViewZones()},t.prototype._getOriginalEditorDecorations=function(e,t,n,i,r){for(var o=String(this._removeColor),s={decorations:[],overviewZones:[]},a=0,u=e.length;a<u;a++){var l=e[a];xr(l)&&(s.decorations.push({range:new Q["a"](l.originalStartLineNumber,1,l.originalEndLineNumber,1073741824),options:wr.lineDeleteMargin}),s.overviewZones.push(new nr["a"](l.originalStartLineNumber,l.originalEndLineNumber,o)))}return s},t.prototype._getModifiedEditorDecorations=function(e,t,n,i,r){for(var o=String(this._insertColor),s={decorations:[],overviewZones:[]},a=r.getModel(),u=0,l=e.length;u<l;u++){var c=e[u];if(Er(c))if(s.decorations.push({range:new Q["a"](c.modifiedStartLineNumber,1,c.modifiedEndLineNumber,1073741824),options:n?wr.lineInsertWithSign:wr.lineInsert}),s.overviewZones.push(new nr["a"](c.modifiedStartLineNumber,c.modifiedEndLineNumber,o)),c.charChanges)for(var d=0,h=c.charChanges.length;d<h;d++){var f=c.charChanges[d];if(Er(f))if(t)for(var p=f.modifiedStartLineNumber;p<=f.modifiedEndLineNumber;p++){var g=void 0,A=void 0;g=p===f.modifiedStartLineNumber?f.modifiedStartColumn:a.getLineFirstNonWhitespaceColumn(p),A=p===f.modifiedEndLineNumber?f.modifiedEndColumn:a.getLineLastNonWhitespaceColumn(p),s.decorations.push(br(p,g,p,A,wr.charInsert))}else s.decorations.push(br(f.modifiedStartLineNumber,f.modifiedStartColumn,f.modifiedEndLineNumber,f.modifiedEndColumn,wr.charInsert))}else s.decorations.push(br(c.modifiedStartLineNumber,1,c.modifiedEndLineNumber,1073741824,wr.charInsertWholeLine))}return s},t.prototype.layout=function(){return Math.max(5,this.decorationsLeft)},t}(vr),Lr=function(e){function t(t,n,i,r,o,s){var a=e.call(this,t,n,r.getOption(49),i,o.getOption(49))||this;return a.originalModel=r.getModel(),a.modifiedEditorOptions=o.getOptions(),a.modifiedEditorTabSize=o.getModel().getOptions().tabSize,a.renderIndicators=s,a}return hr(t,e),t.prototype._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion=function(){var e=document.createElement("div");return e.className="inline-added-margin-view-zone",e},t.prototype._produceOriginalFromDiff=function(e,t,n){var i=document.createElement("div");return i.className="inline-added-margin-view-zone",{afterLineNumber:Math.max(e.originalStartLineNumber,e.originalEndLineNumber),heightInLines:n,domNode:document.createElement("div"),marginDomNode:i}},t.prototype._produceModifiedFromDiff=function(e,t,n){var i=[];if(e.charChanges)for(var r=0,o=e.charChanges.length;r<o;r++){var s=e.charChanges[r];xr(s)&&i.push(new Yt["a"](new Q["a"](s.originalStartLineNumber,s.originalStartColumn,s.originalEndLineNumber,s.originalEndColumn),"char-delete",0))}for(var a=Object(er["a"])(1e4),u=[],l=this.modifiedEditorOptions.get(107),c=this.modifiedEditorOptions.get(34),d=l.decorationsWidth,h=this.modifiedEditorOptions.get(49),f=c.typicalHalfwidthCharacterWidth,p=0,g=[],A=e.originalStartLineNumber;A<=e.originalEndLineNumber;A++)if(p=Math.max(p,this._renderOriginalLine(A-e.originalStartLineNumber,this.originalModel,this.modifiedEditorOptions,this.modifiedEditorTabSize,A,i,a)),g.push(this.originalModel.getLineContent(A)),this.renderIndicators){var m=A-e.originalStartLineNumber;u=u.concat(['<div class="delete-sign codicon codicon-remove" style="position:absolute;top:'+m*h+"px;width:"+d+"px;height:"+h+'px;right:0;"></div>'])}p+=this.modifiedEditorOptions.get(79);var v=document.createElement("div");v.className="view-lines line-delete",v.innerHTML=a.build(),Ri["a"].applyFontInfoSlow(v,c);var _=document.createElement("div");return _.className="inline-deleted-margin-view-zone",_.innerHTML=u.join(""),Ri["a"].applyFontInfoSlow(_,c),{shouldNotShrink:!0,afterLineNumber:0===e.modifiedEndLineNumber?e.modifiedStartLineNumber:e.modifiedStartLineNumber-1,heightInLines:t,minWidthInPx:p*f,domNode:v,marginDomNode:_,diff:{originalStartLineNumber:e.originalStartLineNumber,originalEndLineNumber:e.originalEndLineNumber,modifiedStartLineNumber:e.modifiedStartLineNumber,modifiedEndLineNumber:e.modifiedEndLineNumber,originalContent:g}}},t.prototype._renderOriginalLine=function(e,t,n,i,r,o,s){var a=t.getLineTokens(r),u=a.getLineContent(),l=n.get(34),c=ir["a"].filter(o,r,1,u.length+1);s.appendASCIIString('<div class="view-line'),0===o.length&&s.appendASCIIString(" char-delete"),s.appendASCIIString('" style="top:'),s.appendASCIIString(String(e*n.get(49))),s.appendASCIIString('px;width:1000000px;">');var d=Yt["d"].isBasicASCII(u,t.mightContainNonBasicASCII()),h=Yt["d"].containsRTL(u,d,t.mightContainRTL()),f=Object(Xt["d"])(new Xt["c"](l.isMonospace&&!n.get(23),l.canUseHalfwidthRightwardsArrow,u,!1,d,h,0,a,c,i,0,l.spaceWidth,l.middotWidth,n.get(88),n.get(74),n.get(69),n.get(35)!==T["d"].OFF,null),s);s.appendASCIIString("</div>");var p=f.characterMapping.getAbsoluteOffsets();return p.length>0?p[p.length-1]:0},t}(yr);function Er(e){return e.modifiedEndLineNumber>0}function xr(e){return e.originalEndLineNumber>0}function Or(){var e=document.createElement("div");return e.className="diagonal-fill",e}Object(zi["e"])((function(e,t){var n=e.getColor(Wi["j"]);n&&(t.addRule(".monaco-editor .line-insert, .monaco-editor .char-insert { background-color: "+n+"; }"),t.addRule(".monaco-diff-editor .line-insert, .monaco-diff-editor .char-insert { background-color: "+n+"; }"),t.addRule(".monaco-editor .inline-added-margin-view-zone { background-color: "+n+"; }"));var i=e.getColor(Wi["l"]);i&&(t.addRule(".monaco-editor .line-delete, .monaco-editor .char-delete { background-color: "+i+"; }"),t.addRule(".monaco-diff-editor .line-delete, .monaco-diff-editor .char-delete { background-color: "+i+"; }"),t.addRule(".monaco-editor .inline-deleted-margin-view-zone { background-color: "+i+"; }"));var r=e.getColor(Wi["k"]);r&&t.addRule(".monaco-editor .line-insert, .monaco-editor .char-insert { border: 1px "+("hc"===e.type?"dashed":"solid")+" "+r+"; }");var o=e.getColor(Wi["m"]);o&&t.addRule(".monaco-editor .line-delete, .monaco-editor .char-delete { border: 1px "+("hc"===e.type?"dashed":"solid")+" "+o+"; }");var s=e.getColor(Wi["Tb"]);s&&t.addRule(".monaco-diff-editor.side-by-side .editor.modified { box-shadow: -6px 0 5px -5px "+s+"; }");var a=e.getColor(Wi["i"]);a&&t.addRule(".monaco-diff-editor.side-by-side .editor.modified { border-left: 1px solid "+a+"; }")}));var Br=n("9Y+e"),kr=Object(Nt["c"])("themeService"),Dr=n("fjLI"),Ir=n("bexQ"),Mr=n("R3nR"),Fr=n("9XeP"),Tr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Rr=function(e,t,n,i){var r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Pr=function(e,t){return function(n,i){t(n,i,e)}},Ur=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i},Hr=0,jr=!1;function Qr(){jr||(jr=!0,Ii["b"](document.body))}var Vr=function(e){function t(t,n,i,r,o,s,a,u,l,c){var d=this;return n=n||{},n.ariaLabel=n.ariaLabel||ti.editorViewAccessibleLabel,n.ariaLabel=n.ariaLabel+";"+(Di["i"]?ti.accessibilityHelpMessageIE:ti.accessibilityHelpMessage),d=e.call(this,t,n,{},i,r,o,s,u,l,c)||this,d._standaloneKeybindingService=a instanceof bi?a:null,Qr(),d}return Tr(t,e),t.prototype.addCommand=function(e,t,n){if(!this._standaloneKeybindingService)return console.warn("Cannot add command because the editor is configured with an unrecognized KeybindingService"),null;var i="DYNAMIC_"+ ++Hr,r=jn["a"].deserialize(n);return this._standaloneKeybindingService.addDynamicKeybinding(i,e,t,r),i},t.prototype.createContextKey=function(e,t){return this._contextKeyService.createKey(e,t)},t.prototype.addAction=function(e){var t=this;if("string"!==typeof e.id||"string"!==typeof e.label||"function"!==typeof e.run)throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");if(!this._standaloneKeybindingService)return console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),de["a"].None;var n=e.id,i=e.label,r=jn["a"].and(jn["a"].equals("editorId",this.getId()),jn["a"].deserialize(e.precondition)),o=e.keybindings,s=jn["a"].and(r,jn["a"].deserialize(e.keybindingContext)),a=e.contextMenuGroupId||null,u=e.contextMenuOrder||0,l=function(n){for(var i=[],r=1;r<arguments.length;r++)i[r-1]=arguments[r];return Promise.resolve(e.run.apply(e,Ur([t],i)))},c=new de["b"],d=this.getId()+":"+n;if(c.add(ee["a"].registerCommand(d,l)),a){var h={command:{id:d,title:i},when:r,group:a,order:u};c.add(Dr["c"].appendMenuItem(7,h))}if(Array.isArray(o))for(var f=0,p=o;f<p.length;f++){var g=p[f];c.add(this._standaloneKeybindingService.addDynamicKeybinding(d,g,l,s))}var A=new Br["a"](d,i,i,r,l,this._contextKeyService);return this._actions[n]=A,c.add(Object(de["h"])((function(){delete t._actions[n]}))),c},t=Rr([Pr(2,Nt["a"]),Pr(3,G["a"]),Pr(4,ee["b"]),Pr(5,jn["c"]),Pr(6,Ir["a"]),Pr(7,zi["c"]),Pr(8,ui["a"]),Pr(9,Mr["b"])],t),t}(Mi["a"]),Wr=function(e){function t(t,n,i,r,o,s,a,u,l,c,d,h,f){var p=this;xi(h,n,!1);var g=c.registerEditorContainer(t);n=n||{},"string"===typeof n.theme&&c.setTheme(n.theme);var A,m=n.model;if(delete n.model,p=e.call(this,t,n,r,o,s,a,u,c,d,f)||this,p._contextViewService=l,p._configurationService=h,p._register(i),p._register(g),"undefined"===typeof m?(A=self.monaco.editor.createModel(n.value||"",n.language||"text/plain"),p._ownsModel=!0):(A=m,p._ownsModel=!1),p._attachModel(A),A){var v={oldModelUrl:null,newModelUrl:A.uri};p._onDidChangeModel.fire(v)}return p}return Tr(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.updateOptions=function(t){xi(this._configurationService,t,!1),e.prototype.updateOptions.call(this,t)},t.prototype._attachModel=function(t){e.prototype._attachModel.call(this,t),this._modelData&&this._contextViewService.setContainer(this._modelData.view.domNode.domNode)},t.prototype._postDetachModelCleanup=function(t){e.prototype._postDetachModelCleanup.call(this,t),t&&this._ownsModel&&(t.dispose(),this._ownsModel=!1)},t=Rr([Pr(3,Nt["a"]),Pr(4,G["a"]),Pr(5,ee["b"]),Pr(6,jn["c"]),Pr(7,Ir["a"]),Pr(8,or["b"]),Pr(9,kr),Pr(10,ui["a"]),Pr(11,Bn["a"]),Pr(12,Mr["b"])],t),t}(Vr),zr=function(e){function t(t,n,i,r,o,s,a,u,l,c,d,h,f,p,g){var A=this;xi(h,n,!0);var m=c.registerEditorContainer(t);return n=n||{},"string"===typeof n.theme&&(n.theme=c.setTheme(n.theme)),A=e.call(this,t,n,g,u,o,r,l,c,d,f,p)||this,A._contextViewService=a,A._configurationService=h,A._register(i),A._register(m),A._contextViewService.setContainer(A._containerDomElement),A}return Tr(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.updateOptions=function(t){xi(this._configurationService,t,!0),e.prototype.updateOptions.call(this,t)},t.prototype._createInnerEditor=function(e,t,n){return e.createInstance(Vr,t,n)},t.prototype.getOriginalEditor=function(){return e.prototype.getOriginalEditor.call(this)},t.prototype.getModifiedEditor=function(){return e.prototype.getModifiedEditor.call(this)},t.prototype.addCommand=function(e,t,n){return this.getModifiedEditor().addCommand(e,t,n)},t.prototype.createContextKey=function(e,t){return this.getModifiedEditor().createContextKey(e,t)},t.prototype.addAction=function(e){return this.getModifiedEditor().addAction(e)},t=Rr([Pr(3,Nt["a"]),Pr(4,jn["c"]),Pr(5,Ir["a"]),Pr(6,or["b"]),Pr(7,be["a"]),Pr(8,G["a"]),Pr(9,kr),Pr(10,ui["a"]),Pr(11,Bn["a"]),Pr(12,or["a"]),Pr(13,cr["a"]),Pr(14,Object(Nt["d"])(Fr["a"]))],t),t}(mr),Kr=n("x/UI"),qr=n("WBhO"),Gr=function(){function e(e){this._languageIdentifier=e}return e.prototype.getId=function(){return this._languageIdentifier.language},e}(),Xr=n("MrjW"),Yr=n("l2gE"),Jr="text/plain",Zr="application/unknown",$r=[],eo=[],to=[];function no(e,t){void 0===t&&(t=!1);var n=io(e);$r.push(n),n.userConfigured?to.push(n):eo.push(n),t&&!n.userConfigured&&$r.forEach((function(e){e.mime===n.mime||e.userConfigured||(n.extension&&e.extension===n.extension&&console.warn("Overwriting extension <<"+n.extension+">> to now point to mime <<"+n.mime+">>"),n.filename&&e.filename===n.filename&&console.warn("Overwriting filename <<"+n.filename+">> to now point to mime <<"+n.mime+">>"),n.filepattern&&e.filepattern===n.filepattern&&console.warn("Overwriting filepattern <<"+n.filepattern+">> to now point to mime <<"+n.mime+">>"),n.firstline&&e.firstline===n.firstline&&console.warn("Overwriting firstline <<"+n.firstline+">> to now point to mime <<"+n.mime+">>"))}))}function io(e){return{id:e.id,mime:e.mime,filename:e.filename,extension:e.extension,filepattern:e.filepattern,firstline:e.firstline,userConfigured:e.userConfigured,filenameLowercase:e.filename?e.filename.toLowerCase():void 0,extensionLowercase:e.extension?e.extension.toLowerCase():void 0,filepatternLowercase:e.filepattern?e.filepattern.toLowerCase():void 0,filepatternOnPath:!!e.filepattern&&e.filepattern.indexOf(Xr["posix"].sep)>=0}}function ro(e,t){var n;if(e)switch(e.scheme){case Z["b"].file:n=e.fsPath;break;case Z["b"].data:var i=$["a"].parseMetaData(e);n=i.get($["a"].META_DATA_LABEL);break;default:n=e.path}if(!n)return[Zr];n=n.toLowerCase();var r=Object(Xr["basename"])(n),o=oo(n,r,to);if(o)return[o,Jr];var s=oo(n,r,eo);if(s)return[s,Jr];if(t){var a=so(t);if(a)return[a,Jr]}return[Zr]}function oo(e,t,n){for(var i=null,r=null,o=null,s=n.length-1;s>=0;s--){var a=n[s];if(t===a.filenameLowercase){i=a;break}if(a.filepattern&&(!r||a.filepattern.length>r.filepattern.length)){var u=a.filepatternOnPath?e:t;Object(Yr["a"])(a.filepatternLowercase,u)&&(r=a)}a.extension&&(!o||a.extension.length>o.extension.length)&&Object(Ge["m"])(t,a.extensionLowercase)&&(o=a)}return i?i.mime:r?r.mime:o?o.mime:null}function so(e){if(Object(Ge["O"])(e)&&(e=e.substr(1)),e.length>0)for(var t=$r.length-1;t>=0;t--){var n=$r[t];if(n.firstline){var i=e.match(n.firstline);if(i&&i.length>0)return n.mime}}return null}var ao=n("MqQJ"),uo=n("ic2d"),lo=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),co=Object.prototype.hasOwnProperty,ho=function(e){function t(t,n){void 0===t&&(t=!0),void 0===n&&(n=!1);var i=e.call(this)||this;return i._onDidChange=i._register(new P["a"]),i.onDidChange=i._onDidChange.event,i._warnOnOverwrite=n,i._nextLanguageId2=1,i._languageIdToLanguage=[],i._languageToLanguageId=Object.create(null),i._languages={},i._mimeTypesMap={},i._nameMap={},i._lowercaseNameMap={},t&&(i._initializeFromRegistry(),i._register(ao["a"].onDidChangeLanguages((function(e){return i._initializeFromRegistry()})))),i}return lo(t,e),t.prototype._initializeFromRegistry=function(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={};var e=ao["a"].getLanguages();this._registerLanguages(e)},t.prototype._registerLanguages=function(e){for(var t=this,n=0,i=e;n<i.length;n++){var r=i[n];this._registerLanguage(r)}this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},Object.keys(this._languages).forEach((function(e){var n=t._languages[e];n.name&&(t._nameMap[n.name]=n.identifier),n.aliases.forEach((function(e){t._lowercaseNameMap[e.toLowerCase()]=n.identifier})),n.mimetypes.forEach((function(e){t._mimeTypesMap[e]=n.identifier}))})),uo["a"].as(Dn["a"].Configuration).registerOverrideIdentifiers(ao["a"].getLanguages().map((function(e){return e.id}))),this._onDidChange.fire()},t.prototype._getLanguageId=function(e){if(this._languageToLanguageId[e])return this._languageToLanguageId[e];var t=this._nextLanguageId2++;return this._languageIdToLanguage[t]=e,this._languageToLanguageId[e]=t,t},t.prototype._registerLanguage=function(e){var t,n=e.id;if(co.call(this._languages,n))t=this._languages[n];else{var i=this._getLanguageId(n);t={identifier:new _e["q"](n,i),name:null,mimetypes:[],aliases:[],extensions:[],filenames:[],configurationFiles:[]},this._languages[n]=t}this._mergeLanguage(t,e)},t.prototype._mergeLanguage=function(e,t){var n,i=t.id,r=null;if(Array.isArray(t.mimetypes)&&t.mimetypes.length>0&&((n=e.mimetypes).push.apply(n,t.mimetypes),r=t.mimetypes[0]),r||(r="text/x-"+i,e.mimetypes.push(r)),Array.isArray(t.extensions))for(var o=0,s=t.extensions;o<s.length;o++){var a=s[o];no({id:i,mime:r,extension:a},this._warnOnOverwrite),e.extensions.push(a)}if(Array.isArray(t.filenames))for(var u=0,l=t.filenames;u<l.length;u++){var c=l[u];no({id:i,mime:r,filename:c},this._warnOnOverwrite),e.filenames.push(c)}if(Array.isArray(t.filenamePatterns))for(var d=0,h=t.filenamePatterns;d<h.length;d++){var f=h[d];no({id:i,mime:r,filepattern:f},this._warnOnOverwrite)}if("string"===typeof t.firstLine&&t.firstLine.length>0){var p=t.firstLine;"^"!==p.charAt(0)&&(p="^"+p);try{var g=new RegExp(p);Ge["I"](g)||no({id:i,mime:r,firstline:g},this._warnOnOverwrite)}catch(w){Object(Se["e"])(w)}}e.aliases.push(i);var A=null;if("undefined"!==typeof t.aliases&&Array.isArray(t.aliases)&&(A=0===t.aliases.length?[null]:t.aliases),null!==A)for(var m=0,v=A;m<v.length;m++){var _=v[m];_&&0!==_.length&&e.aliases.push(_)}var y=null!==A&&A.length>0;if(y&&null===A[0]);else{var b=(y?A[0]:null)||i;!y&&e.name||(e.name=b)}t.configuration&&e.configurationFiles.push(t.configuration)},t.prototype.isRegisteredMode=function(e){return!!co.call(this._mimeTypesMap,e)||co.call(this._languages,e)},t.prototype.getModeIdForLanguageNameLowercase=function(e){return co.call(this._lowercaseNameMap,e)?this._lowercaseNameMap[e].language:null},t.prototype.extractModeIds=function(e){var t=this;return e?e.split(",").map((function(e){return e.trim()})).map((function(e){return co.call(t._mimeTypesMap,e)?t._mimeTypesMap[e].language:e})).filter((function(e){return co.call(t._languages,e)})):[]},t.prototype.getLanguageIdentifier=function(e){if(e===ye["b"]||0===e)return ye["a"];var t;if("string"===typeof e)t=e;else if(t=this._languageIdToLanguage[e],!t)return null;return co.call(this._languages,t)?this._languages[t].identifier:null},t.prototype.getModeIdsFromFilepathOrFirstLine=function(e,t){if(!e&&!t)return[];var n=ro(e,t);return this.extractModeIds(n.join(","))},t}(de["a"]),fo=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),po=function(e){function t(t,n){var i=e.call(this)||this;return i._onDidChange=i._register(new P["a"]),i.onDidChange=i._onDidChange.event,i._selector=n,i.languageIdentifier=i._selector(),i._register(t((function(){return i._evaluate()}))),i}return fo(t,e),t.prototype._evaluate=function(){var e=this._selector();e.id!==this.languageIdentifier.id&&(this.languageIdentifier=e,this._onDidChange.fire(this.languageIdentifier))},t}(de["a"]),go=function(){function e(e){var t=this;void 0===e&&(e=!1),this._onDidCreateMode=new P["a"],this.onDidCreateMode=this._onDidCreateMode.event,this._onLanguagesMaybeChanged=new P["a"],this.onLanguagesMaybeChanged=this._onLanguagesMaybeChanged.event,this._instantiatedModes={},this._registry=new ho(!0,e),this._registry.onDidChange((function(){return t._onLanguagesMaybeChanged.fire()}))}return e.prototype.isRegisteredMode=function(e){return this._registry.isRegisteredMode(e)},e.prototype.getModeIdForLanguageName=function(e){return this._registry.getModeIdForLanguageNameLowercase(e)},e.prototype.getModeIdByFilepathOrFirstLine=function(e,t){var n=this._registry.getModeIdsFromFilepathOrFirstLine(e,t);return Object(Pe["l"])(n,null)},e.prototype.getModeId=function(e){var t=this._registry.extractModeIds(e);return Object(Pe["l"])(t,null)},e.prototype.getLanguageIdentifier=function(e){return this._registry.getLanguageIdentifier(e)},e.prototype.create=function(e){var t=this;return new po(this.onLanguagesMaybeChanged,(function(){var n=t.getModeId(e);return t._createModeAndGetLanguageIdentifier(n)}))},e.prototype.createByFilepathOrFirstLine=function(e,t){var n=this;return new po(this.onLanguagesMaybeChanged,(function(){var i=n.getModeIdByFilepathOrFirstLine(e,t);return n._createModeAndGetLanguageIdentifier(i)}))},e.prototype._createModeAndGetLanguageIdentifier=function(e){var t=this.getLanguageIdentifier(e||"plaintext")||ye["a"];return this._getOrCreateMode(t.language),t},e.prototype.triggerMode=function(e){var t=this.getModeId(e);this._getOrCreateMode(t||"plaintext")},e.prototype._getOrCreateMode=function(e){if(!this._instantiatedModes.hasOwnProperty(e)){var t=this.getLanguageIdentifier(e)||ye["a"];this._instantiatedModes[e]=new Gr(t),this._onDidCreateMode.fire(this._instantiatedModes[e])}return this._instantiatedModes[e]},e}(),Ao=n("QRHv"),mo=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),vo=function(e,t,n,i){var r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},_o=function(e,t){return function(n,i){t(n,i,e)}};function yo(e){return e.toString()}var bo=function(){function e(e,t,n){this._modelEventListeners=new de["b"],this.model=e,this._languageSelection=null,this._languageSelectionListener=null,this._modelEventListeners.add(e.onWillDispose((function(){return t(e)}))),this._modelEventListeners.add(e.onDidChangeLanguage((function(t){return n(e,t)})))}return e.prototype._disposeLanguageSelection=function(){this._languageSelectionListener&&(this._languageSelectionListener.dispose(),this._languageSelectionListener=null),this._languageSelection&&(this._languageSelection.dispose(),this._languageSelection=null)},e.prototype.dispose=function(){this._modelEventListeners.dispose(),this._disposeLanguageSelection()},e.prototype.setLanguage=function(e){var t=this;this._disposeLanguageSelection(),this._languageSelection=e,this._languageSelectionListener=this._languageSelection.onDidChange((function(){return t.model.setMode(e.languageIdentifier)})),this.model.setMode(e.languageIdentifier)},e}(),wo=Ne["d"]||Ne["e"]?1:2,Co=function(e){function t(t,n,i,r){var o=e.call(this)||this;return o._onModelAdded=o._register(new P["a"]),o.onModelAdded=o._onModelAdded.event,o._onModelRemoved=o._register(new P["a"]),o.onModelRemoved=o._onModelRemoved.event,o._onModelModeChanged=o._register(new P["a"]),o.onModelModeChanged=o._onModelModeChanged.event,o._configurationService=t,o._resourcePropertiesService=n,o._models={},o._modelCreationOptionsByLanguageAndResource=Object.create(null),o._configurationServiceSubscription=o._configurationService.onDidChangeConfiguration((function(e){return o._updateModelOptions()})),o._updateModelOptions(),o._register(new So(o,i,t,r)),o}return mo(t,e),t._readModelOptions=function(e,t){var n=T["c"].tabSize;if(e.editor&&"undefined"!==typeof e.editor.tabSize){var i=parseInt(e.editor.tabSize,10);isNaN(i)||(n=i),n<1&&(n=1)}var r=n;if(e.editor&&"undefined"!==typeof e.editor.indentSize&&"tabSize"!==e.editor.indentSize){var o=parseInt(e.editor.indentSize,10);isNaN(o)||(r=o),r<1&&(r=1)}var s=T["c"].insertSpaces;e.editor&&"undefined"!==typeof e.editor.insertSpaces&&(s="false"!==e.editor.insertSpaces&&Boolean(e.editor.insertSpaces));var a=wo,u=e.eol;"\r\n"===u?a=2:"\n"===u&&(a=1);var l=T["c"].trimAutoWhitespace;e.editor&&"undefined"!==typeof e.editor.trimAutoWhitespace&&(l="false"!==e.editor.trimAutoWhitespace&&Boolean(e.editor.trimAutoWhitespace));var c=T["c"].detectIndentation;e.editor&&"undefined"!==typeof e.editor.detectIndentation&&(c="false"!==e.editor.detectIndentation&&Boolean(e.editor.detectIndentation));var d=T["c"].largeFileOptimizations;return e.editor&&"undefined"!==typeof e.editor.largeFileOptimizations&&(d="false"!==e.editor.largeFileOptimizations&&Boolean(e.editor.largeFileOptimizations)),{isForSimpleWidget:t,tabSize:n,indentSize:r,insertSpaces:s,detectIndentation:c,defaultEOL:a,trimAutoWhitespace:l,largeFileOptimizations:d}},t.prototype.getCreationOptions=function(e,n,i){var r=this._modelCreationOptionsByLanguageAndResource[e+n];if(!r){var o=this._configurationService.getValue("editor",{overrideIdentifier:e,resource:n}),s=this._resourcePropertiesService.getEOL(n,e);r=t._readModelOptions({editor:o,eol:s},i),this._modelCreationOptionsByLanguageAndResource[e+n]=r}return r},t.prototype._updateModelOptions=function(){var e=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);for(var n=Object.keys(this._models),i=0,r=n.length;i<r;i++){var o=n[i],s=this._models[o],a=s.model.getLanguageIdentifier().language,u=s.model.uri,l=e[a+u],c=this.getCreationOptions(a,u,s.model.isForSimpleWidget);t._setModelOptionsForModel(s.model,c,l)}},t._setModelOptionsForModel=function(e,t,n){n&&n.defaultEOL!==t.defaultEOL&&1===e.getLineCount()&&e.setEOL(1===t.defaultEOL?0:1),n&&n.detectIndentation===t.detectIndentation&&n.insertSpaces===t.insertSpaces&&n.tabSize===t.tabSize&&n.indentSize===t.indentSize&&n.trimAutoWhitespace===t.trimAutoWhitespace||(t.detectIndentation?(e.detectIndentation(t.insertSpaces,t.tabSize),e.updateOptions({trimAutoWhitespace:t.trimAutoWhitespace})):e.updateOptions({insertSpaces:t.insertSpaces,tabSize:t.tabSize,indentSize:t.indentSize,trimAutoWhitespace:t.trimAutoWhitespace}))},t.prototype.dispose=function(){this._configurationServiceSubscription.dispose(),e.prototype.dispose.call(this)},t.prototype._createModelData=function(e,t,n,i){var r=this,o=this.getCreationOptions(t.language,n,i),s=new tr["b"](e,o,t,n),a=yo(s.uri);if(this._models[a])throw new Error("ModelService: Cannot add model because it already exists!");var u=new bo(s,(function(e){return r._onWillDispose(e)}),(function(e,t){return r._onDidChangeLanguage(e,t)}));return this._models[a]=u,u},t.prototype.createModel=function(e,t,n,i){var r;return void 0===i&&(i=!1),t?(r=this._createModelData(e,t.languageIdentifier,n,i),this.setMode(r.model,t)):r=this._createModelData(e,ao["b"],n,i),this._onModelAdded.fire(r.model),r.model},t.prototype.setMode=function(e,t){if(t){var n=this._models[yo(e.uri)];n&&n.setLanguage(t)}},t.prototype.getModels=function(){for(var e=[],t=Object.keys(this._models),n=0,i=t.length;n<i;n++){var r=t[n];e.push(this._models[r].model)}return e},t.prototype.getModel=function(e){var t=yo(e),n=this._models[t];return n?n.model:null},t.prototype._onWillDispose=function(e){var t=yo(e.uri),n=this._models[t];delete this._models[t],n.dispose(),delete this._modelCreationOptionsByLanguageAndResource[e.getLanguageIdentifier().language+e.uri],this._onModelRemoved.fire(e)},t.prototype._onDidChangeLanguage=function(e,n){var i=n.oldLanguage,r=e.getLanguageIdentifier().language,o=this.getCreationOptions(i,e.uri,e.isForSimpleWidget),s=this.getCreationOptions(r,e.uri,e.isForSimpleWidget);t._setModelOptionsForModel(e,s,o),this._onModelModeChanged.fire({model:e,oldModeId:i})},t=vo([_o(0,Bn["a"]),_o(1,Et),_o(2,zi["c"]),_o(3,xt["a"])],t),t}(de["a"]),So=function(e){function t(n,i,r,o){var s=e.call(this)||this;s._configurationService=r,s._watchers=Object.create(null),s._semanticStyling=s._register(new No(i,o));var a=function(e){var n=r.getValue(t.SETTING_ID,{overrideIdentifier:e.getLanguageIdentifier().language,resource:e.uri});return n&&n.enabled},u=function(e){s._watchers[e.uri.toString()]=new Bo(e,i,s._semanticStyling)},l=function(e,t){t.dispose(),delete s._watchers[e.uri.toString()]};return s._register(n.onModelAdded((function(e){a(e)&&u(e)}))),s._register(n.onModelRemoved((function(e){var t=s._watchers[e.uri.toString()];t&&l(e,t)}))),s._configurationService.onDidChangeConfiguration((function(e){if(e.affectsConfiguration(t.SETTING_ID))for(var i=0,r=n.getModels();i<r.length;i++){var o=r[i],c=s._watchers[o.uri.toString()];a(o)?c||u(o):c&&l(o,c)}})),s}return mo(t,e),t.SETTING_ID="editor.semanticHighlighting",t}(de["a"]),No=function(e){function t(t,n){var i=e.call(this)||this;return i._themeService=t,i._logService=n,i._caches=new WeakMap,i._themeService&&i._register(i._themeService.onThemeChange((function(){i._caches=new WeakMap}))),i}return mo(t,e),t.prototype.get=function(e){return this._caches.has(e)||this._caches.set(e,new xo(e.getLegend(),this._themeService,this._logService)),this._caches.get(e)},t}(de["a"]),Lo=function(){function e(e,t,n){this.tokenTypeIndex=e,this.tokenModifierSet=t,this.metadata=n,this.next=null}return e}(),Eo=function(){function e(){this._elementsCount=0,this._currentLengthIndex=0,this._currentLength=e._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<e._SIZES.length?2/3*this._currentLength:0),this._elements=[],e._nullOutEntries(this._elements,this._currentLength)}return e._nullOutEntries=function(e,t){for(var n=0;n<t;n++)e[n]=null},e.prototype._hashFunc=function(e,t){return((e<<5)-e+t|0)%this._currentLength},e.prototype.get=function(e,t){var n=this._hashFunc(e,t),i=this._elements[n];while(i){if(i.tokenTypeIndex===e&&i.tokenModifierSet===t)return i;i=i.next}return null},e.prototype.add=function(t,n,i){if(this._elementsCount++,0!==this._growCount&&this._elementsCount>=this._growCount){var r=this._elements;this._currentLengthIndex++,this._currentLength=e._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<e._SIZES.length?2/3*this._currentLength:0),this._elements=[],e._nullOutEntries(this._elements,this._currentLength);for(var o=0,s=r;o<s.length;o++){var a=s[o],u=a;while(u){var l=u.next;u.next=null,this._add(u),u=l}}}this._add(new Lo(t,n,i))},e.prototype._add=function(e){var t=this._hashFunc(e.tokenTypeIndex,e.tokenModifierSet);e.next=this._elements[t],this._elements[t]=e},e._SIZES=[3,7,13,31,61,127,251,509,1021,2039,4093,8191,16381,32749,65521,131071,262139,524287,1048573,2097143],e}(),xo=function(){function e(e,t,n){this._legend=e,this._themeService=t,this._logService=n,this._hashTable=new Eo}return e.prototype.getMetadata=function(e,t){var n,i=this._hashTable.get(e,t);if(i)n=i.metadata;else{for(var r=this._legend.tokenTypes[e],o=[],s=t,a=0;s>0&&a<this._legend.tokenModifiers.length;a++)1&s&&o.push(this._legend.tokenModifiers[a]),s>>=1;var u=this._themeService.getTheme().getTokenStyleMetadata(r,o);if("undefined"===typeof u)n=2147483647;else{if(n=0,"undefined"!==typeof u.italic){var l=(u.italic?1:0)<<11;n|=1|l}if("undefined"!==typeof u.bold){var c=(u.bold?2:0)<<11;n|=2|c}if("undefined"!==typeof u.underline){var d=(u.underline?4:0)<<11;n|=4|d}if(u.foreground){var h=u.foreground<<14;n|=8|h}0===n&&(n=2147483647)}this._hashTable.add(e,t,n)}if(this._logService.getLevel()===xt["b"].Trace){var f=this._legend.tokenTypes[e],p=t?" "+this._legend.tokenModifiers.filter((function(e,n){return t&1<<n})).join(" "):"";this._logService.trace("tokenStyleMetadata "+(i?"[CACHED] ":"")+f+p+": foreground "+_e["x"].getForeground(n)+", fontStyle "+_e["x"].getFontStyle(n).toString(2))}return n},e}(),Oo=function(){function e(e,t,n){this._provider=e,this.resultId=t,this.data=n}return e.prototype.dispose=function(){this._provider.releaseDocumentSemanticTokens(this.resultId)},e}(),Bo=function(e){function t(t,n,i){var r=e.call(this)||this;return r._isDisposed=!1,r._model=t,r._semanticStyling=i,r._fetchSemanticTokens=r._register(new Ce["d"]((function(){return r._fetchSemanticTokensNow()}),300)),r._currentResponse=null,r._currentRequestCancellationTokenSource=null,r._register(r._model.onDidChangeContent((function(e){r._fetchSemanticTokens.isScheduled()||r._fetchSemanticTokens.schedule()}))),r._register(_e["k"].onDidChange((function(e){return r._fetchSemanticTokens.schedule()}))),n&&r._register(n.onThemeChange((function(e){r._setSemanticTokens(null,null,null,[]),r._fetchSemanticTokens.schedule()}))),r._fetchSemanticTokens.schedule(0),r}return mo(t,e),t.prototype.dispose=function(){this._currentResponse&&(this._currentResponse.dispose(),this._currentResponse=null),this._currentRequestCancellationTokenSource&&(this._currentRequestCancellationTokenSource.cancel(),this._currentRequestCancellationTokenSource=null),this._setSemanticTokens(null,null,null,[]),this._isDisposed=!0,e.prototype.dispose.call(this)},t.prototype._fetchSemanticTokensNow=function(){var e=this;if(!this._currentRequestCancellationTokenSource){var t=this._getSemanticColoringProvider();if(t){this._currentRequestCancellationTokenSource=new R["b"];var n=[],i=this._model.onDidChangeContent((function(e){n.push(e)})),r=this._semanticStyling.get(t),o=this._currentResponse&&this._currentResponse.resultId||null,s=Promise.resolve(t.provideDocumentSemanticTokens(this._model,o,this._currentRequestCancellationTokenSource.token));s.then((function(o){e._currentRequestCancellationTokenSource=null,i.dispose(),e._setSemanticTokens(t,o||null,r,n)}),(function(t){t&&"string"===typeof t.message&&-1!==t.message.indexOf("busy")||Se["e"](t),e._currentRequestCancellationTokenSource=null,i.dispose(),n.length>0&&(e._fetchSemanticTokens.isScheduled()||e._fetchSemanticTokens.schedule())}))}}},t._isSemanticTokens=function(e){return e&&!!e.data},t._isSemanticTokensEdits=function(e){return e&&Array.isArray(e.edits)},t._copy=function(e,t,n,i,r){for(var o=0;o<r;o++)n[i+o]=e[t+o]},t.prototype._setSemanticTokens=function(e,n,i,r){var o=this._currentResponse;if(this._currentResponse&&(this._currentResponse.dispose(),this._currentResponse=null),this._isDisposed)e&&n&&e.releaseDocumentSemanticTokens(n.resultId);else if(e&&n&&i){if(t._isSemanticTokensEdits(n)){if(!o)return void this._model.setSemanticTokens(null);if(0===n.edits.length)n={resultId:n.resultId,data:o.data};else{for(var s=0,a=0,u=n.edits;a<u.length;a++){var l=u[a];s+=(l.data?l.data.length:0)-l.deleteCount}for(var c=o.data,d=new Uint32Array(c.length+s),h=c.length,f=d.length,p=n.edits.length-1;p>=0;p--){l=n.edits[p];var g=h-(l.start+l.deleteCount);g>0&&(t._copy(c,h-g,d,f-g,g),f-=g),l.data&&(t._copy(l.data,0,d,f-l.data.length,l.data.length),f-=l.data.length),h=l.start}h>0&&t._copy(c,0,d,0,h),n={resultId:n.resultId,data:d}}}if(t._isSemanticTokens(n)){this._currentResponse=new Oo(e,n.resultId,n.data);c=n.data;var A=n.data.length/5|0,m=Math.max(Math.ceil(A/1024),400),v=[],_=0,y=1,b=0;while(_<A){var w=_,C=Math.min(w+m,A);if(C<A){var S=C;while(S-1>w&&0===c[5*S])S--;if(S-1===w){var N=C;while(N+1<A&&0===c[5*N])N++;C=N}else C=S}d=new Uint32Array(4*(C-w));var L=0,E=0;while(_<C){var x=5*_,O=c[x],B=c[x+1],k=y+O,D=0===O?b+B:B,I=c[x+2],M=c[x+3],F=c[x+4],T=i.getMetadata(M,F);2147483647!==T&&(0===E&&(E=k),d[L]=k-E,d[L+1]=D,d[L+2]=D+I,d[L+3]=T,L+=4),y=k,b=D,_++}L!==d.length&&(d=d.subarray(0,L));var R=new Ao["a"](E,new Ao["c"](d));v.push(R)}if(r.length>0){for(var P=0,U=r;P<U.length;P++)for(var H=U[P],j=0,Q=v;j<Q.length;j++)for(var V=Q[j],W=0,z=H.changes;W<z.length;W++){var K=z[W];V.applyEdit(K.range,K.text)}this._fetchSemanticTokens.isScheduled()||this._fetchSemanticTokens.schedule()}this._model.setSemanticTokens(v)}else this._model.setSemanticTokens(null)}else this._model.setSemanticTokens(null)},t.prototype._getSemanticColoringProvider=function(){var e=_e["k"].ordered(this._model);return e.length>0?e[0]:null},t}(de["a"]),ko=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Do=function(e){function t(){var t=e.call(this)||this;return t._onCodeEditorAdd=t._register(new P["a"]),t.onCodeEditorAdd=t._onCodeEditorAdd.event,t._onCodeEditorRemove=t._register(new P["a"]),t.onCodeEditorRemove=t._onCodeEditorRemove.event,t._onDiffEditorAdd=t._register(new P["a"]),t._onDiffEditorRemove=t._register(new P["a"]),t._codeEditors=Object.create(null),t._diffEditors=Object.create(null),t}return ko(t,e),t.prototype.addCodeEditor=function(e){this._codeEditors[e.getId()]=e,this._onCodeEditorAdd.fire(e)},t.prototype.removeCodeEditor=function(e){delete this._codeEditors[e.getId()]&&this._onCodeEditorRemove.fire(e)},t.prototype.listCodeEditors=function(){var e=this;return Object.keys(this._codeEditors).map((function(t){return e._codeEditors[t]}))},t.prototype.addDiffEditor=function(e){this._diffEditors[e.getId()]=e,this._onDiffEditorAdd.fire(e)},t.prototype.removeDiffEditor=function(e){delete this._diffEditors[e.getId()]&&this._onDiffEditorRemove.fire(e)},t.prototype.listDiffEditors=function(){var e=this;return Object.keys(this._diffEditors).map((function(t){return e._diffEditors[t]}))},t.prototype.getFocusedCodeEditor=function(){for(var e=null,t=this.listCodeEditors(),n=0,i=t;n<i.length;n++){var r=i[n];if(r.hasTextFocus())return r;r.hasWidgetFocus()&&(e=r)}return e},t}(de["a"]),Io=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Mo=function(e,t,n,i){var r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Fo=function(e,t){return function(n,i){t(n,i,e)}},To=function(){function e(e,t,n){this._parent=e,this._editorId=t,this.styleSheet=n,this._refCount=0}return e.prototype.ref=function(){this._refCount++},e.prototype.unref=function(){var e;this._refCount--,0===this._refCount&&(null===(e=this.styleSheet.parentNode)||void 0===e||e.removeChild(this.styleSheet),this._parent._removeEditorStyleSheets(this._editorId))},e}(),Ro=function(){function e(e){this.styleSheet=e}return e.prototype.ref=function(){},e.prototype.unref=function(){},e}(),Po=function(e){function t(t,n){void 0===n&&(n=null);var i=e.call(this)||this;return i._decorationOptionProviders=new Map,i._editorStyleSheets=new Map,i._globalStyleSheet=n?new Ro(n):null,i._themeService=t,i}return Io(t,e),t.prototype._getOrCreateGlobalStyleSheet=function(){return this._globalStyleSheet||(this._globalStyleSheet=new Ro(X["v"]())),this._globalStyleSheet},t.prototype._getOrCreateStyleSheet=function(e){if(!e)return this._getOrCreateGlobalStyleSheet();var t=e.getContainerDomNode();if(!X["M"](t))return this._getOrCreateGlobalStyleSheet();var n=e.getId();if(!this._editorStyleSheets.has(n)){var i=new To(this,n,X["v"](t));this._editorStyleSheets.set(n,i)}return this._editorStyleSheets.get(n)},t.prototype._removeEditorStyleSheets=function(e){this._editorStyleSheets.delete(e)},t.prototype.registerDecorationType=function(e,t,n,i){var r=this._decorationOptionProviders.get(e);if(!r){var o=this._getOrCreateStyleSheet(i),s={styleSheet:o.styleSheet,key:e,parentTypeKey:n,options:t||Object.create(null)};r=n?new Uo(this._themeService,o,s):new Ho(this._themeService,o,s),this._decorationOptionProviders.set(e,r)}r.refCount++},t.prototype.removeDecorationType=function(e){var t=this._decorationOptionProviders.get(e);t&&(t.refCount--,t.refCount<=0&&(this._decorationOptionProviders.delete(e),t.dispose(),this.listCodeEditors().forEach((function(t){return t.removeDecorations(e)}))))},t.prototype.resolveDecorationOptions=function(e,t){var n=this._decorationOptionProviders.get(e);if(!n)throw new Error("Unknown decoration type key: "+e);return n.getOptions(this,t)},t=Mo([Fo(0,zi["c"])],t),t}(Do),Uo=function(){function e(e,t,n){this._styleSheet=t,this._styleSheet.ref(),this._parentTypeKey=n.parentTypeKey,this.refCount=0,this._beforeContentRules=new Qo(3,n,e),this._afterContentRules=new Qo(4,n,e)}return e.prototype.getOptions=function(e,t){var n=e.resolveDecorationOptions(this._parentTypeKey,!0);return this._beforeContentRules&&(n.beforeContentClassName=this._beforeContentRules.className),this._afterContentRules&&(n.afterContentClassName=this._afterContentRules.className),n},e.prototype.dispose=function(){this._beforeContentRules&&(this._beforeContentRules.dispose(),this._beforeContentRules=null),this._afterContentRules&&(this._afterContentRules.dispose(),this._afterContentRules=null),this._styleSheet.unref()},e}(),Ho=function(){function e(e,t,n){var i=this;this._disposables=new de["b"],this._styleSheet=t,this._styleSheet.ref(),this.refCount=0;var r=function(t){var r=new Qo(t,n,e);if(i._disposables.add(r),r.hasContent)return r.className},o=function(t){var r=new Qo(t,n,e);return i._disposables.add(r),r.hasContent?{className:r.className,hasLetterSpacing:r.hasLetterSpacing}:null};this.className=r(0);var s=o(1);s&&(this.inlineClassName=s.className,this.inlineClassNameAffectsLetterSpacing=s.hasLetterSpacing),this.beforeContentClassName=r(3),this.afterContentClassName=r(4),this.glyphMarginClassName=r(2);var a=n.options;this.isWholeLine=Boolean(a.isWholeLine),this.stickiness=a.rangeBehavior;var u=a.light&&a.light.overviewRulerColor||a.overviewRulerColor,l=a.dark&&a.dark.overviewRulerColor||a.overviewRulerColor;"undefined"===typeof u&&"undefined"===typeof l||(this.overviewRuler={color:u||l,darkColor:l||u,position:a.overviewRulerLane||ve["d"].Center})}return e.prototype.getOptions=function(e,t){return t?{inlineClassName:this.inlineClassName,beforeContentClassName:this.beforeContentClassName,afterContentClassName:this.afterContentClassName,className:this.className,glyphMarginClassName:this.glyphMarginClassName,isWholeLine:this.isWholeLine,overviewRuler:this.overviewRuler,stickiness:this.stickiness}:this},e.prototype.dispose=function(){this._disposables.dispose(),this._styleSheet.unref()},e}(),jo={color:"color:{0} !important;",opacity:"opacity:{0};",backgroundColor:"background-color:{0};",outline:"outline:{0};",outlineColor:"outline-color:{0};",outlineStyle:"outline-style:{0};",outlineWidth:"outline-width:{0};",border:"border:{0};",borderColor:"border-color:{0};",borderRadius:"border-radius:{0};",borderSpacing:"border-spacing:{0};",borderStyle:"border-style:{0};",borderWidth:"border-width:{0};",fontStyle:"font-style:{0};",fontWeight:"font-weight:{0};",textDecoration:"text-decoration:{0};",cursor:"cursor:{0};",letterSpacing:"letter-spacing:{0};",gutterIconPath:"background:{0} center center no-repeat;",gutterIconSize:"background-size:{0};",contentText:"content:'{0}';",contentIconPath:"content:{0};",margin:"margin:{0};",width:"width:{0};",height:"height:{0};"},Qo=function(){function e(e,t,n){var i=this;this._theme=n.getTheme(),this._ruleType=e,this._providerArgs=t,this._usesThemeColors=!1,this._hasContent=!1,this._hasLetterSpacing=!1;var r=Vo.getClassName(this._providerArgs.key,e);this._providerArgs.parentTypeKey&&(r=r+" "+Vo.getClassName(this._providerArgs.parentTypeKey,e)),this._className=r,this._unThemedSelector=Vo.getSelector(this._providerArgs.key,this._providerArgs.parentTypeKey,e),this._buildCSS(),this._usesThemeColors?this._themeListener=n.onThemeChange((function(e){i._theme=n.getTheme(),i._removeCSS(),i._buildCSS()})):this._themeListener=null}return e.prototype.dispose=function(){this._hasContent&&(this._removeCSS(),this._hasContent=!1),this._themeListener&&(this._themeListener.dispose(),this._themeListener=null)},Object.defineProperty(e.prototype,"hasContent",{get:function(){return this._hasContent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasLetterSpacing",{get:function(){return this._hasLetterSpacing},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"className",{get:function(){return this._className},enumerable:!0,configurable:!0}),e.prototype._buildCSS=function(){var e,t,n,i=this._providerArgs.options;switch(this._ruleType){case 0:e=this.getCSSTextForModelDecorationClassName(i),t=this.getCSSTextForModelDecorationClassName(i.light),n=this.getCSSTextForModelDecorationClassName(i.dark);break;case 1:e=this.getCSSTextForModelDecorationInlineClassName(i),t=this.getCSSTextForModelDecorationInlineClassName(i.light),n=this.getCSSTextForModelDecorationInlineClassName(i.dark);break;case 2:e=this.getCSSTextForModelDecorationGlyphMarginClassName(i),t=this.getCSSTextForModelDecorationGlyphMarginClassName(i.light),n=this.getCSSTextForModelDecorationGlyphMarginClassName(i.dark);break;case 3:e=this.getCSSTextForModelDecorationContentClassName(i.before),t=this.getCSSTextForModelDecorationContentClassName(i.light&&i.light.before),n=this.getCSSTextForModelDecorationContentClassName(i.dark&&i.dark.before);break;case 4:e=this.getCSSTextForModelDecorationContentClassName(i.after),t=this.getCSSTextForModelDecorationContentClassName(i.light&&i.light.after),n=this.getCSSTextForModelDecorationContentClassName(i.dark&&i.dark.after);break;default:throw new Error("Unknown rule type: "+this._ruleType)}var r=this._providerArgs.styleSheet.sheet,o=!1;e.length>0&&(r.insertRule(this._unThemedSelector+" {"+e+"}",0),o=!0),t.length>0&&(r.insertRule(".vs"+this._unThemedSelector+" {"+t+"}",0),o=!0),n.length>0&&(r.insertRule(".vs-dark"+this._unThemedSelector+", .hc-black"+this._unThemedSelector+" {"+n+"}",0),o=!0),this._hasContent=o},e.prototype._removeCSS=function(){X["N"](this._unThemedSelector,this._providerArgs.styleSheet)},e.prototype.getCSSTextForModelDecorationClassName=function(e){if(!e)return"";var t=[];return this.collectCSSText(e,["backgroundColor"],t),this.collectCSSText(e,["outline","outlineColor","outlineStyle","outlineWidth"],t),this.collectBorderSettingsCSSText(e,t),t.join("")},e.prototype.getCSSTextForModelDecorationInlineClassName=function(e){if(!e)return"";var t=[];return this.collectCSSText(e,["fontStyle","fontWeight","textDecoration","cursor","color","opacity","letterSpacing"],t),e.letterSpacing&&(this._hasLetterSpacing=!0),t.join("")},e.prototype.getCSSTextForModelDecorationContentClassName=function(e){if(!e)return"";var t=[];if("undefined"!==typeof e){if(this.collectBorderSettingsCSSText(e,t),"undefined"!==typeof e.contentIconPath&&t.push(Ge["r"](jo.contentIconPath,X["q"](H["a"].revive(e.contentIconPath)))),"string"===typeof e.contentText){var n=e.contentText.match(/^.*$/m)[0],i=n.replace(/['\\]/g,"\\$&");t.push(Ge["r"](jo.contentText,i))}this.collectCSSText(e,["fontStyle","fontWeight","textDecoration","color","opacity","backgroundColor","margin"],t),this.collectCSSText(e,["width","height"],t)&&t.push("display:inline-block;")}return t.join("")},e.prototype.getCSSTextForModelDecorationGlyphMarginClassName=function(e){if(!e)return"";var t=[];return"undefined"!==typeof e.gutterIconPath&&(t.push(Ge["r"](jo.gutterIconPath,X["q"](H["a"].revive(e.gutterIconPath)))),"undefined"!==typeof e.gutterIconSize&&t.push(Ge["r"](jo.gutterIconSize,e.gutterIconSize))),t.join("")},e.prototype.collectBorderSettingsCSSText=function(e,t){return!!this.collectCSSText(e,["border","borderColor","borderRadius","borderSpacing","borderStyle","borderWidth"],t)&&(t.push(Ge["r"]("box-sizing: border-box;")),!0)},e.prototype.collectCSSText=function(e,t,n){for(var i=n.length,r=0,o=t;r<o.length;r++){var s=o[r],a=this.resolveValue(e[s]);"string"===typeof a&&n.push(Ge["r"](jo[s],a))}return n.length!==i},e.prototype.resolveValue=function(e){if(Object(me["c"])(e)){this._usesThemeColors=!0;var t=this._theme.getColor(e.id);return t?t.toString():"transparent"}return e},e}(),Vo=function(){function e(){}return e.getClassName=function(e,t){return"ced-"+e+"-"+t},e.getSelector=function(e,t,n){var i=".monaco-editor ."+this.getClassName(e,n);return t&&(i=i+"."+this.getClassName(t,n)),3===n?i+="::before":4===n&&(i+="::after"),i},e}(),Wo=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),zo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Wo(t,e),t.prototype.getActiveCodeEditor=function(){return null},t.prototype.openCodeEditor=function(e,t,n){return t?Promise.resolve(this.doOpenEditor(t,e)):Promise.resolve(null)},t.prototype.doOpenEditor=function(e,t){var n=this.findModel(e,t.resource);if(!n){if(t.resource){var i=t.resource.scheme;if(i===Z["b"].http||i===Z["b"].https)return Object(X["Z"])(t.resource.toString()),e}return null}var r=t.options?t.options.selection:null;if(r)if("number"===typeof r.endLineNumber&&"number"===typeof r.endColumn)e.setSelection(r),e.revealRangeInCenter(r,1);else{var o={lineNumber:r.startLineNumber,column:r.startColumn};e.setPosition(o),e.revealPositionInCenter(o,1)}return e},t.prototype.findModel=function(e,t){var n=e.getModel();return n&&n.uri.toString()!==t.toString()?null:n},t}(Po),Ko=n("zrhQ"),qo=function(){function e(e,t,n,i,r){this.token=e,this.index=t,this.fontStyle=n,this.foreground=i,this.background=r}return e}();function Go(e){if(!e||!Array.isArray(e))return[];for(var t=[],n=0,i=0,r=e.length;i<r;i++){var o=e[i],s=-1;if("string"===typeof o.fontStyle){s=0;for(var a=o.fontStyle.split(" "),u=0,l=a.length;u<l;u++){var c=a[u];switch(c){case"italic":s|=1;break;case"bold":s|=2;break;case"underline":s|=4;break}}}var d=null;"string"===typeof o.foreground&&(d=o.foreground);var h=null;"string"===typeof o.background&&(h=o.background),t[n++]=new qo(o.token||"",i,s,d,h)}return t}function Xo(e,t){e.sort((function(e,t){var n=ts(e.token,t.token);return 0!==n?n:e.index-t.index}));var n=0,i="000000",r="ffffff";while(e.length>=1&&""===e[0].token){var o=e.shift();-1!==o.fontStyle&&(n=o.fontStyle),null!==o.foreground&&(i=o.foreground),null!==o.background&&(r=o.background)}for(var s=new Jo,a=0,u=t;a<u.length;a++){var l=u[a];s.getId(l)}for(var c=s.getId(i),d=s.getId(r),h=new os(n,c,d),f=new ss(h),p=0,g=e.length;p<g;p++){var A=e[p];f.insert(A.token,A.fontStyle,s.getId(A.foreground),s.getId(A.background))}return new Zo(s,f)}var Yo=/^#?([0-9A-Fa-f]{6})([0-9A-Fa-f]{2})?$/,Jo=function(){function e(){this._lastColorId=0,this._id2color=[],this._color2id=new Map}return e.prototype.getId=function(e){if(null===e)return 0;var t=e.match(Yo);if(!t)throw new Error("Illegal value for token color: "+e);e=t[1].toUpperCase();var n=this._color2id.get(e);return n||(n=++this._lastColorId,this._color2id.set(e,n),this._id2color[n]=Ko["a"].fromHex("#"+e),n)},e.prototype.getColorMap=function(){return this._id2color.slice(0)},e}(),Zo=function(){function e(e,t){this._colorMap=e,this._root=t,this._cache=new Map}return e.createFromRawTokenTheme=function(e,t){return this.createFromParsedTokenTheme(Go(e),t)},e.createFromParsedTokenTheme=function(e,t){return Xo(e,t)},e.prototype.getColorMap=function(){return this._colorMap.getColorMap()},e.prototype._match=function(e){return this._root.match(e)},e.prototype.match=function(e,t){var n=this._cache.get(t);if("undefined"===typeof n){var i=this._match(t),r=es(t);n=(i.metadata|r<<8)>>>0,this._cache.set(t,n)}return(n|e<<0)>>>0},e}(),$o=/\b(comment|string|regex|regexp)\b/;function es(e){var t=e.match($o);if(!t)return 0;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 4;case"regexp":return 4}throw new Error("Unexpected match for standard token type!")}function ts(e,t){return e<t?-1:e>t?1:0}var ns,is,rs,os=function(){function e(e,t,n){this._fontStyle=e,this._foreground=t,this._background=n,this.metadata=(this._fontStyle<<11|this._foreground<<14|this._background<<23)>>>0}return e.prototype.clone=function(){return new e(this._fontStyle,this._foreground,this._background)},e.prototype.acceptOverwrite=function(e,t,n){-1!==e&&(this._fontStyle=e),0!==t&&(this._foreground=t),0!==n&&(this._background=n),this.metadata=(this._fontStyle<<11|this._foreground<<14|this._background<<23)>>>0},e}(),ss=function(){function e(e){this._mainRule=e,this._children=new Map}return e.prototype.match=function(e){if(""===e)return this._mainRule;var t,n,i=e.indexOf(".");-1===i?(t=e,n=""):(t=e.substring(0,i),n=e.substring(i+1));var r=this._children.get(t);return"undefined"!==typeof r?r.match(n):this._mainRule},e.prototype.insert=function(t,n,i,r){if(""!==t){var o,s,a=t.indexOf(".");-1===a?(o=t,s=""):(o=t.substring(0,a),s=t.substring(a+1));var u=this._children.get(o);"undefined"===typeof u&&(u=new e(this._mainRule.clone()),this._children.set(o,u)),u.insert(s,n,i,r)}else this._mainRule.acceptOverwrite(n,i,r)},e}();function as(e){for(var t=[],n=1,i=e.length;n<i;n++){var r=e[n];t[n]=".mtk"+n+" { color: "+r+"; }"}return t.push(".mtki { font-style: italic; }"),t.push(".mtkb { font-weight: bold; }"),t.push(".mtku { text-decoration: underline; text-underline-position: under; }"),t.join("\n")}var us={base:"vs",inherit:!1,rules:[{token:"",foreground:"000000",background:"fffffe"},{token:"invalid",foreground:"cd3131"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"001188"},{token:"variable.predefined",foreground:"4864AA"},{token:"constant",foreground:"dd0000"},{token:"comment",foreground:"008000"},{token:"number",foreground:"098658"},{token:"number.hex",foreground:"3030c0"},{token:"regexp",foreground:"800000"},{token:"annotation",foreground:"808080"},{token:"type",foreground:"008080"},{token:"delimiter",foreground:"000000"},{token:"delimiter.html",foreground:"383838"},{token:"delimiter.xml",foreground:"0000FF"},{token:"tag",foreground:"800000"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"800000"},{token:"metatag",foreground:"e00000"},{token:"metatag.content.html",foreground:"FF0000"},{token:"metatag.html",foreground:"808080"},{token:"metatag.xml",foreground:"808080"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"863B00"},{token:"string.key.json",foreground:"A31515"},{token:"string.value.json",foreground:"0451A5"},{token:"attribute.name",foreground:"FF0000"},{token:"attribute.value",foreground:"0451A5"},{token:"attribute.value.number",foreground:"098658"},{token:"attribute.value.unit",foreground:"098658"},{token:"attribute.value.html",foreground:"0000FF"},{token:"attribute.value.xml",foreground:"0000FF"},{token:"string",foreground:"A31515"},{token:"string.html",foreground:"0000FF"},{token:"string.sql",foreground:"FF0000"},{token:"string.yaml",foreground:"0451A5"},{token:"keyword",foreground:"0000FF"},{token:"keyword.json",foreground:"0451A5"},{token:"keyword.flow",foreground:"AF00DB"},{token:"keyword.flow.scss",foreground:"0000FF"},{token:"operator.scss",foreground:"666666"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"666666"},{token:"predefined.sql",foreground:"FF00FF"}],colors:(ns={},ns[Wi["o"]]="#FFFFFE",ns[Wi["x"]]="#000000",ns[Wi["F"]]="#E5EBF1",ns[Vi["g"]]="#D3D3D3",ns[Vi["a"]]="#939393",ns[Wi["M"]]="#ADD6FF4D",ns)},ls={base:"vs-dark",inherit:!1,rules:[{token:"",foreground:"D4D4D4",background:"1E1E1E"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"74B0DF"},{token:"variable.predefined",foreground:"4864AA"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"B5CEA8"},{token:"number.hex",foreground:"5BB498"},{token:"regexp",foreground:"B46695"},{token:"annotation",foreground:"cc6666"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"DCDCDC"},{token:"delimiter.html",foreground:"808080"},{token:"delimiter.xml",foreground:"808080"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"A79873"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"DD6A6F"},{token:"metatag.content.html",foreground:"9CDCFE"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key.json",foreground:"9CDCFE"},{token:"string.value.json",foreground:"CE9178"},{token:"attribute.name",foreground:"9CDCFE"},{token:"attribute.value",foreground:"CE9178"},{token:"attribute.value.number.css",foreground:"B5CEA8"},{token:"attribute.value.unit.css",foreground:"B5CEA8"},{token:"attribute.value.hex.css",foreground:"D4D4D4"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"keyword.json",foreground:"CE9178"},{token:"keyword.flow.scss",foreground:"569CD6"},{token:"operator.scss",foreground:"909090"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:(is={},is[Wi["o"]]="#1E1E1E",is[Wi["x"]]="#D4D4D4",is[Wi["F"]]="#3A3D41",is[Vi["g"]]="#404040",is[Vi["a"]]="#707070",is[Wi["M"]]="#ADD6FF26",is)},cs={base:"hc-black",inherit:!1,rules:[{token:"",foreground:"FFFFFF",background:"000000"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"1AEBFF"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"FFFFFF"},{token:"regexp",foreground:"C0C0C0"},{token:"annotation",foreground:"569CD6"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"FFFF00"},{token:"delimiter.html",foreground:"FFFF00"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta",foreground:"D4D4D4"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"569CD6"},{token:"metatag.content.html",foreground:"1AEBFF"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key",foreground:"9CDCFE"},{token:"string.value",foreground:"CE9178"},{token:"attribute.name",foreground:"569CD6"},{token:"attribute.value",foreground:"3FF23F"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:(rs={},rs[Wi["o"]]="#000000",rs[Wi["x"]]="#FFFFFF",rs[Vi["g"]]="#FFFFFF",rs[Vi["a"]]="#FFFFFF",rs)},ds=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),hs="vs",fs="vs-dark",ps="hc-black",gs=uo["a"].as(Wi["a"].ColorContribution),As=uo["a"].as(zi["a"].ThemingContribution),ms=function(){function e(e,t){this.themeData=t;var n=t.base;e.length>0?(this.id=n+" "+e,this.themeName=e):(this.id=n,this.themeName=n),this.colors=null,this.defaultColors=Object.create(null),this._tokenTheme=null}return Object.defineProperty(e.prototype,"base",{get:function(){return this.themeData.base},enumerable:!0,configurable:!0}),e.prototype.notifyBaseUpdated=function(){this.themeData.inherit&&(this.colors=null,this._tokenTheme=null)},e.prototype.getColors=function(){if(!this.colors){var e=new Map;for(var t in this.themeData.colors)e.set(t,Ko["a"].fromHex(this.themeData.colors[t]));if(this.themeData.inherit){var n=_s(this.themeData.base);for(var t in n.colors)e.has(t)||e.set(t,Ko["a"].fromHex(n.colors[t]))}this.colors=e}return this.colors},e.prototype.getColor=function(e,t){var n=this.getColors().get(e);return n||(!1!==t?this.getDefault(e):void 0)},e.prototype.getDefault=function(e){var t=this.defaultColors[e];return t||(t=gs.resolveDefaultColor(e,this),this.defaultColors[e]=t,t)},e.prototype.defines=function(e){return Object.prototype.hasOwnProperty.call(this.getColors(),e)},Object.defineProperty(e.prototype,"type",{get:function(){switch(this.base){case hs:return"light";case ps:return"hc";default:return"dark"}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tokenTheme",{get:function(){if(!this._tokenTheme){var e=[],t=[];if(this.themeData.inherit){var n=_s(this.themeData.base);e=n.rules,n.encodedTokensColors&&(t=n.encodedTokensColors)}e=e.concat(this.themeData.rules),this.themeData.encodedTokensColors&&(t=this.themeData.encodedTokensColors),this._tokenTheme=Zo.createFromRawTokenTheme(e,t)}return this._tokenTheme},enumerable:!0,configurable:!0}),e.prototype.getTokenStyleMetadata=function(e,t){},e}();function vs(e){return e===hs||e===fs||e===ps}function _s(e){switch(e){case hs:return us;case fs:return ls;case ps:return cs}}function ys(e){var t=_s(e);return new ms(e,t)}var bs=function(e){function t(){var t=e.call(this)||this;return t._onThemeChange=t._register(new P["a"]),t.onThemeChange=t._onThemeChange.event,t._environment=Object.create(null),t._knownThemes=new Map,t._knownThemes.set(hs,ys(hs)),t._knownThemes.set(fs,ys(fs)),t._knownThemes.set(ps,ys(ps)),t._css="",t._globalStyleElement=null,t._styleElements=[],t.setTheme(hs),t}return ds(t,e),t.prototype.registerEditorContainer=function(e){return X["M"](e)?this._registerShadowDomContainer(e):this._registerRegularEditorContainer()},t.prototype._registerRegularEditorContainer=function(){return this._globalStyleElement||(this._globalStyleElement=X["v"](),this._globalStyleElement.className="monaco-colors",this._globalStyleElement.innerHTML=this._css,this._styleElements.push(this._globalStyleElement)),de["a"].None},t.prototype._registerShadowDomContainer=function(e){var t=this,n=X["v"](e);return n.className="monaco-colors",n.innerHTML=this._css,this._styleElements.push(n),{dispose:function(){for(var e=0;e<t._styleElements.length;e++)if(t._styleElements[e]===n)return void t._styleElements.splice(e,1)}}},t.prototype.defineTheme=function(e,t){if(!/^[a-z0-9\-]+$/i.test(e))throw new Error("Illegal theme name!");if(!vs(t.base)&&!vs(e))throw new Error("Illegal theme base!");this._knownThemes.set(e,new ms(e,t)),vs(e)&&this._knownThemes.forEach((function(t){t.base===e&&t.notifyBaseUpdated()})),this._theme&&this._theme.themeName===e&&this.setTheme(e)},t.prototype.getTheme=function(){return this._theme},t.prototype.setTheme=function(e){var t,n=this;if(t=this._knownThemes.has(e)?this._knownThemes.get(e):this._knownThemes.get(hs),this._theme===t)return t.id;this._theme=t;var i=[],r={},o={addRule:function(e){r[e]||(i.push(e),r[e]=!0)}};As.getThemingParticipants().forEach((function(e){return e(t,o,n._environment)}));var s=t.tokenTheme,a=s.getColorMap();return o.addRule(as(a)),this._css=i.join("\n"),this._styleElements.forEach((function(e){return e.innerHTML=n._css})),_e["y"].setColorMap(a),this._onThemeChange.fire(t),t.id},t.prototype.getIconTheme=function(){return{hasFileIcons:!1,hasFolderIcons:!1,hidesExplorerArrows:!1}},t}(de["a"]),ws=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Cs=function(e,t,n,i){var r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Ss=function(e,t){return function(n,i){t(n,i,e)}},Ns="data-keybinding-context",Ls=function(){function e(e,t){this._id=e,this._parent=t,this._value=Object.create(null),this._value["_contextId"]=e}return e.prototype.setValue=function(e,t){return this._value[e]!==t&&(this._value[e]=t,!0)},e.prototype.removeValue=function(e){return e in this._value&&(delete this._value[e],!0)},e.prototype.getValue=function(e){var t=this._value[e];return"undefined"===typeof t&&this._parent?this._parent.getValue(e):t},e}(),Es=function(e){function t(){return e.call(this,-1,null)||this}return ws(t,e),t.prototype.setValue=function(e,t){return!1},t.prototype.removeValue=function(e){return!1},t.prototype.getValue=function(e){},t.INSTANCE=new t,t}(Ls),xs=function(e){function t(t,n,i){var r=e.call(this,t,null)||this;return r._configurationService=n,r._values=new Map,r._listener=r._configurationService.onDidChangeConfiguration((function(e){if(6===e.source){var t=Object(kn["d"])(r._values);r._values.clear(),i.fire(new ks(t))}else{for(var n=[],o=0,s=e.affectedKeys;o<s.length;o++){var a=s[o],u="config."+a;r._values.has(u)&&(r._values.delete(u),n.push(u))}i.fire(new ks(n))}})),r}return ws(t,e),t.prototype.dispose=function(){this._listener.dispose()},t.prototype.getValue=function(n){if(0!==n.indexOf(t._keyPrefix))return e.prototype.getValue.call(this,n);if(this._values.has(n))return this._values.get(n);var i=n.substr(t._keyPrefix.length),r=this._configurationService.getValue(i),o=void 0;switch(typeof r){case"number":case"boolean":case"string":o=r;break}return this._values.set(n,o),o},t.prototype.setValue=function(t,n){return e.prototype.setValue.call(this,t,n)},t.prototype.removeValue=function(t){return e.prototype.removeValue.call(this,t)},t._keyPrefix="config.",t}(Ls),Os=function(){function e(e,t,n){this._service=e,this._key=t,this._defaultValue=n,this.reset()}return e.prototype.set=function(e){this._service.setContext(this._key,e)},e.prototype.reset=function(){"undefined"===typeof this._defaultValue?this._service.removeContext(this._key):this._service.setContext(this._key,this._defaultValue)},e.prototype.get=function(){return this._service.getContextKeyValue(this._key)},e}(),Bs=function(){function e(e){this.key=e}return e.prototype.affectsSome=function(e){return e.has(this.key)},e}(),ks=function(){function e(e){this.keys=e}return e.prototype.affectsSome=function(e){for(var t=0,n=this.keys;t<n.length;t++){var i=n[t];if(e.has(i))return!0}return!1},e}(),Ds=function(){function e(e){this.events=e}return e.prototype.affectsSome=function(e){for(var t=0,n=this.events;t<n.length;t++){var i=n[t];if(i.affectsSome(e))return!0}return!1},e}(),Is=function(){function e(e){this._onDidChangeContext=new P["d"]({merge:function(e){return new Ds(e)}}),this._isDisposed=!1,this._myContextId=e}return e.prototype.createKey=function(e,t){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new Os(this,e,t)},Object.defineProperty(e.prototype,"onDidChangeContext",{get:function(){return this._onDidChangeContext.event},enumerable:!0,configurable:!0}),e.prototype.bufferChangeEvents=function(e){this._onDidChangeContext.pause();try{e()}finally{this._onDidChangeContext.resume()}},e.prototype.createScoped=function(e){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new Fs(this,e)},e.prototype.contextMatchesRules=function(e){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");var t=this.getContextValuesContainer(this._myContextId),n=Qn.contextMatchesRules(t,e);return n},e.prototype.getContextKeyValue=function(e){if(!this._isDisposed)return this.getContextValuesContainer(this._myContextId).getValue(e)},e.prototype.setContext=function(e,t){if(!this._isDisposed){var n=this.getContextValuesContainer(this._myContextId);n&&n.setValue(e,t)&&this._onDidChangeContext.fire(new Bs(e))}},e.prototype.removeContext=function(e){this._isDisposed||this.getContextValuesContainer(this._myContextId).removeValue(e)&&this._onDidChangeContext.fire(new Bs(e))},e.prototype.getContext=function(e){return this._isDisposed?Es.INSTANCE:this.getContextValuesContainer(Ts(e))},e}(),Ms=function(e){function t(t){var n=e.call(this,0)||this;n._contexts=new Map,n._toDispose=new de["b"],n._lastContextId=0;var i=new xs(n._myContextId,t,n._onDidChangeContext);return n._contexts.set(n._myContextId,i),n._toDispose.add(i),n}return ws(t,e),t.prototype.dispose=function(){this._isDisposed=!0,this._toDispose.dispose()},t.prototype.getContextValuesContainer=function(e){return this._isDisposed?Es.INSTANCE:this._contexts.get(e)||Es.INSTANCE},t.prototype.createChildContext=function(e){if(void 0===e&&(e=this._myContextId),this._isDisposed)throw new Error("ContextKeyService has been disposed");var t=++this._lastContextId;return this._contexts.set(t,new Ls(t,this.getContextValuesContainer(e))),t},t.prototype.disposeContext=function(e){this._isDisposed||this._contexts.delete(e)},t=Cs([Ss(0,Bn["a"])],t),t}(Is),Fs=function(e){function t(t,n){var i=e.call(this,t.createChildContext())||this;return i._parent=t,n&&(i._domNode=n,i._domNode.setAttribute(Ns,String(i._myContextId))),i}return ws(t,e),t.prototype.dispose=function(){this._isDisposed=!0,this._parent.disposeContext(this._myContextId),this._domNode&&(this._domNode.removeAttribute(Ns),this._domNode=void 0)},Object.defineProperty(t.prototype,"onDidChangeContext",{get:function(){return P["b"].any(this._parent.onDidChangeContext,this._onDidChangeContext.event)},enumerable:!0,configurable:!0}),t.prototype.getContextValuesContainer=function(e){return this._isDisposed?Es.INSTANCE:this._parent.getContextValuesContainer(e)},t.prototype.createChildContext=function(e){if(void 0===e&&(e=this._myContextId),this._isDisposed)throw new Error("ScopedContextKeyService has been disposed");return this._parent.createChildContext(e)},t.prototype.disposeContext=function(e){this._isDisposed||this._parent.disposeContext(e)},t}(Is);function Ts(e){while(e){if(e.hasAttribute(Ns)){var t=e.getAttribute(Ns);return t?parseInt(t,10):NaN}e=e.parentElement}return 0}ee["a"].registerCommand(jn["e"],(function(e,t,n){e.get(jn["c"]).createKey(String(t),n)}));n("eizg"),n("CHaL");var Rs,Ps=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Us=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i},Hs=/\(&([^\s&])\)|(^|[^&])&([^\s&])/,js=/(&)?(&)([^\s&])/g;(function(e){e[e["Right"]=0]="Right",e[e["Left"]=1]="Left"})(Rs||(Rs={}));var Qs=function(e){function t(t,n,i){var r=e.call(this,i||"submenu",t,"",!0)||this;return r.entries=n,r}return Ps(t,e),t}(ji["a"]),Vs=function(e){function t(t,n,i){void 0===i&&(i={});var r=this;Object(X["e"])(t,"monaco-menu-container"),t.setAttribute("role","presentation");var o=document.createElement("div");Object(X["e"])(o,"monaco-menu"),o.setAttribute("role","presentation"),r=e.call(this,o,{orientation:2,actionViewItemProvider:function(e){return r.doGetActionViewItem(e,i,s)},context:i.context,actionRunner:i.actionRunner,ariaLabel:i.ariaLabel,triggerKeys:{keys:Us([3],Ne["e"]?[10]:[]),keyDown:!0}})||this,r.menuElement=o,r.actionsList.setAttribute("role","menu"),r.actionsList.tabIndex=0,r.menuDisposables=r._register(new de["b"]),Object(X["i"])(o,X["c"].KEY_DOWN,(function(e){var t=new Nn["a"](e);t.equals(2)&&e.preventDefault()})),i.enableMnemonics&&r.menuDisposables.add(Object(X["i"])(o,X["c"].KEY_DOWN,(function(e){var t=e.key.toLocaleLowerCase();if(r.mnemonics.has(t)){X["b"].stop(e,!0);var n=r.mnemonics.get(t);if(1===n.length&&(n[0]instanceof zs&&n[0].container&&r.focusItemByElement(n[0].container),n[0].onClick(e)),n.length>1){var i=n.shift();i&&i.container&&(r.focusItemByElement(i.container),n.push(i)),r.mnemonics.set(t,n)}}}))),Ne["d"]&&r._register(Object(X["i"])(o,X["c"].KEY_DOWN,(function(e){var t=new Nn["a"](e);t.equals(14)||t.equals(11)?(r.focusedItem=r.viewItems.length-1,r.focusNext(),X["b"].stop(e,!0)):(t.equals(13)||t.equals(12))&&(r.focusedItem=0,r.focusPrevious(),X["b"].stop(e,!0))}))),r._register(Object(X["i"])(r.domNode,X["c"].MOUSE_OUT,(function(e){var t=e.relatedTarget;Object(X["J"])(t,r.domNode)||(r.focusedItem=void 0,r.updateFocus(),e.stopPropagation())}))),r._register(Object(X["i"])(r.actionsList,X["c"].MOUSE_OVER,(function(e){var t=e.target;if(t&&Object(X["J"])(t,r.actionsList)&&t!==r.actionsList){while(t.parentElement!==r.actionsList&&null!==t.parentElement)t=t.parentElement;if(Object(X["H"])(t,"action-item")){var n=r.focusedItem;r.setFocusedItem(t),n!==r.focusedItem&&r.updateFocus()}}})));var s={parent:r};r.mnemonics=new Map,r.scrollableElement=r._register(new Hi["a"](o,{alwaysConsumeMouseWheel:!0,horizontal:2,vertical:3,verticalScrollbarSize:7,handleMouseWheel:!0,useShadows:!0}));var a=r.scrollableElement.getDomNode();return a.style.position="",r._register(Object(X["i"])(a,X["c"].MOUSE_UP,(function(e){e.preventDefault()}))),o.style.maxHeight=Math.max(10,window.innerHeight-t.getBoundingClientRect().top-30)+"px",r.push(n,{icon:!0,label:!0,isMenu:!0}),t.appendChild(r.scrollableElement.getDomNode()),r.scrollableElement.scanDomNode(),r.viewItems.filter((function(e){return!(e instanceof Ks)})).forEach((function(e,t,n){e.updatePositionInSet(t+1,n.length)})),r}return Ps(t,e),t.prototype.style=function(e){var t=this.getContainer(),n=e.foregroundColor?""+e.foregroundColor:"",i=e.backgroundColor?""+e.backgroundColor:"",r=e.borderColor?"1px solid "+e.borderColor:"",o=e.shadowColor?"0 2px 4px "+e.shadowColor:"";t.style.border=r,this.domNode.style.color=n,this.domNode.style.backgroundColor=i,t.style.boxShadow=o,this.viewItems&&this.viewItems.forEach((function(t){(t instanceof Ws||t instanceof Ks)&&t.style(e)}))},t.prototype.getContainer=function(){return this.scrollableElement.getDomNode()},Object.defineProperty(t.prototype,"onScroll",{get:function(){return this.scrollableElement.onScroll},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scrollOffset",{get:function(){return this.menuElement.scrollTop},enumerable:!0,configurable:!0}),t.prototype.focusItemByElement=function(e){var t=this.focusedItem;this.setFocusedItem(e),t!==this.focusedItem&&this.updateFocus()},t.prototype.setFocusedItem=function(e){for(var t=0;t<this.actionsList.children.length;t++){var n=this.actionsList.children[t];if(e===n){this.focusedItem=t;break}}},t.prototype.updateFocus=function(t){e.prototype.updateFocus.call(this,t,!0),"undefined"!==typeof this.focusedItem&&this.scrollableElement.setScrollPosition({scrollTop:Math.round(this.menuElement.scrollTop)})},t.prototype.doGetActionViewItem=function(e,t,n){if(e instanceof Ui["d"])return new Ks(t.context,e,{icon:!0});if(e instanceof Qs){var i=new zs(e,e.entries,n,t);if(t.enableMnemonics){var r=i.getMnemonic();if(r&&i.isEnabled()){var o=[];this.mnemonics.has(r)&&(o=this.mnemonics.get(r)),o.push(i),this.mnemonics.set(r,o)}}return i}var s={enableMnemonics:t.enableMnemonics};if(t.getKeyBinding){var a=t.getKeyBinding(e);if(a){var u=a.getLabel();u&&(s.keybinding=u)}}i=new Ws(t.context,e,s);if(t.enableMnemonics){r=i.getMnemonic();if(r&&i.isEnabled()){o=[];this.mnemonics.has(r)&&(o=this.mnemonics.get(r)),o.push(i),this.mnemonics.set(r,o)}}return i},t}(Ui["a"]),Ws=function(e){function t(t,n,i){void 0===i&&(i={});var r=this;if(i.isMenu=!0,r=e.call(this,n,n,i)||this,r.options=i,r.options.icon=void 0!==i.icon&&i.icon,r.options.label=void 0===i.label||i.label,r.cssClass="",r.options.label&&i.enableMnemonics){var o=r.getAction().label;if(o){var s=Hs.exec(o);s&&(r.mnemonic=(s[1]?s[1]:s[3]).toLocaleLowerCase())}}return r.runOnceToEnableMouseUp=new Ce["d"]((function(){r.element&&r._register(Object(X["i"])(r.element,X["c"].MOUSE_UP,(function(e){e.defaultPrevented||(X["b"].stop(e,!0),r.onClick(e))})))}),100),r._register(r.runOnceToEnableMouseUp),r}return Ps(t,e),t.prototype.render=function(t){e.prototype.render.call(this,t),this.element&&(this.container=t,this.item=Object(X["p"])(this.element,Object(X["a"])("a.action-menu-item")),this._action.id===Ui["d"].ID?this.item.setAttribute("role","presentation"):(this.item.setAttribute("role","menuitem"),this.mnemonic&&this.item.setAttribute("aria-keyshortcuts",""+this.mnemonic)),this.check=Object(X["p"])(this.item,Object(X["a"])("span.menu-item-check.codicon.codicon-check")),this.check.setAttribute("role","none"),this.label=Object(X["p"])(this.item,Object(X["a"])("span.action-label")),this.options.label&&this.options.keybinding&&(Object(X["p"])(this.item,Object(X["a"])("span.keybinding")).textContent=this.options.keybinding),this.runOnceToEnableMouseUp.schedule(),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked())},t.prototype.blur=function(){e.prototype.blur.call(this),this.applyStyle()},t.prototype.focus=function(){e.prototype.focus.call(this),this.item&&this.item.focus(),this.applyStyle()},t.prototype.updatePositionInSet=function(e,t){this.item&&(this.item.setAttribute("aria-posinset",""+e),this.item.setAttribute("aria-setsize",""+t))},t.prototype.updateLabel=function(){if(this.options.label){var e=this.getAction().label;if(e){var t=qs(e);this.options.enableMnemonics||(e=t),this.label&&this.label.setAttribute("aria-label",t.replace(/&&/g,"&"));var n=Hs.exec(e);if(n){e=Ge["o"](e),js.lastIndex=0;var i=js.exec(e);while(i&&i[1])i=js.exec(e);i&&(e=e.substr(0,i.index)+'<u aria-hidden="true">'+i[3]+"</u>"+e.substr(i.index+i[0].length)),e=e.replace(/&&/g,"&"),this.item&&this.item.setAttribute("aria-keyshortcuts",(n[1]?n[1]:n[3]).toLocaleLowerCase())}else e=e.replace(/&&/g,"&")}this.label&&(this.label.innerHTML=e.trim())}},t.prototype.updateTooltip=function(){var 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=Pn["a"]({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",e,this.options.keybinding))),e&&this.item&&(this.item.title=e)},t.prototype.updateClass=function(){this.cssClass&&this.item&&Object(X["P"])(this.item,this.cssClass),this.options.icon&&this.label?(this.cssClass=this.getAction().class||"",Object(X["e"])(this.label,"icon"),this.cssClass&&Object(X["f"])(this.label,this.cssClass),this.updateEnabled()):this.label&&Object(X["O"])(this.label,"icon")},t.prototype.updateEnabled=function(){this.getAction().enabled?(this.element&&Object(X["O"])(this.element,"disabled"),this.item&&(Object(X["O"])(this.item,"disabled"),this.item.tabIndex=0)):(this.element&&Object(X["e"])(this.element,"disabled"),this.item&&(Object(X["e"])(this.item,"disabled"),Object(X["R"])(this.item)))},t.prototype.updateChecked=function(){this.item&&(this.getAction().checked?(Object(X["e"])(this.item,"checked"),this.item.setAttribute("role","menuitemcheckbox"),this.item.setAttribute("aria-checked","true")):(Object(X["O"])(this.item,"checked"),this.item.setAttribute("role","menuitem"),this.item.setAttribute("aria-checked","false")))},t.prototype.getMnemonic=function(){return this.mnemonic},t.prototype.applyStyle=function(){if(this.menuStyle){var e=this.element&&Object(X["H"])(this.element,"focused"),t=e&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor,n=e&&this.menuStyle.selectionBackgroundColor?this.menuStyle.selectionBackgroundColor:void 0,i=e&&this.menuStyle.selectionBorderColor?"thin solid "+this.menuStyle.selectionBorderColor:"";this.item&&(this.item.style.color=t?t.toString():"",this.item.style.backgroundColor=n?n.toString():""),this.check&&(this.check.style.color=t?t.toString():""),this.container&&(this.container.style.border=i)}},t.prototype.style=function(e){this.menuStyle=e,this.applyStyle()},t}(Ui["c"]),zs=function(e){function t(t,n,i,r){var o=e.call(this,t,t,r)||this;return o.submenuActions=n,o.parentData=i,o.submenuOptions=r,o.mysubmenu=null,o.submenuDisposables=o._register(new de["b"]),o.mouseOver=!1,o.expandDirection=r&&void 0!==r.expandDirection?r.expandDirection:Rs.Right,o.showScheduler=new Ce["d"]((function(){o.mouseOver&&(o.cleanupExistingSubmenu(!1),o.createSubmenu(!1))}),250),o.hideScheduler=new Ce["d"]((function(){o.element&&!Object(X["J"])(document.activeElement,o.element)&&o.parentData.submenu===o.mysubmenu&&(o.parentData.parent.focus(!1),o.cleanupExistingSubmenu(!0))}),750),o}return Ps(t,e),t.prototype.render=function(t){var n=this;e.prototype.render.call(this,t),this.element&&(this.item&&(Object(X["e"])(this.item,"monaco-submenu-item"),this.item.setAttribute("aria-haspopup","true"),this.updateAriaExpanded("false"),this.submenuIndicator=Object(X["p"])(this.item,Object(X["a"])("span.submenu-indicator.codicon.codicon-chevron-right")),this.submenuIndicator.setAttribute("aria-hidden","true")),this._register(Object(X["i"])(this.element,X["c"].KEY_UP,(function(e){var t=new Nn["a"](e);(t.equals(17)||t.equals(3))&&(X["b"].stop(e,!0),n.createSubmenu(!0))}))),this._register(Object(X["i"])(this.element,X["c"].KEY_DOWN,(function(e){var t=new Nn["a"](e);document.activeElement===n.item&&(t.equals(17)||t.equals(3))&&X["b"].stop(e,!0)}))),this._register(Object(X["i"])(this.element,X["c"].MOUSE_OVER,(function(e){n.mouseOver||(n.mouseOver=!0,n.showScheduler.schedule())}))),this._register(Object(X["i"])(this.element,X["c"].MOUSE_LEAVE,(function(e){n.mouseOver=!1}))),this._register(Object(X["i"])(this.element,X["c"].FOCUS_OUT,(function(e){n.element&&!Object(X["J"])(document.activeElement,n.element)&&n.hideScheduler.schedule()}))),this._register(this.parentData.parent.onScroll((function(){n.parentData.parent.focus(!1),n.cleanupExistingSubmenu(!1)}))))},t.prototype.onClick=function(e){X["b"].stop(e,!0),this.cleanupExistingSubmenu(!1),this.createSubmenu(!0)},t.prototype.cleanupExistingSubmenu=function(e){this.parentData.submenu&&(e||this.parentData.submenu!==this.mysubmenu)&&(this.parentData.submenu.dispose(),this.parentData.submenu=void 0,this.updateAriaExpanded("false"),this.submenuContainer&&(this.submenuDisposables.clear(),this.submenuContainer=void 0))},t.prototype.createSubmenu=function(e){var t=this;if(void 0===e&&(e=!0),this.element)if(this.parentData.submenu)this.parentData.submenu.focus(!1);else{this.updateAriaExpanded("true"),this.submenuContainer=Object(X["p"])(this.element,Object(X["a"])("div.monaco-submenu")),Object(X["f"])(this.submenuContainer,"menubar-menu-items-holder","context-view");var n=getComputedStyle(this.parentData.parent.domNode),i=parseFloat(n.paddingTop||"0")||0;this.submenuContainer.style.top=this.element.offsetTop-this.parentData.parent.scrollOffset-i+"px",this.parentData.submenu=new Vs(this.submenuContainer,this.submenuActions,this.submenuOptions),this.menuStyle&&this.parentData.submenu.style(this.menuStyle);var r=this.element.getBoundingClientRect(),o=this.submenuContainer.getBoundingClientRect();this.expandDirection===Rs.Right?window.innerWidth<=r.right+o.width?(this.submenuContainer.style.left="10px",this.submenuContainer.style.top=this.element.offsetTop-this.parentData.parent.scrollOffset+r.height+"px"):(this.submenuContainer.style.left=this.element.offsetWidth+"px",this.submenuContainer.style.top=this.element.offsetTop-this.parentData.parent.scrollOffset-i+"px"):this.expandDirection===Rs.Left&&(this.submenuContainer.style.right=this.element.offsetWidth+"px",this.submenuContainer.style.left="auto",this.submenuContainer.style.top=this.element.offsetTop-this.parentData.parent.scrollOffset-i+"px"),this.submenuDisposables.add(Object(X["i"])(this.submenuContainer,X["c"].KEY_UP,(function(e){var n=new Nn["a"](e);n.equals(15)&&(X["b"].stop(e,!0),t.parentData.parent.focus(),t.cleanupExistingSubmenu(!0))}))),this.submenuDisposables.add(Object(X["i"])(this.submenuContainer,X["c"].KEY_DOWN,(function(e){var t=new Nn["a"](e);t.equals(15)&&X["b"].stop(e,!0)}))),this.submenuDisposables.add(this.parentData.submenu.onDidCancel((function(){t.parentData.parent.focus(),t.cleanupExistingSubmenu(!0)}))),this.parentData.submenu.focus(e),this.mysubmenu=this.parentData.submenu}},t.prototype.updateAriaExpanded=function(e){var t;this.item&&(null===(t=this.item)||void 0===t||t.setAttribute("aria-expanded",e))},t.prototype.applyStyle=function(){if(e.prototype.applyStyle.call(this),this.menuStyle){var t=this.element&&Object(X["H"])(this.element,"focused"),n=t&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor;this.submenuIndicator&&(this.submenuIndicator.style.color=n?""+n:""),this.parentData.submenu&&this.parentData.submenu.style(this.menuStyle)}},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.hideScheduler.dispose(),this.mysubmenu&&(this.mysubmenu.dispose(),this.mysubmenu=null),this.submenuContainer&&(this.submenuContainer=void 0)},t}(Ws),Ks=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ps(t,e),t.prototype.style=function(e){this.label&&(this.label.style.borderBottomColor=e.separatorColor?""+e.separatorColor:"")},t}(Ui["b"]);function qs(e){var t=Hs,n=t.exec(e);if(!n)return e;var i=!n[1];return e.replace(t,i?"$2$3":"").trim()}var Gs=n("ptcw"),Xs=n("4y0V"),Ys=n("XSiN"),Js=function(){function e(e,t,n,i,r){this.contextViewService=e,this.telemetryService=t,this.notificationService=n,this.keybindingService=i,this.themeService=r,this.focusToReturn=null,this.block=null,this.options={blockMouse:!0}}return e.prototype.configure=function(e){this.options=e},e.prototype.showContextMenu=function(e){var t,n=this,i=e.getActions();i.length&&(this.focusToReturn=document.activeElement,this.contextViewService.showContextView({getAnchor:function(){return e.getAnchor()},canRelayout:!1,anchorAlignment:e.anchorAlignment,render:function(r){var o=e.getMenuClassName?e.getMenuClassName():"";o&&(r.className+=" "+o),n.options.blockMouse&&(n.block=r.appendChild(Object(X["a"])(".context-view-block")));var s=new de["b"],a=e.actionRunner||new ji["b"];return a.onDidBeforeRun(n.onActionRun,n,s),a.onDidRun(n.onDidActionRun,n,s),t=new Vs(r,i,{actionViewItemProvider:e.getActionViewItem,context:e.getActionsContext?e.getActionsContext():null,actionRunner:a,getKeyBinding:e.getKeyBinding?e.getKeyBinding:function(e){return n.keybindingService.lookupKeybinding(e.id)}}),s.add(Object(Gs["c"])(t,n.themeService)),t.onDidCancel((function(){return n.contextViewService.hideContextView(!0)}),null,s),t.onDidBlur((function(){return n.contextViewService.hideContextView(!0)}),null,s),Object(Xs["a"])(window,X["c"].BLUR)((function(){n.contextViewService.hideContextView(!0)}),null,s),Object(Xs["a"])(window,X["c"].MOUSE_DOWN)((function(e){if(!e.defaultPrevented){var t=new Ys["a"](e),i=t.target;if(!t.rightButton){while(i){if(i===r)return;i=i.parentElement}n.contextViewService.hideContextView(!0)}}}),null,s),Object(de["e"])(s,t)},focus:function(){t&&t.focus(!!e.autoSelectFirstItem)},onHide:function(t){e.onHide&&e.onHide(!!t),n.block&&(Object(X["Q"])(n.block),n.block=null),n.focusToReturn&&n.focusToReturn.focus()}}))},e.prototype.onActionRun=function(e){this.telemetryService&&this.telemetryService.publicLog2("workbenchActionExecuted",{id:e.action.id,from:"contextMenu"}),this.contextViewService.hideContextView(!1),this.focusToReturn&&this.focusToReturn.focus()},e.prototype.onDidActionRun=function(e){e.error&&this.notificationService&&this.notificationService.error(e.error)},e}(),Zs=n("XXUj"),$s=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),ea=function(e,t,n,i){var r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},ta=function(e,t){return function(n,i){t(n,i,e)}},na=function(e){function t(t,n,i,r,o){var s=e.call(this)||this;return s._onDidContextMenu=s._register(new P["a"]),s.contextMenuHandler=new Js(i,t,n,r,o),s}return $s(t,e),t.prototype.configure=function(e){this.contextMenuHandler.configure(e)},t.prototype.showContextMenu=function(e){this.contextMenuHandler.showContextMenu(e),this._onDidContextMenu.fire()},t=ea([ta(0,Zs["a"]),ta(1,ui["a"]),ta(2,or["b"]),ta(3,Ir["a"]),ta(4,zi["c"])],t),t}(de["a"]),ia=(n("TT2d"),n("nuFA")),ra=n("CjF5"),oa=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();function sa(e,t,n){var i=n.offset+n.size;return 0===n.position?t<=e-i?i:t<=n.offset?n.offset-t:Math.max(e-t,0):t<=n.offset?n.offset-t:t<=e-i?i:0}var aa=function(e){function t(t){var n=e.call(this)||this;return n.container=null,n.delegate=null,n.toDisposeOnClean=de["a"].None,n.toDisposeOnSetContainer=de["a"].None,n.view=X["a"](".context-view"),X["I"](n.view),n.setContainer(t),n._register(Object(de["h"])((function(){return n.setContainer(null)}))),n}return oa(t,e),t.prototype.setContainer=function(e){var n=this;if(this.container&&(this.toDisposeOnSetContainer.dispose(),this.container.removeChild(this.view),this.container=null),e){this.container=e,this.container.appendChild(this.view);var i=new de["b"];t.BUBBLE_UP_EVENTS.forEach((function(e){i.add(X["n"](n.container,e,(function(e){n.onDOMEvent(e,!1)})))})),t.BUBBLE_DOWN_EVENTS.forEach((function(e){i.add(X["n"](n.container,e,(function(e){n.onDOMEvent(e,!0)}),!0))})),this.toDisposeOnSetContainer=i}},t.prototype.show=function(e){this.isVisible()&&this.hide(),X["s"](this.view),this.view.className="context-view",this.view.style.top="0px",this.view.style.left="0px",X["W"](this.view),this.toDisposeOnClean=e.render(this.view)||de["a"].None,this.delegate=e,this.doLayout(),this.delegate.focus&&this.delegate.focus()},t.prototype.layout=function(){this.isVisible()&&(!1!==this.delegate.canRelayout||Ne["c"]&&ra["a"].pointerEvents?(this.delegate.layout&&this.delegate.layout(),this.doLayout()):this.hide())},t.prototype.doLayout=function(){if(this.isVisible()){var e,t=this.delegate.getAnchor();if(X["K"](t)){var n=X["B"](t);e={top:n.top,left:n.left,width:n.width,height:n.height}}else e={top:t.y,left:t.x,width:t.width||1,height:t.height||2};var i,r=X["G"](this.view),o=X["F"](this.view),s=this.delegate.anchorPosition||0,a=this.delegate.anchorAlignment||0,u={offset:e.top-window.pageYOffset,size:e.height,position:0===s?0:1};i=0===a?{offset:e.left,size:0,position:0}:{offset:e.left+e.width,size:0,position:1};var l=sa(window.innerHeight,o,u)+window.pageYOffset;ia["a"].intersects({start:l,end:l+o},{start:u.offset,end:u.offset+u.size})&&(i.size=e.width,1===a&&(i.offset=e.left));var c=sa(window.innerWidth,r,i);X["P"](this.view,"top","bottom","left","right"),X["e"](this.view,0===s?"bottom":"top"),X["e"](this.view,0===a?"left":"right");var d=X["B"](this.container);this.view.style.top=l-d.top+"px",this.view.style.left=c-d.left+"px",this.view.style.width="initial"}},t.prototype.hide=function(e){var t=this.delegate;this.delegate=null,(null===t||void 0===t?void 0:t.onHide)&&t.onHide(e),this.toDisposeOnClean.dispose(),X["I"](this.view)},t.prototype.isVisible=function(){return!!this.delegate},t.prototype.onDOMEvent=function(e,t){this.delegate&&(this.delegate.onDOMEvent?this.delegate.onDOMEvent(e,document.activeElement):t&&!X["J"](e.target,this.container)&&this.hide())},t.prototype.dispose=function(){this.hide(),e.prototype.dispose.call(this)},t.BUBBLE_UP_EVENTS=["click","keydown","focus","blur"],t.BUBBLE_DOWN_EVENTS=["click"],t}(de["a"]),ua=Object(Nt["c"])("layoutService"),la=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),ca=function(e,t,n,i){var r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},da=function(e,t){return function(n,i){t(n,i,e)}},ha=function(e){function t(t){var n=e.call(this)||this;return n.layoutService=t,n.contextView=n._register(new aa(t.container)),n.layout(),n._register(t.onLayout((function(){return n.layout()}))),n}return la(t,e),t.prototype.setContainer=function(e){this.contextView.setContainer(e)},t.prototype.showContextView=function(e){this.contextView.show(e)},t.prototype.layout=function(){this.contextView.layout()},t.prototype.hideContextView=function(e){this.contextView.hide(e)},t=ca([da(0,ua)],t),t}(de["a"]),fa=Object(Nt["c"])("dialogService"),pa=n("vl9R");function ga(e){return{data:e,incoming:Object.create(null),outgoing:Object.create(null)}}var Aa,ma=function(){function e(e){this._hashFn=e,this._nodes=Object.create(null)}return e.prototype.roots=function(){var e=[];return Object(pa["b"])(this._nodes,(function(t){Object(Le["f"])(t.value.outgoing)&&e.push(t.value)})),e},e.prototype.insertEdge=function(e,t){var n=this.lookupOrInsertNode(e),i=this.lookupOrInsertNode(t);n.outgoing[this._hashFn(t)]=i,i.incoming[this._hashFn(e)]=n},e.prototype.removeNode=function(e){var t=this._hashFn(e);delete this._nodes[t],Object(pa["b"])(this._nodes,(function(e){delete e.value.outgoing[t],delete e.value.incoming[t]}))},e.prototype.lookupOrInsertNode=function(e){var t=this._hashFn(e),n=this._nodes[t];return n||(n=ga(e),this._nodes[t]=n),n},e.prototype.isEmpty=function(){for(var e in this._nodes)return!1;return!0},e.prototype.toString=function(){var e=[];return Object(pa["b"])(this._nodes,(function(t){e.push(t.key+", (incoming)["+Object.keys(t.value.incoming).join(", ")+"], (outgoing)["+Object.keys(t.value.outgoing).join(",")+"]")})),e.join("\n")},e}(),va=n("r0BQ"),_a=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),ya=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i},ba=!1,wa="function"===typeof Proxy,Ca=function(e){function t(t){var n=e.call(this,"cyclic dependency between services")||this;return n.message=t.toString(),n}return _a(t,e),t}(Error),Sa=function(){function e(e,t,n){void 0===e&&(e=new rr["a"]),void 0===t&&(t=!1),this._services=e,this._strict=t,this._parent=n,this._services.set(Nt["a"],this)}return e.prototype.createChild=function(t){return new e(t,this._strict,this)},e.prototype.invokeFunction=function(e){for(var t=this,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var r=Na.traceInvocation(e),o=!1;try{var s={get:function(e,n){if(o)throw Object(Se["c"])("service accessor is only valid during the invocation of its target method");var i=t._getOrCreateServiceInstance(e,r);if(!i&&n!==Nt["d"])throw new Error("[invokeFunction] unknown service '"+e+"'");return i}};return e.apply(void 0,ya([s],n))}finally{o=!0,r.stop()}},e.prototype.createInstance=function(e){for(var t,n,i=[],r=1;r<arguments.length;r++)i[r-1]=arguments[r];return e instanceof va["a"]?(t=Na.traceCreation(e.ctor),n=this._createInstance(e.ctor,e.staticArguments.concat(i),t)):(t=Na.traceCreation(e),n=this._createInstance(e,i,t)),t.stop(),n},e.prototype._createInstance=function(e,t,n){void 0===t&&(t=[]);for(var i=Nt["b"].getServiceDependencies(e).sort((function(e,t){return e.index-t.index})),r=[],o=0,s=i;o<s.length;o++){var a=s[o],u=this._getOrCreateServiceInstance(a.id,n);if(!u&&this._strict&&!a.optional)throw new Error("[createInstance] "+e.name+" depends on UNKNOWN service "+a.id+".");r.push(u)}var l=i.length>0?i[0].index:t.length;if(t.length!==l){console.warn("[createInstance] First service dependency of "+e.name+" at position "+(l+1)+" conflicts with "+t.length+" static arguments");var c=l-t.length;t=c>0?t.concat(new Array(c)):t.slice(0,l)}return new(e.bind.apply(e,ya([void 0],ya(t,r))))},e.prototype._setServiceInstance=function(e,t){if(this._services.get(e)instanceof va["a"])this._services.set(e,t);else{if(!this._parent)throw new Error("illegalState - setting UNKNOWN service instance");this._parent._setServiceInstance(e,t)}},e.prototype._getServiceInstanceOrDescriptor=function(e){var t=this._services.get(e);return!t&&this._parent?this._parent._getServiceInstanceOrDescriptor(e):t},e.prototype._getOrCreateServiceInstance=function(e,t){var n=this._getServiceInstanceOrDescriptor(e);return n instanceof va["a"]?this._createAndCacheServiceInstance(e,n,t.branch(e,!0)):(t.branch(e,!1),n)},e.prototype._createAndCacheServiceInstance=function(e,t,n){var i=new ma((function(e){return e.id.toString()})),r=0,o=[{id:e,desc:t,_trace:n}];while(o.length){var s=o.pop();if(i.lookupOrInsertNode(s),r++>150)throw new Ca(i);for(var a=0,u=Nt["b"].getServiceDependencies(s.desc.ctor);a<u.length;a++){var l=u[a],c=this._getServiceInstanceOrDescriptor(l.id);if(c||l.optional||console.warn("[createInstance] "+e+" depends on "+l.id+" which is NOT registered."),c instanceof va["a"]){var d={id:l.id,desc:c,_trace:s._trace.branch(l.id,!0)};i.insertEdge(s,d),o.push(d)}}}while(1){var h=i.roots();if(0===h.length){if(!i.isEmpty())throw new Ca(i);break}for(var f=0,p=h;f<p.length;f++){var g=p[f].data,A=this._createServiceInstanceWithOwner(g.id,g.desc.ctor,g.desc.staticArguments,g.desc.supportsDelayedInstantiation,g._trace);this._setServiceInstance(g.id,A),i.removeNode(g)}}return this._getServiceInstanceOrDescriptor(e)},e.prototype._createServiceInstanceWithOwner=function(e,t,n,i,r){if(void 0===n&&(n=[]),this._services.get(e)instanceof va["a"])return this._createServiceInstance(t,n,i,r);if(this._parent)return this._parent._createServiceInstanceWithOwner(e,t,n,i,r);throw new Error("illegalState - creating UNKNOWN service instance "+t.name)},e.prototype._createServiceInstance=function(e,t,n,i){var r=this;if(void 0===t&&(t=[]),n&&wa){var o=new Ce["b"]((function(){return r._createInstance(e,t,i)}));return new Proxy(Object.create(null),{get:function(e,t){if(t in e)return e[t];var n=o.getValue(),i=n[t];return"function"!==typeof i||(i=i.bind(n),e[t]=i),i},set:function(e,t,n){return o.getValue()[t]=n,!0}})}return this._createInstance(e,t,i)},e}(),Na=function(){function e(e,t){this.type=e,this.name=t,this._start=Date.now(),this._dep=[]}return e.traceInvocation=function(t){return ba?new e(1,t.name||t.toString().substring(0,42).replace(/\n/g,"")):e._None},e.traceCreation=function(t){return ba?new e(0,t.name):e._None},e.prototype.branch=function(t,n){var i=new e(2,t.toString());return this._dep.push([t,n,i]),i},e.prototype.stop=function(){var t=Date.now()-this._start;e._totals+=t;var n=!1;function i(e,t){for(var r=[],o=new Array(e+1).join("\t"),s=0,a=t._dep;s<a.length;s++){var u=a[s],l=u[0],c=u[1],d=u[2];if(c&&d){n=!0,r.push(o+"CREATES -> "+l);var h=i(e+1,d);h&&r.push(h)}else r.push(o+"uses -> "+l)}return r.join("\n")}var r=[(0===this.type?"CREATE":"CALL")+" "+this.name,""+i(1,this),"DONE, took "+t.toFixed(2)+"ms (grand total "+e._totals.toFixed(2)+"ms)"];(t>2||n)&&console.log(r.join("\n"))},e._None=new(function(e){function t(){return e.call(this,-1,null)||this}return _a(t,e),t.prototype.stop=function(){},t.prototype.branch=function(){return this},t}(e)),e._totals=0,e}(),La=n("R8sh"),Ea=n("k9mg"),xa=n("tADe");(function(e){function t(e,t,n){if(e[t])return e[t][n]}function n(e,t,n,i){e[t]||(e[t]=Object.create(null)),e[t][n]=i}function i(e,t,n){return!(!e[t]||!e[t][n])&&(delete e[t][n],Object(Le["f"])(e[t])&&delete e[t],!0)}e.get=t,e.set=n,e.remove=i})(Aa||(Aa={}));var Oa=function(){function e(e){this.errors=0,this.infos=0,this.warnings=0,this.unknowns=0,this._data=Object.create(null),this._service=e,this._subscription=e.onMarkerChanged(this._update,this)}return e.prototype.dispose=function(){this._subscription.dispose(),this._data=void 0},e.prototype._update=function(e){if(this._data)for(var t=0,n=e;t<n.length;t++){var i=n[t],r=i.toString(),o=this._data[r];o&&this._substract(o);var s=this._resourceStats(i);this._add(s),this._data[r]=s}},e.prototype._resourceStats=function(e){var t={errors:0,warnings:0,infos:0,unknowns:0};if(e.scheme===Z["b"].inMemory||e.scheme===Z["b"].walkThrough||e.scheme===Z["b"].walkThroughSnippet)return t;for(var n=0,i=this._service.read({resource:e});n<i.length;n++){var r=i[n].severity;r===xa["c"].Error?t.errors+=1:r===xa["c"].Warning?t.warnings+=1:r===xa["c"].Info?t.infos+=1:t.unknowns+=1}return t},e.prototype._substract=function(e){this.errors-=e.errors,this.warnings-=e.warnings,this.infos-=e.infos,this.unknowns-=e.unknowns},e.prototype._add=function(e){this.errors+=e.errors,this.warnings+=e.warnings,this.infos+=e.infos,this.unknowns+=e.unknowns},e}(),Ba=function(){function e(){this._onMarkerChanged=new P["a"],this._onMarkerChangedEvent=P["b"].debounce(this._onMarkerChanged.event,e._debouncer,0),this._byResource=Object.create(null),this._byOwner=Object.create(null),this._stats=new Oa(this)}return e.prototype.dispose=function(){this._stats.dispose()},Object.defineProperty(e.prototype,"onMarkerChanged",{get:function(){return this._onMarkerChangedEvent},enumerable:!0,configurable:!0}),e.prototype.remove=function(e,t){for(var n=0,i=t||[];n<i.length;n++){var r=i[n];this.changeOne(e,r,[])}},e.prototype.changeOne=function(t,n,i){if(Object(Pe["p"])(i)){var r=Aa.remove(this._byResource,n.toString(),t),o=Aa.remove(this._byOwner,t,n.toString());if(r!==o)throw new Error("invalid marker service state");r&&o&&this._onMarkerChanged.fire([n])}else{for(var s=[],a=0,u=i;a<u.length;a++){var l=u[a],c=e._toMarker(t,n,l);c&&s.push(c)}Aa.set(this._byResource,n.toString(),t,s),Aa.set(this._byOwner,t,n.toString(),s),this._onMarkerChanged.fire([n])}},e._toMarker=function(e,t,n){var i=n.code,r=n.severity,o=n.message,s=n.source,a=n.startLineNumber,u=n.startColumn,l=n.endLineNumber,c=n.endColumn,d=n.relatedInformation,h=n.tags;if(o)return a=a>0?a:1,u=u>0?u:1,l=l>=a?l:a,c=c>0?c:u,{resource:t,owner:e,code:i,severity:r,message:o,source:s,startLineNumber:a,startColumn:u,endLineNumber:l,endColumn:c,relatedInformation:d,tags:h}},e.prototype.read=function(t){void 0===t&&(t=Object.create(null));var n=t.owner,i=t.resource,r=t.severities,o=t.take;if((!o||o<0)&&(o=-1),n&&i){var s=Aa.get(this._byResource,i.toString(),n);if(s){for(var a=[],u=0,l=s;u<l.length;u++){var c=l[u];if(e._accept(c,r)){var d=a.push(c);if(o>0&&d===o)break}}return a}return[]}if(n||i){var h=n?this._byOwner[n]:i?this._byResource[i.toString()]:void 0;if(!h)return[];a=[];for(var f in h)for(var p=0,g=h[f];p<g.length;p++){s=g[p];if(e._accept(s,r)){d=a.push(s);if(o>0&&d===o)return a}}return a}var a=[];for(var A in this._byResource)for(var m in this._byResource[A])for(var v=0,_=this._byResource[A][m];v<_.length;v++){var s=_[v];if(e._accept(s,r)){var d=a.push(s);if(o>0&&d===o)return a}}return a},e._accept=function(e,t){return void 0===t||(t&e.severity)===e.severity},e._debouncer=function(t,n){t||(e._dedupeMap=Object.create(null),t=[]);for(var i=0,r=n;i<r.length;i++){var o=r[i];void 0===e._dedupeMap[o.toString()]&&(e._dedupeMap[o.toString()]=!0,t.push(o))}return t},e}(),ka=n("A+jI"),Da=function(e,t,n,i){var r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Ia=function(e,t){return function(n,i){t(n,i,e)}},Ma=function(){function e(e){this._commandService=e}return e.prototype.createMenu=function(e,t){return new Fa(e,this._commandService,t)},e=Da([Ia(0,ee["b"])],e),e}(),Fa=function(){function e(e,t,n){var i=this;this._id=e,this._commandService=t,this._contextKeyService=n,this._onDidChange=new P["a"],this._dispoables=new de["b"],this._menuGroups=[],this._contextKeys=new Set,this._build(),this._dispoables.add(P["b"].debounce(P["b"].filter(Dr["c"].onDidChangeMenu,(function(e){return e===i._id})),(function(){}),50)(this._build,this)),this._dispoables.add(P["b"].debounce(this._contextKeyService.onDidChangeContext,(function(e,t){return e||t.affectsSome(i._contextKeys)}),50)((function(e){return e&&i._onDidChange.fire(void 0)}),this))}return e.prototype.dispose=function(){this._dispoables.dispose(),this._onDidChange.dispose()},e.prototype._build=function(){this._menuGroups.length=0,this._contextKeys.clear();var t,n=Dr["c"].getMenuItems(this._id);n.sort(e._compareMenuItems);for(var i=0,r=n;i<r.length;i++){var o=r[i],s=o.group||"";t&&t[0]===s||(t=[s,[]],this._menuGroups.push(t)),t[1].push(o),e._fillInKbExprKeys(o.when,this._contextKeys),Object(Dr["e"])(o)&&o.command.precondition&&e._fillInKbExprKeys(o.command.precondition,this._contextKeys),Object(Dr["e"])(o)&&o.command.toggled&&e._fillInKbExprKeys(o.command.toggled,this._contextKeys)}this._onDidChange.fire(this)},e.prototype.getActions=function(e){for(var t=[],n=0,i=this._menuGroups;n<i.length;n++){for(var r=i[n],o=r[0],s=r[1],a=[],u=0,l=s;u<l.length;u++){var c=l[u];if(this._contextKeyService.contextMatchesRules(c.when)){var d=Object(Dr["e"])(c)?new Dr["b"](c.command,c.alt,e,this._contextKeyService,this._commandService):new Dr["d"](c);a.push(d)}}a.length>0&&t.push([o,a])}return t},e._fillInKbExprKeys=function(e,t){if(e)for(var n=0,i=e.keys();n<i.length;n++){var r=i[n];t.add(r)}},e._compareMenuItems=function(t,n){var i=t.group,r=n.group;if(i!==r){if(!i)return 1;if(!r)return-1;if("navigation"===i)return-1;if("navigation"===r)return 1;var o=i.localeCompare(r);if(0!==o)return o}var s=t.order||0,a=n.order||0;return s<a?-1:s>a?1:e._compareTitles(Object(Dr["e"])(t)?t.command.title:t.title,Object(Dr["e"])(n)?n.command.title:n.title)},e._compareTitles=function(e,t){var n="string"===typeof e?e:e.value,i="string"===typeof t?t:t.value;return n.localeCompare(i)},e=Da([Ia(1,ee["b"]),Ia(2,jn["c"])],e),e}(),Ta=n("79sc"),Ra=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Pa=function(e,t,n,i){var r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Ua=function(e,t){return function(n,i){t(n,i,e)}};function Ha(e){return e.toString()}var ja,Qa=function(e){function t(t){var n=e.call(this)||this;return n.model=t,n._markersData=new Map,n._register(Object(de["h"])((function(){n.model.deltaDecorations(Object(kn["d"])(n._markersData),[]),n._markersData.clear()}))),n}return Ra(t,e),t.prototype.update=function(e,t){var n=Object(kn["d"])(this._markersData);this._markersData.clear();for(var i=this.model.deltaDecorations(n,t),r=0;r<i.length;r++)this._markersData.set(i[r],e[r])},t.prototype.getMarker=function(e){return this._markersData.get(e.id)},t}(de["a"]),Va=function(e){function t(t,n){var i=e.call(this)||this;return i._markerService=n,i._onDidChangeMarker=i._register(new P["a"]),i._markerDecorations=new Map,t.getModels().forEach((function(e){return i._onModelAdded(e)})),i._register(t.onModelAdded(i._onModelAdded,i)),i._register(t.onModelRemoved(i._onModelRemoved,i)),i._register(i._markerService.onMarkerChanged(i._handleMarkerChange,i)),i}return Ra(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._markerDecorations.forEach((function(e){return e.dispose()})),this._markerDecorations.clear()},t.prototype.getMarker=function(e,t){var n=this._markerDecorations.get(Ha(e.uri));return n?Object(Le["o"])(n.getMarker(t)):null},t.prototype._handleMarkerChange=function(e){var t=this;e.forEach((function(e){var n=t._markerDecorations.get(Ha(e));n&&t._updateDecorations(n)}))},t.prototype._onModelAdded=function(e){var t=new Qa(e);this._markerDecorations.set(Ha(e.uri),t),this._updateDecorations(t)},t.prototype._onModelRemoved=function(e){var t=this,n=this._markerDecorations.get(Ha(e.uri));n&&(n.dispose(),this._markerDecorations.delete(Ha(e.uri))),e.uri.scheme!==Z["b"].inMemory&&e.uri.scheme!==Z["b"].internal&&e.uri.scheme!==Z["b"].vscode||this._markerService&&this._markerService.read({resource:e.uri}).map((function(e){return e.owner})).forEach((function(n){return t._markerService.remove(n,[e.uri])}))},t.prototype._updateDecorations=function(e){var t=this,n=this._markerService.read({resource:e.model.uri,take:500}),i=n.map((function(n){return{range:t._createDecorationRange(e.model,n),options:t._createDecorationOption(n)}}));e.update(n,i),this._onDidChangeMarker.fire(e.model)},t.prototype._createDecorationRange=function(e,t){var n=Q["a"].lift(t);if(t.severity!==xa["c"].Hint||this._hasMarkerTag(t,1)||this._hasMarkerTag(t,2)||(n=n.setEndPosition(n.startLineNumber,n.startColumn+2)),n=e.validateRange(n),n.isEmpty()){var i=e.getWordAtPosition(n.getStartPosition());if(i)n=new Q["a"](n.startLineNumber,i.startColumn,n.endLineNumber,i.endColumn);else{var r=e.getLineLastNonWhitespaceColumn(n.startLineNumber)||e.getLineMaxColumn(n.startLineNumber);1===r||(n=n.endColumn>=r?new Q["a"](n.startLineNumber,r-1,n.endLineNumber,r):new Q["a"](n.startLineNumber,n.startColumn,n.endLineNumber,n.endColumn+1))}}else if(t.endColumn===Number.MAX_VALUE&&1===t.startColumn&&n.startLineNumber===n.endLineNumber){var o=e.getLineFirstNonWhitespaceColumn(t.startLineNumber);o<n.endColumn&&(n=new Q["a"](n.startLineNumber,o,n.endLineNumber,n.endColumn),t.startColumn=o)}return n},t.prototype._createDecorationOption=function(e){var t,n,i,r=void 0,o=void 0;switch(e.severity){case xa["c"].Hint:t=this._hasMarkerTag(e,2)?void 0:this._hasMarkerTag(e,1)?"squiggly-unnecessary":"squiggly-hint",n=0;break;case xa["c"].Warning:t="squiggly-warning",r=Object(zi["f"])(Vi["q"]),n=20,i={color:Object(zi["f"])(Wi["Ib"]),position:ve["c"].Inline};break;case xa["c"].Info:t="squiggly-info",r=Object(zi["f"])(Vi["p"]),n=10;break;case xa["c"].Error:default:t="squiggly-error",r=Object(zi["f"])(Vi["o"]),n=30,i={color:Object(zi["f"])(Wi["Fb"]),position:ve["c"].Inline};break}return e.tags&&(-1!==e.tags.indexOf(1)&&(o="squiggly-inline-unnecessary"),-1!==e.tags.indexOf(2)&&(o="squiggly-inline-deprecated")),{stickiness:1,className:t,showIfCollapsed:!0,overviewRuler:{color:r,position:ve["d"].Right},minimap:i,zIndex:n,inlineClassName:o}},t.prototype._hasMarkerTag=function(e,t){return!!e.tags&&e.tags.indexOf(t)>=0},t=Pa([Ua(0,St["a"]),Ua(1,xa["b"])],t),t}(de["a"]),Wa=n("9fML"),za=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Ka=function(e,t,n,i){var r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},qa=function(e,t){return function(n,i){t(n,i,e)}},Ga=function(e){function t(t,n){var i=e.call(this)||this;i._contextKeyService=t,i._configurationService=n,i._accessibilitySupport=0,i._onDidChangeScreenReaderOptimized=new P["a"],i._accessibilityModeEnabledContext=Mr["a"].bindTo(i._contextKeyService);var r=function(){return i._accessibilityModeEnabledContext.set(i.isScreenReaderOptimized())};return i._register(i._configurationService.onDidChangeConfiguration((function(e){e.affectsConfiguration("editor.accessibilitySupport")&&(r(),i._onDidChangeScreenReaderOptimized.fire())}))),r(),i.onDidChangeScreenReaderOptimized((function(){return r()})),i}return za(t,e),Object.defineProperty(t.prototype,"onDidChangeScreenReaderOptimized",{get:function(){return this._onDidChangeScreenReaderOptimized.event},enumerable:!0,configurable:!0}),t.prototype.isScreenReaderOptimized=function(){var e=this._configurationService.getValue("editor.accessibilitySupport");return"on"===e||"auto"===e&&2===this._accessibilitySupport},t.prototype.getAccessibilitySupport=function(){return this._accessibilitySupport},t=Ka([qa(0,jn["c"]),qa(1,Bn["a"])],t),t}(de["a"]),Xa=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();(function(e){var t=new rr["a"],n=function(){function e(e,t){this._serviceId=e,this._factory=t,this._value=null}return Object.defineProperty(e.prototype,"id",{get:function(){return this._serviceId},enumerable:!0,configurable:!0}),e.prototype.get=function(e){if(!this._value){if(e&&(this._value=e[this._serviceId.toString()]),this._value||(this._value=this._factory(e)),!this._value)throw new Error("Service "+this._serviceId+" is missing!");t.set(this._serviceId,this._value)}return this._value},e}();e.LazyStaticService=n;var i=[];function r(e,t){var r=new n(e,t);return i.push(r),r}function o(e){for(var t=new rr["a"],n=0,r=Object(Wa["a"])();n<r.length;n++){var o=r[n],s=o[0],a=o[1];t.set(s,a)}for(var u in e)e.hasOwnProperty(u)&&t.set(Object(Nt["c"])(u),e[u]);i.forEach((function(n){return t.set(n.id,n.get(e))}));var l=new Sa(t,!0);return t.set(Nt["a"],l),[t,l]}e.init=o,e.instantiationService=r(Nt["a"],(function(){return new Sa(t,!0)}));var s=new Ci;e.configurationService=r(Bn["a"],(function(){return s})),e.resourceConfigurationService=r(Lt,(function(){return new Si(s)})),e.resourcePropertiesService=r(Et,(function(){return new Ni(s)})),e.contextService=r(li["a"],(function(){return new Ei})),e.labelService=r(La["a"],(function(){return new Bi})),e.telemetryService=r(Zs["a"],(function(){return new Li})),e.dialogService=r(fa,(function(){return new vi})),e.notificationService=r(ui["a"],(function(){return new _i})),e.markerService=r(xa["b"],(function(){return new Ba})),e.modeService=r(qr["a"],(function(e){return new go})),e.standaloneThemeService=r(kr,(function(){return new bs})),e.logService=r(xt["a"],(function(){return new xt["c"]})),e.modelService=r(St["a"],(function(t){return new Co(e.configurationService.get(t),e.resourcePropertiesService.get(t),e.standaloneThemeService.get(t),e.logService.get(t))})),e.markerDecorationsService=r(Ta["a"],(function(t){return new Va(e.modelService.get(t),e.markerService.get(t))})),e.codeEditorService=r(G["a"],(function(t){return new zo(e.standaloneThemeService.get(t))})),e.editorProgressService=r(cr["a"],(function(){return new mi})),e.storageService=r(ka["a"],(function(){return new ka["b"]})),e.editorWorkerService=r(be["a"],(function(t){return new Pt(e.modelService.get(t),e.resourceConfigurationService.get(t),e.logService.get(t))}))})(ja||(ja={}));var Ya=function(e){function t(t,n){var i=e.call(this)||this,r=ja.init(n),o=r[0],s=r[1];i._serviceCollection=o,i._instantiationService=s;var a=i.get(Bn["a"]),u=i.get(ui["a"]),l=i.get(Zs["a"]),c=i.get(zi["c"]),d=function(e,t){var r=null;return n&&(r=n[e.toString()]),r||(r=t()),i._serviceCollection.set(e,r),r},h=d(jn["c"],(function(){return i._register(new Ms(a))}));d(Mr["b"],(function(){return new Ga(h,a)})),d(Ea["a"],(function(){return new Ea["b"](c)}));var f=d(ee["b"],(function(){return new yi(i._instantiationService)})),p=d(Ir["a"],(function(){return i._register(new bi(h,f,l,u,t))})),g=d(ua,(function(){return new ki(t)})),A=d(or["b"],(function(){return i._register(new ha(g))}));return d(or["a"],(function(){var e=new na(l,u,A,p,c);return e.configure({blockMouse:!1}),i._register(e)})),d(Dr["a"],(function(){return new Ma(f)})),d(Kr["a"],(function(){return new Oi(ja.modelService.get(St["a"]))})),i}return Xa(t,e),t.prototype.get=function(e){var t=this._serviceCollection.get(e);if(!t)throw new Error("Missing service "+e);return t},t.prototype.set=function(e,t){this._serviceCollection.set(e,t)},t.prototype.has=function(e){return this._serviceCollection.has(e)},t}(de["a"]);function Ja(e,t,n){var i=new Ya(e,t),r=null;i.has(we["a"])||(r=new Ai(ja.modelService.get()),i.set(we["a"],r)),i.has(te["a"])||i.set(te["a"],new le(i.get(G["a"]),i.get(ee["b"])));var o=n(i);return r&&r.setEditor(o),o}function Za(e,t,n){return Ja(e,n||{},(function(n){return new Wr(e,t,n,n.get(Nt["a"]),n.get(G["a"]),n.get(ee["b"]),n.get(jn["c"]),n.get(Ir["a"]),n.get(or["b"]),n.get(kr),n.get(ui["a"]),n.get(Bn["a"]),n.get(Mr["b"]))}))}function $a(e){return ja.codeEditorService.get().onCodeEditorAdd((function(t){e(t)}))}function eu(e,t,n){return Ja(e,n||{},(function(n){return new zr(e,t,n,n.get(Nt["a"]),n.get(jn["c"]),n.get(Ir["a"]),n.get(or["b"]),n.get(be["a"]),n.get(G["a"]),n.get(kr),n.get(ui["a"]),n.get(Bn["a"]),n.get(or["a"]),n.get(cr["a"]),null)}))}function tu(e,t){return new ge(e,t)}function nu(e,t,n){return ja.modelService.get().createModel(e,t,n)}function iu(e,t,n){if(e=e||"",!t){var i=e.indexOf("\n"),r=e;return-1!==i&&(r=e.substring(0,i)),nu(e,ja.modeService.get().createByFilepathOrFirstLine(n||null,r),n)}return nu(e,ja.modeService.get().create(t),n)}function ru(e,t){ja.modelService.get().setMode(e,ja.modeService.get().create(t))}function ou(e,t,n){e&&ja.markerService.get().changeOne(t,e.uri,n)}function su(e){return ja.markerService.get().read(e)}function au(e){return ja.modelService.get().getModel(e)}function uu(){return ja.modelService.get().getModels()}function lu(e){return ja.modelService.get().onModelAdded(e)}function cu(e){return ja.modelService.get().onModelRemoved(e)}function du(e){return ja.modelService.get().onModelModeChanged((function(t){e({model:t.model,oldLanguage:t.oldModeId})}))}function hu(e){return Kt(ja.modelService.get(),e)}function fu(e,t){return bn.colorizeElement(ja.standaloneThemeService.get(),ja.modeService.get(),e,t)}function pu(e,t,n){return bn.colorize(ja.modeService.get(),e,t,n)}function gu(e,t,n){return void 0===n&&(n=4),bn.colorizeModelLine(e,t,n)}function Au(e){var t=_e["y"].get(e);return t||{getInitialState:function(){return ye["c"]},tokenize:function(t,n,i){return Object(ye["d"])(e,t,n,i)}}}function mu(e,t){var n=ja.modeService.get();n.triggerMode(t);for(var i=Au(t),r=e.split(/\r\n|\r|\n/),o=[],s=i.getInitialState(),a=0,u=r.length;a<u;a++){var l=r[a],c=i.tokenize(l,s,0);o[a]=c.tokens,s=c.endState}return o}function vu(e,t){ja.standaloneThemeService.get().defineTheme(e,t)}function _u(e){ja.standaloneThemeService.get().setTheme(e)}function yu(){Object(Ri["b"])()}function bu(){return{create:Za,onDidCreateEditor:$a,createDiffEditor:eu,createDiffNavigator:tu,createModel:iu,setModelLanguage:ru,setModelMarkers:ou,getModelMarkers:su,getModels:uu,getModel:au,onDidCreateModel:lu,onWillDisposeModel:cu,onDidChangeModelLanguage:du,createWebWorker:hu,colorizeElement:fu,colorize:pu,colorizeModelLine:gu,tokenize:mu,defineTheme:vu,setTheme:_u,remeasureFonts:yu,AccessibilitySupport:i,ContentWidgetPositionPreference:u,CursorChangeReason:l,DefaultEndOfLine:c,EditorAutoIndentStrategy:h,EditorOption:f,EndOfLinePreference:p,EndOfLineSequence:g,MinimapPosition:y,MouseTargetType:b,OverlayWidgetPositionPreference:w,OverviewRulerLane:C,RenderLineNumbersType:S,RenderMinimap:N,ScrollbarVisibility:E,ScrollType:L,TextEditorCursorBlinkingStyle:D,TextEditorCursorStyle:I,TrackedRangeStickiness:M,WrappingIndent:F,ConfigurationChangedEvent:T["a"],BareFontInfo:Ae["a"],FontInfo:Ae["b"],TextModelResolvedOptions:ve["e"],FindMatch:ve["b"],EditorType:me["a"],EditorOptions:T["e"]}}function wu(e,t){if(!t)return!1;if(!Array.isArray(t))return!1;for(var n=0,i=t;n<i.length;n++){var r=i[n];if(!e(r))return!1}return!0}function Cu(e,t){return"boolean"===typeof e?e:t}function Su(e,t){return"string"===typeof e?e:t}function Nu(e){for(var t={},n=0,i=e;n<i.length;n++){var r=i[n];t[r]=!0}return t}function Lu(e,t){void 0===t&&(t=!1),t&&(e=e.map((function(e){return e.toLowerCase()})));var n=Nu(e);return t?function(e){return void 0!==n[e.toLowerCase()]&&n.hasOwnProperty(e.toLowerCase())}:function(e){return void 0!==n[e]&&n.hasOwnProperty(e)}}function Eu(e,t){var n=0;while(t.indexOf("@")>=0&&n<5)n++,t=t.replace(/@(\w+)/g,(function(n,i){var r="";if("string"===typeof e[i])r=e[i];else{if(!(e[i]&&e[i]instanceof RegExp))throw void 0===e[i]?sn(e,"language definition does not contain attribute '"+i+"', used at: "+t):sn(e,"attribute reference '"+i+"' must be a string, used at: "+t);r=e[i].source}return tn(r)?"":"(?:"+r+")"}));return new RegExp(t,e.ignoreCase?"i":"")}function xu(e,t,n,i){if(i<0)return e;if(i<t.length)return t[i];if(i>=100){i-=100;var r=n.split(".");if(r.unshift(n),i<r.length)return r[i]}return null}function Ou(e,t,n,i){var r=-1,o=n,s=n.match(/^\$(([sS]?)(\d\d?)|#)(.*)$/);s&&(s[3]&&(r=parseInt(s[3]),s[2]&&(r+=100)),o=s[4]);var a,u="~",l=o;if(o&&0!==o.length?/^\w*$/.test(l)?u="==":(s=o.match(/^(@|!@|~|!~|==|!=)(.*)$/),s&&(u=s[1],l=s[2])):(u="!=",l=""),"~"!==u&&"!~"!==u||!/^(\w|\|)*$/.test(l))if("@"===u||"!@"===u){var c=e[l];if(!c)throw sn(e,"the @ match target '"+l+"' is not defined, in rule: "+t);if(!wu((function(e){return"string"===typeof e}),c))throw sn(e,"the @ match target '"+l+"' must be an array of strings, in rule: "+t);var d=Lu(c,e.ignoreCase);a=function(e){return"@"===u?d(e):!d(e)}}else if("~"===u||"!~"===u)if(l.indexOf("$")<0){var h=Eu(e,"^"+l+"$");a=function(e){return"~"===u?h.test(e):!h.test(e)}}else a=function(t,n,i,r){var o=Eu(e,"^"+an(e,l,n,i,r)+"$");return o.test(t)};else if(l.indexOf("$")<0){var f=nn(e,l);a=function(e){return"=="===u?e===f:e!==f}}else{var p=nn(e,l);a=function(t,n,i,r,o){var s=an(e,p,n,i,r);return"=="===u?t===s:t!==s}}else{var g=Lu(l.split("|"),e.ignoreCase);a=function(e){return"~"===u?g(e):!g(e)}}return-1===r?{name:n,value:i,test:function(e,t,n,i){return a(e,e,t,n,i)}}:{name:n,value:i,test:function(e,t,n,i){var o=xu(e,t,n,r);return a(o||"",e,t,n,i)}}}function Bu(e,t,n){if(n){if("string"===typeof n)return n;if(n.token||""===n.token){if("string"!==typeof n.token)throw sn(e,"a 'token' attribute must be of type string, in rule: "+t);var i={token:n.token};if(n.token.indexOf("$")>=0&&(i.tokenSubst=!0),"string"===typeof n.bracket)if("@open"===n.bracket)i.bracket=1;else{if("@close"!==n.bracket)throw sn(e,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+t);i.bracket=-1}if(n.next){if("string"!==typeof n.next)throw sn(e,"the next state must be a string value in rule: "+t);var r=n.next;if(!/^(@pop|@push|@popall)$/.test(r)&&("@"===r[0]&&(r=r.substr(1)),r.indexOf("$")<0&&!ln(e,an(e,r,"",[],""))))throw sn(e,"the next state '"+n.next+"' is not defined in rule: "+t);i.next=r}return"number"===typeof n.goBack&&(i.goBack=n.goBack),"string"===typeof n.switchTo&&(i.switchTo=n.switchTo),"string"===typeof n.log&&(i.log=n.log),"string"===typeof n.nextEmbedded&&(i.nextEmbedded=n.nextEmbedded,e.usesEmbedded=!0),i}if(Array.isArray(n)){for(var o=[],s=0,a=n.length;s<a;s++)o[s]=Bu(e,t,n[s]);return{group:o}}if(n.cases){var u=[];for(var l in n.cases)if(n.cases.hasOwnProperty(l)){var c=Bu(e,t,n.cases[l]);"@default"===l||"@"===l||""===l?u.push({test:void 0,value:c,name:l}):"@eos"===l?u.push({test:function(e,t,n,i){return i},value:c,name:l}):u.push(Ou(e,t,l,c))}var d=e.defaultToken;return{test:function(e,t,n,i){for(var r=0,o=u;r<o.length;r++){var s=o[r],a=!s.test||s.test(e,t,n,i);if(a)return s.value}return d}}}throw sn(e,"an action must be a string, an object with a 'token' or 'cases' attribute, or an array of actions; in rule: "+t)}return{token:""}}var ku=function(){function e(e){this.regex=new RegExp(""),this.action={token:""},this.matchOnlyAtLineStart=!1,this.name="",this.name=e}return e.prototype.setRegex=function(e,t){var n;if("string"===typeof t)n=t;else{if(!(t instanceof RegExp))throw sn(e,"rules must start with a match string or regular expression: "+this.name);n=t.source}this.matchOnlyAtLineStart=n.length>0&&"^"===n[0],this.name=this.name+": "+n,this.regex=Eu(e,"^(?:"+(this.matchOnlyAtLineStart?n.substr(1):n)+")")},e.prototype.setAction=function(e,t){this.action=Bu(e,this.name,t)},e}();function Du(e,t){if(!t||"object"!==typeof t)throw new Error("Monarch: expecting a language definition object");var n={};n.languageId=e,n.noThrow=!1,n.maxStack=100,n.start="string"===typeof t.start?t.start:null,n.ignoreCase=Cu(t.ignoreCase,!1),n.tokenPostfix=Su(t.tokenPostfix,"."+n.languageId),n.defaultToken=Su(t.defaultToken,"source"),n.usesEmbedded=!1;var i=t;function r(e,o,s){for(var a=0,u=s;a<u.length;a++){var l=u[a],c=l.include;if(c){if("string"!==typeof c)throw sn(n,"an 'include' attribute must be a string at: "+e);if("@"===c[0]&&(c=c.substr(1)),!t.tokenizer[c])throw sn(n,"include target '"+c+"' is not defined at: "+e);r(e+"."+c,o,t.tokenizer[c])}else{var d=new ku(e);if(Array.isArray(l)&&l.length>=1&&l.length<=3)if(d.setRegex(i,l[0]),l.length>=3)if("string"===typeof l[1])d.setAction(i,{token:l[1],next:l[2]});else{if("object"!==typeof l[1])throw sn(n,"a next state as the last element of a rule can only be given if the action is either an object or a string, at: "+e);var h=l[1];h.next=l[2],d.setAction(i,h)}else d.setAction(i,l[1]);else{if(!l.regex)throw sn(n,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+e);l.name&&"string"===typeof l.name&&(d.name=l.name),l.matchOnlyAtStart&&(d.matchOnlyAtLineStart=Cu(l.matchOnlyAtLineStart,!1)),d.setRegex(i,l.regex),d.setAction(i,l.action)}o.push(d)}}}if(i.languageId=e,i.ignoreCase=n.ignoreCase,i.noThrow=n.noThrow,i.usesEmbedded=n.usesEmbedded,i.stateNames=t.tokenizer,i.defaultToken=n.defaultToken,!t.tokenizer||"object"!==typeof t.tokenizer)throw sn(n,"a language definition must define the 'tokenizer' attribute as an object");for(var o in n.tokenizer=[],t.tokenizer)if(t.tokenizer.hasOwnProperty(o)){n.start||(n.start=o);var s=t.tokenizer[o];n.tokenizer[o]=new Array,r("tokenizer."+o,n.tokenizer[o],s)}if(n.usesEmbedded=i.usesEmbedded,t.brackets){if(!Array.isArray(t.brackets))throw sn(n,"the 'brackets' attribute must be defined as an array")}else t.brackets=[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}];for(var a=[],u=0,l=t.brackets;u<l.length;u++){var c=l[u],d=c;if(d&&Array.isArray(d)&&3===d.length&&(d={token:d[2],open:d[0],close:d[1]}),d.open===d.close)throw sn(n,"open and close brackets in a 'brackets' attribute must be different: "+d.open+"\n hint: use the 'bracket' attribute if matching on equal brackets is required.");if("string"!==typeof d.open||"string"!==typeof d.token||"string"!==typeof d.close)throw sn(n,"every element in the 'brackets' array must be a '{open,close,token}' object or array");a.push({token:d.token+n.tokenPostfix,open:nn(n,d.open),close:nn(n,d.close)})}return n.brackets=a,n.noThrow=!0,n}function Iu(e){ao["a"].registerLanguage(e)}function Mu(){var e=[];return e=e.concat(ao["a"].getLanguages()),e}function Fu(e){var t=ja.modeService.get().getLanguageIdentifier(e);return t?t.id:0}function Tu(e,t){var n=ja.modeService.get().onDidCreateMode((function(i){i.getId()===e&&(n.dispose(),t())}));return n}function Ru(e,t){var n=ja.modeService.get().getLanguageIdentifier(e);if(!n)throw new Error("Cannot set configuration for unknown language "+e);return Re["a"].register(n,t)}var Pu=function(){function e(e){this._actual=e}return e.prototype.getInitialState=function(){return this._actual.getInitialState()},e.prototype.tokenize=function(e,t,n){throw new Error("Not supported!")},e.prototype.tokenize2=function(e,t){var n=this._actual.tokenizeEncoded(e,t);return new W["c"](n.tokens,n.endState)},e}(),Uu=function(){function e(e,t,n){this._standaloneThemeService=e,this._languageIdentifier=t,this._actual=n}return e.prototype.getInitialState=function(){return this._actual.getInitialState()},e.prototype._toClassicTokens=function(e,t,n){for(var i=[],r=0,o=0,s=e.length;o<s;o++){var a=e[o],u=a.startIndex;0===o?u=0:u<r&&(u=r),i[o]=new W["a"](u+n,a.scopes,t),r=u}return i},e.prototype.tokenize=function(e,t,n){var i,r=this._actual.tokenize(e,t),o=this._toClassicTokens(r.tokens,this._languageIdentifier.language,n);return i=r.endState.equals(t)?t:r.endState,new W["b"](o,i)},e.prototype._toBinaryTokens=function(e,t){for(var n=this._languageIdentifier.id,i=this._standaloneThemeService.getTheme().tokenTheme,r=[],o=0,s=0,a=0,u=e.length;a<u;a++){var l=e[a],c=i.match(n,l.scopes);if(!(o>0&&r[o-1]===c)){var d=l.startIndex;0===a?d=0:d<s&&(d=s),r[o++]=d+t,r[o++]=c,s=d}}var h=new Uint32Array(o);for(a=0;a<o;a++)h[a]=r[a];return h},e.prototype.tokenize2=function(e,t,n){var i,r=this._actual.tokenize(e,t),o=this._toBinaryTokens(r.tokens,n);return i=r.endState.equals(t)?t:r.endState,new W["c"](o,i)},e}();function Hu(e){return"tokenizeEncoded"in e}function ju(e){return e&&"function"===typeof e.then}function Qu(e,t){var n=ja.modeService.get().getLanguageIdentifier(e);if(!n)throw new Error("Cannot set tokens provider for unknown language "+e);var i=function(e){return Hu(e)?new Pu(e):new Uu(ja.standaloneThemeService.get(),n,e)};return ju(t)?_e["y"].registerPromise(e,t.then((function(e){return i(e)}))):_e["y"].register(e,i(t))}function Vu(e,t){var n=function(t){return yn(ja.modeService.get(),ja.standaloneThemeService.get(),e,Du(e,t))};return ju(t)?_e["y"].registerPromise(e,t.then((function(e){return n(e)}))):_e["y"].register(e,n(t))}function Wu(e,t){return _e["t"].register(e,t)}function zu(e,t){return _e["u"].register(e,t)}function Ku(e,t){return _e["w"].register(e,t)}function qu(e,t){return _e["o"].register(e,{provideHover:function(e,n,i){var r=e.getWordAtPosition(n);return Promise.resolve(t.provideHover(e,n,i)).then((function(e){if(e)return!e.range&&r&&(e.range=new Q["a"](n.lineNumber,r.startColumn,n.lineNumber,r.endColumn)),e.range||(e.range=new Q["a"](n.lineNumber,n.column,n.lineNumber,n.column)),e}))}})}function Gu(e,t){return _e["l"].register(e,t)}function Xu(e,t){return _e["h"].register(e,t)}function Yu(e,t){return _e["f"].register(e,t)}function Ju(e,t){return _e["p"].register(e,t)}function Zu(e,t){return _e["z"].register(e,t)}function $u(e,t){return _e["b"].register(e,t)}function el(e,t){return _e["a"].register(e,{provideCodeActions:function(e,n,i,r){var o=ja.markerService.get().read({resource:e.uri}).filter((function(e){return Q["a"].areIntersectingOrTouching(e,n)}));return t.provideCodeActions(e,n,{markers:o,only:i.only},r)}})}function tl(e,t){return _e["g"].register(e,t)}function nl(e,t){return _e["i"].register(e,t)}function il(e,t){return _e["s"].register(e,t)}function rl(e,t){return _e["r"].register(e,t)}function ol(e,t){return _e["d"].register(e,t)}function sl(e,t){return _e["c"].register(e,t)}function al(e,t){return _e["n"].register(e,t)}function ul(e,t){return _e["e"].register(e,t)}function ll(e,t){return _e["v"].register(e,t)}function cl(e,t){return _e["k"].register(e,t)}function dl(e,t){return _e["j"].register(e,t)}function hl(){return{register:Iu,getLanguages:Mu,onLanguage:Tu,getEncodedLanguageId:Fu,setLanguageConfiguration:Ru,setTokensProvider:Qu,setMonarchTokensProvider:Vu,registerReferenceProvider:Wu,registerRenameProvider:zu,registerCompletionItemProvider:ol,registerSignatureHelpProvider:Ku,registerHoverProvider:qu,registerDocumentSymbolProvider:Gu,registerDocumentHighlightProvider:Xu,registerDefinitionProvider:Yu,registerImplementationProvider:Ju,registerTypeDefinitionProvider:Zu,registerCodeLensProvider:$u,registerCodeActionProvider:el,registerDocumentFormattingEditProvider:tl,registerDocumentRangeFormattingEditProvider:nl,registerOnTypeFormattingEditProvider:il,registerLinkProvider:rl,registerColorProvider:sl,registerFoldingRangeProvider:al,registerDeclarationProvider:ul,registerSelectionRangeProvider:ll,registerDocumentSemanticTokensProvider:cl,registerDocumentRangeSemanticTokensProvider:dl,DocumentHighlightKind:d,CompletionItemKind:o,CompletionItemTag:s,CompletionItemInsertTextRule:r,SymbolKind:B,SymbolTag:k,IndentAction:A,CompletionTriggerKind:a,SignatureHelpTriggerKind:O,FoldingRangeKind:_e["m"]}}var fl=self;T["e"].wrappingIndent.defaultValue=0,T["e"].glyphMargin.defaultValue=!1,T["e"].autoIndent.defaultValue=3,T["e"].overviewRulerLanes.defaultValue=2;var pl=K();pl.editor=bu(),pl.languages=hl();var gl=pl.CancellationTokenSource,Al=pl.Emitter,ml=pl.KeyCode,vl=pl.KeyMod,_l=pl.Position,yl=pl.Range,bl=pl.Selection,wl=pl.SelectionDirection,Cl=pl.MarkerSeverity,Sl=pl.MarkerTag,Nl=pl.Uri,Ll=pl.Token,El=pl.editor,xl=pl.languages;fl.monaco=pl,"undefined"!==typeof fl.require&&"function"===typeof fl.require.config&&fl.require.config({ignoreDuplicateModules:["vscode-languageserver-types","vscode-languageserver-types/main","vscode-nls","vscode-nls/vscode-nls","jsonc-parser","jsonc-parser/main","vscode-uri","vscode-uri/index","vs/basic-languages/typescript/typescript"]})},"9B1q":function(e,t,n){"use strict";n.r(t);var i=n("+hIS");Object(i["a"])({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:function(){return n.e(150).then(n.bind(null,"v7Iz"))}})},"9Bee":function(e,t,n){"use strict";var i=n("q1tI"),r=n.n(i),o=(n("vg9a"),n("tJVT")),s=n("DlQD"),a=n.n(s),u=n("rUJ1");function l(e,t){var n=e.match(/^(\s+)(?:```)/);if(null===n)return t;var i=n[1];return t.split("\n").map(e=>{var t=e.match(/^\s+/);if(null===t)return e;var n=Object(o["a"])(t,1),r=n[0];return r.length>=i.length?e.slice(i.length):e}).join("\n")}var c=[],d=["<ul>"],h=new a.a.Renderer,f=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function p(){c.length=0,d=["<ul>"]}function g(e,t,n,i){if(t>=e.length||e[t].level<=n)return t;var r=e[t];i.push("<li><a href='#"+r.anchor+"'>"+r.text+"</a>"),t++;var o=[];return t=g(e,t,r.level,o),o.length>0&&(i.push("<ul>"),o.forEach((function(e){i.push(e)})),i.push("</ul>")),i.push("</li>"),t=g(e,t,n,i),t}function A(){return g(c,0,0,d),d.push("</ul>"),d.join("")}var m={heading(e){var t=f.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[1].length,text:t[2]}},fences(e){var t=this.rules.block.fences.exec(e);if(t){var n=t[0],i=l(n,t[3]||""),r=t[2]?t[2].trim():t[2];if(["latex","katex","math"].indexOf(r)>=0){var o=y(),s=i;i=o,b[o]={type:"block",expression:s}}return{type:"code",raw:n,lang:r,text:i}}}},v=/(?:\${2})([^\n`]+?)(?:\${2})/gi,_=0,y=()=>"__special_katext_id_".concat(_++,"__"),b={};function w(){return b}function C(){_=0,b={}}function S(e){return e=e.replace(v,(e,t)=>{var n=y();return b[n]={type:"inline",expression:t},n}),e}var N=h.listitem;h.listitem=function(e){return N(S(e))};var L=h.paragraph;h.paragraph=function(e){return L(S(e))};var E=h.tablecell;h.tablecell=function(e,t){return E(S(e),t)},h.code=function(e,t,n){var i=(t||"").match(/\S*/)[0];return i?["latex","katex","math"].indexOf(i)>=0?"<p class='editormd-tex'>".concat(e,"</p>"):'<pre class="prettyprint linenums"><code class="language-'.concat(t,'">').concat(n?e:Object(u["escape"])(e,!0),"</code></pre>\n"):'<pre class="prettyprint linenums"><code>'+(n?e:Object(u["escape"])(e,!0))+"</code></pre>"},h.heading=function(e,t,n){var i=this.options.headerPrefix+n.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return c.push({anchor:i,level:t,text:e}),"<h"+t+' id="'+i+'">'+e+"</h"+t+">"},a.a.setOptions({silent:!0,smartypants:!0,gfm:!0,pedantic:!1}),a.a.use({tokenizer:m,renderer:h});var x=a.a,O=(n("SJMd"),n("Oy/b")),B=/<pre[^>]*>/g;function k(e){var t=document.createElement("div");return t.innerHTML=e,0===t.childNodes.length?"":t.childNodes[0].nodeValue}t["a"]=e=>{var t=e.value,n=void 0===t?"":t,o=e.className,s=e.style,a=void 0===s?{}:s,u=String(n),l=Object(i["useMemo"])(()=>{var e=x(u),t=w();return u.match(/\[TOC\]/)&&(e=e.replace("<p>[TOC]</p>",A()),p()),e=e.replace(/(__special_katext_id_\d+__)/g,(e,n)=>{var i=t[n],r=i.type,o=i.expression;return Object(O["renderToString"])(k(o),{displayMode:"block"===r,throwOnError:!1,output:"html"})}),e=e.replace(/\u2581/g,"\u2581\u2581\u2581"),C(),e},[u]),c=Object(i["useRef"])();function d(e){var t=e.target;if("A"===t.tagName.toUpperCase()){var n=t.getAttribute("href");if(n.startsWith("#")){e.preventDefault();var i=document.getElementById(n.replace("#",""));i&&(i.parentNode.scrollTop=i.offsetTop)}}}return Object(i["useEffect"])(()=>{if(c.current&&l&&l.match(B)&&window.PR.prettyPrint(),c.current)return c.current.addEventListener("click",d),()=>{c.current.removeEventListener("click",d),C(),p()}},[l,c.current,d]),r.a.createElement("div",{ref:c,style:a,className:"".concat(o||""," markdown-body"),dangerouslySetInnerHTML:{__html:l}})}},"9XAT":function(e,t,n){"use strict";n.r(t),n.d(t,"LanguageServiceDefaultsImpl",(function(){return r}));n("M/lh");var i=monaco.Emitter,r=function(){function e(e,t,n){this._onDidChange=new i,this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(n)}return Object.defineProperty(e.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"modeConfiguration",{get:function(){return this._modeConfiguration},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"diagnosticsOptions",{get:function(){return this._diagnosticsOptions},enumerable:!0,configurable:!0}),e.prototype.setDiagnosticsOptions=function(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)},e.prototype.setModeConfiguration=function(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)},e}(),o={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"}},s={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},a=new r("css",o,s),u=new r("scss",o,s),l=new r("less",o,s);function c(){return{cssDefaults:a,lessDefaults:l,scssDefaults:u}}function d(){return n.e(138).then(n.bind(null,"20/g"))}monaco.languages.css=c(),monaco.languages.onLanguage("less",(function(){d().then((function(e){return e.setupMode(l)}))})),monaco.languages.onLanguage("scss",(function(){d().then((function(e){return e.setupMode(u)}))})),monaco.languages.onLanguage("css",(function(){d().then((function(e){return e.setupMode(a)}))}))},"9XeP":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("Cg/j"),r=Object(i["c"])("clipboardService")},"9Y+e":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var i=function(){function e(e,t,n,i,r,o){this.id=e,this.label=t,this.alias=n,this._precondition=i,this._run=r,this._contextKeyService=o}return e.prototype.isSupported=function(){return this._contextKeyService.contextMatchesRules(this._precondition)},e.prototype.run=function(){if(!this.isSupported())return Promise.resolve(void 0);var e=this._run();return e||Promise.resolve(void 0)},e}()},"9fML":function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return s}));var i=n("r0BQ"),r=[];function o(e,t,n){r.push([e,new i["a"](t,[],n)])}function s(){return r}},"A+jI":function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return c}));var i,r=n("Cg/j"),o=n("MI8n"),s=n("pmY6"),a=n("746U"),u=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),l=Object(r["c"])("storageService");(function(e){e[e["NONE"]=0]="NONE",e[e["SHUTDOWN"]=1]="SHUTDOWN"})(i||(i={}));var c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onDidChangeStorage=t._register(new o["a"]),t.onDidChangeStorage=t._onDidChangeStorage.event,t._onWillSaveState=t._register(new o["a"]),t.onWillSaveState=t._onWillSaveState.event,t.globalCache=new Map,t.workspaceCache=new Map,t}return u(t,e),t.prototype.getCache=function(e){return 0===e?this.globalCache:this.workspaceCache},t.prototype.get=function(e,t,n){var i=this.getCache(t).get(e);return Object(a["l"])(i)?n:i},t.prototype.getBoolean=function(e,t,n){var i=this.getCache(t).get(e);return Object(a["l"])(i)?n:"true"===i},t.prototype.store=function(e,t,n){if(Object(a["l"])(t))return this.remove(e,n);var i=String(t),r=this.getCache(n).get(e);return r===i||(this.getCache(n).set(e,i),this._onDidChangeStorage.fire({scope:n,key:e})),Promise.resolve()},t.prototype.remove=function(e,t){var n=this.getCache(t).delete(e);return n?(this._onDidChangeStorage.fire({scope:t,key:e}),Promise.resolve()):Promise.resolve()},t}(s["a"])},AKMP:function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return d}));var i=n("EffR"),r=n("MNsG"),o=n("D3Dy"),s=n("51f4"),a=n("XSiN"),u=n("pmY6"),l=n("CjF5");function c(e,t){var n=new a["a"](t);return n.preventDefault(),{leftButton:n.leftButton,buttons:n.buttons,posx:n.posx,posy:n.posy}}var d=function(){function e(){this._hooks=new u["b"],this._mouseMoveEventMerger=null,this._mouseMoveCallback=null,this._onStopCallback=null}return e.prototype.dispose=function(){this.stopMonitoring(!1),this._hooks.dispose()},e.prototype.stopMonitoring=function(e){if(this.isMonitoring()){this._hooks.clear(),this._mouseMoveEventMerger=null,this._mouseMoveCallback=null;var t=this._onStopCallback;this._onStopCallback=null,e&&t&&t()}},e.prototype.isMonitoring=function(){return!!this._mouseMoveEventMerger},e.prototype.startMonitoring=function(e,t,n,u,c){var d=this;if(!this.isMonitoring()){this._mouseMoveEventMerger=n,this._mouseMoveCallback=u,this._onStopCallback=c;var h=s["a"].getSameOriginWindowChain(),f=r["c"]&&l["a"].pointerEvents?"pointermove":"mousemove",p=r["c"]&&l["a"].pointerEvents?"pointerup":"mouseup",g=h.map((function(e){return e.window.document})),A=i["D"](e);A&&g.unshift(A);for(var m=0,v=g;m<v.length;m++){var _=v[m];this._hooks.add(i["l"](_,f,(function(e){o["i"]||e.buttons===t?d._mouseMoveCallback(e):d.stopMonitoring(!0)}),(function(e,t){return d._mouseMoveEventMerger(e,t)}))),this._hooks.add(i["i"](_,p,(function(e){return d.stopMonitoring(!0)})))}if(s["a"].hasDifferentOriginAncestor()){var y=h[h.length-1];this._hooks.add(i["i"](y.window.document,"mouseout",(function(e){var t=new a["a"](e);"html"===t.target.tagName.toLowerCase()&&d.stopMonitoring(!0)}))),this._hooks.add(i["i"](y.window.document,"mouseover",(function(e){var t=new a["a"](e);"html"===t.target.tagName.toLowerCase()&&d.stopMonitoring(!0)}))),this._hooks.add(i["i"](y.window.document.body,"mouseleave",(function(e){d.stopMonitoring(!0)})))}}},e}()},AbCa:function(e,t,n){},ApJL:function(e,t,n){"use strict";n.r(t);var i=n("+hIS");Object(i["a"])({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:function(){return n.e(146).then(n.bind(null,"AoeA"))}})},BEdG:function(e,t,n){"use strict";n.r(t);var i=n("+hIS");Object(i["a"])({id:"xml",extensions:[".xml",".dtd",".ascx",".csproj",".config",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xsl"],firstLine:"(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)",aliases:["XML","xml"],mimetypes:["text/xml","application/xml","application/xaml+xml","application/xml-dtd"],loader:function(){return n.e(197).then(n.bind(null,"aH2L"))}})},BFtn:function(e,t,n){"use strict";function i(e,t){var n=e.getCount(),i=e.findTokenIndexAtOffset(t),o=e.getLanguageId(i),s=i;while(s+1<n&&e.getLanguageId(s+1)===o)s++;var a=i;while(a>0&&e.getLanguageId(a-1)===o)a--;return new r(e,o,a,s+1,e.getStartOffset(a),e.getEndOffset(s))}n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var r=function(){function e(e,t,n,i,r,o){this._actual=e,this.languageId=t,this._firstTokenIndex=n,this._lastTokenIndex=i,this.firstCharOffset=r,this._lastCharOffset=o}return e.prototype.getLineContent=function(){var e=this._actual.getLineContent();return e.substring(this.firstCharOffset,this._lastCharOffset)},e.prototype.getActualLineContentBefore=function(e){var t=this._actual.getLineContent();return t.substring(0,this.firstCharOffset+e)},e.prototype.getTokenCount=function(){return this._lastTokenIndex-this._firstTokenIndex},e.prototype.findTokenIndexAtOffset=function(e){return this._actual.findTokenIndexAtOffset(e+this.firstCharOffset)-this._firstTokenIndex},e.prototype.getStandardTokenType=function(e){return this._actual.getStandardTokenType(e+this._firstTokenIndex)},e}();function o(e){return 0!==(7&e)}},BUKB:function(e,t,n){"use strict";n.r(t);var i=n("+hIS");Object(i["a"])({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:function(){return n.e(193).then(n.bind(null,"xT+r"))}})},"C/vA":function(e,t,n){"use strict";function i(e){var t,n=this,i=!1;return function(){return i||(i=!0,t=e.apply(n,arguments)),t}}n.d(t,"a",(function(){return i}))},C6rC:function(e,t,n){},CClx:function(e,t,n){},CHaL:function(e,t,n){},CRAX:function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return y}));var i=n("3/fG"),r=n("MI8n"),o=n("ic2d"),s=n("746U"),a=n("3Rsk"),u=n("QDVR"),l={Configuration:"base.contributions.configuration"},c={properties:{},patternProperties:{}},d={properties:{},patternProperties:{}},h={properties:{},patternProperties:{}},f={properties:{},patternProperties:{}},p={properties:{},patternProperties:{}},g={properties:{},patternProperties:{}},A="vscode://schemas/settings/resourceLanguage",m=o["a"].as(a["a"].JSONContribution),v=function(){function e(){this.overrideIdentifiers=new Set,this._onDidSchemaChange=new r["a"],this._onDidUpdateConfiguration=new r["a"],this.defaultOverridesConfigurationNode={id:"defaultOverrides",title:i["a"]("defaultConfigurations.title","Default Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultOverridesConfigurationNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!1,errorMessage:"Unknown editor configuration setting",allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.excludedConfigurationProperties={},m.registerSchema(A,this.resourceLanguageSettingsSchema)}return e.prototype.registerConfiguration=function(e,t){void 0===t&&(t=!0),this.registerConfigurations([e],t)},e.prototype.registerConfigurations=function(e,t){var n=this;void 0===t&&(t=!0);var i=[];e.forEach((function(e){i.push.apply(i,n.validateAndRegisterProperties(e,t)),n.configurationContributors.push(e),n.registerJSONConfiguration(e)})),m.registerSchema(A,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire(i)},e.prototype.registerOverrideIdentifiers=function(e){for(var t=0,n=e;t<n.length;t++){var i=n[t];this.overrideIdentifiers.add(i)}this.updateOverridePropertyPatternKey()},e.prototype.validateAndRegisterProperties=function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n=3),n=s["l"](e.scope)?n:e.scope;var i=[],r=e.properties;if(r)for(var o in r)if(t&&C(o))delete r[o];else{var a=r[o],u=a.default;s["k"](u)&&(a.default=b(a.type)),y.test(o)?a.scope=void 0:a.scope=s["l"](a.scope)?n:a.scope,!r[o].hasOwnProperty("included")||r[o].included?(this.configurationProperties[o]=r[o],i.push(o)):(this.excludedConfigurationProperties[o]=r[o],delete r[o])}var l=e.allOf;if(l)for(var c=0,d=l;c<d.length;c++){var h=d[c];i.push.apply(i,this.validateAndRegisterProperties(h,t,n))}return i},e.prototype.getConfigurationProperties=function(){return this.configurationProperties},e.prototype.registerJSONConfiguration=function(e){var t=this,n=function(e){var i=e.properties;if(i)for(var r in i)switch(c.properties[r]=i[r],i[r].scope){case 1:d.properties[r]=i[r];break;case 2:h.properties[r]=i[r];break;case 6:f.properties[r]=i[r];break;case 3:p.properties[r]=i[r];break;case 4:g.properties[r]=i[r];break;case 5:g.properties[r]=i[r],t.resourceLanguageSettingsSchema.properties[r]=i[r];break}var o=e.allOf;o&&o.forEach(n)};n(e)},e.prototype.updateOverridePropertyPatternKey=function(){for(var e,t=0,n=Object(u["e"])(this.overrideIdentifiers);t<n.length;t++){var r=n[t],o="["+r+"]",s={type:"object",description:i["a"]("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:i["a"]("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:A,default:null===(e=this.defaultOverridesConfigurationNode.properties[o])||void 0===e?void 0:e.default};c.properties[o]=s,d.properties[o]=s,h.properties[o]=s,f.properties[o]=s,p.properties[o]=s,g.properties[o]=s}this._onDidSchemaChange.fire()},e}(),_="\\[.*\\]$",y=new RegExp(_);function b(e){var t=Array.isArray(e)?e[0]:e;switch(t){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}var w=new v;function C(e){return y.test(e)?i["a"]("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",e):void 0!==w.getConfigurationProperties()[e]?i["a"]("config.property.duplicate","Cannot register '{0}'. This property is already registered.",e):null}o["a"].add(l.Configuration,w)},CTES:function(e,t,n){"use strict";var i=n("q1tI"),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M688 264c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48zm-8 136H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM480 544H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-48 308H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm356.8-74.4c29-26.3 47.2-64.3 47.2-106.6 0-79.5-64.5-144-144-144s-144 64.5-144 144c0 42.3 18.2 80.3 47.2 106.6-57 32.5-96.2 92.7-99.2 162.1-.2 4.5 3.5 8.3 8 8.3h48.1c4.2 0 7.7-3.3 8-7.6C564 871.2 621.7 816 692 816s128 55.2 131.9 124.4c.2 4.2 3.7 7.6 8 7.6H880c4.6 0 8.2-3.8 8-8.3-2.9-69.5-42.2-129.6-99.2-162.1zM692 591c44.2 0 80 35.8 80 80s-35.8 80-80 80-80-35.8-80-80 35.8-80 80-80z"}}]},name:"solution",theme:"outlined"},o=r,s=n("6VBw"),a=function(e,t){return i["createElement"](s["a"],Object.assign({},e,{ref:t,icon:o}))};a.displayName="SolutionOutlined";t["a"]=i["forwardRef"](a)},CZ1j:function(e,t,n){"use strict";function i(e){return e<0?0:e>255?255:0|e}function r(e){return e<0?0:e>4294967295?4294967295:0|e}n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return r}))},CdFp:function(e,t,n){"use strict";n.r(t);var i=n("+hIS");Object(i["a"])({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:function(){return n.e(141).then(n.bind(null,"6Xso"))}})},"Cg/j":function(e,t,n){"use strict";var i;n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return a})),function(e){function t(t){return t[e.DI_DEPENDENCIES]||[]}e.serviceIds=new Map,e.DI_TARGET="$di$target",e.DI_DEPENDENCIES="$di$dependencies",e.getServiceDependencies=t}(i||(i={}));var r=s("instantiationService");function o(e,t,n,r){t[i.DI_TARGET]===t?t[i.DI_DEPENDENCIES].push({id:e,index:n,optional:r}):(t[i.DI_DEPENDENCIES]=[{id:e,index:n,optional:r}],t[i.DI_TARGET]=t)}function s(e){if(i.serviceIds.has(e))return i.serviceIds.get(e);var t=function(e,n,i){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");o(t,e,i,!1)};return t.toString=function(){return e},i.serviceIds.set(e,t),t}function a(e){return function(t,n,i){if(3!==arguments.length)throw new Error("@optional-decorator can only be used to decorate a parameter");o(e,t,i,!0)}}},CjF5:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n("D3Dy"),r=n("MNsG"),o={clipboard:{writeText:r["f"]||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:r["f"]||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText),richText:function(){if(i["i"])return!1;if(i["e"]){var e=navigator.userAgent.indexOf("Edge/"),t=parseInt(navigator.userAgent.substring(e+5,navigator.userAgent.indexOf(".",e)),10);if(!t||t>=12&&t<=16)return!1}return!0}()},keyboard:function(){return r["f"]||i["l"]?0:navigator.keyboard||i["k"]?1:2}(),touch:"ontouchstart"in window||navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints>0,pointerEvents:window.PointerEvent&&("ontouchstart"in window||window.navigator.maxTouchPoints>0||navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints>0)}},CjOT:function(e,t,n){},Comh:function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return a}));var i=n("N0LK"),r=n("cGHE"),o=n("aokT"),s=function(){function e(e,t,n,i,r){this.value=e,this.selectionStart=t,this.selectionEnd=n,this.selectionStartPosition=i,this.selectionEndPosition=r}return e.prototype.toString=function(){return"[ <"+this.value+">, selectionStart: "+this.selectionStart+", selectionEnd: "+this.selectionEnd+"]"},e.readFromTextArea=function(t){return new e(t.getValue(),t.getSelectionStart(),t.getSelectionEnd(),null,null)},e.prototype.collapseSelection=function(){return new e(this.value,this.value.length,this.value.length,null,null)},e.prototype.writeToTextArea=function(e,t,n){t.setValue(e,this.value),n&&t.setSelectionRange(e,this.selectionStart,this.selectionEnd)},e.prototype.deduceEditorPosition=function(e){if(e<=this.selectionStart){var t=this.value.substring(e,this.selectionStart);return this._finishDeduceEditorPosition(this.selectionStartPosition,t,-1)}if(e>=this.selectionEnd){t=this.value.substring(this.selectionEnd,e);return this._finishDeduceEditorPosition(this.selectionEndPosition,t,1)}var n=this.value.substring(this.selectionStart,e);if(-1===n.indexOf(String.fromCharCode(8230)))return this._finishDeduceEditorPosition(this.selectionStartPosition,n,1);var i=this.value.substring(e,this.selectionEnd);return this._finishDeduceEditorPosition(this.selectionEndPosition,i,-1)},e.prototype._finishDeduceEditorPosition=function(e,t,n){var i=0,r=-1;while(-1!==(r=t.indexOf("\n",r+1)))i++;return[e,n*t.length,i]},e.selectedText=function(t){return new e(t,0,t.length,null,null)},e.deduceInput=function(e,t,n){if(!e)return{text:"",replaceCharCnt:0};var r=e.value,o=e.selectionStart,s=e.selectionEnd,a=t.value,u=t.selectionStart,l=t.selectionEnd,c=r.substring(s),d=a.substring(l),h=i["d"](c,d);a=a.substring(0,a.length-h),r=r.substring(0,r.length-h);var f=r.substring(0,o),p=a.substring(0,u),g=i["c"](f,p);if(a=a.substring(g),r=r.substring(g),u-=g,o-=g,l-=g,s-=g,n&&u===l&&r.length>0){var A=null;if(u===a.length?i["M"](a,r)&&(A=a.substring(r.length)):i["m"](a,r)&&(A=a.substring(0,a.length-r.length)),null!==A&&A.length>0&&(/\uFE0F/.test(A)||i["g"](A)))return{text:A,replaceCharCnt:0}}if(u===l){if(r===a&&0===o&&s===r.length&&u===a.length&&-1===a.indexOf("\n")&&i["h"](a))return{text:"",replaceCharCnt:0};var m=f.length-g;return{text:a,replaceCharCnt:m}}var v=s-o;return{text:a,replaceCharCnt:v}},e.EMPTY=new e("",0,0,null,null),e}(),a=function(){function e(){}return e._getPageOfLine=function(e,t){return Math.floor((e-1)/t)},e._getRangeForPage=function(e,t){var n=e*t,i=n+1,r=n+t;return new o["a"](i,1,r+1,1)},e.fromEditorSelection=function(t,n,i,a,u){var l,c=e._getPageOfLine(i.startLineNumber,a),d=e._getRangeForPage(c,a),h=e._getPageOfLine(i.endLineNumber,a),f=e._getRangeForPage(h,a),p=d.intersectRanges(new o["a"](1,1,i.startLineNumber,i.startColumn)),g=n.getValueInRange(p,1),A=n.getLineCount(),m=n.getLineMaxColumn(A),v=f.intersectRanges(new o["a"](i.endLineNumber,i.endColumn,A,m)),_=n.getValueInRange(v,1);if(c===h||c+1===h)l=n.getValueInRange(i,1);else{var y=d.intersectRanges(i),b=f.intersectRanges(i);l=n.getValueInRange(y,1)+String.fromCharCode(8230)+n.getValueInRange(b,1)}if(u){var w=500;g.length>w&&(g=g.substring(g.length-w,g.length)),_.length>w&&(_=_.substring(0,w)),l.length>2*w&&(l=l.substring(0,w)+String.fromCharCode(8230)+l.substring(l.length-w,l.length))}return new s(g+l+_,g.length,g.length+l.length,new r["a"](i.startLineNumber,i.startColumn),new r["a"](i.endLineNumber,i.endColumn))},e}()},D3Dy:function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return s})),n.d(t,"o",(function(){return a})),n.d(t,"a",(function(){return u})),n.d(t,"i",(function(){return c})),n.d(t,"e",(function(){return d})),n.d(t,"f",(function(){return h})),n.d(t,"h",(function(){return f})),n.d(t,"m",(function(){return p})),n.d(t,"d",(function(){return g})),n.d(t,"k",(function(){return A})),n.d(t,"n",(function(){return m})),n.d(t,"j",(function(){return v})),n.d(t,"g",(function(){return _})),n.d(t,"l",(function(){return y}));var i=n("MI8n"),r=function(){function e(){this._zoomLevel=0,this._lastZoomLevelChangeTime=0,this._onDidChangeZoomLevel=new i["a"],this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event}return e.prototype.getZoomLevel=function(){return this._zoomLevel},e.prototype.getTimeSinceLastZoomLevelChanged=function(){return Date.now()-this._lastZoomLevelChangeTime},e.prototype.getPixelRatio=function(){var e=document.createElement("canvas").getContext("2d"),t=window.devicePixelRatio||1,n=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return t/n},e.INSTANCE=new e,e}();function o(){return r.INSTANCE.getZoomLevel()}function s(){return r.INSTANCE.getTimeSinceLastZoomLevelChanged()}function a(e){return r.INSTANCE.onDidChangeZoomLevel(e)}function u(){return r.INSTANCE.getPixelRatio()}var l=navigator.userAgent,c=l.indexOf("Trident")>=0,d=l.indexOf("Edge/")>=0,h=c||d,f=l.indexOf("Firefox")>=0,p=l.indexOf("AppleWebKit")>=0,g=l.indexOf("Chrome")>=0,A=!g&&l.indexOf("Safari")>=0,m=!g&&!A&&p,v=l.indexOf("iPad")>=0||A&&navigator.maxTouchPoints>0,_=d&&l.indexOf("WebView/")>=0,y=window.matchMedia&&window.matchMedia("(display-mode: standalone)").matches},DTDp:function(e,t,n){},Dvnd:function(e,t,n){"use strict";n.r(t);var i=n("+hIS");Object(i["a"])({id:"kotlin",extensions:[".kt"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:function(){return n.e(159).then(n.bind(null,"y0OK"))}})},"E+ie":function(e,t,n){"use strict";n.r(t);var i=n("+hIS");Object(i["a"])({id:"csp",extensions:[],aliases:["CSP","csp"],loader:function(){return n.e(149).then(n.bind(null,"p+q7"))}})},E4kL:function(e,t,n){"use strict";n.r(t);var i=n("+hIS");Object(i["a"])({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml"],loader:function(){return n.e(198).then(n.bind(null,"EaLm"))}})},EIAu:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return v}));var i=n("N0LK"),r=n("aokT"),o=function(){function e(t,n,i,r,o,s){this.languageIdentifier=t,this.index=n,this.open=i,this.close=r,this.forwardRegex=o,this.reversedRegex=s,this._openSet=e._toSet(this.open),this._closeSet=e._toSet(this.close)}return e.prototype.isOpen=function(e){return this._openSet.has(e)},e.prototype.isClose=function(e){return this._closeSet.has(e)},e._toSet=function(e){for(var t=new Set,n=0,i=e;n<i.length;n++){var r=i[n];t.add(r)}return t},e}();function s(e){var t=e.length;e=e.map((function(e){return[e[0].toLowerCase(),e[1].toLowerCase()]}));for(var n=[],i=0;i<t;i++)n[i]=i;var r=function(e,t){var n=e[0],i=e[1],r=t[0],o=t[1];return n===r||n===o||i===r||i===o},o=function(e,i){for(var r=Math.min(e,i),o=Math.max(e,i),s=0;s<t;s++)n[s]===o&&(n[s]=r)};for(i=0;i<t;i++)for(var s=e[i],a=i+1;a<t;a++){var u=e[a];r(s,u)&&o(n[i],n[a])}for(var l=[],c=0;c<t;c++){var d=[],h=[];for(i=0;i<t;i++)if(n[i]===c){var f=e[i],p=f[0],g=f[1];d.push(p),h.push(g)}d.length>0&&l.push({open:d,close:h})}return l}var a=function(){function e(e,t){var n=s(t);this.brackets=n.map((function(t,i){return new o(e,i,t.open,t.close,d(t.open,t.close,n,i),h(t.open,t.close,n,i))})),this.forwardRegex=f(this.brackets),this.reversedRegex=p(this.brackets),this.textIsBracket={},this.textIsOpenBracket={},this.maxBracketLength=0;for(var i=0,r=this.brackets;i<r.length;i++){for(var a=r[i],u=0,l=a.open;u<l.length;u++){var c=l[u];this.textIsBracket[c]=a,this.textIsOpenBracket[c]=!0,this.maxBracketLength=Math.max(this.maxBracketLength,c.length)}for(var g=0,A=a.close;g<A.length;g++){var m=A[g];this.textIsBracket[m]=a,this.textIsOpenBracket[m]=!1,this.maxBracketLength=Math.max(this.maxBracketLength,m.length)}}}return e}();function u(e,t,n,i){for(var r=0,o=t.length;r<o;r++)if(r!==n){for(var s=t[r],a=0,u=s.open;a<u.length;a++){var l=u[a];l.indexOf(e)>=0&&i.push(l)}for(var c=0,d=s.close;c<d.length;c++){var h=d[c];h.indexOf(e)>=0&&i.push(h)}}}function l(e,t){return e.length-t.length}function c(e){if(e.length<=1)return e;for(var t=[],n=new Set,i=0,r=e;i<r.length;i++){var o=r[i];n.has(o)||(t.push(o),n.add(o))}return t}function d(e,t,n,i){var r=[];r=r.concat(e),r=r.concat(t);for(var o=0,s=r.length;o<s;o++)u(r[o],n,i,r);return r=c(r),r.sort(l),r.reverse(),A(r)}function h(e,t,n,i){var r=[];r=r.concat(e),r=r.concat(t);for(var o=0,s=r.length;o<s;o++)u(r[o],n,i,r);return r=c(r),r.sort(l),r.reverse(),A(r.map(m))}function f(e){for(var t=[],n=0,i=e;n<i.length;n++){for(var r=i[n],o=0,s=r.open;o<s.length;o++){var a=s[o];t.push(a)}for(var u=0,l=r.close;u<l.length;u++){var d=l[u];t.push(d)}}return t=c(t),A(t)}function p(e){for(var t=[],n=0,i=e;n<i.length;n++){for(var r=i[n],o=0,s=r.open;o<s.length;o++){var a=s[o];t.push(a)}for(var u=0,l=r.close;u<l.length;u++){var d=l[u];t.push(d)}}return t=c(t),A(t.map(m))}function g(e){var t=/^[\w ]+$/.test(e);return e=i["p"](e),t?"\\b"+e+"\\b":e}function A(e){var t="("+e.map(g).join(")|(")+")";return i["l"](t,!0)}var m=function(){function e(e){for(var t="",n=e.length-1;n>=0;n--)t+=e.charAt(n);return t}var t=null,n=null;return function(i){return t!==i&&(t=i,n=e(t)),n}}(),v=function(){function e(){}return e._findPrevBracketInText=function(e,t,n,i){var o=n.match(e);if(!o)return null;var s=n.length-(o.index||0),a=o[0].length,u=i+s;return new r["a"](t,u-a+1,t,u+1)},e.findPrevBracketInRange=function(e,t,n,i,r){var o=m(n),s=o.substring(n.length-r,n.length-i);return this._findPrevBracketInText(e,t,s,i)},e.findNextBracketInText=function(e,t,n,i){var o=n.match(e);if(!o)return null;var s=o.index||0,a=o[0].length;if(0===a)return null;var u=i+s;return new r["a"](t,u+1,t,u+1+a)},e.findNextBracketInRange=function(e,t,n,i,r){var o=n.substring(i,r);return this.findNextBracketInText(e,t,o,i)},e}()},EOst:function(e,t,n){"use strict";n.r(t);var i=n("+hIS");Object(i["a"])({id:"typescript",extensions:[".ts",".tsx"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:function(){return n.e(195).then(n.bind(null,"87dK"))}})},"EPS+":function(e,t,n){},EWX2:function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return c}));var i,r,o=n("bY76"),s=n("gslv"),a=n("Cg/j"),u=n("QDVR"),l=Object(a["c"])("contextService");(function(e){function t(e){return e&&"object"===typeof e&&"string"===typeof e.id&&Array.isArray(e.folders)}e.isIWorkspace=t})(i||(i={})),function(e){function t(e){return e&&"object"===typeof e&&o["a"].isUri(e.uri)&&"string"===typeof e.name&&"function"===typeof e.toResource}e.isIWorkspaceFolder=t}(r||(r={}));(function(){function e(e,t,n){void 0===t&&(t=[]),void 0===n&&(n=null),this._id=e,this._configuration=n,this._foldersMap=u["c"].forPaths(),this.folders=t}Object.defineProperty(e.prototype,"folders",{get:function(){return this._folders},set:function(e){this._folders=e,this.updateFoldersMap()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"configuration",{get:function(){return this._configuration},set:function(e){this._configuration=e},enumerable:!0,configurable:!0}),e.prototype.getFolder=function(e){return e&&this._foldersMap.findSubstr(e.with({scheme:e.scheme,authority:e.authority,path:e.path}).toString())||null},e.prototype.updateFoldersMap=function(){this._foldersMap=u["c"].forPaths();for(var e=0,t=this.folders;e<t.length;e++){var n=t[e];this._foldersMap.set(n.uri.toString(),n)}},e.prototype.toJSON=function(){return{id:this.id,folders:this.folders,configuration:this.configuration}}})();var c=function(){function e(e,t){this.raw=t,this.uri=e.uri,this.index=e.index,this.name=e.name}return e.prototype.toResource=function(e){return s["f"](this.uri,e)},e.prototype.toJSON=function(){return{uri:this.uri,name:this.name,index:this.index}},e}()},EffR:function(e,t,n){"use strict";n.d(t,"s",(function(){return v})),n.d(t,"Q",(function(){return _})),n.d(t,"L",(function(){return y})),n.d(t,"H",(function(){return S})),n.d(t,"e",(function(){return N})),n.d(t,"f",(function(){return L})),n.d(t,"O",(function(){return E})),n.d(t,"P",(function(){return x})),n.d(t,"X",(function(){return O})),n.d(t,"i",(function(){return k})),n.d(t,"n",(function(){return M})),n.d(t,"m",(function(){return F})),n.d(t,"g",(function(){return T})),n.d(t,"h",(function(){return R})),n.d(t,"j",(function(){return P})),n.d(t,"k",(function(){return U})),n.d(t,"T",(function(){return H})),n.d(t,"V",(function(){return j})),n.d(t,"l",(function(){return G})),n.d(t,"y",(function(){return X})),n.d(t,"x",(function(){return Y})),n.d(t,"E",(function(){return $})),n.d(t,"B",(function(){return ee})),n.d(t,"d",(function(){return te})),n.d(t,"G",(function(){return ne})),n.d(t,"A",(function(){return ie})),n.d(t,"z",(function(){return re})),n.d(t,"F",(function(){return oe})),n.d(t,"J",(function(){return se})),n.d(t,"w",(function(){return ae})),n.d(t,"M",(function(){return le})),n.d(t,"D",(function(){return ce})),n.d(t,"v",(function(){return de})),n.d(t,"u",(function(){return ge})),n.d(t,"N",(function(){return Ae})),n.d(t,"K",(function(){return me})),n.d(t,"c",(function(){return ve})),n.d(t,"b",(function(){return _e})),n.d(t,"U",(function(){return ye})),n.d(t,"S",(function(){return be})),n.d(t,"Y",(function(){return Ce})),n.d(t,"p",(function(){return Se})),n.d(t,"a",(function(){return xe})),n.d(t,"W",(function(){return Oe})),n.d(t,"I",(function(){return Be})),n.d(t,"R",(function(){return De})),n.d(t,"C",(function(){return Ie})),n.d(t,"t",(function(){return Me})),n.d(t,"Z",(function(){return Fe})),n.d(t,"o",(function(){return Te})),n.d(t,"r",(function(){return Re})),n.d(t,"q",(function(){return Pe}));var i=n("D3Dy"),r=n("4y0V"),o=n("uDWl"),s=n("XSiN"),a=n("X+cX"),u=n("/cxE"),l=n("MI8n"),c=n("pmY6"),d=n("MNsG"),h=n("6OMU"),f=n("tYmi"),p=n("CjF5"),g=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),A=function(){return A=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},A.apply(this,arguments)},m=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i};function v(e){while(e.firstChild)e.removeChild(e.firstChild)}function _(e){e.parentNode&&e.parentNode.removeChild(e)}function y(e){while(e){if(e===document.body)return!0;e=e.parentNode||e.host}return!1}var b=new(function(){function e(){this._lastStart=-1,this._lastEnd=-1}return e.prototype._findClassName=function(e,t){var n=e.className;if(n){t=t.trim();var i=n.length,r=t.length;if(0!==r)if(i<r)this._lastStart=-1;else{if(n===t)return this._lastStart=0,void(this._lastEnd=i);var o,s=-1;while((s=n.indexOf(t,s+1))>=0){if(o=s+r,(0===s||32===n.charCodeAt(s-1))&&32===n.charCodeAt(o))return this._lastStart=s,void(this._lastEnd=o+1);if(s>0&&32===n.charCodeAt(s-1)&&o===i)return this._lastStart=s-1,void(this._lastEnd=o);if(0===s&&o===i)return this._lastStart=0,void(this._lastEnd=o)}this._lastStart=-1}else this._lastStart=-1}else this._lastStart=-1},e.prototype.hasClass=function(e,t){return this._findClassName(e,t),-1!==this._lastStart},e.prototype.addClasses=function(e){for(var t=this,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];n.forEach((function(n){return n.split(" ").forEach((function(n){return t.addClass(e,n)}))}))},e.prototype.addClass=function(e,t){e.className?(this._findClassName(e,t),-1===this._lastStart&&(e.className=e.className+" "+t)):e.className=t},e.prototype.removeClass=function(e,t){this._findClassName(e,t),-1!==this._lastStart&&(e.className=e.className.substring(0,this._lastStart)+e.className.substring(this._lastEnd))},e.prototype.removeClasses=function(e){for(var t=this,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];n.forEach((function(n){return n.split(" ").forEach((function(n){return t.removeClass(e,n)}))}))},e.prototype.toggleClass=function(e,t,n){this._findClassName(e,t),-1===this._lastStart||void 0!==n&&n||this.removeClass(e,t),-1!==this._lastStart||void 0!==n&&!n||this.addClass(e,t)},e}()),w=new(function(){function e(){}return e.prototype.hasClass=function(e,t){return Boolean(t)&&e.classList&&e.classList.contains(t)},e.prototype.addClasses=function(e){for(var t=this,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];n.forEach((function(n){return n.split(" ").forEach((function(n){return t.addClass(e,n)}))}))},e.prototype.addClass=function(e,t){t&&e.classList&&e.classList.add(t)},e.prototype.removeClass=function(e,t){t&&e.classList&&e.classList.remove(t)},e.prototype.removeClasses=function(e){for(var t=this,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];n.forEach((function(n){return n.split(" ").forEach((function(n){return t.removeClass(e,n)}))}))},e.prototype.toggleClass=function(e,t,n){e.classList&&e.classList.toggle(t,n)},e}()),C=i["i"]?b:w,S=C.hasClass.bind(C),N=C.addClass.bind(C),L=C.addClasses.bind(C),E=C.removeClass.bind(C),x=C.removeClasses.bind(C),O=C.toggleClass.bind(C),B=function(){function e(e,t,n,i){this._node=e,this._type=t,this._handler=n,this._options=i||!1,this._node.addEventListener(this._type,this._handler,this._options)}return e.prototype.dispose=function(){this._handler&&(this._node.removeEventListener(this._type,this._handler,this._options),this._node=null,this._handler=null)},e}();function k(e,t,n,i){return new B(e,t,n,i)}function D(e){return function(t){return e(new s["a"](t))}}function I(e){return function(t){return e(new o["a"](t))}}var M=function(e,t,n,i){var r=n;return"click"===t||"mousedown"===t?r=D(n):"keydown"!==t&&"keypress"!==t&&"keyup"!==t||(r=I(n)),k(e,t,r,i)},F=function(e,t,n){var i=D(t);return T(e,i,n)};function T(e,t,n){return k(e,d["c"]&&p["a"].pointerEvents?ve.POINTER_DOWN:ve.MOUSE_DOWN,t,n)}function R(e,t,n){return k(e,d["c"]&&p["a"].pointerEvents?ve.POINTER_UP:ve.MOUSE_UP,t,n)}function P(e,t){return k(e,"mouseout",(function(n){var i=n.relatedTarget;while(i&&i!==e)i=i.parentNode;i!==e&&t(n)}))}function U(e,t){return k(e,"pointerout",(function(n){var i=n.relatedTarget;while(i&&i!==e)i=i.parentNode;i!==e&&t(n)}))}var H,j,Q=null;function V(e){if(!Q){var t=function(e){return setTimeout((function(){return e((new Date).getTime())}),0)};Q=self.requestAnimationFrame||self.msRequestAnimationFrame||self.webkitRequestAnimationFrame||self.mozRequestAnimationFrame||self.oRequestAnimationFrame||t}return Q.call(self,e)}var W=function(){function e(e,t){void 0===t&&(t=0),this._runner=e,this.priority=t,this._canceled=!1}return e.prototype.dispose=function(){this._canceled=!0},e.prototype.execute=function(){if(!this._canceled)try{this._runner()}catch(e){Object(u["e"])(e)}},e.sort=function(e,t){return t.priority-e.priority},e}();(function(){var e=[],t=null,n=!1,i=!1,r=function(){n=!1,t=e,e=[],i=!0;while(t.length>0){t.sort(W.sort);var r=t.shift();r.execute()}i=!1};j=function(t,i){void 0===i&&(i=0);var o=new W(t,i);return e.push(o),n||(n=!0,V(r)),o},H=function(e,n){if(i){var r=new W(e,n);return t.push(r),r}return j(e,n)}})();var z=16,K=function(e,t){return t},q=function(e){function t(t,n,i,r,o){void 0===r&&(r=K),void 0===o&&(o=z);var s=e.call(this)||this,u=null,l=0,c=s._register(new a["e"]),d=function(){l=(new Date).getTime(),i(u),u=null};return s._register(k(t,n,(function(e){u=r(u,e);var t=(new Date).getTime()-l;t>=o?(c.cancel(),d()):c.setIfNotSet(d,o-t)}))),s}return g(t,e),t}(c["a"]);function G(e,t,n,i,r){return new q(e,t,n,i,r)}function X(e){return document.defaultView.getComputedStyle(e,null)}function Y(e){if(e!==document.body)return new Z(e.clientWidth,e.clientHeight);if(d["c"]&&window.visualViewport){var t=window.visualViewport.width,n=window.visualViewport.height-(i["l"]?24:0);return new Z(t,n)}if(window.innerWidth&&window.innerHeight)return new Z(window.innerWidth,window.innerHeight);if(document.body&&document.body.clientWidth&&document.body.clientHeight)return new Z(document.body.clientWidth,document.body.clientHeight);if(document.documentElement&&document.documentElement.clientWidth&&document.documentElement.clientHeight)return new Z(document.documentElement.clientWidth,document.documentElement.clientHeight);throw new Error("Unable to figure out browser width and height")}var J=function(){function e(){}return e.convertToPixels=function(e,t){return parseFloat(t)||0},e.getDimension=function(t,n,i){var r=X(t),o="0";return r&&(o=r.getPropertyValue?r.getPropertyValue(n):r.getAttribute(i)),e.convertToPixels(t,o)},e.getBorderLeftWidth=function(t){return e.getDimension(t,"border-left-width","borderLeftWidth")},e.getBorderRightWidth=function(t){return e.getDimension(t,"border-right-width","borderRightWidth")},e.getBorderTopWidth=function(t){return e.getDimension(t,"border-top-width","borderTopWidth")},e.getBorderBottomWidth=function(t){return e.getDimension(t,"border-bottom-width","borderBottomWidth")},e.getPaddingLeft=function(t){return e.getDimension(t,"padding-left","paddingLeft")},e.getPaddingRight=function(t){return e.getDimension(t,"padding-right","paddingRight")},e.getPaddingTop=function(t){return e.getDimension(t,"padding-top","paddingTop")},e.getPaddingBottom=function(t){return e.getDimension(t,"padding-bottom","paddingBottom")},e.getMarginLeft=function(t){return e.getDimension(t,"margin-left","marginLeft")},e.getMarginTop=function(t){return e.getDimension(t,"margin-top","marginTop")},e.getMarginRight=function(t){return e.getDimension(t,"margin-right","marginRight")},e.getMarginBottom=function(t){return e.getDimension(t,"margin-bottom","marginBottom")},e}(),Z=function(){function e(e,t){this.width=e,this.height=t}return e}();function $(e){var t=e.offsetParent,n=e.offsetTop,i=e.offsetLeft;while(null!==(e=e.parentNode)&&e!==document.body&&e!==document.documentElement){n-=e.scrollTop;var r=ue(e)?null:X(e);r&&(i-="rtl"!==r.direction?e.scrollLeft:-e.scrollLeft),e===t&&(i+=J.getBorderLeftWidth(e),n+=J.getBorderTopWidth(e),n+=e.offsetTop,i+=e.offsetLeft,t=e.offsetParent)}return{left:i,top:n}}function ee(e){var t=e.getBoundingClientRect();return{left:t.left+te.scrollX,top:t.top+te.scrollY,width:t.width,height:t.height}}var te=new(function(){function e(){}return Object.defineProperty(e.prototype,"scrollX",{get:function(){return"number"===typeof window.scrollX?window.scrollX:document.body.scrollLeft+document.documentElement.scrollLeft},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scrollY",{get:function(){return"number"===typeof window.scrollY?window.scrollY:document.body.scrollTop+document.documentElement.scrollTop},enumerable:!0,configurable:!0}),e}());function ne(e){var t=J.getMarginLeft(e)+J.getMarginRight(e);return e.offsetWidth+t}function ie(e){var t=J.getBorderLeftWidth(e)+J.getBorderRightWidth(e),n=J.getPaddingLeft(e)+J.getPaddingRight(e);return e.offsetWidth-t-n}function re(e){var t=J.getBorderTopWidth(e)+J.getBorderBottomWidth(e),n=J.getPaddingTop(e)+J.getPaddingBottom(e);return e.offsetHeight-t-n}function oe(e){var t=J.getMarginTop(e)+J.getMarginBottom(e);return e.offsetHeight+t}function se(e,t){while(e){if(e===t)return!0;e=e.parentNode}return!1}function ae(e,t,n){while(e&&e.nodeType===e.ELEMENT_NODE){if(S(e,t))return e;if(n)if("string"===typeof n){if(S(e,n))return null}else if(e===n)return null;e=e.parentNode}return null}function ue(e){return e&&!!e.host&&!!e.mode}function le(e){return!!ce(e)}function ce(e){while(e.parentNode){if(e===document.body)return null;e=e.parentNode}return ue(e)?e:null}function de(e){void 0===e&&(e=document.getElementsByTagName("head")[0]);var t=document.createElement("style");return t.type="text/css",t.media="screen",e.appendChild(t),t}var he=null;function fe(){return he||(he=de()),he}function pe(e){return e&&e.sheet&&e.sheet.rules?e.sheet.rules:e&&e.sheet&&e.sheet.cssRules?e.sheet.cssRules:[]}function ge(e,t,n){void 0===n&&(n=fe()),n&&t&&n.sheet.insertRule(e+"{"+t+"}",0)}function Ae(e,t){if(void 0===t&&(t=fe()),t){for(var n=pe(t),i=[],r=0;r<n.length;r++){var o=n[r];-1!==o.selectorText.indexOf(e)&&i.push(r)}for(r=i.length-1;r>=0;r--)t.sheet.deleteRule(i[r])}}function me(e){return"object"===typeof HTMLElement?e instanceof HTMLElement:e&&"object"===typeof e&&1===e.nodeType&&"string"===typeof e.nodeName}var ve={CLICK:"click",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",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:i["m"]?"webkitAnimationStart":"animationstart",ANIMATION_END:i["m"]?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:i["m"]?"webkitAnimationIteration":"animationiteration"},_e={stop:function(e,t){e.preventDefault?e.preventDefault():e.returnValue=!1,t&&(e.stopPropagation?e.stopPropagation():e.cancelBubble=!0)}};function ye(e){for(var t=[],n=0;e&&e.nodeType===e.ELEMENT_NODE;n++)t[n]=e.scrollTop,e=e.parentNode;return t}function be(e,t){for(var n=0;e&&e.nodeType===e.ELEMENT_NODE;n++)e.scrollTop!==t[n]&&(e.scrollTop=t[n]),e=e.parentNode}var we=function(e){function t(t){var n=e.call(this)||this;n._onDidFocus=n._register(new l["a"]),n.onDidFocus=n._onDidFocus.event,n._onDidBlur=n._register(new l["a"]),n.onDidBlur=n._onDidBlur.event;var i=se(document.activeElement,t),o=!1,s=function(){o=!1,i||(i=!0,n._onDidFocus.fire())},a=function(){i&&(o=!0,window.setTimeout((function(){o&&(o=!1,i=!1,n._onDidBlur.fire())}),0))};return n._refreshStateHandler=function(){var e=se(document.activeElement,t);e!==i&&(i?a():s())},n._register(Object(r["a"])(t,ve.FOCUS,!0)(s)),n._register(Object(r["a"])(t,ve.BLUR,!0)(a)),n}return g(t,e),t}(c["a"]);function Ce(e){return new we(e)}function Se(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.forEach((function(t){return e.appendChild(t)})),t[t.length-1]}var Ne,Le=/([\w\-]+)?(#([\w\-]+))?((.([\w\-]+))*)/;function Ee(e,t,n){for(var i=[],r=3;r<arguments.length;r++)i[r-3]=arguments[r];var o=Le.exec(t);if(!o)throw new Error("Bad use of emmet");n=A({},n||{});var s,a=o[1]||"div";return s=e!==Ne.HTML?document.createElementNS(e,a):document.createElement(a),o[3]&&(s.id=o[3]),o[4]&&(s.className=o[4].replace(/\./g," ").trim()),Object.keys(n).forEach((function(e){var t=n[e];"undefined"!==typeof t&&(/^on\w+$/.test(e)?s[e]=t:"selected"===e?t&&s.setAttribute(e,"true"):s.setAttribute(e,t))})),Object(h["d"])(i).forEach((function(e){e instanceof Node?s.appendChild(e):s.appendChild(document.createTextNode(e))})),s}function xe(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return Ee.apply(void 0,m([Ne.HTML,e,t],n))}function Oe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,i=e;n<i.length;n++){var r=i[n];r.style.display="",r.removeAttribute("aria-hidden")}}function Be(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,i=e;n<i.length;n++){var r=i[n];r.style.display="none",r.setAttribute("aria-hidden","true")}}function ke(e,t){while(e&&e.nodeType===e.ELEMENT_NODE){if(e instanceof HTMLElement&&e.hasAttribute(t))return e;e=e.parentNode}return null}function De(e){if(e&&e.hasAttribute("tabIndex")){if(document.activeElement===e){var t=ke(e.parentElement,"tabIndex");t&&t.focus()}e.removeAttribute("tabindex")}}function Ie(e){return Array.prototype.slice.call(document.getElementsByTagName(e),0)}function Me(e){var t=window.devicePixelRatio*e;return Math.max(1,Math.floor(t))/window.devicePixelRatio}function Fe(e){if(d["f"]||i["g"])window.open(e);else{var t=window.open();t&&(t.opener=null,t.location.href=e)}}function Te(e){var t=function(){e(),n=j(t)},n=j(t);return Object(c["h"])((function(){return n.dispose()}))}function Re(e){return e&&f["b"].vscodeRemote===e.scheme?f["a"].rewrite(e):e}function Pe(e){return e?"url('"+Re(e).toString(!0).replace(/'/g,"%27")+"')":"url('')"}(function(e){e["HTML"]="http://www.w3.org/1999/xhtml",e["SVG"]="http://www.w3.org/2000/svg"})(Ne||(Ne={})),xe.SVG=function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return Ee.apply(void 0,m([Ne.SVG,e,t],n))},f["a"].setPreferredWebSchema(/^https:/.test(window.location.href)?"https":"http")},FWmy:function(e,t,n){"use strict";function i(e,t){if(!e)throw new Error(t?"Assertion failed ("+t+")":"Assertion Failed")}n.d(t,"a",(function(){return i}))},FvUK:function(e,t,n){"use strict";n.r(t);var i=n("+hIS");Object(i["a"])({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:function(){return n.e(160).then(n.bind(null,"OfHX"))}})},G2kB:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var i=n("Cg/j"),r=Object(i["c"])("modelService");function o(e){return!e.isTooLargeForSyncing()&&!e.isForSimpleWidget}},G300:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var i=n("EffR"),r=n("uDWl"),o=n("XSiN"),s=n("pmY6"),a=n("pg8w"),u=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.onclick=function(e,t){this._register(i["i"](e,i["c"].CLICK,(function(e){return t(new o["a"](e))})))},t.prototype.onmousedown=function(e,t){this._register(i["i"](e,i["c"].MOUSE_DOWN,(function(e){return t(new o["a"](e))})))},t.prototype.onmouseover=function(e,t){this._register(i["i"](e,i["c"].MOUSE_OVER,(function(e){return t(new o["a"](e))})))},t.prototype.onnonbubblingmouseout=function(e,t){this._register(i["j"](e,(function(e){return t(new o["a"](e))})))},t.prototype.onkeydown=function(e,t){this._register(i["i"](e,i["c"].KEY_DOWN,(function(e){return t(new r["a"](e))})))},t.prototype.onkeyup=function(e,t){this._register(i["i"](e,i["c"].KEY_UP,(function(e){return t(new r["a"](e))})))},t.prototype.oninput=function(e,t){this._register(i["i"](e,i["c"].INPUT,t))},t.prototype.onblur=function(e,t){this._register(i["i"](e,i["c"].BLUR,t))},t.prototype.onfocus=function(e,t){this._register(i["i"](e,i["c"].FOCUS,t))},t.prototype.ignoreGesture=function(e){a["b"].ignoreTarget(e)},t}(s["a"])},GJhM:function(e,t,n){"use strict";n.d(t,"b",(function(){return F})),n.d(t,"c",(function(){return T})),n.d(t,"a",(function(){return R}));n("eq1K");var i=n("D3Dy"),r=n("EffR"),o=n("ZlPH"),s=n("XSiN"),a=n("AKMP"),u=n("G300"),l=n("X+cX"),c=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),d=11,h=function(e){function t(t){var n=e.call(this)||this;return n._onActivate=t.onActivate,n.bgDomNode=document.createElement("div"),n.bgDomNode.className="arrow-background",n.bgDomNode.style.position="absolute",n.bgDomNode.style.width=t.bgWidth+"px",n.bgDomNode.style.height=t.bgHeight+"px","undefined"!==typeof t.top&&(n.bgDomNode.style.top="0px"),"undefined"!==typeof t.left&&(n.bgDomNode.style.left="0px"),"undefined"!==typeof t.bottom&&(n.bgDomNode.style.bottom="0px"),"undefined"!==typeof t.right&&(n.bgDomNode.style.right="0px"),n.domNode=document.createElement("div"),n.domNode.className=t.className,n.domNode.style.position="absolute",n.domNode.style.width=d+"px",n.domNode.style.height=d+"px","undefined"!==typeof t.top&&(n.domNode.style.top=t.top+"px"),"undefined"!==typeof t.left&&(n.domNode.style.left=t.left+"px"),"undefined"!==typeof t.bottom&&(n.domNode.style.bottom=t.bottom+"px"),"undefined"!==typeof t.right&&(n.domNode.style.right=t.right+"px"),n._mouseMoveMonitor=n._register(new a["a"]),n.onmousedown(n.bgDomNode,(function(e){return n._arrowMouseDown(e)})),n.onmousedown(n.domNode,(function(e){return n._arrowMouseDown(e)})),n._mousedownRepeatTimer=n._register(new l["c"]),n._mousedownScheduleRepeatTimer=n._register(new l["e"]),n}return c(t,e),t.prototype._arrowMouseDown=function(e){var t=this,n=function(){t._mousedownRepeatTimer.cancelAndSet((function(){return t._onActivate()}),1e3/24)};this._onActivate(),this._mousedownRepeatTimer.cancel(),this._mousedownScheduleRepeatTimer.cancelAndSet(n,200),this._mouseMoveMonitor.startMonitoring(e.target,e.buttons,a["b"],(function(e){}),(function(){t._mousedownRepeatTimer.cancel(),t._mousedownScheduleRepeatTimer.cancel()})),e.preventDefault()},t}(u["a"]),f=n("pmY6"),p=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),g=function(e){function t(t,n,i){var r=e.call(this)||this;return r._visibility=t,r._visibleClassName=n,r._invisibleClassName=i,r._domNode=null,r._isVisible=!1,r._isNeeded=!1,r._shouldBeVisible=!1,r._revealTimer=r._register(new l["e"]),r}return p(t,e),t.prototype.applyVisibilitySetting=function(e){return 2!==this._visibility&&(3===this._visibility||e)},t.prototype.setShouldBeVisible=function(e){var t=this.applyVisibilitySetting(e);this._shouldBeVisible!==t&&(this._shouldBeVisible=t,this.ensureVisibility())},t.prototype.setIsNeeded=function(e){this._isNeeded!==e&&(this._isNeeded=e,this.ensureVisibility())},t.prototype.setDomNode=function(e){this._domNode=e,this._domNode.setClassName(this._invisibleClassName),this.setShouldBeVisible(!1)},t.prototype.ensureVisibility=function(){this._isNeeded?this._shouldBeVisible?this._reveal():this._hide(!0):this._hide(!1)},t.prototype._reveal=function(){var e=this;this._isVisible||(this._isVisible=!0,this._revealTimer.setIfNotSet((function(){e._domNode&&e._domNode.setClassName(e._visibleClassName)}),0))},t.prototype._hide=function(e){this._revealTimer.cancel(),this._isVisible&&(this._isVisible=!1,this._domNode&&this._domNode.setClassName(this._invisibleClassName+(e?" fade":"")))},t}(f["a"]),A=n("MNsG"),m=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),v=140,_=function(e){function t(t){var n=e.call(this)||this;return n._lazyRender=t.lazyRender,n._host=t.host,n._scrollable=t.scrollable,n._scrollbarState=t.scrollbarState,n._visibilityController=n._register(new g(t.visibility,"visible scrollbar "+t.extraScrollbarClassName,"invisible scrollbar "+t.extraScrollbarClassName)),n._visibilityController.setIsNeeded(n._scrollbarState.isNeeded()),n._mouseMoveMonitor=n._register(new a["a"]),n._shouldRender=!0,n.domNode=Object(o["b"])(document.createElement("div")),n.domNode.setAttribute("role","presentation"),n.domNode.setAttribute("aria-hidden","true"),n._visibilityController.setDomNode(n.domNode),n.domNode.setPosition("absolute"),n.onmousedown(n.domNode.domNode,(function(e){return n._domNodeMouseDown(e)})),n}return m(t,e),t.prototype._createArrow=function(e){var t=this._register(new h(e));this.domNode.domNode.appendChild(t.bgDomNode),this.domNode.domNode.appendChild(t.domNode)},t.prototype._createSlider=function(e,t,n,i){var r=this;this.slider=Object(o["b"])(document.createElement("div")),this.slider.setClassName("slider"),this.slider.setPosition("absolute"),this.slider.setTop(e),this.slider.setLeft(t),"number"===typeof n&&this.slider.setWidth(n),"number"===typeof i&&this.slider.setHeight(i),this.slider.setLayerHinting(!0),this.slider.setContain("strict"),this.domNode.domNode.appendChild(this.slider.domNode),this.onmousedown(this.slider.domNode,(function(e){e.leftButton&&(e.preventDefault(),r._sliderMouseDown(e,(function(){})))})),this.onclick(this.slider.domNode,(function(e){e.leftButton&&e.stopPropagation()}))},t.prototype._onElementSize=function(e){return this._scrollbarState.setVisibleSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender},t.prototype._onElementScrollSize=function(e){return this._scrollbarState.setScrollSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender},t.prototype._onElementScrollPosition=function(e){return this._scrollbarState.setScrollPosition(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender},t.prototype.beginReveal=function(){this._visibilityController.setShouldBeVisible(!0)},t.prototype.beginHide=function(){this._visibilityController.setShouldBeVisible(!1)},t.prototype.render=function(){this._shouldRender&&(this._shouldRender=!1,this._renderDomNode(this._scrollbarState.getRectangleLargeSize(),this._scrollbarState.getRectangleSmallSize()),this._updateSlider(this._scrollbarState.getSliderSize(),this._scrollbarState.getArrowSize()+this._scrollbarState.getSliderPosition()))},t.prototype._domNodeMouseDown=function(e){e.target===this.domNode.domNode&&this._onMouseDown(e)},t.prototype.delegateMouseDown=function(e){var t=this.domNode.domNode.getClientRects()[0].top,n=t+this._scrollbarState.getSliderPosition(),i=t+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize(),r=this._sliderMousePosition(e);n<=r&&r<=i?e.leftButton&&(e.preventDefault(),this._sliderMouseDown(e,(function(){}))):this._onMouseDown(e)},t.prototype._onMouseDown=function(e){var t,n;if(e.target===this.domNode.domNode&&"number"===typeof e.browserEvent.offsetX&&"number"===typeof e.browserEvent.offsetY)t=e.browserEvent.offsetX,n=e.browserEvent.offsetY;else{var i=r["B"](this.domNode.domNode);t=e.posx-i.left,n=e.posy-i.top}this._setDesiredScrollPositionNow(this._scrollbarState.getDesiredScrollPositionFromOffset(this._mouseDownRelativePosition(t,n))),e.leftButton&&(e.preventDefault(),this._sliderMouseDown(e,(function(){})))},t.prototype._sliderMouseDown=function(e,t){var n=this,i=this._sliderMousePosition(e),r=this._sliderOrthogonalMousePosition(e),o=this._scrollbarState.clone();this.slider.toggleClassName("active",!0),this._mouseMoveMonitor.startMonitoring(e.target,e.buttons,a["b"],(function(e){var t=n._sliderOrthogonalMousePosition(e),s=Math.abs(t-r);if(A["h"]&&s>v)n._setDesiredScrollPositionNow(o.getScrollPosition());else{var a=n._sliderMousePosition(e),u=a-i;n._setDesiredScrollPositionNow(o.getDesiredScrollPositionFromDelta(u))}}),(function(){n.slider.toggleClassName("active",!1),n._host.onDragEnd(),t()})),this._host.onDragStart()},t.prototype._setDesiredScrollPositionNow=function(e){var t={};this.writeScrollPosition(t,e),this._scrollable.setScrollPositionNow(t)},t}(u["a"]),y=20,b=function(){function e(e,t,n,i,r,o){this._scrollbarSize=Math.round(t),this._oppositeScrollbarSize=Math.round(n),this._arrowSize=Math.round(e),this._visibleSize=i,this._scrollSize=r,this._scrollPosition=o,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}return e.prototype.clone=function(){return new e(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize,this._visibleSize,this._scrollSize,this._scrollPosition)},e.prototype.setVisibleSize=function(e){var t=Math.round(e);return this._visibleSize!==t&&(this._visibleSize=t,this._refreshComputedValues(),!0)},e.prototype.setScrollSize=function(e){var t=Math.round(e);return this._scrollSize!==t&&(this._scrollSize=t,this._refreshComputedValues(),!0)},e.prototype.setScrollPosition=function(e){var t=Math.round(e);return this._scrollPosition!==t&&(this._scrollPosition=t,this._refreshComputedValues(),!0)},e._computeValues=function(e,t,n,i,r){var o=Math.max(0,n-e),s=Math.max(0,o-2*t),a=i>0&&i>n;if(!a)return{computedAvailableSize:Math.round(o),computedIsNeeded:a,computedSliderSize:Math.round(s),computedSliderRatio:0,computedSliderPosition:0};var u=Math.round(Math.max(y,Math.floor(n*s/i))),l=(s-u)/(i-n),c=r*l;return{computedAvailableSize:Math.round(o),computedIsNeeded:a,computedSliderSize:Math.round(u),computedSliderRatio:l,computedSliderPosition:Math.round(c)}},e.prototype._refreshComputedValues=function(){var t=e._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=t.computedAvailableSize,this._computedIsNeeded=t.computedIsNeeded,this._computedSliderSize=t.computedSliderSize,this._computedSliderRatio=t.computedSliderRatio,this._computedSliderPosition=t.computedSliderPosition},e.prototype.getArrowSize=function(){return this._arrowSize},e.prototype.getScrollPosition=function(){return this._scrollPosition},e.prototype.getRectangleLargeSize=function(){return this._computedAvailableSize},e.prototype.getRectangleSmallSize=function(){return this._scrollbarSize},e.prototype.isNeeded=function(){return this._computedIsNeeded},e.prototype.getSliderSize=function(){return this._computedSliderSize},e.prototype.getSliderPosition=function(){return this._computedSliderPosition},e.prototype.getDesiredScrollPositionFromOffset=function(e){if(!this._computedIsNeeded)return 0;var t=e-this._arrowSize-this._computedSliderSize/2;return Math.round(t/this._computedSliderRatio)},e.prototype.getDesiredScrollPositionFromDelta=function(e){if(!this._computedIsNeeded)return 0;var t=this._computedSliderPosition+e;return Math.round(t/this._computedSliderRatio)},e}(),w=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),C=function(e){function t(t,n,i){var r=this,o=t.getScrollDimensions(),a=t.getCurrentScrollPosition();if(r=e.call(this,{lazyRender:n.lazyRender,host:i,scrollbarState:new b(n.horizontalHasArrows?n.arrowSize:0,2===n.horizontal?0:n.horizontalScrollbarSize,2===n.vertical?0:n.verticalScrollbarSize,o.width,o.scrollWidth,a.scrollLeft),visibility:n.horizontal,extraScrollbarClassName:"horizontal",scrollable:t})||this,n.horizontalHasArrows){var u=(n.arrowSize-d)/2,l=(n.horizontalScrollbarSize-d)/2;r._createArrow({className:"left-arrow",top:l,left:u,bottom:void 0,right:void 0,bgWidth:n.arrowSize,bgHeight:n.horizontalScrollbarSize,onActivate:function(){return r._host.onMouseWheel(new s["b"](null,1,0))}}),r._createArrow({className:"right-arrow",top:l,left:void 0,bottom:void 0,right:u,bgWidth:n.arrowSize,bgHeight:n.horizontalScrollbarSize,onActivate:function(){return r._host.onMouseWheel(new s["b"](null,-1,0))}})}return r._createSlider(Math.floor((n.horizontalScrollbarSize-n.horizontalSliderSize)/2),0,void 0,n.horizontalSliderSize),r}return w(t,e),t.prototype._updateSlider=function(e,t){this.slider.setWidth(e),this.slider.setLeft(t)},t.prototype._renderDomNode=function(e,t){this.domNode.setWidth(e),this.domNode.setHeight(t),this.domNode.setLeft(0),this.domNode.setBottom(0)},t.prototype.onDidScroll=function(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},t.prototype._mouseDownRelativePosition=function(e,t){return e},t.prototype._sliderMousePosition=function(e){return e.posx},t.prototype._sliderOrthogonalMousePosition=function(e){return e.posy},t.prototype.writeScrollPosition=function(e,t){e.scrollLeft=t},t}(_),S=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),N=function(e){function t(t,n,i){var r=this,o=t.getScrollDimensions(),a=t.getCurrentScrollPosition();if(r=e.call(this,{lazyRender:n.lazyRender,host:i,scrollbarState:new b(n.verticalHasArrows?n.arrowSize:0,2===n.vertical?0:n.verticalScrollbarSize,0,o.height,o.scrollHeight,a.scrollTop),visibility:n.vertical,extraScrollbarClassName:"vertical",scrollable:t})||this,n.verticalHasArrows){var u=(n.arrowSize-d)/2,l=(n.verticalScrollbarSize-d)/2;r._createArrow({className:"up-arrow",top:u,left:l,bottom:void 0,right:void 0,bgWidth:n.verticalScrollbarSize,bgHeight:n.arrowSize,onActivate:function(){return r._host.onMouseWheel(new s["b"](null,0,1))}}),r._createArrow({className:"down-arrow",top:void 0,left:l,bottom:u,right:void 0,bgWidth:n.verticalScrollbarSize,bgHeight:n.arrowSize,onActivate:function(){return r._host.onMouseWheel(new s["b"](null,0,-1))}})}return r._createSlider(0,Math.floor((n.verticalScrollbarSize-n.verticalSliderSize)/2),n.verticalSliderSize,void 0),r}return S(t,e),t.prototype._updateSlider=function(e,t){this.slider.setHeight(e),this.slider.setTop(t)},t.prototype._renderDomNode=function(e,t){this.domNode.setWidth(t),this.domNode.setHeight(e),this.domNode.setRight(0),this.domNode.setTop(0)},t.prototype.onDidScroll=function(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},t.prototype._mouseDownRelativePosition=function(e,t){return t},t.prototype._sliderMousePosition=function(e){return e.posy},t.prototype._sliderOrthogonalMousePosition=function(e){return e.posx},t.prototype.writeScrollPosition=function(e,t){e.scrollTop=t},t}(_),L=n("MI8n"),E=n("QuOb"),x=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),O=500,B=50,k=!0,D=function(){function e(e,t,n){this.timestamp=e,this.deltaX=t,this.deltaY=n,this.score=0}return e}(),I=function(){function e(){this._capacity=5,this._memory=[],this._front=-1,this._rear=-1}return e.prototype.isPhysicalMouseWheel=function(){if(-1===this._front&&-1===this._rear)return!1;var e=1,t=0,n=1,i=this._rear;do{var r=i===this._front?e:Math.pow(2,-n);if(e-=r,t+=this._memory[i].score*r,i===this._front)break;i=(this._capacity+i-1)%this._capacity,n++}while(1);return t<=.5},e.prototype.accept=function(e,t,n){var i=new D(e,t,n);i.score=this._computeScore(i),-1===this._front&&-1===this._rear?(this._memory[0]=i,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]=i)},e.prototype._computeScore=function(e){if(Math.abs(e.deltaX)>0&&Math.abs(e.deltaY)>0)return 1;var t=.5;-1===this._front&&-1===this._rear||this._memory[this._rear];return(Math.abs(e.deltaX-Math.round(e.deltaX))>0||Math.abs(e.deltaY-Math.round(e.deltaY))>0)&&(t+=.25),Math.min(Math.max(t,0),1)},e.INSTANCE=new e,e}(),M=function(e){function t(t,n,i){var r=e.call(this)||this;r._onScroll=r._register(new L["a"]),r.onScroll=r._onScroll.event,t.style.overflow="hidden",r._options=P(n),r._scrollable=i,r._register(r._scrollable.onScroll((function(e){r._onDidScroll(e),r._onScroll.fire(e)})));var s={onMouseWheel:function(e){return r._onMouseWheel(e)},onDragStart:function(){return r._onDragStart()},onDragEnd:function(){return r._onDragEnd()}};return r._verticalScrollbar=r._register(new N(r._scrollable,r._options,s)),r._horizontalScrollbar=r._register(new C(r._scrollable,r._options,s)),r._domNode=document.createElement("div"),r._domNode.className="monaco-scrollable-element "+r._options.className,r._domNode.setAttribute("role","presentation"),r._domNode.style.position="relative",r._domNode.style.overflow="hidden",r._domNode.appendChild(t),r._domNode.appendChild(r._horizontalScrollbar.domNode.domNode),r._domNode.appendChild(r._verticalScrollbar.domNode.domNode),r._options.useShadows?(r._leftShadowDomNode=Object(o["b"])(document.createElement("div")),r._leftShadowDomNode.setClassName("shadow"),r._domNode.appendChild(r._leftShadowDomNode.domNode),r._topShadowDomNode=Object(o["b"])(document.createElement("div")),r._topShadowDomNode.setClassName("shadow"),r._domNode.appendChild(r._topShadowDomNode.domNode),r._topLeftShadowDomNode=Object(o["b"])(document.createElement("div")),r._topLeftShadowDomNode.setClassName("shadow top-left-corner"),r._domNode.appendChild(r._topLeftShadowDomNode.domNode)):(r._leftShadowDomNode=null,r._topShadowDomNode=null,r._topLeftShadowDomNode=null),r._listenOnDomNode=r._options.listenOnDomNode||r._domNode,r._mouseWheelToDispose=[],r._setListeningToMouseWheel(r._options.handleMouseWheel),r.onmouseover(r._listenOnDomNode,(function(e){return r._onMouseOver(e)})),r.onnonbubblingmouseout(r._listenOnDomNode,(function(e){return r._onMouseOut(e)})),r._hideTimeout=r._register(new l["e"]),r._isDragging=!1,r._mouseIsOver=!1,r._shouldRender=!0,r._revealOnScroll=!0,r}return x(t,e),t.prototype.dispose=function(){this._mouseWheelToDispose=Object(f["f"])(this._mouseWheelToDispose),e.prototype.dispose.call(this)},t.prototype.getDomNode=function(){return this._domNode},t.prototype.getOverviewRulerLayoutInfo=function(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}},t.prototype.delegateVerticalScrollbarMouseDown=function(e){this._verticalScrollbar.delegateMouseDown(e)},t.prototype.getScrollDimensions=function(){return this._scrollable.getScrollDimensions()},t.prototype.setScrollDimensions=function(e){this._scrollable.setScrollDimensions(e)},t.prototype.updateClassName=function(e){this._options.className=e,A["e"]&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className},t.prototype.updateOptions=function(e){var t=P(e);this._options.handleMouseWheel=t.handleMouseWheel,this._options.mouseWheelScrollSensitivity=t.mouseWheelScrollSensitivity,this._options.fastScrollSensitivity=t.fastScrollSensitivity,this._setListeningToMouseWheel(this._options.handleMouseWheel),this._options.lazyRender||this._render()},t.prototype._setListeningToMouseWheel=function(e){var t=this,n=this._mouseWheelToDispose.length>0;if(n!==e&&(this._mouseWheelToDispose=Object(f["f"])(this._mouseWheelToDispose),e)){var o=function(e){t._onMouseWheel(new s["b"](e))};this._mouseWheelToDispose.push(r["i"](this._listenOnDomNode,i["f"]?"mousewheel":"wheel",o,{passive:!1}))}},t.prototype._onMouseWheel=function(e){var t,n=I.INSTANCE;if(k&&n.accept(Date.now(),e.deltaX,e.deltaY),e.deltaY||e.deltaX){var i=e.deltaY*this._options.mouseWheelScrollSensitivity,r=e.deltaX*this._options.mouseWheelScrollSensitivity;this._options.flipAxes&&(t=[r,i],i=t[0],r=t[1]);var o=!A["e"]&&e.browserEvent&&e.browserEvent.shiftKey;!this._options.scrollYToX&&!o||r||(r=i,i=0),e.browserEvent&&e.browserEvent.altKey&&(r*=this._options.fastScrollSensitivity,i*=this._options.fastScrollSensitivity);var s=this._scrollable.getFutureScrollPosition(),a={};if(i){var u=s.scrollTop-B*i;this._verticalScrollbar.writeScrollPosition(a,u)}if(r){var l=s.scrollLeft-B*r;this._horizontalScrollbar.writeScrollPosition(a,l)}if(a=this._scrollable.validateScrollPosition(a),s.scrollLeft!==a.scrollLeft||s.scrollTop!==a.scrollTop){var c=k&&this._options.mouseWheelSmoothScroll&&n.isPhysicalMouseWheel();c?this._scrollable.setScrollPositionSmooth(a):this._scrollable.setScrollPositionNow(a),this._shouldRender=!0}}(this._options.alwaysConsumeMouseWheel||this._shouldRender)&&(e.preventDefault(),e.stopPropagation())},t.prototype._onDidScroll=function(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()},t.prototype.renderNow=function(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render()},t.prototype._render=function(){if(this._shouldRender&&(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows)){var e=this._scrollable.getCurrentScrollPosition(),t=e.scrollTop>0,n=e.scrollLeft>0;this._leftShadowDomNode.setClassName("shadow"+(n?" left":"")),this._topShadowDomNode.setClassName("shadow"+(t?" top":"")),this._topLeftShadowDomNode.setClassName("shadow top-left-corner"+(t?" top":"")+(n?" left":""))}},t.prototype._onDragStart=function(){this._isDragging=!0,this._reveal()},t.prototype._onDragEnd=function(){this._isDragging=!1,this._hide()},t.prototype._onMouseOut=function(e){this._mouseIsOver=!1,this._hide()},t.prototype._onMouseOver=function(e){this._mouseIsOver=!0,this._reveal()},t.prototype._reveal=function(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()},t.prototype._hide=function(){this._mouseIsOver||this._isDragging||(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())},t.prototype._scheduleHide=function(){var e=this;this._mouseIsOver||this._isDragging||this._hideTimeout.cancelAndSet((function(){return e._hide()}),O)},t}(u["a"]),F=function(e){function t(t,n){var i=this;n=n||{},n.mouseWheelSmoothScroll=!1;var o=new E["a"](0,(function(e){return r["V"](e)}));return i=e.call(this,t,n,o)||this,i._register(o),i}return x(t,e),t.prototype.setScrollPosition=function(e){this._scrollable.setScrollPositionNow(e)},t.prototype.getScrollPosition=function(){return this._scrollable.getCurrentScrollPosition()},t}(M),T=function(e){function t(t,n,i){return e.call(this,t,n,i)||this}return x(t,e),t}(M),R=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i._element=t,i.onScroll((function(e){e.scrollTopChanged&&(i._element.scrollTop=e.scrollTop),e.scrollLeftChanged&&(i._element.scrollLeft=e.scrollLeft)})),i.scanDomNode(),i}return x(t,e),t.prototype.scanDomNode=function(){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})},t}(F);function P(e){var t={lazyRender:"undefined"!==typeof e.lazyRender&&e.lazyRender,className:"undefined"!==typeof e.className?e.className:"",useShadows:"undefined"===typeof e.useShadows||e.useShadows,handleMouseWheel:"undefined"===typeof e.handleMouseWheel||e.handleMouseWheel,flipAxes:"undefined"!==typeof e.flipAxes&&e.flipAxes,alwaysConsumeMouseWheel:"undefined"!==typeof e.alwaysConsumeMouseWheel&&e.alwaysConsumeMouseWheel,scrollYToX:"undefined"!==typeof e.scrollYToX&&e.scrollYToX,mouseWheelScrollSensitivity:"undefined"!==typeof e.mouseWheelScrollSensitivity?e.mouseWheelScrollSensitivity:1,fastScrollSensitivity:"undefined"!==typeof e.fastScrollSensitivity?e.fastScrollSensitivity:5,mouseWheelSmoothScroll:"undefined"===typeof e.mouseWheelSmoothScroll||e.mouseWheelSmoothScroll,arrowSize:"undefined"!==typeof e.arrowSize?e.arrowSize:11,listenOnDomNode:"undefined"!==typeof e.listenOnDomNode?e.listenOnDomNode:null,horizontal:"undefined"!==typeof e.horizontal?e.horizontal:1,horizontalScrollbarSize:"undefined"!==typeof e.horizontalScrollbarSize?e.horizontalScrollbarSize:10,horizontalSliderSize:"undefined"!==typeof e.horizontalSliderSize?e.horizontalSliderSize:0,horizontalHasArrows:"undefined"!==typeof e.horizontalHasArrows&&e.horizontalHasArrows,vertical:"undefined"!==typeof e.vertical?e.vertical:1,verticalScrollbarSize:"undefined"!==typeof e.verticalScrollbarSize?e.verticalScrollbarSize:10,verticalHasArrows:"undefined"!==typeof e.verticalHasArrows&&e.verticalHasArrows,verticalSliderSize:"undefined"!==typeof e.verticalSliderSize?e.verticalSliderSize:0};return t.horizontalSliderSize="undefined"!==typeof e.horizontalSliderSize?e.horizontalSliderSize:t.horizontalScrollbarSize,t.verticalSliderSize="undefined"!==typeof e.verticalSliderSize?e.verticalSliderSize:t.verticalScrollbarSize,A["e"]&&(t.className+=" mac"),t}},"GR/f":function(e,t,n){"use strict";n.d(t,"a",(function(){return m})),n.d(t,"b",(function(){return v}));var i=n("/cxE"),r=n("N0LK"),o=n("LCkn"),s=n("Ll0s"),a=n("aokT"),u=n("gCVg"),l=n("cMvZ"),c=Object.create(null);function d(e,t){c[e]||(c[e]=["",e]);for(var n=c[e],i=n.length;i<=t;i++)n[i]=n[i-1]+e;return n[t]}var h=function(){function e(e,t){this._opts=t,this._selection=e,this._selectionId=null,this._useLastEditRangeForCursorEndPosition=!1,this._selectionStartColumnStaysPut=!1}return e.unshiftIndent=function(e,t,n,i,r){var o=s["a"].visibleColumnFromColumn(e,t,n);if(r){var a=d(" ",i),u=s["a"].prevIndentTabStop(o,i),l=u/i;return d(a,l)}a="\t",u=s["a"].prevRenderTabStop(o,n),l=u/n;return d(a,l)},e.shiftIndent=function(e,t,n,i,r){var o=s["a"].visibleColumnFromColumn(e,t,n);if(r){var a=d(" ",i),u=s["a"].nextIndentTabStop(o,i),l=u/i;return d(a,l)}a="\t",u=s["a"].nextRenderTabStop(o,n),l=u/n;return d(a,l)},e.prototype._addEditOperation=function(e,t,n){this._useLastEditRangeForCursorEndPosition?e.addTrackedEditOperation(t,n):e.addEditOperation(t,n)},e.prototype.getEditOperations=function(t,n){var i=this._selection.startLineNumber,o=this._selection.endLineNumber;1===this._selection.endColumn&&i!==o&&(o-=1);var u=this._opts,c=u.tabSize,h=u.indentSize,f=u.insertSpaces,p=i===o;if(this._selection.isEmpty()&&/^\s*$/.test(t.getLineContent(i))&&(this._useLastEditRangeForCursorEndPosition=!0),this._opts.useTabStops)for(var g=0,A=0,m=i;m<=o;m++,g=A){A=0;var v=t.getLineContent(m),_=r["q"](v);if((!this._opts.isUnshift||0!==v.length&&0!==_)&&(p||this._opts.isUnshift||0!==v.length)){if(-1===_&&(_=v.length),m>1){var y=s["a"].visibleColumnFromColumn(v,_+1,c);if(y%h!==0&&t.isCheapToTokenize(m-1)){var b=l["a"].getEnterAction(this._opts.autoIndent,t,new a["a"](m-1,t.getLineMaxColumn(m-1),m-1,t.getLineMaxColumn(m-1)));if(b){if(A=g,b.appendText)for(var w=0,C=b.appendText.length;w<C&&A<h;w++){if(32!==b.appendText.charCodeAt(w))break;A++}b.removeText&&(A=Math.max(0,A-b.removeText));for(w=0;w<A;w++){if(0===_||32!==v.charCodeAt(_-1))break;_--}}}}if(!this._opts.isUnshift||0!==_){var S=void 0;S=this._opts.isUnshift?e.unshiftIndent(v,_+1,c,h,f):e.shiftIndent(v,_+1,c,h,f),this._addEditOperation(n,new a["a"](m,1,m,_+1),S),m!==i||this._selection.isEmpty()||(this._selectionStartColumnStaysPut=this._selection.startColumn<=_+1)}}}else{var N=f?d(" ",h):"\t";for(m=i;m<=o;m++){v=t.getLineContent(m),_=r["q"](v);if((!this._opts.isUnshift||0!==v.length&&0!==_)&&((p||this._opts.isUnshift||0!==v.length)&&(-1===_&&(_=v.length),!this._opts.isUnshift||0!==_)))if(this._opts.isUnshift){_=Math.min(_,h);for(var L=0;L<_;L++){var E=v.charCodeAt(L);if(9===E){_=L+1;break}}this._addEditOperation(n,new a["a"](m,1,m,_+1),"")}else this._addEditOperation(n,new a["a"](m,1,m,1),N),m!==i||this._selection.isEmpty()||(this._selectionStartColumnStaysPut=1===this._selection.startColumn)}}this._selectionId=n.trackSelection(this._selection)},e.prototype.computeCursorState=function(e,t){if(this._useLastEditRangeForCursorEndPosition){var n=t.getInverseEditOperations()[0];return new u["a"](n.range.endLineNumber,n.range.endColumn,n.range.endLineNumber,n.range.endColumn)}var i=t.getTrackedSelection(this._selectionId);if(this._selectionStartColumnStaysPut){var r=this._selection.startColumn,o=i.startColumn;return o<=r?i:0===i.getDirection()?new u["a"](i.startLineNumber,r,i.endLineNumber,i.endColumn):new u["a"](i.endLineNumber,i.endColumn,i.startLineNumber,r)}return i},e}(),f=function(){function e(e,t,n){this._range=e,this._charBeforeSelection=t,this._charAfterSelection=n}return e.prototype.getEditOperations=function(e,t){t.addTrackedEditOperation(new a["a"](this._range.startLineNumber,this._range.startColumn,this._range.startLineNumber,this._range.startColumn),this._charBeforeSelection),t.addTrackedEditOperation(new a["a"](this._range.endLineNumber,this._range.endColumn,this._range.endLineNumber,this._range.endColumn),this._charAfterSelection)},e.prototype.computeCursorState=function(e,t){var n=t.getInverseEditOperations(),i=n[0].range,r=n[1].range;return new u["a"](i.endLineNumber,i.endColumn,r.endLineNumber,r.endColumn-this._charAfterSelection.length)},e}(),p=n("5v8Y"),g=n("KDc4"),A=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),m=function(){function e(){}return e.indent=function(e,t,n){if(null===t||null===n)return[];for(var i=[],r=0,o=n.length;r<o;r++)i[r]=new h(n[r],{isUnshift:!1,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops,autoIndent:e.autoIndent});return i},e.outdent=function(e,t,n){for(var i=[],r=0,o=n.length;r<o;r++)i[r]=new h(n[r],{isUnshift:!0,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops,autoIndent:e.autoIndent});return i},e.shiftIndent=function(e,t,n){return n=n||1,h.shiftIndent(t,t.length+n,e.tabSize,e.indentSize,e.insertSpaces)},e.unshiftIndent=function(e,t,n){return n=n||1,h.unshiftIndent(t,t.length+n,e.tabSize,e.indentSize,e.insertSpaces)},e._distributedPaste=function(e,t,n,i){for(var r=[],a=0,u=n.length;a<u;a++)r[a]=new o["a"](n[a],i[a]);return new s["e"](0,r,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})},e._simplePaste=function(e,t,n,i,r){for(var u=[],l=0,c=n.length;l<c;l++){var d=n[l],h=d.getPosition();if(r&&!d.isEmpty()&&(r=!1),r&&i.indexOf("\n")!==i.length-1&&(r=!1),r){var f=new a["a"](h.lineNumber,1,h.lineNumber,1);u[l]=new o["b"](f,i,d,!0)}else u[l]=new o["a"](d,i)}return new s["e"](0,u,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})},e._distributePasteToCursors=function(e,t,n,i,r){if(i)return null;if(1===t.length)return null;if(r&&r.length===t.length)return r;if("spread"===e.multiCursorPaste){10===n.charCodeAt(n.length-1)&&(n=n.substr(0,n.length-1)),13===n.charCodeAt(n.length-1)&&(n=n.substr(0,n.length-1));var o=n.split(/\r\n|\r|\n/);if(o.length===t.length)return o}return null},e.paste=function(e,t,n,i,r,o){var s=this._distributePasteToCursors(e,n,i,r,o);return s?(n=n.sort(a["a"].compareRangesUsingStarts),this._distributedPaste(e,t,n,s)):this._simplePaste(e,t,n,i,r)},e._goodIndentForLine=function(t,n,i){var o=null,s="",u=l["a"].getInheritIndentForLine(t.autoIndent,n,i,!1);if(u)o=u.action,s=u.indentation;else if(i>1){var c=void 0;for(c=i-1;c>=1;c--){var d=n.getLineContent(c),h=r["D"](d);if(h>=0)break}if(c<1)return null;var f=n.getLineMaxColumn(c),p=l["a"].getEnterAction(t.autoIndent,n,new a["a"](c,f,c,f));p&&(s=p.indentation+p.appendText)}return o&&(o===g["a"].Indent&&(s=e.shiftIndent(t,s)),o===g["a"].Outdent&&(s=e.unshiftIndent(t,s)),s=t.normalizeIndentation(s)),s||null},e._replaceJumpToNextIndent=function(e,t,n,i){var r="",a=n.getStartPosition();if(e.insertSpaces)for(var u=s["a"].visibleColumnFromColumn2(e,t,a),l=e.indentSize,c=l-u%l,d=0;d<c;d++)r+=" ";else r="\t";return new o["a"](n,r,i)},e.tab=function(e,t,n){for(var i=[],s=0,u=n.length;s<u;s++){var l=n[s];if(l.isEmpty()){var c=t.getLineContent(l.startLineNumber);if(/^\s*$/.test(c)&&t.isCheapToTokenize(l.startLineNumber)){var d=this._goodIndentForLine(e,t,l.startLineNumber);d=d||"\t";var f=e.normalizeIndentation(d);if(!r["M"](c,f)){i[s]=new o["a"](new a["a"](l.startLineNumber,1,l.startLineNumber,c.length+1),f,!0);continue}}i[s]=this._replaceJumpToNextIndent(e,t,l,!0)}else{if(l.startLineNumber===l.endLineNumber){var p=t.getLineMaxColumn(l.startLineNumber);if(1!==l.startColumn||l.endColumn!==p){i[s]=this._replaceJumpToNextIndent(e,t,l,!1);continue}}i[s]=new h(l,{isUnshift:!1,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops,autoIndent:e.autoIndent})}}return i},e.replacePreviousChar=function(e,t,n,i,r,u){for(var l=[],c=0,d=i.length;c<d;c++){var h=i[c];if(h.isEmpty()){var f=h.getPosition(),p=Math.max(1,f.column-u),g=new a["a"](f.lineNumber,p,f.lineNumber,f.column);l[c]=new o["a"](g,r)}else l[c]=null}return new s["e"](1,l,{shouldPushStackElementBefore:1!==e,shouldPushStackElementAfter:!1})},e._typeCommand=function(e,t,n){return n?new o["d"](e,t,!0):new o["a"](e,t,!0)},e._enter=function(t,n,i,u){if(0===t.autoIndent)return e._typeCommand(u,"\n",i);if(!n.isCheapToTokenize(u.getStartPosition().lineNumber)||1===t.autoIndent){var c=n.getLineContent(u.startLineNumber),d=r["t"](c).substring(0,u.startColumn-1);return e._typeCommand(u,"\n"+t.normalizeIndentation(d),i)}var h=l["a"].getEnterAction(t.autoIndent,n,u);if(h){if(h.indentAction===g["a"].None)return e._typeCommand(u,"\n"+t.normalizeIndentation(h.indentation+h.appendText),i);if(h.indentAction===g["a"].Indent)return e._typeCommand(u,"\n"+t.normalizeIndentation(h.indentation+h.appendText),i);if(h.indentAction===g["a"].IndentOutdent){var f=t.normalizeIndentation(h.indentation),p=t.normalizeIndentation(h.indentation+h.appendText),A="\n"+p+"\n"+f;return i?new o["d"](u,A,!0):new o["c"](u,A,-1,p.length-f.length,!0)}if(h.indentAction===g["a"].Outdent){var m=e.unshiftIndent(t,h.indentation);return e._typeCommand(u,"\n"+t.normalizeIndentation(m+h.appendText),i)}}var v=n.getLineContent(u.startLineNumber),_=r["t"](v).substring(0,u.startColumn-1);if(t.autoIndent>=4){var y=l["a"].getIndentForEnter(t.autoIndent,n,u,{unshiftIndent:function(n){return e.unshiftIndent(t,n)},shiftIndent:function(n){return e.shiftIndent(t,n)},normalizeIndentation:function(e){return t.normalizeIndentation(e)}});if(y){var b=s["a"].visibleColumnFromColumn2(t,n,u.getEndPosition()),w=u.endColumn,C="\n";_!==t.normalizeIndentation(y.beforeEnter)&&(C=t.normalizeIndentation(y.beforeEnter)+v.substring(_.length,u.startColumn-1)+"\n",u=new a["a"](u.startLineNumber,1,u.endLineNumber,u.endColumn));var S=n.getLineContent(u.endLineNumber),N=r["q"](S);if(u=N>=0?u.setEndPosition(u.endLineNumber,Math.max(u.endColumn,N+1)):u.setEndPosition(u.endLineNumber,n.getLineMaxColumn(u.endLineNumber)),i)return new o["d"](u,C+t.normalizeIndentation(y.afterEnter),!0);var L=0;return w<=N+1&&(t.insertSpaces||(b=Math.ceil(b/t.indentSize)),L=Math.min(b+1-t.normalizeIndentation(y.afterEnter).length-1,0)),new o["c"](u,C+t.normalizeIndentation(y.afterEnter),0,L,!0)}}return e._typeCommand(u,"\n"+t.normalizeIndentation(_),i)},e._isAutoIndentType=function(e,t,n){if(e.autoIndent<4)return!1;for(var i=0,r=n.length;i<r;i++)if(!t.isCheapToTokenize(n[i].getEndPosition().lineNumber))return!1;return!0},e._runAutoIndentType=function(t,n,i,r){var o=l["a"].getIndentationAtPosition(n,i.startLineNumber,i.startColumn),s=l["a"].getIndentActionForType(t.autoIndent,n,i,r,{shiftIndent:function(n){return e.shiftIndent(t,n)},unshiftIndent:function(n){return e.unshiftIndent(t,n)}});if(null===s)return null;if(s!==t.normalizeIndentation(o)){var u=n.getLineFirstNonWhitespaceColumn(i.startLineNumber);return 0===u?e._typeCommand(new a["a"](i.startLineNumber,0,i.endLineNumber,i.endColumn),t.normalizeIndentation(s)+r,!1):e._typeCommand(new a["a"](i.startLineNumber,0,i.endLineNumber,i.endColumn),t.normalizeIndentation(s)+n.getLineContent(i.startLineNumber).substring(u-1,i.startColumn-1)+r,!1)}return null},e._isAutoClosingOvertype=function(e,t,n,i,r){if("never"===e.autoClosingOvertype)return!1;if(!e.autoClosingPairsClose2.has(r))return!1;for(var o=0,a=n.length;o<a;o++){var u=n[o];if(!u.isEmpty())return!1;var l=u.getPosition(),c=t.getLineContent(l.lineNumber),d=c.charAt(l.column-1);if(d!==r)return!1;var h=Object(s["g"])(r),f=l.column>2?c.charCodeAt(l.column-2):0;if(92===f&&h)return!1;if("auto"===e.autoClosingOvertype){for(var p=!1,g=0,A=i.length;g<A;g++){var m=i[g];if(l.lineNumber===m.startLineNumber&&l.column===m.startColumn){p=!0;break}}if(!p)return!1}}return!0},e._runAutoClosingOvertype=function(e,t,n,i,r){for(var u=[],l=0,c=i.length;l<c;l++){var d=i[l],h=d.getPosition(),f=new a["a"](h.lineNumber,h.column,h.lineNumber,h.column+1);u[l]=new o["a"](f,r)}return new s["e"](1,u,{shouldPushStackElementBefore:1!==e,shouldPushStackElementAfter:!1})},e._autoClosingPairIsSymmetric=function(e){var t=e.open,n=e.close;return t.indexOf(n)>=0||n.indexOf(t)>=0},e._isBeforeClosingBrace=function(t,n,i){var r=t.autoClosingPairsClose2.get(i);if(!r)return!1;for(var o=e._autoClosingPairIsSymmetric(n),s=0,a=r;s<a.length;s++){var u=a[s],l=e._autoClosingPairIsSymmetric(u);if(o||!l)return!0}return!1},e._findAutoClosingPairOpen=function(e,t,n,i){var r=e.autoClosingPairsOpen2.get(i);if(!r)return null;for(var o=null,s=0,u=r;s<u.length;s++){var l=u[s];if(null===o||l.open.length>o.open.length){for(var c=!0,d=0,h=n;d<h.length;d++){var f=h[d],p=t.getValueInRange(new a["a"](f.lineNumber,f.column-l.open.length+1,f.lineNumber,f.column));if(p+i!==l.open){c=!1;break}}c&&(o=l)}}return o},e._isAutoClosingOpenCharType=function(t,n,r,o,a){var u=Object(s["g"])(o),c=u?t.autoClosingQuotes:t.autoClosingBrackets;if("never"===c)return null;var d=this._findAutoClosingPairOpen(t,n,r.map((function(e){return e.getPosition()})),o);if(!d)return null;for(var h=u?t.shouldAutoCloseBefore.quote:t.shouldAutoCloseBefore.bracket,f=0,g=r.length;f<g;f++){var A=r[f];if(!A.isEmpty())return null;var m=A.getPosition(),v=n.getLineContent(m.lineNumber);if(v.length>m.column-1){var _=v.charAt(m.column-1),y=e._isBeforeClosingBrace(t,d,_);if(!y&&!h(_))return null}if(!n.isCheapToTokenize(m.lineNumber))return null;if(1===d.open.length&&u&&"always"!==c){var b=Object(p["a"])(t.wordSeparators);if(a&&m.column>1&&0===b.get(v.charCodeAt(m.column-2)))return null;if(!a&&m.column>2&&0===b.get(v.charCodeAt(m.column-3)))return null}n.forceTokenization(m.lineNumber);var w=n.getLineTokens(m.lineNumber),C=!1;try{C=l["a"].shouldAutoClosePair(d,w,a?m.column:m.column-1)}catch(S){Object(i["e"])(S)}if(!C)return null}return d},e._runAutoClosingOpenCharType=function(e,t,n,i,r,o,a){for(var u=[],l=0,c=i.length;l<c;l++){var d=i[l];u[l]=new v(d,r,o,a.close)}return new s["e"](1,u,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})},e._shouldSurroundChar=function(e,t){return Object(s["g"])(t)?"quotes"===e.autoSurround||"languageDefined"===e.autoSurround:"brackets"===e.autoSurround||"languageDefined"===e.autoSurround},e._isSurroundSelectionType=function(t,n,i,r){if(!e._shouldSurroundChar(t,r)||!t.surroundingPairs.hasOwnProperty(r))return!1;for(var o=Object(s["g"])(r),a=0,u=i.length;a<u;a++){var l=i[a];if(l.isEmpty())return!1;for(var c=!0,d=l.startLineNumber;d<=l.endLineNumber;d++){var h=n.getLineContent(d),f=d===l.startLineNumber?l.startColumn-1:0,p=d===l.endLineNumber?l.endColumn-1:h.length,g=h.substring(f,p);if(/[^ \t]/.test(g)){c=!1;break}}if(c)return!1;if(o&&l.startLineNumber===l.endLineNumber&&l.startColumn+1===l.endColumn){var A=n.getValueInRange(l);if(Object(s["g"])(A))return!1}}return!0},e._runSurroundSelectionType=function(e,t,n,i,r){for(var o=[],a=0,u=i.length;a<u;a++){var l=i[a],c=t.surroundingPairs[r];o[a]=new f(l,r,c)}return new s["e"](0,o,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})},e._isTypeInterceptorElectricChar=function(e,t,n){return!(1!==n.length||!t.isCheapToTokenize(n[0].getEndPosition().lineNumber))},e._typeInterceptorElectricChar=function(e,t,n,u,c){if(!t.electricChars.hasOwnProperty(c)||!u.isEmpty())return null;var d=u.getPosition();n.forceTokenization(d.lineNumber);var h,f=n.getLineTokens(d.lineNumber);try{h=l["a"].onElectricCharacter(c,f,d.column)}catch(N){return Object(i["e"])(N),null}if(!h)return null;if(h.matchOpenBracket){var p=(f.getLineContent()+c).lastIndexOf(h.matchOpenBracket)+1,g=n.findMatchingBracketUp(h.matchOpenBracket,{lineNumber:d.lineNumber,column:p});if(g){if(g.startLineNumber===d.lineNumber)return null;var A=n.getLineContent(g.startLineNumber),m=r["t"](A),v=t.normalizeIndentation(m),_=n.getLineContent(d.lineNumber),y=n.getLineFirstNonWhitespaceColumn(d.lineNumber)||d.column,b=_.substring(y-1,d.column-1),w=v+b+c,C=new a["a"](d.lineNumber,1,d.lineNumber,d.column),S=new o["a"](C,w);return new s["e"](1,[S],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!0})}}return null},e.compositionEndWithInterceptors=function(e,t,n,i,r,l){if(!i||u["a"].selectionsArrEqual(i,r))return null;for(var c=null,d=0,h=r;d<h.length;d++){var f=h[d];if(!f.isEmpty())return null;var p=f.getPosition(),g=n.getValueInRange(new a["a"](p.lineNumber,p.column-1,p.lineNumber,p.column));if(null===c)c=g;else if(c!==g)return null}if(!c)return null;if(this._isAutoClosingOvertype(t,n,r,l,c)){var A=r.map((function(e){return new o["a"](new a["a"](e.positionLineNumber,e.positionColumn,e.positionLineNumber,e.positionColumn+1),"",!1)}));return new s["e"](1,A,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}var m=this._isAutoClosingOpenCharType(t,n,r,c,!1);return m?this._runAutoClosingOpenCharType(e,t,n,r,c,!1,m):null},e.typeWithInterceptors=function(t,n,i,r,a,u){if("\n"===u){for(var l=[],c=0,d=r.length;c<d;c++)l[c]=e._enter(n,i,!1,r[c]);return new s["e"](1,l,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(this._isAutoIndentType(n,i,r)){var h=[],f=!1;for(c=0,d=r.length;c<d;c++)if(h[c]=this._runAutoIndentType(n,i,r[c],u),!h[c]){f=!0;break}if(!f)return new s["e"](1,h,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(this._isAutoClosingOvertype(n,i,r,a,u))return this._runAutoClosingOvertype(t,n,i,r,u);var p=this._isAutoClosingOpenCharType(n,i,r,u,!0);if(p)return this._runAutoClosingOpenCharType(t,n,i,r,u,!0,p);if(this._isSurroundSelectionType(n,i,r,u))return this._runSurroundSelectionType(t,n,i,r,u);if(this._isTypeInterceptorElectricChar(n,i,r)){var g=this._typeInterceptorElectricChar(t,n,i,r[0],u);if(g)return g}var A=[];for(c=0,d=r.length;c<d;c++)A[c]=new o["a"](r[c],u);var m=1!==t;return" "===u&&(m=!0),new s["e"](1,A,{shouldPushStackElementBefore:m,shouldPushStackElementAfter:!1})},e.typeWithoutInterceptors=function(e,t,n,i,r){for(var a=[],u=0,l=i.length;u<l;u++)a[u]=new o["a"](i[u],r);return new s["e"](1,a,{shouldPushStackElementBefore:1!==e,shouldPushStackElementAfter:!1})},e.lineInsertBefore=function(e,t,n){if(null===t||null===n)return[];for(var i=[],r=0,s=n.length;r<s;r++){var u=n[r].positionLineNumber;if(1===u)i[r]=new o["d"](new a["a"](1,1,1,1),"\n");else{u--;var l=t.getLineMaxColumn(u);i[r]=this._enter(e,t,!1,new a["a"](u,l,u,l))}}return i},e.lineInsertAfter=function(e,t,n){if(null===t||null===n)return[];for(var i=[],r=0,o=n.length;r<o;r++){var s=n[r].positionLineNumber,u=t.getLineMaxColumn(s);i[r]=this._enter(e,t,!1,new a["a"](s,u,s,u))}return i},e.lineBreakInsert=function(e,t,n){for(var i=[],r=0,o=n.length;r<o;r++)i[r]=this._enter(e,t,!0,n[r]);return i},e}(),v=function(e){function t(t,n,i,r){var o=e.call(this,t,(i?n:"")+r,0,-r.length)||this;return o._openCharacter=n,o._closeCharacter=r,o.closeCharacterRange=null,o.enclosingRange=null,o}return A(t,e),t.prototype.computeCursorState=function(t,n){var i=n.getInverseEditOperations(),r=i[0].range;return this.closeCharacterRange=new a["a"](r.startLineNumber,r.endColumn-this._closeCharacter.length,r.endLineNumber,r.endColumn),this.enclosingRange=new a["a"](r.startLineNumber,r.endColumn-this._openCharacter.length-this._closeCharacter.length,r.endLineNumber,r.endColumn),e.prototype.computeCursorState.call(this,t,n)},t}(o["c"])},GZrW:function(e,t,n){"use strict";n.r(t);var i=n("+hIS");Object(i["a"])({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:function(){return n.e(188).then(n.bind(null,"Csoz"))}})},Gb1F:function(e,t,n){"use strict";n.r(t);var i=n("+hIS");Object(i["a"])({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:function(){return n.e(184).then(n.bind(null,"ynbn"))}})},H6Gb:function(e,t,n){"use strict";n.r(t);var i=n("+hIS");Object(i["a"])({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:function(){return n.e(171).then(n.bind(null,"lXEz"))}})},HdwC:function(e,t,n){"use strict";n.d(t,"b",(function(){return A})),n.d(t,"a",(function(){return v}));var i=n("D3Dy"),r=n("MI8n"),o=n("pmY6"),s=n("MNsG"),a=function(){function e(e,t){this.chr=e,this.type=t,this.width=0}return e.prototype.fulfill=function(e){this.width=e},e}(),u=function(){function e(e,t){this._bareFontInfo=e,this._requests=t,this._container=null,this._testElements=null}return e.prototype.read=function(){this._createDomElements(),document.body.appendChild(this._container),this._readFromDomElements(),document.body.removeChild(this._container),this._container=null,this._testElements=null},e.prototype._createDomElements=function(){var t=document.createElement("div");t.style.position="absolute",t.style.top="-50000px",t.style.width="50000px";var n=document.createElement("div");n.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),n.style.fontWeight=this._bareFontInfo.fontWeight,n.style.fontSize=this._bareFontInfo.fontSize+"px",n.style.fontFeatureSettings=this._bareFontInfo.fontFeatureSettings,n.style.lineHeight=this._bareFontInfo.lineHeight+"px",n.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",t.appendChild(n);var i=document.createElement("div");i.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),i.style.fontWeight="bold",i.style.fontSize=this._bareFontInfo.fontSize+"px",i.style.fontFeatureSettings=this._bareFontInfo.fontFeatureSettings,i.style.lineHeight=this._bareFontInfo.lineHeight+"px",i.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",t.appendChild(i);var r=document.createElement("div");r.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),r.style.fontWeight=this._bareFontInfo.fontWeight,r.style.fontSize=this._bareFontInfo.fontSize+"px",r.style.fontFeatureSettings=this._bareFontInfo.fontFeatureSettings,r.style.lineHeight=this._bareFontInfo.lineHeight+"px",r.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",r.style.fontStyle="italic",t.appendChild(r);for(var o=[],s=0,a=this._requests;s<a.length;s++){var u=a[s],l=void 0;0===u.type&&(l=n),2===u.type&&(l=i),1===u.type&&(l=r),l.appendChild(document.createElement("br"));var c=document.createElement("span");e._render(c,u),l.appendChild(c),o.push(c)}this._container=t,this._testElements=o},e._render=function(e,t){if(" "===t.chr){for(var n=" ",i=0;i<8;i++)n+=n;e.innerHTML=n}else{var r=t.chr;for(i=0;i<8;i++)r+=r;e.textContent=r}},e.prototype._readFromDomElements=function(){for(var e=0,t=this._requests.length;e<t;e++){var n=this._requests[e],i=this._testElements[e];n.fulfill(i.offsetWidth/256)}},e}();function l(e,t){var n=new u(e,t);n.read()}var c=n("o39E"),d=n("iDAx"),h=n("/UlZ"),f=n("+3Gp"),p=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),g=function(){function e(){this._keys=Object.create(null),this._values=Object.create(null)}return e.prototype.has=function(e){var t=e.getId();return!!this._values[t]},e.prototype.get=function(e){var t=e.getId();return this._values[t]},e.prototype.put=function(e,t){var n=e.getId();this._keys[n]=e,this._values[n]=t},e.prototype.remove=function(e){var t=e.getId();delete this._keys[t],delete this._values[t]},e.prototype.getValues=function(){var e=this;return Object.keys(this._keys).map((function(t){return e._values[t]}))},e}();function A(){m.INSTANCE.clearCache()}var m=function(e){function t(){var t=e.call(this)||this;return t._onDidChange=t._register(new r["a"]),t.onDidChange=t._onDidChange.event,t._cache=new g,t._evictUntrustedReadingsTimeout=-1,t}return p(t,e),t.prototype.dispose=function(){-1!==this._evictUntrustedReadingsTimeout&&(clearTimeout(this._evictUntrustedReadingsTimeout),this._evictUntrustedReadingsTimeout=-1),e.prototype.dispose.call(this)},t.prototype.clearCache=function(){this._cache=new g,this._onDidChange.fire()},t.prototype._writeToCache=function(e,t){var n=this;this._cache.put(e,t),t.isTrusted||-1!==this._evictUntrustedReadingsTimeout||(this._evictUntrustedReadingsTimeout=setTimeout((function(){n._evictUntrustedReadingsTimeout=-1,n._evictUntrustedReadings()}),5e3))},t.prototype._evictUntrustedReadings=function(){for(var e=this._cache.getValues(),t=!1,n=0,i=e.length;n<i;n++){var r=e[n];r.isTrusted||(t=!0,this._cache.remove(r))}t&&this._onDidChange.fire()},t.prototype.readConfiguration=function(e){if(!this._cache.has(e)){var n=t._actualReadConfiguration(e);(n.typicalHalfwidthCharacterWidth<=2||n.typicalFullwidthCharacterWidth<=2||n.spaceWidth<=2||n.maxDigitWidth<=2)&&(n=new f["b"]({zoomLevel:i["c"](),fontFamily:n.fontFamily,fontWeight:n.fontWeight,fontSize:n.fontSize,fontFeatureSettings:n.fontFeatureSettings,lineHeight:n.lineHeight,letterSpacing:n.letterSpacing,isMonospace:n.isMonospace,typicalHalfwidthCharacterWidth:Math.max(n.typicalHalfwidthCharacterWidth,5),typicalFullwidthCharacterWidth:Math.max(n.typicalFullwidthCharacterWidth,5),canUseHalfwidthRightwardsArrow:n.canUseHalfwidthRightwardsArrow,spaceWidth:Math.max(n.spaceWidth,5),middotWidth:Math.max(n.middotWidth,5),maxDigitWidth:Math.max(n.maxDigitWidth,5)},!1)),this._writeToCache(e,n)}return this._cache.get(e)},t.createRequest=function(e,t,n,i){var r=new a(e,t);return n.push(r),i&&i.push(r),r},t._actualReadConfiguration=function(e){var t=[],n=[],r=this.createRequest("n",0,t,n),o=this.createRequest("\uff4d",0,t,null),s=this.createRequest(" ",0,t,n),a=this.createRequest("0",0,t,n),u=this.createRequest("1",0,t,n),c=this.createRequest("2",0,t,n),d=this.createRequest("3",0,t,n),p=this.createRequest("4",0,t,n),g=this.createRequest("5",0,t,n),A=this.createRequest("6",0,t,n),m=this.createRequest("7",0,t,n),v=this.createRequest("8",0,t,n),_=this.createRequest("9",0,t,n),y=this.createRequest("\u2192",0,t,n),b=this.createRequest("\uffeb",0,t,null),w=this.createRequest("\xb7",0,t,n);this.createRequest("|",0,t,n),this.createRequest("/",0,t,n),this.createRequest("-",0,t,n),this.createRequest("_",0,t,n),this.createRequest("i",0,t,n),this.createRequest("l",0,t,n),this.createRequest("m",0,t,n),this.createRequest("|",1,t,n),this.createRequest("_",1,t,n),this.createRequest("i",1,t,n),this.createRequest("l",1,t,n),this.createRequest("m",1,t,n),this.createRequest("n",1,t,n),this.createRequest("|",2,t,n),this.createRequest("_",2,t,n),this.createRequest("i",2,t,n),this.createRequest("l",2,t,n),this.createRequest("m",2,t,n),this.createRequest("n",2,t,n),l(e,t);for(var C=Math.max(a.width,u.width,c.width,d.width,p.width,g.width,A.width,m.width,v.width,_.width),S=e.fontFeatureSettings===h["d"].OFF,N=n[0].width,L=1,E=n.length;S&&L<E;L++){var x=N-n[L].width;if(x<-.001||x>.001){S=!1;break}}var O=!0;S&&b.width!==N&&(O=!1),b.width>y.width&&(O=!1);var B=i["b"]()>2e3;return new f["b"]({zoomLevel:i["c"](),fontFamily:e.fontFamily,fontWeight:e.fontWeight,fontSize:e.fontSize,fontFeatureSettings:e.fontFeatureSettings,lineHeight:e.lineHeight,letterSpacing:e.letterSpacing,isMonospace:S,typicalHalfwidthCharacterWidth:r.width,typicalFullwidthCharacterWidth:o.width,canUseHalfwidthRightwardsArrow:O,spaceWidth:s.width,middotWidth:w.width,maxDigitWidth:C},B)},t.INSTANCE=new t,t}(o["a"]),v=function(e){function t(t,n,r,o){void 0===r&&(r=null);var s=e.call(this,t,n)||this;return s.accessibilityService=o,s._elementSizeObserver=s._register(new c["a"](r,n.dimension,(function(){return s._onReferenceDomElementSizeChanged()}))),s._register(m.INSTANCE.onDidChange((function(){return s._onCSSBasedConfigurationChanged()}))),s._validatedOptions.get(9)&&s._elementSizeObserver.startObserving(),s._register(i["o"]((function(e){return s._recomputeOptions()}))),s._register(s.accessibilityService.onDidChangeScreenReaderOptimized((function(){return s._recomputeOptions()}))),s._recomputeOptions(),s}return p(t,e),t.applyFontInfoSlow=function(e,t){e.style.fontFamily=t.getMassagedFontFamily(),e.style.fontWeight=t.fontWeight,e.style.fontSize=t.fontSize+"px",e.style.fontFeatureSettings=t.fontFeatureSettings,e.style.lineHeight=t.lineHeight+"px",e.style.letterSpacing=t.letterSpacing+"px"},t.applyFontInfo=function(e,t){e.setFontFamily(t.getMassagedFontFamily()),e.setFontWeight(t.fontWeight),e.setFontSize(t.fontSize),e.setFontFeatureSettings(t.fontFeatureSettings),e.setLineHeight(t.lineHeight),e.setLetterSpacing(t.letterSpacing)},t.prototype._onReferenceDomElementSizeChanged=function(){this._recomputeOptions()},t.prototype._onCSSBasedConfigurationChanged=function(){this._recomputeOptions()},t.prototype.observeReferenceElement=function(e){this._elementSizeObserver.observe(e)},t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype._getExtraEditorClassName=function(){var e="";return i["k"]||i["n"]||(e+="no-user-select "),s["e"]&&(e+="mac "),e},t.prototype._getEnvConfiguration=function(){return{extraEditorClassName:this._getExtraEditorClassName(),outerWidth:this._elementSizeObserver.getWidth(),outerHeight:this._elementSizeObserver.getHeight(),emptySelectionClipboard:i["m"]||i["h"],pixelRatio:i["a"](),zoomLevel:i["c"](),accessibilitySupport:this.accessibilityService.isScreenReaderOptimized()?2:this.accessibilityService.getAccessibilitySupport()}},t.prototype.readConfiguration=function(e){return m.INSTANCE.readConfiguration(e)},t}(d["a"])},"I/Lx":function(e,t,n){"use strict";n.r(t);var i=n("+hIS");Object(i["a"])({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:function(){return n.e(152).then(n.bind(null,"yswY"))}})},"J+ZK":function(e,t,n){},"JQT/":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));var i,r=n("MI8n"),o=Object.freeze((function(e,t){var n=setTimeout(e.bind(t),0);return{dispose:function(){clearTimeout(n)}}}));(function(e){function t(t){return t===e.None||t===e.Cancelled||(t instanceof s||!(!t||"object"!==typeof t)&&("boolean"===typeof t.isCancellationRequested&&"function"===typeof t.onCancellationRequested))}e.isCancellationToken=t,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:r["b"].None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:o})})(i||(i={}));var s=function(){function e(){this._isCancelled=!1,this._emitter=null}return e.prototype.cancel=function(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))},Object.defineProperty(e.prototype,"isCancellationRequested",{get:function(){return this._isCancelled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onCancellationRequested",{get:function(){return this._isCancelled?o:(this._emitter||(this._emitter=new r["a"]),this._emitter.event)},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this._emitter&&(this._emitter.dispose(),this._emitter=null)},e}(),a=function(){function e(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}return Object.defineProperty(e.prototype,"token",{get:function(){return this._token||(this._token=new s),this._token},enumerable:!0,configurable:!0}),e.prototype.cancel=function(){this._token?this._token instanceof s&&this._token.cancel():this._token=i.Cancelled},e.prototype.dispose=function(e){void 0===e&&(e=!1),e&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof s&&this._token.dispose():this._token=i.None},e}()},JYp7:function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return i})),n.d(t,"d",(function(){return a})),n.d(t,"a",(function(){return l}));var i,r=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o={done:!0,value:void 0};(function(e){var t={next:function(){return o}};function n(){return t}function i(e){var t=!1;return{next:function(){return t?o:(t=!0,{done:!1,value:e})}}}function r(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=e.length),{next:function(){return t>=n?o:{done:!1,value:e[t++]}}}}function a(e){return{next:function(){var t=e.next();return t.done?o:{done:!1,value:t.value}}}}function u(t){return t?Array.isArray(t)?e.fromArray(t):t:e.empty()}function l(e,t){return{next:function(){var n=e.next();return n.done?o:{done:!1,value:t(n.value)}}}}function c(e,t){return{next:function(){while(1){var n=e.next();if(n.done)return o;if(t(n.value))return{done:!1,value:n.value}}}}}function d(e,t){for(var n=e.next();!n.done;n=e.next())t(n.value)}function h(e,t){void 0===t&&(t=Number.POSITIVE_INFINITY);var n=[];if(0===t)return n;for(var i=0,r=e.next();!r.done;r=e.next())if(n.push(r.value),++i>=t)break;return n}function f(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=0;return{next:function(){if(n>=e.length)return o;var t=e[n],i=t.next();return i.done?(n++,this.next()):i}}}function p(e){return new s(e)}e.empty=n,e.single=i,e.fromArray=r,e.fromNativeIterator=a,e.from=u,e.map=l,e.filter=c,e.forEach=d,e.collect=h,e.concat=f,e.chain=p})(i||(i={}));var s=function(){function e(e){this.it=e}return e.prototype.next=function(){return this.it.next()},e}();function a(e){return Array.isArray(e)?i.fromArray(e):e||i.empty()}var u=function(){function e(e,t,n,i){void 0===t&&(t=0),void 0===n&&(n=e.length),void 0===i&&(i=t-1),this.items=e,this.start=t,this.end=n,this.index=i}return e.prototype.first=function(){return this.index=this.start,this.current()},e.prototype.next=function(){return this.index=Math.min(this.index+1,this.end),this.current()},e.prototype.current=function(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]},e}(),l=function(e){function t(t,n,i,r){return void 0===n&&(n=0),void 0===i&&(i=t.length),void 0===r&&(r=n-1),e.call(this,t,n,i,r)||this}return r(t,e),t.prototype.current=function(){return e.prototype.current.call(this)},t.prototype.previous=function(){return this.index=Math.max(this.index-1,this.start-1),this.current()},t.prototype.first=function(){return this.index=this.start,this.current()},t.prototype.last=function(){return this.index=this.end-1,this.current()},t.prototype.parent=function(){return null},t}(u);(function(){function e(e,t){this.iterator=e,this.fn=t}e.prototype.next=function(){return this.fn(this.iterator.next())}})()},JlLP:function(e,t,n){"use strict";n.r(t);var i=n("+hIS");Object(i["a"])({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:function(){return n.e(173).then(n.bind(null,"W1QP"))}})},JwdM:function(e,t,n){"use strict";function i(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}function r(){}Object.defineProperty(t,"__esModule",{value:!0}),t.processSize=i,t.noop=r},KDc4:function(e,t,n){"use strict";var i;n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return r})),function(e){e[e["None"]=0]="None",e[e["Indent"]=1]="Indent",e[e["IndentOutdent"]=2]="IndentOutdent",e[e["Outdent"]=3]="Outdent"}(i||(i={}));var r=function(){function e(e){if(this.open=e.open,this.close=e.close,this._standardTokenMask=0,Array.isArray(e.notIn))for(var t=0,n=e.notIn.length;t<n;t++){var i=e.notIn[t];switch(i){case"string":this._standardTokenMask|=2;break;case"comment":this._standardTokenMask|=1;break;case"regex":this._standardTokenMask|=4;break}}}return e.prototype.isOK=function(e){return 0===(this._standardTokenMask&e)},e}()},KTWA:function(e,t,n){"use strict";n.r(t);var i=n("3/fG"),r=n("sswD"),o=n("wQH0"),s=n("aokT"),a=function(){function e(e,t){this._selection=e,this._isMovingLeft=t,this._cutStartIndex=-1,this._cutEndIndex=-1,this._moved=!1,this._selectionId=null}return e.prototype.getEditOperations=function(e,t){var n=this._selection;if(this._selectionId=t.trackSelection(n),n.startLineNumber===n.endLineNumber&&(!this._isMovingLeft||0!==n.startColumn)&&(this._isMovingLeft||n.endColumn!==e.getLineMaxColumn(n.startLineNumber))){var i,r,o,a=n.selectionStartLineNumber,u=e.getLineContent(a);this._isMovingLeft?(i=u.substring(0,n.startColumn-2),r=u.substring(n.startColumn-1,n.endColumn-1),o=u.substring(n.startColumn-2,n.startColumn-1)+u.substring(n.endColumn-1)):(i=u.substring(0,n.startColumn-1)+u.substring(n.endColumn-1,n.endColumn),r=u.substring(n.startColumn-1,n.endColumn-1),o=u.substring(n.endColumn));var l=i+r+o;t.addEditOperation(new s["a"](a,1,a,e.getLineMaxColumn(a)),null),t.addEditOperation(new s["a"](a,1,a,1),l),this._cutStartIndex=n.startColumn+(this._isMovingLeft?-1:1),this._cutEndIndex=this._cutStartIndex+n.endColumn-n.startColumn,this._moved=!0}},e.prototype.computeCursorState=function(e,t){var n=t.getTrackedSelection(this._selectionId);return this._moved&&(n=n.setStartPosition(n.startLineNumber,this._cutStartIndex),n=n.setEndPosition(n.startLineNumber,this._cutEndIndex)),n},e}(),u=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),l=function(e){function t(t,n){var i=e.call(this,n)||this;return i.left=t,i}return u(t,e),t.prototype.run=function(e,t){if(t.hasModel()){for(var n=[],i=t.getSelections(),r=0,o=i;r<o.length;r++){var s=o[r];n.push(new a(s,this.left))}t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()}},t}(r["b"]),c=function(e){function t(){return e.call(this,!0,{id:"editor.action.moveCarretLeftAction",label:i["a"]("caret.moveLeft","Move Caret Left"),alias:"Move Caret Left",precondition:o["a"].writable})||this}return u(t,e),t}(l),d=function(e){function t(){return e.call(this,!1,{id:"editor.action.moveCarretRightAction",label:i["a"]("caret.moveRight","Move Caret Right"),alias:"Move Caret Right",precondition:o["a"].writable})||this}return u(t,e),t}(l);Object(r["f"])(c),Object(r["f"])(d)},KaET:function(e,t,n){},KgQ1:function(e,t,n){},Krc3:function(e,t,n){},LCkn:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return a}));var i=n("gCVg"),r=function(){function e(e,t,n){void 0===n&&(n=!1),this._range=e,this._text=t,this.insertsAutoWhitespace=n}return e.prototype.getEditOperations=function(e,t){t.addTrackedEditOperation(this._range,this._text)},e.prototype.computeCursorState=function(e,t){var n=t.getInverseEditOperations(),r=n[0].range;return new i["a"](r.endLineNumber,r.endColumn,r.endLineNumber,r.endColumn)},e}(),o=(function(){function e(e,t){this._range=e,this._text=t}e.prototype.getEditOperations=function(e,t){t.addTrackedEditOperation(this._range,this._text)},e.prototype.computeCursorState=function(e,t){var n=t.getInverseEditOperations(),r=n[0].range;return new i["a"](r.startLineNumber,r.startColumn,r.endLineNumber,r.endColumn)}}(),function(){function e(e,t,n){void 0===n&&(n=!1),this._range=e,this._text=t,this.insertsAutoWhitespace=n}return e.prototype.getEditOperations=function(e,t){t.addTrackedEditOperation(this._range,this._text)},e.prototype.computeCursorState=function(e,t){var n=t.getInverseEditOperations(),r=n[0].range;return new i["a"](r.startLineNumber,r.startColumn,r.startLineNumber,r.startColumn)},e}()),s=function(){function e(e,t,n,i,r){void 0===r&&(r=!1),this._range=e,this._text=t,this._columnDeltaOffset=i,this._lineNumberDeltaOffset=n,this.insertsAutoWhitespace=r}return e.prototype.getEditOperations=function(e,t){t.addTrackedEditOperation(this._range,this._text)},e.prototype.computeCursorState=function(e,t){var n=t.getInverseEditOperations(),r=n[0].range;return new i["a"](r.endLineNumber+this._lineNumberDeltaOffset,r.endColumn+this._columnDeltaOffset,r.endLineNumber+this._lineNumberDeltaOffset,r.endColumn+this._columnDeltaOffset)},e}(),a=function(){function e(e,t,n,i){void 0===i&&(i=!1),this._range=e,this._text=t,this._initialSelection=n,this._forceMoveMarkers=i,this._selectionId=null}return e.prototype.getEditOperations=function(e,t){t.addTrackedEditOperation(this._range,this._text,this._forceMoveMarkers),this._selectionId=t.trackSelection(this._initialSelection)},e.prototype.computeCursorState=function(e,t){return t.getTrackedSelection(this._selectionId)},e}()},LRks:function(e,t,n){"use strict";n.r(t);var i=n("+hIS");Object(i["a"])({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:function(){return n.e(192).then(n.bind(null,"05+/"))}})},"LeU+":function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o}));var i=n("CZ1j"),r=function(){function e(e,t){this.index=e,this.remainder=t}return e}(),o=function(){function e(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}return e.prototype.insertValues=function(e,t){e=Object(i["a"])(e);var n=this.values,r=this.prefixSum,o=t.length;return 0!==o&&(this.values=new Uint32Array(n.length+o),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e),e+o),this.values.set(t,e),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},e.prototype.changeValue=function(e,t){return e=Object(i["a"])(e),t=Object(i["a"])(t),this.values[e]!==t&&(this.values[e]=t,e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),!0)},e.prototype.removeValues=function(e,t){e=Object(i["a"])(e),t=Object(i["a"])(t);var n=this.values,r=this.prefixSum;if(e>=n.length)return!1;var o=n.length-e;return t>=o&&(t=o),0!==t&&(this.values=new Uint32Array(n.length-t),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},e.prototype.getTotalValue=function(){return 0===this.values.length?0:this._getAccumulatedValue(this.values.length-1)},e.prototype.getAccumulatedValue=function(e){return e<0?0:(e=Object(i["a"])(e),this._getAccumulatedValue(e))},e.prototype._getAccumulatedValue=function(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];var t=this.prefixSumValidIndex[0]+1;0===t&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(var n=t;n<=e;n++)this.prefixSum[n]=this.prefixSum[n-1]+this.values[n];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]},e.prototype.getIndexOf=function(e){e=Math.floor(e),this.getTotalValue();var t=0,n=this.values.length-1,i=0,o=0,s=0;while(t<=n)if(i=t+(n-t)/2|0,o=this.prefixSum[i],s=o-this.values[i],e<s)n=i-1;else{if(!(e>=o))break;t=i+1}return new r(i,e-s)},e}()},LexI:function(e,t,n){"use strict";n.r(t);var i=n("+hIS");Object(i["a"])({id:"go",extensions:[".go"],aliases:["Go"],loader:function(){return n.e(153).then(n.bind(null,"lHAa"))}})},Ll0s:function(e,t,n){"use strict";n.d(t,"b",(function(){return p})),n.d(t,"f",(function(){return g})),n.d(t,"c",(function(){return A})),n.d(t,"d",(function(){return _})),n.d(t,"e",(function(){return y})),n.d(t,"a",(function(){return b})),n.d(t,"g",(function(){return w}));var i=n("/cxE"),r=n("N0LK"),o=n("cGHE"),s=n("aokT"),a=n("gCVg"),u=n("tX9W"),l=n("cMvZ"),c=function(){return!0},d=function(){return!1},h=function(e){return" "===e||"\t"===e};function f(e,t,n){e.has(t)?e.get(t).push(n):e.set(t,[n])}var p=function(){function e(t,n,i){this._languageIdentifier=t;var r=i.options,o=r.get(107);this.readOnly=r.get(68),this.tabSize=n.tabSize,this.indentSize=n.indentSize,this.insertSpaces=n.insertSpaces,this.lineHeight=r.get(49),this.pageSize=Math.max(1,Math.floor(o.height/this.lineHeight)-2),this.useTabStops=r.get(95),this.wordSeparators=r.get(96),this.emptySelectionClipboard=r.get(25),this.copyWithSyntaxHighlighting=r.get(15),this.multiCursorMergeOverlapping=r.get(58),this.multiCursorPaste=r.get(60),this.autoClosingBrackets=r.get(5),this.autoClosingQuotes=r.get(7),this.autoClosingOvertype=r.get(6),this.autoSurround=r.get(10),this.autoIndent=r.get(8),this.autoClosingPairsOpen2=new Map,this.autoClosingPairsClose2=new Map,this.surroundingPairs={},this._electricChars=null,this.shouldAutoCloseBefore={quote:e._getShouldAutoClose(t,this.autoClosingQuotes),bracket:e._getShouldAutoClose(t,this.autoClosingBrackets)};var s=e._getAutoClosingPairs(t);if(s)for(var a=0,u=s;a<u.length;a++){var l=u[a];f(this.autoClosingPairsOpen2,l.open.charAt(l.open.length-1),l),1===l.close.length&&f(this.autoClosingPairsClose2,l.close,l)}var c=e._getSurroundingPairs(t);if(c)for(var d=0,h=c;d<h.length;d++){l=h[d];this.surroundingPairs[l.open]=l.close}}return e.shouldRecreate=function(e){return e.hasChanged(107)||e.hasChanged(96)||e.hasChanged(25)||e.hasChanged(58)||e.hasChanged(60)||e.hasChanged(5)||e.hasChanged(7)||e.hasChanged(6)||e.hasChanged(10)||e.hasChanged(95)||e.hasChanged(49)||e.hasChanged(68)},Object.defineProperty(e.prototype,"electricChars",{get:function(){if(!this._electricChars){this._electricChars={};var t=e._getElectricCharacters(this._languageIdentifier);if(t)for(var n=0,i=t;n<i.length;n++){var r=i[n];this._electricChars[r]=!0}}return this._electricChars},enumerable:!0,configurable:!0}),e.prototype.normalizeIndentation=function(e){return u["b"].normalizeIndentation(e,this.indentSize,this.insertSpaces)},e._getElectricCharacters=function(e){try{return l["a"].getElectricCharacters(e.id)}catch(t){return Object(i["e"])(t),null}},e._getAutoClosingPairs=function(e){try{return l["a"].getAutoClosingPairs(e.id)}catch(t){return Object(i["e"])(t),null}},e._getShouldAutoClose=function(t,n){switch(n){case"beforeWhitespace":return h;case"languageDefined":return e._getLanguageDefinedShouldAutoClose(t);case"always":return c;case"never":return d}},e._getLanguageDefinedShouldAutoClose=function(e){try{var t=l["a"].getAutoCloseBeforeSet(e.id);return function(e){return-1!==t.indexOf(e)}}catch(n){return Object(i["e"])(n),d}},e._getSurroundingPairs=function(e){try{return l["a"].getSurroundingPairs(e.id)}catch(t){return Object(i["e"])(t),null}},e}(),g=function(){function e(t,n,i,r){this.selectionStart=t,this.selectionStartLeftoverVisibleColumns=n,this.position=i,this.leftoverVisibleColumns=r,this.selection=e._computeSelection(this.selectionStart,this.position)}return e.prototype.equals=function(e){return this.selectionStartLeftoverVisibleColumns===e.selectionStartLeftoverVisibleColumns&&this.leftoverVisibleColumns===e.leftoverVisibleColumns&&this.position.equals(e.position)&&this.selectionStart.equalsRange(e.selectionStart)},e.prototype.hasSelection=function(){return!this.selection.isEmpty()||!this.selectionStart.isEmpty()},e.prototype.move=function(t,n,i,r){return t?new e(this.selectionStart,this.selectionStartLeftoverVisibleColumns,new o["a"](n,i),r):new e(new s["a"](n,i,n,i),r,new o["a"](n,i),r)},e._computeSelection=function(e,t){var n,i,r,o;return e.isEmpty()?(n=e.startLineNumber,i=e.startColumn,r=t.lineNumber,o=t.column):t.isBeforeOrEqual(e.getStartPosition())?(n=e.endLineNumber,i=e.endColumn,r=t.lineNumber,o=t.column):(n=e.startLineNumber,i=e.startColumn,r=t.lineNumber,o=t.column),new a["a"](n,i,r,o)},e}(),A=function(){function e(e,t,n){this.model=t,this.viewModel=n,this.config=new p(this.model.getLanguageIdentifier(),this.model.getOptions(),e)}return e.prototype.validateViewPosition=function(e,t){return this.viewModel.coordinatesConverter.validateViewPosition(e,t)},e.prototype.validateViewRange=function(e,t){return this.viewModel.coordinatesConverter.validateViewRange(e,t)},e.prototype.convertViewRangeToModelRange=function(e){return this.viewModel.coordinatesConverter.convertViewRangeToModelRange(e)},e.prototype.convertViewPositionToModelPosition=function(e,t){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new o["a"](e,t))},e.prototype.convertModelPositionToViewPosition=function(e){return this.viewModel.coordinatesConverter.convertModelPositionToViewPosition(e)},e.prototype.convertModelRangeToViewRange=function(e){return this.viewModel.coordinatesConverter.convertModelRangeToViewRange(e)},e.prototype.getCurrentScrollTop=function(){return this.viewModel.viewLayout.getCurrentScrollTop()},e.prototype.getCompletelyVisibleViewRange=function(){return this.viewModel.getCompletelyVisibleViewRange()},e.prototype.getCompletelyVisibleModelRange=function(){var e=this.viewModel.getCompletelyVisibleViewRange();return this.viewModel.coordinatesConverter.convertViewRangeToModelRange(e)},e.prototype.getCompletelyVisibleViewRangeAtScrollTop=function(e){return this.viewModel.getCompletelyVisibleViewRangeAtScrollTop(e)},e.prototype.getVerticalOffsetForViewLine=function(e){return this.viewModel.viewLayout.getVerticalOffsetForLineNumber(e)},e}(),m=function(){function e(e){this.modelState=e,this.viewState=null}return e}(),v=function(){function e(e){this.modelState=null,this.viewState=e}return e}(),_=function(){function e(e,t){this.modelState=e,this.viewState=t}return e.fromModelState=function(e){return new m(e)},e.fromViewState=function(e){return new v(e)},e.fromModelSelection=function(t){var n=t.selectionStartLineNumber,i=t.selectionStartColumn,r=t.positionLineNumber,a=t.positionColumn,u=new g(new s["a"](n,i,n,i),0,new o["a"](r,a),0);return e.fromModelState(u)},e.fromModelSelections=function(e){for(var t=[],n=0,i=e.length;n<i;n++)t[n]=this.fromModelSelection(e[n]);return t},e.prototype.equals=function(e){return this.viewState.equals(e.viewState)&&this.modelState.equals(e.modelState)},e}(),y=function(){function e(e,t,n){this.type=e,this.commands=t,this.shouldPushStackElementBefore=n.shouldPushStackElementBefore,this.shouldPushStackElementAfter=n.shouldPushStackElementAfter}return e}(),b=function(){function e(){}return e.visibleColumnFromColumn=function(t,n,i){var o=t.length,s=n-1<o?n-1:o,a=0,u=0;while(u<s){var l=r["u"](t,s,u);if(u+=l>=65536?2:1,9===l)a=e.nextRenderTabStop(a,i);else{var c=r["s"](l);while(u<s){var d=r["u"](t,s,u),h=r["s"](d);if(r["b"](c,h))break;u+=d>=65536?2:1,c=h}r["y"](l)||r["w"](l)?a+=2:a+=1}}return a},e.visibleColumnFromColumn2=function(e,t,n){return this.visibleColumnFromColumn(t.getLineContent(n.lineNumber),n.column,e.tabSize)},e.columnFromVisibleColumn=function(t,n,i){if(n<=0)return 1;var o=t.length,s=0,a=1,u=0;while(u<o){var l=r["u"](t,o,u);u+=l>=65536?2:1;var c=void 0;if(9===l)c=e.nextRenderTabStop(s,i);else{var d=r["s"](l);while(u<o){var h=r["u"](t,o,u),f=r["s"](h);if(r["b"](d,f))break;u+=h>=65536?2:1,d=f}c=r["y"](l)||r["w"](l)?s+2:s+1}var p=u+1;if(c>=n){var g=n-s,A=c-n;return A<g?p:a}s=c,a=p}return o+1},e.columnFromVisibleColumn2=function(e,t,n,i){var r=this.columnFromVisibleColumn(t.getLineContent(n),i,e.tabSize),o=t.getLineMinColumn(n);if(r<o)return o;var s=t.getLineMaxColumn(n);return r>s?s:r},e.nextRenderTabStop=function(e,t){return e+t-e%t},e.nextIndentTabStop=function(e,t){return e+t-e%t},e.prevRenderTabStop=function(e,t){return e-1-(e-1)%t},e.prevIndentTabStop=function(e,t){return e-1-(e-1)%t},e}();function w(e){return"'"===e||'"'===e||"`"===e}},"M/lh":function(e,t,n){self["MonacoEnvironment"]=function(e){function t(e){return e.replace(/\/$/,"")}return{getWorkerUrl:function(i,r){var o=n.p,s=(o?t(o)+"/":"")+e[r];if(/^(http:)|(https:)|(file:)/.test(s)){var a=String(window.location),u=a.substr(0,a.length-window.location.hash.length-window.location.search.length-window.location.pathname.length);if(s.substring(0,u.length)!==u){var l="/*"+r+'*/importScripts("'+s+'");';return"data:text/javascript;charset=utf-8,"+encodeURIComponent(l)}}return s}}}({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"}),n("1YUG"),n("oQaD"),n("bk7F"),n("KTWA"),n("w29/"),n("n01l"),n("dgXF"),n("cIJc"),n("oiKk"),n("rugR"),n("tXSY"),n("ep4t"),e.exports=n("8z58"),n("CdFp"),n("23p7"),n("OOlL"),n("li8W"),n("kdPm"),n("ApJL"),n("jrbv"),n("gqHg"),n("p3Ex"),n("E+ie"),n("9B1q"),n("9XAT"),n("SvYn"),n("I/Lx"),n("LexI"),n("0oIH"),n("+a1H"),n("hFdI"),n("c2dO"),n("zQEy"),n("k7mE"),n("cldp"),n("p5tG"),n("Dvnd"),n("FvUK"),n("ZvGG"),n("QFiB"),n("ZkA/"),n("/cAr"),n("xYNL"),n("jVwG"),n("6lNC"),n("q8qy"),n("sStQ"),n("oKJv"),n("H6Gb"),n("y3CF"),n("JlLP"),n("j2o1"),n("woZy"),n("iLY9"),n("Msxo"),n("ajgA"),n("QiAa"),n("pI2L"),n("yKqg"),n("ij/i"),n("XQgg"),n("Gb1F"),n("xmOD"),n("c9ML"),n("Mzro"),n("GZrW"),n("1lwE"),n("w9QG"),n("ufhN"),n("LRks"),n("BUKB"),n("n18v"),n("EOst"),n("z3hU"),n("nrBJ"),n("BEdG"),n("E4kL")},M1Kb:function(e,t,n){"use strict";var i,r;n.d(t,"d",(function(){return i})),n.d(t,"c",(function(){return r})),n.d(t,"e",(function(){return o})),n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return a})),function(e){e[e["Left"]=1]="Left",e[e["Center"]=2]="Center",e[e["Right"]=4]="Right",e[e["Full"]=7]="Full"}(i||(i={})),function(e){e[e["Inline"]=1]="Inline",e[e["Gutter"]=2]="Gutter"}(r||(r={}));var o=function(){function e(e){this.tabSize=Math.max(1,0|e.tabSize),this.indentSize=0|e.tabSize,this.insertSpaces=Boolean(e.insertSpaces),this.defaultEOL=0|e.defaultEOL,this.trimAutoWhitespace=Boolean(e.trimAutoWhitespace)}return e.prototype.equals=function(e){return this.tabSize===e.tabSize&&this.indentSize===e.indentSize&&this.insertSpaces===e.insertSpaces&&this.defaultEOL===e.defaultEOL&&this.trimAutoWhitespace===e.trimAutoWhitespace},e.prototype.createChangeEvent=function(e){return{tabSize:this.tabSize!==e.tabSize,indentSize:this.indentSize!==e.indentSize,insertSpaces:this.insertSpaces!==e.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==e.trimAutoWhitespace}},e}(),s=function(){function e(e,t){this.range=e,this.matches=t}return e}(),a=function(){function e(e,t,n){this.reverseEdits=e,this.changes=t,this.trimAutoWhitespaceLineNumbers=n}return e}()},MD5Z:function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"Rb",(function(){return h})),n.d(t,"V",(function(){return f})),n.d(t,"T",(function(){return p})),n.d(t,"U",(function(){return g})),n.d(t,"e",(function(){return A})),n.d(t,"b",(function(){return m})),n.d(t,"cc",(function(){return v})),n.d(t,"bc",(function(){return _})),n.d(t,"fc",(function(){return y})),n.d(t,"Y",(function(){return b})),n.d(t,"ab",(function(){return w})),n.d(t,"Z",(function(){return C})),n.d(t,"X",(function(){return S})),n.d(t,"W",(function(){return N})),n.d(t,"eb",(function(){return L})),n.d(t,"gb",(function(){return E})),n.d(t,"fb",(function(){return x})),n.d(t,"hb",(function(){return O})),n.d(t,"jb",(function(){return B})),n.d(t,"ib",(function(){return k})),n.d(t,"bb",(function(){return D})),n.d(t,"db",(function(){return I})),n.d(t,"cb",(function(){return M})),n.d(t,"Mb",(function(){return R})),n.d(t,"Lb",(function(){return P})),n.d(t,"c",(function(){return U})),n.d(t,"d",(function(){return H})),n.d(t,"Tb",(function(){return j})),n.d(t,"Vb",(function(){return Q})),n.d(t,"Wb",(function(){return V})),n.d(t,"Ub",(function(){return W})),n.d(t,"Qb",(function(){return z})),n.d(t,"q",(function(){return K})),n.d(t,"p",(function(){return q})),n.d(t,"O",(function(){return G})),n.d(t,"N",(function(){return X})),n.d(t,"H",(function(){return Y})),n.d(t,"G",(function(){return J})),n.d(t,"z",(function(){return Z})),n.d(t,"y",(function(){return $})),n.d(t,"o",(function(){return ee})),n.d(t,"x",(function(){return te})),n.d(t,"P",(function(){return ne})),n.d(t,"R",(function(){return ie})),n.d(t,"Q",(function(){return re})),n.d(t,"S",(function(){return oe})),n.d(t,"K",(function(){return se})),n.d(t,"L",(function(){return ae})),n.d(t,"F",(function(){return ue})),n.d(t,"M",(function(){return le})),n.d(t,"r",(function(){return ce})),n.d(t,"t",(function(){return de})),n.d(t,"v",(function(){return he})),n.d(t,"s",(function(){return fe})),n.d(t,"u",(function(){return pe})),n.d(t,"w",(function(){return ge})),n.d(t,"D",(function(){return Ae})),n.d(t,"A",(function(){return me})),n.d(t,"C",(function(){return ve})),n.d(t,"B",(function(){return _e})),n.d(t,"E",(function(){return ye})),n.d(t,"n",(function(){return be})),n.d(t,"J",(function(){return we})),n.d(t,"I",(function(){return Ce})),n.d(t,"g",(function(){return Se})),n.d(t,"h",(function(){return Ne})),n.d(t,"j",(function(){return Le})),n.d(t,"l",(function(){return Ee})),n.d(t,"k",(function(){return xe})),n.d(t,"m",(function(){return Oe})),n.d(t,"i",(function(){return Be})),n.d(t,"qb",(function(){return ke})),n.d(t,"rb",(function(){return De})),n.d(t,"kb",(function(){return Ie})),n.d(t,"lb",(function(){return Me})),n.d(t,"wb",(function(){return Fe})),n.d(t,"xb",(function(){return Te})),n.d(t,"vb",(function(){return Re})),n.d(t,"tb",(function(){return Pe})),n.d(t,"ub",(function(){return Ue})),n.d(t,"mb",(function(){return He})),n.d(t,"sb",(function(){return je})),n.d(t,"nb",(function(){return Qe})),n.d(t,"pb",(function(){return Ve})),n.d(t,"ob",(function(){return We})),n.d(t,"ec",(function(){return ze})),n.d(t,"zb",(function(){return Ke})),n.d(t,"Ab",(function(){return qe})),n.d(t,"yb",(function(){return Ge})),n.d(t,"Db",(function(){return Xe})),n.d(t,"Bb",(function(){return Ye})),n.d(t,"Cb",(function(){return Je})),n.d(t,"Eb",(function(){return Ze})),n.d(t,"Zb",(function(){return $e})),n.d(t,"ac",(function(){return et})),n.d(t,"Xb",(function(){return tt})),n.d(t,"Yb",(function(){return nt})),n.d(t,"Kb",(function(){return it})),n.d(t,"Gb",(function(){return rt})),n.d(t,"Hb",(function(){return ot})),n.d(t,"Fb",(function(){return st})),n.d(t,"Ib",(function(){return at})),n.d(t,"Nb",(function(){return ut})),n.d(t,"Pb",(function(){return lt})),n.d(t,"Ob",(function(){return ct})),n.d(t,"f",(function(){return dt})),n.d(t,"dc",(function(){return ft})),n.d(t,"Jb",(function(){return pt})),n.d(t,"Sb",(function(){return At}));var i=n("ic2d"),r=n("zrhQ"),o=n("MI8n"),s=n("3/fG"),a=n("3Rsk"),u=n("X+cX"),l={ColorContribution:"base.contributions.colors"},c=function(){function e(){this._onDidChangeSchema=new o["a"],this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}return e.prototype.registerColor=function(e,t,n,i,r){void 0===i&&(i=!1);var o={id:e,description:n,defaults:t,needsTransparency:i,deprecationMessage:r};this.colorsById[e]=o;var s={type:"string",description:n,format:"color-hex",defaultSnippets:[{body:"${1:#ff0000}"}]};return r&&(s.deprecationMessage=r),this.colorSchema.properties[e]=s,this.colorReferenceSchema.enum.push(e),this.colorReferenceSchema.enumDescriptions.push(n),this._onDidChangeSchema.fire(),e},e.prototype.resolveDefaultColor=function(e,t){var n=this.colorsById[e];if(n&&n.defaults){var i=n.defaults[t.type];return At(i,t)}},e.prototype.getColorSchema=function(){return this.colorSchema},e.prototype.toString=function(){var e=this,t=function(e,t){var n=-1===e.indexOf(".")?0:1,i=-1===t.indexOf(".")?0:1;return n!==i?n-i:e.localeCompare(t)};return Object.keys(this.colorsById).sort(t).map((function(t){return"- `"+t+"`: "+e.colorsById[t].description})).join("\n")},e}(),d=new c;function h(e,t,n,i,r){return d.registerColor(e,t,n,i,r)}i["a"].add(l.ColorContribution,d);var f=h("foreground",{dark:"#CCCCCC",light:"#616161",hc:"#FFFFFF"},s["a"]("foreground","Overall foreground color. This color is only used if not overridden by a component.")),p=h("errorForeground",{dark:"#F48771",light:"#A1260D",hc:"#F48771"},s["a"]("errorForeground","Overall foreground color for error messages. This color is only used if not overridden by a component.")),g=h("focusBorder",{dark:r["a"].fromHex("#0E639C").transparent(.8),light:r["a"].fromHex("#007ACC").transparent(.4),hc:"#F38518"},s["a"]("focusBorder","Overall border color for focused elements. This color is only used if not overridden by a component.")),A=h("contrastBorder",{light:null,dark:null,hc:"#6FC3DF"},s["a"]("contrastBorder","An extra border around elements to separate them from others for greater contrast.")),m=h("contrastActiveBorder",{light:null,dark:null,hc:g},s["a"]("activeContrastBorder","An extra border around active elements to separate them from others for greater contrast.")),v=h("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hc:"#3794FF"},s["a"]("textLinkForeground","Foreground color for links in text.")),_=h("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hc:r["a"].black},s["a"]("textCodeBlockBackground","Background color for code blocks in text.")),y=h("widget.shadow",{dark:"#000000",light:"#A8A8A8",hc:null},s["a"]("widgetShadow","Shadow color of widgets such as find/replace inside the editor.")),b=h("input.background",{dark:"#3C3C3C",light:r["a"].white,hc:r["a"].black},s["a"]("inputBoxBackground","Input box background.")),w=h("input.foreground",{dark:f,light:f,hc:f},s["a"]("inputBoxForeground","Input box foreground.")),C=h("input.border",{dark:null,light:null,hc:A},s["a"]("inputBoxBorder","Input box border.")),S=h("inputOption.activeBorder",{dark:"#007ACC00",light:"#007ACC00",hc:A},s["a"]("inputBoxActiveOptionBorder","Border color of activated options in input fields.")),N=h("inputOption.activeBackground",{dark:ft(g,.5),light:ft(g,.3),hc:null},s["a"]("inputOption.activeBackground","Background color of activated options in input fields.")),L=h("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hc:r["a"].black},s["a"]("inputValidationInfoBackground","Input validation background color for information severity.")),E=h("inputValidation.infoForeground",{dark:null,light:null,hc:null},s["a"]("inputValidationInfoForeground","Input validation foreground color for information severity.")),x=h("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hc:A},s["a"]("inputValidationInfoBorder","Input validation border color for information severity.")),O=h("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hc:r["a"].black},s["a"]("inputValidationWarningBackground","Input validation background color for warning severity.")),B=h("inputValidation.warningForeground",{dark:null,light:null,hc:null},s["a"]("inputValidationWarningForeground","Input validation foreground color for warning severity.")),k=h("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hc:A},s["a"]("inputValidationWarningBorder","Input validation border color for warning severity.")),D=h("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hc:r["a"].black},s["a"]("inputValidationErrorBackground","Input validation background color for error severity.")),I=h("inputValidation.errorForeground",{dark:null,light:null,hc:null},s["a"]("inputValidationErrorForeground","Input validation foreground color for error severity.")),M=h("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hc:A},s["a"]("inputValidationErrorBorder","Input validation border color for error severity.")),F=h("dropdown.background",{dark:"#3C3C3C",light:r["a"].white,hc:r["a"].black},s["a"]("dropdownBackground","Dropdown background.")),T=h("dropdown.foreground",{dark:"#F0F0F0",light:null,hc:r["a"].white},s["a"]("dropdownForeground","Dropdown foreground.")),R=h("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hc:r["a"].white},s["a"]("pickerGroupForeground","Quick picker color for grouping labels.")),P=h("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hc:r["a"].white},s["a"]("pickerGroupBorder","Quick picker color for grouping borders.")),U=h("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hc:r["a"].black},s["a"]("badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count.")),H=h("badge.foreground",{dark:r["a"].white,light:"#333",hc:r["a"].white},s["a"]("badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count.")),j=h("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hc:null},s["a"]("scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled.")),Q=h("scrollbarSlider.background",{dark:r["a"].fromHex("#797979").transparent(.4),light:r["a"].fromHex("#646464").transparent(.4),hc:ft(A,.6)},s["a"]("scrollbarSliderBackground","Scrollbar slider background color.")),V=h("scrollbarSlider.hoverBackground",{dark:r["a"].fromHex("#646464").transparent(.7),light:r["a"].fromHex("#646464").transparent(.7),hc:ft(A,.8)},s["a"]("scrollbarSliderHoverBackground","Scrollbar slider background color when hovering.")),W=h("scrollbarSlider.activeBackground",{dark:r["a"].fromHex("#BFBFBF").transparent(.4),light:r["a"].fromHex("#000000").transparent(.6),hc:A},s["a"]("scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on.")),z=h("progressBar.background",{dark:r["a"].fromHex("#0E70C0"),light:r["a"].fromHex("#0E70C0"),hc:A},s["a"]("progressBarBackground","Background color of the progress bar that can show for long running operations.")),K=h("editorError.foreground",{dark:"#F48771",light:"#E51400",hc:null},s["a"]("editorError.foreground","Foreground color of error squigglies in the editor.")),q=h("editorError.border",{dark:null,light:null,hc:r["a"].fromHex("#E47777").transparent(.8)},s["a"]("errorBorder","Border color of error boxes in the editor.")),G=h("editorWarning.foreground",{dark:"#CCA700",light:"#E9A700",hc:null},s["a"]("editorWarning.foreground","Foreground color of warning squigglies in the editor.")),X=h("editorWarning.border",{dark:null,light:null,hc:r["a"].fromHex("#FFCC00").transparent(.8)},s["a"]("warningBorder","Border color of warning boxes in the editor.")),Y=h("editorInfo.foreground",{dark:"#75BEFF",light:"#75BEFF",hc:null},s["a"]("editorInfo.foreground","Foreground color of info squigglies in the editor.")),J=h("editorInfo.border",{dark:null,light:null,hc:r["a"].fromHex("#75BEFF").transparent(.8)},s["a"]("infoBorder","Border color of info boxes in the editor.")),Z=h("editorHint.foreground",{dark:r["a"].fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hc:null},s["a"]("editorHint.foreground","Foreground color of hint squigglies in the editor.")),$=h("editorHint.border",{dark:null,light:null,hc:r["a"].fromHex("#eeeeee").transparent(.8)},s["a"]("hintBorder","Border color of hint boxes in the editor.")),ee=h("editor.background",{light:"#fffffe",dark:"#1E1E1E",hc:r["a"].black},s["a"]("editorBackground","Editor background color.")),te=h("editor.foreground",{light:"#333333",dark:"#BBBBBB",hc:r["a"].white},s["a"]("editorForeground","Editor default foreground color.")),ne=h("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hc:"#0C141F"},s["a"]("editorWidgetBackground","Background color of editor widgets, such as find/replace.")),ie=h("editorWidget.foreground",{dark:f,light:f,hc:f},s["a"]("editorWidgetForeground","Foreground color of editor widgets, such as find/replace.")),re=h("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hc:A},s["a"]("editorWidgetBorder","Border color of editor widgets. The color is only used if the widget chooses to have a border and if the color is not overridden by a widget.")),oe=h("editorWidget.resizeBorder",{light:null,dark:null,hc:null},s["a"]("editorWidgetResizeBorder","Border color of the resize bar of editor widgets. The color is only used if the widget chooses to have a resize border and if the color is not overridden by a widget.")),se=h("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hc:"#f3f518"},s["a"]("editorSelectionBackground","Color of the editor selection.")),ae=h("editor.selectionForeground",{light:null,dark:null,hc:"#000000"},s["a"]("editorSelectionForeground","Color of the selected text for high contrast.")),ue=h("editor.inactiveSelectionBackground",{light:ft(se,.5),dark:ft(se,.5),hc:ft(se,.5)},s["a"]("editorInactiveSelection","Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),le=h("editor.selectionHighlightBackground",{light:gt(se,ee,.3,.6),dark:gt(se,ee,.3,.6),hc:null},s["a"]("editorSelectionHighlight","Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations."),!0),ce=(h("editor.selectionHighlightBorder",{light:null,dark:null,hc:m},s["a"]("editorSelectionHighlightBorder","Border color for regions with the same content as the selection.")),h("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hc:null},s["a"]("editorFindMatch","Color of the current search match."))),de=h("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hc:null},s["a"]("findMatchHighlight","Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0),he=h("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hc:null},s["a"]("findRangeHighlight","Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),fe=h("editor.findMatchBorder",{light:null,dark:null,hc:m},s["a"]("editorFindMatchBorder","Border color of the current search match.")),pe=h("editor.findMatchHighlightBorder",{light:null,dark:null,hc:m},s["a"]("findMatchHighlightBorder","Border color of the other search matches.")),ge=h("editor.findRangeHighlightBorder",{dark:null,light:null,hc:ft(m,.4)},s["a"]("findRangeHighlightBorder","Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),Ae=h("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hc:"#ADD6FF26"},s["a"]("hoverHighlight","Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations."),!0),me=h("editorHoverWidget.background",{light:ne,dark:ne,hc:ne},s["a"]("hoverBackground","Background color of the editor hover.")),ve=h("editorHoverWidget.foreground",{light:ie,dark:ie,hc:ie},s["a"]("hoverForeground","Foreground color of the editor hover.")),_e=h("editorHoverWidget.border",{light:re,dark:re,hc:re},s["a"]("hoverBorder","Border color of the editor hover.")),ye=h("editorHoverWidget.statusBarBackground",{dark:ht(me,.2),light:dt(me,.05),hc:ne},s["a"]("statusBarBackground","Background color of the editor hover status bar.")),be=h("editorLink.activeForeground",{dark:"#4E94CE",light:r["a"].blue,hc:r["a"].cyan},s["a"]("activeLinkForeground","Color of active links.")),we=h("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hc:"#FFCC00"},s["a"]("editorLightBulbForeground","The color used for the lightbulb actions icon.")),Ce=h("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},s["a"]("editorLightBulbAutoFixForeground","The color used for the lightbulb auto fix actions icon.")),Se=new r["a"](new r["c"](155,185,85,.2)),Ne=new r["a"](new r["c"](255,0,0,.2)),Le=h("diffEditor.insertedTextBackground",{dark:Se,light:Se,hc:null},s["a"]("diffEditorInserted","Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),Ee=h("diffEditor.removedTextBackground",{dark:Ne,light:Ne,hc:null},s["a"]("diffEditorRemoved","Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),xe=h("diffEditor.insertedTextBorder",{dark:null,light:null,hc:"#33ff2eff"},s["a"]("diffEditorInsertedOutline","Outline color for the text that got inserted.")),Oe=h("diffEditor.removedTextBorder",{dark:null,light:null,hc:"#FF008F"},s["a"]("diffEditorRemovedOutline","Outline color for text that got removed.")),Be=h("diffEditor.border",{dark:null,light:null,hc:A},s["a"]("diffEditorBorder","Border color between the two text editors.")),ke=h("list.focusBackground",{dark:"#062F4A",light:"#D6EBFF",hc:null},s["a"]("listFocusBackground","List/Tree background color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),De=h("list.focusForeground",{dark:null,light:null,hc:null},s["a"]("listFocusForeground","List/Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Ie=h("list.activeSelectionBackground",{dark:"#094771",light:"#0074E8",hc:null},s["a"]("listActiveSelectionBackground","List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Me=h("list.activeSelectionForeground",{dark:r["a"].white,light:r["a"].white,hc:null},s["a"]("listActiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Fe=h("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hc:null},s["a"]("listInactiveSelectionBackground","List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),Te=h("list.inactiveSelectionForeground",{dark:null,light:null,hc:null},s["a"]("listInactiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),Re=h("list.inactiveFocusBackground",{dark:null,light:null,hc:null},s["a"]("listInactiveFocusBackground","List/Tree background color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),Pe=h("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hc:null},s["a"]("listHoverBackground","List/Tree background when hovering over items using the mouse.")),Ue=h("list.hoverForeground",{dark:null,light:null,hc:null},s["a"]("listHoverForeground","List/Tree foreground when hovering over items using the mouse.")),He=h("list.dropBackground",{dark:ke,light:ke,hc:null},s["a"]("listDropBackground","List/Tree drag and drop background when moving items around using the mouse.")),je=h("list.highlightForeground",{dark:"#0097fb",light:"#0066BF",hc:g},s["a"]("highlight","List/Tree foreground color of the match highlights when searching inside the list/tree.")),Qe=h("listFilterWidget.background",{light:"#efc1ad",dark:"#653723",hc:r["a"].black},s["a"]("listFilterWidgetBackground","Background color of the type filter widget in lists and trees.")),Ve=h("listFilterWidget.outline",{dark:r["a"].transparent,light:r["a"].transparent,hc:"#f38518"},s["a"]("listFilterWidgetOutline","Outline color of the type filter widget in lists and trees.")),We=h("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hc:A},s["a"]("listFilterWidgetNoMatchesOutline","Outline color of the type filter widget in lists and trees, when there are no matches.")),ze=h("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hc:"#a9a9a9"},s["a"]("treeIndentGuidesStroke","Tree stroke color for the indentation guides.")),Ke=h("menu.border",{dark:null,light:null,hc:A},s["a"]("menuBorder","Border color of menus.")),qe=h("menu.foreground",{dark:T,light:f,hc:T},s["a"]("menuForeground","Foreground color of menu items.")),Ge=h("menu.background",{dark:F,light:F,hc:F},s["a"]("menuBackground","Background color of menu items.")),Xe=h("menu.selectionForeground",{dark:Me,light:Me,hc:Me},s["a"]("menuSelectionForeground","Foreground color of the selected menu item in menus.")),Ye=h("menu.selectionBackground",{dark:Ie,light:Ie,hc:Ie},s["a"]("menuSelectionBackground","Background color of the selected menu item in menus.")),Je=h("menu.selectionBorder",{dark:null,light:null,hc:m},s["a"]("menuSelectionBorder","Border color of the selected menu item in menus.")),Ze=h("menu.separatorBackground",{dark:"#BBBBBB",light:"#888888",hc:A},s["a"]("menuSeparatorBackground","Color of a separator menu item in menus.")),$e=h("editor.snippetTabstopHighlightBackground",{dark:new r["a"](new r["c"](124,124,124,.3)),light:new r["a"](new r["c"](10,50,100,.2)),hc:new r["a"](new r["c"](124,124,124,.3))},s["a"]("snippetTabstopHighlightBackground","Highlight background color of a snippet tabstop.")),et=h("editor.snippetTabstopHighlightBorder",{dark:null,light:null,hc:null},s["a"]("snippetTabstopHighlightBorder","Highlight border color of a snippet tabstop.")),tt=h("editor.snippetFinalTabstopHighlightBackground",{dark:null,light:null,hc:null},s["a"]("snippetFinalTabstopHighlightBackground","Highlight background color of the final tabstop of a snippet.")),nt=h("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new r["a"](new r["c"](10,50,100,.5)),hc:"#525252"},s["a"]("snippetFinalTabstopHighlightBorder","Highlight border color of the final stabstop of a snippet.")),it=h("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hc:"#AB5A00"},s["a"]("overviewRulerFindMatchForeground","Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0),rt=(h("editorOverviewRuler.selectionHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hc:"#A0A0A0CC"},s["a"]("overviewRulerSelectionHighlightForeground","Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0),h("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hc:"#AB5A00"},s["a"]("minimapFindMatchHighlight","Minimap marker color for find matches."),!0)),ot=h("minimap.selectionHighlight",{light:"#ADD6FF",dark:"#264F78",hc:"#ffffff"},s["a"]("minimapSelectionHighlight","Minimap marker color for the editor selection."),!0),st=h("minimap.errorHighlight",{dark:new r["a"](new r["c"](255,18,18,.7)),light:new r["a"](new r["c"](255,18,18,.7)),hc:new r["a"](new r["c"](255,50,50,1))},s["a"]("minimapError","Minimap marker color for errors.")),at=h("minimap.warningHighlight",{dark:G,light:G,hc:X},s["a"]("overviewRuleWarning","Minimap marker color for warnings.")),ut=h("problemsErrorIcon.foreground",{dark:K,light:K,hc:K},s["a"]("problemsErrorIconForeground","The color used for the problems error icon.")),lt=h("problemsWarningIcon.foreground",{dark:G,light:G,hc:G},s["a"]("problemsWarningIconForeground","The color used for the problems warning icon.")),ct=h("problemsInfoIcon.foreground",{dark:Y,light:Y,hc:Y},s["a"]("problemsInfoIconForeground","The color used for the problems info icon."));function dt(e,t){return function(n){var i=At(e,n);if(i)return i.darken(t)}}function ht(e,t){return function(n){var i=At(e,n);if(i)return i.lighten(t)}}function ft(e,t){return function(n){var i=At(e,n);if(i)return i.transparent(t)}}function pt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){for(var n=0,i=e;n<i.length;n++){var r=i[n],o=At(r,t);if(o)return o}}}function gt(e,t,n,i){return function(o){var s=At(e,o);if(s){var a=At(t,o);return a?s.isDarkerThan(a)?r["a"].getLighterColor(s,a,n).transparent(i):r["a"].getDarkerColor(s,a,n).transparent(i):s.transparent(n*i)}}}function At(e,t){if(null!==e)return"string"===typeof e?"#"===e[0]?r["a"].fromHex(e):t.getColor(e):e instanceof r["a"]?e:"function"===typeof e?e(t):void 0}var mt="vscode://schemas/workbench-colors",vt=i["a"].as(a["a"].JSONContribution);vt.registerSchema(mt,d.getColorSchema());var _t=new u["d"]((function(){return vt.notifySchemaChanged(mt)}),200);d.onDidChangeSchema((function(){_t.isScheduled()||_t.schedule()}))},MI8n:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return d})),n.d(t,"d",(function(){return h})),n.d(t,"c",(function(){return f})),n.d(t,"e",(function(){return p}));var i,r=n("/cxE"),o=n("C/vA"),s=n("pmY6"),a=n("24hK"),u=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();(function(e){function t(e){return function(t,n,i){void 0===n&&(n=null);var r,o=!1;return r=e((function(e){if(!o)return r?r.dispose():o=!0,t.call(n,e)}),null,i),o&&r.dispose(),r}}function n(e,t){return l((function(n,i,r){return void 0===i&&(i=null),e((function(e){return n.call(i,t(e))}),null,r)}))}function i(e,t){return l((function(n,i,r){return void 0===i&&(i=null),e((function(e){t(e),n.call(i,e)}),null,r)}))}function r(e,t){return l((function(n,i,r){return void 0===i&&(i=null),e((function(e){return t(e)&&n.call(i,e)}),null,r)}))}function o(e){return e}function a(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t,n,i){return void 0===n&&(n=null),s["e"].apply(void 0,e.map((function(e){return e((function(e){return t.call(n,e)}),null,i)})))}}function u(e,t,i){var r=i;return n(e,(function(e){return r=t(r,e),r}))}function l(e){var t,n=new d({onFirstListenerAdd:function(){t=e(n.fire,n)},onLastListenerRemove:function(){t.dispose()}});return n.event}function c(e,t,n,i,r){var o;void 0===n&&(n=100),void 0===i&&(i=!1);var s=void 0,a=void 0,u=0,l=new d({leakWarningThreshold:r,onFirstListenerAdd:function(){o=e((function(e){u++,s=t(s,e),i&&!a&&(l.fire(s),s=void 0),clearTimeout(a),a=setTimeout((function(){var e=s;s=void 0,a=void 0,(!i||u>1)&&l.fire(e),u=0}),n)}))},onLastListenerRemove:function(){o.dispose()}});return l.event}function h(e){var i=(new Date).getTime();return n(t(e),(function(e){return(new Date).getTime()-i}))}function f(e){var t,n=!0;return r(e,(function(e){var i=n||e!==t;return n=!1,t=e,i}))}function p(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=[]);var i=n.slice(),r=e((function(e){i?i.push(e):s.fire(e)})),o=function(){i&&i.forEach((function(e){return s.fire(e)})),i=null},s=new d({onFirstListenerAdd:function(){r||(r=e((function(e){return s.fire(e)})))},onFirstListenerDidAdd:function(){i&&(t?setTimeout(o):o())},onLastListenerRemove:function(){r&&r.dispose(),r=null}});return s.event}e.None=function(){return s["a"].None},e.once=t,e.map=n,e.forEach=i,e.filter=r,e.signal=o,e.any=a,e.reduce=u,e.snapshot=l,e.debounce=c,e.stopwatch=h,e.latch=f,e.buffer=p;var g=function(){function e(e){this.event=e}return e.prototype.map=function(t){return new e(n(this.event,t))},e.prototype.forEach=function(t){return new e(i(this.event,t))},e.prototype.filter=function(t){return new e(r(this.event,t))},e.prototype.reduce=function(t,n){return new e(u(this.event,t,n))},e.prototype.latch=function(){return new e(f(this.event))},e.prototype.debounce=function(t,n,i,r){return void 0===n&&(n=100),void 0===i&&(i=!1),new e(c(this.event,t,n,i,r))},e.prototype.on=function(e,t,n){return this.event(e,t,n)},e.prototype.once=function(e,n,i){return t(this.event)(e,n,i)},e}();function A(e){return new g(e)}function m(e,t,n){void 0===n&&(n=function(e){return e});var i=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return s.fire(n.apply(void 0,e))},r=function(){return e.on(t,i)},o=function(){return e.removeListener(t,i)},s=new d({onFirstListenerAdd:r,onLastListenerRemove:o});return s.event}function v(e,t,n){void 0===n&&(n=function(e){return e});var i=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return s.fire(n.apply(void 0,e))},r=function(){return e.addEventListener(t,i)},o=function(){return e.removeEventListener(t,i)},s=new d({onFirstListenerAdd:r,onLastListenerRemove:o});return s.event}function _(e){var t=new d,n=!1;return e.then(void 0,(function(){return null})).then((function(){n?t.fire(void 0):setTimeout((function(){return t.fire(void 0)}),0)})),n=!0,t.event}function y(e){return new Promise((function(n){return t(e)(n)}))}e.chain=A,e.fromNodeEventEmitter=m,e.fromDOMEventEmitter=v,e.fromPromise=_,e.toPromise=y})(i||(i={}));var l=-1,c=function(){function e(e,t){void 0===t&&(t=Math.random().toString(18).slice(2,5)),this.customThreshold=e,this.name=t,this._warnCountdown=0}return e.prototype.dispose=function(){this._stacks&&this._stacks.clear()},e.prototype.check=function(e){var t=this,n=l;if("number"===typeof this.customThreshold&&(n=this.customThreshold),!(n<=0||e<n)){this._stacks||(this._stacks=new Map);var i=(new Error).stack.split("\n").slice(3).join("\n"),r=this._stacks.get(i)||0;if(this._stacks.set(i,r+1),this._warnCountdown-=1,this._warnCountdown<=0){var o;this._warnCountdown=.5*n;var s=0;this._stacks.forEach((function(e,t){(!o||s<e)&&(o=t,s=e)})),console.warn("["+this.name+"] potential listener LEAK detected, having "+e+" listeners already. MOST frequent listener ("+s+"):"),console.warn(o)}return function(){var e=t._stacks.get(i)||0;t._stacks.set(i,e-1)}}},e}(),d=function(){function e(e){this._disposed=!1,this._options=e,this._leakageMon=l>0?new c(this._options&&this._options.leakWarningThreshold):void 0}return Object.defineProperty(e.prototype,"event",{get:function(){var t=this;return this._event||(this._event=function(n,i,r){t._listeners||(t._listeners=new a["a"]);var o=t._listeners.isEmpty();o&&t._options&&t._options.onFirstListenerAdd&&t._options.onFirstListenerAdd(t);var u,l,c=t._listeners.push(i?[n,i]:n);return o&&t._options&&t._options.onFirstListenerDidAdd&&t._options.onFirstListenerDidAdd(t),t._options&&t._options.onListenerDidAdd&&t._options.onListenerDidAdd(t,n,i),t._leakageMon&&(u=t._leakageMon.check(t._listeners.size)),l={dispose:function(){if(u&&u(),l.dispose=e._noop,!t._disposed&&(c(),t._options&&t._options.onLastListenerRemove)){var n=t._listeners&&!t._listeners.isEmpty();n||t._options.onLastListenerRemove(t)}}},r instanceof s["b"]?r.add(l):Array.isArray(r)&&r.push(l),l}),this._event},enumerable:!0,configurable:!0}),e.prototype.fire=function(e){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new a["a"]);for(var t=this._listeners.iterator(),n=t.next();!n.done;n=t.next())this._deliveryQueue.push([n.value,e]);while(this._deliveryQueue.size>0){var i=this._deliveryQueue.shift(),o=i[0],s=i[1];try{"function"===typeof o?o.call(void 0,s):o[0].call(o[1],s)}catch(n){Object(r["e"])(n)}}}},e.prototype.dispose=function(){this._listeners&&this._listeners.clear(),this._deliveryQueue&&this._deliveryQueue.clear(),this._leakageMon&&this._leakageMon.dispose(),this._disposed=!0},e._noop=function(){},e}(),h=function(e){function t(t){var n=e.call(this,t)||this;return n._isPaused=0,n._eventQueue=new a["a"],n._mergeFn=t&&t.merge,n}return u(t,e),t.prototype.pause=function(){this._isPaused++},t.prototype.resume=function(){if(0!==this._isPaused&&0===--this._isPaused)if(this._mergeFn){var t=this._eventQueue.toArray();this._eventQueue.clear(),e.prototype.fire.call(this,this._mergeFn(t))}else while(!this._isPaused&&0!==this._eventQueue.size)e.prototype.fire.call(this,this._eventQueue.shift())},t.prototype.fire=function(t){this._listeners&&(0!==this._isPaused?this._eventQueue.push(t):e.prototype.fire.call(this,t))},t}(d),f=(function(){function e(){var e=this;this.hasListeners=!1,this.events=[],this.emitter=new d({onFirstListenerAdd:function(){return e.onFirstListenerAdd()},onLastListenerRemove:function(){return e.onLastListenerRemove()}})}Object.defineProperty(e.prototype,"event",{get:function(){return this.emitter.event},enumerable:!0,configurable:!0}),e.prototype.add=function(e){var t=this,n={event:e,listener:null};this.events.push(n),this.hasListeners&&this.hook(n);var i=function(){t.hasListeners&&t.unhook(n);var e=t.events.indexOf(n);t.events.splice(e,1)};return Object(s["h"])(Object(o["a"])(i))},e.prototype.onFirstListenerAdd=function(){var e=this;this.hasListeners=!0,this.events.forEach((function(t){return e.hook(t)}))},e.prototype.onLastListenerRemove=function(){var e=this;this.hasListeners=!1,this.events.forEach((function(t){return e.unhook(t)}))},e.prototype.hook=function(e){var t=this;e.listener=e.event((function(e){return t.emitter.fire(e)}))},e.prototype.unhook=function(e){e.listener&&e.listener.dispose(),e.listener=null},e.prototype.dispose=function(){this.emitter.dispose()}}(),function(){function e(){this.buffers=[]}return e.prototype.wrapEvent=function(e){var t=this;return function(n,i,r){return e((function(e){var r=t.buffers[t.buffers.length-1];r?r.push((function(){return n.call(i,e)})):n.call(i,e)}),void 0,r)}},e.prototype.bufferEvents=function(e){var t=[];this.buffers.push(t);var n=e();return this.buffers.pop(),t.forEach((function(e){return e()})),n},e}()),p=function(){function e(){var e=this;this.listening=!1,this.inputEvent=i.None,this.inputEventListener=s["a"].None,this.emitter=new d({onFirstListenerDidAdd:function(){e.listening=!0,e.inputEventListener=e.inputEvent(e.emitter.fire,e.emitter)},onLastListenerRemove:function(){e.listening=!1,e.inputEventListener.dispose()}}),this.event=this.emitter.event}return Object.defineProperty(e.prototype,"input",{set:function(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this.inputEventListener.dispose(),this.emitter.dispose()},e}()},MNXI:function(e,t,n){},MNsG:function(e,t,n){"use strict";(function(e,i){n.d(t,"h",(function(){return m})),n.d(t,"e",(function(){return v})),n.d(t,"d",(function(){return _})),n.d(t,"f",(function(){return y})),n.d(t,"g",(function(){return b})),n.d(t,"c",(function(){return w})),n.d(t,"b",(function(){return S})),n.d(t,"i",(function(){return N})),n.d(t,"a",(function(){return L}));var r="en",o=!1,s=!1,a=!1,u=!1,l=!1,c=!1,d=void 0,h=void 0,f="undefined"!==typeof e&&"undefined"!==typeof e.versions&&"undefined"!==typeof e.versions.electron&&"renderer"===e.type;if("object"!==typeof navigator||f){if("object"===typeof e){o="win32"===e.platform,s="darwin"===e.platform,a="linux"===e.platform,d=r,r;var p=Object({NODE_ENV:"production"})["VSCODE_NLS_CONFIG"];if(p)try{var g=JSON.parse(p),A=g.availableLanguages["*"];d=g.locale,A||r,g._translationsConfigFile}catch(E){}u=!0}}else h=navigator.userAgent,o=h.indexOf("Windows")>=0,s=h.indexOf("Macintosh")>=0,c=h.indexOf("Macintosh")>=0&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,a=h.indexOf("Linux")>=0,l=!0,d=navigator.language,d;var m=o,v=s,_=a,y=u,b=l,w=c,C="object"===typeof self?self:"object"===typeof i?i:{},S=C,N=function(){if(S.setImmediate)return S.setImmediate.bind(S);if("function"===typeof S.postMessage&&!S.importScripts){var t=[];S.addEventListener("message",(function(e){if(e.data&&e.data.vscodeSetImmediateId)for(var n=0,i=t.length;n<i;n++){var r=t[n];if(r.id===e.data.vscodeSetImmediateId)return t.splice(n,1),void r.callback()}}));var n=0;return function(e){var i=++n;t.push({id:i,callback:e}),S.postMessage({vscodeSetImmediateId:i},"*")}}if("undefined"!==typeof e&&"function"===typeof e.nextTick)return e.nextTick.bind(e);var i=Promise.resolve();return function(e){return i.then(e)}}(),L=s?2:o?1:3}).call(this,n("Q2Ig"),n("yLpj"))},MXAL:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var i=n("CZ1j"),r=function(){function e(t){var n=Object(i["b"])(t);this._defaultValue=n,this._asciiMap=e._createAsciiMap(n),this._map=new Map}return e._createAsciiMap=function(e){for(var t=new Uint8Array(256),n=0;n<256;n++)t[n]=e;return t},e.prototype.set=function(e,t){var n=Object(i["b"])(t);e>=0&&e<256?this._asciiMap[e]=n:this._map.set(e,n)},e.prototype.get=function(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue},e}(),o=function(){function e(){this._actual=new r(0)}return e.prototype.add=function(e){this._actual.set(e,1)},e.prototype.has=function(e){return 1===this._actual.get(e)},e}()},Md8J:function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return s}));var i=n("EffR");function r(e,t){void 0===t&&(t={});var n=s(t);return n.textContent=e,n}function o(e,t){void 0===t&&(t={});var n=s(t);return u(n,l(e),t.actionHandler),n}function s(e){var t=e.inline?"span":"div",n=document.createElement(t);return e.className&&(n.className=e.className),n}var a=function(){function e(e){this.source=e,this.index=0}return e.prototype.eos=function(){return this.index>=this.source.length},e.prototype.next=function(){var e=this.peek();return this.advance(),e},e.prototype.peek=function(){return this.source[this.index]},e.prototype.advance=function(){this.index++},e}();function u(e,t,n){var r;if(2===t.type)r=document.createTextNode(t.content||"");else if(3===t.type)r=document.createElement("b");else if(4===t.type)r=document.createElement("i");else if(5===t.type&&n){var o=document.createElement("a");o.href="#",n.disposeables.add(i["n"](o,"click",(function(e){n.callback(String(t.index),e)}))),r=o}else 7===t.type?r=document.createElement("br"):1===t.type&&(r=e);r&&e!==r&&e.appendChild(r),r&&Array.isArray(t.children)&&t.children.forEach((function(e){u(r,e,n)}))}function l(e){var t={type:1,children:[]},n=0,i=t,r=[],o=new a(e);while(!o.eos()){var s=o.next(),u="\\"===s&&0!==d(o.peek());if(u&&(s=o.next()),!u&&c(s)&&s===o.peek()){o.advance(),2===i.type&&(i=r.pop());var l=d(s);if(i.type===l||5===i.type&&6===l)i=r.pop();else{var h={type:l,children:[]};5===l&&(h.index=n,n++),i.children.push(h),r.push(i),i=h}}else if("\n"===s)2===i.type&&(i=r.pop()),i.children.push({type:7});else if(2!==i.type){var f={type:2,content:s};i.children.push(f),r.push(i),i=f}else i.content+=s}return 2===i.type&&(i=r.pop()),r.length,t}function c(e){return 0!==d(e)}function d(e){switch(e){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;default:return 0}}},MqQJ:function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"c",(function(){return d})),n.d(t,"b",(function(){return h}));var i=n("3/fG"),r=n("MI8n"),o=n("twdY"),s=n("cMvZ"),a=n("ic2d"),u={ModesRegistry:"editor.modesRegistry"},l=function(){function e(){this._onDidChangeLanguages=new r["a"],this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[],this._dynamicLanguages=[]}return e.prototype.registerLanguage=function(e){this._languages.push(e),this._onDidChangeLanguages.fire(void 0)},e.prototype.getLanguages=function(){return[].concat(this._languages).concat(this._dynamicLanguages)},e}(),c=new l;a["a"].add(u.ModesRegistry,c);var d="plaintext",h=new o["q"](d,1);c.registerLanguage({id:d,extensions:[".txt",".gitignore"],aliases:[i["a"]("plainText.alias","Plain Text"),"text"],mimetypes:["text/plain"]}),s["a"].register(h,{brackets:[["(",")"],["[","]"],["{","}"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],folding:{offSide:!0}})},MrjW:function(e,t,n){"use strict";n.r(t),n.d(t,"win32",(function(){return b})),n.d(t,"posix",(function(){return w})),n.d(t,"normalize",(function(){return C})),n.d(t,"join",(function(){return S})),n.d(t,"relative",(function(){return N})),n.d(t,"dirname",(function(){return L})),n.d(t,"basename",(function(){return E})),n.d(t,"extname",(function(){return x})),n.d(t,"sep",(function(){return O}));var i=n("wxcJ"),r=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=65,s=97,a=90,u=122,l=46,c=47,d=92,h=58,f=63,p=function(e){function t(t,n,i){var r,o=this;"string"===typeof n&&0===n.indexOf("not ")?(r="must not be",n=n.replace(/^not /,"")):r="must be";var s=-1!==t.indexOf(".")?"property":"argument",a='The "'+t+'" '+s+" "+r+" of type "+n;return a+=". Received type "+typeof i,o=e.call(this,a)||this,o.code="ERR_INVALID_ARG_TYPE",o}return r(t,e),t}(Error);function g(e,t){if("string"!==typeof e)throw new p(t,"string",e)}function A(e){return e===c||e===d}function m(e){return e===c}function v(e){return e>=o&&e<=a||e>=s&&e<=u}function _(e,t,n,i){for(var r,o="",s=0,a=-1,u=0,d=0;d<=e.length;++d){if(d<e.length)r=e.charCodeAt(d);else{if(i(r))break;r=c}if(i(r)){if(a===d-1||1===u);else if(a!==d-1&&2===u){if(o.length<2||2!==s||o.charCodeAt(o.length-1)!==l||o.charCodeAt(o.length-2)!==l){if(o.length>2){var h=o.lastIndexOf(n);-1===h?(o="",s=0):(o=o.slice(0,h),s=o.length-1-o.lastIndexOf(n)),a=d,u=0;continue}if(2===o.length||1===o.length){o="",s=0,a=d,u=0;continue}}t&&(o.length>0?o+=n+"..":o="..",s=2)}else o.length>0?o+=n+e.slice(a+1,d):o=e.slice(a+1,d),s=d-a-1;a=d,u=0}else r===l&&-1!==u?++u:u=-1}return o}function y(e,t){var n=t.dir||t.root,i=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+i:n+e+i:i}var b={resolve:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n="",r="",o=!1,s=e.length-1;s>=-1;s--){var a=void 0;if(s>=0?a=e[s]:n?(a=i["b"]["="+n]||i["a"](),void 0!==a&&a.slice(0,3).toLowerCase()===n.toLowerCase()+"\\"||(a=n+"\\")):a=i["a"](),g(a,"path"),0!==a.length){var u=a.length,l=0,c="",d=!1,f=a.charCodeAt(0);if(u>1)if(A(f))if(d=!0,A(a.charCodeAt(1))){for(var p=2,m=p;p<u;++p)if(A(a.charCodeAt(p)))break;if(p<u&&p!==m){var y=a.slice(m,p);for(m=p;p<u;++p)if(!A(a.charCodeAt(p)))break;if(p<u&&p!==m){for(m=p;p<u;++p)if(A(a.charCodeAt(p)))break;p===u?(c="\\\\"+y+"\\"+a.slice(m),l=p):p!==m&&(c="\\\\"+y+"\\"+a.slice(m,p),l=p)}}}else l=1;else v(f)&&a.charCodeAt(1)===h&&(c=a.slice(0,2),l=2,u>2&&A(a.charCodeAt(2))&&(d=!0,l=3));else A(f)&&(l=1,d=!0);if(!(c.length>0&&n.length>0&&c.toLowerCase()!==n.toLowerCase())&&(0===n.length&&c.length>0&&(n=c),o||(r=a.slice(l)+"\\"+r,o=d),n.length>0&&o))break}}return r=_(r,!o,"\\",A),n+(o?"\\":"")+r||"."},normalize:function(e){g(e,"path");var t=e.length;if(0===t)return".";var n,i,r=0,o=!1,s=e.charCodeAt(0);if(t>1)if(A(s))if(o=!0,A(e.charCodeAt(1))){for(var a=2,u=a;a<t;++a)if(A(e.charCodeAt(a)))break;if(a<t&&a!==u){var l=e.slice(u,a);for(u=a;a<t;++a)if(!A(e.charCodeAt(a)))break;if(a<t&&a!==u){for(u=a;a<t;++a)if(A(e.charCodeAt(a)))break;if(a===t)return"\\\\"+l+"\\"+e.slice(u)+"\\";a!==u&&(n="\\\\"+l+"\\"+e.slice(u,a),r=a)}}}else r=1;else v(s)&&e.charCodeAt(1)===h&&(n=e.slice(0,2),r=2,t>2&&A(e.charCodeAt(2))&&(o=!0,r=3));else if(A(s))return"\\";return i=r<t?_(e.slice(r),!o,"\\",A):"",0!==i.length||o||(i="."),i.length>0&&A(e.charCodeAt(t-1))&&(i+="\\"),void 0===n?o?i.length>0?"\\"+i:"\\":i.length>0?i:"":o?i.length>0?n+"\\"+i:n+"\\":i.length>0?n+i:n},isAbsolute:function(e){g(e,"path");var t=e.length;if(0===t)return!1;var n=e.charCodeAt(0);return!!A(n)||!!(v(n)&&t>2&&e.charCodeAt(1)===h&&A(e.charCodeAt(2)))},join:function(){for(var e,t,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(0===n.length)return".";for(var r=0;r<n.length;++r){var o=n[r];g(o,"path"),o.length>0&&(void 0===e?e=t=o:e+="\\"+o)}if(void 0===e)return".";var s=!0,a=0;if("string"===typeof t&&A(t.charCodeAt(0))){++a;var u=t.length;u>1&&A(t.charCodeAt(1))&&(++a,u>2&&(A(t.charCodeAt(2))?++a:s=!1))}if(s){for(;a<e.length;++a)if(!A(e.charCodeAt(a)))break;a>=2&&(e="\\"+e.slice(a))}return b.normalize(e)},relative:function(e,t){if(g(e,"from"),g(t,"to"),e===t)return"";var n=b.resolve(e),i=b.resolve(t);if(n===i)return"";if(e=n.toLowerCase(),t=i.toLowerCase(),e===t)return"";for(var r=0;r<e.length;++r)if(e.charCodeAt(r)!==d)break;for(var o=e.length;o-1>r;--o)if(e.charCodeAt(o-1)!==d)break;for(var s=o-r,a=0;a<t.length;++a)if(t.charCodeAt(a)!==d)break;for(var u=t.length;u-1>a;--u)if(t.charCodeAt(u-1)!==d)break;for(var l=u-a,c=s<l?s:l,h=-1,f=0;f<=c;++f){if(f===c){if(l>c){if(t.charCodeAt(a+f)===d)return i.slice(a+f+1);if(2===f)return i.slice(a+f)}s>c&&(e.charCodeAt(r+f)===d?h=f:2===f&&(h=3));break}var p=e.charCodeAt(r+f),A=t.charCodeAt(a+f);if(p!==A)break;p===d&&(h=f)}if(f!==c&&-1===h)return i;var m="";for(-1===h&&(h=0),f=r+h+1;f<=o;++f)f!==o&&e.charCodeAt(f)!==d||(0===m.length?m+="..":m+="\\..");return m.length>0?m+i.slice(a+h,u):(a+=h,i.charCodeAt(a)===d&&++a,i.slice(a,u))},toNamespacedPath:function(e){if("string"!==typeof e)return e;if(0===e.length)return"";var t=b.resolve(e);if(t.length>=3)if(t.charCodeAt(0)===d){if(t.charCodeAt(1)===d){var n=t.charCodeAt(2);if(n!==f&&n!==l)return"\\\\?\\UNC\\"+t.slice(2)}}else if(v(t.charCodeAt(0))&&t.charCodeAt(1)===h&&t.charCodeAt(2)===d)return"\\\\?\\"+t;return e},dirname:function(e){g(e,"path");var t=e.length;if(0===t)return".";var n=-1,i=-1,r=!0,o=0,s=e.charCodeAt(0);if(t>1)if(A(s)){if(n=o=1,A(e.charCodeAt(1))){for(var a=2,u=a;a<t;++a)if(A(e.charCodeAt(a)))break;if(a<t&&a!==u){for(u=a;a<t;++a)if(!A(e.charCodeAt(a)))break;if(a<t&&a!==u){for(u=a;a<t;++a)if(A(e.charCodeAt(a)))break;if(a===t)return e;a!==u&&(n=o=a+1)}}}}else v(s)&&e.charCodeAt(1)===h&&(n=o=2,t>2&&A(e.charCodeAt(2))&&(n=o=3));else if(A(s))return e;for(var l=t-1;l>=o;--l)if(A(e.charCodeAt(l))){if(!r){i=l;break}}else r=!1;if(-1===i){if(-1===n)return".";i=n}return e.slice(0,i)},basename:function(e,t){void 0!==t&&g(t,"ext"),g(e,"path");var n,i=0,r=-1,o=!0;if(e.length>=2){var s=e.charCodeAt(0);v(s)&&e.charCodeAt(1)===h&&(i=2)}if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var a=t.length-1,u=-1;for(n=e.length-1;n>=i;--n){var l=e.charCodeAt(n);if(A(l)){if(!o){i=n+1;break}}else-1===u&&(o=!1,u=n+1),a>=0&&(l===t.charCodeAt(a)?-1===--a&&(r=n):(a=-1,r=u))}return i===r?r=u:-1===r&&(r=e.length),e.slice(i,r)}for(n=e.length-1;n>=i;--n)if(A(e.charCodeAt(n))){if(!o){i=n+1;break}}else-1===r&&(o=!1,r=n+1);return-1===r?"":e.slice(i,r)},extname:function(e){g(e,"path");var t=0,n=-1,i=0,r=-1,o=!0,s=0;e.length>=2&&e.charCodeAt(1)===h&&v(e.charCodeAt(0))&&(t=i=2);for(var a=e.length-1;a>=t;--a){var u=e.charCodeAt(a);if(A(u)){if(!o){i=a+1;break}}else-1===r&&(o=!1,r=a+1),u===l?-1===n?n=a:1!==s&&(s=1):-1!==n&&(s=-1)}return-1===n||-1===r||0===s||1===s&&n===r-1&&n===i+1?"":e.slice(n,r)},format:function(e){if(null===e||"object"!==typeof e)throw new p("pathObject","Object",e);return y("\\",e)},parse:function(e){g(e,"path");var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var n=e.length,i=0,r=e.charCodeAt(0);if(n>1){if(A(r)){if(i=1,A(e.charCodeAt(1))){for(var o=2,s=o;o<n;++o)if(A(e.charCodeAt(o)))break;if(o<n&&o!==s){for(s=o;o<n;++o)if(!A(e.charCodeAt(o)))break;if(o<n&&o!==s){for(s=o;o<n;++o)if(A(e.charCodeAt(o)))break;o===n?i=o:o!==s&&(i=o+1)}}}}else if(v(r)&&e.charCodeAt(1)===h){if(i=2,!(n>2))return t.root=t.dir=e,t;if(A(e.charCodeAt(2))){if(3===n)return t.root=t.dir=e,t;i=3}}}else if(A(r))return t.root=t.dir=e,t;i>0&&(t.root=e.slice(0,i));for(var a=-1,u=i,c=-1,d=!0,f=e.length-1,p=0;f>=i;--f)if(r=e.charCodeAt(f),A(r)){if(!d){u=f+1;break}}else-1===c&&(d=!1,c=f+1),r===l?-1===a?a=f:1!==p&&(p=1):-1!==a&&(p=-1);return-1===a||-1===c||0===p||1===p&&a===c-1&&a===u+1?-1!==c&&(t.base=t.name=e.slice(u,c)):(t.name=e.slice(u,a),t.base=e.slice(u,c),t.ext=e.slice(a,c)),t.dir=u>0&&u!==i?e.slice(0,u-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},w={resolve:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n="",r=!1,o=e.length-1;o>=-1&&!r;o--){var s=void 0;s=o>=0?e[o]:i["a"](),g(s,"path"),0!==s.length&&(n=s+"/"+n,r=s.charCodeAt(0)===c)}return n=_(n,!r,"/",m),r?n.length>0?"/"+n:"/":n.length>0?n:"."},normalize:function(e){if(g(e,"path"),0===e.length)return".";var t=e.charCodeAt(0)===c,n=e.charCodeAt(e.length-1)===c;return e=_(e,!t,"/",m),0!==e.length||t||(e="."),e.length>0&&n&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return g(e,"path"),e.length>0&&e.charCodeAt(0)===c},join:function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(0===t.length)return".";for(var i=0;i<t.length;++i){var r=arguments[i];g(r,"path"),r.length>0&&(void 0===e?e=r:e+="/"+r)}return void 0===e?".":w.normalize(e)},relative:function(e,t){if(g(e,"from"),g(t,"to"),e===t)return"";if(e=w.resolve(e),t=w.resolve(t),e===t)return"";for(var n=1;n<e.length;++n)if(e.charCodeAt(n)!==c)break;for(var i=e.length,r=i-n,o=1;o<t.length;++o)if(t.charCodeAt(o)!==c)break;for(var s=t.length,a=s-o,u=r<a?r:a,l=-1,d=0;d<=u;++d){if(d===u){if(a>u){if(t.charCodeAt(o+d)===c)return t.slice(o+d+1);if(0===d)return t.slice(o+d)}else r>u&&(e.charCodeAt(n+d)===c?l=d:0===d&&(l=0));break}var h=e.charCodeAt(n+d),f=t.charCodeAt(o+d);if(h!==f)break;h===c&&(l=d)}var p="";for(d=n+l+1;d<=i;++d)d!==i&&e.charCodeAt(d)!==c||(0===p.length?p+="..":p+="/..");return p.length>0?p+t.slice(o+l):(o+=l,t.charCodeAt(o)===c&&++o,t.slice(o))},toNamespacedPath:function(e){return e},dirname:function(e){if(g(e,"path"),0===e.length)return".";for(var t=e.charCodeAt(0)===c,n=-1,i=!0,r=e.length-1;r>=1;--r)if(e.charCodeAt(r)===c){if(!i){n=r;break}}else i=!1;return-1===n?t?"/":".":t&&1===n?"//":e.slice(0,n)},basename:function(e,t){void 0!==t&&g(t,"ext"),g(e,"path");var n,i=0,r=-1,o=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var s=t.length-1,a=-1;for(n=e.length-1;n>=0;--n){var u=e.charCodeAt(n);if(u===c){if(!o){i=n+1;break}}else-1===a&&(o=!1,a=n+1),s>=0&&(u===t.charCodeAt(s)?-1===--s&&(r=n):(s=-1,r=a))}return i===r?r=a:-1===r&&(r=e.length),e.slice(i,r)}for(n=e.length-1;n>=0;--n)if(e.charCodeAt(n)===c){if(!o){i=n+1;break}}else-1===r&&(o=!1,r=n+1);return-1===r?"":e.slice(i,r)},extname:function(e){g(e,"path");for(var t=-1,n=0,i=-1,r=!0,o=0,s=e.length-1;s>=0;--s){var a=e.charCodeAt(s);if(a!==c)-1===i&&(r=!1,i=s+1),a===l?-1===t?t=s:1!==o&&(o=1):-1!==t&&(o=-1);else if(!r){n=s+1;break}}return-1===t||-1===i||0===o||1===o&&t===i-1&&t===n+1?"":e.slice(t,i)},format:function(e){if(null===e||"object"!==typeof e)throw new p("pathObject","Object",e);return y("/",e)},parse:function(e){g(e,"path");var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var n,i=e.charCodeAt(0)===c;i?(t.root="/",n=1):n=0;for(var r=-1,o=0,s=-1,a=!0,u=e.length-1,d=0;u>=n;--u){var h=e.charCodeAt(u);if(h!==c)-1===s&&(a=!1,s=u+1),h===l?-1===r?r=u:1!==d&&(d=1):-1!==r&&(d=-1);else if(!a){o=u+1;break}}return-1===r||-1===s||0===d||1===d&&r===s-1&&r===o+1?-1!==s&&(t.base=t.name=0===o&&i?e.slice(1,s):e.slice(o,s)):(0===o&&i?(t.name=e.slice(1,r),t.base=e.slice(1,s)):(t.name=e.slice(o,r),t.base=e.slice(o,s)),t.ext=e.slice(r,s)),o>0?t.dir=e.slice(0,o-1):i&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};w.win32=b.win32=b,w.posix=b.posix=w;var C="win32"===i["c"]?b.normalize:w.normalize,S="win32"===i["c"]?b.join:w.join,N="win32"===i["c"]?b.relative:w.relative,L="win32"===i["c"]?b.dirname:w.dirname,E="win32"===i["c"]?b.basename:w.basename,x="win32"===i["c"]?b.extname:w.extname,O="win32"===i["c"]?b.sep:w.sep},Msxo:function(e,t,n){"use strict";n.r(t);var i=n("+hIS");Object(i["a"])({id:"r",extensions:[".r",".rhistory",".rprofile",".rt"],aliases:["R","r"],loader:function(){return n.e(177).then(n.bind(null,"Qx4d"))}})},MvK1:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var i=function(){function e(e,t,n){this.from=0|e,this.to=0|t,this.colorId=0|n}return e.compare=function(e,t){return e.colorId===t.colorId?e.from===t.from?e.to-t.to:e.from-t.from:e.colorId-t.colorId},e}(),r=function(){function e(e,t,n){this.startLineNumber=e,this.endLineNumber=t,this.color=n,this._colorZone=null}return e.compare=function(e,t){return e.color===t.color?e.startLineNumber===t.startLineNumber?e.endLineNumber-t.endLineNumber:e.startLineNumber-t.startLineNumber:e.color<t.color?-1:1},e.prototype.setColorZone=function(e){this._colorZone=e},e.prototype.getColorZones=function(){return this._colorZone},e}(),o=function(){function e(e){this._getVerticalOffsetForLine=e,this._zones=[],this._colorZonesInvalid=!1,this._lineHeight=0,this._domWidth=0,this._domHeight=0,this._outerHeight=0,this._pixelRatio=1,this._lastAssignedId=0,this._color2Id=Object.create(null),this._id2Color=[]}return e.prototype.getId2Color=function(){return this._id2Color},e.prototype.setZones=function(e){this._zones=e,this._zones.sort(r.compare)},e.prototype.setLineHeight=function(e){return this._lineHeight!==e&&(this._lineHeight=e,this._colorZonesInvalid=!0,!0)},e.prototype.setPixelRatio=function(e){this._pixelRatio=e,this._colorZonesInvalid=!0},e.prototype.getDOMWidth=function(){return this._domWidth},e.prototype.getCanvasWidth=function(){return this._domWidth*this._pixelRatio},e.prototype.setDOMWidth=function(e){return this._domWidth!==e&&(this._domWidth=e,this._colorZonesInvalid=!0,!0)},e.prototype.getDOMHeight=function(){return this._domHeight},e.prototype.getCanvasHeight=function(){return this._domHeight*this._pixelRatio},e.prototype.setDOMHeight=function(e){return this._domHeight!==e&&(this._domHeight=e,this._colorZonesInvalid=!0,!0)},e.prototype.getOuterHeight=function(){return this._outerHeight},e.prototype.setOuterHeight=function(e){return this._outerHeight!==e&&(this._outerHeight=e,this._colorZonesInvalid=!0,!0)},e.prototype.resolveColorZones=function(){for(var e=this._colorZonesInvalid,t=Math.floor(this._lineHeight),n=Math.floor(this.getCanvasHeight()),r=Math.floor(this._outerHeight),o=n/r,s=Math.floor(4*this._pixelRatio/2),a=[],u=0,l=this._zones.length;u<l;u++){var c=this._zones[u];if(!e){var d=c.getColorZones();if(d){a.push(d);continue}}var h=Math.floor(o*this._getVerticalOffsetForLine(c.startLineNumber)),f=Math.floor(o*(this._getVerticalOffsetForLine(c.endLineNumber)+t)),p=Math.floor((h+f)/2),g=f-p;g<s&&(g=s),p-g<0&&(p=g),p+g>n&&(p=n-g);var A=c.color,m=this._color2Id[A];m||(m=++this._lastAssignedId,this._color2Id[A]=m,this._id2Color[m]=A);var v=new i(p-g,p+g,m);c.setColorZone(v),a.push(v)}return this._colorZonesInvalid=!1,a.sort(i.compare),a},e}()},Mzro:function(e,t,n){"use strict";n.r(t);var i=n("+hIS");Object(i["a"])({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:function(){return n.e(187).then(n.bind(null,"l/4i"))}})},N0LK:function(e,t,n){"use strict";function i(e){return!e||"string"!==typeof e||0===e.trim().length}function r(e,t,n){void 0===n&&(n="0");for(var i=""+e,r=[i],o=i.length;o<t;o++)r.push(n);return r.reverse().join("")}n.d(t,"x",(function(){return i})),n.d(t,"F",(function(){return r})),n.d(t,"r",(function(){return s})),n.d(t,"o",(function(){return a})),n.d(t,"p",(function(){return u})),n.d(t,"K",(function(){return l})),n.d(t,"k",(function(){return c})),n.d(t,"M",(function(){return d})),n.d(t,"m",(function(){return h})),n.d(t,"l",(function(){return f})),n.d(t,"I",(function(){return p})),n.d(t,"H",(function(){return g})),n.d(t,"q",(function(){return A})),n.d(t,"t",(function(){return m})),n.d(t,"D",(function(){return v})),n.d(t,"e",(function(){return _})),n.d(t,"f",(function(){return y})),n.d(t,"B",(function(){return b})),n.d(t,"C",(function(){return w})),n.d(t,"n",(function(){return S})),n.d(t,"N",(function(){return L})),n.d(t,"c",(function(){return E})),n.d(t,"d",(function(){return x})),n.d(t,"z",(function(){return O})),n.d(t,"A",(function(){return B})),n.d(t,"u",(function(){return k})),n.d(t,"E",(function(){return I})),n.d(t,"G",(function(){return M})),n.d(t,"i",(function(){return T})),n.d(t,"g",(function(){return P})),n.d(t,"v",(function(){return H})),n.d(t,"h",(function(){return j})),n.d(t,"y",(function(){return Q})),n.d(t,"w",(function(){return V})),n.d(t,"a",(function(){return W})),n.d(t,"O",(function(){return z})),n.d(t,"J",(function(){return K})),n.d(t,"j",(function(){return q})),n.d(t,"L",(function(){return G})),n.d(t,"s",(function(){return X})),n.d(t,"b",(function(){return Y}));var o=/{(\d+)}/g;function s(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return 0===t.length?e:e.replace(o,(function(e,n){var i=parseInt(n,10);return isNaN(i)||i<0||i>=t.length?e:t[i]}))}function a(e){return e.replace(/[<>&]/g,(function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";default:return e}}))}function u(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function l(e,t){if(!e||!t)return e;var n=t.length,i=e.length;if(0===n||0===i)return e;var r=i,o=-1;while(1){if(o=e.lastIndexOf(t,r-1),-1===o||o+n!==r)break;if(0===o)return"";r=o}return e.substring(0,r)}function c(e){return e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function d(e,t){if(e.length<t.length)return!1;if(e===t)return!0;for(var n=0;n<t.length;n++)if(e[n]!==t[n])return!1;return!0}function h(e,t){var n=e.length-t.length;return n>0?e.indexOf(t,n)===n:0===n&&e===t}function f(e,t,n){if(void 0===n&&(n={}),!e)throw new Error("Cannot create regex from empty string");t||(e=u(e)),n.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));var i="";return n.global&&(i+="g"),n.matchCase||(i+="i"),n.multiline&&(i+="m"),n.unicode&&(i+="u"),new RegExp(e,i)}function p(e){if("^"===e.source||"^$"===e.source||"$"===e.source||"^\\s*$"===e.source)return!1;var t=e.exec("");return!(!t||0!==e.lastIndex)}function g(e){return(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")}function A(e){for(var t=0,n=e.length;t<n;t++){var i=e.charCodeAt(t);if(32!==i&&9!==i)return t}return-1}function m(e,t,n){void 0===t&&(t=0),void 0===n&&(n=e.length);for(var i=t;i<n;i++){var r=e.charCodeAt(i);if(32!==r&&9!==r)return e.substring(t,i)}return e.substring(t,n)}function v(e,t){void 0===t&&(t=e.length-1);for(var n=t;n>=0;n--){var i=e.charCodeAt(n);if(32!==i&&9!==i)return n}return-1}function _(e,t){return e<t?-1:e>t?1:0}function y(e,t){for(var n=Math.min(e.length,t.length),i=0;i<n;i++){var r=e.charCodeAt(i),o=t.charCodeAt(i);if(r!==o){w(r)&&(r+=32),w(o)&&(o+=32);var s=r-o;if(0!==s)return b(r)&&b(o)?s:_(e.toLowerCase(),t.toLowerCase())}}return e.length<t.length?-1:e.length>t.length?1:0}function b(e){return e>=97&&e<=122}function w(e){return e>=65&&e<=90}function C(e){return b(e)||w(e)}function S(e,t){return e.length===t.length&&N(e,t)}function N(e,t,n){void 0===n&&(n=e.length);for(var i=0;i<n;i++){var r=e.charCodeAt(i),o=t.charCodeAt(i);if(r!==o)if(C(r)&&C(o)){var s=Math.abs(r-o);if(0!==s&&32!==s)return!1}else if(String.fromCharCode(r).toLowerCase()!==String.fromCharCode(o).toLowerCase())return!1}return!0}function L(e,t){var n=t.length;return!(t.length>e.length)&&N(e,t,n)}function E(e,t){var n,i=Math.min(e.length,t.length);for(n=0;n<i;n++)if(e.charCodeAt(n)!==t.charCodeAt(n))return n;return i}function x(e,t){var n,i=Math.min(e.length,t.length),r=e.length-1,o=t.length-1;for(n=0;n<i;n++)if(e.charCodeAt(r-n)!==t.charCodeAt(o-n))return n;return i}function O(e){return 55296<=e&&e<=56319}function B(e){return 56320<=e&&e<=57343}function k(e,t,n){var i=e.charCodeAt(n);if(O(i)&&n+1<t){var r=e.charCodeAt(n+1);if(B(r))return r-56320+(i-55296<<10)+65536}return i}function D(e,t){var n=e.charCodeAt(t-1);if(B(n)&&t>1){var i=e.charCodeAt(t-2);if(O(i))return n-56320+(i-55296<<10)+65536}return n}function I(e,t){var n=J.getInstance(),i=t,r=e.length,o=k(e,r,t);t+=o>=65536?2:1;var s=n.getGraphemeBreakType(o);while(t<r){var a=k(e,r,t),u=n.getGraphemeBreakType(a);if(Y(s,u))break;t+=a>=65536?2:1,s=u}return t-i}function M(e,t){var n=J.getInstance(),i=t,r=D(e,t);t-=r>=65536?2:1;var o=n.getGraphemeBreakType(r);while(t>0){var s=D(e,t),a=n.getGraphemeBreakType(s);if(Y(a,o))break;t-=s>=65536?2:1,o=a}return i-t}var F=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function T(e){return F.test(e)}var R=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDE73\uDE78-\uDE82\uDE90-\uDE95])/;function P(e){return R.test(e)}var U=/^[\t\n\r\x20-\x7E]*$/;function H(e){return U.test(e)}function j(e){for(var t=0,n=e.length;t<n;t++)if(Q(e.charCodeAt(t)))return!0;return!1}function Q(e){return e=+e,e>=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}function V(e){return e>=127462&&e<=127487||e>=9728&&e<=10175||e>=127744&&e<=128591||e>=128640&&e<=128764||e>=128992&&e<=129003||e>=129280&&e<=129535||e>=129648&&e<=129651||e>=129656&&e<=129666||e>=129680&&e<=129685}var W=String.fromCharCode(65279);function z(e){return!!(e&&e.length>0&&65279===e.charCodeAt(0))}function K(e,t){for(var n="",i=0;i<t;i++)n+=e;return n}function q(e,t){return void 0===t&&(t=!1),!!e&&(t&&(e=e.replace(/\\./g,"")),e.toLowerCase()!==e)}function G(e){var t=26;return e%=2*t,e<t?String.fromCharCode(97+e):String.fromCharCode(65+e-t)}function X(e){var t=J.getInstance();return t.getGraphemeBreakType(e)}function Y(e,t){return 0===e?5!==t&&7!==t:(2!==e||3!==t)&&(4===e||2===e||3===e||(4===t||2===t||3===t||(8!==e||8!==t&&9!==t&&11!==t&&12!==t)&&((11!==e&&9!==e||9!==t&&10!==t)&&((12!==e&&10!==e||10!==t)&&(5!==t&&13!==t&&(7!==t&&(1!==e&&((13!==e||14!==t)&&(6!==e||6!==t)))))))))}var J=function(){function e(){this._data=Z()}return e.getInstance=function(){return e._INSTANCE||(e._INSTANCE=new e),e._INSTANCE},e.prototype.getGraphemeBreakType=function(e){if(e<32)return 10===e?3:13===e?2:4;if(e<127)return 0;var t=this._data,n=t.length/3,i=1;while(i<=n)if(e<t[3*i])i*=2;else{if(!(e>t[3*i+1]))return t[3*i+2];i=2*i+1}return 0},e._INSTANCE=null,e}();function Z(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}},OBOq:function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return c})),n.d(t,"c",(function(){return d}));n("UCkY");var i,r,o,s=n("3/fG"),a=n("MNsG"),u=n("EffR");function l(e){i=document.createElement("div"),i.className="monaco-aria-container",r=document.createElement("div"),r.className="monaco-alert",r.setAttribute("role","alert"),r.setAttribute("aria-atomic","true"),i.appendChild(r),o=document.createElement("div"),o.className="monaco-status",o.setAttribute("role","status"),o.setAttribute("aria-atomic","true"),i.appendChild(o),e.appendChild(i)}function c(e,t){p(r,e,t)}function d(e,t){a["e"]?c(e,t):p(o,e,t)}var h=0,f=void 0;function p(e,t,n){if(i){if(!n)switch(f===t?h++:(f=t,h=0),h){case 0:break;case 1:t=s["a"]("repeated","{0} (occurred again)",t);break;default:t=s["a"]("repeatedNtimes","{0} (occurred {1} times)",t,h);break}u["s"](e),e.textContent=t,e.style.visibility="hidden",e.style.visibility="visible"}}},OKK6:function(e,t,n){},OOlL:function(e,t,n){"use strict";n.r(t);var i=n("+hIS");Object(i["a"])({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:function(){return n.e(143).then(n.bind(null,"NlLO"))}})},PTeM:function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return a}));var i=n("N0LK"),r=n("MrjW");function o(e){return e.replace(/[\\/]/g,r["posix"].sep)}function s(e,t,n,o){if(void 0===o&&(o=r["sep"]),e===t)return!0;if(!e||!t)return!1;if(t.length>e.length)return!1;if(n){var s=Object(i["N"])(e,t);if(!s)return!1;if(t.length===e.length)return!0;var a=t.length;return t.charAt(t.length-1)===o&&a--,e.charAt(a)===o}return t.charAt(t.length-1)!==o&&(t+=o),0===e.indexOf(t)}function a(e){return e>=65&&e<=90||e>=97&&e<=122}},Q4rV:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("bY76");function r(e){var t=JSON.parse(e);return t=o(t),t}function o(e,t){if(void 0===t&&(t=0),!e||t>200)return e;if("object"===typeof e){switch(e.$mid){case 1:return i["a"].revive(e);case 2:return new RegExp(e.source,e.flags)}for(var n in e)Object.hasOwnProperty.call(e,n)&&(e[n]=o(e[n],t+1))}return e}},QDVR:function(e,t,n){"use strict";n.d(t,"e",(function(){return r})),n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return l})),n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return h}));var i=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();function r(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}function o(e){var t=[];return e.forEach((function(e,n){return t.push(n)})),t}var s=function(){function e(){this._value="",this._pos=0}return e.prototype.reset=function(e){return this._value=e,this._pos=0,this},e.prototype.next=function(){return this._pos+=1,this},e.prototype.hasNext=function(){return this._pos<this._value.length-1},e.prototype.cmp=function(e){var t=e.charCodeAt(0),n=this._value.charCodeAt(this._pos);return t-n},e.prototype.value=function(){return this._value[this._pos]},e}(),a=function(){function e(e){void 0===e&&(e=!0),this._splitOnBackslash=e}return e.prototype.reset=function(e){return this._value=e.replace(/\\$|\/$/,""),this._from=0,this._to=0,this.next()},e.prototype.hasNext=function(){return this._to<this._value.length},e.prototype.next=function(){this._from=this._to;for(var e=!0;this._to<this._value.length;this._to++){var t=this._value.charCodeAt(this._to);if(47===t||this._splitOnBackslash&&92===t){if(!e)break;this._from++}else e=!1}return this},e.prototype.cmp=function(e){var t=0,n=e.length,i=this._from;while(t<n&&i<this._to){var r=e.charCodeAt(t)-this._value.charCodeAt(i);if(0!==r)return r;t+=1,i+=1}return n===this._to-this._from?0:t<n?-1:1},e.prototype.value=function(){return this._value.substring(this._from,this._to)},e}(),u=function(){function e(){}return e}(),l=function(){function e(e){this._iter=e}return e.forPaths=function(){return new e(new a)},e.forStrings=function(){return new e(new s)},e.prototype.clear=function(){this._root=void 0},e.prototype.set=function(e,t){var n,i=this._iter.reset(e);this._root||(this._root=new u,this._root.segment=i.value()),n=this._root;while(1){var r=i.cmp(n.segment);if(r>0)n.left||(n.left=new u,n.left.segment=i.value()),n=n.left;else if(r<0)n.right||(n.right=new u,n.right.segment=i.value()),n=n.right;else{if(!i.hasNext())break;i.next(),n.mid||(n.mid=new u,n.mid.segment=i.value()),n=n.mid}}var o=n.value;return n.value=t,n.key=e,o},e.prototype.get=function(e){var t=this._iter.reset(e),n=this._root;while(n){var i=t.cmp(n.segment);if(i>0)n=n.left;else if(i<0)n=n.right;else{if(!t.hasNext())break;t.next(),n=n.mid}}return n?n.value:void 0},e.prototype.findSubstr=function(e){var t=this._iter.reset(e),n=this._root,i=void 0;while(n){var r=t.cmp(n.segment);if(r>0)n=n.left;else if(r<0)n=n.right;else{if(!t.hasNext())break;t.next(),i=n.value||i,n=n.mid}}return n&&n.value||i},e.prototype.forEach=function(e){this._forEach(this._root,e)},e.prototype._forEach=function(e,t){e&&(this._forEach(e.left,t),e.value&&t(e.value,e.key),this._forEach(e.mid,t),this._forEach(e.right,t))},e}(),c=function(){function e(){this.map=new Map,this.ignoreCase=!1}return e.prototype.set=function(e,t){this.map.set(this.toKey(e),t)},e.prototype.get=function(e){return this.map.get(this.toKey(e))},e.prototype.toKey=function(e){var t=e.toString();return this.ignoreCase&&(t=t.toLowerCase()),t},e}(),d=function(){function e(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0}return e.prototype.clear=function(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),e.prototype.get=function(e,t){void 0===t&&(t=0);var n=this._map.get(e);if(n)return 0!==t&&this.touch(n,t),n.value},e.prototype.set=function(e,t,n){void 0===n&&(n=0);var i=this._map.get(e);if(i)i.value=t,0!==n&&this.touch(i,n);else{switch(i={key:e,value:t,next:void 0,previous:void 0},n){case 0:this.addItemLast(i);break;case 1:this.addItemFirst(i);break;case 2:this.addItemLast(i);break;default:this.addItemLast(i);break}this._map.set(e,i),this._size++}},e.prototype.delete=function(e){return!!this.remove(e)},e.prototype.remove=function(e){var t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value},e.prototype.forEach=function(e,t){var n=this._head;while(n)t?e.bind(t)(n.value,n.key,this):e(n.value,n.key,this),n=n.next},e.prototype.trimOld=function(e){if(!(e>=this.size))if(0!==e){var t=this._head,n=this.size;while(t&&n>e)this._map.delete(t.key),t=t.next,n--;this._head=t,this._size=n,t&&(t.previous=void 0)}else this.clear()},e.prototype.addItemFirst=function(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},e.prototype.addItemLast=function(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},e.prototype.removeItem=function(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{var t=e.next,n=e.previous;if(!t||!n)throw new Error("Invalid list");t.previous=n,n.next=t}e.next=void 0,e.previous=void 0},e.prototype.touch=function(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;var n=e.next,i=e.previous;e===this._tail?(i.next=void 0,this._tail=i):(n.previous=i,i.next=n),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e}else if(2===t){if(e===this._tail)return;n=e.next,i=e.previous;e===this._head?(n.previous=void 0,this._head=n):(n.previous=i,i.next=n),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e}},e.prototype.toJSON=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),e},e}(),h=function(e){function t(t,n){void 0===n&&(n=1);var i=e.call(this)||this;return i._limit=t,i._ratio=Math.min(Math.max(0,n),1),i}return i(t,e),t.prototype.get=function(t){return e.prototype.get.call(this,t,2)},t.prototype.peek=function(t){return e.prototype.get.call(this,t,0)},t.prototype.set=function(t,n){e.prototype.set.call(this,t,n,2),this.checkTrim()},t.prototype.checkTrim=function(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))},t}(d)},QFiB:function(e,t,n){"use strict";n.r(t);var i=n("+hIS");Object(i["a"])({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:function(){return n.e(162).then(n.bind(null,"PhST"))}})},QRHv:function(e,t,n){"use strict";n.d(t,"f",(function(){return a})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return d})),n.d(t,"a",(function(){return f})),n.d(t,"e",(function(){return A})),n.d(t,"d",(function(){return m}));var i=n("6OMU"),r=n("4bUh"),o=n("cGHE"),s=n("twdY");function a(e){for(var t=0,n=0,i=0,r=0,o=e.length;r<o;r++){var s=e.charCodeAt(r);13===s?(0===t&&(n=r),t++,r+1<o&&10===e.charCodeAt(r+1)&&r++,i=r+1):10===s&&(0===t&&(n=r),t++,i=r+1)}return 0===t&&(n=e.length),[t,n,e.length-i]}function u(e){return(16384|e<<0|2<<23)>>>0}var l=new Uint32Array(0).buffer,c=function(){function e(){this.tokens=[]}return e.prototype.add=function(e,t){if(this.tokens.length>0){var n=this.tokens[this.tokens.length-1],i=n.startLineNumber+n.tokens.length-1;if(i+1===e)return void n.tokens.push(t)}this.tokens.push(new p(e,[t]))},e}(),d=function(){function e(e){this._tokens=e,this._tokenCount=e.length/4}return e.prototype.getMaxDeltaLine=function(){var e=this.getTokenCount();return 0===e?-1:this.getDeltaLine(e-1)},e.prototype.getTokenCount=function(){return this._tokenCount},e.prototype.getDeltaLine=function(e){return this._tokens[4*e]},e.prototype.getStartCharacter=function(e){return this._tokens[4*e+1]},e.prototype.getEndCharacter=function(e){return this._tokens[4*e+2]},e.prototype.getMetadata=function(e){return this._tokens[4*e+3]},e.prototype.clear=function(){this._tokenCount=0},e.prototype.acceptDeleteRange=function(e,t,n,i,r){for(var o=this._tokens,s=this._tokenCount,a=i-t,u=0,l=!1,c=0;c<s;c++){var d=4*c,h=o[d],f=o[d+1],p=o[d+2],g=o[d+3];if(h<t||h===t&&p<=n)u++;else{if(h===t&&f<n)h===i&&p>r?p-=r-n:p=n;else if(h===t&&f===n){if(!(h===i&&p>r)){l=!0;continue}p-=r-n}else if(h<i||h===i&&f<r){if(!(h===i&&p>r)){l=!0;continue}h===t?(f=n,p=f+(p-r)):(f=0,p=f+(p-r))}else if(h>i){if(0===a&&!l){u=s;break}h-=a}else{if(!(h===i&&f>=r))throw new Error("Not possible!");e&&0===h&&(f+=e,p+=e),h-=a,f-=r-n,p-=r-n}var A=4*u;o[A]=h,o[A+1]=f,o[A+2]=p,o[A+3]=g,u++}}this._tokenCount=u},e.prototype.acceptInsertText=function(e,t,n,i,r,o){for(var s=0===n&&1===i&&(o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122),a=this._tokens,u=this._tokenCount,l=0;l<u;l++){var c=4*l,d=a[c],h=a[c+1],f=a[c+2];if(!(d<e||d===e&&f<t)){if(d===e&&f===t){if(!s)continue;f+=1}else if(d===e&&h<t&&t<f)0===n?f+=i:f=t;else{if(d===e&&h===t&&s)continue;if(d===e)if(d+=n,0===n)h+=i,f+=i;else{var p=f-h;h=r+(h-t),f=h+p}else d+=n}a[c]=d,a[c+1]=h,a[c+2]=f}}},e}(),h=function(){function e(e,t,n){this._actual=e,this._startTokenIndex=t,this._endTokenIndex=n}return e.prototype.getCount=function(){return this._endTokenIndex-this._startTokenIndex+1},e.prototype.getStartCharacter=function(e){return this._actual.getStartCharacter(this._startTokenIndex+e)},e.prototype.getEndCharacter=function(e){return this._actual.getEndCharacter(this._startTokenIndex+e)},e.prototype.getMetadata=function(e){return this._actual.getMetadata(this._startTokenIndex+e)},e}(),f=function(){function e(e,t){this.startLineNumber=e,this.tokens=t,this.endLineNumber=this.startLineNumber+this.tokens.getMaxDeltaLine()}return e.prototype._updateEndLineNumber=function(){this.endLineNumber=this.startLineNumber+this.tokens.getMaxDeltaLine()},e.prototype.getLineTokens=function(t){if(this.startLineNumber<=t&&t<=this.endLineNumber){var n=e._findTokensWithLine(this.tokens,t-this.startLineNumber);if(n){var i=n[0],r=n[1];return new h(this.tokens,i,r)}}return null},e._findTokensWithLine=function(e,t){var n=0,i=e.getTokenCount()-1;while(n<i){var r=n+Math.floor((i-n)/2),o=e.getDeltaLine(r);if(o<t)n=r+1;else{if(!(o>t)){var s=r;while(s>n&&e.getDeltaLine(s-1)===t)s--;var a=r;while(a<i&&e.getDeltaLine(a+1)===t)a++;return[s,a]}i=r-1}}return e.getDeltaLine(n)===t?[n,n]:null},e.prototype.applyEdit=function(e,t){var n=a(t),i=n[0],r=n[1],o=n[2];this.acceptEdit(e,i,r,o,t.length>0?t.charCodeAt(0):0)},e.prototype.acceptEdit=function(e,t,n,i,r){this._acceptDeleteRange(e),this._acceptInsertText(new o["a"](e.startLineNumber,e.startColumn),t,n,i,r),this._updateEndLineNumber()},e.prototype._acceptDeleteRange=function(e){if(e.startLineNumber!==e.endLineNumber||e.startColumn!==e.endColumn){var t=e.startLineNumber-this.startLineNumber,n=e.endLineNumber-this.startLineNumber;if(n<0){var i=n-t;this.startLineNumber-=i}else{var r=this.tokens.getMaxDeltaLine();if(!(t>=r+1)){if(t<0&&n>=r+1)return this.startLineNumber=0,void this.tokens.clear();if(t<0){var o=-t;this.startLineNumber-=o,this.tokens.acceptDeleteRange(e.startColumn-1,0,0,n,e.endColumn-1)}else this.tokens.acceptDeleteRange(0,t,e.startColumn-1,n,e.endColumn-1)}}}},e.prototype._acceptInsertText=function(e,t,n,i,r){if(0!==t||0!==n){var o=e.lineNumber-this.startLineNumber;if(o<0)this.startLineNumber+=t;else{var s=this.tokens.getMaxDeltaLine();o>=s+1||this.tokens.acceptInsertText(o,e.column-1,t,n,i,r)}}},e}(),p=function(){function e(e,t){this.startLineNumber=e,this.tokens=t}return e}();function g(e){return e instanceof Uint32Array?e:new Uint32Array(e)}var A=function(){function e(){this._pieces=[]}return e.prototype.flush=function(){this._pieces=[]},e.prototype.set=function(e){this._pieces=e||[]},e.prototype.addSemanticTokens=function(t,n){var i=this._pieces;if(0===i.length)return n;var o=e._findFirstPieceWithLine(i,t),s=this._pieces[o].getLineTokens(t);if(!s)return n;for(var a=n.getCount(),u=s.getCount(),l=0,c=[],d=0,h=0;h<u;h++){var f=s.getStartCharacter(h),p=s.getEndCharacter(h),g=s.getMetadata(h),A=((1&g?2048:0)|(2&g?4096:0)|(4&g?8192:0)|(8&g?8372224:0)|(16&g?4286578688:0))>>>0,m=~A>>>0;while(l<a&&n.getEndOffset(l)<=f)c[d++]=n.getEndOffset(l),c[d++]=n.getMetadata(l),l++;l<a&&n.getStartOffset(l)<f&&(c[d++]=f,c[d++]=n.getMetadata(l));while(l<a&&n.getEndOffset(l)<p)c[d++]=n.getEndOffset(l),c[d++]=n.getMetadata(l)&m|g&A,l++;if(l<a&&n.getEndOffset(l)===p)c[d++]=n.getEndOffset(l),c[d++]=n.getMetadata(l)&m|g&A,l++;else{var v=Math.min(Math.max(0,l-1),a-1);c[d++]=p,c[d++]=n.getMetadata(v)&m|g&A}}while(l<a)c[d++]=n.getEndOffset(l),c[d++]=n.getMetadata(l),l++;return new r["a"](new Uint32Array(c),n.getLineContent())},e._findFirstPieceWithLine=function(e,t){var n=0,i=e.length-1;while(n<i){var r=n+Math.floor((i-n)/2);if(e[r].endLineNumber<t)n=r+1;else{if(!(e[r].startLineNumber>t)){while(r>n&&e[r-1].startLineNumber<=t&&t<=e[r-1].endLineNumber)r--;return r}i=r-1}}return n},e.prototype.acceptEdit=function(e,t,n,i,r){for(var o=0,s=this._pieces;o<s.length;o++){var a=s[o];a.acceptEdit(e,t,n,i,r)}},e}(),m=function(){function e(){this._lineTokens=[],this._len=0}return e.prototype.flush=function(){this._lineTokens=[],this._len=0},e.prototype.getTokens=function(e,t,n){var i=null;if(t<this._len&&(i=this._lineTokens[t]),null!==i&&i!==l)return new r["a"](g(i),n);var o=new Uint32Array(2);return o[0]=n.length,o[1]=u(e),new r["a"](o,n)},e._massageTokens=function(e,t,n){var i=n?g(n):null;if(0===t){var r=!1;if(i&&i.length>1&&(r=s["x"].getLanguageId(i[1])!==e),!r)return l}if(!i||0===i.length){var o=new Uint32Array(2);return o[0]=t,o[1]=u(e),o.buffer}return i[i.length-2]=t,0===i.byteOffset&&i.byteLength===i.buffer.byteLength?i.buffer:i},e.prototype._ensureLine=function(e){while(e>=this._len)this._lineTokens[this._len]=null,this._len++},e.prototype._deleteLines=function(e,t){0!==t&&(e+t>this._len&&(t=this._len-e),this._lineTokens.splice(e,t),this._len-=t)},e.prototype._insertLines=function(e,t){if(0!==t){for(var n=[],r=0;r<t;r++)n[r]=null;this._lineTokens=i["a"](this._lineTokens,e,n),this._len+=t}},e.prototype.setTokens=function(t,n,i,r){var o=e._massageTokens(t,i,r);this._ensureLine(n),this._lineTokens[n]=o},e.prototype.acceptEdit=function(e,t,n){this._acceptDeleteRange(e),this._acceptInsertText(new o["a"](e.startLineNumber,e.startColumn),t,n)},e.prototype._acceptDeleteRange=function(t){var n=t.startLineNumber-1;if(!(n>=this._len))if(t.startLineNumber!==t.endLineNumber){this._lineTokens[n]=e._deleteEnding(this._lineTokens[n],t.startColumn-1);var i=t.endLineNumber-1,r=null;i<this._len&&(r=e._deleteBeginning(this._lineTokens[i],t.endColumn-1)),this._lineTokens[n]=e._append(this._lineTokens[n],r),this._deleteLines(t.startLineNumber,t.endLineNumber-t.startLineNumber)}else{if(t.startColumn===t.endColumn)return;this._lineTokens[n]=e._delete(this._lineTokens[n],t.startColumn-1,t.endColumn-1)}},e.prototype._acceptInsertText=function(t,n,i){if(0!==n||0!==i){var r=t.lineNumber-1;r>=this._len||(0!==n?(this._lineTokens[r]=e._deleteEnding(this._lineTokens[r],t.column-1),this._lineTokens[r]=e._insert(this._lineTokens[r],t.column-1,i),this._insertLines(t.lineNumber,n)):this._lineTokens[r]=e._insert(this._lineTokens[r],t.column-1,i))}},e._deleteBeginning=function(t,n){return null===t||t===l?t:e._delete(t,0,n)},e._deleteEnding=function(t,n){if(null===t||t===l)return t;var i=g(t),r=i[i.length-2];return e._delete(t,n,r)},e._delete=function(e,t,n){if(null===e||e===l||t===n)return e;var i=g(e),o=i.length>>>1;if(0===t&&i[i.length-2]===n)return l;var s,a,u=r["a"].findIndexInTokensArray(i,t),c=u>0?i[u-1<<1]:0,d=i[u<<1];if(n<d){for(var h=n-t,f=u;f<o;f++)i[f<<1]-=h;return e}c!==t?(i[u<<1]=t,s=u+1<<1,a=t):(s=u<<1,a=c);for(var p=n-t,A=u+1;A<o;A++){var m=i[A<<1]-p;m>a&&(i[s++]=m,i[s++]=i[1+(A<<1)],a=m)}if(s===i.length)return e;var v=new Uint32Array(s);return v.set(i.subarray(0,s),0),v.buffer},e._append=function(e,t){if(t===l)return e;if(e===l)return t;if(null===e)return e;if(null===t)return null;var n=g(e),i=g(t),r=i.length>>>1,o=new Uint32Array(n.length+i.length);o.set(n,0);for(var s=n.length,a=n[n.length-2],u=0;u<r;u++)o[s++]=i[u<<1]+a,o[s++]=i[1+(u<<1)];return o.buffer},e._insert=function(e,t,n){if(null===e||e===l)return e;var i=g(e),o=i.length>>>1,s=r["a"].findIndexInTokensArray(i,t);if(s>0){var a=i[s-1<<1];a===t&&s--}for(var u=s;u<o;u++)i[u<<1]+=n;return e},e}()},QVNv:function(e,t,n){"use strict";n.d(t,"b",(function(){return m})),n.d(t,"a",(function(){return _})),n.d(t,"c",(function(){return y})),n.d(t,"e",(function(){return b})),n.d(t,"d",(function(){return L})),n.d(t,"f",(function(){return x}));var i,r=n("X+cX"),o=n("qj0h"),s=n("/cxE"),a=n("sswD"),u=n("twdY"),l=n("cGHE"),c=n("T8No"),d=n("JQT/"),h=n("aokT"),f=n("fpMC"),p=n("pmY6"),g=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{u(i.next(e))}catch(t){o(t)}}function a(e){try{u(i["throw"](e))}catch(t){o(t)}}function u(e){e.done?n(e.value):r(e.value).then(s,a)}u((i=i.apply(e,t||[])).next())}))},A=function(e,t){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(e){return function(t){return u([e,t])}}function u(o){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,i&&(r=2&o[0]?i["return"]:o[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(r=s.trys,!(r=r.length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(a){o=[6,a],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},m={Visible:new c["d"]("suggestWidgetVisible",!1),MultipleSuggestions:new c["d"]("suggestWidgetMultipleSuggestions",!1),MakesTextEdit:new c["d"]("suggestionMakesTextEdit",!0),AcceptSuggestionsOnEnter:new c["d"]("acceptSuggestionOnEnter",!0)},v=function(){function e(e,t,n,i,r){var a=this;this.position=e,this.completion=t,this.container=n,this.provider=i,this.isResolved=!1,this.score=f["a"].Default,this.distance=0,this.textLabel="string"===typeof t.label?t.label:t.label.name,this.labelLow=this.textLabel.toLowerCase(),this.sortTextLow=t.sortText&&t.sortText.toLowerCase(),this.filterTextLow=t.filterText&&t.filterText.toLowerCase(),h["a"].isIRange(t.range)?(this.editStart=new l["a"](t.range.startLineNumber,t.range.startColumn),this.editInsertEnd=new l["a"](t.range.endLineNumber,t.range.endColumn),this.editReplaceEnd=new l["a"](t.range.endLineNumber,t.range.endColumn)):(this.editStart=new l["a"](t.range.insert.startLineNumber,t.range.insert.startColumn),this.editInsertEnd=new l["a"](t.range.insert.endLineNumber,t.range.insert.endColumn),this.editReplaceEnd=new l["a"](t.range.replace.endLineNumber,t.range.replace.endColumn));var u,c=i.resolveCompletionItem;"function"!==typeof c?(this.resolve=function(){return Promise.resolve()},this.isResolved=!0):this.resolve=function(n){return u||(u=Promise.resolve(c.call(i,r,e,t,n)).then((function(e){Object(o["a"])(t,e),a.isResolved=!0}),(function(e){Object(s["d"])(e)&&(u=void 0)})),n.onCancellationRequested((function(){a.isResolved||(u=void 0)}))),u}}return e}(),_=function(){function e(e,t,n){void 0===e&&(e=2),void 0===t&&(t=new Set),void 0===n&&(n=new Set),this.snippetSortOrder=e,this.kindFilter=t,this.providerFilter=n}return e.default=new e,e}();function y(){return i}function b(e,t,n,o,a){void 0===n&&(n=_.default),void 0===o&&(o={triggerKind:0}),void 0===a&&(a=d["a"].None);var l=e.getWordAtPosition(t),c=l?new h["a"](t.lineNumber,l.startColumn,t.lineNumber,l.endColumn):h["a"].fromPositions(t),f=c.setEndPosition(t.lineNumber,t.column);t=t.clone();var g=u["d"].orderedGroups(e);!n.kindFilter.has(25)&&i&&g.unshift([i]);var A=[],m=new p["b"],y=!1,b=g.map((function(r){return function(){return Promise.all(r.map((function(r){if(!(n.providerFilter.size>0)||n.providerFilter.has(r))return Promise.resolve(r.provideCompletionItems(e,t,o,a)).then((function(o){var s=A.length;if(o){for(var a=0,u=o.suggestions||[];a<u.length;a++){var l=u[a];n.kindFilter.has(l.kind)||(l.range||(l.range={insert:f,replace:c}),l.sortText||(l.sortText="string"===typeof l.label?l.label:l.label.name),A.push(new v(t,l,o,r,e)))}Object(p["g"])(o)&&m.add(o)}s!==A.length&&r!==i&&(y=!0)}),s["f"])})))}})),w=Object(r["h"])(b,(function(){return y||a.isCancellationRequested})).then((function(){return a.isCancellationRequested?(m.dispose(),Promise.reject(Object(s["a"])())):A.sort(L(n.snippetSortOrder))}));return w}function w(e,t){if(e.sortTextLow&&t.sortTextLow){if(e.sortTextLow<t.sortTextLow)return-1;if(e.sortTextLow>t.sortTextLow)return 1}return e.completion.label<t.completion.label?-1:e.completion.label>t.completion.label?1:e.completion.kind-t.completion.kind}function C(e,t){if(e.completion.kind!==t.completion.kind){if(25===e.completion.kind)return-1;if(25===t.completion.kind)return 1}return w(e,t)}function S(e,t){if(e.completion.kind!==t.completion.kind){if(25===e.completion.kind)return 1;if(25===t.completion.kind)return-1}return w(e,t)}var N=new Map;function L(e){return N.get(e)}N.set(0,C),N.set(2,S),N.set(1,w),Object(a["e"])("_executeCompletionItemProvider",(function(e,t,n){return g(void 0,void 0,void 0,(function(){var i,r,o,s,a,u,l,c;return A(this,(function(h){switch(h.label){case 0:return i={incomplete:!1,suggestions:[]},r=new p["b"],o=[],s=n["maxItemsToResolve"]||0,[4,b(e,t)];case 1:for(a=h.sent(),u=0,l=a;u<l.length;u++)c=l[u],o.length<s&&o.push(c.resolve(d["a"].None)),i.incomplete=i.incomplete||c.container.incomplete,i.suggestions.push(c.completion),Object(p["g"])(c.container)&&r.add(c.container);h.label=2;case 2:return h.trys.push([2,,4,5]),[4,Promise.all(o)];case 3:return h.sent(),[2,i];case 4:return setTimeout((function(){return r.dispose()}),100),[7];case 5:return[2]}}))}))}));var E=new(function(){function e(){this.onlyOnceSuggestions=[]}return e.prototype.provideCompletionItems=function(){var e=this.onlyOnceSuggestions.slice(0),t={suggestions:e};return this.onlyOnceSuggestions.length=0,t},e}());function x(e,t){setTimeout((function(){var n;(n=E.onlyOnceSuggestions).push.apply(n,t),e.getContribution("editor.contrib.suggestController").triggerSuggest((new Set).add(E))}),0)}u["d"].register("*",E)},QiAa:function(e,t,n){"use strict";n.r(t);var i=n("+hIS");Object(i["a"])({id:"redis",extensions:[".redis"],aliases:["redis"],loader:function(){return n.e(179).then(n.bind(null,"j6Xs"))}})},QuOb:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n("MI8n"),r=n("pmY6"),o=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),s=function(){function e(e,t,n,i,r,o){e|=0,t|=0,n|=0,i|=0,r|=0,o|=0,e<0&&(e=0),n+e>t&&(n=t-e),n<0&&(n=0),i<0&&(i=0),o+i>r&&(o=r-i),o<0&&(o=0),this.width=e,this.scrollWidth=t,this.scrollLeft=n,this.height=i,this.scrollHeight=r,this.scrollTop=o}return e.prototype.equals=function(e){return this.width===e.width&&this.scrollWidth===e.scrollWidth&&this.scrollLeft===e.scrollLeft&&this.height===e.height&&this.scrollHeight===e.scrollHeight&&this.scrollTop===e.scrollTop},e.prototype.withScrollDimensions=function(t){return new e("undefined"!==typeof t.width?t.width:this.width,"undefined"!==typeof t.scrollWidth?t.scrollWidth:this.scrollWidth,this.scrollLeft,"undefined"!==typeof t.height?t.height:this.height,"undefined"!==typeof t.scrollHeight?t.scrollHeight:this.scrollHeight,this.scrollTop)},e.prototype.withScrollPosition=function(t){return new e(this.width,this.scrollWidth,"undefined"!==typeof t.scrollLeft?t.scrollLeft:this.scrollLeft,this.height,this.scrollHeight,"undefined"!==typeof t.scrollTop?t.scrollTop:this.scrollTop)},e.prototype.createScrollEvent=function(e){var t=this.width!==e.width,n=this.scrollWidth!==e.scrollWidth,i=this.scrollLeft!==e.scrollLeft,r=this.height!==e.height,o=this.scrollHeight!==e.scrollHeight,s=this.scrollTop!==e.scrollTop;return{width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:t,scrollWidthChanged:n,scrollLeftChanged:i,heightChanged:r,scrollHeightChanged:o,scrollTopChanged:s}},e}(),a=function(e){function t(t,n){var r=e.call(this)||this;return r._onScroll=r._register(new i["a"]),r.onScroll=r._onScroll.event,r._smoothScrollDuration=t,r._scheduleAtNextAnimationFrame=n,r._state=new s(0,0,0,0,0,0),r._smoothScrolling=null,r}return o(t,e),t.prototype.dispose=function(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),e.prototype.dispose.call(this)},t.prototype.setSmoothScrollDuration=function(e){this._smoothScrollDuration=e},t.prototype.validateScrollPosition=function(e){return this._state.withScrollPosition(e)},t.prototype.getScrollDimensions=function(){return this._state},t.prototype.setScrollDimensions=function(e){var t=this._state.withScrollDimensions(e);this._setState(t),this._smoothScrolling&&this._smoothScrolling.acceptScrollDimensions(this._state)},t.prototype.getFutureScrollPosition=function(){return this._smoothScrolling?this._smoothScrolling.to:this._state},t.prototype.getCurrentScrollPosition=function(){return this._state},t.prototype.setScrollPositionNow=function(e){var t=this._state.withScrollPosition(e);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(t)},t.prototype.setScrollPositionSmooth=function(e){var t=this;if(0===this._smoothScrollDuration)return this.setScrollPositionNow(e);if(this._smoothScrolling){e={scrollLeft:"undefined"===typeof e.scrollLeft?this._smoothScrolling.to.scrollLeft:e.scrollLeft,scrollTop:"undefined"===typeof e.scrollTop?this._smoothScrolling.to.scrollTop:e.scrollTop};var n=this._state.withScrollPosition(e);if(this._smoothScrolling.to.scrollLeft===n.scrollLeft&&this._smoothScrolling.to.scrollTop===n.scrollTop)return;var i=this._smoothScrolling.combine(this._state,n,this._smoothScrollDuration);this._smoothScrolling.dispose(),this._smoothScrolling=i}else{n=this._state.withScrollPosition(e);this._smoothScrolling=d.start(this._state,n,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame((function(){t._smoothScrolling&&(t._smoothScrolling.animationFrameDisposable=null,t._performSmoothScrolling())}))},t.prototype._performSmoothScrolling=function(){var e=this;if(this._smoothScrolling){var t=this._smoothScrolling.tick(),n=this._state.withScrollPosition(t);if(this._setState(n),t.isDone)return this._smoothScrolling.dispose(),void(this._smoothScrolling=null);this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame((function(){e._smoothScrolling&&(e._smoothScrolling.animationFrameDisposable=null,e._performSmoothScrolling())}))}},t.prototype._setState=function(e){var t=this._state;t.equals(e)||(this._state=e,this._onScroll.fire(this._state.createScrollEvent(t)))},t}(r["a"]),u=function(){function e(e,t,n){this.scrollLeft=e,this.scrollTop=t,this.isDone=n}return e}();function l(e,t){var n=t-e;return function(t){return e+n*f(t)}}function c(e,t,n){return function(i){return i<n?e(i/n):t((i-n)/(1-n))}}var d=function(){function e(e,t,n,i){this.from=e,this.to=t,this.duration=i,this._startTime=n,this.animationFrameDisposable=null,this._initAnimations()}return e.prototype._initAnimations=function(){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)},e.prototype._initAnimation=function(e,t,n){var i=Math.abs(e-t);if(i>2.5*n){var r=void 0,o=void 0;return e<t?(r=e+.75*n,o=t-.75*n):(r=e-.75*n,o=t+.75*n),c(l(e,r),l(o,t),.33)}return l(e,t)},e.prototype.dispose=function(){null!==this.animationFrameDisposable&&(this.animationFrameDisposable.dispose(),this.animationFrameDisposable=null)},e.prototype.acceptScrollDimensions=function(e){this.to=e.withScrollPosition(this.to),this._initAnimations()},e.prototype.tick=function(){return this._tick(Date.now())},e.prototype._tick=function(e){var t=(e-this._startTime)/this.duration;if(t<1){var n=this.scrollLeft(t),i=this.scrollTop(t);return new u(n,i,!1)}return new u(this.to.scrollLeft,this.to.scrollTop,!0)},e.prototype.combine=function(t,n,i){return e.start(t,n,i)},e.start=function(t,n,i){i+=10;var r=Date.now()-10;return new e(t,n,r,i)},e}();function h(e){return Math.pow(e,3)}function f(e){return 1-h(1-e)}},R3nR:function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return s}));var i=n("Cg/j"),r=n("T8No"),o=Object(i["c"])("accessibilityService"),s=new r["d"]("accessibilityModeEnabled",!1)},R8sh:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n("Cg/j"),r="label",o=Object(i["c"])(r)},S3by:function(e,t,n){"use strict";var i,r=n("3/fG"),o=n("N0LK");(function(e){e[e["Ignore"]=0]="Ignore",e[e["Info"]=1]="Info",e[e["Warning"]=2]="Warning",e[e["Error"]=3]="Error"})(i||(i={})),function(e){var t="error",n="warning",i="warn",s="info",a=Object.create(null);function u(r){return r?o["n"](t,r)?e.Error:o["n"](n,r)||o["n"](i,r)?e.Warning:o["n"](s,r)?e.Info:e.Ignore:e.Ignore}a[e.Error]=r["a"]("sev.error","Error"),a[e.Warning]=r["a"]("sev.warning","Warning"),a[e.Info]=r["a"]("sev.info","Info"),e.fromValue=u}(i||(i={})),t["a"]=i},Sdnv:function(e,t,n){"use strict";function i(e,t,n){return Math.min(Math.max(e,t),n)}n.d(t,"a",(function(){return i}))},SvYn:function(e,t,n){"use strict";n.r(t);var i=n("+hIS");Object(i["a"])({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:function(){return n.e(151).then(n.bind(null,"Dsrv"))}})},T8No:function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return g})),n.d(t,"d",(function(){return A})),n.d(t,"c",(function(){return m})),n.d(t,"e",(function(){return v}));var i=n("N0LK"),r=n("Cg/j"),o=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),s=function(){function e(){}return e.has=function(e){return u.create(e)},e.equals=function(e,t){return l.create(e,t)},e.regex=function(e,t){return h.create(e,t)},e.not=function(e){return d.create(e)},e.and=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return p.create(e)},e.or=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return g.create(e)},e.deserialize=function(e,t){if(void 0===t&&(t=!1),e)return this._deserializeOrExpression(e,t)},e._deserializeOrExpression=function(e,t){var n=this,i=e.split("||");return g.create(i.map((function(e){return n._deserializeAndExpression(e,t)})))},e._deserializeAndExpression=function(e,t){var n=this,i=e.split("&&");return p.create(i.map((function(e){return n._deserializeOne(e,t)})))},e._deserializeOne=function(e,t){if(e=e.trim(),e.indexOf("!=")>=0){var n=e.split("!=");return c.create(n[0].trim(),this._deserializeValue(n[1],t))}if(e.indexOf("==")>=0){n=e.split("==");return l.create(n[0].trim(),this._deserializeValue(n[1],t))}if(e.indexOf("=~")>=0){n=e.split("=~");return h.create(n[0].trim(),this._deserializeRegexValue(n[1],t))}return/^\!\s*/.test(e)?d.create(e.substr(1).trim()):u.create(e)},e._deserializeValue=function(e,t){if(e=e.trim(),"true"===e)return!0;if("false"===e)return!1;var n=/^'([^']*)'$/.exec(e);return n?n[1].trim():e},e._deserializeRegexValue=function(e,t){if(Object(i["x"])(e)){if(t)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}var n=e.indexOf("/"),r=e.lastIndexOf("/");if(n===r||n<0){if(t)throw new Error("bad regexp-value '"+e+"', missing /-enclosure");return console.warn("bad regexp-value '"+e+"', missing /-enclosure"),null}var o=e.slice(n+1,r),s="i"===e[r+1]?"i":"";try{return new RegExp(o,s)}catch(a){if(t)throw new Error("bad regexp-value '"+e+"', parse error: "+a);return console.warn("bad regexp-value '"+e+"', parse error: "+a),null}},e}();function a(e,t){var n=e.getType(),i=t.getType();if(n!==i)return n-i;switch(n){case 1:return e.cmp(t);case 2:return e.cmp(t);case 3:return e.cmp(t);case 4:return e.cmp(t);case 6:return e.cmp(t);case 7:return e.cmp(t);case 5:return e.cmp(t);default:throw new Error("Unknown ContextKeyExpr!")}}var u=function(){function e(e){this.key=e}return e.create=function(t){return new e(t)},e.prototype.getType=function(){return 1},e.prototype.cmp=function(e){return this.key<e.key?-1:this.key>e.key?1:0},e.prototype.equals=function(t){return t instanceof e&&this.key===t.key},e.prototype.evaluate=function(e){return!!e.getValue(this.key)},e.prototype.keys=function(){return[this.key]},e.prototype.negate=function(){return d.create(this.key)},e}(),l=function(){function e(e,t){this.key=e,this.value=t}return e.create=function(t,n){return"boolean"===typeof n?n?u.create(t):d.create(t):new e(t,n)},e.prototype.getType=function(){return 3},e.prototype.cmp=function(e){return this.key<e.key?-1:this.key>e.key?1:this.value<e.value?-1:this.value>e.value?1:0},e.prototype.equals=function(t){return t instanceof e&&(this.key===t.key&&this.value===t.value)},e.prototype.evaluate=function(e){return e.getValue(this.key)==this.value},e.prototype.keys=function(){return[this.key]},e.prototype.negate=function(){return c.create(this.key,this.value)},e}(),c=function(){function e(e,t){this.key=e,this.value=t}return e.create=function(t,n){return"boolean"===typeof n?n?d.create(t):u.create(t):new e(t,n)},e.prototype.getType=function(){return 4},e.prototype.cmp=function(e){return this.key<e.key?-1:this.key>e.key?1:this.value<e.value?-1:this.value>e.value?1:0},e.prototype.equals=function(t){return t instanceof e&&(this.key===t.key&&this.value===t.value)},e.prototype.evaluate=function(e){return e.getValue(this.key)!=this.value},e.prototype.keys=function(){return[this.key]},e.prototype.negate=function(){return l.create(this.key,this.value)},e}(),d=function(){function e(e){this.key=e}return e.create=function(t){return new e(t)},e.prototype.getType=function(){return 2},e.prototype.cmp=function(e){return this.key<e.key?-1:this.key>e.key?1:0},e.prototype.equals=function(t){return t instanceof e&&this.key===t.key},e.prototype.evaluate=function(e){return!e.getValue(this.key)},e.prototype.keys=function(){return[this.key]},e.prototype.negate=function(){return u.create(this.key)},e}(),h=function(){function e(e,t){this.key=e,this.regexp=t}return e.create=function(t,n){return new e(t,n)},e.prototype.getType=function(){return 6},e.prototype.cmp=function(e){if(this.key<e.key)return-1;if(this.key>e.key)return 1;var t=this.regexp?this.regexp.source:"",n=e.regexp?e.regexp.source:"";return t<n?-1:t>n?1:0},e.prototype.equals=function(t){if(t instanceof e){var n=this.regexp?this.regexp.source:"",i=t.regexp?t.regexp.source:"";return this.key===t.key&&n===i}return!1},e.prototype.evaluate=function(e){var t=e.getValue(this.key);return!!this.regexp&&this.regexp.test(t)},e.prototype.keys=function(){return[this.key]},e.prototype.negate=function(){return f.create(this)},e}(),f=function(){function e(e){this._actual=e}return e.create=function(t){return new e(t)},e.prototype.getType=function(){return 7},e.prototype.cmp=function(e){return this._actual.cmp(e._actual)},e.prototype.equals=function(t){return t instanceof e&&this._actual.equals(t._actual)},e.prototype.evaluate=function(e){return!this._actual.evaluate(e)},e.prototype.keys=function(){return this._actual.keys()},e.prototype.negate=function(){return this._actual},e}(),p=function(){function e(e){this.expr=e}return e.create=function(t){var n=e._normalizeArr(t);if(0!==n.length)return 1===n.length?n[0]:new e(n)},e.prototype.getType=function(){return 5},e.prototype.cmp=function(e){if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(var t=0,n=this.expr.length;t<n;t++){var i=a(this.expr[t],e.expr[t]);if(0!==i)return i}return 0},e.prototype.equals=function(t){if(t instanceof e){if(this.expr.length!==t.expr.length)return!1;for(var n=0,i=this.expr.length;n<i;n++)if(!this.expr[n].equals(t.expr[n]))return!1;return!0}return!1},e.prototype.evaluate=function(e){for(var t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].evaluate(e))return!1;return!0},e._normalizeArr=function(t){var n=[];if(t){for(var i=0,r=t.length;i<r;i++){var o=t[i];if(o)if(o instanceof e)n=n.concat(o.expr);else{if(o instanceof g)throw new Error('It is not allowed to have an or expression here due to lack of parens! For example "a && (b||c)" is not supported, use "(a&&b) || (a&&c)" instead.');n.push(o)}}n.sort(a)}return n},e.prototype.keys=function(){for(var e=[],t=0,n=this.expr;t<n.length;t++){var i=n[t];e.push.apply(e,i.keys())}return e},e.prototype.negate=function(){for(var e=[],t=0,n=this.expr;t<n.length;t++){var i=n[t];e.push(i.negate())}return g.create(e)},e}(),g=function(){function e(e){this.expr=e}return e.create=function(t){var n=e._normalizeArr(t);if(0!==n.length)return 1===n.length?n[0]:new e(n)},e.prototype.getType=function(){return 8},e.prototype.equals=function(t){if(t instanceof e){if(this.expr.length!==t.expr.length)return!1;for(var n=0,i=this.expr.length;n<i;n++)if(!this.expr[n].equals(t.expr[n]))return!1;return!0}return!1},e.prototype.evaluate=function(e){for(var t=0,n=this.expr.length;t<n;t++)if(this.expr[t].evaluate(e))return!0;return!1},e._normalizeArr=function(t){var n=[];if(t){for(var i=0,r=t.length;i<r;i++){var o=t[i];o&&(o instanceof e?n=n.concat(o.expr):n.push(o))}n.sort(a)}return n},e.prototype.keys=function(){for(var e=[],t=0,n=this.expr;t<n.length;t++){var i=n[t];e.push.apply(e,i.keys())}return e},e.prototype.negate=function(){for(var t=[],n=0,i=this.expr;n<i.length;n++){var r=i[n];t.push(r.negate())}var o=function(t){return t instanceof e?t.expr:[t]};while(t.length>1){for(var a=t.shift(),u=t.shift(),l=[],c=0,d=o(a);c<d.length;c++)for(var h=d[c],f=0,p=o(u);f<p.length;f++){var g=p[f];l.push(s.and(h,g))}t.unshift(s.or.apply(s,l))}return t[0]},e}(),A=function(e){function t(t,n){var i=e.call(this,t)||this;return i._defaultValue=n,i}return o(t,e),t.prototype.bindTo=function(e){return e.createKey(this.key,this._defaultValue)},t.prototype.getValue=function(e){return e.getContextKeyValue(this.key)},t.prototype.toNegated=function(){return s.not(this.key)},t}(u),m=Object(r["c"])("contextKeyService"),v="setContext"},TQUy:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return u}));var i=n("N0LK"),r=n("4bUh"),o=n("i/Ef"),s={getInitialState:function(){return o["c"]},tokenize2:function(e,t,n){return Object(o["e"])(0,e,t,n)}};function a(e,t){return void 0===t&&(t=s),l(e,t||s)}function u(e,t,n,i,r,o,s){for(var a="<div>",u=i,l=0,c=0,d=t.getCount();c<d;c++){var h=t.getEndOffset(c);if(!(h<=i)){for(var f="";u<h&&u<r;u++){var p=e.charCodeAt(u);switch(p){case 9:var g=o-(u+l)%o;l+=g-1;while(g>0)f+=s?" ":" ",g--;break;case 60:f+="<";break;case 62:f+=">";break;case 38:f+="&";break;case 0:f+="�";break;case 65279:case 8232:f+="\ufffd";break;case 13:f+="​";break;case 32:f+=s?" ":" ";break;default:f+=String.fromCharCode(p)}}if(a+='<span style="'+t.getInlineStyle(c,n)+'">'+f+"</span>",h>r||u>=r)break}}return a+="</div>",a}function l(e,t){for(var n='<div class="monaco-tokenized-source">',o=e.split(/\r\n|\r|\n/),s=t.getInitialState(),a=0,u=o.length;a<u;a++){var l=o[a];a>0&&(n+="<br/>");var c=t.tokenize2(l,s,0);r["a"].convertToEndOffset(c.tokens,l.length);for(var d=new r["a"](c.tokens,l),h=d.inflate(),f=0,p=0,g=h.getCount();p<g;p++){var A=h.getClassName(p),m=h.getEndOffset(p);n+='<span class="'+A+'">'+i["o"](l.substring(f,m))+"</span>",f=m}s=c.endState}return n+="</div>",n}},TT2d:function(e,t,n){},Tcc1:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return o}));var i=function(){function e(e,t,n){this.offset=0|e,this.type=t,this.language=n}return e.prototype.toString=function(){return"("+this.offset+", "+this.type+")"},e}(),r=function(){function e(e,t){this.tokens=e,this.endState=t}return e}(),o=function(){function e(e,t){this.tokens=e,this.endState=t}return e}()},UCkY:function(e,t,n){},URDS:function(e,t,n){(function(e){(function(e,t){t()})(0,(function(){"use strict";function t(e){var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){return t.reject(n)}))}))}var n=setTimeout;function i(){}function r(e,t){return function(){e.apply(t,arguments)}}function o(e){if(!(this instanceof o))throw new TypeError("Promises must be constructed via new");if("function"!==typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],d(e,this)}function s(e,t){while(3===e._state)e=e._value;0!==e._state?(e._handled=!0,o._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var i;try{i=n(e._value)}catch(r){return void u(t.promise,r)}a(t.promise,i)}else(1===e._state?a:u)(t.promise,e._value)}))):e._deferreds.push(t)}function a(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"===typeof t||"function"===typeof t)){var n=t.then;if(t instanceof o)return e._state=3,e._value=t,void l(e);if("function"===typeof n)return void d(r(n,t),e)}e._state=1,e._value=t,l(e)}catch(i){u(e,i)}}function u(e,t){e._state=2,e._value=t,l(e)}function l(e){2===e._state&&0===e._deferreds.length&&o._immediateFn((function(){e._handled||o._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)s(e,e._deferreds[t]);e._deferreds=null}function c(e,t,n){this.onFulfilled="function"===typeof e?e:null,this.onRejected="function"===typeof t?t:null,this.promise=n}function d(e,t){var n=!1;try{e((function(e){n||(n=!0,a(t,e))}),(function(e){n||(n=!0,u(t,e))}))}catch(i){if(n)return;n=!0,u(t,i)}}o.prototype["catch"]=function(e){return this.then(null,e)},o.prototype.then=function(e,t){var n=new this.constructor(i);return s(this,new c(e,t,n)),n},o.prototype["finally"]=t,o.all=function(e){return new o((function(t,n){if(!e||"undefined"===typeof e.length)throw new TypeError("Promise.all accepts an array");var i=Array.prototype.slice.call(e);if(0===i.length)return t([]);var r=i.length;function o(e,s){try{if(s&&("object"===typeof s||"function"===typeof s)){var a=s.then;if("function"===typeof a)return void a.call(s,(function(t){o(e,t)}),n)}i[e]=s,0===--r&&t(i)}catch(u){n(u)}}for(var s=0;s<i.length;s++)o(s,i[s])}))},o.resolve=function(e){return e&&"object"===typeof e&&e.constructor===o?e:new o((function(t){t(e)}))},o.reject=function(e){return new o((function(t,n){n(e)}))},o.race=function(e){return new o((function(t,n){for(var i=0,r=e.length;i<r;i++)e[i].then(t,n)}))},o._immediateFn="function"===typeof setImmediate&&function(e){setImmediate(e)}||function(e){n(e,0)},o._unhandledRejectionFn=function(e){"undefined"!==typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};var h=function(){if("undefined"!==typeof self)return self;if("undefined"!==typeof window)return window;if("undefined"!==typeof e)return e;throw new Error("unable to locate global object")}();"Promise"in h?h.Promise.prototype["finally"]||(h.Promise.prototype["finally"]=t):h["Promise"]=o}))}).call(this,n("yLpj"))},Uzvx:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o}));var i=n("Cg/j"),r=Object(i["c"])("contextViewService"),o=Object(i["c"])("contextMenuService")},VPJY:function(e,t,n){},Vhoy:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return u}));var i=/(\\)?\$\([a-z0-9\-]+?(?:~[a-z0-9\-]*?)?\)/gi;function r(e){return e.replace(i,(function(e,t){return t?e:"\\"+e}))}var o=/\\\$\([a-z0-9\-]+?(?:~[a-z0-9\-]*?)?\)/gi;function s(e){return e.replace(o,(function(e){return"\\"+e}))}var a=/(\\)?\$\((([a-z0-9\-]+?)(?:~([a-z0-9\-]*?))?)\)/gi;function u(e){return e.replace(a,(function(e,t,n,i,r){return t?"$("+n+")":'<span class="codicon codicon-'+i+(r?" codicon-animation-"+r:"")+'"></span>'}))}},Vtyv:function(e,t,n){},VvMK:function(e,t,n){},Vxe3:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("Cg/j"),r=Object(i["c"])("codeEditorService")},W9cx:function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return d}));var i=n("bY76"),r=n("Cg/j"),o=n("pmY6"),s=n("N0LK"),a=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{u(i.next(e))}catch(t){o(t)}}function a(e){try{u(i["throw"](e))}catch(t){o(t)}}function u(e){e.done?n(e.value):r(e.value).then(s,a)}u((i=i.apply(e,t||[])).next())}))},u=function(e,t){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(e){return function(t){return u([e,t])}}function u(o){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,i&&(r=2&o[0]?i["return"]:o[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(r=s.trys,!(r=r.length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(a){o=[6,a],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},l=Object(r["c"])("openerService"),c=Object.freeze({_serviceBrand:void 0,registerOpener:function(){return o["a"].None},registerValidator:function(){return o["a"].None},registerExternalUriResolver:function(){return o["a"].None},setExternalOpener:function(){},open:function(){return a(this,void 0,void 0,(function(){return u(this,(function(e){return[2,!1]}))}))},resolveExternalUri:function(e){return a(this,void 0,void 0,(function(){return u(this,(function(t){return[2,{resolved:e,dispose:function(){}}]}))}))}});function d(e,t){return i["a"].isUri(e)?Object(s["n"])(e.scheme,t):Object(s["N"])(e,t+":")}},WBhO:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("Cg/j"),r=Object(i["c"])("modeService")},WqXY:function(e,t,n){"use strict";n.d(t,"c",(function(){return g})),n.d(t,"d",(function(){return A})),n.d(t,"b",(function(){return m})),n.d(t,"a",(function(){return _}));n("yEoX");var i=n("MNsG"),r=n("3/fG"),o=n("pmY6"),s=n("8HAY"),a=n("EffR"),u=n("746U"),l=n("pg8w"),c=n("uDWl"),d=n("MI8n"),h=n("ZQ78"),f=n("D3Dy"),p=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),g=function(e){function t(t,n,i){var r=e.call(this)||this;return r.options=i,r._context=t||r,r._action=n,n instanceof s["a"]&&r._register(n.onDidChange((function(e){r.element&&r.handleActionChangeEvent(e)}))),r}return p(t,e),t.prototype.handleActionChangeEvent=function(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()},Object.defineProperty(t.prototype,"actionRunner",{get:function(){return this._actionRunner||(this._actionRunner=this._register(new s["b"])),this._actionRunner},set:function(e){this._actionRunner=e},enumerable:!0,configurable:!0}),t.prototype.getAction=function(){return this._action},t.prototype.isEnabled=function(){return this._action.enabled},t.prototype.setActionContext=function(e){this._context=e},t.prototype.render=function(e){var t=this,n=this.element=e;this._register(l["b"].addTarget(e));var r=this.options&&this.options.draggable;r&&(e.draggable=!0,f["h"]&&this._register(a["i"](e,a["c"].DRAG_START,(function(e){var n;return null===(n=e.dataTransfer)||void 0===n?void 0:n.setData(h["a"].TEXT,t._action.label)})))),this._register(a["i"](n,l["a"].Tap,(function(e){return t.onClick(e)}))),this._register(a["i"](n,a["c"].MOUSE_DOWN,(function(e){r||a["b"].stop(e,!0),t._action.enabled&&0===e.button&&a["e"](n,"active")}))),this._register(a["i"](n,a["c"].CLICK,(function(e){a["b"].stop(e,!0),t.options&&t.options.isMenu?t.onClick(e):i["i"]((function(){return t.onClick(e)}))}))),this._register(a["i"](n,a["c"].DBLCLICK,(function(e){a["b"].stop(e,!0)}))),[a["c"].MOUSE_UP,a["c"].MOUSE_OUT].forEach((function(e){t._register(a["i"](n,e,(function(e){a["b"].stop(e),a["O"](n,"active")})))}))},t.prototype.onClick=function(e){var t;a["b"].stop(e,!0),u["l"](this._context)?t=e:(t=this._context,u["i"](t)&&(t.event=e)),this.actionRunner.run(this._action,t)},t.prototype.focus=function(){this.element&&(this.element.focus(),a["e"](this.element,"focused"))},t.prototype.blur=function(){this.element&&(this.element.blur(),a["O"](this.element,"focused"))},t.prototype.updateEnabled=function(){},t.prototype.updateLabel=function(){},t.prototype.updateTooltip=function(){},t.prototype.updateClass=function(){},t.prototype.updateChecked=function(){},t.prototype.dispose=function(){this.element&&(a["Q"](this.element),this.element=void 0),e.prototype.dispose.call(this)},t}(o["a"]),A=function(e){function t(n){var i=e.call(this,t.ID,n,n?"separator text":"separator")||this;return i.checked=!1,i.enabled=!1,i}return p(t,e),t.ID="vs.actions.separator",t}(s["a"]),m=function(e){function t(t,n,i){void 0===i&&(i={});var r=e.call(this,t,n,i)||this;return r.options=i,r.options.icon=void 0!==i.icon&&i.icon,r.options.label=void 0===i.label||i.label,r.cssClass="",r}return p(t,e),t.prototype.render=function(t){e.prototype.render.call(this,t),this.element&&(this.label=a["p"](this.element,a["a"]("a.action-label"))),this.label&&(this._action.id===A.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&&(a["p"](this.element,a["a"]("span.keybinding")).textContent=this.options.keybinding),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked()},t.prototype.focus=function(){e.prototype.focus.call(this),this.label&&this.label.focus()},t.prototype.updateLabel=function(){this.options.label&&this.label&&(this.label.textContent=this.getAction().label)},t.prototype.updateTooltip=function(){var 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=r["a"]({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",e,this.options.keybinding))),e&&this.label&&(this.label.title=e)},t.prototype.updateClass=function(){this.cssClass&&this.label&&a["P"](this.label,this.cssClass),this.options.icon?(this.cssClass=this.getAction().class,this.label&&(a["e"](this.label,"codicon"),this.cssClass&&a["f"](this.label,this.cssClass)),this.updateEnabled()):this.label&&a["O"](this.label,"codicon")},t.prototype.updateEnabled=function(){this.getAction().enabled?(this.label&&(this.label.removeAttribute("aria-disabled"),a["O"](this.label,"disabled"),this.label.tabIndex=0),this.element&&a["O"](this.element,"disabled")):(this.label&&(this.label.setAttribute("aria-disabled","true"),a["e"](this.label,"disabled"),a["R"](this.label)),this.element&&a["e"](this.element,"disabled"))},t.prototype.updateChecked=function(){this.label&&(this.getAction().checked?a["e"](this.label,"checked"):a["O"](this.label,"checked"))},t}(g),v={orientation:0,context:null,triggerKeys:{keys:[3,10],keyDown:!1}},_=function(e){function t(t,n){void 0===n&&(n=v);var i,r,o=e.call(this)||this;switch(o._onDidBlur=o._register(new d["a"]),o.onDidBlur=o._onDidBlur.event,o._onDidCancel=o._register(new d["a"]),o.onDidCancel=o._onDidCancel.event,o._onDidRun=o._register(new d["a"]),o.onDidRun=o._onDidRun.event,o._onDidBeforeRun=o._register(new d["a"]),o.onDidBeforeRun=o._onDidBeforeRun.event,o.options=n,o._context=n.context,o.options.triggerKeys||(o.options.triggerKeys=v.triggerKeys),o.options.actionRunner?o._actionRunner=o.options.actionRunner:(o._actionRunner=new s["b"],o._register(o._actionRunner)),o._register(o._actionRunner.onDidRun((function(e){return o._onDidRun.fire(e)}))),o._register(o._actionRunner.onDidBeforeRun((function(e){return o._onDidBeforeRun.fire(e)}))),o.viewItems=[],o.focusedItem=void 0,o.domNode=document.createElement("div"),o.domNode.className="monaco-action-bar",!1!==n.animated&&a["e"](o.domNode,"animated"),o.options.orientation){case 0:i=15,r=17;break;case 1:i=17,r=15,o.domNode.className+=" reverse";break;case 2:i=16,r=18,o.domNode.className+=" vertical";break;case 3:i=18,r=16,o.domNode.className+=" vertical reverse";break}return o._register(a["i"](o.domNode,a["c"].KEY_DOWN,(function(e){var t=new c["a"](e),n=!0;t.equals(i)?o.focusPrevious():t.equals(r)?o.focusNext():t.equals(9)?o.cancel():o.isTriggerKeyEvent(t)?o.options.triggerKeys&&o.options.triggerKeys.keyDown&&o.doTrigger(t):n=!1,n&&(t.preventDefault(),t.stopPropagation())}))),o._register(a["i"](o.domNode,a["c"].KEY_UP,(function(e){var t=new c["a"](e);o.isTriggerKeyEvent(t)?(o.options.triggerKeys&&!o.options.triggerKeys.keyDown&&o.doTrigger(t),t.preventDefault(),t.stopPropagation()):(t.equals(2)||t.equals(1026))&&o.updateFocusedItem()}))),o.focusTracker=o._register(a["Y"](o.domNode)),o._register(o.focusTracker.onDidBlur((function(){document.activeElement!==o.domNode&&a["J"](document.activeElement,o.domNode)||(o._onDidBlur.fire(),o.focusedItem=void 0)}))),o._register(o.focusTracker.onDidFocus((function(){return o.updateFocusedItem()}))),o.actionsList=document.createElement("ul"),o.actionsList.className="actions-container",o.actionsList.setAttribute("role","toolbar"),o.options.ariaLabel&&o.actionsList.setAttribute("aria-label",o.options.ariaLabel),o.domNode.appendChild(o.actionsList),t.appendChild(o.domNode),o}return p(t,e),t.prototype.isTriggerKeyEvent=function(e){var t=!1;return this.options.triggerKeys&&this.options.triggerKeys.keys.forEach((function(n){t=t||e.equals(n)})),t},t.prototype.updateFocusedItem=function(){for(var e=0;e<this.actionsList.children.length;e++){var t=this.actionsList.children[e];if(a["J"](document.activeElement,t)){this.focusedItem=e;break}}},Object.defineProperty(t.prototype,"context",{get:function(){return this._context},set:function(e){this._context=e,this.viewItems.forEach((function(t){return t.setActionContext(e)}))},enumerable:!0,configurable:!0}),t.prototype.getContainer=function(){return this.domNode},t.prototype.push=function(e,t){var n=this;void 0===t&&(t={});var i=Array.isArray(e)?e:[e],r=u["h"](t.index)?t.index:null;i.forEach((function(e){var i,o=document.createElement("li");o.className="action-item",o.setAttribute("role","presentation"),n._register(a["i"](o,a["c"].CONTEXT_MENU,(function(e){e.preventDefault(),e.stopPropagation()}))),n.options.actionViewItemProvider&&(i=n.options.actionViewItemProvider(e)),i||(i=new m(n.context,e,t)),i.actionRunner=n._actionRunner,i.setActionContext(n.context),i.render(o),null===r||r<0||r>=n.actionsList.children.length?(n.actionsList.appendChild(o),n.viewItems.push(i)):(n.actionsList.insertBefore(o,n.actionsList.children[r]),n.viewItems.splice(r,0,i),r++)}))},t.prototype.clear=function(){this.viewItems=Object(o["f"])(this.viewItems),a["s"](this.actionsList)},t.prototype.isEmpty=function(){return 0===this.viewItems.length},t.prototype.focus=function(e){var t=!1,n=void 0;void 0===e?t=!0:"number"===typeof e?n=e:"boolean"===typeof e&&(t=e),t&&"undefined"===typeof this.focusedItem?(this.focusedItem=this.viewItems.length-1,this.focusNext()):(void 0!==n&&(this.focusedItem=n),this.updateFocus())},t.prototype.focusNext=function(){"undefined"===typeof this.focusedItem&&(this.focusedItem=this.viewItems.length-1);var e,t=this.focusedItem;do{this.focusedItem=(this.focusedItem+1)%this.viewItems.length,e=this.viewItems[this.focusedItem]}while(this.focusedItem!==t&&!e.isEnabled());this.focusedItem!==t||e.isEnabled()||(this.focusedItem=void 0),this.updateFocus()},t.prototype.focusPrevious=function(){"undefined"===typeof this.focusedItem&&(this.focusedItem=0);var e,t=this.focusedItem;do{this.focusedItem=this.focusedItem-1,this.focusedItem<0&&(this.focusedItem=this.viewItems.length-1),e=this.viewItems[this.focusedItem]}while(this.focusedItem!==t&&!e.isEnabled());this.focusedItem!==t||e.isEnabled()||(this.focusedItem=void 0),this.updateFocus(!0)},t.prototype.updateFocus=function(e,t){"undefined"===typeof this.focusedItem&&this.actionsList.focus({preventScroll:t});for(var n=0;n<this.viewItems.length;n++){var i=this.viewItems[n],r=i;n===this.focusedItem?u["g"](r.isEnabled)&&(r.isEnabled()&&u["g"](r.focus)?r.focus(e):this.actionsList.focus({preventScroll:t})):u["g"](r.blur)&&r.blur()}},t.prototype.doTrigger=function(e){if("undefined"!==typeof this.focusedItem){var t=this.viewItems[this.focusedItem];if(t instanceof g){var n=null===t._context||void 0===t._context?e:t._context;this.run(t._action,n)}}},t.prototype.cancel=function(){document.activeElement instanceof HTMLElement&&document.activeElement.blur(),this._onDidCancel.fire()},t.prototype.run=function(e,t){return this._actionRunner.run(e,t)},t.prototype.dispose=function(){Object(o["f"])(this.viewItems),this.viewItems=[],a["Q"](this.getContainer()),e.prototype.dispose.call(this)},t}(o["a"])},"X+cX":function(e,t,n){"use strict";n.d(t,"i",(function(){return s})),n.d(t,"f",(function(){return a})),n.d(t,"j",(function(){return u})),n.d(t,"a",(function(){return l})),n.d(t,"k",(function(){return c})),n.d(t,"g",(function(){return d})),n.d(t,"h",(function(){return h})),n.d(t,"e",(function(){return p})),n.d(t,"c",(function(){return g})),n.d(t,"d",(function(){return A})),n.d(t,"b",(function(){return m}));var i=n("JQT/"),r=n("/cxE"),o=n("pmY6");function s(e){return e&&"function"===typeof e.then}function a(e){var t=new i["b"],n=e(t.token),o=new Promise((function(e,i){t.token.onCancellationRequested((function(){i(r["a"]())})),Promise.resolve(n).then((function(n){t.dispose(),e(n)}),(function(e){t.dispose(),i(e)}))}));return new(function(){function e(){}return e.prototype.cancel=function(){t.cancel()},e.prototype.then=function(e,t){return o.then(e,t)},e.prototype.catch=function(e){return this.then(void 0,e)},e.prototype.finally=function(e){return o.finally(e)},e}())}function u(e,t,n){return Promise.race([e,new Promise((function(e){return t.onCancellationRequested((function(){return e(n)}))}))])}var l=function(){function e(e){this.defaultDelay=e,this.timeout=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}return e.prototype.trigger=function(e,t){var n=this;return void 0===t&&(t=this.defaultDelay),this.task=e,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise((function(e,t){n.doResolve=e,n.doReject=t})).then((function(){if(n.completionPromise=null,n.doResolve=null,n.task){var e=n.task;return n.task=null,e()}}))),this.timeout=setTimeout((function(){n.timeout=null,n.doResolve&&n.doResolve(null)}),t),this.completionPromise},e.prototype.isTriggered=function(){return null!==this.timeout},e.prototype.cancel=function(){this.cancelTimeout(),this.completionPromise&&(this.doReject&&this.doReject(r["a"]()),this.completionPromise=null)},e.prototype.cancelTimeout=function(){null!==this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},e.prototype.dispose=function(){this.cancelTimeout()},e}();function c(e,t){return t?new Promise((function(n,i){var o=setTimeout(n,e);t.onCancellationRequested((function(){clearTimeout(o),i(r["a"]())}))})):a((function(t){return c(e,t)}))}function d(e,t){void 0===t&&(t=0);var n=setTimeout(e,t);return Object(o["h"])((function(){return clearTimeout(n)}))}function h(e,t,n){void 0===t&&(t=function(e){return!!e}),void 0===n&&(n=null);var i=0,r=e.length,o=function(){if(i>=r)return Promise.resolve(n);var s=e[i++],a=Promise.resolve(s());return a.then((function(e){return t(e)?Promise.resolve(e):o()}))};return o()}var f,p=function(){function e(e,t){this._token=-1,"function"===typeof e&&"number"===typeof t&&this.setIfNotSet(e,t)}return e.prototype.dispose=function(){this.cancel()},e.prototype.cancel=function(){-1!==this._token&&(clearTimeout(this._token),this._token=-1)},e.prototype.cancelAndSet=function(e,t){var n=this;this.cancel(),this._token=setTimeout((function(){n._token=-1,e()}),t)},e.prototype.setIfNotSet=function(e,t){var n=this;-1===this._token&&(this._token=setTimeout((function(){n._token=-1,e()}),t))},e}(),g=function(){function e(){this._token=-1}return e.prototype.dispose=function(){this.cancel()},e.prototype.cancel=function(){-1!==this._token&&(clearInterval(this._token),this._token=-1)},e.prototype.cancelAndSet=function(e,t){this.cancel(),this._token=setInterval((function(){e()}),t)},e}(),A=function(){function e(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}return e.prototype.dispose=function(){this.cancel(),this.runner=null},e.prototype.cancel=function(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)},e.prototype.schedule=function(e){void 0===e&&(e=this.timeout),this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)},e.prototype.isScheduled=function(){return-1!==this.timeoutToken},e.prototype.onTimeout=function(){this.timeoutToken=-1,this.runner&&this.doRun()},e.prototype.doRun=function(){this.runner&&this.runner()},e}();(function(){if("function"!==typeof requestIdleCallback||"function"!==typeof cancelIdleCallback){var e=Object.freeze({didTimeout:!0,timeRemaining:function(){return 15}});f=function(t){var n=setTimeout((function(){return t(e)})),i=!1;return{dispose:function(){i||(i=!0,clearTimeout(n))}}}}else f=function(e,t){var n=requestIdleCallback(e,"number"===typeof t?{timeout:t}:void 0),i=!1;return{dispose:function(){i||(i=!0,cancelIdleCallback(n))}}}})();var m=function(){function e(e){var t=this;this._didRun=!1,this._executor=function(){try{t._value=e()}catch(n){t._error=n}finally{t._didRun=!0}},this._handle=f((function(){return t._executor()}))}return e.prototype.dispose=function(){this._handle.dispose()},e.prototype.getValue=function(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value},e}()},XNtB:function(e,t,n){},XQgg:function(e,t,n){"use strict";n.r(t);var i=n("+hIS");Object(i["a"])({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:function(){return n.e(183).then(n.bind(null,"/0xJ"))}})},XSiN:function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return u}));var i=n("D3Dy"),r=n("51f4"),o=n("MNsG"),s=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),a=function(){function e(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);var t=r["a"].getPositionOfChildWindowRelativeToAncestorWindow(self,e.view);this.posx-=t.left,this.posy-=t.top}return e.prototype.preventDefault=function(){this.browserEvent.preventDefault&&this.browserEvent.preventDefault()},e.prototype.stopPropagation=function(){this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()},e}(),u=(function(e){function t(t){var n=e.call(this,t)||this;return n.dataTransfer=t.dataTransfer,n}s(t,e)}(a),function(){function e(e,t,n){if(void 0===t&&(t=0),void 0===n&&(n=0),this.browserEvent=e||null,this.target=e?e.target||e.targetNode||e.srcElement:null,this.deltaY=n,this.deltaX=t,e){var r=e,s=e;if("undefined"!==typeof r.wheelDeltaY)this.deltaY=r.wheelDeltaY/120;else if("undefined"!==typeof s.VERTICAL_AXIS&&s.axis===s.VERTICAL_AXIS)this.deltaY=-s.detail/3;else if("wheel"===e.type){var a=e;a.deltaMode===a.DOM_DELTA_LINE?this.deltaY=-e.deltaY:this.deltaY=-e.deltaY/40}if("undefined"!==typeof r.wheelDeltaX)i["k"]&&o["h"]?this.deltaX=-r.wheelDeltaX/120:this.deltaX=r.wheelDeltaX/120;else if("undefined"!==typeof s.HORIZONTAL_AXIS&&s.axis===s.HORIZONTAL_AXIS)this.deltaX=-e.detail/3;else if("wheel"===e.type){a=e;a.deltaMode===a.DOM_DELTA_LINE?this.deltaX=-e.deltaX:this.deltaX=-e.deltaX/40}0===this.deltaY&&0===this.deltaX&&e.wheelDelta&&(this.deltaY=e.wheelDelta/120)}}return e.prototype.preventDefault=function(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()},e.prototype.stopPropagation=function(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()},e}())},XXBq:function(e,t,n){},XXUj:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("Cg/j"),r=Object(i["c"])("telemetryService")},Xm8N:function(e,t,n){"use strict";n("2qtc");var i=n("kLXV"),r=n("WmNS"),o=n.n(r),s=n("k1fw"),a=(n("miYZ"),n("tsqr")),u=n("9og8"),l=n("PpiC"),c=n("q1tI"),d=n.n(c),h=n("ErOA"),f=n("WHYC"),p=n("9kvl"),g=e=>{var t=e.shixunHomeworks,n=e.dispatch,r=(Object(l["a"])(e,["shixunHomeworks","dispatch"]),Object(f["m"])());return d.a.createElement(i["a"],{title:"\u63d0\u793a",visible:"\u6253\u56de\u91cd\u505a"===t.actionTabs.key,okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",onOk:Object(u["a"])(o.a.mark((function e(){var i;return o.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(h["a"])("/api/myshixuns/".concat(t.actionTabs.selectArrs.myshixun_identifier,"/reset_my_game.json"),{method:"post",body:{course_id:r.coursesId}});case 2:i=e.sent,0===i.status&&(a["a"].success("\u5220\u9664\u6210\u529f"),n({type:"shixunHomeworks/setActionTabs",payload:{}}),n({type:"shixunHomeworks/getWorkList",payload:Object(s["a"])({},t.actionTabs.params)}));case 4:case"end":return e.stop()}}),e)}))),onCancel:()=>{n({type:"shixunHomeworks/setActionTabs",payload:{}})}},d.a.createElement("p",null,"\u8be5\u4f5c\u4e1a\u5c06\u88ab\u6253\u56de\u91cd\u505a\uff0c\u5b66\u751f\u5b9e\u8bad\u8bb0\u5f55\u5c06\u88ab\u6e05\u7a7a!"),d.a.createElement("p",null,"\u786e\u5b9a\u6253\u56de?"))};t["a"]=Object(p["a"])(e=>{var t=e.shixunHomeworks;return{shixunHomeworks:t}})(g)},Yr1X:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("MI8n"),r=new(function(){function e(){this._zoomLevel=0,this._onDidChangeZoomLevel=new i["a"],this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event}return e.prototype.getZoomLevel=function(){return this._zoomLevel},e.prototype.setZoomLevel=function(e){e=Math.min(Math.max(-5,e),20),this._zoomLevel!==e&&(this._zoomLevel=e,this._onDidChangeZoomLevel.fire(this._zoomLevel))},e}())},ZCR3:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=0;function r(){var e="$memoize"+i++,t=void 0,n=function(n,i,r){var o=null,s=null;if("function"===typeof r.value?(o="value",s=r.value,0!==s.length&&console.warn("Memoize should only be used in functions with zero parameters")):"function"===typeof r.get&&(o="get",s=r.get),!s)throw new Error("not supported");var a=e+":"+i;r[o]=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t=this,this.hasOwnProperty(a)||Object.defineProperty(this,a,{configurable:!0,enumerable:!1,writable:!0,value:s.apply(this,e)}),this[a]}};return n.clear=function(){"undefined"!==typeof t&&Object.getOwnPropertyNames(t).forEach((function(n){0===n.indexOf(e)&&delete t[n]}))},n}function o(e,t,n){return r()(e,t,n)}},ZQ78:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return o}));var i={RESOURCES:"ResourceURLs",DOWNLOAD_URL:"DownloadURL",FILES:"Files",TEXT:"text/plain"},r=function(){function e(e){this.data=e}return e.prototype.update=function(){},e.prototype.getData=function(){return this.data},e}(),o={CurrentDragAndDropData:void 0}},"ZkA/":function(e,t,n){"use strict";n.r(t);var i=n("+hIS");Object(i["a"])({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:function(){return n.e(163).then(n.bind(null,"DTUS"))}})},ZlPH:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var i=n("EffR"),r=function(){function e(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"}return e.prototype.setMaxWidth=function(e){this._maxWidth!==e&&(this._maxWidth=e,this.domNode.style.maxWidth=this._maxWidth+"px")},e.prototype.setWidth=function(e){this._width!==e&&(this._width=e,this.domNode.style.width=this._width+"px")},e.prototype.setHeight=function(e){this._height!==e&&(this._height=e,this.domNode.style.height=this._height+"px")},e.prototype.setTop=function(e){this._top!==e&&(this._top=e,this.domNode.style.top=this._top+"px")},e.prototype.unsetTop=function(){-1!==this._top&&(this._top=-1,this.domNode.style.top="")},e.prototype.setLeft=function(e){this._left!==e&&(this._left=e,this.domNode.style.left=this._left+"px")},e.prototype.setBottom=function(e){this._bottom!==e&&(this._bottom=e,this.domNode.style.bottom=this._bottom+"px")},e.prototype.setRight=function(e){this._right!==e&&(this._right=e,this.domNode.style.right=this._right+"px")},e.prototype.setFontFamily=function(e){this._fontFamily!==e&&(this._fontFamily=e,this.domNode.style.fontFamily=this._fontFamily)},e.prototype.setFontWeight=function(e){this._fontWeight!==e&&(this._fontWeight=e,this.domNode.style.fontWeight=this._fontWeight)},e.prototype.setFontSize=function(e){this._fontSize!==e&&(this._fontSize=e,this.domNode.style.fontSize=this._fontSize+"px")},e.prototype.setFontFeatureSettings=function(e){this._fontFeatureSettings!==e&&(this._fontFeatureSettings=e,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings)},e.prototype.setLineHeight=function(e){this._lineHeight!==e&&(this._lineHeight=e,this.domNode.style.lineHeight=this._lineHeight+"px")},e.prototype.setLetterSpacing=function(e){this._letterSpacing!==e&&(this._letterSpacing=e,this.domNode.style.letterSpacing=this._letterSpacing+"px")},e.prototype.setClassName=function(e){this._className!==e&&(this._className=e,this.domNode.className=this._className)},e.prototype.toggleClassName=function(e,t){i["X"](this.domNode,e,t),this._className=this.domNode.className},e.prototype.setDisplay=function(e){this._display!==e&&(this._display=e,this.domNode.style.display=this._display)},e.prototype.setPosition=function(e){this._position!==e&&(this._position=e,this.domNode.style.position=this._position)},e.prototype.setVisibility=function(e){this._visibility!==e&&(this._visibility=e,this.domNode.style.visibility=this._visibility)},e.prototype.setBackgroundColor=function(e){this._backgroundColor!==e&&(this._backgroundColor=e,this.domNode.style.backgroundColor=this._backgroundColor)},e.prototype.setLayerHinting=function(e){this._layerHint!==e&&(this._layerHint=e,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":"")},e.prototype.setContain=function(e){this._contain!==e&&(this._contain=e,this.domNode.style.contain=this._contain)},e.prototype.setAttribute=function(e,t){this.domNode.setAttribute(e,t)},e.prototype.removeAttribute=function(e){this.domNode.removeAttribute(e)},e.prototype.appendChild=function(e){this.domNode.appendChild(e.domNode)},e.prototype.removeChild=function(e){this.domNode.removeChild(e.domNode)},e}();function o(e){return new r(e)}},ZvGG:function(e,t,n){"use strict";n.r(t);var i=n("+hIS");Object(i["a"])({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:function(){return n.e(161).then(n.bind(null,"yUwd"))}})},ajgA:function(e,t,n){"use strict";n.r(t);var i=n("+hIS");Object(i["a"])({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:function(){return n.e(178).then(n.bind(null,"Fzfo"))}})},aokT:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("cGHE"),r=function(){function e(e,t,n,i){e>n||e===n&&t>i?(this.startLineNumber=n,this.startColumn=i,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=n,this.endColumn=i)}return e.prototype.isEmpty=function(){return e.isEmpty(this)},e.isEmpty=function(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn},e.prototype.containsPosition=function(t){return e.containsPosition(this,t)},e.containsPosition=function(e,t){return!(t.lineNumber<e.startLineNumber||t.lineNumber>e.endLineNumber)&&(!(t.lineNumber===e.startLineNumber&&t.column<e.startColumn)&&!(t.lineNumber===e.endLineNumber&&t.column>e.endColumn))},e.prototype.containsRange=function(t){return e.containsRange(this,t)},e.containsRange=function(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber)&&(!(t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumn<e.startColumn)&&!(t.endLineNumber===e.endLineNumber&&t.endColumn>e.endColumn)))},e.prototype.strictContainsRange=function(t){return e.strictContainsRange(this,t)},e.strictContainsRange=function(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber)&&(!(t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumn<=e.startColumn)&&!(t.endLineNumber===e.endLineNumber&&t.endColumn>=e.endColumn)))},e.prototype.plusRange=function(t){return e.plusRange(this,t)},e.plusRange=function(t,n){var i,r,o,s;return n.startLineNumber<t.startLineNumber?(i=n.startLineNumber,r=n.startColumn):n.startLineNumber===t.startLineNumber?(i=n.startLineNumber,r=Math.min(n.startColumn,t.startColumn)):(i=t.startLineNumber,r=t.startColumn),n.endLineNumber>t.endLineNumber?(o=n.endLineNumber,s=n.endColumn):n.endLineNumber===t.endLineNumber?(o=n.endLineNumber,s=Math.max(n.endColumn,t.endColumn)):(o=t.endLineNumber,s=t.endColumn),new e(i,r,o,s)},e.prototype.intersectRanges=function(t){return e.intersectRanges(this,t)},e.intersectRanges=function(t,n){var i=t.startLineNumber,r=t.startColumn,o=t.endLineNumber,s=t.endColumn,a=n.startLineNumber,u=n.startColumn,l=n.endLineNumber,c=n.endColumn;return i<a?(i=a,r=u):i===a&&(r=Math.max(r,u)),o>l?(o=l,s=c):o===l&&(s=Math.min(s,c)),i>o||i===o&&r>s?null:new e(i,r,o,s)},e.prototype.equalsRange=function(t){return e.equalsRange(this,t)},e.equalsRange=function(e,t){return!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn},e.prototype.getEndPosition=function(){return new i["a"](this.endLineNumber,this.endColumn)},e.prototype.getStartPosition=function(){return new i["a"](this.startLineNumber,this.startColumn)},e.prototype.toString=function(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"},e.prototype.setEndPosition=function(t,n){return new e(this.startLineNumber,this.startColumn,t,n)},e.prototype.setStartPosition=function(t,n){return new e(t,n,this.endLineNumber,this.endColumn)},e.prototype.collapseToStart=function(){return e.collapseToStart(this)},e.collapseToStart=function(t){return new e(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn)},e.fromPositions=function(t,n){return void 0===n&&(n=t),new e(t.lineNumber,t.column,n.lineNumber,n.column)},e.lift=function(t){return t?new e(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):null},e.isIRange=function(e){return e&&"number"===typeof e.startLineNumber&&"number"===typeof e.startColumn&&"number"===typeof e.endLineNumber&&"number"===typeof e.endColumn},e.areIntersectingOrTouching=function(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<t.startColumn)&&!(t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<e.startColumn)},e.areIntersecting=function(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<=t.startColumn)&&!(t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<=e.startColumn)},e.compareRangesUsingStarts=function(e,t){if(e&&t){var n=0|e.startLineNumber,i=0|t.startLineNumber;if(n===i){var r=0|e.startColumn,o=0|t.startColumn;if(r===o){var s=0|e.endLineNumber,a=0|t.endLineNumber;if(s===a){var u=0|e.endColumn,l=0|t.endColumn;return u-l}return s-a}return r-o}return n-i}var c=e?1:0,d=t?1:0;return c-d},e.compareRangesUsingEnds=function(e,t){return e.endLineNumber===t.endLineNumber?e.endColumn===t.endColumn?e.startLineNumber===t.startLineNumber?e.startColumn-t.startColumn:e.startLineNumber-t.startLineNumber:e.endColumn-t.endColumn:e.endLineNumber-t.endLineNumber},e.spansMultipleLines=function(e){return e.endLineNumber>e.startLineNumber},e}()},bY76:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var i,r=n("MNsG"),o=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),s=/^\w[\w\d+.-]*$/,a=/^\//,u=/^\/\//;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(!a.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(u.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 ("//")')}function c(e,t){return e||t?e:"file"}function d(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==f&&(t=f+t):t=f;break}return t}var h="",f="/",p=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,g=function(){function e(e,t,n,i,r,o){void 0===o&&(o=!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=c(e,o),this.authority=t||h,this.path=d(this.scheme,n||h),this.query=i||h,this.fragment=r||h,l(this,o))}return e.isUri=function(t){return t instanceof e||!!t&&("string"===typeof t.authority&&"string"===typeof t.fragment&&"string"===typeof t.path&&"string"===typeof t.query&&"string"===typeof t.scheme&&"function"===typeof t.fsPath&&"function"===typeof t.with&&"function"===typeof t.toString)},Object.defineProperty(e.prototype,"fsPath",{get:function(){return b(this)},enumerable:!0,configurable:!0}),e.prototype.with=function(e){if(!e)return this;var t=e.scheme,n=e.authority,i=e.path,r=e.query,o=e.fragment;return void 0===t?t=this.scheme:null===t&&(t=h),void 0===n?n=this.authority:null===n&&(n=h),void 0===i?i=this.path:null===i&&(i=h),void 0===r?r=this.query:null===r&&(r=h),void 0===o?o=this.fragment:null===o&&(o=h),t===this.scheme&&n===this.authority&&i===this.path&&r===this.query&&o===this.fragment?this:new m(t,n,i,r,o)},e.parse=function(e,t){void 0===t&&(t=!1);var n=p.exec(e);return n?new m(n[2]||h,N(n[4]||h),N(n[5]||h),N(n[7]||h),N(n[9]||h),t):new m(h,h,h,h,h)},e.file=function(e){var t=h;if(r["h"]&&(e=e.replace(/\\/g,f)),e[0]===f&&e[1]===f){var n=e.indexOf(f,2);-1===n?(t=e.substring(2),e=f):(t=e.substring(2,n),e=e.substring(n)||f)}return new m("file",t,e,h,h)},e.from=function(e){return new m(e.scheme,e.authority,e.path,e.query,e.fragment)},e.prototype.toString=function(e){return void 0===e&&(e=!1),w(this,e)},e.prototype.toJSON=function(){return this},e.revive=function(t){if(t){if(t instanceof e)return t;var n=new m(t);return n._formatted=t.external,n._fsPath=t._sep===A?t.fsPath:null,n}return t},e}(),A=r["h"]?1:void 0,m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._formatted=null,t._fsPath=null,t}return o(t,e),Object.defineProperty(t.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=b(this)),this._fsPath},enumerable:!0,configurable:!0}),t.prototype.toString=function(e){return void 0===e&&(e=!1),e?w(this,!0):(this._formatted||(this._formatted=w(this,!1)),this._formatted)},t.prototype.toJSON=function(){var e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=A),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},t}(g),v=(i={},i[58]="%3A",i[47]="%2F",i[63]="%3F",i[35]="%23",i[91]="%5B",i[93]="%5D",i[64]="%40",i[33]="%21",i[36]="%24",i[38]="%26",i[39]="%27",i[40]="%28",i[41]="%29",i[42]="%2A",i[43]="%2B",i[44]="%2C",i[59]="%3B",i[61]="%3D",i[32]="%20",i);function _(e,t){for(var n=void 0,i=-1,r=0;r<e.length;r++){var o=e.charCodeAt(r);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o)-1!==i&&(n+=encodeURIComponent(e.substring(i,r)),i=-1),void 0!==n&&(n+=e.charAt(r));else{void 0===n&&(n=e.substr(0,r));var s=v[o];void 0!==s?(-1!==i&&(n+=encodeURIComponent(e.substring(i,r)),i=-1),n+=s):-1===i&&(i=r)}}return-1!==i&&(n+=encodeURIComponent(e.substring(i))),void 0!==n?n:e}function y(e){for(var t=void 0,n=0;n<e.length;n++){var i=e.charCodeAt(n);35===i||63===i?(void 0===t&&(t=e.substr(0,n)),t+=v[i]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}function b(e){var t;return t=e.authority&&e.path.length>1&&"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)?e.path[1].toLowerCase()+e.path.substr(2):e.path,r["h"]&&(t=t.replace(/\//g,"\\")),t}function w(e,t){var n=t?y:_,i="",r=e.scheme,o=e.authority,s=e.path,a=e.query,u=e.fragment;if(r&&(i+=r,i+=":"),(o||"file"===r)&&(i+=f,i+=f),o){var l=o.indexOf("@");if(-1!==l){var c=o.substr(0,l);o=o.substr(l+1),l=c.indexOf(":"),-1===l?i+=n(c,!1):(i+=n(c.substr(0,l),!1),i+=":",i+=n(c.substr(l+1),!1)),i+="@"}o=o.toLowerCase(),l=o.indexOf(":"),-1===l?i+=n(o,!1):(i+=n(o.substr(0,l),!1),i+=o.substr(l))}if(s){if(s.length>=3&&47===s.charCodeAt(0)&&58===s.charCodeAt(2)){var d=s.charCodeAt(1);d>=65&&d<=90&&(s="/"+String.fromCharCode(d+32)+":"+s.substr(3))}else if(s.length>=2&&58===s.charCodeAt(1)){d=s.charCodeAt(0);d>=65&&d<=90&&(s=String.fromCharCode(d+32)+":"+s.substr(2))}i+=n(s,!0)}return a&&(i+="?",i+=n(a,!1)),u&&(i+="#",i+=t?u:_(u,!1)),i}function C(e){try{return decodeURIComponent(e)}catch(i){return e.length>3?e.substr(0,3)+C(e.substr(3)):e}}var S=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function N(e){return e.match(S)?e.replace(S,(function(e){return C(e)})):e}},baJR:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return l})),n.d(t,"d",(function(){return d})),n.d(t,"e",(function(){return f}));var i=n("N0LK"),r=n("erNZ"),o=n("dBaI"),s=function(){function e(e,t){this.endIndex=e,this.type=t}return e}(),a=function(){function e(e,t){this.startOffset=e,this.endOffset=t}return e.prototype.equals=function(e){return this.startOffset===e.startOffset&&this.endOffset===e.endOffset},e}(),u=function(){function e(e,t,n,i,r,o,s,a,u,l,c,d,h,f,p,g,A,m){this.useMonospaceOptimizations=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=n,this.continuesWithWrappedLine=i,this.isBasicASCII=r,this.containsRTL=o,this.fauxIndentLength=s,this.lineTokens=a,this.lineDecorations=u,this.tabSize=l,this.startVisibleColumn=c,this.spaceWidth=d,this.middotWidth=h,this.stopRenderingLineAfter=f,this.renderWhitespace="all"===p?3:"boundary"===p?1:"selection"===p?2:0,this.renderControlCharacters=g,this.fontLigatures=A,this.selectionsOnLine=m&&m.sort((function(e,t){return e.startOffset<t.startOffset?-1:1}))}return e.prototype.sameSelection=function(e){if(null===this.selectionsOnLine)return null===e;if(null===e)return!1;if(e.length!==this.selectionsOnLine.length)return!1;for(var t=0;t<this.selectionsOnLine.length;t++)if(!this.selectionsOnLine[t].equals(e[t]))return!1;return!0},e.prototype.equals=function(e){return this.useMonospaceOptimizations===e.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineContent===e.lineContent&&this.continuesWithWrappedLine===e.continuesWithWrappedLine&&this.isBasicASCII===e.isBasicASCII&&this.containsRTL===e.containsRTL&&this.fauxIndentLength===e.fauxIndentLength&&this.tabSize===e.tabSize&&this.startVisibleColumn===e.startVisibleColumn&&this.spaceWidth===e.spaceWidth&&this.stopRenderingLineAfter===e.stopRenderingLineAfter&&this.renderWhitespace===e.renderWhitespace&&this.renderControlCharacters===e.renderControlCharacters&&this.fontLigatures===e.fontLigatures&&o["a"].equalsArr(this.lineDecorations,e.lineDecorations)&&this.lineTokens.equals(e.lineTokens)&&this.sameSelection(e.selectionsOnLine)},e}(),l=function(){function e(e,t){this.length=e,this._data=new Uint32Array(this.length),this._absoluteOffsets=new Uint32Array(this.length)}return e.getPartIndex=function(e){return(4294901760&e)>>>16},e.getCharIndex=function(e){return(65535&e)>>>0},e.prototype.setPartData=function(e,t,n,i){var r=(t<<16|n<<0)>>>0;this._data[e]=r,this._absoluteOffsets[e]=i+n},e.prototype.getAbsoluteOffsets=function(){return this._absoluteOffsets},e.prototype.charOffsetToPartData=function(e){return 0===this.length?0:e<0?this._data[0]:e>=this.length?this._data[this.length-1]:this._data[e]},e.prototype.partDataToCharOffset=function(t,n,i){if(0===this.length)return 0;var r=(t<<16|i<<0)>>>0,o=0,s=this.length-1;while(o+1<s){var a=o+s>>>1,u=this._data[a];if(u===r)return a;u>r?s=a:o=a}if(o===s)return o;var l=this._data[o],c=this._data[s];if(l===r)return o;if(c===r)return s;var d,h=e.getPartIndex(l),f=e.getCharIndex(l),p=e.getPartIndex(c);d=h!==p?n:e.getCharIndex(c);var g=i-f,A=d-i;return g<=A?o:s},e}(),c=function(){function e(e,t,n){this.characterMapping=e,this.containsRTL=t,this.containsForeignElements=n}return e}();function d(e,t){if(0===e.lineContent.length){var n=0,i="<span><span>\xa0</span></span>";if(e.lineDecorations.length>0){for(var r=[],o=[],s=0,a=e.lineDecorations.length;s<a;s++){var u=e.lineDecorations[s];1===u.type&&(r.push(e.lineDecorations[s].className),n|=1),2===u.type&&(o.push(e.lineDecorations[s].className),n|=2)}if(0!==n){var d=r.length>0?'<span class="'+r.join(" ")+'"></span>':"",h=o.length>0?'<span class="'+o.join(" ")+'"></span>':"";i="<span>"+d+h+"</span>"}}return t.appendASCIIString(i),new c(new l(0,0),!1,n)}return y(g(e),t)}var h=function(){function e(e,t,n,i){this.characterMapping=e,this.html=t,this.containsRTL=n,this.containsForeignElements=i}return e}();function f(e){var t=Object(r["a"])(1e4),n=d(e,t);return new h(n.characterMapping,t.build(),n.containsRTL,n.containsForeignElements)}var p=function(){function e(e,t,n,i,r,o,s,a,u,l,c,d,h,f,p){this.fontIsMonospace=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=n,this.len=i,this.isOverflowing=r,this.parts=o,this.containsForeignElements=s,this.fauxIndentLength=a,this.tabSize=u,this.startVisibleColumn=l,this.containsRTL=c,this.spaceWidth=d,this.middotWidth=h,this.renderWhitespace=f,this.renderControlCharacters=p}return e}();function g(e){var t,n,i=e.useMonospaceOptimizations,r=e.lineContent;-1!==e.stopRenderingLineAfter&&e.stopRenderingLineAfter<r.length?(t=!0,n=e.stopRenderingLineAfter):(t=!1,n=r.length);var o=A(e.lineTokens,e.fauxIndentLength,n);(3===e.renderWhitespace||1===e.renderWhitespace||2===e.renderWhitespace&&e.selectionsOnLine)&&(o=v(r,n,e.continuesWithWrappedLine,o,e.fauxIndentLength,e.tabSize,e.startVisibleColumn,i,e.selectionsOnLine,1===e.renderWhitespace));var s=0;if(e.lineDecorations.length>0){for(var a=0,u=e.lineDecorations.length;a<u;a++){var l=e.lineDecorations[a];3===l.type||1===l.type?s|=1:2===l.type&&(s|=2)}o=_(r,n,o,e.lineDecorations)}return e.containsRTL||(o=m(r,o,!e.isBasicASCII||e.fontLigatures)),new p(i,e.canUseHalfwidthRightwardsArrow,r,n,t,o,s,e.fauxIndentLength,e.tabSize,e.startVisibleColumn,e.containsRTL,e.spaceWidth,e.middotWidth,e.renderWhitespace,e.renderControlCharacters)}function A(e,t,n){var i=[],r=0;t>0&&(i[r++]=new s(t,""));for(var o=0,a=e.getCount();o<a;o++){var u=e.getEndOffset(o);if(!(u<=t)){var l=e.getClassName(o);if(u>=n){i[r++]=new s(n,l);break}i[r++]=new s(u,l)}}return i}function m(e,t,n){var i=0,r=[],o=0;if(n)for(var a=0,u=t.length;a<u;a++){var l=t[a],c=l.endIndex;if(i+50<c){for(var d=l.type,h=-1,f=i,p=i;p<c;p++)32===e.charCodeAt(p)&&(h=p),-1!==h&&p-f>=50&&(r[o++]=new s(h+1,d),f=h+1,h=-1);f!==c&&(r[o++]=new s(c,d))}else r[o++]=l;i=c}else for(a=0,u=t.length;a<u;a++){l=t[a],c=l.endIndex;var g=c-i;if(g>50){d=l.type;var A=Math.ceil(g/50);for(p=1;p<A;p++){var m=i+50*p;r[o++]=new s(m,d)}r[o++]=new s(c,d)}else r[o++]=l;i=c}return r}function v(e,t,n,r,o,a,u,l,c,d){var h,f=[],p=0,g=0,A=r[g].type,m=r[g].endIndex,v=r.length,_=i["q"](e);-1===_?(_=t,h=t):h=i["D"](e);for(var y=!1,b=0,w=c&&c[b],C=u%a,S=o;S<t;S++){var N=e.charCodeAt(S);w&&S>=w.endOffset&&(b++,w=c&&c[b]);var L=void 0;if(S<_||S>h)L=!0;else if(9===N)L=!0;else if(32===N)if(d)if(y)L=!0;else{var E=S+1<t?e.charCodeAt(S+1):0;L=32===E||9===E}else L=!0;else L=!1;L&&c&&(L=!!w&&w.startOffset<=S&&w.endOffset>S),y?(!L||!l&&C>=a)&&(f[p++]=new s(S,"vs-whitespace"),C%=a):(S===m||L&&S>o)&&(f[p++]=new s(S,A),C%=a),9===N?C=a:i["y"](N)?C+=2:C++,y=L,S===m&&(g++,g<v&&(A=r[g].type,m=r[g].endIndex))}var x=!1;if(y)if(n&&d){var O=t>0?e.charCodeAt(t-1):0,B=t>1?e.charCodeAt(t-2):0,k=32===O&&32!==B&&9!==B;k||(x=!0)}else x=!0;return f[p++]=new s(t,x?"vs-whitespace":A),f}function _(e,t,n,i){i.sort(o["a"].compare);for(var r=o["b"].normalize(e,i),a=r.length,u=0,l=[],c=0,d=0,h=0,f=n.length;h<f;h++){var p=n[h],g=p.endIndex,A=p.type;while(u<a&&r[u].startOffset<g){var m=r[u];if(m.startOffset>d&&(d=m.startOffset,l[c++]=new s(d,A)),!(m.endOffset+1<=g)){d=g,l[c++]=new s(d,A+" "+m.className);break}d=m.endOffset+1,l[c++]=new s(d,A+" "+m.className),u++}g>d&&(d=g,l[c++]=new s(d,A))}var v=n[n.length-1].endIndex;if(u<a&&r[u].startOffset===v){var _=[];while(u<a&&r[u].startOffset===v)_.push(r[u].className),u++;l[c++]=new s(d,_.join(" "))}return l}function y(e,t){var n=e.fontIsMonospace,r=e.canUseHalfwidthRightwardsArrow,o=e.containsForeignElements,s=e.lineContent,a=e.len,u=e.isOverflowing,d=e.parts,h=e.fauxIndentLength,f=e.tabSize,p=e.startVisibleColumn,g=e.containsRTL,A=e.spaceWidth,m=e.middotWidth,v=e.renderWhitespace,_=e.renderControlCharacters,y=m>A?11825:183,b=new l(a+1,d.length),w=0,C=p,S=0,N=0,L=0;t.appendASCIIString("<span>");for(var E=0,x=d.length;E<x;E++){L+=N;var O=d[E],B=O.endIndex,k=O.type,D=0!==v&&k.indexOf("vs-whitespace")>=0;if(S=0,t.appendASCIIString('<span class="'),t.appendASCIIString(k),t.appendASCII(34),D){for(var I=0,M=w,F=C;M<B;M++){var T=s.charCodeAt(M),R=0|(9===T?f-F%f:1);I+=R,M>=h&&(F+=R)}if(!n){var P="vs-whitespace"===k;!P&&o||(t.appendASCIIString(' style="display:inline-block;width:'),t.appendASCIIString(String(A*I)),t.appendASCIIString('px"'))}for(t.appendASCII(62);w<B;w++){b.setPartData(w,E,S,L);T=s.charCodeAt(w),R=void 0;if(9===T){R=f-C%f|0,!r||R>1?t.write1(8594):t.write1(65515);for(var U=2;U<=R;U++)t.write1(160)}else R=1,t.write1(y);S+=R,w>=h&&(C+=R)}N=I}else{I=0;for(g&&t.appendASCIIString(' dir="ltr"'),t.appendASCII(62);w<B;w++){b.setPartData(w,E,S,L);T=s.charCodeAt(w);var H=1;R=1;switch(T){case 9:H=f-C%f,R=H;for(U=1;U<=H;U++)t.write1(160);break;case 32:t.write1(160);break;case 60:t.appendASCIIString("<");break;case 62:t.appendASCIIString(">");break;case 38:t.appendASCIIString("&");break;case 0:t.appendASCIIString("�");break;case 65279:case 8232:t.write1(65533);break;default:i["y"](T)&&R++,_&&T<32?t.write1(9216+T):t.write1(T)}S+=H,I+=H,w>=h&&(C+=R)}N=I}t.appendASCIIString("</span>")}return b.setPartData(a,d.length-1,S,L),u&&t.appendASCIIString("<span>…</span>"),t.appendASCIIString("</span>"),new c(b,g,o)}},bexQ:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("Cg/j"),r=Object(i["c"])("keybindingService")},bk7F:function(e,t,n){"use strict";n.r(t),n.d(t,"BracketMatchingController",(function(){return w}));n("8ATB");var i=n("3/fG"),r=n("X+cX"),o=n("pmY6"),s=n("sswD"),a=n("cGHE"),u=n("aokT"),l=n("gCVg"),c=n("wQH0"),d=n("M1Kb"),h=n("tX9W"),f=n("kYye"),p=n("MD5Z"),g=n("t9D7"),A=n("fjLI"),m=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),v=Object(p["Rb"])("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hc:"#A0A0A0"},i["a"]("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets.")),_=function(e){function t(){return e.call(this,{id:"editor.action.jumpToBracket",label:i["a"]("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:c["a"].editorTextFocus,primary:3160,weight:100}})||this}return m(t,e),t.prototype.run=function(e,t){var n=w.get(t);n&&n.jumpToBracket()},t}(s["b"]),y=function(e){function t(){return e.call(this,{id:"editor.action.selectToBracket",label:i["a"]("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,description:{description:"Select to Bracket",args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})||this}return m(t,e),t.prototype.run=function(e,t,n){var i=w.get(t);if(i){var r=!0;n&&!1===n.selectBrackets&&(r=!1),i.selectToBracket(r)}},t}(s["b"]),b=function(){function e(e,t,n){this.position=e,this.brackets=t,this.options=n}return e}(),w=function(e){function t(t){var n=e.call(this)||this;return n._editor=t,n._lastBracketsData=[],n._lastVersionId=0,n._decorations=[],n._updateBracketsSoon=n._register(new r["d"]((function(){return n._updateBrackets()}),50)),n._matchBrackets=n._editor.getOption(53),n._updateBracketsSoon.schedule(),n._register(t.onDidChangeCursorPosition((function(e){"never"!==n._matchBrackets&&n._updateBracketsSoon.schedule()}))),n._register(t.onDidChangeModelContent((function(e){n._updateBracketsSoon.schedule()}))),n._register(t.onDidChangeModel((function(e){n._lastBracketsData=[],n._decorations=[],n._updateBracketsSoon.schedule()}))),n._register(t.onDidChangeModelLanguageConfiguration((function(e){n._lastBracketsData=[],n._updateBracketsSoon.schedule()}))),n._register(t.onDidChangeConfiguration((function(e){e.hasChanged(53)&&(n._matchBrackets=n._editor.getOption(53),n._decorations=n._editor.deltaDecorations(n._decorations,[]),n._lastBracketsData=[],n._lastVersionId=0,n._updateBracketsSoon.schedule())}))),n}return m(t,e),t.get=function(e){return e.getContribution(t.ID)},t.prototype.jumpToBracket=function(){if(this._editor.hasModel()){var e=this._editor.getModel(),t=this._editor.getSelections().map((function(t){var n=t.getStartPosition(),i=e.matchBracket(n),r=null;if(i)i[0].containsPosition(n)?r=i[1].getStartPosition():i[1].containsPosition(n)&&(r=i[0].getStartPosition());else{var o=e.findEnclosingBrackets(n);if(o)r=o[0].getStartPosition();else{var s=e.findNextBracket(n);s&&s.range&&(r=s.range.getStartPosition())}}return r?new l["a"](r.lineNumber,r.column,r.lineNumber,r.column):new l["a"](n.lineNumber,n.column,n.lineNumber,n.column)}));this._editor.setSelections(t),this._editor.revealRange(t[0])}},t.prototype.selectToBracket=function(e){if(this._editor.hasModel()){var t=this._editor.getModel(),n=[];this._editor.getSelections().forEach((function(i){var r=i.getStartPosition(),o=t.matchBracket(r);if(!o&&(o=t.findEnclosingBrackets(r),!o)){var s=t.findNextBracket(r);s&&s.range&&(o=t.matchBracket(s.range.getStartPosition()))}var a=null,c=null;if(o){o.sort(u["a"].compareRangesUsingStarts);var d=o[0],h=o[1];a=e?d.getStartPosition():d.getEndPosition(),c=e?h.getEndPosition():h.getStartPosition()}a&&c&&n.push(new l["a"](a.lineNumber,a.column,c.lineNumber,c.column))})),n.length>0&&(this._editor.setSelections(n),this._editor.revealRange(n[0]))}},t.prototype._updateBrackets=function(){if("never"!==this._matchBrackets){this._recomputeBrackets();for(var e=[],t=0,n=0,i=this._lastBracketsData;n<i.length;n++){var r=i[n],o=r.brackets;o&&(e[t++]={range:o[0],options:r.options},e[t++]={range:o[1],options:r.options})}this._decorations=this._editor.deltaDecorations(this._decorations,e)}},t.prototype._recomputeBrackets=function(){if(!this._editor.hasModel())return this._lastBracketsData=[],void(this._lastVersionId=0);var e=this._editor.getSelections();if(e.length>100)return this._lastBracketsData=[],void(this._lastVersionId=0);var n=this._editor.getModel(),i=n.getVersionId(),r=[];this._lastVersionId===i&&(r=this._lastBracketsData);for(var o=[],s=0,u=0,l=e.length;u<l;u++){var c=e[u];c.isEmpty()&&(o[s++]=c.getStartPosition())}o.length>1&&o.sort(a["a"].compare);var d=[],h=0,f=0,p=r.length;for(u=0,l=o.length;u<l;u++){var g=o[u];while(f<p&&r[f].position.isBefore(g))f++;if(f<p&&r[f].position.equals(g))d[h++]=r[f];else{var A=n.matchBracket(g),m=t._DECORATION_OPTIONS_WITH_OVERVIEW_RULER;A||"always"!==this._matchBrackets||(A=n.findEnclosingBrackets(g,20),m=t._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER),d[h++]=new b(g,A,m)}}this._lastBracketsData=d,this._lastVersionId=i},t.ID="editor.contrib.bracketMatchingController",t._DECORATION_OPTIONS_WITH_OVERVIEW_RULER=h["a"].register({stickiness:1,className:"bracket-match",overviewRuler:{color:Object(g["f"])(v),position:d["d"].Center}}),t._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER=h["a"].register({stickiness:1,className:"bracket-match"}),t}(o["a"]);Object(s["h"])(w.ID,w),Object(s["f"])(y),Object(s["f"])(_),Object(g["e"])((function(e,t){var n=e.getColor(f["c"]);n&&t.addRule(".monaco-editor .bracket-match { background-color: "+n+"; }");var i=e.getColor(f["d"]);i&&t.addRule(".monaco-editor .bracket-match { border: 1px solid "+i+"; }")})),A["c"].appendMenuItem(19,{group:"5_infile_nav",command:{id:"editor.action.jumpToBracket",title:i["a"]({key:"miGoToBracket",comment:["&& denotes a mnemonic"]},"Go to &&Bracket")},order:2})},c2dO:function(e,t,n){"use strict";n.r(t),n.d(t,"LanguageServiceDefaultsImpl",(function(){return r}));n("M/lh");var i=monaco.Emitter,r=function(){function e(e,t,n){this._onDidChange=new i,this._languageId=e,this.setOptions(t),this.setModeConfiguration(n)}return Object.defineProperty(e.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this._options},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"modeConfiguration",{get:function(){return this._modeConfiguration},enumerable:!0,configurable:!0}),e.prototype.setOptions=function(e){this._options=e||Object.create(null),this._onDidChange.fire(this)},e.prototype.setModeConfiguration=function(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)},e}(),o={tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:null,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},s={format:o,suggest:{html5:!0,angular1:!0,ionic:!0}},a={format:o,suggest:{html5:!0}},u={format:o,suggest:{html5:!0,razor:!0}};function l(e){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:e===c,documentFormattingEdits:e===c,documentRangeFormattingEdits:e===c}}var c="html",d="handlebars",h="razor",f=new r(c,s,l(c)),p=new r(d,a,l(d)),g=new r(h,u,l(h));function A(){return{htmlDefaults:f,razorDefaults:g,handlebarDefaults:p}}function m(){return n.e(139).then(n.bind(null,"+lu7"))}monaco.languages.html=A(),monaco.languages.onLanguage(c,(function(){m().then((function(e){return e.setupMode(f)}))})),monaco.languages.onLanguage(d,(function(){m().then((function(e){return e.setupMode(p)}))})),monaco.languages.onLanguage(h,(function(){m().then((function(e){return e.setupMode(g)}))}))},c9ML:function(e,t,n){"use strict";n.r(t);var i=n("+hIS");Object(i["a"])({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:function(){return n.e(186).then(n.bind(null,"QJnQ"))}})},cGHE:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var i=function(){function e(e,t){this.lineNumber=e,this.column=t}return e.prototype.with=function(t,n){return void 0===t&&(t=this.lineNumber),void 0===n&&(n=this.column),t===this.lineNumber&&n===this.column?this:new e(t,n)},e.prototype.delta=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=0),this.with(this.lineNumber+e,this.column+t)},e.prototype.equals=function(t){return e.equals(this,t)},e.equals=function(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column},e.prototype.isBefore=function(t){return e.isBefore(this,t)},e.isBefore=function(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<t.column},e.prototype.isBeforeOrEqual=function(t){return e.isBeforeOrEqual(this,t)},e.isBeforeOrEqual=function(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<=t.column},e.compare=function(e,t){var n=0|e.lineNumber,i=0|t.lineNumber;if(n===i){var r=0|e.column,o=0|t.column;return r-o}return n-i},e.prototype.clone=function(){return new e(this.lineNumber,this.column)},e.prototype.toString=function(){return"("+this.lineNumber+","+this.column+")"},e.lift=function(t){return new e(t.lineNumber,t.column)},e.isIPosition=function(e){return e&&"number"===typeof e.lineNumber&&"number"===typeof e.column},e}()},cIJc:function(e,t,n){"use strict";n.r(t);var i=n("6OMU"),r=n("JQT/"),o=n("/kV6"),s=n("pmY6"),a=n("sswD"),u=n("Vxe3"),l=n("MXAL"),c=n("aokT"),d=n("wQH0"),h=n("twdY"),f=n("pAvP"),p=n("OBOq"),g=n("/cxE"),A=n("bY76"),m=n("vATl"),v=n("sFUC"),_=n("cGHE"),y=n("gCVg"),b=n("G2kB"),w=n("0/Sa"),C=function(){function e(){}return e._handleEolEdits=function(e,t){for(var n=void 0,i=[],r=0,o=t;r<o.length;r++){var s=o[r];"number"===typeof s.eol&&(n=s.eol),s.range&&"string"===typeof s.text&&i.push(s)}return"number"===typeof n&&e.hasModel()&&e.getModel().pushEOL(n),i},e._isFullModelReplaceEdit=function(e,t){if(!e.hasModel())return!1;var n=e.getModel(),i=n.validateRange(t.range),r=n.getFullModelRange();return r.equalsRange(i)},e.execute=function(t,n){t.pushUndoStop();var i=e._handleEolEdits(t,n);1===i.length&&e._isFullModelReplaceEdit(t,i[0])?t.executeEdits("formatEditsCommand",i.map((function(e){return w["a"].replace(c["a"].lift(e.range),e.text)}))):t.executeEdits("formatEditsCommand",i.map((function(e){return w["a"].replaceMove(c["a"].lift(e.range),e.text)}))),t.pushUndoStop()},e}(),S=n("3/fG"),N=function(){function e(e){this.value=e,this._lower=e.toLowerCase()}return e.toKey=function(e){return"string"===typeof e?e.toLowerCase():e._lower},e}(),L=n("Cg/j"),E=n("24hK"),x=n("nnTU"),O=n("746U"),B=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{u(i.next(e))}catch(t){o(t)}}function a(e){try{u(i["throw"](e))}catch(t){o(t)}}function u(e){e.done?n(e.value):r(e.value).then(s,a)}u((i=i.apply(e,t||[])).next())}))},k=function(e,t){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(e){return function(t){return u([e,t])}}function u(o){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,i&&(r=2&o[0]?i["return"]:o[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(r=s.trys,!(r=r.length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(a){o=[6,a],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}};function D(e){if(e=e.filter((function(e){return e.range})),e.length){for(var t=e[0].range,n=1;n<e.length;n++)t=c["a"].plusRange(t,e[n].range);var i=t.startLineNumber,r=t.endLineNumber;i===r?1===e.length?Object(p["a"])(S["a"]("hint11","Made 1 formatting edit on line {0}",i)):Object(p["a"])(S["a"]("hintn1","Made {0} formatting edits on line {1}",e.length,i)):1===e.length?Object(p["a"])(S["a"]("hint1n","Made 1 formatting edit between lines {0} and {1}",i,r)):Object(p["a"])(S["a"]("hintnn","Made {0} formatting edits between lines {1} and {2}",e.length,i,r))}}function I(e){for(var t=[],n=new Set,i=h["g"].ordered(e),r=0,o=i;r<o.length;r++){var s=o[r];t.push(s),s.extensionId&&n.add(N.toKey(s.extensionId))}for(var a=h["i"].ordered(e),u=function(e){if(e.extensionId){if(n.has(N.toKey(e.extensionId)))return"continue";n.add(N.toKey(e.extensionId))}t.push({displayName:e.displayName,extensionId:e.extensionId,provideDocumentFormattingEdits:function(t,n,i){return e.provideDocumentRangeFormattingEdits(t,t.getFullModelRange(),n,i)}})},l=0,c=a;l<c.length;l++){s=c[l];u(s)}return t}var M=function(){function e(){}return e.select=function(t,n,i){return B(this,void 0,void 0,(function(){var r;return k(this,(function(o){switch(o.label){case 0:return 0===t.length?[2,void 0]:(r=e._selectors.iterator().next().value,r?[4,r(t,n,i)]:[3,2]);case 1:return[2,o.sent()];case 2:return[2,t[0]]}}))}))},e._selectors=new E["a"],e}();function F(e,t,n,i,r){return B(this,void 0,void 0,(function(){var o,s,a,u;return k(this,(function(l){switch(l.label){case 0:return o=e.get(L["a"]),s=Object(v["a"])(t)?t.getModel():t,a=h["i"].ordered(s),[4,M.select(a,s,i)];case 1:return u=l.sent(),u?[4,o.invokeFunction(T,u,t,n,r)]:[3,3];case 2:l.sent(),l.label=3;case 3:return[2]}}))}))}function T(e,t,n,i,r){return B(this,void 0,void 0,(function(){var o,s,a,u,l,d,h;return k(this,(function(p){switch(p.label){case 0:o=e.get(f["a"]),Object(v["a"])(n)?(s=n.getModel(),a=new m["b"](n,5,r)):(s=n,a=new m["d"](n,r)),p.label=1;case 1:return p.trys.push([1,,4,5]),[4,t.provideDocumentRangeFormattingEdits(s,i,s.getFormattingOptions(),a.token)];case 2:return l=p.sent(),[4,o.computeMoreMinimalEdits(s.uri,l)];case 3:return u=p.sent(),a.token.isCancellationRequested?[2,!0]:[3,5];case 4:return a.dispose(),[7];case 5:return u&&0!==u.length?(Object(v["a"])(n)?(C.execute(n,u),D(u),n.pushUndoStop(),n.revealPositionInCenterIfOutsideViewport(n.getPosition(),1)):(d=u[0].range,h=new y["a"](d.startLineNumber,d.startColumn,d.endLineNumber,d.endColumn),s.pushEditOperations([h],u.map((function(e){return{text:e.text,range:c["a"].lift(e.range),forceMoveMarkers:!0}})),(function(e){for(var t=0,n=e;t<n.length;t++){var i=n[t].range;if(c["a"].areIntersectingOrTouching(i,h))return[new y["a"](i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn)]}return null}))),[2,!0]):[2,!1]}}))}))}function R(e,t,n,i){return B(this,void 0,void 0,(function(){var r,o,s,a;return k(this,(function(u){switch(u.label){case 0:return r=e.get(L["a"]),o=Object(v["a"])(t)?t.getModel():t,s=I(o),[4,M.select(s,o,n)];case 1:return a=u.sent(),a?[4,r.invokeFunction(P,a,t,n,i)]:[3,3];case 2:u.sent(),u.label=3;case 3:return[2]}}))}))}function P(e,t,n,i,r){return B(this,void 0,void 0,(function(){var o,s,a,u,l,d,h;return k(this,(function(p){switch(p.label){case 0:o=e.get(f["a"]),Object(v["a"])(n)?(s=n.getModel(),a=new m["b"](n,5,r)):(s=n,a=new m["d"](n,r)),p.label=1;case 1:return p.trys.push([1,,4,5]),[4,t.provideDocumentFormattingEdits(s,s.getFormattingOptions(),a.token)];case 2:return l=p.sent(),[4,o.computeMoreMinimalEdits(s.uri,l)];case 3:return u=p.sent(),a.token.isCancellationRequested?[2,!0]:[3,5];case 4:return a.dispose(),[7];case 5:return u&&0!==u.length?(Object(v["a"])(n)?(C.execute(n,u),2!==i&&(D(u),n.pushUndoStop(),n.revealPositionInCenterIfOutsideViewport(n.getPosition(),1))):(d=u[0].range,h=new y["a"](d.startLineNumber,d.startColumn,d.endLineNumber,d.endColumn),s.pushEditOperations([h],u.map((function(e){return{text:e.text,range:c["a"].lift(e.range),forceMoveMarkers:!0}})),(function(e){for(var t=0,n=e;t<n.length;t++){var i=n[t].range;if(c["a"].areIntersectingOrTouching(i,h))return[new y["a"](i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn)]}return null}))),[2,!0]):[2,!1]}}))}))}function U(e,t,n,r,o){return B(this,void 0,void 0,(function(){var s,a,u,l,c;return k(this,(function(d){switch(d.label){case 0:s=h["i"].ordered(t),a=0,u=s,d.label=1;case 1:return a<u.length?(l=u[a],[4,Promise.resolve(l.provideDocumentRangeFormattingEdits(t,n,r,o)).catch(g["f"])]):[3,5];case 2:return c=d.sent(),Object(i["q"])(c)?[4,e.computeMoreMinimalEdits(t.uri,c)]:[3,4];case 3:return[2,d.sent()];case 4:return a++,[3,1];case 5:return[2,void 0]}}))}))}function H(e,t,n,r){return B(this,void 0,void 0,(function(){var o,s,a,u,l;return k(this,(function(c){switch(c.label){case 0:o=I(t),s=0,a=o,c.label=1;case 1:return s<a.length?(u=a[s],[4,Promise.resolve(u.provideDocumentFormattingEdits(t,n,r)).catch(g["f"])]):[3,5];case 2:return l=c.sent(),Object(i["q"])(l)?[4,e.computeMoreMinimalEdits(t.uri,l)]:[3,4];case 3:return[2,c.sent()];case 4:return s++,[3,1];case 5:return[2,void 0]}}))}))}function j(e,t,n,i,o){var s=h["s"].ordered(t);return 0===s.length||s[0].autoFormatTriggerCharacters.indexOf(i)<0?Promise.resolve(void 0):Promise.resolve(s[0].provideOnTypeFormattingEdits(t,n,i,o,r["a"].None)).catch(g["f"]).then((function(n){return e.computeMoreMinimalEdits(t.uri,n)}))}x["a"].registerCommand("_executeFormatRangeProvider",(function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=t[0],o=t[1],s=t[2];Object(O["a"])(A["a"].isUri(i)),Object(O["a"])(c["a"].isIRange(o));var a=e.get(b["a"]).getModel(i);if(!a)throw Object(g["b"])("resource");return U(e.get(f["a"]),a,c["a"].lift(o),s,r["a"].None)})),x["a"].registerCommand("_executeFormatDocumentProvider",(function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=t[0],o=t[1];Object(O["a"])(A["a"].isUri(i));var s=e.get(b["a"]).getModel(i);if(!s)throw Object(g["b"])("resource");return H(e.get(f["a"]),s,o,r["a"].None)})),x["a"].registerCommand("_executeFormatOnTypeProvider",(function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=t[0],r=t[1],o=t[2],s=t[3];Object(O["a"])(A["a"].isUri(i)),Object(O["a"])(_["a"].isIPosition(r)),Object(O["a"])("string"===typeof o);var a=e.get(b["a"]).getModel(i);if(!a)throw Object(g["b"])("resource");return j(e.get(f["a"]),a,_["a"].lift(r),o,s)}));var Q=n("T8No"),V=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),W=function(e,t,n,i){var r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},z=function(e,t){return function(n,i){t(n,i,e)}},K=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{u(i.next(e))}catch(t){o(t)}}function a(e){try{u(i["throw"](e))}catch(t){o(t)}}function u(e){e.done?n(e.value):r(e.value).then(s,a)}u((i=i.apply(e,t||[])).next())}))},q=function(e,t){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(e){return function(t){return u([e,t])}}function u(o){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,i&&(r=2&o[0]?i["return"]:o[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(r=s.trys,!(r=r.length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(a){o=[6,a],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},G=function(){function e(e,t){var n=this;this._workerService=t,this._callOnDispose=new s["b"],this._callOnModel=new s["b"],this._editor=e,this._callOnDispose.add(e.onDidChangeConfiguration((function(){return n._update()}))),this._callOnDispose.add(e.onDidChangeModel((function(){return n._update()}))),this._callOnDispose.add(e.onDidChangeModelLanguage((function(){return n._update()}))),this._callOnDispose.add(h["s"].onDidChange(this._update,this))}return e.prototype.dispose=function(){this._callOnDispose.dispose(),this._callOnModel.dispose()},e.prototype._update=function(){var e=this;if(this._callOnModel.clear(),this._editor.getOption(39)&&this._editor.hasModel()){var t=this._editor.getModel(),n=h["s"].ordered(t)[0];if(n&&n.autoFormatTriggerCharacters){for(var i=new l["b"],r=0,o=n.autoFormatTriggerCharacters;r<o.length;r++){var s=o[r];i.add(s.charCodeAt(0))}this._callOnModel.add(this._editor.onDidType((function(t){var n=t.charCodeAt(t.length-1);i.has(n)&&e._trigger(String.fromCharCode(n))})))}}},e.prototype._trigger=function(e){var t=this;if(this._editor.hasModel()&&!(this._editor.getSelections().length>1)){var n=this._editor.getModel(),r=this._editor.getPosition(),o=!1,s=this._editor.onDidChangeModelContent((function(e){if(e.isFlush)return o=!0,void s.dispose();for(var t=0,n=e.changes.length;t<n;t++){var i=e.changes[t];if(i.range.endLineNumber<=r.lineNumber)return o=!0,void s.dispose()}}));j(this._workerService,n,r,e,n.getFormattingOptions()).then((function(e){s.dispose(),o||Object(i["q"])(e)&&(C.execute(t._editor,e),D(e))}),(function(e){throw s.dispose(),e}))}},e.ID="editor.contrib.autoFormat",e=W([z(1,f["a"])],e),e}(),X=function(){function e(e,t){var n=this;this.editor=e,this._instantiationService=t,this._callOnDispose=new s["b"],this._callOnModel=new s["b"],this._callOnDispose.add(e.onDidChangeConfiguration((function(){return n._update()}))),this._callOnDispose.add(e.onDidChangeModel((function(){return n._update()}))),this._callOnDispose.add(e.onDidChangeModelLanguage((function(){return n._update()}))),this._callOnDispose.add(h["i"].onDidChange(this._update,this))}return e.prototype.dispose=function(){this._callOnDispose.dispose(),this._callOnModel.dispose()},e.prototype._update=function(){var e=this;this._callOnModel.clear(),this.editor.getOption(38)&&this.editor.hasModel()&&h["i"].has(this.editor.getModel())&&this._callOnModel.add(this.editor.onDidPaste((function(t){var n=t.range;return e._trigger(n)})))},e.prototype._trigger=function(e){this.editor.hasModel()&&(this.editor.getSelections().length>1||this._instantiationService.invokeFunction(F,this.editor,e,2,r["a"].None).catch(g["e"]))},e.ID="editor.contrib.formatOnPaste",e=W([z(1,L["a"])],e),e}(),Y=function(e){function t(){return e.call(this,{id:"editor.action.formatDocument",label:S["a"]("formatDocument.label","Format Document"),alias:"Format Document",precondition:Q["a"].and(d["a"].writable,d["a"].hasDocumentFormattingProvider),kbOpts:{kbExpr:Q["a"].and(d["a"].editorTextFocus,d["a"].hasDocumentFormattingProvider),primary:1572,linux:{primary:3111},weight:100},contextMenuOpts:{when:d["a"].hasDocumentFormattingProvider,group:"1_modification",order:1.3}})||this}return V(t,e),t.prototype.run=function(e,t){return K(this,void 0,void 0,(function(){var n;return q(this,(function(i){switch(i.label){case 0:return t.hasModel()?(n=e.get(L["a"]),[4,n.invokeFunction(R,t,1,r["a"].None)]):[3,2];case 1:i.sent(),i.label=2;case 2:return[2]}}))}))},t}(a["b"]),J=function(e){function t(){return e.call(this,{id:"editor.action.formatSelection",label:S["a"]("formatSelection.label","Format Selection"),alias:"Format Selection",precondition:Q["a"].and(d["a"].writable,d["a"].hasDocumentSelectionFormattingProvider),kbOpts:{kbExpr:Q["a"].and(d["a"].editorTextFocus,d["a"].hasDocumentSelectionFormattingProvider),primary:Object(o["a"])(2089,2084),weight:100},contextMenuOpts:{when:Q["a"].and(d["a"].hasDocumentSelectionFormattingProvider,d["a"].hasNonEmptySelection),group:"1_modification",order:1.31}})||this}return V(t,e),t.prototype.run=function(e,t){return K(this,void 0,void 0,(function(){var n,i,o;return q(this,(function(s){switch(s.label){case 0:return t.hasModel()?(n=e.get(L["a"]),i=t.getModel(),o=t.getSelection(),o.isEmpty()&&(o=new c["a"](o.startLineNumber,1,o.startLineNumber,i.getLineMaxColumn(o.startLineNumber))),[4,n.invokeFunction(F,t,o,1,r["a"].None)]):[2];case 1:return s.sent(),[2]}}))}))},t}(a["b"]);Object(a["h"])(G.ID,G),Object(a["h"])(X.ID,X),Object(a["f"])(Y),Object(a["f"])(J),x["a"].registerCommand("editor.action.format",(function(e){return K(void 0,void 0,void 0,(function(){var t,n;return q(this,(function(i){switch(i.label){case 0:return t=e.get(u["a"]).getFocusedCodeEditor(),t&&t.hasModel()?(n=e.get(x["b"]),t.getSelection().isEmpty()?[4,n.executeCommand("editor.action.formatDocument")]:[3,2]):[2];case 1:return i.sent(),[3,4];case 2:return[4,n.executeCommand("editor.action.formatSelection")];case 3:i.sent(),i.label=4;case 4:return[2]}}))}))}))},cMOf:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));n("undH");var i=n("pmY6"),r=n("D3Dy"),o=n("MNsG"),s=n("746U"),a=n("pg8w"),u=n("XSiN"),l=n("MI8n"),c=n("EffR"),d=n("4y0V"),h=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),f=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i},p=!1,g=function(e){function t(t,n,s){void 0===s&&(s={});var u=e.call(this)||this;return u._state=3,u._onDidEnablementChange=u._register(new l["a"]),u.onDidEnablementChange=u._onDidEnablementChange.event,u._onDidStart=u._register(new l["a"]),u.onDidStart=u._onDidStart.event,u._onDidChange=u._register(new l["a"]),u.onDidChange=u._onDidChange.event,u._onDidReset=u._register(new l["a"]),u.onDidReset=u._onDidReset.event,u._onDidEnd=u._register(new l["a"]),u.onDidEnd=u._onDidEnd.event,u.linkedSash=void 0,u.orthogonalStartSashDisposables=u._register(new i["b"]),u.orthogonalEndSashDisposables=u._register(new i["b"]),u.el=Object(c["p"])(t,Object(c["a"])(".monaco-sash")),o["e"]&&Object(c["e"])(u.el,"mac"),u._register(Object(d["a"])(u.el,"mousedown")(u.onMouseDown,u)),u._register(Object(d["a"])(u.el,"dblclick")(u.onMouseDoubleClick,u)),u._register(a["b"].addTarget(u.el)),u._register(Object(d["a"])(u.el,a["a"].Start)(u.onTouchStart,u)),r["j"]&&Object(c["e"])(u.el,"touch"),u.setOrientation(s.orientation||0),u.hidden=!1,u.layoutProvider=n,u.orthogonalStartSash=s.orthogonalStartSash,u.orthogonalEndSash=s.orthogonalEndSash,Object(c["X"])(u.el,"debug",p),u}return h(t,e),Object.defineProperty(t.prototype,"state",{get:function(){return this._state},set:function(e){this._state!==e&&(Object(c["X"])(this.el,"disabled",0===e),Object(c["X"])(this.el,"minimum",1===e),Object(c["X"])(this.el,"maximum",2===e),this._state=e,this._onDidEnablementChange.fire(e))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"orthogonalStartSash",{get:function(){return this._orthogonalStartSash},set:function(e){this.orthogonalStartSashDisposables.clear(),e?(this.orthogonalStartSashDisposables.add(e.onDidEnablementChange(this.onOrthogonalStartSashEnablementChange,this)),this.onOrthogonalStartSashEnablementChange(e.state)):this.onOrthogonalStartSashEnablementChange(0),this._orthogonalStartSash=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"orthogonalEndSash",{get:function(){return this._orthogonalEndSash},set:function(e){this.orthogonalEndSashDisposables.clear(),e?(this.orthogonalEndSashDisposables.add(e.onDidEnablementChange(this.onOrthogonalEndSashEnablementChange,this)),this.onOrthogonalEndSashEnablementChange(e.state)):this.onOrthogonalEndSashEnablementChange(0),this._orthogonalEndSash=e},enumerable:!0,configurable:!0}),t.prototype.setOrientation=function(e){this.orientation=e,1===this.orientation?(Object(c["e"])(this.el,"horizontal"),Object(c["O"])(this.el,"vertical")):(Object(c["O"])(this.el,"horizontal"),Object(c["e"])(this.el,"vertical")),this.layoutProvider&&this.layout()},t.prototype.onMouseDown=function(e){var t=this;c["b"].stop(e,!1);var n=!1;if(!e.__orthogonalSashEvent){var r=this.getOrthogonalSash(e);r&&(n=!0,e.__orthogonalSashEvent=!0,r.onMouseDown(e))}if(this.linkedSash&&!e.__linkedSashEvent&&(e.__linkedSashEvent=!0,this.linkedSash.onMouseDown(e)),this.state){for(var s=f(Object(c["C"])("iframe"),Object(c["C"])("webview")),a=0,l=s;a<l.length;a++){var h=l[a];h.style.pointerEvents="none"}var p=new u["a"](e),g=p.posx,A=p.posy,m=p.altKey,v={startX:g,currentX:g,startY:A,currentY:A,altKey:m};Object(c["e"])(this.el,"active"),this._onDidStart.fire(v);var _=Object(c["v"])(this.el),y=function(){var e="";e=n?"all-scroll":1===t.orientation?1===t.state?"s-resize":2===t.state?"n-resize":o["e"]?"row-resize":"ns-resize":1===t.state?"e-resize":2===t.state?"w-resize":o["e"]?"col-resize":"ew-resize",_.innerHTML="* { cursor: "+e+" !important; }"},b=new i["b"];y(),n||this.onDidEnablementChange(y,null,b);var w=function(e){c["b"].stop(e,!1);var n=new u["a"](e),i={startX:g,currentX:n.posx,startY:A,currentY:n.posy,altKey:m};t._onDidChange.fire(i)},C=function(e){c["b"].stop(e,!1),t.el.removeChild(_),Object(c["O"])(t.el,"active"),t._onDidEnd.fire(),b.dispose();for(var n=0,i=s;n<i.length;n++){var r=i[n];r.style.pointerEvents="auto"}};Object(d["a"])(window,"mousemove")(w,null,b),Object(d["a"])(window,"mouseup")(C,null,b)}},t.prototype.onMouseDoubleClick=function(e){var t=this.getOrthogonalSash(e);t&&t._onDidReset.fire(),this.linkedSash&&this.linkedSash._onDidReset.fire(),this._onDidReset.fire()},t.prototype.onTouchStart=function(e){var t=this;c["b"].stop(e);var n=[],r=e.pageX,o=e.pageY,u=e.altKey;this._onDidStart.fire({startX:r,currentX:r,startY:o,currentY:o,altKey:u}),n.push(Object(c["i"])(this.el,a["a"].Change,(function(e){s["h"](e.pageX)&&s["h"](e.pageY)&&t._onDidChange.fire({startX:r,currentX:e.pageX,startY:o,currentY:e.pageY,altKey:u})}))),n.push(Object(c["i"])(this.el,a["a"].End,(function(e){t._onDidEnd.fire(),Object(i["f"])(n)})))},t.prototype.layout=function(){var e=r["j"]?20:4;if(0===this.orientation){var t=this.layoutProvider;this.el.style.left=t.getVerticalSashLeft(this)-e/2+"px",t.getVerticalSashTop&&(this.el.style.top=t.getVerticalSashTop(this)+"px"),t.getVerticalSashHeight&&(this.el.style.height=t.getVerticalSashHeight(this)+"px")}else{var n=this.layoutProvider;this.el.style.top=n.getHorizontalSashTop(this)-e/2+"px",n.getHorizontalSashLeft&&(this.el.style.left=n.getHorizontalSashLeft(this)+"px"),n.getHorizontalSashWidth&&(this.el.style.width=n.getHorizontalSashWidth(this)+"px")}},t.prototype.hide=function(){this.hidden=!0,this.el.style.display="none",this.el.setAttribute("aria-hidden","true")},t.prototype.onOrthogonalStartSashEnablementChange=function(e){Object(c["X"])(this.el,"orthogonal-start",0!==e)},t.prototype.onOrthogonalEndSashEnablementChange=function(e){Object(c["X"])(this.el,"orthogonal-end",0!==e)},t.prototype.getOrthogonalSash=function(e){if(0===this.orientation){if(e.offsetY<=4)return this.orthogonalStartSash;if(e.offsetY>=this.el.clientHeight-4)return this.orthogonalEndSash}else{if(e.offsetX<=4)return this.orthogonalStartSash;if(e.offsetX>=this.el.clientWidth-4)return this.orthogonalEndSash}},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.el.remove()},t}(i["a"])},cMvZ:function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var i=n("MI8n"),r=n("pmY6"),o=n("N0LK"),s=n("0JNc"),a=n("KDc4"),u=n("BFtn"),l=function(){function e(t){if(t.autoClosingPairs?this._autoClosingPairs=t.autoClosingPairs.map((function(e){return new a["b"](e)})):t.brackets?this._autoClosingPairs=t.brackets.map((function(e){return new a["b"]({open:e[0],close:e[1]})})):this._autoClosingPairs=[],t.__electricCharacterSupport&&t.__electricCharacterSupport.docComment){var n=t.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new a["b"]({open:n.open,close:n.close||""}))}this._autoCloseBefore="string"===typeof t.autoCloseBefore?t.autoCloseBefore:e.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED,this._surroundingPairs=t.surroundingPairs||this._autoClosingPairs}return e.prototype.getAutoClosingPairs=function(){return this._autoClosingPairs},e.prototype.getAutoCloseBeforeSet=function(){return this._autoCloseBefore},e.shouldAutoClosePair=function(e,t,n){if(0===t.getTokenCount())return!0;var i=t.findTokenIndexAtOffset(n-2),r=t.getStandardTokenType(i);return e.isOK(r)},e.prototype.getSurroundingPairs=function(){return this._surroundingPairs},e.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED=";:.,=}])> \n\t",e}(),c=n("EIAu"),d=function(){function e(e){this._richEditBrackets=e}return e.prototype.getElectricCharacters=function(){var e=[];if(this._richEditBrackets)for(var t=0,n=this._richEditBrackets.brackets;t<n.length;t++)for(var i=n[t],r=0,o=i.close;r<o.length;r++){var s=o[r],a=s.charAt(s.length-1);e.push(a)}return e=e.filter((function(e,t,n){return n.indexOf(e)===t})),e},e.prototype.onElectricCharacter=function(e,t,n){if(!this._richEditBrackets||0===this._richEditBrackets.brackets.length)return null;var i=t.findTokenIndexAtOffset(n-1);if(Object(u["b"])(t.getStandardTokenType(i)))return null;var r=this._richEditBrackets.reversedRegex,o=t.getLineContent().substring(0,n-1)+e,s=c["a"].findPrevBracketInRange(r,1,o,0,o.length);if(!s)return null;var a=o.substring(s.startColumn-1,s.endColumn-1).toLowerCase(),l=this._richEditBrackets.textIsOpenBracket[a];if(l)return null;var d=t.getActualLineContentBefore(s.startColumn-1);return/^\s*$/.test(d)?{matchOpenBracket:a}:null},e}(),h=function(){function e(e){this._indentationRules=e}return e.prototype.shouldIncrease=function(e){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&this._indentationRules.increaseIndentPattern.test(e))},e.prototype.shouldDecrease=function(e){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&this._indentationRules.decreaseIndentPattern.test(e))},e.prototype.shouldIndentNextLine=function(e){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&this._indentationRules.indentNextLinePattern.test(e))},e.prototype.shouldIgnore=function(e){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&this._indentationRules.unIndentedLinePattern.test(e))},e.prototype.getIndentMetadata=function(e){var t=0;return this.shouldIncrease(e)&&(t+=1),this.shouldDecrease(e)&&(t+=2),this.shouldIndentNextLine(e)&&(t+=4),this.shouldIgnore(e)&&(t+=8),t},e}(),f=n("/cxE"),p=function(){function e(t){var n=this;t=t||{},t.brackets=t.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],t.brackets.forEach((function(t){var i=e._createOpenBracketRegExp(t[0]),r=e._createCloseBracketRegExp(t[1]);i&&r&&n._brackets.push({open:t[0],openRegExp:i,close:t[1],closeRegExp:r})})),this._regExpRules=t.onEnterRules||[]}return e.prototype.onEnter=function(e,t,n,i){if(e>=3)for(var r=0,o=this._regExpRules.length;r<o;r++){var s=this._regExpRules[r],u=[{reg:s.beforeText,text:n},{reg:s.afterText,text:i},{reg:s.oneLineAboveText,text:t}].every((function(e){return!e.reg||e.reg.test(e.text)}));if(u)return s.action}if(e>=2&&n.length>0&&i.length>0)for(r=0,o=this._brackets.length;r<o;r++){var l=this._brackets[r];if(l.openRegExp.test(n)&&l.closeRegExp.test(i))return{indentAction:a["a"].IndentOutdent}}if(e>=2&&n.length>0)for(r=0,o=this._brackets.length;r<o;r++){l=this._brackets[r];if(l.openRegExp.test(n))return{indentAction:a["a"].Indent}}return null},e._createOpenBracketRegExp=function(t){var n=o["p"](t);return/\B/.test(n.charAt(0))||(n="\\b"+n),n+="\\s*$",e._safeRegExp(n)},e._createCloseBracketRegExp=function(t){var n=o["p"](t);return/\B/.test(n.charAt(n.length-1))||(n+="\\b"),n="^\\s*"+n,e._safeRegExp(n)},e._safeRegExp=function(e){try{return new RegExp(e)}catch(t){return Object(f["e"])(t),null}},e}(),g=function(){function e(t,n,i){this._languageIdentifier=t,this._brackets=null,this._electricCharacter=null;var r=null;n&&(r=n._conf),this._conf=e._mergeConf(r,i),this._onEnterSupport=this._conf.brackets||this._conf.indentationRules||this._conf.onEnterRules?new p(this._conf):null,this.comments=e._handleComments(this._conf),this.characterPair=new l(this._conf),this.wordDefinition=this._conf.wordPattern||s["a"],this.indentationRules=this._conf.indentationRules,this._conf.indentationRules?this.indentRulesSupport=new h(this._conf.indentationRules):this.indentRulesSupport=null,this.foldingRules=this._conf.folding||{}}return Object.defineProperty(e.prototype,"brackets",{get:function(){return!this._brackets&&this._conf.brackets&&(this._brackets=new c["b"](this._languageIdentifier,this._conf.brackets)),this._brackets},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"electricCharacter",{get:function(){return this._electricCharacter||(this._electricCharacter=new d(this.brackets)),this._electricCharacter},enumerable:!0,configurable:!0}),e.prototype.onEnter=function(e,t,n,i){return this._onEnterSupport?this._onEnterSupport.onEnter(e,t,n,i):null},e._mergeConf=function(e,t){return{comments:e?t.comments||e.comments:t.comments,brackets:e?t.brackets||e.brackets:t.brackets,wordPattern:e?t.wordPattern||e.wordPattern:t.wordPattern,indentationRules:e?t.indentationRules||e.indentationRules:t.indentationRules,onEnterRules:e?t.onEnterRules||e.onEnterRules:t.onEnterRules,autoClosingPairs:e?t.autoClosingPairs||e.autoClosingPairs:t.autoClosingPairs,surroundingPairs:e?t.surroundingPairs||e.surroundingPairs:t.surroundingPairs,autoCloseBefore:e?t.autoCloseBefore||e.autoCloseBefore:t.autoCloseBefore,folding:e?t.folding||e.folding:t.folding,__electricCharacterSupport:e?t.__electricCharacterSupport||e.__electricCharacterSupport:t.__electricCharacterSupport}},e._handleComments=function(e){var t=e.comments;if(!t)return null;var n={};if(t.lineComment&&(n.lineCommentToken=t.lineComment),t.blockComment){var i=t.blockComment,r=i[0],o=i[1];n.blockCommentStartToken=r,n.blockCommentEndToken=o}return n},e}(),A=function(){function e(e){this.languageIdentifier=e}return e}(),m=function(){function e(){this._entries=new Map,this._onDidChange=new i["a"],this.onDidChange=this._onDidChange.event}return e.prototype.register=function(e,t){var n=this,i=this._getRichEditSupport(e.id),o=new g(e,i,t);return this._entries.set(e.id,o),this._onDidChange.fire(new A(e)),Object(r["h"])((function(){n._entries.get(e.id)===o&&(n._entries.set(e.id,i),n._onDidChange.fire(new A(e)))}))},e.prototype._getRichEditSupport=function(e){return this._entries.get(e)},e.prototype._getElectricCharacterSupport=function(e){var t=this._getRichEditSupport(e);return t&&t.electricCharacter||null},e.prototype.getElectricCharacters=function(e){var t=this._getElectricCharacterSupport(e);return t?t.getElectricCharacters():[]},e.prototype.onElectricCharacter=function(e,t,n){var i=Object(u["a"])(t,n-1),r=this._getElectricCharacterSupport(i.languageId);return r?r.onElectricCharacter(e,i,n-i.firstCharOffset):null},e.prototype.getComments=function(e){var t=this._getRichEditSupport(e);return t&&t.comments||null},e.prototype._getCharacterPairSupport=function(e){var t=this._getRichEditSupport(e);return t&&t.characterPair||null},e.prototype.getAutoClosingPairs=function(e){var t=this._getCharacterPairSupport(e);return t?t.getAutoClosingPairs():[]},e.prototype.getAutoCloseBeforeSet=function(e){var t=this._getCharacterPairSupport(e);return t?t.getAutoCloseBeforeSet():l.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED},e.prototype.getSurroundingPairs=function(e){var t=this._getCharacterPairSupport(e);return t?t.getSurroundingPairs():[]},e.prototype.shouldAutoClosePair=function(e,t,n){var i=Object(u["a"])(t,n-1);return l.shouldAutoClosePair(e,i,n-i.firstCharOffset)},e.prototype.getWordDefinition=function(e){var t=this._getRichEditSupport(e);return t?Object(s["c"])(t.wordDefinition||null):Object(s["c"])(null)},e.prototype.getFoldingRules=function(e){var t=this._getRichEditSupport(e);return t?t.foldingRules:{}},e.prototype.getIndentRulesSupport=function(e){var t=this._getRichEditSupport(e);return t&&t.indentRulesSupport||null},e.prototype.getPrecedingValidLine=function(e,t,n){var i=e.getLanguageIdAtPosition(t,0);if(t>1){var r=void 0,o=-1;for(r=t-1;r>=1;r--){if(e.getLanguageIdAtPosition(r,0)!==i)return o;var s=e.getLineContent(r);if(!n.shouldIgnore(s)&&!/^\s+$/.test(s)&&""!==s)return r;o=r}}return-1},e.prototype.getInheritIndentForLine=function(e,t,n,i){if(void 0===i&&(i=!0),e<4)return null;var r=this.getIndentRulesSupport(t.getLanguageIdentifier().id);if(!r)return null;if(n<=1)return{indentation:"",action:null};var s=this.getPrecedingValidLine(t,n,r);if(s<0)return null;if(s<1)return{indentation:"",action:null};var u=t.getLineContent(s);if(r.shouldIncrease(u)||r.shouldIndentNextLine(u))return{indentation:o["t"](u),action:a["a"].Indent,line:s};if(r.shouldDecrease(u))return{indentation:o["t"](u),action:null,line:s};if(1===s)return{indentation:o["t"](t.getLineContent(s)),action:null,line:s};var l=s-1,c=r.getIndentMetadata(t.getLineContent(l));if(!(3&c)&&4&c){for(var d=0,h=l-1;h>0;h--)if(!r.shouldIndentNextLine(t.getLineContent(h))){d=h;break}return{indentation:o["t"](t.getLineContent(d+1)),action:null,line:d+1}}if(i)return{indentation:o["t"](t.getLineContent(s)),action:null,line:s};for(h=s;h>0;h--){var f=t.getLineContent(h);if(r.shouldIncrease(f))return{indentation:o["t"](f),action:a["a"].Indent,line:h};if(r.shouldIndentNextLine(f)){d=0;for(var p=h-1;p>0;p--)if(!r.shouldIndentNextLine(t.getLineContent(h))){d=p;break}return{indentation:o["t"](t.getLineContent(d+1)),action:null,line:d+1}}if(r.shouldDecrease(f))return{indentation:o["t"](f),action:null,line:h}}return{indentation:o["t"](t.getLineContent(1)),action:null,line:1}},e.prototype.getGoodIndentForLine=function(e,t,n,i,r){if(e<4)return null;var s=this._getRichEditSupport(n);if(!s)return null;var u=this.getIndentRulesSupport(n);if(!u)return null;var l=this.getInheritIndentForLine(e,t,i),c=t.getLineContent(i);if(l){var d=l.line;if(void 0!==d){var h=s.onEnter(e,"",t.getLineContent(d),"");if(h){var f=o["t"](t.getLineContent(d));return h.removeText&&(f=f.substring(0,f.length-h.removeText)),h.indentAction===a["a"].Indent||h.indentAction===a["a"].IndentOutdent?f=r.shiftIndent(f):h.indentAction===a["a"].Outdent&&(f=r.unshiftIndent(f)),u.shouldDecrease(c)&&(f=r.unshiftIndent(f)),h.appendText&&(f+=h.appendText),o["t"](f)}}return u.shouldDecrease(c)?l.action===a["a"].Indent?l.indentation:r.unshiftIndent(l.indentation):l.action===a["a"].Indent?r.shiftIndent(l.indentation):l.indentation}return null},e.prototype.getIndentForEnter=function(e,t,n,i){if(e<4)return null;t.forceTokenization(n.startLineNumber);var r,s,l=t.getLineTokens(n.startLineNumber),c=Object(u["a"])(l,n.startColumn-1),d=c.getLineContent(),h=!1;if(c.firstCharOffset>0&&l.getLanguageId(0)!==c.languageId?(h=!0,r=d.substr(0,n.startColumn-1-c.firstCharOffset)):r=l.getLineContent().substring(0,n.startColumn-1),n.isEmpty())s=d.substr(n.startColumn-1-c.firstCharOffset);else{var f=this.getScopedLineTokens(t,n.endLineNumber,n.endColumn);s=f.getLineContent().substr(n.endColumn-1-c.firstCharOffset)}var p=this.getIndentRulesSupport(c.languageId);if(!p)return null;var g=r,A=o["t"](r),m={getLineTokens:function(e){return t.getLineTokens(e)},getLanguageIdentifier:function(){return t.getLanguageIdentifier()},getLanguageIdAtPosition:function(e,n){return t.getLanguageIdAtPosition(e,n)},getLineContent:function(e){return e===n.startLineNumber?g:t.getLineContent(e)}},v=o["t"](l.getLineContent()),_=this.getInheritIndentForLine(e,m,n.startLineNumber+1);if(!_){var y=h?v:A;return{beforeEnter:y,afterEnter:y}}var b=h?v:_.indentation;return _.action===a["a"].Indent&&(b=i.shiftIndent(b)),p.shouldDecrease(s)&&(b=i.unshiftIndent(b)),{beforeEnter:h?v:A,afterEnter:b}},e.prototype.getIndentActionForType=function(e,t,n,i,r){if(e<4)return null;var o=this.getScopedLineTokens(t,n.startLineNumber,n.startColumn),s=this.getIndentRulesSupport(o.languageId);if(!s)return null;var u,l=o.getLineContent(),c=l.substr(0,n.startColumn-1-o.firstCharOffset);if(n.isEmpty())u=l.substr(n.startColumn-1-o.firstCharOffset);else{var d=this.getScopedLineTokens(t,n.endLineNumber,n.endColumn);u=d.getLineContent().substr(n.endColumn-1-o.firstCharOffset)}if(!s.shouldDecrease(c+u)&&s.shouldDecrease(c+i+u)){var h=this.getInheritIndentForLine(e,t,n.startLineNumber,!1);if(!h)return null;var f=h.indentation;return h.action!==a["a"].Indent&&(f=r.unshiftIndent(f)),f}return null},e.prototype.getIndentMetadata=function(e,t){var n=this.getIndentRulesSupport(e.getLanguageIdentifier().id);return n?t<1||t>e.getLineCount()?null:n.getIndentMetadata(e.getLineContent(t)):null},e.prototype.getEnterAction=function(e,t,n){var i=this.getScopedLineTokens(t,n.startLineNumber,n.startColumn),r=this._getRichEditSupport(i.languageId);if(!r)return null;var o,s=i.getLineContent(),u=s.substr(0,n.startColumn-1-i.firstCharOffset);if(n.isEmpty())o=s.substr(n.startColumn-1-i.firstCharOffset);else{var l=this.getScopedLineTokens(t,n.endLineNumber,n.endColumn);o=l.getLineContent().substr(n.endColumn-1-i.firstCharOffset)}var c="";if(n.startLineNumber>1&&0===i.firstCharOffset){var d=this.getScopedLineTokens(t,n.startLineNumber-1);d.languageId===i.languageId&&(c=d.getLineContent())}var h=r.onEnter(e,c,u,o);if(!h)return null;var f=h.indentAction,p=h.appendText,g=h.removeText||0;p||(p=f===a["a"].Indent||f===a["a"].IndentOutdent?"\t":"");var A=this.getIndentationAtPosition(t,n.startLineNumber,n.startColumn);return g&&(A=A.substring(0,A.length-g)),{indentAction:f,appendText:p,removeText:g,indentation:A}},e.prototype.getIndentationAtPosition=function(e,t,n){var i=e.getLineContent(t),r=o["t"](i);return r.length>n-1&&(r=r.substring(0,n-1)),r},e.prototype.getScopedLineTokens=function(e,t,n){e.forceTokenization(t);var i=e.getLineTokens(t),r="undefined"===typeof n?e.getLineMaxColumn(t)-1:n-1;return Object(u["a"])(i,r)},e.prototype.getBracketsSupport=function(e){var t=this._getRichEditSupport(e);return t&&t.brackets||null},e}(),v=new m},"ci+S":function(e,t,n){},cl4r:function(e,t,n){},cldp:function(e,t,n){"use strict";n.r(t);var i=n("+hIS");Object(i["a"])({id:"javascript",extensions:[".js",".es6",".jsx"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:function(){return n.e(137).then(n.bind(null,"7Xl7"))}})},cqdO:function(e,t,n){"use strict";n.d(t,"a",(function(){return M})),n.d(t,"f",(function(){return R})),n.d(t,"e",(function(){return P})),n.d(t,"d",(function(){return Q})),n.d(t,"b",(function(){return V})),n.d(t,"c",(function(){return $}));n("4rho");var i,r=n("3/fG"),o=n("pmY6"),s=n("746U"),a=n("6OMU"),u=n("ZCR3"),l=n("EffR"),c=n("MNsG"),d=n("pg8w"),h=n("uDWl"),f=n("MI8n"),p=n("4y0V"),g=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();(function(e){e["TREE"]="tree",e["FORM"]="form"})(i||(i={}));var A=function(e){function t(t,n){return e.call(this,"ListError ["+t+"] "+n)||this}return g(t,e),t}(Error),m=n("feEw"),v=n("zrhQ"),_=n("qj0h"),y=function(){function e(e){this.spliceables=e}return e.prototype.splice=function(e,t,n){this.spliceables.forEach((function(i){return i.splice(e,t,n)}))},e}(),b=n("Sdnv"),w=n("fpMC"),C=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),S=function(){return S=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},S.apply(this,arguments)},N=function(e,t,n,i){var r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},L=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i},E=function(){function e(e){this.trait=e,this.renderedElements=[]}return Object.defineProperty(e.prototype,"templateId",{get:function(){return"template:"+this.trait.trait},enumerable:!0,configurable:!0}),e.prototype.renderTemplate=function(e){return e},e.prototype.renderElement=function(e,t,n){var i=Object(a["k"])(this.renderedElements,(function(e){return e.templateData===n}));if(i>=0){var r=this.renderedElements[i];this.trait.unrender(n),r.index=t}else{r={index:t,templateData:n};this.renderedElements.push(r)}this.trait.renderIndex(t,n)},e.prototype.splice=function(e,t,n){for(var i=[],r=0,o=this.renderedElements;r<o.length;r++){var s=o[r];s.index<e?i.push(s):s.index>=e+t&&i.push({index:s.index+n-t,templateData:s.templateData})}this.renderedElements=i},e.prototype.renderIndexes=function(e){for(var t=0,n=this.renderedElements;t<n.length;t++){var i=n[t],r=i.index,o=i.templateData;e.indexOf(r)>-1&&this.trait.renderIndex(r,o)}},e.prototype.disposeTemplate=function(e){var t=Object(a["k"])(this.renderedElements,(function(t){return t.templateData===e}));t<0||this.renderedElements.splice(t,1)},e}(),x=function(){function e(e){this._trait=e,this.indexes=[],this.sortedIndexes=[],this._onChange=new f["a"],this.onChange=this._onChange.event}return Object.defineProperty(e.prototype,"trait",{get:function(){return this._trait},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"renderer",{get:function(){return new E(this)},enumerable:!0,configurable:!0}),e.prototype.splice=function(e,t,n){var i=n.length-t,r=e+t,o=L(this.sortedIndexes.filter((function(t){return t<e})),n.map((function(t,n){return t?n+e:-1})).filter((function(e){return-1!==e})),this.sortedIndexes.filter((function(e){return e>=r})).map((function(e){return e+i})));this.renderer.splice(e,t,n.length),this._set(o,o)},e.prototype.renderIndex=function(e,t){l["X"](t,this._trait,this.contains(e))},e.prototype.unrender=function(e){l["O"](e,this._trait)},e.prototype.set=function(e,t){return this._set(e,L(e).sort(X),t)},e.prototype._set=function(e,t,n){var i=this.indexes,r=this.sortedIndexes;this.indexes=e,this.sortedIndexes=t;var o=q(r,e);return this.renderer.renderIndexes(o),this._onChange.fire({indexes:e,browserEvent:n}),i},e.prototype.get=function(){return this.indexes},e.prototype.contains=function(e){return Object(a["c"])(this.sortedIndexes,e,X)>=0},e.prototype.dispose=function(){Object(o["f"])(this._onChange)},N([u["a"]],e.prototype,"renderer",null),e}(),O=function(e){function t(){return e.call(this,"focused")||this}return C(t,e),t.prototype.renderIndex=function(t,n){e.prototype.renderIndex.call(this,t,n),this.contains(t)?n.setAttribute("aria-selected","true"):n.removeAttribute("aria-selected")},t}(x),B=function(){function e(e,t,n){this.trait=e,this.view=t,this.identityProvider=n}return e.prototype.splice=function(e,t,n){var i=this;if(!this.identityProvider)return this.trait.splice(e,t,n.map((function(){return!1})));var r=this.trait.get().map((function(e){return i.identityProvider.getId(i.view.element(e)).toString()})),o=n.map((function(e){return r.indexOf(i.identityProvider.getId(e).toString())>-1}));this.trait.splice(e,t,o)},e}();function k(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName}var D,I=function(){function e(e,t,n){this.list=e,this.view=t,this.disposables=new o["b"];var i=!1!==n.multipleSelectionSupport;this.openController=n.openController||j;var r=f["b"].chain(Object(p["a"])(t.domNode,"keydown")).filter((function(e){return!k(e.target)})).map((function(e){return new h["a"](e)}));r.filter((function(e){return 3===e.keyCode})).on(this.onEnter,this,this.disposables),r.filter((function(e){return 16===e.keyCode})).on(this.onUpArrow,this,this.disposables),r.filter((function(e){return 18===e.keyCode})).on(this.onDownArrow,this,this.disposables),r.filter((function(e){return 11===e.keyCode})).on(this.onPageUpArrow,this,this.disposables),r.filter((function(e){return 12===e.keyCode})).on(this.onPageDownArrow,this,this.disposables),r.filter((function(e){return 9===e.keyCode})).on(this.onEscape,this,this.disposables),i&&r.filter((function(e){return(c["e"]?e.metaKey:e.ctrlKey)&&31===e.keyCode})).on(this.onCtrlA,this,this.disposables)}return e.prototype.onEnter=function(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection(this.list.getFocus(),e.browserEvent),this.openController.shouldOpen(e.browserEvent)&&this.list.open(this.list.getFocus(),e.browserEvent)},e.prototype.onUpArrow=function(e){e.preventDefault(),e.stopPropagation(),this.list.focusPrevious(1,!1,e.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},e.prototype.onDownArrow=function(e){e.preventDefault(),e.stopPropagation(),this.list.focusNext(1,!1,e.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},e.prototype.onPageUpArrow=function(e){e.preventDefault(),e.stopPropagation(),this.list.focusPreviousPage(e.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},e.prototype.onPageDownArrow=function(e){e.preventDefault(),e.stopPropagation(),this.list.focusNextPage(e.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},e.prototype.onCtrlA=function(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection(Object(a["u"])(this.list.length),e.browserEvent),this.view.domNode.focus()},e.prototype.onEscape=function(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection([],e.browserEvent),this.view.domNode.focus()},e.prototype.dispose=function(){this.disposables.dispose()},e}();(function(e){e[e["Idle"]=0]="Idle",e[e["Typing"]=1]="Typing"})(D||(D={}));var M=new(function(){function e(){}return e.prototype.mightProducePrintableCharacter=function(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)},e}()),F=function(){function e(e,t,n,i){this.list=e,this.view=t,this.keyboardNavigationLabelProvider=n,this.delegate=i,this.enabled=!1,this.state=D.Idle,this.automaticKeyboardNavigation=!0,this.triggered=!1,this.enabledDisposables=new o["b"],this.disposables=new o["b"],this.updateOptions(e.options)}return e.prototype.updateOptions=function(e){var t="undefined"===typeof e.enableKeyboardNavigation||!!e.enableKeyboardNavigation;t?this.enable():this.disable(),"undefined"!==typeof e.automaticKeyboardNavigation&&(this.automaticKeyboardNavigation=e.automaticKeyboardNavigation)},e.prototype.enable=function(){var e=this;if(!this.enabled){var t=f["b"].chain(Object(p["a"])(this.view.domNode,"keydown")).filter((function(e){return!k(e.target)})).filter((function(){return e.automaticKeyboardNavigation||e.triggered})).map((function(e){return new h["a"](e)})).filter((function(t){return e.delegate.mightProducePrintableCharacter(t)})).forEach((function(e){e.stopPropagation(),e.preventDefault()})).map((function(e){return e.browserEvent.key})).event,n=f["b"].debounce(t,(function(){return null}),800),i=f["b"].reduce(f["b"].any(t,n),(function(e,t){return null===t?null:(e||"")+t}));i(this.onInput,this,this.enabledDisposables),this.enabled=!0,this.triggered=!1}},e.prototype.disable=function(){this.enabled&&(this.enabledDisposables.clear(),this.enabled=!1,this.triggered=!1)},e.prototype.onInput=function(e){if(!e)return this.state=D.Idle,void(this.triggered=!1);var t=this.list.getFocus(),n=t.length>0?t[0]:0,i=this.state===D.Idle?1:0;this.state=D.Typing;for(var r=0;r<this.list.length;r++){var o=(n+r+i)%this.list.length,s=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(this.view.element(o)),a=s&&s.toString();if("undefined"===typeof a||Object(w["f"])(e,a))return this.list.setFocus([o]),void this.list.reveal(o)}},e.prototype.dispose=function(){this.disable(),this.enabledDisposables.dispose(),this.disposables.dispose()},e}(),T=function(){function e(e,t){this.list=e,this.view=t,this.disposables=new o["b"];var n=f["b"].chain(Object(p["a"])(t.domNode,"keydown")).filter((function(e){return!k(e.target)})).map((function(e){return new h["a"](e)}));n.filter((function(e){return 2===e.keyCode&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&!e.altKey})).on(this.onTab,this,this.disposables)}return e.prototype.onTab=function(e){if(e.target===this.view.domNode){var t=this.list.getFocus();if(0!==t.length){var n=this.view.domElement(t[0]);if(n){var i=n.querySelector("[tabIndex]");if(i&&i instanceof HTMLElement&&-1!==i.tabIndex){var r=window.getComputedStyle(i);"hidden"!==r.visibility&&"none"!==r.display&&(e.preventDefault(),e.stopPropagation(),i.focus())}}}}},e.prototype.dispose=function(){this.disposables.dispose()},e}();function R(e){return c["e"]?e.browserEvent.metaKey:e.browserEvent.ctrlKey}function P(e){return e.browserEvent.shiftKey}function U(e){return e instanceof MouseEvent&&2===e.button}var H={isSelectionSingleChangeEvent:R,isSelectionRangeChangeEvent:P},j={shouldOpen:function(e){return!(e instanceof MouseEvent)||!U(e)}},Q=function(){function e(e){this.list=e,this.disposables=new o["b"],this.multipleSelectionSupport=!(!1===e.options.multipleSelectionSupport),this.multipleSelectionSupport&&(this.multipleSelectionController=e.options.multipleSelectionController||H),this.openController=e.options.openController||j,this.mouseSupport="undefined"===typeof 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(d["b"].addTarget(e.getHTMLElement()))),e.onMouseClick(this.onPointer,this,this.disposables),e.onMouseMiddleClick(this.onPointer,this,this.disposables),e.onTap(this.onPointer,this,this.disposables)}return e.prototype.isSelectionSingleChangeEvent=function(e){return this.multipleSelectionController?this.multipleSelectionController.isSelectionSingleChangeEvent(e):c["e"]?e.browserEvent.metaKey:e.browserEvent.ctrlKey},e.prototype.isSelectionRangeChangeEvent=function(e){return this.multipleSelectionController?this.multipleSelectionController.isSelectionRangeChangeEvent(e):e.browserEvent.shiftKey},e.prototype.isSelectionChangeEvent=function(e){return this.isSelectionSingleChangeEvent(e)||this.isSelectionRangeChangeEvent(e)},e.prototype.onMouseDown=function(e){document.activeElement!==e.browserEvent.target&&this.list.domFocus()},e.prototype.onContextMenu=function(e){var t="undefined"===typeof e.index?[]:[e.index];this.list.setFocus(t,e.browserEvent)},e.prototype.onPointer=function(e){if(this.mouseSupport&&!k(e.browserEvent.target)){var t=this.list.getFocus()[0],n=this.list.getSelection();t=void 0===t?n[0]:t;var i=e.index;if("undefined"===typeof i)return this.list.setFocus([],e.browserEvent),void this.list.setSelection([],e.browserEvent);if(this.multipleSelectionSupport&&this.isSelectionRangeChangeEvent(e))return this.changeSelection(e,t);if(this.multipleSelectionSupport&&this.isSelectionChangeEvent(e))return this.changeSelection(e,t);this.list.setFocus([i],e.browserEvent),U(e.browserEvent)||(this.list.setSelection([i],e.browserEvent),this.openController.shouldOpen(e.browserEvent)&&this.list.open([i],e.browserEvent))}},e.prototype.onDoubleClick=function(e){if(!k(e.browserEvent.target)&&(!this.multipleSelectionSupport||!this.isSelectionChangeEvent(e))){var t=this.list.getFocus();this.list.setSelection(t,e.browserEvent),this.list.pin(t)}},e.prototype.changeSelection=function(e,t){var n=e.index;if(this.isSelectionRangeChangeEvent(e)&&void 0!==t){var i=Math.min(t,n),r=Math.max(t,n),o=Object(a["u"])(i,r+1),s=this.list.getSelection(),u=K(q(s,[t]),t);if(0===u.length)return;var l=q(o,G(s,u));this.list.setSelection(l,e.browserEvent)}else if(this.isSelectionSingleChangeEvent(e)){s=this.list.getSelection(),l=s.filter((function(e){return e!==n}));this.list.setFocus([n]),s.length===l.length?this.list.setSelection(L(l,[n]),e.browserEvent):this.list.setSelection(l,e.browserEvent)}},e.prototype.dispose=function(){this.disposables.dispose()},e}(),V=function(){function e(e,t){this.styleElement=e,this.selectorSuffix=t}return e.prototype.style=function(e){var t=this.selectorSuffix&&"."+this.selectorSuffix,n=[];e.listBackground&&(e.listBackground.isOpaque()?n.push(".monaco-list"+t+" .monaco-list-rows { background: "+e.listBackground+"; }"):c["e"]||console.warn("List with id '"+this.selectorSuffix+"' was styled with a non-opaque background color. This will break sub-pixel antialiasing.")),e.listFocusBackground&&(n.push(".monaco-list"+t+":focus .monaco-list-row.focused { background-color: "+e.listFocusBackground+"; }"),n.push(".monaco-list"+t+":focus .monaco-list-row.focused:hover { background-color: "+e.listFocusBackground+"; }")),e.listFocusForeground&&n.push(".monaco-list"+t+":focus .monaco-list-row.focused { color: "+e.listFocusForeground+"; }"),e.listActiveSelectionBackground&&(n.push(".monaco-list"+t+":focus .monaco-list-row.selected { background-color: "+e.listActiveSelectionBackground+"; }"),n.push(".monaco-list"+t+":focus .monaco-list-row.selected:hover { background-color: "+e.listActiveSelectionBackground+"; }")),e.listActiveSelectionForeground&&n.push(".monaco-list"+t+":focus .monaco-list-row.selected { color: "+e.listActiveSelectionForeground+"; }"),e.listFocusAndSelectionBackground&&n.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&&n.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.listInactiveFocusBackground&&(n.push(".monaco-list"+t+" .monaco-list-row.focused { background-color: "+e.listInactiveFocusBackground+"; }"),n.push(".monaco-list"+t+" .monaco-list-row.focused:hover { background-color: "+e.listInactiveFocusBackground+"; }")),e.listInactiveSelectionBackground&&(n.push(".monaco-list"+t+" .monaco-list-row.selected { background-color: "+e.listInactiveSelectionBackground+"; }"),n.push(".monaco-list"+t+" .monaco-list-row.selected:hover { background-color: "+e.listInactiveSelectionBackground+"; }")),e.listInactiveSelectionForeground&&n.push(".monaco-list"+t+" .monaco-list-row.selected { color: "+e.listInactiveSelectionForeground+"; }"),e.listHoverBackground&&n.push(".monaco-list"+t+":not(.drop-target) .monaco-list-row:hover:not(.selected):not(.focused) { background-color: "+e.listHoverBackground+"; }"),e.listHoverForeground&&n.push(".monaco-list"+t+" .monaco-list-row:hover:not(.selected):not(.focused) { color: "+e.listHoverForeground+"; }"),e.listSelectionOutline&&n.push(".monaco-list"+t+" .monaco-list-row.selected { outline: 1px dotted "+e.listSelectionOutline+"; outline-offset: -1px; }"),e.listFocusOutline&&n.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&&n.push(".monaco-list"+t+" .monaco-list-row.focused { outline: 1px dotted "+e.listInactiveFocusOutline+"; outline-offset: -1px; }"),e.listHoverOutline&&n.push(".monaco-list"+t+" .monaco-list-row:hover { outline: 1px dashed "+e.listHoverOutline+"; outline-offset: -1px; }"),e.listDropBackground&&n.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&&n.push(".monaco-list-type-filter { background-color: "+e.listFilterWidgetBackground+" }"),e.listFilterWidgetOutline&&n.push(".monaco-list-type-filter { border: 1px solid "+e.listFilterWidgetOutline+"; }"),e.listFilterWidgetNoMatchesOutline&&n.push(".monaco-list-type-filter.no-matches { border: 1px solid "+e.listFilterWidgetNoMatchesOutline+"; }"),e.listMatchesShadow&&n.push(".monaco-list-type-filter { box-shadow: 1px 1px 1px "+e.listMatchesShadow+"; }");var i=n.join("\n");i!==this.styleElement.innerHTML&&(this.styleElement.innerHTML=i)},e}(),W={listFocusBackground:v["a"].fromHex("#7FB0D0"),listActiveSelectionBackground:v["a"].fromHex("#0E639C"),listActiveSelectionForeground:v["a"].fromHex("#FFFFFF"),listFocusAndSelectionBackground:v["a"].fromHex("#094771"),listFocusAndSelectionForeground:v["a"].fromHex("#FFFFFF"),listInactiveSelectionBackground:v["a"].fromHex("#3F3F46"),listHoverBackground:v["a"].fromHex("#2A2D2E"),listDropBackground:v["a"].fromHex("#383B3D"),treeIndentGuidesStroke:v["a"].fromHex("#a9a9a9")},z={keyboardSupport:!0,mouseSupport:!0,multipleSelectionSupport:!0,dnd:{getDragURI:function(){return null},onDragStart:function(){},onDragOver:function(){return!1},drop:function(){}},ariaRootRole:i.TREE};function K(e,t){var n=e.indexOf(t);if(-1===n)return[];var i=[],r=n-1;while(r>=0&&e[r]===t-(n-r))i.push(e[r--]);i.reverse(),r=n;while(r<e.length&&e[r]===t+(r-n))i.push(e[r++]);return i}function q(e,t){var n=[],i=0,r=0;while(i<e.length||r<t.length)if(i>=e.length)n.push(t[r++]);else if(r>=t.length)n.push(e[i++]);else{if(e[i]===t[r]){n.push(e[i]),i++,r++;continue}e[i]<t[r]?n.push(e[i++]):n.push(t[r++])}return n}function G(e,t){var n=[],i=0,r=0;while(i<e.length||r<t.length)if(i>=e.length)n.push(t[r++]);else if(r>=t.length)n.push(e[i++]);else{if(e[i]===t[r]){i++,r++;continue}e[i]<t[r]?n.push(e[i++]):r++}return n}var X=function(e,t){return e-t},Y=function(){function e(e,t){this._templateId=e,this.renderers=t}return Object.defineProperty(e.prototype,"templateId",{get:function(){return this._templateId},enumerable:!0,configurable:!0}),e.prototype.renderTemplate=function(e){return this.renderers.map((function(t){return t.renderTemplate(e)}))},e.prototype.renderElement=function(e,t,n,i){for(var r=0,o=0,s=this.renderers;o<s.length;o++){var a=s[o];a.renderElement(e,t,n[r++],i)}},e.prototype.disposeElement=function(e,t,n,i){for(var r=0,o=0,s=this.renderers;o<s.length;o++){var a=s[o];a.disposeElement&&a.disposeElement(e,t,n[r],i),r+=1}},e.prototype.disposeTemplate=function(e){for(var t=0,n=0,i=this.renderers;n<i.length;n++){var r=i[n];r.disposeTemplate(e[t++])}},e}(),J=function(){function e(e){this.accessibilityProvider=e,this.templateId="a18n"}return e.prototype.renderTemplate=function(e){return e},e.prototype.renderElement=function(e,t,n){var i=this.accessibilityProvider.getAriaLabel(e);i?n.setAttribute("aria-label",i):n.removeAttribute("aria-label");var r=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(e);"number"===typeof r?n.setAttribute("aria-level",""+r):n.removeAttribute("aria-level")},e.prototype.disposeTemplate=function(e){},e}(),Z=function(){function e(e,t){this.list=e,this.dnd=t}return e.prototype.getDragElements=function(e){var t=this.list.getSelectedElements(),n=t.indexOf(e)>-1?t:[e];return n},e.prototype.getDragURI=function(e){return this.dnd.getDragURI(e)},e.prototype.getDragLabel=function(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e,t)},e.prototype.onDragStart=function(e,t){this.dnd.onDragStart&&this.dnd.onDragStart(e,t)},e.prototype.onDragOver=function(e,t,n,i){return this.dnd.onDragOver(e,t,n,i)},e.prototype.onDragEnd=function(e){this.dnd.onDragEnd&&this.dnd.onDragEnd(e)},e.prototype.drop=function(e,t,n,i){this.dnd.drop(e,t,n,i)},e}(),$=function(){function e(e,t,n,s,a){void 0===a&&(a=z),this.user=e,this._options=a,this.eventBufferer=new f["c"],this.disposables=new o["b"],this._onDidOpen=new f["a"],this.onDidOpen=this._onDidOpen.event,this._onDidPin=new f["a"],this.didJustPressContextMenuKey=!1,this._onDidDispose=new f["a"],this.onDidDispose=this._onDidDispose.event,this.focus=new O,this.selection=new x("selected"),Object(_["g"])(a,W,!1);var u=[this.focus.renderer,this.selection.renderer];this.accessibilityProvider=a.accessibilityProvider,this.accessibilityProvider&&(u.push(new J(this.accessibilityProvider)),this.accessibilityProvider.onDidChangeActiveDescendant&&this.accessibilityProvider.onDidChangeActiveDescendant(this.onDidChangeActiveDescendant,this,this.disposables)),s=s.map((function(e){return new Y(e.templateId,L(u,[e]))}));var c=S(S({},a),{dnd:a.dnd&&new Z(this,a.dnd)});if(this.view=new m["b"](t,n,s,c),"string"!==typeof a.ariaRole?this.view.domNode.setAttribute("role",i.TREE):this.view.domNode.setAttribute("role",a.ariaRole),a.styleController)this.styleController=a.styleController(this.view.domId);else{var d=l["v"](this.view.domNode);this.styleController=new V(d,this.view.domId)}if(this.spliceable=new y([new B(this.focus,this.view,a.identityProvider),new B(this.selection,this.view,a.identityProvider),this.view]),this.disposables.add(this.focus),this.disposables.add(this.selection),this.disposables.add(this.view),this.disposables.add(this._onDidDispose),this.onDidFocus=f["b"].map(Object(p["a"])(this.view.domNode,"focus",!0),(function(){return null})),this.onDidBlur=f["b"].map(Object(p["a"])(this.view.domNode,"blur",!0),(function(){return null})),this.disposables.add(new T(this,this.view)),"boolean"!==typeof a.keyboardSupport||a.keyboardSupport){var h=new I(this,this.view,a);this.disposables.add(h)}if(a.keyboardNavigationLabelProvider){var g=a.keyboardNavigationDelegate||M;this.typeLabelController=new F(this,this.view,a.keyboardNavigationLabelProvider,g),this.disposables.add(this.typeLabelController)}this.disposables.add(this.createMouseController(a)),this.onFocusChange(this._onFocusChange,this,this.disposables),this.onSelectionChange(this._onSelectionChange,this,this.disposables),a.ariaLabel&&this.view.domNode.setAttribute("aria-label",Object(r["a"])("aria list","{0}. Use the navigation keys to navigate.",a.ariaLabel))}return Object.defineProperty(e.prototype,"onFocusChange",{get:function(){var e=this;return f["b"].map(this.eventBufferer.wrapEvent(this.focus.onChange),(function(t){return e.toListEvent(t)}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onSelectionChange",{get:function(){var e=this;return f["b"].map(this.eventBufferer.wrapEvent(this.selection.onChange),(function(t){return e.toListEvent(t)}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"domId",{get:function(){return this.view.domId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onMouseClick",{get:function(){return this.view.onMouseClick},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onMouseDblClick",{get:function(){return this.view.onMouseDblClick},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onMouseMiddleClick",{get:function(){return this.view.onMouseMiddleClick},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onMouseDown",{get:function(){return this.view.onMouseDown},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onTouchStart",{get:function(){return this.view.onTouchStart},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onTap",{get:function(){return this.view.onTap},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onContextMenu",{get:function(){var e=this,t=f["b"].chain(Object(p["a"])(this.view.domNode,"keydown")).map((function(e){return new h["a"](e)})).filter((function(t){return e.didJustPressContextMenuKey=58===t.keyCode||t.shiftKey&&68===t.keyCode})).filter((function(e){return e.preventDefault(),e.stopPropagation(),!1})).event,n=f["b"].chain(Object(p["a"])(this.view.domNode,"keyup")).filter((function(){var t=e.didJustPressContextMenuKey;return e.didJustPressContextMenuKey=!1,t})).filter((function(){return e.getFocus().length>0&&!!e.view.domElement(e.getFocus()[0])})).map((function(t){var n=e.getFocus()[0],i=e.view.element(n),r=e.view.domElement(n);return{index:n,element:i,anchor:r,browserEvent:t}})).event,i=f["b"].chain(this.view.onContextMenu).filter((function(){return!e.didJustPressContextMenuKey})).map((function(e){var t=e.element,n=e.index,i=e.browserEvent;return{element:t,index:n,anchor:{x:i.clientX+1,y:i.clientY},browserEvent:i}})).event;return f["b"].any(t,n,i)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onKeyDown",{get:function(){return Object(p["a"])(this.view.domNode,"keydown")},enumerable:!0,configurable:!0}),e.prototype.createMouseController=function(e){return new Q(this)},e.prototype.updateOptions=function(e){void 0===e&&(e={}),this._options=S(S({},this._options),e),this.typeLabelController&&this.typeLabelController.updateOptions(this._options)},Object.defineProperty(e.prototype,"options",{get:function(){return this._options},enumerable:!0,configurable:!0}),e.prototype.splice=function(e,t,n){var i=this;if(void 0===n&&(n=[]),e<0||e>this.view.length)throw new A(this.user,"Invalid start index: "+e);if(t<0)throw new A(this.user,"Invalid delete count: "+t);0===t&&0===n.length||this.eventBufferer.bufferEvents((function(){return i.spliceable.splice(e,t,n)}))},e.prototype.rerender=function(){this.view.rerender()},e.prototype.element=function(e){return this.view.element(e)},Object.defineProperty(e.prototype,"length",{get:function(){return this.view.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contentHeight",{get:function(){return this.view.contentHeight},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scrollTop",{get:function(){return this.view.getScrollTop()},set:function(e){this.view.setScrollTop(e)},enumerable:!0,configurable:!0}),e.prototype.domFocus=function(){this.view.domNode.focus()},e.prototype.layout=function(e,t){this.view.layout(e,t)},e.prototype.setSelection=function(e,t){for(var n=0,i=e;n<i.length;n++){var r=i[n];if(r<0||r>=this.length)throw new A(this.user,"Invalid index "+r)}this.selection.set(e,t)},e.prototype.getSelection=function(){return this.selection.get()},e.prototype.getSelectedElements=function(){var e=this;return this.getSelection().map((function(t){return e.view.element(t)}))},e.prototype.setFocus=function(e,t){for(var n=0,i=e;n<i.length;n++){var r=i[n];if(r<0||r>=this.length)throw new A(this.user,"Invalid index "+r)}this.focus.set(e,t)},e.prototype.focusNext=function(e,t,n,i){if(void 0===e&&(e=1),void 0===t&&(t=!1),0!==this.length){var r=this.focus.get(),o=this.findNextIndex(r.length>0?r[0]+e:0,t,i);o>-1&&this.setFocus([o],n)}},e.prototype.focusPrevious=function(e,t,n,i){if(void 0===e&&(e=1),void 0===t&&(t=!1),0!==this.length){var r=this.focus.get(),o=this.findPreviousIndex(r.length>0?r[0]-e:0,t,i);o>-1&&this.setFocus([o],n)}},e.prototype.focusNextPage=function(e,t){var n=this,i=this.view.indexAt(this.view.getScrollTop()+this.view.renderHeight);i=0===i?0:i-1;var r=this.view.element(i),o=this.getFocusedElements()[0];if(o!==r){var s=this.findPreviousIndex(i,!1,t);s>-1&&o!==this.view.element(s)?this.setFocus([s],e):this.setFocus([i],e)}else{var a=this.view.getScrollTop();this.view.setScrollTop(a+this.view.renderHeight-this.view.elementHeight(i)),this.view.getScrollTop()!==a&&setTimeout((function(){return n.focusNextPage(e,t)}),0)}},e.prototype.focusPreviousPage=function(e,t){var n,i=this,r=this.view.getScrollTop();n=0===r?this.view.indexAt(r):this.view.indexAfter(r-1);var o=this.view.element(n),s=this.getFocusedElements()[0];if(s!==o){var a=this.findNextIndex(n,!1,t);a>-1&&s!==this.view.element(a)?this.setFocus([a],e):this.setFocus([n],e)}else{var u=r;this.view.setScrollTop(r-this.view.renderHeight),this.view.getScrollTop()!==u&&setTimeout((function(){return i.focusPreviousPage(e,t)}),0)}},e.prototype.focusLast=function(e,t){if(0!==this.length){var n=this.findPreviousIndex(this.length-1,!1,t);n>-1&&this.setFocus([n],e)}},e.prototype.focusFirst=function(e,t){if(0!==this.length){var n=this.findNextIndex(0,!1,t);n>-1&&this.setFocus([n],e)}},e.prototype.findNextIndex=function(e,t,n){void 0===t&&(t=!1);for(var i=0;i<this.length;i++){if(e>=this.length&&!t)return-1;if(e%=this.length,!n||n(this.element(e)))return e;e++}return-1},e.prototype.findPreviousIndex=function(e,t,n){void 0===t&&(t=!1);for(var i=0;i<this.length;i++){if(e<0&&!t)return-1;if(e=(this.length+e%this.length)%this.length,!n||n(this.element(e)))return e;e--}return-1},e.prototype.getFocus=function(){return this.focus.get()},e.prototype.getFocusedElements=function(){var e=this;return this.getFocus().map((function(t){return e.view.element(t)}))},e.prototype.reveal=function(e,t){if(e<0||e>=this.length)throw new A(this.user,"Invalid index "+e);var n=this.view.getScrollTop(),i=this.view.elementTop(e),r=this.view.elementHeight(e);if(Object(s["h"])(t)){var o=r-this.view.renderHeight;this.view.setScrollTop(o*Object(b["a"])(t,0,1)+i)}else{var a=i+r,u=n+this.view.renderHeight;i<n&&a>=u||(i<n?this.view.setScrollTop(i):a>=u&&this.view.setScrollTop(a-this.view.renderHeight))}},e.prototype.getRelativeTop=function(e){if(e<0||e>=this.length)throw new A(this.user,"Invalid index "+e);var t=this.view.getScrollTop(),n=this.view.elementTop(e),i=this.view.elementHeight(e);if(n<t||n+i>t+this.view.renderHeight)return null;var r=i-this.view.renderHeight;return Math.abs((t-n)/r)},e.prototype.getHTMLElement=function(){return this.view.domNode},e.prototype.open=function(e,t){for(var n=this,i=0,r=e;i<r.length;i++){var o=r[i];if(o<0||o>=this.length)throw new A(this.user,"Invalid index "+o)}this._onDidOpen.fire({indexes:e,elements:e.map((function(e){return n.view.element(e)})),browserEvent:t})},e.prototype.pin=function(e,t){for(var n=this,i=0,r=e;i<r.length;i++){var o=r[i];if(o<0||o>=this.length)throw new A(this.user,"Invalid index "+o)}this._onDidPin.fire({indexes:e,elements:e.map((function(e){return n.view.element(e)})),browserEvent:t})},e.prototype.style=function(e){this.styleController.style(e)},e.prototype.toListEvent=function(e){var t=this,n=e.indexes,i=e.browserEvent;return{indexes:n,elements:n.map((function(e){return t.view.element(e)})),browserEvent:i}},e.prototype._onFocusChange=function(){var e=this.focus.get();l["X"](this.view.domNode,"element-focused",e.length>0),this.onDidChangeActiveDescendant()},e.prototype.onDidChangeActiveDescendant=function(){var e,t=this.focus.get();if(t.length>0){var n=void 0;(null===(e=this.accessibilityProvider)||void 0===e?void 0:e.getActiveDescendantId)&&(n=this.accessibilityProvider.getActiveDescendantId(this.view.element(t[0]))),this.view.domNode.setAttribute("aria-activedescendant",n||this.view.getElementDomId(t[0]))}else this.view.domNode.removeAttribute("aria-activedescendant")},e.prototype._onSelectionChange=function(){var e=this.selection.get();l["X"](this.view.domNode,"selection-none",0===e.length),l["X"](this.view.domNode,"selection-single",1===e.length),l["X"](this.view.domNode,"selection-multiple",e.length>1)},e.prototype.dispose=function(){this._onDidDispose.fire(),this.disposables.dispose(),this._onDidOpen.dispose(),this._onDidPin.dispose(),this._onDidDispose.dispose()},N([u["a"]],e.prototype,"onFocusChange",null),N([u["a"]],e.prototype,"onSelectionChange",null),N([u["a"]],e.prototype,"onContextMenu",null),e}()},dBaI:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var i=n("N0LK"),r=function(){function e(e,t,n,i){this.startColumn=e,this.endColumn=t,this.className=n,this.type=i}return e._equals=function(e,t){return e.startColumn===t.startColumn&&e.endColumn===t.endColumn&&e.className===t.className&&e.type===t.type},e.equalsArr=function(t,n){var i=t.length,r=n.length;if(i!==r)return!1;for(var o=0;o<i;o++)if(!e._equals(t[o],n[o]))return!1;return!0},e.filter=function(t,n,i,r){if(0===t.length)return[];for(var o=[],s=0,a=0,u=t.length;a<u;a++){var l=t[a],c=l.range;if(!(c.endLineNumber<n||c.startLineNumber>n)&&(!c.isEmpty()||0!==l.type&&3!==l.type)){var d=c.startLineNumber===n?c.startColumn:i,h=c.endLineNumber===n?c.endColumn:r;o[s++]=new e(d,h,l.inlineClassName,l.type)}}return o},e.compare=function(e,t){return e.startColumn===t.startColumn?e.endColumn===t.endColumn?e.className<t.className?-1:e.className>t.className?1:0:e.endColumn-t.endColumn:e.startColumn-t.startColumn},e}(),o=function(){function e(e,t,n){this.startOffset=e,this.endOffset=t,this.className=n}return e}(),s=function(){function e(){this.stopOffsets=[],this.classNames=[],this.count=0}return e.prototype.consumeLowerThan=function(e,t,n){while(this.count>0&&this.stopOffsets[0]<e){var i=0;while(i+1<this.count&&this.stopOffsets[i]===this.stopOffsets[i+1])i++;n.push(new o(t,this.stopOffsets[i],this.classNames.join(" "))),t=this.stopOffsets[i]+1,this.stopOffsets.splice(0,i+1),this.classNames.splice(0,i+1),this.count-=i+1}return this.count>0&&t<e&&(n.push(new o(t,e-1,this.classNames.join(" "))),t=e),t},e.prototype.insert=function(e,t){if(0===this.count||this.stopOffsets[this.count-1]<=e)this.stopOffsets.push(e),this.classNames.push(t);else for(var n=0;n<this.count;n++)if(this.stopOffsets[n]>=e){this.stopOffsets.splice(n,0,e),this.classNames.splice(n,0,t);break}this.count++},e}(),a=function(){function e(){}return e.normalize=function(e,t){if(0===t.length)return[];for(var n=[],r=new s,o=0,a=0,u=t.length;a<u;a++){var l=t[a],c=l.startColumn,d=l.endColumn,h=l.className;if(c>1){var f=e.charCodeAt(c-2);i["z"](f)&&c--}if(d>1){f=e.charCodeAt(d-2);i["z"](f)&&d--}var p=c-1,g=d-2;o=r.consumeLowerThan(p,o,n),0===r.count&&(o=p),r.insert(g,h)}return r.consumeLowerThan(1073741824,o,n),n},e}()},dFcq:function(e,t,n){},dgXF:function(e,t,n){"use strict";n.r(t),n.d(t,"FoldingController",(function(){return ne})),n.d(t,"foldBackgroundBackground",(function(){return me}));n("CjOT");var i=n("3/fG"),r=n("746U"),o=n("N0LK"),s=n("X+cX"),a=n("/kV6"),u=n("pmY6"),l=n("sswD"),c=n("MI8n"),d=65535,h=16777215,f=4278190080,p=function(){function e(e,t,n){if(e.length!==t.length||e.length>d)throw new Error("invalid startIndexes or endIndexes size");this._startIndexes=e,this._endIndexes=t,this._collapseStates=new Uint32Array(Math.ceil(e.length/32)),this._types=n,this._parentsComputed=!1}return e.prototype.ensureParentIndices=function(){var e=this;if(!this._parentsComputed){this._parentsComputed=!0;for(var t=[],n=function(n,i){var r=t[t.length-1];return e.getStartLineNumber(r)<=n&&e.getEndLineNumber(r)>=i},i=0,r=this._startIndexes.length;i<r;i++){var o=this._startIndexes[i],s=this._endIndexes[i];if(o>h||s>h)throw new Error("startLineNumber or endLineNumber must not exceed "+h);while(t.length>0&&!n(o,s))t.pop();var a=t.length>0?t[t.length-1]:-1;t.push(i),this._startIndexes[i]=o+((255&a)<<24),this._endIndexes[i]=s+((65280&a)<<16)}}},Object.defineProperty(e.prototype,"length",{get:function(){return this._startIndexes.length},enumerable:!0,configurable:!0}),e.prototype.getStartLineNumber=function(e){return this._startIndexes[e]&h},e.prototype.getEndLineNumber=function(e){return this._endIndexes[e]&h},e.prototype.getType=function(e){return this._types?this._types[e]:void 0},e.prototype.hasTypes=function(){return!!this._types},e.prototype.isCollapsed=function(e){var t=e/32|0,n=e%32;return 0!==(this._collapseStates[t]&1<<n)},e.prototype.setCollapsed=function(e,t){var n=e/32|0,i=e%32,r=this._collapseStates[n];this._collapseStates[n]=t?r|1<<i:r&~(1<<i)},e.prototype.toRegion=function(e){return new g(this,e)},e.prototype.getParentIndex=function(e){this.ensureParentIndices();var t=((this._startIndexes[e]&f)>>>24)+((this._endIndexes[e]&f)>>>16);return t===d?-1:t},e.prototype.contains=function(e,t){return this.getStartLineNumber(e)<=t&&this.getEndLineNumber(e)>=t},e.prototype.findIndex=function(e){var t=0,n=this._startIndexes.length;if(0===n)return-1;while(t<n){var i=Math.floor((t+n)/2);e<this.getStartLineNumber(i)?n=i:t=i+1}return t-1},e.prototype.findRange=function(e){var t=this.findIndex(e);if(t>=0){var n=this.getEndLineNumber(t);if(n>=e)return t;t=this.getParentIndex(t);while(-1!==t){if(this.contains(t,e))return t;t=this.getParentIndex(t)}}return-1},e.prototype.toString=function(){for(var e=[],t=0;t<this.length;t++)e[t]="["+(this.isCollapsed(t)?"+":"-")+"] "+this.getStartLineNumber(t)+"/"+this.getEndLineNumber(t);return e.join(", ")},e}(),g=function(){function e(e,t){this.ranges=e,this.index=t}return Object.defineProperty(e.prototype,"startLineNumber",{get:function(){return this.ranges.getStartLineNumber(this.index)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endLineNumber",{get:function(){return this.ranges.getEndLineNumber(this.index)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"regionIndex",{get:function(){return this.index},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentIndex",{get:function(){return this.ranges.getParentIndex(this.index)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isCollapsed",{get:function(){return this.ranges.isCollapsed(this.index)},enumerable:!0,configurable:!0}),e.prototype.containedBy=function(e){return e.startLineNumber<=this.startLineNumber&&e.endLineNumber>=this.endLineNumber},e.prototype.containsLine=function(e){return this.startLineNumber<=e&&e<=this.endLineNumber},e}(),A=function(){function e(e,t){this._updateEventEmitter=new c["a"],this.onDidChange=this._updateEventEmitter.event,this._textModel=e,this._decorationProvider=t,this._regions=new p(new Uint32Array(0),new Uint32Array(0)),this._editorDecorationIds=[],this._isInitialized=!1}return Object.defineProperty(e.prototype,"regions",{get:function(){return this._regions},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textModel",{get:function(){return this._textModel},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isInitialized",{get:function(){return this._isInitialized},enumerable:!0,configurable:!0}),e.prototype.toggleCollapseState=function(e){var t=this;if(e.length){var n={};this._decorationProvider.changeDecorations((function(i){for(var r=0,o=e;r<o.length;r++){var s=o[r],a=s.regionIndex,u=t._editorDecorationIds[a];if(u&&!n[u]){n[u]=!0;var l=!t._regions.isCollapsed(a);t._regions.setCollapsed(a,l),i.changeDecorationOptions(u,t._decorationProvider.getDecorationOption(l))}}})),this._updateEventEmitter.fire({model:this,collapseStateChanged:e})}},e.prototype.update=function(e,t){var n=this;void 0===t&&(t=[]);var i=[],r=function(e,n){for(var i=0,r=t;i<r.length;i++){var o=r[i];if(e<o&&o<=n)return!0}return!1},o=function(t,o){var s=e.getStartLineNumber(t);o&&r(s,e.getEndLineNumber(t))&&(o=!1),e.setCollapsed(t,o);var a=n._textModel.getLineMaxColumn(s),u={startLineNumber:s,startColumn:a,endLineNumber:s,endColumn:a};i.push({range:u,options:n._decorationProvider.getDecorationOption(o)})},s=0,a=function(){while(s<n._regions.length){var e=n._regions.isCollapsed(s);if(s++,e)return s-1}return-1},u=0,l=a();while(-1!==l&&u<e.length){var c=this._textModel.getDecorationRange(this._editorDecorationIds[l]);if(c){var d=c.startLineNumber;if(this._textModel.getLineMaxColumn(d)===c.startColumn)while(u<e.length){var h=e.getStartLineNumber(u);if(!(d>=h))break;o(u,d===h),u++}}l=a()}while(u<e.length)o(u,!1),u++;this._editorDecorationIds=this._decorationProvider.deltaDecorations(this._editorDecorationIds,i),this._regions=e,this._isInitialized=!0,this._updateEventEmitter.fire({model:this})},e.prototype.getMemento=function(){for(var e=[],t=0;t<this._regions.length;t++)if(this._regions.isCollapsed(t)){var n=this._textModel.getDecorationRange(this._editorDecorationIds[t]);if(n){var i=n.startLineNumber,r=n.endLineNumber+this._regions.getEndLineNumber(t)-this._regions.getStartLineNumber(t);e.push({startLineNumber:i,endLineNumber:r})}}if(e.length>0)return e},e.prototype.applyMemento=function(e){if(Array.isArray(e)){for(var t=[],n=0,i=e;n<i.length;n++){var r=i[n],o=this.getRegionAtLine(r.startLineNumber);o&&!o.isCollapsed&&t.push(o)}this.toggleCollapseState(t)}},e.prototype.dispose=function(){this._decorationProvider.deltaDecorations(this._editorDecorationIds,[])},e.prototype.getAllRegionsAtLine=function(e,t){var n=[];if(this._regions){var i=this._regions.findRange(e),r=1;while(i>=0){var o=this._regions.toRegion(i);t&&!t(o,r)||n.push(o),r++,i=o.parentIndex}}return n},e.prototype.getRegionAtLine=function(e){if(this._regions){var t=this._regions.findRange(e);if(t>=0)return this._regions.toRegion(t)}return null},e.prototype.getRegionsInside=function(e,t){var n=[],i=e?e.regionIndex+1:0,r=e?e.endLineNumber:Number.MAX_VALUE;if(t&&2===t.length)for(var o=[],s=i,a=this._regions.length;s<a;s++){var u=this._regions.toRegion(s);if(!(this._regions.getStartLineNumber(s)<r))break;while(o.length>0&&!u.containedBy(o[o.length-1]))o.pop();o.push(u),t(u,o.length)&&n.push(u)}else for(s=i,a=this._regions.length;s<a;s++){u=this._regions.toRegion(s);if(!(this._regions.getStartLineNumber(s)<r))break;t&&!t(u)||n.push(u)}return n},e}();function m(e,t,n){for(var i=[],r=function(n){var r=e.getRegionAtLine(n);if(r){var o=!r.isCollapsed;if(i.push(r),t>1){var s=e.getRegionsInside(r,(function(e,n){return e.isCollapsed!==o&&n<t}));i.push.apply(i,s)}}},o=0,s=n;o<s.length;o++){var a=s[o];r(a)}e.toggleCollapseState(i)}function v(e,t,n,i){void 0===n&&(n=Number.MAX_VALUE);var r=[];if(i&&i.length>0)for(var o=0,s=i;o<s.length;o++){var a=s[o],u=e.getRegionAtLine(a);if(u&&(u.isCollapsed!==t&&r.push(u),n>1)){var l=e.getRegionsInside(u,(function(e,i){return e.isCollapsed!==t&&i<n}));r.push.apply(r,l)}}else{l=e.getRegionsInside(null,(function(e,i){return e.isCollapsed!==t&&i<n}));r.push.apply(r,l)}e.toggleCollapseState(r)}function _(e,t,n,i){for(var r=[],o=0,s=i;o<s.length;o++){var a=s[o],u=e.getAllRegionsAtLine(a,(function(e,i){return e.isCollapsed!==t&&i<=n}));r.push.apply(r,u)}e.toggleCollapseState(r)}function y(e,t,n){for(var i=[],r=0,o=n;r<o.length;r++){var s=o[r],a=e.getAllRegionsAtLine(s,(function(e){return e.isCollapsed!==t}));a.length>0&&i.push(a[0])}e.toggleCollapseState(i)}function b(e,t,n,i){var r=function(e,r){return r===t&&e.isCollapsed!==n&&!i.some((function(t){return e.containsLine(t)}))},o=e.getRegionsInside(null,r);e.toggleCollapseState(o)}function w(e,t,n){for(var i=e.textModel,r=e.regions,o=[],s=r.length-1;s>=0;s--)if(n!==r.isCollapsed(s)){var a=r.getStartLineNumber(s);t.test(i.getLineContent(a))&&o.push(r.toRegion(s))}e.toggleCollapseState(o)}function C(e,t,n){for(var i=e.regions,r=[],o=i.length-1;o>=0;o--)n!==i.isCollapsed(o)&&t===i.getType(o)&&r.push(i.toRegion(o));e.toggleCollapseState(r)}var S=n("tX9W"),N=function(){function e(e){this.editor=e,this.autoHideFoldingControls=!0,this.showFoldingHighlights=!0}return e.prototype.getDecorationOption=function(t){return t?this.showFoldingHighlights?e.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION:e.COLLAPSED_VISUAL_DECORATION:this.autoHideFoldingControls?e.EXPANDED_AUTO_HIDE_VISUAL_DECORATION:e.EXPANDED_VISUAL_DECORATION},e.prototype.deltaDecorations=function(e,t){return this.editor.deltaDecorations(e,t)},e.prototype.changeDecorations=function(e){return this.editor.changeDecorations(e)},e.COLLAPSED_VISUAL_DECORATION=S["a"].register({stickiness:1,afterContentClassName:"inline-folded",linesDecorationsClassName:"codicon codicon-chevron-right"}),e.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION=S["a"].register({stickiness:1,afterContentClassName:"inline-folded",className:"folded-background",isWholeLine:!0,linesDecorationsClassName:"codicon codicon-chevron-right"}),e.EXPANDED_AUTO_HIDE_VISUAL_DECORATION=S["a"].register({stickiness:1,linesDecorationsClassName:"codicon codicon-chevron-down"}),e.EXPANDED_VISUAL_DECORATION=S["a"].register({stickiness:1,linesDecorationsClassName:"codicon codicon-chevron-down alwaysShowFoldIcons"}),e}(),L=n("wQH0"),E=n("aokT"),x=n("6OMU"),O=function(){function e(e){var t=this;this._updateEventEmitter=new c["a"],this._foldingModel=e,this._foldingModelListener=e.onDidChange((function(e){return t.updateHiddenRanges()})),this._hiddenRanges=[],e.regions.length&&this.updateHiddenRanges()}return Object.defineProperty(e.prototype,"onDidChange",{get:function(){return this._updateEventEmitter.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hiddenRanges",{get:function(){return this._hiddenRanges},enumerable:!0,configurable:!0}),e.prototype.updateHiddenRanges=function(){for(var e=!1,t=[],n=0,i=0,r=Number.MAX_VALUE,o=-1,s=this._foldingModel.regions;n<s.length;n++)if(s.isCollapsed(n)){var a=s.getStartLineNumber(n)+1,u=s.getEndLineNumber(n);r<=a&&u<=o||(!e&&i<this._hiddenRanges.length&&this._hiddenRanges[i].startLineNumber===a&&this._hiddenRanges[i].endLineNumber===u?(t.push(this._hiddenRanges[i]),i++):(e=!0,t.push(new E["a"](a,1,u,1))),r=a,o=u)}(e||i<this._hiddenRanges.length)&&this.applyHiddenRanges(t)},e.prototype.applyMemento=function(e){if(!Array.isArray(e)||0===e.length)return!1;for(var t=[],n=0,i=e;n<i.length;n++){var r=i[n];if(!r.startLineNumber||!r.endLineNumber)return!1;t.push(new E["a"](r.startLineNumber+1,1,r.endLineNumber,1))}return this.applyHiddenRanges(t),!0},e.prototype.getMemento=function(){return this._hiddenRanges.map((function(e){return{startLineNumber:e.startLineNumber-1,endLineNumber:e.endLineNumber}}))},e.prototype.applyHiddenRanges=function(e){this._hiddenRanges=e,this._updateEventEmitter.fire(e)},e.prototype.hasRanges=function(){return this._hiddenRanges.length>0},e.prototype.isHidden=function(e){return null!==k(this._hiddenRanges,e)},e.prototype.adjustSelections=function(e){for(var t=this,n=!1,i=this._foldingModel.textModel,r=null,o=function(e){return r&&B(e,r)||(r=k(t._hiddenRanges,e)),r?r.startLineNumber-1:null},s=0,a=e.length;s<a;s++){var u=e[s],l=o(u.startLineNumber);l&&(u=u.setStartPosition(l,i.getLineMaxColumn(l)),n=!0);var c=o(u.endLineNumber);c&&(u=u.setEndPosition(c,i.getLineMaxColumn(c)),n=!0),e[s]=u}return n},e.prototype.dispose=function(){this.hiddenRanges.length>0&&(this._hiddenRanges=[],this._updateEventEmitter.fire(this._hiddenRanges)),this._foldingModelListener&&(this._foldingModelListener.dispose(),this._foldingModelListener=null)},e}();function B(e,t){return e>=t.startLineNumber&&e<=t.endLineNumber}function k(e,t){var n=Object(x["i"])(e,(function(e){return t<e.startLineNumber}))-1;return n>=0&&e[n].endLineNumber>=t?e[n]:null}var D=n("cMvZ"),I=5e3,M="indent",F=function(){function e(e){this.editorModel=e,this.id=M}return e.prototype.dispose=function(){},e.prototype.compute=function(e){var t=D["a"].getFoldingRules(this.editorModel.getLanguageIdentifier().id),n=t&&!!t.offSide,i=t&&t.markers;return Promise.resolve(R(this.editorModel,n,i))},e}(),T=function(){function e(e){this._startIndexes=[],this._endIndexes=[],this._indentOccurrences=[],this._length=0,this._foldingRangesLimit=e}return e.prototype.insertFirst=function(e,t,n){if(!(e>h||t>h)){var i=this._length;this._startIndexes[i]=e,this._endIndexes[i]=t,this._length++,n<1e3&&(this._indentOccurrences[n]=(this._indentOccurrences[n]||0)+1)}},e.prototype.toIndentRanges=function(e){if(this._length<=this._foldingRangesLimit){for(var t=new Uint32Array(this._length),n=new Uint32Array(this._length),i=this._length-1,r=0;i>=0;i--,r++)t[r]=this._startIndexes[i],n[r]=this._endIndexes[i];return new p(t,n)}var o=0,s=this._indentOccurrences.length;for(i=0;i<this._indentOccurrences.length;i++){var a=this._indentOccurrences[i];if(a){if(a+o>this._foldingRangesLimit){s=i;break}o+=a}}var u=e.getOptions().tabSize;for(t=new Uint32Array(this._foldingRangesLimit),n=new Uint32Array(this._foldingRangesLimit),i=this._length-1,r=0;i>=0;i--){var l=this._startIndexes[i],c=e.getLineContent(l),d=S["b"].computeIndentLevel(c,u);(d<s||d===s&&o++<this._foldingRangesLimit)&&(t[r]=l,n[r]=this._endIndexes[i],r++)}return new p(t,n)},e}();function R(e,t,n,i){void 0===i&&(i=I);var r=e.getOptions().tabSize,o=new T(i),s=void 0;n&&(s=new RegExp("("+n.start.source+")|(?:"+n.end.source+")"));var a=[],u=e.getLineCount()+1;a.push({indent:-1,endAbove:u,line:u});for(var l=e.getLineCount();l>0;l--){var c=e.getLineContent(l),d=S["b"].computeIndentLevel(c,r),h=a[a.length-1];if(-1!==d){var f=void 0;if(s&&(f=c.match(s))){if(!f[1]){a.push({indent:-2,endAbove:l,line:l});continue}var p=a.length-1;while(p>0&&-2!==a[p].indent)p--;if(p>0){a.length=p+1,h=a[p],o.insertFirst(l,h.line,d),h.line=l,h.indent=d,h.endAbove=l;continue}}if(h.indent>d){do{a.pop(),h=a[a.length-1]}while(h.indent>d);var g=h.endAbove-1;g-l>=1&&o.insertFirst(l,g,d)}h.indent===d?h.endAbove=l:a.push({indent:d,endAbove:l,line:l})}else t&&(h.endAbove=l)}return o.toIndentRanges(e)}var P=n("twdY"),U=n("/cxE"),H=5e3,j={},Q="syntax",V=function(){function e(e,t,n){void 0===n&&(n=H),this.editorModel=e,this.providers=t,this.limit=n,this.id=Q}return e.prototype.compute=function(e){var t=this;return W(this.providers,this.editorModel,e).then((function(e){if(e){var n=K(e,t.limit);return n}return null}))},e.prototype.dispose=function(){},e}();function W(e,t,n){var i=null,r=e.map((function(e,r){return Promise.resolve(e.provideFoldingRanges(t,j,n)).then((function(e){if(!n.isCancellationRequested&&Array.isArray(e)){Array.isArray(i)||(i=[]);for(var o=t.getLineCount(),s=0,a=e;s<a.length;s++){var u=a[s];u.start>0&&u.end>u.start&&u.end<=o&&i.push({start:u.start,end:u.end,rank:r,kind:u.kind})}}}),U["f"])}));return Promise.all(r).then((function(e){return i}))}var z=function(){function e(e){this._startIndexes=[],this._endIndexes=[],this._nestingLevels=[],this._nestingLevelCounts=[],this._types=[],this._length=0,this._foldingRangesLimit=e}return e.prototype.add=function(e,t,n,i){if(!(e>h||t>h)){var r=this._length;this._startIndexes[r]=e,this._endIndexes[r]=t,this._nestingLevels[r]=i,this._types[r]=n,this._length++,i<30&&(this._nestingLevelCounts[i]=(this._nestingLevelCounts[i]||0)+1)}},e.prototype.toIndentRanges=function(){if(this._length<=this._foldingRangesLimit){for(var e=new Uint32Array(this._length),t=new Uint32Array(this._length),n=0;n<this._length;n++)e[n]=this._startIndexes[n],t[n]=this._endIndexes[n];return new p(e,t,this._types)}var i=0,r=this._nestingLevelCounts.length;for(n=0;n<this._nestingLevelCounts.length;n++){var o=this._nestingLevelCounts[n];if(o){if(o+i>this._foldingRangesLimit){r=n;break}i+=o}}e=new Uint32Array(this._foldingRangesLimit),t=new Uint32Array(this._foldingRangesLimit);for(var s=[],a=(n=0,0);n<this._length;n++){var u=this._nestingLevels[n];(u<r||u===r&&i++<this._foldingRangesLimit)&&(e[a]=this._startIndexes[n],t[a]=this._endIndexes[n],s[a]=this._types[n],a++)}return new p(e,t,s)},e}();function K(e,t){for(var n=e.sort((function(e,t){var n=e.start-t.start;return 0===n&&(n=e.rank-t.rank),n})),i=new z(t),r=void 0,o=[],s=0,a=n;s<a.length;s++){var u=a[s];if(r){if(u.start>r.start)if(u.end<=r.end)o.push(r),r=u,i.add(u.start,u.end,u.kind&&u.kind.value,o.length);else{if(u.start>r.end){do{r=o.pop()}while(r&&u.start>r.end);r&&o.push(r),r=u}i.add(u.start,u.end,u.kind&&u.kind.value,o.length)}}else r=u,i.add(u.start,u.end,u.kind&&u.kind.value,o.length)}return i.toIndentRanges()}var q="init",G=function(){function e(e,t,n,i){if(this.editorModel=e,this.id=q,t.length){var r=function(t){return{range:{startLineNumber:t.startLineNumber,startColumn:0,endLineNumber:t.endLineNumber,endColumn:e.getLineLength(t.endLineNumber)},options:{stickiness:1}}};this.decorationIds=e.deltaDecorations([],t.map(r)),this.timeout=setTimeout(n,i)}}return e.prototype.dispose=function(){this.decorationIds&&(this.editorModel.deltaDecorations(this.decorationIds,[]),this.decorationIds=void 0),"number"===typeof this.timeout&&(clearTimeout(this.timeout),this.timeout=void 0)},e.prototype.compute=function(e){var t=[];if(this.decorationIds)for(var n=0,i=this.decorationIds;n<i.length;n++){var r=i[n],o=this.editorModel.getDecorationRange(r);o&&t.push({start:o.startLineNumber,end:o.endLineNumber,rank:1})}return Promise.resolve(K(t,Number.MAX_VALUE))},e}(),X=n("T8No"),Y=n("t9D7"),J=n("MD5Z"),Z=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),$=function(e,t,n,i){var r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},ee=function(e,t){return function(n,i){t(n,i,e)}},te=new X["d"]("foldingEnabled",!1),ne=function(e){function t(t,n){var i=e.call(this)||this;i.contextKeyService=n,i.localToDispose=i._register(new u["b"]),i.editor=t;var r=i.editor.getOptions();return i._isEnabled=r.get(30),i._useFoldingProviders="indentation"!==r.get(31),i.foldingModel=null,i.hiddenRangeModel=null,i.rangeProvider=null,i.foldingRegionPromise=null,i.foldingStateMemento=null,i.foldingModelPromise=null,i.updateScheduler=null,i.cursorChangedScheduler=null,i.mouseDownInfo=null,i.foldingDecorationProvider=new N(t),i.foldingDecorationProvider.autoHideFoldingControls="mouseover"===r.get(84),i.foldingDecorationProvider.showFoldingHighlights=r.get(32),i.foldingEnabled=te.bindTo(i.contextKeyService),i.foldingEnabled.set(i._isEnabled),i._register(i.editor.onDidChangeModel((function(){return i.onModelChanged()}))),i._register(i.editor.onDidChangeConfiguration((function(e){if(e.hasChanged(30)){var t=i.editor.getOptions();i._isEnabled=t.get(30),i.foldingEnabled.set(i._isEnabled),i.onModelChanged()}if(e.hasChanged(84)||e.hasChanged(32)){var n=i.editor.getOptions();i.foldingDecorationProvider.autoHideFoldingControls="mouseover"===n.get(84),i.foldingDecorationProvider.showFoldingHighlights=n.get(32),i.onModelContentChanged()}if(e.hasChanged(31)){var r=i.editor.getOptions();i._useFoldingProviders="indentation"!==r.get(31),i.onFoldingStrategyChanged()}}))),i.onModelChanged(),i}return Z(t,e),t.get=function(e){return e.getContribution(t.ID)},t.prototype.saveViewState=function(){var e=this.editor.getModel();if(!e||!this._isEnabled||e.isTooLargeForTokenization())return{};if(this.foldingModel){var t=this.foldingModel.isInitialized?this.foldingModel.getMemento():this.hiddenRangeModel.getMemento(),n=this.rangeProvider?this.rangeProvider.id:void 0;return{collapsedRegions:t,lineCount:e.getLineCount(),provider:n}}},t.prototype.restoreViewState=function(e){var t=this.editor.getModel();if(t&&this._isEnabled&&!t.isTooLargeForTokenization()&&this.hiddenRangeModel&&e&&e.collapsedRegions&&e.lineCount===t.getLineCount()){e.provider!==Q&&e.provider!==q||(this.foldingStateMemento=e);var n=e.collapsedRegions;if(this.hiddenRangeModel.applyMemento(n)){var i=this.getFoldingModel();i&&i.then((function(e){e&&e.applyMemento(n)})).then(void 0,U["e"])}}},t.prototype.onModelChanged=function(){var e=this;this.localToDispose.clear();var t=this.editor.getModel();this._isEnabled&&t&&!t.isTooLargeForTokenization()&&(this.foldingModel=new A(t,this.foldingDecorationProvider),this.localToDispose.add(this.foldingModel),this.hiddenRangeModel=new O(this.foldingModel),this.localToDispose.add(this.hiddenRangeModel),this.localToDispose.add(this.hiddenRangeModel.onDidChange((function(t){return e.onHiddenRangesChanges(t)}))),this.updateScheduler=new s["a"](200),this.cursorChangedScheduler=new s["d"]((function(){return e.revealCursor()}),200),this.localToDispose.add(this.cursorChangedScheduler),this.localToDispose.add(P["n"].onDidChange((function(){return e.onFoldingStrategyChanged()}))),this.localToDispose.add(this.editor.onDidChangeModelLanguageConfiguration((function(){return e.onFoldingStrategyChanged()}))),this.localToDispose.add(this.editor.onDidChangeModelContent((function(){return e.onModelContentChanged()}))),this.localToDispose.add(this.editor.onDidChangeCursorPosition((function(){return e.onCursorPositionChanged()}))),this.localToDispose.add(this.editor.onMouseDown((function(t){return e.onEditorMouseDown(t)}))),this.localToDispose.add(this.editor.onMouseUp((function(t){return e.onEditorMouseUp(t)}))),this.localToDispose.add({dispose:function(){e.foldingRegionPromise&&(e.foldingRegionPromise.cancel(),e.foldingRegionPromise=null),e.updateScheduler&&e.updateScheduler.cancel(),e.updateScheduler=null,e.foldingModel=null,e.foldingModelPromise=null,e.hiddenRangeModel=null,e.cursorChangedScheduler=null,e.foldingStateMemento=null,e.rangeProvider&&e.rangeProvider.dispose(),e.rangeProvider=null}}),this.onModelContentChanged())},t.prototype.onFoldingStrategyChanged=function(){this.rangeProvider&&this.rangeProvider.dispose(),this.rangeProvider=null,this.onModelContentChanged()},t.prototype.getRangeProvider=function(e){var t=this;if(this.rangeProvider)return this.rangeProvider;if(this.rangeProvider=new F(e),this._useFoldingProviders&&this.foldingModel){var n=P["n"].ordered(this.foldingModel.textModel);if(0===n.length&&this.foldingStateMemento&&this.foldingStateMemento.collapsedRegions){var i=this.rangeProvider=new G(e,this.foldingStateMemento.collapsedRegions,(function(){t.foldingStateMemento=null,t.onFoldingStrategyChanged()}),3e4);return i}n.length>0&&(this.rangeProvider=new V(e,n))}return this.foldingStateMemento=null,this.rangeProvider},t.prototype.getFoldingModel=function(){return this.foldingModelPromise},t.prototype.onModelContentChanged=function(){var e=this;this.updateScheduler&&(this.foldingRegionPromise&&(this.foldingRegionPromise.cancel(),this.foldingRegionPromise=null),this.foldingModelPromise=this.updateScheduler.trigger((function(){var t=e.foldingModel;if(!t)return null;var n=e.foldingRegionPromise=Object(s["f"])((function(n){return e.getRangeProvider(t.textModel).compute(n)}));return n.then((function(i){if(i&&n===e.foldingRegionPromise){var r=e.editor.getSelections(),o=r?r.map((function(e){return e.startLineNumber})):[];t.update(i,o)}return t}))})).then(void 0,(function(e){return Object(U["e"])(e),null})))},t.prototype.onHiddenRangesChanges=function(e){if(this.hiddenRangeModel&&e.length){var t=this.editor.getSelections();t&&this.hiddenRangeModel.adjustSelections(t)&&this.editor.setSelections(t)}this.editor.setHiddenAreas(e)},t.prototype.onCursorPositionChanged=function(){this.hiddenRangeModel&&this.hiddenRangeModel.hasRanges()&&this.cursorChangedScheduler.schedule()},t.prototype.revealCursor=function(){var e=this,t=this.getFoldingModel();t&&t.then((function(t){if(t){var n=e.editor.getSelections();if(n&&n.length>0){for(var i=[],r=function(n){var r=n.selectionStartLineNumber;e.hiddenRangeModel&&e.hiddenRangeModel.isHidden(r)&&i.push.apply(i,t.getAllRegionsAtLine(r,(function(e){return e.isCollapsed&&r>e.startLineNumber})))},o=0,s=n;o<s.length;o++){var a=s[o];r(a)}i.length&&(t.toggleCollapseState(i),e.reveal(n[0].getPosition()))}}})).then(void 0,U["e"])},t.prototype.onEditorMouseDown=function(e){if(this.mouseDownInfo=null,this.hiddenRangeModel&&e.target&&e.target.range&&(e.event.leftButton||e.event.middleButton)){var t=e.target.range,n=!1;switch(e.target.type){case 4:var i=e.target.detail,r=e.target.element.offsetLeft,o=i.offsetX-r;if(o<5)return;n=!0;break;case 6:if(this.hiddenRangeModel.hasRanges()){var s=this.editor.getModel();if(s&&t.startColumn===s.getLineMaxColumn(t.startLineNumber))break}return;default:return}this.mouseDownInfo={lineNumber:t.startLineNumber,iconClicked:n}}},t.prototype.onEditorMouseUp=function(e){var t=this,n=this.getFoldingModel();if(n&&this.mouseDownInfo&&e.target){var i=this.mouseDownInfo.lineNumber,r=this.mouseDownInfo.iconClicked,o=e.target.range;if(o&&o.startLineNumber===i){if(r){if(4!==e.target.type)return}else{var s=this.editor.getModel();if(!s||o.startColumn!==s.getLineMaxColumn(i))return}n.then((function(n){if(n){var o=n.getRegionAtLine(i);if(o&&o.startLineNumber===i){var s=o.isCollapsed;if(r||s){var a=[],u=e.event.middleButton||e.event.shiftKey;if(u)for(var l=0,c=n.getRegionsInside(o);l<c.length;l++){var d=c[l];d.isCollapsed===s&&a.push(d)}!s&&u&&0!==a.length||a.push(o),n.toggleCollapseState(a),t.reveal({lineNumber:i,column:1})}}}})).then(void 0,U["e"])}}},t.prototype.reveal=function(e){this.editor.revealPositionInCenterIfOutsideViewport(e,0)},t.ID="editor.contrib.folding",t=$([ee(1,X["c"])],t),t}(u["a"]),ie=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Z(t,e),t.prototype.runEditorCommand=function(e,t,n){var i=this,r=ne.get(t);if(r){var o=r.getFoldingModel();return o?(this.reportTelemetry(e,t),o.then((function(e){if(e){i.invoke(r,e,t,n);var o=t.getSelection();o&&r.reveal(o.getStartPosition())}}))):void 0}},t.prototype.getSelectedLines=function(e){var t=e.getSelections();return t?t.map((function(e){return e.startLineNumber})):[]},t.prototype.getLineNumbers=function(e,t){return e&&e.selectionLines?e.selectionLines.map((function(e){return e+1})):this.getSelectedLines(t)},t.prototype.run=function(e,t){},t}(l["b"]);function re(e){if(!r["k"](e)){if(!r["i"](e))return!1;var t=e;if(!r["k"](t.levels)&&!r["h"](t.levels))return!1;if(!r["k"](t.direction)&&!r["j"](t.direction))return!1;if(!r["k"](t.selectionLines)&&(!r["d"](t.selectionLines)||!t.selectionLines.every(r["h"])))return!1}return!0}var oe=function(e){function t(){return e.call(this,{id:"editor.unfold",label:i["a"]("unfoldAction.label","Unfold"),alias:"Unfold",precondition:te,kbOpts:{kbExpr:L["a"].editorTextFocus,primary:3161,mac:{primary:2649},weight:100},description:{description:"Unfold the content in the editor",args:[{name:"Unfold editor argument",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t\t* 'levels': Number of levels to unfold. If not set, defaults to 1.\n\t\t\t\t\t\t* 'direction': If 'up', unfold given number of levels up otherwise unfolds down.\n\t\t\t\t\t\t* 'selectionLines': The start lines (0-based) of the editor selections to apply the unfold action to. If not set, the active selection(s) will be used.\n\t\t\t\t\t\t",constraint:re,schema:{type:"object",properties:{levels:{type:"number",default:1},direction:{type:"string",enum:["up","down"],default:"down"},selectionLines:{type:"array",items:{type:"number"}}}}}]}})||this}return Z(t,e),t.prototype.invoke=function(e,t,n,i){var r=i&&i.levels||1,o=this.getLineNumbers(i,n);i&&"up"===i.direction?_(t,!1,r,o):v(t,!1,r,o)},t}(ie),se=function(e){function t(){return e.call(this,{id:"editor.unfoldRecursively",label:i["a"]("unFoldRecursivelyAction.label","Unfold Recursively"),alias:"Unfold Recursively",precondition:te,kbOpts:{kbExpr:L["a"].editorTextFocus,primary:Object(a["a"])(2089,2137),weight:100}})||this}return Z(t,e),t.prototype.invoke=function(e,t,n,i){v(t,!1,Number.MAX_VALUE,this.getSelectedLines(n))},t}(ie),ae=function(e){function t(){return e.call(this,{id:"editor.fold",label:i["a"]("foldAction.label","Fold"),alias:"Fold",precondition:te,kbOpts:{kbExpr:L["a"].editorTextFocus,primary:3159,mac:{primary:2647},weight:100},description:{description:"Fold the content in the editor",args:[{name:"Fold editor argument",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t\t\t* 'levels': Number of levels to fold.\n\t\t\t\t\t\t\t* 'direction': If 'up', folds given number of levels up otherwise folds down.\n\t\t\t\t\t\t\t* 'selectionLines': The start lines (0-based) of the editor selections to apply the fold action to. If not set, the active selection(s) will be used.\n\t\t\t\t\t\t\tIf no levels or direction is set, folds the region at the locations or if already collapsed, the first uncollapsed parent instead.\n\t\t\t\t\t\t",constraint:re,schema:{type:"object",properties:{levels:{type:"number"},direction:{type:"string",enum:["up","down"]},selectionLines:{type:"array",items:{type:"number"}}}}}]}})||this}return Z(t,e),t.prototype.invoke=function(e,t,n,i){var r=this.getLineNumbers(i,n),o=i&&i.levels,s=i&&i.direction;"number"!==typeof o&&"string"!==typeof s?y(t,!0,r):"up"===s?_(t,!0,o||1,r):v(t,!0,o||1,r)},t}(ie),ue=function(e){function t(){return e.call(this,{id:"editor.toggleFold",label:i["a"]("toggleFoldAction.label","Toggle Fold"),alias:"Toggle Fold",precondition:te,kbOpts:{kbExpr:L["a"].editorTextFocus,primary:Object(a["a"])(2089,2090),weight:100}})||this}return Z(t,e),t.prototype.invoke=function(e,t,n){var i=this.getSelectedLines(n);m(t,1,i)},t}(ie),le=function(e){function t(){return e.call(this,{id:"editor.foldRecursively",label:i["a"]("foldRecursivelyAction.label","Fold Recursively"),alias:"Fold Recursively",precondition:te,kbOpts:{kbExpr:L["a"].editorTextFocus,primary:Object(a["a"])(2089,2135),weight:100}})||this}return Z(t,e),t.prototype.invoke=function(e,t,n){var i=this.getSelectedLines(n);v(t,!0,Number.MAX_VALUE,i)},t}(ie),ce=function(e){function t(){return e.call(this,{id:"editor.foldAllBlockComments",label:i["a"]("foldAllBlockComments.label","Fold All Block Comments"),alias:"Fold All Block Comments",precondition:te,kbOpts:{kbExpr:L["a"].editorTextFocus,primary:Object(a["a"])(2089,2133),weight:100}})||this}return Z(t,e),t.prototype.invoke=function(e,t,n){if(t.regions.hasTypes())C(t,P["m"].Comment.value,!0);else{var i=n.getModel();if(!i)return;var r=D["a"].getComments(i.getLanguageIdentifier().id);if(r&&r.blockCommentStartToken){var s=new RegExp("^\\s*"+Object(o["p"])(r.blockCommentStartToken));w(t,s,!0)}}},t}(ie),de=function(e){function t(){return e.call(this,{id:"editor.foldAllMarkerRegions",label:i["a"]("foldAllMarkerRegions.label","Fold All Regions"),alias:"Fold All Regions",precondition:te,kbOpts:{kbExpr:L["a"].editorTextFocus,primary:Object(a["a"])(2089,2077),weight:100}})||this}return Z(t,e),t.prototype.invoke=function(e,t,n){if(t.regions.hasTypes())C(t,P["m"].Region.value,!0);else{var i=n.getModel();if(!i)return;var r=D["a"].getFoldingRules(i.getLanguageIdentifier().id);if(r&&r.markers&&r.markers.start){var o=new RegExp(r.markers.start);w(t,o,!0)}}},t}(ie),he=function(e){function t(){return e.call(this,{id:"editor.unfoldAllMarkerRegions",label:i["a"]("unfoldAllMarkerRegions.label","Unfold All Regions"),alias:"Unfold All Regions",precondition:te,kbOpts:{kbExpr:L["a"].editorTextFocus,primary:Object(a["a"])(2089,2078),weight:100}})||this}return Z(t,e),t.prototype.invoke=function(e,t,n){if(t.regions.hasTypes())C(t,P["m"].Region.value,!1);else{var i=n.getModel();if(!i)return;var r=D["a"].getFoldingRules(i.getLanguageIdentifier().id);if(r&&r.markers&&r.markers.start){var o=new RegExp(r.markers.start);w(t,o,!1)}}},t}(ie),fe=function(e){function t(){return e.call(this,{id:"editor.foldAll",label:i["a"]("foldAllAction.label","Fold All"),alias:"Fold All",precondition:te,kbOpts:{kbExpr:L["a"].editorTextFocus,primary:Object(a["a"])(2089,2069),weight:100}})||this}return Z(t,e),t.prototype.invoke=function(e,t,n){v(t,!0)},t}(ie),pe=function(e){function t(){return e.call(this,{id:"editor.unfoldAll",label:i["a"]("unfoldAllAction.label","Unfold All"),alias:"Unfold All",precondition:te,kbOpts:{kbExpr:L["a"].editorTextFocus,primary:Object(a["a"])(2089,2088),weight:100}})||this}return Z(t,e),t.prototype.invoke=function(e,t,n){v(t,!1)},t}(ie),ge=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Z(t,e),t.prototype.getFoldingLevel=function(){return parseInt(this.id.substr(t.ID_PREFIX.length))},t.prototype.invoke=function(e,t,n){b(t,this.getFoldingLevel(),!0,this.getSelectedLines(n))},t.ID_PREFIX="editor.foldLevel",t.ID=function(e){return t.ID_PREFIX+e},t}(ie);Object(l["h"])(ne.ID,ne),Object(l["f"])(oe),Object(l["f"])(se),Object(l["f"])(ae),Object(l["f"])(le),Object(l["f"])(fe),Object(l["f"])(pe),Object(l["f"])(ce),Object(l["f"])(de),Object(l["f"])(he),Object(l["f"])(ue);for(var Ae=1;Ae<=7;Ae++)Object(l["i"])(new ge({id:ge.ID(Ae),label:i["a"]("foldLevelAction.label","Fold Level {0}",Ae),alias:"Fold Level "+Ae,precondition:te,kbOpts:{kbExpr:L["a"].editorTextFocus,primary:Object(a["a"])(2089,2048|21+Ae),weight:100}}));var me=Object(J["Rb"])("editor.foldBackground",{light:Object(J["dc"])(J["K"],.3),dark:Object(J["dc"])(J["K"],.3),hc:null},i["a"]("editorSelectionBackground","Color of the editor selection."));Object(Y["e"])((function(e,t){var n=e.getColor(me);n&&t.addRule(".monaco-editor .folded-background { background-color: "+n+"; }")}))},e1ni:function(e,t,n){},eC1c:function(e,t,n){},eLzo:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return u})),n.d(t,"e",(function(){return c})),n.d(t,"d",(function(){return d}));var i=n("6OMU"),r=n("Vhoy"),o=function(){function e(e,t){var n,i;void 0===e&&(e=""),void 0===t&&(t=!1),this._value=e,"boolean"===typeof t?(this._isTrusted=t,this._supportThemeIcons=!1):(this._isTrusted=null!==(n=t.isTrusted)&&void 0!==n&&n,this._supportThemeIcons=null!==(i=t.supportThemeIcons)&&void 0!==i&&i)}return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isTrusted",{get:function(){return this._isTrusted},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"supportThemeIcons",{get:function(){return this._supportThemeIcons},enumerable:!0,configurable:!0}),e.prototype.appendText=function(e){return this._value+=(this._supportThemeIcons?Object(r["a"])(e):e).replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&").replace("\n","\n\n"),this},e.prototype.appendMarkdown=function(e){return this._value+=e,this},e.prototype.appendCodeblock=function(e,t){return this._value+="\n```",this._value+=e,this._value+="\n",this._value+=t,this._value+="\n```\n",this},e}();function s(e){return a(e)?!e.value:!Array.isArray(e)||e.every(s)}function a(e){return e instanceof o||!(!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 u(e,t){return!e&&!t||!(!e||!t)&&(Array.isArray(e)&&Array.isArray(t)?Object(i["g"])(e,t,l):!(!a(e)||!a(t))&&l(e,t))}function l(e,t){return e===t||!(!e||!t)&&(e.value===t.value&&e.isTrusted===t.isTrusted&&e.supportThemeIcons===t.supportThemeIcons)}function c(e){return e?e.replace(/\\([\\`*_{}[\]()#+\-.!])/g,"$1"):e}function d(e){var t=[],n=e.split("|").map((function(e){return e.trim()}));e=n[0];var i=n[1];if(i){var r=/height=(\d+)/.exec(i),o=/width=(\d+)/.exec(i),s=r?r[1]:"",a=o?o[1]:"",u=isFinite(parseInt(a)),l=isFinite(parseInt(s));u&&t.push('width="'+a+'"'),l&&t.push('height="'+s+'"')}return{href:e,dimensions:t}}},eizg:function(e,t,n){},ep4t:function(e,t,n){"use strict";n.r(t),n.d(t,"SuggestController",(function(){return Ht})),n.d(t,"TriggerSuggestAction",(function(){return jt}));var i=n("OBOq"),r=n("6OMU"),o=n("/cxE"),s=n("/kV6"),a=n("pmY6"),u=n("sswD"),l=n("0/Sa"),c=n("aokT"),d=n("wQH0"),h=n("tXSY"),f=n("uACm"),p=n("QDVR"),g=n("A+jI"),A=n("twdY"),m=n("X+cX"),v=n("Cg/j"),_=n("+7oY"),y=n("9fML"),b=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),w=function(e,t,n,i){var r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},C=function(e,t){return function(n,i){t(n,i,e)}},S=function(){function e(){}return e.prototype.select=function(e,t,n){if(0===n.length)return 0;for(var i=n[0].score[0],r=1;r<n.length;r++){var o=n[r],s=o.score,a=o.completion;if(s[0]!==i)break;if(a.preselect)return r}return 0},e}(),N=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return b(t,e),t.prototype.memorize=function(e,t,n){},t.prototype.toJSON=function(){},t.prototype.fromJSON=function(){},t}(S),L=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._cache=new p["a"](300,.66),t._seq=0,t}return b(t,e),t.prototype.memorize=function(e,t,n){var i=n.completion.label,r=e.getLanguageIdentifier().language+"/"+i;this._cache.set(r,{touch:this._seq++,type:n.completion.kind,insertText:n.completion.insertText})},t.prototype.select=function(t,n,i){if(0===i.length)return 0;var r=t.getLineContent(n.lineNumber).substr(n.column-10,n.column-1);if(/\s$/.test(r))return e.prototype.select.call(this,t,n,i);for(var o=i[0].score[0],s=-1,a=-1,u=-1,l=0;l<i.length;l++){if(i[l].score[0]!==o)break;var c=t.getLanguageIdentifier().language+"/"+i[l].completion.label,d=this._cache.peek(c);if(d&&d.touch>u&&d.type===i[l].completion.kind&&d.insertText===i[l].completion.insertText&&(u=d.touch,a=l),i[l].completion.preselect&&-1===s)return l}return-1!==a?a:-1!==s?s:0},t.prototype.toJSON=function(){var e=[];return this._cache.forEach((function(t,n){e.push([n,t])})),e},t.prototype.fromJSON=function(e){this._cache.clear();for(var t=0,n=0,i=e;n<i.length;n++){var r=i[n],o=r[0],s=r[1];s.touch=t,s.type="number"===typeof s.type?s.type:Object(A["B"])(s.type),this._cache.set(o,s)}this._seq=this._cache.size},t}(S),E=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._trie=p["c"].forStrings(),t._seq=0,t}return b(t,e),t.prototype.memorize=function(e,t,n){var i=e.getWordUntilPosition(t).word,r=e.getLanguageIdentifier().language+"/"+i;this._trie.set(r,{type:n.completion.kind,insertText:n.completion.insertText,touch:this._seq++})},t.prototype.select=function(t,n,i){var r=t.getWordUntilPosition(n).word;if(!r)return e.prototype.select.call(this,t,n,i);var o=t.getLanguageIdentifier().language+"/"+r,s=this._trie.get(o);if(s||(s=this._trie.findSubstr(o)),s)for(var a=0;a<i.length;a++){var u=i[a].completion,l=u.kind,c=u.insertText;if(l===s.type&&c===s.insertText)return a}return e.prototype.select.call(this,t,n,i)},t.prototype.toJSON=function(){var e=[];return this._trie.forEach((function(t,n){return e.push([n,t])})),e.sort((function(e,t){return-(e[1].touch-t[1].touch)})).forEach((function(e,t){return e[1].touch=t})),e.slice(0,200)},t.prototype.fromJSON=function(e){if(this._trie.clear(),e.length>0){this._seq=e[0][1].touch+1;for(var t=0,n=e;t<n.length;t++){var i=n[t],r=i[0],o=i[1];o.type="number"===typeof o.type?o.type:Object(A["B"])(o.type),this._trie.set(r,o)}}},t}(S),x=function(e){function t(t,n){var i=e.call(this)||this;i._storageService=t,i._configService=n,i._storagePrefix="suggest/memories";var r=function(){var e=i._configService.getValue("editor.suggestSelection"),t=i._configService.getValue("editor.suggest.shareSuggestSelections");i._update(e,t,!1)};return i._persistSoon=i._register(new m["d"]((function(){return i._saveState()}),500)),i._register(t.onWillSaveState((function(e){e.reason===g["c"].SHUTDOWN&&i._saveState()}))),i._register(i._configService.onDidChangeConfiguration((function(e){(e.affectsConfiguration("editor.suggestSelection")||e.affectsConfiguration("editor.suggest.shareSuggestSelections"))&&r()}))),i._register(i._storageService.onDidChangeStorage((function(e){0===e.scope&&0===e.key.indexOf(i._storagePrefix)&&(document.hasFocus()||i._update(i._mode,i._shareMem,!0))}))),r(),i}return b(t,e),t.prototype._update=function(e,t,n){if(n||this._mode!==e||this._shareMem!==t){this._shareMem=t,this._mode=e,this._strategy="recentlyUsedByPrefix"===e?new E:"recentlyUsed"===e?new L:new N;try{var i=t?0:1,r=this._storageService.get(this._storagePrefix+"/"+this._mode,i);r&&this._strategy.fromJSON(JSON.parse(r))}catch(o){}}},t.prototype.memorize=function(e,t,n){this._strategy.memorize(e,t,n),this._persistSoon.schedule()},t.prototype.select=function(e,t,n){return this._strategy.select(e,t,n)},t.prototype._saveState=function(){var e=JSON.stringify(this._strategy),t=this._shareMem?0:1;this._storageService.store(this._storagePrefix+"/"+this._mode,e,t)},t=w([C(0,g["a"]),C(1,_["a"])],t),t}(a["a"]),O=Object(v["c"])("ISuggestMemories");Object(y["b"])(O,x,!0);var B=n("3/fG"),k=n("nnTU"),D=n("T8No"),I=n("nrhi"),M=n("QVNv"),F=function(e,t,n,i){var r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},T=function(e,t){return function(n,i){t(n,i,e)}},R=function(){function e(t,n){this._editor=t,this._index=0,this._ckOtherSuggestions=e.OtherSuggestions.bindTo(n)}return e.prototype.dispose=function(){this.reset()},e.prototype.reset=function(){this._ckOtherSuggestions.reset(),Object(a["f"])(this._listener),this._model=void 0,this._acceptNext=void 0,this._ignore=!1},e.prototype.set=function(t,n){var i=this,r=t.model,o=t.index;if(0!==r.items.length){var s=e._moveIndex(!0,r,o);s!==o?(this._acceptNext=n,this._model=r,this._index=o,this._listener=this._editor.onDidChangeCursorPosition((function(){i._ignore||i.reset()})),this._ckOtherSuggestions.set(!0)):this.reset()}else this.reset()},e._moveIndex=function(e,t,n){var i=n;while(1){if(i=(i+t.items.length+(e?1:-1))%t.items.length,i===n)break;if(!t.items[i].completion.additionalTextEdits)break}return i},e.prototype.next=function(){this._move(!0)},e.prototype.prev=function(){this._move(!1)},e.prototype._move=function(t){if(this._model)try{this._ignore=!0,this._index=e._moveIndex(t,this._model,this._index),this._acceptNext({index:this._index,item:this._model.items[this._index],model:this._model})}finally{this._ignore=!1}},e.OtherSuggestions=new D["d"]("hasOtherSuggestions",!1),e=F([T(1,D["c"])],e),e}(),P=n("MI8n"),U=n("gCVg"),H=n("fpMC"),j=n("N0LK"),Q=(function(){function e(e,t){this.leadingLineContent=e,this.characterCountDelta=t}}(),function(){function e(t,n,i,r,o,s){this._snippetCompareFn=e._compareCompletionItems,this._items=t,this._column=n,this._wordDistance=r,this._options=o,this._refilterKind=1,this._lineContext=i,"top"===s?this._snippetCompareFn=e._compareCompletionItemsSnippetsUp:"bottom"===s&&(this._snippetCompareFn=e._compareCompletionItemsSnippetsDown)}return Object.defineProperty(e.prototype,"lineContext",{get:function(){return this._lineContext},set:function(e){this._lineContext.leadingLineContent===e.leadingLineContent&&this._lineContext.characterCountDelta===e.characterCountDelta||(this._refilterKind=this._lineContext.characterCountDelta<e.characterCountDelta&&this._filteredItems?2:1,this._lineContext=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"items",{get:function(){return this._ensureCachedState(),this._filteredItems},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"incomplete",{get:function(){return this._ensureCachedState(),this._isIncomplete},enumerable:!0,configurable:!0}),e.prototype.adopt=function(e){for(var t=new Array,n=0;n<this._items.length;)e.has(this._items[n].provider)?n++:(t.push(this._items[n]),this._items[n]=this._items[this._items.length-1],this._items.pop());return this._refilterKind=1,t},Object.defineProperty(e.prototype,"stats",{get:function(){return this._ensureCachedState(),this._stats},enumerable:!0,configurable:!0}),e.prototype._ensureCachedState=function(){0!==this._refilterKind&&this._createCachedState()},e.prototype._createCachedState=function(){this._isIncomplete=new Set,this._stats={suggestionCount:0,snippetCount:0,textCount:0};for(var e=this._lineContext,t=e.leadingLineContent,n=e.characterCountDelta,i="",r="",o=1===this._refilterKind?this._items:this._filteredItems,s=[],a=!this._options.filterGraceful||o.length>2e3?H["d"]:H["e"],u=0;u<o.length;u++){var l=o[u];l.container.incomplete&&this._isIncomplete.add(l.provider);var c=l.position.column-l.editStart.column,d=c+n-(l.position.column-this._column);if(i.length!==d&&(i=0===d?"":t.slice(-d),r=i.toLowerCase()),l.word=i,0===d)l.score=H["a"].Default;else{var h=0;while(h<c){var f=i.charCodeAt(h);if(32!==f&&9!==f)break;h+=1}var p="string"===typeof l.completion.label?l.completion.label:l.completion.label.name;if(h>=d)l.score=H["a"].Default;else if("string"===typeof l.completion.filterText){var g=a(i,r,h,l.completion.filterText,l.filterTextLow,0,!1);if(!g)continue;0===Object(j["f"])(l.completion.filterText,p)?l.score=g:(l.score=Object(H["b"])(i,r,h,p,l.labelLow,0),l.score[0]=g[0])}else{g=a(i,r,h,p,l.labelLow,0,!1);if(!g)continue;l.score=g}}switch(l.idx=u,l.distance=this._wordDistance.distance(l.position,l.completion),s.push(l),this._stats.suggestionCount++,l.completion.kind){case 25:this._stats.snippetCount++;break;case 18:this._stats.textCount++;break}}this._filteredItems=s.sort(this._snippetCompareFn),this._refilterKind=0},e._compareCompletionItems=function(e,t){return e.score[0]>t.score[0]?-1:e.score[0]<t.score[0]?1:e.distance<t.distance?-1:e.distance>t.distance?1:e.idx<t.idx?-1:e.idx>t.idx?1:0},e._compareCompletionItemsSnippetsDown=function(t,n){if(t.completion.kind!==n.completion.kind){if(25===t.completion.kind)return 1;if(25===n.completion.kind)return-1}return e._compareCompletionItems(t,n)},e._compareCompletionItemsSnippetsUp=function(t,n){if(t.completion.kind!==n.completion.kind){if(25===t.completion.kind)return-1;if(25===n.completion.kind)return 1}return e._compareCompletionItems(t,n)},e}()),V=n("JQT/"),W=n("cGHE"),z=n("24hK"),K=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{u(i.next(e))}catch(t){o(t)}}function a(e){try{u(i["throw"](e))}catch(t){o(t)}}function u(e){e.done?n(e.value):r(e.value).then(s,a)}u((i=i.apply(e,t||[])).next())}))},q=function(e,t){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(e){return function(t){return u([e,t])}}function u(o){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,i&&(r=2&o[0]?i["return"]:o[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(r=s.trys,!(r=r.length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(a){o=[6,a],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},G=function(){function e(){}return e.prototype.provideSelectionRanges=function(t,n){return K(this,void 0,void 0,(function(){var i,r,o,s,a;return q(this,(function(u){switch(u.label){case 0:i=[],r=function(n){var r,o;return q(this,(function(s){switch(s.label){case 0:return r=[],i.push(r),o=new Map,[4,new Promise((function(i){return e._bracketsRightYield(i,0,t,n,o)}))];case 1:return s.sent(),[4,new Promise((function(i){return e._bracketsLeftYield(i,0,t,n,o,r)}))];case 2:return s.sent(),[2]}}))},o=0,s=n,u.label=1;case 1:return o<s.length?(a=s[o],[5,r(a)]):[3,4];case 2:u.sent(),u.label=3;case 3:return o++,[3,1];case 4:return[2,i]}}))}))},e._bracketsRightYield=function(t,n,i,r,o){var s=new Map,a=Date.now();while(1){if(n>=e._maxRounds){t();break}if(!r){t();break}var u=i.findNextBracket(r);if(!u){t();break}var l=Date.now()-a;if(l>e._maxDuration){setTimeout((function(){return e._bracketsRightYield(t,n+1,i,r,o)}));break}var c=u.close[0];if(u.isOpen){var d=s.has(c)?s.get(c):0;s.set(c,d+1)}else{d=s.has(c)?s.get(c):0;if(d-=1,s.set(c,Math.max(0,d)),d<0){var h=o.get(c);h||(h=new z["a"],o.set(c,h)),h.push(u.range)}}r=u.range.getEndPosition()}},e._bracketsLeftYield=function(t,n,i,r,o,s){var a=new Map,u=Date.now();while(1){if(n>=e._maxRounds&&0===o.size){t();break}if(!r){t();break}var l=i.findPrevBracket(r);if(!l){t();break}var d=Date.now()-u;if(d>e._maxDuration){setTimeout((function(){return e._bracketsLeftYield(t,n+1,i,r,o,s)}));break}var h=l.close[0];if(l.isOpen){m=a.has(h)?a.get(h):0;if(m-=1,a.set(h,Math.max(0,m)),m<0){var f=o.get(h);if(f){var p=f.shift();0===f.size&&o.delete(h);var g=c["a"].fromPositions(l.range.getEndPosition(),p.getStartPosition()),A=c["a"].fromPositions(l.range.getStartPosition(),p.getEndPosition());s.push({range:g}),s.push({range:A}),e._addBracketLeading(i,A,s)}}}else{var m=a.has(h)?a.get(h):0;a.set(h,m+1)}r=l.range.getStartPosition()}},e._addBracketLeading=function(e,t,n){if(t.startLineNumber!==t.endLineNumber){var i=t.startLineNumber,r=e.getLineFirstNonWhitespaceColumn(i);0!==r&&r!==t.startColumn&&(n.push({range:c["a"].fromPositions(new W["a"](i,r),t.getEndPosition())}),n.push({range:c["a"].fromPositions(new W["a"](i,1),t.getEndPosition())}));var o=i-1;if(o>0){var s=e.getLineFirstNonWhitespaceColumn(o);s===t.startColumn&&s!==e.getLineLastNonWhitespaceColumn(o)&&(n.push({range:c["a"].fromPositions(new W["a"](o,s),t.getEndPosition())}),n.push({range:c["a"].fromPositions(new W["a"](o,1),t.getEndPosition())}))}}},e._maxDuration=30,e._maxRounds=2,e}(),X=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Y=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{u(i.next(e))}catch(t){o(t)}}function a(e){try{u(i["throw"](e))}catch(t){o(t)}}function u(e){e.done?n(e.value):r(e.value).then(s,a)}u((i=i.apply(e,t||[])).next())}))},J=function(e,t){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(e){return function(t){return u([e,t])}}function u(o){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,i&&(r=2&o[0]?i["return"]:o[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(r=s.trys,!(r=r.length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(a){o=[6,a],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},Z=function(){function e(){}return e.create=function(t,n){return Y(this,void 0,void 0,(function(){var i,o,s,a;return J(this,(function(u){switch(u.label){case 0:return n.getOption(89).localityBonus&&n.hasModel()?(i=n.getModel(),o=n.getPosition(),t.canComputeWordRanges(i.uri)?[4,(new G).provideSelectionRanges(i,[o])]:[2,e.None]):[2,e.None];case 1:return s=u.sent(),s&&0!==s.length&&0!==s[0].length?[4,t.computeWordRanges(i.uri,s[0][0].range)]:[2,e.None];case 2:return a=u.sent(),[2,new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return X(t,e),t.prototype.distance=function(e,t){if(!a||!o.equals(n.getPosition()))return 0;if(17===t.kind)return 2<<20;var i="string"===typeof t.label?t.label:t.label.name,u=a[i];if(Object(r["p"])(u))return 2<<20;for(var l=Object(r["c"])(u,c["a"].fromPositions(e),c["a"].compareRangesUsingStarts),d=l>=0?u[l]:u[Math.max(0,~l-1)],h=s.length,f=0,p=s[0];f<p.length;f++){var g=p[f];if(!c["a"].containsRange(g.range,d))break;h-=1}return h},t}(e))]}}))}))},e.None=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return X(t,e),t.prototype.distance=function(){return 0},t}(e)),e}(),$=function(){function e(e,t,n,i){this.leadingLineContent=e.getLineContent(t.lineNumber).substr(0,t.column-1),this.leadingWord=e.getWordUntilPosition(t),this.lineNumber=t.lineNumber,this.column=t.column,this.auto=n,this.shy=i}return e.shouldAutoTrigger=function(e){if(!e.hasModel())return!1;var t=e.getModel(),n=e.getPosition();t.tokenizeIfCheap(n.lineNumber);var i=t.getWordAtPosition(n);return!!i&&(i.endColumn===n.column&&!!isNaN(Number(i.word)))},e}(),ee=function(){function e(e,t){var n=this;this._editor=e,this._editorWorker=t,this._toDispose=new a["b"],this._quickSuggestDelay=10,this._triggerCharacterListener=new a["b"],this._triggerQuickSuggest=new m["e"],this._state=0,this._completionDisposables=new a["b"],this._onDidCancel=new P["a"],this._onDidTrigger=new P["a"],this._onDidSuggest=new P["a"],this.onDidCancel=this._onDidCancel.event,this.onDidTrigger=this._onDidTrigger.event,this.onDidSuggest=this._onDidSuggest.event,this._currentSelection=this._editor.getSelection()||new U["a"](1,1,1,1),this._toDispose.add(this._editor.onDidChangeModel((function(){n._updateTriggerCharacters(),n.cancel()}))),this._toDispose.add(this._editor.onDidChangeModelLanguage((function(){n._updateTriggerCharacters(),n.cancel()}))),this._toDispose.add(this._editor.onDidChangeConfiguration((function(){n._updateTriggerCharacters(),n._updateQuickSuggest()}))),this._toDispose.add(A["d"].onDidChange((function(){n._updateTriggerCharacters(),n._updateActiveSuggestSession()}))),this._toDispose.add(this._editor.onDidChangeCursorSelection((function(e){n._onCursorChange(e)})));var i=!1;this._toDispose.add(this._editor.onDidCompositionStart((function(){i=!0}))),this._toDispose.add(this._editor.onDidCompositionEnd((function(){i=!1,n._refilterCompletionItems()}))),this._toDispose.add(this._editor.onDidChangeModelContent((function(){i||n._refilterCompletionItems()}))),this._updateTriggerCharacters(),this._updateQuickSuggest()}return e.prototype.dispose=function(){Object(a["f"])(this._triggerCharacterListener),Object(a["f"])([this._onDidCancel,this._onDidSuggest,this._onDidTrigger,this._triggerQuickSuggest]),this._toDispose.dispose(),this._completionDisposables.dispose(),this.cancel()},e.prototype._updateQuickSuggest=function(){this._quickSuggestDelay=this._editor.getOption(67),(isNaN(this._quickSuggestDelay)||!this._quickSuggestDelay&&0!==this._quickSuggestDelay||this._quickSuggestDelay<0)&&(this._quickSuggestDelay=10)},e.prototype._updateTriggerCharacters=function(){var e=this;if(this._triggerCharacterListener.clear(),!this._editor.getOption(68)&&this._editor.hasModel()&&this._editor.getOption(92)){for(var t=new Map,n=0,i=A["d"].all(this._editor.getModel());n<i.length;n++)for(var r=i[n],o=0,s=r.triggerCharacters||[];o<s.length;o++){var a=s[o],u=t.get(a);u||(u=new Set,u.add(Object(M["c"])()),t.set(a,u)),u.add(r)}var l=function(n){if(!n){var i=e._editor.getPosition(),r=e._editor.getModel();n=r.getLineContent(i.lineNumber).substr(0,i.column-1)}var o="";Object(j["A"])(n.charCodeAt(n.length-1))?Object(j["z"])(n.charCodeAt(n.length-2))&&(o=n.substr(n.length-2)):o=n.charAt(n.length-1);var s=t.get(o);if(s){var a=e._completionModel?e._completionModel.adopt(s):void 0;e.trigger({auto:!0,shy:!1,triggerCharacter:o},Boolean(e._completionModel),s,a)}};this._triggerCharacterListener.add(this._editor.onDidType(l)),this._triggerCharacterListener.add(this._editor.onDidCompositionEnd(l))}},Object.defineProperty(e.prototype,"state",{get:function(){return this._state},enumerable:!0,configurable:!0}),e.prototype.cancel=function(e){void 0===e&&(e=!1),0!==this._state&&(this._triggerQuickSuggest.cancel(),this._requestToken&&(this._requestToken.cancel(),this._requestToken=void 0),this._state=0,this._completionModel=void 0,this._context=void 0,this._onDidCancel.fire({retrigger:e}))},e.prototype.clear=function(){this._completionDisposables.clear()},e.prototype._updateActiveSuggestSession=function(){0!==this._state&&(this._editor.hasModel()&&A["d"].has(this._editor.getModel())?this.trigger({auto:2===this._state,shy:!1},!0):this.cancel())},e.prototype._onCursorChange=function(e){var t=this;if(this._editor.hasModel()){var n=this._editor.getModel(),i=this._currentSelection;if(this._currentSelection=this._editor.getSelection(),!e.selection.isEmpty()||0!==e.reason||"keyboard"!==e.source&&"deleteLeft"!==e.source)this.cancel();else if(A["d"].has(n)&&0===this._state){if(!1===this._editor.getOption(66))return;if(!i.containsRange(this._currentSelection)&&!i.getEndPosition().isBeforeOrEqual(this._currentSelection.getPosition()))return;if(this._editor.getOption(89).snippetsPreventQuickSuggestions&&h["SnippetController2"].get(this._editor).isInSnippet())return;this.cancel(),this._triggerQuickSuggest.cancelAndSet((function(){if(0===t._state&&$.shouldAutoTrigger(t._editor)&&t._editor.hasModel()){var e=t._editor.getModel(),n=t._editor.getPosition(),i=t._editor.getOption(66);if(!1!==i){if(!0===i);else{e.tokenizeIfCheap(n.lineNumber);var r=e.getLineTokens(n.lineNumber),o=r.getStandardTokenType(r.findTokenIndexAtOffset(Math.max(n.column-1-1,0))),s=i.other&&0===o||i.comments&&1===o||i.strings&&2===o;if(!s)return}t.trigger({auto:!0,shy:!1})}}}),this._quickSuggestDelay)}}},e.prototype._refilterCompletionItems=function(){var e=this;Promise.resolve().then((function(){if(0!==e._state&&e._editor.hasModel()){var t=e._editor.getModel(),n=e._editor.getPosition(),i=new $(t,n,2===e._state,!1);e._onNewContext(i)}}))},e.prototype.trigger=function(t,n,i,s){var u=this;if(void 0===n&&(n=!1),this._editor.hasModel()){var l,c=this._editor.getModel(),d=t.auto,h=new $(c,this._editor.getPosition(),d,t.shy);this.cancel(n),this._state=d?2:1,this._onDidTrigger.fire({auto:d,shy:t.shy,position:this._editor.getPosition()}),this._context=h,l=t.triggerCharacter?{triggerKind:1,triggerCharacter:t.triggerCharacter}:i&&i.size>0?{triggerKind:2}:{triggerKind:0},this._requestToken=new V["b"];var f=this._editor.getOption(86),p=1;switch(f){case"top":p=0;break;case"bottom":p=2;break}var g=e._createItemKindFilter(this._editor),A=Z.create(this._editorWorker,this._editor),m=Object(M["e"])(c,this._editor.getPosition(),new M["a"](p,g,i),l,this._requestToken.token);Promise.all([m,A]).then((function(e){var n=e[0],i=e[1];if(Object(a["f"])(u._requestToken),0!==u._state&&u._editor.hasModel()){var o=u._editor.getModel();if(Object(r["q"])(s)){var l=Object(M["d"])(p);n=n.concat(s).sort(l)}var c=new $(o,u._editor.getPosition(),d,t.shy);u._completionModel=new Q(n,u._context.column,{leadingLineContent:c.leadingLineContent,characterCountDelta:c.column-u._context.column},i,u._editor.getOption(89),u._editor.getOption(86));for(var h=0,f=n;h<f.length;h++){var g=f[h];Object(a["g"])(g.container)&&u._completionDisposables.add(g.container)}u._onNewContext(c)}})).catch(o["e"])}},e._createItemKindFilter=function(e){var t=new Set,n=e.getOption(86);"none"===n&&t.add(25);var i=e.getOption(89);return i.showMethods||t.add(0),i.showFunctions||t.add(1),i.showConstructors||t.add(2),i.showFields||t.add(3),i.showVariables||t.add(4),i.showClasses||t.add(5),i.showStructs||t.add(6),i.showInterfaces||t.add(7),i.showModules||t.add(8),i.showProperties||t.add(9),i.showEvents||t.add(10),i.showOperators||t.add(11),i.showUnits||t.add(12),i.showValues||t.add(13),i.showConstants||t.add(14),i.showEnums||t.add(15),i.showEnumMembers||t.add(16),i.showKeywords||t.add(17),i.showWords||t.add(18),i.showColors||t.add(19),i.showFiles||t.add(20),i.showReferences||t.add(21),i.showColors||t.add(22),i.showFolders||t.add(23),i.showTypeParameters||t.add(24),i.showSnippets||t.add(25),t},e.prototype._onNewContext=function(e){if(this._context)if(e.lineNumber===this._context.lineNumber){if(e.leadingWord.startColumn<this._context.leadingWord.startColumn)this.cancel();else if(e.column<this._context.column)e.leadingWord.word?this.trigger({auto:this._context.auto,shy:!1},!0):this.cancel();else if(this._completionModel)if(e.column>this._context.column&&this._completionModel.incomplete.size>0&&0!==e.leadingWord.word.length){var t=this._completionModel.incomplete,n=this._completionModel.adopt(t);this.trigger({auto:2===this._state,shy:!1},!0,t,n)}else{var i=this._completionModel.lineContext,r=!1;if(this._completionModel.lineContext={leadingLineContent:e.leadingLineContent,characterCountDelta:e.column-this._context.column},0===this._completionModel.items.length){if($.shouldAutoTrigger(this._editor)&&this._context.leadingWord.endColumn<e.leadingWord.startColumn)return void this.trigger({auto:this._context.auto,shy:!1},!0);if(this._context.auto)return void this.cancel();if(this._completionModel.lineContext=i,r=this._completionModel.items.length>0,r&&0===e.leadingWord.word.length)return void this.cancel()}this._onDidSuggest.fire({completionModel:this._completionModel,auto:this._context.auto,shy:this._context.shy,isFrozen:r})}}else this.cancel()},e}(),te=(n("CClx"),n("nn6Y"),n("XNtB"),n("epnl"),n("yI7H"),n("ujyM"),n("t9D7")),ne=n("MD5Z"),ie=Object(ne["Rb"])("symbolIcon.arrayForeground",{dark:ne["V"],light:ne["V"],hc:ne["V"]},Object(B["a"])("symbolIcon.arrayForeground","The foreground color for array symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),re=Object(ne["Rb"])("symbolIcon.booleanForeground",{dark:ne["V"],light:ne["V"],hc:ne["V"]},Object(B["a"])("symbolIcon.booleanForeground","The foreground color for boolean symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),oe=Object(ne["Rb"])("symbolIcon.classForeground",{dark:"#EE9D28",light:"#D67E00",hc:"#EE9D28"},Object(B["a"])("symbolIcon.classForeground","The foreground color for class symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),se=Object(ne["Rb"])("symbolIcon.colorForeground",{dark:ne["V"],light:ne["V"],hc:ne["V"]},Object(B["a"])("symbolIcon.colorForeground","The foreground color for color symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ae=Object(ne["Rb"])("symbolIcon.constantForeground",{dark:ne["V"],light:ne["V"],hc:ne["V"]},Object(B["a"])("symbolIcon.constantForeground","The foreground color for constant symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ue=Object(ne["Rb"])("symbolIcon.constructorForeground",{dark:"#B180D7",light:"#652D90",hc:"#B180D7"},Object(B["a"])("symbolIcon.constructorForeground","The foreground color for constructor symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),le=Object(ne["Rb"])("symbolIcon.enumeratorForeground",{dark:"#EE9D28",light:"#D67E00",hc:"#EE9D28"},Object(B["a"])("symbolIcon.enumeratorForeground","The foreground color for enumerator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ce=Object(ne["Rb"])("symbolIcon.enumeratorMemberForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(B["a"])("symbolIcon.enumeratorMemberForeground","The foreground color for enumerator member symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),de=Object(ne["Rb"])("symbolIcon.eventForeground",{dark:"#EE9D28",light:"#D67E00",hc:"#EE9D28"},Object(B["a"])("symbolIcon.eventForeground","The foreground color for event symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),he=Object(ne["Rb"])("symbolIcon.fieldForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(B["a"])("symbolIcon.fieldForeground","The foreground color for field symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),fe=Object(ne["Rb"])("symbolIcon.fileForeground",{dark:ne["V"],light:ne["V"],hc:ne["V"]},Object(B["a"])("symbolIcon.fileForeground","The foreground color for file symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),pe=Object(ne["Rb"])("symbolIcon.folderForeground",{dark:ne["V"],light:ne["V"],hc:ne["V"]},Object(B["a"])("symbolIcon.folderForeground","The foreground color for folder symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ge=Object(ne["Rb"])("symbolIcon.functionForeground",{dark:"#B180D7",light:"#652D90",hc:"#B180D7"},Object(B["a"])("symbolIcon.functionForeground","The foreground color for function symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Ae=Object(ne["Rb"])("symbolIcon.interfaceForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(B["a"])("symbolIcon.interfaceForeground","The foreground color for interface symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),me=Object(ne["Rb"])("symbolIcon.keyForeground",{dark:ne["V"],light:ne["V"],hc:ne["V"]},Object(B["a"])("symbolIcon.keyForeground","The foreground color for key symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ve=Object(ne["Rb"])("symbolIcon.keywordForeground",{dark:ne["V"],light:ne["V"],hc:ne["V"]},Object(B["a"])("symbolIcon.keywordForeground","The foreground color for keyword symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),_e=Object(ne["Rb"])("symbolIcon.methodForeground",{dark:"#B180D7",light:"#652D90",hc:"#B180D7"},Object(B["a"])("symbolIcon.methodForeground","The foreground color for method symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ye=Object(ne["Rb"])("symbolIcon.moduleForeground",{dark:ne["V"],light:ne["V"],hc:ne["V"]},Object(B["a"])("symbolIcon.moduleForeground","The foreground color for module symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),be=Object(ne["Rb"])("symbolIcon.namespaceForeground",{dark:ne["V"],light:ne["V"],hc:ne["V"]},Object(B["a"])("symbolIcon.namespaceForeground","The foreground color for namespace symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),we=Object(ne["Rb"])("symbolIcon.nullForeground",{dark:ne["V"],light:ne["V"],hc:ne["V"]},Object(B["a"])("symbolIcon.nullForeground","The foreground color for null symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Ce=Object(ne["Rb"])("symbolIcon.numberForeground",{dark:ne["V"],light:ne["V"],hc:ne["V"]},Object(B["a"])("symbolIcon.numberForeground","The foreground color for number symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Se=Object(ne["Rb"])("symbolIcon.objectForeground",{dark:ne["V"],light:ne["V"],hc:ne["V"]},Object(B["a"])("symbolIcon.objectForeground","The foreground color for object symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Ne=Object(ne["Rb"])("symbolIcon.operatorForeground",{dark:ne["V"],light:ne["V"],hc:ne["V"]},Object(B["a"])("symbolIcon.operatorForeground","The foreground color for operator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Le=Object(ne["Rb"])("symbolIcon.packageForeground",{dark:ne["V"],light:ne["V"],hc:ne["V"]},Object(B["a"])("symbolIcon.packageForeground","The foreground color for package symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Ee=Object(ne["Rb"])("symbolIcon.propertyForeground",{dark:ne["V"],light:ne["V"],hc:ne["V"]},Object(B["a"])("symbolIcon.propertyForeground","The foreground color for property symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),xe=Object(ne["Rb"])("symbolIcon.referenceForeground",{dark:ne["V"],light:ne["V"],hc:ne["V"]},Object(B["a"])("symbolIcon.referenceForeground","The foreground color for reference symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Oe=Object(ne["Rb"])("symbolIcon.snippetForeground",{dark:ne["V"],light:ne["V"],hc:ne["V"]},Object(B["a"])("symbolIcon.snippetForeground","The foreground color for snippet symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Be=Object(ne["Rb"])("symbolIcon.stringForeground",{dark:ne["V"],light:ne["V"],hc:ne["V"]},Object(B["a"])("symbolIcon.stringForeground","The foreground color for string symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ke=Object(ne["Rb"])("symbolIcon.structForeground",{dark:ne["V"],light:ne["V"],hc:ne["V"]},Object(B["a"])("symbolIcon.structForeground","The foreground color for struct symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),De=Object(ne["Rb"])("symbolIcon.textForeground",{dark:ne["V"],light:ne["V"],hc:ne["V"]},Object(B["a"])("symbolIcon.textForeground","The foreground color for text symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Ie=Object(ne["Rb"])("symbolIcon.typeParameterForeground",{dark:ne["V"],light:ne["V"],hc:ne["V"]},Object(B["a"])("symbolIcon.typeParameterForeground","The foreground color for type parameter symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Me=Object(ne["Rb"])("symbolIcon.unitForeground",{dark:ne["V"],light:ne["V"],hc:ne["V"]},Object(B["a"])("symbolIcon.unitForeground","The foreground color for unit symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Fe=Object(ne["Rb"])("symbolIcon.variableForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(B["a"])("symbolIcon.variableForeground","The foreground color for variable symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));Object(te["e"])((function(e,t){var n=e.getColor(ie);n&&t.addRule(".codicon-symbol-array { color: "+n+" !important; }");var i=e.getColor(re);i&&t.addRule(".codicon-symbol-boolean { color: "+i+" !important; }");var r=e.getColor(oe);r&&t.addRule(".codicon-symbol-class { color: "+r+" !important; }");var o=e.getColor(_e);o&&t.addRule(".codicon-symbol-method { color: "+o+" !important; }");var s=e.getColor(se);s&&t.addRule(".codicon-symbol-color { color: "+s+" !important; }");var a=e.getColor(ae);a&&t.addRule(".codicon-symbol-constant { color: "+a+" !important; }");var u=e.getColor(ue);u&&t.addRule(".codicon-symbol-constructor { color: "+u+" !important; }");var l=e.getColor(le);l&&t.addRule("\n\t\t\t.codicon-symbol-value,.codicon-symbol-enum { color: "+l+" !important; }");var c=e.getColor(ce);c&&t.addRule(".codicon-symbol-enum-member { color: "+c+" !important; }");var d=e.getColor(de);d&&t.addRule(".codicon-symbol-event { color: "+d+" !important; }");var h=e.getColor(he);h&&t.addRule(".codicon-symbol-field { color: "+h+" !important; }");var f=e.getColor(fe);f&&t.addRule(".codicon-symbol-file { color: "+f+" !important; }");var p=e.getColor(pe);p&&t.addRule(".codicon-symbol-folder { color: "+p+" !important; }");var g=e.getColor(ge);g&&t.addRule(".codicon-symbol-function { color: "+g+" !important; }");var A=e.getColor(Ae);A&&t.addRule(".codicon-symbol-interface { color: "+A+" !important; }");var m=e.getColor(me);m&&t.addRule(".codicon-symbol-key { color: "+m+" !important; }");var v=e.getColor(ve);v&&t.addRule(".codicon-symbol-keyword { color: "+v+" !important; }");var _=e.getColor(ye);_&&t.addRule(".codicon-symbol-module { color: "+_+" !important; }");var y=e.getColor(be);y&&t.addRule(".codicon-symbol-namespace { color: "+y+" !important; }");var b=e.getColor(we);b&&t.addRule(".codicon-symbol-null { color: "+b+" !important; }");var w=e.getColor(Ce);w&&t.addRule(".codicon-symbol-number { color: "+w+" !important; }");var C=e.getColor(Se);C&&t.addRule(".codicon-symbol-object { color: "+C+" !important; }");var S=e.getColor(Ne);S&&t.addRule(".codicon-symbol-operator { color: "+S+" !important; }");var N=e.getColor(Le);N&&t.addRule(".codicon-symbol-package { color: "+N+" !important; }");var L=e.getColor(Ee);L&&t.addRule(".codicon-symbol-property { color: "+L+" !important; }");var E=e.getColor(xe);E&&t.addRule(".codicon-symbol-reference { color: "+E+" !important; }");var x=e.getColor(Oe);x&&t.addRule(".codicon-symbol-snippet { color: "+x+" !important; }");var O=e.getColor(Be);O&&t.addRule(".codicon-symbol-string { color: "+O+" !important; }");var B=e.getColor(ke);B&&t.addRule(".codicon-symbol-struct { color: "+B+" !important; }");var k=e.getColor(De);k&&t.addRule(".codicon-symbol-text { color: "+k+" !important; }");var D=e.getColor(Ie);D&&t.addRule(".codicon-symbol-type-parameter { color: "+D+" !important; }");var I=e.getColor(Me);I&&t.addRule(".codicon-symbol-unit { color: "+I+" !important; }");var M=e.getColor(Fe);M&&t.addRule(".codicon-symbol-variable { color: "+M+" !important; }")}));var Te,Re=n("EffR"),Pe=n("cqdO"),Ue=n("GJhM"),He=n("bexQ"),je=n("XXUj"),Qe=n("ptcw"),Ve=n("3qCu"),We=n("WBhO"),ze=n("W9cx"),Ke=n("xONI"),qe=n("tYmi"),Ge=n("gslv"),Xe=n("MqQJ");function Ye(e,t,n,i){var r=i===Te.ROOT_FOLDER?["rootfolder-icon"]:i===Te.FOLDER?["folder-icon"]:["file-icon"];if(n){var o;if(n.scheme===qe["b"].data){var s=Ge["a"].parseMetaData(n);o=s.get(Ge["a"].META_DATA_LABEL)}else o=Ze(Object(Ge["c"])(n).toLowerCase());if(i===Te.FOLDER)r.push(o+"-name-folder-icon");else{if(o){r.push(o+"-name-file-icon");for(var a=o.split("."),u=1;u<a.length;u++)r.push(a.slice(u).join(".")+"-ext-file-icon");r.push("ext-file-icon")}var l=Je(e,t,n);l&&r.push(Ze(l)+"-lang-file-icon")}}return r}function Je(e,t,n){if(!n)return null;var i=null;if(n.scheme===qe["b"].data){var r=Ge["a"].parseMetaData(n),o=r.get(Ge["a"].META_DATA_MIME);o&&(i=t.getModeId(o))}else{var s=e.getModel(n);s&&(i=s.getModeId())}return i&&i!==Xe["c"]?i:t.getModeIdByFilepathOrFirstLine(n)}function Ze(e){return e.replace(/\s/g,"\\$&")}(function(e){e[e["FILE"]=0]="FILE",e[e["FOLDER"]=1]="FOLDER",e[e["ROOT_FOLDER"]=2]="ROOT_FOLDER"})(Te||(Te={}));var $e=n("G2kB"),et=n("bY76"),tt=n("eLzo"),nt=function(){return nt=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},nt.apply(this,arguments)},it=function(e,t,n,i){var r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},rt=function(e,t){return function(n,i){t(n,i,e)}},ot=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{u(i.next(e))}catch(t){o(t)}}function a(e){try{u(i["throw"](e))}catch(t){o(t)}}function u(e){e.done?n(e.value):r(e.value).then(s,a)}u((i=i.apply(e,t||[])).next())}))},st=function(e,t){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(e){return function(t){return u([e,t])}}function u(o){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,i&&(r=2&o[0]?i["return"]:o[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(r=s.trys,!(r=r.length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(a){o=[6,a],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},at=!1,ut=Object(ne["Rb"])("editorSuggestWidget.background",{dark:ne["P"],light:ne["P"],hc:ne["P"]},B["a"]("editorSuggestWidgetBackground","Background color of the suggest widget.")),lt=Object(ne["Rb"])("editorSuggestWidget.border",{dark:ne["Q"],light:ne["Q"],hc:ne["Q"]},B["a"]("editorSuggestWidgetBorder","Border color of the suggest widget.")),ct=Object(ne["Rb"])("editorSuggestWidget.foreground",{dark:ne["x"],light:ne["x"],hc:ne["x"]},B["a"]("editorSuggestWidgetForeground","Foreground color of the suggest widget.")),dt=Object(ne["Rb"])("editorSuggestWidget.selectedBackground",{dark:ne["qb"],light:ne["qb"],hc:ne["qb"]},B["a"]("editorSuggestWidgetSelectedBackground","Background color of the selected entry in the suggest widget.")),ht=Object(ne["Rb"])("editorSuggestWidget.highlightForeground",{dark:ne["sb"],light:ne["sb"],hc:ne["sb"]},B["a"]("editorSuggestWidgetHighlightForeground","Color of the match highlights in the suggest widget.")),ft=/^(#([\da-f]{3}){1,2}|(rgb|hsl)a\(\s*(\d{1,3}%?\s*,\s*){3}(1|0?\.\d+)\)|(rgb|hsl)\(\s*\d{1,3}%?(\s*,\s*\d{1,3}%?){2}\s*\))$/i;function pt(e,t){var n="string"===typeof e.completion.label?e.completion.label:e.completion.label.name;return n.match(ft)?(t[0]=n,!0):!("string"!==typeof e.completion.documentation||!e.completion.documentation.match(ft))&&(t[0]=e.completion.documentation,!0)}function gt(e){if(!e)return!1;var t=e.completion;return!!t.documentation||t.detail&&t.detail!==t.label}function At(e){return"suggest-aria-id:"+e}var mt=function(){function e(e,t,n,i,r,o){this.widget=e,this.editor=t,this.triggerKeybindingLabel=n,this._modelService=i,this._modeService=r,this._themeService=o}return Object.defineProperty(e.prototype,"templateId",{get:function(){return"suggestion"},enumerable:!0,configurable:!0}),e.prototype.renderTemplate=function(e){var t=this,n=Object.create(null);n.disposables=new a["b"],n.root=e,Object(Re["e"])(n.root,"show-file-icons"),n.icon=Object(Re["p"])(e,Object(Re["a"])(".icon")),n.colorspan=Object(Re["p"])(n.icon,Object(Re["a"])("span.colorspan"));var i=Object(Re["p"])(e,Object(Re["a"])(".contents")),r=Object(Re["p"])(i,Object(Re["a"])(".main"));n.left=Object(Re["p"])(r,Object(Re["a"])("span.left")),n.right=Object(Re["p"])(r,Object(Re["a"])("span.right")),n.iconContainer=Object(Re["p"])(n.left,Object(Re["a"])(".icon-label.codicon")),n.iconLabel=new Ke["a"](n.left,{supportHighlights:!0,supportCodicons:!0}),n.disposables.add(n.iconLabel),n.signatureLabel=Object(Re["p"])(n.left,Object(Re["a"])("span.signature-label")),n.qualifierLabel=Object(Re["p"])(n.left,Object(Re["a"])("span.qualifier-label")),n.detailsLabel=Object(Re["p"])(n.right,Object(Re["a"])("span.details-label")),n.readMore=Object(Re["p"])(n.right,Object(Re["a"])("span.readMore.codicon.codicon-info")),n.readMore.title=B["a"]("readMore","Read More...{0}",this.triggerKeybindingLabel);var o=function(){var e=t.editor.getOptions(),i=e.get(34),o=i.fontFamily,s=i.fontFeatureSettings,a=e.get(90)||i.fontSize,u=e.get(91)||i.lineHeight,l=i.fontWeight,c=a+"px",d=u+"px";n.root.style.fontSize=c,n.root.style.fontWeight=l,r.style.fontFamily=o,r.style.fontFeatureSettings=s,r.style.lineHeight=d,n.icon.style.height=d,n.icon.style.width=d,n.readMore.style.height=d,n.readMore.style.width=d};return o(),n.disposables.add(P["b"].chain(this.editor.onDidChangeConfiguration.bind(this.editor)).filter((function(e){return e.hasChanged(34)||e.hasChanged(90)||e.hasChanged(91)})).on(o,null)),n},e.prototype.renderElement=function(e,t,n){var i=this,o=n,s=e.completion,a="string"===typeof s.label?s.label:s.label.name;o.root.id=At(t),o.icon.className="icon "+Object(A["C"])(s.kind),o.colorspan.style.backgroundColor="";var u={labelEscapeNewLines:!0,matches:Object(H["c"])(e.score)},l=[];if(19===s.kind&&pt(e,l))o.icon.className="icon customcolor",o.iconContainer.className="icon hide",o.colorspan.style.backgroundColor=l[0];else if(20===s.kind&&this._themeService.getIconTheme().hasFileIcons){o.icon.className="icon hide",o.iconContainer.className="icon hide";var c=Ye(this._modelService,this._modeService,et["a"].from({scheme:"fake",path:a}),Te.FILE),d=Ye(this._modelService,this._modeService,et["a"].from({scheme:"fake",path:s.detail}),Te.FILE);u.extraClasses=c.length>d.length?c:d}else 23===s.kind&&this._themeService.getIconTheme().hasFolderIcons?(o.icon.className="icon hide",o.iconContainer.className="icon hide",u.extraClasses=Object(r["m"])([Ye(this._modelService,this._modeService,et["a"].from({scheme:"fake",path:a}),Te.FOLDER),Ye(this._modelService,this._modeService,et["a"].from({scheme:"fake",path:s.detail}),Te.FOLDER)])):(o.icon.className="icon hide",o.iconContainer.className="",Object(Re["f"])(o.iconContainer,"suggest-icon codicon codicon-symbol-"+Object(A["C"])(s.kind)));s.tags&&s.tags.indexOf(1)>=0&&(u.extraClasses=(u.extraClasses||[]).concat(["deprecated"]),u.matches=[]),o.iconLabel.setLabel(a,void 0,u),"string"===typeof s.label?(o.signatureLabel.textContent="",o.qualifierLabel.textContent="",o.detailsLabel.textContent=(s.detail||"").replace(/\n.*$/m,""),Object(Re["O"])(o.right,"always-show-details")):(o.signatureLabel.textContent=(s.label.signature||"").replace(/\n.*$/m,""),o.qualifierLabel.textContent=(s.label.qualifier||"").replace(/\n.*$/m,""),o.detailsLabel.textContent=(s.label.type||"").replace(/\n.*$/m,""),Object(Re["e"])(o.right,"always-show-details")),gt(e)?(Object(Re["e"])(o.right,"can-expand-details"),Object(Re["W"])(o.readMore),o.readMore.onmousedown=function(e){e.stopPropagation(),e.preventDefault()},o.readMore.onclick=function(e){e.stopPropagation(),e.preventDefault(),i.widget.toggleDetails()}):(Object(Re["O"])(o.right,"can-expand-details"),Object(Re["I"])(o.readMore),o.readMore.onmousedown=null,o.readMore.onclick=null)},e.prototype.disposeTemplate=function(e){e.disposables.dispose()},e=it([rt(3,$e["a"]),rt(4,We["a"]),rt(5,te["c"])],e),e}(),vt=function(){function e(e,t,n,i,r){var o=this;this.widget=t,this.editor=n,this.markdownRenderer=i,this.kbToggleDetails=r,this.borderWidth=1,this.disposables=new a["b"],this.el=Object(Re["p"])(e,Object(Re["a"])(".details")),this.disposables.add(Object(a["h"])((function(){return e.removeChild(o.el)}))),this.body=Object(Re["a"])(".body"),this.scrollbar=new Ue["a"](this.body,{}),Object(Re["p"])(this.el,this.scrollbar.getDomNode()),this.disposables.add(this.scrollbar),this.header=Object(Re["p"])(this.body,Object(Re["a"])(".header")),this.close=Object(Re["p"])(this.header,Object(Re["a"])("span.codicon.codicon-close")),this.close.title=B["a"]("readLess","Read less...{0}",this.kbToggleDetails),this.type=Object(Re["p"])(this.header,Object(Re["a"])("p.type")),this.docs=Object(Re["p"])(this.body,Object(Re["a"])("p.docs")),this.configureFont(),P["b"].chain(this.editor.onDidChangeConfiguration.bind(this.editor)).filter((function(e){return e.hasChanged(34)})).on(this.configureFont,this,this.disposables),i.onDidRenderCodeBlock((function(){return o.scrollbar.scanDomNode()}),this,this.disposables)}return Object.defineProperty(e.prototype,"element",{get:function(){return this.el},enumerable:!0,configurable:!0}),e.prototype.renderLoading=function(){this.type.textContent=B["a"]("loading","Loading..."),this.docs.textContent=""},e.prototype.renderItem=function(e,t){var n=this;this.renderDisposeable=Object(a["f"])(this.renderDisposeable);var i=e.completion,r=i.documentation,o=i.detail;if(t){var s="";s+="score: "+e.score[0]+(e.word?", compared '"+(e.completion.filterText&&e.completion.filterText+" (filterText)"||e.completion.label)+"' with '"+e.word+"'":" (no prefix)")+"\n",s+="distance: "+e.distance+", see localityBonus-setting\n",s+="index: "+e.idx+", based on "+(e.completion.sortText&&'sortText: "'+e.completion.sortText+'"'||"label")+"\n",r=(new tt["a"]).appendCodeblock("empty",s),o="Provider: "+e.provider._debugDisplayName}if(!t&&!gt(e))return this.type.textContent="",this.docs.textContent="",void Object(Re["e"])(this.el,"no-docs");if(Object(Re["O"])(this.el,"no-docs"),"string"===typeof r)Object(Re["O"])(this.docs,"markdown-docs"),this.docs.textContent=r;else{Object(Re["e"])(this.docs,"markdown-docs"),this.docs.innerHTML="";var u=this.markdownRenderer.render(r);this.renderDisposeable=u,this.docs.appendChild(u.element)}o?(this.type.innerText=o,Object(Re["W"])(this.type)):(this.type.innerText="",Object(Re["I"])(this.type)),this.el.style.height=this.header.offsetHeight+this.docs.offsetHeight+2*this.borderWidth+"px",this.el.style.userSelect="text",this.el.tabIndex=-1,this.close.onmousedown=function(e){e.preventDefault(),e.stopPropagation()},this.close.onclick=function(e){e.preventDefault(),e.stopPropagation(),n.widget.toggleDetails()},this.body.scrollTop=0,this.scrollbar.scanDomNode()},e.prototype.scrollDown=function(e){void 0===e&&(e=8),this.body.scrollTop+=e},e.prototype.scrollUp=function(e){void 0===e&&(e=8),this.body.scrollTop-=e},e.prototype.scrollTop=function(){this.body.scrollTop=0},e.prototype.scrollBottom=function(){this.body.scrollTop=this.body.scrollHeight},e.prototype.pageDown=function(){this.scrollDown(80)},e.prototype.pageUp=function(){this.scrollUp(80)},e.prototype.setBorderWidth=function(e){this.borderWidth=e},e.prototype.configureFont=function(){var e=this.editor.getOptions(),t=e.get(34),n=t.fontFamily,i=e.get(90)||t.fontSize,r=e.get(91)||t.lineHeight,o=t.fontWeight,s=i+"px",a=r+"px";this.el.style.fontSize=s,this.el.style.fontWeight=o,this.el.style.fontFeatureSettings=t.fontFeatureSettings,this.type.style.fontFamily=n,this.close.style.height=a,this.close.style.width=a},e.prototype.dispose=function(){this.disposables.dispose(),this.renderDisposeable=Object(a["f"])(this.renderDisposeable)},e}(),_t=function(){function e(e,t,n,i,r,o,s,u,l){var c,d,h=this;this.editor=e,this.telemetryService=t,this.keybindingService=n,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this.state=null,this.isAuto=!1,this.loadingTimeout=a["a"].None,this.currentSuggestionDetails=null,this.ignoreFocusEvents=!1,this.completionModel=null,this.showTimeout=new m["e"],this.toDispose=new a["b"],this.onDidSelectEmitter=new P["a"],this.onDidFocusEmitter=new P["a"],this.onDidHideEmitter=new P["a"],this.onDidShowEmitter=new P["a"],this.onDidSelect=this.onDidSelectEmitter.event,this.onDidFocus=this.onDidFocusEmitter.event,this.onDidHide=this.onDidHideEmitter.event,this.onDidShow=this.onDidShowEmitter.event,this.maxWidgetWidth=660,this.listWidth=330,this.firstFocusInCurrentList=!1,this.preferDocPositionTop=!1,this.docsPositionPreviousWidgetY=null,this.explainMode=!1,this._onDetailsKeydown=new P["a"],this.onDetailsKeyDown=this._onDetailsKeydown.event;var f=this.toDispose.add(new Ve["a"](e,s,u)),p=null!==(d=null===(c=n.lookupKeybinding("toggleSuggestionDetails"))||void 0===c?void 0:c.getLabel())&&void 0!==d?d:"";this.msgDetailsLess=B["a"]("detail.less","{0} for less...",p),this.msgDetailMore=B["a"]("detail.more","{0} for more...",p),this.isAuto=!1,this.focusedItem=null,this.storageService=o,this.element=Object(Re["a"])(".editor-widget.suggest-widget"),this.toDispose.add(Object(Re["i"])(this.element,"click",(function(e){e.target===h.element&&h.hideWidget()}))),this.messageElement=Object(Re["p"])(this.element,Object(Re["a"])(".message")),this.listElement=Object(Re["p"])(this.element,Object(Re["a"])(".tree"));var g=function(){return Object(Re["X"])(h.element,"with-status-bar",!h.editor.getOption(89).hideStatusBar)};g(),this.statusBarElement=Object(Re["p"])(this.element,Object(Re["a"])(".suggest-status-bar")),this.statusBarLeftSpan=Object(Re["p"])(this.statusBarElement,Object(Re["a"])("span")),this.statusBarRightSpan=Object(Re["p"])(this.statusBarElement,Object(Re["a"])("span")),this.setStatusBarLeftText(""),this.setStatusBarRightText(""),this.details=l.createInstance(vt,this.element,this,this.editor,f,p);var A=function(){return Object(Re["X"])(h.element,"no-icons",!h.editor.getOption(89).showIcons)};A();var v=l.createInstance(mt,this,this.editor,p);this.list=new Pe["c"]("SuggestWidget",this.listElement,this,[v],{useShadows:!1,openController:{shouldOpen:function(){return!1}},mouseSupport:!1,accessibilityProvider:{getAriaLabel:function(e){var t="string"===typeof e.completion.label?e.completion.label:e.completion.label.name;if(e.isResolved&&h.expandDocsSettingFromStorage()){var n=e.completion,i=n.documentation,r=n.detail,o=j["r"]("{0}{1}",r||"",i?"string"===typeof i?i:i.value:"");return B["a"]("ariaCurrenttSuggestionReadDetails","Item {0}, docs: {1}",t,o)}return t}}}),this.toDispose.add(Object(Qe["b"])(this.list,r,{listInactiveFocusBackground:dt,listInactiveFocusOutline:ne["b"]})),this.toDispose.add(r.onThemeChange((function(e){return h.onThemeChange(e)}))),this.toDispose.add(e.onDidLayoutChange((function(){return h.onEditorLayoutChange()}))),this.toDispose.add(this.list.onMouseDown((function(e){return h.onListMouseDownOrTap(e)}))),this.toDispose.add(this.list.onTap((function(e){return h.onListMouseDownOrTap(e)}))),this.toDispose.add(this.list.onSelectionChange((function(e){return h.onListSelection(e)}))),this.toDispose.add(this.list.onFocusChange((function(e){return h.onListFocus(e)}))),this.toDispose.add(this.editor.onDidChangeCursorSelection((function(){return h.onCursorSelectionChanged()}))),this.toDispose.add(this.editor.onDidChangeConfiguration((function(e){e.hasChanged(89)&&(g(),A())}))),this.suggestWidgetVisible=M["b"].Visible.bindTo(i),this.suggestWidgetMultipleSuggestions=M["b"].MultipleSuggestions.bindTo(i),this.editor.addContentWidget(this),this.setState(0),this.onThemeChange(r.getTheme()),this.toDispose.add(Object(Re["n"])(this.details.element,"keydown",(function(e){h._onDetailsKeydown.fire(e)}))),this.toDispose.add(this.editor.onMouseDown((function(e){return h.onEditorMouseDown(e)})))}return e.prototype.onEditorMouseDown=function(e){this.details.element.contains(e.target.element)?this.details.element.focus():this.element.contains(e.target.element)&&this.editor.focus()},e.prototype.onCursorSelectionChanged=function(){0!==this.state&&this.editor.layoutContentWidget(this)},e.prototype.onEditorLayoutChange=function(){3!==this.state&&5!==this.state||!this.expandDocsSettingFromStorage()||this.expandSideOrBelow()},e.prototype.onListMouseDownOrTap=function(e){"undefined"!==typeof e.element&&"undefined"!==typeof e.index&&(e.browserEvent.preventDefault(),e.browserEvent.stopPropagation(),this.select(e.element,e.index))},e.prototype.onListSelection=function(e){e.elements.length&&this.select(e.elements[0],e.indexes[0])},e.prototype.select=function(e,t){var n=this.completionModel;n&&(this.onDidSelectEmitter.fire({item:e,index:t,model:n}),this.editor.focus())},e.prototype.onThemeChange=function(e){var t=e.getColor(ut);t&&(this.listElement.style.backgroundColor=t.toString(),this.statusBarElement.style.backgroundColor=t.toString(),this.details.element.style.backgroundColor=t.toString(),this.messageElement.style.backgroundColor=t.toString());var n=e.getColor(lt);n&&(this.listElement.style.borderColor=n.toString(),this.statusBarElement.style.borderColor=n.toString(),this.details.element.style.borderColor=n.toString(),this.messageElement.style.borderColor=n.toString(),this.detailsBorderColor=n.toString());var i=e.getColor(ne["U"]);i&&(this.detailsFocusBorderColor=i.toString()),this.details.setBorderWidth("hc"===e.type?2:1)},e.prototype.onListFocus=function(e){var t,n,i=this;if(!this.ignoreFocusEvents){if(!e.elements.length)return this.currentSuggestionDetails&&(this.currentSuggestionDetails.cancel(),this.currentSuggestionDetails=null,this.focusedItem=null),void this.editor.setAriaOptions({activeDescendant:void 0});if(this.completionModel){var r=e.elements[0],s=e.indexes[0];if(this.firstFocusInCurrentList=!this.focusedItem,r!==this.focusedItem){var a="insert"===this.editor.getOption(89).insertMode,u=null===(t=this.keybindingService.lookupKeybinding("acceptSelectedSuggestion"))||void 0===t?void 0:t.getLabel(),l=null===(n=this.keybindingService.lookupKeybinding("acceptAlternativeSelectedSuggestion"))||void 0===n?void 0:n.getLabel();W["a"].equals(r.editInsertEnd,r.editReplaceEnd)?this.setStatusBarLeftText(B["a"]("accept","{0} to accept",u)):a?this.setStatusBarLeftText(B["a"]("insert","{0} to insert, {1} to replace",u,l)):this.setStatusBarLeftText(B["a"]("replace","{0} to replace, {1} to insert",u,l)),this.currentSuggestionDetails&&(this.currentSuggestionDetails.cancel(),this.currentSuggestionDetails=null),this.focusedItem=r,this.list.reveal(s),this.currentSuggestionDetails=Object(m["f"])((function(e){return ot(i,void 0,void 0,(function(){var t,n,i=this;return st(this,(function(o){switch(o.label){case 0:return t=Object(m["g"])((function(){return i.showDetails(!0)}),250),e.onCancellationRequested((function(){return t.dispose()})),[4,r.resolve(e)];case 1:return n=o.sent(),t.dispose(),[2,n]}}))}))})),this.currentSuggestionDetails.then((function(){s>=i.list.length||r!==i.list.element(s)||(i.ignoreFocusEvents=!0,i.list.splice(s,1,[r]),i.list.setFocus([s]),i.ignoreFocusEvents=!1,i.expandDocsSettingFromStorage()?i.showDetails(!1):Object(Re["O"])(i.element,"docs-side"),gt(i.focusedItem)?i.expandDocsSettingFromStorage()?i.setStatusBarRightText(i.msgDetailsLess):i.setStatusBarRightText(i.msgDetailMore):i.statusBarRightSpan.innerText="",i.editor.setAriaOptions({activeDescendant:At(s)}))})).catch(o["e"])}this.onDidFocusEmitter.fire({item:r,index:s,model:this.completionModel})}}},e.prototype.setState=function(t){if(this.element){var n=this.state!==t;switch(this.state=t,Object(Re["X"])(this.element,"frozen",4===t),t){case 0:Object(Re["I"])(this.messageElement,this.details.element,this.listElement,this.statusBarElement),this.hide(),this.listHeight=0,n&&this.list.splice(0,this.list.length),this.focusedItem=null;break;case 1:this.messageElement.textContent=e.LOADING_MESSAGE,Object(Re["I"])(this.listElement,this.details.element,this.statusBarElement),Object(Re["W"])(this.messageElement),Object(Re["O"])(this.element,"docs-side"),this.show(),this.focusedItem=null;break;case 2:this.messageElement.textContent=e.NO_SUGGESTIONS_MESSAGE,Object(Re["I"])(this.listElement,this.details.element,this.statusBarElement),Object(Re["W"])(this.messageElement),Object(Re["O"])(this.element,"docs-side"),this.show(),this.focusedItem=null;break;case 3:Object(Re["I"])(this.messageElement),Object(Re["W"])(this.listElement,this.statusBarElement),this.show();break;case 4:Object(Re["I"])(this.messageElement),Object(Re["W"])(this.listElement),this.show();break;case 5:Object(Re["I"])(this.messageElement),Object(Re["W"])(this.details.element,this.listElement,this.statusBarElement),this.show();break}}},e.prototype.showTriggered=function(e,t){var n=this;0===this.state&&(this.isAuto=!!e,this.isAuto||(this.loadingTimeout=Object(m["g"])((function(){return n.setState(1)}),t)))},e.prototype.showSuggestions=function(e,t,n,i){if(this.preferDocPositionTop=!1,this.docsPositionPreviousWidgetY=null,this.loadingTimeout.dispose(),this.currentSuggestionDetails&&(this.currentSuggestionDetails.cancel(),this.currentSuggestionDetails=null),this.completionModel!==e&&(this.completionModel=e),n&&2!==this.state&&0!==this.state)this.setState(4);else{var r=this.completionModel.items.length,o=0===r;if(this.suggestWidgetMultipleSuggestions.set(r>1),o)i?this.setState(0):this.setState(2),this.completionModel=null;else{if(3!==this.state){var s=this.completionModel.stats;s["wasAutomaticallyTriggered"]=!!i,this.telemetryService.publicLog("suggestWidget",nt({},s))}this.focusedItem=null,this.list.splice(0,this.list.length,this.completionModel.items),n?this.setState(4):this.setState(3),this.list.reveal(t,0),this.list.setFocus([t]),this.detailsBorderColor&&(this.details.element.style.borderColor=this.detailsBorderColor)}}},e.prototype.selectNextPage=function(){switch(this.state){case 0:return!1;case 5:return this.details.pageDown(),!0;case 1:return!this.isAuto;default:return this.list.focusNextPage(),!0}},e.prototype.selectNext=function(){switch(this.state){case 0:return!1;case 1:return!this.isAuto;default:return this.list.focusNext(1,!0),!0}},e.prototype.selectLast=function(){switch(this.state){case 0:return!1;case 5:return this.details.scrollBottom(),!0;case 1:return!this.isAuto;default:return this.list.focusLast(),!0}},e.prototype.selectPreviousPage=function(){switch(this.state){case 0:return!1;case 5:return this.details.pageUp(),!0;case 1:return!this.isAuto;default:return this.list.focusPreviousPage(),!0}},e.prototype.selectPrevious=function(){switch(this.state){case 0:return!1;case 1:return!this.isAuto;default:return this.list.focusPrevious(1,!0),!1}},e.prototype.selectFirst=function(){switch(this.state){case 0:return!1;case 5:return this.details.scrollTop(),!0;case 1:return!this.isAuto;default:return this.list.focusFirst(),!0}},e.prototype.getFocusedItem=function(){if(0!==this.state&&2!==this.state&&1!==this.state&&this.completionModel)return{item:this.list.getFocusedElements()[0],index:this.list.getFocus()[0],model:this.completionModel}},e.prototype.toggleDetailsFocus=function(){5===this.state?(this.setState(3),this.detailsBorderColor&&(this.details.element.style.borderColor=this.detailsBorderColor)):3===this.state&&this.expandDocsSettingFromStorage()&&(this.setState(5),this.detailsFocusBorderColor&&(this.details.element.style.borderColor=this.detailsFocusBorderColor)),this.telemetryService.publicLog2("suggestWidget:toggleDetailsFocus")},e.prototype.toggleDetails=function(){if(gt(this.list.getFocusedElements()[0]))if(this.expandDocsSettingFromStorage())this.updateExpandDocsSetting(!1),Object(Re["I"])(this.details.element),Object(Re["O"])(this.element,"docs-side"),Object(Re["O"])(this.element,"docs-below"),this.editor.layoutContentWidget(this),this.setStatusBarRightText(this.msgDetailMore),this.telemetryService.publicLog2("suggestWidget:collapseDetails");else{if(3!==this.state&&5!==this.state&&4!==this.state)return;this.updateExpandDocsSetting(!0),this.showDetails(!1),this.setStatusBarRightText(this.msgDetailsLess),this.telemetryService.publicLog2("suggestWidget:expandDetails")}},e.prototype.showDetails=function(e){e||this.expandSideOrBelow(),Object(Re["W"])(this.details.element),this.details.element.style.maxHeight=this.maxWidgetHeight+"px",e?this.details.renderLoading():this.details.renderItem(this.list.getFocusedElements()[0],this.explainMode),this.listElement.style.marginTop="0px",this.editor.layoutContentWidget(this),this.adjustDocsPosition(),this.editor.focus()},e.prototype.toggleExplainMode=function(){this.list.getFocusedElements()[0]&&this.expandDocsSettingFromStorage()&&(this.explainMode=!this.explainMode,this.showDetails(!1))},e.prototype.show=function(){var e=this,t=this.updateListHeight();t!==this.listHeight&&(this.editor.layoutContentWidget(this),this.listHeight=t),this.suggestWidgetVisible.set(!0),this.showTimeout.cancelAndSet((function(){Object(Re["e"])(e.element,"visible"),e.onDidShowEmitter.fire(e)}),100)},e.prototype.hide=function(){this.suggestWidgetVisible.reset(),this.suggestWidgetMultipleSuggestions.reset(),Object(Re["O"])(this.element,"visible")},e.prototype.hideWidget=function(){this.loadingTimeout.dispose(),this.setState(0),this.onDidHideEmitter.fire(this)},e.prototype.getPosition=function(){if(0===this.state)return null;var e=[2,1];return this.preferDocPositionTop&&(e=[1]),{position:this.editor.getPosition(),preference:e}},e.prototype.getDomNode=function(){return this.element},e.prototype.getId=function(){return e.ID},e.prototype.isFrozen=function(){return 4===this.state},e.prototype.updateListHeight=function(){var e=0;if(2===this.state||1===this.state)e=this.unfocusedHeight;else{var t=this.list.contentHeight/this.unfocusedHeight,n=this.editor.getOption(89).maxVisibleSuggestions;e=Math.min(t,n)*this.unfocusedHeight}return this.element.style.lineHeight=this.unfocusedHeight+"px",this.listElement.style.height=e+"px",this.statusBarElement.style.top=e+"px",this.list.layout(e),e},e.prototype.adjustDocsPosition=function(){if(this.editor.hasModel()){var e=this.editor.getOption(49),t=this.editor.getScrolledVisiblePosition(this.editor.getPosition()),n=Object(Re["B"])(this.editor.getDomNode()),i=n.left+t.left,r=n.top+t.top+t.height,o=Object(Re["B"])(this.element),s=o.left,a=o.top;if(this.docsPositionPreviousWidgetY&&this.docsPositionPreviousWidgetY<a&&!this.preferDocPositionTop)return this.preferDocPositionTop=!0,void this.adjustDocsPosition();this.docsPositionPreviousWidgetY=a,s<i-this.listWidth?Object(Re["e"])(this.element,"list-right"):Object(Re["O"])(this.element,"list-right"),Object(Re["H"])(this.element,"docs-side")&&r-e>a&&this.details.element.offsetHeight>this.listElement.offsetHeight&&(this.listElement.style.marginTop=this.details.element.offsetHeight-this.listElement.offsetHeight+"px")}},e.prototype.expandSideOrBelow=function(){if(!gt(this.focusedItem)&&this.firstFocusInCurrentList)return Object(Re["O"])(this.element,"docs-side"),void Object(Re["O"])(this.element,"docs-below");var e=this.element.style.maxWidth.match(/(\d+)px/);!e||Number(e[1])<this.maxWidgetWidth?(Object(Re["e"])(this.element,"docs-below"),Object(Re["O"])(this.element,"docs-side")):gt(this.focusedItem)&&(Object(Re["e"])(this.element,"docs-side"),Object(Re["O"])(this.element,"docs-below"))},Object.defineProperty(e.prototype,"maxWidgetHeight",{get:function(){return this.unfocusedHeight*this.editor.getOption(89).maxVisibleSuggestions},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"unfocusedHeight",{get:function(){var e=this.editor.getOptions();return e.get(91)||e.get(34).lineHeight},enumerable:!0,configurable:!0}),e.prototype.getHeight=function(e){return this.unfocusedHeight},e.prototype.getTemplateId=function(e){return"suggestion"},e.prototype.expandDocsSettingFromStorage=function(){return this.storageService.getBoolean("expandSuggestionDocs",0,at)},e.prototype.updateExpandDocsSetting=function(e){this.storageService.store("expandSuggestionDocs",e,0)},e.prototype.setStatusBarLeftText=function(e){this.statusBarLeftSpan.innerText=e},e.prototype.setStatusBarRightText=function(e){this.statusBarRightSpan.innerText=e},e.prototype.dispose=function(){this.details.dispose(),this.list.dispose(),this.toDispose.dispose(),this.loadingTimeout.dispose(),this.showTimeout.dispose()},e.ID="editor.widget.suggestWidget",e.LOADING_MESSAGE=B["a"]("suggestWidget.loading","Loading..."),e.NO_SUGGESTIONS_MESSAGE=B["a"]("suggestWidget.noSuggestions","No suggestions."),e=it([rt(1,je["a"]),rt(2,He["a"]),rt(3,D["c"]),rt(4,te["c"]),rt(5,g["a"]),rt(6,We["a"]),rt(7,ze["a"]),rt(8,v["a"])],e),e}();Object(te["e"])((function(e,t){var n=e.getColor(ht);n&&t.addRule(".monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-highlighted-label .highlight { color: "+n+"; }");var i=e.getColor(ct);i&&t.addRule(".monaco-editor .suggest-widget { color: "+i+"; }");var r=e.getColor(ne["cc"]);r&&t.addRule(".monaco-editor .suggest-widget a { color: "+r+"; }");var o=e.getColor(ne["bc"]);o&&t.addRule(".monaco-editor .suggest-widget code { background-color: "+o+"; }")}));var yt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),bt=function(e,t,n,i){var r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},wt=function(e,t){return function(n,i){t(n,i,e)}},Ct=function(e){function t(n,i){var r=e.call(this)||this;return r._editor=n,r._enabled=!1,r._ckAtEnd=t.AtEnd.bindTo(i),r._register(r._editor.onDidChangeConfiguration((function(e){return e.hasChanged(94)&&r._update()}))),r._update(),r}return yt(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),Object(a["f"])(this._selectionListener),this._ckAtEnd.reset()},t.prototype._update=function(){var e=this,t="on"===this._editor.getOption(94);if(this._enabled!==t)if(this._enabled=t,this._enabled){var n=function(){if(e._editor.hasModel()){var t=e._editor.getModel(),n=e._editor.getSelection(),i=t.getWordAtPosition(n.getStartPosition());i?e._ckAtEnd.set(i.endColumn===n.getStartPosition().column):e._ckAtEnd.set(!1)}else e._ckAtEnd.set(!1)};this._selectionListener=this._editor.onDidChangeCursorSelection(n),n()}else this._selectionListener&&(this._ckAtEnd.reset(),this._selectionListener.dispose(),this._selectionListener=void 0)},t.AtEnd=new D["d"]("atEndOfWord",!1),t=bt([wt(1,D["c"])],t),t}(a["a"]),St=n("pAvP"),Nt=n("746U"),Lt=n("MXAL"),Et=function(){function e(e,t,n){var i=this;this._disposables=new a["b"],this._disposables.add(t.onDidShow((function(){return i._onItem(t.getFocusedItem())}))),this._disposables.add(t.onDidFocus(this._onItem,this)),this._disposables.add(t.onDidHide(this.reset,this)),this._disposables.add(e.onWillType((function(r){if(i._active&&!t.isFrozen()){var o=r.charCodeAt(r.length-1);i._active.acceptCharacters.has(o)&&e.getOption(0)&&n(i._active.item)}})))}return e.prototype._onItem=function(e){if(e&&Object(r["q"])(e.item.completion.commitCharacters)){if(!this._active||this._active.item.item!==e.item){for(var t=new Lt["b"],n=0,i=e.item.completion.commitCharacters;n<i.length;n++){var o=i[n];o.length>0&&t.add(o.charCodeAt(0))}this._active={acceptCharacters:t,item:e}}}else this.reset()},e.prototype.reset=function(){this._active=void 0},e.prototype.dispose=function(){this._disposables.dispose()},e}(),xt=n("MNsG"),Ot=n("4y0V"),Bt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),kt=function(){function e(e){var t=this;this._controller=e,this._disposables=new a["b"],this._decorations=[],this._disposables.add(e.model.onDidSuggest((function(e){if(!e.shy){var n=t._controller.widget.getValue(),i=n.getFocusedItem();i&&t._highlight(i.item),t._widgetListener||(t._widgetListener=n.onDidFocus((function(e){return t._highlight(e.item)})))}}))),this._disposables.add(e.model.onDidCancel((function(){t._reset()})))}return e.prototype.dispose=function(){this._reset(),this._disposables.dispose(),Object(a["f"])(this._widgetListener),Object(a["f"])(this._shiftKeyListener)},e.prototype._reset=function(){this._decorations=this._controller.editor.deltaDecorations(this._decorations,[]),this._shiftKeyListener&&(this._shiftKeyListener.dispose(),this._shiftKeyListener=void 0)},e.prototype._highlight=function(e){var t,n=this;this._currentItem=e;var i=this._controller.editor.getOption(89),r=[];if(i.insertHighlight){this._shiftKeyListener||(this._shiftKeyListener=Dt.event((function(){return n._highlight(n._currentItem)})));var o=this._controller.getOverwriteInfo(e,Dt.isPressed),s=this._controller.editor.getPosition();if("insert"===i.insertMode&&o.overwriteAfter>0)r=[{range:new c["a"](s.lineNumber,s.column,s.lineNumber,s.column+o.overwriteAfter),options:{inlineClassName:"suggest-insert-unexpected"}}];else if("replace"===i.insertMode&&0===o.overwriteAfter){var a=null===(t=this._controller.editor.getModel())||void 0===t?void 0:t.getWordAtPosition(s);a&&a.endColumn>s.column&&(r=[{range:new c["a"](s.lineNumber,s.column,s.lineNumber,a.endColumn),options:{inlineClassName:"suggest-insert-unexpected"}}])}}this._decorations=this._controller.editor.deltaDecorations(this._decorations,r)},e}(),Dt=new(function(e){function t(){var t=e.call(this)||this;return t._subscriptions=new a["b"],t._isPressed=!1,t._subscriptions.add(Object(Ot["a"])(document.body,"keydown")((function(e){return t.isPressed=e.shiftKey}))),t._subscriptions.add(Object(Ot["a"])(document.body,"keyup")((function(){return t.isPressed=!1}))),t._subscriptions.add(Object(Ot["a"])(document.body,"mouseleave")((function(){return t.isPressed=!1}))),t._subscriptions.add(Object(Ot["a"])(document.body,"blur")((function(){return t.isPressed=!1}))),t}return Bt(t,e),Object.defineProperty(t.prototype,"isPressed",{get:function(){return this._isPressed},set:function(e){this._isPressed!==e&&(this._isPressed=e,this.fire(e))},enumerable:!0,configurable:!0}),t.prototype.dispose=function(){this._subscriptions.dispose(),e.prototype.dispose.call(this)},t}(P["a"])),It=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Mt=function(){return Mt=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Mt.apply(this,arguments)},Ft=function(e,t,n,i){var r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Tt=function(e,t){return function(n,i){t(n,i,e)}},Rt=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i},Pt=!1,Ut=function(){function e(e,t){this._model=e,this._position=t;var n=e.getLineMaxColumn(t.lineNumber);if(n!==t.column){var i=e.getOffsetAt(t),r=e.getPositionAt(i+1);this._marker=e.deltaDecorations([],[{range:c["a"].fromPositions(t,r),options:{stickiness:1}}])}}return e.prototype.dispose=function(){this._marker&&!this._model.isDisposed()&&this._model.deltaDecorations(this._marker,[])},e.prototype.delta=function(e){if(this._model.isDisposed()||this._position.lineNumber!==e.lineNumber)return 0;if(this._marker){var t=this._model.getDecorationRange(this._marker[0]),n=this._model.getOffsetAt(t.getStartPosition());return n-this._model.getOffsetAt(e)}return this._model.getLineMaxColumn(e.lineNumber)-e.column},e}(),Ht=function(){function e(e,t,n,i,r,o){var u=this;this._memoryService=n,this._commandService=i,this._contextKeyService=r,this._instantiationService=o,this._lineSuffix=new a["d"],this._toDispose=new a["b"],this.editor=e,this.model=new ee(this.editor,t),this.widget=this._toDispose.add(new m["b"]((function(){var e=u._instantiationService.createInstance(_t,u.editor);u._toDispose.add(e),u._toDispose.add(e.onDidSelect((function(e){return u._insertSuggestion(e,0)}),u));var t=new Et(u.editor,e,(function(e){return u._insertSuggestion(e,2)}));u._toDispose.add(t),u._toDispose.add(u.model.onDidSuggest((function(e){0===e.completionModel.items.length&&t.reset()})));var n=M["b"].MakesTextEdit.bindTo(u._contextKeyService);return u._toDispose.add(e.onDidFocus((function(e){var t=e.item,i=u.editor.getPosition(),r=t.editStart.column,o=i.column,s=!0;if("smart"===u.editor.getOption(1)&&2===u.model.state&&!t.completion.command&&!t.completion.additionalTextEdits&&!(4&t.completion.insertTextRules)&&o-r===t.completion.insertText.length){var a=u.editor.getModel().getValueInRange({startLineNumber:i.lineNumber,startColumn:r,endLineNumber:i.lineNumber,endColumn:o});s=a!==t.completion.insertText}n.set(s)}))),u._toDispose.add(Object(a["h"])((function(){return n.reset()}))),u._toDispose.add(e.onDetailsKeyDown((function(e){e.toKeybinding().equals(new s["e"](!0,!1,!1,!1,33))||xt["e"]&&e.toKeybinding().equals(new s["e"](!1,!1,!1,!0,33))?e.stopPropagation():e.toKeybinding().isModifierKey()||u.editor.focus()}))),e}))),this._alternatives=this._toDispose.add(new m["b"]((function(){return u._toDispose.add(new R(u.editor,u._contextKeyService))}))),this._toDispose.add(o.createInstance(Ct,e)),this._toDispose.add(this.model.onDidTrigger((function(e){u.widget.getValue().showTriggered(e.auto,e.shy?250:50),u._lineSuffix.value=new Ut(u.editor.getModel(),e.position)}))),this._toDispose.add(this.model.onDidSuggest((function(e){if(!e.shy){var t=u._memoryService.select(u.editor.getModel(),u.editor.getPosition(),e.completionModel.items);u.widget.getValue().showSuggestions(e.completionModel,t,e.isFrozen,e.auto)}}))),this._toDispose.add(this.model.onDidCancel((function(e){e.retrigger||u.widget.getValue().hideWidget()}))),this._toDispose.add(this.editor.onDidBlurEditorWidget((function(){Pt||(u.model.cancel(),u.model.clear())})));var l=M["b"].AcceptSuggestionsOnEnter.bindTo(r),c=function(){var e=u.editor.getOption(1);l.set("on"===e||"smart"===e)};this._toDispose.add(this.editor.onDidChangeConfiguration((function(){return c()}))),c(),this._toDispose.add(new kt(this))}return e.get=function(t){return t.getContribution(e.ID)},e.prototype.dispose=function(){this._alternatives.dispose(),this._toDispose.dispose(),this.widget.dispose(),this.model.dispose(),this._lineSuffix.dispose()},e.prototype._insertSuggestion=function(e,t){var n,i=this;if(!e||!e.item)return this._alternatives.getValue().reset(),this.model.cancel(),void this.model.clear();if(this.editor.hasModel()){var r=this.editor.getModel(),s=r.getAlternativeVersionId(),a=e.item,u=a.completion;1&t||this.editor.pushUndoStop();var d=this.getOverwriteInfo(a,Boolean(8&t));this._memoryService.memorize(r,this.editor.getPosition(),a),Array.isArray(u.additionalTextEdits)&&this.editor.executeEdits("suggestController.additionalTextEdits",u.additionalTextEdits.map((function(e){return l["a"].replace(c["a"].lift(e.range),e.text)})));var p=u.insertText;4&u.insertTextRules||(p=f["c"].escape(p)),h["SnippetController2"].get(this.editor).insert(p,{overwriteBefore:d.overwriteBefore,overwriteAfter:d.overwriteAfter,undoStopBefore:!1,undoStopAfter:!1,adjustWhitespace:!(1&u.insertTextRules)}),2&t||this.editor.pushUndoStop(),u.command?u.command.id===jt.id?this.model.trigger({auto:!0,shy:!1},!0):((n=this._commandService).executeCommand.apply(n,Rt([u.command.id],u.command.arguments?Rt(u.command.arguments):[])).catch(o["e"]).finally((function(){return i.model.clear()})),this.model.cancel()):(this.model.cancel(),this.model.clear()),4&t&&this._alternatives.getValue().set(e,(function(e){while(r.canUndo()){s!==r.getAlternativeVersionId()&&r.undo(),i._insertSuggestion(e,3|(8&t?8:0));break}})),this._alertCompletionItem(e.item)}},e.prototype.getOverwriteInfo=function(e,t){Object(Nt["a"])(this.editor.hasModel());var n="replace"===this.editor.getOption(89).insertMode;t&&(n=!n);var i=e.position.column-e.editStart.column,r=(n?e.editReplaceEnd.column:e.editInsertEnd.column)-e.position.column,o=this.editor.getPosition().column-e.position.column,s=this._lineSuffix.value?this._lineSuffix.value.delta(this.editor.getPosition()):0;return{overwriteBefore:i+o,overwriteAfter:r+s}},e.prototype._alertCompletionItem=function(e){var t=e.completion,n="string"===typeof t.label?t.label:t.label.name;if(Object(r["q"])(t.additionalTextEdits)){var o=B["a"]("arai.alert.snippet","Accepting '{0}' made {1} additional edits",n,t.additionalTextEdits.length);Object(i["a"])(o)}},e.prototype.triggerSuggest=function(e){this.editor.hasModel()&&(this.model.trigger({auto:!1,shy:!1},!1,e),this.editor.revealLine(this.editor.getPosition().lineNumber,0),this.editor.focus())},e.prototype.triggerSuggestAndAcceptBest=function(e){var t=this;if(this.editor.hasModel()){var n=this.editor.getPosition(),i=function(){n.equals(t.editor.getPosition())&&t._commandService.executeCommand(e.fallback)},r=function(e){if(4&e.completion.insertTextRules||e.completion.additionalTextEdits)return!0;var n=t.editor.getPosition(),i=e.editStart.column,r=n.column;if(r-i!==e.completion.insertText.length)return!0;var o=t.editor.getModel().getValueInRange({startLineNumber:n.lineNumber,startColumn:i,endLineNumber:n.lineNumber,endColumn:r});return o!==e.completion.insertText};P["b"].once(this.model.onDidTrigger)((function(e){var n=[];P["b"].any(t.model.onDidTrigger,t.model.onDidCancel)((function(){Object(a["f"])(n),i()}),void 0,n),t.model.onDidSuggest((function(e){var o=e.completionModel;if(Object(a["f"])(n),0!==o.items.length){var s=t._memoryService.select(t.editor.getModel(),t.editor.getPosition(),o.items),u=o.items[s];r(u)?(t.editor.pushUndoStop(),t._insertSuggestion({index:s,item:u,model:o},7)):i()}else i()}),void 0,n)})),this.model.trigger({auto:!1,shy:!0}),this.editor.revealLine(n.lineNumber,0),this.editor.focus()}},e.prototype.acceptSelectedSuggestion=function(e,t){var n=this.widget.getValue().getFocusedItem(),i=0;e&&(i|=4),t&&(i|=8),this._insertSuggestion(n,i)},e.prototype.acceptNextSuggestion=function(){this._alternatives.getValue().next()},e.prototype.acceptPrevSuggestion=function(){this._alternatives.getValue().prev()},e.prototype.cancelSuggestWidget=function(){this.model.cancel(),this.model.clear(),this.widget.getValue().hideWidget()},e.prototype.selectNextSuggestion=function(){this.widget.getValue().selectNext()},e.prototype.selectNextPageSuggestion=function(){this.widget.getValue().selectNextPage()},e.prototype.selectLastSuggestion=function(){this.widget.getValue().selectLast()},e.prototype.selectPrevSuggestion=function(){this.widget.getValue().selectPrevious()},e.prototype.selectPrevPageSuggestion=function(){this.widget.getValue().selectPreviousPage()},e.prototype.selectFirstSuggestion=function(){this.widget.getValue().selectFirst()},e.prototype.toggleSuggestionDetails=function(){this.widget.getValue().toggleDetails()},e.prototype.toggleExplainMode=function(){this.widget.getValue().toggleExplainMode()},e.prototype.toggleSuggestionFocus=function(){this.widget.getValue().toggleDetailsFocus()},e.ID="editor.contrib.suggestController",e=Ft([Tt(1,St["a"]),Tt(2,O),Tt(3,k["b"]),Tt(4,D["c"]),Tt(5,v["a"])],e),e}(),jt=function(e){function t(){return e.call(this,{id:t.id,label:B["a"]("suggest.trigger.label","Trigger Suggest"),alias:"Trigger Suggest",precondition:D["a"].and(d["a"].writable,d["a"].hasCompletionItemProvider),kbOpts:{kbExpr:d["a"].textInputFocus,primary:2058,mac:{primary:266,secondary:[521]},weight:100}})||this}return It(t,e),t.prototype.run=function(e,t){var n=Ht.get(t);n&&n.triggerSuggest()},t.id="editor.action.triggerSuggest",t}(u["b"]);Object(u["h"])(Ht.ID,Ht),Object(u["f"])(jt);var Qt=190,Vt=u["c"].bindToContribution(Ht.get);Object(u["g"])(new Vt({id:"acceptSelectedSuggestion",precondition:M["b"].Visible,handler:function(e){e.acceptSelectedSuggestion(!0,!1)}})),I["a"].registerKeybindingRule({id:"acceptSelectedSuggestion",when:D["a"].and(M["b"].Visible,d["a"].textInputFocus),primary:2,weight:Qt}),I["a"].registerKeybindingRule({id:"acceptSelectedSuggestion",when:D["a"].and(M["b"].Visible,d["a"].textInputFocus,M["b"].AcceptSuggestionsOnEnter,M["b"].MakesTextEdit),primary:3,weight:Qt}),Object(u["g"])(new Vt({id:"acceptAlternativeSelectedSuggestion",precondition:D["a"].and(M["b"].Visible,d["a"].textInputFocus),kbOpts:{weight:Qt,kbExpr:d["a"].textInputFocus,primary:1027,secondary:[1026]},handler:function(e){e.acceptSelectedSuggestion(!1,!0)}})),k["a"].registerCommandAlias("acceptSelectedSuggestionOnEnter","acceptSelectedSuggestion"),Object(u["g"])(new Vt({id:"hideSuggestWidget",precondition:M["b"].Visible,handler:function(e){return e.cancelSuggestWidget()},kbOpts:{weight:Qt,kbExpr:d["a"].textInputFocus,primary:9,secondary:[1033]}})),Object(u["g"])(new Vt({id:"selectNextSuggestion",precondition:D["a"].and(M["b"].Visible,M["b"].MultipleSuggestions),handler:function(e){return e.selectNextSuggestion()},kbOpts:{weight:Qt,kbExpr:d["a"].textInputFocus,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}})),Object(u["g"])(new Vt({id:"selectNextPageSuggestion",precondition:D["a"].and(M["b"].Visible,M["b"].MultipleSuggestions),handler:function(e){return e.selectNextPageSuggestion()},kbOpts:{weight:Qt,kbExpr:d["a"].textInputFocus,primary:12,secondary:[2060]}})),Object(u["g"])(new Vt({id:"selectLastSuggestion",precondition:D["a"].and(M["b"].Visible,M["b"].MultipleSuggestions),handler:function(e){return e.selectLastSuggestion()}})),Object(u["g"])(new Vt({id:"selectPrevSuggestion",precondition:D["a"].and(M["b"].Visible,M["b"].MultipleSuggestions),handler:function(e){return e.selectPrevSuggestion()},kbOpts:{weight:Qt,kbExpr:d["a"].textInputFocus,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}})),Object(u["g"])(new Vt({id:"selectPrevPageSuggestion",precondition:D["a"].and(M["b"].Visible,M["b"].MultipleSuggestions),handler:function(e){return e.selectPrevPageSuggestion()},kbOpts:{weight:Qt,kbExpr:d["a"].textInputFocus,primary:11,secondary:[2059]}})),Object(u["g"])(new Vt({id:"selectFirstSuggestion",precondition:D["a"].and(M["b"].Visible,M["b"].MultipleSuggestions),handler:function(e){return e.selectFirstSuggestion()}})),Object(u["g"])(new Vt({id:"toggleSuggestionDetails",precondition:M["b"].Visible,handler:function(e){return e.toggleSuggestionDetails()},kbOpts:{weight:Qt,kbExpr:d["a"].textInputFocus,primary:2058,mac:{primary:266}}})),Object(u["g"])(new Vt({id:"toggleExplainMode",precondition:M["b"].Visible,handler:function(e){return e.toggleExplainMode()},kbOpts:{weight:100,primary:2133}})),Object(u["g"])(new Vt({id:"toggleSuggestionFocus",precondition:M["b"].Visible,handler:function(e){return e.toggleSuggestionFocus()},kbOpts:{weight:Qt,kbExpr:d["a"].textInputFocus,primary:2570,mac:{primary:778}}})),Object(u["g"])(new Vt({id:"insertBestCompletion",precondition:D["a"].and(D["a"].equals("config.editor.tabCompletion","on"),Ct.AtEnd,M["b"].Visible.toNegated(),R.OtherSuggestions.toNegated(),h["SnippetController2"].InSnippetMode.toNegated()),handler:function(e,t){e.triggerSuggestAndAcceptBest(Object(Nt["i"])(t)?Mt({fallback:"tab"},t):{fallback:"tab"})},kbOpts:{weight:Qt,primary:2}})),Object(u["g"])(new Vt({id:"insertNextSuggestion",precondition:D["a"].and(D["a"].equals("config.editor.tabCompletion","on"),R.OtherSuggestions,M["b"].Visible.toNegated(),h["SnippetController2"].InSnippetMode.toNegated()),handler:function(e){return e.acceptNextSuggestion()},kbOpts:{weight:Qt,kbExpr:d["a"].textInputFocus,primary:2}})),Object(u["g"])(new Vt({id:"insertPrevSuggestion",precondition:D["a"].and(D["a"].equals("config.editor.tabCompletion","on"),R.OtherSuggestions,M["b"].Visible.toNegated(),h["SnippetController2"].InSnippetMode.toNegated()),handler:function(e){return e.acceptPrevSuggestion()},kbOpts:{weight:Qt,kbExpr:d["a"].textInputFocus,primary:1026}}))},epnl:function(e,t,n){},eq1K:function(e,t,n){},erNZ:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var i,r=n("N0LK");i="undefined"!==typeof TextDecoder?function(e){return new o(e)}:function(e){return new s};var o=function(){function e(e){this._decoder=new TextDecoder("UTF-16LE"),this._capacity=0|e,this._buffer=new Uint16Array(this._capacity),this._completedStrings=null,this._bufferLength=0}return e.prototype.reset=function(){this._completedStrings=null,this._bufferLength=0},e.prototype.build=function(){return null!==this._completedStrings?(this._flushBuffer(),this._completedStrings.join("")):this._buildBuffer()},e.prototype._buildBuffer=function(){if(0===this._bufferLength)return"";var e=new Uint16Array(this._buffer.buffer,0,this._bufferLength);return this._decoder.decode(e)},e.prototype._flushBuffer=function(){var e=this._buildBuffer();this._bufferLength=0,null===this._completedStrings?this._completedStrings=[e]:this._completedStrings[this._completedStrings.length]=e},e.prototype.write1=function(e){var t=this._capacity-this._bufferLength;t<=1&&(0===t||r["z"](e))&&this._flushBuffer(),this._buffer[this._bufferLength++]=e},e.prototype.appendASCII=function(e){this._bufferLength===this._capacity&&this._flushBuffer(),this._buffer[this._bufferLength++]=e},e.prototype.appendASCIIString=function(e){var t=e.length;if(this._bufferLength+t>=this._capacity)return this._flushBuffer(),void(this._completedStrings[this._completedStrings.length]=e);for(var n=0;n<t;n++)this._buffer[this._bufferLength++]=e.charCodeAt(n)},e}(),s=function(){function e(){this._pieces=[],this._piecesLen=0}return e.prototype.reset=function(){this._pieces=[],this._piecesLen=0},e.prototype.build=function(){return this._pieces.join("")},e.prototype.write1=function(e){this._pieces[this._piecesLen++]=String.fromCharCode(e)},e.prototype.appendASCII=function(e){this._pieces[this._piecesLen++]=String.fromCharCode(e)},e.prototype.appendASCIIString=function(e){this._pieces[this._piecesLen++]=e},e}()},feEw:function(e,t,n){"use strict";n.d(t,"a",(function(){return L})),n.d(t,"b",(function(){return B}));var i=n("qj0h"),r=n("pmY6"),o=n("pg8w"),s=n("EffR"),a=n("MI8n"),u=n("4y0V"),l=n("GJhM"),c=n("nuFA");function d(e,t){for(var n=[],i=0,r=t;i<r.length;i++){var o=r[i];if(!(e.start>=o.range.end)){if(e.end<o.range.start)break;var s=c["a"].intersect(e,o.range);c["a"].isEmpty(s)||n.push({range:s,size:o.size})}}return n}function h(e,t){var n=e.start,i=e.end;return{start:n+t,end:i+t}}function f(e){for(var t=[],n=null,i=0,r=e;i<r.length;i++){var o=r[i],s=o.range.start,a=o.range.end,u=o.size;n&&u===n.size?n.range.end=a:(n={range:{start:s,end:a},size:u},t.push(n))}return t}function p(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return f(e.reduce((function(e,t){return e.concat(t)}),[]))}var g=function(){function e(){this.groups=[],this._size=0}return e.prototype.splice=function(e,t,n){void 0===n&&(n=[]);var i=n.length-t,r=d({start:0,end:e},this.groups),o=d({start:e+t,end:Number.POSITIVE_INFINITY},this.groups).map((function(e){return{range:h(e.range,i),size:e.size}})),s=n.map((function(t,n){return{range:{start:e+n,end:e+n+1},size:t.size}}));this.groups=p(r,s,o),this._size=this.groups.reduce((function(e,t){return e+t.size*(t.range.end-t.range.start)}),0)},Object.defineProperty(e.prototype,"count",{get:function(){var e=this.groups.length;return e?this.groups[e-1].range.end:0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),e.prototype.indexAt=function(e){if(e<0)return-1;for(var t=0,n=0,i=0,r=this.groups;i<r.length;i++){var o=r[i],s=o.range.end-o.range.start,a=n+s*o.size;if(e<a)return t+Math.floor((e-n)/o.size);t+=s,n=a}return t},e.prototype.indexAfter=function(e){return Math.min(this.indexAt(e)+1,this.count)},e.prototype.positionAt=function(e){if(e<0)return-1;for(var t=0,n=0,i=0,r=this.groups;i<r.length;i++){var o=r[i],s=o.range.end-o.range.start,a=n+s;if(e<a)return t+(e-n)*o.size;t+=s*o.size,n=a}return-1},e}();function A(e){try{e.parentElement&&e.parentElement.removeChild(e)}catch(t){}}var m=function(){function e(e){this.renderers=e,this.cache=new Map}return e.prototype.alloc=function(e){var t=this.getTemplateCache(e).pop();if(!t){var n=Object(s["a"])(".monaco-list-row"),i=this.getRenderer(e),r=i.renderTemplate(n);t={domNode:n,templateId:e,templateData:r}}return t},e.prototype.release=function(e){e&&this.releaseRow(e)},e.prototype.releaseRow=function(e){var t=e.domNode,n=e.templateId;t&&(Object(s["O"])(t,"scrolling"),A(t));var i=this.getTemplateCache(n);i.push(e)},e.prototype.getTemplateCache=function(e){var t=this.cache.get(e);return t||(t=[],this.cache.set(e,t)),t},e.prototype.dispose=function(){var e=this;this.cache.forEach((function(t,n){for(var i=0,r=t;i<r.length;i++){var o=r[i],s=e.getRenderer(n);s.disposeTemplate(o.templateData),o.domNode=null,o.templateData=null}})),this.cache.clear()},e.prototype.getRenderer=function(e){var t=this.renderers.get(e);if(!t)throw new Error("No renderer found for "+e);return t},e}(),v=n("ZCR3"),_=n("6OMU"),y=n("ZQ78"),b=n("X+cX"),w=n("D3Dy"),C=function(e,t,n,i){var r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},S=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i},N={useShadows:!0,verticalScrollMode:1,setRowLineHeight:!0,supportDynamicHeights:!1,dnd:{getDragElements:function(e){return[e]},getDragURI:function(){return null},onDragStart:function(){},onDragOver:function(){return!1},drop:function(){}},horizontalScrolling:!1},L=function(){function e(e){this.elements=e}return e.prototype.update=function(){},e.prototype.getData=function(){return this.elements},e}(),E=function(){function e(e){this.elements=e}return e.prototype.update=function(){},e.prototype.getData=function(){return this.elements},e}(),x=function(){function e(){this.types=[],this.files=[]}return e.prototype.update=function(e){var t;if(e.types&&(t=this.types).splice.apply(t,S([0,this.types.length],e.types)),e.files){this.files.splice(0,this.files.length);for(var n=0;n<e.files.length;n++){var i=e.files.item(n);i&&(i.size||i.type)&&this.files.push(i)}}},e.prototype.getData=function(){return{types:this.types,files:this.files}},e}();function O(e,t){return Array.isArray(e)&&Array.isArray(t)?Object(_["g"])(e,t):e===t}var B=function(){function e(t,n,c,d){var h=this;if(void 0===d&&(d=N),this.virtualDelegate=n,this.domId="list_id_"+ ++e.InstanceCount,this.renderers=new Map,this.renderWidth=0,this._scrollHeight=0,this.scrollableElementUpdateDisposable=null,this.scrollableElementWidthDelayer=new b["a"](50),this.splicing=!1,this.dragOverAnimationStopDisposable=r["a"].None,this.dragOverMouseY=0,this.canDrop=!1,this.currentDragFeedbackDisposable=r["a"].None,this.onDragLeaveTimeout=r["a"].None,this.disposables=new r["b"],this._onDidChangeContentHeight=new a["a"],d.horizontalScrolling&&d.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");this.items=[],this.itemId=0,this.rangeMap=new g;for(var f=0,p=c;f<p.length;f++){var A=p[f];this.renderers.set(A.templateId,A)}this.cache=this.disposables.add(new m(this.renderers)),this.lastRenderTop=0,this.lastRenderHeight=0,this.domNode=document.createElement("div"),this.domNode.className="monaco-list",s["e"](this.domNode,this.domId),this.domNode.tabIndex=0,s["X"](this.domNode,"mouse-support","boolean"!==typeof d.mouseSupport||d.mouseSupport),this.horizontalScrolling=Object(i["f"])(d,(function(e){return e.horizontalScrolling}),N.horizontalScrolling),s["X"](this.domNode,"horizontal-scrolling",this.horizontalScrolling),this.additionalScrollHeight="undefined"===typeof d.additionalScrollHeight?0:d.additionalScrollHeight,this.ariaProvider=d.ariaProvider||{getSetSize:function(e,t,n){return n},getPosInSet:function(e,t){return t+1}},this.rowsContainer=document.createElement("div"),this.rowsContainer.className="monaco-list-rows",this.rowsContainer.style.transform="translate3d(0px, 0px, 0px)",this.disposables.add(o["b"].addTarget(this.rowsContainer)),this.scrollableElement=this.disposables.add(new l["b"](this.rowsContainer,{alwaysConsumeMouseWheel:!0,horizontal:this.horizontalScrolling?1:2,vertical:Object(i["f"])(d,(function(e){return e.verticalScrollMode}),N.verticalScrollMode),useShadows:Object(i["f"])(d,(function(e){return e.useShadows}),N.useShadows)})),this.domNode.appendChild(this.scrollableElement.getDomNode()),t.appendChild(this.domNode),this.scrollableElement.onScroll(this.onScroll,this,this.disposables),Object(u["a"])(this.rowsContainer,o["a"].Change)(this.onTouchChange,this,this.disposables),Object(u["a"])(this.scrollableElement.getDomNode(),"scroll")((function(e){return e.target.scrollTop=0}),null,this.disposables),a["b"].map(Object(u["a"])(this.domNode,"dragover"),(function(e){return h.toDragEvent(e)}))(this.onDragOver,this,this.disposables),a["b"].map(Object(u["a"])(this.domNode,"drop"),(function(e){return h.toDragEvent(e)}))(this.onDrop,this,this.disposables),Object(u["a"])(this.domNode,"dragleave")(this.onDragLeave,this,this.disposables),Object(u["a"])(window,"dragend")(this.onDragEnd,this,this.disposables),this.setRowLineHeight=Object(i["f"])(d,(function(e){return e.setRowLineHeight}),N.setRowLineHeight),this.supportDynamicHeights=Object(i["f"])(d,(function(e){return e.supportDynamicHeights}),N.supportDynamicHeights),this.dnd=Object(i["f"])(d,(function(e){return e.dnd}),N.dnd),this.layout()}return Object.defineProperty(e.prototype,"contentHeight",{get:function(){return this.rangeMap.size},enumerable:!0,configurable:!0}),e.prototype.splice=function(e,t,n){if(void 0===n&&(n=[]),this.splicing)throw new Error("Can't run recursive splices.");this.splicing=!0;try{return this._splice(e,t,n)}finally{this.splicing=!1,this._onDidChangeContentHeight.fire(this.contentHeight)}},e.prototype._splice=function(e,t,n){var i,o=this;void 0===n&&(n=[]);for(var s=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),a={start:e,end:e+t},u=c["a"].intersect(s,a),l=u.start;l<u.end;l++)this.removeItemFromDOM(l);var d,f={start:e+t,end:this.items.length},p=c["a"].intersect(f,s),A=c["a"].relativeComplement(f,s),m=n.map((function(e){return{id:String(o.itemId++),element:e,templateId:o.virtualDelegate.getTemplateId(e),size:o.virtualDelegate.getHeight(e),width:void 0,hasDynamicHeight:!!o.virtualDelegate.hasDynamicHeight&&o.virtualDelegate.hasDynamicHeight(e),lastDynamicHeightWidth:void 0,row:null,uri:void 0,dropTarget:!1,dragStartDisposable:r["a"].None}}));0===e&&t>=this.items.length?(this.rangeMap=new g,this.rangeMap.splice(0,0,m),this.items=m,d=[]):(this.rangeMap.splice(e,t,m),d=(i=this.items).splice.apply(i,S([e,t],m)));var v=n.length-t,_=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),y=h(p,v),b=c["a"].intersect(_,y);for(l=b.start;l<b.end;l++)this.updateItemInDOM(this.items[l],l);for(var w=c["a"].relativeComplement(y,_),C=0,N=w;C<N.length;C++){var L=N[C];for(l=L.start;l<L.end;l++)this.removeItemFromDOM(l)}for(var E=A.map((function(e){return h(e,v)})),x={start:e,end:e+n.length},O=S([x],E).map((function(e){return c["a"].intersect(_,e)})),B=this.getNextToLastElement(O),k=0,D=O;k<D.length;k++)for(L=D[k],l=L.start;l<L.end;l++)this.insertItemInDOM(l,B);return this.eventuallyUpdateScrollDimensions(),this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight),d.map((function(e){return e.element}))},e.prototype.eventuallyUpdateScrollDimensions=function(){var e=this;this._scrollHeight=this.contentHeight,this.rowsContainer.style.height=this._scrollHeight+"px",this.scrollableElementUpdateDisposable||(this.scrollableElementUpdateDisposable=s["V"]((function(){e.scrollableElement.setScrollDimensions({scrollHeight:e.scrollHeight}),e.updateScrollWidth(),e.scrollableElementUpdateDisposable=null})))},e.prototype.eventuallyUpdateScrollWidth=function(){var e=this;this.horizontalScrolling&&this.scrollableElementWidthDelayer.trigger((function(){return e.updateScrollWidth()}))},e.prototype.updateScrollWidth=function(){if(this.horizontalScrolling){0===this.items.length&&this.scrollableElement.setScrollDimensions({scrollWidth:0});for(var e=0,t=0,n=this.items;t<n.length;t++){var i=n[t];"undefined"!==typeof i.width&&(e=Math.max(e,i.width))}this.scrollWidth=e,this.scrollableElement.setScrollDimensions({scrollWidth:e+10})}},e.prototype.rerender=function(){if(this.supportDynamicHeights){for(var e=0,t=this.items;e<t.length;e++){var n=t[e];n.lastDynamicHeightWidth=void 0}this._rerender(this.lastRenderTop,this.lastRenderHeight)}},Object.defineProperty(e.prototype,"length",{get:function(){return this.items.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"renderHeight",{get:function(){var e=this.scrollableElement.getScrollDimensions();return e.height},enumerable:!0,configurable:!0}),e.prototype.element=function(e){return this.items[e].element},e.prototype.domElement=function(e){var t=this.items[e].row;return t&&t.domNode},e.prototype.elementHeight=function(e){return this.items[e].size},e.prototype.elementTop=function(e){return this.rangeMap.positionAt(e)},e.prototype.indexAt=function(e){return this.rangeMap.indexAt(e)},e.prototype.indexAfter=function(e){return this.rangeMap.indexAfter(e)},e.prototype.layout=function(e,t){var n={height:"number"===typeof e?e:s["z"](this.domNode)};this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,n.scrollHeight=this.scrollHeight),this.scrollableElement.setScrollDimensions(n),"undefined"!==typeof t&&(this.renderWidth=t,this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight),this.horizontalScrolling&&this.scrollableElement.setScrollDimensions({width:"number"===typeof t?t:s["A"](this.domNode)}))},e.prototype.render=function(e,t,n,i){for(var r=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),o=this.getRenderRange(e,t),s=c["a"].relativeComplement(o,r),a=c["a"].relativeComplement(r,o),u=this.getNextToLastElement(s),l=0,d=s;l<d.length;l++)for(var h=d[l],f=h.start;f<h.end;f++)this.insertItemInDOM(f,u);for(var p=0,g=a;p<g.length;p++)for(h=g[p],f=h.start;f<h.end;f++)this.removeItemFromDOM(f);this.rowsContainer.style.left="-"+n+"px",this.rowsContainer.style.top="-"+e+"px",this.horizontalScrolling&&(this.rowsContainer.style.width=Math.max(i,this.renderWidth)+"px"),this.lastRenderTop=e,this.lastRenderHeight=t},e.prototype.insertItemInDOM=function(e,t){var n=this,i=this.items[e];if(!i.row){i.row=this.cache.alloc(i.templateId);var r=this.ariaProvider.getRole?this.ariaProvider.getRole(i.element):"treeitem";i.row.domNode.setAttribute("role",r);var o=this.ariaProvider.isChecked?this.ariaProvider.isChecked(i.element):void 0;"undefined"!==typeof o&&i.row.domNode.setAttribute("aria-checked",String(o))}i.row.domNode.parentElement||(t?this.rowsContainer.insertBefore(i.row.domNode,t):this.rowsContainer.appendChild(i.row.domNode)),this.updateItemInDOM(i,e);var s=this.renderers.get(i.templateId);if(!s)throw new Error("No renderer found for template id "+i.templateId);s&&s.renderElement(i.element,e,i.row.templateData,i.size);var a=this.dnd.getDragURI(i.element);if(i.dragStartDisposable.dispose(),i.row.domNode.draggable=!!a,a){var l=Object(u["a"])(i.row.domNode,"dragstart");i.dragStartDisposable=l((function(e){return n.onDragStart(i.element,a,e)}))}this.horizontalScrolling&&(this.measureItemWidth(i),this.eventuallyUpdateScrollWidth())},e.prototype.measureItemWidth=function(e){if(e.row&&e.row.domNode){e.row.domNode.style.width=w["h"]?"-moz-fit-content":"fit-content",e.width=s["A"](e.row.domNode);var 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=""}},e.prototype.updateItemInDOM=function(e,t){e.row.domNode.style.top=this.elementTop(t)+"px",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("aria-setsize",String(this.ariaProvider.getSetSize(e.element,t,this.length))),e.row.domNode.setAttribute("aria-posinset",String(this.ariaProvider.getPosInSet(e.element,t))),e.row.domNode.setAttribute("id",this.getElementDomId(t)),s["X"](e.row.domNode,"drop-target",e.dropTarget)},e.prototype.removeItemFromDOM=function(e){var t=this.items[e];t.dragStartDisposable.dispose();var n=this.renderers.get(t.templateId);n&&n.disposeElement&&n.disposeElement(t.element,e,t.row.templateData,t.size),this.cache.release(t.row),t.row=null,this.horizontalScrolling&&this.eventuallyUpdateScrollWidth()},e.prototype.getScrollTop=function(){var e=this.scrollableElement.getScrollPosition();return e.scrollTop},e.prototype.setScrollTop=function(e){this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),this.scrollableElement.setScrollPosition({scrollTop:e})},Object.defineProperty(e.prototype,"scrollTop",{get:function(){return this.getScrollTop()},set:function(e){this.setScrollTop(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scrollHeight",{get:function(){return this._scrollHeight+(this.horizontalScrolling?10:0)+this.additionalScrollHeight},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onMouseClick",{get:function(){var e=this;return a["b"].map(Object(u["a"])(this.domNode,"click"),(function(t){return e.toMouseEvent(t)}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onMouseDblClick",{get:function(){var e=this;return a["b"].map(Object(u["a"])(this.domNode,"dblclick"),(function(t){return e.toMouseEvent(t)}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onMouseMiddleClick",{get:function(){var e=this;return a["b"].filter(a["b"].map(Object(u["a"])(this.domNode,"auxclick"),(function(t){return e.toMouseEvent(t)})),(function(e){return 1===e.browserEvent.button}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onMouseDown",{get:function(){var e=this;return a["b"].map(Object(u["a"])(this.domNode,"mousedown"),(function(t){return e.toMouseEvent(t)}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onContextMenu",{get:function(){var e=this;return a["b"].map(Object(u["a"])(this.domNode,"contextmenu"),(function(t){return e.toMouseEvent(t)}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onTouchStart",{get:function(){var e=this;return a["b"].map(Object(u["a"])(this.domNode,"touchstart"),(function(t){return e.toTouchEvent(t)}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onTap",{get:function(){var e=this;return a["b"].map(Object(u["a"])(this.rowsContainer,o["a"].Tap),(function(t){return e.toGestureEvent(t)}))},enumerable:!0,configurable:!0}),e.prototype.toMouseEvent=function(e){var t=this.getItemIndexFromEventTarget(e.target||null),n="undefined"===typeof t?void 0:this.items[t],i=n&&n.element;return{browserEvent:e,index:t,element:i}},e.prototype.toTouchEvent=function(e){var t=this.getItemIndexFromEventTarget(e.target||null),n="undefined"===typeof t?void 0:this.items[t],i=n&&n.element;return{browserEvent:e,index:t,element:i}},e.prototype.toGestureEvent=function(e){var t=this.getItemIndexFromEventTarget(e.initialTarget||null),n="undefined"===typeof t?void 0:this.items[t],i=n&&n.element;return{browserEvent:e,index:t,element:i}},e.prototype.toDragEvent=function(e){var t=this.getItemIndexFromEventTarget(e.target||null),n="undefined"===typeof t?void 0:this.items[t],i=n&&n.element;return{browserEvent:e,index:t,element:i}},e.prototype.onScroll=function(e){try{this.render(e.scrollTop,e.height,e.scrollLeft,e.scrollWidth),this.supportDynamicHeights&&this._rerender(e.scrollTop,e.height)}catch(t){throw console.error("Got bad scroll event:",e),t}},e.prototype.onTouchChange=function(e){e.preventDefault(),e.stopPropagation(),this.scrollTop-=e.translationY},e.prototype.onDragStart=function(e,t,n){if(n.dataTransfer){var i=this.dnd.getDragElements(e);if(n.dataTransfer.effectAllowed="copyMove",n.dataTransfer.setData(y["a"].RESOURCES,JSON.stringify([t])),n.dataTransfer.setDragImage){var r=void 0;this.dnd.getDragLabel&&(r=this.dnd.getDragLabel(i,n)),"undefined"===typeof r&&(r=String(i.length));var o=s["a"](".monaco-drag-image");o.textContent=r,document.body.appendChild(o),n.dataTransfer.setDragImage(o,-10,-10),setTimeout((function(){return document.body.removeChild(o)}),0)}this.currentDragData=new L(i),y["c"].CurrentDragAndDropData=new E(i),this.dnd.onDragStart&&this.dnd.onDragStart(this.currentDragData,n)}},e.prototype.onDragOver=function(e){var t=this;if(e.browserEvent.preventDefault(),this.onDragLeaveTimeout.dispose(),y["c"].CurrentDragAndDropData&&"vscode-ui"===y["c"].CurrentDragAndDropData.getData())return!1;if(this.setupDragAndDropScrollTopAnimation(e.browserEvent),!e.browserEvent.dataTransfer)return!1;if(!this.currentDragData)if(y["c"].CurrentDragAndDropData)this.currentDragData=y["c"].CurrentDragAndDropData;else{if(!e.browserEvent.dataTransfer.types)return!1;this.currentDragData=new x}var n,i=this.dnd.onDragOver(this.currentDragData,e.element,e.index,e.browserEvent);if(this.canDrop="boolean"===typeof i?i:i.accept,!this.canDrop)return this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),!1;if(e.browserEvent.dataTransfer.dropEffect="boolean"!==typeof i&&0===i.effect?"copy":"move",n="boolean"!==typeof i&&i.feedback?i.feedback:"undefined"===typeof e.index?[-1]:[e.index],n=Object(_["e"])(n).filter((function(e){return e>=-1&&e<t.length})).sort((function(e,t){return e-t})),n=-1===n[0]?[-1]:n,O(this.currentDragFeedback,n))return!0;if(this.currentDragFeedback=n,this.currentDragFeedbackDisposable.dispose(),-1===n[0])s["e"](this.domNode,"drop-target"),s["e"](this.rowsContainer,"drop-target"),this.currentDragFeedbackDisposable=Object(r["h"])((function(){s["O"](t.domNode,"drop-target"),s["O"](t.rowsContainer,"drop-target")}));else{for(var o=0,a=n;o<a.length;o++){var u=a[o],l=this.items[u];l.dropTarget=!0,l.row&&l.row.domNode&&s["e"](l.row.domNode,"drop-target")}this.currentDragFeedbackDisposable=Object(r["h"])((function(){for(var e=0,i=n;e<i.length;e++){var r=i[e],o=t.items[r];o.dropTarget=!1,o.row&&o.row.domNode&&s["O"](o.row.domNode,"drop-target")}}))}return!0},e.prototype.onDragLeave=function(){var e=this;this.onDragLeaveTimeout.dispose(),this.onDragLeaveTimeout=Object(b["g"])((function(){return e.clearDragOverFeedback()}),100)},e.prototype.onDrop=function(e){if(this.canDrop){var t=this.currentDragData;this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.currentDragData=void 0,y["c"].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))}},e.prototype.onDragEnd=function(e){this.canDrop=!1,this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.currentDragData=void 0,y["c"].CurrentDragAndDropData=void 0,this.dnd.onDragEnd&&this.dnd.onDragEnd(e)},e.prototype.clearDragOverFeedback=function(){this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),this.currentDragFeedbackDisposable=r["a"].None},e.prototype.setupDragAndDropScrollTopAnimation=function(e){var t=this;if(!this.dragOverAnimationDisposable){var n=s["E"](this.domNode).top;this.dragOverAnimationDisposable=s["o"](this.animateDragAndDropScrollTop.bind(this,n))}this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationStopDisposable=Object(b["g"])((function(){t.dragOverAnimationDisposable&&(t.dragOverAnimationDisposable.dispose(),t.dragOverAnimationDisposable=void 0)}),1e3),this.dragOverMouseY=e.pageY},e.prototype.animateDragAndDropScrollTop=function(e){if(void 0!==this.dragOverMouseY){var t=this.dragOverMouseY-e,n=this.renderHeight-35;t<35?this.scrollTop+=Math.max(-14,Math.floor(.3*(t-35))):t>n&&(this.scrollTop+=Math.min(14,Math.floor(.3*(t-n))))}},e.prototype.teardownDragAndDropScrollTopAnimation=function(){this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)},e.prototype.getItemIndexFromEventTarget=function(e){var t=e;while(t instanceof HTMLElement&&t!==this.rowsContainer){var n=t.getAttribute("data-index");if(n){var i=Number(n);if(!isNaN(i))return i}t=t.parentElement}},e.prototype.getRenderRange=function(e,t){return{start:this.rangeMap.indexAt(e),end:this.rangeMap.indexAfter(e+t-1)}},e.prototype._rerender=function(e,t){var n,i,r=this.getRenderRange(e,t);e===this.elementTop(r.start)?(n=r.start,i=0):r.end-r.start>1&&(n=r.start+1,i=this.elementTop(n)-e);var o=0;while(1){for(var s=this.getRenderRange(e,t),a=!1,u=s.start;u<s.end;u++){var l=this.probeDynamicHeight(u);0!==l&&this.rangeMap.splice(u,1,[this.items[u]]),o+=l,a=a||0!==l}if(!a){0!==o&&this.eventuallyUpdateScrollDimensions();for(var d=c["a"].relativeComplement(r,s),h=0,f=d;h<f.length;h++){var p=f[h];for(u=p.start;u<p.end;u++)this.items[u].row&&this.removeItemFromDOM(u)}for(var g=c["a"].relativeComplement(s,r),A=0,m=g;A<m.length;A++)for(p=m[A],u=p.start;u<p.end;u++){var v=u+1,_=v<this.items.length?this.items[v].row:null,y=_?_.domNode:null;this.insertItemInDOM(u,y)}for(u=s.start;u<s.end;u++)this.items[u].row&&this.updateItemInDOM(this.items[u],u);return"number"===typeof n&&(this.scrollTop=this.elementTop(n)-i),void this._onDidChangeContentHeight.fire(this.contentHeight)}}},e.prototype.probeDynamicHeight=function(e){var t=this.items[e];if(!t.hasDynamicHeight||t.lastDynamicHeightWidth===this.renderWidth)return 0;var n=t.size,i=this.cache.alloc(t.templateId);i.domNode.style.height="",this.rowsContainer.appendChild(i.domNode);var r=this.renderers.get(t.templateId);return r&&(r.renderElement(t.element,e,i.templateData,void 0),r.disposeElement&&r.disposeElement(t.element,e,i.templateData,void 0)),t.size=i.domNode.offsetHeight,this.virtualDelegate.setDynamicHeight&&this.virtualDelegate.setDynamicHeight(t.element,t.size),t.lastDynamicHeightWidth=this.renderWidth,this.rowsContainer.removeChild(i.domNode),this.cache.release(i),t.size-n},e.prototype.getNextToLastElement=function(e){var t=e[e.length-1];if(!t)return null;var n=this.items[t.end];return n&&n.row?n.row.domNode:null},e.prototype.getElementDomId=function(e){return this.domId+"_"+e},e.prototype.dispose=function(){if(this.items){for(var e=0,t=this.items;e<t.length;e++){var n=t[e];if(n.row){var i=this.renderers.get(n.row.templateId);i&&i.disposeTemplate(n.row.templateData)}}this.items=[]}this.domNode&&this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),Object(r["f"])(this.disposables)},e.InstanceCount=0,C([v["a"]],e.prototype,"onMouseClick",null),C([v["a"]],e.prototype,"onMouseDblClick",null),C([v["a"]],e.prototype,"onMouseMiddleClick",null),C([v["a"]],e.prototype,"onMouseDown",null),C([v["a"]],e.prototype,"onContextMenu",null),C([v["a"]],e.prototype,"onTouchStart",null),C([v["a"]],e.prototype,"onTap",null),e}()},fjLI:function(e,t,n){"use strict";n.d(t,"e",(function(){return h})),n.d(t,"a",(function(){return f})),n.d(t,"c",(function(){return p})),n.d(t,"d",(function(){return A})),n.d(t,"b",(function(){return m}));var i=n("8HAY"),r=n("Cg/j"),o=n("T8No"),s=n("nnTU"),a=n("MI8n"),u=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),l=function(e,t,n,i){var r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},c=function(e,t){return function(n,i){t(n,i,e)}},d=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i};function h(e){return void 0!==e.command}var f=Object(r["c"])("menuService"),p=new(function(){function e(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new a["a"],this.onDidChangeMenu=this._onDidChangeMenu.event}return e.prototype.addCommand=function(e){var t=this;return this._commands.set(e.id,e),this._onDidChangeMenu.fire(0),{dispose:function(){t._commands.delete(e.id)&&t._onDidChangeMenu.fire(0)}}},e.prototype.getCommand=function(e){return this._commands.get(e)},e.prototype.getCommands=function(){var e=new Map;return this._commands.forEach((function(t,n){return e.set(n,t)})),e},e.prototype.appendMenuItem=function(e,t){var n=this,i=this._menuItems.get(e);return i?i.push(t):(i=[t],this._menuItems.set(e,i)),this._onDidChangeMenu.fire(e),{dispose:function(){var r=i.indexOf(t);r>=0&&(i.splice(r,1),n._onDidChangeMenu.fire(e))}}},e.prototype.getMenuItems=function(e){var t=(this._menuItems.get(e)||[]).slice(0);return 0===e&&this._appendImplicitItems(t),t},e.prototype._appendImplicitItems=function(e){for(var t=new Set,n=e.filter((function(e){return h(e)})),i=0,r=n;i<r.length;i++){var o=r[i],s=o.command,a=o.alt;t.add(s.id),a&&t.add(a.id)}this._commands.forEach((function(n,i){t.has(i)||e.push({command:n})}))},e}()),g=function(e){function t(t,n,i){var r=e.call(this,t,n)||this;return r._commandService=i,r}return u(t,e),t.prototype.run=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(e=this._commandService).executeCommand.apply(e,d([this.id],t))},t=l([c(2,s["b"])],t),t}(i["a"]),A=function(e){function t(t){var n=this;return n="string"===typeof t.title?e.call(this,"",t.title,"submenu")||this:e.call(this,"",t.title.value,"submenu")||this,n.item=t,n}return u(t,e),t}(i["a"]),m=function(e){function t(n,i,r,o,s){var a=this;return a="string"===typeof n.title?e.call(this,n.id,n.title,s)||this:e.call(this,n.id,n.title.value,s)||this,a._cssClass=void 0,a._enabled=!n.precondition||o.contextMatchesRules(n.precondition),a._checked=Boolean(n.toggled&&o.contextMatchesRules(n.toggled)),a._options=r||{},a.item=n,a.alt=i?new t(i,void 0,a._options,o,s):void 0,a}return u(t,e),t.prototype.dispose=function(){this.alt&&this.alt.dispose(),e.prototype.dispose.call(this)},t.prototype.run=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=[];return this._options.arg&&(i=d(i,[this._options.arg])),this._options.shouldForwardArgs&&(i=d(i,t)),e.prototype.run.apply(this,i)},t=l([c(3,o["c"]),c(4,s["b"])],t),t}(g)},fpMC:function(e,t,n){"use strict";n.d(t,"f",(function(){return s})),n.d(t,"b",(function(){return N})),n.d(t,"c",(function(){return L})),n.d(t,"a",(function(){return O})),n.d(t,"d",(function(){return H})),n.d(t,"e",(function(){return G}));var i=n("QDVR"),r=n("N0LK");function o(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t,n){for(var i=0,r=e.length;i<r;i++){var o=e[i](t,n);if(o)return o}return null}}var s=a.bind(void 0,!0);function a(e,t,n){return!n||n.length<t.length?null:(i=e?r["N"](n,t):0===n.indexOf(t),i?t.length>0?[{start:0,end:t.length}]:[]:null);var i}function u(e,t){var n=t.toLowerCase().indexOf(e.toLowerCase());return-1===n?null:[{start:n,end:n+e.length}]}function l(e,t){return c(e.toLowerCase(),t.toLowerCase(),0,0)}function c(e,t,n,i){if(n===e.length)return[];if(i===t.length)return null;if(e[n]===t[i]){var r=null;return(r=c(e,t,n+1,i+1))?m({start:i,end:i+1},r):null}return c(e,t,n,i+1)}function d(e){return 97<=e&&e<=122}function h(e){return 65<=e&&e<=90}function f(e){return 48<=e&&e<=57}function p(e){return 32===e||9===e||10===e||13===e}var g=new Set;function A(e){return d(e)||h(e)||f(e)}function m(e,t){return 0===t.length?t=[e]:e.end===t[0].start?t[0].start=e.start:t.unshift(e),t}function v(e,t){for(var n=t;n<e.length;n++){var i=e.charCodeAt(n);if(h(i)||f(i)||n>0&&!A(e.charCodeAt(n-1)))return n}return e.length}function _(e,t,n,i){if(n===e.length)return[];if(i===t.length)return null;if(e[n]!==t[i].toLowerCase())return null;var r=null,o=i+1;r=_(e,t,n+1,i+1);while(!r&&(o=v(t,o))<t.length)r=_(e,t,n+1,o),o++;return null===r?null:m({start:i,end:i+1},r)}function y(e){for(var t=0,n=0,i=0,r=0,o=0,s=0;s<e.length;s++)o=e.charCodeAt(s),h(o)&&t++,d(o)&&n++,A(o)&&i++,f(o)&&r++;var a=t/e.length,u=n/e.length,l=i/e.length,c=r/e.length;return{upperPercent:a,lowerPercent:u,alphaPercent:l,numericPercent:c}}function b(e){var t=e.upperPercent,n=e.lowerPercent;return 0===n&&t>.6}function w(e){var t=e.upperPercent,n=e.lowerPercent,i=e.alphaPercent,r=e.numericPercent;return n>.2&&t<.8&&i>.6&&r<.2}function C(e){for(var t=0,n=0,i=0,r=0,o=0;o<e.length;o++)i=e.charCodeAt(o),h(i)&&t++,d(i)&&n++,p(i)&&r++;return 0!==t&&0!==n||0!==r?t<=5:e.length<=30}function S(e,t){if(!t)return null;if(t=t.trim(),0===t.length)return null;if(!C(e))return null;if(t.length>60)return null;var n=y(t);if(!w(n)){if(!b(n))return null;t=t.toLowerCase()}var i=null,r=0;e=e.toLowerCase();while(r<t.length&&null===(i=_(e,t,0,r)))r=v(t,r+1);return i}"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?".split("").forEach((function(e){return g.add(e.charCodeAt(0))}));o(s,S,u),o(s,S,l),new i["a"](1e4);function N(e,t,n,i,r,o){var s=H(e,t,0,i,r,0,!0);if(s)return s;for(var a=0,u=0,l=o,c=0;c<t.length&&c<E;++c){var d=r.indexOf(t.charAt(c),l);if(d>=0)u+=1,a+=Math.pow(2,d),l=d+1;else if(0!==a)break}return[u,a,o]}function L(e){if("undefined"===typeof e)return[];for(var t=e[1].toString(2),n=e[2],i=[],r=n;r<E;r++)if("1"===t[t.length-(r+1)]){var o=i[i.length-1];o&&o.end===r?o.end=r+1:i.push({start:r,end:r+1})}return i}var E=128;function x(){for(var e=[],t=[0],n=1;n<=E;n++)t.push(-n);for(n=0;n<=E;n++){var i=t.slice(0);i[0]=-n,e.push(i)}return e}var O,B=x(),k=x(),D=x(),I=!1;function M(e,t,n,i,r){function o(e,t,n){void 0===n&&(n=" ");while(e.length<t)e=n+e;return e}for(var s=" | |"+i.split("").map((function(e){return o(e,3)})).join("|")+"\n",a=0;a<=n;a++)s+=0===a?" |":t[a-1]+"|",s+=e[a].slice(0,r+1).map((function(e){return o(e.toString(),3)})).join("|")+"\n";return s}function F(e,t,n,i){e=e.substr(t),n=n.substr(i),console.log(M(B,e,e.length,n,n.length)),console.log(M(D,e,e.length,n,n.length)),console.log(M(k,e,e.length,n,n.length))}function T(e,t){if(t<0||t>=e.length)return!1;var n=e.charCodeAt(t);switch(n){case 95:case 45:case 46:case 32:case 47:case 92:case 39:case 34:case 58:case 36:return!0;default:return!1}}function R(e,t){if(t<0||t>=e.length)return!1;var n=e.charCodeAt(t);switch(n){case 32:case 9:return!0;default:return!1}}function P(e,t,n){return t[e]!==n[e]}function U(e,t,n,i,r,o){while(t<n&&r<o)e[t]===i[r]&&(t+=1),r+=1;return t===n}function H(e,t,n,i,r,o,s){var a=e.length>E?E:e.length,u=i.length>E?E:i.length;if(!(n>=a||o>=u||a-n>u-o)&&U(t,n,a,r,o,u)){var l=1,c=1,d=n,h=o;for(l=1,d=n;d<a;l++,d++)for(c=1,h=o;h<u;c++,h++){var f=j(e,t,d,n,i,r,h);k[l][c]=f;var p=B[l-1][c-1]+(f>1?1:f),g=B[l-1][c]+-1,A=B[l][c-1]+-1;A>=g?A>p?(B[l][c]=A,D[l][c]=4):A===p?(B[l][c]=A,D[l][c]=6):(B[l][c]=p,D[l][c]=2):g>p?(B[l][c]=g,D[l][c]=1):g===p?(B[l][c]=g,D[l][c]=3):(B[l][c]=p,D[l][c]=2)}if(I&&F(e,n,i,o),Q=0,W=-100,z=o,K=s,q(l-1,c-1,a===u?1:0,0,!1),0!==Q)return[W,V,o]}}function j(e,t,n,i,r,o,s){return t[n]!==o[s]?-1:s===n-i?e[n]===r[s]?7:5:!P(s,r,o)||0!==s&&P(s-1,r,o)?!T(o,s)||0!==s&&T(o,s-1)?T(o,s-1)||R(o,s-1)?5:1:5:e[n]===r[s]?7:5}(function(e){function t(e){return!e||-100===e[0]&&0===e[1]&&0===e[2]}e.Default=Object.freeze([-100,0,0]),e.isDefault=t})(O||(O={}));var Q=0,V=0,W=0,z=0,K=!1;function q(e,t,n,i,r){if(!(Q>=10||n<-25)){var o=0;while(e>0&&t>0){var s=k[e][t],a=D[e][t];if(4===a)t-=1,r?n-=5:0!==i&&(n-=1),r=!1,o=0;else{if(!(2&a))return;if(4&a&&q(e,t-1,0!==i?n-1:n,i,r),n+=s,e-=1,t-=1,r=!0,i+=Math.pow(2,t+z),1===s){if(o+=1,0===e&&!K)return}else n+=1+o*(s-1),o=0}}n-=t>=3?9:3*t,Q+=1,n>W&&(W=n,V=i)}}function G(e,t,n,i,r,o,s){return X(e,t,n,i,r,o,!0,s)}function X(e,t,n,i,r,o,s,a){var u=H(e,t,n,i,r,o,a);if(u&&!s)return u;if(e.length>=3)for(var l=Math.min(7,e.length-1),c=n+1;c<l;c++){var d=Y(e,c);if(d){var h=H(d,d.toLowerCase(),n,i,r,o,a);h&&(h[0]-=3,(!u||h[0]>u[0])&&(u=h))}}return u}function Y(e,t){if(!(t+1>=e.length)){var n=e[t],i=e[t+1];if(n!==i)return e.slice(0,t)+i+n+e.slice(t+2)}}},gCVg:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n("cGHE"),r=n("aokT"),o=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),s=function(e){function t(t,n,i,r){var o=e.call(this,t,n,i,r)||this;return o.selectionStartLineNumber=t,o.selectionStartColumn=n,o.positionLineNumber=i,o.positionColumn=r,o}return o(t,e),t.prototype.toString=function(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"},t.prototype.equalsSelection=function(e){return t.selectionsEqual(this,e)},t.selectionsEqual=function(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn},t.prototype.getDirection=function(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1},t.prototype.setEndPosition=function(e,n){return 0===this.getDirection()?new t(this.startLineNumber,this.startColumn,e,n):new t(e,n,this.startLineNumber,this.startColumn)},t.prototype.getPosition=function(){return new i["a"](this.positionLineNumber,this.positionColumn)},t.prototype.setStartPosition=function(e,n){return 0===this.getDirection()?new t(e,n,this.endLineNumber,this.endColumn):new t(this.endLineNumber,this.endColumn,e,n)},t.fromPositions=function(e,n){return void 0===n&&(n=e),new t(e.lineNumber,e.column,n.lineNumber,n.column)},t.liftSelection=function(e){return new t(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)},t.selectionsArrEqual=function(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(var n=0,i=e.length;n<i;n++)if(!this.selectionsEqual(e[n],t[n]))return!1;return!0},t.isISelection=function(e){return e&&"number"===typeof e.selectionStartLineNumber&&"number"===typeof e.selectionStartColumn&&"number"===typeof e.positionLineNumber&&"number"===typeof e.positionColumn},t.createWithDirection=function(e,n,i,r,o){return 0===o?new t(e,n,i,r):new t(i,r,e,n)},t}(r["a"])},gL5p:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i["default"]}}),Object.defineProperty(t,"MonacoDiffEditor",{enumerable:!0,get:function(){return r["default"]}});var i=o(n("j6EG")),r=o(n("4oKn"));function o(e){return e&&e.__esModule?e:{default:e}}},gqHg:function(e,t,n){"use strict";n.r(t);var i=n("+hIS");Object(i["a"])({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:function(){return n.e(9).then(n.bind(null,"fhwZ"))}}),Object(i["a"])({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:function(){return n.e(9).then(n.bind(null,"fhwZ"))}})},gslv:function(e,t,n){"use strict";n.d(t,"c",(function(){return h})),n.d(t,"e",(function(){return p})),n.d(t,"b",(function(){return g})),n.d(t,"d",(function(){return A})),n.d(t,"f",(function(){return m})),n.d(t,"g",(function(){return v})),n.d(t,"h",(function(){return y})),n.d(t,"a",(function(){return i}));var i,r=n("PTeM"),o=n("MrjW"),s=n("bY76"),a=n("N0LK"),u=n("tYmi"),l=n("MNsG"),c=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i};function d(e){return!e||e.scheme!==u["b"].file||!l["d"]}function h(e){return g(e)||e.authority}function f(e,t){return e===t||Object(a["n"])(e,t)}function p(e,t,n){if(void 0===n&&(n=d(e)),e===t)return!0;if(!e||!t)return!1;if(e.scheme!==t.scheme||!f(e.authority,t.authority))return!1;var i=e.path||"/",r=t.path||"/";return i===r||n&&Object(a["n"])(i||"/",r||"/")}function g(e){return o["posix"].basename(e.path)}function A(e){if(0===e.path.length)return e;if(e.scheme===u["b"].file)return s["a"].file(o["dirname"](_(e)));var t=o["posix"].dirname(e.path);return e.authority&&t.length&&47!==t.charCodeAt(0)&&(console.error('dirname("'+e.toString+")) resulted in a relative path"),t="/"),e.with({path:t})}function m(e){for(var t,n,i=[],r=1;r<arguments.length;r++)i[r-1]=arguments[r];return n=e.scheme===u["b"].file?s["a"].file(o["join"].apply(o,c([_(e)],i))).path:(t=o["posix"]).join.apply(t,c([e.path||"/"],i)),e.with({path:n})}function v(e){return e.path.length?(t=e.scheme===u["b"].file?s["a"].file(o["normalize"](_(e))).path:o["posix"].normalize(e.path),e.with({path:t})):e;var t}function _(e){var t,n=e.path;return t=e.authority&&n.length>1&&e.scheme===u["b"].file?"//"+e.authority+n:l["h"]&&47===n.charCodeAt(0)&&r["b"](n.charCodeAt(1))&&58===n.charCodeAt(2)?n.substr(1):n,l["h"]&&(t=t.replace(/\//g,"\\")),t}function y(e,t,n){if(void 0===n&&(n=d(e)),e.scheme===t.scheme&&f(e.authority,t.authority)){if(e.scheme===u["b"].file){var i=o["relative"](e.path,t.path);return l["h"]?r["c"](i):i}var s=e.path||"/",a=t.path||"/";if(n){for(var c=0,h=Math.min(s.length,a.length);c<h;c++)if(s.charCodeAt(c)!==a.charCodeAt(c)&&s.charAt(c).toLowerCase()!==a.charAt(c).toLowerCase())break;s=a.substr(0,c)+s.substr(c)}return o["posix"].relative(s,a)}}(function(e){function t(t){var n=new Map,i=t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";"));i.split(";").forEach((function(e){var t=e.split(":"),i=t[0],r=t[1];i&&r&&n.set(i,r)}));var r=t.path.substring(0,t.path.indexOf(";"));return r&&n.set(e.META_DATA_MIME,r),n}e.META_DATA_LABEL="label",e.META_DATA_DESCRIPTION="description",e.META_DATA_SIZE="size",e.META_DATA_MIME="mime",e.parseMetaData=t})(i||(i={}))},hFdI:function(e,t,n){"use strict";n.r(t);var i=n("+hIS");Object(i["a"])({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 n.e(156).then(n.bind(null,"tpLM"))}})},hHjc:function(e,t,n){},"i/Ef":function(e,t,n){"use strict";n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return u})),n.d(t,"d",(function(){return l})),n.d(t,"e",(function(){return c}));var i=n("Tcc1"),r=n("twdY"),o=function(){function e(){}return e.prototype.clone=function(){return this},e.prototype.equals=function(e){return this===e},e}(),s=new o,a="vs.editor.nullMode",u=new r["q"](a,0);function l(e,t,n,r){return new i["b"]([new i["a"](r,"",e)],n)}function c(e,t,n,r){var o=new Uint32Array(2);return o[0]=r,o[1]=(16384|e<<0|2<<23)>>>0,new i["c"](o,null===n?s:n)}},"i/Rh":function(e,t,n){},iDAx:function(e,t,n){"use strict";n.d(t,"a",(function(){return C})),n.d(t,"c",(function(){return F})),n.d(t,"b",(function(){return T}));var i=n("3/fG"),r=n("MI8n"),o=n("pmY6"),s=n("qj0h"),a=n("6OMU"),u=n("/UlZ"),l=n("Yr1X"),c=n("+3Gp"),d=n("CRAX"),h=n("ic2d"),f=n("vl9R"),p=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),g=function(){return g=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},g.apply(this,arguments)},A=new(function(){function e(){this._tabFocus=!1,this._onDidChangeTabFocus=new r["a"],this.onDidChangeTabFocus=this._onDidChangeTabFocus.event}return e.prototype.getTabFocusMode=function(){return this._tabFocus},e.prototype.setTabFocusMode=function(e){this._tabFocus!==e&&(this._tabFocus=e,this._onDidChangeTabFocus.fire(this._tabFocus))},e}()),m=Object.hasOwnProperty,v=function(){function e(){this._values=[]}return e.prototype._read=function(e){return this._values[e]},e.prototype.get=function(e){return this._values[e]},e.prototype._write=function(e,t){this._values[e]=t},e}(),_=function(){function e(){this._values=[]}return e.prototype._read=function(e){return this._values[e]},e.prototype._write=function(e,t){this._values[e]=t},e}(),y=function(){function e(){}return e.readOptions=function(e){for(var t=e,n=new _,i=0,r=u["i"];i<r.length;i++){var o=r[i],s="_never_"===o.name?void 0:t[o.name];n._write(o.id,s)}return n},e.validateOptions=function(e){for(var t=new u["h"],n=0,i=u["i"];n<i.length;n++){var r=i[n];t._write(r.id,r.validate(e._read(r.id)))}return t},e.computeOptions=function(e,t){for(var n=new v,i=0,r=u["i"];i<r.length;i++){var o=r[i];n._write(o.id,o.compute(t,n,e._read(o.id)))}return n},e._deepEquals=function(t,n){if("object"!==typeof t||"object"!==typeof n)return t===n;if(Array.isArray(t)||Array.isArray(n))return!(!Array.isArray(t)||!Array.isArray(n))&&a["g"](t,n);for(var i in t)if(!e._deepEquals(t[i],n[i]))return!1;return!0},e.checkEquals=function(t,n){for(var i=[],r=!1,o=0,s=u["i"];o<s.length;o++){var a=s[o],l=!e._deepEquals(t._read(a.id),n._read(a.id));i[a.id]=l,l&&(r=!0)}return r?new u["a"](i):null},e}();function b(e){var t=e.wordWrap;!0===t?e.wordWrap="on":!1===t&&(e.wordWrap="off");var n=e.lineNumbers;!0===n?e.lineNumbers="on":!1===n&&(e.lineNumbers="off");var i=e.autoClosingBrackets;!1===i&&(e.autoClosingBrackets="never",e.autoClosingQuotes="never",e.autoSurround="never");var r=e.cursorBlinking;"visible"===r&&(e.cursorBlinking="solid");var o=e.renderWhitespace;!0===o?e.renderWhitespace="boundary":!1===o&&(e.renderWhitespace="none");var s=e.renderLineHighlight;!0===s?e.renderLineHighlight="line":!1===s&&(e.renderLineHighlight="none");var a=e.acceptSuggestionOnEnter;!0===a?e.acceptSuggestionOnEnter="on":!1===a&&(e.acceptSuggestionOnEnter="off");var u=e.tabCompletion;!1===u?e.tabCompletion="off":!0===u&&(e.tabCompletion="onlySnippets");var l=e.suggest;if(l&&"object"===typeof l.filteredTypes&&l.filteredTypes){var c={method:"showMethods",function:"showFunctions",constructor:"showConstructors",field:"showFields",variable:"showVariables",class:"showClasses",struct:"showStructs",interface:"showInterfaces",module:"showModules",property:"showProperties",event:"showEvents",operator:"showOperators",unit:"showUnits",value:"showValues",constant:"showConstants",enum:"showEnums",enumMember:"showEnumMembers",keyword:"showKeywords",text:"showWords",color:"showColors",file:"showFiles",reference:"showReferences",folder:"showFolders",typeParameter:"showTypeParameters",snippet:"showSnippets"};Object(f["b"])(c,(function(e){var t=l.filteredTypes[e.key];!1===t&&(l[e.value]=t)}))}var d=e.hover;!0===d?e.hover={enabled:!0}:!1===d&&(e.hover={enabled:!1});var h=e.parameterHints;!0===h?e.parameterHints={enabled:!0}:!1===h&&(e.parameterHints={enabled:!1});var p=e.autoIndent;!0===p?e.autoIndent="full":!1===p&&(e.autoIndent="advanced");var g=e.matchBrackets;!0===g?e.matchBrackets="always":!1===g&&(e.matchBrackets="never")}function w(e){var t=s["c"](e);return b(t),t}var C=function(e){function t(t,n){var i=e.call(this)||this;return i._onDidChange=i._register(new r["a"]),i.onDidChange=i._onDidChange.event,i.isSimpleWidget=t,i._isDominatedByLongLines=!1,i._lineNumbersDigitCount=1,i._rawOptions=w(n),i._readOptions=y.readOptions(i._rawOptions),i._validatedOptions=y.validateOptions(i._readOptions),i._register(l["a"].onDidChangeZoomLevel((function(e){return i._recomputeOptions()}))),i._register(A.onDidChangeTabFocus((function(e){return i._recomputeOptions()}))),i}return p(t,e),t.prototype.observeReferenceElement=function(e){},t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype._recomputeOptions=function(){var e=this.options,t=this._computeInternalOptions();if(e){var n=y.checkEquals(e,t);if(null===n)return;this.options=t,this._onDidChange.fire(n)}else this.options=t},t.prototype.getRawOptions=function(){return this._rawOptions},t.prototype._computeInternalOptions=function(){var e=this._getEnvConfiguration(),t=c["a"].createFromValidatedSettings(this._validatedOptions,e.zoomLevel,this.isSimpleWidget),n={outerWidth:e.outerWidth,outerHeight:e.outerHeight,fontInfo:this.readConfiguration(t),extraEditorClassName:e.extraEditorClassName,isDominatedByLongLines:this._isDominatedByLongLines,lineNumbersDigitCount:this._lineNumbersDigitCount,emptySelectionClipboard:e.emptySelectionClipboard,pixelRatio:e.pixelRatio,tabFocusMode:A.getTabFocusMode(),accessibilitySupport:e.accessibilitySupport};return y.computeOptions(this._validatedOptions,n)},t._subsetEquals=function(e,t){for(var n in t)if(m.call(t,n)){var i=t[n],r=e[n];if(r===i)continue;if(Array.isArray(r)&&Array.isArray(i)){if(!a["g"](r,i))return!1;continue}if("object"===typeof r&&"object"===typeof i){if(!this._subsetEquals(r,i))return!1;continue}return!1}return!0},t.prototype.updateOptions=function(e){if("undefined"!==typeof e){var n=w(e);t._subsetEquals(this._rawOptions,n)||(this._rawOptions=s["g"](this._rawOptions,n||{}),this._readOptions=y.readOptions(this._rawOptions),this._validatedOptions=y.validateOptions(this._readOptions),this._recomputeOptions())}},t.prototype.setIsDominatedByLongLines=function(e){this._isDominatedByLongLines=e,this._recomputeOptions()},t.prototype.setMaxLineNumber=function(e){var n=t._digitCount(e);this._lineNumbersDigitCount!==n&&(this._lineNumbersDigitCount=n,this._recomputeOptions())},t._digitCount=function(e){var t=0;while(e)e=Math.floor(e/10),t++;return t||1},t}(o["a"]),S=Object.freeze({id:"editor",order:5,type:"object",title:i["a"]("editorConfigurationTitle","Editor"),scope:5}),N=h["a"].as(d["a"].Configuration),L=g(g({},S),{properties:{"editor.tabSize":{type:"number",default:u["c"].tabSize,minimum:1,markdownDescription:i["a"]("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:u["c"].insertSpaces,markdownDescription:i["a"]("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:u["c"].detectIndentation,markdownDescription:i["a"]("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:u["c"].trimAutoWhitespace,description:i["a"]("trimAutoWhitespace","Remove trailing auto inserted whitespace.")},"editor.largeFileOptimizations":{type:"boolean",default:u["c"].largeFileOptimizations,description:i["a"]("largeFileOptimizations","Special handling for large files to disable certain memory intensive features.")},"editor.wordBasedSuggestions":{type:"boolean",default:!0,description:i["a"]("wordBasedSuggestions","Controls whether completions should be computed based on words in the document.")},"editor.semanticHighlighting.enabled":{type:"boolean",default:!1,description:i["a"]("semanticHighlighting.enabled","Controls whether the semanticHighlighting is shown for the languages that support it.")},"editor.stablePeek":{type:"boolean",default:!1,markdownDescription:i["a"]("stablePeek","Keep peek editors open even when double clicking their content or when hitting `Escape`.")},"editor.maxTokenizationLineLength":{type:"integer",default:2e4,description:i["a"]("maxTokenizationLineLength","Lines above this length will not be tokenized for performance reasons")},"diffEditor.maxComputationTime":{type:"number",default:5e3,description:i["a"]("maxComputationTime","Timeout in milliseconds after which diff computation is cancelled. Use 0 for no timeout.")},"diffEditor.renderSideBySide":{type:"boolean",default:!0,description:i["a"]("sideBySide","Controls whether the diff editor shows the diff side by side or inline.")},"diffEditor.ignoreTrimWhitespace":{type:"boolean",default:!0,description:i["a"]("ignoreTrimWhitespace","Controls whether the diff editor shows changes in leading or trailing whitespace as diffs.")},"diffEditor.renderIndicators":{type:"boolean",default:!0,description:i["a"]("renderIndicators","Controls whether the diff editor shows +/- indicators for added/removed changes.")}}});function E(e){return"undefined"!==typeof e.type||"undefined"!==typeof e.anyOf}for(var x=0,O=u["i"];x<O.length;x++){var B=O[x],k=B.schema;if("undefined"!==typeof k)if(E(k))L.properties["editor."+B.name]=k;else for(var D in k)m.call(k,D)&&(L.properties[D]=k[D])}var I=null;function M(){return null===I&&(I=Object.create(null),Object.keys(L.properties).forEach((function(e){I[e]=!0}))),I}function F(e){var t=M();return t["editor."+e]||!1}function T(e){var t=M();return t["diffEditor."+e]||!1}N.registerConfiguration(L)},iJk1:function(e,t,n){},iLY9:function(e,t,n){"use strict";n.r(t);var i=n("+hIS");Object(i["a"])({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:function(){return n.e(176).then(n.bind(null,"8ahN"))}})},ic2d:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n("746U"),r=n("FWmy"),o=function(){function e(){this.data=new Map}return e.prototype.add=function(e,t){r["a"](i["j"](e)),r["a"](i["i"](t)),r["a"](!this.data.has(e),"There is already an extension with this id"),this.data.set(e,t)},e.prototype.as=function(e){return this.data.get(e)||null},e}(),s=new o},"ij/i":function(e,t,n){"use strict";n.r(t);var i=n("+hIS");Object(i["a"])({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile"],aliases:["Ruby","rb"],loader:function(){return n.e(182).then(n.bind(null,"3MdH"))}})},iuje:function(e,t,n){"use strict";function i(e){return e&&"string"===typeof e.id}n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var r={ICodeEditor:"vs.editor.ICodeEditor",IDiffEditor:"vs.editor.IDiffEditor"},o={ExecuteCommand:"executeCommand",ExecuteCommands:"executeCommands",Type:"type",ReplacePreviousChar:"replacePreviousChar",CompositionStart:"compositionStart",CompositionEnd:"compositionEnd",Paste:"paste",Cut:"cut",Undo:"undo",Redo:"redo"}},j2o1:function(e,t,n){"use strict";n.r(t);var i=n("+hIS");Object(i["a"])({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:function(){return n.e(174).then(n.bind(null,"ppMK"))}})},j6EG:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var i=l(n("M/lh")),r=a(n("17x9")),o=a(n("q1tI")),s=n("JwdM");function a(e){return e&&e.__esModule?e:{default:e}}function u(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function l(e){if(e&&e.__esModule)return e;if(null===e||"object"!==c(e)&&"function"!==typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var o=i?Object.getOwnPropertyDescriptor(e,r):null;o&&(o.get||o.set)?Object.defineProperty(n,r,o):n[r]=e[r]}return n["default"]=e,t&&t.set(e,n),n}function c(e){return c="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){C(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function g(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),e}function A(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}function m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function v(e){return function(){var t,n=w(e);if(b()){var i=w(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return _(this,t)}}function _(e,t){return!t||"object"!==c(t)&&"function"!==typeof t?y(e):t}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var S=function(e){A(n,e);var t=v(n);function n(e){var i;return f(this,n),i=t.call(this,e),C(y(i),"assignRef",(function(e){i.containerElement=e})),i.containerElement=void 0,i}return g(n,[{key:"componentDidMount",value:function(){this.initMonaco()}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.value,r=t.language,o=t.theme,s=t.height,a=t.options,u=t.width,l=this.editor,c=l.getModel();null!=this.props.value&&this.props.value!==c.getValue()&&(this.__prevent_trigger_change_event=!0,this.editor.pushUndoStop(),c.pushEditOperations([],[{range:c.getFullModelRange(),text:n}]),this.editor.pushUndoStop(),this.__prevent_trigger_change_event=!1),e.language!==r&&i.editor.setModelLanguage(c,r),e.theme!==o&&i.editor.setTheme(o),!l||u===e.width&&s===e.height||l.layout(),e.options!==a&&l.updateOptions(a)}},{key:"componentWillUnmount",value:function(){this.destroyMonaco()}},{key:"destroyMonaco",value:function(){if(this.editor){this.editor.dispose();var e=this.editor.getModel();e&&e.dispose()}this._subscription&&this._subscription.dispose()}},{key:"initMonaco",value:function(){var e=null!=this.props.value?this.props.value:this.props.defaultValue,t=this.props,n=t.language,r=t.theme,o=t.options,s=t.overrideServices;this.containerElement&&(Object.assign(o,this.editorWillMount()),this.editor=i.editor.create(this.containerElement,h({value:e,language:n},o,{},r?{theme:r}:{}),s),this.editorDidMount(this.editor))}},{key:"editorWillMount",value:function(){var e=this.props.editorWillMount,t=e(i);return t||{}}},{key:"editorDidMount",value:function(e){var t=this;this.props.editorDidMount(e,i),this._subscription=e.onDidChangeModelContent((function(n){t.__prevent_trigger_change_event||t.props.onChange(e.getValue(),n)}))}},{key:"render",value:function(){var e=this.props,t=e.width,n=e.height,i=(0,s.processSize)(t),r=(0,s.processSize)(n),a={width:i,height:r};return o["default"].createElement("div",{ref:this.assignRef,style:a,className:"react-monaco-editor-container"})}}]),n}(o["default"].Component);S.propTypes={width:r["default"].oneOfType([r["default"].string,r["default"].number]),height:r["default"].oneOfType([r["default"].string,r["default"].number]),value:r["default"].string,defaultValue:r["default"].string,language:r["default"].string,theme:r["default"].string,options:r["default"].object,overrideServices:r["default"].object,editorDidMount:r["default"].func,editorWillMount:r["default"].func,onChange:r["default"].func},S.defaultProps={width:"100%",height:"100%",value:null,defaultValue:"",language:"javascript",theme:null,options:{},overrideServices:{},editorDidMount:s.noop,editorWillMount:s.noop,onChange:s.noop};var N=S;t["default"]=N},"jAJ/":function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"d",(function(){return h})),n.d(t,"c",(function(){return p})),n.d(t,"e",(function(){return m})),n.d(t,"b",(function(){return v}));var i=n("N0LK"),r=n("5v8Y"),o=n("cGHE"),s=n("aokT"),a=n("M1Kb"),u=999,l=function(){function e(e,t,n,i){this.searchString=e,this.isRegex=t,this.matchCase=n,this.wordSeparators=i}return e.prototype.parseSearchRequest=function(){if(""===this.searchString)return null;var e;e=this.isRegex?c(this.searchString):this.searchString.indexOf("\n")>=0;var t=null;try{t=i["l"](this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:e,global:!0,unicode:!0})}catch(o){return null}if(!t)return null;var n=!this.isRegex&&!e;return n&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(n=this.matchCase),new d(t,this.wordSeparators?Object(r["a"])(this.wordSeparators):null,n?this.searchString:null)},e}();function c(e){if(!e||0===e.length)return!1;for(var t=0,n=e.length;t<n;t++){var i=e.charCodeAt(t);if(92===i){if(t++,t>=n)break;var r=e.charCodeAt(t);if(110===r||114===r||87===r||119===r)return!0}}return!1}var d=function(){function e(e,t,n){this.regex=e,this.wordSeparators=t,this.simpleSearch=n}return e}();function h(e,t,n){if(!n)return new a["b"](e,null);for(var i=[],r=0,o=t.length;r<o;r++)i[r]=t[r];return new a["b"](e,i)}var f=function(){function e(e){for(var t=[],n=0,i=0,r=e.length;i<r;i++)10===e.charCodeAt(i)&&(t[n++]=i);this._lineFeedsOffsets=t}return e.prototype.findLineFeedCountBeforeOffset=function(e){var t=this._lineFeedsOffsets,n=0,i=t.length-1;if(-1===i)return 0;if(e<=t[0])return 0;while(n<i){var r=n+((i-n)/2>>0);t[r]>=e?i=r-1:t[r+1]>=e?(n=r,i=r):n=r+1}return n+1},e}(),p=function(){function e(){}return e.findMatches=function(e,t,n,i,r){var o=t.parseSearchRequest();return o?o.regex.multiline?this._doFindMatchesMultiline(e,n,new v(o.wordSeparators,o.regex),i,r):this._doFindMatchesLineByLine(e,n,o,i,r):[]},e._getMultilineMatchRange=function(e,t,n,i,r,o){var a,u,l=0;if(i?(l=i.findLineFeedCountBeforeOffset(r),a=t+r+l):a=t+r,i){var c=i.findLineFeedCountBeforeOffset(r+o.length),d=c-l;u=a+o.length+d}else u=a+o.length;var h=e.getPositionAt(a),f=e.getPositionAt(u);return new s["a"](h.lineNumber,h.column,f.lineNumber,f.column)},e._doFindMatchesMultiline=function(e,t,n,i,r){var o,s=e.getOffsetAt(t.getStartPosition()),a=e.getValueInRange(t,1),u="\r\n"===e.getEOL()?new f(a):null,l=[],c=0;n.reset(0);while(o=n.next(a))if(l[c++]=h(this._getMultilineMatchRange(e,s,a,u,o.index,o[0]),o,i),c>=r)return l;return l},e._doFindMatchesLineByLine=function(e,t,n,i,r){var o=[],s=0;if(t.startLineNumber===t.endLineNumber){var a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1,t.endColumn-1);return s=this._findMatchesInLine(n,a,t.startLineNumber,t.startColumn-1,s,o,i,r),o}var u=e.getLineContent(t.startLineNumber).substring(t.startColumn-1);s=this._findMatchesInLine(n,u,t.startLineNumber,t.startColumn-1,s,o,i,r);for(var l=t.startLineNumber+1;l<t.endLineNumber&&s<r;l++)s=this._findMatchesInLine(n,e.getLineContent(l),l,0,s,o,i,r);if(s<r){var c=e.getLineContent(t.endLineNumber).substring(0,t.endColumn-1);s=this._findMatchesInLine(n,c,t.endLineNumber,0,s,o,i,r)}return o},e._findMatchesInLine=function(e,t,n,i,r,o,u,l){var c=e.wordSeparators;if(!u&&e.simpleSearch){var d=e.simpleSearch,f=d.length,p=t.length,g=-f;while(-1!==(g=t.indexOf(d,g+f)))if((!c||m(c,t,p,g,f))&&(o[r++]=new a["b"](new s["a"](n,g+1+i,n,g+1+f+i),null),r>=l))return r;return r}var A,_=new v(e.wordSeparators,e.regex);_.reset(0);do{if(A=_.next(t),A&&(o[r++]=h(new s["a"](n,A.index+1+i,n,A.index+1+A[0].length+i),A,u),r>=l))return r}while(A);return r},e.findNextMatch=function(e,t,n,i){var r=t.parseSearchRequest();if(!r)return null;var o=new v(r.wordSeparators,r.regex);return r.regex.multiline?this._doFindNextMatchMultiline(e,n,o,i):this._doFindNextMatchLineByLine(e,n,o,i)},e._doFindNextMatchMultiline=function(e,t,n,i){var r=new o["a"](t.lineNumber,1),a=e.getOffsetAt(r),u=e.getLineCount(),l=e.getValueInRange(new s["a"](r.lineNumber,r.column,u,e.getLineMaxColumn(u)),1),c="\r\n"===e.getEOL()?new f(l):null;n.reset(t.column-1);var d=n.next(l);return d?h(this._getMultilineMatchRange(e,a,l,c,d.index,d[0]),d,i):1!==t.lineNumber||1!==t.column?this._doFindNextMatchMultiline(e,new o["a"](1,1),n,i):null},e._doFindNextMatchLineByLine=function(e,t,n,i){var r=e.getLineCount(),o=t.lineNumber,s=e.getLineContent(o),a=this._findFirstMatchInLine(n,s,o,t.column,i);if(a)return a;for(var u=1;u<=r;u++){var l=(o+u-1)%r,c=e.getLineContent(l+1),d=this._findFirstMatchInLine(n,c,l+1,1,i);if(d)return d}return null},e._findFirstMatchInLine=function(e,t,n,i,r){e.reset(i-1);var o=e.next(t);return o?h(new s["a"](n,o.index+1,n,o.index+1+o[0].length),o,r):null},e.findPreviousMatch=function(e,t,n,i){var r=t.parseSearchRequest();if(!r)return null;var o=new v(r.wordSeparators,r.regex);return r.regex.multiline?this._doFindPreviousMatchMultiline(e,n,o,i):this._doFindPreviousMatchLineByLine(e,n,o,i)},e._doFindPreviousMatchMultiline=function(e,t,n,i){var r=this._doFindMatchesMultiline(e,new s["a"](1,1,t.lineNumber,t.column),n,i,10*u);if(r.length>0)return r[r.length-1];var a=e.getLineCount();return t.lineNumber!==a||t.column!==e.getLineMaxColumn(a)?this._doFindPreviousMatchMultiline(e,new o["a"](a,e.getLineMaxColumn(a)),n,i):null},e._doFindPreviousMatchLineByLine=function(e,t,n,i){var r=e.getLineCount(),o=t.lineNumber,s=e.getLineContent(o).substring(0,t.column-1),a=this._findLastMatchInLine(n,s,o,i);if(a)return a;for(var u=1;u<=r;u++){var l=(r+o-u-1)%r,c=e.getLineContent(l+1),d=this._findLastMatchInLine(n,c,l+1,i);if(d)return d}return null},e._findLastMatchInLine=function(e,t,n,i){var r,o=null;e.reset(0);while(r=e.next(t))o=h(new s["a"](n,r.index+1,n,r.index+1+r[0].length),r,i);return o},e}();function g(e,t,n,i,r){if(0===i)return!0;var o=t.charCodeAt(i-1);if(0!==e.get(o))return!0;if(13===o||10===o)return!0;if(r>0){var s=t.charCodeAt(i);if(0!==e.get(s))return!0}return!1}function A(e,t,n,i,r){if(i+r===n)return!0;var o=t.charCodeAt(i+r);if(0!==e.get(o))return!0;if(13===o||10===o)return!0;if(r>0){var s=t.charCodeAt(i+r-1);if(0!==e.get(s))return!0}return!1}function m(e,t,n,i,r){return g(e,t,n,i,r)&&A(e,t,n,i,r)}var v=function(){function e(e,t){this._wordSeparators=e,this._searchRegex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}return e.prototype.reset=function(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0},e.prototype.next=function(e){var t,n=e.length;do{if(this._prevMatchStartIndex+this._prevMatchLength===n)return null;if(t=this._searchRegex.exec(e),!t)return null;var i=t.index,r=t[0].length;if(i===this._prevMatchStartIndex&&r===this._prevMatchLength){if(0===r){this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=i,this._prevMatchLength=r,!this._wordSeparators||m(this._wordSeparators,e,n,i,r))return t}while(t);return null},e}()},jVwG:function(e,t,n){"use strict";n.r(t);var i=n("+hIS");Object(i["a"])({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:function(){return n.e(166).then(n.bind(null,"fYNN"))}})},jrbv:function(e,t,n){"use strict";n.r(t);var i=n("+hIS");Object(i["a"])({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:function(){return n.e(147).then(n.bind(null,"2ZXa"))}})},k7mE:function(e,t,n){"use strict";n.r(t);var i=n("+hIS");Object(i["a"])({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:function(){return n.e(158).then(n.bind(null,"BjZ/"))}})},k9mg:function(e,t,n){"use strict";n.d(t,"a",(function(){return it})),n.d(t,"b",(function(){return rt})),n.d(t,"d",(function(){return at})),n.d(t,"c",(function(){return Bt}));var i=n("EffR"),r=n("cqdO"),o=n("pmY6"),s=n("3/fG"),a=n("+7oY"),u=n("CRAX"),l=n("T8No"),c=n("Cg/j"),d=n("bexQ"),h=n("ic2d"),f=n("ptcw"),p=n("t9D7"),g="inputFocus",A=(n("2V9f"),n("MI8n")),m=n("uDWl"),v=n("ZQ78"),_=n("6OMU"),y=n("feEw"),b=n("4y0V"),w=n("fpMC"),C=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),S=function(e){function t(t,n){return e.call(this,"TreeError ["+t+"] "+n)||this}return C(t,e),t}(Error),N=function(){function e(e){this.fn=e,this._map=new WeakMap}return e.prototype.map=function(e){var t=this._map.get(e);return t||(t=this.fn(e),this._map.set(e,t)),t},e}(),L=n("JYp7"),E=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i};function x(e){return"object"===typeof e&&"visibility"in e&&"data"in e}function O(e){switch(e){case!0:return 1;case!1:return 0;default:return e}}function B(e){return"boolean"===typeof e.collapsible}var k=function(){function e(e,t,n,i){void 0===i&&(i={}),this.user=e,this.list=t,this.rootRef=[],this.eventBufferer=new A["c"],this._onDidChangeCollapseState=new A["a"],this.onDidChangeCollapseState=this.eventBufferer.wrapEvent(this._onDidChangeCollapseState.event),this._onDidChangeRenderNodeCount=new A["a"],this.onDidChangeRenderNodeCount=this.eventBufferer.wrapEvent(this._onDidChangeRenderNodeCount.event),this._onDidSplice=new A["a"],this.onDidSplice=this._onDidSplice.event,this.collapseByDefault="undefined"!==typeof i.collapseByDefault&&i.collapseByDefault,this.filter=i.filter,this.autoExpandSingleChildren="undefined"!==typeof i.autoExpandSingleChildren&&i.autoExpandSingleChildren,this.root={parent:void 0,element:n,children:[],depth:0,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:!1,collapsed:!1,renderNodeCount:0,visible:!0,filterData:void 0}}return e.prototype.splice=function(e,t,n,i,r){var o,s=this;if(0===e.length)throw new S(this.user,"Invalid tree location");for(var a=this.getParentNodeWithListIndex(e),u=a.parentNode,l=a.listIndex,c=a.revealed,d=a.visible,h=[],f=L["c"].map(L["c"].from(n),(function(e){return s.createTreeNode(e,u,u.visible?1:0,c,h,i)})),p=e[e.length-1],g=0,A=p;A>=0&&A<u.children.length;A--){var m=u.children[A];if(m.visible){g=m.visibleChildIndex;break}}var v=[],_=0,y=0;L["c"].forEach(f,(function(e){v.push(e),y+=e.renderNodeCount,e.visible&&(e.visibleChildIndex=g+_++)}));for(var b=(o=u.children).splice.apply(o,E([p,t],v)),w=0,C=0,N=b;C<N.length;C++){m=N[C];m.visible&&w++}if(0!==w)for(A=p+v.length;A<u.children.length;A++){m=u.children[A];m.visible&&(m.visibleChildIndex-=w)}if(u.visibleChildrenCount+=_-w,c&&d){var x=b.reduce((function(e,t){return e+(t.visible?t.renderNodeCount:0)}),0);this._updateAncestorsRenderNodeCount(u,y-x),this.list.splice(l,x,h)}if(b.length>0&&r){var O=function(e){r(e),e.children.forEach(O)};b.forEach(O)}this._onDidSplice.fire({insertedNodes:v,deletedNodes:b})},e.prototype.rerender=function(e){if(0===e.length)throw new S(this.user,"Invalid tree location");var t=this.getTreeNodeWithListIndex(e),n=t.node,i=t.listIndex,r=t.revealed;r&&this.list.splice(i,1,[n])},e.prototype.has=function(e){return this.hasTreeNode(e)},e.prototype.getListIndex=function(e){var t=this.getTreeNodeWithListIndex(e),n=t.listIndex,i=t.visible,r=t.revealed;return i&&r?n:-1},e.prototype.getListRenderCount=function(e){return this.getTreeNode(e).renderNodeCount},e.prototype.isCollapsible=function(e){return this.getTreeNode(e).collapsible},e.prototype.setCollapsible=function(e,t){var n=this,i=this.getTreeNode(e);"undefined"===typeof t&&(t=!i.collapsible);var r={collapsible:t};return this.eventBufferer.bufferEvents((function(){return n._setCollapseState(e,r)}))},e.prototype.isCollapsed=function(e){return this.getTreeNode(e).collapsed},e.prototype.setCollapsed=function(e,t,n){var i=this,r=this.getTreeNode(e);"undefined"===typeof t&&(t=!r.collapsed);var o={collapsed:t,recursive:n||!1};return this.eventBufferer.bufferEvents((function(){return i._setCollapseState(e,o)}))},e.prototype._setCollapseState=function(e,t){var n=this.getTreeNodeWithListIndex(e),i=n.node,r=n.listIndex,o=n.revealed,s=this._setListNodeCollapseState(i,r,o,t);if(i!==this.root&&this.autoExpandSingleChildren&&s&&!B(t)&&i.collapsible&&!i.collapsed&&!t.recursive){for(var a=-1,u=0;u<i.children.length;u++){var l=i.children[u];if(l.visible){if(a>-1){a=-1;break}a=u}}a>-1&&this._setCollapseState(E(e,[a]),t)}return s},e.prototype._setListNodeCollapseState=function(e,t,n,i){var r=this._setNodeCollapseState(e,i,!1);if(!n||!e.visible||!r)return r;var o=e.renderNodeCount,s=this.updateNodeAfterCollapseChange(e),a=o-(-1===t?0:1);return this.list.splice(t+1,a,s.slice(1)),r},e.prototype._setNodeCollapseState=function(e,t,n){var i;if(e===this.root?i=!1:(B(t)?(i=e.collapsible!==t.collapsible,e.collapsible=t.collapsible):e.collapsible?(i=e.collapsed!==t.collapsed,e.collapsed=t.collapsed):i=!1,i&&this._onDidChangeCollapseState.fire({node:e,deep:n})),!B(t)&&t.recursive)for(var r=0,o=e.children;r<o.length;r++){var s=o[r];i=this._setNodeCollapseState(s,t,!0)||i}return i},e.prototype.expandTo=function(e){var t=this;this.eventBufferer.bufferEvents((function(){var n=t.getTreeNode(e);while(n.parent)n=n.parent,e=e.slice(0,e.length-1),n.collapsed&&t._setCollapseState(e,{collapsed:!1,recursive:!1})}))},e.prototype.refilter=function(){var e=this.root.renderNodeCount,t=this.updateNodeAfterFilterChange(this.root);this.list.splice(0,e,t)},e.prototype.createTreeNode=function(e,t,n,i,r,o){var s=this,a={parent:t,element:e.element,children:[],depth:t.depth+1,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:"boolean"===typeof e.collapsible?e.collapsible:"undefined"!==typeof e.collapsed,collapsed:"undefined"===typeof e.collapsed?this.collapseByDefault:e.collapsed,renderNodeCount:1,visible:!0,filterData:void 0},u=this._filterNode(a,n);i&&r.push(a);var l=L["c"].from(e.children),c=i&&0!==u&&!a.collapsed,d=L["c"].map(l,(function(e){return s.createTreeNode(e,a,u,c,r,o)})),h=0,f=1;return L["c"].forEach(d,(function(e){a.children.push(e),f+=e.renderNodeCount,e.visible&&(e.visibleChildIndex=h++)})),a.collapsible=a.collapsible||a.children.length>0,a.visibleChildrenCount=h,a.visible=2===u?h>0:1===u,a.visible?a.collapsed||(a.renderNodeCount=f):(a.renderNodeCount=0,i&&r.pop()),o&&o(a),a},e.prototype.updateNodeAfterCollapseChange=function(e){var t=e.renderNodeCount,n=[];return this._updateNodeAfterCollapseChange(e,n),this._updateAncestorsRenderNodeCount(e.parent,n.length-t),n},e.prototype._updateNodeAfterCollapseChange=function(e,t){if(!1===e.visible)return 0;if(t.push(e),e.renderNodeCount=1,!e.collapsed)for(var n=0,i=e.children;n<i.length;n++){var r=i[n];e.renderNodeCount+=this._updateNodeAfterCollapseChange(r,t)}return this._onDidChangeRenderNodeCount.fire(e),e.renderNodeCount},e.prototype.updateNodeAfterFilterChange=function(e){var t=e.renderNodeCount,n=[];return this._updateNodeAfterFilterChange(e,e.visible?1:0,n),this._updateAncestorsRenderNodeCount(e.parent,n.length-t),n},e.prototype._updateNodeAfterFilterChange=function(e,t,n,i){var r;if(void 0===i&&(i=!0),e!==this.root){if(r=this._filterNode(e,t),0===r)return e.visible=!1,e.renderNodeCount=0,!1;i&&n.push(e)}var o=n.length;e.renderNodeCount=e===this.root?0:1;var s=!1;if(e.collapsed&&0===r)e.visibleChildrenCount=0;else{for(var a=0,u=0,l=e.children;u<l.length;u++){var c=l[u];s=this._updateNodeAfterFilterChange(c,r,n,i&&!e.collapsed)||s,c.visible&&(c.visibleChildIndex=a++)}e.visibleChildrenCount=a}return e!==this.root&&(e.visible=2===r?s:1===r),e.visible?e.collapsed||(e.renderNodeCount+=n.length-o):(e.renderNodeCount=0,i&&n.pop()),this._onDidChangeRenderNodeCount.fire(e),e.visible},e.prototype._updateAncestorsRenderNodeCount=function(e,t){if(0!==t)while(e)e.renderNodeCount+=t,this._onDidChangeRenderNodeCount.fire(e),e=e.parent},e.prototype._filterNode=function(e,t){var n=this.filter?this.filter.filter(e.element,t):1;return"boolean"===typeof n?(e.filterData=void 0,n?1:0):x(n)?(e.filterData=n.data,O(n.visibility)):(e.filterData=void 0,O(n))},e.prototype.hasTreeNode=function(e,t){if(void 0===t&&(t=this.root),!e||0===e.length)return!0;var n=e[0],i=e.slice(1);return!(n<0||n>t.children.length)&&this.hasTreeNode(i,t.children[n])},e.prototype.getTreeNode=function(e,t){if(void 0===t&&(t=this.root),!e||0===e.length)return t;var n=e[0],i=e.slice(1);if(n<0||n>t.children.length)throw new S(this.user,"Invalid tree location");return this.getTreeNode(i,t.children[n])},e.prototype.getTreeNodeWithListIndex=function(e){if(0===e.length)return{node:this.root,listIndex:-1,revealed:!0,visible:!1};var t=this.getParentNodeWithListIndex(e),n=t.parentNode,i=t.listIndex,r=t.revealed,o=t.visible,s=e[e.length-1];if(s<0||s>n.children.length)throw new S(this.user,"Invalid tree location");var a=n.children[s];return{node:a,listIndex:i,revealed:r,visible:o&&a.visible}},e.prototype.getParentNodeWithListIndex=function(e,t,n,i,r){void 0===t&&(t=this.root),void 0===n&&(n=0),void 0===i&&(i=!0),void 0===r&&(r=!0);var o=e[0],s=e.slice(1);if(o<0||o>t.children.length)throw new S(this.user,"Invalid tree location");for(var a=0;a<o;a++)n+=t.children[a].renderNodeCount;return i=i&&!t.collapsed,r=r&&t.visible,0===s.length?{parentNode:t,listIndex:n,revealed:i,visible:r}:this.getParentNodeWithListIndex(s,t.children[o],n+1,i,r)},e.prototype.getNode=function(e){return void 0===e&&(e=[]),this.getTreeNode(e)},e.prototype.getNodeLocation=function(e){var t=[],n=e;while(n.parent)t.push(n.parent.children.indexOf(n)),n=n.parent;return t.reverse()},e.prototype.getParentNodeLocation=function(e){return 0===e.length?void 0:1===e.length?[]:Object(_["w"])(e)[0]},e}(),D=n("X+cX"),I=n("MNsG"),M=n("QDVR"),F=n("Sdnv"),T=n("vl9R"),R=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),P=function(){return P=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},P.apply(this,arguments)},U=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i},H=function(e){function t(t){var n=e.call(this,t.elements.map((function(e){return e.element})))||this;return n.data=t,n}return R(t,e),t}(y["a"]);function j(e){return e instanceof y["a"]?new H(e):e}var Q=function(){function e(e,t){this.modelProvider=e,this.dnd=t,this.autoExpandDisposable=o["a"].None}return e.prototype.getDragURI=function(e){return this.dnd.getDragURI(e.element)},e.prototype.getDragLabel=function(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map((function(e){return e.element})),t)},e.prototype.onDragStart=function(e,t){this.dnd.onDragStart&&this.dnd.onDragStart(j(e),t)},e.prototype.onDragOver=function(e,t,n,i,r){var o=this;void 0===r&&(r=!0);var s=this.dnd.onDragOver(j(e),t&&t.element,n,i),a=this.autoExpandNode!==t;if(a&&(this.autoExpandDisposable.dispose(),this.autoExpandNode=t),"undefined"===typeof t)return s;if(a&&"boolean"!==typeof s&&s.autoExpand&&(this.autoExpandDisposable=Object(D["g"])((function(){var e=o.modelProvider(),n=e.getNodeLocation(t);e.isCollapsed(n)&&e.setCollapsed(n,!1),o.autoExpandNode=void 0}),500)),"boolean"===typeof s||!s.accept||"undefined"===typeof s.bubble||s.feedback){if(!r){var u="boolean"===typeof s?s:s.accept,l="boolean"===typeof s?void 0:s.effect;return{accept:u,effect:l,feedback:[n]}}return s}if(1===s.bubble){var c=this.modelProvider(),d=c.getNodeLocation(t),h=c.getParentNodeLocation(d),f=c.getNode(h),p=h&&c.getListIndex(h);return this.onDragOver(e,f,p,i,!1)}var g=this.modelProvider(),A=g.getNodeLocation(t),m=g.getListIndex(A),v=g.getListRenderCount(A);return P(P({},s),{feedback:Object(_["u"])(m,m+v)})},e.prototype.drop=function(e,t,n,i){this.autoExpandDisposable.dispose(),this.autoExpandNode=void 0,this.dnd.drop(j(e),t&&t.element,n,i)},e.prototype.onDragEnd=function(e){this.dnd.onDragEnd&&this.dnd.onDragEnd(e)},e}();function V(e,t){return t&&P(P({},t),{identityProvider:t.identityProvider&&{getId:function(e){return t.identityProvider.getId(e.element)}},dnd:t.dnd&&new Q(e,t.dnd),multipleSelectionController:t.multipleSelectionController&&{isSelectionSingleChangeEvent:function(e){return t.multipleSelectionController.isSelectionSingleChangeEvent(P(P({},e),{element:e.element}))},isSelectionRangeChangeEvent:function(e){return t.multipleSelectionController.isSelectionRangeChangeEvent(P(P({},e),{element:e.element}))}},accessibilityProvider:t.accessibilityProvider&&P(P({},t.accessibilityProvider),{getAriaLabel:function(e){return t.accessibilityProvider.getAriaLabel(e.element)},getAriaLevel:function(e){return e.depth},getActiveDescendantId:t.accessibilityProvider.getActiveDescendantId&&function(e){return t.accessibilityProvider.getActiveDescendantId(e.element)}}),keyboardNavigationLabelProvider:t.keyboardNavigationLabelProvider&&P(P({},t.keyboardNavigationLabelProvider),{getKeyboardNavigationLabel:function(e){return t.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e.element)}}),enableKeyboardNavigation:t.simpleKeyboardNavigation,ariaProvider:{getSetSize:function(t){var n=e(),i=n.getNodeLocation(t),r=n.getParentNodeLocation(i),o=n.getNode(r);return o.visibleChildrenCount},getPosInSet:function(e){return e.visibleChildIndex+1},isChecked:t.ariaProvider&&t.ariaProvider.isChecked?function(e){return t.ariaProvider.isChecked(e.element)}:void 0,getRole:t.ariaProvider&&t.ariaProvider.getRole?function(e){return t.ariaProvider.getRole(e.element)}:void 0}})}var W,z=function(){function e(e){this.delegate=e}return e.prototype.getHeight=function(e){return this.delegate.getHeight(e.element)},e.prototype.getTemplateId=function(e){return this.delegate.getTemplateId(e.element)},e.prototype.hasDynamicHeight=function(e){return!!this.delegate.hasDynamicHeight&&this.delegate.hasDynamicHeight(e.element)},e.prototype.setDynamicHeight=function(e,t){this.delegate.setDynamicHeight&&this.delegate.setDynamicHeight(e.element,t)},e}();(function(e){e["None"]="none",e["OnHover"]="onHover",e["Always"]="always"})(W||(W={}));var K=function(){function e(e,t){var n=this;void 0===t&&(t=[]),this._elements=t,this.onDidChange=A["b"].forEach(e,(function(e){return n._elements=e}))}return Object.defineProperty(e.prototype,"elements",{get:function(){return this._elements},enumerable:!0,configurable:!0}),e}(),q=function(){function e(t,n,i,r,s){void 0===s&&(s={}),this.renderer=t,this.modelProvider=n,this.activeNodes=r,this.renderedElements=new Map,this.renderedNodes=new Map,this.indent=e.DefaultIndent,this.hideTwistiesOfChildlessElements=!1,this.shouldRenderIndentGuides=!1,this.renderedIndentGuides=new T["a"],this.activeIndentNodes=new Set,this.indentGuidesDisposable=o["a"].None,this.disposables=new o["b"],this.templateId=t.templateId,this.updateOptions(s),A["b"].map(i,(function(e){return e.node}))(this.onDidChangeNodeTwistieState,this,this.disposables),t.onDidChangeTwistieState&&t.onDidChangeTwistieState(this.onDidChangeTwistieState,this,this.disposables)}return e.prototype.updateOptions=function(e){if(void 0===e&&(e={}),"undefined"!==typeof e.indent&&(this.indent=Object(F["a"])(e.indent,0,40)),"undefined"!==typeof e.renderIndentGuides){var t=e.renderIndentGuides!==W.None;if(t!==this.shouldRenderIndentGuides&&(this.shouldRenderIndentGuides=t,this.indentGuidesDisposable.dispose(),t)){var n=new o["b"];this.activeNodes.onDidChange(this._onDidChangeActiveNodes,this,n),this.indentGuidesDisposable=n,this._onDidChangeActiveNodes(this.activeNodes.elements)}}"undefined"!==typeof e.hideTwistiesOfChildlessElements&&(this.hideTwistiesOfChildlessElements=e.hideTwistiesOfChildlessElements)},e.prototype.renderTemplate=function(e){var t=Object(i["p"])(e,Object(i["a"])(".monaco-tl-row")),n=Object(i["p"])(t,Object(i["a"])(".monaco-tl-indent")),r=Object(i["p"])(t,Object(i["a"])(".monaco-tl-twistie")),s=Object(i["p"])(t,Object(i["a"])(".monaco-tl-contents")),a=this.renderer.renderTemplate(s);return{container:e,indent:n,twistie:r,indentGuidesDisposable:o["a"].None,templateData:a}},e.prototype.renderElement=function(t,n,i,r){"number"===typeof r&&(this.renderedNodes.set(t,{templateData:i,height:r}),this.renderedElements.set(t.element,t));var o=e.DefaultIndent+(t.depth-1)*this.indent;i.twistie.style.paddingLeft=o+"px",i.indent.style.width=o+this.indent-16+"px",this.renderTwistie(t,i),"number"===typeof r&&this.renderIndentGuides(t,i),this.renderer.renderElement(t,n,i.templateData,r)},e.prototype.disposeElement=function(e,t,n,i){n.indentGuidesDisposable.dispose(),this.renderer.disposeElement&&this.renderer.disposeElement(e,t,n.templateData,i),"number"===typeof i&&(this.renderedNodes.delete(e),this.renderedElements.delete(e.element))},e.prototype.disposeTemplate=function(e){this.renderer.disposeTemplate(e.templateData)},e.prototype.onDidChangeTwistieState=function(e){var t=this.renderedElements.get(e);t&&this.onDidChangeNodeTwistieState(t)},e.prototype.onDidChangeNodeTwistieState=function(e){var t=this.renderedNodes.get(e);t&&(this.renderTwistie(e,t.templateData),this._onDidChangeActiveNodes(this.activeNodes.elements),this.renderIndentGuides(e,t.templateData))},e.prototype.renderTwistie=function(e,t){this.renderer.renderTwistie&&this.renderer.renderTwistie(e.element,t.twistie),e.collapsible&&(!this.hideTwistiesOfChildlessElements||e.visibleChildrenCount>0)?(Object(i["f"])(t.twistie,"codicon","codicon-chevron-down","collapsible"),Object(i["X"])(t.twistie,"collapsed",e.collapsed)):Object(i["P"])(t.twistie,"codicon","codicon-chevron-down","collapsible","collapsed"),e.collapsible?t.container.setAttribute("aria-expanded",String(!e.collapsed)):t.container.removeAttribute("aria-expanded")},e.prototype.renderIndentGuides=function(e,t){var n=this;if(Object(i["s"])(t.indent),t.indentGuidesDisposable.dispose(),this.shouldRenderIndentGuides){var r=new o["b"],s=this.modelProvider(),a=e,u=function(){var e=s.getNodeLocation(a),u=s.getParentNodeLocation(e);if(!u)return"break";var c=s.getNode(u),d=Object(i["a"])(".indent-guide",{style:"width: "+l.indent+"px"});l.activeIndentNodes.has(c)&&Object(i["e"])(d,"active"),0===t.indent.childElementCount?t.indent.appendChild(d):t.indent.insertBefore(d,t.indent.firstElementChild),l.renderedIndentGuides.add(c,d),r.add(Object(o["h"])((function(){return n.renderedIndentGuides.delete(c,d)}))),a=c},l=this;while(1){var c=u();if("break"===c)break}t.indentGuidesDisposable=r}},e.prototype._onDidChangeActiveNodes=function(e){var t=this;if(this.shouldRenderIndentGuides){var n=new Set,r=this.modelProvider();e.forEach((function(e){var t=r.getNodeLocation(e);try{var i=r.getParentNodeLocation(t);e.collapsible&&e.children.length>0&&!e.collapsed?n.add(e):i&&n.add(r.getNode(i))}catch(o){}})),this.activeIndentNodes.forEach((function(e){n.has(e)||t.renderedIndentGuides.forEach(e,(function(e){return Object(i["O"])(e,"active")}))})),n.forEach((function(e){t.activeIndentNodes.has(e)||t.renderedIndentGuides.forEach(e,(function(e){return Object(i["e"])(e,"active")}))})),this.activeIndentNodes=n}},e.prototype.dispose=function(){this.renderedNodes.clear(),this.renderedElements.clear(),this.indentGuidesDisposable.dispose(),Object(o["f"])(this.disposables)},e.DefaultIndent=8,e}(),G=function(){function e(e,t,n){this.tree=e,this.keyboardNavigationLabelProvider=t,this._filter=n,this._totalCount=0,this._matchCount=0,this._pattern="",this._lowercasePattern="",this.disposables=new o["b"],e.onWillRefilter(this.reset,this,this.disposables)}return Object.defineProperty(e.prototype,"totalCount",{get:function(){return this._totalCount},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"matchCount",{get:function(){return this._matchCount},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pattern",{set:function(e){this._pattern=e,this._lowercasePattern=e.toLowerCase()},enumerable:!0,configurable:!0}),e.prototype.filter=function(e,t){if(this._filter){var n=this._filter.filter(e,t);if(this.tree.options.simpleKeyboardNavigation)return n;var i=void 0;if(i="boolean"===typeof n?n?1:0:x(n)?O(n.visibility):n,0===i)return!1}if(this._totalCount++,this.tree.options.simpleKeyboardNavigation||!this._pattern)return this._matchCount++,{data:w["a"].Default,visibility:!0};var r=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e),o=r&&r.toString();if("undefined"===typeof o)return{data:w["a"].Default,visibility:!0};var s=Object(w["d"])(this._pattern,this._lowercasePattern,0,o,o.toLowerCase(),0,!0);return s?(this._matchCount++,{data:s,visibility:!0}):this.tree.options.filterOnType?2:{data:w["a"].Default,visibility:!0}},e.prototype.reset=function(){this._totalCount=0,this._matchCount=0},e.prototype.dispose=function(){Object(o["f"])(this.disposables)},e}(),X=function(){function e(e,t,n,r,a){this.tree=e,this.view=n,this.filter=r,this.keyboardNavigationDelegate=a,this._enabled=!1,this._pattern="",this._empty=!1,this._onDidChangeEmptyState=new A["a"],this.positionClassName="ne",this.automaticKeyboardNavigation=!0,this.triggered=!1,this._onDidChangePattern=new A["a"],this.enabledDisposables=new o["b"],this.disposables=new o["b"],this.domNode=Object(i["a"])(".monaco-list-type-filter."+this.positionClassName),this.domNode.draggable=!0,Object(b["a"])(this.domNode,"dragstart")(this.onDragStart,this,this.disposables),this.messageDomNode=Object(i["p"])(n.getHTMLElement(),Object(i["a"])(".monaco-list-type-filter-message")),this.labelDomNode=Object(i["p"])(this.domNode,Object(i["a"])("span.label"));var u=Object(i["p"])(this.domNode,Object(i["a"])(".controls"));this._filterOnType=!!e.options.filterOnType,this.filterOnTypeDomNode=Object(i["p"])(u,Object(i["a"])("input.filter.codicon.codicon-list-selection")),this.filterOnTypeDomNode.type="checkbox",this.filterOnTypeDomNode.checked=this._filterOnType,this.filterOnTypeDomNode.tabIndex=-1,this.updateFilterOnTypeTitle(),Object(b["a"])(this.filterOnTypeDomNode,"input")(this.onDidChangeFilterOnType,this,this.disposables),this.clearDomNode=Object(i["p"])(u,Object(i["a"])("button.clear.codicon.codicon-close")),this.clearDomNode.tabIndex=-1,this.clearDomNode.title=Object(s["a"])("clear","Clear"),this.keyboardNavigationEventFilter=e.options.keyboardNavigationEventFilter,t.onDidSplice(this.onDidSpliceModel,this,this.disposables),this.updateOptions(e.options)}return Object.defineProperty(e.prototype,"enabled",{get:function(){return this._enabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pattern",{get:function(){return this._pattern},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"filterOnType",{get:function(){return this._filterOnType},enumerable:!0,configurable:!0}),e.prototype.updateOptions=function(e){e.simpleKeyboardNavigation?this.disable():this.enable(),"undefined"!==typeof e.filterOnType&&(this._filterOnType=!!e.filterOnType,this.filterOnTypeDomNode.checked=this._filterOnType),"undefined"!==typeof e.automaticKeyboardNavigation&&(this.automaticKeyboardNavigation=e.automaticKeyboardNavigation),this.tree.refilter(),this.render(),this.automaticKeyboardNavigation||this.onEventOrInput("")},e.prototype.enable=function(){var e=this;if(!this._enabled){var t=A["b"].chain(Object(b["a"])(this.view.getHTMLElement(),"keydown")).filter((function(t){return!Y(t.target)||t.target===e.filterOnTypeDomNode})).filter((function(e){return"Dead"!==e.key&&!/^Media/.test(e.key)})).map((function(e){return new m["a"](e)})).filter(this.keyboardNavigationEventFilter||function(){return!0}).filter((function(){return e.automaticKeyboardNavigation||e.triggered})).filter((function(t){return e.keyboardNavigationDelegate.mightProducePrintableCharacter(t)||(e.pattern.length>0||e.triggered)&&(9===t.keyCode||1===t.keyCode)&&!t.altKey&&!t.ctrlKey&&!t.metaKey||1===t.keyCode&&(I["e"]?t.altKey&&!t.metaKey:t.ctrlKey)&&!t.shiftKey})).forEach((function(e){e.stopPropagation(),e.preventDefault()})).event,n=Object(b["a"])(this.clearDomNode,"click");A["b"].chain(A["b"].any(t,n)).event(this.onEventOrInput,this,this.enabledDisposables),this.filter.pattern="",this.tree.refilter(),this.render(),this._enabled=!0,this.triggered=!1}},e.prototype.disable=function(){this._enabled&&(this.domNode.remove(),this.enabledDisposables.clear(),this.tree.refilter(),this.render(),this._enabled=!1,this.triggered=!1)},e.prototype.onEventOrInput=function(e){"string"===typeof e?this.onInput(e):e instanceof MouseEvent||9===e.keyCode||1===e.keyCode&&(I["e"]?e.altKey:e.ctrlKey)?this.onInput(""):1===e.keyCode?this.onInput(0===this.pattern.length?"":this.pattern.substr(0,this.pattern.length-1)):this.onInput(this.pattern+e.browserEvent.key)},e.prototype.onInput=function(e){var t=this.view.getHTMLElement();e&&!this.domNode.parentElement?t.append(this.domNode):!e&&this.domNode.parentElement&&(this.domNode.remove(),this.tree.domFocus()),this._pattern=e,this._onDidChangePattern.fire(e),this.filter.pattern=e,this.tree.refilter(),e&&this.tree.focusNext(0,!0,void 0,(function(e){return!w["a"].isDefault(e.filterData)}));var n=this.tree.getFocus();if(n.length>0){var i=n[0];null===this.tree.getRelativeTop(i)&&this.tree.reveal(i,.5)}this.render(),e||(this.triggered=!1)},e.prototype.onDragStart=function(){var e=this,t=this.view.getHTMLElement(),n=Object(i["B"])(t).left,r=t.clientWidth,s=r/2,a=this.domNode.clientWidth,u=new o["b"],l=this.positionClassName,c=function(){switch(l){case"nw":e.domNode.style.top="4px",e.domNode.style.left="4px";break;case"ne":e.domNode.style.top="4px",e.domNode.style.left=r-a-6+"px";break}},d=function(e){e.preventDefault();var t=e.screenX-n;e.dataTransfer&&(e.dataTransfer.dropEffect="none"),l=t<s?"nw":"ne",c()},h=function(){e.positionClassName=l,e.domNode.className="monaco-list-type-filter "+e.positionClassName,e.domNode.style.top="",e.domNode.style.left="",Object(o["f"])(u)};c(),Object(i["O"])(this.domNode,l),Object(i["e"])(this.domNode,"dragging"),u.add(Object(o["h"])((function(){return Object(i["O"])(e.domNode,"dragging")}))),Object(b["a"])(document,"dragover")(d,null,u),Object(b["a"])(this.domNode,"dragend")(h,null,u),v["c"].CurrentDragAndDropData=new v["b"]("vscode-ui"),u.add(Object(o["h"])((function(){return v["c"].CurrentDragAndDropData=void 0})))},e.prototype.onDidSpliceModel=function(){this._enabled&&0!==this.pattern.length&&(this.tree.refilter(),this.render())},e.prototype.onDidChangeFilterOnType=function(){this.tree.updateOptions({filterOnType:this.filterOnTypeDomNode.checked}),this.tree.refilter(),this.tree.domFocus(),this.render(),this.updateFilterOnTypeTitle()},e.prototype.updateFilterOnTypeTitle=function(){this.filterOnType?this.filterOnTypeDomNode.title=Object(s["a"])("disable filter on type","Disable Filter on Type"):this.filterOnTypeDomNode.title=Object(s["a"])("enable filter on type","Enable Filter on Type")},e.prototype.render=function(){var e=this.filter.totalCount>0&&0===this.filter.matchCount;this.pattern&&this.tree.options.filterOnType&&e?(this.messageDomNode.textContent=Object(s["a"])("empty","No elements found"),this._empty=!0):(this.messageDomNode.innerHTML="",this._empty=!1),Object(i["X"])(this.domNode,"no-matches",e),this.domNode.title=Object(s["a"])("found","Matched {0} out of {1} elements",this.filter.matchCount,this.filter.totalCount),this.labelDomNode.textContent=this.pattern.length>16?"\u2026"+this.pattern.substr(this.pattern.length-16):this.pattern,this._onDidChangeEmptyState.fire(this._empty)},e.prototype.shouldAllowFocus=function(e){return!(this.enabled&&this.pattern&&!this.filterOnType)||(this.filter.totalCount>0&&this.filter.matchCount<=1||!w["a"].isDefault(e.filterData))},e.prototype.dispose=function(){this._enabled&&(this.domNode.remove(),this.enabledDisposables.dispose(),this._enabled=!1,this.triggered=!1),this._onDidChangePattern.dispose(),Object(o["f"])(this.disposables)},e}();function Y(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName}function J(e){return{elements:e.elements.map((function(e){return e.element})),browserEvent:e.browserEvent}}function Z(e,t){t(e),e.children.forEach((function(e){return Z(e,t)}))}var $=function(){function e(e){this.identityProvider=e,this.nodes=[],this._onDidChange=new A["a"],this.onDidChange=this._onDidChange.event}return Object.defineProperty(e.prototype,"nodeSet",{get:function(){return this._nodeSet||(this._nodeSet=this.createNodeSet()),this._nodeSet},enumerable:!0,configurable:!0}),e.prototype.set=function(e,t){Object(_["g"])(this.nodes,e)||this._set(e,!1,t)},e.prototype._set=function(e,t,n){if(this.nodes=U(e),this.elements=void 0,this._nodeSet=void 0,!t){var i=this;this._onDidChange.fire({get elements(){return i.get()},browserEvent:n})}},e.prototype.get=function(){return this.elements||(this.elements=this.nodes.map((function(e){return e.element}))),U(this.elements)},e.prototype.getNodes=function(){return this.nodes},e.prototype.has=function(e){return this.nodeSet.has(e)},e.prototype.onDidModelSplice=function(e){var t=this,n=e.insertedNodes,i=e.deletedNodes;if(!this.identityProvider){var r=this.createNodeSet(),o=function(e){return r.delete(e)};return i.forEach((function(e){return Z(e,o)})),void this.set(Object(M["e"])(r))}var s=new Set,a=function(e){return s.add(t.identityProvider.getId(e.element).toString())};i.forEach((function(e){return Z(e,a)}));var u=new Map,l=function(e){return u.set(t.identityProvider.getId(e.element).toString(),e)};n.forEach((function(e){return Z(e,l)}));for(var c=[],d=0,h=this.nodes;d<h.length;d++){var f=h[d],p=this.identityProvider.getId(f.element).toString(),g=s.has(p);if(g){var A=u.get(p);A&&c.push(A)}else c.push(f)}this._set(c,!0)},e.prototype.createNodeSet=function(){for(var e=new Set,t=0,n=this.nodes;t<n.length;t++){var i=n[t];e.add(i)}return e},e}(),ee=function(e){function t(t,n){var i=e.call(this,t)||this;return i.tree=n,i}return R(t,e),t.prototype.onPointer=function(t){if(!Y(t.browserEvent.target)){var n=t.element;if(!n)return e.prototype.onPointer.call(this,t);if(this.isSelectionRangeChangeEvent(t)||this.isSelectionSingleChangeEvent(t))return e.prototype.onPointer.call(this,t);var r=Object(i["H"])(t.browserEvent.target,"monaco-tl-twistie");if(!this.tree.openOnSingleClick&&2!==t.browserEvent.detail&&!r)return e.prototype.onPointer.call(this,t);var o=!1;if(o="function"===typeof this.tree.expandOnlyOnTwistieClick?this.tree.expandOnlyOnTwistieClick(n.element):!!this.tree.expandOnlyOnTwistieClick,o&&!r)return e.prototype.onPointer.call(this,t);if(n.collapsible){var s=this.tree.model,a=s.getNodeLocation(n),u=t.browserEvent.altKey;if(s.setCollapsed(a,void 0,u),o&&r)return}e.prototype.onPointer.call(this,t)}},t.prototype.onDoubleClick=function(t){var n=Object(i["H"])(t.browserEvent.target,"monaco-tl-twistie");n||e.prototype.onDoubleClick.call(this,t)},t}(r["d"]),te=function(e){function t(t,n,i,r,o,s,a){var u=e.call(this,t,n,i,r,a)||this;return u.focusTrait=o,u.selectionTrait=s,u}return R(t,e),t.prototype.createMouseController=function(e){return new ee(this,e.tree)},t.prototype.splice=function(t,n,i){var r=this;if(void 0===i&&(i=[]),e.prototype.splice.call(this,t,n,i),0!==i.length){var o=[],s=[];i.forEach((function(e,n){r.focusTrait.has(e)&&o.push(t+n),r.selectionTrait.has(e)&&s.push(t+n)})),o.length>0&&e.prototype.setFocus.call(this,Object(_["f"])(U(e.prototype.getFocus.call(this),o))),s.length>0&&e.prototype.setSelection.call(this,Object(_["f"])(U(e.prototype.getSelection.call(this),s)))}},t.prototype.setFocus=function(t,n,i){var r=this;void 0===i&&(i=!1),e.prototype.setFocus.call(this,t,n),i||this.focusTrait.set(t.map((function(e){return r.element(e)})),n)},t.prototype.setSelection=function(t,n,i){var r=this;void 0===i&&(i=!1),e.prototype.setSelection.call(this,t,n),i||this.selectionTrait.set(t.map((function(e){return r.element(e)})),n)},t}(r["c"]),ne=function(){function e(e,t,n,s,a){var u=this;void 0===a&&(a={}),this._options=a,this.eventBufferer=new A["c"],this.disposables=new o["b"],this._onWillRefilter=new A["a"],this.onWillRefilter=this._onWillRefilter.event,this._onDidUpdateOptions=new A["a"];var l,c=new z(n),d=new A["e"],h=new A["e"],f=new K(h.event);this.renderers=s.map((function(e){return new q(e,(function(){return u.model}),d.event,f,a)}));for(var p=0,g=this.renderers;p<g.length;p++){var v=g[p];this.disposables.add(v)}a.keyboardNavigationLabelProvider&&(l=new G(this,a.keyboardNavigationLabelProvider,a.filter),a=P(P({},a),{filter:l}),this.disposables.add(l)),this.focus=new $(a.identityProvider),this.selection=new $(a.identityProvider),this.view=new te(e,t,c,this.renderers,this.focus,this.selection,P(P({},V((function(){return u.model}),a)),{tree:this})),this.model=this.createModel(e,this.view,a),d.input=this.model.onDidChangeCollapseState;var y=A["b"].forEach(this.model.onDidSplice,(function(e){u.eventBufferer.bufferEvents((function(){u.focus.onDidModelSplice(e),u.selection.onDidModelSplice(e)}))}));if(y((function(){return null}),null,this.disposables),h.input=A["b"].chain(A["b"].any(y,this.focus.onDidChange,this.selection.onDidChange)).debounce((function(){return null}),0).map((function(){for(var e=new Set,t=0,n=u.focus.getNodes();t<n.length;t++){var i=n[t];e.add(i)}for(var r=0,o=u.selection.getNodes();r<o.length;r++){i=o[r];e.add(i)}return Object(_["n"])(e)})).event,!1!==a.keyboardSupport){var b=A["b"].chain(this.view.onKeyDown).filter((function(e){return!Y(e.target)})).map((function(e){return new m["a"](e)}));b.filter((function(e){return 15===e.keyCode})).on(this.onLeftArrow,this,this.disposables),b.filter((function(e){return 17===e.keyCode})).on(this.onRightArrow,this,this.disposables),b.filter((function(e){return 10===e.keyCode})).on(this.onSpace,this,this.disposables)}if(a.keyboardNavigationLabelProvider){var w=a.keyboardNavigationDelegate||r["a"];this.typeFilterController=new X(this,this.model,this.view,l,w),this.focusNavigationFilter=function(e){return u.typeFilterController.shouldAllowFocus(e)},this.disposables.add(this.typeFilterController)}this.styleElement=Object(i["v"])(this.view.getHTMLElement()),Object(i["X"])(this.getHTMLElement(),"always",this._options.renderIndentGuides===W.Always)}return Object.defineProperty(e.prototype,"onDidChangeFocus",{get:function(){return this.eventBufferer.wrapEvent(this.focus.onDidChange)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidChangeSelection",{get:function(){return this.eventBufferer.wrapEvent(this.selection.onDidChange)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidOpen",{get:function(){return A["b"].map(this.view.onDidOpen,J)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidFocus",{get:function(){return this.view.onDidFocus},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidChangeCollapseState",{get:function(){return this.model.onDidChangeCollapseState},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"openOnSingleClick",{get:function(){return"undefined"===typeof this._options.openOnSingleClick||this._options.openOnSingleClick},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"expandOnlyOnTwistieClick",{get:function(){return"undefined"!==typeof this._options.expandOnlyOnTwistieClick&&this._options.expandOnlyOnTwistieClick},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidDispose",{get:function(){return this.view.onDidDispose},enumerable:!0,configurable:!0}),e.prototype.updateOptions=function(e){void 0===e&&(e={}),this._options=P(P({},this._options),e);for(var t=0,n=this.renderers;t<n.length;t++){var r=n[t];r.updateOptions(e)}this.view.updateOptions({enableKeyboardNavigation:this._options.simpleKeyboardNavigation,automaticKeyboardNavigation:this._options.automaticKeyboardNavigation}),this.typeFilterController&&this.typeFilterController.updateOptions(this._options),this._onDidUpdateOptions.fire(this._options),Object(i["X"])(this.getHTMLElement(),"always",this._options.renderIndentGuides===W.Always)},Object.defineProperty(e.prototype,"options",{get:function(){return this._options},enumerable:!0,configurable:!0}),e.prototype.getHTMLElement=function(){return this.view.getHTMLElement()},Object.defineProperty(e.prototype,"scrollTop",{get:function(){return this.view.scrollTop},set:function(e){this.view.scrollTop=e},enumerable:!0,configurable:!0}),e.prototype.domFocus=function(){this.view.domFocus()},e.prototype.layout=function(e,t){this.view.layout(e,t)},e.prototype.style=function(e){var t="."+this.view.domId,n=[];e.treeIndentGuidesStroke&&(n.push(".monaco-list"+t+":hover .monaco-tl-indent > .indent-guide, .monaco-list"+t+".always .monaco-tl-indent > .indent-guide { border-color: "+e.treeIndentGuidesStroke.transparent(.4)+"; }"),n.push(".monaco-list"+t+" .monaco-tl-indent > .indent-guide.active { border-color: "+e.treeIndentGuidesStroke+"; }"));var i=n.join("\n");i!==this.styleElement.innerHTML&&(this.styleElement.innerHTML=i),this.view.style(e)},e.prototype.collapse=function(e,t){return void 0===t&&(t=!1),this.model.setCollapsed(e,!0,t)},e.prototype.expand=function(e,t){return void 0===t&&(t=!1),this.model.setCollapsed(e,!1,t)},e.prototype.isCollapsible=function(e){return this.model.isCollapsible(e)},e.prototype.setCollapsible=function(e,t){return this.model.setCollapsible(e,t)},e.prototype.isCollapsed=function(e){return this.model.isCollapsed(e)},e.prototype.refilter=function(){this._onWillRefilter.fire(void 0),this.model.refilter()},e.prototype.setSelection=function(e,t){var n=this,i=e.map((function(e){return n.model.getNode(e)}));this.selection.set(i,t);var r=e.map((function(e){return n.model.getListIndex(e)})).filter((function(e){return e>-1}));this.view.setSelection(r,t,!0)},e.prototype.getSelection=function(){return this.selection.get()},e.prototype.setFocus=function(e,t){var n=this,i=e.map((function(e){return n.model.getNode(e)}));this.focus.set(i,t);var r=e.map((function(e){return n.model.getListIndex(e)})).filter((function(e){return e>-1}));this.view.setFocus(r,t,!0)},e.prototype.focusNext=function(e,t,n,i){void 0===e&&(e=1),void 0===t&&(t=!1),void 0===i&&(i=this.focusNavigationFilter),this.view.focusNext(e,t,n,i)},e.prototype.getFocus=function(){return this.focus.get()},e.prototype.reveal=function(e,t){this.model.expandTo(e);var n=this.model.getListIndex(e);-1!==n&&this.view.reveal(n,t)},e.prototype.getRelativeTop=function(e){var t=this.model.getListIndex(e);return-1===t?null:this.view.getRelativeTop(t)},e.prototype.onLeftArrow=function(e){e.preventDefault(),e.stopPropagation();var t=this.view.getFocusedElements();if(0!==t.length){var n=t[0],i=this.model.getNodeLocation(n),r=this.model.setCollapsed(i,!0);if(!r){var o=this.model.getParentNodeLocation(i);if(!o)return;var s=this.model.getListIndex(o);this.view.reveal(s),this.view.setFocus([s])}}},e.prototype.onRightArrow=function(e){e.preventDefault(),e.stopPropagation();var t=this.view.getFocusedElements();if(0!==t.length){var n=t[0],i=this.model.getNodeLocation(n),r=this.model.setCollapsed(i,!1);if(!r){if(!n.children.some((function(e){return e.visible})))return;var o=this.view.getFocus()[0],s=o+1;this.view.reveal(s),this.view.setFocus([s])}}},e.prototype.onSpace=function(e){e.preventDefault(),e.stopPropagation();var t=this.view.getFocusedElements();if(0!==t.length){var n=t[0],i=this.model.getNodeLocation(n),r=e.browserEvent.altKey;this.model.setCollapsed(i,void 0,r)}},e.prototype.dispose=function(){Object(o["f"])(this.disposables),this.view.dispose()},e}(),ie=function(){return ie=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},ie.apply(this,arguments)},re=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i},oe=function(){function e(e,t,n){void 0===n&&(n={}),this.user=e,this.nodes=new Map,this.nodesByIdentity=new Map,this.model=new k(e,t,null,n),this.onDidSplice=this.model.onDidSplice,this.onDidChangeCollapseState=this.model.onDidChangeCollapseState,this.onDidChangeRenderNodeCount=this.model.onDidChangeRenderNodeCount,n.sorter&&(this.sorter={compare:function(e,t){return n.sorter.compare(e.element,t.element)}}),this.identityProvider=n.identityProvider}return e.prototype.setChildren=function(e,t,n,i){var r=this.getElementLocation(e);this._setChildren(r,this.preserveCollapseState(t),n,i)},e.prototype._setChildren=function(e,t,n,i){var r=this,o=new Set,s=new Set,a=function(e){if(o.add(e.element),r.nodes.set(e.element,e),r.identityProvider){var t=r.identityProvider.getId(e.element).toString();s.add(t),r.nodesByIdentity.set(t,e)}n&&n(e)},u=function(e){if(o.has(e.element)||r.nodes.delete(e.element),r.identityProvider){var t=r.identityProvider.getId(e.element).toString();s.has(t)||r.nodesByIdentity.delete(t)}i&&i(e)};this.model.splice(re(e,[0]),Number.MAX_VALUE,t,a,u)},e.prototype.preserveCollapseState=function(e){var t=this,n=e?Object(L["d"])(e):L["c"].empty();return this.sorter&&(n=L["c"].fromArray(Object(_["r"])(L["c"].collect(n),this.sorter.compare.bind(this.sorter)))),L["c"].map(n,(function(e){var n=t.nodes.get(e.element);if(!n&&t.identityProvider){var i=t.identityProvider.getId(e.element).toString();n=t.nodesByIdentity.get(i)}if(!n)return ie(ie({},e),{children:t.preserveCollapseState(e.children)});var r="boolean"===typeof e.collapsible?e.collapsible:n.collapsible,o="undefined"!==typeof e.collapsed?e.collapsed:n.collapsed;return ie(ie({},e),{collapsible:r,collapsed:o,children:t.preserveCollapseState(e.children)})}))},e.prototype.rerender=function(e){var t=this.getElementLocation(e);this.model.rerender(t)},e.prototype.has=function(e){return this.nodes.has(e)},e.prototype.getListIndex=function(e){var t=this.getElementLocation(e);return this.model.getListIndex(t)},e.prototype.getListRenderCount=function(e){var t=this.getElementLocation(e);return this.model.getListRenderCount(t)},e.prototype.isCollapsible=function(e){var t=this.getElementLocation(e);return this.model.isCollapsible(t)},e.prototype.setCollapsible=function(e,t){var n=this.getElementLocation(e);return this.model.setCollapsible(n,t)},e.prototype.isCollapsed=function(e){var t=this.getElementLocation(e);return this.model.isCollapsed(t)},e.prototype.setCollapsed=function(e,t,n){var i=this.getElementLocation(e);return this.model.setCollapsed(i,t,n)},e.prototype.expandTo=function(e){var t=this.getElementLocation(e);this.model.expandTo(t)},e.prototype.refilter=function(){this.model.refilter()},e.prototype.getNode=function(e){if(void 0===e&&(e=null),null===e)return this.model.getNode(this.model.rootRef);var t=this.nodes.get(e);if(!t)throw new S(this.user,"Tree element not found: "+e);return t},e.prototype.getNodeLocation=function(e){return e.element},e.prototype.getParentNodeLocation=function(e){if(null===e)throw new S(this.user,"Invalid getParentNodeLocation call");var t=this.nodes.get(e);if(!t)throw new S(this.user,"Tree element not found: "+e);var n=this.model.getNodeLocation(t),i=this.model.getParentNodeLocation(n),r=this.model.getNode(i);return r.element},e.prototype.getElementLocation=function(e){if(null===e)return[];var t=this.nodes.get(e);if(!t)throw new S(this.user,"Tree element not found: "+e);return this.model.getNodeLocation(t)},e}(),se=function(){return se=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},se.apply(this,arguments)};function ae(e){var t=[e.element],n=e.incompressible||!1;return{element:{elements:t,incompressible:n},children:L["c"].map(L["c"].from(e.children),ae),collapsible:e.collapsible,collapsed:e.collapsed}}function ue(e){var t,n,i=[e.element],r=e.incompressible||!1;while(1){if(t=L["c"].from(e.children),n=L["c"].collect(t,2),1!==n.length)break;if(e=n[0],e.incompressible)break;i.push(e.element)}return{element:{elements:i,incompressible:r},children:L["c"].map(L["c"].concat(L["c"].fromArray(n),t),ue),collapsible:e.collapsible,collapsed:e.collapsed}}function le(e,t){var n;return void 0===t&&(t=0),n=t<e.element.elements.length-1?L["c"].single(le(e,t+1)):L["c"].map(L["c"].from(e.children),(function(e){return le(e,0)})),0===t&&e.element.incompressible?{element:e.element.elements[t],children:n,incompressible:!0,collapsible:e.collapsible,collapsed:e.collapsed}:{element:e.element.elements[t],children:n,collapsible:e.collapsible,collapsed:e.collapsed}}function ce(e){return le(e,0)}function de(e,t,n){return e.element===t?se(se({},e),{children:n}):se(se({},e),{children:L["c"].map(L["c"].from(e.children),(function(e){return de(e,t,n)}))})}var he=function(){function e(e,t,n){void 0===n&&(n={}),this.user=e,this.nodes=new Map,this.model=new oe(e,t,n),this.enabled="undefined"===typeof n.compressionEnabled||n.compressionEnabled}return Object.defineProperty(e.prototype,"onDidSplice",{get:function(){return this.model.onDidSplice},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidChangeCollapseState",{get:function(){return this.model.onDidChangeCollapseState},enumerable:!0,configurable:!0}),e.prototype.setChildren=function(e,t){if(null!==e){var n=this.nodes.get(e);if(!n)throw new Error("Unknown compressed tree node");var i=this.model.getNode(n),r=this.model.getParentNodeLocation(n),o=this.model.getNode(r),s=ce(i),a=de(s,e,L["c"].from(t)),u=(this.enabled?ue:ae)(a),l=o.children.map((function(e){return e===i?u:e}));this._setChildren(o.element,l)}else{var c=L["c"].map(L["c"].from(t),this.enabled?ue:ae);this._setChildren(null,c)}},e.prototype.setCompressionEnabled=function(e){if(e!==this.enabled){this.enabled=e;var t=this.model.getNode(),n=L["c"].from(t.children),i=L["c"].map(n,ce),r=L["c"].map(i,e?ue:ae);this._setChildren(null,r)}},e.prototype._setChildren=function(e,t){var n=this,i=new Set,r=function(e){for(var t=0,r=e.element.elements;t<r.length;t++){var o=r[t];i.add(o),n.nodes.set(o,e.element)}},o=function(e){for(var t=0,r=e.element.elements;t<r.length;t++){var o=r[t];i.has(o)||n.nodes.delete(o)}};this.model.setChildren(e,t,r,o)},e.prototype.has=function(e){return this.nodes.has(e)},e.prototype.getListIndex=function(e){var t=this.getCompressedNode(e);return this.model.getListIndex(t)},e.prototype.getListRenderCount=function(e){var t=this.getCompressedNode(e);return this.model.getListRenderCount(t)},e.prototype.getNode=function(e){if("undefined"===typeof e)return this.model.getNode();var t=this.getCompressedNode(e);return this.model.getNode(t)},e.prototype.getNodeLocation=function(e){var t=this.model.getNodeLocation(e);return null===t?null:t.elements[t.elements.length-1]},e.prototype.getParentNodeLocation=function(e){var t=this.getCompressedNode(e),n=this.model.getParentNodeLocation(t);return null===n?null:n.elements[n.elements.length-1]},e.prototype.isCollapsible=function(e){var t=this.getCompressedNode(e);return this.model.isCollapsible(t)},e.prototype.setCollapsible=function(e,t){var n=this.getCompressedNode(e);return this.model.setCollapsible(n,t)},e.prototype.isCollapsed=function(e){var t=this.getCompressedNode(e);return this.model.isCollapsed(t)},e.prototype.setCollapsed=function(e,t,n){var i=this.getCompressedNode(e);return this.model.setCollapsed(i,t,n)},e.prototype.expandTo=function(e){var t=this.getCompressedNode(e);this.model.expandTo(t)},e.prototype.rerender=function(e){var t=this.getCompressedNode(e);this.model.rerender(t)},e.prototype.refilter=function(){this.model.refilter()},e.prototype.getCompressedNode=function(e){if(null===e)return null;var t=this.nodes.get(e);if(!t)throw new S(this.user,"Tree element not found: "+e);return t},e}(),fe=function(e){return e[e.length-1]},pe=function(){function e(e,t){this.unwrapper=e,this.node=t}return Object.defineProperty(e.prototype,"element",{get:function(){return null===this.node.element?null:this.unwrapper(this.node.element)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){var t=this;return this.node.children.map((function(n){return new e(t.unwrapper,n)}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"depth",{get:function(){return this.node.depth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visibleChildrenCount",{get:function(){return this.node.visibleChildrenCount},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visibleChildIndex",{get:function(){return this.node.visibleChildIndex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"collapsible",{get:function(){return this.node.collapsible},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"collapsed",{get:function(){return this.node.collapsed},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visible",{get:function(){return this.node.visible},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"filterData",{get:function(){return this.node.filterData},enumerable:!0,configurable:!0}),e}();function ge(e,t){return{splice:function(n,i,r){t.splice(n,i,r.map((function(t){return e.map(t)})))}}}function Ae(e,t){return se(se({},t),{sorter:t.sorter&&{compare:function(e,n){return t.sorter.compare(e.elements[0],n.elements[0])}},identityProvider:t.identityProvider&&{getId:function(n){return t.identityProvider.getId(e(n))}},filter:t.filter&&{filter:function(n,i){return t.filter.filter(e(n),i)}}})}var me=function(){function e(e,t,n){var i=this;void 0===n&&(n={}),this.elementMapper=n.elementMapper||fe;var r=function(e){return i.elementMapper(e.elements)};this.nodeMapper=new N((function(e){return new pe(r,e)})),this.model=new he(e,ge(this.nodeMapper,t),Ae(r,n))}return Object.defineProperty(e.prototype,"onDidSplice",{get:function(){var e=this;return A["b"].map(this.model.onDidSplice,(function(t){var n=t.insertedNodes,i=t.deletedNodes;return{insertedNodes:n.map((function(t){return e.nodeMapper.map(t)})),deletedNodes:i.map((function(t){return e.nodeMapper.map(t)}))}}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidChangeCollapseState",{get:function(){var e=this;return A["b"].map(this.model.onDidChangeCollapseState,(function(t){var n=t.node,i=t.deep;return{node:e.nodeMapper.map(n),deep:i}}))},enumerable:!0,configurable:!0}),e.prototype.setChildren=function(e,t){this.model.setChildren(e,t)},e.prototype.setCompressionEnabled=function(e){this.model.setCompressionEnabled(e)},e.prototype.has=function(e){return this.model.has(e)},e.prototype.getListIndex=function(e){return this.model.getListIndex(e)},e.prototype.getListRenderCount=function(e){return this.model.getListRenderCount(e)},e.prototype.getNode=function(e){return this.nodeMapper.map(this.model.getNode(e))},e.prototype.getNodeLocation=function(e){return e.element},e.prototype.getParentNodeLocation=function(e){return this.model.getParentNodeLocation(e)},e.prototype.isCollapsible=function(e){return this.model.isCollapsible(e)},e.prototype.setCollapsible=function(e,t){return this.model.setCollapsible(e,t)},e.prototype.isCollapsed=function(e){return this.model.isCollapsed(e)},e.prototype.setCollapsed=function(e,t,n){return this.model.setCollapsed(e,t,n)},e.prototype.expandTo=function(e){return this.model.expandTo(e)},e.prototype.rerender=function(e){return this.model.rerender(e)},e.prototype.refilter=function(){return this.model.refilter()},e.prototype.getCompressedTreeNode=function(e){return void 0===e&&(e=null),this.model.getNode(e)},e}(),ve=n("ZCR3"),_e=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),ye=function(){return ye=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},ye.apply(this,arguments)},be=function(e,t,n,i){var r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},we=function(e){function t(t,n,i,r,o){return void 0===o&&(o={}),e.call(this,t,n,i,r,o)||this}return _e(t,e),Object.defineProperty(t.prototype,"onDidChangeCollapseState",{get:function(){return this.model.onDidChangeCollapseState},enumerable:!0,configurable:!0}),t.prototype.setChildren=function(e,t){this.model.setChildren(e,t)},t.prototype.rerender=function(e){void 0!==e?this.model.rerender(e):this.view.rerender()},t.prototype.hasElement=function(e){return this.model.has(e)},t.prototype.createModel=function(e,t,n){return new oe(e,t,n)},t}(ne),Ce=function(){function e(e,t){this._compressedTreeNodeProvider=e,this.renderer=t,this.templateId=t.templateId,t.onDidChangeTwistieState&&(this.onDidChangeTwistieState=t.onDidChangeTwistieState)}return Object.defineProperty(e.prototype,"compressedTreeNodeProvider",{get:function(){return this._compressedTreeNodeProvider()},enumerable:!0,configurable:!0}),e.prototype.renderTemplate=function(e){var t=this.renderer.renderTemplate(e);return{compressedTreeNode:void 0,data:t}},e.prototype.renderElement=function(e,t,n,i){var r=this.compressedTreeNodeProvider.getCompressedTreeNode(e.element);1===r.element.elements.length?(n.compressedTreeNode=void 0,this.renderer.renderElement(e,t,n.data,i)):(n.compressedTreeNode=r,this.renderer.renderCompressedElements(r,t,n.data,i))},e.prototype.disposeElement=function(e,t,n,i){n.compressedTreeNode?this.renderer.disposeCompressedElements&&this.renderer.disposeCompressedElements(n.compressedTreeNode,t,n.data,i):this.renderer.disposeElement&&this.renderer.disposeElement(e,t,n.data,i)},e.prototype.disposeTemplate=function(e){this.renderer.disposeTemplate(e.data)},e.prototype.renderTwistie=function(e,t){this.renderer.renderTwistie&&this.renderer.renderTwistie(e,t)},be([ve["a"]],e.prototype,"compressedTreeNodeProvider",null),e}();function Se(e,t){return t&&ye(ye({},t),{keyboardNavigationLabelProvider:t.keyboardNavigationLabelProvider&&{getKeyboardNavigationLabel:function(n){var i;try{i=e().getCompressedTreeNode(n)}catch(r){return t.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(n)}return 1===i.element.elements.length?t.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(n):t.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(i.element.elements)}}})}var Ne=function(e){function t(t,n,i,r,o){void 0===o&&(o={});var s=this,a=function(){return s},u=r.map((function(e){return new Ce(a,e)}));return s=e.call(this,t,n,i,u,Se(a,o))||this,s}return _e(t,e),t.prototype.setChildren=function(e,t){this.model.setChildren(e,t)},t.prototype.createModel=function(e,t,n){return new me(e,t,n)},t.prototype.updateOptions=function(t){void 0===t&&(t={}),e.prototype.updateOptions.call(this,t),"undefined"!==typeof t.compressionEnabled&&this.model.setCompressionEnabled(t.compressionEnabled)},t.prototype.getCompressedTreeNode=function(e){return void 0===e&&(e=null),this.model.getCompressedTreeNode(e)},t}(we),Le=n("/cxE"),Ee=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),xe=function(){return xe=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},xe.apply(this,arguments)},Oe=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{u(i.next(e))}catch(t){o(t)}}function a(e){try{u(i["throw"](e))}catch(t){o(t)}}function u(e){e.done?n(e.value):r(e.value).then(s,a)}u((i=i.apply(e,t||[])).next())}))},Be=function(e,t){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(e){return function(t){return u([e,t])}}function u(o){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,i&&(r=2&o[0]?i["return"]:o[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(r=s.trys,!(r=r.length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(a){o=[6,a],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},ke=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i};function De(e){return xe(xe({},e),{children:[],refreshPromise:void 0,stale:!0,slow:!1,collapsedByDefault:void 0})}function Ie(e,t){return!!t.parent&&(t.parent===e||Ie(e,t.parent))}function Me(e,t){return e===t||Ie(e,t)||Ie(t,e)}var Fe=function(){function e(e){this.node=e}return Object.defineProperty(e.prototype,"element",{get:function(){return this.node.element.element},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this.node.children.map((function(t){return new e(t)}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"depth",{get:function(){return this.node.depth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visibleChildrenCount",{get:function(){return this.node.visibleChildrenCount},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visibleChildIndex",{get:function(){return this.node.visibleChildIndex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"collapsible",{get:function(){return this.node.collapsible},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"collapsed",{get:function(){return this.node.collapsed},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visible",{get:function(){return this.node.visible},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"filterData",{get:function(){return this.node.filterData},enumerable:!0,configurable:!0}),e}(),Te=function(){function e(e,t,n){this.renderer=e,this.nodeMapper=t,this.onDidChangeTwistieState=n,this.renderedNodes=new Map,this.templateId=e.templateId}return e.prototype.renderTemplate=function(e){var t=this.renderer.renderTemplate(e);return{templateData:t}},e.prototype.renderElement=function(e,t,n,i){this.renderer.renderElement(this.nodeMapper.map(e),t,n.templateData,i)},e.prototype.renderTwistie=function(e,t){return Object(i["X"])(t,"codicon-loading",e.slow),!1},e.prototype.disposeElement=function(e,t,n,i){this.renderer.disposeElement&&this.renderer.disposeElement(this.nodeMapper.map(e),t,n.templateData,i)},e.prototype.disposeTemplate=function(e){this.renderer.disposeTemplate(e.templateData)},e.prototype.dispose=function(){this.renderedNodes.clear()},e}();function Re(e){return{browserEvent:e.browserEvent,elements:e.elements.map((function(e){return e.element}))}}var Pe=function(e){function t(t){var n=e.call(this,t.elements.map((function(e){return e.element})))||this;return n.data=t,n}return Ee(t,e),t}(y["a"]);function Ue(e){return e instanceof y["a"]?new Pe(e):e}var He=function(){function e(e){this.dnd=e}return e.prototype.getDragURI=function(e){return this.dnd.getDragURI(e.element)},e.prototype.getDragLabel=function(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map((function(e){return e.element})),t)},e.prototype.onDragStart=function(e,t){this.dnd.onDragStart&&this.dnd.onDragStart(Ue(e),t)},e.prototype.onDragOver=function(e,t,n,i,r){return void 0===r&&(r=!0),this.dnd.onDragOver(Ue(e),t&&t.element,n,i)},e.prototype.drop=function(e,t,n,i){this.dnd.drop(Ue(e),t&&t.element,n,i)},e.prototype.onDragEnd=function(e){this.dnd.onDragEnd&&this.dnd.onDragEnd(e)},e}();function je(e){return e&&xe(xe({},e),{collapseByDefault:!0,identityProvider:e.identityProvider&&{getId:function(t){return e.identityProvider.getId(t.element)}},dnd:e.dnd&&new He(e.dnd),multipleSelectionController:e.multipleSelectionController&&{isSelectionSingleChangeEvent:function(t){return e.multipleSelectionController.isSelectionSingleChangeEvent(xe(xe({},t),{element:t.element}))},isSelectionRangeChangeEvent:function(t){return e.multipleSelectionController.isSelectionRangeChangeEvent(xe(xe({},t),{element:t.element}))}},accessibilityProvider:e.accessibilityProvider&&xe(xe({},e.accessibilityProvider),{getAriaLabel:function(t){return e.accessibilityProvider.getAriaLabel(t.element)},getAriaLevel:e.accessibilityProvider.getAriaLevel&&function(t){return e.accessibilityProvider.getAriaLevel(t.element)},getActiveDescendantId:e.accessibilityProvider.getActiveDescendantId&&function(t){return e.accessibilityProvider.getActiveDescendantId(t.element)}}),filter:e.filter&&{filter:function(t,n){return e.filter.filter(t.element,n)}},keyboardNavigationLabelProvider:e.keyboardNavigationLabelProvider&&xe(xe({},e.keyboardNavigationLabelProvider),{getKeyboardNavigationLabel:function(t){return e.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(t.element)}}),sorter:void 0,expandOnlyOnTwistieClick:"undefined"===typeof e.expandOnlyOnTwistieClick?void 0:"function"!==typeof e.expandOnlyOnTwistieClick?e.expandOnlyOnTwistieClick:function(t){return e.expandOnlyOnTwistieClick(t.element)},ariaProvider:e.ariaProvider&&{getPosInSet:function(t,n){return e.ariaProvider.getPosInSet(t.element,n)},getSetSize:function(t,n,i){return e.ariaProvider.getSetSize(t.element,n,i)},getRole:e.ariaProvider.getRole?function(t){return e.ariaProvider.getRole(t.element)}:void 0,isChecked:e.ariaProvider.isChecked?function(t){var n;return(null===(n=e.ariaProvider)||void 0===n?void 0:n.isChecked)(t.element)}:void 0},additionalScrollHeight:e.additionalScrollHeight})}function Qe(e,t){t(e),e.children.forEach((function(e){return Qe(e,t)}))}var Ve=function(){function e(e,t,n,i,r,s){void 0===s&&(s={}),this.user=e,this.dataSource=r,this.nodes=new Map,this.subTreeRefreshPromises=new Map,this.refreshPromises=new Map,this._onDidRender=new A["a"],this._onDidChangeNodeSlowState=new A["a"],this.nodeMapper=new N((function(e){return new Fe(e)})),this.disposables=new o["b"],this.identityProvider=s.identityProvider,this.autoExpandSingleChildren="undefined"!==typeof s.autoExpandSingleChildren&&s.autoExpandSingleChildren,this.sorter=s.sorter,this.collapseByDefault=s.collapseByDefault,this.tree=this.createTree(e,t,n,i,s),this.root=De({element:void 0,parent:null,hasChildren:!0}),this.identityProvider&&(this.root=xe(xe({},this.root),{id:null})),this.nodes.set(null,this.root),this.tree.onDidChangeCollapseState(this._onDidChangeCollapseState,this,this.disposables)}return Object.defineProperty(e.prototype,"onDidChangeFocus",{get:function(){return A["b"].map(this.tree.onDidChangeFocus,Re)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidChangeSelection",{get:function(){return A["b"].map(this.tree.onDidChangeSelection,Re)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidOpen",{get:function(){return A["b"].map(this.tree.onDidOpen,Re)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidFocus",{get:function(){return this.tree.onDidFocus},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidDispose",{get:function(){return this.tree.onDidDispose},enumerable:!0,configurable:!0}),e.prototype.createTree=function(e,t,n,i,r){var o=this,s=new z(n),a=i.map((function(e){return new Te(e,o.nodeMapper,o._onDidChangeNodeSlowState.event)})),u=je(r)||{};return new we(e,t,s,a,u)},e.prototype.updateOptions=function(e){void 0===e&&(e={}),this.tree.updateOptions(e)},e.prototype.getHTMLElement=function(){return this.tree.getHTMLElement()},Object.defineProperty(e.prototype,"scrollTop",{get:function(){return this.tree.scrollTop},set:function(e){this.tree.scrollTop=e},enumerable:!0,configurable:!0}),e.prototype.domFocus=function(){this.tree.domFocus()},e.prototype.layout=function(e,t){this.tree.layout(e,t)},e.prototype.style=function(e){this.tree.style(e)},e.prototype.getInput=function(){return this.root.element},e.prototype.setInput=function(e,t){return Oe(this,void 0,void 0,(function(){var n;return Be(this,(function(i){switch(i.label){case 0:return this.refreshPromises.forEach((function(e){return e.cancel()})),this.refreshPromises.clear(),this.root.element=e,n=t&&{viewState:t,focus:[],selection:[]},[4,this._updateChildren(e,!0,!1,n)];case 1:return i.sent(),n&&(this.tree.setFocus(n.focus),this.tree.setSelection(n.selection)),t&&"number"===typeof t.scrollTop&&(this.scrollTop=t.scrollTop),[2]}}))}))},e.prototype._updateChildren=function(e,t,n,i){return void 0===e&&(e=this.root.element),void 0===t&&(t=!0),void 0===n&&(n=!1),Oe(this,void 0,void 0,(function(){var r;return Be(this,(function(o){switch(o.label){case 0:if("undefined"===typeof this.root.element)throw new S(this.user,"Tree input not set");return this.root.refreshPromise?[4,this.root.refreshPromise]:[3,3];case 1:return o.sent(),[4,A["b"].toPromise(this._onDidRender.event)];case 2:o.sent(),o.label=3;case 3:return r=this.getDataNode(e),[4,this.refreshAndRenderNode(r,t,i)];case 4:if(o.sent(),n)try{this.tree.rerender(r)}catch(s){}return[2]}}))}))},e.prototype.rerender=function(e){if(void 0!==e&&e!==this.root.element){var t=this.getDataNode(e);this.tree.rerender(t)}else this.tree.rerender()},e.prototype.collapse=function(e,t){void 0===t&&(t=!1);var n=this.getDataNode(e);return this.tree.collapse(n===this.root?null:n,t)},e.prototype.expand=function(e,t){return void 0===t&&(t=!1),Oe(this,void 0,void 0,(function(){var n,i;return Be(this,(function(r){switch(r.label){case 0:if("undefined"===typeof this.root.element)throw new S(this.user,"Tree input not set");return this.root.refreshPromise?[4,this.root.refreshPromise]:[3,3];case 1:return r.sent(),[4,A["b"].toPromise(this._onDidRender.event)];case 2:r.sent(),r.label=3;case 3:return n=this.getDataNode(e),this.tree.hasElement(n)&&!this.tree.isCollapsible(n)?[2,!1]:n.refreshPromise?[4,this.root.refreshPromise]:[3,6];case 4:return r.sent(),[4,A["b"].toPromise(this._onDidRender.event)];case 5:r.sent(),r.label=6;case 6:return n===this.root||n.refreshPromise||this.tree.isCollapsed(n)?(i=this.tree.expand(n===this.root?null:n,t),n.refreshPromise?[4,this.root.refreshPromise]:[3,9]):[2,!1];case 7:return r.sent(),[4,A["b"].toPromise(this._onDidRender.event)];case 8:r.sent(),r.label=9;case 9:return[2,i]}}))}))},e.prototype.setSelection=function(e,t){var n=this,i=e.map((function(e){return n.getDataNode(e)}));this.tree.setSelection(i,t)},e.prototype.getSelection=function(){var e=this.tree.getSelection();return e.map((function(e){return e.element}))},e.prototype.setFocus=function(e,t){var n=this,i=e.map((function(e){return n.getDataNode(e)}));this.tree.setFocus(i,t)},e.prototype.getFocus=function(){var e=this.tree.getFocus();return e.map((function(e){return e.element}))},e.prototype.reveal=function(e,t){this.tree.reveal(this.getDataNode(e),t)},e.prototype.getDataNode=function(e){var t=this.nodes.get(e===this.root.element?null:e);if(!t)throw new S(this.user,"Data tree node not found: "+e);return t},e.prototype.refreshAndRenderNode=function(e,t,n){return Oe(this,void 0,void 0,(function(){return Be(this,(function(i){switch(i.label){case 0:return[4,this.refreshNode(e,t,n)];case 1:return i.sent(),this.render(e,n),[2]}}))}))},e.prototype.refreshNode=function(e,t,n){return Oe(this,void 0,void 0,(function(){var i,r=this;return Be(this,(function(o){return this.subTreeRefreshPromises.forEach((function(o,s){!i&&Me(s,e)&&(i=o.then((function(){return r.refreshNode(e,t,n)})))})),i?[2,i]:[2,this.doRefreshSubTree(e,t,n)]}))}))},e.prototype.doRefreshSubTree=function(e,t,n){return Oe(this,void 0,void 0,(function(){var i,r,o=this;return Be(this,(function(s){switch(s.label){case 0:e.refreshPromise=new Promise((function(e){return i=e})),this.subTreeRefreshPromises.set(e,e.refreshPromise),e.refreshPromise.finally((function(){e.refreshPromise=void 0,o.subTreeRefreshPromises.delete(e)})),s.label=1;case 1:return s.trys.push([1,,4,5]),[4,this.doRefreshNode(e,t,n)];case 2:return r=s.sent(),e.stale=!1,[4,Promise.all(r.map((function(e){return o.doRefreshSubTree(e,t,n)})))];case 3:return s.sent(),[3,5];case 4:return i(),[7];case 5:return[2]}}))}))},e.prototype.doRefreshNode=function(e,t,n){return Oe(this,void 0,void 0,(function(){var i,r,o,s,a=this;return Be(this,(function(u){switch(u.label){case 0:e.hasChildren=!!this.dataSource.hasChildren(e.element),e.hasChildren?(r=Object(D["k"])(800),r.then((function(){e.slow=!0,a._onDidChangeNodeSlowState.fire(e)}),(function(e){return null})),i=this.doGetChildren(e).finally((function(){return r.cancel()}))):i=Promise.resolve([]),u.label=1;case 1:return u.trys.push([1,3,4,5]),[4,i];case 2:return o=u.sent(),[2,this.setChildren(e,o,t,n)];case 3:if(s=u.sent(),e!==this.root&&this.tree.collapse(e===this.root?null:e),Object(Le["d"])(s))return[2,[]];throw s;case 4:return e.slow&&(e.slow=!1,this._onDidChangeNodeSlowState.fire(e)),[7];case 5:return[2]}}))}))},e.prototype.doGetChildren=function(e){var t=this,n=this.refreshPromises.get(e);return n||(n=Object(D["f"])((function(){return Oe(t,void 0,void 0,(function(){var t;return Be(this,(function(n){switch(n.label){case 0:return[4,this.dataSource.getChildren(e.element)];case 1:return t=n.sent(),[2,this.processChildren(t)]}}))}))})),this.refreshPromises.set(e,n),n.finally((function(){return t.refreshPromises.delete(e)})))},e.prototype._onDidChangeCollapseState=function(e){var t=e.node,n=e.deep;!t.collapsed&&t.element.stale&&(n?this.collapse(t.element.element):this.refreshAndRenderNode(t.element,!1).catch(Le["e"]))},e.prototype.setChildren=function(e,t,n,i){var r,o=this;if(0===e.children.length&&0===t.length)return[];for(var s=new Map,a=new Map,u=0,l=e.children;u<l.length;u++){var c=l[u];if(s.set(c.element,c),this.identityProvider){var d=this.tree.isCollapsed(c);a.set(c.id,{node:c,collapsed:d})}}for(var h=[],f=t.map((function(t){var r=!!o.dataSource.hasChildren(t);if(!o.identityProvider){var u=De({element:t,parent:e,hasChildren:r});return r&&o.collapseByDefault&&!o.collapseByDefault(t)&&(u.collapsedByDefault=!1,h.push(u)),u}var l=o.identityProvider.getId(t).toString(),c=a.get(l);if(c){u=c.node;return s.delete(u.element),o.nodes.delete(u.element),o.nodes.set(t,u),u.element=t,u.hasChildren=r,n?c.collapsed?(u.children.forEach((function(e){return Qe(e,(function(e){return o.nodes.delete(e.element)}))})),u.children.splice(0,u.children.length),u.stale=!0):h.push(u):r&&o.collapseByDefault&&!o.collapseByDefault(t)&&(u.collapsedByDefault=!1,h.push(u)),u}var d=De({element:t,parent:e,id:l,hasChildren:r});return i&&i.viewState.focus&&i.viewState.focus.indexOf(l)>-1&&i.focus.push(d),i&&i.viewState.selection&&i.viewState.selection.indexOf(l)>-1&&i.selection.push(d),i&&i.viewState.expanded&&i.viewState.expanded.indexOf(l)>-1?h.push(d):r&&o.collapseByDefault&&!o.collapseByDefault(t)&&(d.collapsedByDefault=!1,h.push(d)),d})),p=0,g=Object(M["e"])(s);p<g.length;p++){var A=g[p];Qe(A,(function(e){return o.nodes.delete(e.element)}))}for(var m=0,v=f;m<v.length;m++){c=v[m];this.nodes.set(c.element,c)}return(r=e.children).splice.apply(r,ke([0,e.children.length],f)),e!==this.root&&this.autoExpandSingleChildren&&1===f.length&&0===h.length&&(f[0].collapsedByDefault=!1,h.push(f[0])),h},e.prototype.render=function(e,t){var n=this,i=e.children.map((function(e){return n.asTreeElement(e,t)}));this.tree.setChildren(e===this.root?null:e,i),e!==this.root&&this.tree.setCollapsible(e,e.hasChildren),this._onDidRender.fire()},e.prototype.asTreeElement=function(e,t){var n,i=this;return e.stale?{element:e,collapsible:e.hasChildren,collapsed:!0}:(n=!(t&&t.viewState.expanded&&e.id&&t.viewState.expanded.indexOf(e.id)>-1)&&e.collapsedByDefault,e.collapsedByDefault=void 0,{element:e,children:e.hasChildren?L["c"].map(L["c"].fromArray(e.children),(function(e){return i.asTreeElement(e,t)})):[],collapsible:e.hasChildren,collapsed:n})},e.prototype.processChildren=function(e){return this.sorter&&e.sort(this.sorter.compare.bind(this.sorter)),e},e.prototype.dispose=function(){this.disposables.dispose()},e}(),We=function(){function e(e){this.node=e}return Object.defineProperty(e.prototype,"element",{get:function(){return{elements:this.node.element.elements.map((function(e){return e.element})),incompressible:this.node.element.incompressible}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this.node.children.map((function(t){return new e(t)}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"depth",{get:function(){return this.node.depth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visibleChildrenCount",{get:function(){return this.node.visibleChildrenCount},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visibleChildIndex",{get:function(){return this.node.visibleChildIndex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"collapsible",{get:function(){return this.node.collapsible},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"collapsed",{get:function(){return this.node.collapsed},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visible",{get:function(){return this.node.visible},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"filterData",{get:function(){return this.node.filterData},enumerable:!0,configurable:!0}),e}(),ze=function(){function e(e,t,n,i){this.renderer=e,this.nodeMapper=t,this.compressibleNodeMapperProvider=n,this.onDidChangeTwistieState=i,this.renderedNodes=new Map,this.disposables=[],this.templateId=e.templateId}return e.prototype.renderTemplate=function(e){var t=this.renderer.renderTemplate(e);return{templateData:t}},e.prototype.renderElement=function(e,t,n,i){this.renderer.renderElement(this.nodeMapper.map(e),t,n.templateData,i)},e.prototype.renderCompressedElements=function(e,t,n,i){this.renderer.renderCompressedElements(this.compressibleNodeMapperProvider().map(e),t,n.templateData,i)},e.prototype.renderTwistie=function(e,t){return Object(i["X"])(t,"codicon-loading",e.slow),!1},e.prototype.disposeElement=function(e,t,n,i){this.renderer.disposeElement&&this.renderer.disposeElement(this.nodeMapper.map(e),t,n.templateData,i)},e.prototype.disposeCompressedElements=function(e,t,n,i){this.renderer.disposeCompressedElements&&this.renderer.disposeCompressedElements(this.compressibleNodeMapperProvider().map(e),t,n.templateData,i)},e.prototype.disposeTemplate=function(e){this.renderer.disposeTemplate(e.templateData)},e.prototype.dispose=function(){this.renderedNodes.clear(),this.disposables=Object(o["f"])(this.disposables)},e}();function Ke(e){var t=e&&je(e);return t&&xe(xe({},t),{keyboardNavigationLabelProvider:t.keyboardNavigationLabelProvider&&xe(xe({},t.keyboardNavigationLabelProvider),{getCompressedNodeKeyboardNavigationLabel:function(t){return e.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(t.map((function(e){return e.element})))}})})}var qe=function(e){function t(t,n,i,r,o,s,a){void 0===a&&(a={});var u=e.call(this,t,n,i,o,s,a)||this;return u.compressionDelegate=r,u.compressibleNodeMapper=new N((function(e){return new We(e)})),u.filter=a.filter,u}return Ee(t,e),t.prototype.createTree=function(e,t,n,i,r){var o=this,s=new z(n),a=i.map((function(e){return new ze(e,o.nodeMapper,(function(){return o.compressibleNodeMapper}),o._onDidChangeNodeSlowState.event)})),u=Ke(r)||{};return new Ne(e,t,s,a,u)},t.prototype.asTreeElement=function(t,n){return xe({incompressible:this.compressionDelegate.isIncompressible(t.element)},e.prototype.asTreeElement.call(this,t,n))},t.prototype.updateOptions=function(e){void 0===e&&(e={}),this.tree.updateOptions(e)},t.prototype.render=function(t,n){var i=this;if(!this.identityProvider)return e.prototype.render.call(this,t,n);var r=function(e){return i.identityProvider.getId(e).toString()},o=function(e){for(var t=new Set,n=0,o=e;n<o.length;n++){var s=o[n],a=i.tree.getCompressedTreeNode(s===i.root?null:s);if(a.element)for(var u=0,l=a.element.elements;u<l.length;u++){var c=l[u];t.add(r(c.element))}}return t},s=o(this.tree.getSelection()),a=o(this.tree.getFocus());e.prototype.render.call(this,t,n);var u=this.getSelection(),l=!1,c=this.getFocus(),d=!1,h=function(e){var t=e.element;if(t)for(var n=0;n<t.elements.length;n++){var i=r(t.elements[n].element),o=t.elements[t.elements.length-1].element;s.has(i)&&-1===u.indexOf(o)&&(u.push(o),l=!0),a.has(i)&&-1===c.indexOf(o)&&(c.push(o),d=!0)}e.children.forEach(h)};h(this.tree.getCompressedTreeNode(t===this.root?null:t)),l&&this.setSelection(u),d&&this.setFocus(c)},t.prototype.processChildren=function(t){var n=this;return this.filter&&(t=t.filter((function(e){var t=n.filter.filter(e,1),i=Ge(t);if(2===i)throw new Error("Recursive tree visibility not supported in async data compressed trees");return 1===i}))),e.prototype.processChildren.call(this,t)},t}(Ve);function Ge(e){return"boolean"===typeof e?e?1:0:x(e)?O(e.visibility):O(e)}var Xe,Ye=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Je=function(e){function t(t,n,i,r,o,s){void 0===s&&(s={});var a=e.call(this,t,n,i,r,s)||this;return a.user=t,a.dataSource=o,a.identityProvider=s.identityProvider,a}return Ye(t,e),t.prototype.createModel=function(e,t,n){return new oe(e,t,n)},t}(ne),Ze=n("R3nR"),$e=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),et=function(){return et=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},et.apply(this,arguments)},tt=function(e,t,n,i){var r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},nt=function(e,t){return function(n,i){t(n,i,e)}},it=Object(c["c"])("listService"),rt=function(){function e(e){this._themeService=e,this.disposables=new o["b"],this.lists=[],this._lastFocusedWidget=void 0,this._hasCreatedStyleController=!1}return Object.defineProperty(e.prototype,"lastFocusedList",{get:function(){return this._lastFocusedWidget},enumerable:!0,configurable:!0}),e.prototype.register=function(e,t){var n=this;if(!this._hasCreatedStyleController){this._hasCreatedStyleController=!0;var s=new r["b"](Object(i["v"])(),"");this.disposables.add(Object(f["b"])(s,this._themeService))}if(this.lists.some((function(t){return t.widget===e})))throw new Error("Cannot register the same widget multiple times");var a={widget:e,extraContextKeys:t};return this.lists.push(a),e.getHTMLElement()===document.activeElement&&(this._lastFocusedWidget=e),Object(o["e"])(e.onDidFocus((function(){return n._lastFocusedWidget=e})),Object(o["h"])((function(){return n.lists.splice(n.lists.indexOf(a),1)})),e.onDidDispose((function(){n.lists=n.lists.filter((function(e){return e!==a})),n._lastFocusedWidget===e&&(n._lastFocusedWidget=void 0)})))},e.prototype.dispose=function(){this.disposables.dispose()},e=tt([nt(0,p["c"])],e),e}(),ot=new l["d"]("listFocus",!0),st=new l["d"]("listSupportsMultiselect",!0),at=l["a"].and(ot,l["a"].not(g)),ut=new l["d"]("listHasSelectionOrFocus",!1),lt=new l["d"]("listDoubleSelection",!1),ct=new l["d"]("listMultiSelection",!1),dt=new l["d"]("listSupportsKeyboardNavigation",!0),ht="listAutomaticKeyboardNavigation",ft=new l["d"](ht,!0),pt=!1;function gt(e,t){var n=e.createScoped(t.getHTMLElement());return ot.bindTo(n),n}var At="workbench.list.multiSelectModifier",mt="workbench.list.openMode",vt="workbench.list.horizontalScrolling",_t="workbench.list.keyboardNavigation",yt="workbench.list.automaticKeyboardNavigation",bt="workbench.tree.indent",wt="workbench.tree.renderIndentGuides";function Ct(e){return Object(a["f"])(e,vt,"workbench.tree.horizontalScrolling")}function St(e){return"alt"===e.getValue(At)}function Nt(e){return"doubleClick"!==e.getValue(mt)}var Lt=function(e){function t(t){var n=e.call(this)||this;return n.configurationService=t,n.useAltAsMultipleSelectionModifier=St(t),n.registerListeners(),n}return $e(t,e),t.prototype.registerListeners=function(){var e=this;this._register(this.configurationService.onDidChangeConfiguration((function(t){t.affectsConfiguration(At)&&(e.useAltAsMultipleSelectionModifier=St(e.configurationService))})))},t.prototype.isSelectionSingleChangeEvent=function(e){return this.useAltAsMultipleSelectionModifier?e.browserEvent.altKey:Object(r["f"])(e)},t.prototype.isSelectionRangeChangeEvent=function(e){return Object(r["e"])(e)},t}(o["a"]),Et=function(e){function t(t,n){var i=e.call(this)||this;return i.configurationService=t,i.existingOpenController=n,i.openOnSingleClick=Nt(t),i.registerListeners(),i}return $e(t,e),t.prototype.registerListeners=function(){var e=this;this._register(this.configurationService.onDidChangeConfiguration((function(t){t.affectsConfiguration(mt)&&(e.openOnSingleClick=Nt(e.configurationService))})))},t.prototype.shouldOpen=function(e){if(e instanceof MouseEvent){var t=0===e.button,n=2===e.detail;return!(t&&!this.openOnSingleClick&&!n)&&(!(!t&&1!==e.button)&&(!this.existingOpenController||this.existingOpenController.shouldOpen(e)))}return!this.existingOpenController||this.existingOpenController.shouldOpen(e)},t}(o["a"]);function xt(e,t,n){var i=new o["b"],r=et({},e);if(!1!==e.multipleSelectionSupport&&!e.multipleSelectionController){var s=new Lt(t);r.multipleSelectionController=s,i.add(s)}var a=new Et(t,e.openController);return r.openController=a,i.add(a),r.keyboardNavigationDelegate={mightProducePrintableCharacter:function(e){return n.mightProducePrintableCharacter(e)}},[r,i]}function Ot(e,t){var n=!1;return function(i){if(n)return n=!1,!1;var r=t.softDispatch(i,e);return r&&r.enterChord?(n=!0,!1):(n=!1,!0)}}(function(e){function t(t,n,i,r,o,s,a,u,l,c,d){var h=this,f=kt(n,o,s,l,c,d),p=f.options,g=f.getAutomaticKeyboardNavigation,A=f.disposable;return h=e.call(this,t,n,i,r,p)||this,h.disposables.add(A),h.internals=new Dt(h,p,g,o.overrideStyles,s,a,u,l,d),h.disposables.add(h.internals),h}$e(t,e),t=tt([nt(5,l["c"]),nt(6,it),nt(7,p["c"]),nt(8,a["a"]),nt(9,d["a"]),nt(10,Ze["b"])],t)})(we),function(e){function t(t,n,i,r,o,s,a,u,l,c,d,h){var f=this,p=kt(n,s,a,c,d,h),g=p.options,A=p.getAutomaticKeyboardNavigation,m=p.disposable;return f=e.call(this,t,n,i,r,o,g)||this,f.disposables.add(m),f.internals=new Dt(f,g,A,s.overrideStyles,a,u,l,c,h),f.disposables.add(f.internals),f}$e(t,e),t.prototype.updateOptions=function(t){void 0===t&&(t={}),e.prototype.updateOptions.call(this,t),t.overrideStyles&&this.internals.updateStyleOverrides(t.overrideStyles)},t=tt([nt(6,l["c"]),nt(7,it),nt(8,p["c"]),nt(9,a["a"]),nt(10,d["a"]),nt(11,Ze["b"])],t)}(Je);var Bt=function(e){function t(t,n,i,r,o,s,a,u,l,c,d,h){var f=this,p=kt(n,s,a,c,d,h),g=p.options,A=p.getAutomaticKeyboardNavigation,m=p.disposable;return f=e.call(this,t,n,i,r,o,g)||this,f.disposables.add(m),f.internals=new Dt(f,g,A,s.overrideStyles,a,u,l,c,h),f.disposables.add(f.internals),f}return $e(t,e),t.prototype.updateOptions=function(t){void 0===t&&(t={}),e.prototype.updateOptions.call(this,t),t.overrideStyles&&this.internals.updateStyleOverrides(t.overrideStyles)},t=tt([nt(6,l["c"]),nt(7,it),nt(8,p["c"]),nt(9,a["a"]),nt(10,d["a"]),nt(11,Ze["b"])],t),t}(Ve);(function(e){function t(t,n,i,r,o,s,a,u,l,c,d,h,f){var p=this,g=kt(n,a,u,d,h,f),A=g.options,m=g.getAutomaticKeyboardNavigation,v=g.disposable;return p=e.call(this,t,n,i,r,o,s,A)||this,p.disposables.add(v),p.internals=new Dt(p,A,m,a.overrideStyles,u,l,c,d,f),p.disposables.add(p.internals),p}$e(t,e),t=tt([nt(7,l["c"]),nt(8,it),nt(9,p["c"]),nt(10,a["a"]),nt(11,d["a"]),nt(12,Ze["b"])],t)})(qe);function kt(e,t,n,i,r,o){dt.bindTo(n),pt||(ft.bindTo(n),pt=!0);var s=function(){var e=n.getContextKeyValue(ht);return e&&(e=i.getValue(yt)),e},a=o.isScreenReaderOptimized(),u=a?"simple":i.getValue(_t),l="undefined"!==typeof t.horizontalScrolling?t.horizontalScrolling:Ct(i),c=Nt(i),d=xt(t,i,r),h=d[0],f=d[1],p=t.additionalScrollHeight;return{getAutomaticKeyboardNavigation:s,disposable:f,options:et(et({keyboardSupport:!1},h),{indent:i.getValue(bt),renderIndentGuides:i.getValue(wt),automaticKeyboardNavigation:s(),simpleKeyboardNavigation:"simple"===u,filterOnType:"filter"===u,horizontalScrolling:l,openOnSingleClick:c,keyboardNavigationEventFilter:Ot(e,r),additionalScrollHeight:p,hideTwistiesOfChildlessElements:t.hideTwistiesOfChildlessElements})}}var Dt=function(){function e(e,t,n,i,r,o,s,a,u){var l=this;this.tree=e,this.themeService=s,this.disposables=[],this.contextKeyService=gt(r,e);var c=st.bindTo(this.contextKeyService);c.set(!(!1===t.multipleSelectionSupport)),this.hasSelectionOrFocus=ut.bindTo(this.contextKeyService),this.hasDoubleSelection=lt.bindTo(this.contextKeyService),this.hasMultiSelection=ct.bindTo(this.contextKeyService),this._useAltAsMultipleSelectionModifier=St(a);var d=new Set;d.add(ht);var h=function(){var t=u.isScreenReaderOptimized(),n=t?"simple":a.getValue(_t);e.updateOptions({simpleKeyboardNavigation:"simple"===n,filterOnType:"filter"===n})};this.updateStyleOverrides(i),this.disposables.push(this.contextKeyService,o.register(e),e.onDidChangeSelection((function(){var t=e.getSelection(),n=e.getFocus();l.hasSelectionOrFocus.set(t.length>0||n.length>0),l.hasMultiSelection.set(t.length>1),l.hasDoubleSelection.set(2===t.length)})),e.onDidChangeFocus((function(){var t=e.getSelection(),n=e.getFocus();l.hasSelectionOrFocus.set(t.length>0||n.length>0)})),a.onDidChangeConfiguration((function(t){if(t.affectsConfiguration(mt)&&e.updateOptions({openOnSingleClick:Nt(a)}),t.affectsConfiguration(At)&&(l._useAltAsMultipleSelectionModifier=St(a)),t.affectsConfiguration(bt)){var i=a.getValue(bt);e.updateOptions({indent:i})}if(t.affectsConfiguration(wt)){var r=a.getValue(wt);e.updateOptions({renderIndentGuides:r})}t.affectsConfiguration(_t)&&h(),t.affectsConfiguration(yt)&&e.updateOptions({automaticKeyboardNavigation:n()})})),this.contextKeyService.onDidChangeContext((function(t){t.affectsSome(d)&&e.updateOptions({automaticKeyboardNavigation:n()})})),u.onDidChangeScreenReaderOptimized((function(){return h()})))}return e.prototype.updateStyleOverrides=function(e){Object(o["f"])(this.styler),this.styler=e?Object(f["b"])(this.tree,this.themeService,e):o["a"].None},e.prototype.dispose=function(){this.disposables=Object(o["f"])(this.disposables),this.styler=Object(o["f"])(this.styler)},e=tt([nt(4,l["c"]),nt(5,it),nt(6,p["c"]),nt(7,a["a"]),nt(8,Ze["b"])],e),e}(),It=h["a"].as(u["a"].Configuration);It.registerConfiguration({id:"workbench",order:7,title:Object(s["a"])("workbenchConfigurationTitle","Workbench"),type:"object",properties:(Xe={},Xe[At]={type:"string",enum:["ctrlCmd","alt"],enumDescriptions:[Object(s["a"])("multiSelectModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),Object(s["a"])("multiSelectModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],default:"ctrlCmd",description:Object(s["a"])({key:"multiSelectModifier",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 an item in trees and lists to a multi-selection with the mouse (for example in the explorer, open editors and scm view). The 'Open to Side' mouse gestures - if supported - will adapt such that they do not conflict with the multiselect modifier.")},Xe[mt]={type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:Object(s["a"])({key:"openModeModifier",comment:["`singleClick` and `doubleClick` refers to a value the setting can take and should not be localized."]},"Controls how to open items in trees and lists using the mouse (if supported). For parents with children in trees, this setting will control if a single click expands the parent or a double click. Note that some trees and lists might choose to ignore this setting if it is not applicable. ")},Xe[vt]={type:"boolean",default:!1,description:Object(s["a"])("horizontalScrolling setting","Controls whether lists and trees support horizontal scrolling in the workbench.")},Xe["workbench.tree.horizontalScrolling"]={type:"boolean",default:!1,description:Object(s["a"])("tree horizontalScrolling setting","Controls whether trees support horizontal scrolling in the workbench."),deprecationMessage:Object(s["a"])("deprecated","This setting is deprecated, please use '{0}' instead.",vt)},Xe[bt]={type:"number",default:8,minimum:0,maximum:40,description:Object(s["a"])("tree indent setting","Controls tree indentation in pixels.")},Xe[wt]={type:"string",enum:["none","onHover","always"],default:"onHover",description:Object(s["a"])("render tree indent guides","Controls whether the tree should render indent guides.")},Xe[_t]={type:"string",enum:["simple","highlight","filter"],enumDescriptions:[Object(s["a"])("keyboardNavigationSettingKey.simple","Simple keyboard navigation focuses elements which match the keyboard input. Matching is done only on prefixes."),Object(s["a"])("keyboardNavigationSettingKey.highlight","Highlight keyboard navigation highlights elements which match the keyboard input. Further up and down navigation will traverse only the highlighted elements."),Object(s["a"])("keyboardNavigationSettingKey.filter","Filter keyboard navigation will filter out and hide all the elements which do not match the keyboard input.")],default:"highlight",description:Object(s["a"])("keyboardNavigationSettingKey","Controls the keyboard navigation style for lists and trees in the workbench. Can be simple, highlight and filter.")},Xe[yt]={type:"boolean",default:!0,markdownDescription:Object(s["a"])("automatic keyboard navigation setting","Controls whether keyboard navigation in lists and trees is automatically triggered simply by typing. If set to `false`, keyboard navigation is only triggered when executing the `list.toggleKeyboardNavigation` command, for which you can assign a keyboard shortcut.")},Xe)})},kYye:function(e,t,n){"use strict";n.d(t,"h",(function(){return a})),n.d(t,"i",(function(){return u})),n.d(t,"f",(function(){return f})),n.d(t,"e",(function(){return p})),n.d(t,"g",(function(){return A})),n.d(t,"a",(function(){return m})),n.d(t,"j",(function(){return v})),n.d(t,"b",(function(){return y})),n.d(t,"l",(function(){return b})),n.d(t,"c",(function(){return w})),n.d(t,"d",(function(){return C})),n.d(t,"k",(function(){return S})),n.d(t,"m",(function(){return L})),n.d(t,"n",(function(){return E})),n.d(t,"o",(function(){return x})),n.d(t,"q",(function(){return O})),n.d(t,"p",(function(){return B}));var i=n("3/fG"),r=n("zrhQ"),o=n("MD5Z"),s=n("t9D7"),a=Object(o["Rb"])("editor.lineHighlightBackground",{dark:null,light:null,hc:null},i["a"]("lineHighlight","Background color for the highlight of line at the cursor position.")),u=Object(o["Rb"])("editor.lineHighlightBorder",{dark:"#282828",light:"#eeeeee",hc:"#f38518"},i["a"]("lineHighlightBorderBox","Background color for the border around the line at the cursor position.")),l=Object(o["Rb"])("editor.rangeHighlightBackground",{dark:"#ffffff0b",light:"#fdff0033",hc:null},i["a"]("rangeHighlight","Background color of highlighted ranges, like by quick open and find features. The color must not be opaque so as not to hide underlying decorations."),!0),c=Object(o["Rb"])("editor.rangeHighlightBorder",{dark:null,light:null,hc:o["b"]},i["a"]("rangeHighlightBorder","Background color of the border around highlighted ranges."),!0),d=Object(o["Rb"])("editor.symbolHighlightBackground",{dark:o["t"],light:o["t"],hc:null},i["a"]("symbolHighlight","Background color of highlighted symbol, like for go to definition or go next/previous symbol. The color must not be opaque so as not to hide underlying decorations."),!0),h=Object(o["Rb"])("editor.symbolHighlightBorder",{dark:null,light:null,hc:o["b"]},i["a"]("symbolHighlightBorder","Background color of the border around highlighted symbols."),!0),f=Object(o["Rb"])("editorCursor.foreground",{dark:"#AEAFAD",light:r["a"].black,hc:r["a"].white},i["a"]("caret","Color of the editor cursor.")),p=Object(o["Rb"])("editorCursor.background",null,i["a"]("editorCursorBackground","The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.")),g=Object(o["Rb"])("editorWhitespace.foreground",{dark:"#e3e4e229",light:"#33333333",hc:"#e3e4e229"},i["a"]("editorWhitespaces","Color of whitespace characters in the editor.")),A=Object(o["Rb"])("editorIndentGuide.background",{dark:g,light:g,hc:g},i["a"]("editorIndentGuides","Color of the editor indentation guides.")),m=Object(o["Rb"])("editorIndentGuide.activeBackground",{dark:g,light:g,hc:g},i["a"]("editorActiveIndentGuide","Color of the active editor indentation guides.")),v=Object(o["Rb"])("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hc:r["a"].white},i["a"]("editorLineNumbers","Color of editor line numbers.")),_=Object(o["Rb"])("editorActiveLineNumber.foreground",{dark:"#c6c6c6",light:"#0B216F",hc:o["b"]},i["a"]("editorActiveLineNumber","Color of editor active line number"),!1,i["a"]("deprecatedEditorActiveLineNumber","Id is deprecated. Use 'editorLineNumber.activeForeground' instead.")),y=Object(o["Rb"])("editorLineNumber.activeForeground",{dark:_,light:_,hc:_},i["a"]("editorActiveLineNumber","Color of editor active line number")),b=Object(o["Rb"])("editorRuler.foreground",{dark:"#5A5A5A",light:r["a"].lightgrey,hc:r["a"].white},i["a"]("editorRuler","Color of the editor rulers.")),w=(Object(o["Rb"])("editorCodeLens.foreground",{dark:"#999999",light:"#999999",hc:"#999999"},i["a"]("editorCodeLensForeground","Foreground color of editor code lenses")),Object(o["Rb"])("editorBracketMatch.background",{dark:"#0064001a",light:"#0064001a",hc:"#0064001a"},i["a"]("editorBracketMatchBackground","Background color behind matching brackets"))),C=Object(o["Rb"])("editorBracketMatch.border",{dark:"#888",light:"#B9B9B9",hc:o["e"]},i["a"]("editorBracketMatchBorder","Color for matching brackets boxes")),S=Object(o["Rb"])("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hc:"#7f7f7f4d"},i["a"]("editorOverviewRulerBorder","Color of the overview ruler border.")),N=Object(o["Rb"])("editorGutter.background",{dark:o["o"],light:o["o"],hc:o["o"]},i["a"]("editorGutter","Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.")),L=Object(o["Rb"])("editorUnnecessaryCode.border",{dark:null,light:null,hc:r["a"].fromHex("#fff").transparent(.8)},i["a"]("unnecessaryCodeBorder","Border color of unnecessary (unused) source code in the editor.")),E=Object(o["Rb"])("editorUnnecessaryCode.opacity",{dark:r["a"].fromHex("#000a"),light:r["a"].fromHex("#0007"),hc:null},i["a"]("unnecessaryCodeOpacity","Opacity of unnecessary (unused) source code in the editor. For example, \"#000000c0\" will render the code with 75% opacity. For high contrast themes, use the 'editorUnnecessaryCode.border' theme color to underline unnecessary code instead of fading it out.")),x=Object(o["Rb"])("editorOverviewRuler.errorForeground",{dark:new r["a"](new r["c"](255,18,18,.7)),light:new r["a"](new r["c"](255,18,18,.7)),hc:new r["a"](new r["c"](255,50,50,1))},i["a"]("overviewRuleError","Overview ruler marker color for errors.")),O=Object(o["Rb"])("editorOverviewRuler.warningForeground",{dark:o["O"],light:o["O"],hc:o["N"]},i["a"]("overviewRuleWarning","Overview ruler marker color for warnings.")),B=Object(o["Rb"])("editorOverviewRuler.infoForeground",{dark:o["H"],light:o["H"],hc:o["G"]},i["a"]("overviewRuleInfo","Overview ruler marker color for infos."));Object(s["e"])((function(e,t){var n=e.getColor(o["o"]);n&&t.addRule(".monaco-editor, .monaco-editor-background, .monaco-editor .inputarea.ime-input { background-color: "+n+"; }");var i=e.getColor(o["x"]);i&&t.addRule(".monaco-editor, .monaco-editor .inputarea.ime-input { color: "+i+"; }");var r=e.getColor(N);r&&t.addRule(".monaco-editor .margin { background-color: "+r+"; }");var s=e.getColor(l);s&&t.addRule(".monaco-editor .rangeHighlight { background-color: "+s+"; }");var a=e.getColor(c);a&&t.addRule(".monaco-editor .rangeHighlight { border: 1px "+("hc"===e.type?"dotted":"solid")+" "+a+"; }");var u=e.getColor(d);u&&t.addRule(".monaco-editor .symbolHighlight { background-color: "+u+"; }");var f=e.getColor(h);f&&t.addRule(".monaco-editor .symbolHighlight { border: 1px "+("hc"===e.type?"dotted":"solid")+" "+f+"; }");var p=e.getColor(g);p&&t.addRule(".vs-whitespace { color: "+p+" !important; }")}))},kdPm:function(e,t,n){"use strict";n.r(t);var i=n("+hIS");Object(i["a"])({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:function(){return n.e(145).then(n.bind(null,"3VBA"))}})},"kw+w":function(e,t,n){},l2gE:function(e,t,n){"use strict";n.d(t,"a",(function(){return I}));var i=n("6OMU"),r=n("N0LK"),o=n("PTeM"),s=n("MrjW"),a=n("QDVR"),u=n("X+cX"),l="**",c="/",d="[/\\\\]",h="[^/\\\\]",f=/\//g;function p(e){switch(e){case 0:return"";case 1:return h+"*?";default:return"(?:"+d+"|"+h+"+"+d+"|"+d+h+"+)*?"}}function g(e,t){if(!e)return[];for(var n=[],i=!1,r=!1,o="",s=0,a=e;s<a.length;s++){var u=a[s];switch(u){case t:if(!i&&!r){n.push(o),o="";continue}break;case"{":i=!0;break;case"}":i=!1;break;case"[":r=!0;break;case"]":r=!1;break}o+=u}return o&&n.push(o),n}function A(e){if(!e)return"";var t="",n=g(e,c);if(n.every((function(e){return e===l})))t=".*";else{var i=!1;n.forEach((function(e,o){if(e!==l){for(var s=!1,a="",u=!1,f="",m=0,v=e;m<v.length;m++){var _=v[m];if("}"!==_&&s)a+=_;else if(!u||"]"===_&&f)switch(_){case"{":s=!0;continue;case"[":u=!0;continue;case"}":var y=g(a,","),b="(?:"+y.map((function(e){return A(e)})).join("|")+")";t+=b,s=!1,a="";break;case"]":t+="["+f+"]",u=!1,f="";break;case"?":t+=h;continue;case"*":t+=p(1);continue;default:t+=r["p"](_)}else{var w=void 0;w="-"===_?_:"^"!==_&&"!"!==_||f?_===c?"":r["p"](_):"^",f+=w}}o<n.length-1&&(n[o+1]!==l||o+2<n.length)&&(t+=d),i=!1}else i||(t+=p(2),i=!0)}))}return t}var m=/^\*\*\/\*\.[\w\.-]+$/,v=/^\*\*\/([\w\.-]+)\/?$/,_=/^{\*\*\/[\*\.]?[\w\.-]+\/?(,\*\*\/[\*\.]?[\w\.-]+\/?)*}$/,y=/^{\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?(,\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?)*}$/,b=/^\*\*((\/[\w\.-]+)+)\/?$/,w=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,C=new a["a"](1e4),S=function(){return!1},N=function(){return null};function L(e,t){if(!e)return N;var n;n="string"!==typeof e?e.pattern:e,n=n.trim();var i,o=n+"_"+!!t.trimForExclusions,s=C.get(o);if(s)return E(s,e);if(m.test(n)){var a=n.substr(4);s=function(e,t){return"string"===typeof e&&r["m"](e,a)?n:null}}else s=(i=v.exec(x(n,t)))?O(i[1],n):(t.trimForExclusions?y:_).test(n)?B(n,t):(i=b.exec(x(n,t)))?k(i[1].substr(1),n,!0):(i=w.exec(x(n,t)))?k(i[1],n,!1):D(n);return C.set(o,s),E(s,e)}function E(e,t){return"string"===typeof t?e:function(n,i){return o["a"](n,t.base)?e(s["relative"](t.base,n),i):null}}function x(e,t){return t.trimForExclusions&&r["m"](e,"/**")?e.substr(0,e.length-2):e}function O(e,t){var n="/"+e,i="\\"+e,o=function(o,s){return"string"!==typeof o?null:s?s===e?t:null:o===e||r["m"](o,n)||r["m"](o,i)?t:null},s=[e];return o.basenames=s,o.patterns=[t],o.allBasenames=s,o}function B(e,t){var n=P(e.slice(1,-1).split(",").map((function(e){return L(e,t)})).filter((function(e){return e!==N})),e),r=n.length;if(!r)return N;if(1===r)return n[0];var o=function(t,i){for(var r=0,o=n.length;r<o;r++)if(n[r](t,i))return e;return null},s=i["j"](n,(function(e){return!!e.allBasenames}));s&&(o.allBasenames=s.allBasenames);var a=n.reduce((function(e,t){return t.allPaths?e.concat(t.allPaths):e}),[]);return a.length&&(o.allPaths=a),o}function k(e,t,n){var i=s["sep"]!==s["posix"].sep?e.replace(f,s["sep"]):e,o=s["sep"]+i,a=n?function(e,n){return"string"!==typeof e||e!==i&&!r["m"](e,o)?null:t}:function(e,n){return"string"===typeof e&&e===i?t:null};return a.allPaths=[(n?"*/":"./")+e],a}function D(e){try{var t=new RegExp("^"+A(e)+"$");return function(n,i){return t.lastIndex=0,"string"===typeof n&&t.test(n)?e:null}}catch(n){return N}}function I(e,t,n){return!(!e||"string"!==typeof t)&&M(e)(t,void 0,n)}function M(e,t){if(void 0===t&&(t={}),!e)return S;if("string"===typeof e||F(e)){var n=L(e,t);if(n===N)return S;var i=function(e,t){return!!n(e,t)};return n.allBasenames&&(i.allBasenames=n.allBasenames),n.allPaths&&(i.allPaths=n.allPaths),i}return T(e,t)}function F(e){var t=e;return t&&"string"===typeof t.base&&"string"===typeof t.pattern}function T(e,t){var n=P(Object.getOwnPropertyNames(e).map((function(n){return R(n,e[n],t)})).filter((function(e){return e!==N}))),r=n.length;if(!r)return N;if(!n.some((function(e){return!!e.requiresSiblings}))){if(1===r)return n[0];var o=function(e,t){for(var i=0,r=n.length;i<r;i++){var o=n[i](e,t);if(o)return o}return null},a=i["j"](n,(function(e){return!!e.allBasenames}));a&&(o.allBasenames=a.allBasenames);var u=n.reduce((function(e,t){return t.allPaths?e.concat(t.allPaths):e}),[]);return u.length&&(o.allPaths=u),o}var l=function(e,t,i){for(var r=void 0,o=0,a=n.length;o<a;o++){var u=n[o];u.requiresSiblings&&i&&(t||(t=s["basename"](e)),r||(r=t.substr(0,t.length-s["extname"](e).length)));var l=u(e,t,r,i);if(l)return l}return null},c=i["j"](n,(function(e){return!!e.allBasenames}));c&&(l.allBasenames=c.allBasenames);var d=n.reduce((function(e,t){return t.allPaths?e.concat(t.allPaths):e}),[]);return d.length&&(l.allPaths=d),l}function R(e,t,n){if(!1===t)return N;var i=L(e,n);if(i===N)return N;if("boolean"===typeof t)return i;if(t){var r=t.when;if("string"===typeof r){var o=function(t,n,o,s){if(!s||!i(t,n))return null;var a=r.replace("$(basename)",o),l=s(a);return Object(u["i"])(l)?l.then((function(t){return t?e:null})):l?e:null};return o.requiresSiblings=!0,o}}return i}function P(e,t){var n=e.filter((function(e){return!!e.basenames}));if(n.length<2)return e;var i,r=n.reduce((function(e,t){var n=t.basenames;return n?e.concat(n):e}),[]);if(t){i=[];for(var o=0,s=r.length;o<s;o++)i.push(t)}else i=n.reduce((function(e,t){var n=t.patterns;return n?e.concat(n):e}),[]);var a=function(e,t){if("string"!==typeof e)return null;if(!t){var n=void 0;for(n=e.length;n>0;n--){var o=e.charCodeAt(n-1);if(47===o||92===o)break}t=e.substr(n)}var s=r.indexOf(t);return-1!==s?i[s]:null};a.basenames=r,a.patterns=i,a.allBasenames=r;var u=e.filter((function(e){return!e.basenames}));return u.push(a),u}},lKfe:function(e,t,n){},li8W:function(e,t,n){"use strict";n.r(t);var i=n("+hIS");Object(i["a"])({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:function(){return n.e(144).then(n.bind(null,"7s2V"))}})},lrmC:function(e,t,n){},m3rI:function(e,t,n){"use strict";var i={dev:{API_SERVER:"https://test-newweb.educoder.net",IMG_SERVER:"https://testali-cdn.educoder.net/",FORGE:"https://test-oldweb.educoder.net/"},test:{API_SERVER:"https://test-newbuild.educoder.net",IMG_SERVER:"https://test-newbuild.educoder.net/",FORGE:"https://test-oldweb.educoder.net/"},build:{API_SERVER:"https://www.educoder.net",IMG_SERVER:"https://www.educoder.net/",FORGE:"https://forge.educoder.net/"}};t["a"]=i[window.ENV]},n01l:function(e,t,n){"use strict";n.r(t);var i=n("3/fG"),r=n("/kV6"),o=n("sswD"),s=n("wQH0"),a=n("0/Sa"),u=n("cGHE"),l=n("aokT"),c=n("gCVg"),d=n("cMvZ"),h=function(){function e(e,t){this._selection=e,this._insertSpace=t,this._usedEndToken=null}return e._haystackHasNeedleAtOffset=function(e,t,n){if(n<0)return!1;var i=t.length,r=e.length;if(n+i>r)return!1;for(var o=0;o<i;o++){var s=e.charCodeAt(n+o),a=t.charCodeAt(o);if(s!==a&&(!(s>=65&&s<=90&&s+32===a)&&!(a>=65&&a<=90&&a+32===s)))return!1}return!0},e.prototype._createOperationsForBlockComment=function(t,n,i,r,o,s){var a,u=t.startLineNumber,c=t.startColumn,d=t.endLineNumber,h=t.endColumn,f=o.getLineContent(u),p=o.getLineContent(d),g=f.lastIndexOf(n,c-1+n.length),A=p.indexOf(i,h-1-i.length);if(-1!==g&&-1!==A)if(u===d){var m=f.substring(g+n.length,A);m.indexOf(i)>=0&&(g=-1,A=-1)}else{var v=f.substring(g+n.length),_=p.substring(0,A);(v.indexOf(i)>=0||_.indexOf(i)>=0)&&(g=-1,A=-1)}-1!==g&&-1!==A?(r&&g+n.length<f.length&&32===f.charCodeAt(g+n.length)&&(n+=" "),r&&A>0&&32===p.charCodeAt(A-1)&&(i=" "+i,A-=1),a=e._createRemoveBlockCommentOperations(new l["a"](u,g+n.length+1,d,A+1),n,i)):(a=e._createAddBlockCommentOperations(t,n,i,this._insertSpace),this._usedEndToken=1===a.length?i:null);for(var y=0,b=a;y<b.length;y++){var w=b[y];s.addTrackedEditOperation(w.range,w.text)}},e._createRemoveBlockCommentOperations=function(e,t,n){var i=[];return l["a"].isEmpty(e)?i.push(a["a"].delete(new l["a"](e.startLineNumber,e.startColumn-t.length,e.endLineNumber,e.endColumn+n.length))):(i.push(a["a"].delete(new l["a"](e.startLineNumber,e.startColumn-t.length,e.startLineNumber,e.startColumn))),i.push(a["a"].delete(new l["a"](e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn+n.length)))),i},e._createAddBlockCommentOperations=function(e,t,n,i){var r=[];return l["a"].isEmpty(e)?r.push(a["a"].replace(new l["a"](e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),t+" "+n)):(r.push(a["a"].insert(new u["a"](e.startLineNumber,e.startColumn),t+(i?" ":""))),r.push(a["a"].insert(new u["a"](e.endLineNumber,e.endColumn),(i?" ":"")+n))),r},e.prototype.getEditOperations=function(e,t){var n=this._selection.startLineNumber,i=this._selection.startColumn;e.tokenizeIfCheap(n);var r=e.getLanguageIdAtPosition(n,i),o=d["a"].getComments(r);o&&o.blockCommentStartToken&&o.blockCommentEndToken&&this._createOperationsForBlockComment(this._selection,o.blockCommentStartToken,o.blockCommentEndToken,this._insertSpace,e,t)},e.prototype.computeCursorState=function(e,t){var n=t.getInverseEditOperations();if(2===n.length){var i=n[0],r=n[1];return new c["a"](i.range.endLineNumber,i.range.endColumn,r.range.startLineNumber,r.range.startColumn)}var o=n[0].range,s=this._usedEndToken?-this._usedEndToken.length-1:0;return new c["a"](o.endLineNumber,o.endColumn+s,o.endLineNumber,o.endColumn+s)},e}(),f=n("N0LK"),p=function(){function e(e,t,n,i){this._selection=e,this._tabSize=t,this._type=n,this._insertSpace=i,this._selectionId=null,this._deltaColumn=0,this._moveEndPositionDown=!1}return e._gatherPreflightCommentStrings=function(e,t,n){e.tokenizeIfCheap(t);var i=e.getLanguageIdAtPosition(t,1),r=d["a"].getComments(i),o=r?r.lineCommentToken:null;if(!o)return null;for(var s=[],a=0,u=n-t+1;a<u;a++)s[a]={ignore:!1,commentStr:o,commentStrOffset:0,commentStrLength:o.length};return s},e._analyzeLines=function(e,t,n,i,r){var o,s=!0;o=0===e||1!==e;for(var a=0,u=i.length;a<u;a++){var l=i[a],c=r+a,d=n.getLineContent(c),p=f["q"](d);if(-1!==p){if(s=!1,l.ignore=!1,l.commentStrOffset=p,o&&!h._haystackHasNeedleAtOffset(d,l.commentStr,p)&&(0===e?o=!1:1===e||(l.ignore=!0)),o&&t){var g=p+l.commentStrLength;g<d.length&&32===d.charCodeAt(g)&&(l.commentStrLength+=1)}}else l.ignore=!0,l.commentStrOffset=d.length}if(0===e&&s){o=!1;for(a=0,u=i.length;a<u;a++)i[a].ignore=!1}return{supported:!0,shouldRemoveComments:o,lines:i}},e._gatherPreflightData=function(t,n,i,r,o){var s=e._gatherPreflightCommentStrings(i,r,o);return null===s?{supported:!1}:e._analyzeLines(t,n,i,s,r)},e.prototype._executeLineComments=function(t,n,i,r){var o;i.shouldRemoveComments?o=e._createRemoveLineCommentsOperations(i.lines,r.startLineNumber):(e._normalizeInsertionPoint(t,i.lines,r.startLineNumber,this._tabSize),o=this._createAddLineCommentsOperations(i.lines,r.startLineNumber));for(var s=new u["a"](r.positionLineNumber,r.positionColumn),a=0,l=o.length;a<l;a++)if(n.addEditOperation(o[a].range,o[a].text),o[a].range.isEmpty()&&o[a].range.getStartPosition().equals(s)){var c=t.getLineContent(s.lineNumber);c.length+1===s.column&&(this._deltaColumn=(o[a].text||"").length)}this._selectionId=n.trackSelection(r)},e.prototype._attemptRemoveBlockComment=function(e,t,n,i){var r=t.startLineNumber,o=t.endLineNumber,s=i.length+Math.max(e.getLineFirstNonWhitespaceColumn(t.startLineNumber),t.startColumn),a=e.getLineContent(r).lastIndexOf(n,s-1),u=e.getLineContent(o).indexOf(i,t.endColumn-1-n.length);return-1!==a&&-1===u&&(u=e.getLineContent(r).indexOf(i,a+n.length),o=r),-1===a&&-1!==u&&(a=e.getLineContent(o).lastIndexOf(n,u),r=o),!t.isEmpty()||-1!==a&&-1!==u||(a=e.getLineContent(r).indexOf(n),-1!==a&&(u=e.getLineContent(r).indexOf(i,a+n.length))),-1!==a&&32===e.getLineContent(r).charCodeAt(a+n.length)&&(n+=" "),-1!==u&&32===e.getLineContent(o).charCodeAt(u-1)&&(i=" "+i,u-=1),-1!==a&&-1!==u?h._createRemoveBlockCommentOperations(new l["a"](r,a+n.length+1,o,u+1),n,i):null},e.prototype._executeBlockComment=function(e,t,n){e.tokenizeIfCheap(n.startLineNumber);var i=e.getLanguageIdAtPosition(n.startLineNumber,1),r=d["a"].getComments(i);if(r&&r.blockCommentStartToken&&r.blockCommentEndToken){var o=r.blockCommentStartToken,s=r.blockCommentEndToken,a=this._attemptRemoveBlockComment(e,n,o,s);if(!a){if(n.isEmpty()){var u=e.getLineContent(n.startLineNumber),c=f["q"](u);-1===c&&(c=u.length),a=h._createAddBlockCommentOperations(new l["a"](n.startLineNumber,c+1,n.startLineNumber,u.length+1),o,s,this._insertSpace)}else a=h._createAddBlockCommentOperations(new l["a"](n.startLineNumber,e.getLineFirstNonWhitespaceColumn(n.startLineNumber),n.endLineNumber,e.getLineMaxColumn(n.endLineNumber)),o,s,this._insertSpace);1===a.length&&(this._deltaColumn=o.length+1)}this._selectionId=t.trackSelection(n);for(var p=0,g=a;p<g.length;p++){var A=g[p];t.addEditOperation(A.range,A.text)}}},e.prototype.getEditOperations=function(t,n){var i=this._selection;this._moveEndPositionDown=!1,i.startLineNumber<i.endLineNumber&&1===i.endColumn&&(this._moveEndPositionDown=!0,i=i.setEndPosition(i.endLineNumber-1,t.getLineMaxColumn(i.endLineNumber-1)));var r=e._gatherPreflightData(this._type,this._insertSpace,t,i.startLineNumber,i.endLineNumber);return r.supported?this._executeLineComments(t,n,r,i):this._executeBlockComment(t,n,i)},e.prototype.computeCursorState=function(e,t){var n=t.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(n=n.setEndPosition(n.endLineNumber+1,1)),new c["a"](n.selectionStartLineNumber,n.selectionStartColumn+this._deltaColumn,n.positionLineNumber,n.positionColumn+this._deltaColumn)},e._createRemoveLineCommentsOperations=function(e,t){for(var n=[],i=0,r=e.length;i<r;i++){var o=e[i];o.ignore||n.push(a["a"].delete(new l["a"](t+i,o.commentStrOffset+1,t+i,o.commentStrOffset+o.commentStrLength+1)))}return n},e.prototype._createAddLineCommentsOperations=function(e,t){for(var n=[],i=this._insertSpace?" ":"",r=0,o=e.length;r<o;r++){var s=e[r];s.ignore||n.push(a["a"].insert(new u["a"](t+r,s.commentStrOffset+1),s.commentStr+i))}return n},e.nextVisibleColumn=function(e,t,n,i){return n?e+(t-e%t):e+i},e._normalizeInsertionPoint=function(t,n,i,r){for(var o,s,a=1073741824,u=0,l=n.length;u<l;u++)if(!n[u].ignore){for(var c=t.getLineContent(i+u),d=0,h=0,f=n[u].commentStrOffset;d<a&&h<f;h++)d=e.nextVisibleColumn(d,r,9===c.charCodeAt(h),1);d<a&&(a=d)}a=Math.floor(a/r)*r;for(u=0,l=n.length;u<l;u++)if(!n[u].ignore){c=t.getLineContent(i+u),d=0;for(o=0,s=n[u].commentStrOffset;d<a&&o<s;o++)d=e.nextVisibleColumn(d,r,9===c.charCodeAt(o),1);n[u].commentStrOffset=d>a?o-1:o}},e}(),g=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),A=function(e){function t(t,n){var i=e.call(this,n)||this;return i._type=t,i}return g(t,e),t.prototype.run=function(e,t){if(t.hasModel()){for(var n=t.getModel(),i=[],r=t.getSelections(),o=n.getOptions(),s=t.getOption(13),a=0,u=r;a<u.length;a++){var l=u[a];i.push(new p(l,o.tabSize,this._type,s.insertSpace))}t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop()}},t}(o["b"]),m=function(e){function t(){return e.call(this,0,{id:"editor.action.commentLine",label:i["a"]("comment.line","Toggle Line Comment"),alias:"Toggle Line Comment",precondition:s["a"].writable,kbOpts:{kbExpr:s["a"].editorTextFocus,primary:2133,weight:100},menuOpts:{menuId:17,group:"5_insert",title:i["a"]({key:"miToggleLineComment",comment:["&& denotes a mnemonic"]},"&&Toggle Line Comment"),order:1}})||this}return g(t,e),t}(A),v=function(e){function t(){return e.call(this,1,{id:"editor.action.addCommentLine",label:i["a"]("comment.line.add","Add Line Comment"),alias:"Add Line Comment",precondition:s["a"].writable,kbOpts:{kbExpr:s["a"].editorTextFocus,primary:Object(r["a"])(2089,2081),weight:100}})||this}return g(t,e),t}(A),_=function(e){function t(){return e.call(this,2,{id:"editor.action.removeCommentLine",label:i["a"]("comment.line.remove","Remove Line Comment"),alias:"Remove Line Comment",precondition:s["a"].writable,kbOpts:{kbExpr:s["a"].editorTextFocus,primary:Object(r["a"])(2089,2099),weight:100}})||this}return g(t,e),t}(A),y=function(e){function t(){return e.call(this,{id:"editor.action.blockComment",label:i["a"]("comment.block","Toggle Block Comment"),alias:"Toggle Block Comment",precondition:s["a"].writable,kbOpts:{kbExpr:s["a"].editorTextFocus,primary:1567,linux:{primary:3103},weight:100},menuOpts:{menuId:17,group:"5_insert",title:i["a"]({key:"miToggleBlockComment",comment:["&& denotes a mnemonic"]},"Toggle &&Block Comment"),order:2}})||this}return g(t,e),t.prototype.run=function(e,t){if(t.hasModel()){for(var n=t.getOption(13),i=[],r=t.getSelections(),o=0,s=r;o<s.length;o++){var a=s[o];i.push(new h(a,n.insertSpace))}t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop()}},t}(o["b"]);Object(o["f"])(m),Object(o["f"])(v),Object(o["f"])(_),Object(o["f"])(y)},n18v:function(e,t,n){"use strict";n.r(t);var i=n("+hIS");Object(i["a"])({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:function(){return n.e(194).then(n.bind(null,"nNVF"))}})},nB0o:function(e,t,n){"use strict";n.d(t,"a",(function(){return Tr}));n("lrmC");var i=n("3/fG"),r=n("EffR"),o=n("/cxE"),s=n("MI8n"),a=n("pmY6"),u=n("tYmi"),l=n("HdwC"),c=n("sswD"),d=n("Vxe3"),h=n("ZlPH"),f=n("MNsG"),p=n("pg8w"),g=n("D3Dy"),A=n("XSiN"),m=n("X+cX"),v=n("AKMP"),_=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),y=function(){function e(e,t){this.x=e,this.y=t}return e.prototype.toClientCoordinates=function(){return new b(this.x-r["d"].scrollX,this.y-r["d"].scrollY)},e}(),b=function(){function e(e,t){this.clientX=e,this.clientY=t}return e.prototype.toPageCoordinates=function(){return new y(this.clientX+r["d"].scrollX,this.clientY+r["d"].scrollY)},e}(),w=function(){function e(e,t,n,i){this.x=e,this.y=t,this.width=n,this.height=i}return e}();function C(e){var t=r["B"](e);return new w(t.left,t.top,t.width,t.height)}var S=function(e){function t(t,n){var i=e.call(this,t)||this;return i.pos=new y(i.posx,i.posy),i.editorPos=C(n),i}return _(t,e),t}(A["a"]),N=function(){function e(e){this._editorViewDomNode=e}return e.prototype._create=function(e){return new S(e,this._editorViewDomNode)},e.prototype.onContextMenu=function(e,t){var n=this;return r["i"](e,"contextmenu",(function(e){t(n._create(e))}))},e.prototype.onMouseUp=function(e,t){var n=this;return r["i"](e,"mouseup",(function(e){t(n._create(e))}))},e.prototype.onMouseDown=function(e,t){var n=this;return r["i"](e,"mousedown",(function(e){t(n._create(e))}))},e.prototype.onMouseLeave=function(e,t){var n=this;return r["j"](e,(function(e){t(n._create(e))}))},e.prototype.onMouseMoveThrottled=function(e,t,n,i){var o=this,s=function(e,t){return n(e,o._create(t))};return r["l"](e,"mousemove",t,s,i)},e}(),L=function(){function e(e){this._editorViewDomNode=e}return e.prototype._create=function(e){return new S(e,this._editorViewDomNode)},e.prototype.onPointerUp=function(e,t){var n=this;return r["i"](e,"pointerup",(function(e){t(n._create(e))}))},e.prototype.onPointerDown=function(e,t){var n=this;return r["i"](e,"pointerdown",(function(e){t(n._create(e))}))},e.prototype.onPointerLeave=function(e,t){var n=this;return r["k"](e,(function(e){t(n._create(e))}))},e.prototype.onPointerMoveThrottled=function(e,t,n,i){var o=this,s=function(e,t){return n(e,o._create(t))};return r["l"](e,"pointermove",t,s,i)},e}(),E=function(e){function t(t){var n=e.call(this)||this;return n._editorViewDomNode=t,n._globalMouseMoveMonitor=n._register(new v["a"]),n._keydownListener=null,n}return _(t,e),t.prototype.startMonitoring=function(e,t,n,i,o){var s=this;this._keydownListener=r["n"](document,"keydown",(function(e){var t=e.toKeybinding();t.isModifierKey()||s._globalMouseMoveMonitor.stopMonitoring(!0)}),!0);var a=function(e,t){return n(e,new S(t,s._editorViewDomNode))};this._globalMouseMoveMonitor.startMonitoring(e,t,a,i,(function(){s._keydownListener.dispose(),o()}))},t}(a["a"]),x=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),O=function(e){function t(){var t=e.call(this)||this;return t._shouldRender=!0,t}return x(t,e),t.prototype.shouldRender=function(){return this._shouldRender},t.prototype.forceShouldRender=function(){this._shouldRender=!0},t.prototype.setShouldRender=function(){this._shouldRender=!0},t.prototype.onDidRender=function(){this._shouldRender=!1},t.prototype.onConfigurationChanged=function(e){return!1},t.prototype.onContentSizeChanged=function(e){return!1},t.prototype.onCursorStateChanged=function(e){return!1},t.prototype.onDecorationsChanged=function(e){return!1},t.prototype.onFlushed=function(e){return!1},t.prototype.onFocusChanged=function(e){return!1},t.prototype.onLanguageConfigurationChanged=function(e){return!1},t.prototype.onLineMappingChanged=function(e){return!1},t.prototype.onLinesChanged=function(e){return!1},t.prototype.onLinesDeleted=function(e){return!1},t.prototype.onLinesInserted=function(e){return!1},t.prototype.onRevealRangeRequest=function(e){return!1},t.prototype.onScrollChanged=function(e){return!1},t.prototype.onThemeChanged=function(e){return!1},t.prototype.onTokensChanged=function(e){return!1},t.prototype.onTokensColorsChanged=function(e){return!1},t.prototype.onZonesChanged=function(e){return!1},t.prototype.handleEvents=function(e){for(var t=!1,n=0,i=e.length;n<i;n++){var r=e[n];switch(r.type){case 1:this.onConfigurationChanged(r)&&(t=!0);break;case 2:this.onContentSizeChanged(r)&&(t=!0);break;case 3:this.onCursorStateChanged(r)&&(t=!0);break;case 4:this.onDecorationsChanged(r)&&(t=!0);break;case 5:this.onFlushed(r)&&(t=!0);break;case 6:this.onFocusChanged(r)&&(t=!0);break;case 7:this.onLanguageConfigurationChanged(r)&&(t=!0);break;case 8:this.onLineMappingChanged(r)&&(t=!0);break;case 9:this.onLinesChanged(r)&&(t=!0);break;case 10:this.onLinesDeleted(r)&&(t=!0);break;case 11:this.onLinesInserted(r)&&(t=!0);break;case 12:this.onRevealRangeRequest(r)&&(t=!0);break;case 13:this.onScrollChanged(r)&&(t=!0);break;case 15:this.onTokensChanged(r)&&(t=!0);break;case 14:this.onThemeChanged(r)&&(t=!0);break;case 16:this.onTokensColorsChanged(r)&&(t=!0);break;case 17:this.onZonesChanged(r)&&(t=!0);break;default:console.info("View received unknown event: "),console.info(r)}}t&&(this._shouldRender=!0)},t}(a["a"]),B=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),k=function(e){function t(t){var n=e.call(this)||this;return n._context=t,n._context.addEventHandler(n),n}return B(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),e.prototype.dispose.call(this)},t}(O),D=function(){function e(){}return e.write=function(e,t){h["a"],e.setAttribute("data-mprt",String(t))},e.read=function(e){var t=e.getAttribute("data-mprt");return null===t?0:parseInt(t,10)},e.collect=function(e,t){var n=[],i=0;while(e&&e!==document.body){if(e===t)break;e.nodeType===e.ELEMENT_NODE&&(n[i++]=this.read(e)),e=e.parentElement}for(var r=new Uint8Array(i),o=0;o<i;o++)r[o]=n[i-o-1];return r},e}(),I=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),M=function(){function e(e,t){this._viewLayout=e,this.viewportData=t,this.scrollWidth=this._viewLayout.getScrollWidth(),this.scrollHeight=this._viewLayout.getScrollHeight(),this.visibleRange=this.viewportData.visibleRange,this.bigNumbersDelta=this.viewportData.bigNumbersDelta;var n=this._viewLayout.getCurrentViewport();this.scrollTop=n.top,this.scrollLeft=n.left,this.viewportWidth=n.width,this.viewportHeight=n.height}return e.prototype.getScrolledTopFromAbsoluteTop=function(e){return e-this.scrollTop},e.prototype.getVerticalOffsetForLineNumber=function(e){return this._viewLayout.getVerticalOffsetForLineNumber(e)},e.prototype.getDecorationsInViewport=function(){return this.viewportData.getDecorationsInViewport()},e}(),F=function(e){function t(t,n,i){var r=e.call(this,t,n)||this;return r._viewLines=i,r}return I(t,e),t.prototype.linesVisibleRangesForRange=function(e,t){return this._viewLines.linesVisibleRangesForRange(e,t)},t.prototype.visibleRangeForPosition=function(e){return this._viewLines.visibleRangeForPosition(e)},t}(M),T=function(){function e(e,t,n){this.outsideRenderedLine=e,this.lineNumber=t,this.ranges=n}return e}(),R=function(){function e(e,t){this.left=Math.round(e),this.width=Math.round(t)}return e.prototype.toString=function(){return"["+this.left+","+this.width+"]"},e}(),P=function(){function e(e,t){this.outsideRenderedLine=e,this.left=Math.round(t)}return e}(),U=function(){function e(e,t){this.outsideRenderedLine=e,this.ranges=t}return e}(),H=function(){function e(e,t){this.left=e,this.width=t}return e.prototype.toString=function(){return"["+this.left+","+this.width+"]"},e.compare=function(e,t){return e.left-t.left},e}(),j=function(){function e(){}return e._createRange=function(){return this._handyReadyRange||(this._handyReadyRange=document.createRange()),this._handyReadyRange},e._detachRange=function(e,t){e.selectNodeContents(t)},e._readClientRects=function(e,t,n,i,r){var o=this._createRange();try{return o.setStart(e,t),o.setEnd(n,i),o.getClientRects()}catch(s){return null}finally{this._detachRange(o,r)}},e._mergeAdjacentRanges=function(e){if(1===e.length)return[new R(e[0].left,e[0].width)];e.sort(H.compare);for(var t=[],n=0,i=e[0].left,r=e[0].width,o=1,s=e.length;o<s;o++){var a=e[o],u=a.left,l=a.width;i+r+.9>=u?r=Math.max(r,u+l-i):(t[n++]=new R(i,r),i=u,r=l)}return t[n++]=new R(i,r),t},e._createHorizontalRangesFromClientRects=function(e,t){if(!e||0===e.length)return null;for(var n=[],i=0,r=e.length;i<r;i++){var o=e[i];n[i]=new H(Math.max(0,o.left-t),o.width)}return this._mergeAdjacentRanges(n)},e.readHorizontalRanges=function(e,t,n,i,r,o,s){var a=0,u=e.children.length-1;if(a>u)return null;t=Math.min(u,Math.max(a,t)),i=Math.min(u,Math.max(a,i)),t!==i&&i>0&&0===r&&(i--,r=1073741824);var l=e.children[t].firstChild,c=e.children[i].firstChild;if(l&&c||(!l&&0===n&&t>0&&(l=e.children[t-1].firstChild,n=1073741824),!c&&0===r&&i>0&&(c=e.children[i-1].firstChild,r=1073741824)),!l||!c)return null;n=Math.min(l.textContent.length,Math.max(0,n)),r=Math.min(c.textContent.length,Math.max(0,r));var d=this._readClientRects(l,n,c,r,s);return this._createHorizontalRangesFromClientRects(d,o)},e}(),Q=n("dBaI"),V=n("baJR"),W=n("t9D7"),z=n("/UlZ"),K=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),q=function(){return!!f["f"]||!(f["d"]||g["h"]||g["k"])}(),G=g["f"],X=function(){function e(e,t){this._domNode=e,this._clientRectDeltaLeft=0,this._clientRectDeltaLeftRead=!1,this.endNode=t}return Object.defineProperty(e.prototype,"clientRectDeltaLeft",{get:function(){return this._clientRectDeltaLeftRead||(this._clientRectDeltaLeftRead=!0,this._clientRectDeltaLeft=this._domNode.getBoundingClientRect().left),this._clientRectDeltaLeft},enumerable:!0,configurable:!0}),e}(),Y=function(){function e(e,t){this.themeType=t;var n=e.options,i=n.get(34);this.renderWhitespace=n.get(74),this.renderControlCharacters=n.get(69),this.spaceWidth=i.spaceWidth,this.middotWidth=i.middotWidth,this.useMonospaceOptimizations=i.isMonospace&&!n.get(23),this.canUseHalfwidthRightwardsArrow=i.canUseHalfwidthRightwardsArrow,this.lineHeight=n.get(49),this.stopRenderingLineAfter=n.get(88),this.fontLigatures=n.get(35)}return e.prototype.equals=function(e){return this.themeType===e.themeType&&this.renderWhitespace===e.renderWhitespace&&this.renderControlCharacters===e.renderControlCharacters&&this.spaceWidth===e.spaceWidth&&this.middotWidth===e.middotWidth&&this.useMonospaceOptimizations===e.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineHeight===e.lineHeight&&this.stopRenderingLineAfter===e.stopRenderingLineAfter&&this.fontLigatures===e.fontLigatures},e}(),J=function(){function e(e){this._options=e,this._isMaybeInvalid=!0,this._renderedViewLine=null}return e.prototype.getDomNode=function(){return this._renderedViewLine&&this._renderedViewLine.domNode?this._renderedViewLine.domNode.domNode:null},e.prototype.setDomNode=function(e){if(!this._renderedViewLine)throw new Error("I have no rendered view line to set the dom node to...");this._renderedViewLine.domNode=Object(h["b"])(e)},e.prototype.onContentChanged=function(){this._isMaybeInvalid=!0},e.prototype.onTokensChanged=function(){this._isMaybeInvalid=!0},e.prototype.onDecorationsChanged=function(){this._isMaybeInvalid=!0},e.prototype.onOptionsChanged=function(e){this._isMaybeInvalid=!0,this._options=e},e.prototype.onSelectionChanged=function(){return!(!G&&this._options.themeType!==W["b"]&&"selection"!==this._options.renderWhitespace)&&(this._isMaybeInvalid=!0,!0)},e.prototype.renderLine=function(t,n,i,r){if(!1===this._isMaybeInvalid)return!1;this._isMaybeInvalid=!1;var o=i.getViewLineRenderingData(t),s=this._options,a=Q["a"].filter(o.inlineDecorations,t,o.minColumn,o.maxColumn),u=null;if(G||s.themeType===W["b"]||"selection"===this._options.renderWhitespace)for(var l=i.selections,c=0,d=l;c<d.length;c++){var h=d[c];if(!(h.endLineNumber<t||h.startLineNumber>t)){var f=h.startLineNumber===t?h.startColumn:o.minColumn,p=h.endLineNumber===t?h.endColumn:o.maxColumn;f<p&&("selection"!==this._options.renderWhitespace?a.push(new Q["a"](f,p,"inline-selected-text",0)):(u||(u=[]),u.push(new V["b"](f-1,p-1))))}}var g=new V["c"](s.useMonospaceOptimizations,s.canUseHalfwidthRightwardsArrow,o.content,o.continuesWithWrappedLine,o.isBasicASCII,o.containsRTL,o.minColumn-1,o.tokens,a,o.tabSize,o.startVisibleColumn,s.spaceWidth,s.middotWidth,s.stopRenderingLineAfter,s.renderWhitespace,s.renderControlCharacters,s.fontLigatures!==z["d"].OFF,u);if(this._renderedViewLine&&this._renderedViewLine.input.equals(g))return!1;r.appendASCIIString('<div style="top:'),r.appendASCIIString(String(n)),r.appendASCIIString("px;height:"),r.appendASCIIString(String(this._options.lineHeight)),r.appendASCIIString('px;" class="'),r.appendASCIIString(e.CLASS_NAME),r.appendASCIIString('">');var A=Object(V["d"])(g,r);r.appendASCIIString("</div>");var m=null;return q&&o.isBasicASCII&&s.useMonospaceOptimizations&&0===A.containsForeignElements&&o.content.length<300&&g.lineTokens.getCount()<100&&(m=new Z(this._renderedViewLine?this._renderedViewLine.domNode:null,g,A.characterMapping)),m||(m=te(this._renderedViewLine?this._renderedViewLine.domNode:null,g,A.characterMapping,A.containsRTL,A.containsForeignElements)),this._renderedViewLine=m,!0},e.prototype.layoutLine=function(e,t){this._renderedViewLine&&this._renderedViewLine.domNode&&(this._renderedViewLine.domNode.setTop(t),this._renderedViewLine.domNode.setHeight(this._options.lineHeight))},e.prototype.getWidth=function(){return this._renderedViewLine?this._renderedViewLine.getWidth():0},e.prototype.getWidthIsFast=function(){return!this._renderedViewLine||this._renderedViewLine.getWidthIsFast()},e.prototype.getVisibleRangesForRange=function(e,t,n){if(!this._renderedViewLine)return null;e|=0,t|=0,e=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,e)),t=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,t));var i=0|this._renderedViewLine.input.stopRenderingLineAfter,r=!1;-1!==i&&e>i+1&&t>i+1&&(r=!0),-1!==i&&e>i+1&&(e=i+1),-1!==i&&t>i+1&&(t=i+1);var o=this._renderedViewLine.getVisibleRangesForRange(e,t,n);return o&&o.length>0?new U(r,o):null},e.prototype.getColumnOfNodeOffset=function(e,t,n){return this._renderedViewLine?this._renderedViewLine.getColumnOfNodeOffset(e,t,n):1},e.CLASS_NAME="view-line",e}(),Z=function(){function e(e,t,n){this.domNode=e,this.input=t,this._characterMapping=n,this._charWidth=t.spaceWidth}return e.prototype.getWidth=function(){return this._getCharPosition(this._characterMapping.length)},e.prototype.getWidthIsFast=function(){return!0},e.prototype.getVisibleRangesForRange=function(e,t,n){var i=this._getCharPosition(e),r=this._getCharPosition(t);return[new R(i,r-i)]},e.prototype._getCharPosition=function(e){var t=this._characterMapping.getAbsoluteOffsets();return 0===t.length?0:Math.round(this._charWidth*t[e-1])},e.prototype.getColumnOfNodeOffset=function(e,t,n){var i=t.textContent.length,r=-1;while(t)t=t.previousSibling,r++;var o=this._characterMapping.partDataToCharOffset(r,i,n);return o+1},e}(),$=function(){function e(e,t,n,i,r){if(this.domNode=e,this.input=t,this._characterMapping=n,this._isWhitespaceOnly=/^\s*$/.test(t.lineContent),this._containsForeignElements=r,this._cachedWidth=-1,this._pixelOffsetCache=null,!i||0===this._characterMapping.length){this._pixelOffsetCache=new Int32Array(Math.max(2,this._characterMapping.length+1));for(var o=0,s=this._characterMapping.length;o<=s;o++)this._pixelOffsetCache[o]=-1}}return e.prototype._getReadingTarget=function(e){return e.domNode.firstChild},e.prototype.getWidth=function(){return this.domNode?(-1===this._cachedWidth&&(this._cachedWidth=this._getReadingTarget(this.domNode).offsetWidth),this._cachedWidth):0},e.prototype.getWidthIsFast=function(){return-1!==this._cachedWidth},e.prototype.getVisibleRangesForRange=function(e,t,n){if(!this.domNode)return null;if(null!==this._pixelOffsetCache){var i=this._readPixelOffset(this.domNode,e,n);if(-1===i)return null;var r=this._readPixelOffset(this.domNode,t,n);return-1===r?null:[new R(i,r-i)]}return this._readVisibleRangesForRange(this.domNode,e,t,n)},e.prototype._readVisibleRangesForRange=function(e,t,n,i){if(t===n){var r=this._readPixelOffset(e,t,i);return-1===r?null:[new R(r,0)]}return this._readRawVisibleRangesForRange(e,t,n,i)},e.prototype._readPixelOffset=function(e,t,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();var i=this._getReadingTarget(e);return i.firstChild?i.firstChild.offsetWidth:0}if(null!==this._pixelOffsetCache){var r=this._pixelOffsetCache[t];if(-1!==r)return r;var o=this._actualReadPixelOffset(e,t,n);return this._pixelOffsetCache[t]=o,o}return this._actualReadPixelOffset(e,t,n)},e.prototype._actualReadPixelOffset=function(e,t,n){if(0===this._characterMapping.length){var i=j.readHorizontalRanges(this._getReadingTarget(e),0,0,0,0,n.clientRectDeltaLeft,n.endNode);return i&&0!==i.length?i[0].left:-1}if(t===this._characterMapping.length&&this._isWhitespaceOnly&&0===this._containsForeignElements)return this.getWidth();var r=this._characterMapping.charOffsetToPartData(t-1),o=V["a"].getPartIndex(r),s=V["a"].getCharIndex(r),a=j.readHorizontalRanges(this._getReadingTarget(e),o,s,o,s,n.clientRectDeltaLeft,n.endNode);return a&&0!==a.length?a[0].left:-1},e.prototype._readRawVisibleRangesForRange=function(e,t,n,i){if(1===t&&n===this._characterMapping.length)return[new R(0,this.getWidth())];var r=this._characterMapping.charOffsetToPartData(t-1),o=V["a"].getPartIndex(r),s=V["a"].getCharIndex(r),a=this._characterMapping.charOffsetToPartData(n-1),u=V["a"].getPartIndex(a),l=V["a"].getCharIndex(a);return j.readHorizontalRanges(this._getReadingTarget(e),o,s,u,l,i.clientRectDeltaLeft,i.endNode)},e.prototype.getColumnOfNodeOffset=function(e,t,n){var i=t.textContent.length,r=-1;while(t)t=t.previousSibling,r++;var o=this._characterMapping.partDataToCharOffset(r,i,n);return o+1},e}(),ee=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return K(t,e),t.prototype._readVisibleRangesForRange=function(t,n,i,r){var o=e.prototype._readVisibleRangesForRange.call(this,t,n,i,r);if(!o||0===o.length||n===i||1===n&&i===this._characterMapping.length)return o;if(!this.input.containsRTL){var s=this._readPixelOffset(t,i,r);if(-1!==s){var a=o[o.length-1];a.left<s&&(a.width=s-a.left)}}return o},t}($),te=function(){return g["m"]?ne:ie}();function ne(e,t,n,i,r){return new ee(e,t,n,i,r)}function ie(e,t,n,i,r){return new $(e,t,n,i,r)}var re=n("cGHE"),oe=n("aokT"),se=n("Ll0s"),ae=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),ue=function(){function e(e,t){this.lastViewCursorsRenderData=e,this.lastTextareaPosition=t}return e}(),le=function(){function e(e,t,n,i,r,o){void 0===n&&(n=0),void 0===i&&(i=null),void 0===r&&(r=null),void 0===o&&(o=null),this.element=e,this.type=t,this.mouseColumn=n,this.position=i,!r&&i&&(r=new oe["a"](i.lineNumber,i.column,i.lineNumber,i.column)),this.range=r,this.detail=o}return e._typeToString=function(e){return 1===e?"TEXTAREA":2===e?"GUTTER_GLYPH_MARGIN":3===e?"GUTTER_LINE_NUMBERS":4===e?"GUTTER_LINE_DECORATIONS":5===e?"GUTTER_VIEW_ZONE":6===e?"CONTENT_TEXT":7===e?"CONTENT_EMPTY":8===e?"CONTENT_VIEW_ZONE":9===e?"CONTENT_WIDGET":10===e?"OVERVIEW_RULER":11===e?"SCROLLBAR":12===e?"OVERLAY_WIDGET":"UNKNOWN"},e.toString=function(e){return this._typeToString(e.type)+": "+e.position+" - "+e.range+" - "+e.detail},e.prototype.toString=function(){return e.toString(this)},e}(),ce=function(){function e(){}return e.isTextArea=function(e){return 2===e.length&&3===e[0]&&6===e[1]},e.isChildOfViewLines=function(e){return e.length>=4&&3===e[0]&&7===e[3]},e.isStrictChildOfViewLines=function(e){return e.length>4&&3===e[0]&&7===e[3]},e.isChildOfScrollableElement=function(e){return e.length>=2&&3===e[0]&&5===e[1]},e.isChildOfMinimap=function(e){return e.length>=2&&3===e[0]&&8===e[1]},e.isChildOfContentWidgets=function(e){return e.length>=4&&3===e[0]&&1===e[3]},e.isChildOfOverflowingContentWidgets=function(e){return e.length>=1&&2===e[0]},e.isChildOfOverlayWidgets=function(e){return e.length>=2&&3===e[0]&&4===e[1]},e}(),de=function(){function e(e,t,n){this.model=e.model;var i=e.configuration.options;this.layoutInfo=i.get(107),this.viewDomNode=t.viewDomNode,this.lineHeight=i.get(49),this.typicalHalfwidthCharacterWidth=i.get(34).typicalHalfwidthCharacterWidth,this.lastRenderData=n,this._context=e,this._viewHelper=t}return e.prototype.getZoneAtCoord=function(t){return e.getZoneAtCoord(this._context,t)},e.getZoneAtCoord=function(e,t){var n=e.viewLayout.getWhitespaceAtVerticalOffset(t);if(n){var i=n.verticalOffset+n.height/2,r=e.model.getLineCount(),o=null,s=void 0,a=null;return n.afterLineNumber!==r&&(a=new re["a"](n.afterLineNumber+1,1)),n.afterLineNumber>0&&(o=new re["a"](n.afterLineNumber,e.model.getLineMaxColumn(n.afterLineNumber))),s=null===a?o:null===o?a:t<i?o:a,{viewZoneId:n.id,afterLineNumber:n.afterLineNumber,positionBefore:o,positionAfter:a,position:s}}return null},e.prototype.getFullLineRangeAtCoord=function(e){if(this._context.viewLayout.isAfterLines(e)){var t=this._context.model.getLineCount(),n=this._context.model.getLineMaxColumn(t);return{range:new oe["a"](t,n,t,n),isAfterLines:!0}}var i=this._context.viewLayout.getLineNumberAtVerticalOffset(e),r=this._context.model.getLineMaxColumn(i);return{range:new oe["a"](i,1,i,r),isAfterLines:!1}},e.prototype.getLineNumberAtVerticalOffset=function(e){return this._context.viewLayout.getLineNumberAtVerticalOffset(e)},e.prototype.isAfterLines=function(e){return this._context.viewLayout.isAfterLines(e)},e.prototype.getVerticalOffsetForLineNumber=function(e){return this._context.viewLayout.getVerticalOffsetForLineNumber(e)},e.prototype.findAttribute=function(t,n){return e._findAttribute(t,n,this._viewHelper.viewDomNode)},e._findAttribute=function(e,t,n){while(e&&e!==document.body){if(e.hasAttribute&&e.hasAttribute(t))return e.getAttribute(t);if(e===n)return null;e=e.parentNode}return null},e.prototype.getLineWidth=function(e){return this._viewHelper.getLineWidth(e)},e.prototype.visibleRangeForPosition=function(e,t){return this._viewHelper.visibleRangeForPosition(e,t)},e.prototype.getPositionFromDOMInfo=function(e,t){return this._viewHelper.getPositionFromDOMInfo(e,t)},e.prototype.getCurrentScrollTop=function(){return this._context.viewLayout.getCurrentScrollTop()},e.prototype.getCurrentScrollLeft=function(){return this._context.viewLayout.getCurrentScrollLeft()},e}(),he=function(){function e(e,t,n){this.editorPos=t,this.pos=n,this.mouseVerticalOffset=Math.max(0,e.getCurrentScrollTop()+n.y-t.y),this.mouseContentHorizontalOffset=e.getCurrentScrollLeft()+n.x-t.x-e.layoutInfo.contentLeft,this.isInMarginArea=n.x-t.x<e.layoutInfo.contentLeft&&n.x-t.x>=e.layoutInfo.glyphMarginLeft,this.isInContentArea=!this.isInMarginArea,this.mouseColumn=Math.max(0,Ae._getMouseColumn(this.mouseContentHorizontalOffset,e.typicalHalfwidthCharacterWidth))}return e}(),fe=function(e){function t(t,n,i,r){var o=e.call(this,t,n,i)||this;return o._ctx=t,r?(o.target=r,o.targetPath=D.collect(r,t.viewDomNode)):(o.target=null,o.targetPath=new Uint8Array(0)),o}return ae(t,e),t.prototype.toString=function(){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)},t.prototype.fulfill=function(e,t,n,i){void 0===t&&(t=null),void 0===n&&(n=null),void 0===i&&(i=null);var r=this.mouseColumn;return t&&t.column<this._ctx.model.getLineMaxColumn(t.lineNumber)&&(r=se["a"].visibleColumnFromColumn(this._ctx.model.getLineContent(t.lineNumber),t.column,this._ctx.model.getOptions().tabSize)+1),new le(this.target,e,r,t,n,i)},t.prototype.withTarget=function(e){return new t(this._ctx,this.editorPos,this.pos,e)},t}(he),pe={isAfterLines:!0};function ge(e){return{isAfterLines:!1,horizontalDistanceToText:e}}var Ae=function(){function e(e,t){this._context=e,this._viewHelper=t}return e.prototype.mouseTargetIsWidget=function(e){var t=e.target,n=D.collect(t,this._viewHelper.viewDomNode);return!(!ce.isChildOfContentWidgets(n)&&!ce.isChildOfOverflowingContentWidgets(n))||!!ce.isChildOfOverlayWidgets(n)},e.prototype.createMouseTarget=function(t,n,i,r){var o=new de(this._context,this._viewHelper,t),s=new fe(o,n,i,r);try{var a=e._createMouseTarget(o,s,!1);return a}catch(u){return s.fulfill(0)}},e._createMouseTarget=function(t,n,i){if(null===n.target){if(i)return n.fulfill(0);var r=e._doHitTest(t,n);return r.position?e.createMouseTargetFromHitTestPosition(t,n,r.position.lineNumber,r.position.column):this._createMouseTarget(t,n.withTarget(r.hitTarget),!0)}var o=n,s=null;return s=s||e._hitTestContentWidget(t,o),s=s||e._hitTestOverlayWidget(t,o),s=s||e._hitTestMinimap(t,o),s=s||e._hitTestScrollbarSlider(t,o),s=s||e._hitTestViewZone(t,o),s=s||e._hitTestMargin(t,o),s=s||e._hitTestViewCursor(t,o),s=s||e._hitTestTextArea(t,o),s=s||e._hitTestViewLines(t,o,i),s=s||e._hitTestScrollbar(t,o),s||n.fulfill(0)},e._hitTestContentWidget=function(e,t){if(ce.isChildOfContentWidgets(t.targetPath)||ce.isChildOfOverflowingContentWidgets(t.targetPath)){var n=e.findAttribute(t.target,"widgetId");return n?t.fulfill(9,null,null,n):t.fulfill(0)}return null},e._hitTestOverlayWidget=function(e,t){if(ce.isChildOfOverlayWidgets(t.targetPath)){var n=e.findAttribute(t.target,"widgetId");return n?t.fulfill(12,null,null,n):t.fulfill(0)}return null},e._hitTestViewCursor=function(e,t){if(t.target)for(var n=e.lastRenderData.lastViewCursorsRenderData,i=0,r=n;i<r.length;i++){var o=r[i];if(t.target===o.domNode)return t.fulfill(6,o.position)}if(t.isInContentArea){n=e.lastRenderData.lastViewCursorsRenderData;for(var s=t.mouseContentHorizontalOffset,a=t.mouseVerticalOffset,u=0,l=n;u<l.length;u++){o=l[u];if(!(s<o.contentLeft)&&!(s>o.contentLeft+o.width)){var c=e.getVerticalOffsetForLineNumber(o.position.lineNumber);if(c<=a&&a<=c+o.height)return t.fulfill(6,o.position)}}}return null},e._hitTestViewZone=function(e,t){var n=e.getZoneAtCoord(t.mouseVerticalOffset);if(n){var i=t.isInContentArea?8:5;return t.fulfill(i,n.position,null,n)}return null},e._hitTestTextArea=function(e,t){return ce.isTextArea(t.targetPath)?e.lastRenderData.lastTextareaPosition?t.fulfill(6,e.lastRenderData.lastTextareaPosition):t.fulfill(1,e.lastRenderData.lastTextareaPosition):null},e._hitTestMargin=function(e,t){if(t.isInMarginArea){var n=e.getFullLineRangeAtCoord(t.mouseVerticalOffset),i=n.range.getStartPosition(),r=Math.abs(t.pos.x-t.editorPos.x),o={isAfterLines:n.isAfterLines,glyphMarginLeft:e.layoutInfo.glyphMarginLeft,glyphMarginWidth:e.layoutInfo.glyphMarginWidth,lineNumbersWidth:e.layoutInfo.lineNumbersWidth,offsetX:r};return r-=e.layoutInfo.glyphMarginLeft,r<=e.layoutInfo.glyphMarginWidth?t.fulfill(2,i,n.range,o):(r-=e.layoutInfo.glyphMarginWidth,r<=e.layoutInfo.lineNumbersWidth?t.fulfill(3,i,n.range,o):(r-=e.layoutInfo.lineNumbersWidth,t.fulfill(4,i,n.range,o)))}return null},e._hitTestViewLines=function(t,n,i){if(!ce.isChildOfViewLines(n.targetPath))return null;if(t.isAfterLines(n.mouseVerticalOffset)){var r=t.model.getLineCount(),o=t.model.getLineMaxColumn(r);return n.fulfill(7,new re["a"](r,o),void 0,pe)}if(i){if(ce.isStrictChildOfViewLines(n.targetPath)){var s=t.getLineNumberAtVerticalOffset(n.mouseVerticalOffset);if(0===t.model.getLineLength(s)){var a=t.getLineWidth(s),u=ge(n.mouseContentHorizontalOffset-a);return n.fulfill(7,new re["a"](s,1),void 0,u)}var l=t.getLineWidth(s);if(n.mouseContentHorizontalOffset>=l){u=ge(n.mouseContentHorizontalOffset-l);var c=new re["a"](s,t.model.getLineMaxColumn(s));return n.fulfill(7,c,void 0,u)}}return n.fulfill(0)}var d=e._doHitTest(t,n);return d.position?e.createMouseTargetFromHitTestPosition(t,n,d.position.lineNumber,d.position.column):this._createMouseTarget(t,n.withTarget(d.hitTarget),!0)},e._hitTestMinimap=function(e,t){if(ce.isChildOfMinimap(t.targetPath)){var n=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),i=e.model.getLineMaxColumn(n);return t.fulfill(11,new re["a"](n,i))}return null},e._hitTestScrollbarSlider=function(e,t){if(ce.isChildOfScrollableElement(t.targetPath)&&t.target&&1===t.target.nodeType){var n=t.target.className;if(n&&/\b(slider|scrollbar)\b/.test(n)){var i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),r=e.model.getLineMaxColumn(i);return t.fulfill(11,new re["a"](i,r))}}return null},e._hitTestScrollbar=function(e,t){if(ce.isChildOfScrollableElement(t.targetPath)){var n=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),i=e.model.getLineMaxColumn(n);return t.fulfill(11,new re["a"](n,i))}return null},e.prototype.getMouseColumn=function(t,n){var i=this._context.configuration.options,r=i.get(107),o=this._context.viewLayout.getCurrentScrollLeft()+n.x-t.x-r.contentLeft;return e._getMouseColumn(o,i.get(34).typicalHalfwidthCharacterWidth)},e._getMouseColumn=function(e,t){if(e<0)return 1;var n=Math.round(e/t);return n+1},e.createMouseTargetFromHitTestPosition=function(e,t,n,i){var r=new re["a"](n,i),o=e.getLineWidth(n);if(t.mouseContentHorizontalOffset>o){if(g["e"]&&1===r.column){var s=ge(t.mouseContentHorizontalOffset-o);return t.fulfill(7,new re["a"](n,e.model.getLineMaxColumn(n)),void 0,s)}var a=ge(t.mouseContentHorizontalOffset-o);return t.fulfill(7,r,void 0,a)}var u=e.visibleRangeForPosition(n,i);if(!u)return t.fulfill(0,r);var l=u.left;if(t.mouseContentHorizontalOffset===l)return t.fulfill(6,r);var c=[];if(c.push({offset:u.left,column:i}),i>1){var d=e.visibleRangeForPosition(n,i-1);d&&c.push({offset:d.left,column:i-1})}var h=e.model.getLineMaxColumn(n);if(i<h){var f=e.visibleRangeForPosition(n,i+1);f&&c.push({offset:f.left,column:i+1})}c.sort((function(e,t){return e.offset-t.offset}));for(var p=1;p<c.length;p++){var A=c[p-1],m=c[p];if(A.offset<=t.mouseContentHorizontalOffset&&t.mouseContentHorizontalOffset<=m.offset){var v=new oe["a"](n,A.column,n,m.column);return t.fulfill(6,r,v)}}return t.fulfill(6,r)},e._doHitTestWithCaretRangeFromPoint=function(e,t){var n=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),i=e.getVerticalOffsetForLineNumber(n),r=i+Math.floor(e.lineHeight/2),o=t.pos.y+(r-t.mouseVerticalOffset);o<=t.editorPos.y&&(o=t.editorPos.y+1),o>=t.editorPos.y+e.layoutInfo.height&&(o=t.editorPos.y+e.layoutInfo.height-1);var s=new y(t.pos.x,o),a=this._actualDoHitTestWithCaretRangeFromPoint(e,s.toClientCoordinates());return a.position?a:this._actualDoHitTestWithCaretRangeFromPoint(e,t.pos.toClientCoordinates())},e._actualDoHitTestWithCaretRangeFromPoint=function(e,t){var n,i=r["D"](e.viewDomNode);if(n=i?"undefined"===typeof i.caretRangeFromPoint?me(i,t.clientX,t.clientY):i.caretRangeFromPoint(t.clientX,t.clientY):document.caretRangeFromPoint(t.clientX,t.clientY),!n||!n.startContainer)return{position:null,hitTarget:null};var o=n.startContainer,s=null;if(o.nodeType===o.TEXT_NODE){var a=o.parentNode,u=a?a.parentNode:null,l=u?u.parentNode:null,c=l&&l.nodeType===l.ELEMENT_NODE?l.className:null;if(c===J.CLASS_NAME){var d=e.getPositionFromDOMInfo(a,n.startOffset);return{position:d,hitTarget:null}}s=o.parentNode}else if(o.nodeType===o.ELEMENT_NODE){a=o.parentNode,u=a?a.parentNode:null;var h=u&&u.nodeType===u.ELEMENT_NODE?u.className:null;if(h===J.CLASS_NAME){d=e.getPositionFromDOMInfo(o,o.textContent.length);return{position:d,hitTarget:null}}s=o}return{position:null,hitTarget:s}},e._doHitTestWithCaretPositionFromPoint=function(e,t){var n=document.caretPositionFromPoint(t.clientX,t.clientY);if(n.offsetNode.nodeType===n.offsetNode.TEXT_NODE){var i=n.offsetNode.parentNode,r=i?i.parentNode:null,o=r?r.parentNode:null,s=o&&o.nodeType===o.ELEMENT_NODE?o.className:null;if(s===J.CLASS_NAME){var a=e.getPositionFromDOMInfo(n.offsetNode.parentNode,n.offset);return{position:a,hitTarget:null}}return{position:null,hitTarget:n.offsetNode.parentNode}}return{position:null,hitTarget:n.offsetNode}},e._doHitTestWithMoveToPoint=function(e,t){var n=null,i=null,r=document.body.createTextRange();try{r.moveToPoint(t.clientX,t.clientY)}catch(c){return{position:null,hitTarget:null}}r.collapse(!0);var o=r?r.parentElement():null,s=o?o.parentNode:null,a=s?s.parentNode:null,u=a&&a.nodeType===a.ELEMENT_NODE?a.className:"";if(u===J.CLASS_NAME){var l=r.duplicate();l.moveToElementText(o),l.setEndPoint("EndToStart",r),n=e.getPositionFromDOMInfo(o,l.text.length),l.moveToElementText(e.viewDomNode)}else i=o;return r.moveToElementText(e.viewDomNode),{position:n,hitTarget:i}},e._doHitTest=function(e,t){return"function"===typeof document.caretRangeFromPoint?this._doHitTestWithCaretRangeFromPoint(e,t):document.caretPositionFromPoint?this._doHitTestWithCaretPositionFromPoint(e,t.pos.toClientCoordinates()):document.body.createTextRange?this._doHitTestWithMoveToPoint(e,t.pos.toClientCoordinates()):{position:null,hitTarget:null}},e}();function me(e,t,n){var i=document.createRange(),r=e.elementFromPoint(t,n);if(null!==r){while(r&&r.firstChild&&r.firstChild.nodeType!==r.firstChild.TEXT_NODE)r=r.lastChild;var o=r.getBoundingClientRect(),s=window.getComputedStyle(r,null).getPropertyValue("font"),a=r.innerText,u=o.left,l=0,c=void 0;if(t>o.left+o.width)l=a.length;else for(var d=ve.getInstance(),h=0;h<a.length+1;h++){if(c=d.getCharWidth(a.charAt(h),s)/2,u+=c,t<u){l=h;break}u+=c}i.setStart(r.firstChild,l),i.setEnd(r.firstChild,l)}return i}var ve=function(){function e(){this._cache={},this._canvas=document.createElement("canvas")}return e.getInstance=function(){return e._INSTANCE||(e._INSTANCE=new e),e._INSTANCE},e.prototype.getCharWidth=function(e,t){var n=e+t;if(this._cache[n])return this._cache[n];var i=this._canvas.getContext("2d");i.font=t;var r=i.measureText(e),o=r.width;return this._cache[n]=o,o},e._INSTANCE=null,e}(),_e=n("Yr1X"),ye=n("gCVg"),be=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();function we(e){return function(t,n){var i=!1;return e&&(i=e.mouseTargetIsWidget(n)),i||n.preventDefault(),n}}var Ce=function(e){function t(n,i,o){var s=e.call(this)||this;s._isFocused=!1,s._context=n,s.viewController=i,s.viewHelper=o,s.mouseTargetFactory=new Ae(s._context,o),s._mouseDownOperation=s._register(new Se(s._context,s.viewController,s.viewHelper,(function(e,t){return s._createMouseTarget(e,t)}),(function(e){return s._getMouseColumn(e)}))),s._asyncFocus=s._register(new m["d"]((function(){return s.viewHelper.focusTextArea()}),0)),s.lastMouseLeaveTime=-1;var a=new N(s.viewHelper.viewDomNode);s._register(a.onContextMenu(s.viewHelper.viewDomNode,(function(e){return s._onContextMenu(e,!0)}))),s._register(a.onMouseMoveThrottled(s.viewHelper.viewDomNode,(function(e){return s._onMouseMove(e)}),we(s.mouseTargetFactory),t.MOUSE_MOVE_MINIMUM_TIME)),s._register(a.onMouseUp(s.viewHelper.viewDomNode,(function(e){return s._onMouseUp(e)}))),s._register(a.onMouseLeave(s.viewHelper.viewDomNode,(function(e){return s._onMouseLeave(e)}))),s._register(a.onMouseDown(s.viewHelper.viewDomNode,(function(e){return s._onMouseDown(e)})));var u=function(e){if(s.viewController.emitMouseWheel(e),s._context.configuration.options.get(57)){var t=new A["b"](e);if(t.browserEvent.ctrlKey||t.browserEvent.metaKey){var n=_e["a"].getZoomLevel(),i=t.deltaY>0?1:-1;_e["a"].setZoomLevel(n+i),t.preventDefault(),t.stopPropagation()}}};return s._register(r["i"](s.viewHelper.viewDomNode,g["f"]?"mousewheel":"wheel",u,{capture:!0,passive:!1})),s._context.addEventHandler(s),s}return be(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),e.prototype.dispose.call(this)},t.prototype.onCursorStateChanged=function(e){return this._mouseDownOperation.onCursorStateChanged(e),!1},t.prototype.onFocusChanged=function(e){return this._isFocused=e.isFocused,!1},t.prototype.onScrollChanged=function(e){return this._mouseDownOperation.onScrollChanged(),!1},t.prototype.getTargetAtClientPoint=function(e,t){var n=new b(e,t),i=n.toPageCoordinates(),r=C(this.viewHelper.viewDomNode);return i.y<r.y||i.y>r.y+r.height||i.x<r.x||i.x>r.x+r.width?null:this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),r,i,null)},t.prototype._createMouseTarget=function(e,t){return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),e.editorPos,e.pos,t?e.target:null)},t.prototype._getMouseColumn=function(e){return this.mouseTargetFactory.getMouseColumn(e.editorPos,e.pos)},t.prototype._onContextMenu=function(e,t){this.viewController.emitContextMenu({event:e,target:this._createMouseTarget(e,t)})},t.prototype._onMouseMove=function(e){if(!this._mouseDownOperation.isActive()){var t=e.timestamp;t<this.lastMouseLeaveTime||this.viewController.emitMouseMove({event:e,target:this._createMouseTarget(e,!0)})}},t.prototype._onMouseLeave=function(e){this.lastMouseLeaveTime=(new Date).getTime(),this.viewController.emitMouseLeave({event:e,target:null})},t.prototype._onMouseUp=function(e){this.viewController.emitMouseUp({event:e,target:this._createMouseTarget(e,!0)})},t.prototype._onMouseDown=function(e){var t=this,n=this._createMouseTarget(e,!0),i=6===n.type||7===n.type,r=2===n.type||3===n.type||4===n.type,o=3===n.type,s=this._context.configuration.options.get(83),a=8===n.type||5===n.type,u=9===n.type,l=e.leftButton||e.middleButton;f["e"]&&e.leftButton&&e.ctrlKey&&(l=!1);var c=function(){g["i"]&&!t._isFocused?t._asyncFocus.schedule():(e.preventDefault(),t.viewHelper.focusTextArea())};if(l&&(i||o&&s))c(),this._mouseDownOperation.start(n.type,e);else if(r)e.preventDefault();else if(a){var d=n.detail;this.viewHelper.shouldSuppressMouseDownOnViewZone(d.viewZoneId)&&(c(),this._mouseDownOperation.start(n.type,e),e.preventDefault())}else u&&this.viewHelper.shouldSuppressMouseDownOnWidget(n.detail)&&(c(),e.preventDefault());this.viewController.emitMouseDown({event:e,target:n})},t.MOUSE_MOVE_MINIMUM_TIME=100,t}(O),Se=function(e){function t(t,n,i,r,o){var s=e.call(this)||this;return s._context=t,s._viewController=n,s._viewHelper=i,s._createMouseTarget=r,s._getMouseColumn=o,s._mouseMoveMonitor=s._register(new E(s._viewHelper.viewDomNode)),s._onScrollTimeout=s._register(new m["e"]),s._mouseState=new Ne,s._currentSelection=new ye["a"](1,1,1,1),s._isActive=!1,s._lastMouseEvent=null,s}return be(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.isActive=function(){return this._isActive},t.prototype._onMouseDownThenMove=function(e){this._lastMouseEvent=e,this._mouseState.setModifiers(e);var t=this._findMousePosition(e,!0);t&&(this._mouseState.isDragAndDrop?this._viewController.emitMouseDrag({event:e,target:t}):this._dispatchMouse(t,!0))},t.prototype.start=function(e,t){var n=this;this._lastMouseEvent=t,this._mouseState.setStartedOnLineNumbers(3===e),this._mouseState.setStartButtons(t),this._mouseState.setModifiers(t);var i=this._findMousePosition(t,!0);if(i&&i.position){this._mouseState.trySetCount(t.detail,i.position),t.detail=this._mouseState.count;var r=this._context.configuration.options;if(!r.get(68)&&r.get(24)&&!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,we(null),(function(e){return n._onMouseDownThenMove(e)}),(function(){var e=n._findMousePosition(n._lastMouseEvent,!0);n._viewController.emitMouseDrop({event:n._lastMouseEvent,target:e?n._createMouseTarget(n._lastMouseEvent,!0):null}),n._stop()}));this._mouseState.isDragAndDrop=!1,this._dispatchMouse(i,t.shiftKey),this._isActive||(this._isActive=!0,this._mouseMoveMonitor.startMonitoring(t.target,t.buttons,we(null),(function(e){return n._onMouseDownThenMove(e)}),(function(){return n._stop()})))}},t.prototype._stop=function(){this._isActive=!1,this._onScrollTimeout.cancel()},t.prototype.onScrollChanged=function(){var e=this;this._isActive&&this._onScrollTimeout.setIfNotSet((function(){if(e._lastMouseEvent){var t=e._findMousePosition(e._lastMouseEvent,!1);t&&(e._mouseState.isDragAndDrop||e._dispatchMouse(t,!0))}}),10)},t.prototype.onCursorStateChanged=function(e){this._currentSelection=e.selections[0]},t.prototype._getPositionOutsideEditor=function(e){var t=e.editorPos,n=this._context.model,i=this._context.viewLayout,r=this._getMouseColumn(e);if(e.posy<t.y){var o=Math.max(i.getCurrentScrollTop()-(t.y-e.posy),0),s=de.getZoneAtCoord(this._context,o);if(s){var a=this._helpPositionJumpOverViewZone(s);if(a)return new le(null,13,r,a)}var u=i.getLineNumberAtVerticalOffset(o);return new le(null,13,r,new re["a"](u,1))}if(e.posy>t.y+t.height){o=i.getCurrentScrollTop()+(e.posy-t.y),s=de.getZoneAtCoord(this._context,o);if(s){a=this._helpPositionJumpOverViewZone(s);if(a)return new le(null,13,r,a)}var l=i.getLineNumberAtVerticalOffset(o);return new le(null,13,r,new re["a"](l,n.getLineMaxColumn(l)))}var c=i.getLineNumberAtVerticalOffset(i.getCurrentScrollTop()+(e.posy-t.y));return e.posx<t.x?new le(null,13,r,new re["a"](c,1)):e.posx>t.x+t.width?new le(null,13,r,new re["a"](c,n.getLineMaxColumn(c))):null},t.prototype._findMousePosition=function(e,t){var n=this._getPositionOutsideEditor(e);if(n)return n;var i=this._createMouseTarget(e,t),r=i.position;if(!r)return null;if(8===i.type||5===i.type){var o=this._helpPositionJumpOverViewZone(i.detail);if(o)return new le(i.element,i.type,i.mouseColumn,o,null,i.detail)}return i},t.prototype._helpPositionJumpOverViewZone=function(e){var t=new re["a"](this._currentSelection.selectionStartLineNumber,this._currentSelection.selectionStartColumn),n=e.positionBefore,i=e.positionAfter;return n&&i?n.isBefore(t)?n:i:null},t.prototype._dispatchMouse=function(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})},t}(a["a"]),Ne=function(){function e(){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}return Object.defineProperty(e.prototype,"altKey",{get:function(){return this._altKey},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ctrlKey",{get:function(){return this._ctrlKey},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"metaKey",{get:function(){return this._metaKey},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shiftKey",{get:function(){return this._shiftKey},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"leftButton",{get:function(){return this._leftButton},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"middleButton",{get:function(){return this._middleButton},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startedOnLineNumbers",{get:function(){return this._startedOnLineNumbers},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"count",{get:function(){return this._lastMouseDownCount},enumerable:!0,configurable:!0}),e.prototype.setModifiers=function(e){this._altKey=e.altKey,this._ctrlKey=e.ctrlKey,this._metaKey=e.metaKey,this._shiftKey=e.shiftKey},e.prototype.setStartButtons=function(e){this._leftButton=e.leftButton,this._middleButton=e.middleButton},e.prototype.setStartedOnLineNumbers=function(e){this._startedOnLineNumbers=e},e.prototype.trySetCount=function(t,n){var i=(new Date).getTime();i-this._lastSetMouseDownCountTime>e.CLEAR_MOUSE_DOWN_COUNT_TIME&&(t=1),this._lastSetMouseDownCountTime=i,t>this._lastMouseDownCount+1&&(t=this._lastMouseDownCount+1),this._lastMouseDownPosition&&this._lastMouseDownPosition.equals(n)?this._lastMouseDownPositionEqualCount++:this._lastMouseDownPositionEqualCount=1,this._lastMouseDownPosition=n,this._lastMouseDownCount=Math.min(t,this._lastMouseDownPositionEqualCount)},e.CLEAR_MOUSE_DOWN_COUNT_TIME=400,e}(),Le=n("CjF5"),Ee=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();function xe(e,t){var n={translationY:t.translationY,translationX:t.translationX};return e&&(n.translationY+=e.translationY,n.translationX+=e.translationX),n}var Oe=function(e){function t(t,n,i){var o=e.call(this,t,n,i)||this;return o.viewHelper.linesContentDomNode.style.msTouchAction="none",o.viewHelper.linesContentDomNode.style.msContentZooming="none",o._installGestureHandlerTimeout=window.setTimeout((function(){if(o._installGestureHandlerTimeout=-1,window.MSGesture){var e=new MSGesture,t=new MSGesture;e.target=o.viewHelper.linesContentDomNode,t.target=o.viewHelper.linesContentDomNode,o.viewHelper.linesContentDomNode.addEventListener("MSPointerDown",(function(n){var i=n.pointerType;i!==(n.MSPOINTER_TYPE_MOUSE||"mouse")?i===(n.MSPOINTER_TYPE_TOUCH||"touch")?(o._lastPointerType="touch",e.addPointer(n.pointerId)):(o._lastPointerType="pen",t.addPointer(n.pointerId)):o._lastPointerType="mouse"})),o._register(r["l"](o.viewHelper.linesContentDomNode,"MSGestureChange",(function(e){return o._onGestureChange(e)}),xe)),o._register(r["i"](o.viewHelper.linesContentDomNode,"MSGestureTap",(function(e){return o._onCaptureGestureTap(e)}),!0))}}),100),o._lastPointerType="mouse",o}return Ee(t,e),t.prototype._onMouseDown=function(t){"mouse"===this._lastPointerType&&e.prototype._onMouseDown.call(this,t)},t.prototype._onCaptureGestureTap=function(e){var t=this,n=new S(e,this.viewHelper.viewDomNode),i=this._createMouseTarget(n,!1);i.position&&this.viewController.moveTo(i.position),n.browserEvent.fromElement?(n.preventDefault(),this.viewHelper.focusTextArea()):setTimeout((function(){t.viewHelper.focusTextArea()}))},t.prototype._onGestureChange=function(e){this._context.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)},t.prototype.dispose=function(){window.clearTimeout(this._installGestureHandlerTimeout),e.prototype.dispose.call(this)},t}(Ce),Be=function(e){function t(t,n,i){var o=e.call(this,t,n,i)||this;return o.viewHelper.linesContentDomNode.style.touchAction="none",o._installGestureHandlerTimeout=window.setTimeout((function(){if(o._installGestureHandlerTimeout=-1,window.MSGesture){var e=new MSGesture,t=new MSGesture;e.target=o.viewHelper.linesContentDomNode,t.target=o.viewHelper.linesContentDomNode,o.viewHelper.linesContentDomNode.addEventListener("pointerdown",(function(n){var i=n.pointerType;"mouse"!==i?"touch"===i?(o._lastPointerType="touch",e.addPointer(n.pointerId)):(o._lastPointerType="pen",t.addPointer(n.pointerId)):o._lastPointerType="mouse"})),o._register(r["l"](o.viewHelper.linesContentDomNode,"MSGestureChange",(function(e){return o._onGestureChange(e)}),xe)),o._register(r["i"](o.viewHelper.linesContentDomNode,"MSGestureTap",(function(e){return o._onCaptureGestureTap(e)}),!0))}}),100),o._lastPointerType="mouse",o}return Ee(t,e),t.prototype._onMouseDown=function(t){"mouse"===this._lastPointerType&&e.prototype._onMouseDown.call(this,t)},t.prototype._onCaptureGestureTap=function(e){var t=this,n=new S(e,this.viewHelper.viewDomNode),i=this._createMouseTarget(n,!1);i.position&&this.viewController.moveTo(i.position),n.browserEvent.fromElement?(n.preventDefault(),this.viewHelper.focusTextArea()):setTimeout((function(){t.viewHelper.focusTextArea()}))},t.prototype._onGestureChange=function(e){this._context.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)},t.prototype.dispose=function(){window.clearTimeout(this._installGestureHandlerTimeout),e.prototype.dispose.call(this)},t}(Ce),ke=function(e){function t(t,n,i){var o=e.call(this,t,n,i)||this;o._register(p["b"].addTarget(o.viewHelper.linesContentDomNode)),o._register(r["i"](o.viewHelper.linesContentDomNode,p["a"].Tap,(function(e){return o.onTap(e)}))),o._register(r["i"](o.viewHelper.linesContentDomNode,p["a"].Change,(function(e){return o.onChange(e)}))),o._register(r["i"](o.viewHelper.linesContentDomNode,p["a"].Contextmenu,(function(e){return o._onContextMenu(new S(e,o.viewHelper.viewDomNode),!1)}))),o._lastPointerType="mouse",o._register(r["i"](o.viewHelper.linesContentDomNode,"pointerdown",(function(e){var t=e.pointerType;o._lastPointerType="mouse"!==t?"touch"===t?"touch":"pen":"mouse"})));var s=new L(o.viewHelper.viewDomNode);return o._register(s.onPointerMoveThrottled(o.viewHelper.viewDomNode,(function(e){return o._onMouseMove(e)}),we(o.mouseTargetFactory),Ce.MOUSE_MOVE_MINIMUM_TIME)),o._register(s.onPointerUp(o.viewHelper.viewDomNode,(function(e){return o._onMouseUp(e)}))),o._register(s.onPointerLeave(o.viewHelper.viewDomNode,(function(e){return o._onMouseLeave(e)}))),o._register(s.onPointerDown(o.viewHelper.viewDomNode,(function(e){return o._onMouseDown(e)}))),o}return Ee(t,e),t.prototype.onTap=function(e){if(e.initialTarget&&this.viewHelper.linesContentDomNode.contains(e.initialTarget)){e.preventDefault(),this.viewHelper.focusTextArea();var t=this._createMouseTarget(new S(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})}},t.prototype.onChange=function(e){"touch"===this._lastPointerType&&this._context.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)},t.prototype._onMouseDown=function(t){t.target&&this.viewHelper.linesContentDomNode.contains(t.target)&&"touch"===this._lastPointerType||e.prototype._onMouseDown.call(this,t)},t}(Ce),De=function(e){function t(t,n,i){var o=e.call(this,t,n,i)||this;return o._register(p["b"].addTarget(o.viewHelper.linesContentDomNode)),o._register(r["i"](o.viewHelper.linesContentDomNode,p["a"].Tap,(function(e){return o.onTap(e)}))),o._register(r["i"](o.viewHelper.linesContentDomNode,p["a"].Change,(function(e){return o.onChange(e)}))),o._register(r["i"](o.viewHelper.linesContentDomNode,p["a"].Contextmenu,(function(e){return o._onContextMenu(new S(e,o.viewHelper.viewDomNode),!1)}))),o}return Ee(t,e),t.prototype.onTap=function(e){e.preventDefault(),this.viewHelper.focusTextArea();var t=this._createMouseTarget(new S(e,this.viewHelper.viewDomNode),!1);t.position&&this.viewController.moveTo(t.position)},t.prototype.onChange=function(e){this._context.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)},t}(Ce),Ie=function(e){function t(t,n,i){var r=e.call(this)||this;return window.navigator.msPointerEnabled?r.handler=r._register(new Oe(t,n,i)):f["c"]&&Le["a"].pointerEvents?r.handler=r._register(new ke(t,n,i)):window.TouchEvent?r.handler=r._register(new De(t,n,i)):window.navigator.pointerEnabled||window.PointerEvent?r.handler=r._register(new Be(t,n,i)):r.handler=r._register(new Ce(t,n,i)),r}return Ee(t,e),t.prototype.getTargetAtClientPoint=function(e,t){return this.handler.getTargetAtClientPoint(e,t)},t}(a["a"]),Me=(n("VvMK"),n("N0LK")),Fe=n("5TxY"),Te=n("Comh"),Re=(n("Krc3"),function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}()),Pe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Re(t,e),t}(O),Ue=n("kYye"),He=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),je=function(e){function t(t){var n=e.call(this)||this;return n._context=t,n._readConfig(),n._lastCursorModelPosition=new re["a"](1,1),n._renderResult=null,n._context.addEventHandler(n),n}return He(t,e),t.prototype._readConfig=function(){var e=this._context.configuration.options;this._lineHeight=e.get(49);var t=e.get(50);this._renderLineNumbers=t.renderType,this._renderCustomLineNumbers=t.renderFn,this._renderFinalNewline=e.get(71);var n=e.get(107);this._lineNumbersLeft=n.lineNumbersLeft,this._lineNumbersWidth=n.lineNumbersWidth},t.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return this._readConfig(),!0},t.prototype.onCursorStateChanged=function(e){var t=e.selections[0].getPosition();return this._lastCursorModelPosition=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(t),2===this._renderLineNumbers||3===this._renderLineNumbers},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesChanged=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return e.scrollTopChanged},t.prototype.onZonesChanged=function(e){return!0},t.prototype._getLineRenderLineNumber=function(e){var t=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new re["a"](e,1));if(1!==t.column)return"";var n=t.lineNumber;if(this._renderCustomLineNumbers)return this._renderCustomLineNumbers(n);if(2===this._renderLineNumbers){var i=Math.abs(this._lastCursorModelPosition.lineNumber-n);return 0===i?'<span class="relative-current-line-number">'+n+"</span>":String(i)}return 3===this._renderLineNumbers?this._lastCursorModelPosition.lineNumber===n||n%10===0?String(n):"":String(n)},t.prototype.prepareRender=function(e){if(0!==this._renderLineNumbers){for(var n=f["d"]?this._lineHeight%2===0?" lh-even":" lh-odd":"",i=e.visibleRange.startLineNumber,r=e.visibleRange.endLineNumber,o='<div class="'+t.CLASS_NAME+n+'" style="left:'+this._lineNumbersLeft.toString()+"px;width:"+this._lineNumbersWidth.toString()+'px;">',s=this._context.model.getLineCount(),a=[],u=i;u<=r;u++){var l=u-i;if(this._renderFinalNewline||u!==s||0!==this._context.model.getLineLength(u)){var c=this._getLineRenderLineNumber(u);a[l]=c?o+c+"</div>":""}else a[l]=""}this._renderResult=a}else this._renderResult=null},t.prototype.render=function(e,t){if(!this._renderResult)return"";var n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]},t.CLASS_NAME="line-numbers",t}(Pe);Object(W["e"])((function(e,t){var n=e.getColor(Ue["j"]);n&&t.addRule(".monaco-editor .line-numbers { color: "+n+"; }");var i=e.getColor(Ue["b"]);i&&t.addRule(".monaco-editor .current-line ~ .line-numbers { color: "+i+"; }")}));var Qe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Ve=function(e){function t(n){var i=e.call(this,n)||this,r=i._context.configuration.options,o=r.get(107);return i._canUseLayerHinting=!r.get(22),i._contentLeft=o.contentLeft,i._glyphMarginLeft=o.glyphMarginLeft,i._glyphMarginWidth=o.glyphMarginWidth,i._domNode=Object(h["b"])(document.createElement("div")),i._domNode.setClassName(t.OUTER_CLASS_NAME),i._domNode.setPosition("absolute"),i._domNode.setAttribute("role","presentation"),i._domNode.setAttribute("aria-hidden","true"),i._glyphMarginBackgroundDomNode=Object(h["b"])(document.createElement("div")),i._glyphMarginBackgroundDomNode.setClassName(t.CLASS_NAME),i._domNode.appendChild(i._glyphMarginBackgroundDomNode),i}return Qe(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.getDomNode=function(){return this._domNode},t.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options,n=t.get(107);return this._canUseLayerHinting=!t.get(22),this._contentLeft=n.contentLeft,this._glyphMarginLeft=n.glyphMarginLeft,this._glyphMarginWidth=n.glyphMarginWidth,!0},t.prototype.onScrollChanged=function(t){return e.prototype.onScrollChanged.call(this,t)||t.scrollTopChanged},t.prototype.prepareRender=function(e){},t.prototype.render=function(e){this._domNode.setLayerHinting(this._canUseLayerHinting),this._domNode.setContain("strict");var t=e.scrollTop-e.bigNumbersDelta;this._domNode.setTop(-t);var n=Math.min(e.scrollHeight,1e6);this._domNode.setHeight(n),this._domNode.setWidth(this._contentLeft),this._glyphMarginBackgroundDomNode.setLeft(this._glyphMarginLeft),this._glyphMarginBackgroundDomNode.setWidth(this._glyphMarginWidth),this._glyphMarginBackgroundDomNode.setHeight(n)},t.CLASS_NAME="glyph-margin",t.OUTER_CLASS_NAME="margin",t}(k),We=n("5v8Y"),ze=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Ke=function(){function e(e){this.type=1,this._source=e}return e.prototype.hasChanged=function(e){return this._source.hasChanged(e)},e}(),qe=function(){function e(e){this.type=2,this.contentWidth=e.contentWidth,this.contentHeight=e.contentHeight,this.contentWidthChanged=e.contentWidthChanged,this.contentHeightChanged=e.contentHeightChanged}return e}(),Ge=function(){function e(e,t){this.type=3,this.selections=e,this.modelSelections=t}return e}(),Xe=function(){function e(){this.type=4}return e}(),Ye=function(){function e(){this.type=5}return e}(),Je=function(){function e(e){this.type=6,this.isFocused=e}return e}(),Ze=function(){function e(){this.type=7}return e}(),$e=function(){function e(){this.type=8}return e}(),et=function(){function e(e,t){this.type=9,this.fromLineNumber=e,this.toLineNumber=t}return e}(),tt=function(){function e(e,t){this.type=10,this.fromLineNumber=e,this.toLineNumber=t}return e}(),nt=function(){function e(e,t){this.type=11,this.fromLineNumber=e,this.toLineNumber=t}return e}(),it=function(){function e(e,t,n,i,r){this.type=12,this.source=e,this.range=t,this.verticalType=n,this.revealHorizontal=i,this.scrollType=r}return e}(),rt=function(){function e(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}return e}(),ot=function(){function e(){this.type=14}return e}(),st=function(){function e(e){this.type=15,this.ranges=e}return e}(),at=function(){function e(){this.type=16}return e}(),ut=function(){function e(){this.type=17}return e}(),lt=function(e){function t(){var t=e.call(this)||this;return t._listeners=[],t._collector=null,t._collectorCnt=0,t}return ze(t,e),t.prototype.dispose=function(){this._listeners=[],e.prototype.dispose.call(this)},t.prototype._beginEmit=function(){return this._collectorCnt++,1===this._collectorCnt&&(this._collector=new ct),this._collector},t.prototype._endEmit=function(){if(this._collectorCnt--,0===this._collectorCnt){var e=this._collector.finalize();this._collector=null,e.length>0&&this._emit(e)}},t.prototype._emit=function(e){for(var t=this._listeners.slice(0),n=0,i=t.length;n<i;n++)dt(t[n],e)},t.prototype.addEventListener=function(e){var t=this;return this._listeners.push(e),Object(a["h"])((function(){for(var n=t._listeners,i=0,r=n.length;i<r;i++)if(n[i]===e){n.splice(i,1);break}}))},t}(a["a"]),ct=function(){function e(){this._eventsLen=0,this._events=[],this._eventsLen=0}return e.prototype.emit=function(e){this._events[this._eventsLen++]=e},e.prototype.finalize=function(){var e=this._events;return this._events=[],e},e}();function dt(e,t){try{e(t)}catch(n){o["e"](n)}}var ht=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),ft=function(){function e(e,t,n){this.top=e,this.left=t,this.width=n}return e.prototype.setWidth=function(t){return new e(this.top,this.left,t)},e}(),pt=g["f"]||g["h"],gt=function(e){function t(t,n,i){var r=e.call(this,t)||this;r._primaryCursorPosition=new re["a"](1,1),r._primaryCursorVisibleRange=null,r._viewController=n,r._viewHelper=i,r._scrollLeft=0,r._scrollTop=0;var o=r._context.configuration.options,s=o.get(107);r._setAccessibilityOptions(o),r._contentLeft=s.contentLeft,r._contentWidth=s.contentWidth,r._contentHeight=s.height,r._fontInfo=o.get(34),r._lineHeight=o.get(49),r._emptySelectionClipboard=o.get(25),r._copyWithSyntaxHighlighting=o.get(15),r._visibleTextArea=null,r._selections=[new ye["a"](1,1,1,1)],r._modelSelections=[new ye["a"](1,1,1,1)],r._lastRenderPosition=null,r.textArea=Object(h["b"])(document.createElement("textarea")),D.write(r.textArea,6),r.textArea.setClassName("inputarea"),r.textArea.setAttribute("wrap","off"),r.textArea.setAttribute("autocorrect","off"),r.textArea.setAttribute("autocapitalize","off"),r.textArea.setAttribute("autocomplete","off"),r.textArea.setAttribute("spellcheck","false"),r.textArea.setAttribute("aria-label",r._getAriaLabel(o)),r.textArea.setAttribute("role","textbox"),r.textArea.setAttribute("aria-multiline","true"),r.textArea.setAttribute("aria-haspopup","false"),r.textArea.setAttribute("aria-autocomplete","both"),f["g"]&&o.get(68)&&r.textArea.setAttribute("readonly","true"),r.textAreaCover=Object(h["b"])(document.createElement("div")),r.textAreaCover.setPosition("absolute");var a={getLineCount:function(){return r._context.model.getLineCount()},getLineMaxColumn:function(e){return r._context.model.getLineMaxColumn(e)},getValueInRange:function(e,t){return r._context.model.getValueInRange(e,t)}},u={getDataToCopy:function(e){var t=r._context.model.getPlainTextToCopy(r._modelSelections,r._emptySelectionClipboard,f["h"]),n=r._context.model.getEOL(),i=r._emptySelectionClipboard&&1===r._modelSelections.length&&r._modelSelections[0].isEmpty(),o=Array.isArray(t)?t:null,s=Array.isArray(t)?t.join(n):t,a=void 0,u=null;if(e&&(Fe["a"].forceCopyWithSyntaxHighlighting||r._copyWithSyntaxHighlighting&&s.length<65536)){var l=r._context.model.getRichTextToCopy(r._modelSelections,r._emptySelectionClipboard);l&&(a=l.html,u=l.mode)}return{isFromEmptySelection:i,multicursorText:o,text:s,html:a,mode:u}},getScreenReaderContent:function(e){if(g["j"])return Te["b"].EMPTY;if(1===r._accessibilitySupport){if(f["e"]){var t=r._selections[0];if(t.isEmpty()){var n=t.getStartPosition(),i=r._getWordBeforePosition(n);if(0===i.length&&(i=r._getCharacterBeforePosition(n)),i.length>0)return new Te["b"](i,i.length,i.length,n,n)}}return Te["b"].EMPTY}return Te["a"].fromEditorSelection(e,a,r._selections[0],r._accessibilityPageSize,0===r._accessibilitySupport)},deduceModelPosition:function(e,t,n){return r._context.model.deduceModelPositionRelativeToViewPosition(e,t,n)}};return r._textAreaInput=r._register(new Fe["b"](u,r.textArea)),r._register(r._textAreaInput.onKeyDown((function(e){r._viewController.emitKeyDown(e)}))),r._register(r._textAreaInput.onKeyUp((function(e){r._viewController.emitKeyUp(e)}))),r._register(r._textAreaInput.onPaste((function(e){var t=!1,n=null,i=null;e.metadata&&(t=r._emptySelectionClipboard&&!!e.metadata.isFromEmptySelection,n="undefined"!==typeof e.metadata.multicursorText?e.metadata.multicursorText:null,i=e.metadata.mode),r._viewController.paste("keyboard",e.text,t,n,i)}))),r._register(r._textAreaInput.onCut((function(){r._viewController.cut("keyboard")}))),r._register(r._textAreaInput.onType((function(e){e.replaceCharCnt?r._viewController.replacePreviousChar("keyboard",e.text,e.replaceCharCnt):r._viewController.type("keyboard",e.text)}))),r._register(r._textAreaInput.onSelectionChangeRequest((function(e){r._viewController.setSelection("keyboard",e)}))),r._register(r._textAreaInput.onCompositionStart((function(){var e=r._selections[0].startLineNumber,t=r._selections[0].startColumn;r._context.privateViewEventBus.emit(new it("keyboard",new oe["a"](e,t,e,t),0,!0,1));var n=r._viewHelper.visibleRangeForPositionRelativeToEditor(e,t);n&&(r._visibleTextArea=new ft(r._context.viewLayout.getVerticalOffsetForLineNumber(e),n.left,pt?0:1),r._render()),r.textArea.setClassName("inputarea ime-input"),r._viewController.compositionStart("keyboard")}))),r._register(r._textAreaInput.onCompositionUpdate((function(e){g["f"]?r._visibleTextArea=r._visibleTextArea.setWidth(0):r._visibleTextArea=r._visibleTextArea.setWidth(At(e.data,r._fontInfo)),r._render()}))),r._register(r._textAreaInput.onCompositionEnd((function(){r._visibleTextArea=null,r._render(),r.textArea.setClassName("inputarea"),r._viewController.compositionEnd("keyboard")}))),r._register(r._textAreaInput.onFocus((function(){r._context.privateViewEventBus.emit(new Je(!0))}))),r._register(r._textAreaInput.onBlur((function(){r._context.privateViewEventBus.emit(new Je(!1))}))),r}return ht(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype._getWordBeforePosition=function(e){var t=this._context.model.getLineContent(e.lineNumber),n=Object(We["a"])(this._context.configuration.options.get(96)),i=e.column,r=0;while(i>1){var o=t.charCodeAt(i-2),s=n.get(o);if(0!==s||r>50)return t.substring(i-1,e.column-1);r++,i--}return t.substring(0,e.column-1)},t.prototype._getCharacterBeforePosition=function(e){if(e.column>1){var t=this._context.model.getLineContent(e.lineNumber),n=t.charAt(e.column-2);if(!Me["z"](n.charCodeAt(0)))return n}return""},t.prototype._getAriaLabel=function(e){var t=e.get(2);return 1===t?i["a"]("accessibilityOffAriaLabel","The editor is not accessible at this time. Press Alt+F1 for options."):e.get(4)},t.prototype._setAccessibilityOptions=function(e){this._accessibilitySupport=e.get(2);var t=e.get(3);2===this._accessibilitySupport&&t===z["e"].accessibilityPageSize.defaultValue?this._accessibilityPageSize=160:this._accessibilityPageSize=t},t.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options,n=t.get(107);return this._setAccessibilityOptions(t),this._contentLeft=n.contentLeft,this._contentWidth=n.contentWidth,this._contentHeight=n.height,this._fontInfo=t.get(34),this._lineHeight=t.get(49),this._emptySelectionClipboard=t.get(25),this._copyWithSyntaxHighlighting=t.get(15),this.textArea.setAttribute("aria-label",this._getAriaLabel(t)),f["g"]&&e.hasChanged(68)&&(t.get(68)?this.textArea.setAttribute("readonly","true"):this.textArea.removeAttribute("readonly")),e.hasChanged(2)&&this._textAreaInput.writeScreenReaderContent("strategy changed"),!0},t.prototype.onCursorStateChanged=function(e){return this._selections=e.selections.slice(0),this._modelSelections=e.modelSelections.slice(0),this._textAreaInput.writeScreenReaderContent("selection changed"),!0},t.prototype.onDecorationsChanged=function(e){return!0},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesChanged=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return this._scrollLeft=e.scrollLeft,this._scrollTop=e.scrollTop,!0},t.prototype.onZonesChanged=function(e){return!0},t.prototype.isFocused=function(){return this._textAreaInput.isFocused()},t.prototype.focusTextArea=function(){this._textAreaInput.focusTextArea()},t.prototype.getLastRenderData=function(){return this._lastRenderPosition},t.prototype.setAriaOptions=function(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"))},t.prototype.prepareRender=function(e){this._primaryCursorPosition=new re["a"](this._selections[0].positionLineNumber,this._selections[0].positionColumn),this._primaryCursorVisibleRange=e.visibleRangeForPosition(this._primaryCursorPosition)},t.prototype.render=function(e){this._textAreaInput.writeScreenReaderContent("render"),this._render()},t.prototype._render=function(){if(this._visibleTextArea)this._renderInsideEditor(null,this._visibleTextArea.top-this._scrollTop,this._contentLeft+this._visibleTextArea.left-this._scrollLeft,this._visibleTextArea.width,this._lineHeight);else if(this._primaryCursorVisibleRange){var e=this._contentLeft+this._primaryCursorVisibleRange.left-this._scrollLeft;if(e<this._contentLeft||e>this._contentLeft+this._contentWidth)this._renderAtTopLeft();else{var t=this._context.viewLayout.getVerticalOffsetForLineNumber(this._selections[0].positionLineNumber)-this._scrollTop;t<0||t>this._contentHeight?this._renderAtTopLeft():f["e"]?this._renderInsideEditor(this._primaryCursorPosition,t,e,pt?0:1,this._lineHeight):this._renderInsideEditor(this._primaryCursorPosition,t,e,pt?0:1,pt?0:1)}}else this._renderAtTopLeft()},t.prototype._renderInsideEditor=function(e,t,n,i,r){this._lastRenderPosition=e;var o=this.textArea,s=this.textAreaCover;l["a"].applyFontInfo(o,this._fontInfo),o.setTop(t),o.setLeft(n),o.setWidth(i),o.setHeight(r),s.setTop(0),s.setLeft(0),s.setWidth(0),s.setHeight(0)},t.prototype._renderAtTopLeft=function(){this._lastRenderPosition=null;var e=this.textArea,t=this.textAreaCover;if(l["a"].applyFontInfo(e,this._fontInfo),e.setTop(0),e.setLeft(0),t.setTop(0),t.setLeft(0),pt)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);var n=this._context.configuration.options;n.get(40)?t.setClassName("monaco-editor-background textAreaCover "+Ve.OUTER_CLASS_NAME):0!==n.get(50).renderType?t.setClassName("monaco-editor-background textAreaCover "+je.CLASS_NAME):t.setClassName("monaco-editor-background textAreaCover")},t}(k);function At(e,t){var n=document.createElement("canvas"),i=n.getContext("2d");i.font=mt(t);var r=i.measureText(e);return g["h"]?r.width+2:r.width}function mt(e){return vt("normal",e.fontWeight,e.fontSize,e.lineHeight,e.fontFamily)}function vt(e,t,n,i,r){return e+" normal "+t+" "+n+"px / "+i+"px "+r}var _t=n("1YUG"),yt=function(){function e(e,t,n,i){this.configuration=e,this.viewModel=t,this.outgoingEvents=n,this.commandDelegate=i}return e.prototype._execMouseCommand=function(e,t){t.source="mouse",this.commandDelegate.executeEditorCommand(e,t)},e.prototype.paste=function(e,t,n,i,r){this.commandDelegate.paste(e,t,n,i,r)},e.prototype.type=function(e,t){this.commandDelegate.type(e,t)},e.prototype.replacePreviousChar=function(e,t,n){this.commandDelegate.replacePreviousChar(e,t,n)},e.prototype.compositionStart=function(e){this.commandDelegate.compositionStart(e)},e.prototype.compositionEnd=function(e){this.commandDelegate.compositionEnd(e)},e.prototype.cut=function(e){this.commandDelegate.cut(e)},e.prototype.setSelection=function(e,t){this.commandDelegate.executeEditorCommand(_t["CoreNavigationCommands"].SetSelection,{source:e,selection:t})},e.prototype._validateViewColumn=function(e){var t=this.viewModel.getLineMinColumn(e.lineNumber);return e.column<t?new re["a"](e.lineNumber,t):e},e.prototype._hasMulticursorModifier=function(e){switch(this.configuration.options.get(59)){case"altKey":return e.altKey;case"ctrlKey":return e.ctrlKey;case"metaKey":return e.metaKey}return!1},e.prototype._hasNonMulticursorModifier=function(e){switch(this.configuration.options.get(59)){case"altKey":return e.ctrlKey||e.metaKey;case"ctrlKey":return e.altKey||e.metaKey;case"metaKey":return e.ctrlKey||e.altKey}return!1},e.prototype.dispatchMouse=function(e){var t=f["d"]&&this.configuration.options.get(81);e.middleButton&&!t?this._columnSelect(e.position,e.mouseColumn,e.inSelectionMode):e.startedOnLineNumbers?this._hasMulticursorModifier(e)?e.inSelectionMode?this._lastCursorLineSelect(e.position):this._createCursor(e.position,!0):e.inSelectionMode?this._lineSelectDrag(e.position):this._lineSelect(e.position):e.mouseDownCount>=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?this._columnSelect(e.position,e.mouseColumn,!0):this._moveToSelect(e.position):this.moveTo(e.position)},e.prototype._usualArgs=function(e){return e=this._validateViewColumn(e),{position:this._convertViewToModelPosition(e),viewPosition:e}},e.prototype.moveTo=function(e){this._execMouseCommand(_t["CoreNavigationCommands"].MoveTo,this._usualArgs(e))},e.prototype._moveToSelect=function(e){this._execMouseCommand(_t["CoreNavigationCommands"].MoveToSelect,this._usualArgs(e))},e.prototype._columnSelect=function(e,t,n){e=this._validateViewColumn(e),this._execMouseCommand(_t["CoreNavigationCommands"].ColumnSelect,{position:this._convertViewToModelPosition(e),viewPosition:e,mouseColumn:t,doColumnSelect:n})},e.prototype._createCursor=function(e,t){e=this._validateViewColumn(e),this._execMouseCommand(_t["CoreNavigationCommands"].CreateCursor,{position:this._convertViewToModelPosition(e),viewPosition:e,wholeLine:t})},e.prototype._lastCursorMoveToSelect=function(e){this._execMouseCommand(_t["CoreNavigationCommands"].LastCursorMoveToSelect,this._usualArgs(e))},e.prototype._wordSelect=function(e){this._execMouseCommand(_t["CoreNavigationCommands"].WordSelect,this._usualArgs(e))},e.prototype._wordSelectDrag=function(e){this._execMouseCommand(_t["CoreNavigationCommands"].WordSelectDrag,this._usualArgs(e))},e.prototype._lastCursorWordSelect=function(e){this._execMouseCommand(_t["CoreNavigationCommands"].LastCursorWordSelect,this._usualArgs(e))},e.prototype._lineSelect=function(e){this._execMouseCommand(_t["CoreNavigationCommands"].LineSelect,this._usualArgs(e))},e.prototype._lineSelectDrag=function(e){this._execMouseCommand(_t["CoreNavigationCommands"].LineSelectDrag,this._usualArgs(e))},e.prototype._lastCursorLineSelect=function(e){this._execMouseCommand(_t["CoreNavigationCommands"].LastCursorLineSelect,this._usualArgs(e))},e.prototype._lastCursorLineSelectDrag=function(e){this._execMouseCommand(_t["CoreNavigationCommands"].LastCursorLineSelectDrag,this._usualArgs(e))},e.prototype._selectAll=function(){this._execMouseCommand(_t["CoreNavigationCommands"].SelectAll,{})},e.prototype._convertViewToModelPosition=function(e){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(e)},e.prototype.emitKeyDown=function(e){this.outgoingEvents.emitKeyDown(e)},e.prototype.emitKeyUp=function(e){this.outgoingEvents.emitKeyUp(e)},e.prototype.emitContextMenu=function(e){this.outgoingEvents.emitContextMenu(e)},e.prototype.emitMouseMove=function(e){this.outgoingEvents.emitMouseMove(e)},e.prototype.emitMouseLeave=function(e){this.outgoingEvents.emitMouseLeave(e)},e.prototype.emitMouseUp=function(e){this.outgoingEvents.emitMouseUp(e)},e.prototype.emitMouseDown=function(e){this.outgoingEvents.emitMouseDown(e)},e.prototype.emitMouseDrag=function(e){this.outgoingEvents.emitMouseDrag(e)},e.prototype.emitMouseDrop=function(e){this.outgoingEvents.emitMouseDrop(e)},e.prototype.emitMouseWheel=function(e){this.outgoingEvents.emitMouseWheel(e)},e}(),bt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),wt=function(e){function t(t){var n=e.call(this)||this;return n.onDidContentSizeChange=null,n.onDidScroll=null,n.onDidGainFocus=null,n.onDidLoseFocus=null,n.onKeyDown=null,n.onKeyUp=null,n.onContextMenu=null,n.onMouseMove=null,n.onMouseLeave=null,n.onMouseUp=null,n.onMouseDown=null,n.onMouseDrag=null,n.onMouseDrop=null,n.onMouseWheel=null,n._viewModel=t,n}return bt(t,e),t.prototype.emitContentSizeChange=function(e){this.onDidContentSizeChange&&this.onDidContentSizeChange(e)},t.prototype.emitScrollChanged=function(e){this.onDidScroll&&this.onDidScroll(e)},t.prototype.emitViewFocusGained=function(){this.onDidGainFocus&&this.onDidGainFocus(void 0)},t.prototype.emitViewFocusLost=function(){this.onDidLoseFocus&&this.onDidLoseFocus(void 0)},t.prototype.emitKeyDown=function(e){this.onKeyDown&&this.onKeyDown(e)},t.prototype.emitKeyUp=function(e){this.onKeyUp&&this.onKeyUp(e)},t.prototype.emitContextMenu=function(e){this.onContextMenu&&this.onContextMenu(this._convertViewToModelMouseEvent(e))},t.prototype.emitMouseMove=function(e){this.onMouseMove&&this.onMouseMove(this._convertViewToModelMouseEvent(e))},t.prototype.emitMouseLeave=function(e){this.onMouseLeave&&this.onMouseLeave(this._convertViewToModelMouseEvent(e))},t.prototype.emitMouseUp=function(e){this.onMouseUp&&this.onMouseUp(this._convertViewToModelMouseEvent(e))},t.prototype.emitMouseDown=function(e){this.onMouseDown&&this.onMouseDown(this._convertViewToModelMouseEvent(e))},t.prototype.emitMouseDrag=function(e){this.onMouseDrag&&this.onMouseDrag(this._convertViewToModelMouseEvent(e))},t.prototype.emitMouseDrop=function(e){this.onMouseDrop&&this.onMouseDrop(this._convertViewToModelMouseEvent(e))},t.prototype.emitMouseWheel=function(e){this.onMouseWheel&&this.onMouseWheel(e)},t.prototype._convertViewToModelMouseEvent=function(e){return e.target?{event:e.event,target:this._convertViewToModelMouseTarget(e.target)}:e},t.prototype._convertViewToModelMouseTarget=function(e){return t.convertViewToModelMouseTarget(e,this._viewModel.coordinatesConverter)},t.convertViewToModelMouseTarget=function(e,t){return new Ct(e.element,e.type,e.mouseColumn,e.position?t.convertViewPositionToModelPosition(e.position):null,e.range?t.convertViewRangeToModelRange(e.range):null,e.detail)},t}(a["a"]),Ct=function(){function e(e,t,n,i,r,o){this.element=e,this.type=t,this.mouseColumn=n,this.position=i,this.range=r,this.detail=o}return e.prototype.toString=function(){return le.toString(this)},e}(),St=n("erNZ"),Nt=function(){function e(e){this._createLine=e,this._set(1,[])}return e.prototype.flush=function(){this._set(1,[])},e.prototype._set=function(e,t){this._lines=t,this._rendLineNumberStart=e},e.prototype._get=function(){return{rendLineNumberStart:this._rendLineNumberStart,lines:this._lines}},e.prototype.getStartLineNumber=function(){return this._rendLineNumberStart},e.prototype.getEndLineNumber=function(){return this._rendLineNumberStart+this._lines.length-1},e.prototype.getCount=function(){return this._lines.length},e.prototype.getLine=function(e){var t=e-this._rendLineNumberStart;if(t<0||t>=this._lines.length)throw new Error("Illegal value for lineNumber");return this._lines[t]},e.prototype.onLinesDeleted=function(e,t){if(0===this.getCount())return null;var n=this.getStartLineNumber(),i=this.getEndLineNumber();if(t<n){var r=t-e+1;return this._rendLineNumberStart-=r,null}if(e>i)return null;for(var o=0,s=0,a=n;a<=i;a++){var u=a-this._rendLineNumberStart;e<=a&&a<=t&&(0===s?(o=u,s=1):s++)}if(e<n){var l=0;l=t<n?t-e+1:n-e,this._rendLineNumberStart-=l}var c=this._lines.splice(o,s);return c},e.prototype.onLinesChanged=function(e,t){if(0===this.getCount())return!1;for(var n=this.getStartLineNumber(),i=this.getEndLineNumber(),r=!1,o=e;o<=t;o++)o>=n&&o<=i&&(this._lines[o-this._rendLineNumberStart].onContentChanged(),r=!0);return r},e.prototype.onLinesInserted=function(e,t){if(0===this.getCount())return null;var n=t-e+1,i=this.getStartLineNumber(),r=this.getEndLineNumber();if(e<=i)return this._rendLineNumberStart+=n,null;if(e>r)return null;if(n+e>r){var o=this._lines.splice(e-this._rendLineNumberStart,r-e+1);return o}for(var s=[],a=0;a<n;a++)s[a]=this._createLine();var u=e-this._rendLineNumberStart,l=this._lines.slice(0,u),c=this._lines.slice(u,this._lines.length-n),d=this._lines.slice(this._lines.length-n,this._lines.length);return this._lines=l.concat(s).concat(c),d},e.prototype.onTokensChanged=function(e){if(0===this.getCount())return!1;for(var t=this.getStartLineNumber(),n=this.getEndLineNumber(),i=!1,r=0,o=e.length;r<o;r++){var s=e[r];if(!(s.toLineNumber<t||s.fromLineNumber>n))for(var a=Math.max(t,s.fromLineNumber),u=Math.min(n,s.toLineNumber),l=a;l<=u;l++){var c=l-this._rendLineNumberStart;this._lines[c].onTokensChanged(),i=!0}}return i},e}(),Lt=function(){function e(e){var t=this;this._host=e,this.domNode=this._createDomNode(),this._linesCollection=new Nt((function(){return t._host.createVisibleLine()}))}return e.prototype._createDomNode=function(){var e=Object(h["b"])(document.createElement("div"));return e.setClassName("view-layer"),e.setPosition("absolute"),e.domNode.setAttribute("role","presentation"),e.domNode.setAttribute("aria-hidden","true"),e},e.prototype.onConfigurationChanged=function(e){return!!e.hasChanged(107)},e.prototype.onFlushed=function(e){return this._linesCollection.flush(),!0},e.prototype.onLinesChanged=function(e){return this._linesCollection.onLinesChanged(e.fromLineNumber,e.toLineNumber)},e.prototype.onLinesDeleted=function(e){var t=this._linesCollection.onLinesDeleted(e.fromLineNumber,e.toLineNumber);if(t)for(var n=0,i=t.length;n<i;n++){var r=t[n].getDomNode();r&&this.domNode.domNode.removeChild(r)}return!0},e.prototype.onLinesInserted=function(e){var t=this._linesCollection.onLinesInserted(e.fromLineNumber,e.toLineNumber);if(t)for(var n=0,i=t.length;n<i;n++){var r=t[n].getDomNode();r&&this.domNode.domNode.removeChild(r)}return!0},e.prototype.onScrollChanged=function(e){return e.scrollTopChanged},e.prototype.onTokensChanged=function(e){return this._linesCollection.onTokensChanged(e.ranges)},e.prototype.onZonesChanged=function(e){return!0},e.prototype.getStartLineNumber=function(){return this._linesCollection.getStartLineNumber()},e.prototype.getEndLineNumber=function(){return this._linesCollection.getEndLineNumber()},e.prototype.getVisibleLine=function(e){return this._linesCollection.getLine(e)},e.prototype.renderLines=function(e){var t=this._linesCollection._get(),n=new Et(this.domNode.domNode,this._host,e),i={rendLineNumberStart:t.rendLineNumberStart,lines:t.lines,linesLength:t.lines.length},r=n.render(i,e.startLineNumber,e.endLineNumber,e.relativeVerticalOffset);this._linesCollection._set(r.rendLineNumberStart,r.lines)},e}(),Et=function(){function e(e,t,n){this.domNode=e,this.host=t,this.viewportData=n}return e.prototype.render=function(e,t,n,i){var r={rendLineNumberStart:e.rendLineNumberStart,lines:e.lines.slice(0),linesLength:e.linesLength};if(r.rendLineNumberStart+r.linesLength-1<t||n<r.rendLineNumberStart){r.rendLineNumberStart=t,r.linesLength=n-t+1,r.lines=[];for(var o=t;o<=n;o++)r.lines[o-t]=this.host.createVisibleLine();return this._finishRendering(r,!0,i),r}if(this._renderUntouchedLines(r,Math.max(t-r.rendLineNumberStart,0),Math.min(n-r.rendLineNumberStart,r.linesLength-1),i,t),r.rendLineNumberStart>t){var s=t,a=Math.min(n,r.rendLineNumberStart-1);s<=a&&(this._insertLinesBefore(r,s,a,i,t),r.linesLength+=a-s+1)}else if(r.rendLineNumberStart<t){var u=Math.min(r.linesLength,t-r.rendLineNumberStart);u>0&&(this._removeLinesBefore(r,u),r.linesLength-=u)}if(r.rendLineNumberStart=t,r.rendLineNumberStart+r.linesLength-1<n){s=r.rendLineNumberStart+r.linesLength,a=n;s<=a&&(this._insertLinesAfter(r,s,a,i,t),r.linesLength+=a-s+1)}else if(r.rendLineNumberStart+r.linesLength-1>n){s=Math.max(0,n-r.rendLineNumberStart+1),a=r.linesLength-1,u=a-s+1;u>0&&(this._removeLinesAfter(r,u),r.linesLength-=u)}return this._finishRendering(r,!1,i),r},e.prototype._renderUntouchedLines=function(e,t,n,i,r){for(var o=e.rendLineNumberStart,s=e.lines,a=t;a<=n;a++){var u=o+a;s[a].layoutLine(u,i[u-r])}},e.prototype._insertLinesBefore=function(e,t,n,i,r){for(var o=[],s=0,a=t;a<=n;a++)o[s++]=this.host.createVisibleLine();e.lines=o.concat(e.lines)},e.prototype._removeLinesBefore=function(e,t){for(var n=0;n<t;n++){var i=e.lines[n].getDomNode();i&&this.domNode.removeChild(i)}e.lines.splice(0,t)},e.prototype._insertLinesAfter=function(e,t,n,i,r){for(var o=[],s=0,a=t;a<=n;a++)o[s++]=this.host.createVisibleLine();e.lines=e.lines.concat(o)},e.prototype._removeLinesAfter=function(e,t){for(var n=e.linesLength-t,i=0;i<t;i++){var r=e.lines[n+i].getDomNode();r&&this.domNode.removeChild(r)}e.lines.splice(n,t)},e.prototype._finishRenderingNewLines=function(e,t,n,i){var r=this.domNode.lastChild;t||!r?this.domNode.innerHTML=n:r.insertAdjacentHTML("afterend",n);for(var o=this.domNode.lastChild,s=e.linesLength-1;s>=0;s--){var a=e.lines[s];i[s]&&(a.setDomNode(o),o=o.previousSibling)}},e.prototype._finishRenderingInvalidLines=function(e,t,n){var i=document.createElement("div");i.innerHTML=t;for(var r=0;r<e.linesLength;r++){var o=e.lines[r];if(n[r]){var s=i.firstChild,a=o.getDomNode();a.parentNode.replaceChild(s,a),o.setDomNode(s)}}},e.prototype._finishRendering=function(t,n,i){var r=e._sb,o=t.linesLength,s=t.lines,a=t.rendLineNumberStart,u=[];r.reset();for(var l=!1,c=0;c<o;c++){var d=s[c];u[c]=!1;var h=d.getDomNode();if(!h){var f=d.renderLine(c+a,i[c],this.viewportData,r);f&&(u[c]=!0,l=!0)}}l&&this._finishRenderingNewLines(t,n,r.build(),u),r.reset();var p=!1,g=[];for(c=0;c<o;c++){d=s[c];if(g[c]=!1,!u[c]){f=d.renderLine(c+a,i[c],this.viewportData,r);f&&(g[c]=!0,p=!0)}}p&&this._finishRenderingInvalidLines(t,r.build(),g)},e._sb=Object(St["a"])(1e5),e}(),xt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Ot=function(e){function t(t){var n=e.call(this,t)||this;return n._visibleLines=new Lt(n),n.domNode=n._visibleLines.domNode,n._dynamicOverlays=[],n._isFocused=!1,n.domNode.setClassName("view-overlays"),n}return xt(t,e),t.prototype.shouldRender=function(){if(e.prototype.shouldRender.call(this))return!0;for(var t=0,n=this._dynamicOverlays.length;t<n;t++){var i=this._dynamicOverlays[t];if(i.shouldRender())return!0}return!1},t.prototype.dispose=function(){e.prototype.dispose.call(this);for(var t=0,n=this._dynamicOverlays.length;t<n;t++){var i=this._dynamicOverlays[t];i.dispose()}this._dynamicOverlays=[]},t.prototype.getDomNode=function(){return this.domNode},t.prototype.createVisibleLine=function(){return new Bt(this._context.configuration,this._dynamicOverlays)},t.prototype.addDynamicOverlay=function(e){this._dynamicOverlays.push(e)},t.prototype.onConfigurationChanged=function(e){this._visibleLines.onConfigurationChanged(e);for(var t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber(),i=t;i<=n;i++){var r=this._visibleLines.getVisibleLine(i);r.onConfigurationChanged(e)}return!0},t.prototype.onFlushed=function(e){return this._visibleLines.onFlushed(e)},t.prototype.onFocusChanged=function(e){return this._isFocused=e.isFocused,!0},t.prototype.onLinesChanged=function(e){return this._visibleLines.onLinesChanged(e)},t.prototype.onLinesDeleted=function(e){return this._visibleLines.onLinesDeleted(e)},t.prototype.onLinesInserted=function(e){return this._visibleLines.onLinesInserted(e)},t.prototype.onScrollChanged=function(e){return this._visibleLines.onScrollChanged(e)||!0},t.prototype.onTokensChanged=function(e){return this._visibleLines.onTokensChanged(e)},t.prototype.onZonesChanged=function(e){return this._visibleLines.onZonesChanged(e)},t.prototype.prepareRender=function(e){for(var t=this._dynamicOverlays.filter((function(e){return e.shouldRender()})),n=0,i=t.length;n<i;n++){var r=t[n];r.prepareRender(e),r.onDidRender()}},t.prototype.render=function(e){this._viewOverlaysRender(e),this.domNode.toggleClassName("focused",this._isFocused)},t.prototype._viewOverlaysRender=function(e){this._visibleLines.renderLines(e.viewportData)},t}(k),Bt=function(){function e(e,t){this._configuration=e,this._lineHeight=this._configuration.options.get(49),this._dynamicOverlays=t,this._domNode=null,this._renderedContent=null}return e.prototype.getDomNode=function(){return this._domNode?this._domNode.domNode:null},e.prototype.setDomNode=function(e){this._domNode=Object(h["b"])(e)},e.prototype.onContentChanged=function(){},e.prototype.onTokensChanged=function(){},e.prototype.onConfigurationChanged=function(e){this._lineHeight=this._configuration.options.get(49)},e.prototype.renderLine=function(e,t,n,i){for(var r="",o=0,s=this._dynamicOverlays.length;o<s;o++){var a=this._dynamicOverlays[o];r+=a.render(n.startLineNumber,e)}return this._renderedContent!==r&&(this._renderedContent=r,i.appendASCIIString('<div style="position:absolute;top:'),i.appendASCIIString(String(t)),i.appendASCIIString("px;width:100%;height:"),i.appendASCIIString(String(this._lineHeight)),i.appendASCIIString('px;">'),i.appendASCIIString(r),i.appendASCIIString("</div>"),!0)},e.prototype.layoutLine=function(e,t){this._domNode&&(this._domNode.setTop(t),this._domNode.setHeight(this._lineHeight))},e}(),kt=function(e){function t(t){var n=e.call(this,t)||this,i=n._context.configuration.options,r=i.get(107);return n._contentWidth=r.contentWidth,n.domNode.setHeight(0),n}return xt(t,e),t.prototype.onConfigurationChanged=function(t){var n=this._context.configuration.options,i=n.get(107);return this._contentWidth=i.contentWidth,e.prototype.onConfigurationChanged.call(this,t)||!0},t.prototype.onScrollChanged=function(t){return e.prototype.onScrollChanged.call(this,t)||t.scrollWidthChanged},t.prototype._viewOverlaysRender=function(t){e.prototype._viewOverlaysRender.call(this,t),this.domNode.setWidth(Math.max(t.scrollWidth,this._contentWidth))},t}(Ot),Dt=function(e){function t(t){var n=e.call(this,t)||this,i=n._context.configuration.options,r=i.get(107);return n._contentLeft=r.contentLeft,n.domNode.setClassName("margin-view-overlays"),n.domNode.setWidth(1),l["a"].applyFontInfo(n.domNode,i.get(34)),n}return xt(t,e),t.prototype.onConfigurationChanged=function(t){var n=this._context.configuration.options;l["a"].applyFontInfo(this.domNode,n.get(34));var i=n.get(107);return this._contentLeft=i.contentLeft,e.prototype.onConfigurationChanged.call(this,t)||!0},t.prototype.onScrollChanged=function(t){return e.prototype.onScrollChanged.call(this,t)||t.scrollHeightChanged},t.prototype._viewOverlaysRender=function(t){e.prototype._viewOverlaysRender.call(this,t);var n=Math.min(t.scrollHeight,1e6);this.domNode.setHeight(n),this.domNode.setWidth(this._contentLeft)},t}(Ot),It=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Mt=function(){function e(e,t){this.top=e,this.left=t}return e}(),Ft=function(e){function t(t,n){var i=e.call(this,t)||this;return i._viewDomNode=n,i._widgets={},i.domNode=Object(h["b"])(document.createElement("div")),D.write(i.domNode,1),i.domNode.setClassName("contentWidgets"),i.domNode.setPosition("absolute"),i.domNode.setTop(0),i.overflowingContentWidgetsDomNode=Object(h["b"])(document.createElement("div")),D.write(i.overflowingContentWidgetsDomNode,2),i.overflowingContentWidgetsDomNode.setClassName("overflowingContentWidgets"),i}return It(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._widgets={}},t.prototype.onConfigurationChanged=function(e){for(var t=Object.keys(this._widgets),n=0,i=t;n<i.length;n++){var r=i[n];this._widgets[r].onConfigurationChanged(e)}return!0},t.prototype.onDecorationsChanged=function(e){return!0},t.prototype.onFlushed=function(e){return!0},t.prototype.onLineMappingChanged=function(e){for(var t=Object.keys(this._widgets),n=0,i=t;n<i.length;n++){var r=i[n];this._widgets[r].onLineMappingChanged(e)}return!0},t.prototype.onLinesChanged=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return!0},t.prototype.onZonesChanged=function(e){return!0},t.prototype.addWidget=function(e){var t=new Tt(this._context,this._viewDomNode,e);this._widgets[t.id]=t,t.allowEditorOverflow?this.overflowingContentWidgetsDomNode.appendChild(t.domNode):this.domNode.appendChild(t.domNode),this.setShouldRender()},t.prototype.setWidgetPosition=function(e,t,n){var i=this._widgets[e.getId()];i.setPosition(t,n),this.setShouldRender()},t.prototype.removeWidget=function(e){var t=e.getId();if(this._widgets.hasOwnProperty(t)){var n=this._widgets[t];delete this._widgets[t];var i=n.domNode.domNode;i.parentNode.removeChild(i),i.removeAttribute("monaco-visible-content-widget"),this.setShouldRender()}},t.prototype.shouldSuppressMouseDownOnWidget=function(e){return!!this._widgets.hasOwnProperty(e)&&this._widgets[e].suppressMouseDown},t.prototype.onBeforeRender=function(e){for(var t=Object.keys(this._widgets),n=0,i=t;n<i.length;n++){var r=i[n];this._widgets[r].onBeforeRender(e)}},t.prototype.prepareRender=function(e){for(var t=Object.keys(this._widgets),n=0,i=t;n<i.length;n++){var r=i[n];this._widgets[r].prepareRender(e)}},t.prototype.render=function(e){for(var t=Object.keys(this._widgets),n=0,i=t;n<i.length;n++){var r=i[n];this._widgets[r].render(e)}},t}(k),Tt=function(){function e(e,t,n){this._context=e,this._viewDomNode=t,this._actual=n,this.domNode=Object(h["b"])(this._actual.getDomNode()),this.id=this._actual.getId(),this.allowEditorOverflow=this._actual.allowEditorOverflow||!1,this.suppressMouseDown=this._actual.suppressMouseDown||!1;var i=this._context.configuration.options,r=i.get(107);this._fixedOverflowWidgets=i.get(29),this._contentWidth=r.contentWidth,this._contentLeft=r.contentLeft,this._lineHeight=i.get(49),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)}return e.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options;if(this._lineHeight=t.get(49),e.hasChanged(107)){var n=t.get(107);this._contentLeft=n.contentLeft,this._contentWidth=n.contentWidth,this._maxWidth=this._getMaxWidth()}},e.prototype.onLineMappingChanged=function(e){this._setPosition(this._range)},e.prototype._setPosition=function(e){if(this._range=e,this._viewRange=null,this._range){var t=this._context.model.validateModelRange(this._range);(this._context.model.coordinatesConverter.modelPositionIsVisible(t.getStartPosition())||this._context.model.coordinatesConverter.modelPositionIsVisible(t.getEndPosition()))&&(this._viewRange=this._context.model.coordinatesConverter.convertModelRangeToViewRange(t))}},e.prototype._getMaxWidth=function(){return this.allowEditorOverflow?window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth:this._contentWidth},e.prototype.setPosition=function(e,t){this._setPosition(e),this._preference=t,this._cachedDomNodeClientWidth=-1,this._cachedDomNodeClientHeight=-1},e.prototype._layoutBoxInViewport=function(e,t,n,i,r){var o=e.top,s=o,a=t.top+this._lineHeight,u=r.viewportHeight-a,l=o-i,c=s>=i,d=a,h=u>=i,f=e.left,p=t.left;return f+n>r.scrollLeft+r.viewportWidth&&(f=r.scrollLeft+r.viewportWidth-n),p+n>r.scrollLeft+r.viewportWidth&&(p=r.scrollLeft+r.viewportWidth-n),f<r.scrollLeft&&(f=r.scrollLeft),p<r.scrollLeft&&(p=r.scrollLeft),{fitsAbove:c,aboveTop:l,aboveLeft:f,fitsBelow:h,belowTop:d,belowLeft:p}},e.prototype._layoutHorizontalSegmentInPage=function(e,t,n,i){var o=Math.max(0,t.left-i),s=Math.min(t.left+t.width+i,e.width),a=t.left+n-r["d"].scrollX;if(a+i>s){var u=a-(s-i);a-=u,n-=u}if(a<o){u=a-o;a-=u,n-=u}return[n,a]},e.prototype._layoutBoxInPage=function(e,t,n,i,o){var s=e.top-i,a=t.top+this._lineHeight,u=r["B"](this._viewDomNode.domNode),l=u.top+s-r["d"].scrollY,c=u.top+a-r["d"].scrollY,d=r["x"](document.body),h=this._layoutHorizontalSegmentInPage(d,u,e.left-o.scrollLeft+this._contentLeft,n),f=h[0],p=h[1],g=this._layoutHorizontalSegmentInPage(d,u,t.left-o.scrollLeft+this._contentLeft,n),A=g[0],m=g[1],v=22,_=22,y=l>=v,b=c+i<=d.height-_;return this._fixedOverflowWidgets?{fitsAbove:y,aboveTop:Math.max(l,v),aboveLeft:p,fitsBelow:b,belowTop:c,belowLeft:m}:{fitsAbove:y,aboveTop:Math.max(s,v),aboveLeft:f,fitsBelow:b,belowTop:a,belowLeft:A}},e.prototype._prepareRenderWidgetAtExactPositionOverflowing=function(e){return new Mt(e.top,e.left+this._contentLeft)},e.prototype._getTopAndBottomLeft=function(e){if(!this._viewRange)return[null,null];var t=e.linesVisibleRangesForRange(this._viewRange,!1);if(!t||0===t.length)return[null,null];for(var n=t[0],i=t[0],r=0,o=t;r<o.length;r++){var s=o[r];s.lineNumber<n.lineNumber&&(n=s),s.lineNumber>i.lineNumber&&(i=s)}for(var a=1073741824,u=0,l=n.ranges;u<l.length;u++){var c=l[u];c.left<a&&(a=c.left)}for(var d=1073741824,h=0,f=i.ranges;h<f.length;h++){c=f[h];c.left<d&&(d=c.left)}var p=e.getVerticalOffsetForLineNumber(n.lineNumber)-e.scrollTop,g=new Mt(p,a),A=e.getVerticalOffsetForLineNumber(i.lineNumber)-e.scrollTop,m=new Mt(A,d);return[g,m]},e.prototype._prepareRenderWidget=function(e){var t,n=this._getTopAndBottomLeft(e),i=n[0],r=n[1];if(!i||!r)return null;if(-1===this._cachedDomNodeClientWidth||-1===this._cachedDomNodeClientHeight){var o=this.domNode.domNode;this._cachedDomNodeClientWidth=o.clientWidth,this._cachedDomNodeClientHeight=o.clientHeight}if(t=this.allowEditorOverflow?this._layoutBoxInPage(i,r,this._cachedDomNodeClientWidth,this._cachedDomNodeClientHeight,e):this._layoutBoxInViewport(i,r,this._cachedDomNodeClientWidth,this._cachedDomNodeClientHeight,e),this._preference)for(var s=1;s<=2;s++)for(var a=0,u=this._preference;a<u.length;a++){var l=u[a];if(1===l){if(!t)return null;if(2===s||t.fitsAbove)return new Mt(t.aboveTop,t.aboveLeft)}else{if(2!==l)return this.allowEditorOverflow?this._prepareRenderWidgetAtExactPositionOverflowing(i):i;if(!t)return null;if(2===s||t.fitsBelow)return new Mt(t.belowTop,t.belowLeft)}}return null},e.prototype.onBeforeRender=function(e){this._viewRange&&this._preference&&(this._viewRange.endLineNumber<e.startLineNumber||this._viewRange.startLineNumber>e.endLineNumber||this.domNode.setMaxWidth(this._maxWidth))},e.prototype.prepareRender=function(e){this._renderData=this._prepareRenderWidget(e)},e.prototype.render=function(e){this._renderData?(this.allowEditorOverflow?(this.domNode.setTop(this._renderData.top),this.domNode.setLeft(this._renderData.left)):(this.domNode.setTop(this._renderData.top+e.scrollTop-e.bigNumbersDelta),this.domNode.setLeft(this._renderData.left)),this._isVisible||(this.domNode.setVisibility("inherit"),this.domNode.setAttribute("monaco-visible-content-widget","true"),this._isVisible=!0)):this._isVisible&&(this.domNode.removeAttribute("monaco-visible-content-widget"),this._isVisible=!1,this.domNode.setVisibility("hidden"))},e}(),Rt=(n("kw+w"),n("6OMU")),Pt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Ut=!0,Ht=function(e){function t(t){var n=e.call(this)||this;n._context=t;var i=n._context.configuration.options,r=i.get(107);return n._lineHeight=i.get(49),n._renderLineHighlight=i.get(72),n._contentLeft=r.contentLeft,n._contentWidth=r.contentWidth,n._selectionIsEmpty=!0,n._cursorLineNumbers=[],n._selections=[],n._renderData=null,n._context.addEventHandler(n),n}return Pt(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),e.prototype.dispose.call(this)},t.prototype._readFromSelections=function(){var e=!1,t=Ut?this._selections.slice(0,1):this._selections,n=t.map((function(e){return e.positionLineNumber}));n.sort((function(e,t){return e-t})),Rt["g"](this._cursorLineNumbers,n)||(this._cursorLineNumbers=n,e=!0);var i=t.every((function(e){return e.isEmpty()}));return this._selectionIsEmpty!==i&&(this._selectionIsEmpty=i,e=!0),e},t.prototype.onThemeChanged=function(e){return this._readFromSelections()},t.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options,n=t.get(107);return this._lineHeight=t.get(49),this._renderLineHighlight=t.get(72),this._contentLeft=n.contentLeft,this._contentWidth=n.contentWidth,!0},t.prototype.onCursorStateChanged=function(e){return this._selections=e.selections,this._readFromSelections()},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return e.scrollWidthChanged||e.scrollTopChanged},t.prototype.onZonesChanged=function(e){return!0},t.prototype.prepareRender=function(e){if(this._shouldRenderThis()){for(var t=this._renderOne(e),n=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber,r=this._cursorLineNumbers.length,o=0,s=[],a=n;a<=i;a++){var u=a-n;while(o<r&&this._cursorLineNumbers[o]<a)o++;o<r&&this._cursorLineNumbers[o]===a?s[u]=t:s[u]=""}this._renderData=s}else this._renderData=null},t.prototype.render=function(e,t){if(!this._renderData)return"";var n=t-e;return n>=this._renderData.length?"":this._renderData[n]},t}(Pe),jt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Pt(t,e),t.prototype._renderOne=function(e){var t="current-line"+(this._shouldRenderOther()?" current-line-both":"");return'<div class="'+t+'" style="width:'+Math.max(e.scrollWidth,this._contentWidth)+"px; height:"+this._lineHeight+'px;"></div>'},t.prototype._shouldRenderThis=function(){return("line"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&this._selectionIsEmpty},t.prototype._shouldRenderOther=function(){return"gutter"===this._renderLineHighlight||"all"===this._renderLineHighlight},t}(Ht),Qt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Pt(t,e),t.prototype._renderOne=function(e){var t="current-line current-line-margin"+(this._shouldRenderOther()?" current-line-margin-both":"");return'<div class="'+t+'" style="width:'+this._contentLeft+"px; height:"+this._lineHeight+'px;"></div>'},t.prototype._shouldRenderThis=function(){return"gutter"===this._renderLineHighlight||"all"===this._renderLineHighlight},t.prototype._shouldRenderOther=function(){return("line"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&this._selectionIsEmpty},t}(Ht);Object(W["e"])((function(e,t){Ut=!1;var n=e.getColor(Ue["h"]);if(n&&(t.addRule(".monaco-editor .view-overlays .current-line { background-color: "+n+"; }"),t.addRule(".monaco-editor .margin-view-overlays .current-line-margin { background-color: "+n+"; border: none; }")),!n||n.isTransparent()||e.defines(Ue["i"])){var i=e.getColor(Ue["i"]);i&&(Ut=!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; }")))}}));n("Vtyv");var Vt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Wt=function(e){function t(t){var n=e.call(this)||this;n._context=t;var i=n._context.configuration.options;return n._lineHeight=i.get(49),n._typicalHalfwidthCharacterWidth=i.get(34).typicalHalfwidthCharacterWidth,n._renderResult=null,n._context.addEventHandler(n),n}return Vt(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options;return this._lineHeight=t.get(49),this._typicalHalfwidthCharacterWidth=t.get(34).typicalHalfwidthCharacterWidth,!0},t.prototype.onDecorationsChanged=function(e){return!0},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesChanged=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return e.scrollTopChanged||e.scrollWidthChanged},t.prototype.onZonesChanged=function(e){return!0},t.prototype.prepareRender=function(e){for(var t=e.getDecorationsInViewport(),n=[],i=0,r=0,o=t.length;r<o;r++){var s=t[r];s.options.className&&(n[i++]=s)}n=n.sort((function(e,t){if(e.options.zIndex<t.options.zIndex)return-1;if(e.options.zIndex>t.options.zIndex)return 1;var n=e.options.className,i=t.options.className;return n<i?-1:n>i?1:oe["a"].compareRangesUsingStarts(e.range,t.range)}));for(var a=e.visibleRange.startLineNumber,u=e.visibleRange.endLineNumber,l=[],c=a;c<=u;c++){var d=c-a;l[d]=""}this._renderWholeLineDecorations(e,n,l),this._renderNormalDecorations(e,n,l),this._renderResult=l},t.prototype._renderWholeLineDecorations=function(e,t,n){for(var i=String(this._lineHeight),r=e.visibleRange.startLineNumber,o=e.visibleRange.endLineNumber,s=0,a=t.length;s<a;s++){var u=t[s];if(u.options.isWholeLine)for(var l='<div class="cdr '+u.options.className+'" style="left:0;width:100%;height:'+i+'px;"></div>',c=Math.max(u.range.startLineNumber,r),d=Math.min(u.range.endLineNumber,o),h=c;h<=d;h++){var f=h-r;n[f]+=l}}},t.prototype._renderNormalDecorations=function(e,t,n){for(var i=String(this._lineHeight),r=e.visibleRange.startLineNumber,o=null,s=!1,a=null,u=0,l=t.length;u<l;u++){var c=t[u];if(!c.options.isWholeLine){var d=c.options.className,h=Boolean(c.options.showIfCollapsed),f=c.range;h&&1===f.endColumn&&f.endLineNumber!==f.startLineNumber&&(f=new oe["a"](f.startLineNumber,f.startColumn,f.endLineNumber-1,this._context.model.getLineMaxColumn(f.endLineNumber-1))),o===d&&s===h&&oe["a"].areIntersectingOrTouching(a,f)?a=oe["a"].plusRange(a,f):(null!==o&&this._renderNormalDecoration(e,a,o,s,i,r,n),o=d,s=h,a=f)}}null!==o&&this._renderNormalDecoration(e,a,o,s,i,r,n)},t.prototype._renderNormalDecoration=function(e,t,n,i,r,o,s){var a=e.linesVisibleRangesForRange(t,"findMatch"===n);if(a)for(var u=0,l=a.length;u<l;u++){var c=a[u];if(!c.outsideRenderedLine){var d=c.lineNumber-o;if(i&&1===c.ranges.length){var h=c.ranges[0];0===h.width&&(c.ranges[0]=new R(h.left,this._typicalHalfwidthCharacterWidth))}for(var f=0,p=c.ranges.length;f<p;f++){var g=c.ranges[f],A='<div class="cdr '+n+'" style="left:'+String(g.left)+"px;width:"+String(g.width)+"px;height:"+r+'px;"></div>';s[d]+=A}}}},t.prototype.render=function(e,t){if(!this._renderResult)return"";var n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]},t}(Pe),zt=n("GJhM"),Kt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),qt=function(e){function t(t,n,i,o){var s=e.call(this,t)||this,a=s._context.configuration.options,u=a.get(78),l=a.get(56),c=a.get(27),d={listenOnDomNode:i.domNode,className:"editor-scrollable "+Object(W["d"])(t.theme.type),useShadows:!1,lazyRender:!0,vertical:u.vertical,horizontal:u.horizontal,verticalHasArrows:u.verticalHasArrows,horizontalHasArrows:u.horizontalHasArrows,verticalScrollbarSize:u.verticalScrollbarSize,verticalSliderSize:u.verticalSliderSize,horizontalScrollbarSize:u.horizontalScrollbarSize,horizontalSliderSize:u.horizontalSliderSize,handleMouseWheel:u.handleMouseWheel,alwaysConsumeMouseWheel:u.alwaysConsumeMouseWheel,arrowSize:u.arrowSize,mouseWheelScrollSensitivity:l,fastScrollSensitivity:c};s.scrollbar=s._register(new zt["c"](n.domNode,d,s._context.viewLayout.getScrollable())),D.write(s.scrollbar.getDomNode(),5),s.scrollbarDomNode=Object(h["b"])(s.scrollbar.getDomNode()),s.scrollbarDomNode.setPosition("absolute"),s._setLayout();var f=function(e,t,n){var i={};if(t){var r=e.scrollTop;r&&(i.scrollTop=s._context.viewLayout.getCurrentScrollTop()+r,e.scrollTop=0)}if(n){var o=e.scrollLeft;o&&(i.scrollLeft=s._context.viewLayout.getCurrentScrollLeft()+o,e.scrollLeft=0)}s._context.viewLayout.setScrollPositionNow(i)};return s._register(r["i"](i.domNode,"scroll",(function(e){return f(i.domNode,!0,!0)}))),s._register(r["i"](n.domNode,"scroll",(function(e){return f(n.domNode,!0,!1)}))),s._register(r["i"](o.domNode,"scroll",(function(e){return f(o.domNode,!0,!1)}))),s._register(r["i"](s.scrollbarDomNode.domNode,"scroll",(function(e){return f(s.scrollbarDomNode.domNode,!0,!1)}))),s}return Kt(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype._setLayout=function(){var e=this._context.configuration.options,t=e.get(107);this.scrollbarDomNode.setLeft(t.contentLeft);var n=e.get(54),i=n.side;"right"===i?this.scrollbarDomNode.setWidth(t.contentWidth+t.minimapWidth):this.scrollbarDomNode.setWidth(t.contentWidth),this.scrollbarDomNode.setHeight(t.height)},t.prototype.getOverviewRulerLayoutInfo=function(){return this.scrollbar.getOverviewRulerLayoutInfo()},t.prototype.getDomNode=function(){return this.scrollbarDomNode},t.prototype.delegateVerticalScrollbarMouseDown=function(e){this.scrollbar.delegateVerticalScrollbarMouseDown(e)},t.prototype.onConfigurationChanged=function(e){if(e.hasChanged(78)||e.hasChanged(56)||e.hasChanged(27)){var t=this._context.configuration.options,n=t.get(78),i=t.get(56),r=t.get(27),o={handleMouseWheel:n.handleMouseWheel,mouseWheelScrollSensitivity:i,fastScrollSensitivity:r};this.scrollbar.updateOptions(o)}return e.hasChanged(107)&&this._setLayout(),!0},t.prototype.onScrollChanged=function(e){return!0},t.prototype.onThemeChanged=function(e){return this.scrollbar.updateClassName("editor-scrollable "+Object(W["d"])(this._context.theme.type)),!0},t.prototype.prepareRender=function(e){},t.prototype.render=function(e){this.scrollbar.renderNow()},t}(k),Gt=(n("hHjc"),function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}()),Xt=function(){function e(e,t,n){this.startLineNumber=+e,this.endLineNumber=+t,this.className=String(n)}return e}(),Yt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Gt(t,e),t.prototype._render=function(e,t,n){for(var i=[],r=e;r<=t;r++){var o=r-e;i[o]=[]}if(0===n.length)return i;n.sort((function(e,t){return e.className===t.className?e.startLineNumber===t.startLineNumber?e.endLineNumber-t.endLineNumber:e.startLineNumber-t.startLineNumber:e.className<t.className?-1:1}));for(var s=null,a=0,u=0,l=n.length;u<l;u++){var c=n[u],d=c.className,h=Math.max(c.startLineNumber,e)-e,f=Math.min(c.endLineNumber,t)-e;s===d?(h=Math.max(a+1,h),a=Math.max(a,f)):(s=d,a=f);for(var p=h;p<=a;p++)i[p].push(s)}return i},t}(Pe),Jt=function(e){function t(t){var n=e.call(this)||this;n._context=t;var i=n._context.configuration.options,r=i.get(107);return n._lineHeight=i.get(49),n._glyphMargin=i.get(40),n._glyphMarginLeft=r.glyphMarginLeft,n._glyphMarginWidth=r.glyphMarginWidth,n._renderResult=null,n._context.addEventHandler(n),n}return Gt(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options,n=t.get(107);return this._lineHeight=t.get(49),this._glyphMargin=t.get(40),this._glyphMarginLeft=n.glyphMarginLeft,this._glyphMarginWidth=n.glyphMarginWidth,!0},t.prototype.onDecorationsChanged=function(e){return!0},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesChanged=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return e.scrollTopChanged},t.prototype.onZonesChanged=function(e){return!0},t.prototype._getDecorations=function(e){for(var t=e.getDecorationsInViewport(),n=[],i=0,r=0,o=t.length;r<o;r++){var s=t[r],a=s.options.glyphMarginClassName;a&&(n[i++]=new Xt(s.range.startLineNumber,s.range.endLineNumber,a))}return n},t.prototype.prepareRender=function(e){if(this._glyphMargin){for(var t=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,i=this._render(t,n,this._getDecorations(e)),r=this._lineHeight.toString(),o=this._glyphMarginLeft.toString(),s=this._glyphMarginWidth.toString(),a='" style="left:'+o+"px;width:"+s+"px;height:"+r+'px;"></div>',u=[],l=t;l<=n;l++){var c=l-t,d=i[c];0===d.length?u[c]="":u[c]='<div class="cgmr codicon '+d.join(" ")+a}this._renderResult=u}else this._renderResult=null},t.prototype.render=function(e,t){if(!this._renderResult)return"";var n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]},t}(Yt),Zt=(n("C6rC"),function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}()),$t=function(e){function t(t){var n=e.call(this)||this;n._context=t,n._primaryLineNumber=0;var i=n._context.configuration.options,r=i.get(108),o=i.get(34);return n._lineHeight=i.get(49),n._spaceWidth=o.spaceWidth,n._enabled=i.get(70),n._activeIndentEnabled=i.get(43),n._maxIndentLeft=-1===r.wrappingColumn?-1:r.wrappingColumn*o.typicalHalfwidthCharacterWidth,n._renderResult=null,n._context.addEventHandler(n),n}return Zt(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options,n=t.get(108),i=t.get(34);return this._lineHeight=t.get(49),this._spaceWidth=i.spaceWidth,this._enabled=t.get(70),this._activeIndentEnabled=t.get(43),this._maxIndentLeft=-1===n.wrappingColumn?-1:n.wrappingColumn*i.typicalHalfwidthCharacterWidth,!0},t.prototype.onCursorStateChanged=function(e){var t=e.selections[0],n=t.isEmpty()?t.positionLineNumber:0;return this._primaryLineNumber!==n&&(this._primaryLineNumber=n,!0)},t.prototype.onDecorationsChanged=function(e){return!0},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesChanged=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return e.scrollTopChanged},t.prototype.onZonesChanged=function(e){return!0},t.prototype.onLanguageConfigurationChanged=function(e){return!0},t.prototype.prepareRender=function(e){if(this._enabled){var t=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,i=this._context.model.getOptions().indentSize,r=i*this._spaceWidth,o=e.scrollWidth,s=this._lineHeight,a=this._context.model.getLinesIndentGuides(t,n),u=0,l=0,c=0;if(this._activeIndentEnabled&&this._primaryLineNumber){var d=this._context.model.getActiveIndentGuide(this._primaryLineNumber,t,n);u=d.startLineNumber,l=d.endLineNumber,c=d.indent}for(var h=[],f=t;f<=n;f++){var p=u<=f&&f<=l,g=f-t,A=a[g],m="";if(A>=1)for(var v=e.visibleRangeForPosition(new re["a"](f,1)),_=v?v.left:0,y=1;y<=A;y++){var b=p&&y===c?"cigra":"cigr";if(m+='<div class="'+b+'" style="left:'+_+"px;height:"+s+"px;width:"+r+'px"></div>',_+=r,_>o||this._maxIndentLeft>0&&_>this._maxIndentLeft)break}h[g]=m}this._renderResult=h}else this._renderResult=null},t.prototype.render=function(e,t){if(!this._renderResult)return"";var n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]},t}(Pe);Object(W["e"])((function(e,t){var n=e.getColor(Ue["g"]);n&&t.addRule(".monaco-editor .lines-content .cigr { box-shadow: 1px 0 0 0 "+n+" inset; }");var i=e.getColor(Ue["a"])||n;i&&t.addRule(".monaco-editor .lines-content .cigra { box-shadow: 1px 0 0 0 "+i+" inset; }")}));n("OKK6");var en=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),tn=function(){function e(){this._currentVisibleRange=new oe["a"](1,1,1,1)}return e.prototype.getCurrentVisibleRange=function(){return this._currentVisibleRange},e.prototype.setCurrentVisibleRange=function(e){this._currentVisibleRange=e},e}(),nn=function(){function e(e,t,n,i,r,o){this.lineNumber=e,this.startColumn=t,this.endColumn=n,this.startScrollTop=i,this.stopScrollTop=r,this.scrollType=o}return e}(),rn=function(e){function t(t,n){var i=e.call(this,t)||this;i._linesContent=n,i._textRangeRestingSpot=document.createElement("div"),i._visibleLines=new Lt(i),i.domNode=i._visibleLines.domNode;var r=i._context.configuration,o=i._context.configuration.options,s=o.get(34),a=o.get(108);return i._lineHeight=o.get(49),i._typicalHalfwidthCharacterWidth=s.typicalHalfwidthCharacterWidth,i._isViewportWrapping=a.isViewportWrapping,i._revealHorizontalRightPadding=o.get(75),i._cursorSurroundingLines=o.get(19),i._cursorSurroundingLinesStyle=o.get(20),i._canUseLayerHinting=!o.get(22),i._viewLineOptions=new Y(r,i._context.theme.type),D.write(i.domNode,7),i.domNode.setClassName("view-lines"),l["a"].applyFontInfo(i.domNode,s),i._maxLineWidth=0,i._asyncUpdateLineWidths=new m["d"]((function(){i._updateLineWidthsSlow()}),200),i._lastRenderedData=new tn,i._horizontalRevealRequest=null,i}return en(t,e),t.prototype.dispose=function(){this._asyncUpdateLineWidths.dispose(),e.prototype.dispose.call(this)},t.prototype.getDomNode=function(){return this.domNode},t.prototype.createVisibleLine=function(){return new J(this._viewLineOptions)},t.prototype.onConfigurationChanged=function(e){this._visibleLines.onConfigurationChanged(e),e.hasChanged(108)&&(this._maxLineWidth=0);var t=this._context.configuration.options,n=t.get(34),i=t.get(108);return this._lineHeight=t.get(49),this._typicalHalfwidthCharacterWidth=n.typicalHalfwidthCharacterWidth,this._isViewportWrapping=i.isViewportWrapping,this._revealHorizontalRightPadding=t.get(75),this._cursorSurroundingLines=t.get(19),this._cursorSurroundingLinesStyle=t.get(20),this._canUseLayerHinting=!t.get(22),l["a"].applyFontInfo(this.domNode,n),this._onOptionsMaybeChanged(),e.hasChanged(107)&&(this._maxLineWidth=0),!0},t.prototype._onOptionsMaybeChanged=function(){var e=this._context.configuration,t=new Y(e,this._context.theme.type);if(!this._viewLineOptions.equals(t)){this._viewLineOptions=t;for(var n=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber(),r=n;r<=i;r++){var o=this._visibleLines.getVisibleLine(r);o.onOptionsChanged(this._viewLineOptions)}return!0}return!1},t.prototype.onCursorStateChanged=function(e){for(var t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber(),i=!1,r=t;r<=n;r++)i=this._visibleLines.getVisibleLine(r).onSelectionChanged()||i;return i},t.prototype.onDecorationsChanged=function(e){for(var t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber(),i=t;i<=n;i++)this._visibleLines.getVisibleLine(i).onDecorationsChanged();return!0},t.prototype.onFlushed=function(e){var t=this._visibleLines.onFlushed(e);return this._maxLineWidth=0,t},t.prototype.onLinesChanged=function(e){return this._visibleLines.onLinesChanged(e)},t.prototype.onLinesDeleted=function(e){return this._visibleLines.onLinesDeleted(e)},t.prototype.onLinesInserted=function(e){return this._visibleLines.onLinesInserted(e)},t.prototype.onRevealRangeRequest=function(e){var t=this._computeScrollTopToRevealRange(this._context.viewLayout.getFutureViewport(),e.source,e.range,e.verticalType),n=this._context.viewLayout.validateScrollPosition({scrollTop:t});e.revealHorizontal?e.range.startLineNumber!==e.range.endLineNumber?n={scrollTop:n.scrollTop,scrollLeft:0}:this._horizontalRevealRequest=new nn(e.range.startLineNumber,e.range.startColumn,e.range.endColumn,this._context.viewLayout.getCurrentScrollTop(),n.scrollTop,e.scrollType):this._horizontalRevealRequest=null;var i=Math.abs(this._context.viewLayout.getCurrentScrollTop()-n.scrollTop);return 0===e.scrollType&&i>this._lineHeight?this._context.viewLayout.setScrollPositionSmooth(n):this._context.viewLayout.setScrollPositionNow(n),!0},t.prototype.onScrollChanged=function(e){if(this._horizontalRevealRequest&&e.scrollLeftChanged&&(this._horizontalRevealRequest=null),this._horizontalRevealRequest&&e.scrollTopChanged){var t=Math.min(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop),n=Math.max(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop);(e.scrollTop<t||e.scrollTop>n)&&(this._horizontalRevealRequest=null)}return this.domNode.setWidth(e.scrollWidth),this._visibleLines.onScrollChanged(e)||!0},t.prototype.onTokensChanged=function(e){return this._visibleLines.onTokensChanged(e)},t.prototype.onZonesChanged=function(e){return this._context.viewLayout.onMaxLineWidthChanged(this._maxLineWidth),this._visibleLines.onZonesChanged(e)},t.prototype.onThemeChanged=function(e){return this._onOptionsMaybeChanged()},t.prototype.getPositionFromDOMInfo=function(e,t){var n=this._getViewLineDomNode(e);if(null===n)return null;var i=this._getLineNumberFor(n);if(-1===i)return null;if(i<1||i>this._context.model.getLineCount())return null;if(1===this._context.model.getLineMaxColumn(i))return new re["a"](i,1);var r=this._visibleLines.getStartLineNumber(),o=this._visibleLines.getEndLineNumber();if(i<r||i>o)return null;var s=this._visibleLines.getVisibleLine(i).getColumnOfNodeOffset(i,e,t),a=this._context.model.getLineMinColumn(i);return s<a&&(s=a),new re["a"](i,s)},t.prototype._getViewLineDomNode=function(e){while(e&&1===e.nodeType){if(e.className===J.CLASS_NAME)return e;e=e.parentElement}return null},t.prototype._getLineNumberFor=function(e){for(var t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber(),i=t;i<=n;i++){var r=this._visibleLines.getVisibleLine(i);if(e===r.getDomNode())return i}return-1},t.prototype.getLineWidth=function(e){var t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber();return e<t||e>n?-1:this._visibleLines.getVisibleLine(e).getWidth()},t.prototype.linesVisibleRangesForRange=function(e,t){if(this.shouldRender())return null;var n=e.endLineNumber,i=oe["a"].intersectRanges(e,this._lastRenderedData.getCurrentVisibleRange());if(!i)return null;var r=[],o=0,s=new X(this.domNode.domNode,this._textRangeRestingSpot),a=0;t&&(a=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new re["a"](i.startLineNumber,1)).lineNumber);for(var u=this._visibleLines.getStartLineNumber(),l=this._visibleLines.getEndLineNumber(),c=i.startLineNumber;c<=i.endLineNumber;c++)if(!(c<u||c>l)){var d=c===i.startLineNumber?i.startColumn:1,h=c===i.endLineNumber?i.endColumn:this._context.model.getLineMaxColumn(c),f=this._visibleLines.getVisibleLine(c).getVisibleRangesForRange(d,h,s);if(f){if(t&&c<n){var p=a;a=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new re["a"](c+1,1)).lineNumber,p!==a&&(f.ranges[f.ranges.length-1].width+=this._typicalHalfwidthCharacterWidth)}r[o++]=new T(f.outsideRenderedLine,c,f.ranges)}}return 0===o?null:r},t.prototype._visibleRangesForLineRange=function(e,t,n){return this.shouldRender()||e<this._visibleLines.getStartLineNumber()||e>this._visibleLines.getEndLineNumber()?null:this._visibleLines.getVisibleLine(e).getVisibleRangesForRange(t,n,new X(this.domNode.domNode,this._textRangeRestingSpot))},t.prototype.visibleRangeForPosition=function(e){var t=this._visibleRangesForLineRange(e.lineNumber,e.column,e.column);return t?new P(t.outsideRenderedLine,t.ranges[0].left):null},t.prototype.updateLineWidths=function(){this._updateLineWidths(!1)},t.prototype._updateLineWidthsFast=function(){return this._updateLineWidths(!0)},t.prototype._updateLineWidthsSlow=function(){this._updateLineWidths(!1)},t.prototype._updateLineWidths=function(e){for(var t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber(),i=1,r=!0,o=t;o<=n;o++){var s=this._visibleLines.getVisibleLine(o);!e||s.getWidthIsFast()?i=Math.max(i,s.getWidth()):r=!1}return r&&1===t&&n===this._context.model.getLineCount()&&(this._maxLineWidth=0),this._ensureMaxLineWidth(i),r},t.prototype.prepareRender=function(){throw new Error("Not supported")},t.prototype.render=function(){throw new Error("Not supported")},t.prototype.renderText=function(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){var t=this._horizontalRevealRequest.lineNumber,n=this._horizontalRevealRequest.startColumn,i=this._horizontalRevealRequest.endColumn,r=this._horizontalRevealRequest.scrollType;if(e.startLineNumber<=t&&t<=e.endLineNumber){this._horizontalRevealRequest=null,this.onDidRender();var o=this._computeScrollLeftToRevealRange(t,n,i),s=this._isViewportWrapping;s||this._ensureMaxLineWidth(o.maxHorizontalOffset),0===r?this._context.viewLayout.setScrollPositionSmooth({scrollLeft:o.scrollLeft}):this._context.viewLayout.setScrollPositionNow({scrollLeft:o.scrollLeft})}}this._updateLineWidthsFast()||this._asyncUpdateLineWidths.schedule(),this._linesContent.setLayerHinting(this._canUseLayerHinting),this._linesContent.setContain("strict");var a=this._context.viewLayout.getCurrentScrollTop()-e.bigNumbersDelta;this._linesContent.setTop(-a),this._linesContent.setLeft(-this._context.viewLayout.getCurrentScrollLeft())},t.prototype._ensureMaxLineWidth=function(e){var t=Math.ceil(e);this._maxLineWidth<t&&(this._maxLineWidth=t,this._context.viewLayout.onMaxLineWidthChanged(this._maxLineWidth))},t.prototype._computeScrollTopToRevealRange=function(e,t,n,i){var r,o,s=e.top,a=e.height,u=s+a;r=this._context.viewLayout.getVerticalOffsetForLineNumber(n.startLineNumber),o=this._context.viewLayout.getVerticalOffsetForLineNumber(n.endLineNumber)+this._lineHeight;var l,c="mouse"===t&&"default"===this._cursorSurroundingLinesStyle;if(!c){var d=Math.min(a/this._lineHeight/2,this._cursorSurroundingLines);r-=d*this._lineHeight,o+=Math.max(0,d-1)*this._lineHeight}if(0!==i&&4!==i||(o+=this._lineHeight),o-r>a)l=r;else if(1===i||2===i)if(2===i&&s<=r&&o<=u)l=s;else{var h=(r+o)/2;l=Math.max(0,h-a/2)}else l=this._computeMinimumScrolling(s,u,r,o,3===i,4===i);return l},t.prototype._computeScrollLeftToRevealRange=function(e,n,i){var r=0,o=this._context.viewLayout.getCurrentViewport(),s=o.left,a=s+o.width,u=this._visibleRangesForLineRange(e,n,i),l=1073741824,c=0;if(!u)return{scrollLeft:s,maxHorizontalOffset:r};for(var d=0,h=u.ranges;d<h.length;d++){var f=h[d];f.left<l&&(l=f.left),f.left+f.width>c&&(c=f.left+f.width)}r=c,l=Math.max(0,l-t.HORIZONTAL_EXTRA_PX),c+=this._revealHorizontalRightPadding;var p=this._computeMinimumScrolling(s,a,l,c);return{scrollLeft:p,maxHorizontalOffset:r}},t.prototype._computeMinimumScrolling=function(e,t,n,i,r,o){e|=0,t|=0,n|=0,i|=0,r=!!r,o=!!o;var s=t-e,a=i-n;return a<s?r?n:o?Math.max(0,i-s):n<e?n:i>t?Math.max(0,i-s):e:n},t.HORIZONTAL_EXTRA_PX=30,t}(k),on=(n("J+ZK"),function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}()),sn=function(e){function t(t){var n=e.call(this)||this;n._context=t;var i=n._context.configuration.options,r=i.get(107);return n._decorationsLeft=r.decorationsLeft,n._decorationsWidth=r.decorationsWidth,n._renderResult=null,n._context.addEventHandler(n),n}return on(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options,n=t.get(107);return this._decorationsLeft=n.decorationsLeft,this._decorationsWidth=n.decorationsWidth,!0},t.prototype.onDecorationsChanged=function(e){return!0},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesChanged=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return e.scrollTopChanged},t.prototype.onZonesChanged=function(e){return!0},t.prototype._getDecorations=function(e){for(var t=e.getDecorationsInViewport(),n=[],i=0,r=0,o=t.length;r<o;r++){var s=t[r],a=s.options.linesDecorationsClassName;a&&(n[i++]=new Xt(s.range.startLineNumber,s.range.endLineNumber,a))}return n},t.prototype.prepareRender=function(e){for(var t=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,i=this._render(t,n,this._getDecorations(e)),r=this._decorationsLeft.toString(),o=this._decorationsWidth.toString(),s='" style="left:'+r+"px;width:"+o+'px;"></div>',a=[],u=t;u<=n;u++){for(var l=u-t,c=i[l],d="",h=0,f=c.length;h<f;h++)d+='<div class="cldr '+c[h]+s;a[l]=d}this._renderResult=a},t.prototype.render=function(e,t){return this._renderResult?this._renderResult[t-e]:""},t}(Yt),an=(n("XXBq"),function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}()),un=function(e){function t(t){var n=e.call(this)||this;return n._context=t,n._renderResult=null,n._context.addEventHandler(n),n}return an(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return!0},t.prototype.onDecorationsChanged=function(e){return!0},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesChanged=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return e.scrollTopChanged},t.prototype.onZonesChanged=function(e){return!0},t.prototype._getDecorations=function(e){for(var t=e.getDecorationsInViewport(),n=[],i=0,r=0,o=t.length;r<o;r++){var s=t[r],a=s.options.marginClassName;a&&(n[i++]=new Xt(s.range.startLineNumber,s.range.endLineNumber,a))}return n},t.prototype.prepareRender=function(e){for(var t=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,i=this._render(t,n,this._getDecorations(e)),r=[],o=t;o<=n;o++){for(var s=o-t,a=i[s],u="",l=0,c=a.length;l<c;l++)u+='<div class="cmdr '+a[l]+'" style=""></div>';r[s]=u}this._renderResult=r},t.prototype.render=function(e,t){return this._renderResult?this._renderResult[t-e]:""},t}(Yt),ln=(n("8gvo"),function(){function e(t,n,i,r){this.r=e._clamp(t),this.g=e._clamp(n),this.b=e._clamp(i),this.a=e._clamp(r)}return e._clamp=function(e){return e<0?0:e>255?255:0|e},e.Empty=new e(0,0,0,0),e}()),cn=n("twdY"),dn=function(){function e(){var e=this;this._onDidChange=new s["a"],this.onDidChange=this._onDidChange.event,this._updateColorMap(),cn["y"].onDidChange((function(t){t.changedColorMap&&e._updateColorMap()}))}return e.getInstance=function(){return this._INSTANCE||(this._INSTANCE=new e),this._INSTANCE},e.prototype._updateColorMap=function(){var e=cn["y"].getColorMap();if(!e)return this._colors=[ln.Empty],void(this._backgroundIsLight=!0);this._colors=[ln.Empty];for(var t=1;t<e.length;t++){var n=e[t].rgba;this._colors[t]=new ln(n.r,n.g,n.b,Math.round(255*n.a))}var i=e[2].getRelativeLuminance();this._backgroundIsLight=i>=.5,this._onDidChange.fire(void 0)},e.prototype.getColor=function(e){return(e<1||e>=this._colors.length)&&(e=2),this._colors[e]},e.prototype.backgroundIsLight=function(){return this._backgroundIsLight},e._INSTANCE=null,e}(),hn=n("MD5Z"),fn=function(){for(var e=[],t=32;t<=126;t++)e.push(t);return e.push(65533),e}(),pn=function(e,t){return e-=32,e<0||e>96?t<=2?(e+96)%96:95:e},gn=function(){function e(t,n){this.scale=n,this.charDataNormal=e.soften(t,.8),this.charDataLight=e.soften(t,50/60)}return e.soften=function(e,t){for(var n=new Uint8ClampedArray(e.length),i=0,r=e.length;i<r;i++)n[i]=e[i]*t;return n},e.prototype.renderChar=function(e,t,n,i,r,o,s,a){var u=1*this.scale,l=2*this.scale;if(t+u>e.width||n+l>e.height)console.warn("bad render request outside image data");else for(var c=a?this.charDataLight:this.charDataNormal,d=pn(i,s),h=4*e.width,f=o.r,p=o.g,g=o.b,A=r.r-f,m=r.g-p,v=r.b-g,_=e.data,y=d*u*l,b=n*h+4*t,w=0;w<l;w++){for(var C=b,S=0;S<u;S++){var N=c[y++]/255;_[C++]=f+A*N,_[C++]=p+m*N,_[C++]=g+v*N,C++}b+=h}},e.prototype.blockRenderChar=function(e,t,n,i,r,o){var s=1*this.scale,a=2*this.scale;if(t+s>e.width||n+a>e.height)console.warn("bad render request outside image data");else for(var u=4*e.width,l=.5,c=r.r,d=r.g,h=r.b,f=i.r-c,p=i.g-d,g=i.b-h,A=c+f*l,m=d+p*l,v=h+g*l,_=e.data,y=n*u+4*t,b=0;b<a;b++){for(var w=y,C=0;C<s;C++)_[w++]=A,_[w++]=m,_[w++]=v,w++;y+=u}},e}(),An=n("C/vA"),mn={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15},vn=function(e){for(var t=new Uint8ClampedArray(e.length/2),n=0;n<e.length;n+=2)t[n>>1]=mn[e[n]]<<4|15&mn[e[n+1]];return t},_n={1:Object(An["a"])((function(){return vn("0000511D6300CF609C709645A78432005642574171487021003C451900274D35D762755E8B629C5BA856AF57BA649530C167D1512A272A3F6038604460398526BCA2A968DB6F8957C768BE5FBE2FB467CF5D8D5B795DC7625B5DFF50DE64C466DB2FC47CD860A65E9A2EB96CB54CE06DA763AB2EA26860524D3763536601005116008177A8705E53AB738E6A982F88BAA35B5F5B626D9C636B449B737E5B7B678598869A662F6B5B8542706C704C80736A607578685B70594A49715A4522E792")})),2:Object(An["a"])((function(){return vn("000000000000000055394F383D2800008B8B1F210002000081B1CBCBCC820000847AAF6B9AAF2119BE08B8881AD60000A44FD07DCCF107015338130C00000000385972265F390B406E2437634B4B48031B12B8A0847000001E15B29A402F0000000000004B33460B00007A752C2A0000000000004D3900000084394B82013400ABA5CFC7AD9C0302A45A3E5A98AB000089A43382D97900008BA54AA087A70A0248A6A7AE6DBE0000BF6F94987EA40A01A06DCFA7A7A9030496C32F77891D0000A99FB1A0AFA80603B29AB9CA75930D010C0948354D3900000C0948354F37460D0028BE673D8400000000AF9D7B6E00002B007AA8933400007AA642675C2700007984CFB9C3985B768772A8A6B7B20000CAAECAAFC4B700009F94A6009F840009D09F9BA4CA9C0000CC8FC76DC87F0000C991C472A2000000A894A48CA7B501079BA2C9C69BA20000B19A5D3FA89000005CA6009DA2960901B0A7F0669FB200009D009E00B7890000DAD0F5D092820000D294D4C48BD10000B5A7A4A3B1A50402CAB6CBA6A2000000B5A7A4A3B1A8044FCDADD19D9CB00000B7778F7B8AAE0803C9AB5D3F5D3F00009EA09EA0BAB006039EA0989A8C7900009B9EF4D6B7C00000A9A7816CACA80000ABAC84705D3F000096DA635CDC8C00006F486F266F263D4784006124097B00374F6D2D6D2D6D4A3A95872322000000030000000000008D8939130000000000002E22A5C9CBC70600AB25C0B5C9B400061A2DB04CA67001082AA6BEBEBFC606002321DACBC19E03087AA08B6768380000282FBAC0B8CA7A88AD25BBA5A29900004C396C5894A6000040485A6E356E9442A32CD17EADA70000B4237923628600003E2DE9C1D7B500002F25BBA5A2990000231DB6AFB4A804023025C0B5CAB588062B2CBDBEC0C706882435A75CA20000002326BD6A82A908048B4B9A5A668000002423A09CB4BB060025259C9D8A7900001C1FCAB2C7C700002A2A9387ABA200002626A4A47D6E9D14333163A0C87500004B6F9C2D643A257049364936493647358A34438355497F1A0000A24C1D590000D38DFFBDD4CD3126")}))},yn=function(){function e(){}return e.create=function(t,n){return this.lastCreated&&t===this.lastCreated.scale&&n===this.lastFontFamily?this.lastCreated:(i=_n[t]?new gn(_n[t](),t):e.createFromSampleData(e.createSampleData(n).data,t),this.lastFontFamily=n,this.lastCreated=i,i);var i},e.createSampleData=function(e){var t=document.createElement("canvas"),n=t.getContext("2d");t.style.height="16px",t.height=16,t.width=960,t.style.width="960px",n.fillStyle="#ffffff",n.font="bold 16px "+e,n.textBaseline="middle";for(var i=0,r=0,o=fn;r<o.length;r++){var s=o[r];n.fillText(String.fromCharCode(s),i,8),i+=10}return n.getImageData(0,0,960,16)},e.createFromSampleData=function(t,n){var i=61440;if(t.length!==i)throw new Error("Unexpected source in MinimapCharRenderer");var r=e._downsample(t,n);return new gn(r,n)},e._downsampleChar=function(e,t,n,i,r){for(var o=1*r,s=2*r,a=i,u=0,l=0;l<s;l++)for(var c=l/s*16,d=(l+1)/s*16,h=0;h<o;h++){for(var f=h/o*10,p=(h+1)/o*10,g=0,A=0,m=c;m<d;m++)for(var v=t+3840*Math.floor(m),_=1-(m-Math.floor(m)),y=f;y<p;y++){var b=1-(y-Math.floor(y)),w=v+4*Math.floor(y),C=b*_;A+=C,g+=e[w]*e[w+3]/255*C}var S=g/A;u=Math.max(u,S),n[a++]=S}return u},e._downsample=function(e,t){for(var n=2*t*1*t,i=96*n,r=new Uint8ClampedArray(i),o=0,s=0,a=0,u=0;u<96;u++)a=Math.max(a,this._downsampleChar(e,s,r,o,t)),o+=n,s+=40;if(a>0)for(var l=255/a,c=0;c<i;c++)r[c]*=l;return r},e}(),bn=n("M1Kb"),wn=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();function Cn(e,t){return 1===e?2*t:3*t}function Sn(e,t){return 1*t}var Nn=140,Ln=2,En=function(){function e(e){var t=this,n=e.options,i=n.get(105),r=n.get(107),o=n.get(34);this.renderMinimap=0|r.renderMinimap,this.scrollBeyondLastLine=n.get(80);var s=n.get(54);this.showSlider=s.showSlider,this.fontScale=Math.round(s.scale*i),this.charRenderer=Object(An["a"])((function(){return yn.create(t.fontScale,o.fontFamily)})),this.pixelRatio=i,this.typicalHalfwidthCharacterWidth=o.typicalHalfwidthCharacterWidth,this.lineHeight=n.get(49),this.minimapLeft=r.minimapLeft,this.minimapWidth=r.minimapWidth,this.minimapHeight=r.height,this.canvasInnerWidth=Math.floor(i*this.minimapWidth),this.canvasInnerHeight=Math.floor(i*this.minimapHeight),this.canvasOuterWidth=this.canvasInnerWidth/i,this.canvasOuterHeight=this.canvasInnerHeight/i}return e.prototype.equals=function(e){return this.renderMinimap===e.renderMinimap&&this.scrollBeyondLastLine===e.scrollBeyondLastLine&&this.showSlider===e.showSlider&&this.pixelRatio===e.pixelRatio&&this.typicalHalfwidthCharacterWidth===e.typicalHalfwidthCharacterWidth&&this.lineHeight===e.lineHeight&&this.fontScale===e.fontScale&&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},e}(),xn=function(){function e(e,t,n,i,r,o,s){this.scrollTop=e,this.scrollHeight=t,this._computedSliderRatio=n,this.sliderTop=i,this.sliderHeight=r,this.startLineNumber=o,this.endLineNumber=s}return e.prototype.getDesiredScrollTopFromDelta=function(e){var t=this.sliderTop+e;return Math.round(t/this._computedSliderRatio)},e.prototype.getDesiredScrollTopFromTouchLocation=function(e){return Math.round((e-this.sliderHeight/2)/this._computedSliderRatio)},e.create=function(t,n,i,r,o,s,a,u,l){var c,d,h=t.pixelRatio,f=Cn(t.renderMinimap,t.fontScale),p=Math.floor(t.canvasInnerHeight/f),g=t.lineHeight;if(o&&i!==s){var A=i-n+1;c=Math.floor(A*f/h)}else{var m=r/g;c=Math.floor(m*f/h)}d=t.scrollBeyondLastLine?(s-1)*f/h:Math.max(0,s*f/h-c),d=Math.min(t.minimapHeight-c,d);var v=d/(u-r),_=a*v,y=0;if(t.scrollBeyondLastLine){m=r/g;y=m}if(p>=s+y){var b=1,w=s;return new e(a,u,v,_,c,b,w)}b=Math.max(1,Math.floor(n-_*h/f));l&&l.scrollHeight===u&&(l.scrollTop>a&&(b=Math.min(b,l.startLineNumber)),l.scrollTop<a&&(b=Math.max(b,l.startLineNumber)));w=Math.min(s,b+p-1);return new e(a,u,v,_,c,b,w)},e}(),On=function(){function e(e){this.dy=e}return e.prototype.onContentChanged=function(){this.dy=-1},e.prototype.onTokensChanged=function(){this.dy=-1},e.INVALID=new e(-1),e}(),Bn=function(){function e(e,t,n){this.renderedLayout=e,this._imageData=t,this._renderedLines=new Nt((function(){return On.INVALID})),this._renderedLines._set(e.startLineNumber,n)}return e.prototype.linesEquals=function(e){if(!this.scrollEquals(e))return!1;for(var t=this._renderedLines._get(),n=t.lines,i=0,r=n.length;i<r;i++)if(-1===n[i].dy)return!1;return!0},e.prototype.scrollEquals=function(e){return this.renderedLayout.startLineNumber===e.startLineNumber&&this.renderedLayout.endLineNumber===e.endLineNumber},e.prototype._get=function(){var e=this._renderedLines._get();return{imageData:this._imageData,rendLineNumberStart:e.rendLineNumberStart,lines:e.lines}},e.prototype.onLinesChanged=function(e){return this._renderedLines.onLinesChanged(e.fromLineNumber,e.toLineNumber)},e.prototype.onLinesDeleted=function(e){this._renderedLines.onLinesDeleted(e.fromLineNumber,e.toLineNumber)},e.prototype.onLinesInserted=function(e){this._renderedLines.onLinesInserted(e.fromLineNumber,e.toLineNumber)},e.prototype.onTokensChanged=function(e){return this._renderedLines.onTokensChanged(e.ranges)},e}(),kn=function(){function e(t,n,i,r){this._backgroundFillData=e._createBackgroundFillData(n,i,r),this._buffers=[t.createImageData(n,i),t.createImageData(n,i)],this._lastUsedBuffer=0}return e.prototype.getBuffer=function(){this._lastUsedBuffer=1-this._lastUsedBuffer;var e=this._buffers[this._lastUsedBuffer];return e.data.set(this._backgroundFillData),e},e._createBackgroundFillData=function(e,t,n){for(var i=n.r,r=n.g,o=n.b,s=new Uint8ClampedArray(e*t*4),a=0,u=0;u<t;u++)for(var l=0;l<e;l++)s[a]=i,s[a+1]=r,s[a+2]=o,s[a+3]=255,a+=4;return s},e}(),Dn=function(e){function t(t){var n=e.call(this,t)||this;return n._selections=[],n._renderDecorations=!1,n._gestureInProgress=!1,n._options=new En(n._context.configuration),n._lastRenderData=null,n._buffers=null,n._selectionColor=n._context.theme.getColor(hn["Hb"]),n._domNode=Object(h["b"])(document.createElement("div")),D.write(n._domNode,8),n._domNode.setClassName(n._getMinimapDomNodeClassName()),n._domNode.setPosition("absolute"),n._domNode.setAttribute("role","presentation"),n._domNode.setAttribute("aria-hidden","true"),n._shadow=Object(h["b"])(document.createElement("div")),n._shadow.setClassName("minimap-shadow-hidden"),n._domNode.appendChild(n._shadow),n._canvas=Object(h["b"])(document.createElement("canvas")),n._canvas.setPosition("absolute"),n._canvas.setLeft(0),n._domNode.appendChild(n._canvas),n._decorationsCanvas=Object(h["b"])(document.createElement("canvas")),n._decorationsCanvas.setPosition("absolute"),n._decorationsCanvas.setClassName("minimap-decorations-layer"),n._decorationsCanvas.setLeft(0),n._domNode.appendChild(n._decorationsCanvas),n._slider=Object(h["b"])(document.createElement("div")),n._slider.setPosition("absolute"),n._slider.setClassName("minimap-slider"),n._slider.setLayerHinting(!0),n._slider.setContain("strict"),n._domNode.appendChild(n._slider),n._sliderHorizontal=Object(h["b"])(document.createElement("div")),n._sliderHorizontal.setPosition("absolute"),n._sliderHorizontal.setClassName("minimap-slider-horizontal"),n._slider.appendChild(n._sliderHorizontal),n._tokensColorTracker=dn.getInstance(),n._applyLayout(),n._mouseDownListener=r["n"](n._domNode.domNode,"mousedown",(function(e){e.preventDefault();var t=n._options.renderMinimap;if(0!==t&&n._lastRenderData){var i=Cn(t,n._options.fontScale),r=n._options.pixelRatio*e.browserEvent.offsetY,o=Math.floor(r/i),s=o+n._lastRenderData.renderedLayout.startLineNumber;s=Math.min(s,n._context.model.getLineCount()),n._context.privateViewEventBus.emit(new it("mouse",new oe["a"](s,1,s,1),1,!1,0))}})),n._sliderMouseMoveMonitor=new v["a"],n._sliderMouseDownListener=r["n"](n._slider.domNode,"mousedown",(function(e){if(e.preventDefault(),e.stopPropagation(),e.leftButton&&n._lastRenderData){var t=e.posy,i=e.posx,r=n._lastRenderData.renderedLayout;n._slider.toggleClassName("active",!0),n._sliderMouseMoveMonitor.startMonitoring(e.target,e.buttons,v["b"],(function(e){var o=Math.abs(e.posx-i);if(f["h"]&&o>Nn)n._context.viewLayout.setScrollPositionNow({scrollTop:r.scrollTop});else{var s=e.posy-t;n._context.viewLayout.setScrollPositionNow({scrollTop:r.getDesiredScrollTopFromDelta(s)})}}),(function(){n._slider.toggleClassName("active",!1)}))}})),n._gestureDisposable=p["b"].addTarget(n._domNode.domNode),n._sliderTouchStartListener=r["i"](n._domNode.domNode,p["a"].Start,(function(e){e.preventDefault(),e.stopPropagation(),n._lastRenderData&&(n._slider.toggleClassName("active",!0),n._gestureInProgress=!0,n.scrollDueToTouchEvent(e))})),n._sliderTouchMoveListener=r["n"](n._domNode.domNode,p["a"].Change,(function(e){e.preventDefault(),e.stopPropagation(),n._lastRenderData&&n._gestureInProgress&&n.scrollDueToTouchEvent(e)})),n._sliderTouchEndListener=r["n"](n._domNode.domNode,p["a"].End,(function(e){e.preventDefault(),e.stopPropagation(),n._gestureInProgress=!1,n._slider.toggleClassName("active",!1)})),n}return wn(t,e),t.prototype.scrollDueToTouchEvent=function(e){var t=this._domNode.domNode.getBoundingClientRect().top,n=this._lastRenderData.renderedLayout.getDesiredScrollTopFromTouchLocation(e.pageY-t);this._context.viewLayout.setScrollPositionNow({scrollTop:n})},t.prototype.dispose=function(){this._mouseDownListener.dispose(),this._sliderMouseMoveMonitor.dispose(),this._sliderMouseDownListener.dispose(),this._gestureDisposable.dispose(),this._sliderTouchStartListener.dispose(),this._sliderTouchMoveListener.dispose(),this._sliderTouchEndListener.dispose(),e.prototype.dispose.call(this)},t.prototype._getMinimapDomNodeClassName=function(){return"always"===this._options.showSlider?"minimap slider-always":"minimap slider-mouseover"},t.prototype.getDomNode=function(){return this._domNode},t.prototype._applyLayout=function(){this._domNode.setLeft(this._options.minimapLeft),this._domNode.setWidth(this._options.minimapWidth),this._domNode.setHeight(this._options.minimapHeight),this._shadow.setHeight(this._options.minimapHeight),this._canvas.setWidth(this._options.canvasOuterWidth),this._canvas.setHeight(this._options.canvasOuterHeight),this._canvas.domNode.width=this._options.canvasInnerWidth,this._canvas.domNode.height=this._options.canvasInnerHeight,this._decorationsCanvas.setWidth(this._options.canvasOuterWidth),this._decorationsCanvas.setHeight(this._options.canvasOuterHeight),this._decorationsCanvas.domNode.width=this._options.canvasInnerWidth,this._decorationsCanvas.domNode.height=this._options.canvasInnerHeight,this._slider.setWidth(this._options.minimapWidth)},t.prototype._getBuffer=function(){return this._buffers||this._options.canvasInnerWidth>0&&this._options.canvasInnerHeight>0&&(this._buffers=new kn(this._canvas.domNode.getContext("2d"),this._options.canvasInnerWidth,this._options.canvasInnerHeight,this._tokensColorTracker.getColor(2))),this._buffers?this._buffers.getBuffer():null},t.prototype._onOptionsMaybeChanged=function(){var e=new En(this._context.configuration);return!this._options.equals(e)&&(this._options=e,this._lastRenderData=null,this._buffers=null,this._applyLayout(),this._domNode.setClassName(this._getMinimapDomNodeClassName()),!0)},t.prototype.onConfigurationChanged=function(e){return this._onOptionsMaybeChanged()},t.prototype.onCursorStateChanged=function(e){return this._selections=e.selections,this._renderDecorations=!0,!0},t.prototype.onFlushed=function(e){return this._lastRenderData=null,!0},t.prototype.onLinesChanged=function(e){return!!this._lastRenderData&&this._lastRenderData.onLinesChanged(e)},t.prototype.onLinesDeleted=function(e){return this._lastRenderData&&this._lastRenderData.onLinesDeleted(e),!0},t.prototype.onLinesInserted=function(e){return this._lastRenderData&&this._lastRenderData.onLinesInserted(e),!0},t.prototype.onScrollChanged=function(e){return this._renderDecorations=!0,!0},t.prototype.onTokensChanged=function(e){return!!this._lastRenderData&&this._lastRenderData.onTokensChanged(e)},t.prototype.onTokensColorsChanged=function(e){return this._lastRenderData=null,this._buffers=null,!0},t.prototype.onZonesChanged=function(e){return this._lastRenderData=null,!0},t.prototype.onDecorationsChanged=function(e){return this._renderDecorations=!0,!0},t.prototype.onThemeChanged=function(e){return this._context.model.invalidateMinimapColorCache(),this._selectionColor=this._context.theme.getColor(hn["Hb"]),this._renderDecorations=!0,!0},t.prototype.prepareRender=function(e){},t.prototype.render=function(e){var t=this._options.renderMinimap;if(0===t)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");var n=xn.create(this._options,e.visibleRange.startLineNumber,e.visibleRange.endLineNumber,e.viewportHeight,e.viewportData.whitespaceViewportData.length>0,this._context.model.getLineCount(),e.scrollTop,e.scrollHeight,this._lastRenderData?this._lastRenderData.renderedLayout:null);this._slider.setTop(n.sliderTop),this._slider.setHeight(n.sliderHeight);var i=e.scrollLeft/this._options.typicalHalfwidthCharacterWidth,r=Math.min(this._options.minimapWidth,Math.round(i*Sn(this._options.renderMinimap,this._options.fontScale)/this._options.pixelRatio));this._sliderHorizontal.setLeft(r),this._sliderHorizontal.setWidth(this._options.minimapWidth-r),this._sliderHorizontal.setTop(0),this._sliderHorizontal.setHeight(n.sliderHeight),this.renderDecorations(n),this._lastRenderData=this.renderLines(n)},t.prototype.renderDecorations=function(e){if(this._renderDecorations){this._renderDecorations=!1;var t=this._context.model.getDecorationsInViewport(new oe["a"](e.startLineNumber,1,e.endLineNumber,this._context.model.getLineMaxColumn(e.endLineNumber))),n=this._options,i=n.renderMinimap,r=n.canvasInnerWidth,o=n.canvasInnerHeight,s=Cn(i,this._options.fontScale),a=Sn(i,this._options.fontScale),u=this._context.model.getOptions().tabSize,l=this._decorationsCanvas.domNode.getContext("2d");l.clearRect(0,0,r,o);for(var c=new Map,d=0;d<this._selections.length;d++)for(var h=this._selections[d],f=h.startLineNumber;f<=h.endLineNumber;f++)this.renderDecorationOnLine(l,c,h,this._selectionColor,e,f,s,s,u,a);for(d=0;d<t.length;d++){var p=t[d];if(p.options.minimap){var g=p.options.minimap.getColor(this._context.theme);for(f=p.range.startLineNumber;f<=p.range.endLineNumber;f++)switch(p.options.minimap.position){case bn["c"].Inline:this.renderDecorationOnLine(l,c,p.range,g,e,f,s,s,u,a);continue;case bn["c"].Gutter:var A=(f-e.startLineNumber)*s,m=2;this.renderDecoration(l,g,m,A,Ln,s);continue}}}}},t.prototype.renderDecorationOnLine=function(e,t,n,i,r,o,s,a,u,l){var c=(o-r.startLineNumber)*a;if(!(c+s<0||c>this._options.canvasInnerHeight)){var d=t.get(o),h=!d;if(!d){var f=this._context.model.getLineContent(o);d=[z["f"]];for(var p=1;p<f.length+1;p++){var g=f.charCodeAt(p-1),A=9===g?u*l:Me["y"](g)?2*l:l;d[p]=d[p-1]+A}t.set(o,d)}var m=n.startColumn,v=n.endColumn,_=n.startLineNumber,y=n.endLineNumber,b=_===o?d[m-1]:z["f"],w=y>o?d.length-1:v-1;if(w>0){var C=d[w]-b||2;this.renderDecoration(e,i,b,c,C,s)}h&&this.renderLineHighlight(e,i,c,s)}},t.prototype.renderLineHighlight=function(e,t,n,i){e.fillStyle=t&&t.transparent(.5).toString()||"",e.fillRect(z["f"],n,e.canvas.width,i)},t.prototype.renderDecoration=function(e,t,n,i,r,o){e.fillStyle=t&&t.toString()||"",e.fillRect(n,i,r,o)},t.prototype.renderLines=function(e){var n=this._options.renderMinimap,i=this._options.charRenderer(),r=e.startLineNumber,o=e.endLineNumber,s=Cn(n,this._options.fontScale);if(this._lastRenderData&&this._lastRenderData.linesEquals(e)){var a=this._lastRenderData._get();return new Bn(e,a.imageData,a.lines)}var u=this._getBuffer();if(!u)return null;for(var l=t._renderUntouchedLines(u,r,o,s,this._lastRenderData),c=l[0],d=l[1],h=l[2],f=this._context.model.getMinimapLinesRenderingData(r,o,h),p=f.tabSize,g=this._tokensColorTracker.getColor(2),A=this._tokensColorTracker.backgroundIsLight(),m=0,v=[],_=0,y=o-r+1;_<y;_++)h[_]&&t._renderLine(u,g,A,n,this._tokensColorTracker,i,m,p,f.data[_],this._options.fontScale),v[_]=new On(m),m+=s;var b=-1===c?0:c,w=-1===d?u.height:d,C=w-b,S=this._canvas.domNode.getContext("2d");return S.putImageData(u,0,0,0,b,u.width,C),new Bn(e,u,v)},t._renderUntouchedLines=function(e,t,n,i,r){var o=[];if(!r){for(var s=0,a=n-t+1;s<a;s++)o[s]=!0;return[-1,-1,o]}for(var u=r._get(),l=u.imageData.data,c=u.rendLineNumberStart,d=u.lines,h=d.length,f=e.width,p=e.data,g=(n-t+1)*i*f*4,A=-1,m=-1,v=-1,_=-1,y=-1,b=-1,w=0,C=t;C<=n;C++){var S=C-t,N=C-c,L=N>=0&&N<h?d[N].dy:-1;if(-1!==L){var E=L*f*4,x=(L+i)*f*4,O=w*f*4,B=(w+i)*f*4;_===E&&b===O?(_=x,b=B):(-1!==v&&(p.set(l.subarray(v,_),y),-1===A&&0===v&&v===y&&(A=_),-1===m&&_===g&&v===y&&(m=v)),v=E,_=x,y=O,b=B),o[S]=!1,w+=i}else o[S]=!0,w+=i}-1!==v&&(p.set(l.subarray(v,_),y),-1===A&&0===v&&v===y&&(A=_),-1===m&&_===g&&v===y&&(m=v));var k=-1===A?-1:A/(4*f),D=-1===m?-1:m/(4*f);return[k,D,o]},t._renderLine=function(e,t,n,i,r,o,s,a,u,l){for(var c=u.content,d=u.tokens,h=Sn(i,l),f=e.width-h,p=z["f"],g=0,A=0,m=0,v=d.getCount();m<v;m++)for(var _=d.getEndOffset(m),y=d.getForeground(m),b=r.getColor(y);g<_;g++){if(p>f)return;var w=c.charCodeAt(g);if(9===w){var C=a-(g+A)%a;A+=C-1,p+=C*h}else if(32===w)p+=h;else for(var S=Me["y"](w)?2:1,N=0;N<S;N++)if(2===i?o.blockRenderChar(e,p,s,b,t,n):o.renderChar(e,p,s,w,b,t,l,n),p+=h,p>f)return}},t}(k);Object(W["e"])((function(e,t){var n=e.getColor(hn["Vb"]);if(n){var i=n.transparent(.5);t.addRule(".monaco-editor .minimap-slider, .monaco-editor .minimap-slider .minimap-slider-horizontal { background: "+i+"; }")}var r=e.getColor(hn["Wb"]);if(r){var o=r.transparent(.5);t.addRule(".monaco-editor .minimap-slider:hover, .monaco-editor .minimap-slider:hover .minimap-slider-horizontal { background: "+o+"; }")}var s=e.getColor(hn["Ub"]);if(s){var a=s.transparent(.5);t.addRule(".monaco-editor .minimap-slider.active, .monaco-editor .minimap-slider.active .minimap-slider-horizontal { background: "+a+"; }")}var u=e.getColor(hn["Tb"]);u&&t.addRule(".monaco-editor .minimap-shadow-visible { box-shadow: "+u+" -6px 0 6px -6px inset; }")}));n("cl4r");var In=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Mn=function(e){function t(t){var n=e.call(this,t)||this,i=n._context.configuration.options,r=i.get(107);return n._widgets={},n._verticalScrollbarWidth=r.verticalScrollbarWidth,n._minimapWidth=r.minimapWidth,n._horizontalScrollbarHeight=r.horizontalScrollbarHeight,n._editorHeight=r.height,n._editorWidth=r.width,n._domNode=Object(h["b"])(document.createElement("div")),D.write(n._domNode,4),n._domNode.setClassName("overlayWidgets"),n}return In(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._widgets={}},t.prototype.getDomNode=function(){return this._domNode},t.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options,n=t.get(107);return this._verticalScrollbarWidth=n.verticalScrollbarWidth,this._minimapWidth=n.minimapWidth,this._horizontalScrollbarHeight=n.horizontalScrollbarHeight,this._editorHeight=n.height,this._editorWidth=n.width,!0},t.prototype.addWidget=function(e){var t=Object(h["b"])(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()},t.prototype.setWidgetPosition=function(e,t){var n=this._widgets[e.getId()];return n.preference!==t&&(n.preference=t,this.setShouldRender(),!0)},t.prototype.removeWidget=function(e){var t=e.getId();if(this._widgets.hasOwnProperty(t)){var n=this._widgets[t],i=n.domNode.domNode;delete this._widgets[t],i.parentNode.removeChild(i),this.setShouldRender()}},t.prototype._renderWidget=function(e){var 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){var n=t.domNode.clientHeight;t.setTop(this._editorHeight-n-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()},t.prototype.prepareRender=function(e){},t.prototype.render=function(e){this._domNode.setWidth(this._editorWidth);for(var t=Object.keys(this._widgets),n=0,i=t.length;n<i;n++){var r=t[n];this._renderWidget(this._widgets[r])}},t}(k),Fn=n("zrhQ"),Tn=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Rn=function(){function e(e,t){var n=e.options;this.lineHeight=n.get(49),this.pixelRatio=n.get(105),this.overviewRulerLanes=n.get(63),this.renderBorder=n.get(62);var i=t.getColor(Ue["k"]);this.borderColor=i?i.toString():null,this.hideCursor=n.get(42);var r=t.getColor(Ue["f"]);this.cursorColor=r?r.transparent(.7).toString():null,this.themeType=t.type;var o=n.get(54),s=o.enabled,a=o.side,u=s?cn["y"].getDefaultBackground():null;this.backgroundColor=null===u||"left"===a?null:Fn["a"].Format.CSS.formatHex(u);var l=n.get(107),c=l.overviewRuler;this.top=c.top,this.right=c.right,this.domWidth=c.width,this.domHeight=c.height,0===this.overviewRulerLanes?(this.canvasWidth=0,this.canvasHeight=0):(this.canvasWidth=this.domWidth*this.pixelRatio|0,this.canvasHeight=this.domHeight*this.pixelRatio|0);var d=this._initLanes(1,this.canvasWidth,this.overviewRulerLanes),h=d[0],f=d[1];this.x=h,this.w=f}return e.prototype._initLanes=function(e,t,n){var i=t-e;if(n>=3){var r=Math.floor(i/3),o=Math.floor(i/3),s=i-r-o,a=e,u=a+r,l=a+r+s;return[[0,a,u,a,l,a,u,a],[0,r,s,r+s,o,r+s+o,s+o,r+s+o]]}if(2===n){r=Math.floor(i/2),o=i-r,a=e,l=a+r;return[[0,a,a,a,l,a,a,a],[0,r,r,r,o,r+o,r+o,r+o]]}var c=e,d=i;return[[0,c,c,c,c,c,c,c],[0,d,d,d,d,d,d,d]]},e.prototype.equals=function(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},e}(),Pn=function(e){function t(t){var n=e.call(this,t)||this;return n._domNode=Object(h["b"])(document.createElement("canvas")),n._domNode.setClassName("decorationsOverviewRuler"),n._domNode.setPosition("absolute"),n._domNode.setLayerHinting(!0),n._domNode.setContain("strict"),n._domNode.setAttribute("aria-hidden","true"),n._updateSettings(!1),n._tokensColorTrackerListener=cn["y"].onDidChange((function(e){e.changedColorMap&&n._updateSettings(!0)})),n._cursorPositions=[],n}return Tn(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._tokensColorTrackerListener.dispose()},t.prototype._updateSettings=function(e){var t=new Rn(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)},t.prototype.onConfigurationChanged=function(e){return this._updateSettings(!1)},t.prototype.onCursorStateChanged=function(e){this._cursorPositions=[];for(var t=0,n=e.selections.length;t<n;t++)this._cursorPositions[t]=e.selections[t].getPosition();return this._cursorPositions.sort(re["a"].compare),!0},t.prototype.onDecorationsChanged=function(e){return!0},t.prototype.onFlushed=function(e){return!0},t.prototype.onScrollChanged=function(e){return e.scrollHeightChanged},t.prototype.onZonesChanged=function(e){return!0},t.prototype.onThemeChanged=function(e){return this._context.model.invalidateOverviewRulerColorCache(),this._updateSettings(!1)},t.prototype.getDomNode=function(){return this._domNode.domNode},t.prototype.prepareRender=function(e){},t.prototype.render=function(e){this._render()},t.prototype._render=function(){if(0!==this._settings.overviewRulerLanes){var e=this._settings.canvasWidth,t=this._settings.canvasHeight,n=this._settings.lineHeight,i=this._context.viewLayout,r=this._context.viewLayout.getScrollHeight(),o=t/r,s=this._context.model.getAllOverviewRulerDecorations(this._context.theme),a=6*this._settings.pixelRatio|0,u=a/2|0,l=this._domNode.domNode.getContext("2d");null===this._settings.backgroundColor?l.clearRect(0,0,e,t):(l.fillStyle=this._settings.backgroundColor,l.fillRect(0,0,e,t));var c=this._settings.x,d=this._settings.w,h=Object.keys(s);h.sort();for(var f=0,p=h.length;f<p;f++){var g=h[f],A=s[g];l.fillStyle=g;for(var m=0,v=0,_=0,y=0,b=A.length;y<b;y++){var w=A[3*y],C=A[3*y+1],S=A[3*y+2],N=i.getVerticalOffsetForLineNumber(C)*o|0,L=(i.getVerticalOffsetForLineNumber(S)+n)*o|0,E=L-N;if(E<a){var x=(N+L)/2|0;x<u?x=u:x+u>t&&(x=t-u),N=x-u,L=x+u}N>_+1||w!==m?(0!==y&&l.fillRect(c[m],v,d[m],_-v),m=w,v=N,_=L):L>_&&(_=L)}l.fillRect(c[m],v,d[m],_-v)}if(!this._settings.hideCursor&&this._settings.cursorColor){var O=2*this._settings.pixelRatio|0,B=O/2|0,k=this._settings.x[7],D=this._settings.w[7];l.fillStyle=this._settings.cursorColor;for(v=-100,_=-100,y=0,b=this._cursorPositions.length;y<b;y++){var I=this._cursorPositions[y];x=i.getVerticalOffsetForLineNumber(I.lineNumber)*o|0;x<B?x=B:x+B>t&&(x=t-B);N=x-B,L=N+O;N>_+1?(0!==y&&l.fillRect(k,v,D,_-v),v=N,_=L):L>_&&(_=L)}l.fillRect(k,v,D,_-v)}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())}else this._domNode.setBackgroundColor(this._settings.backgroundColor?this._settings.backgroundColor:"")},t}(k),Un=n("MvK1"),Hn=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),jn=function(e){function t(t,n){var i=e.call(this)||this;i._context=t;var r=i._context.configuration.options;return i._domNode=Object(h["b"])(document.createElement("canvas")),i._domNode.setClassName(n),i._domNode.setPosition("absolute"),i._domNode.setLayerHinting(!0),i._domNode.setContain("strict"),i._zoneManager=new Un["b"]((function(e){return i._context.viewLayout.getVerticalOffsetForLineNumber(e)})),i._zoneManager.setDOMWidth(0),i._zoneManager.setDOMHeight(0),i._zoneManager.setOuterHeight(i._context.viewLayout.getScrollHeight()),i._zoneManager.setLineHeight(r.get(49)),i._zoneManager.setPixelRatio(r.get(105)),i._context.addEventHandler(i),i}return Hn(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options;return e.hasChanged(49)&&(this._zoneManager.setLineHeight(t.get(49)),this._render()),e.hasChanged(105)&&(this._zoneManager.setPixelRatio(t.get(105)),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},t.prototype.onFlushed=function(e){return this._render(),!0},t.prototype.onScrollChanged=function(e){return e.scrollHeightChanged&&(this._zoneManager.setOuterHeight(e.scrollHeight),this._render()),!0},t.prototype.onZonesChanged=function(e){return this._render(),!0},t.prototype.getDomNode=function(){return this._domNode.domNode},t.prototype.setLayout=function(e){this._domNode.setTop(e.top),this._domNode.setRight(e.right);var 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())},t.prototype.setZones=function(e){this._zoneManager.setZones(e),this._render()},t.prototype._render=function(){if(0===this._zoneManager.getOuterHeight())return!1;var e=this._zoneManager.getCanvasWidth(),t=this._zoneManager.getCanvasHeight(),n=this._zoneManager.resolveColorZones(),i=this._zoneManager.getId2Color(),r=this._domNode.domNode.getContext("2d");return r.clearRect(0,0,e,t),n.length>0&&this._renderOneLane(r,n,i,e),!0},t.prototype._renderOneLane=function(e,t,n,i){for(var r=0,o=0,s=0,a=0,u=t;a<u.length;a++){var l=u[a],c=l.colorId,d=l.from,h=l.to;c!==r?(e.fillRect(0,o,i,s-o),r=c,e.fillStyle=n[r],o=d,s=h):s>=d?s=Math.max(s,h):(e.fillRect(0,o,i,s-o),o=d,s=h)}e.fillRect(0,o,i,s-o)},t}(O),Qn=(n("7zd4"),function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}()),Vn=function(e){function t(t){var n=e.call(this,t)||this;n.domNode=Object(h["b"])(document.createElement("div")),n.domNode.setAttribute("role","presentation"),n.domNode.setAttribute("aria-hidden","true"),n.domNode.setClassName("view-rulers"),n._renderedRulers=[];var i=n._context.configuration.options;return n._rulers=i.get(77),n._typicalHalfwidthCharacterWidth=i.get(34).typicalHalfwidthCharacterWidth,n}return Qn(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options;return this._rulers=t.get(77),this._typicalHalfwidthCharacterWidth=t.get(34).typicalHalfwidthCharacterWidth,!0},t.prototype.onScrollChanged=function(e){return e.scrollHeightChanged},t.prototype.prepareRender=function(e){},t.prototype._ensureRulersCount=function(){var e=this._renderedRulers.length,t=this._rulers.length;if(e!==t)if(e<t){var n=this._context.model.getOptions().tabSize,i=n,r=t-e;while(r>0){var o=Object(h["b"])(document.createElement("div"));o.setClassName("view-ruler"),o.setWidth(i),this.domNode.appendChild(o),this._renderedRulers.push(o),r--}}else{var s=e-t;while(s>0){o=this._renderedRulers.pop();this.domNode.removeChild(o),s--}}},t.prototype.render=function(e){this._ensureRulersCount();for(var t=0,n=this._rulers.length;t<n;t++){var i=this._renderedRulers[t];i.setHeight(Math.min(e.scrollHeight,1e6)),i.setLeft(this._rulers[t]*this._typicalHalfwidthCharacterWidth)}},t}(k);Object(W["e"])((function(e,t){var n=e.getColor(Ue["l"]);n&&t.addRule(".monaco-editor .view-ruler { box-shadow: 1px 0 0 0 "+n+" inset; }")}));n("2MPD");var Wn=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),zn=function(e){function t(t){var n=e.call(this,t)||this;n._scrollTop=0,n._width=0,n._updateWidth(),n._shouldShow=!1;var i=n._context.configuration.options,r=i.get(78);return n._useShadows=r.useShadows,n._domNode=Object(h["b"])(document.createElement("div")),n._domNode.setAttribute("role","presentation"),n._domNode.setAttribute("aria-hidden","true"),n}return Wn(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype._updateShouldShow=function(){var e=this._useShadows&&this._scrollTop>0;return this._shouldShow!==e&&(this._shouldShow=e,!0)},t.prototype.getDomNode=function(){return this._domNode},t.prototype._updateWidth=function(){var e=this._context.configuration.options,t=e.get(107);0===t.renderMinimap||t.minimapWidth>0&&0===t.minimapLeft?this._width=t.width:this._width=t.width-t.minimapWidth-t.verticalScrollbarWidth},t.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options,n=t.get(78);return this._useShadows=n.useShadows,this._updateWidth(),this._updateShouldShow(),!0},t.prototype.onScrollChanged=function(e){return this._scrollTop=e.scrollTop,this._updateShouldShow()},t.prototype.prepareRender=function(e){},t.prototype.render=function(e){this._domNode.setWidth(this._width),this._domNode.setClassName(this._shouldShow?"scroll-decoration":"")},t}(k);Object(W["e"])((function(e,t){var n=e.getColor(hn["Tb"]);n&&t.addRule(".monaco-editor .scroll-decoration { box-shadow: "+n+" 0 6px 6px -6px inset; }")}));n("eC1c");var Kn=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),qn=function(){function e(e){this.left=e.left,this.width=e.width,this.startStyle=null,this.endStyle=null}return e}(),Gn=function(){function e(e,t){this.lineNumber=e,this.ranges=t}return e}();function Xn(e){return new qn(e)}function Yn(e){return new Gn(e.lineNumber,e.ranges.map(Xn))}var Jn=g["f"],Zn=function(e){function t(t){var n=e.call(this)||this;n._previousFrameVisibleRangesWithStyle=[],n._context=t;var i=n._context.configuration.options;return n._lineHeight=i.get(49),n._roundedSelection=i.get(76),n._typicalHalfwidthCharacterWidth=i.get(34).typicalHalfwidthCharacterWidth,n._selections=[],n._renderResult=null,n._context.addEventHandler(n),n}return Kn(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options;return this._lineHeight=t.get(49),this._roundedSelection=t.get(76),this._typicalHalfwidthCharacterWidth=t.get(34).typicalHalfwidthCharacterWidth,!0},t.prototype.onCursorStateChanged=function(e){return this._selections=e.selections.slice(0),!0},t.prototype.onDecorationsChanged=function(e){return!0},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesChanged=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return e.scrollTopChanged},t.prototype.onZonesChanged=function(e){return!0},t.prototype._visibleRangesHaveGaps=function(e){for(var t=0,n=e.length;t<n;t++){var i=e[t];if(i.ranges.length>1)return!0}return!1},t.prototype._enrichVisibleRangesWithStyle=function(e,t,n){var i=this._typicalHalfwidthCharacterWidth/4,r=null,o=null;if(n&&n.length>0&&t.length>0){var s=t[0].lineNumber;if(s===e.startLineNumber)for(var a=0;!r&&a<n.length;a++)n[a].lineNumber===s&&(r=n[a].ranges[0]);var u=t[t.length-1].lineNumber;if(u===e.endLineNumber)for(a=n.length-1;!o&&a>=0;a--)n[a].lineNumber===u&&(o=n[a].ranges[0]);r&&!r.startStyle&&(r=null),o&&!o.startStyle&&(o=null)}a=0;for(var l=t.length;a<l;a++){var c=t[a].ranges[0],d=c.left,h=c.left+c.width,f={top:0,bottom:0},p={top:0,bottom:0};if(a>0){var g=t[a-1].ranges[0].left,A=t[a-1].ranges[0].left+t[a-1].ranges[0].width;$n(d-g)<i?f.top=2:d>g&&(f.top=1),$n(h-A)<i?p.top=2:g<h&&h<A&&(p.top=1)}else r&&(f.top=r.startStyle.top,p.top=r.endStyle.top);if(a+1<l){var m=t[a+1].ranges[0].left,v=t[a+1].ranges[0].left+t[a+1].ranges[0].width;$n(d-m)<i?f.bottom=2:m<d&&d<v&&(f.bottom=1),$n(h-v)<i?p.bottom=2:h<v&&(p.bottom=1)}else o&&(f.bottom=o.startStyle.bottom,p.bottom=o.endStyle.bottom);c.startStyle=f,c.endStyle=p}},t.prototype._getVisibleRangesWithStyle=function(e,t,n){var i=t.linesVisibleRangesForRange(e,!0)||[],r=i.map(Yn),o=this._visibleRangesHaveGaps(r);return Jn||o||!this._roundedSelection||this._enrichVisibleRangesWithStyle(t.visibleRange,r,n),r},t.prototype._createSelectionPiece=function(e,t,n,i,r){return'<div class="cslr '+n+'" style="top:'+e.toString()+"px;left:"+i.toString()+"px;width:"+r.toString()+"px;height:"+t+'px;"></div>'},t.prototype._actualRenderOneSelection=function(e,n,i,r){if(0!==r.length)for(var o=!!r[0].ranges[0].startStyle,s=this._lineHeight.toString(),a=(this._lineHeight-1).toString(),u=r[0].lineNumber,l=r[r.length-1].lineNumber,c=0,d=r.length;c<d;c++){for(var h=r[c],f=h.lineNumber,p=f-n,g=i&&(f===l||f===u)?a:s,A=i&&f===u?1:0,m="",v="",_=0,y=h.ranges.length;_<y;_++){var b=h.ranges[_];if(o){var w=b.startStyle,C=b.endStyle;if(1===w.top||1===w.bottom){m+=this._createSelectionPiece(A,g,t.SELECTION_CLASS_NAME,b.left-t.ROUNDED_PIECE_WIDTH,t.ROUNDED_PIECE_WIDTH);var S=t.EDITOR_BACKGROUND_CLASS_NAME;1===w.top&&(S+=" "+t.SELECTION_TOP_RIGHT),1===w.bottom&&(S+=" "+t.SELECTION_BOTTOM_RIGHT),m+=this._createSelectionPiece(A,g,S,b.left-t.ROUNDED_PIECE_WIDTH,t.ROUNDED_PIECE_WIDTH)}if(1===C.top||1===C.bottom){m+=this._createSelectionPiece(A,g,t.SELECTION_CLASS_NAME,b.left+b.width,t.ROUNDED_PIECE_WIDTH);var N=t.EDITOR_BACKGROUND_CLASS_NAME;1===C.top&&(N+=" "+t.SELECTION_TOP_LEFT),1===C.bottom&&(N+=" "+t.SELECTION_BOTTOM_LEFT),m+=this._createSelectionPiece(A,g,N,b.left+b.width,t.ROUNDED_PIECE_WIDTH)}}var L=t.SELECTION_CLASS_NAME;if(o){w=b.startStyle,C=b.endStyle;0===w.top&&(L+=" "+t.SELECTION_TOP_LEFT),0===w.bottom&&(L+=" "+t.SELECTION_BOTTOM_LEFT),0===C.top&&(L+=" "+t.SELECTION_TOP_RIGHT),0===C.bottom&&(L+=" "+t.SELECTION_BOTTOM_RIGHT)}v+=this._createSelectionPiece(A,g,L,b.left,b.width)}e[p][0]+=m,e[p][1]+=v}},t.prototype.prepareRender=function(e){for(var t=[],n=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber,r=n;r<=i;r++){var o=r-n;t[o]=["",""]}for(var s=[],a=0,u=this._selections.length;a<u;a++){var l=this._selections[a];if(l.isEmpty())s[a]=null;else{var c=this._getVisibleRangesWithStyle(l,e,this._previousFrameVisibleRangesWithStyle[a]);s[a]=c,this._actualRenderOneSelection(t,n,this._selections.length>1,c)}}this._previousFrameVisibleRangesWithStyle=s,this._renderResult=t.map((function(e){var t=e[0],n=e[1];return t+n}))},t.prototype.render=function(e,t){if(!this._renderResult)return"";var n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]},t.SELECTION_CLASS_NAME="selected-text",t.SELECTION_TOP_LEFT="top-left-radius",t.SELECTION_BOTTOM_LEFT="bottom-left-radius",t.SELECTION_TOP_RIGHT="top-right-radius",t.SELECTION_BOTTOM_RIGHT="bottom-right-radius",t.EDITOR_BACKGROUND_CLASS_NAME="monaco-editor-background",t.ROUNDED_PIECE_WIDTH=10,t}(Pe);function $n(e){return e<0?-e:e}Object(W["e"])((function(e,t){var n=e.getColor(hn["K"]);n&&t.addRule(".monaco-editor .focused .selected-text { background-color: "+n+"; }");var i=e.getColor(hn["F"]);i&&t.addRule(".monaco-editor .selected-text { background-color: "+i+"; }");var r=e.getColor(hn["L"]);r&&t.addRule(".monaco-editor .view-line span.inline-selected-text { color: "+r+"; }")}));n("2Tsy");var ei=function(){function e(e,t,n,i,r,o){this.top=e,this.left=t,this.width=n,this.height=i,this.textContent=r,this.textContentClassName=o}return e}(),ti=function(){function e(e){this._context=e;var t=this._context.configuration.options,n=t.get(34);this._cursorStyle=t.get(18),this._lineHeight=t.get(49),this._typicalHalfwidthCharacterWidth=n.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(t.get(21),this._typicalHalfwidthCharacterWidth),this._isVisible=!0,this._domNode=Object(h["b"])(document.createElement("div")),this._domNode.setClassName("cursor"),this._domNode.setHeight(this._lineHeight),this._domNode.setTop(0),this._domNode.setLeft(0),l["a"].applyFontInfo(this._domNode,n),this._domNode.setDisplay("none"),this._position=new re["a"](1,1),this._lastRenderedContent="",this._renderData=null}return e.prototype.getDomNode=function(){return this._domNode},e.prototype.getPosition=function(){return this._position},e.prototype.show=function(){this._isVisible||(this._domNode.setVisibility("inherit"),this._isVisible=!0)},e.prototype.hide=function(){this._isVisible&&(this._domNode.setVisibility("hidden"),this._isVisible=!1)},e.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options,n=t.get(34);return this._cursorStyle=t.get(18),this._lineHeight=t.get(49),this._typicalHalfwidthCharacterWidth=n.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(t.get(21),this._typicalHalfwidthCharacterWidth),l["a"].applyFontInfo(this._domNode,n),!0},e.prototype.onCursorPositionChanged=function(e){return this._position=e,!0},e.prototype._prepareRender=function(e){var t="";if(this._cursorStyle===z["g"].Line||this._cursorStyle===z["g"].LineThin){var n,i=e.visibleRangeForPosition(this._position);if(!i||i.outsideRenderedLine)return null;if(this._cursorStyle===z["g"].Line){if(n=r["t"](this._lineCursorWidth>0?this._lineCursorWidth:2),n>2){var o=this._context.model.getLineContent(this._position.lineNumber),s=Me["E"](o,this._position.column-1);t=o.substr(this._position.column-1,s)}}else n=r["t"](1);var a=i.left;n>=2&&a>=1&&(a-=1);var u=e.getVerticalOffsetForLineNumber(this._position.lineNumber)-e.bigNumbersDelta;return new ei(u,a,n,this._lineHeight,t,"")}var l=this._context.model.getLineContent(this._position.lineNumber),c=Me["E"](l,this._position.column-1),d=e.linesVisibleRangesForRange(new oe["a"](this._position.lineNumber,this._position.column,this._position.lineNumber,this._position.column+c),!1);if(!d||0===d.length)return null;var h=d[0];if(h.outsideRenderedLine||0===h.ranges.length)return null;var f=h.ranges[0],p=f.width<1?this._typicalHalfwidthCharacterWidth:f.width,g="";if(this._cursorStyle===z["g"].Block){var A=this._context.model.getViewLineData(this._position.lineNumber);t=l.substr(this._position.column-1,c);var m=A.tokens.findTokenIndexAtOffset(this._position.column-1);g=A.tokens.getClassName(m)}var v=e.getVerticalOffsetForLineNumber(this._position.lineNumber)-e.bigNumbersDelta,_=this._lineHeight;return this._cursorStyle!==z["g"].Underline&&this._cursorStyle!==z["g"].UnderlineThin||(v+=this._lineHeight-2,_=2),new ei(v,f.left,p,_,t,g)},e.prototype.prepareRender=function(e){this._renderData=this._prepareRender(e)},e.prototype.render=function(e){return this._renderData?(this._lastRenderedContent!==this._renderData.textContent&&(this._lastRenderedContent=this._renderData.textContent,this._domNode.domNode.textContent=this._lastRenderedContent),this._domNode.setClassName("cursor "+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)},e}(),ni=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),ii=function(e){function t(t){var n=e.call(this,t)||this,i=n._context.configuration.options;return n._readOnly=i.get(68),n._cursorBlinking=i.get(16),n._cursorStyle=i.get(18),n._cursorSmoothCaretAnimation=i.get(17),n._selectionIsEmpty=!0,n._isVisible=!1,n._primaryCursor=new ti(n._context),n._secondaryCursors=[],n._renderData=[],n._domNode=Object(h["b"])(document.createElement("div")),n._domNode.setAttribute("role","presentation"),n._domNode.setAttribute("aria-hidden","true"),n._updateDomClassName(),n._domNode.appendChild(n._primaryCursor.getDomNode()),n._startCursorBlinkAnimation=new m["e"],n._cursorFlatBlinkInterval=new m["c"],n._blinkingEnabled=!1,n._editorHasFocus=!1,n._updateBlinking(),n}return ni(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._startCursorBlinkAnimation.dispose(),this._cursorFlatBlinkInterval.dispose()},t.prototype.getDomNode=function(){return this._domNode},t.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options;this._readOnly=t.get(68),this._cursorBlinking=t.get(16),this._cursorStyle=t.get(18),this._cursorSmoothCaretAnimation=t.get(17),this._updateBlinking(),this._updateDomClassName(),this._primaryCursor.onConfigurationChanged(e);for(var n=0,i=this._secondaryCursors.length;n<i;n++)this._secondaryCursors[n].onConfigurationChanged(e);return!0},t.prototype._onCursorPositionChanged=function(e,t){if(this._primaryCursor.onCursorPositionChanged(e),this._updateBlinking(),this._secondaryCursors.length<t.length)for(var n=t.length-this._secondaryCursors.length,i=0;i<n;i++){var r=new ti(this._context);this._domNode.domNode.insertBefore(r.getDomNode().domNode,this._primaryCursor.getDomNode().domNode.nextSibling),this._secondaryCursors.push(r)}else if(this._secondaryCursors.length>t.length){var o=this._secondaryCursors.length-t.length;for(i=0;i<o;i++)this._domNode.removeChild(this._secondaryCursors[0].getDomNode()),this._secondaryCursors.splice(0,1)}for(i=0;i<t.length;i++)this._secondaryCursors[i].onCursorPositionChanged(t[i])},t.prototype.onCursorStateChanged=function(e){for(var t=[],n=0,i=e.selections.length;n<i;n++)t[n]=e.selections[n].getPosition();this._onCursorPositionChanged(t[0],t.slice(1));var r=e.selections[0].isEmpty();return this._selectionIsEmpty!==r&&(this._selectionIsEmpty=r,this._updateDomClassName()),!0},t.prototype.onDecorationsChanged=function(e){return!0},t.prototype.onFlushed=function(e){return!0},t.prototype.onFocusChanged=function(e){return this._editorHasFocus=e.isFocused,this._updateBlinking(),!1},t.prototype.onLinesChanged=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return!0},t.prototype.onTokensChanged=function(e){var t=function(t){for(var n=0,i=e.ranges.length;n<i;n++)if(e.ranges[n].fromLineNumber<=t.lineNumber&&t.lineNumber<=e.ranges[n].toLineNumber)return!0;return!1};if(t(this._primaryCursor.getPosition()))return!0;for(var n=0,i=this._secondaryCursors;n<i.length;n++){var r=i[n];if(t(r.getPosition()))return!0}return!1},t.prototype.onZonesChanged=function(e){return!0},t.prototype._getCursorBlinking=function(){return this._editorHasFocus?this._readOnly?5:this._cursorBlinking:0},t.prototype._updateBlinking=function(){var e=this;this._startCursorBlinkAnimation.cancel(),this._cursorFlatBlinkInterval.cancel();var n=this._getCursorBlinking(),i=0===n,r=5===n;i?this._hide():this._show(),this._blinkingEnabled=!1,this._updateDomClassName(),i||r||(1===n?this._cursorFlatBlinkInterval.cancelAndSet((function(){e._isVisible?e._hide():e._show()}),t.BLINK_INTERVAL):this._startCursorBlinkAnimation.setIfNotSet((function(){e._blinkingEnabled=!0,e._updateDomClassName()}),t.BLINK_INTERVAL))},t.prototype._updateDomClassName=function(){this._domNode.setClassName(this._getClassName())},t.prototype._getClassName=function(){var e="cursors-layer";switch(this._selectionIsEmpty||(e+=" has-selection"),this._cursorStyle){case z["g"].Line:e+=" cursor-line-style";break;case z["g"].Block:e+=" cursor-block-style";break;case z["g"].Underline:e+=" cursor-underline-style";break;case z["g"].LineThin:e+=" cursor-line-thin-style";break;case z["g"].BlockOutline:e+=" cursor-block-outline-style";break;case z["g"].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;case 5:e+=" cursor-solid";break;default:e+=" cursor-solid"}else e+=" cursor-solid";return this._cursorSmoothCaretAnimation&&(e+=" cursor-smooth-caret-animation"),e},t.prototype._show=function(){this._primaryCursor.show();for(var e=0,t=this._secondaryCursors.length;e<t;e++)this._secondaryCursors[e].show();this._isVisible=!0},t.prototype._hide=function(){this._primaryCursor.hide();for(var e=0,t=this._secondaryCursors.length;e<t;e++)this._secondaryCursors[e].hide();this._isVisible=!1},t.prototype.prepareRender=function(e){this._primaryCursor.prepareRender(e);for(var t=0,n=this._secondaryCursors.length;t<n;t++)this._secondaryCursors[t].prepareRender(e)},t.prototype.render=function(e){var t=[],n=0,i=this._primaryCursor.render(e);i&&(t[n++]=i);for(var r=0,o=this._secondaryCursors.length;r<o;r++){var s=this._secondaryCursors[r].render(e);s&&(t[n++]=s)}this._renderData=t},t.prototype.getLastRenderData=function(){return this._renderData},t.BLINK_INTERVAL=500,t}(k);Object(W["e"])((function(e,t){var n=e.getColor(Ue["f"]);if(n){var i=e.getColor(Ue["e"]);i||(i=n.opposite()),t.addRule(".monaco-editor .cursor { background-color: "+n+"; border-color: "+n+"; color: "+i+"; }"),"hc"===e.type&&t.addRule(".monaco-editor .cursors-layer.has-selection .cursor { border-left: 1px solid "+i+"; border-right: 1px solid "+i+"; }")}}));var ri=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),oi=function(){throw new Error("Invalid change accessor")},si=function(e){function t(t){var n=e.call(this,t)||this,i=n._context.configuration.options,r=i.get(107);return n._lineHeight=i.get(49),n._contentWidth=r.contentWidth,n._contentLeft=r.contentLeft,n.domNode=Object(h["b"])(document.createElement("div")),n.domNode.setClassName("view-zones"),n.domNode.setPosition("absolute"),n.domNode.setAttribute("role","presentation"),n.domNode.setAttribute("aria-hidden","true"),n.marginDomNode=Object(h["b"])(document.createElement("div")),n.marginDomNode.setClassName("margin-view-zones"),n.marginDomNode.setPosition("absolute"),n.marginDomNode.setAttribute("role","presentation"),n.marginDomNode.setAttribute("aria-hidden","true"),n._zones={},n}return ri(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._zones={}},t.prototype._recomputeWhitespacesProps=function(){for(var e=this,t=this._context.viewLayout.getWhitespaces(),n=new Map,i=0,r=t;i<r.length;i++){var o=r[i];n.set(o.id,o)}return this._context.viewLayout.changeWhitespace((function(t){for(var i=!1,r=Object.keys(e._zones),o=0,s=r.length;o<s;o++){var a=r[o],u=e._zones[a],l=e._computeWhitespaceProps(u.delegate),c=n.get(a);!c||c.afterLineNumber===l.afterViewLineNumber&&c.height===l.heightInPx||(t.changeOneWhitespace(a,l.afterViewLineNumber,l.heightInPx),e._safeCallOnComputedHeight(u.delegate,l.heightInPx),i=!0)}return i}))},t.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.options,n=t.get(107);return this._lineHeight=t.get(49),this._contentWidth=n.contentWidth,this._contentLeft=n.contentLeft,e.hasChanged(49)&&this._recomputeWhitespacesProps(),!0},t.prototype.onLineMappingChanged=function(e){var t=this._recomputeWhitespacesProps();return t&&this._context.viewLayout.onHeightMaybeChanged(),t},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onScrollChanged=function(e){return e.scrollTopChanged||e.scrollWidthChanged},t.prototype.onZonesChanged=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype._getZoneOrdinal=function(e){return"undefined"!==typeof e.afterColumn?e.afterColumn:1e4},t.prototype._computeWhitespaceProps=function(e){if(0===e.afterLineNumber)return{afterViewLineNumber:0,heightInPx:this._heightInPixels(e),minWidthInPx:this._minWidthInPixels(e)};var t,n;if("undefined"!==typeof e.afterColumn)t=this._context.model.validateModelPosition({lineNumber:e.afterLineNumber,column:e.afterColumn});else{var i=this._context.model.validateModelPosition({lineNumber:e.afterLineNumber,column:1}).lineNumber;t=new re["a"](i,this._context.model.getModelLineMaxColumn(i))}n=t.column===this._context.model.getModelLineMaxColumn(t.lineNumber)?this._context.model.validateModelPosition({lineNumber:t.lineNumber+1,column:1}):this._context.model.validateModelPosition({lineNumber:t.lineNumber,column:t.column+1});var r=this._context.model.coordinatesConverter.convertModelPositionToViewPosition(t),o=this._context.model.coordinatesConverter.modelPositionIsVisible(n);return{afterViewLineNumber:r.lineNumber,heightInPx:o?this._heightInPixels(e):0,minWidthInPx:this._minWidthInPixels(e)}},t.prototype.changeViewZones=function(e){var t=this;return this._context.viewLayout.changeWhitespace((function(n){var i=!1,r={addZone:function(e){return i=!0,t._addZone(n,e)},removeZone:function(e){e&&(i=t._removeZone(n,e)||i)},layoutZone:function(e){e&&(i=t._layoutZone(n,e)||i)}};return ai(e,r),r.addZone=oi,r.removeZone=oi,r.layoutZone=oi,i}))},t.prototype._addZone=function(e,t){var n=this._computeWhitespaceProps(t),i=e.insertWhitespace(n.afterViewLineNumber,this._getZoneOrdinal(t),n.heightInPx,n.minWidthInPx),r={whitespaceId:i,delegate:t,isVisible:!1,domNode:Object(h["b"])(t.domNode),marginDomNode:t.marginDomNode?Object(h["b"])(t.marginDomNode):null};return this._safeCallOnComputedHeight(r.delegate,n.heightInPx),r.domNode.setPosition("absolute"),r.domNode.domNode.style.width="100%",r.domNode.setDisplay("none"),r.domNode.setAttribute("monaco-view-zone",r.whitespaceId),this.domNode.appendChild(r.domNode),r.marginDomNode&&(r.marginDomNode.setPosition("absolute"),r.marginDomNode.domNode.style.width="100%",r.marginDomNode.setDisplay("none"),r.marginDomNode.setAttribute("monaco-view-zone",r.whitespaceId),this.marginDomNode.appendChild(r.marginDomNode)),this._zones[r.whitespaceId]=r,this.setShouldRender(),r.whitespaceId},t.prototype._removeZone=function(e,t){if(this._zones.hasOwnProperty(t)){var n=this._zones[t];return delete this._zones[t],e.removeWhitespace(n.whitespaceId),n.domNode.removeAttribute("monaco-visible-view-zone"),n.domNode.removeAttribute("monaco-view-zone"),n.domNode.domNode.parentNode.removeChild(n.domNode.domNode),n.marginDomNode&&(n.marginDomNode.removeAttribute("monaco-visible-view-zone"),n.marginDomNode.removeAttribute("monaco-view-zone"),n.marginDomNode.domNode.parentNode.removeChild(n.marginDomNode.domNode)),this.setShouldRender(),!0}return!1},t.prototype._layoutZone=function(e,t){if(this._zones.hasOwnProperty(t)){var n=this._zones[t],i=this._computeWhitespaceProps(n.delegate);return e.changeOneWhitespace(n.whitespaceId,i.afterViewLineNumber,i.heightInPx),this._safeCallOnComputedHeight(n.delegate,i.heightInPx),this.setShouldRender(),!0}return!1},t.prototype.shouldSuppressMouseDownOnViewZone=function(e){if(this._zones.hasOwnProperty(e)){var t=this._zones[e];return Boolean(t.delegate.suppressMouseDown)}return!1},t.prototype._heightInPixels=function(e){return"number"===typeof e.heightInPx?e.heightInPx:"number"===typeof e.heightInLines?this._lineHeight*e.heightInLines:this._lineHeight},t.prototype._minWidthInPixels=function(e){return"number"===typeof e.minWidthInPx?e.minWidthInPx:0},t.prototype._safeCallOnComputedHeight=function(e,t){if("function"===typeof e.onComputedHeight)try{e.onComputedHeight(t)}catch(n){Object(o["e"])(n)}},t.prototype._safeCallOnDomNodeTop=function(e,t){if("function"===typeof e.onDomNodeTop)try{e.onDomNodeTop(t)}catch(n){Object(o["e"])(n)}},t.prototype.prepareRender=function(e){},t.prototype.render=function(e){for(var t=e.viewportData.whitespaceViewportData,n={},i=!1,r=0,o=t.length;r<o;r++)n[t[r].id]=t[r],i=!0;var s=Object.keys(this._zones);for(r=0,o=s.length;r<o;r++){var a=s[r],u=this._zones[a],l=0,c=0,d="none";n.hasOwnProperty(a)?(l=n[a].verticalOffset-e.bigNumbersDelta,c=n[a].height,d="block",u.isVisible||(u.domNode.setAttribute("monaco-visible-view-zone","true"),u.isVisible=!0),this._safeCallOnDomNodeTop(u.delegate,e.getScrolledTopFromAbsoluteTop(n[a].verticalOffset))):(u.isVisible&&(u.domNode.removeAttribute("monaco-visible-view-zone"),u.isVisible=!1),this._safeCallOnDomNodeTop(u.delegate,e.getScrolledTopFromAbsoluteTop(-1e6))),u.domNode.setTop(l),u.domNode.setHeight(c),u.domNode.setDisplay(d),u.marginDomNode&&(u.marginDomNode.setTop(l),u.marginDomNode.setHeight(c),u.marginDomNode.setDisplay(d))}i&&(this.domNode.setWidth(Math.max(e.scrollWidth,this._contentWidth)),this.marginDomNode.setWidth(this._contentLeft))},t}(k);function ai(e,t){try{return e(t)}catch(n){Object(o["e"])(n)}}var ui=function(){function e(e,t,n,i){this.configuration=e,this.theme=t,this.model=n,this.viewLayout=n.viewLayout,this.privateViewEventBus=i}return e.prototype.addEventHandler=function(e){this.privateViewEventBus.addEventHandler(e)},e.prototype.removeEventHandler=function(e){this.privateViewEventBus.removeEventHandler(e)},e}(),li=function(){function e(e){this._eventHandlerGateKeeper=e,this._eventHandlers=[],this._eventQueue=null,this._isConsumingQueue=!1}return e.prototype.addEventHandler=function(e){for(var t=0,n=this._eventHandlers.length;t<n;t++)this._eventHandlers[t]===e&&console.warn("Detected duplicate listener in ViewEventDispatcher",e);this._eventHandlers.push(e)},e.prototype.removeEventHandler=function(e){for(var t=0;t<this._eventHandlers.length;t++)if(this._eventHandlers[t]===e){this._eventHandlers.splice(t,1);break}},e.prototype.emit=function(e){this._eventQueue?this._eventQueue.push(e):this._eventQueue=[e],this._isConsumingQueue||this.consumeQueue()},e.prototype.emitMany=function(e){this._eventQueue?this._eventQueue=this._eventQueue.concat(e):this._eventQueue=e,this._isConsumingQueue||this.consumeQueue()},e.prototype.consumeQueue=function(){var e=this;this._eventHandlerGateKeeper((function(){try{e._isConsumingQueue=!0,e._doConsumeQueue()}finally{e._isConsumingQueue=!1}}))},e.prototype._doConsumeQueue=function(){while(this._eventQueue){var e=this._eventQueue;this._eventQueue=null;for(var t=this._eventHandlers.slice(0),n=0,i=t.length;n<i;n++)t[n].handleEvents(e)}},e}(),ci=function(){function e(e,t,n,i){this.selections=e,this.startLineNumber=0|t.startLineNumber,this.endLineNumber=0|t.endLineNumber,this.relativeVerticalOffset=t.relativeVerticalOffset,this.bigNumbersDelta=0|t.bigNumbersDelta,this.whitespaceViewportData=n,this._model=i,this.visibleRange=new oe["a"](t.startLineNumber,this._model.getLineMinColumn(t.startLineNumber),t.endLineNumber,this._model.getLineMaxColumn(t.endLineNumber))}return e.prototype.getViewLineRenderingData=function(e){return this._model.getViewLineRenderingData(this.visibleRange,e)},e.prototype.getDecorationsInViewport=function(){return this._model.getDecorationsInViewport(this.visibleRange)},e}(),di=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),hi=function(e){function t(t,n,i,r,o,s){var a=e.call(this)||this;a._cursor=o,a._renderAnimationFrame=null,a.outgoingEvents=s;var u=new yt(n,r,a.outgoingEvents,t);a.eventDispatcher=new li((function(e){return a._renderOnce(e)})),a.eventDispatcher.addEventHandler(a),a._context=new ui(n,i.getTheme(),r,a.eventDispatcher),a._register(i.onThemeChange((function(e){a._context.theme=e,a.eventDispatcher.emit(new ot),a.render(!0,!1)}))),a.viewParts=[],a._textAreaHandler=new gt(a._context,u,a.createTextAreaHandlerHelper()),a.viewParts.push(a._textAreaHandler),a.linesContent=Object(h["b"])(document.createElement("div")),a.linesContent.setClassName("lines-content monaco-editor-background"),a.linesContent.setPosition("absolute"),a.domNode=Object(h["b"])(document.createElement("div")),a.domNode.setClassName(a.getEditorClassName()),a.overflowGuardContainer=Object(h["b"])(document.createElement("div")),D.write(a.overflowGuardContainer,3),a.overflowGuardContainer.setClassName("overflow-guard"),a._scrollbar=new qt(a._context,a.linesContent,a.domNode,a.overflowGuardContainer),a.viewParts.push(a._scrollbar),a.viewLines=new rn(a._context,a.linesContent),a.viewZones=new si(a._context),a.viewParts.push(a.viewZones);var l=new Pn(a._context);a.viewParts.push(l);var c=new zn(a._context);a.viewParts.push(c);var d=new kt(a._context);a.viewParts.push(d),d.addDynamicOverlay(new jt(a._context)),d.addDynamicOverlay(new Zn(a._context)),d.addDynamicOverlay(new $t(a._context)),d.addDynamicOverlay(new Wt(a._context));var f=new Dt(a._context);a.viewParts.push(f),f.addDynamicOverlay(new Qt(a._context)),f.addDynamicOverlay(new Jt(a._context)),f.addDynamicOverlay(new un(a._context)),f.addDynamicOverlay(new sn(a._context)),f.addDynamicOverlay(new je(a._context));var p=new Ve(a._context);p.getDomNode().appendChild(a.viewZones.marginDomNode),p.getDomNode().appendChild(f.getDomNode()),a.viewParts.push(p),a.contentWidgets=new Ft(a._context,a.domNode),a.viewParts.push(a.contentWidgets),a.viewCursors=new ii(a._context),a.viewParts.push(a.viewCursors),a.overlayWidgets=new Mn(a._context),a.viewParts.push(a.overlayWidgets);var g=new Vn(a._context);a.viewParts.push(g);var A=new Dn(a._context);if(a.viewParts.push(A),l){var m=a._scrollbar.getOverviewRulerLayoutInfo();m.parent.insertBefore(l.getDomNode(),m.insertBefore)}return a.linesContent.appendChild(d.getDomNode()),a.linesContent.appendChild(g.domNode),a.linesContent.appendChild(a.viewZones.domNode),a.linesContent.appendChild(a.viewLines.getDomNode()),a.linesContent.appendChild(a.contentWidgets.domNode),a.linesContent.appendChild(a.viewCursors.getDomNode()),a.overflowGuardContainer.appendChild(p.getDomNode()),a.overflowGuardContainer.appendChild(a._scrollbar.getDomNode()),a.overflowGuardContainer.appendChild(c.getDomNode()),a.overflowGuardContainer.appendChild(a._textAreaHandler.textArea),a.overflowGuardContainer.appendChild(a._textAreaHandler.textAreaCover),a.overflowGuardContainer.appendChild(a.overlayWidgets.getDomNode()),a.overflowGuardContainer.appendChild(A.getDomNode()),a.domNode.appendChild(a.overflowGuardContainer),a.domNode.appendChild(a.contentWidgets.overflowingContentWidgetsDomNode),a._applyLayout(),a.pointerHandler=a._register(new Ie(a._context,u,a.createPointerHandlerHelper())),a._register(r.addEventListener((function(e){a.eventDispatcher.emitMany(e)}))),a._register(a._cursor.addEventListener((function(e){a.eventDispatcher.emitMany(e)}))),a}return di(t,e),t.prototype._flushAccumulatedAndRenderNow=function(){this._renderNow()},t.prototype.createPointerHandlerHelper=function(){var e=this;return{viewDomNode:this.domNode.domNode,linesContentDomNode:this.linesContent.domNode,focusTextArea:function(){e.focus()},getLastRenderData:function(){var t=e.viewCursors.getLastRenderData()||[],n=e._textAreaHandler.getLastRenderData();return new ue(t,n)},shouldSuppressMouseDownOnViewZone:function(t){return e.viewZones.shouldSuppressMouseDownOnViewZone(t)},shouldSuppressMouseDownOnWidget:function(t){return e.contentWidgets.shouldSuppressMouseDownOnWidget(t)},getPositionFromDOMInfo:function(t,n){return e._flushAccumulatedAndRenderNow(),e.viewLines.getPositionFromDOMInfo(t,n)},visibleRangeForPosition:function(t,n){return e._flushAccumulatedAndRenderNow(),e.viewLines.visibleRangeForPosition(new re["a"](t,n))},getLineWidth:function(t){return e._flushAccumulatedAndRenderNow(),e.viewLines.getLineWidth(t)}}},t.prototype.createTextAreaHandlerHelper=function(){var e=this;return{visibleRangeForPositionRelativeToEditor:function(t,n){return e._flushAccumulatedAndRenderNow(),e.viewLines.visibleRangeForPosition(new re["a"](t,n))}}},t.prototype._applyLayout=function(){var e=this._context.configuration.options,t=e.get(107);this.domNode.setWidth(t.width),this.domNode.setHeight(t.height),this.overflowGuardContainer.setWidth(t.width),this.overflowGuardContainer.setHeight(t.height),this.linesContent.setWidth(1e6),this.linesContent.setHeight(1e6)},t.prototype.getEditorClassName=function(){var e=this._textAreaHandler.isFocused()?" focused":"";return this._context.configuration.options.get(104)+" "+Object(W["d"])(this._context.theme.type)+e},t.prototype.onConfigurationChanged=function(e){return this.domNode.setClassName(this.getEditorClassName()),this._applyLayout(),!1},t.prototype.onContentSizeChanged=function(e){return this.outgoingEvents.emitContentSizeChange(e),!1},t.prototype.onFocusChanged=function(e){return this.domNode.setClassName(this.getEditorClassName()),this._context.model.setHasFocus(e.isFocused),e.isFocused?this.outgoingEvents.emitViewFocusGained():this.outgoingEvents.emitViewFocusLost(),!1},t.prototype.onScrollChanged=function(e){return this.outgoingEvents.emitScrollChanged(e),!1},t.prototype.onThemeChanged=function(e){return this.domNode.setClassName(this.getEditorClassName()),!1},t.prototype.dispose=function(){null!==this._renderAnimationFrame&&(this._renderAnimationFrame.dispose(),this._renderAnimationFrame=null),this.eventDispatcher.removeEventHandler(this),this.outgoingEvents.dispose(),this.viewLines.dispose();for(var t=0,n=this.viewParts.length;t<n;t++)this.viewParts[t].dispose();this.viewParts=[],e.prototype.dispose.call(this)},t.prototype._renderOnce=function(e){var t=fi(e);return this._scheduleRender(),t},t.prototype._scheduleRender=function(){null===this._renderAnimationFrame&&(this._renderAnimationFrame=r["T"](this._onRenderScheduled.bind(this),100))},t.prototype._onRenderScheduled=function(){this._renderAnimationFrame=null,this._flushAccumulatedAndRenderNow()},t.prototype._renderNow=function(){var e=this;fi((function(){return e._actualRender()}))},t.prototype._getViewPartsToRender=function(){for(var e=[],t=0,n=0,i=this.viewParts.length;n<i;n++){var r=this.viewParts[n];r.shouldRender()&&(e[t++]=r)}return e},t.prototype._actualRender=function(){if(r["L"](this.domNode.domNode)){var e=this._getViewPartsToRender();if(this.viewLines.shouldRender()||0!==e.length){var t=this._context.viewLayout.getLinesViewportData();this._context.model.setViewport(t.startLineNumber,t.endLineNumber,t.centeredLineNumber);var n=new ci(this._cursor.getViewSelections(),t,this._context.viewLayout.getWhitespaceViewportData(),this._context.model);this.contentWidgets.shouldRender()&&this.contentWidgets.onBeforeRender(n),this.viewLines.shouldRender()&&(this.viewLines.renderText(n),this.viewLines.onDidRender(),e=this._getViewPartsToRender());for(var i=new F(this._context.viewLayout,n,this.viewLines),o=0,s=e.length;o<s;o++){var a=e[o];a.prepareRender(i)}for(o=0,s=e.length;o<s;o++){a=e[o];a.render(i),a.onDidRender()}}}},t.prototype.delegateVerticalScrollbarMouseDown=function(e){this._scrollbar.delegateVerticalScrollbarMouseDown(e)},t.prototype.restoreState=function(e){this._context.viewLayout.setScrollPositionNow({scrollTop:e.scrollTop}),this._context.model.tokenizeViewport(),this._renderNow(),this.viewLines.updateLineWidths(),this._context.viewLayout.setScrollPositionNow({scrollLeft:e.scrollLeft})},t.prototype.getOffsetForColumn=function(e,t){var n=this._context.model.validateModelPosition({lineNumber:e,column:t}),i=this._context.model.coordinatesConverter.convertModelPositionToViewPosition(n);this._flushAccumulatedAndRenderNow();var r=this.viewLines.visibleRangeForPosition(new re["a"](i.lineNumber,i.column));return r?r.left:-1},t.prototype.getTargetAtClientPoint=function(e,t){var n=this.pointerHandler.getTargetAtClientPoint(e,t);return n?wt.convertViewToModelMouseTarget(n,this._context.model.coordinatesConverter):null},t.prototype.createOverviewRuler=function(e){return new jn(this._context,e)},t.prototype.change=function(e){var t=this;return this._renderOnce((function(){var n=t.viewZones.changeViewZones(e);return n&&(t._context.viewLayout.onHeightMaybeChanged(),t._context.privateViewEventBus.emit(new ut)),n}))},t.prototype.render=function(e,t){if(t){this.viewLines.forceShouldRender();for(var n=0,i=this.viewParts.length;n<i;n++){var r=this.viewParts[n];r.forceShouldRender()}}e?this._flushAccumulatedAndRenderNow():this._scheduleRender()},t.prototype.focus=function(){this._textAreaHandler.focusTextArea()},t.prototype.isFocused=function(){return this._textAreaHandler.isFocused()},t.prototype.setAriaOptions=function(e){this._textAreaHandler.setAriaOptions(e)},t.prototype.addContentWidget=function(e){this.contentWidgets.addWidget(e.widget),this.layoutContentWidget(e),this._scheduleRender()},t.prototype.layoutContentWidget=function(e){var t=e.position&&e.position.range||null;if(null===t){var n=e.position?e.position.position:null;null!==n&&(t=new oe["a"](n.lineNumber,n.column,n.lineNumber,n.column))}var i=e.position?e.position.preference:null;this.contentWidgets.setWidgetPosition(e.widget,t,i),this._scheduleRender()},t.prototype.removeContentWidget=function(e){this.contentWidgets.removeWidget(e.widget),this._scheduleRender()},t.prototype.addOverlayWidget=function(e){this.overlayWidgets.addWidget(e.widget),this.layoutOverlayWidget(e),this._scheduleRender()},t.prototype.layoutOverlayWidget=function(e){var t=e.position?e.position.preference:null,n=this.overlayWidgets.setWidgetPosition(e.widget,t);n&&this._scheduleRender()},t.prototype.removeOverlayWidget=function(e){this.overlayWidgets.removeWidget(e.widget),this._scheduleRender()},t}(O);function fi(e){try{return e()}catch(t){Object(o["e"])(t)}}var pi=function(){function e(e){this._selTrackedRange=null,this._trackSelection=!0,this._setState(e,new se["f"](new oe["a"](1,1,1,1),0,new re["a"](1,1),0),new se["f"](new oe["a"](1,1,1,1),0,new re["a"](1,1),0))}return e.prototype.dispose=function(e){this._removeTrackedRange(e)},e.prototype.startTrackingSelection=function(e){this._trackSelection=!0,this._updateTrackedRange(e)},e.prototype.stopTrackingSelection=function(e){this._trackSelection=!1,this._removeTrackedRange(e)},e.prototype._updateTrackedRange=function(e){this._trackSelection&&(this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,this.modelState.selection,0))},e.prototype._removeTrackedRange=function(e){this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,null,0)},e.prototype.asCursorState=function(){return new se["d"](this.modelState,this.viewState)},e.prototype.readSelectionFromMarkers=function(e){var t=e.model._getTrackedRange(this._selTrackedRange);return 0===this.modelState.selection.getDirection()?new ye["a"](t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):new ye["a"](t.endLineNumber,t.endColumn,t.startLineNumber,t.startColumn)},e.prototype.ensureValidState=function(e){this._setState(e,this.modelState,this.viewState)},e.prototype.setState=function(e,t,n){this._setState(e,t,n)},e.prototype._setState=function(e,t,n){if(t){o=e.model.validateRange(t.selectionStart);var i=t.selectionStart.equalsRange(o)?t.selectionStartLeftoverVisibleColumns:0,r=(s=e.model.validatePosition(t.position),t.position.equals(s)?t.leftoverVisibleColumns:0);t=new se["f"](o,i,s,r)}else{if(!n)return;var o=e.model.validateRange(e.convertViewRangeToModelRange(n.selectionStart)),s=e.model.validatePosition(e.convertViewPositionToModelPosition(n.position.lineNumber,n.position.column));t=new se["f"](o,n.selectionStartLeftoverVisibleColumns,s,n.leftoverVisibleColumns)}if(n){l=e.validateViewRange(n.selectionStart,t.selectionStart),c=e.validateViewPosition(n.position,t.position);n=new se["f"](l,t.selectionStartLeftoverVisibleColumns,c,t.leftoverVisibleColumns)}else{var a=e.convertModelPositionToViewPosition(new re["a"](t.selectionStart.startLineNumber,t.selectionStart.startColumn)),u=e.convertModelPositionToViewPosition(new re["a"](t.selectionStart.endLineNumber,t.selectionStart.endColumn)),l=new oe["a"](a.lineNumber,a.column,u.lineNumber,u.column),c=e.convertModelPositionToViewPosition(t.position);n=new se["f"](l,t.selectionStartLeftoverVisibleColumns,c,t.leftoverVisibleColumns)}this.modelState=t,this.viewState=n,this._updateTrackedRange(e)},e}(),gi=function(){function e(e){this.context=e,this.primaryCursor=new pi(e),this.secondaryCursors=[],this.lastAddedCursorIndex=0}return e.prototype.dispose=function(){this.primaryCursor.dispose(this.context),this.killSecondaryCursors()},e.prototype.startTrackingSelections=function(){this.primaryCursor.startTrackingSelection(this.context);for(var e=0,t=this.secondaryCursors.length;e<t;e++)this.secondaryCursors[e].startTrackingSelection(this.context)},e.prototype.stopTrackingSelections=function(){this.primaryCursor.stopTrackingSelection(this.context);for(var e=0,t=this.secondaryCursors.length;e<t;e++)this.secondaryCursors[e].stopTrackingSelection(this.context)},e.prototype.updateContext=function(e){this.context=e},e.prototype.ensureValidState=function(){this.primaryCursor.ensureValidState(this.context);for(var e=0,t=this.secondaryCursors.length;e<t;e++)this.secondaryCursors[e].ensureValidState(this.context)},e.prototype.readSelectionFromMarkers=function(){var e=[];e[0]=this.primaryCursor.readSelectionFromMarkers(this.context);for(var t=0,n=this.secondaryCursors.length;t<n;t++)e[t+1]=this.secondaryCursors[t].readSelectionFromMarkers(this.context);return e},e.prototype.getAll=function(){var e=[];e[0]=this.primaryCursor.asCursorState();for(var t=0,n=this.secondaryCursors.length;t<n;t++)e[t+1]=this.secondaryCursors[t].asCursorState();return e},e.prototype.getViewPositions=function(){var e=[];e[0]=this.primaryCursor.viewState.position;for(var t=0,n=this.secondaryCursors.length;t<n;t++)e[t+1]=this.secondaryCursors[t].viewState.position;return e},e.prototype.getSelections=function(){var e=[];e[0]=this.primaryCursor.modelState.selection;for(var t=0,n=this.secondaryCursors.length;t<n;t++)e[t+1]=this.secondaryCursors[t].modelState.selection;return e},e.prototype.getViewSelections=function(){var e=[];e[0]=this.primaryCursor.viewState.selection;for(var t=0,n=this.secondaryCursors.length;t<n;t++)e[t+1]=this.secondaryCursors[t].viewState.selection;return e},e.prototype.setSelections=function(e){this.setStates(se["d"].fromModelSelections(e))},e.prototype.getPrimaryCursor=function(){return this.primaryCursor.asCursorState()},e.prototype.setStates=function(e){null!==e&&(this.primaryCursor.setState(this.context,e[0].modelState,e[0].viewState),this._setSecondaryStates(e.slice(1)))},e.prototype._setSecondaryStates=function(e){var t=this.secondaryCursors.length,n=e.length;if(t<n)for(var i=n-t,r=0;r<i;r++)this._addSecondaryCursor();else if(t>n){var o=t-n;for(r=0;r<o;r++)this._removeSecondaryCursor(this.secondaryCursors.length-1)}for(r=0;r<n;r++)this.secondaryCursors[r].setState(this.context,e[r].modelState,e[r].viewState)},e.prototype.killSecondaryCursors=function(){this._setSecondaryStates([])},e.prototype._addSecondaryCursor=function(){this.secondaryCursors.push(new pi(this.context)),this.lastAddedCursorIndex=this.secondaryCursors.length},e.prototype.getLastAddedCursorIndex=function(){return 0===this.secondaryCursors.length||0===this.lastAddedCursorIndex?0:this.lastAddedCursorIndex},e.prototype._removeSecondaryCursor=function(e){this.lastAddedCursorIndex>=e+1&&this.lastAddedCursorIndex--,this.secondaryCursors[e].dispose(this.context),this.secondaryCursors.splice(e,1)},e.prototype._getAll=function(){var e=[];e[0]=this.primaryCursor;for(var t=0,n=this.secondaryCursors.length;t<n;t++)e[t+1]=this.secondaryCursors[t];return e},e.prototype.normalize=function(){if(0!==this.secondaryCursors.length){for(var e=this._getAll(),t=[],n=0,i=e.length;n<i;n++)t.push({index:n,selection:e[n].modelState.selection});t.sort((function(e,t){return e.selection.startLineNumber===t.selection.startLineNumber?e.selection.startColumn-t.selection.startColumn:e.selection.startLineNumber-t.selection.startLineNumber}));for(var r=0;r<t.length-1;r++){var o=t[r],s=t[r+1],a=o.selection,u=s.selection;if(this.context.config.multiCursorMergeOverlapping){var l=void 0;if(l=u.isEmpty()||a.isEmpty()?u.getStartPosition().isBeforeOrEqual(a.getEndPosition()):u.getStartPosition().isBefore(a.getEndPosition()),l){var c=o.index<s.index?r:r+1,d=o.index<s.index?r+1:r,h=t[d].index,f=t[c].index,p=t[d].selection,g=t[c].selection;if(!p.equalsSelection(g)){var A=p.plusRange(g),m=p.selectionStartLineNumber===p.startLineNumber&&p.selectionStartColumn===p.startColumn,v=g.selectionStartLineNumber===g.startLineNumber&&g.selectionStartColumn===g.startColumn,_=void 0;h===this.lastAddedCursorIndex?(_=m,this.lastAddedCursorIndex=f):_=v;var y=void 0;y=_?new ye["a"](A.startLineNumber,A.startColumn,A.endLineNumber,A.endColumn):new ye["a"](A.endLineNumber,A.endColumn,A.startLineNumber,A.startColumn),t[c].selection=y;var b=se["d"].fromModelSelection(y);e[f].setState(this.context,b.modelState,b.viewState)}for(var w=0,C=t;w<C.length;w++){var S=C[w];S.index>h&&S.index--}e.splice(h,1),t.splice(d,1),this._removeSecondaryCursor(h-1),r--}}}}},e}(),Ai=n("snIX"),mi=n("GR/f"),vi=n("iuje"),_i=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();function yi(e){for(var t=0,n=e.length;t<n;t++)if(8===e[t].type)return!0;return!1}var bi=function(){function e(e,t,n,i,r,o){this.selections=e,this.modelVersionId=t,this.oldSelections=n,this.oldModelVersionId=i,this.source=r,this.reason=o}return e}(),wi=function(){function e(e,t){this.modelVersionId=e.getVersionId(),this.cursorState=t.getAll()}return e.prototype.equals=function(e){if(!e)return!1;if(this.modelVersionId!==e.modelVersionId)return!1;if(this.cursorState.length!==e.cursorState.length)return!1;for(var t=0,n=this.cursorState.length;t<n;t++)if(!this.cursorState[t].equals(e.cursorState[t]))return!1;return!0},e}(),Ci=function(){function e(e,t,n){this._model=e,this._autoClosedCharactersDecorations=t,this._autoClosedEnclosingDecorations=n}return e.getAllAutoClosedCharacters=function(e){for(var t=[],n=0,i=e;n<i.length;n++){var r=i[n];t=t.concat(r.getAutoClosedCharactersRanges())}return t},e.prototype.dispose=function(){this._autoClosedCharactersDecorations=this._model.deltaDecorations(this._autoClosedCharactersDecorations,[]),this._autoClosedEnclosingDecorations=this._model.deltaDecorations(this._autoClosedEnclosingDecorations,[])},e.prototype.getAutoClosedCharactersRanges=function(){for(var e=[],t=0;t<this._autoClosedCharactersDecorations.length;t++){var n=this._model.getDecorationRange(this._autoClosedCharactersDecorations[t]);n&&e.push(n)}return e},e.prototype.isValid=function(e){for(var t=[],n=0;n<this._autoClosedEnclosingDecorations.length;n++){var i=this._model.getDecorationRange(this._autoClosedEnclosingDecorations[n]);if(i&&(t.push(i),i.startLineNumber!==i.endLineNumber))return!1}t.sort(oe["a"].compareRangesUsingStarts),e.sort(oe["a"].compareRangesUsingStarts);for(n=0;n<e.length;n++){if(n>=t.length)return!1;if(!t[n].strictContainsRange(e[n]))return!1}return!0},e}(),Si=function(e){function t(t,n,i){var r=e.call(this)||this;r._onDidReachMaxCursorCount=r._register(new s["a"]),r.onDidReachMaxCursorCount=r._onDidReachMaxCursorCount.event,r._onDidAttemptReadOnlyEdit=r._register(new s["a"]),r.onDidAttemptReadOnlyEdit=r._onDidAttemptReadOnlyEdit.event,r._onDidChange=r._register(new s["a"]),r.onDidChange=r._onDidChange.event,r._configuration=t,r._model=n,r._knownModelVersionId=r._model.getVersionId(),r._viewModel=i,r.context=new se["c"](r._configuration,r._model,r._viewModel),r._cursors=new gi(r.context),r._isHandling=!1,r._isDoingComposition=!1,r._selectionsWhenCompositionStarted=null,r._columnSelectData=null,r._autoClosedActions=[],r._prevEditOperationType=0,r._register(r._model.onDidChangeRawContent((function(e){if(r._knownModelVersionId=e.versionId,!r._isHandling){var t=e.containsEvent(1);r._onModelContentChanged(t)}}))),r._register(i.addEventListener((function(e){yi(e)&&r._knownModelVersionId===r._model.getVersionId()&&r.setStates("viewModel",0,r.getAll())})));var o=function(){r.context=new se["c"](r._configuration,r._model,r._viewModel),r._cursors.updateContext(r.context)};return r._register(r._model.onDidChangeLanguage((function(e){o()}))),r._register(r._model.onDidChangeLanguageConfiguration((function(){o()}))),r._register(r._model.onDidChangeOptions((function(){o()}))),r._register(r._configuration.onDidChange((function(e){se["b"].shouldRecreate(e)&&o()}))),r}return _i(t,e),t.prototype.dispose=function(){this._cursors.dispose(),this._autoClosedActions=Object(a["f"])(this._autoClosedActions),e.prototype.dispose.call(this)},t.prototype._validateAutoClosedActions=function(){if(this._autoClosedActions.length>0)for(var e=this._cursors.getSelections(),t=0;t<this._autoClosedActions.length;t++){var n=this._autoClosedActions[t];n.isValid(e)||(n.dispose(),this._autoClosedActions.splice(t,1),t--)}},t.prototype.getPrimaryCursor=function(){return this._cursors.getPrimaryCursor()},t.prototype.getLastAddedCursorIndex=function(){return this._cursors.getLastAddedCursorIndex()},t.prototype.getAll=function(){return this._cursors.getAll()},t.prototype.setStates=function(e,n,i){null!==i&&i.length>t.MAX_CURSOR_COUNT&&(i=i.slice(0,t.MAX_CURSOR_COUNT),this._onDidReachMaxCursorCount.fire(void 0));var r=new wi(this._model,this);this._cursors.setStates(i),this._cursors.normalize(),this._columnSelectData=null,this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(e,n,r)},t.prototype.setColumnSelectData=function(e){this._columnSelectData=e},t.prototype.reveal=function(e,t,n,i){this._revealRange(e,n,0,t,i)},t.prototype.revealRange=function(e,t,n,i,r){this.emitCursorRevealRange(e,n,i,t,r)},t.prototype.scrollTo=function(e){this._viewModel.viewLayout.setScrollPositionSmooth({scrollTop:e})},t.prototype.saveState=function(){for(var e=[],t=this._cursors.getSelections(),n=0,i=t.length;n<i;n++){var r=t[n];e.push({inSelectionMode:!r.isEmpty(),selectionStart:{lineNumber:r.selectionStartLineNumber,column:r.selectionStartColumn},position:{lineNumber:r.positionLineNumber,column:r.positionColumn}})}return e},t.prototype.restoreState=function(e){for(var t=[],n=0,i=e.length;n<i;n++){var r=e[n],o=1,s=1;r.position&&r.position.lineNumber&&(o=r.position.lineNumber),r.position&&r.position.column&&(s=r.position.column);var a=o,u=s;r.selectionStart&&r.selectionStart.lineNumber&&(a=r.selectionStart.lineNumber),r.selectionStart&&r.selectionStart.column&&(u=r.selectionStart.column),t.push({selectionStartLineNumber:a,selectionStartColumn:u,positionLineNumber:o,positionColumn:s})}this.setStates("restoreState",0,se["d"].fromModelSelections(t)),this.reveal("restoreState",!0,0,1)},t.prototype._onModelContentChanged=function(e){if(this._prevEditOperationType=0,e)this._cursors.dispose(),this._cursors=new gi(this.context),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary("model",1,null);else{var t=this._cursors.readSelectionFromMarkers();this.setStates("modelChange",2,se["d"].fromModelSelections(t))}},t.prototype.getSelection=function(){return this._cursors.getPrimaryCursor().modelState.selection},t.prototype.getColumnSelectData=function(){if(this._columnSelectData)return this._columnSelectData;var e=this._cursors.getPrimaryCursor(),t=e.viewState.selectionStart.getStartPosition(),n=t.lineNumber,i=se["a"].visibleColumnFromColumn2(this.context.config,this.context.viewModel,t);return{isReal:!1,fromViewLineNumber:n,fromViewVisualColumn:i,toViewLineNumber:n,toViewVisualColumn:i}},t.prototype.getSelections=function(){return this._cursors.getSelections()},t.prototype.getViewSelections=function(){return this._cursors.getViewSelections()},t.prototype.getPosition=function(){return this._cursors.getPrimaryCursor().modelState.position},t.prototype.setSelections=function(e,t){this.setStates(e,0,se["d"].fromModelSelections(t))},t.prototype.getPrevEditOperationType=function(){return this._prevEditOperationType},t.prototype.setPrevEditOperationType=function(e){this._prevEditOperationType=e},t.prototype._pushAutoClosedAction=function(e,t){for(var n=[],i=[],r=0,o=e.length;r<o;r++)n.push({range:e[r],options:{inlineClassName:"auto-closed-character",stickiness:1}}),i.push({range:t[r],options:{stickiness:1}});var s=this._model.deltaDecorations([],n),a=this._model.deltaDecorations([],i);this._autoClosedActions.push(new Ci(this._model,s,a))},t.prototype._executeEditOperation=function(e){if(e){e.shouldPushStackElementBefore&&this._model.pushStackElement();var t=Ni.executeCommands(this._model,this._cursors.getSelections(),e.commands);if(t){this._interpretCommandResult(t);for(var n=[],i=[],r=0;r<e.commands.length;r++){var o=e.commands[r];o instanceof mi["b"]&&o.enclosingRange&&o.closeCharacterRange&&(n.push(o.closeCharacterRange),i.push(o.enclosingRange))}n.length>0&&this._pushAutoClosedAction(n,i),this._prevEditOperationType=e.type}e.shouldPushStackElementAfter&&this._model.pushStackElement()}},t.prototype._interpretCommandResult=function(e){e&&0!==e.length||(e=this._cursors.readSelectionFromMarkers()),this._columnSelectData=null,this._cursors.setSelections(e),this._cursors.normalize()},t.prototype._emitStateChangedIfNecessary=function(e,t,n){var i=new wi(this._model,this);if(i.equals(n))return!1;var r=this._cursors.getSelections(),o=this._cursors.getViewSelections();try{var s=this._beginEmit();s.emit(new Ge(o,r))}finally{this._endEmit()}if(!n||n.cursorState.length!==i.cursorState.length||i.cursorState.some((function(e,t){return!e.modelState.equals(n.cursorState[t].modelState)}))){var a=n?n.cursorState.map((function(e){return e.modelState.selection})):null,u=n?n.modelVersionId:0;this._onDidChange.fire(new bi(r,i.modelVersionId,a,u,e||"keyboard",t))}return!0},t.prototype._revealRange=function(e,t,n,i,r){var o=this._cursors.getViewPositions(),s=o[0];if(1===t)for(var a=1;a<o.length;a++)o[a].isBefore(s)&&(s=o[a]);else if(2===t)for(a=1;a<o.length;a++)s.isBeforeOrEqual(o[a])&&(s=o[a]);else if(o.length>1)return;var u=new oe["a"](s.lineNumber,s.column,s.lineNumber,s.column);this.emitCursorRevealRange(e,u,n,i,r)},t.prototype.emitCursorRevealRange=function(e,t,n,i,r){try{var o=this._beginEmit();o.emit(new it(e,t,n,i,r))}finally{this._endEmit()}},t.prototype._findAutoClosingPairs=function(e){if(!e.length)return null;for(var t=[],n=0,i=e.length;n<i;n++){var r=e[n];if(!r.text||r.text.indexOf("\n")>=0)return null;var o=r.text.match(/([)\]}>'"`])([^)\]}>'"`]*)$/);if(!o)return null;var s=o[1],a=this.context.config.autoClosingPairsClose2.get(s);if(!a||1!==a.length)return null;var u=a[0].open,l=r.text.length-o[2].length-1,c=r.text.lastIndexOf(u,l-1);if(-1===c)return null;t.push([c,l])}return t},t.prototype.executeEdits=function(e,t,n){var i=this,r=null;"snippet"===e&&(r=this._findAutoClosingPairs(t)),r&&(t[0]._isTracked=!0);var o=[],s=[],a=this._model.pushEditOperations(this.getSelections(),t,(function(e){if(r)for(var t=0,a=r.length;t<a;t++){var u=r[t],l=u[0],c=u[1],d=e[t],h=d.range.startLineNumber,f=d.range.startColumn-1+l,p=d.range.startColumn-1+c;o.push(new oe["a"](h,p+1,h,p+2)),s.push(new oe["a"](h,f+1,h,p+2))}var g=n(e);return g&&(i._isHandling=!0),g}));a&&(this._isHandling=!1,this.setSelections(e,a)),o.length>0&&this._pushAutoClosedAction(o,s)},t.prototype.trigger=function(e,t,n){var i=vi["b"];if(t===i.CompositionStart)return this._isDoingComposition=!0,void(this._selectionsWhenCompositionStarted=this.getSelections().slice(0));if(t===i.CompositionEnd&&(this._isDoingComposition=!1),this._configuration.options.get(68))this._onDidAttemptReadOnlyEdit.fire(void 0);else{var r=new wi(this._model,this),s=0;t!==i.Undo&&t!==i.Redo&&this._cursors.stopTrackingSelections(),this._cursors.ensureValidState(),this._isHandling=!0;try{switch(t){case i.Type:this._type(e,n.text);break;case i.ReplacePreviousChar:this._replacePreviousChar(n.text,n.replaceCharCnt);break;case i.Paste:s=4,this._paste(n.text,n.pasteOnNewLine,n.multicursorText||[]);break;case i.Cut:this._cut();break;case i.Undo:s=5,this._interpretCommandResult(this._model.undo());break;case i.Redo:s=6,this._interpretCommandResult(this._model.redo());break;case i.ExecuteCommand:this._externalExecuteCommand(n);break;case i.ExecuteCommands:this._externalExecuteCommands(n);break;case i.CompositionEnd:this._interpretCompositionEnd(e);break}}catch(a){Object(o["e"])(a)}this._isHandling=!1,t!==i.Undo&&t!==i.Redo&&this._cursors.startTrackingSelections(),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(e,s,r)&&this._revealRange(e,0,0,!0,0)}},t.prototype._interpretCompositionEnd=function(e){if(!this._isDoingComposition&&"keyboard"===e){var t=Ci.getAllAutoClosedCharacters(this._autoClosedActions);this._executeEditOperation(mi["a"].compositionEndWithInterceptors(this._prevEditOperationType,this.context.config,this.context.model,this._selectionsWhenCompositionStarted,this.getSelections(),t)),this._selectionsWhenCompositionStarted=null}},t.prototype._type=function(e,t){if(this._isDoingComposition||"keyboard"!==e)this._executeEditOperation(mi["a"].typeWithoutInterceptors(this._prevEditOperationType,this.context.config,this.context.model,this.getSelections(),t));else{var n=t.length,i=0;while(i<n){var r=Me["E"](t,i),o=t.substr(i,r),s=Ci.getAllAutoClosedCharacters(this._autoClosedActions);this._executeEditOperation(mi["a"].typeWithInterceptors(this._prevEditOperationType,this.context.config,this.context.model,this.getSelections(),s,o)),i+=r}}},t.prototype._replacePreviousChar=function(e,t){this._executeEditOperation(mi["a"].replacePreviousChar(this._prevEditOperationType,this.context.config,this.context.model,this.getSelections(),e,t))},t.prototype._paste=function(e,t,n){this._executeEditOperation(mi["a"].paste(this.context.config,this.context.model,this.getSelections(),e,t,n))},t.prototype._cut=function(){this._executeEditOperation(Ai["a"].cut(this.context.config,this.context.model,this.getSelections()))},t.prototype._externalExecuteCommand=function(e){this._cursors.killSecondaryCursors(),this._executeEditOperation(new se["e"](0,[e],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},t.prototype._externalExecuteCommands=function(e){this._executeEditOperation(new se["e"](0,e,{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},t.MAX_CURSOR_COUNT=1e4,t}(lt),Ni=function(){function e(){}return e.executeCommands=function(e,t,n){for(var i={model:e,selectionsBefore:t,trackedRanges:[],trackedRangesDirection:[]},r=this._innerExecuteCommands(i,n),o=0,s=i.trackedRanges.length;o<s;o++)i.model._setTrackedRange(i.trackedRanges[o],null,0);return r},e._innerExecuteCommands=function(e,t){if(this._arrayIsEmpty(t))return null;var n=this._getEditOperations(e,t);if(0===n.operations.length)return null;var i=n.operations,r=this._getLoserCursorMap(i);if(r.hasOwnProperty("0"))return console.warn("Ignoring commands"),null;for(var o=[],s=0,a=i.length;s<a;s++)r.hasOwnProperty(i[s].identifier.major.toString())||o.push(i[s]);n.hadTrackedEditOperation&&o.length>0&&(o[0]._isTracked=!0);var u=e.model.pushEditOperations(e.selectionsBefore,o,(function(n){for(var i=[],r=0;r<e.selectionsBefore.length;r++)i[r]=[];for(var o=0,s=n;o<s.length;o++){var a=s[o];a.identifier&&i[a.identifier.major].push(a)}var u=function(e,t){return e.identifier.minor-t.identifier.minor},l=[],c=function(n){i[n].length>0?(i[n].sort(u),l[n]=t[n].computeCursorState(e.model,{getInverseEditOperations:function(){return i[n]},getTrackedSelection:function(t){var n=parseInt(t,10),i=e.model._getTrackedRange(e.trackedRanges[n]);return 0===e.trackedRangesDirection[n]?new ye["a"](i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn):new ye["a"](i.endLineNumber,i.endColumn,i.startLineNumber,i.startColumn)}})):l[n]=e.selectionsBefore[n]};for(r=0;r<e.selectionsBefore.length;r++)c(r);return l}));u||(u=e.selectionsBefore);var l=[];for(var c in r)r.hasOwnProperty(c)&&l.push(parseInt(c,10));l.sort((function(e,t){return t-e}));for(var d=0,h=l;d<h.length;d++){var f=h[d];u.splice(f,1)}return u},e._arrayIsEmpty=function(e){for(var t=0,n=e.length;t<n;t++)if(e[t])return!1;return!0},e._getEditOperations=function(e,t){for(var n=[],i=!1,r=0,o=t.length;r<o;r++){var s=t[r];if(s){var a=this._getEditOperationsFromCommand(e,r,s);n=n.concat(a.operations),i=i||a.hadTrackedEditOperation}}return{operations:n,hadTrackedEditOperation:i}},e._getEditOperationsFromCommand=function(e,t,n){var i=[],r=0,s=function(e,o,s){void 0===s&&(s=!1),e.isEmpty()&&""===o||i.push({identifier:{major:t,minor:r++},range:e,text:o,forceMoveMarkers:s,isAutoWhitespaceEdit:n.insertsAutoWhitespace})},a=!1,u=function(e,t,n){a=!0,s(e,t,n)},l=function(t,n){var i;if(t.isEmpty())if("boolean"===typeof n)i=n?2:3;else{var r=e.model.getLineMaxColumn(t.startLineNumber);i=t.startColumn===r?2:3}else i=1;var o=e.trackedRanges.length,s=e.model._setTrackedRange(null,t,i);return e.trackedRanges[o]=s,e.trackedRangesDirection[o]=t.getDirection(),o.toString()},c={addEditOperation:s,addTrackedEditOperation:u,trackSelection:l};try{n.getEditOperations(e.model,c)}catch(d){return Object(o["e"])(d),{operations:[],hadTrackedEditOperation:!1}}return{operations:i,hadTrackedEditOperation:a}},e._getLoserCursorMap=function(e){e=e.slice(0),e.sort((function(e,t){return-oe["a"].compareRangesUsingEnds(e.range,t.range)}));for(var t={},n=1;n<e.length;n++){var i=e[n-1],r=e[n];if(i.range.getStartPosition().isBefore(r.range.getEndPosition())){var o=void 0;o=i.identifier.major>r.identifier.major?i.identifier.major:r.identifier.major,t[o.toString()]=!0;for(var s=0;s<e.length;s++)e[s].identifier.major===o&&(e.splice(s,1),s<n&&n--,s--);n>0&&n--}}return t},e}(),Li=n("9Y+e"),Ei=n("wQH0"),xi=n("TQUy"),Oi=n("QuOb"),Bi=function(){function e(){this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[]}return e.prototype.insert=function(e){this._hasPending=!0,this._inserts.push(e)},e.prototype.change=function(e){this._hasPending=!0,this._changes.push(e)},e.prototype.remove=function(e){this._hasPending=!0,this._removes.push(e)},e.prototype.mustCommit=function(){return this._hasPending},e.prototype.commit=function(e){if(this._hasPending){var t=this._inserts,n=this._changes,i=this._removes;this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[],e._commitPendingChanges(t,n,i)}},e}(),ki=function(){function e(e,t,n,i,r){this.id=e,this.afterLineNumber=t,this.ordinal=n,this.height=i,this.minWidth=r,this.prefixSum=0}return e}(),Di=function(){function e(t,n){this._instanceId=Me["L"](++e.INSTANCE_COUNT),this._pendingChanges=new Bi,this._lastWhitespaceId=0,this._arr=[],this._prefixSumValidIndex=-1,this._minWidth=-1,this._lineCount=t,this._lineHeight=n}return e.findInsertionIndex=function(e,t,n){var i=0,r=e.length;while(i<r){var o=i+r>>>1;t===e[o].afterLineNumber?n<e[o].ordinal?r=o:i=o+1:t<e[o].afterLineNumber?r=o:i=o+1}return i},e.prototype.setLineHeight=function(e){this._checkPendingChanges(),this._lineHeight=e},e.prototype.onFlushed=function(e){this._checkPendingChanges(),this._lineCount=e},e.prototype.changeWhitespace=function(e){var t=this;try{var n={insertWhitespace:function(e,n,i,r){e|=0,n|=0,i|=0,r|=0;var o=t._instanceId+ ++t._lastWhitespaceId;return t._pendingChanges.insert(new ki(o,e,n,i,r)),o},changeOneWhitespace:function(e,n,i){n|=0,i|=0,t._pendingChanges.change({id:e,newAfterLineNumber:n,newHeight:i})},removeWhitespace:function(e){t._pendingChanges.remove({id:e})}};return e(n)}finally{this._pendingChanges.commit(this)}},e.prototype._commitPendingChanges=function(e,t,n){if((e.length>0||n.length>0)&&(this._minWidth=-1),e.length+t.length+n.length<=1){for(var i=0,r=e;i<r.length;i++){var o=r[i];this._insertWhitespace(o)}for(var s=0,a=t;s<a.length;s++){var u=a[s];this._changeOneWhitespace(u.id,u.newAfterLineNumber,u.newHeight)}for(var l=0,c=n;l<c.length;l++){var d=c[l],h=this._findWhitespaceIndex(d.id);-1!==h&&this._removeWhitespace(h)}}else{for(var f=new Set,p=0,g=n;p<g.length;p++){d=g[p];f.add(d.id)}for(var A=new Map,m=0,v=t;m<v.length;m++){u=v[m];A.set(u.id,u)}var _=function(e){for(var t=[],n=0,i=e;n<i.length;n++){var r=i[n];if(!f.has(r.id)){if(A.has(r.id)){var o=A.get(r.id);r.afterLineNumber=o.newAfterLineNumber,r.height=o.newHeight}t.push(r)}}return t},y=_(this._arr).concat(_(e));y.sort((function(e,t){return e.afterLineNumber===t.afterLineNumber?e.ordinal-t.ordinal:e.afterLineNumber-t.afterLineNumber})),this._arr=y,this._prefixSumValidIndex=-1}},e.prototype._checkPendingChanges=function(){this._pendingChanges.mustCommit()&&this._pendingChanges.commit(this)},e.prototype._insertWhitespace=function(t){var n=e.findInsertionIndex(this._arr,t.afterLineNumber,t.ordinal);this._arr.splice(n,0,t),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,n-1)},e.prototype._findWhitespaceIndex=function(e){for(var t=this._arr,n=0,i=t.length;n<i;n++)if(t[n].id===e)return n;return-1},e.prototype._changeOneWhitespace=function(e,t,n){var i=this._findWhitespaceIndex(e);if(-1!==i&&(this._arr[i].height!==n&&(this._arr[i].height=n,this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,i-1)),this._arr[i].afterLineNumber!==t)){var r=this._arr[i];this._removeWhitespace(i),r.afterLineNumber=t,this._insertWhitespace(r)}},e.prototype._removeWhitespace=function(e){this._arr.splice(e,1),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,e-1)},e.prototype.onLinesDeleted=function(e,t){this._checkPendingChanges(),e|=0,t|=0,this._lineCount-=t-e+1;for(var n=0,i=this._arr.length;n<i;n++){var r=this._arr[n].afterLineNumber;e<=r&&r<=t?this._arr[n].afterLineNumber=e-1:r>t&&(this._arr[n].afterLineNumber-=t-e+1)}},e.prototype.onLinesInserted=function(e,t){this._checkPendingChanges(),e|=0,t|=0,this._lineCount+=t-e+1;for(var n=0,i=this._arr.length;n<i;n++){var r=this._arr[n].afterLineNumber;e<=r&&(this._arr[n].afterLineNumber+=t-e+1)}},e.prototype.getWhitespacesTotalHeight=function(){return this._checkPendingChanges(),0===this._arr.length?0:this.getWhitespacesAccumulatedHeight(this._arr.length-1)},e.prototype.getWhitespacesAccumulatedHeight=function(e){this._checkPendingChanges(),e|=0;var t=Math.max(0,this._prefixSumValidIndex+1);0===t&&(this._arr[0].prefixSum=this._arr[0].height,t++);for(var n=t;n<=e;n++)this._arr[n].prefixSum=this._arr[n-1].prefixSum+this._arr[n].height;return this._prefixSumValidIndex=Math.max(this._prefixSumValidIndex,e),this._arr[e].prefixSum},e.prototype.getLinesTotalHeight=function(){this._checkPendingChanges();var e=this._lineHeight*this._lineCount,t=this.getWhitespacesTotalHeight();return e+t},e.prototype.getWhitespaceAccumulatedHeightBeforeLineNumber=function(e){this._checkPendingChanges(),e|=0;var t=this._findLastWhitespaceBeforeLineNumber(e);return-1===t?0:this.getWhitespacesAccumulatedHeight(t)},e.prototype._findLastWhitespaceBeforeLineNumber=function(e){e|=0;var t=this._arr,n=0,i=t.length-1;while(n<=i){var r=i-n|0,o=r/2|0,s=n+o|0;if(t[s].afterLineNumber<e){if(s+1>=t.length||t[s+1].afterLineNumber>=e)return s;n=s+1|0}else i=s-1|0}return-1},e.prototype._findFirstWhitespaceAfterLineNumber=function(e){e|=0;var t=this._findLastWhitespaceBeforeLineNumber(e),n=t+1;return n<this._arr.length?n:-1},e.prototype.getFirstWhitespaceIndexAfterLineNumber=function(e){return this._checkPendingChanges(),e|=0,this._findFirstWhitespaceAfterLineNumber(e)},e.prototype.getVerticalOffsetForLineNumber=function(e){var t;this._checkPendingChanges(),e|=0,t=e>1?this._lineHeight*(e-1):0;var n=this.getWhitespaceAccumulatedHeightBeforeLineNumber(e);return t+n},e.prototype.getWhitespaceMinWidth=function(){if(this._checkPendingChanges(),-1===this._minWidth){for(var e=0,t=0,n=this._arr.length;t<n;t++)e=Math.max(e,this._arr[t].minWidth);this._minWidth=e}return this._minWidth},e.prototype.isAfterLines=function(e){this._checkPendingChanges();var t=this.getLinesTotalHeight();return e>t},e.prototype.getLineNumberAtOrAfterVerticalOffset=function(e){if(this._checkPendingChanges(),e|=0,e<0)return 1;var t=0|this._lineCount,n=this._lineHeight,i=1,r=t;while(i<r){var o=(i+r)/2|0,s=0|this.getVerticalOffsetForLineNumber(o);if(e>=s+n)i=o+1;else{if(e>=s)return o;r=o}}return i>t?t:i},e.prototype.getLinesViewportData=function(e,t){this._checkPendingChanges(),e|=0,t|=0;var n,i,r=this._lineHeight,o=0|this.getLineNumberAtOrAfterVerticalOffset(e),s=0|this.getVerticalOffsetForLineNumber(o),a=0|this._lineCount,u=0|this.getFirstWhitespaceIndexAfterLineNumber(o),l=0|this.getWhitespacesCount();-1===u?(u=l,i=a+1,n=0):(i=0|this.getAfterLineNumberForWhitespaceIndex(u),n=0|this.getHeightForWhitespaceIndex(u));var c=s,d=c,h=5e5,f=0;s>=h&&(f=Math.floor(s/h)*h,f=Math.floor(f/r)*r,d-=f);for(var p=[],g=e+(t-e)/2,A=-1,m=o;m<=a;m++){if(-1===A){var v=c,_=c+r;(v<=g&&g<_||v>g)&&(A=m)}c+=r,p[m-o]=d,d+=r;while(i===m)d+=n,c+=n,u++,u>=l?i=a+1:(i=0|this.getAfterLineNumberForWhitespaceIndex(u),n=0|this.getHeightForWhitespaceIndex(u));if(c>=t){a=m;break}}-1===A&&(A=a);var y=0|this.getVerticalOffsetForLineNumber(a),b=o,w=a;return b<w&&s<e&&b++,b<w&&y+r>t&&w--,{bigNumbersDelta:f,startLineNumber:o,endLineNumber:a,relativeVerticalOffset:p,centeredLineNumber:A,completelyVisibleStartLineNumber:b,completelyVisibleEndLineNumber:w}},e.prototype.getVerticalOffsetForWhitespaceIndex=function(e){this._checkPendingChanges(),e|=0;var t,n,i=this.getAfterLineNumberForWhitespaceIndex(e);return t=i>=1?this._lineHeight*i:0,n=e>0?this.getWhitespacesAccumulatedHeight(e-1):0,t+n},e.prototype.getWhitespaceIndexAtOrAfterVerticallOffset=function(e){this._checkPendingChanges(),e|=0;var t=0,n=this.getWhitespacesCount()-1;if(n<0)return-1;var i=this.getVerticalOffsetForWhitespaceIndex(n),r=this.getHeightForWhitespaceIndex(n);if(e>=i+r)return-1;while(t<n){var o=Math.floor((t+n)/2),s=this.getVerticalOffsetForWhitespaceIndex(o),a=this.getHeightForWhitespaceIndex(o);if(e>=s+a)t=o+1;else{if(e>=s)return o;n=o}}return t},e.prototype.getWhitespaceAtVerticalOffset=function(e){this._checkPendingChanges(),e|=0;var t=this.getWhitespaceIndexAtOrAfterVerticallOffset(e);if(t<0)return null;if(t>=this.getWhitespacesCount())return null;var n=this.getVerticalOffsetForWhitespaceIndex(t);if(n>e)return null;var i=this.getHeightForWhitespaceIndex(t),r=this.getIdForWhitespaceIndex(t),o=this.getAfterLineNumberForWhitespaceIndex(t);return{id:r,afterLineNumber:o,verticalOffset:n,height:i}},e.prototype.getWhitespaceViewportData=function(e,t){this._checkPendingChanges(),e|=0,t|=0;var n=this.getWhitespaceIndexAtOrAfterVerticallOffset(e),i=this.getWhitespacesCount()-1;if(n<0)return[];for(var r=[],o=n;o<=i;o++){var s=this.getVerticalOffsetForWhitespaceIndex(o),a=this.getHeightForWhitespaceIndex(o);if(s>=t)break;r.push({id:this.getIdForWhitespaceIndex(o),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(o),verticalOffset:s,height:a})}return r},e.prototype.getWhitespaces=function(){return this._checkPendingChanges(),this._arr.slice(0)},e.prototype.getWhitespacesCount=function(){return this._checkPendingChanges(),this._arr.length},e.prototype.getIdForWhitespaceIndex=function(e){return this._checkPendingChanges(),e|=0,this._arr[e].id},e.prototype.getAfterLineNumberForWhitespaceIndex=function(e){return this._checkPendingChanges(),e|=0,this._arr[e].afterLineNumber},e.prototype.getHeightForWhitespaceIndex=function(e){return this._checkPendingChanges(),e|=0,this._arr[e].height},e.INSTANCE_COUNT=0,e}(),Ii=n("qNAo"),Mi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Fi=125,Ti=function(){function e(e,t,n,i){e|=0,t|=0,n|=0,i|=0,e<0&&(e=0),t<0&&(t=0),n<0&&(n=0),i<0&&(i=0),this.width=e,this.contentWidth=t,this.scrollWidth=Math.max(e,t),this.height=n,this.contentHeight=i,this.scrollHeight=Math.max(n,i)}return e.prototype.equals=function(e){return this.width===e.width&&this.contentWidth===e.contentWidth&&this.height===e.height&&this.contentHeight===e.contentHeight},e}(),Ri=function(e){function t(t,n){var i=e.call(this)||this;return i._onDidContentSizeChange=i._register(new s["a"]),i.onDidContentSizeChange=i._onDidContentSizeChange.event,i._dimensions=new Ti(0,0,0,0),i._scrollable=i._register(new Oi["a"](t,n)),i.onDidScroll=i._scrollable.onScroll,i}return Mi(t,e),t.prototype.getScrollable=function(){return this._scrollable},t.prototype.setSmoothScrollDuration=function(e){this._scrollable.setSmoothScrollDuration(e)},t.prototype.validateScrollPosition=function(e){return this._scrollable.validateScrollPosition(e)},t.prototype.getScrollDimensions=function(){return this._dimensions},t.prototype.setScrollDimensions=function(e){if(!this._dimensions.equals(e)){var t=this._dimensions;this._dimensions=e,this._scrollable.setScrollDimensions({width:e.width,scrollWidth:e.scrollWidth,height:e.height,scrollHeight:e.scrollHeight});var n=t.contentWidth!==e.contentWidth,i=t.contentHeight!==e.contentHeight;(n||i)&&this._onDidContentSizeChange.fire({contentWidth:e.contentWidth,contentHeight:e.contentHeight,contentWidthChanged:n,contentHeightChanged:i})}},t.prototype.getFutureScrollPosition=function(){return this._scrollable.getFutureScrollPosition()},t.prototype.getCurrentScrollPosition=function(){return this._scrollable.getCurrentScrollPosition()},t.prototype.setScrollPositionNow=function(e){this._scrollable.setScrollPositionNow(e)},t.prototype.setScrollPositionSmooth=function(e){this._scrollable.setScrollPositionSmooth(e)},t}(a["a"]),Pi=function(e){function t(t,n,i){var r=e.call(this)||this;r._configuration=t;var o=r._configuration.options,s=o.get(107);return r._linesLayout=new Di(n,o.get(49)),r._scrollable=r._register(new Ri(0,i)),r._configureSmoothScrollDuration(),r._scrollable.setScrollDimensions(new Ti(s.contentWidth,0,s.height,0)),r.onDidScroll=r._scrollable.onDidScroll,r.onDidContentSizeChange=r._scrollable.onDidContentSizeChange,r._updateHeight(),r}return Mi(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.getScrollable=function(){return this._scrollable.getScrollable()},t.prototype.onHeightMaybeChanged=function(){this._updateHeight()},t.prototype._configureSmoothScrollDuration=function(){this._scrollable.setSmoothScrollDuration(this._configuration.options.get(87)?Fi:0)},t.prototype.onConfigurationChanged=function(e){var t=this._configuration.options;if(e.hasChanged(49)&&this._linesLayout.setLineHeight(t.get(49)),e.hasChanged(107)){var n=t.get(107),i=n.contentWidth,r=n.height,o=this._scrollable.getScrollDimensions(),s=o.scrollWidth;this._scrollable.setScrollDimensions(new Ti(i,o.contentWidth,r,this._getContentHeight(i,r,s)))}else this._updateHeight();e.hasChanged(87)&&this._configureSmoothScrollDuration()},t.prototype.onFlushed=function(e){this._linesLayout.onFlushed(e)},t.prototype.onLinesDeleted=function(e,t){this._linesLayout.onLinesDeleted(e,t)},t.prototype.onLinesInserted=function(e,t){this._linesLayout.onLinesInserted(e,t)},t.prototype._getHorizontalScrollbarHeight=function(e,t){var n=this._configuration.options,i=n.get(78);return 2===i.horizontal||e>=t?0:i.horizontalScrollbarSize},t.prototype._getContentHeight=function(e,t,n){var i=this._configuration.options,r=this._linesLayout.getLinesTotalHeight();return i.get(80)?r+=t-i.get(49):r+=this._getHorizontalScrollbarHeight(e,n),r},t.prototype._updateHeight=function(){var e=this._scrollable.getScrollDimensions(),t=e.width,n=e.height,i=e.scrollWidth;this._scrollable.setScrollDimensions(new Ti(t,e.contentWidth,n,this._getContentHeight(t,n,i)))},t.prototype.getCurrentViewport=function(){var e=this._scrollable.getScrollDimensions(),t=this._scrollable.getCurrentScrollPosition();return new Ii["f"](t.scrollTop,t.scrollLeft,e.width,e.height)},t.prototype.getFutureViewport=function(){var e=this._scrollable.getScrollDimensions(),t=this._scrollable.getFutureScrollPosition();return new Ii["f"](t.scrollTop,t.scrollLeft,e.width,e.height)},t.prototype._computeContentWidth=function(e){var t=this._configuration.options,n=t.get(108),i=t.get(34);if(n.isViewportWrapping){var r=t.get(107),o=t.get(54);return e>r.contentWidth+i.typicalHalfwidthCharacterWidth&&o.enabled&&"right"===o.side?e+r.verticalScrollbarWidth:e}var s=t.get(79)*i.typicalHalfwidthCharacterWidth,a=this._linesLayout.getWhitespaceMinWidth();return Math.max(e+s,a)},t.prototype.onMaxLineWidthChanged=function(e){var t=this._scrollable.getScrollDimensions();this._scrollable.setScrollDimensions(new Ti(t.width,this._computeContentWidth(e),t.height,t.contentHeight)),this._updateHeight()},t.prototype.saveState=function(){var e=this._scrollable.getFutureScrollPosition(),t=e.scrollTop,n=this._linesLayout.getLineNumberAtOrAfterVerticalOffset(t),i=this._linesLayout.getWhitespaceAccumulatedHeightBeforeLineNumber(n);return{scrollTop:t,scrollTopWithoutViewZones:t-i,scrollLeft:e.scrollLeft}},t.prototype.changeWhitespace=function(e){return this._linesLayout.changeWhitespace(e)},t.prototype.getVerticalOffsetForLineNumber=function(e){return this._linesLayout.getVerticalOffsetForLineNumber(e)},t.prototype.isAfterLines=function(e){return this._linesLayout.isAfterLines(e)},t.prototype.getLineNumberAtVerticalOffset=function(e){return this._linesLayout.getLineNumberAtOrAfterVerticalOffset(e)},t.prototype.getWhitespaceAtVerticalOffset=function(e){return this._linesLayout.getWhitespaceAtVerticalOffset(e)},t.prototype.getLinesViewportData=function(){var e=this.getCurrentViewport();return this._linesLayout.getLinesViewportData(e.top,e.top+e.height)},t.prototype.getLinesViewportDataAtScrollTop=function(e){var 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)},t.prototype.getWhitespaceViewportData=function(){var e=this.getCurrentViewport();return this._linesLayout.getWhitespaceViewportData(e.top,e.top+e.height)},t.prototype.getWhitespaces=function(){return this._linesLayout.getWhitespaces()},t.prototype.getContentWidth=function(){var e=this._scrollable.getScrollDimensions();return e.contentWidth},t.prototype.getScrollWidth=function(){var e=this._scrollable.getScrollDimensions();return e.scrollWidth},t.prototype.getContentHeight=function(){var e=this._scrollable.getScrollDimensions();return e.contentHeight},t.prototype.getScrollHeight=function(){var e=this._scrollable.getScrollDimensions();return e.scrollHeight},t.prototype.getCurrentScrollLeft=function(){var e=this._scrollable.getCurrentScrollPosition();return e.scrollLeft},t.prototype.getCurrentScrollTop=function(){var e=this._scrollable.getCurrentScrollPosition();return e.scrollTop},t.prototype.validateScrollPosition=function(e){return this._scrollable.validateScrollPosition(e)},t.prototype.setScrollPositionNow=function(e){this._scrollable.setScrollPositionNow(e)},t.prototype.setScrollPositionSmooth=function(e){this._scrollable.setScrollPositionSmooth(e)},t.prototype.deltaScrollNow=function(e,t){var n=this._scrollable.getCurrentScrollPosition();this._scrollable.setScrollPositionNow({scrollLeft:n.scrollLeft+e,scrollTop:n.scrollTop+t})},t}(a["a"]),Ui=n("tX9W"),Hi=n("LeU+"),ji=function(){function e(e,t){this.outputLineIndex=e,this.outputOffset=t}return e}(),Qi=function(){function e(e,t,n){this.breakOffsets=e,this.breakOffsetsVisibleColumn=t,this.wrappedTextIndentLength=n}return e.getInputOffsetOfOutputPosition=function(e,t,n){return 0===t?n:e[t-1]+n},e.getOutputPositionOfInputOffset=function(e,t){var n=0,i=e.length-1,r=0,o=0;while(n<=i){r=n+(i-n)/2|0;var s=e[r];if(o=r>0?e[r-1]:0,t<o)i=r-1;else{if(!(t>=s))break;n=r+1}}return new ji(r,t-o)},e}(),Vi=function(){function e(e){this._lines=e}return e.prototype.convertViewPositionToModelPosition=function(e){return this._lines.convertViewPositionToModelPosition(e.lineNumber,e.column)},e.prototype.convertViewRangeToModelRange=function(e){return this._lines.convertViewRangeToModelRange(e)},e.prototype.validateViewPosition=function(e,t){return this._lines.validateViewPosition(e.lineNumber,e.column,t)},e.prototype.validateViewRange=function(e,t){return this._lines.validateViewRange(e,t)},e.prototype.convertModelPositionToViewPosition=function(e){return this._lines.convertModelPositionToViewPosition(e.lineNumber,e.column)},e.prototype.convertModelRangeToViewRange=function(e){return this._lines.convertModelRangeToViewRange(e)},e.prototype.modelPositionIsVisible=function(e){return this._lines.modelPositionIsVisible(e.lineNumber,e.column)},e}(),Wi=function(){function e(e){this._counts=e,this._isValid=!1,this._validEndIndex=-1,this._modelToView=[],this._viewToModel=[]}return e.prototype._invalidate=function(e){this._isValid=!1,this._validEndIndex=Math.min(this._validEndIndex,e-1)},e.prototype._ensureValid=function(){if(!this._isValid){for(var e=this._validEndIndex+1,t=this._counts.length;e<t;e++){var n=this._counts[e],i=e>0?this._modelToView[e-1]:0;this._modelToView[e]=i+n;for(var r=0;r<n;r++)this._viewToModel[i+r]=e}this._modelToView.length=this._counts.length,this._viewToModel.length=this._modelToView[this._modelToView.length-1],this._isValid=!0,this._validEndIndex=this._counts.length-1}},e.prototype.changeValue=function(e,t){this._counts[e]!==t&&(this._counts[e]=t,this._invalidate(e))},e.prototype.removeValues=function(e,t){this._counts.splice(e,t),this._invalidate(e)},e.prototype.insertValues=function(e,t){this._counts=Rt["a"](this._counts,e,t),this._invalidate(e)},e.prototype.getTotalValue=function(){return this._ensureValid(),this._viewToModel.length},e.prototype.getAccumulatedValue=function(e){return this._ensureValid(),this._modelToView[e]},e.prototype.getIndexOf=function(e){this._ensureValid();var t=this._viewToModel[e],n=t>0?this._modelToView[t-1]:0;return new Hi["b"](t,e-n)},e}(),zi=function(){function e(e,t,n,i,r,o,s,a){this.model=e,this._validModelVersionId=-1,this._domLineBreaksComputerFactory=t,this._monospaceLineBreaksComputerFactory=n,this.fontInfo=i,this.tabSize=r,this.wrappingStrategy=o,this.wrappingColumn=s,this.wrappingIndent=a,this._constructLines(!0,null)}return e.prototype.dispose=function(){this.hiddenAreasIds=this.model.deltaDecorations(this.hiddenAreasIds,[])},e.prototype.createCoordinatesConverter=function(){return new Vi(this)},e.prototype._constructLines=function(e,t){var n=this;this.lines=[],e&&(this.hiddenAreasIds=[]);for(var i=this.model.getLinesContent(),r=i.length,o=this.createLineBreaksComputer(),s=0;s<r;s++)o.addRequest(i[s],t?t[s]:null);var a=o.finalize(),u=[],l=this.hiddenAreasIds.map((function(e){return n.model.getDecorationRange(e)})).sort(oe["a"].compareRangesUsingStarts),c=1,d=0,h=-1,f=h+1<l.length?d+1:r+2;for(s=0;s<r;s++){var p=s+1;p===f&&(h++,c=l[h].startLineNumber,d=l[h].endLineNumber,f=h+1<l.length?d+1:r+2);var g=p>=c&&p<=d,A=Zi(a[s],!g);u[s]=A.getViewLineCount(),this.lines[s]=A}this._validModelVersionId=this.model.getVersionId(),this.prefixSumComputer=new Wi(u)},e.prototype.getHiddenAreas=function(){var e=this;return this.hiddenAreasIds.map((function(t){return e.model.getDecorationRange(t)}))},e.prototype._reduceRanges=function(e){var t=this;if(0===e.length)return[];for(var n=e.map((function(e){return t.model.validateRange(e)})).sort(oe["a"].compareRangesUsingStarts),i=[],r=n[0].startLineNumber,o=n[0].endLineNumber,s=1,a=n.length;s<a;s++){var u=n[s];u.startLineNumber>o+1?(i.push(new oe["a"](r,1,o,1)),r=u.startLineNumber,o=u.endLineNumber):u.endLineNumber>o&&(o=u.endLineNumber)}return i.push(new oe["a"](r,1,o,1)),i},e.prototype.setHiddenAreas=function(e){var t=this,n=this._reduceRanges(e),i=this.hiddenAreasIds.map((function(e){return t.model.getDecorationRange(e)})).sort(oe["a"].compareRangesUsingStarts);if(n.length===i.length){for(var r=!1,o=0;o<n.length;o++)if(!n[o].equalsRange(i[o])){r=!0;break}if(!r)return!1}for(var s=[],a=0,u=n;a<u.length;a++){var l=u[a];s.push({range:l,options:Ui["a"].EMPTY})}this.hiddenAreasIds=this.model.deltaDecorations(this.hiddenAreasIds,s);var c=n,d=1,h=0,f=-1,p=f+1<c.length?h+1:this.lines.length+2,g=!1;for(o=0;o<this.lines.length;o++){var A=o+1;A===p&&(f++,d=c[f].startLineNumber,h=c[f].endLineNumber,p=f+1<c.length?h+1:this.lines.length+2);var m=!1;if(A>=d&&A<=h?this.lines[o].isVisible()&&(this.lines[o]=this.lines[o].setVisible(!1),m=!0):(g=!0,this.lines[o].isVisible()||(this.lines[o]=this.lines[o].setVisible(!0),m=!0)),m){var v=this.lines[o].getViewLineCount();this.prefixSumComputer.changeValue(o,v)}}return g||this.setHiddenAreas([]),!0},e.prototype.modelPositionIsVisible=function(e,t){return!(e<1||e>this.lines.length)&&this.lines[e-1].isVisible()},e.prototype.setTabSize=function(e){return this.tabSize!==e&&(this.tabSize=e,this._constructLines(!1,null),!0)},e.prototype.setWrappingSettings=function(e,t,n,i){var r=this.fontInfo.equals(e),o=this.wrappingStrategy===t,s=this.wrappingColumn===n,a=this.wrappingIndent===i;if(r&&o&&s&&a)return!1;var u=r&&o&&!s&&a;this.fontInfo=e,this.wrappingStrategy=t,this.wrappingColumn=n,this.wrappingIndent=i;var l=null;if(u){l=[];for(var c=0,d=this.lines.length;c<d;c++)l[c]=this.lines[c].getLineBreakData()}return this._constructLines(!1,l),!0},e.prototype.createLineBreaksComputer=function(){var e="advanced"===this.wrappingStrategy?this._domLineBreaksComputerFactory:this._monospaceLineBreaksComputerFactory;return e.createLineBreaksComputer(this.fontInfo,this.tabSize,this.wrappingColumn,this.wrappingIndent)},e.prototype.onModelFlushed=function(){this._constructLines(!0,null)},e.prototype.onModelLinesDeleted=function(e,t,n){if(e<=this._validModelVersionId)return null;var i=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,r=this.prefixSumComputer.getAccumulatedValue(n-1);return this.lines.splice(t-1,n-t+1),this.prefixSumComputer.removeValues(t-1,n-t+1),new tt(i,r)},e.prototype.onModelLinesInserted=function(e,t,n,i){if(e<=this._validModelVersionId)return null;for(var r=this.getHiddenAreas(),o=!1,s=new re["a"](t,1),a=0,u=r;a<u.length;a++){var l=u[a];if(l.containsPosition(s)){o=!0;break}}for(var c=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,d=0,h=[],f=[],p=0,g=i.length;p<g;p++){var A=Zi(i[p],!o);h.push(A);var m=A.getViewLineCount();d+=m,f[p]=m}return this.lines=this.lines.slice(0,t-1).concat(h).concat(this.lines.slice(t-1)),this.prefixSumComputer.insertValues(t-1,f),new nt(c,c+d-1)},e.prototype.onModelLineChanged=function(e,t,n){if(e<=this._validModelVersionId)return[!1,null,null,null];var i=t-1,r=this.lines[i].getViewLineCount(),o=this.lines[i].isVisible(),s=Zi(n,o);this.lines[i]=s;var a=this.lines[i].getViewLineCount(),u=!1,l=0,c=-1,d=0,h=-1,f=0,p=-1;r>a?(l=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,c=l+a-1,f=c+1,p=f+(r-a)-1,u=!0):r<a?(l=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,c=l+r-1,d=c+1,h=d+(a-r)-1,u=!0):(l=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,c=l+a-1),this.prefixSumComputer.changeValue(i,a);var g=l<=c?new et(l,c):null,A=d<=h?new nt(d,h):null,m=f<=p?new tt(f,p):null;return[u,g,A,m]},e.prototype.acceptVersionId=function(e){this._validModelVersionId=e,1!==this.lines.length||this.lines[0].isVisible()||this.setHiddenAreas([])},e.prototype.getViewLineCount=function(){return this.prefixSumComputer.getTotalValue()},e.prototype._toValidViewLineNumber=function(e){if(e<1)return 1;var t=this.getViewLineCount();return e>t?t:0|e},e.prototype.getActiveIndentGuide=function(e,t,n){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t),n=this._toValidViewLineNumber(n);var i=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),r=this.convertViewPositionToModelPosition(t,this.getViewLineMinColumn(t)),o=this.convertViewPositionToModelPosition(n,this.getViewLineMinColumn(n)),s=this.model.getActiveIndentGuide(i.lineNumber,r.lineNumber,o.lineNumber),a=this.convertModelPositionToViewPosition(s.startLineNumber,1),u=this.convertModelPositionToViewPosition(s.endLineNumber,this.model.getLineMaxColumn(s.endLineNumber));return{startLineNumber:a.lineNumber,endLineNumber:u.lineNumber,indent:s.indent}},e.prototype.getViewLinesIndentGuides=function(e,t){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t);for(var n=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),i=this.convertViewPositionToModelPosition(t,this.getViewLineMaxColumn(t)),r=[],o=[],s=[],a=n.lineNumber-1,u=i.lineNumber-1,l=null,c=a;c<=u;c++){var d=this.lines[c];if(d.isVisible()){var h=d.getViewLineNumberOfModelPosition(0,c===a?n.column:1),f=d.getViewLineNumberOfModelPosition(0,this.model.getLineMaxColumn(c+1)),p=f-h+1,g=0;p>1&&1===d.getViewLineMinColumn(this.model,c+1,f)&&(g=0===h?1:2),o.push(p),s.push(g),null===l&&(l=new re["a"](c+1,0))}else null!==l&&(r=r.concat(this.model.getLinesIndentGuides(l.lineNumber,c)),l=null)}null!==l&&(r=r.concat(this.model.getLinesIndentGuides(l.lineNumber,i.lineNumber)),l=null);for(var A=t-e+1,m=new Array(A),v=0,_=0,y=r.length;_<y;_++){var b=r[_],w=(p=Math.min(A-v,o[_]),g=s[_],void 0);w=2===g?0:1===g?1:p;for(var C=0;C<p;C++)C===w&&(b=0),m[v++]=b}return m},e.prototype.getViewLineContent=function(e){e=this._toValidViewLineNumber(e);var t=this.prefixSumComputer.getIndexOf(e-1),n=t.index,i=t.remainder;return this.lines[n].getViewLineContent(this.model,n+1,i)},e.prototype.getViewLineLength=function(e){e=this._toValidViewLineNumber(e);var t=this.prefixSumComputer.getIndexOf(e-1),n=t.index,i=t.remainder;return this.lines[n].getViewLineLength(this.model,n+1,i)},e.prototype.getViewLineMinColumn=function(e){e=this._toValidViewLineNumber(e);var t=this.prefixSumComputer.getIndexOf(e-1),n=t.index,i=t.remainder;return this.lines[n].getViewLineMinColumn(this.model,n+1,i)},e.prototype.getViewLineMaxColumn=function(e){e=this._toValidViewLineNumber(e);var t=this.prefixSumComputer.getIndexOf(e-1),n=t.index,i=t.remainder;return this.lines[n].getViewLineMaxColumn(this.model,n+1,i)},e.prototype.getViewLineData=function(e){e=this._toValidViewLineNumber(e);var t=this.prefixSumComputer.getIndexOf(e-1),n=t.index,i=t.remainder;return this.lines[n].getViewLineData(this.model,n+1,i)},e.prototype.getViewLinesData=function(e,t,n){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t);for(var i=this.prefixSumComputer.getIndexOf(e-1),r=e,o=i.index,s=i.remainder,a=[],u=o,l=this.model.getLineCount();u<l;u++){var c=this.lines[u];if(c.isVisible()){var d=u===o?s:0,h=c.getViewLineCount()-d,f=!1;r+h>t&&(f=!0,h=t-r+1);var p=d+h;if(c.getViewLinesData(this.model,u+1,d,p,r-e,n,a),r+=h,f)break}}return a},e.prototype.validateViewPosition=function(e,t,n){e=this._toValidViewLineNumber(e);var i=this.prefixSumComputer.getIndexOf(e-1),r=i.index,o=i.remainder,s=this.lines[r],a=s.getViewLineMinColumn(this.model,r+1,o),u=s.getViewLineMaxColumn(this.model,r+1,o);t<a&&(t=a),t>u&&(t=u);var l=s.getModelColumnOfViewPosition(o,t),c=this.model.validatePosition(new re["a"](r+1,l));return c.equals(n)?new re["a"](e,t):this.convertModelPositionToViewPosition(n.lineNumber,n.column)},e.prototype.validateViewRange=function(e,t){var n=this.validateViewPosition(e.startLineNumber,e.startColumn,t.getStartPosition()),i=this.validateViewPosition(e.endLineNumber,e.endColumn,t.getEndPosition());return new oe["a"](n.lineNumber,n.column,i.lineNumber,i.column)},e.prototype.convertViewPositionToModelPosition=function(e,t){e=this._toValidViewLineNumber(e);var n=this.prefixSumComputer.getIndexOf(e-1),i=n.index,r=n.remainder,o=this.lines[i].getModelColumnOfViewPosition(r,t);return this.model.validatePosition(new re["a"](i+1,o))},e.prototype.convertViewRangeToModelRange=function(e){var t=this.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),n=this.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);return new oe["a"](t.lineNumber,t.column,n.lineNumber,n.column)},e.prototype.convertModelPositionToViewPosition=function(e,t){var n=this.model.validatePosition(new re["a"](e,t)),i=n.lineNumber,r=n.column,o=i-1,s=!1;while(o>0&&!this.lines[o].isVisible())o--,s=!0;if(0===o&&!this.lines[o].isVisible())return new re["a"](1,1);var a,u=1+(0===o?0:this.prefixSumComputer.getAccumulatedValue(o-1));return a=s?this.lines[o].getViewPositionOfModelPosition(u,this.model.getLineMaxColumn(o+1)):this.lines[i-1].getViewPositionOfModelPosition(u,r),a},e.prototype.convertModelRangeToViewRange=function(e){var t=this.convertModelPositionToViewPosition(e.startLineNumber,e.startColumn),n=this.convertModelPositionToViewPosition(e.endLineNumber,e.endColumn);return e.startLineNumber===e.endLineNumber&&t.lineNumber!==n.lineNumber&&n.column===this.getViewLineMinColumn(n.lineNumber)?new oe["a"](t.lineNumber,t.column,n.lineNumber-1,this.getViewLineMaxColumn(n.lineNumber-1)):new oe["a"](t.lineNumber,t.column,n.lineNumber,n.column)},e.prototype._getViewLineNumberForModelPosition=function(e,t){var n=e-1;if(this.lines[n].isVisible()){var i=1+(0===n?0:this.prefixSumComputer.getAccumulatedValue(n-1));return this.lines[n].getViewLineNumberOfModelPosition(i,t)}while(n>0&&!this.lines[n].isVisible())n--;if(0===n&&!this.lines[n].isVisible())return 1;var r=1+(0===n?0:this.prefixSumComputer.getAccumulatedValue(n-1));return this.lines[n].getViewLineNumberOfModelPosition(r,this.model.getLineMaxColumn(n+1))},e.prototype.getAllOverviewRulerDecorations=function(e,t,n){for(var i=this.model.getOverviewRulerDecorations(e,t),r=new tr,o=0,s=i;o<s.length;o++){var a=s[o],u=a.options.overviewRuler,l=u?u.position:0;if(0!==l){var c=u.getColor(n),d=this._getViewLineNumberForModelPosition(a.range.startLineNumber,a.range.startColumn),h=this._getViewLineNumberForModelPosition(a.range.endLineNumber,a.range.endColumn);r.accept(c,d,h,l)}}return r.result},e.prototype.getDecorationsInRange=function(e,t,n){var i=this.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),r=this.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);if(r.lineNumber-i.lineNumber<=e.endLineNumber-e.startLineNumber)return this.model.getDecorationsInRange(new oe["a"](i.lineNumber,1,r.lineNumber,r.column),t,n);for(var o=[],s=i.lineNumber-1,a=r.lineNumber-1,u=null,l=s;l<=a;l++){var c=this.lines[l];if(c.isVisible())null===u&&(u=new re["a"](l+1,l===s?i.column:1));else if(null!==u){var d=this.model.getLineMaxColumn(l);o=o.concat(this.model.getDecorationsInRange(new oe["a"](u.lineNumber,u.column,l,d),t,n)),u=null}}null!==u&&(o=o.concat(this.model.getDecorationsInRange(new oe["a"](u.lineNumber,u.column,r.lineNumber,r.column),t,n)),u=null),o.sort((function(e,t){var n=oe["a"].compareRangesUsingStarts(e.range,t.range);return 0===n?e.id<t.id?-1:e.id>t.id?1:0:n}));for(var h=[],f=0,p=null,g=0,A=o;g<A.length;g++){var m=A[g],v=m.id;p!==v&&(p=v,h[f++]=m)}return h},e}(),Ki=function(){function e(){}return e.prototype.isVisible=function(){return!0},e.prototype.setVisible=function(e){return e?this:qi.INSTANCE},e.prototype.getLineBreakData=function(){return null},e.prototype.getViewLineCount=function(){return 1},e.prototype.getViewLineContent=function(e,t,n){return e.getLineContent(t)},e.prototype.getViewLineLength=function(e,t,n){return e.getLineLength(t)},e.prototype.getViewLineMinColumn=function(e,t,n){return e.getLineMinColumn(t)},e.prototype.getViewLineMaxColumn=function(e,t,n){return e.getLineMaxColumn(t)},e.prototype.getViewLineData=function(e,t,n){var i=e.getLineTokens(t),r=i.getLineContent();return new Ii["c"](r,!1,1,r.length+1,0,i.inflate())},e.prototype.getViewLinesData=function(e,t,n,i,r,o,s){o[r]?s[r]=this.getViewLineData(e,t,0):s[r]=null},e.prototype.getModelColumnOfViewPosition=function(e,t){return t},e.prototype.getViewPositionOfModelPosition=function(e,t){return new re["a"](e,t)},e.prototype.getViewLineNumberOfModelPosition=function(e,t){return e},e.INSTANCE=new e,e}(),qi=function(){function e(){}return e.prototype.isVisible=function(){return!1},e.prototype.setVisible=function(e){return e?Ki.INSTANCE:this},e.prototype.getLineBreakData=function(){return null},e.prototype.getViewLineCount=function(){return 0},e.prototype.getViewLineContent=function(e,t,n){throw new Error("Not supported")},e.prototype.getViewLineLength=function(e,t,n){throw new Error("Not supported")},e.prototype.getViewLineMinColumn=function(e,t,n){throw new Error("Not supported")},e.prototype.getViewLineMaxColumn=function(e,t,n){throw new Error("Not supported")},e.prototype.getViewLineData=function(e,t,n){throw new Error("Not supported")},e.prototype.getViewLinesData=function(e,t,n,i,r,o,s){throw new Error("Not supported")},e.prototype.getModelColumnOfViewPosition=function(e,t){throw new Error("Not supported")},e.prototype.getViewPositionOfModelPosition=function(e,t){throw new Error("Not supported")},e.prototype.getViewLineNumberOfModelPosition=function(e,t){throw new Error("Not supported")},e.INSTANCE=new e,e}(),Gi=function(){function e(e,t){this._lineBreakData=e,this._isVisible=t}return e.prototype.isVisible=function(){return this._isVisible},e.prototype.setVisible=function(e){return this._isVisible=e,this},e.prototype.getLineBreakData=function(){return this._lineBreakData},e.prototype.getViewLineCount=function(){return this._isVisible?this._lineBreakData.breakOffsets.length:0},e.prototype.getInputStartOffsetOfOutputLineIndex=function(e){return Qi.getInputOffsetOfOutputPosition(this._lineBreakData.breakOffsets,e,0)},e.prototype.getInputEndOffsetOfOutputLineIndex=function(e,t,n){return n+1===this._lineBreakData.breakOffsets.length?e.getLineMaxColumn(t)-1:Qi.getInputOffsetOfOutputPosition(this._lineBreakData.breakOffsets,n+1,0)},e.prototype.getViewLineContent=function(e,t,n){if(!this._isVisible)throw new Error("Not supported");var i=this.getInputStartOffsetOfOutputLineIndex(n),r=this.getInputEndOffsetOfOutputLineIndex(e,t,n),o=e.getValueInRange({startLineNumber:t,startColumn:i+1,endLineNumber:t,endColumn:r+1});return n>0&&(o=Yi(this._lineBreakData.wrappedTextIndentLength)+o),o},e.prototype.getViewLineLength=function(e,t,n){if(!this._isVisible)throw new Error("Not supported");var i=this.getInputStartOffsetOfOutputLineIndex(n),r=this.getInputEndOffsetOfOutputLineIndex(e,t,n),o=r-i;return n>0&&(o=this._lineBreakData.wrappedTextIndentLength+o),o},e.prototype.getViewLineMinColumn=function(e,t,n){if(!this._isVisible)throw new Error("Not supported");return n>0?this._lineBreakData.wrappedTextIndentLength+1:1},e.prototype.getViewLineMaxColumn=function(e,t,n){if(!this._isVisible)throw new Error("Not supported");return this.getViewLineContent(e,t,n).length+1},e.prototype.getViewLineData=function(e,t,n){if(!this._isVisible)throw new Error("Not supported");var i=this.getInputStartOffsetOfOutputLineIndex(n),r=this.getInputEndOffsetOfOutputLineIndex(e,t,n),o=e.getValueInRange({startLineNumber:t,startColumn:i+1,endLineNumber:t,endColumn:r+1});n>0&&(o=Yi(this._lineBreakData.wrappedTextIndentLength)+o);var s=n>0?this._lineBreakData.wrappedTextIndentLength+1:1,a=o.length+1,u=n+1<this.getViewLineCount(),l=0;n>0&&(l=this._lineBreakData.wrappedTextIndentLength);var c=e.getLineTokens(t),d=0===n?0:this._lineBreakData.breakOffsetsVisibleColumn[n-1];return new Ii["c"](o,u,s,a,d,c.sliceAndInflate(i,r,l))},e.prototype.getViewLinesData=function(e,t,n,i,r,o,s){if(!this._isVisible)throw new Error("Not supported");for(var a=n;a<i;a++){var u=r+a-n;o[u]?s[u]=this.getViewLineData(e,t,a):s[u]=null}},e.prototype.getModelColumnOfViewPosition=function(e,t){if(!this._isVisible)throw new Error("Not supported");var n=t-1;return e>0&&(n<this._lineBreakData.wrappedTextIndentLength?n=0:n-=this._lineBreakData.wrappedTextIndentLength),Qi.getInputOffsetOfOutputPosition(this._lineBreakData.breakOffsets,e,n)+1},e.prototype.getViewPositionOfModelPosition=function(e,t){if(!this._isVisible)throw new Error("Not supported");var n=Qi.getOutputPositionOfInputOffset(this._lineBreakData.breakOffsets,t-1),i=n.outputLineIndex,r=n.outputOffset+1;return i>0&&(r+=this._lineBreakData.wrappedTextIndentLength),new re["a"](e+i,r)},e.prototype.getViewLineNumberOfModelPosition=function(e,t){if(!this._isVisible)throw new Error("Not supported");var n=Qi.getOutputPositionOfInputOffset(this._lineBreakData.breakOffsets,t-1);return e+n.outputLineIndex},e}(),Xi=[""];function Yi(e){if(e>=Xi.length)for(var t=1;t<=e;t++)Xi[t]=Ji(t);return Xi[e]}function Ji(e){return new Array(e+1).join(" ")}function Zi(e,t){return null===e?t?Ki.INSTANCE:qi.INSTANCE:new Gi(e,t)}var $i=function(){function e(e){this._lines=e}return e.prototype._validPosition=function(e){return this._lines.model.validatePosition(e)},e.prototype._validRange=function(e){return this._lines.model.validateRange(e)},e.prototype.convertViewPositionToModelPosition=function(e){return this._validPosition(e)},e.prototype.convertViewRangeToModelRange=function(e){return this._validRange(e)},e.prototype.validateViewPosition=function(e,t){return this._validPosition(t)},e.prototype.validateViewRange=function(e,t){return this._validRange(t)},e.prototype.convertModelPositionToViewPosition=function(e){return this._validPosition(e)},e.prototype.convertModelRangeToViewRange=function(e){return this._validRange(e)},e.prototype.modelPositionIsVisible=function(e){var t=this._lines.model.getLineCount();return!(e.lineNumber<1||e.lineNumber>t)},e}(),er=function(){function e(e){this.model=e}return e.prototype.dispose=function(){},e.prototype.createCoordinatesConverter=function(){return new $i(this)},e.prototype.getHiddenAreas=function(){return[]},e.prototype.setHiddenAreas=function(e){return!1},e.prototype.setTabSize=function(e){return!1},e.prototype.setWrappingSettings=function(e,t,n,i){return!1},e.prototype.createLineBreaksComputer=function(){var e=[];return{addRequest:function(t,n){e.push(null)},finalize:function(){return e}}},e.prototype.onModelFlushed=function(){},e.prototype.onModelLinesDeleted=function(e,t,n){return new tt(t,n)},e.prototype.onModelLinesInserted=function(e,t,n,i){return new nt(t,n)},e.prototype.onModelLineChanged=function(e,t,n){return[!1,new et(t,t),null,null]},e.prototype.acceptVersionId=function(e){},e.prototype.getViewLineCount=function(){return this.model.getLineCount()},e.prototype.getActiveIndentGuide=function(e,t,n){return{startLineNumber:e,endLineNumber:e,indent:0}},e.prototype.getViewLinesIndentGuides=function(e,t){for(var n=t-e+1,i=new Array(n),r=0;r<n;r++)i[r]=0;return i},e.prototype.getViewLineContent=function(e){return this.model.getLineContent(e)},e.prototype.getViewLineLength=function(e){return this.model.getLineLength(e)},e.prototype.getViewLineMinColumn=function(e){return this.model.getLineMinColumn(e)},e.prototype.getViewLineMaxColumn=function(e){return this.model.getLineMaxColumn(e)},e.prototype.getViewLineData=function(e){var t=this.model.getLineTokens(e),n=t.getLineContent();return new Ii["c"](n,!1,1,n.length+1,0,t.inflate())},e.prototype.getViewLinesData=function(e,t,n){var i=this.model.getLineCount();e=Math.min(Math.max(1,e),i),t=Math.min(Math.max(1,t),i);for(var r=[],o=e;o<=t;o++){var s=o-e;n[s]||(r[s]=null),r[s]=this.getViewLineData(o)}return r},e.prototype.getAllOverviewRulerDecorations=function(e,t,n){for(var i=this.model.getOverviewRulerDecorations(e,t),r=new tr,o=0,s=i;o<s.length;o++){var a=s[o],u=a.options.overviewRuler,l=u?u.position:0;if(0!==l){var c=u.getColor(n),d=a.range.startLineNumber,h=a.range.endLineNumber;r.accept(c,d,h,l)}}return r.result},e.prototype.getDecorationsInRange=function(e,t,n){return this.model.getDecorationsInRange(e,t,n)},e}(),tr=function(){function e(){this.result=Object.create(null)}return e.prototype.accept=function(e,t,n,i){var r=this.result[e];if(r){var o=r[r.length-3],s=r[r.length-1];if(o===i&&s+1>=t)return void(n>s&&(r[r.length-1]=n));r.push(i,t,n)}else this.result[e]=[i,t,n]},e}(),nr=function(){function e(e,t,n,i,r){this.editorId=e,this.model=t,this.configuration=n,this._linesCollection=i,this._coordinatesConverter=r,this._decorationsCache=Object.create(null),this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}return e.prototype._clearCachedModelDecorationsResolver=function(){this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null},e.prototype.dispose=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},e.prototype.reset=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},e.prototype.onModelDecorationsChanged=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},e.prototype.onLineMappingChanged=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},e.prototype._getOrCreateViewModelDecoration=function(e){var t=e.id,n=this._decorationsCache[t];if(!n){var i=e.range,r=e.options,o=void 0;if(r.isWholeLine){var s=this._coordinatesConverter.convertModelPositionToViewPosition(new re["a"](i.startLineNumber,1)),a=this._coordinatesConverter.convertModelPositionToViewPosition(new re["a"](i.endLineNumber,this.model.getLineMaxColumn(i.endLineNumber)));o=new oe["a"](s.lineNumber,s.column,a.lineNumber,a.column)}else o=this._coordinatesConverter.convertModelRangeToViewRange(i);n=new Ii["e"](o,r),this._decorationsCache[t]=n}return n},e.prototype.getDecorationsViewportData=function(e){var t=null!==this._cachedModelDecorationsResolver;return t=t&&e.equalsRange(this._cachedModelDecorationsResolverViewRange),t||(this._cachedModelDecorationsResolver=this._getDecorationsViewportData(e),this._cachedModelDecorationsResolverViewRange=e),this._cachedModelDecorationsResolver},e.prototype._getDecorationsViewportData=function(e){for(var t=this._linesCollection.getDecorationsInRange(e,this.editorId,Object(z["j"])(this.configuration.options)),n=e.startLineNumber,i=e.endLineNumber,r=[],o=0,s=[],a=n;a<=i;a++)s[a-n]=[];for(var u=0,l=t.length;u<l;u++){var c=t[u],d=c.options,h=this._getOrCreateViewModelDecoration(c),f=h.range;if(r[o++]=h,d.inlineClassName){var p=new Ii["a"](f,d.inlineClassName,d.inlineClassNameAffectsLetterSpacing?3:0),g=Math.max(n,f.startLineNumber),A=Math.min(i,f.endLineNumber);for(a=g;a<=A;a++)s[a-n].push(p)}if(d.beforeContentClassName&&n<=f.startLineNumber&&f.startLineNumber<=i){p=new Ii["a"](new oe["a"](f.startLineNumber,f.startColumn,f.startLineNumber,f.startColumn),d.beforeContentClassName,1);s[f.startLineNumber-n].push(p)}if(d.afterContentClassName&&n<=f.endLineNumber&&f.endLineNumber<=i){p=new Ii["a"](new oe["a"](f.endLineNumber,f.endColumn,f.endLineNumber,f.endColumn),d.afterContentClassName,2);s[f.endLineNumber-n].push(p)}}return{decorations:r,inlineDecorations:s}},e}(),ir=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),rr=!0,or=function(e){function t(t,n,i,r,o,s){var a=e.call(this)||this;if(a.editorId=t,a.configuration=n,a.model=i,a._tokenizeViewportSoon=a._register(new m["d"]((function(){return a.tokenizeViewport()}),50)),a.hasFocus=!1,a.viewportStartLine=-1,a.viewportStartLineTrackedRange=null,a.viewportStartLineDelta=0,rr&&a.model.isTooLargeForTokenization())a.lines=new er(a.model);else{var u=a.configuration.options,l=u.get(34),c=u.get(103),d=u.get(108),h=u.get(102);a.lines=new zi(a.model,r,o,l,a.model.getOptions().tabSize,c,d.wrappingColumn,h)}return a.coordinatesConverter=a.lines.createCoordinatesConverter(),a.viewLayout=a._register(new Pi(a.configuration,a.getLineCount(),s)),a._register(a.viewLayout.onDidScroll((function(e){e.scrollTopChanged&&a._tokenizeViewportSoon.schedule();try{var t=a._beginEmit();t.emit(new rt(e))}finally{a._endEmit()}}))),a._register(a.viewLayout.onDidContentSizeChange((function(e){try{var t=a._beginEmit();t.emit(new qe(e))}finally{a._endEmit()}}))),a.decorations=new nr(a.editorId,a.model,a.configuration,a.lines,a.coordinatesConverter),a._registerModelEvents(),a._register(a.configuration.onDidChange((function(e){try{var t=a._beginEmit();a._onConfigurationChanged(t,e)}finally{a._endEmit()}}))),a._register(dn.getInstance().onDidChange((function(){try{var e=a._beginEmit();e.emit(new at)}finally{a._endEmit()}}))),a}return ir(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this.decorations.dispose(),this.lines.dispose(),this.invalidateMinimapColorCache(),this.viewportStartLineTrackedRange=this.model._setTrackedRange(this.viewportStartLineTrackedRange,null,1)},t.prototype.tokenizeViewport=function(){var e=this.viewLayout.getLinesViewportData(),t=this.coordinatesConverter.convertViewPositionToModelPosition(new re["a"](e.startLineNumber,1)),n=this.coordinatesConverter.convertViewPositionToModelPosition(new re["a"](e.endLineNumber,1));this.model.tokenizeViewport(t.lineNumber,n.lineNumber)},t.prototype.setHasFocus=function(e){this.hasFocus=e},t.prototype._onConfigurationChanged=function(e,t){var n=null;if(-1!==this.viewportStartLine){var i=new re["a"](this.viewportStartLine,this.getLineMinColumn(this.viewportStartLine));n=this.coordinatesConverter.convertViewPositionToModelPosition(i)}var r=!1,o=this.configuration.options,s=o.get(34),a=o.get(103),u=o.get(108),l=o.get(102);if(this.lines.setWrappingSettings(s,a,u.wrappingColumn,l)&&(e.emit(new Ye),e.emit(new $e),e.emit(new Xe),this.decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),0!==this.viewLayout.getCurrentScrollTop()&&(r=!0)),t.hasChanged(68)&&(this.decorations.reset(),e.emit(new Xe)),e.emit(new Ke(t)),this.viewLayout.onConfigurationChanged(t),r&&n){var c=this.coordinatesConverter.convertModelPositionToViewPosition(n),d=this.viewLayout.getVerticalOffsetForLineNumber(c.lineNumber);this.viewLayout.setScrollPositionNow({scrollTop:d+this.viewportStartLineDelta})}},t.prototype._registerModelEvents=function(){var e=this;this._register(this.model.onDidChangeRawContentFast((function(t){try{for(var n=e._beginEmit(),i=!1,r=!1,o=t.changes,s=t.versionId,a=e.lines.createLineBreaksComputer(),u=0,l=o;u<l.length;u++){var c=l[u];switch(c.changeType){case 4:for(var d=0,h=c.detail;d<h.length;d++){var f=h[d];a.addRequest(f,null)}break;case 2:a.addRequest(c.detail,null);break}}for(var p=a.finalize(),g=0,A=0,m=o;A<m.length;A++){c=m[A];switch(c.changeType){case 1:e.lines.onModelFlushed(),n.emit(new Ye),e.decorations.reset(),e.viewLayout.onFlushed(e.getLineCount()),i=!0;break;case 3:var v=e.lines.onModelLinesDeleted(s,c.fromLineNumber,c.toLineNumber);null!==v&&(n.emit(v),e.viewLayout.onLinesDeleted(v.fromLineNumber,v.toLineNumber)),i=!0;break;case 4:var _=p.slice(g,g+c.detail.length);g+=c.detail.length;var y=e.lines.onModelLinesInserted(s,c.fromLineNumber,c.toLineNumber,_);null!==y&&(n.emit(y),e.viewLayout.onLinesInserted(y.fromLineNumber,y.toLineNumber)),i=!0;break;case 2:var b=p[g];g++;var w=e.lines.onModelLineChanged(s,c.lineNumber,b),C=w[0],S=w[1];y=w[2],v=w[3];r=C,S&&n.emit(S),y&&(n.emit(y),e.viewLayout.onLinesInserted(y.fromLineNumber,y.toLineNumber)),v&&(n.emit(v),e.viewLayout.onLinesDeleted(v.fromLineNumber,v.toLineNumber));break;case 5:break}}e.lines.acceptVersionId(s),e.viewLayout.onHeightMaybeChanged(),!i&&r&&(n.emit(new $e),n.emit(new Xe),e.decorations.onLineMappingChanged())}finally{e._endEmit()}if(e.viewportStartLine=-1,e.configuration.setMaxLineNumber(e.model.getLineCount()),!e.hasFocus&&e.model.getAttachedEditorCount()>=2&&e.viewportStartLineTrackedRange){var N=e.model._getTrackedRange(e.viewportStartLineTrackedRange);if(N){var L=e.coordinatesConverter.convertModelPositionToViewPosition(N.getStartPosition()),E=e.viewLayout.getVerticalOffsetForLineNumber(L.lineNumber);e.viewLayout.setScrollPositionNow({scrollTop:E+e.viewportStartLineDelta})}}}))),this._register(this.model.onDidChangeTokens((function(t){for(var n=[],i=0,r=t.ranges.length;i<r;i++){var o=t.ranges[i],s=e.coordinatesConverter.convertModelPositionToViewPosition(new re["a"](o.fromLineNumber,1)).lineNumber,a=e.coordinatesConverter.convertModelPositionToViewPosition(new re["a"](o.toLineNumber,e.model.getLineMaxColumn(o.toLineNumber))).lineNumber;n[i]={fromLineNumber:s,toLineNumber:a}}try{var u=e._beginEmit();u.emit(new st(n))}finally{e._endEmit()}t.tokenizationSupportChanged&&e._tokenizeViewportSoon.schedule()}))),this._register(this.model.onDidChangeLanguageConfiguration((function(t){try{var n=e._beginEmit();n.emit(new Ze)}finally{e._endEmit()}}))),this._register(this.model.onDidChangeOptions((function(t){if(e.lines.setTabSize(e.model.getOptions().tabSize)){e.decorations.onLineMappingChanged(),e.viewLayout.onFlushed(e.getLineCount());try{var n=e._beginEmit();n.emit(new Ye),n.emit(new $e),n.emit(new Xe)}finally{e._endEmit()}}}))),this._register(this.model.onDidChangeDecorations((function(t){e.decorations.onModelDecorationsChanged();try{var n=e._beginEmit();n.emit(new Xe)}finally{e._endEmit()}})))},t.prototype.setHiddenAreas=function(e){try{var t=this._beginEmit(),n=this.lines.setHiddenAreas(e);n&&(t.emit(new Ye),t.emit(new $e),t.emit(new Xe),this.decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this.viewLayout.onHeightMaybeChanged())}finally{this._endEmit()}},t.prototype.getVisibleRanges=function(){var e=this.getCompletelyVisibleViewRange(),t=this.coordinatesConverter.convertViewRangeToModelRange(e),n=this.lines.getHiddenAreas();if(0===n.length)return[t];for(var i=[],r=0,o=t.startLineNumber,s=t.startColumn,a=t.endLineNumber,u=t.endColumn,l=0,c=n.length;l<c;l++){var d=n[l].startLineNumber,h=n[l].endLineNumber;h<o||(d>a||(o<d&&(i[r++]=new oe["a"](o,s,d-1,this.model.getLineMaxColumn(d-1))),o=h+1,s=1))}return(o<a||o===a&&s<u)&&(i[r++]=new oe["a"](o,s,a,u)),i},t.prototype.getCompletelyVisibleViewRange=function(){var e=this.viewLayout.getLinesViewportData(),t=e.completelyVisibleStartLineNumber,n=e.completelyVisibleEndLineNumber;return new oe["a"](t,this.getLineMinColumn(t),n,this.getLineMaxColumn(n))},t.prototype.getCompletelyVisibleViewRangeAtScrollTop=function(e){var t=this.viewLayout.getLinesViewportDataAtScrollTop(e),n=t.completelyVisibleStartLineNumber,i=t.completelyVisibleEndLineNumber;return new oe["a"](n,this.getLineMinColumn(n),i,this.getLineMaxColumn(i))},t.prototype.saveState=function(){var e=this.viewLayout.saveState(),t=e.scrollTop,n=this.viewLayout.getLineNumberAtVerticalOffset(t),i=this.coordinatesConverter.convertViewPositionToModelPosition(new re["a"](n,this.getLineMinColumn(n))),r=this.viewLayout.getVerticalOffsetForLineNumber(n)-t;return{scrollLeft:e.scrollLeft,firstPosition:i,firstPositionDeltaTop:r}},t.prototype.reduceRestoreState=function(e){if("undefined"===typeof e.firstPosition)return this._reduceRestoreStateCompatibility(e);var t=this.model.validatePosition(e.firstPosition),n=this.coordinatesConverter.convertModelPositionToViewPosition(t),i=this.viewLayout.getVerticalOffsetForLineNumber(n.lineNumber)-e.firstPositionDeltaTop;return{scrollLeft:e.scrollLeft,scrollTop:i}},t.prototype._reduceRestoreStateCompatibility=function(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTopWithoutViewZones}},t.prototype.getTabSize=function(){return this.model.getOptions().tabSize},t.prototype.getOptions=function(){return this.model.getOptions()},t.prototype.getLineCount=function(){return this.lines.getViewLineCount()},t.prototype.setViewport=function(e,t,n){this.viewportStartLine=e;var i=this.coordinatesConverter.convertViewPositionToModelPosition(new re["a"](e,this.getLineMinColumn(e)));this.viewportStartLineTrackedRange=this.model._setTrackedRange(this.viewportStartLineTrackedRange,new oe["a"](i.lineNumber,i.column,i.lineNumber,i.column),1);var r=this.viewLayout.getVerticalOffsetForLineNumber(e),o=this.viewLayout.getCurrentScrollTop();this.viewportStartLineDelta=o-r},t.prototype.getActiveIndentGuide=function(e,t,n){return this.lines.getActiveIndentGuide(e,t,n)},t.prototype.getLinesIndentGuides=function(e,t){return this.lines.getViewLinesIndentGuides(e,t)},t.prototype.getLineContent=function(e){return this.lines.getViewLineContent(e)},t.prototype.getLineLength=function(e){return this.lines.getViewLineLength(e)},t.prototype.getLineMinColumn=function(e){return this.lines.getViewLineMinColumn(e)},t.prototype.getLineMaxColumn=function(e){return this.lines.getViewLineMaxColumn(e)},t.prototype.getLineFirstNonWhitespaceColumn=function(e){var t=Me["q"](this.getLineContent(e));return-1===t?0:t+1},t.prototype.getLineLastNonWhitespaceColumn=function(e){var t=Me["D"](this.getLineContent(e));return-1===t?0:t+2},t.prototype.getDecorationsInViewport=function(e){return this.decorations.getDecorationsViewportData(e).decorations},t.prototype.getViewLineRenderingData=function(e,t){var n=this.model.mightContainRTL(),i=this.model.mightContainNonBasicASCII(),r=this.getTabSize(),o=this.lines.getViewLineData(t),s=this.decorations.getDecorationsViewportData(e).inlineDecorations,a=s[t-e.startLineNumber];return new Ii["d"](o.minColumn,o.maxColumn,o.content,o.continuesWithWrappedLine,n,i,o.tokens,a,r,o.startVisibleColumn)},t.prototype.getViewLineData=function(e){return this.lines.getViewLineData(e)},t.prototype.getMinimapLinesRenderingData=function(e,t,n){var i=this.lines.getViewLinesData(e,t,n);return new Ii["b"](this.getTabSize(),i)},t.prototype.getAllOverviewRulerDecorations=function(e){return this.lines.getAllOverviewRulerDecorations(this.editorId,Object(z["j"])(this.configuration.options),e)},t.prototype.invalidateOverviewRulerColorCache=function(){for(var e=this.model.getOverviewRulerDecorations(),t=0,n=e;t<n.length;t++){var i=n[t],r=i.options.overviewRuler;r&&r.invalidateCachedColor()}},t.prototype.invalidateMinimapColorCache=function(){for(var e=this.model.getAllDecorations(),t=0,n=e;t<n.length;t++){var i=n[t],r=i.options.minimap;r&&r.invalidateCachedColor()}},t.prototype.getValueInRange=function(e,t){var n=this.coordinatesConverter.convertViewRangeToModelRange(e);return this.model.getValueInRange(n,t)},t.prototype.getModelLineMaxColumn=function(e){return this.model.getLineMaxColumn(e)},t.prototype.validateModelPosition=function(e){return this.model.validatePosition(e)},t.prototype.validateModelRange=function(e){return this.model.validateRange(e)},t.prototype.deduceModelPositionRelativeToViewPosition=function(e,t,n){var i=this.coordinatesConverter.convertViewPositionToModelPosition(e);2===this.model.getEOL().length&&(t<0?t-=n:t+=n);var r=this.model.getOffsetAt(i),o=r+t;return this.model.getPositionAt(o)},t.prototype.getEOL=function(){return this.model.getEOL()},t.prototype.getPlainTextToCopy=function(e,t,n){var i=n?"\r\n":this.model.getEOL();e=e.slice(0),e.sort(oe["a"].compareRangesUsingStarts);for(var r=!1,o=!1,s=0,a=e;s<a.length;s++){var u=a[s];u.isEmpty()?r=!0:o=!0}if(!o){if(!t)return"";for(var l=e.map((function(e){return e.startLineNumber})),c="",d=0;d<l.length;d++)d>0&&l[d-1]===l[d]||(c+=this.model.getLineContent(l[d])+i);return c}if(r&&t){for(var h=[],f=0,p=0,g=e;p<g.length;p++){var A=g[p],m=A.startLineNumber;A.isEmpty()?m!==f&&h.push(this.model.getLineContent(m)):h.push(this.model.getValueInRange(A,n?2:0)),f=m}return 1===h.length?h[0]:h}for(var v=[],_=0,y=e;_<y.length;_++){A=y[_];A.isEmpty()||v.push(this.model.getValueInRange(A,n?2:0))}return 1===v.length?v[0]:v},t.prototype.getRichTextToCopy=function(e,t){var n=this.model.getLanguageIdentifier();if(1===n.id)return null;if(1!==e.length)return null;var i=e[0];if(i.isEmpty()){if(!t)return null;var r=i.startLineNumber;i=new oe["a"](r,this.model.getLineMinColumn(r),r,this.model.getLineMaxColumn(r))}var o=this.configuration.options.get(34),s=this._getColorMap(),a=o.fontFamily===z["b"].fontFamily?o.fontFamily:"'"+o.fontFamily+"', "+z["b"].fontFamily;return{mode:n.language,html:'<div style="color: '+s[1]+";background-color: "+s[2]+";font-family: "+a+";font-weight: "+o.fontWeight+";font-size: "+o.fontSize+"px;line-height: "+o.lineHeight+'px;white-space: pre;">'+this._getHTMLToCopy(i,s)+"</div>"}},t.prototype._getHTMLToCopy=function(e,t){for(var n=e.startLineNumber,i=e.startColumn,r=e.endLineNumber,o=e.endColumn,s=this.getTabSize(),a="",u=n;u<=r;u++){var l=this.model.getLineTokens(u),c=l.getLineContent(),d=u===n?i-1:0,h=u===r?o-1:c.length;a+=""===c?"<br>":Object(xi["a"])(c,l.inflate(),t,d,h,s,f["h"])}return a},t.prototype._getColorMap=function(){var e=cn["y"].getColorMap(),t=["#000000"];if(e)for(var n=1,i=e.length;n<i;n++)t[n]=Fn["a"].Format.CSS.formatHex(e[n]);return t},t}(lt),sr=n("nnTU"),ar=n("T8No"),ur=n("Cg/j"),lr=n("8HsV"),cr=n("sM1p"),dr=n("R3nR"),hr=n("746U"),fr=n("MXAL"),pr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),gr=function(e){function t(t,n){for(var i=e.call(this,0)||this,r=0;r<t.length;r++)i.set(t.charCodeAt(r),1);for(r=0;r<n.length;r++)i.set(n.charCodeAt(r),2);return i}return pr(t,e),t.prototype.get=function(e){return e>=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},t}(fr["a"]),Ar=[],mr=[],vr=function(){function e(e,t){this.classifier=new gr(e,t)}return e.create=function(t){return new e(t.get(99),t.get(98))},e.prototype.createLineBreaksComputer=function(e,t,n,i){var r=this;t|=0,n=+n;var o=[],s=[];return{addRequest:function(e,t){o.push(e),s.push(t)},finalize:function(){for(var a=e.typicalFullwidthCharacterWidth/e.typicalHalfwidthCharacterWidth,u=[],l=0,c=o.length;l<c;l++){var d=s[l];u[l]=d?_r(r.classifier,d,o[l],t,n,a,i):yr(r.classifier,o[l],t,n,a,i)}return Ar.length=0,mr.length=0,u}}},e}();function _r(e,t,n,i,r,o,s){if(-1===r)return null;var a=n.length;if(a<=1)return null;var u=t.breakOffsets,l=t.breakOffsetsVisibleColumn,c=Sr(n,i,r,o,s),d=r-c,h=Ar,f=mr,p=0,g=r,A=u.length,m=0;if(m>=0){var v=Math.abs(l[m]-g);while(m+1<A){var _=Math.abs(l[m+1]-g);if(_>=v)break;v=_,m++}}while(m<A){var y=m<0?0:u[m],b=m<0?0:l[m],w=0,C=0,S=0,N=0;if(b<=g){for(var L=b,E=n.charCodeAt(y-1),x=e.get(E),O=!0,B=y;B<a;B++){var k=B,D=n.charCodeAt(B),I=void 0,M=void 0;if(Me["z"](D)?(B++,I=0,M=2):(I=e.get(D),M=br(D,L,i,o)),Cr(E,x,D,I)&&(w=k,C=L),L+=M,L>g){S=k,N=L-M,L-C>d&&(w=0),O=!1;break}E=D,x=I}if(O){p>0&&(h[p]=u[u.length-1],f[p]=l[u.length-1],p++);break}}if(0===w){L=b,D=n.charCodeAt(y),I=e.get(D);var F=!1;for(B=y-1;B>=0;B--){k=B+1,E=n.charCodeAt(B);if(9===E){F=!0;break}x=void 0;var T=void 0;if(Me["A"](E)?(B--,x=0,T=2):(x=e.get(E),T=Me["y"](E)?o:1),L<=g){if(0===S&&(S=k,N=L),L<=g-d)break;if(Cr(E,x,D,I)){w=k,C=L;break}}L-=T,D=E,I=x}if(0!==w){var R=d-(N-C);if(R<=i){var P=n.charCodeAt(S);M=void 0;M=Me["z"](P)?2:br(P,N,i,o),R-M<0&&(w=0)}}if(F){m--;continue}}0===w&&(w=S,C=N),h[p]=w,f[p]=C,p++,g=C+d;while(m<0||m<A&&l[m]<C)m++;v=Math.abs(l[m]-g);while(m+1<A){_=Math.abs(l[m+1]-g);if(_>=v)break;v=_,m++}}return 0===p?null:(h.length=p,f.length=p,Ar=t.breakOffsets,mr=t.breakOffsetsVisibleColumn,t.breakOffsets=h,t.breakOffsetsVisibleColumn=f,t.wrappedTextIndentLength=c,t)}function yr(e,t,n,i,r,o){if(-1===i)return null;var s=t.length;if(s<=1)return null;var a=Sr(t,n,i,r,o),u=i-a,l=[],c=[],d=0,h=0,f=0,p=i,g=t.charCodeAt(0),A=e.get(g),m=br(g,0,n,r),v=1;Me["z"](g)&&(m+=1,g=t.charCodeAt(1),A=e.get(g),v++);for(var _=v;_<s;_++){var y=_,b=t.charCodeAt(_),w=void 0,C=void 0;Me["z"](b)?(_++,w=0,C=2):(w=e.get(b),C=br(b,m,n,r)),Cr(g,A,b,w)&&(h=y,f=m),m+=C,m>p&&((0===h||m-f>u)&&(h=y,f=m-C),l[d]=h,c[d]=f,d++,p=f+u,h=0),g=b,A=w}return 0===d?null:(l[d]=s,c[d]=m,new Qi(l,c,a))}function br(e,t,n,i){return 9===e?n-t%n:Me["y"](e)?i:1}function wr(e,t){return t-e%t}function Cr(e,t,n,i){return 32!==n&&(2===t||3===t&&2!==i||1===i||3===i&&1!==t)}function Sr(e,t,n,i,r){var o=0;if(0!==r){var s=Me["q"](e);if(-1!==s){for(var a=0;a<s;a++){var u=9===e.charCodeAt(a)?wr(o,t):1;o+=u}var l=3===r?2:2===r?1:0;for(a=0;a<l;a++){u=wr(o,t);o+=u}o+i>n&&(o=0)}}return o}var Nr=function(){function e(){}return e.create=function(){return new e},e.prototype.createLineBreaksComputer=function(e,t,n,i){t|=0,n=+n;var r=[];return{addRequest:function(e,t){r.push(e)},finalize:function(){return Lr(r,e,t,n,i)}}},e}();function Lr(e,t,n,i,r){if(-1===i){for(var o=[],s=0,a=e.length;s<a;s++)o[s]=null;return o}var u=Math.round(i*t.typicalHalfwidthCharacterWidth);2!==r&&3!==r||(r=1);var c=document.createElement("div");l["a"].applyFontInfoSlow(c,t);var d=Object(St["a"])(1e4),h=[],f=[],p=[],g=[],A=[];for(s=0;s<e.length;s++){var m=e[s],v=0,_=0,y=u;if(0!==r)if(v=Me["q"](m),-1===v)v=0;else{for(var b=0;b<v;b++){var w=9===m.charCodeAt(b)?n-_%n:1;_+=w}var C=Math.ceil(t.spaceWidth*_);C+t.typicalFullwidthCharacterWidth>u?(v=0,_=0):y=u-C}var S=m.substr(v),N=Er(S,_,n,y,d);h[s]=v,f[s]=_,p[s]=S,g[s]=N[0],A[s]=N[1]}c.innerHTML=d.build(),c.style.position="absolute",c.style.top="10000",c.style.wordWrap="break-word",document.body.appendChild(c);var L=document.createRange(),E=Array.prototype.slice.call(c.children,0),x=[];for(s=0;s<e.length;s++){var O=E[s],B=xr(L,O,p[s],g[s]);if(null!==B){v=h[s],_=f[s];var k=A[s],D=[],I=0;for(a=B.length;I<a;I++)D[I]=k[B[I]];if(0!==v)for(I=0,a=B.length;I<a;I++)B[I]+=v;x[s]=new Qi(B,D,_)}else x[s]=null}return document.body.removeChild(c),x}function Er(e,t,n,i,r){r.appendASCIIString('<div style="width:'),r.appendASCIIString(String(i)),r.appendASCIIString('px;">');for(var o=e.length,s=t,a=0,u=[],l=[],c=0<o?e.charCodeAt(0):0,d=0;d<o;d++){u[d]=a,l[d]=s;var h=c;c=d+1<o?e.charCodeAt(d+1):0;var f=1,p=1;switch(h){case 9:f=n-s%n,p=f;for(var g=1;g<=f;g++)g<f?r.write1(160):r.appendASCII(32);break;case 32:32===c?r.write1(160):r.appendASCII(32);break;case 60:r.appendASCIIString("<");break;case 62:r.appendASCIIString(">");break;case 38:r.appendASCIIString("&");break;case 0:r.appendASCIIString("�");break;case 65279:case 8232:r.write1(65533);break;default:Me["y"](h)&&p++,r.write1(h)}a+=f,s+=p}return u[e.length]=a,l[e.length]=s,r.appendASCIIString("</div>"),[u,l]}function xr(e,t,n,i){if(n.length<=1)return null;var r=t.firstChild,o=[];return Or(e,r,i,0,null,n.length-1,null,o),0===o.length?null:(o.push(n.length),o)}function Or(e,t,n,i,r,o,s,a){if(i!==o&&(r=r||Br(e,t,n[i],n[i+1]),s=s||Br(e,t,n[o],n[o+1]),!(Math.abs(r[0].top-s[0].top)<=.1)))if(i+1!==o){var u=i+(o-i)/2|0,l=Br(e,t,n[u],n[u+1]);Or(e,t,n,i,r,u,l,a),Or(e,t,n,u,l,o,s,a)}else a.push(o)}function Br(e,t,n,i){return e.setStart(t,n),e.setEnd(t,i),e.getClientRects()}var kr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Dr=function(e,t,n,i){var r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Ir=function(e,t){return function(n,i){t(n,i,e)}},Mr=0,Fr=function(){function e(e,t,n,i,r,o){this.model=e,this.viewModel=t,this.cursor=n,this.view=i,this.hasRealView=r,this.listenersToRemove=o}return e.prototype.dispose=function(){Object(a["f"])(this.listenersToRemove),this.model.onBeforeDetached(),this.hasRealView&&this.view.dispose(),this.cursor.dispose(),this.viewModel.dispose()},e}(),Tr=function(e){function t(t,n,i,r,a,u,l,d,h,f){var p,g=e.call(this)||this;g._onDidDispose=g._register(new s["a"]),g.onDidDispose=g._onDidDispose.event,g._onDidChangeModelContent=g._register(new s["a"]),g.onDidChangeModelContent=g._onDidChangeModelContent.event,g._onDidChangeModelLanguage=g._register(new s["a"]),g.onDidChangeModelLanguage=g._onDidChangeModelLanguage.event,g._onDidChangeModelLanguageConfiguration=g._register(new s["a"]),g.onDidChangeModelLanguageConfiguration=g._onDidChangeModelLanguageConfiguration.event,g._onDidChangeModelOptions=g._register(new s["a"]),g.onDidChangeModelOptions=g._onDidChangeModelOptions.event,g._onDidChangeModelDecorations=g._register(new s["a"]),g.onDidChangeModelDecorations=g._onDidChangeModelDecorations.event,g._onDidChangeConfiguration=g._register(new s["a"]),g.onDidChangeConfiguration=g._onDidChangeConfiguration.event,g._onDidChangeModel=g._register(new s["a"]),g.onDidChangeModel=g._onDidChangeModel.event,g._onDidChangeCursorPosition=g._register(new s["a"]),g.onDidChangeCursorPosition=g._onDidChangeCursorPosition.event,g._onDidChangeCursorSelection=g._register(new s["a"]),g.onDidChangeCursorSelection=g._onDidChangeCursorSelection.event,g._onDidAttemptReadOnlyEdit=g._register(new s["a"]),g.onDidAttemptReadOnlyEdit=g._onDidAttemptReadOnlyEdit.event,g._onDidLayoutChange=g._register(new s["a"]),g.onDidLayoutChange=g._onDidLayoutChange.event,g._editorTextFocus=g._register(new Rr),g.onDidFocusEditorText=g._editorTextFocus.onDidChangeToTrue,g.onDidBlurEditorText=g._editorTextFocus.onDidChangeToFalse,g._editorWidgetFocus=g._register(new Rr),g.onDidFocusEditorWidget=g._editorWidgetFocus.onDidChangeToTrue,g.onDidBlurEditorWidget=g._editorWidgetFocus.onDidChangeToFalse,g._onWillType=g._register(new s["a"]),g.onWillType=g._onWillType.event,g._onDidType=g._register(new s["a"]),g.onDidType=g._onDidType.event,g._onDidCompositionStart=g._register(new s["a"]),g.onDidCompositionStart=g._onDidCompositionStart.event,g._onDidCompositionEnd=g._register(new s["a"]),g.onDidCompositionEnd=g._onDidCompositionEnd.event,g._onDidPaste=g._register(new s["a"]),g.onDidPaste=g._onDidPaste.event,g._onMouseUp=g._register(new s["a"]),g.onMouseUp=g._onMouseUp.event,g._onMouseDown=g._register(new s["a"]),g.onMouseDown=g._onMouseDown.event,g._onMouseDrag=g._register(new s["a"]),g.onMouseDrag=g._onMouseDrag.event,g._onMouseDrop=g._register(new s["a"]),g.onMouseDrop=g._onMouseDrop.event,g._onContextMenu=g._register(new s["a"]),g.onContextMenu=g._onContextMenu.event,g._onMouseMove=g._register(new s["a"]),g.onMouseMove=g._onMouseMove.event,g._onMouseLeave=g._register(new s["a"]),g.onMouseLeave=g._onMouseLeave.event,g._onMouseWheel=g._register(new s["a"]),g.onMouseWheel=g._onMouseWheel.event,g._onKeyUp=g._register(new s["a"]),g.onKeyUp=g._onKeyUp.event,g._onKeyDown=g._register(new s["a"]),g.onKeyDown=g._onKeyDown.event,g._onDidContentSizeChange=g._register(new s["a"]),g.onDidContentSizeChange=g._onDidContentSizeChange.event,g._onDidScrollChange=g._register(new s["a"]),g.onDidScrollChange=g._onDidScrollChange.event,g._onDidChangeViewZones=g._register(new s["a"]),g.onDidChangeViewZones=g._onDidChangeViewZones.event,g._domElement=t,g._id=++Mr,g._decorationTypeKeysToIds={},g._decorationTypeSubtypes={},g.isSimpleWidget=i.isSimpleWidget||!1,g._telemetryData=i.telemetryData,n=n||{},g._configuration=g._register(g._createConfiguration(n,f)),g._register(g._configuration.onDidChange((function(e){g._onDidChangeConfiguration.fire(e);var t=g._configuration.options;if(e.hasChanged(107)){var n=t.get(107);g._onDidLayoutChange.fire(n)}}))),g._contextKeyService=g._register(l.createScoped(g._domElement)),g._notificationService=h,g._codeEditorService=a,g._commandService=u,g._themeService=d,g._register(new Pr(g,g._contextKeyService)),g._register(new Ur(g,g._contextKeyService)),g._instantiationService=r.createChild(new lr["a"]([ar["c"],g._contextKeyService])),g._modelData=null,g._contributions={},g._actions={},g._focusTracker=new Hr(t),g._focusTracker.onChange((function(){g._editorWidgetFocus.setValue(g._focusTracker.hasFocus())})),g._contentWidgets={},g._overlayWidgets={},p=Array.isArray(i.contributions)?i.contributions:c["d"].getEditorContributions();for(var A=0,m=p;A<m.length;A++){var v=m[A];try{var _=g._instantiationService.createInstance(v.ctor,g);g._contributions[v.id]=_}catch(y){Object(o["e"])(y)}}return c["d"].getEditorActions().forEach((function(e){var t=new Li["a"](e.id,e.label,e.alias,Object(hr["n"])(e.precondition),(function(){return g._instantiationService.invokeFunction((function(t){return Promise.resolve(e.runEditorCommand(t,g,null))}))}),g._contextKeyService);g._actions[t.id]=t})),g._codeEditorService.addCodeEditor(g),g}return kr(t,e),t.prototype._createConfiguration=function(e,t){return new l["a"](this.isSimpleWidget,e,this._domElement,t)},t.prototype.getId=function(){return this.getEditorType()+":"+this._id},t.prototype.getEditorType=function(){return vi["a"].ICodeEditor},t.prototype.dispose=function(){this._codeEditorService.removeCodeEditor(this),this._focusTracker.dispose();for(var t=Object.keys(this._contributions),n=0,i=t.length;n<i;n++){var r=t[n];this._contributions[r].dispose()}this._removeDecorationTypes(),this._postDetachModelCleanup(this._detachModel()),this._onDidDispose.fire(),e.prototype.dispose.call(this)},t.prototype.invokeWithinContext=function(e){return this._instantiationService.invokeFunction(e)},t.prototype.updateOptions=function(e){this._configuration.updateOptions(e)},t.prototype.getOptions=function(){return this._configuration.options},t.prototype.getOption=function(e){return this._configuration.options.get(e)},t.prototype.getRawOptions=function(){return this._configuration.getRawOptions()},t.prototype.getValue=function(e){if(void 0===e&&(e=null),!this._modelData)return"";var t=!(!e||!e.preserveBOM),n=0;return e&&e.lineEnding&&"\n"===e.lineEnding?n=1:e&&e.lineEnding&&"\r\n"===e.lineEnding&&(n=2),this._modelData.model.getValue(n,t)},t.prototype.setValue=function(e){this._modelData&&this._modelData.model.setValue(e)},t.prototype.getModel=function(){return this._modelData?this._modelData.model:null},t.prototype.setModel=function(e){void 0===e&&(e=null);var t=e;if((null!==this._modelData||null!==t)&&(!this._modelData||this._modelData.model!==t)){var n=this.hasTextFocus(),i=this._detachModel();this._attachModel(t),n&&this.hasModel()&&this.focus();var r={oldModelUrl:i?i.uri:null,newModelUrl:t?t.uri:null};this._removeDecorationTypes(),this._onDidChangeModel.fire(r),this._postDetachModelCleanup(i)}},t.prototype._removeDecorationTypes=function(){if(this._decorationTypeKeysToIds={},this._decorationTypeSubtypes){for(var e in this._decorationTypeSubtypes){var t=this._decorationTypeSubtypes[e];for(var n in t)this._removeDecorationType(e+"-"+n)}this._decorationTypeSubtypes={}}},t.prototype.getVisibleRanges=function(){return this._modelData?this._modelData.viewModel.getVisibleRanges():[]},t.prototype.getWhitespaces=function(){return this._modelData?this._modelData.viewModel.viewLayout.getWhitespaces():[]},t._getVerticalOffsetForPosition=function(e,t,n){var i=e.model.validatePosition({lineNumber:t,column:n}),r=e.viewModel.coordinatesConverter.convertModelPositionToViewPosition(i);return e.viewModel.viewLayout.getVerticalOffsetForLineNumber(r.lineNumber)},t.prototype.getTopForLineNumber=function(e){return this._modelData?t._getVerticalOffsetForPosition(this._modelData,e,1):-1},t.prototype.getTopForPosition=function(e,n){return this._modelData?t._getVerticalOffsetForPosition(this._modelData,e,n):-1},t.prototype.setHiddenAreas=function(e){this._modelData&&this._modelData.viewModel.setHiddenAreas(e.map((function(e){return oe["a"].lift(e)})))},t.prototype.getVisibleColumnFromPosition=function(e){if(!this._modelData)return e.column;var t=this._modelData.model.validatePosition(e),n=this._modelData.model.getOptions().tabSize;return se["a"].visibleColumnFromColumn(this._modelData.model.getLineContent(t.lineNumber),t.column,n)+1},t.prototype.getPosition=function(){return this._modelData?this._modelData.cursor.getPosition():null},t.prototype.setPosition=function(e){if(this._modelData){if(!re["a"].isIPosition(e))throw new Error("Invalid arguments");this._modelData.cursor.setSelections("api",[{selectionStartLineNumber:e.lineNumber,selectionStartColumn:e.column,positionLineNumber:e.lineNumber,positionColumn:e.column}])}},t.prototype._sendRevealRange=function(e,t,n,i){if(this._modelData){if(!oe["a"].isIRange(e))throw new Error("Invalid arguments");var r=this._modelData.model.validateRange(e),o=this._modelData.viewModel.coordinatesConverter.convertModelRangeToViewRange(r);this._modelData.cursor.emitCursorRevealRange("api",o,t,n,i)}},t.prototype.revealLine=function(e,t){void 0===t&&(t=0),this._revealLine(e,0,t)},t.prototype.revealLineInCenter=function(e,t){void 0===t&&(t=0),this._revealLine(e,1,t)},t.prototype.revealLineInCenterIfOutsideViewport=function(e,t){void 0===t&&(t=0),this._revealLine(e,2,t)},t.prototype._revealLine=function(e,t,n){if("number"!==typeof e)throw new Error("Invalid arguments");this._sendRevealRange(new oe["a"](e,1,e,1),t,!1,n)},t.prototype.revealPosition=function(e,t){void 0===t&&(t=0),this._revealPosition(e,0,!0,t)},t.prototype.revealPositionInCenter=function(e,t){void 0===t&&(t=0),this._revealPosition(e,1,!0,t)},t.prototype.revealPositionInCenterIfOutsideViewport=function(e,t){void 0===t&&(t=0),this._revealPosition(e,2,!0,t)},t.prototype._revealPosition=function(e,t,n,i){if(!re["a"].isIPosition(e))throw new Error("Invalid arguments");this._sendRevealRange(new oe["a"](e.lineNumber,e.column,e.lineNumber,e.column),t,n,i)},t.prototype.getSelection=function(){return this._modelData?this._modelData.cursor.getSelection():null},t.prototype.getSelections=function(){return this._modelData?this._modelData.cursor.getSelections():null},t.prototype.setSelection=function(e){var t=ye["a"].isISelection(e),n=oe["a"].isIRange(e);if(!t&&!n)throw new Error("Invalid arguments");if(t)this._setSelectionImpl(e);else if(n){var i={selectionStartLineNumber:e.startLineNumber,selectionStartColumn:e.startColumn,positionLineNumber:e.endLineNumber,positionColumn:e.endColumn};this._setSelectionImpl(i)}},t.prototype._setSelectionImpl=function(e){if(this._modelData){var t=new ye["a"](e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn);this._modelData.cursor.setSelections("api",[t])}},t.prototype.revealLines=function(e,t,n){void 0===n&&(n=0),this._revealLines(e,t,0,n)},t.prototype.revealLinesInCenter=function(e,t,n){void 0===n&&(n=0),this._revealLines(e,t,1,n)},t.prototype.revealLinesInCenterIfOutsideViewport=function(e,t,n){void 0===n&&(n=0),this._revealLines(e,t,2,n)},t.prototype._revealLines=function(e,t,n,i){if("number"!==typeof e||"number"!==typeof t)throw new Error("Invalid arguments");this._sendRevealRange(new oe["a"](e,1,t,1),n,!1,i)},t.prototype.revealRange=function(e,t,n,i){void 0===t&&(t=0),void 0===n&&(n=!1),void 0===i&&(i=!0),this._revealRange(e,n?1:0,i,t)},t.prototype.revealRangeInCenter=function(e,t){void 0===t&&(t=0),this._revealRange(e,1,!0,t)},t.prototype.revealRangeInCenterIfOutsideViewport=function(e,t){void 0===t&&(t=0),this._revealRange(e,2,!0,t)},t.prototype.revealRangeAtTop=function(e,t){void 0===t&&(t=0),this._revealRange(e,3,!0,t)},t.prototype._revealRange=function(e,t,n,i){if(!oe["a"].isIRange(e))throw new Error("Invalid arguments");this._sendRevealRange(oe["a"].lift(e),t,n,i)},t.prototype.setSelections=function(e,t){if(void 0===t&&(t="api"),this._modelData){if(!e||0===e.length)throw new Error("Invalid arguments");for(var n=0,i=e.length;n<i;n++)if(!ye["a"].isISelection(e[n]))throw new Error("Invalid arguments");this._modelData.cursor.setSelections(t,e)}},t.prototype.getContentWidth=function(){return this._modelData?this._modelData.viewModel.viewLayout.getContentWidth():-1},t.prototype.getScrollWidth=function(){return this._modelData?this._modelData.viewModel.viewLayout.getScrollWidth():-1},t.prototype.getScrollLeft=function(){return this._modelData?this._modelData.viewModel.viewLayout.getCurrentScrollLeft():-1},t.prototype.getContentHeight=function(){return this._modelData?this._modelData.viewModel.viewLayout.getContentHeight():-1},t.prototype.getScrollHeight=function(){return this._modelData?this._modelData.viewModel.viewLayout.getScrollHeight():-1},t.prototype.getScrollTop=function(){return this._modelData?this._modelData.viewModel.viewLayout.getCurrentScrollTop():-1},t.prototype.setScrollLeft=function(e){if(this._modelData){if("number"!==typeof e)throw new Error("Invalid arguments");this._modelData.viewModel.viewLayout.setScrollPositionNow({scrollLeft:e})}},t.prototype.setScrollTop=function(e){if(this._modelData){if("number"!==typeof e)throw new Error("Invalid arguments");this._modelData.viewModel.viewLayout.setScrollPositionNow({scrollTop:e})}},t.prototype.setScrollPosition=function(e){this._modelData&&this._modelData.viewModel.viewLayout.setScrollPositionNow(e)},t.prototype.saveViewState=function(){if(!this._modelData)return null;for(var e={},t=Object.keys(this._contributions),n=0,i=t;n<i.length;n++){var r=i[n],o=this._contributions[r];"function"===typeof o.saveViewState&&(e[r]=o.saveViewState())}var s=this._modelData.cursor.saveState(),a=this._modelData.viewModel.saveState();return{cursorState:s,viewState:a,contributionsState:e}},t.prototype.restoreViewState=function(e){if(this._modelData&&this._modelData.hasRealView){var t=e;if(t&&t.cursorState&&t.viewState){var n=t.cursorState;Array.isArray(n)?this._modelData.cursor.restoreState(n):this._modelData.cursor.restoreState([n]);for(var i=t.contributionsState||{},r=Object.keys(this._contributions),o=0,s=r.length;o<s;o++){var a=r[o],u=this._contributions[a];"function"===typeof u.restoreViewState&&u.restoreViewState(i[a])}var l=this._modelData.viewModel.reduceRestoreState(t.viewState);this._modelData.view.restoreState(l)}}},t.prototype.getContribution=function(e){return this._contributions[e]||null},t.prototype.getActions=function(){for(var e=[],t=Object.keys(this._actions),n=0,i=t.length;n<i;n++){var r=t[n];e.push(this._actions[r])}return e},t.prototype.getSupportedActions=function(){var e=this.getActions();return e=e.filter((function(e){return e.isSupported()})),e},t.prototype.getAction=function(e){return this._actions[e]||null},t.prototype.trigger=function(e,t,n){if(n=n||{},t===vi["b"].Type){if(!this._modelData||"string"!==typeof n.text||0===n.text.length)return;return"keyboard"===e&&this._onWillType.fire(n.text),this._modelData.cursor.trigger(e,t,n),void("keyboard"===e&&this._onDidType.fire(n.text))}if(t!==vi["b"].Paste){var i=this.getAction(t);i?Promise.resolve(i.run()).then(void 0,o["e"]):this._modelData&&(this._triggerEditorCommand(e,t,n)||(this._modelData.cursor.trigger(e,t,n),t===vi["b"].CompositionStart&&this._onDidCompositionStart.fire(),t===vi["b"].CompositionEnd&&this._onDidCompositionEnd.fire()))}else{if(!this._modelData||"string"!==typeof n.text||0===n.text.length)return;var r=this._modelData.cursor.getSelection().getStartPosition();this._modelData.cursor.trigger(e,t,n);var s=this._modelData.cursor.getSelection().getStartPosition();"keyboard"===e&&this._onDidPaste.fire({range:new oe["a"](r.lineNumber,r.column,s.lineNumber,s.column),mode:n.mode})}},t.prototype._triggerEditorCommand=function(e,t,n){var i=this,r=c["d"].getEditorCommand(t);return!!r&&(n=n||{},n.source=e,this._instantiationService.invokeFunction((function(e){Promise.resolve(r.runEditorCommand(e,i,n)).then(void 0,o["e"])})),!0)},t.prototype._getCursors=function(){return this._modelData?this._modelData.cursor:null},t.prototype.pushUndoStop=function(){return!!this._modelData&&(!this._configuration.options.get(68)&&(this._modelData.model.pushStackElement(),!0))},t.prototype.executeEdits=function(e,t,n){return!!this._modelData&&(!this._configuration.options.get(68)&&(i=n?Array.isArray(n)?function(){return n}:n:function(){return null},this._modelData.cursor.executeEdits(e,t,i),!0));var i},t.prototype.executeCommand=function(e,t){this._modelData&&this._modelData.cursor.trigger(e,vi["b"].ExecuteCommand,t)},t.prototype.executeCommands=function(e,t){this._modelData&&this._modelData.cursor.trigger(e,vi["b"].ExecuteCommands,t)},t.prototype.changeDecorations=function(e){return this._modelData?this._modelData.model.changeDecorations(e,this._id):null},t.prototype.getLineDecorations=function(e){return this._modelData?this._modelData.model.getLineDecorations(e,this._id,Object(z["j"])(this._configuration.options)):null},t.prototype.deltaDecorations=function(e,t){return this._modelData?0===e.length&&0===t.length?e:this._modelData.model.deltaDecorations(e,t,this._id):[]},t.prototype.removeDecorations=function(e){var t=this._decorationTypeKeysToIds[e];t&&this.deltaDecorations(t,[]),this._decorationTypeKeysToIds.hasOwnProperty(e)&&delete this._decorationTypeKeysToIds[e],this._decorationTypeSubtypes.hasOwnProperty(e)&&delete this._decorationTypeSubtypes[e]},t.prototype.getLayoutInfo=function(){var e=this._configuration.options,t=e.get(107);return t},t.prototype.createOverviewRuler=function(e){return this._modelData&&this._modelData.hasRealView?this._modelData.view.createOverviewRuler(e):null},t.prototype.getContainerDomNode=function(){return this._domElement},t.prototype.getDomNode=function(){return this._modelData&&this._modelData.hasRealView?this._modelData.view.domNode.domNode:null},t.prototype.delegateVerticalScrollbarMouseDown=function(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.delegateVerticalScrollbarMouseDown(e)},t.prototype.layout=function(e){this._configuration.observeReferenceElement(e),this.render()},t.prototype.focus=function(){this._modelData&&this._modelData.hasRealView&&this._modelData.view.focus()},t.prototype.hasTextFocus=function(){return!(!this._modelData||!this._modelData.hasRealView)&&this._modelData.view.isFocused()},t.prototype.hasWidgetFocus=function(){return this._focusTracker&&this._focusTracker.hasFocus()},t.prototype.addContentWidget=function(e){var 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)},t.prototype.layoutContentWidget=function(e){var t=e.getId();if(this._contentWidgets.hasOwnProperty(t)){var n=this._contentWidgets[t];n.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutContentWidget(n)}},t.prototype.removeContentWidget=function(e){var t=e.getId();if(this._contentWidgets.hasOwnProperty(t)){var n=this._contentWidgets[t];delete this._contentWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeContentWidget(n)}},t.prototype.addOverlayWidget=function(e){var 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)},t.prototype.layoutOverlayWidget=function(e){var t=e.getId();if(this._overlayWidgets.hasOwnProperty(t)){var n=this._overlayWidgets[t];n.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutOverlayWidget(n)}},t.prototype.removeOverlayWidget=function(e){var t=e.getId();if(this._overlayWidgets.hasOwnProperty(t)){var n=this._overlayWidgets[t];delete this._overlayWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeOverlayWidget(n)}},t.prototype.changeViewZones=function(e){if(this._modelData&&this._modelData.hasRealView){var t=this._modelData.view.change(e);t&&this._onDidChangeViewZones.fire()}},t.prototype.getTargetAtClientPoint=function(e,t){return this._modelData&&this._modelData.hasRealView?this._modelData.view.getTargetAtClientPoint(e,t):null},t.prototype.getScrolledVisiblePosition=function(e){if(!this._modelData||!this._modelData.hasRealView)return null;var n=this._modelData.model.validatePosition(e),i=this._configuration.options,r=i.get(107),o=t._getVerticalOffsetForPosition(this._modelData,n.lineNumber,n.column)-this.getScrollTop(),s=this._modelData.view.getOffsetForColumn(n.lineNumber,n.column)+r.glyphMarginWidth+r.lineNumbersWidth+r.decorationsWidth-this.getScrollLeft();return{top:o,left:s,height:i.get(49)}},t.prototype.getOffsetForColumn=function(e,t){return this._modelData&&this._modelData.hasRealView?this._modelData.view.getOffsetForColumn(e,t):-1},t.prototype.render=function(e){void 0===e&&(e=!1),this._modelData&&this._modelData.hasRealView&&this._modelData.view.render(!0,e)},t.prototype.setAriaOptions=function(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.setAriaOptions(e)},t.prototype.applyFontInfo=function(e){l["a"].applyFontInfoSlow(e,this._configuration.options.get(34))},t.prototype._attachModel=function(e){var t=this;if(e){var n=[];this._domElement.setAttribute("data-mode-id",e.getLanguageIdentifier().language),this._configuration.setIsDominatedByLongLines(e.isDominatedByLongLines()),this._configuration.setMaxLineNumber(e.getLineCount()),e.onBeforeAttached();var o=new or(this._id,this._configuration,e,Nr.create(),vr.create(this._configuration.options),(function(e){return r["V"](e)}));n.push(e.onDidChangeDecorations((function(e){return t._onDidChangeModelDecorations.fire(e)}))),n.push(e.onDidChangeLanguage((function(n){t._domElement.setAttribute("data-mode-id",e.getLanguageIdentifier().language),t._onDidChangeModelLanguage.fire(n)}))),n.push(e.onDidChangeLanguageConfiguration((function(e){return t._onDidChangeModelLanguageConfiguration.fire(e)}))),n.push(e.onDidChangeContent((function(e){return t._onDidChangeModelContent.fire(e)}))),n.push(e.onDidChangeOptions((function(e){return t._onDidChangeModelOptions.fire(e)}))),n.push(e.onWillDispose((function(){return t.setModel(null)})));var s=new Si(this._configuration,e,o);n.push(s.onDidReachMaxCursorCount((function(){t._notificationService.warn(i["a"]("cursors.maximum","The number of cursors has been limited to {0}.",Si.MAX_CURSOR_COUNT))}))),n.push(s.onDidAttemptReadOnlyEdit((function(){t._onDidAttemptReadOnlyEdit.fire(void 0)}))),n.push(s.onDidChange((function(e){for(var n=[],i=0,r=e.selections.length;i<r;i++)n[i]=e.selections[i].getPosition();var o={position:n[0],secondaryPositions:n.slice(1),reason:e.reason,source:e.source};t._onDidChangeCursorPosition.fire(o);var s={selection:e.selections[0],secondarySelections:e.selections.slice(1),modelVersionId:e.modelVersionId,oldSelections:e.oldSelections,oldModelVersionId:e.oldModelVersionId,source:e.source,reason:e.reason};t._onDidChangeCursorSelection.fire(s)})));var a=this._createView(o,s),u=a[0],l=a[1];if(l){this._domElement.appendChild(u.domNode.domNode);for(var c=Object.keys(this._contentWidgets),d=0,h=c.length;d<h;d++){var f=c[d];u.addContentWidget(this._contentWidgets[f])}c=Object.keys(this._overlayWidgets);for(d=0,h=c.length;d<h;d++){f=c[d];u.addOverlayWidget(this._overlayWidgets[f])}u.render(!1,!0),u.domNode.domNode.setAttribute("data-uri",e.uri.toString())}this._modelData=new Fr(e,o,s,u,l,n)}else this._modelData=null},t.prototype._createView=function(e,t){var n,i=this;n=this.isSimpleWidget?{executeEditorCommand:function(e,n){e.runCoreEditorCommand(t,n)},paste:function(e,t,n,r,o){i.trigger(e,vi["b"].Paste,{text:t,pasteOnNewLine:n,multicursorText:r,mode:o})},type:function(e,t){i.trigger(e,vi["b"].Type,{text:t})},replacePreviousChar:function(e,t,n){i.trigger(e,vi["b"].ReplacePreviousChar,{text:t,replaceCharCnt:n})},compositionStart:function(e){i.trigger(e,vi["b"].CompositionStart,void 0)},compositionEnd:function(e){i.trigger(e,vi["b"].CompositionEnd,void 0)},cut:function(e){i.trigger(e,vi["b"].Cut,void 0)}}:{executeEditorCommand:function(e,n){e.runCoreEditorCommand(t,n)},paste:function(e,t,n,r,o){i._commandService.executeCommand(vi["b"].Paste,{text:t,pasteOnNewLine:n,multicursorText:r,mode:o})},type:function(e,t){i._commandService.executeCommand(vi["b"].Type,{text:t})},replacePreviousChar:function(e,t,n){i._commandService.executeCommand(vi["b"].ReplacePreviousChar,{text:t,replaceCharCnt:n})},compositionStart:function(e){i._commandService.executeCommand(vi["b"].CompositionStart,{})},compositionEnd:function(e){i._commandService.executeCommand(vi["b"].CompositionEnd,{})},cut:function(e){i._commandService.executeCommand(vi["b"].Cut,{})}};var r=new wt(e);r.onDidContentSizeChange=function(e){return i._onDidContentSizeChange.fire(e)},r.onDidScroll=function(e){return i._onDidScrollChange.fire(e)},r.onDidGainFocus=function(){return i._editorTextFocus.setValue(!0)},r.onDidLoseFocus=function(){return i._editorTextFocus.setValue(!1)},r.onContextMenu=function(e){return i._onContextMenu.fire(e)},r.onMouseDown=function(e){return i._onMouseDown.fire(e)},r.onMouseUp=function(e){return i._onMouseUp.fire(e)},r.onMouseDrag=function(e){return i._onMouseDrag.fire(e)},r.onMouseDrop=function(e){return i._onMouseDrop.fire(e)},r.onKeyUp=function(e){return i._onKeyUp.fire(e)},r.onMouseMove=function(e){return i._onMouseMove.fire(e)},r.onMouseLeave=function(e){return i._onMouseLeave.fire(e)},r.onMouseWheel=function(e){return i._onMouseWheel.fire(e)},r.onKeyDown=function(e){return i._onKeyDown.fire(e)};var o=new hi(n,this._configuration,this._themeService,e,t,r);return[o,!0]},t.prototype._postDetachModelCleanup=function(e){e&&e.removeAllDecorationsWithOwnerId(this._id)},t.prototype._detachModel=function(){if(!this._modelData)return null;var 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.removeChild(t),e},t.prototype._removeDecorationType=function(e){this._codeEditorService.removeDecorationType(e)},t.prototype.hasModel=function(){return null!==this._modelData},t=Dr([Ir(3,ur["a"]),Ir(4,d["a"]),Ir(5,sr["b"]),Ir(6,ar["c"]),Ir(7,W["c"]),Ir(8,cr["a"]),Ir(9,dr["b"])],t),t}(a["a"]),Rr=function(e){function t(){var t=e.call(this)||this;return t._onDidChangeToTrue=t._register(new s["a"]),t.onDidChangeToTrue=t._onDidChangeToTrue.event,t._onDidChangeToFalse=t._register(new s["a"]),t.onDidChangeToFalse=t._onDidChangeToFalse.event,t._value=0,t}return kr(t,e),t.prototype.setValue=function(e){var t=e?2:1;this._value!==t&&(this._value=t,2===this._value?this._onDidChangeToTrue.fire():1===this._value&&this._onDidChangeToFalse.fire())},t}(a["a"]),Pr=function(e){function t(t,n){var i=e.call(this)||this;return i._editor=t,n.createKey("editorId",t.getId()),i._editorSimpleInput=Ei["a"].editorSimpleInput.bindTo(n),i._editorFocus=Ei["a"].focus.bindTo(n),i._textInputFocus=Ei["a"].textInputFocus.bindTo(n),i._editorTextFocus=Ei["a"].editorTextFocus.bindTo(n),i._editorTabMovesFocus=Ei["a"].tabMovesFocus.bindTo(n),i._editorReadonly=Ei["a"].readOnly.bindTo(n),i._hasMultipleSelections=Ei["a"].hasMultipleSelections.bindTo(n),i._hasNonEmptySelection=Ei["a"].hasNonEmptySelection.bindTo(n),i._canUndo=Ei["a"].canUndo.bindTo(n),i._canRedo=Ei["a"].canRedo.bindTo(n),i._register(i._editor.onDidChangeConfiguration((function(){return i._updateFromConfig()}))),i._register(i._editor.onDidChangeCursorSelection((function(){return i._updateFromSelection()}))),i._register(i._editor.onDidFocusEditorWidget((function(){return i._updateFromFocus()}))),i._register(i._editor.onDidBlurEditorWidget((function(){return i._updateFromFocus()}))),i._register(i._editor.onDidFocusEditorText((function(){return i._updateFromFocus()}))),i._register(i._editor.onDidBlurEditorText((function(){return i._updateFromFocus()}))),i._register(i._editor.onDidChangeModel((function(){return i._updateFromModel()}))),i._register(i._editor.onDidChangeConfiguration((function(){return i._updateFromModel()}))),i._updateFromConfig(),i._updateFromSelection(),i._updateFromFocus(),i._updateFromModel(),i._editorSimpleInput.set(i._editor.isSimpleWidget),i}return kr(t,e),t.prototype._updateFromConfig=function(){var e=this._editor.getOptions();this._editorTabMovesFocus.set(e.get(106)),this._editorReadonly.set(e.get(68))},t.prototype._updateFromSelection=function(){var e=this._editor.getSelections();e?(this._hasMultipleSelections.set(e.length>1),this._hasNonEmptySelection.set(e.some((function(e){return!e.isEmpty()})))):(this._hasMultipleSelections.reset(),this._hasNonEmptySelection.reset())},t.prototype._updateFromFocus=function(){this._editorFocus.set(this._editor.hasWidgetFocus()&&!this._editor.isSimpleWidget),this._editorTextFocus.set(this._editor.hasTextFocus()&&!this._editor.isSimpleWidget),this._textInputFocus.set(this._editor.hasTextFocus())},t.prototype._updateFromModel=function(){var e=this._editor.getModel();this._canUndo.set(Boolean(e&&e.canUndo())),this._canRedo.set(Boolean(e&&e.canRedo()))},t}(a["a"]),Ur=function(e){function t(t,n){var i=e.call(this)||this;i._editor=t,i._contextKeyService=n,i._langId=Ei["a"].languageId.bindTo(n),i._hasCompletionItemProvider=Ei["a"].hasCompletionItemProvider.bindTo(n),i._hasCodeActionsProvider=Ei["a"].hasCodeActionsProvider.bindTo(n),i._hasCodeLensProvider=Ei["a"].hasCodeLensProvider.bindTo(n),i._hasDefinitionProvider=Ei["a"].hasDefinitionProvider.bindTo(n),i._hasDeclarationProvider=Ei["a"].hasDeclarationProvider.bindTo(n),i._hasImplementationProvider=Ei["a"].hasImplementationProvider.bindTo(n),i._hasTypeDefinitionProvider=Ei["a"].hasTypeDefinitionProvider.bindTo(n),i._hasHoverProvider=Ei["a"].hasHoverProvider.bindTo(n),i._hasDocumentHighlightProvider=Ei["a"].hasDocumentHighlightProvider.bindTo(n),i._hasDocumentSymbolProvider=Ei["a"].hasDocumentSymbolProvider.bindTo(n),i._hasReferenceProvider=Ei["a"].hasReferenceProvider.bindTo(n),i._hasRenameProvider=Ei["a"].hasRenameProvider.bindTo(n),i._hasSignatureHelpProvider=Ei["a"].hasSignatureHelpProvider.bindTo(n),i._hasDocumentFormattingProvider=Ei["a"].hasDocumentFormattingProvider.bindTo(n),i._hasDocumentSelectionFormattingProvider=Ei["a"].hasDocumentSelectionFormattingProvider.bindTo(n),i._hasMultipleDocumentFormattingProvider=Ei["a"].hasMultipleDocumentFormattingProvider.bindTo(n),i._hasMultipleDocumentSelectionFormattingProvider=Ei["a"].hasMultipleDocumentSelectionFormattingProvider.bindTo(n),i._isInWalkThrough=Ei["a"].isInEmbeddedEditor.bindTo(n);var r=function(){return i._update()};return i._register(t.onDidChangeModel(r)),i._register(t.onDidChangeModelLanguage(r)),i._register(cn["d"].onDidChange(r)),i._register(cn["a"].onDidChange(r)),i._register(cn["b"].onDidChange(r)),i._register(cn["f"].onDidChange(r)),i._register(cn["e"].onDidChange(r)),i._register(cn["p"].onDidChange(r)),i._register(cn["z"].onDidChange(r)),i._register(cn["o"].onDidChange(r)),i._register(cn["h"].onDidChange(r)),i._register(cn["l"].onDidChange(r)),i._register(cn["t"].onDidChange(r)),i._register(cn["u"].onDidChange(r)),i._register(cn["g"].onDidChange(r)),i._register(cn["i"].onDidChange(r)),i._register(cn["w"].onDidChange(r)),r(),i}return kr(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.reset=function(){var e=this;this._contextKeyService.bufferChangeEvents((function(){e._langId.reset(),e._hasCompletionItemProvider.reset(),e._hasCodeActionsProvider.reset(),e._hasCodeLensProvider.reset(),e._hasDefinitionProvider.reset(),e._hasDeclarationProvider.reset(),e._hasImplementationProvider.reset(),e._hasTypeDefinitionProvider.reset(),e._hasHoverProvider.reset(),e._hasDocumentHighlightProvider.reset(),e._hasDocumentSymbolProvider.reset(),e._hasReferenceProvider.reset(),e._hasRenameProvider.reset(),e._hasDocumentFormattingProvider.reset(),e._hasDocumentSelectionFormattingProvider.reset(),e._hasSignatureHelpProvider.reset(),e._isInWalkThrough.reset()}))},t.prototype._update=function(){var e=this,t=this._editor.getModel();t?this._contextKeyService.bufferChangeEvents((function(){e._langId.set(t.getLanguageIdentifier().language),e._hasCompletionItemProvider.set(cn["d"].has(t)),e._hasCodeActionsProvider.set(cn["a"].has(t)),e._hasCodeLensProvider.set(cn["b"].has(t)),e._hasDefinitionProvider.set(cn["f"].has(t)),e._hasDeclarationProvider.set(cn["e"].has(t)),e._hasImplementationProvider.set(cn["p"].has(t)),e._hasTypeDefinitionProvider.set(cn["z"].has(t)),e._hasHoverProvider.set(cn["o"].has(t)),e._hasDocumentHighlightProvider.set(cn["h"].has(t)),e._hasDocumentSymbolProvider.set(cn["l"].has(t)),e._hasReferenceProvider.set(cn["t"].has(t)),e._hasRenameProvider.set(cn["u"].has(t)),e._hasSignatureHelpProvider.set(cn["w"].has(t)),e._hasDocumentFormattingProvider.set(cn["g"].has(t)||cn["i"].has(t)),e._hasDocumentSelectionFormattingProvider.set(cn["i"].has(t)),e._hasMultipleDocumentFormattingProvider.set(cn["g"].all(t).length+cn["i"].all(t).length>1),e._hasMultipleDocumentSelectionFormattingProvider.set(cn["i"].all(t).length>1),e._isInWalkThrough.set(t.uri.scheme===u["b"].walkThroughSnippet)})):this.reset()},t}(a["a"]),Hr=function(e){function t(t){var n=e.call(this)||this;return n._onChange=n._register(new s["a"]),n.onChange=n._onChange.event,n._hasFocus=!1,n._domFocusTracker=n._register(r["Y"](t)),n._register(n._domFocusTracker.onDidFocus((function(){n._hasFocus=!0,n._onChange.fire(void 0)}))),n._register(n._domFocusTracker.onDidBlur((function(){n._hasFocus=!1,n._onChange.fire(void 0)}))),n}return kr(t,e),t.prototype.hasFocus=function(){return this._hasFocus},t}(a["a"]),jr=encodeURIComponent("<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 3' enable-background='new 0 0 6 3' height='3' width='6'><g fill='"),Qr=encodeURIComponent("'><polygon points='5.5,0 2.5,3 1.1,3 4.1,0'/><polygon points='4,0 6,2 6,0.6 5.4,0'/><polygon points='0,2 1,3 2.4,3 0,0.6'/></g></svg>");function Vr(e){return jr+encodeURIComponent(e.toString())+Qr}var Wr=encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" height="3" width="12"><g fill="'),zr=encodeURIComponent('"><circle cx="1" cy="1" r="1"/><circle cx="5" cy="1" r="1"/><circle cx="9" cy="1" r="1"/></g></svg>');function Kr(e){return Wr+encodeURIComponent(e.toString())+zr}Object(W["e"])((function(e,t){var n=e.getColor(hn["p"]);n&&t.addRule(".monaco-editor .squiggly-error { border-bottom: 4px double "+n+"; }");var i=e.getColor(hn["q"]);i&&t.addRule('.monaco-editor .squiggly-error { background: url("data:image/svg+xml,'+Vr(i)+'") repeat-x bottom left; }');var r=e.getColor(hn["N"]);r&&t.addRule(".monaco-editor .squiggly-warning { border-bottom: 4px double "+r+"; }");var o=e.getColor(hn["O"]);o&&t.addRule('.monaco-editor .squiggly-warning { background: url("data:image/svg+xml,'+Vr(o)+'") repeat-x bottom left; }');var s=e.getColor(hn["G"]);s&&t.addRule(".monaco-editor .squiggly-info { border-bottom: 4px double "+s+"; }");var a=e.getColor(hn["H"]);a&&t.addRule('.monaco-editor .squiggly-info { background: url("data:image/svg+xml,'+Vr(a)+'") repeat-x bottom left; }');var u=e.getColor(hn["y"]);u&&t.addRule(".monaco-editor .squiggly-hint { border-bottom: 2px dotted "+u+"; }");var l=e.getColor(hn["z"]);l&&t.addRule('.monaco-editor .squiggly-hint { background: url("data:image/svg+xml,'+Kr(l)+'") no-repeat bottom left; }');var c=e.getColor(Ue["n"]);c&&t.addRule(".monaco-editor.showUnused .squiggly-inline-unnecessary { opacity: "+c.rgba.a+"; }");var d=e.getColor(Ue["m"]);d&&t.addRule(".monaco-editor.showUnused .squiggly-unnecessary { border-bottom: 2px dashed "+d+"; }");var h=e.getColor(hn["x"])||"inherit";t.addRule(".monaco-editor .squiggly-inline-deprecated { text-decoration: line-through; text-decoration-color: "+h+"}")}))},nD70:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return r}));var i=function(){function e(e){this._prefix=e,this._lastId=0}return e.prototype.nextId=function(){return this._prefix+ ++this._lastId},e}(),r=new i("id#")},nn6Y:function(e,t,n){},nnTU:function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return d}));var i=n("pmY6"),r=n("746U"),o=n("Cg/j"),s=n("MI8n"),a=n("24hK"),u=n("QDVR"),l=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i},c=Object(o["c"])("commandService"),d=new(function(){function e(){this._commands=new Map,this._onDidRegisterCommand=new s["a"],this.onDidRegisterCommand=this._onDidRegisterCommand.event}return e.prototype.registerCommand=function(e,t){var n=this;if(!e)throw new Error("invalid command");if("string"===typeof e){if(!t)throw new Error("invalid command");return this.registerCommand({id:e,handler:t})}if(e.description){for(var o=[],s=0,u=e.description.args;s<u.length;s++){var c=u[s];o.push(c.constraint)}var d=e.handler;e.handler=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return Object(r["m"])(t,o),d.apply(void 0,l([e],t))}}var h=e.id,f=this._commands.get(h);f||(f=new a["a"],this._commands.set(h,f));var p=f.unshift(e),g=Object(i["h"])((function(){p();var e=n._commands.get(h);(null===e||void 0===e?void 0:e.isEmpty())&&n._commands.delete(h)}));return this._onDidRegisterCommand.fire(h),g},e.prototype.registerCommandAlias=function(e,t){return d.registerCommand(e,(function(e){for(var n,i=[],r=1;r<arguments.length;r++)i[r-1]=arguments[r];return(n=e.get(c)).executeCommand.apply(n,l([t],i))}))},e.prototype.getCommand=function(e){var t=this._commands.get(e);if(t&&!t.isEmpty())return t.iterator().next().value},e.prototype.getCommands=function(){for(var e=new Map,t=0,n=Object(u["d"])(this._commands);t<n.length;t++){var i=n[t],r=this.getCommand(i);r&&e.set(i,r)}return e},e}())},nrBJ:function(e,t,n){"use strict";n.r(t);var i=n("+hIS");Object(i["a"])({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:function(){return n.e(196).then(n.bind(null,"eXtt"))}})},nrhi:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var i=n("/kV6"),r=n("MNsG"),o=n("nnTU"),s=n("ic2d"),a=function(){function e(){this._coreKeybindings=[],this._extensionKeybindings=[],this._cachedMergedKeybindings=null}return e.bindToCurrentPlatform=function(e){if(1===r["a"]){if(e&&e.win)return e.win}else if(2===r["a"]){if(e&&e.mac)return e.mac}else if(e&&e.linux)return e.linux;return e},e.prototype.registerKeybindingRule=function(t){var n=e.bindToCurrentPlatform(t);if(n&&n.primary){var o=Object(i["f"])(n.primary,r["a"]);o&&this._registerDefaultKeybinding(o,t.id,t.args,t.weight,0,t.when)}if(n&&Array.isArray(n.secondary))for(var s=0,a=n.secondary.length;s<a;s++){var u=n.secondary[s];o=Object(i["f"])(u,r["a"]);o&&this._registerDefaultKeybinding(o,t.id,t.args,t.weight,-s-1,t.when)}},e.prototype.registerCommandAndKeybindingRule=function(e){this.registerKeybindingRule(e),o["a"].registerCommand(e)},e._mightProduceChar=function(e){return e>=21&&e<=30||(e>=31&&e<=56||(80===e||81===e||82===e||83===e||84===e||85===e||86===e||110===e||111===e||87===e||88===e||89===e||90===e||91===e||92===e))},e.prototype._assertNoCtrlAlt=function(t,n){t.ctrlKey&&t.altKey&&!t.metaKey&&e._mightProduceChar(t.keyCode)&&console.warn("Ctrl+Alt+ keybindings should not be used by default under Windows. Offender: ",t," for ",n)},e.prototype._registerDefaultKeybinding=function(e,t,n,i,o,s){1===r["a"]&&this._assertNoCtrlAlt(e.parts[0],t),this._coreKeybindings.push({keybinding:e,command:t,commandArgs:n,when:s,weight1:i,weight2:o}),this._cachedMergedKeybindings=null},e.prototype.getDefaultKeybindings=function(){return this._cachedMergedKeybindings||(this._cachedMergedKeybindings=[].concat(this._coreKeybindings).concat(this._extensionKeybindings),this._cachedMergedKeybindings.sort(c)),this._cachedMergedKeybindings.slice(0)},e}(),u=new a,l={EditorModes:"platform.keybindingsRegistry"};function c(e,t){return e.weight1!==t.weight1?e.weight1-t.weight1:e.command<t.command?-1:e.command>t.command?1:e.weight2-t.weight2}s["a"].add(l.EditorModes,u)},nuFA:function(e,t,n){"use strict";var i;n.d(t,"a",(function(){return i})),function(e){function t(e,t){if(e.start>=t.end||t.start>=e.end)return{start:0,end:0};var n=Math.max(e.start,t.start),i=Math.min(e.end,t.end);return i-n<=0?{start:0,end:0}:{start:n,end:i}}function n(e){return e.end-e.start<=0}function i(e,i){return!n(t(e,i))}function r(e,t){var i=[],r={start:e.start,end:Math.min(t.start,e.end)},o={start:Math.max(t.end,e.start),end:e.end};return n(r)||i.push(r),n(o)||i.push(o),i}e.intersect=t,e.isEmpty=n,e.intersects=i,e.relativeComplement=r}(i||(i={}))},o39E:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n("pmY6"),r=n("EffR"),o=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),s=function(e){function t(t,n,i){var r=e.call(this)||this;return r.referenceDomElement=t,r.changeCallback=i,r.width=-1,r.height=-1,r.mutationObserver=null,r.windowSizeListener=null,r.measureReferenceDomElement(!1,n),r}return o(t,e),t.prototype.dispose=function(){this.stopObserving(),e.prototype.dispose.call(this)},t.prototype.getWidth=function(){return this.width},t.prototype.getHeight=function(){return this.height},t.prototype.startObserving=function(){var e=this;!this.mutationObserver&&this.referenceDomElement&&(this.mutationObserver=new MutationObserver((function(){return e._onDidMutate()})),this.mutationObserver.observe(this.referenceDomElement,{attributes:!0})),this.windowSizeListener||(this.windowSizeListener=r["i"](window,"resize",(function(){return e._onDidResizeWindow()})))},t.prototype.stopObserving=function(){this.mutationObserver&&(this.mutationObserver.disconnect(),this.mutationObserver=null),this.windowSizeListener&&(this.windowSizeListener.dispose(),this.windowSizeListener=null)},t.prototype.observe=function(e){this.measureReferenceDomElement(!0,e)},t.prototype._onDidMutate=function(){this.measureReferenceDomElement(!0)},t.prototype._onDidResizeWindow=function(){this.measureReferenceDomElement(!0)},t.prototype.measureReferenceDomElement=function(e,t){var n=0,i=0;t?(n=t.width,i=t.height):this.referenceDomElement&&(n=this.referenceDomElement.clientWidth,i=this.referenceDomElement.clientHeight),n=Math.max(5,n),i=Math.max(5,i),this.width===n&&this.height===i||(this.width=n,this.height=i,e&&this.changeCallback())},t}(i["a"])},oKJv:function(e,t,n){"use strict";n.r(t);var i=n("+hIS");Object(i["a"])({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:function(){return n.e(170).then(n.bind(null,"HGU1"))}})},oQaD:function(e,t,n){"use strict";n.r(t),n.d(t,"getSelectionSearchString",(function(){return Lt})),n.d(t,"CommonFindController",(function(){return Et})),n.d(t,"FindController",(function(){return xt})),n.d(t,"StartFindAction",(function(){return Ot})),n.d(t,"StartFindWithSelectionAction",(function(){return Bt})),n.d(t,"MatchFindAction",(function(){return kt})),n.d(t,"NextMatchFindAction",(function(){return Dt})),n.d(t,"NextMatchFindAction2",(function(){return It})),n.d(t,"PreviousMatchFindAction",(function(){return Mt})),n.d(t,"PreviousMatchFindAction2",(function(){return Ft})),n.d(t,"SelectionMatchFindAction",(function(){return Tt})),n.d(t,"NextSelectionMatchFindAction",(function(){return Rt})),n.d(t,"PreviousSelectionMatchFindAction",(function(){return Pt})),n.d(t,"StartFindReplaceAction",(function(){return Ut}));var i=n("3/fG"),r=n("X+cX"),o=n("pmY6"),s=n("N0LK"),a=n("sswD"),u=n("wQH0"),l=n("LCkn"),c=n("cGHE"),d=n("aokT"),h=n("gCVg"),f=n("jAJ/"),p=n("M1Kb"),g=n("tX9W"),A=n("MD5Z"),m=n("t9D7"),v=function(){function e(e){this._editor=e,this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationId=null,this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null,this._startPosition=this._editor.getPosition()}return e.prototype.dispose=function(){this._editor.deltaDecorations(this._allDecorations(),[]),this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationId=null,this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null},e.prototype.reset=function(){this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationId=null,this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null},e.prototype.getCount=function(){return this._decorations.length},e.prototype.getFindScope=function(){return this._findScopeDecorationId?this._editor.getModel().getDecorationRange(this._findScopeDecorationId):null},e.prototype.getStartPosition=function(){return this._startPosition},e.prototype.setStartPosition=function(e){this._startPosition=e,this.setCurrentFindMatch(null)},e.prototype._getDecorationIndex=function(e){var t=this._decorations.indexOf(e);return t>=0?t+1:1},e.prototype.getCurrentMatchesPosition=function(t){for(var n=this._editor.getModel().getDecorationsInRange(t),i=0,r=n;i<r.length;i++){var o=r[i],s=o.options;if(s===e._FIND_MATCH_DECORATION||s===e._CURRENT_FIND_MATCH_DECORATION)return this._getDecorationIndex(o.id)}return 1},e.prototype.setCurrentFindMatch=function(t){var n=this,i=null,r=0;if(t)for(var o=0,s=this._decorations.length;o<s;o++){var a=this._editor.getModel().getDecorationRange(this._decorations[o]);if(t.equalsRange(a)){i=this._decorations[o],r=o+1;break}}return null===this._highlightedDecorationId&&null===i||this._editor.changeDecorations((function(t){if(null!==n._highlightedDecorationId&&(t.changeDecorationOptions(n._highlightedDecorationId,e._FIND_MATCH_DECORATION),n._highlightedDecorationId=null),null!==i&&(n._highlightedDecorationId=i,t.changeDecorationOptions(n._highlightedDecorationId,e._CURRENT_FIND_MATCH_DECORATION)),null!==n._rangeHighlightDecorationId&&(t.removeDecoration(n._rangeHighlightDecorationId),n._rangeHighlightDecorationId=null),null!==i){var r=n._editor.getModel().getDecorationRange(i);if(r.startLineNumber!==r.endLineNumber&&1===r.endColumn){var o=r.endLineNumber-1,s=n._editor.getModel().getLineMaxColumn(o);r=new d["a"](r.startLineNumber,r.startColumn,o,s)}n._rangeHighlightDecorationId=t.addDecoration(r,e._RANGE_HIGHLIGHT_DECORATION)}})),r},e.prototype.set=function(t,n){var i=this;this._editor.changeDecorations((function(r){var o=e._FIND_MATCH_DECORATION,s=[];if(t.length>1e3){o=e._FIND_MATCH_NO_OVERVIEW_DECORATION;for(var a=i._editor.getModel().getLineCount(),u=i._editor.getLayoutInfo().height,l=u/a,c=Math.max(2,Math.ceil(3/l)),h=t[0].range.startLineNumber,f=t[0].range.endLineNumber,p=1,g=t.length;p<g;p++){var A=t[p].range;f+c>=A.startLineNumber?A.endLineNumber>f&&(f=A.endLineNumber):(s.push({range:new d["a"](h,1,f,1),options:e._FIND_MATCH_ONLY_OVERVIEW_DECORATION}),h=A.startLineNumber,f=A.endLineNumber)}s.push({range:new d["a"](h,1,f,1),options:e._FIND_MATCH_ONLY_OVERVIEW_DECORATION})}var m=new Array(t.length);for(p=0,g=t.length;p<g;p++)m[p]={range:t[p].range,options:o};i._decorations=r.deltaDecorations(i._decorations,m),i._overviewRulerApproximateDecorations=r.deltaDecorations(i._overviewRulerApproximateDecorations,s),i._rangeHighlightDecorationId&&(r.removeDecoration(i._rangeHighlightDecorationId),i._rangeHighlightDecorationId=null),i._findScopeDecorationId&&(r.removeDecoration(i._findScopeDecorationId),i._findScopeDecorationId=null),n&&(i._findScopeDecorationId=r.addDecoration(n,e._FIND_SCOPE_DECORATION))}))},e.prototype.matchBeforePosition=function(e){if(0===this._decorations.length)return null;for(var t=this._decorations.length-1;t>=0;t--){var n=this._decorations[t],i=this._editor.getModel().getDecorationRange(n);if(i&&!(i.endLineNumber>e.lineNumber)){if(i.endLineNumber<e.lineNumber)return i;if(!(i.endColumn>e.column))return i}}return this._editor.getModel().getDecorationRange(this._decorations[this._decorations.length-1])},e.prototype.matchAfterPosition=function(e){if(0===this._decorations.length)return null;for(var t=0,n=this._decorations.length;t<n;t++){var i=this._decorations[t],r=this._editor.getModel().getDecorationRange(i);if(r&&!(r.startLineNumber<e.lineNumber)){if(r.startLineNumber>e.lineNumber)return r;if(!(r.startColumn<e.column))return r}}return this._editor.getModel().getDecorationRange(this._decorations[0])},e.prototype._allDecorations=function(){var e=[];return e=e.concat(this._decorations),e=e.concat(this._overviewRulerApproximateDecorations),this._findScopeDecorationId&&e.push(this._findScopeDecorationId),this._rangeHighlightDecorationId&&e.push(this._rangeHighlightDecorationId),e},e._CURRENT_FIND_MATCH_DECORATION=g["a"].register({stickiness:1,zIndex:13,className:"currentFindMatch",showIfCollapsed:!0,overviewRuler:{color:Object(m["f"])(A["Kb"]),position:p["d"].Center},minimap:{color:Object(m["f"])(A["Gb"]),position:p["c"].Inline}}),e._FIND_MATCH_DECORATION=g["a"].register({stickiness:1,className:"findMatch",showIfCollapsed:!0,overviewRuler:{color:Object(m["f"])(A["Kb"]),position:p["d"].Center},minimap:{color:Object(m["f"])(A["Gb"]),position:p["c"].Inline}}),e._FIND_MATCH_NO_OVERVIEW_DECORATION=g["a"].register({stickiness:1,className:"findMatch",showIfCollapsed:!0}),e._FIND_MATCH_ONLY_OVERVIEW_DECORATION=g["a"].register({stickiness:1,overviewRuler:{color:Object(m["f"])(A["Kb"]),position:p["d"].Center}}),e._RANGE_HIGHLIGHT_DECORATION=g["a"].register({stickiness:1,className:"rangeHighlight",isWholeLine:!0}),e._FIND_SCOPE_DECORATION=g["a"].register({className:"findScope",isWholeLine:!0}),e}(),_=function(){function e(e,t,n){this._editorSelection=e,this._ranges=t,this._replaceStrings=n,this._trackedEditorSelectionId=null}return e.prototype.getEditOperations=function(e,t){if(this._ranges.length>0){for(var n=[],i=0;i<this._ranges.length;i++)n.push({range:this._ranges[i],text:this._replaceStrings[i]});n.sort((function(e,t){return d["a"].compareRangesUsingStarts(e.range,t.range)}));var r=[],o=n[0];for(i=1;i<n.length;i++)o.range.endLineNumber===n[i].range.startLineNumber&&o.range.endColumn===n[i].range.startColumn?(o.range=o.range.plusRange(n[i].range),o.text=o.text+n[i].text):(r.push(o),o=n[i]);r.push(o);for(var s=0,a=r;s<a.length;s++){var u=a[s];t.addEditOperation(u.range,u.text)}}this._trackedEditorSelectionId=t.trackSelection(this._editorSelection)},e.prototype.computeCursorState=function(e,t){return t.getTrackedSelection(this._trackedEditorSelectionId)},e}();function y(e,t){if(e&&""!==e[0]){var n=b(e,t,"-"),i=b(e,t,"_");return n&&!i?w(e,t,"-"):!n&&i?w(e,t,"_"):e[0].toUpperCase()===e[0]?t.toUpperCase():e[0].toLowerCase()===e[0]?t.toLowerCase():s["j"](e[0][0])?t[0].toUpperCase()+t.substr(1):t}return t}function b(e,t,n){var i=-1!==e[0].indexOf(n)&&-1!==t.indexOf(n);return i&&e[0].split(n).length===t.split(n).length}function w(e,t,n){var i=t.split(n),r=e[0].split(n),o="";return i.forEach((function(e,t){o+=y([r[t]],e)+n})),o.slice(0,-1)}var C=function(){function e(e){this.staticValue=e,this.kind=0}return e}(),S=function(){function e(e){this.pieces=e,this.kind=1}return e}(),N=function(){function e(e){e&&0!==e.length?1===e.length&&null!==e[0].staticValue?this._state=new C(e[0].staticValue):this._state=new S(e):this._state=new C("")}return e.fromStaticValue=function(t){return new e([L.staticValue(t)])},Object.defineProperty(e.prototype,"hasReplacementPatterns",{get:function(){return 1===this._state.kind},enumerable:!0,configurable:!0}),e.prototype.buildReplaceString=function(t,n){if(0===this._state.kind)return n?y(t,this._state.staticValue):this._state.staticValue;for(var i="",r=0,o=this._state.pieces.length;r<o;r++){var s=this._state.pieces[r];null===s.staticValue?i+=e._substitute(s.matchIndex,t):i+=s.staticValue}return i},e._substitute=function(e,t){if(null===t)return"";if(0===e)return t[0];var n="";while(e>0){if(e<t.length){var i=t[e]||"";return i+n}n=String(e%10)+n,e=Math.floor(e/10)}return"$"+n},e}(),L=function(){function e(e,t){this.staticValue=e,this.matchIndex=t}return e.staticValue=function(t){return new e(t,-1)},e.matchIndex=function(t){return new e(null,t)},e}(),E=function(){function e(e){this._source=e,this._lastCharIndex=0,this._result=[],this._resultLen=0,this._currentStaticPiece=""}return e.prototype.emitUnchanged=function(e){this._emitStatic(this._source.substring(this._lastCharIndex,e)),this._lastCharIndex=e},e.prototype.emitStatic=function(e,t){this._emitStatic(e),this._lastCharIndex=t},e.prototype._emitStatic=function(e){0!==e.length&&(this._currentStaticPiece+=e)},e.prototype.emitMatchIndex=function(e,t){0!==this._currentStaticPiece.length&&(this._result[this._resultLen++]=L.staticValue(this._currentStaticPiece),this._currentStaticPiece=""),this._result[this._resultLen++]=L.matchIndex(e),this._lastCharIndex=t},e.prototype.finalize=function(){return this.emitUnchanged(this._source.length),0!==this._currentStaticPiece.length&&(this._result[this._resultLen++]=L.staticValue(this._currentStaticPiece),this._currentStaticPiece=""),new N(this._result)},e}();function x(e){if(!e||0===e.length)return new N(null);for(var t=new E(e),n=0,i=e.length;n<i;n++){var r=e.charCodeAt(n);if(92!==r){if(36===r){if(n++,n>=i)break;a=e.charCodeAt(n);if(36===a){t.emitUnchanged(n-1),t.emitStatic("$",n+1);continue}if(48===a||38===a){t.emitUnchanged(n-1),t.emitMatchIndex(0,n+1);continue}if(49<=a&&a<=57){var o=a-48;if(n+1<i){var s=e.charCodeAt(n+1);if(48<=s&&s<=57){n++,o=10*o+(s-48),t.emitUnchanged(n-2),t.emitMatchIndex(o,n+1);continue}}t.emitUnchanged(n-1),t.emitMatchIndex(o,n+1);continue}}}else{if(n++,n>=i)break;var a=e.charCodeAt(n);switch(a){case 92:t.emitUnchanged(n-1),t.emitStatic("\\",n+1);break;case 110:t.emitUnchanged(n-1),t.emitStatic("\n",n+1);break;case 116:t.emitUnchanged(n-1),t.emitStatic("\t",n+1);break}}}return t.finalize()}var O=n("T8No"),B=new O["d"]("findWidgetVisible",!1),k=new O["d"]("findInputFocussed",!1),D=new O["d"]("replaceInputFocussed",!1),I={primary:545,mac:{primary:2593}},M={primary:565,mac:{primary:2613}},F={primary:560,mac:{primary:2608}},T={primary:554,mac:{primary:2602}},R={StartFindAction:"actions.find",StartFindWithSelection:"actions.findWithSelection",NextMatchFindAction:"editor.action.nextMatchFindAction",PreviousMatchFindAction:"editor.action.previousMatchFindAction",NextSelectionMatchFindAction:"editor.action.nextSelectionMatchFindAction",PreviousSelectionMatchFindAction:"editor.action.previousSelectionMatchFindAction",StartFindReplaceAction:"editor.action.startFindReplaceAction",CloseFindWidgetCommand:"closeFindWidget",ToggleCaseSensitiveCommand:"toggleFindCaseSensitive",ToggleWholeWordCommand:"toggleFindWholeWord",ToggleRegexCommand:"toggleFindRegex",ToggleSearchScopeCommand:"toggleFindInSelection",TogglePreserveCaseCommand:"togglePreserveCase",ReplaceOneAction:"editor.action.replaceOne",ReplaceAllAction:"editor.action.replaceAll",SelectAllMatchesAction:"editor.action.selectAllMatches"},P=19999,U=240,H=function(){function e(e,t){var n=this;this._toDispose=new o["b"],this._editor=e,this._state=t,this._isDisposed=!1,this._startSearchingTimer=new r["e"],this._decorations=new v(e),this._toDispose.add(this._decorations),this._updateDecorationsScheduler=new r["d"]((function(){return n.research(!1)}),100),this._toDispose.add(this._updateDecorationsScheduler),this._toDispose.add(this._editor.onDidChangeCursorPosition((function(e){3!==e.reason&&5!==e.reason&&6!==e.reason||n._decorations.setStartPosition(n._editor.getPosition())}))),this._ignoreModelContentChanged=!1,this._toDispose.add(this._editor.onDidChangeModelContent((function(e){n._ignoreModelContentChanged||(e.isFlush&&n._decorations.reset(),n._decorations.setStartPosition(n._editor.getPosition()),n._updateDecorationsScheduler.schedule())}))),this._toDispose.add(this._state.onFindReplaceStateChange((function(e){return n._onStateChanged(e)}))),this.research(!1,this._state.searchScope)}return e.prototype.dispose=function(){this._isDisposed=!0,Object(o["f"])(this._startSearchingTimer),this._toDispose.dispose()},e.prototype._onStateChanged=function(e){var t=this;if(!this._isDisposed&&this._editor.hasModel()&&(e.searchString||e.isReplaceRevealed||e.isRegex||e.wholeWord||e.matchCase||e.searchScope)){var n=this._editor.getModel();n.isTooLargeForSyncing()?(this._startSearchingTimer.cancel(),this._startSearchingTimer.setIfNotSet((function(){e.searchScope?t.research(e.moveCursor,t._state.searchScope):t.research(e.moveCursor)}),U)):e.searchScope?this.research(e.moveCursor,this._state.searchScope):this.research(e.moveCursor)}},e._getSearchRange=function(e,t){return t||e.getFullModelRange()},e.prototype.research=function(e,t){var n=null;n="undefined"!==typeof t?t:this._decorations.getFindScope(),null!==n&&n.startLineNumber!==n.endLineNumber&&(n=1===n.endColumn?new d["a"](n.startLineNumber,1,n.endLineNumber-1,this._editor.getModel().getLineMaxColumn(n.endLineNumber-1)):new d["a"](n.startLineNumber,1,n.endLineNumber,this._editor.getModel().getLineMaxColumn(n.endLineNumber)));var i=this._findMatches(n,!1,P);this._decorations.set(i,n),this._state.changeMatchInfo(this._decorations.getCurrentMatchesPosition(this._editor.getSelection()),this._decorations.getCount(),void 0),e&&this._moveToNextMatch(this._decorations.getStartPosition())},e.prototype._hasMatches=function(){return this._state.matchesCount>0},e.prototype._cannotFind=function(){if(!this._hasMatches()){var e=this._decorations.getFindScope();return e&&this._editor.revealRangeInCenterIfOutsideViewport(e,0),!0}return!1},e.prototype._setCurrentFindMatch=function(e){var t=this._decorations.setCurrentFindMatch(e);this._state.changeMatchInfo(t,this._decorations.getCount(),e),this._editor.setSelection(e),this._editor.revealRangeInCenterIfOutsideViewport(e,0)},e.prototype._prevSearchPosition=function(e){var t=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0),n=e.lineNumber,i=e.column,r=this._editor.getModel();return t||1===i?(1===n?n=r.getLineCount():n--,i=r.getLineMaxColumn(n)):i--,new c["a"](n,i)},e.prototype._moveToPrevMatch=function(t,n){if(void 0===n&&(n=!1),this._decorations.getCount()<P){var i=this._decorations.matchBeforePosition(t);return i&&i.isEmpty()&&i.getStartPosition().equals(t)&&(t=this._prevSearchPosition(t),i=this._decorations.matchBeforePosition(t)),void(i&&this._setCurrentFindMatch(i))}if(!this._cannotFind()){var r=this._decorations.getFindScope(),o=e._getSearchRange(this._editor.getModel(),r);o.getEndPosition().isBefore(t)&&(t=o.getEndPosition()),t.isBefore(o.getStartPosition())&&(t=o.getEndPosition());var s=t.lineNumber,a=t.column,u=this._editor.getModel(),l=new c["a"](s,a),d=u.findPreviousMatch(this._state.searchString,l,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(96):null,!1);if(d&&d.range.isEmpty()&&d.range.getStartPosition().equals(l)&&(l=this._prevSearchPosition(l),d=u.findPreviousMatch(this._state.searchString,l,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(96):null,!1)),d)return n||o.containsRange(d.range)?void this._setCurrentFindMatch(d.range):this._moveToPrevMatch(d.range.getStartPosition(),!0)}},e.prototype.moveToPrevMatch=function(){this._moveToPrevMatch(this._editor.getSelection().getStartPosition())},e.prototype._nextSearchPosition=function(e){var t=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0),n=e.lineNumber,i=e.column,r=this._editor.getModel();return t||i===r.getLineMaxColumn(n)?(n===r.getLineCount()?n=1:n++,i=1):i++,new c["a"](n,i)},e.prototype._moveToNextMatch=function(e){if(this._decorations.getCount()<P){var t=this._decorations.matchAfterPosition(e);return t&&t.isEmpty()&&t.getStartPosition().equals(e)&&(e=this._nextSearchPosition(e),t=this._decorations.matchAfterPosition(e)),void(t&&this._setCurrentFindMatch(t))}var n=this._getNextMatch(e,!1,!0);n&&this._setCurrentFindMatch(n.range)},e.prototype._getNextMatch=function(t,n,i,r){if(void 0===r&&(r=!1),this._cannotFind())return null;var o=this._decorations.getFindScope(),s=e._getSearchRange(this._editor.getModel(),o);s.getEndPosition().isBefore(t)&&(t=s.getStartPosition()),t.isBefore(s.getStartPosition())&&(t=s.getStartPosition());var a=t.lineNumber,u=t.column,l=this._editor.getModel(),d=new c["a"](a,u),h=l.findNextMatch(this._state.searchString,d,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(96):null,n);return i&&h&&h.range.isEmpty()&&h.range.getStartPosition().equals(d)&&(d=this._nextSearchPosition(d),h=l.findNextMatch(this._state.searchString,d,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(96):null,n)),h?r||s.containsRange(h.range)?h:this._getNextMatch(h.range.getEndPosition(),n,i,!0):null},e.prototype.moveToNextMatch=function(){this._moveToNextMatch(this._editor.getSelection().getEndPosition())},e.prototype._getReplacePattern=function(){return this._state.isRegex?x(this._state.replaceString):N.fromStaticValue(this._state.replaceString)},e.prototype.replace=function(){if(this._hasMatches()){var e=this._getReplacePattern(),t=this._editor.getSelection(),n=this._getNextMatch(t.getStartPosition(),!0,!1);if(n)if(t.equalsRange(n.range)){var i=e.buildReplaceString(n.matches,this._state.preserveCase),r=new l["a"](t,i);this._executeEditorCommand("replace",r),this._decorations.setStartPosition(new c["a"](t.startLineNumber,t.startColumn+i.length)),this.research(!0)}else this._decorations.setStartPosition(this._editor.getPosition()),this._setCurrentFindMatch(n.range)}},e.prototype._findMatches=function(t,n,i){var r=e._getSearchRange(this._editor.getModel(),t);return this._editor.getModel().findMatches(this._state.searchString,r,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(96):null,n,i)},e.prototype.replaceAll=function(){if(this._hasMatches()){var e=this._decorations.getFindScope();null===e&&this._state.matchesCount>=P?this._largeReplaceAll():this._regularReplaceAll(e),this.research(!1)}},e.prototype._largeReplaceAll=function(){var e=new f["a"](this._state.searchString,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(96):null),t=e.parseSearchRequest();if(t){var n=t.regex;if(!n.multiline){var i="mu";n.ignoreCase&&(i+="i"),n.global&&(i+="g"),n=new RegExp(n.source,i)}var r,o=this._editor.getModel(),s=o.getValue(1),a=o.getFullModelRange(),u=this._getReplacePattern(),c=this._state.preserveCase;r=u.hasReplacementPatterns||c?s.replace(n,(function(){return u.buildReplaceString(arguments,c)})):s.replace(n,u.buildReplaceString(null,c));var d=new l["b"](a,r,this._editor.getSelection());this._executeEditorCommand("replaceAll",d)}},e.prototype._regularReplaceAll=function(e){for(var t=this._getReplacePattern(),n=this._findMatches(e,t.hasReplacementPatterns||this._state.preserveCase,1073741824),i=[],r=0,o=n.length;r<o;r++)i[r]=t.buildReplaceString(n[r].matches,this._state.preserveCase);var s=new _(this._editor.getSelection(),n.map((function(e){return e.range})),i);this._executeEditorCommand("replaceAll",s)},e.prototype.selectAllMatches=function(){if(this._hasMatches()){for(var e=this._decorations.getFindScope(),t=this._findMatches(e,!1,1073741824),n=t.map((function(e){return new h["a"](e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn)})),i=this._editor.getSelection(),r=0,o=n.length;r<o;r++){var s=n[r];if(s.equalsRange(i)){n=[i].concat(n.slice(0,r)).concat(n.slice(r+1));break}}this._editor.setSelections(n)}},e.prototype._executeEditorCommand=function(e,t){try{this._ignoreModelContentChanged=!0,this._editor.pushUndoStop(),this._editor.executeCommand(e,t),this._editor.pushUndoStop()}finally{this._ignoreModelContentChanged=!1}},e}(),j=n("EffR"),Q=(n("iJk1"),n("G300")),V=n("zrhQ"),W=n("MI8n"),z=n("qj0h"),K=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),q={inputActiveOptionBorder:V["a"].fromHex("#007ACC00"),inputActiveOptionBackground:V["a"].fromHex("#0E639C50")},G=function(e){function t(t){var n=e.call(this)||this;return n._onChange=n._register(new W["a"]),n.onChange=n._onChange.event,n._onKeyDown=n._register(new W["a"]),n.onKeyDown=n._onKeyDown.event,n._opts=z["c"](t),z["g"](n._opts,q,!1),n._checked=n._opts.isChecked,n.domNode=document.createElement("div"),n.domNode.title=n._opts.title,n.domNode.className="monaco-custom-checkbox codicon "+(n._opts.actionClassName||"")+" "+(n._checked?"checked":"unchecked"),n.domNode.tabIndex=0,n.domNode.setAttribute("role","checkbox"),n.domNode.setAttribute("aria-checked",String(n._checked)),n.domNode.setAttribute("aria-label",n._opts.title),n.applyStyles(),n.onclick(n.domNode,(function(e){n.checked=!n._checked,n._onChange.fire(!1),e.preventDefault()})),n.ignoreGesture(n.domNode),n.onkeydown(n.domNode,(function(e){if(10===e.keyCode||3===e.keyCode)return n.checked=!n._checked,n._onChange.fire(!0),void e.preventDefault();n._onKeyDown.fire(e)})),n}return K(t,e),Object.defineProperty(t.prototype,"enabled",{get:function(){return"true"!==this.domNode.getAttribute("aria-disabled")},enumerable:!0,configurable:!0}),t.prototype.focus=function(){this.domNode.focus()},Object.defineProperty(t.prototype,"checked",{get:function(){return this._checked},set:function(e){this._checked=e,this.domNode.setAttribute("aria-checked",String(this._checked)),this._checked?this.domNode.classList.add("checked"):this.domNode.classList.remove("checked"),this.applyStyles()},enumerable:!0,configurable:!0}),t.prototype.width=function(){return 22},t.prototype.style=function(e){e.inputActiveOptionBorder&&(this._opts.inputActiveOptionBorder=e.inputActiveOptionBorder),e.inputActiveOptionBackground&&(this._opts.inputActiveOptionBackground=e.inputActiveOptionBackground),this.applyStyles()},t.prototype.applyStyles=function(){this.domNode&&(this.domNode.style.borderColor=this._checked&&this._opts.inputActiveOptionBorder?this._opts.inputActiveOptionBorder.toString():"transparent",this.domNode.style.backgroundColor=this._checked&&this._opts.inputActiveOptionBackground?this._opts.inputActiveOptionBackground.toString():"transparent")},t.prototype.enable=function(){this.domNode.tabIndex=0,this.domNode.setAttribute("aria-disabled",String(!1))},t.prototype.disable=function(){j["R"](this.domNode),this.domNode.setAttribute("aria-disabled",String(!0))},t}(Q["a"]),X=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Y=i["a"]("caseDescription","Match Case"),J=i["a"]("wordsDescription","Match Whole Word"),Z=i["a"]("regexDescription","Use Regular Expression"),$=function(e){function t(t){return e.call(this,{actionClassName:"codicon-case-sensitive",title:Y+t.appendTitle,isChecked:t.isChecked,inputActiveOptionBorder:t.inputActiveOptionBorder,inputActiveOptionBackground:t.inputActiveOptionBackground})||this}return X(t,e),t}(G),ee=function(e){function t(t){return e.call(this,{actionClassName:"codicon-whole-word",title:J+t.appendTitle,isChecked:t.isChecked,inputActiveOptionBorder:t.inputActiveOptionBorder,inputActiveOptionBackground:t.inputActiveOptionBackground})||this}return X(t,e),t}(G),te=function(e){function t(t){return e.call(this,{actionClassName:"codicon-regex",title:Z+t.appendTitle,isChecked:t.isChecked,inputActiveOptionBorder:t.inputActiveOptionBorder,inputActiveOptionBackground:t.inputActiveOptionBackground})||this}return X(t,e),t}(G),ne=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),ie=function(e){function t(t,n,i,o){var s=e.call(this)||this;s._hideSoon=s._register(new r["d"]((function(){return s._hide()}),2e3)),s._isVisible=!1,s._editor=t,s._state=n,s._keybindingService=i,s._domNode=document.createElement("div"),s._domNode.className="findOptionsWidget",s._domNode.style.display="none",s._domNode.style.top="10px",s._domNode.setAttribute("role","presentation"),s._domNode.setAttribute("aria-hidden","true");var a=o.getTheme().getColor(A["X"]),u=o.getTheme().getColor(A["W"]);return s.caseSensitive=s._register(new $({appendTitle:s._keybindingLabelFor(R.ToggleCaseSensitiveCommand),isChecked:s._state.matchCase,inputActiveOptionBorder:a,inputActiveOptionBackground:u})),s._domNode.appendChild(s.caseSensitive.domNode),s._register(s.caseSensitive.onChange((function(){s._state.change({matchCase:s.caseSensitive.checked},!1)}))),s.wholeWords=s._register(new ee({appendTitle:s._keybindingLabelFor(R.ToggleWholeWordCommand),isChecked:s._state.wholeWord,inputActiveOptionBorder:a,inputActiveOptionBackground:u})),s._domNode.appendChild(s.wholeWords.domNode),s._register(s.wholeWords.onChange((function(){s._state.change({wholeWord:s.wholeWords.checked},!1)}))),s.regex=s._register(new te({appendTitle:s._keybindingLabelFor(R.ToggleRegexCommand),isChecked:s._state.isRegex,inputActiveOptionBorder:a,inputActiveOptionBackground:u})),s._domNode.appendChild(s.regex.domNode),s._register(s.regex.onChange((function(){s._state.change({isRegex:s.regex.checked},!1)}))),s._editor.addOverlayWidget(s),s._register(s._state.onFindReplaceStateChange((function(e){var t=!1;e.isRegex&&(s.regex.checked=s._state.isRegex,t=!0),e.wholeWord&&(s.wholeWords.checked=s._state.wholeWord,t=!0),e.matchCase&&(s.caseSensitive.checked=s._state.matchCase,t=!0),!s._state.isRevealed&&t&&s._revealTemporarily()}))),s._register(j["j"](s._domNode,(function(e){return s._onMouseOut()}))),s._register(j["i"](s._domNode,"mouseover",(function(e){return s._onMouseOver()}))),s._applyTheme(o.getTheme()),s._register(o.onThemeChange(s._applyTheme.bind(s))),s}return ne(t,e),t.prototype._keybindingLabelFor=function(e){var t=this._keybindingService.lookupKeybinding(e);return t?" ("+t.getLabel()+")":""},t.prototype.dispose=function(){this._editor.removeOverlayWidget(this),e.prototype.dispose.call(this)},t.prototype.getId=function(){return t.ID},t.prototype.getDomNode=function(){return this._domNode},t.prototype.getPosition=function(){return{preference:0}},t.prototype.highlightFindOptions=function(){this._revealTemporarily()},t.prototype._revealTemporarily=function(){this._show(),this._hideSoon.schedule()},t.prototype._onMouseOut=function(){this._hideSoon.schedule()},t.prototype._onMouseOver=function(){this._hideSoon.cancel()},t.prototype._show=function(){this._isVisible||(this._isVisible=!0,this._domNode.style.display="block")},t.prototype._hide=function(){this._isVisible&&(this._isVisible=!1,this._domNode.style.display="none")},t.prototype._applyTheme=function(e){var t={inputActiveOptionBorder:e.getColor(A["X"]),inputActiveOptionBackground:e.getColor(A["W"])};this.caseSensitive.style(t),this.wholeWords.style(t),this.regex.style(t)},t.ID="editor.contrib.findOptionsWidget",t}(Q["a"]);Object(m["e"])((function(e,t){var n=e.getColor(A["P"]);n&&t.addRule(".monaco-editor .findOptionsWidget { background-color: "+n+"; }");var i=e.getColor(A["R"]);i&&t.addRule(".monaco-editor .findOptionsWidget { color: "+i+"; }");var r=e.getColor(A["fc"]);r&&t.addRule(".monaco-editor .findOptionsWidget { box-shadow: 0 2px 8px "+r+"; }");var o=e.getColor(A["e"]);o&&t.addRule(".monaco-editor .findOptionsWidget { border: 2px solid "+o+"; }")}));var re=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();function oe(e,t){return 1===e||2!==e&&t}var se=function(e){function t(){var t=e.call(this)||this;return t._onFindReplaceStateChange=t._register(new W["a"]),t.onFindReplaceStateChange=t._onFindReplaceStateChange.event,t._searchString="",t._replaceString="",t._isRevealed=!1,t._isReplaceRevealed=!1,t._isRegex=!1,t._isRegexOverride=0,t._wholeWord=!1,t._wholeWordOverride=0,t._matchCase=!1,t._matchCaseOverride=0,t._preserveCase=!1,t._preserveCaseOverride=0,t._searchScope=null,t._matchesPosition=0,t._matchesCount=0,t._currentMatch=null,t}return re(t,e),Object.defineProperty(t.prototype,"searchString",{get:function(){return this._searchString},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"replaceString",{get:function(){return this._replaceString},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isRevealed",{get:function(){return this._isRevealed},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isReplaceRevealed",{get:function(){return this._isReplaceRevealed},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isRegex",{get:function(){return oe(this._isRegexOverride,this._isRegex)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"wholeWord",{get:function(){return oe(this._wholeWordOverride,this._wholeWord)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"matchCase",{get:function(){return oe(this._matchCaseOverride,this._matchCase)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"preserveCase",{get:function(){return oe(this._preserveCaseOverride,this._preserveCase)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"actualIsRegex",{get:function(){return this._isRegex},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"actualWholeWord",{get:function(){return this._wholeWord},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"actualMatchCase",{get:function(){return this._matchCase},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"actualPreserveCase",{get:function(){return this._preserveCase},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"searchScope",{get:function(){return this._searchScope},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"matchesPosition",{get:function(){return this._matchesPosition},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"matchesCount",{get:function(){return this._matchesCount},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentMatch",{get:function(){return this._currentMatch},enumerable:!0,configurable:!0}),t.prototype.changeMatchInfo=function(e,t,n){var i={moveCursor:!1,updateHistory:!1,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1},r=!1;0===t&&(e=0),e>t&&(e=t),this._matchesPosition!==e&&(this._matchesPosition=e,i.matchesPosition=!0,r=!0),this._matchesCount!==t&&(this._matchesCount=t,i.matchesCount=!0,r=!0),"undefined"!==typeof n&&(d["a"].equalsRange(this._currentMatch,n)||(this._currentMatch=n,i.currentMatch=!0,r=!0)),r&&this._onFindReplaceStateChange.fire(i)},t.prototype.change=function(e,t,n){void 0===n&&(n=!0);var i={moveCursor:t,updateHistory:n,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1},r=!1,o=this.isRegex,s=this.wholeWord,a=this.matchCase,u=this.preserveCase;"undefined"!==typeof e.searchString&&this._searchString!==e.searchString&&(this._searchString=e.searchString,i.searchString=!0,r=!0),"undefined"!==typeof e.replaceString&&this._replaceString!==e.replaceString&&(this._replaceString=e.replaceString,i.replaceString=!0,r=!0),"undefined"!==typeof e.isRevealed&&this._isRevealed!==e.isRevealed&&(this._isRevealed=e.isRevealed,i.isRevealed=!0,r=!0),"undefined"!==typeof e.isReplaceRevealed&&this._isReplaceRevealed!==e.isReplaceRevealed&&(this._isReplaceRevealed=e.isReplaceRevealed,i.isReplaceRevealed=!0,r=!0),"undefined"!==typeof e.isRegex&&(this._isRegex=e.isRegex),"undefined"!==typeof e.wholeWord&&(this._wholeWord=e.wholeWord),"undefined"!==typeof e.matchCase&&(this._matchCase=e.matchCase),"undefined"!==typeof e.preserveCase&&(this._preserveCase=e.preserveCase),"undefined"!==typeof e.searchScope&&(d["a"].equalsRange(this._searchScope,e.searchScope)||(this._searchScope=e.searchScope,i.searchScope=!0,r=!0)),this._isRegexOverride="undefined"!==typeof e.isRegexOverride?e.isRegexOverride:0,this._wholeWordOverride="undefined"!==typeof e.wholeWordOverride?e.wholeWordOverride:0,this._matchCaseOverride="undefined"!==typeof e.matchCaseOverride?e.matchCaseOverride:0,this._preserveCaseOverride="undefined"!==typeof e.preserveCaseOverride?e.preserveCaseOverride:0,o!==this.isRegex&&(r=!0,i.isRegex=!0),s!==this.wholeWord&&(r=!0,i.wholeWord=!0),a!==this.matchCase&&(r=!0,i.matchCase=!0),u!==this.preserveCase&&(r=!0,i.preserveCase=!0),r&&this._onFindReplaceStateChange.fire(i)},t}(o["a"]),ae=(n("AbCa"),n("OBOq")),ue=n("cMOf"),le=n("/cxE"),ce=n("MNsG"),de=(n("yqFB"),n("i/Rh"),n("D3Dy")),he=n("Md8J"),fe=n("WqXY"),pe=n("JYp7"),ge=function(){function e(e,t){void 0===e&&(e=[]),void 0===t&&(t=10),this._initialize(e),this._limit=t,this._onChange()}return e.prototype.add=function(e){this._history.delete(e),this._history.add(e),this._onChange()},e.prototype.next=function(){return this._navigator.next()},e.prototype.previous=function(){return this._navigator.previous()},e.prototype.current=function(){return this._navigator.current()},e.prototype.parent=function(){return null},e.prototype.first=function(){return this._navigator.first()},e.prototype.last=function(){return this._navigator.last()},e.prototype.has=function(e){return this._history.has(e)},e.prototype._onChange=function(){this._reduceToLimit();var e=this._elements;this._navigator=new pe["a"](e,0,e.length,e.length)},e.prototype._reduceToLimit=function(){var e=this._elements;e.length>this._limit&&this._initialize(e.slice(e.length-this._limit))},e.prototype._initialize=function(e){this._history=new Set;for(var t=0,n=e;t<n.length;t++){var i=n[t];this._history.add(i)}},Object.defineProperty(e.prototype,"_elements",{get:function(){var e=[];return this._history.forEach((function(t){return e.push(t)})),e},enumerable:!0,configurable:!0}),e}(),Ae=n("GJhM"),me=n("4y0V"),ve=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),_e=j["a"],ye={inputBackground:V["a"].fromHex("#3C3C3C"),inputForeground:V["a"].fromHex("#CCCCCC"),inputValidationInfoBorder:V["a"].fromHex("#55AAFF"),inputValidationInfoBackground:V["a"].fromHex("#063B49"),inputValidationWarningBorder:V["a"].fromHex("#B89500"),inputValidationWarningBackground:V["a"].fromHex("#352A05"),inputValidationErrorBorder:V["a"].fromHex("#BE1100"),inputValidationErrorBackground:V["a"].fromHex("#5A1D1D")},be=function(e){function t(t,n,i){var r=e.call(this)||this;r.state="idle",r.maxHeight=Number.POSITIVE_INFINITY,r._onDidChange=r._register(new W["a"]),r.onDidChange=r._onDidChange.event,r._onDidHeightChange=r._register(new W["a"]),r.onDidHeightChange=r._onDidHeightChange.event,r.contextViewProvider=n,r.options=i||Object.create(null),Object(z["g"])(r.options,ye,!1),r.message=null,r.placeholder=r.options.placeholder||"",r.ariaLabel=r.options.ariaLabel||"",r.inputBackground=r.options.inputBackground,r.inputForeground=r.options.inputForeground,r.inputBorder=r.options.inputBorder,r.inputValidationInfoBorder=r.options.inputValidationInfoBorder,r.inputValidationInfoBackground=r.options.inputValidationInfoBackground,r.inputValidationInfoForeground=r.options.inputValidationInfoForeground,r.inputValidationWarningBorder=r.options.inputValidationWarningBorder,r.inputValidationWarningBackground=r.options.inputValidationWarningBackground,r.inputValidationWarningForeground=r.options.inputValidationWarningForeground,r.inputValidationErrorBorder=r.options.inputValidationErrorBorder,r.inputValidationErrorBackground=r.options.inputValidationErrorBackground,r.inputValidationErrorForeground=r.options.inputValidationErrorForeground,r.options.validationOptions&&(r.validation=r.options.validationOptions.validation),r.element=j["p"](t,_e(".monaco-inputbox.idle"));var o=r.options.flexibleHeight?"textarea":"input",s=j["p"](r.element,_e(".wrapper"));if(r.input=j["p"](s,_e(o+".input.empty")),r.input.setAttribute("autocorrect","off"),r.input.setAttribute("autocapitalize","off"),r.input.setAttribute("spellcheck","false"),r.onfocus(r.input,(function(){return j["e"](r.element,"synthetic-focus")})),r.onblur(r.input,(function(){return j["O"](r.element,"synthetic-focus")})),r.options.flexibleHeight){r.maxHeight="number"===typeof r.options.flexibleMaxHeight?r.options.flexibleMaxHeight:Number.POSITIVE_INFINITY,r.mirror=j["p"](s,_e("div.mirror")),r.mirror.innerHTML=" ",r.scrollableElement=new Ae["b"](r.element,{vertical:1}),r.options.flexibleWidth&&(r.input.setAttribute("wrap","off"),r.mirror.style.whiteSpace="pre",r.mirror.style.wordWrap="initial"),j["p"](t,r.scrollableElement.getDomNode()),r._register(r.scrollableElement),r._register(r.scrollableElement.onScroll((function(e){return r.input.scrollTop=e.scrollTop})));var a=W["b"].filter(Object(me["a"])(document,"selectionchange"),(function(){var e=document.getSelection();return(null===e||void 0===e?void 0:e.anchorNode)===s}));r._register(a(r.updateScrollDimensions,r)),r._register(r.onDidHeightChange(r.updateScrollDimensions,r))}else r.input.type=r.options.type||"text",r.input.setAttribute("wrap","off");return r.ariaLabel&&r.input.setAttribute("aria-label",r.ariaLabel),r.placeholder&&r.setPlaceHolder(r.placeholder),r.oninput(r.input,(function(){return r.onValueChange()})),r.onblur(r.input,(function(){return r.onBlur()})),r.onfocus(r.input,(function(){return r.onFocus()})),r.placeholder&&de["i"]&&r.onclick(r.input,(function(e){j["b"].stop(e,!0),r.input.focus()})),r.ignoreGesture(r.input),setTimeout((function(){return r.updateMirror()}),0),r.options.actions&&(r.actionbar=r._register(new fe["a"](r.element)),r.actionbar.push(r.options.actions,{icon:!0,label:!1})),r.applyStyles(),r}return ve(t,e),t.prototype.onBlur=function(){this._hideMessage()},t.prototype.onFocus=function(){this._showMessage()},t.prototype.setPlaceHolder=function(e){this.placeholder=e,this.input.setAttribute("placeholder",e),this.input.title=e},t.prototype.setAriaLabel=function(e){this.ariaLabel=e,e?this.input.setAttribute("aria-label",this.ariaLabel):this.input.removeAttribute("aria-label")},Object.defineProperty(t.prototype,"inputElement",{get:function(){return this.input},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.input.value},set:function(e){this.input.value!==e&&(this.input.value=e,this.onValueChange())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return"number"===typeof this.cachedHeight?this.cachedHeight:j["F"](this.element)},enumerable:!0,configurable:!0}),t.prototype.focus=function(){this.input.focus()},t.prototype.blur=function(){this.input.blur()},t.prototype.hasFocus=function(){return document.activeElement===this.input},t.prototype.select=function(e){void 0===e&&(e=null),this.input.select(),e&&this.input.setSelectionRange(e.start,e.end)},t.prototype.enable=function(){this.input.removeAttribute("disabled")},t.prototype.disable=function(){this.blur(),this.input.disabled=!0,this._hideMessage()},Object.defineProperty(t.prototype,"width",{get:function(){return j["G"](this.input)},set:function(e){if(this.options.flexibleHeight&&this.options.flexibleWidth){var t=0;if(this.mirror){var n=parseFloat(this.mirror.style.paddingLeft||"")||0,i=parseFloat(this.mirror.style.paddingRight||"")||0;t=n+i}this.input.style.width=e-t+"px"}else this.input.style.width=e+"px";this.mirror&&(this.mirror.style.width=e+"px")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paddingRight",{set:function(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")},enumerable:!0,configurable:!0}),t.prototype.updateScrollDimensions=function(){if("number"===typeof this.cachedContentHeight&&"number"===typeof this.cachedHeight&&this.scrollableElement){var e=this.cachedContentHeight,t=this.cachedHeight,n=this.input.scrollTop;this.scrollableElement.setScrollDimensions({scrollHeight:e,height:t}),this.scrollableElement.setScrollPosition({scrollTop:n})}},t.prototype.showMessage=function(e,t){this.message=e,j["O"](this.element,"idle"),j["O"](this.element,"info"),j["O"](this.element,"warning"),j["O"](this.element,"error"),j["e"](this.element,this.classForType(e.type));var n,r=this.stylesForType(this.message.type);this.element.style.border=r.border?"1px solid "+r.border:"",n=3===e.type?i["a"]("alertErrorMessage","Error: {0}",e.content):2===e.type?i["a"]("alertWarningMessage","Warning: {0}",e.content):i["a"]("alertInfoMessage","Info: {0}",e.content),ae["a"](n),(this.hasFocus()||t)&&this._showMessage()},t.prototype.hideMessage=function(){this.message=null,j["O"](this.element,"info"),j["O"](this.element,"warning"),j["O"](this.element,"error"),j["e"](this.element,"idle"),this._hideMessage(),this.applyStyles()},t.prototype.validate=function(){var 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())),!e},t.prototype.stylesForType=function(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}}},t.prototype.classForType=function(e){switch(e){case 1:return"info";case 2:return"warning";default:return"error"}},t.prototype._showMessage=function(){var e=this;if(this.contextViewProvider&&this.message){var t,n=function(){return t.style.width=j["G"](e.element)+"px"};this.contextViewProvider.showContextView({getAnchor:function(){return e.element},anchorAlignment:1,render:function(i){if(!e.message)return null;t=j["p"](i,_e(".monaco-inputbox-container")),n();var r={inline:!0,className:"monaco-inputbox-message"},o=e.message.formatContent?Object(he["b"])(e.message.content,r):Object(he["c"])(e.message.content,r);j["e"](o,e.classForType(e.message.type));var s=e.stylesForType(e.message.type);return o.style.backgroundColor=s.background?s.background.toString():"",o.style.color=s.foreground?s.foreground.toString():"",o.style.border=s.border?"1px solid "+s.border:"",j["p"](t,o),null},onHide:function(){e.state="closed"},layout:n}),this.state="open"}},t.prototype._hideMessage=function(){this.contextViewProvider&&("open"===this.state&&this.contextViewProvider.hideContextView(),this.state="idle")},t.prototype.onValueChange=function(){this._onDidChange.fire(this.value),this.validate(),this.updateMirror(),j["X"](this.input,"empty",!this.value),"open"===this.state&&this.contextViewProvider&&this.contextViewProvider.layout()},t.prototype.updateMirror=function(){if(this.mirror){var e=this.value,t=e.charCodeAt(e.length-1),n=10===t?" ":"",i=e+n;i?this.mirror.textContent=e+n:this.mirror.innerHTML=" ",this.layout()}},t.prototype.style=function(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()},t.prototype.applyStyles=function(){var e=this.inputBackground?this.inputBackground.toString():"",t=this.inputForeground?this.inputForeground.toString():"",n=this.inputBorder?this.inputBorder.toString():"";this.element.style.backgroundColor=e,this.element.style.color=t,this.input.style.backgroundColor=e,this.input.style.color=t,this.element.style.borderWidth=n?"1px":"",this.element.style.borderStyle=n?"solid":"",this.element.style.borderColor=n},t.prototype.layout=function(){if(this.mirror){var e=this.cachedContentHeight;this.cachedContentHeight=j["F"](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))}},t.prototype.insertAtCursor=function(e){var t=this.inputElement,n=t.selectionStart,i=t.selectionEnd,r=t.value;null!==n&&null!==i&&(this.value=r.substr(0,n)+e+r.substr(i),t.setSelectionRange(n+1,n+1),this.layout())},t.prototype.dispose=function(){this._hideMessage(),this.message=null,this.actionbar&&this.actionbar.dispose(),e.prototype.dispose.call(this)},t}(Q["a"]),we=function(e){function t(t,n,i){var r=e.call(this,t,n,i)||this;return r.history=new ge(i.history,100),r}return ve(t,e),t.prototype.addToHistory=function(){this.value&&this.value!==this.getCurrentValue()&&this.history.add(this.value)},t.prototype.showNextValue=function(){this.history.has(this.value)||this.addToHistory();var e=this.getNextValue();e&&(e=e===this.value?this.getNextValue():e),e&&(this.value=e,ae["c"](this.value))},t.prototype.showPreviousValue=function(){this.history.has(this.value)||this.addToHistory();var e=this.getPreviousValue();e&&(e=e===this.value?this.getPreviousValue():e),e&&(this.value=e,ae["c"](this.value))},t.prototype.getCurrentValue=function(){var e=this.history.current();return e||(e=this.history.last(),this.history.next()),e},t.prototype.getPreviousValue=function(){return this.history.previous()||this.history.first()},t.prototype.getNextValue=function(){return this.history.next()||this.history.last()},t}(be),Ce=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Se=i["a"]("defaultLabel","input"),Ne=function(e){function t(t,n,i,r){var o=e.call(this)||this;o._showOptionButtons=i,o.fixFocusOnOptionClickEnabled=!0,o._onDidOptionChange=o._register(new W["a"]),o.onDidOptionChange=o._onDidOptionChange.event,o._onKeyDown=o._register(new W["a"]),o.onKeyDown=o._onKeyDown.event,o._onMouseDown=o._register(new W["a"]),o.onMouseDown=o._onMouseDown.event,o._onInput=o._register(new W["a"]),o._onKeyUp=o._register(new W["a"]),o._onCaseSensitiveKeyDown=o._register(new W["a"]),o.onCaseSensitiveKeyDown=o._onCaseSensitiveKeyDown.event,o._onRegexKeyDown=o._register(new W["a"]),o.onRegexKeyDown=o._onRegexKeyDown.event,o._lastHighlightFindOptions=0,o.contextViewProvider=n,o.placeholder=r.placeholder||"",o.validation=r.validation,o.label=r.label||Se,o.inputActiveOptionBorder=r.inputActiveOptionBorder,o.inputActiveOptionBackground=r.inputActiveOptionBackground,o.inputBackground=r.inputBackground,o.inputForeground=r.inputForeground,o.inputBorder=r.inputBorder,o.inputValidationInfoBorder=r.inputValidationInfoBorder,o.inputValidationInfoBackground=r.inputValidationInfoBackground,o.inputValidationInfoForeground=r.inputValidationInfoForeground,o.inputValidationWarningBorder=r.inputValidationWarningBorder,o.inputValidationWarningBackground=r.inputValidationWarningBackground,o.inputValidationWarningForeground=r.inputValidationWarningForeground,o.inputValidationErrorBorder=r.inputValidationErrorBorder,o.inputValidationErrorBackground=r.inputValidationErrorBackground,o.inputValidationErrorForeground=r.inputValidationErrorForeground;var s=r.appendCaseSensitiveLabel||"",a=r.appendWholeWordsLabel||"",u=r.appendRegexLabel||"",l=r.history||[],c=!!r.flexibleHeight,d=!!r.flexibleWidth,h=r.flexibleMaxHeight;o.domNode=document.createElement("div"),j["e"](o.domNode,"monaco-findInput"),o.inputBox=o._register(new we(o.domNode,o.contextViewProvider,{placeholder:o.placeholder||"",ariaLabel:o.label||"",validationOptions:{validation:o.validation},inputBackground:o.inputBackground,inputForeground:o.inputForeground,inputBorder:o.inputBorder,inputValidationInfoBackground:o.inputValidationInfoBackground,inputValidationInfoForeground:o.inputValidationInfoForeground,inputValidationInfoBorder:o.inputValidationInfoBorder,inputValidationWarningBackground:o.inputValidationWarningBackground,inputValidationWarningForeground:o.inputValidationWarningForeground,inputValidationWarningBorder:o.inputValidationWarningBorder,inputValidationErrorBackground:o.inputValidationErrorBackground,inputValidationErrorForeground:o.inputValidationErrorForeground,inputValidationErrorBorder:o.inputValidationErrorBorder,history:l,flexibleHeight:c,flexibleWidth:d,flexibleMaxHeight:h})),o.regex=o._register(new te({appendTitle:u,isChecked:!1,inputActiveOptionBorder:o.inputActiveOptionBorder,inputActiveOptionBackground:o.inputActiveOptionBackground})),o._register(o.regex.onChange((function(e){o._onDidOptionChange.fire(e),!e&&o.fixFocusOnOptionClickEnabled&&o.inputBox.focus(),o.validate()}))),o._register(o.regex.onKeyDown((function(e){o._onRegexKeyDown.fire(e)}))),o.wholeWords=o._register(new ee({appendTitle:a,isChecked:!1,inputActiveOptionBorder:o.inputActiveOptionBorder,inputActiveOptionBackground:o.inputActiveOptionBackground})),o._register(o.wholeWords.onChange((function(e){o._onDidOptionChange.fire(e),!e&&o.fixFocusOnOptionClickEnabled&&o.inputBox.focus(),o.validate()}))),o.caseSensitive=o._register(new $({appendTitle:s,isChecked:!1,inputActiveOptionBorder:o.inputActiveOptionBorder,inputActiveOptionBackground:o.inputActiveOptionBackground})),o._register(o.caseSensitive.onChange((function(e){o._onDidOptionChange.fire(e),!e&&o.fixFocusOnOptionClickEnabled&&o.inputBox.focus(),o.validate()}))),o._register(o.caseSensitive.onKeyDown((function(e){o._onCaseSensitiveKeyDown.fire(e)}))),o._showOptionButtons&&(o.inputBox.paddingRight=o.caseSensitive.width()+o.wholeWords.width()+o.regex.width());var f=[o.caseSensitive.domNode,o.wholeWords.domNode,o.regex.domNode];o.onkeydown(o.domNode,(function(e){if(e.equals(15)||e.equals(17)||e.equals(9)){var t=f.indexOf(document.activeElement);if(t>=0){var n=-1;e.equals(17)?n=(t+1)%f.length:e.equals(15)&&(n=0===t?f.length-1:t-1),e.equals(9)?f[t].blur():n>=0&&f[n].focus(),j["b"].stop(e,!0)}}}));var p=document.createElement("div");return p.className="controls",p.style.display=o._showOptionButtons?"block":"none",p.appendChild(o.caseSensitive.domNode),p.appendChild(o.wholeWords.domNode),p.appendChild(o.regex.domNode),o.domNode.appendChild(p),t&&t.appendChild(o.domNode),o.onkeydown(o.inputBox.inputElement,(function(e){return o._onKeyDown.fire(e)})),o.onkeyup(o.inputBox.inputElement,(function(e){return o._onKeyUp.fire(e)})),o.oninput(o.inputBox.inputElement,(function(e){return o._onInput.fire()})),o.onmousedown(o.inputBox.inputElement,(function(e){return o._onMouseDown.fire(e)})),o}return Ce(t,e),t.prototype.enable=function(){j["O"](this.domNode,"disabled"),this.inputBox.enable(),this.regex.enable(),this.wholeWords.enable(),this.caseSensitive.enable()},t.prototype.disable=function(){j["e"](this.domNode,"disabled"),this.inputBox.disable(),this.regex.disable(),this.wholeWords.disable(),this.caseSensitive.disable()},t.prototype.setFocusInputOnOptionClick=function(e){this.fixFocusOnOptionClickEnabled=e},t.prototype.setEnabled=function(e){e?this.enable():this.disable()},t.prototype.getValue=function(){return this.inputBox.value},t.prototype.setValue=function(e){this.inputBox.value!==e&&(this.inputBox.value=e)},t.prototype.style=function(e){this.inputActiveOptionBorder=e.inputActiveOptionBorder,this.inputActiveOptionBackground=e.inputActiveOptionBackground,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()},t.prototype.applyStyles=function(){if(this.domNode){var e={inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionBackground:this.inputActiveOptionBackground};this.regex.style(e),this.wholeWords.style(e),this.caseSensitive.style(e);var t={inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder};this.inputBox.style(t)}},t.prototype.select=function(){this.inputBox.select()},t.prototype.focus=function(){this.inputBox.focus()},t.prototype.getCaseSensitive=function(){return this.caseSensitive.checked},t.prototype.setCaseSensitive=function(e){this.caseSensitive.checked=e},t.prototype.getWholeWords=function(){return this.wholeWords.checked},t.prototype.setWholeWords=function(e){this.wholeWords.checked=e},t.prototype.getRegex=function(){return this.regex.checked},t.prototype.setRegex=function(e){this.regex.checked=e,this.validate()},t.prototype.focusOnCaseSensitive=function(){this.caseSensitive.focus()},t.prototype.highlightFindOptions=function(){j["O"](this.domNode,"highlight-"+this._lastHighlightFindOptions),this._lastHighlightFindOptions=1-this._lastHighlightFindOptions,j["e"](this.domNode,"highlight-"+this._lastHighlightFindOptions)},t.prototype.validate=function(){this.inputBox.validate()},t.prototype.clearMessage=function(){this.inputBox.hideMessage()},t}(Q["a"]),Le=n("nrhi"),Ee=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),xe=i["a"]("defaultLabel","input"),Oe=i["a"]("label.preserveCaseCheckbox","Preserve Case"),Be=function(e){function t(t){return e.call(this,{actionClassName:"codicon-preserve-case",title:Oe+t.appendTitle,isChecked:t.isChecked,inputActiveOptionBorder:t.inputActiveOptionBorder,inputActiveOptionBackground:t.inputActiveOptionBackground})||this}return Ee(t,e),t}(G),ke=function(e){function t(t,n,i,r){var o=e.call(this)||this;o._showOptionButtons=i,o.fixFocusOnOptionClickEnabled=!0,o.cachedOptionsWidth=0,o._onDidOptionChange=o._register(new W["a"]),o.onDidOptionChange=o._onDidOptionChange.event,o._onKeyDown=o._register(new W["a"]),o.onKeyDown=o._onKeyDown.event,o._onMouseDown=o._register(new W["a"]),o._onInput=o._register(new W["a"]),o._onKeyUp=o._register(new W["a"]),o._onPreserveCaseKeyDown=o._register(new W["a"]),o.onPreserveCaseKeyDown=o._onPreserveCaseKeyDown.event,o.contextViewProvider=n,o.placeholder=r.placeholder||"",o.validation=r.validation,o.label=r.label||xe,o.inputActiveOptionBorder=r.inputActiveOptionBorder,o.inputActiveOptionBackground=r.inputActiveOptionBackground,o.inputBackground=r.inputBackground,o.inputForeground=r.inputForeground,o.inputBorder=r.inputBorder,o.inputValidationInfoBorder=r.inputValidationInfoBorder,o.inputValidationInfoBackground=r.inputValidationInfoBackground,o.inputValidationInfoForeground=r.inputValidationInfoForeground,o.inputValidationWarningBorder=r.inputValidationWarningBorder,o.inputValidationWarningBackground=r.inputValidationWarningBackground,o.inputValidationWarningForeground=r.inputValidationWarningForeground,o.inputValidationErrorBorder=r.inputValidationErrorBorder,o.inputValidationErrorBackground=r.inputValidationErrorBackground,o.inputValidationErrorForeground=r.inputValidationErrorForeground;var s=r.history||[],a=!!r.flexibleHeight,u=!!r.flexibleWidth,l=r.flexibleMaxHeight;o.domNode=document.createElement("div"),j["e"](o.domNode,"monaco-findInput"),o.inputBox=o._register(new we(o.domNode,o.contextViewProvider,{ariaLabel:o.label||"",placeholder:o.placeholder||"",validationOptions:{validation:o.validation},inputBackground:o.inputBackground,inputForeground:o.inputForeground,inputBorder:o.inputBorder,inputValidationInfoBackground:o.inputValidationInfoBackground,inputValidationInfoForeground:o.inputValidationInfoForeground,inputValidationInfoBorder:o.inputValidationInfoBorder,inputValidationWarningBackground:o.inputValidationWarningBackground,inputValidationWarningForeground:o.inputValidationWarningForeground,inputValidationWarningBorder:o.inputValidationWarningBorder,inputValidationErrorBackground:o.inputValidationErrorBackground,inputValidationErrorForeground:o.inputValidationErrorForeground,inputValidationErrorBorder:o.inputValidationErrorBorder,history:s,flexibleHeight:a,flexibleWidth:u,flexibleMaxHeight:l})),o.preserveCase=o._register(new Be({appendTitle:"",isChecked:!1,inputActiveOptionBorder:o.inputActiveOptionBorder,inputActiveOptionBackground:o.inputActiveOptionBackground})),o._register(o.preserveCase.onChange((function(e){o._onDidOptionChange.fire(e),!e&&o.fixFocusOnOptionClickEnabled&&o.inputBox.focus(),o.validate()}))),o._register(o.preserveCase.onKeyDown((function(e){o._onPreserveCaseKeyDown.fire(e)}))),o._showOptionButtons?o.cachedOptionsWidth=o.preserveCase.width():o.cachedOptionsWidth=0;var c=[o.preserveCase.domNode];o.onkeydown(o.domNode,(function(e){if(e.equals(15)||e.equals(17)||e.equals(9)){var t=c.indexOf(document.activeElement);if(t>=0){var n=-1;e.equals(17)?n=(t+1)%c.length:e.equals(15)&&(n=0===t?c.length-1:t-1),e.equals(9)?c[t].blur():n>=0&&c[n].focus(),j["b"].stop(e,!0)}}}));var d=document.createElement("div");return d.className="controls",d.style.display=o._showOptionButtons?"block":"none",d.appendChild(o.preserveCase.domNode),o.domNode.appendChild(d),t&&t.appendChild(o.domNode),o.onkeydown(o.inputBox.inputElement,(function(e){return o._onKeyDown.fire(e)})),o.onkeyup(o.inputBox.inputElement,(function(e){return o._onKeyUp.fire(e)})),o.oninput(o.inputBox.inputElement,(function(e){return o._onInput.fire()})),o.onmousedown(o.inputBox.inputElement,(function(e){return o._onMouseDown.fire(e)})),o}return Ee(t,e),t.prototype.enable=function(){j["O"](this.domNode,"disabled"),this.inputBox.enable(),this.preserveCase.enable()},t.prototype.disable=function(){j["e"](this.domNode,"disabled"),this.inputBox.disable(),this.preserveCase.disable()},t.prototype.setEnabled=function(e){e?this.enable():this.disable()},t.prototype.style=function(e){this.inputActiveOptionBorder=e.inputActiveOptionBorder,this.inputActiveOptionBackground=e.inputActiveOptionBackground,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()},t.prototype.applyStyles=function(){if(this.domNode){var e={inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionBackground:this.inputActiveOptionBackground};this.preserveCase.style(e);var t={inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder};this.inputBox.style(t)}},t.prototype.select=function(){this.inputBox.select()},t.prototype.focus=function(){this.inputBox.focus()},t.prototype.getPreserveCase=function(){return this.preserveCase.checked},t.prototype.setPreserveCase=function(e){this.preserveCase.checked=e},t.prototype.focusOnPreserve=function(){this.preserveCase.focus()},t.prototype.validate=function(){this.inputBox&&this.inputBox.validate()},Object.defineProperty(t.prototype,"width",{set:function(e){this.inputBox.paddingRight=this.cachedOptionsWidth,this.inputBox.width=e,this.domNode.style.width=e+"px"},enumerable:!0,configurable:!0}),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t}(Q["a"]),De=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Ie=function(e,t,n,i){var r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Me=function(e,t){return function(n,i){t(n,i,e)}},Fe="historyNavigationWidget",Te="historyNavigationEnabled";function Re(e,t,n){new O["d"](n,t).bindTo(e)}function Pe(e,t){return e.createScoped(t.target)}function Ue(e,t){return e.getContext(document.activeElement).getValue(t)}function He(e,t){var n=Pe(e,t);Re(n,t,Fe);var i=new O["d"](Te,!0).bindTo(n);return{scopedContextKeyService:n,historyNavigationEnablement:i}}var je=function(e){function t(t,n,i,r,o){void 0===o&&(o=!1);var s=e.call(this,t,n,o,i)||this;return s._register(He(r,{target:s.inputBox.element,historyNavigator:s.inputBox}).scopedContextKeyService),s}return De(t,e),t=Ie([Me(3,O["c"])],t),t}(Ne),Qe=function(e){function t(t,n,i,r,o){void 0===o&&(o=!1);var s=e.call(this,t,n,o,i)||this;return s._register(He(r,{target:s.inputBox.element,historyNavigator:s.inputBox}).scopedContextKeyService),s}return De(t,e),t=Ie([Me(3,O["c"])],t),t}(ke);Le["a"].registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:O["a"].and(O["a"].has(Fe),O["a"].equals(Te,!0)),primary:16,secondary:[528],handler:function(e,t){var n=Ue(e.get(O["c"]),Fe);if(n){var i=n.historyNavigator;i.showPreviousValue()}}}),Le["a"].registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:O["a"].and(O["a"].has(Fe),O["a"].equals(Te,!0)),primary:18,secondary:[530],handler:function(e,t){var n=Ue(e.get(O["c"]),Fe);if(n){var i=n.historyNavigator;i.showNextValue()}}});var Ve=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),We=i["a"]("label.find","Find"),ze=i["a"]("placeholder.find","Find"),Ke=i["a"]("label.previousMatchButton","Previous match"),qe=i["a"]("label.nextMatchButton","Next match"),Ge=i["a"]("label.toggleSelectionFind","Find in selection"),Xe=i["a"]("label.closeButton","Close"),Ye=i["a"]("label.replace","Replace"),Je=i["a"]("placeholder.replace","Replace"),Ze=i["a"]("label.replaceButton","Replace"),$e=i["a"]("label.replaceAllButton","Replace All"),et=i["a"]("label.toggleReplaceButton","Toggle Replace mode"),tt=i["a"]("title.matchesCountLimit","Only the first {0} results are highlighted, but all find operations work on the entire text.",P),nt=i["a"]("label.matchesLocation","{0} of {1}"),it=i["a"]("label.noResults","No Results"),rt=419,ot=275,st=ot-54,at=69,ut=33,lt="ctrlEnterReplaceAll.windows.donotask",ct=ce["e"]?256:2048,dt=function(){function e(e){this.afterLineNumber=e,this.heightInPx=ut,this.suppressMouseDown=!1,this.domNode=document.createElement("div"),this.domNode.className="dock-find-viewzone"}return e}();function ht(e,t,n){var i=!!t.match(/\n/);n&&i&&n.selectionStart>0&&e.stopPropagation()}function ft(e,t,n){var i=!!t.match(/\n/);n&&i&&n.selectionEnd<n.value.length&&e.stopPropagation()}var pt=function(e){function t(t,n,i,s,a,u,l,c,d){var h=e.call(this)||this;return h._cachedHeight=null,h._codeEditor=t,h._controller=n,h._state=i,h._contextViewProvider=s,h._keybindingService=a,h._contextKeyService=u,h._storageService=c,h._notificationService=d,h._ctrlEnterReplaceAllWarningPrompted=!!c.getBoolean(lt,0),h._isVisible=!1,h._isReplaceVisible=!1,h._ignoreChangeEvent=!1,h._updateHistoryDelayer=new r["a"](500),h._register(Object(o["h"])((function(){return h._updateHistoryDelayer.cancel()}))),h._register(h._state.onFindReplaceStateChange((function(e){return h._onStateChanged(e)}))),h._buildDomNode(),h._updateButtons(),h._tryUpdateWidgetWidth(),h._findInput.inputBox.layout(),h._register(h._codeEditor.onDidChangeConfiguration((function(e){if(e.hasChanged(68)&&(h._codeEditor.getOption(68)&&h._state.change({isReplaceRevealed:!1},!1),h._updateButtons()),e.hasChanged(107)&&h._tryUpdateWidgetWidth(),e.hasChanged(2)&&h.updateAccessibilitySupport(),e.hasChanged(28)){var t=h._codeEditor.getOption(28).addExtraSpaceOnTop;t&&!h._viewZone&&(h._viewZone=new dt(0),h._showViewZone()),!t&&h._viewZone&&h._removeViewZone()}}))),h.updateAccessibilitySupport(),h._register(h._codeEditor.onDidChangeCursorSelection((function(){h._isVisible&&h._updateToggleSelectionFindButton()}))),h._register(h._codeEditor.onDidFocusEditorWidget((function(){if(h._isVisible){var e=h._controller.getGlobalBufferTerm();e&&e!==h._state.searchString&&(h._state.change({searchString:e},!0),h._findInput.select())}}))),h._findInputFocused=k.bindTo(u),h._findFocusTracker=h._register(j["Y"](h._findInput.inputBox.inputElement)),h._register(h._findFocusTracker.onDidFocus((function(){h._findInputFocused.set(!0),h._updateSearchScope()}))),h._register(h._findFocusTracker.onDidBlur((function(){h._findInputFocused.set(!1)}))),h._replaceInputFocused=D.bindTo(u),h._replaceFocusTracker=h._register(j["Y"](h._replaceInput.inputBox.inputElement)),h._register(h._replaceFocusTracker.onDidFocus((function(){h._replaceInputFocused.set(!0),h._updateSearchScope()}))),h._register(h._replaceFocusTracker.onDidBlur((function(){h._replaceInputFocused.set(!1)}))),h._codeEditor.addOverlayWidget(h),h._codeEditor.getOption(28).addExtraSpaceOnTop&&(h._viewZone=new dt(0)),h._applyTheme(l.getTheme()),h._register(l.onThemeChange(h._applyTheme.bind(h))),h._register(h._codeEditor.onDidChangeModel((function(){h._isVisible&&(h._viewZoneId=void 0)}))),h._register(h._codeEditor.onDidScrollChange((function(e){e.scrollTopChanged?h._layoutViewZone():setTimeout((function(){h._layoutViewZone()}),0)}))),h}return Ve(t,e),t.prototype.getId=function(){return t.ID},t.prototype.getDomNode=function(){return this._domNode},t.prototype.getPosition=function(){return this._isVisible?{preference:0}:null},t.prototype._onStateChanged=function(e){if(e.searchString){try{this._ignoreChangeEvent=!0,this._findInput.setValue(this._state.searchString)}finally{this._ignoreChangeEvent=!1}this._updateButtons()}if(e.replaceString&&(this._replaceInput.inputBox.value=this._state.replaceString),e.isRevealed&&(this._state.isRevealed?this._reveal():this._hide(!0)),e.isReplaceRevealed&&(this._state.isReplaceRevealed?this._codeEditor.getOption(68)||this._isReplaceVisible||(this._isReplaceVisible=!0,this._replaceInput.width=j["G"](this._findInput.domNode),this._updateButtons(),this._replaceInput.inputBox.layout()):this._isReplaceVisible&&(this._isReplaceVisible=!1,this._updateButtons())),(e.isRevealed||e.isReplaceRevealed)&&(this._state.isRevealed||this._state.isReplaceRevealed)&&this._tryUpdateHeight()&&this._showViewZone(),e.isRegex&&this._findInput.setRegex(this._state.isRegex),e.wholeWord&&this._findInput.setWholeWords(this._state.wholeWord),e.matchCase&&this._findInput.setCaseSensitive(this._state.matchCase),e.searchScope&&(this._state.searchScope?this._toggleSelectionFind.checked=!0:this._toggleSelectionFind.checked=!1,this._updateToggleSelectionFindButton()),e.searchString||e.matchesCount||e.matchesPosition){var t=this._state.searchString.length>0&&0===this._state.matchesCount;j["X"](this._domNode,"no-results",t),this._updateMatchesCount(),this._updateButtons()}(e.searchString||e.currentMatch)&&this._layoutViewZone(),e.updateHistory&&this._delayedUpdateHistory()},t.prototype._delayedUpdateHistory=function(){this._updateHistoryDelayer.trigger(this._updateHistory.bind(this))},t.prototype._updateHistory=function(){this._state.searchString&&this._findInput.inputBox.addToHistory(),this._state.replaceString&&this._replaceInput.inputBox.addToHistory()},t.prototype._updateMatchesCount=function(){var e;if(this._matchesCount.style.minWidth=at+"px",this._state.matchesCount>=P?this._matchesCount.title=tt:this._matchesCount.title="",this._matchesCount.firstChild&&this._matchesCount.removeChild(this._matchesCount.firstChild),this._state.matchesCount>0){var t=String(this._state.matchesCount);this._state.matchesCount>=P&&(t+="+");var n=String(this._state.matchesPosition);"0"===n&&(n="?"),e=s["r"](nt,n,t)}else e=it;this._matchesCount.appendChild(document.createTextNode(e)),Object(ae["a"])(this._getAriaLabel(e,this._state.currentMatch,this._state.searchString),!0),at=Math.max(at,this._matchesCount.clientWidth)},t.prototype._getAriaLabel=function(e,t,n){return e===it?""===n?i["a"]("ariaSearchNoResultEmpty","{0} found",e):i["a"]("ariaSearchNoResult","{0} found for {1}",e,n):t?i["a"]("ariaSearchNoResultWithLineNum","{0} found for {1} at {2}",e,n,t.startLineNumber+":"+t.startColumn):i["a"]("ariaSearchNoResultWithLineNumNoCurrentMatch","{0} found for {1}",e,n)},t.prototype._updateToggleSelectionFindButton=function(){var e=this._codeEditor.getSelection(),t=!!e&&(e.startLineNumber!==e.endLineNumber||e.startColumn!==e.endColumn),n=this._toggleSelectionFind.checked;this._isVisible&&(n||t)?this._toggleSelectionFind.enable():this._toggleSelectionFind.disable()},t.prototype._updateButtons=function(){this._findInput.setEnabled(this._isVisible),this._replaceInput.setEnabled(this._isVisible&&this._isReplaceVisible),this._updateToggleSelectionFindButton(),this._closeBtn.setEnabled(this._isVisible);var e=this._state.searchString.length>0,t=!!this._state.matchesCount;this._prevBtn.setEnabled(this._isVisible&&e&&t),this._nextBtn.setEnabled(this._isVisible&&e&&t),this._replaceBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),this._replaceAllBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),j["X"](this._domNode,"replaceToggled",this._isReplaceVisible),this._toggleReplaceBtn.toggleClass("codicon-chevron-right",!this._isReplaceVisible),this._toggleReplaceBtn.toggleClass("codicon-chevron-down",this._isReplaceVisible),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible);var n=!this._codeEditor.getOption(68);this._toggleReplaceBtn.setEnabled(this._isVisible&&n)},t.prototype._reveal=function(){var e=this;if(!this._isVisible){this._isVisible=!0;var t=this._codeEditor.getSelection();switch(this._codeEditor.getOption(28).autoFindInSelection){case"always":this._toggleSelectionFind.checked=!0;break;case"never":this._toggleSelectionFind.checked=!1;break;case"multiline":var n=!!t&&t.startLineNumber!==t.endLineNumber;this._toggleSelectionFind.checked=n;break;default:break}this._tryUpdateWidgetWidth(),this._updateButtons(),setTimeout((function(){j["e"](e._domNode,"visible"),e._domNode.setAttribute("aria-hidden","false")}),0),setTimeout((function(){e._findInput.validate()}),200),this._codeEditor.layoutOverlayWidget(this);var i=!0;if(this._codeEditor.getOption(28).seedSearchStringFromSelection&&t){var r=this._codeEditor.getDomNode();if(r){var o=j["B"](r),s=this._codeEditor.getScrolledVisiblePosition(t.getStartPosition()),a=o.left+(s?s.left:0),u=s?s.top:0;if(this._viewZone&&u<this._viewZone.heightInPx){t.endLineNumber>t.startLineNumber&&(i=!1);var l=j["E"](this._domNode).left;a>l&&(i=!1);var c=this._codeEditor.getScrolledVisiblePosition(t.getEndPosition()),d=o.left+(c?c.left:0);d>l&&(i=!1)}}}this._showViewZone(i)}},t.prototype._hide=function(e){this._isVisible&&(this._isVisible=!1,this._updateButtons(),j["O"](this._domNode,"visible"),this._domNode.setAttribute("aria-hidden","true"),this._findInput.clearMessage(),e&&this._codeEditor.focus(),this._codeEditor.layoutOverlayWidget(this),this._removeViewZone())},t.prototype._layoutViewZone=function(){var e=this,t=this._codeEditor.getOption(28).addExtraSpaceOnTop;if(t){if(this._isVisible){var n=this._viewZone;void 0===this._viewZoneId&&n&&this._codeEditor.changeViewZones((function(t){n.heightInPx=e._getHeight(),e._viewZoneId=t.addZone(n),e._codeEditor.setScrollTop(e._codeEditor.getScrollTop()+n.heightInPx)}))}}else this._removeViewZone()},t.prototype._showViewZone=function(e){var t=this;if(void 0===e&&(e=!0),this._isVisible){var n=this._codeEditor.getOption(28).addExtraSpaceOnTop;if(n){void 0===this._viewZone&&(this._viewZone=new dt(0));var i=this._viewZone;this._codeEditor.changeViewZones((function(n){if(void 0!==t._viewZoneId){var r=t._getHeight();if(r===i.heightInPx)return;var o=r-i.heightInPx;return i.heightInPx=r,n.layoutZone(t._viewZoneId),void(e&&t._codeEditor.setScrollTop(t._codeEditor.getScrollTop()+o))}o=t._getHeight();i.heightInPx=o,t._viewZoneId=n.addZone(i),e&&t._codeEditor.setScrollTop(t._codeEditor.getScrollTop()+o)}))}}},t.prototype._removeViewZone=function(){var e=this;this._codeEditor.changeViewZones((function(t){void 0!==e._viewZoneId&&(t.removeZone(e._viewZoneId),e._viewZoneId=void 0,e._viewZone&&(e._codeEditor.setScrollTop(e._codeEditor.getScrollTop()-e._viewZone.heightInPx),e._viewZone=void 0))}))},t.prototype._applyTheme=function(e){var t={inputActiveOptionBorder:e.getColor(A["X"]),inputActiveOptionBackground:e.getColor(A["W"]),inputBackground:e.getColor(A["Y"]),inputForeground:e.getColor(A["ab"]),inputBorder:e.getColor(A["Z"]),inputValidationInfoBackground:e.getColor(A["eb"]),inputValidationInfoForeground:e.getColor(A["gb"]),inputValidationInfoBorder:e.getColor(A["fb"]),inputValidationWarningBackground:e.getColor(A["hb"]),inputValidationWarningForeground:e.getColor(A["jb"]),inputValidationWarningBorder:e.getColor(A["ib"]),inputValidationErrorBackground:e.getColor(A["bb"]),inputValidationErrorForeground:e.getColor(A["db"]),inputValidationErrorBorder:e.getColor(A["cb"])};this._findInput.style(t),this._replaceInput.style(t),this._toggleSelectionFind.style(t)},t.prototype._tryUpdateWidgetWidth=function(){if(this._isVisible&&j["L"](this._domNode)){var e=this._codeEditor.getLayoutInfo(),t=e.contentWidth;if(t<=0)j["e"](this._domNode,"hiddenEditor");else{j["H"](this._domNode,"hiddenEditor")&&j["O"](this._domNode,"hiddenEditor");var n=e.width,i=e.minimapWidth,r=!1,o=!1,s=!1;if(this._resized){var a=j["G"](this._domNode);if(a>rt)return this._domNode.style.maxWidth=n-28-i-15+"px",void(this._replaceInput.width=j["G"](this._findInput.domNode))}if(rt+28+i>=n&&(o=!0),rt+28+i-at>=n&&(s=!0),rt+28+i-at>=n+50&&(r=!0),j["X"](this._domNode,"collapsed-find-widget",r),j["X"](this._domNode,"narrow-find-widget",s),j["X"](this._domNode,"reduced-find-widget",o),s||r||(this._domNode.style.maxWidth=n-28-i-15+"px"),this._resized){this._findInput.inputBox.layout();var u=this._findInput.inputBox.element.clientWidth;u>0&&(this._replaceInput.width=u)}else this._isReplaceVisible&&(this._replaceInput.width=j["G"](this._findInput.domNode))}}},t.prototype._getHeight=function(){var e=0;return e+=4,e+=this._findInput.inputBox.height+2,this._isReplaceVisible&&(e+=4,e+=this._replaceInput.inputBox.height+2),e+=4,e},t.prototype._tryUpdateHeight=function(){var e=this._getHeight();return(null===this._cachedHeight||this._cachedHeight!==e)&&(this._cachedHeight=e,this._domNode.style.height=e+"px",!0)},t.prototype.focusFindInput=function(){this._findInput.select(),this._findInput.focus()},t.prototype.focusReplaceInput=function(){this._replaceInput.select(),this._replaceInput.focus()},t.prototype.highlightFindOptions=function(){this._findInput.highlightFindOptions()},t.prototype._updateSearchScope=function(){if(this._codeEditor.hasModel()&&this._toggleSelectionFind.checked){var e=this._codeEditor.getSelection();1===e.endColumn&&e.endLineNumber>e.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(e.endLineNumber-1)));var t=this._state.currentMatch;e.startLineNumber!==e.endLineNumber&&(d["a"].equalsRange(e,t)||this._state.change({searchScope:e},!0))}},t.prototype._onFindInputMouseDown=function(e){e.middleButton&&e.stopPropagation()},t.prototype._onFindInputKeyDown=function(e){return e.equals(3|ct)?(this._findInput.inputBox.insertAtCursor("\n"),void e.preventDefault()):e.equals(2)?(this._isReplaceVisible?this._replaceInput.focus():this._findInput.focusOnCaseSensitive(),void e.preventDefault()):e.equals(2066)?(this._codeEditor.focus(),void e.preventDefault()):e.equals(16)?ht(e,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea")):e.equals(18)?ft(e,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea")):void 0},t.prototype._onReplaceInputKeyDown=function(e){return e.equals(3|ct)?(ce["h"]&&ce["f"]&&!this._ctrlEnterReplaceAllWarningPrompted&&(this._notificationService.info(i["a"]("ctrlEnter.keybindingChanged","Ctrl+Enter now inserts line break instead of replacing all. You can modify the keybinding for editor.action.replaceAll to override this behavior.")),this._ctrlEnterReplaceAllWarningPrompted=!0,this._storageService.store(lt,!0,0)),this._replaceInput.inputBox.insertAtCursor("\n"),void e.preventDefault()):e.equals(2)?(this._findInput.focusOnCaseSensitive(),void e.preventDefault()):e.equals(1026)?(this._findInput.focus(),void e.preventDefault()):e.equals(2066)?(this._codeEditor.focus(),void e.preventDefault()):e.equals(16)?ht(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea")):e.equals(18)?ft(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea")):void 0},t.prototype.getHorizontalSashTop=function(e){return 0},t.prototype.getHorizontalSashLeft=function(e){return 0},t.prototype.getHorizontalSashWidth=function(e){return 500},t.prototype._keybindingLabelFor=function(e){var t=this._keybindingService.lookupKeybinding(e);return t?" ("+t.getLabel()+")":""},t.prototype._buildDomNode=function(){var e=this,t=!0,n=!0;this._findInput=this._register(new je(null,this._contextViewProvider,{width:st,label:We,placeholder:ze,appendCaseSensitiveLabel:this._keybindingLabelFor(R.ToggleCaseSensitiveCommand),appendWholeWordsLabel:this._keybindingLabelFor(R.ToggleWholeWordCommand),appendRegexLabel:this._keybindingLabelFor(R.ToggleRegexCommand),validation:function(t){if(0===t.length||!e._findInput.getRegex())return null;try{return new RegExp(t),null}catch(n){return{content:n.message}}},flexibleHeight:t,flexibleWidth:n,flexibleMaxHeight:118},this._contextKeyService,!0)),this._findInput.setRegex(!!this._state.isRegex),this._findInput.setCaseSensitive(!!this._state.matchCase),this._findInput.setWholeWords(!!this._state.wholeWord),this._register(this._findInput.onKeyDown((function(t){return e._onFindInputKeyDown(t)}))),this._register(this._findInput.inputBox.onDidChange((function(){e._ignoreChangeEvent||e._state.change({searchString:e._findInput.getValue()},!0)}))),this._register(this._findInput.onDidOptionChange((function(){e._state.change({isRegex:e._findInput.getRegex(),wholeWord:e._findInput.getWholeWords(),matchCase:e._findInput.getCaseSensitive()},!0)}))),this._register(this._findInput.onCaseSensitiveKeyDown((function(t){t.equals(1026)&&e._isReplaceVisible&&(e._replaceInput.focus(),t.preventDefault())}))),this._register(this._findInput.onRegexKeyDown((function(t){t.equals(2)&&e._isReplaceVisible&&(e._replaceInput.focusOnPreserve(),t.preventDefault())}))),this._register(this._findInput.inputBox.onDidHeightChange((function(t){e._tryUpdateHeight()&&e._showViewZone()}))),ce["d"]&&this._register(this._findInput.onMouseDown((function(t){return e._onFindInputMouseDown(t)}))),this._matchesCount=document.createElement("div"),this._matchesCount.className="matchesCount",this._updateMatchesCount(),this._prevBtn=this._register(new gt({label:Ke+this._keybindingLabelFor(R.PreviousMatchFindAction),className:"codicon codicon-arrow-up",onTrigger:function(){e._codeEditor.getAction(R.PreviousMatchFindAction).run().then(void 0,le["e"])}})),this._nextBtn=this._register(new gt({label:qe+this._keybindingLabelFor(R.NextMatchFindAction),className:"codicon codicon-arrow-down",onTrigger:function(){e._codeEditor.getAction(R.NextMatchFindAction).run().then(void 0,le["e"])}}));var i=document.createElement("div");i.className="find-part",i.appendChild(this._findInput.domNode);var r=document.createElement("div");r.className="find-actions",i.appendChild(r),r.appendChild(this._matchesCount),r.appendChild(this._prevBtn.domNode),r.appendChild(this._nextBtn.domNode),this._toggleSelectionFind=this._register(new G({actionClassName:"codicon codicon-selection",title:Ge+this._keybindingLabelFor(R.ToggleSearchScopeCommand),isChecked:!1})),this._register(this._toggleSelectionFind.onChange((function(){if(e._toggleSelectionFind.checked){if(e._codeEditor.hasModel()){var t=e._codeEditor.getSelection();1===t.endColumn&&t.endLineNumber>t.startLineNumber&&(t=t.setEndPosition(t.endLineNumber-1,e._codeEditor.getModel().getLineMaxColumn(t.endLineNumber-1))),t.isEmpty()||e._state.change({searchScope:t},!0)}}else e._state.change({searchScope:null},!0)}))),r.appendChild(this._toggleSelectionFind.domNode),this._closeBtn=this._register(new gt({label:Xe+this._keybindingLabelFor(R.CloseFindWidgetCommand),className:"codicon codicon-close",onTrigger:function(){e._state.change({isRevealed:!1,searchScope:null},!1)},onKeyDown:function(t){t.equals(2)&&e._isReplaceVisible&&(e._replaceBtn.isEnabled()?e._replaceBtn.focus():e._codeEditor.focus(),t.preventDefault())}})),r.appendChild(this._closeBtn.domNode),this._replaceInput=this._register(new Qe(null,void 0,{label:Ye,placeholder:Je,history:[],flexibleHeight:t,flexibleWidth:n,flexibleMaxHeight:118},this._contextKeyService,!0)),this._replaceInput.setPreserveCase(!!this._state.preserveCase),this._register(this._replaceInput.onKeyDown((function(t){return e._onReplaceInputKeyDown(t)}))),this._register(this._replaceInput.inputBox.onDidChange((function(){e._state.change({replaceString:e._replaceInput.inputBox.value},!1)}))),this._register(this._replaceInput.inputBox.onDidHeightChange((function(t){e._isReplaceVisible&&e._tryUpdateHeight()&&e._showViewZone()}))),this._register(this._replaceInput.onDidOptionChange((function(){e._state.change({preserveCase:e._replaceInput.getPreserveCase()},!0)}))),this._register(this._replaceInput.onPreserveCaseKeyDown((function(t){t.equals(2)&&(e._prevBtn.isEnabled()?e._prevBtn.focus():e._nextBtn.isEnabled()?e._nextBtn.focus():e._toggleSelectionFind.enabled?e._toggleSelectionFind.focus():e._closeBtn.isEnabled()&&e._closeBtn.focus(),t.preventDefault())}))),this._replaceBtn=this._register(new gt({label:Ze+this._keybindingLabelFor(R.ReplaceOneAction),className:"codicon codicon-replace",onTrigger:function(){e._controller.replace()},onKeyDown:function(t){t.equals(1026)&&(e._closeBtn.focus(),t.preventDefault())}})),this._replaceAllBtn=this._register(new gt({label:$e+this._keybindingLabelFor(R.ReplaceAllAction),className:"codicon codicon-replace-all",onTrigger:function(){e._controller.replaceAll()}}));var o=document.createElement("div");o.className="replace-part",o.appendChild(this._replaceInput.domNode);var s=document.createElement("div");s.className="replace-actions",o.appendChild(s),s.appendChild(this._replaceBtn.domNode),s.appendChild(this._replaceAllBtn.domNode),this._toggleReplaceBtn=this._register(new gt({label:et,className:"codicon toggle left",onTrigger:function(){e._state.change({isReplaceRevealed:!e._isReplaceVisible},!1),e._isReplaceVisible&&(e._replaceInput.width=j["G"](e._findInput.domNode),e._replaceInput.inputBox.layout()),e._showViewZone()}})),this._toggleReplaceBtn.toggleClass("codicon-chevron-down",this._isReplaceVisible),this._toggleReplaceBtn.toggleClass("codicon-chevron-right",!this._isReplaceVisible),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible),this._domNode=document.createElement("div"),this._domNode.className="editor-widget find-widget",this._domNode.setAttribute("aria-hidden","true"),this._domNode.style.width=rt+"px",this._domNode.appendChild(this._toggleReplaceBtn.domNode),this._domNode.appendChild(i),this._domNode.appendChild(o),this._resizeSash=new ue["a"](this._domNode,this,{orientation:0}),this._resized=!1;var a=rt;this._register(this._resizeSash.onDidStart((function(){a=j["G"](e._domNode)}))),this._register(this._resizeSash.onDidChange((function(t){e._resized=!0;var n=a+t.startX-t.currentX;if(!(n<rt)){var i=parseFloat(j["y"](e._domNode).maxWidth)||0;n>i||(e._domNode.style.width=n+"px",e._isReplaceVisible&&(e._replaceInput.width=j["G"](e._findInput.domNode)),e._findInput.inputBox.layout(),e._tryUpdateHeight())}}))),this._register(this._resizeSash.onDidReset((function(){var t=j["G"](e._domNode);if(!(t<rt)){var n=rt;if(!e._resized||t===rt){var i=e._codeEditor.getLayoutInfo();n=i.width-28-i.minimapWidth-15,e._resized=!0}e._domNode.style.width=n+"px",e._isReplaceVisible&&(e._replaceInput.width=j["G"](e._findInput.domNode)),e._findInput.inputBox.layout()}})))},t.prototype.updateAccessibilitySupport=function(){var e=this._codeEditor.getOption(2);this._findInput.setFocusInputOnOptionClick(2!==e)},t.ID="editor.contrib.findWidget",t}(Q["a"]),gt=function(e){function t(t){var n=e.call(this)||this;return n._opts=t,n._domNode=document.createElement("div"),n._domNode.title=n._opts.label,n._domNode.tabIndex=0,n._domNode.className="button "+n._opts.className,n._domNode.setAttribute("role","button"),n._domNode.setAttribute("aria-label",n._opts.label),n.onclick(n._domNode,(function(e){n._opts.onTrigger(),e.preventDefault()})),n.onkeydown(n._domNode,(function(e){if(e.equals(10)||e.equals(3))return n._opts.onTrigger(),void e.preventDefault();n._opts.onKeyDown&&n._opts.onKeyDown(e)})),n}return Ve(t,e),Object.defineProperty(t.prototype,"domNode",{get:function(){return this._domNode},enumerable:!0,configurable:!0}),t.prototype.isEnabled=function(){return this._domNode.tabIndex>=0},t.prototype.focus=function(){this._domNode.focus()},t.prototype.setEnabled=function(e){j["X"](this._domNode,"disabled",!e),this._domNode.setAttribute("aria-disabled",String(!e)),this._domNode.tabIndex=e?0:-1},t.prototype.setExpanded=function(e){this._domNode.setAttribute("aria-expanded",String(!!e))},t.prototype.toggleClass=function(e,t){j["X"](this._domNode,e,t)},t}(Q["a"]);Object(m["e"])((function(e,t){var n=function(e,n){n&&t.addRule(".monaco-editor "+e+" { background-color: "+n+"; }")};n(".findMatch",e.getColor(A["t"])),n(".currentFindMatch",e.getColor(A["r"])),n(".findScope",e.getColor(A["v"]));var i=e.getColor(A["P"]);n(".find-widget",i);var r=e.getColor(A["fc"]);r&&t.addRule(".monaco-editor .find-widget { box-shadow: 0 2px 8px "+r+"; }");var o=e.getColor(A["u"]);o&&t.addRule(".monaco-editor .findMatch { border: 1px "+("hc"===e.type?"dotted":"solid")+" "+o+"; box-sizing: border-box; }");var s=e.getColor(A["s"]);s&&t.addRule(".monaco-editor .currentFindMatch { border: 2px solid "+s+"; padding: 1px; box-sizing: border-box; }");var a=e.getColor(A["w"]);a&&t.addRule(".monaco-editor .findScope { border: 1px "+("hc"===e.type?"dashed":"solid")+" "+a+"; }");var u=e.getColor(A["e"]);u&&t.addRule(".monaco-editor .find-widget { border: 1px solid "+u+"; }");var l=e.getColor(A["R"]);l&&t.addRule(".monaco-editor .find-widget { color: "+l+"; }");var c=e.getColor(A["T"]);c&&t.addRule(".monaco-editor .find-widget.no-results .matchesCount { color: "+c+"; }");var d=e.getColor(A["S"]);if(d)t.addRule(".monaco-editor .find-widget .monaco-sash { background-color: "+d+"; width: 3px !important; margin-left: -4px;}");else{var h=e.getColor(A["Q"]);h&&t.addRule(".monaco-editor .find-widget .monaco-sash { background-color: "+h+"; width: 3px !important; margin-left: -4px;}")}var f=e.getColor(A["U"]);f&&t.addRule(".monaco-editor .find-widget .monaco-inputbox.synthetic-focus { outline-color: "+f+"; }")}));var At=n("9XeP"),mt=n("Uzvx"),vt=n("Cg/j"),_t=n("bexQ"),yt=n("A+jI"),bt=n("sM1p"),wt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Ct=function(e,t,n,i){var r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},St=function(e,t){return function(n,i){t(n,i,e)}},Nt=524288;function Lt(e){if(!e.hasModel())return null;var t=e.getSelection();if(t.startLineNumber===t.endLineNumber)if(t.isEmpty()){var n=e.getModel().getWordAtPosition(t.getStartPosition());if(n)return n.word}else if(e.getModel().getValueLengthInRange(t)<Nt)return e.getModel().getValueInRange(t);return null}var Et=function(e){function t(t,n,i,o){var s=e.call(this)||this;return s._editor=t,s._findWidgetVisible=B.bindTo(n),s._contextKeyService=n,s._storageService=i,s._clipboardService=o,s._updateHistoryDelayer=new r["a"](500),s._state=s._register(new se),s.loadQueryState(),s._register(s._state.onFindReplaceStateChange((function(e){return s._onStateChanged(e)}))),s._model=null,s._register(s._editor.onDidChangeModel((function(){var e=s._editor.getModel()&&s._state.isRevealed;s.disposeModel(),s._state.change({searchScope:null,matchCase:s._storageService.getBoolean("editor.matchCase",1,!1),wholeWord:s._storageService.getBoolean("editor.wholeWord",1,!1),isRegex:s._storageService.getBoolean("editor.isRegex",1,!1),preserveCase:s._storageService.getBoolean("editor.preserveCase",1,!1)},!1),e&&s._start({forceRevealReplace:!1,seedSearchStringFromSelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!1,updateSearchScope:!1})}))),s}return wt(t,e),t.get=function(e){return e.getContribution(t.ID)},t.prototype.dispose=function(){this.disposeModel(),e.prototype.dispose.call(this)},t.prototype.disposeModel=function(){this._model&&(this._model.dispose(),this._model=null)},t.prototype._onStateChanged=function(e){this.saveQueryState(e),e.isRevealed&&(this._state.isRevealed?this._findWidgetVisible.set(!0):(this._findWidgetVisible.reset(),this.disposeModel())),e.searchString&&this.setGlobalBufferTerm(this._state.searchString)},t.prototype.saveQueryState=function(e){e.isRegex&&this._storageService.store("editor.isRegex",this._state.actualIsRegex,1),e.wholeWord&&this._storageService.store("editor.wholeWord",this._state.actualWholeWord,1),e.matchCase&&this._storageService.store("editor.matchCase",this._state.actualMatchCase,1),e.preserveCase&&this._storageService.store("editor.preserveCase",this._state.actualPreserveCase,1)},t.prototype.loadQueryState=function(){this._state.change({matchCase:this._storageService.getBoolean("editor.matchCase",1,this._state.matchCase),wholeWord:this._storageService.getBoolean("editor.wholeWord",1,this._state.wholeWord),isRegex:this._storageService.getBoolean("editor.isRegex",1,this._state.isRegex),preserveCase:this._storageService.getBoolean("editor.preserveCase",1,this._state.preserveCase)},!1)},t.prototype.isFindInputFocused=function(){return!!k.getValue(this._contextKeyService)},t.prototype.getState=function(){return this._state},t.prototype.closeFindWidget=function(){this._state.change({isRevealed:!1,searchScope:null},!1),this._editor.focus()},t.prototype.toggleCaseSensitive=function(){this._state.change({matchCase:!this._state.matchCase},!1),this._state.isRevealed||this.highlightFindOptions()},t.prototype.toggleWholeWords=function(){this._state.change({wholeWord:!this._state.wholeWord},!1),this._state.isRevealed||this.highlightFindOptions()},t.prototype.toggleRegex=function(){this._state.change({isRegex:!this._state.isRegex},!1),this._state.isRevealed||this.highlightFindOptions()},t.prototype.toggleSearchScope=function(){if(this._state.searchScope)this._state.change({searchScope:null},!0);else if(this._editor.hasModel()){var e=this._editor.getSelection();1===e.endColumn&&e.endLineNumber>e.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,this._editor.getModel().getLineMaxColumn(e.endLineNumber-1))),e.isEmpty()||this._state.change({searchScope:e},!0)}},t.prototype.setSearchString=function(e){this._state.isRegex&&(e=s["p"](e)),this._state.change({searchString:e},!1)},t.prototype.highlightFindOptions=function(){},t.prototype._start=function(e){if(this.disposeModel(),this._editor.hasModel()){var t={isRevealed:!0};if(e.seedSearchStringFromSelection){var n=Lt(this._editor);n&&(this._state.isRegex?t.searchString=s["p"](n):t.searchString=n)}if(!t.searchString&&e.seedSearchStringFromGlobalClipboard){n=this.getGlobalBufferTerm();n&&(t.searchString=n)}if(e.forceRevealReplace?t.isReplaceRevealed=!0:this._findWidgetVisible.get()||(t.isReplaceRevealed=!1),e.updateSearchScope){var i=this._editor.getSelection();i.isEmpty()||(t.searchScope=i)}this._state.change(t,!1),this._model||(this._model=new H(this._editor,this._state))}},t.prototype.start=function(e){this._start(e)},t.prototype.moveToNextMatch=function(){return!!this._model&&(this._model.moveToNextMatch(),!0)},t.prototype.moveToPrevMatch=function(){return!!this._model&&(this._model.moveToPrevMatch(),!0)},t.prototype.replace=function(){return!!this._model&&(this._model.replace(),!0)},t.prototype.replaceAll=function(){return!!this._model&&(this._model.replaceAll(),!0)},t.prototype.selectAllMatches=function(){return!!this._model&&(this._model.selectAllMatches(),this._editor.focus(),!0)},t.prototype.getGlobalBufferTerm=function(){return this._editor.getOption(28).globalFindClipboard&&this._clipboardService&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()?this._clipboardService.readFindText():""},t.prototype.setGlobalBufferTerm=function(e){this._editor.getOption(28).globalFindClipboard&&this._clipboardService&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()&&this._clipboardService.writeFindText(e)},t.ID="editor.contrib.findController",t=Ct([St(1,O["c"]),St(2,yt["a"]),St(3,At["a"])],t),t}(o["a"]),xt=function(e){function t(t,n,i,r,o,s,a,u){var l=e.call(this,t,i,a,u)||this;return l._contextViewService=n,l._keybindingService=r,l._themeService=o,l._notificationService=s,l._widget=null,l._findOptionsWidget=null,l}return wt(t,e),t.prototype._start=function(t){this._widget||this._createFindWidget();var n=this._editor.getSelection(),i=!1;switch(this._editor.getOption(28).autoFindInSelection){case"always":i=!0;break;case"never":i=!1;break;case"multiline":var r=!!n&&n.startLineNumber!==n.endLineNumber;i=r;break;default:break}t.updateSearchScope=i,e.prototype._start.call(this,t),2===t.shouldFocus?this._widget.focusReplaceInput():1===t.shouldFocus&&this._widget.focusFindInput()},t.prototype.highlightFindOptions=function(){this._widget||this._createFindWidget(),this._state.isRevealed?this._widget.highlightFindOptions():this._findOptionsWidget.highlightFindOptions()},t.prototype._createFindWidget=function(){this._widget=this._register(new pt(this._editor,this,this._state,this._contextViewService,this._keybindingService,this._contextKeyService,this._themeService,this._storageService,this._notificationService)),this._findOptionsWidget=this._register(new ie(this._editor,this._state,this._keybindingService,this._themeService))},t=Ct([St(1,mt["b"]),St(2,O["c"]),St(3,_t["a"]),St(4,m["c"]),St(5,bt["a"]),St(6,yt["a"]),St(7,Object(vt["d"])(At["a"]))],t),t}(Et),Ot=function(e){function t(){return e.call(this,{id:R.StartFindAction,label:i["a"]("startFindAction","Find"),alias:"Find",precondition:void 0,kbOpts:{kbExpr:null,primary:2084,weight:100},menuOpts:{menuId:17,group:"3_find",title:i["a"]({key:"miFind",comment:["&& denotes a mnemonic"]},"&&Find"),order:1}})||this}return wt(t,e),t.prototype.run=function(e,t){var n=Et.get(t);n&&n.start({forceRevealReplace:!1,seedSearchStringFromSelection:t.getOption(28).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:t.getOption(28).globalFindClipboard,shouldFocus:1,shouldAnimate:!0,updateSearchScope:!1})},t}(a["b"]),Bt=function(e){function t(){return e.call(this,{id:R.StartFindWithSelection,label:i["a"]("startFindWithSelectionAction","Find With Selection"),alias:"Find With Selection",precondition:void 0,kbOpts:{kbExpr:null,primary:0,mac:{primary:2083},weight:100}})||this}return wt(t,e),t.prototype.run=function(e,t){var n=Et.get(t);n&&(n.start({forceRevealReplace:!1,seedSearchStringFromSelection:!0,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1}),n.setGlobalBufferTerm(n.getState().searchString))},t}(a["b"]),kt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return wt(t,e),t.prototype.run=function(e,t){var n=Et.get(t);n&&!this._run(n)&&(n.start({forceRevealReplace:!1,seedSearchStringFromSelection:0===n.getState().searchString.length&&t.getOption(28).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!0,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1}),this._run(n))},t}(a["b"]),Dt=function(e){function t(){return e.call(this,{id:R.NextMatchFindAction,label:i["a"]("findNextMatchAction","Find Next"),alias:"Find Next",precondition:void 0,kbOpts:{kbExpr:u["a"].focus,primary:61,mac:{primary:2085,secondary:[61]},weight:100}})||this}return wt(t,e),t.prototype._run=function(e){return e.moveToNextMatch()},t}(kt),It=function(e){function t(){return e.call(this,{id:R.NextMatchFindAction,label:i["a"]("findNextMatchAction","Find Next"),alias:"Find Next",precondition:void 0,kbOpts:{kbExpr:O["a"].and(u["a"].focus,k),primary:3,weight:100}})||this}return wt(t,e),t.prototype._run=function(e){return e.moveToNextMatch()},t}(kt),Mt=function(e){function t(){return e.call(this,{id:R.PreviousMatchFindAction,label:i["a"]("findPreviousMatchAction","Find Previous"),alias:"Find Previous",precondition:void 0,kbOpts:{kbExpr:u["a"].focus,primary:1085,mac:{primary:3109,secondary:[1085]},weight:100}})||this}return wt(t,e),t.prototype._run=function(e){return e.moveToPrevMatch()},t}(kt),Ft=function(e){function t(){return e.call(this,{id:R.PreviousMatchFindAction,label:i["a"]("findPreviousMatchAction","Find Previous"),alias:"Find Previous",precondition:void 0,kbOpts:{kbExpr:O["a"].and(u["a"].focus,k),primary:1027,weight:100}})||this}return wt(t,e),t.prototype._run=function(e){return e.moveToPrevMatch()},t}(kt),Tt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return wt(t,e),t.prototype.run=function(e,t){var n=Et.get(t);if(n){var i=Lt(t);i&&n.setSearchString(i),this._run(n)||(n.start({forceRevealReplace:!1,seedSearchStringFromSelection:t.getOption(28).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1}),this._run(n))}},t}(a["b"]),Rt=function(e){function t(){return e.call(this,{id:R.NextSelectionMatchFindAction,label:i["a"]("nextSelectionMatchFindAction","Find Next Selection"),alias:"Find Next Selection",precondition:void 0,kbOpts:{kbExpr:u["a"].focus,primary:2109,weight:100}})||this}return wt(t,e),t.prototype._run=function(e){return e.moveToNextMatch()},t}(Tt),Pt=function(e){function t(){return e.call(this,{id:R.PreviousSelectionMatchFindAction,label:i["a"]("previousSelectionMatchFindAction","Find Previous Selection"),alias:"Find Previous Selection",precondition:void 0,kbOpts:{kbExpr:u["a"].focus,primary:3133,weight:100}})||this}return wt(t,e),t.prototype._run=function(e){return e.moveToPrevMatch()},t}(Tt),Ut=function(e){function t(){return e.call(this,{id:R.StartFindReplaceAction,label:i["a"]("startReplace","Replace"),alias:"Replace",precondition:void 0,kbOpts:{kbExpr:null,primary:2086,mac:{primary:2596},weight:100},menuOpts:{menuId:17,group:"3_find",title:i["a"]({key:"miReplace",comment:["&& denotes a mnemonic"]},"&&Replace"),order:2}})||this}return wt(t,e),t.prototype.run=function(e,t){if(t.hasModel()&&!t.getOption(68)){var n=Et.get(t),i=t.getSelection(),r=n.isFindInputFocused(),o=!i.isEmpty()&&i.startLineNumber===i.endLineNumber&&t.getOption(28).seedSearchStringFromSelection&&!r,s=r||o?2:1;n&&n.start({forceRevealReplace:!0,seedSearchStringFromSelection:o,seedSearchStringFromGlobalClipboard:t.getOption(28).seedSearchStringFromSelection,shouldFocus:s,shouldAnimate:!0,updateSearchScope:!1})}},t}(a["b"]);Object(a["h"])(Et.ID,xt),Object(a["f"])(Ot),Object(a["f"])(Bt),Object(a["f"])(Dt),Object(a["f"])(It),Object(a["f"])(Mt),Object(a["f"])(Ft),Object(a["f"])(Rt),Object(a["f"])(Pt),Object(a["f"])(Ut);var Ht=a["c"].bindToContribution(Et.get);Object(a["g"])(new Ht({id:R.CloseFindWidgetCommand,precondition:B,handler:function(e){return e.closeFindWidget()},kbOpts:{weight:105,kbExpr:u["a"].focus,primary:9,secondary:[1033]}})),Object(a["g"])(new Ht({id:R.ToggleCaseSensitiveCommand,precondition:void 0,handler:function(e){return e.toggleCaseSensitive()},kbOpts:{weight:105,kbExpr:u["a"].focus,primary:I.primary,mac:I.mac,win:I.win,linux:I.linux}})),Object(a["g"])(new Ht({id:R.ToggleWholeWordCommand,precondition:void 0,handler:function(e){return e.toggleWholeWords()},kbOpts:{weight:105,kbExpr:u["a"].focus,primary:M.primary,mac:M.mac,win:M.win,linux:M.linux}})),Object(a["g"])(new Ht({id:R.ToggleRegexCommand,precondition:void 0,handler:function(e){return e.toggleRegex()},kbOpts:{weight:105,kbExpr:u["a"].focus,primary:F.primary,mac:F.mac,win:F.win,linux:F.linux}})),Object(a["g"])(new Ht({id:R.ToggleSearchScopeCommand,precondition:void 0,handler:function(e){return e.toggleSearchScope()},kbOpts:{weight:105,kbExpr:u["a"].focus,primary:T.primary,mac:T.mac,win:T.win,linux:T.linux}})),Object(a["g"])(new Ht({id:R.ReplaceOneAction,precondition:B,handler:function(e){return e.replace()},kbOpts:{weight:105,kbExpr:u["a"].focus,primary:3094}})),Object(a["g"])(new Ht({id:R.ReplaceOneAction,precondition:B,handler:function(e){return e.replace()},kbOpts:{weight:105,kbExpr:O["a"].and(u["a"].focus,D),primary:3}})),Object(a["g"])(new Ht({id:R.ReplaceAllAction,precondition:B,handler:function(e){return e.replaceAll()},kbOpts:{weight:105,kbExpr:u["a"].focus,primary:2563}})),Object(a["g"])(new Ht({id:R.ReplaceAllAction,precondition:B,handler:function(e){return e.replaceAll()},kbOpts:{weight:105,kbExpr:O["a"].and(u["a"].focus,D),primary:void 0,mac:{primary:2051}}})),Object(a["g"])(new Ht({id:R.SelectAllMatchesAction,precondition:B,handler:function(e){return e.selectAllMatches()},kbOpts:{weight:105,kbExpr:u["a"].focus,primary:515}}))},oiKk:function(e,t,n){"use strict";n.r(t),n.d(t,"IPadShowKeyboard",(function(){return u}));n("ci+S");var i=n("D3Dy"),r=n("EffR"),o=n("pmY6"),s=n("sswD"),a=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),u=function(e){function t(t){var n=e.call(this)||this;return n.editor=t,n.widget=null,i["j"]&&(n._register(t.onDidChangeConfiguration((function(){return n.update()}))),n.update()),n}return a(t,e),t.prototype.update=function(){var e=!this.editor.getOption(68);!this.widget&&e?this.widget=new l(this.editor):this.widget&&!e&&(this.widget.dispose(),this.widget=null)},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.widget&&(this.widget.dispose(),this.widget=null)},t.ID="editor.contrib.iPadShowKeyboard",t}(o["a"]),l=function(e){function t(t){var n=e.call(this)||this;return n.editor=t,n._domNode=document.createElement("textarea"),n._domNode.className="iPadShowKeyboard",n._register(r["i"](n._domNode,"touchstart",(function(e){n.editor.focus()}))),n._register(r["i"](n._domNode,"focus",(function(e){n.editor.focus()}))),n.editor.addOverlayWidget(n),n}return a(t,e),t.prototype.dispose=function(){this.editor.removeOverlayWidget(this),e.prototype.dispose.call(this)},t.prototype.getId=function(){return t.ID},t.prototype.getDomNode=function(){return this._domNode},t.prototype.getPosition=function(){return{preference:1}},t.ID="editor.contrib.ShowKeyboardWidget",t}(o["a"]);Object(s["h"])(u.ID,u)},p3Ex:function(e,t,n){"use strict";n.r(t);var i=n("+hIS");Object(i["a"])({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:function(){return n.e(148).then(n.bind(null,"/Om3"))}})},p5tG:function(e,t,n){"use strict";n.r(t),n.d(t,"LanguageServiceDefaultsImpl",(function(){return r}));n("M/lh");var i=monaco.Emitter,r=function(){function e(e,t,n){this._onDidChange=new i,this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(n)}return Object.defineProperty(e.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"modeConfiguration",{get:function(){return this._modeConfiguration},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"diagnosticsOptions",{get:function(){return this._diagnosticsOptions},enumerable:!0,configurable:!0}),e.prototype.setDiagnosticsOptions=function(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)},e.prototype.setModeConfiguration=function(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)},e}(),o={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1},s={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},a=new r("json",o,s);function u(){return{jsonDefaults:a}}function l(){return n.e(140).then(n.bind(null,"R7lK"))}monaco.languages.json=u(),monaco.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]}),monaco.languages.onLanguage("json",(function(){l().then((function(e){return e.setupMode(a)}))}))},pAvP:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n("Cg/j"),r="editorWorkerService",o=Object(i["c"])(r)},pI2L:function(e,t,n){"use strict";n.r(t);var i=n("+hIS");Object(i["a"])({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:function(){return n.e(180).then(n.bind(null,"KpXS"))}})},pg8w:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return c}));var i,r=n("6OMU"),o=n("pmY6"),s=n("EffR"),a=n("ZCR3"),u=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),l=function(e,t,n,i){var r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s};(function(e){e.Tap="-monaco-gesturetap",e.Change="-monaco-gesturechange",e.Start="-monaco-gesturestart",e.End="-monaco-gesturesend",e.Contextmenu="-monaco-gesturecontextmenu"})(i||(i={}));var c=function(e){function t(){var t=e.call(this)||this;return t.dispatched=!1,t.activeTouches={},t.handle=null,t.targets=[],t.ignoreTargets=[],t._lastSetTapCountTime=0,t._register(s["i"](document,"touchstart",(function(e){return t.onTouchStart(e)}))),t._register(s["i"](document,"touchend",(function(e){return t.onTouchEnd(e)}))),t._register(s["i"](document,"touchmove",(function(e){return t.onTouchMove(e)}))),t}return u(t,e),t.addTarget=function(e){return t.isTouchDevice()?(t.INSTANCE||(t.INSTANCE=new t),t.INSTANCE.targets.push(e),{dispose:function(){t.INSTANCE.targets=t.INSTANCE.targets.filter((function(t){return t!==e}))}}):o["a"].None},t.ignoreTarget=function(e){return t.isTouchDevice()?(t.INSTANCE||(t.INSTANCE=new t),t.INSTANCE.ignoreTargets.push(e),{dispose:function(){t.INSTANCE.ignoreTargets=t.INSTANCE.ignoreTargets.filter((function(t){return t!==e}))}}):o["a"].None},t.isTouchDevice=function(){return"ontouchstart"in window||navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints>0},t.prototype.dispose=function(){this.handle&&(this.handle.dispose(),this.handle=null),e.prototype.dispose.call(this)},t.prototype.onTouchStart=function(e){var t=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(var n=0,r=e.targetTouches.length;n<r;n++){var o=e.targetTouches.item(n);this.activeTouches[o.identifier]={id:o.identifier,initialTarget:o.target,initialTimeStamp:t,initialPageX:o.pageX,initialPageY:o.pageY,rollingTimestamps:[t],rollingPageX:[o.pageX],rollingPageY:[o.pageY]};var s=this.newGestureEvent(i.Start,o.target);s.pageX=o.pageX,s.pageY=o.pageY,this.dispatchEvent(s)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)},t.prototype.onTouchEnd=function(e){for(var n=Date.now(),o=Object.keys(this.activeTouches).length,s=function(s,u){var l=e.changedTouches.item(s);if(!a.activeTouches.hasOwnProperty(String(l.identifier)))return console.warn("move of an UNKNOWN touch",l),"continue";var c=a.activeTouches[l.identifier],d=Date.now()-c.initialTimeStamp;if(d<t.HOLD_DELAY&&Math.abs(c.initialPageX-r["v"](c.rollingPageX))<30&&Math.abs(c.initialPageY-r["v"](c.rollingPageY))<30){var h=a.newGestureEvent(i.Tap,c.initialTarget);h.pageX=r["v"](c.rollingPageX),h.pageY=r["v"](c.rollingPageY),a.dispatchEvent(h)}else if(d>=t.HOLD_DELAY&&Math.abs(c.initialPageX-r["v"](c.rollingPageX))<30&&Math.abs(c.initialPageY-r["v"](c.rollingPageY))<30){h=a.newGestureEvent(i.Contextmenu,c.initialTarget);h.pageX=r["v"](c.rollingPageX),h.pageY=r["v"](c.rollingPageY),a.dispatchEvent(h)}else if(1===o){var f=r["v"](c.rollingPageX),p=r["v"](c.rollingPageY),g=r["v"](c.rollingTimestamps)-c.rollingTimestamps[0],A=f-c.rollingPageX[0],m=p-c.rollingPageY[0],v=a.targets.filter((function(e){return c.initialTarget instanceof Node&&e.contains(c.initialTarget)}));a.inertia(v,n,Math.abs(A)/g,A>0?1:-1,f,Math.abs(m)/g,m>0?1:-1,p)}a.dispatchEvent(a.newGestureEvent(i.End,c.initialTarget)),delete a.activeTouches[l.identifier]},a=this,u=0,l=e.changedTouches.length;u<l;u++)s(u,l);this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)},t.prototype.newGestureEvent=function(e,t){var n=document.createEvent("CustomEvent");return n.initEvent(e,!1,!0),n.initialTarget=t,n.tapCount=0,n},t.prototype.dispatchEvent=function(e){var n=this;if(e.type===i.Tap){var r=(new Date).getTime(),o=0;o=r-this._lastSetTapCountTime>t.CLEAR_TAP_COUNT_TIME?1:2,this._lastSetTapCountTime=r,e.tapCount=o}else e.type!==i.Change&&e.type!==i.Contextmenu||(this._lastSetTapCountTime=0);for(var s=0;s<this.ignoreTargets.length;s++)if(e.initialTarget instanceof Node&&this.ignoreTargets[s].contains(e.initialTarget))return;this.targets.forEach((function(t){e.initialTarget instanceof Node&&t.contains(e.initialTarget)&&(t.dispatchEvent(e),n.dispatched=!0)}))},t.prototype.inertia=function(e,n,r,o,a,u,l,c){var d=this;this.handle=s["V"]((function(){var s=Date.now(),h=s-n,f=0,p=0,g=!0;r+=t.SCROLL_FRICTION*h,u+=t.SCROLL_FRICTION*h,r>0&&(g=!1,f=o*r*h),u>0&&(g=!1,p=l*u*h);var A=d.newGestureEvent(i.Change);A.translationX=f,A.translationY=p,e.forEach((function(e){return e.dispatchEvent(A)})),g||d.inertia(e,s,r,o,a+f,u,l,c+p)}))},t.prototype.onTouchMove=function(e){for(var t=Date.now(),n=0,o=e.changedTouches.length;n<o;n++){var s=e.changedTouches.item(n);if(this.activeTouches.hasOwnProperty(String(s.identifier))){var a=this.activeTouches[s.identifier],u=this.newGestureEvent(i.Change,a.initialTarget);u.translationX=s.pageX-r["v"](a.rollingPageX),u.translationY=s.pageY-r["v"](a.rollingPageY),u.pageX=s.pageX,u.pageY=s.pageY,this.dispatchEvent(u),a.rollingPageX.length>3&&(a.rollingPageX.shift(),a.rollingPageY.shift(),a.rollingTimestamps.shift()),a.rollingPageX.push(s.pageX),a.rollingPageY.push(s.pageY),a.rollingTimestamps.push(t)}else console.warn("end of an UNKNOWN touch",s)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)},t.SCROLL_FRICTION=-.005,t.HOLD_DELAY=700,t.CLEAR_TAP_COUNT_TIME=400,l([a["a"]],t,"isTouchDevice",null),t}(o["a"])},pmY6:function(e,t,n){"use strict";n.d(t,"g",(function(){return a})),n.d(t,"f",(function(){return u})),n.d(t,"e",(function(){return l})),n.d(t,"h",(function(){return c})),n.d(t,"b",(function(){return d})),n.d(t,"a",(function(){return h})),n.d(t,"d",(function(){return f})),n.d(t,"c",(function(){return p}));var i=!1,r="__is_disposable_tracked__";function o(e){if(i&&e&&e!==h.None)try{e[r]=!0}catch(t){}}function s(e){if(!i)return e;var t=new Error("Potentially leaked disposable").stack;return setTimeout((function(){e[r]||console.log(t)}),3e3),e}function a(e){return"function"===typeof e.dispose&&0===e.dispose.length}function u(e){return Array.isArray(e)?(e.forEach((function(e){e&&(o(e),e.dispose())})),[]):e?(o(e),e.dispose(),e):void 0}function l(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.forEach(o),s({dispose:function(){return u(e)}})}function c(e){var t=s({dispose:function(){o(t),e()}});return t}var d=function(){function e(){this._toDispose=new Set,this._isDisposed=!1}return e.prototype.dispose=function(){this._isDisposed||(o(this),this._isDisposed=!0,this.clear())},e.prototype.clear=function(){this._toDispose.forEach((function(e){return e.dispose()})),this._toDispose.clear()},e.prototype.add=function(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return o(e),this._isDisposed?console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e},e}(),h=function(){function e(){this._store=new d,s(this)}return e.prototype.dispose=function(){o(this),this._store.dispose()},e.prototype._register=function(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)},e.None=Object.freeze({dispose:function(){}}),e}(),f=function(){function e(){this._isDisposed=!1,s(this)}return Object.defineProperty(e.prototype,"value",{get:function(){return this._isDisposed?void 0:this._value},set:function(e){this._isDisposed||e===this._value||(this._value&&this._value.dispose(),e&&o(e),this._value=e)},enumerable:!0,configurable:!0}),e.prototype.clear=function(){this.value=void 0},e.prototype.dispose=function(){this._isDisposed=!0,o(this),this._value&&this._value.dispose(),this._value=void 0},e}(),p=function(){function e(e){this.object=e}return e.prototype.dispose=function(){},e}()},ptcw:function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return d}));var i=n("MD5Z"),r=function(){return r=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},r.apply(this,arguments)};function o(e,t){var n=Object.create(null);for(var r in t){var o=t[r];o&&(n[r]=Object(i["Sb"])(o,e))}return n}function s(e,t,n){function i(i){var r=o(e.getTheme(),t);"function"===typeof n?n(r):n.style(r)}return i(e.getTheme()),e.onThemeChange(i)}function a(e,t,n){return s(t,{badgeBackground:n&&n.badgeBackground||i["c"],badgeForeground:n&&n.badgeForeground||i["d"],badgeBorder:i["e"]},e)}function u(e,t,n){return s(t,r(r({},l),n||{}),e)}var l={listFocusBackground:i["qb"],listFocusForeground:i["rb"],listActiveSelectionBackground:Object(i["f"])(i["kb"],.1),listActiveSelectionForeground:i["lb"],listFocusAndSelectionBackground:i["kb"],listFocusAndSelectionForeground:i["lb"],listInactiveSelectionBackground:i["wb"],listInactiveSelectionForeground:i["xb"],listInactiveFocusBackground:i["vb"],listHoverBackground:i["tb"],listHoverForeground:i["ub"],listDropBackground:i["mb"],listFocusOutline:i["b"],listSelectionOutline:i["b"],listHoverOutline:i["b"],listFilterWidgetBackground:i["nb"],listFilterWidgetOutline:i["pb"],listFilterWidgetNoMatchesOutline:i["ob"],listMatchesShadow:i["fc"],treeIndentGuidesStroke:i["ec"]},c={shadowColor:i["fc"],borderColor:i["zb"],foregroundColor:i["Ab"],backgroundColor:i["yb"],selectionForegroundColor:i["Db"],selectionBackgroundColor:i["Bb"],selectionBorderColor:i["Cb"],separatorColor:i["Eb"]};function d(e,t,n){return s(t,r(r({},c),n),e)}},q8qy:function(e,t,n){"use strict";n.r(t);var i=n("+hIS");Object(i["a"])({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:function(){return n.e(168).then(n.bind(null,"ywQP"))}})},qNAo:function(e,t,n){"use strict";n.d(t,"f",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return a})),n.d(t,"a",(function(){return u})),n.d(t,"e",(function(){return l}));var i=n("N0LK"),r=function(){function e(e,t,n,i){this.top=0|e,this.left=0|t,this.width=0|n,this.height=0|i}return e}(),o=function(){function e(e,t){this.tabSize=e,this.data=t}return e}(),s=function(){function e(e,t,n,i,r,o){this.content=e,this.continuesWithWrappedLine=t,this.minColumn=n,this.maxColumn=i,this.startVisibleColumn=r,this.tokens=o}return e}(),a=function(){function e(t,n,i,r,o,s,a,u,l,c){this.minColumn=t,this.maxColumn=n,this.content=i,this.continuesWithWrappedLine=r,this.isBasicASCII=e.isBasicASCII(i,s),this.containsRTL=e.containsRTL(i,this.isBasicASCII,o),this.tokens=a,this.inlineDecorations=u,this.tabSize=l,this.startVisibleColumn=c}return e.isBasicASCII=function(e,t){return!t||i["v"](e)},e.containsRTL=function(e,t,n){return!(t||!n)&&i["i"](e)},e}(),u=function(){function e(e,t,n){this.range=e,this.inlineClassName=t,this.type=n}return e}(),l=function(){function e(e,t){this.range=e,this.options=t}return e}()},qj0h:function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"d",(function(){return o})),n.d(t,"b",(function(){return a})),n.d(t,"g",(function(){return l})),n.d(t,"a",(function(){return c})),n.d(t,"e",(function(){return d})),n.d(t,"f",(function(){return h}));var i=n("746U");function r(e){if(!e||"object"!==typeof e)return e;if(e instanceof RegExp)return e;var t=Array.isArray(e)?[]:{};return Object.keys(e).forEach((function(n){e[n]&&"object"===typeof e[n]?t[n]=r(e[n]):t[n]=e[n]})),t}function o(e){if(!e||"object"!==typeof e)return e;var t=[e];while(t.length>0){var n=t.shift();for(var i in Object.freeze(n),n)if(s.call(n,i)){var r=n[i];"object"!==typeof r||Object.isFrozen(r)||t.push(r)}}return e}var s=Object.prototype.hasOwnProperty;function a(e,t){return u(e,t,new Set)}function u(e,t,n){if(Object(i["l"])(e))return e;var r=t(e);if("undefined"!==typeof r)return r;if(Object(i["d"])(e)){for(var o=[],a=0,l=e;a<l.length;a++){var c=l[a];o.push(u(c,t,n))}return o}if(Object(i["i"])(e)){if(n.has(e))throw new Error("Cannot clone recursive data-structure");n.add(e);var d={};for(var h in e)s.call(e,h)&&(d[h]=u(e[h],t,n));return n.delete(e),d}return e}function l(e,t,n){return void 0===n&&(n=!0),Object(i["i"])(e)?(Object(i["i"])(t)&&Object.keys(t).forEach((function(r){r in e?n&&(Object(i["i"])(e[r])&&Object(i["i"])(t[r])?l(e[r],t[r],n):e[r]=t[r]):e[r]=t[r]})),e):t}function c(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.forEach((function(t){return Object.keys(t).forEach((function(n){return e[n]=t[n]}))})),e}function d(e,t){if(e===t)return!0;if(null===e||void 0===e||null===t||void 0===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;var n,i;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(!d(e[n],t[n]))return!1}else{var r=[];for(i in e)r.push(i);r.sort();var o=[];for(i in t)o.push(i);if(o.sort(),!d(r,o))return!1;for(n=0;n<r.length;n++)if(!d(e[r[n]],t[r[n]]))return!1}return!0}function h(e,t,n){var i=t(e);return"undefined"===typeof i?n:i}},r0BQ:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var i=function(){function e(e,t,n){void 0===t&&(t=[]),void 0===n&&(n=!1),this.ctor=e,this.staticArguments=t,this.supportsDelayedInstantiation=n}return e}()},rugR:function(e,t,n){"use strict";n.r(t),n.d(t,"ModesHoverController",(function(){return no}));n("uAX5");var i=n("3/fG"),r=n("/kV6"),o=n("pmY6"),s=n("sswD"),a=n("aokT"),u=n("wQH0"),l=n("WBhO"),c=n("EffR"),d=n("JQT/"),h=n("zrhQ"),f=n("eLzo"),p=n("cGHE"),g=n("tX9W"),A=n("twdY"),m=n("/cxE"),v=n("bY76"),_=n("G2kB");function y(e,t){var n=[],i=A["c"].ordered(e).reverse(),r=i.map((function(i){return Promise.resolve(i.provideDocumentColors(e,t)).then((function(e){if(Array.isArray(e))for(var t=0,r=e;t<r.length;t++){var o=r[t];n.push({colorInfo:o,provider:i})}}))}));return Promise.all(r).then((function(){return n}))}function b(e,t,n,i){return Promise.resolve(n.provideColorPresentations(e,t,i))}Object(s["j"])("_executeDocumentColorProvider",(function(e,t){var n=t.resource;if(!(n instanceof v["a"]))throw Object(m["b"])();var i=e.get(_["a"]).getModel(n);if(!i)throw Object(m["b"])();var r=[],o=A["c"].ordered(i).reverse(),s=o.map((function(e){return Promise.resolve(e.provideDocumentColors(i,d["a"].None)).then((function(e){if(Array.isArray(e))for(var t=0,n=e;t<n.length;t++){var i=n[t];r.push({range:i.range,color:[i.color.red,i.color.green,i.color.blue,i.color.alpha]})}}))}));return Promise.all(s).then((function(){return r}))})),Object(s["j"])("_executeColorPresentationProvider",(function(e,t){var n=t.resource,i=t.color,r=t.range;if(!(n instanceof v["a"])||!Array.isArray(i)||4!==i.length||!a["a"].isIRange(r))throw Object(m["b"])();var o=i[0],s=i[1],u=i[2],l=i[3],c=e.get(_["a"]).getModel(n);if(!c)throw Object(m["b"])();var h={range:r,color:{red:o,green:s,blue:u,alpha:l}},f=[],p=A["c"].ordered(c).reverse(),g=p.map((function(e){return Promise.resolve(e.provideColorPresentations(c,h,d["a"].None)).then((function(e){Array.isArray(e)&&f.push.apply(f,e)}))}));return Promise.all(g).then((function(){return f}))}));var w=n("X+cX"),C=n("7afs"),S=n("Vxe3"),N=n("+7oY"),L=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),E=function(e,t,n,i){var r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},x=function(e,t){return function(n,i){t(n,i,e)}},O=500,B=function(e){function t(t,n,i){var r=e.call(this)||this;return r._editor=t,r._codeEditorService=n,r._configurationService=i,r._localToDispose=r._register(new o["b"]),r._decorationsIds=[],r._colorDatas=new Map,r._colorDecoratorIds=[],r._decorationsTypes=new Set,r._register(t.onDidChangeModel((function(e){r._isEnabled=r.isEnabled(),r.onModelChanged()}))),r._register(t.onDidChangeModelLanguage((function(e){return r.onModelChanged()}))),r._register(A["c"].onDidChange((function(e){return r.onModelChanged()}))),r._register(t.onDidChangeConfiguration((function(e){var t=r._isEnabled;r._isEnabled=r.isEnabled(),t!==r._isEnabled&&(r._isEnabled?r.onModelChanged():r.removeAllDecorations())}))),r._timeoutTimer=null,r._computePromise=null,r._isEnabled=r.isEnabled(),r.onModelChanged(),r}return L(t,e),t.prototype.isEnabled=function(){var e=this._editor.getModel();if(!e)return!1;var t=e.getLanguageIdentifier(),n=this._configurationService.getValue(t.language);if(n){var i=n["colorDecorators"];if(i&&void 0!==i["enable"]&&!i["enable"])return i["enable"]}return this._editor.getOption(12)},t.get=function(e){return e.getContribution(this.ID)},t.prototype.dispose=function(){this.stop(),this.removeAllDecorations(),e.prototype.dispose.call(this)},t.prototype.onModelChanged=function(){var e=this;if(this.stop(),this._isEnabled){var n=this._editor.getModel();n&&A["c"].has(n)&&(this._localToDispose.add(this._editor.onDidChangeModelContent((function(n){e._timeoutTimer||(e._timeoutTimer=new w["e"],e._timeoutTimer.cancelAndSet((function(){e._timeoutTimer=null,e.beginCompute()}),t.RECOMPUTE_TIME))}))),this.beginCompute())}},t.prototype.beginCompute=function(){var e=this;this._computePromise=Object(w["f"])((function(t){var n=e._editor.getModel();return n?y(n,t):Promise.resolve([])})),this._computePromise.then((function(t){e.updateDecorations(t),e.updateColorDecorators(t),e._computePromise=null}),m["e"])},t.prototype.stop=function(){this._timeoutTimer&&(this._timeoutTimer.cancel(),this._timeoutTimer=null),this._computePromise&&(this._computePromise.cancel(),this._computePromise=null),this._localToDispose.clear()},t.prototype.updateDecorations=function(e){var t=this,n=e.map((function(e){return{range:{startLineNumber:e.colorInfo.range.startLineNumber,startColumn:e.colorInfo.range.startColumn,endLineNumber:e.colorInfo.range.endLineNumber,endColumn:e.colorInfo.range.endColumn},options:g["a"].EMPTY}}));this._decorationsIds=this._editor.deltaDecorations(this._decorationsIds,n),this._colorDatas=new Map,this._decorationsIds.forEach((function(n,i){return t._colorDatas.set(n,e[i])}))},t.prototype.updateColorDecorators=function(e){for(var t=this,n=[],i={},r=0;r<e.length&&n.length<O;r++){var o=e[r].colorInfo.color,s=o.red,a=o.green,u=o.blue,l=o.alpha,c=new h["c"](Math.round(255*s),Math.round(255*a),Math.round(255*u),l),d=Object(C["a"])(c).toString(16),f="rgba("+c.r+", "+c.g+", "+c.b+", "+c.a+")",p="colorBox-"+d;this._decorationsTypes.has(p)||i[p]||this._codeEditorService.registerDecorationType(p,{before:{contentText:" ",border:"solid 0.1em #000",margin:"0.1em 0.2em 0 0.2em",width:"0.8em",height:"0.8em",backgroundColor:f},dark:{before:{border:"solid 0.1em #eee"}}},void 0,this._editor),i[p]=!0,n.push({range:{startLineNumber:e[r].colorInfo.range.startLineNumber,startColumn:e[r].colorInfo.range.startColumn,endLineNumber:e[r].colorInfo.range.endLineNumber,endColumn:e[r].colorInfo.range.endColumn},options:this._codeEditorService.resolveDecorationOptions(p,!0)})}this._decorationsTypes.forEach((function(e){i[e]||t._codeEditorService.removeDecorationType(e)})),this._colorDecoratorIds=this._editor.deltaDecorations(this._colorDecoratorIds,n)},t.prototype.removeAllDecorations=function(){var e=this;this._decorationsIds=this._editor.deltaDecorations(this._decorationsIds,[]),this._colorDecoratorIds=this._editor.deltaDecorations(this._colorDecoratorIds,[]),this._decorationsTypes.forEach((function(t){e._codeEditorService.removeDecorationType(t)}))},t.prototype.getColorData=function(e){var t=this,n=this._editor.getModel();if(!n)return null;var i=n.getDecorationsInRange(a["a"].fromPositions(e,e)).filter((function(e){return t._colorDatas.has(e.id)}));return 0===i.length?null:this._colorDatas.get(i[0].id)},t.ID="editor.contrib.colorDetector",t.RECOMPUTE_TIME=1e3,t=E([x(1,S["a"]),x(2,N["a"])],t),t}(o["a"]);Object(s["h"])(B.ID,B);var k=n("MI8n"),D=function(){function e(e,t,n){this.presentationIndex=n,this._onColorFlushed=new k["a"],this.onColorFlushed=this._onColorFlushed.event,this._onDidChangeColor=new k["a"],this.onDidChangeColor=this._onDidChangeColor.event,this._onDidChangePresentation=new k["a"],this.onDidChangePresentation=this._onDidChangePresentation.event,this.originalColor=e,this._color=e,this._colorPresentations=t}return Object.defineProperty(e.prototype,"color",{get:function(){return this._color},set:function(e){this._color.equals(e)||(this._color=e,this._onDidChangeColor.fire(e))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"presentation",{get:function(){return this.colorPresentations[this.presentationIndex]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"colorPresentations",{get:function(){return this._colorPresentations},set:function(e){this._colorPresentations=e,this.presentationIndex>e.length-1&&(this.presentationIndex=0),this._onDidChangePresentation.fire(this.presentation)},enumerable:!0,configurable:!0}),e.prototype.selectNextColorPresentation=function(){this.presentationIndex=(this.presentationIndex+1)%this.colorPresentations.length,this.flushColor(),this._onDidChangePresentation.fire(this.presentation)},e.prototype.guessColorPresentation=function(e,t){for(var n=0;n<this.colorPresentations.length;n++)if(t===this.colorPresentations[n].label){this.presentationIndex=n,this._onDidChangePresentation.fire(this.presentation);break}},e.prototype.flushColor=function(){this._onColorFlushed.fire(this._color)},e}(),I=(n("EPS+"),n("D3Dy")),M=n("AKMP"),F=n("G300"),T=n("MD5Z"),R=n("t9D7"),P=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),U=c["a"],H=function(e){function t(t,n,i){var r=e.call(this)||this;r.model=n,r.domNode=U(".colorpicker-header"),c["p"](t,r.domNode),r.pickedColorNode=c["p"](r.domNode,U(".picked-color"));var o=c["p"](r.domNode,U(".original-color"));return o.style.backgroundColor=h["a"].Format.CSS.format(r.model.originalColor)||"",r.backgroundColor=i.getTheme().getColor(T["A"])||h["a"].white,r._register(Object(R["e"])((function(e,t){r.backgroundColor=e.getColor(T["A"])||h["a"].white}))),r._register(c["i"](r.pickedColorNode,c["c"].CLICK,(function(){return r.model.selectNextColorPresentation()}))),r._register(c["i"](o,c["c"].CLICK,(function(){r.model.color=r.model.originalColor,r.model.flushColor()}))),r._register(n.onDidChangeColor(r.onDidChangeColor,r)),r._register(n.onDidChangePresentation(r.onDidChangePresentation,r)),r.pickedColorNode.style.backgroundColor=h["a"].Format.CSS.format(n.color)||"",c["X"](r.pickedColorNode,"light",n.color.rgba.a<.5?r.backgroundColor.isLighter():n.color.isLighter()),r}return P(t,e),t.prototype.onDidChangeColor=function(e){this.pickedColorNode.style.backgroundColor=h["a"].Format.CSS.format(e)||"",c["X"](this.pickedColorNode,"light",e.rgba.a<.5?this.backgroundColor.isLighter():e.isLighter()),this.onDidChangePresentation()},t.prototype.onDidChangePresentation=function(){this.pickedColorNode.textContent=this.model.presentation?this.model.presentation.label:""},t}(o["a"]),j=function(e){function t(t,n,i){var r=e.call(this)||this;return r.model=n,r.pixelRatio=i,r.domNode=U(".colorpicker-body"),c["p"](t,r.domNode),r.saturationBox=new Q(r.domNode,r.model,r.pixelRatio),r._register(r.saturationBox),r._register(r.saturationBox.onDidChange(r.onDidSaturationValueChange,r)),r._register(r.saturationBox.onColorFlushed(r.flushColor,r)),r.opacityStrip=new W(r.domNode,r.model),r._register(r.opacityStrip),r._register(r.opacityStrip.onDidChange(r.onDidOpacityChange,r)),r._register(r.opacityStrip.onColorFlushed(r.flushColor,r)),r.hueStrip=new z(r.domNode,r.model),r._register(r.hueStrip),r._register(r.hueStrip.onDidChange(r.onDidHueChange,r)),r._register(r.hueStrip.onColorFlushed(r.flushColor,r)),r}return P(t,e),t.prototype.flushColor=function(){this.model.flushColor()},t.prototype.onDidSaturationValueChange=function(e){var t=e.s,n=e.v,i=this.model.color.hsva;this.model.color=new h["a"](new h["b"](i.h,t,n,i.a))},t.prototype.onDidOpacityChange=function(e){var t=this.model.color.hsva;this.model.color=new h["a"](new h["b"](t.h,t.s,t.v,e))},t.prototype.onDidHueChange=function(e){var t=this.model.color.hsva,n=360*(1-e);this.model.color=new h["a"](new h["b"](360===n?0:n,t.s,t.v,t.a))},t.prototype.layout=function(){this.saturationBox.layout(),this.opacityStrip.layout(),this.hueStrip.layout()},t}(o["a"]),Q=function(e){function t(t,n,i){var r=e.call(this)||this;return r.model=n,r.pixelRatio=i,r._onDidChange=new k["a"],r.onDidChange=r._onDidChange.event,r._onColorFlushed=new k["a"],r.onColorFlushed=r._onColorFlushed.event,r.domNode=U(".saturation-wrap"),c["p"](t,r.domNode),r.canvas=document.createElement("canvas"),r.canvas.className="saturation-box",c["p"](r.domNode,r.canvas),r.selection=U(".saturation-selection"),c["p"](r.domNode,r.selection),r.layout(),r._register(c["g"](r.domNode,(function(e){return r.onMouseDown(e)}))),r._register(r.model.onDidChangeColor(r.onDidChangeColor,r)),r.monitor=null,r}return P(t,e),t.prototype.onMouseDown=function(e){var t=this;this.monitor=this._register(new M["a"]);var n=c["B"](this.domNode);e.target!==this.selection&&this.onDidChangePosition(e.offsetX,e.offsetY),this.monitor.startMonitoring(e.target,e.buttons,M["b"],(function(e){return t.onDidChangePosition(e.posx-n.left,e.posy-n.top)}),(function(){return null}));var i=c["h"](document,(function(){t._onColorFlushed.fire(),i.dispose(),t.monitor&&(t.monitor.stopMonitoring(!0),t.monitor=null)}),!0)},t.prototype.onDidChangePosition=function(e,t){var n=Math.max(0,Math.min(1,e/this.width)),i=Math.max(0,Math.min(1,1-t/this.height));this.paintSelection(n,i),this._onDidChange.fire({s:n,v:i})},t.prototype.layout=function(){this.width=this.domNode.offsetWidth,this.height=this.domNode.offsetHeight,this.canvas.width=this.width*this.pixelRatio,this.canvas.height=this.height*this.pixelRatio,this.paint();var e=this.model.color.hsva;this.paintSelection(e.s,e.v)},t.prototype.paint=function(){var e=this.model.color.hsva,t=new h["a"](new h["b"](e.h,1,1,1)),n=this.canvas.getContext("2d"),i=n.createLinearGradient(0,0,this.canvas.width,0);i.addColorStop(0,"rgba(255, 255, 255, 1)"),i.addColorStop(.5,"rgba(255, 255, 255, 0.5)"),i.addColorStop(1,"rgba(255, 255, 255, 0)");var r=n.createLinearGradient(0,0,0,this.canvas.height);r.addColorStop(0,"rgba(0, 0, 0, 0)"),r.addColorStop(1,"rgba(0, 0, 0, 1)"),n.rect(0,0,this.canvas.width,this.canvas.height),n.fillStyle=h["a"].Format.CSS.format(t),n.fill(),n.fillStyle=i,n.fill(),n.fillStyle=r,n.fill()},t.prototype.paintSelection=function(e,t){this.selection.style.left=e*this.width+"px",this.selection.style.top=this.height-t*this.height+"px"},t.prototype.onDidChangeColor=function(){this.monitor&&this.monitor.isMonitoring()||this.paint()},t}(o["a"]),V=function(e){function t(t,n){var i=e.call(this)||this;return i.model=n,i._onDidChange=new k["a"],i.onDidChange=i._onDidChange.event,i._onColorFlushed=new k["a"],i.onColorFlushed=i._onColorFlushed.event,i.domNode=c["p"](t,U(".strip")),i.overlay=c["p"](i.domNode,U(".overlay")),i.slider=c["p"](i.domNode,U(".slider")),i.slider.style.top="0px",i._register(c["g"](i.domNode,(function(e){return i.onMouseDown(e)}))),i.layout(),i}return P(t,e),t.prototype.layout=function(){this.height=this.domNode.offsetHeight-this.slider.offsetHeight;var e=this.getValue(this.model.color);this.updateSliderPosition(e)},t.prototype.onMouseDown=function(e){var t=this,n=this._register(new M["a"]),i=c["B"](this.domNode);c["e"](this.domNode,"grabbing"),e.target!==this.slider&&this.onDidChangeTop(e.offsetY),n.startMonitoring(e.target,e.buttons,M["b"],(function(e){return t.onDidChangeTop(e.posy-i.top)}),(function(){return null}));var r=c["h"](document,(function(){t._onColorFlushed.fire(),r.dispose(),n.stopMonitoring(!0),c["O"](t.domNode,"grabbing")}),!0)},t.prototype.onDidChangeTop=function(e){var t=Math.max(0,Math.min(1,1-e/this.height));this.updateSliderPosition(t),this._onDidChange.fire(t)},t.prototype.updateSliderPosition=function(e){this.slider.style.top=(1-e)*this.height+"px"},t}(o["a"]),W=function(e){function t(t,n){var i=e.call(this,t,n)||this;return c["e"](i.domNode,"opacity-strip"),i._register(n.onDidChangeColor(i.onDidChangeColor,i)),i.onDidChangeColor(i.model.color),i}return P(t,e),t.prototype.onDidChangeColor=function(e){var t=e.rgba,n=t.r,i=t.g,r=t.b,o=new h["a"](new h["c"](n,i,r,1)),s=new h["a"](new h["c"](n,i,r,0));this.overlay.style.background="linear-gradient(to bottom, "+o+" 0%, "+s+" 100%)"},t.prototype.getValue=function(e){return e.hsva.a},t}(V),z=function(e){function t(t,n){var i=e.call(this,t,n)||this;return c["e"](i.domNode,"hue-strip"),i}return P(t,e),t.prototype.getValue=function(e){return 1-e.hsva.h/360},t}(V),K=function(e){function t(t,n,i,r){var o=e.call(this)||this;o.model=n,o.pixelRatio=i,o._register(Object(I["o"])((function(){return o.layout()})));var s=U(".colorpicker-widget");t.appendChild(s);var a=new H(s,o.model,r);return o.body=new j(s,o.model,o.pixelRatio),o._register(a),o._register(o.body),o}return P(t,e),t.prototype.layout=function(){this.body.layout()},t}(F["a"]),q=n("6OMU");function G(e,t,n){var i=A["o"].ordered(e),r=i.map((function(i){return Promise.resolve(i.provideHover(e,t,n)).then((function(e){return e&&X(e)?e:void 0}),(function(e){Object(m["f"])(e)}))}));return Promise.all(r).then(q["d"])}function X(e){var t="undefined"!==typeof e.range,n="undefined"!==typeof e.contents&&e.contents&&e.contents.length>0;return t&&n}Object(s["k"])("_executeHoverProvider",(function(e,t){return G(e,t,d["a"].None)}));var Y,J=function(){function e(e,t,n,i,r){var o=this;this._computer=e,this._state=0,this._hoverTime=r,this._firstWaitScheduler=new w["d"]((function(){return o._triggerAsyncComputation()}),0),this._secondWaitScheduler=new w["d"]((function(){return o._triggerSyncComputation()}),0),this._loadingMessageScheduler=new w["d"]((function(){return o._showLoadingMessage()}),0),this._asyncComputationPromise=null,this._asyncComputationPromiseDone=!1,this._completeCallback=t,this._errorCallback=n,this._progressCallback=i}return e.prototype.setHoverTime=function(e){this._hoverTime=e},e.prototype._firstWaitTime=function(){return this._hoverTime/2},e.prototype._secondWaitTime=function(){return this._hoverTime/2},e.prototype._loadingMessageTime=function(){return 3*this._hoverTime},e.prototype._triggerAsyncComputation=function(){var e=this;this._state=2,this._secondWaitScheduler.schedule(this._secondWaitTime()),this._computer.computeAsync?(this._asyncComputationPromiseDone=!1,this._asyncComputationPromise=Object(w["f"])((function(t){return e._computer.computeAsync(t)})),this._asyncComputationPromise.then((function(t){e._asyncComputationPromiseDone=!0,e._withAsyncResult(t)}),(function(t){return e._onError(t)}))):this._asyncComputationPromiseDone=!0},e.prototype._triggerSyncComputation=function(){this._computer.computeSync&&this._computer.onResult(this._computer.computeSync(),!0),this._asyncComputationPromiseDone?(this._state=0,this._onComplete(this._computer.getResult())):(this._state=3,this._onProgress(this._computer.getResult()))},e.prototype._showLoadingMessage=function(){3===this._state&&this._onProgress(this._computer.getResultWithLoadingMessage())},e.prototype._withAsyncResult=function(e){e&&this._computer.onResult(e,!1),3===this._state&&(this._state=0,this._onComplete(this._computer.getResult()))},e.prototype._onComplete=function(e){this._completeCallback&&this._completeCallback(e)},e.prototype._onError=function(e){this._errorCallback?this._errorCallback(e):Object(m["e"])(e)},e.prototype._onProgress=function(e){this._progressCallback&&this._progressCallback(e)},e.prototype.start=function(e){if(0===e)0===this._state&&(this._state=1,this._firstWaitScheduler.schedule(this._firstWaitTime()),this._loadingMessageScheduler.schedule(this._loadingMessageTime()));else switch(this._state){case 0:this._triggerAsyncComputation(),this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break;case 2:this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break}},e.prototype.cancel=function(){this._loadingMessageScheduler.cancel(),1===this._state&&this._firstWaitScheduler.cancel(),2===this._state&&(this._secondWaitScheduler.cancel(),this._asyncComputationPromise&&(this._asyncComputationPromise.cancel(),this._asyncComputationPromise=null)),3===this._state&&this._asyncComputationPromise&&(this._asyncComputationPromise.cancel(),this._asyncComputationPromise=null),this._state=0},e}(),Z=n("GJhM"),$=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),ee=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i},te=function(e){function t(t,n){var i=e.call(this)||this;return i.allowEditorOverflow=!0,i._id=t,i._editor=n,i._isVisible=!1,i._stoleFocus=!1,i._containerDomNode=document.createElement("div"),i._containerDomNode.className="monaco-editor-hover hidden",i._containerDomNode.tabIndex=0,i._domNode=document.createElement("div"),i._domNode.className="monaco-editor-hover-content",i.scrollbar=new Z["a"](i._domNode,{}),i._register(i.scrollbar),i._containerDomNode.appendChild(i.scrollbar.getDomNode()),i.onkeydown(i._containerDomNode,(function(e){e.equals(9)&&i.hide()})),i._register(i._editor.onDidChangeConfiguration((function(e){e.hasChanged(34)&&i.updateFont()}))),i._editor.onDidLayoutChange((function(e){return i.layout()})),i.layout(),i._editor.addContentWidget(i),i._showAtPosition=null,i._showAtRange=null,i._stoleFocus=!1,i}return $(t,e),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this._isVisible},set:function(e){this._isVisible=e,Object(c["X"])(this._containerDomNode,"hidden",!this._isVisible)},enumerable:!0,configurable:!0}),t.prototype.getId=function(){return this._id},t.prototype.getDomNode=function(){return this._containerDomNode},t.prototype.showAt=function(e,t,n){this._showAtPosition=e,this._showAtRange=t,this.isVisible=!0,this._editor.layoutContentWidget(this),this._editor.render(),this._stoleFocus=n,n&&this._containerDomNode.focus()},t.prototype.hide=function(){this.isVisible&&(this.isVisible=!1,this._editor.layoutContentWidget(this),this._stoleFocus&&this._editor.focus())},t.prototype.getPosition=function(){return this.isVisible?{position:this._showAtPosition,range:this._showAtRange,preference:[1,2]}:null},t.prototype.dispose=function(){this._editor.removeContentWidget(this),e.prototype.dispose.call(this)},t.prototype.updateFont=function(){var e=this,t=Array.prototype.slice.call(this._domNode.getElementsByClassName("code"));t.forEach((function(t){return e._editor.applyFontInfo(t)}))},t.prototype.updateContents=function(e){this._domNode.textContent="",this._domNode.appendChild(e),this.updateFont(),this._editor.layoutContentWidget(this),this.onContentsChange()},t.prototype.onContentsChange=function(){this.scrollbar.scanDomNode()},t.prototype.layout=function(){var e=Math.max(this._editor.getLayoutInfo().height/4,250),t=this._editor.getOption(34),n=t.fontSize,i=t.lineHeight;this._domNode.style.fontSize=n+"px",this._domNode.style.lineHeight=i+"px",this._domNode.style.maxHeight=e+"px",this._domNode.style.maxWidth=Math.max(.66*this._editor.getLayoutInfo().width,500)+"px"},t}(F["a"]),ne=function(e){function t(t,n){var i=e.call(this)||this;return i._id=t,i._editor=n,i._isVisible=!1,i._domNode=document.createElement("div"),i._domNode.className="monaco-editor-hover hidden",i._domNode.setAttribute("aria-hidden","true"),i._domNode.setAttribute("role","presentation"),i._showAtLineNumber=-1,i._register(i._editor.onDidChangeConfiguration((function(e){e.hasChanged(34)&&i.updateFont()}))),i._editor.addOverlayWidget(i),i}return $(t,e),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this._isVisible},set:function(e){this._isVisible=e,Object(c["X"])(this._domNode,"hidden",!this._isVisible)},enumerable:!0,configurable:!0}),t.prototype.getId=function(){return this._id},t.prototype.getDomNode=function(){return this._domNode},t.prototype.showAt=function(e){this._showAtLineNumber=e,this.isVisible||(this.isVisible=!0);var t=this._editor.getLayoutInfo(),n=this._editor.getTopForLineNumber(this._showAtLineNumber),i=this._editor.getScrollTop(),r=this._editor.getOption(49),o=this._domNode.clientHeight,s=n-i-(o-r)/2;this._domNode.style.left=t.glyphMarginLeft+t.glyphMarginWidth+"px",this._domNode.style.top=Math.max(Math.round(s),0)+"px"},t.prototype.hide=function(){this.isVisible&&(this.isVisible=!1)},t.prototype.getPosition=function(){return null},t.prototype.dispose=function(){this._editor.removeOverlayWidget(this),e.prototype.dispose.call(this)},t.prototype.updateFont=function(){var e=this,t=Array.prototype.slice.call(this._domNode.getElementsByTagName("code")),n=Array.prototype.slice.call(this._domNode.getElementsByClassName("code"));ee(t,n).forEach((function(t){return e._editor.applyFontInfo(t)}))},t.prototype.updateContents=function(e){this._domNode.textContent="",this._domNode.appendChild(e),this.updateFont()},t}(F["a"]),ie=n("3qCu"),re=n("tADe"),oe=n("gslv"),se=n("W9cx"),ae=n("T8No"),ue=(n("/oaI"),n("3rx1")),le=(n("e1ni"),n("WqXY")),ce=n("8HAY"),de=n("qj0h"),he=n("N0LK"),fe=n("nB0o"),pe=n("nnTU"),ge=n("Cg/j"),Ae=n("sM1p"),me=n("R3nR"),ve=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),_e=function(e,t,n,i){var r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},ye=function(e,t){return function(n,i){t(n,i,e)}},be=function(e){function t(t,n,i,r,o,s,a,u,l,c){var d=e.call(this,t,i.getRawOptions(),{},r,o,s,a,u,l,c)||this;return d._parentEditor=i,d._overwriteOptions=n,e.prototype.updateOptions.call(d,d._overwriteOptions),d._register(i.onDidChangeConfiguration((function(e){return d._onParentConfigurationChanged(e)}))),d}return ve(t,e),t.prototype.getParentEditor=function(){return this._parentEditor},t.prototype._onParentConfigurationChanged=function(t){e.prototype.updateOptions.call(this,this._parentEditor.getRawOptions()),e.prototype.updateOptions.call(this,this._overwriteOptions)},t.prototype.updateOptions=function(t){de["g"](this._overwriteOptions,t,!0),e.prototype.updateOptions.call(this,this._overwriteOptions)},t=_e([ye(3,ge["a"]),ye(4,S["a"]),ye(5,pe["b"]),ye(6,ae["c"]),ye(7,R["c"]),ye(8,Ae["a"]),ye(9,me["b"])],t),t}(fe["a"]),we=(n("uWgD"),n("cMOf")),Ce=n("nD70"),Se=new h["a"](new h["c"](0,122,204)),Ne={showArrow:!0,showFrame:!0,className:"",frameColor:Se,arrowColor:Se,keepEditorSelection:!1},Le="vs.editor.contrib.zoneWidget",Ee=function(){function e(e,t,n,i,r,o){this.id="",this.domNode=e,this.afterLineNumber=t,this.afterColumn=n,this.heightInLines=i,this._onDomNodeTop=r,this._onComputedHeight=o}return e.prototype.onDomNodeTop=function(e){this._onDomNodeTop(e)},e.prototype.onComputedHeight=function(e){this._onComputedHeight(e)},e}(),xe=function(){function e(e,t){this._id=e,this._domNode=t}return e.prototype.getId=function(){return this._id},e.prototype.getDomNode=function(){return this._domNode},e.prototype.getPosition=function(){return null},e}(),Oe=function(){function e(t){this._editor=t,this._ruleName=e._IdGenerator.nextId(),this._decorations=[],this._color=null,this._height=-1}return e.prototype.dispose=function(){this.hide(),c["N"](this._ruleName)},Object.defineProperty(e.prototype,"color",{set:function(e){this._color!==e&&(this._color=e,this._updateStyle())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{set:function(e){this._height!==e&&(this._height=e,this._updateStyle())},enumerable:!0,configurable:!0}),e.prototype._updateStyle=function(){c["N"](this._ruleName),c["u"](".monaco-editor "+this._ruleName,"border-style: solid; border-color: transparent; border-bottom-color: "+this._color+"; border-width: "+this._height+"px; bottom: -"+this._height+"px; margin-left: -"+this._height+"px; ")},e.prototype.show=function(e){this._decorations=this._editor.deltaDecorations(this._decorations,[{range:a["a"].fromPositions(e),options:{className:this._ruleName,stickiness:1}}])},e.prototype.hide=function(){this._editor.deltaDecorations(this._decorations,[])},e._IdGenerator=new Ce["a"](".arrow-decoration-"),e}(),Be=function(){function e(e,t){var n=this;void 0===t&&(t={}),this._arrow=null,this._overlayWidget=null,this._resizeSash=null,this._positionMarkerId=[],this._viewZone=null,this._disposables=new o["b"],this.container=null,this._isShowing=!1,this.editor=e,this.options=de["c"](t),de["g"](this.options,Ne,!1),this.domNode=document.createElement("div"),this.options.isAccessible||(this.domNode.setAttribute("aria-hidden","true"),this.domNode.setAttribute("role","presentation")),this._disposables.add(this.editor.onDidLayoutChange((function(e){var t=n._getWidth(e);n.domNode.style.width=t+"px",n.domNode.style.left=n._getLeft(e)+"px",n._onWidth(t)})))}return e.prototype.dispose=function(){var e=this;this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._viewZone&&this.editor.changeViewZones((function(t){e._viewZone&&t.removeZone(e._viewZone.id),e._viewZone=null})),this.editor.deltaDecorations(this._positionMarkerId,[]),this._positionMarkerId=[],this._disposables.dispose()},e.prototype.create=function(){c["e"](this.domNode,"zone-widget"),this.options.className&&c["e"](this.domNode,this.options.className),this.container=document.createElement("div"),c["e"](this.container,"zone-widget-container"),this.domNode.appendChild(this.container),this.options.showArrow&&(this._arrow=new Oe(this.editor),this._disposables.add(this._arrow)),this._fillContainer(this.container),this._initSash(),this._applyStyles()},e.prototype.style=function(e){e.frameColor&&(this.options.frameColor=e.frameColor),e.arrowColor&&(this.options.arrowColor=e.arrowColor),this._applyStyles()},e.prototype._applyStyles=function(){if(this.container&&this.options.frameColor){var e=this.options.frameColor.toString();this.container.style.borderTopColor=e,this.container.style.borderBottomColor=e}if(this._arrow&&this.options.arrowColor){var t=this.options.arrowColor.toString();this._arrow.color=t}},e.prototype._getWidth=function(e){return e.width-e.minimapWidth-e.verticalScrollbarWidth},e.prototype._getLeft=function(e){return e.minimapWidth>0&&0===e.minimapLeft?e.minimapWidth:0},e.prototype._onViewZoneTop=function(e){this.domNode.style.top=e+"px"},e.prototype._onViewZoneHeight=function(e){if(this.domNode.style.height=e+"px",this.container){var t=e-this._decoratingElementsHeight();this.container.style.height=t+"px";var n=this.editor.getLayoutInfo();this._doLayout(t,this._getWidth(n))}this._resizeSash&&this._resizeSash.layout()},Object.defineProperty(e.prototype,"position",{get:function(){var e=this._positionMarkerId[0];if(e){var t=this.editor.getModel();if(t){var n=t.getDecorationRange(e);if(n)return n.getStartPosition()}}},enumerable:!0,configurable:!0}),e.prototype.show=function(e,t){var n=a["a"].isIRange(e)?a["a"].lift(e):a["a"].fromPositions(e);this._isShowing=!0,this._showImpl(n,t),this._isShowing=!1,this._positionMarkerId=this.editor.deltaDecorations(this._positionMarkerId,[{range:n,options:g["a"].EMPTY}])},e.prototype.hide=function(){var e=this;this._viewZone&&(this.editor.changeViewZones((function(t){e._viewZone&&t.removeZone(e._viewZone.id)})),this._viewZone=null),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._arrow&&this._arrow.hide()},e.prototype._decoratingElementsHeight=function(){var e=this.editor.getOption(49),t=0;if(this.options.showArrow){var n=Math.round(e/3);t+=2*n}if(this.options.showFrame){var i=Math.round(e/9);t+=2*i}return t},e.prototype._showImpl=function(e,t){var n=this,i=e.getStartPosition(),r=this.editor.getLayoutInfo(),o=this._getWidth(r);this.domNode.style.width=o+"px",this.domNode.style.left=this._getLeft(r)+"px";var s=document.createElement("div");s.style.overflow="hidden";var a=this.editor.getOption(49),u=this.editor.getLayoutInfo().height/a*.8;t>=u&&(t=u);var l=0,c=0;if(this._arrow&&this.options.showArrow&&(l=Math.round(a/3),this._arrow.height=l,this._arrow.show(i)),this.options.showFrame&&(c=Math.round(a/9)),this.editor.changeViewZones((function(e){n._viewZone&&e.removeZone(n._viewZone.id),n._overlayWidget&&(n.editor.removeOverlayWidget(n._overlayWidget),n._overlayWidget=null),n.domNode.style.top="-1000px",n._viewZone=new Ee(s,i.lineNumber,i.column,t,(function(e){return n._onViewZoneTop(e)}),(function(e){return n._onViewZoneHeight(e)})),n._viewZone.id=e.addZone(n._viewZone),n._overlayWidget=new xe(Le+n._viewZone.id,n.domNode),n.editor.addOverlayWidget(n._overlayWidget)})),this.container&&this.options.showFrame){var d=this.options.frameWidth?this.options.frameWidth:c;this.container.style.borderTopWidth=d+"px",this.container.style.borderBottomWidth=d+"px"}var h=t*a-this._decoratingElementsHeight();this.container&&(this.container.style.top=l+"px",this.container.style.height=h+"px",this.container.style.overflow="hidden"),this._doLayout(h,o),this.options.keepEditorSelection||this.editor.setSelection(e);var f=this.editor.getModel();if(f){var p=e.endLineNumber+1;p<=f.getLineCount()?this.revealLine(p,!1):this.revealLine(f.getLineCount(),!0)}},e.prototype.revealLine=function(e,t){t?this.editor.revealLineInCenter(e,0):this.editor.revealLine(e,0)},e.prototype.setCssClass=function(e,t){this.container&&(t&&this.container.classList.remove(t),c["e"](this.container,e))},e.prototype._onWidth=function(e){},e.prototype._doLayout=function(e,t){},e.prototype._relayout=function(e){var t=this;this._viewZone&&this._viewZone.heightInLines!==e&&this.editor.changeViewZones((function(n){t._viewZone&&(t._viewZone.heightInLines=e,n.layoutZone(t._viewZone.id))}))},e.prototype._initSash=function(){var e,t=this;this._resizeSash||(this._resizeSash=this._disposables.add(new we["a"](this.domNode,this,{orientation:1})),this.options.isResizeable||(this._resizeSash.hide(),this._resizeSash.state=0),this._disposables.add(this._resizeSash.onDidStart((function(n){t._viewZone&&(e={startY:n.startY,heightInLines:t._viewZone.heightInLines})}))),this._disposables.add(this._resizeSash.onDidEnd((function(){e=void 0}))),this._disposables.add(this._resizeSash.onDidChange((function(n){if(e){var i=(n.currentY-e.startY)/t.editor.getOption(49),r=i<0?Math.ceil(i):Math.floor(i),o=e.heightInLines+r;o>5&&o<35&&t._relayout(o)}}))))},e.prototype.getHorizontalSashLeft=function(){return 0},e.prototype.getHorizontalSashTop=function(){return(null===this.domNode.style.height?0:parseInt(this.domNode.style.height))-this._decoratingElementsHeight()/2},e.prototype.getHorizontalSashWidth=function(){var e=this.editor.getLayoutInfo();return e.width-e.minimapWidth},e}(),ke=n("9fML"),De=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Ie=function(e,t,n,i){var r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Me=function(e,t){return function(n,i){t(n,i,e)}},Fe=Object(ge["c"])("IPeekViewService");Object(ke["b"])(Fe,function(){function e(){this._widgets=new Map}return e.prototype.addExclusiveWidget=function(e,t){var n=this,i=this._widgets.get(e);i&&(i.listener.dispose(),i.widget.dispose());var r=function(){var i=n._widgets.get(e);i&&i.widget===t&&(i.listener.dispose(),n._widgets.delete(e))};this._widgets.set(e,{widget:t,listener:t.onDidClose(r)})},e}()),function(e){e.inPeekEditor=new ae["d"]("inReferenceSearchEditor",!0),e.notInPeekEditor=e.inPeekEditor.toNegated()}(Y||(Y={}));var Te=function(){function e(e,t){e instanceof be&&Y.inPeekEditor.bindTo(t)}return e.prototype.dispose=function(){},e.ID="editor.contrib.referenceController",e=Ie([Me(1,ae["c"])],e),e}();function Re(e){var t=e.get(S["a"]).getFocusedCodeEditor();return t instanceof be?t.getParentEditor():t}Object(s["h"])(Te.ID,Te);var Pe,Ue={headerBackgroundColor:h["a"].white,primaryHeadingColor:h["a"].fromHex("#333333"),secondaryHeadingColor:h["a"].fromHex("#6c6c6cb3")},He=function(e){function t(t,n){void 0===n&&(n={});var i=e.call(this,t,n)||this;return i._onDidClose=new k["a"],i.onDidClose=i._onDidClose.event,de["g"](i.options,Ue,!1),i}return De(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._onDidClose.fire(this)},t.prototype.style=function(t){var n=this.options;t.headerBackgroundColor&&(n.headerBackgroundColor=t.headerBackgroundColor),t.primaryHeadingColor&&(n.primaryHeadingColor=t.primaryHeadingColor),t.secondaryHeadingColor&&(n.secondaryHeadingColor=t.secondaryHeadingColor),e.prototype.style.call(this,t)},t.prototype._applyStyles=function(){e.prototype._applyStyles.call(this);var t=this.options;this._headElement&&t.headerBackgroundColor&&(this._headElement.style.backgroundColor=t.headerBackgroundColor.toString()),this._primaryHeading&&t.primaryHeadingColor&&(this._primaryHeading.style.color=t.primaryHeadingColor.toString()),this._secondaryHeading&&t.secondaryHeadingColor&&(this._secondaryHeading.style.color=t.secondaryHeadingColor.toString()),this._bodyElement&&t.frameColor&&(this._bodyElement.style.borderColor=t.frameColor.toString())},t.prototype._fillContainer=function(e){this.setCssClass("peekview-widget"),this._headElement=c["a"](".head"),this._bodyElement=c["a"](".body"),this._fillHead(this._headElement),this._fillBody(this._bodyElement),e.appendChild(this._headElement),e.appendChild(this._bodyElement)},t.prototype._fillHead=function(e){var t=this,n=c["a"](".peekview-title");c["p"](this._headElement,n),c["n"](n,"click",(function(e){return t._onTitleClick(e)})),this._fillTitleIcon(n),this._primaryHeading=c["a"]("span.filename"),this._secondaryHeading=c["a"]("span.dirname"),this._metaHeading=c["a"]("span.meta"),c["p"](n,this._primaryHeading,this._secondaryHeading,this._metaHeading);var r=c["a"](".peekview-actions");c["p"](this._headElement,r);var o=this._getActionBarOptions();this._actionbarWidget=new le["a"](r,o),this._disposables.add(this._actionbarWidget),this._actionbarWidget.push(new ce["a"]("peekview.close",i["a"]("label.close","Close"),"codicon-close",!0,(function(){return t.dispose(),Promise.resolve()})),{label:!1,icon:!0})},t.prototype._fillTitleIcon=function(e){},t.prototype._getActionBarOptions=function(){return{}},t.prototype._onTitleClick=function(e){},t.prototype.setTitle=function(e,t){this._primaryHeading&&this._secondaryHeading&&(this._primaryHeading.innerHTML=he["o"](e),this._primaryHeading.setAttribute("aria-label",e),t?this._secondaryHeading.innerHTML=he["o"](t):c["s"](this._secondaryHeading))},t.prototype.setMetaTitle=function(e){this._metaHeading&&(e?(this._metaHeading.innerHTML=he["o"](e),c["W"](this._metaHeading)):c["I"](this._metaHeading))},t.prototype._doLayout=function(e,t){if(!this._isShowing&&e<0)this.dispose();else{var n=Math.ceil(1.2*this.editor.getOption(49)),i=Math.round(e-(n+2));this._doLayoutHead(n,t),this._doLayoutBody(i,t)}},t.prototype._doLayoutHead=function(e,t){this._headElement&&(this._headElement.style.height=e+"px",this._headElement.style.lineHeight=this._headElement.style.height)},t.prototype._doLayoutBody=function(e,t){this._bodyElement&&(this._bodyElement.style.height=e+"px")},t}(Be),je=Object(T["Rb"])("peekViewTitle.background",{dark:"#1E1E1E",light:"#FFFFFF",hc:"#0C141F"},i["a"]("peekViewTitleBackground","Background color of the peek view title area.")),Qe=Object(T["Rb"])("peekViewTitleLabel.foreground",{dark:"#FFFFFF",light:"#333333",hc:"#FFFFFF"},i["a"]("peekViewTitleForeground","Color of the peek view title.")),Ve=Object(T["Rb"])("peekViewTitleDescription.foreground",{dark:"#ccccccb3",light:"#616161e6",hc:"#FFFFFF99"},i["a"]("peekViewTitleInfoForeground","Color of the peek view title info.")),We=Object(T["Rb"])("peekView.border",{dark:"#007acc",light:"#007acc",hc:T["e"]},i["a"]("peekViewBorder","Color of the peek view borders and arrow.")),ze=Object(T["Rb"])("peekViewResult.background",{dark:"#252526",light:"#F3F3F3",hc:h["a"].black},i["a"]("peekViewResultsBackground","Background color of the peek view result list.")),Ke=Object(T["Rb"])("peekViewResult.lineForeground",{dark:"#bbbbbb",light:"#646465",hc:h["a"].white},i["a"]("peekViewResultsMatchForeground","Foreground color for line nodes in the peek view result list.")),qe=Object(T["Rb"])("peekViewResult.fileForeground",{dark:h["a"].white,light:"#1E1E1E",hc:h["a"].white},i["a"]("peekViewResultsFileForeground","Foreground color for file nodes in the peek view result list.")),Ge=Object(T["Rb"])("peekViewResult.selectionBackground",{dark:"#3399ff33",light:"#3399ff33",hc:null},i["a"]("peekViewResultsSelectionBackground","Background color of the selected entry in the peek view result list.")),Xe=Object(T["Rb"])("peekViewResult.selectionForeground",{dark:h["a"].white,light:"#6C6C6C",hc:h["a"].white},i["a"]("peekViewResultsSelectionForeground","Foreground color of the selected entry in the peek view result list.")),Ye=Object(T["Rb"])("peekViewEditor.background",{dark:"#001F33",light:"#F2F8FC",hc:h["a"].black},i["a"]("peekViewEditorBackground","Background color of the peek view editor.")),Je=Object(T["Rb"])("peekViewEditorGutter.background",{dark:Ye,light:Ye,hc:Ye},i["a"]("peekViewEditorGutterBackground","Background color of the gutter in the peek view editor.")),Ze=Object(T["Rb"])("peekViewResult.matchHighlightBackground",{dark:"#ea5c004d",light:"#ea5c004d",hc:null},i["a"]("peekViewResultsMatchHighlight","Match highlight color in the peek view result list.")),$e=Object(T["Rb"])("peekViewEditor.matchHighlightBackground",{dark:"#ff8f0099",light:"#f5d802de",hc:null},i["a"]("peekViewEditorMatchHighlight","Match highlight color in the peek view editor.")),et=Object(T["Rb"])("peekViewEditor.matchHighlightBorder",{dark:null,light:null,hc:T["b"]},i["a"]("peekViewEditorMatchHighlightBorder","Match highlight border in the peek view editor.")),tt=n("S3by");(function(e){function t(e){switch(e){case tt["a"].Ignore:return"severity-ignore codicon-info";case tt["a"].Info:return"codicon-info";case tt["a"].Warning:return"codicon-warning";case tt["a"].Error:return"codicon-error"}return""}e.className=t})(Pe||(Pe={})),Object(R["e"])((function(e,t){var n=e.getColor(T["Nb"]);n&&t.addRule("\n\t\t\t.monaco-editor .zone-widget .codicon-error,\n\t\t\t.markers-panel .marker-icon.codicon-error,\n\t\t\t.extensions-viewlet > .extensions .codicon-error,\n\t\t\t.monaco-dialog-box .dialog-message-row .codicon-error {\n\t\t\t\tcolor: "+n+";\n\t\t\t}\n\t\t");var i=e.getColor(T["Pb"]);n&&t.addRule("\n\t\t\t.monaco-editor .zone-widget .codicon-warning,\n\t\t\t.markers-panel .marker-icon.codicon-warning,\n\t\t\t.extensions-viewlet > .extensions .codicon-warning,\n\t\t\t.extension-editor .codicon-warning,\n\t\t\t.monaco-dialog-box .dialog-message-row .codicon-warning {\n\t\t\t\tcolor: "+i+";\n\t\t\t}\n\t\t");var r=e.getColor(T["Ob"]);n&&t.addRule("\n\t\t\t.monaco-editor .zone-widget .codicon-info,\n\t\t\t.markers-panel .marker-icon.codicon-info,\n\t\t\t.extensions-viewlet > .extensions .codicon-info,\n\t\t\t.extension-editor .codicon-info,\n\t\t\t.monaco-dialog-box .dialog-message-row .codicon-info {\n\t\t\t\tcolor: "+r+";\n\t\t\t}\n\t\t")}));var nt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),it=function(){function e(e,t,n,i){var r=this;this._openerService=i,this._lines=0,this._longestLineLength=0,this._relatedDiagnostics=new WeakMap,this._disposables=new o["b"],this._editor=t;var s=document.createElement("div");s.className="descriptioncontainer",s.setAttribute("aria-live","assertive"),s.setAttribute("role","alert"),this._messageBlock=document.createElement("div"),c["e"](this._messageBlock,"message"),s.appendChild(this._messageBlock),this._relatedBlock=document.createElement("div"),s.appendChild(this._relatedBlock),this._disposables.add(c["n"](this._relatedBlock,"click",(function(e){e.preventDefault();var t=r._relatedDiagnostics.get(e.target);t&&n(t)}))),this._scrollable=new Z["b"](s,{horizontal:1,vertical:1,useShadows:!1,horizontalScrollbarSize:3,verticalScrollbarSize:3}),e.appendChild(this._scrollable.getDomNode()),this._disposables.add(this._scrollable.onScroll((function(e){s.style.left="-"+e.scrollLeft+"px",s.style.top="-"+e.scrollTop+"px"}))),this._disposables.add(this._scrollable)}return e.prototype.dispose=function(){Object(o["f"])(this._disposables)},e.prototype.update=function(e){var t=this,n=e.source,i=e.message,r=e.relatedInformation,o=e.code,s=((null===n||void 0===n?void 0:n.length)||0)+"()".length;o&&(s+="string"===typeof o?o.length:o.value.length);var a=i.split(/\r\n|\r|\n/g);this._lines=a.length,this._longestLineLength=0;for(var u=0,l=a;u<l.length;u++){var d=l[u];this._longestLineLength=Math.max(d.length+s,this._longestLineLength)}c["s"](this._messageBlock),this._editor.applyFontInfo(this._messageBlock);for(var h=this._messageBlock,f=0,p=a;f<p.length;f++){d=p[f];h=document.createElement("div"),h.innerText=d,""===d&&(h.style.height=this._messageBlock.style.lineHeight),this._messageBlock.appendChild(h)}if(n||o){var g=document.createElement("span");if(c["e"](g,"details"),h.appendChild(g),n){var A=document.createElement("span");A.innerText=n,c["e"](A,"source"),g.appendChild(A)}if(o)if("string"===typeof o){var m=document.createElement("span");m.innerText="("+o+")",c["e"](m,"code"),g.appendChild(m)}else{this._codeLink=c["a"]("a.code-link"),this._codeLink.setAttribute("href",""+o.link.toString()),this._codeLink.onclick=function(e){t._openerService.open(o.link),e.preventDefault(),e.stopPropagation()};m=c["p"](this._codeLink,c["a"]("span"));m.innerText=o.value,g.appendChild(this._codeLink)}}if(c["s"](this._relatedBlock),this._editor.applyFontInfo(this._relatedBlock),Object(q["q"])(r)){var v=this._relatedBlock.appendChild(document.createElement("div"));v.style.paddingTop=Math.floor(.66*this._editor.getOption(49))+"px",this._lines+=1;for(var _=0,y=r;_<y.length;_++){var b=y[_],w=document.createElement("div"),C=document.createElement("a");c["e"](C,"filename"),C.innerHTML=Object(ue["a"])(b.resource)+"("+b.startLineNumber+", "+b.startColumn+"): ",C.title=Object(ue["b"])(b.resource,void 0),this._relatedDiagnostics.set(C,b);var S=document.createElement("span");S.innerText=b.message,w.appendChild(C),w.appendChild(S),this._lines+=1,v.appendChild(w)}}var N=this._editor.getOption(34),L=Math.ceil(N.typicalFullwidthCharacterWidth*this._longestLineLength*.75),E=N.lineHeight*this._lines;this._scrollable.setScrollDimensions({scrollWidth:L,scrollHeight:E})},e.prototype.layout=function(e,t){this._scrollable.getDomNode().style.height=e+"px",this._scrollable.getDomNode().style.width=t+"px",this._scrollable.setScrollDimensions({width:t,height:e})},e.prototype.getHeightInLines=function(){return Math.min(17,this._lines)},e}(),rt=function(e){function t(t,n,i,r){var s=e.call(this,t,{showArrow:!0,showFrame:!0,isAccessible:!0})||this;return s.actions=n,s._themeService=i,s._openerService=r,s._callOnDispose=new o["b"],s._onDidSelectRelatedInformation=new k["a"],s.onDidSelectRelatedInformation=s._onDidSelectRelatedInformation.event,s._severity=re["c"].Warning,s._backgroundColor=h["a"].white,s._applyTheme(i.getTheme()),s._callOnDispose.add(i.onThemeChange(s._applyTheme.bind(s))),s.create(),s}return nt(t,e),t.prototype._applyTheme=function(e){this._backgroundColor=e.getColor(dt);var t=ut;this._severity===re["c"].Warning?t=lt:this._severity===re["c"].Info&&(t=ct);var n=e.getColor(t);this.style({arrowColor:n,frameColor:n,headerBackgroundColor:this._backgroundColor,primaryHeadingColor:e.getColor(Qe),secondaryHeadingColor:e.getColor(Ve)})},t.prototype._applyStyles=function(){this._parentContainer&&(this._parentContainer.style.backgroundColor=this._backgroundColor?this._backgroundColor.toString():""),e.prototype._applyStyles.call(this)},t.prototype.dispose=function(){this._callOnDispose.dispose(),e.prototype.dispose.call(this)},t.prototype._fillHead=function(t){e.prototype._fillHead.call(this,t),this._actionbarWidget.push(this.actions,{label:!1,icon:!0,index:0})},t.prototype._fillTitleIcon=function(e){this._icon=c["p"](e,c["a"](""))},t.prototype._getActionBarOptions=function(){return{orientation:0}},t.prototype._fillBody=function(e){var t=this;this._parentContainer=e,c["e"](e,"marker-widget"),this._parentContainer.tabIndex=0,this._parentContainer.setAttribute("role","tooltip"),this._container=document.createElement("div"),e.appendChild(this._container),this._message=new it(this._container,this.editor,(function(e){return t._onDidSelectRelatedInformation.fire(e)}),this._openerService),this._disposables.add(this._message)},t.prototype.show=function(e,t){throw new Error("call showAtMarker")},t.prototype.showAtMarker=function(t,n,r){this._container.classList.remove("stale"),this._message.update(t),this._severity=t.severity,this._applyTheme(this._themeService.getTheme());var o=a["a"].lift(t),s=this.editor.getPosition(),u=s&&o.containsPosition(s)?s:o.getStartPosition();e.prototype.show.call(this,u,this.computeRequiredHeight());var l=this.editor.getModel();if(l){var c=r>1?i["a"]("problems","{0} of {1} problems",n,r):i["a"]("change","{0} of {1} problem",n,r);this.setTitle(Object(oe["b"])(l.uri),c)}this._icon.className="codicon "+Pe.className(re["c"].toSeverity(this._severity)),this.editor.revealPositionInCenter(u,0),this.editor.focus()},t.prototype.updateMarker=function(e){this._container.classList.remove("stale"),this._message.update(e)},t.prototype.showStale=function(){this._container.classList.add("stale"),this._relayout()},t.prototype._doLayoutBody=function(t,n){e.prototype._doLayoutBody.call(this,t,n),this._heightInPixel=t,this._message.layout(t,n),this._container.style.height=t+"px"},t.prototype._onWidth=function(e){this._message.layout(this._heightInPixel,e)},t.prototype._relayout=function(){e.prototype._relayout.call(this,this.computeRequiredHeight())},t.prototype.computeRequiredHeight=function(){return 3+this._message.getHeightInLines()},t}(He),ot=Object(T["Jb"])(T["q"],T["p"]),st=Object(T["Jb"])(T["O"],T["N"]),at=Object(T["Jb"])(T["H"],T["G"]),ut=Object(T["Rb"])("editorMarkerNavigationError.background",{dark:ot,light:ot,hc:ot},i["a"]("editorMarkerNavigationError","Editor marker navigation widget error color.")),lt=Object(T["Rb"])("editorMarkerNavigationWarning.background",{dark:st,light:st,hc:st},i["a"]("editorMarkerNavigationWarning","Editor marker navigation widget warning color.")),ct=Object(T["Rb"])("editorMarkerNavigationInfo.background",{dark:at,light:at,hc:at},i["a"]("editorMarkerNavigationInfo","Editor marker navigation widget info color.")),dt=Object(T["Rb"])("editorMarkerNavigation.background",{dark:"#2D2D30",light:h["a"].white,hc:"#0C141F"},i["a"]("editorMarkerNavigationBackground","Editor marker navigation widget background."));Object(R["e"])((function(e,t){var n=e.getColor(T["cc"]);n&&(t.addRule(".monaco-editor .marker-widget a { color: "+n+"; }"),t.addRule(".monaco-editor .marker-widget a.code-link span:hover { color: "+n+"; }"))}));var ht=n("fjLI"),ft=n("bexQ"),pt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),gt=function(e,t,n,i){var r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},At=function(e,t){return function(n,i){t(n,i,e)}},mt=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{u(i.next(e))}catch(t){o(t)}}function a(e){try{u(i["throw"](e))}catch(t){o(t)}}function u(e){e.done?n(e.value):r(e.value).then(s,a)}u((i=i.apply(e,t||[])).next())}))},vt=function(e,t){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(e){return function(t){return u([e,t])}}function u(o){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,i&&(r=2&o[0]?i["return"]:o[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(r=s.trys,!(r=r.length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(a){o=[6,a],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},_t=function(){function e(e,t){var n=this;this._toUnbind=new o["b"],this._editor=e,this._markers=[],this._nextIdx=-1,this._ignoreSelectionChange=!1,this._onCurrentMarkerChanged=new k["a"],this._onMarkerSetChanged=new k["a"],this.setMarkers(t),this._toUnbind.add(this._editor.onDidDispose((function(){return n.dispose()}))),this._toUnbind.add(this._editor.onDidChangeCursorPosition((function(){n._ignoreSelectionChange||n.currentMarker&&n._editor.getPosition()&&a["a"].containsPosition(n.currentMarker,n._editor.getPosition())||(n._nextIdx=-1)})))}return Object.defineProperty(e.prototype,"onCurrentMarkerChanged",{get:function(){return this._onCurrentMarkerChanged.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onMarkerSetChanged",{get:function(){return this._onMarkerSetChanged.event},enumerable:!0,configurable:!0}),e.prototype.setMarkers=function(e){var t=this._nextIdx>=0?this._markers[this._nextIdx]:void 0;this._markers=e||[],this._markers.sort(bt.compareMarker),this._nextIdx=t?Math.max(-1,Object(q["c"])(this._markers,t,bt.compareMarker)):-1,this._onMarkerSetChanged.fire(this)},e.prototype.withoutWatchingEditorPosition=function(e){this._ignoreSelectionChange=!0;try{e()}finally{this._ignoreSelectionChange=!1}},e.prototype._initIdx=function(e){for(var t=!1,n=this._editor.getPosition(),i=0;i<this._markers.length;i++){var r=a["a"].lift(this._markers[i]);if(r.isEmpty()&&this._editor.getModel()){var o=this._editor.getModel().getWordAtPosition(r.getStartPosition());o&&(r=new a["a"](r.startLineNumber,o.startColumn,r.startLineNumber,o.endColumn))}if(n&&(r.containsPosition(n)||n.isBeforeOrEqual(r.getStartPosition()))){this._nextIdx=i,t=!0;break}}t||(this._nextIdx=e?0:this._markers.length-1),this._nextIdx<0&&(this._nextIdx=this._markers.length-1)},Object.defineProperty(e.prototype,"currentMarker",{get:function(){return this.canNavigate()?this._markers[this._nextIdx]:void 0},set:function(e){var t=this._nextIdx;this._nextIdx=-1,e&&(this._nextIdx=this.indexOf(e)),this._nextIdx!==t&&this._onCurrentMarkerChanged.fire(e)},enumerable:!0,configurable:!0}),e.prototype.move=function(e,t){if(!this.canNavigate())return this._onCurrentMarkerChanged.fire(void 0),!t;var n=this._nextIdx,i=!1;if(-1===this._nextIdx?this._initIdx(e):e?t||this._nextIdx+1<this._markers.length?this._nextIdx=(this._nextIdx+1)%this._markers.length:i=!0:e||(t||this._nextIdx>0?this._nextIdx=(this._nextIdx-1+this._markers.length)%this._markers.length:i=!0),n!==this._nextIdx){var r=this._markers[this._nextIdx];this._onCurrentMarkerChanged.fire(r)}return i},e.prototype.canNavigate=function(){return this._markers.length>0},e.prototype.findMarkerAtPosition=function(e){return Object(q["h"])(this._markers,(function(t){return a["a"].containsPosition(t,e)}))},Object.defineProperty(e.prototype,"total",{get:function(){return this._markers.length},enumerable:!0,configurable:!0}),e.prototype.indexOf=function(e){return 1+this._markers.indexOf(e)},e.prototype.dispose=function(){this._toUnbind.dispose()},e}(),yt=function(){function e(e,t,n,i,r,s,a){this._markerService=t,this._contextKeyService=n,this._themeService=i,this._editorService=r,this._keybindingService=s,this._openerService=a,this._model=null,this._widget=null,this._disposeOnClose=new o["b"],this._editor=e,this._widgetVisible=Lt.bindTo(this._contextKeyService)}return e.get=function(t){return t.getContribution(e.ID)},e.prototype.dispose=function(){this._cleanUp(),this._disposeOnClose.dispose()},e.prototype._cleanUp=function(){this._widgetVisible.reset(),this._disposeOnClose.clear(),this._widget=null,this._model=null},e.prototype.getOrCreateModel=function(){var e=this;if(this._model)return this._model;var t=this._getMarkers();this._model=new _t(this._editor,t),this._markerService.onMarkerChanged(this._onMarkerChanged,this,this._disposeOnClose);var n=this._keybindingService.lookupKeybinding(Ct.ID),i=this._keybindingService.lookupKeybinding(wt.ID),r=[new ce["a"](wt.ID,wt.LABEL+(i?" ("+i.getLabel()+")":""),"show-next-problem codicon-chevron-down",this._model.canNavigate(),(function(){return mt(e,void 0,void 0,(function(){return vt(this,(function(e){return this._model&&this._model.move(!0,!0),[2]}))}))})),new ce["a"](Ct.ID,Ct.LABEL+(n?" ("+n.getLabel()+")":""),"show-previous-problem codicon-chevron-up",this._model.canNavigate(),(function(){return mt(e,void 0,void 0,(function(){return vt(this,(function(e){return this._model&&this._model.move(!1,!0),[2]}))}))}))];this._widget=new rt(this._editor,r,this._themeService,this._openerService),this._widgetVisible.set(!0),this._widget.onDidClose((function(){return e.closeMarkersNavigation()}),this,this._disposeOnClose),this._disposeOnClose.add(this._model),this._disposeOnClose.add(this._widget);for(var o=0,s=r;o<s.length;o++){var u=s[o];this._disposeOnClose.add(u)}return this._disposeOnClose.add(this._widget.onDidSelectRelatedInformation((function(t){e._editorService.openCodeEditor({resource:t.resource,options:{pinned:!0,revealIfOpened:!0,selection:a["a"].lift(t).collapseToStart()}},e._editor).then(void 0,m["e"]),e.closeMarkersNavigation(!1)}))),this._disposeOnClose.add(this._editor.onDidChangeModel((function(){return e._cleanUp()}))),this._disposeOnClose.add(this._model.onCurrentMarkerChanged((function(t){t&&e._model?e._model.withoutWatchingEditorPosition((function(){e._widget&&e._model&&e._widget.showAtMarker(t,e._model.indexOf(t),e._model.total)})):e._cleanUp()}))),this._disposeOnClose.add(this._model.onMarkerSetChanged((function(){if(e._widget&&e._widget.position&&e._model){var t=e._model.findMarkerAtPosition(e._widget.position);t?e._widget.updateMarker(t):e._widget.showStale()}}))),this._model},e.prototype.closeMarkersNavigation=function(e){void 0===e&&(e=!0),this._cleanUp(),e&&this._editor.focus()},e.prototype.show=function(e){var t=this.getOrCreateModel();t.currentMarker=e},e.prototype._onMarkerChanged=function(e){var t=this._editor.getModel();t&&this._model&&e.some((function(e){return Object(oe["e"])(t.uri,e)}))&&this._model.setMarkers(this._getMarkers())},e.prototype._getMarkers=function(){var e=this._editor.getModel();return e?this._markerService.read({resource:e.uri,severities:re["c"].Error|re["c"].Warning|re["c"].Info}):[]},e.ID="editor.contrib.markerController",e=gt([At(1,re["b"]),At(2,ae["c"]),At(3,R["c"]),At(4,S["a"]),At(5,ft["a"]),At(6,se["a"])],e),e}(),bt=function(e){function t(t,n,i){var r=e.call(this,i)||this;return r._isNext=t,r._multiFile=n,r}return pt(t,e),t.prototype.run=function(e,n){var i=this,r=e.get(re["b"]),o=e.get(S["a"]),s=yt.get(n);if(!s)return Promise.resolve(void 0);var a=s.getOrCreateModel(),u=a.move(this._isNext,!this._multiFile);if(!u||!this._multiFile)return Promise.resolve(void 0);var l=r.read({severities:re["c"].Error|re["c"].Warning|re["c"].Info}).sort(t.compareMarker);if(0===l.length)return Promise.resolve(void 0);var c=n.getModel();if(!c)return Promise.resolve(void 0);var d=a.currentMarker||{resource:c.uri,severity:re["c"].Error,startLineNumber:1,startColumn:1,endLineNumber:1,endColumn:1},h=Object(q["c"])(l,d,t.compareMarker);h<0?(h=~h,h%=l.length):h=this._isNext?(h+1)%l.length:(h+l.length-1)%l.length;var f=l[h];return Object(oe["e"])(f.resource,c.uri)?(a.move(this._isNext,!0),Promise.resolve(void 0)):(s.closeMarkersNavigation(),o.openCodeEditor({resource:f.resource,options:{pinned:!1,revealIfOpened:!0,revealInCenterIfOutsideViewport:!0,selection:f}},n).then((function(e){if(e)return e.getAction(i.id).run()})))},t.compareMarker=function(e,t){var n=Object(he["e"])(e.resource.toString(),t.resource.toString());return 0===n&&(n=re["c"].compare(e.severity,t.severity)),0===n&&(n=a["a"].compareRangesUsingStarts(e,t)),n},t}(s["b"]),wt=function(e){function t(){return e.call(this,!0,!1,{id:t.ID,label:t.LABEL,alias:"Go to Next Problem (Error, Warning, Info)",precondition:u["a"].writable,kbOpts:{kbExpr:u["a"].focus,primary:578,weight:100}})||this}return pt(t,e),t.ID="editor.action.marker.next",t.LABEL=i["a"]("markerAction.next.label","Go to Next Problem (Error, Warning, Info)"),t}(bt),Ct=function(e){function t(){return e.call(this,!1,!1,{id:t.ID,label:t.LABEL,alias:"Go to Previous Problem (Error, Warning, Info)",precondition:u["a"].writable,kbOpts:{kbExpr:u["a"].focus,primary:1602,weight:100}})||this}return pt(t,e),t.ID="editor.action.marker.prev",t.LABEL=i["a"]("markerAction.previous.label","Go to Previous Problem (Error, Warning, Info)"),t}(bt),St=function(e){function t(){return e.call(this,!0,!0,{id:"editor.action.marker.nextInFiles",label:i["a"]("markerAction.nextInFiles.label","Go to Next Problem in Files (Error, Warning, Info)"),alias:"Go to Next Problem in Files (Error, Warning, Info)",precondition:u["a"].writable,kbOpts:{kbExpr:u["a"].focus,primary:66,weight:100}})||this}return pt(t,e),t}(bt),Nt=function(e){function t(){return e.call(this,!1,!0,{id:"editor.action.marker.prevInFiles",label:i["a"]("markerAction.previousInFiles.label","Go to Previous Problem in Files (Error, Warning, Info)"),alias:"Go to Previous Problem in Files (Error, Warning, Info)",precondition:u["a"].writable,kbOpts:{kbExpr:u["a"].focus,primary:1090,weight:100}})||this}return pt(t,e),t}(bt);Object(s["h"])(yt.ID,yt),Object(s["f"])(wt),Object(s["f"])(Ct),Object(s["f"])(St),Object(s["f"])(Nt);var Lt=new ae["d"]("markersNavigationVisible",!1),Et=s["c"].bindToContribution(yt.get);Object(s["g"])(new Et({id:"closeMarkersNavigation",precondition:Lt,handler:function(e){return e.closeMarkersNavigation()},kbOpts:{weight:150,kbExpr:u["a"].focus,primary:9,secondary:[1033]}})),ht["c"].appendMenuItem(19,{group:"6_problem_nav",command:{id:"editor.action.marker.nextInFiles",title:i["a"]({key:"miGotoNextProblem",comment:["&& denotes a mnemonic"]},"Next &&Problem")},order:1}),ht["c"].appendMenuItem(19,{group:"6_problem_nav",command:{id:"editor.action.marker.prevInFiles",title:i["a"]({key:"miGotoPreviousProblem",comment:["&& denotes a mnemonic"]},"Previous &&Problem")},order:2});var xt=n("vATl"),Ot=n("gCVg"),Bt=function(){function e(e){this.value=e}return e.prototype.equals=function(e){return this.value===e.value},e.prototype.contains=function(t){return this.equals(t)||""===this.value||Object(he["M"])(t.value,this.value+e.sep)},e.prototype.intersects=function(e){return this.contains(e)||e.contains(this)},e.prototype.append=function(t){return new e(this.value+e.sep+t)},e.sep=".",e.None=new e("@@none@@"),e.Empty=new e(""),e.QuickFix=new e("quickfix"),e.Refactor=new e("refactor"),e.Source=new e("source"),e.SourceOrganizeImports=e.Source.append("organizeImports"),e.SourceFixAll=e.Source.append("fixAll"),e}();function kt(e,t){return!(e.include&&!e.include.intersects(t))&&((!e.excludes||!e.excludes.some((function(n){return It(t,n,e.include)})))&&!(!e.includeSourceActions&&Bt.Source.contains(t)))}function Dt(e,t){var n=t.kind?new Bt(t.kind):void 0;return!!(!e.include||n&&e.include.contains(n))&&(!(e.excludes&&n&&e.excludes.some((function(t){return It(n,t,e.include)})))&&(!(!e.includeSourceActions&&n&&Bt.Source.contains(n))&&!(e.onlyIncludePreferredActions&&!t.isPreferred)))}function It(e,t,n){return!!t.contains(e)&&(!n||!t.contains(n))}var Mt=function(){function e(e,t,n){this.kind=e,this.apply=t,this.preferred=n}return e.fromUser=function(t,n){return t&&"object"===typeof t?new e(e.getKindFromUser(t,n.kind),e.getApplyFromUser(t,n.apply),e.getPreferredUser(t)):new e(n.kind,n.apply,!1)},e.getApplyFromUser=function(e,t){switch("string"===typeof e.apply?e.apply.toLowerCase():""){case"first":return"first";case"never":return"never";case"ifsingle":return"ifSingle";default:return t}},e.getKindFromUser=function(e,t){return"string"===typeof e.kind?new Bt(e.kind):t},e.getPreferredUser=function(e){return"boolean"===typeof e.preferred&&e.preferred},e}(),Ft=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Tt=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{u(i.next(e))}catch(t){o(t)}}function a(e){try{u(i["throw"](e))}catch(t){o(t)}}function u(e){e.done?n(e.value):r(e.value).then(s,a)}u((i=i.apply(e,t||[])).next())}))},Rt=function(e,t){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(e){return function(t){return u([e,t])}}function u(o){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,i&&(r=2&o[0]?i["return"]:o[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(r=s.trys,!(r=r.length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(a){o=[6,a],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},Pt=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i},Ut="editor.action.codeAction",Ht="editor.action.refactor",jt="editor.action.sourceAction",Qt="editor.action.organizeImports",Vt="editor.action.fixAll",Wt=function(e){function t(n,i){var r=e.call(this)||this;return r._register(i),r.allActions=Object(q["r"])(Pt(n),t.codeActionsComparator),r.validActions=r.allActions.filter((function(e){return!e.disabled})),r}return Ft(t,e),t.codeActionsComparator=function(e,t){return Object(q["q"])(e.diagnostics)?Object(q["q"])(t.diagnostics)?e.diagnostics[0].message.localeCompare(t.diagnostics[0].message):-1:Object(q["q"])(t.diagnostics)?1:0},Object.defineProperty(t.prototype,"hasAutoFix",{get:function(){return this.validActions.some((function(e){return!!e.kind&&Bt.QuickFix.contains(new Bt(e.kind))&&!!e.isPreferred}))},enumerable:!0,configurable:!0}),t}(o["a"]);function zt(e,t,n,i){var r,s=this,a=n.filter||{},u={only:null===(r=a.include)||void 0===r?void 0:r.value,trigger:n.type},l=new xt["d"](e,i),c=Kt(e,a),d=new o["b"],h=c.map((function(n){return Tt(s,void 0,void 0,(function(){var i,r;return Rt(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,n.provideCodeActions(e,t,u,l.token)];case 1:return i=o.sent(),l.token.isCancellationRequested||!i?[2,[]]:(d.add(i),[2,i.actions.filter((function(e){return e&&Dt(a,e)}))]);case 2:if(r=o.sent(),Object(m["d"])(r))throw r;return Object(m["f"])(r),[2,[]];case 3:return[2]}}))}))})),f=A["a"].onDidChange((function(){var t=A["a"].all(e);Object(q["g"])(t,c)||l.cancel()}));return Promise.all(h).then(q["m"]).then((function(e){return new Wt(e,d)})).finally((function(){f.dispose(),l.dispose()}))}function Kt(e,t){return A["a"].all(e).filter((function(e){return!e.providedCodeActionKinds||e.providedCodeActionKinds.some((function(e){return kt(t,new Bt(e))}))}))}Object(s["j"])("_executeCodeActionProvider",(function(e,t){return Tt(this,void 0,void 0,(function(){var n,i,r,o,s,u;return Rt(this,(function(l){switch(l.label){case 0:if(n=t.resource,i=t.rangeOrSelection,r=t.kind,!(n instanceof v["a"]))throw Object(m["b"])();if(o=e.get(_["a"]).getModel(n),!o)throw Object(m["b"])();if(s=Ot["a"].isISelection(i)?Ot["a"].liftSelection(i):a["a"].isIRange(i)?o.validateRange(i):void 0,!s)throw Object(m["b"])();return[4,zt(o,s,{type:2,filter:{includeSourceActions:!0,include:r&&r.value?new Bt(r.value):void 0}},d["a"].None)];case 1:return u=l.sent(),setTimeout((function(){return u.dispose()}),100),[2,u.validActions]}}))}))}));var qt=function(){function e(e){this.executor=e,this._didRun=!1}return e.prototype.getValue=function(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value},Object.defineProperty(e.prototype,"rawValue",{get:function(){return this._value},enumerable:!0,configurable:!0}),e}(),Gt=n("x/UI"),Xt=(n("synD"),n("OBOq")),Yt=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Jt=function(e,t,n,i){var r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Zt=function(e,t){return function(n,i){t(n,i,e)}},$t=function(e){function t(n,i){var r=e.call(this)||this;return r.closeTimeout=3e3,r._messageWidget=r._register(new o["d"]),r._messageListeners=r._register(new o["b"]),r._editor=n,r._visible=t.MESSAGE_VISIBLE.bindTo(i),r._register(r._editor.onDidAttemptReadOnlyEdit((function(){return r._onDidAttemptReadOnlyEdit()}))),r}return Yt(t,e),t.get=function(e){return e.getContribution(t.ID)},t.prototype.dispose=function(){e.prototype.dispose.call(this),this._visible.reset()},t.prototype.showMessage=function(e,t){var n,i=this;Object(Xt["a"])(e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._messageWidget.value=new tn(this._editor,t,e),this._messageListeners.add(this._editor.onDidBlurEditorText((function(){return i.closeMessage()}))),this._messageListeners.add(this._editor.onDidChangeCursorPosition((function(){return i.closeMessage()}))),this._messageListeners.add(this._editor.onDidDispose((function(){return i.closeMessage()}))),this._messageListeners.add(this._editor.onDidChangeModel((function(){return i.closeMessage()}))),this._messageListeners.add(new w["e"]((function(){return i.closeMessage()}),this.closeTimeout)),this._messageListeners.add(this._editor.onMouseMove((function(e){e.target.position&&(n?n.containsPosition(e.target.position)||i.closeMessage():n=new a["a"](t.lineNumber-3,1,e.target.position.lineNumber+3,1))})))},t.prototype.closeMessage=function(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(tn.fadeOut(this._messageWidget.value))},t.prototype._onDidAttemptReadOnlyEdit=function(){this._editor.hasModel()&&this.showMessage(i["a"]("editor.readonly","Cannot edit in read-only editor"),this._editor.getPosition())},t.ID="editor.contrib.messageController",t.MESSAGE_VISIBLE=new ae["d"]("messageVisible",!1),t=Jt([Zt(1,ae["c"])],t),t}(o["a"]),en=s["c"].bindToContribution($t.get);Object(s["g"])(new en({id:"leaveEditorMessage",precondition:$t.MESSAGE_VISIBLE,handler:function(e){return e.closeMessage()},kbOpts:{weight:130,primary:9}}));var tn=function(){function e(e,t,n){var i=t.lineNumber,r=t.column;this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(i,i,0),this._position={lineNumber:i,column:r-1},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage");var o=document.createElement("div");o.classList.add("message"),o.textContent=n,this._domNode.appendChild(o);var s=document.createElement("div");s.classList.add("anchor"),this._domNode.appendChild(s),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}return e.fadeOut=function(e){var t,n=function(){e.dispose(),clearTimeout(t),e.getDomNode().removeEventListener("animationend",n)};return t=setTimeout(n,110),e.getDomNode().addEventListener("animationend",n),e.getDomNode().classList.add("fadeOut"),{dispose:n}},e.prototype.dispose=function(){this._editor.removeContentWidget(this)},e.prototype.getId=function(){return"messageoverlay"},e.prototype.getDomNode=function(){return this._domNode},e.prototype.getPosition=function(){return{position:this._position,preference:[1,2]}},e}();Object(s["h"])($t.ID,$t),Object(R["e"])((function(e,t){var n=e.getColor(T["fb"]);if(n){var i=e.type===R["b"]?2:1;t.addRule(".monaco-editor .monaco-editor-overlaymessage .anchor { border-top-color: "+n+"; }"),t.addRule(".monaco-editor .monaco-editor-overlaymessage .message { border: "+i+"px solid "+n+"; }")}var r=e.getColor(T["eb"]);r&&t.addRule(".monaco-editor .monaco-editor-overlaymessage .message { background-color: "+r+"; }");var o=e.getColor(T["gb"]);o&&t.addRule(".monaco-editor .monaco-editor-overlaymessage .message { color: "+o+"; }")}));var nn,rn=n("Uzvx"),on=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),sn=function(){return sn=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},sn.apply(this,arguments)},an=function(e,t,n,i){var r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},un=function(e,t){return function(n,i){t(n,i,e)}},ln=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{u(i.next(e))}catch(t){o(t)}}function a(e){try{u(i["throw"](e))}catch(t){o(t)}}function u(e){e.done?n(e.value):r(e.value).then(s,a)}u((i=i.apply(e,t||[])).next())}))},cn=function(e,t){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(e){return function(t){return u([e,t])}}function u(o){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,i&&(r=2&o[0]?i["return"]:o[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(r=s.trys,!(r=r.length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(a){o=[6,a],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},dn=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i},hn=function(e){function t(t,n){var i=e.call(this,t.command?t.command.id:t.title,t.title,void 0,!t.disabled,n)||this;return i.action=t,i}return on(t,e),t}(ce["a"]),fn=function(e){function t(t,n,i,r){var s=e.call(this)||this;return s._editor=t,s._delegate=n,s._contextMenuService=i,s._visible=!1,s._showingActions=s._register(new o["d"]),s._keybindingResolver=new pn({getKeybindings:function(){return r.getKeybindings()}}),s}return on(t,e),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this._visible},enumerable:!0,configurable:!0}),t.prototype.show=function(e,t,n,i){return ln(this,void 0,void 0,(function(){var r,o,s,a,u=this;return cn(this,(function(l){if(r=i.includeDisabledActions?t.allActions:t.validActions,!r.length)return this._visible=!1,[2];if(!this._editor.getDomNode())throw this._visible=!1,Object(m["a"])();return this._visible=!0,this._showingActions.value=t,o=this.getMenuActions(e,r),s=p["a"].isIPosition(n)?this._toCoords(n):n||{x:0,y:0},a=this._keybindingResolver.getResolver(),this._contextMenuService.showContextMenu({getAnchor:function(){return s},getActions:function(){return o},onHide:function(){u._visible=!1,u._editor.focus()},autoSelectFirstItem:!0,getKeyBinding:function(e){return e instanceof hn?a(e.action):void 0}}),[2]}))}))},t.prototype.getMenuActions=function(e,t){var n,i,r=this,o=function(e){return new hn(e,(function(){return r._delegate.onSelectCodeAction(e)}))},s=t.map(o),a=this._editor.getModel();if(a&&s.length)for(var u=0,l=A["a"].all(a);u<l.length;u++){var c=l[u];if(c._getAdditionalMenuItems){var d=c._getAdditionalMenuItems({trigger:e.type,only:null===(i=null===(n=e.filter)||void 0===n?void 0:n.include)||void 0===i?void 0:i.value},t);d.length&&s.push.apply(s,dn([new le["d"]],d.map((function(e){return o({title:e.title,command:e})}))))}}return s},t.prototype._toCoords=function(e){if(!this._editor.hasModel())return{x:0,y:0};this._editor.revealPosition(e,1),this._editor.render();var t=this._editor.getScrolledVisiblePosition(e),n=Object(c["B"])(this._editor.getDomNode()),i=n.left+t.left,r=n.top+t.top+t.height;return{x:i,y:r}},t=an([un(2,rn["a"]),un(3,ft["a"])],t),t}(o["a"]),pn=function(){function e(e){this._keybindingProvider=e}return e.prototype.getResolver=function(){var t=this,n=new qt((function(){return t._keybindingProvider.getKeybindings().filter((function(t){return e.codeActionCommands.indexOf(t.command)>=0})).filter((function(e){return e.resolvedKeybinding})).map((function(e){var t=e.commandArgs;return e.command===Qt?t={kind:Bt.SourceOrganizeImports.value}:e.command===Vt&&(t={kind:Bt.SourceFixAll.value}),sn({resolvedKeybinding:e.resolvedKeybinding},Mt.fromUser(t,{kind:Bt.None,apply:"never"}))}))}));return function(e){if(e.kind){var i=t.bestKeybindingForCodeAction(e,n.getValue());return null===i||void 0===i?void 0:i.resolvedKeybinding}}},e.prototype.bestKeybindingForCodeAction=function(e,t){if(e.kind){var n=new Bt(e.kind);return t.filter((function(e){return e.kind.contains(n)})).filter((function(t){return!t.preferred||e.isPreferred})).reduceRight((function(e,t){return e?e.kind.contains(t.kind)?t:e:t}),void 0)}},e.codeActionCommands=[Ht,Ut,jt,Qt,Vt],e}(),gn=(n("MNXI"),n("pg8w")),An=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),mn=function(e,t,n,i){var r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},vn=function(e,t){return function(n,i){t(n,i,e)}};(function(e){e.Hidden={type:0};var t=function(){function e(e,t,n,i){this.actions=e,this.trigger=t,this.editorPosition=n,this.widgetPosition=i,this.type=1}return e}();e.Showing=t})(nn||(nn={}));var _n=function(e){function t(t,n,i,r){var o=e.call(this)||this;return o._editor=t,o._quickFixActionId=n,o._preferredFixActionId=i,o._keybindingService=r,o._onClick=o._register(new k["a"]),o.onClick=o._onClick.event,o._state=nn.Hidden,o._domNode=document.createElement("div"),o._domNode.className="codicon codicon-lightbulb",o._editor.addContentWidget(o),o._register(o._editor.onDidChangeModelContent((function(e){var t=o._editor.getModel();(1!==o.state.type||!t||o.state.editorPosition.lineNumber>=t.getLineCount())&&o.hide()}))),gn["b"].ignoreTarget(o._domNode),o._register(c["m"](o._domNode,(function(e){if(1===o.state.type){o._editor.focus(),e.preventDefault();var t=c["B"](o._domNode),n=t.top,i=t.height,r=o._editor.getOption(49),s=Math.floor(r/3);null!==o.state.widgetPosition.position&&o.state.widgetPosition.position.lineNumber<o.state.editorPosition.lineNumber&&(s+=r),o._onClick.fire({x:e.posx,y:n+i+s,actions:o.state.actions,trigger:o.state.trigger})}}))),o._register(c["i"](o._domNode,"mouseenter",(function(e){if(1===(1&e.buttons)){o.hide();var t=new M["a"];t.startMonitoring(e.target,e.buttons,M["b"],(function(){}),(function(){t.dispose()}))}}))),o._register(o._editor.onDidChangeConfiguration((function(e){e.hasChanged(47)&&!o._editor.getOption(47).enabled&&o.hide()}))),o._updateLightBulbTitle(),o._register(o._keybindingService.onDidUpdateKeybindings(o._updateLightBulbTitle,o)),o}return An(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._editor.removeContentWidget(this)},t.prototype.getId=function(){return"LightBulbWidget"},t.prototype.getDomNode=function(){return this._domNode},t.prototype.getPosition=function(){return 1===this._state.type?this._state.widgetPosition:null},t.prototype.update=function(e,n,i){var r=this;if(e.validActions.length<=0)return this.hide();var o=this._editor.getOptions();if(!o.get(47).enabled)return this.hide();var s=i.lineNumber,a=i.column,u=this._editor.getModel();if(!u)return this.hide();var l=u.getOptions().tabSize,d=o.get(34),h=u.getLineContent(s),f=g["b"].computeIndentLevel(h,l),p=d.spaceWidth*f>22,A=function(e){return e>2&&r._editor.getTopForLineNumber(e)===r._editor.getTopForLineNumber(e-1)},m=s;if(!p)if(s>1&&!A(s-1))m-=1;else if(A(s+1)){if(a*d.spaceWidth<22)return this.hide()}else m+=1;this.state=new nn.Showing(e,n,i,{position:{lineNumber:m,column:1},preference:t._posPref}),c["X"](this._domNode,"codicon-lightbulb-autofix",e.hasAutoFix),this._editor.layoutContentWidget(this)},t.prototype.hide=function(){this.state=nn.Hidden,this._editor.layoutContentWidget(this)},Object.defineProperty(t.prototype,"state",{get:function(){return this._state},set:function(e){this._state=e,this._updateLightBulbTitle()},enumerable:!0,configurable:!0}),t.prototype._updateLightBulbTitle=function(){if(1===this.state.type&&this.state.actions.hasAutoFix){var e=this._keybindingService.lookupKeybinding(this._preferredFixActionId);if(e)return void(this.title=i["a"]("prefferedQuickFixWithKb","Show Fixes. Preferred Fix Available ({0})",e.getLabel()))}var t=this._keybindingService.lookupKeybinding(this._quickFixActionId);this.title=t?i["a"]("quickFixWithKb","Show Fixes ({0})",t.getLabel()):i["a"]("quickFix","Show Fixes")},Object.defineProperty(t.prototype,"title",{set:function(e){this._domNode.title=e},enumerable:!0,configurable:!0}),t._posPref=[0],t=mn([vn(3,ft["a"])],t),t}(o["a"]);Object(R["e"])((function(e,t){var n=e.getColor(T["J"]);n&&t.addRule("\n\t\t.monaco-editor .contentWidgets .codicon-lightbulb {\n\t\t\tcolor: "+n+";\n\t\t}");var i=e.getColor(T["I"]);i&&t.addRule("\n\t\t.monaco-editor .contentWidgets .codicon-lightbulb-autofix {\n\t\t\tcolor: "+i+";\n\t\t}")}));var yn,bn=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),wn=function(e,t,n,i){var r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Cn=function(e,t){return function(n,i){t(n,i,e)}},Sn=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{u(i.next(e))}catch(t){o(t)}}function a(e){try{u(i["throw"](e))}catch(t){o(t)}}function u(e){e.done?n(e.value):r(e.value).then(s,a)}u((i=i.apply(e,t||[])).next())}))},Nn=function(e,t){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(e){return function(t){return u([e,t])}}function u(o){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,i&&(r=2&o[0]?i["return"]:o[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(r=s.trys,!(r=r.length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(a){o=[6,a],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},Ln=function(e){function t(t,n,i,r,s){var a=e.call(this)||this;return a._editor=t,a.delegate=r,a._activeCodeActions=a._register(new o["d"]),a._codeActionWidget=new qt((function(){return a._register(s.createInstance(fn,a._editor,{onSelectCodeAction:function(e){return Sn(a,void 0,void 0,(function(){return Nn(this,(function(t){return this.delegate.applyCodeAction(e,!0),[2]}))}))}}))})),a._lightBulbWidget=new qt((function(){var e=a._register(s.createInstance(_n,a._editor,n,i));return a._register(e.onClick((function(e){return a.showCodeActionList(e.trigger,e.actions,e,{includeDisabledActions:!1})}))),e})),a}return bn(t,e),t.prototype.update=function(e){var t,n,i;return Sn(this,void 0,void 0,(function(){var r,o,s,a,u;return Nn(this,(function(l){switch(l.label){case 0:if(1!==e.type)return null===(t=this._lightBulbWidget.rawValue)||void 0===t||t.hide(),[2];l.label=1;case 1:return l.trys.push([1,3,,4]),[4,e.actions];case 2:return r=l.sent(),[3,4];case 3:return o=l.sent(),Object(m["e"])(o),[2];case 4:if(this._lightBulbWidget.getValue().update(r,e.trigger,e.position),2!==e.trigger.type)return[3,11];if(!(null===(n=e.trigger.filter)||void 0===n?void 0:n.include))return[3,10];if(s=this.tryGetValidActionToApply(e.trigger,r),!s)return[3,9];l.label=5;case 5:return l.trys.push([5,,7,8]),[4,this.delegate.applyCodeAction(s,!1)];case 6:return l.sent(),[3,8];case 7:return r.dispose(),[7];case 8:return[2];case 9:if(e.trigger.context&&(a=this.getInvalidActionThatWouldHaveBeenApplied(e.trigger,r),a&&a.disabled))return $t.get(this._editor).showMessage(a.disabled,e.trigger.context.position),r.dispose(),[2];l.label=10;case 10:return u=!!(null===(i=e.trigger.filter)||void 0===i?void 0:i.include),!e.trigger.context||r.allActions.length&&(u||r.validActions.length)?(this._activeCodeActions.value=r,this._codeActionWidget.getValue().show(e.trigger,r,e.position,{includeDisabledActions:u}),[3,12]):($t.get(this._editor).showMessage(e.trigger.context.notAvailableMessage,e.trigger.context.position),this._activeCodeActions.value=r,r.dispose(),[2]);case 11:this._codeActionWidget.getValue().isVisible?r.dispose():this._activeCodeActions.value=r,l.label=12;case 12:return[2]}}))}))},t.prototype.getInvalidActionThatWouldHaveBeenApplied=function(e,t){if(t.allActions.length)return"first"===e.autoApply&&0===t.validActions.length||"ifSingle"===e.autoApply&&1===t.allActions.length?Object(q["h"])(t.allActions,(function(e){return e.disabled})):void 0},t.prototype.tryGetValidActionToApply=function(e,t){if(t.validActions.length)return"first"===e.autoApply&&t.validActions.length>0||"ifSingle"===e.autoApply&&1===t.validActions.length?t.validActions[0]:void 0},t.prototype.showCodeActionList=function(e,t,n,i){return Sn(this,void 0,void 0,(function(){return Nn(this,(function(r){return this._codeActionWidget.getValue().show(e,t,n,i),[2]}))}))},t=wn([Cn(4,ge["a"])],t),t}(o["a"]),En=n("tTk5"),xn=n("XXUj"),On=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Bn=new ae["d"]("supportedCodeAction",""),kn=function(e){function t(t,n,i,r){void 0===r&&(r=250);var o=e.call(this)||this;return o._editor=t,o._markerService=n,o._signalChange=i,o._delay=r,o._autoTriggerTimer=o._register(new w["e"]),o._register(o._markerService.onMarkerChanged((function(e){return o._onMarkerChanges(e)}))),o._register(o._editor.onDidChangeCursorPosition((function(){return o._onCursorChange()}))),o}return On(t,e),t.prototype.trigger=function(e){var t=this._getRangeOfSelectionUnlessWhitespaceEnclosed(e);return this._createEventAndSignalChange(e,t)},t.prototype._onMarkerChanges=function(e){var t=this,n=this._editor.getModel();n&&e.some((function(e){return Object(oe["e"])(e,n.uri)}))&&this._autoTriggerTimer.cancelAndSet((function(){t.trigger({type:1})}),this._delay)},t.prototype._onCursorChange=function(){var e=this;this._autoTriggerTimer.cancelAndSet((function(){e.trigger({type:1})}),this._delay)},t.prototype._getRangeOfMarker=function(e){var t=this._editor.getModel();if(t)for(var n=0,i=this._markerService.read({resource:t.uri});n<i.length;n++){var r=i[n],o=t.validateRange(r);if(a["a"].intersectRanges(o,e))return a["a"].lift(o)}},t.prototype._getRangeOfSelectionUnlessWhitespaceEnclosed=function(e){if(this._editor.hasModel()){var t=this._editor.getModel(),n=this._editor.getSelection();if(n.isEmpty()&&1===e.type){var i=n.getPosition(),r=i.lineNumber,o=i.column,s=t.getLineContent(r);if(0===s.length)return;if(1===o){if(/\s/.test(s[0]))return}else if(o===t.getLineMaxColumn(r)){if(/\s/.test(s[s.length-1]))return}else if(/\s/.test(s[o-2])&&/\s/.test(s[o-1]))return}return n}},t.prototype._createEventAndSignalChange=function(e,t){var n=this._editor.getModel();if(t&&n){var i=this._getRangeOfMarker(t),r=i?i.getStartPosition():t.getStartPosition(),o={trigger:e,selection:t,position:r};return this._signalChange(o),o}this._signalChange(void 0)},t}(o["a"]);(function(e){e.Empty={type:0};var t=function(){function e(e,t,n,i){this.trigger=e,this.rangeOrSelection=t,this.position=n,this.actions=i,this.type=1}return e}();e.Triggered=t})(yn||(yn={}));var Dn=function(e){function t(t,n,i,r){var s=e.call(this)||this;return s._editor=t,s._markerService=n,s._progressService=r,s._codeActionOracle=s._register(new o["d"]),s._state=yn.Empty,s._onDidChangeState=s._register(new k["a"]),s.onDidChangeState=s._onDidChangeState.event,s._supportedCodeActions=Bn.bindTo(i),s._register(s._editor.onDidChangeModel((function(){return s._update()}))),s._register(s._editor.onDidChangeModelLanguage((function(){return s._update()}))),s._register(A["a"].onDidChange((function(){return s._update()}))),s._update(),s}return On(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this.setState(yn.Empty,!0)},t.prototype._update=function(){var e=this;this._codeActionOracle.value=void 0,this.setState(yn.Empty);var t=this._editor.getModel();if(t&&A["a"].has(t)&&!this._editor.getOption(68)){for(var n=[],i=0,r=A["a"].all(t);i<r.length;i++){var o=r[i];Array.isArray(o.providedCodeActionKinds)&&n.push.apply(n,o.providedCodeActionKinds)}this._supportedCodeActions.set(n.join(" ")),this._codeActionOracle.value=new kn(this._editor,this._markerService,(function(n){if(n){var i=Object(w["f"])((function(e){return zt(t,n.selection,n.trigger,e)}));e._progressService&&2===n.trigger.type&&e._progressService.showWhile(i,250),e.setState(new yn.Triggered(n.trigger,n.selection,n.position,i))}else e.setState(yn.Empty)}),void 0),this._codeActionOracle.value.trigger({type:1})}else this._supportedCodeActions.reset()},t.prototype.trigger=function(e){this._codeActionOracle.value&&this._codeActionOracle.value.trigger(e)},t.prototype.setState=function(e,t){e!==this._state&&(1===this._state.type&&this._state.actions.cancel(),this._state=e,t||this._onDidChangeState.fire(e))},t}(o["a"]),In=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Mn=function(e,t,n,i){var r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Fn=function(e,t){return function(n,i){t(n,i,e)}},Tn=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{u(i.next(e))}catch(t){o(t)}}function a(e){try{u(i["throw"](e))}catch(t){o(t)}}function u(e){e.done?n(e.value):r(e.value).then(s,a)}u((i=i.apply(e,t||[])).next())}))},Rn=function(e,t){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(e){return function(t){return u([e,t])}}function u(o){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,i&&(r=2&o[0]?i["return"]:o[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(r=s.trys,!(r=r.length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(a){o=[6,a],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},Pn=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i};function Un(e){return ae["a"].regex(Bn.keys()[0],new RegExp("(\\s|^)"+Object(he["p"])(e.value)+"\\b"))}var Hn={type:"object",required:["kind"],defaultSnippets:[{body:{kind:""}}],properties:{kind:{type:"string",description:i["a"]("args.schema.kind","Kind of the code action to run.")},apply:{type:"string",description:i["a"]("args.schema.apply","Controls when the returned actions are applied."),default:"ifSingle",enum:["first","ifSingle","never"],enumDescriptions:[i["a"]("args.schema.apply.first","Always apply the first returned code action."),i["a"]("args.schema.apply.ifSingle","Apply the first returned code action if it is the only one."),i["a"]("args.schema.apply.never","Do not apply the returned code actions.")]},preferred:{type:"boolean",default:!1,description:i["a"]("args.schema.preferred","Controls if only preferred code actions should be returned.")}}},jn=function(e){function t(t,n,i,r,o){var s=e.call(this)||this;return s._instantiationService=o,s._editor=t,s._model=s._register(new Dn(s._editor,n,i,r)),s._register(s._model.onDidChangeState((function(e){return s.update(e)}))),s._ui=new qt((function(){return s._register(new Ln(t,zn.Id,Kn.Id,{applyCodeAction:function(e,t){return Tn(s,void 0,void 0,(function(){return Rn(this,(function(n){switch(n.label){case 0:return n.trys.push([0,,2,3]),[4,this._applyCodeAction(e)];case 1:return n.sent(),[3,3];case 2:return t&&this._trigger({type:1,filter:{}}),[7];case 3:return[2]}}))}))}},s._instantiationService))})),s}return In(t,e),t.get=function(e){return e.getContribution(t.ID)},t.prototype.update=function(e){this._ui.getValue().update(e)},t.prototype.showCodeActions=function(e,t,n){return this._ui.getValue().showCodeActionList(e,t,n,{includeDisabledActions:!1})},t.prototype.manualTriggerAtCurrentPosition=function(e,t,n){if(this._editor.hasModel()){$t.get(this._editor).closeMessage();var i=this._editor.getPosition();this._trigger({type:2,filter:t,autoApply:n,context:{notAvailableMessage:e,position:i}})}},t.prototype._trigger=function(e){return this._model.trigger(e)},t.prototype._applyCodeAction=function(e){return this._instantiationService.invokeFunction(Qn,e,this._editor)},t.ID="editor.contrib.quickFixController",t=Mn([Fn(1,re["b"]),Fn(2,ae["c"]),Fn(3,En["a"]),Fn(4,ge["a"])],t),t}(o["a"]);function Qn(e,t,n){return Tn(this,void 0,void 0,(function(){var r,o,s,a,u,l;return Rn(this,(function(c){switch(c.label){case 0:return r=e.get(Gt["a"]),o=e.get(pe["b"]),s=e.get(xn["a"]),a=e.get(Ae["a"]),s.publicLog2("codeAction.applyCodeAction",{codeActionTitle:t.title,codeActionKind:t.kind,codeActionIsPreferred:!!t.isPreferred}),t.edit?[4,r.apply(t.edit,{editor:n})]:[3,2];case 1:c.sent(),c.label=2;case 2:if(!t.command)return[3,6];c.label=3;case 3:return c.trys.push([3,5,,6]),[4,o.executeCommand.apply(o,Pn([t.command.id],t.command.arguments||[]))];case 4:return c.sent(),[3,6];case 5:return u=c.sent(),l=Vn(u),a.error("string"===typeof l?l:i["a"]("applyCodeActionFailed","An unknown error occurred while applying the code action")),[3,6];case 6:return[2]}}))}))}function Vn(e){return"string"===typeof e?e:e instanceof Error&&"string"===typeof e.message?e.message:void 0}function Wn(e,t,n,i){if(e.hasModel()){var r=jn.get(e);r&&r.manualTriggerAtCurrentPosition(t,n,i)}}var zn=function(e){function t(){return e.call(this,{id:t.Id,label:i["a"]("quickfix.trigger.label","Quick Fix..."),alias:"Quick Fix...",precondition:ae["a"].and(u["a"].writable,u["a"].hasCodeActionsProvider),kbOpts:{kbExpr:u["a"].editorTextFocus,primary:2132,weight:100}})||this}return In(t,e),t.prototype.run=function(e,t){return Wn(t,i["a"]("editor.action.quickFix.noneMessage","No code actions available"),void 0,void 0)},t.Id="editor.action.quickFix",t}(s["b"]),Kn=(function(e){function t(){return e.call(this,{id:Ut,precondition:ae["a"].and(u["a"].writable,u["a"].hasCodeActionsProvider),description:{description:"Trigger a code action",args:[{name:"args",schema:Hn}]}})||this}In(t,e),t.prototype.runEditorCommand=function(e,t,n){var r=Mt.fromUser(n,{kind:Bt.Empty,apply:"ifSingle"});return Wn(t,"string"===typeof(null===n||void 0===n?void 0:n.kind)?r.preferred?i["a"]("editor.action.codeAction.noneMessage.preferred.kind","No preferred code actions for '{0}' available",n.kind):i["a"]("editor.action.codeAction.noneMessage.kind","No code actions for '{0}' available",n.kind):r.preferred?i["a"]("editor.action.codeAction.noneMessage.preferred","No preferred code actions available"):i["a"]("editor.action.codeAction.noneMessage","No code actions available"),{include:r.kind,includeSourceActions:!0,onlyIncludePreferredActions:r.preferred},r.apply)}}(s["c"]),function(e){function t(){return e.call(this,{id:Ht,label:i["a"]("refactor.label","Refactor..."),alias:"Refactor...",precondition:ae["a"].and(u["a"].writable,u["a"].hasCodeActionsProvider),kbOpts:{kbExpr:u["a"].editorTextFocus,primary:3120,mac:{primary:1328},weight:100},contextMenuOpts:{group:"1_modification",order:2,when:ae["a"].and(u["a"].writable,Un(Bt.Refactor))},description:{description:"Refactor...",args:[{name:"args",schema:Hn}]}})||this}In(t,e),t.prototype.run=function(e,t,n){var r=Mt.fromUser(n,{kind:Bt.Refactor,apply:"never"});return Wn(t,"string"===typeof(null===n||void 0===n?void 0:n.kind)?r.preferred?i["a"]("editor.action.refactor.noneMessage.preferred.kind","No preferred refactorings for '{0}' available",n.kind):i["a"]("editor.action.refactor.noneMessage.kind","No refactorings for '{0}' available",n.kind):r.preferred?i["a"]("editor.action.refactor.noneMessage.preferred","No preferred refactorings available"):i["a"]("editor.action.refactor.noneMessage","No refactorings available"),{include:Bt.Refactor.contains(r.kind)?r.kind:Bt.None,onlyIncludePreferredActions:r.preferred},r.apply)}}(s["b"]),function(e){function t(){return e.call(this,{id:jt,label:i["a"]("source.label","Source Action..."),alias:"Source Action...",precondition:ae["a"].and(u["a"].writable,u["a"].hasCodeActionsProvider),contextMenuOpts:{group:"1_modification",order:2.1,when:ae["a"].and(u["a"].writable,Un(Bt.Source))},description:{description:"Source Action...",args:[{name:"args",schema:Hn}]}})||this}In(t,e),t.prototype.run=function(e,t,n){var r=Mt.fromUser(n,{kind:Bt.Source,apply:"never"});return Wn(t,"string"===typeof(null===n||void 0===n?void 0:n.kind)?r.preferred?i["a"]("editor.action.source.noneMessage.preferred.kind","No preferred source actions for '{0}' available",n.kind):i["a"]("editor.action.source.noneMessage.kind","No source actions for '{0}' available",n.kind):r.preferred?i["a"]("editor.action.source.noneMessage.preferred","No preferred source actions available"):i["a"]("editor.action.source.noneMessage","No source actions available"),{include:Bt.Source.contains(r.kind)?r.kind:Bt.None,includeSourceActions:!0,onlyIncludePreferredActions:r.preferred},r.apply)}}(s["b"]),function(e){function t(){return e.call(this,{id:Qt,label:i["a"]("organizeImports.label","Organize Imports"),alias:"Organize Imports",precondition:ae["a"].and(u["a"].writable,Un(Bt.SourceOrganizeImports)),kbOpts:{kbExpr:u["a"].editorTextFocus,primary:1581,weight:100}})||this}In(t,e),t.prototype.run=function(e,t){return Wn(t,i["a"]("editor.action.organize.noneMessage","No organize imports action available"),{include:Bt.SourceOrganizeImports,includeSourceActions:!0},"ifSingle")}}(s["b"]),function(e){function t(){return e.call(this,{id:Vt,label:i["a"]("fixAll.label","Fix All"),alias:"Fix All",precondition:ae["a"].and(u["a"].writable,Un(Bt.SourceFixAll))})||this}In(t,e),t.prototype.run=function(e,t){return Wn(t,i["a"]("fixAll.noneMessage","No fix all action available"),{include:Bt.SourceFixAll,includeSourceActions:!0},"ifSingle")}}(s["b"]),function(e){function t(){return e.call(this,{id:t.Id,label:i["a"]("autoFix.label","Auto Fix..."),alias:"Auto Fix...",precondition:ae["a"].and(u["a"].writable,Un(Bt.QuickFix)),kbOpts:{kbExpr:u["a"].editorTextFocus,primary:1620,mac:{primary:2644},weight:100}})||this}return In(t,e),t.prototype.run=function(e,t){return Wn(t,i["a"]("editor.action.autoFix.noneMessage","No auto fixes available"),{include:Bt.QuickFix,onlyIncludePreferredActions:!0},"ifSingle")},t.Id="editor.action.autoFix",t}(s["b"])),qn=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Gn=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i},Xn=c["a"],Yn=function(){function e(e,t,n){this.range=e,this.color=t,this.provider=n}return e}(),Jn=function(){function e(e,t){this.range=e,this.marker=t}return e}(),Zn=function(){function e(e,t){this._markerDecorationsService=t,this._editor=e,this._result=[]}return e.prototype.setRange=function(e){this._range=e,this._result=[]},e.prototype.clearResult=function(){this._result=[]},e.prototype.computeAsync=function(e){if(!this._editor.hasModel()||!this._range)return Promise.resolve([]);var t=this._editor.getModel();return A["o"].has(t)?G(t,new p["a"](this._range.startLineNumber,this._range.startColumn),e):Promise.resolve([])},e.prototype.computeSync=function(){var e=this;if(!this._editor.hasModel()||!this._range)return[];var t=this._editor.getModel(),n=this._range.startLineNumber;if(n>this._editor.getModel().getLineCount())return[];var i=B.get(this._editor),r=t.getLineMaxColumn(n),o=this._editor.getLineDecorations(n),s=!1,u=this._range,l=o.map((function(o){var l=o.range.startLineNumber===n?o.range.startColumn:1,c=o.range.endLineNumber===n?o.range.endColumn:r;if(l>u.startColumn||u.endColumn>c)return null;var d=new a["a"](u.startLineNumber,l,u.startLineNumber,c),h=e._markerDecorationsService.getMarker(t,o);if(h)return new Jn(d,h);var p=i.getColorData(o.range.getStartPosition());if(!s&&p){s=!0;var g=p.colorInfo,A=g.color,m=g.range;return new Yn(m,A,p.provider)}if(Object(f["b"])(o.options.hoverMessage))return null;var v=o.options.hoverMessage?Object(q["b"])(o.options.hoverMessage):[];return{contents:v,range:d}}));return Object(q["d"])(l)},e.prototype.onResult=function(e,t){this._result=t?e.concat(this._result.sort((function(e,t){return e instanceof Yn?-1:t instanceof Yn?1:0}))):this._result.concat(e)},e.prototype.getResult=function(){return this._result.slice(0)},e.prototype.getResultWithLoadingMessage=function(){return this._result.slice(0).concat([this._getLoadingMessage()])},e.prototype._getLoadingMessage=function(){return{range:this._range,contents:[(new f["a"]).appendText(i["a"]("modesContentHover.loading","Loading..."))]}},e}(),$n={type:2,filter:{include:Bt.QuickFix}},ei=function(e){function t(n,i,r,s,a,u){void 0===u&&(u=se["b"]);var l=e.call(this,t.ID,n)||this;return l._themeService=r,l._keybindingService=s,l._modeService=a,l._openerService=u,l.renderDisposable=l._register(new o["d"]),l._messages=[],l._lastRange=null,l._computer=new Zn(l._editor,i),l._highlightDecorations=[],l._isChangingDecorations=!1,l._shouldFocus=!1,l._colorPicker=null,l._hoverOperation=new J(l._computer,(function(e){return l._withResult(e,!0)}),null,(function(e){return l._withResult(e,!1)}),l._editor.getOption(44).delay),l._register(c["n"](l.getDomNode(),c["c"].FOCUS,(function(){l._colorPicker&&c["e"](l.getDomNode(),"colorpicker-hover")}))),l._register(c["n"](l.getDomNode(),c["c"].BLUR,(function(){c["O"](l.getDomNode(),"colorpicker-hover")}))),l._register(n.onDidChangeConfiguration((function(e){l._hoverOperation.setHoverTime(l._editor.getOption(44).delay)}))),l._register(A["y"].onDidChange((function(e){l.isVisible&&l._lastRange&&l._messages.length>0&&(l._domNode.textContent="",l._renderMessages(l._lastRange,l._messages))}))),l}return qn(t,e),t.prototype.dispose=function(){this._hoverOperation.cancel(),e.prototype.dispose.call(this)},t.prototype.onModelDecorationsChanged=function(){this._isChangingDecorations||this.isVisible&&(this._hoverOperation.cancel(),this._computer.clearResult(),this._colorPicker||this._hoverOperation.start(0))},t.prototype.startShowingAt=function(e,t,n){if(!this._lastRange||!this._lastRange.equalsRange(e)){if(this._hoverOperation.cancel(),this.isVisible)if(this._showAtPosition&&this._showAtPosition.lineNumber===e.startLineNumber){for(var i=[],r=0,o=this._messages.length;r<o;r++){var s=this._messages[r],a=s.range;a&&a.startColumn<=e.startColumn&&a.endColumn>=e.endColumn&&i.push(s)}if(i.length>0){if(ti(i,this._messages))return;this._renderMessages(e,i)}else this.hide()}else this.hide();this._lastRange=e,this._computer.setRange(e),this._shouldFocus=n,this._hoverOperation.start(t)}},t.prototype.hide=function(){this._lastRange=null,this._hoverOperation.cancel(),e.prototype.hide.call(this),this._isChangingDecorations=!0,this._highlightDecorations=this._editor.deltaDecorations(this._highlightDecorations,[]),this._isChangingDecorations=!1,this.renderDisposable.clear(),this._colorPicker=null},t.prototype.isColorPickerVisible=function(){return!!this._colorPicker},t.prototype._withResult=function(e,t){this._messages=e,this._lastRange&&this._messages.length>0?this._renderMessages(this._lastRange,this._messages):t&&this.hide()},t.prototype._renderMessages=function(e,n){var i=this;this.renderDisposable.dispose(),this._colorPicker=null;var r=1073741824,s=n[0].range?a["a"].lift(n[0].range):null,u=document.createDocumentFragment(),l=!0,g=!1,A=new o["b"],m=[];if(n.forEach((function(e){if(e.range)if(r=Math.min(r,e.range.startColumn),s=s?a["a"].plusRange(s,e.range):a["a"].lift(e.range),e instanceof Yn){g=!0;var t=e.color,n=t.red,p=t.green,v=t.blue,_=t.alpha,y=new h["c"](Math.round(255*n),Math.round(255*p),Math.round(255*v),_),w=new h["a"](y);if(!i._editor.hasModel())return;var C=i._editor.getModel(),S=new a["a"](e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn),N={range:e.range,color:e.color},L=new D(w,[],0),E=new K(u,L,i._editor.getOption(105),i._themeService);b(C,N,e.provider,d["a"].None).then((function(t){if(L.colorPresentations=t||[],i._editor.hasModel()){var n=i._editor.getModel().getValueInRange(e.range);L.guessColorPresentation(w,n);var r=function(){var e,t;L.presentation.textEdit?(e=[L.presentation.textEdit],t=new a["a"](L.presentation.textEdit.range.startLineNumber,L.presentation.textEdit.range.startColumn,L.presentation.textEdit.range.endLineNumber,L.presentation.textEdit.range.endColumn),t=t.setEndPosition(t.endLineNumber,t.startColumn+L.presentation.textEdit.text.length)):(e=[{identifier:null,range:S,text:L.presentation.label,forceMoveMarkers:!1}],t=S.setEndPosition(S.endLineNumber,S.startColumn+L.presentation.label.length)),i._editor.pushUndoStop(),i._editor.executeEdits("colorpicker",e),L.presentation.additionalTextEdits&&(e=Gn(L.presentation.additionalTextEdits),i._editor.executeEdits("colorpicker",e),i.hide()),i._editor.pushUndoStop(),S=t},s=function(t){return b(C,{range:S,color:{red:t.rgba.r/255,green:t.rgba.g/255,blue:t.rgba.b/255,alpha:t.rgba.a}},e.provider,d["a"].None).then((function(e){L.colorPresentations=e||[]}))},l=L.onColorFlushed((function(e){s(e).then(r)})),c=L.onDidChangeColor(s);i._colorPicker=E,i.showAt(S.getStartPosition(),S,i._shouldFocus),i.updateContents(u),i._colorPicker.layout(),i.renderDisposable.value=Object(o["e"])(l,c,E,A)}}))}else e instanceof Jn?(m.push(e),l=!1):e.contents.filter((function(e){return!Object(f["b"])(e)})).forEach((function(e){var t=Xn("div.hover-row.markdown-hover"),n=c["p"](t,Xn("div.hover-contents")),r=A.add(new ie["a"](i._editor,i._modeService,i._openerService));A.add(r.onDidRenderCodeBlock((function(){n.className="hover-contents code-hover-contents",i.onContentsChange()})));var o=A.add(r.render(e));n.appendChild(o.element),u.appendChild(t),l=!1}))})),m.length){m.forEach((function(e){return u.appendChild(i.renderMarkerHover(e))}));var v=1===m.length?m[0]:m.sort((function(e,t){return re["c"].compare(e.marker.severity,t.marker.severity)}))[0];u.appendChild(this.renderMarkerStatusbar(v))}g||l||(this.showAt(new p["a"](e.startLineNumber,r),s,this._shouldFocus),this.updateContents(u)),this._isChangingDecorations=!0,this._highlightDecorations=this._editor.deltaDecorations(this._highlightDecorations,s?[{range:s,options:t._DECORATION_OPTIONS}]:[]),this._isChangingDecorations=!1},t.prototype.renderMarkerHover=function(e){var t=this,n=Xn("div.hover-row"),i=c["p"](n,Xn("div.marker.hover-contents")),r=e.marker,o=r.source,s=r.message,a=r.code,u=r.relatedInformation;this._editor.applyFontInfo(i);var l=c["p"](i,Xn("span"));if(l.style.whiteSpace="pre-wrap",l.innerText=s,o||a)if("string"===typeof a){var d=c["p"](i,Xn("span"));d.style.opacity="0.6",d.style.paddingLeft="6px",d.innerText=o&&a?o+"("+a+")":o||"("+a+")"}else if(a){var h=Xn("span");if(o){var f=c["p"](h,Xn("span"));f.innerText=o}this._codeLink=c["p"](h,Xn("a.code-link")),this._codeLink.setAttribute("href",a.link.toString()),this._codeLink.onclick=function(e){t._openerService.open(a.link),e.preventDefault(),e.stopPropagation()};var p=c["p"](this._codeLink,Xn("span"));p.innerText=a.value;d=c["p"](i,h);d.style.opacity="0.6",d.style.paddingLeft="6px"}if(Object(q["q"])(u))for(var g=function(e,n,r,o){var s=c["p"](i,Xn("div"));s.style.marginTop="8px";var a=c["p"](s,Xn("a"));a.innerText=Object(oe["b"])(n)+"("+r+", "+o+"): ",a.style.cursor="pointer",a.onclick=function(e){e.stopPropagation(),e.preventDefault(),t._openerService&&t._openerService.open(n.with({fragment:r+","+o}),{fromUserGesture:!0}).catch(m["e"])};var u=c["p"](s,Xn("span"));u.innerText=e,A._editor.applyFontInfo(u)},A=this,v=0,_=u;v<_.length;v++){var y=_[v],b=y.message,w=y.resource,C=y.startLineNumber,S=y.startColumn;g(b,w,C,S)}return n},t.prototype.renderMarkerStatusbar=function(e){var t=this,n=Xn("div.hover-row.status-bar"),r=new o["b"],s=c["p"](n,Xn("div.actions"));e.marker.severity!==re["c"].Error&&e.marker.severity!==re["c"].Warning&&e.marker.severity!==re["c"].Info||r.add(this.renderAction(s,{label:i["a"]("peek problem","Peek Problem"),commandId:wt.ID,run:function(){t.hide(),yt.get(t._editor).show(e.marker),t._editor.focus()}}));var a=c["p"](s,Xn("div"));a.style.opacity="0",a.style.transition="opacity 0.2s",setTimeout((function(){return a.style.opacity="1"}),200),a.textContent=i["a"]("checkingForQuickFixes","Checking for quick fixes..."),r.add(Object(o["h"])((function(){return a.remove()})));var u=this.getCodeActions(e.marker);return r.add(Object(o["h"])((function(){return u.cancel()}))),u.then((function(e){if(a.style.transition="",a.style.opacity="1",!e.validActions.length)return e.dispose(),void(a.textContent=i["a"]("noQuickFixes","No quick fixes available"));a.remove();var n=!1;r.add(Object(o["h"])((function(){n||e.dispose()}))),r.add(t.renderAction(s,{label:i["a"]("quick fixes","Quick Fix..."),commandId:zn.Id,run:function(i){n=!0;var r=jn.get(t._editor),o=c["B"](i);r.showCodeActions($n,e,{x:o.left+6,y:o.top+o.height+6})}}))})),this.renderDisposable.value=r,n},t.prototype.getCodeActions=function(e){var t=this;return Object(w["f"])((function(n){return zt(t._editor.getModel(),new a["a"](e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),$n,n)}))},t.prototype.renderAction=function(e,t){var n=c["p"](e,Xn("div.action-container")),i=c["p"](n,Xn("a.action"));t.iconClass&&c["p"](i,Xn("span.icon."+t.iconClass));var r=c["p"](i,Xn("span"));r.textContent=t.label;var o=this._keybindingService.lookupKeybinding(t.commandId);return o&&(r.title=t.label+" ("+o.getLabel()+")"),c["i"](n,c["c"].CLICK,(function(e){e.stopPropagation(),e.preventDefault(),t.run(n)}))},t.ID="editor.contrib.modesContentHoverWidget",t._DECORATION_OPTIONS=g["a"].register({className:"hoverHighlight"}),t}(te);function ti(e,t){if(!e&&t||e&&!t||e.length!==t.length)return!1;for(var n=0;n<e.length;n++){var i=e[n],r=t[n];if(i instanceof Jn&&r instanceof Jn)return re["a"].makeKey(i.marker)===re["a"].makeKey(r.marker);if(i instanceof Yn||r instanceof Yn)return!1;if(i instanceof Jn||r instanceof Jn)return!1;if(!Object(f["c"])(i.contents,r.contents))return!1}return!0}Object(R["e"])((function(e,t){var n=e.getColor(T["cc"]);n&&t.addRule(".monaco-editor-hover .hover-contents a.code-link span:hover { color: "+n+"; }")}));var ni=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),ii=function(){function e(e){this._editor=e,this._lineNumber=-1,this._result=[]}return e.prototype.setLineNumber=function(e){this._lineNumber=e,this._result=[]},e.prototype.clearResult=function(){this._result=[]},e.prototype.computeSync=function(){var e=function(e){return{value:e}},t=this._editor.getLineDecorations(this._lineNumber),n=[];if(!t)return n;for(var i=0,r=t;i<r.length;i++){var o=r[i];if(o.options.glyphMarginClassName){var s=o.options.glyphMarginHoverMessage;s&&!Object(f["b"])(s)&&n.push.apply(n,Object(q["b"])(s).map(e))}}return n},e.prototype.onResult=function(e,t){this._result=this._result.concat(e)},e.prototype.getResult=function(){return this._result},e.prototype.getResultWithLoadingMessage=function(){return this.getResult()},e}(),ri=function(e){function t(n,i,r){void 0===r&&(r=se["b"]);var s=e.call(this,t.ID,n)||this;return s._renderDisposeables=s._register(new o["b"]),s._messages=[],s._lastLineNumber=-1,s._markdownRenderer=s._register(new ie["a"](s._editor,i,r)),s._computer=new ii(s._editor),s._hoverOperation=new J(s._computer,(function(e){return s._withResult(e)}),void 0,(function(e){return s._withResult(e)}),300),s}return ni(t,e),t.prototype.dispose=function(){this._hoverOperation.cancel(),e.prototype.dispose.call(this)},t.prototype.onModelDecorationsChanged=function(){this.isVisible&&(this._hoverOperation.cancel(),this._computer.clearResult(),this._hoverOperation.start(0))},t.prototype.startShowingAt=function(e){this._lastLineNumber!==e&&(this._hoverOperation.cancel(),this.hide(),this._lastLineNumber=e,this._computer.setLineNumber(e),this._hoverOperation.start(0))},t.prototype.hide=function(){this._lastLineNumber=-1,this._hoverOperation.cancel(),e.prototype.hide.call(this)},t.prototype._withResult=function(e){this._messages=e,this._messages.length>0?this._renderMessages(this._lastLineNumber,this._messages):this.hide()},t.prototype._renderMessages=function(e,t){this._renderDisposeables.clear();for(var n=document.createDocumentFragment(),i=0,r=t;i<r.length;i++){var o=r[i],s=this._markdownRenderer.render(o.value);this._renderDisposeables.add(s),n.appendChild(Object(c["a"])("div.hover-row",void 0,s.element))}this.updateContents(n),this.showAt(e)},t.ID="editor.contrib.modesGlyphHoverWidget",t}(ne),oi=n("79sc"),si=(n("62hx"),function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{u(i.next(e))}catch(t){o(t)}}function a(e){try{u(i["throw"](e))}catch(t){o(t)}}function u(e){e.done?n(e.value):r(e.value).then(s,a)}u((i=i.apply(e,t||[])).next())}))}),ai=function(e,t){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(e){return function(t){return u([e,t])}}function u(o){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,i&&(r=2&o[0]?i["return"]:o[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(r=s.trys,!(r=r.length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(a){o=[6,a],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}};function ui(e,t,n,i){var r=n.ordered(e),o=r.map((function(n){return Promise.resolve(i(n,e,t)).then(void 0,(function(e){Object(m["f"])(e)}))}));return Promise.all(o).then(q["m"]).then(q["d"])}function li(e,t,n){return ui(e,t,A["f"],(function(e,t,i){return e.provideDefinition(t,i,n)}))}function ci(e,t,n){return ui(e,t,A["e"],(function(e,t,i){return e.provideDeclaration(t,i,n)}))}function di(e,t,n){return ui(e,t,A["p"],(function(e,t,i){return e.provideImplementation(t,i,n)}))}function hi(e,t,n){return ui(e,t,A["z"],(function(e,t,i){return e.provideTypeDefinition(t,i,n)}))}function fi(e,t,n,i){var r=this;return ui(e,t,A["t"],(function(e,t,o){return si(r,void 0,void 0,(function(){var r,s;return ai(this,(function(a){switch(a.label){case 0:return[4,e.provideReferences(t,o,{includeDeclaration:!0},i)];case 1:return r=a.sent(),n&&r&&2===r.length?[4,e.provideReferences(t,o,{includeDeclaration:!1},i)]:[2,r];case 2:return s=a.sent(),s&&1===s.length?[2,s]:[2,r]}}))}))}))}Object(s["k"])("_executeDefinitionProvider",(function(e,t){return li(e,t,d["a"].None)})),Object(s["k"])("_executeDeclarationProvider",(function(e,t){return ci(e,t,d["a"].None)})),Object(s["k"])("_executeImplementationProvider",(function(e,t){return di(e,t,d["a"].None)})),Object(s["k"])("_executeTypeDefinitionProvider",(function(e,t){return hi(e,t,d["a"].None)})),Object(s["k"])("_executeReferenceProvider",(function(e,t){return fi(e,t,!1,d["a"].None)}));var pi,gi,Ai=n("t49l"),mi=n("MNsG"),vi=n("sFUC"),_i=n("A+jI"),yi=function(){function e(e,t,n,i){this.isProviderFirst=e,this.parent=t,this._range=n,this._rangeCallback=i,this.id=Ce["b"].nextId()}return Object.defineProperty(e.prototype,"uri",{get:function(){return this.parent.uri},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"range",{get:function(){return this._range},set:function(e){this._range=e,this._rangeCallback(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaMessage",{get:function(){return Object(i["a"])("aria.oneReference","symbol in {0} on line {1} at column {2}",Object(oe["b"])(this.uri),this.range.startLineNumber,this.range.startColumn)},enumerable:!0,configurable:!0}),e}(),bi=function(){function e(e){this._modelReference=e}return e.prototype.dispose=function(){this._modelReference.dispose()},e.prototype.preview=function(e,t){void 0===t&&(t=8);var n=this._modelReference.object.textEditorModel;if(n){var i=e.startLineNumber,r=e.startColumn,o=e.endLineNumber,s=e.endColumn,u=n.getWordUntilPosition({lineNumber:i,column:r-t}),l=new a["a"](i,u.startColumn,i,r),c=new a["a"](o,s,o,1073741824),d=n.getValueInRange(l).replace(/^\s+/,""),h=n.getValueInRange(e),f=n.getValueInRange(c).replace(/\s+$/,"");return{value:d+h+f,highlight:{start:d.length,end:d.length+h.length}}}},e}(),wi=function(){function e(e,t){this.parent=e,this.uri=t,this.children=[]}return e.prototype.dispose=function(){Object(o["f"])(this._preview),this._preview=void 0},Object.defineProperty(e.prototype,"preview",{get:function(){return this._preview},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"failure",{get:function(){return this._loadFailure},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaMessage",{get:function(){var e=this.children.length;return 1===e?Object(i["a"])("aria.fileReferences.1","1 symbol in {0}, full path {1}",Object(oe["b"])(this.uri),this.uri.fsPath):Object(i["a"])("aria.fileReferences.N","{0} symbols in {1}, full path {2}",e,Object(oe["b"])(this.uri),this.uri.fsPath)},enumerable:!0,configurable:!0}),e.prototype.resolve=function(e){var t=this;return this._resolved?Promise.resolve(this):Promise.resolve(e.createModelReference(this.uri).then((function(e){var n=e.object;if(!n)throw e.dispose(),new Error;return t._preview=new bi(e),t._resolved=!0,t}),(function(e){return t.children.length=0,t._resolved=!0,t._loadFailure=e,t})))},e}(),Ci=function(){function e(t,n){var i=this;this._disposables=new o["b"],this.groups=[],this.references=[],this._onDidChangeReferenceRange=new k["a"],this.onDidChangeReferenceRange=this._onDidChangeReferenceRange.event,this._links=t,this._title=n;var r,s=t[0];t.sort(e._compareReferences);for(var u=0,l=t;u<l.length;u++){var c=l[u];if(r&&r.uri.toString()===c.uri.toString()||(r=new wi(this,c.uri),this.groups.push(r)),0===r.children.length||!a["a"].equalsRange(c.range,r.children[r.children.length-1].range)){var d=new yi(s===c,r,c.targetSelectionRange||c.range,(function(e){return i._onDidChangeReferenceRange.fire(e)}));this.references.push(d),r.children.push(d)}}}return e.prototype.dispose=function(){Object(o["f"])(this.groups),this._disposables.dispose(),this._onDidChangeReferenceRange.dispose(),this.groups.length=0},e.prototype.clone=function(){return new e(this._links,this._title)},Object.defineProperty(e.prototype,"title",{get:function(){return this._title},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0===this.groups.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaMessage",{get:function(){return this.isEmpty?Object(i["a"])("aria.result.0","No results found"):1===this.references.length?Object(i["a"])("aria.result.1","Found 1 symbol in {0}",this.references[0].uri.fsPath):1===this.groups.length?Object(i["a"])("aria.result.n1","Found {0} symbols in {1}",this.references.length,this.groups[0].uri.fsPath):Object(i["a"])("aria.result.nm","Found {0} symbols in {1} files",this.references.length,this.groups.length)},enumerable:!0,configurable:!0}),e.prototype.nextOrPreviousReference=function(e,t){var n=e.parent,i=n.children.indexOf(e),r=n.children.length,o=n.parent.groups.length;return 1===o||t&&i+1<r||!t&&i>0?(i=t?(i+1)%r:(i+r-1)%r,n.children[i]):(i=n.parent.groups.indexOf(n),t?(i=(i+1)%o,n.parent.groups[i].children[0]):(i=(i+o-1)%o,n.parent.groups[i].children[n.parent.groups[i].children.length-1]))},e.prototype.nearestReference=function(e,t){var n=this.references.map((function(n,i){return{idx:i,prefixLen:he["c"](n.uri.toString(),e.toString()),offsetDist:100*Math.abs(n.range.startLineNumber-t.lineNumber)+Math.abs(n.range.startColumn-t.column)}})).sort((function(e,t){return e.prefixLen>t.prefixLen?-1:e.prefixLen<t.prefixLen?1:e.offsetDist<t.offsetDist?-1:e.offsetDist>t.offsetDist?1:0}))[0];if(n)return this.references[n.idx]},e.prototype.referenceAt=function(e,t){for(var n=0,i=this.references;n<i.length;n++){var r=i[n];if(r.uri.toString()===e.toString()&&a["a"].containsPosition(r.range,t))return r}},e.prototype.firstReference=function(){for(var e=0,t=this.references;e<t.length;e++){var n=t[e];if(n.isProviderFirst)return n}return this.references[0]},e._compareReferences=function(e,t){return he["e"](e.uri.toString(),t.uri.toString())||a["a"].compareRangesUsingStarts(e.range,t.range)},e}(),Si=(n("KaET"),n("tYmi")),Ni=n("xONI"),Li=(n("VPJY"),{badgeBackground:h["a"].fromHex("#4D4D4D"),badgeForeground:h["a"].fromHex("#FFFFFF")}),Ei=function(){function e(e,t){this.count=0,this.options=t||Object.create(null),Object(de["g"])(this.options,Li,!1),this.badgeBackground=this.options.badgeBackground,this.badgeForeground=this.options.badgeForeground,this.badgeBorder=this.options.badgeBorder,this.element=Object(c["p"])(e,Object(c["a"])(".monaco-count-badge")),this.countFormat=this.options.countFormat||"{0}",this.titleFormat=this.options.titleFormat||"",this.setCount(this.options.count||0)}return e.prototype.setCount=function(e){this.count=e,this.render()},e.prototype.setTitleFormat=function(e){this.titleFormat=e,this.render()},e.prototype.render=function(){this.element.textContent=Object(he["r"])(this.countFormat,this.count),this.element.title=Object(he["r"])(this.titleFormat,this.count),this.applyStyles()},e.prototype.style=function(e){this.badgeBackground=e.badgeBackground,this.badgeForeground=e.badgeForeground,this.badgeBorder=e.badgeBorder,this.applyStyles()},e.prototype.applyStyles=function(){if(this.element){var e=this.badgeBackground?this.badgeBackground.toString():"",t=this.badgeForeground?this.badgeForeground.toString():"",n=this.badgeBorder?this.badgeBorder.toString():"";this.element.style.backgroundColor=e,this.element.style.color=t,this.element.style.borderWidth=n?"1px":"",this.element.style.borderStyle=n?"solid":"",this.element.style.borderColor=n}},e}(),xi=n("R8sh"),Oi=n("ptcw"),Bi=n("fpMC"),ki=n("7lZ/"),Di=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Ii=function(e,t,n,i){var r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Mi=function(e,t){return function(n,i){t(n,i,e)}},Fi=function(){function e(e){this._resolverService=e}return e.prototype.hasChildren=function(e){return e instanceof Ci||e instanceof wi&&!e.failure},e.prototype.getChildren=function(e){if(e instanceof Ci)return e.groups;if(e instanceof wi)return e.resolve(this._resolverService).then((function(e){return e.children}));throw new Error("bad tree")},e=Ii([Mi(0,Ai["a"])],e),e}(),Ti=function(){function e(){}return e.prototype.getHeight=function(){return 23},e.prototype.getTemplateId=function(e){return e instanceof wi?Hi.id:Qi.id},e}(),Ri=function(){function e(e){this._keybindingService=e}return e.prototype.getKeyboardNavigationLabel=function(e){if(e instanceof yi){var t=e.parent.preview,n=t&&t.preview(e.range);if(n)return n.value}return Object(oe["b"])(e.uri)},e=Ii([Mi(0,ft["a"])],e),e}(),Pi=function(){function e(){}return e.prototype.getId=function(e){return e instanceof yi?e.id:e.uri},e}(),Ui=function(e){function t(t,n,i){var r=e.call(this)||this;r._uriLabel=n;var o=document.createElement("div");return c["e"](o,"reference-file"),r.file=r._register(new Ni["a"](o,{supportHighlights:!0})),r.badge=new Ei(c["p"](o,c["a"](".count"))),r._register(Object(Oi["a"])(r.badge,i)),t.appendChild(o),r}return Di(t,e),t.prototype.set=function(e,t){var n=Object(oe["d"])(e.uri);this.file.setLabel(Object(ue["a"])(e.uri),this._uriLabel.getUriLabel(n,{relative:!0}),{title:this._uriLabel.getUriLabel(e.uri),matches:t});var r=e.children.length;this.badge.setCount(r),e.failure?this.badge.setTitleFormat(Object(i["a"])("referencesFailre","Failed to resolve file.")):r>1?this.badge.setTitleFormat(Object(i["a"])("referencesCount","{0} references",r)):this.badge.setTitleFormat(Object(i["a"])("referenceCount","{0} reference",r))},t=Ii([Mi(1,xi["a"]),Mi(2,R["c"])],t),t}(o["a"]),Hi=function(){function e(t){this._instantiationService=t,this.templateId=e.id}return e.prototype.renderTemplate=function(e){return this._instantiationService.createInstance(Ui,e)},e.prototype.renderElement=function(e,t,n){n.set(e.element,Object(Bi["c"])(e.filterData))},e.prototype.disposeTemplate=function(e){e.dispose()},e.id="FileReferencesRenderer",e=Ii([Mi(0,ge["a"])],e),e}(),ji=function(){function e(e){this.label=new ki["a"](e,!1)}return e.prototype.set=function(e,t){var n=e.parent.preview,i=n&&n.preview(e.range);if(i){var r=i.value,o=i.highlight;t&&!Bi["a"].isDefault(t)?(c["X"](this.label.element,"referenceMatch",!1),this.label.set(r,Object(Bi["c"])(t))):(c["X"](this.label.element,"referenceMatch",!0),this.label.set(r,[o]))}else this.label.set(Object(oe["b"])(e.uri)+":"+(e.range.startLineNumber+1)+":"+(e.range.startColumn+1))},e}(),Qi=function(){function e(){this.templateId=e.id}return e.prototype.renderTemplate=function(e){return new ji(e)},e.prototype.renderElement=function(e,t,n){n.set(e.element,e.filterData)},e.prototype.disposeTemplate=function(){},e.id="OneReferenceRenderer",e}(),Vi=function(){function e(){}return e.prototype.getAriaLabel=function(e){return e.ariaMessage},e}(),Wi=n("k9mg"),zi=(n("51B1"),n("746U")),Ki=n("Sdnv"),qi=n("4y0V"),Gi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Xi=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i},Yi={separatorBorder:h["a"].transparent},Ji=function(){function e(e,t,n,i){this.container=e,this.view=t,this.disposable=i,this._cachedVisibleSize=void 0,"number"===typeof n?(this._size=n,this._cachedVisibleSize=void 0,c["e"](e,"visible")):(this._size=0,this._cachedVisibleSize=n.cachedVisibleSize)}return Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(e){this._size=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visible",{get:function(){return"undefined"===typeof this._cachedVisibleSize},enumerable:!0,configurable:!0}),e.prototype.setVisible=function(e,t){e!==this.visible&&(e?(this.size=Object(Ki["a"])(this._cachedVisibleSize,this.viewMinimumSize,this.viewMaximumSize),this._cachedVisibleSize=void 0):(this._cachedVisibleSize="number"===typeof t?t:this.size,this.size=0),c["X"](this.container,"visible",e),this.view.setVisible&&this.view.setVisible(e))},Object.defineProperty(e.prototype,"minimumSize",{get:function(){return this.visible?this.view.minimumSize:0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"viewMinimumSize",{get:function(){return this.view.minimumSize},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maximumSize",{get:function(){return this.visible?this.view.maximumSize:0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"viewMaximumSize",{get:function(){return this.view.maximumSize},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"priority",{get:function(){return this.view.priority},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"snap",{get:function(){return!!this.view.snap},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{set:function(e){this.container.style.pointerEvents=e?null:"none"},enumerable:!0,configurable:!0}),e.prototype.layout=function(e,t){this.layoutContainer(e),this.view.layout(this.size,e,t)},e.prototype.dispose=function(){return this.disposable.dispose(),this.view},e}(),Zi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Gi(t,e),t.prototype.layoutContainer=function(e){this.container.style.top=e+"px",this.container.style.height=this.size+"px"},t}(Ji),$i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Gi(t,e),t.prototype.layoutContainer=function(e){this.container.style.left=e+"px",this.container.style.width=this.size+"px"},t}(Ji);(function(e){e[e["Idle"]=0]="Idle",e[e["Busy"]=1]="Busy"})(pi||(pi={})),function(e){function t(e){return{type:"split",index:e}}function n(e){return{type:"invisible",cachedVisibleSize:e}}e.Distribute={type:"distribute"},e.Split=t,e.Invisible=n}(gi||(gi={}));var er=function(e){function t(t,n){void 0===n&&(n={});var i=e.call(this)||this;return i.size=0,i.contentSize=0,i.proportions=void 0,i.viewItems=[],i.sashItems=[],i.state=pi.Idle,i._onDidSashChange=i._register(new k["a"]),i.onDidSashChange=i._onDidSashChange.event,i._onDidSashReset=i._register(new k["a"]),i._startSnappingEnabled=!0,i._endSnappingEnabled=!0,i.orientation=zi["k"](n.orientation)?0:n.orientation,i.inverseAltBehavior=!!n.inverseAltBehavior,i.proportionalLayout=!!zi["k"](n.proportionalLayout)||!!n.proportionalLayout,i.el=document.createElement("div"),c["e"](i.el,"monaco-split-view2"),c["e"](i.el,0===i.orientation?"vertical":"horizontal"),t.appendChild(i.el),i.sashContainer=c["p"](i.el,c["a"](".sash-container")),i.viewContainer=c["p"](i.el,c["a"](".split-view-container")),i.style(n.styles||Yi),n.descriptor&&(i.size=n.descriptor.size,n.descriptor.views.forEach((function(e,t){var n=zi["k"](e.visible)||e.visible?e.size:{type:"invisible",cachedVisibleSize:e.size},r=e.view;i.doAddView(r,n,t,!0)})),i.contentSize=i.viewItems.reduce((function(e,t){return e+t.size}),0),i.saveProportions()),i}return Gi(t,e),Object.defineProperty(t.prototype,"orthogonalStartSash",{get:function(){return this._orthogonalStartSash},set:function(e){for(var t=0,n=this.sashItems;t<n.length;t++){var i=n[t];i.sash.orthogonalStartSash=e}this._orthogonalStartSash=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"orthogonalEndSash",{get:function(){return this._orthogonalEndSash},set:function(e){for(var t=0,n=this.sashItems;t<n.length;t++){var i=n[t];i.sash.orthogonalEndSash=e}this._orthogonalEndSash=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"startSnappingEnabled",{get:function(){return this._startSnappingEnabled},set:function(e){this._startSnappingEnabled!==e&&(this._startSnappingEnabled=e,this.updateSashEnablement())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"endSnappingEnabled",{get:function(){return this._endSnappingEnabled},set:function(e){this._endSnappingEnabled!==e&&(this._endSnappingEnabled=e,this.updateSashEnablement())},enumerable:!0,configurable:!0}),t.prototype.style=function(e){e.separatorBorder.isTransparent()?(c["O"](this.el,"separator-border"),this.el.style.removeProperty("--separator-border")):(c["e"](this.el,"separator-border"),this.el.style.setProperty("--separator-border",e.separatorBorder.toString()))},t.prototype.addView=function(e,t,n){void 0===n&&(n=this.viewItems.length),this.doAddView(e,t,n,!1)},t.prototype.layout=function(e,t){var n=this,i=Math.max(this.size,this.contentSize);if(this.size=e,this.layoutContext=t,this.proportions)for(var r=0;r<this.viewItems.length;r++){var o=this.viewItems[r];o.size=Object(Ki["a"])(Math.round(this.proportions[r]*e),o.minimumSize,o.maximumSize)}else{var s=Object(q["u"])(this.viewItems.length),a=s.filter((function(e){return 1===n.viewItems[e].priority})),u=s.filter((function(e){return 2===n.viewItems[e].priority}));this.resize(this.viewItems.length-1,e-i,void 0,a,u)}this.distributeEmptySpace(),this.layoutViews()},t.prototype.saveProportions=function(){var e=this;this.proportionalLayout&&this.contentSize>0&&(this.proportions=this.viewItems.map((function(t){return t.size/e.contentSize})))},t.prototype.onSashStart=function(e){for(var t=this,n=e.sash,i=e.start,r=e.alt,s=0,a=this.viewItems;s<a.length;s++){var u=a[s];u.enabled=!1}var l=Object(q["k"])(this.sashItems,(function(e){return e.sash===n})),c=Object(o["e"])(Object(qi["a"])(document.body,"keydown")((function(e){return d(t.sashDragState.current,e.altKey)})),Object(qi["a"])(document.body,"keyup")((function(){return d(t.sashDragState.current,!1)}))),d=function(e,n){var i,r,o=t.viewItems.map((function(e){return e.size})),s=Number.NEGATIVE_INFINITY,a=Number.POSITIVE_INFINITY;if(t.inverseAltBehavior&&(n=!n),n){var u=l===t.sashItems.length-1;if(u){var d=t.viewItems[l];s=(d.minimumSize-d.size)/2,a=(d.maximumSize-d.size)/2}else{d=t.viewItems[l+1];s=(d.size-d.maximumSize)/2,a=(d.size-d.minimumSize)/2}}if(!n){var h=Object(q["u"])(l,-1),f=Object(q["u"])(l+1,t.viewItems.length),p=h.reduce((function(e,n){return e+(t.viewItems[n].minimumSize-o[n])}),0),g=h.reduce((function(e,n){return e+(t.viewItems[n].viewMaximumSize-o[n])}),0),A=0===f.length?Number.POSITIVE_INFINITY:f.reduce((function(e,n){return e+(o[n]-t.viewItems[n].minimumSize)}),0),m=0===f.length?Number.NEGATIVE_INFINITY:f.reduce((function(e,n){return e+(o[n]-t.viewItems[n].viewMaximumSize)}),0),v=Math.max(p,m),_=Math.min(A,g),y=t.findFirstSnapIndex(h),b=t.findFirstSnapIndex(f);if("number"===typeof y){d=t.viewItems[y];var w=Math.floor(d.viewMinimumSize/2);i={index:y,limitDelta:d.visible?v-w:v+w,size:d.size}}if("number"===typeof b){d=t.viewItems[b],w=Math.floor(d.viewMinimumSize/2);r={index:b,limitDelta:d.visible?_+w:_-w,size:d.size}}}t.sashDragState={start:e,current:e,index:l,sizes:o,minDelta:s,maxDelta:a,alt:n,snapBefore:i,snapAfter:r,disposable:c}};d(i,r)},t.prototype.onSashChange=function(e){var t=e.current,n=this.sashDragState,i=n.index,r=n.start,o=n.sizes,s=n.alt,a=n.minDelta,u=n.maxDelta,l=n.snapBefore,c=n.snapAfter;this.sashDragState.current=t;var d=t-r,h=this.resize(i,d,o,void 0,void 0,a,u,l,c);if(s){var f=i===this.sashItems.length-1,p=this.viewItems.map((function(e){return e.size})),g=f?i:i+1,A=this.viewItems[g],m=A.size-A.maximumSize,v=A.size-A.minimumSize,_=f?i-1:i+1;this.resize(_,-h,p,void 0,void 0,m,v)}this.distributeEmptySpace(),this.layoutViews()},t.prototype.onSashEnd=function(e){this._onDidSashChange.fire(e),this.sashDragState.disposable.dispose(),this.saveProportions();for(var t=0,n=this.viewItems;t<n.length;t++){var i=n[t];i.enabled=!0}},t.prototype.onViewChange=function(e,t){var n=this.viewItems.indexOf(e);n<0||n>=this.viewItems.length||(t="number"===typeof t?t:e.size,t=Object(Ki["a"])(t,e.minimumSize,e.maximumSize),this.inverseAltBehavior&&n>0?(this.resize(n-1,Math.floor((e.size-t)/2)),this.distributeEmptySpace(),this.layoutViews()):(e.size=t,this.relayout([n],void 0)))},t.prototype.resizeView=function(e,t){var n=this;if(this.state!==pi.Idle)throw new Error("Cant modify splitview");if(this.state=pi.Busy,!(e<0||e>=this.viewItems.length)){var i=Object(q["u"])(this.viewItems.length).filter((function(t){return t!==e})),r=Xi(i.filter((function(e){return 1===n.viewItems[e].priority})),[e]),o=i.filter((function(e){return 2===n.viewItems[e].priority})),s=this.viewItems[e];t=Math.round(t),t=Object(Ki["a"])(t,s.minimumSize,Math.min(s.maximumSize,this.size)),s.size=t,this.relayout(r,o),this.state=pi.Idle}},t.prototype.distributeViewSizes=function(){for(var e=this,t=[],n=0,i=0,r=this.viewItems;i<r.length;i++){var o=r[i];o.maximumSize-o.minimumSize>0&&(t.push(o),n+=o.size)}for(var s=Math.floor(n/t.length),a=0,u=t;a<u.length;a++){o=u[a];o.size=Object(Ki["a"])(s,o.minimumSize,o.maximumSize)}var l=Object(q["u"])(this.viewItems.length),c=l.filter((function(t){return 1===e.viewItems[t].priority})),d=l.filter((function(t){return 2===e.viewItems[t].priority}));this.relayout(c,d)},t.prototype.getViewSize=function(e){return e<0||e>=this.viewItems.length?-1:this.viewItems[e].size},t.prototype.doAddView=function(e,t,n,i){var r=this;if(void 0===n&&(n=this.viewItems.length),this.state!==pi.Idle)throw new Error("Cant modify splitview");this.state=pi.Busy;var s=c["a"](".split-view-view");n===this.viewItems.length?this.viewContainer.appendChild(s):this.viewContainer.insertBefore(s,this.viewContainer.children.item(n));var a,u=e.onDidChange((function(e){return r.onViewChange(f,e)})),l=Object(o["h"])((function(){return r.viewContainer.removeChild(s)})),d=Object(o["e"])(u,l);a="number"===typeof t?t:"split"===t.type?this.getViewSize(t.index)/2:"invisible"===t.type?{cachedVisibleSize:t.cachedVisibleSize}:e.minimumSize;var h,f=0===this.orientation?new Zi(s,e,a,d):new $i(s,e,a,d);if(this.viewItems.splice(n,0,f),this.viewItems.length>1){var p=0===this.orientation?1:0,g=0===this.orientation?{getHorizontalSashTop:function(e){return r.getSashPosition(e)}}:{getVerticalSashLeft:function(e){return r.getSashPosition(e)}},A=new we["a"](this.sashContainer,g,{orientation:p,orthogonalStartSash:this.orthogonalStartSash,orthogonalEndSash:this.orthogonalEndSash}),m=0===this.orientation?function(e){return{sash:A,start:e.startY,current:e.currentY,alt:e.altKey}}:function(e){return{sash:A,start:e.startX,current:e.currentX,alt:e.altKey}},v=k["b"].map(A.onDidStart,m),_=v(this.onSashStart,this),y=k["b"].map(A.onDidChange,m),b=y(this.onSashChange,this),w=k["b"].map(A.onDidEnd,(function(){return Object(q["k"])(r.sashItems,(function(e){return e.sash===A}))})),C=w(this.onSashEnd,this),S=A.onDidReset((function(){var e=Object(q["k"])(r.sashItems,(function(e){return e.sash===A})),t=Object(q["u"])(e,-1),n=Object(q["u"])(e+1,r.viewItems.length),i=r.findFirstSnapIndex(t),o=r.findFirstSnapIndex(n);("number"!==typeof i||r.viewItems[i].visible)&&("number"!==typeof o||r.viewItems[o].visible)&&r._onDidSashReset.fire(e)})),N=Object(o["e"])(_,b,C,S,A),L={sash:A,disposable:N};this.sashItems.splice(n-1,0,L)}s.appendChild(e.element),"number"!==typeof t&&"split"===t.type&&(h=[t.index]),i||this.relayout([n],h),this.state=pi.Idle,i||"number"===typeof t||"distribute"!==t.type||this.distributeViewSizes()},t.prototype.relayout=function(e,t){var n=this.viewItems.reduce((function(e,t){return e+t.size}),0);this.resize(this.viewItems.length-1,this.size-n,void 0,e,t),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions()},t.prototype.resize=function(e,t,n,i,r,o,s,a,u){var l=this;if(void 0===n&&(n=this.viewItems.map((function(e){return e.size}))),void 0===o&&(o=Number.NEGATIVE_INFINITY),void 0===s&&(s=Number.POSITIVE_INFINITY),e<0||e>=this.viewItems.length)return 0;var c=Object(q["u"])(e,-1),d=Object(q["u"])(e+1,this.viewItems.length);if(r)for(var h=0,f=r;h<f.length;h++){var p=f[h];Object(q["t"])(c,p),Object(q["t"])(d,p)}if(i)for(var g=0,A=i;g<A.length;g++){var m=A[g];Object(q["s"])(c,m),Object(q["s"])(d,m)}var v=c.map((function(e){return l.viewItems[e]})),_=c.map((function(e){return n[e]})),y=d.map((function(e){return l.viewItems[e]})),b=d.map((function(e){return n[e]})),w=c.reduce((function(e,t){return e+(l.viewItems[t].minimumSize-n[t])}),0),C=c.reduce((function(e,t){return e+(l.viewItems[t].maximumSize-n[t])}),0),S=0===d.length?Number.POSITIVE_INFINITY:d.reduce((function(e,t){return e+(n[t]-l.viewItems[t].minimumSize)}),0),N=0===d.length?Number.NEGATIVE_INFINITY:d.reduce((function(e,t){return e+(n[t]-l.viewItems[t].maximumSize)}),0),L=Math.max(w,N,o),E=Math.min(S,C,s),x=!1;if(a){var O=this.viewItems[a.index],B=t>=a.limitDelta;x=B!==O.visible,O.setVisible(B,a.size)}if(!x&&u){O=this.viewItems[u.index],B=t<u.limitDelta;x=B!==O.visible,O.setVisible(B,u.size)}if(x)return this.resize(e,t,n,i,r,o,s);t=Object(Ki["a"])(t,L,E);for(var k=0,D=t;k<v.length;k++){var I=v[k],M=Object(Ki["a"])(_[k]+D,I.minimumSize,I.maximumSize),F=M-_[k];D-=F,I.size=M}k=0;for(var T=t;k<y.length;k++){I=y[k],M=Object(Ki["a"])(b[k]-T,I.minimumSize,I.maximumSize),F=M-b[k];T+=F,I.size=M}return t},t.prototype.distributeEmptySpace=function(e){for(var t=this,n=this.viewItems.reduce((function(e,t){return e+t.size}),0),i=this.size-n,r=Object(q["u"])(this.viewItems.length-1,-1),o=r.filter((function(e){return 1===t.viewItems[e].priority})),s=r.filter((function(e){return 2===t.viewItems[e].priority})),a=0,u=s;a<u.length;a++){var l=u[a];Object(q["t"])(r,l)}for(var c=0,d=o;c<d.length;c++){l=d[c];Object(q["s"])(r,l)}"number"===typeof e&&Object(q["s"])(r,e);for(var h=0;0!==i&&h<r.length;h++){var f=this.viewItems[r[h]],p=Object(Ki["a"])(f.size+i,f.minimumSize,f.maximumSize),g=p-f.size;i-=g,f.size=p}},t.prototype.layoutViews=function(){this.contentSize=this.viewItems.reduce((function(e,t){return e+t.size}),0);for(var e=0,t=0,n=this.viewItems;t<n.length;t++){var i=n[t];i.layout(e,this.layoutContext),e+=i.size}this.sashItems.forEach((function(e){return e.sash.layout()})),this.updateSashEnablement()},t.prototype.updateSashEnablement=function(){var e=!1,t=this.viewItems.map((function(t){return e=t.size-t.minimumSize>0||e}));e=!1;var n=this.viewItems.map((function(t){return e=t.maximumSize-t.size>0||e})),i=Xi(this.viewItems).reverse();e=!1;var r=i.map((function(t){return e=t.size-t.minimumSize>0||e})).reverse();e=!1;for(var o=i.map((function(t){return e=t.maximumSize-t.size>0||e})).reverse(),s=0,a=0;a<this.sashItems.length;a++){var u=this.sashItems[a].sash,l=this.viewItems[a];s+=l.size;var c=!(t[a]&&o[a+1]),d=!(n[a]&&r[a+1]);if(c&&d){var h=Object(q["u"])(a,-1),f=Object(q["u"])(a+1,this.viewItems.length),p=this.findFirstSnapIndex(h),g=this.findFirstSnapIndex(f),A="number"===typeof p&&!this.viewItems[p].visible,m="number"===typeof g&&!this.viewItems[g].visible;A&&r[a]&&(s>0||this.startSnappingEnabled)?u.state=1:m&&t[a]&&(s<this.contentSize||this.endSnappingEnabled)?u.state=2:u.state=0}else u.state=c&&!d?1:!c&&d?2:3}},t.prototype.getSashPosition=function(e){for(var t=0,n=0;n<this.sashItems.length;n++)if(t+=this.viewItems[n].size,this.sashItems[n].sash===e)return Math.min(t,this.contentSize-2);return 0},t.prototype.findFirstSnapIndex=function(e){for(var t=0,n=e;t<n.length;t++){var i=n[t],r=this.viewItems[i];if(r.visible&&r.snap)return i}for(var o=0,s=e;o<s.length;o++){i=s[o],r=this.viewItems[i];if(r.visible&&r.maximumSize-r.minimumSize>0)return;if(!r.visible&&r.snap)return i}},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.viewItems.forEach((function(e){return e.dispose()})),this.viewItems=[],this.sashItems.forEach((function(e){return e.disposable.dispose()})),this.sashItems=[]},t}(o["a"]),tr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),nr=function(e,t,n,i){var r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},ir=function(e,t){return function(n,i){t(n,i,e)}},rr=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{u(i.next(e))}catch(t){o(t)}}function a(e){try{u(i["throw"](e))}catch(t){o(t)}}function u(e){e.done?n(e.value):r(e.value).then(s,a)}u((i=i.apply(e,t||[])).next())}))},or=function(e,t){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(e){return function(t){return u([e,t])}}function u(o){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,i&&(r=2&o[0]?i["return"]:o[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(r=s.trys,!(r=r.length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(a){o=[6,a],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},sr=function(){function e(e,t){var n=this;this._editor=e,this._model=t,this._decorations=new Map,this._decorationIgnoreSet=new Set,this._callOnDispose=new o["b"],this._callOnModelChange=new o["b"],this._callOnDispose.add(this._editor.onDidChangeModel((function(){return n._onModelChanged()}))),this._onModelChanged()}return e.prototype.dispose=function(){this._callOnModelChange.dispose(),this._callOnDispose.dispose(),this.removeDecorations()},e.prototype._onModelChanged=function(){this._callOnModelChange.clear();var e=this._editor.getModel();if(e)for(var t=0,n=this._model.groups;t<n.length;t++){var i=n[t];if(Object(oe["e"])(i.uri,e.uri))return void this._addDecorations(i)}},e.prototype._addDecorations=function(t){var n=this;if(this._editor.hasModel()){this._callOnModelChange.add(this._editor.getModel().onDidChangeDecorations((function(e){return n._onDecorationChanged()})));for(var i=[],r=[],o=0,s=t.children.length;o<s;o++){var a=t.children[o];this._decorationIgnoreSet.has(a.id)||(i.push({range:a.range,options:e.DecorationOptions}),r.push(o))}var u=this._editor.deltaDecorations([],i);for(o=0;o<u.length;o++)this._decorations.set(u[o],t.children[r[o]])}},e.prototype._onDecorationChanged=function(){var e=this,t=[],n=this._editor.getModel();if(n){this._decorations.forEach((function(i,r){var o=n.getDecorationRange(r);if(o){var s=!1;if(!a["a"].equalsRange(o,i.range)){if(a["a"].spansMultipleLines(o))s=!0;else{var u=i.range.endColumn-i.range.startColumn,l=o.endColumn-o.startColumn;u!==l&&(s=!0)}s?(e._decorationIgnoreSet.add(i.id),t.push(r)):i.range=o}}}));for(var i=0,r=t.length;i<r;i++)this._decorations.delete(t[i]);this._editor.deltaDecorations(t,[])}},e.prototype.removeDecorations=function(){var e=[];this._decorations.forEach((function(t,n){e.push(n)})),this._editor.deltaDecorations(e,[]),this._decorations.clear()},e.DecorationOptions=g["a"].register({stickiness:1,className:"reference-decoration"}),e}(),ar=function(){function e(){this.ratio=.7,this.heightInLines=18}return e.fromJSON=function(e){var t,n;try{var i=JSON.parse(e);t=i.ratio,n=i.heightInLines}catch(r){}return{ratio:t||.7,heightInLines:n||18}},e}(),ur=function(e){function t(t,n,i,r,s,a,u,l){var c=e.call(this,t,{showFrame:!1,showArrow:!0,isResizeable:!0,isAccessible:!0})||this;return c._defaultTreeKeyboardSupport=n,c.layoutData=i,c._textModelResolverService=s,c._instantiationService=a,c._peekViewService=u,c._uriLabel=l,c._disposeOnNewModel=new o["b"],c._callOnDispose=new o["b"],c._onDidSelectReference=new k["a"],c.onDidSelectReference=c._onDidSelectReference.event,c._dim={height:0,width:0},c._applyTheme(r.getTheme()),c._callOnDispose.add(r.onThemeChange(c._applyTheme.bind(c))),c._peekViewService.addExclusiveWidget(t,c),c.create(),c}return tr(t,e),t.prototype.dispose=function(){this.setModel(void 0),this._callOnDispose.dispose(),this._disposeOnNewModel.dispose(),Object(o["f"])(this._preview),Object(o["f"])(this._previewNotAvailableMessage),Object(o["f"])(this._tree),Object(o["f"])(this._previewModelReference),this._splitView.dispose(),e.prototype.dispose.call(this)},t.prototype._applyTheme=function(e){var t=e.getColor(We)||h["a"].transparent;this.style({arrowColor:t,frameColor:t,headerBackgroundColor:e.getColor(je)||h["a"].transparent,primaryHeadingColor:e.getColor(Qe),secondaryHeadingColor:e.getColor(Ve)})},t.prototype.show=function(t){this.editor.revealRangeInCenterIfOutsideViewport(t,0),e.prototype.show.call(this,t,this.layoutData.heightInLines||18)},t.prototype.focusOnReferenceTree=function(){this._tree.domFocus()},t.prototype.focusOnPreviewEditor=function(){this._preview.focus()},t.prototype.isPreviewEditorFocused=function(){return this._preview.hasTextFocus()},t.prototype._onTitleClick=function(e){this._preview&&this._preview.getModel()&&this._onDidSelectReference.fire({element:this._getFocusedReference(),kind:e.ctrlKey||e.metaKey||e.altKey?"side":"open",source:"title"})},t.prototype._fillBody=function(e){var t=this;this.setCssClass("reference-zone-widget"),this._messageContainer=c["p"](e,c["a"]("div.messages")),c["I"](this._messageContainer),this._splitView=new er(e,{orientation:1}),this._previewContainer=c["p"](e,c["a"]("div.preview.inline"));var n={scrollBeyondLastLine:!1,scrollbar:{verticalScrollbarSize:14,horizontal:"auto",useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,alwaysConsumeMouseWheel:!1},overviewRulerLanes:2,fixedOverflowWidgets:!0,minimap:{enabled:!1}};this._preview=this._instantiationService.createInstance(be,this._previewContainer,n,this.editor),c["I"](this._previewContainer),this._previewNotAvailableMessage=g["b"].createFromString(i["a"]("missingPreviewMessage","no preview available")),this._treeContainer=c["p"](e,c["a"]("div.ref-tree.inline"));var r={ariaLabel:i["a"]("treeAriaLabel","References"),keyboardSupport:this._defaultTreeKeyboardSupport,accessibilityProvider:new Vi,keyboardNavigationLabelProvider:this._instantiationService.createInstance(Ri),identityProvider:new Pi,overrideStyles:{listBackground:ze}};this._tree=this._instantiationService.createInstance(Wi["c"],"ReferencesWidget",this._treeContainer,new Ti,[this._instantiationService.createInstance(Hi),this._instantiationService.createInstance(Qi)],this._instantiationService.createInstance(Fi),r),this._splitView.addView({onDidChange:k["b"].None,element:this._previewContainer,minimumSize:200,maximumSize:Number.MAX_VALUE,layout:function(e){t._preview.layout({height:t._dim.height,width:e})}},gi.Distribute),this._splitView.addView({onDidChange:k["b"].None,element:this._treeContainer,minimumSize:100,maximumSize:Number.MAX_VALUE,layout:function(e){t._treeContainer.style.height=t._dim.height+"px",t._treeContainer.style.width=e+"px",t._tree.layout(t._dim.height,e)}},gi.Distribute),this._disposables.add(this._splitView.onDidSashChange((function(){t._dim.width&&(t.layoutData.ratio=t._splitView.getViewSize(0)/t._dim.width)}),void 0));var o=function(e,n){e instanceof yi&&("show"===n&&t._revealReference(e,!1),t._onDidSelectReference.fire({element:e,kind:n,source:"tree"}))};this._tree.onDidChangeFocus((function(e){o(e.elements[0],"show")})),this._tree.onDidOpen((function(e){e.browserEvent instanceof MouseEvent&&(e.browserEvent.ctrlKey||e.browserEvent.metaKey||e.browserEvent.altKey)?o(e.elements[0],"side"):e.browserEvent instanceof KeyboardEvent||e.browserEvent instanceof MouseEvent&&2===e.browserEvent.detail||2===e.browserEvent.tapCount?o(e.elements[0],"goto"):o(e.elements[0],"show")})),c["I"](this._treeContainer)},t.prototype._onWidth=function(e){this._dim&&this._doLayoutBody(this._dim.height,e)},t.prototype._doLayoutBody=function(t,n){e.prototype._doLayoutBody.call(this,t,n),this._dim={height:t,width:n},this.layoutData.heightInLines=this._viewZone?this._viewZone.heightInLines:this.layoutData.heightInLines,this._splitView.layout(n),this._splitView.resizeView(0,n*this.layoutData.ratio)},t.prototype.setSelection=function(e){var t=this;return this._revealReference(e,!0).then((function(){t._model&&(t._tree.setSelection([e]),t._tree.setFocus([e]))}))},t.prototype.setModel=function(e){return this._disposeOnNewModel.clear(),this._model=e,this._model?this._onNewModel():Promise.resolve()},t.prototype._onNewModel=function(){var e=this;return this._model?this._model.isEmpty?(this.setTitle(""),this._messageContainer.innerHTML=i["a"]("noResults","No results"),c["W"](this._messageContainer),Promise.resolve(void 0)):(c["I"](this._messageContainer),this._decorationsManager=new sr(this._preview,this._model),this._disposeOnNewModel.add(this._decorationsManager),this._disposeOnNewModel.add(this._model.onDidChangeReferenceRange((function(t){return e._tree.rerender(t)}))),this._disposeOnNewModel.add(this._preview.onMouseDown((function(t){var n=t.event,i=t.target;if(2===n.detail){var r=e._getFocusedReference();r&&e._onDidSelectReference.fire({element:{uri:r.uri,range:i.range},kind:n.ctrlKey||n.metaKey||n.altKey?"side":"open",source:"editor"})}}))),c["e"](this.container,"results-loaded"),c["W"](this._treeContainer),c["W"](this._previewContainer),this._splitView.layout(this._dim.width),this.focusOnReferenceTree(),this._tree.setInput(1===this._model.groups.length?this._model.groups[0]:this._model)):Promise.resolve(void 0)},t.prototype._getFocusedReference=function(){var e=this._tree.getFocus()[0];return e instanceof yi?e:e instanceof wi&&e.children.length>0?e.children[0]:void 0},t.prototype._revealReference=function(e,t){return rr(this,void 0,void 0,(function(){var n,r,s,u,l;return or(this,(function(c){switch(c.label){case 0:return this._revealedReference===e?[2]:(this._revealedReference=e,e.uri.scheme!==Si["b"].inMemory?this.setTitle(Object(oe["c"])(e.uri),this._uriLabel.getUriLabel(Object(oe["d"])(e.uri))):this.setTitle(i["a"]("peekView.alternateTitle","References")),n=this._textModelResolverService.createModelReference(e.uri),this._tree.getInput()!==e.parent?[3,1]:(this._tree.reveal(e),[3,3]));case 1:return t&&this._tree.reveal(e.parent),[4,this._tree.expand(e.parent)];case 2:c.sent(),this._tree.reveal(e),c.label=3;case 3:return[4,n];case 4:return r=c.sent(),this._model?(Object(o["f"])(this._previewModelReference),s=r.object,s?(u=this._preview.getModel()===s.textEditorModel?0:1,l=a["a"].lift(e.range).collapseToStart(),this._previewModelReference=r,this._preview.setModel(s.textEditorModel),this._preview.setSelection(l),this._preview.revealRangeInCenter(l,u)):(this._preview.setModel(this._previewNotAvailableMessage),r.dispose()),[2]):(r.dispose(),[2])}}))}))},t=nr([ir(3,R["c"]),ir(4,Ai["a"]),ir(5,ge["a"]),ir(6,Fe),ir(7,xi["a"])],t),t}(He);Object(R["e"])((function(e,t){var n=e.getColor(Ze);n&&t.addRule(".monaco-editor .reference-zone-widget .ref-tree .referenceMatch .highlight { background-color: "+n+"; }");var i=e.getColor($e);i&&t.addRule(".monaco-editor .reference-zone-widget .preview .reference-decoration { background-color: "+i+"; }");var r=e.getColor(et);r&&t.addRule(".monaco-editor .reference-zone-widget .preview .reference-decoration { border: 2px solid "+r+"; box-sizing: border-box; }");var o=e.getColor(T["b"]);o&&t.addRule(".monaco-editor .reference-zone-widget .ref-tree .referenceMatch .highlight { border: 1px dotted "+o+"; box-sizing: border-box; }");var s=e.getColor(ze);s&&t.addRule(".monaco-editor .reference-zone-widget .ref-tree { background-color: "+s+"; }");var a=e.getColor(Ke);a&&t.addRule(".monaco-editor .reference-zone-widget .ref-tree { color: "+a+"; }");var u=e.getColor(qe);u&&t.addRule(".monaco-editor .reference-zone-widget .ref-tree .reference-file { color: "+u+"; }");var l=e.getColor(Ge);l&&t.addRule(".monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .monaco-list-rows > .monaco-list-row.selected:not(.highlighted) { background-color: "+l+"; }");var c=e.getColor(Xe);c&&t.addRule(".monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .monaco-list-rows > .monaco-list-row.selected:not(.highlighted) { color: "+c+" !important; }");var d=e.getColor(Ye);d&&t.addRule(".monaco-editor .reference-zone-widget .preview .monaco-editor .monaco-editor-background,.monaco-editor .reference-zone-widget .preview .monaco-editor .inputarea.ime-input {\tbackground-color: "+d+";}");var h=e.getColor(Je);h&&t.addRule(".monaco-editor .reference-zone-widget .preview .monaco-editor .margin {\tbackground-color: "+h+";}")}));var lr=n("nrhi"),cr=function(e,t,n,i){var r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},dr=function(e,t){return function(n,i){t(n,i,e)}},hr=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{u(i.next(e))}catch(t){o(t)}}function a(e){try{u(i["throw"](e))}catch(t){o(t)}}function u(e){e.done?n(e.value):r(e.value).then(s,a)}u((i=i.apply(e,t||[])).next())}))},fr=function(e,t){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(e){return function(t){return u([e,t])}}function u(o){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,i&&(r=2&o[0]?i["return"]:o[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(r=s.trys,!(r=r.length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(a){o=[6,a],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},pr=new ae["d"]("referenceSearchVisible",!1),gr=function(){function e(e,t,n,i,r,s,a,u){this._defaultTreeKeyboardSupport=e,this._editor=t,this._editorService=i,this._notificationService=r,this._instantiationService=s,this._storageService=a,this._configurationService=u,this._disposables=new o["b"],this._requestIdPool=0,this._ignoreModelChangeEvent=!1,this._referenceSearchVisible=pr.bindTo(n)}return e.get=function(t){return t.getContribution(e.ID)},e.prototype.dispose=function(){this._referenceSearchVisible.reset(),this._disposables.dispose(),Object(o["f"])(this._widget),Object(o["f"])(this._model),this._widget=void 0,this._model=void 0},e.prototype.toggleWidget=function(e,t,n){var r,o=this;if(this._widget&&(r=this._widget.position),this.closeWidget(),!r||!e.containsPosition(r)){this._peekMode=n,this._referenceSearchVisible.set(!0),this._disposables.add(this._editor.onDidChangeModelLanguage((function(){o.closeWidget()}))),this._disposables.add(this._editor.onDidChangeModel((function(){o._ignoreModelChangeEvent||o.closeWidget()})));var s="peekViewLayout",a=ar.fromJSON(this._storageService.get(s,0,"{}"));this._widget=this._instantiationService.createInstance(ur,this._editor,this._defaultTreeKeyboardSupport,a),this._widget.setTitle(i["a"]("labelLoading","Loading...")),this._widget.show(e),this._disposables.add(this._widget.onDidClose((function(){t.cancel(),o._widget&&(o._storageService.store(s,JSON.stringify(o._widget.layoutData),0),o._widget=void 0),o.closeWidget()}))),this._disposables.add(this._widget.onDidSelectReference((function(e){var t=e.element,i=e.kind;if(t)switch(i){case"open":"editor"===e.source&&o._configurationService.getValue("editor.stablePeek")||o.openReference(t,!1);break;case"side":o.openReference(t,!0);break;case"goto":n?o._gotoReference(t):o.openReference(t,!1);break}})));var u=++this._requestIdPool;t.then((function(t){if(u===o._requestIdPool&&o._widget)return o._model&&o._model.dispose(),o._model=t,o._widget.setModel(o._model).then((function(){if(o._widget&&o._model&&o._editor.hasModel()){o._model.isEmpty?o._widget.setMetaTitle(""):o._widget.setMetaTitle(i["a"]("metaTitle.N","{0} ({1})",o._model.title,o._model.references.length));var t=o._editor.getModel().uri,n=new p["a"](e.startLineNumber,e.startColumn),r=o._model.nearestReference(t,n);if(r)return o._widget.setSelection(r).then((function(){o._widget&&"editor"===o._editor.getOption(65)&&o._widget.focusOnPreviewEditor()}))}}))}),(function(e){o._notificationService.error(e)}))}},e.prototype.changeFocusBetweenPreviewAndReferences=function(){this._widget&&(this._widget.isPreviewEditorFocused()?this._widget.focusOnReferenceTree():this._widget.focusOnPreviewEditor())},e.prototype.goToNextOrPreviousReference=function(e){return hr(this,void 0,void 0,(function(){var t,n,i,r,o;return fr(this,(function(s){switch(s.label){case 0:return this._editor.hasModel()&&this._model&&this._widget?(t=this._widget.position,t?(n=this._model.nearestReference(this._editor.getModel().uri,t),n?(i=this._model.nextOrPreviousReference(n,e),r=this._editor.hasTextFocus(),o=this._widget.isPreviewEditorFocused(),[4,this._widget.setSelection(i)]):[2]):[2]):[2];case 1:return s.sent(),[4,this._gotoReference(i)];case 2:return s.sent(),r?this._editor.focus():this._widget&&o&&this._widget.focusOnPreviewEditor(),[2]}}))}))},e.prototype.closeWidget=function(e){void 0===e&&(e=!0),this._referenceSearchVisible.reset(),this._disposables.clear(),Object(o["f"])(this._widget),Object(o["f"])(this._model),this._widget=void 0,this._model=void 0,e&&this._editor.focus(),this._requestIdPool+=1},e.prototype._gotoReference=function(t){var n=this;this._widget&&this._widget.hide(),this._ignoreModelChangeEvent=!0;var i=a["a"].lift(t.range).collapseToStart();return this._editorService.openCodeEditor({resource:t.uri,options:{selection:i}},this._editor).then((function(t){var r;if(n._ignoreModelChangeEvent=!1,t&&n._widget)if(n._editor===t)n._widget.show(i),n._widget.focusOnReferenceTree();else{var o=e.get(t),s=n._model.clone();n.closeWidget(),t.focus(),o.toggleWidget(i,Object(w["f"])((function(e){return Promise.resolve(s)})),null!==(r=n._peekMode)&&void 0!==r&&r)}else n.closeWidget()}),(function(e){n._ignoreModelChangeEvent=!1,Object(m["e"])(e)}))},e.prototype.openReference=function(e,t){t||this.closeWidget();var n=e.uri,i=e.range;this._editorService.openCodeEditor({resource:n,options:{selection:i}},this._editor,t)},e.ID="editor.contrib.referencesController",e=cr([dr(2,ae["c"]),dr(3,S["a"]),dr(4,Ae["a"]),dr(5,ge["a"]),dr(6,_i["a"]),dr(7,N["a"])],e),e}();function Ar(e,t){var n=Re(e);if(n){var i=gr.get(n);i&&t(i)}}lr["a"].registerCommandAndKeybindingRule({id:"togglePeekWidgetFocus",weight:100,primary:Object(r["a"])(2089,60),when:ae["a"].or(pr,Y.inPeekEditor),handler:function(e){Ar(e,(function(e){e.changeFocusBetweenPreviewAndReferences()}))}}),lr["a"].registerCommandAndKeybindingRule({id:"goToNextReference",weight:90,primary:62,secondary:[70],when:ae["a"].or(pr,Y.inPeekEditor),handler:function(e){Ar(e,(function(e){e.goToNextOrPreviousReference(!0)}))}}),lr["a"].registerCommandAndKeybindingRule({id:"goToPreviousReference",weight:90,primary:1086,secondary:[1094],when:ae["a"].or(pr,Y.inPeekEditor),handler:function(e){Ar(e,(function(e){e.goToNextOrPreviousReference(!1)}))}}),pe["a"].registerCommandAlias("goToNextReferenceFromEmbeddedEditor","goToNextReference"),pe["a"].registerCommandAlias("goToPreviousReferenceFromEmbeddedEditor","goToPreviousReference"),pe["a"].registerCommandAlias("closeReferenceSearchEditor","closeReferenceSearch"),pe["a"].registerCommand("closeReferenceSearch",(function(e){return Ar(e,(function(e){return e.closeWidget()}))})),lr["a"].registerKeybindingRule({id:"closeReferenceSearch",weight:-1,primary:9,secondary:[1033],when:ae["a"].and(Y.inPeekEditor,ae["a"].not("config.editor.stablePeek"))}),lr["a"].registerKeybindingRule({id:"closeReferenceSearch",weight:250,primary:9,secondary:[1033],when:ae["a"].and(pr,ae["a"].not("config.editor.stablePeek"))}),lr["a"].registerCommandAndKeybindingRule({id:"openReferenceToSide",weight:100,primary:2051,mac:{primary:259},when:ae["a"].and(pr,Wi["d"]),handler:function(e){var t,n=e.get(Wi["a"]),i=null===(t=n.lastFocusedList)||void 0===t?void 0:t.getFocus();Array.isArray(i)&&i[0]instanceof yi&&Ar(e,(function(e){return e.openReference(i[0],!0)}))}}),pe["a"].registerCommand("openReference",(function(e){var t,n=e.get(Wi["a"]),i=null===(t=n.lastFocusedList)||void 0===t?void 0:t.getFocus();Array.isArray(i)&&i[0]instanceof yi&&Ar(e,(function(e){return e.openReference(i[0],!1)}))}));var mr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),vr=function(e,t,n,i){var r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},_r=function(e,t){return function(n,i){t(n,i,e)}},yr=new ae["d"]("hasSymbols",!1),br=Object(ge["c"])("ISymbolNavigationService"),wr=function(){function e(e,t,n,i){this._editorService=t,this._notificationService=n,this._keybindingService=i,this._currentModel=void 0,this._currentIdx=-1,this._ignoreEditorChange=!1,this._ctxHasSymbols=yr.bindTo(e)}return e.prototype.reset=function(){this._ctxHasSymbols.reset(),Object(o["f"])(this._currentState),Object(o["f"])(this._currentMessage),this._currentModel=void 0,this._currentIdx=-1},e.prototype.put=function(e){var t=this,n=e.parent.parent;if(n.references.length<=1)this.reset();else{this._currentModel=n,this._currentIdx=n.references.indexOf(e),this._ctxHasSymbols.set(!0),this._showMessage();var i=new kr(this._editorService),r=i.onDidChange((function(e){if(!t._ignoreEditorChange){var i=t._editorService.getActiveCodeEditor();if(i){var r=i.getModel(),o=i.getPosition();if(r&&o){for(var s=!1,u=!1,l=0,c=n.references;l<c.length;l++){var d=c[l];if(Object(oe["e"])(d.uri,r.uri))s=!0,u=u||a["a"].containsPosition(d.range,o);else if(s)break}s&&u||t.reset()}}}}));this._currentState=Object(o["e"])(i,r)}},e.prototype.revealNext=function(e){var t=this;if(!this._currentModel)return Promise.resolve();this._currentIdx+=1,this._currentIdx%=this._currentModel.references.length;var n=this._currentModel.references[this._currentIdx];return this._showMessage(),this._ignoreEditorChange=!0,this._editorService.openCodeEditor({resource:n.uri,options:{selection:a["a"].collapseToStart(n.range),revealInCenterIfOutsideViewport:!0}},e).finally((function(){t._ignoreEditorChange=!1}))},e.prototype._showMessage=function(){Object(o["f"])(this._currentMessage);var e=this._keybindingService.lookupKeybinding("editor.gotoNextSymbolFromResult"),t=e?Object(i["a"])("location.kb","Symbol {0} of {1}, {2} for next",this._currentIdx+1,this._currentModel.references.length,e.getLabel()):Object(i["a"])("location","Symbol {0} of {1}",this._currentIdx+1,this._currentModel.references.length);this._currentMessage=this._notificationService.status(t)},e=vr([_r(0,ae["c"]),_r(1,S["a"]),_r(2,Ae["a"]),_r(3,ft["a"])],e),e}();Object(ke["b"])(br,wr,!0),Object(s["g"])(new(function(e){function t(){return e.call(this,{id:"editor.gotoNextSymbolFromResult",precondition:yr,kbOpts:{weight:100,primary:70}})||this}return mr(t,e),t.prototype.runEditorCommand=function(e,t){return e.get(br).revealNext(t)},t}(s["c"]))),lr["a"].registerCommandAndKeybindingRule({id:"editor.gotoNextSymbolFromResult.cancel",weight:100,when:yr,primary:9,handler:function(e){e.get(br).reset()}});var Cr,Sr,Nr,Lr,Er,xr,Or,Br,kr=function(){function e(e){this._listener=new Map,this._disposables=new o["b"],this._onDidChange=new k["a"],this.onDidChange=this._onDidChange.event,this._disposables.add(e.onCodeEditorRemove(this._onDidRemoveEditor,this)),this._disposables.add(e.onCodeEditorAdd(this._onDidAddEditor,this)),e.listCodeEditors().forEach(this._onDidAddEditor,this)}return e.prototype.dispose=function(){this._disposables.dispose(),this._onDidChange.dispose(),this._listener.forEach(o["f"])},e.prototype._onDidAddEditor=function(e){var t=this;this._listener.set(e,Object(o["e"])(e.onDidChangeCursorPosition((function(n){return t._onDidChange.fire({editor:e})})),e.onDidChangeModelContent((function(n){return t._onDidChange.fire({editor:e})}))))},e.prototype._onDidRemoveEditor=function(e){Object(o["f"])(this._listener.get(e)),this._listener.delete(e)},e=vr([_r(0,S["a"])],e),e}(),Dr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Ir=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{u(i.next(e))}catch(t){o(t)}}function a(e){try{u(i["throw"](e))}catch(t){o(t)}}function u(e){e.done?n(e.value):r(e.value).then(s,a)}u((i=i.apply(e,t||[])).next())}))},Mr=function(e,t){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(e){return function(t){return u([e,t])}}function u(o){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,i&&(r=2&o[0]?i["return"]:o[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(r=s.trys,!(r=r.length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(a){o=[6,a],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}};ht["c"].appendMenuItem(7,{submenu:8,title:i["a"]("peek.submenu","Peek"),group:"navigation",order:100});var Fr=function(e){function t(t,n){var i=e.call(this,n)||this;return i._configuration=t,i}return Dr(t,e),t.prototype.run=function(e,t){var n=this;if(!t.hasModel())return Promise.resolve(void 0);var i=e.get(Ae["a"]),r=e.get(S["a"]),o=e.get(En["a"]),s=e.get(br),a=t.getModel(),u=t.getPosition(),l=new xt["b"](t,5),c=Object(w["j"])(this._getLocationModel(a,u,l.token),l.token).then((function(e){return Ir(n,void 0,void 0,(function(){var n,i,o,c;return Mr(this,(function(d){if(!e||l.token.isCancellationRequested)return[2];if(Object(Xt["a"])(e.ariaMessage),e.referenceAt(a.uri,u)&&(i=this._getAlternativeCommand(t),i!==this.id&&(n=t.getAction(i))),o=e.references.length,0===o)this._configuration.muteMessage||(c=a.getWordAtPosition(u),$t.get(t).showMessage(this._getNoResultFoundMessage(c),u));else{if(1!==o||!n)return[2,this._onResult(r,s,t,e)];n.run()}return[2]}))}))}),(function(e){i.error(e)})).finally((function(){l.dispose()}));return o.showWhile(c,250),c},t.prototype._onResult=function(e,t,n,i){return Ir(this,void 0,void 0,(function(){var r,o,s,a;return Mr(this,(function(u){switch(u.label){case 0:return r=this._getGoToPreference(n),n instanceof be||!(this._configuration.openInPeek||"peek"===r&&i.references.length>1)?[3,1]:(this._openInPeek(n,i),[3,3]);case 1:return o=i.firstReference(),s=i.references.length>1&&"gotoAndPeek"===r,[4,this._openReference(n,e,o,this._configuration.openToSide,!s)];case 2:a=u.sent(),s&&a?this._openInPeek(a,i):i.dispose(),"goto"===r&&t.put(o),u.label=3;case 3:return[2]}}))}))},t.prototype._openReference=function(e,t,n,i,r){return Ir(this,void 0,void 0,(function(){var o,s,u,l;return Mr(this,(function(c){switch(c.label){case 0:return o=void 0,Object(A["D"])(n)&&(o=n.targetSelectionRange),o||(o=n.range),[4,t.openCodeEditor({resource:n.uri,options:{selection:a["a"].collapseToStart(o),revealInCenterIfOutsideViewport:!0}},e,i)];case 1:return s=c.sent(),s?(r&&(u=s.getModel(),l=s.deltaDecorations([],[{range:o,options:{className:"symbolHighlight"}}]),setTimeout((function(){s.getModel()===u&&s.deltaDecorations(l,[])}),350)),[2,s]):[2,void 0]}}))}))},t.prototype._openInPeek=function(e,t){var n=gr.get(e);n&&e.hasModel()?n.toggleWidget(e.getSelection(),Object(w["f"])((function(e){return Promise.resolve(t)})),this._configuration.openInPeek):t.dispose()},t}(s["b"]),Tr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Dr(t,e),t.prototype._getLocationModel=function(e,t,n){return Ir(this,void 0,void 0,(function(){var r;return Mr(this,(function(o){switch(o.label){case 0:return r=Ci.bind,[4,li(e,t,n)];case 1:return[2,new(r.apply(Ci,[void 0,o.sent(),i["a"]("def.title","Definitions")]))]}}))}))},t.prototype._getNoResultFoundMessage=function(e){return e&&e.word?i["a"]("noResultWord","No definition found for '{0}'",e.word):i["a"]("generic.noResults","No definition found")},t.prototype._getAlternativeCommand=function(e){return e.getOption(41).alternativeDefinitionCommand},t.prototype._getGoToPreference=function(e){return e.getOption(41).multipleDefinitions},t}(Fr),Rr=mi["g"]&&!I["l"]?2118:70;Object(s["f"])((Cr=function(e){function t(){var n=e.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:t.id,label:i["a"]("actions.goToDecl.label","Go to Definition"),alias:"Go to Definition",precondition:ae["a"].and(u["a"].hasDefinitionProvider,u["a"].isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:u["a"].editorTextFocus,primary:Rr,weight:100},contextMenuOpts:{group:"navigation",order:1.1},menuOpts:{menuId:19,group:"4_symbol_nav",order:2,title:i["a"]({key:"miGotoDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Definition")}})||this;return pe["a"].registerCommandAlias("editor.action.goToDeclaration",t.id),n}return Dr(t,e),t}(Tr),Cr.id="editor.action.revealDefinition",Cr)),Object(s["f"])((Sr=function(e){function t(){var n=e.call(this,{openToSide:!0,openInPeek:!1,muteMessage:!1},{id:t.id,label:i["a"]("actions.goToDeclToSide.label","Open Definition to the Side"),alias:"Open Definition to the Side",precondition:ae["a"].and(u["a"].hasDefinitionProvider,u["a"].isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:u["a"].editorTextFocus,primary:Object(r["a"])(2089,Rr),weight:100}})||this;return pe["a"].registerCommandAlias("editor.action.openDeclarationToTheSide",t.id),n}return Dr(t,e),t}(Tr),Sr.id="editor.action.revealDefinitionAside",Sr)),Object(s["f"])((Nr=function(e){function t(){var n=e.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:t.id,label:i["a"]("actions.previewDecl.label","Peek Definition"),alias:"Peek Definition",precondition:ae["a"].and(u["a"].hasDefinitionProvider,Y.notInPeekEditor,u["a"].isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:u["a"].editorTextFocus,primary:582,linux:{primary:3140},weight:100},contextMenuOpts:{menuId:8,group:"peek",order:2}})||this;return pe["a"].registerCommandAlias("editor.action.previewDeclaration",t.id),n}return Dr(t,e),t}(Tr),Nr.id="editor.action.peekDefinition",Nr));var Pr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Dr(t,e),t.prototype._getLocationModel=function(e,t,n){return Ir(this,void 0,void 0,(function(){var r;return Mr(this,(function(o){switch(o.label){case 0:return r=Ci.bind,[4,ci(e,t,n)];case 1:return[2,new(r.apply(Ci,[void 0,o.sent(),i["a"]("decl.title","Declarations")]))]}}))}))},t.prototype._getNoResultFoundMessage=function(e){return e&&e.word?i["a"]("decl.noResultWord","No declaration found for '{0}'",e.word):i["a"]("decl.generic.noResults","No declaration found")},t.prototype._getAlternativeCommand=function(e){return e.getOption(41).alternativeDeclarationCommand},t.prototype._getGoToPreference=function(e){return e.getOption(41).multipleDeclarations},t}(Fr);Object(s["f"])((Lr=function(e){function t(){return e.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:t.id,label:i["a"]("actions.goToDeclaration.label","Go to Declaration"),alias:"Go to Declaration",precondition:ae["a"].and(u["a"].hasDeclarationProvider,u["a"].isInEmbeddedEditor.toNegated()),contextMenuOpts:{group:"navigation",order:1.3},menuOpts:{menuId:19,group:"4_symbol_nav",order:3,title:i["a"]({key:"miGotoDeclaration",comment:["&& denotes a mnemonic"]},"Go to &&Declaration")}})||this}return Dr(t,e),t.prototype._getNoResultFoundMessage=function(e){return e&&e.word?i["a"]("decl.noResultWord","No declaration found for '{0}'",e.word):i["a"]("decl.generic.noResults","No declaration found")},t}(Pr),Lr.id="editor.action.revealDeclaration",Lr)),Object(s["f"])(function(e){function t(){return e.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.peekDeclaration",label:i["a"]("actions.peekDecl.label","Peek Declaration"),alias:"Peek Declaration",precondition:ae["a"].and(u["a"].hasDeclarationProvider,Y.notInPeekEditor,u["a"].isInEmbeddedEditor.toNegated()),contextMenuOpts:{menuId:8,group:"peek",order:3}})||this}return Dr(t,e),t}(Pr));var Ur=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Dr(t,e),t.prototype._getLocationModel=function(e,t,n){return Ir(this,void 0,void 0,(function(){var r;return Mr(this,(function(o){switch(o.label){case 0:return r=Ci.bind,[4,hi(e,t,n)];case 1:return[2,new(r.apply(Ci,[void 0,o.sent(),i["a"]("typedef.title","Type Definitions")]))]}}))}))},t.prototype._getNoResultFoundMessage=function(e){return e&&e.word?i["a"]("goToTypeDefinition.noResultWord","No type definition found for '{0}'",e.word):i["a"]("goToTypeDefinition.generic.noResults","No type definition found")},t.prototype._getAlternativeCommand=function(e){return e.getOption(41).alternativeTypeDefinitionCommand},t.prototype._getGoToPreference=function(e){return e.getOption(41).multipleTypeDefinitions},t}(Fr);Object(s["f"])((Er=function(e){function t(){return e.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:t.ID,label:i["a"]("actions.goToTypeDefinition.label","Go to Type Definition"),alias:"Go to Type Definition",precondition:ae["a"].and(u["a"].hasTypeDefinitionProvider,u["a"].isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:u["a"].editorTextFocus,primary:0,weight:100},contextMenuOpts:{group:"navigation",order:1.4},menuOpts:{menuId:19,group:"4_symbol_nav",order:3,title:i["a"]({key:"miGotoTypeDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Type Definition")}})||this}return Dr(t,e),t}(Ur),Er.ID="editor.action.goToTypeDefinition",Er)),Object(s["f"])((xr=function(e){function t(){return e.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:t.ID,label:i["a"]("actions.peekTypeDefinition.label","Peek Type Definition"),alias:"Peek Type Definition",precondition:ae["a"].and(u["a"].hasTypeDefinitionProvider,Y.notInPeekEditor,u["a"].isInEmbeddedEditor.toNegated()),contextMenuOpts:{menuId:8,group:"peek",order:4}})||this}return Dr(t,e),t}(Ur),xr.ID="editor.action.peekTypeDefinition",xr));var Hr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Dr(t,e),t.prototype._getLocationModel=function(e,t,n){return Ir(this,void 0,void 0,(function(){var r;return Mr(this,(function(o){switch(o.label){case 0:return r=Ci.bind,[4,di(e,t,n)];case 1:return[2,new(r.apply(Ci,[void 0,o.sent(),i["a"]("impl.title","Implementations")]))]}}))}))},t.prototype._getNoResultFoundMessage=function(e){return e&&e.word?i["a"]("goToImplementation.noResultWord","No implementation found for '{0}'",e.word):i["a"]("goToImplementation.generic.noResults","No implementation found")},t.prototype._getAlternativeCommand=function(e){return e.getOption(41).alternativeImplementationCommand},t.prototype._getGoToPreference=function(e){return e.getOption(41).multipleImplementations},t}(Fr);Object(s["f"])((Or=function(e){function t(){return e.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:t.ID,label:i["a"]("actions.goToImplementation.label","Go to Implementations"),alias:"Go to Implementations",precondition:ae["a"].and(u["a"].hasImplementationProvider,u["a"].isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:u["a"].editorTextFocus,primary:2118,weight:100},menuOpts:{menuId:19,group:"4_symbol_nav",order:4,title:i["a"]({key:"miGotoImplementation",comment:["&& denotes a mnemonic"]},"Go to &&Implementations")},contextMenuOpts:{group:"navigation",order:1.45}})||this}return Dr(t,e),t}(Hr),Or.ID="editor.action.goToImplementation",Or)),Object(s["f"])((Br=function(e){function t(){return e.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:t.ID,label:i["a"]("actions.peekImplementation.label","Peek Implementations"),alias:"Peek Implementations",precondition:ae["a"].and(u["a"].hasImplementationProvider,Y.notInPeekEditor,u["a"].isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:u["a"].editorTextFocus,primary:3142,weight:100},contextMenuOpts:{menuId:8,group:"peek",order:5}})||this}return Dr(t,e),t}(Hr),Br.ID="editor.action.peekImplementation",Br));var jr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Dr(t,e),t.prototype._getNoResultFoundMessage=function(e){return e?i["a"]("references.no","No references found for '{0}'",e.word):i["a"]("references.noGeneric","No references found")},t.prototype._getAlternativeCommand=function(e){return e.getOption(41).alternativeReferenceCommand},t.prototype._getGoToPreference=function(e){return e.getOption(41).multipleReferences},t}(Fr);Object(s["f"])(function(e){function t(){return e.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:"editor.action.goToReferences",label:i["a"]("goToReferences.label","Go to References"),alias:"Go to References",precondition:ae["a"].and(u["a"].hasReferenceProvider,Y.notInPeekEditor,u["a"].isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:u["a"].editorTextFocus,primary:1094,weight:100},contextMenuOpts:{group:"navigation",order:1.45},menuOpts:{menuId:19,group:"4_symbol_nav",order:5,title:i["a"]({key:"miGotoReference",comment:["&& denotes a mnemonic"]},"Go to &&References")}})||this}return Dr(t,e),t.prototype._getLocationModel=function(e,t,n){return Ir(this,void 0,void 0,(function(){var r;return Mr(this,(function(o){switch(o.label){case 0:return r=Ci.bind,[4,fi(e,t,!0,n)];case 1:return[2,new(r.apply(Ci,[void 0,o.sent(),i["a"]("ref.title","References")]))]}}))}))},t}(jr)),Object(s["f"])(function(e){function t(){return e.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.referenceSearch.trigger",label:i["a"]("references.action.label","Peek References"),alias:"Peek References",precondition:ae["a"].and(u["a"].hasReferenceProvider,Y.notInPeekEditor,u["a"].isInEmbeddedEditor.toNegated()),contextMenuOpts:{menuId:8,group:"peek",order:6}})||this}return Dr(t,e),t.prototype._getLocationModel=function(e,t,n){return Ir(this,void 0,void 0,(function(){var r;return Mr(this,(function(o){switch(o.label){case 0:return r=Ci.bind,[4,fi(e,t,!1,n)];case 1:return[2,new(r.apply(Ci,[void 0,o.sent(),i["a"]("ref.title","References")]))]}}))}))},t}(jr));var Qr=function(e){function t(t,n,r){var o=e.call(this,t,{id:"editor.action.goToLocation",label:i["a"]("label.generic","Go To Any Symbol"),alias:"Go To Any Symbol",precondition:ae["a"].and(Y.notInPeekEditor,u["a"].isInEmbeddedEditor.toNegated())})||this;return o._references=n,o._gotoMultipleBehaviour=r,o}return Dr(t,e),t.prototype._getLocationModel=function(e,t,n){return Ir(this,void 0,void 0,(function(){return Mr(this,(function(e){return[2,new Ci(this._references,i["a"]("generic.title","Locations"))]}))}))},t.prototype._getNoResultFoundMessage=function(e){return e&&i["a"]("generic.noResult","No results for '{0}'",e.word)||""},t.prototype._getGoToPreference=function(e){var t;return null!==(t=this._gotoMultipleBehaviour)&&void 0!==t?t:e.getOption(41).multipleReferences},t.prototype._getAlternativeCommand=function(){return""},t}(Fr);pe["a"].registerCommand({id:"editor.action.goToLocations",description:{description:"Go to locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:v["a"]},{name:"position",description:"The position at which to start",constraint:p["a"].isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"}]},handler:function(e,t,n,i,r,o){return Ir(void 0,void 0,void 0,(function(){var s,a;return Mr(this,(function(u){switch(u.label){case 0:return Object(zi["a"])(v["a"].isUri(t)),Object(zi["a"])(p["a"].isIPosition(n)),Object(zi["a"])(Array.isArray(i)),Object(zi["a"])("undefined"===typeof r||"string"===typeof r),Object(zi["a"])("undefined"===typeof o||"boolean"===typeof o),s=e.get(S["a"]),[4,s.openCodeEditor({resource:t},s.getFocusedCodeEditor())];case 1:return a=u.sent(),Object(vi["a"])(a)?(a.setPosition(n),a.revealPositionInCenterIfOutsideViewport(n,0),[2,a.invokeWithinContext((function(e){var t=new Qr({muteMessage:!0,openInPeek:Boolean(o),openToSide:!1},i,r);e.get(ge["a"]).invokeFunction(t.run.bind(t),a)}))]):[2]}}))}))}}),pe["a"].registerCommand({id:"editor.action.peekLocations",description:{description:"Peek locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:v["a"]},{name:"position",description:"The position at which to start",constraint:p["a"].isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"}]},handler:function(e,t,n,i,r){return Ir(void 0,void 0,void 0,(function(){return Mr(this,(function(o){return e.get(pe["b"]).executeCommand("editor.action.goToLocations",t,n,i,r,!0),[2]}))}))}}),pe["a"].registerCommand({id:"editor.action.findReferences",handler:function(e,t,n){Object(zi["a"])(v["a"].isUri(t)),Object(zi["a"])(p["a"].isIPosition(n));var r=e.get(S["a"]);return r.openCodeEditor({resource:t},r.getFocusedCodeEditor()).then((function(e){if(Object(vi["a"])(e)&&e.hasModel()){var t=gr.get(e);if(t){var r=Object(w["f"])((function(t){return fi(e.getModel(),p["a"].lift(n),!1,t).then((function(e){return new Ci(e,i["a"]("ref.title","References"))}))})),o=new a["a"](n.lineNumber,n.column,n.lineNumber,n.column);return Promise.resolve(t.toggleWidget(o,r,!1))}}}))}}),pe["a"].registerCommandAlias("editor.action.showReferences","editor.action.peekLocations");var Vr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();function Wr(e,t){return!!e[t]}var zr=function(){function e(e,t){this.target=e.target,this.hasTriggerModifier=Wr(e.event,t.triggerModifier),this.hasSideBySideModifier=Wr(e.event,t.triggerSideBySideModifier),this.isNoneOrSingleMouseDown=I["i"]||e.event.detail<=1}return e}(),Kr=function(){function e(e,t){this.keyCodeIsTriggerKey=e.keyCode===t.triggerKey,this.keyCodeIsSideBySideKey=e.keyCode===t.triggerSideBySideKey,this.hasTriggerModifier=Wr(e,t.triggerModifier)}return e}(),qr=function(){function e(e,t,n,i){this.triggerKey=e,this.triggerModifier=t,this.triggerSideBySideKey=n,this.triggerSideBySideModifier=i}return e.prototype.equals=function(e){return this.triggerKey===e.triggerKey&&this.triggerModifier===e.triggerModifier&&this.triggerSideBySideKey===e.triggerSideBySideKey&&this.triggerSideBySideModifier===e.triggerSideBySideModifier},e}();function Gr(e){return"altKey"===e?mi["e"]?new qr(57,"metaKey",6,"altKey"):new qr(5,"ctrlKey",6,"altKey"):mi["e"]?new qr(6,"altKey",57,"metaKey"):new qr(6,"altKey",5,"ctrlKey")}var Xr=function(e){function t(t){var n=e.call(this)||this;return n._onMouseMoveOrRelevantKeyDown=n._register(new k["a"]),n.onMouseMoveOrRelevantKeyDown=n._onMouseMoveOrRelevantKeyDown.event,n._onExecute=n._register(new k["a"]),n.onExecute=n._onExecute.event,n._onCancel=n._register(new k["a"]),n.onCancel=n._onCancel.event,n._editor=t,n._opts=Gr(n._editor.getOption(59)),n.lastMouseMoveEvent=null,n.hasTriggerKeyOnMouseDown=!1,n._register(n._editor.onDidChangeConfiguration((function(e){if(e.hasChanged(59)){var t=Gr(n._editor.getOption(59));if(n._opts.equals(t))return;n._opts=t,n.lastMouseMoveEvent=null,n.hasTriggerKeyOnMouseDown=!1,n._onCancel.fire()}}))),n._register(n._editor.onMouseMove((function(e){return n.onEditorMouseMove(new zr(e,n._opts))}))),n._register(n._editor.onMouseDown((function(e){return n.onEditorMouseDown(new zr(e,n._opts))}))),n._register(n._editor.onMouseUp((function(e){return n.onEditorMouseUp(new zr(e,n._opts))}))),n._register(n._editor.onKeyDown((function(e){return n.onEditorKeyDown(new Kr(e,n._opts))}))),n._register(n._editor.onKeyUp((function(e){return n.onEditorKeyUp(new Kr(e,n._opts))}))),n._register(n._editor.onMouseDrag((function(){return n.resetHandler()}))),n._register(n._editor.onDidChangeCursorSelection((function(e){return n.onDidChangeCursorSelection(e)}))),n._register(n._editor.onDidChangeModel((function(e){return n.resetHandler()}))),n._register(n._editor.onDidChangeModelContent((function(){return n.resetHandler()}))),n._register(n._editor.onDidScrollChange((function(e){(e.scrollTopChanged||e.scrollLeftChanged)&&n.resetHandler()}))),n}return Vr(t,e),t.prototype.onDidChangeCursorSelection=function(e){e.selection&&e.selection.startColumn!==e.selection.endColumn&&this.resetHandler()},t.prototype.onEditorMouseMove=function(e){this.lastMouseMoveEvent=e,this._onMouseMoveOrRelevantKeyDown.fire([e,null])},t.prototype.onEditorMouseDown=function(e){this.hasTriggerKeyOnMouseDown=e.hasTriggerModifier},t.prototype.onEditorMouseUp=function(e){this.hasTriggerKeyOnMouseDown&&this._onExecute.fire(e)},t.prototype.onEditorKeyDown=function(e){this.lastMouseMoveEvent&&(e.keyCodeIsTriggerKey||e.keyCodeIsSideBySideKey&&e.hasTriggerModifier)?this._onMouseMoveOrRelevantKeyDown.fire([this.lastMouseMoveEvent,e]):e.hasTriggerModifier&&this._onCancel.fire()},t.prototype.onEditorKeyUp=function(e){e.keyCodeIsTriggerKey&&this._onCancel.fire()},t.prototype.resetHandler=function(){this.lastMouseMoveEvent=null,this.hasTriggerKeyOnMouseDown=!1,this._onCancel.fire()},t}(o["a"]),Yr=function(e,t,n,i){var r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Jr=function(e,t){return function(n,i){t(n,i,e)}},Zr=function(){function e(e,t,n){var i=this;this.textModelResolverService=t,this.modeService=n,this.toUnhook=new o["b"],this.toUnhookForKeyboard=new o["b"],this.linkDecorations=[],this.currentWordAtPosition=null,this.previousPromise=null,this.editor=e;var r=new Xr(e);this.toUnhook.add(r),this.toUnhook.add(r.onMouseMoveOrRelevantKeyDown((function(e){var t=e[0],n=e[1];i.startFindDefinitionFromMouse(t,Object(zi["n"])(n))}))),this.toUnhook.add(r.onExecute((function(e){i.isEnabled(e)&&i.gotoDefinition(e.target.position,e.hasSideBySideModifier).then((function(){i.removeLinkDecorations()}),(function(e){i.removeLinkDecorations(),Object(m["e"])(e)}))}))),this.toUnhook.add(r.onCancel((function(){i.removeLinkDecorations(),i.currentWordAtPosition=null})))}return e.get=function(t){return t.getContribution(e.ID)},e.prototype.startFindDefinitionFromCursor=function(e){var t=this;return this.startFindDefinition(e).then((function(){t.toUnhookForKeyboard.add(t.editor.onDidChangeCursorPosition((function(){t.currentWordAtPosition=null,t.removeLinkDecorations(),t.toUnhookForKeyboard.clear()}))),t.toUnhookForKeyboard.add(t.editor.onKeyDown((function(e){e&&(t.currentWordAtPosition=null,t.removeLinkDecorations(),t.toUnhookForKeyboard.clear())})))}))},e.prototype.startFindDefinitionFromMouse=function(e,t){if(!(9===e.target.type&&this.linkDecorations.length>0)){if(!this.editor.hasModel()||!this.isEnabled(e,t))return this.currentWordAtPosition=null,void this.removeLinkDecorations();var n=e.target.position;this.startFindDefinition(n)}},e.prototype.startFindDefinition=function(e){var t,n=this;this.toUnhookForKeyboard.clear();var r=e?null===(t=this.editor.getModel())||void 0===t?void 0:t.getWordAtPosition(e):null;if(!r)return this.currentWordAtPosition=null,this.removeLinkDecorations(),Promise.resolve(0);if(this.currentWordAtPosition&&this.currentWordAtPosition.startColumn===r.startColumn&&this.currentWordAtPosition.endColumn===r.endColumn&&this.currentWordAtPosition.word===r.word)return Promise.resolve(0);this.currentWordAtPosition=r;var o=new xt["a"](this.editor,15);return this.previousPromise&&(this.previousPromise.cancel(),this.previousPromise=null),this.previousPromise=Object(w["f"])((function(t){return n.findDefinition(e,t)})),this.previousPromise.then((function(t){if(t&&t.length&&o.validate(n.editor))if(t.length>1)n.addDecoration(new a["a"](e.lineNumber,r.startColumn,e.lineNumber,r.endColumn),(new f["a"]).appendText(i["a"]("multipleResults","Click to show {0} definitions.",t.length)));else{var s=t[0];if(!s.uri)return;n.textModelResolverService.createModelReference(s.uri).then((function(t){if(t.object&&t.object.textEditorModel){var i=t.object.textEditorModel,o=s.range.startLineNumber;if(o<1||o>i.getLineCount())t.dispose();else{var u,l=n.getPreviewValue(i,o,s);u=s.originSelectionRange?a["a"].lift(s.originSelectionRange):new a["a"](e.lineNumber,r.startColumn,e.lineNumber,r.endColumn);var c=n.modeService.getModeIdByFilepathOrFirstLine(i.uri);n.addDecoration(u,(new f["a"]).appendCodeblock(c||"",l)),t.dispose()}}else t.dispose()}))}else n.removeLinkDecorations()})).then(void 0,m["e"])},e.prototype.getPreviewValue=function(t,n,i){var r=i.targetSelectionRange?i.range:this.getPreviewRangeBasedOnBrackets(t,n),o=r.endLineNumber-r.startLineNumber;o>=e.MAX_SOURCE_PREVIEW_LINES&&(r=this.getPreviewRangeBasedOnIndentation(t,n));var s=this.stripIndentationFromPreviewRange(t,n,r);return s},e.prototype.stripIndentationFromPreviewRange=function(e,t,n){for(var i=e.getLineFirstNonWhitespaceColumn(t),r=i,o=t+1;o<n.endLineNumber;o++){var s=e.getLineFirstNonWhitespaceColumn(o);r=Math.min(r,s)}var a=e.getValueInRange(n).replace(new RegExp("^\\s{"+(r-1)+"}","gm"),"").trim();return a},e.prototype.getPreviewRangeBasedOnIndentation=function(t,n){for(var i=t.getLineFirstNonWhitespaceColumn(n),r=Math.min(t.getLineCount(),n+e.MAX_SOURCE_PREVIEW_LINES),o=n+1;o<r;o++){var s=t.getLineFirstNonWhitespaceColumn(o);if(i===s)break}return new a["a"](n,1,o+1,1)},e.prototype.getPreviewRangeBasedOnBrackets=function(t,n){var i=Math.min(t.getLineCount(),n+e.MAX_SOURCE_PREVIEW_LINES),r=[],o=!0,s=t.findNextBracket(new p["a"](n,1));while(null!==s){if(0===r.length)r.push(s);else{var u=r[r.length-1];if(u.open[0]===s.open[0]&&u.isOpen&&!s.isOpen?r.pop():r.push(s),0===r.length){if(!o)return new a["a"](n,1,s.range.endLineNumber+1,1);o=!1}}var l=t.getLineMaxColumn(n),c=s.range.endLineNumber,d=s.range.endColumn;if(l===s.range.endColumn&&(c++,d=1),c>i)return new a["a"](n,1,i+1,1);s=t.findNextBracket(new p["a"](c,d))}return new a["a"](n,1,i+1,1)},e.prototype.addDecoration=function(e,t){var n={range:e,options:{inlineClassName:"goto-definition-link",hoverMessage:t}};this.linkDecorations=this.editor.deltaDecorations(this.linkDecorations,[n])},e.prototype.removeLinkDecorations=function(){this.linkDecorations.length>0&&(this.linkDecorations=this.editor.deltaDecorations(this.linkDecorations,[]))},e.prototype.isEnabled=function(e,t){return this.editor.hasModel()&&e.isNoneOrSingleMouseDown&&6===e.target.type&&(e.hasTriggerModifier||!!t&&t.keyCodeIsTriggerKey)&&A["f"].has(this.editor.getModel())},e.prototype.findDefinition=function(e,t){var n=this.editor.getModel();return n?li(n,e,t):Promise.resolve(null)},e.prototype.gotoDefinition=function(e,t){var n=this;this.editor.setPosition(e);var i=new Tr({openToSide:t,openInPeek:!1,muteMessage:!0},{alias:"",label:"",id:"",precondition:void 0});return this.editor.invokeWithinContext((function(e){return i.run(e,n.editor)}))},e.prototype.dispose=function(){this.toUnhook.dispose()},e.ID="editor.contrib.gotodefinitionatposition",e.MAX_SOURCE_PREVIEW_LINES=8,e=Yr([Jr(1,Ai["a"]),Jr(2,l["a"])],e),e}();Object(s["h"])(Zr.ID,Zr),Object(R["e"])((function(e,t){var n=e.getColor(T["n"]);n&&t.addRule(".monaco-editor .goto-definition-link { color: "+n+" !important; }")}));var $r=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),eo=function(e,t,n,i){var r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},to=function(e,t){return function(n,i){t(n,i,e)}},no=function(){function e(e,t,n,i,r,s){var a=this;this._editor=e,this._openerService=t,this._modeService=n,this._markerDecorationsService=i,this._keybindingService=r,this._themeService=s,this._toUnhook=new o["b"],this._contentWidget=new o["d"],this._glyphWidget=new o["d"],this._isMouseDown=!1,this._hoverClicked=!1,this._hookEvents(),this._didChangeConfigurationHandler=this._editor.onDidChangeConfiguration((function(e){e.hasChanged(44)&&(a._hideWidgets(),a._unhookEvents(),a._hookEvents())}))}return Object.defineProperty(e.prototype,"contentWidget",{get:function(){return this._contentWidget.value||this._createHoverWidgets(),this._contentWidget.value},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"glyphWidget",{get:function(){return this._glyphWidget.value||this._createHoverWidgets(),this._glyphWidget.value},enumerable:!0,configurable:!0}),e.get=function(t){return t.getContribution(e.ID)},e.prototype._hookEvents=function(){var e=this,t=function(){return e._hideWidgets()},n=this._editor.getOption(44);this._isHoverEnabled=n.enabled,this._isHoverSticky=n.sticky,this._isHoverEnabled?(this._toUnhook.add(this._editor.onMouseDown((function(t){return e._onEditorMouseDown(t)}))),this._toUnhook.add(this._editor.onMouseUp((function(t){return e._onEditorMouseUp(t)}))),this._toUnhook.add(this._editor.onMouseMove((function(t){return e._onEditorMouseMove(t)}))),this._toUnhook.add(this._editor.onKeyDown((function(t){return e._onKeyDown(t)}))),this._toUnhook.add(this._editor.onDidChangeModelDecorations((function(){return e._onModelDecorationsChanged()})))):this._toUnhook.add(this._editor.onMouseMove(t)),this._toUnhook.add(this._editor.onMouseLeave(t)),this._toUnhook.add(this._editor.onDidChangeModel(t)),this._toUnhook.add(this._editor.onDidScrollChange((function(t){return e._onEditorScrollChanged(t)})))},e.prototype._unhookEvents=function(){this._toUnhook.clear()},e.prototype._onModelDecorationsChanged=function(){this.contentWidget.onModelDecorationsChanged(),this.glyphWidget.onModelDecorationsChanged()},e.prototype._onEditorScrollChanged=function(e){(e.scrollTopChanged||e.scrollLeftChanged)&&this._hideWidgets()},e.prototype._onEditorMouseDown=function(e){this._isMouseDown=!0;var t=e.target.type;9!==t||e.target.detail!==ei.ID?12===t&&e.target.detail===ri.ID||(12!==t&&e.target.detail!==ri.ID&&(this._hoverClicked=!1),this._hideWidgets()):this._hoverClicked=!0},e.prototype._onEditorMouseUp=function(e){this._isMouseDown=!1},e.prototype._onEditorMouseMove=function(e){var t=e.target.type;if(!(this._isMouseDown&&this._hoverClicked&&this.contentWidget.isColorPickerVisible())&&(!this._isHoverSticky||9!==t||e.target.detail!==ei.ID)&&(!this._isHoverSticky||12!==t||e.target.detail!==ri.ID)){if(7===t){var n=this._editor.getOption(34).typicalHalfwidthCharacterWidth/2,i=e.target.detail;i&&!i.isAfterLines&&"number"===typeof i.horizontalDistanceToText&&i.horizontalDistanceToText<n&&(t=6)}6===t?(this.glyphWidget.hide(),this._isHoverEnabled&&e.target.range&&this.contentWidget.startShowingAt(e.target.range,0,!1)):2===t?(this.contentWidget.hide(),this._isHoverEnabled&&e.target.position&&this.glyphWidget.startShowingAt(e.target.position.lineNumber)):this._hideWidgets()}},e.prototype._onKeyDown=function(e){5!==e.keyCode&&6!==e.keyCode&&57!==e.keyCode&&4!==e.keyCode&&this._hideWidgets()},e.prototype._hideWidgets=function(){!this._glyphWidget.value||!this._contentWidget.value||this._isMouseDown&&this._hoverClicked&&this._contentWidget.value.isColorPickerVisible()||(this._glyphWidget.value.hide(),this._contentWidget.value.hide())},e.prototype._createHoverWidgets=function(){this._contentWidget.value=new ei(this._editor,this._markerDecorationsService,this._themeService,this._keybindingService,this._modeService,this._openerService),this._glyphWidget.value=new ri(this._editor,this._modeService,this._openerService)},e.prototype.showContentHover=function(e,t,n){this.contentWidget.startShowingAt(e,t,n)},e.prototype.dispose=function(){this._unhookEvents(),this._toUnhook.dispose(),this._didChangeConfigurationHandler.dispose(),this._glyphWidget.dispose(),this._contentWidget.dispose()},e.ID="editor.contrib.hover",e=eo([to(1,se["a"]),to(2,l["a"]),to(3,oi["a"]),to(4,ft["a"]),to(5,R["c"])],e),e}(),io=function(e){function t(){return e.call(this,{id:"editor.action.showHover",label:i["a"]({key:"showHover",comment:["Label for action that will trigger the showing of a hover in the editor.","This allows for users to show the hover without using the mouse."]},"Show Hover"),alias:"Show Hover",precondition:void 0,kbOpts:{kbExpr:u["a"].editorTextFocus,primary:Object(r["a"])(2089,2087),weight:100}})||this}return $r(t,e),t.prototype.run=function(e,t){if(t.hasModel()){var n=no.get(t);if(n){var i=t.getPosition(),r=new a["a"](i.lineNumber,i.column,i.lineNumber,i.column),o=2===t.getOption(2);n.showContentHover(r,1,o)}}},t}(s["b"]),ro=function(e){function t(){return e.call(this,{id:"editor.action.showDefinitionPreviewHover",label:i["a"]({key:"showDefinitionPreviewHover",comment:["Label for action that will trigger the showing of definition preview hover in the editor.","This allows for users to show the definition preview hover without using the mouse."]},"Show Definition Preview Hover"),alias:"Show Definition Preview Hover",precondition:void 0})||this}return $r(t,e),t.prototype.run=function(e,t){var n=no.get(t);if(n){var i=t.getPosition();if(i){var r=new a["a"](i.lineNumber,i.column,i.lineNumber,i.column),o=Zr.get(t),s=o.startFindDefinitionFromCursor(i);s?s.then((function(){n.showContentHover(r,1,!0)})):n.showContentHover(r,1,!0)}}},t}(s["b"]);Object(s["h"])(no.ID,no),Object(s["f"])(io),Object(s["f"])(ro),Object(R["e"])((function(e,t){var n=e.getColor(T["D"]);n&&t.addRule(".monaco-editor .hoverHighlight { background-color: "+n+"; }");var i=e.getColor(T["A"]);i&&t.addRule(".monaco-editor .monaco-editor-hover { background-color: "+i+"; }");var r=e.getColor(T["B"]);r&&(t.addRule(".monaco-editor .monaco-editor-hover { border: 1px solid "+r+"; }"),t.addRule(".monaco-editor .monaco-editor-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid "+r.transparent(.5)+"; }"),t.addRule(".monaco-editor .monaco-editor-hover hr { border-top: 1px solid "+r.transparent(.5)+"; }"),t.addRule(".monaco-editor .monaco-editor-hover hr { border-bottom: 0px solid "+r.transparent(.5)+"; }"));var o=e.getColor(T["cc"]);o&&t.addRule(".monaco-editor .monaco-editor-hover a { color: "+o+"; }");var s=e.getColor(T["C"]);s&&t.addRule(".monaco-editor .monaco-editor-hover { color: "+s+"; }");var a=e.getColor(T["E"]);a&&t.addRule(".monaco-editor .monaco-editor-hover .hover-row .actions { background-color: "+a+"; }");var u=e.getColor(T["bc"]);u&&t.addRule(".monaco-editor .monaco-editor-hover code { background-color: "+u+"; }")}))},sFUC:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("iuje");function r(e){return!(!e||"function"!==typeof e.getEditorType)&&e.getEditorType()===i["a"].ICodeEditor}},sM1p:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return s}));var i=n("S3by"),r=n("Cg/j"),o=(i["a"],Object(r["c"])("notificationService")),s=function(){function e(){}return e}()},sStQ:function(e,t,n){"use strict";n.r(t);var i=n("+hIS");Object(i["a"])({id:"perl",extensions:[".pl"],aliases:["Perl","pl"],loader:function(){return n.e(169).then(n.bind(null,"QKwv"))}})},siPX:function(e,t,n){},snIX:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var i=n("N0LK"),r=n("LCkn"),o=n("Ll0s"),s=n("+Fos"),a=n("aokT"),u=function(){function e(){}return e.deleteRight=function(e,t,n,i){for(var o=[],u=3!==e,l=0,c=i.length;l<c;l++){var d=i[l],h=d;if(h.isEmpty()){var f=d.getPosition(),p=s["a"].right(t,n,f.lineNumber,f.column);h=new a["a"](p.lineNumber,p.column,f.lineNumber,f.column)}h.isEmpty()?o[l]=null:(h.startLineNumber!==h.endLineNumber&&(u=!0),o[l]=new r["a"](h,""))}return[u,o]},e._isAutoClosingPairDelete=function(e,t,n){if("never"===e.autoClosingBrackets&&"never"===e.autoClosingQuotes)return!1;for(var i=0,r=n.length;i<r;i++){var s=n[i],a=s.getPosition();if(!s.isEmpty())return!1;var u=t.getLineContent(a.lineNumber),l=u[a.column-2],c=e.autoClosingPairsOpen2.get(l);if(!c)return!1;if(Object(o["g"])(l)){if("never"===e.autoClosingQuotes)return!1}else if("never"===e.autoClosingBrackets)return!1;for(var d=u[a.column-1],h=!1,f=0,p=c;f<p.length;f++){var g=p[f];g.open===l&&g.close===d&&(h=!0)}if(!h)return!1}return!0},e._runAutoClosingPairDelete=function(e,t,n){for(var i=[],o=0,s=n.length;o<s;o++){var u=n[o].getPosition(),l=new a["a"](u.lineNumber,u.column-1,u.lineNumber,u.column+1);i[o]=new r["a"](l,"")}return[!0,i]},e.deleteLeft=function(e,t,n,u){if(this._isAutoClosingPairDelete(t,n,u))return this._runAutoClosingPairDelete(t,n,u);for(var l=[],c=2!==e,d=0,h=u.length;d<h;d++){var f=u[d],p=f;if(p.isEmpty()){var g=f.getPosition();if(t.useTabStops&&g.column>1){var A=n.getLineContent(g.lineNumber),m=i["q"](A),v=-1===m?A.length+1:m+1;if(g.column<=v){var _=o["a"].visibleColumnFromColumn2(t,n,g),y=o["a"].prevIndentTabStop(_,t.indentSize),b=o["a"].columnFromVisibleColumn2(t,n,g.lineNumber,y);p=new a["a"](g.lineNumber,b,g.lineNumber,g.column)}else p=new a["a"](g.lineNumber,g.column-1,g.lineNumber,g.column)}else{var w=s["a"].left(t,n,g.lineNumber,g.column);p=new a["a"](w.lineNumber,w.column,g.lineNumber,g.column)}}p.isEmpty()?l[d]=null:(p.startLineNumber!==p.endLineNumber&&(c=!0),l[d]=new r["a"](p,""))}return[c,l]},e.cut=function(e,t,n){for(var i=[],s=0,u=n.length;s<u;s++){var l=n[s];if(l.isEmpty())if(e.emptySelectionClipboard){var c=l.getPosition(),d=void 0,h=void 0,f=void 0,p=void 0;c.lineNumber<t.getLineCount()?(d=c.lineNumber,h=1,f=c.lineNumber+1,p=1):c.lineNumber>1?(d=c.lineNumber-1,h=t.getLineMaxColumn(c.lineNumber-1),f=c.lineNumber,p=t.getLineMaxColumn(c.lineNumber)):(d=c.lineNumber,h=1,f=c.lineNumber,p=t.getLineMaxColumn(c.lineNumber));var g=new a["a"](d,h,f,p);g.isEmpty()?i[s]=null:i[s]=new r["a"](g,"")}else i[s]=null;else i[s]=new r["a"](l,"")}return new o["e"](0,i,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})},e}()},sswD:function(e,t,n){"use strict";n.d(t,"a",(function(){return v})),n.d(t,"c",(function(){return _})),n.d(t,"b",(function(){return y})),n.d(t,"j",(function(){return b})),n.d(t,"e",(function(){return w})),n.d(t,"k",(function(){return C})),n.d(t,"g",(function(){return S})),n.d(t,"f",(function(){return N})),n.d(t,"i",(function(){return L})),n.d(t,"h",(function(){return E})),n.d(t,"d",(function(){return i}));var i,r=n("/cxE"),o=n("bY76"),s=n("Vxe3"),a=n("cGHE"),u=n("G2kB"),l=n("t49l"),c=n("fjLI"),d=n("nnTU"),h=n("T8No"),f=n("nrhi"),p=n("ic2d"),g=n("XXUj"),A=n("746U"),m=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),v=function(){function e(e){this.id=e.id,this.precondition=e.precondition,this._kbOpts=e.kbOpts,this._menuOpts=e.menuOpts,this._description=e.description}return e.prototype.register=function(){var e=this;if(Array.isArray(this._menuOpts)?this._menuOpts.forEach(this._registerMenuItem,this):this._menuOpts&&this._registerMenuItem(this._menuOpts),this._kbOpts){var t=this._kbOpts.kbExpr;this.precondition&&(t=t?h["a"].and(t,this.precondition):this.precondition),f["a"].registerCommandAndKeybindingRule({id:this.id,handler:function(t,n){return e.runCommand(t,n)},weight:this._kbOpts.weight,when:t,primary:this._kbOpts.primary,secondary:this._kbOpts.secondary,win:this._kbOpts.win,linux:this._kbOpts.linux,mac:this._kbOpts.mac,description:this._description})}else d["a"].registerCommand({id:this.id,handler:function(t,n){return e.runCommand(t,n)},description:this._description})},e.prototype._registerMenuItem=function(e){c["c"].appendMenuItem(e.menuId,{group:e.group,command:{id:this.id,title:e.title},when:e.when,order:e.order})},e}(),_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return m(t,e),t.bindToContribution=function(e){return function(t){function n(e){var n=t.call(this,e)||this;return n._callback=e.handler,n}return m(n,t),n.prototype.runEditorCommand=function(t,n,i){var r=e(n);r&&this._callback(e(n),i)},n}(t)},t.prototype.runCommand=function(e,t){var n=this,i=e.get(s["a"]),r=i.getFocusedCodeEditor()||i.getActiveCodeEditor();if(r)return r.invokeWithinContext((function(e){var i=e.get(h["c"]);if(i.contextMatchesRules(Object(A["n"])(n.precondition)))return n.runEditorCommand(e,r,t)}))},t}(v),y=function(e){function t(n){var i=e.call(this,t.convertOptions(n))||this;return i.label=n.label,i.alias=n.alias,i}return m(t,e),t.convertOptions=function(e){var t;function n(t){return t.menuId||(t.menuId=7),t.title||(t.title=e.label),t.when=h["a"].and(e.precondition,t.when),t}return t=Array.isArray(e.menuOpts)?e.menuOpts:e.menuOpts?[e.menuOpts]:[],Array.isArray(e.contextMenuOpts)?t.push.apply(t,e.contextMenuOpts.map(n)):e.contextMenuOpts&&t.push(n(e.contextMenuOpts)),e.menuOpts=t,e},t.prototype.runEditorCommand=function(e,t,n){return this.reportTelemetry(e,t),this.run(e,t,n||{})},t.prototype.reportTelemetry=function(e,t){e.get(g["a"]).publicLog2("editorActionInvoked",{name:this.label,id:this.id})},t}(_);function b(e,t){d["a"].registerCommand(e,(function(e,n){return t(e,n||{})}))}function w(e,t){b(e,(function(e,n){var i=n.resource,s=n.position;if(!(i instanceof o["a"]))throw Object(r["b"])("resource");if(!a["a"].isIPosition(s))throw Object(r["b"])("position");var c=e.get(u["a"]).getModel(i);if(c){var d=a["a"].lift(s);return t(c,d,n)}return e.get(l["a"]).createModelReference(i).then((function(e){return new Promise((function(i,r){try{var o=t(e.object.textEditorModel,a["a"].lift(s),n);i(o)}catch(u){r(u)}})).finally((function(){e.dispose()}))}))}))}function C(e,t){d["a"].registerCommand(e,(function(e){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var r=n[0],s=n[1];Object(A["a"])(o["a"].isUri(r)),Object(A["a"])(a["a"].isIPosition(s));var c=e.get(u["a"]).getModel(r);if(c){var d=a["a"].lift(s);return t(c,d,n.slice(2))}return e.get(l["a"]).createModelReference(r).then((function(e){return new Promise((function(i,r){try{var o=t(e.object.textEditorModel,a["a"].lift(s),n.slice(2));i(o)}catch(u){r(u)}})).finally((function(){e.dispose()}))}))}))}function S(e){return O.INSTANCE.registerEditorCommand(e),e}function N(e){O.INSTANCE.registerEditorAction(new e)}function L(e){O.INSTANCE.registerEditorAction(e)}function E(e,t){O.INSTANCE.registerEditorContribution(e,t)}(function(e){function t(e){return O.INSTANCE.getEditorCommand(e)}function n(){return O.INSTANCE.getEditorActions()}function i(){return O.INSTANCE.getEditorContributions()}function r(e){return O.INSTANCE.getEditorContributions().filter((function(t){return e.indexOf(t.id)>=0}))}function o(){return O.INSTANCE.getDiffEditorContributions()}e.getEditorCommand=t,e.getEditorActions=n,e.getEditorContributions=i,e.getSomeEditorContributions=r,e.getDiffEditorContributions=o})(i||(i={}));var x={EditorCommonContributions:"editor.contributions"},O=function(){function e(){this.editorContributions=[],this.diffEditorContributions=[],this.editorActions=[],this.editorCommands=Object.create(null)}return e.prototype.registerEditorContribution=function(e,t){this.editorContributions.push({id:e,ctor:t})},e.prototype.getEditorContributions=function(){return this.editorContributions.slice(0)},e.prototype.getDiffEditorContributions=function(){return this.diffEditorContributions.slice(0)},e.prototype.registerEditorAction=function(e){e.register(),this.editorActions.push(e)},e.prototype.getEditorActions=function(){return this.editorActions.slice(0)},e.prototype.registerEditorCommand=function(e){e.register(),this.editorCommands[e.id]=e},e.prototype.getEditorCommand=function(e){return this.editorCommands[e]||null},e.INSTANCE=new e,e}();p["a"].add(x.EditorCommonContributions,O.INSTANCE)},synD:function(e,t,n){},t49l:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("Cg/j"),r=Object(i["c"])("textModelService")},t9D7:function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"f",(function(){return u})),n.d(t,"b",(function(){return c})),n.d(t,"d",(function(){return d})),n.d(t,"a",(function(){return h})),n.d(t,"e",(function(){return g}));var i=n("Cg/j"),r=n("pmY6"),o=n("ic2d"),s=n("MI8n"),a=Object(i["c"])("themeService");function u(e){return{id:e}}var l="dark",c="hc";function d(e){switch(e){case l:return"vs-dark";case c:return"hc-black";default:return"vs"}}var h={ThemingContribution:"base.contributions.theming"},f=function(){function e(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new s["a"]}return e.prototype.onThemeChange=function(e){var t=this;return this.themingParticipants.push(e),this.onThemingParticipantAddedEmitter.fire(e),Object(r["h"])((function(){var n=t.themingParticipants.indexOf(e);t.themingParticipants.splice(n,1)}))},e.prototype.getThemingParticipants=function(){return this.themingParticipants},e}(),p=new f;function g(e){return p.onThemeChange(e)}o["a"].add(h.ThemingContribution,p)},tADe:function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return u}));var i,r,o=n("Cg/j"),s=n("3/fG"),a=n("S3by");(function(e){e[e["Hint"]=1]="Hint",e[e["Info"]=2]="Info",e[e["Warning"]=4]="Warning",e[e["Error"]=8]="Error"})(i||(i={})),function(e){function t(e,t){return t-e}e.compare=t;var n=Object.create(null);function i(e){return n[e]||""}function r(t){switch(t){case a["a"].Error:return e.Error;case a["a"].Warning:return e.Warning;case a["a"].Info:return e.Info;case a["a"].Ignore:return e.Hint}}function o(t){switch(t){case e.Error:return a["a"].Error;case e.Warning:return a["a"].Warning;case e.Info:return a["a"].Info;case e.Hint:return a["a"].Ignore}}n[e.Error]=Object(s["a"])("sev.error","Error"),n[e.Warning]=Object(s["a"])("sev.warning","Warning"),n[e.Info]=Object(s["a"])("sev.info","Info"),e.toString=i,e.fromSeverity=r,e.toSeverity=o}(i||(i={})),function(e){var t="";function n(e){return r(e,!0)}function r(e,n){var r=[t];return e.source?r.push(e.source.replace("\xa6","\xa6")):r.push(t),e.code?"string"===typeof e.code?r.push(e.code.replace("\xa6","\xa6")):r.push(e.code.value.replace("\xa6","\xa6")):r.push(t),void 0!==e.severity&&null!==e.severity?r.push(i.toString(e.severity)):r.push(t),e.message&&n?r.push(e.message.replace("\xa6","\xa6")):r.push(t),void 0!==e.startLineNumber&&null!==e.startLineNumber?r.push(e.startLineNumber.toString()):r.push(t),void 0!==e.startColumn&&null!==e.startColumn?r.push(e.startColumn.toString()):r.push(t),void 0!==e.endLineNumber&&null!==e.endLineNumber?r.push(e.endLineNumber.toString()):r.push(t),void 0!==e.endColumn&&null!==e.endColumn?r.push(e.endColumn.toString()):r.push(t),r.push(t),r.join("\xa6")}e.makeKey=n,e.makeKeyOptionalMessage=r}(r||(r={}));var u=Object(o["c"])("markerService")},tTk5:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("Cg/j"),r=Object(i["c"])("editorProgressService")},tX9W:function(e,t,n){"use strict";n.d(t,"b",(function(){return st})),n.d(t,"a",(function(){return ht}));var i=n("/cxE"),r=n("MI8n"),o=n("pmY6"),s=n("N0LK"),a=n("bY76"),u=n("/UlZ"),l=n("cGHE"),c=n("aokT"),d=n("gCVg"),h=n("M1Kb"),f=function(){function e(e,t){this.beforeVersionId=e,this.beforeCursorState=t,this.afterCursorState=null,this.afterVersionId=-1,this.editOperations=[]}return e.prototype.undo=function(e){for(var t=this.editOperations.length-1;t>=0;t--)this.editOperations[t]={operations:e.applyEdits(this.editOperations[t].operations)}},e.prototype.redo=function(e){for(var t=0;t<this.editOperations.length;t++)this.editOperations[t]={operations:e.applyEdits(this.editOperations[t].operations)}},e}();function p(e){var t=e.getEOL();return"\n"===t?0:1}var g=function(){function e(e,t){this.beforeVersionId=e,this.beforeCursorState=null,this.afterCursorState=null,this.afterVersionId=-1,this.eol=t}return e.prototype.undo=function(e){var t=p(e);e.setEOL(this.eol),this.eol=t},e.prototype.redo=function(e){var t=p(e);e.setEOL(this.eol),this.eol=t},e}(),A=function(){function e(e){this.model=e,this.currentOpenStackElement=null,this.past=[],this.future=[]}return e.prototype.pushStackElement=function(){null!==this.currentOpenStackElement&&(this.past.push(this.currentOpenStackElement),this.currentOpenStackElement=null)},e.prototype.clear=function(){this.currentOpenStackElement=null,this.past=[],this.future=[]},e.prototype.pushEOL=function(e){this.future=[],this.currentOpenStackElement&&this.pushStackElement();var t=p(this.model),n=new g(this.model.getAlternativeVersionId(),t);this.model.setEOL(e),n.afterVersionId=this.model.getVersionId(),this.currentOpenStackElement=n,this.pushStackElement()},e.prototype.pushEditOperation=function(t,n,i){this.future=[];var r=null;this.currentOpenStackElement&&(this.currentOpenStackElement instanceof f?r=this.currentOpenStackElement:this.pushStackElement()),this.currentOpenStackElement||(r=new f(this.model.getAlternativeVersionId(),t),this.currentOpenStackElement=r);var o={operations:this.model.applyEdits(n)};return r.editOperations.push(o),r.afterCursorState=e._computeCursorState(i,o.operations),r.afterVersionId=this.model.getVersionId(),r.afterCursorState},e._computeCursorState=function(e,t){try{return e?e(t):null}catch(n){return Object(i["e"])(n),null}},e.prototype.undo=function(){if(this.pushStackElement(),this.past.length>0){var e=this.past.pop();try{e.undo(this.model)}catch(t){return Object(i["e"])(t),this.clear(),null}return this.future.push(e),{selections:e.beforeCursorState,recordedVersionId:e.beforeVersionId}}return null},e.prototype.canUndo=function(){return this.past.length>0||null!==this.currentOpenStackElement},e.prototype.redo=function(){if(this.future.length>0){var e=this.future.pop();try{e.redo(this.model)}catch(t){return Object(i["e"])(t),this.clear(),null}return this.past.push(e),{selections:e.afterCursorState,recordedVersionId:e.afterVersionId}}return null},e.prototype.canRedo=function(){return this.future.length>0},e}(),m=function(){function e(){this.spacesDiff=0,this.looksLikeAlignment=!1}return e}();function v(e,t,n,i,r){var o;for(r.spacesDiff=0,r.looksLikeAlignment=!1,o=0;o<t&&o<i;o++){var s=e.charCodeAt(o),a=n.charCodeAt(o);if(s!==a)break}for(var u=0,l=0,c=o;c<t;c++){s=e.charCodeAt(c);32===s?u++:l++}var d=0,h=0;for(c=o;c<i;c++){a=n.charCodeAt(c);32===a?d++:h++}if(!(u>0&&l>0)&&!(d>0&&h>0)){var f=Math.abs(l-h),p=Math.abs(u-d);if(0===f)return r.spacesDiff=p,void(p>0&&0<=d-1&&d-1<e.length&&d<n.length&&32!==n.charCodeAt(d)&&32===e.charCodeAt(d-1)&&44===e.charCodeAt(e.length-1)&&(r.looksLikeAlignment=!0));p%f!==0||(r.spacesDiff=p/f)}}function _(e,t,n){for(var i=Math.min(e.getLineCount(),1e4),r=0,o=0,s="",a=0,u=[2,4,6,8,3,5,7],l=8,c=[0,0,0,0,0,0,0,0,0],d=new m,h=1;h<=i;h++){for(var f=e.getLineLength(h),p=e.getLineContent(h),g=f<=65536,A=!1,_=0,y=0,b=0,w=0,C=f;w<C;w++){var S=g?p.charCodeAt(w):e.getLineCharCode(h,w);if(9===S)b++;else{if(32!==S){A=!0,_=w;break}y++}}if(A&&(b>0?r++:y>1&&o++,v(s,a,p,_,d),!d.looksLikeAlignment||n&&t===d.spacesDiff)){var N=d.spacesDiff;N<=l&&c[N]++,s=p,a=_}}var L=n;r!==o&&(L=r<o);var E=t;if(L){var x=L?0:.1*i;u.forEach((function(e){var t=c[e];t>x&&(x=t,E=e)})),4===E&&c[4]>0&&c[2]>0&&c[2]>=c[4]/2&&(E=2)}return{insertSpaces:L,tabSize:E}}function y(e){return(1&e.metadata)>>>0}function b(e,t){e.metadata=254&e.metadata|t<<0}function w(e){return(2&e.metadata)>>>1===1}function C(e,t){e.metadata=253&e.metadata|(t?1:0)<<1}function S(e){return(4&e.metadata)>>>2===1}function N(e,t){e.metadata=251&e.metadata|(t?1:0)<<2}function L(e){return(8&e.metadata)>>>3===1}function E(e,t){e.metadata=247&e.metadata|(t?1:0)<<3}function x(e){return(48&e.metadata)>>>4}function O(e,t){e.metadata=207&e.metadata|t<<4}function B(e){return(64&e.metadata)>>>6===1}function k(e,t){e.metadata=191&e.metadata|(t?1:0)<<6}var D=function(){function e(e,t,n){this.metadata=0,this.parent=this,this.left=this,this.right=this,b(this,1),this.start=t,this.end=n,this.delta=0,this.maxEnd=n,this.id=e,this.ownerId=0,this.options=null,N(this,!1),O(this,1),E(this,!1),k(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=n,this.range=null,C(this,!1)}return e.prototype.reset=function(e,t,n,i){this.start=t,this.end=n,this.maxEnd=n,this.cachedVersionId=e,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=n,this.range=i},e.prototype.setOptions=function(e){this.options=e;var t=this.options.className;N(this,"squiggly-error"===t||"squiggly-warning"===t||"squiggly-info"===t),O(this,this.options.stickiness),E(this,!(!this.options.overviewRuler||!this.options.overviewRuler.color)),k(this,this.options.collapseOnReplaceEdit)},e.prototype.setCachedOffsets=function(e,t,n){this.cachedVersionId!==n&&(this.range=null),this.cachedVersionId=n,this.cachedAbsoluteStart=e,this.cachedAbsoluteEnd=t},e.prototype.detach=function(){this.parent=null,this.left=null,this.right=null},e}(),I=new D(null,0,0);I.parent=I,I.left=I,I.right=I,b(I,0);var M=function(){function e(){this.root=I,this.requestNormalizeDelta=!1}return e.prototype.intervalSearch=function(e,t,n,i,r){return this.root===I?[]:V(this,e,t,n,i,r)},e.prototype.search=function(e,t,n){return this.root===I?[]:Q(this,e,t,n)},e.prototype.collectNodesFromOwner=function(e){return H(this,e)},e.prototype.collectNodesPostOrder=function(){return j(this)},e.prototype.insert=function(e){W(this,e),this._normalizeDeltaIfNecessary()},e.prototype.delete=function(e){K(this,e),this._normalizeDeltaIfNecessary()},e.prototype.resolveNode=function(e,t){var n=e,i=0;while(e!==this.root)e===e.parent.right&&(i+=e.parent.delta),e=e.parent;var r=n.start+i,o=n.end+i;n.setCachedOffsets(r,o,t)},e.prototype.acceptReplace=function(e,t,n,i){for(var r=P(this,e,e+t),o=0,s=r.length;o<s;o++){var a=r[o];K(this,a)}this._normalizeDeltaIfNecessary(),U(this,e,e+t,n),this._normalizeDeltaIfNecessary();for(o=0,s=r.length;o<s;o++){a=r[o];a.start=a.cachedAbsoluteStart,a.end=a.cachedAbsoluteEnd,R(a,e,e+t,n,i),a.maxEnd=a.end,W(this,a)}this._normalizeDeltaIfNecessary()},e.prototype._normalizeDeltaIfNecessary=function(){this.requestNormalizeDelta&&(this.requestNormalizeDelta=!1,F(this))},e}();function F(e){var t=e.root,n=0;while(t!==I)t.left===I||w(t.left)?t.right===I||w(t.right)?(t.start=n+t.start,t.end=n+t.end,t.delta=0,Z(t),C(t,!0),C(t.left,!1),C(t.right,!1),t===t.parent.right&&(n-=t.parent.delta),t=t.parent):(n+=t.delta,t=t.right):t=t.left;C(e.root,!1)}function T(e,t,n,i){return e<n||!(e>n)&&(1!==i&&(2===i||t))}function R(e,t,n,i,r){var o=x(e),s=0===o||2===o,a=1===o||2===o,u=n-t,l=i,c=Math.min(u,l),d=e.start,h=!1,f=e.end,p=!1;t<=d&&f<=n&&B(e)&&(e.start=t,h=!0,e.end=t,p=!0);var g=r?1:u>0?2:0;if(!h&&T(d,s,t,g)&&(h=!0),!p&&T(f,a,t,g)&&(p=!0),c>0&&!r){g=u>l?2:0;!h&&T(d,s,t+c,g)&&(h=!0),!p&&T(f,a,t+c,g)&&(p=!0)}g=r?1:0;!h&&T(d,s,n,g)&&(e.start=t+l,h=!0),!p&&T(f,a,n,g)&&(e.end=t+l,p=!0);var A=l-u;h||(e.start=Math.max(0,d+A)),p||(e.end=Math.max(0,f+A)),e.start>e.end&&(e.end=e.start)}function P(e,t,n){var i=e.root,r=0,o=0,s=0,a=0,u=[],l=0;while(i!==I)if(w(i))C(i.left,!1),C(i.right,!1),i===i.parent.right&&(r-=i.parent.delta),i=i.parent;else{if(!w(i.left)){if(o=r+i.maxEnd,o<t){C(i,!0);continue}if(i.left!==I){i=i.left;continue}}s=r+i.start,s>n?C(i,!0):(a=r+i.end,a>=t&&(i.setCachedOffsets(s,a,0),u[l++]=i),C(i,!0),i.right===I||w(i.right)||(r+=i.delta,i=i.right))}return C(e.root,!1),u}function U(e,t,n,i){var r=e.root,o=0,s=0,a=0,u=i-(n-t);while(r!==I)if(w(r))C(r.left,!1),C(r.right,!1),r===r.parent.right&&(o-=r.parent.delta),Z(r),r=r.parent;else{if(!w(r.left)){if(s=o+r.maxEnd,s<t){C(r,!0);continue}if(r.left!==I){r=r.left;continue}}a=o+r.start,a>n?(r.start+=u,r.end+=u,r.delta+=u,(r.delta<-1073741824||r.delta>1073741824)&&(e.requestNormalizeDelta=!0),C(r,!0)):(C(r,!0),r.right===I||w(r.right)||(o+=r.delta,r=r.right))}C(e.root,!1)}function H(e,t){var n=e.root,i=[],r=0;while(n!==I)w(n)?(C(n.left,!1),C(n.right,!1),n=n.parent):n.left===I||w(n.left)?(n.ownerId===t&&(i[r++]=n),C(n,!0),n.right===I||w(n.right)||(n=n.right)):n=n.left;return C(e.root,!1),i}function j(e){var t=e.root,n=[],i=0;while(t!==I)w(t)?(C(t.left,!1),C(t.right,!1),t=t.parent):t.left===I||w(t.left)?t.right===I||w(t.right)?(n[i++]=t,C(t,!0)):t=t.right:t=t.left;return C(e.root,!1),n}function Q(e,t,n,i){var r=e.root,o=0,s=0,a=0,u=[],l=0;while(r!==I)if(w(r))C(r.left,!1),C(r.right,!1),r===r.parent.right&&(o-=r.parent.delta),r=r.parent;else if(r.left===I||w(r.left)){s=o+r.start,a=o+r.end,r.setCachedOffsets(s,a,i);var c=!0;t&&r.ownerId&&r.ownerId!==t&&(c=!1),n&&S(r)&&(c=!1),c&&(u[l++]=r),C(r,!0),r.right===I||w(r.right)||(o+=r.delta,r=r.right)}else r=r.left;return C(e.root,!1),u}function V(e,t,n,i,r,o){var s=e.root,a=0,u=0,l=0,c=0,d=[],h=0;while(s!==I)if(w(s))C(s.left,!1),C(s.right,!1),s===s.parent.right&&(a-=s.parent.delta),s=s.parent;else{if(!w(s.left)){if(u=a+s.maxEnd,u<t){C(s,!0);continue}if(s.left!==I){s=s.left;continue}}if(l=a+s.start,l>n)C(s,!0);else{if(c=a+s.end,c>=t){s.setCachedOffsets(l,c,o);var f=!0;i&&s.ownerId&&s.ownerId!==i&&(f=!1),r&&S(s)&&(f=!1),f&&(d[h++]=s)}C(s,!0),s.right===I||w(s.right)||(a+=s.delta,s=s.right)}}return C(e.root,!1),d}function W(e,t){if(e.root===I)return t.parent=I,t.left=I,t.right=I,b(t,0),e.root=t,e.root;z(e,t),$(t.parent);var n=t;while(n!==e.root&&1===y(n.parent))if(n.parent===n.parent.parent.left){var i=n.parent.parent.right;1===y(i)?(b(n.parent,0),b(i,0),b(n.parent.parent,1),n=n.parent.parent):(n===n.parent.right&&(n=n.parent,X(e,n)),b(n.parent,0),b(n.parent.parent,1),Y(e,n.parent.parent))}else{i=n.parent.parent.left;1===y(i)?(b(n.parent,0),b(i,0),b(n.parent.parent,1),n=n.parent.parent):(n===n.parent.left&&(n=n.parent,Y(e,n)),b(n.parent,0),b(n.parent.parent,1),X(e,n.parent.parent))}return b(e.root,0),t}function z(e,t){var n=0,i=e.root,r=t.start,o=t.end;while(1){var s=ee(r,o,i.start+n,i.end+n);if(s<0){if(i.left===I){t.start-=n,t.end-=n,t.maxEnd-=n,i.left=t;break}i=i.left}else{if(i.right===I){t.start-=n+i.delta,t.end-=n+i.delta,t.maxEnd-=n+i.delta,i.right=t;break}n+=i.delta,i=i.right}}t.parent=i,t.left=I,t.right=I,b(t,1)}function K(e,t){var n,i;if(t.left===I?(n=t.right,i=t,n.delta+=t.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta):t.right===I?(n=t.left,i=t):(i=q(t.right),n=i.right,n.start+=i.delta,n.end+=i.delta,n.delta+=i.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),i.start+=t.delta,i.end+=t.delta,i.delta=t.delta,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0)),i===e.root)return e.root=n,b(n,0),t.detach(),G(),Z(n),void(e.root.parent=I);var r,o=1===y(i);if(i===i.parent.left?i.parent.left=n:i.parent.right=n,i===t?n.parent=i.parent:(i.parent===t?n.parent=i:n.parent=i.parent,i.left=t.left,i.right=t.right,i.parent=t.parent,b(i,y(t)),t===e.root?e.root=i:t===t.parent.left?t.parent.left=i:t.parent.right=i,i.left!==I&&(i.left.parent=i),i.right!==I&&(i.right.parent=i)),t.detach(),o)return $(n.parent),i!==t&&($(i),$(i.parent)),void G();$(n),$(n.parent),i!==t&&($(i),$(i.parent));while(n!==e.root&&0===y(n))n===n.parent.left?(r=n.parent.right,1===y(r)&&(b(r,0),b(n.parent,1),X(e,n.parent),r=n.parent.right),0===y(r.left)&&0===y(r.right)?(b(r,1),n=n.parent):(0===y(r.right)&&(b(r.left,0),b(r,1),Y(e,r),r=n.parent.right),b(r,y(n.parent)),b(n.parent,0),b(r.right,0),X(e,n.parent),n=e.root)):(r=n.parent.left,1===y(r)&&(b(r,0),b(n.parent,1),Y(e,n.parent),r=n.parent.left),0===y(r.left)&&0===y(r.right)?(b(r,1),n=n.parent):(0===y(r.left)&&(b(r.right,0),b(r,1),X(e,r),r=n.parent.left),b(r,y(n.parent)),b(n.parent,0),b(r.left,0),Y(e,n.parent),n=e.root));b(n,0),G()}function q(e){while(e.left!==I)e=e.left;return e}function G(){I.parent=I,I.delta=0,I.start=0,I.end=0}function X(e,t){var n=t.right;n.delta+=t.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta,t.right=n.left,n.left!==I&&(n.left.parent=t),n.parent=t.parent,t.parent===I?e.root=n:t===t.parent.left?t.parent.left=n:t.parent.right=n,n.left=t,t.parent=n,Z(t),Z(n)}function Y(e,t){var n=t.left;t.delta-=n.delta,(t.delta<-1073741824||t.delta>1073741824)&&(e.requestNormalizeDelta=!0),t.start-=n.delta,t.end-=n.delta,t.left=n.right,n.right!==I&&(n.right.parent=t),n.parent=t.parent,t.parent===I?e.root=n:t===t.parent.right?t.parent.right=n:t.parent.left=n,n.right=t,t.parent=n,Z(t),Z(n)}function J(e){var t=e.end;if(e.left!==I){var n=e.left.maxEnd;n>t&&(t=n)}if(e.right!==I){var i=e.right.maxEnd+e.delta;i>t&&(t=i)}return t}function Z(e){e.maxEnd=J(e)}function $(e){while(e!==I){var t=J(e);if(e.maxEnd===t)return;e.maxEnd=t,e=e.parent}}function ee(e,t,n,i){return e===n?t-i:e-n}var te=function(){function e(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}return e.prototype.next=function(){if(this.right!==ne)return ie(this.right);var e=this;while(e.parent!==ne){if(e.parent.left===e)break;e=e.parent}return e.parent===ne?ne:e.parent},e.prototype.prev=function(){if(this.left!==ne)return re(this.left);var e=this;while(e.parent!==ne){if(e.parent.right===e)break;e=e.parent}return e.parent===ne?ne:e.parent},e.prototype.detach=function(){this.parent=null,this.left=null,this.right=null},e}(),ne=new te(null,0);function ie(e){while(e.left!==ne)e=e.left;return e}function re(e){while(e.right!==ne)e=e.right;return e}function oe(e){return e===ne?0:e.size_left+e.piece.length+oe(e.right)}function se(e){return e===ne?0:e.lf_left+e.piece.lineFeedCnt+se(e.right)}function ae(){ne.parent=ne}function ue(e,t){var n=t.right;n.size_left+=t.size_left+(t.piece?t.piece.length:0),n.lf_left+=t.lf_left+(t.piece?t.piece.lineFeedCnt:0),t.right=n.left,n.left!==ne&&(n.left.parent=t),n.parent=t.parent,t.parent===ne?e.root=n:t.parent.left===t?t.parent.left=n:t.parent.right=n,n.left=t,t.parent=n}function le(e,t){var n=t.left;t.left=n.right,n.right!==ne&&(n.right.parent=t),n.parent=t.parent,t.size_left-=n.size_left+(n.piece?n.piece.length:0),t.lf_left-=n.lf_left+(n.piece?n.piece.lineFeedCnt:0),t.parent===ne?e.root=n:t===t.parent.right?t.parent.right=n:t.parent.left=n,n.right=t,t.parent=n}function ce(e,t){var n,i;if(t.left===ne?(i=t,n=i.right):t.right===ne?(i=t,n=i.left):(i=ie(t.right),n=i.right),i===e.root)return e.root=n,n.color=0,t.detach(),ae(),void(e.root.parent=ne);var r=1===i.color;if(i===i.parent.left?i.parent.left=n:i.parent.right=n,i===t?(n.parent=i.parent,fe(e,n)):(i.parent===t?n.parent=i:n.parent=i.parent,fe(e,n),i.left=t.left,i.right=t.right,i.parent=t.parent,i.color=t.color,t===e.root?e.root=i:t===t.parent.left?t.parent.left=i:t.parent.right=i,i.left!==ne&&(i.left.parent=i),i.right!==ne&&(i.right.parent=i),i.size_left=t.size_left,i.lf_left=t.lf_left,fe(e,i)),t.detach(),n.parent.left===n){var o=oe(n),s=se(n);if(o!==n.parent.size_left||s!==n.parent.lf_left){var a=o-n.parent.size_left,u=s-n.parent.lf_left;n.parent.size_left=o,n.parent.lf_left=s,he(e,n.parent,a,u)}}if(fe(e,n.parent),r)ae();else{var l;while(n!==e.root&&0===n.color)n===n.parent.left?(l=n.parent.right,1===l.color&&(l.color=0,n.parent.color=1,ue(e,n.parent),l=n.parent.right),0===l.left.color&&0===l.right.color?(l.color=1,n=n.parent):(0===l.right.color&&(l.left.color=0,l.color=1,le(e,l),l=n.parent.right),l.color=n.parent.color,n.parent.color=0,l.right.color=0,ue(e,n.parent),n=e.root)):(l=n.parent.left,1===l.color&&(l.color=0,n.parent.color=1,le(e,n.parent),l=n.parent.left),0===l.left.color&&0===l.right.color?(l.color=1,n=n.parent):(0===l.left.color&&(l.right.color=0,l.color=1,ue(e,l),l=n.parent.left),l.color=n.parent.color,n.parent.color=0,l.left.color=0,le(e,n.parent),n=e.root));n.color=0,ae()}}function de(e,t){fe(e,t);while(t!==e.root&&1===t.parent.color)if(t.parent===t.parent.parent.left){var n=t.parent.parent.right;1===n.color?(t.parent.color=0,n.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.right&&(t=t.parent,ue(e,t)),t.parent.color=0,t.parent.parent.color=1,le(e,t.parent.parent))}else{n=t.parent.parent.left;1===n.color?(t.parent.color=0,n.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.left&&(t=t.parent,le(e,t)),t.parent.color=0,t.parent.parent.color=1,ue(e,t.parent.parent))}e.root.color=0}function he(e,t,n,i){while(t!==e.root&&t!==ne)t.parent.left===t&&(t.parent.size_left+=n,t.parent.lf_left+=i),t=t.parent}function fe(e,t){var n=0,i=0;if(t!==e.root){if(0===n){while(t!==e.root&&t===t.parent.right)t=t.parent;if(t===e.root)return;t=t.parent,n=oe(t.left)-t.size_left,i=se(t.left)-t.lf_left,t.size_left+=n,t.lf_left+=i}while(t!==e.root&&(0!==n||0!==i))t.parent.left===t&&(t.parent.size_left+=n,t.parent.lf_left+=i),t=t.parent}}ne.parent=ne,ne.left=ne,ne.right=ne,ne.color=0;var pe=n("jAJ/"),ge=65535;function Ae(e){var t;return t=e[e.length-1]<65536?new Uint16Array(e.length):new Uint32Array(e.length),t.set(e,0),t}var me=function(){function e(e,t,n,i,r){this.lineStarts=e,this.cr=t,this.lf=n,this.crlf=i,this.isBasicASCII=r}return e}();function ve(e,t){void 0===t&&(t=!0);for(var n=[0],i=1,r=0,o=e.length;r<o;r++){var s=e.charCodeAt(r);13===s?r+1<o&&10===e.charCodeAt(r+1)?(n[i++]=r+2,r++):n[i++]=r+1:10===s&&(n[i++]=r+1)}return t?Ae(n):n}function _e(e,t){e.length=0,e[0]=0;for(var n=1,i=0,r=0,o=0,s=!0,a=0,u=t.length;a<u;a++){var l=t.charCodeAt(a);13===l?a+1<u&&10===t.charCodeAt(a+1)?(o++,e[n++]=a+2,a++):(i++,e[n++]=a+1):10===l?(r++,e[n++]=a+1):s&&9!==l&&(l<32||l>126)&&(s=!1)}var c=new me(Ae(e),i,r,o,s);return e.length=0,c}var ye=function(){function e(e,t,n,i,r){this.bufferIndex=e,this.start=t,this.end=n,this.lineFeedCnt=i,this.length=r}return e}(),be=function(){function e(e,t){this.buffer=e,this.lineStarts=t}return e}(),we=function(){function e(e){this._limit=e,this._cache=[]}return e.prototype.get=function(e){for(var t=this._cache.length-1;t>=0;t--){var n=this._cache[t];if(n.nodeStartOffset<=e&&n.nodeStartOffset+n.node.piece.length>=e)return n}return null},e.prototype.get2=function(e){for(var t=this._cache.length-1;t>=0;t--){var n=this._cache[t];if(n.nodeStartLineNumber&&n.nodeStartLineNumber<e&&n.nodeStartLineNumber+n.node.piece.lineFeedCnt>=e)return n}return null},e.prototype.set=function(e){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(e)},e.prototype.valdiate=function(e){for(var t=!1,n=this._cache,i=0;i<n.length;i++){var r=n[i];(null===r.node.parent||r.nodeStartOffset>=e)&&(n[i]=null,t=!0)}if(t){for(var o=[],s=0,a=n;s<a.length;s++){var u=a[s];null!==u&&o.push(u)}this._cache=o}},e}(),Ce=function(){function e(e,t,n){this.create(e,t,n)}return e.prototype.create=function(e,t,n){this._buffers=[new be("",[0])],this._lastChangeBufferPos={line:0,column:0},this.root=ne,this._lineCnt=1,this._length=0,this._EOL=t,this._EOLLength=t.length,this._EOLNormalized=n;for(var i=null,r=0,o=e.length;r<o;r++)if(e[r].buffer.length>0){e[r].lineStarts||(e[r].lineStarts=ve(e[r].buffer));var s=new ye(r+1,{line:0,column:0},{line:e[r].lineStarts.length-1,column:e[r].buffer.length-e[r].lineStarts[e[r].lineStarts.length-1]},e[r].lineStarts.length-1,e[r].buffer.length);this._buffers.push(e[r]),i=this.rbInsertRight(i,s)}this._searchCache=new we(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()},e.prototype.normalizeEOL=function(e){var t=this,n=ge,i=n-Math.floor(n/3),r=2*i,o="",s=0,a=[];if(this.iterate(this.root,(function(n){var u=t.getNodeContent(n),l=u.length;if(s<=i||s+l<r)return o+=u,s+=l,!0;var c=o.replace(/\r\n|\r|\n/g,e);return a.push(new be(c,ve(c))),o=u,s=l,!0})),s>0){var u=o.replace(/\r\n|\r|\n/g,e);a.push(new be(u,ve(u)))}this.create(a,e,!0)},e.prototype.getEOL=function(){return this._EOL},e.prototype.setEOL=function(e){this._EOL=e,this._EOLLength=this._EOL.length,this.normalizeEOL(e)},e.prototype.getOffsetAt=function(e,t){var n=0,i=this.root;while(i!==ne)if(i.left!==ne&&i.lf_left+1>=e)i=i.left;else{if(i.lf_left+i.piece.lineFeedCnt+1>=e){n+=i.size_left;var r=this.getAccumulatedValue(i,e-i.lf_left-2);return n+(r+t-1)}e-=i.lf_left+i.piece.lineFeedCnt,n+=i.size_left+i.piece.length,i=i.right}return n},e.prototype.getPositionAt=function(e){e=Math.floor(e),e=Math.max(0,e);var t=this.root,n=0,i=e;while(t!==ne)if(0!==t.size_left&&t.size_left>=e)t=t.left;else{if(t.size_left+t.piece.length>=e){var r=this.getIndexOf(t,e-t.size_left);if(n+=t.lf_left+r.index,0===r.index){var o=this.getOffsetAt(n+1,1),s=i-o;return new l["a"](n+1,s+1)}return new l["a"](n+1,r.remainder+1)}if(e-=t.size_left+t.piece.length,n+=t.lf_left+t.piece.lineFeedCnt,t.right===ne){o=this.getOffsetAt(n+1,1),s=i-e-o;return new l["a"](n+1,s+1)}t=t.right}return new l["a"](1,1)},e.prototype.getValueInRange=function(e,t){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return"";var n=this.nodeAt2(e.startLineNumber,e.startColumn),i=this.nodeAt2(e.endLineNumber,e.endColumn),r=this.getValueInRange2(n,i);return t?t===this._EOL&&this._EOLNormalized&&t===this.getEOL()&&this._EOLNormalized?r:r.replace(/\r\n|\r|\n/g,t):r},e.prototype.getValueInRange2=function(e,t){if(e.node===t.node){var n=e.node,i=this._buffers[n.piece.bufferIndex].buffer,r=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return i.substring(r+e.remainder,r+t.remainder)}var o=e.node,s=this._buffers[o.piece.bufferIndex].buffer,a=this.offsetInBuffer(o.piece.bufferIndex,o.piece.start),u=s.substring(a+e.remainder,a+o.piece.length);o=o.next();while(o!==ne){var l=this._buffers[o.piece.bufferIndex].buffer,c=this.offsetInBuffer(o.piece.bufferIndex,o.piece.start);if(o===t.node){u+=l.substring(c,c+t.remainder);break}u+=l.substr(c,o.piece.length),o=o.next()}return u},e.prototype.getLinesContent=function(){var e=this,t=[],n=0,i="",r=!1;return this.iterate(this.root,(function(o){if(o===ne)return!0;var s=o.piece,a=s.length;if(0===a)return!0;var u=e._buffers[s.bufferIndex].buffer,l=e._buffers[s.bufferIndex].lineStarts,c=s.start.line,d=s.end.line,h=l[c]+s.start.column;if(r&&(10===u.charCodeAt(h)&&(h++,a--),t[n++]=i,i="",r=!1,0===a))return!0;if(c===d)return e._EOLNormalized||13!==u.charCodeAt(h+a-1)?i+=u.substr(h,a):(r=!0,i+=u.substr(h,a-1)),!0;i+=e._EOLNormalized?u.substring(h,Math.max(h,l[c+1]-e._EOLLength)):u.substring(h,l[c+1]).replace(/(\r\n|\r|\n)$/,""),t[n++]=i;for(var f=c+1;f<d;f++)i=e._EOLNormalized?u.substring(l[f],l[f+1]-e._EOLLength):u.substring(l[f],l[f+1]).replace(/(\r\n|\r|\n)$/,""),t[n++]=i;return e._EOLNormalized||13!==u.charCodeAt(l[d]+s.end.column-1)?i=u.substr(l[d],s.end.column):(r=!0,0===s.end.column?n--:i=u.substr(l[d],s.end.column-1)),!0})),r&&(t[n++]=i,i=""),t[n++]=i,t},e.prototype.getLength=function(){return this._length},e.prototype.getLineCount=function(){return this._lineCnt},e.prototype.getLineContent=function(e){return this._lastVisitedLine.lineNumber===e||(this._lastVisitedLine.lineNumber=e,e===this._lineCnt?this._lastVisitedLine.value=this.getLineRawContent(e):this._EOLNormalized?this._lastVisitedLine.value=this.getLineRawContent(e,this._EOLLength):this._lastVisitedLine.value=this.getLineRawContent(e).replace(/(\r\n|\r|\n)$/,"")),this._lastVisitedLine.value},e.prototype.getLineCharCode=function(e,t){var n=this.nodeAt2(e,t+1);if(n.remainder===n.node.piece.length){var i=n.node.next();if(!i)return 0;var r=this._buffers[i.piece.bufferIndex],o=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return r.buffer.charCodeAt(o)}r=this._buffers[n.node.piece.bufferIndex],o=this.offsetInBuffer(n.node.piece.bufferIndex,n.node.piece.start);var s=o+n.remainder;return r.buffer.charCodeAt(s)},e.prototype.getLineLength=function(e){if(e===this.getLineCount()){var t=this.getOffsetAt(e,1);return this.getLength()-t}return this.getOffsetAt(e+1,1)-this.getOffsetAt(e,1)-this._EOLLength},e.prototype.findMatchesInNode=function(e,t,n,i,r,o,s,a,u,l,d){var h,f,p,g=this._buffers[e.piece.bufferIndex],A=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start),m=this.offsetInBuffer(e.piece.bufferIndex,r),v=this.offsetInBuffer(e.piece.bufferIndex,o),_={line:0,column:0};t._wordSeparators?(f=g.buffer.substring(m,v),p=function(e){return e+m},t.reset(-1)):(f=g.buffer,p=function(e){return e},t.reset(m));do{if(h=t.next(f),h){if(p(h.index)>=v)return l;this.positionInBuffer(e,p(h.index)-A,_);var y=this.getLineFeedCnt(e.piece.bufferIndex,r,_),b=_.line===r.line?_.column-r.column+i:_.column+1,w=b+h[0].length;if(d[l++]=Object(pe["d"])(new c["a"](n+y,b,n+y,w),h,a),p(h.index)+h[0].length>=v)return l;if(l>=u)return l}}while(h);return l},e.prototype.findMatchesLineByLine=function(e,t,n,i){var r=[],o=0,s=new pe["b"](t.wordSeparators,t.regex),a=this.nodeAt2(e.startLineNumber,e.startColumn);if(null===a)return[];var u=this.nodeAt2(e.endLineNumber,e.endColumn);if(null===u)return[];var l=this.positionInBuffer(a.node,a.remainder),c=this.positionInBuffer(u.node,u.remainder);if(a.node===u.node)return this.findMatchesInNode(a.node,s,e.startLineNumber,e.startColumn,l,c,t,n,i,o,r),r;var d=e.startLineNumber,h=a.node;while(h!==u.node){var f=this.getLineFeedCnt(h.piece.bufferIndex,l,h.piece.end);if(f>=1){var p=this._buffers[h.piece.bufferIndex].lineStarts,g=this.offsetInBuffer(h.piece.bufferIndex,h.piece.start),A=p[l.line+f],m=d===e.startLineNumber?e.startColumn:1;if(o=this.findMatchesInNode(h,s,d,m,l,this.positionInBuffer(h,A-g),t,n,i,o,r),o>=i)return r;d+=f}var v=d===e.startLineNumber?e.startColumn-1:0;if(d===e.endLineNumber){var _=this.getLineContent(d).substring(v,e.endColumn-1);return o=this._findMatchesInLine(t,s,_,e.endLineNumber,v,o,r,n,i),r}if(o=this._findMatchesInLine(t,s,this.getLineContent(d).substr(v),d,v,o,r,n,i),o>=i)return r;d++,a=this.nodeAt2(d,1),h=a.node,l=this.positionInBuffer(a.node,a.remainder)}if(d===e.endLineNumber){var y=d===e.startLineNumber?e.startColumn-1:0;_=this.getLineContent(d).substring(y,e.endColumn-1);return o=this._findMatchesInLine(t,s,_,e.endLineNumber,y,o,r,n,i),r}var b=d===e.startLineNumber?e.startColumn:1;return o=this.findMatchesInNode(u.node,s,d,b,l,c,t,n,i,o,r),r},e.prototype._findMatchesInLine=function(e,t,n,i,r,o,s,a,u){var l,d=e.wordSeparators;if(!a&&e.simpleSearch){var f=e.simpleSearch,p=f.length,g=n.length,A=-p;while(-1!==(A=n.indexOf(f,A+p)))if((!d||Object(pe["e"])(d,n,g,A,p))&&(s[o++]=new h["b"](new c["a"](i,A+1+r,i,A+1+p+r),null),o>=u))return o;return o}t.reset(0);do{if(l=t.next(n),l&&(s[o++]=Object(pe["d"])(new c["a"](i,l.index+1+r,i,l.index+1+l[0].length+r),l,a),o>=u))return o}while(l);return o},e.prototype.insert=function(e,t,n){if(void 0===n&&(n=!1),this._EOLNormalized=this._EOLNormalized&&n,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==ne){var i=this.nodeAt(e),r=i.node,o=i.remainder,s=i.nodeStartOffset,a=r.piece,u=a.bufferIndex,l=this.positionInBuffer(r,o);if(0===r.piece.bufferIndex&&a.end.line===this._lastChangeBufferPos.line&&a.end.column===this._lastChangeBufferPos.column&&s+a.length===e&&t.length<ge)return this.appendToNode(r,t),void this.computeBufferMetadata();if(s===e)this.insertContentToNodeLeft(t,r),this._searchCache.valdiate(e);else if(s+r.piece.length>e){var c=[],d=new ye(a.bufferIndex,l,a.end,this.getLineFeedCnt(a.bufferIndex,l,a.end),this.offsetInBuffer(u,a.end)-this.offsetInBuffer(u,l));if(this.shouldCheckCRLF()&&this.endWithCR(t)){var h=this.nodeCharCodeAt(r,o);if(10===h){var f={line:d.start.line+1,column:0};d=new ye(d.bufferIndex,f,d.end,this.getLineFeedCnt(d.bufferIndex,f,d.end),d.length-1),t+="\n"}}if(this.shouldCheckCRLF()&&this.startWithLF(t)){var p=this.nodeCharCodeAt(r,o-1);if(13===p){var g=this.positionInBuffer(r,o-1);this.deleteNodeTail(r,g),t="\r"+t,0===r.piece.length&&c.push(r)}else this.deleteNodeTail(r,l)}else this.deleteNodeTail(r,l);var A=this.createNewPieces(t);d.length>0&&this.rbInsertRight(r,d);for(var m=r,v=0;v<A.length;v++)m=this.rbInsertRight(m,A[v]);this.deleteNodes(c)}else this.insertContentToNodeRight(t,r)}else{var _=this.createNewPieces(t);for(r=this.rbInsertLeft(null,_[0]),v=1;v<_.length;v++)r=this.rbInsertRight(r,_[v])}this.computeBufferMetadata()},e.prototype.delete=function(e,t){if(this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",!(t<=0||this.root===ne)){var n=this.nodeAt(e),i=this.nodeAt(e+t),r=n.node,o=i.node;if(r===o){var s=this.positionInBuffer(r,n.remainder),a=this.positionInBuffer(r,i.remainder);if(n.nodeStartOffset===e){if(t===r.piece.length){var u=r.next();return ce(this,r),this.validateCRLFWithPrevNode(u),void this.computeBufferMetadata()}return this.deleteNodeHead(r,a),this._searchCache.valdiate(e),this.validateCRLFWithPrevNode(r),void this.computeBufferMetadata()}return n.nodeStartOffset+r.piece.length===e+t?(this.deleteNodeTail(r,s),this.validateCRLFWithNextNode(r),void this.computeBufferMetadata()):(this.shrinkNode(r,s,a),void this.computeBufferMetadata())}var l=[],c=this.positionInBuffer(r,n.remainder);this.deleteNodeTail(r,c),this._searchCache.valdiate(e),0===r.piece.length&&l.push(r);var d=this.positionInBuffer(o,i.remainder);this.deleteNodeHead(o,d),0===o.piece.length&&l.push(o);for(var h=r.next(),f=h;f!==ne&&f!==o;f=f.next())l.push(f);var p=0===r.piece.length?r.prev():r;this.deleteNodes(l),this.validateCRLFWithNextNode(p),this.computeBufferMetadata()}},e.prototype.insertContentToNodeLeft=function(e,t){var n=[];if(this.shouldCheckCRLF()&&this.endWithCR(e)&&this.startWithLF(t)){var i=t.piece,r={line:i.start.line+1,column:0},o=new ye(i.bufferIndex,r,i.end,this.getLineFeedCnt(i.bufferIndex,r,i.end),i.length-1);t.piece=o,e+="\n",he(this,t,-1,-1),0===t.piece.length&&n.push(t)}for(var s=this.createNewPieces(e),a=this.rbInsertLeft(t,s[s.length-1]),u=s.length-2;u>=0;u--)a=this.rbInsertLeft(a,s[u]);this.validateCRLFWithPrevNode(a),this.deleteNodes(n)},e.prototype.insertContentToNodeRight=function(e,t){this.adjustCarriageReturnFromNext(e,t)&&(e+="\n");for(var n=this.createNewPieces(e),i=this.rbInsertRight(t,n[0]),r=i,o=1;o<n.length;o++)r=this.rbInsertRight(r,n[o]);this.validateCRLFWithPrevNode(i)},e.prototype.positionInBuffer=function(e,t,n){var i=e.piece,r=e.piece.bufferIndex,o=this._buffers[r].lineStarts,s=o[i.start.line]+i.start.column,a=s+t,u=i.start.line,l=i.end.line,c=0,d=0,h=0;while(u<=l){if(c=u+(l-u)/2|0,h=o[c],c===l)break;if(d=o[c+1],a<h)l=c-1;else{if(!(a>=d))break;u=c+1}}return n?(n.line=c,n.column=a-h,null):{line:c,column:a-h}},e.prototype.getLineFeedCnt=function(e,t,n){if(0===n.column)return n.line-t.line;var i=this._buffers[e].lineStarts;if(n.line===i.length-1)return n.line-t.line;var r=i[n.line+1],o=i[n.line]+n.column;if(r>o+1)return n.line-t.line;var s=o-1,a=this._buffers[e].buffer;return 13===a.charCodeAt(s)?n.line-t.line+1:n.line-t.line},e.prototype.offsetInBuffer=function(e,t){var n=this._buffers[e].lineStarts;return n[t.line]+t.column},e.prototype.deleteNodes=function(e){for(var t=0;t<e.length;t++)ce(this,e[t])},e.prototype.createNewPieces=function(e){if(e.length>ge){var t=[];while(e.length>ge){var n=e.charCodeAt(ge-1),i=void 0;13===n||n>=55296&&n<=56319?(i=e.substring(0,ge-1),e=e.substring(ge-1)):(i=e.substring(0,ge),e=e.substring(ge));var r=ve(i);t.push(new ye(this._buffers.length,{line:0,column:0},{line:r.length-1,column:i.length-r[r.length-1]},r.length-1,i.length)),this._buffers.push(new be(i,r))}var o=ve(e);return t.push(new ye(this._buffers.length,{line:0,column:0},{line:o.length-1,column:e.length-o[o.length-1]},o.length-1,e.length)),this._buffers.push(new be(e,o)),t}var s=this._buffers[0].buffer.length,a=ve(e,!1),u=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===s&&0!==s&&this.startWithLF(e)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},u=this._lastChangeBufferPos;for(var l=0;l<a.length;l++)a[l]+=s+1;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(a.slice(1)),this._buffers[0].buffer+="_"+e,s+=1}else{if(0!==s)for(l=0;l<a.length;l++)a[l]+=s;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(a.slice(1)),this._buffers[0].buffer+=e}var c=this._buffers[0].buffer.length,d=this._buffers[0].lineStarts.length-1,h=c-this._buffers[0].lineStarts[d],f={line:d,column:h},p=new ye(0,u,f,this.getLineFeedCnt(0,u,f),c-s);return this._lastChangeBufferPos=f,[p]},e.prototype.getLineRawContent=function(e,t){void 0===t&&(t=0);var n=this.root,i="",r=this._searchCache.get2(e);if(r){n=r.node;var o=this.getAccumulatedValue(n,e-r.nodeStartLineNumber-1),s=this._buffers[n.piece.bufferIndex].buffer,a=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);if(r.nodeStartLineNumber+n.piece.lineFeedCnt!==e){var u=this.getAccumulatedValue(n,e-r.nodeStartLineNumber);return s.substring(a+o,a+u-t)}i=s.substring(a+o,a+n.piece.length)}else{var l=0,c=e;while(n!==ne)if(n.left!==ne&&n.lf_left>=e-1)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt>e-1){o=this.getAccumulatedValue(n,e-n.lf_left-2),u=this.getAccumulatedValue(n,e-n.lf_left-1),s=this._buffers[n.piece.bufferIndex].buffer,a=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return l+=n.size_left,this._searchCache.set({node:n,nodeStartOffset:l,nodeStartLineNumber:c-(e-1-n.lf_left)}),s.substring(a+o,a+u-t)}if(n.lf_left+n.piece.lineFeedCnt===e-1){o=this.getAccumulatedValue(n,e-n.lf_left-2),s=this._buffers[n.piece.bufferIndex].buffer,a=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);i=s.substring(a+o,a+n.piece.length);break}e-=n.lf_left+n.piece.lineFeedCnt,l+=n.size_left+n.piece.length,n=n.right}}n=n.next();while(n!==ne){s=this._buffers[n.piece.bufferIndex].buffer;if(n.piece.lineFeedCnt>0){u=this.getAccumulatedValue(n,0),a=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return i+=s.substring(a,a+u-t),i}a=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);i+=s.substr(a,n.piece.length),n=n.next()}return i},e.prototype.computeBufferMetadata=function(){var e=this.root,t=1,n=0;while(e!==ne)t+=e.lf_left+e.piece.lineFeedCnt,n+=e.size_left+e.piece.length,e=e.right;this._lineCnt=t,this._length=n,this._searchCache.valdiate(this._length)},e.prototype.getIndexOf=function(e,t){var n=e.piece,i=this.positionInBuffer(e,t),r=i.line-n.start.line;if(this.offsetInBuffer(n.bufferIndex,n.end)-this.offsetInBuffer(n.bufferIndex,n.start)===t){var o=this.getLineFeedCnt(e.piece.bufferIndex,n.start,i);if(o!==r)return{index:o,remainder:0}}return{index:r,remainder:i.column}},e.prototype.getAccumulatedValue=function(e,t){if(t<0)return 0;var n=e.piece,i=this._buffers[n.bufferIndex].lineStarts,r=n.start.line+t+1;return r>n.end.line?i[n.end.line]+n.end.column-i[n.start.line]-n.start.column:i[r]-i[n.start.line]-n.start.column},e.prototype.deleteNodeTail=function(e,t){var n=e.piece,i=n.lineFeedCnt,r=this.offsetInBuffer(n.bufferIndex,n.end),o=t,s=this.offsetInBuffer(n.bufferIndex,o),a=this.getLineFeedCnt(n.bufferIndex,n.start,o),u=a-i,l=s-r,c=n.length+l;e.piece=new ye(n.bufferIndex,n.start,o,a,c),he(this,e,l,u)},e.prototype.deleteNodeHead=function(e,t){var n=e.piece,i=n.lineFeedCnt,r=this.offsetInBuffer(n.bufferIndex,n.start),o=t,s=this.getLineFeedCnt(n.bufferIndex,o,n.end),a=this.offsetInBuffer(n.bufferIndex,o),u=s-i,l=r-a,c=n.length+l;e.piece=new ye(n.bufferIndex,o,n.end,s,c),he(this,e,l,u)},e.prototype.shrinkNode=function(e,t,n){var i=e.piece,r=i.start,o=i.end,s=i.length,a=i.lineFeedCnt,u=t,l=this.getLineFeedCnt(i.bufferIndex,i.start,u),c=this.offsetInBuffer(i.bufferIndex,t)-this.offsetInBuffer(i.bufferIndex,r);e.piece=new ye(i.bufferIndex,i.start,u,l,c),he(this,e,c-s,l-a);var d=new ye(i.bufferIndex,n,o,this.getLineFeedCnt(i.bufferIndex,n,o),this.offsetInBuffer(i.bufferIndex,o)-this.offsetInBuffer(i.bufferIndex,n)),h=this.rbInsertRight(e,d);this.validateCRLFWithPrevNode(h)},e.prototype.appendToNode=function(e,t){this.adjustCarriageReturnFromNext(t,e)&&(t+="\n");var n=this.shouldCheckCRLF()&&this.startWithLF(t)&&this.endWithCR(e),i=this._buffers[0].buffer.length;this._buffers[0].buffer+=t;for(var r=ve(t,!1),o=0;o<r.length;o++)r[o]+=i;if(n){var s=this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-2];this._buffers[0].lineStarts.pop(),this._lastChangeBufferPos={line:this._lastChangeBufferPos.line-1,column:i-s}}this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(r.slice(1));var a=this._buffers[0].lineStarts.length-1,u=this._buffers[0].buffer.length-this._buffers[0].lineStarts[a],l={line:a,column:u},c=e.piece.length+t.length,d=e.piece.lineFeedCnt,h=this.getLineFeedCnt(0,e.piece.start,l),f=h-d;e.piece=new ye(e.piece.bufferIndex,e.piece.start,l,h,c),this._lastChangeBufferPos=l,he(this,e,t.length,f)},e.prototype.nodeAt=function(e){var t=this.root,n=this._searchCache.get(e);if(n)return{node:n.node,nodeStartOffset:n.nodeStartOffset,remainder:e-n.nodeStartOffset};var i=0;while(t!==ne)if(t.size_left>e)t=t.left;else{if(t.size_left+t.piece.length>=e){i+=t.size_left;var r={node:t,remainder:e-t.size_left,nodeStartOffset:i};return this._searchCache.set(r),r}e-=t.size_left+t.piece.length,i+=t.size_left+t.piece.length,t=t.right}return null},e.prototype.nodeAt2=function(e,t){var n=this.root,i=0;while(n!==ne)if(n.left!==ne&&n.lf_left>=e-1)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt>e-1){var r=this.getAccumulatedValue(n,e-n.lf_left-2),o=this.getAccumulatedValue(n,e-n.lf_left-1);return i+=n.size_left,{node:n,remainder:Math.min(r+t-1,o),nodeStartOffset:i}}if(n.lf_left+n.piece.lineFeedCnt===e-1){r=this.getAccumulatedValue(n,e-n.lf_left-2);if(r+t-1<=n.piece.length)return{node:n,remainder:r+t-1,nodeStartOffset:i};t-=n.piece.length-r;break}e-=n.lf_left+n.piece.lineFeedCnt,i+=n.size_left+n.piece.length,n=n.right}n=n.next();while(n!==ne){if(n.piece.lineFeedCnt>0){o=this.getAccumulatedValue(n,0);var s=this.offsetOfNode(n);return{node:n,remainder:Math.min(t-1,o),nodeStartOffset:s}}if(n.piece.length>=t-1){var a=this.offsetOfNode(n);return{node:n,remainder:t-1,nodeStartOffset:a}}t-=n.piece.length,n=n.next()}return null},e.prototype.nodeCharCodeAt=function(e,t){if(e.piece.lineFeedCnt<1)return-1;var n=this._buffers[e.piece.bufferIndex],i=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start)+t;return n.buffer.charCodeAt(i)},e.prototype.offsetOfNode=function(e){if(!e)return 0;var t=e.size_left;while(e!==this.root)e.parent.right===e&&(t+=e.parent.size_left+e.parent.piece.length),e=e.parent;return t},e.prototype.shouldCheckCRLF=function(){return!(this._EOLNormalized&&"\n"===this._EOL)},e.prototype.startWithLF=function(e){if("string"===typeof e)return 10===e.charCodeAt(0);if(e===ne||0===e.piece.lineFeedCnt)return!1;var t=e.piece,n=this._buffers[t.bufferIndex].lineStarts,i=t.start.line,r=n[i]+t.start.column;if(i===n.length-1)return!1;var o=n[i+1];return!(o>r+1)&&10===this._buffers[t.bufferIndex].buffer.charCodeAt(r)},e.prototype.endWithCR=function(e){return"string"===typeof e?13===e.charCodeAt(e.length-1):e!==ne&&0!==e.piece.lineFeedCnt&&13===this.nodeCharCodeAt(e,e.piece.length-1)},e.prototype.validateCRLFWithPrevNode=function(e){if(this.shouldCheckCRLF()&&this.startWithLF(e)){var t=e.prev();this.endWithCR(t)&&this.fixCRLF(t,e)}},e.prototype.validateCRLFWithNextNode=function(e){if(this.shouldCheckCRLF()&&this.endWithCR(e)){var t=e.next();this.startWithLF(t)&&this.fixCRLF(e,t)}},e.prototype.fixCRLF=function(e,t){var n,i=[],r=this._buffers[e.piece.bufferIndex].lineStarts;n=0===e.piece.end.column?{line:e.piece.end.line-1,column:r[e.piece.end.line]-r[e.piece.end.line-1]-1}:{line:e.piece.end.line,column:e.piece.end.column-1};var o=e.piece.length-1,s=e.piece.lineFeedCnt-1;e.piece=new ye(e.piece.bufferIndex,e.piece.start,n,s,o),he(this,e,-1,-1),0===e.piece.length&&i.push(e);var a={line:t.piece.start.line+1,column:0},u=t.piece.length-1,l=this.getLineFeedCnt(t.piece.bufferIndex,a,t.piece.end);t.piece=new ye(t.piece.bufferIndex,a,t.piece.end,l,u),he(this,t,-1,-1),0===t.piece.length&&i.push(t);var c=this.createNewPieces("\r\n");this.rbInsertRight(e,c[0]);for(var d=0;d<i.length;d++)ce(this,i[d])},e.prototype.adjustCarriageReturnFromNext=function(e,t){if(this.shouldCheckCRLF()&&this.endWithCR(e)){var n=t.next();if(this.startWithLF(n)){if(e+="\n",1===n.piece.length)ce(this,n);else{var i=n.piece,r={line:i.start.line+1,column:0},o=i.length-1,s=this.getLineFeedCnt(i.bufferIndex,r,i.end);n.piece=new ye(i.bufferIndex,r,i.end,s,o),he(this,n,-1,-1)}return!0}}return!1},e.prototype.iterate=function(e,t){if(e===ne)return t(ne);var n=this.iterate(e.left,t);return n?t(e)&&this.iterate(e.right,t):n},e.prototype.getNodeContent=function(e){if(e===ne)return"";var t,n=this._buffers[e.piece.bufferIndex],i=e.piece,r=this.offsetInBuffer(i.bufferIndex,i.start),o=this.offsetInBuffer(i.bufferIndex,i.end);return t=n.buffer.substring(r,o),t},e.prototype.rbInsertRight=function(e,t){var n=new te(t,1);n.left=ne,n.right=ne,n.parent=ne,n.size_left=0,n.lf_left=0;var i=this.root;if(i===ne)this.root=n,n.color=0;else if(e.right===ne)e.right=n,n.parent=e;else{var r=ie(e.right);r.left=n,n.parent=r}return de(this,n),n},e.prototype.rbInsertLeft=function(e,t){var n=new te(t,1);if(n.left=ne,n.right=ne,n.parent=ne,n.size_left=0,n.lf_left=0,this.root===ne)this.root=n,n.color=0;else if(e.left===ne)e.left=n,n.parent=e;else{var i=re(e.left);i.right=n,n.parent=i}return de(this,n),n},e}(),Se=function(){function e(e,t,n,i,r,o){this._BOM=t,this._mightContainNonBasicASCII=!r,this._mightContainRTL=i,this._pieceTree=new Ce(e,n,o)}return e.prototype.mightContainRTL=function(){return this._mightContainRTL},e.prototype.mightContainNonBasicASCII=function(){return this._mightContainNonBasicASCII},e.prototype.getBOM=function(){return this._BOM},e.prototype.getEOL=function(){return this._pieceTree.getEOL()},e.prototype.getOffsetAt=function(e,t){return this._pieceTree.getOffsetAt(e,t)},e.prototype.getPositionAt=function(e){return this._pieceTree.getPositionAt(e)},e.prototype.getRangeAt=function(e,t){var n=e+t,i=this.getPositionAt(e),r=this.getPositionAt(n);return new c["a"](i.lineNumber,i.column,r.lineNumber,r.column)},e.prototype.getValueInRange=function(e,t){if(void 0===t&&(t=0),e.isEmpty())return"";var n=this._getEndOfLine(t);return this._pieceTree.getValueInRange(e,n)},e.prototype.getValueLengthInRange=function(e,t){if(void 0===t&&(t=0),e.isEmpty())return 0;if(e.startLineNumber===e.endLineNumber)return e.endColumn-e.startColumn;var n=this.getOffsetAt(e.startLineNumber,e.startColumn),i=this.getOffsetAt(e.endLineNumber,e.endColumn);return i-n},e.prototype.getCharacterCountInRange=function(e,t){if(void 0===t&&(t=0),this._mightContainNonBasicASCII){for(var n=0,i=e.startLineNumber,r=e.endLineNumber,o=i;o<=r;o++)for(var a=this.getLineContent(o),u=o===i?e.startColumn-1:0,l=o===r?e.endColumn-1:a.length,c=u;c<l;c++)s["z"](a.charCodeAt(c))?(n+=1,c+=1):n+=1;return n+=this._getEndOfLine(t).length*(r-i),n}return this.getValueLengthInRange(e,t)},e.prototype.getLength=function(){return this._pieceTree.getLength()},e.prototype.getLineCount=function(){return this._pieceTree.getLineCount()},e.prototype.getLinesContent=function(){return this._pieceTree.getLinesContent()},e.prototype.getLineContent=function(e){return this._pieceTree.getLineContent(e)},e.prototype.getLineCharCode=function(e,t){return this._pieceTree.getLineCharCode(e,t)},e.prototype.getLineLength=function(e){return this._pieceTree.getLineLength(e)},e.prototype.getLineFirstNonWhitespaceColumn=function(e){var t=s["q"](this.getLineContent(e));return-1===t?0:t+1},e.prototype.getLineLastNonWhitespaceColumn=function(e){var t=s["D"](this.getLineContent(e));return-1===t?0:t+2},e.prototype._getEndOfLine=function(e){switch(e){case 1:return"\n";case 2:return"\r\n";case 0:return this.getEOL()}throw new Error("Unknown EOL preference")},e.prototype.setEOL=function(e){this._pieceTree.setEOL(e)},e.prototype.applyEdits=function(t,n){for(var i=this._mightContainRTL,r=this._mightContainNonBasicASCII,o=!0,a=[],u=0;u<t.length;u++){var l=t[u];o&&l._isTracked&&(o=!1);var c=l.range;!i&&l.text&&(i=s["i"](l.text)),!r&&l.text&&(r=!s["v"](l.text)),a[u]={sortIndex:u,identifier:l.identifier||null,range:c,rangeOffset:this.getOffsetAt(c.startLineNumber,c.startColumn),rangeLength:this.getValueLengthInRange(c),lines:l.text?l.text.split(/\r\n|\r|\n/):null,forceMoveMarkers:Boolean(l.forceMoveMarkers),isAutoWhitespaceEdit:l.isAutoWhitespaceEdit||!1}}a.sort(e._sortOpsAscending);for(var d=!1,f=(u=0,a.length-1);u<f;u++){var p=a[u].range.getEndPosition(),g=a[u+1].range.getStartPosition();if(g.isBeforeOrEqual(p)){if(g.isBefore(p))throw new Error("Overlapping ranges are not allowed!");d=!0}}o&&(a=this._reduceOperations(a));var A=e._getInverseEditRanges(a),m=[];for(u=0;u<a.length;u++){l=a[u];var v=A[u];if(n&&l.isAutoWhitespaceEdit&&l.range.isEmpty())for(var _=v.startLineNumber;_<=v.endLineNumber;_++){var y="";_===v.startLineNumber&&(y=this.getLineContent(l.range.startLineNumber),-1!==s["q"](y))||m.push({lineNumber:_,oldContent:y})}}var b=[];for(u=0;u<a.length;u++){l=a[u],v=A[u];b[u]={sortIndex:l.sortIndex,identifier:l.identifier,range:v,text:this.getValueInRange(l.range),forceMoveMarkers:l.forceMoveMarkers}}d||b.sort((function(e,t){return e.sortIndex-t.sortIndex})),this._mightContainRTL=i,this._mightContainNonBasicASCII=r;var w=this._doApplyEdits(a),C=null;if(n&&m.length>0){m.sort((function(e,t){return t.lineNumber-e.lineNumber})),C=[];u=0;for(var S=m.length;u<S;u++){_=m[u].lineNumber;if(!(u>0&&m[u-1].lineNumber===_)){var N=m[u].oldContent,L=this.getLineContent(_);0!==L.length&&L!==N&&-1===s["q"](L)&&C.push(_)}}}return new h["a"](b,w,C)},e.prototype._reduceOperations=function(e){return e.length<1e3?e:[this._toSingleEditOperation(e)]},e.prototype._toSingleEditOperation=function(e){for(var t=!1,n=e[0].range,i=e[e.length-1].range,r=new c["a"](n.startLineNumber,n.startColumn,i.endLineNumber,i.endColumn),o=n.startLineNumber,s=n.startColumn,a=[],u=0,l=e.length;u<l;u++){var d=e[u],h=d.range;t=t||d.forceMoveMarkers;for(var f=o;f<h.startLineNumber;f++)f===o?a.push(this.getLineContent(f).substring(s-1)):(a.push("\n"),a.push(this.getLineContent(f)));if(h.startLineNumber===o?a.push(this.getLineContent(h.startLineNumber).substring(s-1,h.startColumn-1)):(a.push("\n"),a.push(this.getLineContent(h.startLineNumber).substring(0,h.startColumn-1))),d.lines)for(var p=0,g=d.lines.length;p<g;p++)0!==p&&a.push("\n"),a.push(d.lines[p]);o=d.range.endLineNumber,s=d.range.endColumn}return{sortIndex:0,identifier:e[0].identifier,range:r,rangeOffset:this.getOffsetAt(r.startLineNumber,r.startColumn),rangeLength:this.getValueLengthInRange(r,0),lines:a.join("").split("\n"),forceMoveMarkers:t,isAutoWhitespaceEdit:!1}},e.prototype._doApplyEdits=function(t){t.sort(e._sortOpsDescending);for(var n=[],i=0;i<t.length;i++){var r=t[i],o=r.range.startLineNumber,s=r.range.startColumn,a=r.range.endLineNumber,u=r.range.endColumn;if(o!==a||s!==u||r.lines&&0!==r.lines.length){var l=a-o,d=r.lines?r.lines.length-1:0,h=Math.min(l,d),f=r.lines?r.lines.join(this.getEOL()):"";if(f?(this._pieceTree.delete(r.rangeOffset,r.rangeLength),this._pieceTree.insert(r.rangeOffset,f,!0)):this._pieceTree.delete(r.rangeOffset,r.rangeLength),h<d){for(var p=[],g=h+1;g<=d;g++)p.push(r.lines[g]);p[p.length-1]=this.getLineContent(o+d-1)}var A=new c["a"](o,s,a,u);n.push({range:A,rangeLength:r.rangeLength,text:f,rangeOffset:r.rangeOffset,forceMoveMarkers:r.forceMoveMarkers})}}return n},e.prototype.findMatchesLineByLine=function(e,t,n,i){return this._pieceTree.findMatchesLineByLine(e,t,n,i)},e._getInverseEditRanges=function(e){for(var t=[],n=0,i=0,r=null,o=0,s=e.length;o<s;o++){var a=e[o],u=void 0,l=void 0;r?r.range.endLineNumber===a.range.startLineNumber?(u=n,l=i+(a.range.startColumn-r.range.endColumn)):(u=n+(a.range.startLineNumber-r.range.endLineNumber),l=a.range.startColumn):(u=a.range.startLineNumber,l=a.range.startColumn);var d=void 0;if(a.lines&&a.lines.length>0){var h=a.lines.length,f=a.lines[0],p=a.lines[h-1];d=1===h?new c["a"](u,l,u,l+f.length):new c["a"](u,l,u+h-1,p.length+1)}else d=new c["a"](u,l,u,l);n=d.endLineNumber,i=d.endColumn,t.push(d),r=a}return t},e._sortOpsAscending=function(e,t){var n=c["a"].compareRangesUsingEnds(e.range,t.range);return 0===n?e.sortIndex-t.sortIndex:n},e._sortOpsDescending=function(e,t){var n=c["a"].compareRangesUsingEnds(e.range,t.range);return 0===n?t.sortIndex-e.sortIndex:-n},e}(),Ne=function(){function e(e,t,n,i,r,o,s,a){this._chunks=e,this._bom=t,this._cr=n,this._lf=i,this._crlf=r,this._containsRTL=o,this._isBasicASCII=s,this._normalizeEOL=a}return e.prototype._getEOL=function(e){var t=this._cr+this._lf+this._crlf,n=this._cr+this._crlf;return 0===t?1===e?"\n":"\r\n":n>t/2?"\r\n":"\n"},e.prototype.create=function(e){var t=this._getEOL(e),n=this._chunks;if(this._normalizeEOL&&("\r\n"===t&&(this._cr>0||this._lf>0)||"\n"===t&&(this._cr>0||this._crlf>0)))for(var i=0,r=n.length;i<r;i++){var o=n[i].buffer.replace(/\r\n|\r|\n/g,t),s=ve(o);n[i]=new be(o,s)}return new Se(n,this._bom,t,this._containsRTL,this._isBasicASCII,this._normalizeEOL)},e}(),Le=function(){function e(){this.chunks=[],this.BOM="",this._hasPreviousChar=!1,this._previousChar=0,this._tmpLineStarts=[],this.cr=0,this.lf=0,this.crlf=0,this.containsRTL=!1,this.isBasicASCII=!0}return e.prototype.acceptChunk=function(e){if(0!==e.length){0===this.chunks.length&&s["O"](e)&&(this.BOM=s["a"],e=e.substr(1));var t=e.charCodeAt(e.length-1);13===t||t>=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)}},e.prototype._acceptChunk1=function(e,t){(t||0!==e.length)&&(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+e):this._acceptChunk2(e))},e.prototype._acceptChunk2=function(e){var t=_e(this._tmpLineStarts,e);this.chunks.push(new be(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=s["i"](e))},e.prototype.finish=function(e){return void 0===e&&(e=!0),this._finish(),new Ne(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.isBasicASCII,e)},e.prototype._finish=function(){if(0===this.chunks.length&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;var e=this.chunks[this.chunks.length-1];e.buffer+=String.fromCharCode(this._previousChar);var t=ve(e.buffer);e.lineStarts=t,13===this._previousChar&&this.cr++}},e}(),Ee=function(){function e(){this.changeType=1}return e}(),xe=function(){function e(e,t){this.changeType=2,this.lineNumber=e,this.detail=t}return e}(),Oe=function(){function e(e,t){this.changeType=3,this.fromLineNumber=e,this.toLineNumber=t}return e}(),Be=function(){function e(e,t,n){this.changeType=4,this.fromLineNumber=e,this.toLineNumber=t,this.detail=n}return e}(),ke=function(){function e(){this.changeType=5}return e}(),De=function(){function e(e,t,n,i){this.changes=e,this.versionId=t,this.isUndoing=n,this.isRedoing=i}return e.prototype.containsEvent=function(e){for(var t=0,n=this.changes.length;t<n;t++){var i=this.changes[t];if(i.changeType===e)return!0}return!1},e.merge=function(t,n){var i=[].concat(t.changes).concat(n.changes),r=n.versionId,o=t.isUndoing||n.isUndoing,s=t.isRedoing||n.isRedoing;return new e(i,r,o,s)},e}(),Ie=function(){function e(e,t){this.rawContentChangedEvent=e,this.contentChangedEvent=t}return e.prototype.merge=function(t){var n=De.merge(this.rawContentChangedEvent,t.rawContentChangedEvent),i=e._mergeChangeEvents(this.contentChangedEvent,t.contentChangedEvent);return new e(n,i)},e._mergeChangeEvents=function(e,t){var n=[].concat(e.changes).concat(t.changes),i=t.eol,r=t.versionId,o=e.isUndoing||t.isUndoing,s=e.isRedoing||t.isRedoing,a=e.isFlush||t.isFlush;return{changes:n,eol:i,versionId:r,isUndoing:o,isRedoing:s,isFlush:a}},e}(),Me=n("6OMU"),Fe=n("4bUh"),Te=n("twdY"),Re=n("i/Ef"),Pe=n("5Y4S"),Ue=n("QRHv"),He=n("MNsG"),je=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Qe=function(){function e(){this._beginState=[],this._valid=[],this._len=0,this._invalidLineStartIndex=0}return e.prototype._reset=function(e){this._beginState=[],this._valid=[],this._len=0,this._invalidLineStartIndex=0,e&&this._setBeginState(0,e)},e.prototype.flush=function(e){this._reset(e)},Object.defineProperty(e.prototype,"invalidLineStartIndex",{get:function(){return this._invalidLineStartIndex},enumerable:!0,configurable:!0}),e.prototype._invalidateLine=function(e){e<this._len&&(this._valid[e]=!1),e<this._invalidLineStartIndex&&(this._invalidLineStartIndex=e)},e.prototype._isValid=function(e){return e<this._len&&this._valid[e]},e.prototype.getBeginState=function(e){return e<this._len?this._beginState[e]:null},e.prototype._ensureLine=function(e){while(e>=this._len)this._beginState[this._len]=null,this._valid[this._len]=!1,this._len++},e.prototype._deleteLines=function(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)},e.prototype._insertLines=function(e,t){if(0!==t){for(var n=[],i=[],r=0;r<t;r++)n[r]=null,i[r]=!1;this._beginState=Me["a"](this._beginState,e,n),this._valid=Me["a"](this._valid,e,i),this._len+=t}},e.prototype._setValid=function(e,t){this._ensureLine(e),this._valid[e]=t},e.prototype._setBeginState=function(e,t){this._ensureLine(e),this._beginState[e]=t},e.prototype.setEndState=function(e,t,n){if(this._setValid(t,!0),this._invalidLineStartIndex=t+1,t!==e-1){var i=this.getBeginState(t+1);if(null===i||!n.equals(i))return this._setBeginState(t+1,n),void this._invalidateLine(t+1);var r=t+1;while(r<e){if(!this._isValid(r))break;r++}this._invalidLineStartIndex=r}},e.prototype.setFakeTokens=function(e){this._setValid(e,!1)},e.prototype.applyEdits=function(e,t){for(var n=e.endLineNumber-e.startLineNumber,i=t,r=Math.min(n,i),o=r;o>=0;o--)this._invalidateLine(e.startLineNumber+o-1);this._acceptDeleteRange(e),this._acceptInsertText(new l["a"](e.startLineNumber,e.startColumn),t)},e.prototype._acceptDeleteRange=function(e){var t=e.startLineNumber-1;t>=this._len||this._deleteLines(e.startLineNumber,e.endLineNumber-e.startLineNumber)},e.prototype._acceptInsertText=function(e,t){var n=e.lineNumber-1;n>=this._len||this._insertLines(e.lineNumber,t)},e}(),Ve=function(e){function t(t){var n=e.call(this)||this;return n._isDisposed=!1,n._textModel=t,n._tokenizationStateStore=new Qe,n._tokenizationSupport=null,n._register(Te["y"].onDidChange((function(e){var t=n._textModel.getLanguageIdentifier();-1!==e.changedLanguages.indexOf(t.language)&&(n._resetTokenizationState(),n._textModel.clearTokens())}))),n._register(n._textModel.onDidChangeRawContentFast((function(e){e.containsEvent(1)&&n._resetTokenizationState()}))),n._register(n._textModel.onDidChangeContentFast((function(e){for(var t=0,i=e.changes.length;t<i;t++){var r=e.changes[t],o=Object(Ue["f"])(r.text)[0];n._tokenizationStateStore.applyEdits(r.range,o)}n._beginBackgroundTokenization()}))),n._register(n._textModel.onDidChangeAttached((function(){n._beginBackgroundTokenization()}))),n._register(n._textModel.onDidChangeLanguage((function(){n._resetTokenizationState(),n._textModel.clearTokens()}))),n._resetTokenizationState(),n}return je(t,e),t.prototype.dispose=function(){this._isDisposed=!0,e.prototype.dispose.call(this)},t.prototype._resetTokenizationState=function(){var e=We(this._textModel),t=e[0],n=e[1];this._tokenizationSupport=t,this._tokenizationStateStore.flush(n),this._beginBackgroundTokenization()},t.prototype._beginBackgroundTokenization=function(){var e=this;this._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&He["i"]((function(){e._isDisposed||e._revalidateTokensNow()}))},t.prototype._revalidateTokensNow=function(e){void 0===e&&(e=this._textModel.getLineCount());var t=1,n=new Ue["b"],i=Pe["a"].create(!1);while(this._hasLinesToTokenize()){if(i.elapsed()>t)break;var r=this._tokenizeOneInvalidLine(n);if(r>=e)break}this._beginBackgroundTokenization(),this._textModel.setTokens(n.tokens)},t.prototype.tokenizeViewport=function(e,t){var n=new Ue["b"];this._tokenizeViewport(n,e,t),this._textModel.setTokens(n.tokens)},t.prototype.reset=function(){this._resetTokenizationState(),this._textModel.clearTokens()},t.prototype.forceTokenization=function(e){var t=new Ue["b"];this._updateTokensUntilLine(t,e),this._textModel.setTokens(t.tokens)},t.prototype.isCheapToTokenize=function(e){if(!this._tokenizationSupport)return!0;var t=this._tokenizationStateStore.invalidLineStartIndex+1;return!(e>t)&&(e<t||this._textModel.getLineLength(e)<2048)},t.prototype._hasLinesToTokenize=function(){return!!this._tokenizationSupport&&this._tokenizationStateStore.invalidLineStartIndex<this._textModel.getLineCount()},t.prototype._tokenizeOneInvalidLine=function(e){if(!this._hasLinesToTokenize())return this._textModel.getLineCount()+1;var t=this._tokenizationStateStore.invalidLineStartIndex+1;return this._updateTokensUntilLine(e,t),t},t.prototype._updateTokensUntilLine=function(e,t){if(this._tokenizationSupport)for(var n=this._textModel.getLanguageIdentifier(),i=this._textModel.getLineCount(),r=t-1,o=this._tokenizationStateStore.invalidLineStartIndex;o<=r;o++){var s=this._textModel.getLineContent(o+1),a=this._tokenizationStateStore.getBeginState(o),u=ze(n,this._tokenizationSupport,s,a);e.add(o+1,u.tokens),this._tokenizationStateStore.setEndState(i,o,u.endState),o=this._tokenizationStateStore.invalidLineStartIndex-1}},t.prototype._tokenizeViewport=function(e,t,n){if(this._tokenizationSupport&&!(n<=this._tokenizationStateStore.invalidLineStartIndex))if(t<=this._tokenizationStateStore.invalidLineStartIndex)this._updateTokensUntilLine(e,n);else{for(var i=this._textModel.getLineFirstNonWhitespaceColumn(t),r=[],o=null,s=t-1;i>0&&s>=1;s--){var a=this._textModel.getLineFirstNonWhitespaceColumn(s);if(0!==a&&a<i){if(o=this._tokenizationStateStore.getBeginState(s-1),o)break;r.push(this._textModel.getLineContent(s)),i=a}}o||(o=this._tokenizationSupport.getInitialState());var u=this._textModel.getLanguageIdentifier(),l=o;for(s=r.length-1;s>=0;s--){var c=ze(u,this._tokenizationSupport,r[s],l);l=c.endState}for(var d=t;d<=n;d++){var h=this._textModel.getLineContent(d);c=ze(u,this._tokenizationSupport,h,l);e.add(d,c.tokens),this._tokenizationStateStore.setFakeTokens(d-1),l=c.endState}}},t}(o["a"]);function We(e){var t=e.getLanguageIdentifier(),n=e.isTooLargeForTokenization()?null:Te["y"].get(t.language),r=null;if(n)try{r=n.getInitialState()}catch(o){Object(i["e"])(o),n=null}return[n,r]}function ze(e,t,n,r){var o=null;if(t)try{o=t.tokenize2(n,r.clone(),0)}catch(s){Object(i["e"])(s)}return o||(o=Object(Re["e"])(e.id,n,r,0)),Fe["a"].convertToEndOffset(o.tokens,n.length),o}var Ke=n("0JNc"),qe=n("cMvZ"),Ge=n("BFtn"),Xe=n("EIAu"),Ye=n("746U"),Je=n("zrhQ"),Ze=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();function $e(){return new Le}function et(e){var t=$e();return t.acceptChunk(e),t.finish()}function tt(e,t){var n="string"===typeof e?et(e):e;return n.create(t)}var nt=0,it=999,rt=1e4,ot=function(){throw new Error("Invalid change accessor")},st=function(e){function t(n,i,o,u){void 0===u&&(u=null);var l=e.call(this)||this;l._onWillDispose=l._register(new r["a"]),l.onWillDispose=l._onWillDispose.event,l._onDidChangeDecorations=l._register(new gt),l.onDidChangeDecorations=l._onDidChangeDecorations.event,l._onDidChangeLanguage=l._register(new r["a"]),l.onDidChangeLanguage=l._onDidChangeLanguage.event,l._onDidChangeLanguageConfiguration=l._register(new r["a"]),l.onDidChangeLanguageConfiguration=l._onDidChangeLanguageConfiguration.event,l._onDidChangeTokens=l._register(new r["a"]),l.onDidChangeTokens=l._onDidChangeTokens.event,l._onDidChangeOptions=l._register(new r["a"]),l.onDidChangeOptions=l._onDidChangeOptions.event,l._onDidChangeAttached=l._register(new r["a"]),l.onDidChangeAttached=l._onDidChangeAttached.event,l._eventEmitter=l._register(new At),nt++,l.id="$model"+nt,l.isForSimpleWidget=i.isForSimpleWidget,l._associatedResource="undefined"===typeof u||null===u?a["a"].parse("inmemory://model/"+nt):u,l._attachedEditorCount=0,l._buffer=tt(n,i.defaultEOL),l._options=t.resolveOptions(l._buffer,i);var d=l._buffer.getLineCount(),h=l._buffer.getValueLengthInRange(new c["a"](1,1,d,l._buffer.getLineLength(d)+1),0);return i.largeFileOptimizations?l._isTooLargeForTokenization=h>t.LARGE_FILE_SIZE_THRESHOLD||d>t.LARGE_FILE_LINE_COUNT_THRESHOLD:l._isTooLargeForTokenization=!1,l._isTooLargeForSyncing=h>t.MODEL_SYNC_LIMIT,l._versionId=1,l._alternativeVersionId=1,l._isDisposed=!1,l._isDisposing=!1,l._languageIdentifier=o||Re["a"],l._languageRegistryListener=qe["a"].onDidChange((function(e){e.languageIdentifier.id===l._languageIdentifier.id&&l._onDidChangeLanguageConfiguration.fire({})})),l._instanceId=s["L"](nt),l._lastDecorationId=0,l._decorations=Object.create(null),l._decorationsTree=new at,l._commandManager=new A(l),l._isUndoing=!1,l._isRedoing=!1,l._trimAutoWhitespaceLines=null,l._tokens=new Ue["d"],l._tokens2=new Ue["e"],l._tokenization=new Ve(l),l}return Ze(t,e),t.createFromString=function(e,n,i,r){return void 0===n&&(n=t.DEFAULT_CREATION_OPTIONS),void 0===i&&(i=null),void 0===r&&(r=null),new t(e,n,i,r)},t.resolveOptions=function(e,t){if(t.detectIndentation){var n=_(e,t.tabSize,t.insertSpaces);return new h["e"]({tabSize:n.tabSize,indentSize:n.tabSize,insertSpaces:n.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL})}return new h["e"]({tabSize:t.tabSize,indentSize:t.indentSize,insertSpaces:t.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL})},t.prototype.onDidChangeRawContentFast=function(e){return this._eventEmitter.fastEvent((function(t){return e(t.rawContentChangedEvent)}))},t.prototype.onDidChangeRawContent=function(e){return this._eventEmitter.slowEvent((function(t){return e(t.rawContentChangedEvent)}))},t.prototype.onDidChangeContentFast=function(e){return this._eventEmitter.fastEvent((function(t){return e(t.contentChangedEvent)}))},t.prototype.onDidChangeContent=function(e){return this._eventEmitter.slowEvent((function(t){return e(t.contentChangedEvent)}))},t.prototype.dispose=function(){this._isDisposing=!0,this._onWillDispose.fire(),this._languageRegistryListener.dispose(),this._tokenization.dispose(),this._isDisposed=!0,e.prototype.dispose.call(this),this._isDisposing=!1},t.prototype._assertNotDisposed=function(){if(this._isDisposed)throw new Error("Model is disposed!")},t.prototype._emitContentChangedEvent=function(e,t){this._isDisposing||this._eventEmitter.fire(new Ie(e,t))},t.prototype.setValue=function(e){if(this._assertNotDisposed(),null!==e){var t=tt(e,this._options.defaultEOL);this.setValueFromTextBuffer(t)}},t.prototype._createContentChanged2=function(e,t,n,i,r,o,s){return{changes:[{range:e,rangeOffset:t,rangeLength:n,text:i}],eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:r,isRedoing:o,isFlush:s}},t.prototype.setValueFromTextBuffer=function(e){if(this._assertNotDisposed(),null!==e){var t=this.getFullModelRange(),n=this.getValueLengthInRange(t),i=this.getLineCount(),r=this.getLineMaxColumn(i);this._buffer=e,this._increaseVersionId(),this._tokens.flush(),this._tokens2.flush(),this._decorations=Object.create(null),this._decorationsTree=new at,this._commandManager=new A(this),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new De([new Ee],this._versionId,!1,!1),this._createContentChanged2(new c["a"](1,1,i,r),0,n,this.getValue(),!1,!1,!0))}},t.prototype.setEOL=function(e){this._assertNotDisposed();var t=1===e?"\r\n":"\n";if(this._buffer.getEOL()!==t){var n=this.getFullModelRange(),i=this.getValueLengthInRange(n),r=this.getLineCount(),o=this.getLineMaxColumn(r);this._onBeforeEOLChange(),this._buffer.setEOL(t),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new De([new ke],this._versionId,!1,!1),this._createContentChanged2(new c["a"](1,1,r,o),0,i,this.getValue(),!1,!1,!1))}},t.prototype._onBeforeEOLChange=function(){var e=this.getVersionId(),t=this._decorationsTree.search(0,!1,!1,e);this._ensureNodesHaveRanges(t)},t.prototype._onAfterEOLChange=function(){for(var e=this.getVersionId(),t=this._decorationsTree.collectNodesPostOrder(),n=0,i=t.length;n<i;n++){var r=t[n],o=r.cachedAbsoluteStart-r.start,s=this._buffer.getOffsetAt(r.range.startLineNumber,r.range.startColumn),a=this._buffer.getOffsetAt(r.range.endLineNumber,r.range.endColumn);r.cachedAbsoluteStart=s,r.cachedAbsoluteEnd=a,r.cachedVersionId=e,r.start=s-o,r.end=a-o,Z(r)}},t.prototype.onBeforeAttached=function(){this._attachedEditorCount++,1===this._attachedEditorCount&&this._onDidChangeAttached.fire(void 0)},t.prototype.onBeforeDetached=function(){this._attachedEditorCount--,0===this._attachedEditorCount&&this._onDidChangeAttached.fire(void 0)},t.prototype.isAttachedToEditor=function(){return this._attachedEditorCount>0},t.prototype.getAttachedEditorCount=function(){return this._attachedEditorCount},t.prototype.isTooLargeForSyncing=function(){return this._isTooLargeForSyncing},t.prototype.isTooLargeForTokenization=function(){return this._isTooLargeForTokenization},t.prototype.isDisposed=function(){return this._isDisposed},t.prototype.isDominatedByLongLines=function(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;for(var e=0,t=0,n=this._buffer.getLineCount(),i=1;i<=n;i++){var r=this._buffer.getLineLength(i);r>=rt?t+=r:e+=r}return t>e},Object.defineProperty(t.prototype,"uri",{get:function(){return this._associatedResource},enumerable:!0,configurable:!0}),t.prototype.getOptions=function(){return this._assertNotDisposed(),this._options},t.prototype.getFormattingOptions=function(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}},t.prototype.updateOptions=function(e){this._assertNotDisposed();var t="undefined"!==typeof e.tabSize?e.tabSize:this._options.tabSize,n="undefined"!==typeof e.indentSize?e.indentSize:this._options.indentSize,i="undefined"!==typeof e.insertSpaces?e.insertSpaces:this._options.insertSpaces,r="undefined"!==typeof e.trimAutoWhitespace?e.trimAutoWhitespace:this._options.trimAutoWhitespace,o=new h["e"]({tabSize:t,indentSize:n,insertSpaces:i,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:r});if(!this._options.equals(o)){var s=this._options.createChangeEvent(o);this._options=o,this._onDidChangeOptions.fire(s)}},t.prototype.detectIndentation=function(e,t){this._assertNotDisposed();var n=_(this._buffer,t,e);this.updateOptions({insertSpaces:n.insertSpaces,tabSize:n.tabSize,indentSize:n.tabSize})},t._normalizeIndentationFromWhitespace=function(e,t,n){for(var i=0,r=0;r<e.length;r++)"\t"===e.charAt(r)?i+=t:i++;var o="";if(!n){var s=Math.floor(i/t);i%=t;for(r=0;r<s;r++)o+="\t"}for(r=0;r<i;r++)o+=" ";return o},t.normalizeIndentation=function(e,n,i){var r=s["q"](e);return-1===r&&(r=e.length),t._normalizeIndentationFromWhitespace(e.substring(0,r),n,i)+e.substring(r)},t.prototype.normalizeIndentation=function(e){return this._assertNotDisposed(),t.normalizeIndentation(e,this._options.indentSize,this._options.insertSpaces)},t.prototype.getVersionId=function(){return this._assertNotDisposed(),this._versionId},t.prototype.mightContainRTL=function(){return this._buffer.mightContainRTL()},t.prototype.mightContainNonBasicASCII=function(){return this._buffer.mightContainNonBasicASCII()},t.prototype.getAlternativeVersionId=function(){return this._assertNotDisposed(),this._alternativeVersionId},t.prototype.getOffsetAt=function(e){this._assertNotDisposed();var t=this._validatePosition(e.lineNumber,e.column,0);return this._buffer.getOffsetAt(t.lineNumber,t.column)},t.prototype.getPositionAt=function(e){this._assertNotDisposed();var t=Math.min(this._buffer.getLength(),Math.max(0,e));return this._buffer.getPositionAt(t)},t.prototype._increaseVersionId=function(){this._versionId=this._versionId+1,this._alternativeVersionId=this._versionId},t.prototype._overwriteAlternativeVersionId=function(e){this._alternativeVersionId=e},t.prototype.getValue=function(e,t){void 0===t&&(t=!1),this._assertNotDisposed();var n=this.getFullModelRange(),i=this.getValueInRange(n,e);return t?this._buffer.getBOM()+i:i},t.prototype.getValueLength=function(e,t){void 0===t&&(t=!1),this._assertNotDisposed();var n=this.getFullModelRange(),i=this.getValueLengthInRange(n,e);return t?this._buffer.getBOM().length+i:i},t.prototype.getValueInRange=function(e,t){return void 0===t&&(t=0),this._assertNotDisposed(),this._buffer.getValueInRange(this.validateRange(e),t)},t.prototype.getValueLengthInRange=function(e,t){return void 0===t&&(t=0),this._assertNotDisposed(),this._buffer.getValueLengthInRange(this.validateRange(e),t)},t.prototype.getCharacterCountInRange=function(e,t){return void 0===t&&(t=0),this._assertNotDisposed(),this._buffer.getCharacterCountInRange(this.validateRange(e),t)},t.prototype.getLineCount=function(){return this._assertNotDisposed(),this._buffer.getLineCount()},t.prototype.getLineContent=function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineContent(e)},t.prototype.getLineLength=function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(e)},t.prototype.getLinesContent=function(){return this._assertNotDisposed(),this._buffer.getLinesContent()},t.prototype.getEOL=function(){return this._assertNotDisposed(),this._buffer.getEOL()},t.prototype.getLineMinColumn=function(e){return this._assertNotDisposed(),1},t.prototype.getLineMaxColumn=function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(e)+1},t.prototype.getLineFirstNonWhitespaceColumn=function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(e)},t.prototype.getLineLastNonWhitespaceColumn=function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(e)},t.prototype._validateRangeRelaxedNoAllocations=function(e){var t,n,i=this._buffer.getLineCount(),r=e.startLineNumber,o=e.startColumn;if(r<1)t=1,n=1;else if(r>i)t=i,n=this.getLineMaxColumn(t);else if(t=0|r,o<=1)n=1;else{var s=this.getLineMaxColumn(t);n=o>=s?s:0|o}var a,u,l=e.endLineNumber,h=e.endColumn;if(l<1)a=1,u=1;else if(l>i)a=i,u=this.getLineMaxColumn(a);else if(a=0|l,h<=1)u=1;else{s=this.getLineMaxColumn(a);u=h>=s?s:0|h}return r===t&&o===n&&l===a&&h===u&&e instanceof c["a"]&&!(e instanceof d["a"])?e:new c["a"](t,n,a,u)},t.prototype._isValidPosition=function(e,t,n){if("number"!==typeof e||"number"!==typeof t)return!1;if(isNaN(e)||isNaN(t))return!1;if(e<1||t<1)return!1;if((0|e)!==e||(0|t)!==t)return!1;var i=this._buffer.getLineCount();if(e>i)return!1;if(1===t)return!0;var r=this.getLineMaxColumn(e);if(t>r)return!1;if(1===n){var o=this._buffer.getLineCharCode(e,t-2);if(s["z"](o))return!1}return!0},t.prototype._validatePosition=function(e,t,n){var i=Math.floor("number"!==typeof e||isNaN(e)?1:e),r=Math.floor("number"!==typeof t||isNaN(t)?1:t),o=this._buffer.getLineCount();if(i<1)return new l["a"](1,1);if(i>o)return new l["a"](o,this.getLineMaxColumn(o));if(r<=1)return new l["a"](i,1);var a=this.getLineMaxColumn(i);if(r>=a)return new l["a"](i,a);if(1===n){var u=this._buffer.getLineCharCode(i,r-2);if(s["z"](u))return new l["a"](i,r-1)}return new l["a"](i,r)},t.prototype.validatePosition=function(e){var t=1;return this._assertNotDisposed(),e instanceof l["a"]&&this._isValidPosition(e.lineNumber,e.column,t)?e:this._validatePosition(e.lineNumber,e.column,t)},t.prototype._isValidRange=function(e,t){var n=e.startLineNumber,i=e.startColumn,r=e.endLineNumber,o=e.endColumn;if(!this._isValidPosition(n,i,0))return!1;if(!this._isValidPosition(r,o,0))return!1;if(1===t){var a=i>1?this._buffer.getLineCharCode(n,i-2):0,u=o>1&&o<=this._buffer.getLineLength(r)?this._buffer.getLineCharCode(r,o-2):0,l=s["z"](a),c=s["z"](u);return!l&&!c}return!0},t.prototype.validateRange=function(e){var t=1;if(this._assertNotDisposed(),e instanceof c["a"]&&!(e instanceof d["a"])&&this._isValidRange(e,t))return e;var n=this._validatePosition(e.startLineNumber,e.startColumn,0),i=this._validatePosition(e.endLineNumber,e.endColumn,0),r=n.lineNumber,o=n.column,a=i.lineNumber,u=i.column;if(1===t){var l=o>1?this._buffer.getLineCharCode(r,o-2):0,h=u>1&&u<=this._buffer.getLineLength(a)?this._buffer.getLineCharCode(a,u-2):0,f=s["z"](l),p=s["z"](h);return f||p?r===a&&o===u?new c["a"](r,o-1,a,u-1):f&&p?new c["a"](r,o-1,a,u+1):f?new c["a"](r,o-1,a,u):new c["a"](r,o,a,u+1):new c["a"](r,o,a,u)}return new c["a"](r,o,a,u)},t.prototype.modifyPosition=function(e,t){this._assertNotDisposed();var n=this.getOffsetAt(e)+t;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,n)))},t.prototype.getFullModelRange=function(){this._assertNotDisposed();var e=this.getLineCount();return new c["a"](1,1,e,this.getLineMaxColumn(e))},t.prototype.findMatchesLineByLine=function(e,t,n,i){return this._buffer.findMatchesLineByLine(e,t,n,i)},t.prototype.findMatches=function(e,t,n,i,r,o,s){var a;if(void 0===s&&(s=it),this._assertNotDisposed(),a=c["a"].isIRange(t)?this.validateRange(t):this.getFullModelRange(),!n&&e.indexOf("\n")<0){var u=new pe["a"](e,n,i,r),l=u.parseSearchRequest();return l?this.findMatchesLineByLine(a,l,o,s):[]}return pe["c"].findMatches(this,new pe["a"](e,n,i,r),a,o,s)},t.prototype.findNextMatch=function(e,t,n,i,r,o){this._assertNotDisposed();var s=this.validatePosition(t);if(!n&&e.indexOf("\n")<0){var a=new pe["a"](e,n,i,r),u=a.parseSearchRequest();if(!u)return null;var l=this.getLineCount(),d=new c["a"](s.lineNumber,s.column,l,this.getLineMaxColumn(l)),h=this.findMatchesLineByLine(d,u,o,1);return pe["c"].findNextMatch(this,new pe["a"](e,n,i,r),s,o),h.length>0?h[0]:(d=new c["a"](1,1,s.lineNumber,this.getLineMaxColumn(s.lineNumber)),h=this.findMatchesLineByLine(d,u,o,1),h.length>0?h[0]:null)}return pe["c"].findNextMatch(this,new pe["a"](e,n,i,r),s,o)},t.prototype.findPreviousMatch=function(e,t,n,i,r,o){this._assertNotDisposed();var s=this.validatePosition(t);return pe["c"].findPreviousMatch(this,new pe["a"](e,n,i,r),s,o)},t.prototype.pushStackElement=function(){this._commandManager.pushStackElement()},t.prototype.pushEOL=function(e){var t="\n"===this.getEOL()?0:1;if(t!==e)try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._commandManager.pushEOL(e)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},t.prototype.pushEditOperations=function(e,t,n){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._pushEditOperations(e,t,n)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},t.prototype._pushEditOperations=function(e,t,n){var i=this;if(this._options.trimAutoWhitespace&&this._trimAutoWhitespaceLines){for(var r=t.map((function(e){return{range:i.validateRange(e.range),text:e.text}})),o=!0,s=0,a=e.length;s<a;s++){for(var u=e[s],l=!1,d=0,h=r.length;d<h;d++){var f=r[d].range,p=f.startLineNumber>u.endLineNumber,g=u.startLineNumber>f.endLineNumber;if(!p&&!g){l=!0;break}}if(!l){o=!1;break}}if(o)for(s=0,a=this._trimAutoWhitespaceLines.length;s<a;s++){var A=this._trimAutoWhitespaceLines[s],m=this.getLineMaxColumn(A),v=!0;for(d=0,h=r.length;d<h;d++){f=r[d].range;var _=r[d].text;if(!(A<f.startLineNumber||A>f.endLineNumber)&&(!(A===f.startLineNumber&&f.startColumn===m&&f.isEmpty()&&_&&_.length>0&&"\n"===_.charAt(0))&&!(A===f.startLineNumber&&1===f.startColumn&&f.isEmpty()&&_&&_.length>0&&"\n"===_.charAt(_.length-1)))){v=!1;break}}v&&t.push({range:new c["a"](A,1,A,m),text:null})}this._trimAutoWhitespaceLines=null}return this._commandManager.pushEditOperation(e,t,n)},t.prototype.applyEdits=function(e){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._applyEdits(e)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},t.prototype._applyEdits=function(e){for(var t=0,n=e.length;t<n;t++)e[t].range=this.validateRange(e[t].range);var i=this._buffer.getLineCount(),r=this._buffer.applyEdits(e,this._options.trimAutoWhitespace),o=this._buffer.getLineCount(),s=r.changes;if(this._trimAutoWhitespaceLines=r.trimAutoWhitespaceLineNumbers,0!==s.length){var a=[],u=i;for(t=0,n=s.length;t<n;t++){var l=s[t],c=Object(Ue["f"])(l.text),d=c[0],h=c[1],f=c[2];this._tokens.acceptEdit(l.range,d,h),this._tokens2.acceptEdit(l.range,d,h,f,l.text.length>0?l.text.charCodeAt(0):0),this._onDidChangeDecorations.fire(),this._decorationsTree.acceptReplace(l.rangeOffset,l.rangeLength,l.text.length,l.forceMoveMarkers);for(var p=l.range.startLineNumber,g=l.range.endLineNumber,A=g-p,m=d,v=Math.min(A,m),_=m-A,y=v;y>=0;y--){var b=p+y,w=o-u-_+b;a.push(new xe(b,this.getLineContent(w)))}if(v<A){var C=p+v;a.push(new Oe(C+1,g))}if(v<m){for(var S=p+v,N=m-v,L=o-u-N+S+1,E=[],x=0;x<N;x++){var O=L+x;E[O-L]=this.getLineContent(O)}a.push(new Be(S+1,p+m,E))}u+=_}this._increaseVersionId(),this._emitContentChangedEvent(new De(a,this.getVersionId(),this._isUndoing,this._isRedoing),{changes:s,eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:this._isUndoing,isRedoing:this._isRedoing,isFlush:!1})}return r.reverseEdits},t.prototype._undo=function(){this._isUndoing=!0;var e=this._commandManager.undo();return this._isUndoing=!1,e?(this._overwriteAlternativeVersionId(e.recordedVersionId),e.selections):null},t.prototype.undo=function(){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._undo()}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},t.prototype.canUndo=function(){return this._commandManager.canUndo()},t.prototype._redo=function(){this._isRedoing=!0;var e=this._commandManager.redo();return this._isRedoing=!1,e?(this._overwriteAlternativeVersionId(e.recordedVersionId),e.selections):null},t.prototype.redo=function(){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._redo()}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},t.prototype.canRedo=function(){return this._commandManager.canRedo()},t.prototype.changeDecorations=function(e,t){void 0===t&&(t=0),this._assertNotDisposed();try{return this._onDidChangeDecorations.beginDeferredEmit(),this._changeDecorations(t,e)}finally{this._onDidChangeDecorations.endDeferredEmit()}},t.prototype._changeDecorations=function(e,t){var n=this,r={addDecoration:function(t,i){return n._onDidChangeDecorations.fire(),n._deltaDecorationsImpl(e,[],[{range:t,options:i}])[0]},changeDecoration:function(e,t){n._onDidChangeDecorations.fire(),n._changeDecorationImpl(e,t)},changeDecorationOptions:function(e,t){n._onDidChangeDecorations.fire(),n._changeDecorationOptionsImpl(e,pt(t))},removeDecoration:function(t){n._onDidChangeDecorations.fire(),n._deltaDecorationsImpl(e,[t],[])},deltaDecorations:function(t,i){return 0===t.length&&0===i.length?[]:(n._onDidChangeDecorations.fire(),n._deltaDecorationsImpl(e,t,i))}},o=null;try{o=t(r)}catch(s){Object(i["e"])(s)}return r.addDecoration=ot,r.changeDecoration=ot,r.changeDecorationOptions=ot,r.removeDecoration=ot,r.deltaDecorations=ot,o},t.prototype.deltaDecorations=function(e,t,n){if(void 0===n&&(n=0),this._assertNotDisposed(),e||(e=[]),0===e.length&&0===t.length)return[];try{return this._onDidChangeDecorations.beginDeferredEmit(),this._onDidChangeDecorations.fire(),this._deltaDecorationsImpl(n,e,t)}finally{this._onDidChangeDecorations.endDeferredEmit()}},t.prototype._getTrackedRange=function(e){return this.getDecorationRange(e)},t.prototype._setTrackedRange=function(e,t,n){var i=e?this._decorations[e]:null;if(!i)return t?this._deltaDecorationsImpl(0,[],[{range:t,options:ft[n]}])[0]:null;if(!t)return this._decorationsTree.delete(i),delete this._decorations[i.id],null;var r=this._validateRangeRelaxedNoAllocations(t),o=this._buffer.getOffsetAt(r.startLineNumber,r.startColumn),s=this._buffer.getOffsetAt(r.endLineNumber,r.endColumn);return this._decorationsTree.delete(i),i.reset(this.getVersionId(),o,s,r),i.setOptions(ft[n]),this._decorationsTree.insert(i),i.id},t.prototype.removeAllDecorationsWithOwnerId=function(e){if(!this._isDisposed)for(var t=this._decorationsTree.collectNodesFromOwner(e),n=0,i=t.length;n<i;n++){var r=t[n];this._decorationsTree.delete(r),delete this._decorations[r.id]}},t.prototype.getDecorationOptions=function(e){var t=this._decorations[e];return t?t.options:null},t.prototype.getDecorationRange=function(e){var t=this._decorations[e];if(!t)return null;var n=this.getVersionId();return t.cachedVersionId!==n&&this._decorationsTree.resolveNode(t,n),null===t.range&&(t.range=this._getRangeAt(t.cachedAbsoluteStart,t.cachedAbsoluteEnd)),t.range},t.prototype.getLineDecorations=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=!1),e<1||e>this.getLineCount()?[]:this.getLinesDecorations(e,e,t,n)},t.prototype.getLinesDecorations=function(e,t,n,i){void 0===n&&(n=0),void 0===i&&(i=!1);var r=this.getLineCount(),o=Math.min(r,Math.max(1,e)),s=Math.min(r,Math.max(1,t)),a=this.getLineMaxColumn(s);return this._getDecorationsInRange(new c["a"](o,1,s,a),n,i)},t.prototype.getDecorationsInRange=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=!1);var i=this.validateRange(e);return this._getDecorationsInRange(i,t,n)},t.prototype.getOverviewRulerDecorations=function(e,t){void 0===e&&(e=0),void 0===t&&(t=!1);var n=this.getVersionId(),i=this._decorationsTree.search(e,t,!0,n);return this._ensureNodesHaveRanges(i)},t.prototype.getAllDecorations=function(e,t){void 0===e&&(e=0),void 0===t&&(t=!1);var n=this.getVersionId(),i=this._decorationsTree.search(e,t,!1,n);return this._ensureNodesHaveRanges(i)},t.prototype._getDecorationsInRange=function(e,t,n){var i=this._buffer.getOffsetAt(e.startLineNumber,e.startColumn),r=this._buffer.getOffsetAt(e.endLineNumber,e.endColumn),o=this.getVersionId(),s=this._decorationsTree.intervalSearch(i,r,t,n,o);return this._ensureNodesHaveRanges(s)},t.prototype._ensureNodesHaveRanges=function(e){for(var t=0,n=e.length;t<n;t++){var i=e[t];null===i.range&&(i.range=this._getRangeAt(i.cachedAbsoluteStart,i.cachedAbsoluteEnd))}return e},t.prototype._getRangeAt=function(e,t){return this._buffer.getRangeAt(e,t-e)},t.prototype._changeDecorationImpl=function(e,t){var n=this._decorations[e];if(n){var i=this._validateRangeRelaxedNoAllocations(t),r=this._buffer.getOffsetAt(i.startLineNumber,i.startColumn),o=this._buffer.getOffsetAt(i.endLineNumber,i.endColumn);this._decorationsTree.delete(n),n.reset(this.getVersionId(),r,o,i),this._decorationsTree.insert(n)}},t.prototype._changeDecorationOptionsImpl=function(e,t){var n=this._decorations[e];if(n){var i=!(!n.options.overviewRuler||!n.options.overviewRuler.color),r=!(!t.overviewRuler||!t.overviewRuler.color);i!==r?(this._decorationsTree.delete(n),n.setOptions(t),this._decorationsTree.insert(n)):n.setOptions(t)}},t.prototype._deltaDecorationsImpl=function(e,t,n){var i=this.getVersionId(),r=t.length,o=0,s=n.length,a=0,u=new Array(s);while(o<r||a<s){var l=null;if(o<r){do{l=this._decorations[t[o++]]}while(!l&&o<r);l&&this._decorationsTree.delete(l)}if(a<s){if(!l){var c=++this._lastDecorationId,d=this._instanceId+";"+c;l=new D(d,0,0),this._decorations[d]=l}var h=n[a],f=this._validateRangeRelaxedNoAllocations(h.range),p=pt(h.options),g=this._buffer.getOffsetAt(f.startLineNumber,f.startColumn),A=this._buffer.getOffsetAt(f.endLineNumber,f.endColumn);l.ownerId=e,l.reset(i,g,A,f),l.setOptions(p),this._decorationsTree.insert(l),u[a]=l.id,a++}else l&&delete this._decorations[l.id]}return u},t.prototype.setLineTokens=function(e,t){if(e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");this._tokens.setTokens(this._languageIdentifier.id,e-1,this._buffer.getLineLength(e),t)},t.prototype.setTokens=function(e){if(0!==e.length){for(var t=[],n=0,i=e.length;n<i;n++){var r=e[n];t.push({fromLineNumber:r.startLineNumber,toLineNumber:r.startLineNumber+r.tokens.length-1});for(var o=0,s=r.tokens.length;o<s;o++)this.setLineTokens(r.startLineNumber+o,r.tokens[o])}this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,ranges:t})}},t.prototype.setSemanticTokens=function(e){this._tokens2.set(e),this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,ranges:[{fromLineNumber:1,toLineNumber:this.getLineCount()}]})},t.prototype.tokenizeViewport=function(e,t){e=Math.max(1,e),t=Math.min(this._buffer.getLineCount(),t),this._tokenization.tokenizeViewport(e,t)},t.prototype.clearTokens=function(){this._tokens.flush(),this._emitModelTokensChangedEvent({tokenizationSupportChanged:!0,ranges:[{fromLineNumber:1,toLineNumber:this._buffer.getLineCount()}]})},t.prototype._emitModelTokensChangedEvent=function(e){this._isDisposing||this._onDidChangeTokens.fire(e)},t.prototype.resetTokenization=function(){this._tokenization.reset()},t.prototype.forceTokenization=function(e){if(e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");this._tokenization.forceTokenization(e)},t.prototype.isCheapToTokenize=function(e){return this._tokenization.isCheapToTokenize(e)},t.prototype.tokenizeIfCheap=function(e){this.isCheapToTokenize(e)&&this.forceTokenization(e)},t.prototype.getLineTokens=function(e){if(e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._getLineTokens(e)},t.prototype._getLineTokens=function(e){var t=this.getLineContent(e),n=this._tokens.getTokens(this._languageIdentifier.id,e-1,t);return this._tokens2.addSemanticTokens(e,n)},t.prototype.getLanguageIdentifier=function(){return this._languageIdentifier},t.prototype.getModeId=function(){return this._languageIdentifier.language},t.prototype.setMode=function(e){if(this._languageIdentifier.id!==e.id){var t={oldLanguage:this._languageIdentifier.language,newLanguage:e.language};this._languageIdentifier=e,this._onDidChangeLanguage.fire(t),this._onDidChangeLanguageConfiguration.fire({})}},t.prototype.getLanguageIdAtPosition=function(e,t){var n=this.validatePosition(new l["a"](e,t)),i=this.getLineTokens(n.lineNumber);return i.getLanguageId(i.findTokenIndexAtOffset(n.column-1))},t.prototype.getWordAtPosition=function(e){this._assertNotDisposed();var n=this.validatePosition(e),i=this.getLineContent(n.lineNumber),r=this._getLineTokens(n.lineNumber),o=r.findTokenIndexAtOffset(n.column-1),s=t._findLanguageBoundaries(r,o),a=s[0],u=s[1],l=Object(Ke["d"])(n.column,qe["a"].getWordDefinition(r.getLanguageId(o)),i.substring(a,u),a);if(l&&l.startColumn<=e.column&&e.column<=l.endColumn)return l;if(o>0&&a===n.column-1){var c=t._findLanguageBoundaries(r,o-1),d=c[0],h=c[1],f=Object(Ke["d"])(n.column,qe["a"].getWordDefinition(r.getLanguageId(o-1)),i.substring(d,h),d);if(f&&f.startColumn<=e.column&&e.column<=f.endColumn)return f}return null},t._findLanguageBoundaries=function(e,t){for(var n=e.getLanguageId(t),i=0,r=t;r>=0&&e.getLanguageId(r)===n;r--)i=e.getStartOffset(r);for(var o=e.getLineContent().length,s=(r=t,e.getCount());r<s&&e.getLanguageId(r)===n;r++)o=e.getEndOffset(r);return[i,o]},t.prototype.getWordUntilPosition=function(e){var t=this.getWordAtPosition(e);return t?{word:t.word.substr(0,e.column-t.startColumn),startColumn:t.startColumn,endColumn:e.column}:{word:"",startColumn:e.column,endColumn:e.column}},t.prototype.findMatchingBracketUp=function(e,t){var n=e.toLowerCase(),i=this.validatePosition(t),r=this._getLineTokens(i.lineNumber),o=r.getLanguageId(r.findTokenIndexAtOffset(i.column-1)),s=qe["a"].getBracketsSupport(o);if(!s)return null;var a=s.textIsBracket[n];return a?this._findMatchingBracketUp(a,i):null},t.prototype.matchBracket=function(e){return this._matchBracket(this.validatePosition(e))},t.prototype._matchBracket=function(e){var t=e.lineNumber,n=this._getLineTokens(t),i=n.getCount(),r=this._buffer.getLineContent(t),o=n.findTokenIndexAtOffset(e.column-1);if(o<0)return null;var s=qe["a"].getBracketsSupport(n.getLanguageId(o));if(s&&!Object(Ge["b"])(n.getStandardTokenType(o))){for(var a=Math.max(0,e.column-1-s.maxBracketLength),u=o-1;u>=0;u--){var l=n.getEndOffset(u);if(l<=a)break;Object(Ge["b"])(n.getStandardTokenType(u))&&(a=l)}var c=Math.min(r.length,e.column-1+s.maxBracketLength),d=null;while(1){var h=Xe["a"].findNextBracketInRange(s.forwardRegex,t,r,a,c);if(!h)break;if(h.startColumn<=e.column&&e.column<=h.endColumn){var f=r.substring(h.startColumn-1,h.endColumn-1).toLowerCase(),p=this._matchFoundBracket(h,s.textIsBracket[f],s.textIsOpenBracket[f]);p&&(d=p)}a=h.endColumn-1}if(d)return d}if(o>0&&n.getStartOffset(o)===e.column-1){var g=o-1,A=qe["a"].getBracketsSupport(n.getLanguageId(g));if(A&&!Object(Ge["b"])(n.getStandardTokenType(g))){for(a=Math.max(0,e.column-1-A.maxBracketLength),c=Math.min(r.length,e.column-1+A.maxBracketLength),u=g+1;u<i;u++){var m=n.getStartOffset(u);if(m>=c)break;Object(Ge["b"])(n.getStandardTokenType(u))&&(c=m)}h=Xe["a"].findPrevBracketInRange(A.reversedRegex,t,r,a,c);if(h&&h.startColumn<=e.column&&e.column<=h.endColumn){f=r.substring(h.startColumn-1,h.endColumn-1).toLowerCase(),p=this._matchFoundBracket(h,A.textIsBracket[f],A.textIsOpenBracket[f]);if(p)return p}}}return null},t.prototype._matchFoundBracket=function(e,t,n){if(!t)return null;if(n){var i=this._findMatchingBracketDown(t,e.getEndPosition());if(i)return[e,i]}else{i=this._findMatchingBracketUp(t,e.getStartPosition());if(i)return[e,i]}return null},t.prototype._findMatchingBracketUp=function(e,t){for(var n=e.languageIdentifier.id,i=e.reversedRegex,r=-1,o=function(t,n,o,s){while(1){var a=Xe["a"].findPrevBracketInRange(i,t,n,o,s);if(!a)break;var u=n.substring(a.startColumn-1,a.endColumn-1).toLowerCase();if(e.isOpen(u)?r++:e.isClose(u)&&r--,0===r)return a;s=a.startColumn-1}return null},s=t.lineNumber;s>=1;s--){var a=this._getLineTokens(s),u=a.getCount(),l=this._buffer.getLineContent(s),c=u-1,d=l.length,h=l.length;s===t.lineNumber&&(c=a.findTokenIndexAtOffset(t.column-1),d=t.column-1,h=t.column-1);for(var f=!0;c>=0;c--){var p=a.getLanguageId(c)===n&&!Object(Ge["b"])(a.getStandardTokenType(c));if(p)f?d=a.getStartOffset(c):(d=a.getStartOffset(c),h=a.getEndOffset(c));else if(f&&d!==h){var g=o(s,l,d,h);if(g)return g}f=p}if(f&&d!==h){g=o(s,l,d,h);if(g)return g}}return null},t.prototype._findMatchingBracketDown=function(e,t){for(var n=e.languageIdentifier.id,i=e.forwardRegex,r=1,o=function(t,n,o,s){while(1){var a=Xe["a"].findNextBracketInRange(i,t,n,o,s);if(!a)break;var u=n.substring(a.startColumn-1,a.endColumn-1).toLowerCase();if(e.isOpen(u)?r++:e.isClose(u)&&r--,0===r)return a;o=a.endColumn-1}return null},s=this.getLineCount(),a=t.lineNumber;a<=s;a++){var u=this._getLineTokens(a),l=u.getCount(),c=this._buffer.getLineContent(a),d=0,h=0,f=0;a===t.lineNumber&&(d=u.findTokenIndexAtOffset(t.column-1),h=t.column-1,f=t.column-1);for(var p=!0;d<l;d++){var g=u.getLanguageId(d)===n&&!Object(Ge["b"])(u.getStandardTokenType(d));if(g)p||(h=u.getStartOffset(d)),f=u.getEndOffset(d);else if(p&&h!==f){var A=o(a,c,h,f);if(A)return A}p=g}if(p&&h!==f){A=o(a,c,h,f);if(A)return A}}return null},t.prototype.findPrevBracket=function(e){for(var t=this.validatePosition(e),n=-1,i=null,r=t.lineNumber;r>=1;r--){var o=this._getLineTokens(r),s=o.getCount(),a=this._buffer.getLineContent(r),u=s-1,l=a.length,c=a.length;if(r===t.lineNumber){u=o.findTokenIndexAtOffset(t.column-1),l=t.column-1,c=t.column-1;var d=o.getLanguageId(u);n!==d&&(n=d,i=qe["a"].getBracketsSupport(n))}for(var h=!0;u>=0;u--){d=o.getLanguageId(u);if(n!==d){if(i&&h&&l!==c){var f=Xe["a"].findPrevBracketInRange(i.reversedRegex,r,a,l,c);if(f)return this._toFoundBracket(i,f);h=!1}n=d,i=qe["a"].getBracketsSupport(n)}var p=!!i&&!Object(Ge["b"])(o.getStandardTokenType(u));if(p)h?l=o.getStartOffset(u):(l=o.getStartOffset(u),c=o.getEndOffset(u));else if(i&&h&&l!==c){f=Xe["a"].findPrevBracketInRange(i.reversedRegex,r,a,l,c);if(f)return this._toFoundBracket(i,f)}h=p}if(i&&h&&l!==c){f=Xe["a"].findPrevBracketInRange(i.reversedRegex,r,a,l,c);if(f)return this._toFoundBracket(i,f)}}return null},t.prototype.findNextBracket=function(e){for(var t=this.validatePosition(e),n=this.getLineCount(),i=-1,r=null,o=t.lineNumber;o<=n;o++){var s=this._getLineTokens(o),a=s.getCount(),u=this._buffer.getLineContent(o),l=0,c=0,d=0;if(o===t.lineNumber){l=s.findTokenIndexAtOffset(t.column-1),c=t.column-1,d=t.column-1;var h=s.getLanguageId(l);i!==h&&(i=h,r=qe["a"].getBracketsSupport(i))}for(var f=!0;l<a;l++){h=s.getLanguageId(l);if(i!==h){if(r&&f&&c!==d){var p=Xe["a"].findNextBracketInRange(r.forwardRegex,o,u,c,d);if(p)return this._toFoundBracket(r,p);f=!1}i=h,r=qe["a"].getBracketsSupport(i)}var g=!!r&&!Object(Ge["b"])(s.getStandardTokenType(l));if(g)f||(c=s.getStartOffset(l)),d=s.getEndOffset(l);else if(r&&f&&c!==d){p=Xe["a"].findNextBracketInRange(r.forwardRegex,o,u,c,d);if(p)return this._toFoundBracket(r,p)}f=g}if(r&&f&&c!==d){p=Xe["a"].findNextBracketInRange(r.forwardRegex,o,u,c,d);if(p)return this._toFoundBracket(r,p)}}return null},t.prototype.findEnclosingBrackets=function(e,t){var n=this;void 0===t&&(t=1073741824);for(var i=this.validatePosition(e),r=this.getLineCount(),o=new Map,s=[],a=function(e,t){if(!o.has(e)){for(var n=[],i=0,r=t?t.brackets.length:0;i<r;i++)n[i]=0;o.set(e,n)}s=o.get(e)},u=function(e,t,i,r,o){while(1){var a=Xe["a"].findNextBracketInRange(e.forwardRegex,t,i,r,o);if(!a)break;var u=i.substring(a.startColumn-1,a.endColumn-1).toLowerCase(),l=e.textIsBracket[u];if(l&&(l.isOpen(u)?s[l.index]++:l.isClose(u)&&s[l.index]--,-1===s[l.index]))return n._matchFoundBracket(a,l,!1);r=a.endColumn-1}return null},l=-1,c=null,d=Date.now(),h=i.lineNumber;h<=r;h++){var f=Date.now()-d;if(f>t)return null;var p=this._getLineTokens(h),g=p.getCount(),A=this._buffer.getLineContent(h),m=0,v=0,_=0;if(h===i.lineNumber){m=p.findTokenIndexAtOffset(i.column-1),v=i.column-1,_=i.column-1;var y=p.getLanguageId(m);l!==y&&(l=y,c=qe["a"].getBracketsSupport(l),a(l,c))}for(var b=!0;m<g;m++){y=p.getLanguageId(m);if(l!==y){if(c&&b&&v!==_){var w=u(c,h,A,v,_);if(w)return w;b=!1}l=y,c=qe["a"].getBracketsSupport(l),a(l,c)}var C=!!c&&!Object(Ge["b"])(p.getStandardTokenType(m));if(C)b||(v=p.getStartOffset(m)),_=p.getEndOffset(m);else if(c&&b&&v!==_){w=u(c,h,A,v,_);if(w)return w}b=C}if(c&&b&&v!==_){w=u(c,h,A,v,_);if(w)return w}}return null},t.prototype._toFoundBracket=function(e,t){if(!t)return null;var n=this.getValueInRange(t);n=n.toLowerCase();var i=e.textIsBracket[n];return i?{range:t,open:i.open,close:i.close,isOpen:e.textIsOpenBracket[n]}:null},t.computeIndentLevel=function(e,t){var n=0,i=0,r=e.length;while(i<r){var o=e.charCodeAt(i);if(32===o)n++;else{if(9!==o)break;n=n-n%t+t}i++}return i===r?-1:n},t.prototype._computeIndentLevel=function(e){return t.computeIndentLevel(this._buffer.getLineContent(e+1),this._options.tabSize)},t.prototype.getActiveIndentGuide=function(e,t,n){var i=this;this._assertNotDisposed();var r=this.getLineCount();if(e<1||e>r)throw new Error("Illegal value for lineNumber");for(var o=qe["a"].getFoldingRules(this._languageIdentifier.id),s=Boolean(o&&o.offSide),a=-2,u=-1,l=-2,c=-1,d=function(e){if(-1!==a&&(-2===a||a>e-1)){a=-1,u=-1;for(var t=e-2;t>=0;t--){var n=i._computeIndentLevel(t);if(n>=0){a=t,u=n;break}}}if(-2===l){l=-1,c=-1;for(t=e;t<r;t++){var o=i._computeIndentLevel(t);if(o>=0){l=t,c=o;break}}}},h=-2,f=-1,p=-2,g=-1,A=function(e){if(-2===h){h=-1,f=-1;for(var t=e-2;t>=0;t--){var n=i._computeIndentLevel(t);if(n>=0){h=t,f=n;break}}}if(-1!==p&&(-2===p||p<e-1)){p=-1,g=-1;for(t=e;t<r;t++){var o=i._computeIndentLevel(t);if(o>=0){p=t,g=o;break}}}},m=0,v=!0,_=0,y=!0,b=0,w=0;v||y;w++){var C=e-w,S=e+w;if(0!==w&&(C<1||C<t)&&(v=!1),0!==w&&(S>r||S>n)&&(y=!1),w>5e4&&(v=!1,y=!1),v){var N=void 0,L=this._computeIndentLevel(C-1);if(L>=0?(l=C-1,c=L,N=Math.ceil(L/this._options.indentSize)):(d(C),N=this._getIndentLevelForWhitespaceLine(s,u,c)),0===w){if(m=C,_=S,b=N,0===b)return{startLineNumber:m,endLineNumber:_,indent:b};continue}N>=b?m=C:v=!1}if(y){var E=void 0;L=this._computeIndentLevel(S-1);L>=0?(h=S-1,f=L,E=Math.ceil(L/this._options.indentSize)):(A(S),E=this._getIndentLevelForWhitespaceLine(s,f,g)),E>=b?_=S:y=!1}}return{startLineNumber:m,endLineNumber:_,indent:b}},t.prototype.getLinesIndentGuides=function(e,t){this._assertNotDisposed();var n=this.getLineCount();if(e<1||e>n)throw new Error("Illegal value for startLineNumber");if(t<1||t>n)throw new Error("Illegal value for endLineNumber");for(var i=qe["a"].getFoldingRules(this._languageIdentifier.id),r=Boolean(i&&i.offSide),o=new Array(t-e+1),s=-2,a=-1,u=-2,l=-1,c=e;c<=t;c++){var d=c-e,h=this._computeIndentLevel(c-1);if(h>=0)s=c-1,a=h,o[d]=Math.ceil(h/this._options.indentSize);else{if(-2===s){s=-1,a=-1;for(var f=c-2;f>=0;f--){var p=this._computeIndentLevel(f);if(p>=0){s=f,a=p;break}}}if(-1!==u&&(-2===u||u<c-1)){u=-1,l=-1;for(f=c;f<n;f++){p=this._computeIndentLevel(f);if(p>=0){u=f,l=p;break}}}o[d]=this._getIndentLevelForWhitespaceLine(r,a,l)}}return o},t.prototype._getIndentLevelForWhitespaceLine=function(e,t,n){return-1===t||-1===n?0:t<n?1+Math.floor(t/this._options.indentSize):t===n||e?Math.ceil(n/this._options.indentSize):1+Math.floor(n/this._options.indentSize)},t.MODEL_SYNC_LIMIT=52428800,t.LARGE_FILE_SIZE_THRESHOLD=20971520,t.LARGE_FILE_LINE_COUNT_THRESHOLD=3e5,t.DEFAULT_CREATION_OPTIONS={isForSimpleWidget:!1,tabSize:u["c"].tabSize,indentSize:u["c"].indentSize,insertSpaces:u["c"].insertSpaces,detectIndentation:!1,defaultEOL:1,trimAutoWhitespace:u["c"].trimAutoWhitespace,largeFileOptimizations:u["c"].largeFileOptimizations},t}(o["a"]),at=function(){function e(){this._decorationsTree0=new M,this._decorationsTree1=new M}return e.prototype.intervalSearch=function(e,t,n,i,r){var o=this._decorationsTree0.intervalSearch(e,t,n,i,r),s=this._decorationsTree1.intervalSearch(e,t,n,i,r);return o.concat(s)},e.prototype.search=function(e,t,n,i){if(n)return this._decorationsTree1.search(e,t,i);var r=this._decorationsTree0.search(e,t,i),o=this._decorationsTree1.search(e,t,i);return r.concat(o)},e.prototype.collectNodesFromOwner=function(e){var t=this._decorationsTree0.collectNodesFromOwner(e),n=this._decorationsTree1.collectNodesFromOwner(e);return t.concat(n)},e.prototype.collectNodesPostOrder=function(){var e=this._decorationsTree0.collectNodesPostOrder(),t=this._decorationsTree1.collectNodesPostOrder();return e.concat(t)},e.prototype.insert=function(e){L(e)?this._decorationsTree1.insert(e):this._decorationsTree0.insert(e)},e.prototype.delete=function(e){L(e)?this._decorationsTree1.delete(e):this._decorationsTree0.delete(e)},e.prototype.resolveNode=function(e,t){L(e)?this._decorationsTree1.resolveNode(e,t):this._decorationsTree0.resolveNode(e,t)},e.prototype.acceptReplace=function(e,t,n,i){this._decorationsTree0.acceptReplace(e,t,n,i),this._decorationsTree1.acceptReplace(e,t,n,i)},e}();function ut(e){return e.replace(/[^a-z0-9\-_]/gi," ")}var lt=function(){function e(e){this.color=e.color||"",this.darkColor=e.darkColor||""}return e}(),ct=function(e){function t(t){var n=e.call(this,t)||this;return n._resolvedColor=null,n.position="number"===typeof t.position?t.position:h["d"].Center,n}return Ze(t,e),t.prototype.getColor=function(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor},t.prototype.invalidateCachedColor=function(){this._resolvedColor=null},t.prototype._resolveColor=function(e,t){if("string"===typeof e)return e;var n=e?t.getColor(e.id):null;return n?n.toString():""},t}(lt),dt=function(e){function t(t){var n=e.call(this,t)||this;return n.position=t.position,n}return Ze(t,e),t.prototype.getColor=function(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor},t.prototype.invalidateCachedColor=function(){this._resolvedColor=void 0},t.prototype._resolveColor=function(e,t){return"string"===typeof e?Je["a"].fromHex(e):t.getColor(e.id)},t}(lt),ht=function(){function e(e){this.stickiness=e.stickiness||0,this.zIndex=e.zIndex||0,this.className=e.className?ut(e.className):null,this.hoverMessage=Object(Ye["o"])(e.hoverMessage),this.glyphMarginHoverMessage=Object(Ye["o"])(e.glyphMarginHoverMessage),this.isWholeLine=e.isWholeLine||!1,this.showIfCollapsed=e.showIfCollapsed||!1,this.collapseOnReplaceEdit=e.collapseOnReplaceEdit||!1,this.overviewRuler=e.overviewRuler?new ct(e.overviewRuler):null,this.minimap=e.minimap?new dt(e.minimap):null,this.glyphMarginClassName=e.glyphMarginClassName?ut(e.glyphMarginClassName):null,this.linesDecorationsClassName=e.linesDecorationsClassName?ut(e.linesDecorationsClassName):null,this.marginClassName=e.marginClassName?ut(e.marginClassName):null,this.inlineClassName=e.inlineClassName?ut(e.inlineClassName):null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.beforeContentClassName=e.beforeContentClassName?ut(e.beforeContentClassName):null,this.afterContentClassName=e.afterContentClassName?ut(e.afterContentClassName):null}return e.register=function(t){return new e(t)},e.createDynamic=function(t){return new e(t)},e}();ht.EMPTY=ht.register({});var ft=[ht.register({stickiness:0}),ht.register({stickiness:1}),ht.register({stickiness:2}),ht.register({stickiness:3})];function pt(e){return e instanceof ht?e:ht.createDynamic(e)}var gt=function(e){function t(){var t=e.call(this)||this;return t._actual=t._register(new r["a"]),t.event=t._actual.event,t._deferredCnt=0,t._shouldFire=!1,t}return Ze(t,e),t.prototype.beginDeferredEmit=function(){this._deferredCnt++},t.prototype.endDeferredEmit=function(){this._deferredCnt--,0===this._deferredCnt&&this._shouldFire&&(this._shouldFire=!1,this._actual.fire({}))},t.prototype.fire=function(){this._shouldFire=!0},t}(o["a"]),At=function(e){function t(){var t=e.call(this)||this;return t._fastEmitter=t._register(new r["a"]),t.fastEvent=t._fastEmitter.event,t._slowEmitter=t._register(new r["a"]),t.slowEvent=t._slowEmitter.event,t._deferredCnt=0,t._deferredEvent=null,t}return Ze(t,e),t.prototype.beginDeferredEmit=function(){this._deferredCnt++},t.prototype.endDeferredEmit=function(){if(this._deferredCnt--,0===this._deferredCnt&&null!==this._deferredEvent){var e=this._deferredEvent;this._deferredEvent=null,this._fastEmitter.fire(e),this._slowEmitter.fire(e)}},t.prototype.fire=function(e){this._deferredCnt>0?this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(e):this._deferredEvent=e:(this._fastEmitter.fire(e),this._slowEmitter.fire(e))},t}(o["a"])},tXSY:function(e,t,n){"use strict";n.r(t),n.d(t,"SnippetController2",(function(){return K}));var i=n("pmY6"),r=n("N0LK"),o=n("sswD"),s=n("aokT"),a=n("gCVg"),u=n("wQH0"),l=n("QVNv"),c=n("T8No"),d=n("09fa"),h=n("6OMU"),f=(n("dFcq"),n("0/Sa")),p=n("tX9W"),g=n("9XeP"),A=n("EWX2"),m=n("Cg/j"),v=n("uACm"),_=n("3/fG"),y=n("MrjW"),b=n("gslv"),w=n("cMvZ"),C=n("bY76"),S="code-workspace";function N(e){return e instanceof C["a"]}function L(e){return e.configuration?{configPath:e.configuration,id:e.id}:1===e.folders.length?e.folders[0].uri:void 0}var E=n("3rx1"),x=function(){function e(e){this._delegates=e}return e.prototype.resolve=function(e){for(var t=0,n=this._delegates;t<n.length;t++){var i=n[t],r=i.resolve(e);if(void 0!==r)return r}},e}(),O=function(){function e(e,t){this._model=e,this._selection=t}return e.prototype.resolve=function(e){var t=e.name;if("SELECTION"===t||"TM_SELECTED_TEXT"===t){var n=this._model.getValueInRange(this._selection)||void 0;if(n&&this._selection.startLineNumber!==this._selection.endLineNumber&&e.snippet){var i=this._model.getLineContent(this._selection.startLineNumber),o=Object(r["t"])(i,0,this._selection.startColumn-1),s=o;e.snippet.walk((function(t){return t!==e&&(t instanceof v["d"]&&(s=Object(r["t"])(t.value.split(/\r\n|\r|\n/).pop())),!0)}));var a=Object(r["c"])(s,o);n=n.replace(/(\r\n|\r|\n)(.*)/g,(function(e,t,n){return""+t+s.substr(a)+n}))}return n}if("TM_CURRENT_LINE"===t)return this._model.getLineContent(this._selection.positionLineNumber);if("TM_CURRENT_WORD"===t){var u=this._model.getWordAtPosition({lineNumber:this._selection.positionLineNumber,column:this._selection.positionColumn});return u&&u.word||void 0}return"TM_LINE_INDEX"===t?String(this._selection.positionLineNumber-1):"TM_LINE_NUMBER"===t?String(this._selection.positionLineNumber):void 0},e}(),B=function(){function e(e,t){this._labelService=e,this._model=t}return e.prototype.resolve=function(e){var t=e.name;if("TM_FILENAME"===t)return y["basename"](this._model.uri.fsPath);if("TM_FILENAME_BASE"===t){var n=y["basename"](this._model.uri.fsPath),i=n.lastIndexOf(".");return i<=0?n:n.slice(0,i)}return"TM_DIRECTORY"===t&&this._labelService?"."===y["dirname"](this._model.uri.fsPath)?"":this._labelService.getUriLabel(Object(b["d"])(this._model.uri)):"TM_FILEPATH"===t&&this._labelService?this._labelService.getUriLabel(this._model.uri):void 0},e}(),k=function(){function e(e,t,n,i){this._readClipboardText=e,this._selectionIdx=t,this._selectionCount=n,this._spread=i}return e.prototype.resolve=function(e){if("CLIPBOARD"===e.name){var t=this._readClipboardText();if(t){if(this._spread){var n=t.split(/\r\n|\n|\r/).filter((function(e){return!Object(r["x"])(e)}));if(n.length===this._selectionCount)return n[this._selectionIdx]}return t}}},e}(),D=function(){function e(e){this._model=e}return e.prototype.resolve=function(e){var t=e.name,n=this._model.getLanguageIdentifier(),i=w["a"].getComments(n.id);if(i)return"LINE_COMMENT"===t?i.lineCommentToken||void 0:"BLOCK_COMMENT_START"===t?i.blockCommentStartToken||void 0:"BLOCK_COMMENT_END"===t&&i.blockCommentEndToken||void 0},e}(),I=function(){function e(){}return e.prototype.resolve=function(t){var n=t.name;return"CURRENT_YEAR"===n?String((new Date).getFullYear()):"CURRENT_YEAR_SHORT"===n?String((new Date).getFullYear()).slice(-2):"CURRENT_MONTH"===n?Object(r["F"])((new Date).getMonth().valueOf()+1,2):"CURRENT_DATE"===n?Object(r["F"])((new Date).getDate().valueOf(),2):"CURRENT_HOUR"===n?Object(r["F"])((new Date).getHours().valueOf(),2):"CURRENT_MINUTE"===n?Object(r["F"])((new Date).getMinutes().valueOf(),2):"CURRENT_SECOND"===n?Object(r["F"])((new Date).getSeconds().valueOf(),2):"CURRENT_DAY_NAME"===n?e.dayNames[(new Date).getDay()]:"CURRENT_DAY_NAME_SHORT"===n?e.dayNamesShort[(new Date).getDay()]:"CURRENT_MONTH_NAME"===n?e.monthNames[(new Date).getMonth()]:"CURRENT_MONTH_NAME_SHORT"===n?e.monthNamesShort[(new Date).getMonth()]:"CURRENT_SECONDS_UNIX"===n?String(Math.floor(Date.now()/1e3)):void 0},e.dayNames=[_["a"]("Sunday","Sunday"),_["a"]("Monday","Monday"),_["a"]("Tuesday","Tuesday"),_["a"]("Wednesday","Wednesday"),_["a"]("Thursday","Thursday"),_["a"]("Friday","Friday"),_["a"]("Saturday","Saturday")],e.dayNamesShort=[_["a"]("SundayShort","Sun"),_["a"]("MondayShort","Mon"),_["a"]("TuesdayShort","Tue"),_["a"]("WednesdayShort","Wed"),_["a"]("ThursdayShort","Thu"),_["a"]("FridayShort","Fri"),_["a"]("SaturdayShort","Sat")],e.monthNames=[_["a"]("January","January"),_["a"]("February","February"),_["a"]("March","March"),_["a"]("April","April"),_["a"]("May","May"),_["a"]("June","June"),_["a"]("July","July"),_["a"]("August","August"),_["a"]("September","September"),_["a"]("October","October"),_["a"]("November","November"),_["a"]("December","December")],e.monthNamesShort=[_["a"]("JanuaryShort","Jan"),_["a"]("FebruaryShort","Feb"),_["a"]("MarchShort","Mar"),_["a"]("AprilShort","Apr"),_["a"]("MayShort","May"),_["a"]("JuneShort","Jun"),_["a"]("JulyShort","Jul"),_["a"]("AugustShort","Aug"),_["a"]("SeptemberShort","Sep"),_["a"]("OctoberShort","Oct"),_["a"]("NovemberShort","Nov"),_["a"]("DecemberShort","Dec")],e}(),M=function(){function e(e){this._workspaceService=e}return e.prototype.resolve=function(e){if(this._workspaceService){var t=L(this._workspaceService.getWorkspace());if(t)return"WORKSPACE_NAME"===e.name?this._resolveWorkspaceName(t):"WORKSPACE_FOLDER"===e.name?this._resoveWorkspacePath(t):void 0}},e.prototype._resolveWorkspaceName=function(e){if(N(e))return y["basename"](e.path);var t=y["basename"](e.configPath.path);return Object(r["m"])(t,S)&&(t=t.substr(0,t.length-S.length-1)),t},e.prototype._resoveWorkspacePath=function(e){if(N(e))return Object(E["c"])(e.fsPath);var t=y["basename"](e.configPath.path),n=e.configPath.fsPath;return Object(r["m"])(n,t)&&(n=n.substr(0,n.length-t.length-1)),n?Object(E["c"])(n):"/"},e}(),F=function(){function e(){}return e.prototype.resolve=function(e){var t=e.name;return"RANDOM"===t?Math.random().toString().slice(-6):"RANDOM_HEX"===t?Math.random().toString(16).slice(-6):void 0},e}(),T=n("t9D7"),R=n("MD5Z"),P=n("R8sh");Object(T["e"])((function(e,t){function n(t){var n=e.getColor(t);return n?n.toString():"transparent"}t.addRule(".monaco-editor .snippet-placeholder { background-color: "+n(R["Zb"])+"; outline-color: "+n(R["ac"])+"; }"),t.addRule(".monaco-editor .finish-snippet-placeholder { background-color: "+n(R["Xb"])+"; outline-color: "+n(R["Yb"])+"; }")}));var U=function(){function e(e,t,n){this._nestingLevel=1,this._editor=e,this._snippet=t,this._offset=n,this._placeholderGroups=Object(h["o"])(t.placeholders,v["b"].compareByIndex),this._placeholderGroupsIdx=-1}return e.prototype.dispose=function(){if(this._placeholderDecorations){var e=[];this._placeholderDecorations.forEach((function(t){return e.push(t)})),this._editor.deltaDecorations(e,[])}this._placeholderGroups.length=0},e.prototype._initDecorations=function(){var t=this;if(!this._placeholderDecorations){this._placeholderDecorations=new Map;var n=this._editor.getModel();this._editor.changeDecorations((function(i){for(var r=0,o=t._snippet.placeholders;r<o.length;r++){var a=o[r],u=t._snippet.offset(a),l=t._snippet.fullLen(a),c=s["a"].fromPositions(n.getPositionAt(t._offset+u),n.getPositionAt(t._offset+u+l)),d=a.isFinalTabstop?e._decor.inactiveFinal:e._decor.inactive,h=i.addDecoration(c,d);t._placeholderDecorations.set(a,h)}}))}},e.prototype.move=function(t){var n=this;if(!this._editor.hasModel())return[];if(this._initDecorations(),this._placeholderGroupsIdx>=0){for(var i=[],r=0,o=this._placeholderGroups[this._placeholderGroupsIdx];r<o.length;r++){var s=o[r];if(s.transform){var u=this._placeholderDecorations.get(s),l=this._editor.getModel().getDecorationRange(u),c=this._editor.getModel().getValueInRange(l);i.push(f["a"].replaceMove(l,s.transform.resolve(c)))}}i.length>0&&this._editor.executeEdits("snippet.placeholderTransform",i)}var d=!1;!0===t&&this._placeholderGroupsIdx<this._placeholderGroups.length-1?(this._placeholderGroupsIdx+=1,d=!0):!1===t&&this._placeholderGroupsIdx>0&&(this._placeholderGroupsIdx-=1,d=!0);var h=this._editor.getModel().changeDecorations((function(t){for(var i=new Set,r=[],o=0,s=n._placeholderGroups[n._placeholderGroupsIdx];o<s.length;o++){var u=s[o],l=n._placeholderDecorations.get(u),c=n._editor.getModel().getDecorationRange(l);r.push(new a["a"](c.startLineNumber,c.startColumn,c.endLineNumber,c.endColumn)),d=d&&n._hasPlaceholderBeenCollapsed(u),t.changeDecorationOptions(l,u.isFinalTabstop?e._decor.activeFinal:e._decor.active),i.add(u);for(var h=0,f=n._snippet.enclosingPlaceholders(u);h<f.length;h++){var p=f[h],g=n._placeholderDecorations.get(p);t.changeDecorationOptions(g,p.isFinalTabstop?e._decor.activeFinal:e._decor.active),i.add(p)}}return n._placeholderDecorations.forEach((function(n,r){i.has(r)||t.changeDecorationOptions(n,r.isFinalTabstop?e._decor.inactiveFinal:e._decor.inactive)})),r}));return d?this.move(t):h},e.prototype._hasPlaceholderBeenCollapsed=function(e){var t=e;while(t){if(t instanceof v["b"]){var n=this._placeholderDecorations.get(t),i=this._editor.getModel().getDecorationRange(n);if(i.isEmpty()&&t.toString().length>0)return!0}t=t.parent}return!1},Object.defineProperty(e.prototype,"isAtFirstPlaceholder",{get:function(){return this._placeholderGroupsIdx<=0||0===this._placeholderGroups.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isAtLastPlaceholder",{get:function(){return this._placeholderGroupsIdx===this._placeholderGroups.length-1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasPlaceholder",{get:function(){return this._snippet.placeholders.length>0},enumerable:!0,configurable:!0}),e.prototype.computePossibleSelections=function(){for(var e=new Map,t=0,n=this._placeholderGroups;t<n.length;t++)for(var i=n[t],r=void 0,o=0,s=i;o<s.length;o++){var a=s[o];if(a.isFinalTabstop)break;r||(r=[],e.set(a.index,r));var u=this._placeholderDecorations.get(a),l=this._editor.getModel().getDecorationRange(u);if(!l){e.delete(a.index);break}r.push(l)}return e},Object.defineProperty(e.prototype,"choice",{get:function(){return this._placeholderGroups[this._placeholderGroupsIdx][0].choice},enumerable:!0,configurable:!0}),e.prototype.merge=function(t){var n=this,i=this._editor.getModel();this._nestingLevel*=10,this._editor.changeDecorations((function(r){for(var o=0,a=n._placeholderGroups[n._placeholderGroupsIdx];o<a.length;o++){var u=a[o],l=t.shift();console.assert(!l._placeholderDecorations);for(var c=l._snippet.placeholderInfo.last.index,d=0,f=l._snippet.placeholderInfo.all;d<f.length;d++){var p=f[d];p.isFinalTabstop?p.index=u.index+(c+1)/n._nestingLevel:p.index=u.index+p.index/n._nestingLevel}n._snippet.replace(u,l._snippet.children);var g=n._placeholderDecorations.get(u);r.removeDecoration(g),n._placeholderDecorations.delete(u);for(var A=0,m=l._snippet.placeholders;A<m.length;A++){var _=m[A],y=l._snippet.offset(_),b=l._snippet.fullLen(_),w=s["a"].fromPositions(i.getPositionAt(l._offset+y),i.getPositionAt(l._offset+y+b)),C=r.addDecoration(w,e._decor.inactive);n._placeholderDecorations.set(_,C)}}n._placeholderGroups=Object(h["o"])(n._snippet.placeholders,v["b"].compareByIndex)}))},e._decor={active:p["a"].register({stickiness:0,className:"snippet-placeholder"}),inactive:p["a"].register({stickiness:1,className:"snippet-placeholder"}),activeFinal:p["a"].register({stickiness:1,className:"finish-snippet-placeholder"}),inactiveFinal:p["a"].register({stickiness:1,className:"finish-snippet-placeholder"})},e}(),H={overwriteBefore:0,overwriteAfter:0,adjustWhitespace:!0,clipboardText:void 0},j=function(){function e(e,t,n){void 0===n&&(n=H),this._templateMerges=[],this._snippets=[],this._editor=e,this._template=t,this._options=n}return e.adjustWhitespace=function(e,t,n,i,o){var s=e.getLineContent(t.lineNumber),a=Object(r["t"])(s,0,t.column-1);n.walk((function(t){if(t instanceof v["d"]&&!(t.parent instanceof v["a"])){var n=t.value.split(/\r\n|\r|\n/);if(i)for(var s=1;s<n.length;s++){var u=Object(r["t"])(n[s]);n[s]=e.normalizeIndentation(a+u)+n[s].substr(u.length)}if(o){var l=n.join(e.getEOL());l!==t.value&&t.parent.replace(t,[new v["d"](l)])}}return!0}))},e.adjustSelection=function(e,t,n,i){if(0!==n||0!==i){var r=t.positionLineNumber,o=t.positionColumn,s=o-n,u=o+i,l=e.validateRange({startLineNumber:r,startColumn:s,endLineNumber:r,endColumn:u});t=a["a"].createWithDirection(l.startLineNumber,l.startColumn,l.endLineNumber,l.endColumn,t.getDirection())}return t},e.createEditsAndSnippets=function(t,n,i,r,o,a,u){var l=[],c=[];if(!t.hasModel())return{edits:l,snippets:c};for(var d=t.getModel(),h=t.invokeWithinContext((function(e){return e.get(A["a"],m["d"])})),p=t.invokeWithinContext((function(e){return new B(e.get(P["a"],m["d"]),d)})),_=t.invokeWithinContext((function(e){return e.get(g["a"],m["d"])})),y=function(){return u||_&&_.readTextSync()},b=0,w=d.getValueInRange(e.adjustSelection(d,t.getSelection(),i,0)),C=d.getValueInRange(e.adjustSelection(d,t.getSelection(),0,r)),S=d.getLineFirstNonWhitespaceColumn(t.getSelection().positionLineNumber),N=t.getSelections().map((function(e,t){return{selection:e,idx:t}})).sort((function(e,t){return s["a"].compareRangesUsingStarts(e.selection,t.selection)})),L=0,E=N;L<E.length;L++){var T=E[L],R=T.selection,H=T.idx,j=e.adjustSelection(d,R,i,0),Q=e.adjustSelection(d,R,0,r);w!==d.getValueInRange(j)&&(j=R),C!==d.getValueInRange(Q)&&(Q=R);var V=R.setStartPosition(j.startLineNumber,j.startColumn).setEndPosition(Q.endLineNumber,Q.endColumn),W=(new v["c"]).parse(n,!0,o),z=V.getStartPosition();e.adjustWhitespace(d,z,W,a||H>0&&S!==d.getLineFirstNonWhitespaceColumn(R.positionLineNumber),!0),W.resolveVariables(new x([p,new k(y,H,N.length,"spread"===t.getOption(60)),new O(d,R),new D(d),new I,new M(h),new F]));var K=d.getOffsetAt(z)+b;b+=W.toString().length-d.getValueLengthInRange(V),l[H]=f["a"].replace(V,W.toString()),c[H]=new U(t,W,K)}return{edits:l,snippets:c}},e.prototype.dispose=function(){Object(i["f"])(this._snippets)},e.prototype._logInfo=function(){return'template="'+this._template+'", merged_templates="'+this._templateMerges.join(" -> ")+'"'},e.prototype.insert=function(){var t=this;if(this._editor.hasModel()){var n=e.createEditsAndSnippets(this._editor,this._template,this._options.overwriteBefore,this._options.overwriteAfter,!1,this._options.adjustWhitespace,this._options.clipboardText),i=n.edits,r=n.snippets;this._snippets=r,this._editor.executeEdits("snippet",i,(function(e){return t._snippets[0].hasPlaceholder?t._move(!0):e.map((function(e){return a["a"].fromPositions(e.range.getEndPosition())}))})),this._editor.revealRange(this._editor.getSelections()[0])}},e.prototype.merge=function(t,n){var i=this;if(void 0===n&&(n=H),this._editor.hasModel()){this._templateMerges.push([this._snippets[0]._nestingLevel,this._snippets[0]._placeholderGroupsIdx,t]);var r=e.createEditsAndSnippets(this._editor,t,n.overwriteBefore,n.overwriteAfter,!0,n.adjustWhitespace,n.clipboardText),o=r.edits,s=r.snippets;this._editor.executeEdits("snippet",o,(function(e){for(var t=0,n=i._snippets;t<n.length;t++){var r=n[t];r.merge(s)}return console.assert(0===s.length),i._snippets[0].hasPlaceholder?i._move(void 0):e.map((function(e){return a["a"].fromPositions(e.range.getEndPosition())}))}))}},e.prototype.next=function(){var e=this._move(!0);this._editor.setSelections(e),this._editor.revealPositionInCenterIfOutsideViewport(e[0].getPosition())},e.prototype.prev=function(){var e=this._move(!1);this._editor.setSelections(e),this._editor.revealPositionInCenterIfOutsideViewport(e[0].getPosition())},e.prototype._move=function(e){for(var t=[],n=0,i=this._snippets;n<i.length;n++){var r=i[n],o=r.move(e);t.push.apply(t,o)}return t},Object.defineProperty(e.prototype,"isAtFirstPlaceholder",{get:function(){return this._snippets[0].isAtFirstPlaceholder},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isAtLastPlaceholder",{get:function(){return this._snippets[0].isAtLastPlaceholder},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasPlaceholder",{get:function(){return this._snippets[0].hasPlaceholder},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"choice",{get:function(){return this._snippets[0].choice},enumerable:!0,configurable:!0}),e.prototype.isSelectionWithinPlaceholders=function(){if(!this.hasPlaceholder)return!1;var e=this._editor.getSelections();if(e.length<this._snippets.length)return!1;for(var t=new Map,n=function(n){var i=n.computePossibleSelections();if(0===t.size&&i.forEach((function(n,i){n.sort(s["a"].compareRangesUsingStarts);for(var r=0,o=e;r<o.length;r++){var a=o[r];if(n[0].containsRange(a)){t.set(i,[]);break}}})),0===t.size)return{value:!1};t.forEach((function(e,t){e.push.apply(e,i.get(t))}))},i=0,r=this._snippets;i<r.length;i++){var o=r[i],a=n(o);if("object"===typeof a)return a.value}return e.sort(s["a"].compareRangesUsingStarts),t.forEach((function(n,i){if(n.length===e.length){n.sort(s["a"].compareRangesUsingStarts);for(var r=0;r<n.length;r++)if(!n[r].containsRange(e[r]))return void t.delete(i)}else t.delete(i)})),t.size>0},e}(),Q=function(){return Q=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Q.apply(this,arguments)},V=function(e,t,n,i){var r,o=arguments.length,s=o<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--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},W=function(e,t){return function(n,i){t(n,i,e)}},z={overwriteBefore:0,overwriteAfter:0,undoStopBefore:!0,undoStopAfter:!0,adjustWhitespace:!0,clipboardText:void 0},K=function(){function e(t,n,r){this._editor=t,this._logService=n,this._snippetListener=new i["b"],this._modelVersionId=-1,this._inSnippet=e.InSnippetMode.bindTo(r),this._hasNextTabstop=e.HasNextTabstop.bindTo(r),this._hasPrevTabstop=e.HasPrevTabstop.bindTo(r)}return e.get=function(t){return t.getContribution(e.ID)},e.prototype.dispose=function(){this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),Object(i["f"])(this._session),this._snippetListener.dispose()},e.prototype.insert=function(e,t){try{this._doInsert(e,"undefined"===typeof t?z:Q(Q({},z),t))}catch(n){this.cancel(),this._logService.error(n),this._logService.error("snippet_error"),this._logService.error("insert_template=",e),this._logService.error("existing_template=",this._session?this._session._logInfo():"<no_session>")}},e.prototype._doInsert=function(e,t){var n=this;this._editor.hasModel()&&(this._snippetListener.clear(),t.undoStopBefore&&this._editor.getModel().pushStackElement(),this._session?this._session.merge(e,t):(this._modelVersionId=this._editor.getModel().getAlternativeVersionId(),this._session=new j(this._editor,e,t),this._session.insert()),t.undoStopAfter&&this._editor.getModel().pushStackElement(),this._updateState(),this._snippetListener.add(this._editor.onDidChangeModelContent((function(e){return e.isFlush&&n.cancel()}))),this._snippetListener.add(this._editor.onDidChangeModel((function(){return n.cancel()}))),this._snippetListener.add(this._editor.onDidChangeCursorSelection((function(){return n._updateState()}))))},e.prototype._updateState=function(){if(this._session&&this._editor.hasModel()){if(this._modelVersionId===this._editor.getModel().getAlternativeVersionId())return this.cancel();if(!this._session.hasPlaceholder)return this.cancel();if(this._session.isAtLastPlaceholder||!this._session.isSelectionWithinPlaceholders())return this.cancel();this._inSnippet.set(!0),this._hasPrevTabstop.set(!this._session.isAtFirstPlaceholder),this._hasNextTabstop.set(!this._session.isAtLastPlaceholder),this._handleChoice()}},e.prototype._handleChoice=function(){var e=this;if(this._session&&this._editor.hasModel()){var t=this._session.choice;if(t){if(this._currentChoice!==t){this._currentChoice=t,this._editor.setSelections(this._editor.getSelections().map((function(e){return a["a"].fromPositions(e.getStartPosition())})));var n=t.options[0];Object(l["f"])(this._editor,t.options.map((function(t,i){return{kind:13,label:t.value,insertText:t.value,sortText:Object(r["J"])("a",i+1),range:s["a"].fromPositions(e._editor.getPosition(),e._editor.getPosition().delta(0,n.value.length))}})))}}else this._currentChoice=void 0}else this._currentChoice=void 0},e.prototype.finish=function(){while(this._inSnippet.get())this.next()},e.prototype.cancel=function(e){void 0===e&&(e=!1),this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),this._snippetListener.clear(),Object(i["f"])(this._session),this._session=void 0,this._modelVersionId=-1,e&&this._editor.setSelections([this._editor.getSelection()])},e.prototype.prev=function(){this._session&&this._session.prev(),this._updateState()},e.prototype.next=function(){this._session&&this._session.next(),this._updateState()},e.prototype.isInSnippet=function(){return Boolean(this._inSnippet.get())},e.ID="snippetController2",e.InSnippetMode=new c["d"]("inSnippetMode",!1),e.HasNextTabstop=new c["d"]("hasNextTabstop",!1),e.HasPrevTabstop=new c["d"]("hasPrevTabstop",!1),e=V([W(1,d["a"]),W(2,c["c"])],e),e}();Object(o["h"])(K.ID,K);var q=o["c"].bindToContribution(K.get);Object(o["g"])(new q({id:"jumpToNextSnippetPlaceholder",precondition:c["a"].and(K.InSnippetMode,K.HasNextTabstop),handler:function(e){return e.next()},kbOpts:{weight:130,kbExpr:u["a"].editorTextFocus,primary:2}})),Object(o["g"])(new q({id:"jumpToPrevSnippetPlaceholder",precondition:c["a"].and(K.InSnippetMode,K.HasPrevTabstop),handler:function(e){return e.prev()},kbOpts:{weight:130,kbExpr:u["a"].editorTextFocus,primary:1026}})),Object(o["g"])(new q({id:"leaveSnippet",precondition:K.InSnippetMode,handler:function(e){return e.cancel(!0)},kbOpts:{weight:130,kbExpr:u["a"].editorTextFocus,primary:9,secondary:[1033]}})),Object(o["g"])(new q({id:"acceptSnippet",precondition:K.InSnippetMode,handler:function(e){return e.finish()}}))},tYmi:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return a}));var i,r=n("bY76"),o=n("MNsG");(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"})(i||(i={}));var s=function(){function e(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null}return e.prototype.setPreferredWebSchema=function(e){this._preferredWebSchema=e},e.prototype.rewrite=function(e){if(this._delegate)return this._delegate(e);var t=e.authority,n=this._hosts[t];n&&-1!==n.indexOf(":")&&(n="["+n+"]");var s=this._ports[t],a=this._connectionTokens[t],u="path="+encodeURIComponent(e.path);return"string"===typeof a&&(u+="&tkn="+encodeURIComponent(a)),r["a"].from({scheme:o["g"]?this._preferredWebSchema:i.vscodeRemoteResource,authority:n+":"+s,path:"/vscode-remote-resource",query:u})},e}(),a=new s},twdY:function(e,t,n){"use strict";n.d(t,"q",(function(){return v})),n.d(t,"x",(function(){return _})),n.d(t,"C",(function(){return y})),n.d(t,"B",(function(){return b})),n.d(t,"D",(function(){return w})),n.d(t,"m",(function(){return N})),n.d(t,"A",(function(){return S})),n.d(t,"t",(function(){return L})),n.d(t,"u",(function(){return E})),n.d(t,"d",(function(){return x})),n.d(t,"w",(function(){return O})),n.d(t,"o",(function(){return B})),n.d(t,"l",(function(){return k})),n.d(t,"h",(function(){return D})),n.d(t,"f",(function(){return I})),n.d(t,"e",(function(){return M})),n.d(t,"p",(function(){return F})),n.d(t,"z",(function(){return T})),n.d(t,"b",(function(){return R})),n.d(t,"a",(function(){return P})),n.d(t,"g",(function(){return U})),n.d(t,"i",(function(){return H})),n.d(t,"s",(function(){return j})),n.d(t,"r",(function(){return Q})),n.d(t,"c",(function(){return V})),n.d(t,"v",(function(){return W})),n.d(t,"n",(function(){return z})),n.d(t,"k",(function(){return K})),n.d(t,"j",(function(){return q})),n.d(t,"y",(function(){return G}));var i=n("746U"),r=n("bY76"),o=n("aokT"),s=n("MI8n"),a=n("pmY6"),u=n("l2gE");function l(e,t,n,i){if(Array.isArray(e)){for(var r=0,o=0,s=e;o<s.length;o++){var a=s[o],c=l(a,t,n,i);if(10===c)return c;c>r&&(r=c)}return r}if("string"===typeof e)return i?"*"===e?5:e===n?10:0:0;if(e){var d=e.language,h=e.pattern,f=e.scheme,p=e.hasAccessToAllModels;if(!i&&!p)return 0;r=0;if(f)if(f===t.scheme)r=10;else{if("*"!==f)return 0;r=5}if(d)if(d===n)r=10;else{if("*"!==d)return 0;r=Math.max(r,5)}if(h){if(h!==t.fsPath&&!Object(u["a"])(h,t.fsPath))return 0;r=10}return r}return 0}var c=n("G2kB");function d(e){return"string"!==typeof e&&(Array.isArray(e)?e.every(d):!!e.exclusive)}var h,f,p,g=function(){function e(){this._clock=0,this._entries=[],this._onDidChange=new s["a"]}return Object.defineProperty(e.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),e.prototype.register=function(e,t){var n=this,i={selector:e,provider:t,_score:-1,_time:this._clock++};return this._entries.push(i),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),Object(a["h"])((function(){if(i){var e=n._entries.indexOf(i);e>=0&&(n._entries.splice(e,1),n._lastCandidate=void 0,n._onDidChange.fire(n._entries.length),i=void 0)}}))},e.prototype.has=function(e){return this.all(e).length>0},e.prototype.all=function(e){if(!e)return[];this._updateScores(e);for(var t=[],n=0,i=this._entries;n<i.length;n++){var r=i[n];r._score>0&&t.push(r.provider)}return t},e.prototype.ordered=function(e){var t=[];return this._orderedForEach(e,(function(e){return t.push(e.provider)})),t},e.prototype.orderedGroups=function(e){var t,n,i=[];return this._orderedForEach(e,(function(e){t&&n===e._score?t.push(e.provider):(n=e._score,t=[e.provider],i.push(t))})),i},e.prototype._orderedForEach=function(e,t){if(e){this._updateScores(e);for(var n=0,i=this._entries;n<i.length;n++){var r=i[n];r._score>0&&t(r)}}},e.prototype._updateScores=function(t){var n={uri:t.uri.toString(),language:t.getLanguageIdentifier().language};if(!this._lastCandidate||this._lastCandidate.language!==n.language||this._lastCandidate.uri!==n.uri){this._lastCandidate=n;for(var i=0,r=this._entries;i<r.length;i++){var o=r[i];if(o._score=l(o.selector,t.uri,t.getLanguageIdentifier().language,Object(c["b"])(t)),d(o.selector)&&o._score>0){for(var s=0,a=this._entries;s<a.length;s++){var u=a[s];u._score=0}o._score=1e3;break}}this._entries.sort(e._compareByScoreAndTime)}},e._compareByScoreAndTime=function(e,t){return e._score<t._score?1:e._score>t._score?-1:e._time<t._time?1:e._time>t._time?-1:0},e}(),A=n("QDVR"),m=function(){function e(){this._map=new Map,this._promises=new Map,this._onDidChange=new s["a"],this.onDidChange=this._onDidChange.event,this._colorMap=null}return e.prototype.fire=function(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})},e.prototype.register=function(e,t){var n=this;return this._map.set(e,t),this.fire([e]),Object(a["h"])((function(){n._map.get(e)===t&&(n._map.delete(e),n.fire([e]))}))},e.prototype.registerPromise=function(e,t){var n=this,i=null,r=!1;return this._promises.set(e,t.then((function(t){n._promises.delete(e),!r&&t&&(i=n.register(e,t))}))),Object(a["h"])((function(){r=!0,i&&i.dispose()}))},e.prototype.getPromise=function(e){var t=this,n=this.get(e);if(n)return Promise.resolve(n);var i=this._promises.get(e);return i?i.then((function(n){return t.get(e)})):null},e.prototype.get=function(e){return Object(i["o"])(this._map.get(e))},e.prototype.setColorMap=function(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Object(A["d"])(this._map),changedColorMap:!0})},e.prototype.getColorMap=function(){return this._colorMap},e.prototype.getDefaultBackground=function(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null},e}(),v=function(){function e(e,t){this.language=e,this.id=t}return e}(),_=function(){function e(){}return e.getLanguageId=function(e){return(255&e)>>>0},e.getTokenType=function(e){return(1792&e)>>>8},e.getFontStyle=function(e){return(14336&e)>>>11},e.getForeground=function(e){return(8372224&e)>>>14},e.getBackground=function(e){return(4286578688&e)>>>23},e.getClassNameFromMetadata=function(e){var t=this.getForeground(e),n="mtk"+t,i=this.getFontStyle(e);return 1&i&&(n+=" mtki"),2&i&&(n+=" mtkb"),4&i&&(n+=" mtku"),n},e.getInlineStyleFromMetadata=function(e,t){var n=this.getForeground(e),i=this.getFontStyle(e),r="color: "+t[n]+";";return 1&i&&(r+="font-style: italic;"),2&i&&(r+="font-weight: bold;"),4&i&&(r+="text-decoration: underline;"),r},e}(),y=function(){var e=Object.create(null);return e[0]="method",e[1]="function",e[2]="constructor",e[3]="field",e[4]="variable",e[5]="class",e[6]="struct",e[7]="interface",e[8]="module",e[9]="property",e[10]="event",e[11]="operator",e[12]="unit",e[13]="value",e[14]="constant",e[15]="enum",e[16]="enum-member",e[17]="keyword",e[25]="snippet",e[18]="text",e[19]="color",e[20]="file",e[21]="reference",e[22]="customcolor",e[23]="folder",e[24]="type-parameter",function(t){return e[t]||"property"}}(),b=function(){var e=Object.create(null);return e["method"]=0,e["function"]=1,e["constructor"]=2,e["field"]=3,e["variable"]=4,e["class"]=5,e["struct"]=6,e["interface"]=7,e["module"]=8,e["property"]=9,e["event"]=10,e["operator"]=11,e["unit"]=12,e["value"]=13,e["constant"]=14,e["enum"]=15,e["enum-member"]=16,e["enumMember"]=16,e["keyword"]=17,e["snippet"]=25,e["text"]=18,e["color"]=19,e["file"]=20,e["reference"]=21,e["customcolor"]=22,e["folder"]=23,e["type-parameter"]=24,e["typeParameter"]=24,function(t,n){var i=e[t];return"undefined"!==typeof i||n||(i=9),i}}();function w(e){return e&&r["a"].isUri(e.uri)&&o["a"].isIRange(e.range)&&(o["a"].isIRange(e.originSelectionRange)||o["a"].isIRange(e.targetSelectionRange))}(function(e){e[e["Invoke"]=1]="Invoke",e[e["TriggerCharacter"]=2]="TriggerCharacter",e[e["ContentChange"]=3]="ContentChange"})(h||(h={})),function(e){e[e["Text"]=0]="Text",e[e["Read"]=1]="Read",e[e["Write"]=2]="Write"}(f||(f={})),function(e){var t=new Map;t.set("file",0),t.set("module",1),t.set("namespace",2),t.set("package",3),t.set("class",4),t.set("method",5),t.set("property",6),t.set("field",7),t.set("constructor",8),t.set("enum",9),t.set("interface",10),t.set("function",11),t.set("variable",12),t.set("constant",13),t.set("string",14),t.set("number",15),t.set("boolean",16),t.set("array",17),t.set("object",18),t.set("key",19),t.set("null",20),t.set("enum-member",21),t.set("struct",22),t.set("event",23),t.set("operator",24),t.set("type-parameter",25);var n=new Map;function i(e){return t.get(e)}function r(e){return n.get(e)}function o(e,t){return"codicon "+(t?"inline":"block")+" codicon-symbol-"+(n.get(e)||"property")}n.set(0,"file"),n.set(1,"module"),n.set(2,"namespace"),n.set(3,"package"),n.set(4,"class"),n.set(5,"method"),n.set(6,"property"),n.set(7,"field"),n.set(8,"constructor"),n.set(9,"enum"),n.set(10,"interface"),n.set(11,"function"),n.set(12,"variable"),n.set(13,"constant"),n.set(14,"string"),n.set(15,"number"),n.set(16,"boolean"),n.set(17,"array"),n.set(18,"object"),n.set(19,"key"),n.set(20,"null"),n.set(21,"enum-member"),n.set(22,"struct"),n.set(23,"event"),n.set(24,"operator"),n.set(25,"type-parameter"),e.fromString=i,e.toString=r,e.toCssClassName=o}(p||(p={}));var C,S,N=function(){function e(e){this.value=e}return e.Comment=new e("comment"),e.Imports=new e("imports"),e.Region=new e("region"),e}();(function(e){function t(e){return Object(i["i"])(e)&&(Boolean(e.newUri)||Boolean(e.oldUri))}e.is=t})(C||(C={})),function(e){function t(e){return Object(i["i"])(e)&&r["a"].isUri(e.resource)&&Object(i["i"])(e.edit)}e.is=t}(S||(S={}));var L=new g,E=new g,x=new g,O=new g,B=new g,k=new g,D=new g,I=new g,M=new g,F=new g,T=new g,R=new g,P=new g,U=new g,H=new g,j=new g,Q=new g,V=new g,W=new g,z=new g,K=new g,q=new g,G=new m},uACm:function(e,t,n){"use strict";n.d(t,"d",(function(){return u})),n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return d})),n.d(t,"c",(function(){return m}));var i,r=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i},s=function(){function e(){this.value="",this.pos=0}return e.isDigitCharacter=function(e){return e>=48&&e<=57},e.isVariableCharacter=function(e){return 95===e||e>=97&&e<=122||e>=65&&e<=90},e.prototype.text=function(e){this.value=e,this.pos=0},e.prototype.tokenText=function(e){return this.value.substr(e.pos,e.len)},e.prototype.next=function(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};var t,n=this.pos,i=0,r=this.value.charCodeAt(n);if(t=e._table[r],"number"===typeof t)return this.pos+=1,{type:t,pos:n,len:1};if(e.isDigitCharacter(r)){t=8;do{i+=1,r=this.value.charCodeAt(n+i)}while(e.isDigitCharacter(r));return this.pos+=i,{type:t,pos:n,len:i}}if(e.isVariableCharacter(r)){t=9;do{r=this.value.charCodeAt(n+ ++i)}while(e.isVariableCharacter(r)||e.isDigitCharacter(r));return this.pos+=i,{type:t,pos:n,len:i}}t=10;do{i+=1,r=this.value.charCodeAt(n+i)}while(!isNaN(r)&&"undefined"===typeof e._table[r]&&!e.isDigitCharacter(r)&&!e.isVariableCharacter(r));return this.pos+=i,{type:t,pos:n,len:i}},e._table=(i={},i[36]=0,i[58]=1,i[44]=2,i[123]=3,i[125]=4,i[92]=5,i[47]=6,i[124]=7,i[43]=11,i[45]=12,i[63]=13,i),e}(),a=function(){function e(){this._children=[]}return e.prototype.appendChild=function(e){return e instanceof u&&this._children[this._children.length-1]instanceof u?this._children[this._children.length-1].value+=e.value:(e.parent=this,this._children.push(e)),this},e.prototype.replace=function(e,t){var n=e.parent,i=n.children.indexOf(e),r=n.children.slice(0);r.splice.apply(r,o([i,1],t)),n._children=r,function e(t,n){for(var i=0,r=t;i<r.length;i++){var o=r[i];o.parent=n,e(o.children,o)}}(t,n)},Object.defineProperty(e.prototype,"children",{get:function(){return this._children},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"snippet",{get:function(){var e=this;while(1){if(!e)return;if(e instanceof A)return e;e=e.parent}},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return this.children.reduce((function(e,t){return e+t.toString()}),"")},e.prototype.len=function(){return 0},e}(),u=function(e){function t(t){var n=e.call(this)||this;return n.value=t,n}return r(t,e),t.prototype.toString=function(){return this.value},t.prototype.len=function(){return this.value.length},t.prototype.clone=function(){return new t(this.value)},t}(a),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(a),c=function(e){function t(t){var n=e.call(this)||this;return n.index=t,n}return r(t,e),t.compareByIndex=function(e,t){return e.index===t.index?0:e.isFinalTabstop?1:t.isFinalTabstop||e.index<t.index?-1:e.index>t.index?1:0},Object.defineProperty(t.prototype,"isFinalTabstop",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"choice",{get:function(){return 1===this._children.length&&this._children[0]instanceof d?this._children[0]:void 0},enumerable:!0,configurable:!0}),t.prototype.clone=function(){var e=new t(this.index);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map((function(e){return e.clone()})),e},t}(l),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.options=[],t}return r(t,e),t.prototype.appendChild=function(e){return e instanceof u&&(e.parent=this,this.options.push(e)),this},t.prototype.toString=function(){return this.options[0].value},t.prototype.len=function(){return this.options[0].len()},t.prototype.clone=function(){var e=new t;return this.options.forEach(e.appendChild,e),e},t}(a),h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.regexp=new RegExp(""),t}return r(t,e),t.prototype.resolve=function(e){var t=this,n=!1,i=e.replace(this.regexp,(function(){return n=!0,t._replace(Array.prototype.slice.call(arguments,0,-2))}));return!n&&this._children.some((function(e){return e instanceof f&&Boolean(e.elseValue)}))&&(i=this._replace([])),i},t.prototype._replace=function(e){for(var t="",n=0,i=this._children;n<i.length;n++){var r=i[n];if(r instanceof f){var o=e[r.index]||"";o=r.resolve(o),t+=o}else t+=r.toString()}return t},t.prototype.toString=function(){return""},t.prototype.clone=function(){var e=new t;return e.regexp=new RegExp(this.regexp.source,(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),e._children=this.children.map((function(e){return e.clone()})),e},t}(a),f=function(e){function t(t,n,i,r){var o=e.call(this)||this;return o.index=t,o.shorthandName=n,o.ifValue=i,o.elseValue=r,o}return r(t,e),t.prototype.resolve=function(e){return"upcase"===this.shorthandName?e?e.toLocaleUpperCase():"":"downcase"===this.shorthandName?e?e.toLocaleLowerCase():"":"capitalize"===this.shorthandName?e?e[0].toLocaleUpperCase()+e.substr(1):"":"pascalcase"===this.shorthandName?e?this._toPascalCase(e):"":Boolean(e)&&"string"===typeof this.ifValue?this.ifValue:Boolean(e)||"string"!==typeof this.elseValue?e||"":this.elseValue},t.prototype._toPascalCase=function(e){var t=e.match(/[a-z]+/gi);return t?t.map((function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()})).join(""):e},t.prototype.clone=function(){var e=new t(this.index,this.shorthandName,this.ifValue,this.elseValue);return e},t}(a),p=function(e){function t(t){var n=e.call(this)||this;return n.name=t,n}return r(t,e),t.prototype.resolve=function(e){var t=e.resolve(this);return this.transform&&(t=this.transform.resolve(t||"")),void 0!==t&&(this._children=[new u(t)],!0)},t.prototype.clone=function(){var e=new t(this.name);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map((function(e){return e.clone()})),e},t}(l);function g(e,t){var n=o(e);while(n.length>0){var i=n.shift(),r=t(i);if(!r)break;n.unshift.apply(n,i.children)}}var A=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),Object.defineProperty(t.prototype,"placeholderInfo",{get:function(){if(!this._placeholders){var e,t=[];this.walk((function(n){return n instanceof c&&(t.push(n),e=!e||e.index<n.index?n:e),!0})),this._placeholders={all:t,last:e}}return this._placeholders},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"placeholders",{get:function(){var e=this.placeholderInfo.all;return e},enumerable:!0,configurable:!0}),t.prototype.offset=function(e){var t=0,n=!1;return this.walk((function(i){return i===e?(n=!0,!1):(t+=i.len(),!0)})),n?t:-1},t.prototype.fullLen=function(e){var t=0;return g([e],(function(e){return t+=e.len(),!0})),t},t.prototype.enclosingPlaceholders=function(e){var t=[],n=e.parent;while(n)n instanceof c&&t.push(n),n=n.parent;return t},t.prototype.resolveVariables=function(e){var t=this;return this.walk((function(n){return n instanceof p&&n.resolve(e)&&(t._placeholders=void 0),!0})),this},t.prototype.appendChild=function(t){return this._placeholders=void 0,e.prototype.appendChild.call(this,t)},t.prototype.replace=function(t,n){return this._placeholders=void 0,e.prototype.replace.call(this,t,n)},t.prototype.clone=function(){var e=new t;return this._children=this.children.map((function(e){return e.clone()})),e},t.prototype.walk=function(e){g(this.children,e)},t}(a),m=function(){function e(){this._scanner=new s,this._token={type:14,pos:0,len:0}}return e.escape=function(e){return e.replace(/\$|}|\\/g,"\\$&")},e.prototype.parse=function(e,t,n){this._scanner.text(e),this._token=this._scanner.next();var i=new A;while(this._parse(i));var r=new Map,o=[],s=0;i.walk((function(e){return e instanceof c&&(s+=1,e.isFinalTabstop?r.set(0,void 0):!r.has(e.index)&&e.children.length>0?r.set(e.index,e.children):o.push(e)),!0}));for(var a=0,u=o;a<u.length;a++){var l=u[a],d=r.get(l.index);if(d){var h=new c(l.index);h.transform=l.transform;for(var f=0,p=d;f<p.length;f++){var g=p[f];h.appendChild(g.clone())}i.replace(l,[h])}}return n||(n=s>0&&t),!r.has(0)&&n&&i.appendChild(new c(0)),i},e.prototype._accept=function(e,t){if(void 0===e||this._token.type===e){var n=!t||this._scanner.tokenText(this._token);return this._token=this._scanner.next(),n}return!1},e.prototype._backTo=function(e){return this._scanner.pos=e.pos+e.len,this._token=e,!1},e.prototype._until=function(e){var t=this._token;while(this._token.type!==e){if(14===this._token.type)return!1;if(5===this._token.type){var n=this._scanner.next();if(0!==n.type&&4!==n.type&&5!==n.type)return!1}this._token=this._scanner.next()}var i=this._scanner.value.substring(t.pos,this._token.pos).replace(/\\(\$|}|\\)/g,"$1");return this._token=this._scanner.next(),i},e.prototype._parse=function(e){return this._parseEscaped(e)||this._parseTabstopOrVariableName(e)||this._parseComplexPlaceholder(e)||this._parseComplexVariable(e)||this._parseAnything(e)},e.prototype._parseEscaped=function(e){var t;return!!(t=this._accept(5,!0))&&(t=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||t,e.appendChild(new u(t)),!0)},e.prototype._parseTabstopOrVariableName=function(e){var t,n=this._token,i=this._accept(0)&&(t=this._accept(9,!0)||this._accept(8,!0));return i?(e.appendChild(/^\d+$/.test(t)?new c(Number(t)):new p(t)),!0):this._backTo(n)},e.prototype._parseComplexPlaceholder=function(e){var t,n=this._token,i=this._accept(0)&&this._accept(3)&&(t=this._accept(8,!0));if(!i)return this._backTo(n);var r=new c(Number(t));if(this._accept(1))while(1){if(this._accept(4))return e.appendChild(r),!0;if(!this._parse(r))return e.appendChild(new u("${"+t+":")),r.children.forEach(e.appendChild,e),!0}else{if(!(r.index>0&&this._accept(7)))return this._accept(6)?this._parseTransform(r)?(e.appendChild(r),!0):(this._backTo(n),!1):this._accept(4)?(e.appendChild(r),!0):this._backTo(n);var o=new d;while(1){if(this._parseChoiceElement(o)){if(this._accept(2))continue;if(this._accept(7)&&(r.appendChild(o),this._accept(4)))return e.appendChild(r),!0}return this._backTo(n),!1}}},e.prototype._parseChoiceElement=function(e){var t=this._token,n=[];while(1){if(2===this._token.type||7===this._token.type)break;var i=void 0;if(i=(i=this._accept(5,!0))?this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||i:this._accept(void 0,!0),!i)return this._backTo(t),!1;n.push(i)}return 0===n.length?(this._backTo(t),!1):(e.appendChild(new u(n.join(""))),!0)},e.prototype._parseComplexVariable=function(e){var t,n=this._token,i=this._accept(0)&&this._accept(3)&&(t=this._accept(9,!0));if(!i)return this._backTo(n);var r=new p(t);if(!this._accept(1))return this._accept(6)?this._parseTransform(r)?(e.appendChild(r),!0):(this._backTo(n),!1):this._accept(4)?(e.appendChild(r),!0):this._backTo(n);while(1){if(this._accept(4))return e.appendChild(r),!0;if(!this._parse(r))return e.appendChild(new u("${"+t+":")),r.children.forEach(e.appendChild,e),!0}},e.prototype._parseTransform=function(e){var t=new h,n="",i="";while(1){if(this._accept(6))break;var r=void 0;if(r=this._accept(5,!0))r=this._accept(6,!0)||r,n+=r;else{if(14===this._token.type)return!1;n+=this._accept(void 0,!0)}}while(1){if(this._accept(6))break;r=void 0;if(r=this._accept(5,!0))r=this._accept(5,!0)||this._accept(6,!0)||r,t.appendChild(new u(r));else if(!this._parseFormatString(t)&&!this._parseAnything(t))return!1}while(1){if(this._accept(4))break;if(14===this._token.type)return!1;i+=this._accept(void 0,!0)}try{t.regexp=new RegExp(n,i)}catch(o){return!1}return e.transform=t,!0},e.prototype._parseFormatString=function(e){var t=this._token;if(!this._accept(0))return!1;var n=!1;this._accept(3)&&(n=!0);var i=this._accept(8,!0);if(!i)return this._backTo(t),!1;if(!n)return e.appendChild(new f(Number(i))),!0;if(this._accept(4))return e.appendChild(new f(Number(i))),!0;if(!this._accept(1))return this._backTo(t),!1;if(this._accept(6)){var r=this._accept(9,!0);return r&&this._accept(4)?(e.appendChild(new f(Number(i),r)),!0):(this._backTo(t),!1)}if(this._accept(11)){var o=this._until(4);if(o)return e.appendChild(new f(Number(i),void 0,o,void 0)),!0}else if(this._accept(12)){var s=this._until(4);if(s)return e.appendChild(new f(Number(i),void 0,void 0,s)),!0}else if(this._accept(13)){o=this._until(1);if(o){s=this._until(4);if(s)return e.appendChild(new f(Number(i),void 0,o,s)),!0}}else{s=this._until(4);if(s)return e.appendChild(new f(Number(i),void 0,void 0,s)),!0}return this._backTo(t),!1},e.prototype._parseAnything=function(e){return 14!==this._token.type&&(e.appendChild(new u(this._scanner.tokenText(this._token))),this._accept(void 0),!0)},e}()},uAX5:function(e,t,n){},uDWl:function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var i=n("D3Dy"),r=n("/kV6"),o=n("MNsG"),s=new Array(230),a=new Array(112);function u(e){if(e.charCode){var t=String.fromCharCode(e.charCode).toUpperCase();return r["b"].fromString(t)}return s[e.keyCode]||0}(function(){for(var e=0;e<a.length;e++)a[e]=-1;function t(e,t){s[e]=t,a[t]=e}t(3,7),t(8,1),t(9,2),t(13,3),t(16,4),t(17,5),t(18,6),t(19,7),t(20,8),t(27,9),t(32,10),t(33,11),t(34,12),t(35,13),t(36,14),t(37,15),t(38,16),t(39,17),t(40,18),t(45,19),t(46,20),t(48,21),t(49,22),t(50,23),t(51,24),t(52,25),t(53,26),t(54,27),t(55,28),t(56,29),t(57,30),t(65,31),t(66,32),t(67,33),t(68,34),t(69,35),t(70,36),t(71,37),t(72,38),t(73,39),t(74,40),t(75,41),t(76,42),t(77,43),t(78,44),t(79,45),t(80,46),t(81,47),t(82,48),t(83,49),t(84,50),t(85,51),t(86,52),t(87,53),t(88,54),t(89,55),t(90,56),t(93,58),t(96,93),t(97,94),t(98,95),t(99,96),t(100,97),t(101,98),t(102,99),t(103,100),t(104,101),t(105,102),t(106,103),t(107,104),t(108,105),t(109,106),t(110,107),t(111,108),t(112,59),t(113,60),t(114,61),t(115,62),t(116,63),t(117,64),t(118,65),t(119,66),t(120,67),t(121,68),t(122,69),t(123,70),t(124,71),t(125,72),t(126,73),t(127,74),t(128,75),t(129,76),t(130,77),t(144,78),t(145,79),t(186,80),t(187,81),t(188,82),t(189,83),t(190,84),t(191,85),t(192,86),t(193,110),t(194,111),t(219,87),t(220,88),t(221,89),t(222,90),t(223,91),t(226,92),t(229,109),i["i"]?t(91,57):i["h"]?(t(59,80),t(107,81),t(109,83),o["e"]&&t(224,57)):i["m"]&&(t(91,57),o["e"]?t(93,57):t(92,57))})();var l=o["e"]?256:2048,c=512,d=1024,h=o["e"]?2048:256,f=function(){function e(e){this._standardKeyboardEventBrand=!0;var 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=u(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()}return e.prototype.preventDefault=function(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()},e.prototype.stopPropagation=function(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()},e.prototype.toKeybinding=function(){return this._asRuntimeKeybinding},e.prototype.equals=function(e){return this._asKeybinding===e},e.prototype._computeKeybinding=function(){var e=0;5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode);var t=0;return this.ctrlKey&&(t|=l),this.altKey&&(t|=c),this.shiftKey&&(t|=d),this.metaKey&&(t|=h),t|=e,t},e.prototype._computeRuntimeKeybinding=function(){var e=0;return 5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode),new r["e"](this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e)},e}()},uWgD:function(e,t,n){},ufhN:function(e,t,n){"use strict";n.r(t);var i=n("+hIS");Object(i["a"])({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib"],aliases:["StructuredText","scl","stl"],loader:function(){return n.e(191).then(n.bind(null,"rMIR"))}})},ujyM:function(e,t,n){},undH:function(e,t,n){},vATl:function(e,t,n){"use strict";n.d(t,"a",(function(){return A})),n.d(t,"b",(function(){return m})),n.d(t,"d",(function(){return v})),n.d(t,"c",(function(){return _}));var i=n("N0LK"),r=n("JQT/"),o=n("pmY6"),s=n("sswD"),a=n("T8No"),u=n("24hK"),l=n("Cg/j"),c=n("9fML"),d=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),h=Object(l["c"])("IEditorCancelService"),f=new a["d"]("cancellableOperation",!1);Object(c["b"])(h,function(){function e(){this._tokens=new WeakMap}return e.prototype.add=function(e,t){var n,i=this._tokens.get(e);return i||(i=e.invokeWithinContext((function(e){var t=f.bindTo(e.get(a["c"])),n=new u["a"];return{key:t,tokens:n}})),this._tokens.set(e,i)),i.key.set(!0),n=i.tokens.push(t),function(){n&&(n(),i.key.set(!i.tokens.isEmpty()),n=void 0)}},e.prototype.cancel=function(e){var t=this._tokens.get(e);if(t){var n=t.tokens.pop();n&&(n.cancel(),t.key.set(!t.tokens.isEmpty()))}},e}(),!0);var p=function(e){function t(t,n){var i=e.call(this,n)||this;return i.editor=t,i._unregister=t.invokeWithinContext((function(e){return e.get(h).add(t,i)})),i}return d(t,e),t.prototype.dispose=function(){this._unregister(),e.prototype.dispose.call(this)},t}(r["b"]);Object(s["g"])(new(function(e){function t(){return e.call(this,{id:"editor.cancelOperation",kbOpts:{weight:100,primary:9},precondition:f})||this}return d(t,e),t.prototype.runEditorCommand=function(e,t){e.get(h).cancel(t)},t}(s["c"])));var g=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),A=function(){function e(e,t){if(this.flags=t,0!==(1&this.flags)){var n=e.getModel();this.modelVersionId=n?i["r"]("{0}#{1}",n.uri.toString(),n.getVersionId()):null}else this.modelVersionId=null;0!==(4&this.flags)?this.position=e.getPosition():this.position=null,0!==(2&this.flags)?this.selection=e.getSelection():this.selection=null,0!==(8&this.flags)?(this.scrollLeft=e.getScrollLeft(),this.scrollTop=e.getScrollTop()):(this.scrollLeft=-1,this.scrollTop=-1)}return e.prototype._equals=function(t){if(!(t instanceof e))return!1;var n=t;return this.modelVersionId===n.modelVersionId&&(this.scrollLeft===n.scrollLeft&&this.scrollTop===n.scrollTop&&(!(!this.position&&n.position||this.position&&!n.position||this.position&&n.position&&!this.position.equals(n.position))&&!(!this.selection&&n.selection||this.selection&&!n.selection||this.selection&&n.selection&&!this.selection.equalsRange(n.selection))))},e.prototype.validate=function(t){return this._equals(new e(t,this.flags))},e}(),m=function(e){function t(t,n,i){var r=e.call(this,t,i)||this;return r.editor=t,r._listener=new o["b"],4&n&&r._listener.add(t.onDidChangeCursorPosition((function(e){return r.cancel()}))),2&n&&r._listener.add(t.onDidChangeCursorSelection((function(e){return r.cancel()}))),8&n&&r._listener.add(t.onDidScrollChange((function(e){return r.cancel()}))),1&n&&(r._listener.add(t.onDidChangeModel((function(e){return r.cancel()}))),r._listener.add(t.onDidChangeModelContent((function(e){return r.cancel()})))),r}return g(t,e),t.prototype.dispose=function(){this._listener.dispose(),e.prototype.dispose.call(this)},t}(p),v=function(e){function t(t,n){var i=e.call(this,n)||this;return i._listener=t.onDidChangeContent((function(){return i.cancel()})),i}return g(t,e),t.prototype.dispose=function(){this._listener.dispose(),e.prototype.dispose.call(this)},t}(r["b"]),_=function(){function e(e,t){this._visiblePosition=e,this._visiblePositionScrollDelta=t}return e.capture=function(t){var n=null,i=0;if(0!==t.getScrollTop()){var r=t.getVisibleRanges();if(r.length>0){n=r[0].getStartPosition();var o=t.getTopForPosition(n.lineNumber,n.column);i=t.getScrollTop()-o}}return new e(n,i)},e.prototype.restore=function(e){if(this._visiblePosition){var t=e.getTopForPosition(this._visiblePosition.lineNumber,this._visiblePosition.column);e.setScrollTop(t+this._visiblePositionScrollDelta)}},e}()},vl9R:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o}));var i=Object.prototype.hasOwnProperty;function r(e,t){var n=function(n){if(i.call(e,n)){var r=t({key:n,value:e[n]},(function(){delete e[n]}));if(!1===r)return{value:void 0}}};for(var r in e){var o=n(r);if("object"===typeof o)return o.value}}var o=function(){function e(){this.map=new Map}return e.prototype.add=function(e,t){var n=this.map.get(e);n||(n=new Set,this.map.set(e,n)),n.add(t)},e.prototype.delete=function(e,t){var n=this.map.get(e);n&&(n.delete(t),0===n.size&&this.map.delete(e))},e.prototype.forEach=function(e,t){var n=this.map.get(e);n&&n.forEach(t)},e}()},"w29/":function(e,t,n){"use strict";n.r(t);n("5DEy");var i=n("3/fG"),r=n("D3Dy"),o=n("MNsG"),s=n("5TxY"),a=n("sswD"),u=n("Vxe3"),l=n("wQH0"),c=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),d="9_cutcopypaste",h=o["f"]||document.queryCommandSupported("cut"),f=o["f"]||document.queryCommandSupported("copy"),p=f&&!r["f"],g=o["f"]||!r["d"]&&document.queryCommandSupported("paste"),A=function(e){function t(t,n){var i=e.call(this,n)||this;return i.browserCommand=t,i}return c(t,e),t.prototype.runCommand=function(e,t){var n=e.get(u["a"]).getFocusedCodeEditor();n&&n.hasTextFocus()?n.trigger("keyboard",this.id,t):document.execCommand(this.browserCommand)},t.prototype.run=function(e,t){t.focus(),document.execCommand(this.browserCommand)},t}(a["b"]),m=function(e){function t(){var t=this,n={kbExpr:l["a"].textInputFocus,primary:2102,win:{primary:2102,secondary:[1044]},weight:100};return o["f"]||(n=void 0),t=e.call(this,"cut",{id:"editor.action.clipboardCutAction",label:i["a"]("actions.clipboard.cutLabel","Cut"),alias:"Cut",precondition:l["a"].writable,kbOpts:n,contextMenuOpts:{group:d,order:1},menuOpts:{menuId:17,group:"2_ccp",title:i["a"]({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1}})||this,t}return c(t,e),t.prototype.run=function(t,n){if(n.hasModel()){var i=n.getOption(25);!i&&n.getSelection().isEmpty()||e.prototype.run.call(this,t,n)}},t}(A),v=function(e){function t(){var t=this,n={kbExpr:l["a"].textInputFocus,primary:2081,win:{primary:2081,secondary:[2067]},weight:100};return o["f"]||(n=void 0),t=e.call(this,"copy",{id:"editor.action.clipboardCopyAction",label:i["a"]("actions.clipboard.copyLabel","Copy"),alias:"Copy",precondition:void 0,kbOpts:n,contextMenuOpts:{group:d,order:2},menuOpts:{menuId:17,group:"2_ccp",title:i["a"]({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2}})||this,t}return c(t,e),t.prototype.run=function(t,n){if(n.hasModel()){var i=n.getOption(25);!i&&n.getSelection().isEmpty()||e.prototype.run.call(this,t,n)}},t}(A),_=function(e){function t(){var t=this,n={kbExpr:l["a"].textInputFocus,primary:2100,win:{primary:2100,secondary:[1043]},weight:100};return o["f"]||(n=void 0),t=e.call(this,"paste",{id:"editor.action.clipboardPasteAction",label:i["a"]("actions.clipboard.pasteLabel","Paste"),alias:"Paste",precondition:l["a"].writable,kbOpts:n,contextMenuOpts:{group:d,order:3},menuOpts:{menuId:17,group:"2_ccp",title:i["a"]({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:3}})||this,t}return c(t,e),t}(A),y=function(e){function t(){return e.call(this,"copy",{id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:i["a"]("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:l["a"].textInputFocus,primary:0,weight:100}})||this}return c(t,e),t.prototype.run=function(t,n){if(n.hasModel()){var i=n.getOption(25);!i&&n.getSelection().isEmpty()||(s["a"].forceCopyWithSyntaxHighlighting=!0,e.prototype.run.call(this,t,n),s["a"].forceCopyWithSyntaxHighlighting=!1)}},t}(A);h&&Object(a["f"])(m),f&&Object(a["f"])(v),g&&Object(a["f"])(_),p&&Object(a["f"])(y)},w9QG:function(e,t,n){"use strict";n.r(t);var i=n("+hIS");Object(i["a"])({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:function(){return n.e(190).then(n.bind(null,"Czvm"))}})},wOnQ:function(e,t,n){(function(t,n){e.exports=n()})(0,(function(){"use strict";var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};function t(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}var n=function(){return n=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},n.apply(this,arguments)};function i(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{u(i.next(e))}catch(Pt){o(Pt)}}function a(e){try{u(i["throw"](e))}catch(Pt){o(Pt)}}function u(e){e.done?r(e.value):new n((function(t){t(e.value)})).then(s,a)}u((i=i.apply(e,t||[])).next())}))}function r(e,t){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(e){return function(t){return u([e,t])}}function u(o){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,i&&(r=2&o[0]?i["return"]:o[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(r=s.trys,!(r=r.length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(Pt){o=[6,Pt],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}}for(var o=function(){function e(e,t,n,i){this.left=e,this.top=t,this.width=n,this.height=i}return e.prototype.add=function(t,n,i,r){return new e(this.left+t,this.top+n,this.width+i,this.height+r)},e.fromClientRect=function(t){return new e(t.left,t.top,t.width,t.height)},e}(),s=function(e){return o.fromClientRect(e.getBoundingClientRect())},a=function(e){var t=e.body,n=e.documentElement;if(!t||!n)throw new Error("Unable to get document size");var i=Math.max(Math.max(t.scrollWidth,n.scrollWidth),Math.max(t.offsetWidth,n.offsetWidth),Math.max(t.clientWidth,n.clientWidth)),r=Math.max(Math.max(t.scrollHeight,n.scrollHeight),Math.max(t.offsetHeight,n.offsetHeight),Math.max(t.clientHeight,n.clientHeight));return new o(0,0,i,r)},u=function(e){var t=[],n=0,i=e.length;while(n<i){var r=e.charCodeAt(n++);if(r>=55296&&r<=56319&&n<i){var o=e.charCodeAt(n++);56320===(64512&o)?t.push(((1023&r)<<10)+(1023&o)+65536):(t.push(r),n--)}else t.push(r)}return t},l=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var n=e.length;if(!n)return"";var i=[],r=-1,o="";while(++r<n){var s=e[r];s<=65535?i.push(s):(s-=65536,i.push(55296+(s>>10),s%1024+56320)),(r+1===n||i.length>16384)&&(o+=String.fromCharCode.apply(String,i),i.length=0)}return o},c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d="undefined"===typeof Uint8Array?[]:new Uint8Array(256),h=0;h<c.length;h++)d[c.charCodeAt(h)]=h;var f,p=function(e){var t,n,i,r,o,s=.75*e.length,a=e.length,u=0;"="===e[e.length-1]&&(s--,"="===e[e.length-2]&&s--);var l="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint8Array.prototype.slice?new ArrayBuffer(s):new Array(s),c=Array.isArray(l)?l:new Uint8Array(l);for(t=0;t<a;t+=4)n=d[e.charCodeAt(t)],i=d[e.charCodeAt(t+1)],r=d[e.charCodeAt(t+2)],o=d[e.charCodeAt(t+3)],c[u++]=n<<2|i>>4,c[u++]=(15&i)<<4|r>>2,c[u++]=(3&r)<<6|63&o;return l},g=function(e){for(var t=e.length,n=[],i=0;i<t;i+=2)n.push(e[i+1]<<8|e[i]);return n},A=function(e){for(var t=e.length,n=[],i=0;i<t;i+=4)n.push(e[i+3]<<24|e[i+2]<<16|e[i+1]<<8|e[i]);return n},m=5,v=11,_=2,y=v-m,b=65536>>m,w=1<<m,C=w-1,S=1024>>m,N=b+S,L=N,E=32,x=L+E,O=65536>>v,B=1<<y,k=B-1,D=function(e,t,n){return e.slice?e.slice(t,n):new Uint16Array(Array.prototype.slice.call(e,t,n))},I=function(e,t,n){return e.slice?e.slice(t,n):new Uint32Array(Array.prototype.slice.call(e,t,n))},M=function(e){var t=p(e),n=Array.isArray(t)?A(t):new Uint32Array(t),i=Array.isArray(t)?g(t):new Uint16Array(t),r=24,o=D(i,r/2,n[4]/2),s=2===n[5]?D(i,(r+n[4])/2):I(n,Math.ceil((r+n[4])/4));return new F(n[0],n[1],n[2],n[3],o,s)},F=function(){function e(e,t,n,i,r,o){this.initialValue=e,this.errorValue=t,this.highStart=n,this.highValueIndex=i,this.index=r,this.data=o}return e.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=this.index[e>>m],t=(t<<_)+(e&C),this.data[t];if(e<=65535)return t=this.index[b+(e-55296>>m)],t=(t<<_)+(e&C),this.data[t];if(e<this.highStart)return t=x-O+(e>>v),t=this.index[t],t+=e>>m&k,t=this.index[t],t=(t<<_)+(e&C),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),T="KwAAAAAAAAAACA4AIDoAAPAfAAACAAAAAAAIABAAGABAAEgAUABYAF4AZgBeAGYAYABoAHAAeABeAGYAfACEAIAAiACQAJgAoACoAK0AtQC9AMUAXgBmAF4AZgBeAGYAzQDVAF4AZgDRANkA3gDmAOwA9AD8AAQBDAEUARoBIgGAAIgAJwEvATcBPwFFAU0BTAFUAVwBZAFsAXMBewGDATAAiwGTAZsBogGkAawBtAG8AcIBygHSAdoB4AHoAfAB+AH+AQYCDgIWAv4BHgImAi4CNgI+AkUCTQJTAlsCYwJrAnECeQKBAk0CiQKRApkCoQKoArACuALAAsQCzAIwANQC3ALkAjAA7AL0AvwCAQMJAxADGAMwACADJgMuAzYDPgOAAEYDSgNSA1IDUgNaA1oDYANiA2IDgACAAGoDgAByA3YDfgOAAIQDgACKA5IDmgOAAIAAogOqA4AAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAK8DtwOAAIAAvwPHA88D1wPfAyAD5wPsA/QD/AOAAIAABAQMBBIEgAAWBB4EJgQuBDMEIAM7BEEEXgBJBCADUQRZBGEEaQQwADAAcQQ+AXkEgQSJBJEEgACYBIAAoASoBK8EtwQwAL8ExQSAAIAAgACAAIAAgACgAM0EXgBeAF4AXgBeAF4AXgBeANUEXgDZBOEEXgDpBPEE+QQBBQkFEQUZBSEFKQUxBTUFPQVFBUwFVAVcBV4AYwVeAGsFcwV7BYMFiwWSBV4AmgWgBacFXgBeAF4AXgBeAKsFXgCyBbEFugW7BcIFwgXIBcIFwgXQBdQF3AXkBesF8wX7BQMGCwYTBhsGIwYrBjMGOwZeAD8GRwZNBl4AVAZbBl4AXgBeAF4AXgBeAF4AXgBeAF4AXgBeAGMGXgBqBnEGXgBeAF4AXgBeAF4AXgBeAF4AXgB5BoAG4wSGBo4GkwaAAIADHgR5AF4AXgBeAJsGgABGA4AAowarBrMGswagALsGwwbLBjAA0wbaBtoG3QbaBtoG2gbaBtoG2gblBusG8wb7BgMHCwcTBxsHCwcjBysHMAc1BzUHOgdCB9oGSgdSB1oHYAfaBloHaAfaBlIH2gbaBtoG2gbaBtoG2gbaBjUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHbQdeAF4ANQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQd1B30HNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B4MH2gaKB68EgACAAIAAgACAAIAAgACAAI8HlwdeAJ8HpweAAIAArwe3B14AXgC/B8UHygcwANAH2AfgB4AA6AfwBz4B+AcACFwBCAgPCBcIogEYAR8IJwiAAC8INwg/CCADRwhPCFcIXwhnCEoDGgSAAIAAgABvCHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIhAiLCI4IMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAANQc1BzUHNQc1BzUHNQc1BzUHNQc1B54INQc1B6II2gaqCLIIugiAAIAAvgjGCIAAgACAAIAAgACAAIAAgACAAIAAywiHAYAA0wiAANkI3QjlCO0I9Aj8CIAAgACAAAIJCgkSCRoJIgknCTYHLwk3CZYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiAAIAAAAFAAXgBeAGAAcABeAHwAQACQAKAArQC9AJ4AXgBeAE0A3gBRAN4A7AD8AMwBGgEAAKcBNwEFAUwBXAF4QkhCmEKnArcCgAHHAsABz4LAAcABwAHAAd+C6ABoAG+C/4LAAcABwAHAAc+DF4MAAcAB54M3gweDV4Nng3eDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEeDqABVg6WDqABoQ6gAaABoAHXDvcONw/3DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DncPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB7cPPwlGCU4JMACAAIAAgABWCV4JYQmAAGkJcAl4CXwJgAkwADAAMAAwAIgJgACLCZMJgACZCZ8JowmrCYAAswkwAF4AXgB8AIAAuwkABMMJyQmAAM4JgADVCTAAMAAwADAAgACAAIAAgACAAIAAgACAAIAAqwYWBNkIMAAwADAAMADdCeAJ6AnuCR4E9gkwAP4JBQoNCjAAMACAABUK0wiAAB0KJAosCjQKgAAwADwKQwqAAEsKvQmdCVMKWwowADAAgACAALcEMACAAGMKgABrCjAAMAAwADAAMAAwADAAMAAwADAAMAAeBDAAMAAwADAAMAAwADAAMAAwADAAMAAwAIkEPQFzCnoKiQSCCooKkAqJBJgKoAqkCokEGAGsCrQKvArBCjAAMADJCtEKFQHZCuEK/gHpCvEKMAAwADAAMACAAIwE+QowAIAAPwEBCzAAMAAwADAAMACAAAkLEQswAIAAPwEZCyELgAAOCCkLMAAxCzkLMAAwADAAMAAwADAAXgBeAEELMAAwADAAMAAwADAAMAAwAEkLTQtVC4AAXAtkC4AAiQkwADAAMAAwADAAMAAwADAAbAtxC3kLgAuFC4sLMAAwAJMLlwufCzAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAApwswADAAMACAAIAAgACvC4AAgACAAIAAgACAALcLMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAvwuAAMcLgACAAIAAgACAAIAAyguAAIAAgACAAIAA0QswADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAANkLgACAAIAA4AswADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACJCR4E6AswADAAhwHwC4AA+AsADAgMEAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMACAAIAAGAwdDCUMMAAwAC0MNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQw1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHPQwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADUHNQc1BzUHNQc1BzUHNQc2BzAAMAA5DDUHNQc1BzUHNQc1BzUHNQc1BzUHNQdFDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAgACAAIAATQxSDFoMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAF4AXgBeAF4AXgBeAF4AYgxeAGoMXgBxDHkMfwxeAIUMXgBeAI0MMAAwADAAMAAwAF4AXgCVDJ0MMAAwADAAMABeAF4ApQxeAKsMswy7DF4Awgy9DMoMXgBeAF4AXgBeAF4AXgBeAF4AXgDRDNkMeQBqCeAM3Ax8AOYM7Az0DPgMXgBeAF4AXgBeAF4AXgBeAF4AXgBeAF4AXgBeAF4AXgCgAAANoAAHDQ4NFg0wADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAeDSYNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIAAgACAAIAAgACAAC4NMABeAF4ANg0wADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAD4NRg1ODVYNXg1mDTAAbQ0wADAAMAAwADAAMAAwADAA2gbaBtoG2gbaBtoG2gbaBnUNeg3CBYANwgWFDdoGjA3aBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gaUDZwNpA2oDdoG2gawDbcNvw3HDdoG2gbPDdYN3A3fDeYN2gbsDfMN2gbaBvoN/g3aBgYODg7aBl4AXgBeABYOXgBeACUG2gYeDl4AJA5eACwO2w3aBtoGMQ45DtoG2gbaBtoGQQ7aBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gZJDjUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B1EO2gY1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQdZDjUHNQc1BzUHNQc1B2EONQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHaA41BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B3AO2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gY1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B2EO2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gZJDtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBkkOeA6gAKAAoAAwADAAMAAwAKAAoACgAKAAoACgAKAAgA4wADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAD//wQABAAEAAQABAAEAAQABAAEAA0AAwABAAEAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAKABMAFwAeABsAGgAeABcAFgASAB4AGwAYAA8AGAAcAEsASwBLAEsASwBLAEsASwBLAEsAGAAYAB4AHgAeABMAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAFgAbABIAHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYADQARAB4ABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkAFgAaABsAGwAbAB4AHQAdAB4ATwAXAB4ADQAeAB4AGgAbAE8ATwAOAFAAHQAdAB0ATwBPABcATwBPAE8AFgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwArAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAAQABAANAA0ASwBLAEsASwBLAEsASwBLAEsASwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUAArACsABABQAAQABAAEAAQABAAEAAQAKwArAAQABAArACsABAAEAAQAUAArACsAKwArACsAKwArACsABAArACsAKwArAFAAUAArAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAGgAaAFAAUABQAFAAUABMAB4AGwBQAB4AKwArACsABAAEAAQAKwBQAFAAUABQAFAAUAArACsAKwArAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUAArAFAAUAArACsABAArAAQABAAEAAQABAArACsAKwArAAQABAArACsABAAEAAQAKwArACsABAArACsAKwArACsAKwArAFAAUABQAFAAKwBQACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwAEAAQAUABQAFAABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUAArACsABABQAAQABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQAKwArAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwAeABsAKwArACsAKwArACsAKwBQAAQABAAEAAQABAAEACsABAAEAAQAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwArAAQABAArACsABAAEAAQAKwArACsAKwArACsAKwArAAQABAArACsAKwArAFAAUAArAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwAeAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwAEAFAAKwBQAFAAUABQAFAAUAArACsAKwBQAFAAUAArAFAAUABQAFAAKwArACsAUABQACsAUAArAFAAUAArACsAKwBQAFAAKwArACsAUABQAFAAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQAKwArACsABAAEAAQAKwAEAAQABAAEACsAKwBQACsAKwArACsAKwArAAQAKwArACsAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAB4AHgAeAB4AHgAeABsAHgArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABAArACsAKwArACsAKwArAAQABAArAFAAUABQACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAB4AUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABAArACsAKwArACsAKwArAAQABAArACsAKwArACsAKwArAFAAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwArAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAKwBcAFwAKwBcACsAKwBcACsAKwArACsAKwArAFwAXABcAFwAKwBcAFwAXABcAFwAXABcACsAXABcAFwAKwBcACsAXAArACsAXABcACsAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgArACoAKgBcACsAKwBcAFwAXABcAFwAKwBcACsAKgAqACoAKgAqACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAFwAXABcAFwAUAAOAA4ADgAOAB4ADgAOAAkADgAOAA0ACQATABMAEwATABMACQAeABMAHgAeAB4ABAAEAB4AHgAeAB4AHgAeAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUAANAAQAHgAEAB4ABAAWABEAFgARAAQABABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAAQABAAEAAQABAANAAQABABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsADQANAB4AHgAeAB4AHgAeAAQAHgAeAB4AHgAeAB4AKwAeAB4ADgAOAA0ADgAeAB4AHgAeAB4ACQAJACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgAeAB4AHgBcAFwAXABcAFwAXAAqACoAKgAqAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAKgAqACoAKgAqACoAKgBcAFwAXAAqACoAKgAqAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAXAAqAEsASwBLAEsASwBLAEsASwBLAEsAKgAqACoAKgAqACoAUABQAFAAUABQAFAAKwBQACsAKwArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQACsAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwAEAAQABAAeAA0AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAEQArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAADQANAA0AUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAA0ADQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoADQANABUAXAANAB4ADQAbAFwAKgArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAB4AHgATABMADQANAA4AHgATABMAHgAEAAQABAAJACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAUABQAFAAUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwAeACsAKwArABMAEwBLAEsASwBLAEsASwBLAEsASwBLAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwBcAFwAXABcAFwAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcACsAKwArACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwAeAB4AXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgArACsABABLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKgAqACoAKgAqACoAKgBcACoAKgAqACoAKgAqACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAUABQAFAAUABQAFAAUAArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4ADQANAA0ADQAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAHgAeAB4AHgBQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwANAA0ADQANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwBQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsABAAEAAQAHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAABABQAFAAUABQAAQABAAEAFAAUAAEAAQABAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAKwBQACsAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAKwArAB4AHgAeAB4AHgAeACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAUABQAFAAKwAeAB4AHgAeAB4AHgAeAA4AHgArAA0ADQANAA0ADQANAA0ACQANAA0ADQAIAAQACwAEAAQADQAJAA0ADQAMAB0AHQAeABcAFwAWABcAFwAXABYAFwAdAB0AHgAeABQAFAAUAA0AAQABAAQABAAEAAQABAAJABoAGgAaABoAGgAaABoAGgAeABcAFwAdABUAFQAeAB4AHgAeAB4AHgAYABYAEQAVABUAFQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgANAB4ADQANAA0ADQAeAA0ADQANAAcAHgAeAB4AHgArAAQABAAEAAQABAAEAAQABAAEAAQAUABQACsAKwBPAFAAUABQAFAAUAAeAB4AHgAWABEATwBQAE8ATwBPAE8AUABQAFAAUABQAB4AHgAeABYAEQArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAGwAbABsAGwAbABsAGwAaABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAaABsAGwAbABsAGgAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgBQABoAHgAdAB4AUAAeABoAHgAeAB4AHgAeAB4AHgAeAB4ATwAeAFAAGwAeAB4AUABQAFAAUABQAB4AHgAeAB0AHQAeAFAAHgBQAB4AUAAeAFAATwBQAFAAHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AUABQAFAAUABPAE8AUABQAFAAUABQAE8AUABQAE8AUABPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAE8ATwBPAE8ATwBPAE8ATwBPAE8AUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAATwAeAB4AKwArACsAKwAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB0AHQAeAB4AHgAdAB0AHgAeAB0AHgAeAB4AHQAeAB0AGwAbAB4AHQAeAB4AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB0AHgAdAB4AHQAdAB0AHQAdAB0AHgAdAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAdAB0AHQAdAB4AHgAdAB0AHgAeAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABQAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAlACUAHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBQAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAeAB4AHgAeAB0AHQAeAB4AHgAeAB0AHQAdAB4AHgAdAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB0AHQAeAB4AHQAeAB4AHgAeAB0AHQAeAB4AHgAeACUAJQAdAB0AJQAeACUAJQAlACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAHgAeAB4AHgAdAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHQAdAB0AHgAdACUAHQAdAB4AHQAdAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHQAdAB0AHQAlAB4AJQAlACUAHQAlACUAHQAdAB0AJQAlAB0AHQAlAB0AHQAlACUAJQAeAB0AHgAeAB4AHgAdAB0AJQAdAB0AHQAdAB0AHQAlACUAJQAlACUAHQAlACUAIAAlAB0AHQAlACUAJQAlACUAJQAlACUAHgAeAB4AJQAlACAAIAAgACAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeABcAFwAXABcAFwAXAB4AEwATACUAHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwArACUAJQBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAKwArACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAE8ATwBPAE8ATwBPAE8ATwAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeACsAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUAArACsAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQBQAFAAUABQACsAKwArACsAUABQAFAAUABQAFAAUABQAA0AUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQACsAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgBQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAABAAEAAQAKwAEAAQAKwArACsAKwArAAQABAAEAAQAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsABAAEAAQAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsADQANAA0ADQANAA0ADQANAB4AKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AUABQAFAAUABQAFAAUABQAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAUABQAFAAUABQAA0ADQANAA0ADQANABQAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwANAA0ADQANAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAeAAQABAAEAB4AKwArAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLACsADQArAB4AKwArAAQABAAEAAQAUABQAB4AUAArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwAEAAQABAAEAAQABAAEAAQABAAOAA0ADQATABMAHgAeAB4ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0AUABQAFAAUAAEAAQAKwArAAQADQANAB4AUAArACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXABcAA0ADQANACoASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUAArACsAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANACsADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEcARwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQACsAKwAeAAQABAANAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAEAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUAArACsAUAArACsAUABQACsAKwBQAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AKwArAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAeAB4ADQANAA0ADQAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAArAAQABAArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAEAAQABAAEAAQABAAEACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAFgAWAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAKwBQACsAKwArACsAKwArAFAAKwArACsAKwBQACsAUAArAFAAKwBQAFAAUAArAFAAUAArAFAAKwArAFAAKwBQACsAUAArAFAAKwBQACsAUABQACsAUAArACsAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAUABQAFAAUAArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUAArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAlACUAJQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeACUAJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeACUAJQAlACUAJQAeACUAJQAlACUAJQAgACAAIAAlACUAIAAlACUAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIQAhACEAIQAhACUAJQAgACAAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAgACAAIAAlACUAJQAlACAAJQAgACAAIAAgACAAIAAgACAAIAAlACUAJQAgACUAJQAlACUAIAAgACAAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeACUAHgAlAB4AJQAlACUAJQAlACAAJQAlACUAJQAeACUAHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAgACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAlACUAJQAlACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAIAAgACAAJQAlACUAIAAgACAAIAAgAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFwAXABcAFQAVABUAHgAeAB4AHgAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAgACAAJQAlACUAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAlACAAIAAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsA",R=50,P=1,U=2,H=3,j=4,Q=5,V=7,W=8,z=9,K=10,q=11,G=12,X=13,Y=14,J=15,Z=16,$=17,ee=18,te=19,ne=20,ie=21,re=22,oe=23,se=24,ae=25,ue=26,le=27,ce=28,de=29,he=30,fe=31,pe=32,ge=33,Ae=34,me=35,ve=36,_e=37,ye=38,be=39,we=40,Ce=41,Se=42,Ne=43,Le="!",Ee="\xd7",xe="\xf7",Oe=M(T),Be=[he,ve],ke=[P,U,H,Q],De=[K,W],Ie=[le,ue],Me=ke.concat(De),Fe=[ye,be,we,Ae,me],Te=[J,X],Re=function(e,t){void 0===t&&(t="strict");var n=[],i=[],r=[];return e.forEach((function(e,o){var s=Oe.get(e);if(s>R?(r.push(!0),s-=R):r.push(!1),-1!==["normal","auto","loose"].indexOf(t)&&-1!==[8208,8211,12316,12448].indexOf(e))return i.push(o),n.push(Z);if(s===j||s===q){if(0===o)return i.push(o),n.push(he);var a=n[o-1];return-1===Me.indexOf(a)?(i.push(i[o-1]),n.push(a)):(i.push(o),n.push(he))}return i.push(o),s===fe?n.push("strict"===t?ie:_e):s===Se||s===de?n.push(he):s===Ne?e>=131072&&e<=196605||e>=196608&&e<=262141?n.push(_e):n.push(he):void n.push(s)})),[i,n,r]},Pe=function(e,t,n,i){var r=i[n];if(Array.isArray(e)?-1!==e.indexOf(r):e===r){var o=n;while(o<=i.length){o++;var s=i[o];if(s===t)return!0;if(s!==K)break}}if(r===K){o=n;while(o>0){o--;var a=i[o];if(Array.isArray(e)?-1!==e.indexOf(a):e===a){var u=n;while(u<=i.length){u++;s=i[u];if(s===t)return!0;if(s!==K)break}}if(a!==K)break}}return!1},Ue=function(e,t){var n=e;while(n>=0){var i=t[n];if(i!==K)return i;n--}return 0},He=function(e,t,n,i,r){if(0===n[i])return Ee;var o=i-1;if(Array.isArray(r)&&!0===r[o])return Ee;var s=o-1,a=o+1,u=t[o],l=s>=0?t[s]:0,c=t[a];if(u===U&&c===H)return Ee;if(-1!==ke.indexOf(u))return Le;if(-1!==ke.indexOf(c))return Ee;if(-1!==De.indexOf(c))return Ee;if(Ue(o,t)===W)return xe;if(Oe.get(e[o])===q&&(c===_e||c===pe||c===ge))return Ee;if(u===V||c===V)return Ee;if(u===z)return Ee;if(-1===[K,X,J].indexOf(u)&&c===z)return Ee;if(-1!==[$,ee,te,se,ce].indexOf(c))return Ee;if(Ue(o,t)===re)return Ee;if(Pe(oe,re,o,t))return Ee;if(Pe([$,ee],ie,o,t))return Ee;if(Pe(G,G,o,t))return Ee;if(u===K)return xe;if(u===oe||c===oe)return Ee;if(c===Z||u===Z)return xe;if(-1!==[X,J,ie].indexOf(c)||u===Y)return Ee;if(l===ve&&-1!==Te.indexOf(u))return Ee;if(u===ce&&c===ve)return Ee;if(c===ne&&-1!==Be.concat(ne,te,ae,_e,pe,ge).indexOf(u))return Ee;if(-1!==Be.indexOf(c)&&u===ae||-1!==Be.indexOf(u)&&c===ae)return Ee;if(u===le&&-1!==[_e,pe,ge].indexOf(c)||-1!==[_e,pe,ge].indexOf(u)&&c===ue)return Ee;if(-1!==Be.indexOf(u)&&-1!==Ie.indexOf(c)||-1!==Ie.indexOf(u)&&-1!==Be.indexOf(c))return Ee;if(-1!==[le,ue].indexOf(u)&&(c===ae||-1!==[re,J].indexOf(c)&&t[a+1]===ae)||-1!==[re,J].indexOf(u)&&c===ae||u===ae&&-1!==[ae,ce,se].indexOf(c))return Ee;if(-1!==[ae,ce,se,$,ee].indexOf(c)){var d=o;while(d>=0){var h=t[d];if(h===ae)return Ee;if(-1===[ce,se].indexOf(h))break;d--}}if(-1!==[le,ue].indexOf(c)){d=-1!==[$,ee].indexOf(u)?s:o;while(d>=0){h=t[d];if(h===ae)return Ee;if(-1===[ce,se].indexOf(h))break;d--}}if(ye===u&&-1!==[ye,be,Ae,me].indexOf(c)||-1!==[be,Ae].indexOf(u)&&-1!==[be,we].indexOf(c)||-1!==[we,me].indexOf(u)&&c===we)return Ee;if(-1!==Fe.indexOf(u)&&-1!==[ne,ue].indexOf(c)||-1!==Fe.indexOf(c)&&u===le)return Ee;if(-1!==Be.indexOf(u)&&-1!==Be.indexOf(c))return Ee;if(u===se&&-1!==Be.indexOf(c))return Ee;if(-1!==Be.concat(ae).indexOf(u)&&c===re||-1!==Be.concat(ae).indexOf(c)&&u===ee)return Ee;if(u===Ce&&c===Ce){var f=n[o],p=1;while(f>0){if(f--,t[f]!==Ce)break;p++}if(p%2!==0)return Ee}return u===pe&&c===ge?Ee:xe},je=function(e,t){t||(t={lineBreak:"normal",wordBreak:"normal"});var n=Re(e,t.lineBreak),i=n[0],r=n[1],o=n[2];"break-all"!==t.wordBreak&&"break-word"!==t.wordBreak||(r=r.map((function(e){return-1!==[ae,he,Se].indexOf(e)?_e:e})));var s="keep-all"===t.wordBreak?o.map((function(t,n){return t&&e[n]>=19968&&e[n]<=40959})):void 0;return[i,r,s]},Qe=function(){function e(e,t,n,i){this.codePoints=e,this.required=t===Le,this.start=n,this.end=i}return e.prototype.slice=function(){return l.apply(void 0,this.codePoints.slice(this.start,this.end))},e}(),Ve=function(e,t){var n=u(e),i=je(n,t),r=i[0],o=i[1],s=i[2],a=n.length,l=0,c=0;return{next:function(){if(c>=a)return{done:!0,value:null};var e=Ee;while(c<a&&(e=He(n,o,r,++c,s))===Ee);if(e!==Ee||c===a){var t=new Qe(n,e,l,c);return l=c,{value:t,done:!1}}return{done:!0,value:null}}}};(function(e){e[e["STRING_TOKEN"]=0]="STRING_TOKEN",e[e["BAD_STRING_TOKEN"]=1]="BAD_STRING_TOKEN",e[e["LEFT_PARENTHESIS_TOKEN"]=2]="LEFT_PARENTHESIS_TOKEN",e[e["RIGHT_PARENTHESIS_TOKEN"]=3]="RIGHT_PARENTHESIS_TOKEN",e[e["COMMA_TOKEN"]=4]="COMMA_TOKEN",e[e["HASH_TOKEN"]=5]="HASH_TOKEN",e[e["DELIM_TOKEN"]=6]="DELIM_TOKEN",e[e["AT_KEYWORD_TOKEN"]=7]="AT_KEYWORD_TOKEN",e[e["PREFIX_MATCH_TOKEN"]=8]="PREFIX_MATCH_TOKEN",e[e["DASH_MATCH_TOKEN"]=9]="DASH_MATCH_TOKEN",e[e["INCLUDE_MATCH_TOKEN"]=10]="INCLUDE_MATCH_TOKEN",e[e["LEFT_CURLY_BRACKET_TOKEN"]=11]="LEFT_CURLY_BRACKET_TOKEN",e[e["RIGHT_CURLY_BRACKET_TOKEN"]=12]="RIGHT_CURLY_BRACKET_TOKEN",e[e["SUFFIX_MATCH_TOKEN"]=13]="SUFFIX_MATCH_TOKEN",e[e["SUBSTRING_MATCH_TOKEN"]=14]="SUBSTRING_MATCH_TOKEN",e[e["DIMENSION_TOKEN"]=15]="DIMENSION_TOKEN",e[e["PERCENTAGE_TOKEN"]=16]="PERCENTAGE_TOKEN",e[e["NUMBER_TOKEN"]=17]="NUMBER_TOKEN",e[e["FUNCTION"]=18]="FUNCTION",e[e["FUNCTION_TOKEN"]=19]="FUNCTION_TOKEN",e[e["IDENT_TOKEN"]=20]="IDENT_TOKEN",e[e["COLUMN_TOKEN"]=21]="COLUMN_TOKEN",e[e["URL_TOKEN"]=22]="URL_TOKEN",e[e["BAD_URL_TOKEN"]=23]="BAD_URL_TOKEN",e[e["CDC_TOKEN"]=24]="CDC_TOKEN",e[e["CDO_TOKEN"]=25]="CDO_TOKEN",e[e["COLON_TOKEN"]=26]="COLON_TOKEN",e[e["SEMICOLON_TOKEN"]=27]="SEMICOLON_TOKEN",e[e["LEFT_SQUARE_BRACKET_TOKEN"]=28]="LEFT_SQUARE_BRACKET_TOKEN",e[e["RIGHT_SQUARE_BRACKET_TOKEN"]=29]="RIGHT_SQUARE_BRACKET_TOKEN",e[e["UNICODE_RANGE_TOKEN"]=30]="UNICODE_RANGE_TOKEN",e[e["WHITESPACE_TOKEN"]=31]="WHITESPACE_TOKEN",e[e["EOF_TOKEN"]=32]="EOF_TOKEN"})(f||(f={}));var We=1,ze=2,Ke=4,qe=8,Ge=10,Xe=47,Ye=92,Je=9,Ze=32,$e=34,et=61,tt=35,nt=36,it=37,rt=39,ot=40,st=41,at=95,ut=45,lt=33,ct=60,dt=62,ht=64,ft=91,pt=93,gt=61,At=123,mt=63,vt=125,_t=124,yt=126,bt=128,wt=65533,Ct=42,St=43,Nt=44,Lt=58,Et=59,xt=46,Ot=0,Bt=8,kt=11,Dt=14,It=31,Mt=127,Ft=-1,Tt=48,Rt=97,Pt=101,Ut=102,Ht=117,jt=122,Qt=65,Vt=69,Wt=70,zt=85,Kt=90,qt=function(e){return e>=Tt&&e<=57},Gt=function(e){return e>=55296&&e<=57343},Xt=function(e){return qt(e)||e>=Qt&&e<=Wt||e>=Rt&&e<=Ut},Yt=function(e){return e>=Rt&&e<=jt},Jt=function(e){return e>=Qt&&e<=Kt},Zt=function(e){return Yt(e)||Jt(e)},$t=function(e){return e>=bt},en=function(e){return e===Ge||e===Je||e===Ze},tn=function(e){return Zt(e)||$t(e)||e===at},nn=function(e){return tn(e)||qt(e)||e===ut},rn=function(e){return e>=Ot&&e<=Bt||e===kt||e>=Dt&&e<=It||e===Mt},on=function(e,t){return e===Ye&&t!==Ge},sn=function(e,t,n){return e===ut?tn(t)||on(t,n):!!tn(e)||!(e!==Ye||!on(e,t))},an=function(e,t,n){return e===St||e===ut?!!qt(t)||t===xt&&qt(n):qt(e===xt?t:e)},un=function(e){var t=0,n=1;e[t]!==St&&e[t]!==ut||(e[t]===ut&&(n=-1),t++);var i=[];while(qt(e[t]))i.push(e[t++]);var r=i.length?parseInt(l.apply(void 0,i),10):0;e[t]===xt&&t++;var o=[];while(qt(e[t]))o.push(e[t++]);var s=o.length,a=s?parseInt(l.apply(void 0,o),10):0;e[t]!==Vt&&e[t]!==Pt||t++;var u=1;e[t]!==St&&e[t]!==ut||(e[t]===ut&&(u=-1),t++);var c=[];while(qt(e[t]))c.push(e[t++]);var d=c.length?parseInt(l.apply(void 0,c),10):0;return n*(r+a*Math.pow(10,-s))*Math.pow(10,u*d)},ln={type:f.LEFT_PARENTHESIS_TOKEN},cn={type:f.RIGHT_PARENTHESIS_TOKEN},dn={type:f.COMMA_TOKEN},hn={type:f.SUFFIX_MATCH_TOKEN},fn={type:f.PREFIX_MATCH_TOKEN},pn={type:f.COLUMN_TOKEN},gn={type:f.DASH_MATCH_TOKEN},An={type:f.INCLUDE_MATCH_TOKEN},mn={type:f.LEFT_CURLY_BRACKET_TOKEN},vn={type:f.RIGHT_CURLY_BRACKET_TOKEN},_n={type:f.SUBSTRING_MATCH_TOKEN},yn={type:f.BAD_URL_TOKEN},bn={type:f.BAD_STRING_TOKEN},wn={type:f.CDO_TOKEN},Cn={type:f.CDC_TOKEN},Sn={type:f.COLON_TOKEN},Nn={type:f.SEMICOLON_TOKEN},Ln={type:f.LEFT_SQUARE_BRACKET_TOKEN},En={type:f.RIGHT_SQUARE_BRACKET_TOKEN},xn={type:f.WHITESPACE_TOKEN},On={type:f.EOF_TOKEN},Bn=function(){function e(){this._value=[]}return e.prototype.write=function(e){this._value=this._value.concat(u(e))},e.prototype.read=function(){var e=[],t=this.consumeToken();while(t!==On)e.push(t),t=this.consumeToken();return e},e.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case $e:return this.consumeStringToken($e);case tt:var t=this.peekCodePoint(0),n=this.peekCodePoint(1),i=this.peekCodePoint(2);if(nn(t)||on(n,i)){var r=sn(t,n,i)?ze:We,o=this.consumeName();return{type:f.HASH_TOKEN,value:o,flags:r}}break;case nt:if(this.peekCodePoint(0)===et)return this.consumeCodePoint(),hn;break;case rt:return this.consumeStringToken(rt);case ot:return ln;case st:return cn;case Ct:if(this.peekCodePoint(0)===et)return this.consumeCodePoint(),_n;break;case St:if(an(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case Nt:return dn;case ut:var s=e,a=this.peekCodePoint(0),u=this.peekCodePoint(1);if(an(s,a,u))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(sn(s,a,u))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(a===ut&&u===dt)return this.consumeCodePoint(),this.consumeCodePoint(),Cn;break;case xt:if(an(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case Xe:if(this.peekCodePoint(0)===Ct){this.consumeCodePoint();while(1){var c=this.consumeCodePoint();if(c===Ct&&(c=this.consumeCodePoint(),c===Xe))return this.consumeToken();if(c===Ft)return this.consumeToken()}}break;case Lt:return Sn;case Et:return Nn;case ct:if(this.peekCodePoint(0)===lt&&this.peekCodePoint(1)===ut&&this.peekCodePoint(2)===ut)return this.consumeCodePoint(),this.consumeCodePoint(),wn;break;case ht:var d=this.peekCodePoint(0),h=this.peekCodePoint(1),p=this.peekCodePoint(2);if(sn(d,h,p)){o=this.consumeName();return{type:f.AT_KEYWORD_TOKEN,value:o}}break;case ft:return Ln;case Ye:if(on(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case pt:return En;case gt:if(this.peekCodePoint(0)===et)return this.consumeCodePoint(),fn;break;case At:return mn;case vt:return vn;case Ht:case zt:var g=this.peekCodePoint(0),A=this.peekCodePoint(1);return g!==St||!Xt(A)&&A!==mt||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case _t:if(this.peekCodePoint(0)===et)return this.consumeCodePoint(),gn;if(this.peekCodePoint(0)===_t)return this.consumeCodePoint(),pn;break;case yt:if(this.peekCodePoint(0)===et)return this.consumeCodePoint(),An;break;case Ft:return On}return en(e)?(this.consumeWhiteSpace(),xn):qt(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):tn(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:f.DELIM_TOKEN,value:l(e)}},e.prototype.consumeCodePoint=function(){var e=this._value.shift();return"undefined"===typeof e?-1:e},e.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},e.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},e.prototype.consumeUnicodeRangeToken=function(){var e=[],t=this.consumeCodePoint();while(Xt(t)&&e.length<6)e.push(t),t=this.consumeCodePoint();var n=!1;while(t===mt&&e.length<6)e.push(t),t=this.consumeCodePoint(),n=!0;if(n){var i=parseInt(l.apply(void 0,e.map((function(e){return e===mt?Tt:e}))),16),r=parseInt(l.apply(void 0,e.map((function(e){return e===mt?Wt:e}))),16);return{type:f.UNICODE_RANGE_TOKEN,start:i,end:r}}var o=parseInt(l.apply(void 0,e),16);if(this.peekCodePoint(0)===ut&&Xt(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();var s=[];while(Xt(t)&&s.length<6)s.push(t),t=this.consumeCodePoint();r=parseInt(l.apply(void 0,s),16);return{type:f.UNICODE_RANGE_TOKEN,start:o,end:r}}return{type:f.UNICODE_RANGE_TOKEN,start:o,end:o}},e.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return"url"===e.toLowerCase()&&this.peekCodePoint(0)===ot?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===ot?(this.consumeCodePoint(),{type:f.FUNCTION_TOKEN,value:e}):{type:f.IDENT_TOKEN,value:e}},e.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Ft)return{type:f.URL_TOKEN,value:""};var t=this.peekCodePoint(0);if(t===rt||t===$e){var n=this.consumeStringToken(this.consumeCodePoint());return n.type===f.STRING_TOKEN&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Ft||this.peekCodePoint(0)===st)?(this.consumeCodePoint(),{type:f.URL_TOKEN,value:n.value}):(this.consumeBadUrlRemnants(),yn)}while(1){var i=this.consumeCodePoint();if(i===Ft||i===st)return{type:f.URL_TOKEN,value:l.apply(void 0,e)};if(en(i))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Ft||this.peekCodePoint(0)===st?(this.consumeCodePoint(),{type:f.URL_TOKEN,value:l.apply(void 0,e)}):(this.consumeBadUrlRemnants(),yn);if(i===$e||i===rt||i===ot||rn(i))return this.consumeBadUrlRemnants(),yn;if(i===Ye){if(!on(i,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),yn;e.push(this.consumeEscapedCodePoint())}else e.push(i)}},e.prototype.consumeWhiteSpace=function(){while(en(this.peekCodePoint(0)))this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){while(1){var e=this.consumeCodePoint();if(e===st||e===Ft)return;on(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},e.prototype.consumeStringSlice=function(e){var t=6e4,n="";while(e>0){var i=Math.min(t,e);n+=l.apply(void 0,this._value.splice(0,i)),e-=i}return this._value.shift(),n},e.prototype.consumeStringToken=function(e){var t="",n=0;do{var i=this._value[n];if(i===Ft||void 0===i||i===e)return t+=this.consumeStringSlice(n),{type:f.STRING_TOKEN,value:t};if(i===Ge)return this._value.splice(0,n),bn;if(i===Ye){var r=this._value[n+1];r!==Ft&&void 0!==r&&(r===Ge?(t+=this.consumeStringSlice(n),n=-1,this._value.shift()):on(i,r)&&(t+=this.consumeStringSlice(n),t+=l(this.consumeEscapedCodePoint()),n=-1))}n++}while(1)},e.prototype.consumeNumber=function(){var e=[],t=Ke,n=this.peekCodePoint(0);n!==St&&n!==ut||e.push(this.consumeCodePoint());while(qt(this.peekCodePoint(0)))e.push(this.consumeCodePoint());n=this.peekCodePoint(0);var i=this.peekCodePoint(1);if(n===xt&&qt(i)){e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=qe;while(qt(this.peekCodePoint(0)))e.push(this.consumeCodePoint())}n=this.peekCodePoint(0),i=this.peekCodePoint(1);var r=this.peekCodePoint(2);if((n===Vt||n===Pt)&&((i===St||i===ut)&&qt(r)||qt(i))){e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=qe;while(qt(this.peekCodePoint(0)))e.push(this.consumeCodePoint())}return[un(e),t]},e.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),t=e[0],n=e[1],i=this.peekCodePoint(0),r=this.peekCodePoint(1),o=this.peekCodePoint(2);if(sn(i,r,o)){var s=this.consumeName();return{type:f.DIMENSION_TOKEN,number:t,flags:n,unit:s}}return i===it?(this.consumeCodePoint(),{type:f.PERCENTAGE_TOKEN,number:t,flags:n}):{type:f.NUMBER_TOKEN,number:t,flags:n}},e.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(Xt(e)){var t=l(e);while(Xt(this.peekCodePoint(0))&&t.length<6)t+=l(this.consumeCodePoint());en(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(t,16);return 0===n||Gt(n)||n>1114111?wt:n}return e===Ft?wt:e},e.prototype.consumeName=function(){var e="";while(1){var t=this.consumeCodePoint();if(nn(t))e+=l(t);else{if(!on(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),e;e+=l(this.consumeEscapedCodePoint())}}},e}(),kn=function(){function e(e){this._tokens=e}return e.create=function(t){var n=new Bn;return n.write(t),new e(n.read())},e.parseValue=function(t){return e.create(t).parseComponentValue()},e.parseValues=function(t){return e.create(t).parseComponentValues()},e.prototype.parseComponentValue=function(){var e=this.consumeToken();while(e.type===f.WHITESPACE_TOKEN)e=this.consumeToken();if(e.type===f.EOF_TOKEN)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var t=this.consumeComponentValue();do{e=this.consumeToken()}while(e.type===f.WHITESPACE_TOKEN);if(e.type===f.EOF_TOKEN)return t;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},e.prototype.parseComponentValues=function(){var e=[];while(1){var t=this.consumeComponentValue();if(t.type===f.EOF_TOKEN)return e;e.push(t),e.push()}},e.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case f.LEFT_CURLY_BRACKET_TOKEN:case f.LEFT_SQUARE_BRACKET_TOKEN:case f.LEFT_PARENTHESIS_TOKEN:return this.consumeSimpleBlock(e.type);case f.FUNCTION_TOKEN:return this.consumeFunction(e)}return e},e.prototype.consumeSimpleBlock=function(e){var t={type:e,values:[]},n=this.consumeToken();while(1){if(n.type===f.EOF_TOKEN||Hn(n,e))return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue()),n=this.consumeToken()}},e.prototype.consumeFunction=function(e){var t={name:e.value,values:[],type:f.FUNCTION};while(1){var n=this.consumeToken();if(n.type===f.EOF_TOKEN||n.type===f.RIGHT_PARENTHESIS_TOKEN)return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue())}},e.prototype.consumeToken=function(){var e=this._tokens.shift();return"undefined"===typeof e?On:e},e.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},e}(),Dn=function(e){return e.type===f.DIMENSION_TOKEN},In=function(e){return e.type===f.NUMBER_TOKEN},Mn=function(e){return e.type===f.IDENT_TOKEN},Fn=function(e){return e.type===f.STRING_TOKEN},Tn=function(e,t){return Mn(e)&&e.value===t},Rn=function(e){return e.type!==f.WHITESPACE_TOKEN},Pn=function(e){return e.type!==f.WHITESPACE_TOKEN&&e.type!==f.COMMA_TOKEN},Un=function(e){var t=[],n=[];return e.forEach((function(e){if(e.type===f.COMMA_TOKEN){if(0===n.length)throw new Error("Error parsing function args, zero tokens for arg");return t.push(n),void(n=[])}e.type!==f.WHITESPACE_TOKEN&&n.push(e)})),n.length&&t.push(n),t},Hn=function(e,t){return t===f.LEFT_CURLY_BRACKET_TOKEN&&e.type===f.RIGHT_CURLY_BRACKET_TOKEN||(t===f.LEFT_SQUARE_BRACKET_TOKEN&&e.type===f.RIGHT_SQUARE_BRACKET_TOKEN||t===f.LEFT_PARENTHESIS_TOKEN&&e.type===f.RIGHT_PARENTHESIS_TOKEN)},jn=function(e){return e.type===f.NUMBER_TOKEN||e.type===f.DIMENSION_TOKEN},Qn=function(e){return e.type===f.PERCENTAGE_TOKEN||jn(e)},Vn=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},Wn={type:f.NUMBER_TOKEN,number:0,flags:Ke},zn={type:f.PERCENTAGE_TOKEN,number:50,flags:Ke},Kn={type:f.PERCENTAGE_TOKEN,number:100,flags:Ke},qn=function(e,t,n){var i=e[0],r=e[1];return[Gn(i,t),Gn("undefined"!==typeof r?r:i,n)]},Gn=function(e,t){if(e.type===f.PERCENTAGE_TOKEN)return e.number/100*t;if(Dn(e))switch(e.unit){case"rem":case"em":return 16*e.number;case"px":default:return e.number}return e.number},Xn="deg",Yn="grad",Jn="rad",Zn="turn",$n={name:"angle",parse:function(e){if(e.type===f.DIMENSION_TOKEN)switch(e.unit){case Xn:return Math.PI*e.number/180;case Yn:return Math.PI/200*e.number;case Jn:return e.number;case Zn:return 2*Math.PI*e.number}throw new Error("Unsupported angle type")}},ei=function(e){return e.type===f.DIMENSION_TOKEN&&(e.unit===Xn||e.unit===Yn||e.unit===Jn||e.unit===Zn)},ti=function(e){var t=e.filter(Mn).map((function(e){return e.value})).join(" ");switch(t){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Wn,Wn];case"to top":case"bottom":return ni(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Wn,Kn];case"to right":case"left":return ni(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Kn,Kn];case"to bottom":case"top":return ni(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Kn,Wn];case"to left":case"right":return ni(270)}return 0},ni=function(e){return Math.PI*e/180},ii={name:"color",parse:function(e){if(e.type===f.FUNCTION){var t=fi[e.name];if("undefined"===typeof t)throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return t(e.values)}if(e.type===f.HASH_TOKEN){if(3===e.value.length){var n=e.value.substring(0,1),i=e.value.substring(1,2),r=e.value.substring(2,3);return si(parseInt(n+n,16),parseInt(i+i,16),parseInt(r+r,16),1)}if(4===e.value.length){n=e.value.substring(0,1),i=e.value.substring(1,2),r=e.value.substring(2,3);var o=e.value.substring(3,4);return si(parseInt(n+n,16),parseInt(i+i,16),parseInt(r+r,16),parseInt(o+o,16)/255)}if(6===e.value.length){n=e.value.substring(0,2),i=e.value.substring(2,4),r=e.value.substring(4,6);return si(parseInt(n,16),parseInt(i,16),parseInt(r,16),1)}if(8===e.value.length){n=e.value.substring(0,2),i=e.value.substring(2,4),r=e.value.substring(4,6),o=e.value.substring(6,8);return si(parseInt(n,16),parseInt(i,16),parseInt(r,16),parseInt(o,16)/255)}}if(e.type===f.IDENT_TOKEN){var s=pi[e.value.toUpperCase()];if("undefined"!==typeof s)return s}return pi.TRANSPARENT}},ri=function(e){return 0===(255&e)},oi=function(e){var t=255&e,n=255&e>>8,i=255&e>>16,r=255&e>>24;return t<255?"rgba("+r+","+i+","+n+","+t/255+")":"rgb("+r+","+i+","+n+")"},si=function(e,t,n,i){return(e<<24|t<<16|n<<8|Math.round(255*i)<<0)>>>0},ai=function(e,t){if(e.type===f.NUMBER_TOKEN)return e.number;if(e.type===f.PERCENTAGE_TOKEN){var n=3===t?1:255;return 3===t?e.number/100*n:Math.round(e.number/100*n)}return 0},ui=function(e){var t=e.filter(Pn);if(3===t.length){var n=t.map(ai),i=n[0],r=n[1],o=n[2];return si(i,r,o,1)}if(4===t.length){var s=t.map(ai),a=(i=s[0],r=s[1],o=s[2],s[3]);return si(i,r,o,a)}return 0};function li(e,t,n){return n<0&&(n+=1),n>=1&&(n-=1),n<1/6?(t-e)*n*6+e:n<.5?t:n<2/3?6*(t-e)*(2/3-n)+e:e}var ci,di,hi=function(e){var t=e.filter(Pn),n=t[0],i=t[1],r=t[2],o=t[3],s=(n.type===f.NUMBER_TOKEN?ni(n.number):$n.parse(n))/(2*Math.PI),a=Qn(i)?i.number/100:0,u=Qn(r)?r.number/100:0,l="undefined"!==typeof o&&Qn(o)?Gn(o,1):1;if(0===a)return si(255*u,255*u,255*u,1);var c=u<=.5?u*(a+1):u+a-u*a,d=2*u-c,h=li(d,c,s+1/3),p=li(d,c,s),g=li(d,c,s-1/3);return si(255*h,255*p,255*g,l)},fi={hsl:hi,hsla:hi,rgb:ui,rgba:ui},pi={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199};(function(e){e[e["VALUE"]=0]="VALUE",e[e["LIST"]=1]="LIST",e[e["IDENT_VALUE"]=2]="IDENT_VALUE",e[e["TYPE_VALUE"]=3]="TYPE_VALUE",e[e["TOKEN_VALUE"]=4]="TOKEN_VALUE"})(ci||(ci={})),function(e){e[e["BORDER_BOX"]=0]="BORDER_BOX",e[e["PADDING_BOX"]=1]="PADDING_BOX",e[e["CONTENT_BOX"]=2]="CONTENT_BOX"}(di||(di={}));var gi,Ai={name:"background-clip",initialValue:"border-box",prefix:!1,type:ci.LIST,parse:function(e){return e.map((function(e){if(Mn(e))switch(e.value){case"padding-box":return di.PADDING_BOX;case"content-box":return di.CONTENT_BOX}return di.BORDER_BOX}))}},mi={name:"background-color",initialValue:"transparent",prefix:!1,type:ci.TYPE_VALUE,format:"color"},vi=function(e){var t=ii.parse(e[0]),n=e[1];return n&&Qn(n)?{color:t,stop:n}:{color:t,stop:null}},_i=function(e,t){var n=e[0],i=e[e.length-1];null===n.stop&&(n.stop=Wn),null===i.stop&&(i.stop=Kn);for(var r=[],o=0,s=0;s<e.length;s++){var a=e[s].stop;if(null!==a){var u=Gn(a,t);u>o?r.push(u):r.push(o),o=u}else r.push(null)}var l=null;for(s=0;s<r.length;s++){var c=r[s];if(null===c)null===l&&(l=s);else if(null!==l){for(var d=s-l,h=r[l-1],f=(c-h)/(d+1),p=1;p<=d;p++)r[l+p-1]=f*p;l=null}}return e.map((function(e,n){var i=e.color;return{color:i,stop:Math.max(Math.min(1,r[n]/t),0)}}))},yi=function(e,t,n){var i=t/2,r=n/2,o=Gn(e[0],t)-i,s=r-Gn(e[1],n);return(Math.atan2(s,o)+2*Math.PI)%(2*Math.PI)},bi=function(e,t,n){var i="number"===typeof e?e:yi(e,t,n),r=Math.abs(t*Math.sin(i))+Math.abs(n*Math.cos(i)),o=t/2,s=n/2,a=r/2,u=Math.sin(i-Math.PI/2)*a,l=Math.cos(i-Math.PI/2)*a;return[r,o-l,o+l,s-u,s+u]},wi=function(e,t){return Math.sqrt(e*e+t*t)},Ci=function(e,t,n,i,r){var o=[[0,0],[0,t],[e,0],[e,t]];return o.reduce((function(e,t){var o=t[0],s=t[1],a=wi(n-o,i-s);return(r?a<e.optimumDistance:a>e.optimumDistance)?{optimumCorner:t,optimumDistance:a}:e}),{optimumDistance:r?1/0:-1/0,optimumCorner:null}).optimumCorner},Si=function(e,t,n,i,r){var o=0,s=0;switch(e.size){case or.CLOSEST_SIDE:e.shape===rr.CIRCLE?o=s=Math.min(Math.abs(t),Math.abs(t-i),Math.abs(n),Math.abs(n-r)):e.shape===rr.ELLIPSE&&(o=Math.min(Math.abs(t),Math.abs(t-i)),s=Math.min(Math.abs(n),Math.abs(n-r)));break;case or.CLOSEST_CORNER:if(e.shape===rr.CIRCLE)o=s=Math.min(wi(t,n),wi(t,n-r),wi(t-i,n),wi(t-i,n-r));else if(e.shape===rr.ELLIPSE){var a=Math.min(Math.abs(n),Math.abs(n-r))/Math.min(Math.abs(t),Math.abs(t-i)),u=Ci(i,r,t,n,!0),l=u[0],c=u[1];o=wi(l-t,(c-n)/a),s=a*o}break;case or.FARTHEST_SIDE:e.shape===rr.CIRCLE?o=s=Math.max(Math.abs(t),Math.abs(t-i),Math.abs(n),Math.abs(n-r)):e.shape===rr.ELLIPSE&&(o=Math.max(Math.abs(t),Math.abs(t-i)),s=Math.max(Math.abs(n),Math.abs(n-r)));break;case or.FARTHEST_CORNER:if(e.shape===rr.CIRCLE)o=s=Math.max(wi(t,n),wi(t,n-r),wi(t-i,n),wi(t-i,n-r));else if(e.shape===rr.ELLIPSE){a=Math.max(Math.abs(n),Math.abs(n-r))/Math.max(Math.abs(t),Math.abs(t-i));var d=Ci(i,r,t,n,!1);l=d[0],c=d[1];o=wi(l-t,(c-n)/a),s=a*o}break}return Array.isArray(e.size)&&(o=Gn(e.size[0],i),s=2===e.size.length?Gn(e.size[1],r):o),[o,s]},Ni=function(e){var t=ni(180),n=[];return Un(e).forEach((function(e,i){if(0===i){var r=e[0];if(r.type===f.IDENT_TOKEN&&"to"===r.value)return void(t=ti(e));if(ei(r))return void(t=$n.parse(r))}var o=vi(e);n.push(o)})),{angle:t,stops:n,type:gi.LINEAR_GRADIENT}},Li=function(e){var t=ni(180),n=[];return Un(e).forEach((function(e,i){if(0===i){var r=e[0];if(r.type===f.IDENT_TOKEN&&-1!==["top","left","right","bottom"].indexOf(r.value))return void(t=ti(e));if(ei(r))return void(t=($n.parse(r)+ni(270))%ni(360))}var o=vi(e);n.push(o)})),{angle:t,stops:n,type:gi.LINEAR_GRADIENT}},Ei=function(e){var t=123;if(e.createRange){var n=e.createRange();if(n.getBoundingClientRect){var i=e.createElement("boundtest");i.style.height=t+"px",i.style.display="block",e.body.appendChild(i),n.selectNode(i);var r=n.getBoundingClientRect(),o=Math.round(r.height);if(e.body.removeChild(i),o===t)return!0}}return!1},xi=function(){return"undefined"!==typeof(new Image).crossOrigin},Oi=function(){return"string"===typeof(new XMLHttpRequest).responseType},Bi=function(e){var t=new Image,n=e.createElement("canvas"),i=n.getContext("2d");if(!i)return!1;t.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{i.drawImage(t,0,0),n.toDataURL()}catch(Pt){return!1}return!0},ki=function(e){return 0===e[0]&&255===e[1]&&0===e[2]&&255===e[3]},Di=function(e){var t=e.createElement("canvas"),n=100;t.width=n,t.height=n;var i=t.getContext("2d");if(!i)return Promise.reject(!1);i.fillStyle="rgb(0, 255, 0)",i.fillRect(0,0,n,n);var r=new Image,o=t.toDataURL();r.src=o;var s=Ii(n,n,0,0,r);return i.fillStyle="red",i.fillRect(0,0,n,n),Mi(s).then((function(t){i.drawImage(t,0,0);var r=i.getImageData(0,0,n,n).data;i.fillStyle="red",i.fillRect(0,0,n,n);var s=e.createElement("div");return s.style.backgroundImage="url("+o+")",s.style.height=n+"px",ki(r)?Mi(Ii(n,n,0,0,s)):Promise.reject(!1)})).then((function(e){return i.drawImage(e,0,0),ki(i.getImageData(0,0,n,n).data)})).catch((function(){return!1}))},Ii=function(e,t,n,i,r){var o="http://www.w3.org/2000/svg",s=document.createElementNS(o,"svg"),a=document.createElementNS(o,"foreignObject");return s.setAttributeNS(null,"width",e.toString()),s.setAttributeNS(null,"height",t.toString()),a.setAttributeNS(null,"width","100%"),a.setAttributeNS(null,"height","100%"),a.setAttributeNS(null,"x",n.toString()),a.setAttributeNS(null,"y",i.toString()),a.setAttributeNS(null,"externalResourcesRequired","true"),s.appendChild(a),a.appendChild(r),s},Mi=function(e){return new Promise((function(t,n){var i=new Image;i.onload=function(){return t(i)},i.onerror=n,i.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(e))}))},Fi={get SUPPORT_RANGE_BOUNDS(){var e=Ei(document);return Object.defineProperty(Fi,"SUPPORT_RANGE_BOUNDS",{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=Bi(document);return Object.defineProperty(Fi,"SUPPORT_SVG_DRAWING",{value:e}),e},get SUPPORT_FOREIGNOBJECT_DRAWING(){var e="function"===typeof Array.from&&"function"===typeof window.fetch?Di(document):Promise.resolve(!1);return Object.defineProperty(Fi,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=xi();return Object.defineProperty(Fi,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e=Oi();return Object.defineProperty(Fi,"SUPPORT_RESPONSE_TYPE",{value:e}),e},get SUPPORT_CORS_XHR(){var e="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Fi,"SUPPORT_CORS_XHR",{value:e}),e}},Ti=function(){function e(e){var t=e.id,n=e.enabled;this.id=t,this.enabled=n,this.start=Date.now()}return e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&("undefined"!==typeof window&&window.console&&"function"===typeof console.debug?console.debug.apply(console,[this.id,this.getTime()+"ms"].concat(e)):this.info.apply(this,e))},e.prototype.getTime=function(){return Date.now()-this.start},e.create=function(t){e.instances[t.id]=new e(t)},e.destroy=function(t){delete e.instances[t]},e.getInstance=function(t){var n=e.instances[t];if("undefined"===typeof n)throw new Error("No logger instance found with id "+t);return n},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&"undefined"!==typeof window&&window.console&&"function"===typeof console.info&&console.info.apply(console,[this.id,this.getTime()+"ms"].concat(e))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&("undefined"!==typeof window&&window.console&&"function"===typeof console.error?console.error.apply(console,[this.id,this.getTime()+"ms"].concat(e)):this.info.apply(this,e))},e.instances={},e}(),Ri=function(){function e(){}return e.create=function(t,n){return e._caches[t]=new Pi(t,n)},e.destroy=function(t){delete e._caches[t]},e.open=function(t){var n=e._caches[t];if("undefined"!==typeof n)return n;throw new Error('Cache with key "'+t+'" not found')},e.getOrigin=function(t){var n=e._link;return n?(n.href=t,n.href=n.href,n.protocol+n.hostname+n.port):"about:blank"},e.isSameOrigin=function(t){return e.getOrigin(t)===e._origin},e.setContext=function(t){e._link=t.document.createElement("a"),e._origin=e.getOrigin(t.location.href)},e.getInstance=function(){var t=e._current;if(null===t)throw new Error("No cache instance attached");return t},e.attachInstance=function(t){e._current=t},e.detachInstance=function(){e._current=null},e._caches={},e._origin="about:blank",e._current=null,e}(),Pi=function(){function e(e,t){this.id=e,this._options=t,this._cache={}}return e.prototype.addImage=function(e){var t=Promise.resolve();return this.has(e)?t:zi(e)||Qi(e)?(this._cache[e]=this.loadImage(e),t):t},e.prototype.match=function(e){return this._cache[e]},e.prototype.loadImage=function(e){return i(this,void 0,void 0,(function(){var t,n,i,o,s=this;return r(this,(function(r){switch(r.label){case 0:return t=Ri.isSameOrigin(e),n=!Vi(e)&&!0===this._options.useCORS&&Fi.SUPPORT_CORS_IMAGES&&!t,i=!Vi(e)&&!t&&"string"===typeof this._options.proxy&&Fi.SUPPORT_CORS_XHR&&!n,t||!1!==this._options.allowTaint||Vi(e)||i||n?(o=e,i?[4,this.proxy(o)]:[3,2]):[2];case 1:o=r.sent(),r.label=2;case 2:return Ti.getInstance(this.id).debug("Added image "+e.substring(0,256)),[4,new Promise((function(e,t){var i=new Image;i.onload=function(){return e(i)},i.onerror=t,(Wi(o)||n)&&(i.crossOrigin="anonymous"),i.src=o,!0===i.complete&&setTimeout((function(){return e(i)}),500),s._options.imageTimeout>0&&setTimeout((function(){return t("Timed out ("+s._options.imageTimeout+"ms) loading image")}),s._options.imageTimeout)}))];case 3:return[2,r.sent()]}}))}))},e.prototype.has=function(e){return"undefined"!==typeof this._cache[e]},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(e){var t=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var i=e.substring(0,256);return new Promise((function(r,o){var s=Fi.SUPPORT_RESPONSE_TYPE?"blob":"text",a=new XMLHttpRequest;if(a.onload=function(){if(200===a.status)if("text"===s)r(a.response);else{var e=new FileReader;e.addEventListener("load",(function(){return r(e.result)}),!1),e.addEventListener("error",(function(e){return o(e)}),!1),e.readAsDataURL(a.response)}else o("Failed to proxy resource "+i+" with status code "+a.status)},a.onerror=o,a.open("GET",n+"?url="+encodeURIComponent(e)+"&responseType="+s),"text"!==s&&a instanceof XMLHttpRequest&&(a.responseType=s),t._options.imageTimeout){var u=t._options.imageTimeout;a.timeout=u,a.ontimeout=function(){return o("Timed out ("+u+"ms) proxying "+i)}}a.send()}))},e}(),Ui=/^data:image\/svg\+xml/i,Hi=/^data:image\/.*;base64,/i,ji=/^data:image\/.*/i,Qi=function(e){return Fi.SUPPORT_SVG_DRAWING||!Ki(e)},Vi=function(e){return ji.test(e)},Wi=function(e){return Hi.test(e)},zi=function(e){return"blob"===e.substr(0,4)},Ki=function(e){return"svg"===e.substr(-3).toLowerCase()||Ui.test(e)},qi=function(e){var t=ni(180),n=[],i=gi.LINEAR_GRADIENT,r=rr.CIRCLE,o=or.FARTHEST_CORNER,s=[];return Un(e).forEach((function(e,t){var r=e[0];if(0===t){if(Mn(r)&&"linear"===r.value)return void(i=gi.LINEAR_GRADIENT);if(Mn(r)&&"radial"===r.value)return void(i=gi.RADIAL_GRADIENT)}if(r.type===f.FUNCTION)if("from"===r.name){var o=ii.parse(r.values[0]);n.push({stop:Wn,color:o})}else if("to"===r.name){o=ii.parse(r.values[0]);n.push({stop:Kn,color:o})}else if("color-stop"===r.name){var s=r.values.filter(Pn);if(2===s.length){o=ii.parse(s[1]);var a=s[0];In(a)&&n.push({stop:{type:f.PERCENTAGE_TOKEN,number:100*a.number,flags:a.flags},color:o})}}})),i===gi.LINEAR_GRADIENT?{angle:(t+ni(180))%ni(360),stops:n,type:i}:{size:o,shape:r,stops:n,position:s,type:i}},Gi="closest-side",Xi="farthest-side",Yi="closest-corner",Ji="farthest-corner",Zi="circle",$i="ellipse",er="cover",tr="contain",nr=function(e){var t=rr.CIRCLE,n=or.FARTHEST_CORNER,i=[],r=[];return Un(e).forEach((function(e,o){var s=!0;if(0===o){var a=!1;s=e.reduce((function(e,i){if(a)if(Mn(i))switch(i.value){case"center":return r.push(zn),e;case"top":case"left":return r.push(Wn),e;case"right":case"bottom":return r.push(Kn),e}else(Qn(i)||jn(i))&&r.push(i);else if(Mn(i))switch(i.value){case Zi:return t=rr.CIRCLE,!1;case $i:return t=rr.ELLIPSE,!1;case"at":return a=!0,!1;case Gi:return n=or.CLOSEST_SIDE,!1;case er:case Xi:return n=or.FARTHEST_SIDE,!1;case tr:case Yi:return n=or.CLOSEST_CORNER,!1;case Ji:return n=or.FARTHEST_CORNER,!1}else if(jn(i)||Qn(i))return Array.isArray(n)||(n=[]),n.push(i),!1;return e}),s)}if(s){var u=vi(e);i.push(u)}})),{size:n,shape:t,stops:i,position:r,type:gi.RADIAL_GRADIENT}},ir=function(e){var t=rr.CIRCLE,n=or.FARTHEST_CORNER,i=[],r=[];return Un(e).forEach((function(e,o){var s=!0;if(0===o?s=e.reduce((function(e,t){if(Mn(t))switch(t.value){case"center":return r.push(zn),!1;case"top":case"left":return r.push(Wn),!1;case"right":case"bottom":return r.push(Kn),!1}else if(Qn(t)||jn(t))return r.push(t),!1;return e}),s):1===o&&(s=e.reduce((function(e,i){if(Mn(i))switch(i.value){case Zi:return t=rr.CIRCLE,!1;case $i:return t=rr.ELLIPSE,!1;case tr:case Gi:return n=or.CLOSEST_SIDE,!1;case Xi:return n=or.FARTHEST_SIDE,!1;case Yi:return n=or.CLOSEST_CORNER,!1;case er:case Ji:return n=or.FARTHEST_CORNER,!1}else if(jn(i)||Qn(i))return Array.isArray(n)||(n=[]),n.push(i),!1;return e}),s)),s){var a=vi(e);i.push(a)}})),{size:n,shape:t,stops:i,position:r,type:gi.RADIAL_GRADIENT}};(function(e){e[e["URL"]=0]="URL",e[e["LINEAR_GRADIENT"]=1]="LINEAR_GRADIENT",e[e["RADIAL_GRADIENT"]=2]="RADIAL_GRADIENT"})(gi||(gi={}));var rr,or,sr=function(e){return e.type===gi.LINEAR_GRADIENT},ar=function(e){return e.type===gi.RADIAL_GRADIENT};(function(e){e[e["CIRCLE"]=0]="CIRCLE",e[e["ELLIPSE"]=1]="ELLIPSE"})(rr||(rr={})),function(e){e[e["CLOSEST_SIDE"]=0]="CLOSEST_SIDE",e[e["FARTHEST_SIDE"]=1]="FARTHEST_SIDE",e[e["CLOSEST_CORNER"]=2]="CLOSEST_CORNER",e[e["FARTHEST_CORNER"]=3]="FARTHEST_CORNER"}(or||(or={}));var ur={name:"image",parse:function(e){if(e.type===f.URL_TOKEN){var t={url:e.value,type:gi.URL};return Ri.getInstance().addImage(e.value),t}if(e.type===f.FUNCTION){var n=dr[e.name];if("undefined"===typeof n)throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return n(e.values)}throw new Error("Unsupported image type")}};function lr(e){return e.type!==f.FUNCTION||dr[e.name]}var cr,dr={"linear-gradient":Ni,"-moz-linear-gradient":Li,"-ms-linear-gradient":Li,"-o-linear-gradient":Li,"-webkit-linear-gradient":Li,"radial-gradient":nr,"-moz-radial-gradient":ir,"-ms-radial-gradient":ir,"-o-radial-gradient":ir,"-webkit-radial-gradient":ir,"-webkit-gradient":qi},hr={name:"background-image",initialValue:"none",type:ci.LIST,prefix:!1,parse:function(e){if(0===e.length)return[];var t=e[0];return t.type===f.IDENT_TOKEN&&"none"===t.value?[]:e.filter((function(e){return Pn(e)&&lr(e)})).map(ur.parse)}},fr={name:"background-origin",initialValue:"border-box",prefix:!1,type:ci.LIST,parse:function(e){return e.map((function(e){if(Mn(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},pr={name:"background-position",initialValue:"0% 0%",type:ci.LIST,prefix:!1,parse:function(e){return Un(e).map((function(e){return e.filter(Qn)})).map(Vn)}};(function(e){e[e["REPEAT"]=0]="REPEAT",e[e["NO_REPEAT"]=1]="NO_REPEAT",e[e["REPEAT_X"]=2]="REPEAT_X",e[e["REPEAT_Y"]=3]="REPEAT_Y"})(cr||(cr={}));var gr,Ar={name:"background-repeat",initialValue:"repeat",prefix:!1,type:ci.LIST,parse:function(e){return Un(e).map((function(e){return e.filter(Mn).map((function(e){return e.value})).join(" ")})).map(mr)}},mr=function(e){switch(e){case"no-repeat":return cr.NO_REPEAT;case"repeat-x":case"repeat no-repeat":return cr.REPEAT_X;case"repeat-y":case"no-repeat repeat":return cr.REPEAT_Y;case"repeat":default:return cr.REPEAT}};(function(e){e["AUTO"]="auto",e["CONTAIN"]="contain",e["COVER"]="cover"})(gr||(gr={}));var vr,_r={name:"background-size",initialValue:"0",prefix:!1,type:ci.LIST,parse:function(e){return Un(e).map((function(e){return e.filter(yr)}))}},yr=function(e){return Mn(e)||Qn(e)},br=function(e){return{name:"border-"+e+"-color",initialValue:"transparent",prefix:!1,type:ci.TYPE_VALUE,format:"color"}},wr=br("top"),Cr=br("right"),Sr=br("bottom"),Nr=br("left"),Lr=function(e){return{name:"border-radius-"+e,initialValue:"0 0",prefix:!1,type:ci.LIST,parse:function(e){return Vn(e.filter(Qn))}}},Er=Lr("top-left"),xr=Lr("top-right"),Or=Lr("bottom-right"),Br=Lr("bottom-left");(function(e){e[e["NONE"]=0]="NONE",e[e["SOLID"]=1]="SOLID"})(vr||(vr={}));var kr,Dr=function(e){return{name:"border-"+e+"-style",initialValue:"solid",prefix:!1,type:ci.IDENT_VALUE,parse:function(e){switch(e){case"none":return vr.NONE}return vr.SOLID}}},Ir=Dr("top"),Mr=Dr("right"),Fr=Dr("bottom"),Tr=Dr("left"),Rr=function(e){return{name:"border-"+e+"-width",initialValue:"0",type:ci.VALUE,prefix:!1,parse:function(e){return Dn(e)?e.number:0}}},Pr=Rr("top"),Ur=Rr("right"),Hr=Rr("bottom"),jr=Rr("left"),Qr={name:"color",initialValue:"transparent",prefix:!1,type:ci.TYPE_VALUE,format:"color"},Vr={name:"display",initialValue:"inline-block",prefix:!1,type:ci.LIST,parse:function(e){return e.filter(Mn).reduce((function(e,t){return e|Wr(t.value)}),0)}},Wr=function(e){switch(e){case"block":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0};(function(e){e[e["NONE"]=0]="NONE",e[e["LEFT"]=1]="LEFT",e[e["RIGHT"]=2]="RIGHT",e[e["INLINE_START"]=3]="INLINE_START",e[e["INLINE_END"]=4]="INLINE_END"})(kr||(kr={}));var zr,Kr={name:"float",initialValue:"none",prefix:!1,type:ci.IDENT_VALUE,parse:function(e){switch(e){case"left":return kr.LEFT;case"right":return kr.RIGHT;case"inline-start":return kr.INLINE_START;case"inline-end":return kr.INLINE_END}return kr.NONE}},qr={name:"letter-spacing",initialValue:"0",prefix:!1,type:ci.VALUE,parse:function(e){return e.type===f.IDENT_TOKEN&&"normal"===e.value?0:e.type===f.NUMBER_TOKEN||e.type===f.DIMENSION_TOKEN?e.number:0}};(function(e){e["NORMAL"]="normal",e["STRICT"]="strict"})(zr||(zr={}));var Gr,Xr={name:"line-break",initialValue:"normal",prefix:!1,type:ci.IDENT_VALUE,parse:function(e){switch(e){case"strict":return zr.STRICT;case"normal":default:return zr.NORMAL}}},Yr={name:"line-height",initialValue:"normal",prefix:!1,type:ci.TOKEN_VALUE},Jr=function(e,t){return Mn(e)&&"normal"===e.value?1.2*t:e.type===f.NUMBER_TOKEN?t*e.number:Qn(e)?Gn(e,t):t},Zr={name:"list-style-image",initialValue:"none",type:ci.VALUE,prefix:!1,parse:function(e){return e.type===f.IDENT_TOKEN&&"none"===e.value?null:ur.parse(e)}};(function(e){e[e["INSIDE"]=0]="INSIDE",e[e["OUTSIDE"]=1]="OUTSIDE"})(Gr||(Gr={}));var $r,eo={name:"list-style-position",initialValue:"outside",prefix:!1,type:ci.IDENT_VALUE,parse:function(e){switch(e){case"inside":return Gr.INSIDE;case"outside":default:return Gr.OUTSIDE}}};(function(e){e[e["NONE"]=-1]="NONE",e[e["DISC"]=0]="DISC",e[e["CIRCLE"]=1]="CIRCLE",e[e["SQUARE"]=2]="SQUARE",e[e["DECIMAL"]=3]="DECIMAL",e[e["CJK_DECIMAL"]=4]="CJK_DECIMAL",e[e["DECIMAL_LEADING_ZERO"]=5]="DECIMAL_LEADING_ZERO",e[e["LOWER_ROMAN"]=6]="LOWER_ROMAN",e[e["UPPER_ROMAN"]=7]="UPPER_ROMAN",e[e["LOWER_GREEK"]=8]="LOWER_GREEK",e[e["LOWER_ALPHA"]=9]="LOWER_ALPHA",e[e["UPPER_ALPHA"]=10]="UPPER_ALPHA",e[e["ARABIC_INDIC"]=11]="ARABIC_INDIC",e[e["ARMENIAN"]=12]="ARMENIAN",e[e["BENGALI"]=13]="BENGALI",e[e["CAMBODIAN"]=14]="CAMBODIAN",e[e["CJK_EARTHLY_BRANCH"]=15]="CJK_EARTHLY_BRANCH",e[e["CJK_HEAVENLY_STEM"]=16]="CJK_HEAVENLY_STEM",e[e["CJK_IDEOGRAPHIC"]=17]="CJK_IDEOGRAPHIC",e[e["DEVANAGARI"]=18]="DEVANAGARI",e[e["ETHIOPIC_NUMERIC"]=19]="ETHIOPIC_NUMERIC",e[e["GEORGIAN"]=20]="GEORGIAN",e[e["GUJARATI"]=21]="GUJARATI",e[e["GURMUKHI"]=22]="GURMUKHI",e[e["HEBREW"]=22]="HEBREW",e[e["HIRAGANA"]=23]="HIRAGANA",e[e["HIRAGANA_IROHA"]=24]="HIRAGANA_IROHA",e[e["JAPANESE_FORMAL"]=25]="JAPANESE_FORMAL",e[e["JAPANESE_INFORMAL"]=26]="JAPANESE_INFORMAL",e[e["KANNADA"]=27]="KANNADA",e[e["KATAKANA"]=28]="KATAKANA",e[e["KATAKANA_IROHA"]=29]="KATAKANA_IROHA",e[e["KHMER"]=30]="KHMER",e[e["KOREAN_HANGUL_FORMAL"]=31]="KOREAN_HANGUL_FORMAL",e[e["KOREAN_HANJA_FORMAL"]=32]="KOREAN_HANJA_FORMAL",e[e["KOREAN_HANJA_INFORMAL"]=33]="KOREAN_HANJA_INFORMAL",e[e["LAO"]=34]="LAO",e[e["LOWER_ARMENIAN"]=35]="LOWER_ARMENIAN",e[e["MALAYALAM"]=36]="MALAYALAM",e[e["MONGOLIAN"]=37]="MONGOLIAN",e[e["MYANMAR"]=38]="MYANMAR",e[e["ORIYA"]=39]="ORIYA",e[e["PERSIAN"]=40]="PERSIAN",e[e["SIMP_CHINESE_FORMAL"]=41]="SIMP_CHINESE_FORMAL",e[e["SIMP_CHINESE_INFORMAL"]=42]="SIMP_CHINESE_INFORMAL",e[e["TAMIL"]=43]="TAMIL",e[e["TELUGU"]=44]="TELUGU",e[e["THAI"]=45]="THAI",e[e["TIBETAN"]=46]="TIBETAN",e[e["TRAD_CHINESE_FORMAL"]=47]="TRAD_CHINESE_FORMAL",e[e["TRAD_CHINESE_INFORMAL"]=48]="TRAD_CHINESE_INFORMAL",e[e["UPPER_ARMENIAN"]=49]="UPPER_ARMENIAN",e[e["DISCLOSURE_OPEN"]=50]="DISCLOSURE_OPEN",e[e["DISCLOSURE_CLOSED"]=51]="DISCLOSURE_CLOSED"})($r||($r={}));var to,no={name:"list-style-type",initialValue:"none",prefix:!1,type:ci.IDENT_VALUE,parse:function(e){switch(e){case"disc":return $r.DISC;case"circle":return $r.CIRCLE;case"square":return $r.SQUARE;case"decimal":return $r.DECIMAL;case"cjk-decimal":return $r.CJK_DECIMAL;case"decimal-leading-zero":return $r.DECIMAL_LEADING_ZERO;case"lower-roman":return $r.LOWER_ROMAN;case"upper-roman":return $r.UPPER_ROMAN;case"lower-greek":return $r.LOWER_GREEK;case"lower-alpha":return $r.LOWER_ALPHA;case"upper-alpha":return $r.UPPER_ALPHA;case"arabic-indic":return $r.ARABIC_INDIC;case"armenian":return $r.ARMENIAN;case"bengali":return $r.BENGALI;case"cambodian":return $r.CAMBODIAN;case"cjk-earthly-branch":return $r.CJK_EARTHLY_BRANCH;case"cjk-heavenly-stem":return $r.CJK_HEAVENLY_STEM;case"cjk-ideographic":return $r.CJK_IDEOGRAPHIC;case"devanagari":return $r.DEVANAGARI;case"ethiopic-numeric":return $r.ETHIOPIC_NUMERIC;case"georgian":return $r.GEORGIAN;case"gujarati":return $r.GUJARATI;case"gurmukhi":return $r.GURMUKHI;case"hebrew":return $r.HEBREW;case"hiragana":return $r.HIRAGANA;case"hiragana-iroha":return $r.HIRAGANA_IROHA;case"japanese-formal":return $r.JAPANESE_FORMAL;case"japanese-informal":return $r.JAPANESE_INFORMAL;case"kannada":return $r.KANNADA;case"katakana":return $r.KATAKANA;case"katakana-iroha":return $r.KATAKANA_IROHA;case"khmer":return $r.KHMER;case"korean-hangul-formal":return $r.KOREAN_HANGUL_FORMAL;case"korean-hanja-formal":return $r.KOREAN_HANJA_FORMAL;case"korean-hanja-informal":return $r.KOREAN_HANJA_INFORMAL;case"lao":return $r.LAO;case"lower-armenian":return $r.LOWER_ARMENIAN;case"malayalam":return $r.MALAYALAM;case"mongolian":return $r.MONGOLIAN;case"myanmar":return $r.MYANMAR;case"oriya":return $r.ORIYA;case"persian":return $r.PERSIAN;case"simp-chinese-formal":return $r.SIMP_CHINESE_FORMAL;case"simp-chinese-informal":return $r.SIMP_CHINESE_INFORMAL;case"tamil":return $r.TAMIL;case"telugu":return $r.TELUGU;case"thai":return $r.THAI;case"tibetan":return $r.TIBETAN;case"trad-chinese-formal":return $r.TRAD_CHINESE_FORMAL;case"trad-chinese-informal":return $r.TRAD_CHINESE_INFORMAL;case"upper-armenian":return $r.UPPER_ARMENIAN;case"disclosure-open":return $r.DISCLOSURE_OPEN;case"disclosure-closed":return $r.DISCLOSURE_CLOSED;case"none":default:return $r.NONE}}},io=function(e){return{name:"margin-"+e,initialValue:"0",prefix:!1,type:ci.TOKEN_VALUE}},ro=io("top"),oo=io("right"),so=io("bottom"),ao=io("left");(function(e){e[e["VISIBLE"]=0]="VISIBLE",e[e["HIDDEN"]=1]="HIDDEN",e[e["SCROLL"]=2]="SCROLL",e[e["AUTO"]=3]="AUTO"})(to||(to={}));var uo,lo={name:"overflow",initialValue:"visible",prefix:!1,type:ci.LIST,parse:function(e){return e.filter(Mn).map((function(e){switch(e.value){case"hidden":return to.HIDDEN;case"scroll":return to.SCROLL;case"auto":return to.AUTO;case"visible":default:return to.VISIBLE}}))}};(function(e){e["NORMAL"]="normal",e["BREAK_WORD"]="break-word"})(uo||(uo={}));var co,ho={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:ci.IDENT_VALUE,parse:function(e){switch(e){case"break-word":return uo.BREAK_WORD;case"normal":default:return uo.NORMAL}}},fo=function(e){return{name:"padding-"+e,initialValue:"0",prefix:!1,type:ci.TYPE_VALUE,format:"length-percentage"}},po=fo("top"),go=fo("right"),Ao=fo("bottom"),mo=fo("left");(function(e){e[e["LEFT"]=0]="LEFT",e[e["CENTER"]=1]="CENTER",e[e["RIGHT"]=2]="RIGHT"})(co||(co={}));var vo,_o={name:"text-align",initialValue:"left",prefix:!1,type:ci.IDENT_VALUE,parse:function(e){switch(e){case"right":return co.RIGHT;case"center":case"justify":return co.CENTER;case"left":default:return co.LEFT}}};(function(e){e[e["STATIC"]=0]="STATIC",e[e["RELATIVE"]=1]="RELATIVE",e[e["ABSOLUTE"]=2]="ABSOLUTE",e[e["FIXED"]=3]="FIXED",e[e["STICKY"]=4]="STICKY"})(vo||(vo={}));var yo,bo={name:"position",initialValue:"static",prefix:!1,type:ci.IDENT_VALUE,parse:function(e){switch(e){case"relative":return vo.RELATIVE;case"absolute":return vo.ABSOLUTE;case"fixed":return vo.FIXED;case"sticky":return vo.STICKY}return vo.STATIC}},wo={name:"text-shadow",initialValue:"none",type:ci.LIST,prefix:!1,parse:function(e){return 1===e.length&&Tn(e[0],"none")?[]:Un(e).map((function(e){for(var t={color:pi.TRANSPARENT,offsetX:Wn,offsetY:Wn,blur:Wn},n=0,i=0;i<e.length;i++){var r=e[i];jn(r)?(0===n?t.offsetX=r:1===n?t.offsetY=r:t.blur=r,n++):t.color=ii.parse(r)}return t}))}};(function(e){e[e["NONE"]=0]="NONE",e[e["LOWERCASE"]=1]="LOWERCASE",e[e["UPPERCASE"]=2]="UPPERCASE",e[e["CAPITALIZE"]=3]="CAPITALIZE"})(yo||(yo={}));var Co,So={name:"text-transform",initialValue:"none",prefix:!1,type:ci.IDENT_VALUE,parse:function(e){switch(e){case"uppercase":return yo.UPPERCASE;case"lowercase":return yo.LOWERCASE;case"capitalize":return yo.CAPITALIZE}return yo.NONE}},No={name:"transform",initialValue:"none",prefix:!0,type:ci.VALUE,parse:function(e){if(e.type===f.IDENT_TOKEN&&"none"===e.value)return null;if(e.type===f.FUNCTION){var t=xo[e.name];if("undefined"===typeof t)throw new Error('Attempting to parse an unsupported transform function "'+e.name+'"');return t(e.values)}return null}},Lo=function(e){var t=e.filter((function(e){return e.type===f.NUMBER_TOKEN})).map((function(e){return e.number}));return 6===t.length?t:null},Eo=function(e){var t=e.filter((function(e){return e.type===f.NUMBER_TOKEN})).map((function(e){return e.number})),n=t[0],i=t[1],r=(t[2],t[3],t[4]),o=t[5],s=(t[6],t[7],t[8],t[9],t[10],t[11],t[12]),a=t[13];t[14],t[15];return 16===t.length?[n,i,r,o,s,a]:null},xo={matrix:Lo,matrix3d:Eo},Oo={type:f.PERCENTAGE_TOKEN,number:50,flags:Ke},Bo=[Oo,Oo],ko={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:ci.LIST,parse:function(e){var t=e.filter(Qn);return 2!==t.length?Bo:[t[0],t[1]]}};(function(e){e[e["VISIBLE"]=0]="VISIBLE",e[e["HIDDEN"]=1]="HIDDEN",e[e["COLLAPSE"]=2]="COLLAPSE"})(Co||(Co={}));var Do,Io={name:"visible",initialValue:"none",prefix:!1,type:ci.IDENT_VALUE,parse:function(e){switch(e){case"hidden":return Co.HIDDEN;case"collapse":return Co.COLLAPSE;case"visible":default:return Co.VISIBLE}}};(function(e){e["NORMAL"]="normal",e["BREAK_ALL"]="break-all",e["KEEP_ALL"]="keep-all"})(Do||(Do={}));var Mo,Fo={name:"word-break",initialValue:"normal",prefix:!1,type:ci.IDENT_VALUE,parse:function(e){switch(e){case"break-all":return Do.BREAK_ALL;case"keep-all":return Do.KEEP_ALL;case"normal":default:return Do.NORMAL}}},To={name:"z-index",initialValue:"auto",prefix:!1,type:ci.VALUE,parse:function(e){if(e.type===f.IDENT_TOKEN)return{auto:!0,order:0};if(In(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},Ro={name:"opacity",initialValue:"1",type:ci.VALUE,prefix:!1,parse:function(e){return In(e)?e.number:1}},Po={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:ci.TYPE_VALUE,format:"color"},Uo={name:"text-decoration-line",initialValue:"none",prefix:!1,type:ci.LIST,parse:function(e){return e.filter(Mn).map((function(e){switch(e.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0})).filter((function(e){return 0!==e}))}},Ho={name:"font-family",initialValue:"",prefix:!1,type:ci.LIST,parse:function(e){return e.filter(jo).map((function(e){return e.value}))}},jo=function(e){return e.type===f.STRING_TOKEN||e.type===f.IDENT_TOKEN},Qo={name:"font-size",initialValue:"0",prefix:!1,type:ci.TYPE_VALUE,format:"length"},Vo={name:"font-weight",initialValue:"normal",type:ci.VALUE,prefix:!1,parse:function(e){if(In(e))return e.number;if(Mn(e))switch(e.value){case"bold":return 700;case"normal":default:return 400}return 400}},Wo={name:"font-variant",initialValue:"none",type:ci.LIST,prefix:!1,parse:function(e){return e.filter(Mn).map((function(e){return e.value}))}};(function(e){e["NORMAL"]="normal",e["ITALIC"]="italic",e["OBLIQUE"]="oblique"})(Mo||(Mo={}));var zo,Ko={name:"font-style",initialValue:"normal",prefix:!1,type:ci.IDENT_VALUE,parse:function(e){switch(e){case"oblique":return Mo.OBLIQUE;case"italic":return Mo.ITALIC;case"normal":default:return Mo.NORMAL}}},qo=function(e,t){return 0!==(e&t)},Go={name:"content",initialValue:"none",type:ci.LIST,prefix:!1,parse:function(e){if(0===e.length)return[];var t=e[0];return t.type===f.IDENT_TOKEN&&"none"===t.value?[]:e}},Xo={name:"counter-increment",initialValue:"none",prefix:!0,type:ci.LIST,parse:function(e){if(0===e.length)return null;var t=e[0];if(t.type===f.IDENT_TOKEN&&"none"===t.value)return null;for(var n=[],i=e.filter(Rn),r=0;r<i.length;r++){var o=i[r],s=i[r+1];if(o.type===f.IDENT_TOKEN){var a=s&&In(s)?s.number:1;n.push({counter:o.value,increment:a})}}return n}},Yo={name:"counter-reset",initialValue:"none",prefix:!0,type:ci.LIST,parse:function(e){if(0===e.length)return[];for(var t=[],n=e.filter(Rn),i=0;i<n.length;i++){var r=n[i],o=n[i+1];if(Mn(r)&&"none"!==r.value){var s=o&&In(o)?o.number:0;t.push({counter:r.value,reset:s})}}return t}},Jo={name:"quotes",initialValue:"none",prefix:!0,type:ci.LIST,parse:function(e){if(0===e.length)return null;var t=e[0];if(t.type===f.IDENT_TOKEN&&"none"===t.value)return null;var n=[],i=e.filter(Fn);if(i.length%2!==0)return null;for(var r=0;r<i.length;r+=2){var o=i[r].value,s=i[r+1].value;n.push({open:o,close:s})}return n}},Zo=function(e,t,n){if(!e)return"";var i=e[Math.min(t,e.length-1)];return i?n?i.open:i.close:""},$o={name:"box-shadow",initialValue:"none",type:ci.LIST,prefix:!1,parse:function(e){return 1===e.length&&Tn(e[0],"none")?[]:Un(e).map((function(e){for(var t={color:255,offsetX:Wn,offsetY:Wn,blur:Wn,spread:Wn,inset:!1},n=0,i=0;i<e.length;i++){var r=e[i];Tn(r,"inset")?t.inset=!0:jn(r)?(0===n?t.offsetX=r:1===n?t.offsetY=r:2===n?t.blur=r:t.spread=r,n++):t.color=ii.parse(r)}return t}))}},es=function(){function e(e){this.backgroundClip=is(Ai,e.backgroundClip),this.backgroundColor=is(mi,e.backgroundColor),this.backgroundImage=is(hr,e.backgroundImage),this.backgroundOrigin=is(fr,e.backgroundOrigin),this.backgroundPosition=is(pr,e.backgroundPosition),this.backgroundRepeat=is(Ar,e.backgroundRepeat),this.backgroundSize=is(_r,e.backgroundSize),this.borderTopColor=is(wr,e.borderTopColor),this.borderRightColor=is(Cr,e.borderRightColor),this.borderBottomColor=is(Sr,e.borderBottomColor),this.borderLeftColor=is(Nr,e.borderLeftColor),this.borderTopLeftRadius=is(Er,e.borderTopLeftRadius),this.borderTopRightRadius=is(xr,e.borderTopRightRadius),this.borderBottomRightRadius=is(Or,e.borderBottomRightRadius),this.borderBottomLeftRadius=is(Br,e.borderBottomLeftRadius),this.borderTopStyle=is(Ir,e.borderTopStyle),this.borderRightStyle=is(Mr,e.borderRightStyle),this.borderBottomStyle=is(Fr,e.borderBottomStyle),this.borderLeftStyle=is(Tr,e.borderLeftStyle),this.borderTopWidth=is(Pr,e.borderTopWidth),this.borderRightWidth=is(Ur,e.borderRightWidth),this.borderBottomWidth=is(Hr,e.borderBottomWidth),this.borderLeftWidth=is(jr,e.borderLeftWidth),this.boxShadow=is($o,e.boxShadow),this.color=is(Qr,e.color),this.display=is(Vr,e.display),this.float=is(Kr,e.cssFloat),this.fontFamily=is(Ho,e.fontFamily),this.fontSize=is(Qo,e.fontSize),this.fontStyle=is(Ko,e.fontStyle),this.fontVariant=is(Wo,e.fontVariant),this.fontWeight=is(Vo,e.fontWeight),this.letterSpacing=is(qr,e.letterSpacing),this.lineBreak=is(Xr,e.lineBreak),this.lineHeight=is(Yr,e.lineHeight),this.listStyleImage=is(Zr,e.listStyleImage),this.listStylePosition=is(eo,e.listStylePosition),this.listStyleType=is(no,e.listStyleType),this.marginTop=is(ro,e.marginTop),this.marginRight=is(oo,e.marginRight),this.marginBottom=is(so,e.marginBottom),this.marginLeft=is(ao,e.marginLeft),this.opacity=is(Ro,e.opacity);var t=is(lo,e.overflow);this.overflowX=t[0],this.overflowY=t[t.length>1?1:0],this.overflowWrap=is(ho,e.overflowWrap),this.paddingTop=is(po,e.paddingTop),this.paddingRight=is(go,e.paddingRight),this.paddingBottom=is(Ao,e.paddingBottom),this.paddingLeft=is(mo,e.paddingLeft),this.position=is(bo,e.position),this.textAlign=is(_o,e.textAlign),this.textDecorationColor=is(Po,e.textDecorationColor||e.color),this.textDecorationLine=is(Uo,e.textDecorationLine),this.textShadow=is(wo,e.textShadow),this.textTransform=is(So,e.textTransform),this.transform=is(No,e.transform),this.transformOrigin=is(ko,e.transformOrigin),this.visibility=is(Io,e.visibility),this.wordBreak=is(Fo,e.wordBreak),this.zIndex=is(To,e.zIndex)}return e.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===Co.VISIBLE},e.prototype.isTransparent=function(){return ri(this.backgroundColor)},e.prototype.isTransformed=function(){return null!==this.transform},e.prototype.isPositioned=function(){return this.position!==vo.STATIC},e.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},e.prototype.isFloating=function(){return this.float!==kr.NONE},e.prototype.isInlineLevel=function(){return qo(this.display,4)||qo(this.display,33554432)||qo(this.display,268435456)||qo(this.display,536870912)||qo(this.display,67108864)||qo(this.display,134217728)},e}(),ts=function(){function e(e){this.content=is(Go,e.content),this.quotes=is(Jo,e.quotes)}return e}(),ns=function(){function e(e){this.counterIncrement=is(Xo,e.counterIncrement),this.counterReset=is(Yo,e.counterReset)}return e}(),is=function(e,t){var n=new Bn,i=null!==t&&"undefined"!==typeof t?t.toString():e.initialValue;n.write(i);var r=new kn(n.read());switch(e.type){case ci.IDENT_VALUE:var o=r.parseComponentValue();return e.parse(Mn(o)?o.value:e.initialValue);case ci.VALUE:return e.parse(r.parseComponentValue());case ci.LIST:return e.parse(r.parseComponentValues());case ci.TOKEN_VALUE:return r.parseComponentValue();case ci.TYPE_VALUE:switch(e.format){case"angle":return $n.parse(r.parseComponentValue());case"color":return ii.parse(r.parseComponentValue());case"image":return ur.parse(r.parseComponentValue());case"length":var s=r.parseComponentValue();return jn(s)?s:Wn;case"length-percentage":var a=r.parseComponentValue();return Qn(a)?a:Wn}}throw new Error("Attempting to parse unsupported css format type "+e.format)},rs=function(){function e(e){this.styles=new es(window.getComputedStyle(e,null)),this.textNodes=[],this.elements=[],null!==this.styles.transform&&js(e)&&(e.style.transform="none"),this.bounds=s(e),this.flags=0}return e}(),os=function(){function e(e,t){this.text=e,this.bounds=t}return e}(),ss=function(e,t,n){var i=ls(e,t),r=[],o=0;return i.forEach((function(e){if(t.textDecorationLine.length||e.trim().length>0)if(Fi.SUPPORT_RANGE_BOUNDS)r.push(new os(e,us(n,o,e.length)));else{var i=n.splitText(e.length);r.push(new os(e,as(n))),n=i}else Fi.SUPPORT_RANGE_BOUNDS||(n=n.splitText(e.length));o+=e.length})),r},as=function(e){var t=e.ownerDocument;if(t){var n=t.createElement("html2canvaswrapper");n.appendChild(e.cloneNode(!0));var i=e.parentNode;if(i){i.replaceChild(n,e);var r=s(n);return n.firstChild&&i.replaceChild(n.firstChild,n),r}}return new o(0,0,0,0)},us=function(e,t,n){var i=e.ownerDocument;if(!i)throw new Error("Node has no owner document");var r=i.createRange();return r.setStart(e,t),r.setEnd(e,t+n),o.fromClientRect(r.getBoundingClientRect())},ls=function(e,t){return 0!==t.letterSpacing?u(e).map((function(e){return l(e)})):cs(e,t)},cs=function(e,t){var n,i=Ve(e,{lineBreak:t.lineBreak,wordBreak:t.overflowWrap===uo.BREAK_WORD?"break-word":t.wordBreak}),r=[];while(!(n=i.next()).done)n.value&&r.push(n.value.slice());return r},ds=function(){function e(e,t){this.text=hs(e.data,t.textTransform),this.textBounds=ss(this.text,t,e)}return e}(),hs=function(e,t){switch(t){case yo.LOWERCASE:return e.toLowerCase();case yo.CAPITALIZE:return e.replace(fs,ps);case yo.UPPERCASE:return e.toUpperCase();default:return e}},fs=/(^|\s|:|-|\(|\))([a-z])/g,ps=function(e,t,n){return e.length>0?t+n.toUpperCase():e},gs=function(e){function n(t){var n=e.call(this,t)||this;return n.src=t.currentSrc||t.src,n.intrinsicWidth=t.naturalWidth,n.intrinsicHeight=t.naturalHeight,Ri.getInstance().addImage(n.src),n}return t(n,e),n}(rs),As=function(e){function n(t){var n=e.call(this,t)||this;return n.canvas=t,n.intrinsicWidth=t.width,n.intrinsicHeight=t.height,n}return t(n,e),n}(rs),ms=function(e){function n(t){var n=e.call(this,t)||this,i=new XMLSerializer;return n.svg="data:image/svg+xml,"+encodeURIComponent(i.serializeToString(t)),n.intrinsicWidth=t.width.baseVal.value,n.intrinsicHeight=t.height.baseVal.value,Ri.getInstance().addImage(n.svg),n}return t(n,e),n}(rs),vs=function(e){function n(t){var n=e.call(this,t)||this;return n.value=t.value,n}return t(n,e),n}(rs),_s=function(e){function n(t){var n=e.call(this,t)||this;return n.start=t.start,n.reversed="boolean"===typeof t.reversed&&!0===t.reversed,n}return t(n,e),n}(rs),ys=[{type:f.DIMENSION_TOKEN,flags:0,unit:"px",number:3}],bs=[{type:f.PERCENTAGE_TOKEN,flags:0,number:50}],ws=function(e){return e.width>e.height?new o(e.left+(e.width-e.height)/2,e.top,e.height,e.height):e.width<e.height?new o(e.left,e.top+(e.height-e.width)/2,e.width,e.width):e},Cs=function(e){var t=e.type===Ls?new Array(e.value.length+1).join("\u2022"):e.value;return 0===t.length?e.placeholder||"":t},Ss="checkbox",Ns="radio",Ls="password",Es=707406591,xs=function(e){function n(t){var n=e.call(this,t)||this;switch(n.type=t.type.toLowerCase(),n.checked=t.checked,n.value=Cs(t),n.type!==Ss&&n.type!==Ns||(n.styles.backgroundColor=3739148031,n.styles.borderTopColor=n.styles.borderRightColor=n.styles.borderBottomColor=n.styles.borderLeftColor=2779096575,n.styles.borderTopWidth=n.styles.borderRightWidth=n.styles.borderBottomWidth=n.styles.borderLeftWidth=1,n.styles.borderTopStyle=n.styles.borderRightStyle=n.styles.borderBottomStyle=n.styles.borderLeftStyle=vr.SOLID,n.styles.backgroundClip=[di.BORDER_BOX],n.styles.backgroundOrigin=[0],n.bounds=ws(n.bounds)),n.type){case Ss:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=ys;break;case Ns:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=bs;break}return n}return t(n,e),n}(rs),Os=function(e){function n(t){var n=e.call(this,t)||this,i=t.options[t.selectedIndex||0];return n.value=i&&i.text||"",n}return t(n,e),n}(rs),Bs=function(e){function n(t){var n=e.call(this,t)||this;return n.value=t.value,n}return t(n,e),n}(rs),ks=function(e){return ii.parse(kn.create(e).parseComponentValue())},Ds=function(e){function n(t){var n=e.call(this,t)||this;n.src=t.src,n.width=parseInt(t.width,10)||0,n.height=parseInt(t.height,10)||0,n.backgroundColor=n.styles.backgroundColor;try{if(t.contentWindow&&t.contentWindow.document&&t.contentWindow.document.documentElement){n.tree=Ts(t.contentWindow.document.documentElement);var i=t.contentWindow.document.documentElement?ks(getComputedStyle(t.contentWindow.document.documentElement).backgroundColor):pi.TRANSPARENT,r=t.contentWindow.document.body?ks(getComputedStyle(t.contentWindow.document.body).backgroundColor):pi.TRANSPARENT;n.backgroundColor=ri(i)?ri(r)?n.styles.backgroundColor:r:i}}catch(Pt){}return n}return t(n,e),n}(rs),Is=["OL","UL","MENU"],Ms=function(e,t,n){for(var i=e.firstChild,r=void 0;i;i=r)if(r=i.nextSibling,Us(i)&&i.data.trim().length>0)t.textNodes.push(new ds(i,t.styles));else if(Hs(i)){var o=Fs(i);o.styles.isVisible()&&(Rs(i,o,n)?o.flags|=4:Ps(o.styles)&&(o.flags|=2),-1!==Is.indexOf(i.tagName)&&(o.flags|=8),t.elements.push(o),$s(i)||Ks(i)||ea(i)||Ms(i,o,n))}},Fs=function(e){return Xs(e)?new gs(e):Gs(e)?new As(e):Ks(e)?new ms(e):Qs(e)?new vs(e):Vs(e)?new _s(e):Ws(e)?new xs(e):ea(e)?new Os(e):$s(e)?new Bs(e):Ys(e)?new Ds(e):new rs(e)},Ts=function(e){var t=Fs(e);return t.flags|=4,Ms(e,t,t),t},Rs=function(e,t,n){return t.styles.isPositionedWithZIndex()||t.styles.opacity<1||t.styles.isTransformed()||qs(e)&&n.styles.isTransparent()},Ps=function(e){return e.isPositioned()||e.isFloating()},Us=function(e){return e.nodeType===Node.TEXT_NODE},Hs=function(e){return e.nodeType===Node.ELEMENT_NODE},js=function(e){return"undefined"!==typeof e.style},Qs=function(e){return"LI"===e.tagName},Vs=function(e){return"OL"===e.tagName},Ws=function(e){return"INPUT"===e.tagName},zs=function(e){return"HTML"===e.tagName},Ks=function(e){return"svg"===e.tagName},qs=function(e){return"BODY"===e.tagName},Gs=function(e){return"CANVAS"===e.tagName},Xs=function(e){return"IMG"===e.tagName},Ys=function(e){return"IFRAME"===e.tagName},Js=function(e){return"STYLE"===e.tagName},Zs=function(e){return"SCRIPT"===e.tagName},$s=function(e){return"TEXTAREA"===e.tagName},ea=function(e){return"SELECT"===e.tagName},ta=function(){function e(){this.counters={}}return e.prototype.getCounterValue=function(e){var t=this.counters[e];return t&&t.length?t[t.length-1]:1},e.prototype.getCounterValues=function(e){var t=this.counters[e];return t||[]},e.prototype.pop=function(e){var t=this;e.forEach((function(e){return t.counters[e].pop()}))},e.prototype.parse=function(e){var t=this,n=e.counterIncrement,i=e.counterReset,r=!0;null!==n&&n.forEach((function(e){var n=t.counters[e.counter];n&&0!==e.increment&&(r=!1,n[Math.max(0,n.length-1)]+=e.increment)}));var o=[];return r&&i.forEach((function(e){var n=t.counters[e.counter];o.push(e.counter),n||(n=t.counters[e.counter]=[]),n.push(e.reset)})),o},e}(),na={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},ia={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u0554","\u0553","\u0552","\u0551","\u0550","\u054f","\u054e","\u054d","\u054c","\u054b","\u054a","\u0549","\u0548","\u0547","\u0546","\u0545","\u0544","\u0543","\u0542","\u0541","\u0540","\u053f","\u053e","\u053d","\u053c","\u053b","\u053a","\u0539","\u0538","\u0537","\u0536","\u0535","\u0534","\u0533","\u0532","\u0531"]},ra={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["\u05d9\u05f3","\u05d8\u05f3","\u05d7\u05f3","\u05d6\u05f3","\u05d5\u05f3","\u05d4\u05f3","\u05d3\u05f3","\u05d2\u05f3","\u05d1\u05f3","\u05d0\u05f3","\u05ea","\u05e9","\u05e8","\u05e7","\u05e6","\u05e4","\u05e2","\u05e1","\u05e0","\u05de","\u05dc","\u05db","\u05d9\u05d8","\u05d9\u05d7","\u05d9\u05d6","\u05d8\u05d6","\u05d8\u05d5","\u05d9","\u05d8","\u05d7","\u05d6","\u05d5","\u05d4","\u05d3","\u05d2","\u05d1","\u05d0"]},oa={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u10f5","\u10f0","\u10ef","\u10f4","\u10ee","\u10ed","\u10ec","\u10eb","\u10ea","\u10e9","\u10e8","\u10e7","\u10e6","\u10e5","\u10e4","\u10f3","\u10e2","\u10e1","\u10e0","\u10df","\u10de","\u10dd","\u10f2","\u10dc","\u10db","\u10da","\u10d9","\u10d8","\u10d7","\u10f1","\u10d6","\u10d5","\u10d4","\u10d3","\u10d2","\u10d1","\u10d0"]},sa=function(e,t,n,i,r,o){return e<t||e>n?_a(e,r,o.length>0):i.integers.reduce((function(t,n,r){while(e>=n)e-=n,t+=i.values[r];return t}),"")+o},aa=function(e,t,n,i){var r="";do{n||e--,r=i(e)+r,e/=t}while(e*t>=t);return r},ua=function(e,t,n,i,r){var o=n-t+1;return(e<0?"-":"")+(aa(Math.abs(e),o,i,(function(e){return l(Math.floor(e%o)+t)}))+r)},la=function(e,t,n){void 0===n&&(n=". ");var i=t.length;return aa(Math.abs(e),i,!1,(function(e){return t[Math.floor(e%i)]}))+n},ca=1,da=2,ha=4,fa=8,pa=function(e,t,n,i,r,o){if(e<-9999||e>9999)return _a(e,$r.CJK_DECIMAL,r.length>0);var s=Math.abs(e),a=r;if(0===s)return t[0]+a;for(var u=0;s>0&&u<=4;u++){var l=s%10;0===l&&qo(o,ca)&&""!==a?a=t[l]+a:l>1||1===l&&0===u||1===l&&1===u&&qo(o,da)||1===l&&1===u&&qo(o,ha)&&e>100||1===l&&u>1&&qo(o,fa)?a=t[l]+(u>0?n[u-1]:"")+a:1===l&&u>0&&(a=n[u-1]+a),s=Math.floor(s/10)}return(e<0?i:"")+a},ga="\u5341\u767e\u5343\u842c",Aa="\u62fe\u4f70\u4edf\u842c",ma="\u30de\u30a4\u30ca\u30b9",va="\ub9c8\uc774\ub108\uc2a4",_a=function(e,t,n){var i=n?". ":"",r=n?"\u3001":"",o=n?", ":"",s=n?" ":"";switch(t){case $r.DISC:return"\u2022"+s;case $r.CIRCLE:return"\u25e6"+s;case $r.SQUARE:return"\u25fe"+s;case $r.DECIMAL_LEADING_ZERO:var a=ua(e,48,57,!0,i);return a.length<4?"0"+a:a;case $r.CJK_DECIMAL:return la(e,"\u3007\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d",r);case $r.LOWER_ROMAN:return sa(e,1,3999,na,$r.DECIMAL,i).toLowerCase();case $r.UPPER_ROMAN:return sa(e,1,3999,na,$r.DECIMAL,i);case $r.LOWER_GREEK:return ua(e,945,969,!1,i);case $r.LOWER_ALPHA:return ua(e,97,122,!1,i);case $r.UPPER_ALPHA:return ua(e,65,90,!1,i);case $r.ARABIC_INDIC:return ua(e,1632,1641,!0,i);case $r.ARMENIAN:case $r.UPPER_ARMENIAN:return sa(e,1,9999,ia,$r.DECIMAL,i);case $r.LOWER_ARMENIAN:return sa(e,1,9999,ia,$r.DECIMAL,i).toLowerCase();case $r.BENGALI:return ua(e,2534,2543,!0,i);case $r.CAMBODIAN:case $r.KHMER:return ua(e,6112,6121,!0,i);case $r.CJK_EARTHLY_BRANCH:return la(e,"\u5b50\u4e11\u5bc5\u536f\u8fb0\u5df3\u5348\u672a\u7533\u9149\u620c\u4ea5",r);case $r.CJK_HEAVENLY_STEM:return la(e,"\u7532\u4e59\u4e19\u4e01\u620a\u5df1\u5e9a\u8f9b\u58ec\u7678",r);case $r.CJK_IDEOGRAPHIC:case $r.TRAD_CHINESE_INFORMAL:return pa(e,"\u96f6\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d",ga,"\u8ca0",r,da|ha|fa);case $r.TRAD_CHINESE_FORMAL:return pa(e,"\u96f6\u58f9\u8cb3\u53c3\u8086\u4f0d\u9678\u67d2\u634c\u7396",Aa,"\u8ca0",r,ca|da|ha|fa);case $r.SIMP_CHINESE_INFORMAL:return pa(e,"\u96f6\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d",ga,"\u8d1f",r,da|ha|fa);case $r.SIMP_CHINESE_FORMAL:return pa(e,"\u96f6\u58f9\u8d30\u53c1\u8086\u4f0d\u9646\u67d2\u634c\u7396",Aa,"\u8d1f",r,ca|da|ha|fa);case $r.JAPANESE_INFORMAL:return pa(e,"\u3007\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d","\u5341\u767e\u5343\u4e07",ma,r,0);case $r.JAPANESE_FORMAL:return pa(e,"\u96f6\u58f1\u5f10\u53c2\u56db\u4f0d\u516d\u4e03\u516b\u4e5d","\u62fe\u767e\u5343\u4e07",ma,r,ca|da|ha);case $r.KOREAN_HANGUL_FORMAL:return pa(e,"\uc601\uc77c\uc774\uc0bc\uc0ac\uc624\uc721\uce60\ud314\uad6c","\uc2ed\ubc31\ucc9c\ub9cc",va,o,ca|da|ha);case $r.KOREAN_HANJA_INFORMAL:return pa(e,"\u96f6\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d","\u5341\u767e\u5343\u842c",va,o,0);case $r.KOREAN_HANJA_FORMAL:return pa(e,"\u96f6\u58f9\u8cb3\u53c3\u56db\u4e94\u516d\u4e03\u516b\u4e5d","\u62fe\u767e\u5343",va,o,ca|da|ha);case $r.DEVANAGARI:return ua(e,2406,2415,!0,i);case $r.GEORGIAN:return sa(e,1,19999,oa,$r.DECIMAL,i);case $r.GUJARATI:return ua(e,2790,2799,!0,i);case $r.GURMUKHI:return ua(e,2662,2671,!0,i);case $r.HEBREW:return sa(e,1,10999,ra,$r.DECIMAL,i);case $r.HIRAGANA:return la(e,"\u3042\u3044\u3046\u3048\u304a\u304b\u304d\u304f\u3051\u3053\u3055\u3057\u3059\u305b\u305d\u305f\u3061\u3064\u3066\u3068\u306a\u306b\u306c\u306d\u306e\u306f\u3072\u3075\u3078\u307b\u307e\u307f\u3080\u3081\u3082\u3084\u3086\u3088\u3089\u308a\u308b\u308c\u308d\u308f\u3090\u3091\u3092\u3093");case $r.HIRAGANA_IROHA:return la(e,"\u3044\u308d\u306f\u306b\u307b\u3078\u3068\u3061\u308a\u306c\u308b\u3092\u308f\u304b\u3088\u305f\u308c\u305d\u3064\u306d\u306a\u3089\u3080\u3046\u3090\u306e\u304a\u304f\u3084\u307e\u3051\u3075\u3053\u3048\u3066\u3042\u3055\u304d\u3086\u3081\u307f\u3057\u3091\u3072\u3082\u305b\u3059");case $r.KANNADA:return ua(e,3302,3311,!0,i);case $r.KATAKANA:return la(e,"\u30a2\u30a4\u30a6\u30a8\u30aa\u30ab\u30ad\u30af\u30b1\u30b3\u30b5\u30b7\u30b9\u30bb\u30bd\u30bf\u30c1\u30c4\u30c6\u30c8\u30ca\u30cb\u30cc\u30cd\u30ce\u30cf\u30d2\u30d5\u30d8\u30db\u30de\u30df\u30e0\u30e1\u30e2\u30e4\u30e6\u30e8\u30e9\u30ea\u30eb\u30ec\u30ed\u30ef\u30f0\u30f1\u30f2\u30f3",r);case $r.KATAKANA_IROHA:return la(e,"\u30a4\u30ed\u30cf\u30cb\u30db\u30d8\u30c8\u30c1\u30ea\u30cc\u30eb\u30f2\u30ef\u30ab\u30e8\u30bf\u30ec\u30bd\u30c4\u30cd\u30ca\u30e9\u30e0\u30a6\u30f0\u30ce\u30aa\u30af\u30e4\u30de\u30b1\u30d5\u30b3\u30a8\u30c6\u30a2\u30b5\u30ad\u30e6\u30e1\u30df\u30b7\u30f1\u30d2\u30e2\u30bb\u30b9",r);case $r.LAO:return ua(e,3792,3801,!0,i);case $r.MONGOLIAN:return ua(e,6160,6169,!0,i);case $r.MYANMAR:return ua(e,4160,4169,!0,i);case $r.ORIYA:return ua(e,2918,2927,!0,i);case $r.PERSIAN:return ua(e,1776,1785,!0,i);case $r.TAMIL:return ua(e,3046,3055,!0,i);case $r.TELUGU:return ua(e,3174,3183,!0,i);case $r.THAI:return ua(e,3664,3673,!0,i);case $r.TIBETAN:return ua(e,3872,3881,!0,i);case $r.DECIMAL:default:return ua(e,48,57,!0,i)}},ya="data-html2canvas-ignore",ba=function(){function e(e,t){if(this.options=t,this.scrolledElements=[],this.referenceElement=e,this.counters=new ta,this.quoteDepth=0,!e.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(e.ownerDocument.documentElement)}return e.prototype.toIFrame=function(e,t){var n=this,o=Ca(e,t);if(!o.contentWindow)return Promise.reject("Unable to find iframe window");var s=e.defaultView.pageXOffset,a=e.defaultView.pageYOffset,u=o.contentWindow,l=u.document,c=Sa(o).then((function(){return i(n,void 0,void 0,(function(){var e;return r(this,(function(n){switch(n.label){case 0:return this.scrolledElements.forEach(xa),u&&(u.scrollTo(t.left,t.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||u.scrollY===t.top&&u.scrollX===t.left||(l.documentElement.style.top=-t.top+"px",l.documentElement.style.left=-t.left+"px",l.documentElement.style.position="absolute")),e=this.options.onclone,"undefined"===typeof this.clonedReferenceElement?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:l.fonts&&l.fonts.ready?[4,l.fonts.ready]:[3,2];case 1:n.sent(),n.label=2;case 2:return"function"===typeof e?[2,Promise.resolve().then((function(){return e(l)})).then((function(){return o}))]:[2,o]}}))}))}));return l.open(),l.write(La(document.doctype)+"<html></html>"),Ea(this.referenceElement.ownerDocument,s,a),l.replaceChild(l.adoptNode(this.documentElement),l.documentElement),l.close(),c},e.prototype.createElementClone=function(e){return Gs(e)?this.createCanvasClone(e):Js(e)?this.createStyleClone(e):e.cloneNode(!1)},e.prototype.createStyleClone=function(e){try{var t=e.sheet;if(t&&t.cssRules){var n=[].slice.call(t.cssRules,0).reduce((function(e,t){return t&&"string"===typeof t.cssText?e+t.cssText:e}),""),i=e.cloneNode(!1);return i.textContent=n,i}}catch(Pt){if(Ti.getInstance(this.options.id).error("Unable to access cssRules property",Pt),"SecurityError"!==Pt.name)throw Pt}return e.cloneNode(!1)},e.prototype.createCanvasClone=function(e){if(this.options.inlineImages&&e.ownerDocument){var t=e.ownerDocument.createElement("img");try{return t.src=e.toDataURL(),t}catch(Pt){Ti.getInstance(this.options.id).info("Unable to clone canvas contents, canvas is tainted")}}var n=e.cloneNode(!1);try{n.width=e.width,n.height=e.height;var i=e.getContext("2d"),r=n.getContext("2d");return r&&(i?r.putImageData(i.getImageData(0,0,e.width,e.height),0,0):r.drawImage(e,0,0)),n}catch(Pt){}return n},e.prototype.cloneNode=function(e){if(Us(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var t=e.ownerDocument.defaultView;if(js(e)&&t){var n=this.createElementClone(e),i=t.getComputedStyle(e),r=t.getComputedStyle(e,":before"),o=t.getComputedStyle(e,":after");this.referenceElement===e&&(this.clonedReferenceElement=n),qs(n)&&Ma(n);for(var s=this.counters.parse(new ns(i)),a=this.resolvePseudoContent(e,n,r,zo.BEFORE),u=e.firstChild;u;u=u.nextSibling)Hs(u)&&(Zs(u)||u.hasAttribute(ya)||"function"===typeof this.options.ignoreElements&&this.options.ignoreElements(u))||this.options.copyStyles&&Hs(u)&&Js(u)||n.appendChild(this.cloneNode(u));a&&n.insertBefore(a,n.firstChild);var l=this.resolvePseudoContent(e,n,o,zo.AFTER);return l&&n.appendChild(l),this.counters.pop(s),i&&this.options.copyStyles&&!Ys(e)&&Na(i,n),0===e.scrollTop&&0===e.scrollLeft||this.scrolledElements.push([n,e.scrollLeft,e.scrollTop]),($s(e)||ea(e))&&($s(n)||ea(n))&&(n.value=e.value),n}return e.cloneNode(!1)},e.prototype.resolvePseudoContent=function(e,t,n,i){var r=this;if(n){var o=n.content,s=t.ownerDocument;if(s&&o&&"none"!==o&&"-moz-alt-content"!==o&&"none"!==n.display){this.counters.parse(new ns(n));var a=new ts(n),u=s.createElement("html2canvaspseudoelement");return Na(n,u),a.content.forEach((function(t){if(t.type===f.STRING_TOKEN)u.appendChild(s.createTextNode(t.value));else if(t.type===f.URL_TOKEN){var n=s.createElement("img");n.src=t.value,n.style.opacity="1",u.appendChild(n)}else if(t.type===f.FUNCTION){if("attr"===t.name){var i=t.values.filter(Mn);i.length&&u.appendChild(s.createTextNode(e.getAttribute(i[0].value)||""))}else if("counter"===t.name){var o=t.values.filter(Pn),l=o[0],c=o[1];if(l&&Mn(l)){var d=r.counters.getCounterValue(l.value),h=c&&Mn(c)?no.parse(c.value):$r.DECIMAL;u.appendChild(s.createTextNode(_a(d,h,!1)))}}else if("counters"===t.name){var p=t.values.filter(Pn),g=(l=p[0],p[1]);c=p[2];if(l&&Mn(l)){var A=r.counters.getCounterValues(l.value),m=c&&Mn(c)?no.parse(c.value):$r.DECIMAL,v=g&&g.type===f.STRING_TOKEN?g.value:"",_=A.map((function(e){return _a(e,m,!1)})).join(v);u.appendChild(s.createTextNode(_))}}}else if(t.type===f.IDENT_TOKEN)switch(t.value){case"open-quote":u.appendChild(s.createTextNode(Zo(a.quotes,r.quoteDepth++,!0)));break;case"close-quote":u.appendChild(s.createTextNode(Zo(a.quotes,--r.quoteDepth,!1)));break;default:u.appendChild(s.createTextNode(t.value))}})),u.className=ka+" "+Da,t.className+=i===zo.BEFORE?" "+ka:" "+Da,u}}},e.destroy=function(e){return!!e.parentNode&&(e.parentNode.removeChild(e),!0)},e}();(function(e){e[e["BEFORE"]=0]="BEFORE",e[e["AFTER"]=1]="AFTER"})(zo||(zo={}));var wa,Ca=function(e,t){var n=e.createElement("iframe");return n.className="html2canvas-container",n.style.visibility="hidden",n.style.position="fixed",n.style.left="-10000px",n.style.top="0px",n.style.border="0",n.width=t.width.toString(),n.height=t.height.toString(),n.scrolling="no",n.setAttribute(ya,"true"),e.body.appendChild(n),n},Sa=function(e){return new Promise((function(t,n){var i=e.contentWindow;if(!i)return n("No window assigned for iframe");var r=i.document;i.onload=e.onload=r.onreadystatechange=function(){i.onload=e.onload=r.onreadystatechange=null;var n=setInterval((function(){r.body.childNodes.length>0&&"complete"===r.readyState&&(clearInterval(n),t(e))}),50)}}))},Na=function(e,t){for(var n=e.length-1;n>=0;n--){var i=e.item(n);"content"!==i&&t.style.setProperty(i,e.getPropertyValue(i))}return t},La=function(e){var t="";return e&&(t+="<!DOCTYPE ",e.name&&(t+=e.name),e.internalSubset&&(t+=e.internalSubset),e.publicId&&(t+='"'+e.publicId+'"'),e.systemId&&(t+='"'+e.systemId+'"'),t+=">"),t},Ea=function(e,t,n){e&&e.defaultView&&(t!==e.defaultView.pageXOffset||n!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(t,n)},xa=function(e){var t=e[0],n=e[1],i=e[2];t.scrollLeft=n,t.scrollTop=i},Oa=":before",Ba=":after",ka="___html2canvas___pseudoelement_before",Da="___html2canvas___pseudoelement_after",Ia='{\n content: "" !important;\n display: none !important;\n}',Ma=function(e){Fa(e,"."+ka+Oa+Ia+"\n ."+Da+Ba+Ia)},Fa=function(e,t){var n=e.ownerDocument;if(n){var i=n.createElement("style");i.textContent=t,e.appendChild(i)}};(function(e){e[e["VECTOR"]=0]="VECTOR",e[e["BEZIER_CURVE"]=1]="BEZIER_CURVE"})(wa||(wa={}));var Ta,Ra=function(e,t){return e.length===t.length&&e.some((function(e,n){return e===t[n]}))},Pa=function(e,t,n,i,r){return e.map((function(e,o){switch(o){case 0:return e.add(t,n);case 1:return e.add(t+i,n);case 2:return e.add(t+i,n+r);case 3:return e.add(t,n+r)}return e}))},Ua=function(){function e(e,t){this.type=wa.VECTOR,this.x=e,this.y=t}return e.prototype.add=function(t,n){return new e(this.x+t,this.y+n)},e}(),Ha=function(e,t,n){return new Ua(e.x+(t.x-e.x)*n,e.y+(t.y-e.y)*n)},ja=function(){function e(e,t,n,i){this.type=wa.BEZIER_CURVE,this.start=e,this.startControl=t,this.endControl=n,this.end=i}return e.prototype.subdivide=function(t,n){var i=Ha(this.start,this.startControl,t),r=Ha(this.startControl,this.endControl,t),o=Ha(this.endControl,this.end,t),s=Ha(i,r,t),a=Ha(r,o,t),u=Ha(s,a,t);return n?new e(this.start,i,s,u):new e(u,a,o,this.end)},e.prototype.add=function(t,n){return new e(this.start.add(t,n),this.startControl.add(t,n),this.endControl.add(t,n),this.end.add(t,n))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e}(),Qa=function(e){return e.type===wa.BEZIER_CURVE},Va=function(){function e(e){var t=e.styles,n=e.bounds,i=qn(t.borderTopLeftRadius,n.width,n.height),r=i[0],o=i[1],s=qn(t.borderTopRightRadius,n.width,n.height),a=s[0],u=s[1],l=qn(t.borderBottomRightRadius,n.width,n.height),c=l[0],d=l[1],h=qn(t.borderBottomLeftRadius,n.width,n.height),f=h[0],p=h[1],g=[];g.push((r+a)/n.width),g.push((f+c)/n.width),g.push((o+p)/n.height),g.push((u+d)/n.height);var A=Math.max.apply(Math,g);A>1&&(r/=A,o/=A,a/=A,u/=A,c/=A,d/=A,f/=A,p/=A);var m=n.width-a,v=n.height-d,_=n.width-c,y=n.height-p,b=t.borderTopWidth,w=t.borderRightWidth,C=t.borderBottomWidth,S=t.borderLeftWidth,N=Gn(t.paddingTop,e.bounds.width),L=Gn(t.paddingRight,e.bounds.width),E=Gn(t.paddingBottom,e.bounds.width),x=Gn(t.paddingLeft,e.bounds.width);this.topLeftBorderBox=r>0||o>0?Wa(n.left,n.top,r,o,Ta.TOP_LEFT):new Ua(n.left,n.top),this.topRightBorderBox=a>0||u>0?Wa(n.left+m,n.top,a,u,Ta.TOP_RIGHT):new Ua(n.left+n.width,n.top),this.bottomRightBorderBox=c>0||d>0?Wa(n.left+_,n.top+v,c,d,Ta.BOTTOM_RIGHT):new Ua(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=f>0||p>0?Wa(n.left,n.top+y,f,p,Ta.BOTTOM_LEFT):new Ua(n.left,n.top+n.height),this.topLeftPaddingBox=r>0||o>0?Wa(n.left+S,n.top+b,Math.max(0,r-S),Math.max(0,o-b),Ta.TOP_LEFT):new Ua(n.left+S,n.top+b),this.topRightPaddingBox=a>0||u>0?Wa(n.left+Math.min(m,n.width+S),n.top+b,m>n.width+S?0:a-S,u-b,Ta.TOP_RIGHT):new Ua(n.left+n.width-w,n.top+b),this.bottomRightPaddingBox=c>0||d>0?Wa(n.left+Math.min(_,n.width-S),n.top+Math.min(v,n.height+b),Math.max(0,c-w),d-C,Ta.BOTTOM_RIGHT):new Ua(n.left+n.width-w,n.top+n.height-C),this.bottomLeftPaddingBox=f>0||p>0?Wa(n.left+S,n.top+y,Math.max(0,f-S),p-C,Ta.BOTTOM_LEFT):new Ua(n.left+S,n.top+n.height-C),this.topLeftContentBox=r>0||o>0?Wa(n.left+S+x,n.top+b+N,Math.max(0,r-(S+x)),Math.max(0,o-(b+N)),Ta.TOP_LEFT):new Ua(n.left+S+x,n.top+b+N),this.topRightContentBox=a>0||u>0?Wa(n.left+Math.min(m,n.width+S+x),n.top+b+N,m>n.width+S+x?0:a-S+x,u-(b+N),Ta.TOP_RIGHT):new Ua(n.left+n.width-(w+L),n.top+b+N),this.bottomRightContentBox=c>0||d>0?Wa(n.left+Math.min(_,n.width-(S+x)),n.top+Math.min(v,n.height+b+N),Math.max(0,c-(w+L)),d-(C+E),Ta.BOTTOM_RIGHT):new Ua(n.left+n.width-(w+L),n.top+n.height-(C+E)),this.bottomLeftContentBox=f>0||p>0?Wa(n.left+S+x,n.top+y,Math.max(0,f-(S+x)),p-(C+E),Ta.BOTTOM_LEFT):new Ua(n.left+S+x,n.top+n.height-(C+E))}return e}();(function(e){e[e["TOP_LEFT"]=0]="TOP_LEFT",e[e["TOP_RIGHT"]=1]="TOP_RIGHT",e[e["BOTTOM_RIGHT"]=2]="BOTTOM_RIGHT",e[e["BOTTOM_LEFT"]=3]="BOTTOM_LEFT"})(Ta||(Ta={}));var Wa=function(e,t,n,i,r){var o=(Math.sqrt(2)-1)/3*4,s=n*o,a=i*o,u=e+n,l=t+i;switch(r){case Ta.TOP_LEFT:return new ja(new Ua(e,l),new Ua(e,l-a),new Ua(u-s,t),new Ua(u,t));case Ta.TOP_RIGHT:return new ja(new Ua(e,t),new Ua(e+s,t),new Ua(u,l-a),new Ua(u,l));case Ta.BOTTOM_RIGHT:return new ja(new Ua(u,t),new Ua(u,t+a),new Ua(e+s,l),new Ua(e,l));case Ta.BOTTOM_LEFT:default:return new ja(new Ua(u,l),new Ua(u-s,l),new Ua(e,t+a),new Ua(e,t))}},za=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},Ka=function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]},qa=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},Ga=function(){function e(e,t,n){this.type=0,this.offsetX=e,this.offsetY=t,this.matrix=n,this.target=6}return e}(),Xa=function(){function e(e,t){this.type=1,this.target=t,this.path=e}return e}(),Ya=function(e){return 0===e.type},Ja=function(e){return 1===e.type},Za=function(){function e(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return e}(),$a=function(){function e(e,t){if(this.container=e,this.effects=t.slice(0),this.curves=new Va(e),null!==e.styles.transform){var n=e.bounds.left+e.styles.transformOrigin[0].number,i=e.bounds.top+e.styles.transformOrigin[1].number,r=e.styles.transform;this.effects.push(new Ga(n,i,r))}if(e.styles.overflowX!==to.VISIBLE){var o=za(this.curves),s=qa(this.curves);Ra(o,s)?this.effects.push(new Xa(o,6)):(this.effects.push(new Xa(o,2)),this.effects.push(new Xa(s,4)))}}return e.prototype.getParentEffects=function(){var e=this.effects.slice(0);if(this.container.styles.overflowX!==to.VISIBLE){var t=za(this.curves),n=qa(this.curves);Ra(t,n)||e.push(new Xa(n,6))}return e},e}(),eu=function(e,t,n,i){e.container.elements.forEach((function(r){var o=qo(r.flags,4),s=qo(r.flags,2),a=new $a(r,e.getParentEffects());qo(r.styles.display,2048)&&i.push(a);var u=qo(r.flags,8)?[]:i;if(o||s){var l=o||r.styles.isPositioned()?n:t,c=new Za(a);if(r.styles.isPositioned()||r.styles.opacity<1||r.styles.isTransformed()){var d=r.styles.zIndex.order;if(d<0){var h=0;l.negativeZIndex.some((function(e,t){return d>e.element.container.styles.zIndex.order?(h=t,!1):h>0})),l.negativeZIndex.splice(h,0,c)}else if(d>0){var f=0;l.positiveZIndex.some((function(e,t){return d>e.element.container.styles.zIndex.order?(f=t+1,!1):f>0})),l.positiveZIndex.splice(f,0,c)}else l.zeroOrAutoZIndexOrTransformedOrOpacity.push(c)}else r.styles.isFloating()?l.nonPositionedFloats.push(c):l.nonPositionedInlineLevel.push(c);eu(a,c,o?c:n,u)}else r.styles.isInlineLevel()?t.inlineLevel.push(a):t.nonInlineLevel.push(a),eu(a,t,n,u);qo(r.flags,8)&&tu(r,u)}))},tu=function(e,t){for(var n=e instanceof _s?e.start:1,i=e instanceof _s&&e.reversed,r=0;r<t.length;r++){var o=t[r];o.container instanceof vs&&"number"===typeof o.container.value&&0!==o.container.value&&(n=o.container.value),o.listValue=_a(n,o.container.styles.listStyleType,!0),n+=i?-1:1}},nu=function(e){var t=new $a(e,[]),n=new Za(t),i=[];return eu(t,n,n,i),tu(t.container,i),n},iu=function(e,t){switch(t){case 0:return ru(e.topLeftBorderBox,e.topLeftPaddingBox,e.topRightBorderBox,e.topRightPaddingBox);case 1:return ru(e.topRightBorderBox,e.topRightPaddingBox,e.bottomRightBorderBox,e.bottomRightPaddingBox);case 2:return ru(e.bottomRightBorderBox,e.bottomRightPaddingBox,e.bottomLeftBorderBox,e.bottomLeftPaddingBox);case 3:default:return ru(e.bottomLeftBorderBox,e.bottomLeftPaddingBox,e.topLeftBorderBox,e.topLeftPaddingBox)}},ru=function(e,t,n,i){var r=[];return Qa(e)?r.push(e.subdivide(.5,!1)):r.push(e),Qa(n)?r.push(n.subdivide(.5,!0)):r.push(n),Qa(i)?r.push(i.subdivide(.5,!0).reverse()):r.push(i),Qa(t)?r.push(t.subdivide(.5,!1).reverse()):r.push(t),r},ou=function(e){var t=e.bounds,n=e.styles;return t.add(n.borderLeftWidth,n.borderTopWidth,-(n.borderRightWidth+n.borderLeftWidth),-(n.borderTopWidth+n.borderBottomWidth))},su=function(e){var t=e.styles,n=e.bounds,i=Gn(t.paddingLeft,n.width),r=Gn(t.paddingRight,n.width),o=Gn(t.paddingTop,n.width),s=Gn(t.paddingBottom,n.width);return n.add(i+t.borderLeftWidth,o+t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth+i+r),-(t.borderTopWidth+t.borderBottomWidth+o+s))},au=function(e,t){return 0===e?t.bounds:2===e?su(t):ou(t)},uu=function(e,t){return e===di.BORDER_BOX?t.bounds:e===di.CONTENT_BOX?su(t):ou(t)},lu=function(e,t,n){var i=au(fu(e.styles.backgroundOrigin,t),e),r=uu(fu(e.styles.backgroundClip,t),e),o=hu(fu(e.styles.backgroundSize,t),n,i),s=o[0],a=o[1],u=qn(fu(e.styles.backgroundPosition,t),i.width-s,i.height-a),l=pu(fu(e.styles.backgroundRepeat,t),u,o,i,r),c=Math.round(i.left+u[0]),d=Math.round(i.top+u[1]);return[l,c,d,s,a]},cu=function(e){return Mn(e)&&e.value===gr.AUTO},du=function(e){return"number"===typeof e},hu=function(e,t,n){var i=t[0],r=t[1],o=t[2],s=e[0],a=e[1];if(Qn(s)&&a&&Qn(a))return[Gn(s,n.width),Gn(a,n.height)];var u=du(o);if(Mn(s)&&(s.value===gr.CONTAIN||s.value===gr.COVER)){if(du(o)){var l=n.width/n.height;return l<o!==(s.value===gr.COVER)?[n.width,n.width/o]:[n.height*o,n.height]}return[n.width,n.height]}var c=du(i),d=du(r),h=c||d;if(cu(s)&&(!a||cu(a))){if(c&&d)return[i,r];if(!u&&!h)return[n.width,n.height];if(h&&u){var f=c?i:r*o,p=d?r:i/o;return[f,p]}var g=c?i:n.width,A=d?r:n.height;return[g,A]}if(u){var m=0,v=0;return Qn(s)?m=Gn(s,n.width):Qn(a)&&(v=Gn(a,n.height)),cu(s)?m=v*o:a&&!cu(a)||(v=m/o),[m,v]}var _=null,y=null;if(Qn(s)?_=Gn(s,n.width):a&&Qn(a)&&(y=Gn(a,n.height)),null===_||a&&!cu(a)||(y=c&&d?_/i*r:n.height),null!==y&&cu(s)&&(_=c&&d?y/r*i:n.width),null!==_&&null!==y)return[_,y];throw new Error("Unable to calculate background-size for element")},fu=function(e,t){var n=e[t];return"undefined"===typeof n?e[0]:n},pu=function(e,t,n,i,r){var o=t[0],s=t[1],a=n[0],u=n[1];switch(e){case cr.REPEAT_X:return[new Ua(Math.round(i.left),Math.round(i.top+s)),new Ua(Math.round(i.left+i.width),Math.round(i.top+s)),new Ua(Math.round(i.left+i.width),Math.round(u+i.top+s)),new Ua(Math.round(i.left),Math.round(u+i.top+s))];case cr.REPEAT_Y:return[new Ua(Math.round(i.left+o),Math.round(i.top)),new Ua(Math.round(i.left+o+a),Math.round(i.top)),new Ua(Math.round(i.left+o+a),Math.round(i.height+i.top)),new Ua(Math.round(i.left+o),Math.round(i.height+i.top))];case cr.NO_REPEAT:return[new Ua(Math.round(i.left+o),Math.round(i.top+s)),new Ua(Math.round(i.left+o+a),Math.round(i.top+s)),new Ua(Math.round(i.left+o+a),Math.round(i.top+s+u)),new Ua(Math.round(i.left+o),Math.round(i.top+s+u))];default:return[new Ua(Math.round(r.left),Math.round(r.top)),new Ua(Math.round(r.left+r.width),Math.round(r.top)),new Ua(Math.round(r.left+r.width),Math.round(r.height+r.top)),new Ua(Math.round(r.left),Math.round(r.height+r.top))]}},gu="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Au="Hidden Text",mu=function(){function e(e){this._data={},this._document=e}return e.prototype.parseMetrics=function(e,t){var n=this._document.createElement("div"),i=this._document.createElement("img"),r=this._document.createElement("span"),o=this._document.body;n.style.visibility="hidden",n.style.fontFamily=e,n.style.fontSize=t,n.style.margin="0",n.style.padding="0",o.appendChild(n),i.src=gu,i.width=1,i.height=1,i.style.margin="0",i.style.padding="0",i.style.verticalAlign="baseline",r.style.fontFamily=e,r.style.fontSize=t,r.style.margin="0",r.style.padding="0",r.appendChild(this._document.createTextNode(Au)),n.appendChild(r),n.appendChild(i);var s=i.offsetTop-r.offsetTop+2;n.removeChild(r),n.appendChild(this._document.createTextNode(Au)),n.style.lineHeight="normal",i.style.verticalAlign="super";var a=i.offsetTop-n.offsetTop+2;return o.removeChild(n),{baseline:s,middle:a}},e.prototype.getMetrics=function(e,t){var n=e+" "+t;return"undefined"===typeof this._data[n]&&(this._data[n]=this.parseMetrics(e,t)),this._data[n]},e}(),vu=1e4,_u=function(){function e(e){this._activeEffects=[],this.canvas=e.canvas?e.canvas:document.createElement("canvas"),this.ctx=this.canvas.getContext("2d"),this.options=e,e.canvas||(this.canvas.width=Math.floor(e.width*e.scale),this.canvas.height=Math.floor(e.height*e.scale),this.canvas.style.width=e.width+"px",this.canvas.style.height=e.height+"px"),this.fontMetrics=new mu(document),this.ctx.scale(this.options.scale,this.options.scale),this.ctx.translate(-e.x+e.scrollX,-e.y+e.scrollY),this.ctx.textBaseline="bottom",this._activeEffects=[],Ti.getInstance(e.id).debug("Canvas renderer initialized ("+e.width+"x"+e.height+" at "+e.x+","+e.y+") with scale "+e.scale)}return e.prototype.applyEffects=function(e,t){var n=this;while(this._activeEffects.length)this.popEffect();e.filter((function(e){return qo(e.target,t)})).forEach((function(e){return n.applyEffect(e)}))},e.prototype.applyEffect=function(e){this.ctx.save(),Ya(e)&&(this.ctx.translate(e.offsetX,e.offsetY),this.ctx.transform(e.matrix[0],e.matrix[1],e.matrix[2],e.matrix[3],e.matrix[4],e.matrix[5]),this.ctx.translate(-e.offsetX,-e.offsetY)),Ja(e)&&(this.path(e.path),this.ctx.clip()),this._activeEffects.push(e)},e.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},e.prototype.renderStack=function(e){return i(this,void 0,void 0,(function(){var t;return r(this,(function(n){switch(n.label){case 0:return t=e.element.container.styles,t.isVisible()?(this.ctx.globalAlpha=t.opacity,[4,this.renderStackContent(e)]):[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}}))}))},e.prototype.renderNode=function(e){return i(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return e.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(e)]:[3,3];case 1:return t.sent(),[4,this.renderNodeContent(e)];case 2:t.sent(),t.label=3;case 3:return[2]}}))}))},e.prototype.renderTextWithLetterSpacing=function(e,t){var n=this;if(0===t)this.ctx.fillText(e.text,e.bounds.left,e.bounds.top+e.bounds.height);else{var i=u(e.text).map((function(e){return l(e)}));i.reduce((function(t,i){return n.ctx.fillText(i,t,e.bounds.top+e.bounds.height),t+n.ctx.measureText(i).width}),e.bounds.left)}},e.prototype.createFontStyle=function(e){var t=e.fontVariant.filter((function(e){return"normal"===e||"small-caps"===e})).join(""),n=e.fontFamily.join(", "),i=Dn(e.fontSize)?""+e.fontSize.number+e.fontSize.unit:e.fontSize.number+"px";return[[e.fontStyle,t,e.fontWeight,i,n].join(" "),n,i]},e.prototype.renderTextNode=function(e,t){return i(this,void 0,void 0,(function(){var n,i,o,s,a=this;return r(this,(function(r){return n=this.createFontStyle(t),i=n[0],o=n[1],s=n[2],this.ctx.font=i,e.textBounds.forEach((function(e){a.ctx.fillStyle=oi(t.color),a.renderTextWithLetterSpacing(e,t.letterSpacing);var n=t.textShadow;n.length&&e.text.trim().length&&(n.slice(0).reverse().forEach((function(t){a.ctx.shadowColor=oi(t.color),a.ctx.shadowOffsetX=t.offsetX.number*a.options.scale,a.ctx.shadowOffsetY=t.offsetY.number*a.options.scale,a.ctx.shadowBlur=t.blur.number,a.ctx.fillText(e.text,e.bounds.left,e.bounds.top+e.bounds.height)})),a.ctx.shadowColor="",a.ctx.shadowOffsetX=0,a.ctx.shadowOffsetY=0,a.ctx.shadowBlur=0),t.textDecorationLine.length&&(a.ctx.fillStyle=oi(t.textDecorationColor||t.color),t.textDecorationLine.forEach((function(t){switch(t){case 1:var n=a.fontMetrics.getMetrics(o,s).baseline;a.ctx.fillRect(e.bounds.left,Math.round(e.bounds.top+n),e.bounds.width,1);break;case 2:a.ctx.fillRect(e.bounds.left,Math.round(e.bounds.top),e.bounds.width,1);break;case 3:var i=a.fontMetrics.getMetrics(o,s).middle;a.ctx.fillRect(e.bounds.left,Math.ceil(e.bounds.top+i),e.bounds.width,1);break}})))})),[2]}))}))},e.prototype.renderReplacedElement=function(e,t,n){if(n&&e.intrinsicWidth>0&&e.intrinsicHeight>0){var i=su(e),r=qa(t);this.path(r),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,e.intrinsicWidth,e.intrinsicHeight,i.left,i.top,i.width,i.height),this.ctx.restore()}},e.prototype.renderNodeContent=function(t){return i(this,void 0,void 0,(function(){var n,i,s,a,u,l,c,d,h,f,p,g,A,m,v;return r(this,(function(r){switch(r.label){case 0:this.applyEffects(t.effects,4),n=t.container,i=t.curves,s=n.styles,a=0,u=n.textNodes,r.label=1;case 1:return a<u.length?(l=u[a],[4,this.renderTextNode(l,s)]):[3,4];case 2:r.sent(),r.label=3;case 3:return a++,[3,1];case 4:if(!(n instanceof gs))return[3,8];r.label=5;case 5:return r.trys.push([5,7,,8]),[4,this.options.cache.match(n.src)];case 6:return A=r.sent(),this.renderReplacedElement(n,i,A),[3,8];case 7:return r.sent(),Ti.getInstance(this.options.id).error("Error loading image "+n.src),[3,8];case 8:if(n instanceof As&&this.renderReplacedElement(n,i,n.canvas),!(n instanceof ms))return[3,12];r.label=9;case 9:return r.trys.push([9,11,,12]),[4,this.options.cache.match(n.svg)];case 10:return A=r.sent(),this.renderReplacedElement(n,i,A),[3,12];case 11:return r.sent(),Ti.getInstance(this.options.id).error("Error loading svg "+n.svg.substring(0,255)),[3,12];case 12:return n instanceof Ds&&n.tree?(c=new e({id:this.options.id,scale:this.options.scale,backgroundColor:n.backgroundColor,x:0,y:0,scrollX:0,scrollY:0,width:n.width,height:n.height,cache:this.options.cache,windowWidth:n.width,windowHeight:n.height}),[4,c.render(n.tree)]):[3,14];case 13:d=r.sent(),n.width&&n.height&&this.ctx.drawImage(d,0,0,n.width,n.height,n.bounds.left,n.bounds.top,n.bounds.width,n.bounds.height),r.label=14;case 14:if(n instanceof xs&&(h=Math.min(n.bounds.width,n.bounds.height),n.type===Ss?n.checked&&(this.ctx.save(),this.path([new Ua(n.bounds.left+.39363*h,n.bounds.top+.79*h),new Ua(n.bounds.left+.16*h,n.bounds.top+.5549*h),new Ua(n.bounds.left+.27347*h,n.bounds.top+.44071*h),new Ua(n.bounds.left+.39694*h,n.bounds.top+.5649*h),new Ua(n.bounds.left+.72983*h,n.bounds.top+.23*h),new Ua(n.bounds.left+.84*h,n.bounds.top+.34085*h),new Ua(n.bounds.left+.39363*h,n.bounds.top+.79*h)]),this.ctx.fillStyle=oi(Es),this.ctx.fill(),this.ctx.restore()):n.type===Ns&&n.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(n.bounds.left+h/2,n.bounds.top+h/2,h/4,0,2*Math.PI,!0),this.ctx.fillStyle=oi(Es),this.ctx.fill(),this.ctx.restore())),yu(n)&&n.value.length){switch(this.ctx.font=this.createFontStyle(s)[0],this.ctx.fillStyle=oi(s.color),this.ctx.textBaseline="middle",this.ctx.textAlign=wu(n.styles.textAlign),v=su(n),f=0,n.styles.textAlign){case co.CENTER:f+=v.width/2;break;case co.RIGHT:f+=v.width;break}p=v.add(f,0,0,-v.height/2+1),this.ctx.save(),this.path([new Ua(v.left,v.top),new Ua(v.left+v.width,v.top),new Ua(v.left+v.width,v.top+v.height),new Ua(v.left,v.top+v.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new os(n.value,p),s.letterSpacing),this.ctx.restore(),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"}if(!qo(n.styles.display,2048))return[3,20];if(null===n.styles.listStyleImage)return[3,19];if(g=n.styles.listStyleImage,g.type!==gi.URL)return[3,18];A=void 0,m=g.url,r.label=15;case 15:return r.trys.push([15,17,,18]),[4,this.options.cache.match(m)];case 16:return A=r.sent(),this.ctx.drawImage(A,n.bounds.left-(A.width+10),n.bounds.top),[3,18];case 17:return r.sent(),Ti.getInstance(this.options.id).error("Error loading list-style-image "+m),[3,18];case 18:return[3,20];case 19:t.listValue&&n.styles.listStyleType!==$r.NONE&&(this.ctx.font=this.createFontStyle(s)[0],this.ctx.fillStyle=oi(s.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",v=new o(n.bounds.left,n.bounds.top+Gn(n.styles.paddingTop,n.bounds.width),n.bounds.width,Jr(s.lineHeight,s.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new os(t.listValue,v),s.letterSpacing),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),r.label=20;case 20:return[2]}}))}))},e.prototype.renderStackContent=function(e){return i(this,void 0,void 0,(function(){var t,n,i,o,s,a,u,l,c,d,h,f,p,g,A;return r(this,(function(r){switch(r.label){case 0:return[4,this.renderNodeBackgroundAndBorders(e.element)];case 1:r.sent(),t=0,n=e.negativeZIndex,r.label=2;case 2:return t<n.length?(A=n[t],[4,this.renderStack(A)]):[3,5];case 3:r.sent(),r.label=4;case 4:return t++,[3,2];case 5:return[4,this.renderNodeContent(e.element)];case 6:r.sent(),i=0,o=e.nonInlineLevel,r.label=7;case 7:return i<o.length?(A=o[i],[4,this.renderNode(A)]):[3,10];case 8:r.sent(),r.label=9;case 9:return i++,[3,7];case 10:s=0,a=e.nonPositionedFloats,r.label=11;case 11:return s<a.length?(A=a[s],[4,this.renderStack(A)]):[3,14];case 12:r.sent(),r.label=13;case 13:return s++,[3,11];case 14:u=0,l=e.nonPositionedInlineLevel,r.label=15;case 15:return u<l.length?(A=l[u],[4,this.renderStack(A)]):[3,18];case 16:r.sent(),r.label=17;case 17:return u++,[3,15];case 18:c=0,d=e.inlineLevel,r.label=19;case 19:return c<d.length?(A=d[c],[4,this.renderNode(A)]):[3,22];case 20:r.sent(),r.label=21;case 21:return c++,[3,19];case 22:h=0,f=e.zeroOrAutoZIndexOrTransformedOrOpacity,r.label=23;case 23:return h<f.length?(A=f[h],[4,this.renderStack(A)]):[3,26];case 24:r.sent(),r.label=25;case 25:return h++,[3,23];case 26:p=0,g=e.positiveZIndex,r.label=27;case 27:return p<g.length?(A=g[p],[4,this.renderStack(A)]):[3,30];case 28:r.sent(),r.label=29;case 29:return p++,[3,27];case 30:return[2]}}))}))},e.prototype.mask=function(e){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(e.slice(0).reverse()),this.ctx.closePath()},e.prototype.path=function(e){this.ctx.beginPath(),this.formatPath(e),this.ctx.closePath()},e.prototype.formatPath=function(e){var t=this;e.forEach((function(e,n){var i=Qa(e)?e.start:e;0===n?t.ctx.moveTo(i.x,i.y):t.ctx.lineTo(i.x,i.y),Qa(e)&&t.ctx.bezierCurveTo(e.startControl.x,e.startControl.y,e.endControl.x,e.endControl.y,e.end.x,e.end.y)}))},e.prototype.renderRepeat=function(e,t,n,i){this.path(e),this.ctx.fillStyle=t,this.ctx.translate(n,i),this.ctx.fill(),this.ctx.translate(-n,-i)},e.prototype.resizeImage=function(e,t,n){if(e.width===t&&e.height===n)return e;var i=this.canvas.ownerDocument.createElement("canvas");i.width=t,i.height=n;var r=i.getContext("2d");return r.drawImage(e,0,0,e.width,e.height,0,0,t,n),i},e.prototype.renderBackgroundImage=function(e){return i(this,void 0,void 0,(function(){var t,n,i,o,s,a;return r(this,(function(u){switch(u.label){case 0:t=e.styles.backgroundImage.length-1,n=function(n){var o,s,a,u,l,c,d,h,f,p,g,A,m,v,_,y,b,w,C,S,N,L,E,x,O,B,k,D,I,M,F;return r(this,(function(r){switch(r.label){case 0:if(n.type!==gi.URL)return[3,5];o=void 0,s=n.url,r.label=1;case 1:return r.trys.push([1,3,,4]),[4,i.options.cache.match(s)];case 2:return o=r.sent(),[3,4];case 3:return r.sent(),Ti.getInstance(i.options.id).error("Error loading background-image "+s),[3,4];case 4:return o&&(a=lu(e,t,[o.width,o.height,o.width/o.height]),y=a[0],L=a[1],E=a[2],C=a[3],S=a[4],v=i.ctx.createPattern(i.resizeImage(o,C,S),"repeat"),i.renderRepeat(y,v,L,E)),[3,6];case 5:sr(n)?(u=lu(e,t,[null,null,null]),y=u[0],L=u[1],E=u[2],C=u[3],S=u[4],l=bi(n.angle,C,S),c=l[0],d=l[1],h=l[2],f=l[3],p=l[4],g=document.createElement("canvas"),g.width=C,g.height=S,A=g.getContext("2d"),m=A.createLinearGradient(d,f,h,p),_i(n.stops,c).forEach((function(e){return m.addColorStop(e.stop,oi(e.color))})),A.fillStyle=m,A.fillRect(0,0,C,S),C>0&&S>0&&(v=i.ctx.createPattern(g,"repeat"),i.renderRepeat(y,v,L,E))):ar(n)&&(_=lu(e,t,[null,null,null]),y=_[0],b=_[1],w=_[2],C=_[3],S=_[4],N=0===n.position.length?[zn]:n.position,L=Gn(N[0],C),E=Gn(N[N.length-1],S),x=Si(n,L,E,C,S),O=x[0],B=x[1],O>0&&O>0&&(k=i.ctx.createRadialGradient(b+L,w+E,0,b+L,w+E,O),_i(n.stops,2*O).forEach((function(e){return k.addColorStop(e.stop,oi(e.color))})),i.path(y),i.ctx.fillStyle=k,O!==B?(D=e.bounds.left+.5*e.bounds.width,I=e.bounds.top+.5*e.bounds.height,M=B/O,F=1/M,i.ctx.save(),i.ctx.translate(D,I),i.ctx.transform(1,0,0,M,0,0),i.ctx.translate(-D,-I),i.ctx.fillRect(b,F*(w-I)+I,C,S*F),i.ctx.restore()):i.ctx.fill())),r.label=6;case 6:return t--,[2]}}))},i=this,o=0,s=e.styles.backgroundImage.slice(0).reverse(),u.label=1;case 1:return o<s.length?(a=s[o],[5,n(a)]):[3,4];case 2:u.sent(),u.label=3;case 3:return o++,[3,1];case 4:return[2]}}))}))},e.prototype.renderBorder=function(e,t,n){return i(this,void 0,void 0,(function(){return r(this,(function(i){return this.path(iu(n,t)),this.ctx.fillStyle=oi(e),this.ctx.fill(),[2]}))}))},e.prototype.renderNodeBackgroundAndBorders=function(e){return i(this,void 0,void 0,(function(){var t,n,i,o,s,a,u,l,c=this;return r(this,(function(r){switch(r.label){case 0:return this.applyEffects(e.effects,2),t=e.container.styles,n=!ri(t.backgroundColor)||t.backgroundImage.length,i=[{style:t.borderTopStyle,color:t.borderTopColor},{style:t.borderRightStyle,color:t.borderRightColor},{style:t.borderBottomStyle,color:t.borderBottomColor},{style:t.borderLeftStyle,color:t.borderLeftColor}],o=bu(fu(t.backgroundClip,0),e.curves),n||t.boxShadow.length?(this.ctx.save(),this.path(o),this.ctx.clip(),ri(t.backgroundColor)||(this.ctx.fillStyle=oi(t.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(e.container)]):[3,2];case 1:r.sent(),this.ctx.restore(),t.boxShadow.slice(0).reverse().forEach((function(t){c.ctx.save();var n=za(e.curves),i=t.inset?0:vu,r=Pa(n,-i+(t.inset?1:-1)*t.spread.number,(t.inset?1:-1)*t.spread.number,t.spread.number*(t.inset?-2:2),t.spread.number*(t.inset?-2:2));t.inset?(c.path(n),c.ctx.clip(),c.mask(r)):(c.mask(n),c.ctx.clip(),c.path(r)),c.ctx.shadowOffsetX=t.offsetX.number+i,c.ctx.shadowOffsetY=t.offsetY.number,c.ctx.shadowColor=oi(t.color),c.ctx.shadowBlur=t.blur.number,c.ctx.fillStyle=t.inset?oi(t.color):"rgba(0,0,0,1)",c.ctx.fill(),c.ctx.restore()})),r.label=2;case 2:s=0,a=0,u=i,r.label=3;case 3:return a<u.length?(l=u[a],l.style===vr.NONE||ri(l.color)?[3,5]:[4,this.renderBorder(l.color,s,e.curves)]):[3,7];case 4:r.sent(),r.label=5;case 5:s++,r.label=6;case 6:return a++,[3,3];case 7:return[2]}}))}))},e.prototype.render=function(e){return i(this,void 0,void 0,(function(){var t;return r(this,(function(n){switch(n.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=oi(this.options.backgroundColor),this.ctx.fillRect(this.options.x-this.options.scrollX,this.options.y-this.options.scrollY,this.options.width,this.options.height)),t=nu(e),[4,this.renderStack(t)];case 1:return n.sent(),this.applyEffects([],2),[2,this.canvas]}}))}))},e}(),yu=function(e){return e instanceof Bs||(e instanceof Os||e instanceof xs&&e.type!==Ns&&e.type!==Ss)},bu=function(e,t){switch(e){case di.BORDER_BOX:return za(t);case di.CONTENT_BOX:return Ka(t);case di.PADDING_BOX:default:return qa(t)}},wu=function(e){switch(e){case co.CENTER:return"center";case co.RIGHT:return"right";case co.LEFT:default:return"left"}},Cu=function(){function e(e){this.canvas=e.canvas?e.canvas:document.createElement("canvas"),this.ctx=this.canvas.getContext("2d"),this.options=e,this.canvas.width=Math.floor(e.width*e.scale),this.canvas.height=Math.floor(e.height*e.scale),this.canvas.style.width=e.width+"px",this.canvas.style.height=e.height+"px",this.ctx.scale(this.options.scale,this.options.scale),this.ctx.translate(-e.x+e.scrollX,-e.y+e.scrollY),Ti.getInstance(e.id).debug("EXPERIMENTAL ForeignObject renderer initialized ("+e.width+"x"+e.height+" at "+e.x+","+e.y+") with scale "+e.scale)}return e.prototype.render=function(e){return i(this,void 0,void 0,(function(){var t,n;return r(this,(function(i){switch(i.label){case 0:return t=Ii(Math.max(this.options.windowWidth,this.options.width)*this.options.scale,Math.max(this.options.windowHeight,this.options.height)*this.options.scale,this.options.scrollX*this.options.scale,this.options.scrollY*this.options.scale,e),[4,Su(t)];case 1:return n=i.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=oi(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(n,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}}))}))},e}(),Su=function(e){return new Promise((function(t,n){var i=new Image;i.onload=function(){t(i)},i.onerror=n,i.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(e))}))},Nu=void 0,Lu=function(e){return ii.parse(kn.create(e).parseComponentValue())},Eu=function(e,t){return void 0===t&&(t={}),xu(e,t)};Ri.setContext(window);var xu=function(e,t){return i(Nu,void 0,void 0,(function(){var i,u,l,c,d,h,f,p,g,A,m,v,_,y,b,w,C,S,N,L,E,x,O,B,k;return r(this,(function(r){switch(r.label){case 0:if(i=e.ownerDocument,!i)throw new Error("Element is not attached to a Document");if(u=i.defaultView,!u)throw new Error("Document is not attached to a Window");return l=(Math.round(1e3*Math.random())+Date.now()).toString(16),c=qs(e)||zs(e)?a(i):s(e),d=c.width,h=c.height,f=c.left,p=c.top,g={allowTaint:!1,imageTimeout:15e3,proxy:void 0,useCORS:!1},A=n({},g,t),m={backgroundColor:"#ffffff",cache:t.cache?t.cache:Ri.create(l,A),logging:!0,removeContainer:!0,foreignObjectRendering:!1,scale:u.devicePixelRatio||1,windowWidth:u.innerWidth,windowHeight:u.innerHeight,scrollX:u.pageXOffset,scrollY:u.pageYOffset,x:f,y:p,width:Math.ceil(d),height:Math.ceil(h),id:l},v=n({},m,A,t),_=new o(v.scrollX,v.scrollY,v.windowWidth,v.windowHeight),Ti.create({id:l,enabled:v.logging}),Ti.getInstance(l).debug("Starting document clone"),y=new ba(e,{id:l,onclone:v.onclone,ignoreElements:v.ignoreElements,inlineImages:v.foreignObjectRendering,copyStyles:v.foreignObjectRendering}),b=y.clonedReferenceElement,b?[4,y.toIFrame(i,_)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return w=r.sent(),C=i.documentElement?Lu(getComputedStyle(i.documentElement).backgroundColor):pi.TRANSPARENT,S=i.body?Lu(getComputedStyle(i.body).backgroundColor):pi.TRANSPARENT,N=t.backgroundColor,L="string"===typeof N?Lu(N):null===N?pi.TRANSPARENT:4294967295,E=e===i.documentElement?ri(C)?ri(S)?L:S:C:L,x={id:l,cache:v.cache,canvas:v.canvas,backgroundColor:E,scale:v.scale,x:v.x,y:v.y,scrollX:v.scrollX,scrollY:v.scrollY,width:v.width,height:v.height,windowWidth:v.windowWidth,windowHeight:v.windowHeight},v.foreignObjectRendering?(Ti.getInstance(l).debug("Document cloned, using foreign object rendering"),k=new Cu(x),[4,k.render(b)]):[3,3];case 2:return O=r.sent(),[3,5];case 3:return Ti.getInstance(l).debug("Document cloned, using computed rendering"),Ri.attachInstance(v.cache),Ti.getInstance(l).debug("Starting DOM parsing"),B=Ts(b),Ri.detachInstance(),E===B.styles.backgroundColor&&(B.styles.backgroundColor=pi.TRANSPARENT),Ti.getInstance(l).debug("Starting renderer"),k=new _u(x),[4,k.render(B)];case 4:O=r.sent(),r.label=5;case 5:return!0===v.removeContainer&&(ba.destroy(w)||Ti.getInstance(l).error("Cannot detach cloned iframe as it is not in the DOM anymore")),Ti.getInstance(l).debug("Finished rendering"),Ti.destroy(l),Ri.destroy(l),[2,O]}}))}))};return Eu}))},wQH0:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var i,r=n("T8No");(function(e){e.editorSimpleInput=new r["d"]("editorSimpleInput",!1),e.editorTextFocus=new r["d"]("editorTextFocus",!1),e.focus=new r["d"]("editorFocus",!1),e.textInputFocus=new r["d"]("textInputFocus",!1),e.readOnly=new r["d"]("editorReadonly",!1),e.writable=e.readOnly.toNegated(),e.hasNonEmptySelection=new r["d"]("editorHasSelection",!1),e.hasOnlyEmptySelection=e.hasNonEmptySelection.toNegated(),e.hasMultipleSelections=new r["d"]("editorHasMultipleSelections",!1),e.hasSingleSelection=e.hasMultipleSelections.toNegated(),e.tabMovesFocus=new r["d"]("editorTabMovesFocus",!1),e.tabDoesNotMoveFocus=e.tabMovesFocus.toNegated(),e.isInEmbeddedEditor=new r["d"]("isInEmbeddedEditor",!1),e.canUndo=new r["d"]("canUndo",!1),e.canRedo=new r["d"]("canRedo",!1),e.languageId=new r["d"]("editorLangId",""),e.hasCompletionItemProvider=new r["d"]("editorHasCompletionItemProvider",!1),e.hasCodeActionsProvider=new r["d"]("editorHasCodeActionsProvider",!1),e.hasCodeLensProvider=new r["d"]("editorHasCodeLensProvider",!1),e.hasDefinitionProvider=new r["d"]("editorHasDefinitionProvider",!1),e.hasDeclarationProvider=new r["d"]("editorHasDeclarationProvider",!1),e.hasImplementationProvider=new r["d"]("editorHasImplementationProvider",!1),e.hasTypeDefinitionProvider=new r["d"]("editorHasTypeDefinitionProvider",!1),e.hasHoverProvider=new r["d"]("editorHasHoverProvider",!1),e.hasDocumentHighlightProvider=new r["d"]("editorHasDocumentHighlightProvider",!1),e.hasDocumentSymbolProvider=new r["d"]("editorHasDocumentSymbolProvider",!1),e.hasReferenceProvider=new r["d"]("editorHasReferenceProvider",!1),e.hasRenameProvider=new r["d"]("editorHasRenameProvider",!1),e.hasSignatureHelpProvider=new r["d"]("editorHasSignatureHelpProvider",!1),e.hasDocumentFormattingProvider=new r["d"]("editorHasDocumentFormattingProvider",!1),e.hasDocumentSelectionFormattingProvider=new r["d"]("editorHasDocumentSelectionFormattingProvider",!1),e.hasMultipleDocumentFormattingProvider=new r["d"]("editorHasMultipleDocumentFormattingProvider",!1),e.hasMultipleDocumentSelectionFormattingProvider=new r["d"]("editorHasMultipleDocumentSelectionFormattingProvider",!1)})(i||(i={}))},woZy:function(e,t,n){"use strict";n.r(t);var i=n("+hIS");Object(i["a"])({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:function(){return n.e(175).then(n.bind(null,"I+Au"))}})},wxcJ:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return a}));var i=n("MNsG"),r="undefined"===typeof e?{cwd:function(){return"/"},env:Object.create(null),get platform(){return i["h"]?"win32":i["e"]?"darwin":"linux"},nextTick:function(e){return Object(i["i"])(e)}}:e,o=r.cwd,s=r.env,a=r.platform}).call(this,n("Q2Ig"))},"x/UI":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("Cg/j"),r=Object(i["c"])("IWorkspaceEditService")},xKgJ:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"d",(function(){return s})),n.d(t,"c",(function(){return a}));var i=n("9kvl"),r=()=>{var e=Object(i["b"])()._store.getState(),t=e.user,n=t.userInfo;return(null===n||void 0===n?void 0:n.course_identity)<4},o=()=>{var e=Object(i["b"])()._store.getState(),t=e.user,n=t.userInfo;return(null===n||void 0===n?void 0:n.course_identity)<3},s=()=>{var e=Object(i["b"])()._store.getState(),t=e.user,n=t.userInfo;return(null===n||void 0===n?void 0:n.course_identity)>=6},a=()=>{var e,t=Object(i["b"])()._store.getState(),n=t.user;return!!(null===(e=n.userInfo)||void 0===e?void 0:e.login)}},xONI:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));n("KgQ1");var i=n("EffR"),r=n("7lZ/"),o=n("pmY6"),s=n("nuFA"),a=n("qj0h"),u=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),l=function(){function e(e){this._element=e}return Object.defineProperty(e.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textContent",{set:function(e){this.disposed||e===this._textContent||(this._textContent=e,this._element.textContent=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"className",{set:function(e){this.disposed||e===this._className||(this._className=e,this._element.className=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"title",{set:function(e){this.disposed||e===this._title||(this._title=e,this._title?this._element.title=e:this._element.removeAttribute("title"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"empty",{set:function(e){this.disposed||e===this._empty||(this._empty=e,this._element.style.marginLeft=e?"0":"")},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this.disposed=!0},e}(),c=function(e){function t(t,n){var o=e.call(this)||this;o.domNode=o._register(new l(i["p"](t,i["a"](".monaco-icon-label"))));var s=i["p"](o.domNode.element,i["a"](".monaco-icon-label-container")),a=i["p"](s,i["a"]("span.monaco-icon-name-container"));return o.descriptionContainer=o._register(new l(i["p"](s,i["a"]("span.monaco-icon-description-container")))),(null===n||void 0===n?void 0:n.supportHighlights)?o.nameNode=new f(a,!!n.supportCodicons):o.nameNode=new d(a),(null===n||void 0===n?void 0:n.supportDescriptionHighlights)?o.descriptionNodeFactory=function(){return new r["a"](i["p"](o.descriptionContainer.element,i["a"]("span.label-description")),!!n.supportCodicons)}:o.descriptionNodeFactory=function(){return o._register(new l(i["p"](o.descriptionContainer.element,i["a"]("span.label-description"))))},o}return u(t,e),t.prototype.setLabel=function(e,t,n){var i=["monaco-icon-label"];n&&(n.extraClasses&&i.push.apply(i,n.extraClasses),n.italic&&i.push("italic")),this.domNode.className=i.join(" "),this.domNode.title=(null===n||void 0===n?void 0:n.title)||"",this.nameNode.setLabel(e,n),(t||this.descriptionNode)&&(this.descriptionNode||(this.descriptionNode=this.descriptionNodeFactory()),this.descriptionNode instanceof r["a"]?(this.descriptionNode.set(t||"",n?n.descriptionMatches:void 0),(null===n||void 0===n?void 0:n.descriptionTitle)?this.descriptionNode.element.title=n.descriptionTitle:this.descriptionNode.element.removeAttribute("title")):(this.descriptionNode.textContent=t||"",this.descriptionNode.title=(null===n||void 0===n?void 0:n.descriptionTitle)||"",this.descriptionNode.empty=!t))},t}(o["a"]),d=function(){function e(e){this.container=e,this.label=void 0,this.singleLabel=void 0}return e.prototype.setLabel=function(e,t){if(this.label!==e||!Object(a["e"])(this.options,t))if(this.label=e,this.options=t,"string"===typeof e)this.singleLabel||(this.container.innerHTML="",i["O"](this.container,"multiple"),this.singleLabel=i["p"](this.container,i["a"]("a.label-name",{id:null===t||void 0===t?void 0:t.domId}))),this.singleLabel.textContent=e;else{this.container.innerHTML="",i["e"](this.container,"multiple"),this.singleLabel=void 0;for(var n=0;n<e.length;n++){var r=e[n],o=(null===t||void 0===t?void 0:t.domId)&&(null===t||void 0===t?void 0:t.domId)+"_"+n;i["p"](this.container,i["a"]("a.label-name",{id:o,"data-icon-label-count":e.length,"data-icon-label-index":n},r)),n<e.length-1&&i["p"](this.container,i["a"]("span.label-separator",void 0,(null===t||void 0===t?void 0:t.separator)||"/"))}}},e}();function h(e,t,n){if(n){var i=0;return e.map((function(e){var r={start:i,end:i+e.length},o=n.map((function(e){return s["a"].intersect(r,e)})).filter((function(e){return!s["a"].isEmpty(e)})).map((function(e){var t=e.start,n=e.end;return{start:t-i,end:n-i}}));return i=r.end+t.length,o}))}}var f=function(){function e(e,t){this.container=e,this.supportCodicons=t,this.label=void 0,this.singleLabel=void 0}return e.prototype.setLabel=function(e,t){if(this.label!==e||!Object(a["e"])(this.options,t))if(this.label=e,this.options=t,"string"===typeof e)this.singleLabel||(this.container.innerHTML="",i["O"](this.container,"multiple"),this.singleLabel=new r["a"](i["p"](this.container,i["a"]("a.label-name",{id:null===t||void 0===t?void 0:t.domId})),this.supportCodicons)),this.singleLabel.set(e,null===t||void 0===t?void 0:t.matches,null===t||void 0===t?void 0:t.title,null===t||void 0===t?void 0:t.labelEscapeNewLines);else{this.container.innerHTML="",i["e"](this.container,"multiple"),this.singleLabel=void 0;for(var n=(null===t||void 0===t?void 0:t.separator)||"/",o=h(e,n,null===t||void 0===t?void 0:t.matches),s=0;s<e.length;s++){var u=e[s],l=o?o[s]:void 0,c=(null===t||void 0===t?void 0:t.domId)&&(null===t||void 0===t?void 0:t.domId)+"_"+s,d=i["a"]("a.label-name",{id:c,"data-icon-label-count":e.length,"data-icon-label-index":s}),f=new r["a"](i["p"](this.container,d),this.supportCodicons);f.set(u,l,null===t||void 0===t?void 0:t.title,null===t||void 0===t?void 0:t.labelEscapeNewLines),s<e.length-1&&i["p"](d,i["a"]("span.label-separator",void 0,n))}}},e}()},xYNL:function(e,t,n){"use strict";n.r(t);var i=n("+hIS");Object(i["a"])({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:function(){return n.e(165).then(n.bind(null,"tGOS"))}})},xmOD:function(e,t,n){"use strict";n.r(t);var i=n("+hIS");Object(i["a"])({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:function(){return n.e(185).then(n.bind(null,"fB/Z"))}})},y3CF:function(e,t,n){"use strict";n.r(t);var i=n("+hIS");Object(i["a"])({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:function(){return n.e(172).then(n.bind(null,"YdqL"))}})},yEoX:function(e,t,n){},yI7H:function(e,t,n){},yKqg:function(e,t,n){"use strict";n.r(t);var i=n("+hIS");Object(i["a"])({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:function(){return n.e(181).then(n.bind(null,"LdT9"))}})},yqFB:function(e,t,n){},z3hU:function(e,t,n){"use strict";n.r(t),n.d(t,"LanguageServiceDefaultsImpl",(function(){return c}));n("M/lh");var i,r,o,s,a,u="3.7.5",l=monaco.Emitter,c=function(){function e(e,t){this._onDidChange=new l,this._onDidExtraLibsChange=new l,this._extraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(e),this.setDiagnosticsOptions(t),this._onDidExtraLibsChangeTimeout=-1}return Object.defineProperty(e.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidExtraLibsChange",{get:function(){return this._onDidExtraLibsChange.event},enumerable:!0,configurable:!0}),e.prototype.getExtraLibs=function(){return this._extraLibs},e.prototype.addExtraLib=function(e,t){var n,i=this;if(n="undefined"===typeof t?"ts:extralib-"+Math.random().toString(36).substring(2,15):t,this._extraLibs[n]&&this._extraLibs[n].content===e)return{dispose:function(){}};var r=1;return this._extraLibs[n]&&(r=this._extraLibs[n].version+1),this._extraLibs[n]={content:e,version:r},this._fireOnDidExtraLibsChangeSoon(),{dispose:function(){var e=i._extraLibs[n];e&&e.version===r&&(delete i._extraLibs[n],i._fireOnDidExtraLibsChangeSoon())}}},e.prototype.setExtraLibs=function(e){if(this._extraLibs=Object.create(null),e&&e.length>0)for(var t=0,n=e;t<n.length;t++){var i=n[t],r=i.filePath||"ts:extralib-"+Math.random().toString(36).substring(2,15),o=i.content;this._extraLibs[r]={content:o,version:1}}this._fireOnDidExtraLibsChangeSoon()},e.prototype._fireOnDidExtraLibsChangeSoon=function(){var e=this;-1===this._onDidExtraLibsChangeTimeout&&(this._onDidExtraLibsChangeTimeout=setTimeout((function(){e._onDidExtraLibsChangeTimeout=-1,e._onDidExtraLibsChange.fire(void 0)}),0))},e.prototype.getCompilerOptions=function(){return this._compilerOptions},e.prototype.setCompilerOptions=function(e){this._compilerOptions=e||Object.create(null),this._onDidChange.fire(void 0)},e.prototype.getDiagnosticsOptions=function(){return this._diagnosticsOptions},e.prototype.setDiagnosticsOptions=function(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(void 0)},e.prototype.setMaximumWorkerIdleTime=function(e){},e.prototype.setEagerModelSync=function(e){this._eagerModelSync=e},e.prototype.getEagerModelSync=function(){return this._eagerModelSync},e}();(function(e){e[e["None"]=0]="None",e[e["CommonJS"]=1]="CommonJS",e[e["AMD"]=2]="AMD",e[e["UMD"]=3]="UMD",e[e["System"]=4]="System",e[e["ES2015"]=5]="ES2015",e[e["ESNext"]=99]="ESNext"})(i||(i={})),function(e){e[e["None"]=0]="None",e[e["Preserve"]=1]="Preserve",e[e["React"]=2]="React",e[e["ReactNative"]=3]="ReactNative"}(r||(r={})),function(e){e[e["CarriageReturnLineFeed"]=0]="CarriageReturnLineFeed",e[e["LineFeed"]=1]="LineFeed"}(o||(o={})),function(e){e[e["ES3"]=0]="ES3",e[e["ES5"]=1]="ES5",e[e["ES2015"]=2]="ES2015",e[e["ES2016"]=3]="ES2016",e[e["ES2017"]=4]="ES2017",e[e["ES2018"]=5]="ES2018",e[e["ES2019"]=6]="ES2019",e[e["ES2020"]=7]="ES2020",e[e["ESNext"]=99]="ESNext",e[e["JSON"]=100]="JSON",e[e["Latest"]=99]="Latest"}(s||(s={})),function(e){e[e["Classic"]=1]="Classic",e[e["NodeJs"]=2]="NodeJs"}(a||(a={}));var d=new c({allowNonTsExtensions:!0,target:s.Latest},{noSemanticValidation:!1,noSyntaxValidation:!1}),h=new c({allowNonTsExtensions:!0,allowJs:!0,target:s.Latest},{noSemanticValidation:!0,noSyntaxValidation:!1});function f(){return A().then((function(e){return e.getTypeScriptWorker()}))}function p(){return A().then((function(e){return e.getJavaScriptWorker()}))}function g(){return{ModuleKind:i,JsxEmit:r,NewLineKind:o,ScriptTarget:s,ModuleResolutionKind:a,typescriptVersion:u,typescriptDefaults:d,javascriptDefaults:h,getTypeScriptWorker:f,getJavaScriptWorker:p}}function A(){return n.e(199).then(n.bind(null,"4yiN"))}monaco.languages.typescript=g(),monaco.languages.onLanguage("typescript",(function(){return A().then((function(e){return e.setupTypeScript(d)}))})),monaco.languages.onLanguage("javascript",(function(){return A().then((function(e){return e.setupJavaScript(h)}))}))},z9Ch:function(e,t,n){e.exports={flex_box_center:"flex_box_center___3OoGm",flex_space_between:"flex_space_between___1T26N",flex_box_vertical_center:"flex_box_vertical_center___1ToJb",flex_box_center_end:"flex_box_center_end___3yWc3",flex_box_column:"flex_box_column___2DqGp",title:"title___27RYc",export:"export___23HFM",title1_right:"title1_right___QCRrC",userPic:"userPic___1IO2N",userInfo:"userInfo___1tmSz",listItem:"listItem___j4sdw",rightInfo:"rightInfo___163Ic",shixunTitle:"shixunTitle___15lHO",shixunWrp:"shixunWrp___O2H0q",footerBar:"footerBar___NH_yZ",exitComment:"exitComment___2O-uT",nextComment:"nextComment___2fkhG"}},zQEy:function(e,t,n){"use strict";n.r(t);var i=n("+hIS");Object(i["a"])({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:function(){return n.e(157).then(n.bind(null,"On+f"))}})},zrhQ:function(e,t,n){"use strict";function i(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n}n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return a}));var r=function(){function e(e,t,n,r){void 0===r&&(r=1),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,n)),this.a=i(Math.max(Math.min(1,r),0),3)}return e.equals=function(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a},e}(),o=function(){function e(e,t,n,r){this.h=0|Math.max(Math.min(360,e),0),this.s=i(Math.max(Math.min(1,t),0),3),this.l=i(Math.max(Math.min(1,n),0),3),this.a=i(Math.max(Math.min(1,r),0),3)}return e.equals=function(e,t){return e.h===t.h&&e.s===t.s&&e.l===t.l&&e.a===t.a},e.fromRGBA=function(t){var n=t.r/255,i=t.g/255,r=t.b/255,o=t.a,s=Math.max(n,i,r),a=Math.min(n,i,r),u=0,l=0,c=(a+s)/2,d=s-a;if(d>0){switch(l=Math.min(c<=.5?d/(2*c):d/(2-2*c),1),s){case n:u=(i-r)/d+(i<r?6:0);break;case i:u=(r-n)/d+2;break;case r:u=(n-i)/d+4;break}u*=60,u=Math.round(u)}return new e(u,l,c,o)},e._hue2rgb=function(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e},e.toRGBA=function(t){var n,i,o,s=t.h/360,a=t.s,u=t.l,l=t.a;if(0===a)n=i=o=u;else{var c=u<.5?u*(1+a):u+a-u*a,d=2*u-c;n=e._hue2rgb(d,c,s+1/3),i=e._hue2rgb(d,c,s),o=e._hue2rgb(d,c,s-1/3)}return new r(Math.round(255*n),Math.round(255*i),Math.round(255*o),l)},e}(),s=function(){function e(e,t,n,r){this.h=0|Math.max(Math.min(360,e),0),this.s=i(Math.max(Math.min(1,t),0),3),this.v=i(Math.max(Math.min(1,n),0),3),this.a=i(Math.max(Math.min(1,r),0),3)}return e.equals=function(e,t){return e.h===t.h&&e.s===t.s&&e.v===t.v&&e.a===t.a},e.fromRGBA=function(t){var n,i=t.r/255,r=t.g/255,o=t.b/255,s=Math.max(i,r,o),a=Math.min(i,r,o),u=s-a,l=0===s?0:u/s;return n=0===u?0:s===i?((r-o)/u%6+6)%6:s===r?(o-i)/u+2:(i-r)/u+4,new e(Math.round(60*n),l,s,t.a)},e.toRGBA=function(e){var t=e.h,n=e.s,i=e.v,o=e.a,s=i*n,a=s*(1-Math.abs(t/60%2-1)),u=i-s,l=[0,0,0],c=l[0],d=l[1],h=l[2];return t<60?(c=s,d=a):t<120?(c=a,d=s):t<180?(d=s,h=a):t<240?(d=a,h=s):t<300?(c=a,h=s):t<360&&(c=s,h=a),c=Math.round(255*(c+u)),d=Math.round(255*(d+u)),h=Math.round(255*(h+u)),new r(c,d,h,o)},e}(),a=function(){function e(e){if(!e)throw new Error("Color needs a value");if(e instanceof r)this.rgba=e;else if(e instanceof o)this._hsla=e,this.rgba=o.toRGBA(e);else{if(!(e instanceof s))throw new Error("Invalid color ctor argument");this._hsva=e,this.rgba=s.toRGBA(e)}}return e.fromHex=function(t){return e.Format.CSS.parseHex(t)||e.red},Object.defineProperty(e.prototype,"hsla",{get:function(){return this._hsla?this._hsla:o.fromRGBA(this.rgba)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hsva",{get:function(){return this._hsva?this._hsva:s.fromRGBA(this.rgba)},enumerable:!0,configurable:!0}),e.prototype.equals=function(e){return!!e&&r.equals(this.rgba,e.rgba)&&o.equals(this.hsla,e.hsla)&&s.equals(this.hsva,e.hsva)},e.prototype.getRelativeLuminance=function(){var t=e._relativeLuminanceForComponent(this.rgba.r),n=e._relativeLuminanceForComponent(this.rgba.g),r=e._relativeLuminanceForComponent(this.rgba.b),o=.2126*t+.7152*n+.0722*r;return i(o,4)},e._relativeLuminanceForComponent=function(e){var t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)},e.prototype.isLighter=function(){var e=(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3;return e>=128},e.prototype.isLighterThan=function(e){var t=this.getRelativeLuminance(),n=e.getRelativeLuminance();return t>n},e.prototype.isDarkerThan=function(e){var t=this.getRelativeLuminance(),n=e.getRelativeLuminance();return t<n},e.prototype.lighten=function(t){return new e(new o(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*t,this.hsla.a))},e.prototype.darken=function(t){return new e(new o(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*t,this.hsla.a))},e.prototype.transparent=function(t){var n=this.rgba,i=n.r,o=n.g,s=n.b,a=n.a;return new e(new r(i,o,s,a*t))},e.prototype.isTransparent=function(){return 0===this.rgba.a},e.prototype.isOpaque=function(){return 1===this.rgba.a},e.prototype.opposite=function(){return new e(new r(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))},e.prototype.toString=function(){return""+e.Format.CSS.format(this)},e.getLighterColor=function(e,t,n){if(e.isLighterThan(t))return e;n=n||.5;var i=e.getRelativeLuminance(),r=t.getRelativeLuminance();return n=n*(r-i)/r,e.lighten(n)},e.getDarkerColor=function(e,t,n){if(e.isDarkerThan(t))return e;n=n||.5;var i=e.getRelativeLuminance(),r=t.getRelativeLuminance();return n=n*(i-r)/i,e.darken(n)},e.white=new e(new r(255,255,255,1)),e.black=new e(new r(0,0,0,1)),e.red=new e(new r(255,0,0,1)),e.blue=new e(new r(0,0,255,1)),e.cyan=new e(new r(0,255,255,1)),e.lightgrey=new e(new r(211,211,211,1)),e.transparent=new e(new r(0,0,0,0)),e}();(function(e){(function(t){(function(t){function n(t){return 1===t.rgba.a?"rgb("+t.rgba.r+", "+t.rgba.g+", "+t.rgba.b+")":e.Format.CSS.formatRGBA(t)}function i(e){return"rgba("+e.rgba.r+", "+e.rgba.g+", "+e.rgba.b+", "+ +e.rgba.a.toFixed(2)+")"}function o(t){return 1===t.hsla.a?"hsl("+t.hsla.h+", "+(100*t.hsla.s).toFixed(2)+"%, "+(100*t.hsla.l).toFixed(2)+"%)":e.Format.CSS.formatHSLA(t)}function s(e){return"hsla("+e.hsla.h+", "+(100*e.hsla.s).toFixed(2)+"%, "+(100*e.hsla.l).toFixed(2)+"%, "+e.hsla.a.toFixed(2)+")"}function a(e){var t=e.toString(16);return 2!==t.length?"0"+t:t}function u(e){return"#"+a(e.rgba.r)+a(e.rgba.g)+a(e.rgba.b)}function l(t,n){return void 0===n&&(n=!1),n&&1===t.rgba.a?e.Format.CSS.formatHex(t):"#"+a(t.rgba.r)+a(t.rgba.g)+a(t.rgba.b)+a(Math.round(255*t.rgba.a))}function c(t){return t.isOpaque()?e.Format.CSS.formatHex(t):e.Format.CSS.formatRGBA(t)}function d(t){var n=t.length;if(0===n)return null;if(35!==t.charCodeAt(0))return null;if(7===n){var i=16*h(t.charCodeAt(1))+h(t.charCodeAt(2)),o=16*h(t.charCodeAt(3))+h(t.charCodeAt(4)),s=16*h(t.charCodeAt(5))+h(t.charCodeAt(6));return new e(new r(i,o,s,1))}if(9===n){i=16*h(t.charCodeAt(1))+h(t.charCodeAt(2)),o=16*h(t.charCodeAt(3))+h(t.charCodeAt(4)),s=16*h(t.charCodeAt(5))+h(t.charCodeAt(6));var a=16*h(t.charCodeAt(7))+h(t.charCodeAt(8));return new e(new r(i,o,s,a/255))}if(4===n){i=h(t.charCodeAt(1)),o=h(t.charCodeAt(2)),s=h(t.charCodeAt(3));return new e(new r(16*i+i,16*o+o,16*s+s))}if(5===n){i=h(t.charCodeAt(1)),o=h(t.charCodeAt(2)),s=h(t.charCodeAt(3)),a=h(t.charCodeAt(4));return new e(new r(16*i+i,16*o+o,16*s+s,(16*a+a)/255))}return null}function h(e){switch(e){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:return 10;case 65:return 10;case 98:return 11;case 66:return 11;case 99:return 12;case 67:return 12;case 100:return 13;case 68:return 13;case 101:return 14;case 69:return 14;case 102:return 15;case 70:return 15}return 0}t.formatRGB=n,t.formatRGBA=i,t.formatHSL=o,t.formatHSLA=s,t.formatHex=u,t.formatHexA=l,t.format=c,t.parseHex=d})(t.CSS||(t.CSS={}))})(e.Format||(e.Format={}))})(a||(a={}))}}]); |