!function(e){function t(t){for(var n,i,o=t[0],a=t[1],s=0,c=[];s=0;){if(o=a+i,(0===a||32===n.charCodeAt(a-1))&&32===n.charCodeAt(o))return this._lastStart=a,void(this._lastEnd=o+1);if(a>0&&32===n.charCodeAt(a-1)&&o===r)return this._lastStart=a-1,void(this._lastEnd=o);if(0===a&&o===r)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=[],r=1;r0;){j.sort(F.sort),j.shift().execute()}R=!1},D=function(e,t){void 0===t&&(t=0);var n,r=new F(e,t);return A.push(r),P||(P=!0,n=z,O||(O=self.requestAnimationFrame||self.msRequestAnimationFrame||self.webkitRequestAnimationFrame||self.mozRequestAnimationFrame||self.oRequestAnimationFrame||function(e){return setTimeout(function(){return e((new Date).getTime())},0)}),O.call(self,n)),r},k=function(e,t){if(R){var n=new F(e,t);return j.push(n),n}return D(e,t)};var B=16,U=function(e,t){return t},W=function(e){function t(t,n,r,i,o){void 0===i&&(i=U),void 0===o&&(o=B);var a=e.call(this)||this,s=null,c=0,l=a._register(new u.e),d=function(){c=(new Date).getTime(),r(s),s=null};return a._register(E(t,n,function(e){s=i(s,e);var t=(new Date).getTime()-c;t>=o?(l.cancel(),d()):l.setIfNotSet(d,o-t)})),a}return f(t,e),t}(d.a);function H(e,t,n,r,i){return new W(e,t,n,r,i)}function V(e){return document.defaultView.getComputedStyle(e,null)}var q=function(){function e(){}return e.convertToPixels=function(e,t){return parseFloat(t)||0},e.getDimension=function(t,n,r){var i=V(t),o="0";return i&&(o=i.getPropertyValue?i.getPropertyValue(n):i.getAttribute(r)),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}(),Y=function(){return function(e,t){this.width=e,this.height=t}}();function G(e){for(var t=e.offsetParent,n=e.offsetTop,r=e.offsetLeft;null!==(e=e.parentNode)&&e!==document.body&&e!==document.documentElement;){n-=e.scrollTop;var i=V(e);i&&(r-="rtl"!==i.direction?e.scrollLeft:-e.scrollLeft),e===t&&(r+=q.getBorderLeftWidth(e),n+=q.getBorderTopWidth(e),n+=e.offsetTop,r+=e.offsetLeft,t=e.offsetParent)}return{left:r,top:n}}function Z(e){var t=e.getBoundingClientRect();return{left:t.left+Q.scrollX,top:t.top+Q.scrollY,width:t.width,height:t.height}}var Q=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 K(e){var t=q.getMarginLeft(e)+q.getMarginRight(e);return e.offsetWidth+t}function J(e){var t=q.getBorderLeftWidth(e)+q.getBorderRightWidth(e),n=q.getPaddingLeft(e)+q.getPaddingRight(e);return e.offsetWidth-t-n}function X(e){var t=q.getBorderTopWidth(e)+q.getBorderBottomWidth(e),n=q.getPaddingTop(e)+q.getPaddingBottom(e);return e.offsetHeight-t-n}function $(e){var t=q.getMarginTop(e)+q.getMarginBottom(e);return e.offsetHeight+t}function ee(e,t){for(;e;){if(e===t)return!0;e=e.parentNode}return!1}function te(e,t,n){for(;e;){if(w(e,t))return e;if(n)if("string"==typeof n){if(w(e,n))return null}else if(e===n)return null;e=e.parentNode}return null}function ne(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 re=null;function ie(){return re||(re=ne()),re}function oe(e,t,n){void 0===n&&(n=ie()),n&&t&&n.sheet.insertRule(e+"{"+t+"}",0)}function ae(e,t){if(void 0===t&&(t=ie()),t){for(var n=function(e){return e&&e.sheet&&e.sheet.rules?e.sheet.rules:e&&e.sheet&&e.sheet.cssRules?e.sheet.cssRules:[]}(t),r=[],i=0;i=0;i--)t.sheet.deleteRule(r[i])}}function se(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&1===e.nodeType&&"string"==typeof e.nodeName}var ue={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",CONTEXT_MENU:"contextmenu",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",UNLOAD:"unload",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",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"},ce={stop:function(e,t){e.preventDefault?e.preventDefault():e.returnValue=!1,t&&(e.stopPropagation?e.stopPropagation():e.cancelBubble=!0)}};function le(e){for(var t=[],n=0;e&&e.nodeType===e.ELEMENT_NODE;n++)t[n]=e.scrollTop,e=e.parentNode;return t}function de(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 he=function(){function e(e){var t=this;this._onDidFocus=new l.a,this.onDidFocus=this._onDidFocus.event,this._onDidBlur=new l.a,this.onDidBlur=this._onDidBlur.event,this.disposables=[];var n=ee(document.activeElement,e),r=!1;Object(o.a)(e,ue.FOCUS,!0)(function(){r=!1,n||(n=!0,t._onDidFocus.fire())},null,this.disposables),Object(o.a)(e,ue.BLUR,!0)(function(){n&&(r=!0,window.setTimeout(function(){r&&(r=!1,n=!1,t._onDidBlur.fire())},0))},null,this.disposables)}return e.prototype.dispose=function(){this.disposables=Object(d.d)(this.disposables),this._onDidFocus.dispose(),this._onDidBlur.dispose()},e}();function pe(e){return new he(e)}function fe(e){for(var t=[],n=1;nn||e===n&&t>r?(this.startLineNumber=n,this.startColumn=r,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=n,this.endColumn=r)}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.lineNumbere.endLineNumber)&&(!(t.lineNumber===e.startLineNumber&&t.columne.endColumn))},e.prototype.containsRange=function(t){return e.containsRange(this,t)},e.containsRange=function(e,t){return!(t.startLineNumbere.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumne.endColumn)))},e.prototype.plusRange=function(t){return e.plusRange(this,t)},e.plusRange=function(t,n){var r,i,o,a;return n.startLineNumbert.endLineNumber?(o=n.endLineNumber,a=n.endColumn):n.endLineNumber===t.endLineNumber?(o=n.endLineNumber,a=Math.max(n.endColumn,t.endColumn)):(o=t.endLineNumber,a=t.endColumn),new e(r,i,o,a)},e.prototype.intersectRanges=function(t){return e.intersectRanges(this,t)},e.intersectRanges=function(t,n){var r=t.startLineNumber,i=t.startColumn,o=t.endLineNumber,a=t.endColumn,s=n.startLineNumber,u=n.startColumn,c=n.endLineNumber,l=n.endColumn;return rc?(o=c,a=l):o===c&&(a=Math.min(a,l)),r>o?null:r===o&&i>a?null:new e(r,i,o,a)},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 r.a(this.endLineNumber,this.endColumn)},e.prototype.getStartPosition=function(){return new r.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.endLineNumbere.startLineNumber},e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return _}),n.d(t,"c",function(){return w}),n.d(t,"b",function(){return S}),n.d(t,"j",function(){return C}),n.d(t,"e",function(){return I}),n.d(t,"g",function(){return M}),n.d(t,"f",function(){return x}),n.d(t,"i",function(){return N}),n.d(t,"h",function(){return E}),n.d(t,"d",function(){return i});var r,i,o=n(14),a=n(35),s=n(45),u=n(11),c=n(73),l=n(132),d=n(78),h=n(40),p=n(13),f=n(116),g=n(74),m=n(162),y=n(24),v=(r=function(e,t){return(r=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)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),b=function(){return(b=Object.assign||function(e){for(var t,n=1,r=arguments.length;n1)&&c.fire(e),u=0},n)})},onLastListenerRemove:function(){o.dispose()}});return c.event},e.stopwatch=function(e){var t=(new Date).getTime();return r(n(e),function(e){return(new Date).getTime()-t})},e.latch=c,e.buffer=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=[]);var r=n.slice(),i=e(function(e){r?r.push(e):a.fire(e)}),o=function(){r&&r.forEach(function(e){return a.fire(e)}),r=null},a=new d({onFirstListenerAdd:function(){i||(i=e(function(e){return a.fire(e)}))},onFirstListenerDidAdd:function(){r&&(t?setTimeout(o):o())},onLastListenerRemove:function(){i&&i.dispose(),i=null}});return a.event};var l=function(){function e(e){this.event=e}return e.prototype.map=function(t){return new e(r(this.event,t))},e.prototype.forEach=function(t){return new e(o(this.event,t))},e.prototype.filter=function(t){return new e(a(this.event,t))},e.prototype.reduce=function(t,n){return new e(s(this.event,t,n))},e.prototype.latch=function(){return new e(c(this.event))},e.prototype.on=function(e,t,n){return this.event(e,t,n)},e.prototype.once=function(e,t,r){return n(this.event)(e,t,r)},e}();e.chain=function(e){return new l(e)},e.fromNodeEventEmitter=function(e,t,n){void 0===n&&(n=function(e){return e});var r=function(){for(var e=[],t=0;t0?new l(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,r,i){t._listeners||(t._listeners=new o.a);var a=t._listeners.isEmpty();a&&t._options&&t._options.onFirstListenerAdd&&t._options.onFirstListenerAdd(t);var s,u,c=t._listeners.push(r?[n,r]:n);return a&&t._options&&t._options.onFirstListenerDidAdd&&t._options.onFirstListenerDidAdd(t),t._options&&t._options.onListenerDidAdd&&t._options.onListenerDidAdd(t,n,r),t._leakageMon&&(s=t._leakageMon.check(t._listeners.size)),u={dispose:function(){(s&&s(),u.dispose=e._noop,t._disposed)||(c(),t._options&&t._options.onLastListenerRemove&&(t._listeners&&!t._listeners.isEmpty()||t._options.onLastListenerRemove(t)))}},Array.isArray(i)&&i.push(u),u}),this._event},enumerable:!0,configurable:!0}),e.prototype.fire=function(e){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new o.a);for(var t=this._listeners.iterator(),n=t.next();!n.done;n=t.next())this._deliveryQueue.push([n.value,e]);for(;this._deliveryQueue.size>0;){var i=this._deliveryQueue.shift(),a=i[0],s=i[1];try{"function"==typeof a?a.call(void 0,s):a[0].call(a[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 o.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 for(;!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),p=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()}})}return 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);return Object(i.f)(function(e){var t,n=this,r=!1;return function(){return r?t:(r=!0,t=e.apply(n,arguments))}}(function(){t.hasListeners&&t.unhook(n);var e=t.events.indexOf(n);t.events.splice(e,1)}))},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()},e}(),f=function(){function e(){this.buffers=[]}return e.prototype.wrapEvent=function(e){var t=this;return function(n,r,i){return e(function(e){var i=t.buffers[t.buffers.length-1];i?i.push(function(){return n.call(r,e)}):n.call(r,e)},void 0,i)}},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}(),g=function(){function e(){var e=this;this.listening=!1,this.inputEvent=s.None,this.inputEventListener=i.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}()},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r,i=n(13);!function(e){e.editorTextFocus=new i.f("editorTextFocus",!1),e.focus=new i.f("editorFocus",!1),e.textInputFocus=new i.f("textInputFocus",!1),e.readOnly=new i.f("editorReadonly",!1),e.writable=e.readOnly.toNegated(),e.hasNonEmptySelection=new i.f("editorHasSelection",!1),e.hasOnlyEmptySelection=e.hasNonEmptySelection.toNegated(),e.hasMultipleSelections=new i.f("editorHasMultipleSelections",!1),e.hasSingleSelection=e.hasMultipleSelections.toNegated(),e.tabMovesFocus=new i.f("editorTabMovesFocus",!1),e.tabDoesNotMoveFocus=e.tabMovesFocus.toNegated(),e.isInEmbeddedEditor=new i.f("isInEmbeddedEditor",!1),e.canUndo=new i.f("canUndo",!1),e.canRedo=new i.f("canRedo",!1),e.languageId=new i.f("editorLangId",""),e.hasCompletionItemProvider=new i.f("editorHasCompletionItemProvider",!1),e.hasCodeActionsProvider=new i.f("editorHasCodeActionsProvider",!1),e.hasCodeLensProvider=new i.f("editorHasCodeLensProvider",!1),e.hasDefinitionProvider=new i.f("editorHasDefinitionProvider",!1),e.hasDeclarationProvider=new i.f("editorHasDeclarationProvider",!1),e.hasImplementationProvider=new i.f("editorHasImplementationProvider",!1),e.hasTypeDefinitionProvider=new i.f("editorHasTypeDefinitionProvider",!1),e.hasHoverProvider=new i.f("editorHasHoverProvider",!1),e.hasDocumentHighlightProvider=new i.f("editorHasDocumentHighlightProvider",!1),e.hasDocumentSymbolProvider=new i.f("editorHasDocumentSymbolProvider",!1),e.hasReferenceProvider=new i.f("editorHasReferenceProvider",!1),e.hasRenameProvider=new i.f("editorHasRenameProvider",!1),e.hasSignatureHelpProvider=new i.f("editorHasSignatureHelpProvider",!1),e.hasDocumentFormattingProvider=new i.f("editorHasDocumentFormattingProvider",!1),e.hasDocumentSelectionFormattingProvider=new i.f("editorHasDocumentSelectionFormattingProvider",!1),e.hasMultipleDocumentFormattingProvider=new i.f("editorHasMultipleDocumentFormattingProvider",!1),e.hasMultipleDocumentSelectionFormattingProvider=new i.f("editorHasMultipleDocumentSelectionFormattingProvider",!1)}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"j",function(){return r}),n.d(t,"s",function(){return i}),n.d(t,"A",function(){return o}),n.d(t,"p",function(){return s}),n.d(t,"m",function(){return u}),n.d(t,"n",function(){return c}),n.d(t,"J",function(){return l}),n.d(t,"z",function(){return d}),n.d(t,"E",function(){return h}),n.d(t,"h",function(){return p}),n.d(t,"G",function(){return f}),n.d(t,"k",function(){return g}),n.d(t,"i",function(){return m}),n.d(t,"C",function(){return y}),n.d(t,"B",function(){return v}),n.d(t,"o",function(){return b}),n.d(t,"q",function(){return _}),n.d(t,"y",function(){return w}),n.d(t,"d",function(){return S}),n.d(t,"w",function(){return C}),n.d(t,"x",function(){return I}),n.d(t,"l",function(){return x}),n.d(t,"H",function(){return E}),n.d(t,"b",function(){return L}),n.d(t,"c",function(){return T}),n.d(t,"u",function(){return k}),n.d(t,"v",function(){return D}),n.d(t,"g",function(){return A}),n.d(t,"e",function(){return P}),n.d(t,"r",function(){return z}),n.d(t,"f",function(){return F}),n.d(t,"t",function(){return B}),n.d(t,"a",function(){return U}),n.d(t,"I",function(){return W}),n.d(t,"F",function(){return H}),n.d(t,"D",function(){return V});var r="";function i(e){return!e||"string"!=typeof e||0===e.trim().length}function o(e,t,n){void 0===n&&(n="0");for(var r=""+e,i=[r],o=r.length;o=t.length?e:t[r]})}function u(e){return e.replace(/[<>&]/g,function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";default:return e}})}function c(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\[\]\(\)\#]/g,"\\$&")}function l(e,t){return void 0===t&&(t=" "),h(d(e,t),t)}function d(e,t){if(!e||!t)return e;var n=t.length;if(0===n||0===e.length)return e;for(var r=0;e.indexOf(t,r)===r;)r+=n;return e.substring(r)}function h(e,t){if(!e||!t)return e;var n=t.length,r=e.length;if(0===n||0===r)return e;for(var i=r,o=-1;-1!==(o=e.lastIndexOf(t,i-1))&&o+n===i;){if(0===o)return"";i=o}return e.substring(0,i)}function p(e){return e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function f(e,t){if(e.length0?e.indexOf(t,n)===n:0===n&&e===t}function m(e,t,n){if(void 0===n&&(n={}),!e)throw new Error("Cannot create regex from empty string");t||(e=c(e)),n.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));var r="";return n.global&&(r+="g"),n.matchCase||(r+="i"),n.multiline&&(r+="m"),n.unicode&&(r+="u"),new RegExp(e,r)}function y(e){return"^"!==e.source&&"^$"!==e.source&&"$"!==e.source&&"^\\s*$"!==e.source&&!(!e.exec("")||0!==e.lastIndex)}function v(e){return(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")}function b(e){for(var t=0,n=e.length;t=0;n--){var r=e.charCodeAt(n);if(32!==r&&9!==r)return n}return-1}function S(e,t){return et?1:0}function C(e){return e>=97&&e<=122}function I(e){return e>=65&&e<=90}function M(e){return C(e)||I(e)}function x(e,t){return(e?e.length:0)===(t?t.length:0)&&N(e,t)}function N(e,t,n){if(void 0===n&&(n=e.length),"string"!=typeof e||"string"!=typeof t)return!1;for(var r=0;re.length)&&N(e,t,n)}function L(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}var U=String.fromCharCode(65279);function W(e){return!!(e&&e.length>0&&65279===e.charCodeAt(0))}function H(e){return btoa(encodeURIComponent(e))}function V(e,t){for(var n="",r=0;ri&&(i=s)}return i}if("string"==typeof e)return r?"*"===e?5:e===n?10:0:0;if(e){var l=e.language,d=e.pattern,h=e.scheme,p=e.hasAccessToAllModels;if(!r&&!p)return 0;i=0;if(h)if(h===t.scheme)i=10;else{if("*"!==h)return 0;i=5}if(l)if(l===n)i=10;else{if("*"!==l)return 0;i=Math.max(i,5)}if(d){if(d!==t.fsPath&&!Object(u.a)(d,t.fsPath))return 0;i=10}return i}return 0}var l=n(73);function d(e){return"string"!=typeof e&&(Array.isArray(e)?e.every(d):!!e.exclusive)}var h=function(){function e(){this._clock=0,this._entries=[],this._onDidChange=new a.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,r={selector:e,provider:t,_score:-1,_time:this._clock++};return this._entries.push(r),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),Object(s.f)(function(){if(r){var e=n._entries.indexOf(r);e>=0&&(n._entries.splice(e,1),n._lastCandidate=void 0,n._onDidChange.fire(n._entries.length),r=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,r=this._entries;n0&&t.push(i.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,r=[];return this._orderedForEach(e,function(e){t&&n===e._score?t.push(e.provider):(n=e._score,t=[e.provider],r.push(t))}),r},e.prototype._orderedForEach=function(e,t){if(e){this._updateScores(e);for(var n=0,r=this._entries;n0&&t(i)}}},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 r=0,i=this._entries;r0){for(var a=0,s=this._entries;at._score?-1:e._timet._time?-1:0},e}(),p=n(75),f=function(){function e(){this._map=new Map,this._promises=new Map,this._onDidChange=new a.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(s.f)(function(){n._map.get(e)===t&&(n._map.delete(e),n.fire([e]))})},e.prototype.registerPromise=function(e,t){var n=this,r=null,i=!1;return this._promises.set(e,t.then(function(t){n._promises.delete(e),!i&&t&&(r=n.register(e,t))})),Object(s.f)(function(){i=!0,r&&r.dispose()})},e.prototype.getPromise=function(e){var t=this,n=this.get(e);if(n)return Promise.resolve(n);var r=this._promises.get(e);return r?r.then(function(n){return t.get(e)}):null},e.prototype.get=function(e){return Object(r.m)(this._map.get(e))},e.prototype.setColorMap=function(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Object(p.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}();n.d(t,"p",function(){return v}),n.d(t,"x",function(){return b}),n.d(t,"B",function(){return _}),n.d(t,"A",function(){return w}),n.d(t,"w",function(){return m}),n.d(t,"h",function(){return y}),n.d(t,"C",function(){return S}),n.d(t,"E",function(){return I}),n.d(t,"l",function(){return M}),n.d(t,"D",function(){return x}),n.d(t,"s",function(){return N}),n.d(t,"t",function(){return E}),n.d(t,"d",function(){return L}),n.d(t,"v",function(){return T}),n.d(t,"n",function(){return k}),n.d(t,"k",function(){return D}),n.d(t,"i",function(){return O}),n.d(t,"f",function(){return A}),n.d(t,"e",function(){return j}),n.d(t,"o",function(){return P}),n.d(t,"z",function(){return R}),n.d(t,"b",function(){return z}),n.d(t,"a",function(){return F}),n.d(t,"g",function(){return B}),n.d(t,"j",function(){return U}),n.d(t,"r",function(){return W}),n.d(t,"q",function(){return H}),n.d(t,"c",function(){return V}),n.d(t,"u",function(){return q}),n.d(t,"m",function(){return Y}),n.d(t,"y",function(){return G});var g,m,y,v=function(){return function(e,t){this.language=e,this.id=t}}(),b=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="mtk"+this.getForeground(e),n=this.getFontStyle(e);return 1&n&&(t+=" mtki"),2&n&&(t+=" mtkb"),4&n&&(t+=" mtku"),t},e.getInlineStyleFromMetadata=function(e,t){var n=this.getForeground(e),r=this.getFontStyle(e),i="color: "+t[n]+";";return 1&r&&(i+="font-style: italic;"),2&r&&(i+="font-weight: bold;"),4&r&&(i+="text-decoration: underline;"),i},e}(),_=((g=Object.create(null))[0]="method",g[1]="function",g[2]="constructor",g[3]="field",g[4]="variable",g[5]="class",g[6]="struct",g[7]="interface",g[8]="module",g[9]="property",g[10]="event",g[11]="operator",g[12]="unit",g[13]="value",g[14]="constant",g[15]="enum",g[16]="enum-member",g[17]="keyword",g[25]="snippet",g[18]="text",g[19]="color",g[20]="file",g[21]="reference",g[22]="customcolor",g[23]="folder",g[24]="type-parameter",function(e){return g[e]||"property"}),w=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 r=e[t];return void 0!==r||n||(r=9),r}}();function S(e){return e&&i.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"}(m||(m={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(y||(y={}));var C,I=((C=Object.create(null))[0]="file",C[1]="module",C[2]="namespace",C[3]="package",C[4]="class",C[5]="method",C[6]="property",C[7]="field",C[8]="constructor",C[9]="enum",C[10]="interface",C[11]="function",C[12]="variable",C[13]="constant",C[14]="string",C[15]="number",C[16]="boolean",C[17]="array",C[18]="object",C[19]="key",C[20]="null",C[21]="enum-member",C[22]="struct",C[23]="event",C[24]="operator",C[25]="type-parameter",function(e,t){return"symbol-icon "+(t?"inline":"block")+" "+(C[e]||"property")}),M=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 x(e){return Object(r.g)(e)&&e.resource&&Array.isArray(e.edits)}var N=new h,E=new h,L=new h,T=new h,k=new h,D=new h,O=new h,A=new h,j=new h,P=new h,R=new h,z=new h,F=new h,B=new h,U=new h,W=new h,H=new h,V=new h,q=new h,Y=new h,G=new f},function(e,t,n){"use strict";n.d(t,"d",function(){return s}),n.d(t,"b",function(){return c}),n.d(t,"c",function(){return l}),n.d(t,"a",function(){return f}),n.d(t,"f",function(){return g}),n.d(t,"e",function(){return m}),n.d(t,"g",function(){return y});var r,i=n(9),o=n(23),a=(r=function(e,t){return(r=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)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(){function e(){}return e.has=function(e){return new c(e)},e.equals=function(e,t){return new l(e,t)},e.regex=function(e,t){return new p(e,t)},e.not=function(e){return new h(e)},e.and=function(){for(var e=[],t=0;t=0){var n=e.split("!=");return new d(n[0].trim(),this._deserializeValue(n[1],t))}if(e.indexOf("==")>=0){n=e.split("==");return new l(n[0].trim(),this._deserializeValue(n[1],t))}if(e.indexOf("=~")>=0){n=e.split("=~");return new p(n[0].trim(),this._deserializeRegexValue(n[1],t))}return/^\!\s*/.test(e)?new h(e.substr(1).trim()):new c(e)},e._deserializeValue=function(e,t){if("true"===(e=e.trim()))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.s)(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),a="i"===e[r+1]?"i":"";try{return new RegExp(o,a)}catch(n){if(t)throw new Error("bad regexp-value '"+e+"', parse error: "+n);return console.warn("bad regexp-value '"+e+"', parse error: "+n),null}},e}();function u(e,t){var n=e.getType(),r=t.getType();if(n!==r)return n-r;switch(n){case 1:case 2:case 3:case 4:case 6:return e.cmp(t);default:throw new Error("Unknown ContextKeyExpr!")}}var c=function(){function e(e){this.key=e}return e.prototype.getType=function(){return 1},e.prototype.cmp=function(e){return this.keye.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.normalize=function(){return this},e.prototype.keys=function(){return[this.key]},e}(),l=function(){function e(e,t){this.key=e,this.value=t}return e.prototype.getType=function(){return 3},e.prototype.cmp=function(e){return this.keye.key?1:this.valuee.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.normalize=function(){return"boolean"==typeof this.value?this.value?new c(this.key):new h(this.key):this},e.prototype.keys=function(){return[this.key]},e}(),d=function(){function e(e,t){this.key=e,this.value=t}return e.prototype.getType=function(){return 4},e.prototype.cmp=function(e){return this.keye.key?1:this.valuee.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.normalize=function(){return"boolean"==typeof this.value?this.value?new h(this.key):new c(this.key):this},e.prototype.keys=function(){return[this.key]},e}(),h=function(){function e(e){this.key=e}return e.prototype.getType=function(){return 2},e.prototype.cmp=function(e){return this.keye.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.normalize=function(){return this},e.prototype.keys=function(){return[this.key]},e}(),p=function(){function e(e,t){this.key=e,this.regexp=t}return e.prototype.getType=function(){return 6},e.prototype.cmp=function(e){if(this.keye.key)return 1;var t=this.regexp?this.regexp.source:"",n=e.regexp?e.regexp.source:"";return tn?1:0},e.prototype.equals=function(t){if(t instanceof e){var n=this.regexp?this.regexp.source:"",r=t.regexp?t.regexp.source:"";return this.key===t.key&&n===r}return!1},e.prototype.evaluate=function(e){var t=e.getValue(this.key);return!!this.regexp&&this.regexp.test(t)},e.prototype.normalize=function(){return this},e.prototype.keys=function(){return[this.key]},e}(),f=function(){function e(t){this.expr=e._normalizeArr(t)}return e.prototype.getType=function(){return 5},e.prototype.equals=function(t){if(t instanceof e){if(this.expr.length!==t.expr.length)return!1;for(var n=0,r=this.expr.length;n0){switch(c=Math.min(l<=.5?d/(2*l):d/(2-2*l),1),a){case n:u=(r-i)/d+(r1&&(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,r,o,a=t.h/360,s=t.s,u=t.l,c=t.a;if(0===s)n=r=o=u;else{var l=u<.5?u*(1+s):u+s-u*s,d=2*u-l;n=e._hue2rgb(d,l,a+1/3),r=e._hue2rgb(d,l,a),o=e._hue2rgb(d,l,a-1/3)}return new i(Math.round(255*n),Math.round(255*r),Math.round(255*o),c)},e}(),a=function(){function e(e,t,n,i){this.h=0|Math.max(Math.min(360,e),0),this.s=r(Math.max(Math.min(1,t),0),3),this.v=r(Math.max(Math.min(1,n),0),3),this.a=r(Math.max(Math.min(1,i),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,r=t.r/255,i=t.g/255,o=t.b/255,a=Math.max(r,i,o),s=a-Math.min(r,i,o),u=0===a?0:s/a;return n=0===s?0:a===r?((i-o)/s%6+6)%6:a===i?(o-r)/s+2:(r-i)/s+4,new e(Math.round(60*n),u,a,t.a)},e.toRGBA=function(e){var t=e.h,n=e.s,r=e.v,o=e.a,a=r*n,s=a*(1-Math.abs(t/60%2-1)),u=r-a,c=[0,0,0],l=c[0],d=c[1],h=c[2];return t<60?(l=a,d=s):t<120?(l=s,d=a):t<180?(d=a,h=s):t<240?(d=s,h=a):t<300?(l=s,h=a):t<360&&(l=a,h=s),l=Math.round(255*(l+u)),d=Math.round(255*(d+u)),h=Math.round(255*(h+u)),new i(l,d,h,o)},e}(),s=function(){function e(e){if(!e)throw new Error("Color needs a value");if(e instanceof i)this.rgba=e;else if(e instanceof o)this._hsla=e,this.rgba=o.toRGBA(e);else{if(!(e instanceof a))throw new Error("Invalid color ctor argument");this._hsva=e,this.rgba=a.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:a.fromRGBA(this.rgba)},enumerable:!0,configurable:!0}),e.prototype.equals=function(e){return!!e&&i.equals(this.rgba,e.rgba)&&o.equals(this.hsla,e.hsla)&&a.equals(this.hsva,e.hsva)},e.prototype.getRelativeLuminance=function(){return r(.2126*e._relativeLuminanceForComponent(this.rgba.r)+.7152*e._relativeLuminanceForComponent(this.rgba.g)+.0722*e._relativeLuminanceForComponent(this.rgba.b),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(){return(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3>=128},e.prototype.isLighterThan=function(e){return this.getRelativeLuminance()>e.getRelativeLuminance()},e.prototype.isDarkerThan=function(e){return this.getRelativeLuminance()0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=0,o=p.indexOf("Macintosh")>=0,a=p.indexOf("Linux")>=0,u=!0,navigator.language}var f=i,g=o,m=a,y=s,v=u,b="object"==typeof self?self:"object"==typeof r?r:{},_=null;function w(t){return null===_&&(_=b.setImmediate?b.setImmediate.bind(b):void 0!==e&&"function"==typeof e.nextTick?e.nextTick.bind(e):b.setTimeout.bind(b)),_(t)}var S=o?2:i?1:3}).call(this,n(82),n(108))},function(e,t,n){"use strict";n.d(t,"i",function(){return u}),n.d(t,"f",function(){return c}),n.d(t,"a",function(){return l}),n.d(t,"j",function(){return d}),n.d(t,"g",function(){return h}),n.d(t,"h",function(){return p}),n.d(t,"e",function(){return g}),n.d(t,"c",function(){return m}),n.d(t,"d",function(){return y}),n.d(t,"b",function(){return v});var r,i=n(34),o=n(14),a=n(6),s=(r=function(e,t){return(r=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)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function u(e){return e&&"function"==typeof e.then}function c(e){var t=new i.b,n=e(t.token),r=new Promise(function(e,r){t.token.onCancellationRequested(function(){r(o.a())}),Promise.resolve(n).then(function(n){t.dispose(),e(n)},function(e){t.dispose(),r(e)})});return new(function(){function e(){}return e.prototype.cancel=function(){t.cancel()},e.prototype.then=function(e,t){return r.then(e,t)},e.prototype.catch=function(e){return this.then(void 0,e)},e.prototype.finally=function(e){return r.finally(e)},e}())}var l=function(){function e(e){this.defaultDelay=e,this.timeout=null,this.completionPromise=null,this.doResolve=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(){n.completionPromise=null,n.doResolve=null;var e=n.task;return n.task=null,e()})),this.timeout=setTimeout(function(){n.timeout=null,n.doResolve(null)},t),this.completionPromise},e.prototype.isTriggered=function(){return null!==this.timeout},e.prototype.cancel=function(){this.cancelTimeout(),this.completionPromise&&(this.doReject(o.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 d(e,t){return t?new Promise(function(n,r){var i=setTimeout(n,e);t.onCancellationRequested(function(){clearTimeout(i),r(o.a())})}):c(function(t){return d(e,t)})}function h(e,t){void 0===t&&(t=0);var n=setTimeout(e,t);return Object(a.f)(function(){return clearTimeout(n)})}function p(e,t,n){void 0===t&&(t=function(e){return!!e}),void 0===n&&(n=null);var r=0,i=e.length,o=function(){if(r>=i)return Promise.resolve(n);var a=e[r++];return Promise.resolve(a()).then(function(e){return t(e)?Promise.resolve(e):o()})};return o()}var f,g=function(e){function t(t,n){var r=e.call(this)||this;return r._token=-1,"function"==typeof t&&"number"==typeof n&&r.setIfNotSet(t,n),r}return s(t,e),t.prototype.dispose=function(){this.cancel(),e.prototype.dispose.call(this)},t.prototype.cancel=function(){-1!==this._token&&(clearTimeout(this._token),this._token=-1)},t.prototype.cancelAndSet=function(e,t){var n=this;this.cancel(),this._token=setTimeout(function(){n._token=-1,e()},t)},t.prototype.setIfNotSet=function(e,t){var n=this;-1===this._token&&(this._token=setTimeout(function(){n._token=-1,e()},t))},t}(a.a),m=function(e){function t(){var t=e.call(this)||this;return t._token=-1,t}return s(t,e),t.prototype.dispose=function(){this.cancel(),e.prototype.dispose.call(this)},t.prototype.cancel=function(){-1!==this._token&&(clearInterval(this._token),this._token=-1)},t.prototype.cancelAndSet=function(e,t){this.cancel(),this._token=setInterval(function(){e()},t)},t}(a.a),y=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)}),r=!1;return{dispose:function(){r||(r=!0,clearTimeout(n))}}}}else f=function(e,t){var n=requestIdleCallback(e,"number"==typeof t?{timeout:t}:void 0),r=!1;return{dispose:function(){r||(r=!0,cancelIdleCallback(n))}}}}();var v=function(){function e(e){var t=this;this._didRun=!1,this._executor=function(){try{t._value=e()}catch(e){t._error=e}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}()},function(e,t,n){"use strict";n.d(t,"b",function(){return p}),n.d(t,"f",function(){return f}),n.d(t,"c",function(){return g}),n.d(t,"d",function(){return v}),n.d(t,"e",function(){return b}),n.d(t,"a",function(){return _}),n.d(t,"g",function(){return w});var r=n(14),i=n(9),o=n(11),a=n(4),s=n(25),u=n(29),c=n(41),l=function(){return!0},d=function(){return!1},h=function(e){return" "===e||"\t"===e},p=function(){function e(t,n,r){this._languageIdentifier=t;var i=r.editor;this.readOnly=i.readOnly,this.tabSize=n.tabSize,this.indentSize=n.indentSize,this.insertSpaces=n.insertSpaces,this.pageSize=Math.max(1,Math.floor(i.layoutInfo.height/i.fontInfo.lineHeight)-2),this.lineHeight=i.lineHeight,this.useTabStops=i.useTabStops,this.wordSeparators=i.wordSeparators,this.emptySelectionClipboard=i.emptySelectionClipboard,this.copyWithSyntaxHighlighting=i.copyWithSyntaxHighlighting,this.multiCursorMergeOverlapping=i.multiCursorMergeOverlapping,this.autoClosingBrackets=i.autoClosingBrackets,this.autoClosingQuotes=i.autoClosingQuotes,this.autoSurround=i.autoSurround,this.autoIndent=i.autoIndent,this.autoClosingPairsOpen={},this.autoClosingPairsClose={},this.surroundingPairs={},this._electricChars=null,this.shouldAutoCloseBefore={quote:e._getShouldAutoClose(t,this.autoClosingQuotes),bracket:e._getShouldAutoClose(t,this.autoClosingBrackets)};var o=e._getAutoClosingPairs(t);if(o)for(var a=0,s=o;a=r.length)&&i.v(r.charCodeAt(n))},e.isHighSurrogate=function(e,t,n){var r=e.getLineContent(t);return!(n<0||n>=r.length)&&i.u(r.charCodeAt(n))},e.isInsideSurrogatePair=function(e,t,n){return this.isHighSurrogate(e,t,n-2)},e.visibleColumnFromColumn=function(e,t,n){var r=e.length;r>t-1&&(r=t-1);for(var o=0,a=0;a=t)return u-ta?a:i},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}},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return s}),n.d(t,"b",function(){return u});var r=n(16),i="Invariant Violation",o=Object.setPrototypeOf,a=void 0===o?function(e,t){return e.__proto__=t,e}:o,s=function(e){function t(n){void 0===n&&(n=i);var r=e.call(this,"number"==typeof n?i+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name=i,a(r,t.prototype),r}return Object(r.c)(t,e),t}(Error);function u(e,t){if(!e)throw new s(t)}function c(e){return function(){return console[e].apply(console,arguments)}}!function(e){e.warn=c("warn"),e.error=c("error")}(u||(u={}));var l={env:{}};if("object"==typeof e)l=e;else try{Function("stub","process = stub")(l)}catch(e){}}).call(this,n(82))},function(e,t,n){"use strict";function r(e,t){return void 0===t&&(t=0),e[e.length-(1+t)]}function i(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 r=0,i=e.length;r0))return o;i=o-1}}return-(r+1)}function s(e,t){var n=0,r=e.length;if(0===r)return 0;for(;nr?e[u]=o[s++]:s>i?e[u]=o[a++]:t(o[s],o[a])<0?e[u]=o[s++]:e[u]=o[a++]}(t,n,r,a,i,o)}(e,t,0,e.length-1,[]),e}function c(e,t){for(var n=[],r=void 0,i=0,o=u(e.slice(0),t);i0}function p(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 r=t(e);return!n[r]&&(n[r]=!0,!0)})}function f(e){var t=new Set;return e.filter(function(e){return!t.has(e)&&(t.add(e),!0)})}function g(e,t){for(var n=0;nt;i--)r.push(i);return r}function b(e,t,n){var r=e.slice(0,t),i=e.slice(t);return r.concat(n,i)}function _(e,t){var n=e.indexOf(t);n>-1&&(e.splice(n,1),e.unshift(t))}function w(e,t){var n=e.indexOf(t);n>-1&&(e.splice(n,1),e.push(t))}function S(e){return Array.isArray(e)?e:[e]}n.d(t,"s",function(){return r}),n.d(t,"t",function(){return i}),n.d(t,"g",function(){return o}),n.d(t,"c",function(){return a}),n.d(t,"h",function(){return s}),n.d(t,"o",function(){return u}),n.d(t,"l",function(){return c}),n.d(t,"d",function(){return l}),n.d(t,"m",function(){return d}),n.d(t,"n",function(){return h}),n.d(t,"e",function(){return p}),n.d(t,"f",function(){return f}),n.d(t,"j",function(){return g}),n.d(t,"i",function(){return m}),n.d(t,"k",function(){return y}),n.d(t,"r",function(){return v}),n.d(t,"a",function(){return b}),n.d(t,"q",function(){return _}),n.d(t,"p",function(){return w}),n.d(t,"b",function(){return S})},function(e,t,n){"use strict";n.d(t,"c",function(){return s}),n.d(t,"f",function(){return u}),n.d(t,"b",function(){return l}),n.d(t,"d",function(){return d}),n.d(t,"a",function(){return h}),n.d(t,"e",function(){return f});var r=n(23),i=n(6),o=n(74),a=n(7),s=Object(r.c)("themeService");function u(e){return{id:e}}var c="dark",l="hc";function d(e){switch(e){case c:return"vs-dark";case l:return"hc-black";default:return"vs"}}var h={ThemingContribution:"base.contributions.theming"},p=new(function(){function e(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new a.a}return e.prototype.onThemeChange=function(e){var t=this;return this.themingParticipants.push(e),this.onThemingParticipantAddedEmitter.fire(e),Object(i.f)(function(){var n=t.themingParticipants.indexOf(e);t.themingParticipants.splice(n,1)})},e.prototype.getThemingParticipants=function(){return this.themingParticipants},e}());function f(e){return p.onThemeChange(e)}o.a.add(h.ThemingContribution,p)},function(e,t,n){"use strict";var r;n.d(t,"b",function(){return r}),n.d(t,"a",function(){return i}),n.d(t,"c",function(){return a}),n.d(t,"d",function(){return s}),function(e){e.serviceIds=new Map,e.DI_TARGET="$di$target",e.DI_DEPENDENCIES="$di$dependencies",e.getServiceDependencies=function(t){return t[e.DI_DEPENDENCIES]||[]}}(r||(r={}));var i=a("instantiationService");function o(e,t,n,i){t[r.DI_TARGET]===t?t[r.DI_DEPENDENCIES].push({id:e,index:n,optional:i}):(t[r.DI_DEPENDENCIES]=[{id:e,index:n,optional:i}],t[r.DI_TARGET]=t)}function a(e){if(r.serviceIds.has(e))return r.serviceIds.get(e);var t=function(e,n,r){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");o(t,e,r,!1)};return t.toString=function(){return e},r.serviceIds.set(e,t),t}function s(e){return function(t,n,r){if(3!==arguments.length)throw new Error("@optional-decorator can only be used to decorate a parameter");o(e,t,r,!0)}}},function(e,t,n){"use strict";n.d(t,"b",function(){return i}),n.d(t,"h",function(){return o}),n.d(t,"g",function(){return a}),n.d(t,"f",function(){return s}),n.d(t,"c",function(){return u}),n.d(t,"i",function(){return c}),n.d(t,"j",function(){return l}),n.d(t,"d",function(){return h}),n.d(t,"e",function(){return p}),n.d(t,"k",function(){return f}),n.d(t,"a",function(){return m}),n.d(t,"l",function(){return y}),n.d(t,"m",function(){return v});var r={number:"number",string:"string",undefined:"undefined",object:"object",function:"function"};function i(e){return Array.isArray?Array.isArray(e):!(!e||typeof e.length!==r.number||e.constructor!==Array)}function o(e){return typeof e===r.string||e instanceof String}function a(e){return!(typeof e!==r.object||null===e||Array.isArray(e)||e instanceof RegExp||e instanceof Date)}function s(e){return(typeof e===r.number||e instanceof Number)&&!isNaN(e)}function u(e){return!0===e||!1===e}function c(e){return typeof e===r.undefined}function l(e){return c(e)||null===e}var d=Object.prototype.hasOwnProperty;function h(e){if(!a(e))return!1;for(var t in e)if(d.call(e,t))return!1;return!0}function p(e){return typeof e===r.function}function f(e,t){for(var n=Math.min(e.length,t.length),r=0;r "+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,r=e.length;n * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors */(function(){var o,a=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",c="__lodash_hash_undefined__",l=500,d="__lodash_placeholder__",h=1,p=2,f=4,g=1,m=2,y=1,v=2,b=4,_=8,w=16,S=32,C=64,I=128,M=256,x=512,N=30,E="...",L=800,T=16,k=1,D=2,O=1/0,A=9007199254740991,j=1.7976931348623157e308,P=NaN,R=4294967295,z=R-1,F=R>>>1,B=[["ary",I],["bind",y],["bindKey",v],["curry",_],["curryRight",w],["flip",x],["partial",S],["partialRight",C],["rearg",M]],U="[object Arguments]",W="[object Array]",H="[object AsyncFunction]",V="[object Boolean]",q="[object Date]",Y="[object DOMException]",G="[object Error]",Z="[object Function]",Q="[object GeneratorFunction]",K="[object Map]",J="[object Number]",X="[object Null]",$="[object Object]",ee="[object Proxy]",te="[object RegExp]",ne="[object Set]",re="[object String]",ie="[object Symbol]",oe="[object Undefined]",ae="[object WeakMap]",se="[object WeakSet]",ue="[object ArrayBuffer]",ce="[object DataView]",le="[object Float32Array]",de="[object Float64Array]",he="[object Int8Array]",pe="[object Int16Array]",fe="[object Int32Array]",ge="[object Uint8Array]",me="[object Uint8ClampedArray]",ye="[object Uint16Array]",ve="[object Uint32Array]",be=/\b__p \+= '';/g,_e=/\b(__p \+=) '' \+/g,we=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Se=/&(?:amp|lt|gt|quot|#39);/g,Ce=/[&<>"']/g,Ie=RegExp(Se.source),Me=RegExp(Ce.source),xe=/<%-([\s\S]+?)%>/g,Ne=/<%([\s\S]+?)%>/g,Ee=/<%=([\s\S]+?)%>/g,Le=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Te=/^\w*$/,ke=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,De=/[\\^$.*+?()[\]{}|]/g,Oe=RegExp(De.source),Ae=/^\s+|\s+$/g,je=/^\s+/,Pe=/\s+$/,Re=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ze=/\{\n\/\* \[wrapped with (.+)\] \*/,Fe=/,? & /,Be=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ue=/\\(\\)?/g,We=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,He=/\w*$/,Ve=/^[-+]0x[0-9a-f]+$/i,qe=/^0b[01]+$/i,Ye=/^\[object .+?Constructor\]$/,Ge=/^0o[0-7]+$/i,Ze=/^(?:0|[1-9]\d*)$/,Qe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ke=/($^)/,Je=/['\n\r\u2028\u2029\\]/g,Xe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",$e="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",et="[\\ud800-\\udfff]",tt="["+$e+"]",nt="["+Xe+"]",rt="\\d+",it="[\\u2700-\\u27bf]",ot="[a-z\\xdf-\\xf6\\xf8-\\xff]",at="[^\\ud800-\\udfff"+$e+rt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",st="\\ud83c[\\udffb-\\udfff]",ut="[^\\ud800-\\udfff]",ct="(?:\\ud83c[\\udde6-\\uddff]){2}",lt="[\\ud800-\\udbff][\\udc00-\\udfff]",dt="[A-Z\\xc0-\\xd6\\xd8-\\xde]",ht="(?:"+ot+"|"+at+")",pt="(?:"+dt+"|"+at+")",ft="(?:"+nt+"|"+st+")"+"?",gt="[\\ufe0e\\ufe0f]?"+ft+("(?:\\u200d(?:"+[ut,ct,lt].join("|")+")[\\ufe0e\\ufe0f]?"+ft+")*"),mt="(?:"+[it,ct,lt].join("|")+")"+gt,yt="(?:"+[ut+nt+"?",nt,ct,lt,et].join("|")+")",vt=RegExp("['’]","g"),bt=RegExp(nt,"g"),_t=RegExp(st+"(?="+st+")|"+yt+gt,"g"),wt=RegExp([dt+"?"+ot+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[tt,dt,"$"].join("|")+")",pt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[tt,dt+ht,"$"].join("|")+")",dt+"?"+ht+"+(?:['’](?:d|ll|m|re|s|t|ve))?",dt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",rt,mt].join("|"),"g"),St=RegExp("[\\u200d\\ud800-\\udfff"+Xe+"\\ufe0e\\ufe0f]"),Ct=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,It=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Mt=-1,xt={};xt[le]=xt[de]=xt[he]=xt[pe]=xt[fe]=xt[ge]=xt[me]=xt[ye]=xt[ve]=!0,xt[U]=xt[W]=xt[ue]=xt[V]=xt[ce]=xt[q]=xt[G]=xt[Z]=xt[K]=xt[J]=xt[$]=xt[te]=xt[ne]=xt[re]=xt[ae]=!1;var Nt={};Nt[U]=Nt[W]=Nt[ue]=Nt[ce]=Nt[V]=Nt[q]=Nt[le]=Nt[de]=Nt[he]=Nt[pe]=Nt[fe]=Nt[K]=Nt[J]=Nt[$]=Nt[te]=Nt[ne]=Nt[re]=Nt[ie]=Nt[ge]=Nt[me]=Nt[ye]=Nt[ve]=!0,Nt[G]=Nt[Z]=Nt[ae]=!1;var Et={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Lt=parseFloat,Tt=parseInt,kt="object"==typeof e&&e&&e.Object===Object&&e,Dt="object"==typeof self&&self&&self.Object===Object&&self,Ot=kt||Dt||Function("return this")(),At=t&&!t.nodeType&&t,jt=At&&"object"==typeof r&&r&&!r.nodeType&&r,Pt=jt&&jt.exports===At,Rt=Pt&&kt.process,zt=function(){try{var e=jt&&jt.require&&jt.require("util").types;return e||Rt&&Rt.binding&&Rt.binding("util")}catch(e){}}(),Ft=zt&&zt.isArrayBuffer,Bt=zt&&zt.isDate,Ut=zt&&zt.isMap,Wt=zt&&zt.isRegExp,Ht=zt&&zt.isSet,Vt=zt&&zt.isTypedArray;function qt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Yt(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i-1}function Xt(e,t,n){for(var r=-1,i=null==e?0:e.length;++r-1;);return n}function wn(e,t){for(var n=e.length;n--&&un(t,e[n],0)>-1;);return n}var Sn=pn({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Cn=pn({"&":"&","<":"<",">":">",'"':""","'":"'"});function In(e){return"\\"+Et[e]}function Mn(e){return St.test(e)}function xn(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function Nn(e,t){return function(n){return e(t(n))}}function En(e,t){for(var n=-1,r=e.length,i=0,o=[];++n",""":'"',"'":"'"});var An=function e(t){var n,r=(t=null==t?Ot:An.defaults(Ot.Object(),t,An.pick(Ot,It))).Array,i=t.Date,Xe=t.Error,$e=t.Function,et=t.Math,tt=t.Object,nt=t.RegExp,rt=t.String,it=t.TypeError,ot=r.prototype,at=$e.prototype,st=tt.prototype,ut=t["__core-js_shared__"],ct=at.toString,lt=st.hasOwnProperty,dt=0,ht=(n=/[^.]+$/.exec(ut&&ut.keys&&ut.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",pt=st.toString,ft=ct.call(tt),gt=Ot._,mt=nt("^"+ct.call(lt).replace(De,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),yt=Pt?t.Buffer:o,_t=t.Symbol,St=t.Uint8Array,Et=yt?yt.allocUnsafe:o,kt=Nn(tt.getPrototypeOf,tt),Dt=tt.create,At=st.propertyIsEnumerable,jt=ot.splice,Rt=_t?_t.isConcatSpreadable:o,zt=_t?_t.iterator:o,on=_t?_t.toStringTag:o,pn=function(){try{var e=Fo(tt,"defineProperty");return e({},"",{}),e}catch(e){}}(),jn=t.clearTimeout!==Ot.clearTimeout&&t.clearTimeout,Pn=i&&i.now!==Ot.Date.now&&i.now,Rn=t.setTimeout!==Ot.setTimeout&&t.setTimeout,zn=et.ceil,Fn=et.floor,Bn=tt.getOwnPropertySymbols,Un=yt?yt.isBuffer:o,Wn=t.isFinite,Hn=ot.join,Vn=Nn(tt.keys,tt),qn=et.max,Yn=et.min,Gn=i.now,Zn=t.parseInt,Qn=et.random,Kn=ot.reverse,Jn=Fo(t,"DataView"),Xn=Fo(t,"Map"),$n=Fo(t,"Promise"),er=Fo(t,"Set"),tr=Fo(t,"WeakMap"),nr=Fo(tt,"create"),rr=tr&&new tr,ir={},or=da(Jn),ar=da(Xn),sr=da($n),ur=da(er),cr=da(tr),lr=_t?_t.prototype:o,dr=lr?lr.valueOf:o,hr=lr?lr.toString:o;function pr(e){if(Es(e)&&!ys(e)&&!(e instanceof yr)){if(e instanceof mr)return e;if(lt.call(e,"__wrapped__"))return ha(e)}return new mr(e)}var fr=function(){function e(){}return function(t){if(!Ns(t))return{};if(Dt)return Dt(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function gr(){}function mr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function yr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=R,this.__views__=[]}function vr(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function jr(e,t,n,r,i,a){var s,u=t&h,c=t&p,l=t&f;if(n&&(s=i?n(e,r,i,a):n(e)),s!==o)return s;if(!Ns(e))return e;var d=ys(e);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&<.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!u)return no(e,s)}else{var g=Wo(e),m=g==Z||g==Q;if(ws(e))return Ki(e,u);if(g==$||g==U||m&&!i){if(s=c||m?{}:Vo(e),!u)return c?function(e,t){return ro(e,Uo(e),t)}(e,function(e,t){return e&&ro(t,ou(t),e)}(s,e)):function(e,t){return ro(e,Bo(e),t)}(e,kr(s,e))}else{if(!Nt[g])return i?e:{};s=function(e,t,n){var r,i,o,a=e.constructor;switch(t){case ue:return Ji(e);case V:case q:return new a(+e);case ce:return function(e,t){var n=t?Ji(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case le:case de:case he:case pe:case fe:case ge:case me:case ye:case ve:return Xi(e,n);case K:return new a;case J:case re:return new a(e);case te:return(o=new(i=e).constructor(i.source,He.exec(i))).lastIndex=i.lastIndex,o;case ne:return new a;case ie:return r=e,dr?tt(dr.call(r)):{}}}(e,g,u)}}a||(a=new Sr);var y=a.get(e);if(y)return y;a.set(e,s),Os(e)?e.forEach(function(r){s.add(jr(r,t,n,r,e,a))}):Ls(e)&&e.forEach(function(r,i){s.set(i,jr(r,t,n,i,e,a))});var v=d?o:(l?c?Do:ko:c?ou:iu)(e);return Gt(v||e,function(r,i){v&&(r=e[i=r]),Er(s,i,jr(r,t,n,i,e,a))}),s}function Pr(e,t,n){var r=n.length;if(null==e)return!r;for(e=tt(e);r--;){var i=n[r],a=t[i],s=e[i];if(s===o&&!(i in e)||!a(s))return!1}return!0}function Rr(e,t,n){if("function"!=typeof e)throw new it(u);return ia(function(){e.apply(o,n)},t)}function zr(e,t,n,r){var i=-1,o=Jt,s=!0,u=e.length,c=[],l=t.length;if(!u)return c;n&&(t=$t(t,yn(n))),r?(o=Xt,s=!1):t.length>=a&&(o=bn,s=!1,t=new wr(t));e:for(;++i-1},br.prototype.set=function(e,t){var n=this.__data__,r=Lr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},_r.prototype.clear=function(){this.size=0,this.__data__={hash:new vr,map:new(Xn||br),string:new vr}},_r.prototype.delete=function(e){var t=Ro(this,e).delete(e);return this.size-=t?1:0,t},_r.prototype.get=function(e){return Ro(this,e).get(e)},_r.prototype.has=function(e){return Ro(this,e).has(e)},_r.prototype.set=function(e,t){var n=Ro(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},wr.prototype.add=wr.prototype.push=function(e){return this.__data__.set(e,c),this},wr.prototype.has=function(e){return this.__data__.has(e)},Sr.prototype.clear=function(){this.__data__=new br,this.size=0},Sr.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Sr.prototype.get=function(e){return this.__data__.get(e)},Sr.prototype.has=function(e){return this.__data__.has(e)},Sr.prototype.set=function(e,t){var n=this.__data__;if(n instanceof br){var r=n.__data__;if(!Xn||r.length0&&n(s)?t>1?Vr(s,t-1,n,r,i):en(i,s):r||(i[i.length]=s)}return i}var qr=so(),Yr=so(!0);function Gr(e,t){return e&&qr(e,t,iu)}function Zr(e,t){return e&&Yr(e,t,iu)}function Qr(e,t){return Kt(t,function(t){return Is(e[t])})}function Kr(e,t){for(var n=0,r=(t=Yi(t,e)).length;null!=e&&nt}function ei(e,t){return null!=e&<.call(e,t)}function ti(e,t){return null!=e&&t in tt(e)}function ni(e,t,n){for(var i=n?Xt:Jt,a=e[0].length,s=e.length,u=s,c=r(s),l=1/0,d=[];u--;){var h=e[u];u&&t&&(h=$t(h,yn(t))),l=Yn(h.length,l),c[u]=!n&&(t||a>=120&&h.length>=120)?new wr(u&&h):o}h=e[0];var p=-1,f=c[0];e:for(;++p=s)return u;var c=n[r];return u*("desc"==c?-1:1)}}return e.index-t.index}(e,t,n)})}function vi(e,t,n){for(var r=-1,i=t.length,o={};++r-1;)s!==e&&jt.call(s,u,1),jt.call(e,u,1);return e}function _i(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;Yo(i)?jt.call(e,i,1):zi(e,i)}}return e}function wi(e,t){return e+Fn(Qn()*(t-e+1))}function Si(e,t){var n="";if(!e||t<1||t>A)return n;do{t%2&&(n+=e),(t=Fn(t/2))&&(e+=e)}while(t);return n}function Ci(e,t){return oa(ea(e,t,Tu),e+"")}function Ii(e){return Ir(pu(e))}function Mi(e,t){var n=pu(e);return ua(n,Ar(t,0,n.length))}function xi(e,t,n,r){if(!Ns(e))return e;for(var i=-1,a=(t=Yi(t,e)).length,s=a-1,u=e;null!=u&&++io?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=r(o);++i>>1,a=e[o];null!==a&&!js(a)&&(n?a<=t:a=a){var l=t?null:Co(e);if(l)return Ln(l);s=!1,i=bn,c=new wr}else c=t?[]:u;e:for(;++r=r?e:Ti(e,t,n)}var Qi=jn||function(e){return Ot.clearTimeout(e)};function Ki(e,t){if(t)return e.slice();var n=e.length,r=Et?Et(n):new e.constructor(n);return e.copy(r),r}function Ji(e){var t=new e.constructor(e.byteLength);return new St(t).set(new St(e)),t}function Xi(e,t){var n=t?Ji(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function $i(e,t){if(e!==t){var n=e!==o,r=null===e,i=e==e,a=js(e),s=t!==o,u=null===t,c=t==t,l=js(t);if(!u&&!l&&!a&&e>t||a&&s&&c&&!u&&!l||r&&s&&c||!n&&c||!i)return 1;if(!r&&!a&&!l&&e1?n[i-1]:o,s=i>2?n[2]:o;for(a=e.length>3&&"function"==typeof a?(i--,a):o,s&&Go(n[0],n[1],s)&&(a=i<3?o:a,i=1),t=tt(t);++r-1?i[a?t[s]:s]:o}}function po(e){return To(function(t){var n=t.length,r=n,i=mr.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new it(u);if(i&&!s&&"wrapper"==Ao(a))var s=new mr([],!0)}for(r=s?r:n;++r1&&_.reverse(),h&&lu))return!1;var l=a.get(e);if(l&&a.get(t))return l==t;var d=-1,h=!0,p=n&m?new wr:o;for(a.set(e,t),a.set(t,e);++d-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Re,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Gt(B,function(n){var r="_."+n[0];t&n[1]&&!Jt(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(ze);return t?t[1].split(Fe):[]}(r),n)))}function sa(e){var t=0,n=0;return function(){var r=Gn(),i=T-(r-n);if(n=r,i>0){if(++t>=L)return arguments[0]}else t=0;return e.apply(o,arguments)}}function ua(e,t){var n=-1,r=e.length,i=r-1;for(t=t===o?r:t;++n1?e[t-1]:o;return n="function"==typeof n?(e.pop(),n):o,Da(e,n)});function Fa(e){var t=pr(e);return t.__chain__=!0,t}function Ba(e,t){return t(e)}var Ua=To(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return Or(t,e)};return!(t>1||this.__actions__.length)&&r instanceof yr&&Yo(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:Ba,args:[i],thisArg:o}),new mr(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(o),e})):this.thru(i)});var Wa=io(function(e,t,n){lt.call(e,n)?++e[n]:Dr(e,n,1)});var Ha=ho(ma),Va=ho(ya);function qa(e,t){return(ys(e)?Gt:Fr)(e,Po(t,3))}function Ya(e,t){return(ys(e)?Zt:Br)(e,Po(t,3))}var Ga=io(function(e,t,n){lt.call(e,n)?e[n].push(t):Dr(e,n,[t])});var Za=Ci(function(e,t,n){var i=-1,o="function"==typeof t,a=bs(e)?r(e.length):[];return Fr(e,function(e){a[++i]=o?qt(t,e,n):ri(e,t,n)}),a}),Qa=io(function(e,t,n){Dr(e,n,t)});function Ka(e,t){return(ys(e)?$t:hi)(e,Po(t,3))}var Ja=io(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});var Xa=Ci(function(e,t){if(null==e)return[];var n=t.length;return n>1&&Go(e,t[0],t[1])?t=[]:n>2&&Go(t[0],t[1],t[2])&&(t=[t[0]]),yi(e,Vr(t,1),[])}),$a=Pn||function(){return Ot.Date.now()};function es(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,Mo(e,I,o,o,o,o,t)}function ts(e,t){var n;if("function"!=typeof t)throw new it(u);return e=Us(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var ns=Ci(function(e,t,n){var r=y;if(n.length){var i=En(n,jo(ns));r|=S}return Mo(e,r,t,n,i)}),rs=Ci(function(e,t,n){var r=y|v;if(n.length){var i=En(n,jo(rs));r|=S}return Mo(t,r,e,n,i)});function is(e,t,n){var r,i,a,s,c,l,d=0,h=!1,p=!1,f=!0;if("function"!=typeof e)throw new it(u);function g(t){var n=r,a=i;return r=i=o,d=t,s=e.apply(a,n)}function m(e){var n=e-l;return l===o||n>=t||n<0||p&&e-d>=a}function y(){var e=$a();if(m(e))return v(e);c=ia(y,function(e){var n=t-(e-l);return p?Yn(n,a-(e-d)):n}(e))}function v(e){return c=o,f&&r?g(e):(r=i=o,s)}function b(){var e=$a(),n=m(e);if(r=arguments,i=this,l=e,n){if(c===o)return function(e){return d=e,c=ia(y,t),h?g(e):s}(l);if(p)return Qi(c),c=ia(y,t),g(l)}return c===o&&(c=ia(y,t)),s}return t=Hs(t)||0,Ns(n)&&(h=!!n.leading,a=(p="maxWait"in n)?qn(Hs(n.maxWait)||0,t):a,f="trailing"in n?!!n.trailing:f),b.cancel=function(){c!==o&&Qi(c),d=0,r=l=i=c=o},b.flush=function(){return c===o?s:v($a())},b}var os=Ci(function(e,t){return Rr(e,1,t)}),as=Ci(function(e,t,n){return Rr(e,Hs(t)||0,n)});function ss(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new it(u);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(ss.Cache||_r),n}function us(e){if("function"!=typeof e)throw new it(u);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}ss.Cache=_r;var cs=Gi(function(e,t){var n=(t=1==t.length&&ys(t[0])?$t(t[0],yn(Po())):$t(Vr(t,1),yn(Po()))).length;return Ci(function(r){for(var i=-1,o=Yn(r.length,n);++i=t}),ms=ii(function(){return arguments}())?ii:function(e){return Es(e)&<.call(e,"callee")&&!At.call(e,"callee")},ys=r.isArray,vs=Ft?yn(Ft):function(e){return Es(e)&&Xr(e)==ue};function bs(e){return null!=e&&xs(e.length)&&!Is(e)}function _s(e){return Es(e)&&bs(e)}var ws=Un||Hu,Ss=Bt?yn(Bt):function(e){return Es(e)&&Xr(e)==q};function Cs(e){if(!Es(e))return!1;var t=Xr(e);return t==G||t==Y||"string"==typeof e.message&&"string"==typeof e.name&&!ks(e)}function Is(e){if(!Ns(e))return!1;var t=Xr(e);return t==Z||t==Q||t==H||t==ee}function Ms(e){return"number"==typeof e&&e==Us(e)}function xs(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=A}function Ns(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Es(e){return null!=e&&"object"==typeof e}var Ls=Ut?yn(Ut):function(e){return Es(e)&&Wo(e)==K};function Ts(e){return"number"==typeof e||Es(e)&&Xr(e)==J}function ks(e){if(!Es(e)||Xr(e)!=$)return!1;var t=kt(e);if(null===t)return!0;var n=lt.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ct.call(n)==ft}var Ds=Wt?yn(Wt):function(e){return Es(e)&&Xr(e)==te};var Os=Ht?yn(Ht):function(e){return Es(e)&&Wo(e)==ne};function As(e){return"string"==typeof e||!ys(e)&&Es(e)&&Xr(e)==re}function js(e){return"symbol"==typeof e||Es(e)&&Xr(e)==ie}var Ps=Vt?yn(Vt):function(e){return Es(e)&&xs(e.length)&&!!xt[Xr(e)]};var Rs=_o(di),zs=_o(function(e,t){return e<=t});function Fs(e){if(!e)return[];if(bs(e))return As(e)?Dn(e):no(e);if(zt&&e[zt])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[zt]());var t=Wo(e);return(t==K?xn:t==ne?Ln:pu)(e)}function Bs(e){return e?(e=Hs(e))===O||e===-O?(e<0?-1:1)*j:e==e?e:0:0===e?e:0}function Us(e){var t=Bs(e),n=t%1;return t==t?n?t-n:t:0}function Ws(e){return e?Ar(Us(e),0,R):0}function Hs(e){if("number"==typeof e)return e;if(js(e))return P;if(Ns(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ns(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Ae,"");var n=qe.test(e);return n||Ge.test(e)?Tt(e.slice(2),n?2:8):Ve.test(e)?P:+e}function Vs(e){return ro(e,ou(e))}function qs(e){return null==e?"":Pi(e)}var Ys=oo(function(e,t){if(Jo(t)||bs(t))ro(t,iu(t),e);else for(var n in t)lt.call(t,n)&&Er(e,n,t[n])}),Gs=oo(function(e,t){ro(t,ou(t),e)}),Zs=oo(function(e,t,n,r){ro(t,ou(t),e,r)}),Qs=oo(function(e,t,n,r){ro(t,iu(t),e,r)}),Ks=To(Or);var Js=Ci(function(e,t){e=tt(e);var n=-1,r=t.length,i=r>2?t[2]:o;for(i&&Go(t[0],t[1],i)&&(r=1);++n1),t}),ro(e,Do(e),n),r&&(n=jr(n,h|p|f,Eo));for(var i=t.length;i--;)zi(n,t[i]);return n});var cu=To(function(e,t){return null==e?{}:function(e,t){return vi(e,t,function(t,n){return eu(e,n)})}(e,t)});function lu(e,t){if(null==e)return{};var n=$t(Do(e),function(e){return[e]});return t=Po(t),vi(e,n,function(e,n){return t(e,n[0])})}var du=Io(iu),hu=Io(ou);function pu(e){return null==e?[]:vn(e,iu(e))}var fu=co(function(e,t,n){return t=t.toLowerCase(),e+(n?gu(t):t)});function gu(e){return Cu(qs(e).toLowerCase())}function mu(e){return(e=qs(e))&&e.replace(Qe,Sn).replace(bt,"")}var yu=co(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),vu=co(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),bu=uo("toLowerCase");var _u=co(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});var wu=co(function(e,t,n){return e+(n?" ":"")+Cu(t)});var Su=co(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Cu=uo("toUpperCase");function Iu(e,t,n){return e=qs(e),(t=n?o:t)===o?function(e){return Ct.test(e)}(e)?function(e){return e.match(wt)||[]}(e):function(e){return e.match(Be)||[]}(e):e.match(t)||[]}var Mu=Ci(function(e,t){try{return qt(e,o,t)}catch(e){return Cs(e)?e:new Xe(e)}}),xu=To(function(e,t){return Gt(t,function(t){t=la(t),Dr(e,t,ns(e[t],e))}),e});function Nu(e){return function(){return e}}var Eu=po(),Lu=po(!0);function Tu(e){return e}function ku(e){return ui("function"==typeof e?e:jr(e,h))}var Du=Ci(function(e,t){return function(n){return ri(n,e,t)}}),Ou=Ci(function(e,t){return function(n){return ri(e,n,t)}});function Au(e,t,n){var r=iu(t),i=Qr(t,r);null!=n||Ns(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Qr(t,iu(t)));var o=!(Ns(n)&&"chain"in n&&!n.chain),a=Is(e);return Gt(i,function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__);return(n.__actions__=no(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,en([this.value()],arguments))})}),e}function ju(){}var Pu=yo($t),Ru=yo(Qt),zu=yo(rn);function Fu(e){return Zo(e)?hn(la(e)):function(e){return function(t){return Kr(t,e)}}(e)}var Bu=bo(),Uu=bo(!0);function Wu(){return[]}function Hu(){return!1}var Vu=mo(function(e,t){return e+t},0),qu=So("ceil"),Yu=mo(function(e,t){return e/t},1),Gu=So("floor");var Zu,Qu=mo(function(e,t){return e*t},1),Ku=So("round"),Ju=mo(function(e,t){return e-t},0);return pr.after=function(e,t){if("function"!=typeof t)throw new it(u);return e=Us(e),function(){if(--e<1)return t.apply(this,arguments)}},pr.ary=es,pr.assign=Ys,pr.assignIn=Gs,pr.assignInWith=Zs,pr.assignWith=Qs,pr.at=Ks,pr.before=ts,pr.bind=ns,pr.bindAll=xu,pr.bindKey=rs,pr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return ys(e)?e:[e]},pr.chain=Fa,pr.chunk=function(e,t,n){t=(n?Go(e,t,n):t===o)?1:qn(Us(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,s=0,u=r(zn(i/t));ai?0:i+n),(r=r===o||r>i?i:Us(r))<0&&(r+=i),r=n>r?0:Ws(r);n>>0)?(e=qs(e))&&("string"==typeof t||null!=t&&!Ds(t))&&!(t=Pi(t))&&Mn(e)?Zi(Dn(e),0,n):e.split(t,n):[]},pr.spread=function(e,t){if("function"!=typeof e)throw new it(u);return t=null==t?0:qn(Us(t),0),Ci(function(n){var r=n[t],i=Zi(n,0,t);return r&&en(i,r),qt(e,this,i)})},pr.tail=function(e){var t=null==e?0:e.length;return t?Ti(e,1,t):[]},pr.take=function(e,t,n){return e&&e.length?Ti(e,0,(t=n||t===o?1:Us(t))<0?0:t):[]},pr.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Ti(e,(t=r-(t=n||t===o?1:Us(t)))<0?0:t,r):[]},pr.takeRightWhile=function(e,t){return e&&e.length?Bi(e,Po(t,3),!1,!0):[]},pr.takeWhile=function(e,t){return e&&e.length?Bi(e,Po(t,3)):[]},pr.tap=function(e,t){return t(e),e},pr.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new it(u);return Ns(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),is(e,t,{leading:r,maxWait:t,trailing:i})},pr.thru=Ba,pr.toArray=Fs,pr.toPairs=du,pr.toPairsIn=hu,pr.toPath=function(e){return ys(e)?$t(e,la):js(e)?[e]:no(ca(qs(e)))},pr.toPlainObject=Vs,pr.transform=function(e,t,n){var r=ys(e),i=r||ws(e)||Ps(e);if(t=Po(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:Ns(e)&&Is(o)?fr(kt(e)):{}}return(i?Gt:Gr)(e,function(e,r,i){return t(n,e,r,i)}),n},pr.unary=function(e){return es(e,1)},pr.union=Ea,pr.unionBy=La,pr.unionWith=Ta,pr.uniq=function(e){return e&&e.length?Ri(e):[]},pr.uniqBy=function(e,t){return e&&e.length?Ri(e,Po(t,2)):[]},pr.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?Ri(e,o,t):[]},pr.unset=function(e,t){return null==e||zi(e,t)},pr.unzip=ka,pr.unzipWith=Da,pr.update=function(e,t,n){return null==e?e:Fi(e,t,qi(n))},pr.updateWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:Fi(e,t,qi(n),r)},pr.values=pu,pr.valuesIn=function(e){return null==e?[]:vn(e,ou(e))},pr.without=Oa,pr.words=Iu,pr.wrap=function(e,t){return ls(qi(t),e)},pr.xor=Aa,pr.xorBy=ja,pr.xorWith=Pa,pr.zip=Ra,pr.zipObject=function(e,t){return Hi(e||[],t||[],Er)},pr.zipObjectDeep=function(e,t){return Hi(e||[],t||[],xi)},pr.zipWith=za,pr.entries=du,pr.entriesIn=hu,pr.extend=Gs,pr.extendWith=Zs,Au(pr,pr),pr.add=Vu,pr.attempt=Mu,pr.camelCase=fu,pr.capitalize=gu,pr.ceil=qu,pr.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=Hs(n))==n?n:0),t!==o&&(t=(t=Hs(t))==t?t:0),Ar(Hs(e),t,n)},pr.clone=function(e){return jr(e,f)},pr.cloneDeep=function(e){return jr(e,h|f)},pr.cloneDeepWith=function(e,t){return jr(e,h|f,t="function"==typeof t?t:o)},pr.cloneWith=function(e,t){return jr(e,f,t="function"==typeof t?t:o)},pr.conformsTo=function(e,t){return null==t||Pr(e,t,iu(t))},pr.deburr=mu,pr.defaultTo=function(e,t){return null==e||e!=e?t:e},pr.divide=Yu,pr.endsWith=function(e,t,n){e=qs(e),t=Pi(t);var r=e.length,i=n=n===o?r:Ar(Us(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},pr.eq=ps,pr.escape=function(e){return(e=qs(e))&&Me.test(e)?e.replace(Ce,Cn):e},pr.escapeRegExp=function(e){return(e=qs(e))&&Oe.test(e)?e.replace(De,"\\$&"):e},pr.every=function(e,t,n){var r=ys(e)?Qt:Ur;return n&&Go(e,t,n)&&(t=o),r(e,Po(t,3))},pr.find=Ha,pr.findIndex=ma,pr.findKey=function(e,t){return an(e,Po(t,3),Gr)},pr.findLast=Va,pr.findLastIndex=ya,pr.findLastKey=function(e,t){return an(e,Po(t,3),Zr)},pr.floor=Gu,pr.forEach=qa,pr.forEachRight=Ya,pr.forIn=function(e,t){return null==e?e:qr(e,Po(t,3),ou)},pr.forInRight=function(e,t){return null==e?e:Yr(e,Po(t,3),ou)},pr.forOwn=function(e,t){return e&&Gr(e,Po(t,3))},pr.forOwnRight=function(e,t){return e&&Zr(e,Po(t,3))},pr.get=$s,pr.gt=fs,pr.gte=gs,pr.has=function(e,t){return null!=e&&Ho(e,t,ei)},pr.hasIn=eu,pr.head=ba,pr.identity=Tu,pr.includes=function(e,t,n,r){e=bs(e)?e:pu(e),n=n&&!r?Us(n):0;var i=e.length;return n<0&&(n=qn(i+n,0)),As(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&un(e,t,n)>-1},pr.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:Us(n);return i<0&&(i=qn(r+i,0)),un(e,t,i)},pr.inRange=function(e,t,n){return t=Bs(t),n===o?(n=t,t=0):n=Bs(n),function(e,t,n){return e>=Yn(t,n)&&e=-A&&e<=A},pr.isSet=Os,pr.isString=As,pr.isSymbol=js,pr.isTypedArray=Ps,pr.isUndefined=function(e){return e===o},pr.isWeakMap=function(e){return Es(e)&&Wo(e)==ae},pr.isWeakSet=function(e){return Es(e)&&Xr(e)==se},pr.join=function(e,t){return null==e?"":Hn.call(e,t)},pr.kebabCase=yu,pr.last=Ca,pr.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==o&&(i=(i=Us(n))<0?qn(r+i,0):Yn(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):sn(e,ln,i,!0)},pr.lowerCase=vu,pr.lowerFirst=bu,pr.lt=Rs,pr.lte=zs,pr.max=function(e){return e&&e.length?Wr(e,Tu,$r):o},pr.maxBy=function(e,t){return e&&e.length?Wr(e,Po(t,2),$r):o},pr.mean=function(e){return dn(e,Tu)},pr.meanBy=function(e,t){return dn(e,Po(t,2))},pr.min=function(e){return e&&e.length?Wr(e,Tu,di):o},pr.minBy=function(e,t){return e&&e.length?Wr(e,Po(t,2),di):o},pr.stubArray=Wu,pr.stubFalse=Hu,pr.stubObject=function(){return{}},pr.stubString=function(){return""},pr.stubTrue=function(){return!0},pr.multiply=Qu,pr.nth=function(e,t){return e&&e.length?mi(e,Us(t)):o},pr.noConflict=function(){return Ot._===this&&(Ot._=gt),this},pr.noop=ju,pr.now=$a,pr.pad=function(e,t,n){e=qs(e);var r=(t=Us(t))?kn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return vo(Fn(i),n)+e+vo(zn(i),n)},pr.padEnd=function(e,t,n){e=qs(e);var r=(t=Us(t))?kn(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var i=Qn();return Yn(e+i*(t-e+Lt("1e-"+((i+"").length-1))),t)}return wi(e,t)},pr.reduce=function(e,t,n){var r=ys(e)?tn:fn,i=arguments.length<3;return r(e,Po(t,4),n,i,Fr)},pr.reduceRight=function(e,t,n){var r=ys(e)?nn:fn,i=arguments.length<3;return r(e,Po(t,4),n,i,Br)},pr.repeat=function(e,t,n){return t=(n?Go(e,t,n):t===o)?1:Us(t),Si(qs(e),t)},pr.replace=function(){var e=arguments,t=qs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},pr.result=function(e,t,n){var r=-1,i=(t=Yi(t,e)).length;for(i||(i=1,e=o);++rA)return[];var n=R,r=Yn(e,R);t=Po(t),e-=R;for(var i=mn(r,t);++n=a)return e;var u=n-kn(r);if(u<1)return r;var c=s?Zi(s,0,u).join(""):e.slice(0,u);if(i===o)return c+r;if(s&&(u+=c.length-u),Ds(i)){if(e.slice(u).search(i)){var l,d=c;for(i.global||(i=nt(i.source,qs(He.exec(i))+"g")),i.lastIndex=0;l=i.exec(d);)var h=l.index;c=c.slice(0,h===o?u:h)}}else if(e.indexOf(Pi(i),u)!=u){var p=c.lastIndexOf(i);p>-1&&(c=c.slice(0,p))}return c+r},pr.unescape=function(e){return(e=qs(e))&&Ie.test(e)?e.replace(Se,On):e},pr.uniqueId=function(e){var t=++dt;return qs(e)+t},pr.upperCase=Su,pr.upperFirst=Cu,pr.each=qa,pr.eachRight=Ya,pr.first=ba,Au(pr,(Zu={},Gr(pr,function(e,t){lt.call(pr.prototype,t)||(Zu[t]=e)}),Zu),{chain:!1}),pr.VERSION="4.17.14",Gt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){pr[e].placeholder=pr}),Gt(["drop","take"],function(e,t){yr.prototype[e]=function(n){n=n===o?1:qn(Us(n),0);var r=this.__filtered__&&!t?new yr(this):this.clone();return r.__filtered__?r.__takeCount__=Yn(n,r.__takeCount__):r.__views__.push({size:Yn(n,R),type:e+(r.__dir__<0?"Right":"")}),r},yr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Gt(["filter","map","takeWhile"],function(e,t){var n=t+1,r=n==k||3==n;yr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Po(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),Gt(["head","last"],function(e,t){var n="take"+(t?"Right":"");yr.prototype[e]=function(){return this[n](1).value()[0]}}),Gt(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");yr.prototype[e]=function(){return this.__filtered__?new yr(this):this[n](1)}}),yr.prototype.compact=function(){return this.filter(Tu)},yr.prototype.find=function(e){return this.filter(e).head()},yr.prototype.findLast=function(e){return this.reverse().find(e)},yr.prototype.invokeMap=Ci(function(e,t){return"function"==typeof e?new yr(this):this.map(function(n){return ri(n,e,t)})}),yr.prototype.reject=function(e){return this.filter(us(Po(e)))},yr.prototype.slice=function(e,t){e=Us(e);var n=this;return n.__filtered__&&(e>0||t<0)?new yr(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(n=(t=Us(t))<0?n.dropRight(-t):n.take(t-e)),n)},yr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},yr.prototype.toArray=function(){return this.take(R)},Gr(yr.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=pr[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);i&&(pr.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,u=t instanceof yr,c=s[0],l=u||ys(t),d=function(e){var t=i.apply(pr,en([e],s));return r&&h?t[0]:t};l&&n&&"function"==typeof c&&1!=c.length&&(u=l=!1);var h=this.__chain__,p=!!this.__actions__.length,f=a&&!h,g=u&&!p;if(!a&&l){t=g?t:new yr(this);var m=e.apply(t,s);return m.__actions__.push({func:Ba,args:[d],thisArg:o}),new mr(m,h)}return f&&g?e.apply(this,s):(m=this.thru(d),f?r?m.value()[0]:m.value():m)})}),Gt(["pop","push","shift","sort","splice","unshift"],function(e){var t=ot[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);pr.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(ys(i)?i:[],e)}return this[n](function(n){return t.apply(ys(n)?n:[],e)})}}),Gr(yr.prototype,function(e,t){var n=pr[t];if(n){var r=n.name+"";lt.call(ir,r)||(ir[r]=[]),ir[r].push({name:t,func:n})}}),ir[fo(o,v).name]=[{name:"wrapper",func:o}],yr.prototype.clone=function(){var e=new yr(this.__wrapped__);return e.__actions__=no(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=no(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=no(this.__views__),e},yr.prototype.reverse=function(){if(this.__filtered__){var e=new yr(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},yr.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=ys(e),r=t<0,i=n?e.length:0,o=function(e,t,n){for(var r=-1,i=n.length;++r=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},pr.prototype.plant=function(e){for(var t,n=this;n instanceof gr;){var r=ha(n);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},pr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof yr){var t=e;return this.__actions__.length&&(t=new yr(this)),(t=t.reverse()).__actions__.push({func:Ba,args:[Na],thisArg:o}),new mr(t,this.__chain__)}return this.thru(Na)},pr.prototype.toJSON=pr.prototype.valueOf=pr.prototype.value=function(){return Ui(this.__wrapped__,this.__actions__)},pr.prototype.first=pr.prototype.head,zt&&(pr.prototype[zt]=function(){return this}),pr}();Ot._=An,(i=function(){return An}.call(t,n,t,r))===o||(r.exports=i)}).call(this)}).call(this,n(108),n(228)(e))},function(e,t,n){"use strict";n.d(t,"c",function(){return o}),n.d(t,"b",function(){return a}),n.d(t,"o",function(){return s}),n.d(t,"a",function(){return u}),n.d(t,"j",function(){return l}),n.d(t,"f",function(){return d}),n.d(t,"g",function(){return h}),n.d(t,"i",function(){return p}),n.d(t,"m",function(){return f}),n.d(t,"e",function(){return g}),n.d(t,"l",function(){return m}),n.d(t,"n",function(){return y}),n.d(t,"k",function(){return v}),n.d(t,"h",function(){return b}),n.d(t,"d",function(){return _});var r=n(7),i=function(){function e(){this._zoomLevel=0,this._lastZoomLevelChangeTime=0,this._onDidChangeZoomLevel=new r.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");return(window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1)},e.INSTANCE=new e,e}();function o(){return i.INSTANCE.getZoomLevel()}function a(){return i.INSTANCE.getTimeSinceLastZoomLevelChanged()}function s(e){return i.INSTANCE.onDidChangeZoomLevel(e)}function u(){return i.INSTANCE.getPixelRatio()}var c=navigator.userAgent,l=c.indexOf("Trident")>=0,d=c.indexOf("Edge/")>=0,h=l||d,p=c.indexOf("Firefox")>=0,f=c.indexOf("AppleWebKit")>=0,g=c.indexOf("Chrome")>=0,m=!g&&c.indexOf("Safari")>=0,y=!g&&!m&&f,v=c.indexOf("iPad")>=0,b=d&&c.indexOf("WebView/")>=0;function _(){if(l)return!1;if(d){var e=c.indexOf("Edge/"),t=parseInt(c.substring(e+5,c.indexOf(".",e)),10);if(!t||t>=12&&t<=16)return!1}return!0}},function(e,t,n){"use strict";var r=n(14),i=n(7),o=n(6),a=n(284),s=n(9),u=n(35),c=n(43),l=n(11),d=n(4),h=n(25),p=n(68),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;t0){var e=this.past.pop();try{e.undo(this.model)}catch(e){return Object(r.e)(e),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(e){return Object(r.e)(e),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}(),v=function(){return function(){}}();function b(e,t,n,r,i){var o;for(i.spacesDiff=0,i.looksLikeAlignment=!1,o=0;o0&&s>0||c>0&&l>0)){var d=Math.abs(s-l),h=Math.abs(a-c);if(0===d)return i.spacesDiff=h,void(h>0&&0<=c-1&&c-10?i++:m>1&&o++,b(a,s,h,g,c),!c.looksLikeAlignment)){var C=c.spacesDiff;C<=8&&u[C]++,a=h,s=g}}var I=n;i!==o&&(I=ix&&(x=t,M=e)}),4===M&&u[4]>0&&u[2]>0&&u[2]>=u[4]/2&&(M=2),{insertSpaces:I,tabSize:M}}function w(e){return(1&e.metadata)>>>0}function S(e,t){e.metadata=254&e.metadata|t<<0}function C(e){return(2&e.metadata)>>>1==1}function I(e,t){e.metadata=253&e.metadata|(t?1:0)<<1}function M(e){return(4&e.metadata)>>>2==1}function x(e,t){e.metadata=251&e.metadata|(t?1:0)<<2}function N(e){return(8&e.metadata)>>>3==1}function E(e,t){e.metadata=247&e.metadata|(t?1:0)<<3}function L(e,t){e.metadata=207&e.metadata|t<<4}function T(e,t){e.metadata=191&e.metadata|(t?1:0)<<6}var k=function(){function e(e,t,n){this.metadata=0,this.parent=this,this.left=this,this.right=this,S(this,1),this.start=t,this.end=n,this.delta=0,this.maxEnd=n,this.id=e,this.ownerId=0,this.options=null,x(this,!1),L(this,1),E(this,!1),T(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=n,this.range=null,I(this,!1)}return e.prototype.reset=function(e,t,n,r){this.start=t,this.end=n,this.maxEnd=n,this.cachedVersionId=e,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=n,this.range=r},e.prototype.setOptions=function(e){this.options=e;var t=this.options.className;x(this,"squiggly-error"===t||"squiggly-warning"===t||"squiggly-info"===t),L(this,this.options.stickiness),E(this,!(!this.options.overviewRuler||!this.options.overviewRuler.color)),T(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}(),D=new k(null,0,0);D.parent=D,D.left=D,D.right=D,S(D,0);var O=function(){function e(){this.root=D,this.requestNormalizeDelta=!1}return e.prototype.intervalSearch=function(e,t,n,r,i){return this.root===D?[]:function(e,t,n,r,i,o){var a=e.root,s=0,u=0,c=0,l=[],d=0;for(;a!==D;)if(C(a))I(a.left,!1),I(a.right,!1),a===a.parent.right&&(s-=a.parent.delta),a=a.parent;else{if(!C(a.left)){if(s+a.maxEndn)I(a,!0);else{if((c=s+a.end)>=t){a.setCachedOffsets(u,c,o);var h=!0;r&&a.ownerId&&a.ownerId!==r&&(h=!1),i&&M(a)&&(h=!1),h&&(l[d++]=a)}I(a,!0),a.right===D||C(a.right)||(s+=a.delta,a=a.right)}}return I(e.root,!1),l}(this,e,t,n,r,i)},e.prototype.search=function(e,t,n){return this.root===D?[]:function(e,t,n,r){var i=e.root,o=0,a=0,s=0,u=[],c=0;for(;i!==D;)if(C(i))I(i.left,!1),I(i.right,!1),i===i.parent.right&&(o-=i.parent.delta),i=i.parent;else if(i.left===D||C(i.left)){a=o+i.start,s=o+i.end,i.setCachedOffsets(a,s,r);var l=!0;t&&i.ownerId&&i.ownerId!==t&&(l=!1),n&&M(i)&&(l=!1),l&&(u[c++]=i),I(i,!0),i.right===D||C(i.right)||(o+=i.delta,i=i.right)}else i=i.left;return I(e.root,!1),u}(this,e,t,n)},e.prototype.collectNodesFromOwner=function(e){return function(e,t){var n=e.root,r=[],i=0;for(;n!==D;)C(n)?(I(n.left,!1),I(n.right,!1),n=n.parent):n.left===D||C(n.left)?(n.ownerId===t&&(r[i++]=n),I(n,!0),n.right===D||C(n.right)||(n=n.right)):n=n.left;return I(e.root,!1),r}(this,e)},e.prototype.collectNodesPostOrder=function(){return function(e){var t=e.root,n=[],r=0;for(;t!==D;)C(t)?(I(t.left,!1),I(t.right,!1),t=t.parent):t.left===D||C(t.left)?t.right===D||C(t.right)?(n[r++]=t,I(t,!0)):t=t.right:t=t.left;return I(e.root,!1),n}(this)},e.prototype.insert=function(e){P(this,e),this._normalizeDeltaIfNecessary()},e.prototype.delete=function(e){R(this,e),this._normalizeDeltaIfNecessary()},e.prototype.resolveNode=function(e,t){for(var n=e,r=0;e!==this.root;)e===e.parent.right&&(r+=e.parent.delta),e=e.parent;var i=n.start+r,o=n.end+r;n.setCachedOffsets(i,o,t)},e.prototype.acceptReplace=function(e,t,n,r){for(var i=function(e,t,n){var r=e.root,i=0,o=0,a=0,s=[],u=0;for(;r!==D;)if(C(r))I(r.left,!1),I(r.right,!1),r===r.parent.right&&(i-=r.parent.delta),r=r.parent;else{if(!C(r.left)){if(i+r.maxEndn?I(r,!0):((a=i+r.end)>=t&&(r.setCachedOffsets(o,a,0),s[u++]=r),I(r,!0),r.right===D||C(r.right)||(i+=r.delta,r=r.right))}return I(e.root,!1),s}(this,e,e+t),o=0,a=i.length;on?(i.start+=a,i.end+=a,i.delta+=a,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0),I(i,!0)):(I(i,!0),i.right===D||C(i.right)||(o+=i.delta,i=i.right))}I(e.root,!1)}(this,e,e+t,n),this._normalizeDeltaIfNecessary();for(o=0,a=i.length;on)&&(1!==r&&(2===r||t))}function j(e,t,n,r,i){var o=function(e){return(48&e.metadata)>>>4}(e),a=0===o||2===o,s=1===o||2===o,u=n-t,c=r,l=Math.min(u,c),d=e.start,h=!1,p=e.end,f=!1;t<=d&&p<=n&&function(e){return(64&e.metadata)>>>6==1}(e)&&(e.start=t,h=!0,e.end=t,f=!0);var g=i?1:u>0?2:0;if(!h&&A(d,a,t,g)&&(h=!0),!f&&A(p,s,t,g)&&(f=!0),l>0&&!i){g=u>c?2:0;!h&&A(d,a,t+l,g)&&(h=!0),!f&&A(p,s,t+l,g)&&(f=!0)}g=i?1:0;!h&&A(d,a,n,g)&&(e.start=t+c,h=!0),!f&&A(p,s,n,g)&&(e.end=t+c,f=!0);var m=c-u;h||(e.start=Math.max(0,d+m)),f||(e.end=Math.max(0,p+m)),e.start>e.end&&(e.end=e.start)}function P(e,t){if(e.root===D)return t.parent=D,t.left=D,t.right=D,S(t,0),e.root=t,e.root;!function(e,t){var n=0,r=e.root,i=t.start,o=t.end;for(;;){var a=V(i,o,r.start+n,r.end+n);if(a<0){if(r.left===D){t.start-=n,t.end-=n,t.maxEnd-=n,r.left=t;break}r=r.left}else{if(r.right===D){t.start-=n+r.delta,t.end-=n+r.delta,t.maxEnd-=n+r.delta,r.right=t;break}n+=r.delta,r=r.right}}t.parent=r,t.left=D,t.right=D,S(t,1)}(e,t),H(t.parent);for(var n=t;n!==e.root&&1===w(n.parent);){var r;if(n.parent===n.parent.parent.left)1===w(r=n.parent.parent.right)?(S(n.parent,0),S(r,0),S(n.parent.parent,1),n=n.parent.parent):(n===n.parent.right&&F(e,n=n.parent),S(n.parent,0),S(n.parent.parent,1),B(e,n.parent.parent));else 1===w(r=n.parent.parent.left)?(S(n.parent,0),S(r,0),S(n.parent.parent,1),n=n.parent.parent):(n===n.parent.left&&B(e,n=n.parent),S(n.parent,0),S(n.parent.parent,1),F(e,n.parent.parent))}return S(e.root,0),t}function R(e,t){var n,r;if(t.left===D?(r=t,(n=t.right).delta+=t.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta):t.right===D?(n=t.left,r=t):((n=(r=function(e){for(;e.left!==D;)e=e.left;return e}(t.right)).right).start+=r.delta,n.end+=r.delta,n.delta+=r.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),r.start+=t.delta,r.end+=t.delta,r.delta=t.delta,(r.delta<-1073741824||r.delta>1073741824)&&(e.requestNormalizeDelta=!0)),r===e.root)return e.root=n,S(n,0),t.detach(),z(),W(n),void(e.root.parent=D);var i,o=1===w(r);if(r===r.parent.left?r.parent.left=n:r.parent.right=n,r===t?n.parent=r.parent:(r.parent===t?n.parent=r:n.parent=r.parent,r.left=t.left,r.right=t.right,r.parent=t.parent,S(r,w(t)),t===e.root?e.root=r:t===t.parent.left?t.parent.left=r:t.parent.right=r,r.left!==D&&(r.left.parent=r),r.right!==D&&(r.right.parent=r)),t.detach(),o)return H(n.parent),r!==t&&(H(r),H(r.parent)),void z();for(H(n),H(n.parent),r!==t&&(H(r),H(r.parent));n!==e.root&&0===w(n);)n===n.parent.left?(1===w(i=n.parent.right)&&(S(i,0),S(n.parent,1),F(e,n.parent),i=n.parent.right),0===w(i.left)&&0===w(i.right)?(S(i,1),n=n.parent):(0===w(i.right)&&(S(i.left,0),S(i,1),B(e,i),i=n.parent.right),S(i,w(n.parent)),S(n.parent,0),S(i.right,0),F(e,n.parent),n=e.root)):(1===w(i=n.parent.left)&&(S(i,0),S(n.parent,1),B(e,n.parent),i=n.parent.left),0===w(i.left)&&0===w(i.right)?(S(i,1),n=n.parent):(0===w(i.left)&&(S(i.right,0),S(i,1),F(e,i),i=n.parent.left),S(i,w(n.parent)),S(n.parent,0),S(i.left,0),B(e,n.parent),n=e.root));S(n,0),z()}function z(){D.parent=D,D.delta=0,D.start=0,D.end=0}function F(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!==D&&(n.left.parent=t),n.parent=t.parent,t.parent===D?e.root=n:t===t.parent.left?t.parent.left=n:t.parent.right=n,n.left=t,t.parent=n,W(t),W(n)}function B(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!==D&&(n.right.parent=t),n.parent=t.parent,t.parent===D?e.root=n:t===t.parent.right?t.parent.right=n:t.parent.left=n,n.right=t,t.parent=n,W(t),W(n)}function U(e){var t=e.end;if(e.left!==D){var n=e.left.maxEnd;n>t&&(t=n)}if(e.right!==D){var r=e.right.maxEnd+e.delta;r>t&&(t=r)}return t}function W(e){e.maxEnd=U(e)}function H(e){for(;e!==D;){var t=U(e);if(e.maxEnd===t)return;e.maxEnd=t,e=e.parent}}function V(e,t,n,r){return e===n?t-r:e-n}var q=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!==Y)return G(this.right);for(var e=this;e.parent!==Y&&e.parent.left!==e;)e=e.parent;return e.parent===Y?Y:e.parent},e.prototype.prev=function(){if(this.left!==Y)return Z(this.left);for(var e=this;e.parent!==Y&&e.parent.right!==e;)e=e.parent;return e.parent===Y?Y:e.parent},e.prototype.detach=function(){this.parent=null,this.left=null,this.right=null},e}(),Y=new q(null,0);function G(e){for(;e.left!==Y;)e=e.left;return e}function Z(e){for(;e.right!==Y;)e=e.right;return e}function Q(e){return e===Y?0:e.size_left+e.piece.length+Q(e.right)}function K(e){return e===Y?0:e.lf_left+e.piece.lineFeedCnt+K(e.right)}function J(){Y.parent=Y}function X(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!==Y&&(n.left.parent=t),n.parent=t.parent,t.parent===Y?e.root=n:t.parent.left===t?t.parent.left=n:t.parent.right=n,n.left=t,t.parent=n}function $(e,t){var n=t.left;t.left=n.right,n.right!==Y&&(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===Y?e.root=n:t===t.parent.right?t.parent.right=n:t.parent.left=n,n.right=t,t.parent=n}function ee(e,t){var n,r;if(n=t.left===Y?(r=t).right:t.right===Y?(r=t).left:(r=G(t.right)).right,r===e.root)return e.root=n,n.color=0,t.detach(),J(),void(e.root.parent=Y);var i=1===r.color;if(r===r.parent.left?r.parent.left=n:r.parent.right=n,r===t?(n.parent=r.parent,re(e,n)):(r.parent===t?n.parent=r:n.parent=r.parent,re(e,n),r.left=t.left,r.right=t.right,r.parent=t.parent,r.color=t.color,t===e.root?e.root=r:t===t.parent.left?t.parent.left=r:t.parent.right=r,r.left!==Y&&(r.left.parent=r),r.right!==Y&&(r.right.parent=r),r.size_left=t.size_left,r.lf_left=t.lf_left,re(e,r)),t.detach(),n.parent.left===n){var o=Q(n),a=K(n);if(o!==n.parent.size_left||a!==n.parent.lf_left){var s=o-n.parent.size_left,u=a-n.parent.lf_left;n.parent.size_left=o,n.parent.lf_left=a,ne(e,n.parent,s,u)}}if(re(e,n.parent),i)J();else{for(var c;n!==e.root&&0===n.color;)n===n.parent.left?(1===(c=n.parent.right).color&&(c.color=0,n.parent.color=1,X(e,n.parent),c=n.parent.right),0===c.left.color&&0===c.right.color?(c.color=1,n=n.parent):(0===c.right.color&&(c.left.color=0,c.color=1,$(e,c),c=n.parent.right),c.color=n.parent.color,n.parent.color=0,c.right.color=0,X(e,n.parent),n=e.root)):(1===(c=n.parent.left).color&&(c.color=0,n.parent.color=1,$(e,n.parent),c=n.parent.left),0===c.left.color&&0===c.right.color?(c.color=1,n=n.parent):(0===c.left.color&&(c.right.color=0,c.color=1,X(e,c),c=n.parent.left),c.color=n.parent.color,n.parent.color=0,c.left.color=0,$(e,n.parent),n=e.root));n.color=0,J()}}function te(e,t){for(re(e,t);t!==e.root&&1===t.parent.color;){var n;if(t.parent===t.parent.parent.left)1===(n=t.parent.parent.right).color?(t.parent.color=0,n.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.right&&X(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,$(e,t.parent.parent));else 1===(n=t.parent.parent.left).color?(t.parent.color=0,n.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.left&&$(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,X(e,t.parent.parent))}e.root.color=0}function ne(e,t,n,r){for(;t!==e.root&&t!==Y;)t.parent.left===t&&(t.parent.size_left+=n,t.parent.lf_left+=r),t=t.parent}function re(e,t){var n=0,r=0;if(t!==e.root){if(0===n){for(;t!==e.root&&t===t.parent.right;)t=t.parent;if(t===e.root)return;n=Q((t=t.parent).left)-t.size_left,r=K(t.left)-t.lf_left,t.size_left+=n,t.lf_left+=r}for(;t!==e.root&&(0!==n||0!==r);)t.parent.left===t&&(t.parent.size_left+=n,t.parent.lf_left+=r),t=t.parent}}Y.parent=Y,Y.left=Y,Y.right=Y,Y.color=0;var ie=n(106);function oe(e){var t;return(t=e[e.length-1]<65536?new Uint16Array(e.length):new Uint32Array(e.length)).set(e,0),t}var ae=function(){return function(e,t,n,r,i){this.lineStarts=e,this.cr=t,this.lf=n,this.crlf=r,this.isBasicASCII=i}}();function se(e,t){void 0===t&&(t=!0);for(var n=[0],r=1,i=0,o=e.length;i=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)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,r=0;r=e)&&(n[r]=null,t=!0)}if(t){for(var o=[],a=0,s=n;a0){e[i].lineStarts||(e[i].lineStarts=se(e[i].buffer));var a=new ue(i+1,{line:0,column:0},{line:e[i].lineStarts.length-1,column:e[i].buffer.length-e[i].lineStarts[e[i].lineStarts.length-1]},e[i].lineStarts.length-1,e[i].buffer.length);this._buffers.push(e[i]),r=this.rbInsertRight(r,a)}this._searchCache=new le(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()},e.prototype.normalizeEOL=function(e){var t=this,n=65535-Math.floor(21845),r=2*n,i="",o=0,a=[];if(this.iterate(this.root,function(s){var u=t.getNodeContent(s),c=u.length;if(o<=n||o+c0){var s=i.replace(/\r\n|\r|\n/g,e);a.push(new ce(s,se(s)))}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){for(var n=0,r=this.root;r!==Y;)if(r.left!==Y&&r.lf_left+1>=e)r=r.left;else{if(r.lf_left+r.piece.lineFeedCnt+1>=e)return(n+=r.size_left)+(this.getAccumulatedValue(r,e-r.lf_left-2)+t-1);e-=r.lf_left+r.piece.lineFeedCnt,n+=r.size_left+r.piece.length,r=r.right}return n},e.prototype.getPositionAt=function(e){e=Math.floor(e),e=Math.max(0,e);for(var t=this.root,n=0,r=e;t!==Y;)if(0!==t.size_left&&t.size_left>=e)t=t.left;else{if(t.size_left+t.piece.length>=e){var i=this.getIndexOf(t,e-t.size_left);if(n+=t.lf_left+i.index,0===i.index){var o=r-this.getOffsetAt(n+1,1);return new l.a(n+1,o+1)}return new l.a(n+1,i.remainder+1)}if(e-=t.size_left+t.piece.length,n+=t.lf_left+t.piece.lineFeedCnt,t.right===Y){o=r-e-this.getOffsetAt(n+1,1);return new l.a(n+1,o+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),r=this.nodeAt2(e.endLineNumber,e.endColumn),i=this.getValueInRange2(n,r);return t?t===this._EOL&&this._EOLNormalized&&t===this.getEOL()&&this._EOLNormalized?i:i.replace(/\r\n|\r|\n/g,t):i},e.prototype.getValueInRange2=function(e,t){if(e.node===t.node){var n=e.node,r=this._buffers[n.piece.bufferIndex].buffer,i=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return r.substring(i+e.remainder,i+t.remainder)}var o=e.node,a=this._buffers[o.piece.bufferIndex].buffer,s=this.offsetInBuffer(o.piece.bufferIndex,o.piece.start),u=a.substring(s+e.remainder,s+o.piece.length);for(o=o.next();o!==Y;){var c=this._buffers[o.piece.bufferIndex].buffer,l=this.offsetInBuffer(o.piece.bufferIndex,o.piece.start);if(o===t.node){u+=c.substring(l,l+t.remainder);break}u+=c.substr(l,o.piece.length),o=o.next()}return u},e.prototype.getLinesContent=function(){return this.getContentOfSubTree(this.root).split(/\r\n|\r|\n/)},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.value:(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 r=n.node.next();if(!r)return 0;var i=this._buffers[r.piece.bufferIndex],o=this.offsetInBuffer(r.piece.bufferIndex,r.piece.start);return i.buffer.charCodeAt(o)}i=this._buffers[n.node.piece.bufferIndex];var a=(o=this.offsetInBuffer(n.node.piece.bufferIndex,n.node.piece.start))+n.remainder;return i.buffer.charCodeAt(a)},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,r,i,o,a,s,u,c,l){var h,p=this._buffers[e.piece.bufferIndex],f=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start),g=this.offsetInBuffer(e.piece.bufferIndex,i),m=this.offsetInBuffer(e.piece.bufferIndex,o);t.reset(g);var y={line:0,column:0};do{if(h=t.next(p.buffer)){if(h.index>=m)return c;this.positionInBuffer(e,h.index-f,y);var v=this.getLineFeedCnt(e.piece.bufferIndex,i,y),b=y.line===i.line?y.column-i.column+r:y.column+1,_=b+h[0].length;if(l[c++]=Object(ie.d)(new d.a(n+v,b,n+v,_),h,s),h.index+h[0].length>=m)return c;if(c>=u)return c}}while(h);return c},e.prototype.findMatchesLineByLine=function(e,t,n,r){var i=[],o=0,a=new ie.b(t.wordSeparators,t.regex),s=this.nodeAt2(e.startLineNumber,e.startColumn);if(null===s)return[];var u=this.nodeAt2(e.endLineNumber,e.endColumn);if(null===u)return[];var c=this.positionInBuffer(s.node,s.remainder),l=this.positionInBuffer(u.node,u.remainder);if(s.node===u.node)return this.findMatchesInNode(s.node,a,e.startLineNumber,e.startColumn,c,l,t,n,r,o,i),i;for(var d=e.startLineNumber,h=s.node;h!==u.node;){var p=this.getLineFeedCnt(h.piece.bufferIndex,c,h.piece.end);if(p>=1){var f=this._buffers[h.piece.bufferIndex].lineStarts,g=this.offsetInBuffer(h.piece.bufferIndex,h.piece.start),m=f[c.line+p],y=d===e.startLineNumber?e.startColumn:1;if((o=this.findMatchesInNode(h,a,d,y,c,this.positionInBuffer(h,m-g),t,n,r,o,i))>=r)return i;d+=p}var v=d===e.startLineNumber?e.startColumn-1:0;if(d===e.endLineNumber){var b=this.getLineContent(d).substring(v,e.endColumn-1);return o=this._findMatchesInLine(t,a,b,e.endLineNumber,v,o,i,n,r),i}if((o=this._findMatchesInLine(t,a,this.getLineContent(d).substr(v),d,v,o,i,n,r))>=r)return i;d++,h=(s=this.nodeAt2(d,1)).node,c=this.positionInBuffer(s.node,s.remainder)}if(d===e.endLineNumber){var _=d===e.startLineNumber?e.startColumn-1:0;b=this.getLineContent(d).substring(_,e.endColumn-1);return o=this._findMatchesInLine(t,a,b,e.endLineNumber,_,o,i,n,r),i}var w=d===e.startLineNumber?e.startColumn:1;return o=this.findMatchesInNode(u.node,a,d,w,c,l,t,n,r,o,i),i},e.prototype._findMatchesInLine=function(e,t,n,r,i,o,a,s,u){var c,l=e.wordSeparators;if(!s&&e.simpleSearch){for(var h=e.simpleSearch,f=h.length,g=n.length,m=-f;-1!==(m=n.indexOf(h,m+f));)if((!l||Object(ie.e)(l,n,g,m,f))&&(a[o++]=new p.b(new d.a(r,m+1+i,r,m+1+f+i),null),o>=u))return o;return o}t.reset(0);do{if((c=t.next(n))&&(a[o++]=Object(ie.d)(new d.a(r,c.index+1+i,r,c.index+1+c[0].length+i),c,s),o>=u))return o}while(c);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!==Y){var r=this.nodeAt(e),i=r.node,o=r.remainder,a=r.nodeStartOffset,s=i.piece,u=s.bufferIndex,c=this.positionInBuffer(i,o);if(0===i.piece.bufferIndex&&s.end.line===this._lastChangeBufferPos.line&&s.end.column===this._lastChangeBufferPos.column&&a+s.length===e&&t.length<65535)return this.appendToNode(i,t),void this.computeBufferMetadata();if(a===e)this.insertContentToNodeLeft(t,i),this._searchCache.valdiate(e);else if(a+i.piece.length>e){var l=[],d=new ue(s.bufferIndex,c,s.end,this.getLineFeedCnt(s.bufferIndex,c,s.end),this.offsetInBuffer(u,s.end)-this.offsetInBuffer(u,c));if(this.shouldCheckCRLF()&&this.endWithCR(t))if(10===this.nodeCharCodeAt(i,o)){var h={line:d.start.line+1,column:0};d=new ue(d.bufferIndex,h,d.end,this.getLineFeedCnt(d.bufferIndex,h,d.end),d.length-1),t+="\n"}if(this.shouldCheckCRLF()&&this.startWithLF(t))if(13===this.nodeCharCodeAt(i,o-1)){var p=this.positionInBuffer(i,o-1);this.deleteNodeTail(i,p),t="\r"+t,0===i.piece.length&&l.push(i)}else this.deleteNodeTail(i,c);else this.deleteNodeTail(i,c);var f=this.createNewPieces(t);d.length>0&&this.rbInsertRight(i,d);for(var g=i,m=0;m=0;u--)s=this.rbInsertLeft(s,a[u]);this.validateCRLFWithPrevNode(s),this.deleteNodes(n)},e.prototype.insertContentToNodeRight=function(e,t){this.adjustCarriageReturnFromNext(e,t)&&(e+="\n");for(var n=this.createNewPieces(e),r=this.rbInsertRight(t,n[0]),i=r,o=1;o=l))break;s=c+1}return n?(n.line=c,n.column=a-d,null):{line:c,column:a-d}},e.prototype.getLineFeedCnt=function(e,t,n){if(0===n.column)return n.line-t.line;var r=this._buffers[e].lineStarts;if(n.line===r.length-1)return n.line-t.line;var i=r[n.line+1],o=r[n.line]+n.column;if(i>o+1)return n.line-t.line;var a=o-1;return 13===this._buffers[e].buffer.charCodeAt(a)?n.line-t.line+1:n.line-t.line},e.prototype.offsetInBuffer=function(e,t){return this._buffers[e].lineStarts[t.line]+t.column},e.prototype.deleteNodes=function(e){for(var t=0;t65535){for(var t=[];e.length>65535;){var n=e.charCodeAt(65534),r=void 0;13===n||n>=55296&&n<=56319?(r=e.substring(0,65534),e=e.substring(65534)):(r=e.substring(0,65535),e=e.substring(65535));var i=se(r);t.push(new ue(this._buffers.length,{line:0,column:0},{line:i.length-1,column:r.length-i[i.length-1]},i.length-1,r.length)),this._buffers.push(new ce(r,i))}var o=se(e);return t.push(new ue(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 ce(e,o)),t}var a=this._buffers[0].buffer.length,s=se(e,!1),u=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===a&&0!==a&&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 c=0;c=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),a=this._buffers[n.piece.bufferIndex].buffer,s=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return c+=n.size_left,this._searchCache.set({node:n,nodeStartOffset:c,nodeStartLineNumber:l-(e-1-n.lf_left)}),a.substring(s+o,s+u-t)}if(n.lf_left+n.piece.lineFeedCnt===e-1){o=this.getAccumulatedValue(n,e-n.lf_left-2),a=this._buffers[n.piece.bufferIndex].buffer,s=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);r=a.substring(s+o,s+n.piece.length);break}e-=n.lf_left+n.piece.lineFeedCnt,c+=n.size_left+n.piece.length,n=n.right}for(n=n.next();n!==Y;){a=this._buffers[n.piece.bufferIndex].buffer;if(n.piece.lineFeedCnt>0){u=this.getAccumulatedValue(n,0),s=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return r+=a.substring(s,s+u-t)}s=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);r+=a.substr(s,n.piece.length),n=n.next()}return r},e.prototype.computeBufferMetadata=function(){for(var e=this.root,t=1,n=0;e!==Y;)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,r=this.positionInBuffer(e,t),i=r.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,r);if(o!==i)return{index:o,remainder:0}}return{index:i,remainder:r.column}},e.prototype.getAccumulatedValue=function(e,t){if(t<0)return 0;var n=e.piece,r=this._buffers[n.bufferIndex].lineStarts,i=n.start.line+t+1;return i>n.end.line?r[n.end.line]+n.end.column-r[n.start.line]-n.start.column:r[i]-r[n.start.line]-n.start.column},e.prototype.deleteNodeTail=function(e,t){var n=e.piece,r=n.lineFeedCnt,i=this.offsetInBuffer(n.bufferIndex,n.end),o=t,a=this.offsetInBuffer(n.bufferIndex,o),s=this.getLineFeedCnt(n.bufferIndex,n.start,o),u=s-r,c=a-i,l=n.length+c;e.piece=new ue(n.bufferIndex,n.start,o,s,l),ne(this,e,c,u)},e.prototype.deleteNodeHead=function(e,t){var n=e.piece,r=n.lineFeedCnt,i=this.offsetInBuffer(n.bufferIndex,n.start),o=t,a=this.getLineFeedCnt(n.bufferIndex,o,n.end),s=a-r,u=i-this.offsetInBuffer(n.bufferIndex,o),c=n.length+u;e.piece=new ue(n.bufferIndex,o,n.end,a,c),ne(this,e,u,s)},e.prototype.shrinkNode=function(e,t,n){var r=e.piece,i=r.start,o=r.end,a=r.length,s=r.lineFeedCnt,u=t,c=this.getLineFeedCnt(r.bufferIndex,r.start,u),l=this.offsetInBuffer(r.bufferIndex,t)-this.offsetInBuffer(r.bufferIndex,i);e.piece=new ue(r.bufferIndex,r.start,u,c,l),ne(this,e,l-a,c-s);var d=new ue(r.bufferIndex,n,o,this.getLineFeedCnt(r.bufferIndex,n,o),this.offsetInBuffer(r.bufferIndex,o)-this.offsetInBuffer(r.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),r=this._buffers[0].buffer.length;this._buffers[0].buffer+=t;for(var i=se(t,!1),o=0;oe)t=t.left;else{if(t.size_left+t.piece.length>=e){r+=t.size_left;var i={node:t,remainder:e-t.size_left,nodeStartOffset:r};return this._searchCache.set(i),i}e-=t.size_left+t.piece.length,r+=t.size_left+t.piece.length,t=t.right}return null},e.prototype.nodeAt2=function(e,t){for(var n=this.root,r=0;n!==Y;)if(n.left!==Y&&n.lf_left>=e-1)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt>e-1){var i=this.getAccumulatedValue(n,e-n.lf_left-2),o=this.getAccumulatedValue(n,e-n.lf_left-1);return r+=n.size_left,{node:n,remainder:Math.min(i+t-1,o),nodeStartOffset:r}}if(n.lf_left+n.piece.lineFeedCnt===e-1){if((i=this.getAccumulatedValue(n,e-n.lf_left-2))+t-1<=n.piece.length)return{node:n,remainder:i+t-1,nodeStartOffset:r};t-=n.piece.length-i;break}e-=n.lf_left+n.piece.lineFeedCnt,r+=n.size_left+n.piece.length,n=n.right}for(n=n.next();n!==Y;){if(n.piece.lineFeedCnt>0){o=this.getAccumulatedValue(n,0);var a=this.offsetOfNode(n);return{node:n,remainder:Math.min(t-1,o),nodeStartOffset:a}}if(n.piece.length>=t-1)return{node:n,remainder:t-1,nodeStartOffset:this.offsetOfNode(n)};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],r=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start)+t;return n.buffer.charCodeAt(r)},e.prototype.offsetOfNode=function(e){if(!e)return 0;for(var t=e.size_left;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===Y||0===e.piece.lineFeedCnt)return!1;var t=e.piece,n=this._buffers[t.bufferIndex].lineStarts,r=t.start.line,i=n[r]+t.start.column;return r!==n.length-1&&(!(n[r+1]>i+1)&&10===this._buffers[t.bufferIndex].buffer.charCodeAt(i))},e.prototype.endWithCR=function(e){return"string"==typeof e?13===e.charCodeAt(e.length-1):e!==Y&&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,r=[],i=this._buffers[e.piece.bufferIndex].lineStarts;n=0===e.piece.end.column?{line:e.piece.end.line-1,column:i[e.piece.end.line]-i[e.piece.end.line-1]-1}:{line:e.piece.end.line,column:e.piece.end.column-1};var o=e.piece.length-1,a=e.piece.lineFeedCnt-1;e.piece=new ue(e.piece.bufferIndex,e.piece.start,n,a,o),ne(this,e,-1,-1),0===e.piece.length&&r.push(e);var s={line:t.piece.start.line+1,column:0},u=t.piece.length-1,c=this.getLineFeedCnt(t.piece.bufferIndex,s,t.piece.end);t.piece=new ue(t.piece.bufferIndex,s,t.piece.end,c,u),ne(this,t,-1,-1),0===t.piece.length&&r.push(t);var l=this.createNewPieces("\r\n");this.rbInsertRight(e,l[0]);for(var d=0;d0){y.sort(function(e,t){return t.lineNumber-e.lineNumber}),C=[];u=0;for(var I=y.length;u0&&y[u-1].lineNumber===b)){var M=y[u].oldContent,x=this.getLineContent(b);0!==x.length&&x!==M&&-1===s.o(x)&&C.push(b)}}}return new p.a(w,S,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,r=e[e.length-1].range,i=new d.a(n.startLineNumber,n.startColumn,r.endLineNumber,r.endColumn),o=n.startLineNumber,a=n.startColumn,s=[],u=0,c=e.length;u0){var h=s.lines.length,p=s.lines[0],f=s.lines[h-1];l=1===h?new d.a(u,c,u,c+p.length):new d.a(u,c,u+h-1,f.length+1)}else l=new d.a(u,c,u,c);n=l.endLineNumber,r=l.endColumn,t.push(l),i=s}return t},e._sortOpsAscending=function(e,t){var n=d.a.compareRangesUsingEnds(e.range,t.range);return 0===n?e.sortIndex-t.sortIndex:n},e._sortOpsDescending=function(e,t){var n=d.a.compareRangesUsingEnds(e.range,t.range);return 0===n?t.sortIndex-e.sortIndex:-n},e}(),pe=function(){function e(e,t,n,r,i,o,a,s){this._chunks=e,this._bom=t,this._cr=n,this._lf=r,this._crlf=i,this._containsRTL=o,this._isBasicASCII=a,this._normalizeEOL=s}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 r=0,i=n.length;r=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=function(e,t){e.length=0,e[0]=0;for(var n=1,r=0,i=0,o=0,a=!0,s=0,u=t.length;s126)&&(a=!1)}var l=new ae(oe(e),r,i,o,a);return e.length=0,l}(this._tmpLineStarts,e);this.chunks.push(new ce(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.g(e))},e.prototype.finish=function(e){return void 0===e&&(e=!0),this._finish(),new pe(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=se(e.buffer);e.lineStarts=t,13===this._previousChar&&this.cr++}},e}(),ge=function(){return function(){this.changeType=1}}(),me=function(){return function(e,t){this.changeType=2,this.lineNumber=e,this.detail=t}}(),ye=function(){return function(e,t){this.changeType=3,this.fromLineNumber=e,this.toLineNumber=t}}(),ve=function(){return function(e,t,n){this.changeType=4,this.fromLineNumber=e,this.toLineNumber=t,this.detail=n}}(),be=function(){return function(){this.changeType=5}}(),_e=function(){function e(e,t,n,r){this.changes=e,this.versionId=t,this.isUndoing=n,this.isRedoing=r}return e.prototype.containsEvent=function(e){for(var t=0,n=this.changes.length;t>>0}var Ne=new Uint32Array(0).buffer,Ee=function(){function e(e){this._state=e,this._lineTokens=null,this._invalid=!0}return e.prototype.deleteBeginning=function(e){null!==this._lineTokens&&this._lineTokens!==Ne&&this.delete(0,e)},e.prototype.deleteEnding=function(e){if(null!==this._lineTokens&&this._lineTokens!==Ne){var t=new Uint32Array(this._lineTokens),n=t[t.length-2];this.delete(e,n)}},e.prototype.delete=function(e,t){if(null!==this._lineTokens&&this._lineTokens!==Ne&&e!==t){var n=new Uint32Array(this._lineTokens),r=n.length>>>1;if(0!==e||n[n.length-2]!==t){var i=Ce.a.findIndexInTokensArray(n,e),o=i>0?n[i-1<<1]:0;if(tc&&(n[u++]=h,n[u++]=n[1+(d<<1)],c=h)}if(u!==n.length){var p=new Uint32Array(u);p.set(n.subarray(0,u),0),this._lineTokens=p.buffer}}}else this._lineTokens=Ne}},e.prototype.append=function(e){if(e!==Ne)if(this._lineTokens!==Ne){if(null!==this._lineTokens)if(null!==e){var t=new Uint32Array(this._lineTokens),n=new Uint32Array(e),r=n.length>>>1,i=new Uint32Array(t.length+n.length);i.set(t,0);for(var o=t.length,a=t[t.length-2],s=0;s>>1,i=Ce.a.findIndexInTokensArray(n,e);if(i>0)n[i-1<<1]===e&&i--;for(var o=i;o=e},e.prototype.hasLinesToTokenize=function(e){return this._invalidLineStartIndex1&&(o=Ie.x.getLanguageId(r[1])!==e),!o)return void(i._lineTokens=Ne)}r&&0!==r.length||((r=new Uint32Array(2))[0]=0,r[1]=xe(e)),Ce.a.convertToEndOffset(r,n),i._lineTokens=r.buffer},e.prototype._setState=function(e,t){if(e=0;o--)this.invalidateLine(e.startLineNumber+o-1);this._acceptDeleteRange(e),this._acceptInsertText(new l.a(e.startLineNumber,e.startColumn),t,n)},e.prototype._acceptDeleteRange=function(e){var t=e.startLineNumber-1;if(!(t>=this._tokens.length))if(e.startLineNumber!==e.endLineNumber){var n=this._tokens[t];n.deleteEnding(e.startColumn-1);var r=e.endLineNumber-1,i=null;if(r=this._tokens.length))if(0!==t){var i=this._tokens[r];i.deleteEnding(e.column-1),i.insert(e.column-1,n);for(var o=new Array(t),a=t-1;a>=0;a--)o[a]=new Ee(null);this._tokens=Se.a(this._tokens,e.lineNumber,o)}else this._tokens[r].insert(e.column-1,n)}},e.prototype._tokenizeOneLine=function(e,t){if(!this.hasLinesToTokenize(e))return e.getLineCount()+1;var n=this._invalidLineStartIndex+1;return this._updateTokensUntilLine(e,t,n),n},e.prototype._tokenizeText=function(e,t,n){var i=null;if(this.tokenizationSupport)try{i=this.tokenizationSupport.tokenize2(t,n,0)}catch(e){Object(r.e)(e)}return i||(i=Object(Me.e)(this.languageIdentifier.id,t,n,0)),i},e.prototype._updateTokensUntilLine=function(e,t,n){if(this.tokenizationSupport){for(var i=e.getLineCount(),o=n-1,a=this._invalidLineStartIndex;a<=o;a++){var s=a+1,u=e.getLineContent(a+1),c=this._getState(a),l=null;try{var d=c.clone();l=this.tokenizationSupport.tokenize2(u,d,0)}catch(e){Object(r.e)(e)}if(l||(l=Object(Me.e)(this.languageIdentifier.id,u,c,0)),this._setTokens(this.languageIdentifier.id,a,u.length,l.tokens),t.registerChangedTokens(a+1),this._setIsInvalid(a,!1),s0?t[n-1]:null;r&&r.toLineNumber===e-1?r.toLineNumber++:t[n]={fromLineNumber:e,toLineNumber:e}},e.prototype.build=function(){return 0===this._ranges.length?null:{tokenizationSupportChanged:!1,ranges:this._ranges}},e}(),ke=n(144),De=n(41),Oe=n(124),Ae=n(152),je=n(24);n.d(t,"b",function(){return We}),n.d(t,"a",function(){return Ye});var Pe,Re=(Pe=function(e,t){return(Pe=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)},function(e,t){function n(){this.constructor=e}Pe(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function ze(e){var t=new fe;return t.acceptChunk(e),t.finish()}function Fe(e,t){return("string"==typeof e?ze(e):e).create(t)}var Be=0;var Ue=function(){throw new Error("Invalid change accessor")},We=function(e){function t(n,r,o,a){void 0===a&&(a=null);var s=e.call(this)||this;s._onWillDispose=s._register(new i.a),s.onWillDispose=s._onWillDispose.event,s._onDidChangeDecorations=s._register(new Qe),s.onDidChangeDecorations=s._onDidChangeDecorations.event,s._onDidChangeLanguage=s._register(new i.a),s.onDidChangeLanguage=s._onDidChangeLanguage.event,s._onDidChangeLanguageConfiguration=s._register(new i.a),s.onDidChangeLanguageConfiguration=s._onDidChangeLanguageConfiguration.event,s._onDidChangeTokens=s._register(new i.a),s.onDidChangeTokens=s._onDidChangeTokens.event,s._onDidChangeOptions=s._register(new i.a),s.onDidChangeOptions=s._onDidChangeOptions.event,s._eventEmitter=s._register(new Ke),Be++,s.id="$model"+Be,s.isForSimpleWidget=r.isForSimpleWidget,s._associatedResource=null==a?u.a.parse("inmemory://model/"+Be):a,s._attachedEditorCount=0,s._buffer=Fe(n,r.defaultEOL),s._options=t.resolveOptions(s._buffer,r);var c,l=s._buffer.getLineCount(),h=s._buffer.getValueLengthInRange(new d.a(1,1,l,s._buffer.getLineLength(l)+1),0);return r.largeFileOptimizations?s._isTooLargeForTokenization=h>t.LARGE_FILE_SIZE_THRESHOLD||l>t.LARGE_FILE_LINE_COUNT_THRESHOLD:s._isTooLargeForTokenization=!1,s._isTooLargeForSyncing=h>t.MODEL_SYNC_LIMIT,s._setVersionId(1),s._isDisposed=!1,s._isDisposing=!1,s._languageIdentifier=o||Me.a,s._tokenizationListener=Ie.y.onDidChange(function(e){-1!==e.changedLanguages.indexOf(s._languageIdentifier.language)&&(s._resetTokenizationState(),s.emitModelTokensChangedEvent({tokenizationSupportChanged:!0,ranges:[{fromLineNumber:1,toLineNumber:s.getLineCount()}]}),s._shouldAutoTokenize()&&s._warmUpTokens())}),s._revalidateTokensTimeout=-1,s._languageRegistryListener=De.a.onDidChange(function(e){e.languageIdentifier.id===s._languageIdentifier.id&&s._onDidChangeLanguageConfiguration.fire({})}),s._resetTokenizationState(),s._instanceId=(c=Be,(c%=52)<26?String.fromCharCode(97+c):String.fromCharCode(65+c-26)),s._lastDecorationId=0,s._decorations=Object.create(null),s._decorationsTree=new He,s._commandManager=new y(s),s._isUndoing=!1,s._isRedoing=!1,s._trimAutoWhitespaceLines=null,s}return Re(t,e),t.createFromString=function(e,n,r,i){return void 0===n&&(n=t.DEFAULT_CREATION_OPTIONS),void 0===r&&(r=null),void 0===i&&(i=null),new t(e,n,r,i)},t.resolveOptions=function(e,t){if(t.detectIndentation){var n=_(e,t.tabSize,t.insertSpaces);return new p.d({tabSize:n.tabSize,indentSize:n.tabSize,insertSpaces:n.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL})}return new p.d({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.onDidChangeContent=function(e){return this._eventEmitter.slowEvent(function(t){return e(t.contentChangedEvent)})},t.prototype.dispose=function(){this._isDisposing=!0,this._onWillDispose.fire(),this._tokenizationListener.dispose(),this._languageRegistryListener.dispose(),this._clearTimers(),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 we(e,t))},t.prototype.setValue=function(e){if(this._assertNotDisposed(),null!==e){var t=Fe(e,this._options.defaultEOL);this.setValueFromTextBuffer(t)}},t.prototype._createContentChanged2=function(e,t,n,r,i,o,a){return{changes:[{range:e,rangeOffset:t,rangeLength:n,text:r}],eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:i,isRedoing:o,isFlush:a}},t.prototype.setValueFromTextBuffer=function(e){if(this._assertNotDisposed(),null!==e){var t=this.getFullModelRange(),n=this.getValueLengthInRange(t),r=this.getLineCount(),i=this.getLineMaxColumn(r);this._buffer=e,this._increaseVersionId(),this._resetTokenizationState(),this._decorations=Object.create(null),this._decorationsTree=new He,this._commandManager=new y(this),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new _e([new ge],this._versionId,!1,!1),this._createContentChanged2(new d.a(1,1,r,i),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(),r=this.getValueLengthInRange(n),i=this.getLineCount(),o=this.getLineMaxColumn(i);this._onBeforeEOLChange(),this._buffer.setEOL(t),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new _e([new be],this._versionId,!1,!1),this._createContentChanged2(new d.a(1,1,i,o),0,r,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,r=t.length;n0},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(),r=1;r<=n;r++){var i=this._buffer.getLineLength(r);i>=1e4?t+=i:e+=i}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=void 0!==e.tabSize?e.tabSize:this._options.tabSize,n=void 0!==e.indentSize?e.indentSize:this._options.indentSize,r=void 0!==e.insertSpaces?e.insertSpaces:this._options.insertSpaces,i=void 0!==e.trimAutoWhitespace?e.trimAutoWhitespace:this._options.trimAutoWhitespace,o=new p.d({tabSize:t,indentSize:n,insertSpaces:r,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:i});if(!this._options.equals(o)){var a=this._options.createChangeEvent(o);this._options=o,this._onDidChangeOptions.fire(a)}},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 r=0,i=0;ithis.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,r=this._buffer.getLineCount(),i=e.startLineNumber,o=e.startColumn;if(i<1)t=1,n=1;else if(i>r)t=r,n=this.getLineMaxColumn(t);else{if(t=0|i,o<=1)n=1;else n=o>=(l=this.getLineMaxColumn(t))?l:0|o}var a,s,u=e.endLineNumber,c=e.endColumn;if(u<1)a=1,s=1;else if(u>r)a=r,s=this.getLineMaxColumn(a);else{var l;if(a=0|u,c<=1)s=1;else s=c>=(l=this.getLineMaxColumn(a))?l:0|c}return i===t&&o===n&&u===a&&c===s&&e instanceof d.a&&!(e instanceof h.a)?e:new d.a(t,n,a,s)},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;if(e>this._buffer.getLineCount())return!1;if(t>this.getLineMaxColumn(e))return!1;if(n&&t>1){var r=this._buffer.getLineCharCode(e,t-2);if(s.u(r))return!1}return!0},t.prototype._validatePosition=function(e,t,n){var r=Math.floor("number"!=typeof e||isNaN(e)?1:e),i=Math.floor("number"!=typeof t||isNaN(t)?1:t),o=this._buffer.getLineCount();if(r<1)return new l.a(1,1);if(r>o)return new l.a(o,this.getLineMaxColumn(o));if(i<=1)return new l.a(r,1);var a=this.getLineMaxColumn(r);if(i>=a)return new l.a(r,a);if(n){var u=this._buffer.getLineCharCode(r,i-2);if(s.u(u))return new l.a(r,i-1)}return new l.a(r,i)},t.prototype.validatePosition=function(e){return this._assertNotDisposed(),e instanceof l.a&&this._isValidPosition(e.lineNumber,e.column,!0)?e:this._validatePosition(e.lineNumber,e.column,!0)},t.prototype._isValidRange=function(e,t){var n=e.startLineNumber,r=e.startColumn,i=e.endLineNumber,o=e.endColumn;if(!this._isValidPosition(n,r,!1))return!1;if(!this._isValidPosition(i,o,!1))return!1;if(t){var a=r>1?this._buffer.getLineCharCode(n,r-2):0,u=o>1&&o<=this._buffer.getLineLength(i)?this._buffer.getLineCharCode(i,o-2):0,c=s.u(a),l=s.u(u);return!c&&!l}return!0},t.prototype.validateRange=function(e){if(this._assertNotDisposed(),e instanceof d.a&&!(e instanceof h.a)&&this._isValidRange(e,!0))return e;var t=this._validatePosition(e.startLineNumber,e.startColumn,!1),n=this._validatePosition(e.endLineNumber,e.endColumn,!1),r=t.lineNumber,i=t.column,o=n.lineNumber,a=n.column,u=i>1?this._buffer.getLineCharCode(r,i-2):0,c=a>1&&a<=this._buffer.getLineLength(o)?this._buffer.getLineCharCode(o,a-2):0,l=s.u(u),p=s.u(c);return l||p?r===o&&i===a?new d.a(r,i-1,o,a-1):l&&p?new d.a(r,i-1,o,a+1):l?new d.a(r,i-1,o,a):new d.a(r,i,o,a+1):new d.a(r,i,o,a)},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 d.a(1,1,e,this.getLineMaxColumn(e))},t.prototype.findMatchesLineByLine=function(e,t,n,r){return this._buffer.findMatchesLineByLine(e,t,n,r)},t.prototype.findMatches=function(e,t,n,r,i,o,a){var s;if(void 0===a&&(a=999),this._assertNotDisposed(),s=d.a.isIRange(t)?this.validateRange(t):this.getFullModelRange(),!n&&e.indexOf("\n")<0){var u=new ie.a(e,n,r,i).parseSearchRequest();return u?this.findMatchesLineByLine(s,u,o,a):[]}return ie.c.findMatches(this,new ie.a(e,n,r,i),s,o,a)},t.prototype.findNextMatch=function(e,t,n,r,i,o){this._assertNotDisposed();var a=this.validatePosition(t);if(!n&&e.indexOf("\n")<0){var s=new ie.a(e,n,r,i).parseSearchRequest();if(!s)return null;var u=this.getLineCount(),c=new d.a(a.lineNumber,a.column,u,this.getLineMaxColumn(u)),l=this.findMatchesLineByLine(c,s,o,1);return ie.c.findNextMatch(this,new ie.a(e,n,r,i),a,o),l.length>0?l[0]:(c=new d.a(1,1,a.lineNumber,this.getLineMaxColumn(a.lineNumber)),(l=this.findMatchesLineByLine(c,s,o,1)).length>0?l[0]:null)}return ie.c.findNextMatch(this,new ie.a(e,n,r,i),a,o)},t.prototype.findPreviousMatch=function(e,t,n,r,i,o){this._assertNotDisposed();var a=this.validatePosition(t);return ie.c.findPreviousMatch(this,new ie.a(e,n,r,i),a,o)},t.prototype.pushStackElement=function(){this._commandManager.pushStackElement()},t.prototype.pushEOL=function(e){if(("\n"===this.getEOL()?0:1)!==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 r=this;if(this._options.trimAutoWhitespace&&this._trimAutoWhitespaceLines){for(var i=t.map(function(e){return{range:r.validateRange(e.range),text:e.text}}),o=!0,a=0,s=e.length;au.endLineNumber,f=u.startLineNumber>v.endLineNumber;if(!p&&!f){c=!0;break}}if(!c){o=!1;break}}if(o)for(a=0,s=this._trimAutoWhitespaceLines.length;av.endLineNumber)&&!(g===v.startLineNumber&&v.startColumn===m&&v.isEmpty()&&b&&b.length>0&&"\n"===b.charAt(0)||g===v.startLineNumber&&1===v.startColumn&&v.isEmpty()&&b&&b.length>0&&"\n"===b.charAt(b.length-1))){y=!1;break}}y&&t.push({range:new d.a(g,1,g,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._eolCount=function(e){for(var t=0,n=0,r=0,i=e.length;r=0;_--){var w=f+_,S=a-c-b+w;u.push(new me(w,this.getLineContent(S)))}if(vthis.getLineCount()?[]:this.getLinesDecorations(e,e,t,n)},t.prototype.getLinesDecorations=function(e,t,n,r){void 0===n&&(n=0),void 0===r&&(r=!1);var i=this.getLineCount(),o=Math.min(i,Math.max(1,e)),a=Math.min(i,Math.max(1,t)),s=this.getLineMaxColumn(a);return this._getDecorationsInRange(new d.a(o,1,a,s),n,r)},t.prototype.getDecorationsInRange=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=!1);var r=this.validateRange(e);return this._getDecorationsInRange(r,t,n)},t.prototype.getOverviewRulerDecorations=function(e,t){void 0===e&&(e=0),void 0===t&&(t=!1);var n=this.getVersionId(),r=this._decorationsTree.search(e,t,!0,n);return this._ensureNodesHaveRanges(r)},t.prototype.getAllDecorations=function(e,t){void 0===e&&(e=0),void 0===t&&(t=!1);var n=this.getVersionId(),r=this._decorationsTree.search(e,t,!1,n);return this._ensureNodesHaveRanges(r)},t.prototype._getDecorationsInRange=function(e,t,n){var r=this._buffer.getOffsetAt(e.startLineNumber,e.startColumn),i=this._buffer.getOffsetAt(e.endLineNumber,e.endColumn),o=this.getVersionId(),a=this._decorationsTree.intervalSearch(r,i,t,n,o);return this._ensureNodesHaveRanges(a)},t.prototype._ensureNodesHaveRanges=function(e){for(var t=0,n=e.length;t0&&o>=1;o--){var a=this.getLineFirstNonWhitespaceColumn(o);if(0!==a&&a=0;o--){s=(c=this._tokens._tokenizeText(this._buffer,r[o],s))?c.endState.clone():i.clone()}var u=new Te;for(o=e;o<=t;o++){var c,l=this.getLineContent(o);(c=this._tokens._tokenizeText(this._buffer,l,s))?(this._tokens._setTokens(this._tokens.languageIdentifier.id,o-1,l.length,c.tokens),this._tokens._setIsInvalid(o-1,!0),this._tokens._setState(o-1,s),s=c.endState.clone(),u.registerChangedTokens(o)):s=i.clone()}var d=u.build();d&&this._onDidChangeTokens.fire(d)}},t.prototype.flushTokens=function(){this._resetTokenizationState(),this.emitModelTokensChangedEvent({tokenizationSupportChanged:!1,ranges:[{fromLineNumber:1,toLineNumber:this.getLineCount()}]})},t.prototype.forceTokenization=function(e){if(e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");var t=new Te;this._tokens._updateTokensUntilLine(this._buffer,t,e);var n=t.build();n&&this._onDidChangeTokens.fire(n)},t.prototype.isCheapToTokenize=function(e){return!!this._tokens.isCheapToTokenize(e)&&(ethis.getLineCount())throw new Error("Illegal value for lineNumber");return this._getLineTokens(e)},t.prototype._getLineTokens=function(e){var t=this._buffer.getLineContent(e);return this._tokens.getTokens(this._languageIdentifier.id,e-1,t)},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._resetTokenizationState(),this.emitModelTokensChangedEvent({tokenizationSupportChanged:!0,ranges:[{fromLineNumber:1,toLineNumber:this.getLineCount()}]}),this._onDidChangeLanguage.fire(t),this._onDidChangeLanguageConfiguration.fire({})}},t.prototype.getLanguageIdAtPosition=function(e,t){if(!this._tokens.tokenizationSupport)return this._languageIdentifier.id;var n=this.validatePosition({lineNumber:e,column:t}),r=n.lineNumber,i=n.column,o=this._getLineTokens(r);return o.getLanguageId(o.findTokenIndexAtOffset(i-1))},t.prototype._beginBackgroundTokenization=function(){var e=this;this._shouldAutoTokenize()&&-1===this._revalidateTokensTimeout&&(this._revalidateTokensTimeout=setTimeout(function(){e._revalidateTokensTimeout=-1,e._revalidateTokensNow()},0))},t.prototype._warmUpTokens=function(){var e=Math.min(100,this.getLineCount());this._revalidateTokensNow(e),this._tokens.hasLinesToTokenize(this._buffer)&&this._beginBackgroundTokenization()},t.prototype._revalidateTokensNow=function(e){void 0===e&&(e=this._buffer.getLineCount());for(var t=new Te,n=a.a.create(!1);this._tokens.hasLinesToTokenize(this._buffer)&&!(n.elapsed()>20);){if(this._tokens._tokenizeOneLine(this._buffer,t)>=e)break}this._tokens.hasLinesToTokenize(this._buffer)&&this._beginBackgroundTokenization();var r=t.build();r&&this._onDidChangeTokens.fire(r)},t.prototype.emitModelTokensChangedEvent=function(e){this._isDisposing||this._onDidChangeTokens.fire(e)},t.prototype.getWordAtPosition=function(e){this._assertNotDisposed();var n=this.validatePosition(e),r=this.getLineContent(n.lineNumber),i=this._getLineTokens(n.lineNumber),o=i.findTokenIndexAtOffset(n.column-1),a=t._findLanguageBoundaries(i,o),s=a[0],u=a[1],c=Object(ke.d)(n.column,De.a.getWordDefinition(i.getLanguageId(o)),r.substring(s,u),s);if(c&&c.startColumn<=e.column&&e.column<=c.endColumn)return c;if(o>0&&s===n.column-1){var l=t._findLanguageBoundaries(i,o-1),d=l[0],h=l[1],p=Object(ke.d)(n.column,De.a.getWordDefinition(i.getLanguageId(o-1)),r.substring(d,h),d);if(p&&p.startColumn<=e.column&&e.column<=p.endColumn)return p}return null},t._findLanguageBoundaries=function(e,t){for(var n=e.getLanguageId(t),r=0,i=t;i>=0&&e.getLanguageId(i)===n;i--)r=e.getStartOffset(i);for(var o=e.getLineContent().length,a=(i=t,e.getCount());i0&&n.getStartOffset(i)===e.column-1){s=n.getStartOffset(i);i--;var c=De.a.getBracketsSupport(n.getLanguageId(i));if(c&&!Object(Oe.b)(n.getStandardTokenType(i))){var l,d,h;a=Math.max(n.getStartOffset(i),e.column-1-c.maxBracketLength);if((l=Ae.a.findPrevBracketInToken(c.reversedRegex,t,r,a,s))&&l.startColumn<=e.column&&e.column<=l.endColumn)if(d=(d=r.substring(l.startColumn-1,l.endColumn-1)).toLowerCase(),h=this._matchFoundBracket(l,c.textIsBracket[d],c.textIsOpenBracket[d]))return h}}return null},t.prototype._matchFoundBracket=function(e,t,n){if(!t)return null;var r;if(n){if(r=this._findMatchingBracketDown(t,e.getEndPosition()))return[e,r]}else if(r=this._findMatchingBracketUp(t,e.getStartPosition()))return[e,r];return null},t.prototype._findMatchingBracketUp=function(e,t){for(var n=e.languageIdentifier.id,r=e.reversedRegex,i=-1,o=t.lineNumber;o>=1;o--){var a=this._getLineTokens(o),s=a.getCount(),u=this._buffer.getLineContent(o),c=s-1,l=-1;for(o===t.lineNumber&&(c=a.findTokenIndexAtOffset(t.column-1),l=t.column-1);c>=0;c--){var d=a.getLanguageId(c),h=a.getStandardTokenType(c),p=a.getStartOffset(c),f=a.getEndOffset(c);if(-1===l&&(l=f),d===n&&!Object(Oe.b)(h))for(;;){var g=Ae.a.findPrevBracketInToken(r,o,u,p,l);if(!g)break;var m=u.substring(g.startColumn-1,g.endColumn-1);if((m=m.toLowerCase())===e.open?i++:m===e.close&&i--,0===i)return g;l=g.startColumn-1}l=-1}}return null},t.prototype._findMatchingBracketDown=function(e,t){for(var n=e.languageIdentifier.id,r=e.forwardRegex,i=1,o=t.lineNumber,a=this.getLineCount();o<=a;o++){var s=this._getLineTokens(o),u=s.getCount(),c=this._buffer.getLineContent(o),l=0,d=0;for(o===t.lineNumber&&(l=s.findTokenIndexAtOffset(t.column-1),d=t.column-1);l=1;i--){var o=this._getLineTokens(i),a=o.getCount(),s=this._buffer.getLineContent(i),u=a-1,c=-1;for(i===t.lineNumber&&(u=o.findTokenIndexAtOffset(t.column-1),c=t.column-1);u>=0;u--){var l=o.getLanguageId(u),d=o.getStandardTokenType(u),h=o.getStartOffset(u),p=o.getEndOffset(u);if(-1===c&&(c=p),n!==l&&(n=l,r=De.a.getBracketsSupport(n)),r&&!Object(Oe.b)(d)){var f=Ae.a.findPrevBracketInToken(r.reversedRegex,i,s,h,c);if(f)return this._toFoundBracket(r,f)}c=-1}}return null},t.prototype.findNextBracket=function(e){for(var t=this.validatePosition(e),n=-1,r=null,i=t.lineNumber,o=this.getLineCount();i<=o;i++){var a=this._getLineTokens(i),s=a.getCount(),u=this._buffer.getLineContent(i),c=0,l=0;for(i===t.lineNumber&&(c=a.findTokenIndexAtOffset(t.column-1),l=t.column-1);ci)throw new Error("Illegal value for lineNumber");for(var o=De.a.getFoldingRules(this._languageIdentifier.id),a=Boolean(o&&o.offSide),s=-2,u=-1,c=-2,l=-1,d=function(e){if(-1!==s&&(-2===s||s>e-1)){s=-1,u=-1;for(var t=e-2;t>=0;t--){var n=r._computeIndentLevel(t);if(n>=0){s=t,u=n;break}}}if(-2===c){c=-1,l=-1;for(t=e;t=0){c=t,l=o;break}}}},h=-2,p=-1,f=-2,g=-1,m=function(e){if(-2===h){h=-1,p=-1;for(var t=e-2;t>=0;t--){var n=r._computeIndentLevel(t);if(n>=0){h=t,p=n;break}}}if(-1!==f&&(-2===f||f=0){f=t,g=o;break}}}},y=0,v=!0,b=0,_=!0,w=0,S=0;v||_;S++){var C=e-S,I=e+S;if(0!==S&&(C<1||Ci||I>n)&&(_=!1),S>5e4&&(v=!1,_=!1),v){var M=void 0;if((x=this._computeIndentLevel(C-1))>=0?(c=C-1,l=x,M=Math.ceil(x/this._options.indentSize)):(d(C),M=this._getIndentLevelForWhitespaceLine(a,u,l)),0===S){if(y=C,b=I,0===(w=M))return{startLineNumber:y,endLineNumber:b,indent:w};continue}M>=w?y=C:v=!1}if(_){var x,N=void 0;(x=this._computeIndentLevel(I-1))>=0?(h=I-1,p=x,N=Math.ceil(x/this._options.indentSize)):(m(I),N=this._getIndentLevelForWhitespaceLine(a,p,g)),N>=w?b=I:_=!1}}return{startLineNumber:y,endLineNumber:b,indent:w}},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 r=De.a.getFoldingRules(this._languageIdentifier.id),i=Boolean(r&&r.offSide),o=new Array(t-e+1),a=-2,s=-1,u=-2,c=-1,l=e;l<=t;l++){var d=l-e,h=this._computeIndentLevel(l-1);if(h>=0)a=l-1,s=h,o[d]=Math.ceil(h/this._options.indentSize);else{if(-2===a){a=-1,s=-1;for(var p=l-2;p>=0;p--){if((f=this._computeIndentLevel(p))>=0){a=p,s=f;break}}}if(-1!==u&&(-2===u||u=0){u=p,c=f;break}}}o[d]=this._getIndentLevelForWhitespaceLine(i,s,c)}}return o},t.prototype._getIndentLevelForWhitespaceLine=function(e,t,n){return-1===t||-1===n?0:t0?this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(e):this._deferredEvent=e:(this._fastEmitter.fire(e),this._slowEmitter.fire(e))},t}(o.a)},function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return o});var r=n(2),i=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._lineHeight=-1,this._letterSpacing=-100,this._className="",this._display="",this._position="",this._visibility="",this._layerHint=!1}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.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){r.P(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.setLayerHinting=function(e){this._layerHint!==e&&(this._layerHint=e,this.domNode.style.willChange=this._layerHint?"transform":"auto")},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 i(e)}},function(e,t,n){"use strict";(function(e){ /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ var r=n(811),i=n(812),o=n(813);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function f(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return B(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return U(e).length;default:if(r)return B(e).length;t=(""+t).toLowerCase(),r=!0}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function m(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var o,a=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var l=-1;for(o=n;os&&(n=s-u),o=n;o>=0;o--){for(var d=!0,h=0;hi&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function I(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function M(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:c>223?3:c>191?2:1;if(i+d<=n)switch(d){case 1:c<128&&(l=c);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,d=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=d}return function(e){var t=e.length;if(t<=x)return String.fromCharCode.apply(String,e);var n="",r=0;for(;rthis.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return L(this,t,n);case"utf8":case"utf-8":return M(this,t,n);case"ascii":return N(this,t,n);case"latin1":case"binary":return E(this,t,n);case"base64":return I(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},u.prototype.compare=function(e,t,n,r,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),c=this.slice(r,i),l=e.slice(t,n),d=0;di)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return v(this,e,t,n);case"utf8":case"utf-8":return b(this,e,t,n);case"ascii":return _(this,e,t,n);case"latin1":case"binary":return w(this,e,t,n);case"base64":return S(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var x=4096;function N(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;ir)&&(n=r);for(var i="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function D(e,t,n,r,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function O(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function A(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function j(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function P(e,t,n,r,o){return o||j(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function R(e,t,n,r,o){return o||j(e,0,n,8),i.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(i*=256);)r+=this[e+--t]*i;return r},u.prototype.readUInt8=function(e,t){return t||k(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||k(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||k(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||k(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||k(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||k(e,t,this.length);for(var r=this[e],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||k(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||k(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||k(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||k(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||k(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||k(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||k(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||k(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||k(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||k(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||D(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+i]=e/o&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):O(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):O(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):A(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):A(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);D(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);D(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):O(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):O(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):A(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):A(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return P(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return P(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return R(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return R(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function U(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(z,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function W(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(108))},function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var i=(a=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),o=r.sources.map(function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"});return[n].concat(o).concat([i]).join("\n")}var a;return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},i=0;i=0&&l.splice(t,1)}function m(e){var t=document.createElement("style");if(void 0===e.attrs.type&&(e.attrs.type="text/css"),void 0===e.attrs.nonce){var r=function(){0;return n.nc}();r&&(e.attrs.nonce=r)}return y(t,e.attrs),f(e,t),t}function y(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function v(e,t){var n,r,i,o;if(t.transform&&e.css){if(!(o="function"==typeof t.transform?t.transform(e.css):t.transform.default(e.css)))return function(){};e.css=o}if(t.singleton){var a=c++;n=u||(u=m(t)),r=w.bind(null,n,a,!1),i=w.bind(null,n,a,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",y(t,e.attrs),f(e,t),t}(t),r=function(e,t,n){var r=n.css,i=n.sourceMap,o=void 0===t.convertToAbsoluteUrls&&i;(t.convertToAbsoluteUrls||o)&&(r=d(r));i&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var a=new Blob([r],{type:"text/css"}),s=e.href;e.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}.bind(null,n,t),i=function(){g(n),n.href&&URL.revokeObjectURL(n.href)}):(n=m(t),r=function(e,t){var n=t.css,r=t.media;r&&e.setAttribute("media",r);if(e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),i=function(){g(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=a()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=p(e,t);return h(n,t),function(e){for(var r=[],i=0;i=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o)-1!==r&&(n+=encodeURIComponent(e.substring(r,i)),r=-1),void 0!==n&&(n+=e.charAt(i));else{void 0===n&&(n=e.substr(0,i));var a=m[o];void 0!==a?(-1!==r&&(n+=encodeURIComponent(e.substring(r,i)),r=-1),n+=a):-1===r&&(r=i)}}return-1!==r&&(n+=encodeURIComponent(e.substring(r))),void 0!==n?n:e}function v(e){for(var t=void 0,n=0;n1&&"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,o.g&&(t=t.replace(/\//g,"\\")),t}function _(e,t){var n=t?v:y,r="",i=e.scheme,o=e.authority,a=e.path,s=e.query,u=e.fragment;if(i&&(r+=i,r+=":"),(o||"file"===i)&&(r+=h,r+=h),o){var c=o.indexOf("@");if(-1!==c){var l=o.substr(0,c);o=o.substr(c+1),-1===(c=l.indexOf(":"))?r+=n(l,!1):(r+=n(l.substr(0,c),!1),r+=":",r+=n(l.substr(c+1),!1)),r+="@"}-1===(c=(o=o.toLowerCase()).indexOf(":"))?r+=n(o,!1):(r+=n(o.substr(0,c),!1),r+=o.substr(c))}if(a){if(a.length>=3&&47===a.charCodeAt(0)&&58===a.charCodeAt(2))(d=a.charCodeAt(1))>=65&&d<=90&&(a="/"+String.fromCharCode(d+32)+":"+a.substr(3));else if(a.length>=2&&58===a.charCodeAt(1)){var d;(d=a.charCodeAt(0))>=65&&d<=90&&(a=String.fromCharCode(d+32)+":"+a.substr(2))}r+=n(a,!0)}return s&&(r+="?",r+=n(s,!1)),u&&(r+="#",r+=t?u:y(u,!1)),r}},function(e,t,n){"use strict";n.d(t,"c",function(){return i}),n.d(t,"d",function(){return o}),n.d(t,"b",function(){return s}),n.d(t,"g",function(){return u}),n.d(t,"a",function(){return c}),n.d(t,"e",function(){return l}),n.d(t,"f",function(){return d});var r=n(24);function i(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]=i(e[n]):t[n]=e[n]}),t}function o(e){if(!e||"object"!=typeof e)return e;for(var t=[e];t.length>0;){var n=t.shift();for(var r in Object.freeze(n),n)if(a.call(n,r)){var i=n[r];"object"!=typeof i||Object.isFrozen(i)||t.push(i)}}return e}var a=Object.prototype.hasOwnProperty;function s(e,t){return function e(t,n,i){if(Object(r.j)(t))return t;var o=n(t);if(void 0!==o)return o;if(Object(r.b)(t)){for(var s=[],u=0,c=t;u1&&!!e.close}).map(function(e){return new c.b(e)}),n.docComment&&this._complexAutoClosePairs.push(new c.b({open:n.docComment.open,close:n.docComment.close||""}))}return e.prototype.getElectricCharacters=function(){var e=[];if(this._richEditBrackets)for(var t=0,n=this._richEditBrackets.brackets.length;t=0))return{appendText:a.close}}}}return null},e}(),f=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}(),g=function(){function e(t){var n=this;(t=t||{}).brackets=t.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],t.brackets.forEach(function(t){var r=e._createOpenBracketRegExp(t[0]),i=e._createCloseBracketRegExp(t[1]);r&&i&&n._brackets.push({open:t[0],openRegExp:r,close:t[1],closeRegExp:i})}),this._regExpRules=t.regExpRules||[]}return e.prototype.onEnter=function(e,t,n){for(var r=0,i=this._regExpRules.length;r0&&n.length>0)for(r=0,i=this._brackets.length;r0)for(r=0,i=this._brackets.length;r1){var i=void 0,o=-1;for(i=t-1;i>=1;i--){if(e.getLanguageIdAtPosition(i,0)!==r)return o;var a=e.getLineContent(i);if(!n.shouldIgnore(a)&&!/^\s+$/.test(a)&&""!==a)return i;o=i}}return-1},e.prototype.getInheritIndentForLine=function(e,t,n){void 0===n&&(n=!0);var r=this.getIndentRulesSupport(e.getLanguageIdentifier().id);if(!r)return null;if(t<=1)return{indentation:"",action:null};var i=this.getPrecedingValidLine(e,t,r);if(i<0)return null;if(i<1)return{indentation:"",action:null};var o=e.getLineContent(i);if(r.shouldIncrease(o)||r.shouldIndentNextLine(o))return{indentation:a.q(o),action:c.a.Indent,line:i};if(r.shouldDecrease(o))return{indentation:a.q(o),action:null,line:i};if(1===i)return{indentation:a.q(e.getLineContent(i)),action:null,line:i};var s=i-1,u=r.getIndentMetadata(e.getLineContent(s));if(!(3&u)&&4&u){for(var l=0,d=s-1;d>0;d--)if(!r.shouldIndentNextLine(e.getLineContent(d))){l=d;break}return{indentation:a.q(e.getLineContent(l+1)),action:null,line:l+1}}if(n)return{indentation:a.q(e.getLineContent(i)),action:null,line:i};for(d=i;d>0;d--){var h=e.getLineContent(d);if(r.shouldIncrease(h))return{indentation:a.q(h),action:c.a.Indent,line:d};if(r.shouldIndentNextLine(h)){l=0;for(var p=d-1;p>0;p--)if(!r.shouldIndentNextLine(e.getLineContent(d))){l=p;break}return{indentation:a.q(e.getLineContent(l+1)),action:null,line:l+1}}if(r.shouldDecrease(h))return{indentation:a.q(h),action:null,line:d}}return{indentation:a.q(e.getLineContent(1)),action:null,line:1}},e.prototype.getGoodIndentForLine=function(e,t,n,i){var o=this.getIndentRulesSupport(t);if(!o)return null;var s=this.getInheritIndentForLine(e,n),u=e.getLineContent(n);if(s){var l=s.line;if(void 0!==l){var d=this._getOnEnterSupport(t),h=null;try{d&&(h=d.onEnter("",e.getLineContent(l),""))}catch(e){Object(r.e)(e)}if(h){var p=a.q(e.getLineContent(l));return h.removeText&&(p=p.substring(0,p.length-h.removeText)),h.indentAction===c.a.Indent||h.indentAction===c.a.IndentOutdent?p=i.shiftIndent(p):h.indentAction===c.a.Outdent&&(p=i.unshiftIndent(p)),o.shouldDecrease(u)&&(p=i.unshiftIndent(p)),h.appendText&&(p+=h.appendText),a.q(p)}}return o.shouldDecrease(u)?s.action===c.a.Indent?s.indentation:i.unshiftIndent(s.indentation):s.action===c.a.Indent?i.shiftIndent(s.indentation):s.indentation}return null},e.prototype.getIndentForEnter=function(e,t,n,r){e.forceTokenization(t.startLineNumber);var i,o,s=e.getLineTokens(t.startLineNumber),u=Object(l.a)(s,t.startColumn-1),d=u.getLineContent(),h=!1;(u.firstCharOffset>0&&s.getLanguageId(0)!==u.languageId?(h=!0,i=d.substr(0,t.startColumn-1-u.firstCharOffset)):i=s.getLineContent().substring(0,t.startColumn-1),t.isEmpty())?o=d.substr(t.startColumn-1-u.firstCharOffset):o=this.getScopedLineTokens(e,t.endLineNumber,t.endColumn).getLineContent().substr(t.endColumn-1-u.firstCharOffset);var p=this.getIndentRulesSupport(u.languageId);if(!p)return null;var f=i,g=a.q(i);if(!r&&!h){var m=this.getInheritIndentForLine(e,t.startLineNumber);p.shouldDecrease(i)&&m&&(g=m.indentation,m.action!==c.a.Indent&&(g=n.unshiftIndent(g))),f=g+a.z(a.z(i," "),"\t")}var y={getLineTokens:function(t){return e.getLineTokens(t)},getLanguageIdentifier:function(){return e.getLanguageIdentifier()},getLanguageIdAtPosition:function(t,n){return e.getLanguageIdAtPosition(t,n)},getLineContent:function(n){return n===t.startLineNumber?f:e.getLineContent(n)}},v=a.q(s.getLineContent()),b=this.getInheritIndentForLine(y,t.startLineNumber+1);if(!b){var _=h?v:g;return{beforeEnter:_,afterEnter:_}}var w=h?v:b.indentation;return b.action===c.a.Indent&&(w=n.shiftIndent(w)),p.shouldDecrease(o)&&(w=n.unshiftIndent(w)),{beforeEnter:h?v:g,afterEnter:w}},e.prototype.getIndentActionForType=function(e,t,n,r){var i=this.getScopedLineTokens(e,t.startLineNumber,t.startColumn),o=this.getIndentRulesSupport(i.languageId);if(!o)return null;var a,s=i.getLineContent(),u=s.substr(0,t.startColumn-1-i.firstCharOffset);t.isEmpty()?a=s.substr(t.startColumn-1-i.firstCharOffset):a=this.getScopedLineTokens(e,t.endLineNumber,t.endColumn).getLineContent().substr(t.endColumn-1-i.firstCharOffset);if(!o.shouldDecrease(u+a)&&o.shouldDecrease(u+n+a)){var l=this.getInheritIndentForLine(e,t.startLineNumber,!1);if(!l)return null;var d=l.indentation;return l.action!==c.a.Indent&&(d=r.unshiftIndent(d)),d}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._getOnEnterSupport=function(e){var t=this._getRichEditSupport(e);return t&&t.onEnter||null},e.prototype.getRawEnterActionAtPosition=function(e,t,n){var r=this.getEnterAction(e,new s.a(t,n,t,n));return r?r.enterAction:null},e.prototype.getEnterAction=function(e,t){var n=this.getIndentationAtPosition(e,t.startLineNumber,t.startColumn),i=this.getScopedLineTokens(e,t.startLineNumber,t.startColumn),o=this._getOnEnterSupport(i.languageId);if(!o)return null;var a,s=i.getLineContent(),u=s.substr(0,t.startColumn-1-i.firstCharOffset);t.isEmpty()?a=s.substr(t.startColumn-1-i.firstCharOffset):a=this.getScopedLineTokens(e,t.endLineNumber,t.endColumn).getLineContent().substr(t.endColumn-1-i.firstCharOffset);var l=t.startLineNumber,d="";if(l>1&&0===i.firstCharOffset){var h=this.getScopedLineTokens(e,l-1);h.languageId===i.languageId&&(d=h.getLineContent())}var p=null;try{p=o.onEnter(d,u,a)}catch(e){Object(r.e)(e)}return p?(p.appendText||(p.indentAction===c.a.Indent||p.indentAction===c.a.IndentOutdent?p.appendText="\t":p.appendText=""),p.removeText&&(n=n.substring(0,n.length-p.removeText)),{enterAction:p,indentation:n}):null},e.prototype.getIndentationAtPosition=function(e,t,n){var r=e.getLineContent(t),i=a.q(r);return i.length>n-1&&(i=i.substring(0,n-1)),i},e.prototype.getScopedLineTokens=function(e,t,n){e.forceTokenization(t);var r=e.getLineTokens(t),i=void 0===n?e.getLineMaxColumn(t)-1:n-1;return Object(l.a)(r,i)},e.prototype.getBracketsSupport=function(e){var t=this._getRichEditSupport(e);return t&&t.brackets||null},e}()))},function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return o});var r=n(7),i=function(e,t,n){var i=function(e){return o.fire(e)},o=new r.a({onFirstListenerAdd:function(){e.addEventListener(t,i,n)},onLastListenerRemove:function(){e.removeEventListener(t,i,n)}});return o.event};function o(e){return r.b.map(e,function(e){return e.preventDefault(),e.stopPropagation(),e})}},function(e,t,n){"use strict";n.d(t,"h",function(){return d}),n.d(t,"g",function(){return r}),n.d(t,"i",function(){return h}),n.d(t,"e",function(){return p}),n.d(t,"d",function(){return S}),n.d(t,"f",function(){return C}),n.d(t,"b",function(){return M}),n.d(t,"c",function(){return x}),n.d(t,"a",function(){return N});var r,i=n(1),o=n(21),a=n(36),s=n(17),u=n(144),c=n(24),l=function(){return(l=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=2?(C=y?2:4,D=2/b):(C=y?1:3,D=1/b),(M=Math.max(0,Math.floor((k-d-2)*D/(c+D))))/D>v&&(M=Math.floor(v*D)),x=k-M,"left"===m?(I=0,N+=M,E+=M,L+=M,T+=M):I=t-M-d}else I=0,M=0,C=0,x=k;var O=h?p:0;return{width:t,height:n,glyphMarginLeft:N,glyphMarginWidth:S,glyphMarginHeight:n,lineNumbersLeft:E,lineNumbersWidth:_,lineNumbersHeight:n,decorationsLeft:L,decorationsWidth:u,decorationsHeight:n,contentLeft:T,contentWidth:x,contentHeight:n,renderMinimap:C,minimapLeft:I,minimapWidth:M,viewportColumn:Math.max(1,Math.floor((x-d-2)/c)),verticalScrollbarWidth:d,horizontalScrollbarHeight:f,overviewRuler:{top:O,width:d,height:n-2*O,right:0}}},e}(),M={fontFamily:s.d?"Menlo, Monaco, 'Courier New', monospace":s.c?"'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'":"Consolas, 'Courier New', monospace",fontWeight:"normal",fontSize:s.d?12:14,lineHeight:0,letterSpacing:0},x={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0},N={inDiffEditor:!1,wordSeparators:u.b,lineNumbersMinChars:5,lineDecorationsWidth:10,readOnly:!1,mouseStyle:"text",disableLayerHinting:!1,automaticLayout:!1,wordWrap:"off",wordWrapColumn:80,wordWrapMinified:!0,wrappingIndent:1,wordWrapBreakBeforeCharacters:"([{‘“〈《「『【〔([{「£¥$£¥++",wordWrapBreakAfterCharacters:" \t})]?|/&,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」",wordWrapBreakObtrusiveCharacters:".",autoClosingBrackets:"languageDefined",autoClosingQuotes:"languageDefined",autoSurround:"languageDefined",autoIndent:!0,dragAndDrop:!0,emptySelectionClipboard:!0,copyWithSyntaxHighlighting:!0,useTabStops:!0,multiCursorModifier:"altKey",multiCursorMergeOverlapping:!0,accessibilitySupport:"auto",showUnused:!0,viewInfo:{extraEditorClassName:"",disableMonospaceOptimizations:!1,rulers:[],ariaLabel:i.a("editorViewAccessibleLabel","Editor content"),renderLineNumbers:1,renderCustomLineNumbers:null,renderFinalNewline:!0,selectOnLineNumbers:!0,glyphMargin:!0,revealHorizontalRightPadding:30,roundedSelection:!0,overviewRulerLanes:2,overviewRulerBorder:!0,cursorBlinking:1,mouseWheelZoom:!1,cursorSmoothCaretAnimation:!1,cursorStyle:r.Line,cursorWidth:0,hideCursorInOverviewRuler:!1,scrollBeyondLastLine:!0,scrollBeyondLastColumn:5,smoothScrolling:!1,stopRenderingLineAfter:1e4,renderWhitespace:"none",renderControlCharacters:!1,fontLigatures:!1,renderIndentGuides:!0,highlightActiveIndentGuide:!0,renderLineHighlight:"line",scrollbar:{vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:10,horizontalSliderSize:10,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,mouseWheelScrollSensitivity:1,fastScrollSensitivity:5},minimap:{enabled:!0,side:"right",showSlider:"mouseover",renderCharacters:!0,maxColumn:120},fixedOverflowWidgets:!1},contribInfo:{selectionClipboard:!0,hover:{enabled:!0,delay:300,sticky:!0},links:!0,contextmenu:!0,quickSuggestions:{other:!0,comments:!1,strings:!1},quickSuggestionsDelay:10,parameterHints:{enabled:!0,cycle:!1},formatOnType:!1,formatOnPaste:!1,suggestOnTriggerCharacters:!0,acceptSuggestionOnEnter:"on",acceptSuggestionOnCommitCharacter:!0,wordBasedSuggestions:!0,suggestSelection:"recentlyUsed",suggestFontSize:0,suggestLineHeight:0,tabCompletion:"off",suggest:{filterGraceful:!0,snippets:"inline",snippetsPreventQuickSuggestions:!0,localityBonus:!1,shareSuggestSelections:!1,showIcons:!0,maxVisibleSuggestions:12,filteredTypes:Object.create(null)},gotoLocation:{multiple:"peek"},selectionHighlight:!0,occurrencesHighlight:!0,codeLens:!0,folding:!0,foldingStrategy:"auto",showFoldingControls:"mouseover",matchBrackets:!0,find:{seedSearchStringFromSelection:!0,autoFindInSelection:!1,globalFindClipboard:!1,addExtraSpaceOnTop:!0},colorDecorators:!0,lightbulbEnabled:!0,codeActionsOnSave:{},codeActionsOnSaveTimeout:750}}},function(e,t,n){"use strict";var r=n(97);t.__esModule=!0,t.addMethod=function(e,t,n){if(!e||!(0,g.default)(e.prototype))throw new TypeError("You must provide a yup schema constructor function");if("string"!=typeof t)throw new TypeError("A Method name must be provided");if("function"!=typeof n)throw new TypeError("Method function must be provided");e.prototype[t]=n},t.lazy=t.ref=t.boolean=void 0;var i=r(n(188));t.mixed=i.default;var o=r(n(1138));t.bool=o.default;var a=r(n(1139));t.string=a.default;var s=r(n(1140));t.number=s.default;var u=r(n(1141));t.date=u.default;var c=r(n(1143));t.object=c.default;var l=r(n(1163));t.array=l.default;var d=r(n(235)),h=r(n(1164)),p=r(n(334));t.ValidationError=p.default;var f=r(n(676));t.reach=f.default;var g=r(n(191));t.isSchema=g.default;var m=r(n(1165));t.setLocale=m.default;var y=o.default;t.boolean=y;t.ref=function(e,t){return new d.default(e,t)};t.lazy=function(e){return new h.default(e)}},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(23),i=Object(r.c)("codeEditorService")},function(e,t,n){"use strict";function r(e){return e&&"string"==typeof e.id}n.d(t,"c",function(){return r}),n.d(t,"a",function(){return i}),n.d(t,"b",function(){return o});var i={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"}},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return D}),n.d(t,"b",function(){return h}),n.d(t,"c",function(){return C}),n.d(t,"d",function(){return O}),n.d(t,"e",function(){return L}),n.d(t,"f",function(){return T}),n.d(t,"g",function(){return b}),n.d(t,"h",function(){return x}),n.d(t,"i",function(){return S}),n.d(t,"j",function(){return E}),n.d(t,"k",function(){return M}),n.d(t,"l",function(){return N}),n.d(t,"m",function(){return d}),n.d(t,"n",function(){return f}),n.d(t,"o",function(){return m}),n.d(t,"p",function(){return g}),n.d(t,"q",function(){return v}),n.d(t,"r",function(){return j}),n.d(t,"s",function(){return P}),n.d(t,"t",function(){return R}),n.d(t,"u",function(){return F}),n.d(t,"v",function(){return p}),n.d(t,"w",function(){return _}),n.d(t,"x",function(){return c}),n.d(t,"y",function(){return y});var r=n(50),i=n(20),o=n(16),a=n(171),s=n.n(a);n(109);function u(e,t,n,r){if(function(e){return"IntValue"===e.kind}(n)||function(e){return"FloatValue"===e.kind}(n))e[t.value]=Number(n.value);else if(function(e){return"BooleanValue"===e.kind}(n)||function(e){return"StringValue"===e.kind}(n))e[t.value]=n.value;else if(function(e){return"ObjectValue"===e.kind}(n)){var o={};n.fields.map(function(e){return u(o,e.name,e.value,r)}),e[t.value]=o}else if(function(e){return"Variable"===e.kind}(n)){var a=(r||{})[n.name.value];e[t.value]=a}else if(function(e){return"ListValue"===e.kind}(n))e[t.value]=n.values.map(function(e){var n={};return u(n,t,e,r),n[t.value]});else if(function(e){return"EnumValue"===e.kind}(n))e[t.value]=n.value;else{if(!function(e){return"NullValue"===e.kind}(n))throw new i.a(17);e[t.value]=null}}function c(e,t){var n=null;e.directives&&(n={},e.directives.forEach(function(e){n[e.name.value]={},e.arguments&&e.arguments.forEach(function(r){var i=r.name,o=r.value;return u(n[e.name.value],i,o,t)})}));var r=null;return e.arguments&&e.arguments.length&&(r={},e.arguments.forEach(function(e){var n=e.name,i=e.value;return u(r,n,i,t)})),d(e.name.value,r,n)}var l=["connection","include","skip","client","rest","export"];function d(e,t,n){if(n&&n.connection&&n.connection.key){if(n.connection.filter&&n.connection.filter.length>0){var r=n.connection.filter?n.connection.filter:[];r.sort();var i=t,o={};return r.forEach(function(e){o[e]=i[e]}),n.connection.key+"("+JSON.stringify(o)+")"}return n.connection.key}var a=e;if(t){var u=s()(t);a+="("+u+")"}return n&&Object.keys(n).forEach(function(e){-1===l.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?a+="@"+e+"("+JSON.stringify(n[e])+")":a+="@"+e)}),a}function h(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach(function(e){var r=e.name,i=e.value;return u(n,r,i,t)}),n}return null}function p(e){return e.alias?e.alias.value:e.name.value}function f(e){return"Field"===e.kind}function g(e){return"InlineFragment"===e.kind}function m(e){return e&&"id"===e.type&&"boolean"==typeof e.generated}function y(e,t){return void 0===t&&(t=!1),Object(o.a)({type:"id",generated:t},"string"==typeof e?{id:e,typename:void 0}:e)}function v(e){return null!=e&&"object"==typeof e&&"json"===e.type}function b(e,t){if(e.directives&&e.directives.length){var n={};return e.directives.forEach(function(e){n[e.name.value]=h(e,t)}),n}return null}function _(e,t){return void 0===t&&(t={}),(n=e.directives,n?n.filter(w).map(function(e){var t=e.arguments;e.name.value,Object(i.b)(t&&1===t.length,4);var n=t[0];Object(i.b)(n.name&&"if"===n.name.value,5);var r=n.value;return Object(i.b)(r&&("Variable"===r.kind||"BooleanValue"===r.kind),6),{directive:e,ifArgument:n}}):[]).every(function(e){var n=e.directive,r=e.ifArgument,o=!1;return"Variable"===r.value.kind?(o=t[r.value.name.value],Object(i.b)(void 0!==o,3)):o=r.value.value,"skip"===n.name.value?!o:o});var n}function w(e){var t=e.name.value;return"skip"===t||"include"===t}function S(e,t){var n=t,r=[];return e.definitions.forEach(function(e){if("OperationDefinition"===e.kind)throw new i.a(1);"FragmentDefinition"===e.kind&&r.push(e)}),void 0===n&&(Object(i.b)(1===r.length,2),n=r[0].name.value),Object(o.a)({},e,{definitions:[{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}].concat(e.definitions)})}function C(e){for(var t=[],n=1;n1){var r=[];t=W(t,r);for(var i=1;i>>0)>>>0}function l(e,t){if(0===e)return null;var n=(65535&e)>>>0,r=(4294901760&e)>>>16;return new p(0!==r?[d(n,t),d(r,t)]:[d(n,t)])}function d(e,t){var n=!!(2048&e),r=!!(256&e);return new h(2===t?r:n,!!(1024&e),!!(512&e),2===t?n:r,255&e)}!function(){function e(e,t,n,r){void 0===n&&(n=t),void 0===r&&(r=n),a.define(e,t),s.define(e,n),u.define(e,r)}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){e.toString=function(e){return a.keyCodeToStr(e)},e.fromString=function(e){return a.strToKeyCode(e)},e.toUserSettingsUS=function(e){return s.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return u.keyCodeToStr(e)},e.fromUserSettings=function(e){return s.strToKeyCode(e)||u.strToKeyCode(e)}}(r||(r={}));var h=function(){function e(e,t,n,r,i){this.ctrlKey=e,this.shiftKey=t,this.altKey=n,this.metaKey=r,this.keyCode=i}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 p([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}(),p=function(){function e(e){if(0===e.length)throw Object(i.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;t2&&void 0!==arguments[2]?arguments[2]:o,r=void 0,c=Array.isArray(e),l=[e],d=-1,h=[],p=void 0,f=void 0,g=void 0,m=[],y=[],v=e;do{var b=++d===l.length,_=b&&0!==h.length;if(b){if(f=0===y.length?void 0:m[m.length-1],p=g,g=y.pop(),_){if(c)p=p.slice();else{for(var w={},S=0,C=Object.keys(p);S=a&&e<=u||e>=s&&e<=c}function v(e,t,n,r){for(var i,o="",a=0,s=-1,u=0,c=0;c<=e.length;++c){if(c2){var h=o.lastIndexOf(n);-1===h?(o="",a=0):a=(o=o.slice(0,h)).length-1-o.lastIndexOf(n),s=c,u=0;continue}if(2===o.length||1===o.length){o="",a=0,s=c,u=0;continue}}t&&(o.length>0?o+=n+"..":o="..",a=2)}else o.length>0?o+=n+e.slice(s+1,c):o=e.slice(s+1,c),a=c-s-1;s=c,u=0}else i===l&&-1!==u?++u:u=-1}return o}function b(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+e+r:r}var _={resolve:function(){for(var e=[],t=0;t=-1;a--){var s=void 0;if(a>=0?s=e[a]:n?void 0!==(s=i.b["="+n]||i.a())&&s.slice(0,3).toLowerCase()===n.toLowerCase()+"\\"||(s=n+"\\"):s=i.a(),f(s,"path"),0!==s.length){var u=s.length,c=0,l="",d=!1,h=s.charCodeAt(0);if(u>1)if(g(h))if(d=!0,g(s.charCodeAt(1))){for(var p=2,m=p;p2&&g(s.charCodeAt(2))&&(d=!0,c=3));else g(h)&&(c=1,d=!0);if(!(l.length>0&&n.length>0&&l.toLowerCase()!==n.toLowerCase())&&(0===n.length&&l.length>0&&(n=l),o||(r=s.slice(c)+"\\"+r,o=d),n.length>0&&o))break}}return n+(o?"\\":"")+(r=v(r,!o,"\\",g))||"."},normalize:function(e){f(e,"path");var t=e.length;if(0===t)return".";var n,r,i=0,o=!1,a=e.charCodeAt(0);if(t>1)if(g(a))if(o=!0,g(e.charCodeAt(1))){for(var s=2,u=s;s2&&g(e.charCodeAt(2))&&(o=!0,i=3));else if(g(a))return"\\";return 0!==(r=i0&&g(e.charCodeAt(t-1))&&(r+="\\"),void 0===n?o?r.length>0?"\\"+r:"\\":r.length>0?r:"":o?r.length>0?n+"\\"+r:n+"\\":r.length>0?n+r:n},isAbsolute:function(e){f(e,"path");var t=e.length;if(0===t)return!1;var n=e.charCodeAt(0);return!!g(n)||!!(y(n)&&t>2&&58===e.charCodeAt(1)&&g(e.charCodeAt(2)))},join:function(){for(var e,t,n=[],r=0;r0&&(void 0===e?e=t=o:e+="\\"+o)}if(void 0===e)return".";var a=!0,s=0;if("string"==typeof t&&g(t.charCodeAt(0))){++s;var u=t.length;u>1&&g(t.charCodeAt(1))&&(++s,u>2&&(g(t.charCodeAt(2))?++s:a=!1))}if(a){for(;s=2&&(e="\\"+e.slice(s))}return _.normalize(e)},relative:function(e,t){if(f(e,"from"),f(t,"to"),e===t)return"";var n=_.resolve(e),r=_.resolve(t);if(n===r)return"";if((e=n.toLowerCase())===(t=r.toLowerCase()))return"";for(var i=0;ii&&e.charCodeAt(o-1)===h;--o);for(var a=o-i,s=0;ss&&t.charCodeAt(u-1)===h;--u);for(var c=u-s,l=al){if(t.charCodeAt(s+p)===h)return r.slice(s+p+1);if(2===p)return r.slice(s+p)}a>l&&(e.charCodeAt(i+p)===h?d=p:2===p&&(d=3));break}var g=e.charCodeAt(i+p);if(g!==t.charCodeAt(s+p))break;g===h&&(d=p)}if(p!==l&&-1===d)return r;var m="";for(-1===d&&(d=0),p=i+d+1;p<=o;++p)p!==o&&e.charCodeAt(p)!==h||(0===m.length?m+="..":m+="\\..");return m.length>0?m+r.slice(s+d,u):(s+=d,r.charCodeAt(s)===h&&++s,r.slice(s,u))},toNamespacedPath:function(e){if("string"!=typeof e)return e;if(0===e.length)return"";var t=_.resolve(e);if(t.length>=3)if(t.charCodeAt(0)===h){if(t.charCodeAt(1)===h){var n=t.charCodeAt(2);if(63!==n&&n!==l)return"\\\\?\\UNC\\"+t.slice(2)}}else if(y(t.charCodeAt(0))&&58===t.charCodeAt(1)&&t.charCodeAt(2)===h)return"\\\\?\\"+t;return e},dirname:function(e){f(e,"path");var t=e.length;if(0===t)return".";var n=-1,r=-1,i=!0,o=0,a=e.charCodeAt(0);if(t>1)if(g(a)){if(n=o=1,g(e.charCodeAt(1))){for(var s=2,u=s;s2&&g(e.charCodeAt(2))&&(n=o=3));else if(g(a))return e;for(var c=t-1;c>=o;--c)if(g(e.charCodeAt(c))){if(!i){r=c;break}}else i=!1;if(-1===r){if(-1===n)return".";r=n}return e.slice(0,r)},basename:function(e,t){void 0!==t&&f(t,"ext"),f(e,"path");var n,r=0,i=-1,o=!0;e.length>=2&&(y(e.charCodeAt(0))&&58===e.charCodeAt(1)&&(r=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,s=-1;for(n=e.length-1;n>=r;--n){var u=e.charCodeAt(n);if(g(u)){if(!o){r=n+1;break}}else-1===s&&(o=!1,s=n+1),a>=0&&(u===t.charCodeAt(a)?-1==--a&&(i=n):(a=-1,i=s))}return r===i?i=s:-1===i&&(i=e.length),e.slice(r,i)}for(n=e.length-1;n>=r;--n)if(g(e.charCodeAt(n))){if(!o){r=n+1;break}}else-1===i&&(o=!1,i=n+1);return-1===i?"":e.slice(r,i)},extname:function(e){f(e,"path");var t=0,n=-1,r=0,i=-1,o=!0,a=0;e.length>=2&&58===e.charCodeAt(1)&&y(e.charCodeAt(0))&&(t=r=2);for(var s=e.length-1;s>=t;--s){var u=e.charCodeAt(s);if(g(u)){if(!o){r=s+1;break}}else-1===i&&(o=!1,i=s+1),u===l?-1===n?n=s:1!==a&&(a=1):-1!==n&&(a=-1)}return-1===n||-1===i||0===a||1===a&&n===i-1&&n===r+1?"":e.slice(n,i)},format:function(e){if(null===e||"object"!=typeof e)throw new p("pathObject","Object",e);return b("\\",e)},parse:function(e){f(e,"path");var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var n=e.length,r=0,i=e.charCodeAt(0);if(n>1){if(g(i)){if(r=1,g(e.charCodeAt(1))){for(var o=2,a=o;o2))return t.root=t.dir=e,t;if(g(e.charCodeAt(2))){if(3===n)return t.root=t.dir=e,t;r=3}}}else if(g(i))return t.root=t.dir=e,t;r>0&&(t.root=e.slice(0,r));for(var s=-1,u=r,c=-1,d=!0,h=e.length-1,p=0;h>=r;--h)if(g(i=e.charCodeAt(h))){if(!d){u=h+1;break}}else-1===c&&(d=!1,c=h+1),i===l?-1===s?s=h:1!==p&&(p=1):-1!==s&&(p=-1);return-1===s||-1===c||0===p||1===p&&s===c-1&&s===u+1?-1!==c&&(t.base=t.name=e.slice(u,c)):(t.name=e.slice(u,s),t.base=e.slice(u,c),t.ext=e.slice(s,c)),t.dir=u>0&&u!==r?e.slice(0,u-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},w={resolve:function(){for(var e=[],t=0;t=-1&&!r;o--){var a=void 0;f(a=o>=0?e[o]:i.a(),"path"),0!==a.length&&(n=a+"/"+n,r=a.charCodeAt(0)===d)}return n=v(n,!r,"/",m),r?n.length>0?"/"+n:"/":n.length>0?n:"."},normalize:function(e){if(f(e,"path"),0===e.length)return".";var t=e.charCodeAt(0)===d,n=e.charCodeAt(e.length-1)===d;return 0!==(e=v(e,!t,"/",m)).length||t||(e="."),e.length>0&&n&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return f(e,"path"),e.length>0&&e.charCodeAt(0)===d},join:function(){for(var e,t=[],n=0;n0&&(void 0===e?e=i:e+="/"+i)}return void 0===e?".":w.normalize(e)},relative:function(e,t){if(f(e,"from"),f(t,"to"),e===t)return"";if((e=w.resolve(e))===(t=w.resolve(t)))return"";for(var n=1;ns){if(t.charCodeAt(o+c)===d)return t.slice(o+c+1);if(0===c)return t.slice(o+c)}else i>s&&(e.charCodeAt(n+c)===d?u=c:0===c&&(u=0));break}var l=e.charCodeAt(n+c);if(l!==t.charCodeAt(o+c))break;l===d&&(u=c)}var h="";for(c=n+u+1;c<=r;++c)c!==r&&e.charCodeAt(c)!==d||(0===h.length?h+="..":h+="/..");return h.length>0?h+t.slice(o+u):(o+=u,t.charCodeAt(o)===d&&++o,t.slice(o))},toNamespacedPath:function(e){return e},dirname:function(e){if(f(e,"path"),0===e.length)return".";for(var t=e.charCodeAt(0)===d,n=-1,r=!0,i=e.length-1;i>=1;--i)if(e.charCodeAt(i)===d){if(!r){n=i;break}}else r=!1;return-1===n?t?"/":".":t&&1===n?"//":e.slice(0,n)},basename:function(e,t){void 0!==t&&f(t,"ext"),f(e,"path");var n,r=0,i=-1,o=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var a=t.length-1,s=-1;for(n=e.length-1;n>=0;--n){var u=e.charCodeAt(n);if(u===d){if(!o){r=n+1;break}}else-1===s&&(o=!1,s=n+1),a>=0&&(u===t.charCodeAt(a)?-1==--a&&(i=n):(a=-1,i=s))}return r===i?i=s:-1===i&&(i=e.length),e.slice(r,i)}for(n=e.length-1;n>=0;--n)if(e.charCodeAt(n)===d){if(!o){r=n+1;break}}else-1===i&&(o=!1,i=n+1);return-1===i?"":e.slice(r,i)},extname:function(e){f(e,"path");for(var t=-1,n=0,r=-1,i=!0,o=0,a=e.length-1;a>=0;--a){var s=e.charCodeAt(a);if(s!==d)-1===r&&(i=!1,r=a+1),s===l?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1);else if(!i){n=a+1;break}}return-1===t||-1===r||0===o||1===o&&t===r-1&&t===n+1?"":e.slice(t,r)},format:function(e){if(null===e||"object"!=typeof e)throw new p("pathObject","Object",e);return b("/",e)},parse:function(e){f(e,"path");var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var n,r=e.charCodeAt(0)===d;r?(t.root="/",n=1):n=0;for(var i=-1,o=0,a=-1,s=!0,u=e.length-1,c=0;u>=n;--u){var h=e.charCodeAt(u);if(h!==d)-1===a&&(s=!1,a=u+1),h===l?-1===i?i=u:1!==c&&(c=1):-1!==i&&(c=-1);else if(!s){o=u+1;break}}return-1===i||-1===a||0===c||1===c&&i===a-1&&i===o+1?-1!==a&&(t.base=t.name=0===o&&r?e.slice(1,a):e.slice(o,a)):(0===o&&r?(t.name=e.slice(1,i),t.base=e.slice(1,a)):(t.name=e.slice(o,i),t.base=e.slice(o,a)),t.ext=e.slice(i,a)),o>0?t.dir=e.slice(0,o-1):r&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};w.win32=_.win32=_,w.posix=_.posix=w;var S="win32"===i.c?_.normalize:w.normalize,C="win32"===i.c?_.join:w.join,I="win32"===i.c?_.relative:w.relative,M="win32"===i.c?_.dirname:w.dirname,x="win32"===i.c?_.basename:w.basename,N="win32"===i.c?_.extname:w.extname,E="win32"===i.c?_.sep:w.sep},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return s}),n.d(t,"b",function(){return E}),n.d(t,"c",function(){return T}),n.d(t,"d",function(){return D}),n.d(t,"e",function(){return _}),n.d(t,"f",function(){return w}),n.d(t,"g",function(){return v}),n.d(t,"h",function(){return b}),n.d(t,"i",function(){return m}),n.d(t,"j",function(){return y}),n.d(t,"k",function(){return A}),n.d(t,"l",function(){return p}),n.d(t,"m",function(){return h}),n.d(t,"n",function(){return c}),n.d(t,"o",function(){return l}),n.d(t,"p",function(){return P}),n.d(t,"q",function(){return R}),n.d(t,"r",function(){return L}),n.d(t,"s",function(){return N}),n.d(t,"t",function(){return u}),n.d(t,"u",function(){return d}),n.d(t,"v",function(){return O});var r=n(50),i=n(20),o=n(16);n(171),n(109);function a(e,t,n,r){if(function(e){return"IntValue"===e.kind}(n)||function(e){return"FloatValue"===e.kind}(n))e[t.value]=Number(n.value);else if(function(e){return"BooleanValue"===e.kind}(n)||function(e){return"StringValue"===e.kind}(n))e[t.value]=n.value;else if(function(e){return"ObjectValue"===e.kind}(n)){var o={};n.fields.map(function(e){return a(o,e.name,e.value,r)}),e[t.value]=o}else if(function(e){return"Variable"===e.kind}(n)){var s=(r||{})[n.name.value];e[t.value]=s}else if(function(e){return"ListValue"===e.kind}(n))e[t.value]=n.values.map(function(e){var n={};return a(n,t,e,r),n[t.value]});else if(function(e){return"EnumValue"===e.kind}(n))e[t.value]=n.value;else{if(!function(e){return"NullValue"===e.kind}(n))throw new i.a(17);e[t.value]=null}}function s(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach(function(e){var r=e.name,i=e.value;return a(n,r,i,t)}),n}return null}function u(e){return e.alias?e.alias.value:e.name.value}function c(e){return"Field"===e.kind}function l(e){return"InlineFragment"===e.kind}function d(e,t){return void 0===t&&(t={}),(n=e.directives,n?n.filter(f).map(function(e){var t=e.arguments;e.name.value,Object(i.b)(t&&1===t.length,4);var n=t[0];Object(i.b)(n.name&&"if"===n.name.value,5);var r=n.value;return Object(i.b)(r&&("Variable"===r.kind||"BooleanValue"===r.kind),6),{directive:e,ifArgument:n}}):[]).every(function(e){var n=e.directive,r=e.ifArgument,o=!1;return"Variable"===r.value.kind?(o=t[r.value.name.value],Object(i.b)(void 0!==o,3)):o=r.value.value,"skip"===n.name.value?!o:o});var n}function h(e,t){return function(e){var t=[];return Object(r.visit)(e,{Directive:function(e){t.push(e.name.value)}}),t}(t).some(function(t){return e.indexOf(t)>-1})}function p(e){return e&&h(["client"],e)&&h(["export"],e)}function f(e){var t=e.name.value;return"skip"===t||"include"===t}function g(e){Object(i.b)(e&&"Document"===e.kind,8);var t=e.definitions.filter(function(e){return"FragmentDefinition"!==e.kind}).map(function(e){if("OperationDefinition"!==e.kind)throw new i.a(9);return e});return Object(i.b)(t.length<=1,10),e}function m(e){return g(e),e.definitions.filter(function(e){return"OperationDefinition"===e.kind})[0]}function y(e){return e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&e.name}).map(function(e){return e.name.value})[0]||null}function v(e){return e.definitions.filter(function(e){return"FragmentDefinition"===e.kind})}function b(e){var t;g(e);for(var n=0,r=e.definitions;n1){var r=[];t=B(t,r);for(var i=1;i=n?a:{done:!1,value:e[t++]}}}},e.from=function(t){return t?Array.isArray(t)?e.fromArray(t):t:e.empty()},e.map=function(e,t){return{next:function(){var n=e.next();return n.done?a:{done:!1,value:t(n.value)}}}},e.filter=function(e,t){return{next:function(){for(;;){var n=e.next();if(n.done)return a;if(t(n.value))return{done:!1,value:n.value}}}}},e.forEach=n,e.collect=function(e){var t=[];return n(e,function(e){return t.push(e)}),t}}(i||(i={}));var u=function(){function e(e,t,n,r){void 0===t&&(t=0),void 0===n&&(n=e.length),void 0===r&&(r=t-1),this.items=e,this.start=t,this.end=n,this.index=r}return 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}(),c=function(e){function t(t,n,r,i){return void 0===n&&(n=0),void 0===r&&(r=t.length),void 0===i&&(i=n-1),e.call(this,t,n,r,i)||this}return o(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),l=function(){function e(e,t){this.iterator=e,this.fn=t}return e.prototype.next=function(){return this.fn(this.iterator.next())},e}()},function(e,t,n){"use strict";n.d(t,"b",function(){return p}),n.d(t,"a",function(){return g}),n.d(t,"c",function(){return m}),n.d(t,"e",function(){return y}),n.d(t,"d",function(){return _}),n.d(t,"f",function(){return S});var r,i=n(18),o=n(36),a=n(14),s=n(5),u=n(12),c=n(13),l=n(34),d=n(4),h=n(81),p={Visible:new c.f("suggestWidgetVisible",!1),MultipleSuggestions:new c.f("suggestWidgetMultipleSuggestions",!1),MakesTextEdit:new c.f("suggestionMakesTextEdit",!0),AcceptSuggestionsOnEnter:new c.f("acceptSuggestionOnEnter",!0)},f=function(){return function(e,t,n,r,i){this.position=e,this.completion=t,this.container=n,this.provider=r,this.score=h.a.Default,this.distance=0,this.labelLow=t.label.toLowerCase(),this.sortTextLow=t.sortText&&t.sortText.toLowerCase(),this.filterTextLow=t.filterText&&t.filterText.toLowerCase();var s,u=r.resolveCompletionItem;this.resolve="function"!=typeof u?function(){return Promise.resolve()}:function(n){if(!s){var c=!1;s=Promise.resolve(u.call(r,i,e,t,n)).then(function(e){Object(o.a)(t,e),c=!0},function(e){Object(a.d)(e)&&(s=void 0)}),n.onCancellationRequested(function(){c||(s=void 0)})}return s}}}(),g=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 m(){return r}function y(e,t,n,o,s){void 0===n&&(n=g.default),void 0===o&&(o={triggerKind:0}),void 0===s&&(s=l.a.None);var c=[],h=e.getWordUntilPosition(t),p=new d.a(t.lineNumber,h.startColumn,t.lineNumber,h.endColumn);t=t.clone();var m=u.d.orderedGroups(e);!n.kindFilter.has(25)&&r&&m.unshift([r]);var y=!1,v=m.map(function(i){return function(){return Promise.all(i.map(function(i){if(!(n.providerFilter.size>0)||n.providerFilter.has(i))return Promise.resolve(i.provideCompletionItems(e,t,o,s)).then(function(o){var a=c.length;if(o)for(var s=0,u=o.suggestions||[];st.sortTextLow)return 1}return e.completion.labelt.completion.label?1:e.completion.kind-t.completion.kind}var b=new Map;function _(e){return b.get(e)}b.set(0,function(e,t){if(e.completion.kind!==t.completion.kind){if(25===e.completion.kind)return-1;if(25===t.completion.kind)return 1}return v(e,t)}),b.set(2,function(e,t){if(e.completion.kind!==t.completion.kind){if(25===e.completion.kind)return 1;if(25===t.completion.kind)return-1}return v(e,t)}),b.set(1,v),Object(s.e)("_executeCompletionItemProvider",function(e,t,n){var r={incomplete:!1,suggestions:[]},i=[],o=n.maxItemsToResolve||0;return y(e,t).then(function(e){for(var t=0,n=e;t1&&e.scheme===u.a.file?"//"+e.authority+n:c.g&&47===n.charCodeAt(0)&&i.b(n.charCodeAt(1))&&58===n.charCodeAt(2)?n.substr(1):n,c.g&&(t=t.replace(/\//g,"\\")),t}function v(e,t){if(e.scheme===t.scheme&&d(e.authority,t.authority)){if(e.scheme===u.a.file){var n=o.relative(e.path,t.path);return c.g?i.c(n):n}return o.posix.relative(e.path||"/",t.path||"/")}}!function(e){e.META_DATA_LABEL="label",e.META_DATA_DESCRIPTION="description",e.META_DATA_SIZE="size",e.META_DATA_MIME="mime",e.parseMetaData=function(t){var n=new Map;t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";")).split(";").forEach(function(e){var t=e.split(":"),r=t[0],i=t[1];r&&i&&n.set(r,i)});var r=t.path.substring(0,t.path.indexOf(";"));return r&&n.set(e.META_DATA_MIME,r),n}}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"f",function(){return i}),n.d(t,"b",function(){return o}),n.d(t,"c",function(){return a}),n.d(t,"d",function(){return s}),n.d(t,"a",function(){return u}),n.d(t,"e",function(){return c});var r=n(9),i=function(){return function(e,t,n,r){this.top=0|e,this.left=0|t,this.width=0|n,this.height=0|r}}(),o=function(){return function(e,t){this.tabSize=e,this.data=t}}(),a=function(){return function(e,t,n,r,i){this.content=e,this.continuesWithWrappedLine=t,this.minColumn=n,this.maxColumn=r,this.tokens=i}}(),s=function(){function e(t,n,r,i,o,a,s,u,c){this.minColumn=t,this.maxColumn=n,this.content=r,this.continuesWithWrappedLine=i,this.isBasicASCII=e.isBasicASCII(r,a),this.containsRTL=e.containsRTL(r,this.isBasicASCII,o),this.tokens=s,this.inlineDecorations=u,this.tabSize=c}return e.isBasicASCII=function(e,t){return!t||r.r(e)},e.containsRTL=function(e,t,n){return!(t||!n)&&r.g(e)},e}(),u=function(){return function(e,t,n){this.range=e,this.inlineClassName=t,this.type=n}}(),c=function(){return function(e,t){this.range=e,this.options=t}}()},function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return o});var r=n(23),i=Object(r.c)("modelService");function o(e){return!e.isTooLargeForSyncing()&&!e.isForSimpleWidget}},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(24),i=n(164),o=new(function(){function e(){this.data={}}return e.prototype.add=function(e,t){i.a(r.h(e)),i.a(r.g(t)),i.a(!this.data.hasOwnProperty(e),"There is already an extension with this id"),this.data[e]=t},e.prototype.as=function(e){return this.data[e]||null},e}())},function(e,t,n){"use strict";n.d(t,"e",function(){return o}),n.d(t,"d",function(){return a}),n.d(t,"c",function(){return l}),n.d(t,"b",function(){return d}),n.d(t,"a",function(){return h});var r,i=(r=function(e,t){return(r=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)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function o(e){var t=[];return e.forEach(function(e){return t.push(e)}),t}function a(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._pos0)n.left||(n.left=new c,n.left.segment=r.value()),n=n.left;else if(i<0)n.right||(n.right=new c,n.right.segment=r.value()),n=n.right;else{if(!r.hasNext())break;r.next(),n.mid||(n.mid=new c,n.mid.segment=r.value()),n=n.mid}}var o=n.value;return n.value=t,n.key=e,o},e.prototype.get=function(e){for(var t=this._iter.reset(e),n=this._root;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(),n=n.mid}}return n?n.value:void 0},e.prototype.findSubstr=function(e){for(var t=this._iter.reset(e),n=this._root,r=void 0;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(),r=n.value||r,n=n.mid}}return n&&n.value||r},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}(),d=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}(),h=function(e){function t(t,n){void 0===n&&(n=1);var r=e.call(this)||this;return r._limit=t,r._ratio=Math.min(Math.max(0,n),1),r}return i(t,e),t.prototype.get=function(t){return e.prototype.get.call(this,t,2)},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}(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 r=this._map.get(e);if(r)r.value=t,0!==n&&this.touch(r,n);else{switch(r={key:e,value:t,next:void 0,previous:void 0},n){case 0:this.addItemLast(r);break;case 1:this.addItemFirst(r);break;case 2:default:this.addItemLast(r)}this._map.set(e,r),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){for(var n=this._head;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){for(var t=this._head,n=this.size;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,r=e.previous;e===this._tail?(r.next=void 0,this._tail=r):(n.previous=r,r.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,r=e.previous;e===this._head?(n.previous=void 0,this._head=n):(n.previous=r,r.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}())},function(e,t,n){var r;e.exports=(r=r||function(e,t){var n=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),r={},i=r.lib={},o=i.Base={extend:function(e){var t=n(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},a=i.WordArray=o.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||u).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,i=e.sigBytes;if(this.clamp(),r%4)for(var o=0;o>>2]>>>24-o%4*8&255;t[r+o>>>2]|=a<<24-(r+o)%4*8}else for(var o=0;o>>2]=n[o>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,r=[],i=function(t){var t=t,n=987654321,r=4294967295;return function(){var i=((n=36969*(65535&n)+(n>>16)&r)<<16)+(t=18e3*(65535&t)+(t>>16)&r)&r;return i/=4294967296,(i+=.5)*(e.random()>.5?1:-1)}},o=0;o>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new a.init(n,t/2)}},c=s.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new a.init(n,t)}},l=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(c.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return c.parse(unescape(encodeURIComponent(e)))}},d=i.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=l.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,r=n.words,i=n.sigBytes,o=this.blockSize,s=4*o,u=i/s,c=(u=t?e.ceil(u):e.max((0|u)-this._minBufferSize,0))*o,l=e.min(4*c,i);if(c){for(var d=0;d=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},d=function(e,t){return function(n,r){t(n,r,e)}};function h(e){return void 0!==e.command}var p=Object(o.c)("menuService"),f=new(function(){function e(){this._commands=Object.create(null),this._menuItems=Object.create(null),this._onDidChangeMenu=new u.a,this.onDidChangeMenu=this._onDidChangeMenu.event}return e.prototype.addCommand=function(e){var t=this;return this._commands[e.id]=e,this._onDidChangeMenu.fire(0),{dispose:function(){delete t._commands[e.id]&&t._onDidChangeMenu.fire(0)}}},e.prototype.getCommand=function(e){return this._commands[e]},e.prototype.getCommands=function(){var e=Object.create(null);for(var t in this._commands)e[t]=this.getCommand(t);return e},e.prototype.appendMenuItem=function(e,t){var n=this,r=this._menuItems[e];return r?r.push(t):this._menuItems[e]=r=[t],this._onDidChangeMenu.fire(e),{dispose:function(){var i=r.indexOf(t);i>=0&&(r.splice(i,1),n._onDidChangeMenu.fire(e))}}},e.prototype.getMenuItems=function(e){var t=(this._menuItems[e]||[]).slice(0);return 0===e&&this._appendImplicitItems(t),t},e.prototype._appendImplicitItems=function(e){for(var t=new Set,n=0,r=e.filter(function(e){return h(e)});n0?[{start:0,end:t.length}]:[]}.bind(void 0,!0);function s(e){return 97<=e&&e<=122}function u(e){return 65<=e&&e<=90}function c(e){return 48<=e&&e<=57}function l(e){return 32===e||9===e||10===e||13===e}var d=new Set;function h(e){return s(e)||u(e)||c(e)}function p(e,t){return 0===t.length?t=[e]:e.end===t[0].start?t[0].start=e.start:t.unshift(e),t}function f(e,t){for(var n=t;n0&&!h(e.charCodeAt(n-1)))return n}return e.length}function g(e,t,n,r){if(n===e.length)return[];if(r===t.length)return null;if(e[n]!==t[r].toLowerCase())return null;var i=null,o=r+1;for(i=g(e,t,n+1,r+1);!i&&(o=f(t,o))60)return null;var n=function(e){for(var t=0,n=0,r=0,i=0,o=0,a=0;a.2&&t<.8&&r>.6&&i<.2}(n)){if(!function(e){var t=e.upperPercent;return 0===e.lowerPercent&&t>.6}(n))return null;t=t.toLowerCase()}var r=null,i=0;for(e=e.toLowerCase();i/?".split("").forEach(function(e){return d.add(e.charCodeAt(0))});var y=o(a,m,function(e,t){var n=t.toLowerCase().indexOf(e.toLowerCase());return-1===n?null:[{start:n,end:n+e.length}]}),v=o(a,m,function(e,t){return function e(t,n,r,i){if(r===t.length)return[];if(i===n.length)return null;if(t[r]===n[i]){var o=null;return(o=e(t,n,r+1,i+1))?p({start:i,end:i+1},o):null}return e(t,n,r,i+1)}(e.toLowerCase(),t.toLowerCase(),0,0)}),b=new r.a(1e4);function _(e,t,n){if(void 0===n&&(n=!1),"string"!=typeof e||"string"!=typeof t)return null;var r=b.get(e);r||(r=new RegExp(i.h(e),"i"),b.set(e,r));var o=r.exec(t);return o?[{start:o.index,end:o.index+o[0].length}]:n?v(e,t):y(e,t)}function w(e,t,n,r,i,o){var a=A(e,t,0,r,i,0,!0);if(a)return a;for(var s=0,u=0,c=o,l=0;l=0&&(u+=1,s+=Math.pow(2,d),c=d+1)}return[u,s,o]}function S(e){if(void 0===e)return[];for(var t=e[1].toString(2),n=[],r=e[2];r=e.length)return!1;switch(e.charCodeAt(t)){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 D(e,t){if(t<0||t>=e.length)return!1;switch(e.charCodeAt(t)){case 32:case 9:return!0;default:return!1}}function O(e,t,n){return t[e]!==n[e]}function A(e,t,n,r,i,o,a){var s=e.length>C?C:e.length,u=r.length>C?C:r.length;if(!(n>=s||o>=u||s>u)&&function(e,t,n,r,i,o){for(;t1?1:d),p=x[n-1][o]+-1,f=x[n][o-1]+-1;f>=p?f>h?(x[n][o]=f,E[n][o]=4):f===h?(x[n][o]=f,E[n][o]=6):(x[n][o]=h,E[n][o]=2):p>h?(x[n][o]=p,E[n][o]=1):p===h?(x[n][o]=p,E[n][o]=3):(x[n][o]=h,E[n][o]=2)}if(L&&(console.log(T(x,e,s,r,u)),console.log(T(E,e,s,r,u)),console.log(T(N,e,s,r,u))),j=0,R=-100,z=c,F=a,function e(t,n,r,i,o){if(j>=10||r<-25)return;var a=0;for(;t>z&&n>0;){var s=N[t][n],u=E[t][n];if(4===u)n-=1,o?r-=5:0!==i&&(r-=1),o=!1,a=0;else{if(!(2&u))return;if(4&u&&e(t,n-1,0!==i?r-1:r,i,o),r+=s,t-=1,n-=1,o=!0,i+=Math.pow(2,n),1===s){if(a+=1,t===z&&!F)return}else r+=1+a*(s-1),a=0}}r-=n>=3?9:3*n;j+=1;r>R&&(R=r,P=i)}(s,u,s===u?1:0,0,!1),0!==j)return[R,P,l]}}!function(e){e.Default=[-100,0,0],e.isDefault=function(e){return!e||-100===e[0]&&0===e[1]&&0===e[2]}}(M||(M={}));var j=0,P=0,R=0,z=0,F=!1;function B(e,t,n,r,i,o,a){return function(e,t,n,r,i,o,a,s){var u=A(e,t,n,r,i,o,s);if(u&&!a)return u;if(e.length>=3)for(var c=Math.min(7,e.length-1),l=n+1;lu[0])&&(u=h))}}return u}(e,t,n,r,i,o,!0,a)}function U(e,t){if(!(t+1>=e.length)){var n=e[t],r=e[t+1];if(n!==r)return e.slice(0,t)+r+n+e.slice(t+2)}}},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,c=[],l=!1,d=-1;function h(){l&&u&&(l=!1,u.length?c=u.concat(c):d=-1,c.length&&p())}function p(){if(!l){var e=s(h);l=!0;for(var t=c.length;t;){for(u=c,c=[];++d1)for(var n=1;n>>0,new r.c(a,null===n?o:n)}},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(19),i=n(11),o=n(4),a=function(){return function(e,t,n){this.lineNumber=e,this.column=t,this.leftoverVisibleColumns=n}}(),s=function(){function e(){}return e.left=function(e,t,n,i){return i>t.getLineMinColumn(n)?r.a.isLowSurrogate(t,n,i-2)?i-=2:i-=1:n>1&&(n-=1,i=t.getLineMaxColumn(n)),new a(n,i,0)},e.moveLeft=function(t,n,r,i,o){var a,s;if(r.hasSelection()&&!i)a=r.selection.startLineNumber,s=r.selection.startColumn;else{var u=e.left(t,n,r.position.lineNumber,r.position.column-(o-1));a=u.lineNumber,s=u.column}return r.move(i,a,s,0)},e.right=function(e,t,n,i){return il?(n=l,u?i=t.getLineMaxColumn(n):(i=Math.min(t.getLineMaxColumn(n),i),r.a.isInsideSurrogatePair(t,n,i)&&(i-=1))):(i=r.a.columnFromVisibleColumn2(e,t,n,c),r.a.isInsideSurrogatePair(t,n,i)&&(i-=1)),o=c-r.a.visibleColumnFromColumn(t.getLineContent(n),i,e.tabSize),new a(n,i,o)},e.moveDown=function(t,n,r,i,o){var a,s;r.hasSelection()&&!i?(a=r.selection.endLineNumber,s=r.selection.endColumn):(a=r.position.lineNumber,s=r.position.column);var u=e.down(t,n,a,s,r.leftoverVisibleColumns,o,!0);return r.move(i,u.lineNumber,u.column,u.leftoverVisibleColumns)},e.translateDown=function(t,n,a){var s=a.selection,u=e.down(t,n,s.selectionStartLineNumber,s.selectionStartColumn,a.selectionStartLeftoverVisibleColumns,1,!1),c=e.down(t,n,s.positionLineNumber,s.positionColumn,a.leftoverVisibleColumns,1,!1);return new r.f(new o.a(u.lineNumber,u.column,u.lineNumber,u.column),u.leftoverVisibleColumns,new i.a(c.lineNumber,c.column),c.leftoverVisibleColumns)},e.up=function(e,t,n,i,o,s,u){var c=r.a.visibleColumnFromColumn(t.getLineContent(n),i,e.tabSize)+o;return(n-=s)<1?(n=1,u?i=t.getLineMinColumn(n):(i=Math.min(t.getLineMaxColumn(n),i),r.a.isInsideSurrogatePair(t,n,i)&&(i-=1))):(i=r.a.columnFromVisibleColumn2(e,t,n,c),r.a.isInsideSurrogatePair(t,n,i)&&(i-=1)),o=c-r.a.visibleColumnFromColumn(t.getLineContent(n),i,e.tabSize),new a(n,i,o)},e.moveUp=function(t,n,r,i,o){var a,s;r.hasSelection()&&!i?(a=r.selection.startLineNumber,s=r.selection.startColumn):(a=r.position.lineNumber,s=r.position.column);var u=e.up(t,n,a,s,r.leftoverVisibleColumns,o,!0);return r.move(i,u.lineNumber,u.column,u.leftoverVisibleColumns)},e.translateUp=function(t,n,a){var s=a.selection,u=e.up(t,n,s.selectionStartLineNumber,s.selectionStartColumn,a.selectionStartLeftoverVisibleColumns,1,!1),c=e.up(t,n,s.positionLineNumber,s.positionColumn,a.leftoverVisibleColumns,1,!1);return new r.f(new o.a(u.lineNumber,u.column,u.lineNumber,u.column),u.leftoverVisibleColumns,new i.a(c.lineNumber,c.column),c.leftoverVisibleColumns)},e.moveToBeginningOfLine=function(e,t,n,r){var i,o=n.position.lineNumber,a=t.getLineMinColumn(o),s=t.getLineFirstNonWhitespaceColumn(o)||a;return i=n.position.column===s?a:s,n.move(r,o,i,0)},e.moveToEndOfLine=function(e,t,n,r){var i=n.position.lineNumber,o=t.getLineMaxColumn(i);return n.move(r,i,o,0)},e.moveToBeginningOfBuffer=function(e,t,n,r){return n.move(r,1,1,0)},e.moveToEndOfBuffer=function(e,t,n,r){var i=t.getLineCount(),o=t.getLineMaxColumn(i);return n.move(r,i,o,0)},e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return s}),n.d(t,"b",function(){return u});var r,i=n(6),o=n(7),a=(r=function(e,t){return(r=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)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(){function e(e,t,n,r,i){void 0===t&&(t=""),void 0===n&&(n=""),void 0===r&&(r=!0),this._onDidChange=new o.a,this.onDidChange=this._onDidChange.event,this._id=e,this._label=t,this._cssClass=n,this._enabled=r,this._actionCallback=i}return Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"label",{get:function(){return this._label},set:function(e){this._setLabel(e)},enumerable:!0,configurable:!0}),e.prototype._setLabel=function(e){this._label!==e&&(this._label=e,this._onDidChange.fire({label:e}))},Object.defineProperty(e.prototype,"tooltip",{get:function(){return this._tooltip},set:function(e){this._setTooltip(e)},enumerable:!0,configurable:!0}),e.prototype._setTooltip=function(e){this._tooltip!==e&&(this._tooltip=e,this._onDidChange.fire({tooltip:e}))},Object.defineProperty(e.prototype,"class",{get:function(){return this._cssClass},set:function(e){this._setClass(e)},enumerable:!0,configurable:!0}),e.prototype._setClass=function(e){this._cssClass!==e&&(this._cssClass=e,this._onDidChange.fire({class:e}))},Object.defineProperty(e.prototype,"enabled",{get:function(){return this._enabled},set:function(e){this._setEnabled(e)},enumerable:!0,configurable:!0}),e.prototype._setEnabled=function(e){this._enabled!==e&&(this._enabled=e,this._onDidChange.fire({enabled:e}))},Object.defineProperty(e.prototype,"checked",{get:function(){return this._checked},set:function(e){this._setChecked(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radio",{get:function(){return this._radio},set:function(e){this._setRadio(e)},enumerable:!0,configurable:!0}),e.prototype._setChecked=function(e){this._checked!==e&&(this._checked=e,this._onDidChange.fire({checked:e}))},e.prototype._setRadio=function(e){this._radio!==e&&(this._radio=e,this._onDidChange.fire({radio:e}))},e.prototype.run=function(e,t){return this._actionCallback?this._actionCallback(e):Promise.resolve(!0)},e.prototype.dispose=function(){this._onDidChange.dispose()},e}(),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onDidBeforeRun=t._register(new o.a),t.onDidBeforeRun=t._onDidBeforeRun.event,t._onDidRun=t._register(new o.a),t.onDidRun=t._onDidRun.event,t}return a(t,e),t.prototype.run=function(e,t){var n=this;return e.enabled?(this._onDidBeforeRun.fire({action:e}),this.runAction(e,t).then(function(t){n._onDidRun.fire({action:e,result:t})},function(t){n._onDidRun.fire({action:e,error:t})})):Promise.resolve(null)},t.prototype.runAction=function(e,t){var n=t?e.run(t):e.run();return Promise.resolve(n)},t}(i.a)},function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return d});var r,i,o=n(21),a=n(6),s=n(2),u=n(120),c=(r=function(e,t){return(r=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)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};!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 d=function(e){function t(){var t=e.call(this)||this;return t.activeTouches={},t.handle=null,t.targets=[],t._register(s.h(document,"touchstart",function(e){return t.onTouchStart(e)})),t._register(s.h(document,"touchend",function(e){return t.onTouchEnd(e)})),t._register(s.h(document,"touchmove",function(e){return t.onTouchMove(e)})),t}return c(t,e),t.addTarget=function(e){t.isTouchDevice()&&(t.INSTANCE||(t.INSTANCE=new t),t.INSTANCE.targets.push(e))},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=t.HOLD_DELAY&&Math.abs(l.initialPageX-o.s(l.rollingPageX))<30&&Math.abs(l.initialPageY-o.s(l.rollingPageY))<30){var h;(h=s.newGestureEvent(i.Contextmenu,l.initialTarget)).pageX=o.s(l.rollingPageX),h.pageY=o.s(l.rollingPageY),s.dispatchEvent(h)}else if(1===r){var p=o.s(l.rollingPageX),f=o.s(l.rollingPageY),g=o.s(l.rollingTimestamps)-l.rollingTimestamps[0],m=p-l.rollingPageX[0],y=f-l.rollingPageY[0],v=s.targets.filter(function(e){return l.initialTarget instanceof Node&&e.contains(l.initialTarget)});s.inertia(v,n,Math.abs(m)/g,m>0?1:-1,p,Math.abs(y)/g,y>0?1:-1,f)}s.dispatchEvent(s.newGestureEvent(i.End,l.initialTarget)),delete s.activeTouches[c.identifier]},s=this,u=0,c=e.changedTouches.length;u0&&(g=!1,p=o*r*h),u>0&&(g=!1,f=c*u*h);var m=d.newGestureEvent(i.Change);m.translationX=p,m.translationY=f,e.forEach(function(e){return e.dispatchEvent(m)}),g||d.inertia(e,s,r,o,a+p,u,c,l+f)})},t.prototype.onTouchMove=function(e){for(var t=Date.now(),n=0,r=e.changedTouches.length;n3&&(s.rollingPageX.shift(),s.rollingPageY.shift(),s.rollingTimestamps.shift()),s.rollingPageX.push(a.pageX),s.rollingPageY.push(a.pageY),s.rollingTimestamps.push(t)}else console.warn("end of an UNKNOWN touch",a)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)},t.SCROLL_FRICTION=-.005,t.HOLD_DELAY=700,l([u.a],t,"isTouchDevice",null),t}(a.a)},function(e,t,n){"use strict";n.d(t,"b",function(){return l}),n.d(t,"a",function(){return r});var r,i=n(24),o=n(19),a=n(84),s=n(145),u=n(11),c=n(4),l=function(){function e(){}return e.addCursorDown=function(e,t,n){for(var r=[],i=0,s=0,u=t.length;sl&&(d=l,h=e.model.getLineMaxColumn(d)),o.d.fromModelState(new o.f(new c.a(a.lineNumber,1,d,h),0,new u.a(d,h),0))}var p=t.modelState.selectionStart.getStartPosition().lineNumber;if(a.lineNumberp){l=e.viewModel.getLineCount();var f=s.lineNumber+1,g=1;return f>l&&(f=l,g=e.viewModel.getLineMaxColumn(f)),o.d.fromViewState(t.viewState.move(t.modelState.hasSelection(),f,g,0))}var m=t.modelState.selectionStart.getEndPosition();return o.d.fromModelState(t.modelState.move(t.modelState.hasSelection(),m.lineNumber,m.column,0))},e.word=function(e,t,n,r){var i=e.model.validatePosition(r);return o.d.fromModelState(s.a.word(e.config,e.model,t.modelState,n,i))},e.cancelSelection=function(e,t){if(!t.modelState.hasSelection())return new o.d(t.modelState,t.viewState);var n=t.viewState.position.lineNumber,r=t.viewState.position.column;return o.d.fromViewState(new o.f(new c.a(n,r,n,r),0,new u.a(n,r),0))},e.moveTo=function(e,t,n,r,i){var a=e.model.validatePosition(r),s=i?e.validateViewPosition(new u.a(i.lineNumber,i.column),a):e.convertModelPositionToViewPosition(a);return o.d.fromViewState(t.viewState.move(n,s.lineNumber,s.column,0))},e.move=function(e,t,n){var r=n.select,i=n.value;switch(n.direction){case 0:return 4===n.unit?this._moveHalfLineLeft(e,t,r):this._moveLeft(e,t,r,i);case 1:return 4===n.unit?this._moveHalfLineRight(e,t,r):this._moveRight(e,t,r,i);case 2:return 2===n.unit?this._moveUpByViewLines(e,t,r,i):this._moveUpByModelLines(e,t,r,i);case 3:return 2===n.unit?this._moveDownByViewLines(e,t,r,i):this._moveDownByModelLines(e,t,r,i);case 4:return this._moveToViewMinColumn(e,t,r);case 5:return this._moveToViewFirstNonWhitespaceColumn(e,t,r);case 6:return this._moveToViewCenterColumn(e,t,r);case 7:return this._moveToViewMaxColumn(e,t,r);case 8:return this._moveToViewLastNonWhitespaceColumn(e,t,r);case 9:var o=t[0],a=e.getCompletelyVisibleModelRange(),s=this._firstLineNumberInRange(e.model,a,i),u=e.model.getLineFirstNonWhitespaceColumn(s);return[this._moveToModelPosition(e,o,r,s,u)];case 11:o=t[0],a=e.getCompletelyVisibleModelRange(),s=this._lastLineNumberInRange(e.model,a,i),u=e.model.getLineFirstNonWhitespaceColumn(s);return[this._moveToModelPosition(e,o,r,s,u)];case 10:o=t[0],a=e.getCompletelyVisibleModelRange(),s=Math.round((a.startLineNumber+a.endLineNumber)/2),u=e.model.getLineFirstNonWhitespaceColumn(s);return[this._moveToModelPosition(e,o,r,s,u)];case 12:for(var c=e.getCompletelyVisibleViewRange(),l=[],d=0,h=t.length;dn.endLineNumber-1&&(i=n.endLineNumber-1),i.001){S=!1;break}}var N=!0;S&&_.width!==C&&(N=!1),_.width>b.width&&(N=!1);var E=r.b()>2e3;return new p.b({zoomLevel:r.c(),fontFamily:e.fontFamily,fontWeight:e.fontWeight,fontSize:e.fontSize,lineHeight:e.lineHeight,letterSpacing:e.letterSpacing,isMonospace:S,typicalHalfwidthCharacterWidth:i.width,typicalFullwidthCharacterWidth:o.width,canUseHalfwidthRightwardsArrow:N,spaceWidth:a.width,maxDigitWidth:w},E)},t.INSTANCE=new t,t}(o.a),v=function(e){function t(t,n,i,o){void 0===i&&(i=null);var a=e.call(this,t,n)||this;return a.accessibilityService=o,a._elementSizeObserver=a._register(new d(i,function(){return a._onReferenceDomElementSizeChanged()})),a._register(y.INSTANCE.onDidChange(function(){return a._onCSSBasedConfigurationChanged()})),a._validatedOptions.automaticLayout&&a._elementSizeObserver.startObserving(),a._register(r.o(function(e){return a._recomputeOptions()})),a._register(a.accessibilityService.onDidChangeAccessibilitySupport(function(){return a._recomputeOptions()})),a._recomputeOptions(),a}return f(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.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.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 r.l||r.n||(e+="no-user-select "),a.d&&(e+="mac "),e},t.prototype._getEnvConfiguration=function(){return{extraEditorClassName:this._getExtraEditorClassName(),outerWidth:this._elementSizeObserver.getWidth(),outerHeight:this._elementSizeObserver.getHeight(),emptySelectionClipboard:r.m||r.i,pixelRatio:r.a(),zoomLevel:r.c(),accessibilitySupport:this.accessibilityService.getAccessibilitySupport()}},t.prototype.readConfiguration=function(e){return y.INSTANCE.readConfiguration(e)},t}(h.a)},function(e,t,n){"use strict";n.d(t,"b",function(){return s}),n.d(t,"a",function(){return u}),n.d(t,"c",function(){return l}),n.d(t,"d",function(){return h});var r=n(9),i=n(213),o=n(165),a=function(){return function(e,t){this.endIndex=e,this.type=t}}(),s=function(){function e(e,t,n,r,i,o,a,s,u,c,l,d,h,p,f){this.useMonospaceOptimizations=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=n,this.continuesWithWrappedLine=r,this.isBasicASCII=i,this.containsRTL=o,this.fauxIndentLength=a,this.lineTokens=s,this.lineDecorations=u,this.tabSize=c,this.spaceWidth=l,this.stopRenderingLineAfter=d,this.renderWhitespace="all"===h?2:"boundary"===h?1:0,this.renderControlCharacters=p,this.fontLigatures=f}return 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.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)},e}(),u=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,r){var i=(t<<16|n<<0)>>>0;this._data[e]=i,this._absoluteOffsets[e]=r+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,r){if(0===this.length)return 0;for(var i=(t<<16|r<<0)>>>0,o=0,a=this.length-1;o+1>>1,u=this._data[s];if(u===i)return s;u>i?a=s:o=s}if(o===a)return o;var c=this._data[o],l=this._data[a];if(c===i)return o;if(l===i)return a;var d=e.getPartIndex(c);return r-e.getCharIndex(c)<=(d!==e.getPartIndex(l)?n:e.getCharIndex(l))-r?o:a},e}(),c=function(){return function(e,t,n){this.characterMapping=e,this.containsRTL=t,this.containsForeignElements=n}}();function l(e,t){if(0===e.lineContent.length){var n=0,i=" ";if(e.lineDecorations.length>0){for(var s=[],l=0,d=e.lineDecorations.length;l')}return t.appendASCIIString(i),new c(new u(0,0),!1,n)}return function(e,t){var n=e.fontIsMonospace,i=e.canUseHalfwidthRightwardsArrow,o=e.containsForeignElements,a=e.lineContent,s=e.len,l=e.isOverflowing,d=e.parts,h=e.tabSize,p=e.containsRTL,f=e.spaceWidth,g=e.renderWhitespace,m=e.renderControlCharacters,y=new u(s+1,d.length),v=0,b=0,_=0,w=0,S=0;t.appendASCIIString("");for(var C=0,I=d.length;C=0;if(_=0,t.appendASCIIString('0&&(!i||O>1?t.write1(8594):t.write1(65515),O--);O>0;)t.write1(160),O--}else t.write1(183);_++}w=L}else{var L=0;for(p&&t.appendASCIIString(' dir="ltr"'),t.appendASCII(62);v0;)t.write1(160),L++,O--;break;case 32:t.write1(160),L++;break;case 60:t.appendASCIIString("<"),L++;break;case 62:t.appendASCIIString(">"),L++;break;case 38:t.appendASCIIString("&"),L++;break;case 0:t.appendASCIIString("�"),L++;break;case 65279:case 8232:t.write1(65533),L++;break;default:r.t(D)&&b++,m&&D<32?(t.write1(9216+D),L++):(t.write1(D),L++)}_++}w=L}t.appendASCIIString("")}y.setPartData(s,d.length-1,_,S),l&&t.appendASCIIString("");return t.appendASCIIString(""),new c(y,p,o)}(function(e){var t,n,i=e.useMonospaceOptimizations,s=e.lineContent;-1!==e.stopRenderingLineAfter&&e.stopRenderingLineAfter0&&(r[i++]=new a(t,""));for(var o=0,s=e.getCount();o=n){r[i++]=new a(n,c);break}r[i++]=new a(u,c)}}return r}(e.lineTokens,e.fauxIndentLength,n);2!==e.renderWhitespace&&1!==e.renderWhitespace||(u=function(e,t,n,i,o,s,u,c){var l,d=[],h=0,p=0,f=i[p].type,g=i[p].endIndex,m=i.length,y=r.o(e);-1===y?(y=t,l=t):l=r.y(e);for(var v=0,b=0;bl)S=!0;else if(9===_)S=!0;else if(32===_)if(c)if(w)S=!0;else{var C=b+1=s)&&(d[h++]=new a(b,"vs-whitespace"),v%=s):(b===g||S&&b>o)&&(d[h++]=new a(b,f),v%=s),9===_?v=s:r.t(_)?v+=2:v++,w=S,b===g&&++p0?e.charCodeAt(t-1):0,x=t>1?e.charCodeAt(t-2):0,N=32===M&&32!==x&&9!==x;N||(I=!0)}else I=!0;return d[h++]=new a(t,I?"vs-whitespace":f),d}(s,n,e.continuesWithWrappedLine,u,e.fauxIndentLength,e.tabSize,i,1===e.renderWhitespace));var c=0;if(e.lineDecorations.length>0){for(var l=0,d=e.lineDecorations.length;ld&&(d=y.startOffset,c[l++]=new a(d,m)),!(y.endOffset+1<=g)){d=g,c[l++]=new a(d,m+" "+y.className);break}d=y.endOffset+1,c[l++]=new a(d,m+" "+y.className),u++}g>d&&(d=g,c[l++]=new a(d,m))}var v=n[n.length-1].endIndex;if(u=50&&(i[o++]=new a(h+1,d),p=h+1,h=-1);p!==l&&(i[o++]=new a(l,d))}else i[o++]=c;r=l}else for(var s=0,u=t.length;s50){for(var d=c.type,m=Math.ceil(g/50),f=1;f=e.length)return t.push(null);var i=n+r;i>e.length&&(i=e.length),t.push(e.slice(n,i)),n=i},t},concat:function(e){var t,n,r=0,i=0;for(n=0;n>>8^t[255&(n^e.readUInt8(r))]}return(-1^n)>>>0},hmac:function(e,t,n,r){return n||(n="binary"),"buffer"===n&&(n=void 0),r||(r="sha256"),"string"==typeof t&&(t=o.buffer.toBuffer(t)),o.crypto.lib.createHmac(r,e).update(t).digest(n)},md5:function(e,t,n){return o.crypto.hash("md5",e,t,n)},sha256:function(e,t,n){return o.crypto.hash("sha256",e,t,n)},hash:function(e,t,n,r){var i=o.crypto.createHash(e);n||(n="binary"),"buffer"===n&&(n=void 0),"string"==typeof t&&(t=o.buffer.toBuffer(t));var a=o.arraySliceFn(t),s=o.Buffer.isBuffer(t);if(o.isBrowser()&&"undefined"!=typeof ArrayBuffer&&t&&t.buffer instanceof ArrayBuffer&&(s=!0),r&&"object"==typeof t&&"function"==typeof t.on&&!s)t.on("data",function(e){i.update(e)}),t.on("error",function(e){r(e)}),t.on("end",function(){r(null,i.digest(n))});else{if(!r||!a||s||"undefined"==typeof FileReader){o.isBrowser()&&"object"==typeof t&&!s&&(t=new o.Buffer(new Uint8Array(t)));var u=i.update(t).digest(n);return r&&r(null,u),u}var c=0,l=new FileReader;l.onerror=function(){r(new Error("Failed to read data."))},l.onload=function(){var e=new o.Buffer(new Uint8Array(l.result));i.update(e),c+=e.length,l._continueReading()},l._continueReading=function(){if(c>=t.size)r(null,i.digest(n));else{var e=c+524288;e>t.size&&(e=t.size),l.readAsArrayBuffer(a.call(t,c,e))}},l._continueReading()}},toHex:function(e){for(var t=[],n=0;n=3e5,!1),i.config.isClockSkewed},applyClockOffset:function(e){e&&(i.config.systemClockOffset=e-(new Date).getTime())},extractRequestId:function(e){var t=e.httpResponse.headers["x-amz-request-id"]||e.httpResponse.headers["x-amzn-requestid"];!t&&e.data&&e.data.ResponseMetadata&&(t=e.data.ResponseMetadata.RequestId),t&&(e.requestId=t),e.error&&(e.error.requestId=t)},addPromises:function(e,t){var n=!1;void 0===t&&i&&i.config&&(t=i.config.getPromisesDependency()),void 0===t&&"undefined"!=typeof Promise&&(t=Promise),"function"!=typeof t&&(n=!0),Array.isArray(e)||(e=[e]);for(var r=0;r=500||429===r});i&&a.retryable&&(a.retryAfter=i),u(a)}})},u)};i.util.defer(c)},uuid:{v4:function(){return n(257).v4()}},convertPayloadToString:function(e){var t=e.request,n=t.operation,r=t.service.api.operations[n].output||{};r.payload&&e.data[r.payload]&&(e.data[r.payload]=e.data[r.payload].toString())},defer:function(e){"object"==typeof t&&"function"==typeof t.nextTick?t.nextTick(e):"function"==typeof r?r(e):setTimeout(e,0)},getRequestPayloadShape:function(e){var t=e.service.api.operations;if(t){var n=(t||{})[e.operation];if(n&&n.input&&n.input.payload)return n.input.members[n.input.payload]}},defaultProfile:"default",configOptInEnv:"AWS_SDK_LOAD_CONFIG",sharedCredentialsFileEnv:"AWS_SHARED_CREDENTIALS_FILE",sharedConfigFileEnv:"AWS_CONFIG_FILE",imdsDisabledEnv:"AWS_EC2_METADATA_DISABLED"};e.exports=o}).call(this,n(82),n(298).setImmediate)},function(e,t,n){"use strict";var r=n(277),i="object"==typeof self&&self&&self.Object===Object&&self,o=r.a||i||Function("return this")();t.a=o},function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return o});var r=n(23),i=Object(r.c)("openerService"),o=Object.freeze({_serviceBrand:void 0,registerOpener:function(){return{dispose:function(){}}},open:function(){return Promise.resolve(!1)}})},function(e,t,n){"use strict";n.d(t,"b",function(){return i}),n.d(t,"a",function(){return o});var r=n(23),i=Object(r.c)("contextViewService"),o=Object(r.c)("contextMenuService")},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(23),i=Object(r.c)("editorWorkerService")},function(e,t,n){(function(t,r){var i,o={environment:"nodejs",engine:function(){if(o.isBrowser()&&"undefined"!=typeof navigator)return navigator.userAgent;var e=t.platform+"/"+t.version;return t.env.AWS_EXECUTION_ENV&&(e+=" exec-env/"+t.env.AWS_EXECUTION_ENV),e},userAgent:function(){var e=o.environment,t="aws-sdk-"+e+"/"+n(48).VERSION;return"nodejs"===e&&(t+=" "+o.engine()),t},isBrowser:function(){return t&&t.browser},isNode:function(){return!o.isBrowser()},uriEscape:function(e){var t=encodeURIComponent(e);return t=(t=t.replace(/[^A-Za-z0-9_.~\-%]+/g,escape)).replace(/[*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})},uriEscapePath:function(e){var t=[];return o.arrayEach(e.split("/"),function(e){t.push(o.uriEscape(e))}),t.join("/")},urlParse:function(e){return o.url.parse(e)},urlFormat:function(e){return o.url.format(e)},queryStringParse:function(e){return o.querystring.parse(e)},queryParamsToString:function(e){var t=[],n=o.uriEscape,r=Object.keys(e).sort();return o.arrayEach(r,function(r){var i=e[r],a=n(r),s=a+"=";if(Array.isArray(i)){var u=[];o.arrayEach(i,function(e){u.push(n(e))}),s=a+"="+u.sort().join("&"+a+"=")}else null!=i&&(s=a+"="+n(i));t.push(s)}),t.join("&")},readFileSync:function(e){return o.isBrowser()?null:n(302).readFileSync(e,"utf-8")},base64:{encode:function(e){if("number"==typeof e)throw o.error(new Error("Cannot base64 encode number "+e));return null==e?e:("function"==typeof o.Buffer.from&&o.Buffer.from!==Uint8Array.from?o.Buffer.from(e):new o.Buffer(e)).toString("base64")},decode:function(e){if("number"==typeof e)throw o.error(new Error("Cannot base64 decode number "+e));return null==e?e:"function"==typeof o.Buffer.from&&o.Buffer.from!==Uint8Array.from?o.Buffer.from(e,"base64"):new o.Buffer(e,"base64")}},buffer:{toStream:function(e){o.Buffer.isBuffer(e)||(e=new o.Buffer(e));var t=new o.stream.Readable,n=0;return t._read=function(r){if(n>=e.length)return t.push(null);var i=n+r;i>e.length&&(i=e.length),t.push(e.slice(n,i)),n=i},t},concat:function(e){var t,n,r=0,i=0;for(n=0;n>>8^t[255&(n^e.readUInt8(r))]}return(-1^n)>>>0},hmac:function(e,t,n,r){return n||(n="binary"),"buffer"===n&&(n=void 0),r||(r="sha256"),"string"==typeof t&&(t=new o.Buffer(t)),o.crypto.lib.createHmac(r,e).update(t).digest(n)},md5:function(e,t,n){return o.crypto.hash("md5",e,t,n)},sha256:function(e,t,n){return o.crypto.hash("sha256",e,t,n)},hash:function(e,t,n,r){var i=o.crypto.createHash(e);n||(n="binary"),"buffer"===n&&(n=void 0),"string"==typeof t&&(t=new o.Buffer(t));var a=o.arraySliceFn(t),s=o.Buffer.isBuffer(t);if(o.isBrowser()&&"undefined"!=typeof ArrayBuffer&&t&&t.buffer instanceof ArrayBuffer&&(s=!0),r&&"object"==typeof t&&"function"==typeof t.on&&!s)t.on("data",function(e){i.update(e)}),t.on("error",function(e){r(e)}),t.on("end",function(){r(null,i.digest(n))});else{if(!r||!a||s||"undefined"==typeof FileReader){o.isBrowser()&&"object"==typeof t&&!s&&(t=new o.Buffer(new Uint8Array(t)));var u=i.update(t).digest(n);return r&&r(null,u),u}var c=0,l=new FileReader;l.onerror=function(){r(new Error("Failed to read data."))},l.onload=function(){var e=new o.Buffer(new Uint8Array(l.result));i.update(e),c+=e.length,l._continueReading()},l._continueReading=function(){if(c>=t.size)r(null,i.digest(n));else{var e=c+524288;e>t.size&&(e=t.size),l.readAsArrayBuffer(a.call(t,c,e))}},l._continueReading()}},toHex:function(e){for(var t=[],n=0;n=3e5,!1),i.config.isClockSkewed},applyClockOffset:function(e){e&&(i.config.systemClockOffset=e-(new Date).getTime())},extractRequestId:function(e){var t=e.httpResponse.headers["x-amz-request-id"]||e.httpResponse.headers["x-amzn-requestid"];!t&&e.data&&e.data.ResponseMetadata&&(t=e.data.ResponseMetadata.RequestId),t&&(e.requestId=t),e.error&&(e.error.requestId=t)},addPromises:function(e,t){var n=!1;void 0===t&&i&&i.config&&(t=i.config.getPromisesDependency()),void 0===t&&"undefined"!=typeof Promise&&(t=Promise),"function"!=typeof t&&(n=!0),Array.isArray(e)||(e=[e]);for(var r=0;r=500||429===r});i&&a.retryable&&(a.retryAfter=i),u(a)}})},u)};i.util.defer(c)},uuid:{v4:function(){return n(806).v4()}},convertPayloadToString:function(e){var t=e.request,n=t.operation,r=t.service.api.operations[n].output||{};r.payload&&e.data[r.payload]&&(e.data[r.payload]=e.data[r.payload].toString())},defer:function(e){"object"==typeof t&&"function"==typeof t.nextTick?t.nextTick(e):"function"==typeof r?r(e):setTimeout(e,0)},defaultProfile:"default",configOptInEnv:"AWS_SDK_LOAD_CONFIG",sharedCredentialsFileEnv:"AWS_SHARED_CREDENTIALS_FILE",sharedConfigFileEnv:"AWS_CONFIG_FILE",imdsDisabledEnv:"AWS_EC2_METADATA_DISABLED"};e.exports=o}).call(this,n(82),n(298).setImmediate)},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";n.d(t,"a",function(){return u}),n.d(t,"b",function(){return c}),n.d(t,"d",function(){return l}),n.d(t,"c",function(){return d});var r,i=n(9),o=n(34),a=n(6),s=(r=function(e,t){return(r=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)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(){function e(e,t){if(this.flags=t,0!=(1&this.flags)){var n=e.getModel();this.modelVersionId=n?i.p("{0}#{1}",n.uri.toString(),n.getVersionId()):null}0!=(4&this.flags)&&(this.position=e.getPosition()),0!=(2&this.flags)&&(this.selection=e.getSelection()),0!=(8&this.flags)&&(this.scrollLeft=e.getScrollLeft(),this.scrollTop=e.getScrollTop())}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}(),c=function(e){function t(t,n,r){var i=e.call(this,r)||this;return i.editor=t,i._listener=[],4&n&&i._listener.push(t.onDidChangeCursorPosition(function(e){return i.cancel()})),2&n&&i._listener.push(t.onDidChangeCursorSelection(function(e){return i.cancel()})),8&n&&i._listener.push(t.onDidScrollChange(function(e){return i.cancel()})),1&n&&(i._listener.push(t.onDidChangeModel(function(e){return i.cancel()})),i._listener.push(t.onDidChangeModelContent(function(e){return i.cancel()}))),i}return s(t,e),t.prototype.dispose=function(){Object(a.d)(this._listener),e.prototype.dispose.call(this)},t}(o.b),l=function(e){function t(t,n){var r=e.call(this,n)||this;return r._listener=t.onDidChangeContent(function(){return r.cancel()}),r}return s(t,e),t.prototype.dispose=function(){this._listener.dispose(),e.prototype.dispose.call(this)},t}(o.b),d=function(){function e(e,t){this._visiblePosition=e,this._visiblePositionScrollDelta=t}return e.capture=function(t){var n=null,r=0;if(0!==t.getScrollTop()){var i=t.getVisibleRanges();if(i.length>0){n=i[0].getStartPosition();var o=t.getTopForPosition(n.lineNumber,n.column);r=t.getScrollTop()-o}}return new e(n,r)},e.prototype.restore=function(e){if(this._visiblePosition){var t=e.getTopForPosition(this._visiblePosition.lineNumber,this._visiblePosition.column);e.setScrollTop(t+this._visiblePositionScrollDelta)}},e}()},function(e,t,n){"use strict";n.d(t,"b",function(){return c}),n.d(t,"a",function(){return l});var r,i=n(2),o=n(236),a=n(52),s=n(6),u=(r=function(e,t){return(r=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)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function c(e,t){var n=new a.b(t);return n.preventDefault(),{leftButton:n.leftButton,posx:n.posx,posy:n.posy}}var l=function(e){function t(){var t=e.call(this)||this;return t.hooks=[],t.mouseMoveEventMerger=null,t.mouseMoveCallback=null,t.onStopCallback=null,t}return u(t,e),t.prototype.dispose=function(){this.stopMonitoring(!1),e.prototype.dispose.call(this)},t.prototype.stopMonitoring=function(e){if(this.isMonitoring()){this.hooks=Object(s.d)(this.hooks),this.mouseMoveEventMerger=null,this.mouseMoveCallback=null;var t=this.onStopCallback;this.onStopCallback=null,e&&t&&t()}},t.prototype.isMonitoring=function(){return this.hooks.length>0},t.prototype.startMonitoring=function(e,t,n){var r=this;if(!this.isMonitoring()){this.mouseMoveEventMerger=e,this.mouseMoveCallback=t,this.onStopCallback=n;for(var s=o.a.getSameOriginWindowChain(),u=0,c=s;u0?(r=t?(r+1)%i:(r+i-1)%i,n.children[r]):(r=n.parent.groups.indexOf(n),t?(r=(r+1)%o,n.parent.groups[r].children[0]):(r=(r+o-1)%o,n.parent.groups[r].children[n.parent.groups[r].children.length-1]))},e.prototype.nearestReference=function(e,t){var n=this.references.map(function(n,r){return{idx:r,prefixLen:s.b(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.prefixLent.offsetDist?1:0})[0];if(n)return this.references[n.idx]},e.prototype.firstReference=function(){for(var e=0,t=this.references;er?1:c.a.compareRangesUsingStarts(e.range,t.range)},e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return i}),n.d(t,"c",function(){return o});var r={RESOURCES:"ResourceURLs",DOWNLOAD_URL:"DownloadURL",FILES:"Files",TEXT:"text/plain"},i=function(){function e(e){this.data=e}return e.prototype.update=function(){},e.prototype.getData=function(){return this.data},e}(),o={CurrentDragAndDropData:void 0}},function(e,t,n){e.exports=n.p+"assets/15e30c745b44dcf79b97ee42dd3dad51.svg"},function(e,t,n){"use strict";n(1224);var r,i=n(2),o=n(30),a=n(52),s=n(99),u=n(80),c=n(18),l=(r=function(e,t){return(r=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)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),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",void 0!==t.top&&(n.bgDomNode.style.top="0px"),void 0!==t.left&&(n.bgDomNode.style.left="0px"),void 0!==t.bottom&&(n.bgDomNode.style.bottom="0px"),void 0!==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",void 0!==t.top&&(n.domNode.style.top=t.top+"px"),void 0!==t.left&&(n.domNode.style.left=t.left+"px"),void 0!==t.bottom&&(n.domNode.style.bottom=t.bottom+"px"),void 0!==t.right&&(n.domNode.style.right=t.right+"px"),n._mouseMoveMonitor=n._register(new s.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 c.c),n._mousedownScheduleRepeatTimer=n._register(new c.e),n}return l(t,e),t.prototype._arrowMouseDown=function(e){var t=this;this._onActivate(),this._mousedownRepeatTimer.cancel(),this._mousedownScheduleRepeatTimer.cancelAndSet(function(){t._mousedownRepeatTimer.cancelAndSet(function(){return t._onActivate()},1e3/24)},200),this._mouseMoveMonitor.startMonitoring(s.b,function(e){},function(){t._mousedownRepeatTimer.cancel(),t._mousedownScheduleRepeatTimer.cancel()}),e.preventDefault()},t}(u.a),p=n(6),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])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),g=function(e){function t(t,n,r){var i=e.call(this)||this;return i._visibility=t,i._visibleClassName=n,i._invisibleClassName=r,i._domNode=null,i._isVisible=!1,i._isNeeded=!1,i._shouldBeVisible=!1,i._revealTimer=i._register(new c.e),i}return f(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}(p.a),m=n(17),y=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])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),v=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._mouseMoveMonitor=n._register(new s.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 y(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,r){var i=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 r&&this.slider.setHeight(r),this.slider.setLayerHinting(!0),this.domNode.domNode.appendChild(this.slider.domNode),this.onmousedown(this.slider.domNode,function(e){e.leftButton&&(e.preventDefault(),i._sliderMouseDown(e,function(){}))})},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(),r=t+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize(),i=this._sliderMousePosition(e);n<=i&&i<=r?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 r=i.v(this.domNode.domNode);t=e.posx-r.left,n=e.posy-r.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,r=this._sliderMousePosition(e),i=this._sliderOrthogonalMousePosition(e),o=this._scrollbarState.clone();this.slider.toggleClassName("active",!0),this._mouseMoveMonitor.startMonitoring(s.b,function(e){var t=n._sliderOrthogonalMousePosition(e),a=Math.abs(t-i);if(m.g&&a>140)n._setDesiredScrollPositionNow(o.getScrollPosition());else{var s=n._sliderMousePosition(e)-r;n._setDesiredScrollPositionNow(o.getDesiredScrollPositionFromDelta(s))}},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),b=function(){function e(e,t,n){this._scrollbarSize=Math.round(t),this._oppositeScrollbarSize=Math.round(n),this._arrowSize=Math.round(e),this._visibleSize=0,this._scrollSize=0,this._scrollPosition=0,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}return e.prototype.clone=function(){var t=new e(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize);return t.setVisibleSize(this._visibleSize),t.setScrollSize(this._scrollSize),t.setScrollPosition(this._scrollPosition),t},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,r,i){var o=Math.max(0,n-e),a=Math.max(0,o-2*t),s=r>0&&r>n;if(!s)return{computedAvailableSize:Math.round(o),computedIsNeeded:s,computedSliderSize:Math.round(a),computedSliderRatio:0,computedSliderPosition:0};var u=Math.round(Math.max(20,Math.floor(n*a/r))),c=(a-u)/(r-n),l=i*c;return{computedAvailableSize:Math.round(o),computedIsNeeded:s,computedSliderSize:Math.round(u),computedSliderRatio:c,computedSliderPosition:Math.round(l)}},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}(),_=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])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),w=function(e){function t(t,n,r){var i=e.call(this,{lazyRender:n.lazyRender,host:r,scrollbarState:new b(n.horizontalHasArrows?n.arrowSize:0,2===n.horizontal?0:n.horizontalScrollbarSize,2===n.vertical?0:n.verticalScrollbarSize),visibility:n.horizontal,extraScrollbarClassName:"horizontal",scrollable:t})||this;if(n.horizontalHasArrows){var o=(n.arrowSize-d)/2,s=(n.horizontalScrollbarSize-d)/2;i._createArrow({className:"left-arrow",top:s,left:o,bottom:void 0,right:void 0,bgWidth:n.arrowSize,bgHeight:n.horizontalScrollbarSize,onActivate:function(){return i._host.onMouseWheel(new a.c(null,1,0))}}),i._createArrow({className:"right-arrow",top:s,left:void 0,bottom:void 0,right:o,bgWidth:n.arrowSize,bgHeight:n.horizontalScrollbarSize,onActivate:function(){return i._host.onMouseWheel(new a.c(null,-1,0))}})}return i._createSlider(Math.floor((n.horizontalScrollbarSize-n.horizontalSliderSize)/2),0,void 0,n.horizontalSliderSize),i}return _(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}(v),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])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),C=function(e){function t(t,n,r){var i=e.call(this,{lazyRender:n.lazyRender,host:r,scrollbarState:new b(n.verticalHasArrows?n.arrowSize:0,2===n.vertical?0:n.verticalScrollbarSize,0),visibility:n.vertical,extraScrollbarClassName:"vertical",scrollable:t})||this;if(n.verticalHasArrows){var o=(n.arrowSize-d)/2,s=(n.verticalScrollbarSize-d)/2;i._createArrow({className:"up-arrow",top:o,left:s,bottom:void 0,right:void 0,bgWidth:n.verticalScrollbarSize,bgHeight:n.arrowSize,onActivate:function(){return i._host.onMouseWheel(new a.c(null,0,1))}}),i._createArrow({className:"down-arrow",top:void 0,left:s,bottom:o,right:void 0,bgWidth:n.verticalScrollbarSize,bgHeight:n.arrowSize,onActivate:function(){return i._host.onMouseWheel(new a.c(null,0,-1))}})}return i._createSlider(0,Math.floor((n.verticalScrollbarSize-n.verticalSliderSize)/2),n.verticalSliderSize,void 0),i}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}(v),I=n(7),M=n(288);n.d(t,"b",function(){return T}),n.d(t,"c",function(){return k}),n.d(t,"a",function(){return D});var 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])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),N=function(){return function(e,t,n){this.timestamp=e,this.deltaX=t,this.deltaY=n,this.score=0}}(),E=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;for(var e=1,t=0,n=1,r=this._rear;;){var i=r===this._front?e:Math.pow(2,-n);if(e-=i,t+=this._memory[r].score*i,r===this._front)break;r=(this._capacity+r-1)%this._capacity,n++}return t<=.5},e.prototype.accept=function(e,t,n){var r=new N(e,t,n);r.score=this._computeScore(r),-1===this._front&&-1===this._rear?(this._memory[0]=r,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]=r)},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}(),L=function(e){function t(t,n,r){var i=e.call(this)||this;i._onScroll=i._register(new I.a),i.onScroll=i._onScroll.event,t.style.overflow="hidden",i._options=O(n),i._scrollable=r,i._register(i._scrollable.onScroll(function(e){i._onDidScroll(e),i._onScroll.fire(e)}));var a={onMouseWheel:function(e){return i._onMouseWheel(e)},onDragStart:function(){return i._onDragStart()},onDragEnd:function(){return i._onDragEnd()}};return i._verticalScrollbar=i._register(new C(i._scrollable,i._options,a)),i._horizontalScrollbar=i._register(new w(i._scrollable,i._options,a)),i._domNode=document.createElement("div"),i._domNode.className="monaco-scrollable-element "+i._options.className,i._domNode.setAttribute("role","presentation"),i._domNode.style.position="relative",i._domNode.style.overflow="hidden",i._domNode.appendChild(t),i._domNode.appendChild(i._horizontalScrollbar.domNode.domNode),i._domNode.appendChild(i._verticalScrollbar.domNode.domNode),i._options.useShadows&&(i._leftShadowDomNode=Object(o.b)(document.createElement("div")),i._leftShadowDomNode.setClassName("shadow"),i._domNode.appendChild(i._leftShadowDomNode.domNode),i._topShadowDomNode=Object(o.b)(document.createElement("div")),i._topShadowDomNode.setClassName("shadow"),i._domNode.appendChild(i._topShadowDomNode.domNode),i._topLeftShadowDomNode=Object(o.b)(document.createElement("div")),i._topLeftShadowDomNode.setClassName("shadow top-left-corner"),i._domNode.appendChild(i._topLeftShadowDomNode.domNode)),i._listenOnDomNode=i._options.listenOnDomNode||i._domNode,i._mouseWheelToDispose=[],i._setListeningToMouseWheel(i._options.handleMouseWheel),i.onmouseover(i._listenOnDomNode,function(e){return i._onMouseOver(e)}),i.onnonbubblingmouseout(i._listenOnDomNode,function(e){return i._onMouseOut(e)}),i._hideTimeout=i._register(new c.e),i._isDragging=!1,i._mouseIsOver=!1,i._shouldRender=!0,i._revealOnScroll=!0,i}return x(t,e),t.prototype.dispose=function(){this._mouseWheelToDispose=Object(p.d)(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,m.d&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className},t.prototype.updateOptions=function(e){var t=O(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;if(this._mouseWheelToDispose.length>0!==e&&(this._mouseWheelToDispose=Object(p.d)(this._mouseWheelToDispose),e)){this._mouseWheelToDispose.push(i.h(this._listenOnDomNode,"mousewheel",function(e){t._onMouseWheel(new a.c(e))}))}},t.prototype._onMouseWheel=function(e){var t,n=E.INSTANCE;if(n.accept(Date.now(),e.deltaX,e.deltaY),e.deltaY||e.deltaX){var r=e.deltaY*this._options.mouseWheelScrollSensitivity,i=e.deltaX*this._options.mouseWheelScrollSensitivity;this._options.flipAxes&&(r=(t=[i,r])[0],i=t[1]);var o=!m.d&&e.browserEvent&&e.browserEvent.shiftKey;!this._options.scrollYToX&&!o||i||(i=r,r=0),e.browserEvent&&e.browserEvent.altKey&&(i*=this._options.fastScrollSensitivity,r*=this._options.fastScrollSensitivity);var a=this._scrollable.getFutureScrollPosition(),s={};if(r){var u=a.scrollTop-50*r;this._verticalScrollbar.writeScrollPosition(s,u)}if(i){var c=a.scrollLeft-50*i;this._horizontalScrollbar.writeScrollPosition(s,c)}if(s=this._scrollable.validateScrollPosition(s),a.scrollLeft!==s.scrollLeft||a.scrollTop!==s.scrollTop)this._options.mouseWheelSmoothScroll&&n.isPhysicalMouseWheel()?this._scrollable.setScrollPositionSmooth(s):this._scrollable.setScrollPositionNow(s),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()},500)},t}(u.a),T=function(e){function t(t,n){var r=this;(n=n||{}).mouseWheelSmoothScroll=!1;var o=new M.a(0,function(e){return i.N(e)});return(r=e.call(this,t,n,o)||this)._register(o),r}return x(t,e),t.prototype.setScrollPosition=function(e){this._scrollable.setScrollPositionNow(e)},t.prototype.getScrollPosition=function(){return this._scrollable.getCurrentScrollPosition()},t}(L),k=function(e){function t(t,n,r){return e.call(this,t,n,r)||this}return x(t,e),t}(L),D=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r._element=t,r.onScroll(function(e){e.scrollTopChanged&&(r._element.scrollTop=e.scrollTop),e.scrollLeftChanged&&(r._element.scrollLeft=e.scrollLeft)}),r.scanDomNode(),r}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}(T);function O(e){var t={lazyRender:void 0!==e.lazyRender&&e.lazyRender,className:void 0!==e.className?e.className:"",useShadows:void 0===e.useShadows||e.useShadows,handleMouseWheel:void 0===e.handleMouseWheel||e.handleMouseWheel,flipAxes:void 0!==e.flipAxes&&e.flipAxes,alwaysConsumeMouseWheel:void 0!==e.alwaysConsumeMouseWheel&&e.alwaysConsumeMouseWheel,scrollYToX:void 0!==e.scrollYToX&&e.scrollYToX,mouseWheelScrollSensitivity:void 0!==e.mouseWheelScrollSensitivity?e.mouseWheelScrollSensitivity:1,fastScrollSensitivity:void 0!==e.fastScrollSensitivity?e.fastScrollSensitivity:5,mouseWheelSmoothScroll:void 0===e.mouseWheelSmoothScroll||e.mouseWheelSmoothScroll,arrowSize:void 0!==e.arrowSize?e.arrowSize:11,listenOnDomNode:void 0!==e.listenOnDomNode?e.listenOnDomNode:null,horizontal:void 0!==e.horizontal?e.horizontal:1,horizontalScrollbarSize:void 0!==e.horizontalScrollbarSize?e.horizontalScrollbarSize:10,horizontalSliderSize:void 0!==e.horizontalSliderSize?e.horizontalSliderSize:0,horizontalHasArrows:void 0!==e.horizontalHasArrows&&e.horizontalHasArrows,vertical:void 0!==e.vertical?e.vertical:1,verticalScrollbarSize:void 0!==e.verticalScrollbarSize?e.verticalScrollbarSize:10,verticalHasArrows:void 0!==e.verticalHasArrows&&e.verticalHasArrows,verticalSliderSize:void 0!==e.verticalSliderSize?e.verticalSliderSize:0};return t.horizontalSliderSize=void 0!==e.horizontalSliderSize?e.horizontalSliderSize:t.horizontalScrollbarSize,t.verticalSliderSize=void 0!==e.verticalSliderSize?e.verticalSliderSize:t.verticalScrollbarSize,m.d&&(t.className+=" mac"),t}},function(e,t,n){"use strict";n.d(t,"c",function(){return g}),n.d(t,"d",function(){return m}),n.d(t,"b",function(){return y}),n.d(t,"a",function(){return b});n(1188);var r,i=n(17),o=n(1),a=n(6),s=n(85),u=n(2),c=n(24),l=n(86),d=n(59),h=n(7),p=n(21),f=(r=function(e,t){return(r=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)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),g=function(e){function t(t,n,r){var i=e.call(this)||this;return i.options=r,i._context=t||i,i._action=n,n instanceof s.a&&i._register(n.onDidChange(function(e){i.element&&i.handleActionChangeEvent(e)})),i}return f(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},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;this.element=e,l.b.addTarget(e);var n=this.options&&this.options.draggable;n&&(e.draggable=!0),this._register(u.h(this.element,l.a.Tap,function(e){return t.onClick(e)})),this._register(u.h(this.element,u.d.MOUSE_DOWN,function(e){n||u.c.stop(e,!0),t._action.enabled&&0===e.button&&t.element&&u.f(t.element,"active")})),this._register(u.h(this.element,u.d.CLICK,function(e){u.c.stop(e,!0),t.options&&t.options.isMenu?t.onClick(e):i.h(function(){return t.onClick(e)})})),this._register(u.h(this.element,u.d.DBLCLICK,function(e){u.c.stop(e,!0)})),[u.d.MOUSE_UP,u.d.MOUSE_OUT].forEach(function(e){t._register(u.h(t.element,e,function(e){u.c.stop(e),u.G(t.element,"active")}))})},t.prototype.onClick=function(e){var t;u.c.stop(e,!0),c.j(this._context)?t=e:(t=this._context,c.g(t)&&(t.event=e)),this._actionRunner.run(this._action,t)},t.prototype.focus=function(){this.element&&(this.element.focus(),u.f(this.element,"focused"))},t.prototype.blur=function(){this.element&&(this.element.blur(),u.G(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&&(u.I(this.element),this.element=void 0),e.prototype.dispose.call(this)},t}(a.a),m=function(e){function t(n){var r=e.call(this,t.ID,n,n?"separator text":"separator")||this;return r.checked=!1,r.radio=!1,r.enabled=!1,r}return f(t,e),t.ID="vs.actions.separator",t}(s.a),y=function(e){function t(t,n,r){void 0===r&&(r={});var i=e.call(this,t,n,r)||this;return i.options=r,i.options.icon=void 0!==r.icon&&r.icon,i.options.label=void 0===r.label||r.label,i.cssClass="",i}return f(t,e),t.prototype.render=function(t){e.prototype.render.call(this,t),this.element&&(this.label=u.m(this.element,u.a("a.action-label"))),this._action.id===m.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&&(u.m(this.element,u.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.focus()},t.prototype.updateLabel=function(){this.options.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=o.a({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",e,this.options.keybinding))),e&&(this.label.title=e)},t.prototype.updateClass=function(){this.cssClass&&u.H(this.label,this.cssClass),this.options.icon?(this.cssClass=this.getAction().class,u.f(this.label,"icon"),this.cssClass&&u.g(this.label,this.cssClass),this.updateEnabled()):u.G(this.label,"icon")},t.prototype.updateEnabled=function(){this.getAction().enabled?(this.label.removeAttribute("aria-disabled"),this.element&&u.G(this.element,"disabled"),u.G(this.label,"disabled"),this.label.tabIndex=0):(this.label.setAttribute("aria-disabled","true"),this.element&&u.f(this.element,"disabled"),u.f(this.label,"disabled"),u.J(this.label))},t.prototype.updateChecked=function(){this.getAction().checked?u.f(this.label,"checked"):u.G(this.label,"checked")},t}(g),v={orientation:0,context:null,triggerKeys:{keys:[3,10],keyDown:!1}},b=function(e){function t(t,n){void 0===n&&(n=v);var r,i,o=e.call(this)||this;switch(o._onDidBlur=o._register(new h.a),o._onDidCancel=o._register(new h.a),o._onDidRun=o._register(new h.a),o._onDidBeforeRun=o._register(new h.a),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.items=[],o.focusedItem=void 0,o.domNode=document.createElement("div"),o.domNode.className="monaco-action-bar",!1!==n.animated&&u.f(o.domNode,"animated"),o.options.orientation){case 0:r=15,i=17;break;case 1:r=17,i=15,o.domNode.className+=" reverse";break;case 2:r=16,i=18,o.domNode.className+=" vertical";break;case 3:r=18,i=16,o.domNode.className+=" vertical reverse"}return o._register(u.h(o.domNode,u.d.KEY_DOWN,function(e){var t=new d.a(e),n=!0;t.equals(r)?o.focusPrevious():t.equals(i)?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(u.h(o.domNode,u.d.KEY_UP,function(e){var t=new d.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(u.Q(o.domNode)),o._register(o.focusTracker.onDidBlur(function(){document.activeElement!==o.domNode&&u.C(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 f(t,e),Object.defineProperty(t.prototype,"onDidBlur",{get:function(){return this._onDidBlur.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onDidCancel",{get:function(){return this._onDidCancel.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onDidRun",{get:function(){return this._onDidRun.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onDidBeforeRun",{get:function(){return this._onDidBeforeRun.event},enumerable:!0,configurable:!0}),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=n.actionsList.children.length?(n.actionsList.appendChild(o),n.items.push(r)):(n.actionsList.insertBefore(o,n.actionsList.children[i]),n.items.splice(i,0,r),i++)})},t.prototype.clear=function(){this.items=Object(a.d)(this.items),u.n(this.actionsList)},t.prototype.isEmpty=function(){return 0===this.items.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&&void 0===this.focusedItem?(this.focusedItem=this.items.length-1,this.focusNext()):(void 0!==n&&(this.focusedItem=n),this.updateFocus())},t.prototype.focusNext=function(){void 0===this.focusedItem&&(this.focusedItem=this.items.length-1);var e,t=this.focusedItem;do{this.focusedItem=(this.focusedItem+1)%this.items.length,e=this.items[this.focusedItem]}while(this.focusedItem!==t&&!e.isEnabled());this.focusedItem!==t||e.isEnabled()||(this.focusedItem=void 0),this.updateFocus()},t.prototype.focusPrevious=function(){void 0===this.focusedItem&&(this.focusedItem=0);var e,t=this.focusedItem;do{this.focusedItem=this.focusedItem-1,this.focusedItem<0&&(this.focusedItem=this.items.length-1),e=this.items[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){void 0===this.focusedItem&&this.actionsList.focus();for(var t=0;t=n)break;var i=e.charCodeAt(t);if(110===i||114===i||87===i)return!0}}return!1}(this.searchString):this.searchString.indexOf("\n")>=0;var t=null;try{t=r.i(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:e,global:!0})}catch(e){return null}if(!t)return null;var n=!this.isRegex&&!e;return n&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(n=this.matchCase),new c(t,this.wordSeparators?Object(i.a)(this.wordSeparators):null,n?this.searchString:null)},e}();var c=function(){return function(e,t,n){this.regex=e,this.wordSeparators=t,this.simpleSearch=n}}();function l(e,t,n){if(!n)return new s.b(e,null);for(var r=[],i=0,o=t.length;i>0);t[i]>=e?r=i-1:t[i+1]>=e?(n=i,r=i):n=i+1}return n+1},e}(),h=function(){function e(){}return e.findMatches=function(e,t,n,r,i){var o=t.parseSearchRequest();return o?o.regex.multiline?this._doFindMatchesMultiline(e,n,new f(o.wordSeparators,o.regex),r,i):this._doFindMatchesLineByLine(e,n,o,r,i):[]},e._getMultilineMatchRange=function(e,t,n,r,i,o){var s,u,c=0;if(s=r?t+i+(c=r.findLineFeedCountBeforeOffset(i)):t+i,r){var l=r.findLineFeedCountBeforeOffset(i+o.length)-c;u=s+o.length+l}else u=s+o.length;var d=e.getPositionAt(s),h=e.getPositionAt(u);return new a.a(d.lineNumber,d.column,h.lineNumber,h.column)},e._doFindMatchesMultiline=function(e,t,n,r,i){var o,a=e.getOffsetAt(t.getStartPosition()),s=e.getValueInRange(t,1),u="\r\n"===e.getEOL()?new d(s):null,c=[],h=0;for(n.reset(0);o=n.next(s);)if(c[h++]=l(this._getMultilineMatchRange(e,a,s,u,o.index,o[0]),o,r),h>=i)return c;return c},e._doFindMatchesLineByLine=function(e,t,n,r,i){var o=[],a=0;if(t.startLineNumber===t.endLineNumber){var s=e.getLineContent(t.startLineNumber).substring(t.startColumn-1,t.endColumn-1);return a=this._findMatchesInLine(n,s,t.startLineNumber,t.startColumn-1,a,o,r,i),o}var u=e.getLineContent(t.startLineNumber).substring(t.startColumn-1);a=this._findMatchesInLine(n,u,t.startLineNumber,t.startColumn-1,a,o,r,i);for(var c=t.startLineNumber+1;c=c))return i;return i}var v,b=new f(e.wordSeparators,e.regex);b.reset(0);do{if((v=b.next(t))&&(o[i++]=l(new a.a(n,v.index+1+r,n,v.index+1+v[0].length+r),v,u),i>=c))return i}while(v);return i},e.findNextMatch=function(e,t,n,r){var i=t.parseSearchRequest();if(!i)return null;var o=new f(i.wordSeparators,i.regex);return i.regex.multiline?this._doFindNextMatchMultiline(e,n,o,r):this._doFindNextMatchLineByLine(e,n,o,r)},e._doFindNextMatchMultiline=function(e,t,n,r){var i=new o.a(t.lineNumber,1),s=e.getOffsetAt(i),u=e.getLineCount(),c=e.getValueInRange(new a.a(i.lineNumber,i.column,u,e.getLineMaxColumn(u)),1),h="\r\n"===e.getEOL()?new d(c):null;n.reset(t.column-1);var p=n.next(c);return p?l(this._getMultilineMatchRange(e,s,c,h,p.index,p[0]),p,r):1!==t.lineNumber||1!==t.column?this._doFindNextMatchMultiline(e,new o.a(1,1),n,r):null},e._doFindNextMatchLineByLine=function(e,t,n,r){var i=e.getLineCount(),o=t.lineNumber,a=e.getLineContent(o),s=this._findFirstMatchInLine(n,a,o,t.column,r);if(s)return s;for(var u=1;u<=i;u++){var c=(o+u-1)%i,l=e.getLineContent(c+1),d=this._findFirstMatchInLine(n,l,c+1,1,r);if(d)return d}return null},e._findFirstMatchInLine=function(e,t,n,r,i){e.reset(r-1);var o=e.next(t);return o?l(new a.a(n,o.index+1,n,o.index+1+o[0].length),o,i):null},e.findPreviousMatch=function(e,t,n,r){var i=t.parseSearchRequest();if(!i)return null;var o=new f(i.wordSeparators,i.regex);return i.regex.multiline?this._doFindPreviousMatchMultiline(e,n,o,r):this._doFindPreviousMatchLineByLine(e,n,o,r)},e._doFindPreviousMatchMultiline=function(e,t,n,r){var i=this._doFindMatchesMultiline(e,new a.a(1,1,t.lineNumber,t.column),n,r,9990);if(i.length>0)return i[i.length-1];var s=e.getLineCount();return t.lineNumber!==s||t.column!==e.getLineMaxColumn(s)?this._doFindPreviousMatchMultiline(e,new o.a(s,e.getLineMaxColumn(s)),n,r):null},e._doFindPreviousMatchLineByLine=function(e,t,n,r){var i=e.getLineCount(),o=t.lineNumber,a=e.getLineContent(o).substring(0,t.column-1),s=this._findLastMatchInLine(n,a,o,r);if(s)return s;for(var u=1;u<=i;u++){var c=(i+o-u-1)%i,l=e.getLineContent(c+1),d=this._findLastMatchInLine(n,l,c+1,r);if(d)return d}return null},e._findLastMatchInLine=function(e,t,n,r){var i,o=null;for(e.reset(0);i=e.next(t);)o=l(new a.a(n,i.index+1,n,i.index+1+i[0].length),i,r);return o},e}();function p(e,t,n,r,i){return function(e,t,n,r,i){if(0===r)return!0;var o=t.charCodeAt(r-1);if(0!==e.get(o))return!0;if(13===o||10===o)return!0;if(i>0){var a=t.charCodeAt(r);if(0!==e.get(a))return!0}return!1}(e,t,0,r,i)&&function(e,t,n,r,i){if(r+i===n)return!0;var o=t.charCodeAt(r+i);if(0!==e.get(o))return!0;if(13===o||10===o)return!0;if(i>0){var a=t.charCodeAt(r+i-1);if(0!==e.get(a))return!0}return!1}(e,t,n,r,i)}var f=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)))return null;var r=t.index,i=t[0].length;if(r===this._prevMatchStartIndex&&i===this._prevMatchLength)return null;if(this._prevMatchStartIndex=r,this._prevMatchLength=i,!this._wordSeparators||p(this._wordSeparators,e,n,r,i))return t}while(t);return null},e}()},function(e,t,n){"use strict";n.r(t);var r=n(1),i=n(24),o=n(5),a=n(45),s=n(19),u=n(11),c=n(4),l=function(){function e(){}return e._columnSelect=function(e,t,n,r,i,o){for(var a=Math.abs(i-n)+1,l=n>i,d=r>o,h=ro)continue;if(br)continue;if(v1&&i--,this.columnSelect(e,t,n.selection,r,i)},e.columnSelectRight=function(e,t,n,r,i){for(var o=0,a=Math.min(n.position.lineNumber,r),c=Math.max(n.position.lineNumber,r),l=a;l<=c;l++){var d=t.getLineMaxColumn(l),h=s.a.visibleColumnFromColumn2(e,t,new u.a(l,d));o=Math.max(o,h)}return it.getLineCount()&&(i=t.getLineCount()),this.columnSelect(e,t,n.selection,i,o)},e}(),d=n(240),h=n(87),p=n(126),f=n(46),g=n(8),m=n(13);n.d(t,"CoreEditorCommand",function(){return N}),n.d(t,"EditorScroll_",function(){return v}),n.d(t,"RevealLine_",function(){return b}),n.d(t,"CoreNavigationCommands",function(){return w}),n.d(t,"CoreEditingCommands",function(){return S});var y,v,b,_,w,S,C,I,M=(y=function(e,t){return(y=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)},function(e,t){function n(){this.constructor=e}y(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),x=0,N=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return M(t,e),t.prototype.runEditorCommand=function(e,t,n){var r=t._getCursors();r&&this.runCoreEditorCommand(r,n||{})},t}(o.c);function E(e){e.register()}!function(e){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:function(e){if(!i.g(e))return!1;var t=e;return!(!i.h(t.to)||!i.i(t.by)&&!i.h(t.by)||!i.i(t.value)&&!i.f(t.value)||!i.i(t.revealCursor)&&!i.c(t.revealCursor))},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=function(t){var n,r;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:r=1;break;case e.RawUnit.WrappedLine:r=2;break;case e.RawUnit.Page:r=3;break;case e.RawUnit.HalfPage:r=4;break;default:r=2}return{direction:n,unit:r,value:Math.floor(t.value||1),revealCursor:!!t.revealCursor,select:!!t.select}}}(v||(v={})),(_=b||(b={})).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:function(e){if(!i.g(e))return!1;var t=e;return!(!i.f(t.lineNumber)||!i.i(t.at)&&!i.h(t.at))},schema:{type:"object",required:["lineNumber"],properties:{lineNumber:{type:"number"},at:{type:"string",enum:["top","center","bottom"]}}}}]},_.RawAtArgument={Top:"top",Center:"center",Bottom:"bottom"},function(e){var t=function(e){function t(t){var n=e.call(this,t)||this;return n._inSelectionMode=t.inSelectionMode,n}return M(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,[h.b.moveTo(e.context,e.getPrimaryCursor(),this._inSelectionMode,t.position,t.viewPosition)]),e.reveal(!0,0,0)},t}(N);e.MoveTo=Object(o.g)(new t({id:"_moveTo",inSelectionMode:!1,precondition:null})),e.MoveToSelect=Object(o.g)(new t({id:"_moveToSelect",inSelectionMode:!0,precondition:null}));var n=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return M(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 s.d.fromViewState(e)})),e.setColumnSelectData({toViewLineNumber:n.toLineNumber,toViewVisualColumn:n.toVisualColumn}),e.reveal(!0,n.reversed?1:2,0)},t}(N);e.ColumnSelect=Object(o.g)(new(function(e){function t(){return e.call(this,{id:"columnSelect",precondition:null})||this}return M(t,e),t.prototype._getColumnSelectResult=function(e,t,n,r){var i,o=e.model.validatePosition(r.position);return i=r.viewPosition?e.validateViewPosition(new u.a(r.viewPosition.lineNumber,r.viewPosition.column),o):e.convertModelPositionToViewPosition(o),l.columnSelect(e.config,e.viewModel,t.viewState.selection,i.lineNumber,r.mouseColumn-1)},t}(n))),e.CursorColumnSelectLeft=Object(o.g)(new(function(e){function t(){return e.call(this,{id:"cursorColumnSelectLeft",precondition:null,kbOpts:{weight:x,kbExpr:g.a.textInputFocus,primary:3599,linux:{primary:0}}})||this}return M(t,e),t.prototype._getColumnSelectResult=function(e,t,n,r){return l.columnSelectLeft(e.config,e.viewModel,t.viewState,n.toViewLineNumber,n.toViewVisualColumn)},t}(n))),e.CursorColumnSelectRight=Object(o.g)(new(function(e){function t(){return e.call(this,{id:"cursorColumnSelectRight",precondition:null,kbOpts:{weight:x,kbExpr:g.a.textInputFocus,primary:3601,linux:{primary:0}}})||this}return M(t,e),t.prototype._getColumnSelectResult=function(e,t,n,r){return l.columnSelectRight(e.config,e.viewModel,t.viewState,n.toViewLineNumber,n.toViewVisualColumn)},t}(n)));var r=function(e){function t(t){var n=e.call(this,t)||this;return n._isPaged=t.isPaged,n}return M(t,e),t.prototype._getColumnSelectResult=function(e,t,n,r){return l.columnSelectUp(e.config,e.viewModel,t.viewState,this._isPaged,n.toViewLineNumber,n.toViewVisualColumn)},t}(n);e.CursorColumnSelectUp=Object(o.g)(new r({isPaged:!1,id:"cursorColumnSelectUp",precondition:null,kbOpts:{weight:x,kbExpr:g.a.textInputFocus,primary:3600,linux:{primary:0}}})),e.CursorColumnSelectPageUp=Object(o.g)(new r({isPaged:!0,id:"cursorColumnSelectPageUp",precondition:null,kbOpts:{weight:x,kbExpr:g.a.textInputFocus,primary:3595,linux:{primary:0}}}));var i=function(e){function t(t){var n=e.call(this,t)||this;return n._isPaged=t.isPaged,n}return M(t,e),t.prototype._getColumnSelectResult=function(e,t,n,r){return l.columnSelectDown(e.config,e.viewModel,t.viewState,this._isPaged,n.toViewLineNumber,n.toViewVisualColumn)},t}(n);e.CursorColumnSelectDown=Object(o.g)(new i({isPaged:!1,id:"cursorColumnSelectDown",precondition:null,kbOpts:{weight:x,kbExpr:g.a.textInputFocus,primary:3602,linux:{primary:0}}})),e.CursorColumnSelectPageDown=Object(o.g)(new i({isPaged:!0,id:"cursorColumnSelectPageDown",precondition:null,kbOpts:{weight:x,kbExpr:g.a.textInputFocus,primary:3596,linux:{primary:0}}}));var a=function(e){function t(){return e.call(this,{id:"cursorMove",precondition:null,description:h.a.description})||this}return M(t,e),t.prototype.runCoreEditorCommand=function(e,t){var n=h.a.parse(t);n&&this._runCursorMove(e,t.source,n)},t.prototype._runCursorMove=function(e,t,n){e.context.model.pushStackElement(),e.setStates(t,3,h.b.move(e.context,e.getAll(),n)),e.reveal(!0,0,0)},t}(N);e.CursorMoveImpl=a,e.CursorMove=Object(o.g)(new a);var d=function(t){function n(e){var n=t.call(this,e)||this;return n._staticArgs=e.args,n}return M(n,t),n.prototype.runCoreEditorCommand=function(t,n){var r=this._staticArgs;-1===this._staticArgs.value&&(r={direction:this._staticArgs.direction,unit:this._staticArgs.unit,select:this._staticArgs.select,value:t.context.config.pageSize}),e.CursorMove._runCursorMove(t,n.source,r)},n}(N);e.CursorLeft=Object(o.g)(new d({args:{direction:0,unit:0,select:!1,value:1},id:"cursorLeft",precondition:null,kbOpts:{weight:x,kbExpr:g.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:null,kbOpts:{weight:x,kbExpr:g.a.textInputFocus,primary:1039}})),e.CursorRight=Object(o.g)(new d({args:{direction:1,unit:0,select:!1,value:1},id:"cursorRight",precondition:null,kbOpts:{weight:x,kbExpr:g.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:null,kbOpts:{weight:x,kbExpr:g.a.textInputFocus,primary:1041}})),e.CursorUp=Object(o.g)(new d({args:{direction:2,unit:2,select:!1,value:1},id:"cursorUp",precondition:null,kbOpts:{weight:x,kbExpr:g.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:null,kbOpts:{weight:x,kbExpr:g.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:null,kbOpts:{weight:x,kbExpr:g.a.textInputFocus,primary:11}})),e.CursorPageUpSelect=Object(o.g)(new d({args:{direction:2,unit:2,select:!0,value:-1},id:"cursorPageUpSelect",precondition:null,kbOpts:{weight:x,kbExpr:g.a.textInputFocus,primary:1035}})),e.CursorDown=Object(o.g)(new d({args:{direction:3,unit:2,select:!1,value:1},id:"cursorDown",precondition:null,kbOpts:{weight:x,kbExpr:g.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:null,kbOpts:{weight:x,kbExpr:g.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:null,kbOpts:{weight:x,kbExpr:g.a.textInputFocus,primary:12}})),e.CursorPageDownSelect=Object(o.g)(new d({args:{direction:3,unit:2,select:!0,value:-1},id:"cursorPageDownSelect",precondition:null,kbOpts:{weight:x,kbExpr:g.a.textInputFocus,primary:1036}})),e.CreateCursor=Object(o.g)(new(function(e){function t(){return e.call(this,{id:"createCursor",precondition:null})||this}return M(t,e),t.prototype.runCoreEditorCommand=function(e,t){var n,r=e.context;n=t.wholeLine?h.b.line(r,e.getPrimaryCursor(),!1,t.position,t.viewPosition):h.b.moveTo(r,e.getPrimaryCursor(),!1,t.position,t.viewPosition);var i=e.getAll();if(i.length>1)for(var o=n.modelState?n.modelState.position:null,a=n.viewState?n.viewState.position:null,s=0,u=i.length;si&&(r=i);var o=new c.a(r,1,r,e.context.model.getLineMaxColumn(r)),a=0;if(n.at)switch(n.at){case b.RawAtArgument.Top:a=3;break;case b.RawAtArgument.Center:a=1;break;case b.RawAtArgument.Bottom:a=4}var s=e.context.convertModelRangeToViewRange(o);e.revealRange(!1,s,a,0)},t}(N))),e.SelectAll=Object(o.g)(new(function(e){function t(){return e.call(this,{id:"selectAll",precondition:null})||this}return M(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,[h.b.selectAll(e.context,e.getPrimaryCursor())])},t}(N))),e.SetSelection=Object(o.g)(new(function(e){function t(){return e.call(this,{id:"setSelection",precondition:null})||this}return M(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,[s.d.fromModelSelection(t.selection)])},t}(N)))}(w||(w={})),C=S||(S={}),I=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return M(t,e),t.prototype.runEditorCommand=function(e,t,n){var r=t._getCursors();r&&this.runCoreEditingCommand(t,r,n||{})},t}(o.c),C.CoreEditingCommand=I,C.LineBreakInsert=Object(o.g)(new(function(e){function t(){return e.call(this,{id:"lineBreakInsert",precondition:g.a.writable,kbOpts:{weight:x,kbExpr:g.a.textInputFocus,primary:0,mac:{primary:301}}})||this}return M(t,e),t.prototype.runCoreEditingCommand=function(e,t,n){e.pushUndoStop(),e.executeCommands(this.id,p.a.lineBreakInsert(t.context.config,t.context.model,t.getAll().map(function(e){return e.modelState.selection})))},t}(I))),C.Outdent=Object(o.g)(new(function(e){function t(){return e.call(this,{id:"outdent",precondition:g.a.writable,kbOpts:{weight:x,kbExpr:m.d.and(g.a.editorTextFocus,g.a.tabDoesNotMoveFocus),primary:1026}})||this}return M(t,e),t.prototype.runCoreEditingCommand=function(e,t,n){e.pushUndoStop(),e.executeCommands(this.id,p.a.outdent(t.context.config,t.context.model,t.getAll().map(function(e){return e.modelState.selection}))),e.pushUndoStop()},t}(I))),C.Tab=Object(o.g)(new(function(e){function t(){return e.call(this,{id:"tab",precondition:g.a.writable,kbOpts:{weight:x,kbExpr:m.d.and(g.a.editorTextFocus,g.a.tabDoesNotMoveFocus),primary:2}})||this}return M(t,e),t.prototype.runCoreEditingCommand=function(e,t,n){e.pushUndoStop(),e.executeCommands(this.id,p.a.tab(t.context.config,t.context.model,t.getAll().map(function(e){return e.modelState.selection}))),e.pushUndoStop()},t}(I))),C.DeleteLeft=Object(o.g)(new(function(e){function t(){return e.call(this,{id:"deleteLeft",precondition:g.a.writable,kbOpts:{weight:x,kbExpr:g.a.textInputFocus,primary:1,secondary:[1025],mac:{primary:1,secondary:[1025,294,257]}}})||this}return M(t,e),t.prototype.runCoreEditingCommand=function(e,t,n){var r=d.a.deleteLeft(t.getPrevEditOperationType(),t.context.config,t.context.model,t.getAll().map(function(e){return e.modelState.selection})),i=r[0],o=r[1];i&&e.pushUndoStop(),e.executeCommands(this.id,o),t.setPrevEditOperationType(2)},t}(I))),C.DeleteRight=Object(o.g)(new(function(e){function t(){return e.call(this,{id:"deleteRight",precondition:g.a.writable,kbOpts:{weight:x,kbExpr:g.a.textInputFocus,primary:20,mac:{primary:20,secondary:[290,276]}}})||this}return M(t,e),t.prototype.runCoreEditingCommand=function(e,t,n){var r=d.a.deleteRight(t.getPrevEditOperationType(),t.context.config,t.context.model,t.getAll().map(function(e){return e.modelState.selection})),i=r[0],o=r[1];i&&e.pushUndoStop(),e.executeCommands(this.id,o),t.setPrevEditOperationType(3)},t}(I)));var L=function(e){function t(t){var n=e.call(this,t)||this;return n._editorHandler=t.editorHandler,n._inputHandler=t.inputHandler,n}return M(t,e),t.prototype.runCommand=function(e,t){var n=e.get(a.a).getFocusedCodeEditor();if(n&&n.hasTextFocus())return this._runEditorHandler(e,n,t);var r=document.activeElement;if(!(r&&["input","textarea"].indexOf(r.tagName.toLowerCase())>=0)){var i=e.get(a.a).getActiveCodeEditor();return i?(i.focus(),this._runEditorHandler(e,i,t)):void 0}document.execCommand(this._inputHandler)},t.prototype._runEditorHandler=function(e,t,n){var r=this._editorHandler;"string"==typeof r?t.trigger("keyboard",r,n):((n=n||{}).source="keyboard",r.runEditorCommand(e,t,n))},t}(o.a),T=function(e){function t(t,n,r){var i=e.call(this,{id:t,precondition:null,description:r})||this;return i._handlerId=n,i}return M(t,e),t.prototype.runCommand=function(e,t){var n=e.get(a.a).getFocusedCodeEditor();n&&n.trigger("keyboard",this._handlerId,t)},t}(o.a);function k(e,t){E(new T("default:"+e,e)),E(new T(e,e,t))}E(new L({editorHandler:w.SelectAll,inputHandler:"selectAll",id:"editor.action.selectAll",precondition:g.a.textInputFocus,kbOpts:{weight:x,kbExpr:null,primary:2079},menubarOpts:{menuId:22,group:"1_basic",title:r.a({key:"miSelectAll",comment:["&& denotes a mnemonic"]},"&&Select All"),order:1}})),E(new L({editorHandler:f.b.Undo,inputHandler:"undo",id:f.b.Undo,precondition:g.a.writable,kbOpts:{weight:x,kbExpr:g.a.textInputFocus,primary:2104},menubarOpts:{menuId:14,group:"1_do",title:r.a({key:"miUndo",comment:["&& denotes a mnemonic"]},"&&Undo"),order:1}})),E(new T("default:"+f.b.Undo,f.b.Undo)),E(new L({editorHandler:f.b.Redo,inputHandler:"redo",id:f.b.Redo,precondition:g.a.writable,kbOpts:{weight:x,kbExpr:g.a.textInputFocus,primary:2103,secondary:[3128],mac:{primary:3128}},menubarOpts:{menuId:14,group:"1_do",title:r.a({key:"miRedo",comment:["&& denotes a mnemonic"]},"&&Redo"),order:2}})),E(new T("default:"+f.b.Redo,f.b.Redo)),k(f.b.Type,{description:"Type",args:[{name:"args",schema:{type:"object",required:["text"],properties:{text:{type:"string"}}}}]}),k(f.b.ReplacePreviousChar),k(f.b.CompositionStart),k(f.b.CompositionEnd),k(f.b.Paste),k(f.b.Cut)},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=Object.prototype,i=r.toString,o=r.hasOwnProperty,a=new Map;function s(e,t){try{return function e(t,n){if(t===n)return!0;var r=i.call(t);var a=i.call(n);if(r!==a)return!1;switch(r){case"[object Array]":if(t.length!==n.length)return!1;case"[object Object]":if(u(t,n))return!0;var s=Object.keys(t),c=Object.keys(n),l=s.length;if(l!==c.length)return!1;for(var d=0;d=t.end||t.start>=e.end)return{start:0,end:0};var n=Math.max(e.start,t.start),r=Math.min(e.end,t.end);return r-n<=0?{start:0,end:0}:{start:n,end:r}}function n(e){return e.end-e.start<=0}e.intersect=t,e.isEmpty=n,e.intersects=function(e,r){return!n(t(e,r))},e.relativeComplement=function(e,t){var r=[],i={start:e.start,end:Math.min(t.start,e.end)},o={start:Math.max(t.end,e.start),end:e.end};return n(i)||r.push(i),n(o)||r.push(o),r}}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(23),i=Object(r.c)("modeService")},function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return o});var r=n(122),i=function(){function e(t){var n=Object(r.d)(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(r.d)(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 i(0)}return e.prototype.add=function(e){this._actual.set(e,1)},e.prototype.has=function(e){return 1===this._actual.get(e)},e}()},function(e,t){var n="function"==typeof Symbol&&Symbol.iterator,r=n||"@@iterator";function i(e){return!!s(e)}function o(e){var t=null!=e&&e.length;return"number"==typeof t&&t>=0&&t%1==0}function a(e){var t=s(e);if(t)return t.call(e)}function s(e){if(null!=e){var t=n&&e[n]||e["@@iterator"];if("function"==typeof t)return t}}function u(e){if(null!=e){var t=a(e);if(t)return t;if(o(e))return new c(e)}}function c(e){this._o=e,this._i=0}t.$$iterator=r,t.isIterable=i,t.isArrayLike=o,t.isCollection=function(e){return Object(e)===e&&(o(e)||i(e))},t.getIterator=a,t.getIteratorMethod=s,t.createIterator=u,c.prototype[r]=function(){return this},c.prototype.next=function(){return void 0===this._o||this._i>=this._o.length?(this._o=void 0,{value:void 0,done:!0}):{value:this._o[this._i++],done:!1}},t.forEach=function(e,t,n){if(null!=e){if("function"==typeof e.forEach)return e.forEach(t,n);var r=0,i=a(e);if(i){for(var s;!(s=i.next()).done;)if(t.call(n,s.value,r++,e),r>9999999)throw new TypeError("Near-infinite iteration.")}else if(o(e))for(;r=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,r,o,a){1===i.a&&this._assertNoCtrlAlt(e.parts[0],t),this._coreKeybindings.push({keybinding:e,command:t,commandArgs:n,when:a,weight1:r,weight2:o}),this._cachedMergedKeybindings=null},e.prototype.getDefaultKeybindings=function(){return this._cachedMergedKeybindings||(this._cachedMergedKeybindings=[].concat(this._coreKeybindings).concat(this._extensionKeybindings),this._cachedMergedKeybindings.sort(u)),this._cachedMergedKeybindings.slice(0)},e}());function u(e,t){return e.weight1!==t.weight1?e.weight1-t.weight1:e.commandt.command?1:e.weight2-t.weight2}a.a.add("platform.keybindingsRegistry",s)},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(12),i=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 r=t<<1,i=r+(n<<1),o=r;o0?this._tokens[e-1<<1]:0},e.prototype.getLanguageId=function(e){var t=this._tokens[1+(e<<1)];return r.x.getLanguageId(t)},e.prototype.getStandardTokenType=function(e){var t=this._tokens[1+(e<<1)];return r.x.getTokenType(t)},e.prototype.getForeground=function(e){var t=this._tokens[1+(e<<1)];return r.x.getForeground(t)},e.prototype.getClassName=function(e){var t=this._tokens[1+(e<<1)];return r.x.getClassNameFromMetadata(t)},e.prototype.getInlineStyle=function(e,t){var n=this._tokens[1+(e<<1)];return r.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)-1,r=0;r>>1)-1;nt&&(r=i)}return n},e}(),o=function(){function e(e,t,n,r){this._source=e,this._startOffset=t,this._endOffset=n,this._deltaOffset=r,this._firstTokenIndex=e.findTokenIndexAtOffset(t),this._tokensCount=0;for(var i=this._firstTokenIndex,o=e.getCount();i=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}()},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return i}),n.d(t,"c",function(){return o});var r=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}(),i=function(){return function(e,t){this.tokens=e,this.endState=t}}(),o=function(){return function(e,t){this.tokens=e,this.endState=t}}()},function(e,t,n){"use strict";var r=n(2),i=n(105),o=n(85),a=n(15),s=n(7),u=n(36),c=n(9),l=(n(1208),n(45)),d=n(212),h=(n(1248),n(174)),p=n(210),f=n(6),g=n(4),m=n(29),y=new a.a(new a.c(0,122,204)),v={showArrow:!0,showFrame:!0,className:"",frameColor:y,arrowColor:y,keepEditorSelection:!1},b=function(){function e(e,t,n,r,i,o){this.domNode=e,this.afterLineNumber=t,this.afterColumn=n,this.heightInLines=r,this._onDomNodeTop=i,this._onComputedHeight=o}return e.prototype.onDomNodeTop=function(e){this._onDomNodeTop(e)},e.prototype.onComputedHeight=function(e){this._onComputedHeight(e)},e}(),_=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}(),w=function(){function e(t){this._editor=t,this._ruleName=e._IdGenerator.nextId(),this._decorations=[]}return e.prototype.dispose=function(){this.hide(),r.F(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(){r.F(this._ruleName),r.p(".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:g.a.fromPositions(e),options:{className:this._ruleName,stickiness:1}}])},e.prototype.hide=function(){this._editor.deltaDecorations(this._decorations,[])},e._IdGenerator=new p.a(".arrow-decoration-"),e}(),S=function(){function e(e,t){var n=this;void 0===t&&(t={}),this._positionMarkerId=[],this._disposables=[],this._isShowing=!1,this.editor=e,this.options=u.c(t),u.g(this.options,v,!1),this.domNode=document.createElement("div"),this.options.isAccessible||(this.domNode.setAttribute("aria-hidden","true"),this.domNode.setAttribute("role","presentation")),this._disposables.push(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;Object(f.d)(this._disposables),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=[]},e.prototype.create=function(){r.f(this.domNode,"zone-widget"),this.options.className&&r.f(this.domNode,this.options.className),this.container=document.createElement("div"),r.f(this.container,"zone-widget-container"),this.domNode.appendChild(this.container),this.options.showArrow&&(this._arrow=new w(this.editor),this._disposables.push(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){this.domNode.style.height=e+"px";var t=e-this._decoratingElementsHeight();this.container.style.height=t+"px";var n=this.editor.getLayoutInfo();this._doLayout(t,this._getWidth(n)),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=g.a.isIRange(e)?e:new g.a(e.lineNumber,e.column,e.lineNumber,e.column);this._isShowing=!0,this._showImpl(n,t),this._isShowing=!1,this._positionMarkerId=this.editor.deltaDecorations(this._positionMarkerId,[{range:n,options:m.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.getConfiguration().lineHeight,t=0;this.options.showArrow&&(t+=2*Math.round(e/3));this.options.showFrame&&(t+=2*Math.round(e/9));return t},e.prototype._showImpl=function(e,t){var n=this,r={lineNumber:e.startLineNumber,column:e.startColumn},i=this.editor.getLayoutInfo(),o=this._getWidth(i);this.domNode.style.width=o+"px",this.domNode.style.left=this._getLeft(i)+"px";var a=document.createElement("div");a.style.overflow="hidden";var s=this.editor.getConfiguration().lineHeight,u=this.editor.getLayoutInfo().height/s*.8;t>=u&&(t=u);var c=0,l=0;if(this.options.showArrow&&(c=Math.round(s/3),this._arrow.height=c,this._arrow.show(r)),this.options.showFrame&&(l=Math.round(s/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 b(a,r.lineNumber,r.column,t,function(e){return n._onViewZoneTop(e)},function(e){return n._onViewZoneHeight(e)}),n._viewZone.id=e.addZone(n._viewZone),n._overlayWidget=new _("vs.editor.contrib.zoneWidget"+n._viewZone.id,n.domNode),n.editor.addOverlayWidget(n._overlayWidget)}),this.options.showFrame){var d=this.options.frameWidth?this.options.frameWidth:l;this.container.style.borderTopWidth=d+"px",this.container.style.borderBottomWidth=d+"px"}var h=t*s-this._decoratingElementsHeight();this.container.style.top=c+"px",this.container.style.height=h+"px",this.container.style.overflow="hidden",this._doLayout(h,o),this.options.keepEditorSelection||this.editor.setSelection(e);var p=this.editor.getModel();if(p){var f=Math.min(p.getLineCount(),Math.max(1,e.endLineNumber+1));this.revealLine(f)}},e.prototype.revealLine=function(e){this.editor.revealLine(e,0)},e.prototype.setCssClass=function(e,t){t&&this.container.classList.remove(t),r.f(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=new h.a(this.domNode,this,{orientation:1}),this.options.isResizeable||(this._resizeSash.hide(),this._resizeSash.state=0),this._disposables.push(this._resizeSash.onDidStart(function(n){t._viewZone&&(e={startY:n.startY,heightInLines:t._viewZone.heightInLines})})),this._disposables.push(this._resizeSash.onDidEnd(function(){e=void 0})),this._disposables.push(this._resizeSash.onDidChange(function(n){if(e){var r=(n.currentY-e.startY)/t.editor.getConfiguration().lineHeight,i=r<0?Math.ceil(r):Math.floor(r),o=e.heightInLines+i;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}(),C=n(1),I=n(13),M=n(23),x=n(211);n.d(t,"a",function(){return k}),n.d(t,"b",function(){return E}),n.d(t,"d",function(){return D}),n.d(t,"c",function(){return A});var N,E,L,T=(N=function(e,t){return(N=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)},function(e,t){function n(){this.constructor=e}N(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),k=Object(M.c)("IPeekViewService");function D(e){var t=e.get(l.a).getFocusedCodeEditor();return t instanceof d.a?t.getParentEditor():t}Object(x.a)(k,function(){function e(){this._widgets=new Map}return e.prototype.addExclusiveWidget=function(e,t){var n=this,r=this._widgets.get(e);r&&(r.listener.dispose(),r.widget.dispose());this._widgets.set(e,{widget:t,listener:t.onDidClose(function(){var r=n._widgets.get(e);r&&r.widget===t&&(r.listener.dispose(),n._widgets.delete(e))})})},e}()),(L=E||(E={})).inPeekEditor=new I.f("inReferenceSearchEditor",!0),L.notInPeekEditor=L.inPeekEditor.toNegated();var O={headerBackgroundColor:a.a.white,primaryHeadingColor:a.a.fromHex("#333333"),secondaryHeadingColor:a.a.fromHex("#6c6c6cb3")},A=function(e){function t(t,n){void 0===n&&(n={});var r=e.call(this,t,n)||this;return r._onDidClose=new s.a,u.g(r.options,O,!1),r}return T(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._onDidClose.fire(this)},Object.defineProperty(t.prototype,"onDidClose",{get:function(){return this._onDidClose.event},enumerable:!0,configurable:!0}),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=r.a(".head"),this._bodyElement=r.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=r.a(".peekview-title");r.m(this._headElement,n),r.k(n,"click",function(e){return t._onTitleClick(e)}),this._headingIcon=r.a("span"),this._primaryHeading=r.a("span.filename"),this._secondaryHeading=r.a("span.dirname"),this._metaHeading=r.a("span.meta"),r.m(n,this._headingIcon,this._primaryHeading,this._secondaryHeading,this._metaHeading);var a=r.a(".peekview-actions");r.m(this._headElement,a);var s=this._getActionBarOptions();this._actionbarWidget=new i.a(a,s),this._disposables.push(this._actionbarWidget),this._actionbarWidget.push(new o.a("peekview.close",C.a("label.close","Close"),"close-peekview-action",!0,function(){return t.dispose(),Promise.resolve()}),{label:!1,icon:!0})},t.prototype._getActionBarOptions=function(){return{}},t.prototype._onTitleClick=function(e){},t.prototype.setTitleIcon=function(e){this._headingIcon.className=e?"icon "+e:""},t.prototype.setTitle=function(e,t){this._primaryHeading.innerHTML=c.m(e),this._primaryHeading.setAttribute("aria-label",e),t?this._secondaryHeading.innerHTML=c.m(t):r.n(this._secondaryHeading)},t.prototype.setMetaTitle=function(e){e?this._metaHeading.innerHTML=c.m(e):r.n(this._metaHeading)},t.prototype._doLayout=function(e,t){if(!this._isShowing&&e<0)this.dispose();else{var n=Math.ceil(1.2*this.editor.getConfiguration().lineHeight),r=e-(n+2);this._doLayoutHead(n,t),this._doLayoutBody(r,t)}},t.prototype._doLayoutHead=function(e,t){this._headElement.style.height=e+"px",this._headElement.style.lineHeight=this._headElement.style.height},t.prototype._doLayoutBody=function(e,t){this._bodyElement.style.height=e+"px"},t}(S)},function(e,t,n){"use strict";function r(e,t,n){var r=null,i=null;if("function"==typeof n.value?(r="value",0!==(i=n.value).length&&console.warn("Memoize should only be used in functions with zero parameters")):"function"==typeof n.get&&(r="get",i=n.get),!i)throw new Error("not supported");var o="$memoize$"+t;n[r]=function(){for(var e=[],t=0;t, 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 r=this.value.substring(e,this.selectionEnd);return this._finishDeduceEditorPosition(this.selectionEndPosition,r,-1)},e.prototype._finishDeduceEditorPosition=function(e,t,n){for(var r=0,i=-1;-1!==(i=t.indexOf("\n",i+1));)r++;return[e,n*t.length,r]},e.selectedText=function(t){return new e(t,0,t.length,null,null)},e.deduceInput=function(e,t,n,i){if(!e)return{text:"",replaceCharCnt:0};var o=e.value,a=e.selectionStart,s=e.selectionEnd,u=t.value,c=t.selectionStart,l=t.selectionEnd;i&&o.length>0&&a===s&&c===l&&!r.G(u,o)&&r.k(u,o)&&(a=0,s=0);var d=o.substring(s),h=u.substring(l),p=r.c(d,h);u=u.substring(0,u.length-p);var f=(o=o.substring(0,o.length-p)).substring(0,a),g=u.substring(0,c),m=r.b(f,g);if(u=u.substring(m),o=o.substring(m),c-=m,a-=m,l-=m,s-=m,n&&c===l&&o.length>0){var y=null;if(c===u.length?r.G(u,o)&&(y=u.substring(o.length)):r.k(u,o)&&(y=u.substring(0,u.length-o.length)),null!==y&&y.length>0&&(/\uFE0F/.test(y)||r.e(y)))return{text:y,replaceCharCnt:0}}return c===l?o===u&&0===a&&s===o.length&&c===u.length&&-1===u.indexOf("\n")&&r.f(u)?{text:"",replaceCharCnt:0}:{text:u,replaceCharCnt:f.length-m}:{text:u,replaceCharCnt:s-a}},e.EMPTY=new e("",0,0,null,null),e}(),s=function(){function e(){}return e._getPageOfLine=function(t){return Math.floor((t-1)/e._LINES_PER_PAGE)},e._getRangeForPage=function(t){var n=t*e._LINES_PER_PAGE,r=n+1,i=n+e._LINES_PER_PAGE;return new o.a(r,1,i+1,1)},e.fromEditorSelection=function(t,n,r,s){var u,c=e._getPageOfLine(r.startLineNumber),l=e._getRangeForPage(c),d=e._getPageOfLine(r.endLineNumber),h=e._getRangeForPage(d),p=l.intersectRanges(new o.a(1,1,r.startLineNumber,r.startColumn)),f=n.getValueInRange(p,1),g=n.getLineCount(),m=n.getLineMaxColumn(g),y=h.intersectRanges(new o.a(r.endLineNumber,r.endColumn,g,m)),v=n.getValueInRange(y,1);if(c===d||c+1===d)u=n.getValueInRange(r,1);else{var b=l.intersectRanges(r),_=h.intersectRanges(r);u=n.getValueInRange(b,1)+String.fromCharCode(8230)+n.getValueInRange(_,1)}if(s){f.length>500&&(f=f.substring(f.length-500,f.length)),v.length>500&&(v=v.substring(0,500)),u.length>1e3&&(u=u.substring(0,500)+String.fromCharCode(8230)+u.substring(u.length-500,u.length))}return new a(f+u+v,f.length,f.length+u.length,new i.a(r.startLineNumber,r.startColumn),new i.a(r.endLineNumber,r.endColumn))},e._LINES_PER_PAGE=10,e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"d",function(){return i}),n.d(t,"b",function(){return o}),n.d(t,"c",function(){return a});var r=function(){function e(e,t,n){for(var r=new Uint8Array(e*t),i=0,o=e*t;i255?255:0|e}function o(e){return e<0?0:e>4294967295?4294967295:0|e}function a(e){for(var t=e.length,n=new Uint32Array(t),r=0;r0&&e.getLanguageId(s-1)===o;)s--;return new i(e,o,s,a+1,e.getStartOffset(s),e.getEndOffset(a))}n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o});var i=function(){function e(e,t,n,r,i,o){this._actual=e,this.languageId=t,this._firstTokenIndex=n,this._lastTokenIndex=r,this.firstCharOffset=i,this._lastCharOffset=o}return e.prototype.getLineContent=function(){return this._actual.getLineContent().substring(this.firstCharOffset,this._lastCharOffset)},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)}},function(e,t,n){"use strict";function r(e,t,n){return Math.min(Math.max(e,t),n)}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";var r=n(14),i=n(9),o=n(54),a=n(167),s=n(4),u=n(25),c=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 s.a(this._range.startLineNumber,this._range.startColumn,this._range.startLineNumber,this._range.startColumn),this._charBeforeSelection),t.addTrackedEditOperation(new s.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(),r=n[0].range,i=n[1].range;return new u.a(r.endLineNumber,r.endColumn,i.endLineNumber,i.endColumn-this._charAfterSelection.length)},e}(),l=n(19),d=n(140),h=n(64),p=n(41);n.d(t,"a",function(){return f});var f=function(){function e(){}return e.indent=function(e,t,n){if(null===t||null===n)return[];for(var r=[],i=0,o=n.length;i1){var c=void 0;for(c=r-1;c>=1;c--){var l=n.getLineContent(c);if(i.y(l)>=0)break}if(c<1)return null;var d=n.getLineMaxColumn(c),f=p.a.getEnterAction(n,new s.a(c,d,c,d));f&&(a=f.indentation,(o=f.enterAction)&&(a+=o.appendText))}return o&&(o===h.a.Indent&&(a=e.shiftIndent(t,a)),o===h.a.Outdent&&(a=e.unshiftIndent(t,a)),a=t.normalizeIndentation(a)),a||null},e._replaceJumpToNextIndent=function(e,t,n,r){var i="",a=n.getStartPosition();if(e.insertSpaces)for(var s=l.a.visibleColumnFromColumn2(e,t,a),u=e.indentSize,c=u-s%u,d=0;d=0?a.setEndPosition(a.endLineNumber,Math.max(a.endColumn,L+1)):a.setEndPosition(a.endLineNumber,n.getLineMaxColumn(a.endLineNumber)),r)return new o.d(a,N+t.normalizeIndentation(S.afterEnter),!0);var T=0;return x<=L+1&&(t.insertSpaces||(M=Math.ceil(M/t.indentSize)),T=Math.min(M+1-t.normalizeIndentation(S.afterEnter).length-1,0)),new o.c(a,N+t.normalizeIndentation(S.afterEnter),0,T,!0)}return e._typeCommand(a,"\n"+t.normalizeIndentation(I),r)},e._isAutoIndentType=function(e,t,n){if(!e.autoIndent)return!1;for(var r=0,i=n.length;r1&&"always"!==s){var y=Object(d.a)(t.wordSeparators),v=m.charCodeAt(g.column-2);if(0===y.get(v))return!1}var b=m.charAt(g.column-1);if(b)if(!e._isBeforeClosingBrace(t,o,b)&&!u(b))return!1;if(!n.isCheapToTokenize(g.lineNumber))return!1;n.forceTokenization(g.lineNumber);var _=n.getLineTokens(g.lineNumber),w=!1;try{w=p.a.shouldAutoClosePair(o,_,g.column)}catch(e){Object(r.e)(e)}if(!w)return!1}return!0},e._runAutoClosingOpenCharType=function(e,t,n,r,i){for(var a=[],s=0,u=r.length;s2){var m=Object(d.a)(n.wordSeparators),y=h.charCodeAt(c.column-3);if(0===m.get(y))continue}var v=h.charAt(c.column-1);if(v){var b=e._isBeforeClosingBrace(n,f,v),_=Object(l.g)(f)?n.shouldAutoCloseBefore.quote:n.shouldAutoCloseBefore.bracket;if(b)continue;if(!_(v))continue}if(!i.isCheapToTokenize(c.lineNumber))continue;i.forceTokenization(c.lineNumber);var w=i.getLineTokens(c.lineNumber),S=!1;try{S=p.a.shouldAutoClosePair(f,w,c.column-1)}catch(e){Object(r.e)(e)}if(S){var C=n.autoClosingPairsOpen[f];s[u]=new o.c(a[u],C,0,-C.length)}}}return new l.e(1,s,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})},e.typeWithInterceptors=function(t,n,r,i,a){if("\n"===a){for(var s=[],u=0,c=i.length;u1){if("number"==typeof(o=e({path:"/"},r.defaults,o)).expires){var s=new Date;s.setMilliseconds(s.getMilliseconds()+864e5*o.expires),o.expires=s}o.expires=o.expires?o.expires.toUTCString():"";try{a=JSON.stringify(i),/^[\{\[]/.test(a)&&(i=a)}catch(e){}i=n.write?n.write(i,t):encodeURIComponent(String(i)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=(t=(t=encodeURIComponent(String(t))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape);var u="";for(var c in o)o[c]&&(u+="; "+c,!0!==o[c]&&(u+="="+o[c]));return document.cookie=t+"="+i+u}t||(a={});for(var l=document.cookie?document.cookie.split("; "):[],d=/(%[0-9A-Z]{2})+/g,h=0;h=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},m=function(e,t){return function(n,r){t(n,r,e)}},y=function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(a,s)}u((r=r.apply(e,t||[])).next())})},v=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]/?";var i=function(e){void 0===e&&(e="");for(var t="(-?\\d*\\.\\d\\w*)|([^",n=0,i=r;n=0||(t+="\\"+o)}return t+="\\s]+)",new RegExp(t,"g")}();function o(e){var t=i;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,r){t.lastIndex=0;var i=t.exec(n);if(!i)return null;var o=i[0].indexOf(" ")>=0?function(e,t,n,r){var i,o=e-1-r;for(t.lastIndex=0;i=t.exec(n);){var a=i.index||0;if(a>o)return null;if(t.lastIndex>=o)return{word:i[0],startColumn:r+1+a,endColumn:r+1+t.lastIndex}}return null}(e,t,n,r):function(e,t,n,r){var i,o=e-1-r,a=n.lastIndexOf(" ",o-1)+1;for(t.lastIndex=a;i=t.exec(n);){var s=i.index||0;if(s<=o&&t.lastIndex>=o)return{word:i[0],startColumn:r+1+s,endColumn:r+1+t.lastIndex}}return null}(e,t,n,r);return t.lastIndex=0,o}},function(e,t,n){"use strict";n.d(t,"a",function(){return l}),n.d(t,"b",function(){return d});var r,i=n(9),o=n(19),a=n(140),s=n(11),u=n(4),c=(r=function(e,t){return(r=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)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(){function e(){}return e._createWord=function(e,t,n,r,i){return{start:r,end:i,wordType:t,nextCharClass:n}},e._findPreviousWordOnLine=function(e,t,n){var r=t.getLineContent(n.lineNumber);return this._doFindPreviousWordOnLine(r,e,n)},e._doFindPreviousWordOnLine=function(e,t,n){for(var r=0,i=n.column-2;i>=0;i--){var o=e.charCodeAt(i),a=t.get(o);if(0===a){if(2===r)return this._createWord(e,r,a,i+1,this._findEndOfWord(e,t,r,i+1));r=1}else if(2===a){if(1===r)return this._createWord(e,r,a,i+1,this._findEndOfWord(e,t,r,i+1));r=2}else if(1===a&&0!==r)return this._createWord(e,r,a,i+1,this._findEndOfWord(e,t,r,i+1))}return 0!==r?this._createWord(e,r,1,0,this._findEndOfWord(e,t,r,0)):null},e._findEndOfWord=function(e,t,n,r){for(var i=e.length,o=r;o=0;i--){var o=e.charCodeAt(i),a=t.get(o);if(1===a)return i+1;if(1===n&&2===a)return i+1;if(2===n&&0===a)return i+1}return 0},e.moveWordLeft=function(t,n,r,i){var o=r.lineNumber,a=r.column,u=!1;1===a&&o>1&&(u=!0,o-=1,a=n.getLineMaxColumn(o));var c=e._findPreviousWordOnLine(t,n,new s.a(o,a));if(0===i){if(c&&!u)if(n.getLineLastNonWhitespaceColumn(o)1?new s.a(n-1,e.getLineMaxColumn(n-1)):t;for(var o=e.getLineContent(n),a=t.column-1;a>1;a--){var u=o.charCodeAt(a-2),c=o.charCodeAt(a-1);if(95!==u&&95===c)return new s.a(n,a);if(i.w(u)&&i.x(c))return new s.a(n,a);if(i.x(u)&&i.x(c)&&a+1=c.start+1&&(c=e._findNextWordOnLine(t,n,new s.a(o,c.end+1))),a=c?c.start+1:n.getLineMaxColumn(o)),new s.a(o,a)},e._moveWordPartRight=function(e,t){var n=t.lineNumber,r=e.getLineMaxColumn(n);if(t.column===r)return n1?l=1:(c--,l=n.getLineMaxColumn(c)):(h&&l<=h.end+1&&(h=e._findPreviousWordOnLine(t,n,new s.a(c,h.start+1))),h?l=h.end+1:l>1?l=1:(c--,l=n.getLineMaxColumn(c))),new u.a(c,l,a.lineNumber,a.column)},e._deleteWordPartLeft=function(t,n){if(!n.isEmpty())return n;var r=n.getPosition(),i=e._moveWordPartLeft(t,r);return new u.a(r.lineNumber,r.column,i.lineNumber,i.column)},e._findFirstNonWhitespaceChar=function(e,t){for(var n=e.length,r=t;r=f.start+1&&(f=e._findNextWordOnLine(t,n,new s.a(c,f.end+1))),f?l=f.start+1:l0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=t.getLineCount())&&n._futureFixes.cancel()})),n._register(N.k(n._domNode,"click",function(e){if(1===n._state.type){n._editor.focus();var t=N.v(n._domNode),r=t.top,i=t.height,o=n._editor.getConfiguration().lineHeight,a=Math.floor(o/3);n._position&&null!==n._position.position&&n._position.position.lineNumber0&&i?t._show(e):t.hide()}).catch(function(){t.hide()})}},Object.defineProperty(t.prototype,"title",{get:function(){return this._domNode.title},set:function(e){this._domNode.title=e},enumerable:!0,configurable:!0}),t.prototype._show=function(e){var n=this,r=this._editor.getConfiguration();if(r.contribInfo.lightbulbEnabled&&1===this._state.type){var i=this._state.position,o=i.lineNumber,a=i.column,s=this._editor.getModel();if(s){var u=s.getOptions().tabSize,c=s.getLineContent(o),l=P.b.computeIndentLevel(c,u),d=function(e){return e>2&&n._editor.getTopForLineNumber(e)===n._editor.getTopForLineNumber(e-1)},h=o;if(!(r.fontInfo.spaceWidth*l>22))if(o>1&&!d(o-1))h-=1;else if(d(o+1)){if(a*r.fontInfo.spaceWidth<22)return void this.hide()}else h+=1;this._position={position:{lineNumber:h,column:1},preference:t._posPref},N.P(this._domNode,"autofixable",e.hasAutoFix),this._editor.layoutContentWidget(this)}}},t.prototype.hide=function(){this._position=null,this._state=r.Empty,this._futureFixes.cancel(),this._editor.layoutContentWidget(this)},t._posPref=[0],t}(i.a);n.d(t,"f",function(){return q}),n.d(t,"i",function(){return Y}),n.d(t,"e",function(){return Z}),n.d(t,"b",function(){return K}),n.d(t,"g",function(){return J}),n.d(t,"h",function(){return X}),n.d(t,"d",function(){return $}),n.d(t,"c",function(){return ee}),n.d(t,"a",function(){return te});var 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])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),B=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},U=function(e,t){return function(n,r){t(n,r,e)}},W=function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(a,s)}u((r=r.apply(e,t||[])).next())})},H=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&(1===e.trigger.autoApply||0===e.trigger.autoApply&&1===n.actions.length)?t._onApplyCodeAction(n.actions[0]):t._codeActionContextMenu.show(e.actions,e.position)}).catch(L.e):"manual"===e.trigger.type?this._codeActionContextMenu.show(e.actions,e.position):this._codeActionContextMenu.isVisible?this._codeActionContextMenu.show(e.actions,e.position):this._lightBulbWidget.tryShow(e)):this._lightBulbWidget.hide()},t.prototype.getId=function(){return t.ID},t.prototype._handleLightBulbSelect=function(e){this._codeActionContextMenu.show(e.state.actions,e)},t.prototype.triggerFromEditorSelection=function(e,t){return this._model.trigger({type:"manual",filter:e,autoApply:t})},t.prototype._updateLightBulbTitle=function(){var e,t=this._keybindingService.lookupKeybinding(Z.Id);e=t?l.a("quickFixWithKb","Show Fixes ({0})",t.getLabel()):l.a("quickFix","Show Fixes"),this._lightBulbWidget.title=e},t.prototype._onApplyCodeAction=function(e){return Y(e,this._bulkEditService,this._commandService,this._editor)},t.ID="editor.contrib.quickFixController",t=B([U(1,g.b),U(2,h.e),U(3,m.a),U(4,p.a),U(5,d.b),U(6,f.a),U(7,s.a)],t)}(i.a);function Y(e,t,n,r){return W(this,void 0,void 0,function(){return H(this,function(i){switch(i.label){case 0:return e.edit?[4,t.apply(e.edit,{editor:r})]:[3,2];case 1:i.sent(),i.label=2;case 2:return e.command?[4,n.executeCommand.apply(n,[e.command.id].concat(e.command.arguments||[]))]:[3,4];case 3:i.sent(),i.label=4;case 4:return[2]}})})}function G(e,t,n,r){if(e.hasModel()){var i=q.get(e);if(i){var o=e.getPosition();i.triggerFromEditorSelection(n,r).then(function(n){n&&n.actions.length||c.a.get(e).showMessage(t,o)})}}}var Z=function(e){function t(){return e.call(this,{id:t.Id,label:l.a("quickfix.trigger.label","Quick Fix..."),alias:"Quick Fix",precondition:h.d.and(u.a.writable,u.a.hasCodeActionsProvider),kbOpts:{kbExpr:u.a.editorTextFocus,primary:2132,weight:100}})||this}return F(t,e),t.prototype.run=function(e,t){return G(t,l.a("editor.action.quickFix.noneMessage","No code actions available"))},t.Id="editor.action.quickFix",t}(a.b),Q=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 1;case"never":return 2;case"ifsingle":return 0;default:return t}},e.getKindFromUser=function(e,t){return"string"==typeof e.kind?new x.a(e.kind):t},e.getPreferredUser=function(e){return"boolean"==typeof e.preferred&&e.preferred},e}(),K=function(e){function t(){return e.call(this,{id:t.Id,precondition:h.d.and(u.a.writable,u.a.hasCodeActionsProvider),description:{description:"Trigger a code action",args:[{name:"args",schema:{type:"object",required:["kind"],properties:{kind:{type:"string"},apply:{type:"string",default:"ifSingle",enum:["first","ifSingle","never"]}}}}]}})||this}return F(t,e),t.prototype.runEditorCommand=function(e,t,n){var r=Q.fromUser(n,{kind:x.a.Empty,apply:0});return G(t,l.a("editor.action.quickFix.noneMessage","No code actions available"),{kind:r.kind,includeSourceActions:!0,onlyIncludePreferredActions:r.preferred},r.apply)},t.Id="editor.action.codeAction",t}(a.c),J=function(e){function t(){return e.call(this,{id:t.Id,label:l.a("refactor.label","Refactor..."),alias:"Refactor",precondition:h.d.and(u.a.writable,u.a.hasCodeActionsProvider),kbOpts:{kbExpr:u.a.editorTextFocus,primary:3120,mac:{primary:1328},weight:100},menuOpts:{group:"1_modification",order:2,when:h.d.and(u.a.writable,V(x.a.Refactor))},description:{description:"Refactor...",args:[{name:"args",schema:{type:"object",properties:{kind:{type:"string"},apply:{type:"string",default:"never",enum:["first","ifSingle","never"]}}}}]}})||this}return F(t,e),t.prototype.run=function(e,t,n){var r=Q.fromUser(n,{kind:x.a.Refactor,apply:2});return G(t,l.a("editor.action.refactor.noneMessage","No refactorings available"),{kind:x.a.Refactor.contains(r.kind)?r.kind:x.a.Empty,onlyIncludePreferredActions:r.preferred},r.apply)},t.Id="editor.action.refactor",t}(a.b),X=function(e){function t(){return e.call(this,{id:t.Id,label:l.a("source.label","Source Action..."),alias:"Source Action",precondition:h.d.and(u.a.writable,u.a.hasCodeActionsProvider),menuOpts:{group:"1_modification",order:2.1,when:h.d.and(u.a.writable,V(x.a.Source))},description:{description:"Source Action...",args:[{name:"args",schema:{type:"object",properties:{kind:{type:"string"},apply:{type:"string",default:"never",enum:["first","ifSingle","never"]}}}}]}})||this}return F(t,e),t.prototype.run=function(e,t,n){var r=Q.fromUser(n,{kind:x.a.Source,apply:2});return G(t,l.a("editor.action.source.noneMessage","No source actions available"),{kind:x.a.Source.contains(r.kind)?r.kind:x.a.Empty,includeSourceActions:!0,onlyIncludePreferredActions:r.preferred},r.apply)},t.Id="editor.action.sourceAction",t}(a.b),$=function(e){function t(){return e.call(this,{id:t.Id,label:l.a("organizeImports.label","Organize Imports"),alias:"Organize Imports",precondition:h.d.and(u.a.writable,V(x.a.SourceOrganizeImports)),kbOpts:{kbExpr:u.a.editorTextFocus,primary:1581,weight:100}})||this}return F(t,e),t.prototype.run=function(e,t){return G(t,l.a("editor.action.organize.noneMessage","No organize imports action available"),{kind:x.a.SourceOrganizeImports,includeSourceActions:!0},0)},t.Id="editor.action.organizeImports",t}(a.b),ee=function(e){function t(){return e.call(this,{id:t.Id,label:l.a("fixAll.label","Fix All"),alias:"Fix All",precondition:h.d.and(u.a.writable,V(x.a.SourceFixAll))})||this}return F(t,e),t.prototype.run=function(e,t){return G(t,l.a("fixAll.noneMessage","No fix all action available"),{kind:x.a.SourceFixAll,includeSourceActions:!0},0)},t.Id="editor.action.fixAll",t}(a.b),te=function(e){function t(){return e.call(this,{id:t.Id,label:l.a("autoFix.label","Auto Fix..."),alias:"Auto Fix",precondition:h.d.and(u.a.writable,V(x.a.QuickFix)),kbOpts:{kbExpr:u.a.editorTextFocus,primary:1620,mac:{primary:2644},weight:100}})||this}return F(t,e),t.prototype.run=function(e,t){return G(t,l.a("editor.action.autoFix.noneMessage","No auto fixes available"),{kind:x.a.QuickFix,onlyIncludePreferredActions:!0},0)},t.Id="editor.action.autoFix",t}(a.b)},function(e){e.exports={LOGOUT:"app.header.logout",PROFILE:"app.header.profile",DESKTOP:"app.header.desktop",CHANGE_PATH:"app.header.changePath",RANKING:"app.header.ranking",INDIVIDUAL_CLASSES:"app.header.individualClasses",USERS_LIST:"app.header.usersList",TERMS:"app.header.terms",TERMS_ADDRESS:"app.register.form.termsAccept.address",PRIVACY_POLICY:"app.header.privacyPolicy",PRIVACY_POLICY_ADDRESS:"app.register.form.privacyPolicy.address"}},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return o}),n.d(t,"b",function(){return a}),n.d(t,"c",function(){return s});var r=n(17),i=void 0===e?{cwd:function(){return"/"},env:Object.create(null),get platform(){return r.g?"win32":r.d?"darwin":"linux"},nextTick:function(e){return Object(r.h)(e)}}:e,o=i.cwd,a=i.env,s=i.platform}).call(this,n(82))},function(e){e.exports={FREEDOM:"app.addonsPayment.planSection.benefit.freedom",DEVELOPER:"app.addonsPayment.planSection.benefit.developer",RECRUITMENT:"app.addonsPayment.planSection.benefit.recruitment",INDIVIDUALITY:"app.addonsPayment.planSection.benefit.individuality",SLACK:"app.addonsPayment.planSection.benefit.slack",FREE_DESCRIPTION:"app.payment.planSection.description.free",FREE_LABEL:"app.payment.planSection.label.free",FREE_FOR_WHOM:"app.payment.planSection.forWhom.free",PAID_DESCRIPTION:"app.addonsPayment.planSection.price.payment",PAID_LABEL:"app.addonsPayment.planSection.label.paid",PAID_FOR_WHOM:"app.addonsPayment.planSection.forWhom.paid",BUTTON_LABEL:"app.payment.planSection.tile.button.label",MODAL_BUTTON_LABEL:"app.payment.planSection.tile.modal.button.label",BESTSELLER_LABEL:"app.payment.planSection.tile.bestseller.label"}},function(e,t,n){"use strict";n.d(t,"a",function(){return c}),n.d(t,"b",function(){return w});var r=n(1),i=n(7),o=n(74),a=n(24),s=n(9),u=n(283),c={Configuration:"base.contributions.configuration"},l={properties:{},patternProperties:{}},d={properties:{},patternProperties:{}},h={properties:{},patternProperties:{}},p={properties:{},patternProperties:{}},f={properties:{},patternProperties:{}},g="vscode://schemas/settings/editor",m=o.a.as(u.a.JSONContribution),y=function(){function e(){this.overrideIdentifiers=[],this._onDidSchemaChange=new i.a,this._onDidUpdateConfiguration=new i.a,this.defaultOverridesConfigurationNode={id:"defaultOverrides",title:r.a("defaultConfigurations.title","Default Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultOverridesConfigurationNode],this.editorConfigurationSchema={properties:{},patternProperties:{},additionalProperties:!1,errorMessage:"Unknown editor configuration setting"},this.configurationProperties={},this.excludedConfigurationProperties={},this.computeOverridePropertyPattern(),m.registerSchema(g,this.editorConfigurationSchema)}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 r=[];e.forEach(function(e){r.push.apply(r,n.validateAndRegisterProperties(e,t)),n.configurationContributors.push(e),n.registerJSONConfiguration(e),n.updateSchemaForOverrideSettingsConfiguration(e)}),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire(r)},e.prototype.registerOverrideIdentifiers=function(e){var t;(t=this.overrideIdentifiers).push.apply(t,e),this.updateOverridePropertyPatternKey()},e.prototype.validateAndRegisterProperties=function(e,t,n,r){void 0===t&&(t=!0),void 0===n&&(n=3),void 0===r&&(r=!1),n=a.j(e.scope)?n:e.scope,r=e.overridable||r;var i=[],o=e.properties;if(o)for(var s in o){var u=void 0;if(t&&(u=I(s)))console.warn(u),delete o[s];else{var c=o[s],l=c.default;a.i(l)&&(c.default=S(c.type)),r&&(c.overridable=!0),w.test(s)?c.scope=void 0:c.scope=a.j(c.scope)?n:c.scope,!o[s].hasOwnProperty("included")||o[s].included?(this.configurationProperties[s]=o[s],i.push(s)):(this.excludedConfigurationProperties[s]=o[s],delete o[s])}}var d=e.allOf;if(d)for(var h=0,p=d;h=0;n--)t+=e.charAt(n);return t}(e=n)),t}}(),g=function(){function e(){}return e._findPrevBracketInText=function(e,t,n,r){var o=n.match(e);if(!o)return null;var a=n.length-(o.index||0),s=o[0].length,u=r+a;return new i.a(t,u-s+1,t,u+1)},e.findPrevBracketInToken=function(e,t,n,r,i){var o=f(n).substring(n.length-i,n.length-r);return this._findPrevBracketInText(e,t,o,r)},e.findNextBracketInText=function(e,t,n,r){var o=n.match(e);if(!o)return null;var a=o.index||0,s=o[0].length;if(0===s)return null;var u=r+a;return new i.a(t,u+1,t,u+1+s)},e.findNextBracketInToken=function(e,t,n,r,i){var o=n.substring(r,i);return this.findNextBracketInText(e,t,o,r)},e}()},function(e,t,n){"use strict";n.d(t,"d",function(){return u}),n.d(t,"b",function(){return l}),n.d(t,"a",function(){return d}),n.d(t,"c",function(){return y});var r,i,o=(r=function(e,t){return(r=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)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(){function e(){this.text("")}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,r=0,i=this.value.charCodeAt(n);if("number"==typeof(t=e._table[i]))return this.pos+=1,{type:t,pos:n,len:1};if(e.isDigitCharacter(i)){t=8;do{r+=1,i=this.value.charCodeAt(n+r)}while(e.isDigitCharacter(i));return this.pos+=r,{type:t,pos:n,len:r}}if(e.isVariableCharacter(i)){t=9;do{i=this.value.charCodeAt(n+ ++r)}while(e.isVariableCharacter(i)||e.isDigitCharacter(i));return this.pos+=r,{type:t,pos:n,len:r}}t=10;do{r+=1,i=this.value.charCodeAt(n+r)}while(!isNaN(i)&&void 0===e._table[i]&&!e.isDigitCharacter(i)&&!e.isVariableCharacter(i));return this.pos+=r,{type:t,pos:n,len:r}},e._table=((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}(),s=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,r=n.children.indexOf(e),i=n.children.slice(0);i.splice.apply(i,[r,1].concat(t)),n._children=i,function e(t,n){for(var r=0,i=t;rt.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}(c),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.options=[],t}return o(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}(s),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.resolve=function(e){var t=this,n=!1,r=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 p&&Boolean(e.elseValue)})&&(r=this._replace([])),r},t.prototype._replace=function(e){for(var t="",n=0,r=this._children;n0;){var r=n.shift();if(!t(r))break;n.unshift.apply(n,r.children)}}var m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),Object.defineProperty(t.prototype,"placeholderInfo",{get:function(){if(!this._placeholders){var e,t=[];this.walk(function(n){return n instanceof l&&(t.push(n),e=!e||e.index0?i.set(e.index,e.children):o.push(e)),!0});for(var s=0,u=o;s0&&t),!i.has(0)&&n&&r.appendChild(new l(0)),r},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){if(14===this._token.type)return!1;for(var t=this._token;this._token.type!==e;)if(this._token=this._scanner.next(),14===this._token.type)return!1;var n=this._scanner.value.substring(t.pos,this._token.pos);return this._token=this._scanner.next(),n},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;return this._accept(0)&&(t=this._accept(9,!0)||this._accept(8,!0))?(e.appendChild(/^\d+$/.test(t)?new l(Number(t)):new f(t)),!0):this._backTo(n)},e.prototype._parseComplexPlaceholder=function(e){var t,n=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(8,!0))))return this._backTo(n);var r=new l(Number(t));if(this._accept(1))for(;;){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);for(var i=new d;;){if(this._parseChoiceElement(i)){if(this._accept(2))continue;if(this._accept(7)&&(r.appendChild(i),this._accept(4)))return e.appendChild(r),!0}return this._backTo(n),!1}}},e.prototype._parseChoiceElement=function(e){for(var t=this._token,n=[];2!==this._token.type&&7!==this._token.type;){var r=void 0;if(!(r=(r=this._accept(5,!0))?this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||r:this._accept(void 0,!0)))return this._backTo(t),!1;n.push(r)}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;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(9,!0))))return this._backTo(n);var r=new f(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);for(;;){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){for(var t=new h,n="",r="";!this._accept(6);){var i=void 0;if(i=this._accept(5,!0))n+=i=this._accept(6,!0)||i;else{if(14===this._token.type)return!1;n+=this._accept(void 0,!0)}}for(;!this._accept(6);){i=void 0;if(i=this._accept(5,!0))i=this._accept(5,!0)||this._accept(6,!0)||i,t.appendChild(new u(i));else if(!this._parseFormatString(t)&&!this._parseAnything(t))return!1}for(;!this._accept(4);){if(14===this._token.type)return!1;r+=this._accept(void 0,!0)}try{t.regexp=new RegExp(n,r)}catch(e){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 r=this._accept(8,!0);if(!r)return this._backTo(t),!1;if(!n)return e.appendChild(new p(Number(r))),!0;if(this._accept(4))return e.appendChild(new p(Number(r))),!0;if(!this._accept(1))return this._backTo(t),!1;if(this._accept(6)){var i=this._accept(9,!0);return i&&this._accept(4)?(e.appendChild(new p(Number(r),i)),!0):(this._backTo(t),!1)}if(this._accept(11)){if(o=this._until(4))return e.appendChild(new p(Number(r),void 0,o,void 0)),!0}else if(this._accept(12)){if(a=this._until(4))return e.appendChild(new p(Number(r),void 0,void 0,a)),!0}else if(this._accept(13)){var o;if(o=this._until(1))if(a=this._until(4))return e.appendChild(new p(Number(r),void 0,o,a)),!0}else{var a;if(a=this._until(4))return e.appendChild(new p(Number(r),void 0,void 0,a)),!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}()},function(e){e.exports={RESULT:"app.test.result",YOUR_RESULT:"app.test.yourResult",NEGATIVE:"app.test.yourResult.negative",POSITIVE:"app.test.yourResult.positive",NEXT:"app.test.next",ONE_MORE_TIME:"app.test.oneMoreTime"}},function(e){e.exports={EDUCATION:"app.userList.modal.education",GRADE_AVERAGE:"app.userList.modal.gradeAverage",GRADE_COUNT:"app.userList.modal.gradeCount",PREFERABLE_WORK_TIME:"app.userList.modal.preferableWorkTime",TYPING_SPEED:"app.userList.modal.typingSpeed",MORNING:"app.userList.modal.vector.morning",DAY:"app.userList.modal.vector.day",EVENING:"app.userList.modal.vector.evening",NIGHT:"app.userList.modal.vector.night",MUCH_MORE:"app.userList.modal.muchMoreInfo"}},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){var r=n(644),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},function(e,t,n){e.exports=n(909).Observable},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(){function e(){for(var e=[],t=0;t=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},M=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 r=Object(s.j)(this.renderedElements,function(e){return e.templateData===n});if(r>=0){var i=this.renderedElements[r];this.trait.unrender(n),i.index=t}else{i={index:t,templateData:n};this.renderedElements.push(i)}this.trait.renderIndex(t,n)},e.prototype.splice=function(e,t,n){for(var r=[],i=0,o=this.renderedElements;i=e+t&&r.push({index:a.index+n-t,templateData:a.templateData})}this.renderedElements=r},e.prototype.renderIndexes=function(e){for(var t=0,n=this.renderedElements;t-1&&this.trait.renderIndex(i,o)}},e.prototype.disposeTemplate=function(e){var t=Object(s.j)(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 p.a}return Object.defineProperty(e.prototype,"onChange",{get:function(){return this._onChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"trait",{get:function(){return this._trait},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"renderer",{get:function(){return new M(this)},enumerable:!0,configurable:!0}),e.prototype.splice=function(e,t,n){var r=n.length-t,i=e+t,o=this.sortedIndexes.filter(function(t){return t=i}).map(function(e){return e+r}));this.renderer.splice(e,t,n.length),this._set(o,o)},e.prototype.renderIndex=function(e,t){c.P(t,this._trait,this.contains(e))},e.prototype.unrender=function(e){c.G(e,this._trait)},e.prototype.set=function(e,t){return this._set(e,e.slice().sort(q),t)},e.prototype._set=function(e,t,n){var r=this.indexes,i=this.sortedIndexes;this.indexes=e,this.sortedIndexes=t;var o=V(i,e);return this.renderer.renderIndexes(o),this._onChange.fire({indexes:e,browserEvent:n}),r},e.prototype.get=function(){return this.indexes},e.prototype.contains=function(e){return Object(s.c)(this.sortedIndexes,e,q)>=0},e.prototype.dispose=function(){this._onChange=Object(o.d)(this._onChange)},I([u.a],e.prototype,"renderer",null),e}(),N=function(e){function t(){return e.call(this,"focused")||this}return S(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),E=function(){function e(e,t,n){this.trait=e,this.view=t,this.identityProvider=n}return e.prototype.splice=function(e,t,n){var r=this;if(!this.identityProvider)return this.trait.splice(e,t,n.map(function(){return!1}));var i=this.trait.get().map(function(e){return r.identityProvider.getId(r.view.element(e)).toString()}),o=n.map(function(e){return i.indexOf(r.identityProvider.getId(e).toString())>-1});this.trait.splice(e,t,o)},e}();function L(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName}var T,k=function(){function e(e,t,n){this.list=e,this.view=t;var r=!(!1===n.multipleSelectionSupport);this.disposables=[],this.openController=n.openController||F;var i=p.b.chain(Object(f.a)(t.domNode,"keydown")).filter(function(e){return!L(e.target)}).map(function(e){return new h.a(e)});i.filter(function(e){return 3===e.keyCode}).on(this.onEnter,this,this.disposables),i.filter(function(e){return 16===e.keyCode}).on(this.onUpArrow,this,this.disposables),i.filter(function(e){return 18===e.keyCode}).on(this.onDownArrow,this,this.disposables),i.filter(function(e){return 11===e.keyCode}).on(this.onPageUpArrow,this,this.disposables),i.filter(function(e){return 12===e.keyCode}).on(this.onPageDownArrow,this,this.disposables),i.filter(function(e){return 9===e.keyCode}).on(this.onEscape,this,this.disposables),r&&i.filter(function(e){return(l.d?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(s.r)(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=Object(o.d)(this.disposables)},e}();function D(e){return!(e.ctrlKey||e.metaKey||e.altKey)&&(e.keyCode>=31&&e.keyCode<=56||e.keyCode>=21&&e.keyCode<=30||e.keyCode>=80&&e.keyCode<=90)}!function(e){e[e.Idle=0]="Idle",e[e.Typing=1]="Typing"}(T||(T={}));var O=function(){function e(e,t,n){this.list=e,this.view=t,this.keyboardNavigationLabelProvider=n,this.enabled=!1,this.state=T.Idle,this.automaticKeyboardNavigation=!0,this.triggered=!1,this.enabledDisposables=[],this.disposables=[],this.updateOptions(e.options)}return e.prototype.updateOptions=function(e){void 0===e.enableKeyboardNavigation||!!e.enableKeyboardNavigation?this.enable():this.disable(),void 0!==e.automaticKeyboardNavigation&&(this.automaticKeyboardNavigation=e.automaticKeyboardNavigation)},e.prototype.enable=function(){var e=this;if(!this.enabled){var t=p.b.chain(Object(f.a)(this.view.domNode,"keydown")).filter(function(e){return!L(e.target)}).filter(function(){return e.automaticKeyboardNavigation||e.triggered}).map(function(e){return new h.a(e)}).filter(this.keyboardNavigationLabelProvider.mightProducePrintableCharacter?function(t){return e.keyboardNavigationLabelProvider.mightProducePrintableCharacter(t)}:function(e){return D(e)}).forEach(function(e){e.stopPropagation(),e.preventDefault()}).map(function(e){return e.browserEvent.key}).event,n=p.b.debounce(t,function(){return null},800);p.b.reduce(p.b.any(t,n),function(e,t){return null===t?null:(e||"")+t})(this.onInput,this,this.enabledDisposables),this.enabled=!0,this.triggered=!1}},e.prototype.disable=function(){this.enabled&&(this.enabledDisposables=Object(o.d)(this.enabledDisposables),this.enabled=!1,this.triggered=!1)},e.prototype.onInput=function(e){if(!e)return this.state=T.Idle,void(this.triggered=!1);var t=this.list.getFocus(),n=t.length>0?t[0]:0,r=this.state===T.Idle?1:0;this.state=T.Typing;for(var i=0;i=0&&e[i]===t-(n-i);)r.push(e[i--]);r.reverse(),i=n;for(;i=e.length)n.push(t[i++]);else if(i>=t.length)n.push(e[r++]);else{if(e[r]===t[i]){r++,i++;continue}e[r]=e.length)n.push(t[i++]);else if(i>=t.length)n.push(e[r++]);else{if(e[r]===t[i]){n.push(e[r]),r++,i++;continue}e[r]-1?t:[e]},e.prototype.getDragURI=function(e){return this.dnd.getDragURI(e)},e.prototype.getDragLabel=function(e){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e)},e.prototype.onDragStart=function(e,t){this.dnd.onDragStart&&this.dnd.onDragStart(e,t)},e.prototype.onDragOver=function(e,t,n,r){return this.dnd.onDragOver(e,t,n,r)},e.prototype.drop=function(e,t,n,r){this.dnd.drop(e,t,n,r)},e}(),Q=function(){function e(e,t,n,o){void 0===o&&(o=H),this._options=o,this.eventBufferer=new p.c,this._onDidOpen=new p.a,this.onDidOpen=this._onDidOpen.event,this._onPin=new p.a,this.didJustPressContextMenuKey=!1,this._onDidDispose=new p.a,this.focus=new N,this.selection=new x("selected"),Object(y.g)(o,W,!1);var a=[this.focus.renderer,this.selection.renderer];o.accessibilityProvider&&a.push(new G(o.accessibilityProvider)),n=n.map(function(e){return new Y(e.templateId,a.concat([e]))});var s=C({},o,{dnd:o.dnd&&new Z(this,o.dnd)});if(this.view=new g.b(e,t,n,s),"string"!=typeof o.ariaRole?this.view.domNode.setAttribute("role",r.TREE):this.view.domNode.setAttribute("role",o.ariaRole),this.styleElement=c.q(this.view.domNode),this.styleController=o.styleController||new U(this.styleElement,this.view.domId),this.spliceable=new v([new E(this.focus,this.view,o.identityProvider),new E(this.selection,this.view,o.identityProvider),this.view]),this.disposables=[this.focus,this.selection,this.view,this._onDidDispose],this.onDidFocus=p.b.map(Object(f.a)(this.view.domNode,"focus",!0),function(){return null}),this.onDidBlur=p.b.map(Object(f.a)(this.view.domNode,"blur",!0),function(){return null}),this.disposables.push(new A(this,this.view)),"boolean"!=typeof o.keyboardSupport||o.keyboardSupport){var u=new k(this,this.view,o);this.disposables.push(u)}o.keyboardNavigationLabelProvider&&(this.typeLabelController=new O(this,this.view,o.keyboardNavigationLabelProvider),this.disposables.push(this.typeLabelController)),this.disposables.push(this.createMouseController(o)),this.onFocusChange(this._onFocusChange,this,this.disposables),this.onSelectionChange(this._onSelectionChange,this,this.disposables),o.ariaLabel&&this.view.domNode.setAttribute("aria-label",Object(i.a)("aria list","{0}. Use the navigation keys to navigate.",o.ariaLabel)),this.style(o)}return Object.defineProperty(e.prototype,"onFocusChange",{get:function(){var e=this;return p.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 p.b.map(this.eventBufferer.wrapEvent(this.selection.onChange),function(t){return e.toListEvent(t)})},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=p.b.chain(Object(f.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=p.b.chain(Object(f.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];return{index:n,element:e.view.element(n),anchor:e.view.domElement(n),browserEvent:t}}).event,r=p.b.chain(this.view.onContextMenu).filter(function(){return!e.didJustPressContextMenuKey}).map(function(e){var t=e.element,n=e.index,r=e.browserEvent;return{element:t,index:n,anchor:{x:r.clientX+1,y:r.clientY},browserEvent:r}}).event;return p.b.any(t,n,r)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onKeyDown",{get:function(){return Object(f.a)(this.view.domNode,"keydown")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidDispose",{get:function(){return this._onDidDispose.event},enumerable:!0,configurable:!0}),e.prototype.createMouseController=function(e){return new B(this)},e.prototype.updateOptions=function(e){void 0===e&&(e={}),this._options=C({},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 r=this;if(void 0===n&&(n=[]),e<0||e>this.view.length)throw new Error("Invalid start index: "+e);if(t<0)throw new Error("Invalid delete count: "+t);0===t&&0===n.length||this.eventBufferer.bufferEvents(function(){return r.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,r=e;n=this.length)throw new Error("Invalid index "+i)}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,r=e;n=this.length)throw new Error("Invalid index "+i)}this.focus.set(e,t)},e.prototype.focusNext=function(e,t,n,r){if(void 0===e&&(e=1),void 0===t&&(t=!1),0!==this.length){var i=this.focus.get(),o=this.findNextIndex(i.length>0?i[0]+e:0,t,r);o>-1&&this.setFocus([o],n)}},e.prototype.focusPrevious=function(e,t,n,r){if(void 0===e&&(e=1),void 0===t&&(t=!1),0!==this.length){var i=this.focus.get(),o=this.findPreviousIndex(i.length>0?i[0]-e:0,t,r);o>-1&&this.setFocus([o],n)}},e.prototype.focusNextPage=function(e,t){var n=this,r=this.view.indexAt(this.view.getScrollTop()+this.view.renderHeight);r=0===r?0:r-1;var i=this.view.element(r),o=this.getFocusedElements()[0];if(o!==i){var a=this.findPreviousIndex(r,!1,t);a>-1&&o!==this.view.element(a)?this.setFocus([a],e):this.setFocus([r],e)}else{var s=this.view.getScrollTop();this.view.setScrollTop(s+this.view.renderHeight-this.view.elementHeight(r)),this.view.getScrollTop()!==s&&setTimeout(function(){return n.focusNextPage(e,t)},0)}},e.prototype.focusPreviousPage=function(e,t){var n,r=this,i=this.view.getScrollTop();n=0===i?this.view.indexAt(i):this.view.indexAfter(i-1);var o=this.view.element(n),a=this.getFocusedElements()[0];if(a!==o){var s=this.findNextIndex(n,!1,t);s>-1&&a!==this.view.element(s)?this.setFocus([s],e):this.setFocus([n],e)}else{var u=i;this.view.setScrollTop(i-this.view.renderHeight),this.view.getScrollTop()!==u&&setTimeout(function(){return r.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 r=0;r=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 r=0;r=this.length)throw new Error("Invalid index "+e);var n=this.view.getScrollTop(),r=this.view.elementTop(e),i=this.view.elementHeight(e);if(Object(a.f)(t)){var o=i-this.view.renderHeight;this.view.setScrollTop(o*Object(b.a)(t,0,1)+r)}else{var s=r+i,u=n+this.view.renderHeight;r=u&&this.view.setScrollTop(s-this.view.renderHeight)}},e.prototype.getRelativeTop=function(e){if(e<0||e>=this.length)throw new Error("Invalid index "+e);var t=this.view.getScrollTop(),n=this.view.elementTop(e),r=this.view.elementHeight(e);if(nt+this.view.renderHeight)return null;var i=r-this.view.renderHeight;return Math.abs((t-n)/i)},e.prototype.getHTMLElement=function(){return this.view.domNode},e.prototype.open=function(e,t){for(var n=this,r=0,i=e;r=this.length)throw new Error("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){for(var t=0,n=e;t=this.length)throw new Error("Invalid index "+r)}this._onPin.fire(e)},e.prototype.style=function(e){this.styleController.style(e)},e.prototype.toListEvent=function(e){var t=this,n=e.indexes,r=e.browserEvent;return{indexes:n,elements:n.map(function(e){return t.view.element(e)}),browserEvent:r}},e.prototype._onFocusChange=function(){var e=this.focus.get();e.length>0?this.view.domNode.setAttribute("aria-activedescendant",this.view.getElementDomId(e[0])):this.view.domNode.removeAttribute("aria-activedescendant"),this.view.domNode.setAttribute("role","tree"),c.P(this.view.domNode,"element-focused",e.length>0)},e.prototype._onSelectionChange=function(){var e=this.selection.get();c.P(this.view.domNode,"selection-none",0===e.length),c.P(this.view.domNode,"selection-single",1===e.length),c.P(this.view.domNode,"selection-multiple",e.length>1)},e.prototype.dispose=function(){this._onDidDispose.fire(),this.disposables=Object(o.d)(this.disposables),this._onDidOpen.dispose(),this._onPin.dispose(),this._onDidDispose.dispose()},I([u.a],e.prototype,"onFocusChange",null),I([u.a],e.prototype,"onSelectionChange",null),I([u.a],e.prototype,"onContextMenu",null),e}()},function(e){e.exports={LOGIN:"app.login.form.email",PASSWORD:"app.resetPassword.form.password",REPEAT_PASSWORD:"app.resetPassword.form.repeatPassword",CODE:"app.resetPassword.form.code",PASSWORDS_EQUALITY:"app.validation.passwordsEquality",PASSWORD_RULES:"app.validation.passwordRules",RESET_PASSWORD:"app.resetPassword.submit",REQUIRED:"app.validation.required",INVALID_USERNAME:"app.validation.email"}},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(23),i=Object(r.c)("telemetryService")},function(e,t,n){"use strict";(function(e){var r=n(277),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.a.process,s=function(){try{var e=o&&o.require&&o.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();t.a=s}).call(this,n(263)(e))},function(e,t,n){"use strict";function r(e,t){if(!e)throw new Error(t?"Assertion failed ("+t+")":"Assertion Failed")}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return s});var r=n(9),i=function(){function e(e,t,n,r){this.startColumn=e,this.endColumn=t,this.className=n,this.type=r}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 r=t.length;if(r!==n.length)return!1;for(var i=0;in)&&(!l.isEmpty()||0!==c.type&&3!==c.type)){var d=l.startLineNumber===n?l.startColumn:r,h=l.endLineNumber===n?l.endColumn:i;o[a++]=new e(d,h,c.inlineClassName,c.type)}}return o},e.compare=function(e,t){return e.startColumn===t.startColumn?e.endColumn===t.endColumn?e.classNamet.className?1:0:e.endColumn-t.endColumn:e.startColumn-t.startColumn},e}(),o=function(){return function(e,t,n){this.startOffset=e,this.endOffset=t,this.className=n}}(),a=function(){function e(){this.stopOffsets=[],this.classNames=[],this.count=0}return e.prototype.consumeLowerThan=function(e,t,n){for(;this.count>0&&this.stopOffsets[0]0&&t=e){this.stopOffsets.splice(n,0,e),this.classNames.splice(n,0,t);break}this.count++},e}(),s=function(){function e(){}return e.normalize=function(e,t){if(0===t.length)return[];for(var n=[],i=new a,o=0,s=0,u=t.length;s1){var p=e.charCodeAt(l-2);r.u(p)&&l--}if(d>1){p=e.charCodeAt(d-2);r.u(p)&&d--}var f=l-1,g=d-2;o=i.consumeLowerThan(f,o,n),0===i.count&&(o=f),i.insert(g,h)}return i.consumeLowerThan(1073741824,o,n),n},e}()},function(e,t,n){"use strict";var r=n(1),i=n(24),o=n(215),a=n(105),s=n(198),u=n(2),c=(n(1269),n(36)),l=n(244),d=u.a,h=function(){function e(e,t,n){this.os=t,this.options=n,this.domNode=u.m(e,d(".monaco-keybinding")),this.didEverRender=!1,e.appendChild(this.domNode)}return e.prototype.set=function(t,n){this.didEverRender&&this.keybinding===t&&e.areSame(this.matches,n)||(this.keybinding=t,this.matches=n,this.render())},e.prototype.render=function(){if(u.n(this.domNode),this.keybinding){var e=this.keybinding.getParts(),t=e[0],n=e[1];t&&this.renderPart(this.domNode,t,this.matches?this.matches.firstPart:null),n&&(u.m(this.domNode,d("span.monaco-keybinding-key-chord-separator",void 0," ")),this.renderPart(this.domNode,n,this.matches?this.matches.chordPart:null)),this.domNode.title=this.keybinding.getAriaLabel()||""}else this.options&&this.options.renderUnboundKeybindings&&this.renderUnbound(this.domNode);this.didEverRender=!0},e.prototype.renderPart=function(e,t,n){var r=l.b.modifierLabels[this.os];t.ctrlKey&&this.renderKey(e,r.ctrlKey,Boolean(n&&n.ctrlKey),r.separator),t.shiftKey&&this.renderKey(e,r.shiftKey,Boolean(n&&n.shiftKey),r.separator),t.altKey&&this.renderKey(e,r.altKey,Boolean(n&&n.altKey),r.separator),t.metaKey&&this.renderKey(e,r.metaKey,Boolean(n&&n.metaKey),r.separator);var i=t.keyLabel;i&&this.renderKey(e,i,Boolean(n&&n.keyCode),"")},e.prototype.renderKey=function(e,t,n,r){u.m(e,d("span.monaco-keybinding-key"+(n?".highlight":""),void 0,t)),r&&u.m(e,d("span.monaco-keybinding-key-separator",void 0,r))},e.prototype.renderUnbound=function(e){u.m(e,d("span.monaco-keybinding-key",void 0,Object(r.a)("unbound","Unbound")))},e.areSame=function(e,t){return e===t||!e&&!t||!!e&&!!t&&Object(c.e)(e.firstPart,t.firstPart)&&Object(c.e)(e.chordPart,t.chordPart)},e}(),p=n(17),f=n(21);n.d(t,"a",function(){return v}),n.d(t,"b",function(){return b}),n.d(t,"c",function(){return S});var g,m=(g=function(e,t){return(g=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)},function(e,t){function n(){this.constructor=e}g(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),y=0,v=function(){function e(e){void 0===e&&(e=[]),this.id=(y++).toString(),this.labelHighlights=e,this.descriptionHighlights=[]}return e.prototype.getId=function(){return this.id},e.prototype.getLabel=function(){return null},e.prototype.getLabelOptions=function(){return null},e.prototype.getAriaLabel=function(){return Object(f.d)([this.getLabel(),this.getDescription(),this.getDetail()]).join(", ")},e.prototype.getDetail=function(){return null},e.prototype.getIcon=function(){return null},e.prototype.getDescription=function(){return null},e.prototype.getTooltip=function(){return null},e.prototype.getDescriptionTooltip=function(){return null},e.prototype.getKeybinding=function(){return null},e.prototype.isHidden=function(){return this.hidden},e.prototype.setHighlights=function(e,t,n){this.labelHighlights=e,this.descriptionHighlights=t,this.detailHighlights=n},e.prototype.getHighlights=function(){return[this.labelHighlights,this.descriptionHighlights,this.detailHighlights]},e.prototype.run=function(e,t){return!1},e}(),b=function(e){function t(t,n,r){var i=e.call(this)||this;return i.entry=t,i.groupLabel=n,i.withBorder=r,i}return m(t,e),t.prototype.getGroupLabel=function(){return this.groupLabel},t.prototype.setGroupLabel=function(e){this.groupLabel=e},t.prototype.showBorder=function(){return!!this.withBorder},t.prototype.setShowBorder=function(e){this.withBorder=e},t.prototype.getLabel=function(){return this.entry?this.entry.getLabel():e.prototype.getLabel.call(this)},t.prototype.getLabelOptions=function(){return this.entry?this.entry.getLabelOptions():e.prototype.getLabelOptions.call(this)},t.prototype.getAriaLabel=function(){return this.entry?this.entry.getAriaLabel():e.prototype.getAriaLabel.call(this)},t.prototype.getDetail=function(){return this.entry?this.entry.getDetail():e.prototype.getDetail.call(this)},t.prototype.getIcon=function(){return this.entry?this.entry.getIcon():e.prototype.getIcon.call(this)},t.prototype.getDescription=function(){return this.entry?this.entry.getDescription():e.prototype.getDescription.call(this)},t.prototype.getHighlights=function(){return this.entry?this.entry.getHighlights():e.prototype.getHighlights.call(this)},t.prototype.isHidden=function(){return this.entry?this.entry.isHidden():e.prototype.isHidden.call(this)},t.prototype.setHighlights=function(t,n,r){this.entry?this.entry.setHighlights(t,n,r):e.prototype.setHighlights.call(this,t,n,r)},t.prototype.run=function(t,n){return this.entry?this.entry.run(t,n):e.prototype.run.call(this,t,n)},t}(v),_=function(){function e(){}return e.prototype.hasActions=function(e,t){return!1},e.prototype.getActions=function(e,t){return null},e}(),w=function(){function e(e,t){void 0===e&&(e=new _),this.actionProvider=e,this.actionRunner=t}return e.prototype.getHeight=function(e){return e.getDetail()?44:22},e.prototype.getTemplateId=function(e){return e instanceof b?"quickOpenEntryGroup":"quickOpenEntry"},e.prototype.renderTemplate=function(e,t,n){var r=document.createElement("div");u.f(r,"sub-content"),t.appendChild(r);var i=u.a(".quick-open-row"),c=u.a(".quick-open-row"),l=u.a(".quick-open-entry",void 0,i,c);r.appendChild(l);var d=document.createElement("span");i.appendChild(d);var f=new o.a(i,{supportHighlights:!0,supportDescriptionHighlights:!0}),g=document.createElement("span");i.appendChild(g),u.f(g,"quick-open-entry-keybinding");var m=new h(g,p.a),y=document.createElement("div");c.appendChild(y),u.f(y,"quick-open-entry-meta");var v,b=new s.a(y,!0);"quickOpenEntryGroup"===e&&(v=document.createElement("div"),u.f(v,"results-group"),t.appendChild(v)),u.f(t,"actions");var _=document.createElement("div");return u.f(_,"primary-action-bar"),t.appendChild(_),{container:t,entry:l,icon:d,label:f,detail:b,keybinding:m,group:v,actionBar:new a.a(_,{actionRunner:this.actionRunner})}},e.prototype.renderElement=function(e,t,n,r){this.actionProvider.hasActions(null,e)?u.f(n.container,"has-actions"):u.G(n.container,"has-actions"),n.actionBar.context=e;var o=this.actionProvider.getActions(null,e);if(n.actionBar.isEmpty()&&o&&o.length>0?n.actionBar.push(o,{icon:!0,label:!1}):n.actionBar.isEmpty()||o&&0!==o.length||n.actionBar.clear(),e instanceof b&&e.getGroupLabel()?u.f(n.container,"has-group-label"):u.G(n.container,"has-group-label"),e instanceof b){var a=e,s=n;a.showBorder()?(u.f(s.container,"results-group-separator"),r.pickerGroupBorder&&(s.container.style.borderTopColor=r.pickerGroupBorder.toString())):(u.G(s.container,"results-group-separator"),s.container.style.borderTopColor=null);var c=a.getGroupLabel()||"";s.group&&(s.group.textContent=c,r.pickerGroupForeground&&(s.group.style.color=r.pickerGroupForeground.toString()))}if(e instanceof v){var l=e.getHighlights(),d=l[0],h=l[1],p=l[2],f=e.getIcon()?"quick-open-entry-icon "+e.getIcon():"";n.icon.className=f;var g=e.getLabelOptions()||Object.create(null);g.matches=d||[],g.title=i.l(e.getTooltip()),g.descriptionTitle=e.getDescriptionTooltip()||i.l(e.getDescription()),g.descriptionMatches=h||[],n.label.setLabel(i.l(e.getLabel()),i.l(e.getDescription()),g),n.detail.set(i.l(e.getDetail()),p),n.keybinding.set(e.getKeybinding())}},e.prototype.disposeTemplate=function(e,t){t.actionBar.dispose(),t.actionBar=null,t.container=null,t.entry=null,t.keybinding=null,t.detail=null,t.group=null,t.icon=null,t.label.dispose(),t.label=null},e}(),S=function(){function e(e,t){void 0===e&&(e=[]),void 0===t&&(t=new _),this._entries=e,this._dataSource=this,this._renderer=new w(t),this._filter=this,this._runner=this,this._accessibilityProvider=this}return Object.defineProperty(e.prototype,"entries",{get:function(){return this._entries},set:function(e){this._entries=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dataSource",{get:function(){return this._dataSource},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"renderer",{get:function(){return this._renderer},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"filter",{get:function(){return this._filter},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"runner",{get:function(){return this._runner},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"accessibilityProvider",{get:function(){return this._accessibilityProvider},enumerable:!0,configurable:!0}),e.prototype.getId=function(e){return e.getId()},e.prototype.getLabel=function(e){return e.getLabel()},e.prototype.getAriaLabel=function(e){return e.getAriaLabel()?r.a("quickOpenAriaLabelEntry","{0}, picker",e.getAriaLabel()):r.a("quickOpenAriaLabel","picker")},e.prototype.isVisible=function(e){return!e.isHidden()},e.prototype.run=function(e,t,n){return e.run(t,n)},e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n(9),i=n(19),o=n(4),a=n(25),s=n(41),u=Object.create(null);function c(e,t){u[e]||(u[e]=["",e]);for(var n=u[e],r=n.length;r<=t;r++)n[r]=n[r-1]+e;return n[t]}var l=function(){function e(e,t){this._opts=t,this._selection=e,this._useLastEditRangeForCursorEndPosition=!1,this._selectionStartColumnStaysPut=!1}return e.unshiftIndent=function(e,t,n,r,o){var a=i.a.visibleColumnFromColumn(e,t,n);if(o){var s=c(" ",r);return c(s,i.a.prevIndentTabStop(a,r)/r)}return c(s="\t",i.a.prevRenderTabStop(a,n)/n)},e.shiftIndent=function(e,t,n,r,o){var a=i.a.visibleColumnFromColumn(e,t,n);if(o){var s=c(" ",r);return c(s,i.a.nextIndentTabStop(a,r)/r)}return c(s="\t",i.a.nextRenderTabStop(a,n)/n)},e.prototype._addEditOperation=function(e,t,n){this._useLastEditRangeForCursorEndPosition?e.addTrackedEditOperation(t,n):e.addEditOperation(t,n)},e.prototype.getEditOperations=function(t,n){var a=this._selection.startLineNumber,u=this._selection.endLineNumber;1===this._selection.endColumn&&a!==u&&(u-=1);var l=this._opts,d=l.tabSize,h=l.indentSize,p=l.insertSpaces,f=a===u;if(this._selection.isEmpty()&&/^\s*$/.test(t.getLineContent(a))&&(this._useLastEditRangeForCursorEndPosition=!0),this._opts.useTabStops)for(var g=0,m=0,y=a;y<=u;y++,g=m){m=0;var v=t.getLineContent(y),b=r.o(v);if((!this._opts.isUnshift||0!==v.length&&0!==b)&&(f||this._opts.isUnshift||0!==v.length)){if(-1===b&&(b=v.length),y>1)if(i.a.visibleColumnFromColumn(v,b+1,d)%h!=0&&t.isCheapToTokenize(y-1)){var _=s.a.getRawEnterActionAtPosition(t,y-1,t.getLineMaxColumn(y-1));if(_){if(m=g,_.appendText)for(var w=0,S=_.appendText.length;w=this.el.clientHeight-4&&(r=this.orthogonalEndSash):e.offsetX<=4?r=this.orthogonalStartSash:e.offsetX>=this.el.clientWidth-4&&(r=this.orthogonalEndSash),r&&(n=!0,e.__orthogonalSashEvent=!0,r.onMouseDown(e))}if(this.state){for(var o=0,s=Object(d.w)("iframe");o=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},f=function(e,t){return function(n,r){t(n,r,e)}},g=function(){function e(e,t,n){void 0===n&&(n=i.b),this._editor=e,this._modeService=t,this._openerService=n,this._onDidRenderCodeBlock=new l.a,this.onDidRenderCodeBlock=this._onDidRenderCodeBlock.event}return e.prototype.getOptions=function(e){var t=this;return{codeBlockRenderer:function(e,n){var r=null;if(e)r=t._modeService.getModeIdForLanguageName(e);else{var i=t._editor.getModel();i&&(r=i.getLanguageIdentifier().language)}return t._modeService.triggerMode(r||""),Promise.resolve(!0).then(function(e){var t=h.y.getPromise(r||"");return t?t.then(function(e){return Object(u.b)(n,e)}):Object(u.b)(n,void 0)}).then(function(e){return''+e+""})},codeBlockRenderCallback:function(){return t._onDidRenderCodeBlock.fire()},actionHandler:{callback:function(e){var n;try{n=a.a.parse(e)}catch(e){}n&&t._openerService&&t._openerService.open(n).catch(s.e)},disposeables:e}}},e.prototype.render=function(e){var t=[];return{element:e?Object(r.b)(e,this.getOptions(t)):document.createElement("span"),dispose:function(){return Object(d.d)(t)}}},e=p([f(1,o.a),f(2,Object(c.d)(i.a))],e)}()},function(e,t,n){"use strict";n.d(t,"b",function(){return v}),n.d(t,"a",function(){return _}),n.d(t,"d",function(){return M}),n.d(t,"c",function(){return x});var r,i=n(1),o=n(7),a=n(6),s=n(36),u=n(17),c=n(43),l=n(133),d=n(177),h=n(150),p=n(74),f=(r=function(e,t){return(r=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)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),g=c.a,m=c.b,y=c.c,v=new(function(){function e(){this._tabFocus=!1,this._onDidChangeTabFocus=new o.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}()),b=Object.hasOwnProperty,_=function(e){function t(t,n){var r=e.call(this)||this;return r._onDidChange=r._register(new o.a),r.onDidChange=r._onDidChange.event,r.isSimpleWidget=t,r._rawOptions=s.g({},n||{}),r._rawOptions.scrollbar=s.g({},r._rawOptions.scrollbar||{}),r._rawOptions.minimap=s.g({},r._rawOptions.minimap||{}),r._rawOptions.find=s.g({},r._rawOptions.find||{}),r._rawOptions.hover=s.g({},r._rawOptions.hover||{}),r._rawOptions.parameterHints=s.g({},r._rawOptions.parameterHints||{}),r._validatedOptions=c.d.validate(r._rawOptions,g),r._isDominatedByLongLines=!1,r._lineNumbersDigitCount=1,r._register(l.a.onDidChangeZoomLevel(function(e){return r._recomputeOptions()})),r._register(v.onDidChangeTabFocus(function(e){return r._recomputeOptions()})),r}return f(t,e),t.prototype.observeReferenceElement=function(e){},t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype._recomputeOptions=function(){var e=this.editor,t=this._computeInternalOptions();e&&e.equals(t)||(this.editor=t,e&&this._onDidChange.fire(e.createChangeEvent(t)))},t.prototype.getRawOptions=function(){return this._rawOptions},t.prototype._computeInternalOptions=function(){var e=this._validatedOptions,t=this._getEnvConfiguration(),n=d.a.createFromRawSettings(this._rawOptions,t.zoomLevel,this.isSimpleWidget),r={outerWidth:t.outerWidth,outerHeight:t.outerHeight,fontInfo:this.readConfiguration(n),extraEditorClassName:t.extraEditorClassName,isDominatedByLongLines:this._isDominatedByLongLines,lineNumbersDigitCount:this._lineNumbersDigitCount,emptySelectionClipboard:t.emptySelectionClipboard,pixelRatio:t.pixelRatio,tabFocusMode:v.getTabFocusMode(),accessibilitySupport:t.accessibilitySupport};return c.f.createInternalEditorOptions(r,e)},t._primitiveArrayEquals=function(e,t){if(e.length!==t.length)return!1;for(var n=0;n 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`.")],default:"recentlyUsed",description:i.a("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")},"editor.suggestFontSize":{type:"integer",default:0,minimum:0,markdownDescription:i.a("suggestFontSize","Font size for the suggest widget. When set to `0`, the value of `#editor.fontSize#` is used.")},"editor.suggestLineHeight":{type:"integer",default:0,minimum:0,markdownDescription:i.a("suggestLineHeight","Line height for the suggest widget. When set to `0`, the value of `#editor.lineHeight#` is used.")},"editor.tabCompletion":{type:"string",default:"off",enum:["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.")},"editor.suggest.filterGraceful":{type:"boolean",default:!0,description:i.a("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:!1,description:i.a("suggest.localityBonus","Controls whether sorting favours words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:!1,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:!0,description:i.a("suggest.snippetsPreventQuickSuggestions","Control whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:g.contribInfo.suggest.showIcons,description:i.a("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.maxVisibleSuggestions":{type:"number",default:g.contribInfo.suggest.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",default:{keyword:!0},markdownDescription:i.a("suggest.filtered","Controls whether some suggestion types should be filtered from IntelliSense. A list of suggestion types can be found here: https://code.visualstudio.com/docs/editor/intellisense#_types-of-completions."),properties:{method:{type:"boolean",default:!0,markdownDescription:i.a("suggest.filtered.method","When set to `false` IntelliSense never shows `method` suggestions.")},function:{type:"boolean",default:!0,markdownDescription:i.a("suggest.filtered.function","When set to `false` IntelliSense never shows `function` suggestions.")},constructor:{type:"boolean",default:!0,markdownDescription:i.a("suggest.filtered.constructor","When set to `false` IntelliSense never shows `constructor` suggestions.")},field:{type:"boolean",default:!0,markdownDescription:i.a("suggest.filtered.field","When set to `false` IntelliSense never shows `field` suggestions.")},variable:{type:"boolean",default:!0,markdownDescription:i.a("suggest.filtered.variable","When set to `false` IntelliSense never shows `variable` suggestions.")},class:{type:"boolean",default:!0,markdownDescription:i.a("suggest.filtered.class","When set to `false` IntelliSense never shows `class` suggestions.")},struct:{type:"boolean",default:!0,markdownDescription:i.a("suggest.filtered.struct","When set to `false` IntelliSense never shows `struct` suggestions.")},interface:{type:"boolean",default:!0,markdownDescription:i.a("suggest.filtered.interface","When set to `false` IntelliSense never shows `interface` suggestions.")},module:{type:"boolean",default:!0,markdownDescription:i.a("suggest.filtered.module","When set to `false` IntelliSense never shows `module` suggestions.")},property:{type:"boolean",default:!0,markdownDescription:i.a("suggest.filtered.property","When set to `false` IntelliSense never shows `property` suggestions.")},event:{type:"boolean",default:!0,markdownDescription:i.a("suggest.filtered.event","When set to `false` IntelliSense never shows `event` suggestions.")},operator:{type:"boolean",default:!0,markdownDescription:i.a("suggest.filtered.operator","When set to `false` IntelliSense never shows `operator` suggestions.")},unit:{type:"boolean",default:!0,markdownDescription:i.a("suggest.filtered.unit","When set to `false` IntelliSense never shows `unit` suggestions.")},value:{type:"boolean",default:!0,markdownDescription:i.a("suggest.filtered.value","When set to `false` IntelliSense never shows `value` suggestions.")},constant:{type:"boolean",default:!0,markdownDescription:i.a("suggest.filtered.constant","When set to `false` IntelliSense never shows `constant` suggestions.")},enum:{type:"boolean",default:!0,markdownDescription:i.a("suggest.filtered.enum","When set to `false` IntelliSense never shows `enum` suggestions.")},enumMember:{type:"boolean",default:!0,markdownDescription:i.a("suggest.filtered.enumMember","When set to `false` IntelliSense never shows `enumMember` suggestions.")},keyword:{type:"boolean",default:!0,markdownDescription:i.a("suggest.filtered.keyword","When set to `false` IntelliSense never shows `keyword` suggestions.")},text:{type:"boolean",default:!0,markdownDescription:i.a("suggest.filtered.text","When set to `false` IntelliSense never shows `text` suggestions.")},color:{type:"boolean",default:!0,markdownDescription:i.a("suggest.filtered.color","When set to `false` IntelliSense never shows `color` suggestions.")},file:{type:"boolean",default:!0,markdownDescription:i.a("suggest.filtered.file","When set to `false` IntelliSense never shows `file` suggestions.")},reference:{type:"boolean",default:!0,markdownDescription:i.a("suggest.filtered.reference","When set to `false` IntelliSense never shows `reference` suggestions.")},customcolor:{type:"boolean",default:!0,markdownDescription:i.a("suggest.filtered.customcolor","When set to `false` IntelliSense never shows `customcolor` suggestions.")},folder:{type:"boolean",default:!0,markdownDescription:i.a("suggest.filtered.folder","When set to `false` IntelliSense never shows `folder` suggestions.")},typeParameter:{type:"boolean",default:!0,markdownDescription:i.a("suggest.filtered.typeParameter","When set to `false` IntelliSense never shows `typeParameter` suggestions.")},snippet:{type:"boolean",default:!0,markdownDescription:i.a("suggest.filtered.snippet","When set to `false` IntelliSense never shows `snippet` suggestions.")}}},"editor.gotoLocation.multiple":{description:i.a("editor.gotoLocation.multiple","Controls the behavior of 'Go To' commands, like Go To Definition, when multiple target locations exist."),type:"string",enum:["peek","gotoAndPeek","goto"],default:g.contribInfo.gotoLocation.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 ignore others")]},"editor.selectionHighlight":{type:"boolean",default:g.contribInfo.selectionHighlight,description:i.a("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")},"editor.occurrencesHighlight":{type:"boolean",default:g.contribInfo.occurrencesHighlight,description:i.a("occurrencesHighlight","Controls whether the editor should highlight semantic symbol occurrences.")},"editor.overviewRulerLanes":{type:"integer",default:3,description:i.a("overviewRulerLanes","Controls the number of decorations that can show up at the same position in the overview ruler.")},"editor.overviewRulerBorder":{type:"boolean",default:g.viewInfo.overviewRulerBorder,description:i.a("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")},"editor.cursorBlinking":{type:"string",enum:["blink","smooth","phase","expand","solid"],default:c.h(g.viewInfo.cursorBlinking),description:i.a("cursorBlinking","Control the cursor animation style.")},"editor.mouseWheelZoom":{type:"boolean",default:g.viewInfo.mouseWheelZoom,markdownDescription:i.a("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")},"editor.cursorSmoothCaretAnimation":{type:"boolean",default:g.viewInfo.cursorSmoothCaretAnimation,description:i.a("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")},"editor.cursorStyle":{type:"string",enum:["block","block-outline","line","line-thin","underline","underline-thin"],default:c.i(g.viewInfo.cursorStyle),description:i.a("cursorStyle","Controls the cursor style.")},"editor.cursorWidth":{type:"integer",default:g.viewInfo.cursorWidth,markdownDescription:i.a("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")},"editor.fontLigatures":{type:"boolean",default:g.viewInfo.fontLigatures,description:i.a("fontLigatures","Enables/Disables font ligatures.")},"editor.hideCursorInOverviewRuler":{type:"boolean",default:g.viewInfo.hideCursorInOverviewRuler,description:i.a("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")},"editor.renderWhitespace":{type:"string",enum:["none","boundary","all"],enumDescriptions:["",i.a("renderWhiteSpace.boundary","Render whitespace characters except for single spaces between words."),""],default:g.viewInfo.renderWhitespace,description:i.a("renderWhitespace","Controls how the editor should render whitespace characters.")},"editor.renderControlCharacters":{type:"boolean",default:g.viewInfo.renderControlCharacters,description:i.a("renderControlCharacters","Controls whether the editor should render control characters.")},"editor.renderIndentGuides":{type:"boolean",default:g.viewInfo.renderIndentGuides,description:i.a("renderIndentGuides","Controls whether the editor should render indent guides.")},"editor.highlightActiveIndentGuide":{type:"boolean",default:g.viewInfo.highlightActiveIndentGuide,description:i.a("highlightActiveIndentGuide","Controls whether the editor should highlight the active indent guide.")},"editor.renderLineHighlight":{type:"string",enum:["none","gutter","line","all"],enumDescriptions:["","","",i.a("renderLineHighlight.all","Highlights both the gutter and the current line.")],default:g.viewInfo.renderLineHighlight,description:i.a("renderLineHighlight","Controls how the editor should render the current line highlight.")},"editor.codeLens":{type:"boolean",default:g.contribInfo.codeLens,description:i.a("codeLens","Controls whether the editor shows CodeLens.")},"editor.folding":{type:"boolean",default:g.contribInfo.folding,description:i.a("folding","Controls whether the editor has code folding enabled.")},"editor.foldingStrategy":{type:"string",enum:["auto","indentation"],default:g.contribInfo.foldingStrategy,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.")},"editor.showFoldingControls":{type:"string",enum:["always","mouseover"],default:g.contribInfo.showFoldingControls,description:i.a("showFoldingControls","Controls whether the fold controls on the gutter are automatically hidden.")},"editor.matchBrackets":{type:"boolean",default:g.contribInfo.matchBrackets,description:i.a("matchBrackets","Highlight matching brackets when one of them is selected.")},"editor.glyphMargin":{type:"boolean",default:g.viewInfo.glyphMargin,description:i.a("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")},"editor.useTabStops":{type:"boolean",default:g.useTabStops,description:i.a("useTabStops","Inserting and deleting whitespace follows tab stops.")},"editor.trimAutoWhitespace":{type:"boolean",default:y.trimAutoWhitespace,description:i.a("trimAutoWhitespace","Remove trailing auto inserted whitespace.")},"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.dragAndDrop":{type:"boolean",default:g.dragAndDrop,description:i.a("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")},"editor.accessibilitySupport":{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:g.accessibilitySupport,description:i.a("accessibilitySupport","Controls whether the editor should run in a mode where it is optimized for screen readers.")},"editor.showUnused":{type:"boolean",default:g.showUnused,description:i.a("showUnused","Controls fading out of unused code.")},"editor.links":{type:"boolean",default:g.contribInfo.links,description:i.a("links","Controls whether the editor should detect links and make them clickable.")},"editor.colorDecorators":{type:"boolean",default:g.contribInfo.colorDecorators,description:i.a("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")},"editor.lightbulb.enabled":{type:"boolean",default:g.contribInfo.lightbulbEnabled,description:i.a("codeActions","Enables the code action lightbulb in the editor.")},"editor.maxTokenizationLineLength":{type:"integer",default:2e4,description:i.a("maxTokenizationLineLength","Lines above this length will not be tokenized for performance reasons")},"editor.codeActionsOnSave":{type:"object",properties:{"source.organizeImports":{type:"boolean",description:i.a("codeActionsOnSave.organizeImports","Controls whether organize imports action should be run on file save.")},"source.fixAll":{type:"boolean",description:i.a("codeActionsOnSave.fixAll","Controls whether auto fix action should be run on file save.")}},additionalProperties:{type:"boolean"},default:g.contribInfo.codeActionsOnSave,description:i.a("codeActionsOnSave","Code action kinds to be run on save.")},"editor.codeActionsOnSaveTimeout":{type:"number",default:g.contribInfo.codeActionsOnSaveTimeout,description:i.a("codeActionsOnSaveTimeout","Timeout in milliseconds after which the code actions that are run on save are cancelled.")},"editor.selectionClipboard":{type:"boolean",default:g.contribInfo.selectionClipboard,description:i.a("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:u.c},"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.")},"editor.largeFileOptimizations":{type:"boolean",default:y.largeFileOptimizations,description:i.a("largeFileOptimizations","Special handling for large files to disable certain memory intensive features.")},"diffEditor.renderIndicators":{type:"boolean",default:!0,description:i.a("renderIndicators","Controls whether the diff editor shows +/- indicators for added/removed changes.")}}},C=null;function I(){return null===C&&(C=Object.create(null),Object.keys(S.properties).forEach(function(e){C[e]=!0})),C}function M(e){return I()["editor."+e]||!1}function x(e){return I()["diffEditor."+e]||!1}w.registerConfiguration(S)},function(e,t,n){"use strict";n.d(t,"a",function(){return h}),n.d(t,"b",function(){return p});var r,i=n(17),o=n(43),a=n(133),s=(r=function(e,t){return(r=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)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=i.d?1.5:1.35;function c(e,t){if("number"==typeof e)return e;if(void 0===e)return t;var n=parseFloat(e);return isNaN(n)?t:n}function l(e,t,n){return en?n:e}function d(e,t){return"string"!=typeof e?t:e}var h=function(){function e(e){this.zoomLevel=e.zoomLevel,this.fontFamily=String(e.fontFamily),this.fontWeight=String(e.fontWeight),this.fontSize=e.fontSize,this.lineHeight=0|e.lineHeight,this.letterSpacing=e.letterSpacing}return e.createFromRawSettings=function(t,n,r){void 0===r&&(r=!1);var i=d(t.fontFamily,o.b.fontFamily),s=d(t.fontWeight,o.b.fontWeight),h=c(t.fontSize,o.b.fontSize);0===(h=l(h,0,100))?h=o.b.fontSize:h<8&&(h=8);var p=function(e,t){if("number"==typeof e)return Math.round(e);if(void 0===e)return t;var n=parseInt(e);return isNaN(n)?t:n}(t.lineHeight,0);0===(p=l(p,0,150))?p=Math.round(u*h):p<8&&(p=8);var f=c(t.letterSpacing,0);f=l(f,-5,20);var g=1+(r?0:.1*a.a.getZoomLevel());return new e({zoomLevel:n,fontFamily:i,fontWeight:s,fontSize:h*=g,lineHeight:p*=g,letterSpacing:f})},e.prototype.getId=function(){return this.zoomLevel+"-"+this.fontFamily+"-"+this.fontWeight+"-"+this.fontSize+"-"+this.lineHeight+"-"+this.letterSpacing},e.prototype.getMassagedFontFamily=function(){return/[,"']/.test(this.fontFamily)?this.fontFamily:/[+ ]/.test(this.fontFamily)?'"'+this.fontFamily+'"':this.fontFamily},e}(),p=function(e){function t(t,n){var r=e.call(this,t)||this;return r.isTrusted=n,r.isMonospace=t.isMonospace,r.typicalHalfwidthCharacterWidth=t.typicalHalfwidthCharacterWidth,r.typicalFullwidthCharacterWidth=t.typicalFullwidthCharacterWidth,r.canUseHalfwidthRightwardsArrow=t.canUseHalfwidthRightwardsArrow,r.spaceWidth=t.spaceWidth,r.maxDigitWidth=t.maxDigitWidth,r}return s(t,e),t.prototype.equals=function(e){return this.fontFamily===e.fontFamily&&this.fontWeight===e.fontWeight&&this.fontSize===e.fontSize&&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.maxDigitWidth===e.maxDigitWidth},t}(h)},function(e,t,n){"use strict";n.d(t,"a",function(){return m});n(1181);var r,i=n(1),o=n(18),a=n(6),s=n(70),u=n(4),c=n(5),l=n(13),d=n(22),h=n(10),p=(r=function(e,t){return(r=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)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),f=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},g=function(e,t){return function(n,r){t(n,r,e)}},m=function(e){function t(n,r){var i=e.call(this)||this;return i._messageListeners=[],i._editor=n,i._visible=t.MESSAGE_VISIBLE.bindTo(r),i._register(i._editor.onDidAttemptReadOnlyEdit(function(){return i._onDidAttemptReadOnlyEdit()})),i}return p(t,e),t.get=function(e){return e.getContribution(t._id)},t.prototype.getId=function(){return t._id},t.prototype.dispose=function(){e.prototype.dispose.call(this),this._visible.reset()},t.prototype.showMessage=function(e,t){var n,r=this;Object(s.a)(e),this._visible.set(!0),Object(a.d)(this._messageWidget),this._messageListeners=Object(a.d)(this._messageListeners),this._messageWidget=new v(this._editor,t,e),this._messageListeners.push(this._editor.onDidBlurEditorText(function(){return r.closeMessage()})),this._messageListeners.push(this._editor.onDidChangeCursorPosition(function(){return r.closeMessage()})),this._messageListeners.push(this._editor.onDidDispose(function(){return r.closeMessage()})),this._messageListeners.push(this._editor.onDidChangeModel(function(){return r.closeMessage()})),this._messageListeners.push(new o.e(function(){return r.closeMessage()},3e3)),this._messageListeners.push(this._editor.onMouseMove(function(e){e.target.position&&(n?n.containsPosition(e.target.position)||r.closeMessage():n=new u.a(t.lineNumber-3,1,e.target.position.lineNumber+3,1))}))},t.prototype.closeMessage=function(){this._visible.reset(),this._messageListeners=Object(a.d)(this._messageListeners),this._messageListeners.push(v.fadeOut(this._messageWidget))},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 l.f("messageVisible",!1),t=f([g(1,l.e)],t)}(a.a),y=c.c.bindToContribution(m.get);Object(c.g)(new y({id:"leaveEditorMessage",precondition:m.MESSAGE_VISIBLE,handler:function(e){return e.closeMessage()},kbOpts:{weight:130,primary:9}}));var v=function(){function e(e,t,n){var r=t.lineNumber,i=t.column;this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(r,r,0),this._position={lineNumber:r,column:i-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 a=document.createElement("div");a.classList.add("anchor"),this._domNode.appendChild(a),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]}},e}();Object(c.h)(m),Object(d.e)(function(e,t){var n=e.getColor(h.T);if(n){var r=e.type===d.b?2:1;t.addRule(".monaco-editor .monaco-editor-overlaymessage .anchor { border-top-color: "+n+"; }"),t.addRule(".monaco-editor .monaco-editor-overlaymessage .message { border: "+r+"px solid "+n+"; }")}var i=e.getColor(h.S);i&&t.addRule(".monaco-editor .monaco-editor-overlaymessage .message { background-color: "+i+"; }");var o=e.getColor(h.U);o&&t.addRule(".monaco-editor .monaco-editor-overlaymessage .message { color: "+o+"; }")})},function(e,t,n){"use strict";n.r(t);var r=n(6),i=n(9),o=n(5),a=n(4),s=n(25),u=n(8),c=n(62),l=n(13),d=n(193),h=n(21),p=(n(1301),n(69)),f=n(29),g=n(241),m=n(217),y=n(23),v=n(153),b=n(1),_=n(57),w=n(41),S=n(35);var C=function(){function e(e){this._delegates=e}return e.prototype.resolve=function(e){for(var t=0,n=this._delegates;t=0){for(var r=[],i=0,o=this._placeholderGroups[this._placeholderGroupsIdx];i0&&this._editor.executeEdits("snippet.placeholderTransform",r)}var d=!1;!0===t&&this._placeholderGroupsIdx0&&(this._placeholderGroupsIdx-=1,d=!0);var h=this._editor.getModel().changeDecorations(function(t){for(var r=new Set,i=[],o=0,a=n._placeholderGroups[n._placeholderGroupsIdx];o0,t.changeDecorationOptions(c,u.isFinalTabstop?e._decor.activeFinal:e._decor.active),r.add(u);for(var h=0,p=n._snippet.enclosingPlaceholders(u);h0},enumerable:!0,configurable:!0}),e.prototype.computePossibleSelections=function(){for(var e=new Map,t=0,n=this._placeholderGroups;t0&&S!==l.getLineFirstNonWhitespaceColumn(j.positionLineNumber))&&e.adjustWhitespace(l,U,B),B.resolveVariables(new C([d,new x(h,P,T.length),new I(l,j),new N(l),new E,new L(f)]));var W=l.getOffsetAt(U)+b;b+=B.toString().length-l.getValueLengthInRange(F),u[P]=p.a.replace(F,B.toString()),c[P]=new D(t,B,W)}return{edits:u,snippets:c}},e.prototype.dispose=function(){Object(r.d)(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=this._editor.getModel(),r=e.createEditsAndSnippets(this._editor,this._template,this._overwriteBefore,this._overwriteAfter,!1,this._adjustWhitespace),i=r.edits,o=r.snippets;this._snippets=o;var a=n.pushEditOperations(this._editor.getSelections(),i,function(e){return t._snippets[0].hasPlaceholder?t._move(!0):e.map(function(e){return s.a.fromPositions(e.range.getEndPosition())})});this._editor.setSelections(a),this._editor.revealRange(a[0])}},e.prototype.merge=function(t,n,r,i){var o=this;if(void 0===n&&(n=0),void 0===r&&(r=0),void 0===i&&(i=!0),this._editor.hasModel()){this._templateMerges.push([this._snippets[0]._nestingLevel,this._snippets[0]._placeholderGroupsIdx,t]);var a=e.createEditsAndSnippets(this._editor,t,n,r,!0,i),u=a.edits,c=a.snippets;this._editor.setSelections(this._editor.getModel().pushEditOperations(this._editor.getSelections(),u,function(e){for(var t=0,n=o._snippets;t0},e}();n.d(t,"SnippetController2",function(){return P});var A=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},j=function(e,t){return function(n,r){t(n,r,e)}},P=function(){function e(t,n,r){this._editor=t,this._logService=n,this._snippetListener=[],this._inSnippet=e.InSnippetMode.bindTo(r),this._hasNextTabstop=e.HasNextTabstop.bindTo(r),this._hasPrevTabstop=e.HasPrevTabstop.bindTo(r)}return e.get=function(e){return e.getContribution("snippetController2")},e.prototype.dispose=function(){this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),Object(r.d)(this._session)},e.prototype.getId=function(){return"snippetController2"},e.prototype.insert=function(e,t,n,r,i,o){void 0===t&&(t=0),void 0===n&&(n=0),void 0===r&&(r=!0),void 0===i&&(i=!0),void 0===o&&(o=!0);try{this._doInsert(e,t,n,r,i,o)}catch(t){this.cancel(),this._logService.error(t),this._logService.error("snippet_error"),this._logService.error("insert_template=",e),this._logService.error("existing_template=",this._session?this._session._logInfo():"")}},e.prototype._doInsert=function(e,t,n,i,o,a){var s=this;void 0===t&&(t=0),void 0===n&&(n=0),void 0===i&&(i=!0),void 0===o&&(o=!0),void 0===a&&(a=!0),this._editor.hasModel()&&(this._snippetListener=Object(r.d)(this._snippetListener),i&&this._editor.getModel().pushStackElement(),this._session?this._session.merge(e,t,n,a):(this._modelVersionId=this._editor.getModel().getAlternativeVersionId(),this._session=new O(this._editor,e,t,n,a),this._session.insert()),o&&this._editor.getModel().pushStackElement(),this._updateState(),this._snippetListener=[this._editor.onDidChangeModelContent(function(e){return e.isFlush&&s.cancel()}),this._editor.onDidChangeModel(function(){return s.cancel()}),this._editor.onDidChangeCursorSelection(function(){return s._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 s.a.fromPositions(e.getStartPosition())}));var n=t.options[0];Object(c.f)(this._editor,t.options.map(function(t,r){return{kind:13,label:t.value,insertText:t.value,sortText:Object(i.D)("a",r+1),range:a.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(){for(;this._inSnippet.get();)this.next()},e.prototype.cancel=function(e){void 0===e&&(e=!1),this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),Object(r.d)(this._snippetListener),Object(r.d)(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.InSnippetMode=new l.f("inSnippetMode",!1),e.HasNextTabstop=new l.f("hasNextTabstop",!1),e.HasPrevTabstop=new l.f("hasPrevTabstop",!1),e=A([j(1,d.a),j(2,l.e)],e)}();Object(o.h)(P);var R=o.c.bindToContribution(P.get);Object(o.g)(new R({id:"jumpToNextSnippetPlaceholder",precondition:l.d.and(P.InSnippetMode,P.HasNextTabstop),handler:function(e){return e.next()},kbOpts:{weight:130,kbExpr:u.a.editorTextFocus,primary:2}})),Object(o.g)(new R({id:"jumpToPrevSnippetPlaceholder",precondition:l.d.and(P.InSnippetMode,P.HasPrevTabstop),handler:function(e){return e.prev()},kbOpts:{weight:130,kbExpr:u.a.editorTextFocus,primary:1026}})),Object(o.g)(new R({id:"leaveSnippet",precondition:P.InSnippetMode,handler:function(e){return e.cancel(!0)},kbOpts:{weight:130,kbExpr:u.a.editorTextFocus,primary:9,secondary:[1033]}})),Object(o.g)(new R({id:"acceptSnippet",precondition:P.InSnippetMode,handler:function(e){return e.finish()}}))},function(e,t,n){"use strict";var r,i,o,a=n(2),s=n(15),u=n(7),c=n(6),l=n(60),d=n(71),h=(n(1250),n(212)),p=n(4),f=n(29),g=n(132),m=n(101),y=n(215),v=(n(1254),n(9)),b=n(36),_={badgeBackground:s.a.fromHex("#4D4D4D"),badgeForeground:s.a.fromHex("#FFFFFF")},w=function(){function e(e,t){this.options=t||Object.create(null),Object(b.g)(this.options,_,!1),this.badgeBackground=this.options.badgeBackground,this.badgeForeground=this.options.badgeForeground,this.badgeBorder=this.options.badgeBorder,this.element=Object(a.m)(e,Object(a.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(v.p)(this.countFormat,this.count),this.element.title=Object(v.p)(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():null,t=this.badgeForeground?this.badgeForeground.toString():null,n=this.badgeBorder?this.badgeBorder.toString():null;this.element.style.backgroundColor=e,this.element.style.color=t,this.element.style.borderWidth=n?"1px":null,this.element.style.borderStyle=n?"solid":null,this.element.style.borderColor=n}},e}(),S=n(216),C=n(22),I=n(141),M=n(1),x=n(243),N=n(23),E=n(66),L=n(81),T=(r=function(e,t){return(r=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)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),k=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},D=function(e,t){return function(n,r){t(n,r,e)}},O=function(){function e(e){this._resolverService=e}return e.prototype.hasChildren=function(e){return e instanceof m.c||e instanceof m.a&&!e.failure},e.prototype.getChildren=function(e){if(e instanceof m.c)return e.groups;if(e instanceof m.a)return e.resolve(this._resolverService).then(function(e){return e.children});throw new Error("bad tree")},e=k([D(0,g.a)],e)}(),A=function(){function e(){}return e.prototype.getHeight=function(){return 23},e.prototype.getTemplateId=function(e){return e instanceof m.a?z.id:B.id},e}(),j=function(){function e(e){this._keybindingService=e}return e.prototype.getKeyboardNavigationLabel=function(e){return Object(d.b)(e.uri)},e.prototype.mightProducePrintableCharacter=function(e){return this._keybindingService.mightProducePrintableCharacter(e)},e=k([D(0,E.a)],e)}(),P=function(){function e(){}return e.prototype.getId=function(e){return e.id},e}(),R=function(e){function t(t,n,r){var i=e.call(this)||this;i._uriLabel=n;var o=document.createElement("div");return a.f(o,"reference-file"),i.file=i._register(new y.a(o,{supportHighlights:!0})),i.badge=new w(a.m(o,a.a(".count"))),i._register(Object(I.a)(i.badge,r)),t.appendChild(o),i}return T(t,e),t.prototype.set=function(e,t){var n=Object(d.d)(e.uri);this.file.setLabel(Object(x.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(M.a)("referencesFailre","Failed to resolve file.")):r>1?this.badge.setTitleFormat(Object(M.a)("referencesCount","{0} references",r)):this.badge.setTitleFormat(Object(M.a)("referenceCount","{0} reference",r))},t=k([D(1,S.a),D(2,C.c)],t)}(c.a),z=function(){function e(t){this._instantiationService=t,this.templateId=e.id}return e.prototype.renderTemplate=function(e){return this._instantiationService.createInstance(R,e)},e.prototype.renderElement=function(e,t,n){n.set(e.element,Object(L.c)(e.filterData))},e.prototype.disposeTemplate=function(e){e.dispose()},e.id="FileReferencesRenderer",e=k([D(0,N.a)],e)}(),F=function(){function e(e){var t=document.createElement("div");this.before=document.createElement("span"),this.inside=document.createElement("span"),this.after=document.createElement("span"),a.f(this.inside,"referenceMatch"),a.f(t,"reference"),t.appendChild(this.before),t.appendChild(this.inside),t.appendChild(this.after),e.appendChild(t)}return e.prototype.set=function(e){var t=e.parent.preview,n=t&&t.preview(e.range);if(n){var r=n.before,i=n.inside,o=n.after;this.before.innerHTML=Object(v.m)(r),this.inside.innerHTML=Object(v.m)(i),this.after.innerHTML=Object(v.m)(o)}},e}(),B=function(){function e(){this.templateId=e.id}return e.prototype.renderTemplate=function(e){return new F(e)},e.prototype.renderElement=function(e,t,n){n.set(e.element)},e.prototype.disposeTemplate=function(){},e.id="OneReferenceRenderer",e}(),U=function(){function e(){}return e.prototype.getAriaLabel=function(e){return e instanceof m.a?e.getAriaMessage():e instanceof m.b?e.getAriaMessage():null},e}(),W=n(13),H=n(194),V=n(10),q=n(119),Y=(n(1260),n(24)),G=n(125),Z=n(21),Q=n(174),K=n(42),J=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])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),X={separatorBorder:s.a.transparent};!function(e){e[e.Idle=0]="Idle",e[e.Busy=1]="Busy"}(i||(i={})),function(e){e.Distribute={type:"distribute"},e.Split=function(e){return{type:"split",index:e}}}(o||(o={}));var $=function(e){function t(t,n){void 0===n&&(n={});var r=e.call(this)||this;return r.size=0,r.contentSize=0,r.proportions=void 0,r.viewItems=[],r.sashItems=[],r.state=i.Idle,r._onDidSashChange=r._register(new u.a),r.onDidSashChange=r._onDidSashChange.event,r._onDidSashReset=r._register(new u.a),r.orientation=Y.i(n.orientation)?0:n.orientation,r.inverseAltBehavior=!!n.inverseAltBehavior,r.proportionalLayout=!!Y.i(n.proportionalLayout)||!!n.proportionalLayout,r.el=document.createElement("div"),a.f(r.el,"monaco-split-view2"),a.f(r.el,0===r.orientation?"vertical":"horizontal"),t.appendChild(r.el),r.sashContainer=a.m(r.el,a.a(".sash-container")),r.viewContainer=a.m(r.el,a.a(".split-view-container")),r.style(n.styles||X),r}return J(t,e),Object.defineProperty(t.prototype,"orthogonalStartSash",{get:function(){return this._orthogonalStartSash},set:function(e){for(var t=0,n=this.sashItems;t1){var m=0===this.orientation?1:0,y=0===this.orientation?{getHorizontalSashTop:function(e){return r.getSashPosition(e)}}:{getVerticalSashLeft:function(e){return r.getSashPosition(e)}},v=new Q.a(this.sashContainer,y,{orientation:m,orthogonalStartSash:this.orthogonalStartSash,orthogonalEndSash:this.orthogonalEndSash}),b=0===this.orientation?function(e){return{sash:v,start:e.startY,current:e.currentY,alt:e.altKey}}:function(e){return{sash:v,start:e.startX,current:e.currentX,alt:e.altKey}},_=u.b.map(v.onDidStart,b)(this.onSashStart,this),w=u.b.map(v.onDidChange,b)(this.onSashChange,this),S=u.b.map(v.onDidEnd,function(){return Object(Z.j)(r.sashItems,function(e){return e.sash===v})})(this.onSashEnd,this),C=v.onDidReset(function(){return r._onDidSashReset.fire(Object(Z.j)(r.sashItems,function(e){return e.sash===v}))}),I=Object(c.c)([_,w,S,C,v]),M={sash:v,disposable:I};this.sashItems.splice(n-1,0,M)}o.appendChild(e.element),"number"!=typeof t&&"split"===t.type&&(f=t.index),this.relayout(n,f),this.state=i.Idle,"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),r="number"==typeof e?[e]:void 0,i="number"==typeof t?[t]:void 0;this.resize(this.viewItems.length-1,this.size-n,void 0,r,i),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions()},t.prototype.layout=function(e){var t=this,n=Math.max(this.size,this.contentSize);if(this.size=e,this.proportions)for(var r=0;r0&&(this.proportions=this.viewItems.map(function(t){return t.size/e.contentSize}))},t.prototype.onSashStart=function(e){var t=this,n=e.sash,r=e.start,i=e.alt,o=Object(Z.j)(this.sashItems,function(e){return e.sash===n}),a=Object(c.c)([Object(K.a)(document.body,"keydown")(function(e){return s(t.sashDragState.current,e.altKey)}),Object(K.a)(document.body,"keyup")(function(){return s(t.sashDragState.current,!1)})]),s=function(e,n){var r,i=t.viewItems.map(function(e){return e.size}),s=Number.NEGATIVE_INFINITY,u=Number.POSITIVE_INFINITY;(t.inverseAltBehavior&&(n=!n),n)&&(o===t.sashItems.length-1?(s=((r=t.viewItems[o]).view.minimumSize-r.size)/2,u=(r.view.maximumSize-r.size)/2):(s=((r=t.viewItems[o+1]).size-r.view.maximumSize)/2,u=(r.size-r.view.minimumSize)/2));t.sashDragState={start:e,current:e,index:o,sizes:i,minDelta:s,maxDelta:u,alt:n,disposable:a}};s(r,i)},t.prototype.onSashChange=function(e){var t=e.current,n=this.sashDragState,r=n.index,i=n.start,o=n.sizes,a=n.alt,s=n.minDelta,u=n.maxDelta;this.sashDragState.current=t;var c=t-i,l=this.resize(r,c,o,void 0,void 0,s,u);if(a){var d=r===this.sashItems.length-1,h=this.viewItems.map(function(e){return e.size}),p=d?r:r+1,f=this.viewItems[p],g=f.size-f.view.maximumSize,m=f.size-f.view.minimumSize,y=d?r-1:r+1;this.resize(y,-l,h,void 0,void 0,g,m)}this.distributeEmptySpace(),this.layoutViews()},t.prototype.onSashEnd=function(e){this._onDidSashChange.fire(e),this.sashDragState.disposable.dispose(),this.saveProportions()},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(G.a)(t,e.view.minimumSize,e.view.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!==i.Idle)throw new Error("Cant modify splitview");if(this.state=i.Busy,!(e<0||e>=this.viewItems.length)){var r=this.viewItems[e];t=Math.round(t);var o=(t=Object(G.a)(t,r.view.minimumSize,r.view.maximumSize))-r.size;if(0!==o&&e0){var l=Object(Z.r)(e-1,-1),d=l.reduce(function(e,t){return e+(n.viewItems[t].size-n.viewItems[t].view.minimumSize)},0),h=l.reduce(function(e,t){return e+(n.viewItems[t].view.maximumSize-n.viewItems[t].size)},0),p=Object(G.a)(-o,-d,h);this.resize(e-1,p)}this.distributeEmptySpace(),this.layoutViews(),this.saveProportions(),this.state=i.Idle}},t.prototype.distributeViewSizes=function(){for(var e=Math.floor(this.size/this.viewItems.length),t=0;t=this.viewItems.length?-1:this.viewItems[e].size},t.prototype.resize=function(e,t,n,r,i,o,a){var s=this;if(void 0===n&&(n=this.viewItems.map(function(e){return e.size})),void 0===o&&(o=Number.NEGATIVE_INFINITY),void 0===a&&(a=Number.POSITIVE_INFINITY),e<0||e>=this.viewItems.length)return 0;var u=Object(Z.r)(e,-1),c=Object(Z.r)(e+1,this.viewItems.length);if(i)for(var l=0,d=i;l=0;n--){var r=this.viewItems[n],i=Object(G.a)(r.size+t,r.view.minimumSize,r.view.maximumSize);t-=i-r.size,r.size=i}},t.prototype.layoutViews=function(){this.contentSize=this.viewItems.reduce(function(e,t){return e+t.size},0),this.viewItems.forEach(function(e){return e.layout()}),this.sashItems.forEach(function(e){return e.sash.layout()});var e=!1,t=this.viewItems.map(function(t){return e=t.size-t.view.minimumSize>0||e});e=!1;var n=this.viewItems.map(function(t){return e=t.view.maximumSize-t.size>0||e}),r=this.viewItems.slice().reverse();e=!1;var i=r.map(function(t){return e=t.size-t.view.minimumSize>0||e}).reverse();e=!1;var o=r.map(function(t){return e=t.view.maximumSize-t.size>0||e}).reverse();this.sashItems.forEach(function(e,r){var a=!(t[r]&&o[r+1]),s=!(n[r]&&i[r+1]);e.sash.state=a&&s?0:a&&!s?1:!a&&s?2:3})},t.prototype.getSashPosition=function(e){for(var t=0,n=0;n=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},ne=function(e,t){return function(n,r){t(n,r,e)}},re=function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(a,s)}u((r=r.apply(e,t||[])).next())})},ie=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0?e.children[0]:void 0},t.prototype._revealReference=function(e,t){return re(this,void 0,void 0,function(){var n,r,i,o,a;return ie(this,function(s){switch(s.label){case 0:return this._revealedReference===e?[2]:(this._revealedReference=e,e.uri.scheme!==l.a.inMemory?this.setTitle(Object(d.c)(e.uri),this._uriLabel.getUriLabel(Object(d.d)(e.uri))):this.setTitle(M.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:s.sent(),this._tree.reveal(e),s.label=3;case 3:return[4,n];case 4:return r=s.sent(),this._model?(Object(c.d)(this._previewModelReference),(i=r.object)?(o=this._preview.getModel()===i.textEditorModel?0:1,a=p.a.lift(e.range).collapseToStart(),this._previewModelReference=r,this._preview.setModel(i.textEditorModel),this._preview.setSelection(a),this._preview.revealRangeInCenter(a,o)):(this._preview.setModel(this._previewNotAvailableMessage),r.dispose()),[2]):(r.dispose(),[2])}})})},t=te([ne(3,C.c),ne(4,g.a),ne(5,N.a),ne(6,q.a),ne(7,S.a)],t)}(q.c),ce=Object(V.zb)("peekViewTitle.background",{dark:"#1E1E1E",light:"#FFFFFF",hc:"#0C141F"},M.a("peekViewTitleBackground","Background color of the peek view title area.")),le=Object(V.zb)("peekViewTitleLabel.foreground",{dark:"#FFFFFF",light:"#333333",hc:"#FFFFFF"},M.a("peekViewTitleForeground","Color of the peek view title.")),de=Object(V.zb)("peekViewTitleDescription.foreground",{dark:"#ccccccb3",light:"#6c6c6cb3",hc:"#FFFFFF99"},M.a("peekViewTitleInfoForeground","Color of the peek view title info.")),he=Object(V.zb)("peekView.border",{dark:"#007acc",light:"#007acc",hc:V.e},M.a("peekViewBorder","Color of the peek view borders and arrow.")),pe=Object(V.zb)("peekViewResult.background",{dark:"#252526",light:"#F3F3F3",hc:s.a.black},M.a("peekViewResultsBackground","Background color of the peek view result list.")),fe=Object(V.zb)("peekViewResult.lineForeground",{dark:"#bbbbbb",light:"#646465",hc:s.a.white},M.a("peekViewResultsMatchForeground","Foreground color for line nodes in the peek view result list.")),ge=Object(V.zb)("peekViewResult.fileForeground",{dark:s.a.white,light:"#1E1E1E",hc:s.a.white},M.a("peekViewResultsFileForeground","Foreground color for file nodes in the peek view result list.")),me=Object(V.zb)("peekViewResult.selectionBackground",{dark:"#3399ff33",light:"#3399ff33",hc:null},M.a("peekViewResultsSelectionBackground","Background color of the selected entry in the peek view result list.")),ye=Object(V.zb)("peekViewResult.selectionForeground",{dark:s.a.white,light:"#6C6C6C",hc:s.a.white},M.a("peekViewResultsSelectionForeground","Foreground color of the selected entry in the peek view result list.")),ve=Object(V.zb)("peekViewEditor.background",{dark:"#001F33",light:"#F2F8FC",hc:s.a.black},M.a("peekViewEditorBackground","Background color of the peek view editor.")),be=Object(V.zb)("peekViewEditorGutter.background",{dark:ve,light:ve,hc:ve},M.a("peekViewEditorGutterBackground","Background color of the gutter in the peek view editor.")),_e=Object(V.zb)("peekViewResult.matchHighlightBackground",{dark:"#ea5c004d",light:"#ea5c004d",hc:null},M.a("peekViewResultsMatchHighlight","Match highlight color in the peek view result list.")),we=Object(V.zb)("peekViewEditor.matchHighlightBackground",{dark:"#ff8f0099",light:"#f5d802de",hc:null},M.a("peekViewEditorMatchHighlight","Match highlight color in the peek view editor.")),Se=Object(V.zb)("peekViewEditor.matchHighlightBorder",{dark:null,light:null,hc:V.b},M.a("peekViewEditorMatchHighlightBorder","Match highlight border in the peek view editor."));Object(C.e)(function(e,t){var n=e.getColor(_e);n&&t.addRule(".monaco-editor .reference-zone-widget .ref-tree .referenceMatch { background-color: "+n+"; }");var r=e.getColor(we);r&&t.addRule(".monaco-editor .reference-zone-widget .preview .reference-decoration { background-color: "+r+"; }");var i=e.getColor(Se);i&&t.addRule(".monaco-editor .reference-zone-widget .preview .reference-decoration { border: 2px solid "+i+"; box-sizing: border-box; }");var o=e.getColor(V.b);o&&t.addRule(".monaco-editor .reference-zone-widget .ref-tree .referenceMatch { border: 1px dotted "+o+"; box-sizing: border-box; }");var a=e.getColor(pe);a&&t.addRule(".monaco-editor .reference-zone-widget .ref-tree { background-color: "+a+"; }");var s=e.getColor(fe);s&&t.addRule(".monaco-editor .reference-zone-widget .ref-tree { color: "+s+"; }");var u=e.getColor(ge);u&&t.addRule(".monaco-editor .reference-zone-widget .ref-tree .reference-file { color: "+u+"; }");var c=e.getColor(me);c&&t.addRule(".monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .monaco-list-rows > .monaco-list-row.selected:not(.highlighted) { background-color: "+c+"; }");var l=e.getColor(ye);l&&t.addRule(".monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .monaco-list-rows > .monaco-list-row.selected:not(.highlighted) { color: "+l+" !important; }");var d=e.getColor(ve);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(be);h&&t.addRule(".monaco-editor .reference-zone-widget .preview .monaco-editor .margin {\tbackground-color: "+h+";}")})},function(e,t,n){"use strict";var r=n(36),i=n(6),o=n(86),a=n(2),s=n(7),u=n(42),c=n(104),l=n(112);function d(e,t){for(var n=[],r=0,i=t;r=o.range.end)){if(e.end=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},S={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},C=function(){function e(e){this.elements=e}return e.prototype.update=function(){},e.prototype.getData=function(){return this.elements},e}(),I=function(){function e(e){this.elements=e}return e.prototype.update=function(){},e.prototype.getData=function(){return this.elements},e}(),M=function(){function e(){this.types=[],this.files=[]}return e.prototype.update=function(e){var t;if(e.types&&(t=this.types).splice.apply(t,[0,this.types.length].concat(e.types)),e.files){this.files.splice(0,this.files.length);for(var n=0;n=this.items.length?(this.rangeMap=new p,this.rangeMap.splice(0,0,y),this.items=y,d=[]):(this.rangeMap.splice(e,t,y),d=(r=this.items).splice.apply(r,[e,t].concat(y)));var v=n.length-t,b=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),_=h(g,v),w=l.a.intersect(b,_);for(c=w.start;c=-1&&en&&(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){for(var t=e;t instanceof HTMLElement&&t!==this.rowsContainer;){var n=t.getAttribute("data-index");if(n){var r=Number(n);if(!isNaN(r))return r}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,r,i=this.getRenderRange(e,t);e===this.elementTop(i.start)?(n=i.start,r=0):i.end-i.start>1&&(n=i.start+1,r=this.elementTop(n)-e);for(var o=0;;){for(var a=this.getRenderRange(e,t),s=!1,u=a.start;u",'"',"`"," ","\r","\n","\t"]),l=["'"].concat(c),d=["%","/","?",";","#"].concat(l),h=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,f=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,g={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=n(303);function b(e,t,n){if(e&&i.isObject(e)&&e instanceof o)return e;var r=new o;return r.parse(e,t,n),r}o.prototype.parse=function(e,t,n){if(!i.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),s=-1!==o&&o127?O+="x":O+=D[A];if(!O.match(p)){var P=T.slice(0,N),R=T.slice(N+1),z=D.match(f);z&&(P.push(z[1]),R.unshift(z[2])),R.length&&(b="/"+R.join(".")+b),this.hostname=P.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),L||(this.hostname=r.toASCII(this.hostname));var F=this.port?":"+this.port:"",B=this.hostname||"";this.host=B+F,this.href+=this.host,L&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!g[S])for(N=0,k=l.length;N0)&&n.host.split("@"))&&(n.auth=L.shift(),n.host=n.hostname=L.shift());return n.search=e.search,n.query=e.query,i.isNull(n.pathname)&&i.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!C.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var M=C.slice(-1)[0],x=(n.host||e.host||C.length>1)&&("."===M||".."===M)||""===M,N=0,E=C.length;E>=0;E--)"."===(M=C[E])?C.splice(E,1):".."===M?(C.splice(E,1),N++):N&&(C.splice(E,1),N--);if(!w&&!S)for(;N--;N)C.unshift("..");!w||""===C[0]||C[0]&&"/"===C[0].charAt(0)||C.unshift(""),x&&"/"!==C.join("/").substr(-1)&&C.push("");var L,T=""===C[0]||C[0]&&"/"===C[0].charAt(0);I&&(n.hostname=n.host=T?"":C.length?C.shift():"",(L=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=L.shift(),n.host=n.hostname=L.shift()));return(w=w||n.host&&C.length)&&!T&&C.unshift(""),C.length?n.pathname=C.join("/"):(n.pathname=null,n.path=null),i.isNull(n.pathname)&&i.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},o.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});var n=[{type:"text/plain",ext:"txt"},{type:"text/html",ext:"html"},{type:"text/javascript",ext:"js"},{type:"text/css",ext:"css"},{type:"text/csv",ext:"csv"},{type:"text/yaml",ext:"yml"},{type:"text/yaml",ext:"yaml"},{type:"text/calendar",ext:"ics"},{type:"text/calendar",ext:"ical"},{type:"image/png",ext:"png"},{type:"image/gif",ext:"gif"},{type:"image/jpeg",ext:"jpg"},{type:"image/jpeg",ext:"jpeg"},{type:"image/bmp",ext:"bmp"},{type:"image/x-icon",ext:"ico"},{type:"image/tiff",ext:"tif"},{type:"image/tiff",ext:"tiff"},{type:"image/svg+xml",ext:"svg"},{type:"application/json",ext:"json"},{type:"application/xml",ext:"xml"},{type:"application/x-sh",ext:"sh"},{type:"application/zip",ext:"zip"},{type:"application/x-rar-compressed",ext:"rar"},{type:"application/x-tar",ext:"tar"},{type:"application/x-bzip",ext:"bz"},{type:"application/x-bzip2",ext:"bz2"},{type:"application/pdf",ext:"pdf"},{type:"application/java-archive",ext:"jar"},{type:"application/msword",ext:"doc"},{type:"application/vnd.ms-excel",ext:"xls"},{type:"application/vnd.ms-excel",ext:"xlsx"},{type:"message/rfc822",ext:"eml"}],r=function(){function t(){}return t.isEmpty=function(e){return 0===Object.keys(e).length},t.sortByField=function(e,t,n){if(!e||!e.sort)return!1;var r=n&&"desc"===n?-1:1;return e.sort(function(e,n){var i=e[t],o=n[t];return void 0===o?void 0===i?0:1*r:void 0===i?-1*r:io?1*r:0}),!0},t.objectLessAttributes=function(e,t){var n=Object.assign({},e);return t&&("string"==typeof t?delete n[t]:t.forEach(function(e){delete n[e]})),n},t.filenameToContentType=function(e,t){void 0===t&&(t="application/octet-stream");var r=e.toLowerCase(),i=n.filter(function(e){return r.endsWith("."+e.ext)});return i.length>0?i[0].type:t},t.isTextFile=function(e){var t=e.toLowerCase();return!!t.startsWith("text/")||("application/json"===t||"application/xml"===t||"application/sh"===t)},t.generateRandomString=function(){for(var e="",t="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",n=32;n>0;n-=1)e+=t[Math.floor(Math.random()*t.length)];return e},t.makeQuerablePromise=function(e){if(e.isResolved)return e;var t=!0,n=!1,r=!1,i=e.then(function(e){return r=!0,t=!1,e},function(e){throw n=!0,t=!1,e});return i.isFullfilled=function(){return r},i.isPending=function(){return t},i.isRejected=function(){return n},i},t.browserOrNode=function(){return{isBrowser:"undefined"!=typeof window&&void 0!==window.document,isNode:void 0!==e&&null!=e.versions&&null!=e.versions.node}},t.transferKeyToLowerCase=function(e,n,r){if(void 0===n&&(n=[]),void 0===r&&(r=[]),"object"!=typeof e||Array.isArray(e))return e;var i={};for(var o in e){if(e.hasOwnProperty(o))i[n.includes(o)?o:o[0].toLowerCase()+o.slice(1)]=r.includes(o)?e[o]:t.transferKeyToLowerCase(e[o],n,r)}return i},t.transferKeyToUpperCase=function(e,n,r){if(void 0===n&&(n=[]),void 0===r&&(r=[]),"object"!=typeof e||Array.isArray(e))return e;var i={};for(var o in e){if(e.hasOwnProperty(o))i[n.includes(o)?o:o[0].toUpperCase()+o.slice(1)]=r.includes(o)?e[o]:t.transferKeyToUpperCase(e[o],n,r)}return i},t}();t.default=r}).call(this,n(82))},function(e,t,n){"use strict";var r=n(97);t.__esModule=!0,t.default=_;var i=r(n(231)),o=r(n(202)),a=r(n(1068)),s=r(n(1107)),u=n(190),c=r(n(1114)),l=r(n(332)),d=r(n(1115)),h=r(n(191)),p=r(n(234)),f=r(n(1116)),g=r(n(271)),m=r(n(235)),y=n(676),v=function(e){return!(0,p.default)(e)},b=function(){function e(){this.list=new Set,this.refs=new Map}var t=e.prototype;return t.toArray=function(){return(0,s.default)(this.list).concat((0,s.default)(this.refs.values()))},t.add=function(e){m.default.isRef(e)?this.refs.set(e.key,e):this.list.add(e)},t.delete=function(e){m.default.isRef(e)?this.refs.delete(e.key,e):this.list.delete(e)},t.has=function(e,t){if(this.list.has(e))return!0;for(var n,r=this.refs.values();!(n=r.next()).done;)if(t(n.value)===e)return!0;return!1},e}();function _(e){var t=this;if(void 0===e&&(e={}),!(this instanceof _))return new _;this._deps=[],this._conditions=[],this._options={abortEarly:!0,recursive:!0},this._exclusive=Object.create(null),this._whitelist=new b,this._blacklist=new b,this.tests=[],this.transforms=[],this.withMutation(function(){t.typeError(u.mixed.notType)}),(0,o.default)(e,"default")&&(this._defaultDefault=e.default),this._type=e.type||"mixed"}for(var w=_.prototype={__isYupSchema__:!0,constructor:_,clone:function(){var e=this;return this._mutate?this:(0,a.default)(this,function(t){if((0,h.default)(t)&&t!==e)return t})},label:function(e){var t=this.clone();return t._label=e,t},meta:function(e){if(0===arguments.length)return this._meta;var t=this.clone();return t._meta=(0,i.default)(t._meta||{},e),t},withMutation:function(e){this._mutate=!0;var t=e(this);return this._mutate=!1,t},concat:function(e){if(!e)return this;if(e._type!==this._type&&"mixed"!==this._type)throw new TypeError("You cannot `concat()` schema's of different types: "+this._type+" and "+e._type);var t=this.clone(),n=(0,d.default)(this.clone(),e.clone());return(0,o.default)(e,"_default")&&(n._default=e._default),n.tests=t.tests,n._exclusive=t._exclusive,e.tests.forEach(function(e){n=n.test(e.OPTIONS)}),n._type=e._type,n},isType:function(e){return!(!this._nullable||null!==e)||(!this._typeCheck||this._typeCheck(e))},resolve:function(e){var t=e.context,n=e.parent;return this._conditions.length?this._conditions.reduce(function(e,r){return r.resolve(e,r.getValue(n,t))},this):this},cast:function(e,t){void 0===t&&(t={});var n=this.resolve(t),r=n._cast(e,t);if(void 0!==e&&!1!==t.assert&&!0!==n.isType(r)){var i=(0,g.default)(e),o=(0,g.default)(r);throw new TypeError("The value of "+(t.path||"field")+' could not be cast to a value that satisfies the schema type: "'+n._type+'". \n\nattempted value: '+i+" \n"+(o!==i?"result of cast: "+o:""))}return r},_cast:function(e){var t=this,n=void 0===e?e:this.transforms.reduce(function(n,r){return r.call(t,n,e)},e);return void 0===n&&(0,o.default)(this,"_default")&&(n=this.default()),n},_validate:function(e,t){var n=this;void 0===t&&(t={});var r=e,o=null!=t.originalValue?t.originalValue:e,a=this._option("strict",t),s=this._option("abortEarly",t),u=t.sync,c=t.path,d=this._label;a||(r=this._cast(r,(0,i.default)({assert:!1},t)));var h={value:r,path:c,schema:this,options:t,label:d,originalValue:o,sync:u},p=[];return this._typeError&&p.push(this._typeError(h)),this._whitelistError&&p.push(this._whitelistError(h)),this._blacklistError&&p.push(this._blacklistError(h)),(0,l.default)({validations:p,endEarly:s,value:r,path:c,sync:u}).then(function(e){return(0,l.default)({path:c,sync:u,value:e,endEarly:s,validations:n.tests.map(function(e){return e(h)})})})},validate:function(e,t){return void 0===t&&(t={}),this.resolve(t)._validate(e,t)},validateSync:function(e,t){var n,r;if(void 0===t&&(t={}),this.resolve(t)._validate(e,(0,i.default)({},t,{sync:!0})).then(function(e){return n=e}).catch(function(e){return r=e}),r)throw r;return n},isValid:function(e,t){return this.validate(e,t).then(function(){return!0}).catch(function(e){if("ValidationError"===e.name)return!1;throw e})},isValidSync:function(e,t){try{return this.validateSync(e,(0,i.default)({},t)),!0}catch(e){if("ValidationError"===e.name)return!1;throw e}},getDefault:function(e){return void 0===e&&(e={}),this.resolve(e).default()},default:function(e){if(0===arguments.length){var t=(0,o.default)(this,"_default")?this._default:this._defaultDefault;return"function"==typeof t?t.call(this):(0,a.default)(t)}var n=this.clone();return n._default=e,n},strict:function(){var e=this.clone();return e._options.strict=!0,e},required:function(e){return void 0===e&&(e=u.mixed.required),this.test({message:e,name:"required",test:v})},notRequired:function(){var e=this.clone();return e.tests=e.tests.filter(function(e){return"required"!==e.OPTIONS.name}),e},nullable:function(e){var t=this.clone();return t._nullable=!1!==e,t},transform:function(e){var t=this.clone();return t.transforms.push(e),t},test:function(){for(var e=arguments.length,t=new Array(e),n=0;n1){var i=t[0],o=t[1],a=t[2];null==a&&(a=o,o=u.mixed.default),r={name:i,test:a,message:o,exclusive:!1}}if("function"!=typeof r.test)throw new TypeError("`test` is a required parameters");var s=this.clone(),c=(0,f.default)(r),l=r.exclusive||r.name&&!0===s._exclusive[r.name];if(r.exclusive&&!r.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return s._exclusive[r.name]=!!r.exclusive,s.tests=s.tests.filter(function(e){if(e.OPTIONS.name===r.name){if(l)return!1;if(e.OPTIONS.test===c.OPTIONS.test)return!1}return!0}),s.tests.push(c),s},when:function(e,t){var n=this.clone(),r=[].concat(e).map(function(e){return new m.default(e)});return r.forEach(function(e){e.isContext||n._deps.push(e.key)}),n._conditions.push(new c.default(r,t)),n},typeError:function(e){var t=this.clone();return t._typeError=(0,f.default)({message:e,name:"typeError",test:function(e){return!(void 0!==e&&!this.schema.isType(e))||this.createError({params:{type:this.schema._type}})}}),t},oneOf:function(e,t){void 0===t&&(t=u.mixed.oneOf);var n=this.clone();return e.forEach(function(e){n._whitelist.add(e),n._blacklist.delete(e)}),n._whitelistError=(0,f.default)({message:t,name:"oneOf",test:function(e){if(void 0===e)return!0;var t=this.schema._whitelist;return!!t.has(e,this.resolve)||this.createError({params:{values:t.toArray().join(", ")}})}}),n},notOneOf:function(e,t){void 0===t&&(t=u.mixed.notOneOf);var n=this.clone();return e.forEach(function(e){n._blacklist.add(e),n._whitelist.delete(e)}),n._blacklistError=(0,f.default)({message:t,name:"notOneOf",test:function(e){var t=this.schema._blacklist;return!t.has(e,this.resolve)||this.createError({params:{values:t.toArray().join(", ")}})}}),n},strip:function(e){void 0===e&&(e=!0);var t=this.clone();return t._strip=e,t},_option:function(e,t){return(0,o.default)(t,e)?t[e]:this._options[e]},describe:function(){var e=this.clone();return{type:e._type,meta:e._meta,label:e._label,tests:e.tests.map(function(e){return{name:e.OPTIONS.name,params:e.OPTIONS.params}}).filter(function(e,t,n){return n.findIndex(function(t){return t.name===e.name})===t})}}},S=["validate","validateSync"],C=function(){var e=S[I];w[e+"At"]=function(t,n,r){void 0===r&&(r={});var o=(0,y.getIn)(this,t,n,r.context),a=o.parent,s=o.parentPath;return o.schema[e](a&&a[s],(0,i.default)({},r,{parent:a,path:t}))}},I=0;I>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s>>6*(3-s)&63));var u=r.charAt(64);if(u)for(;i.length%4;)i.push(u);return i.join("")},parse:function(e){var t=e.length,n=this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var i=0;i>>6-a%4*2;r[i>>>2]|=(s|u)<<24-i%4*8,i++}return o.create(r,i)}(e,t,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},r.enc.Base64)},function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return o});var r=n(23),i=Object(r.c)("logService"),o=function(){function e(){}return e.prototype.trace=function(e){for(var t=[],n=1;n=0&&m0&&i){var E=function(e){i(e),e.children.forEach(E)};_.forEach(E)}var L=S.d.map(S.d.fromArray(_),M);return this._onDidSplice.fire({insertedNodes:y,deletedNodes:_}),L},e.prototype.rerender=function(e){if(0===e.length)throw new Error("Invalid tree location");var t=this.getTreeNodeWithListIndex(e),n=t.node,r=t.listIndex;t.revealed&&this.list.splice(r,1,[n])},e.prototype.getListIndex=function(e){var t=this.getTreeNodeWithListIndex(e),n=t.listIndex,r=t.visible,i=t.revealed;return r&&i?n:-1},e.prototype.getListRenderCount=function(e){return this.getTreeNode(e).renderNodeCount},e.prototype.isCollapsed=function(e){return this.getTreeNode(e).collapsed},e.prototype.setCollapsed=function(e,t,n){var r=this,i=this.getTreeNode(e);return void 0===t&&(t=!i.collapsed),this.eventBufferer.bufferEvents(function(){return r._setCollapsed(e,t,n)})},e.prototype._setCollapsed=function(e,t,n){var r=this.getTreeNodeWithListIndex(e),i=r.node,o=r.listIndex,a=r.revealed,s=this._setListNodeCollapsed(i,o,a,t,n||!1);if(this.autoExpandSingleChildren&&!t&&!n){for(var u=-1,c=0;c-1){u=-1;break}u=c}}u>-1&&this._setCollapsed(e.concat([u]),!1,!1)}return s},e.prototype._setListNodeCollapsed=function(e,t,n,r,i){var o=this._setNodeCollapsed(e,r,i,!1);if(!n||!e.visible)return o;var a=e.renderNodeCount,s=this.updateNodeAfterCollapseChange(e),u=a-(-1===t?0:1);return this.list.splice(t+1,u,s.slice(1)),o},e.prototype._setNodeCollapsed=function(e,t,n,r){var i=e.collapsible&&e.collapsed!==t;if(e.collapsible&&(e.collapsed=t,i&&this._onDidChangeCollapseState.fire({node:e,deep:r})),n)for(var o=0,a=e.children;o0,s.visibleChildrenCount=h,s.visible=2===u?h>0:1===u,s.visible?s.collapsed||(s.renderNodeCount=p):(s.renderNodeCount=0,r&&i.pop()),o&&o(s),s},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,r=e.children;nt.children.length)throw new Error("Invalid tree location");return this.getTreeNode(r,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,r=t.listIndex,i=t.revealed,o=t.visible,a=e[e.length-1];if(a<0||a>n.children.length)throw new Error("Invalid tree location");var s=n.children[a];return{node:s,listIndex:r,revealed:i,visible:o&&s.visible}},e.prototype.getParentNodeWithListIndex=function(e,t,n,r,i){void 0===t&&(t=this.root),void 0===n&&(n=0),void 0===r&&(r=!0),void 0===i&&(i=!0);var o=e[0],a=e.slice(1);if(o<0||o>t.children.length)throw new Error("Invalid tree location");for(var s=0;s0||e.triggered)&&(9===n.keyCode||1===n.keyCode)&&!n.altKey&&!n.ctrlKey&&!n.metaKey||1===n.keyCode&&(L.d?n.altKey&&!n.metaKey:n.ctrlKey)&&!n.shiftKey}).forEach(function(e){e.stopPropagation(),e.preventDefault()}).event,r=Object(_.a)(this.clearDomNode,"click");g.b.chain(g.b.any(n,r)).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=Object(o.d)(this.enabledDisposables),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&&(L.d?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 r=n[0];null===this.tree.getRelativeTop(r)&&this.tree.reveal(r,.5)}this.render(),e||(this.triggered=!1)},e.prototype.onDragStart=function(){var e=this,t=this.view.getHTMLElement(),n=Object(r.v)(t).left,i=t.clientWidth,a=i/2,s=this.domNode.clientWidth,u=[],c=this.positionClassName,l=function(){switch(c){case"nw":e.domNode.style.top="4px",e.domNode.style.left="4px";break;case"ne":e.domNode.style.top="4px",e.domNode.style.left=i-s-6+"px"}};l(),Object(r.G)(this.domNode,c),Object(r.f)(this.domNode,"dragging"),u.push(Object(o.f)(function(){return Object(r.G)(e.domNode,"dragging")})),Object(_.a)(document,"dragover")(function(e){e.preventDefault();var t=e.screenX-n;e.dataTransfer&&(e.dataTransfer.dropEffect="none"),c=t0&&0===this.filter.matchCount;this.pattern&&this.tree.options.filterOnType&&e?(this.messageDomNode.textContent=Object(a.a)("empty","No elements found"),this._empty=!0):(this.messageDomNode.innerHTML="",this._empty=!1),Object(r.P)(this.domNode,"no-matches",e),this.domNode.title=Object(a.a)("found","Matched {0} out of {1} elements",this.filter.matchCount,this.filter.totalCount),this.labelDomNode.textContent=this.pattern.length>16?"…"+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.disable(),this._onDidChangePattern.dispose(),this.disposables=Object(o.d)(this.disposables)},e}();function B(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName}function U(e){return{elements:e.elements.map(function(e){return e.element}),browserEvent:e.browserEvent}}function W(e,t){t(e),e.children.forEach(function(e){return W(e,t)})}var H=function(){function e(e){this.identityProvider=e,this.nodes=[],this._onDidChange=new g.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){if(!Object(v.g)(this.nodes,e)){this.nodes=e.slice(),this.elements=void 0,this._nodeSet=void 0;var n=this;this._onDidChange.fire({get elements(){return n.get()},browserEvent:t})}},e.prototype.get=function(){return this.elements||(this.elements=this.nodes.map(function(e){return e.element})),this.elements.slice()},e.prototype.has=function(e){return this.nodeSet.has(e)},e.prototype.onDidModelSplice=function(e){var t=this,n=e.insertedNodes,r=e.deletedNodes;if(!this.identityProvider){var i=this.createNodeSet(),o=function(e){return i.delete(e)};return r.forEach(function(e){return W(e,o)}),void this.set(Object(T.e)(i))}var a=new Set,s=function(e){return a.add(t.identityProvider.getId(e.element).toString())};r.forEach(function(e){return W(e,s)});var u=new Map,c=function(e){return u.set(t.identityProvider.getId(e.element).toString(),e)};n.forEach(function(e){return W(e,c)});for(var l=[],d=0,h=this.nodes;d0&&e.prototype.setFocus.call(this,Object(v.f)(e.prototype.getFocus.call(this).concat(o))),a.length>0&&e.prototype.setSelection.call(this,Object(v.f)(e.prototype.getSelection.call(this).concat(a)))}},t.prototype.setFocus=function(t,n,r){var i=this;void 0===r&&(r=!1),e.prototype.setFocus.call(this,t,n),r||this.focusTrait.set(t.map(function(e){return i.element(e)}),n)},t.prototype.setSelection=function(t,n,r){var i=this;void 0===r&&(r=!1),e.prototype.setSelection.call(this,t,n),r||this.selectionTrait.set(t.map(function(e){return i.element(e)}),n)},t}(i.b),Y=function(){function e(e,t,n,r){var i,o=this;void 0===r&&(r={}),this._options=r,this.eventBufferer=new g.c,this.disposables=[],this._onWillRefilter=new g.a,this.onWillRefilter=this._onWillRefilter.event,this._onDidUpdateOptions=new g.a;var a,s,u,c=new P(t),l=new g.f;if(this.renderers=n.map(function(e){return new R(e,l.event,r)}),(i=this.disposables).push.apply(i,this.renderers),r.keyboardNavigationLabelProvider&&(a=new z(this,r.keyboardNavigationLabelProvider,r.filter),r=O({},r,{filter:a}),this.disposables.push(a)),this.focus=new H(r.identityProvider),this.selection=new H(r.identityProvider),this.view=new q(e,c,this.renderers,this.focus,this.selection,O({},(s=function(){return o.model},(u=r)&&O({},u,{identityProvider:u.identityProvider&&{getId:function(e){return u.identityProvider.getId(e.element)}},dnd:u.dnd&&new j(s,u.dnd),multipleSelectionController:u.multipleSelectionController&&{isSelectionSingleChangeEvent:function(e){return u.multipleSelectionController.isSelectionSingleChangeEvent(O({},e,{element:e.element}))},isSelectionRangeChangeEvent:function(e){return u.multipleSelectionController.isSelectionRangeChangeEvent(O({},e,{element:e.element}))}},accessibilityProvider:u.accessibilityProvider&&{getAriaLabel:function(e){return u.accessibilityProvider.getAriaLabel(e.element)},getAriaLevel:function(e){return e.depth}},keyboardNavigationLabelProvider:u.keyboardNavigationLabelProvider&&O({},u.keyboardNavigationLabelProvider,{getKeyboardNavigationLabel:function(e){return u.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e.element)}}),enableKeyboardNavigation:u.simpleKeyboardNavigation,ariaSetProvider:{getSetSize:function(e){return e.parent.visibleChildrenCount},getPosInSet:function(e){return e.visibleChildIndex+1}}})),{tree:this})),this.model=this.createModel(this.view,r),l.input=this.model.onDidChangeCollapseState,this.model.onDidSplice(function(e){o.focus.onDidModelSplice(e),o.selection.onDidModelSplice(e)},null,this.disposables),!1!==r.keyboardSupport){var d=g.b.chain(this.view.onKeyDown).filter(function(e){return!B(e.target)}).map(function(e){return new m.a(e)});d.filter(function(e){return 15===e.keyCode}).on(this.onLeftArrow,this,this.disposables),d.filter(function(e){return 17===e.keyCode}).on(this.onRightArrow,this,this.disposables),d.filter(function(e){return 10===e.keyCode}).on(this.onSpace,this,this.disposables)}r.keyboardNavigationLabelProvider&&(this.typeFilterController=new F(this,this.model,this.view,a,r.keyboardNavigationLabelProvider),this.focusNavigationFilter=function(e){return o.typeFilterController.shouldAllowFocus(e)},this.disposables.push(this.typeFilterController))}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 g.b.map(this.view.onDidOpen,U)},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 void 0===this._options.openOnSingleClick||this._options.openOnSingleClick},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"expandOnlyOnTwistieClick",{get:function(){return void 0!==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=O({},this._options,e);for(var t=0,n=this.renderers;t-1});this.view.setSelection(i,t,!0)},e.prototype.getSelection=function(){return this.selection.get()},e.prototype.setFocus=function(e,t){var n=this,r=e.map(function(e){return n.model.getNode(e)});this.focus.set(r,t);var i=e.map(function(e){return n.model.getListIndex(e)}).filter(function(e){return e>-1});this.view.setFocus(i,t,!0)},e.prototype.focusNext=function(e,t,n,r){void 0===e&&(e=1),void 0===t&&(t=!1),void 0===r&&(r=this.focusNavigationFilter),this.view.focusNext(e,t,n,r)},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],r=this.model.getNodeLocation(n);if(!this.model.setCollapsed(r,!0)){var i=this.model.getParentNodeLocation(r);if(null===i)return;var o=this.model.getListIndex(i);this.view.reveal(o),this.view.setFocus([o])}}},e.prototype.onRightArrow=function(e){e.preventDefault(),e.stopPropagation();var t=this.view.getFocusedElements();if(0!==t.length){var n=t[0],r=this.model.getNodeLocation(n);if(!this.model.setCollapsed(r,!1)){if(!n.children.some(function(e){return e.visible}))return;var i=this.view.getFocus()[0]+1;this.view.reveal(i),this.view.setFocus([i])}}},e.prototype.onSpace=function(e){e.preventDefault(),e.stopPropagation();var t=this.view.getFocusedElements();if(0!==t.length){var n=t[0],r=this.model.getNodeLocation(n),i=e.browserEvent.altKey;this.model.setCollapsed(r,void 0,i)}},e.prototype.dispose=function(){this.disposables=Object(o.d)(this.disposables),this.view.dispose()},e}(),G=function(){return(G=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]-1&&r.focus.push(l),r&&r.viewState.selection&&r.viewState.selection.indexOf(i)>-1&&r.selection.push(l),r&&r.viewState.expanded&&r.viewState.expanded.indexOf(i)>-1&&d.push(l),l}),p=0,f=Object(T.e)(a);p=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},ve=function(e,t){return function(n,r){t(n,r,e)}},be=Object(l.c)("listService"),_e=function(){function e(e){this.lists=[],this._lastFocusedWidget=void 0}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.lists.some(function(t){return t.widget===e}))throw new Error("Cannot register the same widget multiple times");var r={widget:e,extraContextKeys:t};return this.lists.push(r),e.getHTMLElement()===document.activeElement&&(this._lastFocusedWidget=e),Object(o.c)([e.onDidFocus(function(){return n._lastFocusedWidget=e}),Object(o.f)(function(){return n.lists.splice(n.lists.indexOf(r),1)}),e.onDidDispose(function(){n.lists=n.lists.filter(function(e){return e!==r}),n._lastFocusedWidget===e&&(n._lastFocusedWidget=void 0)})])},e=ye([ve(0,c.e)],e)}(),we=new c.f("listFocus",!0),Se=new c.f("listSupportsMultiselect",!0),Ce=new c.f("listHasSelectionOrFocus",!1),Ie=new c.f("listDoubleSelection",!1),Me=new c.f("listMultiSelection",!1),xe=new c.f("listSupportsKeyboardNavigation",!0),Ne="listAutomaticKeyboardNavigation",Ee=new c.f(Ne,!0),Le=!1;var Te="workbench.list.multiSelectModifier",ke="workbench.list.openMode",De="workbench.list.horizontalScrolling",Oe="workbench.list.keyboardNavigation",Ae="workbench.list.automaticKeyboardNavigation",je="workbench.tree.indent";function Pe(e){return"alt"===e.getValue(Te)}function Re(e){return"doubleClick"!==e.getValue(ke)}var ze,Fe=function(e){function t(t){var n=e.call(this)||this;return n.configurationService=t,n.useAltAsMultipleSelectionModifier=Pe(t),n.registerListeners(),n}return ge(t,e),t.prototype.registerListeners=function(){var e=this;this._register(this.configurationService.onDidChangeConfiguration(function(t){t.affectsConfiguration(Te)&&(e.useAltAsMultipleSelectionModifier=Pe(e.configurationService))}))},t.prototype.isSelectionSingleChangeEvent=function(e){return this.useAltAsMultipleSelectionModifier?e.browserEvent.altKey:Object(i.e)(e)},t.prototype.isSelectionRangeChangeEvent=function(e){return Object(i.d)(e)},t}(o.a),Be=function(e){function t(t,n){var r=e.call(this)||this;return r.configurationService=t,r.existingOpenController=n,r.openOnSingleClick=Re(t),r.registerListeners(),r}return ge(t,e),t.prototype.registerListeners=function(){var e=this;this._register(this.configurationService.onDidChangeConfiguration(function(t){t.affectsConfiguration(ke)&&(e.openOnSingleClick=Re(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 Ue(e,t){var n=!1;return function(r){if(n)return n=!1,!1;var i=t.softDispatch(r,e);return i&&i.enterChord?(n=!0,!1):(n=!1,!0)}}(function(e){function t(t,n,r,i,o,a,s,u,c,l){var d=this,h=He(t,i,o,s,u,c,l),p=h.options,f=h.getAutomaticKeyboardNavigation,g=h.disposable;return(d=e.call(this,t,n,r,p)||this).disposables.push(g),d.internals=new Ve(d,p,f,o,a,s,u,l),d.disposables.push(d.internals),d}ge(t,e),t=ye([ve(4,c.e),ve(5,be),ve(6,f.c),ve(7,s.a),ve(8,d.a),ve(9,pe.a)],t)})(K),function(e){function t(t,n,r,i,o,a,s,u,c,l,d){var h=this,p=He(t,o,a,u,c,l,d),f=p.options,g=p.getAutomaticKeyboardNavigation,m=p.disposable;return(h=e.call(this,t,n,r,i,f)||this).disposables.push(m),h.internals=new Ve(h,f,g,a,s,u,c,d),h.disposables.push(h.internals),h}ge(t,e),t=ye([ve(5,c.e),ve(6,be),ve(7,f.c),ve(8,s.a),ve(9,d.a),ve(10,pe.a)],t)}(he);var We=function(e){function t(t,n,r,i,o,a,s,u,c,l,d){var h=this,p=He(t,o,a,u,c,l,d),f=p.options,g=p.getAutomaticKeyboardNavigation,m=p.disposable;return(h=e.call(this,t,n,r,i,f)||this).disposables.push(m),h.internals=new Ve(h,f,g,a,s,u,c,d),h.disposables.push(h.internals),h}return ge(t,e),Object.defineProperty(t.prototype,"contextKeyService",{get:function(){return this.internals.contextKeyService},enumerable:!0,configurable:!0}),t=ye([ve(5,c.e),ve(6,be),ve(7,f.c),ve(8,s.a),ve(9,d.a),ve(10,pe.a)],t)}(le);function He(e,t,n,a,u,c,l){xe.bindTo(n),Le||(Ee.bindTo(n),Le=!0);var d=function(){var e=n.getContextKeyValue(Ne);return e&&(e=u.getValue(Ae)),e},h=2===l.getAccessibilitySupport()?"simple":u.getValue(Oe),f=void 0!==t.horizontalScrolling?t.horizontalScrolling:function(e){return Object(s.f)(e,De,"workbench.tree.horizontalScrolling")}(u),g=Re(u),m=function(e,t,n){var r=[],i=me({},e);if(!1!==e.multipleSelectionSupport&&!e.multipleSelectionController){var a=new Fe(t);i.multipleSelectionController=a,r.push(a)}var s=new Be(t,e.openController);if(i.openController=s,r.push(s),e.keyboardNavigationLabelProvider){var u=e.keyboardNavigationLabelProvider;i.keyboardNavigationLabelProvider={getKeyboardNavigationLabel:function(e){return u.getKeyboardNavigationLabel(e)},mightProducePrintableCharacter:function(e){return n.mightProducePrintableCharacter(e)}}}return[i,Object(o.c)(r)]}(t,u,c),y=m[0];return{getAutomaticKeyboardNavigation:d,disposable:m[1],options:me({keyboardSupport:!1,styleController:new i.a((ze||(ze=Object(r.q)()),ze))},Object(p.e)(a.getTheme(),p.f),y,{indent:u.getValue(je),automaticKeyboardNavigation:d(),simpleKeyboardNavigation:"simple"===h,filterOnType:"filter"===h,horizontalScrolling:f,openOnSingleClick:g,keyboardNavigationEventFilter:Ue(e,c)})}}var Ve=function(){function e(e,t,n,r,i,o,a,s){var u=this;this.disposables=[],this.contextKeyService=function(e,t){var n=e.createScoped(t.getHTMLElement());return we.bindTo(n),n}(r,e),Se.bindTo(this.contextKeyService).set(!(!1===t.multipleSelectionSupport)),this.hasSelectionOrFocus=Ce.bindTo(this.contextKeyService),this.hasDoubleSelection=Ie.bindTo(this.contextKeyService),this.hasMultiSelection=Me.bindTo(this.contextKeyService),this._useAltAsMultipleSelectionModifier=Pe(a);var c=new Set;c.add(Ne);var l=function(){var t=2===s.getAccessibilitySupport()?"simple":a.getValue(Oe);e.updateOptions({simpleKeyboardNavigation:"simple"===t,filterOnType:"filter"===t})};this.disposables.push(this.contextKeyService,i.register(e),Object(p.b)(e,o),e.onDidChangeSelection(function(){var t=e.getSelection(),n=e.getFocus();u.hasSelectionOrFocus.set(t.length>0||n.length>0),u.hasMultiSelection.set(t.length>1),u.hasDoubleSelection.set(2===t.length)}),e.onDidChangeFocus(function(){var t=e.getSelection(),n=e.getFocus();u.hasSelectionOrFocus.set(t.length>0||n.length>0)}),a.onDidChangeConfiguration(function(t){if(t.affectsConfiguration(ke)&&e.updateOptions({openOnSingleClick:Re(a)}),t.affectsConfiguration(Te)&&(u._useAltAsMultipleSelectionModifier=Pe(a)),t.affectsConfiguration(je)){var r=a.getValue(je);e.updateOptions({indent:r})}t.affectsConfiguration(Oe)&&l(),t.affectsConfiguration(Ae)&&e.updateOptions({automaticKeyboardNavigation:n()})}),this.contextKeyService.onDidChangeContext(function(t){t.affectsSome(c)&&e.updateOptions({automaticKeyboardNavigation:n()})}),s.onDidChangeAccessibilitySupport(function(){return l()}))}return e.prototype.dispose=function(){this.disposables=Object(o.d)(this.disposables)},e=ye([ve(3,c.e),ve(4,be),ve(5,f.c),ve(6,s.a),ve(7,pe.a)],e)}();h.a.as(u.a.Configuration).registerConfiguration({id:"workbench",order:7,title:Object(a.a)("workbenchConfigurationTitle","Workbench"),type:"object",properties:(fe={},fe[Te]={type:"string",enum:["ctrlCmd","alt"],enumDescriptions:[Object(a.a)("multiSelectModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),Object(a.a)("multiSelectModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],default:"ctrlCmd",description:Object(a.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.")},fe[ke]={type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:Object(a.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. ")},fe[De]={type:"boolean",default:!1,description:Object(a.a)("horizontalScrolling setting","Controls whether lists and trees support horizontal scrolling in the workbench.")},fe["workbench.tree.horizontalScrolling"]={type:"boolean",default:!1,description:Object(a.a)("tree horizontalScrolling setting","Controls whether trees support horizontal scrolling in the workbench."),deprecationMessage:Object(a.a)("deprecated","This setting is deprecated, please use '{0}' instead.",De)},fe[je]={type:"number",default:8,minimum:0,maximum:40,description:Object(a.a)("tree indent setting","Controls tree indentation in pixels.")},fe[Oe]={type:"string",enum:["simple","highlight","filter"],enumDescriptions:[Object(a.a)("keyboardNavigationSettingKey.simple","Simple keyboard navigation focuses elements which match the keyboard input. Matching is done only on prefixes."),Object(a.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(a.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(a.a)("keyboardNavigationSettingKey","Controls the keyboard navigation style for lists and trees in the workbench. Can be simple, highlight and filter.")},fe[Ae]={type:"boolean",default:!0,markdownDescription:Object(a.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.")},fe)})},function(e,t,n){"use strict";var r,i=n(2),o=n(210),a=n(9),s=n(100);(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]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|\\n*|\\n*|)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\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=//,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=y({},t),t.gfm=y({},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=y({},t.gfm,{nptable:/^ *([^|\n ].*\|.*)\n *([-:]+ *\|[-| :]*)(?:\n((?:.*[^>\n ].*(?:\n|$))*)\n*|$)/,table:/^ *\|(.+)\n *\|?( *[-:]+[-| :]*)(?:\n((?: *[^>\n ].*(?:\n|$))*)\n*|$)/}),t.pedantic=y({},t.normal,{html:h("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\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:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/}),n.rules=t,n.lex=function(e,t){return new n(t).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 r,i,o,a,s,u,c,l,d,h,p,f,g,m,y,_;for(e=e.replace(/^ +$/gm,"");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:b(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:v(o[1].replace(/^ *| *\| *$/g,"")),align:o[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:o[3]?o[3].replace(/\n$/,"").split("\n"):[]}).header.length===u.align.length){for(e=e.substring(o[0].length),p=0;p ?/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),c={type:"list_start",ordered:m=(a=o[2]).length>1,start:m?+a:"",loose:!1},this.tokens.push(c),l=[],r=!1,g=(o=o[0].match(this.rules.item)).length,p=0;p1?1===s.length:s.length>1||this.options.smartLists&&s!==a)&&(e=o.slice(p+1).join("\n")+e,p=g-1)),i=r||/\n\n(?!\s*$)/.test(u),p!==g-1&&(r="\n"===u.charAt(u.length-1),i||(i=r)),i&&(c.loose=!0),_=void 0,(y=/^\[[ xX]\] /.test(u))&&(_=" "!==u[1],u=u.replace(/^\[[ xX]\] +/,"")),d={type:"list_item_start",task:y,checked:_,loose:i},l.push(d),this.tokens.push(d),this.token(u,!1),this.tokens.push({type:"list_item_end"});if(c.loose)for(g=l.length,p=0;p?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:m,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\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]*?(?:(?=[\\?@\\[^_{|}~",i.em=h(i.em).replace(/punctuation/g,i._punctuation).getRegex(),i._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,i._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,i._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])?)+(?![-_])/,i.autolink=h(i.autolink).replace("scheme",i._scheme).replace("email",i._email).getRegex(),i._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,i.tag=h(i.tag).replace("comment",t._comment).replace("attribute",i._attribute).getRegex(),i._label=/(?:\[[^\[\]]*\]|\\[\[\]]?|`[^`]*`|`(?!`)|[^\[\]\\`])*?/,i._href=/\s*(<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*)/,i._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,i.link=h(i.link).replace("label",i._label).replace("href",i._href).replace("title",i._title).getRegex(),i.reflink=h(i.reflink).replace("label",i._label).getRegex(),i.normal=y({},i),i.pedantic=y({},i.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/,link:h(/^!?\[(label)\]\((.*?)\)/).replace("label",i._label).getRegex(),reflink:h(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",i._label).getRegex()}),i.gfm=y({},i.normal,{escape:h(i.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]*?(?:(?=[\\/i.test(a[0])&&(this.inLink=!1),!this.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(a[0])?this.inRawBlock=!0:this.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(a[0])&&(this.inRawBlock=!1),e=e.substring(a[0].length),u+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(a[0]):l(a[0]):a[0];else if(a=this.rules.link.exec(e)){var c=_(a[2],"()");if(c>-1){var d=a[0].length-(a[2].length-c)-(a[3]||"").length;a[2]=a[2].substring(0,c),a[0]=a[0].substring(0,d).trim(),a[3]=""}e=e.substring(a[0].length),this.inLink=!0,r=a[2],this.options.pedantic?(t=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r))?(r=t[1],i=t[3]):i="":i=a[3]?a[3].slice(1,-1):"",r=r.trim().replace(/^<([\s\S]*)>$/,"$1"),u+=this.outputLink(a,{href:o.escapes(r),title:o.escapes(i)}),this.inLink=!1}else if((a=this.rules.reflink.exec(e))||(a=this.rules.nolink.exec(e))){if(e=e.substring(a[0].length),t=(a[2]||a[1]).replace(/\s+/g," "),!(t=this.links[t.toLowerCase()])||!t.href){u+=a[0].charAt(0),e=a[0].substring(1)+e;continue}this.inLink=!0,u+=this.outputLink(a,t),this.inLink=!1}else if(a=this.rules.strong.exec(e))e=e.substring(a[0].length),u+=this.renderer.strong(this.output(a[4]||a[3]||a[2]||a[1]));else if(a=this.rules.em.exec(e))e=e.substring(a[0].length),u+=this.renderer.em(this.output(a[6]||a[5]||a[4]||a[3]||a[2]||a[1]));else if(a=this.rules.code.exec(e))e=e.substring(a[0].length),u+=this.renderer.codespan(l(a[2].trim(),!0));else if(a=this.rules.br.exec(e))e=e.substring(a[0].length),u+=this.renderer.br();else if(a=this.rules.del.exec(e))e=e.substring(a[0].length),u+=this.renderer.del(this.output(a[1]));else if(a=this.rules.autolink.exec(e))e=e.substring(a[0].length),r="@"===a[2]?"mailto:"+(n=l(this.mangle(a[1]))):n=l(a[1]),u+=this.renderer.link(r,null,n);else if(this.inLink||!(a=this.rules.url.exec(e))){if(a=this.rules.text.exec(e))e=e.substring(a[0].length),this.inRawBlock?u+=this.renderer.text(a[0]):u+=this.renderer.text(l(this.smartypants(a[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}else{if("@"===a[2])r="mailto:"+(n=l(a[0]));else{do{s=a[0],a[0]=this.rules._backpedal.exec(a[0])[0]}while(s!==a[0]);n=l(a[0]),r="www."===a[1]?"http://"+n:n}e=e.substring(a[0].length),u+=this.renderer.link(r,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,r=t.title?l(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(n,r,this.output(e[1])):this.renderer.image(n,r,l(e[1]))},o.prototype.smartypants=function(e){return this.options.smartypants?e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):e},o.prototype.mangle=function(e){if(!this.options.mangle)return e;for(var t,n="",r=e.length,i=0;i.5&&(t="x"+t.toString(16)),n+="&#"+t+";";return n},a.prototype.code=function(e,t,n){var r=(t||"").match(/\S*/)[0];if(this.options.highlight){var i=this.options.highlight(e,r);null!=i&&i!==e&&(n=!0,e=i)}return r?'
'+(n?e:l(e,!0))+"
\n":"
"+(n?e:l(e,!0))+"
"},a.prototype.blockquote=function(e){return"
\n"+e+"
\n"},a.prototype.html=function(e){return e},a.prototype.heading=function(e,t,n,r){return this.options.headerIds?"'+e+"\n":""+e+"\n"},a.prototype.hr=function(){return this.options.xhtml?"
\n":"
\n"},a.prototype.list=function(e,t,n){var r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"\n"},a.prototype.listitem=function(e){return"
  • "+e+"
  • \n"},a.prototype.checkbox=function(e){return" "},a.prototype.paragraph=function(e){return"

    "+e+"

    \n"},a.prototype.table=function(e,t){return t&&(t=""+t+""),"\n\n"+e+"\n"+t+"
    \n"},a.prototype.tablerow=function(e){return"\n"+e+"\n"},a.prototype.tablecell=function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"\n"},a.prototype.strong=function(e){return""+e+""},a.prototype.em=function(e){return""+e+""},a.prototype.codespan=function(e){return""+e+""},a.prototype.br=function(){return this.options.xhtml?"
    ":"
    "},a.prototype.del=function(e){return""+e+""},a.prototype.link=function(e,t,n){if(null===(e=p(this.options.sanitize,this.options.baseUrl,e)))return n;var r='"},a.prototype.image=function(e,t,n){if(null===(e=p(this.options.sanitize,this.options.baseUrl,e)))return n;var r=''+n+'":">"},a.prototype.text=function(e){return e},s.prototype.strong=s.prototype.em=s.prototype.codespan=s.prototype.del=s.prototype.text=function(e){return e},s.prototype.link=s.prototype.image=function(e,t,n){return""+n},s.prototype.br=function(){return""},u.parse=function(e,t){return new u(t).parse(e)},u.prototype.parse=function(e){this.inline=new o(e.links,this.options),this.inlineText=new o(e.links,y({},this.options,{renderer:new s})),this.tokens=e.reverse();for(var t="";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(){for(var e=this.token.text;"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,r,i="",o="";for(n="",e=0;e?@[\]^`{|}~]/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},l.escapeTest=/[&<>"']/,l.escapeReplace=/[&<>"']/g,l.replacements={"&":"&","<":"<",">":">",'"':""","'":"'"},l.escapeTestNoEncode=/[<>"']|&(?!#?\w+;)/,l.escapeReplaceNoEncode=/[<>"']|&(?!#?\w+;)/g;var f={},g=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function m(){}function y(e){for(var t,n,r=1;r=0&&"\\"===n[i];)r=!r;return r?"|":" |"}).split(/ \|/),r=0;if(n.length>t)n.splice(t);else for(;n.lengthAn error occurred:

    "+l(e.message+"",!0)+"
    ";throw e}}m.exec=m,w.options=w.setOptions=function(e){return y(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 a,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=a,w.TextRenderer=s,w.Lexer=n,w.lexer=n.lex,w.InlineLexer=o,w.inlineLexer=o.output,w.Slugger=c,w.parse=w,r=w}).call(void 0);r.Parser,r.parser;var u=r.Renderer,c=(r.TextRenderer,r.Lexer,r.lexer,r.InlineLexer,r.inlineLexer,r.parse),l=n(14),d=n(35),h=n(281),p=n(36);function f(e){var t=e.inline?"span":"div",n=document.createElement(t);return e.className&&(n.className=e.className),n}function g(e,t){void 0===t&&(t={});var n=f(t);return n.textContent=e,n}function m(e,t){void 0===t&&(t={});var n=f(t);return function e(t,n,r){var o;if(2===n.type)o=document.createTextNode(n.content||"");else if(3===n.type)o=document.createElement("b");else if(4===n.type)o=document.createElement("i");else if(5===n.type&&r){var a=document.createElement("a");a.href="#",r.disposeables.push(i.k(a,"click",function(e){r.callback(String(n.index),e)})),o=a}else 7===n.type?o=document.createElement("br"):1===n.type&&(o=t);o&&t!==o&&t.appendChild(o);o&&Array.isArray(n.children)&&n.children.forEach(function(t){e(o,t,r)})}(n,function(e){var t={type:1,children:[]},n=0,r=t,i=[],o=new v(e);for(;!o.eos();){var a=o.next(),s="\\"===a&&0!==b(o.peek());if(s&&(a=o.next()),s||0===b(a)||a!==o.peek())if("\n"===a)2===r.type&&(r=i.pop()),r.children.push({type:7});else if(2!==r.type){var u={type:2,content:a};r.children.push(u),i.push(r),r=u}else r.content+=a;else{o.advance(),2===r.type&&(r=i.pop());var c=b(a);if(r.type===c||5===r.type&&6===c)r=i.pop();else{var l={type:c,children:[]};5===c&&(l.index=n,n++),r.children.push(l),i.push(r),r=l}}}2===r.type&&(r=i.pop());i.length;return t}(e),t.actionHandler),n}function y(e,t){void 0===t&&(t={});var n,r=f(t),g=function(t){var n;try{n=Object(h.a)(decodeURIComponent(t))}catch(e){}return n?(n=Object(p.b)(n,function(t){return e.uris&&e.uris[t]?d.a.revive(e.uris[t]):void 0}),encodeURIComponent(JSON.stringify(n))):t},m=function(t){var n=e.uris&&e.uris[t];if(!n)return t;var r=d.a.revive(n);return r.query&&(r=r.with({query:g(r.query)})),n&&(t=r.toString(!0)),t},y=new Promise(function(e){return n=e}),v=new u;v.image=function(e,t,n){var r=[];if(e=m(e)){var i=e.split("|").map(function(e){return e.trim()});e=i[0];var o=i[1];if(o){var a=/height=(\d+)/.exec(o),s=/width=(\d+)/.exec(o),u=a?a[1]:"",c=s?s[1]:"",l=isFinite(parseInt(c)),d=isFinite(parseInt(u));l&&r.push('width="'+c+'"'),d&&r.push('height="'+u+'"')}}var h=[];return e&&h.push('src="'+e+'"'),n&&h.push('alt="'+n+'"'),t&&h.push('title="'+t+'"'),r.length&&(h=h.concat(r)),""},v.link=function(t,n,r){return t===r&&(r=Object(s.d)(r)),t=m(t),n=Object(s.d)(n),!(t=Object(s.d)(t))||t.match(/^data:|javascript:/i)||t.match(/^command:/i)&&!e.isTrusted||t.match(/^command:(\/\/\/)?_workbench\.downloadResource/i)?r:'
    /g,">").replace(/"/g,""").replace(/'/g,"'"))+'" title="'+(n||t)+'">'+r+""},v.paragraph=function(e){return"

    "+e+"

    "},t.codeBlockRenderer&&(v.code=function(e,n){var i=t.codeBlockRenderer(n,e),s=o.b.nextId(),u=Promise.all([i,y]).then(function(e){var t=e[0],n=r.querySelector('div[data-code="'+s+'"]');n&&(n.innerHTML=t)}).catch(function(e){});return t.codeBlockRenderCallback&&u.then(t.codeBlockRenderCallback),'
    '+Object(a.m)(e)+"
    "}),t.actionHandler&&t.actionHandler.disposeables.push(i.k(r,"click",function(e){var n=e.target;if("A"===n.tagName||(n=n.parentElement)&&"A"===n.tagName)try{var r=n.dataset.href;r&&t.actionHandler.callback(r,e)}catch(e){Object(l.e)(e)}finally{e.preventDefault()}}));var b={sanitize:!0,renderer:v};return r.innerHTML=c(e.value,b),n(),r}n.d(t,"c",function(){return g}),n.d(t,"a",function(){return m}),n.d(t,"b",function(){return y});var v=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 b(e){switch(e){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;default:return 0}}},function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return o});var r=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}(),i=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.colorn&&(p=n-f);var g=c.color,m=this._color2Id[g];m||(m=++this._lastAssignedId,this._color2Id[g]=m,this._id2Color[m]=g);var y=new r(p-f,p+f,m);c.setColorZone(y),a.push(y)}return this._colorZonesInvalid=!1,a.sort(r.compare),a},e}()},function(e,t,n){"use strict";n.d(t,"b",function(){return c}),n.d(t,"a",function(){return l}),n.d(t,"c",function(){return d}),n.d(t,"d",function(){return h});var r=n(21),i=n(34),o=n(14),a=n(5),s=n(12);function u(e,t,n,i){var a=n.ordered(e).map(function(n){return Promise.resolve(i(n,e,t)).then(void 0,function(e){Object(o.f)(e)})});return Promise.all(a).then(r.k).then(r.d)}function c(e,t,n){return u(e,t,s.f,function(e,t,r){return e.provideDefinition(t,r,n)})}function l(e,t,n){return u(e,t,s.e,function(e,t,r){return e.provideDeclaration(t,r,n)})}function d(e,t,n){return u(e,t,s.o,function(e,t,r){return e.provideImplementation(t,r,n)})}function h(e,t,n){return u(e,t,s.z,function(e,t,r){return e.provideTypeDefinition(t,r,n)})}Object(a.e)("_executeDefinitionProvider",function(e,t){return c(e,t,i.a.None)}),Object(a.e)("_executeDeclarationProvider",function(e,t){return l(e,t,i.a.None)}),Object(a.e)("_executeImplementationProvider",function(e,t){return d(e,t,i.a.None)}),Object(a.e)("_executeTypeDefinitionProvider",function(e,t){return h(e,t,i.a.None)})},function(e,t,n){"use strict";var r=n(36),i=n(9);function o(e){return Object(i.m)(e)}n.d(t,"a",function(){return a});var a=function(){function e(e,t){this.supportOcticons=t,this.domNode=document.createElement("span"),this.domNode.className="monaco-highlighted-label",this.didEverRender=!1,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,i,o){void 0===n&&(n=[]),void 0===i&&(i=""),t||(t=""),o&&(t=e.escapeNewLines(t,n)),this.didEverRender&&this.text===t&&this.title===i&&r.e(this.highlights,n)||(Array.isArray(n)||(n=[]),this.text=t,this.title=i,this.highlights=n,this.render())},e.prototype.render=function(){for(var e="",t=0,n=0,r=this.highlights;n";var s=this.text.substring(t,a.start);e+=this.supportOcticons?o(s):Object(i.m)(s),e+="",t=a.end}e+='';var u=this.text.substring(a.start,a.end);e+=this.supportOcticons?o(u):Object(i.m)(u),e+="",t=a.end}}if(t";u=this.text.substring(t);e+=this.supportOcticons?o(u):Object(i.m)(u),e+=""}this.domNode.innerHTML=e,this.domNode.title=this.title,this.didEverRender=!0},e.escapeNewLines=function(e,t){var n=0,r=0;return e.replace(/\r\n|\r|\n/g,function(e,i){r="\r\n"===e?-1:0,i+=n;for(var o=0,a=t;o=i&&(s.start+=r),s.end>=i&&(s.end+=r))}return n+=r,"⏎"})},e}()},function(e){e.exports={SUBSCRIPTION_HEADER:"app.desktop.addSection.subscription.header",SUBSCRIPTION_TEXT:"app.desktop.addSection.subscription.text",SUBSCRIPTION_BUTTON:"app.desktop.addSection.subscription.button",ADDONS_HEADER:"app.desktop.addSection.addons.header",ADDONS_TEXT:"app.desktop.addSection.addons.text",ADDONS_BUTTON:"app.desktop.addSection.addons.button"}},function(e,t,n){!function(e){"use strict";function t(e){return null!==e&&"[object Array]"===Object.prototype.toString.call(e)}function n(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}function r(e,i){if(e===i)return!0;if(Object.prototype.toString.call(e)!==Object.prototype.toString.call(i))return!1;if(!0===t(e)){if(e.length!==i.length)return!1;for(var o=0;o":!0,"=":!0,"!":!0},m={" ":!0,"\t":!0,"\n":!0};function y(e){return e>="0"&&e<="9"||"-"===e}function v(){}v.prototype={tokenize:function(e){var t,n,r,i,o=[];for(this._current=0;this._current="a"&&i<="z"||i>="A"&&i<="Z"||"_"===i)t=this._current,n=this._consumeUnquotedIdentifier(e),o.push({type:"UnquotedIdentifier",value:n,start:t});else if(void 0!==f[e[this._current]])o.push({type:f[e[this._current]],value:e[this._current],start:this._current}),this._current++;else if(y(e[this._current]))r=this._consumeNumber(e),o.push(r);else if("["===e[this._current])r=this._consumeLBracket(e),o.push(r);else if('"'===e[this._current])t=this._current,n=this._consumeQuotedIdentifier(e),o.push({type:"QuotedIdentifier",value:n,start:t});else if("'"===e[this._current])t=this._current,n=this._consumeRawStringLiteral(e),o.push({type:"Literal",value:n,start:t});else if("`"===e[this._current]){t=this._current;var a=this._consumeLiteral(e);o.push({type:"Literal",value:a,start:t})}else if(void 0!==g[e[this._current]])o.push(this._consumeOperator(e));else if(void 0!==m[e[this._current]])this._current++;else if("&"===e[this._current])t=this._current,this._current++,"&"===e[this._current]?(this._current++,o.push({type:"And",value:"&&",start:t})):o.push({type:"Expref",value:"&",start:t});else{if("|"!==e[this._current]){var s=new Error("Unknown character:"+e[this._current]);throw s.name="LexerError",s}t=this._current,this._current++,"|"===e[this._current]?(this._current++,o.push({type:"Or",value:"||",start:t})):o.push({type:"Pipe",value:"|",start:t})}return o},_consumeUnquotedIdentifier:function(e){var t,n=this._current;for(this._current++;this._current="a"&&t<="z"||t>="A"&&t<="Z"||t>="0"&&t<="9"||"_"===t);)this._current++;return e.slice(n,this._current)},_consumeQuotedIdentifier:function(e){var t=this._current;this._current++;for(var n=e.length;'"'!==e[this._current]&&this._current"===n?"="===e[this._current]?(this._current++,{type:"GTE",value:">=",start:t}):{type:"GT",value:">",start:t}:"="===n&&"="===e[this._current]?(this._current++,{type:"EQ",value:"==",start:t}):void 0},_consumeLiteral:function(e){this._current++;for(var t,n=this._current,r=e.length;"`"!==e[this._current]&&this._current=0)return!0;if(["true","false","null"].indexOf(e)>=0)return!0;if(!("-0123456789".indexOf(e[0])>=0))return!1;try{return JSON.parse(e),!0}catch(e){return!1}}};var b={};function _(){}function w(e){this.runtime=e}function S(e){this._interpreter=e,this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[a]}]},avg:{_func:this._functionAvg,_signature:[{types:[h]}]},ceil:{_func:this._functionCeil,_signature:[{types:[a]}]},contains:{_func:this._functionContains,_signature:[{types:[u,c]},{types:[s]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[u]},{types:[u]}]},floor:{_func:this._functionFloor,_signature:[{types:[a]}]},length:{_func:this._functionLength,_signature:[{types:[u,c,l]}]},map:{_func:this._functionMap,_signature:[{types:[d]},{types:[c]}]},max:{_func:this._functionMax,_signature:[{types:[h,p]}]},merge:{_func:this._functionMerge,_signature:[{types:[l],variadic:!0}]},max_by:{_func:this._functionMaxBy,_signature:[{types:[c]},{types:[d]}]},sum:{_func:this._functionSum,_signature:[{types:[h]}]},starts_with:{_func:this._functionStartsWith,_signature:[{types:[u]},{types:[u]}]},min:{_func:this._functionMin,_signature:[{types:[h,p]}]},min_by:{_func:this._functionMinBy,_signature:[{types:[c]},{types:[d]}]},type:{_func:this._functionType,_signature:[{types:[s]}]},keys:{_func:this._functionKeys,_signature:[{types:[l]}]},values:{_func:this._functionValues,_signature:[{types:[l]}]},sort:{_func:this._functionSort,_signature:[{types:[p,h]}]},sort_by:{_func:this._functionSortBy,_signature:[{types:[c]},{types:[d]}]},join:{_func:this._functionJoin,_signature:[{types:[u]},{types:[p]}]},reverse:{_func:this._functionReverse,_signature:[{types:[u,c]}]},to_array:{_func:this._functionToArray,_signature:[{types:[s]}]},to_string:{_func:this._functionToString,_signature:[{types:[s]}]},to_number:{_func:this._functionToNumber,_signature:[{types:[s]}]},not_null:{_func:this._functionNotNull,_signature:[{types:[s],variadic:!0}]}}}b.EOF=0,b.UnquotedIdentifier=0,b.QuotedIdentifier=0,b.Rbracket=0,b.Rparen=0,b.Comma=0,b.Rbrace=0,b.Number=0,b.Current=0,b.Expref=0,b.Pipe=1,b.Or=2,b.And=3,b.EQ=5,b.GT=5,b.LT=5,b.GTE=5,b.LTE=5,b.NE=5,b.Flatten=9,b.Star=20,b.Filter=21,b.Dot=40,b.Not=45,b.Lbrace=50,b.Lbracket=55,b.Lparen=60,_.prototype={parse:function(e){this._loadTokens(e),this.index=0;var t=this.expression(0);if("EOF"!==this._lookahead(0)){var n=this._lookaheadToken(0),r=new Error("Unexpected token type: "+n.type+", value: "+n.value);throw r.name="ParserError",r}return t},_loadTokens:function(e){var t=(new v).tokenize(e);t.push({type:"EOF",value:"",start:e.length}),this.tokens=t},expression:function(e){var t=this._lookaheadToken(0);this._advance();for(var n=this.nud(t),r=this._lookahead(0);e=0?this.expression(e):"Lbracket"===t?(this._match("Lbracket"),this._parseMultiselectList()):"Lbrace"===t?(this._match("Lbrace"),this._parseMultiselectHash()):void 0},_parseProjectionRHS:function(e){var t;if(b[this._lookahead(0)]<10)t={type:"Identity"};else if("Lbracket"===this._lookahead(0))t=this.expression(e);else if("Filter"===this._lookahead(0))t=this.expression(e);else{if("Dot"!==this._lookahead(0)){var n=this._lookaheadToken(0),r=new Error("Sytanx error, unexpected token: "+n.value+"("+n.type+")");throw r.name="ParserError",r}this._match("Dot"),t=this._parseDotRHS(e)}return t},_parseMultiselectList:function(){for(var e=[];"Rbracket"!==this._lookahead(0);){var t=this.expression(0);if(e.push(t),"Comma"===this._lookahead(0)&&(this._match("Comma"),"Rbracket"===this._lookahead(0)))throw new Error("Unexpected token Rbracket")}return this._match("Rbracket"),{type:"MultiSelectList",children:e}},_parseMultiselectHash:function(){for(var e,t,n,r=[],i=["UnquotedIdentifier","QuotedIdentifier"];;){if(e=this._lookaheadToken(0),i.indexOf(e.type)<0)throw new Error("Expecting an identifier token, got: "+e.type);if(t=e.value,this._advance(),this._match("Colon"),n={type:"KeyValuePair",name:t,value:this.expression(0)},r.push(n),"Comma"===this._lookahead(0))this._match("Comma");else if("Rbrace"===this._lookahead(0)){this._match("Rbrace");break}}return{type:"MultiSelectHash",children:r}}},w.prototype={search:function(e,t){return this.visit(e,t)},visit:function(e,o){var a,s,u,c,l,d,h,p,f;switch(e.type){case"Field":return null===o?null:n(o)?void 0===(d=o[e.name])?null:d:null;case"Subexpression":for(u=this.visit(e.children[0],o),f=1;f0)for(f=v;fb;f+=_)u.push(o[f]);return u;case"Projection":var w=this.visit(e.children[0],o);if(!t(w))return null;for(p=[],f=0;fl;break;case"GTE":u=c>=l;break;case"LT":u=c=e&&(t=n<0?e-1:e),t}},S.prototype={callFunction:function(e,t){var n=this.functionTable[e];if(void 0===n)throw new Error("Unknown function: "+e+"()");return this._validateArgs(e,t,n._signature),n._func.call(this,t)},_validateArgs:function(e,t,n){var r,i,o,a;if(n[n.length-1].variadic){if(t.length=0;r--)n+=t[r];return n}var i=e[0].slice(0);return i.reverse(),i},_functionAbs:function(e){return Math.abs(e[0])},_functionCeil:function(e){return Math.ceil(e[0])},_functionAvg:function(e){for(var t=0,n=e[0],r=0;r=0},_functionFloor:function(e){return Math.floor(e[0])},_functionLength:function(e){return n(e[0])?Object.keys(e[0]).length:e[0].length},_functionMap:function(e){for(var t=[],n=this._interpreter,r=e[0],i=e[1],o=0;o0){if(this._getTypeName(e[0][0])===a)return Math.max.apply(Math,e[0]);for(var t=e[0],n=t[0],r=1;r0){if(this._getTypeName(e[0][0])===a)return Math.min.apply(Math,e[0]);for(var t=e[0],n=t[0],r=1;rs?1:as&&(s=n,t=i[c]);return t},_functionMinBy:function(e){for(var t,n,r=e[1],i=e[0],o=this.createKeyFunction(r,[a,u]),s=1/0,c=0;co?1*r:0}),!0},t.objectLessAttributes=function(e,t){var n=Object.assign({},e);return t&&("string"==typeof t?delete n[t]:t.forEach(function(e){delete n[e]})),n},t.filenameToContentType=function(e,t){void 0===t&&(t="application/octet-stream");var r=e.toLowerCase(),i=n.filter(function(e){return r.endsWith("."+e.ext)});return i.length>0?i[0].type:t},t.isTextFile=function(e){var t=e.toLowerCase();return!!t.startsWith("text/")||("application/json"===t||"application/xml"===t||"application/sh"===t)},t.generateRandomString=function(){for(var e="",t="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",n=32;n>0;n-=1)e+=t[Math.floor(Math.random()*t.length)];return e},t.makeQuerablePromise=function(e){if(e.isResolved)return e;var t=!0,n=!1,r=!1,i=e.then(function(e){return r=!0,t=!1,e},function(e){throw n=!0,t=!1,e});return i.isFullfilled=function(){return r},i.isPending=function(){return t},i.isRejected=function(){return n},i},t.browserOrNode=function(){return{isBrowser:"undefined"!=typeof window&&void 0!==window.document,isNode:void 0!==e&&null!=e.versions&&null!=e.versions.node}},t.transferKeyToLowerCase=function(e,n,r){if(void 0===n&&(n=[]),void 0===r&&(r=[]),!t.isStrictObject(e))return e;var i={};for(var o in e){if(e.hasOwnProperty(o))i[n.includes(o)?o:o[0].toLowerCase()+o.slice(1)]=r.includes(o)?e[o]:t.transferKeyToLowerCase(e[o],n,r)}return i},t.transferKeyToUpperCase=function(e,n,r){if(void 0===n&&(n=[]),void 0===r&&(r=[]),!t.isStrictObject(e))return e;var i={};for(var o in e){if(e.hasOwnProperty(o))i[n.includes(o)?o:o[0].toUpperCase()+o.slice(1)]=r.includes(o)?e[o]:t.transferKeyToUpperCase(e[o],n,r)}return i},t.isStrictObject=function(e){return!(!(e instanceof Object)||e instanceof Array||e instanceof Function||e instanceof Number||e instanceof String||e instanceof Boolean)},t}();t.default=r}).call(this,n(82))},function(e,t,n){var r=n(1039),i=n(642);e.exports=function(e,t){return null!=e&&i(e,t,r)}},function(e,t,n){var r=n(204),i=n(1040),o=n(1041),a="[object Null]",s="[object Undefined]",u=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?s:a:u&&u in Object(e)?i(e):o(e)}},function(e,t,n){var r=n(157).Symbol;e.exports=r},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){var r=n(651),i=n(1081),o=n(329);e.exports=function(e){return o(e)?r(e):i(e)}},function(e,t,n){"use strict";var r=n(97);t.__esModule=!0,t.default=function(e,t,n){e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),(0,i.default)(e.prototype,n)};var i=r(n(231));e.exports=t.default},function(e,t,n){self.MonacoEnvironment=function(e){return{getWorkerUrl:function(t,n){var r="string"==typeof window.__webpack_public_path__?window.__webpack_public_path__:"/";return(r?r.replace(/\/$/,"")+"/":"")+e[n]}}}({editorWorkerService:"editor.worker.js",css:"css.worker.js",html:"html.worker.js",json:"json.worker.js",typescript:"typescript.worker.js",javascript:"typescript.worker.js",less:"css.worker.js",scss:"css.worker.js",handlebars:"html.worker.js",razor:"html.worker.js"}),n(1168),n(1174),n(1403),n(1177),n(1180),n(1401),n(337),n(1402),n(1187),n(107),n(1190),n(1404),n(246),n(1396),n(1207),n(1399),n(287),n(1262),n(293),n(1266),n(1397),n(1405),n(1283),n(1286),n(1398),n(1406),n(1291),n(1400),n(1294),n(1407),n(1297),n(1298),n(1408),n(1409),n(179),n(1395),n(1305),n(282),n(1306),n(1307),n(223),n(1308),e.exports=n(1393),n(1322),n(1323),n(1324),n(1325),n(1326),n(1327),n(1328),n(1329),n(1330),n(1331),n(1332),n(1333),n(1334),n(1335),n(1336),n(1337),n(1338),n(1339),n(1340),n(1341),n(1342),n(1343),n(1344),n(1345),n(1346),n(1347),n(1348),n(1349),n(1350),n(1351),n(1352),n(1353),n(1354),n(1355),n(1356),n(1357),n(1358),n(1359),n(1360),n(1361),n(1362),n(1363),n(1364),n(1365),n(1366),n(1367),n(1368),n(1369),n(1370),n(1371),n(1372),n(1373),n(1374)},function(e,t,n){var r;e.exports=(r=n(76),function(e){var t=r,n=t.lib,i=n.WordArray,o=n.Hasher,a=t.algo,s=[],u=[];!function(){function t(t){for(var n=e.sqrt(t),r=2;r<=n;r++)if(!(t%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var r=2,i=0;i<64;)t(r)&&(i<8&&(s[i]=n(e.pow(r,.5))),u[i]=n(e.pow(r,1/3)),i++),r++}();var c=[],l=a.SHA256=o.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],l=n[5],d=n[6],h=n[7],p=0;p<64;p++){if(p<16)c[p]=0|e[t+p];else{var f=c[p-15],g=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3,m=c[p-2],y=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;c[p]=g+c[p-7]+y+c[p-16]}var v=r&i^r&o^i&o,b=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),_=h+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&l^~s&d)+u[p]+c[p];h=d,d=l,l=s,s=a+_|0,a=o,o=i,i=r,r=_+(b+v)|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0,n[5]=n[5]+l|0,n[6]=n[6]+d|0,n[7]=n[7]+h|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=e.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=o._createHelper(l),t.HmacSHA256=o._createHmacHelper(l)}(Math),r.SHA256)},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return i});var r=function(){function e(e){this._prefix=e,this._lastId=0}return e.prototype.nextId=function(){return this._prefix+ ++this._lastId},e}(),i=new r("id#")},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(183),i=[];function o(e,t,n){i.push({id:e,descriptor:new r.a(t,[],n)})}},function(e,t,n){"use strict";n.d(t,"a",function(){return m});var r,i=n(36),o=n(45),a=n(218),s=n(40),u=n(13),c=n(23),l=n(67),d=n(22),h=n(111),p=(r=function(e,t){return(r=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)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),f=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},g=function(e,t){return function(n,r){t(n,r,e)}},m=function(e){function t(t,n,r,i,o,a,s,u,c,l){var d=e.call(this,t,r.getRawConfiguration(),{},i,o,a,s,u,c,l)||this;return d._parentEditor=r,d._overwriteOptions=n,e.prototype.updateOptions.call(d,d._overwriteOptions),d._register(r.onDidChangeConfiguration(function(e){return d._onParentConfigurationChanged(e)})),d}return p(t,e),t.prototype.getParentEditor=function(){return this._parentEditor},t.prototype._onParentConfigurationChanged=function(t){e.prototype.updateOptions.call(this,this._parentEditor.getRawConfiguration()),e.prototype.updateOptions.call(this,this._overwriteOptions)},t.prototype.updateOptions=function(t){i.g(this._overwriteOptions,t,!0),e.prototype.updateOptions.call(this,this._overwriteOptions)},t=f([g(3,c.a),g(4,o.a),g(5,s.b),g(6,u.e),g(7,d.c),g(8,l.a),g(9,h.a)],t)}(a.a)},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r,i=n(9);r="undefined"!=typeof TextDecoder?function(e){return new o(e)}:function(e){return new a};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||i.u(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=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},e.prototype.changeValue=function(e,t){return e=Object(r.b)(e),t=Object(r.b)(t),this.values[e]!==t&&(this.values[e]=t,e-1=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=0&&this.prefixSum.set(i.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(r.b)(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();for(var t=0,n=this.values.length-1,r=0,o=0,a=0;t<=n;)if(r=t+(n-t)/2|0,e<(a=(o=this.prefixSum[r])-this.values[r]))n=r-1;else{if(!(e>=o))break;t=r+1}return new i(r,e-a)},e}(),a=function(){function e(e){this._cacheAccumulatedValueStart=0,this._cache=null,this._actual=new o(e),this._bustCache()}return e.prototype._bustCache=function(){this._cacheAccumulatedValueStart=0,this._cache=null},e.prototype.insertValues=function(e,t){this._actual.insertValues(e,t)&&this._bustCache()},e.prototype.changeValue=function(e,t){this._actual.changeValue(e,t)&&this._bustCache()},e.prototype.removeValues=function(e,t){this._actual.removeValues(e,t)&&this._bustCache()},e.prototype.getTotalValue=function(){return this._actual.getTotalValue()},e.prototype.getAccumulatedValue=function(e){return this._actual.getAccumulatedValue(e)},e.prototype.getIndexOf=function(e){if(e=Math.floor(e),null!==this._cache){var t=e-this._cacheAccumulatedValueStart;if(t>=0&&t=u?i=Math.max(i,u+c-r):(t[n++]=new P(r,i),r=u,i=c)}return t[n++]=new P(r,i),t},e._createHorizontalRangesFromClientRects=function(e,t){if(!e||0===e.length)return null;for(var n=[],r=0,i=e.length;rs)return null;(t=Math.min(s,Math.max(0,t)))!==(r=Math.min(s,Math.max(0,r)))&&r>0&&0===i&&(r--,i=Number.MAX_VALUE);var u=e.children[t].firstChild,c=e.children[r].firstChild;if(u&&c||(!u&&0===n&&t>0&&(u=e.children[t-1].firstChild,n=1073741824),!c&&0===i&&r>0&&(c=e.children[r-1].firstChild,i=1073741824)),!u||!c)return null;n=Math.min(u.textContent.length,Math.max(0,n)),i=Math.min(c.textContent.length,Math.max(0,i));var l=this._readClientRects(u,n,c,i,a);return this._createHorizontalRangesFromClientRects(l,o)},e}(),F=n(165),B=n(90),U=n(22),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])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),H=!!v.e||!(v.c||g.i||g.l),V=g.g,q=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,this.renderWhitespace=e.editor.viewInfo.renderWhitespace,this.renderControlCharacters=e.editor.viewInfo.renderControlCharacters,this.spaceWidth=e.editor.fontInfo.spaceWidth,this.useMonospaceOptimizations=e.editor.fontInfo.isMonospace&&!e.editor.viewInfo.disableMonospaceOptimizations,this.canUseHalfwidthRightwardsArrow=e.editor.fontInfo.canUseHalfwidthRightwardsArrow,this.lineHeight=e.editor.lineHeight,this.stopRenderingLineAfter=e.editor.viewInfo.stopRenderingLineAfter,this.fontLigatures=e.editor.viewInfo.fontLigatures}return e.prototype.equals=function(e){return this.themeType===e.themeType&&this.renderWhitespace===e.renderWhitespace&&this.renderControlCharacters===e.renderControlCharacters&&this.spaceWidth===e.spaceWidth&&this.useMonospaceOptimizations===e.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineHeight===e.lineHeight&&this.stopRenderingLineAfter===e.stopRenderingLineAfter&&this.fontLigatures===e.fontLigatures},e}(),G=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(p.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!(!V&&this._options.themeType!==U.b)&&(this._isMaybeInvalid=!0,!0)},e.prototype.renderLine=function(t,n,r,i){if(!1===this._isMaybeInvalid)return!1;this._isMaybeInvalid=!1;var o=r.getViewLineRenderingData(t),a=this._options,s=F.a.filter(o.inlineDecorations,t,o.minColumn,o.maxColumn);if(V||a.themeType===U.b)for(var u=0,c=r.selections;ut)){var d=l.startLineNumber===t?l.startColumn:o.minColumn,h=l.endLineNumber===t?l.endColumn:o.maxColumn;d');var f=Object(B.c)(p,i);i.appendASCIIString("");var g=null;return H&&o.isBasicASCII&&a.useMonospaceOptimizations&&0===f.containsForeignElements&&o.content.length<300&&p.lineTokens.getCount()<100&&(g=new Z(this._renderedViewLine?this._renderedViewLine.domNode:null,p,f.characterMapping)),g||(g=J(this._renderedViewLine?this._renderedViewLine.domNode:null,p,f.characterMapping,f.containsRTL,f.containsForeignElements)),this._renderedViewLine=g,!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 r=0|this._renderedViewLine.input.stopRenderingLineAfter;return-1!==r&&e>r&&t>r?null:(-1!==r&&e>r&&(e=r),-1!==r&&t>r&&(t=r),this._renderedViewLine.getVisibleRangesForRange(e,t,n))},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 r=this._getCharPosition(e),i=this._getCharPosition(t);return[new P(r,i-r)]},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){for(var r=t.textContent.length,i=-1;t;)t=t.previousSibling,i++;return this._characterMapping.partDataToCharOffset(i,r,n)+1},e}(),Q=function(){function e(e,t,n,r,i){if(this.domNode=e,this.input=t,this._characterMapping=n,this._isWhitespaceOnly=/^\s*$/.test(t.lineContent),this._containsForeignElements=i,this._cachedWidth=-1,this._pixelOffsetCache=null,!r||0===this._characterMapping.length){this._pixelOffsetCache=new Int32Array(Math.max(2,this._characterMapping.length+1));for(var o=0,a=this._characterMapping.length;o<=a;o++)this._pixelOffsetCache[o]=-1}}return e.prototype._getReadingTarget=function(){return this.domNode.domNode.firstChild},e.prototype.getWidth=function(){return-1===this._cachedWidth&&(this._cachedWidth=this._getReadingTarget().offsetWidth),this._cachedWidth},e.prototype.getWidthIsFast=function(){return-1!==this._cachedWidth},e.prototype.getVisibleRangesForRange=function(e,t,n){if(null!==this._pixelOffsetCache){var r=this._readPixelOffset(e,n);if(-1===r)return null;var i=this._readPixelOffset(t,n);return-1===i?null:[new P(r,i-r)]}return this._readVisibleRangesForRange(e,t,n)},e.prototype._readVisibleRangesForRange=function(e,t,n){if(e===t){var r=this._readPixelOffset(e,n);return-1===r?null:[new P(r,0)]}return this._readRawVisibleRangesForRange(e,t,n)},e.prototype._readPixelOffset=function(e,t){if(0===this._characterMapping.length){if(0===this._containsForeignElements)return 0;if(2===this._containsForeignElements)return 0;if(1===this._containsForeignElements)return this.getWidth()}if(null!==this._pixelOffsetCache){var n=this._pixelOffsetCache[e];if(-1!==n)return n;var r=this._actualReadPixelOffset(e,t);return this._pixelOffsetCache[e]=r,r}return this._actualReadPixelOffset(e,t)},e.prototype._actualReadPixelOffset=function(e,t){if(0===this._characterMapping.length){var n=z.readHorizontalRanges(this._getReadingTarget(),0,0,0,0,t.clientRectDeltaLeft,t.endNode);return n&&0!==n.length?n[0].left:-1}if(e===this._characterMapping.length&&this._isWhitespaceOnly&&0===this._containsForeignElements)return this.getWidth();var r=this._characterMapping.charOffsetToPartData(e-1),i=B.a.getPartIndex(r),o=B.a.getCharIndex(r),a=z.readHorizontalRanges(this._getReadingTarget(),i,o,i,o,t.clientRectDeltaLeft,t.endNode);return a&&0!==a.length?a[0].left:-1},e.prototype._readRawVisibleRangesForRange=function(e,t,n){if(1===e&&t===this._characterMapping.length)return[new P(0,this.getWidth())];var r=this._characterMapping.charOffsetToPartData(e-1),i=B.a.getPartIndex(r),o=B.a.getCharIndex(r),a=this._characterMapping.charOffsetToPartData(t-1),s=B.a.getPartIndex(a),u=B.a.getCharIndex(a);return z.readHorizontalRanges(this._getReadingTarget(),i,o,s,u,n.clientRectDeltaLeft,n.endNode)},e.prototype.getColumnOfNodeOffset=function(e,t,n){for(var r=t.textContent.length,i=-1;t;)t=t.previousSibling,i++;return this._characterMapping.partDataToCharOffset(i,r,n)+1},e}(),K=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return W(t,e),t.prototype._readVisibleRangesForRange=function(t,n,r){var i=e.prototype._readVisibleRangesForRange.call(this,t,n,r);if(!i||0===i.length||t===n||1===t&&n===this._characterMapping.length)return i;if(!this.input.containsRTL){var o=this._readPixelOffset(n,r);if(-1!==o){var a=i[i.length-1];a.left=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}(),oe=function(){function e(e,t,n){this.model=e.model,this.layoutInfo=e.configuration.editor.layoutInfo,this.viewDomNode=t.viewDomNode,this.lineHeight=e.configuration.editor.lineHeight,this.typicalHalfwidthCharacterWidth=e.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,this.lastViewCursorsRenderData=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 r=n.verticalOffset+n.height/2,i=e.model.getLineCount(),o=null,a=void 0,s=null;return n.afterLineNumber!==i&&(s=new ee.a(n.afterLineNumber+1,1)),n.afterLineNumber>0&&(o=new ee.a(n.afterLineNumber,e.model.getLineMaxColumn(n.afterLineNumber))),a=null===s?o:null===o?s:t=e.layoutInfo.glyphMarginLeft,this.isInContentArea=!this.isInMarginArea,this.mouseColumn=Math.max(0,ce._getMouseColumn(this.mouseContentHorizontalOffset,e.typicalHalfwidthCharacterWidth))}}()),se={isAfterLines:!0};function ue(e){return{isAfterLines:!1,horizontalDistanceToText:e}}var ce=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!(!ie.isChildOfContentWidgets(n)&&!ie.isChildOfOverflowingContentWidgets(n))||!!ie.isChildOfOverlayWidgets(n)},e.prototype.createMouseTarget=function(t,n,r,i){var o=new oe(this._context,this._viewHelper,t),a=new ae(o,n,r,i);try{return e._createMouseTarget(o,a,!1)}catch(e){return a.fulfill(0)}},e._createMouseTarget=function(t,n,r){if(null===n.target){if(r)return n.fulfill(0);var i=e._doHitTest(t,n);return i.position?e.createMouseTargetFromHitTestPosition(t,n,i.position.lineNumber,i.position.column):this._createMouseTarget(t,n.withTarget(i.hitTarget),!0)}var o=n,a=null;return(a=(a=(a=(a=(a=(a=(a=(a=(a=(a=a||e._hitTestContentWidget(t,o))||e._hitTestOverlayWidget(t,o))||e._hitTestMinimap(t,o))||e._hitTestScrollbarSlider(t,o))||e._hitTestViewZone(t,o))||e._hitTestMargin(t,o))||e._hitTestViewCursor(t,o))||e._hitTestTextArea(t,o))||e._hitTestViewLines(t,o,r))||e._hitTestScrollbar(t,o))||n.fulfill(0)},e._hitTestContentWidget=function(e,t){if(ie.isChildOfContentWidgets(t.targetPath)||ie.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(ie.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=0,r=o=e.lastViewCursorsRenderData;ni.contentLeft+i.width)){var l=e.getVerticalOffsetForLineNumber(i.position.lineNumber);if(l<=s&&s<=l+i.height)return t.fulfill(6,i.position)}}return null},e._hitTestViewZone=function(e,t){var n=e.getZoneAtCoord(t.mouseVerticalOffset);if(n){var r=t.isInContentArea?8:5;return t.fulfill(r,n.position,null,n)}return null},e._hitTestTextArea=function(e,t){return ie.isTextArea(t.targetPath)?t.fulfill(1):null},e._hitTestMargin=function(e,t){if(t.isInMarginArea){var n=e.getFullLineRangeAtCoord(t.mouseVerticalOffset),r=n.range.getStartPosition(),i=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:i};return(i-=e.layoutInfo.glyphMarginLeft)<=e.layoutInfo.glyphMarginWidth?t.fulfill(2,r,n.range,o):(i-=e.layoutInfo.glyphMarginWidth)<=e.layoutInfo.lineNumbersWidth?t.fulfill(3,r,n.range,o):(i-=e.layoutInfo.lineNumbersWidth,t.fulfill(4,r,n.range,o))}return null},e._hitTestViewLines=function(t,n,r){if(!ie.isChildOfViewLines(n.targetPath))return null;if(t.isAfterLines(n.mouseVerticalOffset)){var i=t.model.getLineCount(),o=t.model.getLineMaxColumn(i);return n.fulfill(7,new ee.a(i,o),void 0,se)}if(r){if(ie.isStrictChildOfViewLines(n.targetPath)){var a=t.getLineNumberAtVerticalOffset(n.mouseVerticalOffset);if(0===t.model.getLineLength(a)){var s=t.getLineWidth(a),u=ue(n.mouseContentHorizontalOffset-s);return n.fulfill(7,new ee.a(a,1),void 0,u)}}return n.fulfill(0)}var c=e._doHitTest(t,n);return c.position?e.createMouseTargetFromHitTestPosition(t,n,c.position.lineNumber,c.position.column):this._createMouseTarget(t,n.withTarget(c.hitTarget),!0)},e._hitTestMinimap=function(e,t){if(ie.isChildOfMinimap(t.targetPath)){var n=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),r=e.model.getLineMaxColumn(n);return t.fulfill(11,new ee.a(n,r))}return null},e._hitTestScrollbarSlider=function(e,t){if(ie.isChildOfScrollableElement(t.targetPath)&&t.target&&1===t.target.nodeType){var n=t.target.className;if(n&&/\b(slider|scrollbar)\b/.test(n)){var r=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),i=e.model.getLineMaxColumn(r);return t.fulfill(11,new ee.a(r,i))}}return null},e._hitTestScrollbar=function(e,t){if(ie.isChildOfScrollableElement(t.targetPath)){var n=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),r=e.model.getLineMaxColumn(n);return t.fulfill(11,new ee.a(n,r))}return null},e.prototype.getMouseColumn=function(t,n){var r=this._context.configuration.editor.layoutInfo,i=this._context.viewLayout.getCurrentScrollLeft()+n.x-t.x-r.contentLeft;return e._getMouseColumn(i,this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth)},e._getMouseColumn=function(e,t){return e<0?1:Math.round(e/t)+1},e.createMouseTargetFromHitTestPosition=function(e,t,n,r){var i=new ee.a(n,r),o=e.getLineWidth(n);if(t.mouseContentHorizontalOffset>o){if(g.f&&1===i.column){var a=ue(t.mouseContentHorizontalOffset-o);return t.fulfill(7,new ee.a(n,e.model.getLineMaxColumn(n)),void 0,a)}var s=ue(t.mouseContentHorizontalOffset-o);return t.fulfill(7,i,void 0,s)}var u=e.visibleRangeForPosition2(n,r);if(!u)return t.fulfill(0,i);var c=u.left;if(t.mouseContentHorizontalOffset===c)return t.fulfill(6,i);var l=[];if(l.push({offset:u.left,column:r}),r>1){var d=e.visibleRangeForPosition2(n,r-1);d&&l.push({offset:d.left,column:r-1})}if(r=t.editorPos.y+e.layoutInfo.height&&(i=t.editorPos.y+e.layoutInfo.height-1);var o=new w(t.pos.x,i),a=this._actualDoHitTestWithCaretRangeFromPoint(e,o.toClientCoordinates());return a.position?a:this._actualDoHitTestWithCaretRangeFromPoint(e,t.pos.toClientCoordinates())},e._actualDoHitTestWithCaretRangeFromPoint=function(e,t){var n=document.caretRangeFromPoint(t.clientX,t.clientY);if(!n||!n.startContainer)return{position:null,hitTarget:null};var r=n.startContainer,i=null;if(r.nodeType===r.TEXT_NODE){var o=(s=(a=r.parentNode)?a.parentNode:null)?s.parentNode:null;if((o&&o.nodeType===o.ELEMENT_NODE?o.className:null)===G.CLASS_NAME)return{position:e.getPositionFromDOMInfo(a,n.startOffset),hitTarget:null};i=r.parentNode}else if(r.nodeType===r.ELEMENT_NODE){var a,s;if(((s=(a=r.parentNode)?a.parentNode:null)&&s.nodeType===s.ELEMENT_NODE?s.className:null)===G.CLASS_NAME)return{position:e.getPositionFromDOMInfo(r,r.textContent.length),hitTarget:null};i=r}return{position:null,hitTarget:i}},e._doHitTestWithCaretPositionFromPoint=function(e,t){var n=document.caretPositionFromPoint(t.clientX,t.clientY);if(n.offsetNode.nodeType===n.offsetNode.TEXT_NODE){var r=n.offsetNode.parentNode,i=r?r.parentNode:null,o=i?i.parentNode:null;return(o&&o.nodeType===o.ELEMENT_NODE?o.className:null)===G.CLASS_NAME?{position:e.getPositionFromDOMInfo(n.offsetNode.parentNode,n.offset),hitTarget:null}:{position:null,hitTarget:n.offsetNode.parentNode}}return{position:null,hitTarget:n.offsetNode}},e._doHitTestWithMoveToPoint=function(e,t){var n=null,r=null,i=document.body.createTextRange();try{i.moveToPoint(t.clientX,t.clientY)}catch(e){return{position:null,hitTarget:null}}i.collapse(!0);var o=i?i.parentElement():null,a=o?o.parentNode:null,s=a?a.parentNode:null;if((s&&s.nodeType===s.ELEMENT_NODE?s.className:"")===G.CLASS_NAME){var u=i.duplicate();u.moveToElementText(o),u.setEndPoint("EndToStart",i),n=e.getPositionFromDOMInfo(o,u.text.length),u.moveToElementText(e.viewDomNode)}else r=o;return i.moveToElementText(e.viewDomNode),{position:n,hitTarget:r}},e._doHitTest=function(e,t){return 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}(),le=n(133),de=n(25),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])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function pe(e){return function(t,n){var r=!1;return e&&(r=e.mouseTargetIsWidget(n)),r||n.preventDefault(),n}}var fe=function(e){function t(n,r,i){var a=e.call(this)||this;a._isFocused=!1,a._context=n,a.viewController=r,a.viewHelper=i,a.mouseTargetFactory=new ce(a._context,i),a._mouseDownOperation=a._register(new ge(a._context,a.viewController,a.viewHelper,function(e,t){return a._createMouseTarget(e,t)},function(e){return a._getMouseColumn(e)})),a._asyncFocus=a._register(new y.d(function(){return a.viewHelper.focusTextArea()},0)),a.lastMouseLeaveTime=-1;var s=new x(a.viewHelper.viewDomNode);a._register(s.onContextMenu(a.viewHelper.viewDomNode,function(e){return a._onContextMenu(e,!0)})),a._register(s.onMouseMoveThrottled(a.viewHelper.viewDomNode,function(e){return a._onMouseMove(e)},pe(a.mouseTargetFactory),t.MOUSE_MOVE_MINIMUM_TIME)),a._register(s.onMouseUp(a.viewHelper.viewDomNode,function(e){return a._onMouseUp(e)})),a._register(s.onMouseLeave(a.viewHelper.viewDomNode,function(e){return a._onMouseLeave(e)})),a._register(s.onMouseDown(a.viewHelper.viewDomNode,function(e){return a._onMouseDown(e)}));return a._register(o.h(a.viewHelper.viewDomNode,"mousewheel",function(e){if(a.viewController.emitMouseWheel(e),a._context.configuration.editor.viewInfo.mouseWheelZoom){var t=new m.c(e);if(t.browserEvent.ctrlKey||t.browserEvent.metaKey){var n=le.a.getZoomLevel(),r=t.deltaY>0?1:-1;le.a.setZoomLevel(n+r),t.preventDefault(),t.stopPropagation()}}},!0)),a._context.addEventHandler(a),a}return he(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 S(e,t).toPageCoordinates(),r=I(this.viewHelper.viewDomNode);if(n.yr.y+r.height||n.xr.x+r.width)return null;var i=this.viewHelper.getLastViewCursorsRenderData();return this.mouseTargetFactory.createMouseTarget(i,r,n,null)},t.prototype._createMouseTarget=function(e,t){var n=this.viewHelper.getLastViewCursorsRenderData();return this.mouseTargetFactory.createMouseTarget(n,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){this._mouseDownOperation.isActive()||(e.timestampt.y+t.height){var s,u;o=r.getCurrentScrollTop()+(e.posy-t.y);if(s=oe.getZoneAtCoord(this._context,o))if(u=this._helpPositionJumpOverViewZone(s))return new re(null,13,i,u);var c=r.getLineNumberAtVerticalOffset(o);return new re(null,13,i,new ee.a(c,n.getLineMaxColumn(c)))}var l=r.getLineNumberAtVerticalOffset(r.getCurrentScrollTop()+(e.posy-t.y));return e.posxt.x+t.width?new re(null,13,i,new ee.a(l,n.getLineMaxColumn(l))):null},t.prototype._findMousePosition=function(e,t){var n=this._getPositionOutsideEditor(e);if(n)return n;var r=this._createMouseTarget(e,t);if(!r.position)return null;if(8===r.type||5===r.type){var i=this._helpPositionJumpOverViewZone(r.detail);if(i)return new re(r.element,r.type,r.mouseColumn,i,null,r.detail)}return r},t.prototype._helpPositionJumpOverViewZone=function(e){var t=new ee.a(this._currentSelection.selectionStartLineNumber,this._currentSelection.selectionStartColumn),n=e.positionBefore,r=e.positionAfter;return n&&r?n.isBefore(t)?n:r: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}(u.a),me=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 r=(new Date).getTime();r-this._lastSetMouseDownCountTime>e.CLEAR_MOUSE_DOWN_COUNT_TIME&&(t=1),this._lastSetMouseDownCountTime=r,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}(),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])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function ve(e,t){var n={translationY:t.translationY,translationX:t.translationX};return e&&(n.translationY+=e.translationY,n.translationX+=e.translationX),n}var be=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.viewHelper.linesContentDomNode.style.msTouchAction="none",i.viewHelper.linesContentDomNode.style.msContentZooming="none",i._installGestureHandlerTimeout=window.setTimeout(function(){if(i._installGestureHandlerTimeout=-1,window.MSGesture){var e=new MSGesture,t=new MSGesture;e.target=i.viewHelper.linesContentDomNode,t.target=i.viewHelper.linesContentDomNode,i.viewHelper.linesContentDomNode.addEventListener("MSPointerDown",function(n){var r=n.pointerType;r!==(n.MSPOINTER_TYPE_MOUSE||"mouse")?r===(n.MSPOINTER_TYPE_TOUCH||"touch")?(i._lastPointerType="touch",e.addPointer(n.pointerId)):(i._lastPointerType="pen",t.addPointer(n.pointerId)):i._lastPointerType="mouse"}),i._register(o.j(i.viewHelper.linesContentDomNode,"MSGestureChange",function(e){return i._onGestureChange(e)},ve)),i._register(o.h(i.viewHelper.linesContentDomNode,"MSGestureTap",function(e){return i._onCaptureGestureTap(e)},!0))}},100),i._lastPointerType="mouse",i}return ye(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 M(e,this.viewHelper.viewDomNode),r=this._createMouseTarget(n,!1);r.position&&this.viewController.moveTo(r.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}(fe),_e=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.viewHelper.linesContentDomNode.style.touchAction="none",i._installGestureHandlerTimeout=window.setTimeout(function(){if(i._installGestureHandlerTimeout=-1,window.MSGesture){var e=new MSGesture,t=new MSGesture;e.target=i.viewHelper.linesContentDomNode,t.target=i.viewHelper.linesContentDomNode,i.viewHelper.linesContentDomNode.addEventListener("pointerdown",function(n){var r=n.pointerType;"mouse"!==r?"touch"===r?(i._lastPointerType="touch",e.addPointer(n.pointerId)):(i._lastPointerType="pen",t.addPointer(n.pointerId)):i._lastPointerType="mouse"}),i._register(o.j(i.viewHelper.linesContentDomNode,"MSGestureChange",function(e){return i._onGestureChange(e)},ve)),i._register(o.h(i.viewHelper.linesContentDomNode,"MSGestureTap",function(e){return i._onCaptureGestureTap(e)},!0))}},100),i._lastPointerType="mouse",i}return ye(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 M(e,this.viewHelper.viewDomNode),r=this._createMouseTarget(n,!1);r.position&&this.viewController.moveTo(r.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}(fe),we=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return f.b.addTarget(i.viewHelper.linesContentDomNode),i._register(o.h(i.viewHelper.linesContentDomNode,f.a.Tap,function(e){return i.onTap(e)})),i._register(o.h(i.viewHelper.linesContentDomNode,f.a.Change,function(e){return i.onChange(e)})),i._register(o.h(i.viewHelper.linesContentDomNode,f.a.Contextmenu,function(e){return i._onContextMenu(new M(e,i.viewHelper.viewDomNode),!1)})),i}return ye(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.onTap=function(e){e.preventDefault(),this.viewHelper.focusTextArea();var t=this._createMouseTarget(new M(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}(fe),Se=function(){function e(e,t,n){window.navigator.msPointerEnabled?this.handler=new be(e,t,n):window.TouchEvent?this.handler=new we(e,t,n):window.navigator.pointerEnabled||window.PointerEvent?this.handler=new _e(e,t,n):this.handler=new fe(e,t,n)}return e.prototype.getTargetAtClientPoint=function(e,t){return this.handler.getTargetAtClientPoint(e,t)},e.prototype.dispose=function(){this.handler.dispose()},e}(),Ce=(n(1214),n(9)),Ie=n(222),Me=n(121),xe=(n(1216),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])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Ne=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return xe(t,e),t}(L),Ee=n(38),Le=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])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Te=function(e){function t(t){var n=e.call(this)||this;return n._context=t,n._readConfig(),n._lastCursorModelPosition=new ee.a(1,1),n._renderResult=null,n._context.addEventHandler(n),n}return Le(t,e),t.prototype._readConfig=function(){var e=this._context.configuration.editor;this._lineHeight=e.lineHeight,this._renderLineNumbers=e.viewInfo.renderLineNumbers,this._renderCustomLineNumbers=e.viewInfo.renderCustomLineNumbers,this._renderFinalNewline=e.viewInfo.renderFinalNewline,this._lineNumbersLeft=e.layoutInfo.lineNumbersLeft,this._lineNumbersWidth=e.layoutInfo.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 ee.a(e,1));if(1!==t.column)return"";var n=t.lineNumber;if(!this._renderFinalNewline){var r=this._context.model.getLineCount(),i=this._context.model.getLineContent(n);if(n===r&&""===i)return""}if(this._renderCustomLineNumbers)return this._renderCustomLineNumbers(n);if(2===this._renderLineNumbers){var o=Math.abs(this._lastCursorModelPosition.lineNumber-n);return 0===o?''+n+"":String(o)}return 3===this._renderLineNumbers?this._lastCursorModelPosition.lineNumber===n?String(n):n%10==0?String(n):"":String(n)},t.prototype.prepareRender=function(e){if(0!==this._renderLineNumbers){for(var n=v.c?this._lineHeight%2==0?" lh-even":" lh-odd":"",r=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber,o='
    ',a=[],s=r;s<=i;s++){var u=s-r,c=this._getLineRenderLineNumber(s);a[u]=c?o+c+"
    ":""}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}(Ne);Object(U.e)(function(e,t){var n=e.getColor(Ee.q);n&&t.addRule(".monaco-editor .line-numbers { color: "+n+"; }");var r=e.getColor(Ee.b);r&&t.addRule(".monaco-editor .current-line ~ .line-numbers { color: "+r+"; }")});var ke=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])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),De=function(e){function t(t){var n=e.call(this,t)||this;return n._canUseLayerHinting=n._context.configuration.editor.canUseLayerHinting,n._contentLeft=n._context.configuration.editor.layoutInfo.contentLeft,n._glyphMarginLeft=n._context.configuration.editor.layoutInfo.glyphMarginLeft,n._glyphMarginWidth=n._context.configuration.editor.layoutInfo.glyphMarginWidth,n._domNode=n._createDomNode(),n}return ke(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.getDomNode=function(){return this._domNode},t.prototype._createDomNode=function(){var e=Object(p.b)(document.createElement("div"));return e.setClassName(t.OUTER_CLASS_NAME),e.setPosition("absolute"),e.setAttribute("role","presentation"),e.setAttribute("aria-hidden","true"),this._glyphMarginBackgroundDomNode=Object(p.b)(document.createElement("div")),this._glyphMarginBackgroundDomNode.setClassName(t.CLASS_NAME),e.appendChild(this._glyphMarginBackgroundDomNode),e},t.prototype.onConfigurationChanged=function(e){return e.canUseLayerHinting&&(this._canUseLayerHinting=this._context.configuration.editor.canUseLayerHinting),e.layoutInfo&&(this._contentLeft=this._context.configuration.editor.layoutInfo.contentLeft,this._glyphMarginLeft=this._context.configuration.editor.layoutInfo.glyphMarginLeft,this._glyphMarginWidth=this._context.configuration.editor.layoutInfo.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);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),Oe=n(140),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])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),je=function(){return function(e){this.type=1,this.canUseLayerHinting=e.canUseLayerHinting,this.pixelRatio=e.pixelRatio,this.editorClassName=e.editorClassName,this.lineHeight=e.lineHeight,this.readOnly=e.readOnly,this.accessibilitySupport=e.accessibilitySupport,this.emptySelectionClipboard=e.emptySelectionClipboard,this.copyWithSyntaxHighlighting=e.copyWithSyntaxHighlighting,this.layoutInfo=e.layoutInfo,this.fontInfo=e.fontInfo,this.viewInfo=e.viewInfo,this.wrappingInfo=e.wrappingInfo}}(),Pe=function(){return function(e){this.type=2,this.selections=e}}(),Re=function(){return function(){this.type=3}}(),ze=function(){return function(){this.type=4}}(),Fe=function(){return function(e){this.type=5,this.isFocused=e}}(),Be=function(){return function(){this.type=6}}(),Ue=function(){return function(e,t){this.type=7,this.fromLineNumber=e,this.toLineNumber=t}}(),We=function(){return function(e,t){this.type=8,this.fromLineNumber=e,this.toLineNumber=t}}(),He=function(){return function(e,t){this.type=9,this.fromLineNumber=e,this.toLineNumber=t}}(),Ve=function(){return function(e,t,n,r){this.type=10,this.range=e,this.verticalType=t,this.revealHorizontal=n,this.scrollType=r}}(),qe=function(){return function(e){this.type=11,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}}(),Ye=function(){return function(e){this.type=12,this.ranges=e}}(),Ge=function(){return function(){this.type=15}}(),Ze=function(){return function(){this.type=13}}(),Qe=function(){return function(){this.type=14}}(),Ke=function(){return function(){this.type=16}}(),Je=function(e){function t(){var t=e.call(this)||this;return t._listeners=[],t._collector=null,t._collectorCnt=0,t}return Ae(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 Xe),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,r=t.length;n0)return new Me.b(r,r.length,r.length,n,n)}}return Me.b.EMPTY}return Me.a.fromEditorSelection(e,a,i._selections[0],0===i._accessibilitySupport)},deduceModelPosition:function(e,t,n){return i._context.model.deduceModelPositionRelativeToViewPosition(e,t,n)}};return i._textAreaInput=i._register(new Ie.b(s,i.textArea)),i._register(i._textAreaInput.onKeyDown(function(e){i._viewController.emitKeyDown(e)})),i._register(i._textAreaInput.onKeyUp(function(e){i._viewController.emitKeyUp(e)})),i._register(i._textAreaInput.onPaste(function(e){var t=rt.INSTANCE.get(e.text),n=!1,r=null;t&&(n=i._emptySelectionClipboard&&t.isFromEmptySelection,r=t.multicursorText),i._viewController.paste("keyboard",e.text,n,r)})),i._register(i._textAreaInput.onCut(function(){i._viewController.cut("keyboard")})),i._register(i._textAreaInput.onType(function(e){e.replaceCharCnt?i._viewController.replacePreviousChar("keyboard",e.text,e.replaceCharCnt):i._viewController.type("keyboard",e.text)})),i._register(i._textAreaInput.onSelectionChangeRequest(function(e){i._viewController.setSelection("keyboard",e)})),i._register(i._textAreaInput.onCompositionStart(function(){var e=i._selections[0].startLineNumber,t=i._selections[0].startColumn;i._context.privateViewEventBus.emit(new Ve(new te.a(e,t,e,t),0,!0,1));var n=i._viewHelper.visibleRangeForPositionRelativeToEditor(e,t);n&&(i._visibleTextArea=new tt(i._context.viewLayout.getVerticalOffsetForLineNumber(e),n.left,nt?0:1),i._render()),i.textArea.setClassName("inputarea ime-input"),i._viewController.compositionStart("keyboard")})),i._register(i._textAreaInput.onCompositionUpdate(function(e){g.g?i._visibleTextArea=i._visibleTextArea.setWidth(0):i._visibleTextArea=i._visibleTextArea.setWidth(function(e,t){var n=document.createElement("canvas").getContext("2d");n.font=(r=t,i="normal",o=r.fontWeight,a=r.fontSize,s=r.lineHeight,u=r.fontFamily,i+" normal "+o+" "+a+"px / "+s+"px "+u);var r,i,o,a,s,u;var c=n.measureText(e);return g.i?c.width+2:c.width}(e.data,i._fontInfo)),i._render()})),i._register(i._textAreaInput.onCompositionEnd(function(){i._visibleTextArea=null,i._render(),i.textArea.setClassName("inputarea"),i._viewController.compositionEnd("keyboard")})),i._register(i._textAreaInput.onFocus(function(){i._context.privateViewEventBus.emit(new Fe(!0))})),i._register(i._textAreaInput.onBlur(function(){i._context.privateViewEventBus.emit(new Fe(!1))})),i}return et(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype._getWordBeforePosition=function(e){for(var t=this._context.model.getLineContent(e.lineNumber),n=Object(Oe.a)(this._context.configuration.editor.wordSeparators),r=e.column,i=0;r>1;){var o=t.charCodeAt(r-2);if(0!==n.get(o)||i>50)return t.substring(r-1,e.column-1);i++,r--}return t.substring(0,e.column-1)},t.prototype._getCharacterBeforePosition=function(e){if(e.column>1){var t=this._context.model.getLineContent(e.lineNumber).charAt(e.column-2);if(!Ce.u(t.charCodeAt(0)))return t}return""},t.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.editor;return e.fontInfo&&(this._fontInfo=t.fontInfo),e.viewInfo&&this.textArea.setAttribute("aria-label",t.viewInfo.ariaLabel),e.layoutInfo&&(this._contentLeft=t.layoutInfo.contentLeft,this._contentWidth=t.layoutInfo.contentWidth,this._contentHeight=t.layoutInfo.contentHeight),e.lineHeight&&(this._lineHeight=t.lineHeight),e.accessibilitySupport&&(this._accessibilitySupport=t.accessibilitySupport,this._textAreaInput.writeScreenReaderContent("strategy changed")),e.emptySelectionClipboard&&(this._emptySelectionClipboard=t.emptySelectionClipboard),e.copyWithSyntaxHighlighting&&(this._copyWithSyntaxHighlighting=t.copyWithSyntaxHighlighting),!0},t.prototype.onCursorStateChanged=function(e){return this._selections=e.selections.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.prepareRender=function(e){if(2===this._accessibilitySupport)this._primaryCursorVisibleRange=null;else{var t=new ee.a(this._selections[0].positionLineNumber,this._selections[0].positionColumn);this._primaryCursorVisibleRange=e.visibleRangeForPosition(t)}},t.prototype.render=function(e){this._textAreaInput.writeScreenReaderContent("render"),this._render()},t.prototype._render=function(){if(this._visibleTextArea)this._renderInsideEditor(this._visibleTextArea.top-this._scrollTop,this._contentLeft+this._visibleTextArea.left-this._scrollLeft,this._visibleTextArea.width,this._lineHeight,!0);else if(this._primaryCursorVisibleRange){var e=this._contentLeft+this._primaryCursorVisibleRange.left-this._scrollLeft;if(ethis._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():this._renderInsideEditor(t,e,nt?0:1,nt?0:1,!1)}}else this._renderAtTopLeft()},t.prototype._renderInsideEditor=function(e,t,n,r,i){var o=this.textArea,a=this.textAreaCover;i?l.a.applyFontInfo(o,this._fontInfo):(o.setFontSize(1),o.setLineHeight(this._fontInfo.lineHeight)),o.setTop(e),o.setLeft(t),o.setWidth(n),o.setHeight(r),a.setTop(0),a.setLeft(0),a.setWidth(0),a.setHeight(0)},t.prototype._renderAtTopLeft=function(){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),nt)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),this._context.configuration.editor.viewInfo.glyphMargin?t.setClassName("monaco-editor-background textAreaCover "+De.OUTER_CLASS_NAME):0!==this._context.configuration.editor.viewInfo.renderLineNumbers?t.setClassName("monaco-editor-background textAreaCover "+Te.CLASS_NAME):t.setClassName("monaco-editor-background textAreaCover")},t}(k);var ot=n(107),at=function(){function e(e,t,n,r){this.configuration=e,this.viewModel=t,this.outgoingEvents=n,this.commandDelegate=r}return e.prototype._execMouseCommand=function(e,t){t.source="mouse",this.commandDelegate.executeEditorCommand(e,t)},e.prototype.paste=function(e,t,n,r){this.commandDelegate.paste(e,t,n,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(ot.CoreNavigationCommands.SetSelection,{source:e,selection:t})},e.prototype._validateViewColumn=function(e){var t=this.viewModel.getLineMinColumn(e.lineNumber);return e.column=4?this._selectAll():3===e.mouseDownCount?this._hasMulticursorModifier(e)?e.inSelectionMode?this._lastCursorLineSelectDrag(e.position):this._lastCursorLineSelect(e.position):e.inSelectionMode?this._lineSelectDrag(e.position):this._lineSelect(e.position):2===e.mouseDownCount?this._hasMulticursorModifier(e)?this._lastCursorWordSelect(e.position):e.inSelectionMode?this._wordSelectDrag(e.position):this._wordSelect(e.position):this._hasMulticursorModifier(e)?this._hasNonMulticursorModifier(e)||(e.shiftKey?this._columnSelect(e.position,e.mouseColumn):e.inSelectionMode?this._lastCursorMoveToSelect(e.position):this._createCursor(e.position,!1)):e.inSelectionMode?e.altKey?this._columnSelect(e.position,e.mouseColumn):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(ot.CoreNavigationCommands.MoveTo,this._usualArgs(e))},e.prototype._moveToSelect=function(e){this._execMouseCommand(ot.CoreNavigationCommands.MoveToSelect,this._usualArgs(e))},e.prototype._columnSelect=function(e,t){e=this._validateViewColumn(e),this._execMouseCommand(ot.CoreNavigationCommands.ColumnSelect,{position:this._convertViewToModelPosition(e),viewPosition:e,mouseColumn:t})},e.prototype._createCursor=function(e,t){e=this._validateViewColumn(e),this._execMouseCommand(ot.CoreNavigationCommands.CreateCursor,{position:this._convertViewToModelPosition(e),viewPosition:e,wholeLine:t})},e.prototype._lastCursorMoveToSelect=function(e){this._execMouseCommand(ot.CoreNavigationCommands.LastCursorMoveToSelect,this._usualArgs(e))},e.prototype._wordSelect=function(e){this._execMouseCommand(ot.CoreNavigationCommands.WordSelect,this._usualArgs(e))},e.prototype._wordSelectDrag=function(e){this._execMouseCommand(ot.CoreNavigationCommands.WordSelectDrag,this._usualArgs(e))},e.prototype._lastCursorWordSelect=function(e){this._execMouseCommand(ot.CoreNavigationCommands.LastCursorWordSelect,this._usualArgs(e))},e.prototype._lineSelect=function(e){this._execMouseCommand(ot.CoreNavigationCommands.LineSelect,this._usualArgs(e))},e.prototype._lineSelectDrag=function(e){this._execMouseCommand(ot.CoreNavigationCommands.LineSelectDrag,this._usualArgs(e))},e.prototype._lastCursorLineSelect=function(e){this._execMouseCommand(ot.CoreNavigationCommands.LastCursorLineSelect,this._usualArgs(e))},e.prototype._lastCursorLineSelectDrag=function(e){this._execMouseCommand(ot.CoreNavigationCommands.LastCursorLineSelectDrag,this._usualArgs(e))},e.prototype._selectAll=function(){this._execMouseCommand(ot.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}(),st=n(213),ut=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(),r=this.getEndLineNumber();if(tr)return null;for(var o=0,a=0,s=n;s<=r;s++){var u=s-this._rendLineNumberStart;e<=s&&s<=t&&(0===a?(o=u,a=1):a++)}if(e=n&&o<=r&&(this._lines[o-this._rendLineNumberStart].onContentChanged(),i=!0);return i},e.prototype.onLinesInserted=function(e,t){if(0===this.getCount())return null;var n=t-e+1,r=this.getStartLineNumber(),i=this.getEndLineNumber();if(e<=r)return this._rendLineNumberStart+=n,null;if(e>i)return null;if(n+e>i)return this._lines.splice(e-this._rendLineNumberStart,i-e+1);for(var o=[],a=0;an))for(var s=Math.max(t,a.fromLineNumber),u=Math.min(n,a.toLineNumber),c=s;c<=u;c++){var l=c-this._rendLineNumberStart;this._lines[l].onTokensChanged(),r=!0}}return r},e}(),ct=function(){function e(e){var t=this;this._host=e,this.domNode=this._createDomNode(),this._linesCollection=new ut(function(){return t._host.createVisibleLine()})}return e.prototype._createDomNode=function(){var e=Object(p.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.layoutInfo},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,r=t.length;nt)(u=t)<=(a=Math.min(n,i.rendLineNumberStart-1))&&(this._insertLinesBefore(i,u,a,r,t),i.linesLength+=a-u+1);else if(i.rendLineNumberStart0&&(this._removeLinesBefore(i,s),i.linesLength-=s)}if(i.rendLineNumberStart=t,i.rendLineNumberStart+i.linesLength-1n){var a,s,u=Math.max(0,n-i.rendLineNumberStart+1);(s=(a=i.linesLength-1)-u+1)>0&&(this._removeLinesAfter(i,s),i.linesLength-=s)}return this._finishRendering(i,!1,r),i},e.prototype._renderUntouchedLines=function(e,t,n,r,i){for(var o=e.rendLineNumberStart,a=e.lines,s=t;s<=n;s++){var u=o+s;a[s].layoutLine(u,r[u-i])}},e.prototype._insertLinesBefore=function(e,t,n,r,i){for(var o=[],a=0,s=t;s<=n;s++)o[a++]=this.host.createVisibleLine();e.lines=o.concat(e.lines)},e.prototype._removeLinesBefore=function(e,t){for(var n=0;n=0;a--){var s=e.lines[a];r[a]&&(s.setDomNode(o),o=o.previousSibling)}},e.prototype._finishRenderingInvalidLines=function(e,t,n){var r=document.createElement("div");r.innerHTML=t;for(var i=0;i'),r.appendASCIIString(i),r.appendASCIIString(""),!0)},e.prototype.layoutLine=function(e,t){this._domNode&&(this._domNode.setTop(t),this._domNode.setHeight(this._lineHeight))},e}(),ft=function(e){function t(t){var n=e.call(this,t)||this;return n._contentWidth=n._context.configuration.editor.layoutInfo.contentWidth,n.domNode.setHeight(0),n}return dt(t,e),t.prototype.onConfigurationChanged=function(t){return t.layoutInfo&&(this._contentWidth=this._context.configuration.editor.layoutInfo.contentWidth),e.prototype.onConfigurationChanged.call(this,t)},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}(ht),gt=function(e){function t(t){var n=e.call(this,t)||this;return n._contentLeft=n._context.configuration.editor.layoutInfo.contentLeft,n.domNode.setClassName("margin-view-overlays"),n.domNode.setWidth(1),l.a.applyFontInfo(n.domNode,n._context.configuration.editor.fontInfo),n}return dt(t,e),t.prototype.onConfigurationChanged=function(t){var n=!1;return t.fontInfo&&(l.a.applyFontInfo(this.domNode,this._context.configuration.editor.fontInfo),n=!0),t.layoutInfo&&(this._contentLeft=this._context.configuration.editor.layoutInfo.contentLeft,n=!0),e.prototype.onConfigurationChanged.call(this,t)||n},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}(ht),mt=n(24),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])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),vt=function(){return function(e,t){this.top=e,this.left=t}}(),bt=function(e){function t(t,n){var r=e.call(this,t)||this;return r._viewDomNode=n,r._widgets={},r.domNode=Object(p.b)(document.createElement("div")),D.write(r.domNode,1),r.domNode.setClassName("contentWidgets"),r.domNode.setPosition("absolute"),r.domNode.setTop(0),r.overflowingContentWidgetsDomNode=Object(p.b)(document.createElement("div")),D.write(r.overflowingContentWidgetsDomNode,2),r.overflowingContentWidgetsDomNode.setClassName("overflowingContentWidgets"),r}return yt(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._widgets={}},t.prototype.onConfigurationChanged=function(e){for(var t=0,n=Object.keys(this._widgets);t=r,l=s,d=i.viewportHeight-s>=r,h=e.left,p=t.left;return h+n>i.scrollLeft+i.viewportWidth&&(h=i.scrollLeft+i.viewportWidth-n),p+n>i.scrollLeft+i.viewportWidth&&(p=i.scrollLeft+i.viewportWidth-n),hthis._contentWidth)return null;var u,c=e.top-r,l=t.top+this._lineHeight,d=a+this._contentLeft,h=s+this._contentLeft,p=o.v(this._viewDomNode.domNode),f=p.top+c-o.e.scrollY,g=p.top+l-o.e.scrollY,m=p.left+d-o.e.scrollX,y=p.left+h-o.e.scrollX,v=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,b=f>=22,_=g+r<=(window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight)-22;m+n+20>v&&(m-=u=m-(v-n-20),d-=u);y+n+20>v&&(y-=u=y-(v-n-20),h-=u);m<0&&(m-=u=m,d-=u);y<0&&(y-=u=y,h-=u);return this._fixedOverflowWidgets&&(c=f,l=g,d=m,h=y),{fitsAbove:b,aboveTop:c,aboveLeft:d,fitsBelow:_,belowTop:l,belowLeft:h}},e.prototype._prepareRenderWidgetAtExactPositionOverflowing=function(e){return new vt(e.top,e.left+this._contentLeft)},e.prototype._getTopAndBottomLeft=function(e){if(!this._viewPosition)return[null,null];var t=e.visibleRangeForPosition(this._viewPosition);if(!t)return[null,null];var n=e.getVerticalOffsetForLineNumber(this._viewPosition.lineNumber)-e.scrollTop,r=new vt(n,t.left),i=this._viewPosition.lineNumber,o=t.left;if(this._viewRange){var a=e.linesVisibleRangesForRange(this._viewRange,!1);if(a&&a.length>0)for(var s=a.length-1;s>=0;s--){var u=a[s];if(u.lineNumber>=i){u.lineNumber>i&&(i=u.lineNumber,o=1073741824);for(var c=0,l=u.ranges.length;ce.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}(),wt=(n(1218),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])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),St=function(e){function t(t){var n=e.call(this)||this;return n._context=t,n._lineHeight=n._context.configuration.editor.lineHeight,n._renderLineHighlight=n._context.configuration.editor.viewInfo.renderLineHighlight,n._selectionIsEmpty=!0,n._primaryCursorLineNumber=1,n._scrollWidth=0,n._contentWidth=n._context.configuration.editor.layoutInfo.contentWidth,n._context.addEventHandler(n),n}return wt(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.viewInfo&&(this._renderLineHighlight=this._context.configuration.editor.viewInfo.renderLineHighlight),e.layoutInfo&&(this._contentWidth=this._context.configuration.editor.layoutInfo.contentWidth),!0},t.prototype.onCursorStateChanged=function(e){var t=!1,n=e.selections[0].positionLineNumber;this._primaryCursorLineNumber!==n&&(this._primaryCursorLineNumber=n,t=!0);var r=e.selections[0].isEmpty();return this._selectionIsEmpty!==r?(this._selectionIsEmpty=r,!0):t},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},t.prototype.onZonesChanged=function(e){return!0},t.prototype.prepareRender=function(e){this._scrollWidth=e.scrollWidth},t.prototype.render=function(e,t){return t===this._primaryCursorLineNumber&&this._shouldShowCurrentLine()?'
    ':""},t.prototype._shouldShowCurrentLine=function(){return("line"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&this._selectionIsEmpty},t.prototype._willRenderMarginCurrentLine=function(){return"gutter"===this._renderLineHighlight||"all"===this._renderLineHighlight},t}(Ne);Object(U.e)(function(e,t){var n=e.getColor(Ee.o);if(n&&t.addRule(".monaco-editor .view-overlays .current-line { background-color: "+n+"; }"),!n||n.isTransparent()||e.defines(Ee.p)){var r=e.getColor(Ee.p);r&&(t.addRule(".monaco-editor .view-overlays .current-line { border: 2px solid "+r+"; }"),"hc"===e.type&&t.addRule(".monaco-editor .view-overlays .current-line { border-width: 1px; }"))}});n(1220);var Ct=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])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),It=function(e){function t(t){var n=e.call(this)||this;return n._context=t,n._lineHeight=n._context.configuration.editor.lineHeight,n._renderLineHighlight=n._context.configuration.editor.viewInfo.renderLineHighlight,n._selectionIsEmpty=!0,n._primaryCursorLineNumber=1,n._contentLeft=n._context.configuration.editor.layoutInfo.contentLeft,n._context.addEventHandler(n),n}return Ct(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.viewInfo&&(this._renderLineHighlight=this._context.configuration.editor.viewInfo.renderLineHighlight),e.layoutInfo&&(this._contentLeft=this._context.configuration.editor.layoutInfo.contentLeft),!0},t.prototype.onCursorStateChanged=function(e){var t=!1,n=e.selections[0].positionLineNumber;this._primaryCursorLineNumber!==n&&(this._primaryCursorLineNumber=n,t=!0);var r=e.selections[0].isEmpty();return this._selectionIsEmpty!==r?(this._selectionIsEmpty=r,!0):t},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onZonesChanged=function(e){return!0},t.prototype.prepareRender=function(e){},t.prototype.render=function(e,t){if(t===this._primaryCursorLineNumber){var n="current-line";if(this._shouldShowCurrentLine())n="current-line current-line-margin"+(this._willRenderContentCurrentLine()?" current-line-margin-both":"");return'
    '}return""},t.prototype._shouldShowCurrentLine=function(){return"gutter"===this._renderLineHighlight||"all"===this._renderLineHighlight},t.prototype._willRenderContentCurrentLine=function(){return("line"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&this._selectionIsEmpty},t}(Ne);Object(U.e)(function(e,t){var n=e.getColor(Ee.o);if(n)t.addRule(".monaco-editor .margin-view-overlays .current-line-margin { background-color: "+n+"; border: none; }");else{var r=e.getColor(Ee.p);r&&t.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border: 2px solid "+r+"; }"),"hc"===e.type&&t.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border-width: 1px; }")}});n(1222);var Mt=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])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),xt=function(e){function t(t){var n=e.call(this)||this;return n._context=t,n._lineHeight=n._context.configuration.editor.lineHeight,n._typicalHalfwidthCharacterWidth=n._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,n._renderResult=null,n._context.addEventHandler(n),n}return Mt(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.fontInfo&&(this._typicalHalfwidthCharacterWidth=this._context.configuration.editor.fontInfo.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=[],r=0,i=0,o=t.length;it.options.zIndex)return 1;var n=e.options.className,r=t.options.className;return nr?1:te.a.compareRangesUsingStarts(e.range,t.range)});for(var s=e.visibleRange.startLineNumber,u=e.visibleRange.endLineNumber,c=[],l=s;l<=u;l++){c[l-s]=""}this._renderWholeLineDecorations(e,n,c),this._renderNormalDecorations(e,n,c),this._renderResult=c},t.prototype._renderWholeLineDecorations=function(e,t,n){for(var r=String(this._lineHeight),i=e.visibleRange.startLineNumber,o=e.visibleRange.endLineNumber,a=0,s=t.length;a',l=Math.max(u.range.startLineNumber,i),d=Math.min(u.range.endLineNumber,o),h=l;h<=d;h++){n[h-i]+=c}}},t.prototype._renderNormalDecorations=function(e,t,n){for(var r=String(this._lineHeight),i=e.visibleRange.startLineNumber,o=null,a=!1,s=null,u=0,c=t.length;u';a[d]+=m}}},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}(Ne),Nt=n(104),Et=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])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Lt=function(e){function t(t,n,r,i){var a=e.call(this,t)||this,s=a._context.configuration.editor.viewInfo.scrollbar,u={listenOnDomNode:r.domNode,className:"editor-scrollable "+Object(U.d)(t.theme.type),useShadows:!1,lazyRender:!0,vertical:s.vertical,horizontal:s.horizontal,verticalHasArrows:s.verticalHasArrows,horizontalHasArrows:s.horizontalHasArrows,verticalScrollbarSize:s.verticalScrollbarSize,verticalSliderSize:s.verticalSliderSize,horizontalScrollbarSize:s.horizontalScrollbarSize,horizontalSliderSize:s.horizontalSliderSize,handleMouseWheel:s.handleMouseWheel,arrowSize:s.arrowSize,mouseWheelScrollSensitivity:s.mouseWheelScrollSensitivity,fastScrollSensitivity:s.fastScrollSensitivity};a.scrollbar=a._register(new Nt.c(n.domNode,u,a._context.viewLayout.scrollable)),D.write(a.scrollbar.getDomNode(),5),a.scrollbarDomNode=Object(p.b)(a.scrollbar.getDomNode()),a.scrollbarDomNode.setPosition("absolute"),a._setLayout();var c=function(e,t,n){var r={};if(t){var i=e.scrollTop;i&&(r.scrollTop=a._context.viewLayout.getCurrentScrollTop()+i,e.scrollTop=0)}if(n){var o=e.scrollLeft;o&&(r.scrollLeft=a._context.viewLayout.getCurrentScrollLeft()+o,e.scrollLeft=0)}a._context.viewLayout.setScrollPositionNow(r)};return a._register(o.h(r.domNode,"scroll",function(e){return c(r.domNode,!0,!0)})),a._register(o.h(n.domNode,"scroll",function(e){return c(n.domNode,!0,!1)})),a._register(o.h(i.domNode,"scroll",function(e){return c(i.domNode,!0,!1)})),a._register(o.h(a.scrollbarDomNode.domNode,"scroll",function(e){return c(a.scrollbarDomNode.domNode,!0,!1)})),a}return Et(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype._setLayout=function(){var e=this._context.configuration.editor.layoutInfo;this.scrollbarDomNode.setLeft(e.contentLeft),"right"===this._context.configuration.editor.viewInfo.minimap.side?this.scrollbarDomNode.setWidth(e.contentWidth+e.minimapWidth):this.scrollbarDomNode.setWidth(e.contentWidth),this.scrollbarDomNode.setHeight(e.contentHeight)},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.viewInfo){var t=this._context.configuration.editor,n={handleMouseWheel:t.viewInfo.scrollbar.handleMouseWheel,mouseWheelScrollSensitivity:t.viewInfo.scrollbar.mouseWheelScrollSensitivity,fastScrollSensitivity:t.viewInfo.scrollbar.fastScrollSensitivity};this.scrollbar.updateOptions(n)}return e.layoutInfo&&this._setLayout(),!0},t.prototype.onScrollChanged=function(e){return!0},t.prototype.onThemeChanged=function(e){return this.scrollbar.updateClassName("editor-scrollable "+Object(U.d)(this._context.theme.type)),!0},t.prototype.prepareRender=function(e){},t.prototype.render=function(e){this.scrollbar.renderNow()},t}(k),Tt=(n(1226),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])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),kt=function(){return function(e,t,n){this.startLineNumber=+e,this.endLineNumber=+t,this.className=String(n)}}(),Dt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Tt(t,e),t.prototype._render=function(e,t,n){for(var r=[],i=e;i<=t;i++){r[i-e]=[]}if(0===n.length)return r;n.sort(function(e,t){return e.className===t.className?e.startLineNumber===t.startLineNumber?e.endLineNumber-t.endLineNumber:e.startLineNumber-t.startLineNumber:e.className',a=[],s=t;s<=n;s++){var u=s-t,c=r[u];0===c.length?a[u]="":a[u]='
    =this._renderResult.length?"":this._renderResult[n]},t}(Dt),At=(n(1228),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])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),jt=function(e){function t(t){var n=e.call(this)||this;return n._context=t,n._primaryLineNumber=0,n._lineHeight=n._context.configuration.editor.lineHeight,n._spaceWidth=n._context.configuration.editor.fontInfo.spaceWidth,n._enabled=n._context.configuration.editor.viewInfo.renderIndentGuides,n._activeIndentEnabled=n._context.configuration.editor.viewInfo.highlightActiveIndentGuide,n._renderResult=null,n._context.addEventHandler(n),n}return At(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.fontInfo&&(this._spaceWidth=this._context.configuration.editor.fontInfo.spaceWidth),e.viewInfo&&(this._enabled=this._context.configuration.editor.viewInfo.renderIndentGuides,this._activeIndentEnabled=this._context.configuration.editor.viewInfo.highlightActiveIndentGuide),!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,r=this._context.model.getOptions().indentSize*this._spaceWidth,i=e.scrollWidth,o=this._lineHeight,a=this._context.model.getLinesIndentGuides(t,n),s=0,u=0,c=0;if(this._activeIndentEnabled&&this._primaryLineNumber){var l=this._context.model.getActiveIndentGuide(this._primaryLineNumber,t,n);s=l.startLineNumber,u=l.endLineNumber,c=l.indent}for(var d=[],h=t;h<=n;h++){for(var p=s<=h&&h<=u,f=h-t,g=a[f],m="",y=e.visibleRangeForPosition(new ee.a(h,1)),v=y?y.left:0,b=1;b<=g;b++){if(m+='
    ',(v+=r)>i)break}d[f]=m}this._renderResult=d}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}(Ne);Object(U.e)(function(e,t){var n=e.getColor(Ee.l);n&&t.addRule(".monaco-editor .lines-content .cigr { box-shadow: 1px 0 0 0 "+n+" inset; }");var r=e.getColor(Ee.a)||n;r&&t.addRule(".monaco-editor .lines-content .cigra { box-shadow: 1px 0 0 0 "+r+" inset; }")});n(1230);var 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])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Rt=function(){function e(){this._currentVisibleRange=new te.a(1,1,1,1)}return e.prototype.getCurrentVisibleRange=function(){return this._currentVisibleRange},e.prototype.setCurrentVisibleRange=function(e){this._currentVisibleRange=e},e}(),zt=function(){return function(e,t,n,r,i,o){this.lineNumber=e,this.startColumn=t,this.endColumn=n,this.startScrollTop=r,this.stopScrollTop=i,this.scrollType=o}}(),Ft=function(e){function t(t,n){var r=e.call(this,t)||this;r._linesContent=n,r._textRangeRestingSpot=document.createElement("div"),r._visibleLines=new ct(r),r.domNode=r._visibleLines.domNode;var i=r._context.configuration;return r._lineHeight=i.editor.lineHeight,r._typicalHalfwidthCharacterWidth=i.editor.fontInfo.typicalHalfwidthCharacterWidth,r._isViewportWrapping=i.editor.wrappingInfo.isViewportWrapping,r._revealHorizontalRightPadding=i.editor.viewInfo.revealHorizontalRightPadding,r._canUseLayerHinting=i.editor.canUseLayerHinting,r._viewLineOptions=new Y(i,r._context.theme.type),D.write(r.domNode,7),r.domNode.setClassName("view-lines"),l.a.applyFontInfo(r.domNode,i.editor.fontInfo),r._maxLineWidth=0,r._asyncUpdateLineWidths=new y.d(function(){r._updateLineWidthsSlow()},200),r._lastRenderedData=new Rt,r._horizontalRevealRequest=null,r}return Pt(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 G(this._viewLineOptions)},t.prototype.onConfigurationChanged=function(e){this._visibleLines.onConfigurationChanged(e),e.wrappingInfo&&(this._maxLineWidth=0);var t=this._context.configuration;return e.lineHeight&&(this._lineHeight=t.editor.lineHeight),e.fontInfo&&(this._typicalHalfwidthCharacterWidth=t.editor.fontInfo.typicalHalfwidthCharacterWidth),e.wrappingInfo&&(this._isViewportWrapping=t.editor.wrappingInfo.isViewportWrapping),e.viewInfo&&(this._revealHorizontalRightPadding=t.editor.viewInfo.revealHorizontalRightPadding),e.canUseLayerHinting&&(this._canUseLayerHinting=t.editor.canUseLayerHinting),e.fontInfo&&l.a.applyFontInfo(this.domNode,t.editor.fontInfo),this._onOptionsMaybeChanged(),e.layoutInfo&&(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(),r=this._visibleLines.getEndLineNumber(),i=n;i<=r;i++){this._visibleLines.getVisibleLine(i).onOptionsChanged(this._viewLineOptions)}return!0}return!1},t.prototype.onCursorStateChanged=function(e){for(var t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber(),r=!1,i=t;i<=n;i++)r=this._visibleLines.getVisibleLine(i).onSelectionChanged()||r;return r},t.prototype.onDecorationsChanged=function(e){for(var t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber(),r=t;r<=n;r++)this._visibleLines.getVisibleLine(r).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.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 zt(e.range.startLineNumber,e.range.startColumn,e.range.endColumn,this._context.viewLayout.getCurrentScrollTop(),n.scrollTop,e.scrollType):this._horizontalRevealRequest=null;var r=Math.abs(this._context.viewLayout.getCurrentScrollTop()-n.scrollTop);return 0===e.scrollType&&r>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.scrollTopn)&&(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 r=this._getLineNumberFor(n);if(-1===r)return null;if(r<1||r>this._context.model.getLineCount())return null;if(1===this._context.model.getLineMaxColumn(r))return new ee.a(r,1);var i=this._visibleLines.getStartLineNumber(),o=this._visibleLines.getEndLineNumber();if(ro)return null;var a=this._visibleLines.getVisibleLine(r).getColumnOfNodeOffset(r,e,t),s=this._context.model.getLineMinColumn(r);return an?-1:this._visibleLines.getVisibleLine(e).getWidth()},t.prototype.linesVisibleRangesForRange=function(e,t){if(this.shouldRender())return null;var n=e.endLineNumber,r=te.a.intersectRanges(e,this._lastRenderedData.getCurrentVisibleRange());if(!r)return null;var i=[],o=0,a=new q(this.domNode.domNode,this._textRangeRestingSpot),s=0;t&&(s=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new ee.a(r.startLineNumber,1)).lineNumber);for(var u=this._visibleLines.getStartLineNumber(),c=this._visibleLines.getEndLineNumber(),l=r.startLineNumber;l<=r.endLineNumber;l++)if(!(lc)){var d=l===r.startLineNumber?r.startColumn:1,h=l===r.endLineNumber?r.endColumn:this._context.model.getLineMaxColumn(l),p=this._visibleLines.getVisibleLine(l).getVisibleRangesForRange(d,h,a);if(p&&0!==p.length){if(t&&lo)){var s=a===t.startLineNumber?t.startColumn:1,u=a===t.endLineNumber?t.endColumn:this._context.model.getLineMaxColumn(a),c=this._visibleLines.getVisibleLine(a).getVisibleRangesForRange(s,u,r);c&&0!==c.length&&(n=n.concat(c))}return 0===n.length?null:n},t.prototype.visibleRangeForPosition=function(e){var t=this.visibleRangesForRange2(new te.a(e.lineNumber,e.column,e.lineNumber,e.column));return t?t[0]: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(),r=1,i=!0,o=t;o<=n;o++){var a=this._visibleLines.getVisibleLine(o);!e||a.getWidthIsFast()?r=Math.max(r,a.getWidth()):i=!1}return i&&1===t&&n===this._context.model.getLineCount()&&(this._maxLineWidth=0),this._ensureMaxLineWidth(r),i},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,r=this._horizontalRevealRequest.endColumn,i=this._horizontalRevealRequest.scrollType;if(e.startLineNumber<=t&&t<=e.endLineNumber){this._horizontalRevealRequest=null,this.onDidRender();var o=this._computeScrollLeftToRevealRange(t,n,r);this._isViewportWrapping||this._ensureMaxLineWidth(o.maxHorizontalOffset),0===i?this._context.viewLayout.setScrollPositionSmooth({scrollLeft:o.scrollLeft}):this._context.viewLayout.setScrollPositionNow({scrollLeft:o.scrollLeft})}}this._updateLineWidthsFast()||this._asyncUpdateLineWidths.schedule(),this._linesContent.setLayerHinting(this._canUseLayerHinting);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._maxLineWidthl&&(l=p.left+p.width)}return i=l,c=Math.max(0,c-t.HORIZONTAL_EXTRA_PX),l+=this._revealHorizontalRightPadding,{scrollLeft:this._computeMinimumScrolling(a,s,c,l),maxHorizontalOffset:i}},t.prototype._computeMinimumScrolling=function(e,t,n,r,i,o){i=!!i,o=!!o;var a=(t|=0)-(e|=0);return(r|=0)-(n|=0)t?Math.max(0,r-a):e:n},t.HORIZONTAL_EXTRA_PX=30,t}(k),Bt=(n(1232),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])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Ut=function(e){function t(t){var n=e.call(this)||this;return n._context=t,n._decorationsLeft=n._context.configuration.editor.layoutInfo.decorationsLeft,n._decorationsWidth=n._context.configuration.editor.layoutInfo.decorationsWidth,n._renderResult=null,n._context.addEventHandler(n),n}return Bt(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return e.layoutInfo&&(this._decorationsLeft=this._context.configuration.editor.layoutInfo.decorationsLeft,this._decorationsWidth=this._context.configuration.editor.layoutInfo.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=[],r=0,i=0,o=t.length;i
    ',o=[],a=t;a<=n;a++){for(var s=a-t,u=r[s],c="",l=0,d=u.length;l';i[a]=u}this._renderResult=i},t.prototype.render=function(e,t){return this._renderResult?this._renderResult[t-e]:""},t}(Dt),Vt=(n(1236),function(){function e(t,n,r,i){this.r=e._clamp(t),this.g=e._clamp(n),this.b=e._clamp(r),this.a=e._clamp(i)}return e._clamp=function(e){return e<0?0:e>255?255:0|e},e.Empty=new e(0,0,0,0),e}()),qt=n(12),Yt=function(){function e(){var e=this;this._onDidChange=new s.a,this.onDidChange=this._onDidChange.event,this._updateColorMap(),qt.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=qt.y.getColorMap();if(!e)return this._colors=[Vt.Empty],void(this._backgroundIsLight=!0);this._colors=[Vt.Empty];for(var t=1;t=.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}(),Gt=function(){function e(t,n){if(760!==t.length)throw new Error("Invalid x2CharData");if(190!==n.length)throw new Error("Invalid x1CharData");this.x2charData=t,this.x1charData=n,this.x2charDataLight=e.soften(t,.8),this.x1charDataLight=e.soften(n,50/60)}return e.soften=function(e,t){for(var n=new Uint8ClampedArray(e.length),r=0,i=e.length;rt.width||r+4>t.height)console.warn("bad render request outside image data");else{var u=s?this.x2charDataLight:this.x2charData,c=e._getChIndex(i),l=4*t.width,d=a.r,h=a.g,p=a.b,f=o.r-d,g=o.g-h,m=o.b-p,y=t.data,v=4*c*2,b=r*l+4*n,_=u[v]/255;y[b+0]=d+f*_,y[b+1]=h+g*_,y[b+2]=p+m*_;_=u[v+1]/255;y[b+4]=d+f*_,y[b+5]=h+g*_,y[b+6]=p+m*_,b+=l;_=u[v+2]/255;y[b+0]=d+f*_,y[b+1]=h+g*_,y[b+2]=p+m*_;_=u[v+3]/255;y[b+4]=d+f*_,y[b+5]=h+g*_,y[b+6]=p+m*_,b+=l;_=u[v+4]/255;y[b+0]=d+f*_,y[b+1]=h+g*_,y[b+2]=p+m*_;_=u[v+5]/255;y[b+4]=d+f*_,y[b+5]=h+g*_,y[b+6]=p+m*_,b+=l;_=u[v+6]/255;y[b+0]=d+f*_,y[b+1]=h+g*_,y[b+2]=p+m*_;_=u[v+7]/255;y[b+4]=d+f*_,y[b+5]=h+g*_,y[b+6]=p+m*_}},e.prototype.x1RenderChar=function(t,n,r,i,o,a,s){if(n+1>t.width||r+2>t.height)console.warn("bad render request outside image data");else{var u=s?this.x1charDataLight:this.x1charData,c=e._getChIndex(i),l=4*t.width,d=a.r,h=a.g,p=a.b,f=o.r-d,g=o.g-h,m=o.b-p,y=t.data,v=2*c*1,b=r*l+4*n,_=u[v]/255;y[b+0]=d+f*_,y[b+1]=h+g*_,y[b+2]=p+m*_,b+=l;_=u[v+1]/255;y[b+0]=d+f*_,y[b+1]=h+g*_,y[b+2]=p+m*_}},e.prototype.x2BlockRenderChar=function(e,t,n,r,i,o){if(t+2>e.width||n+4>e.height)console.warn("bad render request outside image data");else{var a=4*e.width,s=i.r,u=i.g,c=i.b,l=s+.5*(r.r-s),d=u+.5*(r.g-u),h=c+.5*(r.b-c),p=e.data,f=n*a+4*t;p[f+0]=l,p[f+1]=d,p[f+2]=h,p[f+4]=l,p[f+5]=d,p[f+6]=h,p[(f+=a)+0]=l,p[f+1]=d,p[f+2]=h,p[f+4]=l,p[f+5]=d,p[f+6]=h,p[(f+=a)+0]=l,p[f+1]=d,p[f+2]=h,p[f+4]=l,p[f+5]=d,p[f+6]=h,p[(f+=a)+0]=l,p[f+1]=d,p[f+2]=h,p[f+4]=l,p[f+5]=d,p[f+6]=h}},e.prototype.x1BlockRenderChar=function(e,t,n,r,i,o){if(t+1>e.width||n+2>e.height)console.warn("bad render request outside image data");else{var a=4*e.width,s=i.r,u=i.g,c=i.b,l=s+.5*(r.r-s),d=u+.5*(r.g-u),h=c+.5*(r.b-c),p=e.data,f=n*a+4*t;p[f+0]=l,p[f+1]=d,p[f+2]=h,p[(f+=a)+0]=l,p[f+1]=d,p[f+2]=h}},e}();function Zt(e){for(var t=new Uint8ClampedArray(e.length),n=0,r=e.length;n=a)return new e(s,u,v,b,l,_=1,a);var _=Math.max(1,Math.floor(n-b*h/p));return c&&c.scrollHeight===u&&(c.scrollTop>s&&(_=Math.min(_,c.startLineNumber)),c.scrollToprn)n._context.viewLayout.setScrollPositionNow({scrollTop:i.scrollTop});else{var a=e.posy-t;n._context.viewLayout.setScrollPositionNow({scrollTop:i.getDesiredScrollTopFromDelta(a)})}},function(){n._slider.toggleClassName("active",!1)})}}),n}return en(t,e),t.prototype.dispose=function(){this._mouseDownListener.dispose(),this._sliderMouseMoveMonitor.dispose(),this._sliderMouseDownListener.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._slider.setWidth(this._options.minimapWidth)},t.prototype._getBuffer=function(){return this._buffers||(this._buffers=new cn(this._canvas.domNode.getContext("2d"),this._options.canvasInnerWidth,this._options.canvasInnerHeight,this._tokensColorTracker.getColor(2))),this._buffers.getBuffer()},t.prototype._onOptionsMaybeChanged=function(){var e=new on(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.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!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.prepareRender=function(e){},t.prototype.render=function(e){if(0===this._options.renderMinimap)return this._shadow.setClassName("minimap-shadow-hidden"),this._sliderHorizontal.setWidth(0),void this._sliderHorizontal.setHeight(0);e.scrollLeft+e.viewportWidth>=e.scrollWidth?this._shadow.setClassName("minimap-shadow-hidden"):this._shadow.setClassName("minimap-shadow-visible");var t=an.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(t.sliderTop),this._slider.setHeight(t.sliderHeight);var n=e.scrollLeft/this._options.typicalHalfwidthCharacterWidth,r=Math.min(this._options.minimapWidth,Math.round(n*nn(this._options.renderMinimap)/this._options.pixelRatio));this._sliderHorizontal.setLeft(r),this._sliderHorizontal.setWidth(this._options.minimapWidth-r),this._sliderHorizontal.setTop(0),this._sliderHorizontal.setHeight(t.sliderHeight),this._lastRenderData=this.renderLines(t)},t.prototype.renderLines=function(e){var n=this._options.renderMinimap,r=e.startLineNumber,i=e.endLineNumber,o=tn(n);if(this._lastRenderData&&this._lastRenderData.linesEquals(e)){var a=this._lastRenderData._get();return new un(e,a.imageData,a.lines)}for(var s=this._getBuffer(),u=t._renderUntouchedLines(s,r,i,o,this._lastRenderData),c=u[0],l=u[1],d=u[2],h=this._context.model.getMinimapLinesRenderingData(r,i,d),p=h.tabSize,f=this._tokensColorTracker.getColor(2),g=this._tokensColorTracker.backgroundIsLight(),m=0,y=[],v=0,b=i-r+1;v=0&&Mh)return;var w=c.charCodeAt(f);if(9===w){var S=s-(f+g)%s;g+=S-1,p+=S*d}else if(32===w)p+=d;else for(var C=Ce.t(w)?2:1,I=0;Ih)return}},t}(k);Object(U.e)(function(e,t){var n=e.getColor($t.Cb);if(n){var r=n.transparent(.5);t.addRule(".monaco-editor .minimap-slider, .monaco-editor .minimap-slider .minimap-slider-horizontal { background: "+r+"; }")}var i=e.getColor($t.Db);if(i){var o=i.transparent(.5);t.addRule(".monaco-editor .minimap-slider:hover, .monaco-editor .minimap-slider:hover .minimap-slider-horizontal { background: "+o+"; }")}var a=e.getColor($t.Bb);if(a){var s=a.transparent(.5);t.addRule(".monaco-editor .minimap-slider.active, .monaco-editor .minimap-slider.active .minimap-slider-horizontal { background: "+s+"; }")}var u=e.getColor($t.Ab);u&&t.addRule(".monaco-editor .minimap-shadow-visible { box-shadow: "+u+" -6px 0 6px -6px inset; }")});n(1238);var dn=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])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),hn=function(e){function t(t){var n=e.call(this,t)||this;return n._widgets={},n._verticalScrollbarWidth=n._context.configuration.editor.layoutInfo.verticalScrollbarWidth,n._minimapWidth=n._context.configuration.editor.layoutInfo.minimapWidth,n._horizontalScrollbarHeight=n._context.configuration.editor.layoutInfo.horizontalScrollbarHeight,n._editorHeight=n._context.configuration.editor.layoutInfo.height,n._editorWidth=n._context.configuration.editor.layoutInfo.width,n._domNode=Object(p.b)(document.createElement("div")),D.write(n._domNode,4),n._domNode.setClassName("overlayWidgets"),n}return dn(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){return!!e.layoutInfo&&(this._verticalScrollbarWidth=this._context.configuration.editor.layoutInfo.verticalScrollbarWidth,this._minimapWidth=this._context.configuration.editor.layoutInfo.minimapWidth,this._horizontalScrollbarHeight=this._context.configuration.editor.layoutInfo.horizontalScrollbarHeight,this._editorHeight=this._context.configuration.editor.layoutInfo.height,this._editorWidth=this._context.configuration.editor.layoutInfo.width,!0)},t.prototype.addWidget=function(e){var t=Object(p.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].domNode.domNode;delete this._widgets[t],n.parentNode.removeChild(n),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,r=t.length;n=3){var i,o,a,s=r-(i=Math.floor(r/3))-(o=Math.floor(r/3)),u=(a=e)+i;return[[0,a,u,a,a+i+s,a,u,a],[0,i,s,i+s,o,i+s+o,s+o,i+s+o]]}if(2===n)return[[0,a=e,a,a,a+(i=Math.floor(r/2)),a,a,a],[0,i,i,i,o=r-i,i+o,i+o,i+o]];return[[0,e,e,e,e,e,e,e],[0,r,r,r,r,r,r,r]]},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}(),mn=function(e){function t(t){var n=e.call(this,t)||this;return n._domNode=Object(p.b)(document.createElement("canvas")),n._domNode.setClassName("decorationsOverviewRuler"),n._domNode.setPosition("absolute"),n._domNode.setLayerHinting(!0),n._domNode.setAttribute("aria-hidden","true"),n._updateSettings(!1),n._tokensColorTrackerListener=qt.y.onDidChange(function(e){e.changedColorMap&&n._updateSettings(!0)}),n._cursorPositions=[],n}return fn(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._tokensColorTrackerListener.dispose()},t.prototype._updateSettings=function(e){var t=new gn(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;tt&&(L=t-s),I=L-s,k=L+s;I>v+1||w!==m?(0!==b&&u.fillRect(c[m],y,l[m],v-y),m=w,y=I,v=k):k>v&&(v=k)}u.fillRect(c[m],y,l[m],v-y)}if(!this._settings.hideCursor&&this._settings.cursorColor){var M=2*this._settings.pixelRatio|0,x=M/2|0,N=this._settings.x[7],E=this._settings.w[7];u.fillStyle=this._settings.cursorColor;for(y=-100,v=-100,b=0,_=this._cursorPositions.length;b<_;b++){var L,T=this._cursorPositions[b];(L=r.getVerticalOffsetForLineNumber(T.lineNumber)*i|0)t&&(L=t-x);var k=(I=L-x)+M;I>v+1?(0!==b&&u.fillRect(N,y,E,v-y),y=I,v=k):k>v&&(v=k)}u.fillRect(N,y,E,v-y)}this._settings.renderBorder&&this._settings.borderColor&&this._settings.overviewRulerLanes>0&&(u.beginPath(),u.lineWidth=1,u.strokeStyle=this._settings.borderColor,u.moveTo(0,0),u.lineTo(0,t),u.stroke(),u.moveTo(0,0),u.lineTo(e,0),u.stroke())},t}(k),yn=n(196),vn=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])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),bn=function(e){function t(t,n){var r=e.call(this)||this;return r._context=t,r._domNode=Object(p.b)(document.createElement("canvas")),r._domNode.setClassName(n),r._domNode.setPosition("absolute"),r._domNode.setLayerHinting(!0),r._zoneManager=new yn.b(function(e){return r._context.viewLayout.getVerticalOffsetForLineNumber(e)}),r._zoneManager.setDOMWidth(0),r._zoneManager.setDOMHeight(0),r._zoneManager.setOuterHeight(r._context.viewLayout.getScrollHeight()),r._zoneManager.setLineHeight(r._context.configuration.editor.lineHeight),r._zoneManager.setPixelRatio(r._context.configuration.editor.pixelRatio),r._context.addEventHandler(r),r}return vn(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._zoneManager.setLineHeight(this._context.configuration.editor.lineHeight),this._render()),e.pixelRatio&&(this._zoneManager.setPixelRatio(this._context.configuration.editor.pixelRatio),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)&&(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(),r=this._zoneManager.getId2Color(),i=this._domNode.domNode.getContext("2d");return i.clearRect(0,0,e,t),n.length>0&&this._renderOneLane(i,n,r,e),!0},t.prototype._renderOneLane=function(e,t,n,r){for(var i=0,o=0,a=0,s=0,u=t;s=d?a=Math.max(a,h):(e.fillRect(0,o,r,a-o),o=d,a=h)}e.fillRect(0,o,r,a-o)},t}(L),_n=(n(1240),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])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),wn=function(e){function t(t){var n=e.call(this,t)||this;return n.domNode=Object(p.b)(document.createElement("div")),n.domNode.setAttribute("role","presentation"),n.domNode.setAttribute("aria-hidden","true"),n.domNode.setClassName("view-rulers"),n._renderedRulers=[],n._rulers=n._context.configuration.editor.viewInfo.rulers,n._typicalHalfwidthCharacterWidth=n._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,n}return _n(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return!!(e.viewInfo||e.layoutInfo||e.fontInfo)&&(this._rulers=this._context.configuration.editor.viewInfo.rulers,this._typicalHalfwidthCharacterWidth=this._context.configuration.editor.fontInfo.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(e0;){(o=Object(p.b)(document.createElement("div"))).setClassName("view-ruler"),o.setWidth(n),this.domNode.appendChild(o),this._renderedRulers.push(o),r--}else for(var i=e-t;i>0;){var o=this._renderedRulers.pop();this.domNode.removeChild(o),i--}},t.prototype.render=function(e){this._ensureRulersCount();for(var t=0,n=this._rulers.length;t0;return this._shouldShow!==e&&(this._shouldShow=e,!0)},t.prototype.getDomNode=function(){return this._domNode},t.prototype._updateWidth=function(){var e=this._context.configuration.editor.layoutInfo,t=0;return t=0===e.renderMinimap||e.minimapWidth>0&&0===e.minimapLeft?e.width:e.width-e.minimapWidth-e.verticalScrollbarWidth,this._width!==t&&(this._width=t,!0)},t.prototype.onConfigurationChanged=function(e){var t=!1;return e.viewInfo&&(this._useShadows=this._context.configuration.editor.viewInfo.scrollbar.useShadows),e.layoutInfo&&(t=this._updateWidth()),this._updateShouldShow()||t},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(U.e)(function(e,t){var n=e.getColor($t.Ab);n&&t.addRule(".monaco-editor .scroll-decoration { box-shadow: "+n+" 0 6px 6px -6px inset; }")});n(1244);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])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Mn=function(){return function(e){this.left=e.left,this.width=e.width,this.startStyle=null,this.endStyle=null}}(),xn=function(){return function(e,t){this.lineNumber=e,this.ranges=t}}();function Nn(e){return new Mn(e)}function En(e){return new xn(e.lineNumber,e.ranges.map(Nn))}var Ln=g.g,Tn=function(e){function t(t){var n=e.call(this)||this;return n._previousFrameVisibleRangesWithStyle=[],n._context=t,n._lineHeight=n._context.configuration.editor.lineHeight,n._roundedSelection=n._context.configuration.editor.viewInfo.roundedSelection,n._typicalHalfwidthCharacterWidth=n._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,n._selections=[],n._renderResult=null,n._context.addEventHandler(n),n}return In(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.viewInfo&&(this._roundedSelection=this._context.configuration.editor.viewInfo.roundedSelection),e.fontInfo&&(this._typicalHalfwidthCharacterWidth=this._context.configuration.editor.fontInfo.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;t1)return!0}return!1},t.prototype._enrichVisibleRangesWithStyle=function(e,t,n){var r=this._typicalHalfwidthCharacterWidth/4,i=null,o=null;if(n&&n.length>0&&t.length>0){var a=t[0].lineNumber;if(a===e.startLineNumber)for(var s=0;!i&&s=0;s--)n[s].lineNumber===u&&(o=n[s].ranges[0]);i&&!i.startStyle&&(i=null),o&&!o.startStyle&&(o=null)}s=0;for(var c=t.length;s0){var g=t[s-1].ranges[0].left,m=t[s-1].ranges[0].left+t[s-1].ranges[0].width;kn(d-g)g&&(p.top=1),kn(h-m)'},t.prototype._actualRenderOneSelection=function(e,n,r,i){for(var o=i.length>0&&i[0].ranges[0].startStyle,a=this._lineHeight.toString(),s=(this._lineHeight-1).toString(),u=i.length>0?i[0].lineNumber:0,c=i.length>0?i[i.length-1].lineNumber:0,l=0,d=i.length;l1,c)}}this._previousFrameVisibleRangesWithStyle=o,this._renderResult=t},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}(Ne);function kn(e){return e<0?-e:e}Object(U.e)(function(e,t){var n=e.getColor($t.B);n&&t.addRule(".monaco-editor .focused .selected-text { background-color: "+n+"; }");var r=e.getColor($t.A);r&&t.addRule(".monaco-editor .selected-text { background-color: "+r+"; }");var i=e.getColor($t.C);i&&t.addRule(".monaco-editor .view-line span.inline-selected-text { color: "+i+"; }")});n(1246);var Dn=n(43),On=function(){return function(e,t,n,r,i,o){this.top=e,this.left=t,this.width=n,this.height=r,this.textContent=i,this.textContentClassName=o}}(),An=function(){function e(e){this._context=e,this._cursorStyle=this._context.configuration.editor.viewInfo.cursorStyle,this._lineHeight=this._context.configuration.editor.lineHeight,this._typicalHalfwidthCharacterWidth=this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(this._context.configuration.editor.viewInfo.cursorWidth,this._typicalHalfwidthCharacterWidth),this._isVisible=!0,this._domNode=Object(p.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,this._context.configuration.editor.fontInfo),this._domNode.setDisplay("none"),this.updatePosition(new ee.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){return e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.fontInfo&&(l.a.applyFontInfo(this._domNode,this._context.configuration.editor.fontInfo),this._typicalHalfwidthCharacterWidth=this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth),e.viewInfo&&(this._cursorStyle=this._context.configuration.editor.viewInfo.cursorStyle,this._lineCursorWidth=Math.min(this._context.configuration.editor.viewInfo.cursorWidth,this._typicalHalfwidthCharacterWidth)),!0},e.prototype.onCursorPositionChanged=function(e){return this.updatePosition(e),!0},e.prototype._prepareRender=function(e){var t="",n="";if(this._cursorStyle===Dn.g.Line||this._cursorStyle===Dn.g.LineThin){var r,i=e.visibleRangeForPosition(this._position);if(!i)return null;if(this._cursorStyle===Dn.g.Line){if((r=o.o(this._lineCursorWidth>0?this._lineCursorWidth:2))>2)t=this._context.model.getLineContent(this._position.lineNumber).charAt(this._position.column-1)}else r=o.o(1);var a=i.left;r>=2&&a>=1&&(a-=1);var s=e.getVerticalOffsetForLineNumber(this._position.lineNumber)-e.bigNumbersDelta;return new On(s,a,r,this._lineHeight,t,n)}var u=e.linesVisibleRangesForRange(new te.a(this._position.lineNumber,this._position.column,this._position.lineNumber,this._position.column+1),!1);if(!u||0===u.length||0===u[0].ranges.length)return null;var c=u[0].ranges[0],l=c.width<1?this._typicalHalfwidthCharacterWidth:c.width;if(this._cursorStyle===Dn.g.Block){var d=this._context.model.getViewLineData(this._position.lineNumber);t=d.content.charAt(this._position.column-1),Ce.u(d.content.charCodeAt(this._position.column-1))&&(t+=d.content.charAt(this._position.column));var h=d.tokens.findTokenIndexAtOffset(this._position.column-1);n=d.tokens.getClassName(h)}var p=e.getVerticalOffsetForLineNumber(this._position.lineNumber)-e.bigNumbersDelta,f=this._lineHeight;return this._cursorStyle!==Dn.g.Underline&&this._cursorStyle!==Dn.g.UnderlineThin||(p+=this._lineHeight-2,f=2),new On(p,c.left,l,f,t,n)},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.prototype.updatePosition=function(e){this._position=e},e}(),jn=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])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Pn=function(e){function t(t){var n=e.call(this,t)||this;return n._readOnly=n._context.configuration.editor.readOnly,n._cursorBlinking=n._context.configuration.editor.viewInfo.cursorBlinking,n._cursorStyle=n._context.configuration.editor.viewInfo.cursorStyle,n._cursorSmoothCaretAnimation=n._context.configuration.editor.viewInfo.cursorSmoothCaretAnimation,n._selectionIsEmpty=!0,n._primaryCursor=new An(n._context),n._secondaryCursors=[],n._renderData=[],n._domNode=Object(p.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 y.e,n._cursorFlatBlinkInterval=new y.c,n._blinkingEnabled=!1,n._editorHasFocus=!1,n._updateBlinking(),n}return jn(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){e.readOnly&&(this._readOnly=this._context.configuration.editor.readOnly),e.viewInfo&&(this._cursorBlinking=this._context.configuration.editor.viewInfo.cursorBlinking,this._cursorStyle=this._context.configuration.editor.viewInfo.cursorStyle,this._cursorSmoothCaretAnimation=this._context.configuration.editor.viewInfo.cursorSmoothCaretAnimation),this._primaryCursor.onConfigurationChanged(e),this._updateBlinking(),e.viewInfo&&this._updateDomClassName();for(var t=0,n=this._secondaryCursors.length;tt.length){var o=this._secondaryCursors.length-t.length;for(r=0;rn){var o=t-n;for(i=0;i=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;td&&C.index--}e.splice(d,1),t.splice(l,1),this._removeSecondaryCursor(d-1),i--}}}}},e}(),Xn=n(240),$n=n(126),er=n(46),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])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var nr=function(){return function(e,t,n){this.selections=e,this.source=t,this.reason=n}}(),rr=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;tt.MAX_CURSOR_COUNT&&(r=r.slice(0,t.MAX_CURSOR_COUNT),this._onDidReachMaxCursorCount.fire(void 0));var i=new rr(this._model,this);this._cursors.setStates(r),this._cursors.normalize(),this._columnSelectData=null,this._emitStateChangedIfNecessary(e,n,i)},t.prototype.setColumnSelectData=function(e){this._columnSelectData=e},t.prototype.reveal=function(e,t,n){this._revealRange(t,0,e,n)},t.prototype.revealRange=function(e,t,n,r){this.emitCursorRevealRange(t,n,e,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,r=t.length;n1)return;var s=new te.a(o.lineNumber,o.column,o.lineNumber,o.column);this.emitCursorRevealRange(s,t,n,r)},t.prototype.emitCursorRevealRange=function(e,t,n,r){try{this._beginEmit().emit(new Ve(e,t,n,r))}finally{this._endEmit()}},t.prototype.trigger=function(e,t,n){var r=er.b;if(t!==r.CompositionStart)if(t===r.CompositionEnd&&(this._isDoingComposition=!1),this._configuration.editor.readOnly)this._onDidAttemptReadOnlyEdit.fire(void 0);else{var i=new rr(this._model,this),o=0;t!==r.Undo&&t!==r.Redo&&this._cursors.stopTrackingSelections(),this._cursors.ensureValidState(),this._isHandling=!0;try{switch(t){case r.Type:this._type(e,n.text);break;case r.ReplacePreviousChar:this._replacePreviousChar(n.text,n.replaceCharCnt);break;case r.Paste:o=4,this._paste(n.text,n.pasteOnNewLine,n.multicursorText);break;case r.Cut:this._cut();break;case r.Undo:o=5,this._interpretCommandResult(this._model.undo());break;case r.Redo:o=6,this._interpretCommandResult(this._model.redo());break;case r.ExecuteCommand:this._externalExecuteCommand(n);break;case r.ExecuteCommands:this._externalExecuteCommands(n);break;case r.CompositionEnd:this._interpretCompositionEnd(e)}}catch(e){Object(a.e)(e)}this._isHandling=!1,t!==r.Undo&&t!==r.Redo&&this._cursors.startTrackingSelections(),this._emitStateChangedIfNecessary(e,o,i)&&this._revealRange(0,0,!0,0)}else this._isDoingComposition=!0},t.prototype._interpretCompositionEnd=function(e){this._isDoingComposition||"keyboard"!==e||this._executeEditOperation($n.a.compositionEndWithInterceptors(this._prevEditOperationType,this.context.config,this.context.model,this.getSelections()))},t.prototype._type=function(e,t){if(this._isDoingComposition||"keyboard"!==e)this._executeEditOperation($n.a.typeWithoutInterceptors(this._prevEditOperationType,this.context.config,this.context.model,this.getSelections(),t));else for(var n=0,r=t.length;n0&&(o[0]._isTracked=!0);var u=e.model.pushEditOperations(e.selectionsBefore,o,function(n){for(var r=[],i=0;i0?(r[n].sort(u),c[n]=t[n].computeCursorState(e.model,{getInverseEditOperations:function(){return r[n]},getTrackedSelection:function(t){var n=parseInt(t,10),r=e.model._getTrackedRange(e.trackedRanges[n]);return 0===e.trackedRangesDirection[n]?new de.a(r.startLineNumber,r.startColumn,r.endLineNumber,r.endColumn):new de.a(r.endLineNumber,r.endColumn,r.startLineNumber,r.startColumn)}})):c[n]=e.selectionsBefore[n]};for(i=0;ii.identifier.major?r.identifier.major:i.identifier.major).toString()]=!0;for(var a=0;a0&&n--}}return t},e}(),ar=n(289),sr=n(8),ur=n(242),cr=n(288),lr=function(){function e(){this._heights=[],this._minWidths=[],this._ids=[],this._afterLineNumbers=[],this._ordinals=[],this._prefixSum=[],this._prefixSumValidIndex=-1,this._whitespaceId2Index={},this._lastWhitespaceId=0,this._minWidth=-1}return e.findInsertionIndex=function(e,t,n,r){for(var i=0,o=e.length;i>>1;t===e[a]?r=t&&(this._whitespaceId2Index[c]=l+1)}this._whitespaceId2Index[e.toString()]=t,this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,t-1)},e.prototype.changeWhitespace=function(e,t,n){e|=0,t|=0,n|=0;var r=!1;return r=this.changeWhitespaceHeight(e,n)||r,r=this.changeWhitespaceAfterLineNumber(e,t)||r},e.prototype.changeWhitespaceHeight=function(e,t){t|=0;var n=(e|=0).toString();if(this._whitespaceId2Index.hasOwnProperty(n)){var r=this._whitespaceId2Index[n];if(this._heights[r]!==t)return this._heights[r]=t,this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,r-1),!0}return!1},e.prototype.changeWhitespaceAfterLineNumber=function(t,n){n|=0;var r=(t|=0).toString();if(this._whitespaceId2Index.hasOwnProperty(r)){var i=this._whitespaceId2Index[r];if(this._afterLineNumbers[i]!==n){var o=this._ordinals[i],a=this._heights[i],s=this._minWidths[i];this.removeWhitespace(t);var u=e.findInsertionIndex(this._afterLineNumbers,n,this._ordinals,o);return this._insertWhitespaceAtIndex(t,u,n,o,a,s),!0}}return!1},e.prototype.removeWhitespace=function(e){var t=(e|=0).toString();if(this._whitespaceId2Index.hasOwnProperty(t)){var n=this._whitespaceId2Index[t];return delete this._whitespaceId2Index[t],this._removeWhitespaceAtIndex(n),this._minWidth=-1,!0}return!1},e.prototype._removeWhitespaceAtIndex=function(e){e|=0,this._heights.splice(e,1),this._minWidths.splice(e,1),this._ids.splice(e,1),this._afterLineNumbers.splice(e,1),this._ordinals.splice(e,1),this._prefixSum.splice(e,1),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,e-1);for(var t=Object.keys(this._whitespaceId2Index),n=0,r=t.length;n=e&&(this._whitespaceId2Index[i]=o-1)}},e.prototype.onLinesDeleted=function(e,t){e|=0,t|=0;for(var n=0,r=this._afterLineNumbers.length;nt&&(this._afterLineNumbers[n]-=t-e+1)}},e.prototype.onLinesInserted=function(e,t){e|=0,t|=0;for(var n=0,r=this._afterLineNumbers.length;n=t.length||t[i+1]>=e)return i;n=i+1|0}else r=i-1|0}return-1},e.prototype._findFirstWhitespaceAfterLineNumber=function(e){e|=0;var t=this._findLastWhitespaceBeforeLineNumber(e)+1;return t1?this._lineHeight*(e-1):0)+this._whitespaces.getAccumulatedHeightBeforeLineNumber(e)},e.prototype.getWhitespaceAccumulatedHeightBeforeLineNumber=function(e){return this._whitespaces.getAccumulatedHeightBeforeLineNumber(e)},e.prototype.getWhitespaceMinWidth=function(){return this._whitespaces.getMinWidth()},e.prototype.isAfterLines=function(e){return e>this.getLinesTotalHeight()},e.prototype.getLineNumberAtOrAfterVerticalOffset=function(e){if((e|=0)<0)return 1;for(var t=0|this._lineCount,n=this._lineHeight,r=1,i=t;r=a+n)r=o+1;else{if(e>=a)return o;i=o}}return r>t?t:r},e.prototype.getLinesViewportData=function(e,t){e|=0,t|=0;var n,r,i=this._lineHeight,o=0|this.getLineNumberAtOrAfterVerticalOffset(e),a=0|this.getVerticalOffsetForLineNumber(o),s=0|this._lineCount,u=0|this._whitespaces.getFirstWhitespaceIndexAfterLineNumber(o),c=0|this._whitespaces.getCount();-1===u?(u=c,r=s+1,n=0):(r=0|this._whitespaces.getAfterLineNumberForWhitespaceIndex(u),n=0|this._whitespaces.getHeightForWhitespaceIndex(u));var l=a,d=l,h=0;a>=5e5&&(h=5e5*Math.floor(a/5e5),d-=h=Math.floor(h/i)*i);for(var p=[],f=e+(t-e)/2,g=-1,m=o;m<=s;m++){if(-1===g){(l<=f&&ff)&&(g=m)}for(l+=i,p[m-o]=d,d+=i;r===m;)d+=n,l+=n,++u>=c?r=s+1:(r=0|this._whitespaces.getAfterLineNumberForWhitespaceIndex(u),n=0|this._whitespaces.getHeightForWhitespaceIndex(u));if(l>=t){s=m;break}}-1===g&&(g=s);var y=0|this.getVerticalOffsetForLineNumber(s),v=o,b=s;return vt&&b--,{bigNumbersDelta:h,startLineNumber:o,endLineNumber:s,relativeVerticalOffset:p,centeredLineNumber:g,completelyVisibleStartLineNumber:v,completelyVisibleEndLineNumber:b}},e.prototype.getVerticalOffsetForWhitespaceIndex=function(e){e|=0;var t=this._whitespaces.getAfterLineNumberForWhitespaceIndex(e);return(t>=1?this._lineHeight*t:0)+(e>0?this._whitespaces.getAccumulatedHeight(e-1):0)},e.prototype.getWhitespaceIndexAtOrAfterVerticallOffset=function(e){e|=0;var t,n,r=0,i=this._whitespaces.getCount()-1;if(i<0)return-1;if(e>=this.getVerticalOffsetForWhitespaceIndex(i)+this._whitespaces.getHeightForWhitespaceIndex(i))return-1;for(;r=(n=this.getVerticalOffsetForWhitespaceIndex(t))+this._whitespaces.getHeightForWhitespaceIndex(t))r=t+1;else{if(e>=n)return t;i=t}return r},e.prototype.getWhitespaceAtVerticalOffset=function(e){e|=0;var t=this.getWhitespaceIndexAtOrAfterVerticallOffset(e);if(t<0)return null;if(t>=this._whitespaces.getCount())return null;var n=this.getVerticalOffsetForWhitespaceIndex(t);if(n>e)return null;var r=this._whitespaces.getHeightForWhitespaceIndex(t);return{id:this._whitespaces.getIdForWhitespaceIndex(t),afterLineNumber:this._whitespaces.getAfterLineNumberForWhitespaceIndex(t),verticalOffset:n,height:r}},e.prototype.getWhitespaceViewportData=function(e,t){e|=0,t|=0;var n=this.getWhitespaceIndexAtOrAfterVerticallOffset(e),r=this._whitespaces.getCount()-1;if(n<0)return[];for(var i=[],o=n;o<=r;o++){var a=this.getVerticalOffsetForWhitespaceIndex(o),s=this._whitespaces.getHeightForWhitespaceIndex(o);if(a>=t)break;i.push({id:this._whitespaces.getIdForWhitespaceIndex(o),afterLineNumber:this._whitespaces.getAfterLineNumberForWhitespaceIndex(o),verticalOffset:a,height:s})}return i},e.prototype.getWhitespaces=function(){return this._whitespaces.getWhitespaces(this._lineHeight)},e}(),hr=n(72),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])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),fr=function(e){function t(t,n,r){var i=e.call(this)||this;return i._configuration=t,i._linesLayout=new dr(n,i._configuration.editor.lineHeight),i.scrollable=i._register(new cr.a(0,r)),i._configureSmoothScrollDuration(),i.scrollable.setScrollDimensions({width:t.editor.layoutInfo.contentWidth,height:t.editor.layoutInfo.contentHeight}),i.onDidScroll=i.scrollable.onScroll,i._updateHeight(),i}return pr(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.onHeightMaybeChanged=function(){this._updateHeight()},t.prototype._configureSmoothScrollDuration=function(){this.scrollable.setSmoothScrollDuration(this._configuration.editor.viewInfo.smoothScrolling?125:0)},t.prototype.onConfigurationChanged=function(e){e.lineHeight&&this._linesLayout.setLineHeight(this._configuration.editor.lineHeight),e.layoutInfo&&this.scrollable.setScrollDimensions({width:this._configuration.editor.layoutInfo.contentWidth,height:this._configuration.editor.layoutInfo.contentHeight}),e.viewInfo&&this._configureSmoothScrollDuration(),this._updateHeight()},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){return 2===this._configuration.editor.viewInfo.scrollbar.horizontal?0:e.width>=e.scrollWidth?0:this._configuration.editor.viewInfo.scrollbar.horizontalScrollbarSize},t.prototype._getTotalHeight=function(){var e=this.scrollable.getScrollDimensions(),t=this._linesLayout.getLinesTotalHeight();return this._configuration.editor.viewInfo.scrollBeyondLastLine?t+=e.height-this._configuration.editor.lineHeight:t+=this._getHorizontalScrollbarHeight(e),Math.max(e.height,t)},t.prototype._updateHeight=function(){this.scrollable.setScrollDimensions({scrollHeight:this._getTotalHeight()})},t.prototype.getCurrentViewport=function(){var e=this.scrollable.getScrollDimensions(),t=this.scrollable.getCurrentScrollPosition();return new hr.f(t.scrollTop,t.scrollLeft,e.width,e.height)},t.prototype.getFutureViewport=function(){var e=this.scrollable.getScrollDimensions(),t=this.scrollable.getFutureScrollPosition();return new hr.f(t.scrollTop,t.scrollLeft,e.width,e.height)},t.prototype._computeScrollWidth=function(e,t){if(!this._configuration.editor.wrappingInfo.isViewportWrapping){var n=this._configuration.editor.viewInfo.scrollBeyondLastColumn*this._configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,r=this._linesLayout.getWhitespaceMinWidth();return Math.max(e+n,t,r)}return Math.max(e,t)},t.prototype.onMaxLineWidthChanged=function(e){var t=this._computeScrollWidth(e,this.getCurrentViewport().width);this.scrollable.setScrollDimensions({scrollWidth:t}),this._updateHeight()},t.prototype.saveState=function(){var e=this.scrollable.getFutureScrollPosition(),t=e.scrollTop,n=this._linesLayout.getLineNumberAtOrAfterVerticalOffset(t);return{scrollTop:t,scrollTopWithoutViewZones:t-this._linesLayout.getWhitespaceAccumulatedHeightBeforeLineNumber(n),scrollLeft:e.scrollLeft}},t.prototype.addWhitespace=function(e,t,n,r){return this._linesLayout.insertWhitespace(e,t,n,r)},t.prototype.changeWhitespace=function(e,t,n){return this._linesLayout.changeWhitespace(e,t,n)},t.prototype.removeWhitespace=function(e){return this._linesLayout.removeWhitespace(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.getScrollWidth=function(){return this.scrollable.getScrollDimensions().scrollWidth},t.prototype.getScrollHeight=function(){return this.scrollable.getScrollDimensions().scrollHeight},t.prototype.getCurrentScrollLeft=function(){return this.scrollable.getCurrentScrollPosition().scrollLeft},t.prototype.getCurrentScrollTop=function(){return this.scrollable.getCurrentScrollPosition().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}(u.a),gr=n(114),mr=n(122),yr=n(214),vr=n(29),br=function(){return function(e,t){this.outputLineIndex=e,this.outputOffset=t}}(),_r=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){var t=this._lines.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),n=this._lines.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);return new te.a(t.lineNumber,t.column,n.lineNumber,n.column)},e.prototype.validateViewPosition=function(e,t){return this._lines.validateViewPosition(e.lineNumber,e.column,t)},e.prototype.validateViewRange=function(e,t){var n=this._lines.validateViewPosition(e.startLineNumber,e.startColumn,t.getStartPosition()),r=this._lines.validateViewPosition(e.endLineNumber,e.endColumn,t.getEndPosition());return new te.a(n.lineNumber,n.column,r.lineNumber,r.column)},e.prototype.convertModelPositionToViewPosition=function(e){return this._lines.convertModelPositionToViewPosition(e.lineNumber,e.column)},e.prototype.convertModelRangeToViewRange=function(e){var t=this._lines.convertModelPositionToViewPosition(e.startLineNumber,e.startColumn),n=this._lines.convertModelPositionToViewPosition(e.endLineNumber,e.endColumn);return new te.a(t.lineNumber,t.column,n.lineNumber,n.column)},e.prototype.modelPositionIsVisible=function(e){return this._lines.modelPositionIsVisible(e.lineNumber,e.column)},e}(),wr=function(){function e(e,t,n,r,i,o){this.model=e,this._validModelVersionId=-1,this.tabSize=n,this.wrappingColumn=r,this.columnsForFullWidthChar=i,this.wrappingIndent=o,this.linePositionMapperFactory=t,this._constructLines(!0)}return e.prototype.dispose=function(){this.hiddenAreasIds=this.model.deltaDecorations(this.hiddenAreasIds,[])},e.prototype.createCoordinatesConverter=function(){return new _r(this)},e.prototype._ensureValidState=function(){if(this.model.getVersionId()!==this._validModelVersionId)throw new Error("ViewModel is out of sync with Model!");this.lines.length!==this.model.getLineCount()&&this._constructLines(!1)},e.prototype._constructLines=function(e){var t=this;this.lines=[],e&&(this.hiddenAreasIds=[]);for(var n=this.model.getLinesContent(),r=n.length,i=new Uint32Array(r),o=this.hiddenAreasIds.map(function(e){return t.model.getDecorationRange(e)}).sort(te.a.compareRangesUsingStarts),a=1,s=0,u=-1,c=u+1=a&&d<=s,p=Mr(this.linePositionMapperFactory,n[l],this.tabSize,this.wrappingColumn,this.columnsForFullWidthChar,this.wrappingIndent,!h);i[l]=p.getViewLineCount(),this.lines[l]=p}this._validModelVersionId=this.model.getVersionId(),this.prefixSumComputer=new yr.b(i)},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(te.a.compareRangesUsingStarts),r=[],i=n[0].startLineNumber,o=n[0].endLineNumber,a=1,s=n.length;ao+1?(r.push(new te.a(i,1,o,1)),i=u.startLineNumber,o=u.endLineNumber):u.endLineNumber>o&&(o=u.endLineNumber)}return r.push(new te.a(i,1,o,1)),r},e.prototype.setHiddenAreas=function(e){var t=this,n=this._reduceRanges(e),r=this.hiddenAreasIds.map(function(e){return t.model.getDecorationRange(e)}).sort(te.a.compareRangesUsingStarts);if(n.length===r.length){for(var i=!1,o=0;o=d&&m<=h?this.lines[o].isVisible()&&(this.lines[o]=this.lines[o].setVisible(!1),y=!0):(g=!0,this.lines[o].isVisible()||(this.lines[o]=this.lines[o].setVisible(!0),y=!0)),y){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),!0)},e.prototype.setWrappingSettings=function(e,t,n){return(this.wrappingIndent!==e||this.wrappingColumn!==t||this.columnsForFullWidthChar!==n)&&(this.wrappingIndent=e,this.wrappingColumn=t,this.columnsForFullWidthChar=n,this._constructLines(!1),!0)},e.prototype.onModelFlushed=function(){this._constructLines(!0)},e.prototype.onModelLinesDeleted=function(e,t,n){if(e<=this._validModelVersionId)return null;var r=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,i=this.prefixSumComputer.getAccumulatedValue(n-1);return this.lines.splice(t-1,n-t+1),this.prefixSumComputer.removeValues(t-1,n-t+1),new We(r,i)},e.prototype.onModelLinesInserted=function(e,t,n,r){if(e<=this._validModelVersionId)return null;for(var i=this.getHiddenAreas(),o=!1,a=new ee.a(t,1),s=0,u=i;ss?(f=(p=(l=(c=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1)+s-1)+1)+(i-s)-1,u=!0):it?t:e},e.prototype.warmUpLookupCache=function(e,t){this.prefixSumComputer.warmUpCache(e-1,t-1)},e.prototype.getActiveIndentGuide=function(e,t,n){this._ensureValidState(),e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t),n=this._toValidViewLineNumber(n);var r=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),i=this.convertViewPositionToModelPosition(t,this.getViewLineMinColumn(t)),o=this.convertViewPositionToModelPosition(n,this.getViewLineMinColumn(n)),a=this.model.getActiveIndentGuide(r.lineNumber,i.lineNumber,o.lineNumber),s=this.convertModelPositionToViewPosition(a.startLineNumber,1),u=this.convertModelPositionToViewPosition(a.endLineNumber,this.model.getLineMaxColumn(a.endLineNumber));return{startLineNumber:s.lineNumber,endLineNumber:u.lineNumber,indent:a.indent}},e.prototype.getViewLinesIndentGuides=function(e,t){this._ensureValidState(),e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t);for(var n=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),r=this.convertViewPositionToModelPosition(t,this.getViewLineMaxColumn(t)),i=[],o=[],a=[],s=n.lineNumber-1,u=r.lineNumber-1,c=null,l=s;l<=u;l++){var d=this.lines[l];if(d.isVisible()){var h=d.getViewLineNumberOfModelPosition(0,l===s?n.column:1),p=d.getViewLineNumberOfModelPosition(0,this.model.getLineMaxColumn(l+1)),f=0;(w=p-h+1)>1&&1===d.getViewLineMinColumn(this.model,l+1,p)&&(f=0===h?1:2),o.push(w),a.push(f),null===c&&(c=new ee.a(l+1,0))}else null!==c&&(i=i.concat(this.model.getLinesIndentGuides(c.lineNumber,l)),c=null)}null!==c&&(i=i.concat(this.model.getLinesIndentGuides(c.lineNumber,r.lineNumber)),c=null);for(var g=t-e+1,m=new Array(g),y=0,v=0,b=i.length;vt&&(p=!0,h=t-i+1);var f=d+h;if(l.getViewLinesData(this.model,u+1,d,f,i-e,n,s),i+=h,p)break}}return s},e.prototype.validateViewPosition=function(e,t,n){this._ensureValidState(),e=this._toValidViewLineNumber(e);var r=this.prefixSumComputer.getIndexOf(e-1),i=r.index,o=r.remainder,a=this.lines[i],s=a.getViewLineMinColumn(this.model,i+1,o),u=a.getViewLineMaxColumn(this.model,i+1,o);tu&&(t=u);var c=a.getModelColumnOfViewPosition(o,t);return this.model.validatePosition(new ee.a(i+1,c)).equals(n)?new ee.a(e,t):this.convertModelPositionToViewPosition(n.lineNumber,n.column)},e.prototype.convertViewPositionToModelPosition=function(e,t){this._ensureValidState(),e=this._toValidViewLineNumber(e);var n=this.prefixSumComputer.getIndexOf(e-1),r=n.index,i=n.remainder,o=this.lines[r].getModelColumnOfViewPosition(i,t);return this.model.validatePosition(new ee.a(r+1,o))},e.prototype.convertModelPositionToViewPosition=function(e,t){this._ensureValidState();for(var n=this.model.validatePosition(new ee.a(e,t)),r=n.lineNumber,i=n.column,o=r-1,a=!1;o>0&&!this.lines[o].isVisible();)o--,a=!0;if(0===o&&!this.lines[o].isVisible())return new ee.a(1,1);var s=1+(0===o?0:this.prefixSumComputer.getAccumulatedValue(o-1));return a?this.lines[o].getViewPositionOfModelPosition(s,this.model.getLineMaxColumn(o+1)):this.lines[r-1].getViewPositionOfModelPosition(s,i)},e.prototype._getViewLineNumberForModelPosition=function(e,t){var n=e-1;if(this.lines[n].isVisible()){var r=1+(0===n?0:this.prefixSumComputer.getAccumulatedValue(n-1));return this.lines[n].getViewLineNumberOfModelPosition(r,t)}for(;n>0&&!this.lines[n].isVisible();)n--;if(0===n&&!this.lines[n].isVisible())return 1;var i=1+(0===n?0:this.prefixSumComputer.getAccumulatedValue(n-1));return this.lines[n].getViewLineNumberOfModelPosition(i,this.model.getLineMaxColumn(n+1))},e.prototype.getAllOverviewRulerDecorations=function(e,t,n){for(var r=this.model.getOverviewRulerDecorations(e,t),i=new Er,o=0,a=r;ot.id?1:0:n});for(var d=[],h=0,p=null,f=0,g=o;f0&&(o=this.wrappedIndent+o),o},e.prototype.getViewLineLength=function(e,t,n){if(!this._isVisible)throw new Error("Not supported");var r=this.getInputStartOffsetOfOutputLineIndex(n),i=this.getInputEndOffsetOfOutputLineIndex(e,t,n)-r;return n>0&&(i=this.wrappedIndent.length+i),i},e.prototype.getViewLineMinColumn=function(e,t,n){if(!this._isVisible)throw new Error("Not supported");return n>0?this.wrappedIndentLength+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 r=this.getInputStartOffsetOfOutputLineIndex(n),i=this.getInputEndOffsetOfOutputLineIndex(e,t,n),o=e.getValueInRange({startLineNumber:t,startColumn:r+1,endLineNumber:t,endColumn:i+1});n>0&&(o=this.wrappedIndent+o);var a=n>0?this.wrappedIndentLength+1:1,s=o.length+1,u=n+10&&(c=this.wrappedIndentLength);var l=e.getLineTokens(t);return new hr.c(o,u,a,s,l.sliceAndInflate(r,i,c))},e.prototype.getViewLinesData=function(e,t,n,r,i,o,a){if(!this._isVisible)throw new Error("Not supported");for(var s=n;s0&&(n0&&(i+=this.wrappedIndentLength),new ee.a(e+r,i)},e.prototype.getViewLineNumberOfModelPosition=function(e,t){if(!this._isVisible)throw new Error("Not supported");return e+this.positionMapper.getOutputPositionOfInputOffset(t-1).outputLineIndex},e}();function Mr(e,t,n,r,i,o,a){var s=e.createLineMapping(t,n,r,i,o);return null===s?a?Sr.INSTANCE:Cr.INSTANCE:new Ir(s,a)}var xr=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}(),Nr=function(){function e(e){this.model=e}return e.prototype.dispose=function(){},e.prototype.createCoordinatesConverter=function(){return new xr(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){return!1},e.prototype.onModelFlushed=function(){},e.prototype.onModelLinesDeleted=function(e,t,n){return new We(t,n)},e.prototype.onModelLinesInserted=function(e,t,n,r){return new He(t,n)},e.prototype.onModelLineChanged=function(e,t,n){return[!1,new Ue(t,t),null,null]},e.prototype.acceptVersionId=function(e){},e.prototype.getViewLineCount=function(){return this.model.getLineCount()},e.prototype.warmUpLookupCache=function(e,t){},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,r=new Array(n),i=0;i=t)return void(n>a&&(i[i.length-1]=n));i.push(r,t,n)}else this.result[e]=[r,t,n]},e}(),Lr=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])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Tr=function(e){function t(t,n,r){for(var i=e.call(this,0)||this,o=0;o=12352&&t<=12543||t>=13312&&t<=19903||t>=19968&&t<=40959?4:e.prototype.get.call(this,t)},t}(gr.a),kr=function(){function e(e,t,n){this.classifier=new Tr(e,t,n)}return e.nextVisibleColumn=function(e,t,n,r){return e=+e,t=+t,r=+r,n?e+(t-e%t):e+r},e.prototype.createLineMapping=function(t,n,r,i,o){if(-1===r)return null;n=+n,r=+r,i=+i;var a=0,s="",u=-1;if(0!==(o=+o)&&-1!==(u=Ce.o(t))){s=t.substring(0,u);for(var c=0;cr&&(s="",a=0)}var d=this.classifier,h=0,p=[],f=0,g=0,m=-1,y=0,v=-1,b=0,_=t.length;for(c=0;c<_;c++){var w=t.charCodeAt(c),S=9===w,C=d.get(w);if(1===C&&(m=c,y=a),4===C&&c>0){var I=t.charCodeAt(c-1);1!==d.get(I)&&(m=c,y=a)}var M=1;if(Ce.t(w)&&(M=i),(g=e.nextVisibleColumn(g,n,S,M))>r&&0!==c){var x=void 0,N=void 0;-1!==m&&y<=r?(x=m,N=y):-1!==v&&b<=r?(x=v,N=b):(x=c,N=a),p[f++]=x-h,h=x,g=e.nextVisibleColumn(N,n,S,M),m=-1,y=0,v=-1,b=0}if(-1!==m&&(y=e.nextVisibleColumn(y,n,S,M)),-1!==v&&(b=e.nextVisibleColumn(b,n,S,M)),2===C&&(0===o||c>=u)&&(m=c+1,y=a),4===C&&c<_-1){var E=t.charCodeAt(c+1);2!==d.get(E)&&(m=c+1,y=a)}3===C&&(v=c+1,b=a)}return 0===f?null:(p[f++]=_-h,new Dr(new yr.a(Object(mr.c)(p)),s))},e}(),Dr=function(){function e(e,t){this._prefixSums=e,this._wrappedLinesIndent=t}return e.prototype.getOutputLineCount=function(){return this._prefixSums.getCount()},e.prototype.getWrappedLinesIndent=function(){return this._wrappedLinesIndent},e.prototype.getInputOffsetOfOutputPosition=function(e,t){return 0===e?t:this._prefixSums.getAccumulatedValue(e-1)+t},e.prototype.getOutputPositionOfInputOffset=function(e){var t=this._prefixSums.getIndexOf(e);return new br(t.index,t.remainder)},e}(),Or=function(){function e(e,t,n,r,i){this.editorId=e,this.model=t,this.configuration=n,this._linesCollection=r,this._coordinatesConverter=i,this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}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 r=e.range,i=e.options,o=void 0;if(i.isWholeLine){var a=this._coordinatesConverter.convertModelPositionToViewPosition(new ee.a(r.startLineNumber,1)),s=this._coordinatesConverter.convertModelPositionToViewPosition(new ee.a(r.endLineNumber,this.model.getLineMaxColumn(r.endLineNumber)));o=new te.a(a.lineNumber,a.column,s.lineNumber,s.column)}else o=this._coordinatesConverter.convertModelRangeToViewRange(r);n=new hr.e(o,i),this._decorationsCache[t]=n}return n},e.prototype.getDecorationsViewportData=function(e){var t=null!==this._cachedModelDecorationsResolver;return(t=t&&e.equalsRange(this._cachedModelDecorationsResolverViewRange))||(this._cachedModelDecorationsResolver=this._getDecorationsViewportData(e),this._cachedModelDecorationsResolverViewRange=e),this._cachedModelDecorationsResolver},e.prototype._getDecorationsViewportData=function(e){for(var t=this._linesCollection.getDecorationsInRange(e,this.editorId,this.configuration.editor.readOnly),n=e.startLineNumber,r=e.endLineNumber,i=[],o=0,a=[],s=n;s<=r;s++)a[s-n]=[];for(var u=0,c=t.length;u=2&&e.viewportStartLineTrackedRange){var g=e.model._getTrackedRange(e.viewportStartLineTrackedRange);if(g){var m=e.coordinatesConverter.convertModelPositionToViewPosition(g.getStartPosition()),y=e.viewLayout.getVerticalOffsetForLineNumber(m.lineNumber);e.viewLayout.setScrollPositionNow({scrollTop:y+e.viewportStartLineDelta})}}})),this._register(this.model.onDidChangeTokens(function(t){for(var n=[],r=0,i=t.ranges.length;rs||(o0&&a[u-1]===a[u]||(s+=this.model.getLineContent(a[u])+i);return s}for(var c=[],l=0,d=o;l'+this._getHTMLToCopy(n,o)+""},t.prototype._getHTMLToCopy=function(e,t){for(var n=e.startLineNumber,r=e.startColumn,i=e.endLineNumber,o=e.endColumn,a=this.getTabSize(),s="",u=n;u<=i;u++){var c=this.model.getLineTokens(u),l=c.getLineContent(),d=u===n?r-1:0,h=u===i?o-1:l.length;s+=""===l?"
    ":Object(ur.a)(l,c.inflate(),t,d,h,a)}return s},t.prototype._getColorMap=function(){var e=qt.y.getColorMap(),t=["#000000"];if(e)for(var n=1,r=e.length;n=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},qr=function(e,t){return function(n,r){t(n,r,e)}},Yr=0,Gr="showUnused",Zr=function(){function e(e,t,n,r,i,o){this.model=e,this.viewModel=t,this.cursor=n,this.view=r,this.hasRealView=i,this.listenersToRemove=o}return e.prototype.dispose=function(){Object(u.d)(this.listenersToRemove),this.model.onBeforeDetached(),this.hasRealView&&this.view.dispose(),this.cursor.dispose(),this.viewModel.dispose()},e}(),Qr=function(e){function t(t,n,r,i,o,u,c,l,h,p){var f,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 Kr),g.onDidFocusEditorText=g._editorTextFocus.onDidChangeToTrue,g.onDidBlurEditorText=g._editorTextFocus.onDidChangeToFalse,g._editorWidgetFocus=g._register(new Kr),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._onCompositionStart=g._register(new s.a),g.onCompositionStart=g._onCompositionStart.event,g._onCompositionEnd=g._register(new s.a),g.onCompositionEnd=g._onCompositionEnd.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._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=++Yr,g._decorationTypeKeysToIds={},g._decorationTypeSubtypes={},g.isSimpleWidget=r.isSimpleWidget||!1,g._telemetryData=r.telemetryData,n=n||{},g._configuration=g._register(g._createConfiguration(n,p)),g._register(g._configuration.onDidChange(function(e){g._onDidChangeConfiguration.fire(e),e.layoutInfo&&g._onDidLayoutChange.fire(g._configuration.editor.layoutInfo),g._configuration.editor.showUnused?g._domElement.classList.add(Gr):g._domElement.classList.remove(Gr)})),g._contextKeyService=g._register(c.createScoped(g._domElement)),g._notificationService=h,g._codeEditorService=o,g._commandService=u,g._themeService=l,g._register(new Jr(g,g._contextKeyService)),g._register(new Xr(g,g._contextKeyService)),g._instantiationService=i.createChild(new Br.a([zr.e,g._contextKeyService])),g._attachModel(null),g._contributions={},g._actions={},g._focusTracker=new $r(t),g._focusTracker.onChange(function(){g._editorWidgetFocus.setValue(g._focusTracker.hasFocus())}),g._contentWidgets={},g._overlayWidgets={};for(var m=0,y=(f=Array.isArray(r.contributions)?r.contributions:d.d.getEditorContributions()).length;m1),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}(u.a),Xr=function(e){function t(t,n){var r=e.call(this)||this;r._editor=t,r._contextKeyService=n,r._langId=sr.a.languageId.bindTo(n),r._hasCompletionItemProvider=sr.a.hasCompletionItemProvider.bindTo(n),r._hasCodeActionsProvider=sr.a.hasCodeActionsProvider.bindTo(n),r._hasCodeLensProvider=sr.a.hasCodeLensProvider.bindTo(n),r._hasDefinitionProvider=sr.a.hasDefinitionProvider.bindTo(n),r._hasDeclarationProvider=sr.a.hasDeclarationProvider.bindTo(n),r._hasImplementationProvider=sr.a.hasImplementationProvider.bindTo(n),r._hasTypeDefinitionProvider=sr.a.hasTypeDefinitionProvider.bindTo(n),r._hasHoverProvider=sr.a.hasHoverProvider.bindTo(n),r._hasDocumentHighlightProvider=sr.a.hasDocumentHighlightProvider.bindTo(n),r._hasDocumentSymbolProvider=sr.a.hasDocumentSymbolProvider.bindTo(n),r._hasReferenceProvider=sr.a.hasReferenceProvider.bindTo(n),r._hasRenameProvider=sr.a.hasRenameProvider.bindTo(n),r._hasSignatureHelpProvider=sr.a.hasSignatureHelpProvider.bindTo(n),r._hasDocumentFormattingProvider=sr.a.hasDocumentFormattingProvider.bindTo(n),r._hasDocumentSelectionFormattingProvider=sr.a.hasDocumentSelectionFormattingProvider.bindTo(n),r._hasMultipleDocumentFormattingProvider=sr.a.hasMultipleDocumentFormattingProvider.bindTo(n),r._hasMultipleDocumentSelectionFormattingProvider=sr.a.hasMultipleDocumentSelectionFormattingProvider.bindTo(n),r._isInWalkThrough=sr.a.isInEmbeddedEditor.bindTo(n);var i=function(){return r._update()};return r._register(t.onDidChangeModel(i)),r._register(t.onDidChangeModelLanguage(i)),r._register(qt.d.onDidChange(i)),r._register(qt.a.onDidChange(i)),r._register(qt.b.onDidChange(i)),r._register(qt.f.onDidChange(i)),r._register(qt.e.onDidChange(i)),r._register(qt.o.onDidChange(i)),r._register(qt.z.onDidChange(i)),r._register(qt.n.onDidChange(i)),r._register(qt.i.onDidChange(i)),r._register(qt.k.onDidChange(i)),r._register(qt.s.onDidChange(i)),r._register(qt.t.onDidChange(i)),r._register(qt.g.onDidChange(i)),r._register(qt.j.onDidChange(i)),r._register(qt.v.onDidChange(i)),i(),r}return Hr(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(qt.d.has(t)),e._hasCodeActionsProvider.set(qt.a.has(t)),e._hasCodeLensProvider.set(qt.b.has(t)),e._hasDefinitionProvider.set(qt.f.has(t)),e._hasDeclarationProvider.set(qt.e.has(t)),e._hasImplementationProvider.set(qt.o.has(t)),e._hasTypeDefinitionProvider.set(qt.z.has(t)),e._hasHoverProvider.set(qt.n.has(t)),e._hasDocumentHighlightProvider.set(qt.i.has(t)),e._hasDocumentSymbolProvider.set(qt.k.has(t)),e._hasReferenceProvider.set(qt.s.has(t)),e._hasRenameProvider.set(qt.t.has(t)),e._hasSignatureHelpProvider.set(qt.v.has(t)),e._hasDocumentFormattingProvider.set(qt.g.has(t)||qt.j.has(t)),e._hasDocumentSelectionFormattingProvider.set(qt.j.has(t)),e._hasMultipleDocumentFormattingProvider.set(qt.g.all(t).length+qt.j.all(t).length>1),e._hasMultipleDocumentSelectionFormattingProvider.set(qt.j.all(t).length>1),e._isInWalkThrough.set(t.uri.scheme===c.a.walkThroughSnippet)}):this.reset()},t}(u.a),$r=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(o.Q(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 Hr(t,e),t.prototype.hasFocus=function(){return this._hasFocus},t}(u.a),ei=encodeURIComponent("");function ni(e){return ei+encodeURIComponent(e.toString())+ti}var ri=encodeURIComponent('');Object(U.e)(function(e,t){var n=e.getColor(Ee.h);n&&t.addRule(".monaco-editor .squiggly-error { border-bottom: 4px double "+n+"; }");var r=e.getColor(Ee.i);r&&t.addRule('.monaco-editor .squiggly-error { background: url("data:image/svg+xml,'+ni(r)+'") repeat-x bottom left; }');var i=e.getColor(Ee.v);i&&t.addRule(".monaco-editor .squiggly-warning { border-bottom: 4px double "+i+"; }");var o=e.getColor(Ee.w);o&&t.addRule('.monaco-editor .squiggly-warning { background: url("data:image/svg+xml,'+ni(o)+'") repeat-x bottom left; }');var a=e.getColor(Ee.m);a&&t.addRule(".monaco-editor .squiggly-info { border-bottom: 4px double "+a+"; }");var s=e.getColor(Ee.n);s&&t.addRule('.monaco-editor .squiggly-info { background: url("data:image/svg+xml,'+ni(s)+'") repeat-x bottom left; }');var u=e.getColor(Ee.j);u&&t.addRule(".monaco-editor .squiggly-hint { border-bottom: 2px dotted "+u+"; }");var c=e.getColor(Ee.k);c&&t.addRule('.monaco-editor .squiggly-hint { background: url("data:image/svg+xml,'+(ri+encodeURIComponent(c.toString())+ii)+'") no-repeat bottom left; }');var l=e.getColor(Ee.u);l&&t.addRule("."+Gr+" .monaco-editor .squiggly-inline-unnecessary { opacity: "+l.rgba.a+"; }");var d=e.getColor(Ee.t);d&&t.addRule("."+Gr+" .monaco-editor .squiggly-unnecessary { border-bottom: 2px dashed "+d+"; }")})},function(e,t,n){"use strict";n(1271);var r,i=n(5),o=n(29),a=n(2),s=(n(1273),n(1)),u=n(17),c=n(24),l=function(){function e(e){this.modelProvider=Object(c.e)(e.getModel)?e:{getModel:function(){return e}}}return e.prototype.getId=function(e,t){if(!t)return null;var n=this.modelProvider.getModel();return n===t?"__root__":n.dataSource.getId(t)},e.prototype.hasChildren=function(e,t){var n=this.modelProvider.getModel();return!!(n&&n===t&&n.entries.length>0)},e.prototype.getChildren=function(e,t){var n=this.modelProvider.getModel();return Promise.resolve(n===t?n.entries:[])},e.prototype.getParent=function(e,t){return Promise.resolve(null)},e}(),d=function(){function e(e){this.modelProvider=e}return e.prototype.getAriaLabel=function(e,t){var n=this.modelProvider.getModel();return n.accessibilityProvider?n.accessibilityProvider.getAriaLabel(t):null},e.prototype.getPosInSet=function(e,t){var n=this.modelProvider.getModel(),r=0;if(n.filter)for(var i=0,o=n.entries;i=0;t--){var n=this._arr[t];if(e.toChord().equals(n.keybinding))return n.callback}return null},e}(),v=function(){function e(e){var t=this;void 0===e&&(e={clickBehavior:0,keyboardSupport:!0,openMode:0}),this.options=e,this.downKeyBindingDispatcher=new y,this.upKeyBindingDispatcher=new y,("boolean"!=typeof e.keyboardSupport||e.keyboardSupport)&&(this.downKeyBindingDispatcher.set(16,function(e,n){return t.onUp(e,n)}),this.downKeyBindingDispatcher.set(18,function(e,n){return t.onDown(e,n)}),this.downKeyBindingDispatcher.set(15,function(e,n){return t.onLeft(e,n)}),this.downKeyBindingDispatcher.set(17,function(e,n){return t.onRight(e,n)}),u.d&&(this.downKeyBindingDispatcher.set(2064,function(e,n){return t.onLeft(e,n)}),this.downKeyBindingDispatcher.set(300,function(e,n){return t.onDown(e,n)}),this.downKeyBindingDispatcher.set(302,function(e,n){return t.onUp(e,n)})),this.downKeyBindingDispatcher.set(11,function(e,n){return t.onPageUp(e,n)}),this.downKeyBindingDispatcher.set(12,function(e,n){return t.onPageDown(e,n)}),this.downKeyBindingDispatcher.set(14,function(e,n){return t.onHome(e,n)}),this.downKeyBindingDispatcher.set(13,function(e,n){return t.onEnd(e,n)}),this.downKeyBindingDispatcher.set(10,function(e,n){return t.onSpace(e,n)}),this.downKeyBindingDispatcher.set(9,function(e,n){return t.onEscape(e,n)}),this.upKeyBindingDispatcher.set(3,this.onEnter.bind(this)),this.upKeyBindingDispatcher.set(2051,this.onEnter.bind(this)))}return e.prototype.onMouseDown=function(e,t,n,r){if(void 0===r&&(r="mouse"),0===this.options.clickBehavior&&(n.leftButton||n.middleButton)){if(n.target){if(n.target.tagName&&"input"===n.target.tagName.toLowerCase())return!1;if(a.r(n.target,"scrollbar","monaco-tree"))return!1;if(a.r(n.target,"monaco-action-bar","row"))return!1}return this.onLeftClick(e,t,n,r)}return!1},e.prototype.onClick=function(e,t,n){return u.d&&n.ctrlKey?(n.preventDefault(),n.stopPropagation(),!1):(!n.target||!n.target.tagName||"input"!==n.target.tagName.toLowerCase())&&((0!==this.options.clickBehavior||!n.leftButton&&!n.middleButton)&&this.onLeftClick(e,t,n))},e.prototype.onLeftClick=function(e,t,n,r){void 0===r&&(r="mouse");var i=n,o={origin:r,originalEvent:n,didClickOnTwistie:this.isClickOnTwistie(i)};e.getInput()===t?(e.clearFocus(o),e.clearSelection(o)):(n&&i.browserEvent&&"mousedown"===i.browserEvent.type&&1===i.browserEvent.detail||n.preventDefault(),n.stopPropagation(),e.domFocus(),e.setSelection([t],o),e.setFocus(t,o),this.shouldToggleExpansion(t,i,r)&&(e.isExpanded(t)?e.collapse(t).then(void 0,g.e):e.expand(t).then(void 0,g.e)));return!0},e.prototype.shouldToggleExpansion=function(e,t,n){var r="mouse"===n&&2===t.detail;return this.openOnSingleClick||r||this.isClickOnTwistie(t)},Object.defineProperty(e.prototype,"openOnSingleClick",{get:function(){return 0===this.options.openMode},enumerable:!0,configurable:!0}),e.prototype.isClickOnTwistie=function(e){var t=e.target;if(!a.A(t,"content"))return!1;var n=window.getComputedStyle(t,":before");if("none"===n.backgroundImage||"none"===n.display)return!1;var r=parseInt(n.width)+parseInt(n.paddingRight);return e.browserEvent.offsetX<=r},e.prototype.onContextMenu=function(e,t,n){return(!n.target||!n.target.tagName||"input"!==n.target.tagName.toLowerCase())&&(n&&(n.preventDefault(),n.stopPropagation()),!1)},e.prototype.onTap=function(e,t,n){var r=n.initialTarget;return(!r||!r.tagName||"input"!==r.tagName.toLowerCase())&&this.onLeftClick(e,t,n,"touch")},e.prototype.onKeyDown=function(e,t){return this.onKey(this.downKeyBindingDispatcher,e,t)},e.prototype.onKeyUp=function(e,t){return this.onKey(this.upKeyBindingDispatcher,e,t)},e.prototype.onKey=function(e,t,n){var r=e.dispatch(n.toKeybinding());return!(!r||!r(t,n))&&(n.preventDefault(),n.stopPropagation(),!0)},e.prototype.onUp=function(e,t){var n={origin:"keyboard",originalEvent:t};return e.getHighlight()?e.clearHighlight(n):(e.focusPrevious(1,n),e.reveal(e.getFocus()).then(void 0,g.e)),!0},e.prototype.onPageUp=function(e,t){var n={origin:"keyboard",originalEvent:t};return e.getHighlight()?e.clearHighlight(n):(e.focusPreviousPage(n),e.reveal(e.getFocus()).then(void 0,g.e)),!0},e.prototype.onDown=function(e,t){var n={origin:"keyboard",originalEvent:t};return e.getHighlight()?e.clearHighlight(n):(e.focusNext(1,n),e.reveal(e.getFocus()).then(void 0,g.e)),!0},e.prototype.onPageDown=function(e,t){var n={origin:"keyboard",originalEvent:t};return e.getHighlight()?e.clearHighlight(n):(e.focusNextPage(n),e.reveal(e.getFocus()).then(void 0,g.e)),!0},e.prototype.onHome=function(e,t){var n={origin:"keyboard",originalEvent:t};return e.getHighlight()?e.clearHighlight(n):(e.focusFirst(n),e.reveal(e.getFocus()).then(void 0,g.e)),!0},e.prototype.onEnd=function(e,t){var n={origin:"keyboard",originalEvent:t};return e.getHighlight()?e.clearHighlight(n):(e.focusLast(n),e.reveal(e.getFocus()).then(void 0,g.e)),!0},e.prototype.onLeft=function(e,t){var n={origin:"keyboard",originalEvent:t};if(e.getHighlight())e.clearHighlight(n);else{var r=e.getFocus();e.collapse(r).then(function(t){if(r&&!t)return e.focusParent(n),e.reveal(e.getFocus())}).then(void 0,g.e)}return!0},e.prototype.onRight=function(e,t){var n={origin:"keyboard",originalEvent:t};if(e.getHighlight())e.clearHighlight(n);else{var r=e.getFocus();e.expand(r).then(function(t){if(r&&!t)return e.focusFirstChild(n),e.reveal(e.getFocus())}).then(void 0,g.e)}return!0},e.prototype.onEnter=function(e,t){var n={origin:"keyboard",originalEvent:t};if(e.getHighlight())return!1;var r=e.getFocus();return r&&e.setSelection([r],n),!0},e.prototype.onSpace=function(e,t){if(e.getHighlight())return!1;var n=e.getFocus();return n&&e.toggleExpansion(n),!0},e.prototype.onEscape=function(e,t){var n={origin:"keyboard",originalEvent:t};return e.getHighlight()?(e.clearHighlight(n),!0):e.getSelection().length?(e.clearSelection(n),!0):!!e.getFocus()&&(e.clearFocus(n),!0)},e}(),b=function(){function e(){}return e.prototype.getDragURI=function(e,t){return null},e.prototype.onDragStart=function(e,t,n){},e.prototype.onDragOver=function(e,t,n,r){return null},e.prototype.drop=function(e,t,n,r){},e}(),_=function(){function e(){}return e.prototype.isVisible=function(e,t){return!0},e}(),w=function(){function e(){}return e.prototype.getAriaLabel=function(e,t){return null},e}(),S=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.listFocusBackground&&n.push(".monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.focused:not(.highlighted) { background-color: "+e.listFocusBackground+"; }"),e.listFocusForeground&&n.push(".monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.focused:not(.highlighted) { color: "+e.listFocusForeground+"; }"),e.listActiveSelectionBackground&&n.push(".monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { background-color: "+e.listActiveSelectionBackground+"; }"),e.listActiveSelectionForeground&&n.push(".monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { color: "+e.listActiveSelectionForeground+"; }"),e.listFocusAndSelectionBackground&&n.push("\n\t\t\t\t.monaco-tree-drag-image,\n\t\t\t\t.monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.focused.selected:not(.highlighted) { background-color: "+e.listFocusAndSelectionBackground+"; }\n\t\t\t"),e.listFocusAndSelectionForeground&&n.push("\n\t\t\t\t.monaco-tree-drag-image,\n\t\t\t\t.monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.focused.selected:not(.highlighted) { color: "+e.listFocusAndSelectionForeground+"; }\n\t\t\t"),e.listInactiveSelectionBackground&&n.push(".monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { background-color: "+e.listInactiveSelectionBackground+"; }"),e.listInactiveSelectionForeground&&n.push(".monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { color: "+e.listInactiveSelectionForeground+"; }"),e.listHoverBackground&&n.push(".monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row:hover:not(.highlighted):not(.selected):not(.focused) { background-color: "+e.listHoverBackground+"; }"),e.listHoverForeground&&n.push(".monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row:hover:not(.highlighted):not(.selected):not(.focused) { color: "+e.listHoverForeground+"; }"),e.listDropBackground&&n.push("\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-wrapper.drop-target,\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row.drop-target { background-color: "+e.listDropBackground+" !important; color: inherit !important; }\n\t\t\t"),e.listFocusOutline&&n.push("\n\t\t\t\t.monaco-tree-drag-image\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{ border: 1px solid "+e.listFocusOutline+"; background: #000; }\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row \t\t\t\t\t\t\t\t\t\t\t\t\t\t{ border: 1px solid transparent; }\n\t\t\t\t.monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.focused:not(.highlighted) \t\t\t\t\t\t{ border: 1px dotted "+e.listFocusOutline+"; }\n\t\t\t\t.monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) \t\t\t\t\t\t{ border: 1px solid "+e.listFocusOutline+"; }\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) \t\t\t\t\t\t\t{ border: 1px solid "+e.listFocusOutline+"; }\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row:hover:not(.highlighted):not(.selected):not(.focused) \t{ border: 1px dashed "+e.listFocusOutline+"; }\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-wrapper.drop-target,\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row.drop-target\t\t\t\t\t\t\t\t\t\t\t\t{ border: 1px dashed "+e.listFocusOutline+"; }\n\t\t\t");var r=n.join("\n");r!==this.styleElement.innerHTML&&(this.styleElement.innerHTML=r)},e}(),C=n(164),I=n(6),M=n(7),x=(r=function(e,t){return(r=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)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),N=function(){function e(e){this._onDispose=new M.a,this.onDispose=this._onDispose.event,this._item=e}return Object.defineProperty(e.prototype,"item",{get:function(){return this._item},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this._onDispose&&(this._onDispose.fire(),this._onDispose.dispose(),this._onDispose=void 0)},e}(),E=function(){function e(){this.locks=Object.create({})}return e.prototype.isLocked=function(e){return!!this.locks[e.id]},e.prototype.run=function(e,t){var n=this,r=this.getLock(e);return r?new Promise(function(i,o){M.b.once(r.onDispose)(function(){return n.run(e,t).then(i,o)})}):new Promise(function(r,i){if(e.isDisposed())return i(new Error("Item is disposed."));var o=n.locks[e.id]=new N(e);return t().then(function(t){return delete n.locks[e.id],o.dispose(),t}).then(r,i)})},e.prototype.getLock=function(e){var t;for(t in this.locks){var n=this.locks[t];if(e.intersects(n.item))return n}return null},e}(),L=function(){function e(){this._isDisposed=!1,this._onDidRevealItem=new M.d,this.onDidRevealItem=this._onDidRevealItem.event,this._onExpandItem=new M.d,this.onExpandItem=this._onExpandItem.event,this._onDidExpandItem=new M.d,this.onDidExpandItem=this._onDidExpandItem.event,this._onCollapseItem=new M.d,this.onCollapseItem=this._onCollapseItem.event,this._onDidCollapseItem=new M.d,this.onDidCollapseItem=this._onDidCollapseItem.event,this._onDidAddTraitItem=new M.d,this.onDidAddTraitItem=this._onDidAddTraitItem.event,this._onDidRemoveTraitItem=new M.d,this.onDidRemoveTraitItem=this._onDidRemoveTraitItem.event,this._onDidRefreshItem=new M.d,this.onDidRefreshItem=this._onDidRefreshItem.event,this._onRefreshItemChildren=new M.d,this.onRefreshItemChildren=this._onRefreshItemChildren.event,this._onDidRefreshItemChildren=new M.d,this.onDidRefreshItemChildren=this._onDidRefreshItemChildren.event,this._onDidDisposeItem=new M.d,this.onDidDisposeItem=this._onDidDisposeItem.event,this.items={}}return e.prototype.register=function(e){C.a(!this.isRegistered(e.id),"item already registered: "+e.id);var t=Object(I.c)([this._onDidRevealItem.add(e.onDidReveal),this._onExpandItem.add(e.onExpand),this._onDidExpandItem.add(e.onDidExpand),this._onCollapseItem.add(e.onCollapse),this._onDidCollapseItem.add(e.onDidCollapse),this._onDidAddTraitItem.add(e.onDidAddTrait),this._onDidRemoveTraitItem.add(e.onDidRemoveTrait),this._onDidRefreshItem.add(e.onDidRefresh),this._onRefreshItemChildren.add(e.onRefreshChildren),this._onDidRefreshItemChildren.add(e.onDidRefreshChildren),this._onDidDisposeItem.add(e.onDidDispose)]);this.items[e.id]={item:e,disposable:t}},e.prototype.deregister=function(e){C.a(this.isRegistered(e.id),"item not registered: "+e.id),this.items[e.id].disposable.dispose(),delete this.items[e.id]},e.prototype.isRegistered=function(e){return this.items.hasOwnProperty(e)},e.prototype.getItem=function(e){var t=this.items[e];return t?t.item:null},e.prototype.dispose=function(){this.items=null,this._onDidRevealItem.dispose(),this._onExpandItem.dispose(),this._onDidExpandItem.dispose(),this._onCollapseItem.dispose(),this._onDidCollapseItem.dispose(),this._onDidAddTraitItem.dispose(),this._onDidRemoveTraitItem.dispose(),this._onDidRefreshItem.dispose(),this._onRefreshItemChildren.dispose(),this._onDidRefreshItemChildren.dispose(),this._isDisposed=!0},e.prototype.isDisposed=function(){return this._isDisposed},e}(),T=function(){function e(e,t,n,r,i){this._onDidCreate=new M.a,this._onDidReveal=new M.a,this.onDidReveal=this._onDidReveal.event,this._onExpand=new M.a,this.onExpand=this._onExpand.event,this._onDidExpand=new M.a,this.onDidExpand=this._onDidExpand.event,this._onCollapse=new M.a,this.onCollapse=this._onCollapse.event,this._onDidCollapse=new M.a,this.onDidCollapse=this._onDidCollapse.event,this._onDidAddTrait=new M.a,this.onDidAddTrait=this._onDidAddTrait.event,this._onDidRemoveTrait=new M.a,this.onDidRemoveTrait=this._onDidRemoveTrait.event,this._onDidRefresh=new M.a,this.onDidRefresh=this._onDidRefresh.event,this._onRefreshChildren=new M.a,this.onRefreshChildren=this._onRefreshChildren.event,this._onDidRefreshChildren=new M.a,this.onDidRefreshChildren=this._onDidRefreshChildren.event,this._onDidDispose=new M.a,this.onDidDispose=this._onDidDispose.event,this.registry=t,this.context=n,this.lock=r,this.element=i,this.id=e,this.registry.register(this),this.doesHaveChildren=this.context.dataSource.hasChildren(this.context.tree,this.element),this.needsChildrenRefresh=!0,this.parent=null,this.previous=null,this.next=null,this.firstChild=null,this.lastChild=null,this.traits={},this.depth=0,this.expanded=!(!this.context.dataSource.shouldAutoexpand||!this.context.dataSource.shouldAutoexpand(this.context.tree,i)),this._onDidCreate.fire(this),this.visible=this._isVisible(),this.height=this._getHeight(),this._isDisposed=!1}return e.prototype.getElement=function(){return this.element},e.prototype.hasChildren=function(){return this.doesHaveChildren},e.prototype.getDepth=function(){return this.depth},e.prototype.isVisible=function(){return this.visible},e.prototype.setVisible=function(e){this.visible=e},e.prototype.isExpanded=function(){return this.expanded},e.prototype._setExpanded=function(e){this.expanded=e},e.prototype.reveal=function(e){void 0===e&&(e=null);var t={item:this,relativeTop:e};this._onDidReveal.fire(t)},e.prototype.expand=function(){var e=this;return this.isExpanded()||!this.doesHaveChildren||this.lock.isLocked(this)?Promise.resolve(!1):this.lock.run(this,function(){if(e.isExpanded()||!e.doesHaveChildren)return Promise.resolve(!1);var t={item:e};return e._onExpand.fire(t),(e.needsChildrenRefresh?e.refreshChildren(!1,!0,!0):Promise.resolve(null)).then(function(){return e._setExpanded(!0),e._onDidExpand.fire(t),!0})}).then(function(t){return!e.isDisposed()&&(e.context.options.autoExpandSingleChildren&&t&&null!==e.firstChild&&e.firstChild===e.lastChild&&e.firstChild.isVisible()?e.firstChild.expand().then(function(){return!0}):t)})},e.prototype.collapse=function(e){var t=this;if(void 0===e&&(e=!1),e){var n=Promise.resolve(null);return this.forEachChild(function(e){n=n.then(function(){return e.collapse(!0)})}),n.then(function(){return t.collapse(!1)})}return!this.isExpanded()||this.lock.isLocked(this)?Promise.resolve(!1):this.lock.run(this,function(){var e={item:t};return t._onCollapse.fire(e),t._setExpanded(!1),t._onDidCollapse.fire(e),Promise.resolve(!0)})},e.prototype.addTrait=function(e){var t={item:this,trait:e};this.traits[e]=!0,this._onDidAddTrait.fire(t)},e.prototype.removeTrait=function(e){var t={item:this,trait:e};delete this.traits[e],this._onDidRemoveTrait.fire(t)},e.prototype.hasTrait=function(e){return this.traits[e]||!1},e.prototype.getAllTraits=function(){var e,t=[];for(e in this.traits)this.traits.hasOwnProperty(e)&&this.traits[e]&&t.push(e);return t},e.prototype.getHeight=function(){return this.height},e.prototype.refreshChildren=function(t,n,r){var i=this;if(void 0===n&&(n=!1),void 0===r&&(r=!1),!r&&!this.isExpanded()){var o=function(e){e.needsChildrenRefresh=!0,e.forEachChild(o)};return o(this),Promise.resolve(this)}this.needsChildrenRefresh=!1;var a=function(){var r={item:i,isNested:n};return i._onRefreshChildren.fire(r),(i.doesHaveChildren?i.context.dataSource.getChildren(i.context.tree,i.element):Promise.resolve([])).then(function(n){if(i.isDisposed()||i.registry.isDisposed())return Promise.resolve(null);if(!Array.isArray(n))return Promise.reject(new Error("Please return an array of children."));n=n?n.slice(0):[],n=i.sort(n);for(var r={};null!==i.firstChild;)r[i.firstChild.id]=i.firstChild,i.removeChild(i.firstChild);for(var o=0,a=n.length;o=0;i--)this.onInsertItem(c[i]);for(i=this.heightMap.length-1;i>=r;i--)this.onRefreshItem(this.heightMap[i]);return s},e.prototype.onInsertItem=function(e){},e.prototype.onRemoveItems=function(e){for(var t,n=null,r=null,i=0,o=0;n=e.next();){if(i=this.indexes[n],!(t=this.heightMap[i]))return void console.error("view item doesnt exist");o-=t.height,delete this.indexes[n],this.onRemoveItem(t),null===r&&(r=i)}if(0!==o&&null!==r)for(this.heightMap.splice(r,i-r+1),i=r;i=n.top+n.height))return t;if(r===t)break;r=t}return this.heightMap.length},e.prototype.indexAfter=function(e){return Math.min(this.indexAt(e)+1,this.heightMap.length)},e.prototype.itemAtIndex=function(e){return this.heightMap[e]},e.prototype.itemAfter=function(e){return this.heightMap[this.indexes[e.model.id]+1]||null},e.prototype.createViewItem=function(e){throw new Error("not implemented")},e.prototype.dispose=function(){this.heightMap=[],this.indexes={}},e}(),Y=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])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),G=function(){function e(e,t,n){this._posx=e,this._posy=t,this._target=n}return e.prototype.preventDefault=function(){},e.prototype.stopPropagation=function(){},Object.defineProperty(e.prototype,"target",{get:function(){return this._target},enumerable:!0,configurable:!0}),e}(),Z=function(e){function t(t){var n=e.call(this,t.posx,t.posy,t.target)||this;return n.originalEvent=t,n}return Y(t,e),t.prototype.preventDefault=function(){this.originalEvent.preventDefault()},t.prototype.stopPropagation=function(){this.originalEvent.stopPropagation()},t}(G),Q=function(e){function t(t,n,r){var i=e.call(this,t,n,r.target)||this;return i.originalEvent=r,i}return Y(t,e),t.prototype.preventDefault=function(){this.originalEvent.preventDefault()},t.prototype.stopPropagation=function(){this.originalEvent.stopPropagation()},t}(G),K=n(102),J=n(18),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])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var $=function(){function e(e){this.context=e,this._cache={"":[]}}return e.prototype.alloc=function(e){var t=this.cache(e).pop();if(!t){var n=document.createElement("div");n.className="content";var r=document.createElement("div");r.appendChild(n);var i=null;try{i=this.context.renderer.renderTemplate(this.context.tree,e,n)}catch(e){console.error("Tree usage error: exception while rendering template"),console.error(e)}t={element:r,templateId:e,templateData:i}}return t},e.prototype.release=function(e,t){!function(e){try{e.parentElement.removeChild(e)}catch(e){}}(t.element),this.cache(e).push(t)},e.prototype.cache=function(e){return this._cache[e]||(this._cache[e]=[])},e.prototype.garbageCollect=function(){var e=this;this._cache&&Object.keys(this._cache).forEach(function(t){e._cache[t].forEach(function(n){e.context.renderer.disposeTemplate(e.context.tree,t,n.templateData),n.element=null,n.templateData=null}),delete e._cache[t]})},e.prototype.dispose=function(){this.garbageCollect(),this._cache=null},e}(),ee=function(){function e(e,t){var n=this;this.width=0,this.unbindDragStart=I.a.None,this.context=e,this.model=t,this.id=this.model.id,this.row=null,this.top=0,this.height=t.getHeight(),this._styles={},t.getAllTraits().forEach(function(e){return n._styles[e]=!0}),t.isExpanded()&&this.addClass("expanded")}return Object.defineProperty(e.prototype,"expanded",{set:function(e){e?this.addClass("expanded"):this.removeClass("expanded")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"loading",{set:function(e){e?this.addClass("loading"):this.removeClass("loading")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"draggable",{get:function(){return this._draggable},set:function(e){this._draggable=e,this.render(!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dropTarget",{set:function(e){e?this.addClass("drop-target"):this.removeClass("drop-target")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return this.row&&this.row.element},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"templateId",{get:function(){return this._templateId||(this._templateId=this.context.renderer.getTemplateId&&this.context.renderer.getTemplateId(this.context.tree,this.model.getElement()))},enumerable:!0,configurable:!0}),e.prototype.addClass=function(e){this._styles[e]=!0,this.render(!0)},e.prototype.removeClass=function(e){delete this._styles[e],this.render(!0)},e.prototype.render=function(e){var t=this;if(void 0===e&&(e=!1),this.model&&this.element){var n=["monaco-tree-row"];n.push.apply(n,Object.keys(this._styles)),this.model.hasChildren()&&n.push("has-children"),this.element.className=n.join(" "),this.element.draggable=this.draggable,this.element.style.height=this.height+"px",this.element.setAttribute("role","treeitem");var r=this.context.accessibilityProvider,i=r.getAriaLabel(this.context.tree,this.model.getElement());if(i&&this.element.setAttribute("aria-label",i),r.getPosInSet&&r.getSetSize&&(this.element.setAttribute("aria-setsize",r.getSetSize()),this.element.setAttribute("aria-posinset",r.getPosInSet(this.context.tree,this.model.getElement()))),this.model.hasTrait("focused")){var o=R.F(this.model.id);this.element.setAttribute("aria-selected","true"),this.element.setAttribute("id",o)}else this.element.setAttribute("aria-selected","false"),this.element.removeAttribute("id");this.model.hasChildren()?this.element.setAttribute("aria-expanded",String(!!this._styles.expanded)):this.element.removeAttribute("aria-expanded"),this.element.setAttribute("aria-level",String(this.model.getDepth())),this.context.options.paddingOnRow?this.element.style.paddingLeft=this.context.options.twistiePixels+(this.model.getDepth()-1)*this.context.options.indentPixels+"px":(this.element.style.paddingLeft=(this.model.getDepth()-1)*this.context.options.indentPixels+"px",this.row.element.firstElementChild.style.paddingLeft=this.context.options.twistiePixels+"px");var s=this.context.dnd.getDragURI(this.context.tree,this.model.getElement());if(s!==this.uri&&(this.unbindDragStart&&this.unbindDragStart.dispose(),s?(this.uri=s,this.draggable=!0,this.unbindDragStart=a.h(this.element,"dragstart",function(e){t.onDragStart(e)})):this.uri=null),!e&&this.element){var u=0;if(this.context.horizontalScrolling){var c=window.getComputedStyle(this.element);u=parseFloat(c.paddingLeft)}this.context.horizontalScrolling&&(this.element.style.width="fit-content");try{this.context.renderer.renderElement(this.context.tree,this.model.getElement(),this.templateId,this.row.templateData)}catch(e){console.error("Tree usage error: exception while rendering element"),console.error(e)}this.context.horizontalScrolling&&(this.width=a.u(this.element)+u,this.element.style.width="")}}},e.prototype.insertInDOM=function(e,t){if(this.row||(this.row=this.context.cache.alloc(this.templateId),this.element[ne.BINDING]=this),!this.element.parentElement){if(null===t)e.appendChild(this.element);else try{e.insertBefore(this.element,t)}catch(t){console.warn("Failed to locate previous tree element"),e.appendChild(this.element)}this.render()}},e.prototype.removeFromDOM=function(){this.row&&(this.unbindDragStart.dispose(),this.uri=null,this.element[ne.BINDING]=null,this.context.cache.release(this.templateId,this.row),this.row=null)},e.prototype.dispose=function(){this.row=null},e}(),te=function(e){function t(t,n,r){var i=e.call(this,t,n)||this;return i.row={element:r,templateData:null,templateId:null},i}return X(t,e),t.prototype.render=function(){if(this.model&&this.element){var e=["monaco-tree-wrapper"];e.push.apply(e,Object.keys(this._styles)),this.model.hasChildren()&&e.push("has-children"),this.element.className=e.join(" ")}},t.prototype.insertInDOM=function(e,t){},t.prototype.removeFromDOM=function(){},t}(ee);var ne=function(e){function t(n,r){var i=e.call(this)||this;i.model=null,i.lastClickTimeStamp=0,i.contentWidthUpdateDelayer=new J.a(50),i.isRefreshing=!1,i.refreshingPreviousChildrenIds={},i.currentDragAndDropData=null,i.currentDropTarget=null,i.currentDropTargets=null,i.currentDropDisposable=I.a.None,i.dragAndDropScrollInterval=null,i.dragAndDropScrollTimeout=null,i.dragAndDropMouseY=null,i.onHiddenScrollTop=null,i._onDOMFocus=new M.a,i._onDOMBlur=new M.a,i._onDidScroll=new M.a,t.counter++,i.instance=t.counter;var o=void 0===n.options.horizontalScrollMode?2:n.options.horizontalScrollMode;i.horizontalScrolling=2!==o,i.context={dataSource:n.dataSource,renderer:n.renderer,controller:n.controller,dnd:n.dnd,filter:n.filter,sorter:n.sorter,tree:n.tree,accessibilityProvider:n.accessibilityProvider,options:n.options,cache:new $(n),horizontalScrolling:i.horizontalScrolling},i.modelListeners=[],i.viewListeners=[],i.items={},i.domNode=document.createElement("div"),i.domNode.className="monaco-tree no-focused-item monaco-tree-instance-"+i.instance,i.domNode.tabIndex=n.options.preventRootFocus?-1:0,i.styleElement=a.q(i.domNode),i.treeStyler=n.styler||new S(i.styleElement,"monaco-tree-instance-"+i.instance),i.domNode.setAttribute("role","tree"),i.context.options.ariaLabel&&i.domNode.setAttribute("aria-label",i.context.options.ariaLabel),i.context.options.alwaysFocused&&a.f(i.domNode,"focused"),i.context.options.paddingOnRow||a.f(i.domNode,"no-row-padding"),i.wrapper=document.createElement("div"),i.wrapper.className="monaco-tree-wrapper",i.scrollableElement=new V.b(i.wrapper,{alwaysConsumeMouseWheel:!0,horizontal:o,vertical:void 0!==n.options.verticalScrollMode?n.options.verticalScrollMode:1,useShadows:n.options.useShadows}),i.scrollableElement.onScroll(function(e){i.render(e.scrollTop,e.height,e.scrollLeft,e.width,e.scrollWidth),i._onDidScroll.fire()}),A.j?(i.wrapper.style.msTouchAction="none",i.wrapper.style.msContentZooming="none"):P.b.addTarget(i.wrapper),i.rowsContainer=document.createElement("div"),i.rowsContainer.className="monaco-tree-rows",n.options.showTwistie&&(i.rowsContainer.className+=" show-twisties");var s=a.Q(i.domNode);return i.viewListeners.push(s.onDidFocus(function(){return i.onFocus()})),i.viewListeners.push(s.onDidBlur(function(){return i.onBlur()})),i.viewListeners.push(s),i.viewListeners.push(a.h(i.domNode,"keydown",function(e){return i.onKeyDown(e)})),i.viewListeners.push(a.h(i.domNode,"keyup",function(e){return i.onKeyUp(e)})),i.viewListeners.push(a.h(i.domNode,"mousedown",function(e){return i.onMouseDown(e)})),i.viewListeners.push(a.h(i.domNode,"mouseup",function(e){return i.onMouseUp(e)})),i.viewListeners.push(a.h(i.wrapper,"auxclick",function(e){e&&1===e.button&&i.onMouseMiddleClick(e)})),i.viewListeners.push(a.h(i.wrapper,"click",function(e){return i.onClick(e)})),i.viewListeners.push(a.h(i.domNode,"contextmenu",function(e){return i.onContextMenu(e)})),i.viewListeners.push(a.h(i.wrapper,P.a.Tap,function(e){return i.onTap(e)})),i.viewListeners.push(a.h(i.wrapper,P.a.Change,function(e){return i.onTouchChange(e)})),A.j&&(i.viewListeners.push(a.h(i.wrapper,"MSPointerDown",function(e){return i.onMsPointerDown(e)})),i.viewListeners.push(a.h(i.wrapper,"MSGestureTap",function(e){return i.onMsGestureTap(e)})),i.viewListeners.push(a.j(i.wrapper,"MSGestureChange",function(e){return i.onThrottledMsGestureChange(e)},function(e,t){t.stopPropagation(),t.preventDefault();var n={translationY:t.translationY,translationX:t.translationX};return e&&(n.translationY+=e.translationY,n.translationX+=e.translationX),n}))),i.viewListeners.push(a.h(window,"dragover",function(e){return i.onDragOver(e)})),i.viewListeners.push(a.h(i.wrapper,"drop",function(e){return i.onDrop(e)})),i.viewListeners.push(a.h(window,"dragend",function(e){return i.onDragEnd(e)})),i.viewListeners.push(a.h(window,"dragleave",function(e){return i.onDragOver(e)})),i.wrapper.appendChild(i.rowsContainer),i.domNode.appendChild(i.scrollableElement.getDomNode()),r.appendChild(i.domNode),i.lastRenderTop=0,i.lastRenderHeight=0,i.didJustPressContextMenuKey=!1,i.currentDropTarget=null,i.currentDropTargets=[],i.shouldInvalidateDropReaction=!1,i.dragAndDropScrollInterval=null,i.dragAndDropScrollTimeout=null,i.onRowsChanged(),i.layout(),i.setupMSGesture(),i.applyStyles(n.options),i}return X(t,e),Object.defineProperty(t.prototype,"onDOMFocus",{get:function(){return this._onDOMFocus.event},enumerable:!0,configurable:!0}),t.prototype.applyStyles=function(e){this.treeStyler.style(e)},t.prototype.createViewItem=function(e){return new ee(this.context,e)},t.prototype.getHTMLElement=function(){return this.domNode},t.prototype.focus=function(){this.domNode.focus()},t.prototype.isFocused=function(){return document.activeElement===this.domNode},t.prototype.blur=function(){this.domNode.blur()},t.prototype.setupMSGesture=function(){var e=this;window.MSGesture&&(this.msGesture=new MSGesture,setTimeout(function(){return e.msGesture.target=e.wrapper},100))},t.prototype.isTreeVisible=function(){return null===this.onHiddenScrollTop},t.prototype.layout=function(e,t){this.isTreeVisible()&&(this.viewHeight=e||a.t(this.wrapper),this.scrollHeight=this.getContentHeight(),this.horizontalScrolling&&(this.viewWidth=t||a.u(this.wrapper)))},t.prototype.render=function(e,t,n,r,i){var o,a,s=e,u=e+t,c=this.lastRenderTop+this.lastRenderHeight;for(o=this.indexAfter(u)-1,a=this.indexAt(Math.max(c,s));o>=a;o--)this.insertItemInDOM(this.itemAtIndex(o));for(o=Math.min(this.indexAt(this.lastRenderTop),this.indexAfter(u))-1,a=this.indexAt(s);o>=a;o--)this.insertItemInDOM(this.itemAtIndex(o));for(o=this.indexAt(this.lastRenderTop),a=Math.min(this.indexAt(s),this.indexAfter(c));o1e3,c=[],l=!1;if(!u)l=(c=new j.a({getLength:function(){return i.length},getElementAtIndex:function(e){return i[e]}},{getLength:function(){return o.length},getElementAtIndex:function(e){return o[e].id}},null).ComputeDiff(!1)).some(function(e){if(e.modifiedLength>0)for(var n=e.modifiedStart,r=e.modifiedStart+e.modifiedLength;n0&&this.onRemoveItems(new H.a(i,p.originalStart,p.originalStart+p.originalLength)),p.modifiedLength>0){var f=o[p.modifiedStart-1]||n;f=f.getDepth()>0?f:null,this.onInsertItems(new H.a(o,p.modifiedStart,p.modifiedStart+p.modifiedLength),f?f.id:null)}}else(u||c.length)&&(this.onRemoveItems(new H.a(i)),this.onInsertItems(new H.a(o),n.getDepth()>0?n.id:null));(u||c.length)&&this.onRowsChanged()}},t.prototype.onItemRefresh=function(e){this.onItemsRefresh([e])},t.prototype.onItemsRefresh=function(e){var t=this;this.onRefreshItemSet(e.filter(function(e){return t.items.hasOwnProperty(e.id)})),this.onRowsChanged()},t.prototype.onItemExpanding=function(e){var t=this.items[e.item.id];t&&(t.expanded=!0)},t.prototype.onItemExpanded=function(e){var t=e.item,n=this.items[t.id];if(n){n.expanded=!0;var r=this.onInsertItems(t.getNavigator(),t.id)||0,i=this.scrollTop;n.top+n.height<=this.scrollTop&&(i+=r),this.onRowsChanged(i)}},t.prototype.onItemCollapsing=function(e){var t=e.item,n=this.items[t.id];n&&(n.expanded=!1,this.onRemoveItems(new H.e(t.getNavigator(),function(e){return e&&e.id})),this.onRowsChanged())},t.prototype.onItemReveal=function(e){var t=e.item,n=e.relativeTop,r=this.items[t.id];if(r)if(null!==n){n=(n=n<0?0:n)>1?1:n;var i=r.height-this.viewHeight;this.scrollTop=i*n+r.top}else{var o=r.top+r.height,a=this.scrollTop+this.viewHeight;r.top=a&&(this.scrollTop=o-this.viewHeight)}},t.prototype.onItemAddTrait=function(e){var t=e.item,n=e.trait,r=this.items[t.id];r&&r.addClass(n),"highlighted"===n&&(a.f(this.domNode,n),r&&(this.highlightedItemWasDraggable=!!r.draggable,r.draggable&&(r.draggable=!1)))},t.prototype.onItemRemoveTrait=function(e){var t=e.item,n=e.trait,r=this.items[t.id];r&&r.removeClass(n),"highlighted"===n&&(a.G(this.domNode,n),this.highlightedItemWasDraggable&&(r.draggable=!0),this.highlightedItemWasDraggable=!1)},t.prototype.onModelFocusChange=function(){var e=this.model&&this.model.getFocus();a.P(this.domNode,"no-focused-item",!e),e?this.domNode.setAttribute("aria-activedescendant",R.F(this.context.dataSource.getId(this.context.tree,e))):this.domNode.removeAttribute("aria-activedescendant")},t.prototype.onInsertItem=function(e){var t=this;e.onDragStart=function(n){t.onDragStart(e,n)},e.needsRender=!0,this.refreshViewItem(e),this.items[e.id]=e},t.prototype.onRefreshItem=function(e,t){void 0===t&&(t=!1),e.needsRender=e.needsRender||t,this.refreshViewItem(e)},t.prototype.onRemoveItem=function(e){this.removeItemFromDOM(e),e.dispose(),delete this.items[e.id]},t.prototype.refreshViewItem=function(e){e.render(),this.shouldBeRendered(e)?this.insertItemInDOM(e):this.removeItemFromDOM(e)},t.prototype.onClick=function(e){if(!this.lastPointerType||"mouse"===this.lastPointerType){var t=new z.b(e),n=this.getItemAround(t.target);n&&(A.j&&Date.now()-this.lastClickTimeStamp<300&&(t.detail=2),this.lastClickTimeStamp=Date.now(),this.context.controller.onClick(this.context.tree,n.model.getElement(),t))}},t.prototype.onMouseMiddleClick=function(e){if(this.context.controller.onMouseMiddleClick){var t=new z.b(e),n=this.getItemAround(t.target);n&&this.context.controller.onMouseMiddleClick(this.context.tree,n.model.getElement(),t)}},t.prototype.onMouseDown=function(e){if(this.didJustPressContextMenuKey=!1,this.context.controller.onMouseDown&&(!this.lastPointerType||"mouse"===this.lastPointerType)){var t=new z.b(e);if(!(t.ctrlKey&&u.e&&u.d)){var n=this.getItemAround(t.target);n&&this.context.controller.onMouseDown(this.context.tree,n.model.getElement(),t)}}},t.prototype.onMouseUp=function(e){if(this.context.controller.onMouseUp&&(!this.lastPointerType||"mouse"===this.lastPointerType)){var t=new z.b(e);if(!(t.ctrlKey&&u.e&&u.d)){var n=this.getItemAround(t.target);n&&this.context.controller.onMouseUp(this.context.tree,n.model.getElement(),t)}}},t.prototype.onTap=function(e){var t=this.getItemAround(e.initialTarget);t&&this.context.controller.onTap(this.context.tree,t.model.getElement(),e)},t.prototype.onTouchChange=function(e){e.preventDefault(),e.stopPropagation(),this.scrollTop-=e.translationY},t.prototype.onContextMenu=function(e){var t,n;if(e instanceof KeyboardEvent||this.didJustPressContextMenuKey){this.didJustPressContextMenuKey=!1;var r=new F.a(e),i=void 0;if(n=this.model.getFocus()){var o=this.context.dataSource.getId(this.context.tree,n),s=this.items[o];i=a.v(s.element)}else n=this.model.getInput(),i=a.v(this.inputItem.element);t=new Q(i.left+i.width,i.top,r)}else{var u=new z.b(e),c=this.getItemAround(u.target);if(!c)return;n=c.model.getElement(),t=new Z(u)}this.context.controller.onContextMenu(this.context.tree,n,t)},t.prototype.onKeyDown=function(e){var t=new F.a(e);this.didJustPressContextMenuKey=58===t.keyCode||t.shiftKey&&68===t.keyCode,t.target&&t.target.tagName&&"input"===t.target.tagName.toLowerCase()||(this.didJustPressContextMenuKey&&(t.preventDefault(),t.stopPropagation()),this.context.controller.onKeyDown(this.context.tree,t))},t.prototype.onKeyUp=function(e){this.didJustPressContextMenuKey&&this.onContextMenu(e),this.didJustPressContextMenuKey=!1,this.context.controller.onKeyUp(this.context.tree,new F.a(e))},t.prototype.onDragStart=function(e,t){if(!this.model.getHighlight()){var n,r=e.model.getElement(),i=this.model.getSelection();if(n=i.indexOf(r)>-1?i:[r],t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setData(K.a.RESOURCES,JSON.stringify([e.uri])),t.dataTransfer.setDragImage){var o=void 0;o=this.context.dnd.getDragLabel?this.context.dnd.getDragLabel(this.context.tree,n):String(n.length);var a=document.createElement("div");a.className="monaco-tree-drag-image",a.textContent=o,document.body.appendChild(a),t.dataTransfer.setDragImage(a,-10,-10),setTimeout(function(){return document.body.removeChild(a)},0)}this.currentDragAndDropData=new B(n),K.c.CurrentDragAndDropData=new U(n),this.context.dnd.onDragStart(this.context.tree,this.currentDragAndDropData,new z.a(t))}},t.prototype.setupDragAndDropScrollInterval=function(){var e=this,t=a.x(this.wrapper).top;this.dragAndDropScrollInterval||(this.dragAndDropScrollInterval=window.setInterval(function(){if(null!==e.dragAndDropMouseY){var n=e.dragAndDropMouseY-t,r=0,i=e.viewHeight-35;n<35?r=Math.max(-14,.2*(n-35)):n>i&&(r=Math.min(14,.2*(n-i))),e.scrollTop+=r}},10),this.cancelDragAndDropScrollTimeout(),this.dragAndDropScrollTimeout=window.setTimeout(function(){e.cancelDragAndDropScrollInterval(),e.dragAndDropScrollTimeout=null},1e3))},t.prototype.cancelDragAndDropScrollInterval=function(){this.dragAndDropScrollInterval&&(window.clearInterval(this.dragAndDropScrollInterval),this.dragAndDropScrollInterval=null),this.cancelDragAndDropScrollTimeout()},t.prototype.cancelDragAndDropScrollTimeout=function(){this.dragAndDropScrollTimeout&&(window.clearTimeout(this.dragAndDropScrollTimeout),this.dragAndDropScrollTimeout=null)},t.prototype.onDragOver=function(e){var t=this;e.preventDefault();var n,r=new z.a(e),i=this.getItemAround(r.target);if(!i||0===r.posx&&0===r.posy&&r.browserEvent.type===a.d.DRAG_LEAVE)return this.currentDropTarget&&(this.currentDropTargets.forEach(function(e){return e.dropTarget=!1}),this.currentDropTargets=[],this.currentDropDisposable.dispose()),this.cancelDragAndDropScrollInterval(),this.currentDropTarget=null,this.currentDropElement=null,this.dragAndDropMouseY=null,!1;if(this.setupDragAndDropScrollInterval(),this.dragAndDropMouseY=r.posy,!this.currentDragAndDropData)if(K.c.CurrentDragAndDropData)this.currentDragAndDropData=K.c.CurrentDragAndDropData;else{if(!r.dataTransfer.types)return!1;this.currentDragAndDropData=new W}this.currentDragAndDropData.update(r.browserEvent.dataTransfer);var o,s=i.model;do{if(n=s?s.getElement():this.model.getInput(),!(o=this.context.dnd.onDragOver(this.context.tree,this.currentDragAndDropData,n,r))||1!==o.bubble)break;s=s&&s.parent}while(s);if(!s)return this.currentDropElement=null,!1;var u=o&&o.accept;u?(this.currentDropElement=s.getElement(),r.preventDefault(),r.dataTransfer.dropEffect=0===o.effect?"copy":"move"):this.currentDropElement=null;var c,l,d=s.id===this.inputItem.id?this.inputItem:this.items[s.id];if((this.shouldInvalidateDropReaction||this.currentDropTarget!==d||(c=this.currentDropElementReaction,l=o,!(!c&&!l||c&&l&&c.accept===l.accept&&c.bubble===l.bubble&&c.effect===l.effect)))&&(this.shouldInvalidateDropReaction=!1,this.currentDropTarget&&(this.currentDropTargets.forEach(function(e){return e.dropTarget=!1}),this.currentDropTargets=[],this.currentDropDisposable.dispose()),this.currentDropTarget=d,this.currentDropElementReaction=o,u)){if(this.currentDropTarget&&(this.currentDropTarget.dropTarget=!0,this.currentDropTargets.push(this.currentDropTarget)),0===o.bubble)for(var h=s.getNavigator(),p=void 0;p=h.next();)(i=this.items[p.id])&&(i.dropTarget=!0,this.currentDropTargets.push(i));if(o.autoExpand){var f=Object(J.j)(500);this.currentDropDisposable=I.f(function(){return f.cancel()}),f.then(function(){return t.context.tree.expand(t.currentDropElement)}).then(function(){return t.shouldInvalidateDropReaction=!0})}}return!0},t.prototype.onDrop=function(e){if(this.currentDropElement){var t=new z.a(e);t.preventDefault(),this.currentDragAndDropData.update(t.browserEvent.dataTransfer),this.context.dnd.drop(this.context.tree,this.currentDragAndDropData,this.currentDropElement,t),this.onDragEnd(e)}this.cancelDragAndDropScrollInterval()},t.prototype.onDragEnd=function(e){this.currentDropTarget&&(this.currentDropTargets.forEach(function(e){return e.dropTarget=!1}),this.currentDropTargets=[]),this.currentDropDisposable.dispose(),this.cancelDragAndDropScrollInterval(),this.currentDragAndDropData=null,K.c.CurrentDragAndDropData=void 0,this.currentDropElement=null,this.currentDropTarget=null,this.dragAndDropMouseY=null},t.prototype.onFocus=function(){this.context.options.alwaysFocused||a.f(this.domNode,"focused"),this._onDOMFocus.fire()},t.prototype.onBlur=function(){this.context.options.alwaysFocused||a.G(this.domNode,"focused"),this.domNode.removeAttribute("aria-activedescendant"),this._onDOMBlur.fire()},t.prototype.onMsPointerDown=function(e){if(this.msGesture){var t=e.pointerType;t!==(e.MSPOINTER_TYPE_MOUSE||"mouse")?t===(e.MSPOINTER_TYPE_TOUCH||"touch")&&(this.lastPointerType="touch",e.stopPropagation(),e.preventDefault(),this.msGesture.addPointer(e.pointerId)):this.lastPointerType="mouse"}},t.prototype.onThrottledMsGestureChange=function(e){this.scrollTop-=e.translationY},t.prototype.onMsGestureTap=function(e){e.initialTarget=document.elementFromPoint(e.clientX,e.clientY),this.onTap(e)},t.prototype.insertItemInDOM=function(e){var t=null,n=this.itemAfter(e);n&&n.element&&(t=n.element),e.insertInDOM(this.rowsContainer,t)},t.prototype.removeItemFromDOM=function(e){e&&e.removeFromDOM()},t.prototype.shouldBeRendered=function(e){return e.topthis.lastRenderTop},t.prototype.getItemAround=function(e){var n=this.inputItem,r=e;do{if(r[t.BINDING]&&(n=r[t.BINDING]),r===this.wrapper||r===this.domNode)return n;if(r===this.scrollableElement.getDomNode()||r===document.body)return}while(r=r.parentElement)},t.prototype.releaseModel=function(){this.model&&(this.modelListeners=I.d(this.modelListeners),this.model=null)},t.prototype.dispose=function(){var t=this;this.scrollableElement.dispose(),this.releaseModel(),this.viewListeners=I.d(this.viewListeners),this._onDOMFocus.dispose(),this._onDOMBlur.dispose(),this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.items&&Object.keys(this.items).forEach(function(e){return t.items[e].removeFromDOM()}),this.context.cache&&this.context.cache.dispose(),e.prototype.dispose.call(this)},t.BINDING="monaco-tree-row",t.LOADING_DECORATION_DELAY=800,t.counter=0,t}(q),re=n(15),ie=n(36),oe=function(){return function(e,t,n){if(void 0===n&&(n={}),this.tree=e,this.configuration=t,this.options=n,!t.dataSource)throw new Error("You must provide a Data Source to the tree.");this.dataSource=t.dataSource,this.renderer=t.renderer,this.controller=t.controller||new v({clickBehavior:1,keyboardSupport:"boolean"!=typeof n.keyboardSupport||n.keyboardSupport}),this.dnd=t.dnd||new b,this.filter=t.filter||new _,this.sorter=t.sorter,this.accessibilityProvider=t.accessibilityProvider||new w,this.styler=t.styler}}(),ae={listFocusBackground:re.a.fromHex("#073655"),listActiveSelectionBackground:re.a.fromHex("#0E639C"),listActiveSelectionForeground:re.a.fromHex("#FFFFFF"),listFocusAndSelectionBackground:re.a.fromHex("#094771"),listFocusAndSelectionForeground:re.a.fromHex("#FFFFFF"),listInactiveSelectionBackground:re.a.fromHex("#3F3F46"),listHoverBackground:re.a.fromHex("#2A2D2E"),listDropBackground:re.a.fromHex("#383B3D")},se=function(){function e(e,t,n){void 0===n&&(n={}),this._onDidChangeFocus=new M.f,this.onDidChangeFocus=this._onDidChangeFocus.event,this._onDidChangeSelection=new M.f,this.onDidChangeSelection=this._onDidChangeSelection.event,this._onHighlightChange=new M.f,this._onDidExpandItem=new M.f,this._onDidCollapseItem=new M.f,this._onDispose=new M.a,this.onDidDispose=this._onDispose.event,this.container=e,Object(ie.g)(n,ae,!1),n.twistiePixels="number"==typeof n.twistiePixels?n.twistiePixels:32,n.showTwistie=!1!==n.showTwistie,n.indentPixels="number"==typeof n.indentPixels?n.indentPixels:12,n.alwaysFocused=!0===n.alwaysFocused,n.useShadows=!1!==n.useShadows,n.paddingOnRow=!1!==n.paddingOnRow,n.showLoading=!1!==n.showLoading,this.context=new oe(this,t,n),this.model=new O(this.context),this.view=new ne(this.context,this.container),this.view.setModel(this.model),this._onDidChangeFocus.input=this.model.onDidFocus,this._onDidChangeSelection.input=this.model.onDidSelect,this._onHighlightChange.input=this.model.onDidHighlight,this._onDidExpandItem.input=this.model.onDidExpandItem,this._onDidCollapseItem.input=this.model.onDidCollapseItem}return e.prototype.style=function(e){this.view.applyStyles(e)},Object.defineProperty(e.prototype,"onDidFocus",{get:function(){return this.view&&this.view.onDOMFocus},enumerable:!0,configurable:!0}),e.prototype.getHTMLElement=function(){return this.view.getHTMLElement()},e.prototype.layout=function(e,t){this.view.layout(e,t)},e.prototype.domFocus=function(){this.view.focus()},e.prototype.isDOMFocused=function(){return this.view.isFocused()},e.prototype.domBlur=function(){this.view.blur()},e.prototype.setInput=function(e){return this.model.setInput(e)},e.prototype.getInput=function(){return this.model.getInput()},e.prototype.expand=function(e){return this.model.expand(e)},e.prototype.collapse=function(e,t){return void 0===t&&(t=!1),this.model.collapse(e,t)},e.prototype.toggleExpansion=function(e,t){return void 0===t&&(t=!1),this.model.toggleExpansion(e,t)},e.prototype.isExpanded=function(e){return this.model.isExpanded(e)},e.prototype.reveal=function(e,t){return void 0===t&&(t=null),this.model.reveal(e,t)},e.prototype.getHighlight=function(){return this.model.getHighlight()},e.prototype.clearHighlight=function(e){this.model.setHighlight(null,e)},e.prototype.setSelection=function(e,t){this.model.setSelection(e,t)},e.prototype.getSelection=function(){return this.model.getSelection()},e.prototype.clearSelection=function(e){this.model.setSelection([],e)},e.prototype.setFocus=function(e,t){this.model.setFocus(e,t)},e.prototype.getFocus=function(){return this.model.getFocus()},e.prototype.focusNext=function(e,t){this.model.focusNext(e,t)},e.prototype.focusPrevious=function(e,t){this.model.focusPrevious(e,t)},e.prototype.focusParent=function(e){this.model.focusParent(e)},e.prototype.focusFirstChild=function(e){this.model.focusFirstChild(e)},e.prototype.focusFirst=function(e,t){this.model.focusFirst(e,t)},e.prototype.focusNth=function(e,t){this.model.focusNth(e,t)},e.prototype.focusLast=function(e,t){this.model.focusLast(e,t)},e.prototype.focusNextPage=function(e){this.view.focusNextPage(e)},e.prototype.focusPreviousPage=function(e){this.view.focusPreviousPage(e)},e.prototype.clearFocus=function(e){this.model.setFocus(null,e)},e.prototype.dispose=function(){this._onDispose.fire(),null!==this.model&&(this.model.dispose(),this.model=null),null!==this.view&&(this.view.dispose(),this.view=null),this._onDidChangeFocus.dispose(),this._onDidChangeSelection.dispose(),this._onHighlightChange.dispose(),this._onDidExpandItem.dispose(),this._onDidCollapseItem.dispose(),this._onDispose.dispose()},e}(),ue=(n(1277),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])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),ce={progressBarBackground:re.a.fromHex("#0E70C0")},le=function(e){function t(t,n){var r=e.call(this)||this;return r.options=n||Object.create(null),Object(ie.g)(r.options,ce,!1),r.workedVal=0,r.progressBarBackground=r.options.progressBarBackground,r._register(r.showDelayedScheduler=new J.d(function(){return Object(a.O)(r.element)},0)),r.create(t),r}return ue(t,e),t.prototype.create=function(e){this.element=document.createElement("div"),Object(a.f)(this.element,"monaco-progress-container"),e.appendChild(this.element),this.bit=document.createElement("div"),Object(a.f)(this.bit,"progress-bit"),this.element.appendChild(this.bit),this.applyStyles()},t.prototype.off=function(){this.bit.style.width="inherit",this.bit.style.opacity="1",Object(a.H)(this.element,"active","infinite","discrete"),this.workedVal=0,this.totalWork=void 0},t.prototype.stop=function(){return this.doDone(!1)},t.prototype.doDone=function(e){var t=this;return Object(a.f)(this.element,"done"),Object(a.A)(this.element,"infinite")?(this.bit.style.opacity="0",e?setTimeout(function(){return t.off()},200):this.off()):(this.bit.style.width="inherit",e?setTimeout(function(){return t.off()},200):this.off()),this},t.prototype.hide=function(){Object(a.B)(this.element),this.showDelayedScheduler.cancel()},t.prototype.style=function(e){this.progressBarBackground=e.progressBarBackground,this.applyStyles()},t.prototype.applyStyles=function(){if(this.bit){var e=this.progressBarBackground?this.progressBarBackground.toString():null;this.bit.style.backgroundColor=e}},t}(I.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])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),he=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return de(t,e),t.prototype.onContextMenu=function(t,n,r){return u.d?this.onLeftClick(t,n,r):e.prototype.onContextMenu.call(this,t,n,r)},t}(v),pe={background:re.a.fromHex("#1E1E1E"),foreground:re.a.fromHex("#CCCCCC"),pickerGroupForeground:re.a.fromHex("#0097FB"),pickerGroupBorder:re.a.fromHex("#3F3F46"),widgetShadow:re.a.fromHex("#000000"),progressBarBackground:re.a.fromHex("#0E70C0")},fe=s.a("quickOpenAriaLabel","Quick picker. Type to narrow down results."),ge=function(e){function t(t,n,r){var i=e.call(this)||this;return i.isDisposed=!1,i.container=t,i.callbacks=n,i.options=r,i.styles=r||Object.create(null),Object(ie.g)(i.styles,pe,!1),i.model=null,i}return de(t,e),t.prototype.getModel=function(){return this.model},t.prototype.create=function(){var e=this;this.element=document.createElement("div"),a.f(this.element,"monaco-quick-open-widget"),this.container.appendChild(this.element),this._register(a.h(this.element,a.d.CONTEXT_MENU,function(e){return a.c.stop(e,!0)})),this._register(a.h(this.element,a.d.FOCUS,function(t){return e.gainingFocus()},!0)),this._register(a.h(this.element,a.d.BLUR,function(t){return e.loosingFocus(t)},!0)),this._register(a.h(this.element,a.d.KEY_DOWN,function(t){var n=new F.a(t);if(9===n.keyCode)a.c.stop(t,!0),e.hide(2);else if(2===n.keyCode&&!n.altKey&&!n.ctrlKey&&!n.metaKey){var r=t.currentTarget.querySelectorAll("input, .monaco-tree, .monaco-tree-row.focused .action-label.icon");n.shiftKey&&n.target===r[0]?(a.c.stop(t,!0),r[r.length-1].focus()):n.shiftKey||n.target!==r[r.length-1]||(a.c.stop(t,!0),r[0].focus())}})),this.progressBar=this._register(new le(this.element,{progressBarBackground:this.styles.progressBarBackground})),this.progressBar.hide(),this.inputContainer=document.createElement("div"),a.f(this.inputContainer,"quick-open-input"),this.element.appendChild(this.inputContainer),this.inputBox=this._register(new f.b(this.inputContainer,void 0,{placeholder:this.options.inputPlaceHolder||"",ariaLabel:fe,inputBackground:this.styles.inputBackground,inputForeground:this.styles.inputForeground,inputBorder:this.styles.inputBorder,inputValidationInfoBackground:this.styles.inputValidationInfoBackground,inputValidationInfoForeground:this.styles.inputValidationInfoForeground,inputValidationInfoBorder:this.styles.inputValidationInfoBorder,inputValidationWarningBackground:this.styles.inputValidationWarningBackground,inputValidationWarningForeground:this.styles.inputValidationWarningForeground,inputValidationWarningBorder:this.styles.inputValidationWarningBorder,inputValidationErrorBackground:this.styles.inputValidationErrorBackground,inputValidationErrorForeground:this.styles.inputValidationErrorForeground,inputValidationErrorBorder:this.styles.inputValidationErrorBorder})),this.inputElement=this.inputBox.inputElement,this.inputElement.setAttribute("role","combobox"),this.inputElement.setAttribute("aria-haspopup","false"),this.inputElement.setAttribute("aria-autocomplete","list"),this._register(a.h(this.inputBox.inputElement,a.d.INPUT,function(t){return e.onType()})),this._register(a.h(this.inputBox.inputElement,a.d.KEY_DOWN,function(t){var n=new F.a(t),r=e.shouldOpenInBackground(n);if(2!==n.keyCode)if(18===n.keyCode||16===n.keyCode||12===n.keyCode||11===n.keyCode)a.c.stop(t,!0),e.navigateInTree(n.keyCode,n.shiftKey),e.inputBox.inputElement.selectionStart===e.inputBox.inputElement.selectionEnd&&(e.inputBox.inputElement.selectionStart=e.inputBox.value.length);else if(3===n.keyCode||r){a.c.stop(t,!0);var i=e.tree.getFocus();i&&e.elementSelected(i,t,r?2:1)}})),this.resultCount=document.createElement("div"),a.f(this.resultCount,"quick-open-result-count"),this.resultCount.setAttribute("aria-live","polite"),this.resultCount.setAttribute("aria-atomic","true"),this.element.appendChild(this.resultCount),this.treeContainer=document.createElement("div"),a.f(this.treeContainer,"quick-open-tree"),this.element.appendChild(this.treeContainer);var t=this.options.treeCreator||function(e,t,n){return new se(e,t,n)};return this.tree=this._register(t(this.treeContainer,{dataSource:new l(this),controller:new he({clickBehavior:1,keyboardSupport:this.options.keyboardSupport}),renderer:this.renderer=new p(this,this.styles),filter:new h(this),accessibilityProvider:new d(this)},{twistiePixels:11,indentPixels:0,alwaysFocused:!0,verticalScrollMode:3,horizontalScrollMode:2,ariaLabel:s.a("treeAriaLabel","Quick Picker"),keyboardSupport:this.options.keyboardSupport,preventRootFocus:!1})),this.treeElement=this.tree.getHTMLElement(),this._register(this.tree.onDidChangeFocus(function(t){e.elementFocused(t.focus,t)})),this._register(this.tree.onDidChangeSelection(function(t){if(t.selection&&t.selection.length>0){var n=t.payload&&t.payload.originalEvent instanceof z.b?t.payload.originalEvent:void 0,r=!!n&&e.shouldOpenInBackground(n);e.elementSelected(t.selection[0],t,r?2:1)}})),this._register(a.h(this.treeContainer,a.d.KEY_DOWN,function(t){var n=new F.a(t);e.quickNavigateConfiguration&&(18!==n.keyCode&&16!==n.keyCode&&12!==n.keyCode&&11!==n.keyCode||(a.c.stop(t,!0),e.navigateInTree(n.keyCode)))})),this._register(a.h(this.treeContainer,a.d.KEY_UP,function(t){var n=new F.a(t),r=n.keyCode;if(e.quickNavigateConfiguration){var i=e.quickNavigateConfiguration.keybindings;if(3===r||i.some(function(e){var t=e.getParts(),i=t[0];return!t[1]&&(i.shiftKey&&4===r?!(n.ctrlKey||n.altKey||n.metaKey):!(!i.altKey||6!==r)||(!(!i.ctrlKey||5!==r)||!(!i.metaKey||57!==r)))})){var o=e.tree.getFocus();o&&e.elementSelected(o,t)}}})),this.layoutDimensions&&this.layout(this.layoutDimensions),this.applyStyles(),this._register(a.h(this.treeContainer,a.d.KEY_DOWN,function(t){var n=new F.a(t);e.quickNavigateConfiguration||18!==n.keyCode&&16!==n.keyCode&&12!==n.keyCode&&11!==n.keyCode||(a.c.stop(t,!0),e.navigateInTree(n.keyCode,n.shiftKey),e.treeElement.focus())})),this.element},t.prototype.style=function(e){this.styles=e,this.applyStyles()},t.prototype.applyStyles=function(){if(this.element){var e=this.styles.foreground?this.styles.foreground.toString():null,t=this.styles.background?this.styles.background.toString():null,n=this.styles.borderColor?this.styles.borderColor.toString():null,r=this.styles.widgetShadow?this.styles.widgetShadow.toString():null;this.element.style.color=e,this.element.style.backgroundColor=t,this.element.style.borderColor=n,this.element.style.borderWidth=n?"1px":null,this.element.style.borderStyle=n?"solid":null,this.element.style.boxShadow=r?"0 5px 8px "+r:null}this.progressBar&&this.progressBar.style({progressBarBackground:this.styles.progressBarBackground}),this.inputBox&&this.inputBox.style({inputBackground:this.styles.inputBackground,inputForeground:this.styles.inputForeground,inputBorder:this.styles.inputBorder,inputValidationInfoBackground:this.styles.inputValidationInfoBackground,inputValidationInfoForeground:this.styles.inputValidationInfoForeground,inputValidationInfoBorder:this.styles.inputValidationInfoBorder,inputValidationWarningBackground:this.styles.inputValidationWarningBackground,inputValidationWarningForeground:this.styles.inputValidationWarningForeground,inputValidationWarningBorder:this.styles.inputValidationWarningBorder,inputValidationErrorBackground:this.styles.inputValidationErrorBackground,inputValidationErrorForeground:this.styles.inputValidationErrorForeground,inputValidationErrorBorder:this.styles.inputValidationErrorBorder}),this.tree&&!this.options.treeCreator&&this.tree.style(this.styles),this.renderer&&this.renderer.updateStyles(this.styles)},t.prototype.shouldOpenInBackground=function(e){if(e instanceof F.a){if(17!==e.keyCode)return!1;if(e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)return!1;var t=this.inputBox.inputElement;return t.selectionEnd===this.inputBox.value.length&&t.selectionStart===t.selectionEnd}return e.middleButton},t.prototype.onType=function(){var e=this.inputBox.value;this.helpText&&(e?a.B(this.helpText):a.O(this.helpText)),this.callbacks.onType(e)},t.prototype.navigateInTree=function(e,t){var n=this.tree.getInput(),r=n?n.entries:[],i=this.tree.getFocus();switch(e){case 18:this.tree.focusNext();break;case 16:this.tree.focusPrevious();break;case 12:this.tree.focusNextPage();break;case 11:this.tree.focusPreviousPage();break;case 2:t?this.tree.focusPrevious():this.tree.focusNext()}var o=this.tree.getFocus();r.length>1&&i===o&&(16===e||2===e&&t?this.tree.focusLast():(18===e||2===e&&!t)&&this.tree.focusFirst()),(o=this.tree.getFocus())&&this.tree.reveal(o)},t.prototype.elementFocused=function(e,t){if(e&&this.isVisible()){var n=this.treeElement.getAttribute("aria-activedescendant");n?this.inputElement.setAttribute("aria-activedescendant",n):this.inputElement.removeAttribute("aria-activedescendant");var r={event:t,keymods:this.extractKeyMods(t),quickNavigateConfiguration:this.quickNavigateConfiguration};this.model.runner.run(e,0,r)}},t.prototype.elementSelected=function(e,t,n){var r=!0;if(this.isVisible()){var i=n||1,o={event:t,keymods:this.extractKeyMods(t),quickNavigateConfiguration:this.quickNavigateConfiguration};r=this.model.runner.run(e,i,o)}r&&this.hide(0)},t.prototype.extractKeyMods=function(e){return{ctrlCmd:e&&(e.ctrlKey||e.metaKey||e.payload&&e.payload.originalEvent&&(e.payload.originalEvent.ctrlKey||e.payload.originalEvent.metaKey)),alt:e&&(e.altKey||e.payload&&e.payload.originalEvent&&e.payload.originalEvent.altKey)}},t.prototype.show=function(e,t){this.visible=!0,this.isLoosingFocus=!1,this.quickNavigateConfiguration=t?t.quickNavigateConfiguration:void 0,this.quickNavigateConfiguration?(a.B(this.inputContainer),a.O(this.element),this.tree.domFocus()):(a.O(this.inputContainer),a.O(this.element),this.inputBox.focus()),this.helpText&&(this.quickNavigateConfiguration||c.h(e)?a.B(this.helpText):a.O(this.helpText)),c.h(e)?this.doShowWithPrefix(e):(t&&t.value&&this.restoreLastInput(t.value),this.doShowWithInput(e,t&&t.autoFocus?t.autoFocus:{})),t&&t.inputSelection&&!this.quickNavigateConfiguration&&this.inputBox.select(t.inputSelection),this.callbacks.onShow&&this.callbacks.onShow()},t.prototype.restoreLastInput=function(e){this.inputBox.value=e,this.inputBox.select(),this.callbacks.onType(e)},t.prototype.doShowWithPrefix=function(e){this.inputBox.value=e,this.callbacks.onType(e)},t.prototype.doShowWithInput=function(e,t){this.setInput(e,t)},t.prototype.setInputAndLayout=function(e,t){var n=this;this.treeContainer.style.height=this.getHeight(e)+"px",this.tree.setInput(null).then(function(){return n.model=e,n.inputElement.setAttribute("aria-haspopup",String(e&&e.entries&&e.entries.length>0)),n.tree.setInput(e)}).then(function(){n.tree.layout();var r=e?e.entries.filter(function(t){return n.isElementVisible(e,t)}):[];n.updateResultCount(r.length),r.length&&n.autoFocus(e,r,t)})},t.prototype.isElementVisible=function(e,t){return!e.filter||e.filter.isVisible(t)},t.prototype.autoFocus=function(e,t,n){if(void 0===n&&(n={}),n.autoFocusPrefixMatch){for(var r=void 0,i=void 0,o=n.autoFocusPrefixMatch,a=o.toLowerCase(),s=0,u=t;sn.autoFocusIndex&&(this.tree.focusNth(n.autoFocusIndex),this.tree.reveal(this.tree.getFocus())):n.autoFocusSecondEntry?t.length>1&&this.tree.focusNth(1):n.autoFocusLastEntry&&t.length>1&&this.tree.focusLast()},t.prototype.getHeight=function(e){var n=this,r=e.renderer;if(!e){var i=r.getHeight(null);return this.options.minItemsToShow?this.options.minItemsToShow*i:0}var o,a=0;this.layoutDimensions&&this.layoutDimensions.height&&(o=.4*(this.layoutDimensions.height-50)),(!o||o>t.MAX_ITEMS_HEIGHT)&&(o=t.MAX_ITEMS_HEIGHT);for(var s=e.entries.filter(function(t){return n.isElementVisible(e,t)}),u=this.options.maxItemsToShow||s.length,c=0;c=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},Se=function(e,t){return function(n,r){t(n,r,e)}},Ce=function(){function e(e,t){this.themeService=t,this.editor=e}return e.get=function(t){return t.getContribution(e.ID)},e.prototype.getId=function(){return e.ID},e.prototype.dispose=function(){this.widget&&(this.widget.destroy(),this.widget=null)},e.prototype.run=function(e){var t=this;this.widget&&(this.widget.destroy(),this.widget=null);var n=function(e){t.clearDecorations(),e&&t.lastKnownEditorSelection&&(t.editor.setSelection(t.lastKnownEditorSelection),t.editor.revealRangeInCenterIfOutsideViewport(t.lastKnownEditorSelection,0)),t.lastKnownEditorSelection=null,document.activeElement!==document.body&&e||t.editor.focus()};this.widget=new ve(this.editor,function(){return n(!1)},function(){return n(!0)},function(n){t.widget.setInput(e.getModel(n),e.getAutoFocus(n))},{inputAriaLabel:e.inputAriaLabel},this.themeService),this.lastKnownEditorSelection||(this.lastKnownEditorSelection=this.editor.getSelection()),this.widget.show("")},e.prototype.decorateLine=function(t,n){var r=[];this.rangeHighlightDecorationId&&(r.push(this.rangeHighlightDecorationId),this.rangeHighlightDecorationId=null);var i=[{range:t,options:e._RANGE_HIGHLIGHT_DECORATION}],o=n.deltaDecorations(r,i);this.rangeHighlightDecorationId=o[0]},e.prototype.clearDecorations=function(){this.rangeHighlightDecorationId&&(this.editor.deltaDecorations([this.rangeHighlightDecorationId],[]),this.rangeHighlightDecorationId=null)},e.ID="editor.controller.quickOpenController",e._RANGE_HIGHLIGHT_DECORATION=o.a.register({className:"rangeHighlight",isWholeLine:!0}),e=we([Se(1,be.c)],e)}(),Ie=function(e){function t(t,n){var r=e.call(this,n)||this;return r._inputAriaLabel=t,r}return _e(t,e),t.prototype.getController=function(e){return Ce.get(e)},t.prototype._show=function(e,t){e.run({inputAriaLabel:this._inputAriaLabel,getModel:function(e){return t.getModel(e)},getAutoFocus:function(e){return t.getAutoFocus(e)}})},t}(i.b);Object(i.h)(Ce)},function(e,t,n){"use strict";n(1201);var r=n(1),i=n(28),o=n(2),a=n(195),s=n(70),u=n(105),c=n(7),l=n(80),d=n(15),h=n(36),p=n(61),f=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(),this._navigator=new p.b(this._elements,0,this._elements.length,this._elements.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;t0||this.m_modifiedCount>0)&&this.m_changes.push(new r(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=Number.MAX_VALUE,this.m_modifiedStart=Number.MAX_VALUE},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}(),c=function(){function e(e,t,n){void 0===n&&(n=null),this.OriginalSequence=e,this.ModifiedSequence=t,this.ContinueProcessingPredicate=n,this.m_forwardHistory=[],this.m_reverseHistory=[]}return e.prototype.ElementsAreEqual=function(e,t){return this.OriginalSequence.getElementAtIndex(e)===this.ModifiedSequence.getElementAtIndex(t)},e.prototype.OriginalElementsAreEqual=function(e,t){return this.OriginalSequence.getElementAtIndex(e)===this.OriginalSequence.getElementAtIndex(t)},e.prototype.ModifiedElementsAreEqual=function(e,t){return this.ModifiedSequence.getElementAtIndex(e)===this.ModifiedSequence.getElementAtIndex(t)},e.prototype.ComputeDiff=function(e){return this._ComputeDiff(0,this.OriginalSequence.getLength()-1,0,this.ModifiedSequence.getLength()-1,e)},e.prototype._ComputeDiff=function(e,t,n,r,i){var o=this.ComputeDiffRecursive(e,t,n,r,[!1]);return i?this.PrettifyChanges(o):o},e.prototype.ComputeDiffRecursive=function(e,t,n,i,o){for(o[0]=!1;e<=t&&n<=i&&this.ElementsAreEqual(e,n);)e++,n++;for(;t>=e&&i>=n&&this.ElementsAreEqual(t,i);)t--,i--;if(e>t||n>i){var s=void 0;return n<=i?(a.Assert(e===t+1,"originalStart should only be one more than originalEnd"),s=[new r(e,0,n,i-n+1)]):e<=t?(a.Assert(n===i+1,"modifiedStart should only be one more than modifiedEnd"),s=[new r(e,t-e+1,n,0)]):(a.Assert(e===t+1,"originalStart should only be one more than originalEnd"),a.Assert(n===i+1,"modifiedStart should only be one more than modifiedEnd"),s=[]),s}var u=[0],c=[0],l=this.ComputeRecursionPoint(e,t,n,i,u,c,o),d=u[0],h=c[0];if(null!==l)return l;if(!o[0]){var p=this.ComputeDiffRecursive(e,d,n,h,o),f=[];return f=o[0]?[new r(d+1,t-(d+1)+1,h+1,i-(h+1)+1)]:this.ComputeDiffRecursive(d+1,t,h+1,i,o),this.ConcatenateChanges(p,f)}return[new r(e,t-e+1,n,i-n+1)]},e.prototype.WALKTRACE=function(e,t,n,i,o,a,s,c,l,d,h,p,f,g,m,y,v,b){var _,w,S=null,C=new u,I=t,M=n,x=f[0]-y[0]-i,N=Number.MIN_VALUE,E=this.m_forwardHistory.length-1;do{(w=x+e)===I||w=0&&(e=(l=this.m_forwardHistory[E])[0],I=1,M=l.length-1)}while(--E>=-1);if(_=C.getReverseChanges(),b[0]){var L=f[0]+1,T=y[0]+1;if(null!==_&&_.length>0){var k=_[_.length-1];L=Math.max(L,k.getOriginalEnd()),T=Math.max(T,k.getModifiedEnd())}S=[new r(L,p-L+1,T,m-T+1)]}else{C=new u,I=a,M=s,x=f[0]-y[0]-c,N=Number.MAX_VALUE,E=v?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{(w=x+o)===I||w=d[w+1]?(g=(h=d[w+1]-1)-x-c,h>N&&C.MarkNextChange(),N=h+1,C.AddOriginalElement(h+1,g+1),x=w+1-o):(g=(h=d[w-1])-x-c,h>N&&C.MarkNextChange(),N=h,C.AddModifiedElement(h+1,g+1),x=w-1-o),E>=0&&(o=(d=this.m_reverseHistory[E])[0],I=1,M=d.length-1)}while(--E>=-1);S=C.getChanges()}return this.ConcatenateChanges(_,S)},e.prototype.ComputeRecursionPoint=function(e,t,n,i,o,a,u){var c,l=0,d=0,h=0,p=0,f=0,g=0;e--,n--,o[0]=0,a[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];var m,y,v=t-e+(i-n),b=v+1,_=new Array(b),w=new Array(b),S=i-n,C=t-e,I=e-n,M=t-i,x=(C-S)%2==0;for(_[S]=e,w[C]=t,u[0]=!1,c=1;c<=v/2+1;c++){var N=0,E=0;for(h=this.ClipDiagonalBound(S-c,c,S,b),p=this.ClipDiagonalBound(S+c,c,S,b),m=h;m<=p;m+=2){for(d=(l=m===h||mN+E&&(N=l,E=d),!x&&Math.abs(m-C)<=c-1&&l>=w[m])return o[0]=l,a[0]=d,y<=w[m]&&c<=1448?this.WALKTRACE(S,h,p,I,C,f,g,M,_,w,l,t,o,d,i,a,x,u):null}var L=(N-e+(E-n)-c)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(N,this.OriginalSequence,L))return u[0]=!0,o[0]=N,a[0]=E,L>0&&c<=1448?this.WALKTRACE(S,h,p,I,C,f,g,M,_,w,l,t,o,d,i,a,x,u):[new r(++e,t-e+1,++n,i-n+1)];for(f=this.ClipDiagonalBound(C-c,c,C,b),g=this.ClipDiagonalBound(C+c,c,C,b),m=f;m<=g;m+=2){for(d=(l=m===f||m=w[m+1]?w[m+1]-1:w[m-1])-(m-C)-M,y=l;l>e&&d>n&&this.ElementsAreEqual(l,d);)l--,d--;if(w[m]=l,x&&Math.abs(m-S)<=c&&l<=_[m])return o[0]=l,a[0]=d,y>=_[m]&&c<=1448?this.WALKTRACE(S,h,p,I,C,f,g,M,_,w,l,t,o,d,i,a,x,u):null}if(c<=1447){var T=new Array(p-h+2);T[0]=S-h+1,s.Copy(_,h,T,1,p-h+1),this.m_forwardHistory.push(T),(T=new Array(g-f+2))[0]=C-f+1,s.Copy(w,f,T,1,g-f+1),this.m_reverseHistory.push(T)}}return this.WALKTRACE(S,h,p,I,C,f,g,M,_,w,l,t,o,d,i,a,x,u)},e.prototype.PrettifyChanges=function(e){for(var t=0;t0,a=n.modifiedLength>0;n.originalStart+n.originalLength=0;t--){n=e[t],r=0,i=0;if(t>0){var u=e[t-1];u.originalLength>0&&(r=u.originalStart+u.originalLength),u.modifiedLength>0&&(i=u.modifiedStart+u.modifiedLength)}o=n.originalLength>0,a=n.modifiedLength>0;for(var c=0,l=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength),d=1;;d++){var h=n.originalStart-d,p=n.modifiedStart-d;if(hl&&(l=f,c=d)}n.originalStart-=c,n.modifiedStart-=c}return e},e.prototype._OriginalIsBoundary=function(e){if(e<=0||e>=this.OriginalSequence.getLength()-1)return!0;var t=this.OriginalSequence.getElementAtIndex(e);return"string"==typeof t&&/^\s*$/.test(t)},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){if(e<=0||e>=this.ModifiedSequence.getLength()-1)return!0;var t=this.ModifiedSequence.getElementAtIndex(e);return"string"==typeof t&&/^\s*$/.test(t)},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,r){return(this._OriginalRegionIsBoundary(e,t)?1:0)+(this._ModifiedRegionIsBoundary(n,r)?1:0)},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 r=new Array(e.length+t.length-1);return s.Copy(e,0,r,0,e.length-1),r[e.length-1]=n[0],s.Copy(t,1,r,e.length,t.length-1),r}r=new Array(e.length+t.length);return s.Copy(e,0,r,0,e.length),s.Copy(t,0,r,e.length,t.length),r},e.prototype.ChangesOverlap=function(e,t,n){if(a.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),a.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){var i=e.originalStart,o=e.originalLength,s=e.modifiedStart,u=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(o=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(u=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new r(i,o,s,u),!0}return n[0]=null,!1},e.prototype.ClipDiagonalBound=function(e,t,n,r){if(e>=0&&e-1?t||"":t,this.isJsonValue?JSON.parse(t):t&&"function"==typeof t.toString?t.toString():t},this.toWireFormat=function(e){return this.isJsonValue?JSON.stringify(e):e}}function p(){s.apply(this,arguments),this.toType=i.base64.decode,this.toWireFormat=i.base64.encode}function f(){p.apply(this,arguments)}function g(){s.apply(this,arguments),this.toType=function(e){return"boolean"==typeof e?e:null==e?null:"true"===e}}s.normalizedTypes={character:"string",double:"float",long:"integer",short:"integer",biginteger:"integer",bigdecimal:"float",blob:"binary"},s.types={structure:c,list:l,map:d,boolean:g,timestamp:function(e){var t=this;if(s.apply(this,arguments),e.timestampFormat)o(this,"timestampFormat",e.timestampFormat);else if(t.isTimestampFormatSet&&this.timestampFormat)o(this,"timestampFormat",this.timestampFormat);else if("header"===this.location)o(this,"timestampFormat","rfc822");else if("querystring"===this.location)o(this,"timestampFormat","iso8601");else if(this.api)switch(this.api.protocol){case"json":case"rest-json":o(this,"timestampFormat","unixTimestamp");break;case"rest-xml":case"query":case"ec2":o(this,"timestampFormat","iso8601")}this.toType=function(e){return null==e?null:"function"==typeof e.toUTCString?e:"string"==typeof e||"number"==typeof e?i.date.parseTimestamp(e):null},this.toWireFormat=function(e){return i.date.format(e,t.timestampFormat)}},float:function(){s.apply(this,arguments),this.toType=function(e){return null==e?null:parseFloat(e)},this.toWireFormat=this.toType},integer:function(){s.apply(this,arguments),this.toType=function(e){return null==e?null:parseInt(e,10)},this.toWireFormat=this.toType},string:h,base64:f,binary:p},s.resolve=function(e,t){if(e.shape){var n=t.api.shapes[e.shape];if(!n)throw new Error("Cannot find shape reference: "+e.shape);return n}return null},s.create=function(e,t,n){if(e.isShape)return e;var r=s.resolve(e,t);if(r){var i=Object.keys(e);t.documentation||(i=i.filter(function(e){return!e.match(/documentation/)}));var o=function(){r.constructor.call(this,e,t,n)};return o.prototype=r,new o}e.type||(e.members?e.type="structure":e.member?e.type="list":e.key?e.type="map":e.type="string");var a=e.type;if(s.normalizedTypes[e.type]&&(e.type=s.normalizedTypes[e.type]),s.types[e.type])return new s.types[e.type](e,t,n);throw new Error("Unrecognized shape type: "+a)},s.shapes={StructureShape:c,ListShape:l,MapShape:d,StringShape:h,BooleanShape:g,Base64Shape:f},e.exports=s},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){var r=n(396),i=n(91);function o(e,t,n){null!=n&&i.property.apply(this,arguments)}function a(e,t){e.constructor.prototype[t]||i.memoizedProperty.apply(this,arguments)}function s(e,t,n){t=t||{},o(this,"shape",e.shape),o(this,"api",t.api,!1),o(this,"type",e.type),o(this,"enum",e.enum),o(this,"min",e.min),o(this,"max",e.max),o(this,"pattern",e.pattern),o(this,"location",e.location||this.location||"body"),o(this,"name",this.name||e.xmlName||e.queryName||e.locationName||n),o(this,"isStreaming",e.streaming||this.isStreaming||!1),o(this,"requiresLength",e.requiresLength,!1),o(this,"isComposite",e.isComposite||!1),o(this,"isShape",!0,!1),o(this,"isQueryName",Boolean(e.queryName),!1),o(this,"isLocationName",Boolean(e.locationName),!1),o(this,"isIdempotent",!0===e.idempotencyToken),o(this,"isJsonValue",!0===e.jsonvalue),o(this,"isSensitive",!0===e.sensitive||e.prototype&&!0===e.prototype.sensitive),o(this,"isEventStream",Boolean(e.eventstream),!1),o(this,"isEvent",Boolean(e.event),!1),o(this,"isEventPayload",Boolean(e.eventpayload),!1),o(this,"isEventHeader",Boolean(e.eventheader),!1),o(this,"isTimestampFormatSet",Boolean(e.timestampFormat)||e.prototype&&!0===e.prototype.isTimestampFormatSet,!1),o(this,"endpointDiscoveryId",Boolean(e.endpointdiscoveryid),!1),o(this,"hostLabel",Boolean(e.hostLabel),!1),t.documentation&&(o(this,"documentation",e.documentation),o(this,"documentationUrl",e.documentationUrl)),e.xmlAttribute&&o(this,"isXmlAttribute",e.xmlAttribute||!1),o(this,"defaultValue",null),this.toWireFormat=function(e){return null==e?"":e},this.toType=function(e){return e}}function u(e){s.apply(this,arguments),o(this,"isComposite",!0),e.flattened&&o(this,"flattened",e.flattened||!1)}function c(e,t){var n=this,i=null,c=!this.isShape;u.apply(this,arguments),c&&(o(this,"defaultValue",function(){return{}}),o(this,"members",{}),o(this,"memberNames",[]),o(this,"required",[]),o(this,"isRequired",function(){return!1})),e.members&&(o(this,"members",new r(e.members,t,function(e,n){return s.create(n,t,e)})),a(this,"memberNames",function(){return e.xmlOrder||Object.keys(e.members)}),e.event&&(a(this,"eventPayloadMemberName",function(){for(var e=n.members,t=n.memberNames,r=0,i=t.length;r-1?t||"":t,this.isJsonValue?JSON.parse(t):t&&"function"==typeof t.toString?t.toString():t},this.toWireFormat=function(e){return this.isJsonValue?JSON.stringify(e):e}}function p(){s.apply(this,arguments),this.toType=function(e){var t=i.base64.decode(e);if(this.isSensitive&&i.isNode()&&"function"==typeof i.Buffer.alloc){var n=i.Buffer.alloc(t.length,t);t.fill(0),t=n}return t},this.toWireFormat=i.base64.encode}function f(){p.apply(this,arguments)}function g(){s.apply(this,arguments),this.toType=function(e){return"boolean"==typeof e?e:null==e?null:"true"===e}}s.normalizedTypes={character:"string",double:"float",long:"integer",short:"integer",biginteger:"integer",bigdecimal:"float",blob:"binary"},s.types={structure:c,list:l,map:d,boolean:g,timestamp:function(e){var t=this;if(s.apply(this,arguments),e.timestampFormat)o(this,"timestampFormat",e.timestampFormat);else if(t.isTimestampFormatSet&&this.timestampFormat)o(this,"timestampFormat",this.timestampFormat);else if("header"===this.location)o(this,"timestampFormat","rfc822");else if("querystring"===this.location)o(this,"timestampFormat","iso8601");else if(this.api)switch(this.api.protocol){case"json":case"rest-json":o(this,"timestampFormat","unixTimestamp");break;case"rest-xml":case"query":case"ec2":o(this,"timestampFormat","iso8601")}this.toType=function(e){return null==e?null:"function"==typeof e.toUTCString?e:"string"==typeof e||"number"==typeof e?i.date.parseTimestamp(e):null},this.toWireFormat=function(e){return i.date.format(e,t.timestampFormat)}},float:function(){s.apply(this,arguments),this.toType=function(e){return null==e?null:parseFloat(e)},this.toWireFormat=this.toType},integer:function(){s.apply(this,arguments),this.toType=function(e){return null==e?null:parseInt(e,10)},this.toWireFormat=this.toType},string:h,base64:f,binary:p},s.resolve=function(e,t){if(e.shape){var n=t.api.shapes[e.shape];if(!n)throw new Error("Cannot find shape reference: "+e.shape);return n}return null},s.create=function(e,t,n){if(e.isShape)return e;var r=s.resolve(e,t);if(r){var i=Object.keys(e);t.documentation||(i=i.filter(function(e){return!e.match(/documentation/)}));var o=function(){r.constructor.call(this,e,t,n)};return o.prototype=r,new o}e.type||(e.members?e.type="structure":e.member?e.type="list":e.key?e.type="map":e.type="string");var a=e.type;if(s.normalizedTypes[e.type]&&(e.type=s.normalizedTypes[e.type]),s.types[e.type])return new s.types[e.type](e,t,n);throw new Error("Unrecognized shape type: "+a)},s.shapes={StructureShape:c,ListShape:l,MapShape:d,StringShape:h,BooleanShape:g,Base64Shape:f},e.exports=s},function(e,t,n){n(308);var r=n(51),i=r.Service,o=r.apiLoader;o.services.sts={},r.STS=i.defineService("sts",["2011-06-15"]),n(953),Object.defineProperty(o.services.sts,"2011-06-15",{get:function(){var e=n(954);return e.paginators=n(955).pagination,e},enumerable:!0,configurable:!0}),e.exports=r.STS},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;te.length)return!1;if(n){if(!Object(r.H)(e,t))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 s(e){return e>=65&&e<=90||e>=97&&e<=122}},function(e,t,n){"use strict";n.d(t,"b",function(){return l}),n.d(t,"a",function(){return h});var r=n(23),i=n(211),o=n(75),a=n(110),s=n(4),u=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},c=function(e,t){return function(n,r){t(n,r,e)}},l=Object(r.c)("ICodeLensCache"),d=function(){return function(e,t){this.lineCount=e,this.data=t}}(),h=function(){function e(e){var t=this;this._fakeProvider=new(function(){function e(){}return e.prototype.provideCodeLenses=function(){throw new Error("not supported")},e}()),this._cache=new o.a(20,.75);var n="codelens/cache",r=e.get(n,1,"{}");this._deserialize(r);var i=e.onWillSaveState(function(){e.store(n,t._serialize(),1),i.dispose()})}return e.prototype.put=function(e,t){var n=this,r=new d(e.getLineCount(),t.map(function(e){return{symbol:e.symbol,provider:n._fakeProvider}}));this._cache.set(e.uri.toString(),r)},e.prototype.get=function(e){var t=this._cache.get(e.uri.toString());return t&&t.lineCount===e.getLineCount()?t.data:void 0},e.prototype.delete=function(e){this._cache.delete(e.uri.toString())},e.prototype._serialize=function(){var e=Object.create(null);return this._cache.forEach(function(t,n){for(var r=new Set,i=0,a=t.data;i1){var m=n.getLineContent(g.lineNumber),y=r.o(m),v=-1===y?m.length+1:y+1;if(g.column<=v){var b=o.a.visibleColumnFromColumn2(t,n,g),_=o.a.prevIndentTabStop(b,t.indentSize),w=o.a.columnFromVisibleColumn2(t,n,g.lineNumber,_);f=new s.a(g.lineNumber,w,g.lineNumber,g.column)}else f=new s.a(g.lineNumber,g.column-1,g.lineNumber,g.column)}else{var S=a.a.left(t,n,g.lineNumber,g.column);f=new s.a(S.lineNumber,S.column,g.lineNumber,g.column)}}f.isEmpty()?c[d]=null:(f.startLineNumber!==f.endLineNumber&&(l=!0),c[d]=new i.a(f,""))}return[l,c]},e.cut=function(e,t,n){for(var r=[],a=0,u=n.length;a1?(d=l.lineNumber-1,h=t.getLineMaxColumn(l.lineNumber-1),p=l.lineNumber,f=t.getLineMaxColumn(l.lineNumber)):(d=l.lineNumber,h=1,p=l.lineNumber,f=t.getLineMaxColumn(l.lineNumber));var g=new s.a(d,h,p,f);g.isEmpty()?r[a]=null:r[a]=new i.a(g,"")}else r[a]=null;else r[a]=new i.a(c,"")}return new o.e(0,r,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})},e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(23),i=Object(r.c)("clipboardService")},function(e,t,n){"use strict";n.d(t,"b",function(){return s}),n.d(t,"a",function(){return u});var r=n(9),i=n(117),o=n(83),a={getInitialState:function(){return o.c},tokenize2:function(e,t,n){return Object(o.e)(0,e,t,n)}};function s(e,t){return void 0===t&&(t=a),function(e,t){for(var n='
    ',o=e.split(/\r\n|\r|\n/),a=t.getInitialState(),s=0,u=o.length;s0&&(n+="
    ");var l=t.tokenize2(c,a,0);i.a.convertToEndOffset(l.tokens,c.length);for(var d=new i.a(l.tokens,c),h=d.inflate(),p=0,f=0,g=h.getCount();f'+r.m(c.substring(p,y))+"",p=y}a=l.endState}return n+="
    "}(e,t||a)}function u(e,t,n,r,i,o){for(var a="
    ",s=r,u=0,c=0,l=t.getCount();c0;)h+=" ",f--;break;case 60:h+="<";break;case 62:h+=">";break;case 38:h+="&";break;case 0:h+="�";break;case 65279:case 8232:h+="�";break;case 13:h+="​";break;default:h+=String.fromCharCode(p)}}if(a+=''+h+"",d>i||s>=i)break}}return a+="
    "}},function(e,t,n){"use strict";n.d(t,"b",function(){return c}),n.d(t,"a",function(){return l});var r=n(35),i=n(57),o=n(9),a=n(60),s=n(17),u=n(71);function c(e,t,n){if("string"==typeof e&&(e=r.a.file(e)),n){var c=n.getWorkspaceFolder(e);if(c){var l=n.getWorkspace().folders.length>1,f=void 0;if(f=Object(u.e)(c.uri,e)?"":Object(u.h)(c.uri,e),l){var g=c&&c.name?c.name:Object(u.b)(c.uri);f=f?g+" • "+f:g}return f}}if(e.scheme!==a.a.file&&e.scheme!==a.a.untitled)return e.with({query:null,fragment:null}).toString(!0);if(d(e.fsPath))return Object(i.normalize)(h(e.fsPath));var m=Object(i.normalize)(e.fsPath);return!s.g&&t&&(m=function(e,t){if(s.g||!e||!t)return e;var n=p.original===t?p.normalized:void 0;n||(n=""+Object(o.E)(t,i.posix.sep)+i.posix.sep,p={original:t,normalized:n});(s.c?Object(o.G)(e,n):Object(o.H)(e,n))&&(e="~/"+e.substr(n.length));return e}(m,t.userHome)),m}function l(e){if(e){"string"==typeof e&&(e=r.a.file(e));var t=Object(u.b)(e)||(e.scheme===a.a.file?e.fsPath:e.path);return d(t)?h(t):t}}function d(e){return!(!s.g||!e||":"!==e[1])}function h(e){return d(e)?e.charAt(0).toUpperCase()+e.slice(1):e}var p=Object.create(null)},function(e,t,n){"use strict";n.d(t,"b",function(){return o}),n.d(t,"a",function(){return a});var r=n(1),i=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 r=[],i=0,o=t.length;i=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},f=function(e,t){return function(n,r){t(n,r,e)}},g=function(){function e(){}return e.prototype.select=function(e,t,n){if(0===n.length)return 0;for(var r=n[0].score,i=1;ia&&l.type===u.kind&&l.insertText===u.insertText&&(a=l.touch,o=s)}return-1===o?e.prototype.select.call(this,t,n,r):o},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=e;t0){this._seq=e[0][1].touch+1;for(var t=0,n=e;t=0?t+1:1},e.prototype.getCurrentMatchesPosition=function(t){for(var n=0,r=this._editor.getModel().getDecorationsInRange(t);n1e3){o=e._FIND_MATCH_NO_OVERVIEW_DECORATION;for(var s=r._editor.getModel().getLineCount(),u=r._editor.getLayoutInfo().height/s,c=Math.max(2,Math.ceil(3/u)),l=t[0].range.startLineNumber,h=t[0].range.endLineNumber,p=1,f=t.length;p=g.startLineNumber?g.endLineNumber>h&&(h=g.endLineNumber):(a.push({range:new d.a(l,1,h,1),options:e._FIND_MATCH_ONLY_OVERVIEW_DECORATION}),l=g.startLineNumber,h=g.endLineNumber)}a.push({range:new d.a(l,1,h,1),options:e._FIND_MATCH_ONLY_OVERVIEW_DECORATION})}var m=new Array(t.length);for(p=0,f=t.length;p=0;t--){var n=this._decorations[t],r=this._editor.getModel().getDecorationRange(n);if(r&&!(r.endLineNumber>e.lineNumber)){if(r.endLineNumbere.column))return r}}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;te.lineNumber)return i;if(!(i.startColumn0){for(var n=[],r=0;r0;){if(e0},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,r=e.column,i=this._editor.getModel();return t||1===r?(1===n?n=i.getLineCount():n--,r=i.getLineMaxColumn(n)):r--,new l.a(n,r)},e.prototype._moveToPrevMatch=function(t,n){if(void 0===n&&(n=!1),this._decorations.getCount()<19999){var r=this._decorations.matchBeforePosition(t);return r&&r.isEmpty()&&r.getStartPosition().equals(t)&&(t=this._prevSearchPosition(t),r=this._decorations.matchBeforePosition(t)),void(r&&this._setCurrentFindMatch(r))}if(!this._cannotFind()){var i=this._decorations.getFindScope(),o=e._getSearchRange(this._editor.getModel(),i);o.getEndPosition().isBefore(t)&&(t=o.getEndPosition()),t.isBefore(o.getStartPosition())&&(t=o.getEndPosition());var a=t.lineNumber,s=t.column,u=this._editor.getModel(),c=new l.a(a,s),d=u.findPreviousMatch(this._state.searchString,c,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getConfiguration().wordSeparators:null,!1);if(d&&d.range.isEmpty()&&d.range.getStartPosition().equals(c)&&(c=this._prevSearchPosition(c),d=u.findPreviousMatch(this._state.searchString,c,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getConfiguration().wordSeparators: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,r=e.column,i=this._editor.getModel();return t||r===i.getLineMaxColumn(n)?(n===i.getLineCount()?n=1:n++,r=1):r++,new l.a(n,r)},e.prototype._moveToNextMatch=function(e){if(this._decorations.getCount()<19999){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,r,i){if(void 0===i&&(i=!1),this._cannotFind())return null;var o=this._decorations.getFindScope(),a=e._getSearchRange(this._editor.getModel(),o);a.getEndPosition().isBefore(t)&&(t=a.getStartPosition()),t.isBefore(a.getStartPosition())&&(t=a.getStartPosition());var s=t.lineNumber,u=t.column,c=this._editor.getModel(),d=new l.a(s,u),h=c.findNextMatch(this._state.searchString,d,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getConfiguration().wordSeparators:null,n);return r&&h&&h.range.isEmpty()&&h.range.getStartPosition().equals(d)&&(d=this._nextSearchPosition(d),h=c.findNextMatch(this._state.searchString,d,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getConfiguration().wordSeparators:null,n)),h?i||a.containsRange(h.range)?h:this._getNextMatch(h.range.getEndPosition(),n,r,!0):null},e.prototype.moveToNextMatch=function(){this._moveToNextMatch(this._editor.getSelection().getEndPosition())},e.prototype._getReplacePattern=function(){return this._state.isRegex?function(e){if(!e||0===e.length)return new S(null);for(var t=new I(e),n=0,r=e.length;n=r)break;if(36===(s=e.charCodeAt(n))){t.emitUnchanged(n-1),t.emitStatic("$",n+1);continue}if(48===s||38===s){t.emitUnchanged(n-1),t.emitMatchIndex(0,n+1);continue}if(49<=s&&s<=57){var o=s-48;if(n+1=r)break;var s;switch(s=e.charCodeAt(n)){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)}}}return t.finalize()}(this._state.replaceString):S.fromStaticValue(this._state.replaceString)},e.prototype.replace=function(){if(this._hasMatches()){var e=this._getReplacePattern(),t=this._editor.getSelection(),n=this._getNextMatch(t.getStartPosition(),e.hasReplacementPatterns,!1);if(n)if(t.equalsRange(n.range)){var r=e.buildReplaceString(n.matches),i=new c.a(t,r);this._executeEditorCommand("replace",i),this._decorations.setStartPosition(new l.a(t.startLineNumber,t.startColumn+r.length)),this.research(!0)}else this._decorations.setStartPosition(this._editor.getPosition()),this._setCurrentFindMatch(n.range)}},e.prototype._findMatches=function(t,n,r){var i=e._getSearchRange(this._editor.getModel(),t);return this._editor.getModel().findMatches(this._state.searchString,i,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getConfiguration().wordSeparators:null,n,r)},e.prototype.replaceAll=function(){if(this._hasMatches()){var e=this._decorations.getFindScope();null===e&&this._state.matchesCount>=19999?this._largeReplaceAll():this._regularReplaceAll(e),this.research(!1)}},e.prototype._largeReplaceAll=function(){var e=new p.a(this._state.searchString,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getConfiguration().wordSeparators:null).parseSearchRequest();if(e){var t=e.regex;if(!t.multiline){var n="m";t.ignoreCase&&(n+="i"),t.global&&(n+="g"),t=new RegExp(t.source,n)}var r,i=this._editor.getModel(),o=i.getValue(1),a=i.getFullModelRange(),s=this._getReplacePattern();r=s.hasReplacementPatterns?o.replace(t,function(){return s.buildReplaceString(arguments)}):o.replace(t,s.buildReplaceString(null));var u=new c.b(a,r,this._editor.getSelection());this._executeEditorCommand("replaceAll",u)}},e.prototype._regularReplaceAll=function(e){for(var t=this._getReplacePattern(),n=this._findMatches(e,t.hasReplacementPatterns,1073741824),r=[],i=0,o=n.length;it&&(e=t),this._matchesPosition!==e&&(this._matchesPosition=e,r.matchesPosition=!0,i=!0),this._matchesCount!==t&&(this._matchesCount=t,r.matchesCount=!0,i=!0),void 0!==n&&(d.a.equalsRange(this._currentMatch,n)||(this._currentMatch=n,r.currentMatch=!0,i=!0)),i&&this._onFindReplaceStateChange.fire(r)},e.prototype.change=function(e,t,n){void 0===n&&(n=!0);var r={moveCursor:t,updateHistory:n,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1},i=!1,o=this.isRegex,a=this.wholeWord,s=this.matchCase;void 0!==e.searchString&&this._searchString!==e.searchString&&(this._searchString=e.searchString,r.searchString=!0,i=!0),void 0!==e.replaceString&&this._replaceString!==e.replaceString&&(this._replaceString=e.replaceString,r.replaceString=!0,i=!0),void 0!==e.isRevealed&&this._isRevealed!==e.isRevealed&&(this._isRevealed=e.isRevealed,r.isRevealed=!0,i=!0),void 0!==e.isReplaceRevealed&&this._isReplaceRevealed!==e.isReplaceRevealed&&(this._isReplaceRevealed=e.isReplaceRevealed,r.isReplaceRevealed=!0,i=!0),void 0!==e.isRegex&&(this._isRegex=e.isRegex),void 0!==e.wholeWord&&(this._wholeWord=e.wholeWord),void 0!==e.matchCase&&(this._matchCase=e.matchCase),void 0!==e.searchScope&&(d.a.equalsRange(this._searchScope,e.searchScope)||(this._searchScope=e.searchScope,r.searchScope=!0,i=!0)),this._isRegexOverride=void 0!==e.isRegexOverride?e.isRegexOverride:0,this._wholeWordOverride=void 0!==e.wholeWordOverride?e.wholeWordOverride:0,this._matchCaseOverride=void 0!==e.matchCaseOverride?e.matchCaseOverride:0,o!==this.isRegex&&(i=!0,r.isRegex=!0),a!==this.wholeWord&&(i=!0,r.wholeWord=!0),s!==this.matchCase&&(i=!0,r.matchCase=!0),i&&this._onFindReplaceStateChange.fire(r)},e}(),te=(n(1197),n(174)),ne=n(14),re=n(17),ie=n(220),oe=(n(1203),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])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),ae=r.a("defaultLabel","input"),se=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o._showOptionButtons=r,o.fixFocusOnOptionClickEnabled=!0,o._onDidOptionChange=o._register(new F.a),o.onDidOptionChange=o._onDidOptionChange.event,o._onKeyDown=o._register(new F.a),o.onKeyDown=o._onKeyDown.event,o._onMouseDown=o._register(new F.a),o.onMouseDown=o._onMouseDown.event,o._onInput=o._register(new F.a),o._onKeyUp=o._register(new F.a),o._onCaseSensitiveKeyDown=o._register(new F.a),o.onCaseSensitiveKeyDown=o._onCaseSensitiveKeyDown.event,o._onRegexKeyDown=o._register(new F.a),o._lastHighlightFindOptions=0,o.contextViewProvider=n,o.placeholder=i.placeholder||"",o.validation=i.validation,o.label=i.label||ae,o.inputActiveOptionBorder=i.inputActiveOptionBorder,o.inputBackground=i.inputBackground,o.inputForeground=i.inputForeground,o.inputBorder=i.inputBorder,o.inputValidationInfoBorder=i.inputValidationInfoBorder,o.inputValidationInfoBackground=i.inputValidationInfoBackground,o.inputValidationInfoForeground=i.inputValidationInfoForeground,o.inputValidationWarningBorder=i.inputValidationWarningBorder,o.inputValidationWarningBackground=i.inputValidationWarningBackground,o.inputValidationWarningForeground=i.inputValidationWarningForeground,o.inputValidationErrorBorder=i.inputValidationErrorBorder,o.inputValidationErrorBackground=i.inputValidationErrorBackground,o.inputValidationErrorForeground=i.inputValidationErrorForeground,o.buildDomNode(i.appendCaseSensitiveLabel||"",i.appendWholeWordsLabel||"",i.appendRegexLabel||"",i.history||[],!!i.flexibleHeight),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 oe(t,e),t.prototype.enable=function(){P.G(this.domNode,"disabled"),this.inputBox.enable(),this.regex.enable(),this.wholeWords.enable(),this.caseSensitive.enable()},t.prototype.disable=function(){P.f(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.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};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(){P.G(this.domNode,"highlight-"+this._lastHighlightFindOptions),this._lastHighlightFindOptions=1-this._lastHighlightFindOptions,P.f(this.domNode,"highlight-"+this._lastHighlightFindOptions)},t.prototype.buildDomNode=function(e,t,n,r,i){var o=this;if(this.domNode=document.createElement("div"),P.f(this.domNode,"monaco-findInput"),this.inputBox=this._register(new ie.a(this.domNode,this.contextViewProvider,{placeholder:this.placeholder||"",ariaLabel:this.label||"",validationOptions:{validation:this.validation},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,history:r,flexibleHeight:i})),this.regex=this._register(new K({appendTitle:n,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder})),this._register(this.regex.onChange(function(e){o._onDidOptionChange.fire(e),!e&&o.fixFocusOnOptionClickEnabled&&o.inputBox.focus(),o.validate()})),this._register(this.regex.onKeyDown(function(e){o._onRegexKeyDown.fire(e)})),this.wholeWords=this._register(new Q({appendTitle:t,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder})),this._register(this.wholeWords.onChange(function(e){o._onDidOptionChange.fire(e),!e&&o.fixFocusOnOptionClickEnabled&&o.inputBox.focus(),o.validate()})),this.caseSensitive=this._register(new Z({appendTitle:e,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder})),this._register(this.caseSensitive.onChange(function(e){o._onDidOptionChange.fire(e),!e&&o.fixFocusOnOptionClickEnabled&&o.inputBox.focus(),o.validate()})),this._register(this.caseSensitive.onKeyDown(function(e){o._onCaseSensitiveKeyDown.fire(e)})),this._showOptionButtons){var a=this.caseSensitive.width()+this.wholeWords.width()+this.regex.width()+"px";this.inputBox.inputElement.style.paddingRight=a,this.inputBox.mirrorElement&&(this.inputBox.mirrorElement.style.paddingRight=a)}var s=[this.caseSensitive.domNode,this.wholeWords.domNode,this.regex.domNode];this.onkeydown(this.domNode,function(e){if(e.equals(15)||e.equals(17)||e.equals(9)){var t=s.indexOf(document.activeElement);if(t>=0){var n=-1;e.equals(17)?n=(t+1)%s.length:e.equals(15)&&(n=0===t?s.length-1:t-1),e.equals(9)?s[t].blur():n>=0&&s[n].focus(),P.c.stop(e,!0)}}});var u=document.createElement("div");u.className="controls",u.style.display=this._showOptionButtons?"block":"none",u.appendChild(this.caseSensitive.domNode),u.appendChild(this.wholeWords.domNode),u.appendChild(this.regex.domNode),this.domNode.appendChild(u)},t.prototype.validate=function(){this.inputBox&&this.inputBox.validate()},t.prototype.clearMessage=function(){this.inputBox&&this.inputBox.hideMessage()},t.prototype.dispose=function(){e.prototype.dispose.call(this)},t}(R.a),ue=n(116),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])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),le=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},de=function(e,t){return function(n,r){t(n,r,e)}},he="historyNavigationWidget",pe="historyNavigationEnabled";function fe(e,t){return e.getContext(document.activeElement).getValue(t)}function ge(e,t){var n=function(e,t){return e.createScoped(t.target)}(e,t);return function(e,t,n){new x.f(n,t).bindTo(e)}(n,t,he),{scopedContextKeyService:n,historyNavigationEnablement:new x.f(pe,!0).bindTo(n)}}var me=function(e){function t(t,n,r,i){var o=e.call(this,t,n,r)||this;return o._register(ge(i,{target:o.element,historyNavigator:o}).scopedContextKeyService),o}return ce(t,e),t=le([de(3,x.e)],t)}(ie.a),ye=function(e){function t(t,n,r,i,o){void 0===o&&(o=!1);var a=e.call(this,t,n,o,r)||this;return a._register(ge(i,{target:a.inputBox.element,historyNavigator:a.inputBox}).scopedContextKeyService),a}return ce(t,e),t=le([de(3,x.e)],t)}(se);ue.a.registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:x.d.and(new x.b(he),new x.c(pe,!0)),primary:16,secondary:[528],handler:function(e,t){var n=fe(e.get(x.e),he);n&&n.historyNavigator.showPreviousValue()}}),ue.a.registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:new x.a([new x.b(he),new x.c(pe,!0)]),primary:18,secondary:[530],handler:function(e,t){var n=fe(e.get(x.e),he);n&&n.historyNavigator.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])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),be=r.a("label.find","Find"),_e=r.a("placeholder.find","Find"),we=r.a("label.previousMatchButton","Previous match"),Se=r.a("label.nextMatchButton","Next match"),Ce=r.a("label.toggleSelectionFind","Find in selection"),Ie=r.a("label.closeButton","Close"),Me=r.a("label.replace","Replace"),xe=r.a("placeholder.replace","Replace"),Ne=r.a("label.replaceButton","Replace"),Ee=r.a("label.replaceAllButton","Replace All"),Le=r.a("label.toggleReplaceButton","Toggle Replace mode"),Te=r.a("title.matchesCountLimit","Only the first {0} results are highlighted, but all find operations work on the entire text.",19999),ke=r.a("label.matchesLocation","{0} of {1}"),De=r.a("label.noResults","No Results"),Oe=69,Ae=17+(Oe+3+1)+92+2,je=34,Pe=function(){return function(e){this.afterLineNumber=e,this.heightInPx=je,this.suppressMouseDown=!1,this.domNode=document.createElement("div"),this.domNode.className="dock-find-viewzone"}}(),Re=function(e){function t(t,n,r,a,s,u,c){var l=e.call(this)||this;return l._codeEditor=t,l._controller=n,l._state=r,l._contextViewProvider=a,l._keybindingService=s,l._contextKeyService=u,l._isVisible=!1,l._isReplaceVisible=!1,l._ignoreChangeEvent=!1,l._updateHistoryDelayer=new i.a(500),l._register(Object(o.f)(function(){return l._updateHistoryDelayer.cancel()})),l._register(l._state.onFindReplaceStateChange(function(e){return l._onStateChanged(e)})),l._buildDomNode(),l._updateButtons(),l._tryUpdateWidgetWidth(),l._register(l._codeEditor.onDidChangeConfiguration(function(e){if(e.readOnly&&(l._codeEditor.getConfiguration().readOnly&&l._state.change({isReplaceRevealed:!1},!1),l._updateButtons()),e.layoutInfo&&l._tryUpdateWidgetWidth(),e.accessibilitySupport&&l.updateAccessibilitySupport(),e.contribInfo){var t=l._codeEditor.getConfiguration().contribInfo.find.addExtraSpaceOnTop;t&&!l._viewZone&&(l._viewZone=new Pe(0),l._showViewZone()),!t&&l._viewZone&&l._removeViewZone()}})),l.updateAccessibilitySupport(),l._register(l._codeEditor.onDidChangeCursorSelection(function(){l._isVisible&&l._updateToggleSelectionFindButton()})),l._register(l._codeEditor.onDidFocusEditorWidget(function(){if(l._isVisible){var e=l._controller.getGlobalBufferTerm();e&&e!==l._state.searchString&&(l._state.change({searchString:e},!0),l._findInput.select())}})),l._findInputFocused=E.bindTo(u),l._findFocusTracker=l._register(P.Q(l._findInput.inputBox.inputElement)),l._register(l._findFocusTracker.onDidFocus(function(){l._findInputFocused.set(!0),l._updateSearchScope()})),l._register(l._findFocusTracker.onDidBlur(function(){l._findInputFocused.set(!1)})),l._replaceInputFocused=L.bindTo(u),l._replaceFocusTracker=l._register(P.Q(l._replaceInputBox.inputElement)),l._register(l._replaceFocusTracker.onDidFocus(function(){l._replaceInputFocused.set(!0),l._updateSearchScope()})),l._register(l._replaceFocusTracker.onDidBlur(function(){l._replaceInputFocused.set(!1)})),l._codeEditor.addOverlayWidget(l),l._codeEditor.getConfiguration().contribInfo.find.addExtraSpaceOnTop&&(l._viewZone=new Pe(0)),l._applyTheme(c.getTheme()),l._register(c.onThemeChange(l._applyTheme.bind(l))),l._register(l._codeEditor.onDidChangeModel(function(){l._isVisible&&void 0!==l._viewZoneId&&l._codeEditor.changeViewZones(function(e){l._viewZoneId&&e.removeZone(l._viewZoneId),l._viewZoneId=void 0})})),l._register(l._codeEditor.onDidScrollChange(function(e){e.scrollTopChanged?l._layoutViewZone():setTimeout(function(){l._layoutViewZone()},0)})),l}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._replaceInputBox.value=this._state.replaceString),e.isRevealed&&(this._state.isRevealed?this._reveal():this._hide(!0)),e.isReplaceRevealed&&(this._state.isReplaceRevealed?this._codeEditor.getConfiguration().readOnly||this._isReplaceVisible||(this._isReplaceVisible=!0,this._replaceInputBox.width=this._findInput.inputBox.width,this._updateButtons()):this._isReplaceVisible&&(this._isReplaceVisible=!1,this._updateButtons())),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;P.P(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._replaceInputBox.addToHistory()},t.prototype._updateMatchesCount=function(){var e;if(this._matchesCount.style.minWidth=Oe+"px",this._state.matchesCount>=19999?this._matchesCount.title=Te: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>=19999&&(t+="+");var n=String(this._state.matchesPosition);"0"===n&&(n="?"),e=a.p(ke,n,t)}else e=De;this._matchesCount.appendChild(document.createTextNode(e)),Oe=Math.max(Oe,this._matchesCount.clientWidth)},t.prototype._updateToggleSelectionFindButton=function(){var e=this._codeEditor.getSelection(),t=!!e&&(e.startLineNumber!==e.endLineNumber||e.startColumn!==e.endColumn),n=this._toggleSelectionFind.checked;this._toggleSelectionFind.setEnabled(this._isVisible&&(n||t))},t.prototype._updateButtons=function(){this._findInput.setEnabled(this._isVisible),this._replaceInputBox.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),P.P(this._domNode,"replaceToggled",this._isReplaceVisible),this._toggleReplaceBtn.toggleClass("collapse",!this._isReplaceVisible),this._toggleReplaceBtn.toggleClass("expand",this._isReplaceVisible),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible);var n=!this._codeEditor.getConfiguration().readOnly;this._toggleReplaceBtn.setEnabled(this._isVisible&&n)},t.prototype._reveal=function(){var e=this;if(!this._isVisible){this._isVisible=!0;var t=this._codeEditor.getSelection();!!t&&(t.startLineNumber!==t.endLineNumber||t.startColumn!==t.endColumn)&&this._codeEditor.getConfiguration().contribInfo.find.autoFindInSelection?this._toggleSelectionFind.checked=!0:this._toggleSelectionFind.checked=!1,this._tryUpdateWidgetWidth(),this._updateButtons(),setTimeout(function(){P.f(e._domNode,"visible"),e._domNode.setAttribute("aria-hidden","false")},0),setTimeout(function(){e._findInput.validate()},200),this._codeEditor.layoutOverlayWidget(this);var n=!0;if(this._codeEditor.getConfiguration().contribInfo.find.seedSearchStringFromSelection&&t){var r=this._codeEditor.getDomNode();if(r){var i=P.v(r),o=this._codeEditor.getScrolledVisiblePosition(t.getStartPosition()),a=i.left+(o?o.left:0),s=o?o.top:0;if(this._viewZone&&st.startLineNumber&&(n=!1);var u=P.x(this._domNode).left;a>u&&(n=!1);var c=this._codeEditor.getScrolledVisiblePosition(t.getEndPosition());i.left+(c?c.left:0)>u&&(n=!1)}}}this._showViewZone(n)}},t.prototype._hide=function(e){this._isVisible&&(this._isVisible=!1,this._updateButtons(),P.G(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;if(this._codeEditor.getConfiguration().contribInfo.find.addExtraSpaceOnTop){if(this._isVisible){var t=this._viewZone;void 0===this._viewZoneId&&t&&this._codeEditor.changeViewZones(function(n){e._state.isReplaceRevealed?t.heightInPx=64:t.heightInPx=je,e._viewZoneId=n.addZone(t),e._codeEditor.setScrollTop(e._codeEditor.getScrollTop()+t.heightInPx)})}}else this._removeViewZone()},t.prototype._showViewZone=function(e){var t=this;void 0===e&&(e=!0);var n=this._viewZone;this._isVisible&&n&&this._codeEditor.changeViewZones(function(r){var i=je;void 0!==t._viewZoneId?(t._state.isReplaceRevealed?(n.heightInPx=64,i=64-je):(n.heightInPx=je,i=je-64),r.removeZone(t._viewZoneId)):n.heightInPx=je,t._viewZoneId=r.addZone(n),e&&t._codeEditor.setScrollTop(t._codeEditor.getScrollTop()+i)})},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(m.L),inputBackground:e.getColor(m.M),inputForeground:e.getColor(m.O),inputBorder:e.getColor(m.N),inputValidationInfoBackground:e.getColor(m.S),inputValidationInfoForeground:e.getColor(m.U),inputValidationInfoBorder:e.getColor(m.T),inputValidationWarningBackground:e.getColor(m.V),inputValidationWarningForeground:e.getColor(m.X),inputValidationWarningBorder:e.getColor(m.W),inputValidationErrorBackground:e.getColor(m.P),inputValidationErrorForeground:e.getColor(m.R),inputValidationErrorBorder:e.getColor(m.Q)};this._findInput.style(t),this._replaceInputBox.style(t)},t.prototype._tryUpdateWidgetWidth=function(){if(this._isVisible){var e=this._codeEditor.getConfiguration().layoutInfo.width,t=this._codeEditor.getConfiguration().layoutInfo.minimapWidth,n=!1,r=!1,i=!1;if(this._resized)if(P.z(this._domNode)>411)return this._domNode.style.maxWidth=e-28-t-15+"px",void(this._replaceInputBox.inputElement.style.width=P.z(this._findInput.inputBox.inputElement)+"px");if(439+t>=e&&(r=!0),439+t-Oe>=e&&(i=!0),439+t-Oe>=e+50&&(n=!0),P.P(this._domNode,"collapsed-find-widget",n),P.P(this._domNode,"narrow-find-widget",i),P.P(this._domNode,"reduced-find-widget",r),i||n||(this._domNode.style.maxWidth=e-28-t-15+"px"),this._resized){var o=P.z(this._findInput.inputBox.inputElement);o>0&&(this._replaceInputBox.inputElement.style.width=o+"px")}}},t.prototype.focusFindInput=function(){this._findInput.select(),this._findInput.focus()},t.prototype.focusReplaceInput=function(){this._replaceInputBox.select(),this._replaceInputBox.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)?(this._codeEditor.getAction(A.NextMatchFindAction).run().then(void 0,ne.e),void e.preventDefault()):e.equals(1027)?(this._codeEditor.getAction(A.PreviousMatchFindAction).run().then(void 0,ne.e),void e.preventDefault()):e.equals(2)?(this._isReplaceVisible?this._replaceInputBox.focus():this._findInput.focusOnCaseSensitive(),void e.preventDefault()):e.equals(2066)?(this._codeEditor.focus(),void e.preventDefault()):void 0},t.prototype._onReplaceInputKeyDown=function(e){return e.equals(3)?(this._controller.replace(),void e.preventDefault()):e.equals(2051)?(this._controller.replaceAll(),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()):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._buildFindPart=function(){var e=this;this._findInput=this._register(new ye(null,this._contextViewProvider,{width:221,label:be,placeholder:_e,appendCaseSensitiveLabel:this._keybindingLabelFor(A.ToggleCaseSensitiveCommand),appendWholeWordsLabel:this._keybindingLabelFor(A.ToggleWholeWordCommand),appendRegexLabel:this._keybindingLabelFor(A.ToggleRegexCommand),validation:function(t){if(0===t.length||!e._findInput.getRegex())return null;try{return new RegExp(t),null}catch(e){return{content:e.message}}}},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._replaceInputBox.focus(),t.preventDefault())})),re.c&&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 Fe({label:we+this._keybindingLabelFor(A.PreviousMatchFindAction),className:"previous",onTrigger:function(){e._codeEditor.getAction(A.PreviousMatchFindAction).run().then(void 0,ne.e)}})),this._nextBtn=this._register(new Fe({label:Se+this._keybindingLabelFor(A.NextMatchFindAction),className:"next",onTrigger:function(){e._codeEditor.getAction(A.NextMatchFindAction).run().then(void 0,ne.e)}}));var t=document.createElement("div");return t.className="find-part",t.appendChild(this._findInput.domNode),t.appendChild(this._matchesCount),t.appendChild(this._prevBtn.domNode),t.appendChild(this._nextBtn.domNode),this._toggleSelectionFind=this._register(new ze({parent:t,title:Ce+this._keybindingLabelFor(A.ToggleSearchScopeCommand),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)}})),this._closeBtn=this._register(new Fe({label:Ie+this._keybindingLabelFor(A.CloseFindWidgetCommand),className:"close-fw",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())}})),t.appendChild(this._closeBtn.domNode),t},t.prototype._buildReplacePart=function(){var e=this,t=document.createElement("div");t.className="replace-input",t.style.width="221px",this._replaceInputBox=this._register(new me(t,void 0,{ariaLabel:Me,placeholder:xe,history:[]},this._contextKeyService)),this._register(P.k(this._replaceInputBox.inputElement,"keydown",function(t){return e._onReplaceInputKeyDown(t)})),this._register(this._replaceInputBox.onDidChange(function(){e._state.change({replaceString:e._replaceInputBox.value},!1)})),this._replaceBtn=this._register(new Fe({label:Ne+this._keybindingLabelFor(A.ReplaceOneAction),className:"replace",onTrigger:function(){e._controller.replace()},onKeyDown:function(t){t.equals(1026)&&(e._closeBtn.focus(),t.preventDefault())}})),this._replaceAllBtn=this._register(new Fe({label:Ee+this._keybindingLabelFor(A.ReplaceAllAction),className:"replace-all",onTrigger:function(){e._controller.replaceAll()}}));var n=document.createElement("div");return n.className="replace-part",n.appendChild(t),n.appendChild(this._replaceBtn.domNode),n.appendChild(this._replaceAllBtn.domNode),n},t.prototype._buildDomNode=function(){var e=this,t=this._buildFindPart(),n=this._buildReplacePart();this._toggleReplaceBtn=this._register(new Fe({label:Le,className:"toggle left",onTrigger:function(){e._state.change({isReplaceRevealed:!e._isReplaceVisible},!1),e._isReplaceVisible&&(e._replaceInputBox.width=e._findInput.inputBox.width),e._showViewZone()}})),this._toggleReplaceBtn.toggleClass("expand",this._isReplaceVisible),this._toggleReplaceBtn.toggleClass("collapse",!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="411px",this._domNode.appendChild(this._toggleReplaceBtn.domNode),this._domNode.appendChild(t),this._domNode.appendChild(n),this._buildSash()},t.prototype._buildSash=function(){var e=this;this._resizeSash=new te.a(this._domNode,this,{orientation:0}),this._resized=!1;var t=411;this._register(this._resizeSash.onDidStart(function(){t=P.z(e._domNode)})),this._register(this._resizeSash.onDidChange(function(n){e._resized=!0;var r=t+n.startX-n.currentX;if(!(r<411)){var i=r-Ae;r>(parseFloat(P.s(e._domNode).maxWidth)||0)||(e._domNode.style.width=r+"px",e._isReplaceVisible&&(e._replaceInputBox.width=i))}}))},t.prototype.updateAccessibilitySupport=function(){var e=this._codeEditor.getConfiguration().accessibilitySupport;this._findInput.setFocusInputOnOptionClick(2!==e)},t.ID="editor.contrib.findWidget",t}(R.a),ze=function(e){function t(n){var r=e.call(this)||this;return r._opts=n,r._domNode=document.createElement("div"),r._domNode.className="monaco-checkbox",r._domNode.title=r._opts.title,r._domNode.tabIndex=0,r._checkbox=document.createElement("input"),r._checkbox.type="checkbox",r._checkbox.className="checkbox",r._checkbox.id="checkbox-"+t._COUNTER++,r._checkbox.tabIndex=-1,r._label=document.createElement("label"),r._label.className="label",r._label.htmlFor=r._checkbox.id,r._label.tabIndex=-1,r._domNode.appendChild(r._checkbox),r._domNode.appendChild(r._label),r._opts.parent.appendChild(r._domNode),r.onchange(r._checkbox,function(){r._opts.onChange()}),r}return ve(t,e),Object.defineProperty(t.prototype,"domNode",{get:function(){return this._domNode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"checked",{get:function(){return this._checkbox.checked},set:function(e){this._checkbox.checked=e},enumerable:!0,configurable:!0}),t.prototype.enable=function(){this._checkbox.removeAttribute("disabled")},t.prototype.disable=function(){this._checkbox.disabled=!0},t.prototype.setEnabled=function(e){e?(this.enable(),this.domNode.tabIndex=0):(this.disable(),this.domNode.tabIndex=-1)},t._COUNTER=0,t}(R.a),Fe=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){P.P(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){P.P(this._domNode,e,t)},t}(R.a);Object(y.e)(function(e,t){var n=function(e,n){n&&t.addRule(".monaco-editor "+e+" { background-color: "+n+"; }")};n(".findMatch",e.getColor(m.r)),n(".currentFindMatch",e.getColor(m.p)),n(".findScope",e.getColor(m.t)),n(".find-widget",e.getColor(m.F));var r=e.getColor(m.Kb);r&&t.addRule(".monaco-editor .find-widget { box-shadow: 0 2px 8px "+r+"; }");var i=e.getColor(m.s);i&&t.addRule(".monaco-editor .findMatch { border: 1px "+("hc"===e.type?"dotted":"solid")+" "+i+"; box-sizing: border-box; }");var o=e.getColor(m.q);o&&t.addRule(".monaco-editor .currentFindMatch { border: 2px solid "+o+"; padding: 1px; box-sizing: border-box; }");var a=e.getColor(m.u);a&&t.addRule(".monaco-editor .findScope { border: 1px "+("hc"===e.type?"dashed":"solid")+" "+a+"; }");var s=e.getColor(m.e);s&&t.addRule(".monaco-editor .find-widget { border: 2px solid "+s+"; }");var u=e.getColor(m.I);u&&t.addRule(".monaco-editor .find-widget.no-results .matchesCount { color: "+u+"; }");var c=e.getColor(m.H);if(c)t.addRule(".monaco-editor .find-widget .monaco-sash { background-color: "+c+"; width: 3px !important; margin-left: -4px;}");else{var l=e.getColor(m.G);l&&t.addRule(".monaco-editor .find-widget .monaco-sash { background-color: "+l+"; width: 3px !important; margin-left: -4px;}")}var d=e.getColor(m.L);d&&t.addRule(".monaco-editor .find-widget .monaco-checkbox .checkbox:checked + .label { border: 1px solid "+d.toString()+"; }")});var Be=n(241),Ue=n(94),We=n(23),He=n(66),Ve=n(110);n.d(t,"getSelectionSearchString",function(){return Qe}),n.d(t,"CommonFindController",function(){return Ke}),n.d(t,"FindController",function(){return Je}),n.d(t,"StartFindAction",function(){return Xe}),n.d(t,"StartFindWithSelectionAction",function(){return $e}),n.d(t,"MatchFindAction",function(){return et}),n.d(t,"NextMatchFindAction",function(){return tt}),n.d(t,"PreviousMatchFindAction",function(){return nt}),n.d(t,"SelectionMatchFindAction",function(){return rt}),n.d(t,"NextSelectionMatchFindAction",function(){return it}),n.d(t,"PreviousSelectionMatchFindAction",function(){return ot}),n.d(t,"StartFindReplaceAction",function(){return at});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])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ye=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},Ge=function(e,t){return function(n,r){t(n,r,e)}},Ze=524288;function Qe(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)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=a.n(e)),this._state.change({searchString:e},!1)},t.prototype.highlightFindOptions=function(){},t.prototype._start=function(e){if(this.disposeModel(),this._editor.hasModel()){var t,n={isRevealed:!0};if(e.seedSearchStringFromSelection)(t=Qe(this._editor))&&(this._state.isRegex?n.searchString=a.n(t):n.searchString=t);if(!n.searchString&&e.seedSearchStringFromGlobalClipboard)(t=this.getGlobalBufferTerm())&&(n.searchString=t);if(e.forceRevealReplace?n.isReplaceRevealed=!0:this._findWidgetVisible.get()||(n.isReplaceRevealed=!1),e.updateSearchScope){var r=this._editor.getSelection();r.isEmpty()||(n.searchScope=r)}this._state.change(n,!1),this._model||(this._model=new j(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.getConfiguration().contribInfo.find.globalFindClipboard&&this._clipboardService&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()?this._clipboardService.readFindText():""},t.prototype.setGlobalBufferTerm=function(e){this._editor.getConfiguration().contribInfo.find.globalFindClipboard&&this._clipboardService&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()&&this._clipboardService.writeFindText(e)},t.ID="editor.contrib.findController",t=Ye([Ge(1,x.e),Ge(2,Ve.a),Ge(3,Be.a)],t)}(o.a),Je=function(e){function t(t,n,r,i,o,a,s){var u=e.call(this,t,r,a,s)||this;return u._contextViewService=n,u._keybindingService=i,u._themeService=o,u}return qe(t,e),t.prototype._start=function(t){this._widget||this._createFindWidget(),!this._widget.getPosition()&&this._editor.getConfiguration().contribInfo.find.autoFindInSelection&&(t.updateSearchScope=!0),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 Re(this._editor,this,this._state,this._contextViewService,this._keybindingService,this._contextKeyService,this._themeService)),this._findOptionsWidget=this._register(new X(this._editor,this._state,this._keybindingService,this._themeService))},t=Ye([Ge(1,Ue.b),Ge(2,x.e),Ge(3,He.a),Ge(4,y.c),Ge(5,Ve.a),Ge(6,Object(We.d)(Be.a))],t)}(Ke),Xe=function(e){function t(){return e.call(this,{id:A.StartFindAction,label:r.a("startFindAction","Find"),alias:"Find",precondition:null,kbOpts:{kbExpr:null,primary:2084,weight:100},menubarOpts:{menuId:14,group:"3_find",title:r.a({key:"miFind",comment:["&& denotes a mnemonic"]},"&&Find"),order:1}})||this}return qe(t,e),t.prototype.run=function(e,t){var n=Ke.get(t);n&&n.start({forceRevealReplace:!1,seedSearchStringFromSelection:t.getConfiguration().contribInfo.find.seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:t.getConfiguration().contribInfo.find.globalFindClipboard,shouldFocus:1,shouldAnimate:!0,updateSearchScope:!1})},t}(s.b),$e=function(e){function t(){return e.call(this,{id:A.StartFindWithSelection,label:r.a("startFindWithSelectionAction","Find With Selection"),alias:"Find With Selection",precondition:null,kbOpts:{kbExpr:null,primary:0,mac:{primary:2083},weight:100}})||this}return qe(t,e),t.prototype.run=function(e,t){var n=Ke.get(t);n&&(n.start({forceRevealReplace:!1,seedSearchStringFromSelection:!0,seedSearchStringFromGlobalClipboard:!1,shouldFocus:1,shouldAnimate:!0,updateSearchScope:!1}),n.setGlobalBufferTerm(n.getState().searchString))},t}(s.b),et=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return qe(t,e),t.prototype.run=function(e,t){var n=Ke.get(t);n&&!this._run(n)&&(n.start({forceRevealReplace:!1,seedSearchStringFromSelection:0===n.getState().searchString.length&&t.getConfiguration().contribInfo.find.seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!0,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1}),this._run(n))},t}(s.b),tt=function(e){function t(){return e.call(this,{id:A.NextMatchFindAction,label:r.a("findNextMatchAction","Find Next"),alias:"Find Next",precondition:null,kbOpts:{kbExpr:u.a.focus,primary:61,mac:{primary:2085,secondary:[61]},weight:100}})||this}return qe(t,e),t.prototype._run=function(e){return e.moveToNextMatch()},t}(et),nt=function(e){function t(){return e.call(this,{id:A.PreviousMatchFindAction,label:r.a("findPreviousMatchAction","Find Previous"),alias:"Find Previous",precondition:null,kbOpts:{kbExpr:u.a.focus,primary:1085,mac:{primary:3109,secondary:[1085]},weight:100}})||this}return qe(t,e),t.prototype._run=function(e){return e.moveToPrevMatch()},t}(et),rt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return qe(t,e),t.prototype.run=function(e,t){var n=Ke.get(t);if(n){var r=Qe(t);r&&n.setSearchString(r),this._run(n)||(n.start({forceRevealReplace:!1,seedSearchStringFromSelection:t.getConfiguration().contribInfo.find.seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1}),this._run(n))}},t}(s.b),it=function(e){function t(){return e.call(this,{id:A.NextSelectionMatchFindAction,label:r.a("nextSelectionMatchFindAction","Find Next Selection"),alias:"Find Next Selection",precondition:null,kbOpts:{kbExpr:u.a.focus,primary:2109,weight:100}})||this}return qe(t,e),t.prototype._run=function(e){return e.moveToNextMatch()},t}(rt),ot=function(e){function t(){return e.call(this,{id:A.PreviousSelectionMatchFindAction,label:r.a("previousSelectionMatchFindAction","Find Previous Selection"),alias:"Find Previous Selection",precondition:null,kbOpts:{kbExpr:u.a.focus,primary:3133,weight:100}})||this}return qe(t,e),t.prototype._run=function(e){return e.moveToPrevMatch()},t}(rt),at=function(e){function t(){return e.call(this,{id:A.StartFindReplaceAction,label:r.a("startReplace","Replace"),alias:"Replace",precondition:null,kbOpts:{kbExpr:null,primary:2086,mac:{primary:2596},weight:100},menubarOpts:{menuId:14,group:"3_find",title:r.a({key:"miReplace",comment:["&& denotes a mnemonic"]},"&&Replace"),order:2}})||this}return qe(t,e),t.prototype.run=function(e,t){if(t.hasModel()&&!t.getConfiguration().readOnly){var n=Ke.get(t),r=t.getSelection(),i=n.isFindInputFocused(),o=!r.isEmpty()&&r.startLineNumber===r.endLineNumber&&t.getConfiguration().contribInfo.find.seedSearchStringFromSelection&&!i,a=i||o?2:1;n&&n.start({forceRevealReplace:!0,seedSearchStringFromSelection:o,seedSearchStringFromGlobalClipboard:t.getConfiguration().contribInfo.find.seedSearchStringFromSelection,shouldFocus:a,shouldAnimate:!0,updateSearchScope:!1})}},t}(s.b);Object(s.h)(Je),Object(s.f)(Xe),Object(s.f)($e),Object(s.f)(tt),Object(s.f)(nt),Object(s.f)(it),Object(s.f)(ot),Object(s.f)(at);var st=s.c.bindToContribution(Ke.get);Object(s.g)(new st({id:A.CloseFindWidgetCommand,precondition:N,handler:function(e){return e.closeFindWidget()},kbOpts:{weight:105,kbExpr:u.a.focus,primary:9,secondary:[1033]}})),Object(s.g)(new st({id:A.ToggleCaseSensitiveCommand,precondition:null,handler:function(e){return e.toggleCaseSensitive()},kbOpts:{weight:105,kbExpr:u.a.focus,primary:T.primary,mac:T.mac,win:T.win,linux:T.linux}})),Object(s.g)(new st({id:A.ToggleWholeWordCommand,precondition:null,handler:function(e){return e.toggleWholeWords()},kbOpts:{weight:105,kbExpr:u.a.focus,primary:k.primary,mac:k.mac,win:k.win,linux:k.linux}})),Object(s.g)(new st({id:A.ToggleRegexCommand,precondition:null,handler:function(e){return e.toggleRegex()},kbOpts:{weight:105,kbExpr:u.a.focus,primary:D.primary,mac:D.mac,win:D.win,linux:D.linux}})),Object(s.g)(new st({id:A.ToggleSearchScopeCommand,precondition:null,handler:function(e){return e.toggleSearchScope()},kbOpts:{weight:105,kbExpr:u.a.focus,primary:O.primary,mac:O.mac,win:O.win,linux:O.linux}})),Object(s.g)(new st({id:A.ReplaceOneAction,precondition:N,handler:function(e){return e.replace()},kbOpts:{weight:105,kbExpr:u.a.focus,primary:3094}})),Object(s.g)(new st({id:A.ReplaceAllAction,precondition:N,handler:function(e){return e.replaceAll()},kbOpts:{weight:105,kbExpr:u.a.focus,primary:2563}})),Object(s.g)(new st({id:A.SelectAllMatchesAction,precondition:N,handler:function(e){return e.selectAllMatches()},kbOpts:{weight:105,kbExpr:u.a.focus,primary:515}}))},function(e,t,n){"use strict";e.exports=function(e,t,n,r,i,o,a,s){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,i,o,a,s],l=0;(u=new Error(t.replace(/%s/g,function(){return c[l++]}))).name="Invariant Violation"}throw u.framesToPop=1,u}}},function(e){e.exports={BEGIN:"app.desktop.stone.tooltip.button.start",CONTINUE:"app.desktop.stone.tooltip.button.continue",LEVEL:"app.desktop.stone.tooltip.level",LESSONS:"app.desktop.stone.tooltip.lessons"}},function(e){e.exports={PLN:"app.dictionary.currencies.pln",MONTHLY:"app.payment.planSection.price.payment.monthly",MONTHLY_WITH_YEAR_PAYMENT:"app.payment.planSection.price.payment.monthlyWithYearPayment",MONTH_FREE:"app.payment.planSection.price.payment.month.free"}},,function(e,t,n){"use strict";e.exports=n(775)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(778);t.AWS=r},function(e,t,n){var r=n(96);function i(e,t,n,i){var o=[e,t].join("/");o=o.replace(/\/+/g,"/");var a={},s=!1;if(r.each(n.members,function(e,t){var n=i[e];if(null!=n)if("uri"===t.location){var u=new RegExp("\\{"+t.name+"(\\+)?\\}");o=o.replace(u,function(e,t){return(t?r.uriEscapePath:r.uriEscape)(String(n))})}else"querystring"===t.location&&(s=!0,"list"===t.type?a[t.name]=n.map(function(e){return r.uriEscape(t.member.toWireFormat(e).toString())}):"map"===t.type?r.each(n,function(e,t){Array.isArray(t)?a[e]=t.map(function(e){return r.uriEscape(String(e))}):a[e]=r.uriEscape(String(t))}):a[t.name]=r.uriEscape(t.toWireFormat(n).toString()))}),s){o+=o.indexOf("?")>=0?"&":"?";var u=[];r.arrayEach(Object.keys(a).sort(),function(e){Array.isArray(a[e])||(a[e]=[a[e]]);for(var t=0;t-1});var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]","[object DataView]"];e.exports={isEmptyData:function(e){return"string"==typeof e?0===e.length:0===e.byteLength},convertToBuffer:function(e){return"string"==typeof e&&(e=new r(e,"utf8")),ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}}},function(e,t,n){n(169);var r=n(48),i=r.Service,o=r.apiLoader;o.services.sts={},r.STS=i.defineService("sts",["2011-06-15"]),n(829),Object.defineProperty(o.services.sts,"2011-06-15",{get:function(){var e=n(830);return e.paginators=n(831).pagination,e},enumerable:!0,configurable:!0}),e.exports=r.STS},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(129),i=new r.ConsoleLogger("Amplify"),o=function(){function e(){}return e.register=function(t){i.debug("component registered in amplify",t),this._components.push(t),"function"==typeof t.getModuleName?e[t.getModuleName()]=t:i.debug("no getModuleName method for component",t)},e.configure=function(e){var t=this;return e?(this._config=Object.assign(this._config,e),i.debug("amplify config",this._config),this._components.map(function(e){e.configure(t._config)}),this._config):this._config},e.addPluggable=function(e){e&&e.getCategory&&"function"==typeof e.getCategory&&this._components.map(function(t){t.addPluggable&&"function"==typeof t.addPluggable&&t.addPluggable(e)})},e._components=[],e._config={},e.Auth=null,e.Analytics=null,e.API=null,e.Storage=null,e.I18n=null,e.Cache=null,e.PubSub=null,e.Interactions=null,e.Pushnotification=null,e.UI=null,e.XR=null,e.Logger=r.ConsoleLogger,e.ServiceWorker=null,e}();t.default=o},function(e,t,n){var r=n(864),i=n(865),o=i;o.v1=r,o.v4=i,e.exports=o},function(e,t,n){var r;e.exports=(r=n(76),function(){if("function"==typeof ArrayBuffer){var e=r.lib.WordArray,t=e.init;(e.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"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=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var n=e.byteLength,r=[],i=0;i>>2]|=e[i]<<24-i%4*8;t.call(this,r,n)}else t.apply(this,arguments)}).prototype=e}}(),r.lib.WordArray)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(911);t.AWS=r},function(e,t,n){var r=n(91),i=n(312).populateHostPrefix;function o(e,t,n,i){var o=[e,t].join("/");o=o.replace(/\/+/g,"/");var a={},s=!1;if(r.each(n.members,function(e,t){var n=i[e];if(null!=n)if("uri"===t.location){var u=new RegExp("\\{"+t.name+"(\\+)?\\}");o=o.replace(u,function(e,t){return(t?r.uriEscapePath:r.uriEscape)(String(n))})}else"querystring"===t.location&&(s=!0,"list"===t.type?a[t.name]=n.map(function(e){return r.uriEscape(t.member.toWireFormat(e).toString())}):"map"===t.type?r.each(n,function(e,t){Array.isArray(t)?a[e]=t.map(function(e){return r.uriEscape(String(e))}):a[e]=r.uriEscape(String(t))}):a[t.name]=r.uriEscape(t.toWireFormat(n).toString()))}),s){o+=o.indexOf("?")>=0?"&":"?";var u=[];r.arrayEach(Object.keys(a).sort(),function(e){Array.isArray(a[e])||(a[e]=[a[e]]);for(var t=0;t-1});var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]","[object DataView]"];e.exports={isEmptyData:function(e){return"string"==typeof e?0===e.length:0===e.byteLength},convertToBuffer:function(e){return"string"==typeof e&&(e=new r(e,"utf8")),ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(130),i=new r.ConsoleLogger("Amplify"),o=function(){function e(){}return e.register=function(t){i.debug("component registered in amplify",t),this._components.push(t),"function"==typeof t.getModuleName?e[t.getModuleName()]=t:i.debug("no getModuleName method for component",t)},e.configure=function(e){var t=this;return e?(this._config=Object.assign(this._config,e),i.debug("amplify config",this._config),this._components.map(function(e){e.configure(t._config)}),this._config):this._config},e.addPluggable=function(e){e&&e.getCategory&&"function"==typeof e.getCategory&&this._components.map(function(t){t.addPluggable&&"function"==typeof t.addPluggable&&t.addPluggable(e)})},e._components=[],e._config={},e.Auth=null,e.Analytics=null,e.API=null,e.Storage=null,e.I18n=null,e.Cache=null,e.PubSub=null,e.Interactions=null,e.Pushnotification=null,e.UI=null,e.XR=null,e.Logger=r.ConsoleLogger,e.ServiceWorker=null,e}();t.default=o},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){var r=n(189)(Object,"create");e.exports=r},function(e,t,n){var r=n(1056),i=n(1057),o=n(1058),a=n(1059),s=n(1060);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=this._maxSize&&this.clear(),this._values.hasOwnProperty(e)||this._size++,this._values[e]=t};var i=/[^.^\]^[]+|(?=\[\]|\.\.)/g,o=/^\d+$/,a=/^\d/,s=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,u=/^\s*(['"]?)(.*?)(\1)\s*$/,c=!1,l=new r(512),d=new r(512),h=new r(512);try{new Function("")}catch(e){c=!0}function p(e){return l.get(e)||l.set(e,f(e).map(function(e){return e.replace(u,"$2")}))}function f(e){return e.match(i)}function g(e,t,n){return"string"==typeof t&&(n=t,t=!1),n=n||"data",(e=e||"")&&"["!==e.charAt(0)&&(e="."+e),t?function(e,t){var n,r=t,i=f(e);return m(i,function(e,t,i,o,a){n=o===a.length-1,r+=(e=t||i?"["+e+"]":"."+e)+(n?")":" || {})")}),new Array(i.length+1).join("(")+r}(e,n):n+e}function m(e,t,n){var r,i,o,a,s=e.length;for(i=0;i200)return t;if("object"==typeof t){switch(t.$mid){case 1:return r.a.revive(t);case 2:return new RegExp(t.source,t.flags)}for(var i in t)Object.hasOwnProperty.call(t,i)&&(t[i]=e(t[i],n+1))}return t}(t,0)}},function(e,t,n){"use strict";n.r(t),n.d(t,"ToggleTabFocusModeAction",function(){return c});var r,i=n(1),o=n(70),a=n(5),s=n(176),u=(r=function(e,t){return(r=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)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(){return e.call(this,{id:t.ID,label:i.a({key:"toggle.tabMovesFocus",comment:["Turn on/off use of tab key for moving focus around VS Code"]},"Toggle Tab Key Moves Focus"),alias:"Toggle Tab Key Moves Focus",precondition:null,kbOpts:{kbExpr:null,primary:2091,mac:{primary:1323},weight:100}})||this}return u(t,e),t.prototype.run=function(e,t){var n=!s.b.getTabFocusMode();s.b.setTabFocusMode(n),n?Object(o.a)(i.a("toggle.tabMovesFocus.on","Pressing Tab will now move focus to the next focusable element")):Object(o.a)(i.a("toggle.tabMovesFocus.off","Pressing Tab will now insert the tab character"))},t.ID="editor.action.toggleTabFocusMode",t}(a.b);Object(a.f)(c)},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(74),i=n(7),o={JSONContribution:"base.contributions.json"};var a=new(function(){function e(){this._onDidChangeSchema=new i.a,this.schemasById={}}return e.prototype.registerSchema=function(e,t){var n;this.schemasById[(n=e,n.length>0&&"#"===n.charAt(n.length-1)?n.substring(0,n.length-1):n)]=t,this._onDidChangeSchema.fire(e)},e.prototype.notifySchemaChanged=function(e){this._onDidChangeSchema.fire(e)},e}());r.a.add(o.JSONContribution,a)},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(17),i=r.b.performance&&"function"==typeof r.b.performance.now,o=function(){function e(e){this._highResolution=i&&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?r.b.performance.now():(new Date).getTime()},e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return L});var r=n(21),i=n(9),o=n(237),a=n(57),s=n(75),u=n(18),c="**",l="/",d="[/\\\\]",h="[^/\\\\]",p=/\//g;function f(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=[],r=!1,i=!1,o="",a=0,s=e;a0;n--){var o=e.charCodeAt(n-1);if(47===o||92===o)break}t=e.substr(n)}var a=i.indexOf(t);return-1!==a?r[a]:null};s.basenames=i,s.patterns=r,s.allBasenames=i;var u=e.filter(function(e){return!e.basenames});return u.push(s),u}},function(e,t,n){"use strict";n.d(t,"a",function(){return f});var r=n(21),i=n(34),o=n(14),a=n(35),s=n(5),u=n(4),c=n(12),l=n(73),d=n(79),h=n(98),p=function(){function e(t){this.actions=Object(r.o)(t,e.codeActionsComparator)}return e.codeActionsComparator=function(e,t){return Object(r.n)(e.diagnostics)?Object(r.n)(t.diagnostics)?e.diagnostics[0].message.localeCompare(t.diagnostics[0].message):-1:Object(r.n)(t.diagnostics)?1:0},Object.defineProperty(e.prototype,"hasAutoFix",{get:function(){return this.actions.some(function(e){return!!e.kind&&d.a.QuickFix.contains(new d.a(e.kind))&&!!e.isPreferred})},enumerable:!0,configurable:!0}),e}();function f(e,t,n,i){var a=n.filter||{},s={only:a.kind?a.kind.value:void 0,trigger:"manual"===n.type?2:1},u=new h.d(e,i),l=function(e,t){return c.a.all(e).filter(function(e){return!e.providedCodeActionKinds||e.providedCodeActionKinds.some(function(e){return Object(d.c)(t,new d.a(e))})})}(e,a),f=l.map(function(n){return Promise.resolve(n.provideCodeActions(e,t,s,u.token)).then(function(e){return u.token.isCancellationRequested||!Array.isArray(e)?[]:e.filter(function(e){return e&&Object(d.b)(a,e)})},function(e){if(Object(o.d)(e))throw e;return Object(o.f)(e),[]})}),g=c.a.onDidChange(function(){var t=c.a.all(e);Object(r.g)(t,l)||u.cancel()});return Promise.all(f).then(r.k).then(function(e){return new p(e)}).finally(function(){g.dispose(),u.dispose()})}Object(s.j)("_executeCodeActionProvider",function(e,t){var n=t.resource,r=t.range,s=t.kind;if(!(n instanceof a.a&&u.a.isIRange(r)))throw Object(o.b)();var c=e.get(l.a).getModel(n);if(!c)throw Object(o.b)();return f(c,c.validateRange(r),{type:"manual",filter:{includeSourceActions:!0,kind:s&&s.value?new d.a(s.value):void 0}},i.a.None).then(function(e){return e.actions})})},function(e,t,n){"use strict";n.r(t),n.d(t,"DefinitionActionConfig",function(){return E}),n.d(t,"DefinitionAction",function(){return L}),n.d(t,"GoToDefinitionAction",function(){return k}),n.d(t,"OpenDefinitionToSideAction",function(){return D}),n.d(t,"PeekDefinitionAction",function(){return O}),n.d(t,"DeclarationAction",function(){return A}),n.d(t,"GoToDeclarationAction",function(){return j}),n.d(t,"PeekDeclarationAction",function(){return P}),n.d(t,"ImplementationAction",function(){return R}),n.d(t,"GoToImplementationAction",function(){return z}),n.d(t,"PeekImplementationAction",function(){return F}),n.d(t,"TypeDefinitionAction",function(){return B}),n.d(t,"GoToTypeDefinitionAction",function(){return U}),n.d(t,"PeekTypeDefinitionAction",function(){return W});var r,i=n(70),o=n(18),a=n(49),s=n(17),u=n(5),c=n(45),l=n(4),d=n(8),h=n(12),p=n(178),f=n(119),g=n(136),m=n(101),y=n(1),v=n(78),b=n(13),_=n(67),w=n(173),S=n(197),C=n(40),I=n(98),M=(r=function(e,t){return(r=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)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),x=function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(a,s)}u((r=r.apply(e,t||[])).next())})},N=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]1?y.a("meta.title"," – {0} definitions",e.references.length):""},t.prototype._onResult=function(e,t,n){return x(this,void 0,void 0,function(){var r,o,a,s;return N(this,function(u){switch(u.label){case 0:return r=n.getAriaMessage(),Object(i.a)(r),o=t.getConfiguration().contribInfo.gotoLocation,this._configuration.openInPeek||"peek"===o.multiple&&n.references.length>1?(this._openInPeek(e,t,n),[3,3]):[3,1];case 1:return t.hasModel()?(a=n.firstReference())?[4,this._openReference(t,e,a,this._configuration.openToSide)]:[2]:[3,3];case 2:(s=u.sent())&&n.references.length>1&&"gotoAndPeek"===o.multiple?this._openInPeek(e,s,n):n.dispose(),u.label=3;case 3:return[2]}})})},t.prototype._openReference=function(e,t,n,r){var i=void 0;return Object(h.C)(n)&&(i=n.targetSelectionRange),i||(i=n.range),t.openCodeEditor({resource:n.uri,options:{selection:l.a.collapseToStart(i),revealIfOpened:!0,revealInCenterIfOutsideViewport:!0}},e,r)},t.prototype._openInPeek=function(e,t,n){var r=this,i=g.a.get(t);i&&t.hasModel()?i.toggleWidget(t.getSelection(),Object(o.f)(function(e){return Promise.resolve(n)}),{getMetaTitle:function(e){return r._getMetaTitle(e)},onGoto:function(n){return i.closeWidget(),r._openReference(t,e,n,!1)}}):n.dispose()},t}(u.b),T=s.f?2118:70,k=function(e){function t(){var n=e.call(this,new E,{id:t.id,label:y.a("actions.goToDecl.label","Go to Definition"),alias:"Go to Definition",precondition:b.d.and(d.a.hasDefinitionProvider,d.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:d.a.editorTextFocus,primary:T,weight:100},menuOpts:{group:"navigation",order:1.1}})||this;return C.a.registerCommandAlias("editor.action.goToDeclaration",t.id),n}return M(t,e),t.id="editor.action.revealDefinition",t}(L),D=function(e){function t(){var n=e.call(this,new E(!0),{id:t.id,label:y.a("actions.goToDeclToSide.label","Open Definition to the Side"),alias:"Open Definition to the Side",precondition:b.d.and(d.a.hasDefinitionProvider,d.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:d.a.editorTextFocus,primary:Object(a.a)(2089,T),weight:100}})||this;return C.a.registerCommandAlias("editor.action.openDeclarationToTheSide",t.id),n}return M(t,e),t.id="editor.action.revealDefinitionAside",t}(L),O=function(e){function t(){var n=e.call(this,new E(void 0,!0,!1),{id:t.id,label:y.a("actions.previewDecl.label","Peek Definition"),alias:"Peek Definition",precondition:b.d.and(d.a.hasDefinitionProvider,f.b.notInPeekEditor,d.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:d.a.editorTextFocus,primary:582,linux:{primary:3140},weight:100},menuOpts:{group:"navigation",order:1.2}})||this;return C.a.registerCommandAlias("editor.action.previewDeclaration",t.id),n}return M(t,e),t.id="editor.action.peekDefinition",t}(L),A=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return M(t,e),t.prototype._getTargetLocationForPosition=function(e,t,n){return Object(S.a)(e,t,n)},t.prototype._getNoResultFoundMessage=function(e){return e&&e.word?y.a("decl.noResultWord","No declaration found for '{0}'",e.word):y.a("decl.generic.noResults","No declaration found")},t.prototype._getMetaTitle=function(e){return e.references.length>1?y.a("decl.meta.title"," – {0} declarations",e.references.length):""},t}(L),j=function(e){function t(){return e.call(this,new E,{id:t.id,label:y.a("actions.goToDeclaration.label","Go to Declaration"),alias:"Go to Declaration",precondition:b.d.and(d.a.hasDeclarationProvider,d.a.isInEmbeddedEditor.toNegated()),menuOpts:{group:"navigation",order:1.3}})||this}return M(t,e),t.prototype._getNoResultFoundMessage=function(e){return e&&e.word?y.a("decl.noResultWord","No declaration found for '{0}'",e.word):y.a("decl.generic.noResults","No declaration found")},t.prototype._getMetaTitle=function(e){return e.references.length>1?y.a("decl.meta.title"," – {0} declarations",e.references.length):""},t.id="editor.action.revealDeclaration",t}(A),P=function(e){function t(){return e.call(this,new E(void 0,!0,!1),{id:"editor.action.peekDeclaration",label:y.a("actions.peekDecl.label","Peek Declaration"),alias:"Peek Declaration",precondition:b.d.and(d.a.hasDeclarationProvider,f.b.notInPeekEditor,d.a.isInEmbeddedEditor.toNegated()),menuOpts:{group:"navigation",order:1.31}})||this}return M(t,e),t}(A),R=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return M(t,e),t.prototype._getTargetLocationForPosition=function(e,t,n){return Object(S.c)(e,t,n)},t.prototype._getNoResultFoundMessage=function(e){return e&&e.word?y.a("goToImplementation.noResultWord","No implementation found for '{0}'",e.word):y.a("goToImplementation.generic.noResults","No implementation found")},t.prototype._getMetaTitle=function(e){return e.references.length>1?y.a("meta.implementations.title"," – {0} implementations",e.references.length):""},t}(L),z=function(e){function t(){return e.call(this,new E,{id:t.ID,label:y.a("actions.goToImplementation.label","Go to Implementation"),alias:"Go to Implementation",precondition:b.d.and(d.a.hasImplementationProvider,d.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:d.a.editorTextFocus,primary:2118,weight:100}})||this}return M(t,e),t.ID="editor.action.goToImplementation",t}(R),F=function(e){function t(){return e.call(this,new E(!1,!0,!1),{id:t.ID,label:y.a("actions.peekImplementation.label","Peek Implementation"),alias:"Peek Implementation",precondition:b.d.and(d.a.hasImplementationProvider,d.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:d.a.editorTextFocus,primary:3142,weight:100}})||this}return M(t,e),t.ID="editor.action.peekImplementation",t}(R),B=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return M(t,e),t.prototype._getTargetLocationForPosition=function(e,t,n){return Object(S.d)(e,t,n)},t.prototype._getNoResultFoundMessage=function(e){return e&&e.word?y.a("goToTypeDefinition.noResultWord","No type definition found for '{0}'",e.word):y.a("goToTypeDefinition.generic.noResults","No type definition found")},t.prototype._getMetaTitle=function(e){return e.references.length>1?y.a("meta.typeDefinitions.title"," – {0} type definitions",e.references.length):""},t}(L),U=function(e){function t(){return e.call(this,new E,{id:t.ID,label:y.a("actions.goToTypeDefinition.label","Go to Type Definition"),alias:"Go to Type Definition",precondition:b.d.and(d.a.hasTypeDefinitionProvider,d.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:d.a.editorTextFocus,primary:0,weight:100},menuOpts:{group:"navigation",order:1.4}})||this}return M(t,e),t.ID="editor.action.goToTypeDefinition",t}(B),W=function(e){function t(){return e.call(this,new E(!1,!0,!1),{id:t.ID,label:y.a("actions.peekTypeDefinition.label","Peek Type Definition"),alias:"Peek Type Definition",precondition:b.d.and(d.a.hasTypeDefinitionProvider,d.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:d.a.editorTextFocus,primary:0,weight:100}})||this}return M(t,e),t.ID="editor.action.peekTypeDefinition",t}(B);Object(u.f)(k),Object(u.f)(D),Object(u.f)(O),Object(u.f)(j),Object(u.f)(P),Object(u.f)(z),Object(u.f)(F),Object(u.f)(U),Object(u.f)(W),v.c.appendMenuItem(16,{group:"4_symbol_nav",command:{id:"editor.action.goToDeclaration",title:y.a({key:"miGotoDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Definition")},order:2}),v.c.appendMenuItem(16,{group:"4_symbol_nav",command:{id:"editor.action.goToTypeDefinition",title:y.a({key:"miGotoTypeDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Type Definition")},order:3}),v.c.appendMenuItem(16,{group:"4_symbol_nav",command:{id:"editor.action.goToImplementation",title:y.a({key:"miGotoImplementation",comment:["&& denotes a mnemonic"]},"Go to &&Implementation")},order:4})},function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r,i=n(7),o=n(6),a=(r=function(e,t){return(r=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)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(){function e(e,t,n,r,i,o){(e|=0)<0&&(e=0),(n|=0)+e>(t|=0)&&(n=t-e),n<0&&(n=0),(r|=0)<0&&(r=0),(o|=0)+r>(i|=0)&&(o=i-r),o<0&&(o=0),this.width=e,this.scrollWidth=t,this.scrollLeft=n,this.height=r,this.scrollHeight=i,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(void 0!==t.width?t.width:this.width,void 0!==t.scrollWidth?t.scrollWidth:this.scrollWidth,this.scrollLeft,void 0!==t.height?t.height:this.height,void 0!==t.scrollHeight?t.scrollHeight:this.scrollHeight,this.scrollTop)},e.prototype.withScrollPosition=function(t){return new e(this.width,this.scrollWidth,void 0!==t.scrollLeft?t.scrollLeft:this.scrollLeft,this.height,this.scrollHeight,void 0!==t.scrollTop?t.scrollTop:this.scrollTop)},e.prototype.createScrollEvent=function(e){var t=this.width!==e.width,n=this.scrollWidth!==e.scrollWidth,r=this.scrollLeft!==e.scrollLeft,i=this.height!==e.height,o=this.scrollHeight!==e.scrollHeight,a=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:r,heightChanged:i,scrollHeightChanged:o,scrollTopChanged:a}},e}(),u=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 a(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:void 0===e.scrollLeft?this._smoothScrolling.to.scrollLeft:e.scrollLeft,scrollTop:void 0===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 r=this._smoothScrolling.combine(this._state,n,this._smoothScrollDuration);this._smoothScrolling.dispose(),this._smoothScrolling=r}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}(o.a),c=function(){return function(e,t,n){this.scrollLeft=e,this.scrollTop=t,this.isDone=n}}();function l(e,t){var n=t-e;return function(t){return e+n*(1-function(e){return Math.pow(e,3)}(1-t))}}var d=function(){function e(e,t,n,r){this.from=e,this.to=t,this.duration=r,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 r,i,o;if(Math.abs(e-t)>2.5*n){var a=void 0,s=void 0;return e0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=e._maxRounds){t();break}if(!i){t();break}var c=r.findNextBracket(i);if(!c){t();break}if(Date.now()-u>e._maxDuration){setTimeout(function(){return e._bracketsRightYield(t,n+1,r,i,a)});break}var l=c.close;if(c.isOpen){var d=s.has(l)?s.get(l):0;s.set(l,d+1)}else{d=s.has(l)?s.get(l):0;if(d-=1,s.set(l,Math.max(0,d)),d<0){var h=a.get(l);h||(h=new o.a,a.set(l,h)),h.push(c.range)}}i=c.range.getEndPosition()}},e._bracketsLeftYield=function(t,n,r,o,a,s){for(var u=new Map,c=Date.now();;){if(n>=e._maxRounds&&0===a.size){t();break}if(!o){t();break}var l=r.findPrevBracket(o);if(!l){t();break}if(Date.now()-c>e._maxDuration){setTimeout(function(){return e._bracketsLeftYield(t,n+1,r,o,a,s)});break}var d=l.close;if(l.isOpen){m=u.has(d)?u.get(d):0;if(m-=1,u.set(d,Math.max(0,m)),m<0){var h=a.get(d);if(h){var p=h.shift();0===h.size&&a.delete(d);var f=i.a.fromPositions(l.range.getEndPosition(),p.getStartPosition()),g=i.a.fromPositions(l.range.getStartPosition(),p.getEndPosition());s.push({range:f,kind:"statement.brackets"}),s.push({range:g,kind:"statement.brackets.full"}),e._addBracketLeading(r,g,s)}}}else{var m=u.has(d)?u.get(d):0;u.set(d,m+1)}o=l.range.getStartPosition()}},e._addBracketLeading=function(e,t,n){if(t.startLineNumber!==t.endLineNumber){var o=t.startLineNumber,a=e.getLineFirstNonWhitespaceColumn(o);0!==a&&a!==t.startColumn&&(n.push({range:i.a.fromPositions(new r.a(o,a),t.getEndPosition()),kind:"statement.brackets.leading"}),n.push({range:i.a.fromPositions(new r.a(o,1),t.getEndPosition()),kind:"statement.brackets.leading.full"}));var s=o-1;if(s>0){var u=e.getLineFirstNonWhitespaceColumn(s);u===t.startColumn&&u!==e.getLineLastNonWhitespaceColumn(s)&&(n.push({range:i.a.fromPositions(new r.a(s,u),t.getEndPosition()),kind:"statement.brackets.leading"}),n.push({range:i.a.fromPositions(new r.a(s,1),t.getEndPosition()),kind:"statement.brackets.leading.full"}))}}},e._maxDuration=30,e._maxRounds=2,e}()},function(e,t,n){"use strict";n.r(t);var r,i=n(1),o=n(7),a=n(6),s=n(13),u=n(53),c=n(4),l=n(5),d=n(22),h=n(8),p=(n(1264),n(2)),f=n(10),g=n(15),m=n(38),y=n(104),v=n(243),b=n(21),_=n(119),w=n(71),S=n(180),C=(r=function(e,t){return(r=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)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),I=function(){function e(e,t,n){var r=this;this._lines=0,this._longestLineLength=0,this._relatedDiagnostics=new WeakMap,this._disposables=[],this._editor=t;var i=document.createElement("div");i.className="descriptioncontainer",i.setAttribute("aria-live","assertive"),i.setAttribute("role","alert"),this._messageBlock=document.createElement("div"),p.f(this._messageBlock,"message"),i.appendChild(this._messageBlock),this._relatedBlock=document.createElement("div"),i.appendChild(this._relatedBlock),this._disposables.push(p.k(this._relatedBlock,"click",function(e){e.preventDefault();var t=r._relatedDiagnostics.get(e.target);t&&n(t)})),this._scrollable=new y.b(i,{horizontal:1,vertical:1,useShadows:!1,horizontalScrollbarSize:3,verticalScrollbarSize:3}),e.appendChild(this._scrollable.getDomNode()),this._disposables.push(this._scrollable.onScroll(function(e){i.style.left="-"+e.scrollLeft+"px",i.style.top="-"+e.scrollTop+"px"})),this._disposables.push(this._scrollable)}return e.prototype.dispose=function(){Object(a.d)(this._disposables)},e.prototype.update=function(e){var t=e.source,n=e.message,r=e.relatedInformation,i=e.code,o=n.split(/\r\n|\r|\n/g);this._lines=o.length,this._longestLineLength=0;for(var a=0,s=o;a1?i.a("problems","{0} of {1} problems",n,r):i.a("change","{0} of {1} problem",n,r);this.setTitle(Object(w.b)(l.uri),d)}var h="error";this._severity===u.c.Warning?h="warning":this._severity===u.c.Info&&(h="info"),this.setTitleIcon(h),this.editor.revealPositionInCenter(s,0),1!==this.editor.getConfiguration().accessibilitySupport&&this.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}(_.c),x=Object(f.tb)(m.i,m.h),N=Object(f.tb)(m.w,m.v),E=Object(f.tb)(m.n,m.m),L=Object(f.zb)("editorMarkerNavigationError.background",{dark:x,light:x,hc:x},i.a("editorMarkerNavigationError","Editor marker navigation widget error color.")),T=Object(f.zb)("editorMarkerNavigationWarning.background",{dark:N,light:N,hc:N},i.a("editorMarkerNavigationWarning","Editor marker navigation widget warning color.")),k=Object(f.zb)("editorMarkerNavigationInfo.background",{dark:E,light:E,hc:E},i.a("editorMarkerNavigationInfo","Editor marker navigation widget info color.")),D=Object(f.zb)("editorMarkerNavigation.background",{dark:"#2D2D30",light:g.a.white,hc:"#0C141F"},i.a("editorMarkerNavigationBackground","Editor marker navigation widget background."));Object(d.e)(function(e,t){var n=e.getColor(f.Jb);n&&t.addRule(".monaco-editor .marker-widget a { color: "+n+"; }")});var O=n(9),A=n(45),j=n(14),P=n(78),R=n(85),z=n(66);n.d(t,"MarkerController",function(){return q}),n.d(t,"NextMarkerAction",function(){return G});var 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])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),B=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},U=function(e,t){return function(n,r){t(n,r,e)}},W=function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(a,s)}u((r=r.apply(e,t||[])).next())})},H=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=0?this._markers[this._nextIdx]:void 0;this._markers=e||[],this._markers.sort(Y.compareMarker),this._nextIdx=t?Math.max(-1,Object(b.c)(this._markers,t,Y.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(),r=0;r0?this._nextIdx=(this._nextIdx-1+this._markers.length)%this._markers.length:r=!0),n!==this._nextIdx){var i=this._markers[this._nextIdx];this._onCurrentMarkerChanged.fire(i)}return r},e.prototype.canNavigate=function(){return this._markers.length>0},e.prototype.findMarkerAtPosition=function(e){for(var t=0,n=this._markers;t=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},n(779),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(108))},function(e,t,n){var r=n(96),i=n(300),o=n(301);e.exports={buildRequest:function(e){var t=e.httpRequest,n=e.service.api,r=n.targetPrefix+"."+n.operations[e.operation].name,o=n.jsonVersion||"1.0",a=n.operations[e.operation].input,s=new i;1===o&&(o="1.0"),t.body=s.build(e.params||{},a),t.headers["Content-Type"]="application/x-amz-json-"+o,t.headers["X-Amz-Target"]=r},extractError:function(e){var t={},n=e.httpResponse;if(t.code=n.headers["x-amzn-errortype"]||"UnknownError","string"==typeof t.code&&(t.code=t.code.split(":")[0]),n.body.length>0)try{var i=JSON.parse(n.body.toString());(i.__type||i.code)&&(t.code=(i.__type||i.code).split("#").pop()),"RequestEntityTooLarge"===t.code?t.message="Request body must be less than 1 MB":t.message=i.message||i.Message||null}catch(i){t.statusCode=n.statusCode,t.message=n.statusMessage}else t.statusCode=n.statusCode,t.message=n.statusCode.toString();e.error=r.error(new Error,t)},extractData:function(e){var t=e.httpResponse.body.toString()||"{}";if(!1===e.request.service.config.convertResponseTypes)e.data=JSON.parse(t);else{var n=e.request.service.api.operations[e.request.operation].output||{},r=new o;e.data=r.parse(t,n)}}}},function(e,t,n){var r=n(96);function i(){}function o(e,t){if(t&&null!=e)switch(t.type){case"structure":return function(e,t){var n={};return r.each(e,function(e,r){var i=t.members[e];if(i){if("body"!==i.location)return;var a=i.isLocationName?i.name:e,s=o(r,i);void 0!==s&&(n[a]=s)}}),n}(e,t);case"map":return function(e,t){var n={};return r.each(e,function(e,r){var i=o(r,t.value);void 0!==i&&(n[e]=i)}),n}(e,t);case"list":return function(e,t){var n=[];return r.arrayEach(e,function(e){var r=o(e,t.member);void 0!==r&&n.push(r)}),n}(e,t);default:return function(e,t){return t.toWireFormat(e)}(e,t)}}i.prototype.build=function(e,t){return JSON.stringify(o(e,t))},e.exports=i},function(e,t,n){var r=n(96);function i(){}function o(e,t){if(t&&void 0!==e)switch(t.type){case"structure":return function(e,t){if(null==e)return;var n={},i=t.members;return r.each(i,function(t,r){var i=r.isLocationName?r.name:t;if(Object.prototype.hasOwnProperty.call(e,i)){var a=o(e[i],r);void 0!==a&&(n[t]=a)}}),n}(e,t);case"map":return function(e,t){if(null==e)return;var n={};return r.each(e,function(e,r){var i=o(r,t.value);n[e]=void 0===i?null:i}),n}(e,t);case"list":return function(e,t){if(null==e)return;var n=[];return r.arrayEach(e,function(e){var r=o(e,t.member);void 0===r?n.push(null):n.push(r)}),n}(e,t);default:return function(e,t){return t.toType(e)}(e,t)}}i.prototype.parse=function(e,t){return o(JSON.parse(e),t)},e.exports=i},function(e,t){},function(e,t,n){"use strict";t.decode=t.parse=n(819),t.encode=t.stringify=n(820)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={},i=function(){function e(){}return e.setItem=function(e,t){return r[e]=t,r[e]},e.getItem=function(e){return Object.prototype.hasOwnProperty.call(r,e)?r[e]:void 0},e.removeItem=function(e){return delete r[e]},e.clear=function(){return r={}},e}();t.MemoryStorage=i;var o=function(){function e(){try{this.storageWindow=window.localStorage,this.storageWindow.setItem("aws.amplify.test-ls",1),this.storageWindow.removeItem("aws.amplify.test-ls")}catch(e){this.storageWindow=i}}return e.prototype.getStorage=function(){return this.storageWindow},e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(861));var r=n(862);t.CacheList=r.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(63).JS.browserOrNode().isBrowser&&window.Element?window.Element.prototype:null,i=r?r.matches||r.matchesSelector||r.webkitMatchesSelector||r.mozMatchesSelector||r.msMatchesSelector||r.oMatchesSelector:null;function o(e,t){if("string"!=typeof t)return!1;if(i)return i.call(e,t);for(var n=e.parentNode.querySelectorAll(t),r=0,o=void 0;o=n[r];r++)if(o===e)return!0;return!1}t.default=function(e,t){if(e&&1===e.nodeType&&t){if("string"==typeof t||1===t.nodeType)return e===t||o(e,t);if("length"in t)for(var n=0,r=void 0;r=t[n];n++)if(e===r||o(e,r))return!0}return!1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLError=o;var r=n(393),i=n(394);function o(e,t,n,r,a,s,u){var c=Array.isArray(t)?0!==t.length?t:void 0:t?[t]:void 0,l=n;if(!l&&c){var d=c[0];l=d&&d.loc&&d.loc.source}var h=r;!h&&c&&(h=c.reduce(function(e,t){return t.loc&&e.push(t.loc.start),e},[])),h&&0===h.length&&(h=void 0);var p=void 0;if(r&&n){var f=n;p=r.map(function(e){return(0,i.getLocation)(f,e)})}else c&&(p=c.reduce(function(e,t){return t.loc&&e.push((0,i.getLocation)(t.loc.source,t.loc.start)),e},[]));Object.defineProperties(this,{message:{value:e,enumerable:!0,writable:!0},locations:{value:p||void 0,enumerable:!0},path:{value:a||void 0,enumerable:!0},nodes:{value:c||void 0},source:{value:l||void 0},positions:{value:h||void 0},originalError:{value:s},extensions:{value:u||s&&s.extensions}}),s&&s.stack?Object.defineProperty(this,"stack",{value:s.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,o):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}o.prototype=Object.create(Error.prototype,{constructor:{value:o},name:{value:"GraphQLError"},toString:{value:function(){return(0,r.printError)(this)}}})},function(e,t,n){(function(t){var r=n(91);r.crypto.lib=n(940),r.Buffer=n(31).Buffer,r.url=n(186),r.querystring=n(303),r.realClock=n(945),r.environment="js",r.createEventStream=n(946).createEventStream,r.isBrowser=function(){return!0},r.isNode=function(){return!1};var i=n(51);e.exports=i,n(404),n(405),n(952),n(956),n(957),n(958),n(963),i.XML.Parser=n(964),n(965),void 0===t&&(t={browser:!0})}).call(this,n(82))},function(e,t,n){var r=n(91),i=n(310),o=n(311),a=n(312).populateHostPrefix;e.exports={buildRequest:function(e){var t=e.httpRequest,n=e.service.api,r=n.targetPrefix+"."+n.operations[e.operation].name,o=n.jsonVersion||"1.0",s=n.operations[e.operation].input,u=new i;1===o&&(o="1.0"),t.body=u.build(e.params||{},s),t.headers["Content-Type"]="application/x-amz-json-"+o,t.headers["X-Amz-Target"]=r,a(e)},extractError:function(e){var t={},n=e.httpResponse;if(t.code=n.headers["x-amzn-errortype"]||"UnknownError","string"==typeof t.code&&(t.code=t.code.split(":")[0]),n.body.length>0)try{var i=JSON.parse(n.body.toString());(i.__type||i.code)&&(t.code=(i.__type||i.code).split("#").pop()),"RequestEntityTooLarge"===t.code?t.message="Request body must be less than 1 MB":t.message=i.message||i.Message||null}catch(i){t.statusCode=n.statusCode,t.message=n.statusMessage}else t.statusCode=n.statusCode,t.message=n.statusCode.toString();e.error=r.error(new Error,t)},extractData:function(e){var t=e.httpResponse.body.toString()||"{}";if(!1===e.request.service.config.convertResponseTypes)e.data=JSON.parse(t);else{var n=e.request.service.api.operations[e.request.operation].output||{},r=new o;e.data=r.parse(t,n)}}}},function(e,t,n){var r=n(91);function i(){}function o(e,t){if(t&&null!=e)switch(t.type){case"structure":return function(e,t){var n={};return r.each(e,function(e,r){var i=t.members[e];if(i){if("body"!==i.location)return;var a=i.isLocationName?i.name:e,s=o(r,i);void 0!==s&&(n[a]=s)}}),n}(e,t);case"map":return function(e,t){var n={};return r.each(e,function(e,r){var i=o(r,t.value);void 0!==i&&(n[e]=i)}),n}(e,t);case"list":return function(e,t){var n=[];return r.arrayEach(e,function(e){var r=o(e,t.member);void 0!==r&&n.push(r)}),n}(e,t);default:return function(e,t){return t.toWireFormat(e)}(e,t)}}i.prototype.build=function(e,t){return JSON.stringify(o(e,t))},e.exports=i},function(e,t,n){var r=n(91);function i(){}function o(e,t){if(t&&void 0!==e)switch(t.type){case"structure":return function(e,t){if(null==e)return;var n={},i=t.members;return r.each(i,function(t,r){var i=r.isLocationName?r.name:t;if(Object.prototype.hasOwnProperty.call(e,i)){var a=o(e[i],r);void 0!==a&&(n[t]=a)}}),n}(e,t);case"map":return function(e,t){if(null==e)return;var n={};return r.each(e,function(e,r){var i=o(r,t.value);n[e]=void 0===i?null:i}),n}(e,t);case"list":return function(e,t){if(null==e)return;var n=[];return r.arrayEach(e,function(e){var r=o(e,t.member);void 0===r?n.push(null):n.push(r)}),n}(e,t);default:return function(e,t){return t.toType(e)}(e,t)}}i.prototype.parse=function(e,t){return o(JSON.parse(e),t)},e.exports=i},function(e,t,n){var r=n(91),i=n(51);e.exports={populateHostPrefix:function(e){if(!e.service.config.hostPrefixEnabled)return e;var t,n,o,a=e.service.api.operations[e.operation];if(function(e){var t=e.service.api,n=t.operations[e.operation],i=t.endpointOperation&&t.endpointOperation===r.string.lowerFirst(n.name);return"NULL"!==n.endpointDiscoveryRequired||!0===i}(e))return e;if(a.endpoint&&a.endpoint.hostPrefix){var s=function(e,t,n){return r.each(n.members,function(n,i){if(!0===i.hostLabel){if("string"!=typeof t[n]||""===t[n])throw r.error(new Error,{message:"Parameter "+n+" should be a non-empty string.",code:"InvalidParameter"});var o=new RegExp("\\{"+n+"\\}","g");e=e.replace(o,t[n])}}),e}(a.endpoint.hostPrefix,e.params,a.input);u=e.httpRequest.endpoint,c=s,u.host&&(u.host=c+u.host),u.hostname&&(u.hostname=c+u.hostname),t=e.httpRequest.endpoint.hostname,n=t.split("."),o=/^[a-zA-Z0-9]{1}$|^[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9]$/,r.arrayEach(n,function(e){if(!e.length||e.length<1||e.length>63)throw r.error(new Error,{code:"ValidationError",message:"Hostname label length should be between 1 to 63 characters, inclusive."});if(!o.test(e))throw i.util.error(new Error,{code:"ValidationError",message:e+" is not hostname compatible."})})}var u,c;return e}}},function(e,t){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={},i=function(){function e(){}return e.setItem=function(e,t){return r[e]=t,r[e]},e.getItem=function(e){return Object.prototype.hasOwnProperty.call(r,e)?r[e]:void 0},e.removeItem=function(e){return delete r[e]},e.clear=function(){return r={}},e}();t.MemoryStorage=i;var o=function(){function e(){try{this.storageWindow=window.localStorage,this.storageWindow.setItem("aws.amplify.test-ls",1),this.storageWindow.removeItem("aws.amplify.test-ls")}catch(e){this.storageWindow=i}}return e.prototype.getStorage=function(){return this.storageWindow},e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(1008));var r=n(1009);t.CacheList=r.default},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=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])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=r;if("+"!==a&&a!==s)return!1}return r===i.length}t.mqttTopicMatch=f;var g=function(){function e(){this.promises=new Map}return e.prototype.get=function(e,t){return a(this,void 0,void 0,function(){var n;return s(this,function(r){return(n=this.promises.get(e))?[2,n]:(n=t(e),this.promises.set(e,n),[2,n])})})},Object.defineProperty(e.prototype,"allClients",{get:function(){return Array.from(this.promises.keys())},enumerable:!0,configurable:!0}),e.prototype.remove=function(e){this.promises.delete(e)},e}(),m="undefined"!=typeof Symbol?Symbol("topic"):"@@topic",y=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,o({},t,{clientId:t.clientId||l.v4()}))||this;return n._clientsQueue=new g,n._topicObservers=new Map,n}return i(t,e),Object.defineProperty(t.prototype,"clientId",{get:function(){return this.options.clientId},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"endpoint",{get:function(){return this.options.aws_pubsub_endpoint},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clientsQueue",{get:function(){return this._clientsQueue},enumerable:!0,configurable:!0}),t.prototype.getTopicForValue=function(e){return"object"==typeof e&&e[m]},t.prototype.getProviderName=function(){return"MqttOverWSProvider"},t.prototype.onDisconnect=function(e){var t=e.clientId,n=e.errorCode,r=u(e,["clientId","errorCode"]);0!==n&&p.warn(t,JSON.stringify(o({errorCode:n},r),null,2))},t.prototype.newClient=function(e){var t=e.url,n=e.clientId;return a(this,void 0,void 0,function(){var e,r=this;return s(this,function(i){switch(i.label){case 0:return p.debug("Creating new MQTT client",n),(e=new c.Client(t,n)).onMessageArrived=function(e){var t=e.destinationName,n=e.payloadString;r._onMessage(t,n)},e.onConnectionLost=function(e){var t=e.errorCode,i=u(e,["errorCode"]);r.onDisconnect(o({clientId:n,errorCode:t},i))},[4,new Promise(function(t,n){e.connect({useSSL:!0,mqttVersion:3,onSuccess:function(){return t(e)},onFailure:n})})];case 1:return i.sent(),[2,e]}})})},t.prototype.connect=function(e,t){return void 0===t&&(t={}),a(this,void 0,void 0,function(){var n=this;return s(this,function(r){switch(r.label){case 0:return[4,this.clientsQueue.get(e,function(e){return n.newClient(o({},t,{clientId:e}))})];case 1:return[2,r.sent()]}})})},t.prototype.disconnect=function(e){return a(this,void 0,void 0,function(){var t;return s(this,function(n){switch(n.label){case 0:return[4,this.clientsQueue.get(e,function(){return null})];case 1:return(t=n.sent())&&t.isConnected()&&t.disconnect(),this.clientsQueue.remove(e),[2]}})})},t.prototype.publish=function(e,t){return a(this,void 0,void 0,function(){var n,r,i,o;return s(this,function(a){switch(a.label){case 0:return n=[].concat(e),r=JSON.stringify(t),[4,this.endpoint];case 1:return i=a.sent(),[4,this.connect(this.clientId,{url:i})];case 2:return o=a.sent(),p.debug("Publishing to topic(s)",n.join(","),r),n.forEach(function(e){return o.send(e,r)}),[2]}})})},t.prototype._onMessage=function(e,t){try{var n=[];this._topicObservers.forEach(function(t,r){f(r,e)&&n.push(t)});var r=JSON.parse(t);"object"==typeof r&&(r[m]=e),n.forEach(function(e){e.forEach(function(e){return e.next(r)})})}catch(e){p.warn("Error handling message",e,t)}},t.prototype.subscribe=function(e,t){var n=this;void 0===t&&(t={});var r=[].concat(e);return p.debug("Subscribing to topic(s)",r.join(",")),new d(function(e){var i;r.forEach(function(t){var r=n._topicObservers.get(t);r||(r=new Set,n._topicObservers.set(t,r)),r.add(e)});var o=t.clientId,u=void 0===o?n.clientId:o;return a(n,void 0,void 0,function(){var e,n,o;return s(this,function(a){switch(a.label){case 0:return void 0!==(e=t.url)?[3,2]:[4,this.endpoint];case 1:return o=a.sent(),[3,3];case 2:o=e,a.label=3;case 3:return n=o,[4,this.connect(u,{url:n})];case 4:return i=a.sent(),r.forEach(function(e){i.subscribe(e)}),[2]}})}),function(){return p.debug("Unsubscribing from topic(s)",r.join(",")),i&&(r.forEach(function(e){i.isConnected()&&i.unsubscribe(e);var t=n._topicObservers.get(e)||new Set;t.forEach(function(e){return e.complete()}),t.clear()}),n.disconnect(u)),null}})},t}(h.AbstractPubSubProvider);t.MqttOverWSProvider=y},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=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])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(Error);t.XRError=o;var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(o);t.XRNoSceneConfiguredError=a;var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(o);t.XRSceneNotFoundError=s;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(o);t.XRSceneNotLoadedError=u;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(o);t.XRNoDomElement=c;var l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(o);t.XRSceneLoadFailure=l;var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(o);t.XRProviderNotConfigured=d},function(e,t,n){var r=n(156),i=n(319),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||a.test(e)||!o.test(e)||null!=t&&e in Object(t)}},function(e,t,n){var r=n(203),i=n(170),o="[object Symbol]";e.exports=function(e){return"symbol"==typeof e||i(e)&&r(e)==o}},function(e,t,n){var r=n(1045),i=n(1061),o=n(1063),a=n(1064),s=n(1065);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=n}},function(e,t,n){var r=n(265),i=n(1070),o=n(1071),a=n(1072),s=n(1073),u=n(1074);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=i,c.prototype.delete=o,c.prototype.get=a,c.prototype.has=s,c.prototype.set=u,e.exports=c},function(e,t,n){(function(e){var r=n(157),i=n(1079),o=t&&!t.nodeType&&t,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.Buffer:void 0,u=(s?s.isBuffer:void 0)||i;e.exports=u}).call(this,n(228)(e))},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){(function(e){var r=n(644),i=t&&!t.nodeType&&t,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{var e=o&&o.require&&o.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s}).call(this,n(228)(e))},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){var r=n(645),i=n(323);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},function(e,t,n){var r=n(1088),i=n(656),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),function(t){return o.call(e,t)}))}:i;e.exports=s},function(e,t,n){var r=n(662);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},function(e,t,n){"use strict";var r=n(97);t.__esModule=!0,t.propagateErrors=function(e,t){return e?null:function(e){return t.push(e),e.value}},t.settled=c,t.collectErrors=l,t.default=function(e){var t=e.endEarly,n=(0,i.default)(e,["endEarly"]);return t?(r=n.validations,o=n.value,a=n.sync,s(a).all(r).catch(function(e){throw"ValidationError"===e.name&&(e.value=o),e}).then(function(){return o})):l(n);var r,o,a};var i=r(n(333)),o=n(667),a=r(n(334)),s=function(e){return e?o.SynchronousPromise:Promise},u=function(e){return void 0===e&&(e=[]),e.inner&&e.inner.length?e.inner:[].concat(e)};function c(e,t){var n=s(t);return n.all(e.map(function(e){return n.resolve(e).then(function(e){return{fulfilled:!0,value:e}},function(e){return{fulfilled:!1,value:e}})}))}function l(e){var t=e.validations,n=e.value,r=e.path,i=e.sync,o=e.errors,s=e.sort;return o=u(o),c(t,i).then(function(e){var t=e.filter(function(e){return!e.fulfilled}).reduce(function(e,t){var n=t.value;if(!a.default.isError(n))throw n;return e.concat(n)},[]);if(s&&t.sort(s),(o=t.concat(o)).length)throw new a.default(o,n,r);return n})}},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}},function(e,t,n){"use strict";var r=n(97);t.__esModule=!0,t.default=a;var i=r(n(271)),o=/\$\{\s*(\w+)\s*\}/g;function a(e,t,n,r){var i=this;this.name="ValidationError",this.value=t,this.path=n,this.type=r,this.errors=[],this.inner=[],e&&[].concat(e).forEach(function(e){i.errors=i.errors.concat(e.errors||e),e.inner&&(i.inner=i.inner.concat(e.inner.length?e.inner:e))}),this.message=this.errors.length>1?this.errors.length+" errors occurred":this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,a)}a.prototype=Object.create(Error.prototype),a.prototype.constructor=a,a.isError=function(e){return e&&"ValidationError"===e.name},a.formatError=function(e,t){var n;"string"==typeof e&&(n=e,e=function(e){return n.replace(o,function(t,n){return(0,i.default)(e[n])})});var r=function(t){return t.path=t.label||t.path||"this","function"==typeof e?e(t):e};return 1===arguments.length?r:r(t)},e.exports=t.default},function(e,t,n){"use strict";e.exports=function(e){for(var t=5381,n=e.length;n;)t=33*t^e.charCodeAt(--n);return t>>>0}},function(e,t,n){"use strict";var r=n(1027),i=[],o=[],a=r.makeRequestCallFromTimer(function(){if(o.length)throw o.shift()});function s(e){var t;(t=i.length?i.pop():new u).task=e,r(t)}function u(){this.task=null}e.exports=s,u.prototype.call=function(){try{this.task.call()}catch(e){s.onerror?s.onerror(e):(o.push(e),a())}finally{this.task=null,i[i.length]=this}}},function(e,t,n){"use strict";n.r(t);var r=n(18),i=n(15),o=n(14);function a(e,t){switch(void 0===t&&(t=0),typeof e){case"object":return null===e?s(349,t):Array.isArray(e)?(n=e,r=s(104579,r=t),n.reduce(function(e,t){return a(t,e)},r)):function(e,t){return t=s(181387,t),Object.keys(e).sort().reduce(function(t,n){return t=u(n,t),a(e[n],t)},t)}(e,t);case"string":return u(e,t);case"boolean":return function(e,t){return s(e?433:863,t)}(e,t);case"number":return s(e,t);case"undefined":return s(0,937);default:return s(0,617)}var n,r}function s(e,t){return(t<<5)-t+e|0}function u(e,t){t=s(149417,t);for(var n=0,r=e.length;n=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},v=function(e,t){return function(n,r){t(n,r,e)}},b=function(){function e(e,t,n){var r=this;this._editor=e,this._codeEditorService=t,this._configurationService=n,this._globalToDispose=[],this._localToDispose=[],this._decorationsIds=[],this._colorDatas=new Map,this._colorDecoratorIds=[],this._decorationsTypes={},this._globalToDispose.push(e.onDidChangeModel(function(e){r._isEnabled=r.isEnabled(),r.onModelChanged()})),this._globalToDispose.push(e.onDidChangeModelLanguage(function(e){return r.onModelChanged()})),this._globalToDispose.push(f.c.onDidChange(function(e){return r.onModelChanged()})),this._globalToDispose.push(e.onDidChangeConfiguration(function(e){var t=r._isEnabled;r._isEnabled=r.isEnabled(),t!==r._isEnabled&&(r._isEnabled?r.onModelChanged():r.removeAllDecorations())})),this._timeoutTimer=null,this._computePromise=null,this._isEnabled=this.isEnabled(),this.onModelChanged()}return e.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 r=n.colorDecorators;if(r&&void 0!==r.enable&&!r.enable)return r.enable}return this._editor.getConfiguration().contribInfo.colorDecorators},e.prototype.getId=function(){return e.ID},e.get=function(e){return e.getContribution(this.ID)},e.prototype.dispose=function(){this.stop(),this.removeAllDecorations(),this._globalToDispose=Object(c.d)(this._globalToDispose)},e.prototype.onModelChanged=function(){var t=this;if(this.stop(),this._isEnabled){var n=this._editor.getModel();n&&f.c.has(n)&&(this._localToDispose.push(this._editor.onDidChangeModelContent(function(n){t._timeoutTimer||(t._timeoutTimer=new r.e,t._timeoutTimer.cancelAndSet(function(){t._timeoutTimer=null,t.beginCompute()},e.RECOMPUTE_TIME))})),this.beginCompute())}},e.prototype.beginCompute=function(){var e=this;this._computePromise=Object(r.f)(function(t){var n=e._editor.getModel();return n?Object(g.b)(n,t):Promise.resolve([])}),this._computePromise.then(function(t){e.updateDecorations(t),e.updateColorDecorators(t),e._computePromise=null},o.e)},e.prototype.stop=function(){this._timeoutTimer&&(this._timeoutTimer.cancel(),this._timeoutTimer=null),this._computePromise&&(this._computePromise.cancel(),this._computePromise=null),this._localToDispose=Object(c.d)(this._localToDispose)},e.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:p.a.EMPTY}});this._decorationsIds=this._editor.deltaDecorations(this._decorationsIds,n),this._colorDatas=new Map,this._decorationsIds.forEach(function(n,r){return t._colorDatas.set(n,e[r])})},e.prototype.updateColorDecorators=function(e){for(var t=[],n={},r=0;r
  • Dodaj element Span
  • Wyświetl w nim na czerwono nazwę itTicket
  • ",title:"Example test",slug:"example-test",order:2,isCompleted:!1,stoneSlug:"styling-text",locale:"pl",testId:1,code:"\n\n \n \n \n

    test-playground

    \n \n"}},function(e){e.exports={BRAND_HERO_MESSAGE_HEADER:"app.changePath.brandHero.header",BRAND_HERO_MESSAGE_CONTENT:"app.changePath.brandHero.content"}},function(e){e.exports={BRAND_HERO_MESSAGE_HEADER:"app.rankPage.brandHero.header",BRAND_HERO_MESSAGE_CONTENT:"app.rankPage.brandHero.content"}},function(e){e.exports={SUCCESS:"app.profile.infoSection.userForm.success",ERROR:"app.profile.infoSection.userForm.error"}},function(e){e.exports={HEADER:"app.profile.topSection.header",TEXT:"app.profile.topSection.text"}},function(e){e.exports={HEADER:"app.addonsPayment.topSection.message.header",LABEL:"app.addonsPayment.topSection.message.label"}},function(e){e.exports={BACK:"app.profile.billingData.back",HEADER:"app.profile.billingData.header"}},function(e,t,n){"use strict"; /* object-assign (c) Sindre Sorhus @license MIT */var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),u=1;u0){var d=(t=new r.XML.Parser).parse(a.toString(),u);i.update(e.data,d)}}}},function(e,t,n){var r=n(362),i=n(366),o=n(227),a=n(367),s=n(368),u=n(96),c=u.property,l=u.memoizedProperty;e.exports=function(e,t){e=e||{},(t=t||{}).api=this,e.metadata=e.metadata||{},c(this,"isApi",!0,!1),c(this,"apiVersion",e.metadata.apiVersion),c(this,"endpointPrefix",e.metadata.endpointPrefix),c(this,"signingName",e.metadata.signingName),c(this,"globalEndpoint",e.metadata.globalEndpoint),c(this,"signatureVersion",e.metadata.signatureVersion),c(this,"jsonVersion",e.metadata.jsonVersion),c(this,"targetPrefix",e.metadata.targetPrefix),c(this,"protocol",e.metadata.protocol),c(this,"timestampFormat",e.metadata.timestampFormat),c(this,"xmlNamespaceUri",e.metadata.xmlNamespace),c(this,"abbreviation",e.metadata.serviceAbbreviation),c(this,"fullName",e.metadata.serviceFullName),c(this,"serviceId",e.metadata.serviceId),l(this,"className",function(){var t=e.metadata.serviceAbbreviation||e.metadata.serviceFullName;return t?("ElasticLoadBalancing"===(t=t.replace(/^Amazon|AWS\s*|\(.*|\s+|\W+/g,""))&&(t="ELB"),t):null}),c(this,"operations",new r(e.operations,t,function(e,n){return new i(e,n,t)},u.string.lowerFirst)),c(this,"shapes",new r(e.shapes,t,function(e,n){return o.create(n,t)})),c(this,"paginators",new r(e.paginators,t,function(e,n){return new a(e,n,t)})),c(this,"waiters",new r(e.waiters,t,function(e,n){return new s(e,n,t)},u.string.lowerFirst)),t.documentation&&(c(this,"documentation",e.documentation),c(this,"documentationUrl",e.documentationUrl))}},function(e,t,n){var r=n(227),i=n(96),o=i.property,a=i.memoizedProperty;e.exports=function(e,t,n){var i=this;n=n||{},o(this,"name",t.name||e),o(this,"api",n.api,!1),t.http=t.http||{},o(this,"httpMethod",t.http.method||"POST"),o(this,"httpPath",t.http.requestUri||"/"),o(this,"authtype",t.authtype||""),a(this,"input",function(){return t.input?r.create(t.input,n):new r.create({type:"structure"},n)}),a(this,"output",function(){return t.output?r.create(t.output,n):new r.create({type:"structure"},n)}),a(this,"errors",function(){var e=[];if(!t.errors)return null;for(var i=0;i-1&&n.splice(i,1)}return this},removeAllListeners:function(e){return e?delete this._events[e]:this._events={},this},emit:function(e,t,n){n||(n=function(){});var r=this.listeners(e),i=r.length;return this.callListeners(r,t,n),i>0},callListeners:function(e,t,n,i){var o=this,a=i||null;function s(i){if(i&&(a=r.util.error(a||new Error,i),o._haltHandlersOnError))return n.call(o,a);o.callListeners(e,t,n,a)}for(;e.length>0;){var u=e.shift();if(u._isAsync)return void u.apply(o,t.concat([s]));try{u.apply(o,t)}catch(e){a=r.util.error(a||new Error,e)}if(a&&o._haltHandlersOnError)return void n.call(o,a)}n.call(o,a)},addListeners:function(e){var t=this;return e._events&&(e=e._events),r.util.each(e,function(e,n){"function"==typeof n&&(n=[n]),r.util.arrayEach(n,function(n){t.on(e,n)})}),t},addNamedListener:function(e,t,n,r){return this[e]=n,this.addListener(t,n,r),this},addNamedAsyncListener:function(e,t,n){return n._isAsync=!0,this.addNamedListener(e,t,n)},addNamedListeners:function(e){var t=this;return e(function(){t.addNamedListener.apply(t,arguments)},function(){t.addNamedAsyncListener.apply(t,arguments)}),this}}),r.SequentialExecutor.prototype.addListener=r.SequentialExecutor.prototype.on,e.exports=r.SequentialExecutor},function(e,t,n){var r=n(48);r.Credentials=r.util.inherit({constructor:function(){if(r.util.hideProperties(this,["secretAccessKey"]),this.expired=!1,this.expireTime=null,1===arguments.length&&"object"==typeof arguments[0]){var e=arguments[0].credentials||arguments[0];this.accessKeyId=e.accessKeyId,this.secretAccessKey=e.secretAccessKey,this.sessionToken=e.sessionToken}else this.accessKeyId=arguments[0],this.secretAccessKey=arguments[1],this.sessionToken=arguments[2]},expiryWindow:15,needsRefresh:function(){var e=r.util.date.getDate().getTime(),t=new Date(e+1e3*this.expiryWindow);return!!(this.expireTime&&t>this.expireTime)||(this.expired||!this.accessKeyId||!this.secretAccessKey)},get:function(e){var t=this;this.needsRefresh()?this.refresh(function(n){n||(t.expired=!1),e&&e(n)}):e&&e()},refresh:function(e){this.expired=!1,e()}}),r.Credentials.addPromisesToClass=function(e){this.prototype.getPromise=r.util.promisifyMethod("get",e),this.prototype.refreshPromise=r.util.promisifyMethod("refresh",e)},r.Credentials.deletePromisesFromClass=function(){delete this.prototype.getPromise,delete this.prototype.refreshPromise},r.util.addPromises(r.Credentials)},function(e,t,n){var r=n(48);r.CredentialProviderChain=r.util.inherit(r.Credentials,{constructor:function(e){this.providers=e||r.CredentialProviderChain.defaultProviders.slice(0)},resolve:function(e){if(0===this.providers.length)return e(new Error("No providers")),this;var t=0,n=this.providers.slice(0);return function r(i,o){if(!i&&o||t===n.length)e(i,o);else{var a=n[t++];(o="function"==typeof a?a.call():a).get?o.get(function(e){r(e,e?null:o)}):r(null,o)}}(),this}}),r.CredentialProviderChain.defaultProviders=[],r.CredentialProviderChain.addPromisesToClass=function(e){this.prototype.resolvePromise=r.util.promisifyMethod("resolve",e)},r.CredentialProviderChain.deletePromisesFromClass=function(){delete this.prototype.resolvePromise},r.util.addPromises(r.CredentialProviderChain)},function(e,t,n){var r=n(48),i=r.util.inherit;r.Endpoint=i({constructor:function(e,t){if(r.util.hideProperties(this,["slashes","auth","hash","search","query"]),null==e)throw new Error("Invalid endpoint: "+e);if("string"!=typeof e)return r.util.copy(e);e.match(/^http/)||(e=((t&&void 0!==t.sslEnabled?t.sslEnabled:r.config.sslEnabled)?"https":"http")+"://"+e);r.util.update(this,r.util.urlParse(e)),this.port?this.port=parseInt(this.port,10):this.port="https:"===this.protocol?443:80}}),r.HttpRequest=i({constructor:function(e,t){e=new r.Endpoint(e),this.method="POST",this.path=e.path||"/",this.headers={},this.body="",this.endpoint=e,this.region=t,this._userAgent="",this.setUserAgent()},setUserAgent:function(){this._userAgent=this.headers[this.getUserAgentHeaderName()]=r.util.userAgent()},getUserAgentHeaderName:function(){return(r.util.isBrowser()?"X-Amz-":"")+"User-Agent"},appendToUserAgent:function(e){"string"==typeof e&&e&&(this._userAgent+=" "+e),this.headers[this.getUserAgentHeaderName()]=this._userAgent},getUserAgent:function(){return this._userAgent},pathname:function(){return this.path.split("?",1)[0]},search:function(){var e=this.path.split("?",2)[1];return e?(e=r.util.queryStringParse(e),r.util.queryParamsToString(e)):""}}),r.HttpResponse=i({constructor:function(){this.statusCode=void 0,this.headers={},this.body=void 0,this.streaming=!1,this.stream=null},createUnbufferedStream:function(){return this.streaming=!0,this.stream}}),r.HttpClient=i({}),r.HttpClient.getInstance=function(){return void 0===this.singleton&&(this.singleton=new this),this.singleton}},function(e,t,n){(function(e){var r=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r=o)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}}),u=r[n];n=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),f(n)?r.showHidden=n:n&&t._extend(r,n),v(r.showHidden)&&(r.showHidden=!1),v(r.depth)&&(r.depth=2),v(r.colors)&&(r.colors=!1),v(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=u),l(r,e,r.depth)}function u(e,t){var n=s.styles[t];return n?"["+s.colors[n][0]+"m"+e+"["+s.colors[n][1]+"m":e}function c(e,t){return e}function l(e,n,r){if(e.customInspect&&n&&C(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,e);return y(i)||(i=l(e,i,r)),i}var o=function(e,t){if(v(t))return e.stylize("undefined","undefined");if(y(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(m(t))return e.stylize(""+t,"number");if(f(t))return e.stylize(""+t,"boolean");if(g(t))return e.stylize("null","null")}(e,n);if(o)return o;var a=Object.keys(n),s=function(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),S(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return d(n);if(0===a.length){if(C(n)){var u=n.name?": "+n.name:"";return e.stylize("[Function"+u+"]","special")}if(b(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(w(n))return e.stylize(Date.prototype.toString.call(n),"date");if(S(n))return d(n)}var c,_="",I=!1,M=["{","}"];(p(n)&&(I=!0,M=["[","]"]),C(n))&&(_=" [Function"+(n.name?": "+n.name:"")+"]");return b(n)&&(_=" "+RegExp.prototype.toString.call(n)),w(n)&&(_=" "+Date.prototype.toUTCString.call(n)),S(n)&&(_=" "+d(n)),0!==a.length||I&&0!=n.length?r<0?b(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),c=I?function(e,t,n,r,i){for(var o=[],a=0,s=t.length;a=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(c,_,M)):M[0]+_+M[1]}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,n,r,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),N(r,i)||(a="["+i+"]"),s||(e.seen.indexOf(u.value)<0?(s=g(n)?l(e,u.value,null):l(e,u.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),v(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function p(e){return Array.isArray(e)}function f(e){return"boolean"==typeof e}function g(e){return null===e}function m(e){return"number"==typeof e}function y(e){return"string"==typeof e}function v(e){return void 0===e}function b(e){return _(e)&&"[object RegExp]"===I(e)}function _(e){return"object"==typeof e&&null!==e}function w(e){return _(e)&&"[object Date]"===I(e)}function S(e){return _(e)&&("[object Error]"===I(e)||e instanceof Error)}function C(e){return"function"==typeof e}function I(e){return Object.prototype.toString.call(e)}function M(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(n){if(v(o)&&(o=e.env.NODE_DEBUG||""),n=n.toUpperCase(),!a[n])if(new RegExp("\\b"+n+"\\b","i").test(o)){var r=e.pid;a[n]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",n,r,e)}}else a[n]=function(){};return a[n]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=p,t.isBoolean=f,t.isNull=g,t.isNullOrUndefined=function(e){return null==e},t.isNumber=m,t.isString=y,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=v,t.isRegExp=b,t.isObject=_,t.isDate=w,t.isError=S,t.isFunction=C,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(792);var x=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function N(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,n;console.log("%s - %s",(e=new Date,n=[M(e.getHours()),M(e.getMinutes()),M(e.getSeconds())].join(":"),[e.getDate(),x[e.getMonth()],n].join(" ")),t.format.apply(t,arguments))},t.inherits=n(793),t._extend=function(e,t){if(!t||!_(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var E="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function L(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(E&&e[E]){var t;if("function"!=typeof(t=e[E]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,E,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise(function(e,r){t=e,n=r}),i=[],o=0;o50&&delete i[o.shift()]),p},emptyCache:function(){i={},o=[]}}},function(e,t,n){(function(t){var n,r=t.crypto||t.msCrypto;if(r&&r.getRandomValues){var i=new Uint8Array(16);n=function(){return r.getRandomValues(i),i}}if(!n){var o=new Array(16);n=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),o[t]=e>>>((3&t)<<3)&255;return o}}e.exports=n}).call(this,n(108))},function(e,t){for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);e.exports=function(e,t){var r=t||0,i=n;return i[e[r++]]+i[e[r++]]+i[e[r++]]+i[e[r++]]+"-"+i[e[r++]]+i[e[r++]]+"-"+i[e[r++]]+i[e[r++]]+"-"+i[e[r++]]+i[e[r++]]+"-"+i[e[r++]]+i[e[r++]]+i[e[r++]]+i[e[r++]]+i[e[r++]]+i[e[r++]]}},function(e,t,n){var r=n(48).util.Buffer;e.exports={toBuffer:function(e,t){return"function"==typeof r.from&&r.from!==Uint8Array.from?r.from(e,t):new r(e,t)}}},function(e,t,n){"use strict";var r,i="object"==typeof Reflect?Reflect:null,o=i&&"function"==typeof i.apply?i.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var u=10;function c(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function l(e,t,n,r){var i,o,a,s;if("function"!=typeof n)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof n);if(void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"==typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=c(e))>0&&a.length>i&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,s=u,console&&console.warn&&console.warn(s)}return e}function d(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=function(){for(var e=[],t=0;t0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=i[e];if(void 0===u)return!1;if("function"==typeof u)o(u,this,t);else{var c=u.length,l=f(u,c);for(n=0;n=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1=0;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return h(this,e,!0)},s.prototype.rawListeners=function(e){return h(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},s.prototype.listenerCount=p,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=new(n(129).ConsoleLogger)("Hub"),i=function(){function e(e){this.bus=[],this.listeners={},this.name=e}return e.createHub=function(t){return new e(t)},e.prototype.dispatch=function(e,t,n){void 0===n&&(n="");var i={channel:e,payload:Object.assign({},t),source:n};try{this.bus.push(i),this.toListeners(i)}catch(e){r.warn("Hub dispatch error",e)}},e.prototype.listen=function(e,t,n){void 0===n&&(n="noname"),r.debug(n+" listening "+e);var i=this.listeners[e];i||(i=[],this.listeners[e]=i),i.push({name:n,listener:t})},e.prototype.remove=function(e,t,n){void 0===n&&(n="noname"),r.debug(n+" removing listener "+e);var i=this.listeners[e];i&&(i=i.filter(function(e){return!(t===e.listener&&n===e.name)}),this.listeners[e]=i)},e.prototype.toListeners=function(e){var t=e.channel,n=(e.payload,e.source,this.listeners[t]);n&&(n.forEach(function(n){try{n.listener.onHubCapsule(e)}catch(e){r.warn("error dispatching "+t+" event to "+n.name)}}),this.bus.pop())},e}();t.HubClass=i;var o=new i("__default__");t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(849),i=n(850),o=new r.default;t.GoogleOAuth=o;var a=new i.default;t.FacebookOAuth=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(855),i={userAgent:"aws-amplify/"+r.version+" js",product:"",navigator:null,isReactNative:!1};if("undefined"!=typeof navigator&&navigator.product)switch(i.product=navigator.product||"",i.navigator=navigator||null,navigator.product){case"ReactNative":i.userAgent="aws-amplify/"+r.version+" react-native",i.isReactNative=!0;break;default:i.userAgent="aws-amplify/"+r.version+" js",i.isReactNative=!1}t.default=i},function(e,t,n){"use strict";var r=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0?(p.debug("resending event "+e.eventName+" with "+e.resendLimits+" retry times left"),e.resendLimits-=1,this._putToBuffer(e)):p.debug("retry times used up for event "+e.eventName)),[2]}})})},e.prototype.getCategory=function(){return e.category},e.prototype.getProviderName=function(){return e.providerName},e.prototype.configure=function(e){var t=this;p.debug("configure Analytics",e);var n=e||{};if(this._config=Object.assign({},this._config,n),this._config.appId&&!this._config.disabled){if(this._config.endpointId)h("pinpointProvider_configured",null);else{var r=this.getProviderName()+"_"+this._config.appId;this._getEndpointId(r).then(function(e){p.debug("setting endpoint id from the cache",e),t._config.endpointId=e,h("pinpointProvider_configured",null)}).catch(function(e){p.debug("Failed to generate endpointId",e)})}this._setupTimer()}else this._timer&&clearInterval(this._timer);return this._config},e.prototype.record=function(e){return i(this,void 0,void 0,function(){var t,n;return o(this,function(r){switch(r.label){case 0:return[4,this._getCredentials()];case 1:return(t=r.sent())&&this._config.appId&&this._config.region?(n=(new Date).getTime(),this._generateSession(e),e.event.eventId=d.v1(),Object.assign(e,{timestamp:n,config:this._config,credentials:t}),e.event.immediate?[2,this._send(e)]:[2,this._putToBuffer(e)]):(p.debug("cannot send events without credentials, applicationId or region"),[2,Promise.resolve(!1)])}})})},e.prototype._generateSession=function(e){this._sessionId=this._sessionId||d.v1();var t=e.event;switch(t.name){case"_session.start":this._sessionStartTimestamp=(new Date).getTime(),this._sessionId=d.v1(),t.session={Id:this._sessionId,StartTimestamp:new Date(this._sessionStartTimestamp).toISOString()};break;case"_session.stop":var n=(new Date).getTime();this._sessionStartTimestamp=this._sessionStartTimestamp||(new Date).getTime(),this._sessionId=this._sessionId||d.v1(),t.session={Id:this._sessionId,Duration:n-this._sessionStartTimestamp,StartTimestamp:new Date(this._sessionStartTimestamp).toISOString(),StopTimestamp:new Date(n).toISOString()},this._sessionId=void 0,this._sessionStartTimestamp=void 0;break;default:this._sessionStartTimestamp=this._sessionStartTimestamp||(new Date).getTime(),this._sessionId=this._sessionId||d.v1(),t.session={Id:this._sessionId,StartTimestamp:new Date(this._sessionStartTimestamp).toISOString()}}},e.prototype._send=function(e){return i(this,void 0,void 0,function(){var t;return o(this,function(n){switch(t=e.event,e.config,t.name){case"_session_start":return[2,this._startSession(e)];case"_session_stop":return[2,this._stopSession(e)];case"_update_endpoint":return[2,this._updateEndpoint(e)];default:return[2,this._recordCustomEvent(e)]}return[2]})})},e.prototype._generateBatchItemContext=function(e){var t=e.event,n=e.timestamp,r=e.config,i=(e.credentials,t.name),o=t.attributes,a=t.metrics,s=t.eventId,u=t.session,c=r.appId,l=r.endpointId,d={ApplicationId:c,EventsRequest:{BatchItem:{}}};d.EventsRequest.BatchItem[l]={};var h=d.EventsRequest.BatchItem[l];return h.Endpoint={},h.Events={},h.Events[s]={EventType:i,Timestamp:new Date(n).toISOString(),Attributes:o,Metrics:a,Session:u},d},e.prototype._pinpointPutEvents=function(e){return i(this,void 0,void 0,function(){var t=this;return o(this,function(n){return p.debug("pinpoint put events with params",e),[2,new Promise(function(n,r){var i=t.pinpointClient.putEvents(e);i.on("build",function(){i.httpRequest.path=i.httpRequest.path+"/legacy"}),i.send(function(e,t){e?(p.debug("record event failed. ",e),p.error('Please ensure you have updated you Pinpoint IAM Policywith the Action: "mobiletargeting:PutEvents" in order tocontinue using AWS Pinpoint Service'),n(!1)):(p.debug("record event success. ",t),n(!0))})})]})})},e.prototype._startSession=function(e){return i(this,void 0,void 0,function(){var t,n,r;return o(this,function(i){return e.event,e.timestamp,t=e.config,n=e.credentials,this._initClients(t,n),p.debug("record session start"),r=this._generateBatchItemContext(e),[2,this._pinpointPutEvents(r)]})})},e.prototype._stopSession=function(e){return i(this,void 0,void 0,function(){var t,n,r;return o(this,function(i){return e.event,e.timestamp,t=e.config,n=e.credentials,this._initClients(t,n),p.debug("record session stop"),r=this._generateBatchItemContext(e),[2,this._pinpointPutEvents(r)]})})},e.prototype._recordCustomEvent=function(e){return i(this,void 0,void 0,function(){var t,n,r;return o(this,function(i){return e.event,e.timestamp,t=e.config,n=e.credentials,this._initClients(t,n),p.debug("record event with params"),r=this._generateBatchItemContext(e),[2,this._pinpointPutEvents(r)]})})},e.prototype._updateEndpoint=function(e){return i(this,void 0,void 0,function(){var t,n,r,i,a,u,c,l,d=this;return o(this,function(o){return e.timestamp,t=e.config,n=e.credentials,r=e.event,i=t.appId,t.region,a=t.endpointId,this._initClients(t,n),u=this._endpointRequest(t,s.JS.transferKeyToLowerCase(r,[],["attributes","userAttributes","Attributes","UserAttributes"])),c={ApplicationId:i,EndpointId:a,EndpointRequest:u},l=this,p.debug("updateEndpoint with params: ",c),[2,new Promise(function(e,t){l.pinpointClient.updateEndpoint(c,function(t,r){return t?(p.debug("updateEndpoint failed",t),"Exceeded maximum endpoint per user count 10"===t.message&&d._removeUnusedEndpoints(i,n.identityId).then(function(){return p.debug("Remove the unused endpoints successfully"),e(!1)}).catch(function(t){return p.warn("Failed to remove unused endpoints with error: "+t),p.warn('Please ensure you have updated you Pinpoint IAM Policy with the Action: "mobiletargeting:GetUserEndpoints" in order to get endpoints info of the user'),e(!1)}),e(!1)):(p.debug("updateEndpoint success",r),e(!0))})})]})})},e.prototype._removeUnusedEndpoints=function(e,t){return i(this,void 0,void 0,function(){var n=this;return o(this,function(r){return[2,new Promise(function(r,i){n.pinpointClient.getUserEndpoints({ApplicationId:e,UserId:t},function(o,a){if(o)return p.debug("Failed to get endpoints associated with the userId: "+t+" with error",o),i(o);var s=a.EndpointsResponse.Item;p.debug("get endpoints associated with the userId: "+t+" with data",s);for(var u=s[0],c=1;cthis.config.capacityInBytes&&(i.error("Invalid parameter: itemMaxSize. It should be smaller than capacityInBytes. Setting back to default."),this.config.itemMaxSize=r.defaultConfig.itemMaxSize),(this.config.defaultPriority>5||this.config.defaultPriority<1)&&(i.error("Invalid parameter: defaultPriority. It should be between 1 and 5. Setting back to default."),this.config.defaultPriority=r.defaultConfig.defaultPriority),(Number(this.config.warningThreshold)>1||Number(this.config.warningThreshold)<0)&&(i.error("Invalid parameter: warningThreshold. It should be between 0 and 1. Setting back to default."),this.config.warningThreshold=r.defaultConfig.warningThreshold);this.config.capacityInBytes>5242880&&(i.error("Cache Capacity should be less than 5MB. Setting back to default. Setting back to default."),this.config.capacityInBytes=r.defaultConfig.capacityInBytes)},e.prototype.fillCacheItem=function(e,t,n){var i={key:e,data:t,timestamp:r.getCurrTime(),visitedTime:r.getCurrTime(),priority:n.priority,expires:n.expires,type:typeof t,byteSize:0};return i.byteSize=r.getByteLength(JSON.stringify(i)),i.byteSize=r.getByteLength(JSON.stringify(i)),i},e.prototype.configure=function(e){return e?(e.keyPrefix&&i.warn("Don't try to configure keyPrefix!"),this.config=Object.assign({},this.config,e,e.Cache),this.checkConfig(),this.config):this.config},e}();t.default=o},function(e,t){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var r=new Uint8Array(16);e.exports=function(){return n(r),r}}else{var i=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),i[t]=e>>>((3&t)<<3)&255;return i}}},function(e,t){for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);e.exports=function(e,t){var r=t||0,i=n;return[i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]]].join("")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(306),i=n(389);t.default=function(e,t,n){if(void 0===n&&(n=!1),e&&1===e.nodeType&&t)for(var o,a=(n?[e]:[]).concat(i.default(e)),s=0;o=a[s];s++)if(r.default(o,t))return o}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){for(var t=[],n=e;n&&n.parentNode&&1===n.parentNode.nodeType;)n=n.parentNode,t.push(n);return t}},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(a,s)}u((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=2&&a(h,c)+": "+p[n-2],a(h,l)+": "+p[n-1],o(2+h+u-1)+"^",n0){var d=(t=new r.XML.Parser).parse(a.toString(),u);i.update(e.data,d)}}}},function(e,t,n){var r=n(396),i=n(400),o=n(229),a=n(401),s=n(402),u=n(91),c=u.property,l=u.memoizedProperty;e.exports=function(e,t){var n=this;e=e||{},(t=t||{}).api=this,e.metadata=e.metadata||{},c(this,"isApi",!0,!1),c(this,"apiVersion",e.metadata.apiVersion),c(this,"endpointPrefix",e.metadata.endpointPrefix),c(this,"signingName",e.metadata.signingName),c(this,"globalEndpoint",e.metadata.globalEndpoint),c(this,"signatureVersion",e.metadata.signatureVersion),c(this,"jsonVersion",e.metadata.jsonVersion),c(this,"targetPrefix",e.metadata.targetPrefix),c(this,"protocol",e.metadata.protocol),c(this,"timestampFormat",e.metadata.timestampFormat),c(this,"xmlNamespaceUri",e.metadata.xmlNamespace),c(this,"abbreviation",e.metadata.serviceAbbreviation),c(this,"fullName",e.metadata.serviceFullName),c(this,"serviceId",e.metadata.serviceId),l(this,"className",function(){var t=e.metadata.serviceAbbreviation||e.metadata.serviceFullName;return t?("ElasticLoadBalancing"===(t=t.replace(/^Amazon|AWS\s*|\(.*|\s+|\W+/g,""))&&(t="ELB"),t):null}),c(this,"operations",new r(e.operations,t,function(e,n){return new i(e,n,t)},u.string.lowerFirst,function(e,t){!0===t.endpointoperation&&c(n,"endpointOperation",u.string.lowerFirst(e))})),c(this,"shapes",new r(e.shapes,t,function(e,n){return o.create(n,t)})),c(this,"paginators",new r(e.paginators,t,function(e,n){return new a(e,n,t)})),c(this,"waiters",new r(e.waiters,t,function(e,n){return new s(e,n,t)},u.string.lowerFirst)),t.documentation&&(c(this,"documentation",e.documentation),c(this,"documentationUrl",e.documentationUrl))}},function(e,t,n){var r=n(229),i=n(91),o=i.property,a=i.memoizedProperty;e.exports=function(e,t,n){var i=this;n=n||{},o(this,"name",t.name||e),o(this,"api",n.api,!1),t.http=t.http||{},o(this,"endpoint",t.endpoint),o(this,"httpMethod",t.http.method||"POST"),o(this,"httpPath",t.http.requestUri||"/"),o(this,"authtype",t.authtype||""),o(this,"endpointDiscoveryRequired",t.endpointdiscovery?t.endpointdiscovery.required?"REQUIRED":"OPTIONAL":"NULL"),a(this,"input",function(){return t.input?r.create(t.input,n):new r.create({type:"structure"},n)}),a(this,"output",function(){return t.output?r.create(t.output,n):new r.create({type:"structure"},n)}),a(this,"errors",function(){var e=[];if(!t.errors)return null;for(var i=0;i-1&&n.splice(i,1)}return this},removeAllListeners:function(e){return e?delete this._events[e]:this._events={},this},emit:function(e,t,n){n||(n=function(){});var r=this.listeners(e),i=r.length;return this.callListeners(r,t,n),i>0},callListeners:function(e,t,n,i){var o=this,a=i||null;function s(i){if(i&&(a=r.util.error(a||new Error,i),o._haltHandlersOnError))return n.call(o,a);o.callListeners(e,t,n,a)}for(;e.length>0;){var u=e.shift();if(u._isAsync)return void u.apply(o,t.concat([s]));try{u.apply(o,t)}catch(e){a=r.util.error(a||new Error,e)}if(a&&o._haltHandlersOnError)return void n.call(o,a)}n.call(o,a)},addListeners:function(e){var t=this;return e._events&&(e=e._events),r.util.each(e,function(e,n){"function"==typeof n&&(n=[n]),r.util.arrayEach(n,function(n){t.on(e,n)})}),t},addNamedListener:function(e,t,n,r){return this[e]=n,this.addListener(t,n,r),this},addNamedAsyncListener:function(e,t,n,r){return n._isAsync=!0,this.addNamedListener(e,t,n,r)},addNamedListeners:function(e){var t=this;return e(function(){t.addNamedListener.apply(t,arguments)},function(){t.addNamedAsyncListener.apply(t,arguments)}),this}}),r.SequentialExecutor.prototype.addListener=r.SequentialExecutor.prototype.on,e.exports=r.SequentialExecutor},function(e,t,n){var r=n(51);r.Credentials=r.util.inherit({constructor:function(){if(r.util.hideProperties(this,["secretAccessKey"]),this.expired=!1,this.expireTime=null,this.refreshCallbacks=[],1===arguments.length&&"object"==typeof arguments[0]){var e=arguments[0].credentials||arguments[0];this.accessKeyId=e.accessKeyId,this.secretAccessKey=e.secretAccessKey,this.sessionToken=e.sessionToken}else this.accessKeyId=arguments[0],this.secretAccessKey=arguments[1],this.sessionToken=arguments[2]},expiryWindow:15,needsRefresh:function(){var e=r.util.date.getDate().getTime(),t=new Date(e+1e3*this.expiryWindow);return!!(this.expireTime&&t>this.expireTime)||(this.expired||!this.accessKeyId||!this.secretAccessKey)},get:function(e){var t=this;this.needsRefresh()?this.refresh(function(n){n||(t.expired=!1),e&&e(n)}):e&&e()},refresh:function(e){this.expired=!1,e()},coalesceRefresh:function(e,t){var n=this;1===n.refreshCallbacks.push(e)&&n.load(function(e){r.util.arrayEach(n.refreshCallbacks,function(n){t?n(e):r.util.defer(function(){n(e)})}),n.refreshCallbacks.length=0})},load:function(e){e()}}),r.Credentials.addPromisesToClass=function(e){this.prototype.getPromise=r.util.promisifyMethod("get",e),this.prototype.refreshPromise=r.util.promisifyMethod("refresh",e)},r.Credentials.deletePromisesFromClass=function(){delete this.prototype.getPromise,delete this.prototype.refreshPromise},r.util.addPromises(r.Credentials)},function(e,t,n){var r=n(51);r.CredentialProviderChain=r.util.inherit(r.Credentials,{constructor:function(e){this.providers=e||r.CredentialProviderChain.defaultProviders.slice(0),this.resolveCallbacks=[]},resolve:function(e){var t=this;if(0===t.providers.length)return e(new Error("No providers")),t;if(1===t.resolveCallbacks.push(e)){var n=0,i=t.providers.slice(0);!function e(o,a){if(!o&&a||n===i.length)return r.util.arrayEach(t.resolveCallbacks,function(e){e(o,a)}),void(t.resolveCallbacks.length=0);var s=i[n++];(a="function"==typeof s?s.call():s).get?a.get(function(t){e(t,t?null:a)}):e(null,a)}()}return t}}),r.CredentialProviderChain.defaultProviders=[],r.CredentialProviderChain.addPromisesToClass=function(e){this.prototype.resolvePromise=r.util.promisifyMethod("resolve",e)},r.CredentialProviderChain.deletePromisesFromClass=function(){delete this.prototype.resolvePromise},r.util.addPromises(r.CredentialProviderChain)},function(e,t,n){var r=n(51),i=r.util.inherit;r.Endpoint=i({constructor:function(e,t){if(r.util.hideProperties(this,["slashes","auth","hash","search","query"]),null==e)throw new Error("Invalid endpoint: "+e);if("string"!=typeof e)return r.util.copy(e);e.match(/^http/)||(e=((t&&void 0!==t.sslEnabled?t.sslEnabled:r.config.sslEnabled)?"https":"http")+"://"+e);r.util.update(this,r.util.urlParse(e)),this.port?this.port=parseInt(this.port,10):this.port="https:"===this.protocol?443:80}}),r.HttpRequest=i({constructor:function(e,t){e=new r.Endpoint(e),this.method="POST",this.path=e.path||"/",this.headers={},this.body="",this.endpoint=e,this.region=t,this._userAgent="",this.setUserAgent()},setUserAgent:function(){this._userAgent=this.headers[this.getUserAgentHeaderName()]=r.util.userAgent()},getUserAgentHeaderName:function(){return(r.util.isBrowser()?"X-Amz-":"")+"User-Agent"},appendToUserAgent:function(e){"string"==typeof e&&e&&(this._userAgent+=" "+e),this.headers[this.getUserAgentHeaderName()]=this._userAgent},getUserAgent:function(){return this._userAgent},pathname:function(){return this.path.split("?",1)[0]},search:function(){var e=this.path.split("?",2)[1];return e?(e=r.util.queryStringParse(e),r.util.queryParamsToString(e)):""},updateEndpoint:function(e){var t=new r.Endpoint(e);this.endpoint=t,this.path=t.path||"/"}}),r.HttpResponse=i({constructor:function(){this.statusCode=void 0,this.headers={},this.body=void 0,this.streaming=!1,this.stream=null},createUnbufferedStream:function(){return this.streaming=!0,this.stream}}),r.HttpClient=i({}),r.HttpClient.getInstance=function(){return void 0===this.singleton&&(this.singleton=new this),this.singleton}},function(e,t,n){var r=n(51),i=r.util.inherit;r.Signers.V3=i(r.Signers.RequestSigner,{addAuthorization:function(e,t){var n=r.util.date.rfc822(t);this.request.headers["X-Amz-Date"]=n,e.sessionToken&&(this.request.headers["x-amz-security-token"]=e.sessionToken),this.request.headers["X-Amzn-Authorization"]=this.authorization(e,n)},authorization:function(e){return"AWS3 AWSAccessKeyId="+e.accessKeyId+",Algorithm=HmacSHA256,SignedHeaders="+this.signedHeaders()+",Signature="+this.signature(e)},signedHeaders:function(){var e=[];return r.util.arrayEach(this.headersToSign(),function(t){e.push(t.toLowerCase())}),e.sort().join(";")},canonicalHeaders:function(){var e=this.request.headers,t=[];return r.util.arrayEach(this.headersToSign(),function(n){t.push(n.toLowerCase().trim()+":"+String(e[n]).trim())}),t.sort().join("\n")+"\n"},headersToSign:function(){var e=[];return r.util.each(this.request.headers,function(t){("Host"===t||"Content-Encoding"===t||t.match(/^X-Amz/i))&&e.push(t)}),e},signature:function(e){return r.util.crypto.hmac(e.secretAccessKey,this.stringToSign(),"base64")},stringToSign:function(){var e=[];return e.push(this.request.method),e.push("/"),e.push(""),e.push(this.canonicalHeaders()),e.push(this.request.body),r.util.crypto.sha256(e.join("\n"))}}),e.exports=r.Signers.V3},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(975),i=n(976),o=new r.default;t.GoogleOAuth=o;var a=new i.default;t.FacebookOAuth=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(981),i={userAgent:"aws-amplify/"+r.version+" js",product:"",navigator:null,isReactNative:!1};if("undefined"!=typeof navigator&&navigator.product)switch(i.product=navigator.product||"",i.navigator=navigator||null,navigator.product){case"ReactNative":i.userAgent="aws-amplify/"+r.version+" react-native",i.isReactNative=!0;break;default:i.userAgent="aws-amplify/"+r.version+" js",i.isReactNative=!1}t.default=i},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r=200&&e<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],function(e){u.headers[e]={}}),r.forEach(["post","put","patch"],function(e){u.headers[e]=r.merge(o)}),e.exports=u}).call(this,n(82))},function(e,t,n){"use strict";var r=n(131),i=n(990),o=n(411),a=n(992),s=n(993),u=n(415);e.exports=function(e){return new Promise(function(t,c){var l=e.data,d=e.headers;r.isFormData(l)&&delete d["Content-Type"];var h=new XMLHttpRequest;if(e.auth){var p=e.auth.username||"",f=e.auth.password||"";d.Authorization="Basic "+btoa(p+":"+f)}if(h.open(e.method.toUpperCase(),o(e.url,e.params,e.paramsSerializer),!0),h.timeout=e.timeout,h.onreadystatechange=function(){if(h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in h?a(h.getAllResponseHeaders()):null,r={data:e.responseType&&"text"!==e.responseType?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:n,config:e,request:h};i(t,c,r),h=null}},h.onabort=function(){h&&(c(u("Request aborted",e,"ECONNABORTED",h)),h=null)},h.onerror=function(){c(u("Network Error",e,null,h)),h=null},h.ontimeout=function(){c(u("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",h)),h=null},r.isStandardBrowserEnv()){var g=n(994),m=(e.withCredentials||s(e.url))&&e.xsrfCookieName?g.read(e.xsrfCookieName):void 0;m&&(d[e.xsrfHeaderName]=m)}if("setRequestHeader"in h&&r.forEach(d,function(e,t){void 0===l&&"content-type"===t.toLowerCase()?delete d[t]:h.setRequestHeader(t,e)}),e.withCredentials&&(h.withCredentials=!0),e.responseType)try{h.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&h.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){h&&(h.abort(),c(e),h=null)}),void 0===l&&(l=null),h.send(l)})}},function(e,t,n){"use strict";var r=n(991);e.exports=function(e,t,n,i,o){var a=new Error(e);return r(a,t,n,i,o)}},function(e,t,n){"use strict";var r=n(131);e.exports=function(e,t){t=t||{};var n={};return r.forEach(["url","method","params","data"],function(e){void 0!==t[e]&&(n[e]=t[e])}),r.forEach(["headers","auth","proxy"],function(i){r.isObject(t[i])?n[i]=r.deepMerge(e[i],t[i]):void 0!==t[i]?n[i]=t[i]:r.isObject(e[i])?n[i]=r.deepMerge(e[i]):void 0!==e[i]&&(n[i]=e[i])}),r.forEach(["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"],function(r){void 0!==t[r]?n[r]=t[r]:void 0!==e[r]&&(n[r]=e[r])}),n}},function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Cognito="COGNITO",e.Google="Google",e.Facebook="Facebook",e.Amazon="LoginWithAmazon"}(t.CognitoHostedUIIdentityProvider||(t.CognitoHostedUIIdentityProvider={})),t.isFederatedSignInOptions=function(e){return e&&e.hasOwnProperty("provider")},t.isFederatedSignInOptionsCustom=function(e){return e&&e.hasOwnProperty("customProvider")},t.isCognitoHostedOpts=function(e){return void 0!==e.redirectSignIn},t.isUsernamePasswordOpts=function(e){return!!e.username}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(315),i=new(n(137).ConsoleLogger)("StorageCache"),o=function(){function e(e){this.config=Object.assign({},e),this.cacheCurSizeKey=this.config.keyPrefix+"CurSize",this.checkConfig()}return e.prototype.getModuleName=function(){return"Cache"},e.prototype.checkConfig=function(){r.isInteger(this.config.capacityInBytes)||(i.error("Invalid parameter: capacityInBytes. It should be an Integer. Setting back to default."),this.config.capacityInBytes=r.defaultConfig.capacityInBytes),r.isInteger(this.config.itemMaxSize)||(i.error("Invalid parameter: itemMaxSize. It should be an Integer. Setting back to default."),this.config.itemMaxSize=r.defaultConfig.itemMaxSize),r.isInteger(this.config.defaultTTL)||(i.error("Invalid parameter: defaultTTL. It should be an Integer. Setting back to default."),this.config.defaultTTL=r.defaultConfig.defaultTTL),r.isInteger(this.config.defaultPriority)||(i.error("Invalid parameter: defaultPriority. It should be an Integer. Setting back to default."),this.config.defaultPriority=r.defaultConfig.defaultPriority),this.config.itemMaxSize>this.config.capacityInBytes&&(i.error("Invalid parameter: itemMaxSize. It should be smaller than capacityInBytes. Setting back to default."),this.config.itemMaxSize=r.defaultConfig.itemMaxSize),(this.config.defaultPriority>5||this.config.defaultPriority<1)&&(i.error("Invalid parameter: defaultPriority. It should be between 1 and 5. Setting back to default."),this.config.defaultPriority=r.defaultConfig.defaultPriority),(Number(this.config.warningThreshold)>1||Number(this.config.warningThreshold)<0)&&(i.error("Invalid parameter: warningThreshold. It should be between 0 and 1. Setting back to default."),this.config.warningThreshold=r.defaultConfig.warningThreshold);this.config.capacityInBytes>5242880&&(i.error("Cache Capacity should be less than 5MB. Setting back to default. Setting back to default."),this.config.capacityInBytes=r.defaultConfig.capacityInBytes)},e.prototype.fillCacheItem=function(e,t,n){var i={key:e,data:t,timestamp:r.getCurrTime(),visitedTime:r.getCurrTime(),priority:n.priority,expires:n.expires,type:typeof t,byteSize:0};return i.byteSize=r.getByteLength(JSON.stringify(i)),i.byteSize=r.getByteLength(JSON.stringify(i)),i},e.prototype.configure=function(e){return e?(e.keyPrefix&&i.warn("Don't try to configure keyPrefix!"),this.config=Object.assign({},this.config,e,e.Cache),this.checkConfig(),this.config):this.config},e}();t.default=o},function(e,t,n){"use strict";var r=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]s)return"[Array]";for(var n=Math.min(a,e.length),r=e.length-n,i=[],o=0;o1&&i.push("... ".concat(r," more items"));return"["+i.join(", ")+"]"}(e,n);return function(e,t){var n=Object.keys(e);if(0===n.length)return"{}";if(t.length>s)return"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){var n=e.constructor.name;if("string"==typeof n)return n}return t}(e)+"]";return"{ "+n.map(function(n){var r=u(e[n],t);return n+": "+r}).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.prototype.toString;e.prototype.toJSON=t,e.prototype.inspect=t,i.default&&(e.prototype[i.default]=t)};var r,i=(r=n(636))&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.syntaxError=function(e,t,n){return new r.GraphQLError("Syntax Error: ".concat(n),void 0,e,[t])};var r=n(1032)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLocation=function(e,t){var n,r=/\r\n|[\n\r]/g,i=1,o=t+1;for(;(n=r.exec(e.body))&&n.index",EOF:"",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});t.TokenKind=r},function(e,t,n){"use strict";function r(e){for(var t=null,n=1;n0&&o(t[0]);)t.shift();for(;t.length>0&&o(t[t.length-1]);)t.pop();return t.join("\n")},t.getBlockStringIndentation=r,t.printBlockString=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=-1===e.indexOf("\n"),i=" "===e[0]||"\t"===e[0],o='"'===e[e.length-1],a=!r||o||n,s="";!a||r&&i||(s+="\n"+t);s+=t?e.replace(/\n/g,"\n"+t):e,a&&(s+="\n");return'"""'+s.replace(/"""/g,'\\"""')+'"""'}},function(e,t,n){var r=n(643),i=n(648),o=n(156),a=n(649),s=n(323),u=n(268);e.exports=function(e,t,n){for(var c=-1,l=(t=r(t,e)).length,d=!1;++c-1&&e%1==0&&eh))return!1;var f=l.get(e);if(f&&l.get(t))return f==t;var g=-1,m=!0,y=n&s?new r:void 0;for(l.set(e,t),l.set(t,e);++g=n.length)throw new Error("Yup.reach cannot resolve an array item at index: "+i+", in the path: "+t+". because there is no value at that index. ");n=n[p]}}if(!d){if(e=e.resolve({context:r,parent:s,value:n}),!(0,o.default)(e,"fields")||!(0,o.default)(e.fields,h))throw new Error("The schema does not contain the path: "+t+". (failed at: "+c+' which is a type: "'+e._type+'") ');e=e.fields[h],s=n,n=n&&n[h],u=h,c=l?"["+i+"]":"."+i}}),e&&(e=e.resolve({context:r,parent:s,value:n})),{schema:e,parent:s,parentPath:u}):{parent:s,parentPath:t,schema:e.resolve({context:r,parent:s,value:n})}}var u=function(e,t,n,r){return s(e,t,n,r).schema};t.default=u},function(e,t){e.exports=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}},function(e,t){e.exports=function(e,t){return t||(t=e.slice(0)),e.raw=t,e}},function(e,t,n){var r=n(1145),i=n(1146),o=n(1149),a=RegExp("['’]","g");e.exports=function(e){return function(t){return r(o(i(t).replace(a,"")),e,"")}}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r>15;--o>=0;){var u=32767&this[e],c=this[e++]>>15,l=s*u+c*a;i=((u=a*u+((32767&l)<<15)+n[r]+(1073741823&i))>>>30)+(l>>>15)+s*c+(i>>>30),n[r++]=1073741823&u}return i},r=30):g&&"Netscape"!=navigator.appName?(p.prototype.am=function(e,t,n,r,i,o){for(;--o>=0;){var a=t*this[e++]+n[r]+i;i=Math.floor(a/67108864),n[r++]=67108863&a}return i},r=26):(p.prototype.am=function(e,t,n,r,i,o){for(var a=16383&t,s=t>>14;--o>=0;){var u=16383&this[e],c=this[e++]>>14,l=s*u+c*a;i=((u=a*u+((16383&l)<<14)+n[r]+i)>>28)+(l>>14)+s*c,n[r++]=268435455&u}return i},r=28),p.prototype.DB=r,p.prototype.DM=(1<>>16)&&(e=t,n+=16),0!=(t=e>>8)&&(e=t,n+=8),0!=(t=e>>4)&&(e=t,n+=4),0!=(t=e>>2)&&(e=t,n+=2),0!=(t=e>>1)&&(e=t,n+=1),n}function I(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<0&&this.m.subTo(t,t),t},I.prototype.revert=function(e){var t=f();return e.copyTo(t),this.reduce(t),t},I.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t>15)*this.mpl&this.um)<<15)&e.DM;for(e[n=t+this.m.t]+=this.m.am(0,r,e,t,0,this.m.t);e[n]>=e.DV;)e[n]-=e.DV,e[++n]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},I.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},I.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},p.prototype.copyTo=function(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},p.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},p.prototype.fromString=function(e,t){var n;if(16==t)n=4;else if(8==t)n=3;else if(2==t)n=1;else if(32==t)n=5;else{if(4!=t)throw new Error("Only radix 2, 4, 8, 16, 32 are supported");n=2}this.t=0,this.s=0;for(var r=e.length,i=!1,o=0;--r>=0;){var a=w(e,r);a<0?"-"==e.charAt(r)&&(i=!0):(i=!1,0==o?this[this.t++]=a:o+n>this.DB?(this[this.t-1]|=(a&(1<>this.DB-o):this[this.t-1]|=a<=this.DB&&(o-=this.DB))}this.clamp(),i&&p.ZERO.subTo(this,this)},p.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t},p.prototype.dlShiftTo=function(e,t){var n;for(n=this.t-1;n>=0;--n)t[n+e]=this[n];for(n=e-1;n>=0;--n)t[n]=0;t.t=this.t+e,t.s=this.s},p.prototype.drShiftTo=function(e,t){for(var n=e;n=0;--n)t[n+a+1]=this[n]>>i|s,s=(this[n]&o)<=0;--n)t[n]=0;t[a]=s,t.t=this.t+a+1,t.s=this.s,t.clamp()},p.prototype.rShiftTo=function(e,t){t.s=this.s;var n=Math.floor(e/this.DB);if(n>=this.t)t.t=0;else{var r=e%this.DB,i=this.DB-r,o=(1<>r;for(var a=n+1;a>r;r>0&&(t[this.t-n-1]|=(this.s&o)<>=this.DB;if(e.t>=this.DB;r+=this.s}else{for(r+=this.s;n>=this.DB;r-=e.s}t.s=r<0?-1:0,r<-1?t[n++]=this.DV+r:r>0&&(t[n++]=r),t.t=n,t.clamp()},p.prototype.multiplyTo=function(e,t){var n=this.abs(),r=e.abs(),i=n.t;for(t.t=i+r.t;--i>=0;)t[i]=0;for(i=0;i=0;)e[n]=0;for(n=0;n=t.DV&&(e[n+t.t]-=t.DV,e[n+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(n,t[n],e,2*n,0,1)),e.s=0,e.clamp()},p.prototype.divRemTo=function(e,t,n){var r=e.abs();if(!(r.t<=0)){var i=this.abs();if(i.t0?(r.lShiftTo(u,o),i.lShiftTo(u,n)):(r.copyTo(o),i.copyTo(n));var c=o.t,l=o[c-1];if(0!=l){var d=l*(1<1?o[c-2]>>this.F2:0),h=this.FV/d,g=(1<=0&&(n[n.t++]=1,n.subTo(b,n)),p.ONE.dlShiftTo(c,b),b.subTo(o,o);o.t=0;){var _=n[--y]==l?this.DM:Math.floor(n[y]*h+(n[y-1]+m)*g);if((n[y]+=o.am(0,_,n,v,0,c))<_)for(o.dlShiftTo(v,b),n.subTo(b,n);n[y]<--_;)n.subTo(b,n)}null!=t&&(n.drShiftTo(c,t),a!=s&&p.ZERO.subTo(t,t)),n.t=c,n.clamp(),u>0&&n.rShiftTo(u,n),a<0&&p.ZERO.subTo(n,n)}}},p.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(0==(1&e))return 0;var t=3&e;return(t=(t=(t=(t=t*(2-(15&e)*t)&15)*(2-(255&e)*t)&255)*(2-((65535&e)*t&65535))&65535)*(2-e*t%this.DV)%this.DV)>0?this.DV-t:-t},p.prototype.addTo=function(e,t){for(var n=0,r=0,i=Math.min(e.t,this.t);n>=this.DB;if(e.t>=this.DB;r+=this.s}else{for(r+=this.s;n>=this.DB;r+=e.s}t.s=r<0?-1:0,r>0?t[n++]=r:r<-1&&(t[n++]=this.DV+r),t.t=n,t.clamp()},p.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString();var t;if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else{if(4!=e)throw new Error("Only radix 2, 4, 8, 16, 32 are supported");t=2}var n,r=(1<0)for(s>s)>0&&(i=!0,o=_(n));a>=0;)s>(s+=this.DB-t)):(n=this[a]>>(s-=t)&r,s<=0&&(s+=this.DB,--a)),n>0&&(i=!0),i&&(o+=_(n));return i?o:"0"},p.prototype.negate=function(){var e=f();return p.ZERO.subTo(this,e),e},p.prototype.abs=function(){return this.s<0?this.negate():this},p.prototype.compareTo=function(e){var t=this.s-e.s;if(0!=t)return t;var n=this.t;if(0!=(t=n-e.t))return this.s<0?-t:t;for(;--n>=0;)if(0!=(t=this[n]-e[n]))return t;return 0},p.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+C(this[this.t-1]^this.s&this.DM)},p.prototype.mod=function(e){var t=f();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(p.ZERO)>0&&e.subTo(t,t),t},p.prototype.equals=function(e){return 0==this.compareTo(e)},p.prototype.add=function(e){var t=f();return this.addTo(e,t),t},p.prototype.subtract=function(e){var t=f();return this.subTo(e,t),t},p.prototype.multiply=function(e){var t=f();return this.multiplyTo(e,t),t},p.prototype.divide=function(e){var t=f();return this.divRemTo(e,t,null),t},p.prototype.modPow=function(e,t,n){var r,i=e.bitLength(),o=S(1),a=new I(t);if(i<=0)return o;r=i<18?1:i<48?3:i<144?4:i<768?5:6;var s=new Array,u=3,c=r-1,l=(1<1){var d=f();for(a.sqrTo(s[1],d);u<=l;)s[u]=f(),a.mulTo(d,s[u-2],s[u]),u+=2}var h,p,g=e.t-1,m=!0,y=f();for(i=C(e[g])-1;g>=0;){for(i>=c?h=e[g]>>i-c&l:(h=(e[g]&(1<0&&(h|=e[g-1]>>this.DB+i-c)),u=r;0==(1&h);)h>>=1,--u;if((i-=u)<0&&(i+=this.DB,--g),m)s[h].copyTo(o),m=!1;else{for(;u>1;)a.sqrTo(o,y),a.sqrTo(y,o),u-=2;u>0?a.sqrTo(o,y):(p=o,o=y,y=p),a.mulTo(y,s[h],o)}for(;g>=0&&0==(e[g]&1<0&&void 0!==arguments[0]?arguments[0]:{}).AccessToken;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n||""))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(E); /*! * Copyright 2016 Amazon.com, * Inc. or its affiliates. All Rights Reserved. * * Licensed under the Amazon Software License (the "License"). * You may not use this file except in compliance with the * License. A copy of the License is located at * * http://aws.amazon.com/asl/ * * or in the "license" file accompanying this file. This file is * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, express or implied. See the License * for the specific language governing permissions and * limitations under the License. */ var T=function(e){function t(){var n=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).IdToken;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n||""))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(E); /*! * Copyright 2016 Amazon.com, * Inc. or its affiliates. All Rights Reserved. * * Licensed under the Amazon Software License (the "License"). * You may not use this file except in compliance with the * License. A copy of the License is located at * * http://aws.amazon.com/asl/ * * or in the "license" file accompanying this file. This file is * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, express or implied. See the License * for the specific language governing permissions and * limitations under the License. */ var k=function(){function e(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).RefreshToken;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.token=t||""}return e.prototype.getToken=function(){return this.token},e}(),D=n(192),O=n.n(D); /*! * Copyright 2016 Amazon.com, * Inc. or its affiliates. All Rights Reserved. * * Licensed under the Amazon Software License (the "License"). * You may not use this file except in compliance with the * License. A copy of the License is located at * * http://aws.amazon.com/asl/ * * or in the "license" file accompanying this file. This file is * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, express or implied. See the License * for the specific language governing permissions and * limitations under the License. */ var A=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.IdToken,r=t.RefreshToken,i=t.AccessToken,o=t.ClockDrift;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),null==i||null==n)throw new Error("Id token and Access Token must be present.");this.idToken=n,this.refreshToken=r,this.accessToken=i,this.clockDrift=void 0===o?this.calculateClockDrift():o}return e.prototype.getIdToken=function(){return this.idToken},e.prototype.getRefreshToken=function(){return this.refreshToken},e.prototype.getAccessToken=function(){return this.accessToken},e.prototype.getClockDrift=function(){return this.clockDrift},e.prototype.calculateClockDrift=function(){return Math.floor(new Date/1e3)-Math.min(this.accessToken.getIssuedAt(),this.idToken.getIssuedAt())},e.prototype.isValid=function(){var e=Math.floor(new Date/1e3)-this.clockDrift;return e0&&void 0!==arguments[0]?arguments[0]:{},n=t.Name,r=t.Value;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.Name=n||"",this.Value=r||""}return e.prototype.getValue=function(){return this.Value},e.prototype.setValue=function(e){return this.Value=e,this},e.prototype.getName=function(){return this.Name},e.prototype.setName=function(e){return this.Name=e,this},e.prototype.toString=function(){return JSON.stringify(this)},e.prototype.toJSON=function(){return{Name:this.Name,Value:this.Value}},e}();function F(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")} /*! * Copyright 2016 Amazon.com, * Inc. or its affiliates. All Rights Reserved. * * Licensed under the Amazon Software License (the "License"). * You may not use this file except in compliance with the * License. A copy of the License is located at * * http://aws.amazon.com/asl/ * * or in the "license" file accompanying this file. This file is * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, express or implied. See the License * for the specific language governing permissions and * limitations under the License. */var B={},U=function(){function e(){F(this,e)}return e.setItem=function(e,t){return B[e]=t,B[e]},e.getItem=function(e){return Object.prototype.hasOwnProperty.call(B,e)?B[e]:void 0},e.removeItem=function(e){return delete B[e]},e.clear=function(){return B={}},e}(),W=function(){function e(){F(this,e);try{this.storageWindow=window.localStorage,this.storageWindow.setItem("aws.cognito.test-ls",1),this.storageWindow.removeItem("aws.cognito.test-ls")}catch(e){this.storageWindow=U}}return e.prototype.getStorage=function(){return this.storageWindow},e}(); /*! * Copyright 2016 Amazon.com, * Inc. or its affiliates. All Rights Reserved. * * Licensed under the Amazon Software License (the "License"). * You may not use this file except in compliance with the * License. A copy of the License is located at * * http://aws.amazon.com/asl/ * * or in the "license" file accompanying this file. This file is * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, express or implied. See the License * for the specific language governing permissions and * limitations under the License. */ var H=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),null==t||null==t.Username||null==t.Pool)throw new Error("Username and pool information are required.");this.username=t.Username||"",this.pool=t.Pool,this.Session=null,this.client=t.Pool.client,this.signInUserSession=null,this.authenticationFlowType="USER_SRP_AUTH",this.storage=t.Storage||(new W).getStorage(),this.keyPrefix="CognitoIdentityServiceProvider."+this.pool.getClientId(),this.userDataKey=this.keyPrefix+"."+this.username+".userData"}return e.prototype.setSignInUserSession=function(e){this.clearCachedUserData(),this.signInUserSession=e,this.cacheTokens()},e.prototype.getSignInUserSession=function(){return this.signInUserSession},e.prototype.getUsername=function(){return this.username},e.prototype.getAuthenticationFlowType=function(){return this.authenticationFlowType},e.prototype.setAuthenticationFlowType=function(e){this.authenticationFlowType=e},e.prototype.initiateAuth=function(e,t){var n=this,r=e.getAuthParameters();r.USERNAME=this.username;var i={AuthFlow:"CUSTOM_AUTH",ClientId:this.pool.getClientId(),AuthParameters:r,ClientMetadata:e.getValidationData()};this.getUserContextData()&&(i.UserContextData=this.getUserContextData()),this.client.request("InitiateAuth",i,function(e,r){if(e)return t.onFailure(e);var i=r.ChallengeName,o=r.ChallengeParameters;return"CUSTOM_CHALLENGE"===i?(n.Session=r.Session,t.customChallenge(o)):(n.signInUserSession=n.getCognitoUserSession(r.AuthenticationResult),n.cacheTokens(),t.onSuccess(n.signInUserSession))})},e.prototype.authenticateUser=function(e,t){return"USER_PASSWORD_AUTH"===this.authenticationFlowType?this.authenticateUserPlainUsernamePassword(e,t):"USER_SRP_AUTH"===this.authenticationFlowType||"CUSTOM_AUTH"===this.authenticationFlowType?this.authenticateUserDefaultAuth(e,t):t.onFailure(new Error("Authentication flow type is invalid."))},e.prototype.authenticateUserDefaultAuth=function(e,t){var n=this,r=new N(this.pool.getUserPoolId().split("_")[1]),i=new R,a=void 0,u=void 0,c={};null!=this.deviceKey&&(c.DEVICE_KEY=this.deviceKey),c.USERNAME=this.username,r.getLargeAValue(function(l,p){l&&t.onFailure(l),c.SRP_A=p.toString(16),"CUSTOM_AUTH"===n.authenticationFlowType&&(c.CHALLENGE_NAME="SRP_A");var f={AuthFlow:n.authenticationFlowType,ClientId:n.pool.getClientId(),AuthParameters:c,ClientMetadata:e.getValidationData()};n.getUserContextData(n.username)&&(f.UserContextData=n.getUserContextData(n.username)),n.client.request("InitiateAuth",f,function(c,l){if(c)return t.onFailure(c);var p=l.ChallengeParameters;n.username=p.USER_ID_FOR_SRP,a=new h(p.SRP_B,16),u=new h(p.SALT,16),n.getCachedDeviceKeyAndPassword(),r.getPasswordAuthenticationKey(n.username,e.getPassword(),a,u,function(e,a){e&&t.onFailure(e);var u=i.getNowString(),c=s.a.lib.WordArray.create(o.Buffer.concat([o.Buffer.from(n.pool.getUserPoolId().split("_")[1],"utf8"),o.Buffer.from(n.username,"utf8"),o.Buffer.from(p.SECRET_BLOCK,"base64"),o.Buffer.from(u,"utf8")])),h=s.a.lib.WordArray.create(a),f=O.a.stringify(d()(c,h)),g={};g.USERNAME=n.username,g.PASSWORD_CLAIM_SECRET_BLOCK=p.SECRET_BLOCK,g.TIMESTAMP=u,g.PASSWORD_CLAIM_SIGNATURE=f,null!=n.deviceKey&&(g.DEVICE_KEY=n.deviceKey);var m={ChallengeName:"PASSWORD_VERIFIER",ClientId:n.pool.getClientId(),ChallengeResponses:g,Session:l.Session};n.getUserContextData()&&(m.UserContextData=n.getUserContextData()),function e(t,r){return n.client.request("RespondToAuthChallenge",t,function(i,o){return i&&"ResourceNotFoundException"===i.code&&-1!==i.message.toLowerCase().indexOf("device")?(g.DEVICE_KEY=null,n.deviceKey=null,n.randomPassword=null,n.deviceGroupKey=null,n.clearCachedDeviceKeyAndPassword(),e(t,r)):r(i,o)})}(m,function(e,i){return e?t.onFailure(e):n.authenticateUserInternal(i,r,t)})})})})},e.prototype.authenticateUserPlainUsernamePassword=function(e,t){var n=this,r={};if(r.USERNAME=this.username,r.PASSWORD=e.getPassword(),r.PASSWORD){var i=new N(this.pool.getUserPoolId().split("_")[1]);this.getCachedDeviceKeyAndPassword(),null!=this.deviceKey&&(r.DEVICE_KEY=this.deviceKey);var o={AuthFlow:"USER_PASSWORD_AUTH",ClientId:this.pool.getClientId(),AuthParameters:r,ClientMetadata:e.getValidationData()};this.getUserContextData(this.username)&&(o.UserContextData=this.getUserContextData(this.username)),this.client.request("InitiateAuth",o,function(e,r){return e?t.onFailure(e):n.authenticateUserInternal(r,i,t)})}else t.onFailure(new Error("PASSWORD parameter is required"))},e.prototype.authenticateUserInternal=function(e,t,n){var r=this,i=e.ChallengeName,a=e.ChallengeParameters;if("SMS_MFA"===i)return this.Session=e.Session,n.mfaRequired(i,a);if("SELECT_MFA_TYPE"===i)return this.Session=e.Session,n.selectMFAType(i,a);if("MFA_SETUP"===i)return this.Session=e.Session,n.mfaSetup(i,a);if("SOFTWARE_TOKEN_MFA"===i)return this.Session=e.Session,n.totpRequired(i,a);if("CUSTOM_CHALLENGE"===i)return this.Session=e.Session,n.customChallenge(a);if("NEW_PASSWORD_REQUIRED"===i){this.Session=e.Session;var s=null,u=null,c=[],l=t.getNewPasswordRequiredChallengeUserAttributePrefix();if(a&&(s=JSON.parse(e.ChallengeParameters.userAttributes),u=JSON.parse(e.ChallengeParameters.requiredAttributes)),u)for(var d=0;d>15;--o>=0;){var u=32767&this[e],c=this[e++]>>15,l=s*u+c*a;i=((u=a*u+((32767&l)<<15)+n[r]+(1073741823&i))>>>30)+(l>>>15)+s*c+(i>>>30),n[r++]=1073741823&u}return i},r=30):g&&"Netscape"!=navigator.appName?(p.prototype.am=function(e,t,n,r,i,o){for(;--o>=0;){var a=t*this[e++]+n[r]+i;i=Math.floor(a/67108864),n[r++]=67108863&a}return i},r=26):(p.prototype.am=function(e,t,n,r,i,o){for(var a=16383&t,s=t>>14;--o>=0;){var u=16383&this[e],c=this[e++]>>14,l=s*u+c*a;i=((u=a*u+((16383&l)<<14)+n[r]+i)>>28)+(l>>14)+s*c,n[r++]=268435455&u}return i},r=28),p.prototype.DB=r,p.prototype.DM=(1<>>16)&&(e=t,n+=16),0!=(t=e>>8)&&(e=t,n+=8),0!=(t=e>>4)&&(e=t,n+=4),0!=(t=e>>2)&&(e=t,n+=2),0!=(t=e>>1)&&(e=t,n+=1),n}function I(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<0&&this.m.subTo(t,t),t},I.prototype.revert=function(e){var t=f();return e.copyTo(t),this.reduce(t),t},I.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t>15)*this.mpl&this.um)<<15)&e.DM;for(e[n=t+this.m.t]+=this.m.am(0,r,e,t,0,this.m.t);e[n]>=e.DV;)e[n]-=e.DV,e[++n]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},I.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},I.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},p.prototype.copyTo=function(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},p.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},p.prototype.fromString=function(e,t){var n;if(16==t)n=4;else if(8==t)n=3;else if(2==t)n=1;else if(32==t)n=5;else{if(4!=t)throw new Error("Only radix 2, 4, 8, 16, 32 are supported");n=2}this.t=0,this.s=0;for(var r=e.length,i=!1,o=0;--r>=0;){var a=w(e,r);a<0?"-"==e.charAt(r)&&(i=!0):(i=!1,0==o?this[this.t++]=a:o+n>this.DB?(this[this.t-1]|=(a&(1<>this.DB-o):this[this.t-1]|=a<=this.DB&&(o-=this.DB))}this.clamp(),i&&p.ZERO.subTo(this,this)},p.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t},p.prototype.dlShiftTo=function(e,t){var n;for(n=this.t-1;n>=0;--n)t[n+e]=this[n];for(n=e-1;n>=0;--n)t[n]=0;t.t=this.t+e,t.s=this.s},p.prototype.drShiftTo=function(e,t){for(var n=e;n=0;--n)t[n+a+1]=this[n]>>i|s,s=(this[n]&o)<=0;--n)t[n]=0;t[a]=s,t.t=this.t+a+1,t.s=this.s,t.clamp()},p.prototype.rShiftTo=function(e,t){t.s=this.s;var n=Math.floor(e/this.DB);if(n>=this.t)t.t=0;else{var r=e%this.DB,i=this.DB-r,o=(1<>r;for(var a=n+1;a>r;r>0&&(t[this.t-n-1]|=(this.s&o)<>=this.DB;if(e.t>=this.DB;r+=this.s}else{for(r+=this.s;n>=this.DB;r-=e.s}t.s=r<0?-1:0,r<-1?t[n++]=this.DV+r:r>0&&(t[n++]=r),t.t=n,t.clamp()},p.prototype.multiplyTo=function(e,t){var n=this.abs(),r=e.abs(),i=n.t;for(t.t=i+r.t;--i>=0;)t[i]=0;for(i=0;i=0;)e[n]=0;for(n=0;n=t.DV&&(e[n+t.t]-=t.DV,e[n+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(n,t[n],e,2*n,0,1)),e.s=0,e.clamp()},p.prototype.divRemTo=function(e,t,n){var r=e.abs();if(!(r.t<=0)){var i=this.abs();if(i.t0?(r.lShiftTo(u,o),i.lShiftTo(u,n)):(r.copyTo(o),i.copyTo(n));var c=o.t,l=o[c-1];if(0!=l){var d=l*(1<1?o[c-2]>>this.F2:0),h=this.FV/d,g=(1<=0&&(n[n.t++]=1,n.subTo(b,n)),p.ONE.dlShiftTo(c,b),b.subTo(o,o);o.t=0;){var _=n[--y]==l?this.DM:Math.floor(n[y]*h+(n[y-1]+m)*g);if((n[y]+=o.am(0,_,n,v,0,c))<_)for(o.dlShiftTo(v,b),n.subTo(b,n);n[y]<--_;)n.subTo(b,n)}null!=t&&(n.drShiftTo(c,t),a!=s&&p.ZERO.subTo(t,t)),n.t=c,n.clamp(),u>0&&n.rShiftTo(u,n),a<0&&p.ZERO.subTo(n,n)}}},p.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(0==(1&e))return 0;var t=3&e;return(t=(t=(t=(t=t*(2-(15&e)*t)&15)*(2-(255&e)*t)&255)*(2-((65535&e)*t&65535))&65535)*(2-e*t%this.DV)%this.DV)>0?this.DV-t:-t},p.prototype.addTo=function(e,t){for(var n=0,r=0,i=Math.min(e.t,this.t);n>=this.DB;if(e.t>=this.DB;r+=this.s}else{for(r+=this.s;n>=this.DB;r+=e.s}t.s=r<0?-1:0,r>0?t[n++]=r:r<-1&&(t[n++]=this.DV+r),t.t=n,t.clamp()},p.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString();var t;if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else{if(4!=e)throw new Error("Only radix 2, 4, 8, 16, 32 are supported");t=2}var n,r=(1<0)for(s>s)>0&&(i=!0,o=_(n));a>=0;)s>(s+=this.DB-t)):(n=this[a]>>(s-=t)&r,s<=0&&(s+=this.DB,--a)),n>0&&(i=!0),i&&(o+=_(n));return i?o:"0"},p.prototype.negate=function(){var e=f();return p.ZERO.subTo(this,e),e},p.prototype.abs=function(){return this.s<0?this.negate():this},p.prototype.compareTo=function(e){var t=this.s-e.s;if(0!=t)return t;var n=this.t;if(0!=(t=n-e.t))return this.s<0?-t:t;for(;--n>=0;)if(0!=(t=this[n]-e[n]))return t;return 0},p.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+C(this[this.t-1]^this.s&this.DM)},p.prototype.mod=function(e){var t=f();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(p.ZERO)>0&&e.subTo(t,t),t},p.prototype.equals=function(e){return 0==this.compareTo(e)},p.prototype.add=function(e){var t=f();return this.addTo(e,t),t},p.prototype.subtract=function(e){var t=f();return this.subTo(e,t),t},p.prototype.multiply=function(e){var t=f();return this.multiplyTo(e,t),t},p.prototype.divide=function(e){var t=f();return this.divRemTo(e,t,null),t},p.prototype.modPow=function(e,t,n){var r,i=e.bitLength(),o=S(1),a=new I(t);if(i<=0)return o;r=i<18?1:i<48?3:i<144?4:i<768?5:6;var s=new Array,u=3,c=r-1,l=(1<1){var d=f();for(a.sqrTo(s[1],d);u<=l;)s[u]=f(),a.mulTo(d,s[u-2],s[u]),u+=2}var h,p,g=e.t-1,m=!0,y=f();for(i=C(e[g])-1;g>=0;){for(i>=c?h=e[g]>>i-c&l:(h=(e[g]&(1<0&&(h|=e[g-1]>>this.DB+i-c)),u=r;0==(1&h);)h>>=1,--u;if((i-=u)<0&&(i+=this.DB,--g),m)s[h].copyTo(o),m=!1;else{for(;u>1;)a.sqrTo(o,y),a.sqrTo(y,o),u-=2;u>0?a.sqrTo(o,y):(p=o,o=y,y=p),a.mulTo(y,s[h],o)}for(;g>=0&&0==(e[g]&1<0&&void 0!==arguments[0]?arguments[0]:{}).AccessToken;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n||""))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(E); /*! * Copyright 2016 Amazon.com, * Inc. or its affiliates. All Rights Reserved. * * Licensed under the Amazon Software License (the "License"). * You may not use this file except in compliance with the * License. A copy of the License is located at * * http://aws.amazon.com/asl/ * * or in the "license" file accompanying this file. This file is * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, express or implied. See the License * for the specific language governing permissions and * limitations under the License. */ var T=function(e){function t(){var n=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).IdToken;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n||""))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(E); /*! * Copyright 2016 Amazon.com, * Inc. or its affiliates. All Rights Reserved. * * Licensed under the Amazon Software License (the "License"). * You may not use this file except in compliance with the * License. A copy of the License is located at * * http://aws.amazon.com/asl/ * * or in the "license" file accompanying this file. This file is * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, express or implied. See the License * for the specific language governing permissions and * limitations under the License. */ var k=function(){function e(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).RefreshToken;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.token=t||""}return e.prototype.getToken=function(){return this.token},e}(),D=n(192),O=n.n(D); /*! * Copyright 2016 Amazon.com, * Inc. or its affiliates. All Rights Reserved. * * Licensed under the Amazon Software License (the "License"). * You may not use this file except in compliance with the * License. A copy of the License is located at * * http://aws.amazon.com/asl/ * * or in the "license" file accompanying this file. This file is * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, express or implied. See the License * for the specific language governing permissions and * limitations under the License. */ var A=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.IdToken,r=t.RefreshToken,i=t.AccessToken,o=t.ClockDrift;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),null==i||null==n)throw new Error("Id token and Access Token must be present.");this.idToken=n,this.refreshToken=r,this.accessToken=i,this.clockDrift=void 0===o?this.calculateClockDrift():o}return e.prototype.getIdToken=function(){return this.idToken},e.prototype.getRefreshToken=function(){return this.refreshToken},e.prototype.getAccessToken=function(){return this.accessToken},e.prototype.getClockDrift=function(){return this.clockDrift},e.prototype.calculateClockDrift=function(){return Math.floor(new Date/1e3)-Math.min(this.accessToken.getIssuedAt(),this.idToken.getIssuedAt())},e.prototype.isValid=function(){var e=Math.floor(new Date/1e3)-this.clockDrift;return e0&&void 0!==arguments[0]?arguments[0]:{},n=t.Name,r=t.Value;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.Name=n||"",this.Value=r||""}return e.prototype.getValue=function(){return this.Value},e.prototype.setValue=function(e){return this.Value=e,this},e.prototype.getName=function(){return this.Name},e.prototype.setName=function(e){return this.Name=e,this},e.prototype.toString=function(){return JSON.stringify(this)},e.prototype.toJSON=function(){return{Name:this.Name,Value:this.Value}},e}();function F(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")} /*! * Copyright 2016 Amazon.com, * Inc. or its affiliates. All Rights Reserved. * * Licensed under the Amazon Software License (the "License"). * You may not use this file except in compliance with the * License. A copy of the License is located at * * http://aws.amazon.com/asl/ * * or in the "license" file accompanying this file. This file is * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, express or implied. See the License * for the specific language governing permissions and * limitations under the License. */var B={},U=function(){function e(){F(this,e)}return e.setItem=function(e,t){return B[e]=t,B[e]},e.getItem=function(e){return Object.prototype.hasOwnProperty.call(B,e)?B[e]:void 0},e.removeItem=function(e){return delete B[e]},e.clear=function(){return B={}},e}(),W=function(){function e(){F(this,e);try{this.storageWindow=window.localStorage,this.storageWindow.setItem("aws.cognito.test-ls",1),this.storageWindow.removeItem("aws.cognito.test-ls")}catch(e){this.storageWindow=U}}return e.prototype.getStorage=function(){return this.storageWindow},e}(); /*! * Copyright 2016 Amazon.com, * Inc. or its affiliates. All Rights Reserved. * * Licensed under the Amazon Software License (the "License"). * You may not use this file except in compliance with the * License. A copy of the License is located at * * http://aws.amazon.com/asl/ * * or in the "license" file accompanying this file. This file is * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, express or implied. See the License * for the specific language governing permissions and * limitations under the License. */ var H=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),null==t||null==t.Username||null==t.Pool)throw new Error("Username and pool information are required.");this.username=t.Username||"",this.pool=t.Pool,this.Session=null,this.client=t.Pool.client,this.signInUserSession=null,this.authenticationFlowType="USER_SRP_AUTH",this.storage=t.Storage||(new W).getStorage(),this.keyPrefix="CognitoIdentityServiceProvider."+this.pool.getClientId(),this.userDataKey=this.keyPrefix+"."+this.username+".userData"}return e.prototype.setSignInUserSession=function(e){this.clearCachedUserData(),this.signInUserSession=e,this.cacheTokens()},e.prototype.getSignInUserSession=function(){return this.signInUserSession},e.prototype.getUsername=function(){return this.username},e.prototype.getAuthenticationFlowType=function(){return this.authenticationFlowType},e.prototype.setAuthenticationFlowType=function(e){this.authenticationFlowType=e},e.prototype.initiateAuth=function(e,t){var n=this,r=e.getAuthParameters();r.USERNAME=this.username;var i={AuthFlow:"CUSTOM_AUTH",ClientId:this.pool.getClientId(),AuthParameters:r,ClientMetadata:e.getValidationData()};this.getUserContextData()&&(i.UserContextData=this.getUserContextData()),this.client.request("InitiateAuth",i,function(e,r){if(e)return t.onFailure(e);var i=r.ChallengeName,o=r.ChallengeParameters;return"CUSTOM_CHALLENGE"===i?(n.Session=r.Session,t.customChallenge(o)):(n.signInUserSession=n.getCognitoUserSession(r.AuthenticationResult),n.cacheTokens(),t.onSuccess(n.signInUserSession))})},e.prototype.authenticateUser=function(e,t){return"USER_PASSWORD_AUTH"===this.authenticationFlowType?this.authenticateUserPlainUsernamePassword(e,t):"USER_SRP_AUTH"===this.authenticationFlowType||"CUSTOM_AUTH"===this.authenticationFlowType?this.authenticateUserDefaultAuth(e,t):t.onFailure(new Error("Authentication flow type is invalid."))},e.prototype.authenticateUserDefaultAuth=function(e,t){var n=this,r=new N(this.pool.getUserPoolId().split("_")[1]),i=new R,a=void 0,u=void 0,c={};null!=this.deviceKey&&(c.DEVICE_KEY=this.deviceKey),c.USERNAME=this.username,r.getLargeAValue(function(l,p){l&&t.onFailure(l),c.SRP_A=p.toString(16),"CUSTOM_AUTH"===n.authenticationFlowType&&(c.CHALLENGE_NAME="SRP_A");var f={AuthFlow:n.authenticationFlowType,ClientId:n.pool.getClientId(),AuthParameters:c,ClientMetadata:e.getValidationData()};n.getUserContextData(n.username)&&(f.UserContextData=n.getUserContextData(n.username)),n.client.request("InitiateAuth",f,function(c,l){if(c)return t.onFailure(c);var p=l.ChallengeParameters;n.username=p.USER_ID_FOR_SRP,a=new h(p.SRP_B,16),u=new h(p.SALT,16),n.getCachedDeviceKeyAndPassword(),r.getPasswordAuthenticationKey(n.username,e.getPassword(),a,u,function(e,a){e&&t.onFailure(e);var u=i.getNowString(),c=s.a.lib.WordArray.create(o.Buffer.concat([o.Buffer.from(n.pool.getUserPoolId().split("_")[1],"utf8"),o.Buffer.from(n.username,"utf8"),o.Buffer.from(p.SECRET_BLOCK,"base64"),o.Buffer.from(u,"utf8")])),h=s.a.lib.WordArray.create(a),f=O.a.stringify(d()(c,h)),g={};g.USERNAME=n.username,g.PASSWORD_CLAIM_SECRET_BLOCK=p.SECRET_BLOCK,g.TIMESTAMP=u,g.PASSWORD_CLAIM_SIGNATURE=f,null!=n.deviceKey&&(g.DEVICE_KEY=n.deviceKey);var m={ChallengeName:"PASSWORD_VERIFIER",ClientId:n.pool.getClientId(),ChallengeResponses:g,Session:l.Session};n.getUserContextData()&&(m.UserContextData=n.getUserContextData()),function e(t,r){return n.client.request("RespondToAuthChallenge",t,function(i,o){return i&&"ResourceNotFoundException"===i.code&&-1!==i.message.toLowerCase().indexOf("device")?(g.DEVICE_KEY=null,n.deviceKey=null,n.randomPassword=null,n.deviceGroupKey=null,n.clearCachedDeviceKeyAndPassword(),e(t,r)):r(i,o)})}(m,function(e,i){return e?t.onFailure(e):n.authenticateUserInternal(i,r,t)})})})})},e.prototype.authenticateUserPlainUsernamePassword=function(e,t){var n=this,r={};if(r.USERNAME=this.username,r.PASSWORD=e.getPassword(),r.PASSWORD){var i=new N(this.pool.getUserPoolId().split("_")[1]);this.getCachedDeviceKeyAndPassword(),null!=this.deviceKey&&(r.DEVICE_KEY=this.deviceKey);var o={AuthFlow:"USER_PASSWORD_AUTH",ClientId:this.pool.getClientId(),AuthParameters:r,ClientMetadata:e.getValidationData()};this.getUserContextData(this.username)&&(o.UserContextData=this.getUserContextData(this.username)),this.client.request("InitiateAuth",o,function(e,r){return e?t.onFailure(e):n.authenticateUserInternal(r,i,t)})}else t.onFailure(new Error("PASSWORD parameter is required"))},e.prototype.authenticateUserInternal=function(e,t,n){var r=this,i=e.ChallengeName,a=e.ChallengeParameters;if("SMS_MFA"===i)return this.Session=e.Session,n.mfaRequired(i,a);if("SELECT_MFA_TYPE"===i)return this.Session=e.Session,n.selectMFAType(i,a);if("MFA_SETUP"===i)return this.Session=e.Session,n.mfaSetup(i,a);if("SOFTWARE_TOKEN_MFA"===i)return this.Session=e.Session,n.totpRequired(i,a);if("CUSTOM_CHALLENGE"===i)return this.Session=e.Session,n.customChallenge(a);if("NEW_PASSWORD_REQUIRED"===i){this.Session=e.Session;var s=null,u=null,c=[],l=t.getNewPasswordRequiredChallengeUserAttributePrefix();if(a&&(s=JSON.parse(e.ChallengeParameters.userAttributes),u=JSON.parse(e.ChallengeParameters.requiredAttributes)),u)for(var d=0;d=2&&o<=4&&(a<12||a>14)?"few":i&&1!=r&&(0==o||1==o)||i&&o>=5&&o<=9||i&&a>=12&&a<=14?"many":"other"},fields:{year:{displayName:"rok",relative:{0:"w tym roku",1:"w przyszłym roku","-1":"w zeszłym roku"},relativeTime:{future:{one:"za {0} rok",few:"za {0} lata",many:"za {0} lat",other:"za {0} roku"},past:{one:"{0} rok temu",few:"{0} lata temu",many:"{0} lat temu",other:"{0} roku temu"}}},"year-short":{displayName:"r.",relative:{0:"w tym roku",1:"w przyszłym roku","-1":"w zeszłym roku"},relativeTime:{future:{one:"za {0} rok",few:"za {0} lata",many:"za {0} lat",other:"za {0} roku"},past:{one:"{0} rok temu",few:"{0} lata temu",many:"{0} lat temu",other:"{0} roku temu"}}},month:{displayName:"miesiąc",relative:{0:"w tym miesiącu",1:"w przyszłym miesiącu","-1":"w zeszłym miesiącu"},relativeTime:{future:{one:"za {0} miesiąc",few:"za {0} miesiące",many:"za {0} miesięcy",other:"za {0} miesiąca"},past:{one:"{0} miesiąc temu",few:"{0} miesiące temu",many:"{0} miesięcy temu",other:"{0} miesiąca temu"}}},"month-short":{displayName:"mies.",relative:{0:"w tym miesiącu",1:"w przyszłym miesiącu","-1":"w zeszłym miesiącu"},relativeTime:{future:{one:"za {0} mies.",few:"za {0} mies.",many:"za {0} mies.",other:"za {0} mies."},past:{one:"{0} mies. temu",few:"{0} mies. temu",many:"{0} mies. temu",other:"{0} mies. temu"}}},day:{displayName:"dzień",relative:{0:"dzisiaj",1:"jutro",2:"pojutrze","-2":"przedwczoraj","-1":"wczoraj"},relativeTime:{future:{one:"za {0} dzień",few:"za {0} dni",many:"za {0} dni",other:"za {0} dnia"},past:{one:"{0} dzień temu",few:"{0} dni temu",many:"{0} dni temu",other:"{0} dnia temu"}}},"day-short":{displayName:"dzień",relative:{0:"dzisiaj",1:"jutro",2:"pojutrze","-2":"przedwczoraj","-1":"wczoraj"},relativeTime:{future:{one:"za {0} dzień",few:"za {0} dni",many:"za {0} dni",other:"za {0} dnia"},past:{one:"{0} dzień temu",few:"{0} dni temu",many:"{0} dni temu",other:"{0} dnia temu"}}},hour:{displayName:"godzina",relative:{0:"ta godzina"},relativeTime:{future:{one:"za {0} godzinę",few:"za {0} godziny",many:"za {0} godzin",other:"za {0} godziny"},past:{one:"{0} godzinę temu",few:"{0} godziny temu",many:"{0} godzin temu",other:"{0} godziny temu"}}},"hour-short":{displayName:"godz.",relative:{0:"ta godzina"},relativeTime:{future:{one:"za {0} godz.",few:"za {0} godz.",many:"za {0} godz.",other:"za {0} godz."},past:{one:"{0} godz. temu",few:"{0} godz. temu",many:"{0} godz. temu",other:"{0} godz. temu"}}},minute:{displayName:"minuta",relative:{0:"ta minuta"},relativeTime:{future:{one:"za {0} minutę",few:"za {0} minuty",many:"za {0} minut",other:"za {0} minuty"},past:{one:"{0} minutę temu",few:"{0} minuty temu",many:"{0} minut temu",other:"{0} minuty temu"}}},"minute-short":{displayName:"min",relative:{0:"ta minuta"},relativeTime:{future:{one:"za {0} min",few:"za {0} min",many:"za {0} min",other:"za {0} min"},past:{one:"{0} min temu",few:"{0} min temu",many:"{0} min temu",other:"{0} min temu"}}},second:{displayName:"sekunda",relative:{0:"teraz"},relativeTime:{future:{one:"za {0} sekundę",few:"za {0} sekundy",many:"za {0} sekund",other:"za {0} sekundy"},past:{one:"{0} sekundę temu",few:"{0} sekundy temu",many:"{0} sekund temu",other:"{0} sekundy temu"}}},"second-short":{displayName:"sek.",relative:{0:"teraz"},relativeTime:{future:{one:"za {0} sek.",few:"za {0} sek.",many:"za {0} sek.",other:"za {0} sek."},past:{one:"{0} sek. temu",few:"{0} sek. temu",many:"{0} sek. temu",other:"{0} sek. temu"}}}}}]}()},function(e,t,n){e.exports=n.p+"assets/a382eb7c7084787a556726e9590afbf7.svg"},function(e,t,n){e.exports=n.p+"assets/97863f841a50ad543bb3f7ee0d1da748.svg"},function(e,t,n){e.exports=n.p+"assets/462638f98cb781517de60473d9a6d7bd.svg"},function(e,t,n){e.exports=n.p+"assets/fde2330a2c037c3f9820b300e7197098.svg"},function(e,t,n){e.exports=n.p+"assets/89a42ea08d7bcf4d3e6b530fba843bea.svg"},function(e,t,n){e.exports=n.p+"assets/1da6e12c4d65fbdf80c6dafc56c693fc.svg"},function(e,t,n){e.exports=n.p+"assets/d275bd54afd454f004e7fc722de6af79.svg"},function(e,t,n){e.exports=n.p+"assets/9b571ec08c121f1ab5cca7f02d605049.svg"},function(e,t,n){e.exports=n.p+"assets/5eed0310b09b04ac16102ff0f887987b.svg"},function(e,t,n){e.exports=n.p+"assets/6c6a644897b09f585affcdabbd080e35.svg"},function(e){e.exports={ERROR_PREFIX:"app.amplify.error"}},function(e){e.exports={__schema:{types:[{kind:"UNION",name:"StoneItem",possibleTypes:[{name:"Lesson"},{name:"Lecture"},{name:"Test"}]}]}}},function(e,t,n){"use strict";(function(e,r){var i,o=n(703);i="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:r;var a=Object(o.a)(i);t.a=a}).call(this,n(108),n(263)(e))},function(e,t,n){"use strict";function r(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}n.d(t,"a",function(){return r})},function(e){e.exports={"app.login.title":"IT world at your fingertips"}},function(e){e.exports={"app.login.title":"Świat it w Twoim zasięgu.","app.login.subtitle":"Dołącz do tysięcy i pokaż się pracodawcy.","app.login.resetPassword":"Zresetuj hasło","app.login.tab.login":"Logowanie","app.login.tab.register":"Rejestracja","app.login.form.email":"Podaj swój adres e-mail","app.login.form.password":"Podaj swoje hasło","app.login.form.submit":"Zaloguj się do itTicket","app.header.logout":"Wyloguj","app.header.profile":"Twój profil i osiągnięcia","app.header.desktop":"Pulpit","app.header.changePath":"Zmień ścieżkę","app.header.ranking":"Ranking","app.header.individualClasses":"Indywidualne zajęcia","app.header.usersList":"Szukaj pracownika","app.header.terms":"Regulamin","app.header.privacyPolicy":"Polityka prywatnosci","app.register.form.repeatPassword":"Powtórz hasło","app.register.form.checkAll":"Zaznacz wszystko","app.register.form.termsAccept":"Zapoznałem się z treścią regulaminu itTicket i akceptuję jego postanowienia","app.register.form.termsAccept.address":"https://itticket.pl/wp-content/uploads/2020/11/regulations.pdf","app.register.form.termsAccept.open":"Wyświetl regulamin","app.register.form.privacyPolicy":"Zapoznałem się z zasadami na jakich przez itTicket sp. z o.o. będą przetwarzane moje dane osobowe","app.register.form.privacyPolicy.address":"https://itticket.pl/wp-content/uploads/2020/11/privacy_policy.pdf","app.register.form.privacyPolicy.open":"Wyświetl politykę prywatności","app.register.form.informationClause":"Zapoznałem się z klauzulą informacyjną dotyczącą zgody marketingowej","app.register.form.informationClause.address":"https://itticket.pl/wp-content/uploads/2019/12/information_clause.pdf","app.register.form.marketingProcessing":"Wyrażam zgodę na przetwarzanie moich danych w celach marketingowych","app.register.form.marketingProcessing.address":"https://itticket.pl/wp-content/uploads/2019/12/marketing_processing.pdf","app.register.form.commercialInformation":"Zgadzam się, by itTicket wysyłał do mnie newslettera i oferty handlowe (czyli np. informacje o nowych kursach, szkoleniach) na mój adres e-mail","app.register.form.commercialInformation.address":"https://itticket.pl/wp-content/uploads/2020/11/commercial_information.pdf","app.register.form.commercialInformation.open":"Wyświetl pełną treść zgody","app.register.form.directContact":"Wyrażam zgodę z art. 172 ust. 1 ustawy Prawo telekomunikacyjne","app.register.form.directContact.address":"https://itticket.pl/wp-content/uploads/2019/12/direct_contact.pdf","app.register.form.open":"wyświetl","app.register.form.showWholeContent":"pokaż pełną treść","app.register.form.submit":"Dołącz do itTicket","app.confirmEmail.tab.success":"Sukces!","app.confirmEmail.text":"Na twój adres email został wysłany link aktywacyjny. Kliknij go i przejdź na stronę logowania","app.confirmEmail.back":"Wróć do itTicket","app.resetPassword.text":"Nic się nie stało! Wpisz swój adres e-mail, a my wyślemy Ci instrukcję, jak je odzyskać.","app.resetPassword.tab.forgot":"Zapomniane hasło?","app.resetPassword.back":"Wróć do itTicket","app.resetPassword.login":"Adres e-mail","app.resetPassword.next":"Dalej","app.resetPassword.submit":"Ustaw nowe hasło","app.resetPassword.form.password":"Podaj nowe hasło","app.resetPassword.form.repeatPassword":"Powtórz nowe hasło","app.resetPassword.form.code":"Podaj kod otrzymany w mail","app.resetPassword.success":"Udało się! Hasło zostało zmienione! Wróć do platformy i zaloguj się z wykorzystaniem nowego hasła.","app.badgeModal.title":"Nowa odznaka!","app.badgeModal.receive":"Odbieram","app.desktop.stone.tooltip.button.start":"Rozpocznij","app.desktop.stone.tooltip.button.continue":"Kontynuuj","app.desktop.stone.tooltip.level":"Poziom","app.desktop.stone.tooltip.lessons":"Lekcje","app.desktop.addSection.subscription.header":"Czas aby stać się pro! Dołącz do nas i poznaj javascript...","app.desktop.addSection.subscription.text":"Zachęcamy do przystąpienia do nas, najbardziej jak tylko umiemy i możemy.","app.desktop.addSection.subscription.button":"Przystąp do programu","app.desktop.addSection.addons.header":"Potrzebujesz indywidualnego toku nauczania?","app.desktop.addSection.addons.text":"Zamów indywidualne zajęcia z mentorami (programowanie, business, rekrutacje)","app.desktop.addSection.addons.button":"Zobacz ofertę","app.desktop.brandHero.header":"Witamy w itTicket. Tu zaczniemy twoją przygodę z programowaniem.","app.desktop.brandHero.content":"Kliknij w kolejny kolorowy 'kamień' aby przejść do następnej lekcji i stać się programistą!","app.desktop.button.select":"Zmień ścieżkę","app.changePath.brandHero.header":"Zmień scieżkę która pogłębia twoją wiedzę w danym przedziale","app.changePath.brandHero.content":"Kliknij przycisk 'Wybierz' aby przenieść się do jej realizacji.","app.changePath.button.select":"Wybierz","app.rankPage.ranking.place":"miejsce","app.rankPage.ranking.points":"(ilość punktów)","app.rankPage.ranking.you":"Twój nick: ","app.rankPage.brandHero.header":"A Ty które miejsce zajmujesz?","app.rankPage.brandHero.content":"Ucz się systematycznie i pokonaj innych. Zdobądź pierwsze miejsce w rankingu!","app.profile.topSection.header":"Witaj","app.profile.topSection.text":"Poznaj swoje osiągnięcia, postępy oraz zadbaj o jak najlepsze pierwsze wrażenie!","app.profile.infoSection.badges.header":"Twoje odznaki","app.profile.infoSection.badges.link":"Zobacz dostępne odznaki","app.profile.infoSection.badges.url":"https://itticket.pl/odznaki-do-zdobycia/","app.profile.infoSection.pathProgress.progress":"Postęp","app.profile.infoSection.userForm.firstName":"Imię","app.profile.infoSection.userForm.lastName":"Nazwisko","app.profile.infoSection.userForm.schoolName":"Nazwa szkoły lub aktualnej pracy","app.profile.infoSection.userForm.website":"Adres twojego github","app.profile.infoSection.userForm.save":"Zapisz zmiany","app.profile.infoSection.userForm.success":"Pomyślnie zapisano zmiany","app.profile.infoSection.userForm.error":"Coś poszło nie tak","app.profile.infoSection.badges.goToBillingData":"Dane do płatności","app.profile.changeAvatar.back":"Powrót","app.profile.billingData.back":"Powrót","app.profile.billingData.header":"Dane do płatności","app.profile.billingData.form.privatePerson":"Osoba prywatna","app.profile.billingData.form.company":"Firma","app.profile.billingData.form.firstName":"Imię","app.profile.billingData.form.lastName":"Nazwisko","app.profile.billingData.form.street":"Ulica","app.profile.billingData.form.postalCode":"Kod pocztowy","app.profile.billingData.form.city":"Miasto","app.profile.billingData.form.companyName":"Nazwa firmy","app.profile.billingData.form.companyTaxNo":"NIP","app.profile.billingData.form.saveAndPay":"Zapisz i zapłać","app.profile.billingData.form.save":"Zapisz","app.profile.infoSection.badges.getCv":"Pobierz CV","app.profile.infoSection.badges.deleteAccount":"Usuń konto","app.profile.infoSection.badges.areYouSure":"Na pewno? Wszystkie twoje dane (łącznie z postępem) zostaną trwale usunięte","app.profile.infoSection.badges.areYouReallySure":"To nieodwracalny proces. Po tym kliknięciu rozstaniemy się :(","app.payment.topSection.message.header":"Kurs HTML jest w pełni darmowy!","app.payment.topSection.message.label":"Podstawowy kurs jest całkowicie darmowy, umożliwia ci dostęp do kursu, testów, zadań oraz głównych funkcji itTicket.","app.payment.topSection.message.buttonLabel":"Rozpocznij za darmo","app.payment.planSection.benefit.html":"+50 lekcji HTML","app.payment.planSection.benefit.css":"+50 lekcji CSS","app.payment.planSection.benefit.js":"+50 lekcji JS","app.payment.planSection.benefit.tests":"Dostęp do testów sprawdzających","app.payment.planSection.benefit.basicExposure":"Podstawowa ekspozycja na pracodawcę","app.payment.planSection.benefit.exposure":"Pełna ekspozycja na pracodawcę z personalizowanymi ofertami pracy","app.payment.planSection.benefit.statistics":"Pełne statystyki Twojego postępu","app.payment.planSection.benefit.cv":"Wirtualne CV","app.payment.planSection.benefit.mentor":"Możliwość zamówienia konsultacji z doświadczonym developerem","app.payment.planSection.benefit.recruiter":"Możliwość zamówienia konsultacji z doświadczonym rekruterem","app.payment.planSection.description.free":"Idealnie sprawdzi się aby zacząć swoją przygodę z programowaniem i poznać podstawowe zagadnienia tej tajemniej sztuki.","app.payment.planSection.label.free":"Plan podstawowy","app.payment.planSection.forWhom.free":"Na rozpoczęcie","app.payment.planSection.description.paid":"Plan dla osób chcących zgłębić tajniki programowania. Idealny dla chcących uczyć się w dogodny dla nich sposób, bez zobowiązań.","app.payment.planSection.label.paid":"Plan abonamentowy","app.payment.planSection.forWhom.paid":"Dla zdeterminowanych","app.payment.planSection.tile.button.label":"Wybieram","app.payment.planSection.tile.modal.button.label":"Kupuję","app.dictionary.currencies.pln":"zł","app.payment.planSection.price.payment.monthly":"miesięcznie","app.payment.planSection.price.payment.monthlyWithYearPayment":"miesięcznie. Płatne rocznie 240 zł (zawiera 23% VAT).","app.payment.planSection.price.payment.month.free":" ","app.payment.planSection.tile.bestseller.label":"bestseller!","app.payment.availablePaymentMethods":"Dostępne metody płatności","app.addonsPayment.topSection.message.header":"Ucz się z doświadczonymi specjalistami","app.addonsPayment.topSection.message.label":"Po opłaceniu godzin skontaktujemy się z Tobą w celu umówienia spotkań ze specjalistami z branży.","app.addonsPayment.planSection.label.paid":"Indywidualny tok nauczania","app.addonsPayment.planSection.forWhom.paid":"Dla ambitnych","app.addonsPayment.planSection.price.payment":"Wykupienie 5h konsultacji on-line (zawiera 23% VAT)","app.addonsPayment.planSection.benefit.freedom":"Dowolność w wyborze mentora podczas konsultacji","app.addonsPayment.planSection.benefit.developer":"Możliwość zrobienia CodeReview, indywidualnego wytłumaczenia zagadnienia, wspólny udział w projekcie z doświadczonym programistą","app.addonsPayment.planSection.benefit.recruitment":"Możliwość przeprowadzenia próbnej rekrutacji wraz z feedback","app.addonsPayment.planSection.benefit.individuality":"Przebieg zajęć dopasowany do twoich indywidualnych predyspozycji","app.addonsPayment.planSection.benefit.slack":"Dostęp do pomocy poprzez Slack","app.transactionConfirmed.header":"Witaj na pokładzie!","app.transactionConfirmed.text":"Wykorzystaj płatne ścieżki aby poszerzyć swoją wiedzę. My zaczynamy polecać Cię wśród pracodawców.","app.transactionConfirmed.goBack":"Powrót","app.userList.modal.calculateAlgorithm":"Przeliczam współczynniki","app.userList.modal.education":"Wykształcenie","app.userList.modal.preferableWorkTime":"Preferowana pora pracy","app.userList.modal.typingSpeed":"Prędkość pisania (CPM)","app.userList.modal.gradeAverage":"Średnia ocen mentora","app.userList.modal.gradeCount":"Ilość ocen mentora","app.userList.modal.vector.morning":"Rano","app.userList.modal.vector.day":"Dzień","app.userList.modal.vector.evening":"Wieczór","app.userList.modal.vector.night":"Noc","app.userList.modal.muchMoreInfo":"I wiele innych cech. chcesz poznać szczegóły kandydata - skontaktuj się z działem obsługi. Zapraszamy!","app.comments.title":"Komentarze","app.comments.placeholder":"Wpisz treśc swojej wiadomości","app.comments.send":"Wyślij","app.comments.like":"Polecam to","app.comments.empty":"Jeszcze brak komentarzy. Dodaj pierwszy!","app.stoneItems.endItem":"Zakończ","app.lesson.next":"następny","app.lesson.previous":"poprzedni","app.lesson.tableOfContents.header":"Spis treści","app.test.start":"Zaczynamy","app.test.check":"Sprawdź","app.test.result":"Wynik","app.test.yourResult":"Twój wynik jest","app.test.yourResult.positive":"pozytywny","app.test.yourResult.negative":"negatywny","app.test.next":"Dalej","app.test.oneMoreTime":"Jeszcze raz","app.validation.required":"Pole wymagane","app.validation.toLong":"Zbyt długa wartość","app.validation.url":"To musi być adres strony","app.validation.requiredConditionally":"Pole wymagane przy zaznaczeniu jednego z poniższych","app.validation.email":"Niepoprawny e-mail","app.validation.passwordsEquality":"Hasła muszą być identyczne","app.validation.passwordRules":"Hasło musi mieć minimum 8 znaków, posiadać co najmniej jedną cyfrę, jedną dużą i jedną małą literę oraz co najmniej jeden z podanych znaków @ # $ ! % * ? &","app.amplify.error.NotAuthorizedException":"Niepoprawny użytkownik lub hasło","app.amplify.error.UserNotConfirmedException":"Potwierdź adres email klikając link w otrzymanej wiadomości","app.amplify.error.UsernameExistsException":"Użytkownik o podanym adresie e-mail już istnieje","app.amplify.error.UserNotFoundException":"Nie mamy jeszcze takiego użytkownika","app.amplify.error.CodeMismatchException":"Niepoprawny kod weryfikacyjny","app.amplify.error.ExpiredCodeException":"Niepoprawne żądanie - zacznij proces od nowa","app.amplify.error.LimitExceededException":"Hasło zmieniane za często... co się dzieje?","app.amplify.error.NetworkError":"Wykryto problem z połączeniem sieciowym"}},function(e,t,n){e.exports=n.p+"assets/76ed7770cfb0d5b0be3e1402ccc27a32.svg"},function(e,t,n){e.exports=n.p+"assets/c298ae544ccf02ea9ec3fa608bb510b6.svg"},function(e,t,n){e.exports=n.p+"assets/e360d7e72972710fcbae608fbf7218d8.svg"},function(e,t,n){"use strict";t.a=function(){return!1}},function(e,t,n){"use strict";(function(e){var r=n(92),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.a.Buffer:void 0,s=a?a.allocUnsafe:void 0;t.a=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}}).call(this,n(263)(e))},function(e){e.exports={LABEL:"app.login.resetPassword"}},function(e,t,n){e.exports=n.p+"assets/8bcc6e02cae5a01d9b90a411f05213d7.svg"},function(e,t,n){e.exports=n.p+"assets/817a83a420a7a070e914ce3c41b35e3d.svg"},function(e,t,n){e.exports=n.p+"assets/42415f10b85c48f72017974f907a6e88.png"},function(e){e.exports={LABEL:"app.payment.availablePaymentMethods"}},function(e){e.exports={SELECT:"app.desktop.button.select"}},function(e,t,n){e.exports=n.p+"assets/15e30c745b44dcf79b97ee42dd3dad51.svg"},function(e,t,n){e.exports=n.p+"assets/86d1c20938652386735f71f50f29d711.svg"},function(e,t,n){e.exports=n.p+"assets/f778d1e69b83aa37aa05cbfb1e8f85be.svg"},function(e,t,n){e.exports=n.p+"assets/5d8e698952e5182c1dee56fa776796bd.svg"},function(e,t,n){e.exports=n.p+"assets/88774c3203b0996cc46f8772e0576f2e.svg"},function(e,t,n){e.exports=n.p+"assets/feeac5bc9afd3c0f128a56d4b44c45b9.svg"},function(e){e.exports={RECEIVE:"app.badgeModal.receive"}},function(e){e.exports={TITLE:"app.badgeModal.title"}},function(e,t,n){e.exports=n.p+"assets/949a17b3a81f699446c140c264fe93b6.svg"},function(e){e.exports={LABEL:"app.confirmEmail.text"}},function(e){e.exports={LABEL:"app.resetPassword.text"}},function(e){e.exports={LABEL:"app.resetPassword.success"}},function(e){e.exports={LABEL:"app.resetPassword.back"}},function(e){e.exports={SUCCESS:"app.resetPassword.tab.forgot",BACK:"app.resetPassword.back"}},function(e,t,n){(function(n){var r; /*! * howler.js v2.1.2 * howlerjs.com * * (c) 2013-2019, James Simpson of GoldFire Studios * goldfirestudios.com * * MIT License */ /*! * howler.js v2.1.2 * howlerjs.com * * (c) 2013-2019, James Simpson of GoldFire Studios * goldfirestudios.com * * MIT License */ !function(){"use strict";var i=function(){this.init()};i.prototype={init:function(){var e=this||o;return e._counter=1e3,e._html5AudioPool=[],e.html5PoolSize=10,e._codecs={},e._howls=[],e._muted=!1,e._volume=1,e._canPlayEvent="canplaythrough",e._navigator="undefined"!=typeof window&&window.navigator?window.navigator:null,e.masterGain=null,e.noAudio=!1,e.usingWebAudio=!0,e.autoSuspend=!0,e.ctx=null,e.autoUnlock=!0,e._setup(),e},volume:function(e){var t=this||o;if(e=parseFloat(e),t.ctx||p(),void 0!==e&&e>=0&&e<=1){if(t._volume=e,t._muted)return t;t.usingWebAudio&&t.masterGain.gain.setValueAtTime(e,o.ctx.currentTime);for(var n=0;n=0;t--)e._howls[t].unload();return e.usingWebAudio&&e.ctx&&void 0!==e.ctx.close&&(e.ctx.close(),e.ctx=null,p()),e},codecs:function(e){return(this||o)._codecs[e.replace(/^x-/,"")]},_setup:function(){var e=this||o;if(e.state=e.ctx&&e.ctx.state||"suspended",e._autoSuspend(),!e.usingWebAudio)if("undefined"!=typeof Audio)try{void 0===(new Audio).oncanplaythrough&&(e._canPlayEvent="canplay")}catch(t){e.noAudio=!0}else e.noAudio=!0;try{(new Audio).muted&&(e.noAudio=!0)}catch(e){}return e.noAudio||e._setupCodecs(),e},_setupCodecs:function(){var e=this||o,t=null;try{t="undefined"!=typeof Audio?new Audio:null}catch(t){return e}if(!t||"function"!=typeof t.canPlayType)return e;var n=t.canPlayType("audio/mpeg;").replace(/^no$/,""),r=e._navigator&&e._navigator.userAgent.match(/OPR\/([0-6].)/g),i=r&&parseInt(r[0].split("/")[1],10)<33;return e._codecs={mp3:!(i||!n&&!t.canPlayType("audio/mp3;").replace(/^no$/,"")),mpeg:!!n,opus:!!t.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!t.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!t.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!t.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),aac:!!t.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!t.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(t.canPlayType("audio/x-m4a;")||t.canPlayType("audio/m4a;")||t.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(t.canPlayType("audio/x-mp4;")||t.canPlayType("audio/mp4;")||t.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!!t.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,""),webm:!!t.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,""),dolby:!!t.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(t.canPlayType("audio/x-flac;")||t.canPlayType("audio/flac;")).replace(/^no$/,"")},e},_unlockAudio:function(){var e=this||o;if(!e._audioUnlocked&&e.ctx){e._audioUnlocked=!1,e.autoUnlock=!1,e._mobileUnloaded||44100===e.ctx.sampleRate||(e._mobileUnloaded=!0,e.unload()),e._scratchBuffer=e.ctx.createBuffer(1,1,22050);var t=function(n){for(var r=0;r0?s._seek:n._sprite[e][0]/1e3),l=Math.max(0,(n._sprite[e][0]+n._sprite[e][1])/1e3-c),d=1e3*l/Math.abs(s._rate),h=n._sprite[e][0]/1e3,p=(n._sprite[e][0]+n._sprite[e][1])/1e3,f=!(!s._loop&&!n._sprite[e][2]);s._sprite=e,s._ended=!1;var g=function(){s._paused=!1,s._seek=c,s._start=h,s._stop=p,s._loop=f};if(!(c>=p)){var m=s._node;if(n._webAudio){var y=function(){n._playLock=!1,g(),n._refreshBuffer(s);var e=s._muted||n._muted?0:s._volume;m.gain.setValueAtTime(e,o.ctx.currentTime),s._playStart=o.ctx.currentTime,void 0===m.bufferSource.start?s._loop?m.bufferSource.noteGrainOn(0,c,86400):m.bufferSource.noteGrainOn(0,c,l):s._loop?m.bufferSource.start(0,c,86400):m.bufferSource.start(0,c,l),d!==1/0&&(n._endTimers[s._id]=setTimeout(n._ended.bind(n,s),d)),t||setTimeout(function(){n._emit("play",s._id),n._loadQueue()},0)};"running"===o.state?y():(n._playLock=!0,n.once("resume",y),n._clearTimer(s._id))}else{var v=function(){m.currentTime=c,m.muted=s._muted||n._muted||o._muted||m.muted,m.volume=s._volume*o.volume(),m.playbackRate=s._rate;try{var r=m.play();if(r&&"undefined"!=typeof Promise&&(r instanceof Promise||"function"==typeof r.then)?(n._playLock=!0,g(),r.then(function(){n._playLock=!1,m._unlocked=!0,t||(n._emit("play",s._id),n._loadQueue())}).catch(function(){n._playLock=!1,n._emit("playerror",s._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction."),s._ended=!0,s._paused=!0})):t||(n._playLock=!1,g(),n._emit("play",s._id),n._loadQueue()),m.playbackRate=s._rate,m.paused)return void n._emit("playerror",s._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.");"__default"!==e||s._loop?n._endTimers[s._id]=setTimeout(n._ended.bind(n,s),d):(n._endTimers[s._id]=function(){n._ended(s),m.removeEventListener("ended",n._endTimers[s._id],!1)},m.addEventListener("ended",n._endTimers[s._id],!1))}catch(e){n._emit("playerror",s._id,e)}};"data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"===m.src&&(m.src=n._src,m.load());var b=window&&window.ejecta||!m.readyState&&o._navigator.isCocoonJS;if(m.readyState>=3||b)v();else{n._playLock=!0;var _=function(){v(),m.removeEventListener(o._canPlayEvent,_,!1)};m.addEventListener(o._canPlayEvent,_,!1),n._clearTimer(s._id)}}return s._id}n._ended(s)},pause:function(e){var t=this;if("loaded"!==t._state||t._playLock)return t._queue.push({event:"pause",action:function(){t.pause(e)}}),t;for(var n=t._getSoundIds(e),r=0;r=0?t=parseInt(i[0],10):e=parseFloat(i[0]):i.length>=2&&(e=parseFloat(i[0]),t=parseInt(i[1],10)),!(void 0!==e&&e>=0&&e<=1))return(n=t?r._soundById(t):r._sounds[0])?n._volume:0;if("loaded"!==r._state||r._playLock)return r._queue.push({event:"volume",action:function(){r.volume.apply(r,i)}}),r;void 0===t&&(r._volume=e),t=r._getSoundIds(t);for(var a=0;a0?r/c:r),d=Date.now();e._fadeTo=n,e._interval=setInterval(function(){var i=(Date.now()-d)/r;d=Date.now(),s+=u*i,s=Math.max(0,s),s=Math.min(1,s),s=Math.round(100*s)/100,a._webAudio?e._volume=s:a.volume(s,e._id,!0),o&&(a._volume=s),(nt&&s>=n)&&(clearInterval(e._interval),e._interval=null,e._fadeTo=null,a.volume(n,e._id),a._emit("fade",e._id))},l)},_stopFade:function(e){var t=this._soundById(e);return t&&t._interval&&(this._webAudio&&t._node.gain.cancelScheduledValues(o.ctx.currentTime),clearInterval(t._interval),t._interval=null,this.volume(t._fadeTo,e),t._fadeTo=null,this._emit("fade",e)),this},loop:function(){var e,t,n,r=arguments;if(0===r.length)return this._loop;if(1===r.length){if("boolean"!=typeof r[0])return!!(n=this._soundById(parseInt(r[0],10)))&&n._loop;e=r[0],this._loop=e}else 2===r.length&&(e=r[0],t=parseInt(r[1],10));for(var i=this._getSoundIds(t),o=0;o=0?t=parseInt(i[0],10):e=parseFloat(i[0])}else 2===i.length&&(e=parseFloat(i[0]),t=parseInt(i[1],10));if("number"!=typeof e)return(n=r._soundById(t))?n._rate:r._rate;if("loaded"!==r._state||r._playLock)return r._queue.push({event:"rate",action:function(){r.rate.apply(r,i)}}),r;void 0===t&&(r._rate=e),t=r._getSoundIds(t);for(var a=0;a=0?t=parseInt(r[0],10):n._sounds.length&&(t=n._sounds[0]._id,e=parseFloat(r[0]))}else 2===r.length&&(e=parseFloat(r[0]),t=parseInt(r[1],10));if(void 0===t)return n;if("loaded"!==n._state||n._playLock)return n._queue.push({event:"seek",action:function(){n.seek.apply(n,r)}}),n;var i=n._soundById(t);if(i){if(!("number"==typeof e&&e>=0)){if(n._webAudio){var a=n.playing(t)?o.ctx.currentTime-i._playStart:0,s=i._rateSeek?i._rateSeek-i._seek:0;return i._seek+(s+a*Math.abs(i._rate))}return i._node.currentTime}var u=n.playing(t);u&&n.pause(t,!0),i._seek=e,i._ended=!1,n._clearTimer(t),n._webAudio||!i._node||isNaN(i._node.duration)||(i._node.currentTime=e);var c=function(){n._emit("seek",t),u&&n.play(t,!0)};if(u&&!n._webAudio){var l=function(){n._playLock?setTimeout(l,0):c()};setTimeout(l,0)}else c()}return n},playing:function(e){if("number"==typeof e){var t=this._soundById(e);return!!t&&!t._paused}for(var n=0;n=0&&o._howls.splice(r,1);var i=!0;for(n=0;n=0){i=!1;break}return u&&i&&delete u[e._src],o.noAudio=!1,e._state="unloaded",e._sounds=[],e=null,null},on:function(e,t,n,r){var i=this["_on"+e];return"function"==typeof t&&i.push(r?{id:n,fn:t,once:r}:{id:n,fn:t}),this},off:function(e,t,n){var r=this["_on"+e],i=0;if("number"==typeof t&&(n=t,t=null),t||n)for(i=0;i=0;i--)r[i].id&&r[i].id!==t&&"load"!==e||(setTimeout(function(e){e.call(this,t,n)}.bind(this,r[i].fn),0),r[i].once&&this.off(e,r[i].fn,r[i].id));return this._loadQueue(e),this},_loadQueue:function(e){if(this._queue.length>0){var t=this._queue[0];t.event===e&&(this._queue.shift(),this._loadQueue()),e||t.action()}return this},_ended:function(e){var t=e._sprite;if(!this._webAudio&&e._node&&!e._node.paused&&!e._node.ended&&e._node.currentTime=0;n--){if(t<=e)return;this._sounds[n]._ended&&(this._webAudio&&this._sounds[n]._node&&this._sounds[n]._node.disconnect(0),this._sounds.splice(n,1),t--)}}},_getSoundIds:function(e){if(void 0===e){for(var t=[],n=0;n=0;if(o._scratchBuffer&&e.bufferSource&&(e.bufferSource.onended=null,e.bufferSource.disconnect(0),t))try{e.bufferSource.buffer=o._scratchBuffer}catch(e){}return e.bufferSource=null,this},_clearSound:function(e){/MSIE |Trident\//.test(o._navigator&&o._navigator.userAgent)||(e.src="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA")}};var s=function(e){this._parent=e,this.init()};s.prototype={init:function(){var e=this._parent;return this._muted=e._muted,this._loop=e._loop,this._volume=e._volume,this._rate=e._rate,this._seek=0,this._paused=!0,this._ended=!0,this._sprite="__default",this._id=++o._counter,e._sounds.push(this),this.create(),this},create:function(){var e=this._parent,t=o._muted||this._muted||this._parent._muted?0:this._volume;return e._webAudio?(this._node=void 0===o.ctx.createGain?o.ctx.createGainNode():o.ctx.createGain(),this._node.gain.setValueAtTime(t,o.ctx.currentTime),this._node.paused=!0,this._node.connect(o.masterGain)):(this._node=o._obtainHtml5Audio(),this._errorFn=this._errorListener.bind(this),this._node.addEventListener("error",this._errorFn,!1),this._loadFn=this._loadListener.bind(this),this._node.addEventListener(o._canPlayEvent,this._loadFn,!1),this._node.src=e._src,this._node.preload="auto",this._node.volume=t*o.volume(),this._node.load()),this},reset:function(){var e=this._parent;return this._muted=e._muted,this._loop=e._loop,this._volume=e._volume,this._rate=e._rate,this._seek=0,this._rateSeek=0,this._paused=!0,this._ended=!0,this._sprite="__default",this._id=++o._counter,this},_errorListener:function(){this._parent._emit("loaderror",this._id,this._node.error?this._node.error.code:0),this._node.removeEventListener("error",this._errorFn,!1)},_loadListener:function(){var e=this._parent;e._duration=Math.ceil(10*this._node.duration)/10,0===Object.keys(e._sprite).length&&(e._sprite={__default:[0,1e3*e._duration]}),"loaded"!==e._state&&(e._state="loaded",e._emit("load"),e._loadQueue()),this._node.removeEventListener(o._canPlayEvent,this._loadFn,!1)}};var u={},c=function(e){var t=e._src;if(u[t])return e._duration=u[t].duration,void h(e);if(/^data:[^;]+;base64,/.test(t)){for(var n=atob(t.split(",")[1]),r=new Uint8Array(n.length),i=0;i0?(u[t._src]=e,h(t,e)):n()};"undefined"!=typeof Promise&&1===o.ctx.decodeAudioData.length?o.ctx.decodeAudioData(e).then(r).catch(n):o.ctx.decodeAudioData(e,r,n)},h=function(e,t){t&&!e._duration&&(e._duration=t.duration),0===Object.keys(e._sprite).length&&(e._sprite={__default:[0,1e3*e._duration]}),"loaded"!==e._state&&(e._state="loaded",e._emit("load"),e._loadQueue())},p=function(){if(o.usingWebAudio){try{"undefined"!=typeof AudioContext?o.ctx=new AudioContext:"undefined"!=typeof webkitAudioContext?o.ctx=new webkitAudioContext:o.usingWebAudio=!1}catch(e){o.usingWebAudio=!1}o.ctx||(o.usingWebAudio=!1);var e=/iP(hone|od|ad)/.test(o._navigator&&o._navigator.platform),t=o._navigator&&o._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),n=t?parseInt(t[1],10):null;if(e&&n&&n<9){var r=/safari/.test(o._navigator&&o._navigator.userAgent.toLowerCase());(o._navigator&&o._navigator.standalone&&!r||o._navigator&&!o._navigator.standalone&&!r)&&(o.usingWebAudio=!1)}o.usingWebAudio&&(o.masterGain=void 0===o.ctx.createGain?o.ctx.createGainNode():o.ctx.createGain(),o.masterGain.gain.setValueAtTime(o._muted?0:1,o.ctx.currentTime),o.masterGain.connect(o.ctx.destination)),o._setup()}};void 0===(r=function(){return{Howler:o,Howl:a}}.apply(t,[]))||(e.exports=r),t.Howler=o,t.Howl=a,"undefined"!=typeof window?(window.HowlerGlobal=i,window.Howler=o,window.Howl=a,window.Sound=s):void 0!==n&&(n.HowlerGlobal=i,n.Howler=o,n.Howl=a,n.Sound=s)}(), /*! * Spatial Plugin - Adds support for stereo and 3D audio where Web Audio is supported. * * howler.js v2.1.2 * howlerjs.com * * (c) 2013-2019, James Simpson of GoldFire Studios * goldfirestudios.com * * MIT License */ function(){"use strict";var e;HowlerGlobal.prototype._pos=[0,0,0],HowlerGlobal.prototype._orientation=[0,0,-1,0,1,0],HowlerGlobal.prototype.stereo=function(e){if(!this.ctx||!this.ctx.listener)return this;for(var t=this._howls.length-1;t>=0;t--)this._howls[t].stereo(e);return this},HowlerGlobal.prototype.pos=function(e,t,n){return this.ctx&&this.ctx.listener?(t="number"!=typeof t?this._pos[1]:t,n="number"!=typeof n?this._pos[2]:n,"number"!=typeof e?this._pos:(this._pos=[e,t,n],void 0!==this.ctx.listener.positionX?(this.ctx.listener.positionX.setTargetAtTime(this._pos[0],Howler.ctx.currentTime,.1),this.ctx.listener.positionY.setTargetAtTime(this._pos[1],Howler.ctx.currentTime,.1),this.ctx.listener.positionZ.setTargetAtTime(this._pos[2],Howler.ctx.currentTime,.1)):this.ctx.listener.setPosition(this._pos[0],this._pos[1],this._pos[2]),this)):this},HowlerGlobal.prototype.orientation=function(e,t,n,r,i,o){if(!this.ctx||!this.ctx.listener)return this;var a=this._orientation;return t="number"!=typeof t?a[1]:t,n="number"!=typeof n?a[2]:n,r="number"!=typeof r?a[3]:r,i="number"!=typeof i?a[4]:i,o="number"!=typeof o?a[5]:o,"number"!=typeof e?a:(this._orientation=[e,t,n,r,i,o],void 0!==this.ctx.listener.forwardX?(this.ctx.listener.forwardX.setTargetAtTime(e,Howler.ctx.currentTime,.1),this.ctx.listener.forwardY.setTargetAtTime(t,Howler.ctx.currentTime,.1),this.ctx.listener.forwardZ.setTargetAtTime(n,Howler.ctx.currentTime,.1),this.ctx.listener.upX.setTargetAtTime(e,Howler.ctx.currentTime,.1),this.ctx.listener.upY.setTargetAtTime(t,Howler.ctx.currentTime,.1),this.ctx.listener.upZ.setTargetAtTime(n,Howler.ctx.currentTime,.1)):this.ctx.listener.setOrientation(e,t,n,r,i,o),this)},Howl.prototype.init=(e=Howl.prototype.init,function(t){return this._orientation=t.orientation||[1,0,0],this._stereo=t.stereo||null,this._pos=t.pos||null,this._pannerAttr={coneInnerAngle:void 0!==t.coneInnerAngle?t.coneInnerAngle:360,coneOuterAngle:void 0!==t.coneOuterAngle?t.coneOuterAngle:360,coneOuterGain:void 0!==t.coneOuterGain?t.coneOuterGain:0,distanceModel:void 0!==t.distanceModel?t.distanceModel:"inverse",maxDistance:void 0!==t.maxDistance?t.maxDistance:1e4,panningModel:void 0!==t.panningModel?t.panningModel:"HRTF",refDistance:void 0!==t.refDistance?t.refDistance:1,rolloffFactor:void 0!==t.rolloffFactor?t.rolloffFactor:1},this._onstereo=t.onstereo?[{fn:t.onstereo}]:[],this._onpos=t.onpos?[{fn:t.onpos}]:[],this._onorientation=t.onorientation?[{fn:t.onorientation}]:[],e.call(this,t)}),Howl.prototype.stereo=function(e,n){var r=this;if(!r._webAudio)return r;if("loaded"!==r._state)return r._queue.push({event:"stereo",action:function(){r.stereo(e,n)}}),r;var i=void 0===Howler.ctx.createStereoPanner?"spatial":"stereo";if(void 0===n){if("number"!=typeof e)return r._stereo;r._stereo=e,r._pos=[e,0,0]}for(var o=r._getSoundIds(n),a=0;a\n\n \n Strona {username}\n \n\n \n \n\n

    Przykład tworzenia styli

    \n\n

    Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

    \n\n Przykładowy obrazek\n\n \n',withAnimations:!1,withRefresh:!0,range:{startColumn:1,startLineNumber:1,endColumn:1,endLineNumber:1}}},{type:"editor",order:2,spriteStart:8512,spriteEnd:14595,audioTranscript:"Tym razem rozszerzymy sobie ten temat ponownie o kolejny sposób łaczenia styli z elementami strony.",code:null},{type:"editor",order:3,spriteStart:16431,spriteEnd:23930,audioTranscript:'W poprzednich lekcjach wykorzystywaliśmy atrybut "style" oraz znacznik \n \n ")}({id:e.id,progressStart:e.progressStart,progressEnd:e.progressEnd,status:e.status});return a.a.createElement("span",{dangerouslySetInnerHTML:{__html:t}})};lh.defaultProps={progressStart:0,progressEnd:null},lh.propTypes={id:m.a.number.isRequired,progressStart:qd,progressEnd:qd,status:Vd.isRequired};var dh=lh,hh={level_0:"rgb(28,176,246)",level_1:"rgb(202,145,101)",level_2:"rgb(240, 239, 240)",level_3:"rgb(254, 221, 126)"},ph=function(e){return Object(Vr.get)(hh,"level_".concat(e),"rgb(28,176,246)")},fh={element:{position:"absolute",width:"50%",height:"50%",top:"25%",left:"26%",userSelect:"none"}},gh=function(e){var t=e.level,n=e.progress,r=e.status,i=e.iconName,o=function(e){var t=e.level,n=e.progress,r="INACTIVE"!==e.status,i=r?ph(t):"rgb(201, 201, 201)",o="".concat(ph(t-1)," 50%, ").concat(ph(t)," 50% 100%"),a="linear-gradient(".concat(o,")");return Wr.create({wrapper:{width:"83%",height:"83%",position:"absolute",top:"8.5%",left:"8.5%",cursor:"pointer",borderRadius:"100%",backgroundSize:"200% 200%",backgroundPosition:"0 ".concat(n,"%"),backgroundColor:i,backgroundImage:r?a:null,transition:"background-position 1s ease",opacity:r?1:.3,":hover":{opacity:.8},":active":{opacity:.6}}})}({level:t,progress:n,status:r});return a.a.createElement("div",{className:Hr(o.wrapper)},a.a.createElement(jd,{css:fh,iconName:i}))};gh.defaultProps={progress:0},gh.propTypes={level:Yd.isRequired,progress:qd,status:Vd.isRequired,iconName:m.a.string};var mh=gh,yh=Wr.create({wrapper:{textAlign:"center",marginTop:"3%"}}),vh=function(e){var t=e.text;return a.a.createElement("div",{className:Hr(yh.wrapper)},t)};vh.defaultProps={text:""},vh.propTypes={text:m.a.string};var bh=vh,_h=Wr.create({wrapper:{position:"relative",width:"100%",height:"100%",outline:"none"}}),wh=function(e){var t=e.id,n=e.progressStart,r=e.progressEnd,i=e.status,o=e.level,s=e.levelProgress,u=e.onClick,c=e.label,l=e.iconName;return a.a.createElement("div",{className:Hr(_h.wrapper),onClick:u,role:"button",tabIndex:0},a.a.createElement(dh,{progressStart:n,progressEnd:r,status:i,id:t}),a.a.createElement(mh,{level:o,progress:s,status:i,iconName:l}),a.a.createElement(bh,{text:c}))};wh.defaultProps={progressStart:0,progressEnd:null,status:Hd,level:0,levelProgress:0,label:null},wh.propTypes=Gd;var Sh=wh;function Ch(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ih=Wr.create({wrapper:{marginTop:"20px",display:"flex",justifyContent:"space-around"},stoneWrapper:{width:"150px",height:"150px"}}),Mh=function(e){return a.a.createElement("div",{key:e.id,className:Hr(Ih.stoneWrapper)},a.a.createElement(Sh,{label:e.label,status:e.status,level:e.level,levelProgress:e.levelProgress,progressStart:e.progressStart,progressEnd:e.progressEnd,onClick:e.onClick,id:e.id,iconName:e.iconName}))},xh=function(e){var t=e.stones;return a.a.createElement("div",{className:Hr(Ih.wrapper)},t.map(Mh))};xh.defaultProps={stones:[]},xh.propTypes={stones:m.a.arrayOf(m.a.shape(function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var cf=function(e){var t=e.field,n=e.form,r=n.touched,i=n.errors,s=e.type,u=e.label,c=e.iconName,l=uf(e,["field","form","type","label","iconName"]),d=sf(Object(o.useState)(!1),2),h=d[0],p=d[1],f=sf(Object(o.useState)(!1),2),g=f[0],m=f[1],y=t.value&&h,v=Boolean(r[t.name]&&i[t.name]),b="password"===s,_=g?"text":s,w=function(e){for(var t=1;t0?o.formatMessage({id:Df.CONTINUE}):o.formatMessage({id:Df.BEGIN});return a.a.createElement("div",{className:Hr(Af.wrapper)},a.a.createElement("div",{className:Hr(Af.level)},o.formatMessage({id:Df.LEVEL})," ".concat(n)),a.a.createElement("div",{className:Hr(Af.lessons)},o.formatMessage({id:Df.LESSONS})," ".concat(r,"/").concat(i)),a.a.createElement(vf,{label:s,isSmall:!0,onClick:t,icons:{right:"arrowForward"}}))};Of.propTypes={onClick:m.a.func.isRequired,level:m.a.number.isRequired,completedItemsCount:m.a.number.isRequired,itemsCount:m.a.number.isRequired,intl:Q.isRequired};var Af=Wr.create({wrapper:{animationName:{"0%":{maxHeight:0},"100%":{maxHeight:1e3}},animationDuration:"".concat(1200,"ms")},level:{fontWeight:700,color:"#fbdf38",marginTop:"1em"},lessons:{marginTop:".5em",marginBottom:"1em",fontWeight:300}}),jf=ce(Of),Pf=n(695),Rf=n.n(Pf),zf=n(696),Ff=n.n(zf),Bf=function(e){var t=e.title,n=e.isFocused,r=e.onClick,i=e.level,o=e.completedItemsCount,s=e.itemsCount;return a.a.createElement("div",{className:Hr(Uf.wrapper)},a.a.createElement("img",{src:n?Rf.a:Ff.a,alt:"bubbles",className:Hr(Uf.bubbles)}),a.a.createElement("div",{className:Hr(Uf.content,n&&Uf.contentActive,!n&&Uf.contentInactive)},a.a.createElement("div",{className:Hr(Uf.header)},t),n&&a.a.createElement(jf,{onClick:r,level:i,completedItemsCount:o,itemsCount:s})))};Bf.defaultProps={title:"",isFocused:!1,onClick:function(){},level:1,completedItemsCount:0,itemsCount:0},Bf.propTypes={title:m.a.string,isFocused:m.a.bool,onClick:m.a.func,level:m.a.number,completedItemsCount:m.a.number,itemsCount:m.a.number};var Uf=Wr.create({wrapper:{position:"absolute",top:"78%",width:"100%",display:"flex",flexDirection:"column",alignItems:"center",zIndex:"3"},bubbles:{zIndex:"3"},content:{minWidth:"50%",borderRadius:"4px",marginTop:"-6px",padding:"12px 20px"},header:{textAlign:"center",fontWeight:700},contentActive:{backgroundColor:"#2c2c54",border:"solid 1px ".concat(ih),color:uh},contentInactive:{backgroundColor:sh,border:"solid 1px ".concat(sh),color:ah}}),Wf=Bf;function Hf(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Vf=function(e){var t=e.slug,n=e.title,r=e.iconName,i=e.status,s=e.level,u=e.progress,c=e.completedItemsCount,l=e.itemsCount,d=e.onClick,h=s+1,p=Hf(function(e){var t=Object(o.useContext)(Zt),n=Cp(Object(o.useState)(!1),2),r=n[0],i=n[1];return Object(o.useEffect)(function(){var n=bp(t.subjects.pathSubject).pipe(_p(function(e){return"stoneFocus"===e.type})).subscribe(function(t){var n=t.payload.stoneId;i(n===e)});return function(){return n.unsubscribe()}},[]),[r,function(){t.subjects.pathSubject.next({type:"stoneFocus",payload:{stoneId:e}})}]}(t),2),f=p[0],g=p[1],m=[Hd,Wd].includes(i);return a.a.createElement("div",{className:Hr(qf.wrapper,f&&qf.focused),role:"button",tabIndex:0,onClick:function(){m&&g()},"data-testid":"stone-wrapper"},f&&a.a.createElement(Pp,null),f&&a.a.createElement(Up,{level:h,progress:u}),a.a.createElement(Ap,{isActive:m,iconName:r}),a.a.createElement(Wf,{title:n,isFocused:f,level:h,onClick:d,completedItemsCount:c,itemsCount:l}),f&&a.a.createElement(kp,null))};Vf.defaultProps={onClick:function(){},level:1},Vf.propTypes=Kd;var qf=Wr.create({wrapper:{width:"100%",height:"100%",position:"relative",outline:"none",cursor:"pointer"},focused:{zIndex:4}}),Yf=Vf,Gf=Wr.create({wrapper:{border:"solid 1px ".concat(th),borderRight:0,borderBottom:0,position:"absolute",right:10,top:-9,width:16,height:16,transform:"rotate(45deg)",backgroundColor:uh}}),Zf=function(){return a.a.createElement("div",{className:Hr(Gf.wrapper)})},Qf=Wr.create({wrapper:{width:10,height:10,backgroundColor:"#d5333d",position:"absolute",top:0,right:0,borderRadius:"50%"}}),Kf=function(){return a.a.createElement("div",{className:Hr(Qf.wrapper),"data-testid":"dropdown-marker"})};function Jf(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Xf=function(e){var t=e.renderTrigger,n=e.children,r=e.isMarked,i=e.testId,s=Jf(Object(o.useState)(!1),2),u=s[0],c=s[1],l=Object(o.useRef)(null),d=Object(o.useRef)(null);Object(o.useEffect)(function(){var e=function(e){d.current.contains(e.target)||c(!1)};return document.addEventListener("click",e),function(){document.removeEventListener("click",e)}},[]);var h,p,f;return a.a.createElement("div",{className:Hr($f.wrapper),ref:d,"data-testid":i},r&&a.a.createElement(Kf,null),a.a.createElement("div",{className:Hr($f.target),role:"button",tabIndex:0,onClick:function(){return c(!0)},ref:l,"data-testid":"dropdown-trigger"},t()),u&&(h=l.current,p=h.offsetHeight,f=h.offsetWidth,a.a.createElement("div",{className:Hr($f.childrenWrapper),style:{top:p+5,right:-f/2+7},"data-testid":"dropdown-children-container"},a.a.createElement(Zf,null),n)))};Xf.defaultProps={testId:"dropdown",isMarked:!1},Xf.propTypes={renderTrigger:m.a.func.isRequired,children:m.a.oneOfType([m.a.arrayOf(m.a.node),m.a.node]).isRequired,testId:m.a.string,isMarked:m.a.bool};var $f=Wr.create({wrapper:{position:"relative"},target:{outline:"none",cursor:"pointer"},childrenWrapper:{position:"absolute",boxShadow:"0 4px 32px 0 ".concat(nh),borderRadius:5,border:"solid 1px ".concat(th),paddingTop:5,animationName:{"0%":{transform:"rotateX(45deg)",opacity:0},"100%":{transform:"rotateX(0deg)",opacity:1}},animationDuration:"".concat(300,"ms"),zIndex:3,backgroundColor:uh}}),eg=Xf,tg=n(697),ng=n.n(tg),rg=n(698),ig=n.n(rg),og=function(e){var t=e.backgroundColor,n=e.type,r=e.testId,i="#2c2c54"===t,o="#f8f8f8"===t;return a.a.createElement("div",{className:Hr(ag.pointer,i&&ag.pointerBlue,o&&ag.pointerGrey,ag[n]),"data-testid":r})};og.defaultProps={backgroundColor:"#2c2c54",type:"right",testId:"pointer"},og.propTypes={backgroundColor:m.a.oneOf(["#2c2c54","#f8f8f8"]),type:Jd,testId:m.a.string};var ag=Wr.create({pointer:{position:"absolute",width:"87%",height:"60%",left:"50%",top:"20%",transformOrigin:"0 50%",backgroundRepeat:"no-repeat",backgroundPosition:"right"},pointerBlue:{backgroundImage:"url(".concat(ng.a,")")},pointerGrey:{backgroundImage:"url(".concat(ig.a,")")},top:{transform:"rotate(-90deg)"},topRight:{transform:"rotate(-45deg)"},right:{transform:"rotate(0deg)"},bottomRight:{transform:"rotate(45deg)"},bottom:{transform:"rotate(90deg)"},bottomLeft:{transform:"rotate(135deg)"},left:{transform:"rotate(180deg)"},topLeft:{transform:"rotate(225deg)"}}),sg=og,ug=function(e){var t=e.pointers,n=e.backgroundColor,r="#2c2c54"===n,i="#f8f8f8"===n,o=t.beginPointerType,s=t.endPointerType;return a.a.createElement("div",{className:Hr(cg.wrapper)},a.a.createElement("div",{className:Hr(cg.circle,r&&cg.circleBlue,i&&cg.circleGrey)},o&&a.a.createElement(sg,{backgroundColor:n,testId:"begin-pointer",type:o}),s&&a.a.createElement(sg,{backgroundColor:n,testId:"end-pointer",type:s})))};ug.defaultProps={pointers:{beginPointerType:null,endPointerType:null},backgroundColor:"#2c2c54"},ug.propTypes={pointers:m.a.shape({beginPointerType:Jd,endPointerType:Jd}),backgroundColor:m.a.string};var cg=Wr.create({wrapper:{width:"100%",height:"100%"},circle:{width:"60%",height:"60%",top:"20%",left:"20%",position:"relative",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center"},circleBlue:{backgroundColor:"#2c2c54"},circleGrey:{backgroundColor:"#f8f8f8"}}),lg=ug;function dg(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var hg=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=dg(e).slice(0);return{firstElement:n.shift(),rows:Object(Vr.chunk)(n,t)}},pg=function(e){var t=e.isFirstRow,n=e.isEvenRow,r=e.elementsPerRow,i=e.elementsInRow,o=function(e){var t=e.isFirstRow,n=e.isEvenRow;return t?"first":n?"even":"notEven"}({isFirstRow:t,isEvenRow:n}),a=function(e){switch(e){case 1:return"Small";case 2:return"Medium";case 3:default:return"Large"}}(r),s=r-i,u=!t&&0!==s,c=[fg["".concat(o,"Row").concat(a)]];return u&&c.push(fg["".concat(o,"Distance").concat(s).concat(a)]),c},fg=Wr.create({firstRowLarge:{marginTop:-67,marginLeft:135},evenRowLarge:{marginTop:-69,marginLeft:137},notEvenRowLarge:{marginTop:-69,marginLeft:-226},notEvenDistance2Large:{marginLeft:274},notEvenDistance1Large:{marginLeft:24},evenDistance2Large:{marginLeft:-364},evenDistance1Large:{marginLeft:-113},firstRowMedium:{marginTop:-67,marginLeft:-115},evenRowMedium:{marginTop:-67,marginLeft:-113},notEvenRowMedium:{marginTop:-67,marginLeft:-480},notEvenDistance1Medium:{marginLeft:-230},evenDistance1Medium:{marginLeft:-363},firstRowSmall:{marginTop:-67,marginLeft:-365},evenRowSmall:{marginTop:-67,marginLeft:-363},notEvenRowSmall:{marginTop:-67,marginLeft:2}});function gg(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0&&void 0!==arguments[0])||arguments[0],t=function(){return window.matchMedia("(max-width: 768px)").matches?"small":window.matchMedia("(min-width:1200px)").matches?"large":"medium"},n=Lm(Object(o.useState)(t()),2),r=n[0],i=n[1];return Object(o.useEffect)(function(){var n=Object(Vr.throttle)(function(){var n=t();n!==r&&(i(n),e&&window.location.reload())},1e3);return window.addEventListener("resize",n),function(){return window.removeEventListener("resize",n)}},[]),r},km=function(){var e=Object(o.useContext)(Qt).subjects.eventSubject;return function(t){var n=t.type,r=t.payload;e.next({type:n,payload:r})}};function Dm(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Om=function(){var e=Dm(Object(o.useState)(null),2),t=e[0],n=e[1],r=Object(o.useContext)(Gt);Object(o.useEffect)(function(){r.getLoggedUser().then(n)},[]);return[t,function(){r.clearLoggedUserData(),r.getLoggedUser().then(n)}]};function Am(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var jm=function(e){var t=e.progress,n=Am(Om(),1)[0];return n?a.a.createElement("div",{className:Hr(Pm.wrapper)},a.a.createElement("div",{style:{width:"".concat(t,"%")},className:Hr(Pm.bar)}),a.a.createElement(Xg,{css:Rm(t),avatarName:n.avatar})):null};jm.defaultProps={progress:0},jm.propTypes={progress:m.a.number};var Pm=Wr.create({wrapper:{width:"100%",height:16,borderRadius:4,backgroundColor:rh,position:"relative"},bar:{height:"100%",borderRadius:4,backgroundImage:"linear-gradient(to left, ".concat("#b5e555",", ").concat("#87cc1f",")")}}),Rm=function(e){return{wrapper:{width:28,height:28,position:"absolute",border:"solid 3px #9dcb2d",boxShadow:"-4px 0 8px 0 rgba(181, 229, 85, 0.4)",top:-8,left:"calc(".concat(e,"% - 14px)")},image:{width:28},element:{width:28}}},zm=a.a.memo(jm),Fm=function(e,t){return t>e?"starFilled":"starEmpty"},Bm=function(e){var t=e.rating,n=e.customClass,r=Array.from({length:5},function(e,n){return a.a.createElement(jd,{key:n,iconName:Fm(n,t)})});return a.a.createElement("div",{className:Hr(n)},r)};Bm.defaultProps={rating:null},Bm.propTypes={rating:m.a.number,customClass:m.a.object};var Um=a.a.memo(Bm),Wm={workaholic7:"workaholic7Badge",workaholic14:"workaholic14Badge",workaholic30:"workaholic30Badge",xp700:"xp700Badge",xp1500:"xp1500Badge",xp3600:"xp3600Badge","early-bird":"earlyBirdBadge","night-owl":"nightOwlBadge","test-conqueror1":"testConqueror1Badge","test-conqueror5":"testConqueror5Badge","test-conqueror10":"testConqueror10Badge",welcome:"welcomeBadge","css-basic":"cssBasicBadge","css-animations":"cssAnimationsBadge","profile-fill":"profileFillBadge","github-fill":"githubFillBadge","day-champion":"dayChampionBadge","first-work":"firstWorkBadge"},Hm=function(e){var t=e.slug,n=e.level,r=e.name,i=n?t+n:t;return a.a.createElement("div",{className:Hr(qm.wrapper)},a.a.createElement(jd,{iconName:Wm[i],css:Vm}),a.a.createElement("div",null,r,n?" (".concat(n,")"):null))},Vm={element:{height:100}},qm=Wr.create({wrapper:{display:"flex",flexDirection:"column",alignItems:"center",marginBottom:50,minWidth:230}});Hm.defaultProps={level:null},Hm.propTypes={slug:m.a.string.isRequired,level:m.a.number,name:m.a.string.isRequired};var Ym=Hm;function Gm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Zm=function(e){var t=e.iconName;return a.a.createElement("div",{className:Hr(Km.wrapper)},a.a.createElement(jd,{iconName:t,css:Qm}))},Qm={element:{height:50}},Km=Wr.create({wrapper:function(e){for(var t=1;t0}var Dy,Oy=function(e){var t="";return ky(e.graphQLErrors)&&e.graphQLErrors.forEach(function(e){var n=e?e.message:"Error message not found.";t+="GraphQL error: "+n+"\n"}),e.networkError&&(t+="Network error: "+e.networkError.message+"\n"),t=t.replace(/\n$/,"")},Ay=function(e){function t(n){var r=n.graphQLErrors,i=n.networkError,o=n.errorMessage,a=n.extraInfo,s=e.call(this,o)||this;return s.graphQLErrors=r||[],s.networkError=i||null,s.message=o||Oy(s),s.extraInfo=a,s.__proto__=t.prototype,s}return Object(qh.c)(t,e),t}(Error);!function(e){e[e.normal=1]="normal",e[e.refetch=2]="refetch",e[e.poll=3]="poll"}(Dy||(Dy={}));var jy=function(e){function t(t){var n=t.queryManager,r=t.options,i=t.shouldSubscribe,o=void 0===i||i,a=e.call(this,function(e){return a.onSubscribe(e)})||this;a.observers=new Set,a.subscriptions=new Set,a.isTornDown=!1,a.options=r,a.variables=r.variables||{},a.queryId=n.generateQueryId(),a.shouldSubscribe=o;var s=Object(uy.i)(r.query);return a.queryName=s&&s.name&&s.name.value,a.queryManager=n,a}return Object(qh.c)(t,e),t.prototype.result=function(){var e=this;return new Promise(function(t,n){var r={next:function(n){t(n),e.observers.delete(r),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout(function(){i.unsubscribe()},0)},error:n},i=e.subscribe(r)})},t.prototype.currentResult=function(){var e=this.getCurrentResult();return void 0===e.data&&(e.data={}),e},t.prototype.getCurrentResult=function(){if(this.isTornDown){var e=this.lastResult;return{data:!this.lastError&&e&&e.data||void 0,error:this.lastError,loading:!1,networkStatus:xy.error}}var t,n,r,i=this.queryManager.getCurrentQueryResult(this),o=i.data,a=i.partial,s=this.queryManager.queryStore.get(this.queryId),u=this.options.fetchPolicy,c="network-only"===u||"no-cache"===u;if(s){var l=s.networkStatus;if(n=s,void 0===(r=this.options.errorPolicy)&&(r="none"),n&&(n.networkError||"none"===r&&ky(n.graphQLErrors)))return{data:void 0,loading:!1,networkStatus:l,error:new Ay({graphQLErrors:s.graphQLErrors,networkError:s.networkError})};s.variables&&(this.options.variables=Object(qh.a)({},this.options.variables,s.variables),this.variables=this.options.variables),t={data:o,loading:Ly(l),networkStatus:l},s.graphQLErrors&&"all"===this.options.errorPolicy&&(t.errors=s.graphQLErrors)}else{var d=c||a&&"cache-only"!==u;t={data:o,loading:d,networkStatus:d?xy.loading:xy.ready}}return a||this.updateLastResult(Object(qh.a)({},t,{stale:!1})),Object(qh.a)({},t,{partial:a})},t.prototype.isDifferentFromLastResult=function(e){var t=this.lastResultSnapshot;return!(t&&e&&t.networkStatus===e.networkStatus&&t.stale===e.stale&&Object(cy.a)(t.data,e.data))},t.prototype.getLastResult=function(){return this.lastResult},t.prototype.getLastError=function(){return this.lastError},t.prototype.resetLastResults=function(){delete this.lastResult,delete this.lastResultSnapshot,delete this.lastError,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){var e=this.queryManager.queryStore.get(this.queryId);e&&(e.networkError=null,e.graphQLErrors=[])},t.prototype.refetch=function(e){var t=this.options.fetchPolicy;return"cache-only"===t?Promise.reject(new We.a(3)):("no-cache"!==t&&"cache-and-network"!==t&&(t="network-only"),Object(cy.a)(this.variables,e)||(this.variables=Object(qh.a)({},this.variables,e)),Object(cy.a)(this.options.variables,this.variables)||(this.options.variables=Object(qh.a)({},this.options.variables,this.variables)),this.queryManager.fetchQuery(this.queryId,Object(qh.a)({},this.options,{fetchPolicy:t}),Dy.refetch))},t.prototype.fetchMore=function(e){var t=this;Object(We.b)(e.updateQuery,4);var n=Object(qh.a)({},e.query?e:Object(qh.a)({},this.options,e,{variables:Object(qh.a)({},this.variables,e.variables)}),{fetchPolicy:"network-only"}),r=this.queryManager.generateQueryId();return this.queryManager.fetchQuery(r,n,Dy.normal,this.queryId).then(function(i){return t.updateQuery(function(t){return e.updateQuery(t,{fetchMoreResult:i.data,variables:n.variables})}),t.queryManager.stopQuery(r),i},function(e){throw t.queryManager.stopQuery(r),e})},t.prototype.subscribeToMore=function(e){var t=this,n=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables}).subscribe({next:function(n){var r=e.updateQuery;r&&t.updateQuery(function(e,t){var i=t.variables;return r(e,{subscriptionData:n,variables:i})})},error:function(t){e.onError&&e.onError(t)}});return this.subscriptions.add(n),function(){t.subscriptions.delete(n)&&n.unsubscribe()}},t.prototype.setOptions=function(e){var t=this.options.fetchPolicy;this.options=Object(qh.a)({},this.options,e),e.pollInterval?this.startPolling(e.pollInterval):0===e.pollInterval&&this.stopPolling();var n=e.fetchPolicy;return this.setVariables(this.options.variables,t!==n&&("cache-only"===t||"standby"===t||"network-only"===n),e.fetchResults)},t.prototype.setVariables=function(e,t,n){return void 0===t&&(t=!1),void 0===n&&(n=!0),this.isTornDown=!1,e=e||this.variables,!t&&Object(cy.a)(e,this.variables)?this.observers.size&&n?this.result():Promise.resolve():(this.variables=this.options.variables=e,this.observers.size?this.queryManager.fetchQuery(this.queryId,this.options):Promise.resolve())},t.prototype.updateQuery=function(e){var t=this.queryManager,n=t.getQueryWithPreviousResult(this.queryId),r=n.previousResult,i=n.variables,o=n.document,a=Object(uy.v)(function(){return e(r,{variables:i})});a&&(t.dataStore.markUpdateQueryResult(o,i,a),t.broadcastQueries())},t.prototype.stopPolling=function(){this.queryManager.stopPollingQuery(this.queryId),this.options.pollInterval=void 0},t.prototype.startPolling=function(e){zy(this),this.options.pollInterval=e,this.queryManager.startPollingQuery(this.options,this.queryId)},t.prototype.updateLastResult=function(e){var t=this.lastResult;return this.lastResult=e,this.lastResultSnapshot=this.queryManager.assumeImmutableResults?e:Object(uy.d)(e),t},t.prototype.onSubscribe=function(e){var t=this;try{var n=e._subscription._observer;n&&!n.error&&(n.error=Py)}catch(e){}var r=!this.observers.size;return this.observers.add(e),e.next&&this.lastResult&&e.next(this.lastResult),e.error&&this.lastError&&e.error(this.lastError),r&&this.setUpQuery(),function(){t.observers.delete(e)&&!t.observers.size&&t.tearDownQuery()}},t.prototype.setUpQuery=function(){var e=this,t=this.queryManager,n=this.queryId;this.shouldSubscribe&&t.addObservableQuery(n,this),this.options.pollInterval&&(zy(this),t.startPollingQuery(this.options,n));var r=function(t){Ry(e.observers,"error",e.lastError=t)};t.observeQuery(n,this.options,{next:function(n){if(e.lastError||e.isDifferentFromLastResult(n)){var r=e.updateLastResult(n),i=e.options,o=i.query,a=i.variables,s=i.fetchPolicy;t.transform(o).hasClientExports?t.getLocalState().addExportedVariables(o,a).then(function(i){var a=e.variables;e.variables=e.options.variables=i,!n.loading&&r&&"cache-only"!==s&&t.transform(o).serverQuery&&!Object(cy.a)(a,i)?e.refetch():Ry(e.observers,"next",n)}):Ry(e.observers,"next",n)}},error:r}).catch(r)},t.prototype.tearDownQuery=function(){var e=this.queryManager;this.isTornDown=!0,e.stopPollingQuery(this.queryId),this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions.clear(),e.removeObservableQuery(this.queryId),e.stopQuery(this.queryId),this.observers.clear()},t}(Ty);function Py(e){}function Ry(e,t,n){var r=[];e.forEach(function(e){return e[t]&&r.push(e)}),r.forEach(function(e){return e[t](n)})}function zy(e){var t=e.options.fetchPolicy;Object(We.b)("cache-first"!==t&&"cache-only"!==t,5)}var Fy=function(){function e(){this.store={}}return e.prototype.getStore=function(){return this.store},e.prototype.get=function(e){return this.store[e]},e.prototype.initMutation=function(e,t,n){this.store[e]={mutation:t,variables:n||{},loading:!0,error:null}},e.prototype.markMutationError=function(e,t){var n=this.store[e];n&&(n.loading=!1,n.error=t)},e.prototype.markMutationResult=function(e){var t=this.store[e];t&&(t.loading=!1,t.error=null)},e.prototype.reset=function(){this.store={}},e}(),By=function(){function e(){this.store={}}return e.prototype.getStore=function(){return this.store},e.prototype.get=function(e){return this.store[e]},e.prototype.initQuery=function(e){var t=this.store[e.queryId];Object(We.b)(!t||t.document===e.document||Object(cy.a)(t.document,e.document),19);var n,r=!1,i=null;e.storePreviousVariables&&t&&t.networkStatus!==xy.loading&&(Object(cy.a)(t.variables,e.variables)||(r=!0,i=t.variables)),n=r?xy.setVariables:e.isPoll?xy.poll:e.isRefetch?xy.refetch:xy.loading;var o=[];t&&t.graphQLErrors&&(o=t.graphQLErrors),this.store[e.queryId]={document:e.document,variables:e.variables,previousVariables:i,networkError:null,graphQLErrors:o,networkStatus:n,metadata:e.metadata},"string"==typeof e.fetchMoreForQueryId&&this.store[e.fetchMoreForQueryId]&&(this.store[e.fetchMoreForQueryId].networkStatus=xy.fetchMore)},e.prototype.markQueryResult=function(e,t,n){this.store&&this.store[e]&&(this.store[e].networkError=null,this.store[e].graphQLErrors=ky(t.errors)?t.errors:[],this.store[e].previousVariables=null,this.store[e].networkStatus=xy.ready,"string"==typeof n&&this.store[n]&&(this.store[n].networkStatus=xy.ready))},e.prototype.markQueryError=function(e,t,n){this.store&&this.store[e]&&(this.store[e].networkError=t,this.store[e].networkStatus=xy.error,"string"==typeof n&&this.markQueryResultClient(n,!0))},e.prototype.markQueryResultClient=function(e,t){var n=this.store&&this.store[e];n&&(n.networkError=null,n.previousVariables=null,t&&(n.networkStatus=xy.ready))},e.prototype.stopQuery=function(e){delete this.store[e]},e.prototype.reset=function(e){var t=this;Object.keys(this.store).forEach(function(n){e.indexOf(n)<0?t.stopQuery(n):t.store[n].networkStatus=xy.loading})},e}();var Uy=function(){function e(e){var t=e.cache,n=e.client,r=e.resolvers,i=e.fragmentMatcher;this.cache=t,n&&(this.client=n),r&&this.addResolvers(r),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(e){t.resolvers=Object(uy.p)(t.resolvers,e)}):this.resolvers=Object(uy.p)(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){var t=e.document,n=e.remoteResult,r=e.context,i=e.variables,o=e.onlyRunForcedResolvers,a=void 0!==o&&o;return Object(qh.b)(this,void 0,void 0,function(){return Object(qh.d)(this,function(e){return t?[2,this.resolveDocument(t,n.data,r,i,this.fragmentMatcher,a).then(function(e){return Object(qh.a)({},n,{data:e.result})})]:[2,n]})})},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return Object(uy.m)(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return this.resolvers?Object(uy.r)(e):e},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.cache;return Object(qh.a)({},e,{cache:t,getCacheKey:function(e){if(t.config)return t.config.dataIdFromObject(e);Object(We.b)(!1,17)}})},e.prototype.addExportedVariables=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),Object(qh.b)(this,void 0,void 0,function(){return Object(qh.d)(this,function(r){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(n),t).then(function(e){return Object(qh.a)({},t,e.exportedVariables)})]:[2,Object(qh.a)({},t)]})})},e.prototype.shouldForceResolvers=function(e){var t=!1;return Object(Ey.visit)(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some(function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value})))return Ey.BREAK}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:Object(uy.b)(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,n,r,i,o){return void 0===n&&(n={}),void 0===r&&(r={}),void 0===i&&(i=function(){return!0}),void 0===o&&(o=!1),Object(qh.b)(this,void 0,void 0,function(){var a,s,u,c,l,d,h,p,f;return Object(qh.d)(this,function(g){var m;return a=Object(uy.h)(e),s=Object(uy.g)(e),u=Object(uy.e)(s),c=a.operation,l=c?(m=c).charAt(0).toUpperCase()+m.slice(1):"Query",h=(d=this).cache,p=d.client,f={fragmentMap:u,context:Object(qh.a)({},n,{cache:h,client:p}),variables:r,fragmentMatcher:i,defaultOperationType:l,exportedVariables:{},onlyRunForcedResolvers:o},[2,this.resolveSelectionSet(a.selectionSet,t,f).then(function(e){return{result:e,exportedVariables:f.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(e,t,n){return Object(qh.b)(this,void 0,void 0,function(){var r,i,o,a,s,u=this;return Object(qh.d)(this,function(c){return r=n.fragmentMap,i=n.context,o=n.variables,a=[t],s=function(e){return Object(qh.b)(u,void 0,void 0,function(){var s,u;return Object(qh.d)(this,function(c){return Object(uy.u)(e,o)?Object(uy.n)(e)?[2,this.resolveField(e,t,n).then(function(t){var n;void 0!==t&&a.push(((n={})[Object(uy.t)(e)]=t,n))})]:(Object(uy.o)(e)?s=e:(s=r[e.name.value],Object(We.b)(s,18)),s&&s.typeCondition&&(u=s.typeCondition.name.value,n.fragmentMatcher(t,u,i))?[2,this.resolveSelectionSet(s.selectionSet,t,n).then(function(e){a.push(e)})]:[2]):[2]})})},[2,Promise.all(e.selections.map(s)).then(function(){return Object(uy.q)(a)})]})})},e.prototype.resolveField=function(e,t,n){return Object(qh.b)(this,void 0,void 0,function(){var r,i,o,a,s,u,c,l,d,h=this;return Object(qh.d)(this,function(p){return r=n.variables,i=e.name.value,o=Object(uy.t)(e),a=i!==o,s=t[o]||t[i],u=Promise.resolve(s),n.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(c=t.__typename||n.defaultOperationType,(l=this.resolvers&&this.resolvers[c])&&(d=l[a?i:o])&&(u=Promise.resolve(d(t,Object(uy.a)(e,r),n.context,{field:e})))),[2,u.then(function(t){return void 0===t&&(t=s),e.directives&&e.directives.forEach(function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach(function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(n.exportedVariables[e.value.value]=t)})}),e.selectionSet?null==t?t:Array.isArray(t)?h.resolveSubSelectedArray(e,t,n):e.selectionSet?h.resolveSelectionSet(e.selectionSet,t,n):void 0:t})]})})},e.prototype.resolveSubSelectedArray=function(e,t,n){var r=this;return Promise.all(t.map(function(t){return null===t?null:Array.isArray(t)?r.resolveSubSelectedArray(e,t,n):e.selectionSet?r.resolveSelectionSet(e.selectionSet,t,n):void 0}))},e}();function Wy(e){var t=new Set,n=null;return new Ty(function(r){return t.add(r),n=n||e.subscribe({next:function(e){t.forEach(function(t){return t.next&&t.next(e)})},error:function(e){t.forEach(function(t){return t.error&&t.error(e)})},complete:function(){t.forEach(function(e){return e.complete&&e.complete()})}}),function(){t.delete(r)&&!t.size&&n&&(n.unsubscribe(),n=null)}})}var Hy=Object.prototype.hasOwnProperty,Vy=function(){function e(e){var t=e.link,n=e.queryDeduplication,r=void 0!==n&&n,i=e.store,o=e.onBroadcast,a=void 0===o?function(){}:o,s=e.ssrMode,u=void 0!==s&&s,c=e.clientAwareness,l=void 0===c?{}:c,d=e.localState,h=e.assumeImmutableResults;this.mutationStore=new Fy,this.queryStore=new By,this.clientAwareness={},this.idCounter=1,this.queries=new Map,this.fetchQueryRejectFns=new Map,this.transformCache=new(uy.c?WeakMap:Map),this.inFlightLinkObservables=new Map,this.pollingInfoByQueryId=new Map,this.link=t,this.queryDeduplication=r,this.dataStore=i,this.onBroadcast=a,this.clientAwareness=l,this.localState=d||new Uy({cache:i.getCache()}),this.ssrMode=u,this.assumeImmutableResults=!!h}return e.prototype.stop=function(){var e=this;this.queries.forEach(function(t,n){e.stopQueryNoBroadcast(n)}),this.fetchQueryRejectFns.forEach(function(e){e(new We.a(6))})},e.prototype.mutate=function(e){var t=e.mutation,n=e.variables,r=e.optimisticResponse,i=e.updateQueries,o=e.refetchQueries,a=void 0===o?[]:o,s=e.awaitRefetchQueries,u=void 0!==s&&s,c=e.update,l=e.errorPolicy,d=void 0===l?"none":l,h=e.fetchPolicy,p=e.context,f=void 0===p?{}:p;return Object(qh.b)(this,void 0,void 0,function(){var e,o,s,l=this;return Object(qh.d)(this,function(p){switch(p.label){case 0:return Object(We.b)(t,7),Object(We.b)(!h||"no-cache"===h,8),e=this.generateQueryId(),t=this.transform(t).document,this.setQuery(e,function(){return{document:t}}),n=this.getVariables(t,n),this.transform(t).hasClientExports?[4,this.localState.addExportedVariables(t,n,f)]:[3,2];case 1:n=p.sent(),p.label=2;case 2:return o=function(){var e={};return i&&l.queries.forEach(function(t,n){var r=t.observableQuery;if(r){var o=r.queryName;o&&Hy.call(i,o)&&(e[n]={updater:i[o],query:l.queryStore.get(n)})}}),e},this.mutationStore.initMutation(e,t,n),this.dataStore.markMutationInit({mutationId:e,document:t,variables:n,updateQueries:o(),update:c,optimisticResponse:r}),this.broadcastQueries(),s=this,[2,new Promise(function(i,l){var p,g;s.getObservableFromLink(t,Object(qh.a)({},f,{optimisticResponse:r}),n,!1).subscribe({next:function(r){Object(uy.k)(r)&&"none"===d?g=new Ay({graphQLErrors:r.errors}):(s.mutationStore.markMutationResult(e),"no-cache"!==h&&s.dataStore.markMutationResult({mutationId:e,result:r,document:t,variables:n,updateQueries:o(),update:c}),p=r)},error:function(t){s.mutationStore.markMutationError(e,t),s.dataStore.markMutationComplete({mutationId:e,optimisticResponse:r}),s.broadcastQueries(),s.setQuery(e,function(){return{document:null}}),l(new Ay({networkError:t}))},complete:function(){if(g&&s.mutationStore.markMutationError(e,g),s.dataStore.markMutationComplete({mutationId:e,optimisticResponse:r}),s.broadcastQueries(),g)l(g);else{"function"==typeof a&&(a=a(p));var t=[];ky(a)&&a.forEach(function(e){if("string"==typeof e)s.queries.forEach(function(n){var r=n.observableQuery;r&&r.queryName===e&&t.push(r.refetch())});else{var n={query:e.query,variables:e.variables,fetchPolicy:"network-only"};e.context&&(n.context=e.context),t.push(s.query(n))}}),Promise.all(u?t:[]).then(function(){s.setQuery(e,function(){return{document:null}}),"ignore"===d&&p&&Object(uy.k)(p)&&delete p.errors,i(p)})}}})})]}})})},e.prototype.fetchQuery=function(e,t,n,r){return Object(qh.b)(this,void 0,void 0,function(){var i,o,a,s,u,c,l,d,h,p,f,g,m,y,v,b,_,w,S=this;return Object(qh.d)(this,function(C){switch(C.label){case 0:return i=t.metadata,o=void 0===i?null:i,a=t.fetchPolicy,s=void 0===a?"cache-first":a,u=t.context,c=void 0===u?{}:u,l=this.transform(t.query).document,d=this.getVariables(l,t.variables),this.transform(l).hasClientExports?[4,this.localState.addExportedVariables(l,d,c)]:[3,2];case 1:d=C.sent(),C.label=2;case 2:if(t=Object(qh.a)({},t,{variables:d}),f=p="network-only"===s||"no-cache"===s,p||(g=this.dataStore.getCache().diff({query:l,variables:d,returnPartialData:!0,optimistic:!1}),m=g.complete,y=g.result,f=!m||"cache-and-network"===s,h=y),v=f&&"cache-only"!==s&&"standby"!==s,Object(uy.m)(["live"],l)&&(v=!0),b=this.idCounter++,_="no-cache"!==s?this.updateQueryWatch(e,l,t):void 0,this.setQuery(e,function(){return{document:l,lastRequestId:b,invalidated:!0,cancel:_}}),this.invalidate(r),this.queryStore.initQuery({queryId:e,document:l,storePreviousVariables:v,variables:d,isPoll:n===Dy.poll,isRefetch:n===Dy.refetch,metadata:o,fetchMoreForQueryId:r}),this.broadcastQueries(),v){if(w=this.fetchRequest({requestId:b,queryId:e,document:l,options:t,fetchMoreForQueryId:r}).catch(function(t){throw t.hasOwnProperty("graphQLErrors")?t:(b>=S.getQuery(e).lastRequestId&&(S.queryStore.markQueryError(e,t,r),S.invalidate(e),S.invalidate(r),S.broadcastQueries()),new Ay({networkError:t}))}),"cache-and-network"!==s)return[2,w];w.catch(function(){})}return this.queryStore.markQueryResultClient(e,!v),this.invalidate(e),this.invalidate(r),this.transform(l).hasForcedResolvers?[2,this.localState.runResolvers({document:l,remoteResult:{data:h},context:c,variables:d,onlyRunForcedResolvers:!0}).then(function(n){return S.markQueryResult(e,n,t,r),S.broadcastQueries(),n})]:(this.broadcastQueries(),[2,{data:h}])}})})},e.prototype.markQueryResult=function(e,t,n,r){var i=n.fetchPolicy,o=n.variables,a=n.errorPolicy;"no-cache"===i?this.setQuery(e,function(){return{newData:{result:t.data,complete:!0}}}):this.dataStore.markQueryResult(t,this.getQuery(e).document,o,r,"ignore"===a||"all"===a)},e.prototype.queryListenerForObserver=function(e,t,n){var r=this;function i(e,t){if(n[e])try{n[e](t)}catch(e){}}return function(n,o){if(r.invalidate(e,!1),n){var a=r.getQuery(e),s=a.observableQuery,u=a.document,c=s?s.options.fetchPolicy:t.fetchPolicy;if("standby"!==c){var l=Ly(n.networkStatus),d=s&&s.getLastResult(),h=!(!d||d.networkStatus===n.networkStatus),p=t.returnPartialData||!o&&n.previousVariables||h&&t.notifyOnNetworkStatusChange||"cache-only"===c||"cache-and-network"===c;if(!l||p){var f=ky(n.graphQLErrors),g=s&&s.options.errorPolicy||t.errorPolicy||"none";if("none"===g&&f||n.networkError)return i("error",new Ay({graphQLErrors:n.graphQLErrors,networkError:n.networkError}));try{var m=void 0,y=void 0;if(o)"no-cache"!==c&&"network-only"!==c&&r.setQuery(e,function(){return{newData:null}}),m=o.result,y=!o.complete;else{var v=s&&s.getLastError(),b="none"!==g&&(v&&v.graphQLErrors)!==n.graphQLErrors;if(d&&d.data&&!b)m=d.data,y=!1;else{var _=r.dataStore.getCache().diff({query:u,variables:n.previousVariables||n.variables,returnPartialData:!0,optimistic:!0});m=_.result,y=!_.complete}}var w=y&&!(t.returnPartialData||"cache-only"===c),S={data:w?d&&d.data:m,loading:l,networkStatus:n.networkStatus,stale:w};"all"===g&&f&&(S.errors=n.graphQLErrors),i("next",S)}catch(e){i("error",new Ay({networkError:e}))}}}}}},e.prototype.transform=function(e){var t=this.transformCache;if(!t.has(e)){var n=this.dataStore.getCache(),r=n.transformDocument(e),i=Object(uy.s)(n.transformForLink(r)),o=this.localState.clientQuery(r),a=this.localState.serverQuery(i),s={document:r,hasClientExports:Object(uy.l)(r),hasForcedResolvers:this.localState.shouldForceResolvers(r),clientQuery:o,serverQuery:a,defaultVars:Object(uy.f)(Object(uy.i)(r))},u=function(e){e&&!t.has(e)&&t.set(e,s)};u(e),u(r),u(o),u(a)}return t.get(e)},e.prototype.getVariables=function(e,t){return Object(qh.a)({},this.transform(e).defaultVars,t)},e.prototype.watchQuery=function(e,t){void 0===t&&(t=!0),Object(We.b)("standby"!==e.fetchPolicy,9),e.variables=this.getVariables(e.query,e.variables),void 0===e.notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var n=Object(qh.a)({},e);return new jy({queryManager:this,options:n,shouldSubscribe:t})},e.prototype.query=function(e){var t=this;return Object(We.b)(e.query,10),Object(We.b)("Document"===e.query.kind,11),Object(We.b)(!e.returnPartialData,12),Object(We.b)(!e.pollInterval,13),new Promise(function(n,r){var i=t.watchQuery(e,!1);t.fetchQueryRejectFns.set("query:"+i.queryId,r),i.result().then(n,r).then(function(){return t.fetchQueryRejectFns.delete("query:"+i.queryId)})})},e.prototype.generateQueryId=function(){return String(this.idCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){this.stopPollingQuery(e),this.queryStore.stopQuery(e),this.invalidate(e)},e.prototype.addQueryListener=function(e,t){this.setQuery(e,function(e){return e.listeners.add(t),{invalidated:!1}})},e.prototype.updateQueryWatch=function(e,t,n){var r=this,i=this.getQuery(e).cancel;i&&i();return this.dataStore.getCache().watch({query:t,variables:n.variables,optimistic:!0,previousResult:function(){var t=null,n=r.getQuery(e).observableQuery;if(n){var i=n.getLastResult();i&&(t=i.data)}return t},callback:function(t){r.setQuery(e,function(){return{invalidated:!0,newData:t}})}})},e.prototype.addObservableQuery=function(e,t){this.setQuery(e,function(){return{observableQuery:t}})},e.prototype.removeObservableQuery=function(e){var t=this.getQuery(e).cancel;this.setQuery(e,function(){return{observableQuery:null}}),t&&t()},e.prototype.clearStore=function(){this.fetchQueryRejectFns.forEach(function(e){e(new We.a(14))});var e=[];return this.queries.forEach(function(t,n){t.observableQuery&&e.push(n)}),this.queryStore.reset(e),this.mutationStore.reset(),this.dataStore.reset()},e.prototype.resetStore=function(){var e=this;return this.clearStore().then(function(){return e.reFetchObservableQueries()})},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var n=[];return this.queries.forEach(function(r,i){var o=r.observableQuery;if(o){var a=o.options.fetchPolicy;o.resetLastResults(),"cache-only"===a||!e&&"standby"===a||n.push(o.refetch()),t.setQuery(i,function(){return{newData:null}}),t.invalidate(i)}}),this.broadcastQueries(),Promise.all(n)},e.prototype.observeQuery=function(e,t,n){return this.addQueryListener(e,this.queryListenerForObserver(e,t,n)),this.fetchQuery(e,t)},e.prototype.startQuery=function(e,t,n){return this.addQueryListener(e,n),this.fetchQuery(e,t).catch(function(){}),e},e.prototype.startGraphQLSubscription=function(e){var t=this,n=e.query,r=e.fetchPolicy,i=e.variables;n=this.transform(n).document,i=this.getVariables(n,i);var o=function(e){return t.getObservableFromLink(n,{},e,!1).map(function(i){if(r&&"no-cache"===r||(t.dataStore.markSubscriptionResult(i,n,e),t.broadcastQueries()),Object(uy.k)(i))throw new Ay({graphQLErrors:i.errors});return i})};if(this.transform(n).hasClientExports){var a=this.localState.addExportedVariables(n,i).then(o);return new Ty(function(e){var t=null;return a.then(function(n){return t=n.subscribe(e)},e.error),function(){return t&&t.unsubscribe()}})}return o(i)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchQueryRejectFns.delete("query:"+e),this.fetchQueryRejectFns.delete("fetchRequest:"+e),this.getQuery(e).subscriptions.forEach(function(e){return e.unsubscribe()}),this.queries.delete(e)},e.prototype.getCurrentQueryResult=function(e,t){void 0===t&&(t=!0);var n=e.options,r=n.variables,i=n.query,o=n.fetchPolicy,a=n.returnPartialData,s=e.getLastResult(),u=this.getQuery(e.queryId).newData;if(u&&u.complete)return{data:u.result,partial:!1};if("no-cache"===o||"network-only"===o)return{data:void 0,partial:!1};var c=this.dataStore.getCache().diff({query:i,variables:r,previousResult:s?s.data:void 0,returnPartialData:!0,optimistic:t}),l=c.result,d=c.complete;return{data:d||a?l:void 0,partial:!d}},e.prototype.getQueryWithPreviousResult=function(e){var t;if("string"==typeof e){var n=this.getQuery(e).observableQuery;Object(We.b)(n,15),t=n}else t=e;var r=t.options,i=r.variables,o=r.query;return{previousResult:this.getCurrentQueryResult(t,!1).data,variables:i,document:o}},e.prototype.broadcastQueries=function(){var e=this;this.onBroadcast(),this.queries.forEach(function(t,n){t.invalidated&&t.listeners.forEach(function(r){r&&r(e.queryStore.get(n),t.newData)})})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,n,r){var i,o=this;void 0===r&&(r=this.queryDeduplication);var a=this.transform(e).serverQuery;if(a){var s=this.inFlightLinkObservables,u=this.link,c={query:a,variables:n,operationName:Object(uy.j)(a)||void 0,context:this.prepareContext(Object(qh.a)({},t,{forceFetch:!r}))};if(t=c.context,r){var l=s.get(a)||new Map;s.set(a,l);var d=JSON.stringify(n);if(!(i=l.get(d))){l.set(d,i=Wy(My(u,c)));var h=function(){l.delete(d),l.size||s.delete(a),p.unsubscribe()},p=i.subscribe({next:h,error:h,complete:h})}}else i=Wy(My(u,c))}else i=Ty.of({data:{}}),t=this.prepareContext(t);var f=this.transform(e).clientQuery;return f&&(i=function(e,t){return new Ty(function(n){var r=n.next,i=n.error,o=n.complete,a=0,s=!1,u={next:function(e){++a,new Promise(function(n){n(t(e))}).then(function(e){--a,r&&r.call(n,e),s&&u.complete()},function(e){--a,i&&i.call(n,e)})},error:function(e){i&&i.call(n,e)},complete:function(){s=!0,a||o&&o.call(n)}},c=e.subscribe(u);return function(){return c.unsubscribe()}})}(i,function(e){return o.localState.runResolvers({document:f,remoteResult:e,context:t,variables:n})})),i},e.prototype.fetchRequest=function(e){var t,n,r=this,i=e.requestId,o=e.queryId,a=e.document,s=e.options,u=e.fetchMoreForQueryId,c=s.variables,l=s.errorPolicy,d=void 0===l?"none":l,h=s.fetchPolicy;return new Promise(function(e,l){var p=r.getObservableFromLink(a,s.context,c),f="fetchRequest:"+o;r.fetchQueryRejectFns.set(f,l);var g=function(){r.fetchQueryRejectFns.delete(f),r.setQuery(o,function(e){e.subscriptions.delete(m)})},m=p.map(function(e){if(i>=r.getQuery(o).lastRequestId&&(r.markQueryResult(o,e,s,u),r.queryStore.markQueryResult(o,e,u),r.invalidate(o),r.invalidate(u),r.broadcastQueries()),"none"===d&&ky(e.errors))return l(new Ay({graphQLErrors:e.errors}));if("all"===d&&(n=e.errors),u||"no-cache"===h)t=e.data;else{var p=r.dataStore.getCache().diff({variables:c,query:a,optimistic:!1,returnPartialData:!0}),f=p.result;(p.complete||s.returnPartialData)&&(t=f)}}).subscribe({error:function(e){g(),l(e)},complete:function(){g(),e({data:t,errors:n,loading:!1,networkStatus:xy.ready,stale:!1})}});r.setQuery(o,function(e){e.subscriptions.add(m)})})},e.prototype.getQuery=function(e){return this.queries.get(e)||{listeners:new Set,invalidated:!1,document:null,newData:null,lastRequestId:1,observableQuery:null,subscriptions:new Set}},e.prototype.setQuery=function(e,t){var n=this.getQuery(e),r=Object(qh.a)({},n,t(n));this.queries.set(e,r)},e.prototype.invalidate=function(e,t){void 0===t&&(t=!0),e&&this.setQuery(e,function(){return{invalidated:t}})},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return Object(qh.a)({},t,{clientAwareness:this.clientAwareness})},e.prototype.checkInFlight=function(e){var t=this.queryStore.get(e);return t&&t.networkStatus!==xy.ready&&t.networkStatus!==xy.error},e.prototype.startPollingQuery=function(e,t,n){var r=this,i=e.pollInterval;if(Object(We.b)(i,16),!this.ssrMode){var o=this.pollingInfoByQueryId.get(t);o||this.pollingInfoByQueryId.set(t,o={}),o.interval=i,o.options=Object(qh.a)({},e,{fetchPolicy:"network-only"});var a=function(){var e=r.pollingInfoByQueryId.get(t);e&&(r.checkInFlight(t)?s():r.fetchQuery(t,e.options,Dy.poll).then(s,s))},s=function(){var e=r.pollingInfoByQueryId.get(t);e&&(clearTimeout(e.timeout),e.timeout=setTimeout(a,e.interval))};n&&this.addQueryListener(t,n),s()}return t},e.prototype.stopPollingQuery=function(e){this.pollingInfoByQueryId.delete(e)},e}(),qy=function(){function e(e){this.cache=e}return e.prototype.getCache=function(){return this.cache},e.prototype.markQueryResult=function(e,t,n,r,i){void 0===i&&(i=!1);var o=!Object(uy.k)(e);i&&Object(uy.k)(e)&&e.data&&(o=!0),!r&&o&&this.cache.write({result:e.data,dataId:"ROOT_QUERY",query:t,variables:n})},e.prototype.markSubscriptionResult=function(e,t,n){Object(uy.k)(e)||this.cache.write({result:e.data,dataId:"ROOT_SUBSCRIPTION",query:t,variables:n})},e.prototype.markMutationInit=function(e){var t,n=this;e.optimisticResponse&&(t="function"==typeof e.optimisticResponse?e.optimisticResponse(e.variables):e.optimisticResponse,this.cache.recordOptimisticTransaction(function(r){var i=n.cache;n.cache=r;try{n.markMutationResult({mutationId:e.mutationId,result:{data:t},document:e.document,variables:e.variables,updateQueries:e.updateQueries,update:e.update})}finally{n.cache=i}},e.mutationId))},e.prototype.markMutationResult=function(e){var t=this;if(!Object(uy.k)(e.result)){var n=[{result:e.result.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}],r=e.updateQueries;r&&Object.keys(r).forEach(function(i){var o=r[i],a=o.query,s=o.updater,u=t.cache.diff({query:a.document,variables:a.variables,returnPartialData:!0,optimistic:!1}),c=u.result;if(u.complete){var l=Object(uy.v)(function(){return s(c,{mutationResult:e.result,queryName:Object(uy.j)(a.document)||void 0,queryVariables:a.variables})});l&&n.push({result:l,dataId:"ROOT_QUERY",query:a.document,variables:a.variables})}}),this.cache.performTransaction(function(t){n.forEach(function(e){return t.write(e)});var r=e.update;r&&Object(uy.v)(function(){return r(t,e.result)})})}},e.prototype.markMutationComplete=function(e){var t=e.mutationId;e.optimisticResponse&&this.cache.removeOptimistic(t)},e.prototype.markUpdateQueryResult=function(e,t,n){this.cache.write({result:n,dataId:"ROOT_QUERY",variables:t,query:e})},e.prototype.reset=function(){return this.cache.reset()},e}(),Yy="2.6.3",Gy=function(){function e(e){var t=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var n=e.cache,r=e.ssrMode,i=void 0!==r&&r,o=e.ssrForceFetchDelay,a=void 0===o?0:o,s=e.connectToDevTools,u=e.queryDeduplication,c=void 0===u||u,l=e.defaultOptions,d=e.assumeImmutableResults,h=void 0!==d&&d,p=e.resolvers,f=e.typeDefs,g=e.fragmentMatcher,m=e.name,y=e.version,v=e.link;if(!v&&p&&(v=Iy.empty()),!v||!n)throw new We.a(1);this.link=v,this.cache=n,this.store=new qy(n),this.disableNetworkFetches=i||a>0,this.queryDeduplication=c,this.defaultOptions=l||{},this.typeDefs=f,a&&setTimeout(function(){return t.disableNetworkFetches=!1},a),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this);void 0!==s&&(s&&"undefined"!=typeof window)&&(window.__APOLLO_CLIENT__=this),this.version=Yy,this.localState=new Uy({cache:n,client:this,resolvers:p,fragmentMatcher:g}),this.queryManager=new Vy({link:this.link,store:this.store,queryDeduplication:c,ssrMode:i,clientAwareness:{name:m,version:y},localState:this.localState,assumeImmutableResults:h,onBroadcast:function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.queryStore.getStore(),mutations:t.queryManager.mutationStore.getStore()},dataWithOptimisticResults:t.cache.extract(!0)})}})}return e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=Object(qh.a)({},this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=Object(qh.a)({},e,{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=Object(qh.a)({},this.defaultOptions.query,e)),Object(We.b)("cache-and-network"!==e.fetchPolicy,2),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=Object(qh.a)({},e,{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=Object(qh.a)({},this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return this.queryManager.broadcastQueries(),t},e.prototype.writeData=function(e){var t=this.cache.writeData(e);return this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return My(this.link,e)},e.prototype.initQueryManager=function(){return this.queryManager},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore()}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(e){return e()}))}).then(function(){return e.reFetchObservableQueries()})},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore()}).then(function(){return Promise.all(e.clearStoreCallbacks.map(function(e){return e()}))})},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e}(),Zy=n(47);function Qy(e){return{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GeneratedClientQuery"},selectionSet:Ky(e)}]}}function Ky(e){if("number"==typeof e||"boolean"==typeof e||"string"==typeof e||null==e)return null;if(Array.isArray(e))return Ky(e[0]);var t=[];return Object.keys(e).forEach(function(n){var r={kind:"Field",name:{kind:"Name",value:n},selectionSet:Ky(e[n])||void 0};t.push(r)}),{kind:"SelectionSet",selections:t}}var Jy,Xy={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:null,variableDefinitions:null,directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"__typename"},arguments:[],directives:[],selectionSet:null}]}}]},$y=function(){function e(){}return e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.read({query:e.query,variables:e.variables,optimistic:t})},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.read({query:Object(Zy.i)(e.fragment,e.fragmentName),variables:e.variables,rootId:e.id,optimistic:t})},e.prototype.writeQuery=function(e){this.write({dataId:"ROOT_QUERY",result:e.data,query:e.query,variables:e.variables})},e.prototype.writeFragment=function(e){this.write({dataId:e.id,result:e.data,variables:e.variables,query:Object(Zy.i)(e.fragment,e.fragmentName)})},e.prototype.writeData=function(e){var t,n,r=e.id,i=e.data;if(void 0!==r){var o=null;try{o=this.read({rootId:r,optimistic:!1,query:Xy})}catch(e){}var a=o&&o.__typename||"__ClientData",s=Object.assign({__typename:a},i);this.writeFragment({id:r,fragment:(t=s,n=a,{kind:"Document",definitions:[{kind:"FragmentDefinition",typeCondition:{kind:"NamedType",name:{kind:"Name",value:n||"__FakeType"}},name:{kind:"Name",value:"GeneratedClientQuery"},selectionSet:Ky(t)}]}),data:s})}else this.writeQuery({query:Qy(i),data:i})},e}();Jy||(Jy={});var ev=null,tv={},nv=1,rv=Array,iv=rv["@wry/context:Slot"]||function(){var e=function(){function e(){this.id=["slot",nv++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return e.prototype.hasValue=function(){for(var e=ev;e;e=e.parent)if(this.id in e.slots){var t=e.slots[this.id];if(t===tv)break;return e!==ev&&(ev.slots[this.id]=t),!0}return ev&&(ev.slots[this.id]=tv),!1},e.prototype.getValue=function(){if(this.hasValue())return ev.slots[this.id]},e.prototype.withValue=function(e,t,n,r){var i,o=((i={__proto__:null})[this.id]=e,i),a=ev;ev={parent:a,slots:o};try{return t.apply(r,n)}finally{ev=a}},e.bind=function(e){var t=ev;return function(){var n=ev;try{return ev=t,e.apply(this,arguments)}finally{ev=n}}},e.noContext=function(e,t,n){if(!ev)return e.apply(n,t);var r=ev;try{return ev=null,e.apply(n,t)}finally{ev=r}},e}();try{Object.defineProperty(rv,"@wry/context:Slot",{value:rv["@wry/context:Slot"]=e,enumerable:!1,writable:!1,configurable:!1})}finally{return e}}();iv.bind,iv.noContext;function ov(){}var av=function(){function e(e,t){void 0===e&&(e=1/0),void 0===t&&(t=ov),this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}return e.prototype.has=function(e){return this.map.has(e)},e.prototype.get=function(e){var t=this.getEntry(e);return t&&t.value},e.prototype.getEntry=function(e){var t=this.map.get(e);if(t&&t!==this.newest){var n=t.older,r=t.newer;r&&(r.older=n),n&&(n.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t},e.prototype.set=function(e,t){var n=this.getEntry(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(e,n),n.value)},e.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},e.prototype.delete=function(e){var t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)},e}(),sv=new iv,uv=Object.create(null),cv=[],lv=[],dv=100;function hv(e,t){if(!e)throw new Error(t||"assertion failure")}var pv=function(){function e(t,n){this.fn=t,this.args=n,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=uv,++e.count}return e.prototype.recompute=function(){if(function(e){var t=sv.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,uv),gv(e)?vv(t,e):bv(t,e),t}(this)||!wv(this))return function e(t){if(t.dirty)return fv(t);if(gv(t)&&(t.dirtyChildren.forEach(function(n){hv(t.childValues.has(n));try{e(n)}catch(e){t.setDirty()}}),t.dirty))return fv(t);hv(t.value!==uv);return t.value}(this)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value=uv,mv(this),Iv(this))},e.prototype.dispose=function(){var e=this;Sv(this).forEach(wv),Iv(this),this.parents.forEach(function(t){t.setDirty(),Cv(t,e)})},e.count=0,e}();function fv(e){hv(!e.recomputing,"already recomputing"),e.recomputing=!0;var t=Sv(e),n=!0;try{sv.withValue(e,function(){e.value=e.fn.apply(null,e.args)}),n=!1}finally{e.recomputing=!1,n||!function(e){if("function"==typeof e.subscribe)try{Iv(e),e.unsubscribe=e.subscribe.apply(null,e.args)}catch(t){return e.setDirty(),!1}return!0}(e)?e.setDirty():function(e){if(e.dirty=!1,gv(e))return;yv(e)}(e)}return t.forEach(wv),e.value}function gv(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function mv(e){e.parents.forEach(function(t){return vv(t,e)})}function yv(e){e.parents.forEach(function(t){return bv(t,e)})}function vv(e,t){if(hv(e.childValues.has(t)),hv(gv(t)),e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=lv.pop()||new Set;e.dirtyChildren.add(t),mv(e)}function bv(e,t){hv(e.childValues.has(t)),hv(!gv(t));var n=e.childValues.get(t);n===uv?e.childValues.set(t,t.value):n!==t.value&&e.setDirty(),_v(e,t),gv(e)||yv(e)}function _v(e,t){var n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(lv.length0&&(t=[],e.childValues.forEach(function(n,r){Cv(e,r),t.push(r)})),hv(null===e.dirtyChildren),t}function Cv(e,t){t.parents.delete(e),e.childValues.delete(t),_v(e,t)}function Iv(e){var t=e.unsubscribe;"function"==typeof t&&(e.unsubscribe=void 0,t())}var Mv=function(){function e(e){this.weakness=e}return e.prototype.lookup=function(){for(var e=[],t=0;t-1)},e.prototype.parseIntrospectionResult=function(e){var t={};return e.__schema.types.forEach(function(e){"UNION"!==e.kind&&"INTERFACE"!==e.kind||(t[e.name]=e.possibleTypes.map(function(e){return e.name}))}),t},e}(),Fv=Object.prototype.hasOwnProperty,Bv=function(){function e(e){var t=this;void 0===e&&(e=Object.create(null)),this.data=e,this.depend=Ev(function(e){return t.data[e]},{disposable:!0,makeCacheKey:function(e){return e}})}return e.prototype.toObject=function(){return this.data},e.prototype.get=function(e){return this.depend(e),this.data[e]},e.prototype.set=function(e,t){t!==this.data[e]&&(this.data[e]=t,this.depend.dirty(e))},e.prototype.delete=function(e){Fv.call(this.data,e)&&(delete this.data[e],this.depend.dirty(e))},e.prototype.clear=function(){this.replace(null)},e.prototype.replace=function(e){var t=this;e?(Object.keys(e).forEach(function(n){t.set(n,e[n])}),Object.keys(this.data).forEach(function(n){Fv.call(e,n)||t.delete(n)})):Object.keys(this.data).forEach(function(e){t.delete(e)})},e}();function Uv(e){return new Bv(e)}var Wv=function(){function e(e){var t=this,n=void 0===e?{}:e,r=n.cacheKeyRoot,i=void 0===r?new Mv(Zy.d):r,o=n.freezeResults,a=void 0!==o&&o,s=this.executeStoreQuery,u=this.executeSelectionSet,c=this.executeSubSelectedArray;this.freezeResults=a,this.executeStoreQuery=Ev(function(e){return s.call(t,e)},{makeCacheKey:function(e){var t=e.query,n=e.rootValue,r=e.contextValue,o=e.variableValues,a=e.fragmentMatcher;if(r.store instanceof Bv)return i.lookup(r.store,t,a,JSON.stringify(o),n.id)}}),this.executeSelectionSet=Ev(function(e){return u.call(t,e)},{makeCacheKey:function(e){var t=e.selectionSet,n=e.rootValue,r=e.execContext;if(r.contextValue.store instanceof Bv)return i.lookup(r.contextValue.store,t,r.fragmentMatcher,JSON.stringify(r.variableValues),n.id)}}),this.executeSubSelectedArray=Ev(function(e){return c.call(t,e)},{makeCacheKey:function(e){var t=e.field,n=e.array,r=e.execContext;if(r.contextValue.store instanceof Bv)return i.lookup(r.contextValue.store,t,n,JSON.stringify(r.variableValues))}})}return e.prototype.readQueryFromStore=function(e){return this.diffQueryAgainstStore(Object(qh.a)({},e,{returnPartialData:!1})).result},e.prototype.diffQueryAgainstStore=function(e){var t=e.store,n=e.query,r=e.variables,i=e.previousResult,o=e.returnPartialData,a=void 0===o||o,s=e.rootId,u=void 0===s?"ROOT_QUERY":s,c=e.fragmentMatcherFunction,l=e.config,d=Object(Zy.l)(n);r=Object(Zy.c)({},Object(Zy.f)(d),r);var h={store:t,dataIdFromObject:l&&l.dataIdFromObject||null,cacheRedirects:l&&l.cacheRedirects||{}},p=this.executeStoreQuery({query:n,rootValue:{type:"id",id:u,generated:!0,typename:"Query"},contextValue:h,variableValues:r,fragmentMatcher:c}),f=p.missing&&p.missing.length>0;return f&&!a&&p.missing.forEach(function(e){if(!e.tolerable)throw new We.a(2)}),i&&Object(cy.a)(i,p.result)&&(p.result=i),{result:p.result,complete:!f}},e.prototype.executeStoreQuery=function(e){var t=e.query,n=e.rootValue,r=e.contextValue,i=e.variableValues,o=e.fragmentMatcher,a=void 0===o?Vv:o,s=Object(Zy.j)(t),u=Object(Zy.h)(t),c={query:t,fragmentMap:Object(Zy.e)(u),contextValue:r,variableValues:i,fragmentMatcher:a};return this.executeSelectionSet({selectionSet:s.selectionSet,rootValue:n,execContext:c})},e.prototype.executeSelectionSet=function(e){var t=this,n=e.selectionSet,r=e.rootValue,i=e.execContext,o=i.fragmentMap,a=i.contextValue,s=i.variableValues,u={result:null},c=[],l=a.store.get(r.id),d=l&&l.__typename||"ROOT_QUERY"===r.id&&"Query"||void 0;function h(e){var t;return e.missing&&(u.missing=u.missing||[],(t=u.missing).push.apply(t,e.missing)),e.result}return n.selections.forEach(function(e){var n;if(Object(Zy.w)(e,s))if(Object(Zy.n)(e)){var u=h(t.executeField(l,d,e,i));void 0!==u&&c.push(((n={})[Object(Zy.v)(e)]=u,n))}else{var p=void 0;if(Object(Zy.p)(e))p=e;else if(!(p=o[e.name.value]))throw new We.a(3);var f=p.typeCondition.name.value,g=i.fragmentMatcher(r,f,a);if(g){var m=t.executeSelectionSet({selectionSet:p.selectionSet,rootValue:r,execContext:i});"heuristic"===g&&m.missing&&(m=Object(qh.a)({},m,{missing:m.missing.map(function(e){return Object(qh.a)({},e,{tolerable:!0})})})),c.push(h(m))}}}),u.result=Object(Zy.u)(c),this.freezeResults,u},e.prototype.executeField=function(e,t,n,r){var i=r.variableValues,o=r.contextValue,a=function(e,t,n,r,i,o){o.resultKey;var a=o.directives,s=n;(r||a)&&(s=Object(Zy.m)(s,r,a));var u=void 0;if(e&&void 0===(u=e[s])&&i.cacheRedirects&&"string"==typeof t){var c=i.cacheRedirects[t];if(c){var l=c[n];l&&(u=l(e,r,{getCacheKey:function(e){return Object(Zy.y)({id:i.dataIdFromObject(e),typename:e.__typename})}}))}}if(void 0===u)return{result:u,missing:[{object:e,fieldName:s,tolerable:!1}]};Object(Zy.q)(u)&&(u=u.json);return{result:u}}(e,t,n.name.value,Object(Zy.b)(n,i),o,{resultKey:Object(Zy.v)(n),directives:Object(Zy.g)(n,i)});return Array.isArray(a.result)?this.combineExecResults(a,this.executeSubSelectedArray({field:n,array:a.result,execContext:r})):n.selectionSet?null==a.result?a:this.combineExecResults(a,this.executeSelectionSet({selectionSet:n.selectionSet,rootValue:a.result,execContext:r})):(Hv(n,a.result),this.freezeResults,a)},e.prototype.combineExecResults=function(){for(var e=[],t=0;t=0)return!0;n[e].push(t)}else n[e]=[t];return!1}var Kv={fragmentMatcher:new Rv,dataIdFromObject:function(e){if(e.__typename){if(void 0!==e.id)return e.__typename+":"+e.id;if(void 0!==e._id)return e.__typename+":"+e._id}return null},addTypename:!0,resultCaching:!0,freezeResults:!1};var Jv=Object.prototype.hasOwnProperty,Xv=function(e){function t(t,n,r){var i=e.call(this,Object.create(null))||this;return i.optimisticId=t,i.parent=n,i.transaction=r,i}return Object(qh.c)(t,e),t.prototype.toObject=function(){return Object(qh.a)({},this.parent.toObject(),this.data)},t.prototype.get=function(e){return Jv.call(this.data,e)?this.data[e]:this.parent.get(e)},t}(qv),$v=function(e){function t(t){void 0===t&&(t={});var n=e.call(this)||this;n.watches=new Set,n.typenameDocumentCache=new Map,n.cacheKeyRoot=new Mv(Zy.d),n.silenceBroadcast=!1,n.config=Object(qh.a)({},Kv,t),n.config.customResolvers&&(n.config.cacheRedirects=n.config.customResolvers),n.config.cacheResolvers&&(n.config.cacheRedirects=n.config.cacheResolvers),n.addTypename=n.config.addTypename,n.data=n.config.resultCaching?new Bv:new qv,n.optimisticData=n.data,n.storeWriter=new Gv,n.storeReader=new Wv({cacheKeyRoot:n.cacheKeyRoot,freezeResults:t.freezeResults});var r=n,i=r.maybeBroadcastWatch;return n.maybeBroadcastWatch=Ev(function(e){return i.call(n,e)},{makeCacheKey:function(e){if(!e.optimistic&&!e.previousResult)return r.data instanceof Bv?r.cacheKeyRoot.lookup(e.query,JSON.stringify(e.variables)):void 0}}),n}return Object(qh.c)(t,e),t.prototype.restore=function(e){return e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).toObject()},t.prototype.read=function(e){return"string"==typeof e.rootId&&void 0===this.data.get(e.rootId)?null:this.storeReader.readQueryFromStore({store:e.optimistic?this.optimisticData:this.data,query:this.transformDocument(e.query),variables:e.variables,rootId:e.rootId,fragmentMatcherFunction:this.config.fragmentMatcher.match,previousResult:e.previousResult,config:this.config})},t.prototype.write=function(e){this.storeWriter.writeResultToStore({dataId:e.dataId,result:e.result,variables:e.variables,document:this.transformDocument(e.query),store:this.data,dataIdFromObject:this.config.dataIdFromObject,fragmentMatcherFunction:this.config.fragmentMatcher.match}),this.broadcastWatches()},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore({store:e.optimistic?this.optimisticData:this.data,query:this.transformDocument(e.query),variables:e.variables,returnPartialData:e.returnPartialData,previousResult:e.previousResult,fragmentMatcherFunction:this.config.fragmentMatcher.match,config:this.config})},t.prototype.watch=function(e){var t=this;return this.watches.add(e),function(){t.watches.delete(e)}},t.prototype.evict=function(e){throw new We.a(1)},t.prototype.reset=function(){return this.data.clear(),this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){for(var t=[],n=0,r=this.optimisticData;r instanceof Xv;)r.optimisticId===e?++n:t.push(r),r=r.parent;if(n>0){for(this.optimisticData=r;t.length>0;){var i=t.pop();this.performTransaction(i.transaction,i.optimisticId)}this.broadcastWatches()}},t.prototype.performTransaction=function(e,t){var n=this.data,r=this.silenceBroadcast;this.silenceBroadcast=!0,"string"==typeof t&&(this.data=this.optimisticData=new Xv(t,this.optimisticData,e));try{e(this)}finally{this.silenceBroadcast=r,this.data=n}this.broadcastWatches()},t.prototype.recordOptimisticTransaction=function(e,t){return this.performTransaction(e,t)},t.prototype.transformDocument=function(e){if(this.addTypename){var t=this.typenameDocumentCache.get(e);return t||(t=Object(Zy.a)(e),this.typenameDocumentCache.set(e,t),this.typenameDocumentCache.set(t,t)),t}return e},t.prototype.broadcastWatches=function(){var e=this;this.silenceBroadcast||this.watches.forEach(function(t){return e.maybeBroadcastWatch(t)})},t.prototype.maybeBroadcastWatch=function(e){e.callback(this.diff({query:e.query,variables:e.variables,previousResult:e.previousResult&&e.previousResult(),optimistic:e.optimistic}))},t}($y),eb=dy.a,tb=n(274);!function(e){function t(t,n){var r=e.call(this,t)||this;return r.link=n,r}Object(qh.c)(t,e)}(Error);function nb(e){return e.request.length<=1}function rb(e){return new eb(function(t){t.error(e)})}function ib(e,t){var n=Object(qh.a)({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){n="function"==typeof e?Object(qh.a)({},n,e(n)):Object(qh.a)({},n,e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return Object(qh.a)({},n)}}),Object.defineProperty(t,"toKey",{enumerable:!1,value:function(){return function(e){var t=e.query,n=e.variables,r=e.operationName;return JSON.stringify([r,t,n])}(t)}}),t}function ob(e,t){return t?t(e):eb.of()}function ab(e){return"function"==typeof e?new lb(e):e}function sb(){return new lb(function(){return eb.of()})}function ub(e){return 0===e.length?sb():e.map(ab).reduce(function(e,t){return e.concat(t)})}function cb(e,t,n){var r=ab(t),i=ab(n||new lb(ob));return nb(r)&&nb(i)?new lb(function(t){return e(t)?r.request(t)||eb.of():i.request(t)||eb.of()}):new lb(function(t,n){return e(t)?r.request(t,n)||eb.of():i.request(t,n)||eb.of()})}var lb=function(){function e(e){e&&(this.request=e)}return e.prototype.split=function(t,n,r){return this.concat(cb(t,n,r||new e(ob)))},e.prototype.concat=function(e){return function(e,t){var n=ab(e);if(nb(n))return n;var r=ab(t);return nb(r)?new lb(function(e){return n.request(e,function(e){return r.request(e)||eb.of()})||eb.of()}):new lb(function(e,t){return n.request(e,function(e){return r.request(e,t)||eb.of()})||eb.of()})}(this,e)},e.prototype.request=function(e,t){throw new We.a(1)},e.empty=sb,e.from=ub,e.split=cb,e.execute=db,e}();function db(e,t){return e.request(ib(t.context,function(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName="string"!=typeof t.query?Object(tb.a)(t.query):""),t}(function(e){for(var t=["query","operationName","variables","extensions","context"],n=0,r=Object.keys(e);n=300&&pb(e,t,"Response not successful: Received status code "+e.status),Array.isArray(t)||t.hasOwnProperty("data")||t.hasOwnProperty("errors")||pb(e,t,"Server response was missing for query '"+(Array.isArray(i)?i.map(function(e){return e.operationName}):i.operationName)+"'."),t})})).then(function(e){return n.next(e),n.complete(),e}).catch(function(e){"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&n.next(e.result),n.error(e))}),function(){d&&d.abort()}})})};var mb=function(e){function t(t){return e.call(this,gb(t).request)||this}return Object(qh.c)(t,e),t}(lb),yb=dy.a,vb=n(273);!function(e){function t(t,n){var r=e.call(this,t)||this;return r.link=n,r}Object(qh.c)(t,e)}(Error);function bb(e){return e.request.length<=1}function _b(e,t){var n=Object(qh.a)({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){n="function"==typeof e?Object(qh.a)({},n,e(n)):Object(qh.a)({},n,e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return Object(qh.a)({},n)}}),Object.defineProperty(t,"toKey",{enumerable:!1,value:function(){return function(e){var t=e.query,n=e.variables,r=e.operationName;return JSON.stringify([r,t,n])}(t)}}),t}function wb(e,t){return t?t(e):yb.of()}function Sb(e){return"function"==typeof e?new xb(e):e}function Cb(){return new xb(function(){return yb.of()})}function Ib(e){return 0===e.length?Cb():e.map(Sb).reduce(function(e,t){return e.concat(t)})}function Mb(e,t,n){var r=Sb(t),i=Sb(n||new xb(wb));return bb(r)&&bb(i)?new xb(function(t){return e(t)?r.request(t)||yb.of():i.request(t)||yb.of()}):new xb(function(t,n){return e(t)?r.request(t,n)||yb.of():i.request(t,n)||yb.of()})}var xb=function(){function e(e){e&&(this.request=e)}return e.prototype.split=function(t,n,r){return this.concat(Mb(t,n,r||new e(wb)))},e.prototype.concat=function(e){return function(e,t){var n=Sb(e);if(bb(n))return n;var r=Sb(t);return bb(r)?new xb(function(e){return n.request(e,function(e){return r.request(e)||yb.of()})||yb.of()}):new xb(function(e,t){return n.request(e,function(e){return r.request(e,t)||yb.of()})||yb.of()})}(this,e)},e.prototype.request=function(e,t){throw new We.a(1)},e.empty=Cb,e.from=Ib,e.split=Mb,e.execute=Nb,e}();function Nb(e,t){return e.request(_b(t.context,function(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName="string"!=typeof t.query?Object(vb.a)(t.query):""),t}(function(e){for(var t=["query","operationName","variables","extensions","context"],n=0,r=Object.keys(e);n1?r.next(Array.prototype.slice.call(arguments)):r.next(e)},r,n)})}var qb=["Backspace","Tab","Shift","Control","Alt","Meta","ArrowLeft","ArrowRight","ArrowDown","ArrowUp"],Yb=[">","Enter"," "];function Gb(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n mutation registerEvent($type: String!, $data: String!){\n addEvent(event: {type: $type, data: $data}) {\n created_at\n }\n }\n"]);return Gb=function(){return e},e}var Zb=oy()(Gb()),Qb=function(e){var t=e.children;return a.a.createElement("div",{className:Hr(Kb.wrapper),"data-testid":"error-wrapper"},t)};Qb.propTypes={children:m.a.node.isRequired};var Kb=Wr.create({wrapper:{padding:"0 0 .5em 0"}}),Jb=Qb;function Xb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $b=function(e){var t=e.children;return a.a.createElement("div",{className:Hr(e_.wrapper)},t)};$b.propTypes={children:m.a.oneOfType([m.a.arrayOf(m.a.node),m.a.node]).isRequired};var e_=Wr.create({wrapper:function(e){for(var t=1;t-1};var dw=function(e,t){var n=this.__data__,r=aw(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function hw(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=LS},kS={};kS["[object Float32Array]"]=kS["[object Float64Array]"]=kS["[object Int8Array]"]=kS["[object Int16Array]"]=kS["[object Int32Array]"]=kS["[object Uint8Array]"]=kS["[object Uint8ClampedArray]"]=kS["[object Uint16Array]"]=kS["[object Uint32Array]"]=!0,kS["[object Arguments]"]=kS["[object Array]"]=kS["[object ArrayBuffer]"]=kS["[object Boolean]"]=kS["[object DataView]"]=kS["[object Date]"]=kS["[object Error]"]=kS["[object Function]"]=kS["[object Map]"]=kS["[object Number]"]=kS["[object Object]"]=kS["[object RegExp]"]=kS["[object Set]"]=kS["[object String]"]=kS["[object WeakMap]"]=!1;var DS=function(e){return K_(e)&&TS(e.length)&&!!kS[G_(e)]};var OS=function(e){return function(t){return e(t)}},AS=n(163),jS=AS.a&&AS.a.isTypedArray,PS=jS?OS(jS):DS,RS=Object.prototype.hasOwnProperty;var zS=function(e,t){var n=IS(e),r=!n&&CS(e),i=!n&&!r&&Object(MS.a)(e),o=!n&&!r&&!i&&PS(e),a=n||r||i||o,s=a?yS(e.length,String):[],u=s.length;for(var c in e)!t&&!RS.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||ES(c,u))||s.push(c);return s},FS=Object.prototype;var BS=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||FS)},US=Z_(Object.keys,Object),WS=Object.prototype.hasOwnProperty;var HS=function(e){if(!BS(e))return US(e);var t=[];for(var n in Object(e))WS.call(e,n)&&"constructor"!=n&&t.push(n);return t};var VS=function(e){return null!=e&&TS(e.length)&&!Iw(e)};var qS=function(e){return VS(e)?zS(e):HS(e)};var YS=function(e,t){return e&&mS(t,qS(t),e)};var GS=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},ZS=Object.prototype.hasOwnProperty;var QS=function(e){if(!vw(e))return GS(e);var t=BS(e),n=[];for(var r in e)("constructor"!=r||!t&&ZS.call(e,r))&&n.push(r);return n};var KS=function(e){return VS(e)?zS(e,!0):QS(e)};var JS=function(e,t){return e&&mS(t,KS(t),e)},XS=n(710);var $S=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n=0||(i[n]=e[n]);return i}function JI(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var XI=function(e){return Array.isArray(e)&&0===e.length},$I=function(e){return"function"==typeof e},eM=function(e){return null!==e&&"object"==typeof e},tM=function(e){return String(Math.floor(Number(e)))===e},nM=function(e){return"[object String]"===Object.prototype.toString.call(e)},rM=function(e){return 0===o.Children.count(e)},iM=function(e){return eM(e)&&$I(e.then)};function oM(e,t,n,r){void 0===r&&(r=0);for(var i=FI(t);e&&r=0?[]:{}}}return(0===o?e:i)[a[o]]===n?e:(void 0===n||XI(n)?delete i[a[o]]:i[a[o]]=n,(0===o&&void 0===n||XI(n))&&delete r[a[o]],r)}function sM(e,t,n,r){void 0===n&&(n=new WeakMap),void 0===r&&(r={});for(var i=0,o=Object.keys(e);i=n.length)break;o=n[i++]}else{if((i=n.next()).done)break;o=i.value}var a=o;oM(t,a.path)||(t=aM(t,a.path,a.message))}}return t}(n)):t(n)})})},[p.validationSchema]),M=Object(o.useCallback)(function(e,t){return new Promise(function(n){return n(b.current[e].validate(t))})},[]),x=Object(o.useCallback)(function(e){var t=Object.keys(b.current).filter(function(e){return $I(b.current[e].validate)}),n=t.length>0?t.map(function(t){return M(t,oM(e,t))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(n).then(function(e){return e.reduce(function(e,n,r){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===n?e:(n&&(e=aM(e,t[r],n)),e)},{})})},[M]),N=Object(o.useCallback)(function(e){return Promise.all([x(e),p.validationSchema?I(e):{},p.validate?C(e):{}]).then(function(e){var t=e[0],n=e[1],r=e[2];return A_.all([t,n,r],{arrayMerge:yM})})},[p.validate,p.validationSchema,x,C,I]),E=bM(function(e){return void 0===e&&(e=w.values),Object(WI.unstable_runWithPriority)(WI.LowPriority,function(){return N(e).then(function(e){return v.current&&S({type:"SET_ERRORS",payload:e}),e}).catch(function(e){0})})}),L=bM(function(e){return void 0===e&&(e=w.values),S({type:"SET_ISVALIDATING",payload:!0}),N(e).then(function(e){return v.current&&(S({type:"SET_ISVALIDATING",payload:!1}),E_()(w.errors,e)||S({type:"SET_ERRORS",payload:e})),e})});Object(o.useEffect)(function(){s&&!0===v.current&&E(p.initialValues)},[p.initialValues,s,E]);var T=Object(o.useCallback)(function(e){var t=e&&e.values?e.values:f.current,n=e&&e.errors?e.errors:g.current?g.current:p.initialErrors||{},r=e&&e.touched?e.touched:m.current?m.current:p.initialTouched||{},i=e&&e.status?e.status:y.current?y.current:p.initialStatus;f.current=t,g.current=n,m.current=r,y.current=i,S({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:n,touched:r,status:i,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"==typeof e.submitCount?e.submitCount:0}})},[p.initialErrors,p.initialStatus,p.initialTouched]);Object(o.useEffect)(function(){l&&!0===v.current&&!E_()(f.current,p.initialValues)&&(f.current=p.initialValues,T())},[l,p.initialValues,T]),Object(o.useEffect)(function(){l&&!0===v.current&&!E_()(g.current,p.initialErrors)&&(g.current=p.initialErrors||pM,S({type:"SET_ERRORS",payload:p.initialErrors||pM}))},[l,p.initialErrors]),Object(o.useEffect)(function(){l&&!0===v.current&&!E_()(m.current,p.initialTouched)&&(m.current=p.initialTouched||fM,S({type:"SET_TOUCHED",payload:p.initialTouched||fM}))},[l,p.initialTouched]),Object(o.useEffect)(function(){l&&!0===v.current&&!E_()(y.current,p.initialStatus)&&(y.current=p.initialStatus,S({type:"SET_STATUS",payload:p.initialStatus}))},[l,p.initialStatus,p.initialTouched]);var k=bM(function(e){if($I(b.current[e].validate)){var t=oM(w.values,e),n=b.current[e].validate(t);return iM(n)?(S({type:"SET_ISVALIDATING",payload:!0}),n.then(function(e){return e}).then(function(t){S({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),S({type:"SET_ISVALIDATING",payload:!1})})):(S({type:"SET_FIELD_ERROR",payload:{field:e,value:n}}),Promise.resolve(n))}return Promise.resolve()}),D=Object(o.useCallback)(function(e,t){var n=t.validate;b.current[e]={validate:n}},[]),O=Object(o.useCallback)(function(e){delete b.current[e]},[]),A=bM(function(e,t){return S({type:"SET_TOUCHED",payload:e}),(void 0===t?i:t)?E(w.values):Promise.resolve()}),j=Object(o.useCallback)(function(e){S({type:"SET_ERRORS",payload:e})},[]),P=bM(function(e,t){return S({type:"SET_VALUES",payload:e}),(void 0===t?n:t)?E(e):Promise.resolve()}),R=Object(o.useCallback)(function(e,t){S({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})},[]),z=bM(function(e,t,r){return S({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),(void 0===r?n:r)?E(aM(w.values,e,t)):Promise.resolve()}),F=Object(o.useCallback)(function(e,t){var n,r=t,i=e;if(!nM(e)){e.persist&&e.persist();var o=e.target?e.target:e.currentTarget,a=o.type,s=o.name,u=o.id,c=o.value,l=o.checked,d=(o.outerHTML,o.options),h=o.multiple;r=t||(s||u),i=/number|range/.test(a)?(n=parseFloat(c),isNaN(n)?"":n):/checkbox/.test(a)?function(e,t,n){if("true"==n||"false"==n)return!!t;if(t&&n)return Array.isArray(e)?e.concat(n):[n];if(!Array.isArray(e))return!e;var r=e.indexOf(n);if(r<0)return e;return e.slice(0,r).concat(e.slice(r+1))}(oM(w.values,r),l,c):h?function(e){return Array.from(e).filter(function(e){return e.selected}).map(function(e){return e.value})}(d):c}r&&z(r,i)},[z,w.values]),B=Object(o.useCallback)(function(e){if(nM(e))return function(t){return F(t,e)};F(e)},[F]),U=bM(function(e,t,n){return void 0===t&&(t=!0),S({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===n?i:n)?E(w.values):Promise.resolve()}),W=Object(o.useCallback)(function(e,t){e.persist&&e.persist();var n=e.target,r=n.name,i=n.id,o=(n.outerHTML,t||(r||i));U(o,!0)},[U]),H=Object(o.useCallback)(function(e){if(nM(e))return function(t){return W(t,e)};W(e)},[W]),V=Object(o.useCallback)(function(e){$I(e)?S({type:"SET_FORMIK_STATE",payload:e}):S({type:"SET_FORMIK_STATE",payload:function(){return e}})},[]),q=Object(o.useCallback)(function(e){S({type:"SET_STATUS",payload:e})},[]),Y=Object(o.useCallback)(function(e){S({type:"SET_ISSUBMITTING",payload:e})},[]),G={resetForm:T,validateForm:L,validateField:k,setErrors:j,setFieldError:R,setFieldTouched:U,setFieldValue:z,setStatus:q,setSubmitting:Y,setTouched:A,setValues:P,setFormikState:V},Z=bM(function(){return d(w.values,G)}),Q=bM(function(){return S({type:"SUBMIT_ATTEMPT"}),L().then(function(e){var t=e instanceof Error;if(!t&&0===Object.keys(e).length){var n;try{if(void 0===(n=Z()))return}catch(e){throw e}return Promise.resolve(n).then(function(){v.current&&S({type:"SUBMIT_SUCCESS"})}).catch(function(e){if(v.current)throw S({type:"SUBMIT_FAILURE"}),e})}if(v.current&&(S({type:"SUBMIT_FAILURE"}),t))throw e})}),K=bM(function(e){e&&e.preventDefault&&$I(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&$I(e.stopPropagation)&&e.stopPropagation(),Q().catch(function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)})}),J=bM(function(e){if(e&&e.preventDefault&&$I(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&$I(e.stopPropagation)&&e.stopPropagation(),p.onReset){var t=p.onReset(w.values,G);iM(t)?t.then(T):T()}else T()}),X=Object(o.useCallback)(function(e){return{value:oM(w.values,e),error:oM(w.errors,e),touched:!!oM(w.touched,e),initialValue:oM(f.current,e),initialTouched:!!oM(m.current,e),initialError:oM(g.current,e)}},[w.errors,w.touched,w.values]),$=Object(o.useCallback)(function(e){var t=eM(e),n=t?e.name:e,r=oM(w.values,n),i={name:n,value:r,onChange:B,onBlur:H};if(t){var o=e.type,a=e.value,s=e.as,u=e.multiple;"checkbox"===o?void 0===a?i.checked=!!r:(i.checked=!(!Array.isArray(r)||!~r.indexOf(a)),i.value=a):"radio"===o?(i.checked=r===a,i.value=a):"select"===s&&u&&(i.value=i.value||[],i.multiple=!0)}return i},[H,B,w.values]),ee=Object(o.useMemo)(function(){return!E_()(f.current,w.values)},[f.current,w.values]),te=Object(o.useMemo)(function(){return void 0!==u?ee?w.errors&&0===Object.keys(w.errors).length:!1!==u&&$I(u)?u(p):u:w.errors&&0===Object.keys(w.errors).length},[u,ee,w.errors,p]);return ZI({},w,{initialValues:f.current,initialErrors:g.current,initialTouched:m.current,initialStatus:y.current,handleBlur:H,handleChange:B,handleReset:J,handleSubmit:K,resetForm:T,setErrors:j,setFormikState:V,setFieldTouched:U,setFieldValue:z,setFieldError:R,setStatus:q,setSubmitting:Y,setTouched:A,setValues:P,submitForm:Q,validateForm:L,validateField:k,isValid:te,dirty:ee,unregisterField:O,registerField:D,getFieldProps:$,getFieldMeta:X,validateOnBlur:i,validateOnChange:n,validateOnMount:s})}function mM(e){var t=gM(e),n=e.component,r=e.children,i=e.render;return Object(o.useEffect)(function(){0},[]),Object(o.createElement)(cM,{value:t},n?Object(o.createElement)(n,t):i?i(t):r?$I(r)?r(t):rM(r)?null:o.Children.only(r):null)}function yM(e,t,n){var r=e.slice();return t.forEach(function(t,i){if(void 0===r[i]){var o=!1!==n.clone&&n.isMergeableObject(t);r[i]=o?A_(Array.isArray(t)?[]:{},t,n):t}else n.isMergeableObject(t)?r[i]=A_(e[i],t,n):-1===e.indexOf(t)&&r.push(t)}),r}var vM="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?o.useLayoutEffect:o.useEffect;function bM(e){var t=Object(o.useRef)(e);return vM(function(){t.current=e}),Object(o.useCallback)(function(){for(var e=arguments.length,n=new Array(e),r=0;re?t:e},0);return Array.from(ZI({},e,{length:t+1}))}return[]},EM=function(e){function t(t){var n;return(n=e.call(this,t)||this).updateArrayField=function(e,t,r){var i=n.props,o=i.name;(0,i.formik.setFormikState)(function(n){var i="function"==typeof r?r:e,a="function"==typeof t?t:e;return ZI({},n,{values:aM(n.values,o,e(oM(n.values,o))),errors:r?aM(n.errors,o,i(oM(n.errors,o))):n.errors,touched:t?aM(n.touched,o,a(oM(n.touched,o))):n.touched})})},n.push=function(e){return n.updateArrayField(function(t){return[].concat(NM(t),[GI(e)])},!1,!1)},n.handlePush=function(e){return function(){return n.push(e)}},n.swap=function(e,t){return n.updateArrayField(function(n){return IM(n,e,t)},!0,!0)},n.handleSwap=function(e,t){return function(){return n.swap(e,t)}},n.move=function(e,t){return n.updateArrayField(function(n){return CM(n,e,t)},!0,!0)},n.handleMove=function(e,t){return function(){return n.move(e,t)}},n.insert=function(e,t){return n.updateArrayField(function(n){return MM(n,e,t)},function(t){return MM(t,e,null)},function(t){return MM(t,e,null)})},n.handleInsert=function(e,t){return function(){return n.insert(e,t)}},n.replace=function(e,t){return n.updateArrayField(function(n){return xM(n,e,t)},!1,!1)},n.handleReplace=function(e,t){return function(){return n.replace(e,t)}},n.unshift=function(e){var t=-1;return n.updateArrayField(function(n){var r=n?[e].concat(n):[e];return t<0&&(t=r.length),r},function(e){var n=e?[null].concat(e):[null];return t<0&&(t=n.length),n},function(e){var n=e?[null].concat(e):[null];return t<0&&(t=n.length),n}),t},n.handleUnshift=function(e){return function(){return n.unshift(e)}},n.handleRemove=function(e){return function(){return n.remove(e)}},n.handlePop=function(){return function(){return n.pop()}},n.remove=n.remove.bind(JI(n)),n.pop=n.pop.bind(JI(n)),n}QI(t,e);var n=t.prototype;return n.componentDidUpdate=function(e){!E_()(oM(e.formik.values,e.name),oM(this.props.formik.values,this.props.name))&&this.props.formik.validateOnChange&&this.props.formik.validateForm()},n.remove=function(e){var t;return this.updateArrayField(function(n){var r=n?NM(n):[];return t||(t=r[e]),$I(r.splice)&&r.splice(e,1),r},!0,!0),t},n.pop=function(){var e;return this.updateArrayField(function(t){var n=t;return e||(e=n&&n.pop&&n.pop()),n},!0,!0),e},n.render=function(){var e={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},t=this.props,n=t.component,r=t.render,i=t.children,a=t.name,s=t.formik,u=(s.validate,s.validationSchema,ZI({},e,{form:KI(s,["validate","validationSchema"]),name:a}));return n?Object(o.createElement)(n,u):r?r(u):i?"function"==typeof i?i(u):rM(i)?null:o.Children.only(i):null},t}(o.Component);EM.defaultProps={validateOnChange:!0};o.Component,o.Component;var LM={username:"",password:""},TM=n(44),kM=n(77),DM=function(e){var t=e.formatMessage({id:kM.REQUIRED}),n=e.formatMessage({id:kM.INVALID_USERNAME});return TM.object().shape({username:TM.string().email(n).required(t),password:TM.string().required(t)})},OM=function(e){var t=e.intl,n=Object(o.useContext)(Zt);return a.a.createElement(mM,{initialValues:LM,onSubmit:function(e){n.subjects.loginFormSubject.next({type:"formSubmit",payload:e})},validationSchema:DM(t)},a.a.createElement(wM,{"data-testid":"login-form-wrapper"},a.a.createElement("div",null,a.a.createElement(_M,{type:"email",name:"username",iconName:"user",label:t.formatMessage({id:kM.LOGIN}),component:df})),a.a.createElement("div",{className:Hr(AM.fieldWrapper)},a.a.createElement(_M,{type:"password",name:"password",iconName:"key",label:t.formatMessage({id:kM.PASSWORD}),component:df})),a.a.createElement("div",{className:Hr(AM.buttonWrapper)},a.a.createElement(vf,{label:t.formatMessage({id:kM.LOGIN_SUBMIT}),icons:{right:"arrowForward"},isSubmitButton:!0}))))};OM.propTypes={intl:Q.isRequired};var AM=Wr.create({fieldWrapper:{marginTop:16},buttonWrapper:{marginTop:24}}),jM=ce(OM),PM=function(e){var t=e.intl,n=Object(o.useContext)(Zt).subjects.loginFormSubject,r=Em(n);if(!r)return null;var i=t.formatMessage({id:r});return a.a.createElement(Jb,null,a.a.createElement(qp,{text:i}))};PM.propTypes={intl:Q.isRequired};var RM=ce(PM),zM=n(711),FM=function(e){var t=e.intl,n=Object(o.useContext)(Gt),r=t.formatMessage({id:zM.LABEL});return a.a.createElement("div",{className:Hr(BM.wrapper)},a.a.createElement(Rh,{label:r,onClick:function(){n.history.push("/reset-password")}}))};FM.propTypes={intl:Q.isRequired};var BM=Wr.create({wrapper:{width:"100%",marginTop:"1.5em",textAlign:"center"}}),UM=ce(FM);function WM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var HM=function(e){var t=e.show;return a.a.createElement(x_,{in:t,timeout:150},function(e){return a.a.createElement("div",{className:Hr(VM.tab,VM[e])},a.a.createElement("div",{className:Hr(VM.wrapper)},a.a.createElement(RM,null),a.a.createElement(jM,null),a.a.createElement(UM,null)))})};HM.defaultProps={show:!0},HM.propTypes={show:m.a.bool};var VM=Wr.create(function(e){for(var t=1;t0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(fx);function yx(e){return e}function vx(e){return void 0===e&&(e=Number.POSITIVE_INFINITY),function e(t,n,r){return void 0===r&&(r=Number.POSITIVE_INFINITY),"function"==typeof n?function(i){return i.pipe(e(function(e,r){return bp(t(e,r)).pipe(Ub(function(t,i){return n(e,t,r,i)}))},r))}:("number"==typeof n&&(r=n),function(e){return e.lift(new gx(t,r))})}(yx,e)}function bx(){for(var e=[],t=0;t1&&"number"==typeof e[e.length-1]&&(r=e.pop())):"number"==typeof o&&(r=e.pop()),null===i&&1===e.length&&e[0]instanceof cp?e[0]:vx(r)(function(e,t){return t?yp(e,t):new cp(dp(e))}(e,i))}function _x(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var wx=function(){var e=_x(Object(o.useState)(!1),2),t=e[0],n=e[1],r=Object(o.useContext)(Zt).subjects,i=r.loginFormSubject,s=r.registerFormSubject;return Object(o.useEffect)(function(){var e=bx(bp(i),bp(s)).pipe(_p(function(e){var t=e.type;return"formSubmit"===t||"amplifyResponse"===t})).subscribe(function(e){var t=e.type;"formSubmit"===t&&n(!0),"amplifyResponse"===t&&n(!1)});return function(){return e.unsubscribe()}},[]),t&&a.a.createElement(Ah,null)},Sx=function(e,t){var n=new ny,r=new ny,i=t.subjects.eventSubject,o=bp(n).pipe(_p(function(e){return"formSubmit"===e.type})).subscribe(function(t){var r=t.payload;!function(e){var t=e.environment,n=e.loginFormSubject;return function(e){var r=t.history,i=e.username,o=e.password;Xt.Auth.signIn({username:i,password:o}).then(function(e){return"NEW_PASSWORD_REQUIRED"===e.challengeName&&n.next({type:"amplifyResponse",payload:{code:"NEW_PASSWORD_REQUIRED"}}),n.next({type:"amplifyResponse",payload:{code:"SUCCES"}}),r.push("/path")}).catch(function(e){n.next({type:"amplifyResponse",payload:{code:"ERROR",data:e}})})}}({environment:e,loginFormSubject:n})(r)}),a=bp(r).pipe(_p(function(e){return"formSubmit"===e.type})).subscribe(function(t){var n=t.payload;!function(e){var t=e.environment,n=e.registerFormSubject;return function(e){var r=t.history,i=e.username,o=e.password,a=e.informationClauseAccept,s=e.marketingProcessingAccept,u=e.commercialInformationAccept,c=e.directContactAccept,l=function(e){return e?"1":"0"};Xt.Auth.signUp({username:i,password:o,attributes:{email:i,"custom:information_clause":l(a),"custom:marketing_processing":l(s),"custom:commercial_info":l(u),"custom:direct_contact":l(c)}}).then(function(){return r.push("/confirm-email")}).catch(function(e){n.next({type:"amplifyResponse",payload:{code:"ERROR",data:e}})})}}({environment:e,registerFormSubject:r})(n)}),s=bp(n).pipe(_p(function(e){return"amplifyResponse"===e.type})).subscribe(function(e){var t;if("SUCCES"===e.payload.code){var n=(t=navigator.userAgent).indexOf("Firefox")>-1?"Firefox":t.indexOf("SamsungBrowser")>-1?"SamsungBrowser":t.indexOf("Opera")>-1||t.indexOf("OPR")>-1?"Opera":t.indexOf("Trident")>-1?"Internet Explorer":t.indexOf("Edge")>-1?"Edge":t.indexOf("Chrome")>-1?"Chrome":t.indexOf("Safari")>-1?"Safari":"unknown";i.next({type:"user_logged"}),i.next({type:"used_browser",payload:{browser:n}})}});return{subjects:{loginFormSubject:n,registerFormSubject:r},observables:{},teardown:function(){o.unsubscribe(),a.unsubscribe(),s.unsubscribe()}}},Cx=function(){var e=Object(o.useContext)(Gt),t=Object(o.useContext)(Qt),n=Sx(e,t);return t.disableCpmRecord(),Object(o.useEffect)(function(){return function(){return n.teardown()}},[]),a.a.createElement(Zt.Provider,{value:n},a.a.createElement(v_,null,a.a.createElement(wx,null),a.a.createElement(m_,null),a.a.createElement(f_,null),a.a.createElement(dx,null)))},Ix=function(e){var t=e.children,n=e.onClick;return a.a.createElement("div",{role:"button",tabIndex:0,className:Hr(Mx.wrapper),onClick:n},t)};Ix.defaultProps={onClick:function(){}},Ix.propTypes={children:m.a.oneOfType([m.a.arrayOf(m.a.node),m.a.node]).isRequired,onClick:m.a.func};var Mx=Wr.create({wrapper:{position:"relative",outline:"none",whiteSpace:"nowrap",padding:10,cursor:"pointer",":hover":{"::before":{content:'""',backgroundColor:uh,width:"calc(100% + 68px)",height:"100%",position:"absolute",top:0,left:"-34px",zIndex:-1,borderRadius:2,boxShadow:"0 4px 16px 0 ".concat(nh),animationName:Ip,animationDuration:"".concat(300,"ms")}}}}),xx=Ix,Nx=n(147);function Ex(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Lx=function(e){var t=e.intl,n=Object(o.useContext)(Gt),r=km(),i=Ex(Om(),1)[0],s=Object(Vr.get)(i,"hasSubscription"),u=Object(Vr.get)(i,"isEmployer"),c=function(e){n.history.push(e)};return a.a.createElement(eg,{renderTrigger:function(){return a.a.createElement(jd,{iconName:"menu"})},testId:"main-menu"},a.a.createElement("div",{className:Hr(Tx.menuWrapper)},a.a.createElement(xx,{onClick:function(){return c(tn)}},t.formatMessage({id:Nx.DESKTOP})),a.a.createElement(xx,{onClick:function(){return c("/profile")}},t.formatMessage({id:Nx.PROFILE})),a.a.createElement(xx,{onClick:function(){return c("/ranking")}},t.formatMessage({id:Nx.RANKING})),a.a.createElement(xx,{onClick:function(){return c("/change-path")}},t.formatMessage({id:Nx.CHANGE_PATH})),s&&a.a.createElement(xx,{onClick:function(){return c("/addons-payment")}},t.formatMessage({id:Nx.INDIVIDUAL_CLASSES})),u&&a.a.createElement(xx,{onClick:function(){return c("/users-list")}},t.formatMessage({id:Nx.USERS_LIST}))),a.a.createElement("div",{className:Hr(Tx.regulations)},a.a.createElement("a",{href:t.formatMessage({id:Nx.PRIVACY_POLICY_ADDRESS}),target:"_blank",rel:"noopener noreferrer",className:Hr(Tx.link)},t.formatMessage({id:Nx.PRIVACY_POLICY})),a.a.createElement("a",{href:t.formatMessage({id:Nx.TERMS_ADDRESS}),target:"_blank",rel:"noopener noreferrer",className:Hr(Tx.link)},t.formatMessage({id:Nx.TERMS}))),a.a.createElement("div",{className:Hr(Tx.logout)},a.a.createElement(Rh,{label:t.formatMessage({id:Nx.LOGOUT}),onClick:function(){r({type:"user_logout_click"}),c("/logout")},testId:"logout"})))};Lx.propTypes={intl:Q.isRequired};var Tx=Wr.create({menuWrapper:{position:"relative",padding:"5px 32px",fontSize:14},logout:{fontSize:14,padding:10,textAlign:"center",borderTop:"solid 1px ".concat(th)},regulations:{display:"flex",justifyContent:"space-around",fontSize:12,padding:10,borderTop:"solid 1px ".concat(th)},link:{fontSize:12,fontWeight:300,color:ah,textDecoration:"none",transition:".2s",":hover":{color:"#2c2c54"},":active":{color:eh}}}),kx=ce(Lx),Dx=Wr.create({wrapper:{display:"flex",justifyContent:"space-between",padding:32}}),Ox=function(){return a.a.createElement("div",{className:Hr(Dx.wrapper)},a.a.createElement(Ud,{isDark:!0}),a.a.createElement(kx,null))},Ax=n(712),jx=n.n(Ax),Px=n(343),Rx=n.n(Px),zx=n(344),Fx=n.n(zx);function Bx(e){for(var t=1;t0&&(a=new Ay({graphQLErrors:o})),Object.assign(e,{loading:n,networkStatus:i,error:a,called:!0}),n){var u=this.previousData.result?this.previousData.result.data:{};Object.assign(e.data,u,s)}else if(a)Object.assign(e,{data:(this.currentObservable.query.getLastResult()||{}).data});else{var c=this.currentObservable.query.options.fetchPolicy;if(this.getOptions().partialRefetch&&0===Object.keys(s).length&&r&&"cache-only"!==c)return Object.assign(e,{loading:!0,networkStatus:xy.loading}),e.refetch(),e;Object.assign(e.data,s)}}return e.client=this.client,this.previousData.loading=this.previousData.result&&this.previousData.result.loading||!1,this.previousData.result=e,e},t.prototype.handleErrorOrCompleted=function(){var e=this.currentObservable.query.getCurrentResult(),t=e.data,n=e.loading,r=e.error;if(!n){var i=this.getOptions(),o=i.query,a=i.variables,s=i.onCompleted,u=i.onError;if(this.previousOptions&&!this.previousData.loading&&Object(cy.a)(this.previousOptions.query,o)&&Object(cy.a)(this.previousOptions.variables,a))return;s&&!r?s(t):u&&r&&u(r)}},t.prototype.removeQuerySubscription=function(){this.currentObservable.subscription&&(this.currentObservable.subscription.unsubscribe(),delete this.currentObservable.subscription)},t}(cN);function dN(e,t,n){void 0===n&&(n=!1);var r=Object(o.useContext)(He()),i=Object(o.useReducer)(function(e){return e+1},0),a=i[0],s=i[1],u=t?uN({},t,{query:e}):{query:e},c=Object(o.useRef)();c.current||(c.current=new lN({options:u,context:r,forceUpdate:s}));var l=c.current;l.setOptions(u),l.context=r;var d,h,p,f=(d=function(){return n?l.executeLazy():l.execute()},h={options:u,context:r,tick:a},(p=Object(o.useRef)()).current&&Object(cy.a)(h,p.current.key)||(p.current={key:h,value:d()}),p.current.value);return Object(o.useEffect)(function(){return l.afterExecute({lazy:n})},[f]),Object(o.useEffect)(function(){return function(){return l.cleanup()}},[]),f}function hN(e,t){return dN(e,t,!1)}function pN(e,t){return dN(e,t,!0)}!function(e){function t(t){var n=t.options,r=t.context,i=t.result,o=t.setResult,a=e.call(this,n,r)||this;return a.runMutation=function(e){void 0===e&&(e={}),a.onMutationStart();var t=a.generateNewMutationId();return a.mutate(e).then(function(e){return a.onMutationCompleted(e,t),e}).catch(function(e){if(a.onMutationError(e,t),!a.getOptions().onError)throw e})},a.verifyDocumentType(n.mutation,Ve.Mutation),a.result=i,a.setResult=o,a.mostRecentMutationId=0,a}sN(t,e),t.prototype.execute=function(e){return this.isMounted=!0,this.verifyDocumentType(this.getOptions().mutation,Ve.Mutation),[this.runMutation,e]},t.prototype.afterExecute=function(){return this.isMounted=!0,this.unmount.bind(this)},t.prototype.cleanup=function(){},t.prototype.mutate=function(e){var t=this.getOptions(),n=t.mutation,r=t.variables,i=t.optimisticResponse,o=t.update,a=t.context,s=void 0===a?{}:a,u=t.awaitRefetchQueries,c=void 0!==u&&u,l=t.fetchPolicy,d=uN({},e),h=Object.assign({},r,d.variables);return delete d.variables,this.refreshClient().client.mutate(uN({mutation:n,optimisticResponse:i,refetchQueries:d.refetchQueries||this.getOptions().refetchQueries,awaitRefetchQueries:c,update:o,context:s,fetchPolicy:l,variables:h},d))},t.prototype.onMutationStart=function(){this.result.loading||this.getOptions().ignoreResults||this.updateResult({loading:!0,error:void 0,data:void 0,called:!0})},t.prototype.onMutationCompleted=function(e,t){var n=this.getOptions(),r=n.onCompleted,i=n.ignoreResults,o=e.data,a=e.errors,s=a&&a.length>0?new Ay({graphQLErrors:a}):void 0;this.isMostRecentMutation(t)&&!i&&this.updateResult({called:!0,loading:!1,data:o,error:s}),r&&r(o)},t.prototype.onMutationError=function(e,t){var n=this.getOptions().onError;this.isMostRecentMutation(t)&&this.updateResult({loading:!1,error:e,data:void 0,called:!0}),n&&n(e)},t.prototype.generateNewMutationId=function(){return++this.mostRecentMutationId},t.prototype.isMostRecentMutation=function(e){return this.mostRecentMutationId===e},t.prototype.updateResult=function(e){!this.isMounted||this.previousResult&&Object(cy.a)(this.previousResult,e)||(this.setResult(e),this.previousResult=e)}}(cN);!function(e){function t(t){var n=t.options,r=t.context,i=t.setResult,o=e.call(this,n,r)||this;return o.currentObservable={},o.setResult=i,o.initialize(n),o}sN(t,e),t.prototype.execute=function(e){var t=e;this.refreshClient().isNew&&(t=this.getLoadingResult());var n=this.getOptions().shouldResubscribe;return"function"==typeof n&&(n=!!n(this.getOptions())),!1!==n&&this.previousOptions&&Object.keys(this.previousOptions).length>0&&(this.previousOptions.subscription!==this.getOptions().subscription||!Object(cy.a)(this.previousOptions.variables,this.getOptions().variables))&&(this.endSubscription(),delete this.currentObservable.query,t=this.getLoadingResult()),this.initialize(this.getOptions()),this.startSubscription(),this.previousOptions=this.getOptions(),uN({},t,{variables:this.getOptions().variables})},t.prototype.afterExecute=function(){this.isMounted=!0},t.prototype.cleanup=function(){this.endSubscription(),delete this.currentObservable.query},t.prototype.initialize=function(e){this.currentObservable.query||(this.currentObservable.query=this.refreshClient().client.subscribe({query:e.subscription,variables:e.variables,fetchPolicy:e.fetchPolicy}))},t.prototype.startSubscription=function(){this.currentObservable.subscription||(this.currentObservable.subscription=this.currentObservable.query.subscribe({next:this.updateCurrentData.bind(this),error:this.updateError.bind(this),complete:this.completeSubscription.bind(this)}))},t.prototype.getLoadingResult=function(){return{loading:!0,error:void 0,data:void 0}},t.prototype.updateResult=function(e){this.isMounted&&this.setResult(e)},t.prototype.updateCurrentData=function(e){var t=this.getOptions().onSubscriptionData;this.updateResult({data:e.data,loading:!1,error:void 0}),t&&t({client:this.refreshClient().client,subscriptionData:e})},t.prototype.updateError=function(e){this.updateResult({error:e,loading:!1})},t.prototype.completeSubscription=function(){var e=this.getOptions().onSubscriptionComplete;e&&e(),this.endSubscription()},t.prototype.endSubscription=function(){this.currentObservable.subscription&&(this.currentObservable.subscription.unsubscribe(),delete this.currentObservable.subscription)}}(cN);!function(){function e(){this.queryPromises=new Map,this.queryInfoTrie=new Map}e.prototype.registerSSRObservable=function(e,t){this.lookupQueryInfo(t).observable=e},e.prototype.getSSRObservable=function(e){return this.lookupQueryInfo(e).observable},e.prototype.addQueryPromise=function(e,t){return this.lookupQueryInfo(e.getOptions()).seen?t():(this.queryPromises.set(e.getOptions(),new Promise(function(t){t(e.fetchData())})),null)},e.prototype.hasPromises=function(){return this.queryPromises.size>0},e.prototype.consumeAndAwaitPromises=function(){var e=this,t=[];return this.queryPromises.forEach(function(n,r){e.lookupQueryInfo(r).seen=!0,t.push(n)}),this.queryPromises.clear(),Promise.all(t)},e.prototype.lookupQueryInfo=function(e){var t=this.queryInfoTrie,n=e.query,r=e.variables,i=t.get(n)||new Map;t.has(n)||t.set(n,i);var o=JSON.stringify(r),a=i.get(o)||{seen:!1,observable:null};return i.has(o)||i.set(o,a),a}}();var fN=n(716);function gN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var mN=function(e){var t,n=e.stonesCollection,r=e.backgroundColor,i=e.intl,s=Object(o.useContext)(Gt).history,u=i.formatMessage({id:fN.SELECT}),c=Tm(),l=(gN(t={},"small",1),gN(t,"medium",2),gN(t,"large",3),t)[c];return a.a.createElement("div",{className:Hr(yN.wrapper)},a.a.createElement(Ag,{elementsPerRow:l,stonesCollection:n,backgroundColor:r}),a.a.createElement("div",{className:Hr(yN.changePathWrapper)},a.a.createElement(vf,{type:"secondary",label:u,onClick:function(){s.push("/change-path")},isRounded:!0})))};mN.defaultProps={backgroundColor:"#2c2c54"},mN.propTypes={stonesCollection:m.a.arrayOf(m.a.object).isRequired,backgroundColor:m.a.string,intl:Q.isRequired};var yN=Wr.create({wrapper:{animationName:Ip,animationDuration:"".concat(300,"ms"),overflow:"hidden"},changePathWrapper:function(e){for(var t=1;t=0)||e<0)&&(e=0),t&&"function"==typeof t.schedule||(t=jL),new cp(function(n){return n.add(t.schedule(RL,e,{subscriber:n,counter:0,period:e})),n})}function RL(e){var t=e.subscriber,n=e.counter,r=e.period;t.next(n),this.schedule({subscriber:t,counter:n+1,period:r},r)}function zL(e){return function(t){return t.lift(new FL(e))}}var FL=function(){function e(e){this.durationSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new BL(e,this.durationSelector))},e}(),BL=function(e){function t(t,n){var r=e.call(this,t)||this;return r.durationSelector=n,r.hasValue=!1,r.durationSubscription=null,r}return qh.c(t,e),t.prototype._next=function(e){try{var t=this.durationSelector.call(this,e);t&&this._tryNext(e,t)}catch(e){this.destination.error(e)}},t.prototype._complete=function(){this.emitValue(),this.destination.complete()},t.prototype._tryNext=function(e,t){var n=this.durationSubscription;this.value=e,this.hasValue=!0,n&&(n.unsubscribe(),this.remove(n)),(n=px(this,t))&&!n.closed&&this.add(this.durationSubscription=n)},t.prototype.notifyNext=function(e,t,n,r,i){this.emitValue()},t.prototype.notifyComplete=function(){this.emitValue()},t.prototype.emitValue=function(){if(this.hasValue){var t=this.value,n=this.durationSubscription;n&&(this.durationSubscription=null,n.unsubscribe(),this.remove(n)),this.value=null,this.hasValue=!1,e.prototype._next.call(this,t)}},t}(fx),UL=n(732),WL=Wr.create({wrapper:{textTransform:"uppercase",paddingLeft:24,paddingTop:24,paddingBottom:48}}),HL=function(){return a.a.createElement("div",{className:Hr(WL.wrapper)},a.a.createElement(je,{id:UL.HEADER},function(e){return a.a.createElement("h4",null,e)}))},VL=function(e){var t=e.isActive,n=e.title,r=e.itemSlug,i=e.itemType,s=e.stoneSlug,u=Object(o.useContext)(Gt),c=Object(o.useContext)(Zt).subjects.lessonSubject;return a.a.createElement("div",{className:Hr(qL.wrapper)},a.a.createElement("div",{className:Hr(qL.active,!t&&qL.hidden)}),a.a.createElement("a",{href:"#",onClick:function(e){e.preventDefault();var t=u.history;c.next({type:"stopAudio"}),"Lesson"===i?t.push("".concat("/lesson-redirect","/").concat(s,"/").concat(r)):"Lecture"===i?t.push("".concat("/lecture","/").concat(s,"/").concat(r)):"Test"===i&&t.push("".concat("/test","/").concat(s,"/").concat(r))},className:Hr(qL.link)},n))};VL.defaultProps={isActive:!1,title:null,itemSlug:null,stoneSlug:""},VL.propTypes={isActive:m.a.bool,title:m.a.string,itemSlug:m.a.string,itemType:m.a.oneOf(["Lesson","Lecture","Test"]).isRequired,stoneSlug:m.a.string};var qL=Wr.create({wrapper:{paddingBottom:16,display:"flex",minHeight:40},link:{color:uh,display:"flex",alignItems:"center",textDecoration:"none",":hover":{textDecoration:"underline"}},active:{width:8,backgroundColor:"red",marginRight:24,boxShadow:"4px 0 16px 0 rgba(225, 245, 184, 0.3)",backgroundImage:"linear-gradient(191deg, #b5e555, #87cc1f)"},hidden:{visibility:"hidden"}}),YL=VL;function GL(e){for(var t=1;t=2;return function(r){return r.pipe(e?_p(function(t,n){return e(t,n,r)}):yx,(o=1,function(e){return 0===o?oT():e.lift(new aT(o))}),n?function(e){return void 0===e&&(e=null),function(t){return t.lift(new uT(e))}}(t):(void 0===(i=function(){return new tT})&&(i=hT),function(e){return e.lift(new lT(i))}));var i,o}}function fT(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var gT=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=fT(Object(o.useState)(e),2),n=t[0],r=t[1],i=Object(o.useContext)(Zt).subjects.lessonSubject;return Object(o.useEffect)(function(){var e=bp(i).pipe(_p(function(e){return"playerReady"===e.type})).subscribe(function(){r(!1)});return function(){return e.unsubscribe()}},[]),n};function mT(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var yT=Wr.create({wrapper:{position:"fixed",left:"calc(50% - 100px)",top:"calc(50% - 100px)",zIndex:"3"},button:{background:"transparent",border:0,outline:0,transition:"".concat(300,"ms"),cursor:"pointer",":active":{opacity:".8"}}}),vT={element:{width:200,height:200}},bT=function(){var e=mT(Object(o.useState)(!0),2),t=e[0],n=e[1],r=gT(),i=Object(o.useContext)(Zt).subjects.lessonSubject;return Object(o.useEffect)(function(){var e=bp(i).pipe(_p(function(e){return"nextLessonStep"===e.type}),pT()).subscribe(function(){n(!1)});return function(){return e.unsubscribe()}},[]),r||!t?null:a.a.createElement("div",{className:Hr(yT.wrapper)},a.a.createElement("div",{role:"button",tabIndex:0,onClick:function(){i.next({type:"nextLessonStep"})},className:Hr(yT.button)},a.a.createElement(jd,{iconName:"play",css:vT})))};function _T(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wT(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var ST=Wr.create({wrapper:function(e){for(var t=1;t/,dk=//,hk=function(e){var t=e.html,n=e.css,r=e.js;return t.replace(lk,"")).replace(dk,"