text: (window.webpackJsonp=window.webpackJsonp||[]).push([[1],[function(e,h,t){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=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}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(h,"__esModule",{value:!0});var n=t(48),o=t(2),l=t(15);h.DEFAULT_ATTR=131840,h.CHAR_DATA_ATTR_INDEX=0,h.CHAR_DATA_CHAR_INDEX=1,h.CHAR_DATA_WIDTH_INDEX=2,h.CHAR_DATA_CODE_INDEX=3,h.MAX_BUFFER_SIZE=4294967295,h.NULL_CELL_CHAR=" ",h.NULL_CELL_WIDTH=1,h.NULL_CELL_CODE=32;var s=function(){function e(e,t){this._terminal=e,this._hasScrollback=t,this.markers=[],this.clear()}return Object.defineProperty(e.prototype,"hasScrollback",{get:function(){return this._hasScrollback&&this.lines.maxLength>this._terminal.rows},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isCursorInViewport",{get:function(){var e=this.ybase+this.y-this.ydisp;return 0<=e&&e<this._terminal.rows},enumerable:!0,configurable:!0}),e.prototype._getCorrectBufferLength=function(e){if(!this._hasScrollback)return e;var t=e+this._terminal.options.scrollback;return t>h.MAX_BUFFER_SIZE?h.MAX_BUFFER_SIZE:t},e.prototype.fillViewportRows=function(){if(0===this.lines.length)for(var e=this._terminal.rows;e--;)this.lines.push(l.BufferLine.blankLine(this._terminal.cols,h.DEFAULT_ATTR))},e.prototype.clear=function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new n.CircularList(this._getCorrectBufferLength(this._terminal.rows)),this.scrollTop=0,this.scrollBottom=this._terminal.rows-1,this.setupTabStops()},e.prototype.resize=function(e,t){var n=this._getCorrectBufferLength(t);if(n>this.lines.maxLength&&(this.lines.maxLength=n),0<this.lines.length){if(this._terminal.cols<e)for(var i=[h.DEFAULT_ATTR,h.NULL_CELL_CHAR,h.NULL_CELL_WIDTH,h.NULL_CELL_CODE],r=0;r<this.lines.length;r++)for(;this.lines.get(r).length<e;)this.lines.get(r).push(i);var o=0;if(this._terminal.rows<t)for(var s=this._terminal.rows;s<t;s++)this.lines.length<t+this.ybase&&(0<this.ybase&&this.lines.length<=this.ybase+this.y+o+1?(this.ybase--,o++,0<this.ydisp&&this.ydisp--):this.lines.push(l.BufferLine.blankLine(e,h.DEFAULT_ATTR)));else for(s=this._terminal.rows;t<s;s--)this.lines.length>t+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(n<this.lines.maxLength){var a=this.lines.length-n;0<a&&(this.lines.trimStart(a),this.ybase=Math.max(this.ybase-a,0),this.ydisp=Math.max(this.ydisp-a,0)),this.lines.maxLength=n}this.x=Math.min(this.x,e-1),this.y=Math.min(this.y,t-1),o&&(this.y+=o),this.savedY=Math.min(this.savedY,t-1),this.savedX=Math.min(this.savedX,e-1),this.scrollTop=0}this.scrollBottom=t-1},e.prototype.stringIndexToBufferIndex=function(e,t){for(;t;){for(var n=this.lines.get(e),i=0;i<n.length;++i)if((t-=n.get(i)[h.CHAR_DATA_CHAR_INDEX].length)<0)return[e,i];e++}return[e,0]},e.prototype.translateBufferLineToString=function(e,t,n,i){void 0===n&&(n=0),void 0===i&&(i=null);var r="",o=this.lines.get(e);if(!o)return"";var s=n;null===i&&(i=o.length);for(var a=i,l=0;l<o.length;l++){var c=o.get(l);r+=c[h.CHAR_DATA_CHAR_INDEX],0===c[h.CHAR_DATA_WIDTH_INDEX]?(l<=n&&s--,l<i&&a--):1<c[h.CHAR_DATA_CHAR_INDEX].length&&(l<n&&(s+=c[h.CHAR_DATA_CHAR_INDEX].length-1),l<i&&(a+=c[h.CHAR_DATA_CHAR_INDEX].length-1))}if(t){var u=r.search(/\s+$/);if(-1!==u&&(a=Math.min(a,u)),a<=s)return""}return r.substring(s,a)},e.prototype.getWrappedRangeForLine=function(e){for(var t=e,n=e;0<t&&this.lines.get(t).isWrapped;)t--;for(;n+1<this.lines.length&&this.lines.get(n+1).isWrapped;)n++;return{first:t,last:n}},e.prototype.setupTabStops=function(e){for(null!=e?this.tabs[e]||(e=this.prevStop(e)):(this.tabs={},e=0);e<this._terminal.cols;e+=this._terminal.options.tabStopWidth)this.tabs[e]=!0},e.prototype.prevStop=function(e){for(null==e&&(e=this.x);!this.tabs[--e]&&0<e;);return e>=this._terminal.cols?this._terminal.cols-1:e<0?0:e},e.prototype.nextStop=function(e){for(null==e&&(e=this.x);!this.tabs[++e]&&e<this._terminal.cols;);return e>=this._terminal.cols?this._terminal.cols-1:e<0?0:e},e.prototype.addMarker=function(e){var t=this,n=new a(e);return this.markers.push(n),n.register(this.lines.addDisposableListener("trim",function(e){n.line-=e,n.line<0&&n.dispose()})),n.register(n.addDisposableListener("dispose",function(){return t._removeMarker(n)})),n},e.prototype._removeMarker=function(e){this.markers.splice(this.markers.indexOf(e),1)},e.prototype.iterator=function(e,t,n,i,r){return new c(this,e,t,n,i,r)},e}();h.Buffer=s;var a=function(n){function i(e){var t=n.call(this)||this;return t.line=e,t._id=i._nextId++,t.isDisposed=!1,t}return r(i,n),Object.defineProperty(i.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),i.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.emit("dispose"),n.prototype.dispose.call(this))},i._nextId=1,i}(o.EventEmitter);h.Marker=a;var c=function(){function e(e,t,n,i,r,o){void 0===n&&(n=0),void 0===i&&(i=e.lines.length),void 0===r&&(r=0),void 0===o&&(o=0),this._buffer=e,this._trimRight=t,this._startIndex=n,this._endIndex=i,this._startOverscan=r,this._endOverscan=o,this._startIndex<0&&(this._startIndex=0),this._endIndex>this._buffer.lines.length&&(this._endIndex=this._buffer.lines.length),this._current=this._startIndex}return e.prototype.hasNext=function(){return this._current<this._endIndex},e.prototype.next=function(){var e=this._buffer.getWrappedRangeForLine(this._current);e.first<this._startIndex-this._startOverscan&&(e.first=this._startIndex-this._startOverscan),e.last>this._endIndex+this._endOverscan&&(e.last=this._endIndex+this._endOverscan),e.first=Math.max(e.first,0),e.last=Math.min(e.last,this._buffer.lines.length);for(var t="",n=e.first;n<=e.last;++n)t+=this._buffer.translateBufferLineToString(n,!!this._trimRight&&n===e.last);return this._current=e.last+1,{range:e,content:t}},e}();h.BufferStringIterator=c},function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return r}),n.d(t,"c",function(){return o}),n.d(t,"d",function(){return s}),n.d(t,"e",function(){return a}),n.d(t,"f",function(){return l}),n.d(t,"g",function(){return c}),n.d(t,"h",function(){return u}),n.d(t,"i",function(){return h});/*!
  * Font Awesome Free 5.5.0 by @fontawesome - https://fontawesome.com
  * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
  */var i={prefix:"fas",iconName:"calendar",icon:[448,512,[],"f133","M12 192h424c6.6 0 12 5.4 12 12v260c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V204c0-6.6 5.4-12 12-12zm436-44v-36c0-26.5-21.5-48-48-48h-48V12c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v52H160V12c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v52H48C21.5 64 0 85.5 0 112v36c0 6.6 5.4 12 12 12h424c6.6 0 12-5.4 12-12z"]},r={prefix:"fas",iconName:"edit",icon:[576,512,[],"f044","M402.6 83.2l90.2 90.2c3.8 3.8 3.8 10 0 13.8L274.4 405.6l-92.8 10.3c-12.4 1.4-22.9-9.1-21.5-21.5l10.3-92.8L388.8 83.2c3.8-3.8 10-3.8 13.8 0zm162-22.9l-48.8-48.8c-15.2-15.2-39.9-15.2-55.2 0l-35.4 35.4c-3.8 3.8-3.8 10 0 13.8l90.2 90.2c3.8 3.8 10 3.8 13.8 0l35.4-35.4c15.2-15.3 15.2-40 0-55.2zM384 346.2V448H64V128h229.8c3.2 0 6.2-1.3 8.5-3.5l40-40c7.6-7.6 2.2-20.5-8.5-20.5H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V306.2c0-10.7-12.9-16-20.5-8.5l-40 40c-2.2 2.3-3.5 5.3-3.5 8.5z"]},o={prefix:"fas",iconName:"file-alt",icon:[384,512,[],"f15c","M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm64 236c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12v8zm0-64c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12v8zm0-72v8c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12zm96-114.1v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"]},s={prefix:"fas",iconName:"fire",icon:[384,512,[],"f06d","M216 23.858c0-23.802-30.653-32.765-44.149-13.038C48 191.851 224 200 224 288c0 35.629-29.114 64.458-64.85 63.994C123.98 351.538 96 322.22 96 287.046v-85.51c0-21.703-26.471-32.225-41.432-16.504C27.801 213.158 0 261.332 0 320c0 105.869 86.131 192 192 192s192-86.131 192-192c0-170.29-168-193.003-168-296.142z"]},a={prefix:"fas",iconName:"home",icon:[576,512,[],"f015","M488 312.7V456c0 13.3-10.7 24-24 24H348c-6.6 0-12-5.4-12-12V356c0-6.6-5.4-12-12-12h-72c-6.6 0-12 5.4-12 12v112c0 6.6-5.4 12-12 12H112c-13.3 0-24-10.7-24-24V312.7c0-3.6 1.6-7 4.4-9.3l188-154.8c4.4-3.6 10.8-3.6 15.3 0l188 154.8c2.7 2.3 4.3 5.7 4.3 9.3zm83.6-60.9L488 182.9V44.4c0-6.6-5.4-12-12-12h-56c-6.6 0-12 5.4-12 12V117l-89.5-73.7c-17.7-14.6-43.3-14.6-61 0L4.4 251.8c-5.1 4.2-5.8 11.8-1.6 16.9l25.5 31c4.2 5.1 11.8 5.8 16.9 1.6l235.2-193.7c4.4-3.6 10.8-3.6 15.3 0l235.2 193.7c5.1 4.2 12.7 3.5 16.9-1.6l25.5-31c4.2-5.2 3.4-12.7-1.7-16.9z"]},l={prefix:"fas",iconName:"sign-in-alt",icon:[512,512,[],"f2f6","M416 448h-84c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h84c17.7 0 32-14.3 32-32V160c0-17.7-14.3-32-32-32h-84c-6.6 0-12-5.4-12-12V76c0-6.6 5.4-12 12-12h84c53 0 96 43 96 96v192c0 53-43 96-96 96zm-47-201L201 79c-15-15-41-4.5-41 17v96H24c-13.3 0-24 10.7-24 24v96c0 13.3 10.7 24 24 24h136v96c0 21.5 26 32 41 17l168-168c9.3-9.4 9.3-24.6 0-34z"]},c={prefix:"fas",iconName:"terminal",icon:[640,512,[],"f120","M257.981 272.971L63.638 467.314c-9.373 9.373-24.569 9.373-33.941 0L7.029 444.647c-9.357-9.357-9.375-24.522-.04-33.901L161.011 256 6.99 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L257.981 239.03c9.373 9.372 9.373 24.568 0 33.941zM640 456v-32c0-13.255-10.745-24-24-24H312c-13.255 0-24 10.745-24 24v32c0 13.255 10.745 24 24 24h304c13.255 0 24-10.745 24-24z"]},u={prefix:"fas",iconName:"user",icon:[448,512,[],"f007","M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"]},h={prefix:"fas",iconName:"user-plus",icon:[640,512,[],"f234","M624 208h-64v-64c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v64h-64c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h64v64c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-64h64c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm-400 48c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"]}},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=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}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=function(t){function e(){var e=t.call(this)||this;return e._events=e._events||{},e}return r(e,t),e.prototype.on=function(e,t){this._events[e]=this._events[e]||[],this._events[e].push(t)},e.prototype.addDisposableListener=function(e,t){var n=this;this.on(e,t);var i=!1;return{dispose:function(){i||(n.off(e,t),i=!0)}}},e.prototype.off=function(e,t){if(this._events[e])for(var n=this._events[e],i=n.length;i--;)if(n[i]===t)return void n.splice(i,1)},e.prototype.removeAllListeners=function(e){this._events[e]&&delete this._events[e]},e.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(this._events[e])for(var i=this._events[e],r=0;r<i.length;r++)i[r].apply(this,t)},e.prototype.listeners=function(e){return this._events[e]||[]},e.prototype.dispose=function(){t.prototype.dispose.call(this),this._events={}},e}(n(5).Disposable);t.EventEmitter=o},function(jt,Yt,e){var zt;/*!
  * jQuery JavaScript Library v3.3.1
  * https://jquery.com/
  *
  * Includes Sizzle.js
  * https://sizzlejs.com/
  *
  * Copyright JS Foundation and other contributors
  * Released under the MIT license
  * https://jquery.org/license
  *
  * Date: 2018-01-20T17:24Z
  *//*!
  * jQuery JavaScript Library v3.3.1
  * https://jquery.com/
  *
  * Includes Sizzle.js
  * https://sizzlejs.com/
  *
  * Copyright JS Foundation and other contributors
  * Released under the MIT license
  * https://jquery.org/license
  *
  * Date: 2018-01-20T17:24Z
  */!function(e,t){"use strict";"object"==typeof jt.exports?jt.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(A,e){"use strict";var t=[],x=A.document,i=Object.getPrototypeOf,a=t.slice,m=t.concat,l=t.push,r=t.indexOf,n={},o=n.toString,g=n.hasOwnProperty,s=g.toString,c=s.call(Object),_={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},y=function(e){return null!=e&&e===e.window},u={type:!0,src:!0,noModule:!0};function b(e,t,n){var i,r=(t=t||x).createElement("script");if(r.text=e,n)for(i in u)n[i]&&(r[i]=n[i]);t.head.appendChild(r).parentNode.removeChild(r)}function C(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var E=function(e,t){return new E.fn.init(e,t)},h=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function d(e){var t=!!e&&"length"in e&&e.length,n=C(e);return!v(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}E.fn=E.prototype={jquery:"3.3.1",constructor:E,length:0,toArray:function(){return a.call(this)},get:function(e){return null==e?a.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=E.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return E.each(this,e)},map:function(n){return this.pushStack(E.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:l,sort:t.sort,splice:t.splice},E.extend=E.fn.extend=function(){var e,t,n,i,r,o,s=arguments[0]||{},a=1,l=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[a]||{},a++),"object"==typeof s||v(s)||(s={}),a===l&&(s=this,a--);a<l;a++)if(null!=(e=arguments[a]))for(t in e)n=s[t],s!==(i=e[t])&&(c&&i&&(E.isPlainObject(i)||(r=Array.isArray(i)))?(o=r?(r=!1,n&&Array.isArray(n)?n:[]):n&&E.isPlainObject(n)?n:{},s[t]=E.extend(c,o,i)):void 0!==i&&(s[t]=i));return s},E.extend({expando:"jQuery"+("3.3.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==o.call(e))&&(!(t=i(e))||"function"==typeof(n=g.call(t,"constructor")&&t.constructor)&&s.call(n)===c)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e){b(e)},each:function(e,t){var n,i=0;if(d(e))for(n=e.length;i<n&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},trim:function(e){return null==e?"":(e+"").replace(h,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(d(Object(e))?E.merge(n,"string"==typeof e?[e]:e):l.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:r.call(t,e,n)},merge:function(e,t){for(var n=+t.length,i=0,r=e.length;i<n;i++)e[r++]=t[i];return e.length=r,e},grep:function(e,t,n){for(var i=[],r=0,o=e.length,s=!n;r<o;r++)!t(e[r],r)!==s&&i.push(e[r]);return i},map:function(e,t,n){var i,r,o=0,s=[];if(d(e))for(i=e.length;o<i;o++)null!=(r=t(e[o],o,n))&&s.push(r);else for(o in e)null!=(r=t(e[o],o,n))&&s.push(r);return m.apply([],s)},guid:1,support:_}),"function"==typeof Symbol&&(E.fn[Symbol.iterator]=t[Symbol.iterator]),E.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){n["[object "+t+"]"]=t.toLowerCase()});var f=/*!
  * Sizzle CSS Selector Engine v2.3.3
  * https://sizzlejs.com/
  *
  * Copyright jQuery Foundation and other contributors
  * Released under the MIT license
  * http://jquery.org/license
  *
  * Date: 2016-08-08
  */function(n){var e,f,b,o,r,p,h,m,C,l,c,I,A,s,x,g,a,u,_,E="sizzle"+1*new Date,v=n.document,w=0,i=0,d=se(),y=se(),B=se(),T=function(e,t){return e===t&&(c=!0),0},S={}.hasOwnProperty,t=[],k=t.pop,L=t.push,G=t.push,D=t.slice,R=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},N="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",F="[\\x20\\t\\r\\n\\f]",H="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",O="\\["+F+"*("+H+")(?:"+F+"*([*^$|!~]?=)"+F+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+H+"))|)"+F+"*\\]",W=":("+H+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+O+")*)|.*)\\)|)",Q=new RegExp(F+"+","g"),M=new RegExp("^"+F+"+|((?:^|[^\\\\])(?:\\\\.)*)"+F+"+$","g"),Z=new RegExp("^"+F+"*,"+F+"*"),U=new RegExp("^"+F+"*([>+~]|"+F+")"+F+"*"),V=new RegExp("="+F+"*([^\\]'\"]*?)"+F+"*\\]","g"),X=new RegExp(W),P=new RegExp("^"+H+"$"),j={ID:new RegExp("^#("+H+")"),CLASS:new RegExp("^\\.("+H+")"),TAG:new RegExp("^("+H+"|[*])"),ATTR:new RegExp("^"+O),PSEUDO:new RegExp("^"+W),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+F+"*(even|odd|(([+-]|)(\\d*)n|)"+F+"*(?:([+-]|)"+F+"*(\\d+)|))"+F+"*\\)|)","i"),bool:new RegExp("^(?:"+N+")$","i"),needsContext:new RegExp("^"+F+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+F+"*((?:-\\d)?\\d*)"+F+"*\\)|)(?=[^-]|$)","i")},Y=/^(?:input|select|textarea|button)$/i,z=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,K=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,q=/[+~]/,$=new RegExp("\\\\([\\da-f]{1,6}"+F+"?|("+F+")|.)","ig"),ee=function(e,t,n){var i="0x"+t-65536;return i!=i||n?t:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},te=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ne=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ie=function(){I()},re=ve(function(e){return!0===e.disabled&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{G.apply(t=D.call(v.childNodes),v.childNodes),t[v.childNodes.length].nodeType}catch(e){G={apply:t.length?function(e,t){L.apply(e,D.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function oe(e,t,n,i){var r,o,s,a,l,c,u,h=t&&t.ownerDocument,d=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==d&&9!==d&&11!==d)return n;if(!i&&((t?t.ownerDocument||t:v)!==A&&I(t),t=t||A,x)){if(11!==d&&(l=K.exec(e)))if(r=l[1]){if(9===d){if(!(s=t.getElementById(r)))return n;if(s.id===r)return n.push(s),n}else if(h&&(s=h.getElementById(r))&&_(t,s)&&s.id===r)return n.push(s),n}else{if(l[2])return G.apply(n,t.getElementsByTagName(e)),n;if((r=l[3])&&f.getElementsByClassName&&t.getElementsByClassName)return G.apply(n,t.getElementsByClassName(r)),n}if(f.qsa&&!B[e+" "]&&(!g||!g.test(e))){if(1!==d)h=t,u=e;else if("object"!==t.nodeName.toLowerCase()){for((a=t.getAttribute("id"))?a=a.replace(te,ne):t.setAttribute("id",a=E),o=(c=p(e)).length;o--;)c[o]="#"+a+" "+_e(c[o]);u=c.join(","),h=q.test(e)&&me(t.parentNode)||t}if(u)try{return G.apply(n,h.querySelectorAll(u)),n}catch(e){}finally{a===E&&t.removeAttribute("id")}}}return m(e.replace(M,"$1"),t,n,i)}function se(){var i=[];return function e(t,n){return i.push(t+" ")>b.cacheLength&&delete e[i.shift()],e[t+" "]=n}}function ae(e){return e[E]=!0,e}function le(e){var t=A.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ce(e,t){for(var n=e.split("|"),i=n.length;i--;)b.attrHandle[n[i]]=t}function ue(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function he(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function de(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function fe(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&re(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function pe(s){return ae(function(o){return o=+o,ae(function(e,t){for(var n,i=s([],e.length,o),r=i.length;r--;)e[n=i[r]]&&(e[n]=!(t[n]=e[n]))})})}function me(e){return e&&void 0!==e.getElementsByTagName&&e}for(e in f=oe.support={},r=oe.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},I=oe.setDocument=function(e){var t,n,i=e?e.ownerDocument||e:v;return i!==A&&9===i.nodeType&&i.documentElement&&(s=(A=i).documentElement,x=!r(A),v!==A&&(n=A.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",ie,!1):n.attachEvent&&n.attachEvent("onunload",ie)),f.attributes=le(function(e){return e.className="i",!e.getAttribute("className")}),f.getElementsByTagName=le(function(e){return e.appendChild(A.createComment("")),!e.getElementsByTagName("*").length}),f.getElementsByClassName=J.test(A.getElementsByClassName),f.getById=le(function(e){return s.appendChild(e).id=E,!A.getElementsByName||!A.getElementsByName(E).length}),f.getById?(b.filter.ID=function(e){var t=e.replace($,ee);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if(void 0!==t.getElementById&&x){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace($,ee);return function(e){var t=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if(void 0!==t.getElementById&&x){var n,i,r,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(r=t.getElementsByName(e),i=0;o=r[i++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=f.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):f.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],r=0,o=t.getElementsByTagName(e);if("*"!==e)return o;for(;n=o[r++];)1===n.nodeType&&i.push(n);return i},b.find.CLASS=f.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&x)return t.getElementsByClassName(e)},a=[],g=[],(f.qsa=J.test(A.querySelectorAll))&&(le(function(e){s.appendChild(e).innerHTML="<a id='"+E+"'></a><select id='"+E+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+F+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\["+F+"*(?:value|"+N+")"),e.querySelectorAll("[id~="+E+"-]").length||g.push("~="),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+E+"+*").length||g.push(".#.+[+~]")}),le(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=A.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name"+F+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),s.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")})),(f.matchesSelector=J.test(u=s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.oMatchesSelector||s.msMatchesSelector))&&le(function(e){f.disconnectedMatch=u.call(e,"*"),u.call(e,"[s!='']:x"),a.push("!=",W)}),g=g.length&&new RegExp(g.join("|")),a=a.length&&new RegExp(a.join("|")),t=J.test(s.compareDocumentPosition),_=t||J.test(s.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},T=t?function(e,t){if(e===t)return c=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!f.sortDetached&&t.compareDocumentPosition(e)===n?e===A||e.ownerDocument===v&&_(v,e)?-1:t===A||t.ownerDocument===v&&_(v,t)?1:l?R(l,e)-R(l,t):0:4&n?-1:1)}:function(e,t){if(e===t)return c=!0,0;var n,i=0,r=e.parentNode,o=t.parentNode,s=[e],a=[t];if(!r||!o)return e===A?-1:t===A?1:r?-1:o?1:l?R(l,e)-R(l,t):0;if(r===o)return ue(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)a.unshift(n);for(;s[i]===a[i];)i++;return i?ue(s[i],a[i]):s[i]===v?-1:a[i]===v?1:0}),A},oe.matches=function(e,t){return oe(e,null,null,t)},oe.matchesSelector=function(e,t){if((e.ownerDocument||e)!==A&&I(e),t=t.replace(V,"='$1']"),f.matchesSelector&&x&&!B[t+" "]&&(!a||!a.test(t))&&(!g||!g.test(t)))try{var n=u.call(e,t);if(n||f.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){}return 0<oe(t,A,null,[e]).length},oe.contains=function(e,t){return(e.ownerDocument||e)!==A&&I(e),_(e,t)},oe.attr=function(e,t){(e.ownerDocument||e)!==A&&I(e);var n=b.attrHandle[t.toLowerCase()],i=n&&S.call(b.attrHandle,t.toLowerCase())?n(e,t,!x):void 0;return void 0!==i?i:f.attributes||!x?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},oe.escape=function(e){return(e+"").replace(te,ne)},oe.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},oe.uniqueSort=function(e){var t,n=[],i=0,r=0;if(c=!f.detectDuplicates,l=!f.sortStable&&e.slice(0),e.sort(T),c){for(;t=e[r++];)t===e[r]&&(i=n.push(r));for(;i--;)e.splice(n[i],1)}return l=null,e},o=oe.getText=function(e){var t,n="",i=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[i++];)n+=o(t);return n},(b=oe.selectors={cacheLength:50,createPseudo:ae,match:j,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace($,ee),e[3]=(e[3]||e[4]||e[5]||"").replace($,ee),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||oe.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&oe.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return j.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=p(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace($,ee).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=d[e+" "];return t||(t=new RegExp("(^|"+F+")"+e+"("+F+"|$)"))&&d(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,i,r){return function(e){var t=oe.attr(e,n);return null==t?"!="===i:!i||(t+="","="===i?t===r:"!="===i?t!==r:"^="===i?r&&0===t.indexOf(r):"*="===i?r&&-1<t.indexOf(r):"$="===i?r&&t.slice(-r.length)===r:"~="===i?-1<(" "+t.replace(Q," ")+" ").indexOf(r):"|="===i&&(t===r||t.slice(0,r.length+1)===r+"-"))}},CHILD:function(p,e,t,m,g){var _="nth"!==p.slice(0,3),v="last"!==p.slice(-4),y="of-type"===e;return 1===m&&0===g?function(e){return!!e.parentNode}:function(e,t,n){var i,r,o,s,a,l,c=_!==v?"nextSibling":"previousSibling",u=e.parentNode,h=y&&e.nodeName.toLowerCase(),d=!n&&!y,f=!1;if(u){if(_){for(;c;){for(s=e;s=s[c];)if(y?s.nodeName.toLowerCase()===h:1===s.nodeType)return!1;l=c="only"===p&&!l&&"nextSibling"}return!0}if(l=[v?u.firstChild:u.lastChild],v&&d){for(f=(a=(i=(r=(o=(s=u)[E]||(s[E]={}))[s.uniqueID]||(o[s.uniqueID]={}))[p]||[])[0]===w&&i[1])&&i[2],s=a&&u.childNodes[a];s=++a&&s&&s[c]||(f=a=0)||l.pop();)if(1===s.nodeType&&++f&&s===e){r[p]=[w,a,f];break}}else if(d&&(f=a=(i=(r=(o=(s=e)[E]||(s[E]={}))[s.uniqueID]||(o[s.uniqueID]={}))[p]||[])[0]===w&&i[1]),!1===f)for(;(s=++a&&s&&s[c]||(f=a=0)||l.pop())&&((y?s.nodeName.toLowerCase()!==h:1!==s.nodeType)||!++f||(d&&((r=(o=s[E]||(s[E]={}))[s.uniqueID]||(o[s.uniqueID]={}))[p]=[w,f]),s!==e)););return(f-=g)===m||f%m==0&&0<=f/m}}},PSEUDO:function(e,o){var t,s=b.pseudos[e]||b.setFilters[e.toLowerCase()]||oe.error("unsupported pseudo: "+e);return s[E]?s(o):1<s.length?(t=[e,e,"",o],b.setFilters.hasOwnProperty(e.toLowerCase())?ae(function(e,t){for(var n,i=s(e,o),r=i.length;r--;)e[n=R(e,i[r])]=!(t[n]=i[r])}):function(e){return s(e,0,t)}):s}},pseudos:{not:ae(function(e){var i=[],r=[],a=h(e.replace(M,"$1"));return a[E]?ae(function(e,t,n,i){for(var r,o=a(e,null,i,[]),s=e.length;s--;)(r=o[s])&&(e[s]=!(t[s]=r))}):function(e,t,n){return i[0]=e,a(i,null,n,r),i[0]=null,!r.pop()}}),has:ae(function(t){return function(e){return 0<oe(t,e).length}}),contains:ae(function(t){return t=t.replace($,ee),function(e){return-1<(e.textContent||e.innerText||o(e)).indexOf(t)}}),lang:ae(function(n){return P.test(n||"")||oe.error("unsupported lang: "+n),n=n.replace($,ee).toLowerCase(),function(e){var t;do{if(t=x?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=n.location&&n.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===s},focus:function(e){return e===A.activeElement&&(!A.hasFocus||A.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:fe(!1),disabled:fe(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!b.pseudos.empty(e)},header:function(e){return z.test(e.nodeName)},input:function(e){return Y.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:pe(function(){return[0]}),last:pe(function(e,t){return[t-1]}),eq:pe(function(e,t,n){return[n<0?n+t:n]}),even:pe(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:pe(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:pe(function(e,t,n){for(var i=n<0?n+t:n;0<=--i;)e.push(i);return e}),gt:pe(function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e})}}).pseudos.nth=b.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})b.pseudos[e]=he(e);for(e in{submit:!0,reset:!0})b.pseudos[e]=de(e);function ge(){}function _e(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function ve(a,e,t){var l=e.dir,c=e.next,u=c||l,h=t&&"parentNode"===u,d=i++;return e.first?function(e,t,n){for(;e=e[l];)if(1===e.nodeType||h)return a(e,t,n);return!1}:function(e,t,n){var i,r,o,s=[w,d];if(n){for(;e=e[l];)if((1===e.nodeType||h)&&a(e,t,n))return!0}else for(;e=e[l];)if(1===e.nodeType||h)if(r=(o=e[E]||(e[E]={}))[e.uniqueID]||(o[e.uniqueID]={}),c&&c===e.nodeName.toLowerCase())e=e[l]||e;else{if((i=r[u])&&i[0]===w&&i[1]===d)return s[2]=i[2];if((r[u]=s)[2]=a(e,t,n))return!0}return!1}}function ye(r){return 1<r.length?function(e,t,n){for(var i=r.length;i--;)if(!r[i](e,t,n))return!1;return!0}:r[0]}function be(e,t,n,i,r){for(var o,s=[],a=0,l=e.length,c=null!=t;a<l;a++)(o=e[a])&&(n&&!n(o,i,r)||(s.push(o),c&&t.push(a)));return s}function Ce(f,p,m,g,_,e){return g&&!g[E]&&(g=Ce(g)),_&&!_[E]&&(_=Ce(_,e)),ae(function(e,t,n,i){var r,o,s,a=[],l=[],c=t.length,u=e||function(e,t,n){for(var i=0,r=t.length;i<r;i++)oe(e,t[i],n);return n}(p||"*",n.nodeType?[n]:n,[]),h=!f||!e&&p?u:be(u,a,f,n,i),d=m?_||(e?f:c||g)?[]:t:h;if(m&&m(h,d,n,i),g)for(r=be(d,l),g(r,[],n,i),o=r.length;o--;)(s=r[o])&&(d[l[o]]=!(h[l[o]]=s));if(e){if(_||f){if(_){for(r=[],o=d.length;o--;)(s=d[o])&&r.push(h[o]=s);_(null,d=[],r,i)}for(o=d.length;o--;)(s=d[o])&&-1<(r=_?R(e,s):a[o])&&(e[r]=!(t[r]=s))}}else d=be(d===t?d.splice(c,d.length):d),_?_(null,t,d,i):G.apply(t,d)})}function Ie(e){for(var r,t,n,i=e.length,o=b.relative[e[0].type],s=o||b.relative[" "],a=o?1:0,l=ve(function(e){return e===r},s,!0),c=ve(function(e){return-1<R(r,e)},s,!0),u=[function(e,t,n){var i=!o&&(n||t!==C)||((r=t).nodeType?l(e,t,n):c(e,t,n));return r=null,i}];a<i;a++)if(t=b.relative[e[a].type])u=[ve(ye(u),t)];else{if((t=b.filter[e[a].type].apply(null,e[a].matches))[E]){for(n=++a;n<i&&!b.relative[e[n].type];n++);return Ce(1<a&&ye(u),1<a&&_e(e.slice(0,a-1).concat({value:" "===e[a-2].type?"*":""})).replace(M,"$1"),t,a<n&&Ie(e.slice(a,n)),n<i&&Ie(e=e.slice(n)),n<i&&_e(e))}u.push(t)}return ye(u)}return ge.prototype=b.filters=b.pseudos,b.setFilters=new ge,p=oe.tokenize=function(e,t){var n,i,r,o,s,a,l,c=y[e+" "];if(c)return t?0:c.slice(0);for(s=e,a=[],l=b.preFilter;s;){for(o in n&&!(i=Z.exec(s))||(i&&(s=s.slice(i[0].length)||s),a.push(r=[])),n=!1,(i=U.exec(s))&&(n=i.shift(),r.push({value:n,type:i[0].replace(M," ")}),s=s.slice(n.length)),b.filter)!(i=j[o].exec(s))||l[o]&&!(i=l[o](i))||(n=i.shift(),r.push({value:n,type:o,matches:i}),s=s.slice(n.length));if(!n)break}return t?s.length:s?oe.error(e):y(e,a).slice(0)},h=oe.compile=function(e,t){var n,g,_,v,y,i,r=[],o=[],s=B[e+" "];if(!s){for(t||(t=p(e)),n=t.length;n--;)(s=Ie(t[n]))[E]?r.push(s):o.push(s);(s=B(e,(g=o,v=0<(_=r).length,y=0<g.length,i=function(e,t,n,i,r){var o,s,a,l=0,c="0",u=e&&[],h=[],d=C,f=e||y&&b.find.TAG("*",r),p=w+=null==d?1:Math.random()||.1,m=f.length;for(r&&(C=t===A||t||r);c!==m&&null!=(o=f[c]);c++){if(y&&o){for(s=0,t||o.ownerDocument===A||(I(o),n=!x);a=g[s++];)if(a(o,t||A,n)){i.push(o);break}r&&(w=p)}v&&((o=!a&&o)&&l--,e&&u.push(o))}if(l+=c,v&&c!==l){for(s=0;a=_[s++];)a(u,h,t,n);if(e){if(0<l)for(;c--;)u[c]||h[c]||(h[c]=k.call(i));h=be(h)}G.apply(i,h),r&&!e&&0<h.length&&1<l+_.length&&oe.uniqueSort(i)}return r&&(w=p,C=d),u},v?ae(i):i))).selector=e}return s},m=oe.select=function(e,t,n,i){var r,o,s,a,l,c="function"==typeof e&&e,u=!i&&p(e=c.selector||e);if(n=n||[],1===u.length){if(2<(o=u[0]=u[0].slice(0)).length&&"ID"===(s=o[0]).type&&9===t.nodeType&&x&&b.relative[o[1].type]){if(!(t=(b.find.ID(s.matches[0].replace($,ee),t)||[])[0]))return n;c&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(r=j.needsContext.test(e)?0:o.length;r--&&(s=o[r],!b.relative[a=s.type]);)if((l=b.find[a])&&(i=l(s.matches[0].replace($,ee),q.test(o[0].type)&&me(t.parentNode)||t))){if(o.splice(r,1),!(e=i.length&&_e(o)))return G.apply(n,i),n;break}}return(c||h(e,u))(i,t,!x,n,!t||q.test(e)&&me(t.parentNode)||t),n},f.sortStable=E.split("").sort(T).join("")===E,f.detectDuplicates=!!c,I(),f.sortDetached=le(function(e){return 1&e.compareDocumentPosition(A.createElement("fieldset"))}),le(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||ce("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),f.attributes&&le(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||ce("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),le(function(e){return null==e.getAttribute("disabled")})||ce(N,function(e,t,n){var i;if(!n)return!0===e[t]?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null}),oe}(A);E.find=f,E.expr=f.selectors,E.expr[":"]=E.expr.pseudos,E.uniqueSort=E.unique=f.uniqueSort,E.text=f.getText,E.isXMLDoc=f.isXML,E.contains=f.contains,E.escapeSelector=f.escape;var p=function(e,t,n){for(var i=[],r=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&E(e).is(n))break;i.push(e)}return i},I=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},w=E.expr.match.needsContext;function B(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var T=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function S(e,n,i){return v(n)?E.grep(e,function(e,t){return!!n.call(e,t,e)!==i}):n.nodeType?E.grep(e,function(e){return e===n!==i}):"string"!=typeof n?E.grep(e,function(e){return-1<r.call(n,e)!==i}):E.filter(n,e,i)}E.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?E.find.matchesSelector(i,e)?[i]:[]:E.find.matches(e,E.grep(t,function(e){return 1===e.nodeType}))},E.fn.extend({find:function(e){var t,n,i=this.length,r=this;if("string"!=typeof e)return this.pushStack(E(e).filter(function(){for(t=0;t<i;t++)if(E.contains(r[t],this))return!0}));for(n=this.pushStack([]),t=0;t<i;t++)E.find(e,r[t],n);return 1<i?E.uniqueSort(n):n},filter:function(e){return this.pushStack(S(this,e||[],!1))},not:function(e){return this.pushStack(S(this,e||[],!0))},is:function(e){return!!S(this,"string"==typeof e&&w.test(e)?E(e):e||[],!1).length}});var k,L=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(E.fn.init=function(e,t,n){var i,r;if(!e)return this;if(n=n||k,"string"!=typeof e)return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(E):E.makeArray(e,this);if(!(i="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:L.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof E?t[0]:t,E.merge(this,E.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:x,!0)),T.test(i[1])&&E.isPlainObject(t))for(i in t)v(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(r=x.getElementById(i[2]))&&(this[0]=r,this.length=1),this}).prototype=E.fn,k=E(x);var G=/^(?:parents|prev(?:Until|All))/,D={children:!0,contents:!0,next:!0,prev:!0};function R(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}E.fn.extend({has:function(e){var t=E(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(E.contains(this,t[e]))return!0})},closest:function(e,t){var n,i=0,r=this.length,o=[],s="string"!=typeof e&&E(e);if(!w.test(e))for(;i<r;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(s?-1<s.index(n):1===n.nodeType&&E.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?E.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?r.call(E(e),this[0]):r.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(E.uniqueSort(E.merge(this.get(),E(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),E.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return p(e,"parentNode")},parentsUntil:function(e,t,n){return p(e,"parentNode",n)},next:function(e){return R(e,"nextSibling")},prev:function(e){return R(e,"previousSibling")},nextAll:function(e){return p(e,"nextSibling")},prevAll:function(e){return p(e,"previousSibling")},nextUntil:function(e,t,n){return p(e,"nextSibling",n)},prevUntil:function(e,t,n){return p(e,"previousSibling",n)},siblings:function(e){return I((e.parentNode||{}).firstChild,e)},children:function(e){return I(e.firstChild)},contents:function(e){return B(e,"iframe")?e.contentDocument:(B(e,"template")&&(e=e.content||e),E.merge([],e.childNodes))}},function(i,r){E.fn[i]=function(e,t){var n=E.map(this,r,e);return"Until"!==i.slice(-5)&&(t=e),t&&"string"==typeof t&&(n=E.filter(t,n)),1<this.length&&(D[i]||E.uniqueSort(n),G.test(i)&&n.reverse()),this.pushStack(n)}});var N=/[^\x20\t\r\n\f]+/g;function F(e){return e}function H(e){throw e}function O(e,t,n,i){var r;try{e&&v(r=e.promise)?r.call(e).done(t).fail(n):e&&v(r=e.then)?r.call(e,t,n):t.apply(void 0,[e].slice(i))}catch(e){n.apply(void 0,[e])}}E.Callbacks=function(i){var e,n;i="string"==typeof i?(e=i,n={},E.each(e.match(N)||[],function(e,t){n[t]=!0}),n):E.extend({},i);var r,t,o,s,a=[],l=[],c=-1,u=function(){for(s=s||i.once,o=r=!0;l.length;c=-1)for(t=l.shift();++c<a.length;)!1===a[c].apply(t[0],t[1])&&i.stopOnFalse&&(c=a.length,t=!1);i.memory||(t=!1),r=!1,s&&(a=t?[]:"")},h={add:function(){return a&&(t&&!r&&(c=a.length-1,l.push(t)),function n(e){E.each(e,function(e,t){v(t)?i.unique&&h.has(t)||a.push(t):t&&t.length&&"string"!==C(t)&&n(t)})}(arguments),t&&!r&&u()),this},remove:function(){return E.each(arguments,function(e,t){for(var n;-1<(n=E.inArray(t,a,n));)a.splice(n,1),n<=c&&c--}),this},has:function(e){return e?-1<E.inArray(e,a):0<a.length},empty:function(){return a&&(a=[]),this},disable:function(){return s=l=[],a=t="",this},disabled:function(){return!a},lock:function(){return s=l=[],t||r||(a=t=""),this},locked:function(){return!!s},fireWith:function(e,t){return s||(t=[e,(t=t||[]).slice?t.slice():t],l.push(t),r||u()),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!o}};return h},E.extend({Deferred:function(e){var o=[["notify","progress",E.Callbacks("memory"),E.Callbacks("memory"),2],["resolve","done",E.Callbacks("once memory"),E.Callbacks("once memory"),0,"resolved"],["reject","fail",E.Callbacks("once memory"),E.Callbacks("once memory"),1,"rejected"]],r="pending",s={state:function(){return r},always:function(){return a.done(arguments).fail(arguments),this},catch:function(e){return s.then(null,e)},pipe:function(){var r=arguments;return E.Deferred(function(i){E.each(o,function(e,t){var n=v(r[t[4]])&&r[t[4]];a[t[1]](function(){var e=n&&n.apply(this,arguments);e&&v(e.promise)?e.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[t[0]+"With"](this,n?[e]:arguments)})}),r=null}).promise()},then:function(t,n,i){var l=0;function c(r,o,s,a){return function(){var n=this,i=arguments,e=function(){var e,t;if(!(r<l)){if((e=s.apply(n,i))===o.promise())throw new TypeError("Thenable self-resolution");t=e&&("object"==typeof e||"function"==typeof e)&&e.then,v(t)?a?t.call(e,c(l,o,F,a),c(l,o,H,a)):(l++,t.call(e,c(l,o,F,a),c(l,o,H,a),c(l,o,F,o.notifyWith))):(s!==F&&(n=void 0,i=[e]),(a||o.resolveWith)(n,i))}},t=a?e:function(){try{e()}catch(e){E.Deferred.exceptionHook&&E.Deferred.exceptionHook(e,t.stackTrace),l<=r+1&&(s!==H&&(n=void 0,i=[e]),o.rejectWith(n,i))}};r?t():(E.Deferred.getStackHook&&(t.stackTrace=E.Deferred.getStackHook()),A.setTimeout(t))}}return E.Deferred(function(e){o[0][3].add(c(0,e,v(i)?i:F,e.notifyWith)),o[1][3].add(c(0,e,v(t)?t:F)),o[2][3].add(c(0,e,v(n)?n:H))}).promise()},promise:function(e){return null!=e?E.extend(e,s):s}},a={};return E.each(o,function(e,t){var n=t[2],i=t[5];s[t[1]]=n.add,i&&n.add(function(){r=i},o[3-e][2].disable,o[3-e][3].disable,o[0][2].lock,o[0][3].lock),n.add(t[3].fire),a[t[0]]=function(){return a[t[0]+"With"](this===a?void 0:this,arguments),this},a[t[0]+"With"]=n.fireWith}),s.promise(a),e&&e.call(a,a),a},when:function(e){var n=arguments.length,t=n,i=Array(t),r=a.call(arguments),o=E.Deferred(),s=function(t){return function(e){i[t]=this,r[t]=1<arguments.length?a.call(arguments):e,--n||o.resolveWith(i,r)}};if(n<=1&&(O(e,o.done(s(t)).resolve,o.reject,!n),"pending"===o.state()||v(r[t]&&r[t].then)))return o.then();for(;t--;)O(r[t],s(t),o.reject);return o.promise()}});var W=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;E.Deferred.exceptionHook=function(e,t){A.console&&A.console.warn&&e&&W.test(e.name)&&A.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},E.readyException=function(e){A.setTimeout(function(){throw e})};var Q=E.Deferred();function M(){x.removeEventListener("DOMContentLoaded",M),A.removeEventListener("load",M),E.ready()}E.fn.ready=function(e){return Q.then(e).catch(function(e){E.readyException(e)}),this},E.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--E.readyWait:E.isReady)||(E.isReady=!0)!==e&&0<--E.readyWait||Q.resolveWith(x,[E])}}),E.ready.then=Q.then,"complete"===x.readyState||"loading"!==x.readyState&&!x.documentElement.doScroll?A.setTimeout(E.ready):(x.addEventListener("DOMContentLoaded",M),A.addEventListener("load",M));var Z=function(e,t,n,i,r,o,s){var a=0,l=e.length,c=null==n;if("object"===C(n))for(a in r=!0,n)Z(e,t,a,n[a],!0,o,s);else if(void 0!==i&&(r=!0,v(i)||(s=!0),c&&(t=s?(t.call(e,i),null):(c=t,function(e,t,n){return c.call(E(e),n)})),t))for(;a<l;a++)t(e[a],n,s?i:i.call(e[a],a,t(e[a],n)));return r?e:c?t.call(e):l?t(e[0],n):o},U=/^-ms-/,V=/-([a-z])/g;function X(e,t){return t.toUpperCase()}function P(e){return e.replace(U,"ms-").replace(V,X)}var j=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function Y(){this.expando=E.expando+Y.uid++}Y.uid=1,Y.prototype={cache:function(e){var t=e[this.expando];return t||(t={},j(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var i,r=this.cache(e);if("string"==typeof t)r[P(t)]=n;else for(i in t)r[P(i)]=t[i];return r},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][P(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,i=e[this.expando];if(void 0!==i){if(void 0!==t){n=(t=Array.isArray(t)?t.map(P):(t=P(t))in i?[t]:t.match(N)||[]).length;for(;n--;)delete i[t[n]]}(void 0===t||E.isEmptyObject(i))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!E.isEmptyObject(t)}};var z=new Y,J=new Y,K=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,q=/[A-Z]/g;function $(e,t,n){var i,r;if(void 0===n&&1===e.nodeType)if(i="data-"+t.replace(q,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(i))){try{n="true"===(r=n)||"false"!==r&&("null"===r?null:r===+r+""?+r:K.test(r)?JSON.parse(r):r)}catch(e){}J.set(e,t,n)}else n=void 0;return n}E.extend({hasData:function(e){return J.hasData(e)||z.hasData(e)},data:function(e,t,n){return J.access(e,t,n)},removeData:function(e,t){J.remove(e,t)},_data:function(e,t,n){return z.access(e,t,n)},_removeData:function(e,t){z.remove(e,t)}}),E.fn.extend({data:function(n,e){var t,i,r,o=this[0],s=o&&o.attributes;if(void 0!==n)return"object"==typeof n?this.each(function(){J.set(this,n)}):Z(this,function(e){var t;if(o&&void 0===e)return void 0!==(t=J.get(o,n))?t:void 0!==(t=$(o,n))?t:void 0;this.each(function(){J.set(this,n,e)})},null,e,1<arguments.length,null,!0);if(this.length&&(r=J.get(o),1===o.nodeType&&!z.get(o,"hasDataAttrs"))){for(t=s.length;t--;)s[t]&&0===(i=s[t].name).indexOf("data-")&&(i=P(i.slice(5)),$(o,i,r[i]));z.set(o,"hasDataAttrs",!0)}return r},removeData:function(e){return this.each(function(){J.remove(this,e)})}}),E.extend({queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=z.get(e,t),n&&(!i||Array.isArray(n)?i=z.access(e,t,E.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=E.queue(e,t),i=n.length,r=n.shift(),o=E._queueHooks(e,t);"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===t&&n.unshift("inprogress"),delete o.stop,r.call(e,function(){E.dequeue(e,t)},o)),!i&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return z.get(e,n)||z.access(e,n,{empty:E.Callbacks("once memory").add(function(){z.remove(e,[t+"queue",n])})})}}),E.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?E.queue(this[0],t):void 0===n?this:this.each(function(){var e=E.queue(this,t,n);E._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&E.dequeue(this,t)})},dequeue:function(e){return this.each(function(){E.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,r=E.Deferred(),o=this,s=this.length,a=function(){--i||r.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)(n=z.get(o[s],e+"queueHooks"))&&n.empty&&(i++,n.empty.add(a));return a(),r.promise(t)}});var ee=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,te=new RegExp("^(?:([+-])=|)("+ee+")([a-z%]*)$","i"),ne=["Top","Right","Bottom","Left"],ie=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&E.contains(e.ownerDocument,e)&&"none"===E.css(e,"display")},re=function(e,t,n,i){var r,o,s={};for(o in t)s[o]=e.style[o],e.style[o]=t[o];for(o in r=n.apply(e,i||[]),t)e.style[o]=s[o];return r};function oe(e,t,n,i){var r,o,s=20,a=i?function(){return i.cur()}:function(){return E.css(e,t,"")},l=a(),c=n&&n[3]||(E.cssNumber[t]?"":"px"),u=(E.cssNumber[t]||"px"!==c&&+l)&&te.exec(E.css(e,t));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;s--;)E.style(e,t,u+c),(1-o)*(1-(o=a()/l||.5))<=0&&(s=0),u/=o;u*=2,E.style(e,t,u+c),n=n||[]}return n&&(u=+u||+l||0,r=n[1]?u+(n[1]+1)*n[2]:+n[2],i&&(i.unit=c,i.start=u,i.end=r)),r}var se={};function ae(e,t){for(var n,i,r,o,s,a,l,c=[],u=0,h=e.length;u<h;u++)(i=e[u]).style&&(n=i.style.display,t?("none"===n&&(c[u]=z.get(i,"display")||null,c[u]||(i.style.display="")),""===i.style.display&&ie(i)&&(c[u]=(l=s=o=void 0,s=(r=i).ownerDocument,a=r.nodeName,(l=se[a])||(o=s.body.appendChild(s.createElement(a)),l=E.css(o,"display"),o.parentNode.removeChild(o),"none"===l&&(l="block"),se[a]=l)))):"none"!==n&&(c[u]="none",z.set(i,"display",n)));for(u=0;u<h;u++)null!=c[u]&&(e[u].style.display=c[u]);return e}E.fn.extend({show:function(){return ae(this,!0)},hide:function(){return ae(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ie(this)?E(this).show():E(this).hide()})}});var le=/^(?:checkbox|radio)$/i,ce=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,ue=/^$|^module$|\/(?:java|ecma)script/i,he={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function de(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&B(e,t)?E.merge([e],n):n}function fe(e,t){for(var n=0,i=e.length;n<i;n++)z.set(e[n],"globalEval",!t||z.get(t[n],"globalEval"))}he.optgroup=he.option,he.tbody=he.tfoot=he.colgroup=he.caption=he.thead,he.th=he.td;var pe,me,ge=/<|&#?\w+;/;function _e(e,t,n,i,r){for(var o,s,a,l,c,u,h=t.createDocumentFragment(),d=[],f=0,p=e.length;f<p;f++)if((o=e[f])||0===o)if("object"===C(o))E.merge(d,o.nodeType?[o]:o);else if(ge.test(o)){for(s=s||h.appendChild(t.createElement("div")),a=(ce.exec(o)||["",""])[1].toLowerCase(),l=he[a]||he._default,s.innerHTML=l[1]+E.htmlPrefilter(o)+l[2],u=l[0];u--;)s=s.lastChild;E.merge(d,s.childNodes),(s=h.firstChild).textContent=""}else d.push(t.createTextNode(o));for(h.textContent="",f=0;o=d[f++];)if(i&&-1<E.inArray(o,i))r&&r.push(o);else if(c=E.contains(o.ownerDocument,o),s=de(h.appendChild(o),"script"),c&&fe(s),n)for(u=0;o=s[u++];)ue.test(o.type||"")&&n.push(o);return h}pe=x.createDocumentFragment().appendChild(x.createElement("div")),(me=x.createElement("input")).setAttribute("type","radio"),me.setAttribute("checked","checked"),me.setAttribute("name","t"),pe.appendChild(me),_.checkClone=pe.cloneNode(!0).cloneNode(!0).lastChild.checked,pe.innerHTML="<textarea>x</textarea>",_.noCloneChecked=!!pe.cloneNode(!0).lastChild.defaultValue;var ve=x.documentElement,ye=/^key/,be=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ce=/^([^.]*)(?:\.(.+)|)/;function Ie(){return!0}function Ae(){return!1}function xe(){try{return x.activeElement}catch(e){}}function Ee(e,t,n,i,r,o){var s,a;if("object"==typeof t){for(a in"string"!=typeof n&&(i=i||n,n=void 0),t)Ee(e,a,n,i,t[a],o);return e}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=Ae;else if(!r)return e;return 1===o&&(s=r,(r=function(e){return E().off(e),s.apply(this,arguments)}).guid=s.guid||(s.guid=E.guid++)),e.each(function(){E.event.add(this,t,r,i,n)})}E.event={global:{},add:function(t,e,n,i,r){var o,s,a,l,c,u,h,d,f,p,m,g=z.get(t);if(g)for(n.handler&&(n=(o=n).handler,r=o.selector),r&&E.find.matchesSelector(ve,r),n.guid||(n.guid=E.guid++),(l=g.events)||(l=g.events={}),(s=g.handle)||(s=g.handle=function(e){return void 0!==E&&E.event.triggered!==e.type?E.event.dispatch.apply(t,arguments):void 0}),c=(e=(e||"").match(N)||[""]).length;c--;)f=m=(a=Ce.exec(e[c])||[])[1],p=(a[2]||"").split(".").sort(),f&&(h=E.event.special[f]||{},f=(r?h.delegateType:h.bindType)||f,h=E.event.special[f]||{},u=E.extend({type:f,origType:m,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&E.expr.match.needsContext.test(r),namespace:p.join(".")},o),(d=l[f])||((d=l[f]=[]).delegateCount=0,h.setup&&!1!==h.setup.call(t,i,p,s)||t.addEventListener&&t.addEventListener(f,s)),h.add&&(h.add.call(t,u),u.handler.guid||(u.handler.guid=n.guid)),r?d.splice(d.delegateCount++,0,u):d.push(u),E.event.global[f]=!0)},remove:function(e,t,n,i,r){var o,s,a,l,c,u,h,d,f,p,m,g=z.hasData(e)&&z.get(e);if(g&&(l=g.events)){for(c=(t=(t||"").match(N)||[""]).length;c--;)if(f=m=(a=Ce.exec(t[c])||[])[1],p=(a[2]||"").split(".").sort(),f){for(h=E.event.special[f]||{},d=l[f=(i?h.delegateType:h.bindType)||f]||[],a=a[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=d.length;o--;)u=d[o],!r&&m!==u.origType||n&&n.guid!==u.guid||a&&!a.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(d.splice(o,1),u.selector&&d.delegateCount--,h.remove&&h.remove.call(e,u));s&&!d.length&&(h.teardown&&!1!==h.teardown.call(e,p,g.handle)||E.removeEvent(e,f,g.handle),delete l[f])}else for(f in l)E.event.remove(e,f+t[c],n,i,!0);E.isEmptyObject(l)&&z.remove(e,"handle events")}},dispatch:function(e){var t,n,i,r,o,s,a=E.event.fix(e),l=new Array(arguments.length),c=(z.get(this,"events")||{})[a.type]||[],u=E.event.special[a.type]||{};for(l[0]=a,t=1;t<arguments.length;t++)l[t]=arguments[t];if(a.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,a)){for(s=E.event.handlers.call(this,a,c),t=0;(r=s[t++])&&!a.isPropagationStopped();)for(a.currentTarget=r.elem,n=0;(o=r.handlers[n++])&&!a.isImmediatePropagationStopped();)a.rnamespace&&!a.rnamespace.test(o.namespace)||(a.handleObj=o,a.data=o.data,void 0!==(i=((E.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,l))&&!1===(a.result=i)&&(a.preventDefault(),a.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,a),a.result}},handlers:function(e,t){var n,i,r,o,s,a=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&1<=e.button))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(o=[],s={},n=0;n<l;n++)void 0===s[r=(i=t[n]).selector+" "]&&(s[r]=i.needsContext?-1<E(r,this).index(c):E.find(r,this,null,[c]).length),s[r]&&o.push(i);o.length&&a.push({elem:c,handlers:o})}return c=this,l<t.length&&a.push({elem:c,handlers:t.slice(l)}),a},addProp:function(t,e){Object.defineProperty(E.Event.prototype,t,{enumerable:!0,configurable:!0,get:v(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(e){return e[E.expando]?e:new E.Event(e)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==xe()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===xe()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&B(this,"input"))return this.click(),!1},_default:function(e){return B(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},E.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},E.Event=function(e,t){if(!(this instanceof E.Event))return new E.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ie:Ae,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&E.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[E.expando]=!0},E.Event.prototype={constructor:E.Event,isDefaultPrevented:Ae,isPropagationStopped:Ae,isImmediatePropagationStopped:Ae,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ie,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ie,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ie,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},E.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&ye.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&be.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},E.event.addProp),E.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,r){E.event.special[e]={delegateType:r,bindType:r,handle:function(e){var t,n=e.relatedTarget,i=e.handleObj;return n&&(n===this||E.contains(this,n))||(e.type=i.origType,t=i.handler.apply(this,arguments),e.type=r),t}}}),E.fn.extend({on:function(e,t,n,i){return Ee(this,e,t,n,i)},one:function(e,t,n,i){return Ee(this,e,t,n,i,1)},off:function(e,t,n){var i,r;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,E(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"!=typeof e)return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Ae),this.each(function(){E.event.remove(this,e,n,t)});for(r in e)this.off(r,t,e[r]);return this}});var we=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,Be=/<script|<style|<link/i,Te=/checked\s*(?:[^=]|=\s*.checked.)/i,Se=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function ke(e,t){return B(e,"table")&&B(11!==t.nodeType?t:t.firstChild,"tr")&&E(e).children("tbody")[0]||e}function Le(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ge(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function De(e,t){var n,i,r,o,s,a,l,c;if(1===t.nodeType){if(z.hasData(e)&&(o=z.access(e),s=z.set(t,o),c=o.events))for(r in delete s.handle,s.events={},c)for(n=0,i=c[r].length;n<i;n++)E.event.add(t,r,c[r][n]);J.hasData(e)&&(a=J.access(e),l=E.extend({},a),J.set(t,l))}}function Re(n,i,r,o){i=m.apply([],i);var e,t,s,a,l,c,u=0,h=n.length,d=h-1,f=i[0],p=v(f);if(p||1<h&&"string"==typeof f&&!_.checkClone&&Te.test(f))return n.each(function(e){var t=n.eq(e);p&&(i[0]=f.call(this,e,t.html())),Re(t,i,r,o)});if(h&&(t=(e=_e(i,n[0].ownerDocument,!1,n,o)).firstChild,1===e.childNodes.length&&(e=t),t||o)){for(a=(s=E.map(de(e,"script"),Le)).length;u<h;u++)l=e,u!==d&&(l=E.clone(l,!0,!0),a&&E.merge(s,de(l,"script"))),r.call(n[u],l,u);if(a)for(c=s[s.length-1].ownerDocument,E.map(s,Ge),u=0;u<a;u++)l=s[u],ue.test(l.type||"")&&!z.access(l,"globalEval")&&E.contains(c,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?E._evalUrl&&E._evalUrl(l.src):b(l.textContent.replace(Se,""),c,l))}return n}function Ne(e,t,n){for(var i,r=t?E.filter(t,e):e,o=0;null!=(i=r[o]);o++)n||1!==i.nodeType||E.cleanData(de(i)),i.parentNode&&(n&&E.contains(i.ownerDocument,i)&&fe(de(i,"script")),i.parentNode.removeChild(i));return e}E.extend({htmlPrefilter:function(e){return e.replace(we,"<$1></$2>")},clone:function(e,t,n){var i,r,o,s,a,l,c,u=e.cloneNode(!0),h=E.contains(e.ownerDocument,e);if(!(_.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||E.isXMLDoc(e)))for(s=de(u),i=0,r=(o=de(e)).length;i<r;i++)a=o[i],l=s[i],void 0,"input"===(c=l.nodeName.toLowerCase())&&le.test(a.type)?l.checked=a.checked:"input"!==c&&"textarea"!==c||(l.defaultValue=a.defaultValue);if(t)if(n)for(o=o||de(e),s=s||de(u),i=0,r=o.length;i<r;i++)De(o[i],s[i]);else De(e,u);return 0<(s=de(u,"script")).length&&fe(s,!h&&de(e,"script")),u},cleanData:function(e){for(var t,n,i,r=E.event.special,o=0;void 0!==(n=e[o]);o++)if(j(n)){if(t=n[z.expando]){if(t.events)for(i in t.events)r[i]?E.event.remove(n,i):E.removeEvent(n,i,t.handle);n[z.expando]=void 0}n[J.expando]&&(n[J.expando]=void 0)}}}),E.fn.extend({detach:function(e){return Ne(this,e,!0)},remove:function(e){return Ne(this,e)},text:function(e){return Z(this,function(e){return void 0===e?E.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return Re(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||ke(this,e).appendChild(e)})},prepend:function(){return Re(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=ke(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Re(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Re(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(E.cleanData(de(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return E.clone(this,e,t)})},html:function(e){return Z(this,function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Be.test(e)&&!he[(ce.exec(e)||["",""])[1].toLowerCase()]){e=E.htmlPrefilter(e);try{for(;n<i;n++)1===(t=this[n]||{}).nodeType&&(E.cleanData(de(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return Re(this,arguments,function(e){var t=this.parentNode;E.inArray(this,n)<0&&(E.cleanData(de(this)),t&&t.replaceChild(e,this))},n)}}),E.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,s){E.fn[e]=function(e){for(var t,n=[],i=E(e),r=i.length-1,o=0;o<=r;o++)t=o===r?this:this.clone(!0),E(i[o])[s](t),l.apply(n,t.get());return this.pushStack(n)}});var Fe=new RegExp("^("+ee+")(?!px)[a-z%]+$","i"),He=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=A),t.getComputedStyle(e)},Oe=new RegExp(ne.join("|"),"i");function We(e,t,n){var i,r,o,s,a=e.style;return(n=n||He(e))&&(""!==(s=n.getPropertyValue(t)||n[t])||E.contains(e.ownerDocument,e)||(s=E.style(e,t)),!_.pixelBoxStyles()&&Fe.test(s)&&Oe.test(t)&&(i=a.width,r=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=n.width,a.width=i,a.minWidth=r,a.maxWidth=o)),void 0!==s?s+"":s}function Qe(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(l){a.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",l.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ve.appendChild(a).appendChild(l);var e=A.getComputedStyle(l);n="1%"!==e.top,s=12===t(e.marginLeft),l.style.right="60%",o=36===t(e.right),i=36===t(e.width),l.style.position="absolute",r=36===l.offsetWidth||"absolute",ve.removeChild(a),l=null}}function t(e){return Math.round(parseFloat(e))}var n,i,r,o,s,a=x.createElement("div"),l=x.createElement("div");l.style&&(l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",_.clearCloneStyle="content-box"===l.style.backgroundClip,E.extend(_,{boxSizingReliable:function(){return e(),i},pixelBoxStyles:function(){return e(),o},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),s},scrollboxSize:function(){return e(),r}}))}();var Me=/^(none|table(?!-c[ea]).+)/,Ze=/^--/,Ue={position:"absolute",visibility:"hidden",display:"block"},Ve={letterSpacing:"0",fontWeight:"400"},Xe=["Webkit","Moz","ms"],Pe=x.createElement("div").style;function je(e){var t=E.cssProps[e];return t||(t=E.cssProps[e]=function(e){if(e in Pe)return e;for(var t=e[0].toUpperCase()+e.slice(1),n=Xe.length;n--;)if((e=Xe[n]+t)in Pe)return e}(e)||e),t}function Ye(e,t,n){var i=te.exec(t);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):t}function ze(e,t,n,i,r,o){var s="width"===t?1:0,a=0,l=0;if(n===(i?"border":"content"))return 0;for(;s<4;s+=2)"margin"===n&&(l+=E.css(e,n+ne[s],!0,r)),i?("content"===n&&(l-=E.css(e,"padding"+ne[s],!0,r)),"margin"!==n&&(l-=E.css(e,"border"+ne[s]+"Width",!0,r))):(l+=E.css(e,"padding"+ne[s],!0,r),"padding"!==n?l+=E.css(e,"border"+ne[s]+"Width",!0,r):a+=E.css(e,"border"+ne[s]+"Width",!0,r));return!i&&0<=o&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-l-a-.5))),l}function Je(e,t,n){var i=He(e),r=We(e,t,i),o="border-box"===E.css(e,"boxSizing",!1,i),s=o;if(Fe.test(r)){if(!n)return r;r="auto"}return s=s&&(_.boxSizingReliable()||r===e.style[t]),("auto"===r||!parseFloat(r)&&"inline"===E.css(e,"display",!1,i))&&(r=e["offset"+t[0].toUpperCase()+t.slice(1)],s=!0),(r=parseFloat(r)||0)+ze(e,t,n||(o?"border":"content"),s,i,r)+"px"}function Ke(e,t,n,i,r){return new Ke.prototype.init(e,t,n,i,r)}E.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=We(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,o,s,a=P(t),l=Ze.test(t),c=e.style;if(l||(t=je(a)),s=E.cssHooks[t]||E.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(r=s.get(e,!1,i))?r:c[t];"string"===(o=typeof n)&&(r=te.exec(n))&&r[1]&&(n=oe(e,t,r),o="number"),null!=n&&n==n&&("number"===o&&(n+=r&&r[3]||(E.cssNumber[a]?"":"px")),_.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),s&&"set"in s&&void 0===(n=s.set(e,n,i))||(l?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,i){var r,o,s,a=P(t);return Ze.test(t)||(t=je(a)),(s=E.cssHooks[t]||E.cssHooks[a])&&"get"in s&&(r=s.get(e,!0,n)),void 0===r&&(r=We(e,t,i)),"normal"===r&&t in Ve&&(r=Ve[t]),""===n||n?(o=parseFloat(r),!0===n||isFinite(o)?o||0:r):r}}),E.each(["height","width"],function(e,a){E.cssHooks[a]={get:function(e,t,n){if(t)return!Me.test(E.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?Je(e,a,n):re(e,Ue,function(){return Je(e,a,n)})},set:function(e,t,n){var i,r=He(e),o="border-box"===E.css(e,"boxSizing",!1,r),s=n&&ze(e,a,n,o,r);return o&&_.scrollboxSize()===r.position&&(s-=Math.ceil(e["offset"+a[0].toUpperCase()+a.slice(1)]-parseFloat(r[a])-ze(e,a,"border",!1,r)-.5)),s&&(i=te.exec(t))&&"px"!==(i[3]||"px")&&(e.style[a]=t,t=E.css(e,a)),Ye(0,t,s)}}}),E.cssHooks.marginLeft=Qe(_.reliableMarginLeft,function(e,t){if(t)return(parseFloat(We(e,"marginLeft"))||e.getBoundingClientRect().left-re(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),E.each({margin:"",padding:"",border:"Width"},function(r,o){E.cssHooks[r+o]={expand:function(e){for(var t=0,n={},i="string"==typeof e?e.split(" "):[e];t<4;t++)n[r+ne[t]+o]=i[t]||i[t-2]||i[0];return n}},"margin"!==r&&(E.cssHooks[r+o].set=Ye)}),E.fn.extend({css:function(e,t){return Z(this,function(e,t,n){var i,r,o={},s=0;if(Array.isArray(t)){for(i=He(e),r=t.length;s<r;s++)o[t[s]]=E.css(e,t[s],!1,i);return o}return void 0!==n?E.style(e,t,n):E.css(e,t)},e,t,1<arguments.length)}}),((E.Tween=Ke).prototype={constructor:Ke,init:function(e,t,n,i,r,o){this.elem=e,this.prop=n,this.easing=r||E.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=o||(E.cssNumber[n]?"":"px")},cur:function(){var e=Ke.propHooks[this.prop];return e&&e.get?e.get(this):Ke.propHooks._default.get(this)},run:function(e){var t,n=Ke.propHooks[this.prop];return this.options.duration?this.pos=t=E.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Ke.propHooks._default.set(this),this}}).init.prototype=Ke.prototype,(Ke.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=E.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){E.fx.step[e.prop]?E.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[E.cssProps[e.prop]]&&!E.cssHooks[e.prop]?e.elem[e.prop]=e.now:E.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=Ke.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},E.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},E.fx=Ke.prototype.init,E.fx.step={};var qe,$e,et,tt,nt=/^(?:toggle|show|hide)$/,it=/queueHooks$/;function rt(){$e&&(!1===x.hidden&&A.requestAnimationFrame?A.requestAnimationFrame(rt):A.setTimeout(rt,E.fx.interval),E.fx.tick())}function ot(){return A.setTimeout(function(){qe=void 0}),qe=Date.now()}function st(e,t){var n,i=0,r={height:e};for(t=t?1:0;i<4;i+=2-t)r["margin"+(n=ne[i])]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function at(e,t,n){for(var i,r=(lt.tweeners[t]||[]).concat(lt.tweeners["*"]),o=0,s=r.length;o<s;o++)if(i=r[o].call(n,t,e))return i}function lt(o,e,t){var n,s,i=0,r=lt.prefilters.length,a=E.Deferred().always(function(){delete l.elem}),l=function(){if(s)return!1;for(var e=qe||ot(),t=Math.max(0,c.startTime+c.duration-e),n=1-(t/c.duration||0),i=0,r=c.tweens.length;i<r;i++)c.tweens[i].run(n);return a.notifyWith(o,[c,n,t]),n<1&&r?t:(r||a.notifyWith(o,[c,1,0]),a.resolveWith(o,[c]),!1)},c=a.promise({elem:o,props:E.extend({},e),opts:E.extend(!0,{specialEasing:{},easing:E.easing._default},t),originalProperties:e,originalOptions:t,startTime:qe||ot(),duration:t.duration,tweens:[],createTween:function(e,t){var n=E.Tween(o,c.opts,e,t,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(n),n},stop:function(e){var t=0,n=e?c.tweens.length:0;if(s)return this;for(s=!0;t<n;t++)c.tweens[t].run(1);return e?(a.notifyWith(o,[c,1,0]),a.resolveWith(o,[c,e])):a.rejectWith(o,[c,e]),this}}),u=c.props;for(!function(e,t){var n,i,r,o,s;for(n in e)if(r=t[i=P(n)],o=e[n],Array.isArray(o)&&(r=o[1],o=e[n]=o[0]),n!==i&&(e[i]=o,delete e[n]),(s=E.cssHooks[i])&&"expand"in s)for(n in o=s.expand(o),delete e[i],o)n in e||(e[n]=o[n],t[n]=r);else t[i]=r}(u,c.opts.specialEasing);i<r;i++)if(n=lt.prefilters[i].call(c,o,u,c.opts))return v(n.stop)&&(E._queueHooks(c.elem,c.opts.queue).stop=n.stop.bind(n)),n;return E.map(u,at,c),v(c.opts.start)&&c.opts.start.call(o,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),E.fx.timer(E.extend(l,{elem:o,anim:c,queue:c.opts.queue})),c}E.Animation=E.extend(lt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return oe(n.elem,e,te.exec(t),n),n}]},tweener:function(e,t){for(var n,i=0,r=(e=v(e)?(t=e,["*"]):e.match(N)).length;i<r;i++)n=e[i],lt.tweeners[n]=lt.tweeners[n]||[],lt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var i,r,o,s,a,l,c,u,h="width"in t||"height"in t,d=this,f={},p=e.style,m=e.nodeType&&ie(e),g=z.get(e,"fxshow");for(i in n.queue||(null==(s=E._queueHooks(e,"fx")).unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,d.always(function(){d.always(function(){s.unqueued--,E.queue(e,"fx").length||s.empty.fire()})})),t)if(r=t[i],nt.test(r)){if(delete t[i],o=o||"toggle"===r,r===(m?"hide":"show")){if("show"!==r||!g||void 0===g[i])continue;m=!0}f[i]=g&&g[i]||E.style(e,i)}if((l=!E.isEmptyObject(t))||!E.isEmptyObject(f))for(i in h&&1===e.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(c=g&&g.display)&&(c=z.get(e,"display")),"none"===(u=E.css(e,"display"))&&(c?u=c:(ae([e],!0),c=e.style.display||c,u=E.css(e,"display"),ae([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===E.css(e,"float")&&(l||(d.done(function(){p.display=c}),null==c&&(u=p.display,c="none"===u?"":u)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",d.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]})),l=!1,f)l||(g?"hidden"in g&&(m=g.hidden):g=z.access(e,"fxshow",{display:c}),o&&(g.hidden=!m),m&&ae([e],!0),d.done(function(){for(i in m||ae([e]),z.remove(e,"fxshow"),f)E.style(e,i,f[i])})),l=at(m?g[i]:0,i,d),i in g||(g[i]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?lt.prefilters.unshift(e):lt.prefilters.push(e)}}),E.speed=function(e,t,n){var i=e&&"object"==typeof e?E.extend({},e):{complete:n||!n&&t||v(e)&&e,duration:e,easing:n&&t||t&&!v(t)&&t};return E.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in E.fx.speeds?i.duration=E.fx.speeds[i.duration]:i.duration=E.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){v(i.old)&&i.old.call(this),i.queue&&E.dequeue(this,i.queue)},i},E.fn.extend({fadeTo:function(e,t,n,i){return this.filter(ie).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(t,e,n,i){var r=E.isEmptyObject(t),o=E.speed(e,n,i),s=function(){var e=lt(this,E.extend({},t),o);(r||z.get(this,"finish"))&&e.stop(!0)};return s.finish=s,r||!1===o.queue?this.each(s):this.queue(o.queue,s)},stop:function(r,e,o){var s=function(e){var t=e.stop;delete e.stop,t(o)};return"string"!=typeof r&&(o=e,e=r,r=void 0),e&&!1!==r&&this.queue(r||"fx",[]),this.each(function(){var e=!0,t=null!=r&&r+"queueHooks",n=E.timers,i=z.get(this);if(t)i[t]&&i[t].stop&&s(i[t]);else for(t in i)i[t]&&i[t].stop&&it.test(t)&&s(i[t]);for(t=n.length;t--;)n[t].elem!==this||null!=r&&n[t].queue!==r||(n[t].anim.stop(o),e=!1,n.splice(t,1));!e&&o||E.dequeue(this,r)})},finish:function(s){return!1!==s&&(s=s||"fx"),this.each(function(){var e,t=z.get(this),n=t[s+"queue"],i=t[s+"queueHooks"],r=E.timers,o=n?n.length:0;for(t.finish=!0,E.queue(this,s,[]),i&&i.stop&&i.stop.call(this,!0),e=r.length;e--;)r[e].elem===this&&r[e].queue===s&&(r[e].anim.stop(!0),r.splice(e,1));for(e=0;e<o;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),E.each(["toggle","show","hide"],function(e,i){var r=E.fn[i];E.fn[i]=function(e,t,n){return null==e||"boolean"==typeof e?r.apply(this,arguments):this.animate(st(i,!0),e,t,n)}}),E.each({slideDown:st("show"),slideUp:st("hide"),slideToggle:st("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,i){E.fn[e]=function(e,t,n){return this.animate(i,e,t,n)}}),E.timers=[],E.fx.tick=function(){var e,t=0,n=E.timers;for(qe=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||E.fx.stop(),qe=void 0},E.fx.timer=function(e){E.timers.push(e),E.fx.start()},E.fx.interval=13,E.fx.start=function(){$e||($e=!0,rt())},E.fx.stop=function(){$e=null},E.fx.speeds={slow:600,fast:200,_default:400},E.fn.delay=function(i,e){return i=E.fx&&E.fx.speeds[i]||i,e=e||"fx",this.queue(e,function(e,t){var n=A.setTimeout(e,i);t.stop=function(){A.clearTimeout(n)}})},et=x.createElement("input"),tt=x.createElement("select").appendChild(x.createElement("option")),et.type="checkbox",_.checkOn=""!==et.value,_.optSelected=tt.selected,(et=x.createElement("input")).value="t",et.type="radio",_.radioValue="t"===et.value;var ct,ut=E.expr.attrHandle;E.fn.extend({attr:function(e,t){return Z(this,E.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){E.removeAttr(this,e)})}}),E.extend({attr:function(e,t,n){var i,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?E.prop(e,t,n):(1===o&&E.isXMLDoc(e)||(r=E.attrHooks[t.toLowerCase()]||(E.expr.match.bool.test(t)?ct:void 0)),void 0!==n?null===n?void E.removeAttr(e,t):r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:(e.setAttribute(t,n+""),n):r&&"get"in r&&null!==(i=r.get(e,t))?i:null==(i=E.find.attr(e,t))?void 0:i)},attrHooks:{type:{set:function(e,t){if(!_.radioValue&&"radio"===t&&B(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i=0,r=t&&t.match(N);if(r&&1===e.nodeType)for(;n=r[i++];)e.removeAttribute(n)}}),ct={set:function(e,t,n){return!1===t?E.removeAttr(e,n):e.setAttribute(n,n),n}},E.each(E.expr.match.bool.source.match(/\w+/g),function(e,t){var s=ut[t]||E.find.attr;ut[t]=function(e,t,n){var i,r,o=t.toLowerCase();return n||(r=ut[o],ut[o]=i,i=null!=s(e,t,n)?o:null,ut[o]=r),i}});var ht=/^(?:input|select|textarea|button)$/i,dt=/^(?:a|area)$/i;function ft(e){return(e.match(N)||[]).join(" ")}function pt(e){return e.getAttribute&&e.getAttribute("class")||""}function mt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(N)||[]}E.fn.extend({prop:function(e,t){return Z(this,E.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[E.propFix[e]||e]})}}),E.extend({prop:function(e,t,n){var i,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&E.isXMLDoc(e)||(t=E.propFix[t]||t,r=E.propHooks[t]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:e[t]=n:r&&"get"in r&&null!==(i=r.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=E.find.attr(e,"tabindex");return t?parseInt(t,10):ht.test(e.nodeName)||dt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),_.optSelected||(E.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),E.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){E.propFix[this.toLowerCase()]=this}),E.fn.extend({addClass:function(t){var e,n,i,r,o,s,a,l=0;if(v(t))return this.each(function(e){E(this).addClass(t.call(this,e,pt(this)))});if((e=mt(t)).length)for(;n=this[l++];)if(r=pt(n),i=1===n.nodeType&&" "+ft(r)+" "){for(s=0;o=e[s++];)i.indexOf(" "+o+" ")<0&&(i+=o+" ");r!==(a=ft(i))&&n.setAttribute("class",a)}return this},removeClass:function(t){var e,n,i,r,o,s,a,l=0;if(v(t))return this.each(function(e){E(this).removeClass(t.call(this,e,pt(this)))});if(!arguments.length)return this.attr("class","");if((e=mt(t)).length)for(;n=this[l++];)if(r=pt(n),i=1===n.nodeType&&" "+ft(r)+" "){for(s=0;o=e[s++];)for(;-1<i.indexOf(" "+o+" ");)i=i.replace(" "+o+" "," ");r!==(a=ft(i))&&n.setAttribute("class",a)}return this},toggleClass:function(r,t){var o=typeof r,s="string"===o||Array.isArray(r);return"boolean"==typeof t&&s?t?this.addClass(r):this.removeClass(r):v(r)?this.each(function(e){E(this).toggleClass(r.call(this,e,pt(this),t),t)}):this.each(function(){var e,t,n,i;if(s)for(t=0,n=E(this),i=mt(r);e=i[t++];)n.hasClass(e)?n.removeClass(e):n.addClass(e);else void 0!==r&&"boolean"!==o||((e=pt(this))&&z.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===r?"":z.get(this,"__className__")||""))})},hasClass:function(e){var t,n,i=0;for(t=" "+e+" ";n=this[i++];)if(1===n.nodeType&&-1<(" "+ft(pt(n))+" ").indexOf(t))return!0;return!1}});var gt=/\r/g;E.fn.extend({val:function(n){var i,e,r,t=this[0];return arguments.length?(r=v(n),this.each(function(e){var t;1===this.nodeType&&(null==(t=r?n.call(this,e,E(this).val()):n)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=E.map(t,function(e){return null==e?"":e+""})),(i=E.valHooks[this.type]||E.valHooks[this.nodeName.toLowerCase()])&&"set"in i&&void 0!==i.set(this,t,"value")||(this.value=t))})):t?(i=E.valHooks[t.type]||E.valHooks[t.nodeName.toLowerCase()])&&"get"in i&&void 0!==(e=i.get(t,"value"))?e:"string"==typeof(e=t.value)?e.replace(gt,""):null==e?"":e:void 0}}),E.extend({valHooks:{option:{get:function(e){var t=E.find.attr(e,"value");return null!=t?t:ft(E.text(e))}},select:{get:function(e){var t,n,i,r=e.options,o=e.selectedIndex,s="select-one"===e.type,a=s?null:[],l=s?o+1:r.length;for(i=o<0?l:s?o:0;i<l;i++)if(((n=r[i]).selected||i===o)&&!n.disabled&&(!n.parentNode.disabled||!B(n.parentNode,"optgroup"))){if(t=E(n).val(),s)return t;a.push(t)}return a},set:function(e,t){for(var n,i,r=e.options,o=E.makeArray(t),s=r.length;s--;)((i=r[s]).selected=-1<E.inArray(E.valHooks.option.get(i),o))&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),E.each(["radio","checkbox"],function(){E.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<E.inArray(E(e).val(),t)}},_.checkOn||(E.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),_.focusin="onfocusin"in A;var _t=/^(?:focusinfocus|focusoutblur)$/,vt=function(e){e.stopPropagation()};E.extend(E.event,{trigger:function(e,t,n,i){var r,o,s,a,l,c,u,h,d=[n||x],f=g.call(e,"type")?e.type:e,p=g.call(e,"namespace")?e.namespace.split("."):[];if(o=h=s=n=n||x,3!==n.nodeType&&8!==n.nodeType&&!_t.test(f+E.event.triggered)&&(-1<f.indexOf(".")&&(f=(p=f.split(".")).shift(),p.sort()),l=f.indexOf(":")<0&&"on"+f,(e=e[E.expando]?e:new E.Event(f,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=p.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:E.makeArray(t,[e]),u=E.event.special[f]||{},i||!u.trigger||!1!==u.trigger.apply(n,t))){if(!i&&!u.noBubble&&!y(n)){for(a=u.delegateType||f,_t.test(a+f)||(o=o.parentNode);o;o=o.parentNode)d.push(o),s=o;s===(n.ownerDocument||x)&&d.push(s.defaultView||s.parentWindow||A)}for(r=0;(o=d[r++])&&!e.isPropagationStopped();)h=o,e.type=1<r?a:u.bindType||f,(c=(z.get(o,"events")||{})[e.type]&&z.get(o,"handle"))&&c.apply(o,t),(c=l&&o[l])&&c.apply&&j(o)&&(e.result=c.apply(o,t),!1===e.result&&e.preventDefault());return e.type=f,i||e.isDefaultPrevented()||u._default&&!1!==u._default.apply(d.pop(),t)||!j(n)||l&&v(n[f])&&!y(n)&&((s=n[l])&&(n[l]=null),E.event.triggered=f,e.isPropagationStopped()&&h.addEventListener(f,vt),n[f](),e.isPropagationStopped()&&h.removeEventListener(f,vt),E.event.triggered=void 0,s&&(n[l]=s)),e.result}},simulate:function(e,t,n){var i=E.extend(new E.Event,n,{type:e,isSimulated:!0});E.event.trigger(i,null,t)}}),E.fn.extend({trigger:function(e,t){return this.each(function(){E.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return E.event.trigger(e,t,n,!0)}}),_.focusin||E.each({focus:"focusin",blur:"focusout"},function(n,i){var r=function(e){E.event.simulate(i,e.target,E.event.fix(e))};E.event.special[i]={setup:function(){var e=this.ownerDocument||this,t=z.access(e,i);t||e.addEventListener(n,r,!0),z.access(e,i,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this,t=z.access(e,i)-1;t?z.access(e,i,t):(e.removeEventListener(n,r,!0),z.remove(e,i))}}});var yt=A.location,bt=Date.now(),Ct=/\?/;E.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new A.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||E.error("Invalid XML: "+e),t};var It=/\[\]$/,At=/\r?\n/g,xt=/^(?:submit|button|image|reset|file)$/i,Et=/^(?:input|select|textarea|keygen)/i;function wt(n,e,i,r){var t;if(Array.isArray(e))E.each(e,function(e,t){i||It.test(n)?r(n,t):wt(n+"["+("object"==typeof t&&null!=t?e:"")+"]",t,i,r)});else if(i||"object"!==C(e))r(n,e);else for(t in e)wt(n+"["+t+"]",e[t],i,r)}E.param=function(e,t){var n,i=[],r=function(e,t){var n=v(t)?t():t;i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(Array.isArray(e)||e.jquery&&!E.isPlainObject(e))E.each(e,function(){r(this.name,this.value)});else for(n in e)wt(n,e[n],t,r);return i.join("&")},E.fn.extend({serialize:function(){return E.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=E.prop(this,"elements");return e?E.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!E(this).is(":disabled")&&Et.test(this.nodeName)&&!xt.test(e)&&(this.checked||!le.test(e))}).map(function(e,t){var n=E(this).val();return null==n?null:Array.isArray(n)?E.map(n,function(e){return{name:t.name,value:e.replace(At,"\r\n")}}):{name:t.name,value:n.replace(At,"\r\n")}}).get()}});var Bt=/%20/g,Tt=/#.*$/,St=/([?&])_=[^&]*/,kt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Lt=/^(?:GET|HEAD)$/,Gt=/^\/\//,Dt={},Rt={},Nt="*/".concat("*"),Ft=x.createElement("a");function Ht(o){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,i=0,r=e.toLowerCase().match(N)||[];if(v(t))for(;n=r[i++];)"+"===n[0]?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(t)):(o[n]=o[n]||[]).push(t)}}function Ot(t,r,o,s){var a={},l=t===Rt;function c(e){var i;return a[e]=!0,E.each(t[e]||[],function(e,t){var n=t(r,o,s);return"string"!=typeof n||l||a[n]?l?!(i=n):void 0:(r.dataTypes.unshift(n),c(n),!1)}),i}return c(r.dataTypes[0])||!a["*"]&&c("*")}function Wt(e,t){var n,i,r=E.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((r[n]?e:i||(i={}))[n]=t[n]);return i&&E.extend(!0,e,i),e}Ft.href=yt.href,E.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:yt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(yt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Nt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":E.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Wt(Wt(e,E.ajaxSettings),t):Wt(E.ajaxSettings,e)},ajaxPrefilter:Ht(Dt),ajaxTransport:Ht(Rt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var u,h,d,n,f,i,p,m,r,o,g=E.ajaxSetup({},t),_=g.context||g,v=g.context&&(_.nodeType||_.jquery)?E(_):E.event,y=E.Deferred(),b=E.Callbacks("once memory"),C=g.statusCode||{},s={},a={},l="canceled",I={readyState:0,getResponseHeader:function(e){var t;if(p){if(!n)for(n={};t=kt.exec(d);)n[t[1].toLowerCase()]=t[2];t=n[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return p?d:null},setRequestHeader:function(e,t){return null==p&&(e=a[e.toLowerCase()]=a[e.toLowerCase()]||e,s[e]=t),this},overrideMimeType:function(e){return null==p&&(g.mimeType=e),this},statusCode:function(e){var t;if(e)if(p)I.always(e[I.status]);else for(t in e)C[t]=[C[t],e[t]];return this},abort:function(e){var t=e||l;return u&&u.abort(t),c(0,t),this}};if(y.promise(I),g.url=((e||g.url||yt.href)+"").replace(Gt,yt.protocol+"//"),g.type=t.method||t.type||g.method||g.type,g.dataTypes=(g.dataType||"*").toLowerCase().match(N)||[""],null==g.crossDomain){i=x.createElement("a");try{i.href=g.url,i.href=i.href,g.crossDomain=Ft.protocol+"//"+Ft.host!=i.protocol+"//"+i.host}catch(e){g.crossDomain=!0}}if(g.data&&g.processData&&"string"!=typeof g.data&&(g.data=E.param(g.data,g.traditional)),Ot(Dt,g,t,I),p)return I;for(r in(m=E.event&&g.global)&&0==E.active++&&E.event.trigger("ajaxStart"),g.type=g.type.toUpperCase(),g.hasContent=!Lt.test(g.type),h=g.url.replace(Tt,""),g.hasContent?g.data&&g.processData&&0===(g.contentType||"").indexOf("application/x-www-form-urlencoded")&&(g.data=g.data.replace(Bt,"+")):(o=g.url.slice(h.length),g.data&&(g.processData||"string"==typeof g.data)&&(h+=(Ct.test(h)?"&":"?")+g.data,delete g.data),!1===g.cache&&(h=h.replace(St,"$1"),o=(Ct.test(h)?"&":"?")+"_="+bt+++o),g.url=h+o),g.ifModified&&(E.lastModified[h]&&I.setRequestHeader("If-Modified-Since",E.lastModified[h]),E.etag[h]&&I.setRequestHeader("If-None-Match",E.etag[h])),(g.data&&g.hasContent&&!1!==g.contentType||t.contentType)&&I.setRequestHeader("Content-Type",g.contentType),I.setRequestHeader("Accept",g.dataTypes[0]&&g.accepts[g.dataTypes[0]]?g.accepts[g.dataTypes[0]]+("*"!==g.dataTypes[0]?", "+Nt+"; q=0.01":""):g.accepts["*"]),g.headers)I.setRequestHeader(r,g.headers[r]);if(g.beforeSend&&(!1===g.beforeSend.call(_,I,g)||p))return I.abort();if(l="abort",b.add(g.complete),I.done(g.success),I.fail(g.error),u=Ot(Rt,g,t,I)){if(I.readyState=1,m&&v.trigger("ajaxSend",[I,g]),p)return I;g.async&&0<g.timeout&&(f=A.setTimeout(function(){I.abort("timeout")},g.timeout));try{p=!1,u.send(s,c)}catch(e){if(p)throw e;c(-1,e)}}else c(-1,"No Transport");function c(e,t,n,i){var r,o,s,a,l,c=t;p||(p=!0,f&&A.clearTimeout(f),u=void 0,d=i||"",I.readyState=0<e?4:0,r=200<=e&&e<300||304===e,n&&(a=function(e,t,n){for(var i,r,o,s,a=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(r in a)if(a[r]&&a[r].test(i)){l.unshift(r);break}if(l[0]in n)o=l[0];else{for(r in n){if(!l[0]||e.converters[r+" "+l[0]]){o=r;break}s||(s=r)}o=o||s}if(o)return o!==l[0]&&l.unshift(o),n[o]}(g,I,n)),a=function(e,t,n,i){var r,o,s,a,l,c={},u=e.dataTypes.slice();if(u[1])for(s in e.converters)c[s.toLowerCase()]=e.converters[s];for(o=u.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=u.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(s=c[l+" "+o]||c["* "+o]))for(r in c)if((a=r.split(" "))[1]===o&&(s=c[l+" "+a[0]]||c["* "+a[0]])){!0===s?s=c[r]:!0!==c[r]&&(o=a[0],u.unshift(a[1]));break}if(!0!==s)if(s&&e.throws)t=s(t);else try{t=s(t)}catch(e){return{state:"parsererror",error:s?e:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}(g,a,I,r),r?(g.ifModified&&((l=I.getResponseHeader("Last-Modified"))&&(E.lastModified[h]=l),(l=I.getResponseHeader("etag"))&&(E.etag[h]=l)),204===e||"HEAD"===g.type?c="nocontent":304===e?c="notmodified":(c=a.state,o=a.data,r=!(s=a.error))):(s=c,!e&&c||(c="error",e<0&&(e=0))),I.status=e,I.statusText=(t||c)+"",r?y.resolveWith(_,[o,c,I]):y.rejectWith(_,[I,c,s]),I.statusCode(C),C=void 0,m&&v.trigger(r?"ajaxSuccess":"ajaxError",[I,g,r?o:s]),b.fireWith(_,[I,c]),m&&(v.trigger("ajaxComplete",[I,g]),--E.active||E.event.trigger("ajaxStop")))}return I},getJSON:function(e,t,n){return E.get(e,t,n,"json")},getScript:function(e,t){return E.get(e,void 0,t,"script")}}),E.each(["get","post"],function(e,r){E[r]=function(e,t,n,i){return v(t)&&(i=i||n,n=t,t=void 0),E.ajax(E.extend({url:e,type:r,dataType:i,data:t,success:n},E.isPlainObject(e)&&e))}}),E._evalUrl=function(e){return E.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},E.fn.extend({wrapAll:function(e){var t;return this[0]&&(v(e)&&(e=e.call(this[0])),t=E(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(n){return v(n)?this.each(function(e){E(this).wrapInner(n.call(this,e))}):this.each(function(){var e=E(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=v(t);return this.each(function(e){E(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not("body").each(function(){E(this).replaceWith(this.childNodes)}),this}}),E.expr.pseudos.hidden=function(e){return!E.expr.pseudos.visible(e)},E.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},E.ajaxSettings.xhr=function(){try{return new A.XMLHttpRequest}catch(e){}};var Qt={0:200,1223:204},Mt=E.ajaxSettings.xhr();_.cors=!!Mt&&"withCredentials"in Mt,_.ajax=Mt=!!Mt,E.ajaxTransport(function(r){var o,s;if(_.cors||Mt&&!r.crossDomain)return{send:function(e,t){var n,i=r.xhr();if(i.open(r.type,r.url,r.async,r.username,r.password),r.xhrFields)for(n in r.xhrFields)i[n]=r.xhrFields[n];for(n in r.mimeType&&i.overrideMimeType&&i.overrideMimeType(r.mimeType),r.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)i.setRequestHeader(n,e[n]);o=function(e){return function(){o&&(o=s=i.onload=i.onerror=i.onabort=i.ontimeout=i.onreadystatechange=null,"abort"===e?i.abort():"error"===e?"number"!=typeof i.status?t(0,"error"):t(i.status,i.statusText):t(Qt[i.status]||i.status,i.statusText,"text"!==(i.responseType||"text")||"string"!=typeof i.responseText?{binary:i.response}:{text:i.responseText},i.getAllResponseHeaders()))}},i.onload=o(),s=i.onerror=i.ontimeout=o("error"),void 0!==i.onabort?i.onabort=s:i.onreadystatechange=function(){4===i.readyState&&A.setTimeout(function(){o&&s()})},o=o("abort");try{i.send(r.hasContent&&r.data||null)}catch(e){if(o)throw e}},abort:function(){o&&o()}}}),E.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),E.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return E.globalEval(e),e}}}),E.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),E.ajaxTransport("script",function(n){var i,r;if(n.crossDomain)return{send:function(e,t){i=E("<script>").prop({charset:n.scriptCharset,src:n.url}).on("load error",r=function(e){i.remove(),r=null,e&&t("error"===e.type?404:200,e.type)}),x.head.appendChild(i[0])},abort:function(){r&&r()}}});var Zt,Ut=[],Vt=/(=)\?(?=&|$)|\?\?/;E.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Ut.pop()||E.expando+"_"+bt++;return this[e]=!0,e}}),E.ajaxPrefilter("json jsonp",function(e,t,n){var i,r,o,s=!1!==e.jsonp&&(Vt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Vt.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Vt,"$1"+i):!1!==e.jsonp&&(e.url+=(Ct.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return o||E.error(i+" was not called"),o[0]},e.dataTypes[0]="json",r=A[i],A[i]=function(){o=arguments},n.always(function(){void 0===r?E(A).removeProp(i):A[i]=r,e[i]&&(e.jsonpCallback=t.jsonpCallback,Ut.push(i)),o&&v(r)&&r(o[0]),o=r=void 0}),"script"}),_.createHTMLDocument=((Zt=x.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Zt.childNodes.length),E.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(_.createHTMLDocument?((i=(t=x.implementation.createHTMLDocument("")).createElement("base")).href=x.location.href,t.head.appendChild(i)):t=x),o=!n&&[],(r=T.exec(e))?[t.createElement(r[1])]:(r=_e([e],t,o),o&&o.length&&E(o).remove(),E.merge([],r.childNodes)));var i,r,o},E.fn.load=function(e,t,n){var i,r,o,s=this,a=e.indexOf(" ");return-1<a&&(i=ft(e.slice(a)),e=e.slice(0,a)),v(t)?(n=t,t=void 0):t&&"object"==typeof t&&(r="POST"),0<s.length&&E.ajax({url:e,type:r||"GET",dataType:"html",data:t}).done(function(e){o=arguments,s.html(i?E("<div>").append(E.parseHTML(e)).find(i):e)}).always(n&&function(e,t){s.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},E.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){E.fn[t]=function(e){return this.on(t,e)}}),E.expr.pseudos.animated=function(t){return E.grep(E.timers,function(e){return t===e.elem}).length},E.offset={setOffset:function(e,t,n){var i,r,o,s,a,l,c=E.css(e,"position"),u=E(e),h={};"static"===c&&(e.style.position="relative"),a=u.offset(),o=E.css(e,"top"),l=E.css(e,"left"),r=("absolute"===c||"fixed"===c)&&-1<(o+l).indexOf("auto")?(s=(i=u.position()).top,i.left):(s=parseFloat(o)||0,parseFloat(l)||0),v(t)&&(t=t.call(e,n,E.extend({},a))),null!=t.top&&(h.top=t.top-a.top+s),null!=t.left&&(h.left=t.left-a.left+r),"using"in t?t.using.call(e,h):u.css(h)}},E.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){E.offset.setOffset(this,t,e)});var e,n,i=this[0];return i?i.getClientRects().length?(e=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,i=this[0],r={top:0,left:0};if("fixed"===E.css(i,"position"))t=i.getBoundingClientRect();else{for(t=this.offset(),n=i.ownerDocument,e=i.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===E.css(e,"position");)e=e.parentNode;e&&e!==i&&1===e.nodeType&&((r=E(e).offset()).top+=E.css(e,"borderTopWidth",!0),r.left+=E.css(e,"borderLeftWidth",!0))}return{top:t.top-r.top-E.css(i,"marginTop",!0),left:t.left-r.left-E.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===E.css(e,"position");)e=e.offsetParent;return e||ve})}}),E.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,r){var o="pageYOffset"===r;E.fn[t]=function(e){return Z(this,function(e,t,n){var i;if(y(e)?i=e:9===e.nodeType&&(i=e.defaultView),void 0===n)return i?i[r]:e[t];i?i.scrollTo(o?i.pageXOffset:n,o?n:i.pageYOffset):e[t]=n},t,e,arguments.length)}}),E.each(["top","left"],function(e,n){E.cssHooks[n]=Qe(_.pixelPosition,function(e,t){if(t)return t=We(e,n),Fe.test(t)?E(e).position()[n]+"px":t})}),E.each({Height:"height",Width:"width"},function(s,a){E.each({padding:"inner"+s,content:a,"":"outer"+s},function(i,o){E.fn[o]=function(e,t){var n=arguments.length&&(i||"boolean"!=typeof e),r=i||(!0===e||!0===t?"margin":"border");return Z(this,function(e,t,n){var i;return y(e)?0===o.indexOf("outer")?e["inner"+s]:e.document.documentElement["client"+s]:9===e.nodeType?(i=e.documentElement,Math.max(e.body["scroll"+s],i["scroll"+s],e.body["offset"+s],i["offset"+s],i["client"+s])):void 0===n?E.css(e,t,r):E.style(e,t,n,r)},a,n?e:void 0,n)}})}),E.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){E.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}}),E.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),E.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),E.proxy=function(e,t){var n,i,r;if("string"==typeof t&&(n=e[t],t=e,e=n),v(e))return i=a.call(arguments,2),(r=function(){return e.apply(t||this,i.concat(a.call(arguments)))}).guid=e.guid=e.guid||E.guid++,r},E.holdReady=function(e){e?E.readyWait++:E.ready(!0)},E.isArray=Array.isArray,E.parseJSON=JSON.parse,E.nodeName=B,E.isFunction=v,E.isWindow=y,E.camelCase=P,E.type=C,E.now=Date.now,E.isNumeric=function(e){var t=E.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},void 0===(zt=function(){return E}.apply(Yt,[]))||(jt.exports=zt);var Xt=A.jQuery,Pt=A.$;return E.noConflict=function(e){return A.$===E&&(A.$=Pt),e&&A.jQuery===E&&(A.jQuery=Xt),E},e||(A.jQuery=A.$=E),E})},function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return r}),n.d(t,"c",function(){return o}),n.d(t,"d",function(){return s}),n.d(t,"e",function(){return a}),n.d(t,"f",function(){return l}),n.d(t,"g",function(){return c});/*!
  * Font Awesome Free 5.5.0 by @fontawesome - https://fontawesome.com
  * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
  */var i={prefix:"fab",iconName:"apple",icon:[376,512,[],"f179","M314.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C59.3 141.2 0 184.8 0 273.5c0 26.2 4.8 53.3 14.4 81.2 12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"]},r={prefix:"fab",iconName:"github",icon:[496,512,[],"f09b","M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"]},o={prefix:"fab",iconName:"gitter",icon:[384,512,[],"f426","M66.4 322.5H16V0h50.4v322.5zM166.9 76.1h-50.4V512h50.4V76.1zm100.6 0h-50.4V512h50.4V76.1zM368 76h-50.4v247H368V76z"]},s={prefix:"fab",iconName:"linkedin",icon:[448,512,[],"f08c","M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"]},a={prefix:"fab",iconName:"linux",icon:[448,512,[],"f17c","M196.1 123.6c-.2-1.4 1.9-2.3 3.2-2.9 1.7-.7 3.9-1 5.5-.1.4.2.8.7.6 1.1-.4 1.2-2.4 1-3.5 1.6-1 .5-1.8 1.7-3 1.7-1 .1-2.7-.4-2.8-1.4zm24.7-.3c1 .5 1.8 1.7 3 1.7 1.1 0 2.8-.4 2.9-1.5.2-1.4-1.9-2.3-3.2-2.9-1.7-.7-3.9-1-5.5-.1-.4.2-.8.7-.6 1.1.3 1.3 2.3 1.1 3.4 1.7zm214.7 310.2c-.5 8.2-6.5 13.8-13.9 18.3-14.9 9-37.3 15.8-50.9 32.2l-2.6-2.2 2.6 2.2c-14.2 16.9-31.7 26.6-48.3 27.9-16.5 1.3-32-6.3-40.3-23v-.1c-1.1-2.1-1.9-4.4-2.5-6.7-21.5 1.2-40.2-5.3-55.1-4.1-22 1.2-35.8 6.5-48.3 6.6-4.8 10.6-14.3 17.6-25.9 20.2-16 3.7-36.1 0-55.9-10.4l1.6-3-1.6 3c-18.5-9.8-42-8.9-59.3-12.5-8.7-1.8-16.3-5-20.1-12.3-3.7-7.3-3-17.3 2.2-31.7 1.7-5.1.4-12.7-.8-20.8-.6-3.9-1.2-7.9-1.2-11.8 0-4.3.7-8.5 2.8-12.4 4.5-8.5 11.8-12.1 18.5-14.5 6.7-2.4 12.8-4 17-8.3 5.2-5.5 10.1-14.4 16.6-20.2-2.6-17.2.2-35.4 6.2-53.3 12.6-37.9 39.2-74.2 58.1-96.7 16.1-22.9 20.8-41.3 22.5-64.7C158 103.4 132.4-.2 234.8 0c80.9.1 76.3 85.4 75.8 131.3-.3 30.1 16.3 50.5 33.4 72 15.2 18 35.1 44.3 46.5 74.4 9.3 24.6 12.9 51.8 3.7 79.1 1.4.5 2.8 1.2 4.1 2 1.4.8 2.7 1.8 4 2.9 6.6 5.6 8.7 14.3 10.5 22.4 1.9 8.1 3.6 15.7 7.2 19.7 11.1 12.4 15.9 21.5 15.5 29.7zM220.8 109.1c3.6.9 8.9 2.4 13 4.4-2.1-12.2 4.5-23.5 11.8-23 8.9.3 13.9 15.5 9.1 27.3-.8 1.9-2.8 3.4-3.9 4.6 6.7 2.3 11 4.1 12.6 4.9 7.9-9.5 10.8-26.2 4.3-40.4-9.8-21.4-34.2-21.8-44 .4-3.2 7.2-3.9 14.9-2.9 21.8zm-46.2 18.8c7.8-5.7 6.9-4.7 5.9-5.5-8-6.9-6.6-27.4 1.8-28.1 6.3-.5 10.8 10.7 9.6 19.6 3.1-2.1 6.7-3.6 10.2-4.6 1.7-19.3-9-33.5-19.1-33.5-18.9 0-24 37.5-8.4 52.1zm-9.4 20.9c1.5 4.9 6.1 10.5 14.7 15.3 7.8 4.6 12 11.5 20 15 2.6 1.1 5.7 1.9 9.6 2.1 18.4 1.1 27.1-11.3 38.2-14.9 11.7-3.7 20.1-11 22.7-18.1 3.2-8.5-2.1-14.7-10.5-18.2-11.3-4.9-16.3-5.2-22.6-9.3-10.3-6.6-18.8-8.9-25.9-8.9-14.4 0-23.2 9.8-27.9 14.2-.5.5-7.9 5.9-14.1 10.5-4.2 3.3-5.6 7.4-4.2 12.3zm-33.5 252.8L112.1 366c-6.8-9.2-13.8-14.8-21.9-16-7.7-1.2-12.6 1.4-17.7 6.9-4.8 5.1-8.8 12.3-14.3 18-7.8 6.5-9.3 6.2-19.6 9.9-6.3 2.2-11.3 4.6-14.8 11.3-2.7 5-2.1 12.2-.9 20 1.2 7.9 3 16.3.6 23.9v.2c-5 13.7-5 21.7-2.6 26.4 7.9 15.4 46.6 6.1 76.5 21.9 31.4 16.4 72.6 17.1 75.3-18 2.1-20.5-31.5-49-41-68.9zm153.9 35.8c3.2-11 6.3-21.3 6.8-29 .8-15.2 1.6-28.7 4.4-39.9 3.1-12.6 9.3-23.1 21.4-27.3 2.3-21.1 18.7-21.1 38.3-12.5 18.9 8.5 26 16 22.8 26.1 1 0 2-.1 4.2 0 5.2-16.9-14.3-28-30.7-34.8 2.9-12 2.4-24.1-.4-35.7-6-25.3-22.6-47.8-35.2-59-2.3-.1-2.1 1.9 2.6 6.5 11.6 10.7 37.1 49.2 23.3 84.9-3.9-1-7.6-1.5-10.9-1.4-5.3-29.1-17.5-53.2-23.6-64.6-11.5-21.4-29.5-65.3-37.2-95.7-4.5 6.4-12.4 11.9-22.3 15-4.7 1.5-9.7 5.5-15.9 9-13.9 8-30 8.8-42.4-1.2-4.5-3.6-8-7.6-12.6-10.3-1.6-.9-5.1-3.3-6.2-4.1-2 37.8-27.3 85.3-39.3 112.7-8.3 19.7-13.2 40.8-13.8 61.5-21.8-29.1-5.9-66.3 2.6-82.4 9.5-17.6 11-22.5 8.7-20.8-8.6 14-22 36.3-27.2 59.2-2.7 11.9-3.2 24 .3 35.2 3.5 11.2 11.1 21.5 24.6 29.9 0 0 24.8 14.3 38.3 32.5 7.4 10 9.7 18.7 7.4 24.9-2.5 6.7-9.6 8.9-16.7 8.9 4.8 6 10.3 13 14.4 19.6 37.6 25.7 82.2 15.7 114.3-7.2zM415 408.5c-10-11.3-7.2-33.1-17.1-41.6-6.9-6-13.6-5.4-22.6-5.1-7.7 8.8-25.8 19.6-38.4 16.3-11.5-2.9-18-16.3-18.8-29.5-.3.2-.7.3-1 .5-7.1 3.9-11.1 10.8-13.7 21.1-2.5 10.2-3.4 23.5-4.2 38.7-.7 11.8-6.2 26.4-9.9 40.6-3.5 13.2-5.8 25.2-1.1 36.3 7.2 14.5 19.5 20.4 33.7 19.3 14.2-1.1 30.4-9.8 43.6-25.5 22-26.6 62.3-29.7 63.2-46.5.3-5.1-3.1-13-13.7-24.6zM173.3 148.7c2 1.9 4.7 4.5 8 7.1 6.6 5.2 15.8 10.6 27.3 10.6 11.6 0 22.5-5.9 31.8-10.8 4.9-2.6 10.9-7 14.8-10.4 3.9-3.4 5.9-6.3 3.1-6.6-2.8-.3-2.6 2.6-6 5.1-4.4 3.2-9.7 7.4-13.9 9.8-7.4 4.2-19.5 10.2-29.9 10.2-10.4 0-18.7-4.8-24.9-9.7-3.1-2.5-5.7-5-7.7-6.9-1.5-1.4-1.9-4.6-4.3-4.9-1.4-.1-1.8 3.7 1.7 6.5z"]},l={prefix:"fab",iconName:"twitter",icon:[512,512,[],"f099","M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"]},c={prefix:"fab",iconName:"windows",icon:[448,512,[],"f17a","M0 93.7l183.6-25.3v177.4H0V93.7zm0 324.6l183.6 25.3V268.4H0v149.9zm203.8 28L448 480V268.4H203.8v177.9zm0-380.6v180.1H448V32L203.8 65.7z"]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){this._disposables=[],this._isDisposed=!1}return e.prototype.dispose=function(){this._isDisposed=!0,this._disposables.forEach(function(e){return e.dispose()}),this._disposables.length=0},e.prototype.register=function(e){this._disposables.push(e)},e.prototype.unregister=function(e){var t=this._disposables.indexOf(e);-1!==t&&this._disposables.splice(t,1)},e}();t.Disposable=i},function(a,e,t){!function(){function r(e,t){document.addEventListener?e.addEventListener("scroll",t,!1):e.attachEvent("scroll",t)}function y(e){this.a=document.createElement("div"),this.a.setAttribute("aria-hidden","true"),this.a.appendChild(document.createTextNode(e)),this.b=document.createElement("span"),this.c=document.createElement("span"),this.h=document.createElement("span"),this.f=document.createElement("span"),this.g=-1,this.b.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.c.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.f.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.h.style.cssText="display:inline-block;width:200%;height:200%;font-size:16px;max-width:none;",this.b.appendChild(this.h),this.c.appendChild(this.f),this.a.appendChild(this.b),this.a.appendChild(this.c)}function b(e,t){e.a.style.cssText="max-width:none;min-width:20px;min-height:20px;display:inline-block;overflow:hidden;position:absolute;width:auto;margin:0;padding:0;top:-999px;white-space:nowrap;font-synthesis:none;font:"+t+";"}function o(e){var t=e.a.offsetWidth,n=t+100;return e.f.style.width=n+"px",e.c.scrollLeft=n,e.b.scrollLeft=e.b.scrollWidth+100,e.g!==t&&(e.g=t,!0)}function C(e,t){function n(){var e=i;o(e)&&e.a.parentNode&&t(e.g)}var i=e;r(e.b,n),r(e.c,n),o(e)}function e(e,t){var n=t||{};this.family=e,this.style=n.style||"normal",this.weight=n.weight||"normal",this.stretch=n.stretch||"normal"}var I=null,i=null,n=null,t=null;function s(){return null===t&&(t=!!document.fonts),t}function A(e,t){return[e.style,e.weight,function(){if(null===n){var e=document.createElement("div");try{e.style.font="condensed 100px sans-serif"}catch(e){}n=""!==e.style.font}return n}()?e.stretch:"","100px",t].join(" ")}e.prototype.load=function(e,t){var p=this,m=e||"BESbswy",g=0,_=t||3e3,v=(new Date).getTime();return new Promise(function(d,f){if(s()&&!function(){if(null===i)if(s()&&/Apple/.test(window.navigator.vendor)){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))(?:\.([0-9]+))/.exec(window.navigator.userAgent);i=!!e&&parseInt(e[1],10)<603}else i=!1;return i}()){var e=new Promise(function(n,e){!function t(){(new Date).getTime()-v>=_?e():document.fonts.load(A(p,'"'+p.family+'"'),m).then(function(e){1<=e.length?n():setTimeout(t,25)},function(){e()})}()}),t=new Promise(function(e,t){g=setTimeout(t,_)});Promise.race([t,e]).then(function(){clearTimeout(g),d(p)},function(){f(p)})}else n=function(){function n(){var e;(e=-1!=s&&-1!=a||-1!=s&&-1!=l||-1!=a&&-1!=l)&&((e=s!=a&&s!=l&&a!=l)||(null===I&&(e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent),I=!!e&&(parseInt(e[1],10)<536||536===parseInt(e[1],10)&&parseInt(e[2],10)<=11)),e=I&&(s==t&&a==t&&l==t||s==c&&a==c&&l==c||s==u&&a==u&&l==u)),e=!e),e&&(h.parentNode&&h.parentNode.removeChild(h),clearTimeout(g),d(p))}var i=new y(m),r=new y(m),o=new y(m),s=-1,a=-1,l=-1,t=-1,c=-1,u=-1,h=document.createElement("div");h.dir="ltr",b(i,A(p,"sans-serif")),b(r,A(p,"serif")),b(o,A(p,"monospace")),h.appendChild(i.a),h.appendChild(r.a),h.appendChild(o.a),document.body.appendChild(h),t=i.a.offsetWidth,c=r.a.offsetWidth,u=o.a.offsetWidth,function e(){if((new Date).getTime()-v>=_)h.parentNode&&h.parentNode.removeChild(h),f(p);else{var t=document.hidden;!0!==t&&void 0!==t||(s=i.a.offsetWidth,a=r.a.offsetWidth,l=o.a.offsetWidth,n()),g=setTimeout(e,50)}}(),C(i,function(e){s=e,n()}),b(i,A(p,'"'+p.family+'",sans-serif')),C(r,function(e){a=e,n()}),b(r,A(p,'"'+p.family+'",serif')),C(o,function(e){l=e,n()}),b(o,A(p,'"'+p.family+'",monospace'))},document.body?n():document.addEventListener?document.addEventListener("DOMContentLoaded",function e(){document.removeEventListener("DOMContentLoaded",e),n()}):document.attachEvent("onreadystatechange",function e(){"interactive"!=document.readyState&&"complete"!=document.readyState||(document.detachEvent("onreadystatechange",e),n())});var n})},a.exports=e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.INVERTED_DEFAULT_COLOR=-1,t.DIM_OPACITY=.5},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i="undefined"==typeof navigator,r=i?"node":navigator.userAgent,o=i?"node":navigator.platform;function s(e,t){return 0<=e.indexOf(t)}t.isFirefox=!!~r.indexOf("Firefox"),t.isSafari=/^((?!chrome|android).)*safari/i.test(r),t.isMSIE=!!~r.indexOf("MSIE")||!!~r.indexOf("Trident"),t.isMac=s(["Macintosh","MacIntel","MacPPC","Mac68K"],o),t.isIpad="iPad"===o,t.isIphone="iPhone"===o,t.isMSWindows=s(["Windows","Win16","Win32","WinCE"],o),t.isLinux=0<=o.indexOf("Linux")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addDisposableDomListener=function(e,t,n,i){return e.addEventListener(t,n,i),{dispose:function(){n&&(e.removeEventListener(t,n,i),n=e=null)}}}},function(e,t,n){"use strict";var i,r;Object.defineProperty(t,"__esModule",{value:!0}),(i=t.C0||(t.C0={})).NUL="\0",i.SOH="",i.STX="",i.ETX="",i.EOT="",i.ENQ="",i.ACK="",i.BEL="",i.BS="\b",i.HT="\t",i.LF="\n",i.VT="\v",i.FF="\f",i.CR="\r",i.SO="",i.SI="",i.DLE="",i.DC1="",i.DC2="",i.DC3="",i.DC4="",i.NAK="",i.SYN="",i.ETB="",i.CAN="",i.EM="",i.SUB="",i.ESC="",i.FS="",i.GS="",i.RS="",i.US="",i.SP=" ",i.DEL="",(r=t.C1||(t.C1={})).PAD="",r.HOP="",r.BPH="",r.NBH="",r.IND="",r.NEL="",r.SSA="",r.ESA="",r.HTS="",r.HTJ="",r.VTS="",r.PLD="",r.PLU="",r.RI="",r.SS2="",r.SS3="",r.DCS="",r.PU1="",r.PU2="",r.STS="",r.CCH="",r.MW="",r.SPA="",r.EPA="",r.SOS="",r.SGCI="",r.SCI="",r.CSI="",r.ST="",r.OSC="",r.PM="",r.APC=""},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var h=n(7),i=n(24),r=n(0),o=function(){function e(e,t,n,i,r){this._container=e,this._alpha=i,this._colors=r,this._scaledCharWidth=0,this._scaledCharHeight=0,this._scaledCellWidth=0,this._scaledCellHeight=0,this._scaledCharLeft=0,this._scaledCharTop=0,this._currentGlyphIdentifier={chars:"",code:0,bg:0,fg:0,bold:!1,dim:!1,italic:!1},this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-"+t+"-layer"),this._canvas.style.zIndex=n.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return e.prototype.dispose=function(){this._container.removeChild(this._canvas),this._charAtlas&&this._charAtlas.dispose()},e.prototype._initCanvas=function(){this._ctx=this._canvas.getContext("2d",{alpha:this._alpha}),this._alpha||this.clearAll()},e.prototype.onOptionsChanged=function(e){},e.prototype.onBlur=function(e){},e.prototype.onFocus=function(e){},e.prototype.onCursorMove=function(e){},e.prototype.onGridChanged=function(e,t,n){},e.prototype.onSelectionChanged=function(e,t,n,i){void 0===i&&(i=!1)},e.prototype.onThemeChanged=function(e,t){this._refreshCharAtlas(e,t)},e.prototype.setTransparency=function(e,t){if(t!==this._alpha){var n=this._canvas;this._alpha=t,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,n),this._refreshCharAtlas(e,this._colors),this.onGridChanged(e,0,e.rows-1)}},e.prototype._refreshCharAtlas=function(e,t){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=i.acquireCharAtlas(e,t,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},e.prototype.resize=function(e,t){this._scaledCellWidth=t.scaledCellWidth,this._scaledCellHeight=t.scaledCellHeight,this._scaledCharWidth=t.scaledCharWidth,this._scaledCharHeight=t.scaledCharHeight,this._scaledCharLeft=t.scaledCharLeft,this._scaledCharTop=t.scaledCharTop,this._canvas.width=t.scaledCanvasWidth,this._canvas.height=t.scaledCanvasHeight,this._canvas.style.width=t.canvasWidth+"px",this._canvas.style.height=t.canvasHeight+"px",this._alpha||this.clearAll(),this._refreshCharAtlas(e,this._colors)},e.prototype.fillCells=function(e,t,n,i){this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,n*this._scaledCellWidth,i*this._scaledCellHeight)},e.prototype.fillBottomLineAtCells=function(e,t,n){void 0===n&&(n=1),this._ctx.fillRect(e*this._scaledCellWidth,(t+1)*this._scaledCellHeight-window.devicePixelRatio-1,n*this._scaledCellWidth,window.devicePixelRatio)},e.prototype.fillLeftLineAtCell=function(e,t){this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,window.devicePixelRatio,this._scaledCellHeight)},e.prototype.strokeRectAtCell=function(e,t,n,i){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(e*this._scaledCellWidth+window.devicePixelRatio/2,t*this._scaledCellHeight+window.devicePixelRatio/2,n*this._scaledCellWidth-window.devicePixelRatio,i*this._scaledCellHeight-window.devicePixelRatio)},e.prototype.clearAll=function(){this._alpha?this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(0,0,this._canvas.width,this._canvas.height))},e.prototype.clearCells=function(e,t,n,i){this._alpha?this._ctx.clearRect(e*this._scaledCellWidth,t*this._scaledCellHeight,n*this._scaledCellWidth,i*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(e*this._scaledCellWidth,t*this._scaledCellHeight,n*this._scaledCellWidth,i*this._scaledCellHeight))},e.prototype.fillCharTrueColor=function(e,t,n,i){this._ctx.font=this._getFont(e,!1,!1),this._ctx.textBaseline="top",this._clipRow(e,i),this._ctx.fillText(t[r.CHAR_DATA_CHAR_INDEX],n*this._scaledCellWidth+this._scaledCharLeft,i*this._scaledCellHeight+this._scaledCharTop)},e.prototype.drawChars=function(e,t,n,i,r,o,s,a,l,c,u){s+=e.options.drawBoldTextInBrightColors&&l&&s<8&&s!==h.INVERTED_DEFAULT_COLOR?8:0,this._currentGlyphIdentifier.chars=t,this._currentGlyphIdentifier.code=n,this._currentGlyphIdentifier.bg=a,this._currentGlyphIdentifier.fg=s,this._currentGlyphIdentifier.bold=l&&e.options.enableBold,this._currentGlyphIdentifier.dim=c,this._currentGlyphIdentifier.italic=u,this._charAtlas&&this._charAtlas.draw(this._ctx,this._currentGlyphIdentifier,r*this._scaledCellWidth+this._scaledCharLeft,o*this._scaledCellHeight+this._scaledCharTop)||this._drawUncachedChars(e,t,i,s,r,o,l&&e.options.enableBold,c,u)},e.prototype._drawUncachedChars=function(e,t,n,i,r,o,s,a,l){this._ctx.save(),this._ctx.font=this._getFont(e,s,l),this._ctx.textBaseline="top",i===h.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:this._ctx.fillStyle=i<256?this._colors.ansi[i].css:this._colors.foreground.css,this._clipRow(e,o),a&&(this._ctx.globalAlpha=h.DIM_OPACITY),this._ctx.fillText(t,r*this._scaledCellWidth+this._scaledCharLeft,o*this._scaledCellHeight+this._scaledCharTop),this._ctx.restore()},e.prototype._clipRow=function(e,t){this._ctx.beginPath(),this._ctx.rect(0,t*this._scaledCellHeight,e.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},e.prototype._getFont=function(e,t,n){return(n?"italic":"")+" "+(t?e.options.fontWeightBold:e.options.fontWeight)+" "+e.options.fontSize*window.devicePixelRatio+"px "+e.options.fontFamily},e}();t.BaseRenderLayer=o},function(e,i,t){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var r=c("#ffffff"),o=c("#000000"),s=c("#ffffff"),a=c("#000000"),l={css:"rgba(255, 255, 255, 0.3)",rgba:4294967159};function c(e){return{css:e,rgba:parseInt(e.slice(1),16)<<8|255}}function u(e){var t=e.toString(16);return t.length<2?"0"+t:t}i.DEFAULT_ANSI_COLORS=function(){for(var e=[c("#2e3436"),c("#cc0000"),c("#4e9a06"),c("#c4a000"),c("#3465a4"),c("#75507b"),c("#06989a"),c("#d3d7cf"),c("#555753"),c("#ef2929"),c("#8ae234"),c("#fce94f"),c("#729fcf"),c("#ad7fa8"),c("#34e2e2"),c("#eeeeec")],t=[0,95,135,175,215,255],n=0;n<216;n++){var i=t[n/36%6|0],r=t[n/6%6|0],o=t[n%6];e.push({css:"#"+u(i)+u(r)+u(o),rgba:(i<<24|r<<16|o<<8|255)>>>0})}for(n=0;n<24;n++){var s=8+10*n,a=u(s);e.push({css:"#"+a+a+a,rgba:(s<<24|s<<16|s<<8|255)>>>0})}return e}();var n=function(){function e(e,t){this.allowTransparency=t;var n=e.createElement("canvas");n.width=1,n.height=1,this._ctx=n.getContext("2d"),this._ctx.globalCompositeOperation="copy",this._litmusColor=this._ctx.createLinearGradient(0,0,1,1),this.colors={foreground:r,background:o,cursor:s,cursorAccent:a,selection:l,ansi:i.DEFAULT_ANSI_COLORS.slice()}}return e.prototype.setTheme=function(e){this.colors.foreground=this._parseColor(e.foreground,r),this.colors.background=this._parseColor(e.background,o),this.colors.cursor=this._parseColor(e.cursor,s,!0),this.colors.cursorAccent=this._parseColor(e.cursorAccent,a,!0),this.colors.selection=this._parseColor(e.selection,l,!0),this.colors.ansi[0]=this._parseColor(e.black,i.DEFAULT_ANSI_COLORS[0]),this.colors.ansi[1]=this._parseColor(e.red,i.DEFAULT_ANSI_COLORS[1]),this.colors.ansi[2]=this._parseColor(e.green,i.DEFAULT_ANSI_COLORS[2]),this.colors.ansi[3]=this._parseColor(e.yellow,i.DEFAULT_ANSI_COLORS[3]),this.colors.ansi[4]=this._parseColor(e.blue,i.DEFAULT_ANSI_COLORS[4]),this.colors.ansi[5]=this._parseColor(e.magenta,i.DEFAULT_ANSI_COLORS[5]),this.colors.ansi[6]=this._parseColor(e.cyan,i.DEFAULT_ANSI_COLORS[6]),this.colors.ansi[7]=this._parseColor(e.white,i.DEFAULT_ANSI_COLORS[7]),this.colors.ansi[8]=this._parseColor(e.brightBlack,i.DEFAULT_ANSI_COLORS[8]),this.colors.ansi[9]=this._parseColor(e.brightRed,i.DEFAULT_ANSI_COLORS[9]),this.colors.ansi[10]=this._parseColor(e.brightGreen,i.DEFAULT_ANSI_COLORS[10]),this.colors.ansi[11]=this._parseColor(e.brightYellow,i.DEFAULT_ANSI_COLORS[11]),this.colors.ansi[12]=this._parseColor(e.brightBlue,i.DEFAULT_ANSI_COLORS[12]),this.colors.ansi[13]=this._parseColor(e.brightMagenta,i.DEFAULT_ANSI_COLORS[13]),this.colors.ansi[14]=this._parseColor(e.brightCyan,i.DEFAULT_ANSI_COLORS[14]),this.colors.ansi[15]=this._parseColor(e.brightWhite,i.DEFAULT_ANSI_COLORS[15])},e.prototype._parseColor=function(e,t,n){if(void 0===n&&(n=this.allowTransparency),!e)return t;if(this._ctx.fillStyle=this._litmusColor,this._ctx.fillStyle=e,"string"!=typeof this._ctx.fillStyle)return console.warn("Color: "+e+" is invalid using fallback "+t.css),t;this._ctx.fillRect(0,0,1,1);var i=this._ctx.getImageData(0,0,1,1).data;return n||255===i[3]?{css:e,rgba:(i[0]<<24|i[1]<<16|i[2]<<8|i[3])>>>0}:(console.warn("Color: "+e+" is using transparency, but allowTransparency is false. Using fallback "+t.css+"."),t)},e}();i.ColorManager=n},function(e,t,n){var i,r,o;/*!
  * inputmask.js
  * https://github.com/RobinHerbots/Inputmask
  * Copyright (c) 2010 - 2018 Robin Herbots
  * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
  * Version: 4.0.3
  */r=[n(79),n(33)],void 0===(o="function"==typeof(i=function(ne,ie,re){var oe=ie.document,e=navigator.userAgent,se=0<e.indexOf("MSIE ")||0<e.indexOf("Trident/"),ae=he("touchstart"),le=/iemobile/i.test(e),ce=/iphone/i.test(e)&&!le;function ue(e,t,n){if(!(this instanceof ue))return new ue(e,t,n);this.el=re,this.events={},this.maskset=re,!(this.refreshValue=!1)!==n&&(ne.isPlainObject(e)?t=e:(t=t||{},e&&(t.alias=e)),this.opts=ne.extend(!0,{},this.defaults,t),this.noMasksCache=t&&t.definitions!==re,this.userOptions=t||{},this.isRTL=this.opts.numericInput,u(this.opts.alias,t,this.opts))}function u(e,t,n){var i=ue.prototype.aliases[e];return i?(i.alias&&u(i.alias,re,n),ne.extend(!0,n,i),ne.extend(!0,n,t),!0):(null===n.mask&&(n.mask=e),!1)}function o(n,a){function e(e,t,n){var i=!1;if(null!==e&&""!==e||(i=null!==n.regex,e=i?(e=n.regex).replace(/^(\^)(.*)(\$)$/,"$2"):(i=!0,".*")),1===e.length&&!1===n.greedy&&0!==n.repeat&&(n.placeholder=""),0<n.repeat||"*"===n.repeat||"+"===n.repeat){var r="*"===n.repeat?0:"+"===n.repeat?1:n.repeat;e=n.groupmarker[0]+e+n.groupmarker[1]+n.quantifiermarker[0]+r+","+n.repeat+n.quantifiermarker[1]}var o,s=i?"regex_"+n.regex:n.numericInput?e.split("").reverse().join(""):e;return ue.prototype.masksCache[s]===re||!0===a?(o={mask:e,maskToken:ue.prototype.analyseMask(e,i,n),validPositions:{},_buffer:re,buffer:re,tests:{},excludes:{},metadata:t,maskLength:re},!0!==a&&(ue.prototype.masksCache[s]=o,o=ne.extend(!0,{},ue.prototype.masksCache[s]))):o=ne.extend(!0,{},ue.prototype.masksCache[s]),o}if(ne.isFunction(n.mask)&&(n.mask=n.mask(n)),ne.isArray(n.mask)){if(1<n.mask.length){if(null===n.keepStatic){n.keepStatic="auto";for(var t=0;t<n.mask.length;t++)if(n.mask[t].charAt(0)!==n.mask[0].charAt(0)){n.keepStatic=!0;break}}var i=n.groupmarker[0];return ne.each(n.isRTL?n.mask.reverse():n.mask,function(e,t){1<i.length&&(i+=n.groupmarker[1]+n.alternatormarker+n.groupmarker[0]),t.mask===re||ne.isFunction(t.mask)?i+=t:i+=t.mask}),e(i+=n.groupmarker[1],n.mask,n)}n.mask=n.mask.pop()}return n.mask&&n.mask.mask!==re&&!ne.isFunction(n.mask.mask)?e(n.mask.mask,n.mask,n):e(n.mask,n.mask,n)}function he(e){var t=oe.createElement("input"),n="on"+e,i=n in t;return i||(t.setAttribute(n,"return;"),i="function"==typeof t[n]),t=null,i}function de(e,t,U){t=t||this.maskset,U=U||this.opts;var m,o,g,f,s,c=this,u=this.el,_=this.isRTL,a=!1,h=!1,v=!1,n=!1;function p(e,t,n,i,r){var o=U.greedy;r&&(U.greedy=!1),t=t||0;var s,a,l,c=[],u=0;A();do{if(!0===e&&V().validPositions[u])l=r&&!0===V().validPositions[u].match.optionality&&V().validPositions[u+1]===re&&(!0===V().validPositions[u].generatedInput||V().validPositions[u].input==U.skipOptionalPartCharacter&&0<u)?y(u,w(u,s,u-1)):V().validPositions[u],a=l.match,s=l.locator.slice(),c.push(!0===n?l.input:!1===n?a.nativeDef:W(u,a));else{l=b(u,s,u-1),a=l.match,s=l.locator.slice();var h=!0!==i&&(!1!==U.jitMasking?U.jitMasking:a.jit);(!1===h||h===re||"number"==typeof h&&isFinite(h)&&u<h)&&c.push(!1===n?a.nativeDef:W(u,a))}"auto"===U.keepStatic&&a.newBlockMarker&&null!==a.fn&&(U.keepStatic=u-1),u++}while((g===re||u<g)&&(null!==a.fn||""!==a.def)||u<t);return""===c[c.length-1]&&c.pop(),!1===n&&V().maskLength!==re||(V().maskLength=u-1),U.greedy=o,c}function V(){return t}function I(e){var t=V();t.buffer=re,!0!==e&&(t.validPositions={},t.p=0)}function A(e,t,n){var i=-1,r=-1,o=n||V().validPositions;for(var s in e===re&&(e=-1),o){var a=parseInt(s);o[a]&&(t||!0!==o[a].generatedInput)&&(a<=e&&(i=a),e<=a&&(r=a))}return-1===i||i==e?r:-1==r?i:e-i<r-e?i:r}function x(e){var t=e.locator[e.alternation];return"string"==typeof t&&0<t.length&&(t=t.split(",")[0]),t!==re?t.toString():""}function d(e,t){var n=(e.alternation!=re?e.mloc[x(e)]:e.locator).join("");if(""!==n)for(;n.length<t;)n+="0";return n}function y(e,t){for(var n,i,r,o=E(e=0<e?e-1:0),s=d(o),a=0;a<t.length;a++){var l=t[a];n=d(l,s.length);var c=Math.abs(n-s);(i===re||""!==n&&c<i||r&&r.match.optionality&&"master"===r.match.newBlockMarker&&(!l.match.optionality||!l.match.newBlockMarker)||r&&r.match.optionalQuantifier&&!l.match.optionalQuantifier)&&(i=c,r=l)}return r}function b(e,t,n){return V().validPositions[e]||y(e,w(e,t?t.slice():t,n))}function E(e,t){return V().validPositions[e]?V().validPositions[e]:(t||w(e))[0]}function C(e,t){for(var n=!1,i=w(e),r=0;r<i.length;r++)if(i[r].match&&i[r].match.def===t){n=!0;break}return n}function w(F,e,t){var H,n,i,r,o=V().maskToken,O=e?t:0,s=e?e.slice():[0],W=[],Q=!1,M=e?e.join(""):"";function Z(D,R,e,t){function N(e,t,n){function o(n,i){var r=0===ne.inArray(n,i.matches);return r||ne.each(i.matches,function(e,t){if(!0===t.isQuantifier?r=o(n,i.matches[e-1]):t.hasOwnProperty("matches")&&(r=o(n,t)),r)return!1}),r}function i(e,r,o){var s,a;if((V().tests[e]||V().validPositions[e])&&ne.each(V().tests[e]||[V().validPositions[e]],function(e,t){if(t.mloc[r])return s=t,!1;var n=o!==re?o:t.alternation,i=t.locator[n]!==re?t.locator[n].toString().indexOf(r):-1;(a===re||i<a)&&-1!==i&&(s=t,a=i)}),s){var t=s.locator[s.alternation],n=s.mloc[r]||s.mloc[t]||s.locator;return n.slice((o!==re?o:s.alternation)+1)}return o!==re?i(e,r):re}function r(e,t){function n(e){for(var t,n,i=[],r=0,o=e.length;r<o;r++)if("-"===e.charAt(r))for(n=e.charCodeAt(r+1);++t<n;)i.push(String.fromCharCode(t));else t=e.charCodeAt(r),i.push(e.charAt(r));return i.join("")}return U.regex&&null!==e.match.fn&&null!==t.match.fn?-1!==n(t.match.def.replace(/[\[\]]/g,"")).indexOf(n(e.match.def.replace(/[\[\]]/g,""))):e.match.def===t.match.nativeDef}function s(e,t){if(t===re||e.alternation===t.alternation&&-1===e.locator[e.alternation].toString().indexOf(t.locator[t.alternation])){e.mloc=e.mloc||{};var n=e.locator[e.alternation];if(n!==re){if("string"==typeof n&&(n=n.split(",")[0]),e.mloc[n]===re&&(e.mloc[n]=e.locator.slice()),t!==re){for(var i in t.mloc)"string"==typeof i&&(i=i.split(",")[0]),e.mloc[i]===re&&(e.mloc[i]=t.mloc[i]);e.locator[e.alternation]=Object.keys(e.mloc).join(",")}return!0}e.alternation=re}return!1}if(500<O&&n!==re)throw"Inputmask: There is probably an error in your mask definition or in the code. Create an issue on github with an example of the mask you are using. "+V().mask;if(O===F&&e.matches===re)return W.push({match:e,locator:t.reverse(),cd:M,mloc:{}}),!0;if(e.matches!==re){if(e.isGroup&&n!==e){if(e=N(D.matches[ne.inArray(e,D.matches)+1],t,n))return!0}else if(e.isOptional){var a=e;if(e=Z(e,R,t,n)){if(ne.each(W,function(e,t){t.match.optionality=!0}),H=W[W.length-1].match,n!==re||!o(H,a))return!0;Q=!0,O=F}}else if(e.isAlternator){var l,c=e,u=[],h=W.slice(),d=t.length,f=0<R.length?R.shift():-1;if(-1===f||"string"==typeof f){var p,m=O,g=R.slice(),_=[];if("string"==typeof f)_=f.split(",");else for(p=0;p<c.matches.length;p++)_.push(p.toString());if(V().excludes[F]){for(var v=_.slice(),y=0,b=V().excludes[F].length;y<b;y++)_.splice(_.indexOf(V().excludes[F][y].toString()),1);0===_.length&&(V().excludes[F]=re,_=v)}(!0===U.keepStatic||isFinite(parseInt(U.keepStatic))&&m>=U.keepStatic)&&(_=_.slice(0,1));for(var C=!1,I=0;I<_.length;I++){p=parseInt(_[I]),W=[],R="string"==typeof f&&i(O,p,d)||g.slice(),c.matches[p]&&N(c.matches[p],[p].concat(t),n)?e=!0:0===I&&(C=!0),l=W.slice(),O=m,W=[];for(var A=0;A<l.length;A++){var x=l[A],E=!1;x.match.jit=x.match.jit||C,x.alternation=x.alternation||d,s(x);for(var w=0;w<u.length;w++){var B=u[w];if("string"!=typeof f||x.alternation!==re&&-1!==ne.inArray(x.locator[x.alternation].toString(),_)){if(x.match.nativeDef===B.match.nativeDef){E=!0,s(B,x);break}if(r(x,B)){s(x,B)&&(E=!0,u.splice(u.indexOf(B),0,x));break}if(r(B,x)){s(B,x);break}if(G=B,void 0,!(!((L=L=x).locator.slice(L.alternation).join("")==G.locator.slice(G.alternation).join(""))||null!==L.match.fn||null===G.match.fn)&&G.match.fn.test(L.match.def,V(),F,!1,U,!1)){s(x,B)&&(E=!0,u.splice(u.indexOf(B),0,x));break}}}E||u.push(x)}}W=h.concat(u),O=F,Q=0<W.length,e=0<u.length,R=g.slice()}else e=N(c.matches[f]||D.matches[f],[f].concat(t),n);if(e)return!0}else if(e.isQuantifier&&n!==D.matches[ne.inArray(e,D.matches)-1])for(var T=e,S=0<R.length?R.shift():0;S<(isNaN(T.quantifier.max)?S+1:T.quantifier.max)&&O<=F;S++){var k=D.matches[ne.inArray(T,D.matches)-1];if(e=N(k,[S].concat(t),k)){if((H=W[W.length-1].match).optionalQuantifier=S>T.quantifier.min-1,H.jit=(S||1)*k.matches.indexOf(H)>=T.quantifier.jit,H.optionalQuantifier&&o(H,k)){Q=!0,O=F;break}return H.jit&&!H.optionalQuantifier&&(H.jitOffset=k.matches.indexOf(H)),!0}}else if(e=Z(e,R,t,n))return!0}else O++;var L,G}for(var n=0<R.length?R.shift():0;n<D.matches.length;n++)if(!0!==D.matches[n].isQuantifier){var i=N(D.matches[n],[n].concat(e),t);if(i&&O===F)return i;if(F<O)break}}if(-1<F){if(e===re){for(var a,l=F-1;(a=V().validPositions[l]||V().tests[l])===re&&-1<l;)l--;a!==re&&-1<l&&(n=l,i=a,r=[],ne.isArray(i)||(i=[i]),0<i.length&&(i[0].alternation===re?0===(r=y(n,i.slice()).locator.slice()).length&&(r=i[0].locator.slice()):ne.each(i,function(e,t){if(""!==t.def)if(0===r.length)r=t.locator.slice();else for(var n=0;n<r.length;n++)t.locator[n]&&-1===r[n].toString().indexOf(t.locator[n])&&(r[n]+=","+t.locator[n])})),M=(s=r).join(""),O=l)}if(V().tests[F]&&V().tests[F][0].cd===M)return V().tests[F];for(var c=s.shift();c<o.length;c++){var u=Z(o[c],s,[c]);if(u&&O===F||F<O)break}}return(0===W.length||Q)&&W.push({match:{fn:null,optionality:!1,casing:null,def:"",placeholder:""},locator:[],mloc:{},cd:M}),e!==re&&V().tests[F]?ne.extend(!0,[],W):(V().tests[F]=ne.extend(!0,[],W),V().tests[F])}function B(){return V()._buffer===re&&(V()._buffer=p(!1,1),V().buffer===re&&(V().buffer=V()._buffer.slice())),V()._buffer}function T(e){return V().buffer!==re&&!0!==e||(V().buffer=p(!0,A(),!0),V()._buffer===re&&(V()._buffer=V().buffer.slice())),V().buffer}function S(e,t,n){var i,r;if(!0===e)I(),e=0,t=n.length;else for(i=e;i<t;i++)delete V().validPositions[i];for(i=r=e;i<t;i++)if(I(!0),n[i]!==U.skipOptionalPartCharacter){var o=G(r,n[i],!0,!0);!1!==o&&(I(!0),r=o.caret!==re?o.caret:o.pos+1)}}function k(e,t,n){for(var i,r=U.greedy?t:t.slice(0,1),o=!1,s=n!==re?n.split(","):[],a=0;a<s.length;a++)-1!==(i=e.indexOf(s[a]))&&e.splice(i,1);for(var l=0;l<e.length;l++)if(-1!==ne.inArray(e[l],r)){o=!0;break}return o}function L(e,t,n,i,r){var o,s,a,l,c,u,h,d=ne.extend(!0,{},V().validPositions),f=!1,p=r!==re?r:A();if(-1===p&&r===re)l=E(o=0),s=l.alternation;else for(;0<=p;p--)if((a=V().validPositions[p])&&a.alternation!==re){if(l&&l.locator[a.alternation]!==a.locator[a.alternation])break;o=p,s=V().validPositions[o].alternation,l=a}if(s!==re){h=parseInt(o),V().excludes[h]=V().excludes[h]||[],!0!==e&&V().excludes[h].push(x(l));var m=[],g=0;for(c=h;c<A(re,!0)+1;c++)(u=V().validPositions[c])&&!0!==u.generatedInput?m.push(u.input):c<e&&g++,delete V().validPositions[c];for(;V().excludes[h]&&V().excludes[h].length<10;){var _=-1*g,v=m.slice();for(V().tests[h]=re,I(!0),f=!0;0<v.length;){var y=v.shift();if(!(f=G(A(re,!0)+1,y,!1,i,!0)))break}if(f&&t!==re){var b=A(e)+1;for(c=h;c<A()+1;c++)((u=V().validPositions[c])===re||null==u.match.fn)&&c<e+_&&_++;f=G(b<(e+=_)?b:e,t,n,i,!0)}if(f)break;if(I(),l=E(h),V().validPositions=ne.extend(!0,{},d),!V().excludes[h]){f=L(e,t,n,i,h-1);break}var C=x(l);if(-1!==V().excludes[h].indexOf(C)){f=L(e,t,n,i,h-1);break}for(V().excludes[h].push(C),c=h;c<A(re,!0)+1;c++)delete V().validPositions[c]}}return V().excludes[h]=re,f}function G(c,e,t,u,n,i){function h(e){return _?1<e.begin-e.end||e.begin-e.end==1:1<e.end-e.begin||e.end-e.begin==1}t=!0===t;var r=c;function o(o,s,a){var l=!1;return ne.each(w(o),function(e,t){var n=t.match;if(T(!0),!1!==(l=null!=n.fn?n.fn.test(s,V(),o,a,U,h(c)):(s===n.def||s===U.skipOptionalPartCharacter)&&""!==n.def&&{c:W(o,n,!0)||n.def,pos:o})){var i=l.c!==re?l.c:s,r=o;return i=i===U.skipOptionalPartCharacter&&null===n.fn?W(o,n,!0)||n.def:i,l.remove!==re&&(ne.isArray(l.remove)||(l.remove=[l.remove]),ne.each(l.remove.sort(function(e,t){return t-e}),function(e,t){R({begin:t,end:t+1})})),l.insert!==re&&(ne.isArray(l.insert)||(l.insert=[l.insert]),ne.each(l.insert.sort(function(e,t){return e-t}),function(e,t){G(t.pos,t.c,!0,u)})),!0!==l&&l.pos!==re&&l.pos!==o&&(r=l.pos),!0!==l&&l.pos===re&&l.c===re||R(c,ne.extend({},t,{input:function(e,t,n){switch(U.casing||t.casing){case"upper":e=e.toUpperCase();break;case"lower":e=e.toLowerCase();break;case"title":var i=V().validPositions[n-1];e=0===n||i&&i.input===String.fromCharCode(ue.keyCode.SPACE)?e.toUpperCase():e.toLowerCase();break;default:if(ne.isFunction(U.casing)){var r=Array.prototype.slice.call(arguments);r.push(V().validPositions),e=U.casing.apply(this,r)}}return e}(i,n,r)}),u,r)||(l=!1),!1}}),l}c.begin!==re&&(r=_?c.end:c.begin);var s=!0,a=ne.extend(!0,{},V().validPositions);if(ne.isFunction(U.preValidation)&&!t&&!0!==u&&!0!==i&&(s=U.preValidation(T(),r,e,h(c),U,V())),!0===s){if(D(re,r,!0),(g===re||r<g)&&(s=o(r,e,t),(!t||!0===u)&&!1===s&&!0!==i)){var l=V().validPositions[r];if(!l||null!==l.match.fn||l.match.def!==e&&e!==U.skipOptionalPartCharacter){if((U.insertMode||V().validPositions[F(r)]===re)&&!N(r,!0))for(var d=r+1,f=F(r);d<=f;d++)if(!1!==(s=o(d,e,t))){s=D(r,s.pos!==re?s.pos:d)||s,r=d;break}}else s={caret:F(r)}}!1!==s||!1===U.keepStatic||null!=U.regex&&!Y(T())||t||!0===n||(s=L(r,e,t,u)),!0===s&&(s={pos:r})}if(ne.isFunction(U.postValidation)&&!1!==s&&!t&&!0!==u&&!0!==i){var p=U.postValidation(T(!0),c.begin!==re?_?c.end:c.begin:c,s,U);if(p!==re){if(p.refreshFromBuffer&&p.buffer){var m=p.refreshFromBuffer;S(!0===m?m:m.start,m.end,p.buffer)}s=!0===p?s:p}}return s&&s.pos===re&&(s.pos=r),!1!==s&&!0!==i||(I(!0),V().validPositions=ne.extend(!0,{},a)),s}function D(e,t,n){var i;if(e===re)for(e=t-1;0<e&&!V().validPositions[e];e--);for(var r=e;r<t;r++)if(V().validPositions[r]===re&&!N(r,!0)){var o=0==r?E(r):V().validPositions[r-1];if(o){var s=w(r).slice();""===s[s.length-1].match.def&&s.pop();var a=y(r,s);if((a=ne.extend({},a,{input:W(r,a.match,!0)||a.match.def})).generatedInput=!0,R(r,a,!0),!0!==n){var l=V().validPositions[t].input;V().validPositions[t]=re,i=G(t,l,!0,!0)}}}return i}function R(e,t,n,i){function r(e,t,n){var i=t[e];if(i===re||(null!==i.match.fn||!0===i.match.optionality)&&i.input!==U.radixPoint)return!1;var r=n.begin<=e-1?t[e-1]&&null===t[e-1].match.fn&&t[e-1]:t[e-1],o=n.end>e+1?t[e+1]&&null===t[e+1].match.fn&&t[e+1]:t[e+1];return r&&o}var o=e.begin!==re?e.begin:e,s=e.end!==re?e.end:e;if(e.begin>e.end&&(o=e.end,s=e.begin),i=i!==re?i:o,o!==s||U.insertMode&&V().validPositions[i]!==re&&n===re){var a=ne.extend(!0,{},V().validPositions),l=A(re,!0);for(V().p=o,f=l;o<=f;f--)V().validPositions[f]&&"+"===V().validPositions[f].match.nativeDef&&(U.isNegative=!1),delete V().validPositions[f];var c=!0,u=i,h=(V().validPositions,!1),d=u,f=u;for(t&&(V().validPositions[i]=ne.extend(!0,{},t),d++,u++,o<s&&f++);f<=l;f++){var p=a[f];if(p!==re&&(s<=f||o<=f&&!0!==p.generatedInput&&r(f,a,{begin:o,end:s}))){for(;""!==E(d).match.def;){if(!1===h&&a[d]&&a[d].match.nativeDef===p.match.nativeDef)V().validPositions[d]=ne.extend(!0,{},a[d]),V().validPositions[d].input=p.input,D(re,d,!0),u=d+1,c=!0;else if(U.shiftPositions&&C(d,p.match.def)){var m=G(d,p.input,!0,!0);c=!1!==m,u=m.caret||m.insert?A():d+1,h=!0}else c=!0===p.generatedInput||p.input===U.radixPoint&&!0===U.numericInput;if(c)break;if(!c&&s<d&&N(d,!0)&&(null!==p.match.fn||d>V().maskLength))break;d++}""==E(d).match.def&&(c=!1),d=u}if(!c)break}if(!c)return V().validPositions=ne.extend(!0,{},a),I(!0),!1}else t&&(V().validPositions[i]=ne.extend(!0,{},t));return I(!0),!0}function N(e,t){var n=b(e).match;if(""===n.def&&(n=E(e).match),null!=n.fn)return n.fn;if(!0!==t&&-1<e){var i=w(e);return i.length>1+(""===i[i.length-1].match.def?1:0)}return!1}function F(e,t){for(var n=e+1;""!==E(n).match.def&&(!0===t&&(!0!==E(n).match.newBlockMarker||!N(n))||!0!==t&&!N(n));)n++;return n}function H(e,t){var n,i=e;if(i<=0)return 0;for(;0<--i&&(!0===t&&!0!==E(i).match.newBlockMarker||!0!==t&&!N(i)&&((n=w(i)).length<2||2===n.length&&""===n[1].match.def)););return i}function O(e,t,n,i,r){if(i&&ne.isFunction(U.onBeforeWrite)){var o=U.onBeforeWrite.call(c,i,t,n,U);if(o){if(o.refreshFromBuffer){var s=o.refreshFromBuffer;S(!0===s?s:s.start,s.end,o.buffer||t),t=T(!0)}n!==re&&(n=o.caret!==re?o.caret:n)}}if(e!==re&&(e.inputmask._valueSet(t.join("")),n===re||i!==re&&"blur"===i.type?K(e,n,0===t.length):X(e,n),!0===r)){var a=ne(e),l=e.inputmask._valueGet();h=!0,a.trigger("input"),setTimeout(function(){l===B().join("")?a.trigger("cleared"):!0===Y(t)&&a.trigger("complete")},0)}}function W(e,t,n){if((t=t||E(e).match).placeholder!==re||!0===n)return ne.isFunction(t.placeholder)?t.placeholder(U):t.placeholder;if(null!==t.fn)return U.placeholder.charAt(e%U.placeholder.length);if(-1<e&&V().validPositions[e]===re){var i,r=w(e),o=[];if(r.length>1+(""===r[r.length-1].match.def?1:0))for(var s=0;s<r.length;s++)if(!0!==r[s].match.optionality&&!0!==r[s].match.optionalQuantifier&&(null===r[s].match.fn||i===re||!1!==r[s].match.fn.test(i.match.def,V(),e,!0,U))&&(o.push(r[s]),null===r[s].match.fn&&(i=r[s]),1<o.length&&/[0-9a-bA-Z]/.test(o[0].match.def)))return U.placeholder.charAt(e%U.placeholder.length)}return t.def}function r(e,t){if(se&&e.inputmask._valueGet()!==t){var n=T().slice(),i=e.inputmask._valueGet();i!==t&&(-1===A()&&i===B().join("")?n=[]:j(n),O(e,n))}else e.placeholder!==t&&(e.placeholder=t,""===e.placeholder&&e.removeAttribute("placeholder"))}var i,Q={on:function(e,t,o){var n=function(e){var t=this;if(t.inputmask===re&&"FORM"!==this.nodeName){var n=ne.data(t,"_inputmask_opts");n?new ue(n).mask(t):Q.off(t)}else{if("setvalue"===e.type||"FORM"===this.nodeName||!(t.disabled||t.readOnly&&!("keydown"===e.type&&e.ctrlKey&&67===e.keyCode||!1===U.tabThrough&&e.keyCode===ue.keyCode.TAB))){switch(e.type){case"input":if(!0===h)return h=!1,e.preventDefault();if(ae){var i=arguments;return setTimeout(function(){o.apply(t,i),X(t,t.inputmask.caretPos,re,!0)},0),!1}break;case"keydown":h=a=!1;break;case"keypress":if(!0===a)return e.preventDefault();a=!0;break;case"click":if(le||ce){var i=arguments;return setTimeout(function(){o.apply(t,i)},0),!1}}var r=o.apply(t,arguments);return!1===r&&(e.preventDefault(),e.stopPropagation()),r}e.preventDefault()}};e.inputmask.events[t]=e.inputmask.events[t]||[],e.inputmask.events[t].push(n),-1!==ne.inArray(t,["submit","reset"])?null!==e.form&&ne(e.form).on(t,n):ne(e).on(t,n)},off:function(i,e){var t;i.inputmask&&i.inputmask.events&&(e?(t=[])[e]=i.inputmask.events[e]:t=i.inputmask.events,ne.each(t,function(e,t){for(;0<t.length;){var n=t.pop();-1!==ne.inArray(e,["submit","reset"])?null!==i.form&&ne(i.form).off(e,n):ne(i).off(e,n)}delete i.inputmask.events[e]}))}},M={keydownEvent:function(e){var t=this,n=ne(t),i=e.keyCode,r=X(t);if(i===ue.keyCode.BACKSPACE||i===ue.keyCode.DELETE||ce&&i===ue.keyCode.BACKSPACE_SAFARI||e.ctrlKey&&i===ue.keyCode.X&&!he("cut"))e.preventDefault(),z(0,i,r),O(t,T(!0),V().p,e,t.inputmask._valueGet()!==T().join(""));else if(i===ue.keyCode.END||i===ue.keyCode.PAGE_DOWN){e.preventDefault();var o=F(A());X(t,e.shiftKey?r.begin:o,o,!0)}else i===ue.keyCode.HOME&&!e.shiftKey||i===ue.keyCode.PAGE_UP?(e.preventDefault(),X(t,0,e.shiftKey?r.begin:0,!0)):(U.undoOnEscape&&i===ue.keyCode.ESCAPE||90===i&&e.ctrlKey)&&!0!==e.altKey?(l(t,!0,!1,m.split("")),n.trigger("click")):i!==ue.keyCode.INSERT||e.shiftKey||e.ctrlKey?!0===U.tabThrough&&i===ue.keyCode.TAB&&(!0===e.shiftKey?(null===E(r.begin).match.fn&&(r.begin=F(r.begin)),r.end=H(r.begin,!0),r.begin=H(r.end,!0)):(r.begin=F(r.begin,!0),r.end=F(r.begin,!0),r.end<V().maskLength&&r.end--),r.begin<V().maskLength&&(e.preventDefault(),X(t,r.begin,r.end))):(U.insertMode=!U.insertMode,t.setAttribute("im-insert",U.insertMode));U.onKeyDown.call(this,e,T(),X(t).begin,U),v=-1!==ne.inArray(i,U.ignorables)},keypressEvent:function(e,t,n,i,r){var o=this,s=ne(o),a=e.which||e.charCode||e.keyCode;if(!(!0===t||e.ctrlKey&&e.altKey)&&(e.ctrlKey||e.metaKey||v))return a===ue.keyCode.ENTER&&m!==T().join("")&&(m=T().join(""),setTimeout(function(){s.trigger("change")},0)),!0;if(a){46===a&&!1===e.shiftKey&&""!==U.radixPoint&&(a=U.radixPoint.charCodeAt(0));var l,c=t?{begin:r,end:r}:X(o),u=String.fromCharCode(a),h=0;if(U._radixDance&&U.numericInput){var d=T().indexOf(U.radixPoint.charAt(0))+1;c.begin<=d&&(a===U.radixPoint.charCodeAt(0)&&(h=1),c.begin-=1,c.end-=1)}V().writeOutBuffer=!0;var f=G(c,u,i);if(!1!==f&&(I(!0),l=f.caret!==re?f.caret:F(f.pos.begin?f.pos.begin:f.pos),V().p=l),l=(U.numericInput&&f.caret===re?H(l):l)+h,!1!==n&&(setTimeout(function(){U.onKeyValidation.call(o,a,f,U)},0),V().writeOutBuffer&&!1!==f)){var p=T();O(o,p,l,e,!0!==t)}if(e.preventDefault(),t)return!1!==f&&(f.forwardPosition=l),f}},pasteEvent:function(e){var t,n=e.originalEvent||e,i=(ne(this),this.inputmask._valueGet(!0)),r=X(this);_&&(t=r.end,r.end=r.begin,r.begin=t);var o=i.substr(0,r.begin),s=i.substr(r.end,i.length);if(o===(_?B().reverse():B()).slice(0,r.begin).join("")&&(o=""),s===(_?B().reverse():B()).slice(r.end).join("")&&(s=""),ie.clipboardData&&ie.clipboardData.getData)i=o+ie.clipboardData.getData("Text")+s;else{if(!n.clipboardData||!n.clipboardData.getData)return!0;i=o+n.clipboardData.getData("text/plain")+s}var a=i;if(ne.isFunction(U.onBeforePaste)){if(!1===(a=U.onBeforePaste.call(c,i,U)))return e.preventDefault();a||(a=i)}return l(this,!1,!1,a.toString().split("")),O(this,T(),F(A()),e,m!==T().join("")),e.preventDefault()},inputFallBackEvent:function(e){var t,n,i=this,r=i.inputmask._valueGet();if(T().join("")!==r){var o=X(i);if(r=function(e,t,n){if(le){var i=t.replace(T().join(""),"");if(1===i.length){var r=t.split("");r.splice(n.begin,0,i),t=r.join("")}}return t}(0,(n=o,"."===(t=r).charAt(n.begin-1)&&""!==U.radixPoint&&((t=t.split(""))[n.begin-1]=U.radixPoint.charAt(0),t=t.join("")),r=t),o),T().join("")!==r){var s=T().join(""),a=!U.numericInput&&r.length>s.length?-1:0,l=r.substr(0,o.begin),c=r.substr(o.begin),u=s.substr(0,o.begin+a),h=s.substr(o.begin+a),d=o,f="",p=!1;if(l!==u){var m,g=(p=l.length>=u.length)?l.length:u.length;for(m=0;l.charAt(m)===u.charAt(m)&&m<g;m++);p&&(d.begin=m-a,f+=l.slice(m,d.end))}if(c!==h&&(c.length>h.length?f+=c.slice(0,1):c.length<h.length&&(d.end+=h.length-c.length,p||""===U.radixPoint||""!==c||l.charAt(d.begin+a-1)!==U.radixPoint||(d.begin--,f=U.radixPoint))),O(i,T(),{begin:d.begin+a,end:d.end+a}),0<f.length)ne.each(f.split(""),function(e,t){var n=new ne.Event("keypress");n.which=t.charCodeAt(0),v=!1,M.keypressEvent.call(i,n)});else{d.begin===d.end-1&&(d.begin=H(d.begin+1),d.begin===d.end-1?X(i,d.begin):X(i,d.begin,d.end));var _=new ne.Event("keydown");_.keyCode=U.numericInput?ue.keyCode.BACKSPACE:ue.keyCode.DELETE,M.keydownEvent.call(i,_)}e.preventDefault()}}},beforeInputEvent:function(e){if(e.cancelable){var i=this;switch(e.inputType){case"insertText":return ne.each(e.data.split(""),function(e,t){var n=new ne.Event("keypress");n.which=t.charCodeAt(0),v=!1,M.keypressEvent.call(i,n)}),e.preventDefault();case"deleteContentBackward":var t=new ne.Event("keydown");return t.keyCode=ue.keyCode.BACKSPACE,M.keydownEvent.call(i,t),e.preventDefault();case"deleteContentForward":var t=new ne.Event("keydown");return t.keyCode=ue.keyCode.DELETE,M.keydownEvent.call(i,t),e.preventDefault()}}},setValueEvent:function(e){this.inputmask.refreshValue=!1;var t=e&&e.detail?e.detail[0]:arguments[1],t=t||this.inputmask._valueGet(!0);ne.isFunction(U.onBeforeMask)&&(t=U.onBeforeMask.call(c,t,U)||t),l(this,!0,!1,t=t.split("")),m=T().join(""),(U.clearMaskOnLostFocus||U.clearIncomplete)&&this.inputmask._valueGet()===B().join("")&&this.inputmask._valueSet("")},focusEvent:function(e){var t=this.inputmask._valueGet();U.showMaskOnFocus&&(!U.showMaskOnHover||U.showMaskOnHover&&""===t)&&(this.inputmask._valueGet()!==T().join("")?O(this,T(),F(A())):!1===n&&X(this,F(A()))),!0===U.positionCaretOnTab&&!1===n&&M.clickEvent.apply(this,[e,!0]),m=T().join("")},mouseleaveEvent:function(e){n=!1,U.clearMaskOnLostFocus&&oe.activeElement!==this&&r(this,s)},clickEvent:function(e,c){var u=this;setTimeout(function(){if(oe.activeElement===u){var e=X(u);if(c&&(_?e.end=e.begin:e.begin=e.end),e.begin===e.end)switch(U.positionCaretOnClick){case"none":break;case"select":X(u,0,T().length);break;case"ignore":X(u,F(A()));break;case"radixFocus":if(function(e){if(""!==U.radixPoint){var t=V().validPositions;if(t[e]===re||t[e].input===W(e)){if(e<F(-1))return!0;var n=ne.inArray(U.radixPoint,T());if(-1!==n){for(var i in t)if(n<i&&t[i].input!==W(i))return!1;return!0}}}return!1}(e.begin)){var t=T().join("").indexOf(U.radixPoint);X(u,U.numericInput?F(t):t);break}default:var n=e.begin,i=A(n,!0),r=F(i);if(n<r)X(u,N(n,!0)||N(n-1,!0)?n:F(n));else{var o=V().validPositions[i],s=b(r,o?o.match.locator:re,o),a=W(r,s.match);if(""!==a&&T()[r]!==a&&!0!==s.match.optionalQuantifier&&!0!==s.match.newBlockMarker||!N(r,U.keepStatic)&&s.match.def===a){var l=F(r);(l<=n||n===r)&&(r=l)}X(u,r)}}}},0)},cutEvent:function(e){ne(this);var t=X(this),n=e.originalEvent||e,i=ie.clipboardData||n.clipboardData,r=_?T().slice(t.end,t.begin):T().slice(t.begin,t.end);i.setData("text",_?r.reverse().join(""):r.join("")),oe.execCommand&&oe.execCommand("copy"),z(0,ue.keyCode.DELETE,t),O(this,T(),V().p,e,m!==T().join(""))},blurEvent:function(e){var t=ne(this);if(this.inputmask){r(this,s);var n=this.inputmask._valueGet(),i=T().slice();""===n&&f===re||(U.clearMaskOnLostFocus&&(-1===A()&&n===B().join("")?i=[]:j(i)),!1===Y(i)&&(setTimeout(function(){t.trigger("incomplete")},0),U.clearIncomplete&&(I(),i=U.clearMaskOnLostFocus?[]:B().slice())),O(this,i,re,e)),m!==T().join("")&&(m=i.join(""),t.trigger("change"))}},mouseenterEvent:function(e){n=!0,oe.activeElement!==this&&U.showMaskOnHover&&r(this,(_?T().slice().reverse():T()).join(""))},submitEvent:function(e){m!==T().join("")&&o.trigger("change"),U.clearMaskOnLostFocus&&-1===A()&&u.inputmask._valueGet&&u.inputmask._valueGet()===B().join("")&&u.inputmask._valueSet(""),U.clearIncomplete&&!1===Y(T())&&u.inputmask._valueSet(""),U.removeMaskOnSubmit&&(u.inputmask._valueSet(u.inputmask.unmaskedvalue(),!0),setTimeout(function(){O(u,T())},0))},resetEvent:function(e){u.inputmask.refreshValue=!0,setTimeout(function(){o.trigger("setvalue")},0)}};function l(s,e,a,t,n){var l=this||s.inputmask,c=t.slice(),u="",h=-1,d=re;if(I(),a||!0===U.autoUnmask)h=F(h);else{var i=B().slice(0,F(-1)).join(""),r=c.join("").match(new RegExp("^"+ue.escapeRegex(i),"g"));r&&0<r.length&&(c.splice(0,r.length*i.length),h=F(h))}-1===h?(V().p=F(h),h=0):V().p=h,l.caretPos={begin:h},ne.each(c,function(e,t){if(t!==re)if(V().validPositions[e]===re&&c[e]===W(e)&&N(e,!0)&&!1===G(e,c[e],!0,re,re,!0))V().p++;else{var n=new ne.Event("_checkval");n.which=t.charCodeAt(0),u+=t;var i=A(re,!0);r=h,o=u,-1===p(!0,0,!1).slice(r,F(r)).join("").replace(/'/g,"").indexOf(o)||N(r)||!(E(r).match.nativeDef===o.charAt(0)||null===E(r).match.fn&&E(r).match.nativeDef==="'"+o.charAt(0)||" "===E(r).match.nativeDef&&(E(r+1).match.nativeDef===o.charAt(0)||null===E(r+1).match.fn&&E(r+1).match.nativeDef==="'"+o.charAt(0)))?(d=M.keypressEvent.call(s,n,!0,!1,a,l.caretPos.begin))&&(h=l.caretPos.begin+1,u=""):d=M.keypressEvent.call(s,n,!0,!1,a,i+1),d&&(O(re,T(),d.forwardPosition,n,!1),l.caretPos={begin:d.forwardPosition,end:d.forwardPosition})}var r,o}),e&&O(s,T(),d?d.forwardPosition:re,n||new ne.Event("checkval"),n&&"input"===n.type)}function Z(e){if(e){if(e.inputmask===re)return e.value;e.inputmask&&e.inputmask.refreshValue&&M.setValueEvent.call(e)}var t=[],n=V().validPositions;for(var i in n)n[i].match&&null!=n[i].match.fn&&t.push(n[i].input);var r=0===t.length?"":(_?t.reverse():t).join("");if(ne.isFunction(U.onUnMask)){var o=(_?T().slice().reverse():T()).join("");r=U.onUnMask.call(c,o,r,U)}return r}function X(e,t,n,i){function r(e){return!_||"number"!=typeof e||U.greedy&&""===U.placeholder||!u||(e=u.inputmask._valueGet().length-e),e}var o;if(t===re)return"selectionStart"in e?(t=e.selectionStart,n=e.selectionEnd):ie.getSelection?(o=ie.getSelection().getRangeAt(0)).commonAncestorContainer.parentNode!==e&&o.commonAncestorContainer!==e||(t=o.startOffset,n=o.endOffset):oe.selection&&oe.selection.createRange&&(o=oe.selection.createRange(),t=0-o.duplicate().moveStart("character",-e.inputmask._valueGet().length),n=t+o.text.length),{begin:i?t:r(t),end:i?n:r(n)};if(ne.isArray(t)&&(n=_?t[0]:t[1],t=_?t[1]:t[0]),t.begin!==re&&(n=_?t.begin:t.end,t=_?t.end:t.begin),"number"==typeof t){t=i?t:r(t),n="number"==typeof(n=i?n:r(n))?n:t;var s=parseInt(((e.ownerDocument.defaultView||ie).getComputedStyle?(e.ownerDocument.defaultView||ie).getComputedStyle(e,null):e.currentStyle).fontSize)*n;if(e.scrollLeft=s>e.scrollWidth?s:0,e.inputmask.caretPos={begin:t,end:n},e===oe.activeElement){if("selectionStart"in e)e.selectionStart=t,e.selectionEnd=n;else if(ie.getSelection){if(o=oe.createRange(),e.firstChild===re||null===e.firstChild){var a=oe.createTextNode("");e.appendChild(a)}o.setStart(e.firstChild,t<e.inputmask._valueGet().length?t:e.inputmask._valueGet().length),o.setEnd(e.firstChild,n<e.inputmask._valueGet().length?n:e.inputmask._valueGet().length),o.collapse(!0);var l=ie.getSelection();l.removeAllRanges(),l.addRange(o)}else e.createTextRange&&((o=e.createTextRange()).collapse(!0),o.moveEnd("character",n),o.moveStart("character",t),o.select());K(e,{begin:t,end:n})}}}function P(e){var t,n,i=p(!0,A(),!0,!0),r=i.length,o=A(),s={},a=V().validPositions[o],l=a!==re?a.locator.slice():re;for(t=o+1;t<i.length;t++)n=b(t,l,t-1),l=n.locator.slice(),s[t]=ne.extend(!0,{},n);var c=a&&a.alternation!==re?a.locator[a.alternation]:re;for(t=r-1;o<t&&((n=s[t]).match.optionality||n.match.optionalQuantifier&&n.match.newBlockMarker||c&&(c!==s[t].locator[a.alternation]&&null!=n.match.fn||null===n.match.fn&&n.locator[a.alternation]&&k(n.locator[a.alternation].toString().split(","),c.toString().split(","))&&""!==w(t)[0].def))&&i[t]===W(t,n.match);t--)r--;return e?{l:r,def:s[r]?s[r].match:re}:r}function j(e){for(var t,n=p(!(e.length=0),0,!0,re,!0);(t=n.shift())!==re;)e.push(t);return e}function Y(e){if(ne.isFunction(U.isComplete))return U.isComplete(e,U);if("*"===U.repeat)return re;var t=!1,n=P(!0),i=H(n.l);if(n.def===re||n.def.newBlockMarker||n.def.optionality||n.def.optionalQuantifier){t=!0;for(var r=0;r<=i;r++){var o=b(r).match;if(null!==o.fn&&V().validPositions[r]===re&&!0!==o.optionality&&!0!==o.optionalQuantifier||null===o.fn&&e[r]!==W(r,o)){t=!1;break}}}return t}function z(e,t,n,i,r){if((U.numericInput||_)&&(t===ue.keyCode.BACKSPACE?t=ue.keyCode.DELETE:t===ue.keyCode.DELETE&&(t=ue.keyCode.BACKSPACE),_)){var o=n.end;n.end=n.begin,n.begin=o}if(t===ue.keyCode.BACKSPACE&&n.end-n.begin<1?(n.begin=H(n.begin),V().validPositions[n.begin]!==re&&V().validPositions[n.begin].input===U.groupSeparator&&n.begin--):t===ue.keyCode.DELETE&&n.begin===n.end&&(n.end=N(n.end,!0)&&V().validPositions[n.end]&&V().validPositions[n.end].input!==U.radixPoint?n.end+1:F(n.end)+1,V().validPositions[n.begin]!==re&&V().validPositions[n.begin].input===U.groupSeparator&&n.end++),R(n),!0!==i&&!1!==U.keepStatic||null!==U.regex){var s=L(!0);if(s){var a=s.caret!==re?s.caret:s.pos?F(s.pos.begin?s.pos.begin:s.pos):A(-1,!0);(t!==ue.keyCode.DELETE||n.begin>a)&&n.begin}}var l=A(n.begin,!0);if(l<n.begin||-1===n.begin)V().p=F(l);else if(!0!==i&&(V().p=n.begin,!0!==r))for(;V().p<l&&V().validPositions[V().p]===re;)V().p++}function J(c){var u=(c.ownerDocument.defaultView||ie).getComputedStyle(c,null),e=oe.createElement("div");e.style.width=u.width,e.style.textAlign=u.textAlign,f=oe.createElement("div"),(c.inputmask.colorMask=f).className="im-colormask",c.parentNode.insertBefore(f,c),c.parentNode.removeChild(c),f.appendChild(c),f.appendChild(e),c.style.left=e.offsetLeft+"px",ne(f).on("mouseleave",function(e){return M.mouseleaveEvent.call(c,[e])}),ne(f).on("mouseenter",function(e){return M.mouseenterEvent.call(c,[e])}),ne(f).on("click",function(e){return X(c,function(e){var t,n=oe.createElement("span");for(var i in u)isNaN(i)&&-1!==i.indexOf("font")&&(n.style[i]=u[i]);n.style.textTransform=u.textTransform,n.style.letterSpacing=u.letterSpacing,n.style.position="absolute",n.style.height="auto",n.style.width="auto",n.style.visibility="hidden",n.style.whiteSpace="nowrap",oe.body.appendChild(n);var r,o=c.inputmask._valueGet(),s=0;for(t=0,r=o.length;t<=r;t++){if(n.innerHTML+=o.charAt(t)||"_",n.offsetWidth>=e){var a=e-s,l=n.offsetWidth-e;n.innerHTML=o.charAt(t),a-=n.offsetWidth/3,t=a<l?t-1:t;break}s=n.offsetWidth}return oe.body.removeChild(n),t}(e.clientX)),M.clickEvent.call(c,[e])})}function K(e,t,n){var i,r,o,s=[],a=!1,l=0;function c(e){if(e===re&&(e=""),a||null!==i.fn&&r.input!==re)if(a&&(null!==i.fn&&r.input!==re||""===i.def)){a=!1;var t=s.length;s[t-1]=s[t-1]+"</span>",s.push(e)}else s.push(e);else a=!0,s.push("<span class='im-static'>"+e)}if(f!==re){var u=T();if(t===re?t=X(e):t.begin===re&&(t={begin:t,end:t}),!0!==n){for(var h=A();V().validPositions[l]?(r=V().validPositions[l],i=r.match,o=r.locator.slice(),c(u[l])):(r=b(l,o,l-1),i=r.match,o=r.locator.slice(),!1===U.jitMasking||l<h||"number"==typeof U.jitMasking&&isFinite(U.jitMasking)&&U.jitMasking>l?c(W(l,i)):a=!1),l++,(g===re||l<g)&&(null!==i.fn||""!==i.def)||l<h||a;);a&&c(),oe.activeElement===e&&(s.splice(t.begin,0,t.begin===t.end||t.end>V().maskLength?'<mark class="im-caret" style="border-right-width: 1px;border-right-style: solid;">':'<mark class="im-caret-select">'),s.splice(t.end+1,0,"</mark>"))}var d=f.getElementsByTagName("div")[0];d.innerHTML=s.join(""),e.inputmask.positionColorMask(e,d)}}if(ue.prototype.positionColorMask=function(e,t){e.style.left=t.offsetLeft+"px"},e!==re)switch(e.action){case"isComplete":return u=e.el,Y(T());case"unmaskedvalue":return u!==re&&e.value===re||(i=e.value,i=(ne.isFunction(U.onBeforeMask)&&U.onBeforeMask.call(c,i,U)||i).split(""),l.call(this,re,!1,!1,i),ne.isFunction(U.onBeforeWrite)&&U.onBeforeWrite.call(c,re,T(),0,U)),Z(u);case"mask":!function(e){function t(e,l){function t(e){var t,n,i;function r(e){if(ne.valHooks&&(ne.valHooks[e]===re||!0!==ne.valHooks[e].inputmaskpatch)){var n=ne.valHooks[e]&&ne.valHooks[e].get?ne.valHooks[e].get:function(e){return e.value},r=ne.valHooks[e]&&ne.valHooks[e].set?ne.valHooks[e].set:function(e,t){return e.value=t,e};ne.valHooks[e]={get:function(e){if(e.inputmask){if(e.inputmask.opts.autoUnmask)return e.inputmask.unmaskedvalue();var t=n(e);return-1!==A(re,re,e.inputmask.maskset.validPositions)||!0!==l.nullable?t:""}return n(e)},set:function(e,t){var n,i=ne(e);return n=r(e,t),e.inputmask&&i.trigger("setvalue",[t]),n},inputmaskpatch:!0}}}function o(){return this.inputmask?this.inputmask.opts.autoUnmask?this.inputmask.unmaskedvalue():-1!==A()||!0!==l.nullable?oe.activeElement===this&&l.clearMaskOnLostFocus?(_?j(T().slice()).reverse():j(T().slice())).join(""):t.call(this):"":t.call(this)}function s(e){n.call(this,e),this.inputmask&&ne(this).trigger("setvalue",[e])}if(!e.inputmask.__valueGet){if(!0!==l.noValuePatching){if(Object.getOwnPropertyDescriptor){"function"!=typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"==typeof"test".__proto__?function(e){return e.__proto__}:function(e){return e.constructor.prototype});var a=Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),"value"):re;a&&a.get&&a.set?(t=a.get,n=a.set,Object.defineProperty(e,"value",{get:o,set:s,configurable:!0})):"INPUT"!==e.tagName&&(t=function(){return this.textContent},n=function(e){this.textContent=e},Object.defineProperty(e,"value",{get:o,set:s,configurable:!0}))}else oe.__lookupGetter__&&e.__lookupGetter__("value")&&(t=e.__lookupGetter__("value"),n=e.__lookupSetter__("value"),e.__defineGetter__("value",o),e.__defineSetter__("value",s));e.inputmask.__valueGet=t,e.inputmask.__valueSet=n}e.inputmask._valueGet=function(e){return _&&!0!==e?t.call(this.el).split("").reverse().join(""):t.call(this.el)},e.inputmask._valueSet=function(e,t){n.call(this.el,null===e||e===re?"":!0!==t&&_?e.split("").reverse().join(""):e)},t===re&&(t=function(){return this.value},n=function(e){this.value=e},r(e.type),i=e,Q.on(i,"mouseenter",function(e){var t=ne(this),n=this.inputmask._valueGet();n!==T().join("")&&t.trigger("setvalue")}))}}var n=e.getAttribute("type"),i="INPUT"===e.tagName&&-1!==ne.inArray(n,l.supportsInputType)||e.isContentEditable||"TEXTAREA"===e.tagName;if(!i)if("INPUT"===e.tagName){var r=oe.createElement("input");r.setAttribute("type",n),i="text"===r.type,r=null}else i="partial";return!1!==i?t(e):e.inputmask=re,i}Q.off(e);var n=t(e,U);if(!1!==n&&(o=ne(u=e),s=u.placeholder,-1===(g=u!==re?u.maxLength:re)&&(g=re),!0===U.colorMask&&J(u),ae&&("inputmode"in u&&(u.inputmode=U.inputmode,u.setAttribute("inputmode",U.inputmode)),!0===U.disablePredictiveText&&("autocorrect"in u?u.autocorrect=!1:(!0!==U.colorMask&&J(u),u.type="password"))),!0===n&&(u.setAttribute("im-insert",U.insertMode),Q.on(u,"submit",M.submitEvent),Q.on(u,"reset",M.resetEvent),Q.on(u,"blur",M.blurEvent),Q.on(u,"focus",M.focusEvent),!0!==U.colorMask&&(Q.on(u,"click",M.clickEvent),Q.on(u,"mouseleave",M.mouseleaveEvent),Q.on(u,"mouseenter",M.mouseenterEvent)),Q.on(u,"paste",M.pasteEvent),Q.on(u,"cut",M.cutEvent),Q.on(u,"complete",U.oncomplete),Q.on(u,"incomplete",U.onincomplete),Q.on(u,"cleared",U.oncleared),ae||!0===U.inputEventOnly?u.removeAttribute("maxLength"):(Q.on(u,"keydown",M.keydownEvent),Q.on(u,"keypress",M.keypressEvent)),Q.on(u,"input",M.inputFallBackEvent),Q.on(u,"beforeinput",M.beforeInputEvent)),Q.on(u,"setvalue",M.setValueEvent),m=B().join(""),""!==u.inputmask._valueGet(!0)||!1===U.clearMaskOnLostFocus||oe.activeElement===u)){var i=ne.isFunction(U.onBeforeMask)&&U.onBeforeMask.call(c,u.inputmask._valueGet(!0),U)||u.inputmask._valueGet(!0);""!==i&&l(u,!0,!1,i.split(""));var r=T().slice();m=r.join(""),!1===Y(r)&&U.clearIncomplete&&I(),U.clearMaskOnLostFocus&&oe.activeElement!==u&&(-1===A()?r=[]:j(r)),(!1===U.clearMaskOnLostFocus||U.showMaskOnFocus&&oe.activeElement===u||""!==u.inputmask._valueGet(!0))&&O(u,r),oe.activeElement===u&&X(u,F(A()))}}(u);break;case"format":return i=(ne.isFunction(U.onBeforeMask)&&U.onBeforeMask.call(c,e.value,U)||e.value).split(""),l.call(this,re,!0,!1,i),e.metadata?{value:_?T().slice().reverse().join(""):T().join(""),metadata:de.call(this,{action:"getmetadata"},t,U)}:_?T().slice().reverse().join(""):T().join("");case"isValid":e.value?(i=e.value.split(""),l.call(this,re,!0,!0,i)):e.value=T().join("");for(var q=T(),$=P(),ee=q.length-1;$<ee&&!N(ee);ee--);return q.splice($,ee+1-$),Y(q)&&e.value===T().join("");case"getemptymask":return B().join("");case"remove":return u&&u.inputmask&&(ne.data(u,"_inputmask_opts",null),o=ne(u),u.inputmask._valueSet(U.autoUnmask?Z(u):u.inputmask._valueGet(!0)),Q.off(u),u.inputmask.colorMask&&((f=u.inputmask.colorMask).removeChild(u),f.parentNode.insertBefore(u,f),f.parentNode.removeChild(f)),Object.getOwnPropertyDescriptor&&Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(u),"value")&&u.inputmask.__valueGet&&Object.defineProperty(u,"value",{get:u.inputmask.__valueGet,set:u.inputmask.__valueSet,configurable:!0}):oe.__lookupGetter__&&u.__lookupGetter__("value")&&u.inputmask.__valueGet&&(u.__defineGetter__("value",u.inputmask.__valueGet),u.__defineSetter__("value",u.inputmask.__valueSet)),u.inputmask=re),u;case"getmetadata":if(ne.isArray(t.metadata)){var te=p(!0,0,!1).join("");return ne.each(t.metadata,function(e,t){if(t.mask===te)return te=t,!1}),te}return t.metadata}}return ue.prototype={dataAttribute:"data-inputmask",defaults:{placeholder:"_",optionalmarker:["[","]"],quantifiermarker:["{","}"],groupmarker:["(",")"],alternatormarker:"|",escapeChar:"\\",mask:null,regex:null,oncomplete:ne.noop,onincomplete:ne.noop,oncleared:ne.noop,repeat:0,greedy:!1,autoUnmask:!1,removeMaskOnSubmit:!1,clearMaskOnLostFocus:!0,insertMode:!0,clearIncomplete:!1,alias:null,onKeyDown:ne.noop,onBeforeMask:null,onBeforePaste:function(e,t){return ne.isFunction(t.onBeforeMask)?t.onBeforeMask.call(this,e,t):e},onBeforeWrite:null,onUnMask:null,showMaskOnFocus:!0,showMaskOnHover:!0,onKeyValidation:ne.noop,skipOptionalPartCharacter:" ",numericInput:!1,rightAlign:!1,undoOnEscape:!0,radixPoint:"",_radixDance:!1,groupSeparator:"",keepStatic:null,positionCaretOnTab:!0,tabThrough:!1,supportsInputType:["text","tel","password","search"],ignorables:[8,9,13,19,27,33,34,35,36,37,38,39,40,45,46,93,112,113,114,115,116,117,118,119,120,121,122,123,0,229],isComplete:null,preValidation:null,postValidation:null,staticDefinitionSymbol:re,jitMasking:!1,nullable:!0,inputEventOnly:!1,noValuePatching:!1,positionCaretOnClick:"lvp",casing:null,inputmode:"verbatim",colorMask:!1,disablePredictiveText:!1,importDataAttributes:!0,shiftPositions:!0},definitions:{9:{validator:"[0-9１-９]",definitionSymbol:"*"},a:{validator:"[A-Za-zА-яЁёÀ-ÿµ]",definitionSymbol:"*"},"*":{validator:"[0-9１-９A-Za-zА-яЁёÀ-ÿµ]"}},aliases:{},masksCache:{},mask:function(e){var r=this;return"string"==typeof e&&(e=oe.getElementById(e)||oe.querySelectorAll(e)),e=e.nodeName?[e]:e,ne.each(e,function(e,t){var n=ne.extend(!0,{},r.opts);if(function(n,e,i,r){if(!0===e.importDataAttributes){var t,o,s,a,l=n.getAttribute(r);function c(e,t){null!==(t=t!==re?t:n.getAttribute(r+"-"+e))&&("string"==typeof t&&(0===e.indexOf("on")?t=ie[t]:"false"===t?t=!1:"true"===t&&(t=!0)),i[e]=t)}if(l&&""!==l&&(l=l.replace(/'/g,'"'),o=JSON.parse("{"+l+"}")),o)for(a in s=re,o)if("alias"===a.toLowerCase()){s=o[a];break}for(t in c("alias",s),i.alias&&u(i.alias,i,e),e){if(o)for(a in s=re,o)if(a.toLowerCase()===t.toLowerCase()){s=o[a];break}c(t,s)}}return ne.extend(!0,e,i),("rtl"===n.dir||e.rightAlign)&&(n.style.textAlign="right"),("rtl"===n.dir||e.numericInput)&&(n.dir="ltr",n.removeAttribute("dir"),e.isRTL=!0),Object.keys(i).length}(t,n,ne.extend(!0,{},r.userOptions),r.dataAttribute)){var i=o(n,r.noMasksCache);i!==re&&(t.inputmask!==re&&(t.inputmask.opts.autoUnmask=!0,t.inputmask.remove()),t.inputmask=new ue(re,re,!0),t.inputmask.opts=n,t.inputmask.noMasksCache=r.noMasksCache,t.inputmask.userOptions=ne.extend(!0,{},r.userOptions),t.inputmask.isRTL=n.isRTL||n.numericInput,(t.inputmask.el=t).inputmask.maskset=i,ne.data(t,"_inputmask_opts",n),de.call(t.inputmask,{action:"mask"}))}}),e&&e[0]&&e[0].inputmask||this},option:function(e,t){return"string"==typeof e?this.opts[e]:"object"==typeof e?(ne.extend(this.userOptions,e),this.el&&!0!==t&&this.mask(this.el),this):void 0},unmaskedvalue:function(e){return this.maskset=this.maskset||o(this.opts,this.noMasksCache),de.call(this,{action:"unmaskedvalue",value:e})},remove:function(){return de.call(this,{action:"remove"})},getemptymask:function(){return this.maskset=this.maskset||o(this.opts,this.noMasksCache),de.call(this,{action:"getemptymask"})},hasMaskedValue:function(){return!this.opts.autoUnmask},isComplete:function(){return this.maskset=this.maskset||o(this.opts,this.noMasksCache),de.call(this,{action:"isComplete"})},getmetadata:function(){return this.maskset=this.maskset||o(this.opts,this.noMasksCache),de.call(this,{action:"getmetadata"})},isValid:function(e){return this.maskset=this.maskset||o(this.opts,this.noMasksCache),de.call(this,{action:"isValid",value:e})},format:function(e,t){return this.maskset=this.maskset||o(this.opts,this.noMasksCache),de.call(this,{action:"format",value:e,metadata:t})},setValue:function(e){this.el&&ne(this.el).trigger("setvalue",[e])},analyseMask:function(e,o,s){var t,n,i,r,a,l,c=/(?:[?*+]|\{[0-9\+\*]+(?:,[0-9\+\*]*)?(?:\|[0-9\+\*]*)?\})|[^.?*+^${[]()|\\]+|./g,u=/\[\^?]?(?:[^\\\]]+|\\[\S\s]?)*]?|\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9][0-9]*|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}|c[A-Za-z]|[\S\s]?)|\((?:\?[:=!]?)?|(?:[?*+]|\{[0-9]+(?:,[0-9]*)?\})\??|[^.?*+^${[()|\\]+|./g,h=!1,d=new m,f=[],p=[];function m(e,t,n,i){this.matches=[],this.openGroup=e||!1,this.alternatorGroup=!1,this.isGroup=e||!1,this.isOptional=t||!1,this.isQuantifier=n||!1,this.isAlternator=i||!1,this.quantifier={min:1,max:1}}function g(n,e,i){i=i!==re?i:n.matches.length;var r=n.matches[i-1];if(o)0===e.indexOf("[")||h&&/\\d|\\s|\\w]/i.test(e)||"."===e?n.matches.splice(i++,0,{fn:new RegExp(e,s.casing?"i":""),optionality:!1,newBlockMarker:r===re?"master":r.def!==e,casing:null,def:e,placeholder:re,nativeDef:e}):(h&&(e=e[e.length-1]),ne.each(e.split(""),function(e,t){r=n.matches[i-1],n.matches.splice(i++,0,{fn:null,optionality:!1,newBlockMarker:r===re?"master":r.def!==t&&null!==r.fn,casing:null,def:s.staticDefinitionSymbol||t,placeholder:s.staticDefinitionSymbol!==re?t:re,nativeDef:(h?"'":"")+t})})),h=!1;else{var t=(s.definitions?s.definitions[e]:re)||ue.prototype.definitions[e];t&&!h?n.matches.splice(i++,0,{fn:t.validator?"string"==typeof t.validator?new RegExp(t.validator,s.casing?"i":""):new function(){this.test=t.validator}:new RegExp("."),optionality:!1,newBlockMarker:r===re?"master":r.def!==(t.definitionSymbol||e),casing:t.casing,def:t.definitionSymbol||e,placeholder:t.placeholder,nativeDef:e}):(n.matches.splice(i++,0,{fn:null,optionality:!1,newBlockMarker:r===re?"master":r.def!==e&&null!==r.fn,casing:null,def:s.staticDefinitionSymbol||e,placeholder:s.staticDefinitionSymbol!==re?e:re,nativeDef:(h?"'":"")+e}),h=!1)}}function _(){if(0<f.length){if(g(r=f[f.length-1],n),r.isAlternator){a=f.pop();for(var e=0;e<a.matches.length;e++)a.matches[e].isGroup&&(a.matches[e].isGroup=!1);0<f.length?(r=f[f.length-1]).matches.push(a):d.matches.push(a)}}else g(d,n)}function v(e){var t=new m(!0);return t.openGroup=!1,t.matches=e,t}for(o&&(s.optionalmarker[0]=re,s.optionalmarker[1]=re);t=o?u.exec(e):c.exec(e);){if(n=t[0],o)switch(n.charAt(0)){case"?":n="{0,1}";break;case"+":case"*":n="{"+n+"}"}if(h)_();else switch(n.charAt(0)){case"(?=":case"(?!":case"(?<=":case"(?<!":break;case s.escapeChar:h=!0,o&&_();break;case s.optionalmarker[1]:case s.groupmarker[1]:if((i=f.pop()).openGroup=!1,i!==re)if(0<f.length){if((r=f[f.length-1]).matches.push(i),r.isAlternator){a=f.pop();for(var y=0;y<a.matches.length;y++)a.matches[y].isGroup=!1,a.matches[y].alternatorGroup=!1;0<f.length?(r=f[f.length-1]).matches.push(a):d.matches.push(a)}}else d.matches.push(i);else _();break;case s.optionalmarker[0]:f.push(new m(!1,!0));break;case s.groupmarker[0]:f.push(new m(!0));break;case s.quantifiermarker[0]:var b=new m(!1,!1,!0),C=(n=n.replace(/[{}]/g,"")).split("|"),I=C[0].split(","),A=isNaN(I[0])?I[0]:parseInt(I[0]),x=1===I.length?A:isNaN(I[1])?I[1]:parseInt(I[1]);"*"!==A&&"+"!==A||(A="*"===x?0:1),b.quantifier={min:A,max:x,jit:C[1]};var E=0<f.length?f[f.length-1].matches:d.matches;if((t=E.pop()).isAlternator){E.push(t),E=t.matches;var w=new m(!0),B=E.pop();E.push(w),E=w.matches,t=B}t.isGroup||(t=v([t])),E.push(t),E.push(b);break;case s.alternatormarker:function T(e){var t=e.pop();return t.isQuantifier&&(t=v([e.pop(),t])),t}if(0<f.length){var S=(r=f[f.length-1]).matches[r.matches.length-1];l=r.openGroup&&(S.matches===re||!1===S.isGroup&&!1===S.isAlternator)?f.pop():T(r.matches)}else l=T(d.matches);if(l.isAlternator)f.push(l);else if(l.alternatorGroup?(a=f.pop(),l.alternatorGroup=!1):a=new m(!1,!1,!1,!0),a.matches.push(l),f.push(a),l.openGroup){var k=new m(!(l.openGroup=!1));k.alternatorGroup=!0,f.push(k)}break;default:_()}}for(;0<f.length;)i=f.pop(),d.matches.push(i);return 0<d.matches.length&&(function i(r){r&&r.matches&&ne.each(r.matches,function(e,t){var n=r.matches[e+1];(n===re||n.matches===re||!1===n.isQuantifier)&&t&&t.isGroup&&(t.isGroup=!1,o||(g(t,s.groupmarker[0],0),!0!==t.openGroup&&g(t,s.groupmarker[1]))),i(t)})}(d),p.push(d)),(s.numericInput||s.isRTL)&&function e(t){for(var n in t.matches=t.matches.reverse(),t.matches)if(t.matches.hasOwnProperty(n)){var i=parseInt(n);if(t.matches[n].isQuantifier&&t.matches[i+1]&&t.matches[i+1].isGroup){var r=t.matches[n];t.matches.splice(n,1),t.matches.splice(i+1,0,r)}t.matches[n].matches!==re?t.matches[n]=e(t.matches[n]):t.matches[n]=((o=t.matches[n])===s.optionalmarker[0]?o=s.optionalmarker[1]:o===s.optionalmarker[1]?o=s.optionalmarker[0]:o===s.groupmarker[0]?o=s.groupmarker[1]:o===s.groupmarker[1]&&(o=s.groupmarker[0]),o)}var o;return t}(p[0]),p}},ue.extendDefaults=function(e){ne.extend(!0,ue.prototype.defaults,e)},ue.extendDefinitions=function(e){ne.extend(!0,ue.prototype.definitions,e)},ue.extendAliases=function(e){ne.extend(!0,ue.prototype.aliases,e)},ue.format=function(e,t,n){return ue(t).format(e,n)},ue.unmask=function(e,t){return ue(t).unmaskedvalue(e)},ue.isValid=function(e,t){return ue(t).isValid(e)},ue.remove=function(e){"string"==typeof e&&(e=oe.getElementById(e)||oe.querySelectorAll(e)),e=e.nodeName?[e]:e,ne.each(e,function(e,t){t.inputmask&&t.inputmask.remove()})},ue.setValue=function(e,n){"string"==typeof e&&(e=oe.getElementById(e)||oe.querySelectorAll(e)),e=e.nodeName?[e]:e,ne.each(e,function(e,t){t.inputmask?t.inputmask.setValue(n):ne(t).trigger("setvalue",[n])})},ue.escapeRegex=function(e){return e.replace(new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^"].join("|\\")+")","gim"),"\\$1")},ue.keyCode={BACKSPACE:8,BACKSPACE_SAFARI:127,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,RIGHT:39,SPACE:32,TAB:9,UP:38,X:88,CONTROL:17},ue.dependencyLib=ne,ue})?i.apply(t,r):i)||(e.exports=o)},function(t,e,n){(function(s,a){var e;e=function(n,i){return function(n){var i={};function r(e){if(i[e])return i[e].exports;var t=i[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}return r.m=n,r.c=i,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=1)}([function(e,t){e.exports=n},function(e,t,n){n(5),e.exports=n(3)},function(e,t){e.exports=i},function(e,t,n){},,function(e,t,n){"use strict";n.r(t);var i=n(0),r=n.n(i);n(2);function o(e,t){var n=this;return n.element=e,n.$element=s(e),n._terminal=null,n._frames=null,n._totalDuration=0,n._currentTime=0,n._timer=null,n._lastTickTime=null,n._isPlaying=!1,n._isStarted=!1,n._isRendering=!1,n._lastRenderedFrame=-1,n._startTemplate='<?xml version="1.0" ?><svg id="Layer_1" style="enable-background:new 0 0 30 30;" version="1.1" viewBox="0 0 30 30" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><polygon points="6.583,3.186 5,4.004 5,15 26,15 26.483,14.128 "/><polygon points="6.583,26.814 5,25.996 5,15 26,15 26.483,15.872 "/><circle cx="26" cy="15" r="1"/><circle cx="6" cy="4" r="1"/><circle cx="6" cy="26" r="1"/></svg>',n._playerTemplate='<div class="terminalizer-player"><div class="cover"></div><div class="start">'+n._startTemplate+'</div><div class="terminalizer"></div><div class="controller"><div class="play"><span class="icon"></span></div><div class="pause"><span class="icon"></span></div><div class="timer">00:00</div><div class="progressbar-wrapper"><div class="progressbar"><div class="progress"></div></div></div></div></div>',n._terminalTemplate='<div class="terminalizer"><div class="terminalizer-frame"><div class="terminalizer-titlebar"><div class="buttons"><div class="close-button"></div><div class="minimize-button"></div><div class="maximize-button"></div></div><div class="title"></div></div><div class="terminalizer-body"></div></div></div>',n._options=s.extend({recordingFile:null,realTiming:!1,speedFactor:1,beforeMiddleware:null,afterMiddleware:null,controls:!0,repeat:!1,autoplay:!1,thumbnailTime:0},t),n._init().then(function(e){if(n._options.autoplay)return n.play()}).catch(function(e){throw new Error(e)}),n}o.prototype._init=function(){var t=this,n=(t.element,t.$element);return t._loadJSON(t._options.recordingFile).then(function(e){if(t._frames=e.frames||e.records,t._options=s.extend(e.config,t._options),t._options.controls&&(t._options.frameBox.title=null,t._options.frameBox.type=null,t._options.frameBox.style={},"transparent"==t._options.theme.background?t._options.frameBox.style.background="black":t._options.frameBox.style.background=t._options.theme.background,t._options.frameBox.style.padding="10px",t._options.watermark.imagePath=null),t._terminal=new a({cols:t._options.cols,rows:t._options.rows,cursorStyle:t._options.cursorStyle,fontFamily:t._options.fontFamily,fontSize:t._options.fontSize,lineHeight:t._options.lineHeight,letterSpacing:t._options.letterSpacing,allowTransparency:!0,scrollback:0,theme:t._options.theme}),n.html(s(t._playerTemplate)),n.find(".terminalizer").replaceWith(t._terminalTemplate),t._options.frameBox.type&&n.find(".terminalizer-frame").addClass("terminalizer-"+t._options.frameBox.type),t._options.frameBox.type&&t._options.frameBox.title&&n.find(".terminalizer-frame .title").text(t._options.frameBox.title),n.find(".terminalizer-frame").css(t._options.frameBox.style),t._options.controls&&n.find(".terminalizer-player").addClass("controls"),t._options.frameBox.type&&n.find(".terminalizer-player").addClass("framed"),t._options.rows<10&&n.find(".terminalizer-player").addClass("small"),t._terminal.open(n.find(".terminalizer-body")[0]),Object.defineProperty(t._terminal._core,"isFocused",{get:function(){return!0}}),t._initController(),t._initRenderedEmitter(),t._emit("init"),t._adjustDelays(),t._calculateTiming(),t._totalDuration=t._calculateTotalDuration(),t._lastTickTime=Date.now(),t._timer=setInterval(t._tick.bind(t),1),t._options.watermark.imagePath)return t._addWatermark(t._options.watermark)}).then(function(){return t.jump(t._options.thumbnailTime,!1)}).then(function(){t._currentTime=0,t._updatePlayer()})},o.prototype._initController=function(){var i=this;i.$element.find(".controller .progressbar").on("click",function(e){if(!i._isStarted)return!1;var t=s(this).width(),n=e.offsetX;return i.jump(Math.floor(i._totalDuration*n/t)),!1}),i.$element.find(".cover, .start").on("click",function(e){return i.play(),!1}),i.$element.find(".controller .play").on("click",function(e){return i.play(),!1}),i.$element.find(".controller .pause").on("click",function(e){return i.pause(),!1})},o.prototype._initRenderedEmitter=function(){var e=this;e._terminal.on("refresh",function(){this._writeInProgress||e._emit("rendered")})},o.prototype._adjustDelays=function(){var n=this;n._frames.forEach(function(e){var t=e.delay;"auto"!=n._options.frameDelay?t=n._options.frameDelay:"auto"!=n._options.maxIdleTime&&t>n._options.maxIdleTime&&(t=n._options.maxIdleTime),t*=n._options.speedFactor,e.delay=t})},o.prototype._calculateTiming=function(){var i=0,r=this._frames.length,o=this._frames;o.forEach(function(e,t){var n=o[(t+1)%r].delay;e.duration=n,e.startTime=i,e.endTime=i+n,i+=n})},o.prototype._calculateTotalDuration=function(){return this._frames.reduce(function(e,t){return e+t.delay},0)},o.prototype._findFrameAt=function(e,t){var n=null;void 0===t&&(t=0);for(var i=t;i<this._frames.length;i++)if((n=this._frames[i]).startTime<=e&&e<n.endTime)return i;return n.startTime<=e&&e<=n.endTime?this._frames.length-1:-1},o.prototype._isFrameAt=function(e,t){var n=this._frames[t];return void 0!==n&&(n.startTime<=e&&e<n.endTime)},o.prototype._addWatermark=function(e){var t=document.createElement("img");return s(t).addClass("terminalizer-watermark"),s(t).attr("src",e.imagePath),s(t).css(e.style),this.$element.find(".terminalizer-frame").prepend(t),new Promise(function(e,t){s(".terminalizer-watermark").on("load",e)})},o.prototype._renderFrame=function(t,e,n){var i=this,r=[],o=i._frames[t];i._options.beforeMiddleware&&!e&&r.push(function(e){i._options.beforeMiddleware.call(i,o,t,e.bind(null,null,null))}),r.push(function(e){i._terminal.write(o.content),i.$element.one("rendered",function(){setTimeout(function(){e()})})}),i._options.afterMiddleware&&!e&&r.push(function(e){i._options.afterMiddleware.call(i,o,t,e.bind(null,null,null))}),i._series(r,function(e,t){n()})},o.prototype._loadJSON=function(r){return new Promise(function(e,i){s.getJSON(r).done(e).fail(function(e,t,n){i("Failed to load "+r)})})},o.prototype._tick=function(){var e,t=this;if(e=Date.now()-t._lastTickTime,t._lastTickTime=Date.now(),t._isPlaying&&!t._isRendering&&(t._currentTime<t._totalDuration&&(t._currentTime+=e,t._updatePlayer()),t._currentTime>t._totalDuration&&(t._currentTime=t._totalDuration),-1==t._lastRenderedFrame||!t._isFrameAt(t._currentTime,t._lastRenderedFrame))){if(t._lastRenderedFrame==t._frames.length-1&&t._currentTime==t._totalDuration)return t._emit("playingCompleted"),t._options.repeat?void(t._currentTime=0):t.pause();t._isFrameAt(t._currentTime,t._lastRenderedFrame+1)?t._lastRenderedFrame=t._lastRenderedFrame+1:t._lastRenderedFrame=t._findFrameAt(t._currentTime),t._isRendering=!0,t._renderFrame(t._lastRenderedFrame,!1,function(){t._lastTickTime=Date.now(),t._isRendering=!1})}},o.prototype._updatePlayer=function(){var e=this._currentTime/this._totalDuration*100,t=this._formatTime(this._currentTime);this.$element.find(".terminalizer-player .progress").width(e+"%"),this.$element.find(".terminalizer-player .timer").text(t)},o.prototype._emit=function(e,t){var n=this;void 0===t&&(t=[]),setTimeout(function(){n.$element.trigger(e,t)})},o.prototype._formatTime=function(e){var t=Math.floor(e/6e4),n=parseInt((e-6e4*t)/1e3);return t<10&&(t="0"+t),n<10&&(n="0"+n),t+":"+n},o.prototype._series=function(r,o){if(0==r.length)return o(null);!function n(i){r[i](function(e,t){return void 0!==e&&e?o(e):i==r.length-1?o(null):n(i+1)})}(0)},o.prototype.getFramesCount=function(){return this._frames.length},o.prototype.play=function(){var n=this;return new Promise(function(e,t){if(n._lastRenderedFrame==n.getFramesCount()-1&&n._currentTime==n._totalDuration||!n._isStarted)return n._currentTime=0,n._isStarted=!0,n._terminal.reset(),n.$element.one("rendered",function(){e()});e()}).then(function(){n.$element.find(".terminalizer-player").addClass("started"),n._isPlaying=!0,n._emit("playingStarted"),n.$element.find(".terminalizer-player").addClass("playing")})},o.prototype.pause=function(){this._isPlaying=!1,this.$element.find(".terminalizer-player").removeClass("playing"),this._emit("playingPaused")},o.prototype.jump=function(n,e){var i=this,r=null,o=i._isPlaying;return void 0===e&&(e=!0),i._isRendering=!0,i._isPlaying=!1,e&&(i._currentTime=n,i._updatePlayer()),new Promise(function(t,e){i.$element.one("rendered",function(){r=i._findFrameAt(n);for(var e=0;e<=r;e++)i._terminal.write(i._frames[e].content);i.$element.one("rendered",function(){i._isRendering=!1,i._isPlaying=o,t()})}),i._terminal.reset()})},/*!
  * Terminalizer Web Player
  * https://terminalizer.com
  *
  * @author Mohammad Fares <faressoft.com@gmail.com>
  */r.a.fn.terminalizer=function(){var e,t={},n=[];if(0==arguments.length)throw new Error("The options argument is required");if("string"!=typeof arguments[0])return void 0!==this.data("terminalizer")||(e=arguments[0],this.data("terminalizer",new o(this[0],e))),this;if(t=arguments[0],n=Array.prototype.slice.call(arguments,1),void 0===this.data("terminalizer"))throw new Error("It is not Terminalizer element");return this.data("terminalizer")[t].apply(this.data("terminalizer"),n)}}])},t.exports=e(n(3),n(22).Terminal)}).call(this,n(3),n(22).Terminal)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=function(){function i(e,t,n){if(this.isWrapped=!1,this._data=[],this.length=this._data.length,e){t||(t=[0,r.NULL_CELL_CHAR,r.NULL_CELL_WIDTH,r.NULL_CELL_CODE]);for(var i=0;i<e;i++)this.push(t)}n&&(this.isWrapped=!0)}return i.blankLine=function(e,t,n){return new i(e,[t,r.NULL_CELL_CHAR,r.NULL_CELL_WIDTH,r.NULL_CELL_CODE],n)},i.prototype.get=function(e){return this._data[e]},i.prototype.set=function(e,t){this._data[e]=t},i.prototype.pop=function(){var e=this._data.pop();return this.length=this._data.length,e},i.prototype.push=function(e){this._data.push(e),this.length=this._data.length},i.prototype.splice=function(e,t){for(var n,i=[],r=2;r<arguments.length;r++)i[r-2]=arguments[r];var o=(n=this._data).splice.apply(n,[e,t].concat(i));return this.length=this._data.length,o},i.prototype.insertCells=function(e,t,n){for(;t--;)this.splice(e,0,n),this.pop()},i.prototype.deleteCells=function(e,t,n){for(;t--;)this.splice(e,1),this.push(n)},i.prototype.replaceCells=function(e,t,n){for(;e<t&&e<this.length;)this.set(e++,n)},i}();t.BufferLine=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){this._didWarmUp=!1}return e.prototype.dispose=function(){},e.prototype.warmUp=function(){this._didWarmUp||(this._doWarmUp(),this._didWarmUp=!0)},e.prototype._doWarmUp=function(){},e.prototype.beginFrame=function(){},e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){this._terminal=e,this._callback=t,this._animationFrame=null}return e.prototype.dispose=function(){this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=null)},e.prototype.refresh=function(e,t){var n=this;e=null!=e?e:0,t=null!=t?t:this._terminal.rows-1;var i=void 0!==this._rowStart&&null!==this._rowStart,r=void 0!==this._rowEnd&&null!==this._rowEnd;this._rowStart=i?Math.min(this._rowStart,e):e,this._rowEnd=r?Math.max(this._rowEnd,t):t,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return n._innerRefresh()}))},e.prototype._innerRefresh=function(){this._rowStart=Math.max(this._rowStart,0),this._rowEnd=Math.min(this._rowEnd,this._terminal.rows-1),this._callback(this._rowStart,this._rowEnd),this._rowStart=null,this._rowEnd=null,this._animationFrame=null},e}();t.RenderDebouncer=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.blankLine="Blank line",t.promptLabel="Terminal input",t.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";n.d(t,"b",function(){return ot}),n.d(t,"a",function(){return at});/*!
  * Font Awesome Free 5.5.0 by @fontawesome - https://fontawesome.com
  * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
  */var i=function(){},r={},o={},s=null,a={mark:i,measure:i};try{"undefined"!=typeof window&&(r=window),"undefined"!=typeof document&&(o=document),"undefined"!=typeof MutationObserver&&(s=MutationObserver),"undefined"!=typeof performance&&(a=performance)}catch(e){}var l=(r.navigator||{}).userAgent,c=void 0===l?"":l,d=r,f=o,u=s,h=a,p=!!f.documentElement&&!!f.head&&"function"==typeof f.addEventListener&&"function"==typeof f.createElement,I=~c.indexOf("MSIE")||~c.indexOf("Trident/"),m="___FONT_AWESOME___",A=16,g="svg-inline--fa",x="data-fa-i2svg",_="data-fa-pseudo-element",v="fontawesome-i2svg",y=["HTML","HEAD","STYLE","SCRIPT"],b=function(){try{return!0}catch(e){return!1}}(),C=[1,2,3,4,5,6,7,8,9,10],E=C.concat([11,12,13,14,15,16,17,18,19,20]),w=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],B=["xs","sm","lg","fw","ul","li","border","pull-left","pull-right","spin","pulse","rotate-90","rotate-180","rotate-270","flip-horizontal","flip-vertical","stack","stack-1x","stack-2x","inverse","layers","layers-text","layers-counter"].concat(C.map(function(e){return e+"x"})).concat(E.map(function(e){return"w-"+e})),T=function(){function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}}(),S=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},k=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&a.return&&a.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},L=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)},G=d.FontAwesomeConfig||{};if(f&&"function"==typeof f.querySelector){[["data-family-prefix","familyPrefix"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(function(e){var t,n=k(e,2),i=n[0],r=n[1],o=""===(t=function(e){var t=f.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(i))||"false"!==t&&("true"===t||t);null!=o&&(G[r]=o)})}var D=S({familyPrefix:"fa",replacementClass:g,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0},G);D.autoReplaceSvg||(D.observeMutations=!1);var R=S({},D);d.FontAwesomeConfig=R;var N=d||{};N[m]||(N[m]={}),N[m].styles||(N[m].styles={}),N[m].hooks||(N[m].hooks={}),N[m].shims||(N[m].shims=[]);var F=N[m],H=[],O=!1;p&&((O=(f.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(f.readyState))||f.addEventListener("DOMContentLoaded",function e(){f.removeEventListener("DOMContentLoaded",e),O=1,H.map(function(e){return e()})}));var W=A,Q={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function M(e){if(e&&p){var t=f.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=f.head.childNodes,i=null,r=n.length-1;-1<r;r--){var o=n[r],s=(o.tagName||"").toUpperCase();-1<["STYLE","LINK"].indexOf(s)&&(i=o)}return f.head.insertBefore(t,i),e}}var Z="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function U(){for(var e=12,t="";0<e--;)t+=Z[62*Math.random()|0];return t}function V(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function X(e){return e.classList?V(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(e){return e})}function P(e,t){var n,i=t.split("-"),r=i[0],o=i.slice(1).join("-");return r!==e||""===o||(n=o,~B.indexOf(n))?null:o}function j(e){return(""+e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Y(n){return Object.keys(n||{}).reduce(function(e,t){return e+(t+": ")+n[t]+";"},"")}function z(e){return e.size!==Q.size||e.x!==Q.x||e.y!==Q.y||e.rotate!==Q.rotate||e.flipX||e.flipY}function J(e){var t=e.transform,n=e.containerWidth,i=e.iconWidth;return{outer:{transform:"translate("+n/2+" 256)"},inner:{transform:"translate("+32*t.x+", "+32*t.y+") "+" "+("scale("+t.size/16*(t.flipX?-1:1)+", "+t.size/16*(t.flipY?-1:1)+") ")+" "+("rotate("+t.rotate+" 0 0)")},path:{transform:"translate("+i/2*-1+" -256)"}}}var K={x:0,y:0,width:"100%",height:"100%"},q=function(e){var t=e.children,n=e.attributes,i=e.main,r=e.mask,o=e.transform,s=i.width,a=i.icon,l=r.width,c=r.icon,u=J({transform:o,containerWidth:l,iconWidth:s}),h={tag:"rect",attributes:S({},K,{fill:"white"})},d={tag:"g",attributes:S({},u.inner),children:[{tag:"path",attributes:S({},a.attributes,u.path,{fill:"black"})}]},f={tag:"g",attributes:S({},u.outer),children:[d]},p="mask-"+U(),m="clip-"+U(),g={tag:"defs",children:[{tag:"clipPath",attributes:{id:m},children:[c]},{tag:"mask",attributes:S({},K,{id:p,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[h,f]}]};return t.push(g,{tag:"rect",attributes:S({fill:"currentColor","clip-path":"url(#"+m+")",mask:"url(#"+p+")"},K)}),{children:t,attributes:n}},$=function(e){var t=e.children,n=e.attributes,i=e.main,r=e.transform,o=Y(e.styles);if(0<o.length&&(n.style=o),z(r)){var s=J({transform:r,containerWidth:i.width,iconWidth:i.width});t.push({tag:"g",attributes:S({},s.outer),children:[{tag:"g",attributes:S({},s.inner),children:[{tag:i.icon.tag,children:i.icon.children,attributes:S({},i.icon.attributes,s.path)}]}]})}else t.push(i.icon);return{children:t,attributes:n}},ee=function(e){var t=e.children,n=e.main,i=e.mask,r=e.attributes,o=e.styles,s=e.transform;if(z(s)&&n.found&&!i.found){var a=n.width/n.height/2,l=.5;r.style=Y(S({},o,{"transform-origin":a+s.x/16+"em "+(l+s.y/16)+"em"}))}return[{tag:"svg",attributes:r,children:t}]},te=function(e){var t=e.prefix,n=e.iconName,i=e.children,r=e.attributes,o=e.symbol,s=!0===o?t+"-"+R.familyPrefix+"-"+n:o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:S({},r,{id:s}),children:i}]}]};function ne(e){var t=e.icons,n=t.main,i=t.mask,r=e.prefix,o=e.iconName,s=e.transform,a=e.symbol,l=e.title,c=e.extra,u=e.watchable,h=void 0!==u&&u,d=i.found?i:n,f=d.width,p=d.height,m="fa-w-"+Math.ceil(f/p*16),g=[R.replacementClass,o?R.familyPrefix+"-"+o:"",m].filter(function(e){return-1===c.classes.indexOf(e)}).concat(c.classes).join(" "),_={children:[],attributes:S({},c.attributes,{"data-prefix":r,"data-icon":o,class:g,role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 "+f+" "+p})};h&&(_.attributes[x]=""),l&&_.children.push({tag:"title",attributes:{id:_.attributes["aria-labelledby"]||"title-"+U()},children:[l]});var v=S({},_,{prefix:r,iconName:o,main:n,mask:i,transform:s,symbol:a,styles:c.styles}),y=i.found&&n.found?q(v):$(v),b=y.children,C=y.attributes;return v.children=b,v.attributes=C,a?te(v):ee(v)}function ie(e){var t=e.content,n=e.width,i=e.height,r=e.transform,o=e.title,s=e.extra,a=e.watchable,l=void 0!==a&&a,c=S({},s.attributes,o?{title:o}:{},{class:s.classes.join(" ")});l&&(c[x]="");var u,h,d,f,p,m,g,_,v,y=S({},s.styles);z(r)&&(y.transform=(h=(u={transform:r,startCentered:!0,width:n,height:i}).transform,d=u.width,f=void 0===d?A:d,p=u.height,m=void 0===p?A:p,g=u.startCentered,v="",v+=(_=void 0!==g&&g)&&I?"translate("+(h.x/W-f/2)+"em, "+(h.y/W-m/2)+"em) ":_?"translate(calc(-50% + "+h.x/W+"em), calc(-50% + "+h.y/W+"em)) ":"translate("+h.x/W+"em, "+h.y/W+"em) ",v+="scale("+h.size/W*(h.flipX?-1:1)+", "+h.size/W*(h.flipY?-1:1)+") ",v+="rotate("+h.rotate+"deg) "),y["-webkit-transform"]=y.transform);var b=Y(y);0<b.length&&(c.style=b);var C=[];return C.push({tag:"span",attributes:c,children:[t]}),o&&C.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),C}var re=function(){},oe=R.measurePerformance&&h&&h.mark&&h.measure?h:{mark:re,measure:re},se='FA "5.5.0"',ae=function(e){oe.mark(se+" "+e+" ends"),oe.measure(se+" "+e,se+" "+e+" begins",se+" "+e+" ends")},le={begin:function(e){return oe.mark(se+" "+e+" begins"),function(){return ae(e)}},end:ae},ce=function(e,t,n,i){var r,o,s,a,l,c=Object.keys(e),u=c.length,h=void 0!==i?(a=t,l=i,function(e,t,n,i){return a.call(l,e,t,n,i)}):t;for(s=void 0===n?(r=1,e[c[0]]):(r=0,n);r<u;r++)s=h(s,e[o=c[r]],o,e);return s},ue=F.styles,he=F.shims,de={},fe={},pe={},me=function(){var e=function(i){return ce(ue,function(e,t,n){return e[n]=ce(t,i,{}),e},{})};de=e(function(e,t,n){return e[t[3]]=n,e}),fe=e(function(t,e,n){var i=e[2];return t[n]=n,i.forEach(function(e){t[e]=n}),t});var o="far"in ue;pe=ce(he,function(e,t){var n=t[0],i=t[1],r=t[2];return"far"!==i||o||(i="fas"),e[n]={prefix:i,iconName:r},e},{})};function ge(e,t){return de[e][t]}me();var _e=F.styles,ve=function(){return{prefix:null,iconName:null,rest:[]}};function ye(e){return e.reduce(function(e,t){var n=P(R.familyPrefix,t);if(_e[t])e.prefix=t;else if(n){var i="fa"===e.prefix?pe[n]||{prefix:null,iconName:null}:{};e.iconName=i.iconName||n,e.prefix=i.prefix||e.prefix}else t!==R.replacementClass&&0!==t.indexOf("fa-w-")&&e.rest.push(t);return e},ve())}function be(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}function Ce(e){var n,t=e.tag,i=e.attributes,r=void 0===i?{}:i,o=e.children,s=void 0===o?[]:o;return"string"==typeof e?j(e):"<"+t+" "+(n=r,Object.keys(n||{}).reduce(function(e,t){return e+(t+'="')+j(n[t])+'" '},"").trim())+">"+s.map(Ce).join("")+"</"+t+">"}var Ie=function(){};function Ae(e){return"string"==typeof(e.getAttribute?e.getAttribute(x):null)}var xe={replace:function(e){var t=e[0],n=e[1].map(function(e){return Ce(e)}).join("\n");if(t.parentNode&&t.outerHTML)t.outerHTML=n+(R.keepOriginalSource&&"svg"!==t.tagName.toLowerCase()?"\x3c!-- "+t.outerHTML+" --\x3e":"");else if(t.parentNode){var i=document.createElement("span");t.parentNode.replaceChild(i,t),i.outerHTML=n}},nest:function(e){var t=e[0],n=e[1];if(~X(t).indexOf(R.replacementClass))return xe.replace(e);var i=new RegExp(R.familyPrefix+"-.*");delete n[0].attributes.style;var r=n[0].attributes.class.split(" ").reduce(function(e,t){return t===R.replacementClass||t.match(i)?e.toSvg.push(t):e.toNode.push(t),e},{toNode:[],toSvg:[]});n[0].attributes.class=r.toSvg.join(" ");var o=n.map(function(e){return Ce(e)}).join("\n");t.setAttribute("class",r.toNode.join(" ")),t.setAttribute(x,""),t.innerHTML=o}};function Ee(n,e){var i="function"==typeof e?e:Ie;0===n.length?i():(d.requestAnimationFrame||function(e){return e()})(function(){var e=!0===R.autoReplaceSvg?xe.replace:xe[R.autoReplaceSvg]||xe.replace,t=le.begin("mutate");n.map(e),t(),i()})}var we=!1;var Be=null;var Te=function(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(e,t){var n=t.split(":"),i=n[0],r=n.slice(1);return i&&0<r.length&&(e[i]=r.join(":").trim()),e},{})),n};function Se(e){for(var t="",n=0;n<e.length;n++){t+=("000"+e.charCodeAt(n).toString(16)).slice(-4)}return t}var ke=function(e){var t,n,i=e.getAttribute("data-prefix"),r=e.getAttribute("data-icon"),o=void 0!==e.innerText?e.innerText.trim():"",s=ye(X(e));return i&&r&&(s.prefix=i,s.iconName=r),s.prefix&&1<o.length?s.iconName=(t=s.prefix,n=e.innerText,fe[t][n]):s.prefix&&1===o.length&&(s.iconName=ge(s.prefix,Se(e.innerText))),s},Le=function(e){var t={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e?e.toLowerCase().split(" ").reduce(function(e,t){var n=t.toLowerCase().split("-"),i=n[0],r=n.slice(1).join("-");if(i&&"h"===r)return e.flipX=!0,e;if(i&&"v"===r)return e.flipY=!0,e;if(r=parseFloat(r),isNaN(r))return e;switch(i){case"grow":e.size=e.size+r;break;case"shrink":e.size=e.size-r;break;case"left":e.x=e.x-r;break;case"right":e.x=e.x+r;break;case"up":e.y=e.y-r;break;case"down":e.y=e.y+r;break;case"rotate":e.rotate=e.rotate+r}return e},t):t},Ge=function(e){return Le(e.getAttribute("data-fa-transform"))},De=function(e){var t=e.getAttribute("data-fa-symbol");return null!==t&&(""===t||t)},Re=function(e){var t=V(e.attributes).reduce(function(e,t){return"class"!==e.name&&"style"!==e.name&&(e[t.name]=t.value),e},{}),n=e.getAttribute("title");return R.autoA11y&&(n?t["aria-labelledby"]=R.replacementClass+"-title-"+U():t["aria-hidden"]="true"),t},Ne=function(e){var t=e.getAttribute("data-fa-mask");return t?ye(t.split(" ").map(function(e){return e.trim()})):ve()},Fe={iconName:null,title:null,prefix:null,transform:Q,symbol:!1,mask:null,extra:{classes:[],styles:{},attributes:{}}};function He(e){this.name="MissingIcon",this.message=e||"Icon unavailable",this.stack=(new Error).stack}(He.prototype=Object.create(Error.prototype)).constructor=He;var Oe={fill:"currentColor"},We={attributeType:"XML",repeatCount:"indefinite",dur:"2s"},Qe={tag:"path",attributes:S({},Oe,{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})},Me=S({},We,{attributeName:"opacity"}),Ze={tag:"g",children:[Qe,{tag:"circle",attributes:S({},Oe,{cx:"256",cy:"364",r:"28"}),children:[{tag:"animate",attributes:S({},We,{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:S({},Me,{values:"1;0;1;1;0;1;"})}]},{tag:"path",attributes:S({},Oe,{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:[{tag:"animate",attributes:S({},Me,{values:"1;0;0;0;0;1;"})}]},{tag:"path",attributes:S({},Oe,{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:S({},Me,{values:"0;0;1;1;0;0;"})}]}]},Ue=F.styles,Ve="fa-layers-text",Xe=/Font Awesome 5 (Solid|Regular|Light|Brands|Free|Pro)/,Pe={Solid:"fas",Regular:"far",Light:"fal",Brands:"fab"},je={900:"fas",400:"far",300:"fal"};function Ye(e,t){var n={found:!1,width:512,height:512,icon:Ze};if(e&&t&&Ue[t]&&Ue[t][e]){var i=Ue[t][e];n={found:!0,width:i[0],height:i[1],icon:{tag:"path",attributes:{fill:"currentColor",d:i.slice(4)[0]}}}}else if(e&&t&&!R.showMissingIcons)throw new He("Icon is missing for prefix "+t+" with icon name "+e);return n}function ze(e){var t,n,i,r,o,s,a,l,c,u,h,d,f,p,m,g,_,v,y,b=(n=ke(t=e),i=n.iconName,r=n.prefix,o=n.rest,s=Te(t),a=Ge(t),l=De(t),c=Re(t),u=Ne(t),{iconName:i,title:t.getAttribute("title"),prefix:r,transform:a,symbol:l,mask:u,extra:{classes:o,styles:s,attributes:c}});return~b.extra.classes.indexOf(Ve)?function(e,t){var n=t.title,i=t.transform,r=t.extra,o=null,s=null;if(I){var a=parseInt(getComputedStyle(e).fontSize,10),l=e.getBoundingClientRect();o=l.width/a,s=l.height/a}return R.autoA11y&&!n&&(r.attributes["aria-hidden"]="true"),[e,ie({content:e.innerHTML,width:o,height:s,transform:i,title:n,extra:r,watchable:!0})]}(e,b):(h=e,f=(d=b).iconName,p=d.title,m=d.prefix,g=d.transform,_=d.symbol,v=d.mask,y=d.extra,[h,ne({icons:{main:Ye(f,m),mask:Ye(v.iconName,v.prefix)},prefix:m,iconName:f,transform:g,symbol:_,mask:v,title:p,extra:y,watchable:!0})])}function Je(e){if(p){var t=le.begin("searchPseudoElements");we=!0,function(){V(e.querySelectorAll("*")).filter(function(e){return!(e.parentNode===document.head||~y.indexOf(e.tagName.toUpperCase())||e.getAttribute(_)||e.parentNode&&"svg"===e.parentNode.tagName)}).forEach(function(h){[":before",":after"].forEach(function(t){var e=V(h.children).filter(function(e){return e.getAttribute(_)===t})[0],n=d.getComputedStyle(h,t),i=n.getPropertyValue("font-family").match(Xe),r=n.getPropertyValue("font-weight");if(e&&!i)h.removeChild(e);else if(i){var o=n.getPropertyValue("content"),s=~["Light","Regular","Solid","Brands"].indexOf(i[1])?Pe[i[1]]:je[r],a=ge(s,Se(3===o.length?o.substr(1,1):o));if(!e||e.getAttribute("data-prefix")!==s||e.getAttribute("data-icon")!==a){e&&h.removeChild(e);var l=Fe.extra;l.attributes[_]=t;var c=ne(S({},Fe,{icons:{main:Ye(a,s),mask:ve()},prefix:s,iconName:a,extra:l,watchable:!0})),u=f.createElement("svg");":before"===t?h.insertBefore(u,h.firstChild):h.appendChild(u),u.outerHTML=c.map(function(e){return Ce(e)}).join("\n")}}})})}(),we=!1,t()}}function Ke(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;if(p){var n=f.documentElement.classList,i=function(e){return n.add(v+"-"+e)},r=function(e){return n.remove(v+"-"+e)},o=Object.keys(Ue),s=["."+Ve+":not(["+x+"])"].concat(o.map(function(e){return"."+e+":not(["+x+"])"})).join(", ");if(0!==s.length){var a=V(e.querySelectorAll(s));if(0<a.length){i("pending"),r("complete");var l=le.begin("onTree"),c=a.reduce(function(e,t){try{var n=ze(t);n&&e.push(n)}catch(e){b||e instanceof He&&console.error(e)}return e},[]);l(),Ee(c,function(){i("active"),i("complete"),r("pending"),"function"==typeof t&&t()})}}}}function qe(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,n=ze(e);n&&Ee([n],t)}var $e=function(){var e=g,t=R.familyPrefix,n=R.replacementClass,i='svg:not(:root).svg-inline--fa {\n  overflow: visible; }\n\n.svg-inline--fa {\n  display: inline-block;\n  font-size: inherit;\n  height: 1em;\n  overflow: visible;\n  vertical-align: -.125em; }\n  .svg-inline--fa.fa-lg {\n    vertical-align: -.225em; }\n  .svg-inline--fa.fa-w-1 {\n    width: 0.0625em; }\n  .svg-inline--fa.fa-w-2 {\n    width: 0.125em; }\n  .svg-inline--fa.fa-w-3 {\n    width: 0.1875em; }\n  .svg-inline--fa.fa-w-4 {\n    width: 0.25em; }\n  .svg-inline--fa.fa-w-5 {\n    width: 0.3125em; }\n  .svg-inline--fa.fa-w-6 {\n    width: 0.375em; }\n  .svg-inline--fa.fa-w-7 {\n    width: 0.4375em; }\n  .svg-inline--fa.fa-w-8 {\n    width: 0.5em; }\n  .svg-inline--fa.fa-w-9 {\n    width: 0.5625em; }\n  .svg-inline--fa.fa-w-10 {\n    width: 0.625em; }\n  .svg-inline--fa.fa-w-11 {\n    width: 0.6875em; }\n  .svg-inline--fa.fa-w-12 {\n    width: 0.75em; }\n  .svg-inline--fa.fa-w-13 {\n    width: 0.8125em; }\n  .svg-inline--fa.fa-w-14 {\n    width: 0.875em; }\n  .svg-inline--fa.fa-w-15 {\n    width: 0.9375em; }\n  .svg-inline--fa.fa-w-16 {\n    width: 1em; }\n  .svg-inline--fa.fa-w-17 {\n    width: 1.0625em; }\n  .svg-inline--fa.fa-w-18 {\n    width: 1.125em; }\n  .svg-inline--fa.fa-w-19 {\n    width: 1.1875em; }\n  .svg-inline--fa.fa-w-20 {\n    width: 1.25em; }\n  .svg-inline--fa.fa-pull-left {\n    margin-right: .3em;\n    width: auto; }\n  .svg-inline--fa.fa-pull-right {\n    margin-left: .3em;\n    width: auto; }\n  .svg-inline--fa.fa-border {\n    height: 1.5em; }\n  .svg-inline--fa.fa-li {\n    width: 2em; }\n  .svg-inline--fa.fa-fw {\n    width: 1.25em; }\n\n.fa-layers svg.svg-inline--fa {\n  bottom: 0;\n  left: 0;\n  margin: auto;\n  position: absolute;\n  right: 0;\n  top: 0; }\n\n.fa-layers {\n  display: inline-block;\n  height: 1em;\n  position: relative;\n  text-align: center;\n  vertical-align: -.125em;\n  width: 1em; }\n  .fa-layers svg.svg-inline--fa {\n    -webkit-transform-origin: center center;\n            transform-origin: center center; }\n\n.fa-layers-text, .fa-layers-counter {\n  display: inline-block;\n  position: absolute;\n  text-align: center; }\n\n.fa-layers-text {\n  left: 50%;\n  top: 50%;\n  -webkit-transform: translate(-50%, -50%);\n          transform: translate(-50%, -50%);\n  -webkit-transform-origin: center center;\n          transform-origin: center center; }\n\n.fa-layers-counter {\n  background-color: #ff253a;\n  border-radius: 1em;\n  -webkit-box-sizing: border-box;\n          box-sizing: border-box;\n  color: #fff;\n  height: 1.5em;\n  line-height: 1;\n  max-width: 5em;\n  min-width: 1.5em;\n  overflow: hidden;\n  padding: .25em;\n  right: 0;\n  text-overflow: ellipsis;\n  top: 0;\n  -webkit-transform: scale(0.25);\n          transform: scale(0.25);\n  -webkit-transform-origin: top right;\n          transform-origin: top right; }\n\n.fa-layers-bottom-right {\n  bottom: 0;\n  right: 0;\n  top: auto;\n  -webkit-transform: scale(0.25);\n          transform: scale(0.25);\n  -webkit-transform-origin: bottom right;\n          transform-origin: bottom right; }\n\n.fa-layers-bottom-left {\n  bottom: 0;\n  left: 0;\n  right: auto;\n  top: auto;\n  -webkit-transform: scale(0.25);\n          transform: scale(0.25);\n  -webkit-transform-origin: bottom left;\n          transform-origin: bottom left; }\n\n.fa-layers-top-right {\n  right: 0;\n  top: 0;\n  -webkit-transform: scale(0.25);\n          transform: scale(0.25);\n  -webkit-transform-origin: top right;\n          transform-origin: top right; }\n\n.fa-layers-top-left {\n  left: 0;\n  right: auto;\n  top: 0;\n  -webkit-transform: scale(0.25);\n          transform: scale(0.25);\n  -webkit-transform-origin: top left;\n          transform-origin: top left; }\n\n.fa-lg {\n  font-size: 1.33333em;\n  line-height: 0.75em;\n  vertical-align: -.0667em; }\n\n.fa-xs {\n  font-size: .75em; }\n\n.fa-sm {\n  font-size: .875em; }\n\n.fa-1x {\n  font-size: 1em; }\n\n.fa-2x {\n  font-size: 2em; }\n\n.fa-3x {\n  font-size: 3em; }\n\n.fa-4x {\n  font-size: 4em; }\n\n.fa-5x {\n  font-size: 5em; }\n\n.fa-6x {\n  font-size: 6em; }\n\n.fa-7x {\n  font-size: 7em; }\n\n.fa-8x {\n  font-size: 8em; }\n\n.fa-9x {\n  font-size: 9em; }\n\n.fa-10x {\n  font-size: 10em; }\n\n.fa-fw {\n  text-align: center;\n  width: 1.25em; }\n\n.fa-ul {\n  list-style-type: none;\n  margin-left: 2.5em;\n  padding-left: 0; }\n  .fa-ul > li {\n    position: relative; }\n\n.fa-li {\n  left: -2em;\n  position: absolute;\n  text-align: center;\n  width: 2em;\n  line-height: inherit; }\n\n.fa-border {\n  border: solid 0.08em #eee;\n  border-radius: .1em;\n  padding: .2em .25em .15em; }\n\n.fa-pull-left {\n  float: left; }\n\n.fa-pull-right {\n  float: right; }\n\n.fa.fa-pull-left,\n.fas.fa-pull-left,\n.far.fa-pull-left,\n.fal.fa-pull-left,\n.fab.fa-pull-left {\n  margin-right: .3em; }\n\n.fa.fa-pull-right,\n.fas.fa-pull-right,\n.far.fa-pull-right,\n.fal.fa-pull-right,\n.fab.fa-pull-right {\n  margin-left: .3em; }\n\n.fa-spin {\n  -webkit-animation: fa-spin 2s infinite linear;\n          animation: fa-spin 2s infinite linear; }\n\n.fa-pulse {\n  -webkit-animation: fa-spin 1s infinite steps(8);\n          animation: fa-spin 1s infinite steps(8); }\n\n@-webkit-keyframes fa-spin {\n  0% {\n    -webkit-transform: rotate(0deg);\n            transform: rotate(0deg); }\n  100% {\n    -webkit-transform: rotate(360deg);\n            transform: rotate(360deg); } }\n\n@keyframes fa-spin {\n  0% {\n    -webkit-transform: rotate(0deg);\n            transform: rotate(0deg); }\n  100% {\n    -webkit-transform: rotate(360deg);\n            transform: rotate(360deg); } }\n\n.fa-rotate-90 {\n  -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";\n  -webkit-transform: rotate(90deg);\n          transform: rotate(90deg); }\n\n.fa-rotate-180 {\n  -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";\n  -webkit-transform: rotate(180deg);\n          transform: rotate(180deg); }\n\n.fa-rotate-270 {\n  -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";\n  -webkit-transform: rotate(270deg);\n          transform: rotate(270deg); }\n\n.fa-flip-horizontal {\n  -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";\n  -webkit-transform: scale(-1, 1);\n          transform: scale(-1, 1); }\n\n.fa-flip-vertical {\n  -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n  -webkit-transform: scale(1, -1);\n          transform: scale(1, -1); }\n\n.fa-flip-horizontal.fa-flip-vertical {\n  -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n  -webkit-transform: scale(-1, -1);\n          transform: scale(-1, -1); }\n\n:root .fa-rotate-90,\n:root .fa-rotate-180,\n:root .fa-rotate-270,\n:root .fa-flip-horizontal,\n:root .fa-flip-vertical {\n  -webkit-filter: none;\n          filter: none; }\n\n.fa-stack {\n  display: inline-block;\n  height: 2em;\n  position: relative;\n  width: 2.5em; }\n\n.fa-stack-1x,\n.fa-stack-2x {\n  bottom: 0;\n  left: 0;\n  margin: auto;\n  position: absolute;\n  right: 0;\n  top: 0; }\n\n.svg-inline--fa.fa-stack-1x {\n  height: 1em;\n  width: 1.25em; }\n\n.svg-inline--fa.fa-stack-2x {\n  height: 2em;\n  width: 2.5em; }\n\n.fa-inverse {\n  color: #fff; }\n\n.sr-only {\n  border: 0;\n  clip: rect(0, 0, 0, 0);\n  height: 1px;\n  margin: -1px;\n  overflow: hidden;\n  padding: 0;\n  position: absolute;\n  width: 1px; }\n\n.sr-only-focusable:active, .sr-only-focusable:focus {\n  clip: auto;\n  height: auto;\n  margin: 0;\n  overflow: visible;\n  position: static;\n  width: auto; }\n';if("fa"!==t||n!==e){var r=new RegExp("\\.fa\\-","g"),o=new RegExp("\\."+e,"g");i=i.replace(r,"."+t+"-").replace(o,"."+n)}return i};function et(e){return{found:!0,width:e[0],height:e[1],icon:{tag:"path",attributes:{fill:"currentColor",d:e.slice(4)[0]}}}}function tt(){R.autoAddCss&&!st&&(M($e()),st=!0)}function nt(t,e){return Object.defineProperty(t,"abstract",{get:e}),Object.defineProperty(t,"html",{get:function(){return t.abstract.map(function(e){return Ce(e)})}}),Object.defineProperty(t,"node",{get:function(){if(p){var e=f.createElement("div");return e.innerHTML=t.html,e.children}}}),t}function it(e){var t=e.prefix,n=void 0===t?"fa":t,i=e.iconName;if(i)return be(ot.definitions,n,i)||be(F.styles,n,i)}var rt,ot=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.definitions={}}return T(e,[{key:"add",value:function(){for(var t=this,e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];var r=n.reduce(this._pullDefinitions,{});Object.keys(r).forEach(function(e){t.definitions[e]=S({},t.definitions[e]||{},r[e]),function e(t,i){var n=Object.keys(i).reduce(function(e,t){var n=i[t];return n.icon?e[n.iconName]=n.icon:e[t]=n,e},{});"function"==typeof F.hooks.addPack?F.hooks.addPack(t,n):F.styles[t]=S({},F.styles[t]||{},n),"fas"===t&&e("fa",i)}(e,r[e]),me()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(o,e){var s=e.prefix&&e.iconName&&e.icon?{0:e}:e;return Object.keys(s).map(function(e){var t=s[e],n=t.prefix,i=t.iconName,r=t.icon;o[n]||(o[n]={}),o[n][i]=r}),o}}]),e}()),st=!1,at={i2svg:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};if(p){tt();var t=e.node,n=void 0===t?f:t,i=e.callback,r=void 0===i?function(){}:i;R.searchPseudoElements&&Je(n),Ke(n,r)}},css:$e,insertCss:function(){st||(M($e()),st=!0)},watch:function(){var e,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},n=t.autoReplaceSvgRoot,i=t.observeMutationsRoot;!1===R.autoReplaceSvg&&(R.autoReplaceSvg=!0),R.observeMutations=!0,e=function(){ut({autoReplaceSvgRoot:n}),function(e){if(u&&R.observeMutations){var r=e.treeCallback,o=e.nodeCallback,s=e.pseudoElementsCallback,t=e.observeMutationsRoot,n=void 0===t?f.body:t;Be=new u(function(e){we||V(e).forEach(function(e){if("childList"===e.type&&0<e.addedNodes.length&&!Ae(e.addedNodes[0])&&(R.searchPseudoElements&&s(e.target),r(e.target)),"attributes"===e.type&&e.target.parentNode&&R.searchPseudoElements&&s(e.target.parentNode),"attributes"===e.type&&Ae(e.target)&&~w.indexOf(e.attributeName))if("class"===e.attributeName){var t=ye(X(e.target)),n=t.prefix,i=t.iconName;n&&e.target.setAttribute("data-prefix",n),i&&e.target.setAttribute("data-icon",i)}else o(e.target)})}),p&&Be.observe(n,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}({treeCallback:Ke,nodeCallback:qe,pseudoElementsCallback:Je,observeMutationsRoot:i})},p&&(O?setTimeout(e,0):H.push(e))}},lt=(rt=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,i=void 0===n?Q:n,r=t.symbol,o=void 0!==r&&r,s=t.mask,a=void 0===s?null:s,l=t.title,c=void 0===l?null:l,u=t.classes,h=void 0===u?[]:u,d=t.attributes,f=void 0===d?{}:d,p=t.styles,m=void 0===p?{}:p;if(e){var g=e.prefix,_=e.iconName,v=e.icon;return nt(S({type:"icon"},e),function(){return tt(),R.autoA11y&&(c?f["aria-labelledby"]=R.replacementClass+"-title-"+U():f["aria-hidden"]="true"),ne({icons:{main:et(v),mask:a?et(a.icon):{found:!1,width:null,height:null,icon:{}}},prefix:g,iconName:_,transform:S({},Q,i),symbol:o,title:c,extra:{attributes:f,styles:m,classes:h}})})}},function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=(e||{}).icon?e:it(e||{}),i=t.mask;return i&&(i=(i||{}).icon?i:it(i||{})),rt(n,S({},t,{mask:i}))}),ct={noAuto:function(){R.autoReplaceSvg=!1,R.observeMutations=!1,Be&&Be.disconnect()},config:R,dom:at,library:ot,parse:{transform:function(e){return Le(e)}},findIconDefinition:it,icon:lt,text:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,i=void 0===n?Q:n,r=t.title,o=void 0===r?null:r,s=t.classes,a=void 0===s?[]:s,l=t.attributes,c=void 0===l?{}:l,u=t.styles,h=void 0===u?{}:u;return nt({type:"text",content:e},function(){return tt(),ie({content:e,transform:S({},Q,i),title:o,extra:{attributes:c,styles:h,classes:[R.familyPrefix+"-layers-text"].concat(L(a))}})})},counter:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=t.title,i=void 0===n?null:n,r=t.classes,o=void 0===r?[]:r,s=t.attributes,a=void 0===s?{}:s,l=t.styles,c=void 0===l?{}:l;return nt({type:"counter",content:e},function(){return tt(),function(e){var t=e.content,n=e.title,i=e.extra,r=S({},i.attributes,n?{title:n}:{},{class:i.classes.join(" ")}),o=Y(i.styles);0<o.length&&(r.style=o);var s=[];return s.push({tag:"span",attributes:r,children:[t]}),n&&s.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),s}({content:e.toString(),title:i,extra:{attributes:a,styles:c,classes:[R.familyPrefix+"-layers-counter"].concat(L(o))}})})},layer:function(e){return nt({type:"layer"},function(){tt();var t=[];return e(function(e){Array.isArray(e)?e.map(function(e){t=t.concat(e.abstract)}):t=t.concat(e.abstract)}),[{tag:"span",attributes:{class:R.familyPrefix+"-layers"},children:t}]})},toHtml:Ce},ut=function(){var e=(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).autoReplaceSvgRoot,t=void 0===e?f:e;0<Object.keys(F.styles).length&&p&&R.autoReplaceSvg&&ct.dom.i2svg({node:t})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(46),r=n(18),o=function(){function t(e){this._core=new i.Terminal(e)}return Object.defineProperty(t.prototype,"element",{get:function(){return this._core.element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"textarea",{get:function(){return this._core.textarea},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rows",{get:function(){return this._core.rows},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cols",{get:function(){return this._core.cols},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"markers",{get:function(){return this._core.markers},enumerable:!0,configurable:!0}),t.prototype.blur=function(){this._core.blur()},t.prototype.focus=function(){this._core.focus()},t.prototype.on=function(e,t){this._core.on(e,t)},t.prototype.off=function(e,t){this._core.off(e,t)},t.prototype.emit=function(e,t){this._core.emit(e,t)},t.prototype.addDisposableListener=function(e,t){return this._core.addDisposableListener(e,t)},t.prototype.resize=function(e,t){this._core.resize(e,t)},t.prototype.writeln=function(e){this._core.writeln(e)},t.prototype.open=function(e){this._core.open(e)},t.prototype.attachCustomKeyEventHandler=function(e){this._core.attachCustomKeyEventHandler(e)},t.prototype.registerLinkMatcher=function(e,t,n){return this._core.registerLinkMatcher(e,t,n)},t.prototype.deregisterLinkMatcher=function(e){this._core.deregisterLinkMatcher(e)},t.prototype.registerCharacterJoiner=function(e){return this._core.registerCharacterJoiner(e)},t.prototype.deregisterCharacterJoiner=function(e){this._core.deregisterCharacterJoiner(e)},t.prototype.addMarker=function(e){return this._core.addMarker(e)},t.prototype.hasSelection=function(){return this._core.hasSelection()},t.prototype.getSelection=function(){return this._core.getSelection()},t.prototype.clearSelection=function(){this._core.clearSelection()},t.prototype.selectAll=function(){this._core.selectAll()},t.prototype.selectLines=function(e,t){this._core.selectLines(e,t)},t.prototype.dispose=function(){this._core.dispose()},t.prototype.destroy=function(){this._core.destroy()},t.prototype.scrollLines=function(e){this._core.scrollLines(e)},t.prototype.scrollPages=function(e){this._core.scrollPages(e)},t.prototype.scrollToTop=function(){this._core.scrollToTop()},t.prototype.scrollToBottom=function(){this._core.scrollToBottom()},t.prototype.scrollToLine=function(e){this._core.scrollToLine(e)},t.prototype.clear=function(){this._core.clear()},t.prototype.write=function(e){this._core.write(e)},t.prototype.getOption=function(e){return this._core.getOption(e)},t.prototype.setOption=function(e,t){this._core.setOption(e,t)},t.prototype.refresh=function(e,t){this._core.refresh(e,t)},t.prototype.reset=function(){this._core.reset()},t.applyAddon=function(e){e.apply(t)},Object.defineProperty(t,"strings",{get:function(){return r},enumerable:!0,configurable:!0}),t}();t.Terminal=o},function(e,o,t){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.wcwidth=function(o){var s=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],i=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]];function a(e,t){var n,i=0,r=t.length-1;if(e<t[0][0]||e>t[r][1])return!1;for(;i<=r;)if(e>t[n=i+r>>1][1])i=n+1;else{if(!(e<t[n][0]))return!0;r=n-1}return!1}var r=0|o.control,l=null;return function(e){if((e|=0)<32)return 0|r;if(e<127)return 1;var t,n=l||function(){var e,t;l="undefined"==typeof Uint32Array?new Array(4096):new Uint32Array(4096);for(var n=0;n<4096;++n){for(var i=0,r=16;r--;)i=i<<2|(t=void 0,0===(e=16*n+r)?o.nul:e<32||127<=e&&e<160?o.control:a(e,s)?0:4352<=(t=e)&&(t<=4447||9001===t||9002===t||11904<=t&&t<=42191&&12351!==t||44032<=t&&t<=55203||63744<=t&&t<=64255||65040<=t&&t<=65049||65072<=t&&t<=65135||65280<=t&&t<=65376||65504<=t&&t<=65510)?2:1);l[n]=i}return l}();return e<65536?n[e>>4]>>((15&e)<<1)&3:a(t=e,i)?0:131072<=t&&t<=196605||196608<=t&&t<=262141?2:1}}({nul:0,control:0}),o.getStringCellWidth=function(e){for(var t=0,n=0;n<e.length;++n){var i=e.charCodeAt(n);if(55296<=i&&i<=56319){var r=e.charCodeAt(n+1);if(isNaN(r))return t;i=1024*(i-55296)+(r-56320)+65536}56320<=i&&i<=57343||(t+=o.wcwidth(i))}return t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c=n(58),i=n(59),r=n(61),o=n(62),u={none:r.default,static:o.default,dynamic:i.default},h=[];t.acquireCharAtlas=function(e,t,n,i){for(var r=c.generateConfig(n,i,e,t),o=0;o<h.length;o++){var s=(a=h[o]).ownedBy.indexOf(e);if(0<=s){if(c.configEquals(a.config,r))return a.atlas;1===a.ownedBy.length?h.splice(o,1):a.ownedBy.splice(s,1);break}}for(o=0;o<h.length;o++){var a=h[o];if(c.configEquals(a.config,r))return a.ownedBy.push(e),a.atlas}var l={atlas:new u[e.options.experimentalCharAtlas](document,r),config:r,ownedBy:[e]};return h.push(l),l.atlas},t.removeTerminalFromCache=function(e){for(var t=0;t<h.length;t++){var n=h[t].ownedBy.indexOf(e);if(-1!==n){1===h[t].ownedBy.length?h.splice(t,1):h[t].ownedBy.splice(n,1);break}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var h=n(26),d=n(8);function f(e,t){for(var n=!0,i=t.rgba>>>24,r=t.rgba>>>16&255,o=t.rgba>>>8&255,s=0;s<e.data.length;s+=4)e.data[s]===i&&e.data[s+1]===r&&e.data[s+2]===o?e.data[s+3]=0:n=!1;return n}function p(e,t){return e+" "+t.fontSize*t.devicePixelRatio+"px "+t.fontFamily}t.generateStaticCharAtlasTexture=function(e,t,n){var i=n.scaledCharWidth+h.CHAR_ATLAS_CELL_SPACING,r=n.scaledCharHeight+h.CHAR_ATLAS_CELL_SPACING,o=t(255*i,34*r),s=o.getContext("2d",{alpha:n.allowTransparency});s.fillStyle=n.colors.background.css,s.fillRect(0,0,o.width,o.height),s.save(),s.fillStyle=n.colors.foreground.css,s.font=p(n.fontWeight,n),s.textBaseline="top";for(var a=0;a<256;a++)s.save(),s.beginPath(),s.rect(a*i,0,i,r),s.clip(),s.fillText(String.fromCharCode(a),a*i,0),s.restore();for(s.save(),s.font=p(n.fontWeightBold,n),a=0;a<256;a++)s.save(),s.beginPath(),s.rect(a*i,r,i,r),s.clip(),s.fillText(String.fromCharCode(a),a*i,r),s.restore();s.restore(),s.font=p(n.fontWeight,n);for(var l=0;l<16;l++){var c=(l+2)*r;for(a=0;a<256;a++)s.save(),s.beginPath(),s.rect(a*i,c,i,r),s.clip(),s.fillStyle=n.colors.ansi[l].css,s.fillText(String.fromCharCode(a),a*i,c),s.restore()}for(s.font=p(n.fontWeightBold,n),l=0;l<16;l++)for(c=(l+2+16)*r,a=0;a<256;a++)s.save(),s.beginPath(),s.rect(a*i,c,i,r),s.clip(),s.fillStyle=n.colors.ansi[l].css,s.fillText(String.fromCharCode(a),a*i,c),s.restore();if(s.restore(),!("createImageBitmap"in e)||d.isFirefox||d.isSafari)return o instanceof HTMLCanvasElement?o:new Promise(function(e){return e(o.transferToImageBitmap())});var u=s.getImageData(0,0,o.width,o.height);return f(u,n.colors.background),e.createImageBitmap(u)},t.clearColor=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CHAR_ATLAS_CELL_SPACING=1},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=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}i(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 r(t,e),t.prototype.setListener=function(e){var t=this;this._listener&&this.clearListener(),this._listener=e,this._outerListener=function(){t._listener(window.devicePixelRatio,t._currentDevicePixelRatio),t._updateDpr()},this._updateDpr()},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.clearListener()},t.prototype._updateDpr=function(){this._resolutionMediaMatchList&&this._resolutionMediaMatchList.removeListener(this._outerListener),this._currentDevicePixelRatio=window.devicePixelRatio,this._resolutionMediaMatchList=window.matchMedia("screen and (resolution: "+window.devicePixelRatio+"dppx)"),this._resolutionMediaMatchList.addListener(this._outerListener)},t.prototype.clearListener=function(){this._listener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._listener=null,this._outerListener=null)},t}(n(5).Disposable);t.ScreenDprMonitor=o},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=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}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(5),s=n(9),a=function(n){function e(e){var t=n.call(this)||this;return t._terminal=e,t._zones=[],t._areZonesActive=!1,t._tooltipTimeout=null,t._currentZone=null,t._lastHoverCoords=[null,null],t.register(s.addDisposableDomListener(t._terminal.element,"mousedown",function(e){return t._onMouseDown(e)})),t._mouseMoveListener=function(e){return t._onMouseMove(e)},t._clickListener=function(e){return t._onClick(e)},t}return r(e,n),e.prototype.dispose=function(){n.prototype.dispose.call(this),this._deactivate()},e.prototype.add=function(e){this._zones.push(e),1===this._zones.length&&this._activate()},e.prototype.clearAll=function(e,t){if(0!==this._zones.length){t||(e=0,t=this._terminal.rows-1);for(var n=0;n<this._zones.length;n++){var i=this._zones[n];(i.y1>e&&i.y1<=t+1||i.y2>e&&i.y2<=t+1||i.y1<e&&i.y2>t+1)&&(this._currentZone&&this._currentZone===i&&(this._currentZone.leaveCallback(),this._currentZone=null),this._zones.splice(n--,1))}0===this._zones.length&&this._deactivate()}},e.prototype._activate=function(){this._areZonesActive||(this._areZonesActive=!0,this._terminal.element.addEventListener("mousemove",this._mouseMoveListener),this._terminal.element.addEventListener("click",this._clickListener))},e.prototype._deactivate=function(){this._areZonesActive&&(this._areZonesActive=!1,this._terminal.element.removeEventListener("mousemove",this._mouseMoveListener),this._terminal.element.removeEventListener("click",this._clickListener))},e.prototype._onMouseMove=function(e){this._lastHoverCoords[0]===e.pageX&&this._lastHoverCoords[1]===e.pageY||(this._onHover(e),this._lastHoverCoords=[e.pageX,e.pageY])},e.prototype._onHover=function(e){var t=this,n=this._findZoneEventAt(e);n!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=null,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),n&&((this._currentZone=n).hoverCallback&&n.hoverCallback(e),this._tooltipTimeout=setTimeout(function(){return t._onTooltip(e)},500)))},e.prototype._onTooltip=function(e){this._tooltipTimeout=null;var t=this._findZoneEventAt(e);t&&t.tooltipCallback&&t.tooltipCallback(e)},e.prototype._onMouseDown=function(e){if(this._areZonesActive){var t=this._findZoneEventAt(e);t&&t.willLinkActivate(e)&&(e.preventDefault(),e.stopImmediatePropagation())}},e.prototype._onClick=function(e){var t=this._findZoneEventAt(e);t&&(t.clickCallback(e),e.preventDefault(),e.stopImmediatePropagation())},e.prototype._findZoneEventAt=function(e){var t=this._terminal.mouseHelper.getCoords(e,this._terminal.screenElement,this._terminal.charMeasure,this._terminal.options.lineHeight,this._terminal.cols,this._terminal.rows);if(!t)return null;for(var n=t[0],i=t[1],r=0;r<this._zones.length;r++){var o=this._zones[r];if(o.y1===o.y2){if(i===o.y1&&n>=o.x1&&n<o.x2)return o}else if(i===o.y1&&n>=o.x1||i===o.y2&&n<o.x2||i>o.y1&&i<o.y2)return o}return null},e}(o.Disposable);t.MouseZoneManager=a;var l=function(e,t,n,i,r,o,s,a,l){this.x1=e,this.y1=t,this.x2=n,this.y2=i,this.clickCallback=r,this.hoverCallback=o,this.tooltipCallback=s,this.leaveCallback=a,this.willLinkActivate=l};t.MouseZone=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function l(e){this._renderer=e}return l.getCoordsRelativeToElement=function(e,t){if(null===e.pageX||void 0===e.pageX)return null;for(var n=t,i=e.pageX,r=e.pageY;t;)i-=t.offsetLeft,r-=t.offsetTop,t=t.offsetParent;for(t=n;t&&t!==t.ownerDocument.body;)i+=t.scrollLeft,r+=t.scrollTop,t=t.parentElement;return[i,r]},l.prototype.getCoords=function(e,t,n,i,r,o,s){if(!n.width||!n.height)return null;var a=l.getCoordsRelativeToElement(e,t);return a?(a[0]=Math.ceil((a[0]+(s?this._renderer.dimensions.actualCellWidth/2:0))/this._renderer.dimensions.actualCellWidth),a[1]=Math.ceil(a[1]/this._renderer.dimensions.actualCellHeight),a[0]=Math.min(Math.max(a[0],1),r+(s?1:0)),a[1]=Math.min(Math.max(a[1],1),o),a):null},l.prototype.getRawByteCoords=function(e,t,n,i,r,o){var s=this.getCoords(e,t,n,i,r,o),a=s[0],l=s[1];return{x:a+=32,y:l+=32}},l}();t.MouseHelper=i},function(module,exports){!function(n){var i={};function r(e){if(i[e])return i[e].exports;var t=i[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}r.m=n,r.c=i,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([/*!*************************!*\
  !*** ./src/js/index.js ***!
  \*************************//*!dynamic exports provided*//*!all exports used*/function(module,exports,__webpack_require__){eval("/* WEBPACK VAR INJECTION */(function(global) {var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/**\n * Tocbot\n * Tocbot creates a toble of contents based on HTML headings on a page,\n * this allows users to easily jump to different sections of the document.\n * Tocbot was inspired by tocify (http://gregfranko.com/jquery.tocify.js/).\n * The main differences are that it works natively without any need for jquery or jquery UI).\n *\n * @author Tim Scanlin\n */\n\n/* globals define */\n\n(function (root, factory) {\n  if (true) {\n    !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory(root)),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?\n\t\t\t\t(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__))\n  } else if (typeof exports === 'object') {\n    module.exports = factory(root)\n  } else {\n    root.tocbot = factory(root)\n  }\n})(typeof global !== 'undefined' ? global : this.window || this.global, function (root) {\n  'use strict'\n\n  // Default options.\n  var defaultOptions = __webpack_require__(/*! ./default-options.js */ 2)\n  // Object to store current options.\n  var options = {}\n  // Object for public APIs.\n  var tocbot = {}\n\n  var BuildHtml = __webpack_require__(/*! ./build-html.js */ 3)\n  var ParseContent = __webpack_require__(/*! ./parse-content.js */ 4)\n  // Keep these variables at top scope once options are passed in.\n  var buildHtml\n  var parseContent\n\n  // Just return if its not a browser.\n  if (typeof window === 'undefined') {\n    return\n  }\n  var supports = !!root.document.querySelector && !!root.addEventListener // Feature test\n  var headingsArray\n\n  // From: https://github.com/Raynos/xtend\n  var hasOwnProperty = Object.prototype.hasOwnProperty\n  function extend () {\n    var target = {}\n    for (var i = 0; i < arguments.length; i++) {\n      var source = arguments[i]\n      for (var key in source) {\n        if (hasOwnProperty.call(source, key)) {\n          target[key] = source[key]\n        }\n      }\n    }\n    return target\n  }\n\n  // From: https://remysharp.com/2010/07/21/throttling-function-calls\n  function throttle (fn, threshhold, scope) {\n    threshhold || (threshhold = 250)\n    var last\n    var deferTimer\n    return function () {\n      var context = scope || this\n      var now = +new Date()\n      var args = arguments\n      if (last && now < last + threshhold) {\n        // hold on to it\n        clearTimeout(deferTimer)\n        deferTimer = setTimeout(function () {\n          last = now\n          fn.apply(context, args)\n        }, threshhold)\n      } else {\n        last = now\n        fn.apply(context, args)\n      }\n    }\n  }\n\n  /**\n   * Destroy tocbot.\n   */\n  tocbot.destroy = function () {\n    // Clear HTML.\n    try {\n      document.querySelector(options.tocSelector).innerHTML = ''\n    } catch (e) {\n      console.warn('Element not found: ' + options.tocSelector); // eslint-disable-line\n    }\n\n    // Remove event listeners.\n    document.removeEventListener('scroll', this._scrollListener, false)\n    document.removeEventListener('resize', this._scrollListener, false)\n    if (buildHtml) {\n      document.removeEventListener('click', this._clickListener, false)\n    }\n  }\n\n  /**\n   * Initialize tocbot.\n   * @param {object} customOptions\n   */\n  tocbot.init = function (customOptions) {\n    // feature test\n    if (!supports) {\n      return\n    }\n\n    // Merge defaults with user options.\n    // Set to options variable at the top.\n    options = extend(defaultOptions, customOptions || {})\n    this.options = options\n    this.state = {}\n\n    // Init smooth scroll if enabled (default).\n    if (options.scrollSmooth) {\n      options.duration = options.scrollSmoothDuration\n      tocbot.scrollSmooth = __webpack_require__(/*! ./scroll-smooth */ 5).initSmoothScrolling(options)\n    }\n\n    // Pass options to these modules.\n    buildHtml = BuildHtml(options)\n    parseContent = ParseContent(options)\n\n    // For testing purposes.\n    this._buildHtml = buildHtml\n    this._parseContent = parseContent\n\n    // Destroy it if it exists first.\n    tocbot.destroy()\n\n    // Get headings array.\n    headingsArray = parseContent.selectHeadings(options.contentSelector, options.headingSelector)\n    // Return if no headings are found.\n    if (headingsArray === null) {\n      return\n    }\n\n    // Build nested headings array.\n    var nestedHeadingsObj = parseContent.nestHeadingsArray(headingsArray)\n    var nestedHeadings = nestedHeadingsObj.nest\n\n    // Render.\n    buildHtml.render(options.tocSelector, nestedHeadings)\n\n    // Update Sidebar and bind listeners.\n    this._scrollListener = throttle(function (e) {\n      buildHtml.updateToc(headingsArray)\n      var isTop = e && e.target && e.target.scrollingElement && e.target.scrollingElement.scrollTop === 0\n      if ((e && (e.eventPhase === 0 || e.currentTarget === null)) || isTop) {\n        buildHtml.updateToc(headingsArray)\n        if (options.scrollEndCallback) {\n          options.scrollEndCallback(e)\n        }\n      }\n    }, options.throttleTimeout)\n    this._scrollListener()\n    document.addEventListener('scroll', this._scrollListener, false)\n    document.addEventListener('resize', this._scrollListener, false)\n\n    // Bind click listeners to disable animation.\n    var timeout = null\n    this._clickListener = throttle(function (event) {\n      if (options.scrollSmooth) {\n        buildHtml.disableTocAnimation(event)\n      }\n      buildHtml.updateToc(headingsArray)\n      // Timeout to re-enable the animation.\n      timeout && clearTimeout(timeout)\n      timeout = setTimeout(function () {\n        buildHtml.enableTocAnimation()\n      }, options.scrollSmoothDuration)\n    }, options.throttleTimeout)\n    document.addEventListener('click', this._clickListener, false)\n\n    return this\n  }\n\n  /**\n   * Refresh tocbot.\n   */\n  tocbot.refresh = function (customOptions) {\n    tocbot.destroy()\n    tocbot.init(customOptions || this.options)\n  }\n\n  // Make tocbot available globally.\n  root.tocbot = tocbot\n\n  return tocbot\n})\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(/*! ./../../node_modules/webpack/buildin/global.js */ 1)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AgIGZvciAodmFyIGkgPSAwOyBpIDwgYXJndW1lbnRzLmxlbmd0aDsgaSsrKSB7XG4gICAgICB2YXIgc291cmNlID0gYXJndW1lbnRzW2ldXG4gICAgICBmb3IgKHZhciBrZXkgaW4gc291cmNlKSB7XG4gICAgICAgIGlmIChoYXNPd25Qcm9wZXJ0eS5jYWxsKHNvdXJjZSwga2V5KSkge1xuICAgICAgICAgIHRhcmdldFtrZXldID0gc291cmNlW2tleV1cbiAgICAgICAgfVxuICAgICAgfVxuICAgIH1cbiAgICByZXR1cm4gdGFyZ2V0XG4gIH1cblxuICAvLyBGcm9tOiBodHRwczovL3JlbXlzaGFycC5jb20vMjAxMC8wNy8yMS90aHJvdHRsaW5nLWZ1bmN0aW9uLWNhbGxzXG4gIGZ1bmN0aW9uIHRocm90dGxlIChmbiwgdGhyZXNoaG9sZCwgc2NvcGUpIHtcbiAgICB0aHJlc2hob2xkIHx8ICh0aHJlc2hob2xkID0gMjUwKVxuICAgIHZhciBsYXN0XG4gICAgdmFyIGRlZmVyVGltZXJcbiAgICByZXR1cm4gZnVuY3Rpb24gKCkge1xuICAgICAgdmFyIGNvbnRleHQgPSBzY29wZSB8fCB0aGlzXG4gICAgICB2YXIgbm93ID0gK25ldyBEYXRlKClcbiAgICAgIHZhciBhcmdzID0gYXJndW1lbnRzXG4gICAgICBpZiAobGFzdCAmJiBub3cgPCBsYXN0ICsgdGhyZXNoaG9sZCkge1xuICAgICAgICAvLyBob2xkIG9uIHRvIGl0XG4gICAgICAgIGNsZWFyVGltZW91dChkZWZlclRpbWVyKVxuICAgICAgICBkZWZlclRpbWVyID0gc2V0VGltZW91dChmdW5jdGlvbiAoKSB7XG4gICAgICAgICAgbGFzdCA9IG5vd1xuICAgICAgICAgIGZuLmFwcGx5KGNvbnRleHQsIGFyZ3MpXG4gICAgICAgIH0sIHRocmVzaGhvbGQpXG4gICAgICB9IGVsc2Uge1xuICAgICAgICBsYXN0ID0gbm93XG4gICAgICAgIGZuLmFwcGx5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UFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7QSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///0\n")},/*!***********************************!*\
  !*** (webpack)/buildin/global.js ***!
  \***********************************//*!dynamic exports provided*//*!all exports used*/function(module,exports){eval('var g;\r\n\r\n// This works in non-strict mode\r\ng = (function() {\r\n\treturn this;\r\n})();\r\n\r\ntry {\r\n\t// This works if eval is allowed (see CSP)\r\n\tg = g || Function("return this")() || (1,eval)("this");\r\n} catch(e) {\r\n\t// This works if the window reference is available\r\n\tif(typeof window === "object")\r\n\t\tg = window;\r\n}\r\n\r\n// g can still be undefined, but nothing to do about it...\r\n// We return undefined, instead of nothing here, so it\'s\r\n// easier to handle this case. if(!global) { ...}\r\n\r\nmodule.exports = g;\r\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMS5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8od2VicGFjaykvYnVpbGRpbi9nbG9iYWwuanM/MzY5OCJdLCJzb3VyY2VzQ29udGVudCI6WyJ2YXIgZztcclxuXHJcbi8vIFRoaXMgd29ya3MgaW4gbm9uLXN0cmljdCBtb2RlXHJcbmcgPSAoZnVuY3Rpb24oKSB7XHJcblx0cmV0dXJuIHRoaXM7XHJcbn0pKCk7XHJcblxyXG50cnkge1xyXG5cdC8vIFRoaXMgd29ya3MgaWYgZXZhbCBpcyBhbGxvd2VkIChzZWUgQ1NQKVxyXG5cdGcgPSBnIHx8IEZ1bmN0aW9uKFwicmV0dXJuIHRoaXNcIikoKSB8fCAoMSxldmFsKShcInRoaXNcIik7XHJcbn0gY2F0Y2goZSkge1xyXG5cdC8vIFRoaXMgd29ya3MgaWYgdGhlIHdpbmRvdyByZWZlcmVuY2UgaXMgYXZhaWxhYmxlXHJcblx0aWYodHlwZW9mIHdpbmRvdyA9PT0gXCJvYmplY3RcIilcclxuXHRcdGcgPSB3aW5kb3c7XHJcbn1cclxuXHJcbi8vIGcgY2FuIHN0aWxsIGJlIHVuZGVmaW5lZCwgYnV0IG5vdGhpbmcgdG8gZG8gYWJvdXQgaXQuLi5cclxuLy8gV2UgcmV0dXJuIHVuZGVmaW5lZCwgaW5zdGVhZCBvZiBub3RoaW5nIGhlcmUsIHNvIGl0J3NcclxuLy8gZWFzaWVyIHRvIGhhbmRsZSB0aGlzIGNhc2UuIGlmKCFnbG9iYWwpIHsgLi4ufVxyXG5cclxubW9kdWxlLmV4cG9ydHMgPSBnO1xyXG5cblxuXG4vLy8vLy8vLy8vLy8vLy8vLy9cbi8vIFdFQlBBQ0sgRk9PVEVSXG4vLyAod2VicGFjaykvYnVpbGRpbi9nbG9iYWwuanNcbi8vIG1vZHVsZSBpZCA9IDFcbi8vIG1vZHVsZSBjaHVua3MgPSAwIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7Iiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///1\n')},/*!***********************************!*\
  !*** ./src/js/default-options.js ***!
  \***********************************//*!dynamic exports provided*//*!all exports used*/function(module,exports){eval("module.exports = {\n  // Where to render the table of contents.\n  tocSelector: '.js-toc',\n  // Where to grab the headings to build the table of contents.\n  contentSelector: '.js-toc-content',\n  // Which headings to grab inside of the contentSelector element.\n  headingSelector: 'h1, h2, h3',\n  // Headings that match the ignoreSelector will be skipped.\n  ignoreSelector: '.js-toc-ignore',\n  // Main class to add to links.\n  linkClass: 'toc-link',\n  // Extra classes to add to links.\n  extraLinkClasses: '',\n  // Class to add to active links,\n  // the link corresponding to the top most heading on the page.\n  activeLinkClass: 'is-active-link',\n  // Main class to add to lists.\n  listClass: 'toc-list',\n  // Extra classes to add to lists.\n  extraListClasses: '',\n  // Class that gets added when a list should be collapsed.\n  isCollapsedClass: 'is-collapsed',\n  // Class that gets added when a list should be able\n  // to be collapsed but isn't necessarily collpased.\n  collapsibleClass: 'is-collapsible',\n  // Class to add to list items.\n  listItemClass: 'toc-list-item',\n  // Class to add to active list items.\n  activeListItemClass: 'is-active-li',\n  // How many heading levels should not be collpased.\n  // For example, number 6 will show everything since\n  // there are only 6 heading levels and number 0 will collpase them all.\n  // The sections that are hidden will open\n  // and close as you scroll to headings within them.\n  collapseDepth: 0,\n  // Smooth scrolling enabled.\n  scrollSmooth: true,\n  // Smooth scroll duration.\n  scrollSmoothDuration: 420,\n  // Callback for scroll end.\n  scrollEndCallback: function (e) {},\n  // Headings offset between the headings and the top of the document (this is meant for minor adjustments).\n  headingsOffset: 1,\n  // Timeout between events firing to make sure it's\n  // not too rapid (for performance reasons).\n  throttleTimeout: 50,\n  // Element to add the positionFixedClass to.\n  positionFixedSelector: null,\n  // Fixed position class to add to make sidebar fixed after scrolling\n  // down past the fixedSidebarOffset.\n  positionFixedClass: 'is-position-fixed',\n  // fixedSidebarOffset can be any number but by default is set\n  // to auto which sets the fixedSidebarOffset to the sidebar\n  // element's offsetTop from the top of the document on init.\n  fixedSidebarOffset: 'auto',\n  // includeHtml can be set to true to include the HTML markup from the\n  // heading node instead of just including the textContent.\n  includeHtml: false,\n  // onclick function to apply to all links in toc. will be called with\n  // the event as the first parameter, and this can be used to stop,\n  // propagation, prevent default or perform action\n  onClick: false,\n  // orderedList can be set to false to generate unordered lists (ul)\n  // instead of ordered lists (ol)\n  orderedList: true\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMi5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3NyYy9qcy9kZWZhdWx0LW9wdGlvbnMuanM/MTg1MSJdLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IHtcbiAgLy8gV2hlcmUgdG8gcmVuZGVyIHRoZSB0YWJsZSBvZiBjb250ZW50cy5cbiAgdG9jU2VsZWN0b3I6ICcuanMtdG9jJyxcbiAgLy8gV2hlcmUgdG8gZ3JhYiB0aGUgaGVhZGluZ3MgdG8gYnVpbGQgdGhlIHRhYmxlIG9mIGNvbnRlbnRzLlxuICBjb250ZW50U2VsZWN0b3I6ICcuanMtdG9jLWNvbnRlbnQnLFxuICAvLyBXaGljaCBoZWFkaW5ncyB0byBncm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\n//# sourceURL=webpack-internal:///2\n")},/*!******************************!*\
  !*** ./src/js/build-html.js ***!
  \******************************//*!dynamic exports provided*//*!all exports used*/function(module,exports){eval("/**\n * This file is responsible for building the DOM and updating DOM state.\n *\n * @author Tim Scanlin\n */\n\nmodule.exports = function (options) {\n  var forEach = [].forEach\n  var some = [].some\n  var body = document.body\n  var currentlyHighlighting = true\n  var SPACE_CHAR = ' '\n\n  /**\n   * Create link and list elements.\n   * @param {Object} d\n   * @param {HTMLElement} container\n   * @return {HTMLElement}\n   */\n  function createEl (d, container) {\n    var link = container.appendChild(createLink(d))\n    if (d.children.length) {\n      var list = createList(d.isCollapsed)\n      d.children.forEach(function (child) {\n        createEl(child, list)\n      })\n      link.appendChild(list)\n    }\n  }\n\n  /**\n   * Render nested heading array data into a given selector.\n   * @param {String} selector\n   * @param {Array} data\n   * @return {HTMLElement}\n   */\n  function render (selector, data) {\n    var collapsed = false\n    var container = createList(collapsed)\n\n    data.forEach(function (d) {\n      createEl(d, container)\n    })\n\n    var parent = document.querySelector(selector)\n\n    // Return if no parent is found.\n    if (parent === null) {\n      return\n    }\n\n    // Remove existing child if it exists.\n    if (parent.firstChild) {\n      parent.removeChild(parent.firstChild)\n    }\n\n    // Just return the parent and don't append the list if no links are found.\n    if (data.length === 0) {\n      return parent\n    }\n\n    // Append the Elements that have been created\n    return parent.appendChild(container)\n  }\n\n  /**\n   * Create link element.\n   * @param {Object} data\n   * @return {HTMLElement}\n   */\n  function createLink (data) {\n    var item = document.createElement('li')\n    var a = document.createElement('a')\n    if (options.listItemClass) {\n      item.setAttribute('class', options.listItemClass)\n    }\n\n    if (options.onClick) {\n      a.onclick = options.onClick\n    }\n\n    if (options.includeHtml && data.childNodes.length) {\n      forEach.call(data.childNodes, function (node) {\n        a.appendChild(node.cloneNode(true))\n      })\n    } else {\n      // Default behavior.\n      a.textContent = data.textContent\n    }\n    a.setAttribute('href', '#' + data.id)\n    a.setAttribute('class', options.linkClass +\n      SPACE_CHAR + 'node-name--' + data.nodeName +\n      SPACE_CHAR + options.extraLinkClasses)\n    item.appendChild(a)\n    return item\n  }\n\n  /**\n   * Create list element.\n   * @param {Boolean} isCollapsed\n   * @return {HTMLElement}\n   */\n  function createList (isCollapsed) {\n    var listElement = (options.orderedList) ? 'ol' : 'ul'\n    var list = document.createElement(listElement)\n    var classes = options.listClass +\n      SPACE_CHAR + options.extraListClasses\n    if (isCollapsed) {\n      classes += SPACE_CHAR + options.collapsibleClass\n      classes += SPACE_CHAR + options.isCollapsedClass\n    }\n    list.setAttribute('class', classes)\n    return list\n  }\n\n  /**\n   * Update fixed sidebar class.\n   * @return {HTMLElement}\n   */\n  function updateFixedSidebarClass () {\n    var top = document.documentElement.scrollTop || body.scrollTop\n    var posFixedEl = document.querySelector(options.positionFixedSelector)\n\n    if (options.fixedSidebarOffset === 'auto') {\n      options.fixedSidebarOffset = document.querySelector(options.tocSelector).offsetTop\n    }\n\n    if (top > options.fixedSidebarOffset) {\n      if (posFixedEl.className.indexOf(options.positionFixedClass) === -1) {\n        posFixedEl.className += SPACE_CHAR + options.positionFixedClass\n      }\n    } else {\n      posFixedEl.className = posFixedEl.className.split(SPACE_CHAR + options.positionFixedClass).join('')\n    }\n  }\n\n  /**\n   * Update TOC highlighting and collpased groupings.\n   */\n  function updateToc (headingsArray) {\n    var top = document.documentElement.scrollTop || body.scrollTop\n\n    // Add fixed class at offset\n    if (options.positionFixedSelector) {\n      updateFixedSidebarClass()\n    }\n\n    // Get the top most heading currently visible on the page so we know what to highlight.\n    var headings = headingsArray\n    var topHeader\n    // Using some instead of each so that we can escape early.\n    if (currentlyHighlighting &&\n      document.querySelector(options.tocSelector) !== null &&\n      headings.length > 0) {\n      some.call(headings, function (heading, i) {\n        if (heading.offsetTop > top + options.headingsOffset + 10) {\n          // Don't allow negative index value.\n          var index = (i === 0) ? i : i - 1\n          topHeader = headings[index]\n          return true\n        } else if (i === headings.length - 1) {\n          // This allows scrolling for the last heading on the page.\n          topHeader = headings[headings.length - 1]\n          return true\n        }\n      })\n\n      // Remove the active class from the other tocLinks.\n      var tocLinks = document.querySelector(options.tocSelector)\n        .querySelectorAll('.' + options.linkClass)\n      forEach.call(tocLinks, function (tocLink) {\n        tocLink.className = tocLink.className.split(SPACE_CHAR + options.activeLinkClass).join('')\n      })\n      var tocLis = document.querySelector(options.tocSelector)\n        .querySelectorAll('.' + options.listItemClass)\n      forEach.call(tocLis, function (tocLi) {\n        tocLi.className = tocLi.className.split(SPACE_CHAR + options.activeListItemClass).join('')\n      })\n\n      // Add the active class to the active tocLink.\n      var activeTocLink = document.querySelector(options.tocSelector)\n        .querySelector('.' + options.linkClass +\n          '.node-name--' + topHeader.nodeName +\n          '[href=\"#' + topHeader.id + '\"]')\n      if (activeTocLink.className.indexOf(options.activeLinkClass) === -1) {\n        activeTocLink.className += SPACE_CHAR + options.activeLinkClass\n      }\n      var li = activeTocLink.parentNode\n      if (li && li.className.indexOf(options.activeListItemClass) === -1) {\n        li.className += SPACE_CHAR + options.activeListItemClass\n      }\n\n      var tocLists = document.querySelector(options.tocSelector)\n        .querySelectorAll('.' + options.listClass + '.' + options.collapsibleClass)\n\n      // Collapse the other collapsible lists.\n      forEach.call(tocLists, function (list) {\n        if (list.className.indexOf(options.isCollapsedClass) === -1) {\n          list.className += SPACE_CHAR + options.isCollapsedClass\n        }\n      })\n\n      // Expand the active link's collapsible list and its sibling if applicable.\n      if (activeTocLink.nextSibling && activeTocLink.nextSibling.className.indexOf(options.isCollapsedClass) !== -1) {\n        activeTocLink.nextSibling.className = activeTocLink.nextSibling.className.split(SPACE_CHAR + options.isCollapsedClass).join('')\n      }\n      removeCollapsedFromParents(activeTocLink.parentNode.parentNode)\n    }\n  }\n\n  /**\n   * Remove collpased class from parent elements.\n   * @param {HTMLElement} element\n   * @return {HTMLElement}\n   */\n  function removeCollapsedFromParents (element) {\n    if (element.className.indexOf(options.collapsibleClass) !== -1 && element.className.indexOf(options.isCollapsedClass) !== -1) {\n      element.className = element.className.split(SPACE_CHAR + options.isCollapsedClass).join('')\n      return removeCollapsedFromParents(element.parentNode.parentNode)\n    }\n    return element\n  }\n\n  /**\n   * Disable TOC Animation when a link is clicked.\n   * @param {Event} event\n   */\n  function disableTocAnimation (event) {\n    var target = event.target || event.srcElement\n    if (typeof target.className !== 'string' || target.className.indexOf(options.linkClass) === -1) {\n      return\n    }\n    // Bind to tocLink clicks to temporarily disable highlighting\n    // while smoothScroll is animating.\n    currentlyHighlighting = false\n  }\n\n  /**\n   * Enable TOC Animation.\n   */\n  function enableTocAnimation () {\n    currentlyHighlighting = true\n  }\n\n  return {\n    enableTocAnimation: enableTocAnimation,\n    disableTocAnimation: disableTocAnimation,\n    render: render,\n    updateToc: updateToc\n  }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3NyYy9qcy9idWlsZC1odG1sLmpzPzdkMDEiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBUaGlzIGZpbGUgaXMgcmVzcG9uc2libGUgZm9yIGJ1aWxkaW5nIHRoZSBET00gYW5kIHVwZGF0aW5nIERPTSBzdGF0ZS5cbiAqXG4gKiBAYXV0aG9yIFRpbSBTY2FubGluXG4gKi9cblxubW9kdWxlLmV4cG9ydHMgPSBmdW5jdGlvbiAob3B0aW9ucykge1xuICB2YXIgZm9yRWFjaCA9IFtdLmZvckVhY2hcbiAgdmFyIHNvbWUgPSBbXS5zb21lXG4gIHZhciBib2R5ID0gZG9jdW1lbnQuYm9keVxuICB2YXIgY3VycmVudGx5SGlnaGxpZ2h0aW5nID0gdHJ1ZVxuICB2YXIgU1BBQ0VfQ0hBUiA9ICcgJ1xuXG4gIC8qKlxuICAgKiBDcmVhdGUgbGluayBhbmQgbGlzdCBlbGVtZW50cy5cbiAgICogQHBhcmFtIHtPYmplY3R9IGRcbiAgICogQHBhcmFtIHtIVE1MRWxlbWV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BQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOyIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///3\n")},/*!*********************************!*\
  !*** ./src/js/parse-content.js ***!
  \*********************************//*!dynamic exports provided*//*!all exports used*/function(module,exports){eval("/**\n * This file is responsible for parsing the content from the DOM and making\n * sure data is nested properly.\n *\n * @author Tim Scanlin\n */\n\nmodule.exports = function parseContent (options) {\n  var reduce = [].reduce\n\n  /**\n   * Get the last item in an array and return a reference to it.\n   * @param {Array} array\n   * @return {Object}\n   */\n  function getLastItem (array) {\n    return array[array.length - 1]\n  }\n\n  /**\n   * Get heading level for a heading dom node.\n   * @param {HTMLElement} heading\n   * @return {Number}\n   */\n  function getHeadingLevel (heading) {\n    return +heading.nodeName.split('H').join('')\n  }\n\n  /**\n   * Get important properties from a heading element and store in a plain object.\n   * @param {HTMLElement} heading\n   * @return {Object}\n   */\n  function getHeadingObject (heading) {\n    var obj = {\n      id: heading.id,\n      children: [],\n      nodeName: heading.nodeName,\n      headingLevel: getHeadingLevel(heading),\n      textContent: heading.textContent.trim()\n    }\n\n    if (options.includeHtml) {\n      obj.childNodes = heading.childNodes\n    }\n\n    return obj\n  }\n\n  /**\n   * Add a node to the nested array.\n   * @param {Object} node\n   * @param {Array} nest\n   * @return {Array}\n   */\n  function addNode (node, nest) {\n    var obj = getHeadingObject(node)\n    var level = getHeadingLevel(node)\n    var array = nest\n    var lastItem = getLastItem(array)\n    var lastItemLevel = lastItem\n      ? lastItem.headingLevel\n      : 0\n    var counter = level - lastItemLevel\n\n    while (counter > 0) {\n      lastItem = getLastItem(array)\n      if (lastItem && lastItem.children !== undefined) {\n        array = lastItem.children\n      }\n      counter--\n    }\n\n    if (level >= options.collapseDepth) {\n      obj.isCollapsed = true\n    }\n\n    array.push(obj)\n    return array\n  }\n\n  /**\n   * Select headings in content area, exclude any selector in options.ignoreSelector\n   * @param {String} contentSelector\n   * @param {Array} headingSelector\n   * @return {Array}\n   */\n  function selectHeadings (contentSelector, headingSelector) {\n    var selectors = headingSelector\n    if (options.ignoreSelector) {\n      selectors = headingSelector.split(',')\n        .map(function mapSelectors (selector) {\n          return selector.trim() + ':not(' + options.ignoreSelector + ')'\n        })\n    }\n    try {\n      return document.querySelector(contentSelector)\n        .querySelectorAll(selectors)\n    } catch (e) {\n      console.warn('Element not found: ' + contentSelector); // eslint-disable-line\n      return null\n    }\n  }\n\n  /**\n   * Nest headings array into nested arrays with 'children' property.\n   * @param {Array} headingsArray\n   * @return {Object}\n   */\n  function nestHeadingsArray (headingsArray) {\n    return reduce.call(headingsArray, function reducer (prev, curr) {\n      var currentHeading = getHeadingObject(curr)\n\n      addNode(currentHeading, prev.nest)\n      return prev\n    }, {\n      nest: []\n    })\n  }\n\n  return {\n    nestHeadingsArray: nestHeadingsArray,\n    selectHeadings: selectHeadings\n  }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNC5qcyIsIn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=webpack-internal:///4\n")},/*!***************************************!*\
  !*** ./src/js/scroll-smooth/index.js ***!
  \***************************************//*!dynamic exports provided*//*!all exports used*/function(module,exports){eval("/* globals location, requestAnimationFrame */\n\nexports.initSmoothScrolling = initSmoothScrolling\n\nfunction initSmoothScrolling (options) {\n  if (isCssSmoothSCrollSupported()) { }\n\n  var duration = options.duration\n\n  var pageUrl = location.hash\n    ? stripHash(location.href)\n    : location.href\n\n  delegatedLinkHijacking()\n\n  function delegatedLinkHijacking () {\n    document.body.addEventListener('click', onClick, false)\n\n    function onClick (e) {\n      if (\n        !isInPageLink(e.target) ||\n        e.target.className.indexOf('no-smooth-scroll') > -1 ||\n        (e.target.href.charAt(e.target.href.length - 2) === '#' &&\n        e.target.href.charAt(e.target.href.length - 1) === '!') ||\n        e.target.className.indexOf(options.linkClass) === -1) {\n        return\n      }\n\n      // Don't prevent default or hash doesn't change.\n      // e.preventDefault()\n\n      jump(e.target.hash, {\n        duration: duration,\n        callback: function () {\n          setFocus(e.target.hash)\n        }\n      })\n    }\n  }\n\n  function isInPageLink (n) {\n    return n.tagName.toLowerCase() === 'a' &&\n      (n.hash.length > 0 || n.href.charAt(n.href.length - 1) === '#') &&\n      (stripHash(n.href) === pageUrl || stripHash(n.href) + '#' === pageUrl)\n  }\n\n  function stripHash (url) {\n    return url.slice(0, url.lastIndexOf('#'))\n  }\n\n  function isCssSmoothSCrollSupported () {\n    return 'scrollBehavior' in document.documentElement.style\n  }\n\n  // Adapted from:\n  // https://www.nczonline.net/blog/2013/01/15/fixing-skip-to-content-links/\n  function setFocus (hash) {\n    var element = document.getElementById(hash.substring(1))\n\n    if (element) {\n      if (!/^(?:a|select|input|button|textarea)$/i.test(element.tagName)) {\n        element.tabIndex = -1\n      }\n\n      element.focus()\n    }\n  }\n}\n\nfunction jump (target, options) {\n  var start = window.pageYOffset\n  var opt = {\n    duration: options.duration,\n    offset: options.offset || 0,\n    callback: options.callback,\n    easing: options.easing || easeInOutQuad\n  }\n  // This makes ids that start with a number work: ('[id=\"' + decodeURI(target).split('#').join('') + '\"]')\n  // DecodeURI for nonASCII hashes, they was encoded, but id was not encoded, it lead to not finding the tgt element by id.\n  // And this is for IE: document.body.scrollTop\n  var tgt = document.querySelector('[id=\"' + decodeURI(target).split('#').join('') + '\"]')\n  var distance = typeof target === 'string'\n    ? opt.offset + (\n      target\n      ? (tgt && tgt.getBoundingClientRect().top) || 0 // handle non-existent links better.\n      : -(document.documentElement.scrollTop || document.body.scrollTop))\n    : target\n  var duration = typeof opt.duration === 'function'\n    ? opt.duration(distance)\n    : opt.duration\n  var timeStart\n  var timeElapsed\n\n  requestAnimationFrame(function (time) { timeStart = time; loop(time) })\n  function loop (time) {\n    timeElapsed = time - timeStart\n\n    window.scrollTo(0, opt.easing(timeElapsed, start, distance, duration))\n\n    if (timeElapsed < duration) { requestAnimationFrame(loop) } else { end() }\n  }\n\n  function end () {\n    window.scrollTo(0, start + distance)\n\n    if (typeof opt.callback === 'function') { opt.callback() }\n  }\n\n  // Robert Penner's easeInOutQuad - http://robertpenner.com/easing/\n  function easeInOutQuad (t, b, c, d) {\n    t /= d / 2\n    if (t < 1) return c / 2 * t * t + b\n    t--\n    return -c / 2 * (t * (t - 2) - 1) + b\n  }\n}\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNS5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3NyYy9qcy9zY3JvbGwtc21vb3RoL2luZGV4LmpzP2EzMGUiXSwic291cmNlc0NvbnRlbnQiOlsiLyogZ2xvYmFscyBsb2NhdGlvbiwgcmVxdWVzdEFuaW1hdGlvbkZyYW1lICovXG5cbmV4cG9ydHMuaW5pdFNtb290aFNjcm9sbGluZyA9IGluaXRTbW9vdGhTY3JvbGxpbmdcblxuZnVuY3Rpb24gaW5pdFNtb290aFNjcm9sbGluZyAob3B0aW9ucykge1xuICBpZiAoaXNDc3NTbW9vdGhTQ3Jvb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tBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOyIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///5\n")}])},function(e,t,n){},function(e,t,n){},function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_RESULT__;/*!
  * global/window.js
  * https://github.com/RobinHerbots/Inputmask
  * Copyright (c) 2010 - 2018 Robin Herbots
  * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
  * Version: 4.0.3
  */__WEBPACK_AMD_DEFINE_RESULT__=function(){return"undefined"!=typeof window?window:new(eval("require('jsdom').JSDOM"))("").window}.call(exports,__webpack_require__,exports,module),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)},,,,,,function(e,t,n){n(78),n(80),n(81),e.exports=n(13)},,function(e,t,n){/*!
  * Bootstrap v4.1.3 (https://getbootstrap.com/)
  * Copyright 2011-2018 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
  */!function(e,t,u){"use strict";function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function s(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}function a(r){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{},t=Object.keys(o);"function"==typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(o).filter(function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable}))),t.forEach(function(e){var t,n,i;t=r,i=o[n=e],n in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i})}return r}t=t&&t.hasOwnProperty("default")?t.default:t,u=u&&u.hasOwnProperty("default")?u.default:u;var c,r,n,o,h,d,f,l,p,m,g,_,v,y,b,C,I,A,x,E,w,B,T,S,k,L,G,D,R,N,F,H,O,W,Q,M,Z,U,V,X,P,j,Y,z,J,K,q,$,ee,te,ne,ie,re,oe,se,ae,le,ce,ue,he,de,fe,pe,me,ge,_e,ve,ye,be,Ce,Ie,Ae,xe,Ee,we,Be,Te,Se,ke,Le,Ge,De,Re,Ne,Fe,He,Oe,We,Qe,Me,Ze,Ue,Ve,Xe,Pe,je,Ye,ze,Je,Ke,qe,$e,et,tt,nt,it,rt,ot,st,at,lt,ct,ut,ht,dt,ft,pt=function(i){var t="transitionend";function e(e){var t=this,n=!1;return i(this).one(l.TRANSITION_END,function(){n=!0}),setTimeout(function(){n||l.triggerTransitionEnd(t)},e),this}var l={TRANSITION_END:"bsTransitionEnd",getUID:function(e){for(;e+=~~(1e6*Math.random()),document.getElementById(e););return e},getSelectorFromElement:function(e){var t=e.getAttribute("data-target");t&&"#"!==t||(t=e.getAttribute("href")||"");try{return document.querySelector(t)?t:null}catch(e){return null}},getTransitionDurationFromElement:function(e){if(!e)return 0;var t=i(e).css("transition-duration"),n=parseFloat(t);return n?(t=t.split(",")[0],1e3*parseFloat(t)):0},reflow:function(e){return e.offsetHeight},triggerTransitionEnd:function(e){i(e).trigger(t)},supportsTransitionEnd:function(){return Boolean(t)},isElement:function(e){return(e[0]||e).nodeType},typeCheckConfig:function(e,t,n){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var r=n[i],o=t[i],s=o&&l.isElement(o)?"element":(a=o,{}.toString.call(a).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(r).test(s))throw new Error(e.toUpperCase()+': Option "'+i+'" provided type "'+s+'" but expected type "'+r+'".')}var a}};return i.fn.emulateTransitionEnd=e,i.event.special[l.TRANSITION_END]={bindType:t,delegateType:t,handle:function(e){if(i(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}},l}(t),mt=(at="alert",ct="."+(lt="bs.alert"),ut=(st=t).fn[at],ht={CLOSE:"close"+ct,CLOSED:"closed"+ct,CLICK_DATA_API:"click"+ct+".data-api"},dt={ALERT:"alert",FADE:"fade",SHOW:"show"},ft=function(){function i(e){this._element=e}var e=i.prototype;return e.close=function(e){var t=this._element;e&&(t=this._getRootElement(e));var n=this._triggerCloseEvent(t);n.isDefaultPrevented()||this._removeElement(t)},e.dispose=function(){st.removeData(this._element,lt),this._element=null},e._getRootElement=function(e){var t=pt.getSelectorFromElement(e),n=!1;return t&&(n=document.querySelector(t)),n||(n=st(e).closest("."+dt.ALERT)[0]),n},e._triggerCloseEvent=function(e){var t=st.Event(ht.CLOSE);return st(e).trigger(t),t},e._removeElement=function(t){var n=this;if(st(t).removeClass(dt.SHOW),st(t).hasClass(dt.FADE)){var e=pt.getTransitionDurationFromElement(t);st(t).one(pt.TRANSITION_END,function(e){return n._destroyElement(t,e)}).emulateTransitionEnd(e)}else this._destroyElement(t)},e._destroyElement=function(e){st(e).detach().trigger(ht.CLOSED).remove()},i._jQueryInterface=function(n){return this.each(function(){var e=st(this),t=e.data(lt);t||(t=new i(this),e.data(lt,t)),"close"===n&&t[n](this)})},i._handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},s(i,null,[{key:"VERSION",get:function(){return"4.1.3"}}]),i}(),st(document).on(ht.CLICK_DATA_API,'[data-dismiss="alert"]',ft._handleDismiss(new ft)),st.fn[at]=ft._jQueryInterface,st.fn[at].Constructor=ft,st.fn[at].noConflict=function(){return st.fn[at]=ut,ft._jQueryInterface},ft),gt=(Ke="button",$e="."+(qe="bs.button"),et=".data-api",tt=(Je=t).fn[Ke],nt={ACTIVE:"active",BUTTON:"btn",FOCUS:"focus"},it={DATA_TOGGLE_CARROT:'[data-toggle^="button"]',DATA_TOGGLE:'[data-toggle="buttons"]',INPUT:"input",ACTIVE:".active",BUTTON:".btn"},rt={CLICK_DATA_API:"click"+$e+et,FOCUS_BLUR_DATA_API:"focus"+$e+et+" blur"+$e+et},ot=function(){function n(e){this._element=e}var e=n.prototype;return e.toggle=function(){var e=!0,t=!0,n=Je(this._element).closest(it.DATA_TOGGLE)[0];if(n){var i=this._element.querySelector(it.INPUT);if(i){if("radio"===i.type)if(i.checked&&this._element.classList.contains(nt.ACTIVE))e=!1;else{var r=n.querySelector(it.ACTIVE);r&&Je(r).removeClass(nt.ACTIVE)}if(e){if(i.hasAttribute("disabled")||n.hasAttribute("disabled")||i.classList.contains("disabled")||n.classList.contains("disabled"))return;i.checked=!this._element.classList.contains(nt.ACTIVE),Je(i).trigger("change")}i.focus(),t=!1}}t&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(nt.ACTIVE)),e&&Je(this._element).toggleClass(nt.ACTIVE)},e.dispose=function(){Je.removeData(this._element,qe),this._element=null},n._jQueryInterface=function(t){return this.each(function(){var e=Je(this).data(qe);e||(e=new n(this),Je(this).data(qe,e)),"toggle"===t&&e[t]()})},s(n,null,[{key:"VERSION",get:function(){return"4.1.3"}}]),n}(),Je(document).on(rt.CLICK_DATA_API,it.DATA_TOGGLE_CARROT,function(e){e.preventDefault();var t=e.target;Je(t).hasClass(nt.BUTTON)||(t=Je(t).closest(it.BUTTON)),ot._jQueryInterface.call(Je(t),"toggle")}).on(rt.FOCUS_BLUR_DATA_API,it.DATA_TOGGLE_CARROT,function(e){var t=Je(e.target).closest(it.BUTTON)[0];Je(t).toggleClass(nt.FOCUS,/^focus(in)?$/.test(e.type))}),Je.fn[Ke]=ot._jQueryInterface,Je.fn[Ke].Constructor=ot,Je.fn[Ke].noConflict=function(){return Je.fn[Ke]=tt,ot._jQueryInterface},ot),_t=(We="carousel",Me="."+(Qe="bs.carousel"),Ze=(Oe=t).fn[We],Ue={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0},Ve={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean"},Xe={NEXT:"next",PREV:"prev",LEFT:"left",RIGHT:"right"},Pe={SLIDE:"slide"+Me,SLID:"slid"+Me,KEYDOWN:"keydown"+Me,MOUSEENTER:"mouseenter"+Me,MOUSELEAVE:"mouseleave"+Me,TOUCHEND:"touchend"+Me,LOAD_DATA_API:"load"+Me+".data-api",CLICK_DATA_API:"click"+Me+".data-api"},je={CAROUSEL:"carousel",ACTIVE:"active",SLIDE:"slide",RIGHT:"carousel-item-right",LEFT:"carousel-item-left",NEXT:"carousel-item-next",PREV:"carousel-item-prev",ITEM:"carousel-item"},Ye={ACTIVE:".active",ACTIVE_ITEM:".active.carousel-item",ITEM:".carousel-item",NEXT_PREV:".carousel-item-next, .carousel-item-prev",INDICATORS:".carousel-indicators",DATA_SLIDE:"[data-slide], [data-slide-to]",DATA_RIDE:'[data-ride="carousel"]'},ze=function(){function o(e,t){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this._config=this._getConfig(t),this._element=Oe(e)[0],this._indicatorsElement=this._element.querySelector(Ye.INDICATORS),this._addEventListeners()}var e=o.prototype;return e.next=function(){this._isSliding||this._slide(Xe.NEXT)},e.nextWhenVisible=function(){!document.hidden&&Oe(this._element).is(":visible")&&"hidden"!==Oe(this._element).css("visibility")&&this.next()},e.prev=function(){this._isSliding||this._slide(Xe.PREV)},e.pause=function(e){e||(this._isPaused=!0),this._element.querySelector(Ye.NEXT_PREV)&&(pt.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},e.cycle=function(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},e.to=function(e){var t=this;this._activeElement=this._element.querySelector(Ye.ACTIVE_ITEM);var n=this._getItemIndex(this._activeElement);if(!(e>this._items.length-1||e<0))if(this._isSliding)Oe(this._element).one(Pe.SLID,function(){return t.to(e)});else{if(n===e)return this.pause(),void this.cycle();var i=n<e?Xe.NEXT:Xe.PREV;this._slide(i,this._items[e])}},e.dispose=function(){Oe(this._element).off(Me),Oe.removeData(this._element,Qe),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},e._getConfig=function(e){return e=a({},Ue,e),pt.typeCheckConfig(We,e,Ve),e},e._addEventListeners=function(){var t=this;this._config.keyboard&&Oe(this._element).on(Pe.KEYDOWN,function(e){return t._keydown(e)}),"hover"===this._config.pause&&(Oe(this._element).on(Pe.MOUSEENTER,function(e){return t.pause(e)}).on(Pe.MOUSELEAVE,function(e){return t.cycle(e)}),"ontouchstart"in document.documentElement&&Oe(this._element).on(Pe.TOUCHEND,function(){t.pause(),t.touchTimeout&&clearTimeout(t.touchTimeout),t.touchTimeout=setTimeout(function(e){return t.cycle(e)},500+t._config.interval)}))},e._keydown=function(e){if(!/input|textarea/i.test(e.target.tagName))switch(e.which){case 37:e.preventDefault(),this.prev();break;case 39:e.preventDefault(),this.next()}},e._getItemIndex=function(e){return this._items=e&&e.parentNode?[].slice.call(e.parentNode.querySelectorAll(Ye.ITEM)):[],this._items.indexOf(e)},e._getItemByDirection=function(e,t){var n=e===Xe.NEXT,i=e===Xe.PREV,r=this._getItemIndex(t),o=this._items.length-1,s=i&&0===r||n&&r===o;if(s&&!this._config.wrap)return t;var a=e===Xe.PREV?-1:1,l=(r+a)%this._items.length;return-1===l?this._items[this._items.length-1]:this._items[l]},e._triggerSlideEvent=function(e,t){var n=this._getItemIndex(e),i=this._getItemIndex(this._element.querySelector(Ye.ACTIVE_ITEM)),r=Oe.Event(Pe.SLIDE,{relatedTarget:e,direction:t,from:i,to:n});return Oe(this._element).trigger(r),r},e._setActiveIndicatorElement=function(e){if(this._indicatorsElement){var t=[].slice.call(this._indicatorsElement.querySelectorAll(Ye.ACTIVE));Oe(t).removeClass(je.ACTIVE);var n=this._indicatorsElement.children[this._getItemIndex(e)];n&&Oe(n).addClass(je.ACTIVE)}},e._slide=function(e,t){var n,i,r,o=this,s=this._element.querySelector(Ye.ACTIVE_ITEM),a=this._getItemIndex(s),l=t||s&&this._getItemByDirection(e,s),c=this._getItemIndex(l),u=Boolean(this._interval);if(r=e===Xe.NEXT?(n=je.LEFT,i=je.NEXT,Xe.LEFT):(n=je.RIGHT,i=je.PREV,Xe.RIGHT),l&&Oe(l).hasClass(je.ACTIVE))this._isSliding=!1;else{var h=this._triggerSlideEvent(l,r);if(!h.isDefaultPrevented()&&s&&l){this._isSliding=!0,u&&this.pause(),this._setActiveIndicatorElement(l);var d=Oe.Event(Pe.SLID,{relatedTarget:l,direction:r,from:a,to:c});if(Oe(this._element).hasClass(je.SLIDE)){Oe(l).addClass(i),pt.reflow(l),Oe(s).addClass(n),Oe(l).addClass(n);var f=pt.getTransitionDurationFromElement(s);Oe(s).one(pt.TRANSITION_END,function(){Oe(l).removeClass(n+" "+i).addClass(je.ACTIVE),Oe(s).removeClass(je.ACTIVE+" "+i+" "+n),o._isSliding=!1,setTimeout(function(){return Oe(o._element).trigger(d)},0)}).emulateTransitionEnd(f)}else Oe(s).removeClass(je.ACTIVE),Oe(l).addClass(je.ACTIVE),this._isSliding=!1,Oe(this._element).trigger(d);u&&this.cycle()}}},o._jQueryInterface=function(i){return this.each(function(){var e=Oe(this).data(Qe),t=a({},Ue,Oe(this).data());"object"==typeof i&&(t=a({},t,i));var n="string"==typeof i?i:t.slide;if(e||(e=new o(this,t),Oe(this).data(Qe,e)),"number"==typeof i)e.to(i);else if("string"==typeof n){if(void 0===e[n])throw new TypeError('No method named "'+n+'"');e[n]()}else t.interval&&(e.pause(),e.cycle())})},o._dataApiClickHandler=function(e){var t=pt.getSelectorFromElement(this);if(t){var n=Oe(t)[0];if(n&&Oe(n).hasClass(je.CAROUSEL)){var i=a({},Oe(n).data(),Oe(this).data()),r=this.getAttribute("data-slide-to");r&&(i.interval=!1),o._jQueryInterface.call(Oe(n),i),r&&Oe(n).data(Qe).to(r),e.preventDefault()}}},s(o,null,[{key:"VERSION",get:function(){return"4.1.3"}},{key:"Default",get:function(){return Ue}}]),o}(),Oe(document).on(Pe.CLICK_DATA_API,Ye.DATA_SLIDE,ze._dataApiClickHandler),Oe(window).on(Pe.LOAD_DATA_API,function(){for(var e=[].slice.call(document.querySelectorAll(Ye.DATA_RIDE)),t=0,n=e.length;t<n;t++){var i=Oe(e[t]);ze._jQueryInterface.call(i,i.data())}}),Oe.fn[We]=ze._jQueryInterface,Oe.fn[We].Constructor=ze,Oe.fn[We].noConflict=function(){return Oe.fn[We]=Ze,ze._jQueryInterface},ze),vt=(Be="collapse",Se="."+(Te="bs.collapse"),ke=(we=t).fn[Be],Le={toggle:!0,parent:""},Ge={toggle:"boolean",parent:"(string|element)"},De={SHOW:"show"+Se,SHOWN:"shown"+Se,HIDE:"hide"+Se,HIDDEN:"hidden"+Se,CLICK_DATA_API:"click"+Se+".data-api"},Re={SHOW:"show",COLLAPSE:"collapse",COLLAPSING:"collapsing",COLLAPSED:"collapsed"},Ne={WIDTH:"width",HEIGHT:"height"},Fe={ACTIVES:".show, .collapsing",DATA_TOGGLE:'[data-toggle="collapse"]'},He=function(){function l(t,e){this._isTransitioning=!1,this._element=t,this._config=this._getConfig(e),this._triggerArray=we.makeArray(document.querySelectorAll('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'));for(var n=[].slice.call(document.querySelectorAll(Fe.DATA_TOGGLE)),i=0,r=n.length;i<r;i++){var o=n[i],s=pt.getSelectorFromElement(o),a=[].slice.call(document.querySelectorAll(s)).filter(function(e){return e===t});null!==s&&0<a.length&&(this._selector=s,this._triggerArray.push(o))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var e=l.prototype;return e.toggle=function(){we(this._element).hasClass(Re.SHOW)?this.hide():this.show()},e.show=function(){var e,t,n=this;if(!(this._isTransitioning||we(this._element).hasClass(Re.SHOW)||(this._parent&&0===(e=[].slice.call(this._parent.querySelectorAll(Fe.ACTIVES)).filter(function(e){return e.getAttribute("data-parent")===n._config.parent})).length&&(e=null),e&&(t=we(e).not(this._selector).data(Te))&&t._isTransitioning))){var i=we.Event(De.SHOW);if(we(this._element).trigger(i),!i.isDefaultPrevented()){e&&(l._jQueryInterface.call(we(e).not(this._selector),"hide"),t||we(e).data(Te,null));var r=this._getDimension();we(this._element).removeClass(Re.COLLAPSE).addClass(Re.COLLAPSING),this._element.style[r]=0,this._triggerArray.length&&we(this._triggerArray).removeClass(Re.COLLAPSED).attr("aria-expanded",!0),this.setTransitioning(!0);var o=r[0].toUpperCase()+r.slice(1),s="scroll"+o,a=pt.getTransitionDurationFromElement(this._element);we(this._element).one(pt.TRANSITION_END,function(){we(n._element).removeClass(Re.COLLAPSING).addClass(Re.COLLAPSE).addClass(Re.SHOW),n._element.style[r]="",n.setTransitioning(!1),we(n._element).trigger(De.SHOWN)}).emulateTransitionEnd(a),this._element.style[r]=this._element[s]+"px"}}},e.hide=function(){var e=this;if(!this._isTransitioning&&we(this._element).hasClass(Re.SHOW)){var t=we.Event(De.HIDE);if(we(this._element).trigger(t),!t.isDefaultPrevented()){var n=this._getDimension();this._element.style[n]=this._element.getBoundingClientRect()[n]+"px",pt.reflow(this._element),we(this._element).addClass(Re.COLLAPSING).removeClass(Re.COLLAPSE).removeClass(Re.SHOW);var i=this._triggerArray.length;if(0<i)for(var r=0;r<i;r++){var o=this._triggerArray[r],s=pt.getSelectorFromElement(o);if(null!==s){var a=we([].slice.call(document.querySelectorAll(s)));a.hasClass(Re.SHOW)||we(o).addClass(Re.COLLAPSED).attr("aria-expanded",!1)}}this.setTransitioning(!0),this._element.style[n]="";var l=pt.getTransitionDurationFromElement(this._element);we(this._element).one(pt.TRANSITION_END,function(){e.setTransitioning(!1),we(e._element).removeClass(Re.COLLAPSING).addClass(Re.COLLAPSE).trigger(De.HIDDEN)}).emulateTransitionEnd(l)}}},e.setTransitioning=function(e){this._isTransitioning=e},e.dispose=function(){we.removeData(this._element,Te),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},e._getConfig=function(e){return(e=a({},Le,e)).toggle=Boolean(e.toggle),pt.typeCheckConfig(Be,e,Ge),e},e._getDimension=function(){var e=we(this._element).hasClass(Ne.WIDTH);return e?Ne.WIDTH:Ne.HEIGHT},e._getParent=function(){var n=this,e=null;pt.isElement(this._config.parent)?(e=this._config.parent,void 0!==this._config.parent.jquery&&(e=this._config.parent[0])):e=document.querySelector(this._config.parent);var t='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',i=[].slice.call(e.querySelectorAll(t));return we(i).each(function(e,t){n._addAriaAndCollapsedClass(l._getTargetFromElement(t),[t])}),e},e._addAriaAndCollapsedClass=function(e,t){if(e){var n=we(e).hasClass(Re.SHOW);t.length&&we(t).toggleClass(Re.COLLAPSED,!n).attr("aria-expanded",n)}},l._getTargetFromElement=function(e){var t=pt.getSelectorFromElement(e);return t?document.querySelector(t):null},l._jQueryInterface=function(i){return this.each(function(){var e=we(this),t=e.data(Te),n=a({},Le,e.data(),"object"==typeof i&&i?i:{});if(!t&&n.toggle&&/show|hide/.test(i)&&(n.toggle=!1),t||(t=new l(this,n),e.data(Te,t)),"string"==typeof i){if(void 0===t[i])throw new TypeError('No method named "'+i+'"');t[i]()}})},s(l,null,[{key:"VERSION",get:function(){return"4.1.3"}},{key:"Default",get:function(){return Le}}]),l}(),we(document).on(De.CLICK_DATA_API,Fe.DATA_TOGGLE,function(e){"A"===e.currentTarget.tagName&&e.preventDefault();var i=we(this),t=pt.getSelectorFromElement(this),n=[].slice.call(document.querySelectorAll(t));we(n).each(function(){var e=we(this),t=e.data(Te),n=t?"toggle":i.data();He._jQueryInterface.call(e,n)})}),we.fn[Be]=He._jQueryInterface,we.fn[Be].Constructor=He,we.fn[Be].noConflict=function(){return we.fn[Be]=ke,He._jQueryInterface},He),yt=(fe="dropdown",me="."+(pe="bs.dropdown"),ge=".data-api",_e=(de=t).fn[fe],ve=new RegExp("38|40|27"),ye={HIDE:"hide"+me,HIDDEN:"hidden"+me,SHOW:"show"+me,SHOWN:"shown"+me,CLICK:"click"+me,CLICK_DATA_API:"click"+me+ge,KEYDOWN_DATA_API:"keydown"+me+ge,KEYUP_DATA_API:"keyup"+me+ge},be={DISABLED:"disabled",SHOW:"show",DROPUP:"dropup",DROPRIGHT:"dropright",DROPLEFT:"dropleft",MENURIGHT:"dropdown-menu-right",MENULEFT:"dropdown-menu-left",POSITION_STATIC:"position-static"},Ce={DATA_TOGGLE:'[data-toggle="dropdown"]',FORM_CHILD:".dropdown form",MENU:".dropdown-menu",NAVBAR_NAV:".navbar-nav",VISIBLE_ITEMS:".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)"},Ie={TOP:"top-start",TOPEND:"top-end",BOTTOM:"bottom-start",BOTTOMEND:"bottom-end",RIGHT:"right-start",RIGHTEND:"right-end",LEFT:"left-start",LEFTEND:"left-end"},Ae={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic"},xe={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string"},Ee=function(){function c(e,t){this._element=e,this._popper=null,this._config=this._getConfig(t),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var e=c.prototype;return e.toggle=function(){if(!this._element.disabled&&!de(this._element).hasClass(be.DISABLED)){var e=c._getParentFromElement(this._element),t=de(this._menu).hasClass(be.SHOW);if(c._clearMenus(),!t){var n={relatedTarget:this._element},i=de.Event(ye.SHOW,n);if(de(e).trigger(i),!i.isDefaultPrevented()){if(!this._inNavbar){if(void 0===u)throw new TypeError("Bootstrap dropdown require Popper.js (https://popper.js.org)");var r=this._element;"parent"===this._config.reference?r=e:pt.isElement(this._config.reference)&&(r=this._config.reference,void 0!==this._config.reference.jquery&&(r=this._config.reference[0])),"scrollParent"!==this._config.boundary&&de(e).addClass(be.POSITION_STATIC),this._popper=new u(r,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===de(e).closest(Ce.NAVBAR_NAV).length&&de(document.body).children().on("mouseover",null,de.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),de(this._menu).toggleClass(be.SHOW),de(e).toggleClass(be.SHOW).trigger(de.Event(ye.SHOWN,n))}}}},e.dispose=function(){de.removeData(this._element,pe),de(this._element).off(me),this._element=null,(this._menu=null)!==this._popper&&(this._popper.destroy(),this._popper=null)},e.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},e._addEventListeners=function(){var t=this;de(this._element).on(ye.CLICK,function(e){e.preventDefault(),e.stopPropagation(),t.toggle()})},e._getConfig=function(e){return e=a({},this.constructor.Default,de(this._element).data(),e),pt.typeCheckConfig(fe,e,this.constructor.DefaultType),e},e._getMenuElement=function(){if(!this._menu){var e=c._getParentFromElement(this._element);e&&(this._menu=e.querySelector(Ce.MENU))}return this._menu},e._getPlacement=function(){var e=de(this._element.parentNode),t=Ie.BOTTOM;return e.hasClass(be.DROPUP)?(t=Ie.TOP,de(this._menu).hasClass(be.MENURIGHT)&&(t=Ie.TOPEND)):e.hasClass(be.DROPRIGHT)?t=Ie.RIGHT:e.hasClass(be.DROPLEFT)?t=Ie.LEFT:de(this._menu).hasClass(be.MENURIGHT)&&(t=Ie.BOTTOMEND),t},e._detectNavbar=function(){return 0<de(this._element).closest(".navbar").length},e._getPopperConfig=function(){var t=this,e={};"function"==typeof this._config.offset?e.fn=function(e){return e.offsets=a({},e.offsets,t._config.offset(e.offsets)||{}),e}:e.offset=this._config.offset;var n={placement:this._getPlacement(),modifiers:{offset:e,flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(n.modifiers.applyStyle={enabled:!1}),n},c._jQueryInterface=function(n){return this.each(function(){var e=de(this).data(pe),t="object"==typeof n?n:null;if(e||(e=new c(this,t),de(this).data(pe,e)),"string"==typeof n){if(void 0===e[n])throw new TypeError('No method named "'+n+'"');e[n]()}})},c._clearMenus=function(e){if(!e||3!==e.which&&("keyup"!==e.type||9===e.which))for(var t=[].slice.call(document.querySelectorAll(Ce.DATA_TOGGLE)),n=0,i=t.length;n<i;n++){var r=c._getParentFromElement(t[n]),o=de(t[n]).data(pe),s={relatedTarget:t[n]};if(e&&"click"===e.type&&(s.clickEvent=e),o){var a=o._menu;if(de(r).hasClass(be.SHOW)&&!(e&&("click"===e.type&&/input|textarea/i.test(e.target.tagName)||"keyup"===e.type&&9===e.which)&&de.contains(r,e.target))){var l=de.Event(ye.HIDE,s);de(r).trigger(l),l.isDefaultPrevented()||("ontouchstart"in document.documentElement&&de(document.body).children().off("mouseover",null,de.noop),t[n].setAttribute("aria-expanded","false"),de(a).removeClass(be.SHOW),de(r).removeClass(be.SHOW).trigger(de.Event(ye.HIDDEN,s)))}}}},c._getParentFromElement=function(e){var t,n=pt.getSelectorFromElement(e);return n&&(t=document.querySelector(n)),t||e.parentNode},c._dataApiKeydownHandler=function(e){if((/input|textarea/i.test(e.target.tagName)?!(32===e.which||27!==e.which&&(40!==e.which&&38!==e.which||de(e.target).closest(Ce.MENU).length)):ve.test(e.which))&&(e.preventDefault(),e.stopPropagation(),!this.disabled&&!de(this).hasClass(be.DISABLED))){var t=c._getParentFromElement(this),n=de(t).hasClass(be.SHOW);if((n||27===e.which&&32===e.which)&&(!n||27!==e.which&&32!==e.which)){var i=[].slice.call(t.querySelectorAll(Ce.VISIBLE_ITEMS));if(0!==i.length){var r=i.indexOf(e.target);38===e.which&&0<r&&r--,40===e.which&&r<i.length-1&&r++,r<0&&(r=0),i[r].focus()}}else{if(27===e.which){var o=t.querySelector(Ce.DATA_TOGGLE);de(o).trigger("focus")}de(this).trigger("click")}}},s(c,null,[{key:"VERSION",get:function(){return"4.1.3"}},{key:"Default",get:function(){return Ae}},{key:"DefaultType",get:function(){return xe}}]),c}(),de(document).on(ye.KEYDOWN_DATA_API,Ce.DATA_TOGGLE,Ee._dataApiKeydownHandler).on(ye.KEYDOWN_DATA_API,Ce.MENU,Ee._dataApiKeydownHandler).on(ye.CLICK_DATA_API+" "+ye.KEYUP_DATA_API,Ee._clearMenus).on(ye.CLICK_DATA_API,Ce.DATA_TOGGLE,function(e){e.preventDefault(),e.stopPropagation(),Ee._jQueryInterface.call(de(this),"toggle")}).on(ye.CLICK_DATA_API,Ce.FORM_CHILD,function(e){e.stopPropagation()}),de.fn[fe]=Ee._jQueryInterface,de.fn[fe].Constructor=Ee,de.fn[fe].noConflict=function(){return de.fn[fe]=_e,Ee._jQueryInterface},Ee),bt=(ne="modal",re="."+(ie="bs.modal"),oe=(te=t).fn[ne],se={backdrop:!0,keyboard:!0,focus:!0,show:!0},ae={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},le={HIDE:"hide"+re,HIDDEN:"hidden"+re,SHOW:"show"+re,SHOWN:"shown"+re,FOCUSIN:"focusin"+re,RESIZE:"resize"+re,CLICK_DISMISS:"click.dismiss"+re,KEYDOWN_DISMISS:"keydown.dismiss"+re,MOUSEUP_DISMISS:"mouseup.dismiss"+re,MOUSEDOWN_DISMISS:"mousedown.dismiss"+re,CLICK_DATA_API:"click"+re+".data-api"},ce={SCROLLBAR_MEASURER:"modal-scrollbar-measure",BACKDROP:"modal-backdrop",OPEN:"modal-open",FADE:"fade",SHOW:"show"},ue={DIALOG:".modal-dialog",DATA_TOGGLE:'[data-toggle="modal"]',DATA_DISMISS:'[data-dismiss="modal"]',FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top"},he=function(){function r(e,t){this._config=this._getConfig(t),this._element=e,this._dialog=e.querySelector(ue.DIALOG),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._scrollbarWidth=0}var e=r.prototype;return e.toggle=function(e){return this._isShown?this.hide():this.show(e)},e.show=function(e){var t=this;if(!this._isTransitioning&&!this._isShown){te(this._element).hasClass(ce.FADE)&&(this._isTransitioning=!0);var n=te.Event(le.SHOW,{relatedTarget:e});te(this._element).trigger(n),this._isShown||n.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),te(document.body).addClass(ce.OPEN),this._setEscapeEvent(),this._setResizeEvent(),te(this._element).on(le.CLICK_DISMISS,ue.DATA_DISMISS,function(e){return t.hide(e)}),te(this._dialog).on(le.MOUSEDOWN_DISMISS,function(){te(t._element).one(le.MOUSEUP_DISMISS,function(e){te(e.target).is(t._element)&&(t._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return t._showElement(e)}))}},e.hide=function(e){var t=this;if(e&&e.preventDefault(),!this._isTransitioning&&this._isShown){var n=te.Event(le.HIDE);if(te(this._element).trigger(n),this._isShown&&!n.isDefaultPrevented()){this._isShown=!1;var i=te(this._element).hasClass(ce.FADE);if(i&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),te(document).off(le.FOCUSIN),te(this._element).removeClass(ce.SHOW),te(this._element).off(le.CLICK_DISMISS),te(this._dialog).off(le.MOUSEDOWN_DISMISS),i){var r=pt.getTransitionDurationFromElement(this._element);te(this._element).one(pt.TRANSITION_END,function(e){return t._hideModal(e)}).emulateTransitionEnd(r)}else this._hideModal()}}},e.dispose=function(){te.removeData(this._element,ie),te(window,document,this._element,this._backdrop).off(re),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._scrollbarWidth=null},e.handleUpdate=function(){this._adjustDialog()},e._getConfig=function(e){return e=a({},se,e),pt.typeCheckConfig(ne,e,ae),e},e._showElement=function(e){var t=this,n=te(this._element).hasClass(ce.FADE);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.scrollTop=0,n&&pt.reflow(this._element),te(this._element).addClass(ce.SHOW),this._config.focus&&this._enforceFocus();var i=te.Event(le.SHOWN,{relatedTarget:e}),r=function(){t._config.focus&&t._element.focus(),t._isTransitioning=!1,te(t._element).trigger(i)};if(n){var o=pt.getTransitionDurationFromElement(this._element);te(this._dialog).one(pt.TRANSITION_END,r).emulateTransitionEnd(o)}else r()},e._enforceFocus=function(){var t=this;te(document).off(le.FOCUSIN).on(le.FOCUSIN,function(e){document!==e.target&&t._element!==e.target&&0===te(t._element).has(e.target).length&&t._element.focus()})},e._setEscapeEvent=function(){var t=this;this._isShown&&this._config.keyboard?te(this._element).on(le.KEYDOWN_DISMISS,function(e){27===e.which&&(e.preventDefault(),t.hide())}):this._isShown||te(this._element).off(le.KEYDOWN_DISMISS)},e._setResizeEvent=function(){var t=this;this._isShown?te(window).on(le.RESIZE,function(e){return t.handleUpdate(e)}):te(window).off(le.RESIZE)},e._hideModal=function(){var e=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._isTransitioning=!1,this._showBackdrop(function(){te(document.body).removeClass(ce.OPEN),e._resetAdjustments(),e._resetScrollbar(),te(e._element).trigger(le.HIDDEN)})},e._removeBackdrop=function(){this._backdrop&&(te(this._backdrop).remove(),this._backdrop=null)},e._showBackdrop=function(e){var t=this,n=te(this._element).hasClass(ce.FADE)?ce.FADE:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className=ce.BACKDROP,n&&this._backdrop.classList.add(n),te(this._backdrop).appendTo(document.body),te(this._element).on(le.CLICK_DISMISS,function(e){t._ignoreBackdropClick?t._ignoreBackdropClick=!1:e.target===e.currentTarget&&("static"===t._config.backdrop?t._element.focus():t.hide())}),n&&pt.reflow(this._backdrop),te(this._backdrop).addClass(ce.SHOW),!e)return;if(!n)return void e();var i=pt.getTransitionDurationFromElement(this._backdrop);te(this._backdrop).one(pt.TRANSITION_END,e).emulateTransitionEnd(i)}else if(!this._isShown&&this._backdrop){te(this._backdrop).removeClass(ce.SHOW);var r=function(){t._removeBackdrop(),e&&e()};if(te(this._element).hasClass(ce.FADE)){var o=pt.getTransitionDurationFromElement(this._backdrop);te(this._backdrop).one(pt.TRANSITION_END,r).emulateTransitionEnd(o)}else r()}else e&&e()},e._adjustDialog=function(){var e=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&e&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!e&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},e._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},e._checkScrollbar=function(){var e=document.body.getBoundingClientRect();this._isBodyOverflowing=e.left+e.right<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},e._setScrollbar=function(){var r=this;if(this._isBodyOverflowing){var e=[].slice.call(document.querySelectorAll(ue.FIXED_CONTENT)),t=[].slice.call(document.querySelectorAll(ue.STICKY_CONTENT));te(e).each(function(e,t){var n=t.style.paddingRight,i=te(t).css("padding-right");te(t).data("padding-right",n).css("padding-right",parseFloat(i)+r._scrollbarWidth+"px")}),te(t).each(function(e,t){var n=t.style.marginRight,i=te(t).css("margin-right");te(t).data("margin-right",n).css("margin-right",parseFloat(i)-r._scrollbarWidth+"px")});var n=document.body.style.paddingRight,i=te(document.body).css("padding-right");te(document.body).data("padding-right",n).css("padding-right",parseFloat(i)+this._scrollbarWidth+"px")}},e._resetScrollbar=function(){var e=[].slice.call(document.querySelectorAll(ue.FIXED_CONTENT));te(e).each(function(e,t){var n=te(t).data("padding-right");te(t).removeData("padding-right"),t.style.paddingRight=n||""});var t=[].slice.call(document.querySelectorAll(""+ue.STICKY_CONTENT));te(t).each(function(e,t){var n=te(t).data("margin-right");void 0!==n&&te(t).css("margin-right",n).removeData("margin-right")});var n=te(document.body).data("padding-right");te(document.body).removeData("padding-right"),document.body.style.paddingRight=n||""},e._getScrollbarWidth=function(){var e=document.createElement("div");e.className=ce.SCROLLBAR_MEASURER,document.body.appendChild(e);var t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t},r._jQueryInterface=function(n,i){return this.each(function(){var e=te(this).data(ie),t=a({},se,te(this).data(),"object"==typeof n&&n?n:{});if(e||(e=new r(this,t),te(this).data(ie,e)),"string"==typeof n){if(void 0===e[n])throw new TypeError('No method named "'+n+'"');e[n](i)}else t.show&&e.show(i)})},s(r,null,[{key:"VERSION",get:function(){return"4.1.3"}},{key:"Default",get:function(){return se}}]),r}(),te(document).on(le.CLICK_DATA_API,ue.DATA_TOGGLE,function(e){var t,n=this,i=pt.getSelectorFromElement(this);i&&(t=document.querySelector(i));var r=te(t).data(ie)?"toggle":a({},te(t).data(),te(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||e.preventDefault();var o=te(t).one(le.SHOW,function(e){e.isDefaultPrevented()||o.one(le.HIDDEN,function(){te(n).is(":visible")&&n.focus()})});he._jQueryInterface.call(te(t),r,this)}),te.fn[ne]=he._jQueryInterface,te.fn[ne].Constructor=he,te.fn[ne].noConflict=function(){return te.fn[ne]=oe,he._jQueryInterface},he),Ct=(Q="tooltip",Z="."+(M="bs.tooltip"),U=(W=t).fn[Q],V="bs-tooltip",X=new RegExp("(^|\\s)"+V+"\\S+","g"),Y={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!(j={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"}),selector:!(P={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)"}),placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent"},z={SHOW:"show",OUT:"out"},J={HIDE:"hide"+Z,HIDDEN:"hidden"+Z,SHOW:"show"+Z,SHOWN:"shown"+Z,INSERTED:"inserted"+Z,CLICK:"click"+Z,FOCUSIN:"focusin"+Z,FOCUSOUT:"focusout"+Z,MOUSEENTER:"mouseenter"+Z,MOUSELEAVE:"mouseleave"+Z},K={FADE:"fade",SHOW:"show"},q={TOOLTIP:".tooltip",TOOLTIP_INNER:".tooltip-inner",ARROW:".arrow"},$={HOVER:"hover",FOCUS:"focus",CLICK:"click",MANUAL:"manual"},ee=function(){function i(e,t){if(void 0===u)throw new TypeError("Bootstrap tooltips require Popper.js (https://popper.js.org)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=e,this.config=this._getConfig(t),this.tip=null,this._setListeners()}var e=i.prototype;return e.enable=function(){this._isEnabled=!0},e.disable=function(){this._isEnabled=!1},e.toggleEnabled=function(){this._isEnabled=!this._isEnabled},e.toggle=function(e){if(this._isEnabled)if(e){var t=this.constructor.DATA_KEY,n=W(e.currentTarget).data(t);n||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),W(e.currentTarget).data(t,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(W(this.getTipElement()).hasClass(K.SHOW))return void this._leave(null,this);this._enter(null,this)}},e.dispose=function(){clearTimeout(this._timeout),W.removeData(this.element,this.constructor.DATA_KEY),W(this.element).off(this.constructor.EVENT_KEY),W(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&W(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,(this._activeTrigger=null)!==this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},e.show=function(){var t=this;if("none"===W(this.element).css("display"))throw new Error("Please use show on visible elements");var e=W.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){W(this.element).trigger(e);var n=W.contains(this.element.ownerDocument.documentElement,this.element);if(e.isDefaultPrevented()||!n)return;var i=this.getTipElement(),r=pt.getUID(this.constructor.NAME);i.setAttribute("id",r),this.element.setAttribute("aria-describedby",r),this.setContent(),this.config.animation&&W(i).addClass(K.FADE);var o="function"==typeof this.config.placement?this.config.placement.call(this,i,this.element):this.config.placement,s=this._getAttachment(o);this.addAttachmentClass(s);var a=!1===this.config.container?document.body:W(document).find(this.config.container);W(i).data(this.constructor.DATA_KEY,this),W.contains(this.element.ownerDocument.documentElement,this.tip)||W(i).appendTo(a),W(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new u(this.element,i,{placement:s,modifiers:{offset:{offset:this.config.offset},flip:{behavior:this.config.fallbackPlacement},arrow:{element:q.ARROW},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(e){e.originalPlacement!==e.placement&&t._handlePopperPlacementChange(e)},onUpdate:function(e){t._handlePopperPlacementChange(e)}}),W(i).addClass(K.SHOW),"ontouchstart"in document.documentElement&&W(document.body).children().on("mouseover",null,W.noop);var l=function(){t.config.animation&&t._fixTransition();var e=t._hoverState;t._hoverState=null,W(t.element).trigger(t.constructor.Event.SHOWN),e===z.OUT&&t._leave(null,t)};if(W(this.tip).hasClass(K.FADE)){var c=pt.getTransitionDurationFromElement(this.tip);W(this.tip).one(pt.TRANSITION_END,l).emulateTransitionEnd(c)}else l()}},e.hide=function(e){var t=this,n=this.getTipElement(),i=W.Event(this.constructor.Event.HIDE),r=function(){t._hoverState!==z.SHOW&&n.parentNode&&n.parentNode.removeChild(n),t._cleanTipClass(),t.element.removeAttribute("aria-describedby"),W(t.element).trigger(t.constructor.Event.HIDDEN),null!==t._popper&&t._popper.destroy(),e&&e()};if(W(this.element).trigger(i),!i.isDefaultPrevented()){if(W(n).removeClass(K.SHOW),"ontouchstart"in document.documentElement&&W(document.body).children().off("mouseover",null,W.noop),this._activeTrigger[$.CLICK]=!1,this._activeTrigger[$.FOCUS]=!1,this._activeTrigger[$.HOVER]=!1,W(this.tip).hasClass(K.FADE)){var o=pt.getTransitionDurationFromElement(n);W(n).one(pt.TRANSITION_END,r).emulateTransitionEnd(o)}else r();this._hoverState=""}},e.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},e.isWithContent=function(){return Boolean(this.getTitle())},e.addAttachmentClass=function(e){W(this.getTipElement()).addClass(V+"-"+e)},e.getTipElement=function(){return this.tip=this.tip||W(this.config.template)[0],this.tip},e.setContent=function(){var e=this.getTipElement();this.setElementContent(W(e.querySelectorAll(q.TOOLTIP_INNER)),this.getTitle()),W(e).removeClass(K.FADE+" "+K.SHOW)},e.setElementContent=function(e,t){var n=this.config.html;"object"==typeof t&&(t.nodeType||t.jquery)?n?W(t).parent().is(e)||e.empty().append(t):e.text(W(t).text()):e[n?"html":"text"](t)},e.getTitle=function(){var e=this.element.getAttribute("data-original-title");return e||(e="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),e},e._getAttachment=function(e){return j[e.toUpperCase()]},e._setListeners=function(){var i=this,e=this.config.trigger.split(" ");e.forEach(function(e){if("click"===e)W(i.element).on(i.constructor.Event.CLICK,i.config.selector,function(e){return i.toggle(e)});else if(e!==$.MANUAL){var t=e===$.HOVER?i.constructor.Event.MOUSEENTER:i.constructor.Event.FOCUSIN,n=e===$.HOVER?i.constructor.Event.MOUSELEAVE:i.constructor.Event.FOCUSOUT;W(i.element).on(t,i.config.selector,function(e){return i._enter(e)}).on(n,i.config.selector,function(e){return i._leave(e)})}W(i.element).closest(".modal").on("hide.bs.modal",function(){return i.hide()})}),this.config.selector?this.config=a({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},e._fixTitle=function(){var e=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==e)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},e._enter=function(e,t){var n=this.constructor.DATA_KEY;(t=t||W(e.currentTarget).data(n))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),W(e.currentTarget).data(n,t)),e&&(t._activeTrigger["focusin"===e.type?$.FOCUS:$.HOVER]=!0),W(t.getTipElement()).hasClass(K.SHOW)||t._hoverState===z.SHOW?t._hoverState=z.SHOW:(clearTimeout(t._timeout),t._hoverState=z.SHOW,t.config.delay&&t.config.delay.show?t._timeout=setTimeout(function(){t._hoverState===z.SHOW&&t.show()},t.config.delay.show):t.show())},e._leave=function(e,t){var n=this.constructor.DATA_KEY;(t=t||W(e.currentTarget).data(n))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),W(e.currentTarget).data(n,t)),e&&(t._activeTrigger["focusout"===e.type?$.FOCUS:$.HOVER]=!1),t._isWithActiveTrigger()||(clearTimeout(t._timeout),t._hoverState=z.OUT,t.config.delay&&t.config.delay.hide?t._timeout=setTimeout(function(){t._hoverState===z.OUT&&t.hide()},t.config.delay.hide):t.hide())},e._isWithActiveTrigger=function(){for(var e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1},e._getConfig=function(e){return"number"==typeof(e=a({},this.constructor.Default,W(this.element).data(),"object"==typeof e&&e?e:{})).delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),pt.typeCheckConfig(Q,e,this.constructor.DefaultType),e},e._getDelegateConfig=function(){var e={};if(this.config)for(var t in this.config)this.constructor.Default[t]!==this.config[t]&&(e[t]=this.config[t]);return e},e._cleanTipClass=function(){var e=W(this.getTipElement()),t=e.attr("class").match(X);null!==t&&t.length&&e.removeClass(t.join(""))},e._handlePopperPlacementChange=function(e){var t=e.instance;this.tip=t.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(e.placement))},e._fixTransition=function(){var e=this.getTipElement(),t=this.config.animation;null===e.getAttribute("x-placement")&&(W(e).removeClass(K.FADE),this.config.animation=!1,this.hide(),this.show(),this.config.animation=t)},i._jQueryInterface=function(n){return this.each(function(){var e=W(this).data(M),t="object"==typeof n&&n;if((e||!/dispose|hide/.test(n))&&(e||(e=new i(this,t),W(this).data(M,e)),"string"==typeof n)){if(void 0===e[n])throw new TypeError('No method named "'+n+'"');e[n]()}})},s(i,null,[{key:"VERSION",get:function(){return"4.1.3"}},{key:"Default",get:function(){return Y}},{key:"NAME",get:function(){return Q}},{key:"DATA_KEY",get:function(){return M}},{key:"Event",get:function(){return J}},{key:"EVENT_KEY",get:function(){return Z}},{key:"DefaultType",get:function(){return P}}]),i}(),W.fn[Q]=ee._jQueryInterface,W.fn[Q].Constructor=ee,W.fn[Q].noConflict=function(){return W.fn[Q]=U,ee._jQueryInterface},ee),It=(B="popover",S="."+(T="bs.popover"),k=(w=t).fn[B],L="bs-popover",G=new RegExp("(^|\\s)"+L+"\\S+","g"),D=a({},Ct.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),R=a({},Ct.DefaultType,{content:"(string|element|function)"}),N={FADE:"fade",SHOW:"show"},F={TITLE:".popover-header",CONTENT:".popover-body"},H={HIDE:"hide"+S,HIDDEN:"hidden"+S,SHOW:"show"+S,SHOWN:"shown"+S,INSERTED:"inserted"+S,CLICK:"click"+S,FOCUSIN:"focusin"+S,FOCUSOUT:"focusout"+S,MOUSEENTER:"mouseenter"+S,MOUSELEAVE:"mouseleave"+S},O=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),(t.prototype.constructor=t).__proto__=n;var r=i.prototype;return r.isWithContent=function(){return this.getTitle()||this._getContent()},r.addAttachmentClass=function(e){w(this.getTipElement()).addClass(L+"-"+e)},r.getTipElement=function(){return this.tip=this.tip||w(this.config.template)[0],this.tip},r.setContent=function(){var e=w(this.getTipElement());this.setElementContent(e.find(F.TITLE),this.getTitle());var t=this._getContent();"function"==typeof t&&(t=t.call(this.element)),this.setElementContent(e.find(F.CONTENT),t),e.removeClass(N.FADE+" "+N.SHOW)},r._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},r._cleanTipClass=function(){var e=w(this.getTipElement()),t=e.attr("class").match(G);null!==t&&0<t.length&&e.removeClass(t.join(""))},i._jQueryInterface=function(n){return this.each(function(){var e=w(this).data(T),t="object"==typeof n?n:null;if((e||!/destroy|hide/.test(n))&&(e||(e=new i(this,t),w(this).data(T,e)),"string"==typeof n)){if(void 0===e[n])throw new TypeError('No method named "'+n+'"');e[n]()}})},s(i,null,[{key:"VERSION",get:function(){return"4.1.3"}},{key:"Default",get:function(){return D}},{key:"NAME",get:function(){return B}},{key:"DATA_KEY",get:function(){return T}},{key:"Event",get:function(){return H}},{key:"EVENT_KEY",get:function(){return S}},{key:"DefaultType",get:function(){return R}}]),i}(Ct),w.fn[B]=O._jQueryInterface,w.fn[B].Constructor=O,w.fn[B].noConflict=function(){return w.fn[B]=k,O._jQueryInterface},O),At=(m="scrollspy",_="."+(g="bs.scrollspy"),v=(p=t).fn[m],y={offset:10,method:"auto",target:""},b={offset:"number",method:"string",target:"(string|element)"},C={ACTIVATE:"activate"+_,SCROLL:"scroll"+_,LOAD_DATA_API:"load"+_+".data-api"},I={DROPDOWN_ITEM:"dropdown-item",DROPDOWN_MENU:"dropdown-menu",ACTIVE:"active"},A={DATA_SPY:'[data-spy="scroll"]',ACTIVE:".active",NAV_LIST_GROUP:".nav, .list-group",NAV_LINKS:".nav-link",NAV_ITEMS:".nav-item",LIST_ITEMS:".list-group-item",DROPDOWN:".dropdown",DROPDOWN_ITEMS:".dropdown-item",DROPDOWN_TOGGLE:".dropdown-toggle"},x={OFFSET:"offset",POSITION:"position"},E=function(){function i(e,t){var n=this;this._element=e,this._scrollElement="BODY"===e.tagName?window:e,this._config=this._getConfig(t),this._selector=this._config.target+" "+A.NAV_LINKS+","+this._config.target+" "+A.LIST_ITEMS+","+this._config.target+" "+A.DROPDOWN_ITEMS,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,p(this._scrollElement).on(C.SCROLL,function(e){return n._process(e)}),this.refresh(),this._process()}var e=i.prototype;return e.refresh=function(){var t=this,e=this._scrollElement===this._scrollElement.window?x.OFFSET:x.POSITION,r="auto"===this._config.method?e:this._config.method,o=r===x.POSITION?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight();var n=[].slice.call(document.querySelectorAll(this._selector));n.map(function(e){var t,n=pt.getSelectorFromElement(e);if(n&&(t=document.querySelector(n)),t){var i=t.getBoundingClientRect();if(i.width||i.height)return[p(t)[r]().top+o,n]}return null}).filter(function(e){return e}).sort(function(e,t){return e[0]-t[0]}).forEach(function(e){t._offsets.push(e[0]),t._targets.push(e[1])})},e.dispose=function(){p.removeData(this._element,g),p(this._scrollElement).off(_),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},e._getConfig=function(e){if("string"!=typeof(e=a({},y,"object"==typeof e&&e?e:{})).target){var t=p(e.target).attr("id");t||(t=pt.getUID(m),p(e.target).attr("id",t)),e.target="#"+t}return pt.typeCheckConfig(m,e,b),e},e._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},e._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},e._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},e._process=function(){var e=this._getScrollTop()+this._config.offset,t=this._getScrollHeight(),n=this._config.offset+t-this._getOffsetHeight();if(this._scrollHeight!==t&&this.refresh(),n<=e){var i=this._targets[this._targets.length-1];this._activeTarget!==i&&this._activate(i)}else{if(this._activeTarget&&e<this._offsets[0]&&0<this._offsets[0])return this._activeTarget=null,void this._clear();for(var r=this._offsets.length,o=r;o--;){var s=this._activeTarget!==this._targets[o]&&e>=this._offsets[o]&&(void 0===this._offsets[o+1]||e<this._offsets[o+1]);s&&this._activate(this._targets[o])}}},e._activate=function(t){this._activeTarget=t,this._clear();var e=this._selector.split(",");e=e.map(function(e){return e+'[data-target="'+t+'"],'+e+'[href="'+t+'"]'});var n=p([].slice.call(document.querySelectorAll(e.join(","))));n.hasClass(I.DROPDOWN_ITEM)?(n.closest(A.DROPDOWN).find(A.DROPDOWN_TOGGLE).addClass(I.ACTIVE),n.addClass(I.ACTIVE)):(n.addClass(I.ACTIVE),n.parents(A.NAV_LIST_GROUP).prev(A.NAV_LINKS+", "+A.LIST_ITEMS).addClass(I.ACTIVE),n.parents(A.NAV_LIST_GROUP).prev(A.NAV_ITEMS).children(A.NAV_LINKS).addClass(I.ACTIVE)),p(this._scrollElement).trigger(C.ACTIVATE,{relatedTarget:t})},e._clear=function(){var e=[].slice.call(document.querySelectorAll(this._selector));p(e).filter(A.ACTIVE).removeClass(I.ACTIVE)},i._jQueryInterface=function(n){return this.each(function(){var e=p(this).data(g),t="object"==typeof n&&n;if(e||(e=new i(this,t),p(this).data(g,e)),"string"==typeof n){if(void 0===e[n])throw new TypeError('No method named "'+n+'"');e[n]()}})},s(i,null,[{key:"VERSION",get:function(){return"4.1.3"}},{key:"Default",get:function(){return y}}]),i}(),p(window).on(C.LOAD_DATA_API,function(){for(var e=[].slice.call(document.querySelectorAll(A.DATA_SPY)),t=e.length,n=t;n--;){var i=p(e[n]);E._jQueryInterface.call(i,i.data())}}),p.fn[m]=E._jQueryInterface,p.fn[m].Constructor=E,p.fn[m].noConflict=function(){return p.fn[m]=v,E._jQueryInterface},E),xt=(n="."+(r="bs.tab"),o=(c=t).fn.tab,h={HIDE:"hide"+n,HIDDEN:"hidden"+n,SHOW:"show"+n,SHOWN:"shown"+n,CLICK_DATA_API:"click.bs.tab.data-api"},d={DROPDOWN_MENU:"dropdown-menu",ACTIVE:"active",DISABLED:"disabled",FADE:"fade",SHOW:"show"},f={DROPDOWN:".dropdown",NAV_LIST_GROUP:".nav, .list-group",ACTIVE:".active",ACTIVE_UL:"> li > .active",DATA_TOGGLE:'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',DROPDOWN_TOGGLE:".dropdown-toggle",DROPDOWN_ACTIVE_CHILD:"> .dropdown-menu .active"},l=function(){function i(e){this._element=e}var e=i.prototype;return e.show=function(){var n=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&c(this._element).hasClass(d.ACTIVE)||c(this._element).hasClass(d.DISABLED))){var e,i,t=c(this._element).closest(f.NAV_LIST_GROUP)[0],r=pt.getSelectorFromElement(this._element);if(t){var o="UL"===t.nodeName?f.ACTIVE_UL:f.ACTIVE;i=(i=c.makeArray(c(t).find(o)))[i.length-1]}var s=c.Event(h.HIDE,{relatedTarget:this._element}),a=c.Event(h.SHOW,{relatedTarget:i});if(i&&c(i).trigger(s),c(this._element).trigger(a),!a.isDefaultPrevented()&&!s.isDefaultPrevented()){r&&(e=document.querySelector(r)),this._activate(this._element,t);var l=function(){var e=c.Event(h.HIDDEN,{relatedTarget:n._element}),t=c.Event(h.SHOWN,{relatedTarget:i});c(i).trigger(e),c(n._element).trigger(t)};e?this._activate(e,e.parentNode,l):l()}}},e.dispose=function(){c.removeData(this._element,r),this._element=null},e._activate=function(e,t,n){var i=this,r=("UL"===t.nodeName?c(t).find(f.ACTIVE_UL):c(t).children(f.ACTIVE))[0],o=n&&r&&c(r).hasClass(d.FADE),s=function(){return i._transitionComplete(e,r,n)};if(r&&o){var a=pt.getTransitionDurationFromElement(r);c(r).one(pt.TRANSITION_END,s).emulateTransitionEnd(a)}else s()},e._transitionComplete=function(e,t,n){if(t){c(t).removeClass(d.SHOW+" "+d.ACTIVE);var i=c(t.parentNode).find(f.DROPDOWN_ACTIVE_CHILD)[0];i&&c(i).removeClass(d.ACTIVE),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!1)}if(c(e).addClass(d.ACTIVE),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!0),pt.reflow(e),c(e).addClass(d.SHOW),e.parentNode&&c(e.parentNode).hasClass(d.DROPDOWN_MENU)){var r=c(e).closest(f.DROPDOWN)[0];if(r){var o=[].slice.call(r.querySelectorAll(f.DROPDOWN_TOGGLE));c(o).addClass(d.ACTIVE)}e.setAttribute("aria-expanded",!0)}n&&n()},i._jQueryInterface=function(n){return this.each(function(){var e=c(this),t=e.data(r);if(t||(t=new i(this),e.data(r,t)),"string"==typeof n){if(void 0===t[n])throw new TypeError('No method named "'+n+'"');t[n]()}})},s(i,null,[{key:"VERSION",get:function(){return"4.1.3"}}]),i}(),c(document).on(h.CLICK_DATA_API,f.DATA_TOGGLE,function(e){e.preventDefault(),l._jQueryInterface.call(c(this),"show")}),c.fn.tab=l._jQueryInterface,c.fn.tab.Constructor=l,c.fn.tab.noConflict=function(){return c.fn.tab=o,l._jQueryInterface},l);(function(e){if(void 0===e)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var t=e.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1===t[0]&&9===t[1]&&t[2]<1||4<=t[0])throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")})(t),e.Util=pt,e.Alert=mt,e.Button=gt,e.Carousel=_t,e.Collapse=vt,e.Dropdown=yt,e.Modal=bt,e.Popover=It,e.Scrollspy=At,e.Tab=xt,e.Tooltip=Ct,Object.defineProperty(e,"__esModule",{value:!0})}(t,n(3),n(42))},function(e,q,t){"use strict";t.r(q),function(e){for(var t="undefined"!=typeof window&&"undefined"!=typeof document,n=["Edge","Trident","Firefox"],i=0,r=0;r<n.length;r+=1)if(t&&0<=navigator.userAgent.indexOf(n[r])){i=1;break}var s=t&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},i))}};function a(e){return e&&"[object Function]"==={}.toString.call(e)}function b(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function f(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function p(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=b(e),n=t.overflow,i=t.overflowX,r=t.overflowY;return/(auto|scroll|overlay)/.test(n+r+i)?e:p(f(e))}var o=t&&!(!window.MSInputMethodContext||!document.documentMode),l=t&&/MSIE 10/.test(navigator.userAgent);function m(e){return 11===e?o:10===e?l:o||l}function y(e){if(!e)return document.documentElement;for(var t=m(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===b(n,"position")?y(n):n:e?e.ownerDocument.documentElement:document.documentElement}function u(e){return null!==e.parentNode?u(e.parentNode):e}function g(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?e:t,r=n?t:e,o=document.createRange();o.setStart(i,0),o.setEnd(r,0);var s,a,l=o.commonAncestorContainer;if(e!==l&&t!==l||i.contains(r))return"BODY"===(a=(s=l).nodeName)||"HTML"!==a&&y(s.firstElementChild)!==s?y(l):l;var c=u(e);return c.host?g(c.host,t):g(e,u(t).host)}function _(e){var t="top"===(1<arguments.length&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=e.nodeName;if("BODY"!==n&&"HTML"!==n)return e[t];var i=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||i)[t]}function h(e,t){var n="x"===t?"Left":"Top",i="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"],10)+parseFloat(e["border"+i+"Width"],10)}function c(e,t,n,i){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],m(10)?parseInt(n["offset"+e])+parseInt(i["margin"+("Height"===e?"Top":"Left")])+parseInt(i["margin"+("Height"===e?"Bottom":"Right")]):0)}function v(e){var t=e.body,n=e.documentElement,i=m(10)&&getComputedStyle(n);return{height:c("Height",t,n,i),width:c("Width",t,n,i)}}var d=function(){function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}}(),C=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},I=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e};function A(e){return I({},e,{right:e.left+e.width,bottom:e.top+e.height})}function x(e){var t={};try{if(m(10)){t=e.getBoundingClientRect();var n=_(e,"top"),i=_(e,"left");t.top+=n,t.left+=i,t.bottom+=n,t.right+=i}else t=e.getBoundingClientRect()}catch(e){}var r={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},o="HTML"===e.nodeName?v(e.ownerDocument):{},s=o.width||e.clientWidth||r.right-r.left,a=o.height||e.clientHeight||r.bottom-r.top,l=e.offsetWidth-s,c=e.offsetHeight-a;if(l||c){var u=b(e);l-=h(u,"x"),c-=h(u,"y"),r.width-=l,r.height-=c}return A(r)}function E(e,t){var n=2<arguments.length&&void 0!==arguments[2]&&arguments[2],i=m(10),r="HTML"===t.nodeName,o=x(e),s=x(t),a=p(e),l=b(t),c=parseFloat(l.borderTopWidth,10),u=parseFloat(l.borderLeftWidth,10);n&&r&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var h=A({top:o.top-s.top-c,left:o.left-s.left-u,width:o.width,height:o.height});if(h.marginTop=0,h.marginLeft=0,!i&&r){var d=parseFloat(l.marginTop,10),f=parseFloat(l.marginLeft,10);h.top-=c-d,h.bottom-=c-d,h.left-=u-f,h.right-=u-f,h.marginTop=d,h.marginLeft=f}return(i&&!n?t.contains(a):t===a&&"BODY"!==a.nodeName)&&(h=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]&&arguments[2],i=_(t,"top"),r=_(t,"left"),o=n?-1:1;return e.top+=i*o,e.bottom+=i*o,e.left+=r*o,e.right+=r*o,e}(h,t)),h}function w(e){if(!e||!e.parentElement||m())return document.documentElement;for(var t=e.parentElement;t&&"none"===b(t,"transform");)t=t.parentElement;return t||document.documentElement}function B(e,t,n,i){var r=4<arguments.length&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},s=r?w(e):g(e,t);if("viewport"===i)o=function(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,i=E(e,n),r=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),s=t?0:_(n),a=t?0:_(n,"left");return A({top:s-i.top+i.marginTop,left:a-i.left+i.marginLeft,width:r,height:o})}(s,r);else{var a=void 0;"scrollParent"===i?"BODY"===(a=p(f(t))).nodeName&&(a=e.ownerDocument.documentElement):a="window"===i?e.ownerDocument.documentElement:i;var l=E(a,s,r);if("HTML"!==a.nodeName||function e(t){var n=t.nodeName;return"BODY"!==n&&"HTML"!==n&&("fixed"===b(t,"position")||e(f(t)))}(s))o=l;else{var c=v(e.ownerDocument),u=c.height,h=c.width;o.top+=l.top-l.marginTop,o.bottom=u+l.top,o.left+=l.left-l.marginLeft,o.right=h+l.left}}var d="number"==typeof(n=n||0);return o.left+=d?n:n.left||0,o.top+=d?n:n.top||0,o.right-=d?n:n.right||0,o.bottom-=d?n:n.bottom||0,o}function T(e,t,i,n,r){var o=5<arguments.length&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var s=B(i,n,o,r),a={top:{width:s.width,height:t.top-s.top},right:{width:s.right-t.right,height:s.height},bottom:{width:s.width,height:s.bottom-t.bottom},left:{width:t.left-s.left,height:s.height}},l=Object.keys(a).map(function(e){return I({key:e},a[e],{area:(t=a[e],t.width*t.height)});var t}).sort(function(e,t){return t.area-e.area}),c=l.filter(function(e){var t=e.width,n=e.height;return t>=i.clientWidth&&n>=i.clientHeight}),u=0<c.length?c[0].key:l[0].key,h=e.split("-")[1];return u+(h?"-"+h:"")}function S(e,t,n){var i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return E(n,i?w(t):g(t,n),i)}function k(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop)+parseFloat(t.marginBottom),i=parseFloat(t.marginLeft)+parseFloat(t.marginRight);return{width:e.offsetWidth+i,height:e.offsetHeight+n}}function L(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function G(e,t,n){n=n.split("-")[0];var i=k(e),r={width:i.width,height:i.height},o=-1!==["right","left"].indexOf(n),s=o?"top":"left",a=o?"left":"top",l=o?"height":"width",c=o?"width":"height";return r[s]=t[s]+t[l]/2-i[l]/2,r[a]=n===a?t[a]-i[c]:t[L(a)],r}function D(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function R(e,n,t){return(void 0===t?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===n});var i=D(e,function(e){return e[t]===n});return e.indexOf(i)}(e,"name",t))).forEach(function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var t=e.function||e.fn;e.enabled&&a(t)&&(n.offsets.popper=A(n.offsets.popper),n.offsets.reference=A(n.offsets.reference),n=t(n,e))}),n}function N(e,n){return e.some(function(e){var t=e.name;return e.enabled&&t===n})}function F(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),i=0;i<t.length;i++){var r=t[i],o=r?""+r+n:e;if(void 0!==document.body.style[o])return o}return null}function H(e){var t=e.ownerDocument;return t?t.defaultView:window}function O(e,t,n,i){n.updateBound=i,H(e).addEventListener("resize",n.updateBound,{passive:!0});var r=p(e);return function e(t,n,i,r){var o="BODY"===t.nodeName,s=o?t.ownerDocument.defaultView:t;s.addEventListener(n,i,{passive:!0}),o||e(p(s.parentNode),n,i,r),r.push(s)}(r,"scroll",n.updateBound,n.scrollParents),n.scrollElement=r,n.eventsEnabled=!0,n}function W(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,H(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function Q(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function M(n,i){Object.keys(i).forEach(function(e){var t="";-1!==["width","height","top","right","bottom","left"].indexOf(e)&&Q(i[e])&&(t="px"),n.style[e]=i[e]+t})}function Z(e,t,n){var i=D(e,function(e){return e.name===t}),r=!!i&&e.some(function(e){return e.name===n&&e.enabled&&e.order<i.order});if(!r){var o="`"+t+"`",s="`"+n+"`";console.warn(s+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return r}var U=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],V=U.slice(3);function X(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],n=V.indexOf(e),i=V.slice(n+1).concat(V.slice(0,n));return t?i.reverse():i}var P="flip",j="clockwise",Y="counterclockwise";function z(e,r,o,t){var s=[0,0],a=-1!==["right","left"].indexOf(t),n=e.split(/(\+|\-)/).map(function(e){return e.trim()}),i=n.indexOf(D(n,function(e){return-1!==e.search(/,|\s/)}));n[i]&&-1===n[i].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==i?[n.slice(0,i).concat([n[i].split(l)[0]]),[n[i].split(l)[1]].concat(n.slice(i+1))]:[n];return(c=c.map(function(e,t){var n=(1===t?!a:a)?"height":"width",i=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,i=!0,e):i?(e[e.length-1]+=t,i=!1,e):e.concat(t)},[]).map(function(e){return function(e,t,n,i){var r=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+r[1],s=r[2];if(!o)return e;if(0!==s.indexOf("%"))return"vh"!==s&&"vw"!==s?o:("vh"===s?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o;var a=void 0;switch(s){case"%p":a=n;break;case"%":case"%r":default:a=i}return A(a)[t]/100*o}(e,n,r,o)})})).forEach(function(n,i){n.forEach(function(e,t){Q(e)&&(s[i]+=e*("-"===n[t-1]?-1:1))})}),s}var J={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],i=t.split("-")[1];if(i){var r=e.offsets,o=r.reference,s=r.popper,a=-1!==["bottom","top"].indexOf(n),l=a?"left":"top",c=a?"width":"height",u={start:C({},l,o[l]),end:C({},l,o[l]+o[c]-s[c])};e.offsets.popper=I({},s,u[i])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,i=e.placement,r=e.offsets,o=r.popper,s=r.reference,a=i.split("-")[0],l=void 0;return l=Q(+n)?[+n,0]:z(n,o,s,a),"left"===a?(o.top+=l[0],o.left-=l[1]):"right"===a?(o.top+=l[0],o.left+=l[1]):"top"===a?(o.left+=l[0],o.top-=l[1]):"bottom"===a&&(o.left+=l[0],o.top+=l[1]),e.popper=o,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,i){var t=i.boundariesElement||y(e.instance.popper);e.instance.reference===t&&(t=y(t));var n=F("transform"),r=e.instance.popper.style,o=r.top,s=r.left,a=r[n];r.top="",r.left="",r[n]="";var l=B(e.instance.popper,e.instance.reference,i.padding,t,e.positionFixed);r.top=o,r.left=s,r[n]=a,i.boundaries=l;var c=i.priority,u=e.offsets.popper,h={primary:function(e){var t=u[e];return u[e]<l[e]&&!i.escapeWithReference&&(t=Math.max(u[e],l[e])),C({},e,t)},secondary:function(e){var t="right"===e?"left":"top",n=u[t];return u[e]>l[e]&&!i.escapeWithReference&&(n=Math.min(u[t],l[e]-("right"===e?u.width:u.height))),C({},t,n)}};return c.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=I({},u,h[t](e))}),e.offsets.popper=u,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,i=t.reference,r=e.placement.split("-")[0],o=Math.floor,s=-1!==["top","bottom"].indexOf(r),a=s?"right":"bottom",l=s?"left":"top",c=s?"width":"height";return n[a]<o(i[l])&&(e.offsets.popper[l]=o(i[l])-n[c]),n[l]>o(i[a])&&(e.offsets.popper[l]=o(i[a])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!Z(e.instance.modifiers,"arrow","keepTogether"))return e;var i=t.element;if("string"==typeof i){if(!(i=e.instance.popper.querySelector(i)))return e}else if(!e.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var r=e.placement.split("-")[0],o=e.offsets,s=o.popper,a=o.reference,l=-1!==["left","right"].indexOf(r),c=l?"height":"width",u=l?"Top":"Left",h=u.toLowerCase(),d=l?"left":"top",f=l?"bottom":"right",p=k(i)[c];a[f]-p<s[h]&&(e.offsets.popper[h]-=s[h]-(a[f]-p)),a[h]+p>s[f]&&(e.offsets.popper[h]+=a[h]+p-s[f]),e.offsets.popper=A(e.offsets.popper);var m=a[h]+a[c]/2-p/2,g=b(e.instance.popper),_=parseFloat(g["margin"+u],10),v=parseFloat(g["border"+u+"Width"],10),y=m-e.offsets.popper[h]-_-v;return y=Math.max(Math.min(s[c]-p,y),0),e.arrowElement=i,e.offsets.arrow=(C(n={},h,Math.round(y)),C(n,d,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(p,m){if(N(p.instance.modifiers,"inner"))return p;if(p.flipped&&p.placement===p.originalPlacement)return p;var g=B(p.instance.popper,p.instance.reference,m.padding,m.boundariesElement,p.positionFixed),_=p.placement.split("-")[0],v=L(_),y=p.placement.split("-")[1]||"",b=[];switch(m.behavior){case P:b=[_,v];break;case j:b=X(_);break;case Y:b=X(_,!0);break;default:b=m.behavior}return b.forEach(function(e,t){if(_!==e||b.length===t+1)return p;_=p.placement.split("-")[0],v=L(_);var n,i=p.offsets.popper,r=p.offsets.reference,o=Math.floor,s="left"===_&&o(i.right)>o(r.left)||"right"===_&&o(i.left)<o(r.right)||"top"===_&&o(i.bottom)>o(r.top)||"bottom"===_&&o(i.top)<o(r.bottom),a=o(i.left)<o(g.left),l=o(i.right)>o(g.right),c=o(i.top)<o(g.top),u=o(i.bottom)>o(g.bottom),h="left"===_&&a||"right"===_&&l||"top"===_&&c||"bottom"===_&&u,d=-1!==["top","bottom"].indexOf(_),f=!!m.flipVariations&&(d&&"start"===y&&a||d&&"end"===y&&l||!d&&"start"===y&&c||!d&&"end"===y&&u);(s||h||f)&&(p.flipped=!0,(s||h)&&(_=b[t+1]),f&&(y="end"===(n=y)?"start":"start"===n?"end":n),p.placement=_+(y?"-"+y:""),p.offsets.popper=I({},p.offsets.popper,G(p.instance.popper,p.offsets.reference,p.placement)),p=R(p.instance.modifiers,p,"flip"))}),p},behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],i=e.offsets,r=i.popper,o=i.reference,s=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return r[s?"left":"top"]=o[n]-(a?r[s?"width":"height"]:0),e.placement=L(t),e.offsets.popper=A(r),e}},hide:{order:800,enabled:!0,fn:function(e){if(!Z(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=D(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,i=t.y,r=e.offsets.popper,o=D(e.instance.modifiers,function(e){return"applyStyle"===e.name}).gpuAcceleration;void 0!==o&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var s=void 0!==o?o:t.gpuAcceleration,a=y(e.instance.popper),l=x(a),c={position:r.position},u={left:Math.floor(r.left),top:Math.round(r.top),bottom:Math.round(r.bottom),right:Math.floor(r.right)},h="bottom"===n?"top":"bottom",d="right"===i?"left":"right",f=F("transform"),p=void 0,m=void 0;if(m="bottom"===h?"HTML"===a.nodeName?-a.clientHeight+u.bottom:-l.height+u.bottom:u.top,p="right"===d?"HTML"===a.nodeName?-a.clientWidth+u.right:-l.width+u.right:u.left,s&&f)c[f]="translate3d("+p+"px, "+m+"px, 0)",c[h]=0,c[d]=0,c.willChange="transform";else{var g="bottom"===h?-1:1,_="right"===d?-1:1;c[h]=m*g,c[d]=p*_,c.willChange=h+", "+d}var v={"x-placement":e.placement};return e.attributes=I({},v,e.attributes),e.styles=I({},c,e.styles),e.arrowStyles=I({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return M(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach(function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)}),e.arrowElement&&Object.keys(e.arrowStyles).length&&M(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,i,r){var o=S(r,t,e,n.positionFixed),s=T(n.placement,o,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",s),M(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},K=function(){function o(e,t){var n=this,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=s(this.update.bind(this)),this.options=I({},o.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=t&&t.jquery?t[0]:t,this.options.modifiers={},Object.keys(I({},o.Defaults.modifiers,i.modifiers)).forEach(function(e){n.options.modifiers[e]=I({},o.Defaults.modifiers[e]||{},i.modifiers?i.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return I({name:e},n.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&a(e.onLoad)&&e.onLoad(n.reference,n.popper,n.options,e,n.state)}),this.update();var r=this.options.eventsEnabled;r&&this.enableEventListeners(),this.state.eventsEnabled=r}return d(o,[{key:"update",value:function(){return function(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=S(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=T(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=G(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=R(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,N(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[F("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}.call(this)}},{key:"enableEventListeners",value:function(){return function(){this.state.eventsEnabled||(this.state=O(this.reference,this.options,this.state,this.scheduleUpdate))}.call(this)}},{key:"disableEventListeners",value:function(){return W.call(this)}}]),o}();K.Utils=("undefined"!=typeof window?window:e).PopperUtils,K.placements=U,K.Defaults=J,q.default=K}.call(this,t(43))},function(G4a,H4a){var I4a;I4a=function(){return this}();try{I4a=I4a||Function("return this")()||eval("this")}catch(e){"object"==typeof window&&(I4a=window)}G4a.exports=I4a},,,function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=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}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(47),s=n(0),a=n(49),l=n(2),c=n(50),u=n(51),h=n(10),d=n(52),f=n(55),p=n(67),m=n(68),g=n(71),_=n(8),v=n(9),y=n(18),b=n(29),C=n(72),I=n(73),A=n(12),x=n(28),E=n(74),w=n(27),B=n(24),T=n(75),S=n(77),k=n(15),L="undefined"!=typeof window?window.document:null,G=["cols","rows"],D={cols:80,rows:24,convertEol:!1,termName:"xterm",cursorBlink:!1,cursorStyle:"block",bellSound:I.DEFAULT_BELL_SOUND,bellStyle:"none",drawBoldTextInBrightColors:!0,enableBold:!0,experimentalCharAtlas:"static",fontFamily:"courier-new, courier, monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",lineHeight:1,letterSpacing:0,scrollback:1e3,screenKeys:!1,screenReaderMode:!1,debug:!1,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,cancelEvents:!1,disableStdin:!1,useFlowControl:!1,allowTransparency:!1,tabStopWidth:8,theme:null,rightClickSelectsWord:_.isMac,rendererType:"canvas"},R=function(n){function e(e){void 0===e&&(e={});var t=n.call(this)||this;return t.browser=_,t.options=C.clone(e),t._setup(),t}return r(e,n),e.prototype.dispose=function(){n.prototype.dispose.call(this),this._customKeyEventHandler=null,B.removeTerminalFromCache(this),this.handler=function(){},this.write=function(){},this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element)},e.prototype.destroy=function(){this.dispose()},e.prototype._setup=function(){var t=this;Object.keys(D).forEach(function(e){null!==t.options[e]&&void 0!==t.options[e]||(t.options[e]=D[e])}),this._parent=L?L.body:null,this.cols=this.options.cols,this.rows=this.options.rows,this.options.handler&&this.on("data",this.options.handler),this.cursorState=0,this.cursorHidden=!1,this._customKeyEventHandler=null,this.applicationKeypad=!1,this.applicationCursor=!1,this.originMode=!1,this.insertMode=!1,this.wraparoundMode=!0,this.bracketedPasteMode=!1,this.charset=null,this.gcharset=null,this.glevel=0,this.charsets=[null],this.curAttr=s.DEFAULT_ATTR,this.params=[],this.currentParam=0,this.writeBuffer=[],this._writeInProgress=!1,this._xoffSentToCatchUp=!1,this._userScrolling=!1,this._inputHandler=new d.InputHandler(this),this.register(this._inputHandler),this.renderer=this.renderer||null,this.selectionManager=this.selectionManager||null,this.linkifier=this.linkifier||new p.Linkifier(this),this._mouseZoneManager=this._mouseZoneManager||null,this.soundManager=this.soundManager||new I.SoundManager(this),this.buffers=new o.BufferSet(this),this.selectionManager&&(this.selectionManager.clearSelection(),this.selectionManager.initBuffersListeners())},Object.defineProperty(e.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!0,configurable:!0}),e.prototype.eraseAttr=function(){return-512&s.DEFAULT_ATTR|511&this.curAttr},e.prototype.focus=function(){this.textarea&&this.textarea.focus()},Object.defineProperty(e.prototype,"isFocused",{get:function(){return L.activeElement===this.textarea},enumerable:!0,configurable:!0}),e.prototype.getOption=function(e){if(!(e in D))throw new Error('No option with key "'+e+'"');return this.options[e]},e.prototype.setOption=function(e,t){if(!(e in D))throw new Error('No option with key "'+e+'"');if(-1!==G.indexOf(e)&&console.error('Option "'+e+'" can only be set in the constructor'),this.options[e]!==t){switch(e){case"bellStyle":t||(t="none");break;case"cursorStyle":t||(t="block");break;case"fontWeight":t||(t="normal");break;case"fontWeightBold":t||(t="bold");break;case"lineHeight":if(t<1)return void console.warn(e+" cannot be less than 1, value: "+t);case"rendererType":t||(t="canvas");break;case"tabStopWidth":if(t<1)return void console.warn(e+" cannot be less than 1, value: "+t);break;case"theme":if(this.renderer)return void this._setTheme(t);break;case"scrollback":if((t=Math.min(t,s.MAX_BUFFER_SIZE))<0)return void console.warn(e+" cannot be less than 0, value: "+t);if(this.options[e]!==t){var n=this.rows+t;if(this.buffer.lines.length>n){var i=this.buffer.lines.length-n,r=this.buffer.ydisp-i<0;this.buffer.lines.trimStart(i),this.buffer.ybase=Math.max(this.buffer.ybase-i,0),this.buffer.ydisp=Math.max(this.buffer.ydisp-i,0),r&&this.refresh(0,this.rows-1)}}}switch(this.options[e]=t,e){case"fontFamily":case"fontSize":this.renderer&&(this.renderer.clear(),this.charMeasure.measure(this.options));break;case"drawBoldTextInBrightColors":case"experimentalCharAtlas":case"enableBold":case"letterSpacing":case"lineHeight":case"fontWeight":case"fontWeightBold":this.renderer&&(this.renderer.clear(),this.renderer.onResize(this.cols,this.rows),this.refresh(0,this.rows-1));case"rendererType":this.renderer&&(this.unregister(this.renderer),this.renderer.dispose(),this.renderer=null),this._setupRenderer(),this.renderer.onCharSizeChanged(),this._theme&&this.renderer.setTheme(this._theme);break;case"scrollback":this.buffers.resize(this.cols,this.rows),this.viewport&&this.viewport.syncScrollArea();break;case"screenReaderMode":t?this._accessibilityManager||(this._accessibilityManager=new E.AccessibilityManager(this)):this._accessibilityManager&&(this._accessibilityManager.dispose(),this._accessibilityManager=null);break;case"tabStopWidth":this.buffers.setupTabStops()}this.renderer&&this.renderer.onOptionsChanged()}},e.prototype._onTextAreaFocus=function(e){this.sendFocus&&this.handler(h.C0.ESC+"[I"),this.updateCursorStyle(e),this.element.classList.add("focus"),this.showCursor(),this.emit("focus")},e.prototype.blur=function(){return this.textarea.blur()},e.prototype._onTextAreaBlur=function(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this.sendFocus&&this.handler(h.C0.ESC+"[O"),this.element.classList.remove("focus"),this.emit("blur")},e.prototype._initGlobal=function(){var t=this;this._bindKeys(),this.register(v.addDisposableDomListener(this.element,"copy",function(e){t.hasSelection()&&u.copyHandler(e,t,t.selectionManager)}));var e=function(e){return u.pasteHandler(e,t)};this.register(v.addDisposableDomListener(this.textarea,"paste",e)),this.register(v.addDisposableDomListener(this.element,"paste",e)),_.isFirefox?this.register(v.addDisposableDomListener(this.element,"mousedown",function(e){2===e.button&&u.rightClickHandler(e,t.textarea,t.selectionManager,t.options.rightClickSelectsWord)})):this.register(v.addDisposableDomListener(this.element,"contextmenu",function(e){u.rightClickHandler(e,t.textarea,t.selectionManager,t.options.rightClickSelectsWord)})),_.isLinux&&this.register(v.addDisposableDomListener(this.element,"auxclick",function(e){1===e.button&&u.moveTextAreaUnderMouseCursor(e,t.textarea)}))},e.prototype._bindKeys=function(){var n=this,i=this;this.register(v.addDisposableDomListener(this.element,"keydown",function(e){L.activeElement===this&&i._keyDown(e)},!0)),this.register(v.addDisposableDomListener(this.element,"keypress",function(e){L.activeElement===this&&i._keyPress(e)},!0)),this.register(v.addDisposableDomListener(this.element,"keyup",function(e){var t;16!==(t=e).keyCode&&17!==t.keyCode&&18!==t.keyCode&&n.focus(),i._keyUp(e)},!0)),this.register(v.addDisposableDomListener(this.textarea,"keydown",function(e){return n._keyDown(e)},!0)),this.register(v.addDisposableDomListener(this.textarea,"keypress",function(e){return n._keyPress(e)},!0)),this.register(v.addDisposableDomListener(this.textarea,"compositionstart",function(){return n._compositionHelper.compositionstart()})),this.register(v.addDisposableDomListener(this.textarea,"compositionupdate",function(e){return n._compositionHelper.compositionupdate(e)})),this.register(v.addDisposableDomListener(this.textarea,"compositionend",function(){return n._compositionHelper.compositionend()})),this.register(this.addDisposableListener("refresh",function(){return n._compositionHelper.updateCompositionElements()})),this.register(this.addDisposableListener("refresh",function(e){return n._queueLinkification(e.start,e.end)}))},e.prototype.open=function(e){var t=this;if(this._parent=e||this._parent,!this._parent)throw new Error("Terminal requires a parent element.");this._context=this._parent.ownerDocument.defaultView,this._document=this._parent.ownerDocument,this._screenDprMonitor=new w.ScreenDprMonitor,this._screenDprMonitor.setListener(function(){return t.emit("dprchange",window.devicePixelRatio)}),this.register(this._screenDprMonitor),this.element=this._document.createElement("div"),this.element.dir="ltr",this.element.classList.add("terminal"),this.element.classList.add("xterm"),this.element.setAttribute("tabindex","0"),this._parent.appendChild(this.element);var n=L.createDocumentFragment();this._viewportElement=L.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),n.appendChild(this._viewportElement),this._viewportScrollArea=L.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=L.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=L.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),n.appendChild(this.screenElement),this._mouseZoneManager=new x.MouseZoneManager(this),this.register(this._mouseZoneManager),this.register(this.addDisposableListener("scroll",function(){return t._mouseZoneManager.clearAll()})),this.linkifier.attachToDom(this._mouseZoneManager),this.textarea=L.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",y.promptLabel),this.textarea.setAttribute("aria-multiline","false"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this.register(v.addDisposableDomListener(this.textarea,"focus",function(e){return t._onTextAreaFocus(e)})),this.register(v.addDisposableDomListener(this.textarea,"blur",function(){return t._onTextAreaBlur()})),this._helperContainer.appendChild(this.textarea),this._compositionView=L.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=new a.CompositionHelper(this.textarea,this._compositionView,this),this._helperContainer.appendChild(this._compositionView),this.charMeasure=new g.CharMeasure(L,this._helperContainer),this.element.appendChild(n),this._setupRenderer(),this._theme=this.options.theme,this.options.theme=null,this.viewport=new c.Viewport(this,this._viewportElement,this._viewportScrollArea,this.charMeasure),this.viewport.onThemeChanged(this.renderer.colorManager.colors),this.register(this.viewport),this.register(this.addDisposableListener("cursormove",function(){return t.renderer.onCursorMove()})),this.register(this.addDisposableListener("resize",function(){return t.renderer.onResize(t.cols,t.rows)})),this.register(this.addDisposableListener("blur",function(){return t.renderer.onBlur()})),this.register(this.addDisposableListener("focus",function(){return t.renderer.onFocus()})),this.register(this.addDisposableListener("dprchange",function(){return t.renderer.onWindowResize(window.devicePixelRatio)})),this.register(v.addDisposableDomListener(window,"resize",function(){return t.renderer.onWindowResize(window.devicePixelRatio)})),this.register(this.charMeasure.addDisposableListener("charsizechanged",function(){return t.renderer.onCharSizeChanged()})),this.register(this.renderer.addDisposableListener("resize",function(e){return t.viewport.syncScrollArea()})),this.selectionManager=new m.SelectionManager(this,this.charMeasure),this.register(v.addDisposableDomListener(this.element,"mousedown",function(e){return t.selectionManager.onMouseDown(e)})),this.register(this.selectionManager.addDisposableListener("refresh",function(e){return t.renderer.onSelectionChanged(e.start,e.end,e.columnSelectMode)})),this.register(this.selectionManager.addDisposableListener("newselection",function(e){t.textarea.value=e,t.textarea.focus(),t.textarea.select()})),this.register(this.addDisposableListener("scroll",function(){t.viewport.syncScrollArea(),t.selectionManager.refresh()})),this.register(v.addDisposableDomListener(this._viewportElement,"scroll",function(){return t.selectionManager.refresh()})),this.mouseHelper=new b.MouseHelper(this.renderer),this.options.screenReaderMode&&(this._accessibilityManager=new E.AccessibilityManager(this)),this.charMeasure.measure(this.options),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()},e.prototype._setupRenderer=function(){switch(this.options.rendererType){case"canvas":this.renderer=new f.Renderer(this,this.options.theme);break;case"dom":this.renderer=new T.DomRenderer(this,this.options.theme);break;default:throw new Error('Unrecognized rendererType "'+this.options.rendererType+'"')}this.register(this.renderer)},e.prototype._setTheme=function(e){this._theme=e;var t=this.renderer.setTheme(e);this.viewport&&this.viewport.onThemeChanged(t)},e.prototype.bindMouse=function(){var o=this,e=this.element,s=this,r=32;function a(e){var t,n;if(t=function(e){var t,n,i,r,o;switch(e.overrideType||e.type){case"mousedown":t=null!==e.button&&void 0!==e.button?+e.button:null!==e.which&&void 0!==e.which?e.which-1:null,_.isMSIE&&(t=1===t?0:4===t?1:t);break;case"mouseup":t=3;break;case"DOMMouseScroll":t=e.detail<0?64:65;break;case"wheel":t=0<e.wheelDeltaY?64:65}n=e.shiftKey?4:0,i=e.metaKey?8:0,r=e.ctrlKey?16:0,o=n|i|r,s.vt200Mouse?o&=r:s.normalMouse||(o=0);return t=32+(o<<2)+t}(e),n=s.mouseHelper.getRawByteCoords(e,s.screenElement,s.charMeasure,s.options.lineHeight,s.cols,s.rows))switch(c(t,n),e.overrideType||e.type){case"mousedown":r=t;break;case"mouseup":r=32}}function l(e,t){if(s.utfMouse){if(2047===t)return void e.push(0);t<127?e.push(t):(2047<t&&(t=2047),e.push(192|t>>6),e.push(128|63&t))}else{if(255===t)return void e.push(0);127<t&&(t=127),e.push(t)}}function c(e,t){if(s._vt300Mouse){e&=3,t.x-=32,t.y-=32;var n=h.C0.ESC+"[24";if(0===e)n+="1";else if(1===e)n+="3";else if(2===e)n+="5";else{if(3===e)return;n+="0"}return n+="~["+t.x+","+t.y+"]\r",void s.handler(n)}if(s._decLocator)return e&=3,t.x-=32,t.y-=32,0===e?e=2:1===e?e=4:2===e?e=6:3===e&&(e=3),void s.handler(h.C0.ESC+"["+e+";"+(3===e?4:0)+";"+t.y+";"+t.x+";"+t.page||"0&w");if(s.urxvtMouse)return t.x-=32,t.y-=32,t.x++,t.y++,void s.handler(h.C0.ESC+"["+e+";"+t.x+";"+t.y+"M");if(s.sgrMouse)return t.x-=32,t.y-=32,void s.handler(h.C0.ESC+"[<"+((3==(3&e)?-4&e:e)-32)+";"+t.x+";"+t.y+(3==(3&e)?"m":"M"));var i=[];l(i,e),l(i,t.x),l(i,t.y),s.handler(h.C0.ESC+"[M"+String.fromCharCode.apply(String,i))}this.register(v.addDisposableDomListener(e,"mousedown",function(e){if(e.preventDefault(),o.focus(),o.mouseEvents&&!o.selectionManager.shouldForceSelection(e)){if(a(e),o.vt200Mouse)return e.overrideType="mouseup",a(e),o.cancel(e);var t;o.normalMouse&&(t=function(e){var t,n,i;o.normalMouse&&(t=e,n=r,(i=s.mouseHelper.getRawByteCoords(t,s.screenElement,s.charMeasure,s.options.lineHeight,s.cols,s.rows))&&c(n+=32,i))},o._document.addEventListener("mousemove",t));var n=function(e){return o.normalMouse&&!o.x10Mouse&&a(e),t&&(o._document.removeEventListener("mousemove",t),t=null),o._document.removeEventListener("mouseup",n),o.cancel(e)};return o._document.addEventListener("mouseup",n),o.cancel(e)}})),this.register(v.addDisposableDomListener(e,"wheel",function(e){if(o.mouseEvents)o.x10Mouse||o._vt300Mouse||o._decLocator||(a(e),e.preventDefault());else if(!o.buffer.hasScrollback){var t=o.viewport.getLinesScrolled(e);if(0===t)return;for(var n=h.C0.ESC+(o.applicationCursor?"O":"[")+(e.deltaY<0?"A":"B"),i="",r=0;r<Math.abs(t);r++)i+=n;o.handler(i)}})),this.register(v.addDisposableDomListener(e,"wheel",function(e){if(!o.mouseEvents)return o.viewport.onWheel(e),o.cancel(e)})),this.register(v.addDisposableDomListener(e,"touchstart",function(e){if(!o.mouseEvents)return o.viewport.onTouchStart(e),o.cancel(e)})),this.register(v.addDisposableDomListener(e,"touchmove",function(e){if(!o.mouseEvents)return o.viewport.onTouchMove(e),o.cancel(e)}))},e.prototype.refresh=function(e,t){this.renderer&&this.renderer.refreshRows(e,t)},e.prototype._queueLinkification=function(e,t){this.linkifier&&this.linkifier.linkifyRows(e,t)},e.prototype.updateCursorStyle=function(e){this.selectionManager&&this.selectionManager.shouldColumnSelect(e)?this.element.classList.add("xterm-cursor-crosshair"):this.element.classList.remove("xterm-cursor-crosshair")},e.prototype.showCursor=function(){this.cursorState||(this.cursorState=1,this.refresh(this.buffer.y,this.buffer.y))},e.prototype.scroll=function(e){var t=k.BufferLine.blankLine(this.cols,s.DEFAULT_ATTR,e),n=this.buffer.ybase+this.buffer.scrollTop,i=this.buffer.ybase+this.buffer.scrollBottom;if(0===this.buffer.scrollTop){var r=this.buffer.lines.length===this.buffer.lines.maxLength;i===this.buffer.lines.length-1?this.buffer.lines.push(t):this.buffer.lines.splice(i+1,0,t),r?this._userScrolling&&(this.buffer.ydisp=Math.max(this.buffer.ydisp-1,0)):(this.buffer.ybase++,this._userScrolling||this.buffer.ydisp++)}else{var o=i-n+1;this.buffer.lines.shiftElements(n+1,o-1,-1),this.buffer.lines.set(i,t)}this._userScrolling||(this.buffer.ydisp=this.buffer.ybase),this.updateRange(this.buffer.scrollTop),this.updateRange(this.buffer.scrollBottom),this.emit("scroll",this.buffer.ydisp)},e.prototype.scrollLines=function(e,t){if(e<0){if(0===this.buffer.ydisp)return;this._userScrolling=!0}else e+this.buffer.ydisp>=this.buffer.ybase&&(this._userScrolling=!1);var n=this.buffer.ydisp;this.buffer.ydisp=Math.max(Math.min(this.buffer.ydisp+e,this.buffer.ybase),0),n!==this.buffer.ydisp&&(t||this.emit("scroll",this.buffer.ydisp),this.refresh(0,this.rows-1))},e.prototype.scrollPages=function(e){this.scrollLines(e*(this.rows-1))},e.prototype.scrollToTop=function(){this.scrollLines(-this.buffer.ydisp)},e.prototype.scrollToBottom=function(){this.scrollLines(this.buffer.ybase-this.buffer.ydisp)},e.prototype.scrollToLine=function(e){var t=e-this.buffer.ydisp;0!==t&&this.scrollLines(t)},e.prototype.write=function(e){var t=this;this._isDisposed||e&&(this.writeBuffer.push(e),this.options.useFlowControl&&!this._xoffSentToCatchUp&&5<=this.writeBuffer.length&&(this.handler(h.C0.DC3),this._xoffSentToCatchUp=!0),!this._writeInProgress&&0<this.writeBuffer.length&&(this._writeInProgress=!0,setTimeout(function(){t._innerWrite()})))},e.prototype._innerWrite=function(){var e=this;this._isDisposed&&(this.writeBuffer=[]);for(var t=this.writeBuffer.splice(0,300);0<t.length;){var n=t.shift();this._xoffSentToCatchUp&&0===t.length&&0===this.writeBuffer.length&&(this.handler(h.C0.DC1),this._xoffSentToCatchUp=!1),this._refreshStart=this.buffer.y,this._refreshEnd=this.buffer.y,this._inputHandler.parse(n),this.updateRange(this.buffer.y),this.refresh(this._refreshStart,this._refreshEnd)}0<this.writeBuffer.length?setTimeout(function(){return e._innerWrite()},0):this._writeInProgress=!1},e.prototype.writeln=function(e){this.write(e+"\r\n")},e.prototype.attachCustomKeyEventHandler=function(e){this._customKeyEventHandler=e},e.prototype.registerLinkMatcher=function(e,t,n){var i=this.linkifier.registerLinkMatcher(e,t,n);return this.refresh(0,this.rows-1),i},e.prototype.deregisterLinkMatcher=function(e){this.linkifier.deregisterLinkMatcher(e)&&this.refresh(0,this.rows-1)},e.prototype.registerCharacterJoiner=function(e){var t=this.renderer.registerCharacterJoiner(e);return this.refresh(0,this.rows-1),t},e.prototype.deregisterCharacterJoiner=function(e){this.renderer.deregisterCharacterJoiner(e)&&this.refresh(0,this.rows-1)},Object.defineProperty(e.prototype,"markers",{get:function(){return this.buffer.markers},enumerable:!0,configurable:!0}),e.prototype.addMarker=function(e){if(this.buffer===this.buffers.normal)return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+e)},e.prototype.hasSelection=function(){return!!this.selectionManager&&this.selectionManager.hasSelection},e.prototype.getSelection=function(){return this.selectionManager?this.selectionManager.selectionText:""},e.prototype.clearSelection=function(){this.selectionManager&&this.selectionManager.clearSelection()},e.prototype.selectAll=function(){this.selectionManager&&this.selectionManager.selectAll()},e.prototype.selectLines=function(e,t){this.selectionManager&&this.selectionManager.selectLines(e,t)},e.prototype._keyDown=function(e){if(this._customKeyEventHandler&&!1===this._customKeyEventHandler(e))return!1;if(!this._compositionHelper.keydown(e))return this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(),!1;var t=S.evaluateKeyboardEvent(e,this.applicationCursor,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(e),3!==t.type&&2!==t.type)return 1===t.type&&this.selectAll(),!!this._isThirdLevelShift(this.browser,e)||(t.cancel&&this.cancel(e,!0),!t.key||(this.emit("keydown",e),this.emit("key",t.key,e),this.showCursor(),this.handler(t.key),this.cancel(e,!0)));var n=this.rows-1;return this.scrollLines(2===t.type?-n:n),this.cancel(e,!0)},e.prototype._isThirdLevelShift=function(e,t){var n=e.isMac&&!this.options.macOptionIsMeta&&t.altKey&&!t.ctrlKey&&!t.metaKey||e.isMSWindows&&t.altKey&&t.ctrlKey&&!t.metaKey;return"keypress"===t.type?n:n&&(!t.keyCode||47<t.keyCode)},e.prototype.setgLevel=function(e){this.glevel=e,this.charset=this.charsets[e]},e.prototype.setgCharset=function(e,t){this.charsets[e]=t,this.glevel===e&&(this.charset=t)},e.prototype._keyUp=function(e){this.updateCursorStyle(e)},e.prototype._keyPress=function(e){var t;if(this._customKeyEventHandler&&!1===this._customKeyEventHandler(e))return!1;if(this.cancel(e),e.charCode)t=e.charCode;else if(null===e.which||void 0===e.which)t=e.keyCode;else{if(0===e.which||0===e.charCode)return!1;t=e.which}return!(!t||(e.altKey||e.ctrlKey||e.metaKey)&&!this._isThirdLevelShift(this.browser,e))&&(t=String.fromCharCode(t),this.emit("keypress",t,e),this.emit("key",t,e),this.showCursor(),this.handler(t),!0)},e.prototype.bell=function(){var e=this;this.emit("bell"),this._soundBell()&&this.soundManager.playBellSound(),this._visualBell()&&(this.element.classList.add("visual-bell-active"),clearTimeout(this._visualBellTimer),this._visualBellTimer=window.setTimeout(function(){e.element.classList.remove("visual-bell-active")},200))},e.prototype.log=function(e,t){this.options.debug&&this._context.console&&this._context.console.log&&this._context.console.log(e,t)},e.prototype.error=function(e,t){this.options.debug&&this._context.console&&this._context.console.error&&this._context.console.error(e,t)},e.prototype.resize=function(e,t){isNaN(e)||isNaN(t)||(e!==this.cols||t!==this.rows?(e<1&&(e=1),t<1&&(t=1),this.buffers.resize(e,t),this.cols=e,this.rows=t,this.buffers.setupTabStops(this.cols),this.charMeasure&&this.charMeasure.measure(this.options),this.refresh(0,this.rows-1),this.emit("resize",{cols:e,rows:t})):!this.charMeasure||this.charMeasure.width&&this.charMeasure.height||this.charMeasure.measure(this.options))},e.prototype.updateRange=function(e){e<this._refreshStart&&(this._refreshStart=e),e>this._refreshEnd&&(this._refreshEnd=e)},e.prototype.maxRange=function(){this._refreshStart=0,this._refreshEnd=this.rows-1},e.prototype.clear=function(){if(0!==this.buffer.ybase||0!==this.buffer.y){this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(var e=1;e<this.rows;e++)this.buffer.lines.push(k.BufferLine.blankLine(this.cols,s.DEFAULT_ATTR));this.refresh(0,this.rows-1),this.emit("scroll",this.buffer.ydisp)}},e.prototype.ch=function(e){return e?[this.eraseAttr(),s.NULL_CELL_CHAR,s.NULL_CELL_WIDTH,s.NULL_CELL_CODE]:[s.DEFAULT_ATTR,s.NULL_CELL_CHAR,s.NULL_CELL_WIDTH,s.NULL_CELL_CODE]},e.prototype.is=function(e){return 0===(this.options.termName+"").indexOf(e)},e.prototype.handler=function(e){this.options.disableStdin||(this.selectionManager&&this.selectionManager.hasSelection&&this.selectionManager.clearSelection(),this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(),this.emit("data",e))},e.prototype.handleTitle=function(e){this.emit("title",e)},e.prototype.index=function(){this.buffer.y++,this.buffer.y>this.buffer.scrollBottom&&(this.buffer.y--,this.scroll()),this.buffer.x>=this.cols&&this.buffer.x--},e.prototype.reverseIndex=function(){if(this.buffer.y===this.buffer.scrollTop){var e=this.buffer.scrollBottom-this.buffer.scrollTop;this.buffer.lines.shiftElements(this.buffer.y+this.buffer.ybase,e,1),this.buffer.lines.set(this.buffer.y+this.buffer.ybase,k.BufferLine.blankLine(this.cols,this.eraseAttr())),this.updateRange(this.buffer.scrollTop),this.updateRange(this.buffer.scrollBottom)}else this.buffer.y--},e.prototype.reset=function(){this.options.rows=this.rows,this.options.cols=this.cols;var e=this._customKeyEventHandler,t=this._inputHandler,n=this.cursorState;this._setup(),this._customKeyEventHandler=e,this._inputHandler=t,this.cursorState=n,this.refresh(0,this.rows-1),this.viewport&&this.viewport.syncScrollArea()},e.prototype.tabSet=function(){this.buffer.tabs[this.buffer.x]=!0},e.prototype.cancel=function(e,t){if(this.options.cancelEvents||t)return e.preventDefault(),e.stopPropagation(),!1},e.prototype.matchColor=function(e,t,n){var i=e<<16|t<<8|n;if(null!==N[i]&&void 0!==N[i])return N[i];for(var r,o,s,a,l,c,u,h,d=1/0,f=-1,p=0;p<A.DEFAULT_ANSI_COLORS.length;p++){if(r=A.DEFAULT_ANSI_COLORS[p].rgba,s=e,a=t,l=n,c=r>>>24,u=r>>>16&255,h=r>>>8&255,0===(o=Math.pow(30*(s-c),2)+Math.pow(59*(a-u),2)+Math.pow(11*(l-h),2))){f=p;break}o<d&&(d=o,f=p)}return N[i]=f},e.prototype._visualBell=function(){return!1},e.prototype._soundBell=function(){return"sound"===this.options.bellStyle},e}(l.EventEmitter);t.Terminal=R;var N={}},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=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}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),s=function(n){function e(e){var t=n.call(this)||this;return t._terminal=e,t._normal=new o.Buffer(t._terminal,!0),t._normal.fillViewportRows(),t._alt=new o.Buffer(t._terminal,!1),t._activeBuffer=t._normal,t.setupTabStops(),t}return r(e,n),Object.defineProperty(e.prototype,"alt",{get:function(){return this._alt},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"active",{get:function(){return this._activeBuffer},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"normal",{get:function(){return this._normal},enumerable:!0,configurable:!0}),e.prototype.activateNormalBuffer=function(){this._activeBuffer!==this._normal&&(this._alt.clear(),this._activeBuffer=this._normal,this.emit("activate",{activeBuffer:this._normal,inactiveBuffer:this._alt}))},e.prototype.activateAltBuffer=function(){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(),this._activeBuffer=this._alt,this.emit("activate",{activeBuffer:this._alt,inactiveBuffer:this._normal}))},e.prototype.resize=function(e,t){this._normal.resize(e,t),this._alt.resize(e,t)},e.prototype.setupTabStops=function(e){this._normal.setupTabStops(e),this._alt.setupTabStops(e)},e}(n(2).EventEmitter);t.BufferSet=s},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=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}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=function(n){function e(e){var t=n.call(this)||this;return t._maxLength=e,t._array=new Array(t._maxLength),t._startIndex=0,t._length=0,t}return r(e,n),Object.defineProperty(e.prototype,"maxLength",{get:function(){return this._maxLength},set:function(e){if(this._maxLength!==e){for(var t=new Array(e),n=0;n<Math.min(e,this.length);n++)t[n]=this._array[this._getCyclicIndex(n)];this._array=t,this._maxLength=e,this._startIndex=0}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._length},set:function(e){if(e>this._length)for(var t=this._length;t<e;t++)this._array[t]=void 0;this._length=e},enumerable:!0,configurable:!0}),e.prototype.get=function(e){return this._array[this._getCyclicIndex(e)]},e.prototype.set=function(e,t){this._array[this._getCyclicIndex(e)]=t},e.prototype.push=function(e){this._array[this._getCyclicIndex(this._length)]=e,this._length===this._maxLength?(this._startIndex++,this._startIndex===this._maxLength&&(this._startIndex=0),this.emit("trim",1)):this._length++},e.prototype.pop=function(){return this._array[this._getCyclicIndex(this._length---1)]},e.prototype.splice=function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];if(t){for(var r=e;r<this._length-t;r++)this._array[this._getCyclicIndex(r)]=this._array[this._getCyclicIndex(r+t)];this._length-=t}if(n&&n.length){for(r=this._length-1;e<=r;r--)this._array[this._getCyclicIndex(r+n.length)]=this._array[this._getCyclicIndex(r)];for(r=0;r<n.length;r++)this._array[this._getCyclicIndex(e+r)]=n[r];if(this._length+n.length>this.maxLength){var o=this._length+n.length-this.maxLength;this._startIndex+=o,this._length=this.maxLength,this.emit("trim",o)}else this._length+=n.length}},e.prototype.trimStart=function(e){e>this._length&&(e=this._length),this._startIndex+=e,this._length-=e,this.emit("trim",e)},e.prototype.shiftElements=function(e,t,n){if(!(t<=0)){if(e<0||e>=this._length)throw new Error("start argument out of range");if(e+n<0)throw new Error("Cannot shift elements in list beyond index 0");if(0<n){for(var i=t-1;0<=i;i--)this.set(e+i+n,this.get(e+i));var r=e+t+n-this._length;if(0<r)for(this._length+=r;this._length>this.maxLength;)this._length--,this._startIndex++,this.emit("trim",1)}else for(i=0;i<t;i++)this.set(e+i+n,this.get(e+i))}},e.prototype._getCyclicIndex=function(e){return(this._startIndex+e)%this.maxLength},e}(n(2).EventEmitter);t.CircularList=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t,n){this._textarea=e,this._compositionView=t,this._terminal=n,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:null,end:null}}return e.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._compositionView.classList.add("active")},e.prototype.compositionupdate=function(e){var t=this;this._compositionView.textContent=e.data,this.updateCompositionElements(),setTimeout(function(){t._compositionPosition.end=t._textarea.value.length},0)},e.prototype.compositionend=function(){this._finalizeComposition(!0)},e.prototype.keydown=function(e){if(this._isComposing||this._isSendingComposition){if(229===e.keyCode)return!1;if(16===e.keyCode||17===e.keyCode||18===e.keyCode)return!1;this._finalizeComposition(!1)}return 229!==e.keyCode||(this._handleAnyTextareaChanges(),!1)},e.prototype._finalizeComposition=function(e){var t=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,this._clearTextareaPosition(),e){var n={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(function(){if(t._isSendingComposition){t._isSendingComposition=!1;var e=void 0;e=t._isComposing?t._textarea.value.substring(n.start,n.end):t._textarea.value.substring(n.start),t._terminal.handler(e)}},0)}else{this._isSendingComposition=!1;var i=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._terminal.handler(i)}},e.prototype._handleAnyTextareaChanges=function(){var t=this,n=this._textarea.value;setTimeout(function(){if(!t._isComposing){var e=t._textarea.value.replace(n,"");0<e.length&&t._terminal.handler(e)}},0)},e.prototype.updateCompositionElements=function(e){var t=this;if(this._isComposing){if(this._terminal.buffer.isCursorInViewport){var n=Math.ceil(this._terminal.charMeasure.height*this._terminal.options.lineHeight),i=this._terminal.buffer.y*n,r=this._terminal.buffer.x*this._terminal.charMeasure.width;this._compositionView.style.left=r+"px",this._compositionView.style.top=i+"px",this._compositionView.style.height=n+"px",this._compositionView.style.lineHeight=n+"px";var o=this._compositionView.getBoundingClientRect();this._textarea.style.left=r+"px",this._textarea.style.top=i+"px",this._textarea.style.width=o.width+"px",this._textarea.style.height=o.height+"px",this._textarea.style.lineHeight=o.height+"px"}e||setTimeout(function(){return t.updateCompositionElements(!0)},0)}},e.prototype._clearTextareaPosition=function(){this._textarea.style.left="",this._textarea.style.top=""},e}();t.CompositionHelper=i},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=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}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(5),s=n(9),a=function(o){function e(e,t,n,i){var r=o.call(this)||this;return r._terminal=e,r._viewportElement=t,r._scrollArea=n,r._charMeasure=i,r.scrollBarWidth=0,r._currentRowHeight=0,r._lastRecordedBufferLength=0,r._lastRecordedViewportHeight=0,r._lastRecordedBufferHeight=0,r._lastScrollTop=0,r._wheelPartialScroll=0,r._refreshAnimationFrame=null,r._ignoreNextScrollEvent=!1,r.scrollBarWidth=r._viewportElement.offsetWidth-r._scrollArea.offsetWidth||15,r.register(s.addDisposableDomListener(r._viewportElement,"scroll",r._onScroll.bind(r))),setTimeout(function(){return r.syncScrollArea()},0),r}return r(e,o),e.prototype.onThemeChanged=function(e){this._viewportElement.style.backgroundColor=e.background.css},e.prototype._refresh=function(){var e=this;null===this._refreshAnimationFrame&&(this._refreshAnimationFrame=requestAnimationFrame(function(){return e._innerRefresh()}))},e.prototype._innerRefresh=function(){if(0<this._charMeasure.height){this._currentRowHeight=this._terminal.renderer.dimensions.scaledCellHeight/window.devicePixelRatio,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;var e=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._terminal.renderer.dimensions.canvasHeight);this._lastRecordedBufferHeight!==e&&(this._lastRecordedBufferHeight=e,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}var t=this._terminal.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==t&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=t),this._refreshAnimationFrame=null},e.prototype.syncScrollArea=function(){if(this._lastRecordedBufferLength!==this._terminal.buffer.lines.length)return this._lastRecordedBufferLength=this._terminal.buffer.lines.length,void this._refresh();if(this._lastRecordedViewportHeight===this._terminal.renderer.dimensions.canvasHeight){var e=this._terminal.buffer.ydisp*this._currentRowHeight;this._lastScrollTop===e&&this._lastScrollTop===this._viewportElement.scrollTop&&this._terminal.renderer.dimensions.scaledCellHeight/window.devicePixelRatio===this._currentRowHeight||this._refresh()}else this._refresh()},e.prototype._onScroll=function(e){if(this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent)if(this._ignoreNextScrollEvent)this._ignoreNextScrollEvent=!1;else{var t=Math.round(this._lastScrollTop/this._currentRowHeight)-this._terminal.buffer.ydisp;this._terminal.scrollLines(t,!0)}},e.prototype.onWheel=function(e){var t=this._getPixelsScrolled(e);0!==t&&(this._viewportElement.scrollTop+=t,e.preventDefault())},e.prototype._getPixelsScrolled=function(e){if(0===e.deltaY)return 0;var t=e.deltaY;return e.deltaMode===WheelEvent.DOM_DELTA_LINE?t*=this._currentRowHeight:e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._currentRowHeight*this._terminal.rows),t},e.prototype.getLinesScrolled=function(e){if(0===e.deltaY)return 0;var t=e.deltaY;return e.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(t/=this._currentRowHeight+0,this._wheelPartialScroll+=t,t=Math.floor(Math.abs(this._wheelPartialScroll))*(0<this._wheelPartialScroll?1:-1),this._wheelPartialScroll%=1):e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._terminal.rows),t},e.prototype.onTouchStart=function(e){this._lastTouchY=e.touches[0].pageY},e.prototype.onTouchMove=function(e){var t=this._lastTouchY-e.touches[0].pageY;this._lastTouchY=e.touches[0].pageY,0!==t&&(this._viewportElement.scrollTop+=t,e.preventDefault())},e}(o.Disposable);t.Viewport=a},function(e,t,n){"use strict";function i(e){return e.replace(/\r?\n/g,"\r")}function r(e,t){return t?"[200~"+e+"[201~":e}function o(e,t){t.style.position="fixed",t.style.width="20px",t.style.height="20px",t.style.left=e.clientX-10+"px",t.style.top=e.clientY-10+"px",t.style.zIndex="1000",t.focus(),setTimeout(function(){t.style.position=null,t.style.width=null,t.style.height=null,t.style.left=null,t.style.top=null,t.style.zIndex=null},200)}Object.defineProperty(t,"__esModule",{value:!0}),t.prepareTextForTerminal=i,t.bracketTextForPaste=r,t.copyHandler=function(e,t,n){t.browser.isMSIE?window.clipboardData.setData("Text",n.selectionText):e.clipboardData.setData("text/plain",n.selectionText),e.preventDefault()},t.pasteHandler=function(t,n){t.stopPropagation();var e=function(e){e=r(e=i(e),n.bracketedPasteMode),n.handler(e),n.textarea.value="",n.emit("paste",e),n.cancel(t)};n.browser.isMSIE?window.clipboardData&&e(window.clipboardData.getData("Text")):t.clipboardData&&e(t.clipboardData.getData("text/plain"))},t.moveTextAreaUnderMouseCursor=o,t.rightClickHandler=function(e,t,n,i){o(e,t),i&&!n.isClickInSelection(e)&&n.selectWordAtCursor(e),t.value=n.selectionText,t.select()}},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=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}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(10),l=n(53),b=n(0),C=n(23),c=n(54),o=n(5),u=n(15),h={"(":0,")":1,"*":2,"+":3,"-":1,".":2},d=function(){function e(e){this._terminal=e}return e.prototype.hook=function(e,t,n){this._data=""},e.prototype.put=function(e,t,n){this._data+=e.substring(t,n)},e.prototype.unhook=function(){this._terminal.handler(a.C0.ESC+"P0+r"+this._data+a.C0.ESC+"\\")},e}(),f=function(){function e(e){this._terminal=e}return e.prototype.hook=function(e,t,n){this._data=""},e.prototype.put=function(e,t,n){this._data+=e.substring(t,n)},e.prototype.unhook=function(){switch(this._data){case'"q':return this._terminal.handler(a.C0.ESC+'P1$r0"q'+a.C0.ESC+"\\");case'"p':return this._terminal.handler(a.C0.ESC+'P1$r61"p'+a.C0.ESC+"\\");case"r":var e=this._terminal.buffer.scrollTop+1+";"+(this._terminal.buffer.scrollBottom+1)+"r";return this._terminal.handler(a.C0.ESC+"P1$r"+e+a.C0.ESC+"\\");case"m":return this._terminal.handler(a.C0.ESC+"P1$r0m"+a.C0.ESC+"\\");case" q":var t={block:2,underline:4,bar:6}[this._terminal.getOption("cursorStyle")];return t-=this._terminal.getOption("cursorBlink"),this._terminal.handler(a.C0.ESC+"P1$r"+t+" q"+a.C0.ESC+"\\");default:this._terminal.error("Unknown DCS $q %s",this._data),this._terminal.handler(a.C0.ESC+"P0$r"+this._data+a.C0.ESC+"\\")}},e}(),s=function(s){function e(e,t){void 0===t&&(t=new c.EscapeSequenceParser);var i=s.call(this)||this;i._terminal=e,i._parser=t,i.register(i._parser),i._surrogateHigh="",i._parser.setCsiHandlerFallback(function(e,t,n){i._terminal.error("Unknown CSI code: ",{collect:e,params:t,flag:String.fromCharCode(n)})}),i._parser.setEscHandlerFallback(function(e,t){i._terminal.error("Unknown ESC code: ",{collect:e,flag:String.fromCharCode(t)})}),i._parser.setExecuteHandlerFallback(function(e){i._terminal.error("Unknown EXECUTE code: ",{code:e})}),i._parser.setOscHandlerFallback(function(e,t){i._terminal.error("Unknown OSC code: ",{identifier:e,data:t})}),i._parser.setPrintHandler(function(e,t,n){return i.print(e,t,n)}),i._parser.setCsiHandler("@",function(e,t){return i.insertChars(e)}),i._parser.setCsiHandler("A",function(e,t){return i.cursorUp(e)}),i._parser.setCsiHandler("B",function(e,t){return i.cursorDown(e)}),i._parser.setCsiHandler("C",function(e,t){return i.cursorForward(e)}),i._parser.setCsiHandler("D",function(e,t){return i.cursorBackward(e)}),i._parser.setCsiHandler("E",function(e,t){return i.cursorNextLine(e)}),i._parser.setCsiHandler("F",function(e,t){return i.cursorPrecedingLine(e)}),i._parser.setCsiHandler("G",function(e,t){return i.cursorCharAbsolute(e)}),i._parser.setCsiHandler("H",function(e,t){return i.cursorPosition(e)}),i._parser.setCsiHandler("I",function(e,t){return i.cursorForwardTab(e)}),i._parser.setCsiHandler("J",function(e,t){return i.eraseInDisplay(e)}),i._parser.setCsiHandler("K",function(e,t){return i.eraseInLine(e)}),i._parser.setCsiHandler("L",function(e,t){return i.insertLines(e)}),i._parser.setCsiHandler("M",function(e,t){return i.deleteLines(e)}),i._parser.setCsiHandler("P",function(e,t){return i.deleteChars(e)}),i._parser.setCsiHandler("S",function(e,t){return i.scrollUp(e)}),i._parser.setCsiHandler("T",function(e,t){return i.scrollDown(e,t)}),i._parser.setCsiHandler("X",function(e,t){return i.eraseChars(e)}),i._parser.setCsiHandler("Z",function(e,t){return i.cursorBackwardTab(e)}),i._parser.setCsiHandler("`",function(e,t){return i.charPosAbsolute(e)}),i._parser.setCsiHandler("a",function(e,t){return i.hPositionRelative(e)}),i._parser.setCsiHandler("b",function(e,t){return i.repeatPrecedingCharacter(e)}),i._parser.setCsiHandler("c",function(e,t){return i.sendDeviceAttributes(e,t)}),i._parser.setCsiHandler("d",function(e,t){return i.linePosAbsolute(e)}),i._parser.setCsiHandler("e",function(e,t){return i.vPositionRelative(e)}),i._parser.setCsiHandler("f",function(e,t){return i.hVPosition(e)}),i._parser.setCsiHandler("g",function(e,t){return i.tabClear(e)}),i._parser.setCsiHandler("h",function(e,t){return i.setMode(e,t)}),i._parser.setCsiHandler("l",function(e,t){return i.resetMode(e,t)}),i._parser.setCsiHandler("m",function(e,t){return i.charAttributes(e)}),i._parser.setCsiHandler("n",function(e,t){return i.deviceStatus(e,t)}),i._parser.setCsiHandler("p",function(e,t){return i.softReset(e,t)}),i._parser.setCsiHandler("q",function(e,t){return i.setCursorStyle(e,t)}),i._parser.setCsiHandler("r",function(e,t){return i.setScrollRegion(e,t)}),i._parser.setCsiHandler("s",function(e,t){return i.saveCursor(e)}),i._parser.setCsiHandler("u",function(e,t){return i.restoreCursor(e)}),i._parser.setExecuteHandler(a.C0.BEL,function(){return i.bell()}),i._parser.setExecuteHandler(a.C0.LF,function(){return i.lineFeed()}),i._parser.setExecuteHandler(a.C0.VT,function(){return i.lineFeed()}),i._parser.setExecuteHandler(a.C0.FF,function(){return i.lineFeed()}),i._parser.setExecuteHandler(a.C0.CR,function(){return i.carriageReturn()}),i._parser.setExecuteHandler(a.C0.BS,function(){return i.backspace()}),i._parser.setExecuteHandler(a.C0.HT,function(){return i.tab()}),i._parser.setExecuteHandler(a.C0.SO,function(){return i.shiftOut()}),i._parser.setExecuteHandler(a.C0.SI,function(){return i.shiftIn()}),i._parser.setExecuteHandler(a.C1.IND,function(){return i.index()}),i._parser.setExecuteHandler(a.C1.NEL,function(){return i.nextLine()}),i._parser.setExecuteHandler(a.C1.HTS,function(){return i.tabSet()}),i._parser.setOscHandler(0,function(e){return i.setTitle(e)}),i._parser.setOscHandler(2,function(e){return i.setTitle(e)}),i._parser.setEscHandler("7",function(){return i.saveCursor([])}),i._parser.setEscHandler("8",function(){return i.restoreCursor([])}),i._parser.setEscHandler("D",function(){return i.index()}),i._parser.setEscHandler("E",function(){return i.nextLine()}),i._parser.setEscHandler("H",function(){return i.tabSet()}),i._parser.setEscHandler("M",function(){return i.reverseIndex()}),i._parser.setEscHandler("=",function(){return i.keypadApplicationMode()}),i._parser.setEscHandler(">",function(){return i.keypadNumericMode()}),i._parser.setEscHandler("c",function(){return i.reset()}),i._parser.setEscHandler("n",function(){return i.setgLevel(2)}),i._parser.setEscHandler("o",function(){return i.setgLevel(3)}),i._parser.setEscHandler("|",function(){return i.setgLevel(3)}),i._parser.setEscHandler("}",function(){return i.setgLevel(2)}),i._parser.setEscHandler("~",function(){return i.setgLevel(1)}),i._parser.setEscHandler("%@",function(){return i.selectDefaultCharset()}),i._parser.setEscHandler("%G",function(){return i.selectDefaultCharset()});var n=function(e){r._parser.setEscHandler("("+e,function(){return i.selectCharset("("+e)}),r._parser.setEscHandler(")"+e,function(){return i.selectCharset(")"+e)}),r._parser.setEscHandler("*"+e,function(){return i.selectCharset("*"+e)}),r._parser.setEscHandler("+"+e,function(){return i.selectCharset("+"+e)}),r._parser.setEscHandler("-"+e,function(){return i.selectCharset("-"+e)}),r._parser.setEscHandler("."+e,function(){return i.selectCharset("."+e)}),r._parser.setEscHandler("/"+e,function(){return i.selectCharset("/"+e)})},r=this;for(var o in l.CHARSETS)n(o);return i._parser.setErrorHandler(function(e){return i._terminal.error("Parsing error: ",e),e}),i._parser.setDcsHandler("$q",new f(i._terminal)),i._parser.setDcsHandler("+q",new d(i._terminal)),i}return r(e,s),e.prototype.dispose=function(){s.prototype.dispose.call(this),this._terminal=null},e.prototype.parse=function(e){if(this._terminal){var t=this._terminal.buffer,n=t.x,i=t.y;this._terminal.debug&&this._terminal.log("data: "+e),this._surrogateHigh&&(e=this._surrogateHigh+e,this._surrogateHigh=""),this._parser.parse(e),(t=this._terminal.buffer).x===n&&t.y===i||this._terminal.emit("cursormove")}},e.prototype.print=function(e,t,n){var i,r,o,s,a=this._terminal.buffer,l=this._terminal.charset,c=this._terminal.options.screenReaderMode,u=this._terminal.cols,h=this._terminal.wraparoundMode,d=this._terminal.insertMode,f=this._terminal.curAttr,p=a.lines.get(a.y+a.ybase);this._terminal.updateRange(a.y);for(var m=t;m<n;++m){if(i=e.charAt(m),55296<=(r=e.charCodeAt(m))&&r<=56319){if(o=e.charCodeAt(m+1),isNaN(o)){this._surrogateHigh=i;continue}r=1024*(r-55296)+(o-56320)+65536,i+=e.charAt(m+1)}if(!(56320<=r&&r<=57343))if(s=C.wcwidth(r),l&&(r=(i=l[i]||i).charCodeAt(0)),c&&this._terminal.emit("a11y.char",i),s||!a.x){if(a.x+s-1>=u)if(h)a.x=0,a.y++,a.y>a.scrollBottom?(a.y--,this._terminal.scroll(!0)):a.lines.get(a.y).isWrapped=!0,p=a.lines.get(a.y+a.ybase);else if(2===s)continue;if(d)for(var g=0;g<s;++g){var _=p.pop();v=p.get(a.x-2);0===_[b.CHAR_DATA_WIDTH_INDEX]&&v&&2===v[b.CHAR_DATA_WIDTH_INDEX]&&p.set(this._terminal.cols-2,[f,b.NULL_CELL_CHAR,b.NULL_CELL_WIDTH,b.NULL_CELL_CODE]),p.splice(a.x,0,[f,b.NULL_CELL_CHAR,b.NULL_CELL_WIDTH,b.NULL_CELL_CODE])}p.set(a.x++,[f,i,s,r]),2===s&&p.set(a.x++,[f,"",0,void 0])}else{var v,y=p.get(a.x-1);y&&(y[b.CHAR_DATA_WIDTH_INDEX]?(y[b.CHAR_DATA_CHAR_INDEX]+=i,y[b.CHAR_DATA_CODE_INDEX]=r):(v=p.get(a.x-2))&&(v[b.CHAR_DATA_CHAR_INDEX]+=i,v[b.CHAR_DATA_CODE_INDEX]=r))}}this._terminal.updateRange(a.y)},e.prototype.bell=function(){this._terminal.bell()},e.prototype.lineFeed=function(){var e=this._terminal.buffer;this._terminal.options.convertEol&&(e.x=0),e.y++,e.y>e.scrollBottom&&(e.y--,this._terminal.scroll()),e.x>=this._terminal.cols&&e.x--,this._terminal.emit("linefeed")},e.prototype.carriageReturn=function(){this._terminal.buffer.x=0},e.prototype.backspace=function(){0<this._terminal.buffer.x&&this._terminal.buffer.x--},e.prototype.tab=function(){var e=this._terminal.buffer.x;this._terminal.buffer.x=this._terminal.buffer.nextStop(),this._terminal.options.screenReaderMode&&this._terminal.emit("a11y.tab",this._terminal.buffer.x-e)},e.prototype.shiftOut=function(){this._terminal.setgLevel(1)},e.prototype.shiftIn=function(){this._terminal.setgLevel(0)},e.prototype.insertChars=function(e){this._terminal.buffer.lines.get(this._terminal.buffer.y+this._terminal.buffer.ybase).insertCells(this._terminal.buffer.x,e[0]||1,[this._terminal.eraseAttr(),b.NULL_CELL_CHAR,b.NULL_CELL_WIDTH,b.NULL_CELL_CODE]),this._terminal.updateRange(this._terminal.buffer.y)},e.prototype.cursorUp=function(e){var t=e[0];t<1&&(t=1),this._terminal.buffer.y-=t,this._terminal.buffer.y<0&&(this._terminal.buffer.y=0)},e.prototype.cursorDown=function(e){var t=e[0];t<1&&(t=1),this._terminal.buffer.y+=t,this._terminal.buffer.y>=this._terminal.rows&&(this._terminal.buffer.y=this._terminal.rows-1),this._terminal.buffer.x>=this._terminal.cols&&this._terminal.buffer.x--},e.prototype.cursorForward=function(e){var t=e[0];t<1&&(t=1),this._terminal.buffer.x+=t,this._terminal.buffer.x>=this._terminal.cols&&(this._terminal.buffer.x=this._terminal.cols-1)},e.prototype.cursorBackward=function(e){var t=e[0];t<1&&(t=1),this._terminal.buffer.x>=this._terminal.cols&&this._terminal.buffer.x--,this._terminal.buffer.x-=t,this._terminal.buffer.x<0&&(this._terminal.buffer.x=0)},e.prototype.cursorNextLine=function(e){var t=e[0];t<1&&(t=1),this._terminal.buffer.y+=t,this._terminal.buffer.y>=this._terminal.rows&&(this._terminal.buffer.y=this._terminal.rows-1),this._terminal.buffer.x=0},e.prototype.cursorPrecedingLine=function(e){var t=e[0];t<1&&(t=1),this._terminal.buffer.y-=t,this._terminal.buffer.y<0&&(this._terminal.buffer.y=0),this._terminal.buffer.x=0},e.prototype.cursorCharAbsolute=function(e){var t=e[0];t<1&&(t=1),this._terminal.buffer.x=t-1},e.prototype.cursorPosition=function(e){var t,n=e[0]-1;t=2<=e.length?e[1]-1:0,n<0?n=0:n>=this._terminal.rows&&(n=this._terminal.rows-1),t<0?t=0:t>=this._terminal.cols&&(t=this._terminal.cols-1),this._terminal.buffer.x=t,this._terminal.buffer.y=n},e.prototype.cursorForwardTab=function(e){for(var t=e[0]||1;t--;)this._terminal.buffer.x=this._terminal.buffer.nextStop()},e.prototype._eraseInBufferLine=function(e,t,n){this._terminal.buffer.lines.get(this._terminal.buffer.ybase+e).replaceCells(t,n,[this._terminal.eraseAttr(),b.NULL_CELL_CHAR,b.NULL_CELL_WIDTH,b.NULL_CELL_CODE])},e.prototype.eraseInDisplay=function(e){var t;switch(e[0]){case 0:for(t=this._terminal.buffer.y,this._terminal.updateRange(t),this._eraseInBufferLine(t++,this._terminal.buffer.x,this._terminal.cols);t<this._terminal.rows;t++)this._eraseInBufferLine(t,0,this._terminal.cols);this._terminal.updateRange(t);break;case 1:for(t=this._terminal.buffer.y,this._terminal.updateRange(t),this._eraseInBufferLine(t,0,this._terminal.buffer.x+1);t--;)this._eraseInBufferLine(t,0,this._terminal.cols);this._terminal.updateRange(0);break;case 2:for(t=this._terminal.rows,this._terminal.updateRange(t-1);t--;)this._eraseInBufferLine(t,0,this._terminal.cols);this._terminal.updateRange(0);break;case 3:var n=this._terminal.buffer.lines.length-this._terminal.rows;0<n&&(this._terminal.buffer.lines.trimStart(n),this._terminal.buffer.ybase=Math.max(this._terminal.buffer.ybase-n,0),this._terminal.buffer.ydisp=Math.max(this._terminal.buffer.ydisp-n,0),this._terminal.emit("scroll",0))}},e.prototype.eraseInLine=function(e){switch(e[0]){case 0:this._eraseInBufferLine(this._terminal.buffer.y,this._terminal.buffer.x,this._terminal.cols);break;case 1:this._eraseInBufferLine(this._terminal.buffer.y,0,this._terminal.buffer.x+1);break;case 2:this._eraseInBufferLine(this._terminal.buffer.y,0,this._terminal.cols)}this._terminal.updateRange(this._terminal.buffer.y)},e.prototype.insertLines=function(e){var t=e[0];t<1&&(t=1);for(var n=this._terminal.buffer,i=n.y+n.ybase,r=this._terminal.rows-1-n.scrollBottom,o=this._terminal.rows-1+n.ybase-r+1;t--;)n.lines.splice(o-1,1),n.lines.splice(i,0,u.BufferLine.blankLine(this._terminal.cols,this._terminal.eraseAttr()));this._terminal.updateRange(n.y),this._terminal.updateRange(n.scrollBottom)},e.prototype.deleteLines=function(e){var t=e[0];t<1&&(t=1);var n,i=this._terminal.buffer,r=i.y+i.ybase;for(n=this._terminal.rows-1-i.scrollBottom,n=this._terminal.rows-1+i.ybase-n;t--;)i.lines.splice(r,1),i.lines.splice(n,0,u.BufferLine.blankLine(this._terminal.cols,this._terminal.eraseAttr()));this._terminal.updateRange(i.y),this._terminal.updateRange(i.scrollBottom)},e.prototype.deleteChars=function(e){this._terminal.buffer.lines.get(this._terminal.buffer.y+this._terminal.buffer.ybase).deleteCells(this._terminal.buffer.x,e[0]||1,[this._terminal.eraseAttr(),b.NULL_CELL_CHAR,b.NULL_CELL_WIDTH,b.NULL_CELL_CODE]),this._terminal.updateRange(this._terminal.buffer.y)},e.prototype.scrollUp=function(e){for(var t=e[0]||1,n=this._terminal.buffer;t--;)n.lines.splice(n.ybase+n.scrollTop,1),n.lines.splice(n.ybase+n.scrollBottom,0,u.BufferLine.blankLine(this._terminal.cols,b.DEFAULT_ATTR));this._terminal.updateRange(n.scrollTop),this._terminal.updateRange(n.scrollBottom)},e.prototype.scrollDown=function(e,t){if(e.length<2&&!t){for(var n=e[0]||1,i=this._terminal.buffer;n--;)i.lines.splice(i.ybase+i.scrollBottom,1),i.lines.splice(i.ybase+i.scrollBottom,0,u.BufferLine.blankLine(this._terminal.cols,b.DEFAULT_ATTR));this._terminal.updateRange(i.scrollTop),this._terminal.updateRange(i.scrollBottom)}},e.prototype.eraseChars=function(e){this._terminal.buffer.lines.get(this._terminal.buffer.y+this._terminal.buffer.ybase).replaceCells(this._terminal.buffer.x,this._terminal.buffer.x+(e[0]||1),[this._terminal.eraseAttr(),b.NULL_CELL_CHAR,b.NULL_CELL_WIDTH,b.NULL_CELL_CODE])},e.prototype.cursorBackwardTab=function(e){for(var t=e[0]||1,n=this._terminal.buffer;t--;)n.x=n.prevStop()},e.prototype.charPosAbsolute=function(e){var t=e[0];t<1&&(t=1),this._terminal.buffer.x=t-1,this._terminal.buffer.x>=this._terminal.cols&&(this._terminal.buffer.x=this._terminal.cols-1)},e.prototype.hPositionRelative=function(e){var t=e[0];t<1&&(t=1),this._terminal.buffer.x+=t,this._terminal.buffer.x>=this._terminal.cols&&(this._terminal.buffer.x=this._terminal.cols-1)},e.prototype.repeatPrecedingCharacter=function(e){var t=this._terminal.buffer,n=t.lines.get(t.ybase+t.y);n.replaceCells(t.x,t.x+(e[0]||1),n.get(t.x-1)||[b.DEFAULT_ATTR,b.NULL_CELL_CHAR,b.NULL_CELL_WIDTH,b.NULL_CELL_CODE])},e.prototype.sendDeviceAttributes=function(e,t){0<e[0]||(t?">"===t&&(this._terminal.is("xterm")?this._terminal.handler(a.C0.ESC+"[>0;276;0c"):this._terminal.is("rxvt-unicode")?this._terminal.handler(a.C0.ESC+"[>85;95;0c"):this._terminal.is("linux")?this._terminal.handler(e[0]+"c"):this._terminal.is("screen")&&this._terminal.handler(a.C0.ESC+"[>83;40003;0c")):this._terminal.is("xterm")||this._terminal.is("rxvt-unicode")||this._terminal.is("screen")?this._terminal.handler(a.C0.ESC+"[?1;2c"):this._terminal.is("linux")&&this._terminal.handler(a.C0.ESC+"[?6c"))},e.prototype.linePosAbsolute=function(e){var t=e[0];t<1&&(t=1),this._terminal.buffer.y=t-1,this._terminal.buffer.y>=this._terminal.rows&&(this._terminal.buffer.y=this._terminal.rows-1)},e.prototype.vPositionRelative=function(e){var t=e[0];t<1&&(t=1),this._terminal.buffer.y+=t,this._terminal.buffer.y>=this._terminal.rows&&(this._terminal.buffer.y=this._terminal.rows-1),this._terminal.buffer.x>=this._terminal.cols&&this._terminal.buffer.x--},e.prototype.hVPosition=function(e){e[0]<1&&(e[0]=1),e[1]<1&&(e[1]=1),this._terminal.buffer.y=e[0]-1,this._terminal.buffer.y>=this._terminal.rows&&(this._terminal.buffer.y=this._terminal.rows-1),this._terminal.buffer.x=e[1]-1,this._terminal.buffer.x>=this._terminal.cols&&(this._terminal.buffer.x=this._terminal.cols-1)},e.prototype.tabClear=function(e){var t=e[0];t<=0?delete this._terminal.buffer.tabs[this._terminal.buffer.x]:3===t&&(this._terminal.buffer.tabs={})},e.prototype.setMode=function(e,t){if(1<e.length)for(var n=0;n<e.length;n++)this.setMode([e[n]]);else if(t){if("?"===t)switch(e[0]){case 1:this._terminal.applicationCursor=!0;break;case 2:this._terminal.setgCharset(0,l.DEFAULT_CHARSET),this._terminal.setgCharset(1,l.DEFAULT_CHARSET),this._terminal.setgCharset(2,l.DEFAULT_CHARSET),this._terminal.setgCharset(3,l.DEFAULT_CHARSET);break;case 3:this._terminal.savedCols=this._terminal.cols,this._terminal.resize(132,this._terminal.rows);break;case 6:this._terminal.originMode=!0;break;case 7:this._terminal.wraparoundMode=!0;break;case 12:break;case 66:this._terminal.log("Serial port requested application keypad."),this._terminal.applicationKeypad=!0,this._terminal.viewport.syncScrollArea();break;case 9:case 1e3:case 1002:case 1003:this._terminal.x10Mouse=9===e[0],this._terminal.vt200Mouse=1e3===e[0],this._terminal.normalMouse=1e3<e[0],this._terminal.mouseEvents=!0,this._terminal.element.classList.add("enable-mouse-events"),this._terminal.selectionManager.disable(),this._terminal.log("Binding to mouse events.");break;case 1004:this._terminal.sendFocus=!0;break;case 1005:this._terminal.utfMouse=!0;break;case 1006:this._terminal.sgrMouse=!0;break;case 1015:this._terminal.urxvtMouse=!0;break;case 25:this._terminal.cursorHidden=!1;break;case 1049:case 47:case 1047:this._terminal.buffers.activateAltBuffer(),this._terminal.viewport.syncScrollArea(),this._terminal.showCursor();break;case 2004:this._terminal.bracketedPasteMode=!0}}else switch(e[0]){case 4:this._terminal.insertMode=!0}},e.prototype.resetMode=function(e,t){if(1<e.length)for(var n=0;n<e.length;n++)this.resetMode([e[n]]);else if(t){if("?"===t)switch(e[0]){case 1:this._terminal.applicationCursor=!1;break;case 3:132===this._terminal.cols&&this._terminal.savedCols&&this._terminal.resize(this._terminal.savedCols,this._terminal.rows),delete this._terminal.savedCols;break;case 6:this._terminal.originMode=!1;break;case 7:this._terminal.wraparoundMode=!1;break;case 12:break;case 66:this._terminal.log("Switching back to normal keypad."),this._terminal.applicationKeypad=!1,this._terminal.viewport.syncScrollArea();break;case 9:case 1e3:case 1002:case 1003:this._terminal.x10Mouse=!1,this._terminal.vt200Mouse=!1,this._terminal.normalMouse=!1,this._terminal.mouseEvents=!1,this._terminal.element.classList.remove("enable-mouse-events"),this._terminal.selectionManager.enable();break;case 1004:this._terminal.sendFocus=!1;break;case 1005:this._terminal.utfMouse=!1;break;case 1006:this._terminal.sgrMouse=!1;break;case 1015:this._terminal.urxvtMouse=!1;break;case 25:this._terminal.cursorHidden=!0;break;case 1049:case 47:case 1047:this._terminal.buffers.activateNormalBuffer(),this._terminal.refresh(0,this._terminal.rows-1),this._terminal.viewport.syncScrollArea(),this._terminal.showCursor();break;case 2004:this._terminal.bracketedPasteMode=!1}}else switch(e[0]){case 4:this._terminal.insertMode=!1}},e.prototype.charAttributes=function(e){if(1!==e.length||0!==e[0]){for(var t,n=e.length,i=this._terminal.curAttr>>18,r=this._terminal.curAttr>>9&511,o=511&this._terminal.curAttr,s=0;s<n;s++)30<=(t=e[s])&&t<=37?r=t-30:40<=t&&t<=47?o=t-40:90<=t&&t<=97?r=(t+=8)-90:100<=t&&t<=107?o=(t+=8)-100:0===t?(i=b.DEFAULT_ATTR>>18,r=b.DEFAULT_ATTR>>9&511,o=511&b.DEFAULT_ATTR):1===t?i|=1:3===t?i|=64:4===t?i|=2:5===t?i|=4:7===t?i|=8:8===t?i|=16:2===t?i|=32:22===t?(i&=-2,i&=-33):23===t?i&=-65:24===t?i&=-3:25===t?i&=-5:27===t?i&=-9:28===t?i&=-17:39===t?r=b.DEFAULT_ATTR>>9&511:49===t?o=511&b.DEFAULT_ATTR:38===t?2===e[s+1]?(s+=2,-1===(r=this._terminal.matchColor(255&e[s],255&e[s+1],255&e[s+2]))&&(r=511),s+=2):5===e[s+1]&&(r=t=255&e[s+=2]):48===t?2===e[s+1]?(s+=2,-1===(o=this._terminal.matchColor(255&e[s],255&e[s+1],255&e[s+2]))&&(o=511),s+=2):5===e[s+1]&&(o=t=255&e[s+=2]):100===t?(r=b.DEFAULT_ATTR>>9&511,o=511&b.DEFAULT_ATTR):this._terminal.error("Unknown SGR attribute: %d.",t);this._terminal.curAttr=i<<18|r<<9|o}else this._terminal.curAttr=b.DEFAULT_ATTR},e.prototype.deviceStatus=function(e,t){if(t){if("?"===t)switch(e[0]){case 6:n=this._terminal.buffer.y+1,i=this._terminal.buffer.x+1;this._terminal.emit("data",a.C0.ESC+"[?"+n+";"+i+"R")}}else switch(e[0]){case 5:this._terminal.emit("data",a.C0.ESC+"[0n");break;case 6:var n=this._terminal.buffer.y+1,i=this._terminal.buffer.x+1;this._terminal.emit("data",a.C0.ESC+"["+n+";"+i+"R")}},e.prototype.softReset=function(e,t){"!"===t&&(this._terminal.cursorHidden=!1,this._terminal.insertMode=!1,this._terminal.originMode=!1,this._terminal.wraparoundMode=!0,this._terminal.applicationKeypad=!1,this._terminal.viewport.syncScrollArea(),this._terminal.applicationCursor=!1,this._terminal.buffer.scrollTop=0,this._terminal.buffer.scrollBottom=this._terminal.rows-1,this._terminal.curAttr=b.DEFAULT_ATTR,this._terminal.buffer.x=this._terminal.buffer.y=0,this._terminal.charset=null,this._terminal.glevel=0,this._terminal.charsets=[null])},e.prototype.setCursorStyle=function(e,t){if(" "===t){var n=e[0]<1?1:e[0];switch(n){case 1:case 2:this._terminal.setOption("cursorStyle","block");break;case 3:case 4:this._terminal.setOption("cursorStyle","underline");break;case 5:case 6:this._terminal.setOption("cursorStyle","bar")}var i=n%2==1;this._terminal.setOption("cursorBlink",i)}},e.prototype.setScrollRegion=function(e,t){t||(this._terminal.buffer.scrollTop=(e[0]||1)-1,this._terminal.buffer.scrollBottom=(e[1]&&e[1]<=this._terminal.rows?e[1]:this._terminal.rows)-1,this._terminal.buffer.x=0,this._terminal.buffer.y=0)},e.prototype.saveCursor=function(e){this._terminal.buffer.savedX=this._terminal.buffer.x,this._terminal.buffer.savedY=this._terminal.buffer.y,this._terminal.savedCurAttr=this._terminal.curAttr},e.prototype.restoreCursor=function(e){this._terminal.buffer.x=this._terminal.buffer.savedX||0,this._terminal.buffer.y=this._terminal.buffer.savedY||0,this._terminal.curAttr=this._terminal.savedCurAttr||b.DEFAULT_ATTR},e.prototype.setTitle=function(e){this._terminal.handleTitle(e)},e.prototype.nextLine=function(){this._terminal.buffer.x=0,this.index()},e.prototype.keypadApplicationMode=function(){this._terminal.log("Serial port requested application keypad."),this._terminal.applicationKeypad=!0,this._terminal.viewport&&this._terminal.viewport.syncScrollArea()},e.prototype.keypadNumericMode=function(){this._terminal.log("Switching back to normal keypad."),this._terminal.applicationKeypad=!1,this._terminal.viewport&&this._terminal.viewport.syncScrollArea()},e.prototype.selectDefaultCharset=function(){this._terminal.setgLevel(0),this._terminal.setgCharset(0,l.DEFAULT_CHARSET)},e.prototype.selectCharset=function(e){if(2!==e.length)return this.selectDefaultCharset();"/"!==e[0]&&this._terminal.setgCharset(h[e[0]],l.CHARSETS[e[1]]||l.DEFAULT_CHARSET)},e.prototype.index=function(){this._terminal.index()},e.prototype.tabSet=function(){this._terminal.tabSet()},e.prototype.reverseIndex=function(){this._terminal.reverseIndex()},e.prototype.reset=function(){this._parser.reset(),this._terminal.reset()},e.prototype.setgLevel=function(e){this._terminal.setgLevel(e)},e}(o.Disposable);t.InputHandler=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CHARSETS={},t.DEFAULT_CHARSET=t.CHARSETS.B,t.CHARSETS[0]={"`":"◆",a:"▒",b:"\t",c:"\f",d:"\r",e:"\n",f:"°",g:"±",h:"␤",i:"\v",j:"┘",k:"┐",l:"┌",m:"└",n:"┼",o:"⎺",p:"⎻",q:"─",r:"⎼",s:"⎽",t:"├",u:"┤",v:"┴",w:"┬",x:"│",y:"≤",z:"≥","{":"π","|":"≠","}":"£","~":"·"},t.CHARSETS.A={"#":"£"},t.CHARSETS.B=null,t.CHARSETS[4]={"#":"£","@":"¾","[":"ij","\\":"½","]":"|","{":"¨","|":"f","}":"¼","~":"´"},t.CHARSETS.C=t.CHARSETS[5]={"[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"},t.CHARSETS.R={"#":"£","@":"à","[":"°","\\":"ç","]":"§","{":"é","|":"ù","}":"è","~":"¨"},t.CHARSETS.Q={"@":"à","[":"â","\\":"ç","]":"ê","^":"î","`":"ô","{":"é","|":"ù","}":"è","~":"û"},t.CHARSETS.K={"@":"§","[":"Ä","\\":"Ö","]":"Ü","{":"ä","|":"ö","}":"ü","~":"ß"},t.CHARSETS.Y={"#":"£","@":"§","[":"°","\\":"ç","]":"é","`":"ù","{":"à","|":"ò","}":"è","~":"ì"},t.CHARSETS.E=t.CHARSETS[6]={"@":"Ä","[":"Æ","\\":"Ø","]":"Å","^":"Ü","`":"ä","{":"æ","|":"ø","}":"å","~":"ü"},t.CHARSETS.Z={"#":"£","@":"§","[":"¡","\\":"Ñ","]":"¿","{":"°","|":"ñ","}":"ç"},t.CHARSETS.H=t.CHARSETS[7]={"@":"É","[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"},t.CHARSETS["="]={"#":"ù","@":"à","[":"é","\\":"ç","]":"ê","^":"î",_:"è","`":"ô","{":"ä","|":"ö","}":"ü","~":"û"}},function(e,i,t){"use strict";var r,o=this&&this.__extends||(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)});Object.defineProperty(i,"__esModule",{value:!0});var n=t(5);function s(e,t){for(var n=t-e,i=new Array(n);n--;)i[n]=--t;return i}var a=function(){function e(e){this.table="undefined"==typeof Uint8Array?new Array(e):new Uint8Array(e)}return e.prototype.add=function(e,t,n,i){this.table[t<<8|e]=(0|n)<<4|(void 0===i?t:i)},e.prototype.addMany=function(e,t,n,i){for(var r=0;r<e.length;r++)this.add(e[r],t,n,i)},e}();i.TransitionTable=a;var l=s(32,127),c=s(0,24);c.push(25),c.concat(s(28,32));i.VT500_TRANSITION_TABLE=function(){var e,t=new a(4095),n=s(0,14);for(e in n)for(var i=0;i<160;++i)t.add(i,e,1,0);for(e in t.addMany(l,0,2,0),n)t.addMany([24,26,153,154],e,3,0),t.addMany(s(128,144),e,3,0),t.addMany(s(144,152),e,3,0),t.add(156,e,0,0),t.add(27,e,11,1),t.add(157,e,4,8),t.addMany([152,158,159],e,0,7),t.add(155,e,11,3),t.add(144,e,11,9);return t.addMany(c,0,3,0),t.addMany(c,1,3,1),t.add(127,1,0,1),t.addMany(c,8,0,8),t.addMany(c,3,3,3),t.add(127,3,0,3),t.addMany(c,4,3,4),t.add(127,4,0,4),t.addMany(c,6,3,6),t.addMany(c,5,3,5),t.add(127,5,0,5),t.addMany(c,2,3,2),t.add(127,2,0,2),t.add(93,1,4,8),t.addMany(l,8,5,8),t.add(127,8,5,8),t.addMany([156,27,24,26,7],8,6,0),t.addMany(s(28,32),8,0,8),t.addMany([88,94,95],1,0,7),t.addMany(l,7,0,7),t.addMany(c,7,0,7),t.add(156,7,0,0),t.add(91,1,11,3),t.addMany(s(64,127),3,7,0),t.addMany(s(48,58),3,8,4),t.add(59,3,8,4),t.addMany([60,61,62,63],3,9,4),t.addMany(s(48,58),4,8,4),t.add(59,4,8,4),t.addMany(s(64,127),4,7,0),t.addMany([58,60,61,62,63],4,0,6),t.addMany(s(32,64),6,0,6),t.add(127,6,0,6),t.addMany(s(64,127),6,0,0),t.add(58,3,0,6),t.addMany(s(32,48),3,9,5),t.addMany(s(32,48),5,9,5),t.addMany(s(48,64),5,0,6),t.addMany(s(64,127),5,7,0),t.addMany(s(32,48),4,9,5),t.addMany(s(32,48),1,9,2),t.addMany(s(32,48),2,9,2),t.addMany(s(48,127),2,10,0),t.addMany(s(48,80),1,10,0),t.addMany(s(81,88),1,10,0),t.addMany([89,90,92],1,10,0),t.addMany(s(96,127),1,10,0),t.add(80,1,11,9),t.addMany(c,9,0,9),t.add(127,9,0,9),t.addMany(s(28,32),9,0,9),t.addMany(s(32,48),9,9,12),t.add(58,9,0,11),t.addMany(s(48,58),9,8,10),t.add(59,9,8,10),t.addMany([60,61,62,63],9,9,10),t.addMany(c,11,0,11),t.addMany(s(32,128),11,0,11),t.addMany(s(28,32),11,0,11),t.addMany(c,10,0,10),t.add(127,10,0,10),t.addMany(s(28,32),10,0,10),t.addMany(s(48,58),10,8,10),t.add(59,10,8,10),t.addMany([58,60,61,62,63],10,0,11),t.addMany(s(32,48),10,9,12),t.addMany(c,12,0,12),t.add(127,12,0,12),t.addMany(s(28,32),12,0,12),t.addMany(s(32,48),12,9,12),t.addMany(s(48,64),12,0,11),t.addMany(s(64,127),12,12,13),t.addMany(s(64,127),10,12,13),t.addMany(s(64,127),9,12,13),t.addMany(c,13,13,13),t.addMany(l,13,13,13),t.add(127,13,0,13),t.addMany([27,156],13,14,0),t}();var u=function(){function e(){}return e.prototype.hook=function(e,t,n){},e.prototype.put=function(e,t,n){},e.prototype.unhook=function(){},e}(),h=function(n){function e(e){void 0===e&&(e=i.VT500_TRANSITION_TABLE);var t=n.call(this)||this;return t.TRANSITIONS=e,t.initialState=0,t.currentState=t.initialState,t._osc="",t._params=[0],t._collect="",t._printHandlerFb=function(e,t,n){},t._executeHandlerFb=function(e){},t._csiHandlerFb=function(e,t,n){},t._escHandlerFb=function(e,t){},t._oscHandlerFb=function(e,t){},t._dcsHandlerFb=new u,t._errorHandlerFb=function(e){return e},t._printHandler=t._printHandlerFb,t._executeHandlers=Object.create(null),t._csiHandlers=Object.create(null),t._escHandlers=Object.create(null),t._oscHandlers=Object.create(null),t._dcsHandlers=Object.create(null),t._activeDcsHandler=null,t._errorHandler=t._errorHandlerFb,t}return o(e,n),e.prototype.dispose=function(){this._printHandlerFb=null,this._executeHandlerFb=null,this._csiHandlerFb=null,this._escHandlerFb=null,this._oscHandlerFb=null,this._dcsHandlerFb=null,this._errorHandlerFb=null,this._printHandler=null,this._executeHandlers=null,this._csiHandlers=null,this._escHandlers=null,this._oscHandlers=null,this._dcsHandlers=null,this._activeDcsHandler=null,this._errorHandler=null},e.prototype.setPrintHandler=function(e){this._printHandler=e},e.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},e.prototype.setExecuteHandler=function(e,t){this._executeHandlers[e.charCodeAt(0)]=t},e.prototype.clearExecuteHandler=function(e){this._executeHandlers[e.charCodeAt(0)]&&delete this._executeHandlers[e.charCodeAt(0)]},e.prototype.setExecuteHandlerFallback=function(e){this._executeHandlerFb=e},e.prototype.setCsiHandler=function(e,t){this._csiHandlers[e.charCodeAt(0)]=t},e.prototype.clearCsiHandler=function(e){this._csiHandlers[e.charCodeAt(0)]&&delete this._csiHandlers[e.charCodeAt(0)]},e.prototype.setCsiHandlerFallback=function(e){this._csiHandlerFb=e},e.prototype.setEscHandler=function(e,t){this._escHandlers[e]=t},e.prototype.clearEscHandler=function(e){this._escHandlers[e]&&delete this._escHandlers[e]},e.prototype.setEscHandlerFallback=function(e){this._escHandlerFb=e},e.prototype.setOscHandler=function(e,t){this._oscHandlers[e]=t},e.prototype.clearOscHandler=function(e){this._oscHandlers[e]&&delete this._oscHandlers[e]},e.prototype.setOscHandlerFallback=function(e){this._oscHandlerFb=e},e.prototype.setDcsHandler=function(e,t){this._dcsHandlers[e]=t},e.prototype.clearDcsHandler=function(e){this._dcsHandlers[e]&&delete this._dcsHandlers[e]},e.prototype.setDcsHandlerFallback=function(e){this._dcsHandlerFb=e},e.prototype.setErrorHandler=function(e){this._errorHandler=e},e.prototype.clearErrorHandler=function(){this._errorHandler=this._errorHandlerFb},e.prototype.reset=function(){this.currentState=this.initialState,this._osc="",this._params=[0],this._collect="",this._activeDcsHandler=null},e.prototype.parse=function(e){for(var t=0,n=0,i=!1,r=this.currentState,o=-1,s=-1,a=this._osc,l=this._collect,c=this._params,u=this.TRANSITIONS.table,h=this._activeDcsHandler,d=null,f=e.length,p=0;p<f;++p)if(t=e.charCodeAt(p),0===r&&31<t&&t<128){for(o=~o?o:p;++p<f&&31<e.charCodeAt(p)&&e.charCodeAt(p)<128;);p--}else if(4===r&&47<t&&t<57)c[c.length-1]=10*c[c.length-1]+t-48;else{switch((n=t<160?u[r<<8|t]:16)>>4){case 2:o=~o?o:p;break;case 3:~o&&(this._printHandler(e,o,p),o=-1),(d=this._executeHandlers[t])?d():this._executeHandlerFb(t);break;case 0:~o?(this._printHandler(e,o,p),o=-1):~s&&(h.put(e,s,p),s=-1);break;case 1:if(159<t)switch(r){case 0:o=~o?o:p;break;case 8:a+=String.fromCharCode(t),n|=8;break;case 6:n|=6;break;case 11:n|=11;break;case 13:s=~s?s:p,n|=13;break;default:i=!0}else i=!0;if(i){if(this._errorHandler({position:p,code:t,currentState:r,print:o,dcs:s,osc:a,collect:l,params:c,abort:!1}).abort)return;i=!1}break;case 7:(d=this._csiHandlers[t])?d(c,l):this._csiHandlerFb(l,c,t);break;case 8:59===t?c.push(0):c[c.length-1]=10*c[c.length-1]+t-48;break;case 9:l+=String.fromCharCode(t);break;case 10:(d=this._escHandlers[l+String.fromCharCode(t)])?d(l,t):this._escHandlerFb(l,t);break;case 11:~o&&(this._printHandler(e,o,p),o=-1),c=[0],l=a="",s=-1;break;case 12:(h=this._dcsHandlers[l+String.fromCharCode(t)])||(h=this._dcsHandlerFb),h.hook(l,c,t);break;case 13:s=~s?s:p;break;case 14:h&&(~s&&h.put(e,s,p),h.unhook(),h=null),27===t&&(n|=1),c=[0],l=a="",s=-1;break;case 4:~o&&(this._printHandler(e,o,p),o=-1),a="";break;case 5:a+=e.charAt(p);break;case 6:if(a&&24!==t&&26!==t){var m=a.indexOf(";");if(-1===m)this._oscHandlerFb(-1,a);else{var g=parseInt(a.substring(0,m)),_=a.substring(m+1);(d=this._oscHandlers[g])?d(_):this._oscHandlerFb(g,_)}}27===t&&(n|=1),c=[0],l=a="",s=-1}r=15&n}0===r&&~o?this._printHandler(e,o,e.length):13===r&&~s&&h&&h.put(e,s,e.length),this._osc=a,this._collect=l,this._params=c,this._activeDcsHandler=h,this.currentState=r},e}(n.Disposable);i.EscapeSequenceParser=h},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=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}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var s=n(56),a=n(63),l=n(64),c=n(12),u=n(65),o=n(2),h=n(17),d=n(27),f=n(66),p=function(o){function e(e,t){var n=o.call(this)||this;n._terminal=e,n._isPaused=!1,n._needsFullRefresh=!1;var i=n._terminal.options.allowTransparency;if(n.colorManager=new c.ColorManager(document,i),n._characterJoinerRegistry=new f.CharacterJoinerRegistry(e),t&&n.colorManager.setTheme(t),n._renderLayers=[new s.TextRenderLayer(n._terminal.screenElement,0,n.colorManager.colors,n._characterJoinerRegistry,i),new a.SelectionRenderLayer(n._terminal.screenElement,1,n.colorManager.colors),new u.LinkRenderLayer(n._terminal.screenElement,2,n.colorManager.colors,n._terminal),new l.CursorRenderLayer(n._terminal.screenElement,3,n.colorManager.colors)],n.dimensions={scaledCharWidth:null,scaledCharHeight:null,scaledCellWidth:null,scaledCellHeight:null,scaledCharLeft:null,scaledCharTop:null,scaledCanvasWidth:null,scaledCanvasHeight:null,canvasWidth:null,canvasHeight:null,actualCellWidth:null,actualCellHeight:null},n._devicePixelRatio=window.devicePixelRatio,n._updateDimensions(),n.onOptionsChanged(),n._renderDebouncer=new h.RenderDebouncer(n._terminal,n._renderRows.bind(n)),n._screenDprMonitor=new d.ScreenDprMonitor,n._screenDprMonitor.setListener(function(){return n.onWindowResize(window.devicePixelRatio)}),n.register(n._screenDprMonitor),"IntersectionObserver"in window){var r=new IntersectionObserver(function(e){return n.onIntersectionChange(e[0])},{threshold:0});r.observe(n._terminal.element),n.register({dispose:function(){return r.disconnect()}})}return n}return r(e,o),e.prototype.dispose=function(){o.prototype.dispose.call(this),this._renderLayers.forEach(function(e){return e.dispose()})},e.prototype.onIntersectionChange=function(e){this._isPaused=0===e.intersectionRatio,!this._isPaused&&this._needsFullRefresh&&this._terminal.refresh(0,this._terminal.rows-1)},e.prototype.onWindowResize=function(e){this._devicePixelRatio!==e&&(this._devicePixelRatio=e,this.onResize(this._terminal.cols,this._terminal.rows))},e.prototype.setTheme=function(e){var t=this;return this.colorManager.setTheme(e),this._renderLayers.forEach(function(e){e.onThemeChanged(t._terminal,t.colorManager.colors),e.reset(t._terminal)}),this._isPaused?this._needsFullRefresh=!0:this._terminal.refresh(0,this._terminal.rows-1),this.colorManager.colors},e.prototype.onResize=function(e,t){var n=this;this._updateDimensions(),this._renderLayers.forEach(function(e){return e.resize(n._terminal,n.dimensions)}),this._isPaused?this._needsFullRefresh=!0:this._terminal.refresh(0,this._terminal.rows-1),this._terminal.screenElement.style.width=this.dimensions.canvasWidth+"px",this._terminal.screenElement.style.height=this.dimensions.canvasHeight+"px",this.emit("resize",{width:this.dimensions.canvasWidth,height:this.dimensions.canvasHeight})},e.prototype.onCharSizeChanged=function(){this.onResize(this._terminal.cols,this._terminal.rows)},e.prototype.onBlur=function(){var t=this;this._runOperation(function(e){return e.onBlur(t._terminal)})},e.prototype.onFocus=function(){var t=this;this._runOperation(function(e){return e.onFocus(t._terminal)})},e.prototype.onSelectionChanged=function(t,n,i){var r=this;void 0===i&&(i=!1),this._runOperation(function(e){return e.onSelectionChanged(r._terminal,t,n,i)})},e.prototype.onCursorMove=function(){var t=this;this._runOperation(function(e){return e.onCursorMove(t._terminal)})},e.prototype.onOptionsChanged=function(){var t=this;this.colorManager.allowTransparency=this._terminal.options.allowTransparency,this._runOperation(function(e){return e.onOptionsChanged(t._terminal)})},e.prototype.clear=function(){var t=this;this._runOperation(function(e){return e.reset(t._terminal)})},e.prototype._runOperation=function(t){this._isPaused?this._needsFullRefresh=!0:this._renderLayers.forEach(function(e){return t(e)})},e.prototype.refreshRows=function(e,t){this._isPaused?this._needsFullRefresh=!0:this._renderDebouncer.refresh(e,t)},e.prototype._renderRows=function(t,n){var i=this;this._renderLayers.forEach(function(e){return e.onGridChanged(i._terminal,t,n)}),this._terminal.emit("refresh",{start:t,end:n})},e.prototype._updateDimensions=function(){this._terminal.charMeasure.width&&this._terminal.charMeasure.height&&(this.dimensions.scaledCharWidth=Math.floor(this._terminal.charMeasure.width*window.devicePixelRatio),this.dimensions.scaledCharHeight=Math.ceil(this._terminal.charMeasure.height*window.devicePixelRatio),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._terminal.options.lineHeight),this.dimensions.scaledCharTop=1===this._terminal.options.lineHeight?0:Math.round((this.dimensions.scaledCellHeight-this.dimensions.scaledCharHeight)/2),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._terminal.options.letterSpacing),this.dimensions.scaledCharLeft=Math.floor(this._terminal.options.letterSpacing/2),this.dimensions.scaledCanvasHeight=this._terminal.rows*this.dimensions.scaledCellHeight,this.dimensions.scaledCanvasWidth=this._terminal.cols*this.dimensions.scaledCellWidth,this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._terminal.rows,this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._terminal.cols)},e.prototype.registerCharacterJoiner=function(e){return this._characterJoinerRegistry.registerCharacterJoiner(e)},e.prototype.deregisterCharacterJoiner=function(e){return this._characterJoinerRegistry.deregisterCharacterJoiner(e)},e}(o.EventEmitter);t.Renderer=p},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=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}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var I=n(0),A=n(7),a=n(57),o=function(s){function e(e,t,n,i,r){var o=s.call(this,e,"text",t,r,n)||this;return o._characterOverlapCache={},o._state=new a.GridCache,o._characterJoinerRegistry=i,o}return r(e,s),e.prototype.resize=function(e,t){s.prototype.resize.call(this,e,t);var n=this._getFont(e,!1,!1);this._characterWidth===t.scaledCharWidth&&this._characterFont===n||(this._characterWidth=t.scaledCharWidth,this._characterFont=n,this._characterOverlapCache={}),this._state.clear(),this._state.resize(e.cols,e.rows)},e.prototype.reset=function(e){this._state.clear(),this.clearAll()},e.prototype._forEachCell=function(e,t,n,i,r){for(var o=t;o<=n;o++)for(var s=o+e.buffer.ydisp,a=e.buffer.lines.get(s),l=i?i.getJoinedCharacters(s):[],c=0;c<e.cols;c++){var u=a.get(c),h=u[I.CHAR_DATA_CODE_INDEX],d=u[I.CHAR_DATA_CHAR_INDEX],f=u[I.CHAR_DATA_ATTR_INDEX],p=u[I.CHAR_DATA_WIDTH_INDEX],m=!1,g=c;if(0!==p){if(0<l.length&&c===l[0][0]){m=!0;var _=l.shift();d=e.buffer.translateBufferLineToString(s,!0,_[0],_[1]),p=_[1]-_[0],h=1/0,g=_[1]-1}!m&&this._isOverlapping(u)&&g<a.length-1&&a.get(g+1)[I.CHAR_DATA_CODE_INDEX]===I.NULL_CELL_CODE&&(p=2);var v=f>>18,y=511&f,b=f>>9&511;if(8&v){var C=y;y=b,256===(b=C)&&(b=A.INVERTED_DEFAULT_COLOR),257===y&&(y=A.INVERTED_DEFAULT_COLOR)}r(h,d,p,c,o,b,y,v),c=g}}},e.prototype._drawBackground=function(e,t,n){var c=this,u=this._ctx,h=e.cols,d=0,f=0,p=null;u.save(),this._forEachCell(e,t,n,null,function(e,t,n,i,r,o,s,a){var l=null;s===A.INVERTED_DEFAULT_COLOR?l=c._colors.foreground.css:s<256&&(l=c._colors.ansi[s].css),null===p&&(d=i,f=r),r!==f?(u.fillStyle=p,c.fillCells(d,f,h-d,1),d=i,f=r):p!==l&&(u.fillStyle=p,c.fillCells(d,f,i-d,1),d=i,f=r),p=l}),null!==p&&(u.fillStyle=p,this.fillCells(d,f,h-d,1)),u.restore()},e.prototype._drawForeground=function(l,e,t){var c=this;this._forEachCell(l,e,t,this._characterJoinerRegistry,function(e,t,n,i,r,o,s,a){16&a||(2&a&&(c._ctx.save(),o===A.INVERTED_DEFAULT_COLOR?c._ctx.fillStyle=c._colors.background.css:c._ctx.fillStyle=o<256?c._colors.ansi[o].css:c._colors.foreground.css,c.fillBottomLineAtCells(i,r,n),c._ctx.restore()),c.drawChars(l,t,e,n,i,r,o,s,!!(1&a),!!(32&a),!!(64&a)))})},e.prototype.onGridChanged=function(e,t,n){0!==this._state.cache.length&&(this._charAtlas&&this._charAtlas.beginFrame(),this.clearCells(0,t,e.cols,n-t+1),this._drawBackground(e,t,n),this._drawForeground(e,t,n))},e.prototype.onOptionsChanged=function(e){this.setTransparency(e,e.options.allowTransparency)},e.prototype._isOverlapping=function(e){if(1!==e[I.CHAR_DATA_WIDTH_INDEX])return!1;if(e[I.CHAR_DATA_CODE_INDEX]<256)return!1;var t=e[I.CHAR_DATA_CHAR_INDEX];if(this._characterOverlapCache.hasOwnProperty(t))return this._characterOverlapCache[t];this._ctx.save(),this._ctx.font=this._characterFont;var n=Math.floor(this._ctx.measureText(t).width)>this._characterWidth;return this._ctx.restore(),this._characterOverlapCache[t]=n},e}(n(11).BaseRenderLayer);t.TextRenderLayer=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){this.cache=[]}return e.prototype.resize=function(e,t){for(var n=0;n<e;n++){this.cache.length<=n&&this.cache.push([]);for(var i=this.cache[n].length;i<t;i++)this.cache[n].push(null);this.cache[n].length=t}this.cache.length=e},e.prototype.clear=function(){for(var e=0;e<this.cache.length;e++)for(var t=0;t<this.cache[e].length;t++)this.cache[e][t]=null},e}();t.GridCache=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateConfig=function(e,t,n,i){var r={foreground:i.foreground,background:i.background,cursor:null,cursorAccent:null,selection:null,ansi:i.ansi.slice(0,16)};return{type:n.options.experimentalCharAtlas,devicePixelRatio:window.devicePixelRatio,scaledCharWidth:e,scaledCharHeight:t,fontFamily:n.options.fontFamily,fontSize:n.options.fontSize,fontWeight:n.options.fontWeight,fontWeightBold:n.options.fontWeightBold,allowTransparency:n.options.allowTransparency,colors:r}},t.configEquals=function(e,t){for(var n=0;n<e.colors.ansi.length;n++)if(e.colors.ansi[n].rgba!==t.colors.ansi[n].rgba)return!1;return e.type===t.type&&e.devicePixelRatio===t.devicePixelRatio&&e.fontFamily===t.fontFamily&&e.fontSize===t.fontSize&&e.fontWeight===t.fontWeight&&e.fontWeightBold===t.fontWeightBold&&e.allowTransparency===t.allowTransparency&&e.scaledCharWidth===t.scaledCharWidth&&e.scaledCharHeight===t.scaledCharHeight&&e.colors.foreground===t.colors.foreground&&e.colors.background===t.colors.background}},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=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}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var u=n(7),o=n(16),s=n(12),h=n(25),a=n(60),l=n(8),c={css:"rgba(0, 0, 0, 0)",rgba:0};var d=function(o){function e(e,t){var n=o.call(this)||this;n._config=t,n._drawToCacheCount=0,n._glyphsWaitingOnBitmap=[],n._bitmapCommitTimeout=null,n._bitmap=null,n._cacheCanvas=e.createElement("canvas"),n._cacheCanvas.width=1024,n._cacheCanvas.height=1024,n._cacheCtx=n._cacheCanvas.getContext("2d",{alpha:!0});var i=e.createElement("canvas");i.width=n._config.scaledCharWidth,i.height=n._config.scaledCharHeight,n._tmpCtx=i.getContext("2d",{alpha:n._config.allowTransparency}),n._width=Math.floor(1024/n._config.scaledCharWidth),n._height=Math.floor(1024/n._config.scaledCharHeight);var r=n._width*n._height;return n._cacheMap=new a.default(r),n._cacheMap.prealloc(r),n}return r(e,o),e.prototype.dispose=function(){null!==this._bitmapCommitTimeout&&(window.clearTimeout(this._bitmapCommitTimeout),this._bitmapCommitTimeout=null)},e.prototype.beginFrame=function(){this._drawToCacheCount=0},e.prototype.draw=function(e,t,n,i){if(32===t.code)return!0;var r,o=(r=t).code<<21|r.bg<<12|r.fg<<3|(r.bold?0:4)+(r.dim?0:2)+(r.italic?0:1),s=this._cacheMap.get(o);if(null!=s)return this._drawFromCache(e,s,n,i),!0;if(this._canCache(t)&&this._drawToCacheCount<100){var a=void 0;a=this._cacheMap.size<this._cacheMap.capacity?this._cacheMap.size:this._cacheMap.peek().index;var l=this._drawToCache(t,a);return this._cacheMap.set(o,l),this._drawFromCache(e,l,n,i),!0}return!1},e.prototype._canCache=function(e){return e.code<256},e.prototype._toCoordinateX=function(e){return e%this._width*this._config.scaledCharWidth},e.prototype._toCoordinateY=function(e){return Math.floor(e/this._width)*this._config.scaledCharHeight},e.prototype._drawFromCache=function(e,t,n,i){if(!t.isEmpty){var r=this._toCoordinateX(t.index),o=this._toCoordinateY(t.index);e.drawImage(t.inBitmap?this._bitmap:this._cacheCanvas,r,o,this._config.scaledCharWidth,this._config.scaledCharHeight,n,i,this._config.scaledCharWidth,this._config.scaledCharHeight)}},e.prototype._getColorFromAnsiIndex=function(e){return e<this._config.colors.ansi.length?this._config.colors.ansi[e]:s.DEFAULT_ANSI_COLORS[e]},e.prototype._getBackgroundColor=function(e){return this._config.allowTransparency?c:e.bg===u.INVERTED_DEFAULT_COLOR?this._config.colors.foreground:e.bg<256?this._getColorFromAnsiIndex(e.bg):this._config.colors.background},e.prototype._getForegroundColor=function(e){return e.fg===u.INVERTED_DEFAULT_COLOR?this._config.colors.background:e.fg<256?this._getColorFromAnsiIndex(e.fg):this._config.colors.foreground},e.prototype._drawToCache=function(e,t){this._drawToCacheCount++,this._tmpCtx.save();var n=this._getBackgroundColor(e);this._tmpCtx.globalCompositeOperation="copy",this._tmpCtx.fillStyle=n.css,this._tmpCtx.fillRect(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),this._tmpCtx.globalCompositeOperation="source-over";var i=e.bold?this._config.fontWeightBold:this._config.fontWeight,r=e.italic?"italic":"";this._tmpCtx.font=r+" "+i+" "+this._config.fontSize*this._config.devicePixelRatio+"px "+this._config.fontFamily,this._tmpCtx.textBaseline="top",this._tmpCtx.fillStyle=this._getForegroundColor(e).css,e.dim&&(this._tmpCtx.globalAlpha=u.DIM_OPACITY),this._tmpCtx.fillText(e.chars,0,0),this._tmpCtx.restore();var o=this._tmpCtx.getImageData(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),s=!1;this._config.allowTransparency||(s=h.clearColor(o,n));var a=this._toCoordinateX(t),l=this._toCoordinateY(t);this._cacheCtx.putImageData(o,a,l);var c={index:t,isEmpty:s,inBitmap:!1};return this._addGlyphToBitmap(c),c},e.prototype._addGlyphToBitmap=function(e){var t=this;"createImageBitmap"in window&&!l.isFirefox&&!l.isSafari&&(this._glyphsWaitingOnBitmap.push(e),null===this._bitmapCommitTimeout&&(this._bitmapCommitTimeout=window.setTimeout(function(){return t._generateBitmap()},100)))},e.prototype._generateBitmap=function(){var n=this,i=this._glyphsWaitingOnBitmap;this._glyphsWaitingOnBitmap=[],window.createImageBitmap(this._cacheCanvas).then(function(e){n._bitmap=e;for(var t=0;t<i.length;t++){i[t].inBitmap=!0}}),this._bitmapCommitTimeout=null},e}(o.default);t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){this.capacity=e,this._map={},this._head=null,this._tail=null,this._nodePool=[],this.size=0}return e.prototype._unlinkNode=function(e){var t=e.prev,n=e.next;e===this._head&&(this._head=n),e===this._tail&&(this._tail=t),null!==t&&(t.next=n),null!==n&&(n.prev=t)},e.prototype._appendNode=function(e){var t=this._tail;null!==t&&(t.next=e),e.prev=t,e.next=null,this._tail=e,null===this._head&&(this._head=e)},e.prototype.prealloc=function(e){for(var t=this._nodePool,n=0;n<e;n++)t.push({prev:null,next:null,key:null,value:null})},e.prototype.get=function(e){var t=this._map[e];return void 0!==t?(this._unlinkNode(t),this._appendNode(t),t.value):null},e.prototype.peekValue=function(e){var t=this._map[e];return void 0!==t?t.value:null},e.prototype.peek=function(){var e=this._head;return null===e?null:e.value},e.prototype.set=function(e,t){var n=this._map[e];if(void 0!==n)n=this._map[e],this._unlinkNode(n),n.value=t;else if(this.size>=this.capacity)n=this._head,this._unlinkNode(n),delete this._map[n.key],n.key=e,n.value=t,this._map[e]=n;else{var i=this._nodePool;0<i.length?((n=i.pop()).key=e,n.value=t):n={prev:null,next:null,key:e,value:t},this._map[e]=n,this.size++}this._appendNode(n)},e}();t.default=i},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=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}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=function(n){function e(e,t){return n.call(this)||this}return r(e,n),e.prototype.draw=function(e,t,n,i){return!1},e}(n(16).default);t.default=o},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=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}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(7),l=n(26),o=n(25),s=function(n){function e(e,t){var i=n.call(this)||this;return i._document=e,i._config=t,i._canvasFactory=function(e,t){var n=i._document.createElement("canvas");return n.width=e,n.height=t,n},i}return r(e,n),e.prototype._doWarmUp=function(){var t=this,e=o.generateStaticCharAtlasTexture(window,this._canvasFactory,this._config);e instanceof HTMLCanvasElement?this._texture=e:e.then(function(e){t._texture=e})},e.prototype._isCached=function(e,t){var n=e.code<256,i=e.fg<16,r=256<=e.fg,o=256<=e.bg;return n&&(i||r)&&o&&!e.italic},e.prototype.draw=function(e,t,n,i){if(null===this._texture||void 0===this._texture)return!1;var r=0;if(t.fg<256?r=2+t.fg+(t.bold?16:0):t.bold&&(r=1),!this._isCached(t,r))return!1;e.save();var o=this._config.scaledCharWidth+l.CHAR_ATLAS_CELL_SPACING,s=this._config.scaledCharHeight+l.CHAR_ATLAS_CELL_SPACING;return t.dim&&(e.globalAlpha=a.DIM_OPACITY),e.drawImage(this._texture,t.code*o,r*s,o,this._config.scaledCharHeight,n,i,o,this._config.scaledCharHeight),e.restore(),!0},e}(n(16).default);t.default=s},function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=function(e,t){return(i=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}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var r=function(r){function e(e,t,n){var i=r.call(this,e,"selection",t,!0,n)||this;return i._clearState(),i}return o(e,r),e.prototype._clearState=function(){this._state={start:null,end:null,columnSelectMode:null,ydisp:null}},e.prototype.resize=function(e,t){r.prototype.resize.call(this,e,t),this._clearState()},e.prototype.reset=function(e){this._state.start&&this._state.end&&(this._clearState(),this.clearAll())},e.prototype.onSelectionChanged=function(e,t,n,i){if(this._didStateChange(t,n,i,e.buffer.ydisp)&&(this.clearAll(),t&&n)){var r=t[1]-e.buffer.ydisp,o=n[1]-e.buffer.ydisp,s=Math.max(r,0),a=Math.min(o,e.rows-1);if(!(s>=e.rows||a<0)){if(this._ctx.fillStyle=this._colors.selection.css,i){var l=t[0],c=n[0]-l,u=a-s+1;this.fillCells(l,s,c,u)}else{l=r===s?t[0]:0;var h=s===a?n[0]:e.cols;this.fillCells(l,s,h-l,1);var d=Math.max(a-s-1,0);if(this.fillCells(0,s+1,e.cols,d),s!==a){var f=o===a?n[0]:e.cols;this.fillCells(0,a,f,1)}}this._state.start=[t[0],t[1]],this._state.end=[n[0],n[1]],this._state.columnSelectMode=i,this._state.ydisp=e.buffer.ydisp}}},e.prototype._didStateChange=function(e,t,n,i){return!this._areCoordinatesEqual(e,this._state.start)||!this._areCoordinatesEqual(t,this._state.end)||n!==this._state.columnSelectMode||i!==this._state.ydisp},e.prototype._areCoordinatesEqual=function(e,t){return!(!e||!t)&&(e[0]===t[0]&&e[1]===t[1])},e}(n(11).BaseRenderLayer);t.SelectionRenderLayer=r},function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=function(e,t){return(i=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}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var s=n(0),r=n(11),a=function(r){function e(e,t,n){var i=r.call(this,e,"cursor",t,!0,n)||this;return i._state={x:null,y:null,isFocused:null,style:null,width:null},i._cursorRenderers={bar:i._renderBarCursor.bind(i),block:i._renderBlockCursor.bind(i),underline:i._renderUnderlineCursor.bind(i)},i}return o(e,r),e.prototype.resize=function(e,t){r.prototype.resize.call(this,e,t),this._state={x:null,y:null,isFocused:null,style:null,width:null}},e.prototype.reset=function(e){this._clearCursor(),this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=null,this.onOptionsChanged(e))},e.prototype.onBlur=function(e){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.pause(),e.refresh(e.buffer.y,e.buffer.y)},e.prototype.onFocus=function(e){this._cursorBlinkStateManager?this._cursorBlinkStateManager.resume(e):e.refresh(e.buffer.y,e.buffer.y)},e.prototype.onOptionsChanged=function(e){var t=this;e.options.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new l(e,function(){t._render(e,!0)})):(this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=null),e.refresh(e.buffer.y,e.buffer.y))},e.prototype.onCursorMove=function(e){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.restartBlinkAnimation(e)},e.prototype.onGridChanged=function(e,t,n){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(e,!1):this._cursorBlinkStateManager.restartBlinkAnimation(e)},e.prototype._render=function(e,t){if(e.cursorState&&!e.cursorHidden){var n=e.buffer.ybase+e.buffer.y,i=n-e.buffer.ydisp;if(i<0||i>=e.rows)this._clearCursor();else{var r=e.buffer.lines.get(n).get(e.buffer.x);if(r){if(!e.isFocused)return this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._renderBlurCursor(e,e.buffer.x,i,r),this._ctx.restore(),this._state.x=e.buffer.x,this._state.y=i,this._state.isFocused=!1,this._state.style=e.options.cursorStyle,void(this._state.width=r[s.CHAR_DATA_WIDTH_INDEX]);if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===e.buffer.x&&this._state.y===i&&this._state.isFocused===e.isFocused&&this._state.style===e.options.cursorStyle&&this._state.width===r[s.CHAR_DATA_WIDTH_INDEX])return;this._clearCursor()}this._ctx.save(),this._cursorRenderers[e.options.cursorStyle||"block"](e,e.buffer.x,i,r),this._ctx.restore(),this._state.x=e.buffer.x,this._state.y=i,this._state.isFocused=!1,this._state.style=e.options.cursorStyle,this._state.width=r[s.CHAR_DATA_WIDTH_INDEX]}else this._clearCursor()}}}else this._clearCursor()},e.prototype._clearCursor=function(){this._state&&(this.clearCells(this._state.x,this._state.y,this._state.width,1),this._state={x:null,y:null,isFocused:null,style:null,width:null})},e.prototype._renderBarCursor=function(e,t,n,i){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this.fillLeftLineAtCell(t,n),this._ctx.restore()},e.prototype._renderBlockCursor=function(e,t,n,i){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this.fillCells(t,n,i[s.CHAR_DATA_WIDTH_INDEX],1),this._ctx.fillStyle=this._colors.cursorAccent.css,this.fillCharTrueColor(e,i,t,n),this._ctx.restore()},e.prototype._renderUnderlineCursor=function(e,t,n,i){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this.fillBottomLineAtCells(t,n),this._ctx.restore()},e.prototype._renderBlurCursor=function(e,t,n,i){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this.strokeRectAtCell(t,n,i[s.CHAR_DATA_WIDTH_INDEX],1),this._ctx.restore()},e}(r.BaseRenderLayer);t.CursorRenderLayer=a;var l=function(){function e(e,t){this._renderCallback=t,this.isCursorVisible=!0,e.isFocused&&this._restartInterval()}return Object.defineProperty(e.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=null),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=null),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=null)},e.prototype.restartBlinkAnimation=function(e){var t=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){t._renderCallback(),t._animationFrame=null})))},e.prototype._restartInterval=function(e){var t=this;void 0===e&&(e=600),this._blinkInterval&&window.clearInterval(this._blinkInterval),this._blinkStartTimeout=setTimeout(function(){if(t._animationTimeRestarted){var e=600-(Date.now()-t._animationTimeRestarted);if(t._animationTimeRestarted=null,0<e)return void t._restartInterval(e)}t.isCursorVisible=!1,t._animationFrame=window.requestAnimationFrame(function(){t._renderCallback(),t._animationFrame=null}),t._blinkInterval=setInterval(function(){if(t._animationTimeRestarted){var e=600-(Date.now()-t._animationTimeRestarted);return t._animationTimeRestarted=null,void t._restartInterval(e)}t.isCursorVisible=!t.isCursorVisible,t._animationFrame=window.requestAnimationFrame(function(){t._renderCallback(),t._animationFrame=null})},600)},e)},e.prototype.pause=function(){this.isCursorVisible=!0,this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=null),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=null),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=null)},e.prototype.resume=function(e){this._animationTimeRestarted=null,this._restartInterval(),this.restartBlinkAnimation(e)},e}()},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=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}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(11),s=n(7),a=function(o){function e(e,t,n,i){var r=o.call(this,e,"link",t,!0,n)||this;return r._state=null,i.linkifier.on("linkhover",function(e){return r._onLinkHover(e)}),i.linkifier.on("linkleave",function(e){return r._onLinkLeave(e)}),r}return r(e,o),e.prototype.resize=function(e,t){o.prototype.resize.call(this,e,t),this._state=null},e.prototype.reset=function(e){this._clearCurrentLink()},e.prototype._clearCurrentLink=function(){if(this._state){this.clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);var e=this._state.y2-this._state.y1-1;0<e&&this.clearCells(0,this._state.y1+1,this._state.cols,e),this.clearCells(0,this._state.y2,this._state.x2,1),this._state=null}},e.prototype._onLinkHover=function(e){if(e.fg===s.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:e.fg<256?this._ctx.fillStyle=this._colors.ansi[e.fg].css:this._ctx.fillStyle=this._colors.foreground.css,e.y1===e.y2)this.fillBottomLineAtCells(e.x1,e.y1,e.x2-e.x1);else{this.fillBottomLineAtCells(e.x1,e.y1,e.cols-e.x1);for(var t=e.y1+1;t<e.y2;t++)this.fillBottomLineAtCells(0,t,e.cols);this.fillBottomLineAtCells(0,e.y2,e.x2)}this._state=e},e.prototype._onLinkLeave=function(e){this._clearCurrentLink()},e}(o.BaseRenderLayer);t.LinkRenderLayer=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var m=n(0),i=function(){function u(e){this._terminal=e,this._characterJoiners=[],this._nextCharacterJoinerId=0}return u.prototype.registerCharacterJoiner=function(e){var t={id:this._nextCharacterJoinerId++,handler:e};return this._characterJoiners.push(t),t.id},u.prototype.deregisterCharacterJoiner=function(e){for(var t=0;t<this._characterJoiners.length;t++)if(this._characterJoiners[t].id===e)return this._characterJoiners.splice(t,1),!0;return!1},u.prototype.getJoinedCharacters=function(e){if(0===this._characterJoiners.length)return[];var t=this._terminal.buffer.lines.get(e);if(0===t.length)return[];for(var n=[],i=this._terminal.buffer.translateBufferLineToString(e,!0),r=0,o=0,s=0,a=t.get(0)[m.CHAR_DATA_ATTR_INDEX]>>9,l=0;l<this._terminal.cols;l++){var c=t.get(l),u=c[m.CHAR_DATA_CHAR_INDEX],h=c[m.CHAR_DATA_WIDTH_INDEX],d=c[m.CHAR_DATA_ATTR_INDEX]>>9;if(0!==h){if(d!==a){if(1<l-r)for(var f=this._getJoinedRanges(i,s,o,t,r),p=0;p<f.length;p++)n.push(f[p]);r=l,s=o,a=d}o+=u.length}}if(1<this._terminal.cols-r)for(f=this._getJoinedRanges(i,s,o,t,r),p=0;p<f.length;p++)n.push(f[p]);return n},u.prototype._getJoinedRanges=function(e,t,n,i,r){for(var o=e.substring(t,n),s=this._characterJoiners[0].handler(o),a=1;a<this._characterJoiners.length;a++)for(var l=this._characterJoiners[a].handler(o),c=0;c<l.length;c++)u._mergeRanges(s,l[c]);return this._stringRangesToCellRanges(s,i,r),s},u.prototype._stringRangesToCellRanges=function(e,t,n){var i=0,r=!1,o=0,s=e[i];if(s){for(var a=n;a<this._terminal.cols;a++){var l=t.get(a),c=l[m.CHAR_DATA_WIDTH_INDEX],u=l[m.CHAR_DATA_CHAR_INDEX].length;if(0!==c){if(!r&&s[0]<=o&&(s[0]=a,r=!0),s[1]<=o){if(s[1]=a,!(s=e[++i]))break;r=s[0]<=o&&(s[0]=a,!0)}o+=u}}s&&(s[1]=this._terminal.cols)}},u._mergeRanges=function(e,t){for(var n=!1,i=0;i<e.length;i++){var r=e[i];if(n){if(t[1]<=r[0])return e[i-1][1]=t[1],e;if(t[1]<=r[1])return e[i-1][1]=Math.max(t[1],r[1]),e.splice(i,1),n=!1,e;e.splice(i,1),i--}else{if(t[1]<=r[0])return e.splice(i,0,t),e;if(t[1]<=r[1])return r[0]=Math.min(t[0],r[0]),e;t[0]<r[1]&&(r[0]=Math.min(t[0],r[0]),n=!0)}}return n?e[e.length-1][1]=t[1]:e.push(t),e},u}();t.CharacterJoinerRegistry=i},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=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}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var h=n(28),o=n(2),f=n(0),d=n(23),s=function(n){function a(e){var t=n.call(this)||this;return t._terminal=e,t._linkMatchers=[],t._nextLinkMatcherId=0,t._rowsToLinkify={start:null,end:null},t}return r(a,n),a.prototype.attachToDom=function(e){this._mouseZoneManager=e},a.prototype.linkifyRows=function(e,t){var n=this;this._mouseZoneManager&&(null===this._rowsToLinkify.start?(this._rowsToLinkify.start=e,this._rowsToLinkify.end=t):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,e),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,t)),this._mouseZoneManager.clearAll(e,t),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return n._linkifyRows()},a.TIME_BEFORE_LINKIFY))},a.prototype._linkifyRows=function(){this._rowsTimeoutId=null;var e=this._terminal.buffer,t=e.ydisp+this._rowsToLinkify.start;if(!(t>=e.lines.length)){for(var n=e.ydisp+Math.min(this._rowsToLinkify.end,this._terminal.rows)+1,i=Math.ceil(a.OVERSCAN_CHAR_LIMIT/this._terminal.cols),r=this._terminal.buffer.iterator(!1,t,n,i,i);r.hasNext();)for(var o=r.next(),s=0;s<this._linkMatchers.length;s++)this._doLinkifyRow(o.range.first,o.content,this._linkMatchers[s]);this._rowsToLinkify.start=null,this._rowsToLinkify.end=null}},a.prototype.registerLinkMatcher=function(e,t,n){if(void 0===n&&(n={}),!t)throw new Error("handler must be defined");var i={id:this._nextLinkMatcherId++,regex:e,handler:t,matchIndex:n.matchIndex,validationCallback:n.validationCallback,hoverTooltipCallback:n.tooltipCallback,hoverLeaveCallback:n.leaveCallback,willLinkActivate:n.willLinkActivate,priority:n.priority||0};return this._addLinkMatcherToList(i),i.id},a.prototype._addLinkMatcherToList=function(e){if(0!==this._linkMatchers.length){for(var t=this._linkMatchers.length-1;0<=t;t--)if(e.priority<=this._linkMatchers[t].priority)return void this._linkMatchers.splice(t+1,0,e);this._linkMatchers.splice(0,0,e)}else this._linkMatchers.push(e)},a.prototype.deregisterLinkMatcher=function(e){for(var t=0;t<this._linkMatchers.length;t++)if(this._linkMatchers[t].id===e)return this._linkMatchers.splice(t,1),!0;return!1},a.prototype._doLinkifyRow=function(o,s,a){for(var l,c=this,u=new RegExp(a.regex.source,a.regex.flags+"g"),h=-1,e=function(){var t=l["number"!=typeof a.matchIndex?0:a.matchIndex];if(!t){if(d._terminal.debug)throw console.log({match:l,matcher:a}),new Error("match found without corresponding matchIndex");return"break"}h=s.indexOf(t,h+1),u.lastIndex=h+t.length;var n,i=d._terminal.buffer.stringIndexToBufferIndex(o,h),e=d._terminal.buffer.lines.get(i[0]).get(i[1]);if(e){var r=e[f.CHAR_DATA_ATTR_INDEX];n=r>>9&511}a.validationCallback?a.validationCallback(t,function(e){c._rowsTimeoutId||e&&c._addLink(i[1],i[0]-c._terminal.buffer.ydisp,t,a,n)}):d._addLink(i[1],i[0]-d._terminal.buffer.ydisp,t,a,n)},d=this;null!==(l=u.exec(s));){if("break"===e())break}},a.prototype._addLink=function(e,t,n,i,r){var o=this,s=d.getStringCellWidth(n),a=e%this._terminal.cols,l=t+Math.floor(e/this._terminal.cols),c=(a+s)%this._terminal.cols,u=l+Math.floor((a+s)/this._terminal.cols);0===c&&(c=this._terminal.cols,u--),this._mouseZoneManager.add(new h.MouseZone(a+1,l+1,c+1,u+1,function(e){if(i.handler)return i.handler(e,n);window.open(n,"_blank")},function(e){o.emit("linkhover",o._createLinkHoverEvent(a,l,c,u,r)),o._terminal.element.classList.add("xterm-cursor-pointer")},function(e){o.emit("linktooltip",o._createLinkHoverEvent(a,l,c,u,r)),i.hoverTooltipCallback&&i.hoverTooltipCallback(e,n)},function(){o.emit("linkleave",o._createLinkHoverEvent(a,l,c,u,r)),o._terminal.element.classList.remove("xterm-cursor-pointer"),i.hoverLeaveCallback&&i.hoverLeaveCallback()},function(e){return!i.willLinkActivate||i.willLinkActivate(e,n)}))},a.prototype._createLinkHoverEvent=function(e,t,n,i,r){return{x1:e,y1:t,x2:n,y2:i,cols:this._terminal.cols,fg:r}},a.TIME_BEFORE_LINKIFY=200,a.OVERSCAN_CHAR_LIMIT=2e3,a}(o.EventEmitter);t.Linkifier=s},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=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}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(29),a=n(8),s=n(2),l=n(69),A=n(0),c=n(70),u=String.fromCharCode(160),h=new RegExp(u,"g"),d=function(i){function e(e,t){var n=i.call(this)||this;return n._terminal=e,n._charMeasure=t,n._enabled=!0,n._initListeners(),n.enable(),n._model=new l.SelectionModel(e),n._activeSelectionMode=0,n}return r(e,i),e.prototype.dispose=function(){i.prototype.dispose.call(this),this._removeMouseDownListeners()},Object.defineProperty(e.prototype,"_buffer",{get:function(){return this._terminal.buffers.active},enumerable:!0,configurable:!0}),e.prototype._initListeners=function(){var t=this;this._mouseMoveListener=function(e){return t._onMouseMove(e)},this._mouseUpListener=function(e){return t._onMouseUp(e)},this._trimListener=function(e){return t._onTrim(e)},this.initBuffersListeners()},e.prototype.initBuffersListeners=function(){var t=this;this._terminal.buffer.lines.on("trim",this._trimListener),this._terminal.buffers.on("activate",function(e){return t._onBufferActivate(e)})},e.prototype.disable=function(){this.clearSelection(),this._enabled=!1},e.prototype.enable=function(){this._enabled=!0},Object.defineProperty(e.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasSelection",{get:function(){var e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd;return!(!e||!t)&&(e[0]!==t[0]||e[1]!==t[1])},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectionText",{get:function(){var e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd;if(!e||!t)return"";var n=[];if(3===this._activeSelectionMode){if(e[0]===t[0])return"";for(var i=e[1];i<=t[1];i++){var r=this._buffer.translateBufferLineToString(i,!0,e[0],t[0]);n.push(r)}}else{var o=e[1]===t[1]?t[0]:null;n.push(this._buffer.translateBufferLineToString(e[1],!0,e[0],o));for(i=e[1]+1;i<=t[1]-1;i++){var s=this._buffer.lines.get(i);r=this._buffer.translateBufferLineToString(i,!0);s.isWrapped?n[n.length-1]+=r:n.push(r)}if(e[1]!==t[1]){s=this._buffer.lines.get(t[1]),r=this._buffer.translateBufferLineToString(t[1],!0,0,t[0]);s.isWrapped?n[n.length-1]+=r:n.push(r)}}return n.map(function(e){return e.replace(h," ")}).join(a.isMSWindows?"\r\n":"\n")},enumerable:!0,configurable:!0}),e.prototype.clearSelection=function(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh()},e.prototype.refresh=function(e){var t=this;(this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame(function(){return t._refresh()})),a.isLinux&&e)&&(this.selectionText.length&&this.emit("newselection",this.selectionText))},e.prototype._refresh=function(){this._refreshAnimationFrame=null,this.emit("refresh",{start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:3===this._activeSelectionMode})},e.prototype.isClickInSelection=function(e){var t=this._getMouseBufferCoords(e),n=this._model.finalSelectionStart,i=this._model.finalSelectionEnd;return!(!n||!i)&&(t[1]>n[1]&&t[1]<i[1]||n[1]===i[1]&&t[1]===n[1]&&t[0]>n[0]&&t[0]<i[0]||n[1]<i[1]&&t[1]===i[1]&&t[0]<i[0])},e.prototype.selectWordAtCursor=function(e){var t=this._getMouseBufferCoords(e);t&&(this._selectWordAt(t,!1),this._model.selectionEnd=null,this.refresh(!0))},e.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh(),this._terminal.emit("selection")},e.prototype.selectLines=function(e,t){this._model.clearSelection(),e=Math.max(e,0),t=Math.min(t,this._terminal.buffer.lines.length-1),this._model.selectionStart=[0,e],this._model.selectionEnd=[this._terminal.cols,t],this.refresh(),this._terminal.emit("selection")},e.prototype._onTrim=function(e){this._model.onTrim(e)&&this.refresh()},e.prototype._getMouseBufferCoords=function(e){var t=this._terminal.mouseHelper.getCoords(e,this._terminal.screenElement,this._charMeasure,this._terminal.options.lineHeight,this._terminal.cols,this._terminal.rows,!0);return t?(t[0]--,t[1]--,t[1]+=this._terminal.buffer.ydisp,t):null},e.prototype._getMouseEventScrollAmount=function(e){var t=o.MouseHelper.getCoordsRelativeToElement(e,this._terminal.screenElement)[1],n=this._terminal.rows*Math.ceil(this._charMeasure.height*this._terminal.options.lineHeight);return 0<=t&&t<=n?0:(n<t&&(t-=n),t=Math.min(Math.max(t,-50),50),(t/=50)/Math.abs(t)+Math.round(14*t))},e.prototype.shouldForceSelection=function(e){return a.isMac?e.altKey&&this._terminal.options.macOptionClickForcesSelection:e.shiftKey},e.prototype.onMouseDown=function(e){if(this._mouseDownTimeStamp=e.timeStamp,(2!==e.button||!this.hasSelection)&&0===e.button){if(!this._enabled){if(!this.shouldForceSelection(e))return;e.stopPropagation()}e.preventDefault(),this._dragScrollAmount=0,this._enabled&&e.shiftKey?this._onIncrementalClick(e):1===e.detail?this._onSingleClick(e):2===e.detail?this._onDoubleClick(e):3===e.detail&&this._onTripleClick(e),this._addMouseDownListeners(),this.refresh(!0)}},e.prototype._addMouseDownListeners=function(){var e=this;this._terminal.element.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._terminal.element.ownerDocument.addEventListener("mouseup",this._mouseUpListener),this._dragScrollIntervalTimer=setInterval(function(){return e._dragScroll()},50)},e.prototype._removeMouseDownListeners=function(){this._terminal.element.ownerDocument&&(this._terminal.element.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._terminal.element.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=null},e.prototype._onIncrementalClick=function(e){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(e))},e.prototype._onSingleClick=function(e){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(e)?3:0,this._model.selectionStart=this._getMouseBufferCoords(e),this._model.selectionStart){this._model.selectionEnd=null;var t=this._buffer.lines.get(this._model.selectionStart[1]);if(t)if(!(t.length>=this._model.selectionStart[0]))0===t.get(this._model.selectionStart[0])[A.CHAR_DATA_WIDTH_INDEX]&&this._model.selectionStart[0]++}},e.prototype._onDoubleClick=function(e){var t=this._getMouseBufferCoords(e);t&&(this._activeSelectionMode=1,this._selectWordAt(t,!0))},e.prototype._onTripleClick=function(e){var t=this._getMouseBufferCoords(e);t&&(this._activeSelectionMode=2,this._selectLineAt(t[1]))},e.prototype.shouldColumnSelect=function(e){return e.altKey&&!(a.isMac&&this._terminal.options.macOptionClickForcesSelection)},e.prototype._onMouseMove=function(e){e.stopImmediatePropagation();var t=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(e),this._model.selectionEnd){if(2===this._activeSelectionMode?this._model.selectionEnd[1]<this._model.selectionStart[1]?this._model.selectionEnd[0]=0:this._model.selectionEnd[0]=this._terminal.cols:1===this._activeSelectionMode&&this._selectToWordAt(this._model.selectionEnd),this._dragScrollAmount=this._getMouseEventScrollAmount(e),3!==this._activeSelectionMode&&(0<this._dragScrollAmount?this._model.selectionEnd[0]=this._terminal.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0)),this._model.selectionEnd[1]<this._buffer.lines.length){var n=this._buffer.lines.get(this._model.selectionEnd[1]).get(this._model.selectionEnd[0]);n&&0===n[A.CHAR_DATA_WIDTH_INDEX]&&this._model.selectionEnd[0]++}t&&t[0]===this._model.selectionEnd[0]&&t[1]===this._model.selectionEnd[1]||this.refresh(!0)}else this.refresh(!0)},e.prototype._dragScroll=function(){this._dragScrollAmount&&(this._terminal.scrollLines(this._dragScrollAmount,!1),0<this._dragScrollAmount?(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=this._terminal.cols),this._model.selectionEnd[1]=Math.min(this._terminal.buffer.ydisp+this._terminal.rows,this._terminal.buffer.lines.length-1)):(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=this._terminal.buffer.ydisp),this.refresh())},e.prototype._onMouseUp=function(e){var t=e.timeStamp-this._mouseDownTimeStamp;this._removeMouseDownListeners(),this.selectionText.length<=1&&t<500?new c.AltClickHandler(e,this._terminal).move():this.hasSelection&&this._terminal.emit("selection")},e.prototype._onBufferActivate=function(e){this.clearSelection(),e.inactiveBuffer.lines.off("trim",this._trimListener),e.activeBuffer.lines.on("trim",this._trimListener)},e.prototype._convertViewportColToCharacterIndex=function(e,t){for(var n=t[0],i=0;t[0]>=i;i++){var r=e.get(i);0===r[A.CHAR_DATA_WIDTH_INDEX]?n--:1<r[A.CHAR_DATA_CHAR_INDEX].length&&t[0]!==i&&(n+=r[A.CHAR_DATA_CHAR_INDEX].length-1)}return n},e.prototype.setSelection=function(e,t,n){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[e,t],this._model.selectionStartLength=n,this.refresh()},e.prototype._getWordAt=function(e,t,n,i){if(void 0===n&&(n=!0),void 0===i&&(i=!0),e[0]>=this._terminal.cols)return null;var r=this._buffer.lines.get(e[1]);if(!r)return null;var o=this._buffer.translateBufferLineToString(e[1],!1),s=this._convertViewportColToCharacterIndex(r,e),a=s,l=e[0]-s,c=0,u=0,h=0,d=0;if(" "===o.charAt(s)){for(;0<s&&" "===o.charAt(s-1);)s--;for(;a<o.length&&" "===o.charAt(a+1);)a++}else{var f=e[0],p=e[0];for(0===r.get(f)[A.CHAR_DATA_WIDTH_INDEX]&&(c++,f--),2===r.get(p)[A.CHAR_DATA_WIDTH_INDEX]&&(u++,p++),1<r.get(p)[A.CHAR_DATA_CHAR_INDEX].length&&(d+=r.get(p)[A.CHAR_DATA_CHAR_INDEX].length-1,a+=r.get(p)[A.CHAR_DATA_CHAR_INDEX].length-1);0<f&&0<s&&!this._isCharWordSeparator(r.get(f-1));){0===(m=r.get(f-1))[A.CHAR_DATA_WIDTH_INDEX]?(c++,f--):1<m[A.CHAR_DATA_CHAR_INDEX].length&&(h+=m[A.CHAR_DATA_CHAR_INDEX].length-1,s-=m[A.CHAR_DATA_CHAR_INDEX].length-1),s--,f--}for(;p<r.length&&a+1<o.length&&!this._isCharWordSeparator(r.get(p+1));){var m;2===(m=r.get(p+1))[A.CHAR_DATA_WIDTH_INDEX]?(u++,p++):1<m[A.CHAR_DATA_CHAR_INDEX].length&&(d+=m[A.CHAR_DATA_CHAR_INDEX].length-1,a+=m[A.CHAR_DATA_CHAR_INDEX].length-1),a++,p++}}a++;var g=s+l-c+h,_=Math.min(this._terminal.cols,a-s+c+u-h-d);if(!t&&""===o.slice(s,a).trim())return null;if(n&&0===g&&32!==r.get(0)[A.CHAR_DATA_CODE_INDEX]){var v=this._buffer.lines.get(e[1]-1);if(v&&r.isWrapped&&32!==v.get(this._terminal.cols-1)[A.CHAR_DATA_CODE_INDEX]){var y=this._getWordAt([this._terminal.cols-1,e[1]-1],!1,!0,!1);if(y){var b=this._terminal.cols-y.start;g-=b,_+=b}}}if(i&&g+_===this._terminal.cols&&32!==r.get(this._terminal.cols-1)[A.CHAR_DATA_CODE_INDEX]){var C=this._buffer.lines.get(e[1]+1);if(C&&C.isWrapped&&32!==C.get(0)[A.CHAR_DATA_CODE_INDEX]){var I=this._getWordAt([0,e[1]+1],!1,!1,!0);I&&(_+=I.length)}}return{start:g,length:_}},e.prototype._selectWordAt=function(e,t){var n=this._getWordAt(e,t);if(n){for(;n.start<0;)n.start+=this._terminal.cols,e[1]--;this._model.selectionStart=[n.start,e[1]],this._model.selectionStartLength=n.length}},e.prototype._selectToWordAt=function(e){var t=this._getWordAt(e,!0);if(t){for(var n=e[1];t.start<0;)t.start+=this._terminal.cols,n--;if(!this._model.areSelectionValuesReversed())for(;t.start+t.length>this._terminal.cols;)t.length-=this._terminal.cols,n++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?t.start:t.start+t.length,n]}},e.prototype._isCharWordSeparator=function(e){return 0!==e[A.CHAR_DATA_WIDTH_INDEX]&&0<=" ()[]{}'\"".indexOf(e[A.CHAR_DATA_CHAR_INDEX])},e.prototype._selectLineAt=function(e){var t=this._buffer.getWrappedRangeForLine(e);this._model.selectionStart=[0,t.first],this._model.selectionEnd=[this._terminal.cols,t.last],this._model.selectionStartLength=0},e}(s.EventEmitter);t.SelectionManager=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){this._terminal=e,this.clearSelection()}return e.prototype.clearSelection=function(){this.selectionStart=null,this.selectionEnd=null,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(e.prototype,"finalSelectionStart",{get:function(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"finalSelectionEnd",{get:function(){if(this.isSelectAllActive)return[this._terminal.cols,this._terminal.buffer.ybase+this._terminal.rows-1];if(!this.selectionStart)return null;if(this.selectionEnd&&!this.areSelectionValuesReversed())return this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]?[Math.max(this.selectionStart[0]+this.selectionStartLength,this.selectionEnd[0]),this.selectionEnd[1]]:this.selectionEnd;var e=this.selectionStart[0]+this.selectionStartLength;return e>this._terminal.cols?[e%this._terminal.cols,this.selectionStart[1]+Math.floor(e/this._terminal.cols)]:[e,this.selectionStart[1]]},enumerable:!0,configurable:!0}),e.prototype.areSelectionValuesReversed=function(){var e=this.selectionStart,t=this.selectionEnd;return!(!e||!t)&&(e[1]>t[1]||e[1]===t[1]&&e[0]>t[0])},e.prototype.onTrim=function(e){return this.selectionStart&&(this.selectionStart[1]-=e),this.selectionEnd&&(this.selectionEnd[1]-=e),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},e}();t.SelectionModel=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(10),r=function(){function e(e,t){var n;this._mouseEvent=e,this._terminal=t,this._lines=this._terminal.buffer.lines,this._startCol=this._terminal.buffer.x,this._startRow=this._terminal.buffer.y;var i=this._terminal.mouseHelper.getCoords(this._mouseEvent,this._terminal.element,this._terminal.charMeasure,this._terminal.options.lineHeight,this._terminal.cols,this._terminal.rows,!1);i&&(n=i.map(function(e){return e-1}),this._endCol=n[0],this._endRow=n[1])}return e.prototype.move=function(){this._mouseEvent.altKey&&void 0!==this._endCol&&void 0!==this._endRow&&this._terminal.handler(this._arrowSequences())},e.prototype._arrowSequences=function(){return this._terminal.buffer.hasScrollback?this._moveHorizontallyOnly():this._resetStartingRow()+this._moveToRequestedRow()+this._moveToRequestedCol()},e.prototype._resetStartingRow=function(){return 0===this._moveToRequestedRow().length?"":o(this._bufferLine(this._startCol,this._startRow,this._startCol,this._startRow-this._wrappedRowsForRow(this._startRow),!1).length,this._sequence("D"))},e.prototype._moveToRequestedRow=function(){var e=this._startRow-this._wrappedRowsForRow(this._startRow),t=this._endRow-this._wrappedRowsForRow(this._endRow);return o(Math.abs(e-t)-this._wrappedRowsCount(),this._sequence(this._verticalDirection()))},e.prototype._moveToRequestedCol=function(){var e;e=0<this._moveToRequestedRow().length?this._endRow-this._wrappedRowsForRow(this._endRow):this._startRow;var t=this._endRow,n=this._horizontalDirection();return o(this._bufferLine(this._startCol,e,this._endCol,t,"C"===n).length,this._sequence(n))},e.prototype._moveHorizontallyOnly=function(){var e=this._horizontalDirection();return o(Math.abs(this._startCol-this._endCol),this._sequence(e))},e.prototype._wrappedRowsCount=function(){for(var e=0,t=this._startRow-this._wrappedRowsForRow(this._startRow),n=this._endRow-this._wrappedRowsForRow(this._endRow),i=0;i<Math.abs(t-n);i++){var r="A"===this._verticalDirection()?-1:1;this._lines.get(t+r*i).isWrapped&&e++}return e},e.prototype._wrappedRowsForRow=function(e){for(var t=0,n=this._lines.get(e).isWrapped;n&&0<=e&&e<this._terminal.rows;)t++,e--,n=this._lines.get(e).isWrapped;return t},e.prototype._horizontalDirection=function(){var e;return e=0<this._moveToRequestedRow().length?this._endRow-this._wrappedRowsForRow(this._endRow):this._startRow,this._startCol<this._endCol&&e<=this._endRow||this._startCol>=this._endCol&&e<this._endRow?"C":"D"},e.prototype._verticalDirection=function(){return this._startRow>this._endRow?"A":"B"},e.prototype._bufferLine=function(e,t,n,i,r){for(var o=e,s=t,a="";o!==n||s!==i;)o+=r?1:-1,r&&o>this._terminal.cols-1?(a+=this._terminal.buffer.translateBufferLineToString(s,!1,e,o),e=o=0,s++):!r&&o<0&&(a+=this._terminal.buffer.translateBufferLineToString(s,!1,0,e+1),e=o=this._terminal.cols-1,s--);return a+this._terminal.buffer.translateBufferLineToString(s,!1,e,o)},e.prototype._sequence=function(e){var t=this._terminal.applicationCursor?"O":"[";return i.C0.ESC+t+e},e}();function o(e,t){e=Math.floor(e);for(var n="",i=0;i<e;i++)n+=t;return n}t.AltClickHandler=r},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=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}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=function(i){function e(e,t){var n=i.call(this)||this;return n._document=e,n._parentElement=t,n._measureElement=n._document.createElement("span"),n._measureElement.classList.add("xterm-char-measure-element"),n._measureElement.textContent="W",n._measureElement.setAttribute("aria-hidden","true"),n._parentElement.appendChild(n._measureElement),n}return r(e,i),Object.defineProperty(e.prototype,"width",{get:function(){return this._width},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._height},enumerable:!0,configurable:!0}),e.prototype.measure=function(e){this._measureElement.style.fontFamily=e.fontFamily,this._measureElement.style.fontSize=e.fontSize+"px";var t=this._measureElement.getBoundingClientRect();0!==t.width&&0!==t.height&&(this._width===t.width&&this._height===t.height||(this._width=t.width,this._height=Math.ceil(t.height),this.emit("charsizechanged")))},e}(n(2).EventEmitter);t.CharMeasure=o},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.clone=function(e,t){if(void 0===t&&(t=5),"object"!=typeof e)return e;if(null===e)return null;var n=Array.isArray(e)?[]:{};for(var i in e)n[i]=t<=1?e[i]:r.clone(e[i],t-1);return n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_BELL_SOUND="data:audio/wav;base64,UklGRigBAABXQVZFZm10IBAAAAABAAEARKwAAIhYAQACABAAZGF0YQQBAADpAFgCwAMlBZoG/wdmCcoKRAypDQ8PbRDBEQQTOxRtFYcWlBePGIUZXhoiG88bcBz7HHIdzh0WHlMeZx51HmkeUx4WHs8dah0AHXwc3hs9G4saxRnyGBIYGBcQFv8U4RPAEoYRQBACD70NWwwHC6gJOwjWBloF7gOBAhABkf8b/qv8R/ve+Xf4Ife79W/0JfPZ8Z/wde9N7ijtE+wU6xvqM+lb6H7nw+YX5mrlxuQz5Mzje+Ma49fioeKD4nXiYeJy4pHitOL04j/jn+MN5IPkFOWs5U3mDefM55/ogOl36m7rdOyE7abuyu8D8Unyj/Pg9D/2qfcb+Yn6/vuK/Qj/lAAlAg==";var i=function(){function e(e){this._terminal=e}return e.prototype.playBellSound=function(){var e=window.AudioContext||window.webkitAudioContext;if(!this._audioContext&&e&&(this._audioContext=new e),this._audioContext){var t=this._audioContext.createBufferSource(),n=this._audioContext;this._audioContext.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._terminal.options.bellSound)),function(e){t.buffer=e,t.connect(n.destination),t.start(0)})}else console.warn("Sorry, but the Web Audio API is not supported by your browser. Please, consider upgrading to the latest version")},e.prototype._base64ToArrayBuffer=function(e){for(var t=window.atob(e),n=t.length,i=new Uint8Array(n),r=0;r<n;r++)i[r]=t.charCodeAt(r);return i.buffer},e.prototype._removeMimeType=function(e){return e.split(",")[1]},e}();t.SoundManager=i},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return(i=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}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var l=n(18),o=n(8),s=n(17),a=n(9),c=n(5),u=function(i){function e(e){var t=i.call(this)||this;t._terminal=e,t._liveRegionLineCount=0,t._charsToConsume=[],t._accessibilityTreeRoot=document.createElement("div"),t._accessibilityTreeRoot.classList.add("xterm-accessibility"),t._rowContainer=document.createElement("div"),t._rowContainer.classList.add("xterm-accessibility-tree"),t._rowElements=[];for(var n=0;n<t._terminal.rows;n++)t._rowElements[n]=t._createAccessibilityTreeNode(),t._rowContainer.appendChild(t._rowElements[n]);return t._topBoundaryFocusListener=function(e){return t._onBoundaryFocus(e,0)},t._bottomBoundaryFocusListener=function(e){return t._onBoundaryFocus(e,1)},t._rowElements[0].addEventListener("focus",t._topBoundaryFocusListener),t._rowElements[t._rowElements.length-1].addEventListener("focus",t._bottomBoundaryFocusListener),t._refreshRowsDimensions(),t._accessibilityTreeRoot.appendChild(t._rowContainer),t._renderRowsDebouncer=new s.RenderDebouncer(t._terminal,t._renderRows.bind(t)),t._refreshRows(),t._liveRegion=document.createElement("div"),t._liveRegion.classList.add("live-region"),t._liveRegion.setAttribute("aria-live","assertive"),t._accessibilityTreeRoot.appendChild(t._liveRegion),t._terminal.element.insertAdjacentElement("afterbegin",t._accessibilityTreeRoot),t.register(t._renderRowsDebouncer),t.register(t._terminal.addDisposableListener("resize",function(e){return t._onResize(e.rows)})),t.register(t._terminal.addDisposableListener("refresh",function(e){return t._refreshRows(e.start,e.end)})),t.register(t._terminal.addDisposableListener("scroll",function(e){return t._refreshRows()})),t.register(t._terminal.addDisposableListener("a11y.char",function(e){return t._onChar(e)})),t.register(t._terminal.addDisposableListener("linefeed",function(){return t._onChar("\n")})),t.register(t._terminal.addDisposableListener("a11y.tab",function(e){return t._onTab(e)})),t.register(t._terminal.addDisposableListener("key",function(e){return t._onKey(e)})),t.register(t._terminal.addDisposableListener("blur",function(){return t._clearLiveRegion()})),t.register(t._terminal.addDisposableListener("dprchange",function(){return t._refreshRowsDimensions()})),t.register(t._terminal.renderer.addDisposableListener("resize",function(){return t._refreshRowsDimensions()})),t.register(a.addDisposableDomListener(window,"resize",function(){return t._refreshRowsDimensions()})),t}return r(e,i),e.prototype.dispose=function(){i.prototype.dispose.call(this),this._terminal.element.removeChild(this._accessibilityTreeRoot),this._rowElements.length=0},e.prototype._onBoundaryFocus=function(e,t){var n=e.target,i=this._rowElements[0===t?1:this._rowElements.length-2];if(n.getAttribute("aria-posinset")!==(0===t?"1":""+this._terminal.buffer.lines.length)&&e.relatedTarget===i){var r,o;if(0===t?(r=n,o=this._rowElements.pop(),this._rowContainer.removeChild(o)):(r=this._rowElements.shift(),o=n,this._rowContainer.removeChild(r)),r.removeEventListener("focus",this._topBoundaryFocusListener),o.removeEventListener("focus",this._bottomBoundaryFocusListener),0===t){var s=this._createAccessibilityTreeNode();this._rowElements.unshift(s),this._rowContainer.insertAdjacentElement("afterbegin",s)}else{s=this._createAccessibilityTreeNode();this._rowElements.push(s),this._rowContainer.appendChild(s)}this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(0===t?-1:1),this._rowElements[0===t?1:this._rowElements.length-2].focus(),e.preventDefault(),e.stopImmediatePropagation()}},e.prototype._onResize=function(e){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(var t=this._rowContainer.children.length;t<this._terminal.rows;t++)this._rowElements[t]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[t]);for(;this._rowElements.length>e;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},e.prototype._createAccessibilityTreeNode=function(){var e=document.createElement("div");return e.setAttribute("role","listitem"),e.tabIndex=-1,this._refreshRowDimensions(e),e},e.prototype._onTab=function(e){for(var t=0;t<e;t++)this._onChar(" ")},e.prototype._onChar=function(e){var t=this;if(this._liveRegionLineCount<21){if(0<this._charsToConsume.length)this._charsToConsume.shift()!==e&&this._announceCharacter(e);else this._announceCharacter(e);"\n"===e&&(this._liveRegionLineCount++,21===this._liveRegionLineCount&&(this._liveRegion.textContent+=l.tooMuchOutput)),o.isMac&&this._liveRegion.textContent&&0<this._liveRegion.textContent.length&&!this._liveRegion.parentNode&&setTimeout(function(){t._accessibilityTreeRoot.appendChild(t._liveRegion)},0)}},e.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,o.isMac&&this._liveRegion.parentNode&&this._accessibilityTreeRoot.removeChild(this._liveRegion)},e.prototype._onKey=function(e){this._clearLiveRegion(),this._charsToConsume.push(e)},e.prototype._refreshRows=function(e,t){this._renderRowsDebouncer.refresh(e,t)},e.prototype._renderRows=function(e,t){for(var n=this._terminal.buffer,i=n.lines.length.toString(),r=e;r<=t;r++){var o=n.translateBufferLineToString(n.ydisp+r,!0),s=(n.ydisp+r+1).toString(),a=this._rowElements[r];a.textContent=0===o.length?l.blankLine:o,a.setAttribute("aria-posinset",s),a.setAttribute("aria-setsize",i)}},e.prototype._refreshRowsDimensions=function(){if(this._terminal.renderer.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(var e=0;e<this._terminal.rows;e++)this._refreshRowDimensions(this._rowElements[e])}},e.prototype._refreshRowDimensions=function(e){e.style.height=this._terminal.renderer.dimensions.actualCellHeight+"px"},e.prototype._announceCharacter=function(e){" "===e?this._liveRegion.innerHTML+="&nbsp;":this._liveRegion.textContent+=e},e}(c.Disposable);t.AccessibilityManager=u},function(e,t,n){"use strict";var i,o=this&&this.__extends||(i=function(e,t){return(i=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}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),s=n(12),a=n(17),l=n(76),c="xterm-dom-renderer-owner-",u="xterm-rows",h="xterm-focus",d="xterm-selection",f=1,p=function(r){function e(e,t){var n=r.call(this)||this;n._terminal=e,n._terminalClass=f++,n._rowElements=[];var i=n._terminal.options.allowTransparency;return n.colorManager=new s.ColorManager(document,i),n.setTheme(t),n._rowContainer=document.createElement("div"),n._rowContainer.classList.add(u),n._rowContainer.style.lineHeight="normal",n._rowContainer.setAttribute("aria-hidden","true"),n._refreshRowElements(n._terminal.cols,n._terminal.rows),n._selectionContainer=document.createElement("div"),n._selectionContainer.classList.add(d),n._selectionContainer.setAttribute("aria-hidden","true"),n.dimensions={scaledCharWidth:null,scaledCharHeight:null,scaledCellWidth:null,scaledCellHeight:null,scaledCharLeft:null,scaledCharTop:null,scaledCanvasWidth:null,scaledCanvasHeight:null,canvasWidth:null,canvasHeight:null,actualCellWidth:null,actualCellHeight:null},n._updateDimensions(),n._renderDebouncer=new a.RenderDebouncer(n._terminal,n._renderRows.bind(n)),n._rowFactory=new l.DomRendererRowFactory(document),n._terminal.element.classList.add(c+n._terminalClass),n._terminal.screenElement.appendChild(n._rowContainer),n._terminal.screenElement.appendChild(n._selectionContainer),n._terminal.linkifier.on("linkhover",function(e){return n._onLinkHover(e)}),n._terminal.linkifier.on("linkleave",function(e){return n._onLinkLeave(e)}),n}return o(e,r),e.prototype.dispose=function(){this._terminal.element.classList.remove(c+this._terminalClass),this._terminal.screenElement.removeChild(this._rowContainer),this._terminal.screenElement.removeChild(this._selectionContainer),this._terminal.screenElement.removeChild(this._themeStyleElement),this._terminal.screenElement.removeChild(this._dimensionsStyleElement),r.prototype.dispose.call(this)},e.prototype._updateDimensions=function(){var t=this;this.dimensions.scaledCharWidth=this._terminal.charMeasure.width*window.devicePixelRatio,this.dimensions.scaledCharHeight=this._terminal.charMeasure.height*window.devicePixelRatio,this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth,this.dimensions.scaledCellHeight=this.dimensions.scaledCharHeight,this.dimensions.scaledCharLeft=0,this.dimensions.scaledCharTop=0,this.dimensions.scaledCanvasWidth=this.dimensions.scaledCellWidth*this._terminal.cols,this.dimensions.scaledCanvasHeight=this.dimensions.scaledCellHeight*this._terminal.rows,this.dimensions.canvasWidth=this._terminal.charMeasure.width*this._terminal.cols,this.dimensions.canvasHeight=this._terminal.charMeasure.height*this._terminal.rows,this.dimensions.actualCellWidth=this._terminal.charMeasure.width,this.dimensions.actualCellHeight=this._terminal.charMeasure.height,this._rowElements.forEach(function(e){e.style.width=t.dimensions.canvasWidth+"px",e.style.height=t._terminal.charMeasure.height+"px"}),this._dimensionsStyleElement||(this._dimensionsStyleElement=document.createElement("style"),this._terminal.screenElement.appendChild(this._dimensionsStyleElement));var e=this._terminalSelector+" ."+u+" span { display: inline-block; height: 100%; vertical-align: top; width: "+this._terminal.charMeasure.width+"px}";this._dimensionsStyleElement.innerHTML=e,this._selectionContainer.style.height=this._terminal._viewportElement.style.height,this._rowContainer.style.width=this.dimensions.canvasWidth+"px",this._rowContainer.style.height=this.dimensions.canvasHeight+"px"},e.prototype.setTheme=function(e){var n=this;e&&this.colorManager.setTheme(e),this._themeStyleElement||(this._themeStyleElement=document.createElement("style"),this._terminal.screenElement.appendChild(this._themeStyleElement));var i=this._terminalSelector+" ."+u+" { color: "+this.colorManager.colors.foreground.css+"; background-color: "+this.colorManager.colors.background.css+"; font-family: "+this._terminal.getOption("fontFamily")+"; font-size: "+this._terminal.getOption("fontSize")+"px;}";return i+=this._terminalSelector+" span:not(."+l.BOLD_CLASS+") { font-weight: "+this._terminal.options.fontWeight+";}"+this._terminalSelector+" span."+l.BOLD_CLASS+" { font-weight: "+this._terminal.options.fontWeightBold+";}"+this._terminalSelector+" span."+l.ITALIC_CLASS+" { font-style: italic;}",i+=this._terminalSelector+" ."+u+":not(."+h+") ."+l.CURSOR_CLASS+" { outline: 1px solid "+this.colorManager.colors.cursor.css+"; outline-offset: -1px;}"+this._terminalSelector+" ."+u+"."+h+" ."+l.CURSOR_CLASS+"."+l.CURSOR_STYLE_BLOCK_CLASS+" { background-color: "+this.colorManager.colors.cursor.css+"; color: "+this.colorManager.colors.cursorAccent.css+";}"+this._terminalSelector+" ."+u+"."+h+" ."+l.CURSOR_CLASS+"."+l.CURSOR_STYLE_BAR_CLASS+" { box-shadow: 1px 0 0 "+this.colorManager.colors.cursor.css+" inset;}"+this._terminalSelector+" ."+u+"."+h+" ."+l.CURSOR_CLASS+"."+l.CURSOR_STYLE_UNDERLINE_CLASS+" { box-shadow: 0 -1px 0 "+this.colorManager.colors.cursor.css+" inset;}",i+=this._terminalSelector+" ."+d+" { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}"+this._terminalSelector+" ."+d+" div { position: absolute; background-color: "+this.colorManager.colors.selection.css+";}",this.colorManager.colors.ansi.forEach(function(e,t){i+=n._terminalSelector+" .xterm-fg-"+t+" { color: "+e.css+"; }"+n._terminalSelector+" .xterm-bg-"+t+" { background-color: "+e.css+"; }"}),this._themeStyleElement.innerHTML=i,this.colorManager.colors},e.prototype.onWindowResize=function(e){this._updateDimensions()},e.prototype._refreshRowElements=function(e,t){for(var n=this._rowElements.length;n<=t;n++){var i=document.createElement("div");this._rowContainer.appendChild(i),this._rowElements.push(i)}for(;this._rowElements.length>t;)this._rowContainer.removeChild(this._rowElements.pop())},e.prototype.onResize=function(e,t){this._refreshRowElements(e,t),this._updateDimensions()},e.prototype.onCharSizeChanged=function(){this._updateDimensions()},e.prototype.onBlur=function(){this._rowContainer.classList.remove(h)},e.prototype.onFocus=function(){this._rowContainer.classList.add(h)},e.prototype.onSelectionChanged=function(e,t,n){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(e&&t){var i=e[1]-this._terminal.buffer.ydisp,r=t[1]-this._terminal.buffer.ydisp,o=Math.max(i,0),s=Math.min(r,this._terminal.rows-1);if(!(o>=this._terminal.rows||s<0)){var a=document.createDocumentFragment();if(n)a.appendChild(this._createSelectionElement(o,e[0],t[0],s-o+1));else{var l=i===o?e[0]:0,c=o===s?t[0]:this._terminal.cols;a.appendChild(this._createSelectionElement(o,l,c));var u=s-o-1;if(a.appendChild(this._createSelectionElement(o+1,0,this._terminal.cols,u)),o!==s){var h=r===s?t[0]:this._terminal.cols;a.appendChild(this._createSelectionElement(s,0,h))}}this._selectionContainer.appendChild(a)}}},e.prototype._createSelectionElement=function(e,t,n,i){void 0===i&&(i=1);var r=document.createElement("div");return r.style.height=i*this._terminal.charMeasure.height+"px",r.style.top=e*this._terminal.charMeasure.height+"px",r.style.left=t*this._terminal.charMeasure.width+"px",r.style.width=this._terminal.charMeasure.width*(n-t)+"px",r},e.prototype.onCursorMove=function(){},e.prototype.onOptionsChanged=function(){this._updateDimensions(),this.setTheme(void 0),this._terminal.refresh(0,this._terminal.rows-1)},e.prototype.clear=function(){this._rowElements.forEach(function(e){return e.innerHTML=""})},e.prototype.refreshRows=function(e,t){this._renderDebouncer.refresh(e,t)},e.prototype._renderRows=function(e,t){for(var n=this._terminal,i=n.buffer.ybase+n.buffer.y,r=this._terminal.buffer.x,o=e;o<=t;o++){var s=this._rowElements[o];s.innerHTML="";var a=o+n.buffer.ydisp,l=n.buffer.lines.get(a),c=n.options.cursorStyle;s.appendChild(this._rowFactory.createRow(l,a===i,c,r,n.charMeasure.width,n.cols))}this._terminal.emit("refresh",{start:e,end:t})},Object.defineProperty(e.prototype,"_terminalSelector",{get:function(){return"."+c+this._terminalClass},enumerable:!0,configurable:!0}),e.prototype.registerCharacterJoiner=function(e){return-1},e.prototype.deregisterCharacterJoiner=function(e){return!1},e.prototype._onLinkHover=function(e){this._setCellUnderline(e.x1,e.x2,e.y1,e.y2,e.cols,!0)},e.prototype._onLinkLeave=function(e){this._setCellUnderline(e.x1,e.x2,e.y1,e.y2,e.cols,!1)},e.prototype._setCellUnderline=function(e,t,n,i,r,o){for(;e!==t||n!==i;){this._rowElements[n].children[e].style.textDecoration=o?"underline":"none",0===(e=(e+1)%r)&&n++}},e}(r.EventEmitter);t.DomRenderer=p},function(e,v,t){"use strict";Object.defineProperty(v,"__esModule",{value:!0});var y=t(0);v.BOLD_CLASS="xterm-bold",v.ITALIC_CLASS="xterm-italic",v.CURSOR_CLASS="xterm-cursor",v.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",v.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",v.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var n=function(){function e(e){this._document=e}return e.prototype.createRow=function(e,t,n,i,r,o){for(var s=this._document.createDocumentFragment(),a=0,l=0;l<e.length;l++)if(!(o<=a)){var c=e.get(l),u=c[y.CHAR_DATA_CHAR_INDEX],h=c[y.CHAR_DATA_ATTR_INDEX],d=c[y.CHAR_DATA_WIDTH_INDEX];if(0!==d){var f=this._document.createElement("span");1<d&&(f.style.width=r*d+"px");var p=h>>18,m=511&h,g=h>>9&511;if(t&&l===i)switch(f.classList.add(v.CURSOR_CLASS),n){case"bar":f.classList.add(v.CURSOR_STYLE_BAR_CLASS);break;case"underline":f.classList.add(v.CURSOR_STYLE_UNDERLINE_CLASS);break;default:f.classList.add(v.CURSOR_STYLE_BLOCK_CLASS)}if(8&p){var _=m;m=g,256===(g=_)&&(g=0),257===m&&(m=15)}1&p&&(g<8&&(g+=8),f.classList.add(v.BOLD_CLASS)),64&p&&f.classList.add(v.ITALIC_CLASS),f.textContent=u,257!==g&&f.classList.add("xterm-fg-"+g),256!==m&&f.classList.add("xterm-bg-"+m),s.appendChild(f),a+=d}}return s},e}();v.DomRendererRowFactory=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c=n(10),u={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};t.evaluateKeyboardEvent=function(e,t,n,i){var r={type:0,cancel:!1,key:void 0},o=(e.shiftKey?1:0)|(e.altKey?2:0)|(e.ctrlKey?4:0)|(e.metaKey?8:0);switch(e.keyCode){case 0:"UIKeyInputUpArrow"===e.key?r.key=t?c.C0.ESC+"OA":c.C0.ESC+"[A":"UIKeyInputLeftArrow"===e.key?r.key=t?c.C0.ESC+"OD":c.C0.ESC+"[D":"UIKeyInputRightArrow"===e.key?r.key=t?c.C0.ESC+"OC":c.C0.ESC+"[C":"UIKeyInputDownArrow"===e.key&&(r.key=t?c.C0.ESC+"OB":c.C0.ESC+"[B");break;case 8:if(e.shiftKey){r.key=c.C0.BS;break}if(e.altKey){r.key=c.C0.ESC+c.C0.DEL;break}r.key=c.C0.DEL;break;case 9:if(e.shiftKey){r.key=c.C0.ESC+"[Z";break}r.key=c.C0.HT,r.cancel=!0;break;case 13:r.key=c.C0.CR,r.cancel=!0;break;case 27:r.key=c.C0.ESC,r.cancel=!0;break;case 37:o?(r.key=c.C0.ESC+"[1;"+(o+1)+"D",r.key===c.C0.ESC+"[1;3D"&&(r.key=n?c.C0.ESC+"b":c.C0.ESC+"[1;5D")):r.key=t?c.C0.ESC+"OD":c.C0.ESC+"[D";break;case 39:o?(r.key=c.C0.ESC+"[1;"+(o+1)+"C",r.key===c.C0.ESC+"[1;3C"&&(r.key=n?c.C0.ESC+"f":c.C0.ESC+"[1;5C")):r.key=t?c.C0.ESC+"OC":c.C0.ESC+"[C";break;case 38:o?(r.key=c.C0.ESC+"[1;"+(o+1)+"A",r.key===c.C0.ESC+"[1;3A"&&(r.key=c.C0.ESC+"[1;5A")):r.key=t?c.C0.ESC+"OA":c.C0.ESC+"[A";break;case 40:o?(r.key=c.C0.ESC+"[1;"+(o+1)+"B",r.key===c.C0.ESC+"[1;3B"&&(r.key=c.C0.ESC+"[1;5B")):r.key=t?c.C0.ESC+"OB":c.C0.ESC+"[B";break;case 45:e.shiftKey||e.ctrlKey||(r.key=c.C0.ESC+"[2~");break;case 46:r.key=o?c.C0.ESC+"[3;"+(o+1)+"~":c.C0.ESC+"[3~";break;case 36:r.key=o?c.C0.ESC+"[1;"+(o+1)+"H":t?c.C0.ESC+"OH":c.C0.ESC+"[H";break;case 35:r.key=o?c.C0.ESC+"[1;"+(o+1)+"F":t?c.C0.ESC+"OF":c.C0.ESC+"[F";break;case 33:e.shiftKey?r.type=2:r.key=c.C0.ESC+"[5~";break;case 34:e.shiftKey?r.type=3:r.key=c.C0.ESC+"[6~";break;case 112:r.key=o?c.C0.ESC+"[1;"+(o+1)+"P":c.C0.ESC+"OP";break;case 113:r.key=o?c.C0.ESC+"[1;"+(o+1)+"Q":c.C0.ESC+"OQ";break;case 114:r.key=o?c.C0.ESC+"[1;"+(o+1)+"R":c.C0.ESC+"OR";break;case 115:r.key=o?c.C0.ESC+"[1;"+(o+1)+"S":c.C0.ESC+"OS";break;case 116:r.key=o?c.C0.ESC+"[15;"+(o+1)+"~":c.C0.ESC+"[15~";break;case 117:r.key=o?c.C0.ESC+"[17;"+(o+1)+"~":c.C0.ESC+"[17~";break;case 118:r.key=o?c.C0.ESC+"[18;"+(o+1)+"~":c.C0.ESC+"[18~";break;case 119:r.key=o?c.C0.ESC+"[19;"+(o+1)+"~":c.C0.ESC+"[19~";break;case 120:r.key=o?c.C0.ESC+"[20;"+(o+1)+"~":c.C0.ESC+"[20~";break;case 121:r.key=o?c.C0.ESC+"[21;"+(o+1)+"~":c.C0.ESC+"[21~";break;case 122:r.key=o?c.C0.ESC+"[23;"+(o+1)+"~":c.C0.ESC+"[23~";break;case 123:r.key=o?c.C0.ESC+"[24;"+(o+1)+"~":c.C0.ESC+"[24~";break;default:if(!e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)if(n&&!i||!e.altKey||e.metaKey)n&&!e.altKey&&!e.ctrlKey&&e.metaKey&&65===e.keyCode&&(r.type=1);else{var s=u[e.keyCode],a=s&&s[e.shiftKey?1:0];if(a)r.key=c.C0.ESC+a;else if(65<=e.keyCode&&e.keyCode<=90){var l=e.ctrlKey?e.keyCode-64:e.keyCode+32;r.key=c.C0.ESC+String.fromCharCode(l)}}else 65<=e.keyCode&&e.keyCode<=90?r.key=String.fromCharCode(e.keyCode-64):32===e.keyCode?r.key=String.fromCharCode(0):51<=e.keyCode&&e.keyCode<=55?r.key=String.fromCharCode(e.keyCode-51+27):56===e.keyCode?r.key=String.fromCharCode(127):219===e.keyCode?r.key=String.fromCharCode(27):220===e.keyCode?r.key=String.fromCharCode(28):221===e.keyCode&&(r.key=String.fromCharCode(29))}return r}},function(e,t,n){var i,r,o;/*!
  * inputmask.extensions.js
  * https://github.com/RobinHerbots/Inputmask
  * Copyright (c) 2010 - 2018 Robin Herbots
  * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
  * Version: 4.0.3
  */r=[n(13)],void 0===(o="function"==typeof(i=function(e){return e.extendDefinitions({A:{validator:"[A-Za-zА-яЁёÀ-ÿµ]",casing:"upper"},"&":{validator:"[0-9A-Za-zА-яЁёÀ-ÿµ]",casing:"upper"},"#":{validator:"[0-9A-Fa-f]",casing:"upper"}}),e.extendAliases({cssunit:{regex:"[+-]?[0-9]+\\.?([0-9]+)?(px|em|rem|ex|%|in|cm|mm|pt|pc)"},url:{regex:"(https?|ftp)//.*",autoUnmask:!1},ip:{mask:"i[i[i]].i[i[i]].i[i[i]].i[i[i]]",definitions:{i:{validator:function(e,t,n,i,r){return e=-1<n-1&&"."!==t.buffer[n-1]?(e=t.buffer[n-1]+e,-1<n-2&&"."!==t.buffer[n-2]?t.buffer[n-2]+e:"0"+e):"00"+e,new RegExp("25[0-5]|2[0-4][0-9]|[01][0-9][0-9]").test(e)}}},onUnMask:function(e,t,n){return e},inputmode:"numeric"},email:{mask:"*{1,64}[.*{1,64}][.*{1,64}][.*{1,63}]@-{1,63}.-{1,63}[.-{1,63}][.-{1,63}]",greedy:!1,casing:"lower",onBeforePaste:function(e,t){return(e=e.toLowerCase()).replace("mailto:","")},definitions:{"*":{validator:"[0-9１-９A-Za-zА-яЁёÀ-ÿµ!#$%&'*+/=?^_`{|}~-]"},"-":{validator:"[0-9A-Za-z-]"}},onUnMask:function(e,t,n){return e},inputmode:"email"},mac:{mask:"##:##:##:##:##:##"},vin:{mask:"V{13}9{4}",definitions:{V:{validator:"[A-HJ-NPR-Za-hj-npr-z\\d]",casing:"upper"}},clearIncomplete:!0,autoUnmask:!0}}),e})?i.apply(t,r):i)||(e.exports=o)},function(e,t,n){var i,r,o;/*!
  * dependencyLibs/inputmask.dependencyLib.js
  * https://github.com/RobinHerbots/Inputmask
  * Copyright (c) 2010 - 2018 Robin Herbots
  * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
  * Version: 4.0.3
  */r=[n(33)],void 0===(o="function"==typeof(i=function(t){var d=t.document;function a(e){return null!=e&&e===e.window}function f(e){return e instanceof Element}function p(e){return e instanceof p?e:this instanceof p?void(null!=e&&e!==t&&(this[0]=e.nodeName?e:void 0!==e[0]&&e[0].nodeName?e[0]:d.querySelector(e),void 0!==this[0]&&null!==this[0]&&(this[0].eventRegistry=this[0].eventRegistry||{}))):new p(e)}return p.prototype={on:function(e,t){if(f(this[0]))for(var n=this[0].eventRegistry,i=this[0],r=e.split(" "),o=0;o<r.length;o++){var s=r[o].split("."),a=s[0],l=s[1]||"global";c=a,u=l,i.addEventListener?i.addEventListener(c,t,!1):i.attachEvent&&i.attachEvent("on"+c,t),n[c]=n[c]||{},n[c][u]=n[c][u]||[],n[c][u].push(t)}var c,u;return this},off:function(e,a){if(f(this[0])){var l=this[0].eventRegistry,r=this[0];function t(e,t,n){if(e in l==1)if(r.removeEventListener?r.removeEventListener(e,n,!1):r.detachEvent&&r.detachEvent("on"+e,n),"global"===t)for(var i in l[e])l[e][i].splice(l[e][i].indexOf(n),1);else l[e][t].splice(l[e][t].indexOf(n),1)}function n(e,t){var n,i,r=[];if(0<e.length)if(void 0===a)for(n=0,i=l[e][t].length;n<i;n++)r.push({ev:e,namespace:t&&0<t.length?t:"global",handler:l[e][t][n]});else r.push({ev:e,namespace:t&&0<t.length?t:"global",handler:a});else if(0<t.length)for(var o in l)for(var s in l[o])if(s===t)if(void 0===a)for(n=0,i=l[o][s].length;n<i;n++)r.push({ev:o,namespace:s,handler:l[o][s][n]});else r.push({ev:o,namespace:s,handler:a});return r}for(var i=e.split(" "),o=0;o<i.length;o++)for(var s=i[o].split("."),c=n(s[0],s[1]),u=0,h=c.length;u<h;u++)t(c[u].ev,c[u].namespace,c[u].handler)}return this},trigger:function(e){if(f(this[0]))for(var t=this[0].eventRegistry,n=this[0],i="string"==typeof e?e.split(" "):[e.type],r=0;r<i.length;r++){var o=i[r].split("."),s=o[0],a=o[1]||"global";if(void 0!==d&&"global"===a){var l,c,u={bubbles:!0,cancelable:!0,detail:arguments[1]};if(d.createEvent){try{l=new CustomEvent(s,u)}catch(e){(l=d.createEvent("CustomEvent")).initCustomEvent(s,u.bubbles,u.cancelable,u.detail)}e.type&&p.extend(l,e),n.dispatchEvent(l)}else(l=d.createEventObject()).eventType=s,l.detail=arguments[1],e.type&&p.extend(l,e),n.fireEvent("on"+l.eventType,l)}else if(void 0!==t[s])if(e=e.type?e:p.Event(e),"global"===a)for(var h in t[s])for(c=0;c<t[s][h].length;c++)t[s][h][c].apply(n,arguments);else for(c=0;c<t[s][a].length;c++)t[s][a][c].apply(n,arguments)}return this}},p.isFunction=function(e){return"function"==typeof e},p.noop=function(){},p.isArray=Array.isArray,p.inArray=function(e,t,n){return null==t?-1:function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1}(t,e)},p.valHooks=void 0,p.isPlainObject=function(e){return!("object"!=typeof e||e.nodeType||a(e)||e.constructor&&!Object.hasOwnProperty.call(e.constructor.prototype,"isPrototypeOf"))},p.extend=function(){var e,t,n,i,r,o,s=arguments[0]||{},a=1,l=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[a]||{},a++),"object"==typeof s||p.isFunction(s)||(s={}),a===l&&(s=this,a--);a<l;a++)if(null!=(e=arguments[a]))for(t in e)n=s[t],s!==(i=e[t])&&(c&&i&&(p.isPlainObject(i)||(r=p.isArray(i)))?(o=r?(r=!1,n&&p.isArray(n)?n:[]):n&&p.isPlainObject(n)?n:{},s[t]=p.extend(c,o,i)):void 0!==i&&(s[t]=i));return s},p.each=function(e,t){var n,i,r,o=0;if(i="length"in(n=e)&&n.length,"function"!=(r=typeof n)&&!a(n)&&(1===n.nodeType&&i||"array"===r||0===i||"number"==typeof i&&0<i&&i-1 in n))for(var s=e.length;o<s&&!1!==t.call(e[o],o,e[o]);o++);else for(o in e)if(!1===t.call(e[o],o,e[o]))break;return e},p.data=function(e,t,n){if(void 0===n)return e.__data?e.__data[t]:null;e.__data=e.__data||{},e.__data[t]=n},"function"==typeof t.CustomEvent?p.Event=t.CustomEvent:(p.Event=function(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=d.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}).prototype=t.Event.prototype,p})?i.apply(t,r):i)||(e.exports=o)},function(e,t,n){var i,r,o;/*!
  * inputmask.date.extensions.js
  * https://github.com/RobinHerbots/Inputmask
  * Copyright (c) 2010 - 2018 Robin Herbots
  * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
  * Version: 4.0.3
  */r=[n(13)],void 0===(o="function"==typeof(i=function(a){var l=a.dependencyLib,u={d:["[1-9]|[12][0-9]|3[01]",Date.prototype.setDate,"day",Date.prototype.getDate],dd:["0[1-9]|[12][0-9]|3[01]",Date.prototype.setDate,"day",function(){return d(Date.prototype.getDate.call(this),2)}],ddd:[""],dddd:[""],m:["[1-9]|1[012]",Date.prototype.setMonth,"month",function(){return Date.prototype.getMonth.call(this)+1}],mm:["0[1-9]|1[012]",Date.prototype.setMonth,"month",function(){return d(Date.prototype.getMonth.call(this)+1,2)}],mmm:[""],mmmm:[""],yy:["[0-9]{2}",Date.prototype.setFullYear,"year",function(){return d(Date.prototype.getFullYear.call(this),2)}],yyyy:["[0-9]{4}",Date.prototype.setFullYear,"year",function(){return d(Date.prototype.getFullYear.call(this),4)}],h:["[1-9]|1[0-2]",Date.prototype.setHours,"hours",Date.prototype.getHours],hh:["0[1-9]|1[0-2]",Date.prototype.setHours,"hours",function(){return d(Date.prototype.getHours.call(this),2)}],hhh:["[0-9]+",Date.prototype.setHours,"hours",Date.prototype.getHours],H:["1?[0-9]|2[0-3]",Date.prototype.setHours,"hours",Date.prototype.getHours],HH:["[01][0-9]|2[0-3]",Date.prototype.setHours,"hours",function(){return d(Date.prototype.getHours.call(this),2)}],HHH:["[0-9]+",Date.prototype.setHours,"hours",Date.prototype.getHours],M:["[1-5]?[0-9]",Date.prototype.setMinutes,"minutes",Date.prototype.getMinutes],MM:["[0-5][0-9]",Date.prototype.setMinutes,"minutes",function(){return d(Date.prototype.getMinutes.call(this),2)}],s:["[1-5]?[0-9]",Date.prototype.setSeconds,"seconds",Date.prototype.getSeconds],ss:["[0-5][0-9]",Date.prototype.setSeconds,"seconds",function(){return d(Date.prototype.getSeconds.call(this),2)}],l:["[0-9]{3}",Date.prototype.setMilliseconds,"milliseconds",function(){return d(Date.prototype.getMilliseconds.call(this),3)}],L:["[0-9]{2}",Date.prototype.setMilliseconds,"milliseconds",function(){return d(Date.prototype.getMilliseconds.call(this),2)}],t:["[ap]"],tt:["[ap]m"],T:["[AP]"],TT:["[AP]M"],Z:[""],o:[""],S:[""]},t={isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};function h(e){if(!e.tokenizer){var t=[];for(var n in u)-1===t.indexOf(n[0])&&t.push(n[0]);e.tokenizer="("+t.join("+|")+")+?|.",e.tokenizer=new RegExp(e.tokenizer,"g")}return e.tokenizer}function c(e,t,n,i){for(var r,o="";r=h(n).exec(e);)if(void 0===t)if(u[r[0]])o+="("+u[r[0]][0]+")";else switch(r[0]){case"[":o+="(";break;case"]":o+=")?";break;default:o+=a.escapeRegex(r[0])}else if(u[r[0]])if(!0!==i&&u[r[0]][3]){var s=u[r[0]][3];o+=s.call(t.date)}else u[r[0]][2]?o+=t["raw"+u[r[0]][2]]:o+=r[0];else o+=r[0];return o}function d(e,t){for(e=String(e),t=t||2;e.length<t;)e="0"+e;return e}function f(e,t,o){var s,n,i,r={date:new Date(1,0,1)},a=e;function l(e,t,n){e[s]=function(e){var t=e.replace(/[^0-9]/g,"0");if(t!=e){var n=e.replace(/[^0-9]/g,""),i=(o.min&&o.min[s]||e).toString(),r=(o.max&&o.max[s]||e).toString();t=n+(n<i.slice(0,n.length)?i.slice(n.length):n>r.slice(0,n.length)?r.slice(n.length):t.toString().slice(n.length))}return t}(t),e["raw"+s]=t,void 0!==i&&i.call(e.date,"month"==s?parseInt(e[s])-1:e[s])}if("string"==typeof a){for(;n=h(o).exec(t);){var c=a.slice(0,n[0].length);u.hasOwnProperty(n[0])&&(u[n[0]][0],s=u[n[0]][2],i=u[n[0]][1],l(r,c)),a=a.slice(c.length)}return r}if(a&&"object"==typeof a&&a.hasOwnProperty("date"))return a}return a.extendAliases({datetime:{mask:function(e){return u.S=e.i18n.ordinalSuffix.join("|"),e.inputFormat=t[e.inputFormat]||e.inputFormat,e.displayFormat=t[e.displayFormat]||e.displayFormat||e.inputFormat,e.outputFormat=t[e.outputFormat]||e.outputFormat||e.inputFormat,e.placeholder=""!==e.placeholder?e.placeholder:e.inputFormat.replace(/[\[\]]/,""),e.regex=c(e.inputFormat,void 0,e),null},placeholder:"",inputFormat:"isoDateTime",displayFormat:void 0,outputFormat:void 0,min:null,max:null,i18n:{dayNames:["Mon","Tue","Wed","Thu","Fri","Sat","Sun","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],ordinalSuffix:["st","nd","rd","th"]},postValidation:function(e,t,n,i){i.min=f(i.min,i.inputFormat,i),i.max=f(i.max,i.inputFormat,i);var r,o,s=n,a=f(e.join(""),i.inputFormat,i);return s&&a.date.getTime()==a.date.getTime()&&(r=a,o=s,s=(s=(!isFinite(r.rawday)||"29"==r.day&&!isFinite(r.rawyear)||new Date(r.date.getFullYear(),isFinite(r.rawmonth)?r.month:r.date.getMonth()+1,0).getDate()>=r.day)&&o)&&function(e,t){var n=!0;if(t.min){if(e.rawyear){var i=e.rawyear.replace(/[^0-9]/g,""),r=t.min.year.substr(0,i.length);n=r<=i}e.year===e.rawyear&&t.min.date.getTime()==t.min.date.getTime()&&(n=t.min.date.getTime()<=e.date.getTime())}return n&&t.max&&t.max.date.getTime()==t.max.date.getTime()&&(n=t.max.date.getTime()>=e.date.getTime()),n}(a,i)),t&&s&&n.pos!==t?{buffer:c(i.inputFormat,a,i),refreshFromBuffer:{start:t,end:n.pos}}:s},onKeyDown:function(e,t,n,i){if(e.ctrlKey&&e.keyCode===a.keyCode.RIGHT){for(var r,o=new Date,s="";r=h(i).exec(i.inputFormat);)"d"===r[0].charAt(0)?s+=d(o.getDate(),r[0].length):"m"===r[0].charAt(0)?s+=d(o.getMonth()+1,r[0].length):"yyyy"===r[0]?s+=o.getFullYear().toString():"y"===r[0].charAt(0)&&(s+=d(o.getYear(),r[0].length));this.inputmask._valueSet(s),l(this).trigger("setvalue")}},onUnMask:function(e,t,n){return c(n.outputFormat,f(e,n.inputFormat,n),n,!0)},casing:function(e,t,n,i){return 0==t.nativeDef.indexOf("[ap]")?e.toLowerCase():0==t.nativeDef.indexOf("[AP]")?e.toUpperCase():e},insertMode:!1,shiftPositions:!1}}),a})?i.apply(t,r):i)||(e.exports=o)},function(e,t,n){var i,r,o;/*!
  * inputmask.numeric.extensions.js
  * https://github.com/RobinHerbots/Inputmask
  * Copyright (c) 2010 - 2018 Robin Herbots
  * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
  * Version: 4.0.3
  */r=[n(13)],void 0===(o="function"==typeof(i=function(g){var _=g.dependencyLib;function s(e,t){for(var n="",i=0;i<e.length;i++)g.prototype.definitions[e.charAt(i)]||t.definitions[e.charAt(i)]||t.optionalmarker.start===e.charAt(i)||t.optionalmarker.end===e.charAt(i)||t.quantifiermarker.start===e.charAt(i)||t.quantifiermarker.end===e.charAt(i)||t.groupmarker.start===e.charAt(i)||t.groupmarker.end===e.charAt(i)||t.alternatormarker===e.charAt(i)?n+="\\"+e.charAt(i):n+=e.charAt(i);return n}return g.extendAliases({numeric:{mask:function(e){if(0!==e.repeat&&isNaN(e.integerDigits)&&(e.integerDigits=e.repeat),e.repeat=0,e.groupSeparator===e.radixPoint&&e.digits&&"0"!==e.digits&&("."===e.radixPoint?e.groupSeparator=",":","===e.radixPoint?e.groupSeparator=".":e.groupSeparator="")," "===e.groupSeparator&&(e.skipOptionalPartCharacter=void 0),e.autoGroup=e.autoGroup&&""!==e.groupSeparator,e.autoGroup&&("string"==typeof e.groupSize&&isFinite(e.groupSize)&&(e.groupSize=parseInt(e.groupSize)),isFinite(e.integerDigits))){var t=Math.floor(e.integerDigits/e.groupSize),n=e.integerDigits%e.groupSize;e.integerDigits=parseInt(e.integerDigits)+(0===n?t-1:t),e.integerDigits<1&&(e.integerDigits="*")}1<e.placeholder.length&&(e.placeholder=e.placeholder.charAt(0)),"radixFocus"===e.positionCaretOnClick&&""===e.placeholder&&!1===e.integerOptional&&(e.positionCaretOnClick="lvp"),e.definitions[";"]=e.definitions["~"],e.definitions[";"].definitionSymbol="~",!0===e.numericInput&&(e.positionCaretOnClick="radixFocus"===e.positionCaretOnClick?"lvp":e.positionCaretOnClick,e.digitsOptional=!1,isNaN(e.digits)&&(e.digits=2),e.decimalProtect=!1);var i="[+]";if(i+=s(e.prefix,e),!0===e.integerOptional?i+="~{1,"+e.integerDigits+"}":i+="~{"+e.integerDigits+"}",void 0!==e.digits){var r=e.decimalProtect?":":e.radixPoint,o=e.digits.toString().split(",");isFinite(o[0])&&o[1]&&isFinite(o[1])?i+=r+";{"+e.digits+"}":(isNaN(e.digits)||0<parseInt(e.digits))&&(e.digitsOptional?i+="["+r+";{1,"+e.digits+"}]":i+=r+";{"+e.digits+"}")}return i+=s(e.suffix,e),i+="[-]",e.greedy=!1,i},placeholder:"",greedy:!1,digits:"*",digitsOptional:!0,enforceDigitsOnBlur:!1,radixPoint:".",positionCaretOnClick:"radixFocus",groupSize:3,groupSeparator:"",autoGroup:!1,allowMinus:!0,negationSymbol:{front:"-",back:""},integerDigits:"+",integerOptional:!0,prefix:"",suffix:"",rightAlign:!0,decimalProtect:!0,min:null,max:null,step:1,insertMode:!0,autoUnmask:!1,unmaskAsNumber:!1,inputType:"text",inputmode:"numeric",preValidation:function(e,t,n,i,r,o){if("-"===n||n===r.negationSymbol.front)return!0===r.allowMinus&&(r.isNegative=void 0===r.isNegative||!r.isNegative,""===e.join("")||{caret:o.validPositions[t]?t:void 0,dopost:!0});if(!1===i&&n===r.radixPoint&&void 0!==r.digits&&(isNaN(r.digits)||0<parseInt(r.digits))){var s=_.inArray(r.radixPoint,e);if(-1!==s&&void 0!==o.validPositions[s])return!0===r.numericInput?t===s:{caret:s+1}}return!0},postValidation:function(e,t,n,i){var r=i.suffix.split(""),o=i.prefix.split("");if(void 0===n.pos&&void 0!==n.caret&&!0!==n.dopost)return n;var s=void 0!==n.caret?n.caret:n.pos,a=e.slice();i.numericInput&&(s=a.length-s-1,a=a.reverse());var l=a[s];if(l===i.groupSeparator&&(l=a[s+=1]),s===a.length-i.suffix.length-1&&l===i.radixPoint)return n;void 0!==l&&l!==i.radixPoint&&l!==i.negationSymbol.front&&l!==i.negationSymbol.back&&(a[s]="?",0<i.prefix.length&&s>=(!1===i.isNegative?1:0)&&s<i.prefix.length-1+(!1===i.isNegative?1:0)?o[s-(!1===i.isNegative?1:0)]="?":0<i.suffix.length&&s>=a.length-i.suffix.length-(!1===i.isNegative?1:0)&&(r[s-(a.length-i.suffix.length-(!1===i.isNegative?1:0))]="?")),o=o.join(""),r=r.join("");var c=a.join("").replace(o,"");if(c=(c=(c=(c=c.replace(r,"")).replace(new RegExp(g.escapeRegex(i.groupSeparator),"g"),"")).replace(new RegExp("[-"+g.escapeRegex(i.negationSymbol.front)+"]","g"),"")).replace(new RegExp(g.escapeRegex(i.negationSymbol.back)+"$"),""),isNaN(i.placeholder)&&(c=c.replace(new RegExp(g.escapeRegex(i.placeholder),"g"),"")),1<c.length&&1!==c.indexOf(i.radixPoint)&&("0"===l&&(c=c.replace(/^\?/g,"")),c=c.replace(/^0/g,"")),c.charAt(0)===i.radixPoint&&""!==i.radixPoint&&!0!==i.numericInput&&(c="0"+c),""!==c){if(c=c.split(""),(!i.digitsOptional||i.enforceDigitsOnBlur&&"blur"===n.event)&&isFinite(i.digits)){var u=_.inArray(i.radixPoint,c),h=_.inArray(i.radixPoint,a);-1===u&&(c.push(i.radixPoint),u=c.length-1);for(var d=1;d<=i.digits;d++)i.digitsOptional&&(!i.enforceDigitsOnBlur||"blur"!==n.event)||void 0!==c[u+d]&&c[u+d]!==i.placeholder.charAt(0)?-1!==h&&void 0!==a[h+d]&&(c[u+d]=c[u+d]||a[h+d]):c[u+d]=n.placeholder||i.placeholder.charAt(0)}if(!0!==i.autoGroup||""===i.groupSeparator||l===i.radixPoint&&void 0===n.pos&&!n.dopost)c=c.join("");else{var f=c[c.length-1]===i.radixPoint&&n.c===i.radixPoint;c=g(function(e,t){var n="";if(n+="("+t.groupSeparator+"*{"+t.groupSize+"}){*}",""!==t.radixPoint){var i=e.join("").split(t.radixPoint);i[1]&&(n+=t.radixPoint+"*{"+i[1].match(/^\d*\??\d*/)[0].length+"}")}return n}(c,i),{numericInput:!0,jitMasking:!0,definitions:{"*":{validator:"[0-9?]",cardinality:1}}}).format(c.join("")),f&&(c+=i.radixPoint),c.charAt(0)===i.groupSeparator&&c.substr(1)}}if(i.isNegative&&"blur"===n.event&&(i.isNegative="0"!==c),c=o+c,c+=r,i.isNegative&&(c=i.negationSymbol.front+c,c+=i.negationSymbol.back),c=c.split(""),void 0!==l)if(l!==i.radixPoint&&l!==i.negationSymbol.front&&l!==i.negationSymbol.back)-1<(s=_.inArray("?",c))?c[s]=l:s=n.caret||0;else if(l===i.radixPoint||l===i.negationSymbol.front||l===i.negationSymbol.back){var p=_.inArray(l,c);-1!==p&&(s=p)}i.numericInput&&(s=c.length-s-1,c=c.reverse());var m={caret:void 0!==l&&void 0===n.pos||void 0===s?s:s+(i.numericInput?-1:1),buffer:c,refreshFromBuffer:n.dopost||e.join("")!==c.join("")};return m.refreshFromBuffer?m:n},onBeforeWrite:function(e,t,n,i){if(e)switch(e.type){case"keydown":return i.postValidation(t,n,{caret:n,dopost:!0},i);case"blur":case"checkval":var r;if(void 0===(o=i).parseMinMaxOptions&&(null!==o.min&&(o.min=o.min.toString().replace(new RegExp(g.escapeRegex(o.groupSeparator),"g"),""),","===o.radixPoint&&(o.min=o.min.replace(o.radixPoint,".")),o.min=isFinite(o.min)?parseFloat(o.min):NaN,isNaN(o.min)&&(o.min=Number.MIN_VALUE)),null!==o.max&&(o.max=o.max.toString().replace(new RegExp(g.escapeRegex(o.groupSeparator),"g"),""),","===o.radixPoint&&(o.max=o.max.replace(o.radixPoint,".")),o.max=isFinite(o.max)?parseFloat(o.max):NaN,isNaN(o.max)&&(o.max=Number.MAX_VALUE)),o.parseMinMaxOptions="done"),null!==i.min||null!==i.max){if(r=i.onUnMask(t.join(""),void 0,_.extend({},i,{unmaskAsNumber:!0})),null!==i.min&&r<i.min)return i.isNegative=i.min<0,i.postValidation(i.min.toString().replace(".",i.radixPoint).split(""),n,{caret:n,dopost:!0,placeholder:"0"},i);if(null!==i.max&&r>i.max)return i.isNegative=i.max<0,i.postValidation(i.max.toString().replace(".",i.radixPoint).split(""),n,{caret:n,dopost:!0,placeholder:"0"},i)}return i.postValidation(t,n,{caret:n,placeholder:"0",event:"blur"},i);case"_checkval":return{caret:n}}var o},regex:{integerPart:function(e,t){return t?new RegExp("["+g.escapeRegex(e.negationSymbol.front)+"+]?"):new RegExp("["+g.escapeRegex(e.negationSymbol.front)+"+]?\\d+")},integerNPart:function(e){return new RegExp("[\\d"+g.escapeRegex(e.groupSeparator)+g.escapeRegex(e.placeholder.charAt(0))+"]+")}},definitions:{"~":{validator:function(e,t,n,i,r,o){var s;if("k"===e||"m"===e){s={insert:[],c:0};for(var a=0,l="k"===e?2:5;a<l;a++)s.insert.push({pos:n+a,c:0});return s.pos=n+l,s}if(!0===(s=i?new RegExp("[0-9"+g.escapeRegex(r.groupSeparator)+"]").test(e):new RegExp("[0-9]").test(e))){if(!0!==r.numericInput&&void 0!==t.validPositions[n]&&"~"===t.validPositions[n].match.def&&!o){var c=t.buffer.join(""),u=(c=(c=c.replace(new RegExp("[-"+g.escapeRegex(r.negationSymbol.front)+"]","g"),"")).replace(new RegExp(g.escapeRegex(r.negationSymbol.back)+"$"),"")).split(r.radixPoint);1<u.length&&(u[1]=u[1].replace(/0/g,r.placeholder.charAt(0))),"0"===u[0]&&(u[0]=u[0].replace(/0/g,r.placeholder.charAt(0))),c=u[0]+r.radixPoint+u[1]||"";var h=t._buffer.join("");for(c===r.radixPoint&&(c=h);null===c.match(g.escapeRegex(h)+"$");)h=h.slice(1);s=void 0===(c=(c=c.replace(h,"")).split(""))[n]?{pos:n,remove:n}:{pos:n}}}else i||e!==r.radixPoint||void 0!==t.validPositions[n-1]||(s={insert:{pos:n,c:0},pos:n+1});return s},cardinality:1},"+":{validator:function(e,t,n,i,r){return r.allowMinus&&("-"===e||e===r.negationSymbol.front)},cardinality:1,placeholder:""},"-":{validator:function(e,t,n,i,r){return r.allowMinus&&e===r.negationSymbol.back},cardinality:1,placeholder:""},":":{validator:function(e,t,n,i,r){var o="["+g.escapeRegex(r.radixPoint)+"]",s=new RegExp(o).test(e);return s&&t.validPositions[n]&&t.validPositions[n].match.placeholder===r.radixPoint&&(s={caret:n+1}),s},cardinality:1,placeholder:function(e){return e.radixPoint}}},onUnMask:function(e,t,n){if(""===t&&!0===n.nullable)return t;var i=e.replace(n.prefix,"");return i=(i=i.replace(n.suffix,"")).replace(new RegExp(g.escapeRegex(n.groupSeparator),"g"),""),""!==n.placeholder.charAt(0)&&(i=i.replace(new RegExp(n.placeholder.charAt(0),"g"),"0")),n.unmaskAsNumber?(""!==n.radixPoint&&-1!==i.indexOf(n.radixPoint)&&(i=i.replace(g.escapeRegex.call(this,n.radixPoint),".")),i=(i=i.replace(new RegExp("^"+g.escapeRegex(n.negationSymbol.front)),"-")).replace(new RegExp(g.escapeRegex(n.negationSymbol.back)+"$"),""),Number(i)):i},isComplete:function(e,t){var n=(t.numericInput?e.slice().reverse():e).join("");return n=(n=(n=(n=(n=n.replace(new RegExp("^"+g.escapeRegex(t.negationSymbol.front)),"-")).replace(new RegExp(g.escapeRegex(t.negationSymbol.back)+"$"),"")).replace(t.prefix,"")).replace(t.suffix,"")).replace(new RegExp(g.escapeRegex(t.groupSeparator)+"([0-9]{3})","g"),"$1"),","===t.radixPoint&&(n=n.replace(g.escapeRegex(t.radixPoint),".")),isFinite(n)},onBeforeMask:function(e,t){t.isNegative=void 0;var n=t.radixPoint||",";"number"!=typeof e&&"number"!==t.inputType||""===n||(e=e.toString().replace(".",n));var i=e.split(n),r=i[0].replace(/[^\-0-9]/g,""),o=1<i.length?i[1].replace(/[^0-9]/g,""):"";e=r+(""!==o?n+o:o);var s=0;if(""!==n&&(s=o.length,""!==o)){var a=Math.pow(10,s||1);isFinite(t.digits)&&(s=parseInt(t.digits),a=Math.pow(10,s)),e=e.replace(g.escapeRegex(n),"."),isFinite(e)&&(e=Math.round(parseFloat(e)*a)/a),e=e.toString().replace(".",n)}return 0===t.digits&&-1!==e.indexOf(g.escapeRegex(n))&&(e=e.substring(0,e.indexOf(g.escapeRegex(n)))),function(e,t,n){if(0<t){var i=_.inArray(n.radixPoint,e);-1===i&&(e.push(n.radixPoint),i=e.length-1);for(var r=1;r<=t;r++)e[i+r]=e[i+r]||"0"}return e}(e.toString().split(""),s,t).join("")},onKeyDown:function(e,t,n,i){var r=_(this);if(e.ctrlKey)switch(e.keyCode){case g.keyCode.UP:r.val(parseFloat(this.inputmask.unmaskedvalue())+parseInt(i.step)),r.trigger("setvalue");break;case g.keyCode.DOWN:r.val(parseFloat(this.inputmask.unmaskedvalue())-parseInt(i.step)),r.trigger("setvalue")}}},currency:{prefix:"$ ",groupSeparator:",",alias:"numeric",placeholder:"0",autoGroup:!0,digits:2,digitsOptional:!1,clearMaskOnLostFocus:!1},decimal:{alias:"numeric"},integer:{alias:"numeric",digits:0,radixPoint:""},percentage:{alias:"numeric",digits:2,digitsOptional:!0,radixPoint:".",placeholder:"0",autoGroup:!1,min:0,max:100,suffix:" %",allowMinus:!1}}),g})?i.apply(t,r):i)||(e.exports=o)}]]);